@prave/shared 1.0.2 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -28,12 +28,17 @@ export declare const billingProfileSchema: z.ZodObject<{
|
|
|
28
28
|
current_period_end: string | null;
|
|
29
29
|
}>;
|
|
30
30
|
export type BillingProfile = z.infer<typeof billingProfileSchema>;
|
|
31
|
+
export declare const billingCadenceSchema: z.ZodEnum<["monthly", "yearly"]>;
|
|
32
|
+
export type BillingCadence = z.infer<typeof billingCadenceSchema>;
|
|
31
33
|
export declare const billingCheckoutInputSchema: z.ZodObject<{
|
|
32
34
|
plan: z.ZodEnum<["explorer", "creator"]>;
|
|
35
|
+
cadence: z.ZodDefault<z.ZodEnum<["monthly", "yearly"]>>;
|
|
33
36
|
}, "strip", z.ZodTypeAny, {
|
|
34
37
|
plan: "explorer" | "creator";
|
|
38
|
+
cadence: "monthly" | "yearly";
|
|
35
39
|
}, {
|
|
36
40
|
plan: "explorer" | "creator";
|
|
41
|
+
cadence?: "monthly" | "yearly" | undefined;
|
|
37
42
|
}>;
|
|
38
43
|
export type BillingCheckoutInput = z.infer<typeof billingCheckoutInputSchema>;
|
|
39
44
|
export declare const billingCheckoutResponseSchema: z.ZodObject<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"billing.schema.d.ts","sourceRoot":"","sources":["../../src/schemas/billing.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,eAAO,MAAM,UAAU,4CAA0C,CAAA;AACjE,MAAM,MAAM,IAAI,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,CAAA;AAE7C,eAAO,MAAM,wBAAwB,yGAQnC,CAAA;AACF,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAA;AAEzE;;;;GAIG;AACH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;EAM/B,CAAA;AACF,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAA;AAEjE,eAAO,MAAM,0BAA0B
|
|
1
|
+
{"version":3,"file":"billing.schema.d.ts","sourceRoot":"","sources":["../../src/schemas/billing.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,eAAO,MAAM,UAAU,4CAA0C,CAAA;AACjE,MAAM,MAAM,IAAI,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,CAAA;AAE7C,eAAO,MAAM,wBAAwB,yGAQnC,CAAA;AACF,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAA;AAEzE;;;;GAIG;AACH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;EAM/B,CAAA;AACF,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAA;AAEjE,eAAO,MAAM,oBAAoB,kCAAgC,CAAA;AACjE,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAA;AAEjE,eAAO,MAAM,0BAA0B;;;;;;;;;EAGrC,CAAA;AACF,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAA;AAE7E,eAAO,MAAM,6BAA6B;;;;;;;;;EAGxC,CAAA;AACF,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAA;AAEnF,eAAO,MAAM,2BAA2B;;;;;;EAEtC,CAAA;AACF,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAA"}
|
|
@@ -21,8 +21,10 @@ export const billingProfileSchema = z.object({
|
|
|
21
21
|
subscription_status: subscriptionStatusSchema.nullable(),
|
|
22
22
|
current_period_end: z.string().datetime().nullable(),
|
|
23
23
|
});
|
|
24
|
+
export const billingCadenceSchema = z.enum(['monthly', 'yearly']);
|
|
24
25
|
export const billingCheckoutInputSchema = z.object({
|
|
25
26
|
plan: z.enum(['explorer', 'creator']),
|
|
27
|
+
cadence: billingCadenceSchema.default('monthly'),
|
|
26
28
|
});
|
|
27
29
|
export const billingCheckoutResponseSchema = z.object({
|
|
28
30
|
url: z.string().url(),
|