@opencrvs/toolkit 2.1.0-rc.b89dfd1 → 2.1.0-rc.b8f206f
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 +1580 -1580
- package/dist/commons/application-config/index.d.ts +6 -6
- package/dist/commons/conditionals/conditionals.d.ts +2102 -259
- package/dist/commons/events/ActionConfig.d.ts +112 -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 +337 -337
- package/dist/commons/events/FieldType.d.ts +51 -51
- package/dist/commons/events/FieldTypeMapping.d.ts +100 -100
- package/dist/commons/events/FieldValue.d.ts +12 -12
- package/dist/commons/events/Flag.d.ts +15 -15
- package/dist/commons/events/TemplateConfig.d.ts +1 -1
- package/dist/commons/events/WorkqueueColumnConfig.d.ts +40 -40
- package/dist/commons/events/WorkqueueConfig.d.ts +820 -820
- package/dist/commons/events/deduplication.d.ts +1 -1
- package/dist/commons/events/event.d.ts +2 -2
- package/dist/commons/events/field.d.ts +895 -78
- package/dist/commons/events/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 +122 -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.map +1 -1
- package/dist/environment/questions.d.ts +74 -75
- package/dist/environment/questions.d.ts.map +1 -1
- package/dist/environment/setup-environment.js +14 -8
- package/dist/environment/utils.d.ts +1 -1
- package/dist/events/deduplication.d.ts +1 -1
- package/dist/events/index.js +29 -12
- package/dist/migrations/v2.0/migrate-application-config-url.js +3 -4
- package/dist/notification/index.js +15 -11
- package/dist/scopes/index.d.ts +146 -146
- package/opencrvs-toolkit-2.1.0-rc.b8f206f.tgz +0 -0
- package/package.json +3 -2
- package/tsconfig.tsbuildinfo +1 -1
- package/opencrvs-toolkit-2.1.0-rc.b89dfd1.tgz +0 -0
|
@@ -21,8 +21,8 @@ export declare function getDeclarationPages(configuration: EventConfig): {
|
|
|
21
21
|
};
|
|
22
22
|
requireCompletionToContinue: boolean;
|
|
23
23
|
fields: FieldConfig[];
|
|
24
|
-
conditional?: any;
|
|
25
24
|
type: "FORM";
|
|
25
|
+
conditional?: any;
|
|
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
|
-
conditional?: any;
|
|
43
42
|
type: "FORM";
|
|
43
|
+
conditional?: any;
|
|
44
44
|
}[];
|
|
45
45
|
};
|
|
46
46
|
export declare function isActionConfigType(type: ActionType): type is ActionConfigTypes;
|
|
@@ -50,6 +50,14 @@ export declare function getActionConfig({ eventConfiguration, actionType, custom
|
|
|
50
50
|
customActionType?: string;
|
|
51
51
|
}): ActionConfig | undefined;
|
|
52
52
|
export declare function getCustomActionFields(eventConfiguration: EventConfig, customActionType: string): FieldConfig[];
|
|
53
|
+
/**
|
|
54
|
+
* Returns the fields configured for an action's confirmation dialog.
|
|
55
|
+
*
|
|
56
|
+
* Unlike review fields and supporting copy, NOTIFY does NOT fall back to the
|
|
57
|
+
* DECLARE config here: dialog fields always come from the action's own
|
|
58
|
+
* configuration entry.
|
|
59
|
+
*/
|
|
60
|
+
export declare function getActionFormFields(eventConfiguration: EventConfig, actionType: ActionType, customActionType?: string): FieldConfig[];
|
|
53
61
|
export declare function getPrintCertificatePages(configuration: EventConfig): ({
|
|
54
62
|
id: string;
|
|
55
63
|
title: {
|
|
@@ -59,8 +67,8 @@ export declare function getPrintCertificatePages(configuration: EventConfig): ({
|
|
|
59
67
|
};
|
|
60
68
|
requireCompletionToContinue: boolean;
|
|
61
69
|
fields: FieldConfig[];
|
|
62
|
-
conditional?: any;
|
|
63
70
|
type: "FORM";
|
|
71
|
+
conditional?: any;
|
|
64
72
|
} | {
|
|
65
73
|
id: string;
|
|
66
74
|
title: {
|
|
@@ -70,7 +78,6 @@ export declare function getPrintCertificatePages(configuration: EventConfig): ({
|
|
|
70
78
|
};
|
|
71
79
|
requireCompletionToContinue: boolean;
|
|
72
80
|
fields: FieldConfig[];
|
|
73
|
-
conditional?: any;
|
|
74
81
|
type: "VERIFICATION";
|
|
75
82
|
actions: {
|
|
76
83
|
verify: {
|
|
@@ -100,6 +107,7 @@ export declare function getPrintCertificatePages(configuration: EventConfig): ({
|
|
|
100
107
|
};
|
|
101
108
|
};
|
|
102
109
|
};
|
|
110
|
+
conditional?: any;
|
|
103
111
|
})[];
|
|
104
112
|
export declare const getActionAnnotationFields: (actionConfig: ActionConfig) => FieldConfig[];
|
|
105
113
|
export declare function getAllUniqueFields(eventConfig: EventConfig): FieldConfig[];
|
|
@@ -154,313 +162,313 @@ export declare function deepMerge<T extends Record<string, unknown>, K extends R
|
|
|
154
162
|
export declare function findLastAssignmentAction(actions: Action[]): {
|
|
155
163
|
id: string & import("zod").$brand<"UUID">;
|
|
156
164
|
transactionId: string;
|
|
157
|
-
createdByUserType: "
|
|
165
|
+
createdByUserType: "user" | "system";
|
|
158
166
|
createdAt: string;
|
|
159
167
|
createdBy: string;
|
|
168
|
+
declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
|
|
169
|
+
status: "Requested" | "Accepted" | "Rejected";
|
|
170
|
+
type: "REGISTER";
|
|
160
171
|
createdByRole?: string | undefined;
|
|
161
172
|
createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
162
173
|
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
163
|
-
declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
|
|
164
174
|
annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
|
|
165
|
-
status: "Accepted" | "Rejected" | "Requested";
|
|
166
175
|
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
167
|
-
|
|
176
|
+
registrationNumber?: string | undefined;
|
|
168
177
|
} | {
|
|
169
178
|
id: string & import("zod").$brand<"UUID">;
|
|
170
179
|
transactionId: string;
|
|
171
|
-
createdByUserType: "
|
|
180
|
+
createdByUserType: "user" | "system";
|
|
172
181
|
createdAt: string;
|
|
173
182
|
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
|
+
};
|
|
174
192
|
createdByRole?: string | undefined;
|
|
175
193
|
createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
176
194
|
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
177
|
-
declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
|
|
178
195
|
annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
|
|
179
|
-
status: "Accepted" | "Rejected" | "Requested";
|
|
180
196
|
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
181
|
-
type: "REJECT";
|
|
182
|
-
content: {
|
|
183
|
-
reason: string;
|
|
184
|
-
};
|
|
185
197
|
} | {
|
|
186
198
|
id: string & import("zod").$brand<"UUID">;
|
|
187
199
|
transactionId: string;
|
|
188
|
-
createdByUserType: "
|
|
200
|
+
createdByUserType: "user" | "system";
|
|
189
201
|
createdAt: string;
|
|
190
202
|
createdBy: string;
|
|
203
|
+
declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
|
|
204
|
+
status: "Requested" | "Accepted" | "Rejected";
|
|
205
|
+
type: "EDIT";
|
|
206
|
+
content: {
|
|
207
|
+
comment?: string | undefined;
|
|
208
|
+
};
|
|
191
209
|
createdByRole?: string | undefined;
|
|
192
210
|
createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
193
211
|
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
194
|
-
declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
|
|
195
212
|
annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
|
|
196
|
-
status: "Accepted" | "Rejected" | "Requested";
|
|
197
213
|
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
|
-
};
|
|
205
214
|
} | {
|
|
206
215
|
id: string & import("zod").$brand<"UUID">;
|
|
207
216
|
transactionId: string;
|
|
208
|
-
createdByUserType: "
|
|
217
|
+
createdByUserType: "user" | "system";
|
|
209
218
|
createdAt: string;
|
|
210
219
|
createdBy: string;
|
|
220
|
+
declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
|
|
221
|
+
status: "Requested" | "Accepted" | "Rejected";
|
|
222
|
+
type: "PRINT_CERTIFICATE";
|
|
211
223
|
createdByRole?: string | undefined;
|
|
212
224
|
createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
213
225
|
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
214
|
-
declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
|
|
215
226
|
annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
|
|
216
|
-
status: "Accepted" | "Rejected" | "Requested";
|
|
217
227
|
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
218
|
-
|
|
228
|
+
content?: {
|
|
229
|
+
templateId?: string | undefined;
|
|
230
|
+
} | null | undefined;
|
|
219
231
|
} | {
|
|
220
232
|
id: string & import("zod").$brand<"UUID">;
|
|
221
233
|
transactionId: string;
|
|
222
|
-
createdByUserType: "
|
|
234
|
+
createdByUserType: "user" | "system";
|
|
223
235
|
createdAt: string;
|
|
224
236
|
createdBy: string;
|
|
237
|
+
declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
|
|
238
|
+
status: "Requested" | "Accepted" | "Rejected";
|
|
239
|
+
type: "REQUEST_CORRECTION";
|
|
225
240
|
createdByRole?: string | undefined;
|
|
226
241
|
createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
227
242
|
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
228
|
-
declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
|
|
229
243
|
annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
|
|
230
|
-
status: "Accepted" | "Rejected" | "Requested";
|
|
231
244
|
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
232
|
-
type: "MARK_AS_DUPLICATE";
|
|
233
|
-
content?: {
|
|
234
|
-
duplicateOf: string & import("zod").$brand<"UUID">;
|
|
235
|
-
} | undefined;
|
|
236
245
|
} | {
|
|
237
246
|
id: string & import("zod").$brand<"UUID">;
|
|
238
247
|
transactionId: string;
|
|
239
|
-
createdByUserType: "
|
|
248
|
+
createdByUserType: "user" | "system";
|
|
240
249
|
createdAt: string;
|
|
241
250
|
createdBy: string;
|
|
251
|
+
declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
|
|
252
|
+
status: "Requested" | "Accepted" | "Rejected";
|
|
253
|
+
type: "CUSTOM";
|
|
254
|
+
customActionType: string;
|
|
242
255
|
createdByRole?: string | undefined;
|
|
243
256
|
createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
244
257
|
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
245
|
-
declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
|
|
246
258
|
annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
|
|
247
|
-
status: "Accepted" | "Rejected" | "Requested";
|
|
248
259
|
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
249
|
-
type: "ARCHIVE";
|
|
250
|
-
content: {
|
|
251
|
-
reason: string;
|
|
252
|
-
};
|
|
253
260
|
} | {
|
|
254
261
|
id: string & import("zod").$brand<"UUID">;
|
|
255
262
|
transactionId: string;
|
|
256
|
-
createdByUserType: "
|
|
263
|
+
createdByUserType: "user" | "system";
|
|
257
264
|
createdAt: string;
|
|
258
265
|
createdBy: string;
|
|
266
|
+
declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
|
|
267
|
+
status: "Requested" | "Accepted" | "Rejected";
|
|
268
|
+
type: "CREATE";
|
|
259
269
|
createdByRole?: string | undefined;
|
|
260
270
|
createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
261
271
|
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
262
|
-
declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
|
|
263
272
|
annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
|
|
264
|
-
status: "Accepted" | "Rejected" | "Requested";
|
|
265
273
|
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
266
|
-
type: "UNARCHIVE";
|
|
267
274
|
} | {
|
|
268
275
|
id: string & import("zod").$brand<"UUID">;
|
|
269
276
|
transactionId: string;
|
|
270
|
-
createdByUserType: "
|
|
277
|
+
createdByUserType: "user" | "system";
|
|
271
278
|
createdAt: string;
|
|
272
279
|
createdBy: string;
|
|
280
|
+
declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
|
|
281
|
+
status: "Requested" | "Accepted" | "Rejected";
|
|
282
|
+
type: "REJECT";
|
|
283
|
+
content: {
|
|
284
|
+
reason: string;
|
|
285
|
+
};
|
|
273
286
|
createdByRole?: string | undefined;
|
|
274
287
|
createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
275
288
|
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
276
|
-
declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
|
|
277
289
|
annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
|
|
278
|
-
status: "Accepted" | "Rejected" | "Requested";
|
|
279
290
|
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
280
|
-
type: "NOTIFY";
|
|
281
291
|
} | {
|
|
282
292
|
id: string & import("zod").$brand<"UUID">;
|
|
283
293
|
transactionId: string;
|
|
284
|
-
createdByUserType: "
|
|
294
|
+
createdByUserType: "user" | "system";
|
|
285
295
|
createdAt: string;
|
|
286
296
|
createdBy: string;
|
|
297
|
+
declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
|
|
298
|
+
status: "Requested" | "Accepted" | "Rejected";
|
|
299
|
+
type: "MARK_AS_NOT_DUPLICATE";
|
|
287
300
|
createdByRole?: string | undefined;
|
|
288
301
|
createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
289
302
|
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
290
|
-
declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
|
|
291
303
|
annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
|
|
292
|
-
status: "Accepted" | "Rejected" | "Requested";
|
|
293
304
|
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
294
|
-
type: "REGISTER";
|
|
295
|
-
registrationNumber?: string | undefined;
|
|
296
305
|
} | {
|
|
297
306
|
id: string & import("zod").$brand<"UUID">;
|
|
298
307
|
transactionId: string;
|
|
299
|
-
createdByUserType: "
|
|
308
|
+
createdByUserType: "user" | "system";
|
|
300
309
|
createdAt: string;
|
|
301
310
|
createdBy: string;
|
|
311
|
+
declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
|
|
312
|
+
status: "Requested" | "Accepted" | "Rejected";
|
|
313
|
+
type: "MARK_AS_DUPLICATE";
|
|
302
314
|
createdByRole?: string | undefined;
|
|
303
315
|
createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
304
316
|
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
305
|
-
declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
|
|
306
317
|
annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
|
|
307
|
-
status: "Accepted" | "Rejected" | "Requested";
|
|
308
318
|
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
309
|
-
|
|
319
|
+
content?: {
|
|
320
|
+
duplicateOf: string & import("zod").$brand<"UUID">;
|
|
321
|
+
} | undefined;
|
|
310
322
|
} | {
|
|
311
323
|
id: string & import("zod").$brand<"UUID">;
|
|
312
324
|
transactionId: string;
|
|
313
|
-
createdByUserType: "
|
|
325
|
+
createdByUserType: "user" | "system";
|
|
314
326
|
createdAt: string;
|
|
315
327
|
createdBy: string;
|
|
328
|
+
declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
|
|
329
|
+
status: "Requested" | "Accepted" | "Rejected";
|
|
330
|
+
type: "ARCHIVE";
|
|
331
|
+
content: {
|
|
332
|
+
reason: string;
|
|
333
|
+
};
|
|
316
334
|
createdByRole?: string | undefined;
|
|
317
335
|
createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
318
336
|
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
319
|
-
declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
|
|
320
337
|
annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
|
|
321
|
-
status: "Accepted" | "Rejected" | "Requested";
|
|
322
338
|
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
323
|
-
type: "ASSIGN";
|
|
324
|
-
assignedTo: string;
|
|
325
339
|
} | {
|
|
326
340
|
id: string & import("zod").$brand<"UUID">;
|
|
327
341
|
transactionId: string;
|
|
328
|
-
createdByUserType: "
|
|
342
|
+
createdByUserType: "user" | "system";
|
|
329
343
|
createdAt: string;
|
|
330
344
|
createdBy: string;
|
|
345
|
+
declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
|
|
346
|
+
status: "Requested" | "Accepted" | "Rejected";
|
|
347
|
+
type: "UNARCHIVE";
|
|
331
348
|
createdByRole?: string | undefined;
|
|
332
349
|
createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
333
350
|
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
334
|
-
declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
|
|
335
351
|
annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
|
|
336
|
-
status: "Accepted" | "Rejected" | "Requested";
|
|
337
352
|
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
338
|
-
type: "REQUEST_CORRECTION";
|
|
339
353
|
} | {
|
|
340
354
|
id: string & import("zod").$brand<"UUID">;
|
|
341
355
|
transactionId: string;
|
|
342
|
-
createdByUserType: "
|
|
356
|
+
createdByUserType: "user" | "system";
|
|
343
357
|
createdAt: string;
|
|
344
358
|
createdBy: string;
|
|
359
|
+
declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
|
|
360
|
+
status: "Requested" | "Accepted" | "Rejected";
|
|
361
|
+
type: "NOTIFY";
|
|
345
362
|
createdByRole?: string | undefined;
|
|
346
363
|
createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
347
364
|
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
348
|
-
declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
|
|
349
365
|
annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
|
|
350
|
-
status: "Accepted" | "Rejected" | "Requested";
|
|
351
366
|
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
352
|
-
type: "APPROVE_CORRECTION";
|
|
353
|
-
requestId: string;
|
|
354
|
-
content?: {
|
|
355
|
-
immediateCorrection?: boolean | undefined;
|
|
356
|
-
} | undefined;
|
|
357
367
|
} | {
|
|
358
368
|
id: string & import("zod").$brand<"UUID">;
|
|
359
369
|
transactionId: string;
|
|
360
|
-
createdByUserType: "
|
|
370
|
+
createdByUserType: "user" | "system";
|
|
361
371
|
createdAt: string;
|
|
362
372
|
createdBy: string;
|
|
373
|
+
declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
|
|
374
|
+
status: "Requested" | "Accepted" | "Rejected";
|
|
375
|
+
type: "DECLARE";
|
|
363
376
|
createdByRole?: string | undefined;
|
|
364
377
|
createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
365
378
|
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
366
|
-
declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
|
|
367
379
|
annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
|
|
368
|
-
status: "Accepted" | "Rejected" | "Requested";
|
|
369
380
|
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
370
|
-
type: "REJECT_CORRECTION";
|
|
371
|
-
requestId: string;
|
|
372
|
-
content: {
|
|
373
|
-
reason: string;
|
|
374
|
-
};
|
|
375
381
|
} | {
|
|
376
382
|
id: string & import("zod").$brand<"UUID">;
|
|
377
383
|
transactionId: string;
|
|
378
|
-
createdByUserType: "
|
|
384
|
+
createdByUserType: "user" | "system";
|
|
379
385
|
createdAt: string;
|
|
380
386
|
createdBy: string;
|
|
387
|
+
declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
|
|
388
|
+
status: "Requested" | "Accepted" | "Rejected";
|
|
389
|
+
type: "ASSIGN";
|
|
390
|
+
assignedTo: string;
|
|
381
391
|
createdByRole?: string | undefined;
|
|
382
392
|
createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
383
393
|
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
384
|
-
declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
|
|
385
394
|
annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
|
|
386
|
-
status: "Accepted" | "Rejected" | "Requested";
|
|
387
395
|
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
388
|
-
type: "UNASSIGN";
|
|
389
396
|
} | {
|
|
390
397
|
id: string & import("zod").$brand<"UUID">;
|
|
391
398
|
transactionId: string;
|
|
392
|
-
createdByUserType: "
|
|
399
|
+
createdByUserType: "user" | "system";
|
|
393
400
|
createdAt: string;
|
|
394
401
|
createdBy: string;
|
|
402
|
+
declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
|
|
403
|
+
status: "Requested" | "Accepted" | "Rejected";
|
|
404
|
+
type: "APPROVE_CORRECTION";
|
|
405
|
+
requestId: string;
|
|
395
406
|
createdByRole?: string | undefined;
|
|
396
407
|
createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
397
408
|
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
398
|
-
declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
|
|
399
409
|
annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
|
|
400
|
-
status: "Accepted" | "Rejected" | "Requested";
|
|
401
410
|
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
402
|
-
type: "PRINT_CERTIFICATE";
|
|
403
411
|
content?: {
|
|
404
|
-
|
|
405
|
-
} |
|
|
412
|
+
immediateCorrection?: boolean | undefined;
|
|
413
|
+
} | undefined;
|
|
406
414
|
} | {
|
|
407
415
|
id: string & import("zod").$brand<"UUID">;
|
|
408
416
|
transactionId: string;
|
|
409
|
-
createdByUserType: "
|
|
417
|
+
createdByUserType: "user" | "system";
|
|
410
418
|
createdAt: string;
|
|
411
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
|
+
};
|
|
412
427
|
createdByRole?: string | undefined;
|
|
413
428
|
createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
414
429
|
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
415
|
-
declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
|
|
416
430
|
annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
|
|
417
|
-
status: "Accepted" | "Rejected" | "Requested";
|
|
418
431
|
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
419
|
-
type: "READ";
|
|
420
432
|
} | {
|
|
421
433
|
id: string & import("zod").$brand<"UUID">;
|
|
422
434
|
transactionId: string;
|
|
423
|
-
createdByUserType: "
|
|
435
|
+
createdByUserType: "user" | "system";
|
|
424
436
|
createdAt: string;
|
|
425
437
|
createdBy: string;
|
|
438
|
+
declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
|
|
439
|
+
status: "Requested" | "Accepted" | "Rejected";
|
|
440
|
+
type: "UNASSIGN";
|
|
426
441
|
createdByRole?: string | undefined;
|
|
427
442
|
createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
428
443
|
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
429
|
-
declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
|
|
430
444
|
annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
|
|
431
|
-
status: "Accepted" | "Rejected" | "Requested";
|
|
432
445
|
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
433
|
-
type: "EDIT";
|
|
434
|
-
content: {
|
|
435
|
-
comment?: string | undefined;
|
|
436
|
-
};
|
|
437
446
|
} | {
|
|
438
447
|
id: string & import("zod").$brand<"UUID">;
|
|
439
448
|
transactionId: string;
|
|
440
|
-
createdByUserType: "
|
|
449
|
+
createdByUserType: "user" | "system";
|
|
441
450
|
createdAt: string;
|
|
442
451
|
createdBy: string;
|
|
452
|
+
declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
|
|
453
|
+
status: "Requested" | "Accepted" | "Rejected";
|
|
454
|
+
type: "READ";
|
|
443
455
|
createdByRole?: string | undefined;
|
|
444
456
|
createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
445
457
|
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
446
|
-
declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
|
|
447
458
|
annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
|
|
448
|
-
status: "Accepted" | "Rejected" | "Requested";
|
|
449
459
|
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
450
|
-
type: "CUSTOM";
|
|
451
|
-
customActionType: string;
|
|
452
460
|
} | {
|
|
453
461
|
id: string & import("zod").$brand<"UUID">;
|
|
454
462
|
transactionId: string;
|
|
455
|
-
createdByUserType: "
|
|
463
|
+
createdByUserType: "user" | "system";
|
|
456
464
|
createdAt: string;
|
|
457
465
|
createdBy: string;
|
|
466
|
+
type: "CUSTOM" | "NOTIFY" | "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "UNARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION";
|
|
467
|
+
status: "Rejected";
|
|
458
468
|
createdByRole?: string | undefined;
|
|
459
469
|
createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
460
470
|
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
461
471
|
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
472
|
} | undefined;
|
|
465
473
|
/**
|
|
466
474
|
* 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<{
|