@opencrvs/toolkit 1.8.0-rc.ffe8c17 → 1.8.1-rc.19443c9
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 +8951 -10988
- package/dist/commons/conditionals/conditionals.d.ts +31 -12
- package/dist/commons/conditionals/validate-address.test.d.ts +2 -0
- package/dist/commons/conditionals/validate.d.ts +23 -17
- package/dist/commons/events/ActionConfig.d.ts +118678 -3282
- package/dist/commons/events/ActionDocument.d.ts +14099 -797
- package/dist/commons/events/ActionInput.d.ts +8194 -1095
- package/dist/commons/events/ActionType.d.ts +35 -11
- package/dist/commons/events/AdvancedSearchConfig.d.ts +1282 -22
- package/dist/commons/events/CompositeFieldValue.d.ts +192 -11
- 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 +608 -114
- package/dist/commons/events/EventConfig.d.ts +53975 -3192
- package/dist/commons/events/EventConfigInput.d.ts +6 -3
- package/dist/commons/events/EventDocument.d.ts +5847 -999
- package/dist/commons/events/EventIndex.d.ts +2350 -26
- package/dist/commons/events/EventMetadata.d.ts +347 -44
- package/dist/commons/events/FieldConfig.d.ts +6984 -1209
- package/dist/commons/events/FieldType.d.ts +8 -3
- package/dist/commons/events/FieldTypeMapping.d.ts +253 -268
- package/dist/commons/events/FieldValue.d.ts +159 -93
- package/dist/commons/events/FormConfig.d.ts +55832 -336
- package/dist/commons/events/PageConfig.d.ts +13951 -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 +8205 -20
- package/dist/commons/events/defineConfig.d.ts +8535 -460
- package/dist/commons/events/event.d.ts +54 -0
- package/dist/commons/events/field.d.ts +108 -0
- package/dist/commons/events/index.d.ts +10 -1
- package/dist/commons/events/scopes.d.ts +45 -0
- package/dist/commons/events/serializer.d.ts +2 -0
- package/dist/commons/events/test.utils.d.ts +284 -237
- package/dist/commons/events/transactions.d.ts +1 -1
- package/dist/commons/events/utils.d.ts +15486 -168
- package/dist/commons/events/utils.test.d.ts +2 -0
- package/dist/commons/events/workqueueDefaultColumns.d.ts +3 -0
- package/dist/conditionals/index.js +210 -115
- package/dist/events/index.js +5272 -1873
- 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
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;
|
@@ -54,6 +61,7 @@ export declare const UrbanAddressValue: z.ZodObject<z.objectUtil.extendShape<{
|
|
54
61
|
}>;
|
55
62
|
export declare const RuralAddressValue: z.ZodObject<z.objectUtil.extendShape<{
|
56
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
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
150
|
country: z.ZodString;
|
151
|
+
addressType: z.ZodLiteral<"DOMESTIC">;
|
109
152
|
province: z.ZodString;
|
110
153
|
district: z.ZodString;
|
111
154
|
}, {
|
@@ -114,18 +157,53 @@ 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
|
}>;
|
127
|
-
export
|
172
|
+
export type RuralAddressUpdateValue = z.infer<typeof RuralAddressUpdateValue>;
|
173
|
+
export declare const GenericAddressValue: z.ZodObject<{
|
174
|
+
country: z.ZodString;
|
175
|
+
addressType: z.ZodLiteral<"INTERNATIONAL">;
|
176
|
+
state: z.ZodString;
|
177
|
+
district2: z.ZodString;
|
178
|
+
cityOrTown: z.ZodOptional<z.ZodString>;
|
179
|
+
addressLine1: z.ZodOptional<z.ZodString>;
|
180
|
+
addressLine2: z.ZodOptional<z.ZodString>;
|
181
|
+
addressLine3: z.ZodOptional<z.ZodString>;
|
182
|
+
postcodeOrZip: z.ZodOptional<z.ZodString>;
|
183
|
+
}, "strip", z.ZodTypeAny, {
|
184
|
+
country: string;
|
185
|
+
state: string;
|
186
|
+
addressType: "INTERNATIONAL";
|
187
|
+
district2: string;
|
188
|
+
cityOrTown?: string | undefined;
|
189
|
+
addressLine1?: string | undefined;
|
190
|
+
addressLine2?: string | undefined;
|
191
|
+
addressLine3?: string | undefined;
|
192
|
+
postcodeOrZip?: string | undefined;
|
193
|
+
}, {
|
194
|
+
country: string;
|
195
|
+
state: string;
|
196
|
+
addressType: "INTERNATIONAL";
|
197
|
+
district2: string;
|
198
|
+
cityOrTown?: string | undefined;
|
199
|
+
addressLine1?: string | undefined;
|
200
|
+
addressLine2?: string | undefined;
|
201
|
+
addressLine3?: string | undefined;
|
202
|
+
postcodeOrZip?: string | undefined;
|
203
|
+
}>;
|
204
|
+
export declare const AddressFieldValue: z.ZodUnion<[z.ZodDiscriminatedUnion<"urbanOrRural", [z.ZodObject<z.objectUtil.extendShape<{
|
128
205
|
country: z.ZodString;
|
206
|
+
addressType: z.ZodLiteral<"DOMESTIC">;
|
129
207
|
province: z.ZodString;
|
130
208
|
district: z.ZodString;
|
131
209
|
}, {
|
@@ -138,6 +216,7 @@ export declare const AddressFieldValue: z.ZodDiscriminatedUnion<"urbanOrRural",
|
|
138
216
|
}>, "strip", z.ZodTypeAny, {
|
139
217
|
country: string;
|
140
218
|
district: string;
|
219
|
+
addressType: "DOMESTIC";
|
141
220
|
province: string;
|
142
221
|
urbanOrRural: "URBAN";
|
143
222
|
number?: string | undefined;
|
@@ -148,6 +227,7 @@ export declare const AddressFieldValue: z.ZodDiscriminatedUnion<"urbanOrRural",
|
|
148
227
|
}, {
|
149
228
|
country: string;
|
150
229
|
district: string;
|
230
|
+
addressType: "DOMESTIC";
|
151
231
|
province: string;
|
152
232
|
urbanOrRural: "URBAN";
|
153
233
|
number?: string | undefined;
|
@@ -157,6 +237,7 @@ export declare const AddressFieldValue: z.ZodDiscriminatedUnion<"urbanOrRural",
|
|
157
237
|
zipCode?: string | undefined;
|
158
238
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
159
239
|
country: z.ZodString;
|
240
|
+
addressType: z.ZodLiteral<"DOMESTIC">;
|
160
241
|
province: z.ZodString;
|
161
242
|
district: z.ZodString;
|
162
243
|
}, {
|
@@ -165,18 +246,83 @@ export declare const AddressFieldValue: z.ZodDiscriminatedUnion<"urbanOrRural",
|
|
165
246
|
}>, "strip", z.ZodTypeAny, {
|
166
247
|
country: string;
|
167
248
|
district: string;
|
249
|
+
addressType: "DOMESTIC";
|
168
250
|
province: string;
|
169
251
|
urbanOrRural: "RURAL";
|
170
252
|
village?: string | undefined;
|
171
253
|
}, {
|
172
254
|
country: string;
|
173
255
|
district: string;
|
256
|
+
addressType: "DOMESTIC";
|
174
257
|
province: string;
|
175
258
|
urbanOrRural: "RURAL";
|
176
259
|
village?: string | undefined;
|
260
|
+
}>]>, z.ZodObject<{
|
261
|
+
country: z.ZodString;
|
262
|
+
addressType: z.ZodLiteral<"INTERNATIONAL">;
|
263
|
+
state: z.ZodString;
|
264
|
+
district2: z.ZodString;
|
265
|
+
cityOrTown: z.ZodOptional<z.ZodString>;
|
266
|
+
addressLine1: z.ZodOptional<z.ZodString>;
|
267
|
+
addressLine2: z.ZodOptional<z.ZodString>;
|
268
|
+
addressLine3: z.ZodOptional<z.ZodString>;
|
269
|
+
postcodeOrZip: z.ZodOptional<z.ZodString>;
|
270
|
+
}, "strip", z.ZodTypeAny, {
|
271
|
+
country: string;
|
272
|
+
state: string;
|
273
|
+
addressType: "INTERNATIONAL";
|
274
|
+
district2: string;
|
275
|
+
cityOrTown?: string | undefined;
|
276
|
+
addressLine1?: string | undefined;
|
277
|
+
addressLine2?: string | undefined;
|
278
|
+
addressLine3?: string | undefined;
|
279
|
+
postcodeOrZip?: string | undefined;
|
280
|
+
}, {
|
281
|
+
country: string;
|
282
|
+
state: string;
|
283
|
+
addressType: "INTERNATIONAL";
|
284
|
+
district2: string;
|
285
|
+
cityOrTown?: string | undefined;
|
286
|
+
addressLine1?: string | undefined;
|
287
|
+
addressLine2?: string | undefined;
|
288
|
+
addressLine3?: string | undefined;
|
289
|
+
postcodeOrZip?: string | undefined;
|
177
290
|
}>]>;
|
178
|
-
export declare const
|
291
|
+
export declare const GenericAddressUpdateValue: z.ZodObject<{
|
292
|
+
country: z.ZodString;
|
293
|
+
addressType: z.ZodLiteral<"INTERNATIONAL">;
|
294
|
+
state: z.ZodString;
|
295
|
+
district2: z.ZodString;
|
296
|
+
cityOrTown: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
297
|
+
addressLine1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
298
|
+
addressLine2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
299
|
+
addressLine3: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
300
|
+
postcodeOrZip: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
301
|
+
}, "strip", z.ZodTypeAny, {
|
302
|
+
country: string;
|
303
|
+
state: string;
|
304
|
+
addressType: "INTERNATIONAL";
|
305
|
+
district2: string;
|
306
|
+
cityOrTown?: string | null | undefined;
|
307
|
+
addressLine1?: string | null | undefined;
|
308
|
+
addressLine2?: string | null | undefined;
|
309
|
+
addressLine3?: string | null | undefined;
|
310
|
+
postcodeOrZip?: string | null | undefined;
|
311
|
+
}, {
|
312
|
+
country: string;
|
313
|
+
state: string;
|
314
|
+
addressType: "INTERNATIONAL";
|
315
|
+
district2: string;
|
316
|
+
cityOrTown?: string | null | undefined;
|
317
|
+
addressLine1?: string | null | undefined;
|
318
|
+
addressLine2?: string | null | undefined;
|
319
|
+
addressLine3?: string | null | undefined;
|
320
|
+
postcodeOrZip?: string | null | undefined;
|
321
|
+
}>;
|
322
|
+
export type GenericAddressUpdateValue = z.infer<typeof GenericAddressUpdateValue>;
|
323
|
+
export declare const AddressFieldUpdateValue: z.ZodUnion<[z.ZodDiscriminatedUnion<"urbanOrRural", [z.ZodObject<z.objectUtil.extendShape<{
|
179
324
|
country: z.ZodString;
|
325
|
+
addressType: z.ZodLiteral<"DOMESTIC">;
|
180
326
|
province: z.ZodString;
|
181
327
|
district: z.ZodString;
|
182
328
|
}, {
|
@@ -189,6 +335,7 @@ export declare const AddressFieldUpdateValue: z.ZodDiscriminatedUnion<"urbanOrRu
|
|
189
335
|
}>, "strip", z.ZodTypeAny, {
|
190
336
|
country: string;
|
191
337
|
district: string;
|
338
|
+
addressType: "DOMESTIC";
|
192
339
|
province: string;
|
193
340
|
urbanOrRural: "URBAN";
|
194
341
|
number?: string | null | undefined;
|
@@ -199,6 +346,7 @@ export declare const AddressFieldUpdateValue: z.ZodDiscriminatedUnion<"urbanOrRu
|
|
199
346
|
}, {
|
200
347
|
country: string;
|
201
348
|
district: string;
|
349
|
+
addressType: "DOMESTIC";
|
202
350
|
province: string;
|
203
351
|
urbanOrRural: "URBAN";
|
204
352
|
number?: string | null | undefined;
|
@@ -208,6 +356,7 @@ export declare const AddressFieldUpdateValue: z.ZodDiscriminatedUnion<"urbanOrRu
|
|
208
356
|
zipCode?: string | null | undefined;
|
209
357
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
210
358
|
country: z.ZodString;
|
359
|
+
addressType: z.ZodLiteral<"DOMESTIC">;
|
211
360
|
province: z.ZodString;
|
212
361
|
district: z.ZodString;
|
213
362
|
}, {
|
@@ -216,48 +365,80 @@ export declare const AddressFieldUpdateValue: z.ZodDiscriminatedUnion<"urbanOrRu
|
|
216
365
|
}>, "strip", z.ZodTypeAny, {
|
217
366
|
country: string;
|
218
367
|
district: string;
|
368
|
+
addressType: "DOMESTIC";
|
219
369
|
province: string;
|
220
370
|
urbanOrRural: "RURAL";
|
221
371
|
village?: string | null | undefined;
|
222
372
|
}, {
|
223
373
|
country: string;
|
224
374
|
district: string;
|
375
|
+
addressType: "DOMESTIC";
|
225
376
|
province: string;
|
226
377
|
urbanOrRural: "RURAL";
|
227
378
|
village?: string | null | undefined;
|
379
|
+
}>]>, z.ZodObject<{
|
380
|
+
country: z.ZodString;
|
381
|
+
addressType: z.ZodLiteral<"INTERNATIONAL">;
|
382
|
+
state: z.ZodString;
|
383
|
+
district2: z.ZodString;
|
384
|
+
cityOrTown: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
385
|
+
addressLine1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
386
|
+
addressLine2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
387
|
+
addressLine3: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
388
|
+
postcodeOrZip: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
389
|
+
}, "strip", z.ZodTypeAny, {
|
390
|
+
country: string;
|
391
|
+
state: string;
|
392
|
+
addressType: "INTERNATIONAL";
|
393
|
+
district2: string;
|
394
|
+
cityOrTown?: string | null | undefined;
|
395
|
+
addressLine1?: string | null | undefined;
|
396
|
+
addressLine2?: string | null | undefined;
|
397
|
+
addressLine3?: string | null | undefined;
|
398
|
+
postcodeOrZip?: string | null | undefined;
|
399
|
+
}, {
|
400
|
+
country: string;
|
401
|
+
state: string;
|
402
|
+
addressType: "INTERNATIONAL";
|
403
|
+
district2: string;
|
404
|
+
cityOrTown?: string | null | undefined;
|
405
|
+
addressLine1?: string | null | undefined;
|
406
|
+
addressLine2?: string | null | undefined;
|
407
|
+
addressLine3?: string | null | undefined;
|
408
|
+
postcodeOrZip?: string | null | undefined;
|
228
409
|
}>]>;
|
229
410
|
export type AddressFieldValue = z.infer<typeof AddressFieldValue>;
|
230
411
|
export declare const FileFieldValueWithOption: z.ZodObject<{
|
231
|
-
|
412
|
+
path: z.ZodEffects<z.ZodString, string, string>;
|
232
413
|
originalFilename: z.ZodString;
|
233
414
|
type: z.ZodString;
|
234
415
|
option: z.ZodString;
|
235
416
|
}, "strip", z.ZodTypeAny, {
|
236
417
|
type: string;
|
237
418
|
option: string;
|
238
|
-
|
419
|
+
path: string;
|
239
420
|
originalFilename: string;
|
240
421
|
}, {
|
241
422
|
type: string;
|
242
423
|
option: string;
|
243
|
-
|
424
|
+
path: string;
|
244
425
|
originalFilename: string;
|
245
426
|
}>;
|
246
427
|
export type FileFieldValueWithOption = z.infer<typeof FileFieldValueWithOption>;
|
247
428
|
export declare const FileFieldWithOptionValue: z.ZodArray<z.ZodObject<{
|
248
|
-
|
429
|
+
path: z.ZodEffects<z.ZodString, string, string>;
|
249
430
|
originalFilename: z.ZodString;
|
250
431
|
type: z.ZodString;
|
251
432
|
option: z.ZodString;
|
252
433
|
}, "strip", z.ZodTypeAny, {
|
253
434
|
type: string;
|
254
435
|
option: string;
|
255
|
-
|
436
|
+
path: string;
|
256
437
|
originalFilename: string;
|
257
438
|
}, {
|
258
439
|
type: string;
|
259
440
|
option: string;
|
260
|
-
|
441
|
+
path: string;
|
261
442
|
originalFilename: string;
|
262
443
|
}>, "many">;
|
263
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
|