@opencrvs/toolkit
Advanced tools
Comparing version
@@ -101,4 +101,5 @@ import { EventDocument } from '../events/EventDocument'; | ||
inArray: (values: string[]) => JSONSchema; | ||
isValidEnglishName: () => JSONSchema; | ||
}; | ||
export {}; | ||
//# sourceMappingURL=conditionals.d.ts.map |
@@ -9,2 +9,29 @@ import { ConditionalParameters, JSONSchema } from './conditionals'; | ||
export declare function isFieldEnabled(field: FieldConfig, form: ActionUpdate | EventState): boolean; | ||
export declare const errorMessages: { | ||
hiddenField: { | ||
id: string; | ||
defaultMessage: string; | ||
description: string; | ||
}; | ||
invalidDate: { | ||
defaultMessage: string; | ||
description: string; | ||
id: string; | ||
}; | ||
invalidEmail: { | ||
defaultMessage: string; | ||
description: string; | ||
id: string; | ||
}; | ||
requiredField: { | ||
defaultMessage: string; | ||
description: string; | ||
id: string; | ||
}; | ||
invalidInput: { | ||
defaultMessage: string; | ||
description: string; | ||
id: string; | ||
}; | ||
}; | ||
/** | ||
@@ -11,0 +38,0 @@ * Custom error map for Zod to override the default error messages in intl-formik format. |
@@ -21,5 +21,10 @@ /** | ||
readonly MARKED_AS_DUPLICATE: "MARKED_AS_DUPLICATE"; | ||
readonly ARCHIVED: "ARCHIVED"; | ||
readonly ARCHIVE: "ARCHIVE"; | ||
}; | ||
/** | ||
* Actions that can be attached to an event document | ||
* even if they are not in event configuration | ||
*/ | ||
export declare const LatentActions: ("REJECT" | "ARCHIVE")[]; | ||
export type ActionType = (typeof ActionType)[keyof typeof ActionType]; | ||
//# sourceMappingURL=ActionType.d.ts.map |
@@ -9,2 +9,6 @@ import { z } from 'zod'; | ||
}; | ||
export declare const AddressType: { | ||
readonly DOMESTIC: "DOMESTIC"; | ||
readonly INTERNATIONAL: "INTERNATIONAL"; | ||
}; | ||
export declare const FileFieldValue: z.ZodObject<{ | ||
@@ -26,2 +30,3 @@ filename: z.ZodString; | ||
country: z.ZodString; | ||
addressType: z.ZodLiteral<"DOMESTIC">; | ||
province: z.ZodString; | ||
@@ -39,2 +44,3 @@ district: z.ZodString; | ||
district: string; | ||
addressType: "DOMESTIC"; | ||
province: string; | ||
@@ -50,2 +56,3 @@ urbanOrRural: "URBAN"; | ||
district: string; | ||
addressType: "DOMESTIC"; | ||
province: string; | ||
@@ -61,2 +68,3 @@ urbanOrRural: "URBAN"; | ||
country: z.ZodString; | ||
addressType: z.ZodLiteral<"DOMESTIC">; | ||
province: z.ZodString; | ||
@@ -70,2 +78,3 @@ district: z.ZodString; | ||
district: string; | ||
addressType: "DOMESTIC"; | ||
province: string; | ||
@@ -77,2 +86,3 @@ urbanOrRural: "RURAL"; | ||
district: string; | ||
addressType: "DOMESTIC"; | ||
province: string; | ||
@@ -84,2 +94,3 @@ urbanOrRural: "RURAL"; | ||
country: z.ZodString; | ||
addressType: z.ZodLiteral<"DOMESTIC">; | ||
province: z.ZodString; | ||
@@ -97,2 +108,3 @@ district: z.ZodString; | ||
district: string; | ||
addressType: "DOMESTIC"; | ||
province: string; | ||
@@ -108,2 +120,3 @@ urbanOrRural: "URBAN"; | ||
district: string; | ||
addressType: "DOMESTIC"; | ||
province: string; | ||
@@ -119,2 +132,3 @@ urbanOrRural: "URBAN"; | ||
country: z.ZodString; | ||
addressType: z.ZodLiteral<"DOMESTIC">; | ||
province: z.ZodString; | ||
@@ -128,2 +142,3 @@ district: z.ZodString; | ||
district: string; | ||
addressType: "DOMESTIC"; | ||
province: string; | ||
@@ -135,2 +150,3 @@ urbanOrRural: "RURAL"; | ||
district: string; | ||
addressType: "DOMESTIC"; | ||
province: string; | ||
@@ -140,4 +156,36 @@ urbanOrRural: "RURAL"; | ||
}>; | ||
export declare const AddressFieldValue: z.ZodDiscriminatedUnion<"urbanOrRural", [z.ZodObject<z.objectUtil.extendShape<{ | ||
export declare const GenericAddressValue: z.ZodObject<{ | ||
country: z.ZodString; | ||
addressType: z.ZodLiteral<"INTERNATIONAL">; | ||
state: z.ZodString; | ||
district2: z.ZodString; | ||
cityOrTown: z.ZodOptional<z.ZodString>; | ||
addressLine1: z.ZodOptional<z.ZodString>; | ||
addressLine2: z.ZodOptional<z.ZodString>; | ||
addressLine3: z.ZodOptional<z.ZodString>; | ||
postcodeOrZip: z.ZodOptional<z.ZodString>; | ||
}, "strip", z.ZodTypeAny, { | ||
country: string; | ||
state: string; | ||
addressType: "INTERNATIONAL"; | ||
district2: string; | ||
cityOrTown?: string | undefined; | ||
addressLine1?: string | undefined; | ||
addressLine2?: string | undefined; | ||
addressLine3?: string | undefined; | ||
postcodeOrZip?: string | undefined; | ||
}, { | ||
country: string; | ||
state: string; | ||
addressType: "INTERNATIONAL"; | ||
district2: string; | ||
cityOrTown?: string | undefined; | ||
addressLine1?: string | undefined; | ||
addressLine2?: string | undefined; | ||
addressLine3?: string | undefined; | ||
postcodeOrZip?: string | undefined; | ||
}>; | ||
export declare const AddressFieldValue: z.ZodUnion<[z.ZodDiscriminatedUnion<"urbanOrRural", [z.ZodObject<z.objectUtil.extendShape<{ | ||
country: z.ZodString; | ||
addressType: z.ZodLiteral<"DOMESTIC">; | ||
province: z.ZodString; | ||
@@ -155,2 +203,3 @@ district: z.ZodString; | ||
district: string; | ||
addressType: "DOMESTIC"; | ||
province: string; | ||
@@ -166,2 +215,3 @@ urbanOrRural: "URBAN"; | ||
district: string; | ||
addressType: "DOMESTIC"; | ||
province: string; | ||
@@ -176,2 +226,3 @@ urbanOrRural: "URBAN"; | ||
country: z.ZodString; | ||
addressType: z.ZodLiteral<"DOMESTIC">; | ||
province: z.ZodString; | ||
@@ -185,2 +236,3 @@ district: z.ZodString; | ||
district: string; | ||
addressType: "DOMESTIC"; | ||
province: string; | ||
@@ -192,8 +244,71 @@ urbanOrRural: "RURAL"; | ||
district: string; | ||
addressType: "DOMESTIC"; | ||
province: string; | ||
urbanOrRural: "RURAL"; | ||
village?: string | undefined; | ||
}>]>, z.ZodObject<{ | ||
country: z.ZodString; | ||
addressType: z.ZodLiteral<"INTERNATIONAL">; | ||
state: z.ZodString; | ||
district2: z.ZodString; | ||
cityOrTown: z.ZodOptional<z.ZodString>; | ||
addressLine1: z.ZodOptional<z.ZodString>; | ||
addressLine2: z.ZodOptional<z.ZodString>; | ||
addressLine3: z.ZodOptional<z.ZodString>; | ||
postcodeOrZip: z.ZodOptional<z.ZodString>; | ||
}, "strip", z.ZodTypeAny, { | ||
country: string; | ||
state: string; | ||
addressType: "INTERNATIONAL"; | ||
district2: string; | ||
cityOrTown?: string | undefined; | ||
addressLine1?: string | undefined; | ||
addressLine2?: string | undefined; | ||
addressLine3?: string | undefined; | ||
postcodeOrZip?: string | undefined; | ||
}, { | ||
country: string; | ||
state: string; | ||
addressType: "INTERNATIONAL"; | ||
district2: string; | ||
cityOrTown?: string | undefined; | ||
addressLine1?: string | undefined; | ||
addressLine2?: string | undefined; | ||
addressLine3?: string | undefined; | ||
postcodeOrZip?: string | undefined; | ||
}>]>; | ||
export declare const AddressFieldUpdateValue: z.ZodDiscriminatedUnion<"urbanOrRural", [z.ZodObject<z.objectUtil.extendShape<{ | ||
export declare const GenericAddressUpdateValue: z.ZodObject<{ | ||
country: z.ZodString; | ||
addressType: z.ZodLiteral<"INTERNATIONAL">; | ||
state: z.ZodString; | ||
district2: z.ZodString; | ||
cityOrTown: z.ZodOptional<z.ZodNullable<z.ZodString>>; | ||
addressLine1: z.ZodOptional<z.ZodNullable<z.ZodString>>; | ||
addressLine2: z.ZodOptional<z.ZodNullable<z.ZodString>>; | ||
addressLine3: z.ZodOptional<z.ZodNullable<z.ZodString>>; | ||
postcodeOrZip: z.ZodOptional<z.ZodNullable<z.ZodString>>; | ||
}, "strip", z.ZodTypeAny, { | ||
country: string; | ||
state: string; | ||
addressType: "INTERNATIONAL"; | ||
district2: string; | ||
cityOrTown?: string | null | undefined; | ||
addressLine1?: string | null | undefined; | ||
addressLine2?: string | null | undefined; | ||
addressLine3?: string | null | undefined; | ||
postcodeOrZip?: string | null | undefined; | ||
}, { | ||
country: string; | ||
state: string; | ||
addressType: "INTERNATIONAL"; | ||
district2: string; | ||
cityOrTown?: string | null | undefined; | ||
addressLine1?: string | null | undefined; | ||
addressLine2?: string | null | undefined; | ||
addressLine3?: string | null | undefined; | ||
postcodeOrZip?: string | null | undefined; | ||
}>; | ||
export declare const AddressFieldUpdateValue: z.ZodUnion<[z.ZodDiscriminatedUnion<"urbanOrRural", [z.ZodObject<z.objectUtil.extendShape<{ | ||
country: z.ZodString; | ||
addressType: z.ZodLiteral<"DOMESTIC">; | ||
province: z.ZodString; | ||
@@ -211,2 +326,3 @@ district: z.ZodString; | ||
district: string; | ||
addressType: "DOMESTIC"; | ||
province: string; | ||
@@ -222,2 +338,3 @@ urbanOrRural: "URBAN"; | ||
district: string; | ||
addressType: "DOMESTIC"; | ||
province: string; | ||
@@ -232,2 +349,3 @@ urbanOrRural: "URBAN"; | ||
country: z.ZodString; | ||
addressType: z.ZodLiteral<"DOMESTIC">; | ||
province: z.ZodString; | ||
@@ -241,2 +359,3 @@ district: z.ZodString; | ||
district: string; | ||
addressType: "DOMESTIC"; | ||
province: string; | ||
@@ -248,5 +367,36 @@ urbanOrRural: "RURAL"; | ||
district: string; | ||
addressType: "DOMESTIC"; | ||
province: string; | ||
urbanOrRural: "RURAL"; | ||
village?: string | null | undefined; | ||
}>]>, z.ZodObject<{ | ||
country: z.ZodString; | ||
addressType: z.ZodLiteral<"INTERNATIONAL">; | ||
state: z.ZodString; | ||
district2: z.ZodString; | ||
cityOrTown: z.ZodOptional<z.ZodNullable<z.ZodString>>; | ||
addressLine1: z.ZodOptional<z.ZodNullable<z.ZodString>>; | ||
addressLine2: z.ZodOptional<z.ZodNullable<z.ZodString>>; | ||
addressLine3: z.ZodOptional<z.ZodNullable<z.ZodString>>; | ||
postcodeOrZip: z.ZodOptional<z.ZodNullable<z.ZodString>>; | ||
}, "strip", z.ZodTypeAny, { | ||
country: string; | ||
state: string; | ||
addressType: "INTERNATIONAL"; | ||
district2: string; | ||
cityOrTown?: string | null | undefined; | ||
addressLine1?: string | null | undefined; | ||
addressLine2?: string | null | undefined; | ||
addressLine3?: string | null | undefined; | ||
postcodeOrZip?: string | null | undefined; | ||
}, { | ||
country: string; | ||
state: string; | ||
addressType: "INTERNATIONAL"; | ||
district2: string; | ||
cityOrTown?: string | null | undefined; | ||
addressLine1?: string | null | undefined; | ||
addressLine2?: string | null | undefined; | ||
addressLine3?: string | null | undefined; | ||
postcodeOrZip?: string | null | undefined; | ||
}>]>; | ||
@@ -253,0 +403,0 @@ export type AddressFieldValue = z.infer<typeof AddressFieldValue>; |
@@ -102,3 +102,2 @@ import { EventConfigInput } from './EventConfigInput'; | ||
type: "REJECT"; | ||
comment: string; | ||
conditionals: ({ | ||
@@ -147,7 +146,5 @@ type: "SHOW"; | ||
}[]; | ||
isDuplicate: boolean; | ||
draft?: boolean | undefined; | ||
} | { | ||
type: "MARKED_AS_DUPLICATE"; | ||
comment: string; | ||
conditionals: ({ | ||
@@ -196,7 +193,5 @@ type: "SHOW"; | ||
}[]; | ||
duplicates: string[]; | ||
draft?: boolean | undefined; | ||
} | { | ||
type: "ARCHIVED"; | ||
comment: string; | ||
type: "ARCHIVE"; | ||
conditionals: ({ | ||
@@ -245,3 +240,2 @@ type: "SHOW"; | ||
}[]; | ||
isDuplicate: boolean; | ||
draft?: boolean | undefined; | ||
@@ -431,3 +425,3 @@ } | { | ||
}[]; | ||
onboardingForm: { | ||
onboardingForm: ({ | ||
type: "FORM"; | ||
@@ -437,4 +431,21 @@ id: string; | ||
fields: import("./FieldConfig").Inferred[]; | ||
}[]; | ||
additionalDetailsForm: { | ||
} | { | ||
type: "VERIFICATION"; | ||
id: string; | ||
title: import("./TranslationConfig").TranslationConfig; | ||
actions: { | ||
verify: { | ||
label: import("./TranslationConfig").TranslationConfig; | ||
}; | ||
cancel: { | ||
label: import("./TranslationConfig").TranslationConfig; | ||
confirmation: { | ||
title: import("./TranslationConfig").TranslationConfig; | ||
body: import("./TranslationConfig").TranslationConfig; | ||
}; | ||
}; | ||
}; | ||
fields: import("./FieldConfig").Inferred[]; | ||
})[]; | ||
additionalDetailsForm: ({ | ||
type: "FORM"; | ||
@@ -444,3 +455,20 @@ id: string; | ||
fields: import("./FieldConfig").Inferred[]; | ||
}[]; | ||
} | { | ||
type: "VERIFICATION"; | ||
id: string; | ||
title: import("./TranslationConfig").TranslationConfig; | ||
actions: { | ||
verify: { | ||
label: import("./TranslationConfig").TranslationConfig; | ||
}; | ||
cancel: { | ||
label: import("./TranslationConfig").TranslationConfig; | ||
confirmation: { | ||
title: import("./TranslationConfig").TranslationConfig; | ||
body: import("./TranslationConfig").TranslationConfig; | ||
}; | ||
}; | ||
}; | ||
fields: import("./FieldConfig").Inferred[]; | ||
})[]; | ||
draft?: boolean | undefined; | ||
@@ -447,0 +475,0 @@ } | { |
@@ -41,2 +41,3 @@ import { z } from 'zod'; | ||
country: z.ZodString; | ||
addressType: z.ZodLiteral<"DOMESTIC">; | ||
province: z.ZodString; | ||
@@ -54,2 +55,3 @@ district: z.ZodString; | ||
district: string; | ||
addressType: "DOMESTIC"; | ||
province: string; | ||
@@ -65,2 +67,3 @@ urbanOrRural: "URBAN"; | ||
district: string; | ||
addressType: "DOMESTIC"; | ||
province: string; | ||
@@ -75,2 +78,3 @@ urbanOrRural: "URBAN"; | ||
country: z.ZodString; | ||
addressType: z.ZodLiteral<"DOMESTIC">; | ||
province: z.ZodString; | ||
@@ -84,2 +88,3 @@ district: z.ZodString; | ||
district: string; | ||
addressType: "DOMESTIC"; | ||
province: string; | ||
@@ -91,5 +96,36 @@ urbanOrRural: "RURAL"; | ||
district: string; | ||
addressType: "DOMESTIC"; | ||
province: string; | ||
urbanOrRural: "RURAL"; | ||
village?: string | null | undefined; | ||
}>, z.ZodUndefined, z.ZodObject<{ | ||
country: z.ZodString; | ||
addressType: z.ZodLiteral<"INTERNATIONAL">; | ||
state: z.ZodString; | ||
district2: z.ZodString; | ||
cityOrTown: z.ZodOptional<z.ZodNullable<z.ZodString>>; | ||
addressLine1: z.ZodOptional<z.ZodNullable<z.ZodString>>; | ||
addressLine2: z.ZodOptional<z.ZodNullable<z.ZodString>>; | ||
addressLine3: z.ZodOptional<z.ZodNullable<z.ZodString>>; | ||
postcodeOrZip: z.ZodOptional<z.ZodNullable<z.ZodString>>; | ||
}, "strip", z.ZodTypeAny, { | ||
country: string; | ||
state: string; | ||
addressType: "INTERNATIONAL"; | ||
district2: string; | ||
cityOrTown?: string | null | undefined; | ||
addressLine1?: string | null | undefined; | ||
addressLine2?: string | null | undefined; | ||
addressLine3?: string | null | undefined; | ||
postcodeOrZip?: string | null | undefined; | ||
}, { | ||
country: string; | ||
state: string; | ||
addressType: "INTERNATIONAL"; | ||
district2: string; | ||
cityOrTown?: string | null | undefined; | ||
addressLine1?: string | null | undefined; | ||
addressLine2?: string | null | undefined; | ||
addressLine3?: string | null | undefined; | ||
postcodeOrZip?: string | null | undefined; | ||
}>]>>; | ||
@@ -125,2 +161,3 @@ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{ | ||
country: z.ZodString; | ||
addressType: z.ZodLiteral<"DOMESTIC">; | ||
province: z.ZodString; | ||
@@ -138,2 +175,3 @@ district: z.ZodString; | ||
district: string; | ||
addressType: "DOMESTIC"; | ||
province: string; | ||
@@ -149,2 +187,3 @@ urbanOrRural: "URBAN"; | ||
district: string; | ||
addressType: "DOMESTIC"; | ||
province: string; | ||
@@ -159,2 +198,3 @@ urbanOrRural: "URBAN"; | ||
country: z.ZodString; | ||
addressType: z.ZodLiteral<"DOMESTIC">; | ||
province: z.ZodString; | ||
@@ -168,2 +208,3 @@ district: z.ZodString; | ||
district: string; | ||
addressType: "DOMESTIC"; | ||
province: string; | ||
@@ -175,5 +216,36 @@ urbanOrRural: "RURAL"; | ||
district: string; | ||
addressType: "DOMESTIC"; | ||
province: string; | ||
urbanOrRural: "RURAL"; | ||
village?: string | null | undefined; | ||
}>, z.ZodUndefined, z.ZodObject<{ | ||
country: z.ZodString; | ||
addressType: z.ZodLiteral<"INTERNATIONAL">; | ||
state: z.ZodString; | ||
district2: z.ZodString; | ||
cityOrTown: z.ZodOptional<z.ZodNullable<z.ZodString>>; | ||
addressLine1: z.ZodOptional<z.ZodNullable<z.ZodString>>; | ||
addressLine2: z.ZodOptional<z.ZodNullable<z.ZodString>>; | ||
addressLine3: z.ZodOptional<z.ZodNullable<z.ZodString>>; | ||
postcodeOrZip: z.ZodOptional<z.ZodNullable<z.ZodString>>; | ||
}, "strip", z.ZodTypeAny, { | ||
country: string; | ||
state: string; | ||
addressType: "INTERNATIONAL"; | ||
district2: string; | ||
cityOrTown?: string | null | undefined; | ||
addressLine1?: string | null | undefined; | ||
addressLine2?: string | null | undefined; | ||
addressLine3?: string | null | undefined; | ||
postcodeOrZip?: string | null | undefined; | ||
}, { | ||
country: string; | ||
state: string; | ||
addressType: "INTERNATIONAL"; | ||
district2: string; | ||
cityOrTown?: string | null | undefined; | ||
addressLine1?: string | null | undefined; | ||
addressLine2?: string | null | undefined; | ||
addressLine3?: string | null | undefined; | ||
postcodeOrZip?: string | null | undefined; | ||
}>]>>>; | ||
@@ -192,2 +264,3 @@ createdAtLocation: z.ZodString; | ||
district: string; | ||
addressType: "DOMESTIC"; | ||
province: string; | ||
@@ -203,2 +276,3 @@ urbanOrRural: "URBAN"; | ||
district: string; | ||
addressType: "DOMESTIC"; | ||
province: string; | ||
@@ -208,2 +282,12 @@ urbanOrRural: "RURAL"; | ||
} | { | ||
country: string; | ||
state: string; | ||
addressType: "INTERNATIONAL"; | ||
district2: string; | ||
cityOrTown?: string | null | undefined; | ||
addressLine1?: string | null | undefined; | ||
addressLine2?: string | null | undefined; | ||
addressLine3?: string | null | undefined; | ||
postcodeOrZip?: string | null | undefined; | ||
} | { | ||
type: string; | ||
@@ -213,3 +297,3 @@ option: string; | ||
originalFilename: string; | ||
}[]>; | ||
}[] | undefined>; | ||
createdAt: string; | ||
@@ -225,2 +309,3 @@ createdBy: string; | ||
district: string; | ||
addressType: "DOMESTIC"; | ||
province: string; | ||
@@ -236,2 +321,3 @@ urbanOrRural: "URBAN"; | ||
district: string; | ||
addressType: "DOMESTIC"; | ||
province: string; | ||
@@ -241,2 +327,12 @@ urbanOrRural: "RURAL"; | ||
} | { | ||
country: string; | ||
state: string; | ||
addressType: "INTERNATIONAL"; | ||
district2: string; | ||
cityOrTown?: string | null | undefined; | ||
addressLine1?: string | null | undefined; | ||
addressLine2?: string | null | undefined; | ||
addressLine3?: string | null | undefined; | ||
postcodeOrZip?: string | null | undefined; | ||
} | { | ||
type: string; | ||
@@ -246,3 +342,3 @@ option: string; | ||
originalFilename: string; | ||
}[]> | undefined; | ||
}[] | undefined> | undefined; | ||
}, { | ||
@@ -257,2 +353,3 @@ type: ActionType; | ||
district: string; | ||
addressType: "DOMESTIC"; | ||
province: string; | ||
@@ -268,2 +365,3 @@ urbanOrRural: "URBAN"; | ||
district: string; | ||
addressType: "DOMESTIC"; | ||
province: string; | ||
@@ -273,2 +371,12 @@ urbanOrRural: "RURAL"; | ||
} | { | ||
country: string; | ||
state: string; | ||
addressType: "INTERNATIONAL"; | ||
district2: string; | ||
cityOrTown?: string | null | undefined; | ||
addressLine1?: string | null | undefined; | ||
addressLine2?: string | null | undefined; | ||
addressLine3?: string | null | undefined; | ||
postcodeOrZip?: string | null | undefined; | ||
} | { | ||
type: string; | ||
@@ -278,3 +386,3 @@ option: string; | ||
originalFilename: string; | ||
}[]>; | ||
}[] | undefined>; | ||
createdAt: string; | ||
@@ -290,2 +398,3 @@ createdBy: string; | ||
district: string; | ||
addressType: "DOMESTIC"; | ||
province: string; | ||
@@ -301,2 +410,3 @@ urbanOrRural: "URBAN"; | ||
district: string; | ||
addressType: "DOMESTIC"; | ||
province: string; | ||
@@ -306,2 +416,12 @@ urbanOrRural: "RURAL"; | ||
} | { | ||
country: string; | ||
state: string; | ||
addressType: "INTERNATIONAL"; | ||
district2: string; | ||
cityOrTown?: string | null | undefined; | ||
addressLine1?: string | null | undefined; | ||
addressLine2?: string | null | undefined; | ||
addressLine3?: string | null | undefined; | ||
postcodeOrZip?: string | null | undefined; | ||
} | { | ||
type: string; | ||
@@ -311,3 +431,3 @@ option: string; | ||
originalFilename: string; | ||
}[]> | undefined; | ||
}[] | undefined> | undefined; | ||
}>; | ||
@@ -328,2 +448,3 @@ }, "strip", z.ZodTypeAny, { | ||
district: string; | ||
addressType: "DOMESTIC"; | ||
province: string; | ||
@@ -339,2 +460,3 @@ urbanOrRural: "URBAN"; | ||
district: string; | ||
addressType: "DOMESTIC"; | ||
province: string; | ||
@@ -344,2 +466,12 @@ urbanOrRural: "RURAL"; | ||
} | { | ||
country: string; | ||
state: string; | ||
addressType: "INTERNATIONAL"; | ||
district2: string; | ||
cityOrTown?: string | null | undefined; | ||
addressLine1?: string | null | undefined; | ||
addressLine2?: string | null | undefined; | ||
addressLine3?: string | null | undefined; | ||
postcodeOrZip?: string | null | undefined; | ||
} | { | ||
type: string; | ||
@@ -349,3 +481,3 @@ option: string; | ||
originalFilename: string; | ||
}[]>; | ||
}[] | undefined>; | ||
createdAt: string; | ||
@@ -361,2 +493,3 @@ createdBy: string; | ||
district: string; | ||
addressType: "DOMESTIC"; | ||
province: string; | ||
@@ -372,2 +505,3 @@ urbanOrRural: "URBAN"; | ||
district: string; | ||
addressType: "DOMESTIC"; | ||
province: string; | ||
@@ -377,2 +511,12 @@ urbanOrRural: "RURAL"; | ||
} | { | ||
country: string; | ||
state: string; | ||
addressType: "INTERNATIONAL"; | ||
district2: string; | ||
cityOrTown?: string | null | undefined; | ||
addressLine1?: string | null | undefined; | ||
addressLine2?: string | null | undefined; | ||
addressLine3?: string | null | undefined; | ||
postcodeOrZip?: string | null | undefined; | ||
} | { | ||
type: string; | ||
@@ -382,3 +526,3 @@ option: string; | ||
originalFilename: string; | ||
}[]> | undefined; | ||
}[] | undefined> | undefined; | ||
}; | ||
@@ -399,2 +543,3 @@ }, { | ||
district: string; | ||
addressType: "DOMESTIC"; | ||
province: string; | ||
@@ -410,2 +555,3 @@ urbanOrRural: "URBAN"; | ||
district: string; | ||
addressType: "DOMESTIC"; | ||
province: string; | ||
@@ -415,2 +561,12 @@ urbanOrRural: "RURAL"; | ||
} | { | ||
country: string; | ||
state: string; | ||
addressType: "INTERNATIONAL"; | ||
district2: string; | ||
cityOrTown?: string | null | undefined; | ||
addressLine1?: string | null | undefined; | ||
addressLine2?: string | null | undefined; | ||
addressLine3?: string | null | undefined; | ||
postcodeOrZip?: string | null | undefined; | ||
} | { | ||
type: string; | ||
@@ -420,3 +576,3 @@ option: string; | ||
originalFilename: string; | ||
}[]>; | ||
}[] | undefined>; | ||
createdAt: string; | ||
@@ -432,2 +588,3 @@ createdBy: string; | ||
district: string; | ||
addressType: "DOMESTIC"; | ||
province: string; | ||
@@ -443,2 +600,3 @@ urbanOrRural: "URBAN"; | ||
district: string; | ||
addressType: "DOMESTIC"; | ||
province: string; | ||
@@ -448,2 +606,12 @@ urbanOrRural: "RURAL"; | ||
} | { | ||
country: string; | ||
state: string; | ||
addressType: "INTERNATIONAL"; | ||
district2: string; | ||
cityOrTown?: string | null | undefined; | ||
addressLine1?: string | null | undefined; | ||
addressLine2?: string | null | undefined; | ||
addressLine3?: string | null | undefined; | ||
postcodeOrZip?: string | null | undefined; | ||
} | { | ||
type: string; | ||
@@ -453,3 +621,3 @@ option: string; | ||
originalFilename: string; | ||
}[]> | undefined; | ||
}[] | undefined> | undefined; | ||
}; | ||
@@ -460,3 +628,2 @@ }>; | ||
transactionId: z.ZodString; | ||
incomplete: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; | ||
data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{ | ||
@@ -491,2 +658,3 @@ filename: z.ZodString; | ||
country: z.ZodString; | ||
addressType: z.ZodLiteral<"DOMESTIC">; | ||
province: z.ZodString; | ||
@@ -504,2 +672,3 @@ district: z.ZodString; | ||
district: string; | ||
addressType: "DOMESTIC"; | ||
province: string; | ||
@@ -515,2 +684,3 @@ urbanOrRural: "URBAN"; | ||
district: string; | ||
addressType: "DOMESTIC"; | ||
province: string; | ||
@@ -525,2 +695,3 @@ urbanOrRural: "URBAN"; | ||
country: z.ZodString; | ||
addressType: z.ZodLiteral<"DOMESTIC">; | ||
province: z.ZodString; | ||
@@ -534,2 +705,3 @@ district: z.ZodString; | ||
district: string; | ||
addressType: "DOMESTIC"; | ||
province: string; | ||
@@ -541,5 +713,36 @@ urbanOrRural: "RURAL"; | ||
district: string; | ||
addressType: "DOMESTIC"; | ||
province: string; | ||
urbanOrRural: "RURAL"; | ||
village?: string | null | undefined; | ||
}>, z.ZodUndefined, z.ZodObject<{ | ||
country: z.ZodString; | ||
addressType: z.ZodLiteral<"INTERNATIONAL">; | ||
state: z.ZodString; | ||
district2: z.ZodString; | ||
cityOrTown: z.ZodOptional<z.ZodNullable<z.ZodString>>; | ||
addressLine1: z.ZodOptional<z.ZodNullable<z.ZodString>>; | ||
addressLine2: z.ZodOptional<z.ZodNullable<z.ZodString>>; | ||
addressLine3: z.ZodOptional<z.ZodNullable<z.ZodString>>; | ||
postcodeOrZip: z.ZodOptional<z.ZodNullable<z.ZodString>>; | ||
}, "strip", z.ZodTypeAny, { | ||
country: string; | ||
state: string; | ||
addressType: "INTERNATIONAL"; | ||
district2: string; | ||
cityOrTown?: string | null | undefined; | ||
addressLine1?: string | null | undefined; | ||
addressLine2?: string | null | undefined; | ||
addressLine3?: string | null | undefined; | ||
postcodeOrZip?: string | null | undefined; | ||
}, { | ||
country: string; | ||
state: string; | ||
addressType: "INTERNATIONAL"; | ||
district2: string; | ||
cityOrTown?: string | null | undefined; | ||
addressLine1?: string | null | undefined; | ||
addressLine2?: string | null | undefined; | ||
addressLine3?: string | null | undefined; | ||
postcodeOrZip?: string | null | undefined; | ||
}>]>>; | ||
@@ -575,2 +778,3 @@ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{ | ||
country: z.ZodString; | ||
addressType: z.ZodLiteral<"DOMESTIC">; | ||
province: z.ZodString; | ||
@@ -588,2 +792,3 @@ district: z.ZodString; | ||
district: string; | ||
addressType: "DOMESTIC"; | ||
province: string; | ||
@@ -599,2 +804,3 @@ urbanOrRural: "URBAN"; | ||
district: string; | ||
addressType: "DOMESTIC"; | ||
province: string; | ||
@@ -609,2 +815,3 @@ urbanOrRural: "URBAN"; | ||
country: z.ZodString; | ||
addressType: z.ZodLiteral<"DOMESTIC">; | ||
province: z.ZodString; | ||
@@ -618,2 +825,3 @@ district: z.ZodString; | ||
district: string; | ||
addressType: "DOMESTIC"; | ||
province: string; | ||
@@ -625,5 +833,36 @@ urbanOrRural: "RURAL"; | ||
district: string; | ||
addressType: "DOMESTIC"; | ||
province: string; | ||
urbanOrRural: "RURAL"; | ||
village?: string | null | undefined; | ||
}>, z.ZodUndefined, z.ZodObject<{ | ||
country: z.ZodString; | ||
addressType: z.ZodLiteral<"INTERNATIONAL">; | ||
state: z.ZodString; | ||
district2: z.ZodString; | ||
cityOrTown: z.ZodOptional<z.ZodNullable<z.ZodString>>; | ||
addressLine1: z.ZodOptional<z.ZodNullable<z.ZodString>>; | ||
addressLine2: z.ZodOptional<z.ZodNullable<z.ZodString>>; | ||
addressLine3: z.ZodOptional<z.ZodNullable<z.ZodString>>; | ||
postcodeOrZip: z.ZodOptional<z.ZodNullable<z.ZodString>>; | ||
}, "strip", z.ZodTypeAny, { | ||
country: string; | ||
state: string; | ||
addressType: "INTERNATIONAL"; | ||
district2: string; | ||
cityOrTown?: string | null | undefined; | ||
addressLine1?: string | null | undefined; | ||
addressLine2?: string | null | undefined; | ||
addressLine3?: string | null | undefined; | ||
postcodeOrZip?: string | null | undefined; | ||
}, { | ||
country: string; | ||
state: string; | ||
addressType: "INTERNATIONAL"; | ||
district2: string; | ||
cityOrTown?: string | null | undefined; | ||
addressLine1?: string | null | undefined; | ||
addressLine2?: string | null | undefined; | ||
addressLine3?: string | null | undefined; | ||
postcodeOrZip?: string | null | undefined; | ||
}>]>>>; | ||
@@ -641,2 +880,3 @@ }, { | ||
district: string; | ||
addressType: "DOMESTIC"; | ||
province: string; | ||
@@ -652,2 +892,3 @@ urbanOrRural: "URBAN"; | ||
district: string; | ||
addressType: "DOMESTIC"; | ||
province: string; | ||
@@ -657,2 +898,12 @@ urbanOrRural: "RURAL"; | ||
} | { | ||
country: string; | ||
state: string; | ||
addressType: "INTERNATIONAL"; | ||
district2: string; | ||
cityOrTown?: string | null | undefined; | ||
addressLine1?: string | null | undefined; | ||
addressLine2?: string | null | undefined; | ||
addressLine3?: string | null | undefined; | ||
postcodeOrZip?: string | null | undefined; | ||
} | { | ||
type: string; | ||
@@ -662,6 +913,5 @@ option: string; | ||
originalFilename: string; | ||
}[]>; | ||
}[] | undefined>; | ||
eventId: string; | ||
transactionId: string; | ||
incomplete: boolean; | ||
metadata?: Record<string, string | number | boolean | { | ||
@@ -674,2 +924,3 @@ type: string; | ||
district: string; | ||
addressType: "DOMESTIC"; | ||
province: string; | ||
@@ -685,2 +936,3 @@ urbanOrRural: "URBAN"; | ||
district: string; | ||
addressType: "DOMESTIC"; | ||
province: string; | ||
@@ -690,2 +942,12 @@ urbanOrRural: "RURAL"; | ||
} | { | ||
country: string; | ||
state: string; | ||
addressType: "INTERNATIONAL"; | ||
district2: string; | ||
cityOrTown?: string | null | undefined; | ||
addressLine1?: string | null | undefined; | ||
addressLine2?: string | null | undefined; | ||
addressLine3?: string | null | undefined; | ||
postcodeOrZip?: string | null | undefined; | ||
} | { | ||
type: string; | ||
@@ -695,3 +957,3 @@ option: string; | ||
originalFilename: string; | ||
}[]> | undefined; | ||
}[] | undefined> | undefined; | ||
}, { | ||
@@ -706,2 +968,3 @@ type: ActionType; | ||
district: string; | ||
addressType: "DOMESTIC"; | ||
province: string; | ||
@@ -717,2 +980,3 @@ urbanOrRural: "URBAN"; | ||
district: string; | ||
addressType: "DOMESTIC"; | ||
province: string; | ||
@@ -722,2 +986,12 @@ urbanOrRural: "RURAL"; | ||
} | { | ||
country: string; | ||
state: string; | ||
addressType: "INTERNATIONAL"; | ||
district2: string; | ||
cityOrTown?: string | null | undefined; | ||
addressLine1?: string | null | undefined; | ||
addressLine2?: string | null | undefined; | ||
addressLine3?: string | null | undefined; | ||
postcodeOrZip?: string | null | undefined; | ||
} | { | ||
type: string; | ||
@@ -727,3 +1001,3 @@ option: string; | ||
originalFilename: string; | ||
}[]>; | ||
}[] | undefined>; | ||
eventId: string; | ||
@@ -738,2 +1012,3 @@ transactionId: string; | ||
district: string; | ||
addressType: "DOMESTIC"; | ||
province: string; | ||
@@ -749,2 +1024,3 @@ urbanOrRural: "URBAN"; | ||
district: string; | ||
addressType: "DOMESTIC"; | ||
province: string; | ||
@@ -754,2 +1030,12 @@ urbanOrRural: "RURAL"; | ||
} | { | ||
country: string; | ||
state: string; | ||
addressType: "INTERNATIONAL"; | ||
district2: string; | ||
cityOrTown?: string | null | undefined; | ||
addressLine1?: string | null | undefined; | ||
addressLine2?: string | null | undefined; | ||
addressLine3?: string | null | undefined; | ||
postcodeOrZip?: string | null | undefined; | ||
} | { | ||
type: string; | ||
@@ -759,4 +1045,3 @@ option: string; | ||
originalFilename: string; | ||
}[]> | undefined; | ||
incomplete?: boolean | undefined; | ||
}[] | undefined> | undefined; | ||
}>; | ||
@@ -763,0 +1048,0 @@ export type Draft = z.infer<typeof Draft>; |
import { z } from 'zod'; | ||
import { EventConfig } from './EventConfig'; | ||
import { FormConfig, FormConfigInput, FormPage, FormPageInput } from './FormConfig'; | ||
import { FormConfig, FormConfigInput, FormPageConfig, FormPageConfigInput } from './FormConfig'; | ||
export type EventConfigInput = z.input<typeof EventConfig>; | ||
export declare const defineForm: (form: FormConfigInput) => FormConfig; | ||
export declare const defineFormPage: (formPage: FormPageInput) => FormPage; | ||
export declare const defineFormPage: (formPage: FormPageConfigInput) => FormPageConfig; | ||
//# sourceMappingURL=EventConfigInput.d.ts.map |
@@ -28,2 +28,6 @@ export declare const FieldType: { | ||
export type FieldType = (typeof fieldTypes)[number]; | ||
/** | ||
* Composite field types are field types that consist of multiple field values. | ||
*/ | ||
export declare const compositeFieldTypes: ("ADDRESS" | "FILE" | "FILE_WITH_OPTIONS")[]; | ||
//# sourceMappingURL=FieldType.d.ts.map |
import { z } from 'zod'; | ||
import { AddressField, AdministrativeArea, BulletList, Checkbox, Country, DateField, Divider, Facility, EmailField, FieldConfig, File, FileUploadWithOptions, Location, Office, PageHeader, Paragraph, RadioGroup, SelectField, SignatureField, TextAreaField, TextField, NumberField, Data } from './FieldConfig'; | ||
import { AddressField, AdministrativeArea, BulletList, Checkbox, Country, DateField, Divider, Facility, EmailField, FieldConfig, File, FileUploadWithOptions, Location, Office, PageHeader, Paragraph, RadioGroup, SelectField, SignatureField, TextAreaField, TextField, NumberField, DataField } from './FieldConfig'; | ||
import { FieldType } from './FieldType'; | ||
@@ -45,4 +45,5 @@ import { FieldValue, FieldUpdateValueSchema } from './FieldValue'; | ||
originalFilename: string; | ||
}>>> | z.ZodDiscriminatedUnion<"urbanOrRural", [z.ZodObject<z.objectUtil.extendShape<{ | ||
}>>> | z.ZodUnion<[z.ZodDiscriminatedUnion<"urbanOrRural", [z.ZodObject<z.objectUtil.extendShape<{ | ||
country: z.ZodString; | ||
addressType: z.ZodLiteral<"DOMESTIC">; | ||
province: z.ZodString; | ||
@@ -60,2 +61,3 @@ district: z.ZodString; | ||
district: string; | ||
addressType: "DOMESTIC"; | ||
province: string; | ||
@@ -71,2 +73,3 @@ urbanOrRural: "URBAN"; | ||
district: string; | ||
addressType: "DOMESTIC"; | ||
province: string; | ||
@@ -81,2 +84,3 @@ urbanOrRural: "URBAN"; | ||
country: z.ZodString; | ||
addressType: z.ZodLiteral<"DOMESTIC">; | ||
province: z.ZodString; | ||
@@ -90,2 +94,3 @@ district: z.ZodString; | ||
district: string; | ||
addressType: "DOMESTIC"; | ||
province: string; | ||
@@ -97,5 +102,36 @@ urbanOrRural: "RURAL"; | ||
district: string; | ||
addressType: "DOMESTIC"; | ||
province: string; | ||
urbanOrRural: "RURAL"; | ||
village?: string | null | undefined; | ||
}>]>, z.ZodObject<{ | ||
country: z.ZodString; | ||
addressType: z.ZodLiteral<"INTERNATIONAL">; | ||
state: z.ZodString; | ||
district2: z.ZodString; | ||
cityOrTown: z.ZodOptional<z.ZodNullable<z.ZodString>>; | ||
addressLine1: z.ZodOptional<z.ZodNullable<z.ZodString>>; | ||
addressLine2: z.ZodOptional<z.ZodNullable<z.ZodString>>; | ||
addressLine3: z.ZodOptional<z.ZodNullable<z.ZodString>>; | ||
postcodeOrZip: z.ZodOptional<z.ZodNullable<z.ZodString>>; | ||
}, "strip", z.ZodTypeAny, { | ||
country: string; | ||
state: string; | ||
addressType: "INTERNATIONAL"; | ||
district2: string; | ||
cityOrTown?: string | null | undefined; | ||
addressLine1?: string | null | undefined; | ||
addressLine2?: string | null | undefined; | ||
addressLine3?: string | null | undefined; | ||
postcodeOrZip?: string | null | undefined; | ||
}, { | ||
country: string; | ||
state: string; | ||
addressType: "INTERNATIONAL"; | ||
district2: string; | ||
cityOrTown?: string | null | undefined; | ||
addressLine1?: string | null | undefined; | ||
addressLine2?: string | null | undefined; | ||
addressLine3?: string | null | undefined; | ||
postcodeOrZip?: string | null | undefined; | ||
}>]> | z.ZodArray<z.ZodObject<{ | ||
@@ -131,4 +167,5 @@ filename: z.ZodString; | ||
originalFilename: string; | ||
}>, "many">>> | z.ZodBoolean | z.ZodOptional<z.ZodNullable<z.ZodBoolean>> | z.ZodNumber | z.ZodOptional<z.ZodNullable<z.ZodNumber>> | z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"urbanOrRural", [z.ZodObject<z.objectUtil.extendShape<{ | ||
}>, "many">>> | z.ZodBoolean | z.ZodOptional<z.ZodNullable<z.ZodBoolean>> | z.ZodNumber | z.ZodOptional<z.ZodNullable<z.ZodNumber>> | z.ZodUndefined | z.ZodOptional<z.ZodNullable<z.ZodUndefined>> | z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodDiscriminatedUnion<"urbanOrRural", [z.ZodObject<z.objectUtil.extendShape<{ | ||
country: z.ZodString; | ||
addressType: z.ZodLiteral<"DOMESTIC">; | ||
province: z.ZodString; | ||
@@ -146,2 +183,3 @@ district: z.ZodString; | ||
district: string; | ||
addressType: "DOMESTIC"; | ||
province: string; | ||
@@ -157,2 +195,3 @@ urbanOrRural: "URBAN"; | ||
district: string; | ||
addressType: "DOMESTIC"; | ||
province: string; | ||
@@ -167,2 +206,3 @@ urbanOrRural: "URBAN"; | ||
country: z.ZodString; | ||
addressType: z.ZodLiteral<"DOMESTIC">; | ||
province: z.ZodString; | ||
@@ -176,2 +216,3 @@ district: z.ZodString; | ||
district: string; | ||
addressType: "DOMESTIC"; | ||
province: string; | ||
@@ -183,5 +224,36 @@ urbanOrRural: "RURAL"; | ||
district: string; | ||
addressType: "DOMESTIC"; | ||
province: string; | ||
urbanOrRural: "RURAL"; | ||
village?: string | null | undefined; | ||
}>]>, z.ZodObject<{ | ||
country: z.ZodString; | ||
addressType: z.ZodLiteral<"INTERNATIONAL">; | ||
state: z.ZodString; | ||
district2: z.ZodString; | ||
cityOrTown: z.ZodOptional<z.ZodNullable<z.ZodString>>; | ||
addressLine1: z.ZodOptional<z.ZodNullable<z.ZodString>>; | ||
addressLine2: z.ZodOptional<z.ZodNullable<z.ZodString>>; | ||
addressLine3: z.ZodOptional<z.ZodNullable<z.ZodString>>; | ||
postcodeOrZip: z.ZodOptional<z.ZodNullable<z.ZodString>>; | ||
}, "strip", z.ZodTypeAny, { | ||
country: string; | ||
state: string; | ||
addressType: "INTERNATIONAL"; | ||
district2: string; | ||
cityOrTown?: string | null | undefined; | ||
addressLine1?: string | null | undefined; | ||
addressLine2?: string | null | undefined; | ||
addressLine3?: string | null | undefined; | ||
postcodeOrZip?: string | null | undefined; | ||
}, { | ||
country: string; | ||
state: string; | ||
addressType: "INTERNATIONAL"; | ||
district2: string; | ||
cityOrTown?: string | null | undefined; | ||
addressLine1?: string | null | undefined; | ||
addressLine2?: string | null | undefined; | ||
addressLine3?: string | null | undefined; | ||
postcodeOrZip?: string | null | undefined; | ||
}>]>>>; | ||
@@ -196,2 +268,3 @@ export declare function createValidationSchema(config: FieldConfig[]): z.ZodObject<Record<string, FieldUpdateValueSchema | NullishFieldValueSchema>, "strip", z.ZodTypeAny, { | ||
district: string; | ||
addressType: "DOMESTIC"; | ||
province: string; | ||
@@ -207,2 +280,3 @@ urbanOrRural: "URBAN"; | ||
district: string; | ||
addressType: "DOMESTIC"; | ||
province: string; | ||
@@ -212,2 +286,12 @@ urbanOrRural: "RURAL"; | ||
} | { | ||
country: string; | ||
state: string; | ||
addressType: "INTERNATIONAL"; | ||
district2: string; | ||
cityOrTown?: string | null | undefined; | ||
addressLine1?: string | null | undefined; | ||
addressLine2?: string | null | undefined; | ||
addressLine3?: string | null | undefined; | ||
postcodeOrZip?: string | null | undefined; | ||
} | { | ||
type: string; | ||
@@ -226,2 +310,3 @@ option: string; | ||
district: string; | ||
addressType: "DOMESTIC"; | ||
province: string; | ||
@@ -237,2 +322,3 @@ urbanOrRural: "URBAN"; | ||
district: string; | ||
addressType: "DOMESTIC"; | ||
province: string; | ||
@@ -242,2 +328,12 @@ urbanOrRural: "RURAL"; | ||
} | { | ||
country: string; | ||
state: string; | ||
addressType: "INTERNATIONAL"; | ||
district2: string; | ||
cityOrTown?: string | null | undefined; | ||
addressLine1?: string | null | undefined; | ||
addressLine2?: string | null | undefined; | ||
addressLine3?: string | null | undefined; | ||
postcodeOrZip?: string | null | undefined; | ||
} | { | ||
type: string; | ||
@@ -254,2 +350,3 @@ option: string; | ||
country: string; | ||
addressType: "DOMESTIC"; | ||
province: string; | ||
@@ -271,2 +368,3 @@ district: string; | ||
country?: undefined; | ||
addressType?: undefined; | ||
province?: undefined; | ||
@@ -282,2 +380,3 @@ district?: undefined; | ||
country?: undefined; | ||
addressType?: undefined; | ||
province?: undefined; | ||
@@ -295,2 +394,34 @@ district?: undefined; | ||
} | null; | ||
/** | ||
* Maps complex or nested field types, such as Address fields, to their corresponding empty values. | ||
*/ | ||
export declare function mapFieldTypeToEmptyValue(field: FieldConfig): never[] | { | ||
country: null; | ||
addressType: "DOMESTIC"; | ||
province: null; | ||
district: null; | ||
urbanOrRural: string; | ||
town: null; | ||
residentialArea: null; | ||
street: null; | ||
number: null; | ||
zipCode: null; | ||
filename?: undefined; | ||
originalFilename?: undefined; | ||
type?: undefined; | ||
} | { | ||
filename: string; | ||
originalFilename: string; | ||
type: string; | ||
country?: undefined; | ||
addressType?: undefined; | ||
province?: undefined; | ||
district?: undefined; | ||
urbanOrRural?: undefined; | ||
town?: undefined; | ||
residentialArea?: undefined; | ||
street?: undefined; | ||
number?: undefined; | ||
zipCode?: undefined; | ||
} | null; | ||
export declare const isParagraphFieldType: (field: { | ||
@@ -447,6 +578,6 @@ config: FieldConfig; | ||
}) => field is { | ||
value: any; | ||
config: Data; | ||
value: undefined; | ||
config: DataField; | ||
}; | ||
export {}; | ||
//# sourceMappingURL=FieldTypeMapping.d.ts.map |
@@ -23,2 +23,4 @@ import { z } from 'zod'; | ||
export type NumberFieldValue = z.infer<typeof NumberFieldValue>; | ||
export declare const DataFieldValue: z.ZodUndefined; | ||
export type DataFieldValue = z.infer<typeof DataFieldValue>; | ||
export declare const FieldValue: z.ZodUnion<[z.ZodString, z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodObject<{ | ||
@@ -53,2 +55,3 @@ filename: z.ZodString; | ||
country: z.ZodString; | ||
addressType: z.ZodLiteral<"DOMESTIC">; | ||
province: z.ZodString; | ||
@@ -66,2 +69,3 @@ district: z.ZodString; | ||
district: string; | ||
addressType: "DOMESTIC"; | ||
province: string; | ||
@@ -77,2 +81,3 @@ urbanOrRural: "URBAN"; | ||
district: string; | ||
addressType: "DOMESTIC"; | ||
province: string; | ||
@@ -87,2 +92,3 @@ urbanOrRural: "URBAN"; | ||
country: z.ZodString; | ||
addressType: z.ZodLiteral<"DOMESTIC">; | ||
province: z.ZodString; | ||
@@ -96,2 +102,3 @@ district: z.ZodString; | ||
district: string; | ||
addressType: "DOMESTIC"; | ||
province: string; | ||
@@ -103,5 +110,36 @@ urbanOrRural: "RURAL"; | ||
district: string; | ||
addressType: "DOMESTIC"; | ||
province: string; | ||
urbanOrRural: "RURAL"; | ||
village?: string | undefined; | ||
}>, z.ZodUndefined, z.ZodObject<{ | ||
country: z.ZodString; | ||
addressType: z.ZodLiteral<"INTERNATIONAL">; | ||
state: z.ZodString; | ||
district2: z.ZodString; | ||
cityOrTown: z.ZodOptional<z.ZodString>; | ||
addressLine1: z.ZodOptional<z.ZodString>; | ||
addressLine2: z.ZodOptional<z.ZodString>; | ||
addressLine3: z.ZodOptional<z.ZodString>; | ||
postcodeOrZip: z.ZodOptional<z.ZodString>; | ||
}, "strip", z.ZodTypeAny, { | ||
country: string; | ||
state: string; | ||
addressType: "INTERNATIONAL"; | ||
district2: string; | ||
cityOrTown?: string | undefined; | ||
addressLine1?: string | undefined; | ||
addressLine2?: string | undefined; | ||
addressLine3?: string | undefined; | ||
postcodeOrZip?: string | undefined; | ||
}, { | ||
country: string; | ||
state: string; | ||
addressType: "INTERNATIONAL"; | ||
district2: string; | ||
cityOrTown?: string | undefined; | ||
addressLine1?: string | undefined; | ||
addressLine2?: string | undefined; | ||
addressLine3?: string | undefined; | ||
postcodeOrZip?: string | undefined; | ||
}>]>; | ||
@@ -138,2 +176,3 @@ export type FieldValue = z.infer<typeof FieldValue>; | ||
country: z.ZodString; | ||
addressType: z.ZodLiteral<"DOMESTIC">; | ||
province: z.ZodString; | ||
@@ -151,2 +190,3 @@ district: z.ZodString; | ||
district: string; | ||
addressType: "DOMESTIC"; | ||
province: string; | ||
@@ -162,2 +202,3 @@ urbanOrRural: "URBAN"; | ||
district: string; | ||
addressType: "DOMESTIC"; | ||
province: string; | ||
@@ -172,2 +213,3 @@ urbanOrRural: "URBAN"; | ||
country: z.ZodString; | ||
addressType: z.ZodLiteral<"DOMESTIC">; | ||
province: z.ZodString; | ||
@@ -181,2 +223,3 @@ district: z.ZodString; | ||
district: string; | ||
addressType: "DOMESTIC"; | ||
province: string; | ||
@@ -188,5 +231,36 @@ urbanOrRural: "RURAL"; | ||
district: string; | ||
addressType: "DOMESTIC"; | ||
province: string; | ||
urbanOrRural: "RURAL"; | ||
village?: string | null | undefined; | ||
}>, z.ZodUndefined, z.ZodObject<{ | ||
country: z.ZodString; | ||
addressType: z.ZodLiteral<"INTERNATIONAL">; | ||
state: z.ZodString; | ||
district2: z.ZodString; | ||
cityOrTown: z.ZodOptional<z.ZodNullable<z.ZodString>>; | ||
addressLine1: z.ZodOptional<z.ZodNullable<z.ZodString>>; | ||
addressLine2: z.ZodOptional<z.ZodNullable<z.ZodString>>; | ||
addressLine3: z.ZodOptional<z.ZodNullable<z.ZodString>>; | ||
postcodeOrZip: z.ZodOptional<z.ZodNullable<z.ZodString>>; | ||
}, "strip", z.ZodTypeAny, { | ||
country: string; | ||
state: string; | ||
addressType: "INTERNATIONAL"; | ||
district2: string; | ||
cityOrTown?: string | null | undefined; | ||
addressLine1?: string | null | undefined; | ||
addressLine2?: string | null | undefined; | ||
addressLine3?: string | null | undefined; | ||
postcodeOrZip?: string | null | undefined; | ||
}, { | ||
country: string; | ||
state: string; | ||
addressType: "INTERNATIONAL"; | ||
district2: string; | ||
cityOrTown?: string | null | undefined; | ||
addressLine1?: string | null | undefined; | ||
addressLine2?: string | null | undefined; | ||
addressLine3?: string | null | undefined; | ||
postcodeOrZip?: string | null | undefined; | ||
}>]>; | ||
@@ -197,3 +271,3 @@ export type FieldUpdateValue = z.infer<typeof FieldUpdateValue>; | ||
* */ | ||
export type FieldValueSchema = typeof FileFieldValue | typeof FileFieldWithOptionValue | typeof CheckboxFieldValue | typeof AddressFieldValue | typeof NumberFieldValue | z.ZodString | z.ZodBoolean; | ||
export type FieldValueSchema = typeof FileFieldValue | typeof FileFieldWithOptionValue | typeof CheckboxFieldValue | typeof AddressFieldValue | typeof NumberFieldValue | typeof DataFieldValue | z.ZodString | z.ZodBoolean; | ||
/** | ||
@@ -204,3 +278,3 @@ * NOTE: This is an exception. We need schema as a type in order to generate schema dynamically. | ||
* */ | ||
export type FieldUpdateValueSchema = typeof FileFieldValue | typeof FileFieldWithOptionValue | typeof CheckboxFieldValue | typeof AddressFieldUpdateValue | typeof NumberFieldValue | z.ZodString | z.ZodBoolean; | ||
export type FieldUpdateValueSchema = typeof FileFieldValue | typeof FileFieldWithOptionValue | typeof CheckboxFieldValue | typeof AddressFieldUpdateValue | typeof NumberFieldValue | typeof DataFieldValue | z.ZodString | z.ZodBoolean; | ||
//# sourceMappingURL=FieldValue.d.ts.map |
import { z } from 'zod'; | ||
import { TranslationConfig } from './TranslationConfig'; | ||
export declare enum PageType { | ||
FORM = "FORM", | ||
VERIFICATION = "VERIFICATION" | ||
} | ||
export declare const PageBase: z.ZodObject<{ | ||
export declare const FormPageType: { | ||
readonly FORM: "FORM"; | ||
readonly VERIFICATION: "VERIFICATION"; | ||
}; | ||
export declare const FormPage: z.ZodObject<{ | ||
id: z.ZodString; | ||
@@ -14,27 +14,5 @@ title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, { | ||
}>; | ||
fields: z.ZodArray<z.ZodType<import("./FieldConfig").Inferred, any, import("./FieldConfig").Inferred>, "many">; | ||
fields: z.ZodArray<z.ZodType<import("./FieldConfig").Inferred, any, import("./FieldConfig").InferredInput>, "many">; | ||
type: z.ZodDefault<z.ZodLiteral<"FORM">>; | ||
}, "strip", z.ZodTypeAny, { | ||
id: string; | ||
title: TranslationConfig; | ||
fields: import("./FieldConfig").Inferred[]; | ||
}, { | ||
id: string; | ||
title: { | ||
id: string; | ||
description: string; | ||
defaultMessage: string; | ||
}; | ||
fields: import("./FieldConfig").Inferred[]; | ||
}>; | ||
export declare const FormPage: z.ZodObject<z.objectUtil.extendShape<{ | ||
id: z.ZodString; | ||
title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, { | ||
id: string; | ||
description: string; | ||
defaultMessage: string; | ||
}>; | ||
fields: z.ZodArray<z.ZodType<import("./FieldConfig").Inferred, any, import("./FieldConfig").Inferred>, "many">; | ||
}, { | ||
type: z.ZodDefault<z.ZodLiteral<"FORM">>; | ||
}>, "strip", z.ZodTypeAny, { | ||
type: "FORM"; | ||
@@ -51,18 +29,29 @@ id: string; | ||
}; | ||
fields: import("./FieldConfig").Inferred[]; | ||
fields: import("./FieldConfig").InferredInput[]; | ||
type?: "FORM" | undefined; | ||
}>; | ||
export declare const VerificationPage: z.ZodObject<z.objectUtil.extendShape<{ | ||
id: z.ZodString; | ||
title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, { | ||
id: string; | ||
description: string; | ||
defaultMessage: string; | ||
export declare const VerificationPageConfig: z.ZodObject<{ | ||
verify: z.ZodObject<{ | ||
label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, { | ||
id: string; | ||
description: string; | ||
defaultMessage: string; | ||
}>; | ||
}, "strip", z.ZodTypeAny, { | ||
label: TranslationConfig; | ||
}, { | ||
label: { | ||
id: string; | ||
description: string; | ||
defaultMessage: string; | ||
}; | ||
}>; | ||
fields: z.ZodArray<z.ZodType<import("./FieldConfig").Inferred, any, import("./FieldConfig").Inferred>, "many">; | ||
}, { | ||
type: z.ZodLiteral<"VERIFICATION">; | ||
actions: z.ZodObject<{ | ||
verify: z.ZodObject<{ | ||
label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, { | ||
cancel: z.ZodObject<{ | ||
label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, { | ||
id: string; | ||
description: string; | ||
defaultMessage: string; | ||
}>; | ||
confirmation: z.ZodObject<{ | ||
title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, { | ||
id: string; | ||
@@ -72,51 +61,17 @@ description: string; | ||
}>; | ||
}, "strip", z.ZodTypeAny, { | ||
label: TranslationConfig; | ||
}, { | ||
label: { | ||
body: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, { | ||
id: string; | ||
description: string; | ||
defaultMessage: string; | ||
}; | ||
}>; | ||
cancel: z.ZodObject<{ | ||
label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, { | ||
}>; | ||
}, "strip", z.ZodTypeAny, { | ||
title: TranslationConfig; | ||
body: TranslationConfig; | ||
}, { | ||
title: { | ||
id: string; | ||
description: string; | ||
defaultMessage: string; | ||
}>; | ||
confirmation: z.ZodObject<{ | ||
title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, { | ||
id: string; | ||
description: string; | ||
defaultMessage: string; | ||
}>; | ||
body: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, { | ||
id: string; | ||
description: string; | ||
defaultMessage: string; | ||
}>; | ||
}, "strip", z.ZodTypeAny, { | ||
title: TranslationConfig; | ||
body: TranslationConfig; | ||
}, { | ||
title: { | ||
id: string; | ||
description: string; | ||
defaultMessage: string; | ||
}; | ||
body: { | ||
id: string; | ||
description: string; | ||
defaultMessage: string; | ||
}; | ||
}>; | ||
}, "strip", z.ZodTypeAny, { | ||
label: TranslationConfig; | ||
confirmation: { | ||
title: TranslationConfig; | ||
body: TranslationConfig; | ||
}; | ||
}, { | ||
label: { | ||
body: { | ||
id: string; | ||
@@ -126,29 +81,17 @@ description: string; | ||
}; | ||
confirmation: { | ||
title: { | ||
id: string; | ||
description: string; | ||
defaultMessage: string; | ||
}; | ||
body: { | ||
id: string; | ||
description: string; | ||
defaultMessage: string; | ||
}; | ||
}; | ||
}>; | ||
}, "strip", z.ZodTypeAny, { | ||
verify: { | ||
label: TranslationConfig; | ||
label: TranslationConfig; | ||
confirmation: { | ||
title: TranslationConfig; | ||
body: TranslationConfig; | ||
}; | ||
cancel: { | ||
label: TranslationConfig; | ||
confirmation: { | ||
title: TranslationConfig; | ||
body: TranslationConfig; | ||
}; | ||
}, { | ||
label: { | ||
id: string; | ||
description: string; | ||
defaultMessage: string; | ||
}; | ||
}, { | ||
verify: { | ||
label: { | ||
confirmation: { | ||
title: { | ||
id: string; | ||
@@ -158,5 +101,3 @@ description: string; | ||
}; | ||
}; | ||
cancel: { | ||
label: { | ||
body: { | ||
id: string; | ||
@@ -166,44 +107,31 @@ description: string; | ||
}; | ||
confirmation: { | ||
title: { | ||
id: string; | ||
description: string; | ||
defaultMessage: string; | ||
}; | ||
body: { | ||
id: string; | ||
description: string; | ||
defaultMessage: string; | ||
}; | ||
}; | ||
}; | ||
}>; | ||
}>, "strip", z.ZodTypeAny, { | ||
type: "VERIFICATION"; | ||
id: string; | ||
title: TranslationConfig; | ||
actions: { | ||
verify: { | ||
label: TranslationConfig; | ||
}, "strip", z.ZodTypeAny, { | ||
verify: { | ||
label: TranslationConfig; | ||
}; | ||
cancel: { | ||
label: TranslationConfig; | ||
confirmation: { | ||
title: TranslationConfig; | ||
body: TranslationConfig; | ||
}; | ||
cancel: { | ||
label: TranslationConfig; | ||
confirmation: { | ||
title: TranslationConfig; | ||
body: TranslationConfig; | ||
}; | ||
}; | ||
}; | ||
fields: import("./FieldConfig").Inferred[]; | ||
}, { | ||
type: "VERIFICATION"; | ||
id: string; | ||
title: { | ||
id: string; | ||
description: string; | ||
defaultMessage: string; | ||
verify: { | ||
label: { | ||
id: string; | ||
description: string; | ||
defaultMessage: string; | ||
}; | ||
}; | ||
actions: { | ||
verify: { | ||
label: { | ||
cancel: { | ||
label: { | ||
id: string; | ||
description: string; | ||
defaultMessage: string; | ||
}; | ||
confirmation: { | ||
title: { | ||
id: string; | ||
@@ -213,5 +141,3 @@ description: string; | ||
}; | ||
}; | ||
cancel: { | ||
label: { | ||
body: { | ||
id: string; | ||
@@ -221,19 +147,6 @@ description: string; | ||
}; | ||
confirmation: { | ||
title: { | ||
id: string; | ||
description: string; | ||
defaultMessage: string; | ||
}; | ||
body: { | ||
id: string; | ||
description: string; | ||
defaultMessage: string; | ||
}; | ||
}; | ||
}; | ||
}; | ||
fields: import("./FieldConfig").Inferred[]; | ||
}>; | ||
export declare const PageConfig: z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{ | ||
export declare const VerificationPage: z.ZodObject<z.objectUtil.extendShape<{ | ||
id: z.ZodString; | ||
@@ -245,28 +158,5 @@ title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, { | ||
}>; | ||
fields: z.ZodArray<z.ZodType<import("./FieldConfig").Inferred, any, import("./FieldConfig").Inferred>, "many">; | ||
}, { | ||
fields: z.ZodArray<z.ZodType<import("./FieldConfig").Inferred, any, import("./FieldConfig").InferredInput>, "many">; | ||
type: z.ZodDefault<z.ZodLiteral<"FORM">>; | ||
}>, "strip", z.ZodTypeAny, { | ||
type: "FORM"; | ||
id: string; | ||
title: TranslationConfig; | ||
fields: import("./FieldConfig").Inferred[]; | ||
}, { | ||
id: string; | ||
title: { | ||
id: string; | ||
description: string; | ||
defaultMessage: string; | ||
}; | ||
fields: import("./FieldConfig").Inferred[]; | ||
type?: "FORM" | undefined; | ||
}>, z.ZodObject<z.objectUtil.extendShape<{ | ||
id: z.ZodString; | ||
title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, { | ||
id: string; | ||
description: string; | ||
defaultMessage: string; | ||
}>; | ||
fields: z.ZodArray<z.ZodType<import("./FieldConfig").Inferred, any, import("./FieldConfig").Inferred>, "many">; | ||
}, { | ||
type: z.ZodLiteral<"VERIFICATION">; | ||
@@ -438,4 +328,9 @@ actions: z.ZodObject<{ | ||
}; | ||
fields: import("./FieldConfig").Inferred[]; | ||
}>]>; | ||
fields: import("./FieldConfig").InferredInput[]; | ||
}>; | ||
export type VerificationPageConfig = z.infer<typeof VerificationPageConfig>; | ||
type AllPageConfigs = typeof FormPage | typeof VerificationPage; | ||
export declare const FormPageConfig: z.ZodDiscriminatedUnion<"type", AllPageConfigs[]>; | ||
export type FormPageConfigInput = z.input<typeof FormPageConfig>; | ||
export type FormPageConfig = z.infer<typeof FormPageConfig>; | ||
export declare const FormConfig: z.ZodObject<{ | ||
@@ -466,203 +361,3 @@ label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, { | ||
active: z.ZodDefault<z.ZodBoolean>; | ||
pages: z.ZodArray<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{ | ||
id: z.ZodString; | ||
title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, { | ||
id: string; | ||
description: string; | ||
defaultMessage: string; | ||
}>; | ||
fields: z.ZodArray<z.ZodType<import("./FieldConfig").Inferred, any, import("./FieldConfig").Inferred>, "many">; | ||
}, { | ||
type: z.ZodDefault<z.ZodLiteral<"FORM">>; | ||
}>, "strip", z.ZodTypeAny, { | ||
type: "FORM"; | ||
id: string; | ||
title: TranslationConfig; | ||
fields: import("./FieldConfig").Inferred[]; | ||
}, { | ||
id: string; | ||
title: { | ||
id: string; | ||
description: string; | ||
defaultMessage: string; | ||
}; | ||
fields: import("./FieldConfig").Inferred[]; | ||
type?: "FORM" | undefined; | ||
}>, z.ZodObject<z.objectUtil.extendShape<{ | ||
id: z.ZodString; | ||
title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, { | ||
id: string; | ||
description: string; | ||
defaultMessage: string; | ||
}>; | ||
fields: z.ZodArray<z.ZodType<import("./FieldConfig").Inferred, any, import("./FieldConfig").Inferred>, "many">; | ||
}, { | ||
type: z.ZodLiteral<"VERIFICATION">; | ||
actions: z.ZodObject<{ | ||
verify: z.ZodObject<{ | ||
label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, { | ||
id: string; | ||
description: string; | ||
defaultMessage: string; | ||
}>; | ||
}, "strip", z.ZodTypeAny, { | ||
label: TranslationConfig; | ||
}, { | ||
label: { | ||
id: string; | ||
description: string; | ||
defaultMessage: string; | ||
}; | ||
}>; | ||
cancel: z.ZodObject<{ | ||
label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, { | ||
id: string; | ||
description: string; | ||
defaultMessage: string; | ||
}>; | ||
confirmation: z.ZodObject<{ | ||
title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, { | ||
id: string; | ||
description: string; | ||
defaultMessage: string; | ||
}>; | ||
body: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, { | ||
id: string; | ||
description: string; | ||
defaultMessage: string; | ||
}>; | ||
}, "strip", z.ZodTypeAny, { | ||
title: TranslationConfig; | ||
body: TranslationConfig; | ||
}, { | ||
title: { | ||
id: string; | ||
description: string; | ||
defaultMessage: string; | ||
}; | ||
body: { | ||
id: string; | ||
description: string; | ||
defaultMessage: string; | ||
}; | ||
}>; | ||
}, "strip", z.ZodTypeAny, { | ||
label: TranslationConfig; | ||
confirmation: { | ||
title: TranslationConfig; | ||
body: TranslationConfig; | ||
}; | ||
}, { | ||
label: { | ||
id: string; | ||
description: string; | ||
defaultMessage: string; | ||
}; | ||
confirmation: { | ||
title: { | ||
id: string; | ||
description: string; | ||
defaultMessage: string; | ||
}; | ||
body: { | ||
id: string; | ||
description: string; | ||
defaultMessage: string; | ||
}; | ||
}; | ||
}>; | ||
}, "strip", z.ZodTypeAny, { | ||
verify: { | ||
label: TranslationConfig; | ||
}; | ||
cancel: { | ||
label: TranslationConfig; | ||
confirmation: { | ||
title: TranslationConfig; | ||
body: TranslationConfig; | ||
}; | ||
}; | ||
}, { | ||
verify: { | ||
label: { | ||
id: string; | ||
description: string; | ||
defaultMessage: string; | ||
}; | ||
}; | ||
cancel: { | ||
label: { | ||
id: string; | ||
description: string; | ||
defaultMessage: string; | ||
}; | ||
confirmation: { | ||
title: { | ||
id: string; | ||
description: string; | ||
defaultMessage: string; | ||
}; | ||
body: { | ||
id: string; | ||
description: string; | ||
defaultMessage: string; | ||
}; | ||
}; | ||
}; | ||
}>; | ||
}>, "strip", z.ZodTypeAny, { | ||
type: "VERIFICATION"; | ||
id: string; | ||
title: TranslationConfig; | ||
actions: { | ||
verify: { | ||
label: TranslationConfig; | ||
}; | ||
cancel: { | ||
label: TranslationConfig; | ||
confirmation: { | ||
title: TranslationConfig; | ||
body: TranslationConfig; | ||
}; | ||
}; | ||
}; | ||
fields: import("./FieldConfig").Inferred[]; | ||
}, { | ||
type: "VERIFICATION"; | ||
id: string; | ||
title: { | ||
id: string; | ||
description: string; | ||
defaultMessage: string; | ||
}; | ||
actions: { | ||
verify: { | ||
label: { | ||
id: string; | ||
description: string; | ||
defaultMessage: string; | ||
}; | ||
}; | ||
cancel: { | ||
label: { | ||
id: string; | ||
description: string; | ||
defaultMessage: string; | ||
}; | ||
confirmation: { | ||
title: { | ||
id: string; | ||
description: string; | ||
defaultMessage: string; | ||
}; | ||
body: { | ||
id: string; | ||
description: string; | ||
defaultMessage: string; | ||
}; | ||
}; | ||
}; | ||
}; | ||
fields: import("./FieldConfig").Inferred[]; | ||
}>]>, "many">; | ||
pages: z.ZodArray<z.ZodDiscriminatedUnion<"type", AllPageConfigs[]>, "many">; | ||
review: z.ZodObject<{ | ||
@@ -674,3 +369,3 @@ title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, { | ||
}>; | ||
fields: z.ZodArray<z.ZodType<import("./FieldConfig").Inferred, any, import("./FieldConfig").Inferred>, "many">; | ||
fields: z.ZodArray<z.ZodType<import("./FieldConfig").Inferred, any, import("./FieldConfig").InferredInput>, "many">; | ||
}, "strip", z.ZodTypeAny, { | ||
@@ -685,3 +380,3 @@ title: TranslationConfig; | ||
}; | ||
fields: import("./FieldConfig").Inferred[]; | ||
fields: import("./FieldConfig").InferredInput[]; | ||
}>; | ||
@@ -743,3 +438,3 @@ }, "strip", z.ZodTypeAny, { | ||
}; | ||
fields: import("./FieldConfig").Inferred[]; | ||
fields: import("./FieldConfig").InferredInput[]; | ||
type?: "FORM" | undefined; | ||
@@ -782,3 +477,3 @@ } | { | ||
}; | ||
fields: import("./FieldConfig").Inferred[]; | ||
fields: import("./FieldConfig").InferredInput[]; | ||
})[]; | ||
@@ -791,11 +486,9 @@ review: { | ||
}; | ||
fields: import("./FieldConfig").Inferred[]; | ||
fields: import("./FieldConfig").InferredInput[]; | ||
}; | ||
active?: boolean | undefined; | ||
}>; | ||
export type FormPage = z.infer<typeof FormPage>; | ||
export type FormPageInput = z.input<typeof FormPage>; | ||
export type FormConfig = z.infer<typeof FormConfig>; | ||
export type FormConfigInput = z.input<typeof FormConfig>; | ||
export type Page = z.infer<typeof PageConfig>; | ||
export {}; | ||
//# sourceMappingURL=FormConfig.d.ts.map |
@@ -31,4 +31,5 @@ export * from './ActionConfig'; | ||
export * from './test.utils'; | ||
export * from './TemplateConfig'; | ||
export * from '../conditionals/conditionals'; | ||
export * from '../conditionals/validate'; | ||
//# sourceMappingURL=index.d.ts.map |
import { ActionDocument } from './ActionDocument'; | ||
import { ArchivedActionInput, DeclareActionInput, RegisterActionInput, RejectDeclarationActionInput, RequestCorrectionActionInput, ValidateActionInput } from './ActionInput'; | ||
import { ArchiveActionInput, DeclareActionInput, RegisterActionInput, RejectDeclarationActionInput, RequestCorrectionActionInput, ValidateActionInput } from './ActionInput'; | ||
import { ActionType } from './ActionType'; | ||
@@ -10,2 +10,3 @@ import { Draft } from './Draft'; | ||
import { FieldValue } from './FieldValue'; | ||
import { TranslationConfig } from './TranslationConfig'; | ||
export declare function generateActionInput(configuration: EventConfig, action: ActionType): import("lodash").Dictionary<string | number | boolean | { | ||
@@ -18,2 +19,3 @@ type: string; | ||
district: string; | ||
addressType: "DOMESTIC"; | ||
province: string; | ||
@@ -29,2 +31,3 @@ urbanOrRural: "URBAN"; | ||
district: string; | ||
addressType: "DOMESTIC"; | ||
province: string; | ||
@@ -34,2 +37,12 @@ urbanOrRural: "RURAL"; | ||
} | { | ||
country: string; | ||
state: string; | ||
addressType: "INTERNATIONAL"; | ||
district2: string; | ||
cityOrTown?: string | undefined; | ||
addressLine1?: string | undefined; | ||
addressLine2?: string | undefined; | ||
addressLine3?: string | undefined; | ||
postcodeOrZip?: string | undefined; | ||
} | { | ||
type: string; | ||
@@ -39,3 +52,4 @@ option: string; | ||
originalFilename: string; | ||
}[]>; | ||
}[] | undefined>; | ||
export declare function generateActionMetadataInput(configuration: EventConfig, action: ActionType): {}; | ||
export declare const eventPayloadGenerator: { | ||
@@ -86,2 +100,3 @@ create: (input?: Partial<EventInput>) => { | ||
district: string; | ||
addressType: "DOMESTIC"; | ||
province: string; | ||
@@ -97,2 +112,3 @@ urbanOrRural: "URBAN"; | ||
district: string; | ||
addressType: "DOMESTIC"; | ||
province: string; | ||
@@ -102,2 +118,12 @@ urbanOrRural: "RURAL"; | ||
} | { | ||
country: string; | ||
state: string; | ||
addressType: "INTERNATIONAL"; | ||
district2: string; | ||
cityOrTown?: string | null | undefined; | ||
addressLine1?: string | null | undefined; | ||
addressLine2?: string | null | undefined; | ||
addressLine3?: string | null | undefined; | ||
postcodeOrZip?: string | null | undefined; | ||
} | { | ||
type: string; | ||
@@ -107,3 +133,3 @@ option: string; | ||
originalFilename: string; | ||
}[]>; | ||
}[] | undefined>; | ||
createdAt: string; | ||
@@ -119,2 +145,3 @@ createdBy: string; | ||
district: string; | ||
addressType: "DOMESTIC"; | ||
province: string; | ||
@@ -130,2 +157,3 @@ urbanOrRural: "URBAN"; | ||
district: string; | ||
addressType: "DOMESTIC"; | ||
province: string; | ||
@@ -135,2 +163,12 @@ urbanOrRural: "RURAL"; | ||
} | { | ||
country: string; | ||
state: string; | ||
addressType: "INTERNATIONAL"; | ||
district2: string; | ||
cityOrTown?: string | null | undefined; | ||
addressLine1?: string | null | undefined; | ||
addressLine2?: string | null | undefined; | ||
addressLine3?: string | null | undefined; | ||
postcodeOrZip?: string | null | undefined; | ||
} | { | ||
type: string; | ||
@@ -140,3 +178,3 @@ option: string; | ||
originalFilename: string; | ||
}[]> | undefined; | ||
}[] | undefined> | undefined; | ||
}; | ||
@@ -155,2 +193,3 @@ }>; | ||
district: string; | ||
addressType: "DOMESTIC"; | ||
province: string; | ||
@@ -166,2 +205,3 @@ urbanOrRural: "URBAN"; | ||
district: string; | ||
addressType: "DOMESTIC"; | ||
province: string; | ||
@@ -171,2 +211,12 @@ urbanOrRural: "RURAL"; | ||
} | { | ||
country: string; | ||
state: string; | ||
addressType: "INTERNATIONAL"; | ||
district2: string; | ||
cityOrTown?: string | null | undefined; | ||
addressLine1?: string | null | undefined; | ||
addressLine2?: string | null | undefined; | ||
addressLine3?: string | null | undefined; | ||
postcodeOrZip?: string | null | undefined; | ||
} | { | ||
type: string; | ||
@@ -176,3 +226,3 @@ option: string; | ||
originalFilename: string; | ||
}[]>; | ||
}[] | undefined>; | ||
eventId: string; | ||
@@ -190,2 +240,3 @@ }; | ||
district: string; | ||
addressType: "DOMESTIC"; | ||
province: string; | ||
@@ -201,2 +252,3 @@ urbanOrRural: "URBAN"; | ||
district: string; | ||
addressType: "DOMESTIC"; | ||
province: string; | ||
@@ -206,2 +258,12 @@ urbanOrRural: "RURAL"; | ||
} | { | ||
country: string; | ||
state: string; | ||
addressType: "INTERNATIONAL"; | ||
district2: string; | ||
cityOrTown?: string | null | undefined; | ||
addressLine1?: string | null | undefined; | ||
addressLine2?: string | null | undefined; | ||
addressLine3?: string | null | undefined; | ||
postcodeOrZip?: string | null | undefined; | ||
} | { | ||
type: string; | ||
@@ -211,8 +273,8 @@ option: string; | ||
originalFilename: string; | ||
}[]>; | ||
}[] | undefined>; | ||
duplicates: never[]; | ||
eventId: string; | ||
}; | ||
archive: (eventId: string, input?: Partial<Pick<ArchivedActionInput, "transactionId" | "data">>, isDuplicate?: boolean) => { | ||
type: "ARCHIVED"; | ||
archive: (eventId: string, input?: Partial<Pick<ArchiveActionInput, "transactionId" | "data">>, isDuplicate?: boolean) => { | ||
type: "ARCHIVE"; | ||
transactionId: string; | ||
@@ -226,2 +288,3 @@ data: Record<string, string | number | boolean | { | ||
district: string; | ||
addressType: "DOMESTIC"; | ||
province: string; | ||
@@ -237,2 +300,3 @@ urbanOrRural: "URBAN"; | ||
district: string; | ||
addressType: "DOMESTIC"; | ||
province: string; | ||
@@ -242,2 +306,12 @@ urbanOrRural: "RURAL"; | ||
} | { | ||
country: string; | ||
state: string; | ||
addressType: "INTERNATIONAL"; | ||
district2: string; | ||
cityOrTown?: string | null | undefined; | ||
addressLine1?: string | null | undefined; | ||
addressLine2?: string | null | undefined; | ||
addressLine3?: string | null | undefined; | ||
postcodeOrZip?: string | null | undefined; | ||
} | { | ||
type: string; | ||
@@ -247,3 +321,3 @@ option: string; | ||
originalFilename: string; | ||
}[]>; | ||
}[] | undefined>; | ||
metadata: { | ||
@@ -265,2 +339,3 @@ isDuplicate: boolean; | ||
district: string; | ||
addressType: "DOMESTIC"; | ||
province: string; | ||
@@ -276,2 +351,3 @@ urbanOrRural: "URBAN"; | ||
district: string; | ||
addressType: "DOMESTIC"; | ||
province: string; | ||
@@ -281,2 +357,12 @@ urbanOrRural: "RURAL"; | ||
} | { | ||
country: string; | ||
state: string; | ||
addressType: "INTERNATIONAL"; | ||
district2: string; | ||
cityOrTown?: string | null | undefined; | ||
addressLine1?: string | null | undefined; | ||
addressLine2?: string | null | undefined; | ||
addressLine3?: string | null | undefined; | ||
postcodeOrZip?: string | null | undefined; | ||
} | { | ||
type: string; | ||
@@ -286,3 +372,3 @@ option: string; | ||
originalFilename: string; | ||
}[]>; | ||
}[] | undefined>; | ||
duplicates: never[]; | ||
@@ -301,2 +387,3 @@ eventId: string; | ||
district: string; | ||
addressType: "DOMESTIC"; | ||
province: string; | ||
@@ -312,2 +399,3 @@ urbanOrRural: "URBAN"; | ||
district: string; | ||
addressType: "DOMESTIC"; | ||
province: string; | ||
@@ -317,2 +405,12 @@ urbanOrRural: "RURAL"; | ||
} | { | ||
country: string; | ||
state: string; | ||
addressType: "INTERNATIONAL"; | ||
district2: string; | ||
cityOrTown?: string | null | undefined; | ||
addressLine1?: string | null | undefined; | ||
addressLine2?: string | null | undefined; | ||
addressLine3?: string | null | undefined; | ||
postcodeOrZip?: string | null | undefined; | ||
} | { | ||
type: string; | ||
@@ -322,6 +420,6 @@ option: string; | ||
originalFilename: string; | ||
}[]>; | ||
}[] | undefined>; | ||
eventId: string; | ||
}; | ||
printCertificate: (eventId: string, input?: Partial<Pick<RegisterActionInput, "transactionId" | "data">>) => { | ||
printCertificate: (eventId: string, input?: Partial<Pick<RegisterActionInput, "transactionId" | "data" | "metadata">>) => { | ||
type: "PRINT_CERTIFICATE"; | ||
@@ -336,2 +434,3 @@ transactionId: string; | ||
district: string; | ||
addressType: "DOMESTIC"; | ||
province: string; | ||
@@ -347,2 +446,3 @@ urbanOrRural: "URBAN"; | ||
district: string; | ||
addressType: "DOMESTIC"; | ||
province: string; | ||
@@ -352,2 +452,12 @@ urbanOrRural: "RURAL"; | ||
} | { | ||
country: string; | ||
state: string; | ||
addressType: "INTERNATIONAL"; | ||
district2: string; | ||
cityOrTown?: string | null | undefined; | ||
addressLine1?: string | null | undefined; | ||
addressLine2?: string | null | undefined; | ||
addressLine3?: string | null | undefined; | ||
postcodeOrZip?: string | null | undefined; | ||
} | { | ||
type: string; | ||
@@ -357,3 +467,4 @@ option: string; | ||
originalFilename: string; | ||
}[]>; | ||
}[] | undefined>; | ||
metadata: {}; | ||
eventId: string; | ||
@@ -372,2 +483,3 @@ }; | ||
district: string; | ||
addressType: "DOMESTIC"; | ||
province: string; | ||
@@ -383,2 +495,3 @@ urbanOrRural: "URBAN"; | ||
district: string; | ||
addressType: "DOMESTIC"; | ||
province: string; | ||
@@ -388,2 +501,12 @@ urbanOrRural: "RURAL"; | ||
} | { | ||
country: string; | ||
state: string; | ||
addressType: "INTERNATIONAL"; | ||
district2: string; | ||
cityOrTown?: string | null | undefined; | ||
addressLine1?: string | null | undefined; | ||
addressLine2?: string | null | undefined; | ||
addressLine3?: string | null | undefined; | ||
postcodeOrZip?: string | null | undefined; | ||
} | { | ||
type: string; | ||
@@ -393,3 +516,3 @@ option: string; | ||
originalFilename: string; | ||
}[]>; | ||
}[] | undefined>; | ||
metadata: {}; | ||
@@ -408,2 +531,3 @@ eventId: string; | ||
district: string; | ||
addressType: "DOMESTIC"; | ||
province: string; | ||
@@ -419,2 +543,3 @@ urbanOrRural: "URBAN"; | ||
district: string; | ||
addressType: "DOMESTIC"; | ||
province: string; | ||
@@ -424,2 +549,12 @@ urbanOrRural: "RURAL"; | ||
} | { | ||
country: string; | ||
state: string; | ||
addressType: "INTERNATIONAL"; | ||
district2: string; | ||
cityOrTown?: string | null | undefined; | ||
addressLine1?: string | null | undefined; | ||
addressLine2?: string | null | undefined; | ||
addressLine3?: string | null | undefined; | ||
postcodeOrZip?: string | null | undefined; | ||
} | { | ||
type: string; | ||
@@ -429,3 +564,3 @@ option: string; | ||
originalFilename: string; | ||
}[]>; | ||
}[] | undefined>; | ||
eventId: string; | ||
@@ -444,2 +579,3 @@ requestId: string; | ||
district: string; | ||
addressType: "DOMESTIC"; | ||
province: string; | ||
@@ -455,2 +591,3 @@ urbanOrRural: "URBAN"; | ||
district: string; | ||
addressType: "DOMESTIC"; | ||
province: string; | ||
@@ -460,2 +597,12 @@ urbanOrRural: "RURAL"; | ||
} | { | ||
country: string; | ||
state: string; | ||
addressType: "INTERNATIONAL"; | ||
district2: string; | ||
cityOrTown?: string | null | undefined; | ||
addressLine1?: string | null | undefined; | ||
addressLine2?: string | null | undefined; | ||
addressLine3?: string | null | undefined; | ||
postcodeOrZip?: string | null | undefined; | ||
} | { | ||
type: string; | ||
@@ -465,3 +612,3 @@ option: string; | ||
originalFilename: string; | ||
}[]>; | ||
}[] | undefined>; | ||
eventId: string; | ||
@@ -484,2 +631,3 @@ requestId: string; | ||
export declare const eventQueryDataGenerator: (overrides?: Partial<EventIndex>) => EventIndex; | ||
export declare const generateTranslationConfig: (message: string) => TranslationConfig; | ||
//# sourceMappingURL=test.utils.d.ts.map |
@@ -10,2 +10,4 @@ import { TranslationConfig } from './TranslationConfig'; | ||
import { FormConfig } from './FormConfig'; | ||
import { Draft } from './Draft'; | ||
import { EventDocument } from './EventDocument'; | ||
/** | ||
@@ -133,2 +135,25 @@ * @returns All the fields in the event configuration input. | ||
export declare const findActiveActionFields: (configuration: EventConfig, action: ActionType) => FieldConfig[] | undefined; | ||
export declare const getActiveActionFormPages: (configuration: EventConfig, action: ActionType) => ({ | ||
type: "FORM"; | ||
id: string; | ||
title: TranslationConfig; | ||
fields: import("./FieldConfig").Inferred[]; | ||
} | { | ||
type: "VERIFICATION"; | ||
id: string; | ||
title: TranslationConfig; | ||
actions: { | ||
verify: { | ||
label: TranslationConfig; | ||
}; | ||
cancel: { | ||
label: TranslationConfig; | ||
confirmation: { | ||
title: TranslationConfig; | ||
body: TranslationConfig; | ||
}; | ||
}; | ||
}; | ||
fields: import("./FieldConfig").Inferred[]; | ||
})[]; | ||
/** | ||
@@ -146,2 +171,3 @@ * Returns all fields for the action type, including review fields, or throws | ||
district: string; | ||
addressType: "DOMESTIC"; | ||
province: string; | ||
@@ -157,2 +183,3 @@ urbanOrRural: "URBAN"; | ||
district: string; | ||
addressType: "DOMESTIC"; | ||
province: string; | ||
@@ -162,2 +189,12 @@ urbanOrRural: "RURAL"; | ||
} | { | ||
country: string; | ||
state: string; | ||
addressType: "INTERNATIONAL"; | ||
district2: string; | ||
cityOrTown?: string | undefined; | ||
addressLine1?: string | undefined; | ||
addressLine2?: string | undefined; | ||
addressLine3?: string | undefined; | ||
postcodeOrZip?: string | undefined; | ||
} | { | ||
type: string; | ||
@@ -167,3 +204,106 @@ option: string; | ||
originalFilename: string; | ||
}[]>; | ||
}[] | undefined>; | ||
export declare function findActiveDrafts(event: EventDocument, drafts: Draft[]): { | ||
id: string; | ||
createdAt: string; | ||
eventId: string; | ||
transactionId: string; | ||
action: { | ||
type: ActionType; | ||
data: Record<string, string | number | boolean | { | ||
type: string; | ||
filename: string; | ||
originalFilename: string; | ||
} | { | ||
country: string; | ||
district: string; | ||
addressType: "DOMESTIC"; | ||
province: string; | ||
urbanOrRural: "URBAN"; | ||
number?: string | null | undefined; | ||
town?: string | null | undefined; | ||
residentialArea?: string | null | undefined; | ||
street?: string | null | undefined; | ||
zipCode?: string | null | undefined; | ||
} | { | ||
country: string; | ||
district: string; | ||
addressType: "DOMESTIC"; | ||
province: string; | ||
urbanOrRural: "RURAL"; | ||
village?: string | null | undefined; | ||
} | { | ||
country: string; | ||
state: string; | ||
addressType: "INTERNATIONAL"; | ||
district2: string; | ||
cityOrTown?: string | null | undefined; | ||
addressLine1?: string | null | undefined; | ||
addressLine2?: string | null | undefined; | ||
addressLine3?: string | null | undefined; | ||
postcodeOrZip?: string | null | undefined; | ||
} | { | ||
type: string; | ||
option: string; | ||
filename: string; | ||
originalFilename: string; | ||
}[] | undefined>; | ||
createdAt: string; | ||
createdBy: string; | ||
createdAtLocation: string; | ||
metadata?: Record<string, string | number | boolean | { | ||
type: string; | ||
filename: string; | ||
originalFilename: string; | ||
} | { | ||
country: string; | ||
district: string; | ||
addressType: "DOMESTIC"; | ||
province: string; | ||
urbanOrRural: "URBAN"; | ||
number?: string | null | undefined; | ||
town?: string | null | undefined; | ||
residentialArea?: string | null | undefined; | ||
street?: string | null | undefined; | ||
zipCode?: string | null | undefined; | ||
} | { | ||
country: string; | ||
district: string; | ||
addressType: "DOMESTIC"; | ||
province: string; | ||
urbanOrRural: "RURAL"; | ||
village?: string | null | undefined; | ||
} | { | ||
country: string; | ||
state: string; | ||
addressType: "INTERNATIONAL"; | ||
district2: string; | ||
cityOrTown?: string | null | undefined; | ||
addressLine1?: string | null | undefined; | ||
addressLine2?: string | null | undefined; | ||
addressLine3?: string | null | undefined; | ||
postcodeOrZip?: string | null | undefined; | ||
} | { | ||
type: string; | ||
option: string; | ||
filename: string; | ||
originalFilename: string; | ||
}[] | undefined> | undefined; | ||
}; | ||
}[]; | ||
export declare function createEmptyDraft(eventId: string, draftId: string, actionType: ActionType): { | ||
id: string; | ||
eventId: string; | ||
createdAt: string; | ||
transactionId: import("../uuid").UUID; | ||
action: { | ||
type: ActionType; | ||
data: {}; | ||
metadata: {}; | ||
createdAt: string; | ||
createdBy: string; | ||
createdAtLocation: string; | ||
}; | ||
}; | ||
export declare function findActiveActionVerificationPageIds(configuration: EventConfig, action: ActionType): string[]; | ||
//# sourceMappingURL=utils.d.ts.map |
@@ -242,4 +242,21 @@ "use strict"; | ||
required: ["$form"] | ||
}), | ||
isValidEnglishName: () => defineConditional({ | ||
type: "object", | ||
properties: { | ||
$form: { | ||
type: "object", | ||
properties: { | ||
[fieldId]: { | ||
type: "string", | ||
pattern: "^[\\p{Script=Latin}0-9'._-]*(\\([\\p{Script=Latin}0-9'._-]+\\))?[\\p{Script=Latin}0-9'._-]*( [\\p{Script=Latin}0-9'._-]*(\\([\\p{Script=Latin}0-9'._-]+\\))?[\\p{Script=Latin}0-9'._-]*)*$", | ||
description: "Name must contain only letters, numbers, and allowed special characters ('._-). No double spaces." | ||
} | ||
}, | ||
required: [fieldId] | ||
} | ||
}, | ||
required: ["$form"] | ||
}) | ||
}; | ||
} |
{ | ||
"name": "@opencrvs/toolkit", | ||
"version": "1.8.0-rc.f2066e1", | ||
"version": "1.8.0-rc.f24c33b", | ||
"description": "OpenCRVS toolkit for building country configurations", | ||
@@ -5,0 +5,0 @@ "license": "MPL-2.0", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
2689900
33.28%57
5.56%68315
26.79%