@digdir/dialogporten-schema 1.0.7

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 ADDED
@@ -0,0 +1,10 @@
1
+ {
2
+ "name": "@digdir/dialogporten-schema",
3
+ "version": "1.0.7",
4
+ "description": "GraphQl schema and OpenAPI spec for Dialogporten",
5
+ "author": "DigDir",
6
+ "repository": {
7
+ "url": "git+https://github.com/digdir/dialogporten.git"
8
+ },
9
+ "license": "ISC"
10
+ }
@@ -0,0 +1,242 @@
1
+ schema {
2
+ query: DialogQueries
3
+ }
4
+
5
+ type Activity {
6
+ id: UUID!
7
+ createdAt: DateTime
8
+ extendedType: URL
9
+ type: ActivityType!
10
+ relatedActivityId: UUID
11
+ dialogElementId: UUID
12
+ performedBy: [Localization!]
13
+ description: [Localization!]!
14
+ }
15
+
16
+ type ApiAction {
17
+ id: UUID!
18
+ action: String!
19
+ authorizationAttribute: String
20
+ isAuthorized: Boolean!
21
+ dialogElementId: UUID
22
+ endpoints: [ApiActionEndpoint!]!
23
+ }
24
+
25
+ type ApiActionEndpoint {
26
+ id: UUID!
27
+ version: String
28
+ url: URL!
29
+ httpMethod: HttpVerb!
30
+ documentationUrl: URL
31
+ requestSchema: URL
32
+ responseSchema: URL
33
+ deprecated: Boolean!
34
+ sunsetAt: DateTime
35
+ }
36
+
37
+ type Content {
38
+ type: ContentType!
39
+ value: [Localization!]!
40
+ }
41
+
42
+ type Dialog {
43
+ id: UUID!
44
+ revision: UUID!
45
+ org: String!
46
+ serviceResource: String!
47
+ party: String!
48
+ progress: Int
49
+ extendedStatus: String
50
+ externalReference: String
51
+ visibleFrom: DateTime
52
+ dueAt: DateTime
53
+ expiresAt: DateTime
54
+ createdAt: DateTime!
55
+ updatedAt: DateTime!
56
+ dialogToken: String
57
+ status: DialogStatus!
58
+ content: [Content!]!
59
+ elements: [Element!]!
60
+ guiActions: [GuiAction!]!
61
+ apiActions: [ApiAction!]!
62
+ activities: [Activity!]!
63
+ seenSinceLastUpdate: [SeenLog!]!
64
+ }
65
+
66
+ type DialogQueries @authorize(policy: "enduser") {
67
+ dialogById(dialogId: UUID!): Dialog!
68
+ searchDialogs(input: SearchDialogInput!): SearchDialogsPayload!
69
+ }
70
+
71
+ type Element {
72
+ id: UUID!
73
+ type: URL
74
+ externalReference: String
75
+ authorizationAttribute: String
76
+ isAuthorized: Boolean!
77
+ relatedDialogElementId: UUID
78
+ displayName: [Localization!]!
79
+ urls: [ElementUrl!]!
80
+ }
81
+
82
+ type ElementUrl {
83
+ id: UUID!
84
+ url: URL!
85
+ mimeType: String
86
+ consumerType: ElementUrlConsumer!
87
+ }
88
+
89
+ type GuiAction {
90
+ id: UUID!
91
+ action: String!
92
+ url: URL!
93
+ authorizationAttribute: String
94
+ isAuthorized: Boolean!
95
+ isBackChannel: Boolean!
96
+ isDeleteAction: Boolean!
97
+ priority: GuiActionPriority!
98
+ title: [Localization!]!
99
+ }
100
+
101
+ type Localization {
102
+ value: String!
103
+ cultureCode: String!
104
+ }
105
+
106
+ type SearchDialog {
107
+ id: UUID!
108
+ org: String!
109
+ serviceResource: String!
110
+ party: String!
111
+ progress: Int
112
+ guiAttachmentCount: Int
113
+ extendedStatus: String
114
+ createdAt: DateTime!
115
+ updatedAt: DateTime!
116
+ dueAt: DateTime
117
+ status: DialogStatus!
118
+ latestActivity: Activity
119
+ content: [Content!]!
120
+ seenSinceLastUpdate: [SeenLog!]!
121
+ }
122
+
123
+ type SearchDialogsPayload {
124
+ items: [SearchDialog!]!
125
+ hasNextPage: Boolean!
126
+ continuationToken: String
127
+ orderBy: String!
128
+ }
129
+
130
+ type SeenLog {
131
+ id: UUID!
132
+ seenAt: DateTime!
133
+ endUserIdHash: String!
134
+ endUserName: String
135
+ isCurrentEndUser: Boolean!
136
+ }
137
+
138
+ input SearchDialogInput {
139
+ "Filter by one or more service owner codes"
140
+ org: [String!]
141
+ "Filter by one or more service resources"
142
+ serviceResource: [String!]
143
+ "Filter by one or more owning parties"
144
+ party: [String!]
145
+ "Filter by one or more extended statuses"
146
+ extendedStatus: [String!]
147
+ "Filter by external reference"
148
+ externalReference: String
149
+ "Filter by status"
150
+ status: [DialogStatus!]
151
+ "Only return dialogs created after this date"
152
+ createdAfter: DateTime
153
+ "Only return dialogs created before this date"
154
+ createdBefore: DateTime
155
+ "Only return dialogs updated after this date"
156
+ updatedAfter: DateTime
157
+ "Only return dialogs updated before this date"
158
+ updatedBefore: DateTime
159
+ "Only return dialogs with due date after this date"
160
+ dueAfter: DateTime
161
+ "Only return dialogs with due date before this date"
162
+ dueBefore: DateTime
163
+ "Search string for free text search. Will attempt to fuzzily match in all free text fields in the aggregate"
164
+ search: String
165
+ "Limit free text search to texts with this culture code, e.g. \"nb-NO\". Default: search all culture codes"
166
+ searchCultureCode: String
167
+ }
168
+
169
+ enum ActivityType {
170
+ "Refers to a submission made by a party that has been received by the service provider."
171
+ SUBMISSION
172
+ "Indicates feedback from the service provider on a submission. Contains a reference to the current submission."
173
+ FEEDBACK
174
+ "Information from the service provider, not (directly) related to any submission."
175
+ INFORMATION
176
+ "Used to indicate an error situation, typically on a submission. Contains a service-specific activityErrorCode."
177
+ ERROR
178
+ "Indicates that the dialog is closed for further changes. This typically happens when the dialog is completed or deleted."
179
+ CLOSED
180
+ "When the dialog is forwarded (delegated access) by someone with access to others."
181
+ FORWARDED
182
+ }
183
+
184
+ enum ApplyPolicy {
185
+ BEFORE_RESOLVER
186
+ AFTER_RESOLVER
187
+ VALIDATION
188
+ }
189
+
190
+ enum ContentType {
191
+ TITLE
192
+ SENDER_NAME
193
+ SUMMARY
194
+ ADDITIONAL_INFO
195
+ }
196
+
197
+ enum DialogStatus {
198
+ "New"
199
+ NEW
200
+ "In progress. General status used for dialog services where further user input is expected."
201
+ IN_PROGRESS
202
+ "Waiting for feedback from the service provider"
203
+ WAITING
204
+ "The dialog is in a state where it is waiting for signing. Typically the last step after all completion is carried out and validated."
205
+ SIGNING
206
+ "The dialog was cancelled. This typically removes the dialog from normal GUI views."
207
+ CANCELLED
208
+ "The dialog was completed. This typically moves the dialog to a GUI archive or similar."
209
+ COMPLETED
210
+ }
211
+
212
+ enum ElementUrlConsumer {
213
+ GUI
214
+ API
215
+ }
216
+
217
+ enum GuiActionPriority {
218
+ PRIMARY
219
+ SECONDARY
220
+ TERTIARY
221
+ }
222
+
223
+ enum HttpVerb {
224
+ GET
225
+ POST
226
+ PUT
227
+ PATCH
228
+ DELETE
229
+ HEAD
230
+ OPTIONS
231
+ TRACE
232
+ CONNECT
233
+ }
234
+
235
+ directive @authorize("The name of the authorization policy that determines access to the annotated resource." policy: String "Roles that are allowed to access the annotated resource." roles: [String!] "Defines when when the authorize directive shall be applied.By default the authorize directives are applied during the validation phase." apply: ApplyPolicy! = BEFORE_RESOLVER) repeatable on OBJECT | FIELD_DEFINITION
236
+
237
+ "The `DateTime` scalar represents an ISO-8601 compliant date time type."
238
+ scalar DateTime @specifiedBy(url: "https:\/\/www.graphql-scalars.com\/date-time")
239
+
240
+ scalar URL @specifiedBy(url: "https:\/\/tools.ietf.org\/html\/rfc3986")
241
+
242
+ scalar UUID @specifiedBy(url: "https:\/\/tools.ietf.org\/html\/rfc4122")