zitejs 0.9.40 → 0.9.41

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.
@@ -9,96 +9,83 @@ export declare const durationFormatEnum: readonly ["h:mm", "h:mm:ss", "h:mm:ss.s
9
9
  export type DurationFormat = (typeof durationFormatEnum)[number];
10
10
  export declare const fieldTypeEnum: readonly ["currency", "single_line_text", "long_text", "rich_text", "number", "single_select", "multiple_select", "date", "datetime", "checkbox", "attachments", "email", "url", "phone_number", "rating", "duration", "percent", "linked_record", "lookup", "source", "formula", "autonumber", "created_at", "updated_at"];
11
11
  export type FieldType = (typeof fieldTypeEnum)[number];
12
- export declare const fieldTypeSchema: z.ZodEnum<["currency", "single_line_text", "long_text", "rich_text", "number", "single_select", "multiple_select", "date", "datetime", "checkbox", "attachments", "email", "url", "phone_number", "rating", "duration", "percent", "linked_record", "lookup", "source", "formula", "autonumber", "created_at", "updated_at"]>;
12
+ export declare const fieldTypeSchema: z.ZodEnum<{
13
+ number: "number";
14
+ single_line_text: "single_line_text";
15
+ long_text: "long_text";
16
+ email: "email";
17
+ url: "url";
18
+ phone_number: "phone_number";
19
+ currency: "currency";
20
+ percent: "percent";
21
+ rating: "rating";
22
+ duration: "duration";
23
+ single_select: "single_select";
24
+ multiple_select: "multiple_select";
25
+ checkbox: "checkbox";
26
+ date: "date";
27
+ datetime: "datetime";
28
+ attachments: "attachments";
29
+ linked_record: "linked_record";
30
+ lookup: "lookup";
31
+ autonumber: "autonumber";
32
+ source: "source";
33
+ created_at: "created_at";
34
+ updated_at: "updated_at";
35
+ rich_text: "rich_text";
36
+ formula: "formula";
37
+ }>;
13
38
  export declare const selectOptionSchema: z.ZodObject<{
14
39
  value: z.ZodString;
15
40
  label: z.ZodString;
16
41
  color: z.ZodOptional<z.ZodString>;
17
- }, "strip", z.ZodTypeAny, {
18
- value: string;
19
- label: string;
20
- color?: string | undefined;
21
- }, {
22
- value: string;
23
- label: string;
24
- color?: string | undefined;
25
- }>;
42
+ }, z.core.$strip>;
26
43
  export type SelectOption = z.infer<typeof selectOptionSchema>;
27
44
  export declare const aiGenerationConfigSchema: z.ZodObject<{
28
45
  enabled: z.ZodBoolean;
29
46
  prompt: z.ZodOptional<z.ZodString>;
30
- }, "strip", z.ZodTypeAny, {
31
- enabled: boolean;
32
- prompt?: string | undefined;
33
- }, {
34
- enabled: boolean;
35
- prompt?: string | undefined;
36
- }>;
47
+ }, z.core.$strip>;
37
48
  export type AIGenerationConfig = z.infer<typeof aiGenerationConfigSchema>;
38
49
  export declare const currencyTemplateSchema: z.ZodObject<{
39
50
  currencySymbol: z.ZodString;
40
51
  decimalPlaces: z.ZodNumber;
41
- numberFormat: z.ZodEnum<["local", "comma_period", "period_comma", "space_comma", "space_period", "no_separator"]>;
52
+ numberFormat: z.ZodEnum<{
53
+ local: "local";
54
+ comma_period: "comma_period";
55
+ period_comma: "period_comma";
56
+ space_comma: "space_comma";
57
+ space_period: "space_period";
58
+ no_separator: "no_separator";
59
+ }>;
42
60
  defaultValue: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
43
- }, "strip", z.ZodTypeAny, {
44
- currencySymbol: string;
45
- decimalPlaces: number;
46
- numberFormat: "local" | "comma_period" | "period_comma" | "space_comma" | "space_period" | "no_separator";
47
- defaultValue?: number | null | undefined;
48
- }, {
49
- currencySymbol: string;
50
- decimalPlaces: number;
51
- numberFormat: "local" | "comma_period" | "period_comma" | "space_comma" | "space_period" | "no_separator";
52
- defaultValue?: number | null | undefined;
53
- }>;
61
+ }, z.core.$strip>;
54
62
  export declare const singleLineTextTemplateSchema: z.ZodObject<{
55
63
  defaultValue: z.ZodOptional<z.ZodString>;
56
- }, "strip", z.ZodTypeAny, {
57
- defaultValue?: string | undefined;
58
- }, {
59
- defaultValue?: string | undefined;
60
- }>;
64
+ }, z.core.$strip>;
61
65
  export declare const longTextTemplateSchema: z.ZodObject<{
62
66
  defaultValue: z.ZodOptional<z.ZodString>;
63
- }, "strip", z.ZodTypeAny, {
64
- defaultValue?: string | undefined;
65
- }, {
66
- defaultValue?: string | undefined;
67
- }>;
67
+ }, z.core.$strip>;
68
68
  export declare const richTextTemplateSchema: z.ZodObject<{
69
69
  defaultValue: z.ZodOptional<z.ZodString>;
70
- }, "strip", z.ZodTypeAny, {
71
- defaultValue?: string | undefined;
72
- }, {
73
- defaultValue?: string | undefined;
74
- }>;
70
+ }, z.core.$strip>;
75
71
  export declare const numberTemplateSchema: z.ZodObject<{
76
72
  decimalPlaces: z.ZodNumber;
77
- numberFormat: z.ZodEnum<["local", "comma_period", "period_comma", "space_comma", "space_period", "no_separator"]>;
73
+ numberFormat: z.ZodEnum<{
74
+ local: "local";
75
+ comma_period: "comma_period";
76
+ period_comma: "period_comma";
77
+ space_comma: "space_comma";
78
+ space_period: "space_period";
79
+ no_separator: "no_separator";
80
+ }>;
78
81
  defaultValue: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
79
- }, "strip", z.ZodTypeAny, {
80
- decimalPlaces: number;
81
- numberFormat: "local" | "comma_period" | "period_comma" | "space_comma" | "space_period" | "no_separator";
82
- defaultValue?: number | null | undefined;
83
- }, {
84
- decimalPlaces: number;
85
- numberFormat: "local" | "comma_period" | "period_comma" | "space_comma" | "space_period" | "no_separator";
86
- defaultValue?: number | null | undefined;
87
- }>;
82
+ }, z.core.$strip>;
88
83
  export declare const singleSelectTemplateSchema: z.ZodObject<{
89
- options: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
84
+ options: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
90
85
  value: z.ZodString;
91
86
  label: z.ZodString;
92
87
  color: z.ZodOptional<z.ZodString>;
93
- }, "strip", z.ZodTypeAny, {
94
- value: string;
95
- label: string;
96
- color?: string | undefined;
97
- }, {
98
- value: string;
99
- label: string;
100
- color?: string | undefined;
101
- }>, "many">>>, {
88
+ }, z.core.$strip>>>>, z.ZodTransform<{
102
89
  value: string;
103
90
  label: string;
104
91
  color?: string | undefined;
@@ -106,40 +93,16 @@ export declare const singleSelectTemplateSchema: z.ZodObject<{
106
93
  value: string;
107
94
  label: string;
108
95
  color?: string | undefined;
109
- }[] | null | undefined>;
110
- disableColors: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodBoolean>>, boolean, boolean | null | undefined>;
96
+ }[] | null | undefined>>;
97
+ disableColors: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodBoolean>>, z.ZodTransform<boolean, boolean | null | undefined>>;
111
98
  defaultValue: z.ZodOptional<z.ZodString>;
