@forklaunch/implementation-billing-base 0.2.3 → 0.3.1

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.
Files changed (81) hide show
  1. package/lib/schemas/index.d.mts +402 -0
  2. package/lib/schemas/index.d.ts +402 -6
  3. package/lib/schemas/index.js +498 -5
  4. package/lib/schemas/index.mjs +547 -0
  5. package/lib/services/index.d.mts +255 -0
  6. package/lib/services/index.d.ts +255 -6
  7. package/lib/services/index.js +610 -5
  8. package/lib/services/index.mjs +599 -0
  9. package/package.json +6 -5
  10. package/lib/__test__/schemaEquality.test.d.ts +0 -2
  11. package/lib/__test__/schemaEquality.test.d.ts.map +0 -1
  12. package/lib/__test__/schemaEquality.test.js +0 -430
  13. package/lib/jest.config.d.ts +0 -4
  14. package/lib/jest.config.d.ts.map +0 -1
  15. package/lib/jest.config.js +0 -19
  16. package/lib/schemas/billingPortal.schema.d.ts +0 -119
  17. package/lib/schemas/billingPortal.schema.d.ts.map +0 -1
  18. package/lib/schemas/billingPortal.schema.js +0 -7
  19. package/lib/schemas/checkoutSession.schema.d.ts +0 -265
  20. package/lib/schemas/checkoutSession.schema.d.ts.map +0 -1
  21. package/lib/schemas/checkoutSession.schema.js +0 -7
  22. package/lib/schemas/index.d.ts.map +0 -1
  23. package/lib/schemas/paymentLink.schema.d.ts +0 -319
  24. package/lib/schemas/paymentLink.schema.d.ts.map +0 -1
  25. package/lib/schemas/paymentLink.schema.js +0 -7
  26. package/lib/schemas/plan.schema.d.ts +0 -338
  27. package/lib/schemas/plan.schema.d.ts.map +0 -1
  28. package/lib/schemas/plan.schema.js +0 -7
  29. package/lib/schemas/subscription.schema.d.ts +0 -366
  30. package/lib/schemas/subscription.schema.d.ts.map +0 -1
  31. package/lib/schemas/subscription.schema.js +0 -7
  32. package/lib/schemas/typebox/billingPortal.schema.d.ts +0 -161
  33. package/lib/schemas/typebox/billingPortal.schema.d.ts.map +0 -1
  34. package/lib/schemas/typebox/billingPortal.schema.js +0 -31
  35. package/lib/schemas/typebox/checkoutSession.schema.d.ts +0 -316
  36. package/lib/schemas/typebox/checkoutSession.schema.d.ts.map +0 -1
  37. package/lib/schemas/typebox/checkoutSession.schema.js +0 -50
  38. package/lib/schemas/typebox/paymentLink.schema.d.ts +0 -406
  39. package/lib/schemas/typebox/paymentLink.schema.d.ts.map +0 -1
  40. package/lib/schemas/typebox/paymentLink.schema.js +0 -55
  41. package/lib/schemas/typebox/plan.schema.d.ts +0 -408
  42. package/lib/schemas/typebox/plan.schema.d.ts.map +0 -1
  43. package/lib/schemas/typebox/plan.schema.js +0 -57
  44. package/lib/schemas/typebox/subscription.schema.d.ts +0 -456
  45. package/lib/schemas/typebox/subscription.schema.d.ts.map +0 -1
  46. package/lib/schemas/typebox/subscription.schema.js +0 -61
  47. package/lib/schemas/zod/billingPortal.schema.d.ts +0 -63
  48. package/lib/schemas/zod/billingPortal.schema.d.ts.map +0 -1
  49. package/lib/schemas/zod/billingPortal.schema.js +0 -31
  50. package/lib/schemas/zod/checkoutSession.schema.d.ts +0 -176
  51. package/lib/schemas/zod/checkoutSession.schema.d.ts.map +0 -1
  52. package/lib/schemas/zod/checkoutSession.schema.js +0 -50
  53. package/lib/schemas/zod/paymentLink.schema.d.ts +0 -172
  54. package/lib/schemas/zod/paymentLink.schema.d.ts.map +0 -1
  55. package/lib/schemas/zod/paymentLink.schema.js +0 -55
  56. package/lib/schemas/zod/plan.schema.d.ts +0 -196
  57. package/lib/schemas/zod/plan.schema.d.ts.map +0 -1
  58. package/lib/schemas/zod/plan.schema.js +0 -57
  59. package/lib/schemas/zod/subscription.schema.d.ts +0 -204
  60. package/lib/schemas/zod/subscription.schema.d.ts.map +0 -1
  61. package/lib/schemas/zod/subscription.schema.js +0 -61
  62. package/lib/services/billingPortal.service.d.ts +0 -112
  63. package/lib/services/billingPortal.service.d.ts.map +0 -1
  64. package/lib/services/billingPortal.service.js +0 -128
  65. package/lib/services/checkoutSession.service.d.ts +0 -137
  66. package/lib/services/checkoutSession.service.d.ts.map +0 -1
  67. package/lib/services/checkoutSession.service.js +0 -111
  68. package/lib/services/index.d.ts.map +0 -1
  69. package/lib/services/paymentLink.service.d.ts +0 -118
  70. package/lib/services/paymentLink.service.d.ts.map +0 -1
  71. package/lib/services/paymentLink.service.js +0 -154
  72. package/lib/services/plan.service.d.ts +0 -102
  73. package/lib/services/plan.service.d.ts.map +0 -1
  74. package/lib/services/plan.service.js +0 -80
  75. package/lib/services/subscription.service.d.ts +0 -159
  76. package/lib/services/subscription.service.d.ts.map +0 -1
  77. package/lib/services/subscription.service.js +0 -169
  78. package/lib/tsconfig.tsbuildinfo +0 -1
  79. package/lib/vitest.config.d.ts +0 -3
  80. package/lib/vitest.config.d.ts.map +0 -1
  81. package/lib/vitest.config.js +0 -7
