@digdir/dialogporten-schema 1.45.0 → 1.45.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digdir/dialogporten-schema",
3
- "version": "1.45.0",
3
+ "version": "1.45.1",
4
4
  "description": "GraphQl schema and OpenAPI spec for Dialogporten",
5
5
  "engines": {
6
6
  "node": "22"
@@ -17,7 +17,7 @@
17
17
  },
18
18
  "devDependencies": {
19
19
  "vitest": "2.1.8",
20
- "glob": "11.0.0",
20
+ "glob": "11.0.1",
21
21
  "graphql-tag": "2.12.6"
22
22
  },
23
23
  "license": "ISC",
@@ -211,10 +211,25 @@ type SearchDialog {
211
211
  seenSinceLastUpdate: [SeenLog!]!
212
212
  }
213
213
 
214
+ type SearchDialogContinuationTokenParsingError implements SearchDialogError {
215
+ message: String!
216
+ }
217
+
214
218
  type SearchDialogForbidden implements SearchDialogError {
215
219
  message: String!
216
220
  }
217
221
 
222
+ type SearchDialogOrderByParsingError implements SearchDialogError {
223
+ message: String!
224
+ }
225
+
226
+ "Set only one property per object."
227
+ type SearchDialogSortType {
228
+ createdAt: OrderDirection
229
+ updatedAt: OrderDirection
230
+ dueAt: OrderDirection
231
+ }
232
+
218
233
  type SearchDialogValidationError implements SearchDialogError {
219
234
  message: String!
220
235
  }
