@digdir/dialogporten-schema 1.16.0 → 1.17.0-2bf0d30

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.16.0",
3
+ "version": "1.17.0-2bf0d30",
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 {
@@ -94,6 +95,8 @@ type Dialog {
94
95
  serviceResourceType: String!
95
96
  party: String!
96
97
  progress: Int
98
+ process: String
99
+ precedingProcess: String
97
100
  extendedStatus: String
98
101
  externalReference: String
99
102
  visibleFrom: DateTime
@@ -129,6 +132,10 @@ type DialogByIdPayload {
129
132
  errors: [DialogByIdError!]!
130
133
  }
131
134
 
135
+ type DialogUpdatedPayload {
136
+ id: UUID!
137
+ }
138
+
132
139
  type GuiAction {
133
140
  id: UUID!
134
141
  action: String!
@@ -167,6 +174,8 @@ type SearchDialog {
167
174
  serviceResourceType: String!
168
175
  party: String!
169
176
  progress: Int
177
+ process: String
178
+ precedingProcess: String
170
179
  guiAttachmentCount: Int
171
180
  extendedStatus: String
172
181
  createdAt: DateTime!
@@ -201,6 +210,10 @@ type SeenLog {
201
210
  isCurrentEndUser: Boolean!
202
211
  }
203
212
 
213
+ type Subscriptions @authorize(policy: "enduser") {
214
+ dialogUpdated(dialogId: UUID!): DialogUpdatedPayload!
215
+ }
216
+
204
217
  type Transmission {
205
218
  id: UUID!
206
219
  createdAt: DateTime!
@@ -286,10 +299,10 @@ enum DialogStatus {
286
299
  NEW
287
300
  "Started. In a serial process, this is used to indicate that, for example, a form filling is ongoing."
288
301
  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
302
+ "Used to indicate user-initiated dialogs not yet sent."
303
+ DRAFT
304
+ "Sent by the service owner. In a serial process, this is used after a submission is made."
305
+ SENT
293
306
  "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
307
  REQUIRES_ATTENTION
295
308
  "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 {
@@ -94,6 +95,8 @@ type Dialog {
94
95
  serviceResourceType: String!
95
96
  party: String!
96
97
  progress: Int
98
+ process: String
99
+ precedingProcess: String
97
100
  extendedStatus: String
98
101
  externalReference: String
99
102
  visibleFrom: DateTime
@@ -129,6 +132,10 @@ type DialogByIdPayload {
129
132
  errors: [DialogByIdError!]!
130
133
  }
131
134
 
135
+ type DialogUpdatedPayload {
136
+ id: UUID!
137
+ }
138
+
132
139
  type GuiAction {
133
140
  id: UUID!
134
141
  action: String!
@@ -167,6 +174,8 @@ type SearchDialog {
167
174
  serviceResourceType: String!
168
175
  party: String!
169
176
  progress: Int
177
+ process: String
178
+ precedingProcess: String
170
179
  guiAttachmentCount: Int
171
180
  extendedStatus: String
172
181
  createdAt: DateTime!
@@ -201,6 +210,10 @@ type SeenLog {
201
210
  isCurrentEndUser: Boolean!
202
211
  }
203
212
 
213
+ type Subscriptions @authorize(policy: "enduser") {
214
+ dialogUpdated(dialogId: UUID!): DialogUpdatedPayload!
215
+ }
216
+
204
217
  type Transmission {
205
218
  id: UUID!
206
219
  createdAt: DateTime!
@@ -286,10 +299,10 @@ enum DialogStatus {
286
299
  NEW
287
300
  "Started. In a serial process, this is used to indicate that, for example, a form filling is ongoing."
288
301
  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
302
+ "Used to indicate user-initiated dialogs not yet sent."
303
+ DRAFT
304
+ "Sent by the service owner. In a serial process, this is used after a submission is made."
305
+ SENT
293
306
  "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
307
  REQUIRES_ATTENTION
295
308
  "The dialogue was completed. This typically means that the dialogue is moved to a GUI archive or similar."
@@ -225,6 +225,16 @@
225
225
  "example": "urn:altinn:person:identifier-no:01125512345\nurn:altinn:organization:identifier-no:912345678",
226
226
  "type": "string"
227
227
  },
228
+ "precedingProcess": {
229
+ "description": "Optional preceding process identifier to indicate the business process that preceded the process indicated in the \u0022Process\u0022 field. Cannot be set without also \u0022Process\u0022 being set.",
230
+ "nullable": true,
231
+ "type": "string"
232
+ },
233
+ "process": {
234
+ "description": "Optional process identifier used to indicate a business process this dialog belongs to ",
235
+ "nullable": true,
236
+ "type": "string"
237
+ },
228
238
  "progress": {
229
239
  "description": "Advisory indicator of progress, represented as 1-100 percentage value. 100% representing a dialog that has come\nto a natural completion (successful or not).",
230
240
  "format": "int32",
@@ -873,8 +883,8 @@
873
883
  "enum": [
874
884
  "New",
875
885
  "InProgress",
876
- "Signing",
877
- "Processing",
886
+ "Draft",
887
+ "Sent",
878
888
  "RequiresAttention",
879
889
  "Completed"
880
890
  ],
@@ -882,8 +892,8 @@
882
892
  "x-enumNames": [
883
893
  "New",
884
894
  "InProgress",
885
- "Signing",
886
- "Processing",
895
+ "Draft",
896
+ "Sent",
887
897
  "RequiresAttention",
888
898
  "Completed"
889
899
  ]
@@ -2035,6 +2045,16 @@
2035
2045
  "example": "urn:altinn:person:identifier-no:01125512345\nurn:altinn:organization:identifier-no:912345678",
2036
2046
  "type": "string"
2037
2047
  },
2048
+ "precedingProcess": {
2049
+ "description": "Optional preceding process identifier to indicate the business process that preceded the process indicated in the \u0022Process\u0022 field. Cannot be set without also \u0022Process\u0022 being set.",
2050
+ "nullable": true,
2051
+ "type": "string"
2052
+ },
2053
+ "process": {
2054
+ "description": "Optional process identifier used to indicate a business process this dialog belongs to",
2055
+ "nullable": true,
2056
+ "type": "string"
2057
+ },
2038
2058
  "progress": {
2039
2059
  "description": "Advisory indicator of progress, represented as 1-100 percentage value. 100% representing a dialog that has come\nto a natural completion (successful or not).",
2040
2060
  "format": "int32",
@@ -2178,6 +2198,16 @@
2178
2198
  "example": "urn:altinn:person:identifier-no:01125512345\nurn:altinn:organization:identifier-no:912345678",
2179
2199
  "type": "string"
2180
2200
  },
2201
+ "precedingProcess": {
2202
+ "description": "Optional preceding process identifier to indicate the business process that preceded the process indicated in the \u0022Process\u0022 field. Cannot be set without also \u0022Process\u0022 being set. ",
2203
+ "nullable": true,
2204
+ "type": "string"
2205
+ },
2206
+ "process": {
2207
+ "description": "Optional process identifier used to indicate a business process this dialog belongs to ",
2208
+ "nullable": true,
2209
+ "type": "string"
2210
+ },
2181
2211
  "progress": {
2182
2212
  "description": "Advisory indicator of progress, represented as 1-100 percentage value. 100% representing a dialog that has come\nto a natural completion (successful or not).",
2183
2213
  "format": "int32",
@@ -3108,6 +3138,16 @@
3108
3138
  "example": "urn:altinn:person:identifier-no:01125512345\nurn:altinn:organization:identifier-no:912345678",
3109
3139
  "type": "string"
3110
3140
  },
3141
+ "precedingProcess": {
3142
+ "description": "Optional preceding process identifier to indicate the business process that preceded the process indicated in the \u0022Process\u0022 field. Cannot be set without also \u0022Process\u0022 being set. ",
3143
+ "nullable": true,
3144
+ "type": "string"
3145
+ },
3146
+ "process": {
3147
+ "description": "Optional process identifier used to indicate a business process this dialog belongs to ",
3148
+ "nullable": true,
3149
+ "type": "string"
3150
+ },
3111
3151
  "progress": {
3112
3152
  "description": "Advisory indicator of progress, represented as 1-100 percentage value. 100% representing a dialog that has come\nto a natural completion (successful or not).",
3113
3153
  "format": "int32",
@@ -3207,6 +3247,16 @@
3207
3247
  "example": "urn:altinn:person:identifier-no:01125512345\nurn:altinn:organization:identifier-no:912345678",
3208
3248
  "type": "string"
3209
3249
  },
3250
+ "precedingProcess": {
3251
+ "description": "Optional preceding process identifier to indicate the business process that preceded the process indicated in the \u0022Process\u0022 field. Cannot be set without also \u0022Process\u0022 being set.",
3252
+ "nullable": true,
3253
+ "type": "string"
3254
+ },
3255
+ "process": {
3256
+ "description": "Optional process identifier used to indicate a business process this dialog belongs to",
3257
+ "nullable": true,
3258
+ "type": "string"
3259
+ },
3210
3260
  "progress": {
3211
3261
  "description": "Advisory indicator of progress, represented as 1-100 percentage value. 100% representing a dialog that has come\nto a natural completion (successful or not).",
3212
3262
  "format": "int32",
@@ -4170,6 +4220,15 @@
4170
4220
  "type": "string"
4171
4221
  }
4172
4222
  },
4223
+ {
4224
+ "description": "Filter by process",
4225
+ "in": "query",
4226
+ "name": "process",
4227
+ "schema": {
4228
+ "nullable": true,
4229
+ "type": "string"
4230
+ }
4231
+ },
4173
4232
  {
4174
4233
  "description": "Search string for free text search. Will attempt to fuzzily match in all free text fields in the aggregate",
4175
4234
  "in": "query",
@@ -4821,6 +4880,15 @@
4821
4880
  "type": "string"
4822
4881
  }
4823
4882
  },
4883
+ {
4884
+ "description": "Filter by process",
4885
+ "in": "query",
4886
+ "name": "process",
4887
+ "schema": {
4888
+ "nullable": true,
4889
+ "type": "string"
4890
+ }
4891
+ },
4824
4892
  {
4825
4893
  "description": "Search string for free text search. Will attempt to fuzzily match in all free text fields in the aggregate",
4826
4894
  "in": "query",
@@ -6107,4 +6175,4 @@
6107
6175
  "url": "https://altinn-dev-api.azure-api.net/dialogporten"
6108
6176
  }
6109
6177
  ]
6110
- }
6178
+ }