UNPKG

@coursebuilder/core

Version:

Core package for Course Builder

164 lines (161 loc) 5.23 kB
import { z } from 'zod'; declare const customerSubscriptionCreatedEvent: z.ZodObject<{ id: z.ZodString; object: z.ZodLiteral<"event">; type: z.ZodLiteral<"customer.subscription.created">; data: z.ZodObject<{ object: 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; }; }[]; }; }>; }, "strip", z.ZodTypeAny, { object: { 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: { 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; }; }[]; }; }; }>; }, "strip", z.ZodTypeAny, { object: "event"; type: "customer.subscription.created"; id: string; data: { object: { 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: "event"; type: "customer.subscription.created"; id: string; data: { object: { 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; }; }[]; }; }; }; }>; type CustomerSubscriptionCreatedEvent = z.infer<typeof customerSubscriptionCreatedEvent>; export { type CustomerSubscriptionCreatedEvent, customerSubscriptionCreatedEvent };