@opencrvs/toolkit 1.9.13-rc.9f087e5 → 1.9.13-rc.a0186ec

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.
Files changed (112) hide show
  1. package/build.sh +0 -13
  2. package/dist/api/index.d.ts.map +1 -1
  3. package/dist/commons/api/router.d.ts +2101 -3232
  4. package/dist/commons/conditionals/conditionals.d.ts +3 -27
  5. package/dist/commons/conditionals/validate.d.ts +2 -13
  6. package/dist/commons/events/ActionConfig.d.ts +1555 -415
  7. package/dist/commons/events/ActionDocument.d.ts +1941 -888
  8. package/dist/commons/events/ActionInput.d.ts +1073 -277
  9. package/dist/commons/events/ActionType.d.ts +11 -91
  10. package/dist/commons/events/AdvancedSearchConfig.d.ts +1496 -294
  11. package/dist/commons/events/CompositeFieldValue.d.ts +190 -30
  12. package/dist/commons/events/Conditional.d.ts +38 -26
  13. package/dist/commons/events/Constants.d.ts +1 -1
  14. package/dist/commons/events/CountryConfigQueryInput.d.ts +4471 -1592
  15. package/dist/commons/events/CreatedAtLocation.d.ts +2 -0
  16. package/dist/commons/events/DeduplicationConfig.d.ts +171 -15
  17. package/dist/commons/events/Draft.d.ts +107 -72
  18. package/dist/commons/events/DynamicFieldValue.d.ts +78 -12
  19. package/dist/commons/events/EventConfig.d.ts +2420 -35
  20. package/dist/commons/events/EventConfigInput.d.ts +3 -0
  21. package/dist/commons/events/EventDocument.d.ts +1366 -354
  22. package/dist/commons/events/EventIndex.d.ts +1010 -212
  23. package/dist/commons/events/EventInput.d.ts +8 -3
  24. package/dist/commons/events/EventMetadata.d.ts +357 -130
  25. package/dist/commons/events/FieldConfig.d.ts +12899 -2890
  26. package/dist/commons/events/FieldType.d.ts +4 -26
  27. package/dist/commons/events/FieldTypeMapping.d.ts +906 -314
  28. package/dist/commons/events/FieldValue.d.ts +527 -149
  29. package/dist/commons/events/FileUtils.d.ts +2 -2
  30. package/dist/commons/events/FormConfig.d.ts +721 -54
  31. package/dist/commons/events/PageConfig.d.ts +320 -58
  32. package/dist/commons/events/PlainDate.d.ts +1 -1
  33. package/dist/commons/events/SummaryConfig.d.ts +161 -14
  34. package/dist/commons/events/TemplateConfig.d.ts +3 -2
  35. package/dist/commons/events/TranslationConfig.d.ts +2 -2
  36. package/dist/commons/events/WorkqueueColumnConfig.d.ts +37 -74
  37. package/dist/commons/events/WorkqueueConfig.d.ts +7480 -2135
  38. package/dist/commons/events/deduplication.d.ts +3 -3
  39. package/dist/commons/events/defineConfig.d.ts +247 -2
  40. package/dist/commons/events/index.d.ts +0 -3
  41. package/dist/commons/events/locations.d.ts +20 -57
  42. package/dist/commons/events/scopes.d.ts +34 -35
  43. package/dist/commons/events/state/availableActions.d.ts +2 -7
  44. package/dist/commons/events/state/flags.d.ts +3 -21
  45. package/dist/commons/events/state/index.d.ts +27 -30
  46. package/dist/commons/events/state/utils.d.ts +172 -190
  47. package/dist/commons/events/test.utils.d.ts +11 -52
  48. package/dist/commons/events/transactions.d.ts +1 -1
  49. package/dist/commons/events/utils.d.ts +443 -374
  50. package/dist/commons/notification/UserNotifications.d.ts +637 -61
  51. package/dist/conditionals/index.d.ts.map +1 -1
  52. package/dist/conditionals/index.js +14 -302
  53. package/dist/events/deduplication.d.ts +3 -3
  54. package/dist/events/index.js +2107 -2838
  55. package/dist/notification/index.d.ts.map +1 -1
  56. package/dist/notification/index.js +1770 -2073
  57. package/dist/scopes/index.d.ts +353 -640
  58. package/dist/scopes/index.d.ts.map +1 -1
  59. package/dist/scopes/index.js +300 -340
  60. package/package.json +8 -18
  61. package/tsconfig.json +2 -9
  62. package/tsconfig.tsbuildinfo +1 -1
  63. package/dist/application-config/index.d.ts +0 -2
  64. package/dist/application-config/index.d.ts.map +0 -1
  65. package/dist/application-config/index.js +0 -2128
  66. package/dist/cli.d.ts +0 -2
  67. package/dist/cli.d.ts.map +0 -1
  68. package/dist/cli.js +0 -2422
  69. package/dist/commons/application-config/index.d.ts +0 -84
  70. package/dist/commons/events/AuditLog.d.ts +0 -405
  71. package/dist/commons/events/Flag.d.ts +0 -67
  72. package/dist/commons/events/eventConfigValidation.d.ts +0 -8
  73. package/dist/migrations/v2.0/add-birth-certificate-issuance-flag.d.ts +0 -3
  74. package/dist/migrations/v2.0/add-birth-certificate-issuance-flag.d.ts.map +0 -1
  75. package/dist/migrations/v2.0/add-birth-certificate-issuance-flag.js +0 -405
  76. package/dist/migrations/v2.0/convert-config-files-to-ts.d.ts +0 -2
  77. package/dist/migrations/v2.0/convert-config-files-to-ts.d.ts.map +0 -1
  78. package/dist/migrations/v2.0/convert-config-files-to-ts.js +0 -753
  79. package/dist/migrations/v2.0/convert-paragraph-to-heading.d.ts +0 -3
  80. package/dist/migrations/v2.0/convert-paragraph-to-heading.d.ts.map +0 -1
  81. package/dist/migrations/v2.0/convert-paragraph-to-heading.js +0 -159
  82. package/dist/migrations/v2.0/index.d.ts +0 -7
  83. package/dist/migrations/v2.0/index.d.ts.map +0 -1
  84. package/dist/migrations/v2.0/index.js +0 -2361
  85. package/dist/migrations/v2.0/make-built-in-validate-actions-custom.d.ts +0 -3
  86. package/dist/migrations/v2.0/make-built-in-validate-actions-custom.d.ts.map +0 -1
  87. package/dist/migrations/v2.0/make-built-in-validate-actions-custom.js +0 -344
  88. package/dist/migrations/v2.0/migrate-scopes.d.ts +0 -3
  89. package/dist/migrations/v2.0/migrate-scopes.d.ts.map +0 -1
  90. package/dist/migrations/v2.0/migrate-scopes.js +0 -281
  91. package/dist/migrations/v2.0/migrate-validated-workqueue-status-to-flag.d.ts +0 -3
  92. package/dist/migrations/v2.0/migrate-validated-workqueue-status-to-flag.d.ts.map +0 -1
  93. package/dist/migrations/v2.0/migrate-validated-workqueue-status-to-flag.js +0 -268
  94. package/dist/migrations/v2.0/remove-delete-actions.d.ts +0 -3
  95. package/dist/migrations/v2.0/remove-delete-actions.d.ts.map +0 -1
  96. package/dist/migrations/v2.0/remove-delete-actions.js +0 -157
  97. package/dist/migrations/v2.0/remove-deprecated-imports.d.ts +0 -3
  98. package/dist/migrations/v2.0/remove-deprecated-imports.d.ts.map +0 -1
  99. package/dist/migrations/v2.0/remove-deprecated-imports.js +0 -97
  100. package/dist/migrations/v2.0/remove-pending-certification-flag.d.ts +0 -3
  101. package/dist/migrations/v2.0/remove-pending-certification-flag.d.ts.map +0 -1
  102. package/dist/migrations/v2.0/remove-pending-certification-flag.js +0 -110
  103. package/dist/migrations/v2.0/remove-review-from-register-action.d.ts +0 -3
  104. package/dist/migrations/v2.0/remove-review-from-register-action.d.ts.map +0 -1
  105. package/dist/migrations/v2.0/remove-review-from-register-action.js +0 -164
  106. package/dist/migrations/v2.0/rename-api-paths.d.ts +0 -3
  107. package/dist/migrations/v2.0/rename-api-paths.d.ts.map +0 -1
  108. package/dist/migrations/v2.0/rename-api-paths.js +0 -188
  109. package/dist/migrations/v2.0/rename-location-parent-id.d.ts +0 -3
  110. package/dist/migrations/v2.0/rename-location-parent-id.d.ts.map +0 -1
  111. package/dist/migrations/v2.0/rename-location-parent-id.js +0 -181
  112. package/opencrvs-toolkit-1.9.13-rc.9f087e5.tgz +0 -0