@@ -222,8 +237,9 @@ type SearchDialogValidationError implements SearchDialogError {
222
237
  type SearchDialogsPayload {
223
238
  items: [SearchDialog!]
224
239
  hasNextPage: Boolean!
240
+ "Use this token to fetch the next page of dialogs, must be used in combination with OrderBy from the previous response"
225
241
  continuationToken: String
226
- orderBy: String
242
+ orderBy: [SearchDialogSortType!]!
227
243
  errors: [SearchDialogError!]!
228
244
  }
229
245
 
@@ -294,8 +310,21 @@ input SearchDialogInput {
294
310
  dueBefore: DateTime
295
311
  "Search string for free text search. Will attempt to fuzzily match in all free text fields in the aggregate"
296
312
  search: String
297
- "Limit free text search to texts with this language code, e.g. 'no', 'en'. Culture codes will be normalized to neutral language codes (ISO 639). Default: search all culture codes"
313
+ "Limit free text search to texts with this language code, e.g. 'nb', 'en'. Culture codes will be normalized to neutral language codes (ISO 639). Default: search all culture codes"
298
314
  searchLanguageCode: String
315
+ "Limit the number of results returned, defaults to 100, max 1000"
316
+ limit: Int
317
+ "Continuation token for pagination"
318
+ continuationToken: String
319
+ "Sort the results by one or more fields"
320
+ orderBy: [SearchDialogSortTypeInput!]
321
+ }
322
+
323
+ "Set only one property per object."
324
+ input SearchDialogSortTypeInput {
325
+ createdAt: OrderDirection
326
+ updatedAt: OrderDirection
327
+ dueAt: OrderDirection
299
328
  }
300
329
 
301
330
  input SetSystemLabelInput {
@@ -386,6 +415,11 @@ enum HttpVerb {
386
415
  CONNECT
387
416
  }
388
417
 
418
+ enum OrderDirection {
419
+ ASC
420
+ DESC
421
+ }
422
+
389
423
  enum SystemLabel {
390
424
  DEFAULT
391
425
  BIN
package/src/index.js CHANGED
@@ -211,10 +211,25 @@ type SearchDialog {
211
211
  seenSinceLastUpdate: [SeenLog!]!
212
212
  }
213
213
 
214
+ type SearchDialogContinuationTokenParsingError implements SearchDialogError {
215
+ message: String!
216
+ }
217
+
214
218
  type SearchDialogForbidden implements SearchDialogError {
215
219
  message: String!
216
220
  }
217
221
 
222
+ type SearchDialogOrderByParsingError implements SearchDialogError {
223
+ message: String!
224
+ }
225
+
226
+ "Set only one property per object."
227
+ type SearchDialogSortType {
228
+ createdAt: OrderDirection
229
+ updatedAt: OrderDirection
230
+ dueAt: OrderDirection
231
+ }
232
+
218
233
  type SearchDialogValidationError implements SearchDialogError {
219
234
  message: String!
220
235
  }
@@ -222,8 +237,9 @@ type SearchDialogValidationError implements SearchDialogError {
222
237
  type SearchDialogsPayload {
223
238
  items: [SearchDialog!]
224
239
  hasNextPage: Boolean!
240
+ "Use this token to fetch the next page of dialogs, must be used in combination with OrderBy from the previous response"
225
241
  continuationToken: String
226
- orderBy: String
242
+ orderBy: [SearchDialogSortType!]!
227
243
  errors: [SearchDialogError!]!
228
244
  }
229
245
 
@@ -294,8 +310,21 @@ input SearchDialogInput {
294
310
  dueBefore: DateTime
295
311
  "Search string for free text search. Will attempt to fuzzily match in all free text fields in the aggregate"
296
312
  search: String
297
- "Limit free text search to texts with this language code, e.g. 'no', 'en'. Culture codes will be normalized to neutral language codes (ISO 639). Default: search all culture codes"
313
+ "Limit free text search to texts with this language code, e.g. 'nb', 'en'. Culture codes will be normalized to neutral language codes (ISO 639). Default: search all culture codes"
298
314
  searchLanguageCode: String
315
+ "Limit the number of results returned, defaults to 100, max 1000"
316
+ limit: Int
317
+ "Continuation token for pagination"
318
+ continuationToken: String
319
+ "Sort the results by one or more fields"
320
+ orderBy: [SearchDialogSortTypeInput!]
321
+ }
322
+
323
+ "Set only one property per object."
324
+ input SearchDialogSortTypeInput {
325
+ createdAt: OrderDirection
326
+ updatedAt: OrderDirection
327
+ dueAt: OrderDirection
299
328
  }
300
329
 
301
330
  input SetSystemLabelInput {
@@ -386,6 +415,11 @@ enum HttpVerb {
386
415
  CONNECT
387
416
  }
388
417
 
418
+ enum OrderDirection {
419
+ ASC
420
+ DESC
421
+ }
422
+
389
423
  enum SystemLabel {
390
424
  DEFAULT
391
425
  BIN
@@ -4947,7 +4947,7 @@
4947
4947
  }
4948
4948
  },
4949
4949
  {
4950
- "description": "Limit free text search to texts with this language code, e.g. \u0027no\u0027, \u0027en\u0027. Culture codes will be normalized to neutral language codes (ISO 639). Default: search all culture codes",
4950
+ "description": "Limit free text search to texts with this language code, e.g. \u0027nb\u0027, \u0027en\u0027. Culture codes will be normalized to neutral language codes (ISO 639). Default: search all culture codes",
4951
4951
  "in": "query",
4952
4952
  "name": "searchLanguageCode",
4953
4953
  "schema": {
@@ -5788,7 +5788,7 @@
5788
5788
  }
5789
5789
  },
5790
5790
  {
5791
- "description": "Limit free text search to texts with this language code, e.g. \u0027no\u0027, \u0027en\u0027. Culture codes will be normalized to neutral language codes (ISO 639). Default: search all culture codes",
5791
+ "description": "Limit free text search to texts with this language code, e.g. \u0027nb\u0027, \u0027en\u0027. Culture codes will be normalized to neutral language codes (ISO 639). Default: search all culture codes",
5792
5792
  "in": "query",
5793
5793
  "name": "searchLanguageCode",
5794
5794
  "schema": {
@@ -7056,4 +7056,4 @@
7056
7056
  "url": "https://altinn-dev-api.azure-api.net/dialogporten"
7057
7057
  }
7058
7058
  ]
7059
- }
7059
+ }