@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,342 +1,80 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as z from 'zod/v4';
|
|
2
2
|
import { FieldConfig } from './FieldConfig';
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
export declare const PageTypes: z.ZodEnum<{
|
|
4
|
+
FORM: "FORM";
|
|
5
|
+
VERIFICATION: "VERIFICATION";
|
|
6
|
+
}>;
|
|
5
7
|
export type PageType = z.infer<typeof PageTypes>;
|
|
6
|
-
export declare const FormPageConfig: z.ZodObject<
|
|
8
|
+
export declare const FormPageConfig: z.ZodObject<{
|
|
7
9
|
id: z.ZodString;
|
|
8
|
-
title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod,
|
|
9
|
-
id: string;
|
|
10
|
-
description: string;
|
|
11
|
-
defaultMessage: string;
|
|
12
|
-
}>;
|
|
10
|
+
title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
13
11
|
requireCompletionToContinue: z.ZodDefault<z.ZodBoolean>;
|
|
14
|
-
fields: z.ZodArray<z.ZodType<FieldConfig, z.
|
|
15
|
-
conditional: z.ZodOptional<z.
|
|
16
|
-
}, {
|
|
12
|
+
fields: z.ZodArray<z.ZodType<FieldConfig, import("./FieldConfig").FieldConfigInput, z.core.$ZodTypeInternals<FieldConfig, import("./FieldConfig").FieldConfigInput>>>;
|
|
13
|
+
conditional: z.ZodOptional<z.ZodAny>;
|
|
17
14
|
type: z.ZodDefault<z.ZodLiteral<"FORM">>;
|
|
18
|
-
}
|
|
19
|
-
type: "FORM";
|
|
20
|
-
id: string;
|
|
21
|
-
title: TranslationConfig;
|
|
22
|
-
fields: FieldConfig[];
|
|
23
|
-
requireCompletionToContinue: boolean;
|
|
24
|
-
conditional?: import(".").JSONSchema | undefined;
|
|
25
|
-
}, {
|
|
26
|
-
id: string;
|
|
27
|
-
title: {
|
|
28
|
-
id: string;
|
|
29
|
-
description: string;
|
|
30
|
-
defaultMessage: string;
|
|
31
|
-
};
|
|
32
|
-
fields: import("./FieldConfig").FieldConfigInput[];
|
|
33
|
-
type?: "FORM" | undefined;
|
|
34
|
-
conditional?: import(".").JSONSchema | undefined;
|
|
35
|
-
requireCompletionToContinue?: boolean | undefined;
|
|
36
|
-
}>;
|
|
15
|
+
}, z.core.$strip>;
|
|
37
16
|
export type FormPageConfig = z.infer<typeof FormPageConfig>;
|
|
38
17
|
export type FormPageConfigInput = z.input<typeof FormPageConfig>;
|
|
39
18
|
export declare const VerificationActionConfig: z.ZodObject<{
|
|
40
19
|
verify: z.ZodObject<{
|
|
41
|
-
label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod,
|
|
42
|
-
|
|
43
|
-
description: string;
|
|
44
|
-
defaultMessage: string;
|
|
45
|
-
}>;
|
|
46
|
-
}, "strip", z.ZodTypeAny, {
|
|
47
|
-
label: TranslationConfig;
|
|
48
|
-
}, {
|
|
49
|
-
label: {
|
|
50
|
-
id: string;
|
|
51
|
-
description: string;
|
|
52
|
-
defaultMessage: string;
|
|
53
|
-
};
|
|
54
|
-
}>;
|
|
20
|
+
label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
21
|
+
}, z.core.$strip>;
|
|
55
22
|
cancel: z.ZodObject<{
|
|
56
|
-
label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod,
|
|
57
|
-
id: string;
|
|
58
|
-
description: string;
|
|
59
|
-
defaultMessage: string;
|
|
60
|
-
}>;
|
|
23
|
+
label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
61
24
|
confirmation: z.ZodObject<{
|
|
62
|
-
title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod,
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
id: string;
|
|
69
|
-
description: string;
|
|
70
|
-
defaultMessage: string;
|
|
71
|
-
}>;
|
|
72
|
-
}, "strip", z.ZodTypeAny, {
|
|
73
|
-
title: TranslationConfig;
|
|
74
|
-
body: TranslationConfig;
|
|
75
|
-
}, {
|
|
76
|
-
title: {
|
|
77
|
-
id: string;
|
|
78
|
-
description: string;
|
|
79
|
-
defaultMessage: string;
|
|
80
|
-
};
|
|
81
|
-
body: {
|
|
82
|
-
id: string;
|
|
83
|
-
description: string;
|
|
84
|
-
defaultMessage: string;
|
|
85
|
-
};
|
|
86
|
-
}>;
|
|
87
|
-
}, "strip", z.ZodTypeAny, {
|
|
88
|
-
label: TranslationConfig;
|
|
89
|
-
confirmation: {
|
|
90
|
-
title: TranslationConfig;
|
|
91
|
-
body: TranslationConfig;
|
|
92
|
-
};
|
|
93
|
-
}, {
|
|
94
|
-
label: {
|
|
95
|
-
id: string;
|
|
96
|
-
description: string;
|
|
97
|
-
defaultMessage: string;
|
|
98
|
-
};
|
|
99
|
-
confirmation: {
|
|
100
|
-
title: {
|
|
101
|
-
id: string;
|
|
102
|
-
description: string;
|
|
103
|
-
defaultMessage: string;
|
|
104
|
-
};
|
|
105
|
-
body: {
|
|
106
|
-
id: string;
|
|
107
|
-
description: string;
|
|
108
|
-
defaultMessage: string;
|
|
109
|
-
};
|
|
110
|
-
};
|
|
111
|
-
}>;
|
|
112
|
-
}, "strip", z.ZodTypeAny, {
|
|
113
|
-
cancel: {
|
|
114
|
-
label: TranslationConfig;
|
|
115
|
-
confirmation: {
|
|
116
|
-
title: TranslationConfig;
|
|
117
|
-
body: TranslationConfig;
|
|
118
|
-
};
|
|
119
|
-
};
|
|
120
|
-
verify: {
|
|
121
|
-
label: TranslationConfig;
|
|
122
|
-
};
|
|
123
|
-
}, {
|
|
124
|
-
cancel: {
|
|
125
|
-
label: {
|
|
126
|
-
id: string;
|
|
127
|
-
description: string;
|
|
128
|
-
defaultMessage: string;
|
|
129
|
-
};
|
|
130
|
-
confirmation: {
|
|
131
|
-
title: {
|
|
132
|
-
id: string;
|
|
133
|
-
description: string;
|
|
134
|
-
defaultMessage: string;
|
|
135
|
-
};
|
|
136
|
-
body: {
|
|
137
|
-
id: string;
|
|
138
|
-
description: string;
|
|
139
|
-
defaultMessage: string;
|
|
140
|
-
};
|
|
141
|
-
};
|
|
142
|
-
};
|
|
143
|
-
verify: {
|
|
144
|
-
label: {
|
|
145
|
-
id: string;
|
|
146
|
-
description: string;
|
|
147
|
-
defaultMessage: string;
|
|
148
|
-
};
|
|
149
|
-
};
|
|
150
|
-
}>;
|
|
151
|
-
export declare const VerificationPageConfig: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
25
|
+
title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
26
|
+
body: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
27
|
+
}, z.core.$strip>;
|
|
28
|
+
}, z.core.$strip>;
|
|
29
|
+
}, z.core.$strip>;
|
|
30
|
+
export declare const VerificationPageConfig: z.ZodObject<{
|
|
152
31
|
id: z.ZodString;
|
|
153
|
-
title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod,
|
|
154
|
-
id: string;
|
|
155
|
-
description: string;
|
|
156
|
-
defaultMessage: string;
|
|
157
|
-
}>;
|
|
32
|
+
title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
158
33
|
requireCompletionToContinue: z.ZodDefault<z.ZodBoolean>;
|
|
159
|
-
fields: z.ZodArray<z.ZodType<FieldConfig, z.
|
|
160
|
-
conditional: z.ZodOptional<z.
|
|
161
|
-
}, {
|
|
162
|
-
type: z.ZodDefault<z.ZodLiteral<"FORM">>;
|
|
163
|
-
}>, {
|
|
34
|
+
fields: z.ZodArray<z.ZodType<FieldConfig, import("./FieldConfig").FieldConfigInput, z.core.$ZodTypeInternals<FieldConfig, import("./FieldConfig").FieldConfigInput>>>;
|
|
35
|
+
conditional: z.ZodOptional<z.ZodAny>;
|
|
164
36
|
type: z.ZodLiteral<"VERIFICATION">;
|
|
165
37
|
actions: z.ZodObject<{
|
|
166
38
|
verify: z.ZodObject<{
|
|
167
|
-
label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod,
|
|
168
|
-
|
|
169
|
-
description: string;
|
|
170
|
-
defaultMessage: string;
|
|
171
|
-
}>;
|
|
172
|
-
}, "strip", z.ZodTypeAny, {
|
|
173
|
-
label: TranslationConfig;
|
|
174
|
-
}, {
|
|
175
|
-
label: {
|
|
176
|
-
id: string;
|
|
177
|
-
description: string;
|
|
178
|
-
defaultMessage: string;
|
|
179
|
-
};
|
|
180
|
-
}>;
|
|
39
|
+
label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
40
|
+
}, z.core.$strip>;
|
|
181
41
|
cancel: z.ZodObject<{
|
|
182
|
-
label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod,
|
|
183
|
-
id: string;
|
|
184
|
-
description: string;
|
|
185
|
-
defaultMessage: string;
|
|
186
|
-
}>;
|
|
42
|
+
label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
187
43
|
confirmation: z.ZodObject<{
|
|
188
|
-
title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod,
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
id: string;
|
|
195
|
-
description: string;
|
|
196
|
-
defaultMessage: string;
|
|
197
|
-
}>;
|
|
198
|
-
}, "strip", z.ZodTypeAny, {
|
|
199
|
-
title: TranslationConfig;
|
|
200
|
-
body: TranslationConfig;
|
|
201
|
-
}, {
|
|
202
|
-
title: {
|
|
203
|
-
id: string;
|
|
204
|
-
description: string;
|
|
205
|
-
defaultMessage: string;
|
|
206
|
-
};
|
|
207
|
-
body: {
|
|
208
|
-
id: string;
|
|
209
|
-
description: string;
|
|
210
|
-
defaultMessage: string;
|
|
211
|
-
};
|
|
212
|
-
}>;
|
|
213
|
-
}, "strip", z.ZodTypeAny, {
|
|
214
|
-
label: TranslationConfig;
|
|
215
|
-
confirmation: {
|
|
216
|
-
title: TranslationConfig;
|
|
217
|
-
body: TranslationConfig;
|
|
218
|
-
};
|
|
219
|
-
}, {
|
|
220
|
-
label: {
|
|
221
|
-
id: string;
|
|
222
|
-
description: string;
|
|
223
|
-
defaultMessage: string;
|
|
224
|
-
};
|
|
225
|
-
confirmation: {
|
|
226
|
-
title: {
|
|
227
|
-
id: string;
|
|
228
|
-
description: string;
|
|
229
|
-
defaultMessage: string;
|
|
230
|
-
};
|
|
231
|
-
body: {
|
|
232
|
-
id: string;
|
|
233
|
-
description: string;
|
|
234
|
-
defaultMessage: string;
|
|
235
|
-
};
|
|
236
|
-
};
|
|
237
|
-
}>;
|
|
238
|
-
}, "strip", z.ZodTypeAny, {
|
|
239
|
-
cancel: {
|
|
240
|
-
label: TranslationConfig;
|
|
241
|
-
confirmation: {
|
|
242
|
-
title: TranslationConfig;
|
|
243
|
-
body: TranslationConfig;
|
|
244
|
-
};
|
|
245
|
-
};
|
|
246
|
-
verify: {
|
|
247
|
-
label: TranslationConfig;
|
|
248
|
-
};
|
|
249
|
-
}, {
|
|
250
|
-
cancel: {
|
|
251
|
-
label: {
|
|
252
|
-
id: string;
|
|
253
|
-
description: string;
|
|
254
|
-
defaultMessage: string;
|
|
255
|
-
};
|
|
256
|
-
confirmation: {
|
|
257
|
-
title: {
|
|
258
|
-
id: string;
|
|
259
|
-
description: string;
|
|
260
|
-
defaultMessage: string;
|
|
261
|
-
};
|
|
262
|
-
body: {
|
|
263
|
-
id: string;
|
|
264
|
-
description: string;
|
|
265
|
-
defaultMessage: string;
|
|
266
|
-
};
|
|
267
|
-
};
|
|
268
|
-
};
|
|
269
|
-
verify: {
|
|
270
|
-
label: {
|
|
271
|
-
id: string;
|
|
272
|
-
description: string;
|
|
273
|
-
defaultMessage: string;
|
|
274
|
-
};
|
|
275
|
-
};
|
|
276
|
-
}>;
|
|
277
|
-
}>, "strip", z.ZodTypeAny, {
|
|
278
|
-
type: "VERIFICATION";
|
|
279
|
-
id: string;
|
|
280
|
-
title: TranslationConfig;
|
|
281
|
-
actions: {
|
|
282
|
-
cancel: {
|
|
283
|
-
label: TranslationConfig;
|
|
284
|
-
confirmation: {
|
|
285
|
-
title: TranslationConfig;
|
|
286
|
-
body: TranslationConfig;
|
|
287
|
-
};
|
|
288
|
-
};
|
|
289
|
-
verify: {
|
|
290
|
-
label: TranslationConfig;
|
|
291
|
-
};
|
|
292
|
-
};
|
|
293
|
-
fields: FieldConfig[];
|
|
294
|
-
requireCompletionToContinue: boolean;
|
|
295
|
-
conditional?: import(".").JSONSchema | undefined;
|
|
296
|
-
}, {
|
|
297
|
-
type: "VERIFICATION";
|
|
298
|
-
id: string;
|
|
299
|
-
title: {
|
|
300
|
-
id: string;
|
|
301
|
-
description: string;
|
|
302
|
-
defaultMessage: string;
|
|
303
|
-
};
|
|
304
|
-
actions: {
|
|
305
|
-
cancel: {
|
|
306
|
-
label: {
|
|
307
|
-
id: string;
|
|
308
|
-
description: string;
|
|
309
|
-
defaultMessage: string;
|
|
310
|
-
};
|
|
311
|
-
confirmation: {
|
|
312
|
-
title: {
|
|
313
|
-
id: string;
|
|
314
|
-
description: string;
|
|
315
|
-
defaultMessage: string;
|
|
316
|
-
};
|
|
317
|
-
body: {
|
|
318
|
-
id: string;
|
|
319
|
-
description: string;
|
|
320
|
-
defaultMessage: string;
|
|
321
|
-
};
|
|
322
|
-
};
|
|
323
|
-
};
|
|
324
|
-
verify: {
|
|
325
|
-
label: {
|
|
326
|
-
id: string;
|
|
327
|
-
description: string;
|
|
328
|
-
defaultMessage: string;
|
|
329
|
-
};
|
|
330
|
-
};
|
|
331
|
-
};
|
|
332
|
-
fields: import("./FieldConfig").FieldConfigInput[];
|
|
333
|
-
conditional?: import(".").JSONSchema | undefined;
|
|
334
|
-
requireCompletionToContinue?: boolean | undefined;
|
|
335
|
-
}>;
|
|
44
|
+
title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
45
|
+
body: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
46
|
+
}, z.core.$strip>;
|
|
47
|
+
}, z.core.$strip>;
|
|
48
|
+
}, z.core.$strip>;
|
|
49
|
+
}, z.core.$strip>;
|
|
336
50
|
export type VerificationPageConfig = z.infer<typeof VerificationPageConfig>;
|
|
337
|
-
|
|
338
|
-
|
|
51
|
+
export declare const PageConfig: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
52
|
+
id: z.ZodString;
|
|
53
|
+
title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
54
|
+
requireCompletionToContinue: z.ZodDefault<z.ZodBoolean>;
|
|
55
|
+
fields: z.ZodArray<z.ZodType<FieldConfig, import("./FieldConfig").FieldConfigInput, z.core.$ZodTypeInternals<FieldConfig, import("./FieldConfig").FieldConfigInput>>>;
|
|
56
|
+
conditional: z.ZodOptional<z.ZodAny>;
|
|
57
|
+
type: z.ZodDefault<z.ZodLiteral<"FORM">>;
|
|
58
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
59
|
+
id: z.ZodString;
|
|
60
|
+
title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
61
|
+
requireCompletionToContinue: z.ZodDefault<z.ZodBoolean>;
|
|
62
|
+
fields: z.ZodArray<z.ZodType<FieldConfig, import("./FieldConfig").FieldConfigInput, z.core.$ZodTypeInternals<FieldConfig, import("./FieldConfig").FieldConfigInput>>>;
|
|
63
|
+
conditional: z.ZodOptional<z.ZodAny>;
|
|
64
|
+
type: z.ZodLiteral<"VERIFICATION">;
|
|
65
|
+
actions: z.ZodObject<{
|
|
66
|
+
verify: z.ZodObject<{
|
|
67
|
+
label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
68
|
+
}, z.core.$strip>;
|
|
69
|
+
cancel: z.ZodObject<{
|
|
70
|
+
label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
71
|
+
confirmation: z.ZodObject<{
|
|
72
|
+
title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
73
|
+
body: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
74
|
+
}, z.core.$strip>;
|
|
75
|
+
}, z.core.$strip>;
|
|
76
|
+
}, z.core.$strip>;
|
|
77
|
+
}, z.core.$strip>], "type">;
|
|
339
78
|
export type PageConfig = z.infer<typeof PageConfig>;
|
|
340
79
|
export type PageConfigInput = z.input<typeof PageConfig>;
|
|
341
|
-
export {};
|
|
342
80
|
//# sourceMappingURL=PageConfig.d.ts.map
|
|
@@ -7,7 +7,7 @@ import { z } from 'zod';
|
|
|
7
7
|
* displayed day in timezones behind UTC. Use `plainDateToLocalDate` instead to
|
|
8
8
|
* get local midnight.
|
|
9
9
|
*/
|
|
10
|
-
export declare const PlainDate: z.ZodBranded<z.ZodString, "PlainDate">;
|
|
10
|
+
export declare const PlainDate: z.core.$ZodBranded<z.ZodString, "PlainDate", "out">;
|
|
11
11
|
export type PlainDate = z.infer<typeof PlainDate>;
|
|
12
12
|
/**
|
|
13
13
|
* Converts a {@link PlainDate} (YYYY-MM-DD) to a local `Date` at midnight.
|
|
@@ -1,170 +1,23 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { TranslationConfig } from './TranslationConfig';
|
|
1
|
+
import * as z from 'zod/v4';
|
|
3
2
|
export declare const SummaryConfig: z.ZodObject<{
|
|
4
|
-
fields: z.ZodArray<z.ZodUnion<[z.ZodObject<
|
|
5
|
-
emptyValueMessage: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod,
|
|
6
|
-
id: string;
|
|
7
|
-
description: string;
|
|
8
|
-
defaultMessage: string;
|
|
9
|
-
}>>;
|
|
3
|
+
fields: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
4
|
+
emptyValueMessage: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>>;
|
|
10
5
|
conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
11
6
|
type: z.ZodLiteral<"SHOW">;
|
|
12
|
-
conditional: z.
|
|
13
|
-
},
|
|
14
|
-
type: "SHOW";
|
|
15
|
-
conditional: import(".").JSONSchema;
|
|
16
|
-
}, {
|
|
17
|
-
type: "SHOW";
|
|
18
|
-
conditional: import(".").JSONSchema;
|
|
19
|
-
}>, "many">>>;
|
|
20
|
-
}, {
|
|
7
|
+
conditional: z.ZodAny;
|
|
8
|
+
}, z.core.$strip>>>>;
|
|
21
9
|
id: z.ZodString;
|
|
22
|
-
value: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod,
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
}>;
|
|
27
|
-
label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
|
28
|
-
id: string;
|
|
29
|
-
description: string;
|
|
30
|
-
defaultMessage: string;
|
|
31
|
-
}>;
|
|
32
|
-
}>, "strip", z.ZodTypeAny, {
|
|
33
|
-
id: string;
|
|
34
|
-
value: TranslationConfig;
|
|
35
|
-
label: TranslationConfig;
|
|
36
|
-
conditionals?: {
|
|
37
|
-
type: "SHOW";
|
|
38
|
-
conditional: import(".").JSONSchema;
|
|
39
|
-
}[] | undefined;
|
|
40
|
-
emptyValueMessage?: TranslationConfig | undefined;
|
|
41
|
-
}, {
|
|
42
|
-
id: string;
|
|
43
|
-
value: {
|
|
44
|
-
id: string;
|
|
45
|
-
description: string;
|
|
46
|
-
defaultMessage: string;
|
|
47
|
-
};
|
|
48
|
-
label: {
|
|
49
|
-
id: string;
|
|
50
|
-
description: string;
|
|
51
|
-
defaultMessage: string;
|
|
52
|
-
};
|
|
53
|
-
conditionals?: {
|
|
54
|
-
type: "SHOW";
|
|
55
|
-
conditional: import(".").JSONSchema;
|
|
56
|
-
}[] | undefined;
|
|
57
|
-
emptyValueMessage?: {
|
|
58
|
-
id: string;
|
|
59
|
-
description: string;
|
|
60
|
-
defaultMessage: string;
|
|
61
|
-
} | undefined;
|
|
62
|
-
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
63
|
-
emptyValueMessage: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
|
64
|
-
id: string;
|
|
65
|
-
description: string;
|
|
66
|
-
defaultMessage: string;
|
|
67
|
-
}>>;
|
|
10
|
+
value: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
11
|
+
label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
12
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
13
|
+
emptyValueMessage: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>>;
|
|
68
14
|
conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
69
15
|
type: z.ZodLiteral<"SHOW">;
|
|
70
|
-
conditional: z.
|
|
71
|
-
},
|
|
72
|
-
type: "SHOW";
|
|
73
|
-
conditional: import(".").JSONSchema;
|
|
74
|
-
}, {
|
|
75
|
-
type: "SHOW";
|
|
76
|
-
conditional: import(".").JSONSchema;
|
|
77
|
-
}>, "many">>>;
|
|
78
|
-
}, {
|
|
16
|
+
conditional: z.ZodAny;
|
|
17
|
+
}, z.core.$strip>>>>;
|
|
79
18
|
fieldId: z.ZodString;
|
|
80
|
-
label: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod,
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
defaultMessage: string;
|
|
84
|
-
}>>;
|
|
85
|
-
}>, "strip", z.ZodTypeAny, {
|
|
86
|
-
fieldId: string;
|
|
87
|
-
label?: TranslationConfig | undefined;
|
|
88
|
-
conditionals?: {
|
|
89
|
-
type: "SHOW";
|
|
90
|
-
conditional: import(".").JSONSchema;
|
|
91
|
-
}[] | undefined;
|
|
92
|
-
emptyValueMessage?: TranslationConfig | undefined;
|
|
93
|
-
}, {
|
|
94
|
-
fieldId: string;
|
|
95
|
-
label?: {
|
|
96
|
-
id: string;
|
|
97
|
-
description: string;
|
|
98
|
-
defaultMessage: string;
|
|
99
|
-
} | undefined;
|
|
100
|
-
conditionals?: {
|
|
101
|
-
type: "SHOW";
|
|
102
|
-
conditional: import(".").JSONSchema;
|
|
103
|
-
}[] | undefined;
|
|
104
|
-
emptyValueMessage?: {
|
|
105
|
-
id: string;
|
|
106
|
-
description: string;
|
|
107
|
-
defaultMessage: string;
|
|
108
|
-
} | undefined;
|
|
109
|
-
}>]>, "many">;
|
|
110
|
-
}, "strip", z.ZodTypeAny, {
|
|
111
|
-
fields: ({
|
|
112
|
-
fieldId: string;
|
|
113
|
-
label?: TranslationConfig | undefined;
|
|
114
|
-
conditionals?: {
|
|
115
|
-
type: "SHOW";
|
|
116
|
-
conditional: import(".").JSONSchema;
|
|
117
|
-
}[] | undefined;
|
|
118
|
-
emptyValueMessage?: TranslationConfig | undefined;
|
|
119
|
-
} | {
|
|
120
|
-
id: string;
|
|
121
|
-
value: TranslationConfig;
|
|
122
|
-
label: TranslationConfig;
|
|
123
|
-
conditionals?: {
|
|
124
|
-
type: "SHOW";
|
|
125
|
-
conditional: import(".").JSONSchema;
|
|
126
|
-
}[] | undefined;
|
|
127
|
-
emptyValueMessage?: TranslationConfig | undefined;
|
|
128
|
-
})[];
|
|
129
|
-
}, {
|
|
130
|
-
fields: ({
|
|
131
|
-
fieldId: string;
|
|
132
|
-
label?: {
|
|
133
|
-
id: string;
|
|
134
|
-
description: string;
|
|
135
|
-
defaultMessage: string;
|
|
136
|
-
} | undefined;
|
|
137
|
-
conditionals?: {
|
|
138
|
-
type: "SHOW";
|
|
139
|
-
conditional: import(".").JSONSchema;
|
|
140
|
-
}[] | undefined;
|
|
141
|
-
emptyValueMessage?: {
|
|
142
|
-
id: string;
|
|
143
|
-
description: string;
|
|
144
|
-
defaultMessage: string;
|
|
145
|
-
} | undefined;
|
|
146
|
-
} | {
|
|
147
|
-
id: string;
|
|
148
|
-
value: {
|
|
149
|
-
id: string;
|
|
150
|
-
description: string;
|
|
151
|
-
defaultMessage: string;
|
|
152
|
-
};
|
|
153
|
-
label: {
|
|
154
|
-
id: string;
|
|
155
|
-
description: string;
|
|
156
|
-
defaultMessage: string;
|
|
157
|
-
};
|
|
158
|
-
conditionals?: {
|
|
159
|
-
type: "SHOW";
|
|
160
|
-
conditional: import(".").JSONSchema;
|
|
161
|
-
}[] | undefined;
|
|
162
|
-
emptyValueMessage?: {
|
|
163
|
-
id: string;
|
|
164
|
-
description: string;
|
|
165
|
-
defaultMessage: string;
|
|
166
|
-
} | undefined;
|
|
167
|
-
})[];
|
|
168
|
-
}>;
|
|
19
|
+
label: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>>;
|
|
20
|
+
}, z.core.$strip>]>>;
|
|
21
|
+
}, z.core.$strip>;
|
|
169
22
|
export type SummaryConfig = z.infer<typeof SummaryConfig>;
|
|
170
23
|
//# sourceMappingURL=SummaryConfig.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* TemplateConfig defines configuration rules for system-based variables (e.g. $user.
|
|
2
|
+
* TemplateConfig defines configuration rules for system-based variables (e.g. $user.role).
|
|
3
3
|
* They are currently used for providing default values in FieldConfig.
|
|
4
4
|
*/
|
|
5
5
|
import { UUID } from '../uuid';
|
|
@@ -10,8 +10,6 @@ import { FieldValue } from './FieldValue';
|
|
|
10
10
|
export type SystemVariables = {
|
|
11
11
|
user: {
|
|
12
12
|
id: string;
|
|
13
|
-
province?: string;
|
|
14
|
-
district?: string;
|
|
15
13
|
name?: string;
|
|
16
14
|
role?: string;
|
|
17
15
|
firstname?: string;
|
|
@@ -19,6 +17,7 @@ export type SystemVariables = {
|
|
|
19
17
|
surname?: string;
|
|
20
18
|
primaryOfficeId?: UUID;
|
|
21
19
|
fullHonorificName?: string;
|
|
20
|
+
administrativeAreaId?: UUID;
|
|
22
21
|
device?: string;
|
|
23
22
|
avatar?: string;
|
|
24
23
|
signature?: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as z from 'zod/v4';
|
|
2
2
|
export type TranslationConfig = {
|
|
3
3
|
id: string;
|
|
4
4
|
defaultMessage: string;
|
|
@@ -9,7 +9,7 @@ export type MessageDescriptorZod = {
|
|
|
9
9
|
defaultMessage: z.ZodString;
|
|
10
10
|
description: z.ZodString;
|
|
11
11
|
};
|
|
12
|
-
type ExplicitTypeToReduceDeclarationSize = z.ZodObject<MessageDescriptorZod
|
|
12
|
+
type ExplicitTypeToReduceDeclarationSize = z.ZodObject<MessageDescriptorZod>;
|
|
13
13
|
export declare const TranslationConfig: ExplicitTypeToReduceDeclarationSize;
|
|
14
14
|
export {};
|
|
15
15
|
//# sourceMappingURL=TranslationConfig.d.ts.map
|