import * as z from 'zod/v4'; import { AddressFieldUpdateValue, AddressFieldValue, CustomFieldValue, FileFieldValue, FileFieldWithOptionValue, HttpFieldUpdateValue, IdReaderFieldValue, NameFieldUpdateValue, NameFieldValue, NumberWithUnitFieldUpdateValue, NumberWithUnitFieldValue, QrReaderFieldValue, QueryParamReaderFieldUpdateValue } from './CompositeFieldValue'; import { PlainDate, plainDateToLocalDate } from './PlainDate'; export { PlainDate, plainDateToLocalDate }; /** * FieldValues defined in this file are primitive field values. * FieldValues defined in CompositeFieldValue.ts are composed of multiple primitive field values (Address, File etc). * * FieldValue is a union of primitive and composite field values. * FieldValue can never be null. * * FieldUpdateValue accepts null values for primitive field values when they are optional. * API is build assuming partial (PATCH) updates. In order to edit and remove optional value, we need to accept null values. * Omitting a field value in partial updates leaves it untouched. * */ export declare const TextValue: z.ZodString; export declare const HiddenFieldValue: z.ZodString; export declare const NonEmptyTextValue: z.ZodString; export declare const DateValue: z.ZodISODate; export type DateValue = z.infer; export declare const AgeValue: z.ZodObject<{ age: z.ZodNumber; asOfDateRef: z.ZodString; }, z.core.$strip>; export type AgeValue = z.infer; export declare const AgeUpdateValue: z.ZodNullable>>; export declare const AutocompleteValue: z.ZodObject<{ label: z.ZodString; value: z.ZodString; }, z.core.$strip>; export type AutocompleteValue = z.infer; export declare const AutocompleteUpdateValue: z.ZodNullable>>; export type AutocompleteUpdateValue = z.infer; export declare const TimeValue: z.ZodString; export type TimeValue = z.infer; export declare const DatetimeValue: z.ZodISODateTime; export declare const SelectDateRangeValue: z.ZodEnum<{ last7Days: "last7Days"; last30Days: "last30Days"; last90Days: "last90Days"; last365Days: "last365Days"; }>; export declare const DateRangeFieldValue: z.ZodUnion<[z.ZodObject<{ start: z.core.$ZodBranded; end: z.core.$ZodBranded; }, z.core.$strip>, z.core.$ZodBranded]>; export type DateRangeFieldValue = z.infer; export type SelectDateRangeValue = z.infer; export declare const EmailValue: z.ZodEmail; export declare const CheckboxFieldValue: z.ZodBoolean; export type CheckboxFieldValue = z.infer; export declare const NumberFieldValue: z.ZodNumber; export type NumberFieldValue = z.infer; export declare const SignatureFieldValue: z.ZodObject<{ path: z.core.$ZodBranded; originalFilename: z.ZodString; type: z.ZodString; }, z.core.$strip>; export type SignatureFieldValue = z.infer; export declare const ButtonFieldValue: z.ZodNumber; export type ButtonFieldValue = z.infer; export declare const VerificationStatusValue: z.ZodEnum<{ verified: "verified"; authenticated: "authenticated"; failed: "failed"; pending: "pending"; }>; export type VerificationStatusValue = z.infer; declare const LeafFieldValues: z.ZodUnion>; addressType: z.ZodLiteral<"DOMESTIC">; administrativeArea: z.ZodString; }, z.core.$strip>, z.ZodObject<{ country: z.ZodString; streetLevelDetails: z.ZodOptional>; addressType: z.ZodLiteral<"INTERNATIONAL">; }, z.core.$strip>], "addressType">, z.ZodString, z.core.$ZodBranded, z.ZodObject<{ age: z.ZodNumber; asOfDateRef: z.ZodString; }, z.core.$strip>, z.ZodString, z.ZodUnion<[z.ZodObject<{ start: z.core.$ZodBranded; end: z.core.$ZodBranded; }, z.core.$strip>, z.core.$ZodBranded]>, z.ZodEnum<{ last7Days: "last7Days"; last30Days: "last30Days"; last90Days: "last90Days"; last365Days: "last365Days"; }>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{ path: z.core.$ZodBranded; originalFilename: z.ZodString; type: z.ZodString; }, z.core.$strip>, z.ZodArray; originalFilename: z.ZodString; type: z.ZodString; option: z.ZodString; }, z.core.$strip>>, z.ZodObject<{ firstname: z.ZodString; surname: z.ZodString; middlename: z.ZodOptional; }, z.core.$strip>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{ firstname: z.ZodOptional>; surname: z.ZodOptional>; middlename: z.ZodOptional>; }, z.core.$strip>, z.ZodNull]>, z.ZodUndefined]>, z.ZodNumber, z.ZodObject<{ loading: z.ZodBoolean; error: z.ZodOptional>>; data: z.ZodAny; }, z.core.$strip>, z.ZodEnum<{ verified: "verified"; authenticated: "authenticated"; failed: "failed"; pending: "pending"; }>, z.ZodOptional; updatedAt: z.ZodISODateTime; }, z.core.$strip>>>, z.ZodObject<{ data: z.ZodAny; }, z.core.$strip>, z.ZodObject<{ data: z.ZodAny; }, z.core.$strip>, z.ZodObject<{ numericValue: z.ZodNumber; unit: z.ZodString; }, z.core.$strip>, z.ZodObject<{ numericValue: z.ZodOptional; unit: z.ZodOptional; }, z.core.$strip>, z.core.$ZodBranded, z.ZodObject<{ label: z.ZodString; value: z.ZodString; }, z.core.$strip>, z.ZodNullable>>]>; type LeafFieldValues = z.infer; export declare const FieldGroupValue: z.ZodRecord>; addressType: z.ZodLiteral<"DOMESTIC">; administrativeArea: z.ZodString; }, z.core.$strip>, z.ZodObject<{ country: z.ZodString; streetLevelDetails: z.ZodOptional>; addressType: z.ZodLiteral<"INTERNATIONAL">; }, z.core.$strip>], "addressType">, z.ZodString, z.core.$ZodBranded, z.ZodObject<{ age: z.ZodNumber; asOfDateRef: z.ZodString; }, z.core.$strip>, z.ZodString, z.ZodUnion<[z.ZodObject<{ start: z.core.$ZodBranded; end: z.core.$ZodBranded; }, z.core.$strip>, z.core.$ZodBranded]>, z.ZodEnum<{ last7Days: "last7Days"; last30Days: "last30Days"; last90Days: "last90Days"; last365Days: "last365Days"; }>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{ path: z.core.$ZodBranded; originalFilename: z.ZodString; type: z.ZodString; }, z.core.$strip>, z.ZodArray; originalFilename: z.ZodString; type: z.ZodString; option: z.ZodString; }, z.core.$strip>>, z.ZodObject<{ firstname: z.ZodString; surname: z.ZodString; middlename: z.ZodOptional; }, z.core.$strip>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{ firstname: z.ZodOptional>; surname: z.ZodOptional>; middlename: z.ZodOptional>; }, z.core.$strip>, z.ZodNull]>, z.ZodUndefined]>, z.ZodNumber, z.ZodObject<{ loading: z.ZodBoolean; error: z.ZodOptional>>; data: z.ZodAny; }, z.core.$strip>, z.ZodEnum<{ verified: "verified"; authenticated: "authenticated"; failed: "failed"; pending: "pending"; }>, z.ZodOptional; updatedAt: z.ZodISODateTime; }, z.core.$strip>>>, z.ZodObject<{ data: z.ZodAny; }, z.core.$strip>, z.ZodObject<{ data: z.ZodAny; }, z.core.$strip>, z.ZodObject<{ numericValue: z.ZodNumber; unit: z.ZodString; }, z.core.$strip>, z.ZodObject<{ numericValue: z.ZodOptional; unit: z.ZodOptional; }, z.core.$strip>, z.core.$ZodBranded, z.ZodObject<{ label: z.ZodString; value: z.ZodString; }, z.core.$strip>, z.ZodNullable>>]>>; export type FieldGroupValue = z.infer; export declare const DataFieldValue: z.ZodOptional>; addressType: z.ZodLiteral<"DOMESTIC">; administrativeArea: z.ZodString; }, z.core.$strip>, z.ZodObject<{ country: z.ZodString; streetLevelDetails: z.ZodOptional>; addressType: z.ZodLiteral<"INTERNATIONAL">; }, z.core.$strip>], "addressType">, z.ZodString, z.core.$ZodBranded, z.ZodObject<{ age: z.ZodNumber; asOfDateRef: z.ZodString; }, z.core.$strip>, z.ZodString, z.ZodUnion<[z.ZodObject<{ start: z.core.$ZodBranded; end: z.core.$ZodBranded; }, z.core.$strip>, z.core.$ZodBranded]>, z.ZodEnum<{ last7Days: "last7Days"; last30Days: "last30Days"; last90Days: "last90Days"; last365Days: "last365Days"; }>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{ path: z.core.$ZodBranded; originalFilename: z.ZodString; type: z.ZodString; }, z.core.$strip>, z.ZodArray; originalFilename: z.ZodString; type: z.ZodString; option: z.ZodString; }, z.core.$strip>>, z.ZodObject<{ firstname: z.ZodString; surname: z.ZodString; middlename: z.ZodOptional; }, z.core.$strip>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{ firstname: z.ZodOptional>; surname: z.ZodOptional>; middlename: z.ZodOptional>; }, z.core.$strip>, z.ZodNull]>, z.ZodUndefined]>, z.ZodNumber, z.ZodObject<{ loading: z.ZodBoolean; error: z.ZodOptional>>; data: z.ZodAny; }, z.core.$strip>, z.ZodEnum<{ verified: "verified"; authenticated: "authenticated"; failed: "failed"; pending: "pending"; }>, z.ZodOptional; updatedAt: z.ZodISODateTime; }, z.core.$strip>>>, z.ZodObject<{ data: z.ZodAny; }, z.core.$strip>, z.ZodObject<{ data: z.ZodAny; }, z.core.$strip>, z.ZodObject<{ numericValue: z.ZodNumber; unit: z.ZodString; }, z.core.$strip>, z.ZodObject<{ numericValue: z.ZodOptional; unit: z.ZodOptional; }, z.core.$strip>, z.core.$ZodBranded, z.ZodObject<{ label: z.ZodString; value: z.ZodString; }, z.core.$strip>, z.ZodNullable>>]>>; }, z.core.$strip>>>; export type DataFieldValue = z.infer; export type FieldValue = LeafFieldValues | DataFieldValue | FieldGroupValue; export declare const FieldValue: z.ZodType; export declare function safeUnion(schemas: T): z.ZodAny; export type FieldUpdateValue = z.infer | PlainDate | z.infer | z.infer | z.infer | z.infer | z.infer | z.infer | z.infer | z.infer | z.infer | z.infer | DataFieldValue | FieldGroupValue | z.infer | z.infer | z.infer | z.infer | z.infer | z.infer; export declare const FieldUpdateValue: z.ZodType; /** * NOTE: This is an exception. We need schema as a type in order to generate schema dynamically. * */ export type FieldValueSchema = typeof FileFieldValue | typeof FileFieldWithOptionValue | typeof CheckboxFieldValue | typeof AddressFieldValue | typeof NumberFieldValue | typeof NumberWithUnitFieldValue | typeof DataFieldValue | typeof FieldGroupValue | typeof NameFieldValue | z.ZodString | z.ZodBoolean; /** * NOTE: This is an exception. We need schema as a type in order to generate schema dynamically. * * FieldValueInputSchema uses Input types which have set optional values as nullish * */ export type FieldUpdateValueSchema = typeof PlainDate | typeof DateRangeFieldValue | typeof AgeValue | typeof SelectDateRangeValue | typeof FileFieldValue | typeof FileFieldWithOptionValue | typeof CheckboxFieldValue | typeof AddressFieldUpdateValue | typeof NumberFieldValue | typeof NumberWithUnitFieldValue | typeof NumberWithUnitFieldUpdateValue | typeof DataFieldValue | typeof FieldGroupValue | typeof NameFieldValue | typeof NameFieldUpdateValue | typeof HttpFieldUpdateValue | typeof QueryParamReaderFieldUpdateValue | typeof ButtonFieldValue | typeof QrReaderFieldValue | typeof IdReaderFieldValue | typeof DateValue | typeof EmailValue | typeof CustomFieldValue | typeof AutocompleteValue | z.ZodString | z.ZodBoolean; //# sourceMappingURL=FieldValue.d.ts.map