@opencrvs/toolkit 2.1.0-rc.d078d1a → 2.1.0-rc.d24aa5e
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/dist/application-config/index.js +190 -202
- package/dist/commons/api/router.d.ts +1589 -1657
- package/dist/commons/application-config/index.d.ts +6 -6
- package/dist/commons/conditionals/conditionals.d.ts +2102 -259
- package/dist/commons/conditionals/validate.d.ts +1 -10
- package/dist/commons/events/ActionConfig.d.ts +105 -105
- package/dist/commons/events/ActionDocument.d.ts +123 -117
- package/dist/commons/events/ActionInput.d.ts +6 -0
- package/dist/commons/events/ActionType.d.ts +62 -62
- package/dist/commons/events/AdvancedSearchConfig.d.ts +507 -519
- package/dist/commons/events/AuditLog.d.ts +42 -79
- package/dist/commons/events/CompositeFieldValue.d.ts +4 -4
- package/dist/commons/events/Conditional.d.ts +3 -3
- package/dist/commons/events/CountryConfigQueryInput.d.ts +590 -590
- package/dist/commons/events/Draft.d.ts +37 -37
- package/dist/commons/events/DynamicFieldValue.d.ts +9 -9
- package/dist/commons/events/EventConfig.d.ts +5 -8
- package/dist/commons/events/EventDocument.d.ts +48 -48
- package/dist/commons/events/EventIndex.d.ts +71 -48
- package/dist/commons/events/EventMetadata.d.ts +40 -40
- package/dist/commons/events/FieldConfig.d.ts +337 -347
- package/dist/commons/events/FieldType.d.ts +51 -51
- package/dist/commons/events/FieldTypeMapping.d.ts +91 -91
- package/dist/commons/events/FieldValue.d.ts +12 -12
- package/dist/commons/events/Flag.d.ts +15 -57
- package/dist/commons/events/TemplateConfig.d.ts +1 -1
- package/dist/commons/events/WorkqueueColumnConfig.d.ts +40 -40
- package/dist/commons/events/WorkqueueConfig.d.ts +813 -816
- package/dist/commons/events/deduplication.d.ts +1 -1
- package/dist/commons/events/event.d.ts +2 -14
- package/dist/commons/events/field.d.ts +895 -78
- package/dist/commons/events/index.d.ts +0 -1
- package/dist/commons/events/locations.d.ts +6 -103
- package/dist/commons/events/mocks.test.utils.d.ts +4 -18
- package/dist/commons/events/scopes.d.ts +4 -4
- package/dist/commons/events/state/index.d.ts +17 -17
- package/dist/commons/events/state/utils.d.ts +7 -7
- package/dist/commons/events/test.utils.d.ts +43 -40
- package/dist/commons/events/utils.d.ts +114 -114
- package/dist/commons/notification/UserNotifications.d.ts +10 -10
- package/dist/conditionals/index.js +55 -303
- package/dist/environment/derived-variables.d.ts +119 -119
- package/dist/environment/derived-variables.d.ts.map +1 -1
- package/dist/environment/logger.d.ts.map +1 -1
- package/dist/environment/questions.d.ts +74 -75
- package/dist/environment/questions.d.ts.map +1 -1
- package/dist/environment/setup-environment.js +14 -8
- package/dist/environment/utils.d.ts +1 -1
- package/dist/events/deduplication.d.ts +1 -1
- package/dist/events/index.js +3386 -3548
- package/dist/migrations/v2.0/migrate-application-config-url.js +3 -4
- package/dist/notification/index.js +1064 -1731
- package/dist/scopes/index.d.ts +146 -371
- package/dist/scopes/index.js +55 -304
- package/opencrvs-toolkit-2.1.0-rc.d24aa5e.tgz +0 -0
- package/package.json +5 -5
- package/tsconfig.tsbuildinfo +1 -1
- package/dist/commons/events/ActionStatus.d.ts +0 -14
- package/dist/commons/events/locationPayloads.d.ts +0 -95
- package/opencrvs-toolkit-2.1.0-rc.d078d1a.tgz +0 -0
package/dist/scopes/index.d.ts
CHANGED
|
@@ -2,8 +2,8 @@ import * as z from 'zod/v4';
|
|
|
2
2
|
import { Role } from './roles';
|
|
3
3
|
export declare const JurisdictionFilter: z.ZodEnum<{
|
|
4
4
|
administrativeArea: "administrativeArea";
|
|
5
|
-
all: "all";
|
|
6
5
|
location: "location";
|
|
6
|
+
all: "all";
|
|
7
7
|
}>;
|
|
8
8
|
export type JurisdictionFilter = z.infer<typeof JurisdictionFilter>;
|
|
9
9
|
export declare const UserFilter: z.ZodEnum<{
|
|
@@ -17,100 +17,76 @@ export type UserFilter = z.infer<typeof UserFilter>;
|
|
|
17
17
|
* @see scopeOptionsPlaceEvent @see scopeOptionsDeclaredOrNotified @see scopeOptionsFull
|
|
18
18
|
*/
|
|
19
19
|
export declare const RecordScopeTypeV2: z.ZodEnum<{
|
|
20
|
-
"record.
|
|
21
|
-
"record.correct": "record.correct";
|
|
20
|
+
"record.search": "record.search";
|
|
22
21
|
"record.create": "record.create";
|
|
23
|
-
"record.
|
|
22
|
+
"record.read": "record.read";
|
|
24
23
|
"record.declare": "record.declare";
|
|
25
|
-
"record.edit": "record.edit";
|
|
26
24
|
"record.notify": "record.notify";
|
|
27
|
-
"record.
|
|
28
|
-
"record.read": "record.read";
|
|
29
|
-
"record.register": "record.register";
|
|
25
|
+
"record.edit": "record.edit";
|
|
30
26
|
"record.reject": "record.reject";
|
|
31
|
-
"record.
|
|
32
|
-
"record.review-duplicates": "record.review-duplicates";
|
|
33
|
-
"record.search": "record.search";
|
|
27
|
+
"record.archive": "record.archive";
|
|
34
28
|
"record.unarchive": "record.unarchive";
|
|
29
|
+
"record.review-duplicates": "record.review-duplicates";
|
|
30
|
+
"record.register": "record.register";
|
|
31
|
+
"record.print-certified-copies": "record.print-certified-copies";
|
|
32
|
+
"record.request-correction": "record.request-correction";
|
|
33
|
+
"record.correct": "record.correct";
|
|
35
34
|
"record.unassign-others": "record.unassign-others";
|
|
35
|
+
"record.custom-action": "record.custom-action";
|
|
36
36
|
}>;
|
|
37
37
|
export type RecordScopeTypeV2 = z.infer<typeof RecordScopeTypeV2>;
|
|
38
38
|
declare const AllScopeOptions: z.ZodObject<{
|
|
39
|
+
ids: z.ZodPipe<z.ZodTransform<({} | null)[] | undefined, unknown>, z.ZodArray<z.ZodString>>;
|
|
40
|
+
accessLevel: z.ZodOptional<z.ZodEnum<{
|
|
41
|
+
administrativeArea: "administrativeArea";
|
|
42
|
+
location: "location";
|
|
43
|
+
all: "all";
|
|
44
|
+
}>>;
|
|
45
|
+
role: z.ZodOptional<z.ZodPipe<z.ZodTransform<({} | null)[] | undefined, unknown>, z.ZodOptional<z.ZodArray<z.ZodString>>>>;
|
|
39
46
|
event: z.ZodPipe<z.ZodTransform<({} | null)[] | undefined, unknown>, z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
40
47
|
placeOfEvent: z.ZodOptional<z.ZodEnum<{
|
|
41
48
|
administrativeArea: "administrativeArea";
|
|
42
|
-
all: "all";
|
|
43
49
|
location: "location";
|
|
50
|
+
all: "all";
|
|
44
51
|
}>>;
|
|
45
52
|
notifiedIn: z.ZodOptional<z.ZodEnum<{
|
|
46
53
|
administrativeArea: "administrativeArea";
|
|
47
|
-
all: "all";
|
|
48
54
|
location: "location";
|
|
55
|
+
all: "all";
|
|
49
56
|
}>>;
|
|
50
57
|
notifiedBy: z.ZodOptional<z.ZodEnum<{
|
|
51
58
|
user: "user";
|
|
52
59
|
}>>;
|
|
53
60
|
declaredIn: z.ZodOptional<z.ZodEnum<{
|
|
54
61
|
administrativeArea: "administrativeArea";
|
|
55
|
-
all: "all";
|
|
56
62
|
location: "location";
|
|
63
|
+
all: "all";
|
|
57
64
|
}>>;
|
|
58
65
|
declaredBy: z.ZodOptional<z.ZodEnum<{
|
|
59
66
|
user: "user";
|
|
60
67
|
}>>;
|
|
61
68
|
registeredIn: z.ZodOptional<z.ZodEnum<{
|
|
62
69
|
administrativeArea: "administrativeArea";
|
|
63
|
-
all: "all";
|
|
64
70
|
location: "location";
|
|
71
|
+
all: "all";
|
|
65
72
|
}>>;
|
|
66
73
|
registeredBy: z.ZodOptional<z.ZodEnum<{
|
|
67
74
|
user: "user";
|
|
68
75
|
}>>;
|
|
69
|
-
flags: z.ZodOptional<z.ZodObject<{
|
|
70
|
-
anyOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
71
|
-
readonly INCOMPLETE: 'incomplete';
|
|
72
|
-
readonly REJECTED: 'rejected';
|
|
73
|
-
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
74
|
-
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
75
|
-
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
76
|
-
}>]>, z.ZodString]>>>;
|
|
77
|
-
noneOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
78
|
-
readonly INCOMPLETE: 'incomplete';
|
|
79
|
-
readonly REJECTED: 'rejected';
|
|
80
|
-
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
81
|
-
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
82
|
-
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
83
|
-
}>]>, z.ZodString]>>>;
|
|
84
|
-
allOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
85
|
-
readonly INCOMPLETE: 'incomplete';
|
|
86
|
-
readonly REJECTED: 'rejected';
|
|
87
|
-
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
88
|
-
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
89
|
-
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
90
|
-
}>]>, z.ZodString]>>>;
|
|
91
|
-
}, z.core.$strip>>;
|
|
92
|
-
accessLevel: z.ZodOptional<z.ZodEnum<{
|
|
93
|
-
administrativeArea: "administrativeArea";
|
|
94
|
-
all: "all";
|
|
95
|
-
location: "location";
|
|
96
|
-
}>>;
|
|
97
|
-
role: z.ZodOptional<z.ZodPipe<z.ZodTransform<({} | null)[] | undefined, unknown>, z.ZodOptional<z.ZodArray<z.ZodString>>>>;
|
|
98
|
-
ids: z.ZodPipe<z.ZodTransform<({} | null)[] | undefined, unknown>, z.ZodArray<z.ZodString>>;
|
|
99
76
|
}, z.core.$strip>;
|
|
100
77
|
type AllScopeOptions = z.infer<typeof AllScopeOptions>;
|
|
101
78
|
export declare const ScopeOptionKey: z.ZodEnum<{
|
|
102
|
-
|
|
103
|
-
declaredBy: "declaredBy";
|
|
104
|
-
declaredIn: "declaredIn";
|
|
79
|
+
role: "role";
|
|
105
80
|
event: "event";
|
|
106
|
-
flags: "flags";
|
|
107
|
-
ids: "ids";
|
|
108
|
-
notifiedBy: "notifiedBy";
|
|
109
|
-
notifiedIn: "notifiedIn";
|
|
110
81
|
placeOfEvent: "placeOfEvent";
|
|
111
|
-
|
|
82
|
+
notifiedIn: "notifiedIn";
|
|
83
|
+
notifiedBy: "notifiedBy";
|
|
84
|
+
declaredIn: "declaredIn";
|
|
85
|
+
declaredBy: "declaredBy";
|
|
112
86
|
registeredIn: "registeredIn";
|
|
113
|
-
|
|
87
|
+
registeredBy: "registeredBy";
|
|
88
|
+
accessLevel: "accessLevel";
|
|
89
|
+
ids: "ids";
|
|
114
90
|
}>;
|
|
115
91
|
export type ScopeOptionKey = z.infer<typeof ScopeOptionKey>;
|
|
116
92
|
export declare const ScopesWithPlaceEventOptions: z.ZodEnum<{
|
|
@@ -119,18 +95,18 @@ export declare const ScopesWithPlaceEventOptions: z.ZodEnum<{
|
|
|
119
95
|
"record.notify": "record.notify";
|
|
120
96
|
}>;
|
|
121
97
|
export declare const ScopesWithDeclaredOptions: z.ZodEnum<{
|
|
122
|
-
"record.archive": "record.archive";
|
|
123
98
|
"record.edit": "record.edit";
|
|
124
|
-
"record.register": "record.register";
|
|
125
99
|
"record.reject": "record.reject";
|
|
126
|
-
"record.
|
|
100
|
+
"record.archive": "record.archive";
|
|
127
101
|
"record.unarchive": "record.unarchive";
|
|
102
|
+
"record.review-duplicates": "record.review-duplicates";
|
|
103
|
+
"record.register": "record.register";
|
|
128
104
|
}>;
|
|
129
105
|
export declare const ScopesWithFullOptions: z.ZodEnum<{
|
|
130
|
-
"record.
|
|
106
|
+
"record.search": "record.search";
|
|
131
107
|
"record.read": "record.read";
|
|
132
108
|
"record.request-correction": "record.request-correction";
|
|
133
|
-
"record.
|
|
109
|
+
"record.correct": "record.correct";
|
|
134
110
|
"record.unassign-others": "record.unassign-others";
|
|
135
111
|
}>;
|
|
136
112
|
export declare const RecordScopeV2: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -143,38 +119,38 @@ export declare const RecordScopeV2: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
143
119
|
event: z.ZodPipe<z.ZodTransform<({} | null)[] | undefined, unknown>, z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
144
120
|
placeOfEvent: z.ZodOptional<z.ZodEnum<{
|
|
145
121
|
administrativeArea: "administrativeArea";
|
|
146
|
-
all: "all";
|
|
147
122
|
location: "location";
|
|
123
|
+
all: "all";
|
|
148
124
|
}>>;
|
|
149
125
|
}, z.core.$strip>>;
|
|
150
126
|
}, z.core.$strip>, z.ZodObject<{
|
|
151
127
|
type: z.ZodEnum<{
|
|
152
|
-
"record.archive": "record.archive";
|
|
153
128
|
"record.edit": "record.edit";
|
|
154
|
-
"record.register": "record.register";
|
|
155
129
|
"record.reject": "record.reject";
|
|
156
|
-
"record.
|
|
130
|
+
"record.archive": "record.archive";
|
|
157
131
|
"record.unarchive": "record.unarchive";
|
|
132
|
+
"record.review-duplicates": "record.review-duplicates";
|
|
133
|
+
"record.register": "record.register";
|
|
158
134
|
}>;
|
|
159
135
|
options: z.ZodOptional<z.ZodObject<{
|
|
160
136
|
event: z.ZodPipe<z.ZodTransform<({} | null)[] | undefined, unknown>, z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
161
137
|
placeOfEvent: z.ZodOptional<z.ZodEnum<{
|
|
162
138
|
administrativeArea: "administrativeArea";
|
|
163
|
-
all: "all";
|
|
164
139
|
location: "location";
|
|
140
|
+
all: "all";
|
|
165
141
|
}>>;
|
|
166
142
|
notifiedIn: z.ZodOptional<z.ZodEnum<{
|
|
167
143
|
administrativeArea: "administrativeArea";
|
|
168
|
-
all: "all";
|
|
169
144
|
location: "location";
|
|
145
|
+
all: "all";
|
|
170
146
|
}>>;
|
|
171
147
|
notifiedBy: z.ZodOptional<z.ZodEnum<{
|
|
172
148
|
user: "user";
|
|
173
149
|
}>>;
|
|
174
150
|
declaredIn: z.ZodOptional<z.ZodEnum<{
|
|
175
151
|
administrativeArea: "administrativeArea";
|
|
176
|
-
all: "all";
|
|
177
152
|
location: "location";
|
|
153
|
+
all: "all";
|
|
178
154
|
}>>;
|
|
179
155
|
declaredBy: z.ZodOptional<z.ZodEnum<{
|
|
180
156
|
user: "user";
|
|
@@ -182,66 +158,43 @@ export declare const RecordScopeV2: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
182
158
|
}, z.core.$strip>>;
|
|
183
159
|
}, z.core.$strip>, z.ZodObject<{
|
|
184
160
|
type: z.ZodEnum<{
|
|
185
|
-
"record.
|
|
161
|
+
"record.search": "record.search";
|
|
186
162
|
"record.read": "record.read";
|
|
187
163
|
"record.request-correction": "record.request-correction";
|
|
188
|
-
"record.
|
|
164
|
+
"record.correct": "record.correct";
|
|
189
165
|
"record.unassign-others": "record.unassign-others";
|
|
190
166
|
}>;
|
|
191
167
|
options: z.ZodOptional<z.ZodObject<{
|
|
192
168
|
event: z.ZodPipe<z.ZodTransform<({} | null)[] | undefined, unknown>, z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
193
169
|
placeOfEvent: z.ZodOptional<z.ZodEnum<{
|
|
194
170
|
administrativeArea: "administrativeArea";
|
|
195
|
-
all: "all";
|
|
196
171
|
location: "location";
|
|
172
|
+
all: "all";
|
|
197
173
|
}>>;
|
|
198
174
|
notifiedIn: z.ZodOptional<z.ZodEnum<{
|
|
199
175
|
administrativeArea: "administrativeArea";
|
|
200
|
-
all: "all";
|
|
201
176
|
location: "location";
|
|
177
|
+
all: "all";
|
|
202
178
|
}>>;
|
|
203
179
|
notifiedBy: z.ZodOptional<z.ZodEnum<{
|
|
204
180
|
user: "user";
|
|
205
181
|
}>>;
|
|
206
182
|
declaredIn: z.ZodOptional<z.ZodEnum<{
|
|
207
183
|
administrativeArea: "administrativeArea";
|
|
208
|
-
all: "all";
|
|
209
184
|
location: "location";
|
|
185
|
+
all: "all";
|
|
210
186
|
}>>;
|
|
211
187
|
declaredBy: z.ZodOptional<z.ZodEnum<{
|
|
212
188
|
user: "user";
|
|
213
189
|
}>>;
|
|
214
190
|
registeredIn: z.ZodOptional<z.ZodEnum<{
|
|
215
191
|
administrativeArea: "administrativeArea";
|
|
216
|
-
all: "all";
|
|
217
192
|
location: "location";
|
|
193
|
+
all: "all";
|
|
218
194
|
}>>;
|
|
219
195
|
registeredBy: z.ZodOptional<z.ZodEnum<{
|
|
220
196
|
user: "user";
|
|
221
197
|
}>>;
|
|
222
|
-
flags: z.ZodOptional<z.ZodObject<{
|
|
223
|
-
anyOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
224
|
-
readonly INCOMPLETE: 'incomplete';
|
|
225
|
-
readonly REJECTED: 'rejected';
|
|
226
|
-
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
227
|
-
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
228
|
-
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
229
|
-
}>]>, z.ZodString]>>>;
|
|
230
|
-
noneOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
231
|
-
readonly INCOMPLETE: 'incomplete';
|
|
232
|
-
readonly REJECTED: 'rejected';
|
|
233
|
-
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
234
|
-
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
235
|
-
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
236
|
-
}>]>, z.ZodString]>>>;
|
|
237
|
-
allOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
238
|
-
readonly INCOMPLETE: 'incomplete';
|
|
239
|
-
readonly REJECTED: 'rejected';
|
|
240
|
-
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
241
|
-
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
242
|
-
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
243
|
-
}>]>, z.ZodString]>>>;
|
|
244
|
-
}, z.core.$strip>>;
|
|
245
198
|
}, z.core.$strip>>;
|
|
246
199
|
}, z.core.$strip>, z.ZodObject<{
|
|
247
200
|
type: z.ZodLiteral<"record.custom-action">;
|
|
@@ -249,56 +202,33 @@ export declare const RecordScopeV2: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
249
202
|
event: z.ZodPipe<z.ZodTransform<({} | null)[] | undefined, unknown>, z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
250
203
|
placeOfEvent: z.ZodOptional<z.ZodEnum<{
|
|
251
204
|
administrativeArea: "administrativeArea";
|
|
252
|
-
all: "all";
|
|
253
205
|
location: "location";
|
|
206
|
+
all: "all";
|
|
254
207
|
}>>;
|
|
255
208
|
notifiedIn: z.ZodOptional<z.ZodEnum<{
|
|
256
209
|
administrativeArea: "administrativeArea";
|
|
257
|
-
all: "all";
|
|
258
210
|
location: "location";
|
|
211
|
+
all: "all";
|
|
259
212
|
}>>;
|
|
260
213
|
notifiedBy: z.ZodOptional<z.ZodEnum<{
|
|
261
214
|
user: "user";
|
|
262
215
|
}>>;
|
|
263
216
|
declaredIn: z.ZodOptional<z.ZodEnum<{
|
|
264
217
|
administrativeArea: "administrativeArea";
|
|
265
|
-
all: "all";
|
|
266
218
|
location: "location";
|
|
219
|
+
all: "all";
|
|
267
220
|
}>>;
|
|
268
221
|
declaredBy: z.ZodOptional<z.ZodEnum<{
|
|
269
222
|
user: "user";
|
|
270
223
|
}>>;
|
|
271
224
|
registeredIn: z.ZodOptional<z.ZodEnum<{
|
|
272
225
|
administrativeArea: "administrativeArea";
|
|
273
|
-
all: "all";
|
|
274
226
|
location: "location";
|
|
227
|
+
all: "all";
|
|
275
228
|
}>>;
|
|
276
229
|
registeredBy: z.ZodOptional<z.ZodEnum<{
|
|
277
230
|
user: "user";
|
|
278
231
|
}>>;
|
|
279
|
-
flags: z.ZodOptional<z.ZodObject<{
|
|
280
|
-
anyOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
281
|
-
readonly INCOMPLETE: 'incomplete';
|
|
282
|
-
readonly REJECTED: 'rejected';
|
|
283
|
-
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
284
|
-
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
285
|
-
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
286
|
-
}>]>, z.ZodString]>>>;
|
|
287
|
-
noneOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
288
|
-
readonly INCOMPLETE: 'incomplete';
|
|
289
|
-
readonly REJECTED: 'rejected';
|
|
290
|
-
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
291
|
-
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
292
|
-
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
293
|
-
}>]>, z.ZodString]>>>;
|
|
294
|
-
allOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
295
|
-
readonly INCOMPLETE: 'incomplete';
|
|
296
|
-
readonly REJECTED: 'rejected';
|
|
297
|
-
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
298
|
-
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
299
|
-
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
300
|
-
}>]>, z.ZodString]>>>;
|
|
301
|
-
}, z.core.$strip>>;
|
|
302
232
|
customActionTypes: z.ZodPipe<z.ZodTransform<({} | null)[] | undefined, unknown>, z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
303
233
|
}, z.core.$strip>>;
|
|
304
234
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -307,71 +237,48 @@ export declare const RecordScopeV2: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
307
237
|
event: z.ZodPipe<z.ZodTransform<({} | null)[] | undefined, unknown>, z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
308
238
|
placeOfEvent: z.ZodOptional<z.ZodEnum<{
|
|
309
239
|
administrativeArea: "administrativeArea";
|
|
310
|
-
all: "all";
|
|
311
240
|
location: "location";
|
|
241
|
+
all: "all";
|
|
312
242
|
}>>;
|
|
313
243
|
notifiedIn: z.ZodOptional<z.ZodEnum<{
|
|
314
244
|
administrativeArea: "administrativeArea";
|
|
315
|
-
all: "all";
|
|
316
245
|
location: "location";
|
|
246
|
+
all: "all";
|
|
317
247
|
}>>;
|
|
318
248
|
notifiedBy: z.ZodOptional<z.ZodEnum<{
|
|
319
249
|
user: "user";
|
|
320
250
|
}>>;
|
|
321
251
|
declaredIn: z.ZodOptional<z.ZodEnum<{
|
|
322
252
|
administrativeArea: "administrativeArea";
|
|
323
|
-
all: "all";
|
|
324
253
|
location: "location";
|
|
254
|
+
all: "all";
|
|
325
255
|
}>>;
|
|
326
256
|
declaredBy: z.ZodOptional<z.ZodEnum<{
|
|
327
257
|
user: "user";
|
|
328
258
|
}>>;
|
|
329
259
|
registeredIn: z.ZodOptional<z.ZodEnum<{
|
|
330
260
|
administrativeArea: "administrativeArea";
|
|
331
|
-
all: "all";
|
|
332
261
|
location: "location";
|
|
262
|
+
all: "all";
|
|
333
263
|
}>>;
|
|
334
264
|
registeredBy: z.ZodOptional<z.ZodEnum<{
|
|
335
265
|
user: "user";
|
|
336
266
|
}>>;
|
|
337
|
-
flags: z.ZodOptional<z.ZodObject<{
|
|
338
|
-
anyOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
339
|
-
readonly INCOMPLETE: 'incomplete';
|
|
340
|
-
readonly REJECTED: 'rejected';
|
|
341
|
-
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
342
|
-
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
343
|
-
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
344
|
-
}>]>, z.ZodString]>>>;
|
|
345
|
-
noneOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
346
|
-
readonly INCOMPLETE: 'incomplete';
|
|
347
|
-
readonly REJECTED: 'rejected';
|
|
348
|
-
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
349
|
-
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
350
|
-
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
351
|
-
}>]>, z.ZodString]>>>;
|
|
352
|
-
allOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
353
|
-
readonly INCOMPLETE: 'incomplete';
|
|
354
|
-
readonly REJECTED: 'rejected';
|
|
355
|
-
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
356
|
-
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
357
|
-
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
358
|
-
}>]>, z.ZodString]>>>;
|
|
359
|
-
}, z.core.$strip>>;
|
|
360
267
|
templates: z.ZodPipe<z.ZodTransform<({} | null)[] | undefined, unknown>, z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
361
268
|
}, z.core.$strip>>;
|
|
362
269
|
}, z.core.$strip>], "type">;
|
|
363
270
|
declare const SystemScopeType: z.ZodEnum<{
|
|
364
271
|
"organisation.read-locations": "organisation.read-locations";
|
|
272
|
+
"user.read": "user.read";
|
|
365
273
|
"user.create": "user.create";
|
|
366
274
|
"user.edit": "user.edit";
|
|
367
|
-
"user.read": "user.read";
|
|
368
275
|
"user.search": "user.search";
|
|
369
276
|
}>;
|
|
370
277
|
export type SystemScopeType = z.infer<typeof SystemScopeType>;
|
|
371
278
|
declare const UserScopeType: z.ZodEnum<{
|
|
279
|
+
"user.read": "user.read";
|
|
372
280
|
"user.create": "user.create";
|
|
373
281
|
"user.edit": "user.edit";
|
|
374
|
-
"user.read": "user.read";
|
|
375
282
|
"user.search": "user.search";
|
|
376
283
|
}>;
|
|
377
284
|
export type UserScopeType = z.infer<typeof UserScopeType>;
|
|
@@ -388,8 +295,8 @@ export declare const UserScopeV2: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
388
295
|
options: z.ZodOptional<z.ZodObject<{
|
|
389
296
|
accessLevel: z.ZodOptional<z.ZodEnum<{
|
|
390
297
|
administrativeArea: "administrativeArea";
|
|
391
|
-
all: "all";
|
|
392
298
|
location: "location";
|
|
299
|
+
all: "all";
|
|
393
300
|
}>>;
|
|
394
301
|
role: z.ZodOptional<z.ZodPipe<z.ZodTransform<({} | null)[] | undefined, unknown>, z.ZodOptional<z.ZodArray<z.ZodString>>>>;
|
|
395
302
|
}, z.core.$strip>>;
|
|
@@ -401,8 +308,8 @@ export declare const UserScopeV2: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
401
308
|
options: z.ZodOptional<z.ZodObject<{
|
|
402
309
|
accessLevel: z.ZodOptional<z.ZodEnum<{
|
|
403
310
|
administrativeArea: "administrativeArea";
|
|
404
|
-
all: "all";
|
|
405
311
|
location: "location";
|
|
312
|
+
all: "all";
|
|
406
313
|
}>>;
|
|
407
314
|
}, z.core.$strip>>;
|
|
408
315
|
}, z.core.$strip>], "type">;
|
|
@@ -434,12 +341,12 @@ export declare const ResolvedRecordScopeV2: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
434
341
|
}, z.core.$strip>>;
|
|
435
342
|
}, z.core.$strip>, z.ZodObject<{
|
|
436
343
|
type: z.ZodEnum<{
|
|
437
|
-
"record.archive": "record.archive";
|
|
438
344
|
"record.edit": "record.edit";
|
|
439
|
-
"record.register": "record.register";
|
|
440
345
|
"record.reject": "record.reject";
|
|
441
|
-
"record.
|
|
346
|
+
"record.archive": "record.archive";
|
|
442
347
|
"record.unarchive": "record.unarchive";
|
|
348
|
+
"record.review-duplicates": "record.review-duplicates";
|
|
349
|
+
"record.register": "record.register";
|
|
443
350
|
}>;
|
|
444
351
|
options: z.ZodOptional<z.ZodObject<{
|
|
445
352
|
event: z.ZodPipe<z.ZodTransform<({} | null)[] | undefined, unknown>, z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
@@ -451,10 +358,10 @@ export declare const ResolvedRecordScopeV2: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
451
358
|
}, z.core.$strip>>;
|
|
452
359
|
}, z.core.$strip>, z.ZodObject<{
|
|
453
360
|
type: z.ZodEnum<{
|
|
454
|
-
"record.
|
|
361
|
+
"record.search": "record.search";
|
|
455
362
|
"record.read": "record.read";
|
|
456
363
|
"record.request-correction": "record.request-correction";
|
|
457
|
-
"record.
|
|
364
|
+
"record.correct": "record.correct";
|
|
458
365
|
"record.unassign-others": "record.unassign-others";
|
|
459
366
|
}>;
|
|
460
367
|
options: z.ZodOptional<z.ZodObject<{
|
|
@@ -466,29 +373,6 @@ export declare const ResolvedRecordScopeV2: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
466
373
|
declaredBy: z.ZodOptional<z.ZodString>;
|
|
467
374
|
registeredIn: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
468
375
|
registeredBy: z.ZodOptional<z.ZodString>;
|
|
469
|
-
flags: z.ZodOptional<z.ZodObject<{
|
|
470
|
-
anyOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
471
|
-
readonly INCOMPLETE: 'incomplete';
|
|
472
|
-
readonly REJECTED: 'rejected';
|
|
473
|
-
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
474
|
-
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
475
|
-
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
476
|
-
}>]>, z.ZodString]>>>;
|
|
477
|
-
noneOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
478
|
-
readonly INCOMPLETE: 'incomplete';
|
|
479
|
-
readonly REJECTED: 'rejected';
|
|
480
|
-
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
481
|
-
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
482
|
-
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
483
|
-
}>]>, z.ZodString]>>>;
|
|
484
|
-
allOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
485
|
-
readonly INCOMPLETE: 'incomplete';
|
|
486
|
-
readonly REJECTED: 'rejected';
|
|
487
|
-
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
488
|
-
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
489
|
-
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
490
|
-
}>]>, z.ZodString]>>>;
|
|
491
|
-
}, z.core.$strip>>;
|
|
492
376
|
}, z.core.$strip>>;
|
|
493
377
|
}, z.core.$strip>, z.ZodObject<{
|
|
494
378
|
type: z.ZodLiteral<"record.print-certified-copies">;
|
|
@@ -501,29 +385,6 @@ export declare const ResolvedRecordScopeV2: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
501
385
|
declaredBy: z.ZodOptional<z.ZodString>;
|
|
502
386
|
registeredIn: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
503
387
|
registeredBy: z.ZodOptional<z.ZodString>;
|
|
504
|
-
flags: z.ZodOptional<z.ZodObject<{
|
|
505
|
-
anyOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
506
|
-
readonly INCOMPLETE: 'incomplete';
|
|
507
|
-
readonly REJECTED: 'rejected';
|
|
508
|
-
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
509
|
-
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
510
|
-
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
511
|
-
}>]>, z.ZodString]>>>;
|
|
512
|
-
noneOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
513
|
-
readonly INCOMPLETE: 'incomplete';
|
|
514
|
-
readonly REJECTED: 'rejected';
|
|
515
|
-
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
516
|
-
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
517
|
-
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
518
|
-
}>]>, z.ZodString]>>>;
|
|
519
|
-
allOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
520
|
-
readonly INCOMPLETE: 'incomplete';
|
|
521
|
-
readonly REJECTED: 'rejected';
|
|
522
|
-
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
523
|
-
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
524
|
-
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
525
|
-
}>]>, z.ZodString]>>>;
|
|
526
|
-
}, z.core.$strip>>;
|
|
527
388
|
templates: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
528
389
|
}, z.core.$strip>>;
|
|
529
390
|
}, z.core.$strip>], "type">;
|
|
@@ -532,21 +393,20 @@ export type ResolvedRecordScopeV2 = z.infer<typeof ResolvedRecordScopeV2>;
|
|
|
532
393
|
/** The primary scope schema which gathers all scope types together. All scopes are discriminated by type and options are determined according to the type. */
|
|
533
394
|
export declare const Scope: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
534
395
|
type: z.ZodEnum<{
|
|
535
|
-
"attachment.upload": "attachment.upload";
|
|
536
396
|
bypassratelimit: "bypassratelimit";
|
|
537
|
-
"
|
|
397
|
+
"record.reindex": "record.reindex";
|
|
398
|
+
"user.data-seeding": "user.data-seeding";
|
|
538
399
|
"integration.create": "integration.create";
|
|
539
|
-
"
|
|
400
|
+
"record.import": "record.import";
|
|
401
|
+
"config.update-all": "config.update-all";
|
|
402
|
+
"attachment.upload": "attachment.upload";
|
|
403
|
+
"profile.electronic-signature": "profile.electronic-signature";
|
|
404
|
+
"user.read-only-my-audit": "user.read-only-my-audit";
|
|
540
405
|
"performance.read": "performance.read";
|
|
541
406
|
"performance.read-dashboards": "performance.read-dashboards";
|
|
542
407
|
"performance.vital-statistics-export": "performance.vital-statistics-export";
|
|
543
|
-
"profile.electronic-signature": "profile.electronic-signature";
|
|
544
408
|
"record.confirm-registration": "record.confirm-registration";
|
|
545
|
-
"record.import": "record.import";
|
|
546
|
-
"record.reindex": "record.reindex";
|
|
547
409
|
"record.reject-registration": "record.reject-registration";
|
|
548
|
-
"user.data-seeding": "user.data-seeding";
|
|
549
|
-
"user.read-only-my-audit": "user.read-only-my-audit";
|
|
550
410
|
}>;
|
|
551
411
|
}, z.core.$strip>, z.ZodObject<{
|
|
552
412
|
type: z.ZodEnum<{
|
|
@@ -558,38 +418,38 @@ export declare const Scope: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
558
418
|
event: z.ZodPipe<z.ZodTransform<({} | null)[] | undefined, unknown>, z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
559
419
|
placeOfEvent: z.ZodOptional<z.ZodEnum<{
|
|
560
420
|
administrativeArea: "administrativeArea";
|
|
561
|
-
all: "all";
|
|
562
421
|
location: "location";
|
|
422
|
+
all: "all";
|
|
563
423
|
}>>;
|
|
564
424
|
}, z.core.$strip>>;
|
|
565
425
|
}, z.core.$strip>, z.ZodObject<{
|
|
566
426
|
type: z.ZodEnum<{
|
|
567
|
-
"record.archive": "record.archive";
|
|
568
427
|
"record.edit": "record.edit";
|
|
569
|
-
"record.register": "record.register";
|
|
570
428
|
"record.reject": "record.reject";
|
|
571
|
-
"record.
|
|
429
|
+
"record.archive": "record.archive";
|
|
572
430
|
"record.unarchive": "record.unarchive";
|
|
431
|
+
"record.review-duplicates": "record.review-duplicates";
|
|
432
|
+
"record.register": "record.register";
|
|
573
433
|
}>;
|
|
574
434
|
options: z.ZodOptional<z.ZodObject<{
|
|
575
435
|
event: z.ZodPipe<z.ZodTransform<({} | null)[] | undefined, unknown>, z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
576
436
|
placeOfEvent: z.ZodOptional<z.ZodEnum<{
|
|
577
437
|
administrativeArea: "administrativeArea";
|
|
578
|
-
all: "all";
|
|
579
438
|
location: "location";
|
|
439
|
+
all: "all";
|
|
580
440
|
}>>;
|
|
581
441
|
notifiedIn: z.ZodOptional<z.ZodEnum<{
|
|
582
442
|
administrativeArea: "administrativeArea";
|
|
583
|
-
all: "all";
|
|
584
443
|
location: "location";
|
|
444
|
+
all: "all";
|
|
585
445
|
}>>;
|
|
586
446
|
notifiedBy: z.ZodOptional<z.ZodEnum<{
|
|
587
447
|
user: "user";
|
|
588
448
|
}>>;
|
|
589
449
|
declaredIn: z.ZodOptional<z.ZodEnum<{
|
|
590
450
|
administrativeArea: "administrativeArea";
|
|
591
|
-
all: "all";
|
|
592
451
|
location: "location";
|
|
452
|
+
all: "all";
|
|
593
453
|
}>>;
|
|
594
454
|
declaredBy: z.ZodOptional<z.ZodEnum<{
|
|
595
455
|
user: "user";
|
|
@@ -597,66 +457,43 @@ export declare const Scope: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
597
457
|
}, z.core.$strip>>;
|
|
598
458
|
}, z.core.$strip>, z.ZodObject<{
|
|
599
459
|
type: z.ZodEnum<{
|
|
600
|
-
"record.
|
|
460
|
+
"record.search": "record.search";
|
|
601
461
|
"record.read": "record.read";
|
|
602
462
|
"record.request-correction": "record.request-correction";
|
|
603
|
-
"record.
|
|
463
|
+
"record.correct": "record.correct";
|
|
604
464
|
"record.unassign-others": "record.unassign-others";
|
|
605
465
|
}>;
|
|
606
466
|
options: z.ZodOptional<z.ZodObject<{
|
|
607
467
|
event: z.ZodPipe<z.ZodTransform<({} | null)[] | undefined, unknown>, z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
608
468
|
placeOfEvent: z.ZodOptional<z.ZodEnum<{
|
|
609
469
|
administrativeArea: "administrativeArea";
|
|
610
|
-
all: "all";
|
|
611
470
|
location: "location";
|
|
471
|
+
all: "all";
|
|
612
472
|
}>>;
|
|
613
473
|
notifiedIn: z.ZodOptional<z.ZodEnum<{
|
|
614
474
|
administrativeArea: "administrativeArea";
|
|
615
|
-
all: "all";
|
|
616
475
|
location: "location";
|
|
476
|
+
all: "all";
|
|
617
477
|
}>>;
|
|
618
478
|
notifiedBy: z.ZodOptional<z.ZodEnum<{
|
|
619
479
|
user: "user";
|
|
620
480
|
}>>;
|
|
621
481
|
declaredIn: z.ZodOptional<z.ZodEnum<{
|
|
622
482
|
administrativeArea: "administrativeArea";
|
|
623
|
-
all: "all";
|
|
624
483
|
location: "location";
|
|
484
|
+
all: "all";
|
|
625
485
|
}>>;
|
|
626
486
|
declaredBy: z.ZodOptional<z.ZodEnum<{
|
|
627
487
|
user: "user";
|
|
628
488
|
}>>;
|
|
629
489
|
registeredIn: z.ZodOptional<z.ZodEnum<{
|
|
630
490
|
administrativeArea: "administrativeArea";
|
|
631
|
-
all: "all";
|
|
632
491
|
location: "location";
|
|
492
|
+
all: "all";
|
|
633
493
|
}>>;
|
|
634
494
|
registeredBy: z.ZodOptional<z.ZodEnum<{
|
|
635
495
|
user: "user";
|
|
636
496
|
}>>;
|
|
637
|
-
flags: z.ZodOptional<z.ZodObject<{
|
|
638
|
-
anyOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
639
|
-
readonly INCOMPLETE: 'incomplete';
|
|
640
|
-
readonly REJECTED: 'rejected';
|
|
641
|
-
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
642
|
-
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
643
|
-
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
644
|
-
}>]>, z.ZodString]>>>;
|
|
645
|
-
noneOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
646
|
-
readonly INCOMPLETE: 'incomplete';
|
|
647
|
-
readonly REJECTED: 'rejected';
|
|
648
|
-
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
649
|
-
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
650
|
-
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
651
|
-
}>]>, z.ZodString]>>>;
|
|
652
|
-
allOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
653
|
-
readonly INCOMPLETE: 'incomplete';
|
|
654
|
-
readonly REJECTED: 'rejected';
|
|
655
|
-
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
656
|
-
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
657
|
-
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
658
|
-
}>]>, z.ZodString]>>>;
|
|
659
|
-
}, z.core.$strip>>;
|
|
660
497
|
}, z.core.$strip>>;
|
|
661
498
|
}, z.core.$strip>, z.ZodObject<{
|
|
662
499
|
type: z.ZodLiteral<"record.custom-action">;
|
|
@@ -664,56 +501,33 @@ export declare const Scope: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
664
501
|
event: z.ZodPipe<z.ZodTransform<({} | null)[] | undefined, unknown>, z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
665
502
|
placeOfEvent: z.ZodOptional<z.ZodEnum<{
|
|
666
503
|
administrativeArea: "administrativeArea";
|
|
667
|
-
all: "all";
|
|
668
504
|
location: "location";
|
|
505
|
+
all: "all";
|
|
669
506
|
}>>;
|
|
670
507
|
notifiedIn: z.ZodOptional<z.ZodEnum<{
|
|
671
508
|
administrativeArea: "administrativeArea";
|
|
672
|
-
all: "all";
|
|
673
509
|
location: "location";
|
|
510
|
+
all: "all";
|
|
674
511
|
}>>;
|
|
675
512
|
notifiedBy: z.ZodOptional<z.ZodEnum<{
|
|
676
513
|
user: "user";
|
|
677
514
|
}>>;
|
|
678
515
|
declaredIn: z.ZodOptional<z.ZodEnum<{
|
|
679
516
|
administrativeArea: "administrativeArea";
|
|
680
|
-
all: "all";
|
|
681
517
|
location: "location";
|
|
518
|
+
all: "all";
|
|
682
519
|
}>>;
|
|
683
520
|
declaredBy: z.ZodOptional<z.ZodEnum<{
|
|
684
521
|
user: "user";
|
|
685
522
|
}>>;
|
|
686
523
|
registeredIn: z.ZodOptional<z.ZodEnum<{
|
|
687
524
|
administrativeArea: "administrativeArea";
|
|
688
|
-
all: "all";
|
|
689
525
|
location: "location";
|
|
526
|
+
all: "all";
|
|
690
527
|
}>>;
|
|
691
528
|
registeredBy: z.ZodOptional<z.ZodEnum<{
|
|
692
529
|
user: "user";
|
|
693
530
|
}>>;
|
|
694
|
-
flags: z.ZodOptional<z.ZodObject<{
|
|
695
|
-
anyOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
696
|
-
readonly INCOMPLETE: 'incomplete';
|
|
697
|
-
readonly REJECTED: 'rejected';
|
|
698
|
-
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
699
|
-
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
700
|
-
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
701
|
-
}>]>, z.ZodString]>>>;
|
|
702
|
-
noneOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
703
|
-
readonly INCOMPLETE: 'incomplete';
|
|
704
|
-
readonly REJECTED: 'rejected';
|
|
705
|
-
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
706
|
-
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
707
|
-
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
708
|
-
}>]>, z.ZodString]>>>;
|
|
709
|
-
allOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
710
|
-
readonly INCOMPLETE: 'incomplete';
|
|
711
|
-
readonly REJECTED: 'rejected';
|
|
712
|
-
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
713
|
-
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
714
|
-
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
715
|
-
}>]>, z.ZodString]>>>;
|
|
716
|
-
}, z.core.$strip>>;
|
|
717
531
|
customActionTypes: z.ZodPipe<z.ZodTransform<({} | null)[] | undefined, unknown>, z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
718
532
|
}, z.core.$strip>>;
|
|
719
533
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -722,56 +536,33 @@ export declare const Scope: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
722
536
|
event: z.ZodPipe<z.ZodTransform<({} | null)[] | undefined, unknown>, z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
723
537
|
placeOfEvent: z.ZodOptional<z.ZodEnum<{
|
|
724
538
|
administrativeArea: "administrativeArea";
|
|
725
|
-
all: "all";
|
|
726
539
|
location: "location";
|
|
540
|
+
all: "all";
|
|
727
541
|
}>>;
|
|
728
542
|
notifiedIn: z.ZodOptional<z.ZodEnum<{
|
|
729
543
|
administrativeArea: "administrativeArea";
|
|
730
|
-
all: "all";
|
|
731
544
|
location: "location";
|
|
545
|
+
all: "all";
|
|
732
546
|
}>>;
|
|
733
547
|
notifiedBy: z.ZodOptional<z.ZodEnum<{
|
|
734
548
|
user: "user";
|
|
735
549
|
}>>;
|
|
736
550
|
declaredIn: z.ZodOptional<z.ZodEnum<{
|
|
737
551
|
administrativeArea: "administrativeArea";
|
|
738
|
-
all: "all";
|
|
739
552
|
location: "location";
|
|
553
|
+
all: "all";
|
|
740
554
|
}>>;
|
|
741
555
|
declaredBy: z.ZodOptional<z.ZodEnum<{
|
|
742
556
|
user: "user";
|
|
743
557
|
}>>;
|
|
744
558
|
registeredIn: z.ZodOptional<z.ZodEnum<{
|
|
745
559
|
administrativeArea: "administrativeArea";
|
|
746
|
-
all: "all";
|
|
747
560
|
location: "location";
|
|
561
|
+
all: "all";
|
|
748
562
|
}>>;
|
|
749
563
|
registeredBy: z.ZodOptional<z.ZodEnum<{
|
|
750
564
|
user: "user";
|
|
751
565
|
}>>;
|
|
752
|
-
flags: z.ZodOptional<z.ZodObject<{
|
|
753
|
-
anyOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
754
|
-
readonly INCOMPLETE: 'incomplete';
|
|
755
|
-
readonly REJECTED: 'rejected';
|
|
756
|
-
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
757
|
-
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
758
|
-
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
759
|
-
}>]>, z.ZodString]>>>;
|
|
760
|
-
noneOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
761
|
-
readonly INCOMPLETE: 'incomplete';
|
|
762
|
-
readonly REJECTED: 'rejected';
|
|
763
|
-
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
764
|
-
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
765
|
-
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
766
|
-
}>]>, z.ZodString]>>>;
|
|
767
|
-
allOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
768
|
-
readonly INCOMPLETE: 'incomplete';
|
|
769
|
-
readonly REJECTED: 'rejected';
|
|
770
|
-
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
771
|
-
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
772
|
-
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
773
|
-
}>]>, z.ZodString]>>>;
|
|
774
|
-
}, z.core.$strip>>;
|
|
775
566
|
templates: z.ZodPipe<z.ZodTransform<({} | null)[] | undefined, unknown>, z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
776
567
|
}, z.core.$strip>>;
|
|
777
568
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -782,8 +573,8 @@ export declare const Scope: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
782
573
|
options: z.ZodOptional<z.ZodObject<{
|
|
783
574
|
accessLevel: z.ZodOptional<z.ZodEnum<{
|
|
784
575
|
administrativeArea: "administrativeArea";
|
|
785
|
-
all: "all";
|
|
786
576
|
location: "location";
|
|
577
|
+
all: "all";
|
|
787
578
|
}>>;
|
|
788
579
|
role: z.ZodOptional<z.ZodPipe<z.ZodTransform<({} | null)[] | undefined, unknown>, z.ZodOptional<z.ZodArray<z.ZodString>>>>;
|
|
789
580
|
}, z.core.$strip>>;
|
|
@@ -795,8 +586,8 @@ export declare const Scope: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
795
586
|
options: z.ZodOptional<z.ZodObject<{
|
|
796
587
|
accessLevel: z.ZodOptional<z.ZodEnum<{
|
|
797
588
|
administrativeArea: "administrativeArea";
|
|
798
|
-
all: "all";
|
|
799
589
|
location: "location";
|
|
590
|
+
all: "all";
|
|
800
591
|
}>>;
|
|
801
592
|
}, z.core.$strip>>;
|
|
802
593
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -804,8 +595,8 @@ export declare const Scope: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
804
595
|
options: z.ZodOptional<z.ZodObject<{
|
|
805
596
|
accessLevel: z.ZodOptional<z.ZodEnum<{
|
|
806
597
|
administrativeArea: "administrativeArea";
|
|
807
|
-
all: "all";
|
|
808
598
|
location: "location";
|
|
599
|
+
all: "all";
|
|
809
600
|
}>>;
|
|
810
601
|
}, z.core.$strip>>;
|
|
811
602
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -821,44 +612,43 @@ export declare const Scope: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
821
612
|
}, z.core.$strip>], "type">;
|
|
822
613
|
export type Scope = z.infer<typeof Scope>;
|
|
823
614
|
export declare const ScopeType: z.ZodEnum<{
|
|
824
|
-
"
|
|
615
|
+
"record.search": "record.search";
|
|
616
|
+
"record.create": "record.create";
|
|
617
|
+
"record.read": "record.read";
|
|
618
|
+
"record.declare": "record.declare";
|
|
619
|
+
"record.notify": "record.notify";
|
|
620
|
+
"record.edit": "record.edit";
|
|
621
|
+
"record.reject": "record.reject";
|
|
622
|
+
"record.archive": "record.archive";
|
|
623
|
+
"record.unarchive": "record.unarchive";
|
|
624
|
+
"record.review-duplicates": "record.review-duplicates";
|
|
625
|
+
"record.register": "record.register";
|
|
626
|
+
"record.print-certified-copies": "record.print-certified-copies";
|
|
627
|
+
"record.request-correction": "record.request-correction";
|
|
628
|
+
"record.correct": "record.correct";
|
|
629
|
+
"record.unassign-others": "record.unassign-others";
|
|
630
|
+
"record.custom-action": "record.custom-action";
|
|
825
631
|
bypassratelimit: "bypassratelimit";
|
|
826
|
-
"
|
|
827
|
-
"
|
|
632
|
+
"record.reindex": "record.reindex";
|
|
633
|
+
"user.data-seeding": "user.data-seeding";
|
|
828
634
|
"integration.create": "integration.create";
|
|
829
|
-
"
|
|
830
|
-
"
|
|
635
|
+
"record.import": "record.import";
|
|
636
|
+
"config.update-all": "config.update-all";
|
|
637
|
+
"attachment.upload": "attachment.upload";
|
|
638
|
+
"profile.electronic-signature": "profile.electronic-signature";
|
|
639
|
+
"user.read-only-my-audit": "user.read-only-my-audit";
|
|
831
640
|
"performance.read": "performance.read";
|
|
832
641
|
"performance.read-dashboards": "performance.read-dashboards";
|
|
833
642
|
"performance.vital-statistics-export": "performance.vital-statistics-export";
|
|
834
|
-
"profile.electronic-signature": "profile.electronic-signature";
|
|
835
|
-
"record.archive": "record.archive";
|
|
836
643
|
"record.confirm-registration": "record.confirm-registration";
|
|
837
|
-
"record.correct": "record.correct";
|
|
838
|
-
"record.create": "record.create";
|
|
839
|
-
"record.custom-action": "record.custom-action";
|
|
840
|
-
"record.declare": "record.declare";
|
|
841
|
-
"record.edit": "record.edit";
|
|
842
|
-
"record.import": "record.import";
|
|
843
|
-
"record.notify": "record.notify";
|
|
844
|
-
"record.print-certified-copies": "record.print-certified-copies";
|
|
845
|
-
"record.read": "record.read";
|
|
846
|
-
"record.register": "record.register";
|
|
847
|
-
"record.reindex": "record.reindex";
|
|
848
|
-
"record.reject": "record.reject";
|
|
849
644
|
"record.reject-registration": "record.reject-registration";
|
|
850
|
-
"
|
|
851
|
-
"
|
|
852
|
-
"record.search": "record.search";
|
|
853
|
-
"record.unarchive": "record.unarchive";
|
|
854
|
-
"record.unassign-others": "record.unassign-others";
|
|
645
|
+
"organisation.read-locations": "organisation.read-locations";
|
|
646
|
+
"user.read": "user.read";
|
|
855
647
|
"user.create": "user.create";
|
|
856
|
-
"user.data-seeding": "user.data-seeding";
|
|
857
648
|
"user.edit": "user.edit";
|
|
858
|
-
"user.read": "user.read";
|
|
859
|
-
"user.read-only-my-audit": "user.read-only-my-audit";
|
|
860
649
|
"user.search": "user.search";
|
|
861
650
|
workqueue: "workqueue";
|
|
651
|
+
"dashboard.view": "dashboard.view";
|
|
862
652
|
}>;
|
|
863
653
|
export type ScopeType = z.infer<typeof ScopeType>;
|
|
864
654
|
/**
|
|
@@ -885,88 +675,73 @@ export declare const decodeScope: (encodedScope: EncodedScope) => {
|
|
|
885
675
|
type: "record.create" | "record.declare" | "record.notify";
|
|
886
676
|
options?: {
|
|
887
677
|
event?: string[] | undefined;
|
|
888
|
-
placeOfEvent?: "administrativeArea" | "
|
|
678
|
+
placeOfEvent?: "administrativeArea" | "location" | "all" | undefined;
|
|
889
679
|
} | undefined;
|
|
890
680
|
} | {
|
|
891
|
-
type: "record.
|
|
681
|
+
type: "record.edit" | "record.reject" | "record.archive" | "record.unarchive" | "record.review-duplicates" | "record.register";
|
|
892
682
|
options?: {
|
|
893
683
|
event?: string[] | undefined;
|
|
894
|
-
placeOfEvent?: "administrativeArea" | "
|
|
895
|
-
notifiedIn?: "administrativeArea" | "
|
|
684
|
+
placeOfEvent?: "administrativeArea" | "location" | "all" | undefined;
|
|
685
|
+
notifiedIn?: "administrativeArea" | "location" | "all" | undefined;
|
|
896
686
|
notifiedBy?: "user" | undefined;
|
|
897
|
-
declaredIn?: "administrativeArea" | "
|
|
687
|
+
declaredIn?: "administrativeArea" | "location" | "all" | undefined;
|
|
898
688
|
declaredBy?: "user" | undefined;
|
|
899
689
|
} | undefined;
|
|
900
690
|
} | {
|
|
901
|
-
type: "record.
|
|
691
|
+
type: "record.search" | "record.read" | "record.request-correction" | "record.correct" | "record.unassign-others";
|
|
902
692
|
options?: {
|
|
903
693
|
event?: string[] | undefined;
|
|
904
|
-
placeOfEvent?: "administrativeArea" | "
|
|
905
|
-
notifiedIn?: "administrativeArea" | "
|
|
694
|
+
placeOfEvent?: "administrativeArea" | "location" | "all" | undefined;
|
|
695
|
+
notifiedIn?: "administrativeArea" | "location" | "all" | undefined;
|
|
906
696
|
notifiedBy?: "user" | undefined;
|
|
907
|
-
declaredIn?: "administrativeArea" | "
|
|
697
|
+
declaredIn?: "administrativeArea" | "location" | "all" | undefined;
|
|
908
698
|
declaredBy?: "user" | undefined;
|
|
909
|
-
registeredIn?: "administrativeArea" | "
|
|
699
|
+
registeredIn?: "administrativeArea" | "location" | "all" | undefined;
|
|
910
700
|
registeredBy?: "user" | undefined;
|
|
911
|
-
flags?: {
|
|
912
|
-
anyOf?: string[] | undefined;
|
|
913
|
-
noneOf?: string[] | undefined;
|
|
914
|
-
allOf?: string[] | undefined;
|
|
915
|
-
} | undefined;
|
|
916
701
|
} | undefined;
|
|
917
702
|
} | {
|
|
918
703
|
type: "record.custom-action";
|
|
919
704
|
options?: {
|
|
920
705
|
event?: string[] | undefined;
|
|
921
|
-
placeOfEvent?: "administrativeArea" | "
|
|
922
|
-
notifiedIn?: "administrativeArea" | "
|
|
706
|
+
placeOfEvent?: "administrativeArea" | "location" | "all" | undefined;
|
|
707
|
+
notifiedIn?: "administrativeArea" | "location" | "all" | undefined;
|
|
923
708
|
notifiedBy?: "user" | undefined;
|
|
924
|
-
declaredIn?: "administrativeArea" | "
|
|
709
|
+
declaredIn?: "administrativeArea" | "location" | "all" | undefined;
|
|
925
710
|
declaredBy?: "user" | undefined;
|
|
926
|
-
registeredIn?: "administrativeArea" | "
|
|
711
|
+
registeredIn?: "administrativeArea" | "location" | "all" | undefined;
|
|
927
712
|
registeredBy?: "user" | undefined;
|
|
928
|
-
flags?: {
|
|
929
|
-
anyOf?: string[] | undefined;
|
|
930
|
-
noneOf?: string[] | undefined;
|
|
931
|
-
allOf?: string[] | undefined;
|
|
932
|
-
} | undefined;
|
|
933
713
|
customActionTypes?: string[] | undefined;
|
|
934
714
|
} | undefined;
|
|
935
715
|
} | {
|
|
936
716
|
type: "record.print-certified-copies";
|
|
937
717
|
options?: {
|
|
938
718
|
event?: string[] | undefined;
|
|
939
|
-
placeOfEvent?: "administrativeArea" | "
|
|
940
|
-
notifiedIn?: "administrativeArea" | "
|
|
719
|
+
placeOfEvent?: "administrativeArea" | "location" | "all" | undefined;
|
|
720
|
+
notifiedIn?: "administrativeArea" | "location" | "all" | undefined;
|
|
941
721
|
notifiedBy?: "user" | undefined;
|
|
942
|
-
declaredIn?: "administrativeArea" | "
|
|
722
|
+
declaredIn?: "administrativeArea" | "location" | "all" | undefined;
|
|
943
723
|
declaredBy?: "user" | undefined;
|
|
944
|
-
registeredIn?: "administrativeArea" | "
|
|
724
|
+
registeredIn?: "administrativeArea" | "location" | "all" | undefined;
|
|
945
725
|
registeredBy?: "user" | undefined;
|
|
946
|
-
flags?: {
|
|
947
|
-
anyOf?: string[] | undefined;
|
|
948
|
-
noneOf?: string[] | undefined;
|
|
949
|
-
allOf?: string[] | undefined;
|
|
950
|
-
} | undefined;
|
|
951
726
|
templates?: string[] | undefined;
|
|
952
727
|
} | undefined;
|
|
953
728
|
} | {
|
|
954
729
|
type: "user.create" | "user.edit";
|
|
955
730
|
options?: {
|
|
956
|
-
accessLevel?: "administrativeArea" | "
|
|
731
|
+
accessLevel?: "administrativeArea" | "location" | "all" | undefined;
|
|
957
732
|
role?: string[] | undefined;
|
|
958
733
|
} | undefined;
|
|
959
734
|
} | {
|
|
960
735
|
type: "user.read" | "user.search";
|
|
961
736
|
options?: {
|
|
962
|
-
accessLevel?: "administrativeArea" | "
|
|
737
|
+
accessLevel?: "administrativeArea" | "location" | "all" | undefined;
|
|
963
738
|
} | undefined;
|
|
964
739
|
} | {
|
|
965
|
-
type: "
|
|
740
|
+
type: "bypassratelimit" | "record.reindex" | "user.data-seeding" | "integration.create" | "record.import" | "config.update-all" | "attachment.upload" | "profile.electronic-signature" | "user.read-only-my-audit" | "performance.read" | "performance.read-dashboards" | "performance.vital-statistics-export" | "record.confirm-registration" | "record.reject-registration";
|
|
966
741
|
} | {
|
|
967
742
|
type: "organisation.read-locations";
|
|
968
743
|
options?: {
|
|
969
|
-
accessLevel?: "administrativeArea" | "
|
|
744
|
+
accessLevel?: "administrativeArea" | "location" | "all" | undefined;
|
|
970
745
|
} | undefined;
|
|
971
746
|
} | {
|
|
972
747
|
type: "workqueue";
|
|
@@ -1052,7 +827,7 @@ export declare function canUserCreateEvent(userScopes: EncodedScope[], eventType
|
|
|
1052
827
|
* @param scopes Array of scopes in object format.
|
|
1053
828
|
* @returns Array of scopes in string format, encoded for use in JWT tokens.
|
|
1054
829
|
*/
|
|
1055
|
-
export declare function defineScopes(scopes: Scope[]): (string & z.$brand<"EncodedScope">)[];
|
|
830
|
+
export declare function defineScopes(scopes: Scope[]): (string & z.core.$brand<"EncodedScope">)[];
|
|
1056
831
|
/**
|
|
1057
832
|
* Helper for defining user roles. Should be used in country config.
|
|
1058
833
|
*
|
|
@@ -1060,7 +835,7 @@ export declare function defineScopes(scopes: Scope[]): (string & z.$brand<"Encod
|
|
|
1060
835
|
*/
|
|
1061
836
|
export declare function defineRoles(roles: Role[]): {
|
|
1062
837
|
id: string;
|
|
1063
|
-
scopes: (string & z.$brand<"EncodedScope">)[];
|
|
838
|
+
scopes: (string & z.core.$brand<"EncodedScope">)[];
|
|
1064
839
|
}[];
|
|
1065
840
|
export {};
|
|
1066
841
|
//# sourceMappingURL=scopes.d.ts.map
|