@coursebuilder/core
Version:
Core package for Course Builder
82 lines (79 loc) • 2.11 kB
TypeScript
import { z } from 'zod';
declare const stripeSubscriptionSchema: z.ZodObject<{
id: z.ZodString;
object: z.ZodLiteral<"subscription">;
status: z.ZodEnum<["active", "past_due", "unpaid", "canceled", "incomplete", "incomplete_expired", "trialing"]>;
customer: z.ZodString;
items: z.ZodObject<{
data: z.ZodArray<z.ZodObject<{
id: z.ZodString;
price: z.ZodObject<{
id: z.ZodString;
product: z.ZodString;
}, "strip", z.ZodTypeAny, {
id: string;
product: string;
}, {
id: string;
product: string;
}>;
}, "strip", z.ZodTypeAny, {
id: string;
price: {
id: string;
product: string;
};
}, {
id: string;
price: {
id: string;
product: string;
};
}>, "many">;
}, "strip", z.ZodTypeAny, {
data: {
id: string;
price: {
id: string;
product: string;
};
}[];
}, {
data: {
id: string;
price: {
id: string;
product: string;
};
}[];
}>;
}, "strip", z.ZodTypeAny, {
object: "subscription";
id: string;
status: "active" | "incomplete" | "incomplete_expired" | "trialing" | "past_due" | "canceled" | "unpaid";
customer: string;
items: {
data: {
id: string;
price: {
id: string;
product: string;
};
}[];
};
}, {
object: "subscription";
id: string;
status: "active" | "incomplete" | "incomplete_expired" | "trialing" | "past_due" | "canceled" | "unpaid";
customer: string;
items: {
data: {
id: string;
price: {
id: string;
product: string;
};
}[];
};
}>;
export { stripeSubscriptionSchema };