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