@opencrvs/toolkit 1.9.12-rc.d350fab → 1.9.12-rc.d6990e2
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 +3397 -2252
- 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 -2
- 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 -1238
- 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 -2250
- 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 +2894 -12314
- 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 -233
- 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 +374 -429
- 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 +2863 -2113
- 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 +2091 -1769
- 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-1.9.12-rc.d6990e2.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
|
*
|
|
@@ -94,176 +141,7 @@ export declare function findActiveDraftForEvent(event: EventDocument, draft: Dra
|
|
|
94
141
|
export declare function createEmptyDraft(eventId: UUID, draftId: UUID, actionType: Exclude<ActionType, 'DELETE'>): Draft;
|
|
95
142
|
export declare function isVerificationPage(page: PageConfig): page is VerificationPageConfig;
|
|
96
143
|
export declare function getVisibleVerificationPageIds(pages: PageConfig[], annotation: ActionUpdate, context: ValidatorContext): string[];
|
|
97
|
-
export declare function omitHiddenAnnotationFields(actionConfig: ActionConfig, declaration: EventState, annotation: ActionUpdate, context: ValidatorContext): Partial<
|
|
98
|
-
[x: string]: string | number | boolean | {
|
|
99
|
-
type: string;
|
|
100
|
-
path: string;
|
|
101
|
-
originalFilename: string;
|
|
102
|
-
} | {
|
|
103
|
-
firstname: string;
|
|
104
|
-
surname: string;
|
|
105
|
-
middlename?: string | undefined;
|
|
106
|
-
} | {
|
|
107
|
-
firstname?: string | null | undefined;
|
|
108
|
-
surname?: string | null | undefined;
|
|
109
|
-
middlename?: string | null | undefined;
|
|
110
|
-
} | {
|
|
111
|
-
country: string;
|
|
112
|
-
addressType: "DOMESTIC";
|
|
113
|
-
administrativeArea: string;
|
|
114
|
-
streetLevelDetails?: Record<string, string> | undefined;
|
|
115
|
-
} | {
|
|
116
|
-
country: string;
|
|
117
|
-
addressType: "INTERNATIONAL";
|
|
118
|
-
streetLevelDetails?: Record<string, string> | undefined;
|
|
119
|
-
} | {
|
|
120
|
-
addressType: "DOMESTIC";
|
|
121
|
-
country?: string | null | undefined;
|
|
122
|
-
streetLevelDetails?: Record<string, string | null> | null | undefined;
|
|
123
|
-
administrativeArea?: string | null | undefined;
|
|
124
|
-
} | {
|
|
125
|
-
addressType: "INTERNATIONAL";
|
|
126
|
-
country?: string | null | undefined;
|
|
127
|
-
streetLevelDetails?: Record<string, string | null> | null | undefined;
|
|
128
|
-
} | {
|
|
129
|
-
type: string;
|
|
130
|
-
option: string;
|
|
131
|
-
path: string;
|
|
132
|
-
originalFilename: string;
|
|
133
|
-
}[] | {
|
|
134
|
-
loading: boolean;
|
|
135
|
-
data?: any;
|
|
136
|
-
error?: {
|
|
137
|
-
message: string;
|
|
138
|
-
statusCode: number;
|
|
139
|
-
} | null | undefined;
|
|
140
|
-
} | {
|
|
141
|
-
data?: any;
|
|
142
|
-
error?: {
|
|
143
|
-
message: string;
|
|
144
|
-
statusCode: number;
|
|
145
|
-
} | null | undefined;
|
|
146
|
-
loading?: boolean | null | undefined;
|
|
147
|
-
} | {
|
|
148
|
-
data: Record<string, string>;
|
|
149
|
-
} | {
|
|
150
|
-
data: Record<string, string>;
|
|
151
|
-
} | {
|
|
152
|
-
data?: any;
|
|
153
|
-
} | {
|
|
154
|
-
numericValue: number;
|
|
155
|
-
unit: string;
|
|
156
|
-
} | {
|
|
157
|
-
numericValue?: number | undefined;
|
|
158
|
-
unit?: string | undefined;
|
|
159
|
-
} | (string & import("zod").BRAND<"PlainDate">) | {
|
|
160
|
-
age: number;
|
|
161
|
-
asOfDateRef: string;
|
|
162
|
-
} | {
|
|
163
|
-
start: string & import("zod").BRAND<"PlainDate">;
|
|
164
|
-
end: string & import("zod").BRAND<"PlainDate">;
|
|
165
|
-
} | Record<string, string | number | boolean | {
|
|
166
|
-
type: string;
|
|
167
|
-
path: string;
|
|
168
|
-
originalFilename: string;
|
|
169
|
-
} | {
|
|
170
|
-
firstname: string;
|
|
171
|
-
surname: string;
|
|
172
|
-
middlename?: string | undefined;
|
|
173
|
-
} | {
|
|
174
|
-
firstname?: string | null | undefined;
|
|
175
|
-
surname?: string | null | undefined;
|
|
176
|
-
middlename?: string | null | undefined;
|
|
177
|
-
} | {
|
|
178
|
-
country: string;
|
|
179
|
-
addressType: "DOMESTIC";
|
|
180
|
-
administrativeArea: string;
|
|
181
|
-
streetLevelDetails?: Record<string, string> | undefined;
|
|
182
|
-
} | {
|
|
183
|
-
country: string;
|
|
184
|
-
addressType: "INTERNATIONAL";
|
|
185
|
-
streetLevelDetails?: Record<string, string> | undefined;
|
|
186
|
-
} | {
|
|
187
|
-
type: string;
|
|
188
|
-
option: string;
|
|
189
|
-
path: string;
|
|
190
|
-
originalFilename: string;
|
|
191
|
-
}[] | {
|
|
192
|
-
loading: boolean;
|
|
193
|
-
data?: any;
|
|
194
|
-
error?: {
|
|
195
|
-
message: string;
|
|
196
|
-
statusCode: number;
|
|
197
|
-
} | null | undefined;
|
|
198
|
-
} | {
|
|
199
|
-
data: Record<string, string>;
|
|
200
|
-
} | {
|
|
201
|
-
data?: any;
|
|
202
|
-
} | {
|
|
203
|
-
numericValue: number;
|
|
204
|
-
unit: string;
|
|
205
|
-
} | {
|
|
206
|
-
numericValue?: number | undefined;
|
|
207
|
-
unit?: string | undefined;
|
|
208
|
-
} | (string & import("zod").BRAND<"PlainDate">) | {
|
|
209
|
-
age: number;
|
|
210
|
-
asOfDateRef: string;
|
|
211
|
-
} | {
|
|
212
|
-
start: string & import("zod").BRAND<"PlainDate">;
|
|
213
|
-
end: string & import("zod").BRAND<"PlainDate">;
|
|
214
|
-
} | null | undefined> | {
|
|
215
|
-
data: Record<string, string | number | boolean | {
|
|
216
|
-
type: string;
|
|
217
|
-
path: string;
|
|
218
|
-
originalFilename: string;
|
|
219
|
-
} | {
|
|
220
|
-
firstname: string;
|
|
221
|
-
surname: string;
|
|
222
|
-
middlename?: string | undefined;
|
|
223
|
-
} | {
|
|
224
|
-
firstname?: string | null | undefined;
|
|
225
|
-
surname?: string | null | undefined;
|
|
226
|
-
middlename?: string | null | undefined;
|
|
227
|
-
} | {
|
|
228
|
-
country: string;
|
|
229
|
-
addressType: "DOMESTIC";
|
|
230
|
-
administrativeArea: string;
|
|
231
|
-
streetLevelDetails?: Record<string, string> | undefined;
|
|
232
|
-
} | {
|
|
233
|
-
country: string;
|
|
234
|
-
addressType: "INTERNATIONAL";
|
|
235
|
-
streetLevelDetails?: Record<string, string> | undefined;
|
|
236
|
-
} | {
|
|
237
|
-
type: string;
|
|
238
|
-
option: string;
|
|
239
|
-
path: string;
|
|
240
|
-
originalFilename: string;
|
|
241
|
-
}[] | {
|
|
242
|
-
loading: boolean;
|
|
243
|
-
data?: any;
|
|
244
|
-
error?: {
|
|
245
|
-
message: string;
|
|
246
|
-
statusCode: number;
|
|
247
|
-
} | null | undefined;
|
|
248
|
-
} | {
|
|
249
|
-
data: Record<string, string>;
|
|
250
|
-
} | {
|
|
251
|
-
data?: any;
|
|
252
|
-
} | {
|
|
253
|
-
numericValue: number;
|
|
254
|
-
unit: string;
|
|
255
|
-
} | {
|
|
256
|
-
numericValue?: number | undefined;
|
|
257
|
-
unit?: string | undefined;
|
|
258
|
-
} | (string & import("zod").BRAND<"PlainDate">) | {
|
|
259
|
-
age: number;
|
|
260
|
-
asOfDateRef: string;
|
|
261
|
-
} | {
|
|
262
|
-
start: string & import("zod").BRAND<"PlainDate">;
|
|
263
|
-
end: string & import("zod").BRAND<"PlainDate">;
|
|
264
|
-
} | null | undefined>;
|
|
265
|
-
} | null | undefined;
|
|
266
|
-
}>;
|
|
144
|
+
export declare function omitHiddenAnnotationFields(actionConfig: ActionConfig, declaration: EventState, annotation: ActionUpdate, context: ValidatorContext): Partial<Record<string, import("./FieldValue").FieldUpdateValue>>;
|
|
267
145
|
/**
|
|
268
146
|
* Merges two documents together.
|
|
269
147
|
*
|
|
@@ -273,7 +151,300 @@ export declare function omitHiddenAnnotationFields(actionConfig: ActionConfig, d
|
|
|
273
151
|
* @example { annotation: {'review.signature': { path: '/path.png', type: 'image/png' }}, { annotation: { foo: 'bar'}) } } => { annotation: { foo: 'bar' } }
|
|
274
152
|
*/
|
|
275
153
|
export declare function deepMerge<T extends Record<string, unknown>, K extends Record<string, unknown>>(currentDocument: T, actionDocument: K): T & K;
|
|
276
|
-
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;
|
|
277
448
|
/**
|
|
278
449
|
* Tell compiler that accessing record with arbitrary key might result to undefined
|
|
279
450
|
* Use when you **cannot guarantee** that key exists in the record
|
|
@@ -381,234 +552,7 @@ export declare const findAllFields: (config: EventConfig) => FieldConfig[];
|
|
|
381
552
|
* @returns the value of the object at the given path.
|
|
382
553
|
*/
|
|
383
554
|
export declare function getMixedPath<T = unknown>(obj: Record<string, unknown>, path: string, defaultValue?: T | undefined): T | undefined;
|
|
384
|
-
export declare function getEventConfigById(eventConfigs: EventConfig[], id: string):
|
|
385
|
-
id: string;
|
|
386
|
-
title: import("./TranslationConfig").TranslationConfig;
|
|
387
|
-
declaration: {
|
|
388
|
-
label: import("./TranslationConfig").TranslationConfig;
|
|
389
|
-
pages: {
|
|
390
|
-
type: "FORM";
|
|
391
|
-
id: string;
|
|
392
|
-
title: import("./TranslationConfig").TranslationConfig;
|
|
393
|
-
fields: FieldConfig[];
|
|
394
|
-
requireCompletionToContinue: boolean;
|
|
395
|
-
conditional?: import(".").JSONSchema | undefined;
|
|
396
|
-
}[];
|
|
397
|
-
};
|
|
398
|
-
actions: ({
|
|
399
|
-
type: "READ";
|
|
400
|
-
label: import("./TranslationConfig").TranslationConfig;
|
|
401
|
-
review: {
|
|
402
|
-
title: import("./TranslationConfig").TranslationConfig;
|
|
403
|
-
fields: FieldConfig[];
|
|
404
|
-
};
|
|
405
|
-
} | {
|
|
406
|
-
type: "DECLARE";
|
|
407
|
-
label: import("./TranslationConfig").TranslationConfig;
|
|
408
|
-
review: {
|
|
409
|
-
title: import("./TranslationConfig").TranslationConfig;
|
|
410
|
-
fields: FieldConfig[];
|
|
411
|
-
};
|
|
412
|
-
deduplication?: {
|
|
413
|
-
id: string;
|
|
414
|
-
query: import("./DeduplicationConfig").ClauseOutput;
|
|
415
|
-
label: import("./TranslationConfig").TranslationConfig;
|
|
416
|
-
} | undefined;
|
|
417
|
-
} | {
|
|
418
|
-
type: "VALIDATE";
|
|
419
|
-
label: import("./TranslationConfig").TranslationConfig;
|
|
420
|
-
review: {
|
|
421
|
-
title: import("./TranslationConfig").TranslationConfig;
|
|
422
|
-
fields: FieldConfig[];
|
|
423
|
-
};
|
|
424
|
-
deduplication?: {
|
|
425
|
-
id: string;
|
|
426
|
-
query: import("./DeduplicationConfig").ClauseOutput;
|
|
427
|
-
label: import("./TranslationConfig").TranslationConfig;
|
|
428
|
-
} | undefined;
|
|
429
|
-
} | {
|
|
430
|
-
type: "REJECT";
|
|
431
|
-
label: import("./TranslationConfig").TranslationConfig;
|
|
432
|
-
} | {
|
|
433
|
-
type: "ARCHIVE";
|
|
434
|
-
label: import("./TranslationConfig").TranslationConfig;
|
|
435
|
-
} | {
|
|
436
|
-
type: "REGISTER";
|
|
437
|
-
label: import("./TranslationConfig").TranslationConfig;
|
|
438
|
-
review: {
|
|
439
|
-
title: import("./TranslationConfig").TranslationConfig;
|
|
440
|
-
fields: FieldConfig[];
|
|
441
|
-
};
|
|
442
|
-
deduplication?: {
|
|
443
|
-
id: string;
|
|
444
|
-
query: import("./DeduplicationConfig").ClauseOutput;
|
|
445
|
-
label: import("./TranslationConfig").TranslationConfig;
|
|
446
|
-
} | undefined;
|
|
447
|
-
} | {
|
|
448
|
-
type: "DELETE";
|
|
449
|
-
label: import("./TranslationConfig").TranslationConfig;
|
|
450
|
-
} | {
|
|
451
|
-
type: "PRINT_CERTIFICATE";
|
|
452
|
-
label: import("./TranslationConfig").TranslationConfig;
|
|
453
|
-
printForm: {
|
|
454
|
-
label: import("./TranslationConfig").TranslationConfig;
|
|
455
|
-
pages: ({
|
|
456
|
-
type: "FORM";
|
|
457
|
-
id: string;
|
|
458
|
-
title: import("./TranslationConfig").TranslationConfig;
|
|
459
|
-
fields: FieldConfig[];
|
|
460
|
-
requireCompletionToContinue: boolean;
|
|
461
|
-
conditional?: import(".").JSONSchema | undefined;
|
|
462
|
-
} | {
|
|
463
|
-
type: "VERIFICATION";
|
|
464
|
-
id: string;
|
|
465
|
-
title: import("./TranslationConfig").TranslationConfig;
|
|
466
|
-
actions: {
|
|
467
|
-
cancel: {
|
|
468
|
-
label: import("./TranslationConfig").TranslationConfig;
|
|
469
|
-
confirmation: {
|
|
470
|
-
title: import("./TranslationConfig").TranslationConfig;
|
|
471
|
-
body: import("./TranslationConfig").TranslationConfig;
|
|
472
|
-
};
|
|
473
|
-
};
|
|
474
|
-
verify: {
|
|
475
|
-
label: import("./TranslationConfig").TranslationConfig;
|
|
476
|
-
};
|
|
477
|
-
};
|
|
478
|
-
fields: FieldConfig[];
|
|
479
|
-
requireCompletionToContinue: boolean;
|
|
480
|
-
conditional?: import(".").JSONSchema | undefined;
|
|
481
|
-
})[];
|
|
482
|
-
};
|
|
483
|
-
} | {
|
|
484
|
-
type: "REQUEST_CORRECTION";
|
|
485
|
-
label: import("./TranslationConfig").TranslationConfig;
|
|
486
|
-
correctionForm: {
|
|
487
|
-
label: import("./TranslationConfig").TranslationConfig;
|
|
488
|
-
pages: ({
|
|
489
|
-
type: "FORM";
|
|
490
|
-
id: string;
|
|
491
|
-
title: import("./TranslationConfig").TranslationConfig;
|
|
492
|
-
fields: FieldConfig[];
|
|
493
|
-
requireCompletionToContinue: boolean;
|
|
494
|
-
conditional?: import(".").JSONSchema | undefined;
|
|
495
|
-
} | {
|
|
496
|
-
type: "VERIFICATION";
|
|
497
|
-
id: string;
|
|
498
|
-
title: import("./TranslationConfig").TranslationConfig;
|
|
499
|
-
actions: {
|
|
500
|
-
cancel: {
|
|
501
|
-
label: import("./TranslationConfig").TranslationConfig;
|
|
502
|
-
confirmation: {
|
|
503
|
-
title: import("./TranslationConfig").TranslationConfig;
|
|
504
|
-
body: import("./TranslationConfig").TranslationConfig;
|
|
505
|
-
};
|
|
506
|
-
};
|
|
507
|
-
verify: {
|
|
508
|
-
label: import("./TranslationConfig").TranslationConfig;
|
|
509
|
-
};
|
|
510
|
-
};
|
|
511
|
-
fields: FieldConfig[];
|
|
512
|
-
requireCompletionToContinue: boolean;
|
|
513
|
-
conditional?: import(".").JSONSchema | undefined;
|
|
514
|
-
})[];
|
|
515
|
-
};
|
|
516
|
-
} | {
|
|
517
|
-
type: "REJECT_CORRECTION";
|
|
518
|
-
label: import("./TranslationConfig").TranslationConfig;
|
|
519
|
-
} | {
|
|
520
|
-
type: "APPROVE_CORRECTION";
|
|
521
|
-
label: import("./TranslationConfig").TranslationConfig;
|
|
522
|
-
})[];
|
|
523
|
-
label: import("./TranslationConfig").TranslationConfig;
|
|
524
|
-
summary: {
|
|
525
|
-
fields: ({
|
|
526
|
-
fieldId: string;
|
|
527
|
-
label?: import("./TranslationConfig").TranslationConfig | undefined;
|
|
528
|
-
conditionals?: {
|
|
529
|
-
type: "SHOW";
|
|
530
|
-
conditional: import(".").JSONSchema;
|
|
531
|
-
}[] | undefined;
|
|
532
|
-
emptyValueMessage?: import("./TranslationConfig").TranslationConfig | undefined;
|
|
533
|
-
} | {
|
|
534
|
-
id: string;
|
|
535
|
-
value: import("./TranslationConfig").TranslationConfig;
|
|
536
|
-
label: import("./TranslationConfig").TranslationConfig;
|
|
537
|
-
conditionals?: {
|
|
538
|
-
type: "SHOW";
|
|
539
|
-
conditional: import(".").JSONSchema;
|
|
540
|
-
}[] | undefined;
|
|
541
|
-
emptyValueMessage?: import("./TranslationConfig").TranslationConfig | undefined;
|
|
542
|
-
})[];
|
|
543
|
-
};
|
|
544
|
-
advancedSearch: {
|
|
545
|
-
title: import("./TranslationConfig").TranslationConfig;
|
|
546
|
-
fields: ({
|
|
547
|
-
config: {
|
|
548
|
-
type: "exact" | "fuzzy" | "range" | "within";
|
|
549
|
-
searchFields?: string[] | undefined;
|
|
550
|
-
};
|
|
551
|
-
fieldId: string;
|
|
552
|
-
fieldType: "field";
|
|
553
|
-
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;
|
|
554
|
-
options?: {
|
|
555
|
-
value: string;
|
|
556
|
-
label: string | import("./TranslationConfig").TranslationConfig;
|
|
557
|
-
}[] | undefined;
|
|
558
|
-
label?: import("./TranslationConfig").TranslationConfig | undefined;
|
|
559
|
-
conditionals?: ({
|
|
560
|
-
type: "SHOW";
|
|
561
|
-
conditional: import(".").JSONSchema;
|
|
562
|
-
} | {
|
|
563
|
-
type: "ENABLE";
|
|
564
|
-
conditional: import(".").JSONSchema;
|
|
565
|
-
} | {
|
|
566
|
-
type: "DISPLAY_ON_REVIEW";
|
|
567
|
-
conditional: import(".").JSONSchema;
|
|
568
|
-
})[] | undefined;
|
|
569
|
-
searchCriteriaLabelPrefix?: import("./TranslationConfig").TranslationConfig | undefined;
|
|
570
|
-
validations?: {
|
|
571
|
-
message: import("./TranslationConfig").TranslationConfig;
|
|
572
|
-
validator: import(".").JSONSchema;
|
|
573
|
-
}[] | undefined;
|
|
574
|
-
} | {
|
|
575
|
-
config: {
|
|
576
|
-
type: "exact" | "fuzzy" | "range" | "within";
|
|
577
|
-
searchFields?: string[] | undefined;
|
|
578
|
-
};
|
|
579
|
-
fieldId: "event.status" | "event.trackingId" | "event.updatedAt" | "event.legalStatuses.REGISTERED.acceptedAt" | "event.legalStatuses.REGISTERED.createdAtLocation" | "event.legalStatuses.REGISTERED.registrationNumber";
|
|
580
|
-
fieldType: "event";
|
|
581
|
-
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;
|
|
582
|
-
options?: {
|
|
583
|
-
value: string;
|
|
584
|
-
label: string | import("./TranslationConfig").TranslationConfig;
|
|
585
|
-
}[] | undefined;
|
|
586
|
-
label?: import("./TranslationConfig").TranslationConfig | undefined;
|
|
587
|
-
conditionals?: ({
|
|
588
|
-
type: "SHOW";
|
|
589
|
-
conditional: import(".").JSONSchema;
|
|
590
|
-
} | {
|
|
591
|
-
type: "ENABLE";
|
|
592
|
-
conditional: import(".").JSONSchema;
|
|
593
|
-
} | {
|
|
594
|
-
type: "DISPLAY_ON_REVIEW";
|
|
595
|
-
conditional: import(".").JSONSchema;
|
|
596
|
-
})[] | undefined;
|
|
597
|
-
searchCriteriaLabelPrefix?: import("./TranslationConfig").TranslationConfig | undefined;
|
|
598
|
-
validations?: {
|
|
599
|
-
message: import("./TranslationConfig").TranslationConfig;
|
|
600
|
-
validator: import(".").JSONSchema;
|
|
601
|
-
}[] | undefined;
|
|
602
|
-
})[];
|
|
603
|
-
}[];
|
|
604
|
-
dateOfEvent?: {
|
|
605
|
-
$$field: string;
|
|
606
|
-
$$subfield: string[];
|
|
607
|
-
} | {
|
|
608
|
-
$$event: "createdAt" | "updatedAt" | "legalStatuses.DECLARED.createdAt" | "legalStatuses.DECLARED.acceptedAt" | "legalStatuses.REGISTERED.createdAt" | "legalStatuses.REGISTERED.acceptedAt";
|
|
609
|
-
} | undefined;
|
|
610
|
-
fallbackTitle?: import("./TranslationConfig").TranslationConfig | undefined;
|
|
611
|
-
};
|
|
555
|
+
export declare function getEventConfigById(eventConfigs: EventConfig[], id: string): EventConfig;
|
|
612
556
|
export declare function timePeriodToDateRange(value: SelectDateRangeValue): {
|
|
613
557
|
startDate: string;
|
|
614
558
|
endDate: string;
|
|
@@ -619,4 +563,5 @@ export declare function getCompleteActionAnnotation(annotation: ActionUpdate, ev
|
|
|
619
563
|
export declare function getCompleteActionDeclaration<T extends EventState | ActionUpdate>(declaration: T, event: EventDocument, action: ActionDocument): T;
|
|
620
564
|
export declare function getAcceptedActions(event: EventDocument): ActionDocument[];
|
|
621
565
|
export declare function aggregateActionDeclarations(event: EventDocument): EventState;
|
|
566
|
+
export declare function aggregateActionAnnotations(event: EventDocument): EventState;
|
|
622
567
|
//# sourceMappingURL=utils.d.ts.map
|