112
- }, "strip", z.ZodTypeAny, {
113
- options: {
114
- value: string;
115
- label: string;
116
- color?: string | undefined;
117
- }[];
118
- disableColors: boolean;
119
- defaultValue?: string | undefined;
120
- }, {
121
- options?: {
122
- value: string;
123
- label: string;
124
- color?: string | undefined;
125
- }[] | null | undefined;
126
- defaultValue?: string | undefined;
127
- disableColors?: boolean | null | undefined;
128
- }>;
99
+ }, z.core.$strip>;
129
100
  export declare const multipleSelectTemplateSchema: z.ZodObject<{
130
- options: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
101
+ options: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
131
102
  value: z.ZodString;
132
103
  label: z.ZodString;
133
104
  color: z.ZodOptional<z.ZodString>;
134
- }, "strip", z.ZodTypeAny, {
135
- value: string;
136
- label: string;
137
- color?: string | undefined;
138
- }, {
139
- value: string;
140
- label: string;
141
- color?: string | undefined;
142
- }>, "many">>>, {
105
+ }, z.core.$strip>>>>, z.ZodTransform<{
143
106
  value: string;
144
107
  label: string;
145
108
  color?: string | undefined;
@@ -147,355 +110,202 @@ export declare const multipleSelectTemplateSchema: z.ZodObject<{
147
110
  value: string;
148
111
  label: string;
149
112
  color?: string | undefined;
150
- }[] | null | undefined>;
151
- disableColors: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodBoolean>>, boolean, boolean | null | undefined>;
152
- defaultValue: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
153
- }, "strip", z.ZodTypeAny, {
154
- options: {
155
- value: string;
156
- label: string;
157
- color?: string | undefined;
158
- }[];
159
- disableColors: boolean;
160
- defaultValue?: string[] | undefined;
161
- }, {
162
- options?: {
163
- value: string;
164
- label: string;
165
- color?: string | undefined;
166
- }[] | null | undefined;
167
- defaultValue?: string[] | undefined;
168
- disableColors?: boolean | null | undefined;
169
- }>;
113
+ }[] | null | undefined>>;
114
+ disableColors: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodBoolean>>, z.ZodTransform<boolean, boolean | null | undefined>>;
115
+ defaultValue: z.ZodOptional<z.ZodArray<z.ZodString>>;
116
+ }, z.core.$strip>;
170
117
  export declare const dateTemplateSchema: z.ZodObject<{
171
- dateFormat: z.ZodEnum<["local", "long", "us", "european", "iso"]>;
172
- }, "strip", z.ZodTypeAny, {
173
- dateFormat: "local" | "long" | "us" | "european" | "iso";
174
- }, {
175
- dateFormat: "local" | "long" | "us" | "european" | "iso";
176
- }>;
118
+ dateFormat: z.ZodEnum<{
119
+ local: "local";
120
+ long: "long";
121
+ us: "us";
122
+ european: "european";
123
+ iso: "iso";
124
+ }>;
125
+ }, z.core.$strip>;
177
126
  export declare const datetimeTemplateSchema: z.ZodObject<{
178
- displayTimeZone: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodBoolean>>, boolean, boolean | null | undefined>;
179
- dateFormat: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodEnum<["local", "long", "us", "european", "iso"]>>>, "local" | "long" | "us" | "european" | "iso", "local" | "long" | "us" | "european" | "iso" | null | undefined>;
180
- timeFormat: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodEnum<["12h", "24h"]>>>, "12h" | "24h", "12h" | "24h" | null | undefined>;
181
- timezone: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string, string | null | undefined>;
182
- }, "strip", z.ZodTypeAny, {
183
- dateFormat: "local" | "long" | "us" | "european" | "iso";
184
- displayTimeZone: boolean;
185
- timeFormat: "12h" | "24h";
186
- timezone: string;
187
- }, {
188
- dateFormat?: "local" | "long" | "us" | "european" | "iso" | null | undefined;
189
- displayTimeZone?: boolean | null | undefined;
190
- timeFormat?: "12h" | "24h" | null | undefined;
191
- timezone?: string | null | undefined;
192
- }>;
127
+ displayTimeZone: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodBoolean>>, z.ZodTransform<boolean, boolean | null | undefined>>;
128
+ dateFormat: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodEnum<{
129
+ local: "local";
130
+ long: "long";
131
+ us: "us";
132
+ european: "european";
133
+ iso: "iso";
134
+ }>>>, z.ZodTransform<"local" | "long" | "us" | "european" | "iso", "local" | "long" | "us" | "european" | "iso" | null | undefined>>;
135
+ timeFormat: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodEnum<{
136
+ "12h": "12h";
137
+ "24h": "24h";
138
+ }>>>, z.ZodTransform<"12h" | "24h", "12h" | "24h" | null | undefined>>;
139
+ timezone: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string, string | null | undefined>>;
140
+ }, z.core.$strip>;
193
141
  export declare const checkboxTemplateSchema: z.ZodObject<{
194
142
  defaultValue: z.ZodOptional<z.ZodBoolean>;
195
- }, "strip", z.ZodTypeAny, {
196
- defaultValue?: boolean | undefined;
197
- }, {
198
- defaultValue?: boolean | undefined;
199
- }>;
200
- export declare const attachmentsTemplateSchema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
201
- export declare const emailTemplateSchema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
202
- export declare const urlTemplateSchema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
203
- export declare const phoneNumberTemplateSchema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
143
+ }, z.core.$strip>;
144
+ export declare const attachmentsTemplateSchema: z.ZodObject<{}, z.core.$strip>;
145
+ export declare const emailTemplateSchema: z.ZodObject<{}, z.core.$strip>;
146
+ export declare const urlTemplateSchema: z.ZodObject<{}, z.core.$strip>;
147
+ export declare const phoneNumberTemplateSchema: z.ZodObject<{}, z.core.$strip>;
204
148
  export declare const ratingTemplateSchema: z.ZodObject<{
205
149
  maxRating: z.ZodNumber;
206
150
  defaultValue: z.ZodOptional<z.ZodNumber>;
207
- }, "strip", z.ZodTypeAny, {
208
- maxRating: number;
209
- defaultValue?: number | undefined;
210
- }, {
211
- maxRating: number;
212
- defaultValue?: number | undefined;
213
- }>;
151
+ }, z.core.$strip>;
214
152
  export declare const durationTemplateSchema: z.ZodObject<{
215
- format: z.ZodEnum<["h:mm", "h:mm:ss", "h:mm:ss.s", "h:mm:ss.ss", "h:mm:ss.sss"]>;
153
+ format: z.ZodEnum<{
154
+ "h:mm": "h:mm";
155
+ "h:mm:ss": "h:mm:ss";
156
+ "h:mm:ss.s": "h:mm:ss.s";
157
+ "h:mm:ss.ss": "h:mm:ss.ss";
158
+ "h:mm:ss.sss": "h:mm:ss.sss";
159
+ }>;
216
160
  defaultValue: z.ZodOptional<z.ZodNumber>;
217
- }, "strip", z.ZodTypeAny, {
218
- format: "h:mm" | "h:mm:ss" | "h:mm:ss.s" | "h:mm:ss.ss" | "h:mm:ss.sss";
219
- defaultValue?: number | undefined;
220
- }, {
221
- format: "h:mm" | "h:mm:ss" | "h:mm:ss.s" | "h:mm:ss.ss" | "h:mm:ss.sss";
222
- defaultValue?: number | undefined;
223
- }>;
161
+ }, z.core.$strip>;
224
162
  export declare const percentTemplateSchema: z.ZodObject<{
225
163
  decimalPlaces: z.ZodNumber;
226
- numberFormat: z.ZodEnum<["local", "comma_period", "period_comma", "space_comma", "space_period", "no_separator"]>;
164
+ numberFormat: z.ZodEnum<{
165
+ local: "local";
166
+ comma_period: "comma_period";
167
+ period_comma: "period_comma";
168
+ space_comma: "space_comma";
169
+ space_period: "space_period";
170
+ no_separator: "no_separator";
171
+ }>;
227
172
  showProgressBar: z.ZodBoolean;
228
173
  allowNegative: z.ZodBoolean;
229
174
  defaultValue: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
230
- }, "strip", z.ZodTypeAny, {
231
- decimalPlaces: number;
232
- numberFormat: "local" | "comma_period" | "period_comma" | "space_comma" | "space_period" | "no_separator";
233
- showProgressBar: boolean;
234
- allowNegative: boolean;
235
- defaultValue?: number | null | undefined;
236
- }, {
237
- decimalPlaces: number;
238
- numberFormat: "local" | "comma_period" | "period_comma" | "space_comma" | "space_period" | "no_separator";
239
- showProgressBar: boolean;
240
- allowNegative: boolean;
241
- defaultValue?: number | null | undefined;
242
- }>;
175
+ }, z.core.$strip>;
243
176
  export declare const linkedRecordTemplateSchema: z.ZodObject<{
244
177
  tableId: z.ZodString;
245
178
  allowMultiple: z.ZodOptional<z.ZodBoolean>;
246
- }, "strip", z.ZodTypeAny, {
247
- tableId: string;
248
- allowMultiple?: boolean | undefined;
249
- }, {
250
- tableId: string;
251
- allowMultiple?: boolean | undefined;
252
- }>;
179
+ }, z.core.$strip>;
253
180
  export declare const lookupTemplateSchema: z.ZodObject<{
254
181
  linkedRecordFieldId: z.ZodString;
255
182
  lookupFieldId: z.ZodString;
256
183
  formulaExpression: z.ZodOptional<z.ZodString>;
257
- resultType: z.ZodOptional<z.ZodEnum<["text", "number", "date", "boolean", "array"]>>;
258
- }, "strip", z.ZodTypeAny, {
259
- linkedRecordFieldId: string;
260
- lookupFieldId: string;
261
- formulaExpression?: string | undefined;
262
- resultType?: "number" | "boolean" | "date" | "text" | "array" | undefined;
263
- }, {
264
- linkedRecordFieldId: string;
265
- lookupFieldId: string;
266
- formulaExpression?: string | undefined;
267
- resultType?: "number" | "boolean" | "date" | "text" | "array" | undefined;
268
- }>;
269
- export declare const sourceTemplateSchema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
184
+ resultType: z.ZodOptional<z.ZodEnum<{
185
+ number: "number";
186
+ boolean: "boolean";
187
+ date: "date";
188
+ text: "text";
189
+ array: "array";
190
+ }>>;
191
+ }, z.core.$strip>;
192
+ export declare const sourceTemplateSchema: z.ZodObject<{}, z.core.$strip>;
270
193
  export declare const formulaTemplateSchema: z.ZodObject<{
271
194
  expression: z.ZodString;
272
- resultType: z.ZodOptional<z.ZodEnum<["text", "number", "date", "boolean", "array"]>>;
195
+ resultType: z.ZodOptional<z.ZodEnum<{
196
+ number: "number";
197
+ boolean: "boolean";
198
+ date: "date";
199
+ text: "text";
200
+ array: "array";
201
+ }>>;
273
202
  formatting: z.ZodOptional<z.ZodObject<{
274
- numberDisplayType: z.ZodOptional<z.ZodEnum<["number", "currency", "percent", "duration"]>>;
203
+ numberDisplayType: z.ZodOptional<z.ZodEnum<{
204
+ number: "number";
205
+ currency: "currency";
206
+ percent: "percent";
207
+ duration: "duration";
208
+ }>>;
275
209
  currencyCode: z.ZodOptional<z.ZodString>;
276
210
  decimalPlaces: z.ZodOptional<z.ZodNumber>;
277
- numberFormat: z.ZodOptional<z.ZodEnum<["local", "comma_period", "period_comma", "space_comma", "space_period"]>>;
278
- }, "strip", z.ZodTypeAny, {
279
- decimalPlaces?: number | undefined;
280
- numberFormat?: "local" | "comma_period" | "period_comma" | "space_comma" | "space_period" | undefined;
281
- numberDisplayType?: "number" | "currency" | "percent" | "duration" | undefined;
282
- currencyCode?: string | undefined;
283
- }, {
284
- decimalPlaces?: number | undefined;
285
- numberFormat?: "local" | "comma_period" | "period_comma" | "space_comma" | "space_period" | undefined;
286
- numberDisplayType?: "number" | "currency" | "percent" | "duration" | undefined;
287
- currencyCode?: string | undefined;
288
- }>>;
289
- }, "strip", z.ZodTypeAny, {
290
- expression: string;
291
- resultType?: "number" | "boolean" | "date" | "text" | "array" | undefined;
292
- formatting?: {
293
- decimalPlaces?: number | undefined;
294
- numberFormat?: "local" | "comma_period" | "period_comma" | "space_comma" | "space_period" | undefined;
295
- numberDisplayType?: "number" | "currency" | "percent" | "duration" | undefined;
296
- currencyCode?: string | undefined;
297
- } | undefined;
298
- }, {
299
- expression: string;
300
- resultType?: "number" | "boolean" | "date" | "text" | "array" | undefined;
301
- formatting?: {
302
- decimalPlaces?: number | undefined;
303
- numberFormat?: "local" | "comma_period" | "period_comma" | "space_comma" | "space_period" | undefined;
304
- numberDisplayType?: "number" | "currency" | "percent" | "duration" | undefined;
305
- currencyCode?: string | undefined;
306
- } | undefined;
307
- }>;
308
- export declare const autonumberTemplateSchema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
211
+ numberFormat: z.ZodOptional<z.ZodEnum<{
212
+ local: "local";
213
+ comma_period: "comma_period";
214
+ period_comma: "period_comma";
215
+ space_comma: "space_comma";
216
+ space_period: "space_period";
217
+ }>>;
218
+ }, z.core.$strip>>;
219
+ }, z.core.$strip>;
220
+ export declare const autonumberTemplateSchema: z.ZodObject<{}, z.core.$strip>;
309
221
  export declare const createdAtTemplateSchema: z.ZodObject<{
310
- displayTimeZone: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodBoolean>>, boolean, boolean | null | undefined>;
311
- dateFormat: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodEnum<["local", "long", "us", "european", "iso"]>>>, "local" | "long" | "us" | "european" | "iso", "local" | "long" | "us" | "european" | "iso" | null | undefined>;
312
- timeFormat: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodEnum<["12h", "24h"]>>>, "12h" | "24h", "12h" | "24h" | null | undefined>;
313
- timezone: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string, string | null | undefined>;
314
- }, "strip", z.ZodTypeAny, {
315
- dateFormat: "local" | "long" | "us" | "european" | "iso";
316
- displayTimeZone: boolean;
317
- timeFormat: "12h" | "24h";
318
- timezone: string;
319
- }, {
320
- dateFormat?: "local" | "long" | "us" | "european" | "iso" | null | undefined;
321
- displayTimeZone?: boolean | null | undefined;
322
- timeFormat?: "12h" | "24h" | null | undefined;
323
- timezone?: string | null | undefined;
324
- }>;
222
+ displayTimeZone: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodBoolean>>, z.ZodTransform<boolean, boolean | null | undefined>>;
223
+ dateFormat: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodEnum<{
224
+ local: "local";
225
+ long: "long";
226
+ us: "us";
227
+ european: "european";
228
+ iso: "iso";
229
+ }>>>, z.ZodTransform<"local" | "long" | "us" | "european" | "iso", "local" | "long" | "us" | "european" | "iso" | null | undefined>>;
230
+ timeFormat: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodEnum<{
231
+ "12h": "12h";
232
+ "24h": "24h";
233
+ }>>>, z.ZodTransform<"12h" | "24h", "12h" | "24h" | null | undefined>>;
234
+ timezone: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string, string | null | undefined>>;
235
+ }, z.core.$strip>;
325
236
  export declare const updatedAtTemplateSchema: z.ZodObject<{
326
- displayTimeZone: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodBoolean>>, boolean, boolean | null | undefined>;
327
- dateFormat: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodEnum<["local", "long", "us", "european", "iso"]>>>, "local" | "long" | "us" | "european" | "iso", "local" | "long" | "us" | "european" | "iso" | null | undefined>;
328
- timeFormat: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodEnum<["12h", "24h"]>>>, "12h" | "24h", "12h" | "24h" | null | undefined>;
329
- timezone: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string, string | null | undefined>;
330
- }, "strip", z.ZodTypeAny, {
331
- dateFormat: "local" | "long" | "us" | "european" | "iso";
332
- displayTimeZone: boolean;
333
- timeFormat: "12h" | "24h";
334
- timezone: string;
335
- }, {
336
- dateFormat?: "local" | "long" | "us" | "european" | "iso" | null | undefined;
337
- displayTimeZone?: boolean | null | undefined;
338
- timeFormat?: "12h" | "24h" | null | undefined;
339
- timezone?: string | null | undefined;
340
- }>;
341
- export declare const publicFieldDefinitionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
237
+ displayTimeZone: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodBoolean>>, z.ZodTransform<boolean, boolean | null | undefined>>;
238
+ dateFormat: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodEnum<{
239
+ local: "local";
240
+ long: "long";
241
+ us: "us";
242
+ european: "european";
243
+ iso: "iso";
244
+ }>>>, z.ZodTransform<"local" | "long" | "us" | "european" | "iso", "local" | "long" | "us" | "european" | "iso" | null | undefined>>;
245
+ timeFormat: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodEnum<{
246
+ "12h": "12h";
247
+ "24h": "24h";
248
+ }>>>, z.ZodTransform<"12h" | "24h", "12h" | "24h" | null | undefined>>;
249
+ timezone: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string, string | null | undefined>>;
250
+ }, z.core.$strip>;
251
+ export declare const publicFieldDefinitionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
342
252
  name: z.ZodString;
