@opencrvs/toolkit 1.9.13-rc.72233cd → 1.9.13-rc.73a1d40
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 +0 -13
- package/dist/api/index.d.ts.map +1 -1
- package/dist/commons/api/router.d.ts +4561 -3370
- package/dist/commons/conditionals/conditionals.d.ts +3 -27
- package/dist/commons/conditionals/validate.d.ts +3 -13
- package/dist/commons/events/ActionConfig.d.ts +1555 -415
- package/dist/commons/events/ActionDocument.d.ts +1941 -888
- package/dist/commons/events/ActionInput.d.ts +1277 -277
- package/dist/commons/events/ActionType.d.ts +11 -91
- package/dist/commons/events/AdvancedSearchConfig.d.ts +1496 -294
- package/dist/commons/events/CompositeFieldValue.d.ts +190 -30
- package/dist/commons/events/Conditional.d.ts +38 -26
- package/dist/commons/events/Constants.d.ts +1 -1
- package/dist/commons/events/CountryConfigQueryInput.d.ts +4471 -1592
- package/dist/commons/events/CreatedAtLocation.d.ts +2 -0
- package/dist/commons/events/DeduplicationConfig.d.ts +171 -15
- package/dist/commons/events/Draft.d.ts +113 -72
- package/dist/commons/events/DynamicFieldValue.d.ts +78 -12
- package/dist/commons/events/EventConfig.d.ts +2420 -35
- package/dist/commons/events/EventConfigInput.d.ts +3 -0
- package/dist/commons/events/EventDocument.d.ts +1366 -354
- package/dist/commons/events/EventIndex.d.ts +1010 -212
- package/dist/commons/events/EventInput.d.ts +8 -3
- package/dist/commons/events/EventMetadata.d.ts +357 -130
- package/dist/commons/events/FieldConfig.d.ts +12890 -2890
- package/dist/commons/events/FieldType.d.ts +4 -26
- package/dist/commons/events/FieldTypeMapping.d.ts +906 -314
- package/dist/commons/events/FieldValue.d.ts +527 -149
- package/dist/commons/events/FileUtils.d.ts +2 -2
- package/dist/commons/events/FormConfig.d.ts +721 -54
- package/dist/commons/events/PageConfig.d.ts +320 -58
- package/dist/commons/events/PlainDate.d.ts +1 -1
- package/dist/commons/events/SummaryConfig.d.ts +161 -14
- package/dist/commons/events/TemplateConfig.d.ts +3 -2
- package/dist/commons/events/TranslationConfig.d.ts +2 -2
- package/dist/commons/events/WorkqueueColumnConfig.d.ts +37 -74
- package/dist/commons/events/WorkqueueConfig.d.ts +7480 -2135
- package/dist/commons/events/deduplication.d.ts +3 -3
- package/dist/commons/events/defineConfig.d.ts +247 -2
- package/dist/commons/events/index.d.ts +0 -3
- package/dist/commons/events/locations.d.ts +20 -57
- package/dist/commons/events/scopes.d.ts +34 -35
- package/dist/commons/events/state/availableActions.d.ts +2 -7
- package/dist/commons/events/state/flags.d.ts +3 -21
- package/dist/commons/events/state/index.d.ts +27 -30
- package/dist/commons/events/state/utils.d.ts +172 -190
- package/dist/commons/events/test.utils.d.ts +11 -52
- package/dist/commons/events/transactions.d.ts +1 -1
- package/dist/commons/events/utils.d.ts +273 -373
- package/dist/commons/notification/UserNotifications.d.ts +637 -61
- package/dist/conditionals/index.d.ts.map +1 -1
- package/dist/conditionals/index.js +14 -302
- package/dist/events/deduplication.d.ts +3 -3
- package/dist/events/index.js +2114 -2844
- package/dist/notification/index.d.ts.map +1 -1
- package/dist/notification/index.js +1769 -2073
- package/dist/scopes/index.d.ts +353 -640
- package/dist/scopes/index.d.ts.map +1 -1
- package/dist/scopes/index.js +300 -340
- package/package.json +3 -13
- package/tsconfig.json +2 -12
- package/tsconfig.tsbuildinfo +1 -1
- package/dist/application-config/index.d.ts +0 -2
- package/dist/application-config/index.d.ts.map +0 -1
- package/dist/application-config/index.js +0 -2128
- package/dist/cli.d.ts +0 -2
- package/dist/cli.d.ts.map +0 -1
- package/dist/cli.js +0 -3237
- package/dist/commons/application-config/index.d.ts +0 -84
- package/dist/commons/events/AuditLog.d.ts +0 -405
- package/dist/commons/events/Flag.d.ts +0 -67
- package/dist/commons/events/eventConfigValidation.d.ts +0 -8
- package/dist/migrations/v2.0/add-birth-certificate-issuance-flag.d.ts +0 -3
- package/dist/migrations/v2.0/add-birth-certificate-issuance-flag.d.ts.map +0 -1
- package/dist/migrations/v2.0/add-birth-certificate-issuance-flag.js +0 -405
- package/dist/migrations/v2.0/convert-config-files-to-ts.d.ts +0 -2
- package/dist/migrations/v2.0/convert-config-files-to-ts.d.ts.map +0 -1
- package/dist/migrations/v2.0/convert-config-files-to-ts.js +0 -829
- package/dist/migrations/v2.0/convert-paragraph-to-heading.d.ts +0 -3
- package/dist/migrations/v2.0/convert-paragraph-to-heading.d.ts.map +0 -1
- package/dist/migrations/v2.0/convert-paragraph-to-heading.js +0 -159
- package/dist/migrations/v2.0/index.d.ts +0 -7
- package/dist/migrations/v2.0/index.d.ts.map +0 -1
- package/dist/migrations/v2.0/index.js +0 -3176
- package/dist/migrations/v2.0/make-built-in-validate-actions-custom.d.ts +0 -3
- package/dist/migrations/v2.0/make-built-in-validate-actions-custom.d.ts.map +0 -1
- package/dist/migrations/v2.0/make-built-in-validate-actions-custom.js +0 -344
- package/dist/migrations/v2.0/migrate-scopes.d.ts +0 -3
- package/dist/migrations/v2.0/migrate-scopes.d.ts.map +0 -1
- package/dist/migrations/v2.0/migrate-scopes.js +0 -282
- package/dist/migrations/v2.0/migrate-validated-workqueue-status-to-flag.d.ts +0 -3
- package/dist/migrations/v2.0/migrate-validated-workqueue-status-to-flag.d.ts.map +0 -1
- package/dist/migrations/v2.0/migrate-validated-workqueue-status-to-flag.js +0 -268
- package/dist/migrations/v2.0/migrate-workqueue-configs.d.ts +0 -3
- package/dist/migrations/v2.0/migrate-workqueue-configs.d.ts.map +0 -1
- package/dist/migrations/v2.0/migrate-workqueue-configs.js +0 -237
- package/dist/migrations/v2.0/remove-delete-actions.d.ts +0 -3
- package/dist/migrations/v2.0/remove-delete-actions.d.ts.map +0 -1
- package/dist/migrations/v2.0/remove-delete-actions.js +0 -157
- package/dist/migrations/v2.0/remove-demo-scope.d.ts +0 -3
- package/dist/migrations/v2.0/remove-demo-scope.d.ts.map +0 -1
- package/dist/migrations/v2.0/remove-demo-scope.js +0 -75
- package/dist/migrations/v2.0/remove-deprecated-imports.d.ts +0 -3
- package/dist/migrations/v2.0/remove-deprecated-imports.d.ts.map +0 -1
- package/dist/migrations/v2.0/remove-deprecated-imports.js +0 -97
- package/dist/migrations/v2.0/remove-hearth-migrations.d.ts +0 -3
- package/dist/migrations/v2.0/remove-hearth-migrations.d.ts.map +0 -1
- package/dist/migrations/v2.0/remove-hearth-migrations.js +0 -78
- package/dist/migrations/v2.0/remove-pending-certification-flag.d.ts +0 -3
- package/dist/migrations/v2.0/remove-pending-certification-flag.d.ts.map +0 -1
- package/dist/migrations/v2.0/remove-pending-certification-flag.js +0 -110
- package/dist/migrations/v2.0/remove-review-from-register-action.d.ts +0 -3
- package/dist/migrations/v2.0/remove-review-from-register-action.d.ts.map +0 -1
- package/dist/migrations/v2.0/remove-review-from-register-action.js +0 -164
- package/dist/migrations/v2.0/rename-api-paths.d.ts +0 -3
- package/dist/migrations/v2.0/rename-api-paths.d.ts.map +0 -1
- package/dist/migrations/v2.0/rename-api-paths.js +0 -188
- package/dist/migrations/v2.0/rename-location-parent-id.d.ts +0 -3
- package/dist/migrations/v2.0/rename-location-parent-id.d.ts.map +0 -1
- package/dist/migrations/v2.0/rename-location-parent-id.js +0 -181
- package/opencrvs-toolkit-1.9.13-rc.72233cd.tgz +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { z } from 'zod';
|
|
2
2
|
/**
|
|
3
3
|
* Composite field value consists of multiple field values.
|
|
4
4
|
*/
|
|
@@ -11,110 +11,270 @@ export declare const AddressType: {
|
|
|
11
11
|
readonly INTERNATIONAL: "INTERNATIONAL";
|
|
12
12
|
};
|
|
13
13
|
export declare const FileFieldValue: z.ZodObject<{
|
|
14
|
-
path: z.
|
|
14
|
+
path: z.ZodEffects<z.ZodString, string, string>;
|
|
15
15
|
originalFilename: z.ZodString;
|
|
16
16
|
type: z.ZodString;
|
|
17
|
-
}, z.
|
|
17
|
+
}, "strip", z.ZodTypeAny, {
|
|
18
|
+
type: string;
|
|
19
|
+
path: string;
|
|
20
|
+
originalFilename: string;
|
|
21
|
+
}, {
|
|
22
|
+
type: string;
|
|
23
|
+
path: string;
|
|
24
|
+
originalFilename: string;
|
|
25
|
+
}>;
|
|
18
26
|
export type FileFieldValue = z.infer<typeof FileFieldValue>;
|
|
19
27
|
export declare const NameFieldValue: z.ZodObject<{
|
|
20
28
|
firstname: z.ZodString;
|
|
21
29
|
surname: z.ZodString;
|
|
22
30
|
middlename: z.ZodOptional<z.ZodString>;
|
|
23
|
-
}, z.
|
|
31
|
+
}, "strip", z.ZodTypeAny, {
|
|
32
|
+
firstname: string;
|
|
33
|
+
surname: string;
|
|
34
|
+
middlename?: string | undefined;
|
|
35
|
+
}, {
|
|
36
|
+
firstname: string;
|
|
37
|
+
surname: string;
|
|
38
|
+
middlename?: string | undefined;
|
|
39
|
+
}>;
|
|
24
40
|
export declare const NameFieldUpdateValue: z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
|
25
41
|
firstname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
26
42
|
surname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27
43
|
middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
28
|
-
},
|
|
44
|
+
}, "strip", z.ZodTypeAny, {
|
|
45
|
+
firstname?: string | null | undefined;
|
|
46
|
+
surname?: string | null | undefined;
|
|
47
|
+
middlename?: string | null | undefined;
|
|
48
|
+
}, {
|
|
49
|
+
firstname?: string | null | undefined;
|
|
50
|
+
surname?: string | null | undefined;
|
|
51
|
+
middlename?: string | null | undefined;
|
|
52
|
+
}>, z.ZodNull]>, z.ZodUndefined]>;
|
|
29
53
|
export type NameFieldValue = z.infer<typeof NameFieldValue>;
|
|
30
54
|
export type NameFieldUpdateValue = z.infer<typeof NameFieldUpdateValue>;
|
|
31
55
|
export declare const StreetLevelDetailsUpdateValue: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>>>;
|
|
32
|
-
export declare const DomesticAddressFieldValue: z.ZodObject<{
|
|
56
|
+
export declare const DomesticAddressFieldValue: z.ZodObject<z.objectUtil.extendShape<{
|
|
33
57
|
country: z.ZodString;
|
|
34
58
|
streetLevelDetails: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
59
|
+
}, {
|
|
35
60
|
addressType: z.ZodLiteral<"DOMESTIC">;
|
|
36
61
|
administrativeArea: z.ZodString;
|
|
37
|
-
}, z.
|
|
62
|
+
}>, "strip", z.ZodTypeAny, {
|
|
63
|
+
country: string;
|
|
64
|
+
addressType: "DOMESTIC";
|
|
65
|
+
administrativeArea: string;
|
|
66
|
+
streetLevelDetails?: Record<string, string> | undefined;
|
|
67
|
+
}, {
|
|
68
|
+
country: string;
|
|
69
|
+
addressType: "DOMESTIC";
|
|
70
|
+
administrativeArea: string;
|
|
71
|
+
streetLevelDetails?: Record<string, string> | undefined;
|
|
72
|
+
}>;
|
|
38
73
|
export type DomesticAddressFieldValue = z.infer<typeof DomesticAddressFieldValue>;
|
|
39
|
-
export declare const AddressFieldValue: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
74
|
+
export declare const AddressFieldValue: z.ZodDiscriminatedUnion<"addressType", [z.ZodObject<z.objectUtil.extendShape<{
|
|
40
75
|
country: z.ZodString;
|
|
41
76
|
streetLevelDetails: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
77
|
+
}, {
|
|
42
78
|
addressType: z.ZodLiteral<"DOMESTIC">;
|
|
43
79
|
administrativeArea: z.ZodString;
|
|
44
|
-
}, z.
|
|
80
|
+
}>, "strip", z.ZodTypeAny, {
|
|
81
|
+
country: string;
|
|
82
|
+
addressType: "DOMESTIC";
|
|
83
|
+
administrativeArea: string;
|
|
84
|
+
streetLevelDetails?: Record<string, string> | undefined;
|
|
85
|
+
}, {
|
|
86
|
+
country: string;
|
|
87
|
+
addressType: "DOMESTIC";
|
|
88
|
+
administrativeArea: string;
|
|
89
|
+
streetLevelDetails?: Record<string, string> | undefined;
|
|
90
|
+
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
45
91
|
country: z.ZodString;
|
|
46
92
|
streetLevelDetails: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
93
|
+
}, {
|
|
47
94
|
addressType: z.ZodLiteral<"INTERNATIONAL">;
|
|
48
|
-
}, z.
|
|
95
|
+
}>, "strip", z.ZodTypeAny, {
|
|
96
|
+
country: string;
|
|
97
|
+
addressType: "INTERNATIONAL";
|
|
98
|
+
streetLevelDetails?: Record<string, string> | undefined;
|
|
99
|
+
}, {
|
|
100
|
+
country: string;
|
|
101
|
+
addressType: "INTERNATIONAL";
|
|
102
|
+
streetLevelDetails?: Record<string, string> | undefined;
|
|
103
|
+
}>]>;
|
|
49
104
|
export type AddressFieldValue = z.infer<typeof AddressFieldValue>;
|
|
50
|
-
export declare const AddressFieldUpdateValue: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
105
|
+
export declare const AddressFieldUpdateValue: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"addressType", [z.ZodObject<z.objectUtil.extendShape<{
|
|
51
106
|
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
52
107
|
streetLevelDetails: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>>>;
|
|
108
|
+
}, {
|
|
53
109
|
addressType: z.ZodLiteral<"DOMESTIC">;
|
|
54
110
|
administrativeArea: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
55
|
-
}, z.
|
|
111
|
+
}>, "strip", z.ZodTypeAny, {
|
|
112
|
+
addressType: "DOMESTIC";
|
|
113
|
+
country?: string | null | undefined;
|
|
114
|
+
streetLevelDetails?: Record<string, string | null> | null | undefined;
|
|
115
|
+
administrativeArea?: string | null | undefined;
|
|
116
|
+
}, {
|
|
117
|
+
addressType: "DOMESTIC";
|
|
118
|
+
country?: string | null | undefined;
|
|
119
|
+
streetLevelDetails?: Record<string, string | null> | null | undefined;
|
|
120
|
+
administrativeArea?: string | null | undefined;
|
|
121
|
+
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
56
122
|
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
57
123
|
streetLevelDetails: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>>>;
|
|
124
|
+
}, {
|
|
58
125
|
addressType: z.ZodLiteral<"INTERNATIONAL">;
|
|
59
|
-
}, z.
|
|
126
|
+
}>, "strip", z.ZodTypeAny, {
|
|
127
|
+
addressType: "INTERNATIONAL";
|
|
128
|
+
country?: string | null | undefined;
|
|
129
|
+
streetLevelDetails?: Record<string, string | null> | null | undefined;
|
|
130
|
+
}, {
|
|
131
|
+
addressType: "INTERNATIONAL";
|
|
132
|
+
country?: string | null | undefined;
|
|
133
|
+
streetLevelDetails?: Record<string, string | null> | null | undefined;
|
|
134
|
+
}>]>>>;
|
|
60
135
|
export type AddressFieldUpdateValue = z.infer<typeof AddressFieldUpdateValue>;
|
|
61
136
|
export declare const FileFieldValueWithOption: z.ZodObject<{
|
|
62
|
-
path: z.
|
|
137
|
+
path: z.ZodEffects<z.ZodString, string, string>;
|
|
63
138
|
originalFilename: z.ZodString;
|
|
64
139
|
type: z.ZodString;
|
|
65
140
|
option: z.ZodString;
|
|
66
|
-
}, z.
|
|
141
|
+
}, "strip", z.ZodTypeAny, {
|
|
142
|
+
type: string;
|
|
143
|
+
option: string;
|
|
144
|
+
path: string;
|
|
145
|
+
originalFilename: string;
|
|
146
|
+
}, {
|
|
147
|
+
type: string;
|
|
148
|
+
option: string;
|
|
149
|
+
path: string;
|
|
150
|
+
originalFilename: string;
|
|
151
|
+
}>;
|
|
67
152
|
export type FileFieldValueWithOption = z.infer<typeof FileFieldValueWithOption>;
|
|
68
153
|
export declare const FileFieldWithOptionValue: z.ZodArray<z.ZodObject<{
|
|
69
|
-
path: z.
|
|
154
|
+
path: z.ZodEffects<z.ZodString, string, string>;
|
|
70
155
|
originalFilename: z.ZodString;
|
|
71
156
|
type: z.ZodString;
|
|
72
157
|
option: z.ZodString;
|
|
73
|
-
}, z.
|
|
158
|
+
}, "strip", z.ZodTypeAny, {
|
|
159
|
+
type: string;
|
|
160
|
+
option: string;
|
|
161
|
+
path: string;
|
|
162
|
+
originalFilename: string;
|
|
163
|
+
}, {
|
|
164
|
+
type: string;
|
|
165
|
+
option: string;
|
|
166
|
+
path: string;
|
|
167
|
+
originalFilename: string;
|
|
168
|
+
}>, "many">;
|
|
74
169
|
export type FileFieldWithOptionValue = z.infer<typeof FileFieldWithOptionValue>;
|
|
75
170
|
export declare const HttpFieldValue: z.ZodObject<{
|
|
76
171
|
loading: z.ZodBoolean;
|
|
77
172
|
error: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
78
173
|
statusCode: z.ZodNumber;
|
|
79
174
|
message: z.ZodString;
|
|
80
|
-
}, z.
|
|
175
|
+
}, "strip", z.ZodTypeAny, {
|
|
176
|
+
message: string;
|
|
177
|
+
statusCode: number;
|
|
178
|
+
}, {
|
|
179
|
+
message: string;
|
|
180
|
+
statusCode: number;
|
|
181
|
+
}>>>;
|
|
81
182
|
data: z.ZodAny;
|
|
82
|
-
}, z.
|
|
183
|
+
}, "strip", z.ZodTypeAny, {
|
|
184
|
+
loading: boolean;
|
|
185
|
+
data?: any;
|
|
186
|
+
error?: {
|
|
187
|
+
message: string;
|
|
188
|
+
statusCode: number;
|
|
189
|
+
} | null | undefined;
|
|
190
|
+
}, {
|
|
191
|
+
loading: boolean;
|
|
192
|
+
data?: any;
|
|
193
|
+
error?: {
|
|
194
|
+
message: string;
|
|
195
|
+
statusCode: number;
|
|
196
|
+
} | null | undefined;
|
|
197
|
+
}>;
|
|
83
198
|
export type HttpFieldValue = z.infer<typeof HttpFieldValue>;
|
|
84
199
|
export declare const HttpFieldUpdateValue: z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
|
85
200
|
loading: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
86
201
|
error: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
87
202
|
statusCode: z.ZodNumber;
|
|
88
203
|
message: z.ZodString;
|
|
89
|
-
}, z.
|
|
204
|
+
}, "strip", z.ZodTypeAny, {
|
|
205
|
+
message: string;
|
|
206
|
+
statusCode: number;
|
|
207
|
+
}, {
|
|
208
|
+
message: string;
|
|
209
|
+
statusCode: number;
|
|
210
|
+
}>>>;
|
|
90
211
|
data: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
91
|
-
},
|
|
212
|
+
}, "strip", z.ZodTypeAny, {
|
|
213
|
+
data?: any;
|
|
214
|
+
error?: {
|
|
215
|
+
message: string;
|
|
216
|
+
statusCode: number;
|
|
217
|
+
} | null | undefined;
|
|
218
|
+
loading?: boolean | null | undefined;
|
|
219
|
+
}, {
|
|
220
|
+
data?: any;
|
|
221
|
+
error?: {
|
|
222
|
+
message: string;
|
|
223
|
+
statusCode: number;
|
|
224
|
+
} | null | undefined;
|
|
225
|
+
loading?: boolean | null | undefined;
|
|
226
|
+
}>, z.ZodNull]>, z.ZodUndefined]>;
|
|
92
227
|
export declare const QueryParamReaderFieldValue: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
93
228
|
data: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
94
|
-
|
|
95
|
-
|
|
229
|
+
}, "strip", z.ZodTypeAny, {
|
|
230
|
+
data: Record<string, string>;
|
|
231
|
+
}, {
|
|
232
|
+
data: Record<string, string>;
|
|
233
|
+
}>>>;
|
|
96
234
|
export type QueryParamReaderFieldValue = z.infer<typeof QueryParamReaderFieldValue>;
|
|
97
235
|
export declare const QueryParamReaderFieldUpdateValue: z.ZodObject<{
|
|
98
236
|
data: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
99
|
-
}, z.
|
|
237
|
+
}, "strip", z.ZodTypeAny, {
|
|
238
|
+
data: Record<string, string>;
|
|
239
|
+
}, {
|
|
240
|
+
data: Record<string, string>;
|
|
241
|
+
}>;
|
|
100
242
|
export declare const QrReaderFieldValue: z.ZodObject<{
|
|
101
243
|
data: z.ZodAny;
|
|
102
|
-
}, z.
|
|
244
|
+
}, "strip", z.ZodTypeAny, {
|
|
245
|
+
data?: any;
|
|
246
|
+
}, {
|
|
247
|
+
data?: any;
|
|
248
|
+
}>;
|
|
103
249
|
export type QrReaderFieldValue = z.infer<typeof QrReaderFieldValue>;
|
|
104
250
|
export declare const IdReaderFieldValue: z.ZodObject<{
|
|
105
251
|
data: z.ZodAny;
|
|
106
|
-
}, z.
|
|
252
|
+
}, "strip", z.ZodTypeAny, {
|
|
253
|
+
data?: any;
|
|
254
|
+
}, {
|
|
255
|
+
data?: any;
|
|
256
|
+
}>;
|
|
107
257
|
export type IdReaderFieldValue = z.infer<typeof IdReaderFieldValue>;
|
|
108
258
|
export declare const NumberWithUnitFieldValue: z.ZodObject<{
|
|
109
259
|
numericValue: z.ZodNumber;
|
|
110
260
|
unit: z.ZodString;
|
|
111
|
-
}, z.
|
|
261
|
+
}, "strip", z.ZodTypeAny, {
|
|
262
|
+
numericValue: number;
|
|
263
|
+
unit: string;
|
|
264
|
+
}, {
|
|
265
|
+
numericValue: number;
|
|
266
|
+
unit: string;
|
|
267
|
+
}>;
|
|
112
268
|
export declare const NumberWithUnitFieldUpdateValue: z.ZodObject<{
|
|
113
269
|
numericValue: z.ZodOptional<z.ZodNumber>;
|
|
114
270
|
unit: z.ZodOptional<z.ZodString>;
|
|
115
|
-
}, z.
|
|
271
|
+
}, "strip", z.ZodTypeAny, {
|
|
272
|
+
numericValue?: number | undefined;
|
|
273
|
+
unit?: string | undefined;
|
|
274
|
+
}, {
|
|
275
|
+
numericValue?: number | undefined;
|
|
276
|
+
unit?: string | undefined;
|
|
277
|
+
}>;
|
|
116
278
|
export type NumberWithUnitFieldValue = z.infer<typeof NumberWithUnitFieldValue>;
|
|
117
279
|
export type NumberWithUnitFieldUpdateValue = z.infer<typeof NumberWithUnitFieldUpdateValue>;
|
|
118
|
-
export declare const CustomFieldValue: z.core.$ZodBranded<z.ZodUnknown, "CustomFieldValue", "out">;
|
|
119
|
-
export type CustomFieldValue = z.infer<typeof CustomFieldValue>;
|
|
120
280
|
//# sourceMappingURL=CompositeFieldValue.d.ts.map
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import { JSONSchema } from '../conditionals/conditionals';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
export declare const Conditional: z.ZodType<JSONSchema, z.ZodTypeDef, JSONSchema>;
|
|
3
4
|
/**
|
|
4
5
|
* By default, when conditionals are undefined, action is visible and enabled to everyone.
|
|
5
6
|
*/
|
|
@@ -11,33 +12,44 @@ export declare const ConditionalType: {
|
|
|
11
12
|
export type ConditionalType = (typeof ConditionalType)[keyof typeof ConditionalType];
|
|
12
13
|
export declare const ShowConditional: z.ZodObject<{
|
|
13
14
|
type: z.ZodLiteral<"SHOW">;
|
|
14
|
-
conditional: z.
|
|
15
|
-
}, z.
|
|
15
|
+
conditional: z.ZodType<JSONSchema, z.ZodTypeDef, JSONSchema>;
|
|
16
|
+
}, "strip", z.ZodTypeAny, {
|
|
17
|
+
type: "SHOW";
|
|
18
|
+
conditional: JSONSchema;
|
|
19
|
+
}, {
|
|
20
|
+
type: "SHOW";
|
|
21
|
+
conditional: JSONSchema;
|
|
22
|
+
}>;
|
|
16
23
|
export declare const EnableConditional: z.ZodObject<{
|
|
17
24
|
type: z.ZodLiteral<"ENABLE">;
|
|
18
|
-
conditional: z.
|
|
19
|
-
}, z.
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
export type
|
|
25
|
+
conditional: z.ZodType<JSONSchema, z.ZodTypeDef, JSONSchema>;
|
|
26
|
+
}, "strip", z.ZodTypeAny, {
|
|
27
|
+
type: "ENABLE";
|
|
28
|
+
conditional: JSONSchema;
|
|
29
|
+
}, {
|
|
30
|
+
type: "ENABLE";
|
|
31
|
+
conditional: JSONSchema;
|
|
32
|
+
}>;
|
|
33
|
+
/** @knipignore */
|
|
34
|
+
export type ActionConditionalType = typeof ShowConditional | typeof EnableConditional;
|
|
35
|
+
/** @knipignore */
|
|
36
|
+
export type InferredActionConditional = z.infer<typeof ShowConditional> | z.infer<typeof EnableConditional>;
|
|
37
|
+
export declare const ActionConditional: z.ZodDiscriminatedUnion<"type", ActionConditionalType[]>;
|
|
38
|
+
export type ActionConditional = InferredActionConditional;
|
|
28
39
|
export declare const DisplayOnReviewConditional: z.ZodObject<{
|
|
29
40
|
type: z.ZodLiteral<"DISPLAY_ON_REVIEW">;
|
|
30
|
-
conditional: z.
|
|
31
|
-
}, z.
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
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[]>;
|
|
42
54
|
export type FieldConditional = z.infer<typeof FieldConditional>;
|
|
43
55
|
//# sourceMappingURL=Conditional.d.ts.map
|