@forklaunch/implementation-billing-base 0.2.2 → 0.3.0
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.
- package/lib/schemas/index.d.mts +402 -0
- package/lib/schemas/index.d.ts +402 -6
- package/lib/schemas/index.js +498 -5
- package/lib/schemas/index.mjs +547 -0
- package/lib/services/index.d.mts +255 -0
- package/lib/services/index.d.ts +255 -6
- package/lib/services/index.js +610 -5
- package/lib/services/index.mjs +599 -0
- package/package.json +8 -7
- package/lib/__test__/schemaEquality.test.d.ts +0 -2
- package/lib/__test__/schemaEquality.test.d.ts.map +0 -1
- package/lib/__test__/schemaEquality.test.js +0 -430
- package/lib/jest.config.d.ts +0 -4
- package/lib/jest.config.d.ts.map +0 -1
- package/lib/jest.config.js +0 -19
- package/lib/schemas/billingPortal.schema.d.ts +0 -119
- package/lib/schemas/billingPortal.schema.d.ts.map +0 -1
- package/lib/schemas/billingPortal.schema.js +0 -7
- package/lib/schemas/checkoutSession.schema.d.ts +0 -265
- package/lib/schemas/checkoutSession.schema.d.ts.map +0 -1
- package/lib/schemas/checkoutSession.schema.js +0 -7
- package/lib/schemas/index.d.ts.map +0 -1
- package/lib/schemas/paymentLink.schema.d.ts +0 -319
- package/lib/schemas/paymentLink.schema.d.ts.map +0 -1
- package/lib/schemas/paymentLink.schema.js +0 -7
- package/lib/schemas/plan.schema.d.ts +0 -338
- package/lib/schemas/plan.schema.d.ts.map +0 -1
- package/lib/schemas/plan.schema.js +0 -7
- package/lib/schemas/subscription.schema.d.ts +0 -366
- package/lib/schemas/subscription.schema.d.ts.map +0 -1
- package/lib/schemas/subscription.schema.js +0 -7
- package/lib/schemas/typebox/billingPortal.schema.d.ts +0 -161
- package/lib/schemas/typebox/billingPortal.schema.d.ts.map +0 -1
- package/lib/schemas/typebox/billingPortal.schema.js +0 -31
- package/lib/schemas/typebox/checkoutSession.schema.d.ts +0 -316
- package/lib/schemas/typebox/checkoutSession.schema.d.ts.map +0 -1
- package/lib/schemas/typebox/checkoutSession.schema.js +0 -50
- package/lib/schemas/typebox/paymentLink.schema.d.ts +0 -406
- package/lib/schemas/typebox/paymentLink.schema.d.ts.map +0 -1
- package/lib/schemas/typebox/paymentLink.schema.js +0 -55
- package/lib/schemas/typebox/plan.schema.d.ts +0 -408
- package/lib/schemas/typebox/plan.schema.d.ts.map +0 -1
- package/lib/schemas/typebox/plan.schema.js +0 -57
- package/lib/schemas/typebox/subscription.schema.d.ts +0 -456
- package/lib/schemas/typebox/subscription.schema.d.ts.map +0 -1
- package/lib/schemas/typebox/subscription.schema.js +0 -61
- package/lib/schemas/zod/billingPortal.schema.d.ts +0 -63
- package/lib/schemas/zod/billingPortal.schema.d.ts.map +0 -1
- package/lib/schemas/zod/billingPortal.schema.js +0 -31
- package/lib/schemas/zod/checkoutSession.schema.d.ts +0 -176
- package/lib/schemas/zod/checkoutSession.schema.d.ts.map +0 -1
- package/lib/schemas/zod/checkoutSession.schema.js +0 -50
- package/lib/schemas/zod/paymentLink.schema.d.ts +0 -172
- package/lib/schemas/zod/paymentLink.schema.d.ts.map +0 -1
- package/lib/schemas/zod/paymentLink.schema.js +0 -55
- package/lib/schemas/zod/plan.schema.d.ts +0 -196
- package/lib/schemas/zod/plan.schema.d.ts.map +0 -1
- package/lib/schemas/zod/plan.schema.js +0 -57
- package/lib/schemas/zod/subscription.schema.d.ts +0 -204
- package/lib/schemas/zod/subscription.schema.d.ts.map +0 -1
- package/lib/schemas/zod/subscription.schema.js +0 -61
- package/lib/services/billingPortal.service.d.ts +0 -112
- package/lib/services/billingPortal.service.d.ts.map +0 -1
- package/lib/services/billingPortal.service.js +0 -128
- package/lib/services/checkoutSession.service.d.ts +0 -137
- package/lib/services/checkoutSession.service.d.ts.map +0 -1
- package/lib/services/checkoutSession.service.js +0 -111
- package/lib/services/index.d.ts.map +0 -1
- package/lib/services/paymentLink.service.d.ts +0 -118
- package/lib/services/paymentLink.service.d.ts.map +0 -1
- package/lib/services/paymentLink.service.js +0 -154
- package/lib/services/plan.service.d.ts +0 -102
- package/lib/services/plan.service.d.ts.map +0 -1
- package/lib/services/plan.service.js +0 -80
- package/lib/services/subscription.service.d.ts +0 -159
- package/lib/services/subscription.service.d.ts.map +0 -1
- package/lib/services/subscription.service.js +0 -169
- package/lib/tsconfig.tsbuildinfo +0 -1
- package/lib/vitest.config.d.ts +0 -3
- package/lib/vitest.config.d.ts.map +0 -1
- package/lib/vitest.config.js +0 -7
|
@@ -0,0 +1,402 @@
|
|
|
1
|
+
import * as _forklaunch_core_mappers from '@forklaunch/core/mappers';
|
|
2
|
+
import * as zod from 'zod';
|
|
3
|
+
import * as _sinclair_typebox from '@sinclair/typebox';
|
|
4
|
+
import * as _forklaunch_validator from '@forklaunch/validator';
|
|
5
|
+
|
|
6
|
+
declare const BaseBillingPortalServiceSchemas: <SchemaValidator extends _forklaunch_validator.AnySchemaValidator>(options: {
|
|
7
|
+
uuidId: boolean;
|
|
8
|
+
} & {
|
|
9
|
+
validator: SchemaValidator;
|
|
10
|
+
}) => _forklaunch_core_mappers.SchemasByValidator<SchemaValidator, (options: {
|
|
11
|
+
uuidId: boolean;
|
|
12
|
+
}) => {
|
|
13
|
+
CreateBillingPortalSchema: {
|
|
14
|
+
customerId: _sinclair_typebox.TString;
|
|
15
|
+
uri: _sinclair_typebox.TString;
|
|
16
|
+
expiresAt: _sinclair_typebox.TTransform<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber, _sinclair_typebox.TDate]>, Date>;
|
|
17
|
+
};
|
|
18
|
+
UpdateBillingPortalSchema: {
|
|
19
|
+
id: _sinclair_typebox.TString;
|
|
20
|
+
uri: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
21
|
+
expiresAt: _sinclair_typebox.TOptional<_sinclair_typebox.TTransform<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber, _sinclair_typebox.TDate]>, Date>>;
|
|
22
|
+
};
|
|
23
|
+
BillingPortalSchema: {
|
|
24
|
+
id: _sinclair_typebox.TString;
|
|
25
|
+
customerId: _sinclair_typebox.TString;
|
|
26
|
+
uri: _sinclair_typebox.TString;
|
|
27
|
+
expiresAt: _sinclair_typebox.TTransform<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber, _sinclair_typebox.TDate]>, Date>;
|
|
28
|
+
extraFields: _sinclair_typebox.TOptional<_sinclair_typebox.TUnknown>;
|
|
29
|
+
createdAt: _sinclair_typebox.TOptional<_sinclair_typebox.TTransform<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber, _sinclair_typebox.TDate]>, Date>>;
|
|
30
|
+
updatedAt: _sinclair_typebox.TOptional<_sinclair_typebox.TTransform<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber, _sinclair_typebox.TDate]>, Date>>;
|
|
31
|
+
};
|
|
32
|
+
}, (options: {
|
|
33
|
+
uuidId: boolean;
|
|
34
|
+
}) => {
|
|
35
|
+
CreateBillingPortalSchema: {
|
|
36
|
+
customerId: zod.ZodString;
|
|
37
|
+
uri: zod.ZodString;
|
|
38
|
+
expiresAt: zod.ZodEffects<zod.ZodDate, Date, unknown>;
|
|
39
|
+
};
|
|
40
|
+
UpdateBillingPortalSchema: {
|
|
41
|
+
id: zod.ZodString;
|
|
42
|
+
uri: zod.ZodOptional<zod.ZodString>;
|
|
43
|
+
expiresAt: zod.ZodOptional<zod.ZodEffects<zod.ZodDate, Date, unknown>>;
|
|
44
|
+
};
|
|
45
|
+
BillingPortalSchema: {
|
|
46
|
+
id: zod.ZodString;
|
|
47
|
+
customerId: zod.ZodString;
|
|
48
|
+
uri: zod.ZodString;
|
|
49
|
+
expiresAt: zod.ZodEffects<zod.ZodDate, Date, unknown>;
|
|
50
|
+
extraFields: zod.ZodOptional<zod.ZodUnknown>;
|
|
51
|
+
createdAt: zod.ZodOptional<zod.ZodEffects<zod.ZodDate, Date, unknown>>;
|
|
52
|
+
updatedAt: zod.ZodOptional<zod.ZodEffects<zod.ZodDate, Date, unknown>>;
|
|
53
|
+
};
|
|
54
|
+
}>;
|
|
55
|
+
|
|
56
|
+
declare const BaseCheckoutSessionServiceSchemas: <SchemaValidator extends _forklaunch_validator.AnySchemaValidator>(options: {
|
|
57
|
+
uuidId: boolean;
|
|
58
|
+
} & {
|
|
59
|
+
validator: SchemaValidator;
|
|
60
|
+
}) => _forklaunch_core_mappers.SchemasByValidator<SchemaValidator, (options: {
|
|
61
|
+
uuidId: boolean;
|
|
62
|
+
}) => {
|
|
63
|
+
CreateCheckoutSessionSchema: <T extends Record<string, _forklaunch_validator.LiteralSchema>>(PaymentMethodEnum: T, StatusEnum: T) => {
|
|
64
|
+
customerId: _sinclair_typebox.TString;
|
|
65
|
+
paymentMethods: _sinclair_typebox.TArray<_sinclair_typebox.TUnion<[{ [K in keyof T]: _sinclair_typebox.TLiteral<T[K]>; }[keyof T]]>>;
|
|
66
|
+
successRedirectUri: _sinclair_typebox.TString;
|
|
67
|
+
cancelRedirectUri: _sinclair_typebox.TString;
|
|
68
|
+
expiresAt: _sinclair_typebox.TTransform<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber, _sinclair_typebox.TDate]>, Date>;
|
|
69
|
+
status: _sinclair_typebox.TUnion<[{ [K in keyof T]: _sinclair_typebox.TLiteral<T[K]>; }[keyof T]]>;
|
|
70
|
+
extraFields: _sinclair_typebox.TOptional<_sinclair_typebox.TUnknown>;
|
|
71
|
+
};
|
|
72
|
+
UpdateCheckoutSessionSchema: <T extends Record<string, _forklaunch_validator.LiteralSchema>, U extends Record<string, _forklaunch_validator.LiteralSchema>>(PaymentMethodEnum: T, StatusEnum: U) => {
|
|
73
|
+
id: _sinclair_typebox.TString;
|
|
74
|
+
customerId: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
75
|
+
paymentMethods: _sinclair_typebox.TOptional<_sinclair_typebox.TArray<_sinclair_typebox.TUnion<[{ [K in keyof T]: _sinclair_typebox.TLiteral<T[K]>; }[keyof T]]>>>;
|
|
76
|
+
successRedirectUri: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
77
|
+
cancelRedirectUri: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
78
|
+
expiresAt: _sinclair_typebox.TOptional<_sinclair_typebox.TTransform<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber, _sinclair_typebox.TDate]>, Date>>;
|
|
79
|
+
status: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[{ [K_1 in keyof U]: _sinclair_typebox.TLiteral<U[K_1]>; }[keyof U]]>>;
|
|
80
|
+
extraFields: _sinclair_typebox.TOptional<_sinclair_typebox.TUnknown>;
|
|
81
|
+
};
|
|
82
|
+
CheckoutSessionSchema: <T extends Record<string, _forklaunch_validator.LiteralSchema>, U_1 extends Record<string, _forklaunch_validator.LiteralSchema>>(PaymentMethodEnum: T, StatusEnum: U_1) => {
|
|
83
|
+
id: _sinclair_typebox.TString;
|
|
84
|
+
customerId: _sinclair_typebox.TString;
|
|
85
|
+
metadata: _sinclair_typebox.TOptional<_sinclair_typebox.TUnknown>;
|
|
86
|
+
paymentMethods: _sinclair_typebox.TArray<_sinclair_typebox.TUnion<[{ [K in keyof T]: _sinclair_typebox.TLiteral<T[K]>; }[keyof T]]>>;
|
|
87
|
+
successRedirectUri: _sinclair_typebox.TString;
|
|
88
|
+
cancelRedirectUri: _sinclair_typebox.TString;
|
|
89
|
+
expiresAt: _sinclair_typebox.TTransform<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber, _sinclair_typebox.TDate]>, Date>;
|
|
90
|
+
status: _sinclair_typebox.TUnion<[{ [K_1 in keyof U_1]: _sinclair_typebox.TLiteral<U_1[K_1]>; }[keyof U_1]]>;
|
|
91
|
+
extraFields: _sinclair_typebox.TOptional<_sinclair_typebox.TUnknown>;
|
|
92
|
+
createdAt: _sinclair_typebox.TOptional<_sinclair_typebox.TTransform<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber, _sinclair_typebox.TDate]>, Date>>;
|
|
93
|
+
updatedAt: _sinclair_typebox.TOptional<_sinclair_typebox.TTransform<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber, _sinclair_typebox.TDate]>, Date>>;
|
|
94
|
+
};
|
|
95
|
+
}, (options: {
|
|
96
|
+
uuidId: boolean;
|
|
97
|
+
}) => {
|
|
98
|
+
CreateCheckoutSessionSchema: <T extends Record<string, _forklaunch_validator.LiteralSchema>, U_2 extends Record<string, _forklaunch_validator.LiteralSchema>>(PaymentMethodEnum: T, StatusEnum: U_2) => {
|
|
99
|
+
customerId: zod.ZodString;
|
|
100
|
+
paymentMethods: zod.ZodArray<zod.ZodUnion<[{ [K in keyof T]: zod.ZodLiteral<T[K]>; }[keyof T]]>, "many">;
|
|
101
|
+
successRedirectUri: zod.ZodString;
|
|
102
|
+
cancelRedirectUri: zod.ZodString;
|
|
103
|
+
expiresAt: zod.ZodEffects<zod.ZodDate, Date, unknown>;
|
|
104
|
+
status: zod.ZodUnion<[{ [K_1 in keyof U_2]: zod.ZodLiteral<U_2[K_1]>; }[keyof U_2]]>;
|
|
105
|
+
extraFields: zod.ZodOptional<zod.ZodUnknown>;
|
|
106
|
+
};
|
|
107
|
+
UpdateCheckoutSessionSchema: <T extends Record<string, _forklaunch_validator.LiteralSchema>, U_3 extends Record<string, _forklaunch_validator.LiteralSchema>>(PaymentMethodEnum: T, StatusEnum: U_3) => {
|
|
108
|
+
id: zod.ZodString;
|
|
109
|
+
customerId: zod.ZodOptional<zod.ZodString>;
|
|
110
|
+
paymentMethods: zod.ZodOptional<zod.ZodArray<zod.ZodUnion<[{ [K in keyof T]: zod.ZodLiteral<T[K]>; }[keyof T]]>, "many">>;
|
|
111
|
+
successRedirectUri: zod.ZodOptional<zod.ZodString>;
|
|
112
|
+
cancelRedirectUri: zod.ZodOptional<zod.ZodString>;
|
|
113
|
+
expiresAt: zod.ZodOptional<zod.ZodEffects<zod.ZodDate, Date, unknown>>;
|
|
114
|
+
status: zod.ZodOptional<zod.ZodUnion<[{ [K_1 in keyof U_3]: zod.ZodLiteral<U_3[K_1]>; }[keyof U_3]]>>;
|
|
115
|
+
extraFields: zod.ZodOptional<zod.ZodUnknown>;
|
|
116
|
+
};
|
|
117
|
+
CheckoutSessionSchema: <T extends Record<string, _forklaunch_validator.LiteralSchema>, U_4 extends Record<string, _forklaunch_validator.LiteralSchema>>(PaymentMethodEnum: T, StatusEnum: U_4) => {
|
|
118
|
+
id: zod.ZodString;
|
|
119
|
+
customerId: zod.ZodString;
|
|
120
|
+
metadata: zod.ZodOptional<zod.ZodUnknown>;
|
|
121
|
+
paymentMethods: zod.ZodArray<zod.ZodUnion<[{ [K in keyof T]: zod.ZodLiteral<T[K]>; }[keyof T]]>, "many">;
|
|
122
|
+
successRedirectUri: zod.ZodString;
|
|
123
|
+
cancelRedirectUri: zod.ZodString;
|
|
124
|
+
expiresAt: zod.ZodEffects<zod.ZodDate, Date, unknown>;
|
|
125
|
+
status: zod.ZodUnion<[{ [K_1 in keyof U_4]: zod.ZodLiteral<U_4[K_1]>; }[keyof U_4]]>;
|
|
126
|
+
extraFields: zod.ZodOptional<zod.ZodUnknown>;
|
|
127
|
+
createdAt: zod.ZodOptional<zod.ZodEffects<zod.ZodDate, Date, unknown>>;
|
|
128
|
+
updatedAt: zod.ZodOptional<zod.ZodEffects<zod.ZodDate, Date, unknown>>;
|
|
129
|
+
};
|
|
130
|
+
}>;
|
|
131
|
+
|
|
132
|
+
declare const BasePaymentLinkServiceSchemas: <SchemaValidator extends _forklaunch_validator.AnySchemaValidator>(options: {
|
|
133
|
+
uuidId: boolean;
|
|
134
|
+
} & {
|
|
135
|
+
validator: SchemaValidator;
|
|
136
|
+
}) => _forklaunch_core_mappers.SchemasByValidator<SchemaValidator, (options: {
|
|
137
|
+
uuidId: boolean;
|
|
138
|
+
}) => {
|
|
139
|
+
CreatePaymentLinkSchema: <T extends Record<string, _forklaunch_validator.LiteralSchema>, U extends Record<string, _forklaunch_validator.LiteralSchema>>(CurrencyEnum: T, StatusEnum: U) => {
|
|
140
|
+
amount: _sinclair_typebox.TTransform<_sinclair_typebox.TUnion<[_sinclair_typebox.TNumber, _sinclair_typebox.TString, _sinclair_typebox.TBoolean, _sinclair_typebox.TNull, _sinclair_typebox.TBigInt, _sinclair_typebox.TDate]>, number>;
|
|
141
|
+
currency: _sinclair_typebox.TUnion<[{ [K in keyof T]: _sinclair_typebox.TLiteral<T[K]>; }[keyof T]]>;
|
|
142
|
+
description: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
143
|
+
metadata: _sinclair_typebox.TOptional<_sinclair_typebox.TUnknown>;
|
|
144
|
+
successRedirectUri: _sinclair_typebox.TString;
|
|
145
|
+
cancelRedirectUri: _sinclair_typebox.TString;
|
|
146
|
+
expiresAt: _sinclair_typebox.TTransform<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber, _sinclair_typebox.TDate]>, Date>;
|
|
147
|
+
status: _sinclair_typebox.TUnion<[{ [K_1 in keyof U]: _sinclair_typebox.TLiteral<U[K_1]>; }[keyof U]]>;
|
|
148
|
+
extraFields: _sinclair_typebox.TOptional<_sinclair_typebox.TUnknown>;
|
|
149
|
+
};
|
|
150
|
+
UpdatePaymentLinkSchema: <T extends Record<string, _forklaunch_validator.LiteralSchema>, U_1 extends Record<string, _forklaunch_validator.LiteralSchema>>(CurrencyEnum: T, StatusEnum: U_1) => {
|
|
151
|
+
id: _sinclair_typebox.TString;
|
|
152
|
+
amount: _sinclair_typebox.TOptional<_sinclair_typebox.TTransform<_sinclair_typebox.TUnion<[_sinclair_typebox.TNumber, _sinclair_typebox.TString, _sinclair_typebox.TBoolean, _sinclair_typebox.TNull, _sinclair_typebox.TBigInt, _sinclair_typebox.TDate]>, number>>;
|
|
153
|
+
currency: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[{ [K in keyof T]: _sinclair_typebox.TLiteral<T[K]>; }[keyof T]]>>;
|
|
154
|
+
description: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
155
|
+
metadata: _sinclair_typebox.TOptional<_sinclair_typebox.TUnknown>;
|
|
156
|
+
successRedirectUri: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
157
|
+
cancelRedirectUri: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
158
|
+
expiresAt: _sinclair_typebox.TOptional<_sinclair_typebox.TTransform<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber, _sinclair_typebox.TDate]>, Date>>;
|
|
159
|
+
status: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[{ [K_1 in keyof U_1]: _sinclair_typebox.TLiteral<U_1[K_1]>; }[keyof U_1]]>>;
|
|
160
|
+
extraFields: _sinclair_typebox.TOptional<_sinclair_typebox.TUnknown>;
|
|
161
|
+
};
|
|
162
|
+
PaymentLinkSchema: <T extends Record<string, _forklaunch_validator.LiteralSchema>, U_2 extends Record<string, _forklaunch_validator.LiteralSchema>>(CurrencyEnum: T, StatusEnum: U_2) => {
|
|
163
|
+
id: _sinclair_typebox.TString;
|
|
164
|
+
amount: _sinclair_typebox.TTransform<_sinclair_typebox.TUnion<[_sinclair_typebox.TNumber, _sinclair_typebox.TString, _sinclair_typebox.TBoolean, _sinclair_typebox.TNull, _sinclair_typebox.TBigInt, _sinclair_typebox.TDate]>, number>;
|
|
165
|
+
currency: _sinclair_typebox.TUnion<[{ [K in keyof T]: _sinclair_typebox.TLiteral<T[K]>; }[keyof T]]>;
|
|
166
|
+
description: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
167
|
+
metadata: _sinclair_typebox.TOptional<_sinclair_typebox.TUnknown>;
|
|
168
|
+
successRedirectUri: _sinclair_typebox.TString;
|
|
169
|
+
cancelRedirectUri: _sinclair_typebox.TString;
|
|
170
|
+
expiresAt: _sinclair_typebox.TTransform<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber, _sinclair_typebox.TDate]>, Date>;
|
|
171
|
+
status: _sinclair_typebox.TUnion<[{ [K_1 in keyof U_2]: _sinclair_typebox.TLiteral<U_2[K_1]>; }[keyof U_2]]>;
|
|
172
|
+
extraFields: _sinclair_typebox.TOptional<_sinclair_typebox.TUnknown>;
|
|
173
|
+
createdAt: _sinclair_typebox.TOptional<_sinclair_typebox.TTransform<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber, _sinclair_typebox.TDate]>, Date>>;
|
|
174
|
+
updatedAt: _sinclair_typebox.TOptional<_sinclair_typebox.TTransform<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber, _sinclair_typebox.TDate]>, Date>>;
|
|
175
|
+
};
|
|
176
|
+
}, (options: {
|
|
177
|
+
uuidId: boolean;
|
|
178
|
+
}) => {
|
|
179
|
+
CreatePaymentLinkSchema: <T extends Record<string, _forklaunch_validator.LiteralSchema>, U_3 extends Record<string, _forklaunch_validator.LiteralSchema>>(CurrencyEnum: T, StatusEnum: U_3) => {
|
|
180
|
+
amount: zod.ZodEffects<zod.ZodNumber, number, unknown>;
|
|
181
|
+
currency: zod.ZodUnion<[{ [K in keyof T]: zod.ZodLiteral<T[K]>; }[keyof T]]>;
|
|
182
|
+
description: zod.ZodOptional<zod.ZodString>;
|
|
183
|
+
metadata: zod.ZodOptional<zod.ZodUnknown>;
|
|
184
|
+
successRedirectUri: zod.ZodString;
|
|
185
|
+
cancelRedirectUri: zod.ZodString;
|
|
186
|
+
expiresAt: zod.ZodEffects<zod.ZodDate, Date, unknown>;
|
|
187
|
+
status: zod.ZodUnion<[{ [K_1 in keyof U_3]: zod.ZodLiteral<U_3[K_1]>; }[keyof U_3]]>;
|
|
188
|
+
extraFields: zod.ZodOptional<zod.ZodUnknown>;
|
|
189
|
+
};
|
|
190
|
+
UpdatePaymentLinkSchema: <T extends Record<string, _forklaunch_validator.LiteralSchema>, U_4 extends Record<string, _forklaunch_validator.LiteralSchema>>(CurrencyEnum: T, StatusEnum: U_4) => {
|
|
191
|
+
id: zod.ZodString;
|
|
192
|
+
amount: zod.ZodOptional<zod.ZodEffects<zod.ZodNumber, number, unknown>>;
|
|
193
|
+
currency: zod.ZodOptional<zod.ZodUnion<[{ [K in keyof T]: zod.ZodLiteral<T[K]>; }[keyof T]]>>;
|
|
194
|
+
description: zod.ZodOptional<zod.ZodString>;
|
|
195
|
+
metadata: zod.ZodOptional<zod.ZodUnknown>;
|
|
196
|
+
successRedirectUri: zod.ZodOptional<zod.ZodString>;
|
|
197
|
+
cancelRedirectUri: zod.ZodOptional<zod.ZodString>;
|
|
198
|
+
expiresAt: zod.ZodOptional<zod.ZodEffects<zod.ZodDate, Date, unknown>>;
|
|
199
|
+
status: zod.ZodOptional<zod.ZodUnion<[{ [K_1 in keyof U_4]: zod.ZodLiteral<U_4[K_1]>; }[keyof U_4]]>>;
|
|
200
|
+
extraFields: zod.ZodOptional<zod.ZodUnknown>;
|
|
201
|
+
};
|
|
202
|
+
PaymentLinkSchema: <T extends Record<string, _forklaunch_validator.LiteralSchema>, U_5 extends Record<string, _forklaunch_validator.LiteralSchema>>(CurrencyEnum: T, StatusEnum: U_5) => {
|
|
203
|
+
id: zod.ZodString;
|
|
204
|
+
amount: zod.ZodEffects<zod.ZodNumber, number, unknown>;
|
|
205
|
+
currency: zod.ZodUnion<[{ [K in keyof T]: zod.ZodLiteral<T[K]>; }[keyof T]]>;
|
|
206
|
+
description: zod.ZodOptional<zod.ZodString>;
|
|
207
|
+
metadata: zod.ZodOptional<zod.ZodUnknown>;
|
|
208
|
+
successRedirectUri: zod.ZodString;
|
|
209
|
+
cancelRedirectUri: zod.ZodString;
|
|
210
|
+
expiresAt: zod.ZodEffects<zod.ZodDate, Date, unknown>;
|
|
211
|
+
status: zod.ZodUnion<[{ [K_1 in keyof U_5]: zod.ZodLiteral<U_5[K_1]>; }[keyof U_5]]>;
|
|
212
|
+
extraFields: zod.ZodOptional<zod.ZodUnknown>;
|
|
213
|
+
createdAt: zod.ZodOptional<zod.ZodEffects<zod.ZodDate, Date, unknown>>;
|
|
214
|
+
updatedAt: zod.ZodOptional<zod.ZodEffects<zod.ZodDate, Date, unknown>>;
|
|
215
|
+
};
|
|
216
|
+
}>;
|
|
217
|
+
|
|
218
|
+
declare const BasePlanServiceSchemas: <SchemaValidator extends _forklaunch_validator.AnySchemaValidator>(options: {
|
|
219
|
+
uuidId: boolean;
|
|
220
|
+
} & {
|
|
221
|
+
validator: SchemaValidator;
|
|
222
|
+
}) => _forklaunch_core_mappers.SchemasByValidator<SchemaValidator, (options: {
|
|
223
|
+
uuidId: boolean;
|
|
224
|
+
}) => {
|
|
225
|
+
CreatePlanSchema: <T extends Record<string, _forklaunch_validator.LiteralSchema>, U extends Record<string, _forklaunch_validator.LiteralSchema>>(PlanCadenceEnum: T, BillingProviderEnum: U) => {
|
|
226
|
+
name: _sinclair_typebox.TString;
|
|
227
|
+
description: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
228
|
+
price: _sinclair_typebox.TTransform<_sinclair_typebox.TUnion<[_sinclair_typebox.TNumber, _sinclair_typebox.TString, _sinclair_typebox.TBoolean, _sinclair_typebox.TNull, _sinclair_typebox.TBigInt, _sinclair_typebox.TDate]>, number>;
|
|
229
|
+
cadence: _sinclair_typebox.TUnion<[{ [K in keyof T]: _sinclair_typebox.TLiteral<T[K]>; }[keyof T]]>;
|
|
230
|
+
features: _sinclair_typebox.TArray<_sinclair_typebox.TString>;
|
|
231
|
+
extraFields: _sinclair_typebox.TOptional<_sinclair_typebox.TUnknown>;
|
|
232
|
+
externalId: _sinclair_typebox.TString;
|
|
233
|
+
billingProvider: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[{ [K_1 in keyof U]: _sinclair_typebox.TLiteral<U[K_1]>; }[keyof U]]>>;
|
|
234
|
+
active: _sinclair_typebox.TTransform<_sinclair_typebox.TUnion<[_sinclair_typebox.TBoolean, _sinclair_typebox.TString]>, boolean>;
|
|
235
|
+
};
|
|
236
|
+
UpdatePlanSchema: <T extends Record<string, _forklaunch_validator.LiteralSchema>, U_1 extends Record<string, _forklaunch_validator.LiteralSchema>>(PlanCadenceEnum: T, BillingProviderEnum: U_1) => {
|
|
237
|
+
id: _sinclair_typebox.TString;
|
|
238
|
+
name: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
239
|
+
description: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
240
|
+
price: _sinclair_typebox.TOptional<_sinclair_typebox.TTransform<_sinclair_typebox.TUnion<[_sinclair_typebox.TNumber, _sinclair_typebox.TString, _sinclair_typebox.TBoolean, _sinclair_typebox.TNull, _sinclair_typebox.TBigInt, _sinclair_typebox.TDate]>, number>>;
|
|
241
|
+
cadence: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[{ [K in keyof T]: _sinclair_typebox.TLiteral<T[K]>; }[keyof T]]>>;
|
|
242
|
+
features: _sinclair_typebox.TOptional<_sinclair_typebox.TArray<_sinclair_typebox.TString>>;
|
|
243
|
+
extraFields: _sinclair_typebox.TOptional<_sinclair_typebox.TUnknown>;
|
|
244
|
+
externalId: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
245
|
+
billingProvider: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[{ [K_1 in keyof U_1]: _sinclair_typebox.TLiteral<U_1[K_1]>; }[keyof U_1]]>>;
|
|
246
|
+
active: _sinclair_typebox.TOptional<_sinclair_typebox.TTransform<_sinclair_typebox.TUnion<[_sinclair_typebox.TBoolean, _sinclair_typebox.TString]>, boolean>>;
|
|
247
|
+
};
|
|
248
|
+
PlanSchema: <T extends Record<string, _forklaunch_validator.LiteralSchema>, U_2 extends Record<string, _forklaunch_validator.LiteralSchema>>(PlanCadenceEnum: T, BillingProviderEnum: U_2) => {
|
|
249
|
+
id: _sinclair_typebox.TString;
|
|
250
|
+
name: _sinclair_typebox.TString;
|
|
251
|
+
description: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
252
|
+
price: _sinclair_typebox.TTransform<_sinclair_typebox.TUnion<[_sinclair_typebox.TNumber, _sinclair_typebox.TString, _sinclair_typebox.TBoolean, _sinclair_typebox.TNull, _sinclair_typebox.TBigInt, _sinclair_typebox.TDate]>, number>;
|
|
253
|
+
cadence: _sinclair_typebox.TUnion<[{ [K in keyof T]: _sinclair_typebox.TLiteral<T[K]>; }[keyof T]]>;
|
|
254
|
+
features: _sinclair_typebox.TOptional<_sinclair_typebox.TArray<_sinclair_typebox.TString>>;
|
|
255
|
+
extraFields: _sinclair_typebox.TOptional<_sinclair_typebox.TUnknown>;
|
|
256
|
+
externalId: _sinclair_typebox.TString;
|
|
257
|
+
billingProvider: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[{ [K_1 in keyof U_2]: _sinclair_typebox.TLiteral<U_2[K_1]>; }[keyof U_2]]>>;
|
|
258
|
+
active: _sinclair_typebox.TTransform<_sinclair_typebox.TUnion<[_sinclair_typebox.TBoolean, _sinclair_typebox.TString]>, boolean>;
|
|
259
|
+
createdAt: _sinclair_typebox.TOptional<_sinclair_typebox.TTransform<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber, _sinclair_typebox.TDate]>, Date>>;
|
|
260
|
+
updatedAt: _sinclair_typebox.TOptional<_sinclair_typebox.TTransform<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber, _sinclair_typebox.TDate]>, Date>>;
|
|
261
|
+
};
|
|
262
|
+
}, (options: {
|
|
263
|
+
uuidId: boolean;
|
|
264
|
+
}) => {
|
|
265
|
+
CreatePlanSchema: <T extends Record<string, _forklaunch_validator.LiteralSchema>, U_3 extends Record<string, _forklaunch_validator.LiteralSchema>>(PlanCadenceEnum: T, BillingProviderEnum: U_3) => {
|
|
266
|
+
name: zod.ZodString;
|
|
267
|
+
description: zod.ZodOptional<zod.ZodString>;
|
|
268
|
+
price: zod.ZodEffects<zod.ZodNumber, number, unknown>;
|
|
269
|
+
cadence: zod.ZodUnion<[{ [K in keyof T]: zod.ZodLiteral<T[K]>; }[keyof T]]>;
|
|
270
|
+
features: zod.ZodArray<zod.ZodString, "many">;
|
|
271
|
+
extraFields: zod.ZodOptional<zod.ZodUnknown>;
|
|
272
|
+
externalId: zod.ZodString;
|
|
273
|
+
billingProvider: zod.ZodOptional<zod.ZodUnion<[{ [K_1 in keyof U_3]: zod.ZodLiteral<U_3[K_1]>; }[keyof U_3]]>>;
|
|
274
|
+
active: zod.ZodEffects<zod.ZodBoolean, boolean, unknown>;
|
|
275
|
+
};
|
|
276
|
+
UpdatePlanSchema: <T extends Record<string, _forklaunch_validator.LiteralSchema>, U_4 extends Record<string, _forklaunch_validator.LiteralSchema>>(PlanCadenceEnum: T, BillingProviderEnum: U_4) => {
|
|
277
|
+
id: zod.ZodString;
|
|
278
|
+
name: zod.ZodOptional<zod.ZodString>;
|
|
279
|
+
description: zod.ZodOptional<zod.ZodString>;
|
|
280
|
+
price: zod.ZodOptional<zod.ZodEffects<zod.ZodNumber, number, unknown>>;
|
|
281
|
+
cadence: zod.ZodOptional<zod.ZodUnion<[{ [K in keyof T]: zod.ZodLiteral<T[K]>; }[keyof T]]>>;
|
|
282
|
+
features: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
|
|
283
|
+
extraFields: zod.ZodOptional<zod.ZodUnknown>;
|
|
284
|
+
externalId: zod.ZodOptional<zod.ZodString>;
|
|
285
|
+
billingProvider: zod.ZodOptional<zod.ZodUnion<[{ [K_1 in keyof U_4]: zod.ZodLiteral<U_4[K_1]>; }[keyof U_4]]>>;
|
|
286
|
+
active: zod.ZodOptional<zod.ZodEffects<zod.ZodBoolean, boolean, unknown>>;
|
|
287
|
+
};
|
|
288
|
+
PlanSchema: <T extends Record<string, _forklaunch_validator.LiteralSchema>, U_5 extends Record<string, _forklaunch_validator.LiteralSchema>>(PlanCadenceEnum: T, BillingProviderEnum: U_5) => {
|
|
289
|
+
id: zod.ZodString;
|
|
290
|
+
name: zod.ZodString;
|
|
291
|
+
description: zod.ZodOptional<zod.ZodString>;
|
|
292
|
+
price: zod.ZodEffects<zod.ZodNumber, number, unknown>;
|
|
293
|
+
cadence: zod.ZodUnion<[{ [K in keyof T]: zod.ZodLiteral<T[K]>; }[keyof T]]>;
|
|
294
|
+
features: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
|
|
295
|
+
extraFields: zod.ZodOptional<zod.ZodUnknown>;
|
|
296
|
+
externalId: zod.ZodString;
|
|
297
|
+
billingProvider: zod.ZodOptional<zod.ZodUnion<[{ [K_1 in keyof U_5]: zod.ZodLiteral<U_5[K_1]>; }[keyof U_5]]>>;
|
|
298
|
+
active: zod.ZodEffects<zod.ZodBoolean, boolean, unknown>;
|
|
299
|
+
createdAt: zod.ZodOptional<zod.ZodEffects<zod.ZodDate, Date, unknown>>;
|
|
300
|
+
updatedAt: zod.ZodOptional<zod.ZodEffects<zod.ZodDate, Date, unknown>>;
|
|
301
|
+
};
|
|
302
|
+
}>;
|
|
303
|
+
|
|
304
|
+
declare const BaseSubscriptionServiceSchemas: <SchemaValidator extends _forklaunch_validator.AnySchemaValidator>(options: {
|
|
305
|
+
uuidId: boolean;
|
|
306
|
+
} & {
|
|
307
|
+
validator: SchemaValidator;
|
|
308
|
+
}) => _forklaunch_core_mappers.SchemasByValidator<SchemaValidator, (options: {
|
|
309
|
+
uuidId: boolean;
|
|
310
|
+
}) => {
|
|
311
|
+
CreateSubscriptionSchema: <T extends Record<string, _forklaunch_validator.LiteralSchema>, U extends Record<string, _forklaunch_validator.LiteralSchema>>(PartyEnum: T, BillingProviderEnum: U) => {
|
|
312
|
+
partyId: _sinclair_typebox.TString;
|
|
313
|
+
partyType: _sinclair_typebox.TUnion<[{ [K in keyof T]: _sinclair_typebox.TLiteral<T[K]>; }[keyof T]]>;
|
|
314
|
+
productId: _sinclair_typebox.TString;
|
|
315
|
+
description: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
316
|
+
active: _sinclair_typebox.TTransform<_sinclair_typebox.TUnion<[_sinclair_typebox.TBoolean, _sinclair_typebox.TString]>, boolean>;
|
|
317
|
+
externalId: _sinclair_typebox.TString;
|
|
318
|
+
startDate: _sinclair_typebox.TTransform<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber, _sinclair_typebox.TDate]>, Date>;
|
|
319
|
+
endDate: _sinclair_typebox.TTransform<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber, _sinclair_typebox.TDate]>, Date>;
|
|
320
|
+
status: _sinclair_typebox.TString;
|
|
321
|
+
billingProvider: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[{ [K_1 in keyof U]: _sinclair_typebox.TLiteral<U[K_1]>; }[keyof U]]>>;
|
|
322
|
+
extraFields: _sinclair_typebox.TOptional<_sinclair_typebox.TUnknown>;
|
|
323
|
+
};
|
|
324
|
+
UpdateSubscriptionSchema: <T extends Record<string, _forklaunch_validator.LiteralSchema>, U_1 extends Record<string, _forklaunch_validator.LiteralSchema>>(PartyEnum: T, BillingProviderEnum: U_1) => {
|
|
325
|
+
id: _sinclair_typebox.TString;
|
|
326
|
+
partyId: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
327
|
+
partyType: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[{ [K in keyof T]: _sinclair_typebox.TLiteral<T[K]>; }[keyof T]]>>;
|
|
328
|
+
productId: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
329
|
+
description: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
330
|
+
active: _sinclair_typebox.TOptional<_sinclair_typebox.TTransform<_sinclair_typebox.TUnion<[_sinclair_typebox.TBoolean, _sinclair_typebox.TString]>, boolean>>;
|
|
331
|
+
externalId: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
332
|
+
startDate: _sinclair_typebox.TOptional<_sinclair_typebox.TTransform<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber, _sinclair_typebox.TDate]>, Date>>;
|
|
333
|
+
endDate: _sinclair_typebox.TOptional<_sinclair_typebox.TTransform<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber, _sinclair_typebox.TDate]>, Date>>;
|
|
334
|
+
status: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
335
|
+
billingProvider: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[{ [K_1 in keyof U_1]: _sinclair_typebox.TLiteral<U_1[K_1]>; }[keyof U_1]]>>;
|
|
336
|
+
extraFields: _sinclair_typebox.TOptional<_sinclair_typebox.TUnknown>;
|
|
337
|
+
};
|
|
338
|
+
SubscriptionSchema: <T extends Record<string, _forklaunch_validator.LiteralSchema>, U_2 extends Record<string, _forklaunch_validator.LiteralSchema>>(PartyEnum: T, BillingProviderEnum: U_2) => {
|
|
339
|
+
id: _sinclair_typebox.TString;
|
|
340
|
+
partyId: _sinclair_typebox.TString;
|
|
341
|
+
partyType: _sinclair_typebox.TUnion<[{ [K in keyof T]: _sinclair_typebox.TLiteral<T[K]>; }[keyof T]]>;
|
|
342
|
+
productId: _sinclair_typebox.TString;
|
|
343
|
+
description: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
344
|
+
active: _sinclair_typebox.TTransform<_sinclair_typebox.TUnion<[_sinclair_typebox.TBoolean, _sinclair_typebox.TString]>, boolean>;
|
|
345
|
+
externalId: _sinclair_typebox.TString;
|
|
346
|
+
startDate: _sinclair_typebox.TTransform<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber, _sinclair_typebox.TDate]>, Date>;
|
|
347
|
+
endDate: _sinclair_typebox.TTransform<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber, _sinclair_typebox.TDate]>, Date>;
|
|
348
|
+
status: _sinclair_typebox.TString;
|
|
349
|
+
billingProvider: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[{ [K_1 in keyof U_2]: _sinclair_typebox.TLiteral<U_2[K_1]>; }[keyof U_2]]>>;
|
|
350
|
+
extraFields: _sinclair_typebox.TOptional<_sinclair_typebox.TUnknown>;
|
|
351
|
+
createdAt: _sinclair_typebox.TOptional<_sinclair_typebox.TTransform<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber, _sinclair_typebox.TDate]>, Date>>;
|
|
352
|
+
updatedAt: _sinclair_typebox.TOptional<_sinclair_typebox.TTransform<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber, _sinclair_typebox.TDate]>, Date>>;
|
|
353
|
+
};
|
|
354
|
+
}, (options: {
|
|
355
|
+
uuidId: boolean;
|
|
356
|
+
}) => {
|
|
357
|
+
CreateSubscriptionSchema: <T extends Record<string, _forklaunch_validator.LiteralSchema>, U_3 extends Record<string, _forklaunch_validator.LiteralSchema>>(PartyEnum: T, BillingProviderEnum: U_3) => {
|
|
358
|
+
partyId: zod.ZodString;
|
|
359
|
+
partyType: zod.ZodUnion<[{ [K in keyof T]: zod.ZodLiteral<T[K]>; }[keyof T]]>;
|
|
360
|
+
productId: zod.ZodString;
|
|
361
|
+
description: zod.ZodOptional<zod.ZodString>;
|
|
362
|
+
active: zod.ZodEffects<zod.ZodBoolean, boolean, unknown>;
|
|
363
|
+
externalId: zod.ZodString;
|
|
364
|
+
startDate: zod.ZodEffects<zod.ZodDate, Date, unknown>;
|
|
365
|
+
endDate: zod.ZodEffects<zod.ZodDate, Date, unknown>;
|
|
366
|
+
status: zod.ZodString;
|
|
367
|
+
billingProvider: zod.ZodOptional<zod.ZodUnion<[{ [K_1 in keyof U_3]: zod.ZodLiteral<U_3[K_1]>; }[keyof U_3]]>>;
|
|
368
|
+
extraFields: zod.ZodOptional<zod.ZodUnknown>;
|
|
369
|
+
};
|
|
370
|
+
UpdateSubscriptionSchema: <T extends Record<string, _forklaunch_validator.LiteralSchema>, U_4 extends Record<string, _forklaunch_validator.LiteralSchema>>(PartyEnum: T, BillingProviderEnum: U_4) => {
|
|
371
|
+
id: zod.ZodString;
|
|
372
|
+
partyId: zod.ZodOptional<zod.ZodString>;
|
|
373
|
+
partyType: zod.ZodOptional<zod.ZodUnion<[{ [K in keyof T]: zod.ZodLiteral<T[K]>; }[keyof T]]>>;
|
|
374
|
+
productId: zod.ZodOptional<zod.ZodString>;
|
|
375
|
+
description: zod.ZodOptional<zod.ZodString>;
|
|
376
|
+
active: zod.ZodOptional<zod.ZodEffects<zod.ZodBoolean, boolean, unknown>>;
|
|
377
|
+
externalId: zod.ZodOptional<zod.ZodString>;
|
|
378
|
+
startDate: zod.ZodOptional<zod.ZodEffects<zod.ZodDate, Date, unknown>>;
|
|
379
|
+
endDate: zod.ZodOptional<zod.ZodEffects<zod.ZodDate, Date, unknown>>;
|
|
380
|
+
status: zod.ZodOptional<zod.ZodString>;
|
|
381
|
+
billingProvider: zod.ZodOptional<zod.ZodUnion<[{ [K_1 in keyof U_4]: zod.ZodLiteral<U_4[K_1]>; }[keyof U_4]]>>;
|
|
382
|
+
extraFields: zod.ZodOptional<zod.ZodUnknown>;
|
|
383
|
+
};
|
|
384
|
+
SubscriptionSchema: <T extends Record<string, _forklaunch_validator.LiteralSchema>, U_5 extends Record<string, _forklaunch_validator.LiteralSchema>>(PartyEnum: T, BillingProviderEnum: U_5) => {
|
|
385
|
+
id: zod.ZodString;
|
|
386
|
+
partyId: zod.ZodString;
|
|
387
|
+
partyType: zod.ZodUnion<[{ [K in keyof T]: zod.ZodLiteral<T[K]>; }[keyof T]]>;
|
|
388
|
+
productId: zod.ZodString;
|
|
389
|
+
description: zod.ZodOptional<zod.ZodString>;
|
|
390
|
+
active: zod.ZodEffects<zod.ZodBoolean, boolean, unknown>;
|
|
391
|
+
externalId: zod.ZodString;
|
|
392
|
+
startDate: zod.ZodEffects<zod.ZodDate, Date, unknown>;
|
|
393
|
+
endDate: zod.ZodEffects<zod.ZodDate, Date, unknown>;
|
|
394
|
+
status: zod.ZodString;
|
|
395
|
+
billingProvider: zod.ZodOptional<zod.ZodUnion<[{ [K_1 in keyof U_5]: zod.ZodLiteral<U_5[K_1]>; }[keyof U_5]]>>;
|
|
396
|
+
extraFields: zod.ZodOptional<zod.ZodUnknown>;
|
|
397
|
+
createdAt: zod.ZodOptional<zod.ZodEffects<zod.ZodDate, Date, unknown>>;
|
|
398
|
+
updatedAt: zod.ZodOptional<zod.ZodEffects<zod.ZodDate, Date, unknown>>;
|
|
399
|
+
};
|
|
400
|
+
}>;
|
|
401
|
+
|
|
402
|
+
export { BaseBillingPortalServiceSchemas, BaseCheckoutSessionServiceSchemas, BasePaymentLinkServiceSchemas, BasePlanServiceSchemas, BaseSubscriptionServiceSchemas };
|