@@ -1,430 +0,0 @@
1
- import { isTrue } from '@forklaunch/common';
2
- import { DummyEnum, testSchemaEquality } from '@forklaunch/core/test';
3
- import {
4
- BillingPortalSchema as TypeboxBillingPortalSchema,
5
- CreateBillingPortalSchema as TypeboxCreateBillingPortalSchema,
6
- UpdateBillingPortalSchema as TypeboxUpdateBillingPortalSchema
7
- } from '../schemas/typebox/billingPortal.schema';
8
- import {
9
- CheckoutSessionSchema as TypeboxCheckoutSessionSchema,
10
- CreateCheckoutSessionSchema as TypeboxCreateCheckoutSessionSchema,
11
- UpdateCheckoutSessionSchema as TypeboxUpdateCheckoutSessionSchema
12
- } from '../schemas/typebox/checkoutSession.schema';
13
- import {
14
- CreatePaymentLinkSchema as TypeboxCreatePaymentLinkSchema,
15
- PaymentLinkSchema as TypeboxPaymentLinkSchema,
16
- UpdatePaymentLinkSchema as TypeboxUpdatePaymentLinkSchema
17
- } from '../schemas/typebox/paymentLink.schema';
18
- import {
19
- CreatePlanSchema as TypeboxCreatePlanSchema,
20
- PlanSchema as TypeboxPlanSchema,
21
- UpdatePlanSchema as TypeboxUpdatePlanSchema
22
- } from '../schemas/typebox/plan.schema';
23
- import {
24
- CreateSubscriptionSchema as TypeboxCreateSubscriptionSchema,
25
- SubscriptionSchema as TypeboxSubscriptionSchema,
26
- UpdateSubscriptionSchema as TypeboxUpdateSubscriptionSchema
27
- } from '../schemas/typebox/subscription.schema';
28
- import {
29
- BillingPortalSchema as ZodBillingPortalSchema,
30
- CreateBillingPortalSchema as ZodCreateBillingPortalSchema,
31
- UpdateBillingPortalSchema as ZodUpdateBillingPortalSchema
32
- } from '../schemas/zod/billingPortal.schema';
33
- import {
34
- CheckoutSessionSchema as ZodCheckoutSessionSchema,
35
- CreateCheckoutSessionSchema as ZodCreateCheckoutSessionSchema,
36
- UpdateCheckoutSessionSchema as ZodUpdateCheckoutSessionSchema
37
- } from '../schemas/zod/checkoutSession.schema';
38
- import {
39
- CreatePaymentLinkSchema as ZodCreatePaymentLinkSchema,
40
- PaymentLinkSchema as ZodPaymentLinkSchema,
41
- UpdatePaymentLinkSchema as ZodUpdatePaymentLinkSchema
42
- } from '../schemas/zod/paymentLink.schema';
43
- import {
44
- CreatePlanSchema as ZodCreatePlanSchema,
45
- PlanSchema as ZodPlanSchema,
46
- UpdatePlanSchema as ZodUpdatePlanSchema
47
- } from '../schemas/zod/plan.schema';
48
- import {
49
- CreateSubscriptionSchema as ZodCreateSubscriptionSchema,
50
- SubscriptionSchema as ZodSubscriptionSchema,
51
- UpdateSubscriptionSchema as ZodUpdateSubscriptionSchema
52
- } from '../schemas/zod/subscription.schema';
53
- const zodUpdateBillingPortalSchema = ZodUpdateBillingPortalSchema({
54
- uuidId: false
55
- });
56
- const typeboxUpdateBillingPortalSchema = TypeboxUpdateBillingPortalSchema({
57
- uuidId: false
58
- });
59
- const zodBillingPortalSchema = ZodBillingPortalSchema({ uuidId: false });
60
- const typeboxBillingPortalSchema = TypeboxBillingPortalSchema({
61
- uuidId: false
62
- });
63
- const zodCreateCheckoutSessionSchema = ZodCreateCheckoutSessionSchema(
64
- DummyEnum,
65
- DummyEnum
66
- );
67
- const typeboxCreateCheckoutSessionSchema = TypeboxCreateCheckoutSessionSchema(
68
- DummyEnum,
69
- DummyEnum
70
- );
71
- const zodUpdateCheckoutSessionSchema = ZodUpdateCheckoutSessionSchema({
72
- uuidId: false
73
- })(DummyEnum, DummyEnum);
74
- const typeboxUpdateCheckoutSessionSchema = TypeboxUpdateCheckoutSessionSchema({
75
- uuidId: false
76
- })(DummyEnum, DummyEnum);
77
- const zodCheckoutSessionSchema = ZodCheckoutSessionSchema({ uuidId: true })(
78
- DummyEnum,
79
- DummyEnum
80
- );
81
- const typeboxCheckoutSessionSchema = TypeboxCheckoutSessionSchema({
82
- uuidId: true
83
- })(DummyEnum, DummyEnum);
84
- const zodCreatePaymentLinkSchema = ZodCreatePaymentLinkSchema(
85
- DummyEnum,
86
- DummyEnum
87
- );
88
- const typeboxCreatePaymentLinkSchema = TypeboxCreatePaymentLinkSchema(
89
- DummyEnum,
90
- DummyEnum
91
- );
92
- const zodUpdatePaymentLinkSchema = ZodUpdatePaymentLinkSchema({
93
- uuidId: false
94
- })(DummyEnum, DummyEnum);
95
- const typeboxUpdatePaymentLinkSchema = TypeboxUpdatePaymentLinkSchema({
96
- uuidId: false
97
- })(DummyEnum, DummyEnum);
98
- const zodPaymentLinkSchema = ZodPaymentLinkSchema({ uuidId: true })(
99
- DummyEnum,
100
- DummyEnum
101
- );
102
- const typeboxPaymentLinkSchema = TypeboxPaymentLinkSchema({
103
- uuidId: false
104
- })(DummyEnum, DummyEnum);
105
- const zodCreatePlanSchema = ZodCreatePlanSchema(DummyEnum, DummyEnum);
106
- const typeboxCreatePlanSchema = TypeboxCreatePlanSchema(DummyEnum, DummyEnum);
107
- const zodUpdatePlanSchema = ZodUpdatePlanSchema({ uuidId: false })(
108
- DummyEnum,
109
- DummyEnum
110
- );
111
- const typeboxUpdatePlanSchema = TypeboxUpdatePlanSchema({ uuidId: false })(
112
- DummyEnum,
113
- DummyEnum
114
- );
115
- const zodPlanSchema = ZodPlanSchema({ uuidId: true })(DummyEnum, DummyEnum);
116
- const typeboxPlanSchema = TypeboxPlanSchema({ uuidId: true })(
117
- DummyEnum,
118
- DummyEnum
119
- );
120
- const zodCreateSubscriptionSchema = ZodCreateSubscriptionSchema(
121
- DummyEnum,
122
- DummyEnum
123
- );
124
- const typeboxCreateSubscriptionSchema = TypeboxCreateSubscriptionSchema(
125
- DummyEnum,
126
- DummyEnum
127
- );
128
- const zodUpdateSubscriptionSchema = ZodUpdateSubscriptionSchema({
129
- uuidId: false
130
- })(DummyEnum, DummyEnum);
131
- const typeboxUpdateSubscriptionSchema = TypeboxUpdateSubscriptionSchema({
132
- uuidId: false
133
- })(DummyEnum, DummyEnum);
134
- const zodSubscriptionSchema = ZodSubscriptionSchema({ uuidId: true })(
135
- DummyEnum,
136
- DummyEnum
137
- );
138
- const typeboxSubscriptionSchema = TypeboxSubscriptionSchema({
139
- uuidId: true
140
- })(DummyEnum, DummyEnum);
141
- describe('schema equality', () => {
142
- it('should be equal for billing portal', () => {
143
- expect(
144
- isTrue(
145
- testSchemaEquality(
146
- ZodCreateBillingPortalSchema,
147
- TypeboxCreateBillingPortalSchema,
148
- {
149
- customerId: 'test',
150
- uri: 'https://example.com',
151
- expiresAt: new Date()
152
- }
153
- )
154
- )
155
- ).toBeTruthy();
156
- expect(
157
- isTrue(
158
- testSchemaEquality(
159
- zodUpdateBillingPortalSchema,
160
- typeboxUpdateBillingPortalSchema,
161
- {
162
- id: 'test',
163
- uri: 'https://example.com',
164
- expiresAt: new Date()
165
- }
166
- )
167
- )
168
- ).toBeTruthy();
169
- expect(
170
- isTrue(
171
- testSchemaEquality(zodBillingPortalSchema, typeboxBillingPortalSchema, {
172
- id: 'test',
173
- customerId: 'test',
174
- uri: 'https://example.com',
175
- expiresAt: new Date(),
176
- extraFields: {
177
- test: 'test'
178
- }
179
- })
180
- )
181
- ).toBeTruthy();
182
- });
183
- it('should be equal for checkout session', () => {
184
- expect(
185
- isTrue(
186
- testSchemaEquality(
187
- zodCreateCheckoutSessionSchema,
188
- typeboxCreateCheckoutSessionSchema,
189
- {
190
- customerId: 'test',
191
- paymentMethods: [DummyEnum.A, DummyEnum.B],
192
- successRedirectUri: 'https://example.com',
193
- cancelRedirectUri: 'https://example.com',
194
- expiresAt: new Date(),
195
- status: DummyEnum.A,
196
- extraFields: {
197
- test: 'test'
198
- }
199
- }
200
- )
201
- )
202
- ).toBeTruthy();
203
- expect(
204
- isTrue(
205
- testSchemaEquality(
206
- zodUpdateCheckoutSessionSchema,
207
- typeboxUpdateCheckoutSessionSchema,
208
- {
209
- id: 'test',
210
- customerId: 'test',
211
- paymentMethods: [DummyEnum.A, DummyEnum.B],
212
- successRedirectUri: 'https://example.com',
213
- cancelRedirectUri: 'https://example.com',
214
- extraFields: {
215
- test: 'test'
216
- }
217
- }
218
- )
219
- )
220
- ).toBeTruthy();
221
- expect(
222
- isTrue(
223
- testSchemaEquality(
224
- zodCheckoutSessionSchema,
225
- typeboxCheckoutSessionSchema,
226
- {
227
- id: 'test',
228
- customerId: 'test',
229
- paymentMethods: [DummyEnum.A, DummyEnum.B],
230
- successRedirectUri: 'https://example.com',
231
- cancelRedirectUri: 'https://example.com',
232
- expiresAt: new Date(),
233
- status: DummyEnum.A,
234
- extraFields: {
235
- test: 'test'
236
- }
237
- }
238
- )
239
- )
240
- ).toBeTruthy();
241
- });
242
- it('should be equal for payment link', () => {
243
- expect(
244
- isTrue(
245
- testSchemaEquality(
246
- zodCreatePaymentLinkSchema,
247
- typeboxCreatePaymentLinkSchema,
248
- {
249
- amount: 100,
250
- currency: DummyEnum.A,
251
- successRedirectUri: 'https://example.com',
252
- cancelRedirectUri: 'https://example.com',
253
- description: 'test',
254
- metadata: {
255
- test: 'test'
256
- },
257
- expiresAt: new Date(),
258
- status: DummyEnum.A,
259
- extraFields: {
260
- test: 'test'
261
- }
262
- }
263
- )
264
- )
265
- ).toBeTruthy();
266
- expect(
267
- isTrue(
268
- testSchemaEquality(
269
- zodUpdatePaymentLinkSchema,
270
- typeboxUpdatePaymentLinkSchema,
271
- {
272
- id: 'test',
273
- amount: 100,
274
- currency: DummyEnum.A,
275
- successRedirectUri: 'https://example.com',
276
- cancelRedirectUri: 'https://example.com',
277
- description: 'test',
278
- metadata: {
279
- test: 'test'
280
- },
281
- extraFields: {
282
- test: 'test'
283
- }
284
- }
285
- )
286
- )
287
- );
288
- expect(
289
- isTrue(
290
- testSchemaEquality(zodPaymentLinkSchema, typeboxPaymentLinkSchema, {
291
- id: 'test',
292
- amount: 100,
293
- currency: DummyEnum.A,
294
- successRedirectUri: 'https://example.com',
295
- cancelRedirectUri: 'https://example.com',
296
- description: 'test',
297
- metadata: {
298
- test: 'test'
299
- },
300
- expiresAt: new Date(),
301
- status: DummyEnum.A,
302
- extraFields: {
303
- test: 'test'
304
- }
305
- })
306
- )
307
- ).toBeTruthy();
308
- });
309
- it('should be equal for plan', () => {
310
- expect(
311
- isTrue(
312
- testSchemaEquality(zodCreatePlanSchema, typeboxCreatePlanSchema, {
313
- name: 'test',
314
- price: 100,
315
- cadence: DummyEnum.A,
316
- features: [DummyEnum.A, DummyEnum.B],
317
- externalId: 'test',
318
- active: true,
319
- description: 'test',
320
- extraFields: {
321
- test: 'test'
322
- }
323
- })
324
- )
325
- ).toBeTruthy();
326
- expect(
327
- isTrue(
328
- testSchemaEquality(zodUpdatePlanSchema, typeboxUpdatePlanSchema, {
329
- id: 'test',
330
- name: 'test',
331
- price: 100,
332
- cadence: DummyEnum.A,
333
- features: [DummyEnum.A, DummyEnum.B],
334
- externalId: 'test',
335
- active: true,
336
- description: 'test',
337
- extraFields: {
338
- test: 'test'
339
- }
340
- })
341
- )
342
- ).toBeTruthy();
343
- expect(
344
- isTrue(
345
- testSchemaEquality(zodPlanSchema, typeboxPlanSchema, {
346
- id: 'test',
347
- name: 'test',
348
- price: 100,
349
- cadence: DummyEnum.A,
350
- features: [DummyEnum.A, DummyEnum.B],
351
- externalId: 'test',
352
- active: true,
353
- description: 'test',
354
- extraFields: {
355
- test: 'test'
356
- }
357
- })
358
- )
359
- ).toBeTruthy();
360
- });
361
- it('should be equal for subscription', () => {
362
- expect(
363
- isTrue(
364
- testSchemaEquality(
365
- zodCreateSubscriptionSchema,
366
- typeboxCreateSubscriptionSchema,
367
- {
368
- partyId: 'test',
369
- partyType: DummyEnum.A,
370
- productId: 'test',
371
- status: DummyEnum.A,
372
- active: true,
373
- externalId: 'test',
374
- startDate: new Date(),
375
- endDate: new Date(),
376
- description: 'test',
377
- extraFields: {
378
- test: 'test'
379
- },
380
- billingProvider: DummyEnum.A
381
- }
382
- )
383
- )
384
- ).toBeTruthy();
385
- expect(
386
- isTrue(
387
- testSchemaEquality(
388
- zodUpdateSubscriptionSchema,
389
- typeboxUpdateSubscriptionSchema,
390
- {
391
- id: 'test',
392
- partyId: 'test',
393
- partyType: DummyEnum.A,
394
- productId: 'test',
395
- status: DummyEnum.A,
396
- active: true,
397
- externalId: 'test',
398
- startDate: new Date(),
399
- endDate: new Date(),
400
- description: 'test',
401
- extraFields: {
402
- test: 'test'
403
- },
404
- billingProvider: DummyEnum.A
405
- }
406
- )
407
- )
408
- ).toBeTruthy();
409
- expect(
410
- isTrue(
411
- testSchemaEquality(zodSubscriptionSchema, typeboxSubscriptionSchema, {
412
- id: 'test',
413
- partyId: 'test',
414
- partyType: DummyEnum.A,
415
- productId: 'test',
416
- status: DummyEnum.A,
417
- active: true,
418
- externalId: 'test',
419
- startDate: new Date(),
420
- endDate: new Date(),
421
- description: 'test',
422
- extraFields: {
423
- test: 'test'
424
- },
425
- billingProvider: DummyEnum.A
426
- })
427
- )
428
- ).toBeTruthy();
429
- });
430
- });
@@ -1,4 +0,0 @@
1
- import type { JestConfigWithTsJest } from 'ts-jest';
2
- declare const jestConfig: JestConfigWithTsJest;
3
- export default jestConfig;
4
- //# sourceMappingURL=jest.config.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"jest.config.d.ts","sourceRoot":"","sources":["../jest.config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAEpD,QAAA,MAAM,UAAU,EAAE,oBAiBjB,CAAC;AAEF,eAAe,UAAU,CAAC"}
@@ -1,19 +0,0 @@
1
- const jestConfig = {
2
- preset: 'ts-jest/presets/default-esm', // or other ESM presets
3
- moduleNameMapper: {
4
- '^(\\.{1,2}/.*)\\.js$': '$1'
5
- },
6
- transform: {
7
- // '^.+\\.[tj]sx?$' to process ts,js,tsx,jsx with `ts-jest`
8
- // '^.+\\.m?[tj]sx?$' to process ts,js,tsx,jsx,mts,mjs,mtsx,mjsx with `ts-jest`
9
- '^.+\\.[tj]sx?$': [
10
- 'ts-jest',
11
- {
12
- useESM: true
13
- }
14
- ],
15
- '^.+\\.js$': 'babel-jest'
16
- },
17
- testPathIgnorePatterns: ['.*dist/', '.*node_modules/']
18
- };
19
- export default jestConfig;
@@ -1,119 +0,0 @@
1
- export declare const BaseBillingPortalServiceSchemas: <
2
- SchemaValidator extends import('@forklaunch/validator').AnySchemaValidator
3
- >(
4
- options: {
5
- uuidId: boolean;
6
- } & {
7
- validator: SchemaValidator;
8
- }
9
- ) => import('@forklaunch/core/mappers').SchemasByValidator<
10
- SchemaValidator,
11
- (options: {
12
- uuidId: boolean;
13
- }) => {
14
- CreateBillingPortalSchema: {
15
- customerId: import('@sinclair/typebox').TString;
16
- uri: import('@sinclair/typebox').TString;
17
- expiresAt: import('@sinclair/typebox').TTransform<
18
- import('@sinclair/typebox').TUnion<
19
- [
20
- import('@sinclair/typebox').TString,
21
- import('@sinclair/typebox').TNumber,
22
- import('@sinclair/typebox').TDate
23
- ]
24
- >,
25
- Date
26
- >;
27
- };
28
- UpdateBillingPortalSchema: {
29
- id: import('@sinclair/typebox').TString;
30
- uri: import('@sinclair/typebox').TOptional<
31
- import('@sinclair/typebox').TString
32
- >;
33
- expiresAt: import('@sinclair/typebox').TOptional<
34
- import('@sinclair/typebox').TTransform<
35
- import('@sinclair/typebox').TUnion<
36
- [
37
- import('@sinclair/typebox').TString,
38
- import('@sinclair/typebox').TNumber,
39
- import('@sinclair/typebox').TDate
40
- ]
41
- >,
42
- Date
43
- >
44
- >;
45
- };
46
- BillingPortalSchema: {
47
- id: import('@sinclair/typebox').TString;
48
- customerId: import('@sinclair/typebox').TString;
49
- uri: import('@sinclair/typebox').TString;
50
- expiresAt: import('@sinclair/typebox').TTransform<
51
- import('@sinclair/typebox').TUnion<
52
- [
53
- import('@sinclair/typebox').TString,
54
- import('@sinclair/typebox').TNumber,
55
- import('@sinclair/typebox').TDate
56
- ]
57
- >,
58
- Date
59
- >;
60
- extraFields: import('@sinclair/typebox').TOptional<
61
- import('@sinclair/typebox').TUnknown
62
- >;
63
- createdAt: import('@sinclair/typebox').TOptional<
64
- import('@sinclair/typebox').TTransform<
65
- import('@sinclair/typebox').TUnion<
66
- [
67
- import('@sinclair/typebox').TString,
68
- import('@sinclair/typebox').TNumber,
69
- import('@sinclair/typebox').TDate
70
- ]
71
- >,
72
- Date
73
- >
74
- >;
75
- updatedAt: import('@sinclair/typebox').TOptional<
76
- import('@sinclair/typebox').TTransform<
77
- import('@sinclair/typebox').TUnion<
78
- [
79
- import('@sinclair/typebox').TString,
80
- import('@sinclair/typebox').TNumber,
81
- import('@sinclair/typebox').TDate
82
- ]
83
- >,
84
- Date
85
- >
86
- >;
87
- };
88
- },
89
- (options: {
90
- uuidId: boolean;
91
- }) => {
92
- CreateBillingPortalSchema: {
93
- customerId: import('zod').ZodString;
94
- uri: import('zod').ZodString;
95
- expiresAt: import('zod').ZodEffects<import('zod').ZodDate, Date, unknown>;
96
- };
97
- UpdateBillingPortalSchema: {
98
- id: import('zod').ZodString;
99
- uri: import('zod').ZodOptional<import('zod').ZodString>;
100
- expiresAt: import('zod').ZodOptional<
101
- import('zod').ZodEffects<import('zod').ZodDate, Date, unknown>
102
- >;
103
- };
104
- BillingPortalSchema: {
105
- id: import('zod').ZodString;
106
- customerId: import('zod').ZodString;
107
- uri: import('zod').ZodString;
108
- expiresAt: import('zod').ZodEffects<import('zod').ZodDate, Date, unknown>;
109
- extraFields: import('zod').ZodOptional<import('zod').ZodUnknown>;
110
- createdAt: import('zod').ZodOptional<
111
- import('zod').ZodEffects<import('zod').ZodDate, Date, unknown>
112
- >;
113
- updatedAt: import('zod').ZodOptional<
114
- import('zod').ZodEffects<import('zod').ZodDate, Date, unknown>
115
- >;
116
- };
117
- }
118
- >;
119
- //# sourceMappingURL=billingPortal.schema.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"billingPortal.schema.d.ts","sourceRoot":"","sources":["../../schemas/billingPortal.schema.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAG3C,CAAC"}
@@ -1,7 +0,0 @@
1
- import { serviceSchemaResolver } from '@forklaunch/core/mappers';
2
- import { BaseBillingPortalServiceSchemas as TypeBoxSchemas } from './typebox/billingPortal.schema';
3
- import { BaseBillingPortalServiceSchemas as ZodSchemas } from './zod/billingPortal.schema';
4
- export const BaseBillingPortalServiceSchemas = serviceSchemaResolver(
5
- TypeBoxSchemas,
6
- ZodSchemas
7
- );