@opencrvs/toolkit 2.1.0-rc.811fc78 → 2.1.0-rc.83d4009
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/application-config/index.js +190 -200
- package/dist/commons/api/router.d.ts +3433 -3243
- package/dist/commons/application-config/index.d.ts +6 -6
- package/dist/commons/conditionals/conditionals.d.ts +259 -2102
- package/dist/commons/conditionals/validate.d.ts +1 -2
- package/dist/commons/events/ActionConfig.d.ts +105 -126
- package/dist/commons/events/ActionDocument.d.ts +117 -111
- package/dist/commons/events/ActionType.d.ts +62 -62
- package/dist/commons/events/AdvancedSearchConfig.d.ts +513 -513
- package/dist/commons/events/AuditLog.d.ts +118 -42
- 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 -608
- 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 +71 -52
- package/dist/commons/events/EventMetadata.d.ts +40 -41
- package/dist/commons/events/FieldConfig.d.ts +341 -341
- 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 -63
- 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 +826 -841
- 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 +78 -895
- 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 +103 -6
- package/dist/commons/events/mocks.test.utils.d.ts +18 -4
- 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 +56 -303
- package/dist/environment/derived-variables.d.ts +119 -119
- package/dist/environment/derived-variables.d.ts.map +1 -1
- package/dist/environment/logger.d.ts.map +1 -1
- package/dist/environment/questions.d.ts +75 -74
- package/dist/environment/questions.d.ts.map +1 -1
- package/dist/environment/setup-environment.js +8 -14
- package/dist/environment/utils.d.ts +1 -1
- package/dist/events/deduplication.d.ts +1 -1
- package/dist/events/index.js +2839 -2755
- package/dist/migrations/v2.0/migrate-application-config-url.js +4 -3
- package/dist/notification/index.js +1094 -1561
- package/dist/scopes/index.d.ts +148 -396
- package/dist/scopes/index.js +56 -304
- package/opencrvs-toolkit-2.1.0-rc.83d4009.tgz +0 -0
- package/package.json +3 -4
- package/tsconfig.tsbuildinfo +1 -1
- package/dist/commons/events/ActionStatus.d.ts +0 -14
- package/opencrvs-toolkit-2.1.0-rc.811fc78.tgz +0 -0
package/dist/scopes/index.js
CHANGED
|
@@ -59,10 +59,10 @@ __export(scopes_exports, {
|
|
|
59
59
|
scopeUsesRoleOptions: () => scopeUsesRoleOptions
|
|
60
60
|
});
|
|
61
61
|
module.exports = __toCommonJS(scopes_exports);
|
|
62
|
-
var
|
|
62
|
+
var z4 = __toESM(require("zod/v4"));
|
|
63
63
|
|
|
64
64
|
// ../commons/src/scopes.ts
|
|
65
|
-
var
|
|
65
|
+
var z3 = __toESM(require("zod/v4"));
|
|
66
66
|
var qs = __toESM(require("qs"));
|
|
67
67
|
|
|
68
68
|
// ../commons/src/uuid.ts
|
|
@@ -96,258 +96,12 @@ var getTokenPayload = (token) => {
|
|
|
96
96
|
};
|
|
97
97
|
var TokenWithBearer = z2.string().regex(/^Bearer\s/);
|
|
98
98
|
|
|
99
|
-
// ../commons/src/events/ActionType.ts
|
|
100
|
-
var z3 = __toESM(require("zod/v4"));
|
|
101
|
-
var ActionType = {
|
|
102
|
-
// Pre-declaration actions
|
|
103
|
-
DELETE: "DELETE",
|
|
104
|
-
CREATE: "CREATE",
|
|
105
|
-
NOTIFY: "NOTIFY",
|
|
106
|
-
// Declaration actions
|
|
107
|
-
DECLARE: "DECLARE",
|
|
108
|
-
REGISTER: "REGISTER",
|
|
109
|
-
EDIT: "EDIT",
|
|
110
|
-
// Declaration system actions. Non-configurable.
|
|
111
|
-
DUPLICATE_DETECTED: "DUPLICATE_DETECTED",
|
|
112
|
-
REJECT: "REJECT",
|
|
113
|
-
// REJECT_DECLARATION
|
|
114
|
-
MARK_AS_DUPLICATE: "MARK_AS_DUPLICATE",
|
|
115
|
-
MARK_AS_NOT_DUPLICATE: "MARK_AS_NOT_DUPLICATE",
|
|
116
|
-
ARCHIVE: "ARCHIVE",
|
|
117
|
-
UNARCHIVE: "UNARCHIVE",
|
|
118
|
-
// Record actions
|
|
119
|
-
PRINT_CERTIFICATE: "PRINT_CERTIFICATE",
|
|
120
|
-
REQUEST_CORRECTION: "REQUEST_CORRECTION",
|
|
121
|
-
REJECT_CORRECTION: "REJECT_CORRECTION",
|
|
122
|
-
APPROVE_CORRECTION: "APPROVE_CORRECTION",
|
|
123
|
-
// General actions
|
|
124
|
-
READ: "READ",
|
|
125
|
-
ASSIGN: "ASSIGN",
|
|
126
|
-
UNASSIGN: "UNASSIGN",
|
|
127
|
-
// Custom action
|
|
128
|
-
CUSTOM: "CUSTOM"
|
|
129
|
-
};
|
|
130
|
-
var ConfirmableActions = [
|
|
131
|
-
ActionType.NOTIFY,
|
|
132
|
-
ActionType.DECLARE,
|
|
133
|
-
ActionType.EDIT,
|
|
134
|
-
ActionType.REGISTER,
|
|
135
|
-
ActionType.REJECT,
|
|
136
|
-
ActionType.ARCHIVE,
|
|
137
|
-
ActionType.UNARCHIVE,
|
|
138
|
-
ActionType.PRINT_CERTIFICATE,
|
|
139
|
-
ActionType.REQUEST_CORRECTION,
|
|
140
|
-
ActionType.APPROVE_CORRECTION,
|
|
141
|
-
ActionType.REJECT_CORRECTION,
|
|
142
|
-
ActionType.CUSTOM
|
|
143
|
-
];
|
|
144
|
-
var ActionTypes = z3.enum([
|
|
145
|
-
"DELETE",
|
|
146
|
-
"CREATE",
|
|
147
|
-
"NOTIFY",
|
|
148
|
-
"DECLARE",
|
|
149
|
-
"EDIT",
|
|
150
|
-
"REGISTER",
|
|
151
|
-
"DUPLICATE_DETECTED",
|
|
152
|
-
"REJECT",
|
|
153
|
-
"MARK_AS_DUPLICATE",
|
|
154
|
-
"MARK_AS_NOT_DUPLICATE",
|
|
155
|
-
"ARCHIVE",
|
|
156
|
-
"UNARCHIVE",
|
|
157
|
-
"PRINT_CERTIFICATE",
|
|
158
|
-
"REQUEST_CORRECTION",
|
|
159
|
-
"REJECT_CORRECTION",
|
|
160
|
-
"APPROVE_CORRECTION",
|
|
161
|
-
"READ",
|
|
162
|
-
"ASSIGN",
|
|
163
|
-
"UNASSIGN",
|
|
164
|
-
"CUSTOM"
|
|
165
|
-
]);
|
|
166
|
-
var declarationActionValues = [
|
|
167
|
-
ActionTypes.enum.DECLARE,
|
|
168
|
-
ActionTypes.enum.EDIT,
|
|
169
|
-
ActionTypes.enum.REGISTER,
|
|
170
|
-
ActionTypes.enum.NOTIFY,
|
|
171
|
-
ActionTypes.enum.DUPLICATE_DETECTED
|
|
172
|
-
];
|
|
173
|
-
var DeclarationActions = ActionTypes.extract(declarationActionValues);
|
|
174
|
-
var declarationUpdateActionValues = [
|
|
175
|
-
...declarationActionValues,
|
|
176
|
-
ActionTypes.enum.REQUEST_CORRECTION
|
|
177
|
-
];
|
|
178
|
-
var DeclarationUpdateActions = ActionTypes.extract(
|
|
179
|
-
declarationUpdateActionValues
|
|
180
|
-
);
|
|
181
|
-
var annotationActions = ActionTypes.exclude(declarationActionValues);
|
|
182
|
-
var writeActions = ActionTypes.exclude([
|
|
183
|
-
ActionType.CREATE,
|
|
184
|
-
ActionType.READ,
|
|
185
|
-
ActionType.ASSIGN,
|
|
186
|
-
ActionType.UNASSIGN
|
|
187
|
-
]);
|
|
188
|
-
var WorkqueueActionType = ActionTypes.extract([
|
|
189
|
-
ActionType.READ,
|
|
190
|
-
ActionType.DELETE,
|
|
191
|
-
ActionType.DECLARE,
|
|
192
|
-
ActionType.REGISTER,
|
|
193
|
-
ActionType.EDIT,
|
|
194
|
-
ActionType.REJECT,
|
|
195
|
-
ActionType.MARK_AS_DUPLICATE,
|
|
196
|
-
ActionType.ARCHIVE,
|
|
197
|
-
ActionType.UNARCHIVE,
|
|
198
|
-
ActionType.PRINT_CERTIFICATE,
|
|
199
|
-
ActionType.REQUEST_CORRECTION
|
|
200
|
-
]);
|
|
201
|
-
var META_ACTIONS = [
|
|
202
|
-
ActionType.ASSIGN,
|
|
203
|
-
ActionType.UNASSIGN,
|
|
204
|
-
ActionType.READ
|
|
205
|
-
];
|
|
206
|
-
|
|
207
|
-
// ../commons/src/events/ActionStatus.ts
|
|
208
|
-
var ActionStatus = {
|
|
209
|
-
Requested: "Requested",
|
|
210
|
-
Accepted: "Accepted",
|
|
211
|
-
Rejected: "Rejected"
|
|
212
|
-
};
|
|
213
|
-
|
|
214
|
-
// ../commons/src/events/Flag.ts
|
|
215
|
-
var z6 = __toESM(require("zod/v4"));
|
|
216
|
-
|
|
217
|
-
// ../commons/src/events/TranslationConfig.ts
|
|
218
|
-
var z4 = __toESM(require("zod/v4"));
|
|
219
|
-
var TranslationConfig = z4.object({
|
|
220
|
-
id: z4.string().describe(
|
|
221
|
-
"The identifier of the translation referred in translation CSV files"
|
|
222
|
-
),
|
|
223
|
-
defaultMessage: z4.string().describe("Default translation message"),
|
|
224
|
-
description: z4.string().describe(
|
|
225
|
-
"Describe the translation for a translator to be able to identify it."
|
|
226
|
-
)
|
|
227
|
-
}).meta({
|
|
228
|
-
description: "Translation configuration",
|
|
229
|
-
id: "TranslationConfig"
|
|
230
|
-
});
|
|
231
|
-
|
|
232
|
-
// ../commons/src/events/Conditional.ts
|
|
233
|
-
var z5 = __toESM(require("zod/v4"));
|
|
234
|
-
var Conditional = z5.any().describe("JSONSchema").meta({
|
|
235
|
-
description: "JSON schema conditional configuration",
|
|
236
|
-
id: "Conditional"
|
|
237
|
-
});
|
|
238
|
-
var ConditionalType = {
|
|
239
|
-
SHOW: "SHOW",
|
|
240
|
-
ENABLE: "ENABLE",
|
|
241
|
-
DISPLAY_ON_REVIEW: "DISPLAY_ON_REVIEW"
|
|
242
|
-
};
|
|
243
|
-
var ShowConditional = z5.object({
|
|
244
|
-
type: z5.literal(ConditionalType.SHOW),
|
|
245
|
-
conditional: Conditional
|
|
246
|
-
}).describe(
|
|
247
|
-
"If 'SHOW' conditional is defined, the component is shown to the user only if the condition is met"
|
|
248
|
-
);
|
|
249
|
-
var EnableConditional = z5.object({
|
|
250
|
-
type: z5.literal(ConditionalType.ENABLE),
|
|
251
|
-
conditional: Conditional
|
|
252
|
-
}).describe(
|
|
253
|
-
"If 'ENABLE' conditional is defined, the component is enabled only if the condition is met"
|
|
254
|
-
);
|
|
255
|
-
var ActionConditional = z5.discriminatedUnion("type", [
|
|
256
|
-
// Action can be shown / hidden
|
|
257
|
-
ShowConditional,
|
|
258
|
-
// Action can be shown to the user in the list but as disabled
|
|
259
|
-
EnableConditional
|
|
260
|
-
]).meta({
|
|
261
|
-
id: "ActionConditional",
|
|
262
|
-
description: "Conditional gating whether an action is shown (SHOW) or enabled (ENABLE). When omitted from an action, the action is shown and enabled for everyone."
|
|
263
|
-
});
|
|
264
|
-
var DisplayOnReviewConditional = z5.object({
|
|
265
|
-
type: z5.literal(ConditionalType.DISPLAY_ON_REVIEW),
|
|
266
|
-
conditional: Conditional
|
|
267
|
-
}).describe(
|
|
268
|
-
"If 'DISPLAY_ON_REVIEW' conditional is defined, the component is shown on the review page only if both the 'DISPLAY_ON_REVIEW' and 'SHOW' conditions are met. This should only be used for fields within declaration forms, as they are the only ones with review pages."
|
|
269
|
-
);
|
|
270
|
-
var FieldConditional = z5.discriminatedUnion("type", [
|
|
271
|
-
// Field input can be shown / hidden
|
|
272
|
-
ShowConditional,
|
|
273
|
-
// Field input can be shown to the user but as disabled
|
|
274
|
-
EnableConditional,
|
|
275
|
-
// Field output can be shown / hidden on the review page
|
|
276
|
-
DisplayOnReviewConditional
|
|
277
|
-
]).meta({
|
|
278
|
-
id: "FieldConditional",
|
|
279
|
-
description: "Conditional gating whether a form field is shown (SHOW), enabled (ENABLE), or displayed on the review page (DISPLAY_ON_REVIEW). When omitted, the field is shown and enabled for everyone, and is displayed on review whenever it has a value."
|
|
280
|
-
});
|
|
281
|
-
|
|
282
|
-
// ../commons/src/events/Flag.ts
|
|
283
|
-
var InherentFlags = {
|
|
284
|
-
INCOMPLETE: "incomplete",
|
|
285
|
-
REJECTED: "rejected",
|
|
286
|
-
CORRECTION_REQUESTED: "correction-requested",
|
|
287
|
-
POTENTIAL_DUPLICATE: "potential-duplicate",
|
|
288
|
-
/**
|
|
289
|
-
* This flag is set by the Edit-action and removed after the declaration or registration.
|
|
290
|
-
* A record should never stay with the EDIT_IN_PROGRESS flag, since it should always be declared or registered right after.
|
|
291
|
-
*
|
|
292
|
-
* We only use this flag to determine that a NOTIFY, DECLARE or REGISTER action is allowed next.
|
|
293
|
-
*/
|
|
294
|
-
EDIT_IN_PROGRESS: "edit-in-progress",
|
|
295
|
-
SEALED: "sealed"
|
|
296
|
-
};
|
|
297
|
-
var actionFlagPattern;
|
|
298
|
-
function getActionFlagPattern() {
|
|
299
|
-
actionFlagPattern ??= new RegExp(
|
|
300
|
-
`^(${Object.values(ActionType).join("|").toLowerCase()}):(${Object.values(
|
|
301
|
-
ActionStatus
|
|
302
|
-
).join("|").toLowerCase()})$`
|
|
303
|
-
);
|
|
304
|
-
return actionFlagPattern;
|
|
305
|
-
}
|
|
306
|
-
var ActionFlag = z6.string().refine((value) => getActionFlagPattern().test(value), {
|
|
307
|
-
message: "Flag must be in the format ActionType:ActionStatus (lowerCase)"
|
|
308
|
-
});
|
|
309
|
-
var CustomFlag = z6.string().refine((val) => !Object.values(InherentFlags).includes(val), {
|
|
310
|
-
message: `Custom flag cannot be one of the inherent flags: ${Object.values(
|
|
311
|
-
InherentFlags
|
|
312
|
-
).join(", ")}`
|
|
313
|
-
}).refine((val) => !ActionFlag.safeParse(val).success, {
|
|
314
|
-
message: "Custom flag cannot match the ActionFlag pattern (ActionType:ActionStatus)."
|
|
315
|
-
}).describe("Custom flag identifier defined by the country config.");
|
|
316
|
-
var Flag = ActionFlag.or(z6.enum(InherentFlags)).or(CustomFlag);
|
|
317
|
-
var ContainsFlags = z6.object({
|
|
318
|
-
anyOf: z6.array(Flag).optional(),
|
|
319
|
-
noneOf: z6.array(Flag).optional(),
|
|
320
|
-
allOf: z6.array(Flag).optional()
|
|
321
|
-
}).meta({
|
|
322
|
-
id: "ContainsFlags"
|
|
323
|
-
});
|
|
324
|
-
var FlagConfig = z6.object({
|
|
325
|
-
id: CustomFlag,
|
|
326
|
-
requiresAction: z6.boolean().describe(
|
|
327
|
-
"Indicates if this flag expects an action to be performed to be cleared."
|
|
328
|
-
),
|
|
329
|
-
label: TranslationConfig.describe("Human readable label of the flag.")
|
|
330
|
-
}).meta({
|
|
331
|
-
id: "FlagConfig",
|
|
332
|
-
description: "Configuration for a custom flag that can be added to or removed from records by event actions."
|
|
333
|
-
});
|
|
334
|
-
var ActionFlagConfig = z6.object({
|
|
335
|
-
id: Flag,
|
|
336
|
-
operation: z6.enum(["add", "remove"]).describe("Operation to perform on the flag."),
|
|
337
|
-
conditional: Conditional.optional().describe(
|
|
338
|
-
"When conditional is met, the operation is performed on the flag. If not provided, the operation is performed unconditionally."
|
|
339
|
-
)
|
|
340
|
-
}).meta({
|
|
341
|
-
id: "ActionFlagConfig",
|
|
342
|
-
description: "Add or remove operation applied to a flag when the parent action is accepted. Optionally gated by a conditional."
|
|
343
|
-
});
|
|
344
|
-
|
|
345
99
|
// ../commons/src/scopes.ts
|
|
346
|
-
var JurisdictionFilter =
|
|
100
|
+
var JurisdictionFilter = z3.enum(["administrativeArea", "location", "all"]).describe(
|
|
347
101
|
"Filters based on user jurisdiction relative to their office location in hierarchy."
|
|
348
102
|
);
|
|
349
|
-
var UserFilter =
|
|
350
|
-
var RecordScopeTypeV2 =
|
|
103
|
+
var UserFilter = z3.enum(["user"]).describe("Filters based on the user. Limits to self.");
|
|
104
|
+
var RecordScopeTypeV2 = z3.enum([
|
|
351
105
|
"record.search",
|
|
352
106
|
"record.create",
|
|
353
107
|
"record.read",
|
|
@@ -365,7 +119,7 @@ var RecordScopeTypeV2 = z7.enum([
|
|
|
365
119
|
"record.unassign-others",
|
|
366
120
|
"record.custom-action"
|
|
367
121
|
]);
|
|
368
|
-
var PlainScopeType =
|
|
122
|
+
var PlainScopeType = z3.enum([
|
|
369
123
|
// Misc. system scopes
|
|
370
124
|
"bypassratelimit",
|
|
371
125
|
"record.reindex",
|
|
@@ -373,6 +127,7 @@ var PlainScopeType = z7.enum([
|
|
|
373
127
|
"integration.create",
|
|
374
128
|
"record.import",
|
|
375
129
|
"config.update-all",
|
|
130
|
+
"location.edit",
|
|
376
131
|
"attachment.upload",
|
|
377
132
|
"profile.electronic-signature",
|
|
378
133
|
"user.read-only-my-audit",
|
|
@@ -384,15 +139,15 @@ var PlainScopeType = z7.enum([
|
|
|
384
139
|
"record.confirm-registration",
|
|
385
140
|
"record.reject-registration"
|
|
386
141
|
]);
|
|
387
|
-
var scopeByEvent =
|
|
142
|
+
var scopeByEvent = z3.preprocess(
|
|
388
143
|
(val) => val === void 0 ? void 0 : [val].flat(),
|
|
389
|
-
|
|
144
|
+
z3.array(z3.string()).optional()
|
|
390
145
|
).describe("Event type, e.g. birth, death");
|
|
391
|
-
var userRole =
|
|
146
|
+
var userRole = z3.preprocess(
|
|
392
147
|
(val) => val === void 0 ? void 0 : [val].flat(),
|
|
393
|
-
|
|
148
|
+
z3.array(z3.string()).optional()
|
|
394
149
|
).describe("User role, e.g. admin, field agent");
|
|
395
|
-
var scopeOptionsPlaceEvent =
|
|
150
|
+
var scopeOptionsPlaceEvent = z3.object({
|
|
396
151
|
event: scopeByEvent,
|
|
397
152
|
placeOfEvent: JurisdictionFilter.optional()
|
|
398
153
|
}).describe("Options applicable to all record scopes.");
|
|
@@ -404,37 +159,36 @@ var scopeOptionsDeclaredOrNotified = scopeOptionsPlaceEvent.extend({
|
|
|
404
159
|
}).describe("Options applicable to actions that may take place after DECLARE");
|
|
405
160
|
var AllRecordScopeOptions = scopeOptionsDeclaredOrNotified.extend({
|
|
406
161
|
registeredIn: JurisdictionFilter.optional(),
|
|
407
|
-
registeredBy: UserFilter.optional()
|
|
408
|
-
flags: ContainsFlags.optional()
|
|
162
|
+
registeredBy: UserFilter.optional()
|
|
409
163
|
}).describe(
|
|
410
164
|
"Options applicable to actions that may take place after REGISTER, with full filtering capabilities."
|
|
411
165
|
);
|
|
412
166
|
var CustomActionScopeOptions = AllRecordScopeOptions.extend({
|
|
413
|
-
customActionTypes:
|
|
167
|
+
customActionTypes: z3.preprocess(
|
|
414
168
|
(val) => val === void 0 ? void 0 : [val].flat(),
|
|
415
|
-
|
|
169
|
+
z3.array(z3.string()).optional()
|
|
416
170
|
).describe("Allowed custom action types")
|
|
417
171
|
});
|
|
418
|
-
var AccessLevelOptions =
|
|
172
|
+
var AccessLevelOptions = z3.object({
|
|
419
173
|
accessLevel: JurisdictionFilter.optional()
|
|
420
174
|
});
|
|
421
175
|
var AllUserScopeOptions = AccessLevelOptions.extend({
|
|
422
176
|
role: userRole.optional()
|
|
423
177
|
});
|
|
424
|
-
var WorkqueueOrDashboardOptions =
|
|
425
|
-
ids:
|
|
178
|
+
var WorkqueueOrDashboardOptions = z3.object({
|
|
179
|
+
ids: z3.preprocess(
|
|
426
180
|
(val) => val === void 0 ? void 0 : [val].flat(),
|
|
427
|
-
|
|
181
|
+
z3.array(z3.string())
|
|
428
182
|
).describe("Must contain a list of workqueue or dashboard ids.")
|
|
429
183
|
});
|
|
430
|
-
var AllScopeOptions =
|
|
184
|
+
var AllScopeOptions = z3.object({
|
|
431
185
|
...AllRecordScopeOptions.shape,
|
|
432
186
|
...AccessLevelOptions.shape,
|
|
433
187
|
...AllUserScopeOptions.shape,
|
|
434
188
|
...WorkqueueOrDashboardOptions.shape
|
|
435
189
|
});
|
|
436
190
|
var ScopeOptionKey = AllScopeOptions.keyof();
|
|
437
|
-
var ResolvedScopeOptionsPlaceEvent =
|
|
191
|
+
var ResolvedScopeOptionsPlaceEvent = z3.object({
|
|
438
192
|
event: scopeByEvent,
|
|
439
193
|
placeOfEvent: UUID.nullish()
|
|
440
194
|
}).describe(
|
|
@@ -442,16 +196,15 @@ var ResolvedScopeOptionsPlaceEvent = z7.object({
|
|
|
442
196
|
);
|
|
443
197
|
var ResolvedScopeOptionsDeclared = ResolvedScopeOptionsPlaceEvent.extend({
|
|
444
198
|
notifiedIn: UUID.nullish(),
|
|
445
|
-
notifiedBy:
|
|
199
|
+
notifiedBy: z3.string().optional(),
|
|
446
200
|
declaredIn: UUID.nullish(),
|
|
447
|
-
declaredBy:
|
|
201
|
+
declaredBy: z3.string().optional()
|
|
448
202
|
}).describe(
|
|
449
203
|
"Resolved options applicable to actions that may take place after DECLARE, with location ID and user ID instead of filters."
|
|
450
204
|
);
|
|
451
205
|
var ResolvedScopeOptionsFull = ResolvedScopeOptionsDeclared.extend({
|
|
452
206
|
registeredIn: UUID.nullish(),
|
|
453
|
-
registeredBy:
|
|
454
|
-
flags: ContainsFlags.optional()
|
|
207
|
+
registeredBy: z3.string().optional()
|
|
455
208
|
}).describe(
|
|
456
209
|
"Resolved options applicable to actions that may take place after REGISTER, with full filtering capabilities and location/user IDs instead of filters."
|
|
457
210
|
);
|
|
@@ -476,38 +229,38 @@ var ScopesWithFullOptions = RecordScopeTypeV2.extract([
|
|
|
476
229
|
"record.unassign-others"
|
|
477
230
|
]);
|
|
478
231
|
var ScopeOptionsPrintCertifiedCopies = AllRecordScopeOptions.extend({
|
|
479
|
-
templates:
|
|
232
|
+
templates: z3.preprocess(
|
|
480
233
|
(val) => val === void 0 ? void 0 : [val].flat(),
|
|
481
|
-
|
|
234
|
+
z3.array(z3.string()).optional()
|
|
482
235
|
).describe(
|
|
483
236
|
"Template IDs for certified copies. Controls which certificate templates are returned to the client via the config service. Certificate printing is a client-side operation \u2014 this option is not validated when the printCertificate action is submitted."
|
|
484
237
|
)
|
|
485
238
|
});
|
|
486
|
-
var RecordScopeV2 =
|
|
487
|
-
|
|
239
|
+
var RecordScopeV2 = z3.discriminatedUnion("type", [
|
|
240
|
+
z3.object({
|
|
488
241
|
type: ScopesWithPlaceEventOptions,
|
|
489
242
|
options: scopeOptionsPlaceEvent.optional()
|
|
490
243
|
}),
|
|
491
|
-
|
|
244
|
+
z3.object({
|
|
492
245
|
type: ScopesWithDeclaredOptions,
|
|
493
246
|
options: scopeOptionsDeclaredOrNotified.optional()
|
|
494
247
|
}),
|
|
495
|
-
|
|
248
|
+
z3.object({
|
|
496
249
|
type: ScopesWithFullOptions,
|
|
497
250
|
options: AllRecordScopeOptions.optional()
|
|
498
251
|
}),
|
|
499
|
-
|
|
500
|
-
type:
|
|
252
|
+
z3.object({
|
|
253
|
+
type: z3.literal("record.custom-action"),
|
|
501
254
|
options: CustomActionScopeOptions.optional()
|
|
502
255
|
}),
|
|
503
|
-
|
|
504
|
-
type:
|
|
256
|
+
z3.object({
|
|
257
|
+
type: z3.literal("record.print-certified-copies"),
|
|
505
258
|
options: ScopeOptionsPrintCertifiedCopies.optional()
|
|
506
259
|
})
|
|
507
260
|
]).describe(
|
|
508
261
|
"Scopes used to check user's permission to perform actions on a record."
|
|
509
262
|
);
|
|
510
|
-
var SystemScopeType =
|
|
263
|
+
var SystemScopeType = z3.enum([
|
|
511
264
|
"organisation.read-locations",
|
|
512
265
|
"user.read",
|
|
513
266
|
"user.create",
|
|
@@ -521,12 +274,12 @@ var UserScopeType = SystemScopeType.extract([
|
|
|
521
274
|
"user.search"
|
|
522
275
|
]);
|
|
523
276
|
var ScopesWithRoleOption = UserScopeType.extract(["user.edit", "user.create"]);
|
|
524
|
-
var UserScopeV2 =
|
|
525
|
-
|
|
277
|
+
var UserScopeV2 = z3.discriminatedUnion("type", [
|
|
278
|
+
z3.object({
|
|
526
279
|
type: ScopesWithRoleOption,
|
|
527
280
|
options: AllUserScopeOptions.optional()
|
|
528
281
|
}),
|
|
529
|
-
|
|
282
|
+
z3.object({
|
|
530
283
|
type: UserScopeType.extract(["user.read", "user.search"]),
|
|
531
284
|
options: AccessLevelOptions.optional()
|
|
532
285
|
})
|
|
@@ -546,44 +299,44 @@ function scopeUsesPrintCertifiedCopiesOptions(scope) {
|
|
|
546
299
|
function isCustomActionScope(scope) {
|
|
547
300
|
return scope.type === "record.custom-action";
|
|
548
301
|
}
|
|
549
|
-
var ResolvedRecordScopeV2 =
|
|
550
|
-
|
|
302
|
+
var ResolvedRecordScopeV2 = z3.discriminatedUnion("type", [
|
|
303
|
+
z3.object({
|
|
551
304
|
type: ScopesWithPlaceEventOptions,
|
|
552
305
|
options: ResolvedScopeOptionsPlaceEvent.optional()
|
|
553
306
|
}),
|
|
554
|
-
|
|
307
|
+
z3.object({
|
|
555
308
|
type: ScopesWithDeclaredOptions,
|
|
556
309
|
options: ResolvedScopeOptionsDeclared.optional()
|
|
557
310
|
}),
|
|
558
|
-
|
|
311
|
+
z3.object({
|
|
559
312
|
type: ScopesWithFullOptions,
|
|
560
313
|
options: ResolvedScopeOptionsFull.optional()
|
|
561
314
|
}),
|
|
562
|
-
|
|
563
|
-
type:
|
|
315
|
+
z3.object({
|
|
316
|
+
type: z3.literal("record.print-certified-copies"),
|
|
564
317
|
options: ResolvedScopeOptionsFull.extend({
|
|
565
|
-
templates:
|
|
318
|
+
templates: z3.array(z3.string()).optional()
|
|
566
319
|
}).optional()
|
|
567
320
|
})
|
|
568
321
|
]).describe("Resolved scope with location/user IDs instead of filters.");
|
|
569
|
-
var Scope2 =
|
|
570
|
-
|
|
322
|
+
var Scope2 = z3.discriminatedUnion("type", [
|
|
323
|
+
z3.object({ type: PlainScopeType }),
|
|
571
324
|
...RecordScopeV2.options,
|
|
572
325
|
...UserScopeV2.options,
|
|
573
|
-
|
|
574
|
-
type:
|
|
326
|
+
z3.object({
|
|
327
|
+
type: z3.literal("organisation.read-locations"),
|
|
575
328
|
options: AccessLevelOptions.optional()
|
|
576
329
|
}),
|
|
577
|
-
|
|
578
|
-
type:
|
|
330
|
+
z3.object({
|
|
331
|
+
type: z3.literal("workqueue"),
|
|
579
332
|
options: WorkqueueOrDashboardOptions
|
|
580
333
|
}),
|
|
581
|
-
|
|
582
|
-
type:
|
|
334
|
+
z3.object({
|
|
335
|
+
type: z3.literal("dashboard.view"),
|
|
583
336
|
options: WorkqueueOrDashboardOptions
|
|
584
337
|
})
|
|
585
338
|
]);
|
|
586
|
-
var ScopeType2 =
|
|
339
|
+
var ScopeType2 = z3.enum([
|
|
587
340
|
...SystemScopeType.options,
|
|
588
341
|
...RecordScopeTypeV2.options,
|
|
589
342
|
...PlainScopeType.options,
|
|
@@ -598,12 +351,11 @@ var unflattenScope = (input) => {
|
|
|
598
351
|
const { type, ...options } = input;
|
|
599
352
|
return { type, options };
|
|
600
353
|
};
|
|
601
|
-
var EncodedScope2 =
|
|
354
|
+
var EncodedScope2 = z3.string().brand("EncodedScope");
|
|
602
355
|
var encodeScope = (scope) => {
|
|
603
356
|
const flattened = flattenScope(scope);
|
|
604
357
|
return qs.stringify(flattened, {
|
|
605
358
|
arrayFormat: "comma",
|
|
606
|
-
commaRoundTrip: true,
|
|
607
359
|
allowDots: true,
|
|
608
360
|
addQueryPrefix: false,
|
|
609
361
|
encode: false
|
|
@@ -685,4 +437,4 @@ function defineRoles(roles) {
|
|
|
685
437
|
}
|
|
686
438
|
|
|
687
439
|
// src/scopes/index.ts
|
|
688
|
-
|
|
440
|
+
z4.globalRegistry.clear();
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opencrvs/toolkit",
|
|
3
|
-
"version": "2.1.0-rc.
|
|
3
|
+
"version": "2.1.0-rc.83d4009",
|
|
4
4
|
"description": "OpenCRVS toolkit for building country configurations",
|
|
5
5
|
"license": "MPL-2.0",
|
|
6
6
|
"bin": {
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"ajv-formats": "^3.0.1",
|
|
34
34
|
"date-fns": "^2.28.0",
|
|
35
35
|
"dotenv": "^16.4.5",
|
|
36
|
-
"glob": "11.0
|
|
36
|
+
"glob": "11.1.0",
|
|
37
37
|
"handlebars": "^4.7.8",
|
|
38
38
|
"js-yaml": "4.1.0",
|
|
39
39
|
"jwt-decode": "^3.0.0",
|
|
@@ -58,8 +58,7 @@
|
|
|
58
58
|
"@types/prompts": "^2.4.9",
|
|
59
59
|
"@types/ssh2": "^1.15.5",
|
|
60
60
|
"@types/uuid": "^9.0.3",
|
|
61
|
-
"esbuild": "^0.24.0"
|
|
62
|
-
"typescript": "6.0.3"
|
|
61
|
+
"esbuild": "^0.24.0"
|
|
63
62
|
},
|
|
64
63
|
"moduleNameMapper": {
|
|
65
64
|
"@opencrvs/commons/events": "@opencrvs/commons/build/dist/common/events/index.js",
|
package/tsconfig.tsbuildinfo
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"root":["./src/cli.ts","./src/api/index.ts","./src/application-config/index.ts","./src/conditionals/index.ts","./src/environment/custom-types.ts","./src/environment/derived-variables.ts","./src/environment/editor-questions.ts","./src/environment/git.ts","./src/environment/github.ts","./src/environment/index.ts","./src/environment/logger.ts","./src/environment/manage-users.ts","./src/environment/questions-helper.ts","./src/environment/questions.ts","./src/environment/setup-environment.ts","./src/environment/ssh-keygen.ts","./src/environment/swarm-to-k8s.ts","./src/environment/templates.ts","./src/environment/update-workflows.ts","./src/environment/users.ts","./src/environment/utils.ts","./src/events/deduplication.ts","./src/events/index.ts","./src/migrations/v2.0/add-birth-certificate-issuance-flag.ts","./src/migrations/v2.0/add-resend-invite-notification.ts","./src/migrations/v2.0/checkout-upstream-files.ts","./src/migrations/v2.0/convert-config-files-to-ts.ts","./src/migrations/v2.0/convert-paragraph-to-heading.ts","./src/migrations/v2.0/create-events-index.ts","./src/migrations/v2.0/delete-infrastructure-directory.ts","./src/migrations/v2.0/fix-accept-requested-registration-function-type.ts","./src/migrations/v2.0/index.ts","./src/migrations/v2.0/make-built-in-validate-actions-custom.ts","./src/migrations/v2.0/merge-infrastructure-directory.ts","./src/migrations/v2.0/migrate-application-config-url.ts","./src/migrations/v2.0/migrate-scopes.ts","./src/migrations/v2.0/migrate-validated-workqueue-status-to-flag.ts","./src/migrations/v2.0/migrate-workqueue-configs.ts","./src/migrations/v2.0/remove-delete-actions.ts","./src/migrations/v2.0/remove-demo-scope.ts","./src/migrations/v2.0/remove-deprecated-imports.ts","./src/migrations/v2.0/remove-fhir-url-helpers.ts","./src/migrations/v2.0/remove-hearth-migrations.ts","./src/migrations/v2.0/remove-old-statistics-service.ts","./src/migrations/v2.0/remove-pending-certification-flag.ts","./src/migrations/v2.0/remove-review-from-register-action.ts","./src/migrations/v2.0/remove-unused-environment-variables.ts","./src/migrations/v2.0/rename-api-paths.ts","./src/migrations/v2.0/rename-location-parent-id.ts","./src/migrations/v2.0/simplify-analytics-precalculations.ts","./src/migrations/v2.0/update-package-json.ts","./src/migrations/v2.1/add-explicit-correction-flags.ts","./src/migrations/v2.1/index.ts","./src/notification/index.ts","./src/scopes/index.ts"],"version":"6.0.3"}
|
|
1
|
+
{"version":"7.0.2","root":["./src/cli.ts","./src/api/index.ts","./src/application-config/index.ts","./src/conditionals/index.ts","./src/environment/custom-types.ts","./src/environment/derived-variables.ts","./src/environment/editor-questions.ts","./src/environment/git.ts","./src/environment/github.ts","./src/environment/index.ts","./src/environment/logger.ts","./src/environment/manage-users.ts","./src/environment/questions-helper.ts","./src/environment/questions.ts","./src/environment/setup-environment.ts","./src/environment/ssh-keygen.ts","./src/environment/swarm-to-k8s.ts","./src/environment/templates.ts","./src/environment/update-workflows.ts","./src/environment/users.ts","./src/environment/utils.ts","./src/events/deduplication.ts","./src/events/index.ts","./src/migrations/v2.0/add-birth-certificate-issuance-flag.ts","./src/migrations/v2.0/add-resend-invite-notification.ts","./src/migrations/v2.0/checkout-upstream-files.ts","./src/migrations/v2.0/convert-config-files-to-ts.ts","./src/migrations/v2.0/convert-paragraph-to-heading.ts","./src/migrations/v2.0/create-events-index.ts","./src/migrations/v2.0/delete-infrastructure-directory.ts","./src/migrations/v2.0/fix-accept-requested-registration-function-type.ts","./src/migrations/v2.0/index.ts","./src/migrations/v2.0/make-built-in-validate-actions-custom.ts","./src/migrations/v2.0/merge-infrastructure-directory.ts","./src/migrations/v2.0/migrate-application-config-url.ts","./src/migrations/v2.0/migrate-scopes.ts","./src/migrations/v2.0/migrate-validated-workqueue-status-to-flag.ts","./src/migrations/v2.0/migrate-workqueue-configs.ts","./src/migrations/v2.0/remove-delete-actions.ts","./src/migrations/v2.0/remove-demo-scope.ts","./src/migrations/v2.0/remove-deprecated-imports.ts","./src/migrations/v2.0/remove-fhir-url-helpers.ts","./src/migrations/v2.0/remove-hearth-migrations.ts","./src/migrations/v2.0/remove-old-statistics-service.ts","./src/migrations/v2.0/remove-pending-certification-flag.ts","./src/migrations/v2.0/remove-review-from-register-action.ts","./src/migrations/v2.0/remove-unused-environment-variables.ts","./src/migrations/v2.0/rename-api-paths.ts","./src/migrations/v2.0/rename-location-parent-id.ts","./src/migrations/v2.0/simplify-analytics-precalculations.ts","./src/migrations/v2.0/update-package-json.ts","./src/migrations/v2.1/add-explicit-correction-flags.ts","./src/migrations/v2.1/index.ts","./src/notification/index.ts","./src/scopes/index.ts"],"packageJsons":["../../node_modules/@hapi/boom/package.json","../../node_modules/@hapi/catbox/node_modules/@hapi/podium/package.json","../../node_modules/@hapi/catbox/package.json","../../node_modules/@hapi/hapi/node_modules/@hapi/podium/package.json","../../node_modules/@hapi/hapi/package.json","../../node_modules/@hapi/mimos/package.json","../../node_modules/@hapi/shot/package.json","../../node_modules/@hapi/statehood/node_modules/@hapi/iron/package.json","../../node_modules/@hapi/statehood/package.json","../../node_modules/@inquirer/checkbox/package.json","../../node_modules/@inquirer/core/package.json","../../node_modules/@inquirer/editor/package.json","../../node_modules/@inquirer/expand/package.json","../../node_modules/@inquirer/external-editor/package.json","../../node_modules/@inquirer/input/package.json","../../node_modules/@inquirer/number/package.json","../../node_modules/@inquirer/password/package.json","../../node_modules/@inquirer/prompts/node_modules/@inquirer/confirm/package.json","../../node_modules/@inquirer/prompts/package.json","../../node_modules/@inquirer/rawlist/package.json","../../node_modules/@inquirer/search/package.json","../../node_modules/@inquirer/select/package.json","../../node_modules/@inquirer/type/package.json","../../node_modules/@octokit/graphql/package.json","../../node_modules/@octokit/openapi-types/package.json","../../node_modules/@octokit/request-error/package.json","../../node_modules/@octokit/request/package.json","../../node_modules/@octokit/types/package.json","../../node_modules/@trpc/server/http/package.json","../../node_modules/@trpc/server/observable/package.json","../../node_modules/@trpc/server/package.json","../../node_modules/@trpc/server/unstable-core-do-not-import/package.json","../../node_modules/@ts-morph/common/package.json","../../node_modules/@types/js-yaml/package.json","../../node_modules/@types/libsodium-wrappers/package.json","../../node_modules/@types/lodash/package.json","../../node_modules/@types/node-fetch/package.json","../../node_modules/@types/node/package.json","../../node_modules/@types/prompts/package.json","../../node_modules/assert/package.json","../../node_modules/before-after-hook/package.json","../../node_modules/buffer/package.json","../../node_modules/colorette/package.json","../../node_modules/dotenv/package.json","../../node_modules/events/package.json","../../node_modules/form-data/package.json","../../node_modules/handlebars/package.json","../../node_modules/joi/package.json","../../node_modules/js-yaml/package.json","../../node_modules/kleur/package.json","../../node_modules/libsodium-wrappers/package.json","../../node_modules/lodash/package.json","../../node_modules/minipass/dist/commonjs/package.json","../../node_modules/minipass/package.json","../../node_modules/node-fetch/package.json","../../node_modules/pino-pretty/node_modules/pino-abstract-transport/package.json","../../node_modules/pino-pretty/package.json","../../node_modules/pino-std-serializers/package.json","../../node_modules/pino/package.json","../../node_modules/process/package.json","../../node_modules/prompts/package.json","../../node_modules/punycode/package.json","../../node_modules/querystring/package.json","../../node_modules/sonic-boom/package.json","../../node_modules/string_decoder/package.json","../../node_modules/superjson/package.json","../../node_modules/ts-morph/package.json","../../node_modules/typescript/package.json","../../node_modules/undici-types/package.json","../../node_modules/util/package.json","../../node_modules/zod-openapi/package.json","../../node_modules/zod/package.json","../../node_modules/zod/v4/classic/package.json","../../node_modules/zod/v4/core/package.json","../../node_modules/zod/v4/locales/package.json","../../node_modules/zod/v4/package.json","../commons/node_modules/ajv/package.json","../commons/package.json","../events/package.json","./node_modules/@octokit/core/package.json","./node_modules/@trpc/client/package.json","./node_modules/@types/node/package.json","./node_modules/@types/ssh2/package.json","./node_modules/glob/dist/commonjs/package.json","./node_modules/glob/package.json","./node_modules/kleur/package.json","./node_modules/lru-cache/dist/commonjs/package.json","./node_modules/lru-cache/package.json","./node_modules/minimatch/dist/commonjs/package.json","./node_modules/minimatch/package.json","./node_modules/path-scurry/dist/commonjs/package.json","./node_modules/path-scurry/package.json","./package.json"],"missingPackageJsons":["../../node_modules/@hapi/boom/lib/package.json","../../node_modules/@hapi/catbox/lib/package.json","../../node_modules/@hapi/catbox/node_modules/@hapi/podium/lib/package.json","../../node_modules/@hapi/hapi/lib/package.json","../../node_modules/@hapi/hapi/lib/types/package.json","../../node_modules/@hapi/hapi/lib/types/server/package.json","../../node_modules/@hapi/hapi/node_modules/@hapi/boom/package.json","../../node_modules/@hapi/hapi/node_modules/@hapi/catbox/package.json","../../node_modules/@hapi/hapi/node_modules/@hapi/mimos/package.json","../../node_modules/@hapi/hapi/node_modules/@hapi/podium/lib/package.json","../../node_modules/@hapi/hapi/node_modules/@hapi/shot/package.json","../../node_modules/@hapi/hapi/node_modules/@hapi/statehood/package.json","../../node_modules/@hapi/hapi/node_modules/http/package.json","../../node_modules/@hapi/hapi/node_modules/https/package.json","../../node_modules/@hapi/hapi/node_modules/joi/package.json","../../node_modules/@hapi/hapi/node_modules/stream/package.json","../../node_modules/@hapi/hapi/node_modules/url/package.json","../../node_modules/@hapi/hapi/node_modules/zlib/package.json","../../node_modules/@hapi/mimos/lib/package.json","../../node_modules/@hapi/shot/lib/package.json","../../node_modules/@hapi/statehood/lib/package.json","../../node_modules/@hapi/statehood/node_modules/@hapi/boom/package.json","../../node_modules/@hapi/statehood/node_modules/@hapi/iron/lib/package.json","../../node_modules/@inquirer/checkbox/dist/package.json","../../node_modules/@inquirer/core/dist/lib/package.json","../../node_modules/@inquirer/core/dist/lib/pagination/package.json","../../node_modules/@inquirer/core/dist/package.json","../../node_modules/@inquirer/core/node_modules/@inquirer/type/package.json","../../node_modules/@inquirer/editor/dist/package.json","../../node_modules/@inquirer/expand/dist/package.json","../../node_modules/@inquirer/external-editor/dist/package.json","../../node_modules/@inquirer/input/dist/package.json","../../node_modules/@inquirer/number/dist/package.json","../../node_modules/@inquirer/password/dist/package.json","../../node_modules/@inquirer/prompts/dist/package.json","../../node_modules/@inquirer/prompts/node_modules/@inquirer/checkbox/package.json","../../node_modules/@inquirer/prompts/node_modules/@inquirer/confirm/dist/package.json","../../node_modules/@inquirer/prompts/node_modules/@inquirer/core/package.json","../../node_modules/@inquirer/prompts/node_modules/@inquirer/editor/package.json","../../node_modules/@inquirer/prompts/node_modules/@inquirer/expand/package.json","../../node_modules/@inquirer/prompts/node_modules/@inquirer/input/package.json","../../node_modules/@inquirer/prompts/node_modules/@inquirer/number/package.json","../../node_modules/@inquirer/prompts/node_modules/@inquirer/password/package.json","../../node_modules/@inquirer/prompts/node_modules/@inquirer/rawlist/package.json","../../node_modules/@inquirer/prompts/node_modules/@inquirer/search/package.json","../../node_modules/@inquirer/prompts/node_modules/@inquirer/select/package.json","../../node_modules/@inquirer/prompts/node_modules/@inquirer/type/package.json","../../node_modules/@inquirer/prompts/node_modules/@types/node/package.json","../../node_modules/@inquirer/rawlist/dist/package.json","../../node_modules/@inquirer/search/dist/package.json","../../node_modules/@inquirer/select/dist/package.json","../../node_modules/@inquirer/type/dist/package.json","../../node_modules/@octokit/graphql/dist-types/package.json","../../node_modules/@octokit/request-error/dist-types/package.json","../../node_modules/@octokit/request/dist-types/package.json","../../node_modules/@octokit/types/dist-types/generated/package.json","../../node_modules/@octokit/types/dist-types/package.json","../../node_modules/@opencrvs/events/build/types/router/package.json","../../node_modules/@trpc/server/dist/observable/package.json","../../node_modules/@trpc/server/dist/package.json","../../node_modules/@ts-morph/common/lib/package.json","../../node_modules/@types/assert/package.json","../../node_modules/@types/async_hooks/package.json","../../node_modules/@types/child_process/package.json","../../node_modules/@types/cluster/package.json","../../node_modules/@types/constants/package.json","../../node_modules/@types/crypto/package.json","../../node_modules/@types/dgram/package.json","../../node_modules/@types/diagnostics_channel/package.json","../../node_modules/@types/dns/package.json","../../node_modules/@types/dns/promises/package.json","../../node_modules/@types/domain/package.json","../../node_modules/@types/events/package.json","../../node_modules/@types/fs/package.json","../../node_modules/@types/fs/promises/package.json","../../node_modules/@types/http/package.json","../../node_modules/@types/http2/package.json","../../node_modules/@types/https/package.json","../../node_modules/@types/inspector/package.json","../../node_modules/@types/lodash/common/package.json","../../node_modules/@types/module/package.json","../../node_modules/@types/net/package.json","../../node_modules/@types/opencrvs__events/build/types/router/package.json","../../node_modules/@types/opencrvs__events/package.json","../../node_modules/@types/os/package.json","../../node_modules/@types/path/package.json","../../node_modules/@types/path/posix/package.json","../../node_modules/@types/path/win32/package.json","../../node_modules/@types/perf_hooks/package.json","../../node_modules/@types/process/package.json","../../node_modules/@types/punycode/package.json","../../node_modules/@types/readline/package.json","../../node_modules/@types/readline/promises/package.json","../../node_modules/@types/repl/package.json","../../node_modules/@types/stream/consumers/package.json","../../node_modules/@types/stream/package.json","../../node_modules/@types/stream/promises/package.json","../../node_modules/@types/stream/web/package.json","../../node_modules/@types/string_decoder/package.json","../../node_modules/@types/timers/package.json","../../node_modules/@types/timers/promises/package.json","../../node_modules/@types/tls/package.json","../../node_modules/@types/trace_events/package.json","../../node_modules/@types/tty/package.json","../../node_modules/@types/url/package.json","../../node_modules/@types/util/package.json","../../node_modules/@types/util/types/package.json","../../node_modules/@types/v8/package.json","../../node_modules/@types/vm/package.json","../../node_modules/@types/wasi/package.json","../../node_modules/@types/worker_threads/package.json","../../node_modules/@types/zlib/package.json","../../node_modules/async_hooks/package.json","../../node_modules/child_process/package.json","../../node_modules/cluster/package.json","../../node_modules/constants/package.json","../../node_modules/crypto/package.json","../../node_modules/dgram/package.json","../../node_modules/diagnostics_channel/package.json","../../node_modules/dns/package.json","../../node_modules/dns/promises/package.json","../../node_modules/domain/package.json","../../node_modules/dotenv/lib/package.json","../../node_modules/form-data/node_modules/http/package.json","../../node_modules/form-data/node_modules/stream/package.json","../../node_modules/fs/package.json","../../node_modules/fs/promises/package.json","../../node_modules/handlebars/types/package.json","../../node_modules/http/package.json","../../node_modules/http2/package.json","../../node_modules/https/package.json","../../node_modules/inspector/package.json","../../node_modules/joi/lib/package.json","../../node_modules/module/package.json","../../node_modules/net/package.json","../../node_modules/os/package.json","../../node_modules/path/package.json","../../node_modules/path/posix/package.json","../../node_modules/path/win32/package.json","../../node_modules/perf_hooks/package.json","../../node_modules/pino-pretty/node_modules/colorette/package.json","../../node_modules/pino-pretty/node_modules/pino/package.json","../../node_modules/pino-pretty/node_modules/stream/package.json","../../node_modules/readline/package.json","../../node_modules/readline/promises/package.json","../../node_modules/repl/package.json","../../node_modules/sonic-boom/types/package.json","../../node_modules/stream/consumers/package.json","../../node_modules/stream/package.json","../../node_modules/stream/promises/package.json","../../node_modules/stream/web/package.json","../../node_modules/superjson/dist/package.json","../../node_modules/timers/package.json","../../node_modules/timers/promises/package.json","../../node_modules/tls/package.json","../../node_modules/trace_events/package.json","../../node_modules/ts-morph/lib/package.json","../../node_modules/tty/package.json","../../node_modules/url/package.json","../../node_modules/util/types/package.json","../../node_modules/v8/package.json","../../node_modules/vm/package.json","../../node_modules/wasi/package.json","../../node_modules/worker_threads/package.json","../../node_modules/zlib/package.json","../../node_modules/zod-openapi/dist/package.json","../commons/node_modules/@hapi/hapi/package.json","../commons/node_modules/@types/hapi__hapi/package.json","../commons/node_modules/@types/lodash/package.json","../commons/node_modules/@types/node-fetch/package.json","../commons/node_modules/@types/pino/package.json","../commons/node_modules/@types/zod-openapi/package.json","../commons/node_modules/@types/zod/package.json","../commons/node_modules/@types/zod/v4/package.json","../commons/node_modules/ajv/dist/package.json","../commons/node_modules/ajv/dist/types/json-schema/package.json","../commons/node_modules/ajv/dist/types/package.json","../commons/node_modules/lodash/package.json","../commons/node_modules/node-fetch/package.json","../commons/node_modules/pino/package.json","../commons/node_modules/zod-openapi/package.json","../commons/node_modules/zod/package.json","../commons/node_modules/zod/v4/package.json","./node_modules/@inquirer/prompts/package.json","./node_modules/@octokit/core/dist-types/package.json","./node_modules/@octokit/graphql/package.json","./node_modules/@octokit/request-error/package.json","./node_modules/@octokit/request/package.json","./node_modules/@octokit/types/package.json","./node_modules/@opencrvs/events/build/types/router/package.json","./node_modules/@opencrvs/events/package.json","./node_modules/@trpc/client/dist/package.json","./node_modules/@trpc/client/node_modules/@trpc/server/http/package.json","./node_modules/@trpc/client/node_modules/@trpc/server/observable/package.json","./node_modules/@trpc/client/node_modules/@trpc/server/package.json","./node_modules/@trpc/client/node_modules/@trpc/server/unstable-core-do-not-import/package.json","./node_modules/@trpc/server/http/package.json","./node_modules/@trpc/server/observable/package.json","./node_modules/@trpc/server/package.json","./node_modules/@trpc/server/unstable-core-do-not-import/package.json","./node_modules/@types/assert/package.json","./node_modules/@types/async_hooks/package.json","./node_modules/@types/before-after-hook/package.json","./node_modules/@types/buffer/package.json","./node_modules/@types/child_process/package.json","./node_modules/@types/cluster/package.json","./node_modules/@types/constants/package.json","./node_modules/@types/crypto/package.json","./node_modules/@types/dgram/package.json","./node_modules/@types/diagnostics_channel/package.json","./node_modules/@types/dns/package.json","./node_modules/@types/dns/promises/package.json","./node_modules/@types/domain/package.json","./node_modules/@types/dotenv/package.json","./node_modules/@types/events/package.json","./node_modules/@types/fs/package.json","./node_modules/@types/fs/promises/package.json","./node_modules/@types/handlebars/package.json","./node_modules/@types/http/package.json","./node_modules/@types/http2/package.json","./node_modules/@types/https/package.json","./node_modules/@types/inquirer__prompts/package.json","./node_modules/@types/inspector/package.json","./node_modules/@types/js-yaml/package.json","./node_modules/@types/libsodium-wrappers/package.json","./node_modules/@types/minipass/package.json","./node_modules/@types/module/package.json","./node_modules/@types/net/package.json","./node_modules/@types/node/assert/package.json","./node_modules/@types/node/dns/package.json","./node_modules/@types/node/fs/package.json","./node_modules/@types/node/readline/package.json","./node_modules/@types/node/stream/package.json","./node_modules/@types/node/timers/package.json","./node_modules/@types/octokit__graphql/package.json","./node_modules/@types/octokit__request-error/package.json","./node_modules/@types/octokit__request/package.json","./node_modules/@types/octokit__types/package.json","./node_modules/@types/opencrvs__events/build/types/router/package.json","./node_modules/@types/opencrvs__events/package.json","./node_modules/@types/os/package.json","./node_modules/@types/path/package.json","./node_modules/@types/path/posix/package.json","./node_modules/@types/path/win32/package.json","./node_modules/@types/perf_hooks/package.json","./node_modules/@types/process/package.json","./node_modules/@types/prompts/package.json","./node_modules/@types/punycode/package.json","./node_modules/@types/querystring/package.json","./node_modules/@types/readline/package.json","./node_modules/@types/readline/promises/package.json","./node_modules/@types/repl/package.json","./node_modules/@types/stream/consumers/package.json","./node_modules/@types/stream/package.json","./node_modules/@types/stream/promises/package.json","./node_modules/@types/stream/web/package.json","./node_modules/@types/string_decoder/package.json","./node_modules/@types/superjson/package.json","./node_modules/@types/timers/package.json","./node_modules/@types/timers/promises/package.json","./node_modules/@types/tls/package.json","./node_modules/@types/trace_events/package.json","./node_modules/@types/trpc__server/http/package.json","./node_modules/@types/trpc__server/observable/package.json","./node_modules/@types/trpc__server/package.json","./node_modules/@types/trpc__server/unstable-core-do-not-import/package.json","./node_modules/@types/ts-morph/package.json","./node_modules/@types/tty/package.json","./node_modules/@types/undici-types/package.json","./node_modules/@types/url/package.json","./node_modules/@types/util/package.json","./node_modules/@types/util/types/package.json","./node_modules/@types/v8/package.json","./node_modules/@types/vm/package.json","./node_modules/@types/wasi/package.json","./node_modules/@types/worker_threads/package.json","./node_modules/@types/zlib/package.json","./node_modules/@types/zod/package.json","./node_modules/@types/zod/v4/package.json","./node_modules/assert/package.json","./node_modules/async_hooks/package.json","./node_modules/before-after-hook/package.json","./node_modules/buffer/package.json","./node_modules/child_process/package.json","./node_modules/cluster/package.json","./node_modules/constants/package.json","./node_modules/crypto/package.json","./node_modules/dgram/package.json","./node_modules/diagnostics_channel/package.json","./node_modules/dns/package.json","./node_modules/dns/promises/package.json","./node_modules/domain/package.json","./node_modules/dotenv/package.json","./node_modules/events/package.json","./node_modules/fs/package.json","./node_modules/fs/promises/package.json","./node_modules/handlebars/package.json","./node_modules/http/package.json","./node_modules/http2/package.json","./node_modules/https/package.json","./node_modules/inspector/package.json","./node_modules/js-yaml/package.json","./node_modules/libsodium-wrappers/package.json","./node_modules/minipass/package.json","./node_modules/module/package.json","./node_modules/net/package.json","./node_modules/os/package.json","./node_modules/path/package.json","./node_modules/path/posix/package.json","./node_modules/path/win32/package.json","./node_modules/perf_hooks/package.json","./node_modules/process/package.json","./node_modules/prompts/package.json","./node_modules/punycode/package.json","./node_modules/querystring/package.json","./node_modules/readline/package.json","./node_modules/readline/promises/package.json","./node_modules/repl/package.json","./node_modules/ssh2/package.json","./node_modules/stream/consumers/package.json","./node_modules/stream/package.json","./node_modules/stream/promises/package.json","./node_modules/stream/web/package.json","./node_modules/string_decoder/package.json","./node_modules/superjson/package.json","./node_modules/timers/package.json","./node_modules/timers/promises/package.json","./node_modules/tls/package.json","./node_modules/trace_events/package.json","./node_modules/ts-morph/package.json","./node_modules/tty/package.json","./node_modules/typescript/package.json","./node_modules/undici-types/package.json","./node_modules/url/package.json","./node_modules/util/package.json","./node_modules/util/types/package.json","./node_modules/v8/package.json","./node_modules/vm/package.json","./node_modules/wasi/package.json","./node_modules/worker_threads/package.json","./node_modules/zlib/package.json","./node_modules/zod/package.json","./node_modules/zod/v4/package.json"]}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Deliberately dependency-free (aside from language builtins) so that files
|
|
3
|
-
* like Flag.ts can depend on ActionStatus without being pulled into the
|
|
4
|
-
* commons/scopes.ts <-> commons/authentication.ts import cycle that
|
|
5
|
-
* ActionDocument.ts participates in (it imports TokenUserType from
|
|
6
|
-
* '../authentication').
|
|
7
|
-
*/
|
|
8
|
-
export declare const ActionStatus: {
|
|
9
|
-
readonly Requested: "Requested";
|
|
10
|
-
readonly Accepted: "Accepted";
|
|
11
|
-
readonly Rejected: "Rejected";
|
|
12
|
-
};
|
|
13
|
-
export type ActionStatus = keyof typeof ActionStatus;
|
|
14
|
-
//# sourceMappingURL=ActionStatus.d.ts.map
|