@opencrvs/toolkit 1.8.0-rc.fd16d13 → 1.8.0-rc.fd16dc2
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/README.md +1 -1
- package/dist/commons/api/router.d.ts +12875 -13596
- package/dist/commons/conditionals/conditionals.d.ts +31 -12
- package/dist/commons/conditionals/validate.d.ts +18 -17
- package/dist/commons/events/ActionConfig.d.ts +124475 -2015
- package/dist/commons/events/ActionDocument.d.ts +11605 -921
- package/dist/commons/events/ActionInput.d.ts +5999 -1302
- package/dist/commons/events/ActionType.d.ts +30 -11
- package/dist/commons/events/AdvancedSearchConfig.d.ts +1260 -22
- package/dist/commons/events/CompositeFieldValue.d.ts +92 -21
- package/dist/commons/events/Conditional.d.ts +21 -5
- package/dist/commons/events/Constants.d.ts +3 -0
- package/dist/commons/events/CountryConfigQueryInput.d.ts +4132 -0
- package/dist/commons/events/CreatedAtLocation.d.ts +2 -0
- package/dist/commons/events/Draft.d.ts +408 -130
- package/dist/commons/events/EventConfig.d.ts +59982 -1782
- package/dist/commons/events/EventConfigInput.d.ts +6 -3
- package/dist/commons/events/EventDocument.d.ts +4029 -1116
- package/dist/commons/events/EventIndex.d.ts +2226 -24
- package/dist/commons/events/EventMetadata.d.ts +343 -42
- package/dist/commons/events/FieldConfig.d.ts +6364 -1008
- package/dist/commons/events/FieldType.d.ts +8 -3
- package/dist/commons/events/FieldTypeMapping.d.ts +193 -63
- package/dist/commons/events/FieldValue.d.ts +118 -28
- package/dist/commons/events/FormConfig.d.ts +52557 -90
- package/dist/commons/events/PageConfig.d.ts +13129 -0
- package/dist/commons/events/SummaryConfig.d.ts +93 -42
- package/dist/commons/events/TemplateConfig.d.ts +5 -5
- package/dist/commons/events/User.d.ts +34 -2
- package/dist/commons/events/WorkqueueColumnConfig.d.ts +53 -0
- package/dist/commons/events/WorkqueueConfig.d.ts +8116 -20
- package/dist/commons/events/defineConfig.d.ts +9801 -301
- package/dist/commons/events/event.d.ts +46 -0
- package/dist/commons/events/field.d.ts +82 -0
- package/dist/commons/events/index.d.ts +10 -1
- package/dist/commons/events/scopes.d.ts +44 -0
- package/dist/commons/events/serializer.d.ts +2 -0
- package/dist/commons/events/test.utils.d.ts +227 -292
- package/dist/commons/events/transactions.d.ts +1 -1
- package/dist/commons/events/utils.d.ts +16184 -103
- package/dist/commons/events/utils.test.d.ts +2 -0
- package/dist/commons/events/workqueueDefaultColumns.d.ts +3 -0
- package/dist/conditionals/index.js +211 -115
- package/dist/events/index.js +5652 -2368
- package/dist/scopes/index.d.ts +247 -1
- package/dist/scopes/index.js +231 -1
- package/package.json +4 -3
@@ -6,22 +6,27 @@ export declare const GeographicalArea: {
|
|
6
6
|
readonly URBAN: "URBAN";
|
7
7
|
readonly RURAL: "RURAL";
|
8
8
|
};
|
9
|
+
export declare const AddressType: {
|
10
|
+
readonly DOMESTIC: "DOMESTIC";
|
11
|
+
readonly INTERNATIONAL: "INTERNATIONAL";
|
12
|
+
};
|
9
13
|
export declare const FileFieldValue: z.ZodObject<{
|
10
|
-
|
14
|
+
path: z.ZodEffects<z.ZodString, string, string>;
|
11
15
|
originalFilename: z.ZodString;
|
12
16
|
type: z.ZodString;
|
13
17
|
}, "strip", z.ZodTypeAny, {
|
14
18
|
type: string;
|
15
|
-
|
19
|
+
path: string;
|
16
20
|
originalFilename: string;
|
17
21
|
}, {
|
18
22
|
type: string;
|
19
|
-
|
23
|
+
path: string;
|
20
24
|
originalFilename: string;
|
21
25
|
}>;
|
22
26
|
export type FileFieldValue = z.infer<typeof FileFieldValue>;
|
23
27
|
export declare const UrbanAddressValue: z.ZodObject<z.objectUtil.extendShape<{
|
24
|
-
country: z.
|
28
|
+
country: z.ZodString;
|
29
|
+
addressType: z.ZodLiteral<"DOMESTIC">;
|
25
30
|
province: z.ZodString;
|
26
31
|
district: z.ZodString;
|
27
32
|
}, {
|
@@ -34,6 +39,7 @@ export declare const UrbanAddressValue: z.ZodObject<z.objectUtil.extendShape<{
|
|
34
39
|
}>, "strip", z.ZodTypeAny, {
|
35
40
|
country: string;
|
36
41
|
district: string;
|
42
|
+
addressType: "DOMESTIC";
|
37
43
|
province: string;
|
38
44
|
urbanOrRural: "URBAN";
|
39
45
|
number?: string | undefined;
|
@@ -44,6 +50,7 @@ export declare const UrbanAddressValue: z.ZodObject<z.objectUtil.extendShape<{
|
|
44
50
|
}, {
|
45
51
|
country: string;
|
46
52
|
district: string;
|
53
|
+
addressType: "DOMESTIC";
|
47
54
|
province: string;
|
48
55
|
urbanOrRural: "URBAN";
|
49
56
|
number?: string | undefined;
|
@@ -53,7 +60,8 @@ export declare const UrbanAddressValue: z.ZodObject<z.objectUtil.extendShape<{
|
|
53
60
|
zipCode?: string | undefined;
|
54
61
|
}>;
|
55
62
|
export declare const RuralAddressValue: z.ZodObject<z.objectUtil.extendShape<{
|
56
|
-
country: z.
|
63
|
+
country: z.ZodString;
|
64
|
+
addressType: z.ZodLiteral<"DOMESTIC">;
|
57
65
|
province: z.ZodString;
|
58
66
|
district: z.ZodString;
|
59
67
|
}, {
|
@@ -62,18 +70,21 @@ export declare const RuralAddressValue: z.ZodObject<z.objectUtil.extendShape<{
|
|
62
70
|
}>, "strip", z.ZodTypeAny, {
|
63
71
|
country: string;
|
64
72
|
district: string;
|
73
|
+
addressType: "DOMESTIC";
|
65
74
|
province: string;
|
66
75
|
urbanOrRural: "RURAL";
|
67
76
|
village?: string | undefined;
|
68
77
|
}, {
|
69
78
|
country: string;
|
70
79
|
district: string;
|
80
|
+
addressType: "DOMESTIC";
|
71
81
|
province: string;
|
72
82
|
urbanOrRural: "RURAL";
|
73
83
|
village?: string | undefined;
|
74
84
|
}>;
|
75
85
|
export declare const UrbanAddressUpdateValue: z.ZodObject<z.objectUtil.extendShape<{
|
76
|
-
country: z.
|
86
|
+
country: z.ZodString;
|
87
|
+
addressType: z.ZodLiteral<"DOMESTIC">;
|
77
88
|
province: z.ZodString;
|
78
89
|
district: z.ZodString;
|
79
90
|
}, {
|
@@ -86,6 +97,7 @@ export declare const UrbanAddressUpdateValue: z.ZodObject<z.objectUtil.extendSha
|
|
86
97
|
}>, "strip", z.ZodTypeAny, {
|
87
98
|
country: string;
|
88
99
|
district: string;
|
100
|
+
addressType: "DOMESTIC";
|
89
101
|
province: string;
|
90
102
|
urbanOrRural: "URBAN";
|
91
103
|
number?: string | null | undefined;
|
@@ -96,6 +108,7 @@ export declare const UrbanAddressUpdateValue: z.ZodObject<z.objectUtil.extendSha
|
|
96
108
|
}, {
|
97
109
|
country: string;
|
98
110
|
district: string;
|
111
|
+
addressType: "DOMESTIC";
|
99
112
|
province: string;
|
100
113
|
urbanOrRural: "URBAN";
|
101
114
|
number?: string | null | undefined;
|
@@ -104,8 +117,38 @@ export declare const UrbanAddressUpdateValue: z.ZodObject<z.objectUtil.extendSha
|
|
104
117
|
street?: string | null | undefined;
|
105
118
|
zipCode?: string | null | undefined;
|
106
119
|
}>;
|
120
|
+
export declare const NameFieldValue: z.ZodObject<{
|
121
|
+
firstname: z.ZodString;
|
122
|
+
surname: z.ZodString;
|
123
|
+
middlename: z.ZodOptional<z.ZodString>;
|
124
|
+
}, "strip", z.ZodTypeAny, {
|
125
|
+
firstname: string;
|
126
|
+
surname: string;
|
127
|
+
middlename?: string | undefined;
|
128
|
+
}, {
|
129
|
+
firstname: string;
|
130
|
+
surname: string;
|
131
|
+
middlename?: string | undefined;
|
132
|
+
}>;
|
133
|
+
export declare const NameFieldUpdateValue: z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
134
|
+
firstname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
135
|
+
surname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
136
|
+
middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
137
|
+
}, "strip", z.ZodTypeAny, {
|
138
|
+
firstname?: string | null | undefined;
|
139
|
+
surname?: string | null | undefined;
|
140
|
+
middlename?: string | null | undefined;
|
141
|
+
}, {
|
142
|
+
firstname?: string | null | undefined;
|
143
|
+
surname?: string | null | undefined;
|
144
|
+
middlename?: string | null | undefined;
|
145
|
+
}>, z.ZodNull]>, z.ZodUndefined]>;
|
146
|
+
export type NameFieldValue = z.infer<typeof NameFieldValue>;
|
147
|
+
export type NameFieldUpdateValue = z.infer<typeof NameFieldUpdateValue>;
|
148
|
+
export type UrbanAddressUpdateValue = z.infer<typeof UrbanAddressUpdateValue>;
|
107
149
|
export declare const RuralAddressUpdateValue: z.ZodObject<z.objectUtil.extendShape<{
|
108
|
-
country: z.
|
150
|
+
country: z.ZodString;
|
151
|
+
addressType: z.ZodLiteral<"DOMESTIC">;
|
109
152
|
province: z.ZodString;
|
110
153
|
district: z.ZodString;
|
111
154
|
}, {
|
@@ -114,18 +157,22 @@ export declare const RuralAddressUpdateValue: z.ZodObject<z.objectUtil.extendSha
|
|
114
157
|
}>, "strip", z.ZodTypeAny, {
|
115
158
|
country: string;
|
116
159
|
district: string;
|
160
|
+
addressType: "DOMESTIC";
|
117
161
|
province: string;
|
118
162
|
urbanOrRural: "RURAL";
|
119
163
|
village?: string | null | undefined;
|
120
164
|
}, {
|
121
165
|
country: string;
|
122
166
|
district: string;
|
167
|
+
addressType: "DOMESTIC";
|
123
168
|
province: string;
|
124
169
|
urbanOrRural: "RURAL";
|
125
170
|
village?: string | null | undefined;
|
126
171
|
}>;
|
172
|
+
export type RuralAddressUpdateValue = z.infer<typeof RuralAddressUpdateValue>;
|
127
173
|
export declare const GenericAddressValue: z.ZodObject<{
|
128
|
-
country: z.
|
174
|
+
country: z.ZodString;
|
175
|
+
addressType: z.ZodLiteral<"INTERNATIONAL">;
|
129
176
|
state: z.ZodString;
|
130
177
|
district2: z.ZodString;
|
131
178
|
cityOrTown: z.ZodOptional<z.ZodString>;
|
@@ -136,6 +183,7 @@ export declare const GenericAddressValue: z.ZodObject<{
|
|
136
183
|
}, "strip", z.ZodTypeAny, {
|
137
184
|
country: string;
|
138
185
|
state: string;
|
186
|
+
addressType: "INTERNATIONAL";
|
139
187
|
district2: string;
|
140
188
|
cityOrTown?: string | undefined;
|
141
189
|
addressLine1?: string | undefined;
|
@@ -145,6 +193,7 @@ export declare const GenericAddressValue: z.ZodObject<{
|
|
145
193
|
}, {
|
146
194
|
country: string;
|
147
195
|
state: string;
|
196
|
+
addressType: "INTERNATIONAL";
|
148
197
|
district2: string;
|
149
198
|
cityOrTown?: string | undefined;
|
150
199
|
addressLine1?: string | undefined;
|
@@ -153,7 +202,8 @@ export declare const GenericAddressValue: z.ZodObject<{
|
|
153
202
|
postcodeOrZip?: string | undefined;
|
154
203
|
}>;
|
155
204
|
export declare const AddressFieldValue: z.ZodUnion<[z.ZodDiscriminatedUnion<"urbanOrRural", [z.ZodObject<z.objectUtil.extendShape<{
|
156
|
-
country: z.
|
205
|
+
country: z.ZodString;
|
206
|
+
addressType: z.ZodLiteral<"DOMESTIC">;
|
157
207
|
province: z.ZodString;
|
158
208
|
district: z.ZodString;
|
159
209
|
}, {
|
@@ -166,6 +216,7 @@ export declare const AddressFieldValue: z.ZodUnion<[z.ZodDiscriminatedUnion<"urb
|
|
166
216
|
}>, "strip", z.ZodTypeAny, {
|
167
217
|
country: string;
|
168
218
|
district: string;
|
219
|
+
addressType: "DOMESTIC";
|
169
220
|
province: string;
|
170
221
|
urbanOrRural: "URBAN";
|
171
222
|
number?: string | undefined;
|
@@ -176,6 +227,7 @@ export declare const AddressFieldValue: z.ZodUnion<[z.ZodDiscriminatedUnion<"urb
|
|
176
227
|
}, {
|
177
228
|
country: string;
|
178
229
|
district: string;
|
230
|
+
addressType: "DOMESTIC";
|
179
231
|
province: string;
|
180
232
|
urbanOrRural: "URBAN";
|
181
233
|
number?: string | undefined;
|
@@ -184,7 +236,8 @@ export declare const AddressFieldValue: z.ZodUnion<[z.ZodDiscriminatedUnion<"urb
|
|
184
236
|
street?: string | undefined;
|
185
237
|
zipCode?: string | undefined;
|
186
238
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
187
|
-
country: z.
|
239
|
+
country: z.ZodString;
|
240
|
+
addressType: z.ZodLiteral<"DOMESTIC">;
|
188
241
|
province: z.ZodString;
|
189
242
|
district: z.ZodString;
|
190
243
|
}, {
|
@@ -193,17 +246,20 @@ export declare const AddressFieldValue: z.ZodUnion<[z.ZodDiscriminatedUnion<"urb
|
|
193
246
|
}>, "strip", z.ZodTypeAny, {
|
194
247
|
country: string;
|
195
248
|
district: string;
|
249
|
+
addressType: "DOMESTIC";
|
196
250
|
province: string;
|
197
251
|
urbanOrRural: "RURAL";
|
198
252
|
village?: string | undefined;
|
199
253
|
}, {
|
200
254
|
country: string;
|
201
255
|
district: string;
|
256
|
+
addressType: "DOMESTIC";
|
202
257
|
province: string;
|
203
258
|
urbanOrRural: "RURAL";
|
204
259
|
village?: string | undefined;
|
205
260
|
}>]>, z.ZodObject<{
|
206
|
-
country: z.
|
261
|
+
country: z.ZodString;
|
262
|
+
addressType: z.ZodLiteral<"INTERNATIONAL">;
|
207
263
|
state: z.ZodString;
|
208
264
|
district2: z.ZodString;
|
209
265
|
cityOrTown: z.ZodOptional<z.ZodString>;
|
@@ -214,6 +270,7 @@ export declare const AddressFieldValue: z.ZodUnion<[z.ZodDiscriminatedUnion<"urb
|
|
214
270
|
}, "strip", z.ZodTypeAny, {
|
215
271
|
country: string;
|
216
272
|
state: string;
|
273
|
+
addressType: "INTERNATIONAL";
|
217
274
|
district2: string;
|
218
275
|
cityOrTown?: string | undefined;
|
219
276
|
addressLine1?: string | undefined;
|
@@ -223,6 +280,7 @@ export declare const AddressFieldValue: z.ZodUnion<[z.ZodDiscriminatedUnion<"urb
|
|
223
280
|
}, {
|
224
281
|
country: string;
|
225
282
|
state: string;
|
283
|
+
addressType: "INTERNATIONAL";
|
226
284
|
district2: string;
|
227
285
|
cityOrTown?: string | undefined;
|
228
286
|
addressLine1?: string | undefined;
|
@@ -231,7 +289,8 @@ export declare const AddressFieldValue: z.ZodUnion<[z.ZodDiscriminatedUnion<"urb
|
|
231
289
|
postcodeOrZip?: string | undefined;
|
232
290
|
}>]>;
|
233
291
|
export declare const GenericAddressUpdateValue: z.ZodObject<{
|
234
|
-
country: z.
|
292
|
+
country: z.ZodString;
|
293
|
+
addressType: z.ZodLiteral<"INTERNATIONAL">;
|
235
294
|
state: z.ZodString;
|
236
295
|
district2: z.ZodString;
|
237
296
|
cityOrTown: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
@@ -242,6 +301,7 @@ export declare const GenericAddressUpdateValue: z.ZodObject<{
|
|
242
301
|
}, "strip", z.ZodTypeAny, {
|
243
302
|
country: string;
|
244
303
|
state: string;
|
304
|
+
addressType: "INTERNATIONAL";
|
245
305
|
district2: string;
|
246
306
|
cityOrTown?: string | null | undefined;
|
247
307
|
addressLine1?: string | null | undefined;
|
@@ -251,6 +311,7 @@ export declare const GenericAddressUpdateValue: z.ZodObject<{
|
|
251
311
|
}, {
|
252
312
|
country: string;
|
253
313
|
state: string;
|
314
|
+
addressType: "INTERNATIONAL";
|
254
315
|
district2: string;
|
255
316
|
cityOrTown?: string | null | undefined;
|
256
317
|
addressLine1?: string | null | undefined;
|
@@ -258,8 +319,10 @@ export declare const GenericAddressUpdateValue: z.ZodObject<{
|
|
258
319
|
addressLine3?: string | null | undefined;
|
259
320
|
postcodeOrZip?: string | null | undefined;
|
260
321
|
}>;
|
322
|
+
export type GenericAddressUpdateValue = z.infer<typeof GenericAddressUpdateValue>;
|
261
323
|
export declare const AddressFieldUpdateValue: z.ZodUnion<[z.ZodDiscriminatedUnion<"urbanOrRural", [z.ZodObject<z.objectUtil.extendShape<{
|
262
|
-
country: z.
|
324
|
+
country: z.ZodString;
|
325
|
+
addressType: z.ZodLiteral<"DOMESTIC">;
|
263
326
|
province: z.ZodString;
|
264
327
|
district: z.ZodString;
|
265
328
|
}, {
|
@@ -272,6 +335,7 @@ export declare const AddressFieldUpdateValue: z.ZodUnion<[z.ZodDiscriminatedUnio
|
|
272
335
|
}>, "strip", z.ZodTypeAny, {
|
273
336
|
country: string;
|
274
337
|
district: string;
|
338
|
+
addressType: "DOMESTIC";
|
275
339
|
province: string;
|
276
340
|
urbanOrRural: "URBAN";
|
277
341
|
number?: string | null | undefined;
|
@@ -282,6 +346,7 @@ export declare const AddressFieldUpdateValue: z.ZodUnion<[z.ZodDiscriminatedUnio
|
|
282
346
|
}, {
|
283
347
|
country: string;
|
284
348
|
district: string;
|
349
|
+
addressType: "DOMESTIC";
|
285
350
|
province: string;
|
286
351
|
urbanOrRural: "URBAN";
|
287
352
|
number?: string | null | undefined;
|
@@ -290,7 +355,8 @@ export declare const AddressFieldUpdateValue: z.ZodUnion<[z.ZodDiscriminatedUnio
|
|
290
355
|
street?: string | null | undefined;
|
291
356
|
zipCode?: string | null | undefined;
|
292
357
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
293
|
-
country: z.
|
358
|
+
country: z.ZodString;
|
359
|
+
addressType: z.ZodLiteral<"DOMESTIC">;
|
294
360
|
province: z.ZodString;
|
295
361
|
district: z.ZodString;
|
296
362
|
}, {
|
@@ -299,17 +365,20 @@ export declare const AddressFieldUpdateValue: z.ZodUnion<[z.ZodDiscriminatedUnio
|
|
299
365
|
}>, "strip", z.ZodTypeAny, {
|
300
366
|
country: string;
|
301
367
|
district: string;
|
368
|
+
addressType: "DOMESTIC";
|
302
369
|
province: string;
|
303
370
|
urbanOrRural: "RURAL";
|
304
371
|
village?: string | null | undefined;
|
305
372
|
}, {
|
306
373
|
country: string;
|
307
374
|
district: string;
|
375
|
+
addressType: "DOMESTIC";
|
308
376
|
province: string;
|
309
377
|
urbanOrRural: "RURAL";
|
310
378
|
village?: string | null | undefined;
|
311
379
|
}>]>, z.ZodObject<{
|
312
|
-
country: z.
|
380
|
+
country: z.ZodString;
|
381
|
+
addressType: z.ZodLiteral<"INTERNATIONAL">;
|
313
382
|
state: z.ZodString;
|
314
383
|
district2: z.ZodString;
|
315
384
|
cityOrTown: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
@@ -320,6 +389,7 @@ export declare const AddressFieldUpdateValue: z.ZodUnion<[z.ZodDiscriminatedUnio
|
|
320
389
|
}, "strip", z.ZodTypeAny, {
|
321
390
|
country: string;
|
322
391
|
state: string;
|
392
|
+
addressType: "INTERNATIONAL";
|
323
393
|
district2: string;
|
324
394
|
cityOrTown?: string | null | undefined;
|
325
395
|
addressLine1?: string | null | undefined;
|
@@ -329,6 +399,7 @@ export declare const AddressFieldUpdateValue: z.ZodUnion<[z.ZodDiscriminatedUnio
|
|
329
399
|
}, {
|
330
400
|
country: string;
|
331
401
|
state: string;
|
402
|
+
addressType: "INTERNATIONAL";
|
332
403
|
district2: string;
|
333
404
|
cityOrTown?: string | null | undefined;
|
334
405
|
addressLine1?: string | null | undefined;
|
@@ -338,36 +409,36 @@ export declare const AddressFieldUpdateValue: z.ZodUnion<[z.ZodDiscriminatedUnio
|
|
338
409
|
}>]>;
|
339
410
|
export type AddressFieldValue = z.infer<typeof AddressFieldValue>;
|
340
411
|
export declare const FileFieldValueWithOption: z.ZodObject<{
|
341
|
-
|
412
|
+
path: z.ZodEffects<z.ZodString, string, string>;
|
342
413
|
originalFilename: z.ZodString;
|
343
414
|
type: z.ZodString;
|
344
415
|
option: z.ZodString;
|
345
416
|
}, "strip", z.ZodTypeAny, {
|
346
417
|
type: string;
|
347
418
|
option: string;
|
348
|
-
|
419
|
+
path: string;
|
349
420
|
originalFilename: string;
|
350
421
|
}, {
|
351
422
|
type: string;
|
352
423
|
option: string;
|
353
|
-
|
424
|
+
path: string;
|
354
425
|
originalFilename: string;
|
355
426
|
}>;
|
356
427
|
export type FileFieldValueWithOption = z.infer<typeof FileFieldValueWithOption>;
|
357
428
|
export declare const FileFieldWithOptionValue: z.ZodArray<z.ZodObject<{
|
358
|
-
|
429
|
+
path: z.ZodEffects<z.ZodString, string, string>;
|
359
430
|
originalFilename: z.ZodString;
|
360
431
|
type: z.ZodString;
|
361
432
|
option: z.ZodString;
|
362
433
|
}, "strip", z.ZodTypeAny, {
|
363
434
|
type: string;
|
364
435
|
option: string;
|
365
|
-
|
436
|
+
path: string;
|
366
437
|
originalFilename: string;
|
367
438
|
}, {
|
368
439
|
type: string;
|
369
440
|
option: string;
|
370
|
-
|
441
|
+
path: string;
|
371
442
|
originalFilename: string;
|
372
443
|
}>, "many">;
|
373
444
|
export type FileFieldWithOptionValue = z.infer<typeof FileFieldWithOptionValue>;
|
@@ -1,15 +1,15 @@
|
|
1
1
|
import { JSONSchema } from '../conditionals/conditionals';
|
2
2
|
import { z } from 'zod';
|
3
|
-
export declare
|
3
|
+
export declare const Conditional: z.ZodType<JSONSchema, z.ZodTypeDef, JSONSchema>;
|
4
4
|
/**
|
5
5
|
* By default, when conditionals are undefined, action is visible and enabled to everyone.
|
6
6
|
*/
|
7
7
|
export declare const ConditionalType: {
|
8
|
-
/** When 'SHOW' conditional is defined, the action is shown to the user only if the condition is met */
|
9
8
|
readonly SHOW: "SHOW";
|
10
|
-
/** If 'ENABLE' conditional is defined, the action is enabled only if the condition is met */
|
11
9
|
readonly ENABLE: "ENABLE";
|
10
|
+
readonly DISPLAY_ON_REVIEW: "DISPLAY_ON_REVIEW";
|
12
11
|
};
|
12
|
+
export type ConditionalType = (typeof ConditionalType)[keyof typeof ConditionalType];
|
13
13
|
export declare const ShowConditional: z.ZodObject<{
|
14
14
|
type: z.ZodLiteral<"SHOW">;
|
15
15
|
conditional: z.ZodType<JSONSchema, z.ZodTypeDef, JSONSchema>;
|
@@ -31,9 +31,25 @@ export declare const EnableConditional: z.ZodObject<{
|
|
31
31
|
conditional: JSONSchema;
|
32
32
|
}>;
|
33
33
|
/** @knipignore */
|
34
|
-
export type
|
34
|
+
export type ActionConditionalType = typeof ShowConditional | typeof EnableConditional;
|
35
35
|
/** @knipignore */
|
36
36
|
export type InferredActionConditional = z.infer<typeof ShowConditional> | z.infer<typeof EnableConditional>;
|
37
|
-
export declare const ActionConditional: z.ZodDiscriminatedUnion<"type",
|
37
|
+
export declare const ActionConditional: z.ZodDiscriminatedUnion<"type", ActionConditionalType[]>;
|
38
38
|
export type ActionConditional = InferredActionConditional;
|
39
|
+
export declare const DisplayOnReviewConditional: z.ZodObject<{
|
40
|
+
type: z.ZodLiteral<"DISPLAY_ON_REVIEW">;
|
41
|
+
conditional: z.ZodType<JSONSchema, z.ZodTypeDef, JSONSchema>;
|
42
|
+
}, "strip", z.ZodTypeAny, {
|
43
|
+
type: "DISPLAY_ON_REVIEW";
|
44
|
+
conditional: JSONSchema;
|
45
|
+
}, {
|
46
|
+
type: "DISPLAY_ON_REVIEW";
|
47
|
+
conditional: JSONSchema;
|
48
|
+
}>;
|
49
|
+
/** @knipignore */
|
50
|
+
export type FieldConditionalType = typeof ShowConditional | typeof EnableConditional | typeof DisplayOnReviewConditional;
|
51
|
+
/** @knipignore */
|
52
|
+
export type InferredFieldConditional = z.infer<typeof ShowConditional> | z.infer<typeof EnableConditional> | z.infer<typeof DisplayOnReviewConditional>;
|
53
|
+
export declare const FieldConditional: z.ZodDiscriminatedUnion<"type", FieldConditionalType[]>;
|
54
|
+
export type FieldConditional = z.infer<typeof FieldConditional>;
|
39
55
|
//# sourceMappingURL=Conditional.d.ts.map
|