@coursebuilder/core
Version:
Core package for Course Builder
21 lines (18 loc) • 748 B
text/typescript
import { z } from 'zod';
declare const NEW_SUBSCRIPTION_CREATED_EVENT = "commerce/new-subscription-created";
type NewSubscriptionCreated = {
name: typeof NEW_SUBSCRIPTION_CREATED_EVENT;
data: NewSubscriptionCreatedEvent;
};
declare const NewSubscriptionCreatedEventSchema: z.ZodObject<{
subscriptionId: z.ZodString;
checkoutSessionId: z.ZodString;
}, "strip", z.ZodTypeAny, {
checkoutSessionId: string;
subscriptionId: string;
}, {
checkoutSessionId: string;
subscriptionId: string;
}>;
type NewSubscriptionCreatedEvent = z.infer<typeof NewSubscriptionCreatedEventSchema>;
export { NEW_SUBSCRIPTION_CREATED_EVENT, type NewSubscriptionCreated, type NewSubscriptionCreatedEvent, NewSubscriptionCreatedEventSchema };