@opencrvs/toolkit
Advanced tools
Comparing version
@@ -23,3 +23,8 @@ /** | ||
}; | ||
/** | ||
* 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>; |
@@ -25,7 +25,25 @@ import { EventConfigInput } from './EventConfigInput'; | ||
label: import("./TranslationConfig").TranslationConfig; | ||
pages: { | ||
pages: ({ | ||
type: "FORM"; | ||
id: string; | ||
title: import("./TranslationConfig").TranslationConfig; | ||
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[]; | ||
})[]; | ||
review: { | ||
@@ -54,7 +72,25 @@ title: import("./TranslationConfig").TranslationConfig; | ||
label: import("./TranslationConfig").TranslationConfig; | ||
pages: { | ||
pages: ({ | ||
type: "FORM"; | ||
id: string; | ||
title: import("./TranslationConfig").TranslationConfig; | ||
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[]; | ||
})[]; | ||
review: { | ||
@@ -83,7 +119,25 @@ title: import("./TranslationConfig").TranslationConfig; | ||
label: import("./TranslationConfig").TranslationConfig; | ||
pages: { | ||
pages: ({ | ||
type: "FORM"; | ||
id: string; | ||
title: import("./TranslationConfig").TranslationConfig; | ||
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[]; | ||
})[]; | ||
review: { | ||
@@ -112,7 +166,25 @@ title: import("./TranslationConfig").TranslationConfig; | ||
label: import("./TranslationConfig").TranslationConfig; | ||
pages: { | ||
pages: ({ | ||
type: "FORM"; | ||
id: string; | ||
title: import("./TranslationConfig").TranslationConfig; | ||
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[]; | ||
})[]; | ||
review: { | ||
@@ -141,7 +213,25 @@ title: import("./TranslationConfig").TranslationConfig; | ||
label: import("./TranslationConfig").TranslationConfig; | ||
pages: { | ||
pages: ({ | ||
type: "FORM"; | ||
id: string; | ||
title: import("./TranslationConfig").TranslationConfig; | ||
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[]; | ||
})[]; | ||
review: { | ||
@@ -170,7 +260,25 @@ title: import("./TranslationConfig").TranslationConfig; | ||
label: import("./TranslationConfig").TranslationConfig; | ||
pages: { | ||
pages: ({ | ||
type: "FORM"; | ||
id: string; | ||
title: import("./TranslationConfig").TranslationConfig; | ||
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[]; | ||
})[]; | ||
review: { | ||
@@ -199,7 +307,25 @@ title: import("./TranslationConfig").TranslationConfig; | ||
label: import("./TranslationConfig").TranslationConfig; | ||
pages: { | ||
pages: ({ | ||
type: "FORM"; | ||
id: string; | ||
title: import("./TranslationConfig").TranslationConfig; | ||
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[]; | ||
})[]; | ||
review: { | ||
@@ -228,7 +354,25 @@ title: import("./TranslationConfig").TranslationConfig; | ||
label: import("./TranslationConfig").TranslationConfig; | ||
pages: { | ||
pages: ({ | ||
type: "FORM"; | ||
id: string; | ||
title: import("./TranslationConfig").TranslationConfig; | ||
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[]; | ||
})[]; | ||
review: { | ||
@@ -257,7 +401,25 @@ title: import("./TranslationConfig").TranslationConfig; | ||
label: import("./TranslationConfig").TranslationConfig; | ||
pages: { | ||
pages: ({ | ||
type: "FORM"; | ||
id: string; | ||
title: import("./TranslationConfig").TranslationConfig; | ||
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[]; | ||
})[]; | ||
review: { | ||
@@ -268,12 +430,48 @@ title: import("./TranslationConfig").TranslationConfig; | ||
}[]; | ||
onboardingForm: { | ||
onboardingForm: ({ | ||
type: "FORM"; | ||
id: string; | ||
title: import("./TranslationConfig").TranslationConfig; | ||
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"; | ||
id: string; | ||
title: import("./TranslationConfig").TranslationConfig; | ||
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; | ||
@@ -297,7 +495,25 @@ } | { | ||
label: import("./TranslationConfig").TranslationConfig; | ||
pages: { | ||
pages: ({ | ||
type: "FORM"; | ||
id: string; | ||
title: import("./TranslationConfig").TranslationConfig; | ||
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[]; | ||
})[]; | ||
review: { | ||
@@ -326,7 +542,25 @@ title: import("./TranslationConfig").TranslationConfig; | ||
label: import("./TranslationConfig").TranslationConfig; | ||
pages: { | ||
pages: ({ | ||
type: "FORM"; | ||
id: string; | ||
title: import("./TranslationConfig").TranslationConfig; | ||
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[]; | ||
})[]; | ||
review: { | ||
@@ -355,7 +589,25 @@ title: import("./TranslationConfig").TranslationConfig; | ||
label: import("./TranslationConfig").TranslationConfig; | ||
pages: { | ||
pages: ({ | ||
type: "FORM"; | ||
id: string; | ||
title: import("./TranslationConfig").TranslationConfig; | ||
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[]; | ||
})[]; | ||
review: { | ||
@@ -362,0 +614,0 @@ title: import("./TranslationConfig").TranslationConfig; |
@@ -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; | ||
}; | ||
@@ -489,2 +657,3 @@ }>; | ||
country: z.ZodString; | ||
addressType: z.ZodLiteral<"DOMESTIC">; | ||
province: z.ZodString; | ||
@@ -502,2 +671,3 @@ district: z.ZodString; | ||
district: string; | ||
addressType: "DOMESTIC"; | ||
province: string; | ||
@@ -513,2 +683,3 @@ urbanOrRural: "URBAN"; | ||
district: string; | ||
addressType: "DOMESTIC"; | ||
province: string; | ||
@@ -523,2 +694,3 @@ urbanOrRural: "URBAN"; | ||
country: z.ZodString; | ||
addressType: z.ZodLiteral<"DOMESTIC">; | ||
province: z.ZodString; | ||
@@ -532,2 +704,3 @@ district: z.ZodString; | ||
district: string; | ||
addressType: "DOMESTIC"; | ||
province: string; | ||
@@ -539,5 +712,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; | ||
}>]>>; | ||
@@ -573,2 +777,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; | ||
@@ -586,2 +791,3 @@ district: z.ZodString; | ||
district: string; | ||
addressType: "DOMESTIC"; | ||
province: string; | ||
@@ -597,2 +803,3 @@ urbanOrRural: "URBAN"; | ||
district: string; | ||
addressType: "DOMESTIC"; | ||
province: string; | ||
@@ -607,2 +814,3 @@ urbanOrRural: "URBAN"; | ||
country: z.ZodString; | ||
addressType: z.ZodLiteral<"DOMESTIC">; | ||
province: z.ZodString; | ||
@@ -616,2 +824,3 @@ district: z.ZodString; | ||
district: string; | ||
addressType: "DOMESTIC"; | ||
province: string; | ||
@@ -623,5 +832,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; | ||
}>]>>>; | ||
@@ -639,2 +879,3 @@ }, { | ||
district: string; | ||
addressType: "DOMESTIC"; | ||
province: string; | ||
@@ -650,2 +891,3 @@ urbanOrRural: "URBAN"; | ||
district: string; | ||
addressType: "DOMESTIC"; | ||
province: string; | ||
@@ -655,2 +897,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; | ||
@@ -660,3 +912,3 @@ option: string; | ||
originalFilename: string; | ||
}[]>; | ||
}[] | undefined>; | ||
eventId: string; | ||
@@ -671,2 +923,3 @@ transactionId: string; | ||
district: string; | ||
addressType: "DOMESTIC"; | ||
province: string; | ||
@@ -682,2 +935,3 @@ urbanOrRural: "URBAN"; | ||
district: string; | ||
addressType: "DOMESTIC"; | ||
province: string; | ||
@@ -687,2 +941,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; | ||
@@ -692,3 +956,3 @@ option: string; | ||
originalFilename: string; | ||
}[]> | undefined; | ||
}[] | undefined> | undefined; | ||
}, { | ||
@@ -703,2 +967,3 @@ type: ActionType; | ||
district: string; | ||
addressType: "DOMESTIC"; | ||
province: string; | ||
@@ -714,2 +979,3 @@ urbanOrRural: "URBAN"; | ||
district: string; | ||
addressType: "DOMESTIC"; | ||
province: string; | ||
@@ -719,2 +985,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; | ||
@@ -724,3 +1000,3 @@ option: string; | ||
originalFilename: string; | ||
}[]>; | ||
}[] | undefined>; | ||
eventId: string; | ||
@@ -735,2 +1011,3 @@ transactionId: string; | ||
district: string; | ||
addressType: "DOMESTIC"; | ||
province: string; | ||
@@ -746,2 +1023,3 @@ urbanOrRural: "URBAN"; | ||
district: string; | ||
addressType: "DOMESTIC"; | ||
province: string; | ||
@@ -751,2 +1029,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; | ||
@@ -756,3 +1044,3 @@ option: string; | ||
originalFilename: string; | ||
}[]> | undefined; | ||
}[] | undefined> | undefined; | ||
}>; | ||
@@ -759,0 +1047,0 @@ export type Draft = z.infer<typeof Draft>; |
import { z } from 'zod'; | ||
import { EventConfig } from './EventConfig'; | ||
import { FormConfig, FormConfigInput, FormPage } 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: FormPage) => FormPage; | ||
export declare const defineFormPage: (formPage: FormPageConfigInput) => FormPageConfig; | ||
//# sourceMappingURL=EventConfigInput.d.ts.map |
@@ -24,4 +24,5 @@ export declare const FieldType: { | ||
readonly SIGNATURE: "SIGNATURE"; | ||
readonly DATA: "DATA"; | ||
}; | ||
export declare const fieldTypes: ("ADDRESS" | "TEXT" | "NUMBER" | "TEXTAREA" | "EMAIL" | "DATE" | "PARAGRAPH" | "PAGE_HEADER" | "RADIO_GROUP" | "FILE" | "FILE_WITH_OPTIONS" | "HIDDEN" | "BULLET_LIST" | "CHECKBOX" | "SELECT" | "COUNTRY" | "LOCATION" | "DIVIDER" | "ADMINISTRATIVE_AREA" | "FACILITY" | "OFFICE" | "SIGNATURE")[]; | ||
export declare const fieldTypes: ("ADDRESS" | "TEXT" | "NUMBER" | "TEXTAREA" | "EMAIL" | "DATE" | "PARAGRAPH" | "PAGE_HEADER" | "RADIO_GROUP" | "FILE" | "FILE_WITH_OPTIONS" | "HIDDEN" | "BULLET_LIST" | "CHECKBOX" | "SELECT" | "COUNTRY" | "LOCATION" | "DIVIDER" | "ADMINISTRATIVE_AREA" | "FACILITY" | "OFFICE" | "SIGNATURE" | "DATA")[]; | ||
export type FieldType = (typeof fieldTypes)[number]; | ||
@@ -28,0 +29,0 @@ /** |
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 } 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; | ||
@@ -280,2 +378,16 @@ district?: undefined; | ||
zipCode?: undefined; | ||
} | { | ||
country?: undefined; | ||
addressType?: undefined; | ||
province?: undefined; | ||
district?: undefined; | ||
urbanOrRural?: undefined; | ||
town?: undefined; | ||
residentialArea?: undefined; | ||
street?: undefined; | ||
number?: undefined; | ||
zipCode?: undefined; | ||
filename?: undefined; | ||
originalFilename?: undefined; | ||
type?: undefined; | ||
} | null; | ||
@@ -287,2 +399,3 @@ /** | ||
country: null; | ||
addressType: "DOMESTIC"; | ||
province: null; | ||
@@ -304,2 +417,3 @@ district: null; | ||
country?: undefined; | ||
addressType?: undefined; | ||
province?: undefined; | ||
@@ -461,3 +575,10 @@ district?: undefined; | ||
}; | ||
export declare const isDataFieldType: (field: { | ||
config: FieldConfig; | ||
value: FieldValue; | ||
}) => field is { | ||
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 const FormPageType: { | ||
readonly FORM: "FORM"; | ||
readonly VERIFICATION: "VERIFICATION"; | ||
}; | ||
export declare const FormPage: z.ZodObject<{ | ||
@@ -11,3 +15,5 @@ id: z.ZodString; | ||
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; | ||
@@ -24,11 +30,21 @@ title: TranslationConfig; | ||
fields: import("./FieldConfig").InferredInput[]; | ||
type?: "FORM" | undefined; | ||
}>; | ||
export declare const FormConfig: z.ZodObject<{ | ||
label: 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; | ||
}; | ||
}>; | ||
version: z.ZodObject<{ | ||
id: z.ZodString; | ||
cancel: z.ZodObject<{ | ||
label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, { | ||
@@ -39,7 +55,35 @@ id: 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, { | ||
id: string; | ||
label: TranslationConfig; | ||
confirmation: { | ||
title: TranslationConfig; | ||
body: TranslationConfig; | ||
}; | ||
}, { | ||
id: string; | ||
label: { | ||
@@ -50,7 +94,246 @@ id: string; | ||
}; | ||
confirmation: { | ||
title: { | ||
id: string; | ||
description: string; | ||
defaultMessage: string; | ||
}; | ||
body: { | ||
id: string; | ||
description: string; | ||
defaultMessage: string; | ||
}; | ||
}; | ||
}>; | ||
active: z.ZodDefault<z.ZodBoolean>; | ||
pages: z.ZodArray<z.ZodObject<{ | ||
}, "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; | ||
}; | ||
}; | ||
}; | ||
}>; | ||
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; | ||
}>; | ||
fields: z.ZodArray<z.ZodType<import("./FieldConfig").Inferred, any, import("./FieldConfig").InferredInput>, "many">; | ||
type: z.ZodDefault<z.ZodLiteral<"FORM">>; | ||
}, { | ||
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").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<{ | ||
label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, { | ||
id: string; | ||
description: string; | ||
defaultMessage: string; | ||
}>; | ||
version: z.ZodObject<{ | ||
id: z.ZodString; | ||
title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, { | ||
label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, { | ||
id: string; | ||
@@ -60,10 +343,8 @@ description: string; | ||
}>; | ||
fields: z.ZodArray<z.ZodType<import("./FieldConfig").Inferred, any, import("./FieldConfig").InferredInput>, "many">; | ||
}, "strip", z.ZodTypeAny, { | ||
id: string; | ||
title: TranslationConfig; | ||
fields: import("./FieldConfig").Inferred[]; | ||
label: TranslationConfig; | ||
}, { | ||
id: string; | ||
title: { | ||
label: { | ||
id: string; | ||
@@ -73,4 +354,5 @@ description: string; | ||
}; | ||
fields: import("./FieldConfig").InferredInput[]; | ||
}>, "many">; | ||
}>; | ||
active: z.ZodDefault<z.ZodBoolean>; | ||
pages: z.ZodArray<z.ZodDiscriminatedUnion<"type", AllPageConfigs[]>, "many">; | ||
review: z.ZodObject<{ | ||
@@ -101,7 +383,25 @@ title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, { | ||
label: TranslationConfig; | ||
pages: { | ||
pages: ({ | ||
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[]; | ||
})[]; | ||
review: { | ||
@@ -125,3 +425,3 @@ title: TranslationConfig; | ||
}; | ||
pages: { | ||
pages: ({ | ||
id: string; | ||
@@ -134,3 +434,41 @@ title: { | ||
fields: import("./FieldConfig").InferredInput[]; | ||
}[]; | ||
type?: "FORM" | undefined; | ||
} | { | ||
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").InferredInput[]; | ||
})[]; | ||
review: { | ||
@@ -146,5 +484,5 @@ title: { | ||
}>; | ||
export type FormPage = z.infer<typeof FormPage>; | ||
export type FormConfig = z.infer<typeof FormConfig>; | ||
export type FormConfigInput = z.input<typeof FormConfig>; | ||
export {}; | ||
//# sourceMappingURL=FormConfig.d.ts.map |
@@ -18,2 +18,3 @@ import { ActionDocument } from './ActionDocument'; | ||
district: string; | ||
addressType: "DOMESTIC"; | ||
province: string; | ||
@@ -29,2 +30,3 @@ urbanOrRural: "URBAN"; | ||
district: string; | ||
addressType: "DOMESTIC"; | ||
province: string; | ||
@@ -34,2 +36,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 +51,4 @@ option: string; | ||
originalFilename: string; | ||
}[]>; | ||
}[] | undefined>; | ||
export declare function generateActionMetadataInput(configuration: EventConfig, action: ActionType): {}; | ||
export declare const eventPayloadGenerator: { | ||
@@ -86,2 +99,3 @@ create: (input?: Partial<EventInput>) => { | ||
district: string; | ||
addressType: "DOMESTIC"; | ||
province: string; | ||
@@ -97,2 +111,3 @@ urbanOrRural: "URBAN"; | ||
district: string; | ||
addressType: "DOMESTIC"; | ||
province: string; | ||
@@ -102,2 +117,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 +132,3 @@ option: string; | ||
originalFilename: string; | ||
}[]>; | ||
}[] | undefined>; | ||
createdAt: string; | ||
@@ -119,2 +144,3 @@ createdBy: string; | ||
district: string; | ||
addressType: "DOMESTIC"; | ||
province: string; | ||
@@ -130,2 +156,3 @@ urbanOrRural: "URBAN"; | ||
district: string; | ||
addressType: "DOMESTIC"; | ||
province: string; | ||
@@ -135,2 +162,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 +177,3 @@ option: string; | ||
originalFilename: string; | ||
}[]> | undefined; | ||
}[] | undefined> | undefined; | ||
}; | ||
@@ -155,2 +192,3 @@ }>; | ||
district: string; | ||
addressType: "DOMESTIC"; | ||
province: string; | ||
@@ -166,2 +204,3 @@ urbanOrRural: "URBAN"; | ||
district: string; | ||
addressType: "DOMESTIC"; | ||
province: string; | ||
@@ -171,2 +210,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 +225,3 @@ option: string; | ||
originalFilename: string; | ||
}[]>; | ||
}[] | undefined>; | ||
eventId: string; | ||
@@ -190,2 +239,3 @@ }; | ||
district: string; | ||
addressType: "DOMESTIC"; | ||
province: string; | ||
@@ -201,2 +251,3 @@ urbanOrRural: "URBAN"; | ||
district: string; | ||
addressType: "DOMESTIC"; | ||
province: string; | ||
@@ -206,2 +257,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,3 +272,3 @@ option: string; | ||
originalFilename: string; | ||
}[]>; | ||
}[] | undefined>; | ||
duplicates: never[]; | ||
@@ -226,2 +287,3 @@ eventId: string; | ||
district: string; | ||
addressType: "DOMESTIC"; | ||
province: string; | ||
@@ -237,2 +299,3 @@ urbanOrRural: "URBAN"; | ||
district: string; | ||
addressType: "DOMESTIC"; | ||
province: string; | ||
@@ -242,2 +305,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 +320,3 @@ option: string; | ||
originalFilename: string; | ||
}[]>; | ||
}[] | undefined>; | ||
metadata: { | ||
@@ -265,2 +338,3 @@ isDuplicate: boolean; | ||
district: string; | ||
addressType: "DOMESTIC"; | ||
province: string; | ||
@@ -276,2 +350,3 @@ urbanOrRural: "URBAN"; | ||
district: string; | ||
addressType: "DOMESTIC"; | ||
province: string; | ||
@@ -281,2 +356,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 +371,3 @@ option: string; | ||
originalFilename: string; | ||
}[]>; | ||
}[] | undefined>; | ||
duplicates: never[]; | ||
@@ -301,2 +386,3 @@ eventId: string; | ||
district: string; | ||
addressType: "DOMESTIC"; | ||
province: string; | ||
@@ -312,2 +398,3 @@ urbanOrRural: "URBAN"; | ||
district: string; | ||
addressType: "DOMESTIC"; | ||
province: string; | ||
@@ -317,2 +404,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 +419,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 +433,3 @@ transactionId: string; | ||
district: string; | ||
addressType: "DOMESTIC"; | ||
province: string; | ||
@@ -347,2 +445,3 @@ urbanOrRural: "URBAN"; | ||
district: string; | ||
addressType: "DOMESTIC"; | ||
province: string; | ||
@@ -352,2 +451,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 +466,4 @@ option: string; | ||
originalFilename: string; | ||
}[]>; | ||
}[] | undefined>; | ||
metadata: {}; | ||
eventId: string; | ||
@@ -372,2 +482,3 @@ }; | ||
district: string; | ||
addressType: "DOMESTIC"; | ||
province: string; | ||
@@ -383,2 +494,3 @@ urbanOrRural: "URBAN"; | ||
district: string; | ||
addressType: "DOMESTIC"; | ||
province: string; | ||
@@ -388,2 +500,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 +515,3 @@ option: string; | ||
originalFilename: string; | ||
}[]>; | ||
}[] | undefined>; | ||
metadata: {}; | ||
@@ -408,2 +530,3 @@ eventId: string; | ||
district: string; | ||
addressType: "DOMESTIC"; | ||
province: string; | ||
@@ -419,2 +542,3 @@ urbanOrRural: "URBAN"; | ||
district: string; | ||
addressType: "DOMESTIC"; | ||
province: string; | ||
@@ -424,2 +548,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 +563,3 @@ option: string; | ||
originalFilename: string; | ||
}[]>; | ||
}[] | undefined>; | ||
eventId: string; | ||
@@ -444,2 +578,3 @@ requestId: string; | ||
district: string; | ||
addressType: "DOMESTIC"; | ||
province: string; | ||
@@ -455,2 +590,3 @@ urbanOrRural: "URBAN"; | ||
district: string; | ||
addressType: "DOMESTIC"; | ||
province: string; | ||
@@ -460,2 +596,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 +611,3 @@ option: string; | ||
originalFilename: string; | ||
}[]>; | ||
}[] | undefined>; | ||
eventId: string; | ||
@@ -468,0 +614,0 @@ requestId: string; |
@@ -43,7 +43,25 @@ import { TranslationConfig } from './TranslationConfig'; | ||
export declare function getAllFields(configuration: EventConfig): import("./FieldConfig").Inferred[]; | ||
export declare function getAllPages(configuration: EventConfig): { | ||
export declare function getAllPages(configuration: EventConfig): ({ | ||
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[]; | ||
})[]; | ||
export declare function validateWorkqueueConfig(workqueueConfigs: WorkqueueConfig[]): void; | ||
@@ -57,7 +75,25 @@ export declare const findActiveActionForm: (configuration: EventConfig, action: ActionType) => { | ||
label: TranslationConfig; | ||
pages: { | ||
pages: ({ | ||
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[]; | ||
})[]; | ||
review: { | ||
@@ -68,7 +104,25 @@ title: TranslationConfig; | ||
} | undefined; | ||
export declare const findActiveActionFormPages: (configuration: EventConfig, action: ActionType) => { | ||
export declare const findActiveActionFormPages: (configuration: EventConfig, action: ActionType) => ({ | ||
type: "FORM"; | ||
id: string; | ||
title: TranslationConfig; | ||
fields: import("./FieldConfig").Inferred[]; | ||
}[] | undefined; | ||
} | { | ||
type: "VERIFICATION"; | ||
id: string; | ||
title: TranslationConfig; | ||
actions: { | ||
verify: { | ||
label: TranslationConfig; | ||
}; | ||
cancel: { | ||
label: TranslationConfig; | ||
confirmation: { | ||
title: TranslationConfig; | ||
body: TranslationConfig; | ||
}; | ||
}; | ||
}; | ||
fields: import("./FieldConfig").Inferred[]; | ||
})[] | undefined; | ||
export declare const getFormFields: (formConfig: FormConfig) => import("./FieldConfig").Inferred[]; | ||
@@ -83,7 +137,25 @@ /** | ||
export declare const findActiveActionFields: (configuration: EventConfig, action: ActionType) => FieldConfig[] | undefined; | ||
export declare const getActiveActionFormPages: (configuration: EventConfig, action: ActionType) => { | ||
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[]; | ||
})[]; | ||
/** | ||
@@ -101,2 +173,3 @@ * Returns all fields for the action type, including review fields, or throws | ||
district: string; | ||
addressType: "DOMESTIC"; | ||
province: string; | ||
@@ -112,2 +185,3 @@ urbanOrRural: "URBAN"; | ||
district: string; | ||
addressType: "DOMESTIC"; | ||
province: string; | ||
@@ -117,2 +191,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; | ||
@@ -122,3 +206,3 @@ option: string; | ||
originalFilename: string; | ||
}[]>; | ||
}[] | undefined>; | ||
export declare function findActiveDrafts(event: EventDocument, drafts: Draft[]): { | ||
@@ -138,2 +222,3 @@ id: string; | ||
district: string; | ||
addressType: "DOMESTIC"; | ||
province: string; | ||
@@ -149,2 +234,3 @@ urbanOrRural: "URBAN"; | ||
district: string; | ||
addressType: "DOMESTIC"; | ||
province: string; | ||
@@ -154,2 +240,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; | ||
@@ -159,3 +255,3 @@ option: string; | ||
originalFilename: string; | ||
}[]>; | ||
}[] | undefined>; | ||
createdAt: string; | ||
@@ -171,2 +267,3 @@ createdBy: string; | ||
district: string; | ||
addressType: "DOMESTIC"; | ||
province: string; | ||
@@ -182,2 +279,3 @@ urbanOrRural: "URBAN"; | ||
district: string; | ||
addressType: "DOMESTIC"; | ||
province: string; | ||
@@ -187,2 +285,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; | ||
@@ -192,3 +300,3 @@ option: string; | ||
originalFilename: string; | ||
}[]> | undefined; | ||
}[] | undefined> | undefined; | ||
}; | ||
@@ -210,2 +318,3 @@ }[]; | ||
}; | ||
export declare function findActiveActionVerificationPageIds(configuration: EventConfig, action: ActionType): string[]; | ||
//# sourceMappingURL=utils.d.ts.map |
{ | ||
"name": "@opencrvs/toolkit", | ||
"version": "1.8.0-rc.27f5477", | ||
"version": "1.8.0-rc.294f5d3", | ||
"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
50.29%57
1.79%68315
43.4%