@opencrvs/toolkit 2.0.0 → 2.1.0-rc.00fa07b
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/README.md +16 -0
- package/build.sh +5 -4
- package/create-countryconfig/package.json +1 -1
- package/dist/application-config/index.js +32 -7
- package/dist/cli.js +3222 -4889
- package/dist/commons/api/router.d.ts +3561 -2890
- package/dist/commons/application-config/index.d.ts +6 -6
- package/dist/commons/conditionals/conditionals.d.ts +32 -323
- package/dist/commons/events/ActionConfig.d.ts +302 -67
- package/dist/commons/events/ActionDocument.d.ts +155 -111
- package/dist/commons/events/ActionInput.d.ts +26 -6
- package/dist/commons/events/ActionType.d.ts +63 -58
- package/dist/commons/events/AdvancedSearchConfig.d.ts +513 -489
- package/dist/commons/events/AuditLog.d.ts +79 -40
- 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 +603 -561
- package/dist/commons/events/Draft.d.ts +37 -35
- package/dist/commons/events/DynamicFieldValue.d.ts +9 -9
- package/dist/commons/events/EventConfig.d.ts +5 -3
- package/dist/commons/events/EventDocument.d.ts +66 -44
- package/dist/commons/events/EventIndex.d.ts +76 -51
- package/dist/commons/events/EventMetadata.d.ts +60 -34
- package/dist/commons/events/FieldConfig.d.ts +341 -321
- 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 +840 -798
- 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 +69 -198
- package/dist/commons/events/index.d.ts +1 -0
- package/dist/commons/events/locationPayloads.d.ts +95 -0
- package/dist/commons/events/locations.d.ts +104 -6
- package/dist/commons/events/mocks.test.utils.d.ts +18 -4
- package/dist/commons/events/scopes.d.ts +5 -4
- package/dist/commons/events/state/index.d.ts +23 -15
- package/dist/commons/events/state/utils.d.ts +15 -6
- package/dist/commons/events/test.utils.d.ts +44 -39
- package/dist/commons/events/utils.d.ts +127 -105
- package/dist/commons/notification/UserNotifications.d.ts +10 -10
- package/dist/conditionals/index.js +13 -5
- package/dist/environment/custom-types.d.ts +33 -0
- package/dist/environment/custom-types.d.ts.map +1 -0
- package/dist/environment/custom-types.js +12 -0
- package/dist/environment/derived-variables.d.ts +122 -0
- package/dist/environment/derived-variables.d.ts.map +1 -0
- package/dist/environment/derived-variables.js +155 -0
- package/dist/environment/editor-questions.d.ts +4 -0
- package/dist/environment/editor-questions.d.ts.map +1 -0
- package/dist/environment/editor-questions.js +67 -0
- package/dist/environment/git.d.ts +5 -0
- package/dist/environment/git.d.ts.map +1 -0
- package/dist/environment/git.js +38 -0
- package/dist/environment/github.d.ts +26 -0
- package/dist/environment/github.d.ts.map +1 -0
- package/dist/environment/github.js +247 -0
- package/dist/environment/index.d.ts +6 -0
- package/dist/environment/index.d.ts.map +1 -0
- package/dist/environment/index.js +81 -0
- package/dist/environment/logger.d.ts +6 -0
- package/dist/environment/logger.d.ts.map +1 -0
- package/dist/environment/logger.js +25 -0
- package/dist/environment/manage-users.d.ts +11 -0
- package/dist/environment/manage-users.d.ts.map +1 -0
- package/dist/environment/manage-users.js +507 -0
- package/dist/environment/paths.d.ts +7 -0
- package/dist/environment/paths.d.ts.map +1 -0
- package/dist/environment/paths.js +72 -0
- package/dist/environment/questions-helper.d.ts +15 -0
- package/dist/environment/questions-helper.d.ts.map +1 -0
- package/dist/environment/questions-helper.js +70 -0
- package/dist/environment/questions.d.ts +200 -0
- package/dist/environment/questions.d.ts.map +1 -0
- package/dist/environment/questions.js +412 -0
- package/dist/environment/setup-environment.d.ts +2 -0
- package/dist/environment/setup-environment.d.ts.map +1 -0
- package/dist/environment/setup-environment.js +775 -0
- package/dist/environment/ssh-keygen.d.ts +5 -0
- package/dist/environment/ssh-keygen.d.ts.map +1 -0
- package/dist/environment/ssh-keygen.js +21 -0
- package/dist/environment/swarm-to-k8s.d.ts +2 -0
- package/dist/environment/swarm-to-k8s.d.ts.map +1 -0
- package/dist/environment/swarm-to-k8s.js +183 -0
- package/dist/environment/templates.d.ts +27 -0
- package/dist/environment/templates.d.ts.map +1 -0
- package/dist/environment/templates.js +164 -0
- package/dist/environment/update-workflows.d.ts +2 -0
- package/dist/environment/update-workflows.d.ts.map +1 -0
- package/dist/environment/update-workflows.js +191 -0
- package/dist/environment/upgrade.d.ts +2 -0
- package/dist/environment/upgrade.d.ts.map +1 -0
- package/dist/environment/upgrade.js +82 -0
- package/dist/environment/users.d.ts +2 -0
- package/dist/environment/users.d.ts.map +1 -0
- package/dist/environment/users.js +120 -0
- package/dist/environment/utils.d.ts +18 -0
- package/dist/environment/utils.d.ts.map +1 -0
- package/dist/environment/utils.js +110 -0
- package/dist/events/deduplication.d.ts +1 -1
- package/dist/events/index.js +422 -97
- package/dist/migrations/v2.0/checkout-upstream-files.d.ts +1 -1
- package/dist/migrations/v2.0/checkout-upstream-files.d.ts.map +1 -1
- package/dist/migrations/v2.0/checkout-upstream-files.js +1 -1
- package/dist/migrations/v2.0/convert-config-files-to-ts.js +17 -7
- package/dist/migrations/v2.0/index.js +88 -5139
- package/dist/migrations/v2.0/migrate-application-config-url.js +4 -3
- package/dist/migrations/v2.0/remove-hearth-migrations.js +17 -7
- package/dist/migrations/v2.1/add-explicit-correction-flags.d.ts +3 -0
- package/dist/migrations/v2.1/add-explicit-correction-flags.d.ts.map +1 -0
- package/dist/migrations/v2.1/add-explicit-correction-flags.js +234 -0
- package/dist/migrations/v2.1/index.d.ts +6 -0
- package/dist/migrations/v2.1/index.d.ts.map +1 -0
- package/dist/migrations/v2.1/index.js +218 -0
- package/dist/notification/index.js +344 -110
- package/dist/scopes/index.d.ts +213 -117
- package/dist/scopes/index.js +13 -5
- package/dist/templates/charts-values/dependencies/values.override.yaml +4 -0
- package/dist/templates/charts-values/dependencies/values.yaml +80 -0
- package/dist/templates/charts-values/opencrvs-services/values.override.yaml +4 -0
- package/dist/templates/charts-values/opencrvs-services/values.yaml +77 -0
- package/dist/templates/charts-values/traefik/values.override.yaml +4 -0
- package/dist/templates/charts-values/traefik/values.yaml +115 -0
- package/dist/templates/inventory/inventory.template.yml +100 -0
- package/dist/templates/inventory/production.example.yml +77 -0
- package/dist/templates/inventory/qa.example.yml +48 -0
- package/opencrvs-toolkit-2.1.0-rc.00fa07b.tgz +0 -0
- package/package.json +18 -4
- package/tsconfig.tsbuildinfo +1 -1
- package/opencrvs-toolkit-2.0.0.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
|
-
location: "location";
|
|
6
5
|
all: "all";
|
|
6
|
+
location: "location";
|
|
7
7
|
}>;
|
|
8
8
|
export type JurisdictionFilter = z.infer<typeof JurisdictionFilter>;
|
|
9
9
|
export declare const UserFilter: z.ZodEnum<{
|
|
@@ -14,68 +14,79 @@ export type UserFilter = z.infer<typeof UserFilter>;
|
|
|
14
14
|
* The different types of scopes that can be used to control access to records. Each type has different options that can be used to further filter the records that the scope applies to.
|
|
15
15
|
* When adding new scope types, they should be added to the appropriate section based on the options they require.
|
|
16
16
|
*
|
|
17
|
-
* @see scopeOptionsPlaceEvent @see
|
|
17
|
+
* @see scopeOptionsPlaceEvent @see scopeOptionsDeclaredOrNotified @see scopeOptionsFull
|
|
18
18
|
*/
|
|
19
19
|
export declare const RecordScopeTypeV2: z.ZodEnum<{
|
|
20
|
-
"record.
|
|
20
|
+
"record.archive": "record.archive";
|
|
21
|
+
"record.correct": "record.correct";
|
|
21
22
|
"record.create": "record.create";
|
|
22
|
-
"record.
|
|
23
|
+
"record.custom-action": "record.custom-action";
|
|
23
24
|
"record.declare": "record.declare";
|
|
24
|
-
"record.notify": "record.notify";
|
|
25
25
|
"record.edit": "record.edit";
|
|
26
|
-
"record.
|
|
27
|
-
"record.archive": "record.archive";
|
|
28
|
-
"record.review-duplicates": "record.review-duplicates";
|
|
29
|
-
"record.register": "record.register";
|
|
26
|
+
"record.notify": "record.notify";
|
|
30
27
|
"record.print-certified-copies": "record.print-certified-copies";
|
|
28
|
+
"record.read": "record.read";
|
|
29
|
+
"record.register": "record.register";
|
|
30
|
+
"record.reject": "record.reject";
|
|
31
31
|
"record.request-correction": "record.request-correction";
|
|
32
|
-
"record.
|
|
32
|
+
"record.review-duplicates": "record.review-duplicates";
|
|
33
|
+
"record.search": "record.search";
|
|
34
|
+
"record.unarchive": "record.unarchive";
|
|
33
35
|
"record.unassign-others": "record.unassign-others";
|
|
34
|
-
"record.custom-action": "record.custom-action";
|
|
35
36
|
}>;
|
|
36
37
|
export type RecordScopeTypeV2 = z.infer<typeof RecordScopeTypeV2>;
|
|
37
38
|
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>>>>;
|
|
45
39
|
event: z.ZodPipe<z.ZodTransform<({} | null)[] | undefined, unknown>, z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
46
40
|
placeOfEvent: z.ZodOptional<z.ZodEnum<{
|
|
47
41
|
administrativeArea: "administrativeArea";
|
|
42
|
+
all: "all";
|
|
48
43
|
location: "location";
|
|
44
|
+
}>>;
|
|
45
|
+
notifiedIn: z.ZodOptional<z.ZodEnum<{
|
|
46
|
+
administrativeArea: "administrativeArea";
|
|
49
47
|
all: "all";
|
|
48
|
+
location: "location";
|
|
49
|
+
}>>;
|
|
50
|
+
notifiedBy: z.ZodOptional<z.ZodEnum<{
|
|
51
|
+
user: "user";
|
|
50
52
|
}>>;
|
|
51
53
|
declaredIn: z.ZodOptional<z.ZodEnum<{
|
|
52
54
|
administrativeArea: "administrativeArea";
|
|
53
|
-
location: "location";
|
|
54
55
|
all: "all";
|
|
56
|
+
location: "location";
|
|
55
57
|
}>>;
|
|
56
58
|
declaredBy: z.ZodOptional<z.ZodEnum<{
|
|
57
59
|
user: "user";
|
|
58
60
|
}>>;
|
|
59
61
|
registeredIn: z.ZodOptional<z.ZodEnum<{
|
|
60
62
|
administrativeArea: "administrativeArea";
|
|
61
|
-
location: "location";
|
|
62
63
|
all: "all";
|
|
64
|
+
location: "location";
|
|
63
65
|
}>>;
|
|
64
66
|
registeredBy: z.ZodOptional<z.ZodEnum<{
|
|
65
67
|
user: "user";
|
|
66
68
|
}>>;
|
|
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>>;
|
|
67
76
|
}, z.core.$strip>;
|
|
68
77
|
type AllScopeOptions = z.infer<typeof AllScopeOptions>;
|
|
69
78
|
export declare const ScopeOptionKey: z.ZodEnum<{
|
|
70
|
-
|
|
79
|
+
accessLevel: "accessLevel";
|
|
80
|
+
declaredBy: "declaredBy";
|
|
81
|
+
declaredIn: "declaredIn";
|
|
71
82
|
event: "event";
|
|
83
|
+
ids: "ids";
|
|
84
|
+
notifiedBy: "notifiedBy";
|
|
85
|
+
notifiedIn: "notifiedIn";
|
|
72
86
|
placeOfEvent: "placeOfEvent";
|
|
73
|
-
declaredIn: "declaredIn";
|
|
74
|
-
declaredBy: "declaredBy";
|
|
75
|
-
registeredIn: "registeredIn";
|
|
76
87
|
registeredBy: "registeredBy";
|
|
77
|
-
|
|
78
|
-
|
|
88
|
+
registeredIn: "registeredIn";
|
|
89
|
+
role: "role";
|
|
79
90
|
}>;
|
|
80
91
|
export type ScopeOptionKey = z.infer<typeof ScopeOptionKey>;
|
|
81
92
|
export declare const ScopesWithPlaceEventOptions: z.ZodEnum<{
|
|
@@ -84,17 +95,18 @@ export declare const ScopesWithPlaceEventOptions: z.ZodEnum<{
|
|
|
84
95
|
"record.notify": "record.notify";
|
|
85
96
|
}>;
|
|
86
97
|
export declare const ScopesWithDeclaredOptions: z.ZodEnum<{
|
|
98
|
+
"record.archive": "record.archive";
|
|
87
99
|
"record.edit": "record.edit";
|
|
100
|
+
"record.register": "record.register";
|
|
88
101
|
"record.reject": "record.reject";
|
|
89
|
-
"record.archive": "record.archive";
|
|
90
102
|
"record.review-duplicates": "record.review-duplicates";
|
|
91
|
-
"record.
|
|
103
|
+
"record.unarchive": "record.unarchive";
|
|
92
104
|
}>;
|
|
93
105
|
export declare const ScopesWithFullOptions: z.ZodEnum<{
|
|
94
|
-
"record.
|
|
106
|
+
"record.correct": "record.correct";
|
|
95
107
|
"record.read": "record.read";
|
|
96
108
|
"record.request-correction": "record.request-correction";
|
|
97
|
-
"record.
|
|
109
|
+
"record.search": "record.search";
|
|
98
110
|
"record.unassign-others": "record.unassign-others";
|
|
99
111
|
}>;
|
|
100
112
|
export declare const RecordScopeV2: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -107,29 +119,38 @@ export declare const RecordScopeV2: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
107
119
|
event: z.ZodPipe<z.ZodTransform<({} | null)[] | undefined, unknown>, z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
108
120
|
placeOfEvent: z.ZodOptional<z.ZodEnum<{
|
|
109
121
|
administrativeArea: "administrativeArea";
|
|
110
|
-
location: "location";
|
|
111
122
|
all: "all";
|
|
123
|
+
location: "location";
|
|
112
124
|
}>>;
|
|
113
125
|
}, z.core.$strip>>;
|
|
114
126
|
}, z.core.$strip>, z.ZodObject<{
|
|
115
127
|
type: z.ZodEnum<{
|
|
128
|
+
"record.archive": "record.archive";
|
|
116
129
|
"record.edit": "record.edit";
|
|
130
|
+
"record.register": "record.register";
|
|
117
131
|
"record.reject": "record.reject";
|
|
118
|
-
"record.archive": "record.archive";
|
|
119
132
|
"record.review-duplicates": "record.review-duplicates";
|
|
120
|
-
"record.
|
|
133
|
+
"record.unarchive": "record.unarchive";
|
|
121
134
|
}>;
|
|
122
135
|
options: z.ZodOptional<z.ZodObject<{
|
|
123
136
|
event: z.ZodPipe<z.ZodTransform<({} | null)[] | undefined, unknown>, z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
124
137
|
placeOfEvent: z.ZodOptional<z.ZodEnum<{
|
|
125
138
|
administrativeArea: "administrativeArea";
|
|
139
|
+
all: "all";
|
|
126
140
|
location: "location";
|
|
141
|
+
}>>;
|
|
142
|
+
notifiedIn: z.ZodOptional<z.ZodEnum<{
|
|
143
|
+
administrativeArea: "administrativeArea";
|
|
127
144
|
all: "all";
|
|
145
|
+
location: "location";
|
|
146
|
+
}>>;
|
|
147
|
+
notifiedBy: z.ZodOptional<z.ZodEnum<{
|
|
148
|
+
user: "user";
|
|
128
149
|
}>>;
|
|
129
150
|
declaredIn: z.ZodOptional<z.ZodEnum<{
|
|
130
151
|
administrativeArea: "administrativeArea";
|
|
131
|
-
location: "location";
|
|
132
152
|
all: "all";
|
|
153
|
+
location: "location";
|
|
133
154
|
}>>;
|
|
134
155
|
declaredBy: z.ZodOptional<z.ZodEnum<{
|
|
135
156
|
user: "user";
|
|
@@ -137,31 +158,39 @@ export declare const RecordScopeV2: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
137
158
|
}, z.core.$strip>>;
|
|
138
159
|
}, z.core.$strip>, z.ZodObject<{
|
|
139
160
|
type: z.ZodEnum<{
|
|
140
|
-
"record.
|
|
161
|
+
"record.correct": "record.correct";
|
|
141
162
|
"record.read": "record.read";
|
|
142
163
|
"record.request-correction": "record.request-correction";
|
|
143
|
-
"record.
|
|
164
|
+
"record.search": "record.search";
|
|
144
165
|
"record.unassign-others": "record.unassign-others";
|
|
145
166
|
}>;
|
|
146
167
|
options: z.ZodOptional<z.ZodObject<{
|
|
147
168
|
event: z.ZodPipe<z.ZodTransform<({} | null)[] | undefined, unknown>, z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
148
169
|
placeOfEvent: z.ZodOptional<z.ZodEnum<{
|
|
149
170
|
administrativeArea: "administrativeArea";
|
|
171
|
+
all: "all";
|
|
150
172
|
location: "location";
|
|
173
|
+
}>>;
|
|
174
|
+
notifiedIn: z.ZodOptional<z.ZodEnum<{
|
|
175
|
+
administrativeArea: "administrativeArea";
|
|
151
176
|
all: "all";
|
|
177
|
+
location: "location";
|
|
178
|
+
}>>;
|
|
179
|
+
notifiedBy: z.ZodOptional<z.ZodEnum<{
|
|
180
|
+
user: "user";
|
|
152
181
|
}>>;
|
|
153
182
|
declaredIn: z.ZodOptional<z.ZodEnum<{
|
|
154
183
|
administrativeArea: "administrativeArea";
|
|
155
|
-
location: "location";
|
|
156
184
|
all: "all";
|
|
185
|
+
location: "location";
|
|
157
186
|
}>>;
|
|
158
187
|
declaredBy: z.ZodOptional<z.ZodEnum<{
|
|
159
188
|
user: "user";
|
|
160
189
|
}>>;
|
|
161
190
|
registeredIn: z.ZodOptional<z.ZodEnum<{
|
|
162
191
|
administrativeArea: "administrativeArea";
|
|
163
|
-
location: "location";
|
|
164
192
|
all: "all";
|
|
193
|
+
location: "location";
|
|
165
194
|
}>>;
|
|
166
195
|
registeredBy: z.ZodOptional<z.ZodEnum<{
|
|
167
196
|
user: "user";
|
|
@@ -173,21 +202,29 @@ export declare const RecordScopeV2: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
173
202
|
event: z.ZodPipe<z.ZodTransform<({} | null)[] | undefined, unknown>, z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
174
203
|
placeOfEvent: z.ZodOptional<z.ZodEnum<{
|
|
175
204
|
administrativeArea: "administrativeArea";
|
|
205
|
+
all: "all";
|
|
176
206
|
location: "location";
|
|
207
|
+
}>>;
|
|
208
|
+
notifiedIn: z.ZodOptional<z.ZodEnum<{
|
|
209
|
+
administrativeArea: "administrativeArea";
|
|
177
210
|
all: "all";
|
|
211
|
+
location: "location";
|
|
212
|
+
}>>;
|
|
213
|
+
notifiedBy: z.ZodOptional<z.ZodEnum<{
|
|
214
|
+
user: "user";
|
|
178
215
|
}>>;
|
|
179
216
|
declaredIn: z.ZodOptional<z.ZodEnum<{
|
|
180
217
|
administrativeArea: "administrativeArea";
|
|
181
|
-
location: "location";
|
|
182
218
|
all: "all";
|
|
219
|
+
location: "location";
|
|
183
220
|
}>>;
|
|
184
221
|
declaredBy: z.ZodOptional<z.ZodEnum<{
|
|
185
222
|
user: "user";
|
|
186
223
|
}>>;
|
|
187
224
|
registeredIn: z.ZodOptional<z.ZodEnum<{
|
|
188
225
|
administrativeArea: "administrativeArea";
|
|
189
|
-
location: "location";
|
|
190
226
|
all: "all";
|
|
227
|
+
location: "location";
|
|
191
228
|
}>>;
|
|
192
229
|
registeredBy: z.ZodOptional<z.ZodEnum<{
|
|
193
230
|
user: "user";
|
|
@@ -200,21 +237,29 @@ export declare const RecordScopeV2: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
200
237
|
event: z.ZodPipe<z.ZodTransform<({} | null)[] | undefined, unknown>, z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
201
238
|
placeOfEvent: z.ZodOptional<z.ZodEnum<{
|
|
202
239
|
administrativeArea: "administrativeArea";
|
|
240
|
+
all: "all";
|
|
203
241
|
location: "location";
|
|
242
|
+
}>>;
|
|
243
|
+
notifiedIn: z.ZodOptional<z.ZodEnum<{
|
|
244
|
+
administrativeArea: "administrativeArea";
|
|
204
245
|
all: "all";
|
|
246
|
+
location: "location";
|
|
247
|
+
}>>;
|
|
248
|
+
notifiedBy: z.ZodOptional<z.ZodEnum<{
|
|
249
|
+
user: "user";
|
|
205
250
|
}>>;
|
|
206
251
|
declaredIn: z.ZodOptional<z.ZodEnum<{
|
|
207
252
|
administrativeArea: "administrativeArea";
|
|
208
|
-
location: "location";
|
|
209
253
|
all: "all";
|
|
254
|
+
location: "location";
|
|
210
255
|
}>>;
|
|
211
256
|
declaredBy: z.ZodOptional<z.ZodEnum<{
|
|
212
257
|
user: "user";
|
|
213
258
|
}>>;
|
|
214
259
|
registeredIn: z.ZodOptional<z.ZodEnum<{
|
|
215
260
|
administrativeArea: "administrativeArea";
|
|
216
|
-
location: "location";
|
|
217
261
|
all: "all";
|
|
262
|
+
location: "location";
|
|
218
263
|
}>>;
|
|
219
264
|
registeredBy: z.ZodOptional<z.ZodEnum<{
|
|
220
265
|
user: "user";
|
|
@@ -224,16 +269,16 @@ export declare const RecordScopeV2: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
224
269
|
}, z.core.$strip>], "type">;
|
|
225
270
|
declare const SystemScopeType: z.ZodEnum<{
|
|
226
271
|
"organisation.read-locations": "organisation.read-locations";
|
|
227
|
-
"user.read": "user.read";
|
|
228
272
|
"user.create": "user.create";
|
|
229
273
|
"user.edit": "user.edit";
|
|
274
|
+
"user.read": "user.read";
|
|
230
275
|
"user.search": "user.search";
|
|
231
276
|
}>;
|
|
232
277
|
export type SystemScopeType = z.infer<typeof SystemScopeType>;
|
|
233
278
|
declare const UserScopeType: z.ZodEnum<{
|
|
234
|
-
"user.read": "user.read";
|
|
235
279
|
"user.create": "user.create";
|
|
236
280
|
"user.edit": "user.edit";
|
|
281
|
+
"user.read": "user.read";
|
|
237
282
|
"user.search": "user.search";
|
|
238
283
|
}>;
|
|
239
284
|
export type UserScopeType = z.infer<typeof UserScopeType>;
|
|
@@ -250,8 +295,8 @@ export declare const UserScopeV2: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
250
295
|
options: z.ZodOptional<z.ZodObject<{
|
|
251
296
|
accessLevel: z.ZodOptional<z.ZodEnum<{
|
|
252
297
|
administrativeArea: "administrativeArea";
|
|
253
|
-
location: "location";
|
|
254
298
|
all: "all";
|
|
299
|
+
location: "location";
|
|
255
300
|
}>>;
|
|
256
301
|
role: z.ZodOptional<z.ZodPipe<z.ZodTransform<({} | null)[] | undefined, unknown>, z.ZodOptional<z.ZodArray<z.ZodString>>>>;
|
|
257
302
|
}, z.core.$strip>>;
|
|
@@ -263,8 +308,8 @@ export declare const UserScopeV2: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
263
308
|
options: z.ZodOptional<z.ZodObject<{
|
|
264
309
|
accessLevel: z.ZodOptional<z.ZodEnum<{
|
|
265
310
|
administrativeArea: "administrativeArea";
|
|
266
|
-
location: "location";
|
|
267
311
|
all: "all";
|
|
312
|
+
location: "location";
|
|
268
313
|
}>>;
|
|
269
314
|
}, z.core.$strip>>;
|
|
270
315
|
}, z.core.$strip>], "type">;
|
|
@@ -296,29 +341,34 @@ export declare const ResolvedRecordScopeV2: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
296
341
|
}, z.core.$strip>>;
|
|
297
342
|
}, z.core.$strip>, z.ZodObject<{
|
|
298
343
|
type: z.ZodEnum<{
|
|
344
|
+
"record.archive": "record.archive";
|
|
299
345
|
"record.edit": "record.edit";
|
|
346
|
+
"record.register": "record.register";
|
|
300
347
|
"record.reject": "record.reject";
|
|
301
|
-
"record.archive": "record.archive";
|
|
302
348
|
"record.review-duplicates": "record.review-duplicates";
|
|
303
|
-
"record.
|
|
349
|
+
"record.unarchive": "record.unarchive";
|
|
304
350
|
}>;
|
|
305
351
|
options: z.ZodOptional<z.ZodObject<{
|
|
306
352
|
event: z.ZodPipe<z.ZodTransform<({} | null)[] | undefined, unknown>, z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
307
353
|
placeOfEvent: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
354
|
+
notifiedIn: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
355
|
+
notifiedBy: z.ZodOptional<z.ZodString>;
|
|
308
356
|
declaredIn: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
309
357
|
declaredBy: z.ZodOptional<z.ZodString>;
|
|
310
358
|
}, z.core.$strip>>;
|
|
311
359
|
}, z.core.$strip>, z.ZodObject<{
|
|
312
360
|
type: z.ZodEnum<{
|
|
313
|
-
"record.
|
|
361
|
+
"record.correct": "record.correct";
|
|
314
362
|
"record.read": "record.read";
|
|
315
363
|
"record.request-correction": "record.request-correction";
|
|
316
|
-
"record.
|
|
364
|
+
"record.search": "record.search";
|
|
317
365
|
"record.unassign-others": "record.unassign-others";
|
|
318
366
|
}>;
|
|
319
367
|
options: z.ZodOptional<z.ZodObject<{
|
|
320
368
|
event: z.ZodPipe<z.ZodTransform<({} | null)[] | undefined, unknown>, z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
321
369
|
placeOfEvent: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
370
|
+
notifiedIn: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
371
|
+
notifiedBy: z.ZodOptional<z.ZodString>;
|
|
322
372
|
declaredIn: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
323
373
|
declaredBy: z.ZodOptional<z.ZodString>;
|
|
324
374
|
registeredIn: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
@@ -329,6 +379,8 @@ export declare const ResolvedRecordScopeV2: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
329
379
|
options: z.ZodOptional<z.ZodObject<{
|
|
330
380
|
event: z.ZodPipe<z.ZodTransform<({} | null)[] | undefined, unknown>, z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
331
381
|
placeOfEvent: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
382
|
+
notifiedIn: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
383
|
+
notifiedBy: z.ZodOptional<z.ZodString>;
|
|
332
384
|
declaredIn: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
333
385
|
declaredBy: z.ZodOptional<z.ZodString>;
|
|
334
386
|
registeredIn: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
@@ -341,20 +393,21 @@ export type ResolvedRecordScopeV2 = z.infer<typeof ResolvedRecordScopeV2>;
|
|
|
341
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. */
|
|
342
394
|
export declare const Scope: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
343
395
|
type: z.ZodEnum<{
|
|
396
|
+
"attachment.upload": "attachment.upload";
|
|
344
397
|
bypassratelimit: "bypassratelimit";
|
|
345
|
-
"record.reindex": "record.reindex";
|
|
346
|
-
"user.data-seeding": "user.data-seeding";
|
|
347
|
-
"integration.create": "integration.create";
|
|
348
|
-
"record.import": "record.import";
|
|
349
398
|
"config.update-all": "config.update-all";
|
|
350
|
-
"
|
|
351
|
-
"
|
|
352
|
-
"user.read-only-my-audit": "user.read-only-my-audit";
|
|
399
|
+
"integration.create": "integration.create";
|
|
400
|
+
"location.edit": "location.edit";
|
|
353
401
|
"performance.read": "performance.read";
|
|
354
402
|
"performance.read-dashboards": "performance.read-dashboards";
|
|
355
403
|
"performance.vital-statistics-export": "performance.vital-statistics-export";
|
|
404
|
+
"profile.electronic-signature": "profile.electronic-signature";
|
|
356
405
|
"record.confirm-registration": "record.confirm-registration";
|
|
406
|
+
"record.import": "record.import";
|
|
407
|
+
"record.reindex": "record.reindex";
|
|
357
408
|
"record.reject-registration": "record.reject-registration";
|
|
409
|
+
"user.data-seeding": "user.data-seeding";
|
|
410
|
+
"user.read-only-my-audit": "user.read-only-my-audit";
|
|
358
411
|
}>;
|
|
359
412
|
}, z.core.$strip>, z.ZodObject<{
|
|
360
413
|
type: z.ZodEnum<{
|
|
@@ -366,29 +419,38 @@ export declare const Scope: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
366
419
|
event: z.ZodPipe<z.ZodTransform<({} | null)[] | undefined, unknown>, z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
367
420
|
placeOfEvent: z.ZodOptional<z.ZodEnum<{
|
|
368
421
|
administrativeArea: "administrativeArea";
|
|
369
|
-
location: "location";
|
|
370
422
|
all: "all";
|
|
423
|
+
location: "location";
|
|
371
424
|
}>>;
|
|
372
425
|
}, z.core.$strip>>;
|
|
373
426
|
}, z.core.$strip>, z.ZodObject<{
|
|
374
427
|
type: z.ZodEnum<{
|
|
428
|
+
"record.archive": "record.archive";
|
|
375
429
|
"record.edit": "record.edit";
|
|
430
|
+
"record.register": "record.register";
|
|
376
431
|
"record.reject": "record.reject";
|
|
377
|
-
"record.archive": "record.archive";
|
|
378
432
|
"record.review-duplicates": "record.review-duplicates";
|
|
379
|
-
"record.
|
|
433
|
+
"record.unarchive": "record.unarchive";
|
|
380
434
|
}>;
|
|
381
435
|
options: z.ZodOptional<z.ZodObject<{
|
|
382
436
|
event: z.ZodPipe<z.ZodTransform<({} | null)[] | undefined, unknown>, z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
383
437
|
placeOfEvent: z.ZodOptional<z.ZodEnum<{
|
|
384
438
|
administrativeArea: "administrativeArea";
|
|
439
|
+
all: "all";
|
|
385
440
|
location: "location";
|
|
441
|
+
}>>;
|
|
442
|
+
notifiedIn: z.ZodOptional<z.ZodEnum<{
|
|
443
|
+
administrativeArea: "administrativeArea";
|
|
386
444
|
all: "all";
|
|
445
|
+
location: "location";
|
|
446
|
+
}>>;
|
|
447
|
+
notifiedBy: z.ZodOptional<z.ZodEnum<{
|
|
448
|
+
user: "user";
|
|
387
449
|
}>>;
|
|
388
450
|
declaredIn: z.ZodOptional<z.ZodEnum<{
|
|
389
451
|
administrativeArea: "administrativeArea";
|
|
390
|
-
location: "location";
|
|
391
452
|
all: "all";
|
|
453
|
+
location: "location";
|
|
392
454
|
}>>;
|
|
393
455
|
declaredBy: z.ZodOptional<z.ZodEnum<{
|
|
394
456
|
user: "user";
|
|
@@ -396,31 +458,39 @@ export declare const Scope: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
396
458
|
}, z.core.$strip>>;
|
|
397
459
|
}, z.core.$strip>, z.ZodObject<{
|
|
398
460
|
type: z.ZodEnum<{
|
|
399
|
-
"record.
|
|
461
|
+
"record.correct": "record.correct";
|
|
400
462
|
"record.read": "record.read";
|
|
401
463
|
"record.request-correction": "record.request-correction";
|
|
402
|
-
"record.
|
|
464
|
+
"record.search": "record.search";
|
|
403
465
|
"record.unassign-others": "record.unassign-others";
|
|
404
466
|
}>;
|
|
405
467
|
options: z.ZodOptional<z.ZodObject<{
|
|
406
468
|
event: z.ZodPipe<z.ZodTransform<({} | null)[] | undefined, unknown>, z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
407
469
|
placeOfEvent: z.ZodOptional<z.ZodEnum<{
|
|
408
470
|
administrativeArea: "administrativeArea";
|
|
471
|
+
all: "all";
|
|
409
472
|
location: "location";
|
|
473
|
+
}>>;
|
|
474
|
+
notifiedIn: z.ZodOptional<z.ZodEnum<{
|
|
475
|
+
administrativeArea: "administrativeArea";
|
|
410
476
|
all: "all";
|
|
477
|
+
location: "location";
|
|
478
|
+
}>>;
|
|
479
|
+
notifiedBy: z.ZodOptional<z.ZodEnum<{
|
|
480
|
+
user: "user";
|
|
411
481
|
}>>;
|
|
412
482
|
declaredIn: z.ZodOptional<z.ZodEnum<{
|
|
413
483
|
administrativeArea: "administrativeArea";
|
|
414
|
-
location: "location";
|
|
415
484
|
all: "all";
|
|
485
|
+
location: "location";
|
|
416
486
|
}>>;
|
|
417
487
|
declaredBy: z.ZodOptional<z.ZodEnum<{
|
|
418
488
|
user: "user";
|
|
419
489
|
}>>;
|
|
420
490
|
registeredIn: z.ZodOptional<z.ZodEnum<{
|
|
421
491
|
administrativeArea: "administrativeArea";
|
|
422
|
-
location: "location";
|
|
423
492
|
all: "all";
|
|
493
|
+
location: "location";
|
|
424
494
|
}>>;
|
|
425
495
|
registeredBy: z.ZodOptional<z.ZodEnum<{
|
|
426
496
|
user: "user";
|
|
@@ -432,21 +502,29 @@ export declare const Scope: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
432
502
|
event: z.ZodPipe<z.ZodTransform<({} | null)[] | undefined, unknown>, z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
433
503
|
placeOfEvent: z.ZodOptional<z.ZodEnum<{
|
|
434
504
|
administrativeArea: "administrativeArea";
|
|
505
|
+
all: "all";
|
|
435
506
|
location: "location";
|
|
507
|
+
}>>;
|
|
508
|
+
notifiedIn: z.ZodOptional<z.ZodEnum<{
|
|
509
|
+
administrativeArea: "administrativeArea";
|
|
436
510
|
all: "all";
|
|
511
|
+
location: "location";
|
|
512
|
+
}>>;
|
|
513
|
+
notifiedBy: z.ZodOptional<z.ZodEnum<{
|
|
514
|
+
user: "user";
|
|
437
515
|
}>>;
|
|
438
516
|
declaredIn: z.ZodOptional<z.ZodEnum<{
|
|
439
517
|
administrativeArea: "administrativeArea";
|
|
440
|
-
location: "location";
|
|
441
518
|
all: "all";
|
|
519
|
+
location: "location";
|
|
442
520
|
}>>;
|
|
443
521
|
declaredBy: z.ZodOptional<z.ZodEnum<{
|
|
444
522
|
user: "user";
|
|
445
523
|
}>>;
|
|
446
524
|
registeredIn: z.ZodOptional<z.ZodEnum<{
|
|
447
525
|
administrativeArea: "administrativeArea";
|
|
448
|
-
location: "location";
|
|
449
526
|
all: "all";
|
|
527
|
+
location: "location";
|
|
450
528
|
}>>;
|
|
451
529
|
registeredBy: z.ZodOptional<z.ZodEnum<{
|
|
452
530
|
user: "user";
|
|
@@ -459,21 +537,29 @@ export declare const Scope: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
459
537
|
event: z.ZodPipe<z.ZodTransform<({} | null)[] | undefined, unknown>, z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
460
538
|
placeOfEvent: z.ZodOptional<z.ZodEnum<{
|
|
461
539
|
administrativeArea: "administrativeArea";
|
|
540
|
+
all: "all";
|
|
462
541
|
location: "location";
|
|
542
|
+
}>>;
|
|
543
|
+
notifiedIn: z.ZodOptional<z.ZodEnum<{
|
|
544
|
+
administrativeArea: "administrativeArea";
|
|
463
545
|
all: "all";
|
|
546
|
+
location: "location";
|
|
547
|
+
}>>;
|
|
548
|
+
notifiedBy: z.ZodOptional<z.ZodEnum<{
|
|
549
|
+
user: "user";
|
|
464
550
|
}>>;
|
|
465
551
|
declaredIn: z.ZodOptional<z.ZodEnum<{
|
|
466
552
|
administrativeArea: "administrativeArea";
|
|
467
|
-
location: "location";
|
|
468
553
|
all: "all";
|
|
554
|
+
location: "location";
|
|
469
555
|
}>>;
|
|
470
556
|
declaredBy: z.ZodOptional<z.ZodEnum<{
|
|
471
557
|
user: "user";
|
|
472
558
|
}>>;
|
|
473
559
|
registeredIn: z.ZodOptional<z.ZodEnum<{
|
|
474
560
|
administrativeArea: "administrativeArea";
|
|
475
|
-
location: "location";
|
|
476
561
|
all: "all";
|
|
562
|
+
location: "location";
|
|
477
563
|
}>>;
|
|
478
564
|
registeredBy: z.ZodOptional<z.ZodEnum<{
|
|
479
565
|
user: "user";
|
|
@@ -488,8 +574,8 @@ export declare const Scope: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
488
574
|
options: z.ZodOptional<z.ZodObject<{
|
|
489
575
|
accessLevel: z.ZodOptional<z.ZodEnum<{
|
|
490
576
|
administrativeArea: "administrativeArea";
|
|
491
|
-
location: "location";
|
|
492
577
|
all: "all";
|
|
578
|
+
location: "location";
|
|
493
579
|
}>>;
|
|
494
580
|
role: z.ZodOptional<z.ZodPipe<z.ZodTransform<({} | null)[] | undefined, unknown>, z.ZodOptional<z.ZodArray<z.ZodString>>>>;
|
|
495
581
|
}, z.core.$strip>>;
|
|
@@ -501,8 +587,8 @@ export declare const Scope: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
501
587
|
options: z.ZodOptional<z.ZodObject<{
|
|
502
588
|
accessLevel: z.ZodOptional<z.ZodEnum<{
|
|
503
589
|
administrativeArea: "administrativeArea";
|
|
504
|
-
location: "location";
|
|
505
590
|
all: "all";
|
|
591
|
+
location: "location";
|
|
506
592
|
}>>;
|
|
507
593
|
}, z.core.$strip>>;
|
|
508
594
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -510,8 +596,8 @@ export declare const Scope: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
510
596
|
options: z.ZodOptional<z.ZodObject<{
|
|
511
597
|
accessLevel: z.ZodOptional<z.ZodEnum<{
|
|
512
598
|
administrativeArea: "administrativeArea";
|
|
513
|
-
location: "location";
|
|
514
599
|
all: "all";
|
|
600
|
+
location: "location";
|
|
515
601
|
}>>;
|
|
516
602
|
}, z.core.$strip>>;
|
|
517
603
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -527,42 +613,44 @@ export declare const Scope: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
527
613
|
}, z.core.$strip>], "type">;
|
|
528
614
|
export type Scope = z.infer<typeof Scope>;
|
|
529
615
|
export declare const ScopeType: z.ZodEnum<{
|
|
530
|
-
"
|
|
531
|
-
"record.create": "record.create";
|
|
532
|
-
"record.read": "record.read";
|
|
533
|
-
"record.declare": "record.declare";
|
|
534
|
-
"record.notify": "record.notify";
|
|
535
|
-
"record.edit": "record.edit";
|
|
536
|
-
"record.reject": "record.reject";
|
|
537
|
-
"record.archive": "record.archive";
|
|
538
|
-
"record.review-duplicates": "record.review-duplicates";
|
|
539
|
-
"record.register": "record.register";
|
|
540
|
-
"record.print-certified-copies": "record.print-certified-copies";
|
|
541
|
-
"record.request-correction": "record.request-correction";
|
|
542
|
-
"record.correct": "record.correct";
|
|
543
|
-
"record.unassign-others": "record.unassign-others";
|
|
544
|
-
"record.custom-action": "record.custom-action";
|
|
616
|
+
"attachment.upload": "attachment.upload";
|
|
545
617
|
bypassratelimit: "bypassratelimit";
|
|
546
|
-
"record.reindex": "record.reindex";
|
|
547
|
-
"user.data-seeding": "user.data-seeding";
|
|
548
|
-
"integration.create": "integration.create";
|
|
549
|
-
"record.import": "record.import";
|
|
550
618
|
"config.update-all": "config.update-all";
|
|
551
|
-
"
|
|
552
|
-
"
|
|
553
|
-
"
|
|
619
|
+
"dashboard.view": "dashboard.view";
|
|
620
|
+
"integration.create": "integration.create";
|
|
621
|
+
"location.edit": "location.edit";
|
|
622
|
+
"organisation.read-locations": "organisation.read-locations";
|
|
554
623
|
"performance.read": "performance.read";
|
|
555
624
|
"performance.read-dashboards": "performance.read-dashboards";
|
|
556
625
|
"performance.vital-statistics-export": "performance.vital-statistics-export";
|
|
626
|
+
"profile.electronic-signature": "profile.electronic-signature";
|
|
627
|
+
"record.archive": "record.archive";
|
|
557
628
|
"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";
|
|
558
641
|
"record.reject-registration": "record.reject-registration";
|
|
559
|
-
"
|
|
560
|
-
"
|
|
642
|
+
"record.request-correction": "record.request-correction";
|
|
643
|
+
"record.review-duplicates": "record.review-duplicates";
|
|
644
|
+
"record.search": "record.search";
|
|
645
|
+
"record.unarchive": "record.unarchive";
|
|
646
|
+
"record.unassign-others": "record.unassign-others";
|
|
561
647
|
"user.create": "user.create";
|
|
648
|
+
"user.data-seeding": "user.data-seeding";
|
|
562
649
|
"user.edit": "user.edit";
|
|
650
|
+
"user.read": "user.read";
|
|
651
|
+
"user.read-only-my-audit": "user.read-only-my-audit";
|
|
563
652
|
"user.search": "user.search";
|
|
564
653
|
workqueue: "workqueue";
|
|
565
|
-
"dashboard.view": "dashboard.view";
|
|
566
654
|
}>;
|
|
567
655
|
export type ScopeType = z.infer<typeof ScopeType>;
|
|
568
656
|
/**
|
|
@@ -589,34 +677,40 @@ export declare const decodeScope: (encodedScope: EncodedScope) => {
|
|
|
589
677
|
type: "record.create" | "record.declare" | "record.notify";
|
|
590
678
|
options?: {
|
|
591
679
|
event?: string[] | undefined;
|
|
592
|
-
placeOfEvent?: "administrativeArea" | "
|
|
680
|
+
placeOfEvent?: "administrativeArea" | "all" | "location" | undefined;
|
|
593
681
|
} | undefined;
|
|
594
682
|
} | {
|
|
595
|
-
type: "record.edit" | "record.
|
|
683
|
+
type: "record.archive" | "record.edit" | "record.register" | "record.reject" | "record.review-duplicates" | "record.unarchive";
|
|
596
684
|
options?: {
|
|
597
685
|
event?: string[] | undefined;
|
|
598
|
-
placeOfEvent?: "administrativeArea" | "
|
|
599
|
-
|
|
686
|
+
placeOfEvent?: "administrativeArea" | "all" | "location" | undefined;
|
|
687
|
+
notifiedIn?: "administrativeArea" | "all" | "location" | undefined;
|
|
688
|
+
notifiedBy?: "user" | undefined;
|
|
689
|
+
declaredIn?: "administrativeArea" | "all" | "location" | undefined;
|
|
600
690
|
declaredBy?: "user" | undefined;
|
|
601
691
|
} | undefined;
|
|
602
692
|
} | {
|
|
603
|
-
type: "record.
|
|
693
|
+
type: "record.correct" | "record.read" | "record.request-correction" | "record.search" | "record.unassign-others";
|
|
604
694
|
options?: {
|
|
605
695
|
event?: string[] | undefined;
|
|
606
|
-
placeOfEvent?: "administrativeArea" | "
|
|
607
|
-
|
|
696
|
+
placeOfEvent?: "administrativeArea" | "all" | "location" | undefined;
|
|
697
|
+
notifiedIn?: "administrativeArea" | "all" | "location" | undefined;
|
|
698
|
+
notifiedBy?: "user" | undefined;
|
|
699
|
+
declaredIn?: "administrativeArea" | "all" | "location" | undefined;
|
|
608
700
|
declaredBy?: "user" | undefined;
|
|
609
|
-
registeredIn?: "administrativeArea" | "
|
|
701
|
+
registeredIn?: "administrativeArea" | "all" | "location" | undefined;
|
|
610
702
|
registeredBy?: "user" | undefined;
|
|
611
703
|
} | undefined;
|
|
612
704
|
} | {
|
|
613
705
|
type: "record.custom-action";
|
|
614
706
|
options?: {
|
|
615
707
|
event?: string[] | undefined;
|
|
616
|
-
placeOfEvent?: "administrativeArea" | "
|
|
617
|
-
|
|
708
|
+
placeOfEvent?: "administrativeArea" | "all" | "location" | undefined;
|
|
709
|
+
notifiedIn?: "administrativeArea" | "all" | "location" | undefined;
|
|
710
|
+
notifiedBy?: "user" | undefined;
|
|
711
|
+
declaredIn?: "administrativeArea" | "all" | "location" | undefined;
|
|
618
712
|
declaredBy?: "user" | undefined;
|
|
619
|
-
registeredIn?: "administrativeArea" | "
|
|
713
|
+
registeredIn?: "administrativeArea" | "all" | "location" | undefined;
|
|
620
714
|
registeredBy?: "user" | undefined;
|
|
621
715
|
customActionTypes?: string[] | undefined;
|
|
622
716
|
} | undefined;
|
|
@@ -624,30 +718,32 @@ export declare const decodeScope: (encodedScope: EncodedScope) => {
|
|
|
624
718
|
type: "record.print-certified-copies";
|
|
625
719
|
options?: {
|
|
626
720
|
event?: string[] | undefined;
|
|
627
|
-
placeOfEvent?: "administrativeArea" | "
|
|
628
|
-
|
|
721
|
+
placeOfEvent?: "administrativeArea" | "all" | "location" | undefined;
|
|
722
|
+
notifiedIn?: "administrativeArea" | "all" | "location" | undefined;
|
|
723
|
+
notifiedBy?: "user" | undefined;
|
|
724
|
+
declaredIn?: "administrativeArea" | "all" | "location" | undefined;
|
|
629
725
|
declaredBy?: "user" | undefined;
|
|
630
|
-
registeredIn?: "administrativeArea" | "
|
|
726
|
+
registeredIn?: "administrativeArea" | "all" | "location" | undefined;
|
|
631
727
|
registeredBy?: "user" | undefined;
|
|
632
728
|
templates?: string[] | undefined;
|
|
633
729
|
} | undefined;
|
|
634
730
|
} | {
|
|
635
731
|
type: "user.create" | "user.edit";
|
|
636
732
|
options?: {
|
|
637
|
-
accessLevel?: "administrativeArea" | "
|
|
733
|
+
accessLevel?: "administrativeArea" | "all" | "location" | undefined;
|
|
638
734
|
role?: string[] | undefined;
|
|
639
735
|
} | undefined;
|
|
640
736
|
} | {
|
|
641
737
|
type: "user.read" | "user.search";
|
|
642
738
|
options?: {
|
|
643
|
-
accessLevel?: "administrativeArea" | "
|
|
739
|
+
accessLevel?: "administrativeArea" | "all" | "location" | undefined;
|
|
644
740
|
} | undefined;
|
|
645
741
|
} | {
|
|
646
|
-
type: "
|
|
742
|
+
type: "attachment.upload" | "bypassratelimit" | "config.update-all" | "integration.create" | "location.edit" | "performance.read" | "performance.read-dashboards" | "performance.vital-statistics-export" | "profile.electronic-signature" | "record.confirm-registration" | "record.import" | "record.reindex" | "record.reject-registration" | "user.data-seeding" | "user.read-only-my-audit";
|
|
647
743
|
} | {
|
|
648
744
|
type: "organisation.read-locations";
|
|
649
745
|
options?: {
|
|
650
|
-
accessLevel?: "administrativeArea" | "
|
|
746
|
+
accessLevel?: "administrativeArea" | "all" | "location" | undefined;
|
|
651
747
|
} | undefined;
|
|
652
748
|
} | {
|
|
653
749
|
type: "workqueue";
|
|
@@ -733,7 +829,7 @@ export declare function canUserCreateEvent(userScopes: EncodedScope[], eventType
|
|
|
733
829
|
* @param scopes Array of scopes in object format.
|
|
734
830
|
* @returns Array of scopes in string format, encoded for use in JWT tokens.
|
|
735
831
|
*/
|
|
736
|
-
export declare function defineScopes(scopes: Scope[]): (string & z
|
|
832
|
+
export declare function defineScopes(scopes: Scope[]): (string & z.$brand<"EncodedScope">)[];
|
|
737
833
|
/**
|
|
738
834
|
* Helper for defining user roles. Should be used in country config.
|
|
739
835
|
*
|
|
@@ -741,7 +837,7 @@ export declare function defineScopes(scopes: Scope[]): (string & z.core.$brand<"
|
|
|
741
837
|
*/
|
|
742
838
|
export declare function defineRoles(roles: Role[]): {
|
|
743
839
|
id: string;
|
|
744
|
-
scopes: (string & z
|
|
840
|
+
scopes: (string & z.$brand<"EncodedScope">)[];
|
|
745
841
|
}[];
|
|
746
842
|
export {};
|
|
747
843
|
//# sourceMappingURL=scopes.d.ts.map
|