Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions dist/base/index.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -281,8 +281,10 @@ var promoCodeSchemaSpec = markAsSchemaSpec({
created_by: zod.z.string().nullable(),
updated_by: zod.z.string().nullable(),
// PromoCode specific fields
uuid: zod.z.string().uuid(),
external_id: zod.z.string(),
code: zod.z.string(),
claimed_at: timestampNullableOptional,
allowance_user: zod.z.number(),
allowance_total: zod.z.number(),
type: zod.z.enum(["discount", "booking", "booking_without_destination"]).nullable().or(zod.z.string()),
Expand Down Expand Up @@ -469,6 +471,12 @@ var paymentSchemaSpec = markAsSchemaSpec({
invoice: zod.z.string().optional(),
fee: zod.z.number().optional(),
topup: zod.z.boolean(),
status: zod.z.enum(["pending", "processing", "completed", "failed"]).optional(),
// 'pending' | 'processing' | 'completed' | 'failed'
payment_intent_id: zod.z.string().nullable().optional(),
// Stripe PaymentIntent ID
error_message: zod.z.string().nullable().optional(),
// Error message
// Common resolved package specification (same format for all sources)
package_specifications: zod.z.array(zod.z.object({
package_type: zod.z.string().optional(),
Expand Down
2 changes: 1 addition & 1 deletion dist/base/index.cjs.map

Large diffs are not rendered by default.

19 changes: 17 additions & 2 deletions dist/base/index.d.cts
Original file line number Diff line number Diff line change
Expand Up @@ -524,6 +524,9 @@ declare const HPaymentSchema: z.ZodObject<{
invoice: z.ZodOptional<z.ZodString>;
fee: z.ZodOptional<z.ZodNumber>;
topup: z.ZodBoolean;
status: z.ZodOptional<z.ZodEnum<["pending", "processing", "completed", "failed"]>>;
payment_intent_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
error_message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
package_specifications: z.ZodOptional<z.ZodArray<z.ZodObject<{
package_type: z.ZodOptional<z.ZodString>;
package_size: z.ZodOptional<z.ZodString>;
Expand Down Expand Up @@ -619,6 +622,7 @@ declare const HPaymentSchema: z.ZodObject<{
customer: string;
topup: boolean;
id?: string | null | undefined;
status?: "pending" | "processing" | "completed" | "failed" | undefined;
package_specifications?: {
package_size?: string | undefined;
destination?: string | undefined;
Expand All @@ -628,6 +632,8 @@ declare const HPaymentSchema: z.ZodObject<{
}[] | undefined;
invoice?: string | undefined;
fee?: number | undefined;
payment_intent_id?: string | null | undefined;
error_message?: string | null | undefined;
app_payment_properties?: {
promo?: string | undefined;
booking_id?: string | null | undefined;
Expand Down Expand Up @@ -661,6 +667,7 @@ declare const HPaymentSchema: z.ZodObject<{
customer: string;
topup: boolean;
id?: string | null | undefined;
status?: "pending" | "processing" | "completed" | "failed" | undefined;
package_specifications?: {
package_size?: string | undefined;
destination?: string | undefined;
Expand All @@ -670,6 +677,8 @@ declare const HPaymentSchema: z.ZodObject<{
}[] | undefined;
invoice?: string | undefined;
fee?: number | undefined;
payment_intent_id?: string | null | undefined;
error_message?: string | null | undefined;
app_payment_properties?: {
promo?: string | undefined;
booking_id?: string | null | undefined;
Expand Down Expand Up @@ -701,14 +710,14 @@ declare const HMessageSchema: z.ZodObject<{
}, z.UnknownKeysParam, z.ZodTypeAny, {
id: string;
created_at: Date;
status: "pending" | "sent" | "failed" | "delivered";
status: "pending" | "failed" | "sent" | "delivered";
updated_at: Date;
key: string;
method: "email" | "push" | "sms";
}, {
id: string;
created_at: Date;
status: "pending" | "sent" | "failed" | "delivered";
status: "pending" | "failed" | "sent" | "delivered";
updated_at: Date;
key: string;
method: "email" | "push" | "sms";
Expand Down Expand Up @@ -914,8 +923,10 @@ declare const HPromoCodeSchema: z.ZodObject<{
updated_at: z.ZodEffects<z.ZodDate, Date, Date>;
created_by: z.ZodNullable<z.ZodString>;
updated_by: z.ZodNullable<z.ZodString>;
uuid: z.ZodString;
external_id: z.ZodString;
code: z.ZodString;
claimed_at: z.ZodEffects<z.ZodDate, Date, Date>;
allowance_user: z.ZodNumber;
allowance_total: z.ZodNumber;
type: z.ZodUnion<[z.ZodNullable<z.ZodEnum<["discount", "booking", "booking_without_destination"]>>, z.ZodString]>;
Expand Down Expand Up @@ -970,6 +981,8 @@ declare const HPromoCodeSchema: z.ZodObject<{
country: string;
package: string;
redeemed_at: Date;
uuid: string;
claimed_at: Date;
allowance_user: number;
allowance_total: number;
booking: string;
Expand Down Expand Up @@ -1004,6 +1017,8 @@ declare const HPromoCodeSchema: z.ZodObject<{
country: string;
package: string;
redeemed_at: Date;
uuid: string;
claimed_at: Date;
allowance_user: number;
allowance_total: number;
booking: string;
Expand Down
19 changes: 17 additions & 2 deletions dist/base/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -524,6 +524,9 @@ declare const HPaymentSchema: z.ZodObject<{
invoice: z.ZodOptional<z.ZodString>;
fee: z.ZodOptional<z.ZodNumber>;
topup: z.ZodBoolean;
status: z.ZodOptional<z.ZodEnum<["pending", "processing", "completed", "failed"]>>;
payment_intent_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
error_message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
package_specifications: z.ZodOptional<z.ZodArray<z.ZodObject<{
package_type: z.ZodOptional<z.ZodString>;
package_size: z.ZodOptional<z.ZodString>;
Expand Down Expand Up @@ -619,6 +622,7 @@ declare const HPaymentSchema: z.ZodObject<{
customer: string;
topup: boolean;
id?: string | null | undefined;
status?: "pending" | "processing" | "completed" | "failed" | undefined;
package_specifications?: {
package_size?: string | undefined;
destination?: string | undefined;
Expand All @@ -628,6 +632,8 @@ declare const HPaymentSchema: z.ZodObject<{
}[] | undefined;
invoice?: string | undefined;
fee?: number | undefined;
payment_intent_id?: string | null | undefined;
error_message?: string | null | undefined;
app_payment_properties?: {
promo?: string | undefined;
booking_id?: string | null | undefined;
Expand Down Expand Up @@ -661,6 +667,7 @@ declare const HPaymentSchema: z.ZodObject<{
customer: string;
topup: boolean;
id?: string | null | undefined;
status?: "pending" | "processing" | "completed" | "failed" | undefined;
package_specifications?: {
package_size?: string | undefined;
destination?: string | undefined;
Expand All @@ -670,6 +677,8 @@ declare const HPaymentSchema: z.ZodObject<{
}[] | undefined;
invoice?: string | undefined;
fee?: number | undefined;
payment_intent_id?: string | null | undefined;
error_message?: string | null | undefined;
app_payment_properties?: {
promo?: string | undefined;
booking_id?: string | null | undefined;
Expand Down Expand Up @@ -701,14 +710,14 @@ declare const HMessageSchema: z.ZodObject<{
}, z.UnknownKeysParam, z.ZodTypeAny, {
id: string;
created_at: Date;
status: "pending" | "sent" | "failed" | "delivered";
status: "pending" | "failed" | "sent" | "delivered";
updated_at: Date;
key: string;
method: "email" | "push" | "sms";
}, {
id: string;
created_at: Date;
status: "pending" | "sent" | "failed" | "delivered";
status: "pending" | "failed" | "sent" | "delivered";
updated_at: Date;
key: string;
method: "email" | "push" | "sms";
Expand Down Expand Up @@ -914,8 +923,10 @@ declare const HPromoCodeSchema: z.ZodObject<{
updated_at: z.ZodEffects<z.ZodDate, Date, Date>;
created_by: z.ZodNullable<z.ZodString>;
updated_by: z.ZodNullable<z.ZodString>;
uuid: z.ZodString;
external_id: z.ZodString;
code: z.ZodString;
claimed_at: z.ZodEffects<z.ZodDate, Date, Date>;
allowance_user: z.ZodNumber;
allowance_total: z.ZodNumber;
type: z.ZodUnion<[z.ZodNullable<z.ZodEnum<["discount", "booking", "booking_without_destination"]>>, z.ZodString]>;
Expand Down Expand Up @@ -970,6 +981,8 @@ declare const HPromoCodeSchema: z.ZodObject<{
country: string;
package: string;
redeemed_at: Date;
uuid: string;
claimed_at: Date;
allowance_user: number;
allowance_total: number;
booking: string;
Expand Down Expand Up @@ -1004,6 +1017,8 @@ declare const HPromoCodeSchema: z.ZodObject<{
country: string;
package: string;
redeemed_at: Date;
uuid: string;
claimed_at: Date;
allowance_user: number;
allowance_total: number;
booking: string;
Expand Down
8 changes: 8 additions & 0 deletions dist/base/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/base/index.js.map

Large diffs are not rendered by default.

8 changes: 8 additions & 0 deletions dist/index.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -304,8 +304,10 @@ var promoCodeSchemaSpec = markAsSchemaSpec({
created_by: zod.z.string().nullable(),
updated_by: zod.z.string().nullable(),
// PromoCode specific fields
uuid: zod.z.string().uuid(),
external_id: zod.z.string(),
code: zod.z.string(),
claimed_at: timestampNullableOptional,
allowance_user: zod.z.number(),
allowance_total: zod.z.number(),
type: zod.z.enum(["discount", "booking", "booking_without_destination"]).nullable().or(zod.z.string()),
Expand Down Expand Up @@ -492,6 +494,12 @@ var paymentSchemaSpec = markAsSchemaSpec({
invoice: zod.z.string().optional(),
fee: zod.z.number().optional(),
topup: zod.z.boolean(),
status: zod.z.enum(["pending", "processing", "completed", "failed"]).optional(),
// 'pending' | 'processing' | 'completed' | 'failed'
payment_intent_id: zod.z.string().nullable().optional(),
// Stripe PaymentIntent ID
error_message: zod.z.string().nullable().optional(),
// Error message
// Common resolved package specification (same format for all sources)
package_specifications: zod.z.array(zod.z.object({
package_type: zod.z.string().optional(),
Expand Down
2 changes: 1 addition & 1 deletion dist/index.cjs.map

Large diffs are not rendered by default.

28 changes: 26 additions & 2 deletions dist/index.d.cts
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,9 @@ declare const paymentSchemaSpec: {
invoice: z.ZodOptional<z.ZodString>;
fee: z.ZodOptional<z.ZodNumber>;
topup: z.ZodBoolean;
status: z.ZodOptional<z.ZodEnum<["pending", "processing", "completed", "failed"]>>;
payment_intent_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
error_message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
package_specifications: z.ZodOptional<z.ZodArray<z.ZodObject<{
package_type: z.ZodOptional<z.ZodString>;
package_size: z.ZodOptional<z.ZodString>;
Expand Down Expand Up @@ -639,8 +642,14 @@ declare const promoCodeSchemaSpec: {
};
created_by: z.ZodNullable<z.ZodString>;
updated_by: z.ZodNullable<z.ZodString>;
uuid: z.ZodString;
external_id: z.ZodString;
code: z.ZodString;
claimed_at: {
_type: "timestamp";
nullable: boolean;
optional: boolean;
};
allowance_user: z.ZodNumber;
allowance_total: z.ZodNumber;
type: z.ZodUnion<[z.ZodNullable<z.ZodEnum<["discount", "booking", "booking_without_destination"]>>, z.ZodString]>;
Expand Down Expand Up @@ -2012,6 +2021,9 @@ declare const HPaymentSchema: z.ZodObject<{
invoice: z.ZodOptional<z.ZodString>;
fee: z.ZodOptional<z.ZodNumber>;
topup: z.ZodBoolean;
status: z.ZodOptional<z.ZodEnum<["pending", "processing", "completed", "failed"]>>;
payment_intent_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
error_message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
package_specifications: z.ZodOptional<z.ZodArray<z.ZodObject<{
package_type: z.ZodOptional<z.ZodString>;
package_size: z.ZodOptional<z.ZodString>;
Expand Down Expand Up @@ -2107,6 +2119,7 @@ declare const HPaymentSchema: z.ZodObject<{
customer: string;
topup: boolean;
id?: string | null | undefined;
status?: "pending" | "processing" | "completed" | "failed" | undefined;
package_specifications?: {
package_size?: string | undefined;
destination?: string | undefined;
Expand All @@ -2116,6 +2129,8 @@ declare const HPaymentSchema: z.ZodObject<{
}[] | undefined;
invoice?: string | undefined;
fee?: number | undefined;
payment_intent_id?: string | null | undefined;
error_message?: string | null | undefined;
app_payment_properties?: {
promo?: string | undefined;
booking_id?: string | null | undefined;
Expand Down Expand Up @@ -2149,6 +2164,7 @@ declare const HPaymentSchema: z.ZodObject<{
customer: string;
topup: boolean;
id?: string | null | undefined;
status?: "pending" | "processing" | "completed" | "failed" | undefined;
package_specifications?: {
package_size?: string | undefined;
destination?: string | undefined;
Expand All @@ -2158,6 +2174,8 @@ declare const HPaymentSchema: z.ZodObject<{
}[] | undefined;
invoice?: string | undefined;
fee?: number | undefined;
payment_intent_id?: string | null | undefined;
error_message?: string | null | undefined;
app_payment_properties?: {
promo?: string | undefined;
booking_id?: string | null | undefined;
Expand Down Expand Up @@ -2189,14 +2207,14 @@ declare const HMessageSchema: z.ZodObject<{
}, z.UnknownKeysParam, z.ZodTypeAny, {
id: string;
created_at: Date;
status: "pending" | "sent" | "failed" | "delivered";
status: "pending" | "failed" | "sent" | "delivered";
updated_at: Date;
key: string;
method: "email" | "push" | "sms";
}, {
id: string;
created_at: Date;
status: "pending" | "sent" | "failed" | "delivered";
status: "pending" | "failed" | "sent" | "delivered";
updated_at: Date;
key: string;
method: "email" | "push" | "sms";
Expand Down Expand Up @@ -2402,8 +2420,10 @@ declare const HPromoCodeSchema: z.ZodObject<{
updated_at: z.ZodEffects<z.ZodDate, Date, Date>;
created_by: z.ZodNullable<z.ZodString>;
updated_by: z.ZodNullable<z.ZodString>;
uuid: z.ZodString;
external_id: z.ZodString;
code: z.ZodString;
claimed_at: z.ZodEffects<z.ZodDate, Date, Date>;
allowance_user: z.ZodNumber;
allowance_total: z.ZodNumber;
type: z.ZodUnion<[z.ZodNullable<z.ZodEnum<["discount", "booking", "booking_without_destination"]>>, z.ZodString]>;
Expand Down Expand Up @@ -2458,6 +2478,8 @@ declare const HPromoCodeSchema: z.ZodObject<{
country: string;
package: string;
redeemed_at: Date;
uuid: string;
claimed_at: Date;
allowance_user: number;
allowance_total: number;
booking: string;
Expand Down Expand Up @@ -2492,6 +2514,8 @@ declare const HPromoCodeSchema: z.ZodObject<{
country: string;
package: string;
redeemed_at: Date;
uuid: string;
claimed_at: Date;
allowance_user: number;
allowance_total: number;
booking: string;
Expand Down
Loading
Loading