@opencrvs/toolkit 2.0.0-rc.ecef004 → 2.0.0-rc.ed0aa22
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/commons/api/router.d.ts +1570 -1570
- package/dist/commons/application-config/index.d.ts +6 -6
- package/dist/commons/conditionals/conditionals.d.ts +323 -32
- package/dist/commons/events/ActionConfig.d.ts +77 -70
- package/dist/commons/events/ActionDocument.d.ts +107 -107
- package/dist/commons/events/ActionType.d.ts +57 -57
- package/dist/commons/events/AdvancedSearchConfig.d.ts +501 -501
- package/dist/commons/events/AuditLog.d.ts +41 -41
- 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 +35 -35
- package/dist/commons/events/DynamicFieldValue.d.ts +9 -9
- package/dist/commons/events/EventConfig.d.ts +5 -5
- package/dist/commons/events/EventDocument.d.ts +43 -43
- package/dist/commons/events/EventIndex.d.ts +62 -62
- package/dist/commons/events/EventMetadata.d.ts +40 -40
- package/dist/commons/events/FieldConfig.d.ts +331 -331
- package/dist/commons/events/FieldType.d.ts +51 -51
- package/dist/commons/events/FieldTypeMapping.d.ts +100 -100
- package/dist/commons/events/FieldValue.d.ts +12 -12
- package/dist/commons/events/Flag.d.ts +15 -15
- 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 +817 -817
- package/dist/commons/events/deduplication.d.ts +1 -1
- package/dist/commons/events/event.d.ts +2 -2
- package/dist/commons/events/field.d.ts +198 -69
- package/dist/commons/events/locations.d.ts +4 -4
- package/dist/commons/events/mocks.test.utils.d.ts +2 -2
- 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 +33 -33
- package/dist/commons/events/utils.d.ts +118 -110
- package/dist/commons/notification/UserNotifications.d.ts +10 -10
- package/dist/environment/derived-variables.d.ts +131 -131
- package/dist/environment/derived-variables.d.ts.map +1 -1
- package/dist/environment/logger.d.ts +12 -3
- package/dist/environment/logger.d.ts.map +1 -1
- package/dist/environment/manage-users.js +7 -17
- 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/swarm-to-k8s.js +7 -17
- package/dist/environment/update-workflows.js +7 -17
- package/dist/environment/users.js +7 -17
- package/dist/environment/utils.d.ts +1 -1
- package/dist/environment/utils.js +7 -17
- package/dist/events/deduplication.d.ts +1 -1
- package/dist/events/index.js +36 -12
- package/dist/migrations/v2.0/convert-config-files-to-ts.js +7 -17
- package/dist/migrations/v2.0/migrate-application-config-url.js +3 -4
- package/dist/migrations/v2.0/remove-hearth-migrations.js +7 -17
- package/dist/notification/index.js +22 -11
- package/dist/scopes/index.d.ts +140 -140
- package/opencrvs-toolkit-2.0.0-rc.ed0aa22.tgz +0 -0
- package/package.json +3 -2
- package/tsconfig.tsbuildinfo +1 -1
- package/opencrvs-toolkit-2.0.0-rc.ecef004.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,75 +17,75 @@ 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.
|
|
27
|
+
"record.archive": "record.archive";
|
|
32
28
|
"record.review-duplicates": "record.review-duplicates";
|
|
33
|
-
"record.
|
|
29
|
+
"record.register": "record.register";
|
|
30
|
+
"record.print-certified-copies": "record.print-certified-copies";
|
|
31
|
+
"record.request-correction": "record.request-correction";
|
|
32
|
+
"record.correct": "record.correct";
|
|
34
33
|
"record.unassign-others": "record.unassign-others";
|
|
34
|
+
"record.custom-action": "record.custom-action";
|
|
35
35
|
}>;
|
|
36
36
|
export type RecordScopeTypeV2 = z.infer<typeof RecordScopeTypeV2>;
|
|
37
37
|
declare const AllScopeOptions: z.ZodObject<{
|
|
38
|
+
ids: z.ZodPipe<z.ZodTransform<({} | null)[] | undefined, unknown>, z.ZodArray<z.ZodString>>;
|
|
39
|
+
accessLevel: z.ZodOptional<z.ZodEnum<{
|
|
40
|
+
administrativeArea: "administrativeArea";
|
|
41
|
+
location: "location";
|
|
42
|
+
all: "all";
|
|
43
|
+
}>>;
|
|
44
|
+
role: z.ZodOptional<z.ZodPipe<z.ZodTransform<({} | null)[] | undefined, unknown>, z.ZodOptional<z.ZodArray<z.ZodString>>>>;
|
|
38
45
|
event: z.ZodPipe<z.ZodTransform<({} | null)[] | undefined, unknown>, z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
39
46
|
placeOfEvent: z.ZodOptional<z.ZodEnum<{
|
|
40
47
|
administrativeArea: "administrativeArea";
|
|
41
|
-
all: "all";
|
|
42
48
|
location: "location";
|
|
49
|
+
all: "all";
|
|
43
50
|
}>>;
|
|
44
51
|
notifiedIn: z.ZodOptional<z.ZodEnum<{
|
|
45
52
|
administrativeArea: "administrativeArea";
|
|
46
|
-
all: "all";
|
|
47
53
|
location: "location";
|
|
54
|
+
all: "all";
|
|
48
55
|
}>>;
|
|
49
56
|
notifiedBy: z.ZodOptional<z.ZodEnum<{
|
|
50
57
|
user: "user";
|
|
51
58
|
}>>;
|
|
52
59
|
declaredIn: z.ZodOptional<z.ZodEnum<{
|
|
53
60
|
administrativeArea: "administrativeArea";
|
|
54
|
-
all: "all";
|
|
55
61
|
location: "location";
|
|
62
|
+
all: "all";
|
|
56
63
|
}>>;
|
|
57
64
|
declaredBy: z.ZodOptional<z.ZodEnum<{
|
|
58
65
|
user: "user";
|
|
59
66
|
}>>;
|
|
60
67
|
registeredIn: z.ZodOptional<z.ZodEnum<{
|
|
61
68
|
administrativeArea: "administrativeArea";
|
|
62
|
-
all: "all";
|
|
63
69
|
location: "location";
|
|
70
|
+
all: "all";
|
|
64
71
|
}>>;
|
|
65
72
|
registeredBy: z.ZodOptional<z.ZodEnum<{
|
|
66
73
|
user: "user";
|
|
67
74
|
}>>;
|
|
68
|
-
accessLevel: z.ZodOptional<z.ZodEnum<{
|
|
69
|
-
administrativeArea: "administrativeArea";
|
|
70
|
-
all: "all";
|
|
71
|
-
location: "location";
|
|
72
|
-
}>>;
|
|
73
|
-
role: z.ZodOptional<z.ZodPipe<z.ZodTransform<({} | null)[] | undefined, unknown>, z.ZodOptional<z.ZodArray<z.ZodString>>>>;
|
|
74
|
-
ids: z.ZodPipe<z.ZodTransform<({} | null)[] | undefined, unknown>, z.ZodArray<z.ZodString>>;
|
|
75
75
|
}, z.core.$strip>;
|
|
76
76
|
type AllScopeOptions = z.infer<typeof AllScopeOptions>;
|
|
77
77
|
export declare const ScopeOptionKey: z.ZodEnum<{
|
|
78
|
-
|
|
79
|
-
declaredBy: "declaredBy";
|
|
80
|
-
declaredIn: "declaredIn";
|
|
78
|
+
role: "role";
|
|
81
79
|
event: "event";
|
|
82
|
-
ids: "ids";
|
|
83
|
-
notifiedBy: "notifiedBy";
|
|
84
|
-
notifiedIn: "notifiedIn";
|
|
85
80
|
placeOfEvent: "placeOfEvent";
|
|
86
|
-
|
|
81
|
+
notifiedIn: "notifiedIn";
|
|
82
|
+
notifiedBy: "notifiedBy";
|
|
83
|
+
declaredIn: "declaredIn";
|
|
84
|
+
declaredBy: "declaredBy";
|
|
87
85
|
registeredIn: "registeredIn";
|
|
88
|
-
|
|
86
|
+
registeredBy: "registeredBy";
|
|
87
|
+
accessLevel: "accessLevel";
|
|
88
|
+
ids: "ids";
|
|
89
89
|
}>;
|
|
90
90
|
export type ScopeOptionKey = z.infer<typeof ScopeOptionKey>;
|
|
91
91
|
export declare const ScopesWithPlaceEventOptions: z.ZodEnum<{
|
|
@@ -94,17 +94,17 @@ export declare const ScopesWithPlaceEventOptions: z.ZodEnum<{
|
|
|
94
94
|
"record.notify": "record.notify";
|
|
95
95
|
}>;
|
|
96
96
|
export declare const ScopesWithDeclaredOptions: z.ZodEnum<{
|
|
97
|
-
"record.archive": "record.archive";
|
|
98
97
|
"record.edit": "record.edit";
|
|
99
|
-
"record.register": "record.register";
|
|
100
98
|
"record.reject": "record.reject";
|
|
99
|
+
"record.archive": "record.archive";
|
|
101
100
|
"record.review-duplicates": "record.review-duplicates";
|
|
101
|
+
"record.register": "record.register";
|
|
102
102
|
}>;
|
|
103
103
|
export declare const ScopesWithFullOptions: z.ZodEnum<{
|
|
104
|
-
"record.
|
|
104
|
+
"record.search": "record.search";
|
|
105
105
|
"record.read": "record.read";
|
|
106
106
|
"record.request-correction": "record.request-correction";
|
|
107
|
-
"record.
|
|
107
|
+
"record.correct": "record.correct";
|
|
108
108
|
"record.unassign-others": "record.unassign-others";
|
|
109
109
|
}>;
|
|
110
110
|
export declare const RecordScopeV2: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -117,37 +117,37 @@ export declare const RecordScopeV2: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
117
117
|
event: z.ZodPipe<z.ZodTransform<({} | null)[] | undefined, unknown>, z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
118
118
|
placeOfEvent: z.ZodOptional<z.ZodEnum<{
|
|
119
119
|
administrativeArea: "administrativeArea";
|
|
120
|
-
all: "all";
|
|
121
120
|
location: "location";
|
|
121
|
+
all: "all";
|
|
122
122
|
}>>;
|
|
123
123
|
}, z.core.$strip>>;
|
|
124
124
|
}, z.core.$strip>, z.ZodObject<{
|
|
125
125
|
type: z.ZodEnum<{
|
|
126
|
-
"record.archive": "record.archive";
|
|
127
126
|
"record.edit": "record.edit";
|
|
128
|
-
"record.register": "record.register";
|
|
129
127
|
"record.reject": "record.reject";
|
|
128
|
+
"record.archive": "record.archive";
|
|
130
129
|
"record.review-duplicates": "record.review-duplicates";
|
|
130
|
+
"record.register": "record.register";
|
|
131
131
|
}>;
|
|
132
132
|
options: z.ZodOptional<z.ZodObject<{
|
|
133
133
|
event: z.ZodPipe<z.ZodTransform<({} | null)[] | undefined, unknown>, z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
134
134
|
placeOfEvent: z.ZodOptional<z.ZodEnum<{
|
|
135
135
|
administrativeArea: "administrativeArea";
|
|
136
|
-
all: "all";
|
|
137
136
|
location: "location";
|
|
137
|
+
all: "all";
|
|
138
138
|
}>>;
|
|
139
139
|
notifiedIn: z.ZodOptional<z.ZodEnum<{
|
|
140
140
|
administrativeArea: "administrativeArea";
|
|
141
|
-
all: "all";
|
|
142
141
|
location: "location";
|
|
142
|
+
all: "all";
|
|
143
143
|
}>>;
|
|
144
144
|
notifiedBy: z.ZodOptional<z.ZodEnum<{
|
|
145
145
|
user: "user";
|
|
146
146
|
}>>;
|
|
147
147
|
declaredIn: z.ZodOptional<z.ZodEnum<{
|
|
148
148
|
administrativeArea: "administrativeArea";
|
|
149
|
-
all: "all";
|
|
150
149
|
location: "location";
|
|
150
|
+
all: "all";
|
|
151
151
|
}>>;
|
|
152
152
|
declaredBy: z.ZodOptional<z.ZodEnum<{
|
|
153
153
|
user: "user";
|
|
@@ -155,39 +155,39 @@ export declare const RecordScopeV2: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
155
155
|
}, z.core.$strip>>;
|
|
156
156
|
}, z.core.$strip>, z.ZodObject<{
|
|
157
157
|
type: z.ZodEnum<{
|
|
158
|
-
"record.
|
|
158
|
+
"record.search": "record.search";
|
|
159
159
|
"record.read": "record.read";
|
|
160
160
|
"record.request-correction": "record.request-correction";
|
|
161
|
-
"record.
|
|
161
|
+
"record.correct": "record.correct";
|
|
162
162
|
"record.unassign-others": "record.unassign-others";
|
|
163
163
|
}>;
|
|
164
164
|
options: z.ZodOptional<z.ZodObject<{
|
|
165
165
|
event: z.ZodPipe<z.ZodTransform<({} | null)[] | undefined, unknown>, z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
166
166
|
placeOfEvent: z.ZodOptional<z.ZodEnum<{
|
|
167
167
|
administrativeArea: "administrativeArea";
|
|
168
|
-
all: "all";
|
|
169
168
|
location: "location";
|
|
169
|
+
all: "all";
|
|
170
170
|
}>>;
|
|
171
171
|
notifiedIn: z.ZodOptional<z.ZodEnum<{
|
|
172
172
|
administrativeArea: "administrativeArea";
|
|
173
|
-
all: "all";
|
|
174
173
|
location: "location";
|
|
174
|
+
all: "all";
|
|
175
175
|
}>>;
|
|
176
176
|
notifiedBy: z.ZodOptional<z.ZodEnum<{
|
|
177
177
|
user: "user";
|
|
178
178
|
}>>;
|
|
179
179
|
declaredIn: z.ZodOptional<z.ZodEnum<{
|
|
180
180
|
administrativeArea: "administrativeArea";
|
|
181
|
-
all: "all";
|
|
182
181
|
location: "location";
|
|
182
|
+
all: "all";
|
|
183
183
|
}>>;
|
|
184
184
|
declaredBy: z.ZodOptional<z.ZodEnum<{
|
|
185
185
|
user: "user";
|
|
186
186
|
}>>;
|
|
187
187
|
registeredIn: z.ZodOptional<z.ZodEnum<{
|
|
188
188
|
administrativeArea: "administrativeArea";
|
|
189
|
-
all: "all";
|
|
190
189
|
location: "location";
|
|
190
|
+
all: "all";
|
|
191
191
|
}>>;
|
|
192
192
|
registeredBy: z.ZodOptional<z.ZodEnum<{
|
|
193
193
|
user: "user";
|
|
@@ -199,29 +199,29 @@ export declare const RecordScopeV2: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
199
199
|
event: z.ZodPipe<z.ZodTransform<({} | null)[] | undefined, unknown>, z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
200
200
|
placeOfEvent: z.ZodOptional<z.ZodEnum<{
|
|
201
201
|
administrativeArea: "administrativeArea";
|
|
202
|
-
all: "all";
|
|
203
202
|
location: "location";
|
|
203
|
+
all: "all";
|
|
204
204
|
}>>;
|
|
205
205
|
notifiedIn: z.ZodOptional<z.ZodEnum<{
|
|
206
206
|
administrativeArea: "administrativeArea";
|
|
207
|
-
all: "all";
|
|
208
207
|
location: "location";
|
|
208
|
+
all: "all";
|
|
209
209
|
}>>;
|
|
210
210
|
notifiedBy: z.ZodOptional<z.ZodEnum<{
|
|
211
211
|
user: "user";
|
|
212
212
|
}>>;
|
|
213
213
|
declaredIn: z.ZodOptional<z.ZodEnum<{
|
|
214
214
|
administrativeArea: "administrativeArea";
|
|
215
|
-
all: "all";
|
|
216
215
|
location: "location";
|
|
216
|
+
all: "all";
|
|
217
217
|
}>>;
|
|
218
218
|
declaredBy: z.ZodOptional<z.ZodEnum<{
|
|
219
219
|
user: "user";
|
|
220
220
|
}>>;
|
|
221
221
|
registeredIn: z.ZodOptional<z.ZodEnum<{
|
|
222
222
|
administrativeArea: "administrativeArea";
|
|
223
|
-
all: "all";
|
|
224
223
|
location: "location";
|
|
224
|
+
all: "all";
|
|
225
225
|
}>>;
|
|
226
226
|
registeredBy: z.ZodOptional<z.ZodEnum<{
|
|
227
227
|
user: "user";
|
|
@@ -234,29 +234,29 @@ export declare const RecordScopeV2: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
234
234
|
event: z.ZodPipe<z.ZodTransform<({} | null)[] | undefined, unknown>, z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
235
235
|
placeOfEvent: z.ZodOptional<z.ZodEnum<{
|
|
236
236
|
administrativeArea: "administrativeArea";
|
|
237
|
-
all: "all";
|
|
238
237
|
location: "location";
|
|
238
|
+
all: "all";
|
|
239
239
|
}>>;
|
|
240
240
|
notifiedIn: z.ZodOptional<z.ZodEnum<{
|
|
241
241
|
administrativeArea: "administrativeArea";
|
|
242
|
-
all: "all";
|
|
243
242
|
location: "location";
|
|
243
|
+
all: "all";
|
|
244
244
|
}>>;
|
|
245
245
|
notifiedBy: z.ZodOptional<z.ZodEnum<{
|
|
246
246
|
user: "user";
|
|
247
247
|
}>>;
|
|
248
248
|
declaredIn: z.ZodOptional<z.ZodEnum<{
|
|
249
249
|
administrativeArea: "administrativeArea";
|
|
250
|
-
all: "all";
|
|
251
250
|
location: "location";
|
|
251
|
+
all: "all";
|
|
252
252
|
}>>;
|
|
253
253
|
declaredBy: z.ZodOptional<z.ZodEnum<{
|
|
254
254
|
user: "user";
|
|
255
255
|
}>>;
|
|
256
256
|
registeredIn: z.ZodOptional<z.ZodEnum<{
|
|
257
257
|
administrativeArea: "administrativeArea";
|
|
258
|
-
all: "all";
|
|
259
258
|
location: "location";
|
|
259
|
+
all: "all";
|
|
260
260
|
}>>;
|
|
261
261
|
registeredBy: z.ZodOptional<z.ZodEnum<{
|
|
262
262
|
user: "user";
|
|
@@ -266,16 +266,16 @@ export declare const RecordScopeV2: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
266
266
|
}, z.core.$strip>], "type">;
|
|
267
267
|
declare const SystemScopeType: z.ZodEnum<{
|
|
268
268
|
"organisation.read-locations": "organisation.read-locations";
|
|
269
|
+
"user.read": "user.read";
|
|
269
270
|
"user.create": "user.create";
|
|
270
271
|
"user.edit": "user.edit";
|
|
271
|
-
"user.read": "user.read";
|
|
272
272
|
"user.search": "user.search";
|
|
273
273
|
}>;
|
|
274
274
|
export type SystemScopeType = z.infer<typeof SystemScopeType>;
|
|
275
275
|
declare const UserScopeType: z.ZodEnum<{
|
|
276
|
+
"user.read": "user.read";
|
|
276
277
|
"user.create": "user.create";
|
|
277
278
|
"user.edit": "user.edit";
|
|
278
|
-
"user.read": "user.read";
|
|
279
279
|
"user.search": "user.search";
|
|
280
280
|
}>;
|
|
281
281
|
export type UserScopeType = z.infer<typeof UserScopeType>;
|
|
@@ -292,8 +292,8 @@ export declare const UserScopeV2: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
292
292
|
options: z.ZodOptional<z.ZodObject<{
|
|
293
293
|
accessLevel: z.ZodOptional<z.ZodEnum<{
|
|
294
294
|
administrativeArea: "administrativeArea";
|
|
295
|
-
all: "all";
|
|
296
295
|
location: "location";
|
|
296
|
+
all: "all";
|
|
297
297
|
}>>;
|
|
298
298
|
role: z.ZodOptional<z.ZodPipe<z.ZodTransform<({} | null)[] | undefined, unknown>, z.ZodOptional<z.ZodArray<z.ZodString>>>>;
|
|
299
299
|
}, z.core.$strip>>;
|
|
@@ -305,8 +305,8 @@ export declare const UserScopeV2: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
305
305
|
options: z.ZodOptional<z.ZodObject<{
|
|
306
306
|
accessLevel: z.ZodOptional<z.ZodEnum<{
|
|
307
307
|
administrativeArea: "administrativeArea";
|
|
308
|
-
all: "all";
|
|
309
308
|
location: "location";
|
|
309
|
+
all: "all";
|
|
310
310
|
}>>;
|
|
311
311
|
}, z.core.$strip>>;
|
|
312
312
|
}, z.core.$strip>], "type">;
|
|
@@ -338,11 +338,11 @@ export declare const ResolvedRecordScopeV2: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
338
338
|
}, z.core.$strip>>;
|
|
339
339
|
}, z.core.$strip>, z.ZodObject<{
|
|
340
340
|
type: z.ZodEnum<{
|
|
341
|
-
"record.archive": "record.archive";
|
|
342
341
|
"record.edit": "record.edit";
|
|
343
|
-
"record.register": "record.register";
|
|
344
342
|
"record.reject": "record.reject";
|
|
343
|
+
"record.archive": "record.archive";
|
|
345
344
|
"record.review-duplicates": "record.review-duplicates";
|
|
345
|
+
"record.register": "record.register";
|
|
346
346
|
}>;
|
|
347
347
|
options: z.ZodOptional<z.ZodObject<{
|
|
348
348
|
event: z.ZodPipe<z.ZodTransform<({} | null)[] | undefined, unknown>, z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
@@ -354,10 +354,10 @@ export declare const ResolvedRecordScopeV2: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
354
354
|
}, z.core.$strip>>;
|
|
355
355
|
}, z.core.$strip>, z.ZodObject<{
|
|
356
356
|
type: z.ZodEnum<{
|
|
357
|
-
"record.
|
|
357
|
+
"record.search": "record.search";
|
|
358
358
|
"record.read": "record.read";
|
|
359
359
|
"record.request-correction": "record.request-correction";
|
|
360
|
-
"record.
|
|
360
|
+
"record.correct": "record.correct";
|
|
361
361
|
"record.unassign-others": "record.unassign-others";
|
|
362
362
|
}>;
|
|
363
363
|
options: z.ZodOptional<z.ZodObject<{
|
|
@@ -389,20 +389,20 @@ export type ResolvedRecordScopeV2 = z.infer<typeof ResolvedRecordScopeV2>;
|
|
|
389
389
|
/** The primary scope schema which gathers all scope types together. All scopes are discriminated by type and options are determined according to the type. */
|
|
390
390
|
export declare const Scope: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
391
391
|
type: z.ZodEnum<{
|
|
392
|
-
"attachment.upload": "attachment.upload";
|
|
393
392
|
bypassratelimit: "bypassratelimit";
|
|
394
|
-
"
|
|
393
|
+
"record.reindex": "record.reindex";
|
|
394
|
+
"user.data-seeding": "user.data-seeding";
|
|
395
395
|
"integration.create": "integration.create";
|
|
396
|
+
"record.import": "record.import";
|
|
397
|
+
"config.update-all": "config.update-all";
|
|
398
|
+
"attachment.upload": "attachment.upload";
|
|
399
|
+
"profile.electronic-signature": "profile.electronic-signature";
|
|
400
|
+
"user.read-only-my-audit": "user.read-only-my-audit";
|
|
396
401
|
"performance.read": "performance.read";
|
|
397
402
|
"performance.read-dashboards": "performance.read-dashboards";
|
|
398
403
|
"performance.vital-statistics-export": "performance.vital-statistics-export";
|
|
399
|
-
"profile.electronic-signature": "profile.electronic-signature";
|
|
400
404
|
"record.confirm-registration": "record.confirm-registration";
|
|
401
|
-
"record.import": "record.import";
|
|
402
|
-
"record.reindex": "record.reindex";
|
|
403
405
|
"record.reject-registration": "record.reject-registration";
|
|
404
|
-
"user.data-seeding": "user.data-seeding";
|
|
405
|
-
"user.read-only-my-audit": "user.read-only-my-audit";
|
|
406
406
|
}>;
|
|
407
407
|
}, z.core.$strip>, z.ZodObject<{
|
|
408
408
|
type: z.ZodEnum<{
|
|
@@ -414,37 +414,37 @@ export declare const Scope: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
414
414
|
event: z.ZodPipe<z.ZodTransform<({} | null)[] | undefined, unknown>, z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
415
415
|
placeOfEvent: z.ZodOptional<z.ZodEnum<{
|
|
416
416
|
administrativeArea: "administrativeArea";
|
|
417
|
-
all: "all";
|
|
418
417
|
location: "location";
|
|
418
|
+
all: "all";
|
|
419
419
|
}>>;
|
|
420
420
|
}, z.core.$strip>>;
|
|
421
421
|
}, z.core.$strip>, z.ZodObject<{
|
|
422
422
|
type: z.ZodEnum<{
|
|
423
|
-
"record.archive": "record.archive";
|
|
424
423
|
"record.edit": "record.edit";
|
|
425
|
-
"record.register": "record.register";
|
|
426
424
|
"record.reject": "record.reject";
|
|
425
|
+
"record.archive": "record.archive";
|
|
427
426
|
"record.review-duplicates": "record.review-duplicates";
|
|
427
|
+
"record.register": "record.register";
|
|
428
428
|
}>;
|
|
429
429
|
options: z.ZodOptional<z.ZodObject<{
|
|
430
430
|
event: z.ZodPipe<z.ZodTransform<({} | null)[] | undefined, unknown>, z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
431
431
|
placeOfEvent: z.ZodOptional<z.ZodEnum<{
|
|
432
432
|
administrativeArea: "administrativeArea";
|
|
433
|
-
all: "all";
|
|
434
433
|
location: "location";
|
|
434
|
+
all: "all";
|
|
435
435
|
}>>;
|
|
436
436
|
notifiedIn: z.ZodOptional<z.ZodEnum<{
|
|
437
437
|
administrativeArea: "administrativeArea";
|
|
438
|
-
all: "all";
|
|
439
438
|
location: "location";
|
|
439
|
+
all: "all";
|
|
440
440
|
}>>;
|
|
441
441
|
notifiedBy: z.ZodOptional<z.ZodEnum<{
|
|
442
442
|
user: "user";
|
|
443
443
|
}>>;
|
|
444
444
|
declaredIn: z.ZodOptional<z.ZodEnum<{
|
|
445
445
|
administrativeArea: "administrativeArea";
|
|
446
|
-
all: "all";
|
|
447
446
|
location: "location";
|
|
447
|
+
all: "all";
|
|
448
448
|
}>>;
|
|
449
449
|
declaredBy: z.ZodOptional<z.ZodEnum<{
|
|
450
450
|
user: "user";
|
|
@@ -452,39 +452,39 @@ export declare const Scope: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
452
452
|
}, z.core.$strip>>;
|
|
453
453
|
}, z.core.$strip>, z.ZodObject<{
|
|
454
454
|
type: z.ZodEnum<{
|
|
455
|
-
"record.
|
|
455
|
+
"record.search": "record.search";
|
|
456
456
|
"record.read": "record.read";
|
|
457
457
|
"record.request-correction": "record.request-correction";
|
|
458
|
-
"record.
|
|
458
|
+
"record.correct": "record.correct";
|
|
459
459
|
"record.unassign-others": "record.unassign-others";
|
|
460
460
|
}>;
|
|
461
461
|
options: z.ZodOptional<z.ZodObject<{
|
|
462
462
|
event: z.ZodPipe<z.ZodTransform<({} | null)[] | undefined, unknown>, z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
463
463
|
placeOfEvent: z.ZodOptional<z.ZodEnum<{
|
|
464
464
|
administrativeArea: "administrativeArea";
|
|
465
|
-
all: "all";
|
|
466
465
|
location: "location";
|
|
466
|
+
all: "all";
|
|
467
467
|
}>>;
|
|
468
468
|
notifiedIn: z.ZodOptional<z.ZodEnum<{
|
|
469
469
|
administrativeArea: "administrativeArea";
|
|
470
|
-
all: "all";
|
|
471
470
|
location: "location";
|
|
471
|
+
all: "all";
|
|
472
472
|
}>>;
|
|
473
473
|
notifiedBy: z.ZodOptional<z.ZodEnum<{
|
|
474
474
|
user: "user";
|
|
475
475
|
}>>;
|
|
476
476
|
declaredIn: z.ZodOptional<z.ZodEnum<{
|
|
477
477
|
administrativeArea: "administrativeArea";
|
|
478
|
-
all: "all";
|
|
479
478
|
location: "location";
|
|
479
|
+
all: "all";
|
|
480
480
|
}>>;
|
|
481
481
|
declaredBy: z.ZodOptional<z.ZodEnum<{
|
|
482
482
|
user: "user";
|
|
483
483
|
}>>;
|
|
484
484
|
registeredIn: z.ZodOptional<z.ZodEnum<{
|
|
485
485
|
administrativeArea: "administrativeArea";
|
|
486
|
-
all: "all";
|
|
487
486
|
location: "location";
|
|
487
|
+
all: "all";
|
|
488
488
|
}>>;
|
|
489
489
|
registeredBy: z.ZodOptional<z.ZodEnum<{
|
|
490
490
|
user: "user";
|
|
@@ -496,29 +496,29 @@ export declare const Scope: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
496
496
|
event: z.ZodPipe<z.ZodTransform<({} | null)[] | undefined, unknown>, z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
497
497
|
placeOfEvent: z.ZodOptional<z.ZodEnum<{
|
|
498
498
|
administrativeArea: "administrativeArea";
|
|
499
|
-
all: "all";
|
|
500
499
|
location: "location";
|
|
500
|
+
all: "all";
|
|
501
501
|
}>>;
|
|
502
502
|
notifiedIn: z.ZodOptional<z.ZodEnum<{
|
|
503
503
|
administrativeArea: "administrativeArea";
|
|
504
|
-
all: "all";
|
|
505
504
|
location: "location";
|
|
505
|
+
all: "all";
|
|
506
506
|
}>>;
|
|
507
507
|
notifiedBy: z.ZodOptional<z.ZodEnum<{
|
|
508
508
|
user: "user";
|
|
509
509
|
}>>;
|
|
510
510
|
declaredIn: z.ZodOptional<z.ZodEnum<{
|
|
511
511
|
administrativeArea: "administrativeArea";
|
|
512
|
-
all: "all";
|
|
513
512
|
location: "location";
|
|
513
|
+
all: "all";
|
|
514
514
|
}>>;
|
|
515
515
|
declaredBy: z.ZodOptional<z.ZodEnum<{
|
|
516
516
|
user: "user";
|
|
517
517
|
}>>;
|
|
518
518
|
registeredIn: z.ZodOptional<z.ZodEnum<{
|
|
519
519
|
administrativeArea: "administrativeArea";
|
|
520
|
-
all: "all";
|
|
521
520
|
location: "location";
|
|
521
|
+
all: "all";
|
|
522
522
|
}>>;
|
|
523
523
|
registeredBy: z.ZodOptional<z.ZodEnum<{
|
|
524
524
|
user: "user";
|
|
@@ -531,29 +531,29 @@ export declare const Scope: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
531
531
|
event: z.ZodPipe<z.ZodTransform<({} | null)[] | undefined, unknown>, z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
532
532
|
placeOfEvent: z.ZodOptional<z.ZodEnum<{
|
|
533
533
|
administrativeArea: "administrativeArea";
|
|
534
|
-
all: "all";
|
|
535
534
|
location: "location";
|
|
535
|
+
all: "all";
|
|
536
536
|
}>>;
|
|
537
537
|
notifiedIn: z.ZodOptional<z.ZodEnum<{
|
|
538
538
|
administrativeArea: "administrativeArea";
|
|
539
|
-
all: "all";
|
|
540
539
|
location: "location";
|
|
540
|
+
all: "all";
|
|
541
541
|
}>>;
|
|
542
542
|
notifiedBy: z.ZodOptional<z.ZodEnum<{
|
|
543
543
|
user: "user";
|
|
544
544
|
}>>;
|
|
545
545
|
declaredIn: z.ZodOptional<z.ZodEnum<{
|
|
546
546
|
administrativeArea: "administrativeArea";
|
|
547
|
-
all: "all";
|
|
548
547
|
location: "location";
|
|
548
|
+
all: "all";
|
|
549
549
|
}>>;
|
|
550
550
|
declaredBy: z.ZodOptional<z.ZodEnum<{
|
|
551
551
|
user: "user";
|
|
552
552
|
}>>;
|
|
553
553
|
registeredIn: z.ZodOptional<z.ZodEnum<{
|
|
554
554
|
administrativeArea: "administrativeArea";
|
|
555
|
-
all: "all";
|
|
556
555
|
location: "location";
|
|
556
|
+
all: "all";
|
|
557
557
|
}>>;
|
|
558
558
|
registeredBy: z.ZodOptional<z.ZodEnum<{
|
|
559
559
|
user: "user";
|
|
@@ -568,8 +568,8 @@ export declare const Scope: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
568
568
|
options: z.ZodOptional<z.ZodObject<{
|
|
569
569
|
accessLevel: z.ZodOptional<z.ZodEnum<{
|
|
570
570
|
administrativeArea: "administrativeArea";
|
|
571
|
-
all: "all";
|
|
572
571
|
location: "location";
|
|
572
|
+
all: "all";
|
|
573
573
|
}>>;
|
|
574
574
|
role: z.ZodOptional<z.ZodPipe<z.ZodTransform<({} | null)[] | undefined, unknown>, z.ZodOptional<z.ZodArray<z.ZodString>>>>;
|
|
575
575
|
}, z.core.$strip>>;
|
|
@@ -581,8 +581,8 @@ export declare const Scope: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
581
581
|
options: z.ZodOptional<z.ZodObject<{
|
|
582
582
|
accessLevel: z.ZodOptional<z.ZodEnum<{
|
|
583
583
|
administrativeArea: "administrativeArea";
|
|
584
|
-
all: "all";
|
|
585
584
|
location: "location";
|
|
585
|
+
all: "all";
|
|
586
586
|
}>>;
|
|
587
587
|
}, z.core.$strip>>;
|
|
588
588
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -590,8 +590,8 @@ export declare const Scope: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
590
590
|
options: z.ZodOptional<z.ZodObject<{
|
|
591
591
|
accessLevel: z.ZodOptional<z.ZodEnum<{
|
|
592
592
|
administrativeArea: "administrativeArea";
|
|
593
|
-
all: "all";
|
|
594
593
|
location: "location";
|
|
594
|
+
all: "all";
|
|
595
595
|
}>>;
|
|
596
596
|
}, z.core.$strip>>;
|
|
597
597
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -607,42 +607,42 @@ export declare const Scope: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
607
607
|
}, z.core.$strip>], "type">;
|
|
608
608
|
export type Scope = z.infer<typeof Scope>;
|
|
609
609
|
export declare const ScopeType: z.ZodEnum<{
|
|
610
|
-
"
|
|
610
|
+
"record.search": "record.search";
|
|
611
|
+
"record.create": "record.create";
|
|
612
|
+
"record.read": "record.read";
|
|
613
|
+
"record.declare": "record.declare";
|
|
614
|
+
"record.notify": "record.notify";
|
|
615
|
+
"record.edit": "record.edit";
|
|
616
|
+
"record.reject": "record.reject";
|
|
617
|
+
"record.archive": "record.archive";
|
|
618
|
+
"record.review-duplicates": "record.review-duplicates";
|
|
619
|
+
"record.register": "record.register";
|
|
620
|
+
"record.print-certified-copies": "record.print-certified-copies";
|
|
621
|
+
"record.request-correction": "record.request-correction";
|
|
622
|
+
"record.correct": "record.correct";
|
|
623
|
+
"record.unassign-others": "record.unassign-others";
|
|
624
|
+
"record.custom-action": "record.custom-action";
|
|
611
625
|
bypassratelimit: "bypassratelimit";
|
|
612
|
-
"
|
|
613
|
-
"
|
|
626
|
+
"record.reindex": "record.reindex";
|
|
627
|
+
"user.data-seeding": "user.data-seeding";
|
|
614
628
|
"integration.create": "integration.create";
|
|
615
|
-
"
|
|
629
|
+
"record.import": "record.import";
|
|
630
|
+
"config.update-all": "config.update-all";
|
|
631
|
+
"attachment.upload": "attachment.upload";
|
|
632
|
+
"profile.electronic-signature": "profile.electronic-signature";
|
|
633
|
+
"user.read-only-my-audit": "user.read-only-my-audit";
|
|
616
634
|
"performance.read": "performance.read";
|
|
617
635
|
"performance.read-dashboards": "performance.read-dashboards";
|
|
618
636
|
"performance.vital-statistics-export": "performance.vital-statistics-export";
|
|
619
|
-
"profile.electronic-signature": "profile.electronic-signature";
|
|
620
|
-
"record.archive": "record.archive";
|
|
621
637
|
"record.confirm-registration": "record.confirm-registration";
|
|
622
|
-
"record.correct": "record.correct";
|
|
623
|
-
"record.create": "record.create";
|
|
624
|
-
"record.custom-action": "record.custom-action";
|
|
625
|
-
"record.declare": "record.declare";
|
|
626
|
-
"record.edit": "record.edit";
|
|
627
|
-
"record.import": "record.import";
|
|
628
|
-
"record.notify": "record.notify";
|
|
629
|
-
"record.print-certified-copies": "record.print-certified-copies";
|
|
630
|
-
"record.read": "record.read";
|
|
631
|
-
"record.register": "record.register";
|
|
632
|
-
"record.reindex": "record.reindex";
|
|
633
|
-
"record.reject": "record.reject";
|
|
634
638
|
"record.reject-registration": "record.reject-registration";
|
|
635
|
-
"
|
|
636
|
-
"
|
|
637
|
-
"record.search": "record.search";
|
|
638
|
-
"record.unassign-others": "record.unassign-others";
|
|
639
|
+
"organisation.read-locations": "organisation.read-locations";
|
|
640
|
+
"user.read": "user.read";
|
|
639
641
|
"user.create": "user.create";
|
|
640
|
-
"user.data-seeding": "user.data-seeding";
|
|
641
642
|
"user.edit": "user.edit";
|
|
642
|
-
"user.read": "user.read";
|
|
643
|
-
"user.read-only-my-audit": "user.read-only-my-audit";
|
|
644
643
|
"user.search": "user.search";
|
|
645
644
|
workqueue: "workqueue";
|
|
645
|
+
"dashboard.view": "dashboard.view";
|
|
646
646
|
}>;
|
|
647
647
|
export type ScopeType = z.infer<typeof ScopeType>;
|
|
648
648
|
/**
|
|
@@ -669,40 +669,40 @@ export declare const decodeScope: (encodedScope: EncodedScope) => {
|
|
|
669
669
|
type: "record.create" | "record.declare" | "record.notify";
|
|
670
670
|
options?: {
|
|
671
671
|
event?: string[] | undefined;
|
|
672
|
-
placeOfEvent?: "administrativeArea" | "
|
|
672
|
+
placeOfEvent?: "administrativeArea" | "location" | "all" | undefined;
|
|
673
673
|
} | undefined;
|
|
674
674
|
} | {
|
|
675
|
-
type: "record.
|
|
675
|
+
type: "record.edit" | "record.reject" | "record.archive" | "record.review-duplicates" | "record.register";
|
|
676
676
|
options?: {
|
|
677
677
|
event?: string[] | undefined;
|
|
678
|
-
placeOfEvent?: "administrativeArea" | "
|
|
679
|
-
notifiedIn?: "administrativeArea" | "
|
|
678
|
+
placeOfEvent?: "administrativeArea" | "location" | "all" | undefined;
|
|
679
|
+
notifiedIn?: "administrativeArea" | "location" | "all" | undefined;
|
|
680
680
|
notifiedBy?: "user" | undefined;
|
|
681
|
-
declaredIn?: "administrativeArea" | "
|
|
681
|
+
declaredIn?: "administrativeArea" | "location" | "all" | undefined;
|
|
682
682
|
declaredBy?: "user" | undefined;
|
|
683
683
|
} | undefined;
|
|
684
684
|
} | {
|
|
685
|
-
type: "record.
|
|
685
|
+
type: "record.search" | "record.read" | "record.request-correction" | "record.correct" | "record.unassign-others";
|
|
686
686
|
options?: {
|
|
687
687
|
event?: string[] | undefined;
|
|
688
|
-
placeOfEvent?: "administrativeArea" | "
|
|
689
|
-
notifiedIn?: "administrativeArea" | "
|
|
688
|
+
placeOfEvent?: "administrativeArea" | "location" | "all" | undefined;
|
|
689
|
+
notifiedIn?: "administrativeArea" | "location" | "all" | undefined;
|
|
690
690
|
notifiedBy?: "user" | undefined;
|
|
691
|
-
declaredIn?: "administrativeArea" | "
|
|
691
|
+
declaredIn?: "administrativeArea" | "location" | "all" | undefined;
|
|
692
692
|
declaredBy?: "user" | undefined;
|
|
693
|
-
registeredIn?: "administrativeArea" | "
|
|
693
|
+
registeredIn?: "administrativeArea" | "location" | "all" | undefined;
|
|
694
694
|
registeredBy?: "user" | undefined;
|
|
695
695
|
} | undefined;
|
|
696
696
|
} | {
|
|
697
697
|
type: "record.custom-action";
|
|
698
698
|
options?: {
|
|
699
699
|
event?: string[] | undefined;
|
|
700
|
-
placeOfEvent?: "administrativeArea" | "
|
|
701
|
-
notifiedIn?: "administrativeArea" | "
|
|
700
|
+
placeOfEvent?: "administrativeArea" | "location" | "all" | undefined;
|
|
701
|
+
notifiedIn?: "administrativeArea" | "location" | "all" | undefined;
|
|
702
702
|
notifiedBy?: "user" | undefined;
|
|
703
|
-
declaredIn?: "administrativeArea" | "
|
|
703
|
+
declaredIn?: "administrativeArea" | "location" | "all" | undefined;
|
|
704
704
|
declaredBy?: "user" | undefined;
|
|
705
|
-
registeredIn?: "administrativeArea" | "
|
|
705
|
+
registeredIn?: "administrativeArea" | "location" | "all" | undefined;
|
|
706
706
|
registeredBy?: "user" | undefined;
|
|
707
707
|
customActionTypes?: string[] | undefined;
|
|
708
708
|
} | undefined;
|
|
@@ -710,32 +710,32 @@ export declare const decodeScope: (encodedScope: EncodedScope) => {
|
|
|
710
710
|
type: "record.print-certified-copies";
|
|
711
711
|
options?: {
|
|
712
712
|
event?: string[] | undefined;
|
|
713
|
-
placeOfEvent?: "administrativeArea" | "
|
|
714
|
-
notifiedIn?: "administrativeArea" | "
|
|
713
|
+
placeOfEvent?: "administrativeArea" | "location" | "all" | undefined;
|
|
714
|
+
notifiedIn?: "administrativeArea" | "location" | "all" | undefined;
|
|
715
715
|
notifiedBy?: "user" | undefined;
|
|
716
|
-
declaredIn?: "administrativeArea" | "
|
|
716
|
+
declaredIn?: "administrativeArea" | "location" | "all" | undefined;
|
|
717
717
|
declaredBy?: "user" | undefined;
|
|
718
|
-
registeredIn?: "administrativeArea" | "
|
|
718
|
+
registeredIn?: "administrativeArea" | "location" | "all" | undefined;
|
|
719
719
|
registeredBy?: "user" | undefined;
|
|
720
720
|
templates?: string[] | undefined;
|
|
721
721
|
} | undefined;
|
|
722
722
|
} | {
|
|
723
723
|
type: "user.create" | "user.edit";
|
|
724
724
|
options?: {
|
|
725
|
-
accessLevel?: "administrativeArea" | "
|
|
725
|
+
accessLevel?: "administrativeArea" | "location" | "all" | undefined;
|
|
726
726
|
role?: string[] | undefined;
|
|
727
727
|
} | undefined;
|
|
728
728
|
} | {
|
|
729
729
|
type: "user.read" | "user.search";
|
|
730
730
|
options?: {
|
|
731
|
-
accessLevel?: "administrativeArea" | "
|
|
731
|
+
accessLevel?: "administrativeArea" | "location" | "all" | undefined;
|
|
732
732
|
} | undefined;
|
|
733
733
|
} | {
|
|
734
|
-
type: "
|
|
734
|
+
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";
|
|
735
735
|
} | {
|
|
736
736
|
type: "organisation.read-locations";
|
|
737
737
|
options?: {
|
|
738
|
-
accessLevel?: "administrativeArea" | "
|
|
738
|
+
accessLevel?: "administrativeArea" | "location" | "all" | undefined;
|
|
739
739
|
} | undefined;
|
|
740
740
|
} | {
|
|
741
741
|
type: "workqueue";
|
|
@@ -821,7 +821,7 @@ export declare function canUserCreateEvent(userScopes: EncodedScope[], eventType
|
|
|
821
821
|
* @param scopes Array of scopes in object format.
|
|
822
822
|
* @returns Array of scopes in string format, encoded for use in JWT tokens.
|
|
823
823
|
*/
|
|
824
|
-
export declare function defineScopes(scopes: Scope[]): (string & z.$brand<"EncodedScope">)[];
|
|
824
|
+
export declare function defineScopes(scopes: Scope[]): (string & z.core.$brand<"EncodedScope">)[];
|
|
825
825
|
/**
|
|
826
826
|
* Helper for defining user roles. Should be used in country config.
|
|
827
827
|
*
|
|
@@ -829,7 +829,7 @@ export declare function defineScopes(scopes: Scope[]): (string & z.$brand<"Encod
|
|
|
829
829
|
*/
|
|
830
830
|
export declare function defineRoles(roles: Role[]): {
|
|
831
831
|
id: string;
|
|
832
|
-
scopes: (string & z.$brand<"EncodedScope">)[];
|
|
832
|
+
scopes: (string & z.core.$brand<"EncodedScope">)[];
|
|
833
833
|
}[];
|
|
834
834
|
export {};
|
|
835
835
|
//# sourceMappingURL=scopes.d.ts.map
|