343
- } & {
344
253
  type: z.ZodLiteral<"currency">;
345
254
  template: z.ZodObject<{
346
255
  currencySymbol: z.ZodString;
347
256
  decimalPlaces: z.ZodNumber;
348
- numberFormat: z.ZodEnum<["local", "comma_period", "period_comma", "space_comma", "space_period", "no_separator"]>;
257
+ numberFormat: z.ZodEnum<{
258
+ local: "local";
259
+ comma_period: "comma_period";
260
+ period_comma: "period_comma";
261
+ space_comma: "space_comma";
262
+ space_period: "space_period";
263
+ no_separator: "no_separator";
264
+ }>;
349
265
  defaultValue: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
350
- }, "strip", z.ZodTypeAny, {
351
- currencySymbol: string;
352
- decimalPlaces: number;
353
- numberFormat: "local" | "comma_period" | "period_comma" | "space_comma" | "space_period" | "no_separator";
354
- defaultValue?: number | null | undefined;
355
- }, {
356
- currencySymbol: string;
357
- decimalPlaces: number;
358
- numberFormat: "local" | "comma_period" | "period_comma" | "space_comma" | "space_period" | "no_separator";
359
- defaultValue?: number | null | undefined;
360
- }>;
361
- }, "strip", z.ZodTypeAny, {
362
- type: "currency";
363
- name: string;
364
- template: {
365
- currencySymbol: string;
366
- decimalPlaces: number;
367
- numberFormat: "local" | "comma_period" | "period_comma" | "space_comma" | "space_period" | "no_separator";
368
- defaultValue?: number | null | undefined;
369
- };
370
- }, {
371
- type: "currency";
372
- name: string;
373
- template: {
374
- currencySymbol: string;
375
- decimalPlaces: number;
376
- numberFormat: "local" | "comma_period" | "period_comma" | "space_comma" | "space_period" | "no_separator";
377
- defaultValue?: number | null | undefined;
378
- };
379
- }>, z.ZodObject<{
266
+ }, z.core.$strip>;
267
+ }, z.core.$strip>, z.ZodObject<{
380
268
  name: z.ZodString;
381
- } & {
382
269
  type: z.ZodLiteral<"single_line_text">;
383
270
  template: z.ZodObject<{
384
271
  defaultValue: z.ZodOptional<z.ZodString>;
385
- }, "strip", z.ZodTypeAny, {
386
- defaultValue?: string | undefined;
387
- }, {
388
- defaultValue?: string | undefined;
389
- }>;
390
- }, "strip", z.ZodTypeAny, {
391
- type: "single_line_text";
392
- name: string;
393
- template: {
394
- defaultValue?: string | undefined;
395
- };
396
- }, {
397
- type: "single_line_text";
398
- name: string;
399
- template: {
400
- defaultValue?: string | undefined;
401
- };
402
- }>, z.ZodObject<{
272
+ }, z.core.$strip>;
273
+ }, z.core.$strip>, z.ZodObject<{
403
274
  name: z.ZodString;
404
- } & {
405
275
  type: z.ZodLiteral<"long_text">;
406
276
  template: z.ZodObject<{
407
277
  defaultValue: z.ZodOptional<z.ZodString>;
408
- }, "strip", z.ZodTypeAny, {
409
- defaultValue?: string | undefined;
410
- }, {
411
- defaultValue?: string | undefined;
412
- }>;
413
- }, "strip", z.ZodTypeAny, {
414
- type: "long_text";
415
- name: string;
416
- template: {
417
- defaultValue?: string | undefined;
418
- };
419
- }, {
420
- type: "long_text";
421
- name: string;
422
- template: {
423
- defaultValue?: string | undefined;
424
- };
425
- }>, z.ZodObject<{
278
+ }, z.core.$strip>;
279
+ }, z.core.$strip>, z.ZodObject<{
426
280
  name: z.ZodString;
427
- } & {
428
281
  type: z.ZodLiteral<"rich_text">;
429
282
  template: z.ZodObject<{
430
283
  defaultValue: z.ZodOptional<z.ZodString>;
431
- }, "strip", z.ZodTypeAny, {
432
- defaultValue?: string | undefined;
433
- }, {
434
- defaultValue?: string | undefined;
435
- }>;
436
- }, "strip", z.ZodTypeAny, {
437
- type: "rich_text";
438
- name: string;
439
- template: {
440
- defaultValue?: string | undefined;
441
- };
442
- }, {
443
- type: "rich_text";
444
- name: string;
445
- template: {
446
- defaultValue?: string | undefined;
447
- };
448
- }>, z.ZodObject<{
284
+ }, z.core.$strip>;
285
+ }, z.core.$strip>, z.ZodObject<{
449
286
  name: z.ZodString;
450
- } & {
451
287
  type: z.ZodLiteral<"number">;
452
288
  template: z.ZodObject<{
453
289
  decimalPlaces: z.ZodNumber;
454
- numberFormat: z.ZodEnum<["local", "comma_period", "period_comma", "space_comma", "space_period", "no_separator"]>;
290
+ numberFormat: z.ZodEnum<{
291
+ local: "local";
292
+ comma_period: "comma_period";
293
+ period_comma: "period_comma";
294
+ space_comma: "space_comma";
295
+ space_period: "space_period";
296
+ no_separator: "no_separator";
297
+ }>;
455
298
  defaultValue: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
456
- }, "strip", z.ZodTypeAny, {
457
- decimalPlaces: number;
458
- numberFormat: "local" | "comma_period" | "period_comma" | "space_comma" | "space_period" | "no_separator";
459
- defaultValue?: number | null | undefined;
460
- }, {
461
- decimalPlaces: number;
462
- numberFormat: "local" | "comma_period" | "period_comma" | "space_comma" | "space_period" | "no_separator";
463
- defaultValue?: number | null | undefined;
464
- }>;
465
- }, "strip", z.ZodTypeAny, {
466
- type: "number";
467
- name: string;
468
- template: {
469
- decimalPlaces: number;
470
- numberFormat: "local" | "comma_period" | "period_comma" | "space_comma" | "space_period" | "no_separator";
471
- defaultValue?: number | null | undefined;
472
- };
473
- }, {
474
- type: "number";
475
- name: string;
476
- template: {
477
- decimalPlaces: number;
478
- numberFormat: "local" | "comma_period" | "period_comma" | "space_comma" | "space_period" | "no_separator";
479
- defaultValue?: number | null | undefined;
480
- };
481
- }>, z.ZodObject<{
299
+ }, z.core.$strip>;
300
+ }, z.core.$strip>, z.ZodObject<{
482
301
  name: z.ZodString;
483
- } & {
484
302
  type: z.ZodLiteral<"single_select">;
485
303
  template: z.ZodObject<{
486
- options: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
304
+ options: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
487
305
  value: z.ZodString;
488
306
  label: z.ZodString;
489
307
  color: z.ZodOptional<z.ZodString>;
490
- }, "strip", z.ZodTypeAny, {
491
- value: string;
492
- label: string;
493
- color?: string | undefined;
494
- }, {
495
- value: string;
496
- label: string;
497
- color?: string | undefined;
498
- }>, "many">>>, {
308
+ }, z.core.$strip>>>>, z.ZodTransform<{
499
309
  value: string;
500
310
  label: string;
501
311
  color?: string | undefined;
@@ -503,68 +313,19 @@ export declare const publicFieldDefinitionSchema: z.ZodDiscriminatedUnion<"type"
503
313
  value: string;
504
314
  label: string;
505
315
  color?: string | undefined;
506
- }[] | null | undefined>;
507
- disableColors: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodBoolean>>, boolean, boolean | null | undefined>;
316
+ }[] | null | undefined>>;
317
+ disableColors: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodBoolean>>, z.ZodTransform<boolean, boolean | null | undefined>>;
508
318
  defaultValue: z.ZodOptional<z.ZodString>;
