@digdir/dialogporten-schema 1.45.0 → 1.45.1-dda7c1f

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-dda7c1f",
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
@@ -2268,7 +2268,7 @@
2268
2268
  },
2269
2269
  "type": "object"
2270
2270
  },
2271
- "V1ServiceOwnerDialogsCommandsCreate_DialogCommand": {
2271
+ "V1ServiceOwnerDialogsCommandsCreate_Dialog": {
2272
2272
  "additionalProperties": false,
2273
2273
  "properties": {
2274
2274
  "activities": {
@@ -3253,6 +3253,15 @@
3253
3253
  },
3254
3254
  "type": "object"
3255
3255
  },
3256
+ "V1ServiceOwnerDialogsCreate_DialogRequest": {
3257
+ "additionalProperties": false,
3258
+ "properties": {
3259
+ "dto": {
3260
+ "$ref": "#/components/schemas/V1ServiceOwnerDialogsCommandsCreate_Dialog"
3261
+ }
3262
+ },
3263
+ "type": "object"
3264
+ },
3256
3265
  "V1ServiceOwnerDialogSeenLogsQueriesGet_SeenLog": {
3257
3266
  "additionalProperties": false,
3258
3267
  "properties": {
@@ -4947,7 +4956,7 @@
4947
4956
  }
4948
4957
  },
4949
4958
  {
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",
4959
+ "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
4960
  "in": "query",
4952
4961
  "name": "searchLanguageCode",
4953
4962
  "schema": {
@@ -5788,7 +5797,7 @@
5788
5797
  }
5789
5798
  },
5790
5799
  {
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",
5800
+ "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
5801
  "in": "query",
5793
5802
  "name": "searchLanguageCode",
5794
5803
  "schema": {
@@ -5864,14 +5873,12 @@
5864
5873
  "content": {
5865
5874
  "application/json": {
5866
5875
  "schema": {
5867
- "$ref": "#/components/schemas/V1ServiceOwnerDialogsCommandsCreate_DialogCommand"
5876
+ "$ref": "#/components/schemas/V1ServiceOwnerDialogsCommandsCreate_Dialog"
5868
5877
  }
5869
5878
  }
5870
5879
  },
5871
- "description": "",
5872
5880
  "required": true,
5873
- "x-name": "CreateDialogCommand",
5874
- "x-position": 1
5881
+ "x-name": "dto"
5875
5882
  },
5876
5883
  "responses": {
5877
5884
  "201": {
@@ -7056,4 +7063,4 @@
7056
7063
  "url": "https://altinn-dev-api.azure-api.net/dialogporten"
7057
7064
  }
7058
7065
  ]
7059
- }
7066
+ }