Skip to content

Commit

Permalink
fix: update dialogporten schema to latest + order by updated date DES…
Browse files Browse the repository at this point in the history
…C for search dialogs (#1724)
  • Loading branch information
seanes authored Jan 24, 2025
1 parent 0ca677a commit ace8a22
Showing 3 changed files with 25 additions and 9 deletions.
20 changes: 18 additions & 2 deletions packages/bff-types-generated/queries/dialogs.graphql
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
query getAllDialogsForParties($partyURIs: [String!], $search: String, $org: [String!], $status: [DialogStatus!]) {
searchDialogs(input: { party: $partyURIs, search: $search, org: $org, status: $status }) {
searchDialogs(
input: {
party: $partyURIs
search: $search
org: $org
status: $status
orderBy: { createdAt: null, updatedAt: DESC, dueAt: null }
}
) {
items {
...SearchDialogFields
}
@@ -8,7 +16,15 @@ query getAllDialogsForParties($partyURIs: [String!], $search: String, $org: [Str
}

query getSearchAutocompleteDialogs($partyURIs: [String!], $search: String, $org: [String!], $status: [DialogStatus!]) {
searchDialogs(input: { party: $partyURIs, search: $search, org: $org, status: $status }) {
searchDialogs(
input: {
party: $partyURIs
search: $search
org: $org
status: $status
orderBy: { createdAt: null, updatedAt: DESC, dueAt: null }
}
) {
items {
...SearchAutocompleteDialogFields
}
2 changes: 1 addition & 1 deletion packages/bff/package.json
Original file line number Diff line number Diff line change
@@ -22,7 +22,7 @@
"@azure/keyvault-keys": "^4.7.2",
"@azure/monitor-opentelemetry": "1.7.0",
"@digdir/dialogporten-node-logger": "workspace:*",
"@digdir/dialogporten-schema": "1.40.0",
"@digdir/dialogporten-schema": "1.47.2-9e67931",
"@fastify/cookie": "^9.3.1",
"@fastify/cors": "^9.0.1",
"@fastify/formbody": "^7.4.0",
12 changes: 6 additions & 6 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit ace8a22

Please sign in to comment.