@digdir/dialogporten-schema 1.70.0-c708e89 → 1.70.0-deec550

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.70.0-c708e89",
3
+ "version": "1.70.0-deec550",
4
4
  "description": "GraphQl schema and OpenAPI spec for Dialogporten",
5
5
  "engines": {
6
6
  "node": "22"
@@ -119,7 +119,7 @@ type BulkSetSystemLabelValidationError implements BulkSetSystemLabelError {
119
119
 
120
120
  type Content {
121
121
  title: ContentValue!
122
- summary: ContentValue
122
+ summary: ContentValue!
123
123
  senderName: ContentValue
124
124
  additionalInfo: ContentValue
125
125
  extendedStatus: ContentValue
@@ -150,7 +150,6 @@ type Dialog {
150
150
  updatedAt: DateTime!
151
151
  dialogToken: String
152
152
  status: DialogStatus!
153
- hasUnopenedContent: Boolean!
154
153
  "Indicates if this dialog is intended for API consumption only and should not be shown in frontends aimed at humans"
155
154
  isApiOnly: Boolean!
156
155
  content: Content!
@@ -225,7 +224,7 @@ type Queries @authorize(policy: "enduser") {
225
224
 
226
225
  type SearchContent {
227
226
  title: ContentValue!
228
- summary: ContentValue
227
+ summary: ContentValue!
229
228
  senderName: ContentValue
230
229
  extendedStatus: ContentValue
231
230
  }
@@ -321,7 +320,7 @@ type Transmission {
321
320
 
322
321
  type TransmissionContent {
323
322
  title: ContentValue!
324
- summary: ContentValue
323
+ summary: ContentValue!
325
324
  contentReference: ContentValue
326
325
  }
327
326
 
@@ -451,6 +450,8 @@ enum DialogEventType {
451
450
  }
452
451
 
453
452
  enum DialogStatus {
453
+ "No explicit status. This is the default."
454
+ NOT_APPLICABLE
454
455
  "Started. In a serial process, this is used to indicate that, for example, a form filling is ongoing."
455
456
  IN_PROGRESS
456
457
  "Used to indicate user-initiated dialogs not yet sent."
@@ -461,8 +462,6 @@ enum DialogStatus {
461
462
  REQUIRES_ATTENTION
462
463
  "The dialogue was completed. This typically means that the dialogue is moved to a GUI archive or similar."
463
464
  COMPLETED
464
- "No explicit status. This is the default."
465
- NOT_APPLICABLE
466
465
  }
467
466
 
468
467
  enum GuiActionPriority {
package/src/index.js CHANGED
@@ -119,7 +119,7 @@ type BulkSetSystemLabelValidationError implements BulkSetSystemLabelError {
119
119
 
120
120
  type Content {
121
121
  title: ContentValue!
122
- summary: ContentValue
122
+ summary: ContentValue!
123
123
  senderName: ContentValue
124
124
  additionalInfo: ContentValue
125
125
  extendedStatus: ContentValue
@@ -150,7 +150,6 @@ type Dialog {
150
150
  updatedAt: DateTime!
151
151
  dialogToken: String
152
152
  status: DialogStatus!
153
- hasUnopenedContent: Boolean!
154
153
  "Indicates if this dialog is intended for API consumption only and should not be shown in frontends aimed at humans"
155
154
  isApiOnly: Boolean!
156
155
  content: Content!
@@ -225,7 +224,7 @@ type Queries @authorize(policy: "enduser") {
225
224
 
226
225
  type SearchContent {
227
226
  title: ContentValue!
228
- summary: ContentValue
227
+ summary: ContentValue!
229
228
  senderName: ContentValue
230
229
  extendedStatus: ContentValue
231
230
  }
@@ -321,7 +320,7 @@ type Transmission {
321
320
 
322
321
  type TransmissionContent {
323
322
  title: ContentValue!
324
- summary: ContentValue
323
+ summary: ContentValue!
325
324
  contentReference: ContentValue
326
325
  }
327
326
 
@@ -451,6 +450,8 @@ enum DialogEventType {
451
450
  }
452
451
 
453
452
  enum DialogStatus {
453
+ "No explicit status. This is the default."
454
+ NOT_APPLICABLE
454
455
  "Started. In a serial process, this is used to indicate that, for example, a form filling is ongoing."
455
456
  IN_PROGRESS
456
457
  "Used to indicate user-initiated dialogs not yet sent."
@@ -461,8 +462,6 @@ enum DialogStatus {
461
462
  REQUIRES_ATTENTION
462
463
  "The dialogue was completed. This typically means that the dialogue is moved to a GUI archive or similar."
463
464
  COMPLETED
464
- "No explicit status. This is the default."
465
- NOT_APPLICABLE
466
465
  }
467
466
 
468
467
  enum GuiActionPriority {
@@ -43,21 +43,21 @@
43
43
  "DialogsEntities_DialogStatus": {
44
44
  "description": "",
45
45
  "enum": [
46
+ "NotApplicable",
46
47
  "InProgress",
47
48
  "Draft",
49
+ "Awaiting",
48
50
  "RequiresAttention",
49
- "Completed",
50
- "NotApplicable",
51
- "Awaiting"
51
+ "Completed"
52
52
  ],
53
53
  "type": "string",
54
54
  "x-enumNames": [
55
+ "NotApplicable",
55
56
  "InProgress",
56
57
  "Draft",
58
+ "Awaiting",
57
59
  "RequiresAttention",
58
- "Completed",
59
- "NotApplicable",
60
- "Awaiting"
60
+ "Completed"
61
61
  ]
62
62
  },
63
63
  "DialogsEntitiesActions_DialogGuiActionPriority": {
@@ -516,7 +516,6 @@
516
516
  },
517
517
  "summary": {
518
518
  "description": "A short summary of the dialog and its current state.",
519
- "nullable": true,
520
519
  "oneOf": [
521
520
  {
522
521
  "$ref": "#/components/schemas/V1CommonContent_ContentValue"
@@ -620,10 +619,6 @@
620
619
  "nullable": true,
621
620
  "type": "array"
622
621
  },
623
- "hasUnopenedContent": {
624
- "description": "Indicates whether the dialog contains content that has not been viewed or opened by the user yet.",
625
- "type": "boolean"
626
- },
627
622
  "id": {
628
623
  "description": "The unique identifier for the dialog in UUIDv7 format.",
629
624
  "example": "01913cd5-784f-7d3b-abef-4c77b1f0972d",
@@ -691,16 +686,6 @@
691
686
  }
692
687
  ]
693
688
  },
694
- "systemLabel": {
695
- "deprecated": true,
696
- "description": "System defined label used to categorize dialogs.\nThis is obsolete and will only show; Default, Bin or Archive.\nUse SystemLabels on EndUserContext instead.",
697
- "oneOf": [
698
- {
699
- "$ref": "#/components/schemas/DialogEndUserContextsEntities_SystemLabel"
700
- }
701
- ],
702
- "x-deprecatedMessage": "Use EndUserContext.SystemLabels instead."
703
- },
704
689
  "transmissions": {
705
690
  "description": "The immutable list of transmissions associated with the dialog.",
706
691
  "items": {
@@ -1092,11 +1077,6 @@
1092
1077
  "description": "Flag indicating if the authenticated user is authorized for this transmission. If not, embedded content and\nthe attachments will not be available.",
1093
1078
  "type": "boolean"
1094
1079
  },
1095
- "isOpened": {
1096
- "description": "Indicates whether the dialog transmission has been opened.",
1097
- "nullable": true,
1098
- "type": "boolean"
1099
- },
1100
1080
  "relatedTransmissionId": {
1101
1081
  "description": "Reference to any other transmission that this transmission is related to.",
1102
1082
  "format": "guid",
@@ -1189,7 +1169,6 @@
1189
1169
  },
1190
1170
  "summary": {
1191
1171
  "description": "The transmission summary.",
1192
- "nullable": true,
1193
1172
  "oneOf": [
1194
1173
  {
1195
1174
  "$ref": "#/components/schemas/V1CommonContent_ContentValue"
@@ -1340,7 +1319,6 @@
1340
1319
  },
1341
1320
  "summary": {
1342
1321
  "description": "The summary of the content.",
1343
- "nullable": true,
1344
1322
  "oneOf": [
1345
1323
  {
1346
1324
  "$ref": "#/components/schemas/V1CommonContent_ContentValue"
@@ -1456,7 +1434,6 @@
1456
1434
  },
1457
1435
  "summary": {
1458
1436
  "description": "A short summary of the dialog and its current state.",
1459
- "nullable": true,
1460
1437
  "oneOf": [
1461
1438
  {
1462
1439
  "$ref": "#/components/schemas/V1CommonContent_ContentValue"
@@ -1522,10 +1499,6 @@
1522
1499
  "nullable": true,
1523
1500
  "type": "integer"
1524
1501
  },
1525
- "hasUnopenedContent": {
1526
- "description": "Indicates whether the dialog contains content that has not been viewed or opened by the user yet.",
1527
- "type": "boolean"
1528
- },
1529
1502
  "id": {
1530
1503
  "description": "The unique identifier for the dialog in UUIDv7 format.",
1531
1504
  "example": "01913cd5-784f-7d3b-abef-4c77b1f0972d",
@@ -1596,16 +1569,6 @@
1596
1569
  }
1597
1570
  ]
1598
1571
  },
1599
- "systemLabel": {
1600
- "deprecated": true,
1601
- "description": "System defined label used to categorize dialogs.\nThis is obsolete and will only show; Default, Bin or Archive.\nUse SystemLabels on EndUserContext instead.",
1602
- "oneOf": [
1603
- {
1604
- "$ref": "#/components/schemas/DialogEndUserContextsEntities_SystemLabel"
1605
- }
1606
- ],
1607
- "x-deprecatedMessage": "Use EndUserContext.SystemLabels instead."
1608
- },
1609
1572
  "updatedAt": {
1610
1573
  "description": "The date and time when the dialog was last updated.",
1611
1574
  "example": "2022-12-31T23:59:59Z",
@@ -1847,7 +1810,6 @@
1847
1810
  },
1848
1811
  "summary": {
1849
1812
  "description": "The summary of the content.",
1850
- "nullable": true,
1851
1813
  "oneOf": [
1852
1814
  {
1853
1815
  "$ref": "#/components/schemas/V1CommonContent_ContentValue"
@@ -2046,30 +2008,6 @@
2046
2008
  },
2047
2009
  "type": "object"
2048
2010
  },
2049
- "V1ServiceOwnerCommonDialogStatuses_DialogStatusInput": {
2050
- "description": "",
2051
- "enum": [
2052
- "New",
2053
- "InProgress",
2054
- "Draft",
2055
- "Sent",
2056
- "RequiresAttention",
2057
- "Completed",
2058
- "NotApplicable",
2059
- "Awaiting"
2060
- ],
2061
- "type": "string",
2062
- "x-enumNames": [
2063
- "New",
2064
- "InProgress",
2065
- "Draft",
2066
- "Sent",
2067
- "RequiresAttention",
2068
- "Completed",
2069
- "NotApplicable",
2070
- "Awaiting"
2071
- ]
2072
- },
2073
2011
  "V1ServiceOwnerDialogsCommandsCreate_Activity": {
2074
2012
  "additionalProperties": false,
2075
2013
  "properties": {
@@ -2327,7 +2265,6 @@
2327
2265
  },
2328
2266
  "summary": {
2329
2267
  "description": "A short summary of the dialog and its current state.\nSupported media types: text/plain",
2330
- "nullable": true,
2331
2268
  "oneOf": [
2332
2269
  {
2333
2270
  "$ref": "#/components/schemas/V1CommonContent_ContentValue"
@@ -2483,7 +2420,7 @@
2483
2420
  "description": "The aggregated status of the dialog.",
2484
2421
  "oneOf": [
2485
2422
  {
2486
- "$ref": "#/components/schemas/V1ServiceOwnerCommonDialogStatuses_DialogStatusInput"
2423
+ "$ref": "#/components/schemas/DialogsEntities_DialogStatus"
2487
2424
  }
2488
2425
  ]
2489
2426
  },
@@ -2772,7 +2709,6 @@
2772
2709
  },
2773
2710
  "summary": {
2774
2711
  "description": "The transmission summary.",
2775
- "nullable": true,
2776
2712
  "oneOf": [
2777
2713
  {
2778
2714
  "$ref": "#/components/schemas/V1CommonContent_ContentValue"
@@ -3191,7 +3127,6 @@
3191
3127
  },
3192
3128
  "summary": {
3193
3129
  "description": "A short summary of the dialog and its current state. Must be text/plain.",
3194
- "nullable": true,
3195
3130
  "oneOf": [
3196
3131
  {
3197
3132
  "$ref": "#/components/schemas/V1CommonContent_ContentValue"
@@ -3309,7 +3244,7 @@
3309
3244
  "description": "The aggregated status of the dialog.",
3310
3245
  "oneOf": [
3311
3246
  {
3312
- "$ref": "#/components/schemas/V1ServiceOwnerCommonDialogStatuses_DialogStatusInput"
3247
+ "$ref": "#/components/schemas/DialogsEntities_DialogStatus"
3313
3248
  }
3314
3249
  ]
3315
3250
  },
@@ -3558,7 +3493,6 @@
3558
3493
  },
3559
3494
  "summary": {
3560
3495
  "description": "The transmission summary.",
3561
- "nullable": true,
3562
3496
  "oneOf": [
3563
3497
  {
3564
3498
  "$ref": "#/components/schemas/V1CommonContent_ContentValue"
@@ -3635,7 +3569,6 @@
3635
3569
  },
3636
3570
  "summary": {
3637
3571
  "description": "A short summary of the dialog and its current state.",
3638
- "nullable": true,
3639
3572
  "oneOf": [
3640
3573
  {
3641
3574
  "$ref": "#/components/schemas/V1CommonContent_ContentValue"
@@ -3741,10 +3674,6 @@
3741
3674
  "nullable": true,
3742
3675
  "type": "array"
3743
3676
  },
3744
- "hasUnopenedContent": {
3745
- "description": "Indicates whether the dialog contains content that has not been viewed or opened by the user yet.",
3746
- "type": "boolean"
3747
- },
3748
3677
  "id": {
3749
3678
  "description": "The unique identifier for the dialog in UUIDv7 format.",
3750
3679
  "example": "01913cd5-784f-7d3b-abef-4c77b1f0972d",
@@ -3833,16 +3762,6 @@
3833
3762
  }
3834
3763
  ]
3835
3764
  },
3836
- "systemLabel": {
3837
- "deprecated": true,
3838
- "description": "System defined label used to categorize dialogs.\nThis is obsolete and will only show; Default, Bin or Archive.\nUse SystemLabels on EndUserContext instead.",
3839
- "oneOf": [
3840
- {
3841
- "$ref": "#/components/schemas/DialogEndUserContextsEntities_SystemLabel"
3842
- }
3843
- ],
3844
- "x-deprecatedMessage": "Use EndUserContext.SystemLabels instead."
3845
- },
3846
3765
  "transmissions": {
3847
3766
  "description": "The immutable list of transmissions associated with the dialog.",
3848
3767
  "items": {
@@ -4277,11 +4196,6 @@
4277
4196
  "nullable": true,
4278
4197
  "type": "boolean"
4279
4198
  },
4280
- "isOpened": {
4281
- "description": "Indicates whether the dialog transmission has been opened.",
4282
- "nullable": true,
4283
- "type": "boolean"
4284
- },
4285
4199
  "relatedTransmissionId": {
4286
4200
  "description": "Reference to any other transmission that this transmission is related to.",
4287
4201
  "format": "guid",
@@ -4374,7 +4288,6 @@
4374
4288
  },
4375
4289
  "summary": {
4376
4290
  "description": "The transmission summary.",
4377
- "nullable": true,
4378
4291
  "oneOf": [
4379
4292
  {
4380
4293
  "$ref": "#/components/schemas/V1CommonContent_ContentValue"
@@ -4538,7 +4451,6 @@
4538
4451
  },
4539
4452
  "summary": {
4540
4453
  "description": "The summary of the content.",
4541
- "nullable": true,
4542
4454
  "oneOf": [
4543
4455
  {
4544
4456
  "$ref": "#/components/schemas/V1CommonContent_ContentValue"
@@ -4689,7 +4601,6 @@
4689
4601
  },
4690
4602
  "summary": {
4691
4603
  "description": "A short summary of the dialog and its current state.",
4692
- "nullable": true,
4693
4604
  "oneOf": [
4694
4605
  {
4695
4606
  "$ref": "#/components/schemas/V1CommonContent_ContentValue"
@@ -4762,10 +4673,6 @@
4762
4673
  "nullable": true,
4763
4674
  "type": "integer"
4764
4675
  },
4765
- "hasUnopenedContent": {
4766
- "description": "Indicates whether the dialog contains content that has not been viewed or opened by the user yet.",
4767
- "type": "boolean"
4768
- },
4769
4676
  "id": {
4770
4677
  "description": "The unique identifier for the dialog in UUIDv7 format.",
4771
4678
  "example": "01913cd5-784f-7d3b-abef-4c77b1f0972d",
@@ -4850,16 +4757,6 @@
4850
4757
  }
4851
4758
  ]
4852
4759
  },
4853
- "systemLabel": {
4854
- "deprecated": true,
4855
- "description": "System defined label used to categorize dialogs.\nThis is obsolete and will only show; Default, Bin or Archive.\nUse SystemLabels on EndUserContext instead.",
4856
- "oneOf": [
4857
- {
4858
- "$ref": "#/components/schemas/DialogEndUserContextsEntities_SystemLabel"
4859
- }
4860
- ],
4861
- "x-deprecatedMessage": "Use EndUserContext.SystemLabels instead."
4862
- },
4863
4760
  "updatedAt": {
4864
4761
  "description": "The date and time when the dialog was last updated.",
4865
4762
  "example": "2022-12-31T23:59:59Z",
@@ -5136,7 +5033,6 @@
5136
5033
  },
5137
5034
  "summary": {
5138
5035
  "description": "The summary of the content.",
5139
- "nullable": true,
5140
5036
  "oneOf": [
5141
5037
  {
5142
5038
  "$ref": "#/components/schemas/V1CommonContent_ContentValue"