509
- }, "strip", z.ZodTypeAny, {
510
- options: {
511
- value: string;
512
- label: string;
513
- color?: string | undefined;
514
- }[];
515
- disableColors: boolean;
516
- defaultValue?: string | undefined;
517
- }, {
518
- options?: {
519
- value: string;
520
- label: string;
521
- color?: string | undefined;
522
- }[] | null | undefined;
523
- defaultValue?: string | undefined;
524
- disableColors?: boolean | null | undefined;
525
- }>;
526
- }, "strip", z.ZodTypeAny, {
527
- type: "single_select";
528
- name: string;
529
- template: {
530
- options: {
531
- value: string;
532
- label: string;
533
- color?: string | undefined;
534
- }[];
535
- disableColors: boolean;
536
- defaultValue?: string | undefined;
537
- };
538
- }, {
539
- type: "single_select";
540
- name: string;
541
- template: {
542
- options?: {
543
- value: string;
544
- label: string;
545
- color?: string | undefined;
546
- }[] | null | undefined;
547
- defaultValue?: string | undefined;
548
- disableColors?: boolean | null | undefined;
549
- };
550
- }>, z.ZodObject<{
319
+ }, z.core.$strip>;
320
+ }, z.core.$strip>, z.ZodObject<{
551
321
  name: z.ZodString;
552
- } & {
553
322
  type: z.ZodLiteral<"multiple_select">;
554
323
  template: z.ZodObject<{
555
- options: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
324
+ options: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
556
325
  value: z.ZodString;
557
326
  label: z.ZodString;
558
327
  color: z.ZodOptional<z.ZodString>;
559
- }, "strip", z.ZodTypeAny, {
560
- value: string;
561
- label: string;
562
- color?: string | undefined;
563
- }, {
564
- value: string;
565
- label: string;
566
- color?: string | undefined;
567
- }>, "many">>>, {
328
+ }, z.core.$strip>>>>, z.ZodTransform<{
568
329
  value: string;
569
330
  label: string;
570
331
  color?: string | undefined;
@@ -572,522 +333,196 @@ export declare const publicFieldDefinitionSchema: z.ZodDiscriminatedUnion<"type"
572
333
  value: string;
573
334
  label: string;
574
335
  color?: string | undefined;
575
- }[] | null | undefined>;
576
- disableColors: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodBoolean>>, boolean, boolean | null | undefined>;
577
- defaultValue: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
578
- }, "strip", z.ZodTypeAny, {
579
- options: {
580
- value: string;
581
- label: string;
582
- color?: string | undefined;
583
- }[];
584
- disableColors: boolean;
585
- defaultValue?: string[] | undefined;
586
- }, {
587
- options?: {
588
- value: string;
589
- label: string;
590
- color?: string | undefined;
591
- }[] | null | undefined;
592
- defaultValue?: string[] | undefined;
593
- disableColors?: boolean | null | undefined;
594
- }>;
595
- }, "strip", z.ZodTypeAny, {
596
- type: "multiple_select";
597
- name: string;
598
- template: {
599
- options: {
600
- value: string;
601
- label: string;
602
- color?: string | undefined;
603
- }[];
604
- disableColors: boolean;
605
- defaultValue?: string[] | undefined;
606
- };
607
- }, {
608
- type: "multiple_select";
609
- name: string;
610
- template: {
611
- options?: {
612
- value: string;
613
- label: string;
614
- color?: string | undefined;
615
- }[] | null | undefined;
616
- defaultValue?: string[] | undefined;
617
- disableColors?: boolean | null | undefined;
618
- };
619
- }>, z.ZodObject<{
336
+ }[] | null | undefined>>;
337
+ disableColors: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodBoolean>>, z.ZodTransform<boolean, boolean | null | undefined>>;
338
+ defaultValue: z.ZodOptional<z.ZodArray<z.ZodString>>;
339
+ }, z.core.$strip>;
340
+ }, z.core.$strip>, z.ZodObject<{
620
341
  name: z.ZodString;
621
- } & {
622
342
  type: z.ZodLiteral<"date">;
623
343
  template: z.ZodObject<{
624
- dateFormat: z.ZodEnum<["local", "long", "us", "european", "iso"]>;
625
- }, "strip", z.ZodTypeAny, {
626
- dateFormat: "local" | "long" | "us" | "european" | "iso";
627
- }, {
628
- dateFormat: "local" | "long" | "us" | "european" | "iso";
629
- }>;
630
- }, "strip", z.ZodTypeAny, {
631
- type: "date";
632
- name: string;
633
- template: {
634
- dateFormat: "local" | "long" | "us" | "european" | "iso";
635
- };
636
- }, {
637
- type: "date";
638
- name: string;
639
- template: {
640
- dateFormat: "local" | "long" | "us" | "european" | "iso";
641
- };
642
- }>, z.ZodObject<{
344
+ dateFormat: z.ZodEnum<{
345
+ local: "local";
346
+ long: "long";
347
+ us: "us";
348
+ european: "european";
349
+ iso: "iso";
350
+ }>;
351
+ }, z.core.$strip>;
352
+ }, z.core.$strip>, z.ZodObject<{
643
353
  name: z.ZodString;
644
- } & {
645
354
  type: z.ZodLiteral<"datetime">;
646
355
  template: z.ZodObject<{
647
- displayTimeZone: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodBoolean>>, boolean, boolean | null | undefined>;
648
- dateFormat: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodEnum<["local", "long", "us", "european", "iso"]>>>, "local" | "long" | "us" | "european" | "iso", "local" | "long" | "us" | "european" | "iso" | null | undefined>;
649
- timeFormat: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodEnum<["12h", "24h"]>>>, "12h" | "24h", "12h" | "24h" | null | undefined>;
650
- timezone: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string, string | null | undefined>;
651
- }, "strip", z.ZodTypeAny, {
652
- dateFormat: "local" | "long" | "us" | "european" | "iso";
653
- displayTimeZone: boolean;
654
- timeFormat: "12h" | "24h";
655
- timezone: string;
656
- }, {
657
- dateFormat?: "local" | "long" | "us" | "european" | "iso" | null | undefined;
658
- displayTimeZone?: boolean | null | undefined;
659
- timeFormat?: "12h" | "24h" | null | undefined;
660
- timezone?: string | null | undefined;
661
- }>;
662
- }, "strip", z.ZodTypeAny, {
663
- type: "datetime";
664
- name: string;
665
- template: {
666
- dateFormat: "local" | "long" | "us" | "european" | "iso";
667
- displayTimeZone: boolean;
668
- timeFormat: "12h" | "24h";
669
- timezone: string;
670
- };
671
- }, {
672
- type: "datetime";
673
- name: string;
674
- template: {
675
- dateFormat?: "local" | "long" | "us" | "european" | "iso" | null | undefined;
676
- displayTimeZone?: boolean | null | undefined;
677
- timeFormat?: "12h" | "24h" | null | undefined;
678
- timezone?: string | null | undefined;
679
- };
680
- }>, z.ZodObject<{
356
+ displayTimeZone: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodBoolean>>, z.ZodTransform<boolean, boolean | null | undefined>>;
357
+ dateFormat: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodEnum<{
358
+ local: "local";
359
+ long: "long";
360
+ us: "us";
361
+ european: "european";
362
+ iso: "iso";
363
+ }>>>, z.ZodTransform<"local" | "long" | "us" | "european" | "iso", "local" | "long" | "us" | "european" | "iso" | null | undefined>>;
364
+ timeFormat: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodEnum<{
365
+ "12h": "12h";
366
+ "24h": "24h";
367
+ }>>>, z.ZodTransform<"12h" | "24h", "12h" | "24h" | null | undefined>>;
368
+ timezone: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string, string | null | undefined>>;
369
+ }, z.core.$strip>;
370
+ }, z.core.$strip>, z.ZodObject<{
681
371
  name: z.ZodString;
682
- } & {
683
372
  type: z.ZodLiteral<"checkbox">;
684
373
  template: z.ZodObject<{
685
374
  defaultValue: z.ZodOptional<z.ZodBoolean>;
686
- }, "strip", z.ZodTypeAny, {
687
- defaultValue?: boolean | undefined;
688
- }, {
689
- defaultValue?: boolean | undefined;
690
- }>;
691
- }, "strip", z.ZodTypeAny, {
692
- type: "checkbox";
693
- name: string;
694
- template: {
695
- defaultValue?: boolean | undefined;
696
- };
697
- }, {
698
- type: "checkbox";
699
- name: string;
700
- template: {
701
- defaultValue?: boolean | undefined;
702
- };
703
- }>, z.ZodObject<{
375
+ }, z.core.$strip>;
376
+ }, z.core.$strip>, z.ZodObject<{
704
377
  name: z.ZodString;
705
- } & {
706
378
  type: z.ZodLiteral<"attachments">;
707
- template: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
708
- }, "strip", z.ZodTypeAny, {
709
- type: "attachments";
710
- name: string;
711
- template: {};
712
- }, {
713
- type: "attachments";
714
- name: string;
715
- template: {};
716
- }>, z.ZodObject<{
379
+ template: z.ZodObject<{}, z.core.$strip>;
380
+ }, z.core.$strip>, z.ZodObject<{
717
381
  name: z.ZodString;
718
- } & {
719
382
  type: z.ZodLiteral<"email">;
720
- template: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
721
- }, "strip", z.ZodTypeAny, {
722
- type: "email";
723
- name: string;
724
- template: {};
725
- }, {
726
- type: "email";
727
- name: string;
728
- template: {};
729
- }>, z.ZodObject<{
383
+ template: z.ZodObject<{}, z.core.$strip>;
384
+ }, z.core.$strip>, z.ZodObject<{
730
385
  name: z.ZodString;
731
- } & {
732
386
  type: z.ZodLiteral<"url">;
733
- template: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
734
- }, "strip", z.ZodTypeAny, {
735
- type: "url";
736
- name: string;
737
- template: {};
738
- }, {
739
- type: "url";
740
- name: string;
741
- template: {};
742
- }>, z.ZodObject<{
387
+ template: z.ZodObject<{}, z.core.$strip>;
388
+ }, z.core.$strip>, z.ZodObject<{
743
389
  name: z.ZodString;
744
- } & {
745
390
  type: z.ZodLiteral<"phone_number">;
746
- template: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
747
- }, "strip", z.ZodTypeAny, {
748
- type: "phone_number";
749
- name: string;
750
- template: {};
751
- }, {
752
- type: "phone_number";
753
- name: string;
754
- template: {};
755
- }>, z.ZodObject<{
391
+ template: z.ZodObject<{}, z.core.$strip>;
392
+ }, z.core.$strip>, z.ZodObject<{
756
393
  name: z.ZodString;
757
- } & {
758
394
  type: z.ZodLiteral<"rating">;
759
395
  template: z.ZodObject<{
760
396
  maxRating: z.ZodNumber;
761
397
  defaultValue: z.ZodOptional<z.ZodNumber>;
762
- }, "strip", z.ZodTypeAny, {
763
- maxRating: number;
764
- defaultValue?: number | undefined;
765
- }, {
766
- maxRating: number;
767
- defaultValue?: number | undefined;
768
- }>;
769
- }, "strip", z.ZodTypeAny, {
770
- type: "rating";
771
- name: string;
772
- template: {
773
- maxRating: number;
774
- defaultValue?: number | undefined;
775
- };
776
- }, {
777
- type: "rating";
778
- name: string;
779
- template: {
780
- maxRating: number;
781
- defaultValue?: number | undefined;
782
- };
783
- }>, z.ZodObject<{
398
+ }, z.core.$strip>;
399
+ }, z.core.$strip>, z.ZodObject<{
784
400
  name: z.ZodString;
785
- } & {
786
401
  type: z.ZodLiteral<"duration">;
787
402
  template: z.ZodObject<{
788
- format: z.ZodEnum<["h:mm", "h:mm:ss", "h:mm:ss.s", "h:mm:ss.ss", "h:mm:ss.sss"]>;
403
+ format: z.ZodEnum<{
404
+ "h:mm": "h:mm";
405
+ "h:mm:ss": "h:mm:ss";
406
+ "h:mm:ss.s": "h:mm:ss.s";
407
+ "h:mm:ss.ss": "h:mm:ss.ss";
408
+ "h:mm:ss.sss": "h:mm:ss.sss";
409
+ }>;
789
410
  defaultValue: z.ZodOptional<z.ZodNumber>;
790
- }, "strip", z.ZodTypeAny, {
791
- format: "h:mm" | "h:mm:ss" | "h:mm:ss.s" | "h:mm:ss.ss" | "h:mm:ss.sss";
792
- defaultValue?: number | undefined;
793
- }, {
794
- format: "h:mm" | "h:mm:ss" | "h:mm:ss.s" | "h:mm:ss.ss" | "h:mm:ss.sss";
795
- defaultValue?: number | undefined;
796
- }>;
797
- }, "strip", z.ZodTypeAny, {
798
- type: "duration";
799
- name: string;
800
- template: {
801
- format: "h:mm" | "h:mm:ss" | "h:mm:ss.s" | "h:mm:ss.ss" | "h:mm:ss.sss";
802
- defaultValue?: number | undefined;
803
- };
804
- }, {
805
- type: "duration";
806
- name: string;
807
- template: {
808
- format: "h:mm" | "h:mm:ss" | "h:mm:ss.s" | "h:mm:ss.ss" | "h:mm:ss.sss";
809
- defaultValue?: number | undefined;
810
- };
811
- }>, z.ZodObject<{
411
+ }, z.core.$strip>;
412
+ }, z.core.$strip>, z.ZodObject<{
812
413
  name: z.ZodString;
813
- } & {
814
414
  type: z.ZodLiteral<"percent">;
815
415
  template: z.ZodObject<{
816
416
  decimalPlaces: z.ZodNumber;
817
- numberFormat: z.ZodEnum<["local", "comma_period", "period_comma", "space_comma", "space_period", "no_separator"]>;
417
+ numberFormat: z.ZodEnum<{
418
+ local: "local";
419
+ comma_period: "comma_period";
420
+ period_comma: "period_comma";
421
+ space_comma: "space_comma";
422
+ space_period: "space_period";
423
+ no_separator: "no_separator";
424
+ }>;
818
425
  showProgressBar: z.ZodBoolean;
819
426
  allowNegative: z.ZodBoolean;
820
427
  defaultValue: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
821
- }, "strip", z.ZodTypeAny, {
822
- decimalPlaces: number;
823
- numberFormat: "local" | "comma_period" | "period_comma" | "space_comma" | "space_period" | "no_separator";
824
- showProgressBar: boolean;
825
- allowNegative: boolean;
826
- defaultValue?: number | null | undefined;
827
- }, {
828
- decimalPlaces: number;
829
- numberFormat: "local" | "comma_period" | "period_comma" | "space_comma" | "space_period" | "no_separator";
830
- showProgressBar: boolean;
831
- allowNegative: boolean;
832
- defaultValue?: number | null | undefined;
833
- }>;
834
- }, "strip", z.ZodTypeAny, {
835
- type: "percent";
836
- name: string;
837
- template: {
838
- decimalPlaces: number;
839
- numberFormat: "local" | "comma_period" | "period_comma" | "space_comma" | "space_period" | "no_separator";
840
- showProgressBar: boolean;
841
- allowNegative: boolean;
842
- defaultValue?: number | null | undefined;
843
- };
844
- }, {
845
- type: "percent";
846
- name: string;
847
- template: {
848
- decimalPlaces: number;
849
- numberFormat: "local" | "comma_period" | "period_comma" | "space_comma" | "space_period" | "no_separator";
850
- showProgressBar: boolean;
851
- allowNegative: boolean;
852
- defaultValue?: number | null | undefined;
853
- };
854
- }>, z.ZodObject<{
428
+ }, z.core.$strip>;
429
+ }, z.core.$strip>, z.ZodObject<{
855
430
  name: z.ZodString;
856
- } & {
857
431
  type: z.ZodLiteral<"linked_record">;
858
432
  template: z.ZodObject<{
859
433
  tableId: z.ZodString;
860
434
  allowMultiple: z.ZodOptional<z.ZodBoolean>;
861
- }, "strip", z.ZodTypeAny, {
862
- tableId: string;
863
- allowMultiple?: boolean | undefined;
864
- }, {
865
- tableId: string;
866
- allowMultiple?: boolean | undefined;
867
- }>;
868
- }, "strip", z.ZodTypeAny, {
869
- type: "linked_record";
870
- name: string;
871
- template: {
872
- tableId: string;
873
- allowMultiple?: boolean | undefined;
874
- };
875
- }, {
876
- type: "linked_record";
877
- name: string;
878
- template: {
879
- tableId: string;
880
- allowMultiple?: boolean | undefined;
881
- };
882
- }>, z.ZodObject<{
435
+ }, z.core.$strip>;
436
+ }, z.core.$strip>, z.ZodObject<{
883
437
  name: z.ZodString;
884
- } & {
885
438
  type: z.ZodLiteral<"lookup">;
886
439
  template: z.ZodObject<{
887
440
  linkedRecordFieldId: z.ZodString;
888
441
  lookupFieldId: z.ZodString;
889
442
  formulaExpression: z.ZodOptional<z.ZodString>;
890
- resultType: z.ZodOptional<z.ZodEnum<["text", "number", "date", "boolean", "array"]>>;
891
- }, "strip", z.ZodTypeAny, {
892
- linkedRecordFieldId: string;
893
- lookupFieldId: string;
894
- formulaExpression?: string | undefined;
895
- resultType?: "number" | "boolean" | "date" | "text" | "array" | undefined;
896
- }, {
897
- linkedRecordFieldId: string;
898
- lookupFieldId: string;
899
- formulaExpression?: string | undefined;
900
- resultType?: "number" | "boolean" | "date" | "text" | "array" | undefined;
901
- }>;
902
- }, "strip", z.ZodTypeAny, {
903
- type: "lookup";
904
- name: string;
905
- template: {
906
- linkedRecordFieldId: string;
907
- lookupFieldId: string;
908
- formulaExpression?: string | undefined;
909
- resultType?: "number" | "boolean" | "date" | "text" | "array" | undefined;
910
- };
911
- }, {
912
- type: "lookup";
913
- name: string;
914
- template: {
915
- linkedRecordFieldId: string;
916
- lookupFieldId: string;
917
- formulaExpression?: string | undefined;
918
- resultType?: "number" | "boolean" | "date" | "text" | "array" | undefined;
919
- };
920
- }>, z.ZodObject<{
443
+ resultType: z.ZodOptional<z.ZodEnum<{
444
+ number: "number";
445
+ boolean: "boolean";
446
+ date: "date";
447
+ text: "text";
448
+ array: "array";
449
+ }>>;
450
+ }, z.core.$strip>;
451
+ }, z.core.$strip>, z.ZodObject<{
921
452
  name: z.ZodString;
922
- } & {
923
453
  type: z.ZodLiteral<"source">;
924
- template: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
925
- }, "strip", z.ZodTypeAny, {
926
- type: "source";
927
- name: string;
928
- template: {};
929
- }, {
930
- type: "source";
931
- name: string;
932
- template: {};
933
- }>, z.ZodObject<{
454
+ template: z.ZodObject<{}, z.core.$strip>;
455
+ }, z.core.$strip>, z.ZodObject<{
934
456
  name: z.ZodString;
935
- } & {
936
457
  type: z.ZodLiteral<"formula">;
937
458
  template: z.ZodObject<{
938
459
  expression: z.ZodString;
939
- resultType: z.ZodOptional<z.ZodEnum<["text", "number", "date", "boolean", "array"]>>;
460
+ resultType: z.ZodOptional<z.ZodEnum<{
461
+ number: "number";
462
+ boolean: "boolean";
463
+ date: "date";
464
+ text: "text";
465
+ array: "array";
466
+ }>>;
940
467
  formatting: z.ZodOptional<z.ZodObject<{
941
- numberDisplayType: z.ZodOptional<z.ZodEnum<["number", "currency", "percent", "duration"]>>;
468
+ numberDisplayType: z.ZodOptional<z.ZodEnum<{
469
+ number: "number";
470
+ currency: "currency";
471
+ percent: "percent";
472
+ duration: "duration";
473
+ }>>;
942
474
  currencyCode: z.ZodOptional<z.ZodString>;
943
475
  decimalPlaces: z.ZodOptional<z.ZodNumber>;
944
- numberFormat: z.ZodOptional<z.ZodEnum<["local", "comma_period", "period_comma", "space_comma", "space_period"]>>;
945
- }, "strip", z.ZodTypeAny, {
946
- decimalPlaces?: number | undefined;
947
- numberFormat?: "local" | "comma_period" | "period_comma" | "space_comma" | "space_period" | undefined;
948
- numberDisplayType?: "number" | "currency" | "percent" | "duration" | undefined;
949
- currencyCode?: string | undefined;
950
- }, {
951
- decimalPlaces?: number | undefined;
952
- numberFormat?: "local" | "comma_period" | "period_comma" | "space_comma" | "space_period" | undefined;
953
- numberDisplayType?: "number" | "currency" | "percent" | "duration" | undefined;
954
- currencyCode?: string | undefined;
955
- }>>;
956
- }, "strip", z.ZodTypeAny, {
957
- expression: string;
958
- resultType?: "number" | "boolean" | "date" | "text" | "array" | undefined;
959
- formatting?: {
960
- decimalPlaces?: number | undefined;
961
- numberFormat?: "local" | "comma_period" | "period_comma" | "space_comma" | "space_period" | undefined;
962
- numberDisplayType?: "number" | "currency" | "percent" | "duration" | undefined;
963
- currencyCode?: string | undefined;
964
- } | undefined;
965
- }, {
966
- expression: string;
967
- resultType?: "number" | "boolean" | "date" | "text" | "array" | undefined;
968
- formatting?: {
969
- decimalPlaces?: number | undefined;
970
- numberFormat?: "local" | "comma_period" | "period_comma" | "space_comma" | "space_period" | undefined;
971
- numberDisplayType?: "number" | "currency" | "percent" | "duration" | undefined;
972
- currencyCode?: string | undefined;
973
- } | undefined;
974
- }>;
975
- }, "strip", z.ZodTypeAny, {
976
- type: "formula";
977
- name: string;
978
- template: {
979
- expression: string;
980
- resultType?: "number" | "boolean" | "date" | "text" | "array" | undefined;
981
- formatting?: {
982
- decimalPlaces?: number | undefined;
983
- numberFormat?: "local" | "comma_period" | "period_comma" | "space_comma" | "space_period" | undefined;
984
- numberDisplayType?: "number" | "currency" | "percent" | "duration" | undefined;
985
- currencyCode?: string | undefined;
986
- } | undefined;
987
- };
988
- }, {
989
- type: "formula";
990
- name: string;
991
- template: {
992
- expression: string;
993
- resultType?: "number" | "boolean" | "date" | "text" | "array" | undefined;
994
- formatting?: {
995
- decimalPlaces?: number | undefined;
996
- numberFormat?: "local" | "comma_period" | "period_comma" | "space_comma" | "space_period" | undefined;
997
- numberDisplayType?: "number" | "currency" | "percent" | "duration" | undefined;
998
- currencyCode?: string | undefined;
999
- } | undefined;
1000
- };
1001
- }>, z.ZodObject<{
476
+ numberFormat: z.ZodOptional<z.ZodEnum<{
477
+ local: "local";
478
+ comma_period: "comma_period";
479
+ period_comma: "period_comma";
480
+ space_comma: "space_comma";
481
+ space_period: "space_period";
482
+ }>>;
483
+ }, z.core.$strip>>;
484
+ }, z.core.$strip>;
485
+ }, z.core.$strip>, z.ZodObject<{
1002
486
  name: z.ZodString;
1003
- } & {
1004
487
  type: z.ZodLiteral<"autonumber">;
1005
- template: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
1006
- }, "strip", z.ZodTypeAny, {
1007
- type: "autonumber";
1008
- name: string;
1009
- template: {};
1010
- }, {
1011
- type: "autonumber";
1012
- name: string;
1013
- template: {};
1014
- }>, z.ZodObject<{
488
+ template: z.ZodObject<{}, z.core.$strip>;
489
+ }, z.core.$strip>, z.ZodObject<{
1015
490
  name: z.ZodString;
1016
- } & {
1017
491
  type: z.ZodLiteral<"created_at">;
1018
492
  template: z.ZodObject<{
1019
- displayTimeZone: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodBoolean>>, boolean, boolean | null | undefined>;
1020
- dateFormat: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodEnum<["local", "long", "us", "european", "iso"]>>>, "local" | "long" | "us" | "european" | "iso", "local" | "long" | "us" | "european" | "iso" | null | undefined>;
1021
- timeFormat: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodEnum<["12h", "24h"]>>>, "12h" | "24h", "12h" | "24h" | null | undefined>;
1022
- timezone: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string, string | null | undefined>;
1023
- }, "strip", z.ZodTypeAny, {
1024
- dateFormat: "local" | "long" | "us" | "european" | "iso";
1025
- displayTimeZone: boolean;
1026
- timeFormat: "12h" | "24h";
1027
- timezone: string;
1028
- }, {
1029
- dateFormat?: "local" | "long" | "us" | "european" | "iso" | null | undefined;
1030
- displayTimeZone?: boolean | null | undefined;
1031
- timeFormat?: "12h" | "24h" | null | undefined;
1032
- timezone?: string | null | undefined;
1033
- }>;
1034
- }, "strip", z.ZodTypeAny, {
1035
- type: "created_at";
1036
- name: string;
1037
- template: {
1038
- dateFormat: "local" | "long" | "us" | "european" | "iso";
1039
- displayTimeZone: boolean;
1040
- timeFormat: "12h" | "24h";
1041
- timezone: string;
1042
- };
1043
- }, {
1044
- type: "created_at";
1045
- name: string;
1046
- template: {
1047
- dateFormat?: "local" | "long" | "us" | "european" | "iso" | null | undefined;
1048
- displayTimeZone?: boolean | null | undefined;
1049
- timeFormat?: "12h" | "24h" | null | undefined;
1050
- timezone?: string | null | undefined;
1051
- };
1052
- }>, z.ZodObject<{
493
+ displayTimeZone: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodBoolean>>, z.ZodTransform<boolean, boolean | null | undefined>>;
494
+ dateFormat: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodEnum<{
495
+ local: "local";
496
+ long: "long";
497
+ us: "us";
498
+ european: "european";
499
+ iso: "iso";
500
+ }>>>, z.ZodTransform<"local" | "long" | "us" | "european" | "iso", "local" | "long" | "us" | "european" | "iso" | null | undefined>>;
501
+ timeFormat: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodEnum<{
502
+ "12h": "12h";
503
+ "24h": "24h";
504
+ }>>>, z.ZodTransform<"12h" | "24h", "12h" | "24h" | null | undefined>>;
505
+ timezone: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string, string | null | undefined>>;
506
+ }, z.core.$strip>;
507
+ }, z.core.$strip>, z.ZodObject<{
1053
508
  name: z.ZodString;
1054
- } & {
1055
509
  type: z.ZodLiteral<"updated_at">;
1056
510
  template: z.ZodObject<{
1057
- displayTimeZone: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodBoolean>>, boolean, boolean | null | undefined>;
1058
- dateFormat: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodEnum<["local", "long", "us", "european", "iso"]>>>, "local" | "long" | "us" | "european" | "iso", "local" | "long" | "us" | "european" | "iso" | null | undefined>;
1059
- timeFormat: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodEnum<["12h", "24h"]>>>, "12h" | "24h", "12h" | "24h" | null | undefined>;
1060
- timezone: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string, string | null | undefined>;
1061
- }, "strip", z.ZodTypeAny, {
1062
- dateFormat: "local" | "long" | "us" | "european" | "iso";
1063
- displayTimeZone: boolean;
1064
- timeFormat: "12h" | "24h";
1065
- timezone: string;
1066
- }, {
1067
- dateFormat?: "local" | "long" | "us" | "european" | "iso" | null | undefined;
1068
- displayTimeZone?: boolean | null | undefined;
1069
- timeFormat?: "12h" | "24h" | null | undefined;
1070
- timezone?: string | null | undefined;
1071
- }>;
1072
- }, "strip", z.ZodTypeAny, {
1073
- type: "updated_at";
1074
- name: string;
1075
- template: {
1076
- dateFormat: "local" | "long" | "us" | "european" | "iso";
1077
- displayTimeZone: boolean;
1078
- timeFormat: "12h" | "24h";
1079
- timezone: string;
1080
- };
1081
- }, {
1082
- type: "updated_at";
1083
- name: string;
1084
- template: {
1085
- dateFormat?: "local" | "long" | "us" | "european" | "iso" | null | undefined;
1086
- displayTimeZone?: boolean | null | undefined;
1087
- timeFormat?: "12h" | "24h" | null | undefined;
1088
- timezone?: string | null | undefined;
1089
- };
1090
- }>]>;
511
+ displayTimeZone: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodBoolean>>, z.ZodTransform<boolean, boolean | null | undefined>>;
512
+ dateFormat: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodEnum<{
513
+ local: "local";
514
+ long: "long";
515
+ us: "us";
516
+ european: "european";
517
+ iso: "iso";
518
+ }>>>, z.ZodTransform<"local" | "long" | "us" | "european" | "iso", "local" | "long" | "us" | "european" | "iso" | null | undefined>>;
519
+ timeFormat: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodEnum<{
520
+ "12h": "12h";
521
+ "24h": "24h";
522
+ }>>>, z.ZodTransform<"12h" | "24h", "12h" | "24h" | null | undefined>>;
523
+ timezone: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodString>>, z.ZodTransform<string, string | null | undefined>>;
524
+ }, z.core.$strip>;
525
+ }, z.core.$strip>], "type">;
1091
526
  export type PublicFieldDefinition = z.infer<typeof publicFieldDefinitionSchema>;
1092
527
  export type FieldTemplateMap = {
1093
528
  currency: z.infer<typeof currencyTemplateSchema>;