@digdir/dialogporten-schema 1.44.2 → 1.45.0-ce0a07d

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.44.2",
3
+ "version": "1.45.0-ce0a07d",
4
4
  "description": "GraphQl schema and OpenAPI spec for Dialogporten",
5
5
  "engines": {
6
6
  "node": "22"
@@ -8,7 +8,7 @@
8
8
  "author": "DigDir",
9
9
  "main": "src/index.js",
10
10
  "repository": {
11
- "url": "git+https://github.com/digdir/dialogporten.git"
11
+ "url": "git+https://github.com/Altinn/dialogporten.git"
12
12
  },
13
13
  "scripts": {
14
14
  "build": "./gql-to-js.js",
@@ -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 {
@@ -304,20 +333,32 @@ input SetSystemLabelInput {
304
333
  }
305
334
 
306
335
  enum ActivityType {
307
- "Refers to a dialog that has been created."
336
+ "Indicates that a dialog has been created."
308
337
  DIALOG_CREATED
309
- "Refers to a dialog that has been closed."
338
+ "Indicates that a dialog has been closed."
310
339
  DIALOG_CLOSED
311
340
  "Information from the service provider, not (directly) related to any transmission."
312
341
  INFORMATION
313
- "Refers to a transmission that has been opened."
342
+ "Indicates that a transmission has been opened."
314
343
  TRANSMISSION_OPENED
315
344
  "Indicates that payment has been made."
316
345
  PAYMENT_MADE
317
346
  "Indicates that a signature has been provided."
318
347
  SIGNATURE_PROVIDED
319
- "Refers to a dialog that has been opened."
348
+ "Indicates that a dialog has been opened."
320
349
  DIALOG_OPENED
350
+ "Indicates that a dialog has been deleted."
351
+ DIALOG_DELETED
352
+ "Indicates that a dialog has been restored."
353
+ DIALOG_RESTORED
354
+ "Indicates that a dialog has been sent to signing."
355
+ SENT_TO_SIGNING
356
+ "Indicates that a dialog has been sent to form fill."
357
+ SENT_TO_FORM_FILL
358
+ "Indicates that a dialog has been sent to send in."
359
+ SENT_TO_SEND_IN
360
+ "Indicates that a dialog has been sent to payment."
361
+ SENT_TO_PAYMENT
321
362
  }
322
363
 
323
364
  enum ActorType {
@@ -374,6 +415,11 @@ enum HttpVerb {
374
415
  CONNECT
375
416
  }
376
417
 
418
+ enum OrderDirection {
419
+ ASC
420
+ DESC
421
+ }
422
+
377
423
  enum SystemLabel {
378
424
  DEFAULT
379
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 {
@@ -304,20 +333,32 @@ input SetSystemLabelInput {
304
333
  }
305
334
 
306
335
  enum ActivityType {
307
- "Refers to a dialog that has been created."
336
+ "Indicates that a dialog has been created."
308
337
  DIALOG_CREATED
309
- "Refers to a dialog that has been closed."
338
+ "Indicates that a dialog has been closed."
310
339
  DIALOG_CLOSED
311
340
  "Information from the service provider, not (directly) related to any transmission."
312
341
  INFORMATION
313
- "Refers to a transmission that has been opened."
342
+ "Indicates that a transmission has been opened."
314
343
  TRANSMISSION_OPENED
315
344
  "Indicates that payment has been made."
316
345
  PAYMENT_MADE
317
346
  "Indicates that a signature has been provided."
318
347
  SIGNATURE_PROVIDED
319
- "Refers to a dialog that has been opened."
348
+ "Indicates that a dialog has been opened."
320
349
  DIALOG_OPENED
350
+ "Indicates that a dialog has been deleted."
351
+ DIALOG_DELETED
352
+ "Indicates that a dialog has been restored."
353
+ DIALOG_RESTORED
354
+ "Indicates that a dialog has been sent to signing."
355
+ SENT_TO_SIGNING
356
+ "Indicates that a dialog has been sent to form fill."
357
+ SENT_TO_FORM_FILL
358
+ "Indicates that a dialog has been sent to send in."
359
+ SENT_TO_SEND_IN
360
+ "Indicates that a dialog has been sent to payment."
361
+ SENT_TO_PAYMENT
321
362
  }
322
363
 
323
364
  enum ActorType {
@@ -374,6 +415,11 @@ enum HttpVerb {
374
415
  CONNECT
375
416
  }
376
417
 
418
+ enum OrderDirection {
419
+ ASC
420
+ DESC
421
+ }
422
+
377
423
  enum SystemLabel {
378
424
  DEFAULT
379
425
  BIN
@@ -2094,6 +2094,13 @@
2094
2094
  },
2095
2095
  "nullable": true,
2096
2096
  "type": "array"
2097
+ },
2098
+ "id": {
2099
+ "description": "A self-defined UUIDv7 may be provided to support idempotent creation of Api Actions. If not provided, a new UUIDv7 will be generated.",
2100
+ "example": "01913cd5-784f-7d3b-abef-4c77b1f0972d",
2101
+ "format": "guid",
2102
+ "nullable": true,
2103
+ "type": "string"
2097
2104
  }
2098
2105
  },
2099
2106
  "type": "object"
@@ -2161,6 +2168,12 @@
2161
2168
  "nullable": true,
2162
2169
  "type": "array"
2163
2170
  },
2171
+ "id": {
2172
+ "description": "A self-defined UUIDv7 may be provided to support idempotent creation of attachments. If not provided, a new UUIDv7 will be generated.",
2173
+ "format": "guid",
2174
+ "nullable": true,
2175
+ "type": "string"
2176
+ },
2164
2177
  "urls": {
2165
2178
  "description": "The URLs associated with the attachment, each referring to a different representation of the attachment.",
2166
2179
  "items": {
@@ -2432,6 +2445,13 @@
2432
2445
  }
2433
2446
  ]
2434
2447
  },
2448
+ "id": {
2449
+ "description": "A self-defined UUIDv7 may be provided to support idempotent creation of Gui Actions. If not provided, a new UUIDv7 will be generated.",
2450
+ "example": "01913cd5-784f-7d3b-abef-4c77b1f0972d",
2451
+ "format": "guid",
2452
+ "nullable": true,
2453
+ "type": "string"
2454
+ },
2435
2455
  "isDeleteDialogAction": {
2436
2456
  "description": "Indicates whether the action results in the dialog being deleted. Used by frontends to implement custom UX\nfor delete actions.",
2437
2457
  "type": "boolean"
@@ -2710,7 +2730,7 @@
2710
2730
  "type": "array"
2711
2731
  },
2712
2732
  "id": {
2713
- "description": "A UUIDv7 used for merging existing data, unknown IDs will be ignored as this entity does not support user-defined IDs.",
2733
+ "description": "A self-defined UUIDv7 may be provided to support idempotent additions of Api Actions. If not provided, a new UUIDv7 will be generated.",
2714
2734
  "example": "01913cd5-784f-7d3b-abef-4c77b1f0972d",
2715
2735
  "format": "guid",
2716
2736
  "nullable": true,
@@ -2790,7 +2810,7 @@
2790
2810
  "type": "array"
2791
2811
  },
2792
2812
  "id": {
2793
- "description": "A UUIDv7 used for merging existing data, unknown IDs will be ignored as this entity does not support user-defined IDs.",
2813
+ "description": "A self-defined UUIDv7 may be provided to support idempotent additions of attachments. If not provided, a new UUIDv7 will be generated.",
2794
2814
  "example": "01913cd5-784f-7d3b-abef-4c77b1f0972d",
2795
2815
  "format": "guid",
2796
2816
  "nullable": true,
@@ -3027,7 +3047,7 @@
3027
3047
  ]
3028
3048
  },
3029
3049
  "id": {
3030
- "description": "A UUIDv7 used for merging existing data, unknown IDs will be ignored as this entity does not support user-defined IDs.",
3050
+ "description": "A self-defined UUIDv7 may be provided to support idempotent additions of Gui Actions. If not provided, a new UUIDv7 will be generated.",
3031
3051
  "example": "01913cd5-784f-7d3b-abef-4c77b1f0972d",
3032
3052
  "format": "guid",
3033
3053
  "nullable": true,
@@ -3160,7 +3180,7 @@
3160
3180
  "type": "array"
3161
3181
  },
3162
3182
  "id": {
3163
- "description": "A self-defined UUIDv7 may be provided to support idempotent creation of transmission attachments. If not provided, a new UUIDv7 will be generated.",
3183
+ "description": "A self-defined UUIDv7 may be provided to support idempotent additions of transmission attachments. If not provided, a new UUIDv7 will be generated.",
3164
3184
  "example": "01913cd5-784f-7d3b-abef-4c77b1f0972d",
3165
3185
  "format": "guid",
3166
3186
  "nullable": true,
@@ -4927,7 +4947,7 @@
4927
4947
  }
4928
4948
  },
4929
4949
  {
4930
- "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",
4931
4951
  "in": "query",
4932
4952
  "name": "searchLanguageCode",
4933
4953
  "schema": {
@@ -5768,7 +5788,7 @@
5768
5788
  }
5769
5789
  },
5770
5790
  {
5771
- "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",
5772
5792
  "in": "query",
5773
5793
  "name": "searchLanguageCode",
5774
5794
  "schema": {
@@ -5838,7 +5858,7 @@
5838
5858
  ]
5839
5859
  },
5840
5860
  "post": {
5841
- "description": "The dialog is created with the given configuration. For more information see the documentation (link TBD).\n\nFor detailed information on validation rules, see [the source for CreateDialogCommandValidator](https://github.com/digdir/dialogporten/blob/main/src/Digdir.Domain.Dialogporten.Application/Features/V1/ServiceOwner/Dialogs/Commands/Create/CreateDialogCommandValidator.cs)",
5861
+ "description": "The dialog is created with the given configuration. For more information see the documentation (link TBD).\n\nFor detailed information on validation rules, see [the source for CreateDialogCommandValidator](https://github.com/altinn/dialogporten/blob/main/src/Digdir.Domain.Dialogporten.Application/Features/V1/ServiceOwner/Dialogs/Commands/Create/CreateDialogCommandValidator.cs)",
5842
5862
  "operationId": "V1ServiceOwnerDialogsCreate_Dialog",
5843
5863
  "requestBody": {
5844
5864
  "content": {