@opencrvs/toolkit 2.1.0-rc.a74bce1 → 2.1.0-rc.b89dfd1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/commons/api/router.d.ts +3373 -3373
- 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 +105 -105
- package/dist/commons/events/ActionDocument.d.ts +113 -113
- package/dist/commons/events/ActionType.d.ts +62 -62
- package/dist/commons/events/AdvancedSearchConfig.d.ts +507 -507
- package/dist/commons/events/AuditLog.d.ts +43 -43
- package/dist/commons/events/CompositeFieldValue.d.ts +4 -4
- package/dist/commons/events/Conditional.d.ts +3 -3
- package/dist/commons/events/CountryConfigQueryInput.d.ts +590 -590
- package/dist/commons/events/Draft.d.ts +37 -37
- package/dist/commons/events/DynamicFieldValue.d.ts +9 -9
- package/dist/commons/events/EventConfig.d.ts +5 -5
- package/dist/commons/events/EventDocument.d.ts +46 -46
- package/dist/commons/events/EventIndex.d.ts +62 -62
- package/dist/commons/events/EventMetadata.d.ts +40 -40
- package/dist/commons/events/FieldConfig.d.ts +336 -336
- 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 +826 -826
- 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/locations.d.ts +4 -4
- package/dist/commons/events/mocks.test.utils.d.ts +2 -2
- package/dist/commons/events/scopes.d.ts +4 -4
- package/dist/commons/events/state/index.d.ts +17 -17
- package/dist/commons/events/state/utils.d.ts +7 -7
- package/dist/commons/events/test.utils.d.ts +36 -36
- package/dist/commons/events/utils.d.ts +114 -114
- package/dist/commons/notification/UserNotifications.d.ts +10 -10
- package/dist/environment/derived-variables.d.ts +131 -131
- package/dist/environment/derived-variables.d.ts.map +1 -1
- package/dist/environment/logger.d.ts +3 -12
- package/dist/environment/logger.d.ts.map +1 -1
- package/dist/environment/manage-users.js +17 -7
- 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/swarm-to-k8s.js +17 -7
- package/dist/environment/update-workflows.js +17 -7
- package/dist/environment/users.js +17 -7
- package/dist/environment/utils.d.ts +1 -1
- package/dist/environment/utils.js +17 -7
- package/dist/events/deduplication.d.ts +1 -1
- package/dist/migrations/v2.0/convert-config-files-to-ts.js +17 -7
- 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/scopes/index.d.ts +146 -146
- package/opencrvs-toolkit-2.1.0-rc.b89dfd1.tgz +0 -0
- package/package.json +2 -3
- package/tsconfig.tsbuildinfo +1 -1
- package/opencrvs-toolkit-2.1.0-rc.a74bce1.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;
|
|
@@ -59,8 +59,8 @@ export declare function getPrintCertificatePages(configuration: EventConfig): ({
|
|
|
59
59
|
};
|
|
60
60
|
requireCompletionToContinue: boolean;
|
|
61
61
|
fields: FieldConfig[];
|
|
62
|
-
type: "FORM";
|
|
63
62
|
conditional?: any;
|
|
63
|
+
type: "FORM";
|
|
64
64
|
} | {
|
|
65
65
|
id: string;
|
|
66
66
|
title: {
|
|
@@ -70,6 +70,7 @@ export declare function getPrintCertificatePages(configuration: EventConfig): ({
|
|
|
70
70
|
};
|
|
71
71
|
requireCompletionToContinue: boolean;
|
|
72
72
|
fields: FieldConfig[];
|
|
73
|
+
conditional?: any;
|
|
73
74
|
type: "VERIFICATION";
|
|
74
75
|
actions: {
|
|
75
76
|
verify: {
|
|
@@ -99,7 +100,6 @@ export declare function getPrintCertificatePages(configuration: EventConfig): ({
|
|
|
99
100
|
};
|
|
100
101
|
};
|
|
101
102
|
};
|
|
102
|
-
conditional?: any;
|
|
103
103
|
})[];
|
|
104
104
|
export declare const getActionAnnotationFields: (actionConfig: ActionConfig) => FieldConfig[];
|
|
105
105
|
export declare function getAllUniqueFields(eventConfig: EventConfig): FieldConfig[];
|
|
@@ -154,313 +154,313 @@ export declare function deepMerge<T extends Record<string, unknown>, K extends R
|
|
|
154
154
|
export declare function findLastAssignmentAction(actions: Action[]): {
|
|
155
155
|
id: string & import("zod").$brand<"UUID">;
|
|
156
156
|
transactionId: string;
|
|
157
|
-
createdByUserType: "
|
|
157
|
+
createdByUserType: "system" | "user";
|
|
158
158
|
createdAt: string;
|
|
159
159
|
createdBy: string;
|
|
160
|
-
declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
|
|
161
|
-
status: "Requested" | "Accepted" | "Rejected";
|
|
162
|
-
type: "REGISTER";
|
|
163
160
|
createdByRole?: string | undefined;
|
|
164
161
|
createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
165
162
|
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
163
|
+
declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
|
|
166
164
|
annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
|
|
165
|
+
status: "Accepted" | "Rejected" | "Requested";
|
|
167
166
|
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
168
|
-
|
|
167
|
+
type: "CREATE";
|
|
169
168
|
} | {
|
|
170
169
|
id: string & import("zod").$brand<"UUID">;
|
|
171
170
|
transactionId: string;
|
|
172
|
-
createdByUserType: "
|
|
171
|
+
createdByUserType: "system" | "user";
|
|
173
172
|
createdAt: string;
|
|
174
173
|
createdBy: string;
|
|
175
|
-
declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
|
|
176
|
-
status: "Requested" | "Accepted" | "Rejected";
|
|
177
|
-
type: "DUPLICATE_DETECTED";
|
|
178
|
-
content: {
|
|
179
|
-
duplicates: {
|
|
180
|
-
id: string & import("zod").$brand<"UUID">;
|
|
181
|
-
trackingId: string;
|
|
182
|
-
}[];
|
|
183
|
-
};
|
|
184
174
|
createdByRole?: string | undefined;
|
|
185
175
|
createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
186
176
|
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
177
|
+
declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
|
|
187
178
|
annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
|
|
179
|
+
status: "Accepted" | "Rejected" | "Requested";
|
|
188
180
|
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
181
|
+
type: "REJECT";
|
|
182
|
+
content: {
|
|
183
|
+
reason: string;
|
|
184
|
+
};
|
|
189
185
|
} | {
|
|
190
186
|
id: string & import("zod").$brand<"UUID">;
|
|
191
187
|
transactionId: string;
|
|
192
|
-
createdByUserType: "
|
|
188
|
+
createdByUserType: "system" | "user";
|
|
193
189
|
createdAt: string;
|
|
194
190
|
createdBy: string;
|
|
195
|
-
declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
|
|
196
|
-
status: "Requested" | "Accepted" | "Rejected";
|
|
197
|
-
type: "EDIT";
|
|
198
|
-
content: {
|
|
199
|
-
comment?: string | undefined;
|
|
200
|
-
};
|
|
201
191
|
createdByRole?: string | undefined;
|
|
202
192
|
createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
203
193
|
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
194
|
+
declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
|
|
204
195
|
annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
|
|
196
|
+
status: "Accepted" | "Rejected" | "Requested";
|
|
205
197
|
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
198
|
+
type: "DUPLICATE_DETECTED";
|
|
199
|
+
content: {
|
|
200
|
+
duplicates: {
|
|
201
|
+
id: string & import("zod").$brand<"UUID">;
|
|
202
|
+
trackingId: string;
|
|
203
|
+
}[];
|
|
204
|
+
};
|
|
206
205
|
} | {
|
|
207
206
|
id: string & import("zod").$brand<"UUID">;
|
|
208
207
|
transactionId: string;
|
|
209
|
-
createdByUserType: "
|
|
208
|
+
createdByUserType: "system" | "user";
|
|
210
209
|
createdAt: string;
|
|
211
210
|
createdBy: string;
|
|
212
|
-
declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
|
|
213
|
-
status: "Requested" | "Accepted" | "Rejected";
|
|
214
|
-
type: "PRINT_CERTIFICATE";
|
|
215
211
|
createdByRole?: string | undefined;
|
|
216
212
|
createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
217
213
|
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
214
|
+
declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
|
|
218
215
|
annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
|
|
216
|
+
status: "Accepted" | "Rejected" | "Requested";
|
|
219
217
|
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
220
|
-
|
|
221
|
-
templateId?: string | undefined;
|
|
222
|
-
} | null | undefined;
|
|
218
|
+
type: "MARK_AS_NOT_DUPLICATE";
|
|
223
219
|
} | {
|
|
224
220
|
id: string & import("zod").$brand<"UUID">;
|
|
225
221
|
transactionId: string;
|
|
226
|
-
createdByUserType: "
|
|
222
|
+
createdByUserType: "system" | "user";
|
|
227
223
|
createdAt: string;
|
|
228
224
|
createdBy: string;
|
|
229
|
-
declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
|
|
230
|
-
status: "Requested" | "Accepted" | "Rejected";
|
|
231
|
-
type: "REQUEST_CORRECTION";
|
|
232
225
|
createdByRole?: string | undefined;
|
|
233
226
|
createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
234
227
|
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
228
|
+
declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
|
|
235
229
|
annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
|
|
230
|
+
status: "Accepted" | "Rejected" | "Requested";
|
|
236
231
|
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
232
|
+
type: "MARK_AS_DUPLICATE";
|
|
233
|
+
content?: {
|
|
234
|
+
duplicateOf: string & import("zod").$brand<"UUID">;
|
|
235
|
+
} | undefined;
|
|
237
236
|
} | {
|
|
238
237
|
id: string & import("zod").$brand<"UUID">;
|
|
239
238
|
transactionId: string;
|
|
240
|
-
createdByUserType: "
|
|
239
|
+
createdByUserType: "system" | "user";
|
|
241
240
|
createdAt: string;
|
|
242
241
|
createdBy: string;
|
|
243
|
-
declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
|
|
244
|
-
status: "Requested" | "Accepted" | "Rejected";
|
|
245
|
-
type: "CUSTOM";
|
|
246
|
-
customActionType: string;
|
|
247
242
|
createdByRole?: string | undefined;
|
|
248
243
|
createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
249
244
|
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
245
|
+
declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
|
|
250
246
|
annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
|
|
247
|
+
status: "Accepted" | "Rejected" | "Requested";
|
|
251
248
|
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
249
|
+
type: "ARCHIVE";
|
|
250
|
+
content: {
|
|
251
|
+
reason: string;
|
|
252
|
+
};
|
|
252
253
|
} | {
|
|
253
254
|
id: string & import("zod").$brand<"UUID">;
|
|
254
255
|
transactionId: string;
|
|
255
|
-
createdByUserType: "
|
|
256
|
+
createdByUserType: "system" | "user";
|
|
256
257
|
createdAt: string;
|
|
257
258
|
createdBy: string;
|
|
258
|
-
declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
|
|
259
|
-
status: "Requested" | "Accepted" | "Rejected";
|
|
260
|
-
type: "CREATE";
|
|
261
259
|
createdByRole?: string | undefined;
|
|
262
260
|
createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
263
261
|
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
262
|
+
declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
|
|
264
263
|
annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
|
|
264
|
+
status: "Accepted" | "Rejected" | "Requested";
|
|
265
265
|
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
266
|
+
type: "UNARCHIVE";
|
|
266
267
|
} | {
|
|
267
268
|
id: string & import("zod").$brand<"UUID">;
|
|
268
269
|
transactionId: string;
|
|
269
|
-
createdByUserType: "
|
|
270
|
+
createdByUserType: "system" | "user";
|
|
270
271
|
createdAt: string;
|
|
271
272
|
createdBy: string;
|
|
272
|
-
declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
|
|
273
|
-
status: "Requested" | "Accepted" | "Rejected";
|
|
274
|
-
type: "REJECT";
|
|
275
|
-
content: {
|
|
276
|
-
reason: string;
|
|
277
|
-
};
|
|
278
273
|
createdByRole?: string | undefined;
|
|
279
274
|
createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
280
275
|
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
276
|
+
declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
|
|
281
277
|
annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
|
|
278
|
+
status: "Accepted" | "Rejected" | "Requested";
|
|
282
279
|
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
280
|
+
type: "NOTIFY";
|
|
283
281
|
} | {
|
|
284
282
|
id: string & import("zod").$brand<"UUID">;
|
|
285
283
|
transactionId: string;
|
|
286
|
-
createdByUserType: "
|
|
284
|
+
createdByUserType: "system" | "user";
|
|
287
285
|
createdAt: string;
|
|
288
286
|
createdBy: string;
|
|
289
|
-
declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
|
|
290
|
-
status: "Requested" | "Accepted" | "Rejected";
|
|
291
|
-
type: "MARK_AS_NOT_DUPLICATE";
|
|
292
287
|
createdByRole?: string | undefined;
|
|
293
288
|
createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
294
289
|
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
290
|
+
declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
|
|
295
291
|
annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
|
|
292
|
+
status: "Accepted" | "Rejected" | "Requested";
|
|
296
293
|
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
294
|
+
type: "REGISTER";
|
|
295
|
+
registrationNumber?: string | undefined;
|
|
297
296
|
} | {
|
|
298
297
|
id: string & import("zod").$brand<"UUID">;
|
|
299
298
|
transactionId: string;
|
|
300
|
-
createdByUserType: "
|
|
299
|
+
createdByUserType: "system" | "user";
|
|
301
300
|
createdAt: string;
|
|
302
301
|
createdBy: string;
|
|
303
|
-
declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
|
|
304
|
-
status: "Requested" | "Accepted" | "Rejected";
|
|
305
|
-
type: "MARK_AS_DUPLICATE";
|
|
306
302
|
createdByRole?: string | undefined;
|
|
307
303
|
createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
308
304
|
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
305
|
+
declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
|
|
309
306
|
annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
|
|
307
|
+
status: "Accepted" | "Rejected" | "Requested";
|
|
310
308
|
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
311
|
-
|
|
312
|
-
duplicateOf: string & import("zod").$brand<"UUID">;
|
|
313
|
-
} | undefined;
|
|
309
|
+
type: "DECLARE";
|
|
314
310
|
} | {
|
|
315
311
|
id: string & import("zod").$brand<"UUID">;
|
|
316
312
|
transactionId: string;
|
|
317
|
-
createdByUserType: "
|
|
313
|
+
createdByUserType: "system" | "user";
|
|
318
314
|
createdAt: string;
|
|
319
315
|
createdBy: string;
|
|
320
|
-
declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
|
|
321
|
-
status: "Requested" | "Accepted" | "Rejected";
|
|
322
|
-
type: "ARCHIVE";
|
|
323
|
-
content: {
|
|
324
|
-
reason: string;
|
|
325
|
-
};
|
|
326
316
|
createdByRole?: string | undefined;
|
|
327
317
|
createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
328
318
|
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
319
|
+
declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
|
|
329
320
|
annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
|
|
321
|
+
status: "Accepted" | "Rejected" | "Requested";
|
|
330
322
|
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
323
|
+
type: "ASSIGN";
|
|
324
|
+
assignedTo: string;
|
|
331
325
|
} | {
|
|
332
326
|
id: string & import("zod").$brand<"UUID">;
|
|
333
327
|
transactionId: string;
|
|
334
|
-
createdByUserType: "
|
|
328
|
+
createdByUserType: "system" | "user";
|
|
335
329
|
createdAt: string;
|
|
336
330
|
createdBy: string;
|
|
337
|
-
declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
|
|
338
|
-
status: "Requested" | "Accepted" | "Rejected";
|
|
339
|
-
type: "UNARCHIVE";
|
|
340
331
|
createdByRole?: string | undefined;
|
|
341
332
|
createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
342
333
|
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
334
|
+
declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
|
|
343
335
|
annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
|
|
336
|
+
status: "Accepted" | "Rejected" | "Requested";
|
|
344
337
|
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
338
|
+
type: "REQUEST_CORRECTION";
|
|
345
339
|
} | {
|
|
346
340
|
id: string & import("zod").$brand<"UUID">;
|
|
347
341
|
transactionId: string;
|
|
348
|
-
createdByUserType: "
|
|
342
|
+
createdByUserType: "system" | "user";
|
|
349
343
|
createdAt: string;
|
|
350
344
|
createdBy: string;
|
|
351
|
-
declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
|
|
352
|
-
status: "Requested" | "Accepted" | "Rejected";
|
|
353
|
-
type: "NOTIFY";
|
|
354
345
|
createdByRole?: string | undefined;
|
|
355
346
|
createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
356
347
|
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
348
|
+
declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
|
|
357
349
|
annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
|
|
350
|
+
status: "Accepted" | "Rejected" | "Requested";
|
|
358
351
|
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
352
|
+
type: "APPROVE_CORRECTION";
|
|
353
|
+
requestId: string;
|
|
354
|
+
content?: {
|
|
355
|
+
immediateCorrection?: boolean | undefined;
|
|
356
|
+
} | undefined;
|
|
359
357
|
} | {
|
|
360
358
|
id: string & import("zod").$brand<"UUID">;
|
|
361
359
|
transactionId: string;
|
|
362
|
-
createdByUserType: "
|
|
360
|
+
createdByUserType: "system" | "user";
|
|
363
361
|
createdAt: string;
|
|
364
362
|
createdBy: string;
|
|
365
|
-
declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
|
|
366
|
-
status: "Requested" | "Accepted" | "Rejected";
|
|
367
|
-
type: "DECLARE";
|
|
368
363
|
createdByRole?: string | undefined;
|
|
369
364
|
createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
370
365
|
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
366
|
+
declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
|
|
371
367
|
annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
|
|
368
|
+
status: "Accepted" | "Rejected" | "Requested";
|
|
372
369
|
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
370
|
+
type: "REJECT_CORRECTION";
|
|
371
|
+
requestId: string;
|
|
372
|
+
content: {
|
|
373
|
+
reason: string;
|
|
374
|
+
};
|
|
373
375
|
} | {
|
|
374
376
|
id: string & import("zod").$brand<"UUID">;
|
|
375
377
|
transactionId: string;
|
|
376
|
-
createdByUserType: "
|
|
378
|
+
createdByUserType: "system" | "user";
|
|
377
379
|
createdAt: string;
|
|
378
380
|
createdBy: string;
|
|
379
|
-
declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
|
|
380
|
-
status: "Requested" | "Accepted" | "Rejected";
|
|
381
|
-
type: "ASSIGN";
|
|
382
|
-
assignedTo: string;
|
|
383
381
|
createdByRole?: string | undefined;
|
|
384
382
|
createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
385
383
|
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
384
|
+
declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
|
|
386
385
|
annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
|
|
386
|
+
status: "Accepted" | "Rejected" | "Requested";
|
|
387
387
|
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
388
|
+
type: "UNASSIGN";
|
|
388
389
|
} | {
|
|
389
390
|
id: string & import("zod").$brand<"UUID">;
|
|
390
391
|
transactionId: string;
|
|
391
|
-
createdByUserType: "
|
|
392
|
+
createdByUserType: "system" | "user";
|
|
392
393
|
createdAt: string;
|
|
393
394
|
createdBy: string;
|
|
394
|
-
declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
|
|
395
|
-
status: "Requested" | "Accepted" | "Rejected";
|
|
396
|
-
type: "APPROVE_CORRECTION";
|
|
397
|
-
requestId: string;
|
|
398
395
|
createdByRole?: string | undefined;
|
|
399
396
|
createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
400
397
|
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
398
|
+
declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
|
|
401
399
|
annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
|
|
400
|
+
status: "Accepted" | "Rejected" | "Requested";
|
|
402
401
|
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
402
|
+
type: "PRINT_CERTIFICATE";
|
|
403
403
|
content?: {
|
|
404
|
-
|
|
405
|
-
} | undefined;
|
|
404
|
+
templateId?: string | undefined;
|
|
405
|
+
} | null | undefined;
|
|
406
406
|
} | {
|
|
407
407
|
id: string & import("zod").$brand<"UUID">;
|
|
408
408
|
transactionId: string;
|
|
409
|
-
createdByUserType: "
|
|
409
|
+
createdByUserType: "system" | "user";
|
|
410
410
|
createdAt: string;
|
|
411
411
|
createdBy: string;
|
|
412
|
-
declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
|
|
413
|
-
status: "Requested" | "Accepted" | "Rejected";
|
|
414
|
-
type: "REJECT_CORRECTION";
|
|
415
|
-
requestId: string;
|
|
416
|
-
content: {
|
|
417
|
-
reason: string;
|
|
418
|
-
};
|
|
419
412
|
createdByRole?: string | undefined;
|
|
420
413
|
createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
421
414
|
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
415
|
+
declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
|
|
422
416
|
annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
|
|
417
|
+
status: "Accepted" | "Rejected" | "Requested";
|
|
423
418
|
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
419
|
+
type: "READ";
|
|
424
420
|
} | {
|
|
425
421
|
id: string & import("zod").$brand<"UUID">;
|
|
426
422
|
transactionId: string;
|
|
427
|
-
createdByUserType: "
|
|
423
|
+
createdByUserType: "system" | "user";
|
|
428
424
|
createdAt: string;
|
|
429
425
|
createdBy: string;
|
|
430
|
-
declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
|
|
431
|
-
status: "Requested" | "Accepted" | "Rejected";
|
|
432
|
-
type: "UNASSIGN";
|
|
433
426
|
createdByRole?: string | undefined;
|
|
434
427
|
createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
435
428
|
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
429
|
+
declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
|
|
436
430
|
annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
|
|
431
|
+
status: "Accepted" | "Rejected" | "Requested";
|
|
437
432
|
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
433
|
+
type: "EDIT";
|
|
434
|
+
content: {
|
|
435
|
+
comment?: string | undefined;
|
|
436
|
+
};
|
|
438
437
|
} | {
|
|
439
438
|
id: string & import("zod").$brand<"UUID">;
|
|
440
439
|
transactionId: string;
|
|
441
|
-
createdByUserType: "
|
|
440
|
+
createdByUserType: "system" | "user";
|
|
442
441
|
createdAt: string;
|
|
443
442
|
createdBy: string;
|
|
444
|
-
declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
|
|
445
|
-
status: "Requested" | "Accepted" | "Rejected";
|
|
446
|
-
type: "READ";
|
|
447
443
|
createdByRole?: string | undefined;
|
|
448
444
|
createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
449
445
|
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
446
|
+
declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
|
|
450
447
|
annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
|
|
448
|
+
status: "Accepted" | "Rejected" | "Requested";
|
|
451
449
|
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
450
|
+
type: "CUSTOM";
|
|
451
|
+
customActionType: string;
|
|
452
452
|
} | {
|
|
453
453
|
id: string & import("zod").$brand<"UUID">;
|
|
454
454
|
transactionId: string;
|
|
455
|
-
createdByUserType: "
|
|
455
|
+
createdByUserType: "system" | "user";
|
|
456
456
|
createdAt: string;
|
|
457
457
|
createdBy: string;
|
|
458
|
-
type: "CUSTOM" | "NOTIFY" | "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "UNARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION";
|
|
459
|
-
status: "Rejected";
|
|
460
458
|
createdByRole?: string | undefined;
|
|
461
459
|
createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
462
460
|
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
463
461
|
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
462
|
+
type: "APPROVE_CORRECTION" | "ARCHIVE" | "CUSTOM" | "DECLARE" | "EDIT" | "NOTIFY" | "PRINT_CERTIFICATE" | "REGISTER" | "REJECT" | "REJECT_CORRECTION" | "REQUEST_CORRECTION" | "UNARCHIVE";
|
|
463
|
+
status: "Rejected";
|
|
464
464
|
} | undefined;
|
|
465
465
|
/**
|
|
466
466
|
* Tell compiler that accessing record with arbitrary key might result to undefined
|
|
@@ -1,15 +1,15 @@
|
|
|
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 RESEND_INVITE:
|
|
9
|
-
readonly TWO_FA:
|
|
10
|
-
readonly ALL_USER_NOTIFICATION:
|
|
11
|
-
readonly CHANGE_PHONE_NUMBER:
|
|
12
|
-
readonly CHANGE_EMAIL_ADDRESS:
|
|
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 RESEND_INVITE: 'resend-invite';
|
|
9
|
+
readonly TWO_FA: '2fa';
|
|
10
|
+
readonly ALL_USER_NOTIFICATION: 'all-user-notification';
|
|
11
|
+
readonly CHANGE_PHONE_NUMBER: 'change-phone-number';
|
|
12
|
+
readonly CHANGE_EMAIL_ADDRESS: 'change-email-address';
|
|
13
13
|
};
|
|
14
14
|
export type TriggerEvent = (typeof TriggerEvent)[keyof typeof TriggerEvent];
|
|
15
15
|
export declare const Recipient: z.ZodObject<{
|