@opencrvs/toolkit 1.9.13-rc.fc5374d → 2.0.0-rc.e0918cb
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/build.sh +13 -0
- package/dist/api/index.d.ts.map +1 -1
- package/dist/application-config/index.d.ts +2 -0
- package/dist/application-config/index.d.ts.map +1 -0
- package/dist/application-config/index.js +2128 -0
- package/dist/cli.d.ts +2 -0
- package/dist/cli.d.ts.map +1 -0
- package/dist/cli.js +3633 -0
- package/dist/commons/api/router.d.ts +3438 -2300
- package/dist/commons/application-config/index.d.ts +84 -0
- package/dist/commons/conditionals/conditionals.d.ts +27 -3
- package/dist/commons/conditionals/validate.d.ts +13 -3
- package/dist/commons/events/ActionConfig.d.ts +415 -1555
- package/dist/commons/events/ActionDocument.d.ts +888 -1941
- package/dist/commons/events/ActionInput.d.ts +277 -1073
- package/dist/commons/events/ActionType.d.ts +91 -11
- package/dist/commons/events/AdvancedSearchConfig.d.ts +294 -1496
- package/dist/commons/events/AuditLog.d.ts +405 -0
- package/dist/commons/events/CompositeFieldValue.d.ts +30 -190
- package/dist/commons/events/Conditional.d.ts +26 -38
- package/dist/commons/events/Constants.d.ts +1 -1
- package/dist/commons/events/CountryConfigQueryInput.d.ts +1592 -4471
- package/dist/commons/events/DeduplicationConfig.d.ts +15 -171
- package/dist/commons/events/Draft.d.ts +72 -107
- package/dist/commons/events/DynamicFieldValue.d.ts +12 -78
- package/dist/commons/events/EventConfig.d.ts +37 -2420
- package/dist/commons/events/EventConfigInput.d.ts +0 -3
- package/dist/commons/events/EventDocument.d.ts +354 -1366
- package/dist/commons/events/EventIndex.d.ts +212 -1010
- package/dist/commons/events/EventInput.d.ts +3 -8
- package/dist/commons/events/EventMetadata.d.ts +130 -357
- package/dist/commons/events/FieldConfig.d.ts +2892 -12892
- package/dist/commons/events/FieldType.d.ts +26 -4
- package/dist/commons/events/FieldTypeMapping.d.ts +314 -906
- package/dist/commons/events/FieldValue.d.ts +149 -527
- package/dist/commons/events/FileUtils.d.ts +2 -2
- package/dist/commons/events/Flag.d.ts +67 -0
- package/dist/commons/events/FormConfig.d.ts +54 -721
- package/dist/commons/events/PageConfig.d.ts +58 -320
- package/dist/commons/events/PlainDate.d.ts +1 -1
- package/dist/commons/events/SummaryConfig.d.ts +14 -161
- package/dist/commons/events/TemplateConfig.d.ts +2 -3
- package/dist/commons/events/TranslationConfig.d.ts +2 -2
- package/dist/commons/events/WorkqueueColumnConfig.d.ts +74 -37
- package/dist/commons/events/WorkqueueConfig.d.ts +2208 -7553
- package/dist/commons/events/deduplication.d.ts +3 -3
- package/dist/commons/events/defineConfig.d.ts +2 -247
- package/dist/commons/events/eventConfigValidation.d.ts +8 -0
- package/dist/commons/events/index.d.ts +3 -0
- package/dist/commons/events/locations.d.ts +57 -20
- package/dist/commons/events/scopes.d.ts +36 -35
- package/dist/commons/events/state/availableActions.d.ts +7 -2
- package/dist/commons/events/state/flags.d.ts +21 -3
- package/dist/commons/events/state/index.d.ts +30 -27
- package/dist/commons/events/state/utils.d.ts +190 -172
- package/dist/commons/events/test.utils.d.ts +52 -11
- package/dist/commons/events/transactions.d.ts +1 -1
- package/dist/commons/events/utils.d.ts +373 -273
- package/dist/commons/notification/UserNotifications.d.ts +61 -637
- package/dist/conditionals/index.d.ts.map +1 -1
- package/dist/conditionals/index.js +302 -14
- package/dist/events/deduplication.d.ts +3 -3
- package/dist/events/index.js +2860 -2115
- package/dist/migrations/v2.0/add-birth-certificate-issuance-flag.d.ts +3 -0
- package/dist/migrations/v2.0/add-birth-certificate-issuance-flag.d.ts.map +1 -0
- package/dist/migrations/v2.0/add-birth-certificate-issuance-flag.js +405 -0
- package/dist/migrations/v2.0/checkout-upstream-files.d.ts +3 -0
- package/dist/migrations/v2.0/checkout-upstream-files.d.ts.map +1 -0
- package/dist/migrations/v2.0/checkout-upstream-files.js +143 -0
- package/dist/migrations/v2.0/convert-config-files-to-ts.d.ts +2 -0
- package/dist/migrations/v2.0/convert-config-files-to-ts.d.ts.map +1 -0
- package/dist/migrations/v2.0/convert-config-files-to-ts.js +829 -0
- package/dist/migrations/v2.0/convert-paragraph-to-heading.d.ts +3 -0
- package/dist/migrations/v2.0/convert-paragraph-to-heading.d.ts.map +1 -0
- package/dist/migrations/v2.0/convert-paragraph-to-heading.js +159 -0
- package/dist/migrations/v2.0/create-events-index.d.ts +3 -0
- package/dist/migrations/v2.0/create-events-index.d.ts.map +1 -0
- package/dist/migrations/v2.0/create-events-index.js +326 -0
- package/dist/migrations/v2.0/index.d.ts +7 -0
- package/dist/migrations/v2.0/index.d.ts.map +1 -0
- package/dist/migrations/v2.0/index.js +3572 -0
- package/dist/migrations/v2.0/make-built-in-validate-actions-custom.d.ts +3 -0
- package/dist/migrations/v2.0/make-built-in-validate-actions-custom.d.ts.map +1 -0
- package/dist/migrations/v2.0/make-built-in-validate-actions-custom.js +344 -0
- package/dist/migrations/v2.0/migrate-scopes.d.ts +3 -0
- package/dist/migrations/v2.0/migrate-scopes.d.ts.map +1 -0
- package/dist/migrations/v2.0/migrate-scopes.js +282 -0
- package/dist/migrations/v2.0/migrate-validated-workqueue-status-to-flag.d.ts +3 -0
- package/dist/migrations/v2.0/migrate-validated-workqueue-status-to-flag.d.ts.map +1 -0
- package/dist/migrations/v2.0/migrate-validated-workqueue-status-to-flag.js +268 -0
- package/dist/migrations/v2.0/migrate-workqueue-configs.d.ts +3 -0
- package/dist/migrations/v2.0/migrate-workqueue-configs.d.ts.map +1 -0
- package/dist/migrations/v2.0/migrate-workqueue-configs.js +237 -0
- package/dist/migrations/v2.0/remove-delete-actions.d.ts +3 -0
- package/dist/migrations/v2.0/remove-delete-actions.d.ts.map +1 -0
- package/dist/migrations/v2.0/remove-delete-actions.js +157 -0
- package/dist/migrations/v2.0/remove-demo-scope.d.ts +3 -0
- package/dist/migrations/v2.0/remove-demo-scope.d.ts.map +1 -0
- package/dist/migrations/v2.0/remove-demo-scope.js +75 -0
- package/dist/migrations/v2.0/remove-deprecated-imports.d.ts +3 -0
- package/dist/migrations/v2.0/remove-deprecated-imports.d.ts.map +1 -0
- package/dist/migrations/v2.0/remove-deprecated-imports.js +97 -0
- package/dist/migrations/v2.0/remove-hearth-migrations.d.ts +3 -0
- package/dist/migrations/v2.0/remove-hearth-migrations.d.ts.map +1 -0
- package/dist/migrations/v2.0/remove-hearth-migrations.js +78 -0
- package/dist/migrations/v2.0/remove-pending-certification-flag.d.ts +3 -0
- package/dist/migrations/v2.0/remove-pending-certification-flag.d.ts.map +1 -0
- package/dist/migrations/v2.0/remove-pending-certification-flag.js +110 -0
- package/dist/migrations/v2.0/remove-review-from-register-action.d.ts +3 -0
- package/dist/migrations/v2.0/remove-review-from-register-action.d.ts.map +1 -0
- package/dist/migrations/v2.0/remove-review-from-register-action.js +164 -0
- package/dist/migrations/v2.0/rename-api-paths.d.ts +3 -0
- package/dist/migrations/v2.0/rename-api-paths.d.ts.map +1 -0
- package/dist/migrations/v2.0/rename-api-paths.js +188 -0
- package/dist/migrations/v2.0/rename-location-parent-id.d.ts +3 -0
- package/dist/migrations/v2.0/rename-location-parent-id.d.ts.map +1 -0
- package/dist/migrations/v2.0/rename-location-parent-id.js +181 -0
- package/dist/migrations/v2.0/simplify-analytics-precalculations.d.ts +3 -0
- package/dist/migrations/v2.0/simplify-analytics-precalculations.d.ts.map +1 -0
- package/dist/migrations/v2.0/simplify-analytics-precalculations.js +196 -0
- package/dist/notification/index.d.ts.map +1 -1
- package/dist/notification/index.js +2076 -1767
- package/dist/scopes/index.d.ts +640 -353
- package/dist/scopes/index.d.ts.map +1 -1
- package/dist/scopes/index.js +340 -300
- package/opencrvs-toolkit-2.0.0-rc.e0918cb.tgz +0 -0
- package/package.json +18 -8
- package/tsconfig.json +12 -2
- package/tsconfig.tsbuildinfo +1 -1
- package/dist/commons/events/CreatedAtLocation.d.ts +0 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ActionType, DeclarationActionType } from './ActionType';
|
|
1
|
+
import { ActionType, DeclarationActionType, DisplayableAction } from './ActionType';
|
|
2
2
|
import { EventConfig } from './EventConfig';
|
|
3
3
|
import { FieldConfig, FieldReference } from './FieldConfig';
|
|
4
4
|
import { Action, ActionDocument, ActionUpdate, EventState } from './ActionDocument';
|
|
@@ -7,56 +7,99 @@ import { ValidatorContext } from '../conditionals/validate';
|
|
|
7
7
|
import { Draft } from './Draft';
|
|
8
8
|
import { EventDocument } from './EventDocument';
|
|
9
9
|
import { UUID } from '../uuid';
|
|
10
|
-
import { ActionConfig } from './ActionConfig';
|
|
10
|
+
import { ActionConfig, ActionConfigTypes } from './ActionConfig';
|
|
11
11
|
import { FormConfig } from './FormConfig';
|
|
12
12
|
import { PlainDate, SelectDateRangeValue } from './FieldValue';
|
|
13
|
-
export declare function ageToDate(age: number, asOfDate: PlainDate): string & import("zod")
|
|
13
|
+
export declare function ageToDate(age: number, asOfDate: PlainDate): string & import("zod").$brand<"PlainDate">;
|
|
14
14
|
export declare function getDeclarationFields(configuration: EventConfig): FieldConfig[];
|
|
15
15
|
export declare function getDeclarationPages(configuration: EventConfig): {
|
|
16
|
-
type: "FORM";
|
|
17
16
|
id: string;
|
|
18
|
-
title:
|
|
19
|
-
|
|
17
|
+
title: {
|
|
18
|
+
id: string;
|
|
19
|
+
defaultMessage: string;
|
|
20
|
+
description: string;
|
|
21
|
+
};
|
|
20
22
|
requireCompletionToContinue: boolean;
|
|
21
|
-
|
|
23
|
+
fields: FieldConfig[];
|
|
24
|
+
type: "FORM";
|
|
25
|
+
conditional?: any;
|
|
22
26
|
}[];
|
|
23
27
|
export declare function getDeclaration(configuration: EventConfig): {
|
|
24
|
-
label:
|
|
28
|
+
label: {
|
|
29
|
+
id: string;
|
|
30
|
+
defaultMessage: string;
|
|
31
|
+
description: string;
|
|
32
|
+
};
|
|
25
33
|
pages: {
|
|
26
|
-
type: "FORM";
|
|
27
34
|
id: string;
|
|
28
|
-
title:
|
|
29
|
-
|
|
35
|
+
title: {
|
|
36
|
+
id: string;
|
|
37
|
+
defaultMessage: string;
|
|
38
|
+
description: string;
|
|
39
|
+
};
|
|
30
40
|
requireCompletionToContinue: boolean;
|
|
31
|
-
|
|
41
|
+
fields: FieldConfig[];
|
|
42
|
+
type: "FORM";
|
|
43
|
+
conditional?: any;
|
|
32
44
|
}[];
|
|
33
45
|
};
|
|
46
|
+
export declare function isActionConfigType(type: ActionType): type is ActionConfigTypes;
|
|
47
|
+
export declare function getActionConfig({ eventConfiguration, actionType, customActionType }: {
|
|
48
|
+
eventConfiguration: EventConfig;
|
|
49
|
+
actionType: DisplayableAction;
|
|
50
|
+
customActionType?: string;
|
|
51
|
+
}): ActionConfig | undefined;
|
|
52
|
+
export declare function getCustomActionFields(eventConfiguration: EventConfig, customActionType: string): FieldConfig[];
|
|
34
53
|
export declare function getPrintCertificatePages(configuration: EventConfig): ({
|
|
35
|
-
type: "FORM";
|
|
36
54
|
id: string;
|
|
37
|
-
title:
|
|
38
|
-
|
|
55
|
+
title: {
|
|
56
|
+
id: string;
|
|
57
|
+
defaultMessage: string;
|
|
58
|
+
description: string;
|
|
59
|
+
};
|
|
39
60
|
requireCompletionToContinue: boolean;
|
|
40
|
-
|
|
61
|
+
fields: FieldConfig[];
|
|
62
|
+
type: "FORM";
|
|
63
|
+
conditional?: any;
|
|
41
64
|
} | {
|
|
42
|
-
type: "VERIFICATION";
|
|
43
65
|
id: string;
|
|
44
|
-
title:
|
|
66
|
+
title: {
|
|
67
|
+
id: string;
|
|
68
|
+
defaultMessage: string;
|
|
69
|
+
description: string;
|
|
70
|
+
};
|
|
71
|
+
requireCompletionToContinue: boolean;
|
|
72
|
+
fields: FieldConfig[];
|
|
73
|
+
type: "VERIFICATION";
|
|
45
74
|
actions: {
|
|
75
|
+
verify: {
|
|
76
|
+
label: {
|
|
77
|
+
id: string;
|
|
78
|
+
defaultMessage: string;
|
|
79
|
+
description: string;
|
|
80
|
+
};
|
|
81
|
+
};
|
|
46
82
|
cancel: {
|
|
47
|
-
label:
|
|
83
|
+
label: {
|
|
84
|
+
id: string;
|
|
85
|
+
defaultMessage: string;
|
|
86
|
+
description: string;
|
|
87
|
+
};
|
|
48
88
|
confirmation: {
|
|
49
|
-
title:
|
|
50
|
-
|
|
89
|
+
title: {
|
|
90
|
+
id: string;
|
|
91
|
+
defaultMessage: string;
|
|
92
|
+
description: string;
|
|
93
|
+
};
|
|
94
|
+
body: {
|
|
95
|
+
id: string;
|
|
96
|
+
defaultMessage: string;
|
|
97
|
+
description: string;
|
|
98
|
+
};
|
|
51
99
|
};
|
|
52
100
|
};
|
|
53
|
-
verify: {
|
|
54
|
-
label: import("./TranslationConfig").TranslationConfig;
|
|
55
|
-
};
|
|
56
101
|
};
|
|
57
|
-
|
|
58
|
-
requireCompletionToContinue: boolean;
|
|
59
|
-
conditional?: import(".").JSONSchema | undefined;
|
|
102
|
+
conditional?: any;
|
|
60
103
|
})[];
|
|
61
104
|
export declare const getActionAnnotationFields: (actionConfig: ActionConfig) => FieldConfig[];
|
|
62
105
|
export declare function getAllUniqueFields(eventConfig: EventConfig): FieldConfig[];
|
|
@@ -66,9 +109,13 @@ export declare function getDeclarationFieldById(config: EventConfig, fieldId: st
|
|
|
66
109
|
*/
|
|
67
110
|
export declare const findRecordActionPages: (config: EventConfig, actionType: ActionType) => PageConfig[];
|
|
68
111
|
export declare function getActionReview(configuration: EventConfig, actionType: ActionType): {
|
|
69
|
-
title:
|
|
112
|
+
title: {
|
|
113
|
+
id: string;
|
|
114
|
+
defaultMessage: string;
|
|
115
|
+
description: string;
|
|
116
|
+
};
|
|
70
117
|
fields: FieldConfig[];
|
|
71
|
-
};
|
|
118
|
+
} | undefined;
|
|
72
119
|
export declare function getActionReviewFields(configuration: EventConfig, actionType: DeclarationActionType): FieldConfig[];
|
|
73
120
|
export declare function isPageVisible(page: PageConfig, formValues: ActionUpdate, context: ValidatorContext): boolean;
|
|
74
121
|
/**
|
|
@@ -84,7 +131,7 @@ export declare function isPageVisible(page: PageConfig, formValues: ActionUpdate
|
|
|
84
131
|
* * @param validatorContext - custom validation context
|
|
85
132
|
* @returns {Partial<T>} A new object containing only the values for visible fields
|
|
86
133
|
*/
|
|
87
|
-
export declare function omitHiddenFields<T extends EventState | ActionUpdate>(fields: FieldConfig[], formValues: T, validatorContext: ValidatorContext, includeHiddenFieldsWithNullValues?: boolean): Partial<T>;
|
|
134
|
+
export declare function omitHiddenFields<T extends EventState | ActionUpdate>(fields: FieldConfig[], formValues: T, validatorContext: ValidatorContext, includeHiddenFieldsWithNullValues?: boolean, declarationContext?: EventState): Partial<T>;
|
|
88
135
|
export declare function omitHiddenPaginatedFields<T extends EventState | ActionUpdate>(formConfig: FormConfig, values: T, validatorContext: ValidatorContext, includeHiddenFieldsWithNullValues?: boolean): Partial<Partial<T>>;
|
|
89
136
|
/**
|
|
90
137
|
*
|
|
@@ -104,7 +151,300 @@ export declare function omitHiddenAnnotationFields(actionConfig: ActionConfig, d
|
|
|
104
151
|
* @example { annotation: {'review.signature': { path: '/path.png', type: 'image/png' }}, { annotation: { foo: 'bar'}) } } => { annotation: { foo: 'bar' } }
|
|
105
152
|
*/
|
|
106
153
|
export declare function deepMerge<T extends Record<string, unknown>, K extends Record<string, unknown>>(currentDocument: T, actionDocument: K): T & K;
|
|
107
|
-
export declare function findLastAssignmentAction(actions: Action[]):
|
|
154
|
+
export declare function findLastAssignmentAction(actions: Action[]): {
|
|
155
|
+
id: string & import("zod").$brand<"UUID">;
|
|
156
|
+
transactionId: string;
|
|
157
|
+
createdByUserType: "user" | "system";
|
|
158
|
+
createdAt: string;
|
|
159
|
+
createdBy: string;
|
|
160
|
+
declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
|
|
161
|
+
status: "Requested" | "Accepted" | "Rejected";
|
|
162
|
+
type: "REGISTER";
|
|
163
|
+
createdByRole?: string | undefined;
|
|
164
|
+
createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
165
|
+
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
166
|
+
annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
|
|
167
|
+
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
168
|
+
registrationNumber?: string | undefined;
|
|
169
|
+
} | {
|
|
170
|
+
id: string & import("zod").$brand<"UUID">;
|
|
171
|
+
transactionId: string;
|
|
172
|
+
createdByUserType: "user" | "system";
|
|
173
|
+
createdAt: string;
|
|
174
|
+
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
|
+
createdByRole?: string | undefined;
|
|
185
|
+
createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
186
|
+
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
187
|
+
annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
|
|
188
|
+
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
189
|
+
} | {
|
|
190
|
+
id: string & import("zod").$brand<"UUID">;
|
|
191
|
+
transactionId: string;
|
|
192
|
+
createdByUserType: "user" | "system";
|
|
193
|
+
createdAt: string;
|
|
194
|
+
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
|
+
createdByRole?: string | undefined;
|
|
202
|
+
createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
203
|
+
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
204
|
+
annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
|
|
205
|
+
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
206
|
+
} | {
|
|
207
|
+
id: string & import("zod").$brand<"UUID">;
|
|
208
|
+
transactionId: string;
|
|
209
|
+
createdByUserType: "user" | "system";
|
|
210
|
+
createdAt: string;
|
|
211
|
+
createdBy: string;
|
|
212
|
+
declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
|
|
213
|
+
status: "Requested" | "Accepted" | "Rejected";
|
|
214
|
+
type: "PRINT_CERTIFICATE";
|
|
215
|
+
createdByRole?: string | undefined;
|
|
216
|
+
createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
217
|
+
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
218
|
+
annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
|
|
219
|
+
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
220
|
+
content?: {
|
|
221
|
+
templateId?: string | undefined;
|
|
222
|
+
} | null | undefined;
|
|
223
|
+
} | {
|
|
224
|
+
id: string & import("zod").$brand<"UUID">;
|
|
225
|
+
transactionId: string;
|
|
226
|
+
createdByUserType: "user" | "system";
|
|
227
|
+
createdAt: string;
|
|
228
|
+
createdBy: string;
|
|
229
|
+
declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
|
|
230
|
+
status: "Requested" | "Accepted" | "Rejected";
|
|
231
|
+
type: "REQUEST_CORRECTION";
|
|
232
|
+
createdByRole?: string | undefined;
|
|
233
|
+
createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
234
|
+
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
235
|
+
annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
|
|
236
|
+
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
237
|
+
} | {
|
|
238
|
+
id: string & import("zod").$brand<"UUID">;
|
|
239
|
+
transactionId: string;
|
|
240
|
+
createdByUserType: "user" | "system";
|
|
241
|
+
createdAt: string;
|
|
242
|
+
createdBy: string;
|
|
243
|
+
declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
|
|
244
|
+
status: "Requested" | "Accepted" | "Rejected";
|
|
245
|
+
type: "CUSTOM";
|
|
246
|
+
customActionType: string;
|
|
247
|
+
createdByRole?: string | undefined;
|
|
248
|
+
createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
249
|
+
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
250
|
+
annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
|
|
251
|
+
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
252
|
+
} | {
|
|
253
|
+
id: string & import("zod").$brand<"UUID">;
|
|
254
|
+
transactionId: string;
|
|
255
|
+
createdByUserType: "user" | "system";
|
|
256
|
+
createdAt: string;
|
|
257
|
+
createdBy: string;
|
|
258
|
+
declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
|
|
259
|
+
status: "Requested" | "Accepted" | "Rejected";
|
|
260
|
+
type: "CREATE";
|
|
261
|
+
createdByRole?: string | undefined;
|
|
262
|
+
createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
263
|
+
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
264
|
+
annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
|
|
265
|
+
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
266
|
+
} | {
|
|
267
|
+
id: string & import("zod").$brand<"UUID">;
|
|
268
|
+
transactionId: string;
|
|
269
|
+
createdByUserType: "user" | "system";
|
|
270
|
+
createdAt: string;
|
|
271
|
+
createdBy: string;
|
|
272
|
+
declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
|
|
273
|
+
status: "Requested" | "Accepted" | "Rejected";
|
|
274
|
+
type: "REJECT";
|
|
275
|
+
content: {
|
|
276
|
+
reason: string;
|
|
277
|
+
};
|
|
278
|
+
createdByRole?: string | undefined;
|
|
279
|
+
createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
280
|
+
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
281
|
+
annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
|
|
282
|
+
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
283
|
+
} | {
|
|
284
|
+
id: string & import("zod").$brand<"UUID">;
|
|
285
|
+
transactionId: string;
|
|
286
|
+
createdByUserType: "user" | "system";
|
|
287
|
+
createdAt: string;
|
|
288
|
+
createdBy: string;
|
|
289
|
+
declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
|
|
290
|
+
status: "Requested" | "Accepted" | "Rejected";
|
|
291
|
+
type: "MARK_AS_NOT_DUPLICATE";
|
|
292
|
+
createdByRole?: string | undefined;
|
|
293
|
+
createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
294
|
+
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
295
|
+
annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
|
|
296
|
+
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
297
|
+
} | {
|
|
298
|
+
id: string & import("zod").$brand<"UUID">;
|
|
299
|
+
transactionId: string;
|
|
300
|
+
createdByUserType: "user" | "system";
|
|
301
|
+
createdAt: string;
|
|
302
|
+
createdBy: string;
|
|
303
|
+
declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
|
|
304
|
+
status: "Requested" | "Accepted" | "Rejected";
|
|
305
|
+
type: "MARK_AS_DUPLICATE";
|
|
306
|
+
createdByRole?: string | undefined;
|
|
307
|
+
createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
308
|
+
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
309
|
+
annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
|
|
310
|
+
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
311
|
+
content?: {
|
|
312
|
+
duplicateOf: string & import("zod").$brand<"UUID">;
|
|
313
|
+
} | undefined;
|
|
314
|
+
} | {
|
|
315
|
+
id: string & import("zod").$brand<"UUID">;
|
|
316
|
+
transactionId: string;
|
|
317
|
+
createdByUserType: "user" | "system";
|
|
318
|
+
createdAt: string;
|
|
319
|
+
createdBy: string;
|
|
320
|
+
declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
|
|
321
|
+
status: "Requested" | "Accepted" | "Rejected";
|
|
322
|
+
type: "ARCHIVE";
|
|
323
|
+
content: {
|
|
324
|
+
reason: string;
|
|
325
|
+
};
|
|
326
|
+
createdByRole?: string | undefined;
|
|
327
|
+
createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
328
|
+
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
329
|
+
annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
|
|
330
|
+
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
331
|
+
} | {
|
|
332
|
+
id: string & import("zod").$brand<"UUID">;
|
|
333
|
+
transactionId: string;
|
|
334
|
+
createdByUserType: "user" | "system";
|
|
335
|
+
createdAt: string;
|
|
336
|
+
createdBy: string;
|
|
337
|
+
declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
|
|
338
|
+
status: "Requested" | "Accepted" | "Rejected";
|
|
339
|
+
type: "NOTIFY";
|
|
340
|
+
createdByRole?: string | undefined;
|
|
341
|
+
createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
342
|
+
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
343
|
+
annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
|
|
344
|
+
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
345
|
+
} | {
|
|
346
|
+
id: string & import("zod").$brand<"UUID">;
|
|
347
|
+
transactionId: string;
|
|
348
|
+
createdByUserType: "user" | "system";
|
|
349
|
+
createdAt: string;
|
|
350
|
+
createdBy: string;
|
|
351
|
+
declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
|
|
352
|
+
status: "Requested" | "Accepted" | "Rejected";
|
|
353
|
+
type: "DECLARE";
|
|
354
|
+
createdByRole?: string | undefined;
|
|
355
|
+
createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
356
|
+
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
357
|
+
annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
|
|
358
|
+
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
359
|
+
} | {
|
|
360
|
+
id: string & import("zod").$brand<"UUID">;
|
|
361
|
+
transactionId: string;
|
|
362
|
+
createdByUserType: "user" | "system";
|
|
363
|
+
createdAt: string;
|
|
364
|
+
createdBy: string;
|
|
365
|
+
declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
|
|
366
|
+
status: "Requested" | "Accepted" | "Rejected";
|
|
367
|
+
type: "ASSIGN";
|
|
368
|
+
assignedTo: string;
|
|
369
|
+
createdByRole?: string | undefined;
|
|
370
|
+
createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
371
|
+
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
372
|
+
annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
|
|
373
|
+
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
374
|
+
} | {
|
|
375
|
+
id: string & import("zod").$brand<"UUID">;
|
|
376
|
+
transactionId: string;
|
|
377
|
+
createdByUserType: "user" | "system";
|
|
378
|
+
createdAt: string;
|
|
379
|
+
createdBy: string;
|
|
380
|
+
declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
|
|
381
|
+
status: "Requested" | "Accepted" | "Rejected";
|
|
382
|
+
type: "APPROVE_CORRECTION";
|
|
383
|
+
requestId: string;
|
|
384
|
+
createdByRole?: string | undefined;
|
|
385
|
+
createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
386
|
+
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
387
|
+
annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
|
|
388
|
+
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
389
|
+
} | {
|
|
390
|
+
id: string & import("zod").$brand<"UUID">;
|
|
391
|
+
transactionId: string;
|
|
392
|
+
createdByUserType: "user" | "system";
|
|
393
|
+
createdAt: string;
|
|
394
|
+
createdBy: string;
|
|
395
|
+
declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
|
|
396
|
+
status: "Requested" | "Accepted" | "Rejected";
|
|
397
|
+
type: "REJECT_CORRECTION";
|
|
398
|
+
requestId: string;
|
|
399
|
+
content: {
|
|
400
|
+
reason: string;
|
|
401
|
+
};
|
|
402
|
+
createdByRole?: string | undefined;
|
|
403
|
+
createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
404
|
+
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
405
|
+
annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
|
|
406
|
+
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
407
|
+
} | {
|
|
408
|
+
id: string & import("zod").$brand<"UUID">;
|
|
409
|
+
transactionId: string;
|
|
410
|
+
createdByUserType: "user" | "system";
|
|
411
|
+
createdAt: string;
|
|
412
|
+
createdBy: string;
|
|
413
|
+
declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
|
|
414
|
+
status: "Requested" | "Accepted" | "Rejected";
|
|
415
|
+
type: "UNASSIGN";
|
|
416
|
+
createdByRole?: string | undefined;
|
|
417
|
+
createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
418
|
+
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
419
|
+
annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
|
|
420
|
+
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
421
|
+
} | {
|
|
422
|
+
id: string & import("zod").$brand<"UUID">;
|
|
423
|
+
transactionId: string;
|
|
424
|
+
createdByUserType: "user" | "system";
|
|
425
|
+
createdAt: string;
|
|
426
|
+
createdBy: string;
|
|
427
|
+
declaration: Record<string, import("./FieldValue").FieldUpdateValue>;
|
|
428
|
+
status: "Requested" | "Accepted" | "Rejected";
|
|
429
|
+
type: "READ";
|
|
430
|
+
createdByRole?: string | undefined;
|
|
431
|
+
createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
432
|
+
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
433
|
+
annotation?: Record<string, import("./FieldValue").FieldUpdateValue> | null | undefined;
|
|
434
|
+
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
435
|
+
} | {
|
|
436
|
+
id: string & import("zod").$brand<"UUID">;
|
|
437
|
+
transactionId: string;
|
|
438
|
+
createdByUserType: "user" | "system";
|
|
439
|
+
createdAt: string;
|
|
440
|
+
createdBy: string;
|
|
441
|
+
type: "CUSTOM" | "NOTIFY" | "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION";
|
|
442
|
+
status: "Rejected";
|
|
443
|
+
createdByRole?: string | undefined;
|
|
444
|
+
createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
445
|
+
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
446
|
+
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
447
|
+
} | undefined;
|
|
108
448
|
/**
|
|
109
449
|
* Tell compiler that accessing record with arbitrary key might result to undefined
|
|
110
450
|
* Use when you **cannot guarantee** that key exists in the record
|
|
@@ -212,248 +552,7 @@ export declare const findAllFields: (config: EventConfig) => FieldConfig[];
|
|
|
212
552
|
* @returns the value of the object at the given path.
|
|
213
553
|
*/
|
|
214
554
|
export declare function getMixedPath<T = unknown>(obj: Record<string, unknown>, path: string, defaultValue?: T | undefined): T | undefined;
|
|
215
|
-
export declare function getEventConfigById(eventConfigs: EventConfig[], id: string):
|
|
216
|
-
id: string;
|
|
217
|
-
title: import("./TranslationConfig").TranslationConfig;
|
|
218
|
-
declaration: {
|
|
219
|
-
label: import("./TranslationConfig").TranslationConfig;
|
|
220
|
-
pages: {
|
|
221
|
-
type: "FORM";
|
|
222
|
-
id: string;
|
|
223
|
-
title: import("./TranslationConfig").TranslationConfig;
|
|
224
|
-
fields: FieldConfig[];
|
|
225
|
-
requireCompletionToContinue: boolean;
|
|
226
|
-
conditional?: import(".").JSONSchema | undefined;
|
|
227
|
-
}[];
|
|
228
|
-
};
|
|
229
|
-
actions: ({
|
|
230
|
-
type: "READ";
|
|
231
|
-
label: import("./TranslationConfig").TranslationConfig;
|
|
232
|
-
review: {
|
|
233
|
-
title: import("./TranslationConfig").TranslationConfig;
|
|
234
|
-
fields: FieldConfig[];
|
|
235
|
-
};
|
|
236
|
-
} | {
|
|
237
|
-
type: "DECLARE";
|
|
238
|
-
label: import("./TranslationConfig").TranslationConfig;
|
|
239
|
-
review: {
|
|
240
|
-
title: import("./TranslationConfig").TranslationConfig;
|
|
241
|
-
fields: FieldConfig[];
|
|
242
|
-
};
|
|
243
|
-
deduplication?: {
|
|
244
|
-
id: string;
|
|
245
|
-
query: import("./DeduplicationConfig").ClauseOutput;
|
|
246
|
-
label: import("./TranslationConfig").TranslationConfig;
|
|
247
|
-
} | undefined;
|
|
248
|
-
} | {
|
|
249
|
-
type: "VALIDATE";
|
|
250
|
-
label: import("./TranslationConfig").TranslationConfig;
|
|
251
|
-
review: {
|
|
252
|
-
title: import("./TranslationConfig").TranslationConfig;
|
|
253
|
-
fields: FieldConfig[];
|
|
254
|
-
};
|
|
255
|
-
deduplication?: {
|
|
256
|
-
id: string;
|
|
257
|
-
query: import("./DeduplicationConfig").ClauseOutput;
|
|
258
|
-
label: import("./TranslationConfig").TranslationConfig;
|
|
259
|
-
} | undefined;
|
|
260
|
-
} | {
|
|
261
|
-
type: "REJECT";
|
|
262
|
-
label: import("./TranslationConfig").TranslationConfig;
|
|
263
|
-
} | {
|
|
264
|
-
type: "ARCHIVE";
|
|
265
|
-
label: import("./TranslationConfig").TranslationConfig;
|
|
266
|
-
} | {
|
|
267
|
-
type: "REGISTER";
|
|
268
|
-
label: import("./TranslationConfig").TranslationConfig;
|
|
269
|
-
review: {
|
|
270
|
-
title: import("./TranslationConfig").TranslationConfig;
|
|
271
|
-
fields: FieldConfig[];
|
|
272
|
-
};
|
|
273
|
-
deduplication?: {
|
|
274
|
-
id: string;
|
|
275
|
-
query: import("./DeduplicationConfig").ClauseOutput;
|
|
276
|
-
label: import("./TranslationConfig").TranslationConfig;
|
|
277
|
-
} | undefined;
|
|
278
|
-
} | {
|
|
279
|
-
type: "DELETE";
|
|
280
|
-
label: import("./TranslationConfig").TranslationConfig;
|
|
281
|
-
} | {
|
|
282
|
-
type: "PRINT_CERTIFICATE";
|
|
283
|
-
label: import("./TranslationConfig").TranslationConfig;
|
|
284
|
-
printForm: {
|
|
285
|
-
label: import("./TranslationConfig").TranslationConfig;
|
|
286
|
-
pages: ({
|
|
287
|
-
type: "FORM";
|
|
288
|
-
id: string;
|
|
289
|
-
title: import("./TranslationConfig").TranslationConfig;
|
|
290
|
-
fields: FieldConfig[];
|
|
291
|
-
requireCompletionToContinue: boolean;
|
|
292
|
-
conditional?: import(".").JSONSchema | undefined;
|
|
293
|
-
} | {
|
|
294
|
-
type: "VERIFICATION";
|
|
295
|
-
id: string;
|
|
296
|
-
title: import("./TranslationConfig").TranslationConfig;
|
|
297
|
-
actions: {
|
|
298
|
-
cancel: {
|
|
299
|
-
label: import("./TranslationConfig").TranslationConfig;
|
|
300
|
-
confirmation: {
|
|
301
|
-
title: import("./TranslationConfig").TranslationConfig;
|
|
302
|
-
body: import("./TranslationConfig").TranslationConfig;
|
|
303
|
-
};
|
|
304
|
-
};
|
|
305
|
-
verify: {
|
|
306
|
-
label: import("./TranslationConfig").TranslationConfig;
|
|
307
|
-
};
|
|
308
|
-
};
|
|
309
|
-
fields: FieldConfig[];
|
|
310
|
-
requireCompletionToContinue: boolean;
|
|
311
|
-
conditional?: import(".").JSONSchema | undefined;
|
|
312
|
-
})[];
|
|
313
|
-
};
|
|
314
|
-
} | {
|
|
315
|
-
type: "REQUEST_CORRECTION";
|
|
316
|
-
label: import("./TranslationConfig").TranslationConfig;
|
|
317
|
-
correctionForm: {
|
|
318
|
-
label: import("./TranslationConfig").TranslationConfig;
|
|
319
|
-
pages: ({
|
|
320
|
-
type: "FORM";
|
|
321
|
-
id: string;
|
|
322
|
-
title: import("./TranslationConfig").TranslationConfig;
|
|
323
|
-
fields: FieldConfig[];
|
|
324
|
-
requireCompletionToContinue: boolean;
|
|
325
|
-
conditional?: import(".").JSONSchema | undefined;
|
|
326
|
-
} | {
|
|
327
|
-
type: "VERIFICATION";
|
|
328
|
-
id: string;
|
|
329
|
-
title: import("./TranslationConfig").TranslationConfig;
|
|
330
|
-
actions: {
|
|
331
|
-
cancel: {
|
|
332
|
-
label: import("./TranslationConfig").TranslationConfig;
|
|
333
|
-
confirmation: {
|
|
334
|
-
title: import("./TranslationConfig").TranslationConfig;
|
|
335
|
-
body: import("./TranslationConfig").TranslationConfig;
|
|
336
|
-
};
|
|
337
|
-
};
|
|
338
|
-
verify: {
|
|
339
|
-
label: import("./TranslationConfig").TranslationConfig;
|
|
340
|
-
};
|
|
341
|
-
};
|
|
342
|
-
fields: FieldConfig[];
|
|
343
|
-
requireCompletionToContinue: boolean;
|
|
344
|
-
conditional?: import(".").JSONSchema | undefined;
|
|
345
|
-
})[];
|
|
346
|
-
};
|
|
347
|
-
} | {
|
|
348
|
-
type: "REJECT_CORRECTION";
|
|
349
|
-
label: import("./TranslationConfig").TranslationConfig;
|
|
350
|
-
} | {
|
|
351
|
-
type: "APPROVE_CORRECTION";
|
|
352
|
-
label: import("./TranslationConfig").TranslationConfig;
|
|
353
|
-
})[];
|
|
354
|
-
label: import("./TranslationConfig").TranslationConfig;
|
|
355
|
-
summary: {
|
|
356
|
-
fields: ({
|
|
357
|
-
fieldId: string;
|
|
358
|
-
label?: import("./TranslationConfig").TranslationConfig | undefined;
|
|
359
|
-
conditionals?: {
|
|
360
|
-
type: "SHOW";
|
|
361
|
-
conditional: import(".").JSONSchema;
|
|
362
|
-
}[] | undefined;
|
|
363
|
-
emptyValueMessage?: import("./TranslationConfig").TranslationConfig | undefined;
|
|
364
|
-
} | {
|
|
365
|
-
id: string;
|
|
366
|
-
value: import("./TranslationConfig").TranslationConfig;
|
|
367
|
-
label: import("./TranslationConfig").TranslationConfig;
|
|
368
|
-
conditionals?: {
|
|
369
|
-
type: "SHOW";
|
|
370
|
-
conditional: import(".").JSONSchema;
|
|
371
|
-
}[] | undefined;
|
|
372
|
-
emptyValueMessage?: import("./TranslationConfig").TranslationConfig | undefined;
|
|
373
|
-
})[];
|
|
374
|
-
};
|
|
375
|
-
advancedSearch: {
|
|
376
|
-
title: import("./TranslationConfig").TranslationConfig;
|
|
377
|
-
fields: ({
|
|
378
|
-
config: {
|
|
379
|
-
type: "exact" | "fuzzy" | "range" | "within";
|
|
380
|
-
searchFields?: string[] | undefined;
|
|
381
|
-
};
|
|
382
|
-
fieldId: string;
|
|
383
|
-
fieldType: "field";
|
|
384
|
-
type?: "NAME" | "PHONE" | "ID" | "ADDRESS" | "TEXT" | "NUMBER" | "NUMBER_WITH_UNIT" | "TEXTAREA" | "EMAIL" | "DATE" | "AGE" | "DATE_RANGE" | "SELECT_DATE_RANGE" | "TIME" | "PARAGRAPH" | "PAGE_HEADER" | "RADIO_GROUP" | "FIELD_GROUP" | "FILE" | "FILE_WITH_OPTIONS" | "BULLET_LIST" | "CHECKBOX" | "SELECT" | "COUNTRY" | "LOCATION" | "DIVIDER" | "ADMINISTRATIVE_AREA" | "FACILITY" | "OFFICE" | "SIGNATURE" | "DATA" | "BUTTON" | "SEARCH" | "ALPHA_PRINT_BUTTON" | "HTTP" | "LINK_BUTTON" | "VERIFICATION_STATUS" | "QUERY_PARAM_READER" | "QR_READER" | "ID_READER" | "LOADER" | undefined;
|
|
385
|
-
options?: {
|
|
386
|
-
value: string;
|
|
387
|
-
label: string | import("./TranslationConfig").TranslationConfig;
|
|
388
|
-
conditionals?: ({
|
|
389
|
-
type: "SHOW";
|
|
390
|
-
conditional: import(".").JSONSchema;
|
|
391
|
-
} | {
|
|
392
|
-
type: "ENABLE";
|
|
393
|
-
conditional: import(".").JSONSchema;
|
|
394
|
-
})[] | undefined;
|
|
395
|
-
}[] | undefined;
|
|
396
|
-
label?: import("./TranslationConfig").TranslationConfig | undefined;
|
|
397
|
-
conditionals?: ({
|
|
398
|
-
type: "SHOW";
|
|
399
|
-
conditional: import(".").JSONSchema;
|
|
400
|
-
} | {
|
|
401
|
-
type: "ENABLE";
|
|
402
|
-
conditional: import(".").JSONSchema;
|
|
403
|
-
} | {
|
|
404
|
-
type: "DISPLAY_ON_REVIEW";
|
|
405
|
-
conditional: import(".").JSONSchema;
|
|
406
|
-
})[] | undefined;
|
|
407
|
-
searchCriteriaLabelPrefix?: import("./TranslationConfig").TranslationConfig | undefined;
|
|
408
|
-
validations?: {
|
|
409
|
-
message: import("./TranslationConfig").TranslationConfig;
|
|
410
|
-
validator: import(".").JSONSchema;
|
|
411
|
-
}[] | undefined;
|
|
412
|
-
} | {
|
|
413
|
-
config: {
|
|
414
|
-
type: "exact" | "fuzzy" | "range" | "within";
|
|
415
|
-
searchFields?: string[] | undefined;
|
|
416
|
-
};
|
|
417
|
-
fieldId: "event.status" | "event.trackingId" | "event.updatedAt" | "event.legalStatuses.REGISTERED.acceptedAt" | "event.legalStatuses.REGISTERED.createdAtLocation" | "event.legalStatuses.REGISTERED.registrationNumber";
|
|
418
|
-
fieldType: "event";
|
|
419
|
-
type?: "NAME" | "PHONE" | "ID" | "ADDRESS" | "TEXT" | "NUMBER" | "NUMBER_WITH_UNIT" | "TEXTAREA" | "EMAIL" | "DATE" | "AGE" | "DATE_RANGE" | "SELECT_DATE_RANGE" | "TIME" | "PARAGRAPH" | "PAGE_HEADER" | "RADIO_GROUP" | "FIELD_GROUP" | "FILE" | "FILE_WITH_OPTIONS" | "BULLET_LIST" | "CHECKBOX" | "SELECT" | "COUNTRY" | "LOCATION" | "DIVIDER" | "ADMINISTRATIVE_AREA" | "FACILITY" | "OFFICE" | "SIGNATURE" | "DATA" | "BUTTON" | "SEARCH" | "ALPHA_PRINT_BUTTON" | "HTTP" | "LINK_BUTTON" | "VERIFICATION_STATUS" | "QUERY_PARAM_READER" | "QR_READER" | "ID_READER" | "LOADER" | undefined;
|
|
420
|
-
options?: {
|
|
421
|
-
value: string;
|
|
422
|
-
label: string | import("./TranslationConfig").TranslationConfig;
|
|
423
|
-
conditionals?: ({
|
|
424
|
-
type: "SHOW";
|
|
425
|
-
conditional: import(".").JSONSchema;
|
|
426
|
-
} | {
|
|
427
|
-
type: "ENABLE";
|
|
428
|
-
conditional: import(".").JSONSchema;
|
|
429
|
-
})[] | undefined;
|
|
430
|
-
}[] | undefined;
|
|
431
|
-
label?: import("./TranslationConfig").TranslationConfig | undefined;
|
|
432
|
-
conditionals?: ({
|
|
433
|
-
type: "SHOW";
|
|
434
|
-
conditional: import(".").JSONSchema;
|
|
435
|
-
} | {
|
|
436
|
-
type: "ENABLE";
|
|
437
|
-
conditional: import(".").JSONSchema;
|
|
438
|
-
} | {
|
|
439
|
-
type: "DISPLAY_ON_REVIEW";
|
|
440
|
-
conditional: import(".").JSONSchema;
|
|
441
|
-
})[] | undefined;
|
|
442
|
-
searchCriteriaLabelPrefix?: import("./TranslationConfig").TranslationConfig | undefined;
|
|
443
|
-
validations?: {
|
|
444
|
-
message: import("./TranslationConfig").TranslationConfig;
|
|
445
|
-
validator: import(".").JSONSchema;
|
|
446
|
-
}[] | undefined;
|
|
447
|
-
})[];
|
|
448
|
-
}[];
|
|
449
|
-
dateOfEvent?: {
|
|
450
|
-
$$field: string;
|
|
451
|
-
$$subfield: string[];
|
|
452
|
-
} | {
|
|
453
|
-
$$event: "createdAt" | "updatedAt" | "legalStatuses.DECLARED.createdAt" | "legalStatuses.DECLARED.acceptedAt" | "legalStatuses.REGISTERED.createdAt" | "legalStatuses.REGISTERED.acceptedAt";
|
|
454
|
-
} | undefined;
|
|
455
|
-
fallbackTitle?: import("./TranslationConfig").TranslationConfig | undefined;
|
|
456
|
-
};
|
|
555
|
+
export declare function getEventConfigById(eventConfigs: EventConfig[], id: string): EventConfig;
|
|
457
556
|
export declare function timePeriodToDateRange(value: SelectDateRangeValue): {
|
|
458
557
|
startDate: string;
|
|
459
558
|
endDate: string;
|
|
@@ -464,4 +563,5 @@ export declare function getCompleteActionAnnotation(annotation: ActionUpdate, ev
|
|
|
464
563
|
export declare function getCompleteActionDeclaration<T extends EventState | ActionUpdate>(declaration: T, event: EventDocument, action: ActionDocument): T;
|
|
465
564
|
export declare function getAcceptedActions(event: EventDocument): ActionDocument[];
|
|
466
565
|
export declare function aggregateActionDeclarations(event: EventDocument): EventState;
|
|
566
|
+
export declare function aggregateActionAnnotations(event: EventDocument): EventState;
|
|
467
567
|
//# sourceMappingURL=utils.d.ts.map
|