@opencrvs/toolkit 2.1.0-rc.edf2492 → 2.1.0-rc.f29a266
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 +1 -0
- package/create-countryconfig/index.js +114 -66
- package/create-countryconfig/node_modules/.bin/degit +21 -0
- package/create-countryconfig/package.json +4 -1
- package/dist/application-config/index.js +256 -198
- package/dist/cli.js +195 -73
- package/dist/commons/api/router.d.ts +3924 -3326
- 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 +16 -5
- package/dist/commons/events/ActionConfig.d.ts +105 -105
- package/dist/commons/events/ActionDocument.d.ts +121 -127
- package/dist/commons/events/ActionInput.d.ts +4 -10
- package/dist/commons/events/ActionStatus.d.ts +14 -0
- package/dist/commons/events/ActionType.d.ts +62 -62
- package/dist/commons/events/AdvancedSearchConfig.d.ts +525 -507
- package/dist/commons/events/AuditLog.d.ts +189 -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 -590
- package/dist/commons/events/Draft.d.ts +37 -37
- package/dist/commons/events/DynamicFieldValue.d.ts +9 -9
- package/dist/commons/events/EventConfig.d.ts +8 -5
- package/dist/commons/events/EventDocument.d.ts +50 -50
- package/dist/commons/events/EventIndex.d.ts +49 -72
- package/dist/commons/events/EventMetadata.d.ts +40 -40
- package/dist/commons/events/FieldConfig.d.ts +419 -389
- package/dist/commons/events/FieldType.d.ts +51 -51
- package/dist/commons/events/FieldTypeMapping.d.ts +90 -90
- package/dist/commons/events/FieldValue.d.ts +14 -14
- package/dist/commons/events/Flag.d.ts +57 -15
- package/dist/commons/events/PlainDate.d.ts +8 -0
- package/dist/commons/events/SummaryConfig.d.ts +249 -0
- package/dist/commons/events/TemplateConfig.d.ts +1 -1
- package/dist/commons/events/WorkqueueColumnConfig.d.ts +40 -40
- package/dist/commons/events/WorkqueueConfig.d.ts +817 -814
- package/dist/commons/events/deduplication.d.ts +1 -1
- package/dist/commons/events/event.d.ts +14 -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 +241 -12
- package/dist/commons/events/mocks.test.utils.d.ts +48 -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 +47 -46
- package/dist/commons/events/utils.d.ts +114 -114
- package/dist/commons/notification/UserNotifications.d.ts +38 -10
- package/dist/conditionals/index.js +308 -55
- package/dist/environment/derived-variables.d.ts +119 -119
- package/dist/environment/derived-variables.d.ts.map +1 -1
- package/dist/environment/index.d.ts +1 -0
- package/dist/environment/index.d.ts.map +1 -1
- package/dist/environment/index.js +10 -0
- package/dist/environment/logger.d.ts +12 -3
- package/dist/environment/logger.d.ts.map +1 -1
- 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.d.ts +75 -74
- package/dist/environment/questions.d.ts.map +1 -1
- package/dist/environment/questions.js +20 -14
- package/dist/environment/setup-environment.js +11 -16
- package/dist/environment/templates.d.ts.map +1 -1
- package/dist/environment/templates.js +2 -1
- package/dist/environment/update-workflows.d.ts.map +1 -1
- package/dist/environment/update-workflows.js +17 -5
- 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.js +11 -13
- package/dist/environment/utils.d.ts +1 -1
- package/dist/events/deduplication.d.ts +1 -1
- package/dist/events/index.js +3678 -3296
- package/dist/migrations/v2.0/checkout-upstream-files.d.ts +2 -2
- package/dist/migrations/v2.0/checkout-upstream-files.d.ts.map +1 -1
- package/dist/migrations/v2.0/checkout-upstream-files.js +2 -2
- package/dist/migrations/v2.0/migrate-application-config-url.js +4 -3
- package/dist/notification/index.js +1438 -1080
- package/dist/scopes/index.d.ts +396 -169
- package/dist/scopes/index.js +309 -55
- package/dist/templates/charts-values/opencrvs-services/values.yaml +4 -3
- package/dist/templates/charts-values/opentelemetry/values.yaml +95 -0
- package/dist/templates/charts-values/traefik/values.yaml +23 -9
- package/dist/templates/inventory/inventory.template.yml +1 -3
- package/opencrvs-toolkit-2.1.0-rc.f29a266.tgz +0 -0
- package/package.json +7 -7
- package/tsconfig.tsbuildinfo +1 -1
- package/dist/templates/inventory/production.example.yml +0 -77
- package/dist/templates/inventory/qa.example.yml +0 -48
- package/opencrvs-toolkit-2.1.0-rc.edf2492.tgz +0 -0
|
@@ -21,8 +21,8 @@ export declare function getDeclarationPages(configuration: EventConfig): {
|
|
|
21
21
|
};
|
|
22
22
|
requireCompletionToContinue: boolean;
|
|
23
23
|
fields: FieldConfig[];
|
|
24
|
-
type: "FORM";
|
|
25
24
|
conditional?: any;
|
|
25
|
+
type: "FORM";
|
|
26
26
|
}[];
|
|
27
27
|
export declare function getDeclaration(configuration: EventConfig): {
|
|
28
28
|
label: {
|
|
@@ -39,8 +39,8 @@ export declare function getDeclaration(configuration: EventConfig): {
|
|
|
39
39
|
};
|
|
40
40
|
requireCompletionToContinue: boolean;
|
|
41
41
|
fields: FieldConfig[];
|
|
42
|
-
type: "FORM";
|
|
43
42
|
conditional?: any;
|
|
43
|
+
type: "FORM";
|
|
44
44
|
}[];
|
|
45
45
|
};
|
|
46
46
|
export declare function isActionConfigType(type: ActionType): type is ActionConfigTypes;
|
|
@@ -67,8 +67,8 @@ export declare function getPrintCertificatePages(configuration: EventConfig): ({
|
|
|
67
67
|
};
|
|
68
68
|
requireCompletionToContinue: boolean;
|
|
69
69
|
fields: FieldConfig[];
|
|
70
|
-
type: "FORM";
|
|
71
70
|
conditional?: any;
|
|
71
|
+
type: "FORM";
|
|
72
72
|
} | {
|
|
73
73
|
id: string;
|
|
74
74
|
title: {
|
|
@@ -78,6 +78,7 @@ export declare function getPrintCertificatePages(configuration: EventConfig): ({
|
|
|
78
78
|
};
|
|
79
79
|
requireCompletionToContinue: boolean;
|
|
80
80
|
fields: FieldConfig[];
|
|
81
|
+
conditional?: any;
|
|
81
82
|
type: "VERIFICATION";
|
|
82
83
|
actions: {
|
|
83
84
|
verify: {
|
|
@@ -107,7 +108,6 @@ export declare function getPrintCertificatePages(configuration: EventConfig): ({
|
|
|
107
108
|
};
|
|
108
109
|
};
|
|
109
110
|
};
|
|
110
|
-
conditional?: any;
|
|
111
111
|
})[];
|
|
112
112
|
export declare const getActionAnnotationFields: (actionConfig: ActionConfig) => FieldConfig[];
|
|
113
113
|
export declare function getAllUniqueFields(eventConfig: EventConfig): FieldConfig[];
|
|
@@ -162,313 +162,313 @@ export declare function deepMerge<T extends Record<string, unknown>, K extends R
|
|
|
162
162
|
export declare function findLastAssignmentAction(actions: Action[]): {
|
|
163
163
|
id: string & import("zod").$brand<"UUID">;
|
|
164
164
|
transactionId: string;
|
|
165
|
-
createdByUserType: "
|
|
165
|
+
createdByUserType: "system" | "user";
|
|
166
166
|
createdAt: string;
|
|
167
167
|
createdBy: string;
|
|
168
|
-
declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
|
|
169
|
-
status: "Requested" | "Accepted" | "Rejected";
|
|
170
|
-
type: "REGISTER";
|
|
171
168
|
createdByRole?: string | undefined;
|
|
172
169
|
createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
173
170
|
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
171
|
+
declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
|
|
174
172
|
annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
|
|
173
|
+
status: "Accepted" | "Rejected" | "Requested";
|
|
175
174
|
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
176
|
-
|
|
175
|
+
type: "CREATE";
|
|
177
176
|
} | {
|
|
178
177
|
id: string & import("zod").$brand<"UUID">;
|
|
179
178
|
transactionId: string;
|
|
180
|
-
createdByUserType: "
|
|
179
|
+
createdByUserType: "system" | "user";
|
|
181
180
|
createdAt: string;
|
|
182
181
|
createdBy: string;
|
|
183
|
-
declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
|
|
184
|
-
status: "Requested" | "Accepted" | "Rejected";
|
|
185
|
-
type: "DUPLICATE_DETECTED";
|
|
186
|
-
content: {
|
|
187
|
-
duplicates: {
|
|
188
|
-
id: string & import("zod").$brand<"UUID">;
|
|
189
|
-
trackingId: string;
|
|
190
|
-
}[];
|
|
191
|
-
};
|
|
192
182
|
createdByRole?: string | undefined;
|
|
193
183
|
createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
194
184
|
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
185
|
+
declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
|
|
195
186
|
annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
|
|
187
|
+
status: "Accepted" | "Rejected" | "Requested";
|
|
196
188
|
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
189
|
+
type: "REJECT";
|
|
190
|
+
content: {
|
|
191
|
+
reason: string;
|
|
192
|
+
};
|
|
197
193
|
} | {
|
|
198
194
|
id: string & import("zod").$brand<"UUID">;
|
|
199
195
|
transactionId: string;
|
|
200
|
-
createdByUserType: "
|
|
196
|
+
createdByUserType: "system" | "user";
|
|
201
197
|
createdAt: string;
|
|
202
198
|
createdBy: string;
|
|
203
|
-
declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
|
|
204
|
-
status: "Requested" | "Accepted" | "Rejected";
|
|
205
|
-
type: "EDIT";
|
|
206
|
-
content: {
|
|
207
|
-
comment?: string | undefined;
|
|
208
|
-
};
|
|
209
199
|
createdByRole?: string | undefined;
|
|
210
200
|
createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
211
201
|
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
202
|
+
declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
|
|
212
203
|
annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
|
|
204
|
+
status: "Accepted" | "Rejected" | "Requested";
|
|
213
205
|
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
206
|
+
type: "DUPLICATE_DETECTED";
|
|
207
|
+
content: {
|
|
208
|
+
duplicates: {
|
|
209
|
+
id: string & import("zod").$brand<"UUID">;
|
|
210
|
+
trackingId: string;
|
|
211
|
+
}[];
|
|
212
|
+
};
|
|
214
213
|
} | {
|
|
215
214
|
id: string & import("zod").$brand<"UUID">;
|
|
216
215
|
transactionId: string;
|
|
217
|
-
createdByUserType: "
|
|
216
|
+
createdByUserType: "system" | "user";
|
|
218
217
|
createdAt: string;
|
|
219
218
|
createdBy: string;
|
|
220
|
-
declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
|
|
221
|
-
status: "Requested" | "Accepted" | "Rejected";
|
|
222
|
-
type: "PRINT_CERTIFICATE";
|
|
223
219
|
createdByRole?: string | undefined;
|
|
224
220
|
createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
225
221
|
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
222
|
+
declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
|
|
226
223
|
annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
|
|
224
|
+
status: "Accepted" | "Rejected" | "Requested";
|
|
227
225
|
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
228
|
-
|
|
229
|
-
templateId?: string | undefined;
|
|
230
|
-
} | null | undefined;
|
|
226
|
+
type: "MARK_AS_NOT_DUPLICATE";
|
|
231
227
|
} | {
|
|
232
228
|
id: string & import("zod").$brand<"UUID">;
|
|
233
229
|
transactionId: string;
|
|
234
|
-
createdByUserType: "
|
|
230
|
+
createdByUserType: "system" | "user";
|
|
235
231
|
createdAt: string;
|
|
236
232
|
createdBy: string;
|
|
237
|
-
declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
|
|
238
|
-
status: "Requested" | "Accepted" | "Rejected";
|
|
239
|
-
type: "REQUEST_CORRECTION";
|
|
240
233
|
createdByRole?: string | undefined;
|
|
241
234
|
createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
242
235
|
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
236
|
+
declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
|
|
243
237
|
annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
|
|
238
|
+
status: "Accepted" | "Rejected" | "Requested";
|
|
244
239
|
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
240
|
+
type: "MARK_AS_DUPLICATE";
|
|
241
|
+
content?: {
|
|
242
|
+
duplicateOf: string & import("zod").$brand<"UUID">;
|
|
243
|
+
} | undefined;
|
|
245
244
|
} | {
|
|
246
245
|
id: string & import("zod").$brand<"UUID">;
|
|
247
246
|
transactionId: string;
|
|
248
|
-
createdByUserType: "
|
|
247
|
+
createdByUserType: "system" | "user";
|
|
249
248
|
createdAt: string;
|
|
250
249
|
createdBy: string;
|
|
251
|
-
declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
|
|
252
|
-
status: "Requested" | "Accepted" | "Rejected";
|
|
253
|
-
type: "CUSTOM";
|
|
254
|
-
customActionType: string;
|
|
255
250
|
createdByRole?: string | undefined;
|
|
256
251
|
createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
257
252
|
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
253
|
+
declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
|
|
258
254
|
annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
|
|
255
|
+
status: "Accepted" | "Rejected" | "Requested";
|
|
259
256
|
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
257
|
+
type: "ARCHIVE";
|
|
258
|
+
content?: {
|
|
259
|
+
reason: string;
|
|
260
|
+
} | undefined;
|
|
260
261
|
} | {
|
|
261
262
|
id: string & import("zod").$brand<"UUID">;
|
|
262
263
|
transactionId: string;
|
|
263
|
-
createdByUserType: "
|
|
264
|
+
createdByUserType: "system" | "user";
|
|
264
265
|
createdAt: string;
|
|
265
266
|
createdBy: string;
|
|
266
|
-
declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
|
|
267
|
-
status: "Requested" | "Accepted" | "Rejected";
|
|
268
|
-
type: "CREATE";
|
|
269
267
|
createdByRole?: string | undefined;
|
|
270
268
|
createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
271
269
|
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
270
|
+
declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
|
|
272
271
|
annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
|
|
272
|
+
status: "Accepted" | "Rejected" | "Requested";
|
|
273
273
|
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
274
|
+
type: "UNARCHIVE";
|
|
274
275
|
} | {
|
|
275
276
|
id: string & import("zod").$brand<"UUID">;
|
|
276
277
|
transactionId: string;
|
|
277
|
-
createdByUserType: "
|
|
278
|
+
createdByUserType: "system" | "user";
|
|
278
279
|
createdAt: string;
|
|
279
280
|
createdBy: string;
|
|
280
|
-
declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
|
|
281
|
-
status: "Requested" | "Accepted" | "Rejected";
|
|
282
|
-
type: "REJECT";
|
|
283
|
-
content: {
|
|
284
|
-
reason: string;
|
|
285
|
-
};
|
|
286
281
|
createdByRole?: string | undefined;
|
|
287
282
|
createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
288
283
|
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
284
|
+
declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
|
|
289
285
|
annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
|
|
286
|
+
status: "Accepted" | "Rejected" | "Requested";
|
|
290
287
|
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
288
|
+
type: "NOTIFY";
|
|
291
289
|
} | {
|
|
292
290
|
id: string & import("zod").$brand<"UUID">;
|
|
293
291
|
transactionId: string;
|
|
294
|
-
createdByUserType: "
|
|
292
|
+
createdByUserType: "system" | "user";
|
|
295
293
|
createdAt: string;
|
|
296
294
|
createdBy: string;
|
|
297
|
-
declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
|
|
298
|
-
status: "Requested" | "Accepted" | "Rejected";
|
|
299
|
-
type: "MARK_AS_NOT_DUPLICATE";
|
|
300
295
|
createdByRole?: string | undefined;
|
|
301
296
|
createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
302
297
|
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
298
|
+
declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
|
|
303
299
|
annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
|
|
300
|
+
status: "Accepted" | "Rejected" | "Requested";
|
|
304
301
|
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
302
|
+
type: "REGISTER";
|
|
303
|
+
registrationNumber?: string | undefined;
|
|
305
304
|
} | {
|
|
306
305
|
id: string & import("zod").$brand<"UUID">;
|
|
307
306
|
transactionId: string;
|
|
308
|
-
createdByUserType: "
|
|
307
|
+
createdByUserType: "system" | "user";
|
|
309
308
|
createdAt: string;
|
|
310
309
|
createdBy: string;
|
|
311
|
-
declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
|
|
312
|
-
status: "Requested" | "Accepted" | "Rejected";
|
|
313
|
-
type: "MARK_AS_DUPLICATE";
|
|
314
310
|
createdByRole?: string | undefined;
|
|
315
311
|
createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
316
312
|
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
313
|
+
declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
|
|
317
314
|
annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
|
|
315
|
+
status: "Accepted" | "Rejected" | "Requested";
|
|
318
316
|
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
319
|
-
|
|
320
|
-
duplicateOf: string & import("zod").$brand<"UUID">;
|
|
321
|
-
} | undefined;
|
|
317
|
+
type: "DECLARE";
|
|
322
318
|
} | {
|
|
323
319
|
id: string & import("zod").$brand<"UUID">;
|
|
324
320
|
transactionId: string;
|
|
325
|
-
createdByUserType: "
|
|
321
|
+
createdByUserType: "system" | "user";
|
|
326
322
|
createdAt: string;
|
|
327
323
|
createdBy: string;
|
|
328
|
-
declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
|
|
329
|
-
status: "Requested" | "Accepted" | "Rejected";
|
|
330
|
-
type: "ARCHIVE";
|
|
331
|
-
content: {
|
|
332
|
-
reason: string;
|
|
333
|
-
};
|
|
334
324
|
createdByRole?: string | undefined;
|
|
335
325
|
createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
336
326
|
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
327
|
+
declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
|
|
337
328
|
annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
|
|
329
|
+
status: "Accepted" | "Rejected" | "Requested";
|
|
338
330
|
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
331
|
+
type: "ASSIGN";
|
|
332
|
+
assignedTo: string;
|
|
339
333
|
} | {
|
|
340
334
|
id: string & import("zod").$brand<"UUID">;
|
|
341
335
|
transactionId: string;
|
|
342
|
-
createdByUserType: "
|
|
336
|
+
createdByUserType: "system" | "user";
|
|
343
337
|
createdAt: string;
|
|
344
338
|
createdBy: string;
|
|
345
|
-
declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
|
|
346
|
-
status: "Requested" | "Accepted" | "Rejected";
|
|
347
|
-
type: "UNARCHIVE";
|
|
348
339
|
createdByRole?: string | undefined;
|
|
349
340
|
createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
350
341
|
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
342
|
+
declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
|
|
351
343
|
annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
|
|
344
|
+
status: "Accepted" | "Rejected" | "Requested";
|
|
352
345
|
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
346
|
+
type: "REQUEST_CORRECTION";
|
|
353
347
|
} | {
|
|
354
348
|
id: string & import("zod").$brand<"UUID">;
|
|
355
349
|
transactionId: string;
|
|
356
|
-
createdByUserType: "
|
|
350
|
+
createdByUserType: "system" | "user";
|
|
357
351
|
createdAt: string;
|
|
358
352
|
createdBy: string;
|
|
359
|
-
declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
|
|
360
|
-
status: "Requested" | "Accepted" | "Rejected";
|
|
361
|
-
type: "NOTIFY";
|
|
362
353
|
createdByRole?: string | undefined;
|
|
363
354
|
createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
364
355
|
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
356
|
+
declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
|
|
365
357
|
annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
|
|
358
|
+
status: "Accepted" | "Rejected" | "Requested";
|
|
366
359
|
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
360
|
+
type: "APPROVE_CORRECTION";
|
|
361
|
+
requestId: string;
|
|
362
|
+
content?: {
|
|
363
|
+
immediateCorrection?: boolean | undefined;
|
|
364
|
+
} | undefined;
|
|
367
365
|
} | {
|
|
368
366
|
id: string & import("zod").$brand<"UUID">;
|
|
369
367
|
transactionId: string;
|
|
370
|
-
createdByUserType: "
|
|
368
|
+
createdByUserType: "system" | "user";
|
|
371
369
|
createdAt: string;
|
|
372
370
|
createdBy: string;
|
|
373
|
-
declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
|
|
374
|
-
status: "Requested" | "Accepted" | "Rejected";
|
|
375
|
-
type: "DECLARE";
|
|
376
371
|
createdByRole?: string | undefined;
|
|
377
372
|
createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
378
373
|
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
374
|
+
declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
|
|
379
375
|
annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
|
|
376
|
+
status: "Accepted" | "Rejected" | "Requested";
|
|
380
377
|
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
378
|
+
type: "REJECT_CORRECTION";
|
|
379
|
+
requestId: string;
|
|
380
|
+
content: {
|
|
381
|
+
reason: string;
|
|
382
|
+
};
|
|
381
383
|
} | {
|
|
382
384
|
id: string & import("zod").$brand<"UUID">;
|
|
383
385
|
transactionId: string;
|
|
384
|
-
createdByUserType: "
|
|
386
|
+
createdByUserType: "system" | "user";
|
|
385
387
|
createdAt: string;
|
|
386
388
|
createdBy: string;
|
|
387
|
-
declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
|
|
388
|
-
status: "Requested" | "Accepted" | "Rejected";
|
|
389
|
-
type: "ASSIGN";
|
|
390
|
-
assignedTo: string;
|
|
391
389
|
createdByRole?: string | undefined;
|
|
392
390
|
createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
393
391
|
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
392
|
+
declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
|
|
394
393
|
annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
|
|
394
|
+
status: "Accepted" | "Rejected" | "Requested";
|
|
395
395
|
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
396
|
+
type: "UNASSIGN";
|
|
396
397
|
} | {
|
|
397
398
|
id: string & import("zod").$brand<"UUID">;
|
|
398
399
|
transactionId: string;
|
|
399
|
-
createdByUserType: "
|
|
400
|
+
createdByUserType: "system" | "user";
|
|
400
401
|
createdAt: string;
|
|
401
402
|
createdBy: string;
|
|
402
|
-
declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
|
|
403
|
-
status: "Requested" | "Accepted" | "Rejected";
|
|
404
|
-
type: "APPROVE_CORRECTION";
|
|
405
|
-
requestId: string;
|
|
406
403
|
createdByRole?: string | undefined;
|
|
407
404
|
createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
408
405
|
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
406
|
+
declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
|
|
409
407
|
annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
|
|
408
|
+
status: "Accepted" | "Rejected" | "Requested";
|
|
410
409
|
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
410
|
+
type: "PRINT_CERTIFICATE";
|
|
411
411
|
content?: {
|
|
412
|
-
|
|
413
|
-
} | undefined;
|
|
412
|
+
templateId?: string | undefined;
|
|
413
|
+
} | null | undefined;
|
|
414
414
|
} | {
|
|
415
415
|
id: string & import("zod").$brand<"UUID">;
|
|
416
416
|
transactionId: string;
|
|
417
|
-
createdByUserType: "
|
|
417
|
+
createdByUserType: "system" | "user";
|
|
418
418
|
createdAt: string;
|
|
419
419
|
createdBy: string;
|
|
420
|
-
declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
|
|
421
|
-
status: "Requested" | "Accepted" | "Rejected";
|
|
422
|
-
type: "REJECT_CORRECTION";
|
|
423
|
-
requestId: string;
|
|
424
|
-
content: {
|
|
425
|
-
reason: string;
|
|
426
|
-
};
|
|
427
420
|
createdByRole?: string | undefined;
|
|
428
421
|
createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
429
422
|
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
423
|
+
declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
|
|
430
424
|
annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
|
|
425
|
+
status: "Accepted" | "Rejected" | "Requested";
|
|
431
426
|
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
427
|
+
type: "READ";
|
|
432
428
|
} | {
|
|
433
429
|
id: string & import("zod").$brand<"UUID">;
|
|
434
430
|
transactionId: string;
|
|
435
|
-
createdByUserType: "
|
|
431
|
+
createdByUserType: "system" | "user";
|
|
436
432
|
createdAt: string;
|
|
437
433
|
createdBy: string;
|
|
438
|
-
declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
|
|
439
|
-
status: "Requested" | "Accepted" | "Rejected";
|
|
440
|
-
type: "UNASSIGN";
|
|
441
434
|
createdByRole?: string | undefined;
|
|
442
435
|
createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
443
436
|
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
437
|
+
declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
|
|
444
438
|
annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
|
|
439
|
+
status: "Accepted" | "Rejected" | "Requested";
|
|
445
440
|
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
441
|
+
type: "EDIT";
|
|
442
|
+
content?: {
|
|
443
|
+
comment?: string | undefined;
|
|
444
|
+
} | undefined;
|
|
446
445
|
} | {
|
|
447
446
|
id: string & import("zod").$brand<"UUID">;
|
|
448
447
|
transactionId: string;
|
|
449
|
-
createdByUserType: "
|
|
448
|
+
createdByUserType: "system" | "user";
|
|
450
449
|
createdAt: string;
|
|
451
450
|
createdBy: string;
|
|
452
|
-
declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
|
|
453
|
-
status: "Requested" | "Accepted" | "Rejected";
|
|
454
|
-
type: "READ";
|
|
455
451
|
createdByRole?: string | undefined;
|
|
456
452
|
createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
457
453
|
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
454
|
+
declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
|
|
458
455
|
annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
|
|
456
|
+
status: "Accepted" | "Rejected" | "Requested";
|
|
459
457
|
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
458
|
+
type: "CUSTOM";
|
|
459
|
+
customActionType: string;
|
|
460
460
|
} | {
|
|
461
461
|
id: string & import("zod").$brand<"UUID">;
|
|
462
462
|
transactionId: string;
|
|
463
|
-
createdByUserType: "
|
|
463
|
+
createdByUserType: "system" | "user";
|
|
464
464
|
createdAt: string;
|
|
465
465
|
createdBy: string;
|
|
466
|
-
type: "CUSTOM" | "NOTIFY" | "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "UNARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION";
|
|
467
|
-
status: "Rejected";
|
|
468
466
|
createdByRole?: string | undefined;
|
|
469
467
|
createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
470
468
|
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
471
469
|
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
470
|
+
type: "APPROVE_CORRECTION" | "ARCHIVE" | "CUSTOM" | "DECLARE" | "EDIT" | "NOTIFY" | "PRINT_CERTIFICATE" | "REGISTER" | "REJECT" | "REJECT_CORRECTION" | "REQUEST_CORRECTION" | "UNARCHIVE";
|
|
471
|
+
status: "Rejected";
|
|
472
472
|
} | undefined;
|
|
473
473
|
/**
|
|
474
474
|
* Tell compiler that accessing record with arbitrary key might result to undefined
|
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
import * as z from 'zod/v4';
|
|
2
2
|
export declare const TriggerEvent: {
|
|
3
|
-
readonly USER_CREATED:
|
|
4
|
-
readonly USER_UPDATED:
|
|
5
|
-
readonly USERNAME_REMINDER:
|
|
6
|
-
readonly RESET_PASSWORD:
|
|
7
|
-
readonly RESET_PASSWORD_BY_ADMIN:
|
|
8
|
-
readonly
|
|
9
|
-
readonly
|
|
10
|
-
readonly
|
|
11
|
-
readonly
|
|
12
|
-
readonly
|
|
3
|
+
readonly USER_CREATED: 'user-created';
|
|
4
|
+
readonly USER_UPDATED: 'user-updated';
|
|
5
|
+
readonly USERNAME_REMINDER: 'username-reminder';
|
|
6
|
+
readonly RESET_PASSWORD: 'reset-password';
|
|
7
|
+
readonly RESET_PASSWORD_BY_ADMIN: 'reset-password-by-admin';
|
|
8
|
+
readonly PASSWORD_RESET_LINK: 'password-reset-link';
|
|
9
|
+
readonly USERNAME_REMINDER_LINK: 'username-reminder-link';
|
|
10
|
+
readonly RESEND_INVITE: 'resend-invite';
|
|
11
|
+
readonly TWO_FA: '2fa';
|
|
12
|
+
readonly ALL_USER_NOTIFICATION: 'all-user-notification';
|
|
13
|
+
readonly CHANGE_PHONE_NUMBER: 'change-phone-number';
|
|
14
|
+
readonly CHANGE_EMAIL_ADDRESS: 'change-email-address';
|
|
13
15
|
};
|
|
14
16
|
export type TriggerEvent = (typeof TriggerEvent)[keyof typeof TriggerEvent];
|
|
15
17
|
export declare const Recipient: z.ZodObject<{
|
|
@@ -113,6 +115,32 @@ export declare const TriggerPayload: {
|
|
|
113
115
|
role: z.ZodString;
|
|
114
116
|
}, z.core.$strip>;
|
|
115
117
|
}, z.core.$strip>;
|
|
118
|
+
readonly "password-reset-link": z.ZodObject<{
|
|
119
|
+
recipient: z.ZodObject<{
|
|
120
|
+
name: z.ZodOptional<z.ZodObject<{
|
|
121
|
+
firstname: z.ZodString;
|
|
122
|
+
surname: z.ZodString;
|
|
123
|
+
middlename: z.ZodOptional<z.ZodString>;
|
|
124
|
+
}, z.core.$strip>>;
|
|
125
|
+
mobile: z.ZodOptional<z.ZodString>;
|
|
126
|
+
email: z.ZodOptional<z.ZodString>;
|
|
127
|
+
bcc: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
128
|
+
}, z.core.$strip>;
|
|
129
|
+
token: z.ZodString;
|
|
130
|
+
}, z.core.$strip>;
|
|
131
|
+
readonly "username-reminder-link": z.ZodObject<{
|
|
132
|
+
recipient: z.ZodObject<{
|
|
133
|
+
name: z.ZodOptional<z.ZodObject<{
|
|
134
|
+
firstname: z.ZodString;
|
|
135
|
+
surname: z.ZodString;
|
|
136
|
+
middlename: z.ZodOptional<z.ZodString>;
|
|
137
|
+
}, z.core.$strip>>;
|
|
138
|
+
mobile: z.ZodOptional<z.ZodString>;
|
|
139
|
+
email: z.ZodOptional<z.ZodString>;
|
|
140
|
+
bcc: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
141
|
+
}, z.core.$strip>;
|
|
142
|
+
token: z.ZodString;
|
|
143
|
+
}, z.core.$strip>;
|
|
116
144
|
readonly "resend-invite": z.ZodObject<{
|
|
117
145
|
recipient: z.ZodObject<{
|
|
118
146
|
name: z.ZodOptional<z.ZodObject<{
|