@digdir/dialogporten-schema 1.15.0 → 1.16.0-8214acb

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.15.0",
3
+ "version": "1.16.0-8214acb",
4
4
  "description": "GraphQl schema and OpenAPI spec for Dialogporten",
5
5
  "engines": {
6
6
  "node": "20"
@@ -1,5 +1,6 @@
1
1
  schema {
2
2
  query: Queries
3
+ subscription: Subscriptions
3
4
  }
4
5
 
5
6
  interface DialogByIdError {
@@ -129,6 +130,10 @@ type DialogByIdPayload {
129
130
  errors: [DialogByIdError!]!
130
131
  }
131
132
 
133
+ type DialogUpdatedPayload {
134
+ id: UUID!
135
+ }
136
+
132
137
  type GuiAction {
133
138
  id: UUID!
134
139
  action: String!
@@ -201,6 +206,10 @@ type SeenLog {
201
206
  isCurrentEndUser: Boolean!
202
207
  }
203
208
 
209
+ type Subscriptions @authorize(policy: "enduser") {
210
+ dialogUpdated(dialogId: UUID!): DialogUpdatedPayload!
211
+ }
212
+
204
213
  type Transmission {
205
214
  id: UUID!
206
215
  createdAt: DateTime!
@@ -286,10 +295,10 @@ enum DialogStatus {
286
295
  NEW
287
296
  "Started. In a serial process, this is used to indicate that, for example, a form filling is ongoing."
288
297
  IN_PROGRESS
289
- "Equivalent to \"InProgress\", but will be used by the workspace\/frontend for display purposes."
290
- SIGNING
291
- "For processing by the service owner. In a serial process, this is used after a submission is made."
292
- PROCESSING
298
+ "Used to indicate user-initiated dialogs not yet sent."
299
+ DRAFT
300
+ "Sent by the service owner. In a serial process, this is used after a submission is made."
301
+ SENT
293
302
  "Used to indicate that the dialogue is in progress\/under work, but is in a state where the user must do something - for example, correct an error, or other conditions that hinder further processing."
294
303
  REQUIRES_ATTENTION
295
304
  "The dialogue was completed. This typically means that the dialogue is moved to a GUI archive or similar."
package/src/index.js CHANGED
@@ -1,5 +1,6 @@
1
1
  export const schema_verified_graphql = `schema {
2
2
  query: Queries
3
+ subscription: Subscriptions
3
4
  }
4
5
 
5
6
  interface DialogByIdError {
@@ -129,6 +130,10 @@ type DialogByIdPayload {
129
130
  errors: [DialogByIdError!]!
130
131
  }
131
132
 
133
+ type DialogUpdatedPayload {
134
+ id: UUID!
135
+ }
136
+
132
137
  type GuiAction {
133
138
  id: UUID!
134
139
  action: String!
@@ -201,6 +206,10 @@ type SeenLog {
201
206
  isCurrentEndUser: Boolean!
202
207
  }
203
208
 
209
+ type Subscriptions @authorize(policy: "enduser") {
210
+ dialogUpdated(dialogId: UUID!): DialogUpdatedPayload!
211
+ }
212
+
204
213
  type Transmission {
205
214
  id: UUID!
206
215
  createdAt: DateTime!
@@ -286,10 +295,10 @@ enum DialogStatus {
286
295
  NEW
287
296
  "Started. In a serial process, this is used to indicate that, for example, a form filling is ongoing."
288
297
  IN_PROGRESS
289
- "Equivalent to 'InProgress', but will be used by the workspace\/frontend for display purposes."
290
- SIGNING
291
- "For processing by the service owner. In a serial process, this is used after a submission is made."
292
- PROCESSING
298
+ "Used to indicate user-initiated dialogs not yet sent."
299
+ DRAFT
300
+ "Sent by the service owner. In a serial process, this is used after a submission is made."
301
+ SENT
293
302
  "Used to indicate that the dialogue is in progress\/under work, but is in a state where the user must do something - for example, correct an error, or other conditions that hinder further processing."
294
303
  REQUIRES_ATTENTION
295
304
  "The dialogue was completed. This typically means that the dialogue is moved to a GUI archive or similar."
@@ -873,8 +873,8 @@
873
873
  "enum": [
874
874
  "New",
875
875
  "InProgress",
876
- "Signing",
877
- "Processing",
876
+ "Draft",
877
+ "Sent",
878
878
  "RequiresAttention",
879
879
  "Completed"
880
880
  ],
@@ -882,8 +882,8 @@
882
882
  "x-enumNames": [
883
883
  "New",
884
884
  "InProgress",
885
- "Signing",
886
- "Processing",
885
+ "Draft",
886
+ "Sent",
887
887
  "RequiresAttention",
888
888
  "Completed"
889
889
  ]
@@ -3494,7 +3494,7 @@
3494
3494
  "type": "array"
3495
3495
  },
3496
3496
  "id": {
3497
- "description": "The UUDIv7 of the action may be provided to support idempotent additions to the list of API actions.\nIf not supplied, a new UUIDv7 will be generated.",
3497
+ "description": "A UUIDv7 used for merging existing data, unknown IDs will be ignored as this entity does not support user-defined IDs.",
3498
3498
  "example": "01913cd5-784f-7d3b-abef-4c77b1f0972d",
3499
3499
  "format": "guid",
3500
3500
  "nullable": true,
@@ -3525,7 +3525,7 @@
3525
3525
  ]
3526
3526
  },
3527
3527
  "id": {
3528
- "description": "The UUDIv7 of the action may be provided to support idempotent additions to the list of API action endpoints.\nIf not supplied, a new UUIDv7 will be generated.",
3528
+ "description": "A UUIDv7 used for merging existing data, unknown IDs will be ignored as this entity does not support user-defined IDs.",
3529
3529
  "example": "01913cd5-784f-7d3b-abef-4c77b1f0972d",
3530
3530
  "format": "guid",
3531
3531
  "nullable": true,
@@ -3573,7 +3573,7 @@
3573
3573
  "type": "array"
3574
3574
  },
3575
3575
  "id": {
3576
- "description": "A self-defined UUIDv7 may be provided in order to support idempotent updates of attachments. If not supplied,\na new UUIDv7 will be generated.",
3576
+ "description": "A UUIDv7 used for merging existing data, unknown IDs will be ignored as this entity does not support user-defined IDs.",
3577
3577
  "example": "01913cd5-784f-7d3b-abef-4c77b1f0972d",
3578
3578
  "format": "guid",
3579
3579
  "nullable": true,
@@ -3601,7 +3601,7 @@
3601
3601
  ]
3602
3602
  },
3603
3603
  "id": {
3604
- "description": "A self-defined UUIDv7 may be provided in order to support idempotent updates of attachment URLs. If not supplied,\na new UUIDv7 will be generated.",
3604
+ "description": "A UUIDv7 used for merging existing data, unknown IDs will be ignored as this entity does not support user-defined IDs.",
3605
3605
  "example": "01913cd5-784f-7d3b-abef-4c77b1f0972d",
3606
3606
  "format": "guid",
3607
3607
  "nullable": true,
@@ -3644,7 +3644,7 @@
3644
3644
  ]
3645
3645
  },
3646
3646
  "id": {
3647
- "description": "The UUDIv7 of the action may be provided to support idempotent additions to the list of actions. If not supplied,\na new UUIDv7 will be generated.",
3647
+ "description": "A UUIDv7 used for merging existing data, unknown IDs will be ignored as this entity does not support user-defined IDs.",
3648
3648
  "example": "01913cd5-784f-7d3b-abef-4c77b1f0972d",
3649
3649
  "format": "guid",
3650
3650
  "nullable": true,
@@ -3931,13 +3931,6 @@
3931
3931
  },
3932
3932
  "type": "array"
3933
3933
  },
3934
- "id": {
3935
- "description": "A self-defined UUIDv7 may be provided in order to support idempotent updates of attachments. If not supplied,\na new UUIDv7 will be generated.",
3936
- "example": "01913cd5-784f-7d3b-abef-4c77b1f0972d",
3937
- "format": "guid",
3938
- "nullable": true,
3939
- "type": "string"
3940
- },
3941
3934
  "urls": {
3942
3935
  "description": "The URLs associated with the attachment, each referring to a different representation of the attachment.",
3943
3936
  "items": {
@@ -3959,13 +3952,6 @@
3959
3952
  }
3960
3953
  ]
3961
3954
  },
3962
- "id": {
3963
- "description": "A self-defined UUIDv7 may be provided in order to support idempotent updates of attachment URLs. If not supplied,\na new UUIDv7 will be generated.",
3964
- "example": "01913cd5-784f-7d3b-abef-4c77b1f0972d",
3965
- "format": "guid",
3966
- "nullable": true,
3967
- "type": "string"
3968
- },
3969
3955
  "mediaType": {
3970
3956
  "description": "The media type of the attachment.",
3971
3957
  "example": "application/pdf\napplication/zip",