@digdir/dialogporten-schema 1.0.8 → 1.0.10

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.0.8",
3
+ "version": "1.0.10",
4
4
  "description": "GraphQl schema and OpenAPI spec for Dialogporten",
5
5
  "author": "DigDir",
6
6
  "repository": {
@@ -2,6 +2,14 @@
2
2
  query: Queries
3
3
  }
4
4
 
5
+ interface DialogByIdError {
6
+ message: String!
7
+ }
8
+
9
+ interface SearchDialogError {
10
+ message: String!
11
+ }
12
+
5
13
  type Activity {
6
14
  id: UUID!
7
15
  createdAt: DateTime
@@ -56,6 +64,7 @@ type Dialog {
56
64
  revision: UUID!
57
65
  org: String!
58
66
  serviceResource: String!
67
+ serviceResourceType: String!
59
68
  party: String!
60
69
  progress: Int
61
70
  extendedStatus: String
@@ -75,6 +84,23 @@ type Dialog {
75
84
  seenSinceLastUpdate: [SeenLog!]!
76
85
  }
77
86
 
87
+ type DialogByIdDeleted implements DialogByIdError {
88
+ message: String!
89
+ }
90
+
91
+ type DialogByIdForbidden implements DialogByIdError {
92
+ message: String!
93
+ }
94
+
95
+ type DialogByIdNotFound implements DialogByIdError {
96
+ message: String!
97
+ }
98
+
99
+ type DialogByIdPayload {
100
+ dialog: Dialog
101
+ errors: [DialogByIdError!]!
102
+ }
103
+
78
104
  type Element {
79
105
  id: UUID!
80
106
  type: URL
@@ -111,7 +137,7 @@ type Localization {
111
137
  }
112
138
 
113
139
  type Queries @authorize(policy: "enduser") {
114
- dialogById(dialogId: UUID!): Dialog!
140
+ dialogById(dialogId: UUID!): DialogByIdPayload!
115
141
  searchDialogs(input: SearchDialogInput!): SearchDialogsPayload!
116
142
  parties: [AuthorizedParty!]!
117
143
  }
@@ -120,6 +146,7 @@ type SearchDialog {
120
146
  id: UUID!
121
147
  org: String!
122
148
  serviceResource: String!
149
+ serviceResourceType: String!
123
150
  party: String!
124
151
  progress: Int
125
152
  guiAttachmentCount: Int
@@ -133,11 +160,20 @@ type SearchDialog {
133
160
  seenSinceLastUpdate: [SeenLog!]!
134
161
  }
135
162
 
163
+ type SearchDialogForbidden implements SearchDialogError {
164
+ message: String!
165
+ }
166
+
167
+ type SearchDialogValidationError implements SearchDialogError {
168
+ message: String!
169
+ }
170
+
136
171
  type SearchDialogsPayload {
137
- items: [SearchDialog!]!
172
+ items: [SearchDialog!]
138
173
  hasNextPage: Boolean!
139
174
  continuationToken: String
140
175
  orderBy: String!
176
+ errors: [SearchDialogError!]!
141
177
  }
142
178
 
143
179
  type SeenLog {
@@ -205,6 +241,7 @@ enum ContentType {
205
241
  SENDER_NAME
206
242
  SUMMARY
207
243
  ADDITIONAL_INFO
244
+ EXTENDED_STATUS
208
245
  }
209
246
 
210
247
  enum DialogStatus {
@@ -2878,6 +2878,9 @@
2878
2878
  "serviceResource": {
2879
2879
  "type": "string"
2880
2880
  },
2881
+ "serviceResourceType": {
2882
+ "type": "string"
2883
+ },
2881
2884
  "party": {
2882
2885
  "type": "string"
2883
2886
  },
@@ -2987,6 +2990,9 @@
2987
2990
  "serviceResource": {
2988
2991
  "type": "string"
2989
2992
  },
2993
+ "serviceResourceType": {
2994
+ "type": "string"
2995
+ },
2990
2996
  "party": {
2991
2997
  "type": "string"
2992
2998
  },
@@ -3901,6 +3907,9 @@
3901
3907
  "serviceResource": {
3902
3908
  "type": "string"
3903
3909
  },
3910
+ "serviceResourceType": {
3911
+ "type": "string"
3912
+ },
3904
3913
  "party": {
3905
3914
  "type": "string"
3906
3915
  },
@@ -4059,6 +4068,9 @@
4059
4068
  "serviceResource": {
4060
4069
  "type": "string"
4061
4070
  },
4071
+ "serviceResourceType": {
4072
+ "type": "string"
4073
+ },
4062
4074
  "party": {
4063
4075
  "type": "string"
4064
4076
  },
@@ -4462,4 +4474,4 @@
4462
4474
  }
4463
4475
  }
4464
4476
  }
4465
- }
4477
+ }