@opencrvs/toolkit 2.1.0-rc.6a144d4 → 2.1.0-rc.6c5b938
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 +0 -1
- package/dist/commons/api/router.d.ts +1518 -1741
- package/dist/commons/application-config/index.d.ts +6 -6
- package/dist/commons/conditionals/conditionals.d.ts +2102 -259
- package/dist/commons/events/ActionConfig.d.ts +105 -105
- package/dist/commons/events/ActionDocument.d.ts +113 -113
- package/dist/commons/events/ActionType.d.ts +62 -62
- package/dist/commons/events/AdvancedSearchConfig.d.ts +507 -513
- package/dist/commons/events/AuditLog.d.ts +42 -151
- 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 -5
- package/dist/commons/events/EventDocument.d.ts +46 -46
- 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 +337 -342
- 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 +820 -820
- 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 +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 +40 -40
- package/dist/commons/events/utils.d.ts +114 -114
- package/dist/commons/notification/UserNotifications.d.ts +10 -10
- package/dist/conditionals/index.js +0 -1
- 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 +52 -182
- package/dist/migrations/v2.0/migrate-application-config-url.js +3 -4
- package/dist/notification/index.js +77 -179
- package/dist/scopes/index.d.ts +146 -148
- package/dist/scopes/index.js +0 -1
- package/opencrvs-toolkit-2.1.0-rc.6c5b938.tgz +0 -0
- package/package.json +5 -5
- package/tsconfig.tsbuildinfo +1 -1
- package/dist/commons/events/locationPayloads.d.ts +0 -95
- package/opencrvs-toolkit-2.1.0-rc.6a144d4.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,76 +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
|
-
accessLevel: z.ZodOptional<z.ZodEnum<{
|
|
70
|
-
administrativeArea: "administrativeArea";
|
|
71
|
-
all: "all";
|
|
72
|
-
location: "location";
|
|
73
|
-
}>>;
|
|
74
|
-
role: z.ZodOptional<z.ZodPipe<z.ZodTransform<({} | null)[] | undefined, unknown>, z.ZodOptional<z.ZodArray<z.ZodString>>>>;
|
|
75
|
-
ids: z.ZodPipe<z.ZodTransform<({} | null)[] | undefined, unknown>, z.ZodArray<z.ZodString>>;
|
|
76
76
|
}, z.core.$strip>;
|
|
77
77
|
type AllScopeOptions = z.infer<typeof AllScopeOptions>;
|
|
78
78
|
export declare const ScopeOptionKey: z.ZodEnum<{
|
|
79
|
-
|
|
80
|
-
declaredBy: "declaredBy";
|
|
81
|
-
declaredIn: "declaredIn";
|
|
79
|
+
role: "role";
|
|
82
80
|
event: "event";
|
|
83
|
-
ids: "ids";
|
|
84
|
-
notifiedBy: "notifiedBy";
|
|
85
|
-
notifiedIn: "notifiedIn";
|
|
86
81
|
placeOfEvent: "placeOfEvent";
|
|
87
|
-
|
|
82
|
+
notifiedIn: "notifiedIn";
|
|
83
|
+
notifiedBy: "notifiedBy";
|
|
84
|
+
declaredIn: "declaredIn";
|
|
85
|
+
declaredBy: "declaredBy";
|
|
88
86
|
registeredIn: "registeredIn";
|
|
89
|
-
|
|
87
|
+
registeredBy: "registeredBy";
|
|
88
|
+
accessLevel: "accessLevel";
|
|
89
|
+
ids: "ids";
|
|
90
90
|
}>;
|
|
91
91
|
export type ScopeOptionKey = z.infer<typeof ScopeOptionKey>;
|
|
92
92
|
export declare const ScopesWithPlaceEventOptions: z.ZodEnum<{
|
|
@@ -95,18 +95,18 @@ export declare const ScopesWithPlaceEventOptions: z.ZodEnum<{
|
|
|
95
95
|
"record.notify": "record.notify";
|
|
96
96
|
}>;
|
|
97
97
|
export declare const ScopesWithDeclaredOptions: z.ZodEnum<{
|
|
98
|
-
"record.archive": "record.archive";
|
|
99
98
|
"record.edit": "record.edit";
|
|
100
|
-
"record.register": "record.register";
|
|
101
99
|
"record.reject": "record.reject";
|
|
102
|
-
"record.
|
|
100
|
+
"record.archive": "record.archive";
|
|
103
101
|
"record.unarchive": "record.unarchive";
|
|
102
|
+
"record.review-duplicates": "record.review-duplicates";
|
|
103
|
+
"record.register": "record.register";
|
|
104
104
|
}>;
|
|
105
105
|
export declare const ScopesWithFullOptions: z.ZodEnum<{
|
|
106
|
-
"record.
|
|
106
|
+
"record.search": "record.search";
|
|
107
107
|
"record.read": "record.read";
|
|
108
108
|
"record.request-correction": "record.request-correction";
|
|
109
|
-
"record.
|
|
109
|
+
"record.correct": "record.correct";
|
|
110
110
|
"record.unassign-others": "record.unassign-others";
|
|
111
111
|
}>;
|
|
112
112
|
export declare const RecordScopeV2: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -119,38 +119,38 @@ export declare const RecordScopeV2: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
119
119
|
event: z.ZodPipe<z.ZodTransform<({} | null)[] | undefined, unknown>, z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
120
120
|
placeOfEvent: z.ZodOptional<z.ZodEnum<{
|
|
121
121
|
administrativeArea: "administrativeArea";
|
|
122
|
-
all: "all";
|
|
123
122
|
location: "location";
|
|
123
|
+
all: "all";
|
|
124
124
|
}>>;
|
|
125
125
|
}, z.core.$strip>>;
|
|
126
126
|
}, z.core.$strip>, z.ZodObject<{
|
|
127
127
|
type: z.ZodEnum<{
|
|
128
|
-
"record.archive": "record.archive";
|
|
129
128
|
"record.edit": "record.edit";
|
|
130
|
-
"record.register": "record.register";
|
|
131
129
|
"record.reject": "record.reject";
|
|
132
|
-
"record.
|
|
130
|
+
"record.archive": "record.archive";
|
|
133
131
|
"record.unarchive": "record.unarchive";
|
|
132
|
+
"record.review-duplicates": "record.review-duplicates";
|
|
133
|
+
"record.register": "record.register";
|
|
134
134
|
}>;
|
|
135
135
|
options: z.ZodOptional<z.ZodObject<{
|
|
136
136
|
event: z.ZodPipe<z.ZodTransform<({} | null)[] | undefined, unknown>, z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
137
137
|
placeOfEvent: z.ZodOptional<z.ZodEnum<{
|
|
138
138
|
administrativeArea: "administrativeArea";
|
|
139
|
-
all: "all";
|
|
140
139
|
location: "location";
|
|
140
|
+
all: "all";
|
|
141
141
|
}>>;
|
|
142
142
|
notifiedIn: z.ZodOptional<z.ZodEnum<{
|
|
143
143
|
administrativeArea: "administrativeArea";
|
|
144
|
-
all: "all";
|
|
145
144
|
location: "location";
|
|
145
|
+
all: "all";
|
|
146
146
|
}>>;
|
|
147
147
|
notifiedBy: z.ZodOptional<z.ZodEnum<{
|
|
148
148
|
user: "user";
|
|
149
149
|
}>>;
|
|
150
150
|
declaredIn: z.ZodOptional<z.ZodEnum<{
|
|
151
151
|
administrativeArea: "administrativeArea";
|
|
152
|
-
all: "all";
|
|
153
152
|
location: "location";
|
|
153
|
+
all: "all";
|
|
154
154
|
}>>;
|
|
155
155
|
declaredBy: z.ZodOptional<z.ZodEnum<{
|
|
156
156
|
user: "user";
|
|
@@ -158,39 +158,39 @@ export declare const RecordScopeV2: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
158
158
|
}, z.core.$strip>>;
|
|
159
159
|
}, z.core.$strip>, z.ZodObject<{
|
|
160
160
|
type: z.ZodEnum<{
|
|
161
|
-
"record.
|
|
161
|
+
"record.search": "record.search";
|
|
162
162
|
"record.read": "record.read";
|
|
163
163
|
"record.request-correction": "record.request-correction";
|
|
164
|
-
"record.
|
|
164
|
+
"record.correct": "record.correct";
|
|
165
165
|
"record.unassign-others": "record.unassign-others";
|
|
166
166
|
}>;
|
|
167
167
|
options: z.ZodOptional<z.ZodObject<{
|
|
168
168
|
event: z.ZodPipe<z.ZodTransform<({} | null)[] | undefined, unknown>, z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
169
169
|
placeOfEvent: z.ZodOptional<z.ZodEnum<{
|
|
170
170
|
administrativeArea: "administrativeArea";
|
|
171
|
-
all: "all";
|
|
172
171
|
location: "location";
|
|
172
|
+
all: "all";
|
|
173
173
|
}>>;
|
|
174
174
|
notifiedIn: z.ZodOptional<z.ZodEnum<{
|
|
175
175
|
administrativeArea: "administrativeArea";
|
|
176
|
-
all: "all";
|
|
177
176
|
location: "location";
|
|
177
|
+
all: "all";
|
|
178
178
|
}>>;
|
|
179
179
|
notifiedBy: z.ZodOptional<z.ZodEnum<{
|
|
180
180
|
user: "user";
|
|
181
181
|
}>>;
|
|
182
182
|
declaredIn: z.ZodOptional<z.ZodEnum<{
|
|
183
183
|
administrativeArea: "administrativeArea";
|
|
184
|
-
all: "all";
|
|
185
184
|
location: "location";
|
|
185
|
+
all: "all";
|
|
186
186
|
}>>;
|
|
187
187
|
declaredBy: z.ZodOptional<z.ZodEnum<{
|
|
188
188
|
user: "user";
|
|
189
189
|
}>>;
|
|
190
190
|
registeredIn: z.ZodOptional<z.ZodEnum<{
|
|
191
191
|
administrativeArea: "administrativeArea";
|
|
192
|
-
all: "all";
|
|
193
192
|
location: "location";
|
|
193
|
+
all: "all";
|
|
194
194
|
}>>;
|
|
195
195
|
registeredBy: z.ZodOptional<z.ZodEnum<{
|
|
196
196
|
user: "user";
|
|
@@ -202,29 +202,29 @@ export declare const RecordScopeV2: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
202
202
|
event: z.ZodPipe<z.ZodTransform<({} | null)[] | undefined, unknown>, z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
203
203
|
placeOfEvent: z.ZodOptional<z.ZodEnum<{
|
|
204
204
|
administrativeArea: "administrativeArea";
|
|
205
|
-
all: "all";
|
|
206
205
|
location: "location";
|
|
206
|
+
all: "all";
|
|
207
207
|
}>>;
|
|
208
208
|
notifiedIn: z.ZodOptional<z.ZodEnum<{
|
|
209
209
|
administrativeArea: "administrativeArea";
|
|
210
|
-
all: "all";
|
|
211
210
|
location: "location";
|
|
211
|
+
all: "all";
|
|
212
212
|
}>>;
|
|
213
213
|
notifiedBy: z.ZodOptional<z.ZodEnum<{
|
|
214
214
|
user: "user";
|
|
215
215
|
}>>;
|
|
216
216
|
declaredIn: z.ZodOptional<z.ZodEnum<{
|
|
217
217
|
administrativeArea: "administrativeArea";
|
|
218
|
-
all: "all";
|
|
219
218
|
location: "location";
|
|
219
|
+
all: "all";
|
|
220
220
|
}>>;
|
|
221
221
|
declaredBy: z.ZodOptional<z.ZodEnum<{
|
|
222
222
|
user: "user";
|
|
223
223
|
}>>;
|
|
224
224
|
registeredIn: z.ZodOptional<z.ZodEnum<{
|
|
225
225
|
administrativeArea: "administrativeArea";
|
|
226
|
-
all: "all";
|
|
227
226
|
location: "location";
|
|
227
|
+
all: "all";
|
|
228
228
|
}>>;
|
|
229
229
|
registeredBy: z.ZodOptional<z.ZodEnum<{
|
|
230
230
|
user: "user";
|
|
@@ -237,29 +237,29 @@ export declare const RecordScopeV2: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
237
237
|
event: z.ZodPipe<z.ZodTransform<({} | null)[] | undefined, unknown>, z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
238
238
|
placeOfEvent: z.ZodOptional<z.ZodEnum<{
|
|
239
239
|
administrativeArea: "administrativeArea";
|
|
240
|
-
all: "all";
|
|
241
240
|
location: "location";
|
|
241
|
+
all: "all";
|
|
242
242
|
}>>;
|
|
243
243
|
notifiedIn: z.ZodOptional<z.ZodEnum<{
|
|
244
244
|
administrativeArea: "administrativeArea";
|
|
245
|
-
all: "all";
|
|
246
245
|
location: "location";
|
|
246
|
+
all: "all";
|
|
247
247
|
}>>;
|
|
248
248
|
notifiedBy: z.ZodOptional<z.ZodEnum<{
|
|
249
249
|
user: "user";
|
|
250
250
|
}>>;
|
|
251
251
|
declaredIn: z.ZodOptional<z.ZodEnum<{
|
|
252
252
|
administrativeArea: "administrativeArea";
|
|
253
|
-
all: "all";
|
|
254
253
|
location: "location";
|
|
254
|
+
all: "all";
|
|
255
255
|
}>>;
|
|
256
256
|
declaredBy: z.ZodOptional<z.ZodEnum<{
|
|
257
257
|
user: "user";
|
|
258
258
|
}>>;
|
|
259
259
|
registeredIn: z.ZodOptional<z.ZodEnum<{
|
|
260
260
|
administrativeArea: "administrativeArea";
|
|
261
|
-
all: "all";
|
|
262
261
|
location: "location";
|
|
262
|
+
all: "all";
|
|
263
263
|
}>>;
|
|
264
264
|
registeredBy: z.ZodOptional<z.ZodEnum<{
|
|
265
265
|
user: "user";
|
|
@@ -269,16 +269,16 @@ export declare const RecordScopeV2: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
269
269
|
}, z.core.$strip>], "type">;
|
|
270
270
|
declare const SystemScopeType: z.ZodEnum<{
|
|
271
271
|
"organisation.read-locations": "organisation.read-locations";
|
|
272
|
+
"user.read": "user.read";
|
|
272
273
|
"user.create": "user.create";
|
|
273
274
|
"user.edit": "user.edit";
|
|
274
|
-
"user.read": "user.read";
|
|
275
275
|
"user.search": "user.search";
|
|
276
276
|
}>;
|
|
277
277
|
export type SystemScopeType = z.infer<typeof SystemScopeType>;
|
|
278
278
|
declare const UserScopeType: z.ZodEnum<{
|
|
279
|
+
"user.read": "user.read";
|
|
279
280
|
"user.create": "user.create";
|
|
280
281
|
"user.edit": "user.edit";
|
|
281
|
-
"user.read": "user.read";
|
|
282
282
|
"user.search": "user.search";
|
|
283
283
|
}>;
|
|
284
284
|
export type UserScopeType = z.infer<typeof UserScopeType>;
|
|
@@ -295,8 +295,8 @@ export declare const UserScopeV2: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
295
295
|
options: z.ZodOptional<z.ZodObject<{
|
|
296
296
|
accessLevel: z.ZodOptional<z.ZodEnum<{
|
|
297
297
|
administrativeArea: "administrativeArea";
|
|
298
|
-
all: "all";
|
|
299
298
|
location: "location";
|
|
299
|
+
all: "all";
|
|
300
300
|
}>>;
|
|
301
301
|
role: z.ZodOptional<z.ZodPipe<z.ZodTransform<({} | null)[] | undefined, unknown>, z.ZodOptional<z.ZodArray<z.ZodString>>>>;
|
|
302
302
|
}, z.core.$strip>>;
|
|
@@ -308,8 +308,8 @@ export declare const UserScopeV2: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
308
308
|
options: z.ZodOptional<z.ZodObject<{
|
|
309
309
|
accessLevel: z.ZodOptional<z.ZodEnum<{
|
|
310
310
|
administrativeArea: "administrativeArea";
|
|
311
|
-
all: "all";
|
|
312
311
|
location: "location";
|
|
312
|
+
all: "all";
|
|
313
313
|
}>>;
|
|
314
314
|
}, z.core.$strip>>;
|
|
315
315
|
}, z.core.$strip>], "type">;
|
|
@@ -341,12 +341,12 @@ export declare const ResolvedRecordScopeV2: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
341
341
|
}, z.core.$strip>>;
|
|
342
342
|
}, z.core.$strip>, z.ZodObject<{
|
|
343
343
|
type: z.ZodEnum<{
|
|
344
|
-
"record.archive": "record.archive";
|
|
345
344
|
"record.edit": "record.edit";
|
|
346
|
-
"record.register": "record.register";
|
|
347
345
|
"record.reject": "record.reject";
|
|
348
|
-
"record.
|
|
346
|
+
"record.archive": "record.archive";
|
|
349
347
|
"record.unarchive": "record.unarchive";
|
|
348
|
+
"record.review-duplicates": "record.review-duplicates";
|
|
349
|
+
"record.register": "record.register";
|
|
350
350
|
}>;
|
|
351
351
|
options: z.ZodOptional<z.ZodObject<{
|
|
352
352
|
event: z.ZodPipe<z.ZodTransform<({} | null)[] | undefined, unknown>, z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
@@ -358,10 +358,10 @@ export declare const ResolvedRecordScopeV2: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
358
358
|
}, z.core.$strip>>;
|
|
359
359
|
}, z.core.$strip>, z.ZodObject<{
|
|
360
360
|
type: z.ZodEnum<{
|
|
361
|
-
"record.
|
|
361
|
+
"record.search": "record.search";
|
|
362
362
|
"record.read": "record.read";
|
|
363
363
|
"record.request-correction": "record.request-correction";
|
|
364
|
-
"record.
|
|
364
|
+
"record.correct": "record.correct";
|
|
365
365
|
"record.unassign-others": "record.unassign-others";
|
|
366
366
|
}>;
|
|
367
367
|
options: z.ZodOptional<z.ZodObject<{
|
|
@@ -393,21 +393,20 @@ export type ResolvedRecordScopeV2 = z.infer<typeof ResolvedRecordScopeV2>;
|
|
|
393
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. */
|
|
394
394
|
export declare const Scope: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
395
395
|
type: z.ZodEnum<{
|
|
396
|
-
"attachment.upload": "attachment.upload";
|
|
397
396
|
bypassratelimit: "bypassratelimit";
|
|
398
|
-
"
|
|
397
|
+
"record.reindex": "record.reindex";
|
|
398
|
+
"user.data-seeding": "user.data-seeding";
|
|
399
399
|
"integration.create": "integration.create";
|
|
400
|
-
"
|
|
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";
|
|
401
405
|
"performance.read": "performance.read";
|
|
402
406
|
"performance.read-dashboards": "performance.read-dashboards";
|
|
403
407
|
"performance.vital-statistics-export": "performance.vital-statistics-export";
|
|
404
|
-
"profile.electronic-signature": "profile.electronic-signature";
|
|
405
408
|
"record.confirm-registration": "record.confirm-registration";
|
|
406
|
-
"record.import": "record.import";
|
|
407
|
-
"record.reindex": "record.reindex";
|
|
408
409
|
"record.reject-registration": "record.reject-registration";
|
|
409
|
-
"user.data-seeding": "user.data-seeding";
|
|
410
|
-
"user.read-only-my-audit": "user.read-only-my-audit";
|
|
411
410
|
}>;
|
|
412
411
|
}, z.core.$strip>, z.ZodObject<{
|
|
413
412
|
type: z.ZodEnum<{
|
|
@@ -419,38 +418,38 @@ export declare const Scope: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
419
418
|
event: z.ZodPipe<z.ZodTransform<({} | null)[] | undefined, unknown>, z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
420
419
|
placeOfEvent: z.ZodOptional<z.ZodEnum<{
|
|
421
420
|
administrativeArea: "administrativeArea";
|
|
422
|
-
all: "all";
|
|
423
421
|
location: "location";
|
|
422
|
+
all: "all";
|
|
424
423
|
}>>;
|
|
425
424
|
}, z.core.$strip>>;
|
|
426
425
|
}, z.core.$strip>, z.ZodObject<{
|
|
427
426
|
type: z.ZodEnum<{
|
|
428
|
-
"record.archive": "record.archive";
|
|
429
427
|
"record.edit": "record.edit";
|
|
430
|
-
"record.register": "record.register";
|
|
431
428
|
"record.reject": "record.reject";
|
|
432
|
-
"record.
|
|
429
|
+
"record.archive": "record.archive";
|
|
433
430
|
"record.unarchive": "record.unarchive";
|
|
431
|
+
"record.review-duplicates": "record.review-duplicates";
|
|
432
|
+
"record.register": "record.register";
|
|
434
433
|
}>;
|
|
435
434
|
options: z.ZodOptional<z.ZodObject<{
|
|
436
435
|
event: z.ZodPipe<z.ZodTransform<({} | null)[] | undefined, unknown>, z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
437
436
|
placeOfEvent: z.ZodOptional<z.ZodEnum<{
|
|
438
437
|
administrativeArea: "administrativeArea";
|
|
439
|
-
all: "all";
|
|
440
438
|
location: "location";
|
|
439
|
+
all: "all";
|
|
441
440
|
}>>;
|
|
442
441
|
notifiedIn: z.ZodOptional<z.ZodEnum<{
|
|
443
442
|
administrativeArea: "administrativeArea";
|
|
444
|
-
all: "all";
|
|
445
443
|
location: "location";
|
|
444
|
+
all: "all";
|
|
446
445
|
}>>;
|
|
447
446
|
notifiedBy: z.ZodOptional<z.ZodEnum<{
|
|
448
447
|
user: "user";
|
|
449
448
|
}>>;
|
|
450
449
|
declaredIn: z.ZodOptional<z.ZodEnum<{
|
|
451
450
|
administrativeArea: "administrativeArea";
|
|
452
|
-
all: "all";
|
|
453
451
|
location: "location";
|
|
452
|
+
all: "all";
|
|
454
453
|
}>>;
|
|
455
454
|
declaredBy: z.ZodOptional<z.ZodEnum<{
|
|
456
455
|
user: "user";
|
|
@@ -458,39 +457,39 @@ export declare const Scope: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
458
457
|
}, z.core.$strip>>;
|
|
459
458
|
}, z.core.$strip>, z.ZodObject<{
|
|
460
459
|
type: z.ZodEnum<{
|
|
461
|
-
"record.
|
|
460
|
+
"record.search": "record.search";
|
|
462
461
|
"record.read": "record.read";
|
|
463
462
|
"record.request-correction": "record.request-correction";
|
|
464
|
-
"record.
|
|
463
|
+
"record.correct": "record.correct";
|
|
465
464
|
"record.unassign-others": "record.unassign-others";
|
|
466
465
|
}>;
|
|
467
466
|
options: z.ZodOptional<z.ZodObject<{
|
|
468
467
|
event: z.ZodPipe<z.ZodTransform<({} | null)[] | undefined, unknown>, z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
469
468
|
placeOfEvent: z.ZodOptional<z.ZodEnum<{
|
|
470
469
|
administrativeArea: "administrativeArea";
|
|
471
|
-
all: "all";
|
|
472
470
|
location: "location";
|
|
471
|
+
all: "all";
|
|
473
472
|
}>>;
|
|
474
473
|
notifiedIn: z.ZodOptional<z.ZodEnum<{
|
|
475
474
|
administrativeArea: "administrativeArea";
|
|
476
|
-
all: "all";
|
|
477
475
|
location: "location";
|
|
476
|
+
all: "all";
|
|
478
477
|
}>>;
|
|
479
478
|
notifiedBy: z.ZodOptional<z.ZodEnum<{
|
|
480
479
|
user: "user";
|
|
481
480
|
}>>;
|
|
482
481
|
declaredIn: z.ZodOptional<z.ZodEnum<{
|
|
483
482
|
administrativeArea: "administrativeArea";
|
|
484
|
-
all: "all";
|
|
485
483
|
location: "location";
|
|
484
|
+
all: "all";
|
|
486
485
|
}>>;
|
|
487
486
|
declaredBy: z.ZodOptional<z.ZodEnum<{
|
|
488
487
|
user: "user";
|
|
489
488
|
}>>;
|
|
490
489
|
registeredIn: z.ZodOptional<z.ZodEnum<{
|
|
491
490
|
administrativeArea: "administrativeArea";
|
|
492
|
-
all: "all";
|
|
493
491
|
location: "location";
|
|
492
|
+
all: "all";
|
|
494
493
|
}>>;
|
|
495
494
|
registeredBy: z.ZodOptional<z.ZodEnum<{
|
|
496
495
|
user: "user";
|
|
@@ -502,29 +501,29 @@ export declare const Scope: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
502
501
|
event: z.ZodPipe<z.ZodTransform<({} | null)[] | undefined, unknown>, z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
503
502
|
placeOfEvent: z.ZodOptional<z.ZodEnum<{
|
|
504
503
|
administrativeArea: "administrativeArea";
|
|
505
|
-
all: "all";
|
|
506
504
|
location: "location";
|
|
505
|
+
all: "all";
|
|
507
506
|
}>>;
|
|
508
507
|
notifiedIn: z.ZodOptional<z.ZodEnum<{
|
|
509
508
|
administrativeArea: "administrativeArea";
|
|
510
|
-
all: "all";
|
|
511
509
|
location: "location";
|
|
510
|
+
all: "all";
|
|
512
511
|
}>>;
|
|
513
512
|
notifiedBy: z.ZodOptional<z.ZodEnum<{
|
|
514
513
|
user: "user";
|
|
515
514
|
}>>;
|
|
516
515
|
declaredIn: z.ZodOptional<z.ZodEnum<{
|
|
517
516
|
administrativeArea: "administrativeArea";
|
|
518
|
-
all: "all";
|
|
519
517
|
location: "location";
|
|
518
|
+
all: "all";
|
|
520
519
|
}>>;
|
|
521
520
|
declaredBy: z.ZodOptional<z.ZodEnum<{
|
|
522
521
|
user: "user";
|
|
523
522
|
}>>;
|
|
524
523
|
registeredIn: z.ZodOptional<z.ZodEnum<{
|
|
525
524
|
administrativeArea: "administrativeArea";
|
|
526
|
-
all: "all";
|
|
527
525
|
location: "location";
|
|
526
|
+
all: "all";
|
|
528
527
|
}>>;
|
|
529
528
|
registeredBy: z.ZodOptional<z.ZodEnum<{
|
|
530
529
|
user: "user";
|
|
@@ -537,29 +536,29 @@ export declare const Scope: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
537
536
|
event: z.ZodPipe<z.ZodTransform<({} | null)[] | undefined, unknown>, z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
538
537
|
placeOfEvent: z.ZodOptional<z.ZodEnum<{
|
|
539
538
|
administrativeArea: "administrativeArea";
|
|
540
|
-
all: "all";
|
|
541
539
|
location: "location";
|
|
540
|
+
all: "all";
|
|
542
541
|
}>>;
|
|
543
542
|
notifiedIn: z.ZodOptional<z.ZodEnum<{
|
|
544
543
|
administrativeArea: "administrativeArea";
|
|
545
|
-
all: "all";
|
|
546
544
|
location: "location";
|
|
545
|
+
all: "all";
|
|
547
546
|
}>>;
|
|
548
547
|
notifiedBy: z.ZodOptional<z.ZodEnum<{
|
|
549
548
|
user: "user";
|
|
550
549
|
}>>;
|
|
551
550
|
declaredIn: z.ZodOptional<z.ZodEnum<{
|
|
552
551
|
administrativeArea: "administrativeArea";
|
|
553
|
-
all: "all";
|
|
554
552
|
location: "location";
|
|
553
|
+
all: "all";
|
|
555
554
|
}>>;
|
|
556
555
|
declaredBy: z.ZodOptional<z.ZodEnum<{
|
|
557
556
|
user: "user";
|
|
558
557
|
}>>;
|
|
559
558
|
registeredIn: z.ZodOptional<z.ZodEnum<{
|
|
560
559
|
administrativeArea: "administrativeArea";
|
|
561
|
-
all: "all";
|
|
562
560
|
location: "location";
|
|
561
|
+
all: "all";
|
|
563
562
|
}>>;
|
|
564
563
|
registeredBy: z.ZodOptional<z.ZodEnum<{
|
|
565
564
|
user: "user";
|
|
@@ -574,8 +573,8 @@ export declare const Scope: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
574
573
|
options: z.ZodOptional<z.ZodObject<{
|
|
575
574
|
accessLevel: z.ZodOptional<z.ZodEnum<{
|
|
576
575
|
administrativeArea: "administrativeArea";
|
|
577
|
-
all: "all";
|
|
578
576
|
location: "location";
|
|
577
|
+
all: "all";
|
|
579
578
|
}>>;
|
|
580
579
|
role: z.ZodOptional<z.ZodPipe<z.ZodTransform<({} | null)[] | undefined, unknown>, z.ZodOptional<z.ZodArray<z.ZodString>>>>;
|
|
581
580
|
}, z.core.$strip>>;
|
|
@@ -587,8 +586,8 @@ export declare const Scope: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
587
586
|
options: z.ZodOptional<z.ZodObject<{
|
|
588
587
|
accessLevel: z.ZodOptional<z.ZodEnum<{
|
|
589
588
|
administrativeArea: "administrativeArea";
|
|
590
|
-
all: "all";
|
|
591
589
|
location: "location";
|
|
590
|
+
all: "all";
|
|
592
591
|
}>>;
|
|
593
592
|
}, z.core.$strip>>;
|
|
594
593
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -596,8 +595,8 @@ export declare const Scope: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
596
595
|
options: z.ZodOptional<z.ZodObject<{
|
|
597
596
|
accessLevel: z.ZodOptional<z.ZodEnum<{
|
|
598
597
|
administrativeArea: "administrativeArea";
|
|
599
|
-
all: "all";
|
|
600
598
|
location: "location";
|
|
599
|
+
all: "all";
|
|
601
600
|
}>>;
|
|
602
601
|
}, z.core.$strip>>;
|
|
603
602
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -613,44 +612,43 @@ export declare const Scope: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
613
612
|
}, z.core.$strip>], "type">;
|
|
614
613
|
export type Scope = z.infer<typeof Scope>;
|
|
615
614
|
export declare const ScopeType: z.ZodEnum<{
|
|
616
|
-
"
|
|
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";
|
|
617
631
|
bypassratelimit: "bypassratelimit";
|
|
618
|
-
"
|
|
619
|
-
"
|
|
632
|
+
"record.reindex": "record.reindex";
|
|
633
|
+
"user.data-seeding": "user.data-seeding";
|
|
620
634
|
"integration.create": "integration.create";
|
|
621
|
-
"
|
|
622
|
-
"
|
|
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";
|
|
623
640
|
"performance.read": "performance.read";
|
|
624
641
|
"performance.read-dashboards": "performance.read-dashboards";
|
|
625
642
|
"performance.vital-statistics-export": "performance.vital-statistics-export";
|
|
626
|
-
"profile.electronic-signature": "profile.electronic-signature";
|
|
627
|
-
"record.archive": "record.archive";
|
|
628
643
|
"record.confirm-registration": "record.confirm-registration";
|
|
629
|
-
"record.correct": "record.correct";
|
|
630
|
-
"record.create": "record.create";
|
|
631
|
-
"record.custom-action": "record.custom-action";
|
|
632
|
-
"record.declare": "record.declare";
|
|
633
|
-
"record.edit": "record.edit";
|
|
634
|
-
"record.import": "record.import";
|
|
635
|
-
"record.notify": "record.notify";
|
|
636
|
-
"record.print-certified-copies": "record.print-certified-copies";
|
|
637
|
-
"record.read": "record.read";
|
|
638
|
-
"record.register": "record.register";
|
|
639
|
-
"record.reindex": "record.reindex";
|
|
640
|
-
"record.reject": "record.reject";
|
|
641
644
|
"record.reject-registration": "record.reject-registration";
|
|
642
|
-
"
|
|
643
|
-
"
|
|
644
|
-
"record.search": "record.search";
|
|
645
|
-
"record.unarchive": "record.unarchive";
|
|
646
|
-
"record.unassign-others": "record.unassign-others";
|
|
645
|
+
"organisation.read-locations": "organisation.read-locations";
|
|
646
|
+
"user.read": "user.read";
|
|
647
647
|
"user.create": "user.create";
|
|
648
|
-
"user.data-seeding": "user.data-seeding";
|
|
649
648
|
"user.edit": "user.edit";
|
|
650
|
-
"user.read": "user.read";
|
|
651
|
-
"user.read-only-my-audit": "user.read-only-my-audit";
|
|
652
649
|
"user.search": "user.search";
|
|
653
650
|
workqueue: "workqueue";
|
|
651
|
+
"dashboard.view": "dashboard.view";
|
|
654
652
|
}>;
|
|
655
653
|
export type ScopeType = z.infer<typeof ScopeType>;
|
|
656
654
|
/**
|
|
@@ -677,40 +675,40 @@ export declare const decodeScope: (encodedScope: EncodedScope) => {
|
|
|
677
675
|
type: "record.create" | "record.declare" | "record.notify";
|
|
678
676
|
options?: {
|
|
679
677
|
event?: string[] | undefined;
|
|
680
|
-
placeOfEvent?: "administrativeArea" | "
|
|
678
|
+
placeOfEvent?: "administrativeArea" | "location" | "all" | undefined;
|
|
681
679
|
} | undefined;
|
|
682
680
|
} | {
|
|
683
|
-
type: "record.
|
|
681
|
+
type: "record.edit" | "record.reject" | "record.archive" | "record.unarchive" | "record.review-duplicates" | "record.register";
|
|
684
682
|
options?: {
|
|
685
683
|
event?: string[] | undefined;
|
|
686
|
-
placeOfEvent?: "administrativeArea" | "
|
|
687
|
-
notifiedIn?: "administrativeArea" | "
|
|
684
|
+
placeOfEvent?: "administrativeArea" | "location" | "all" | undefined;
|
|
685
|
+
notifiedIn?: "administrativeArea" | "location" | "all" | undefined;
|
|
688
686
|
notifiedBy?: "user" | undefined;
|
|
689
|
-
declaredIn?: "administrativeArea" | "
|
|
687
|
+
declaredIn?: "administrativeArea" | "location" | "all" | undefined;
|
|
690
688
|
declaredBy?: "user" | undefined;
|
|
691
689
|
} | undefined;
|
|
692
690
|
} | {
|
|
693
|
-
type: "record.
|
|
691
|
+
type: "record.search" | "record.read" | "record.request-correction" | "record.correct" | "record.unassign-others";
|
|
694
692
|
options?: {
|
|
695
693
|
event?: string[] | undefined;
|
|
696
|
-
placeOfEvent?: "administrativeArea" | "
|
|
697
|
-
notifiedIn?: "administrativeArea" | "
|
|
694
|
+
placeOfEvent?: "administrativeArea" | "location" | "all" | undefined;
|
|
695
|
+
notifiedIn?: "administrativeArea" | "location" | "all" | undefined;
|
|
698
696
|
notifiedBy?: "user" | undefined;
|
|
699
|
-
declaredIn?: "administrativeArea" | "
|
|
697
|
+
declaredIn?: "administrativeArea" | "location" | "all" | undefined;
|
|
700
698
|
declaredBy?: "user" | undefined;
|
|
701
|
-
registeredIn?: "administrativeArea" | "
|
|
699
|
+
registeredIn?: "administrativeArea" | "location" | "all" | undefined;
|
|
702
700
|
registeredBy?: "user" | undefined;
|
|
703
701
|
} | undefined;
|
|
704
702
|
} | {
|
|
705
703
|
type: "record.custom-action";
|
|
706
704
|
options?: {
|
|
707
705
|
event?: string[] | undefined;
|
|
708
|
-
placeOfEvent?: "administrativeArea" | "
|
|
709
|
-
notifiedIn?: "administrativeArea" | "
|
|
706
|
+
placeOfEvent?: "administrativeArea" | "location" | "all" | undefined;
|
|
707
|
+
notifiedIn?: "administrativeArea" | "location" | "all" | undefined;
|
|
710
708
|
notifiedBy?: "user" | undefined;
|
|
711
|
-
declaredIn?: "administrativeArea" | "
|
|
709
|
+
declaredIn?: "administrativeArea" | "location" | "all" | undefined;
|
|
712
710
|
declaredBy?: "user" | undefined;
|
|
713
|
-
registeredIn?: "administrativeArea" | "
|
|
711
|
+
registeredIn?: "administrativeArea" | "location" | "all" | undefined;
|
|
714
712
|
registeredBy?: "user" | undefined;
|
|
715
713
|
customActionTypes?: string[] | undefined;
|
|
716
714
|
} | undefined;
|
|
@@ -718,32 +716,32 @@ export declare const decodeScope: (encodedScope: EncodedScope) => {
|
|
|
718
716
|
type: "record.print-certified-copies";
|
|
719
717
|
options?: {
|
|
720
718
|
event?: string[] | undefined;
|
|
721
|
-
placeOfEvent?: "administrativeArea" | "
|
|
722
|
-
notifiedIn?: "administrativeArea" | "
|
|
719
|
+
placeOfEvent?: "administrativeArea" | "location" | "all" | undefined;
|
|
720
|
+
notifiedIn?: "administrativeArea" | "location" | "all" | undefined;
|
|
723
721
|
notifiedBy?: "user" | undefined;
|
|
724
|
-
declaredIn?: "administrativeArea" | "
|
|
722
|
+
declaredIn?: "administrativeArea" | "location" | "all" | undefined;
|
|
725
723
|
declaredBy?: "user" | undefined;
|
|
726
|
-
registeredIn?: "administrativeArea" | "
|
|
724
|
+
registeredIn?: "administrativeArea" | "location" | "all" | undefined;
|
|
727
725
|
registeredBy?: "user" | undefined;
|
|
728
726
|
templates?: string[] | undefined;
|
|
729
727
|
} | undefined;
|
|
730
728
|
} | {
|
|
731
729
|
type: "user.create" | "user.edit";
|
|
732
730
|
options?: {
|
|
733
|
-
accessLevel?: "administrativeArea" | "
|
|
731
|
+
accessLevel?: "administrativeArea" | "location" | "all" | undefined;
|
|
734
732
|
role?: string[] | undefined;
|
|
735
733
|
} | undefined;
|
|
736
734
|
} | {
|
|
737
735
|
type: "user.read" | "user.search";
|
|
738
736
|
options?: {
|
|
739
|
-
accessLevel?: "administrativeArea" | "
|
|
737
|
+
accessLevel?: "administrativeArea" | "location" | "all" | undefined;
|
|
740
738
|
} | undefined;
|
|
741
739
|
} | {
|
|
742
|
-
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";
|
|
743
741
|
} | {
|
|
744
742
|
type: "organisation.read-locations";
|
|
745
743
|
options?: {
|
|
746
|
-
accessLevel?: "administrativeArea" | "
|
|
744
|
+
accessLevel?: "administrativeArea" | "location" | "all" | undefined;
|
|
747
745
|
} | undefined;
|
|
748
746
|
} | {
|
|
749
747
|
type: "workqueue";
|
|
@@ -829,7 +827,7 @@ export declare function canUserCreateEvent(userScopes: EncodedScope[], eventType
|
|
|
829
827
|
* @param scopes Array of scopes in object format.
|
|
830
828
|
* @returns Array of scopes in string format, encoded for use in JWT tokens.
|
|
831
829
|
*/
|
|
832
|
-
export declare function defineScopes(scopes: Scope[]): (string & z.$brand<"EncodedScope">)[];
|
|
830
|
+
export declare function defineScopes(scopes: Scope[]): (string & z.core.$brand<"EncodedScope">)[];
|
|
833
831
|
/**
|
|
834
832
|
* Helper for defining user roles. Should be used in country config.
|
|
835
833
|
*
|
|
@@ -837,7 +835,7 @@ export declare function defineScopes(scopes: Scope[]): (string & z.$brand<"Encod
|
|
|
837
835
|
*/
|
|
838
836
|
export declare function defineRoles(roles: Role[]): {
|
|
839
837
|
id: string;
|
|
840
|
-
scopes: (string & z.$brand<"EncodedScope">)[];
|
|
838
|
+
scopes: (string & z.core.$brand<"EncodedScope">)[];
|
|
841
839
|
}[];
|
|
842
840
|
export {};
|
|
843
841
|
//# sourceMappingURL=scopes.d.ts.map
|