@@ -1,80 +1,342 @@
1
- import * as z from 'zod/v4';
1
+ import { z } from 'zod';
2
2
  import { FieldConfig } from './FieldConfig';
3
- export declare const PageTypes: z.ZodEnum<{
4
- FORM: "FORM";
5
- VERIFICATION: "VERIFICATION";
6
- }>;
3
+ import { TranslationConfig } from './TranslationConfig';
4
+ export declare const PageTypes: z.ZodEnum<["FORM", "VERIFICATION"]>;
7
5
  export type PageType = z.infer<typeof PageTypes>;
8
- export declare const FormPageConfig: z.ZodObject<{
6
+ export declare const FormPageConfig: z.ZodObject<z.objectUtil.extendShape<{
9
7
  id: z.ZodString;
10
- title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
8
+ title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
9
+ id: string;
10
+ description: string;
11
+ defaultMessage: string;
12
+ }>;
11
13
  requireCompletionToContinue: z.ZodDefault<z.ZodBoolean>;
12
- fields: z.ZodArray<z.ZodType<FieldConfig, import("./FieldConfig").FieldConfigInput, z.core.$ZodTypeInternals<FieldConfig, import("./FieldConfig").FieldConfigInput>>>;
13
- conditional: z.ZodOptional<z.ZodAny>;
14
+ fields: z.ZodArray<z.ZodType<FieldConfig, z.ZodTypeDef, import("./FieldConfig").FieldConfigInput>, "many">;
15
+ conditional: z.ZodOptional<z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>>;
16
+ }, {
14
17
  type: z.ZodDefault<z.ZodLiteral<"FORM">>;
15
- }, z.core.$strip>;
18
+ }>, "strip", z.ZodTypeAny, {
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
+ }>;
16
37
  export type FormPageConfig = z.infer<typeof FormPageConfig>;
