@digdir/dialogporten-schema 1.16.0 → 1.17.0-711fa6d
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 +1 -1
- package/schema.verified.graphql +19 -4
- package/src/index.js +19 -4
- package/swagger.verified.json +77 -7
package/package.json
CHANGED
package/schema.verified.graphql
CHANGED
|
@@ -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!
|
|
@@ -263,6 +276,8 @@ enum ActivityType {
|
|
|
263
276
|
PAYMENT_MADE
|
|
264
277
|
"Indicates that a signature has been provided."
|
|
265
278
|
SIGNATURE_PROVIDED
|
|
279
|
+
"Refers to a dialog that has been opened."
|
|
280
|
+
DIALOG_OPENED
|
|
266
281
|
}
|
|
267
282
|
|
|
268
283
|
enum ActorType {
|
|
@@ -286,10 +301,10 @@ enum DialogStatus {
|
|
|
286
301
|
NEW
|
|
287
302
|
"Started. In a serial process, this is used to indicate that, for example, a form filling is ongoing."
|
|
288
303
|
IN_PROGRESS
|
|
289
|
-
"
|
|
290
|
-
|
|
291
|
-
"
|
|
292
|
-
|
|
304
|
+
"Used to indicate user-initiated dialogs not yet sent."
|
|
305
|
+
DRAFT
|
|
306
|
+
"Sent by the service owner. In a serial process, this is used after a submission is made."
|
|
307
|
+
SENT
|
|
293
308
|
"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
309
|
REQUIRES_ATTENTION
|
|
295
310
|
"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!
|
|
@@ -263,6 +276,8 @@ enum ActivityType {
|
|
|
263
276
|
PAYMENT_MADE
|
|
264
277
|
"Indicates that a signature has been provided."
|
|
265
278
|
SIGNATURE_PROVIDED
|
|
279
|
+
"Refers to a dialog that has been opened."
|
|
280
|
+
DIALOG_OPENED
|
|
266
281
|
}
|
|
267
282
|
|
|
268
283
|
enum ActorType {
|
|
@@ -286,10 +301,10 @@ enum DialogStatus {
|
|
|
286
301
|
NEW
|
|
287
302
|
"Started. In a serial process, this is used to indicate that, for example, a form filling is ongoing."
|
|
288
303
|
IN_PROGRESS
|
|
289
|
-
"
|
|
290
|
-
|
|
291
|
-
"
|
|
292
|
-
|
|
304
|
+
"Used to indicate user-initiated dialogs not yet sent."
|
|
305
|
+
DRAFT
|
|
306
|
+
"Sent by the service owner. In a serial process, this is used after a submission is made."
|
|
307
|
+
SENT
|
|
293
308
|
"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
309
|
REQUIRES_ATTENTION
|
|
295
310
|
"The dialogue was completed. This typically means that the dialogue is moved to a GUI archive or similar."
|
package/swagger.verified.json
CHANGED
|
@@ -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",
|
|
@@ -842,7 +852,8 @@
|
|
|
842
852
|
"Information",
|
|
843
853
|
"TransmissionOpened",
|
|
844
854
|
"PaymentMade",
|
|
845
|
-
"SignatureProvided"
|
|
855
|
+
"SignatureProvided",
|
|
856
|
+
"DialogOpened"
|
|
846
857
|
],
|
|
847
858
|
"type": "string",
|
|
848
859
|
"x-enumNames": [
|
|
@@ -851,7 +862,8 @@
|
|
|
851
862
|
"Information",
|
|
852
863
|
"TransmissionOpened",
|
|
853
864
|
"PaymentMade",
|
|
854
|
-
"SignatureProvided"
|
|
865
|
+
"SignatureProvided",
|
|
866
|
+
"DialogOpened"
|
|
855
867
|
]
|
|
856
868
|
},
|
|
857
869
|
"DialogGuiActionPriority_Values": {
|
|
@@ -873,8 +885,8 @@
|
|
|
873
885
|
"enum": [
|
|
874
886
|
"New",
|
|
875
887
|
"InProgress",
|
|
876
|
-
"
|
|
877
|
-
"
|
|
888
|
+
"Draft",
|
|
889
|
+
"Sent",
|
|
878
890
|
"RequiresAttention",
|
|
879
891
|
"Completed"
|
|
880
892
|
],
|
|
@@ -882,8 +894,8 @@
|
|
|
882
894
|
"x-enumNames": [
|
|
883
895
|
"New",
|
|
884
896
|
"InProgress",
|
|
885
|
-
"
|
|
886
|
-
"
|
|
897
|
+
"Draft",
|
|
898
|
+
"Sent",
|
|
887
899
|
"RequiresAttention",
|
|
888
900
|
"Completed"
|
|
889
901
|
]
|
|
@@ -2035,6 +2047,16 @@
|
|
|
2035
2047
|
"example": "urn:altinn:person:identifier-no:01125512345\nurn:altinn:organization:identifier-no:912345678",
|
|
2036
2048
|
"type": "string"
|
|
2037
2049
|
},
|
|
2050
|
+
"precedingProcess": {
|
|
2051
|
+
"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.",
|
|
2052
|
+
"nullable": true,
|
|
2053
|
+
"type": "string"
|
|
2054
|
+
},
|
|
2055
|
+
"process": {
|
|
2056
|
+
"description": "Optional process identifier used to indicate a business process this dialog belongs to",
|
|
2057
|
+
"nullable": true,
|
|
2058
|
+
"type": "string"
|
|
2059
|
+
},
|
|
2038
2060
|
"progress": {
|
|
2039
2061
|
"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
2062
|
"format": "int32",
|
|
@@ -2178,6 +2200,16 @@
|
|
|
2178
2200
|
"example": "urn:altinn:person:identifier-no:01125512345\nurn:altinn:organization:identifier-no:912345678",
|
|
2179
2201
|
"type": "string"
|
|
2180
2202
|
},
|
|
2203
|
+
"precedingProcess": {
|
|
2204
|
+
"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. ",
|
|
2205
|
+
"nullable": true,
|
|
2206
|
+
"type": "string"
|
|
2207
|
+
},
|
|
2208
|
+
"process": {
|
|
2209
|
+
"description": "Optional process identifier used to indicate a business process this dialog belongs to ",
|
|
2210
|
+
"nullable": true,
|
|
2211
|
+
"type": "string"
|
|
2212
|
+
},
|
|
2181
2213
|
"progress": {
|
|
2182
2214
|
"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
2215
|
"format": "int32",
|
|
@@ -3108,6 +3140,16 @@
|
|
|
3108
3140
|
"example": "urn:altinn:person:identifier-no:01125512345\nurn:altinn:organization:identifier-no:912345678",
|
|
3109
3141
|
"type": "string"
|
|
3110
3142
|
},
|
|
3143
|
+
"precedingProcess": {
|
|
3144
|
+
"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. ",
|
|
3145
|
+
"nullable": true,
|
|
3146
|
+
"type": "string"
|
|
3147
|
+
},
|
|
3148
|
+
"process": {
|
|
3149
|
+
"description": "Optional process identifier used to indicate a business process this dialog belongs to ",
|
|
3150
|
+
"nullable": true,
|
|
3151
|
+
"type": "string"
|
|
3152
|
+
},
|
|
3111
3153
|
"progress": {
|
|
3112
3154
|
"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
3155
|
"format": "int32",
|
|
@@ -3207,6 +3249,16 @@
|
|
|
3207
3249
|
"example": "urn:altinn:person:identifier-no:01125512345\nurn:altinn:organization:identifier-no:912345678",
|
|
3208
3250
|
"type": "string"
|
|
3209
3251
|
},
|
|
3252
|
+
"precedingProcess": {
|
|
3253
|
+
"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.",
|
|
3254
|
+
"nullable": true,
|
|
3255
|
+
"type": "string"
|
|
3256
|
+
},
|
|
3257
|
+
"process": {
|
|
3258
|
+
"description": "Optional process identifier used to indicate a business process this dialog belongs to",
|
|
3259
|
+
"nullable": true,
|
|
3260
|
+
"type": "string"
|
|
3261
|
+
},
|
|
3210
3262
|
"progress": {
|
|
3211
3263
|
"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
3264
|
"format": "int32",
|
|
@@ -4170,6 +4222,15 @@
|
|
|
4170
4222
|
"type": "string"
|
|
4171
4223
|
}
|
|
4172
4224
|
},
|
|
4225
|
+
{
|
|
4226
|
+
"description": "Filter by process",
|
|
4227
|
+
"in": "query",
|
|
4228
|
+
"name": "process",
|
|
4229
|
+
"schema": {
|
|
4230
|
+
"nullable": true,
|
|
4231
|
+
"type": "string"
|
|
4232
|
+
}
|
|
4233
|
+
},
|
|
4173
4234
|
{
|
|
4174
4235
|
"description": "Search string for free text search. Will attempt to fuzzily match in all free text fields in the aggregate",
|
|
4175
4236
|
"in": "query",
|
|
@@ -4821,6 +4882,15 @@
|
|
|
4821
4882
|
"type": "string"
|
|
4822
4883
|
}
|
|
4823
4884
|
},
|
|
4885
|
+
{
|
|
4886
|
+
"description": "Filter by process",
|
|
4887
|
+
"in": "query",
|
|
4888
|
+
"name": "process",
|
|
4889
|
+
"schema": {
|
|
4890
|
+
"nullable": true,
|
|
4891
|
+
"type": "string"
|
|
4892
|
+
}
|
|
4893
|
+
},
|
|
4824
4894
|
{
|
|
4825
4895
|
"description": "Search string for free text search. Will attempt to fuzzily match in all free text fields in the aggregate",
|
|
4826
4896
|
"in": "query",
|
|
@@ -6107,4 +6177,4 @@
|
|
|
6107
6177
|
"url": "https://altinn-dev-api.azure-api.net/dialogporten"
|
|
6108
6178
|
}
|
|
6109
6179
|
]
|
|
6110
|
-
}
|
|
6180
|
+
}
|