17
38
  export type FormPageConfigInput = z.input<typeof FormPageConfig>;
18
39
  export declare const VerificationActionConfig: z.ZodObject<{
19
40
  verify: z.ZodObject<{
20
- label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
21
- }, z.core.$strip>;
41
+ label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
42
+ id: string;
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
+ }>;
22
55
  cancel: z.ZodObject<{
23
- label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
56
+ label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
57
+ id: string;
58
+ description: string;
59
+ defaultMessage: string;
60
+ }>;
24
61
  confirmation: z.ZodObject<{
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<{
31
- id: z.ZodString;
32
- title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
33
- requireCompletionToContinue: z.ZodDefault<z.ZodBoolean>;
34
- fields: z.ZodArray<z.ZodType<FieldConfig, import("./FieldConfig").FieldConfigInput, z.core.$ZodTypeInternals<FieldConfig, import("./FieldConfig").FieldConfigInput>>>;
35
- conditional: z.ZodOptional<z.ZodAny>;
36
- type: z.ZodLiteral<"VERIFICATION">;
37
- actions: z.ZodObject<{
38
- verify: z.ZodObject<{
39
- label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
40
- }, z.core.$strip>;
41
- cancel: z.ZodObject<{
42
- label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
43
- confirmation: z.ZodObject<{
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>;
50
- export type VerificationPageConfig = z.infer<typeof VerificationPageConfig>;
51
- export declare const PageConfig: z.ZodDiscriminatedUnion<[z.ZodObject<{
62
+ title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
63
+ id: string;
64
+ description: string;
65
+ defaultMessage: string;
66
+ }>;
67
+ body: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
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<{
52
152
  id: z.ZodString;
53
- title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
153
+ title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
154
+ id: string;
155
+ description: string;
156
+ defaultMessage: string;
157
+ }>;
54
158
  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>;
159
+ fields: z.ZodArray<z.ZodType<FieldConfig, z.ZodTypeDef, import("./FieldConfig").FieldConfigInput>, "many">;
160
+ conditional: z.ZodOptional<z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>>;
161
+ }, {
57
162
  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>;
163
+ }>, {
64
164
  type: z.ZodLiteral<"VERIFICATION">;
65
165
  actions: z.ZodObject<{
66
166
  verify: z.ZodObject<{
67
- label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
68
- }, z.core.$strip>;
167
+ label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
168
+ id: string;
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
+ }>;
69
181
  cancel: z.ZodObject<{
70
- label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
182
+ label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
183
+ id: string;
184
+ description: string;
185
+ defaultMessage: string;
186
+ }>;
71
187
  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">;
188
+ title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
189
+ id: string;
190
+ description: string;
191
+ defaultMessage: string;
192
+ }>;
193
+ body: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
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
+ }>;
336
+ export type VerificationPageConfig = z.infer<typeof VerificationPageConfig>;
337
+ type AllPageConfig = typeof VerificationPageConfig | typeof FormPageConfig;
338
+ export declare const PageConfig: z.ZodDiscriminatedUnion<"type", AllPageConfig[]>;
78
339
  export type PageConfig = z.infer<typeof PageConfig>;
79
340
  export type PageConfigInput = z.input<typeof PageConfig>;
341
+ export {};
80
342
  //# 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.core.$ZodBranded<z.ZodString, "PlainDate", "out">;
10
+ export declare const PlainDate: z.ZodBranded<z.ZodString, "PlainDate">;
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,23 +1,170 @@
1
- import * as z from 'zod/v4';
1
+ import { z } from 'zod';
2
+ import { TranslationConfig } from './TranslationConfig';
2
3
  export declare const SummaryConfig: z.ZodObject<{
3
- fields: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
4
- emptyValueMessage: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>>;
4
+ fields: z.ZodArray<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
5
+ emptyValueMessage: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
6
+ id: string;
7
+ description: string;
8
+ defaultMessage: string;
9
+ }>>;
5
10
  conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
6
11
  type: z.ZodLiteral<"SHOW">;
7
- conditional: z.ZodAny;
8
- }, z.core.$strip>>>>;
12
+ conditional: z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>;
13
+ }, "strip", z.ZodTypeAny, {
14
+ type: "SHOW";
15
+ conditional: import(".").JSONSchema;
16
+ }, {
17
+ type: "SHOW";
18
+ conditional: import(".").JSONSchema;
19
+ }>, "many">>>;
20
+ }, {
9
21
  id: z.ZodString;
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>>;
22
+ value: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
23
+ id: string;
24
+ description: string;
25
+ defaultMessage: string;
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
+ }>>;
14
68
  conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
15
69
  type: z.ZodLiteral<"SHOW">;
16
- conditional: z.ZodAny;
17
- }, z.core.$strip>>>>;
70
+ conditional: z.ZodType<import(".").JSONSchema, z.ZodTypeDef, import(".").JSONSchema>;
71
+ }, "strip", z.ZodTypeAny, {
72
+ type: "SHOW";
73
+ conditional: import(".").JSONSchema;
74
+ }, {
75
+ type: "SHOW";
76
+ conditional: import(".").JSONSchema;
77
+ }>, "many">>>;
78
+ }, {
18
79
  fieldId: z.ZodString;
19
- label: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>>;
20
- }, z.core.$strip>]>>;
21
- }, z.core.$strip>;
80
+ label: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
81
+ id: string;
82
+ description: string;
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
+ }>;
22
169
  export type SummaryConfig = z.infer<typeof SummaryConfig>;
23
170
  //# sourceMappingURL=SummaryConfig.d.ts.map
@@ -1,5 +1,5 @@
1
1
  /**
2
- * TemplateConfig defines configuration rules for system-based variables (e.g. $user.role).
2
+ * TemplateConfig defines configuration rules for system-based variables (e.g. $user.province).
3
3
  * They are currently used for providing default values in FieldConfig.
4
4
  */
5
5
  import { UUID } from '../uuid';
@@ -10,6 +10,8 @@ import { FieldValue } from './FieldValue';
10
10
  export type SystemVariables = {
11
11
  user: {
12
12
  id: string;
13
+ province?: string;
14
+ district?: string;
13
15
  name?: string;
14
16
  role?: string;
15
17
  firstname?: string;
@@ -17,7 +19,6 @@ export type SystemVariables = {
17
19
  surname?: string;
18
20
  primaryOfficeId?: UUID;
19
21
  fullHonorificName?: string;
20
- administrativeAreaId?: UUID;
21
22
  device?: string;
22
23
  avatar?: string;
23
24
  signature?: string;
@@ -1,4 +1,4 @@
1
- import * as z from 'zod/v4';
1
+ import { z } from 'zod';
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, 'strip', z.ZodTypeAny, TranslationConfig>;
13
13
  export declare const TranslationConfig: ExplicitTypeToReduceDeclarationSize;
14
14
  export {};
15
15
  //# sourceMappingURL=TranslationConfig.d.ts.map