@forklaunch/implementation-billing-base 0.3.0 → 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.
@@ -60,26 +60,26 @@ declare const BaseCheckoutSessionServiceSchemas: <SchemaValidator extends _forkl
60
60
  }) => _forklaunch_core_mappers.SchemasByValidator<SchemaValidator, (options: {
61
61
  uuidId: boolean;
62
62
  }) => {
63
- CreateCheckoutSessionSchema: <T extends Record<string, _forklaunch_validator.LiteralSchema>>(PaymentMethodEnum: T, StatusEnum: T) => {
63
+ CreateCheckoutSessionSchema: <T extends Record<string, _forklaunch_validator.LiteralSchema>, U extends Record<string, _forklaunch_validator.LiteralSchema>>(PaymentMethodEnum: T, StatusEnum: U) => {
64
64
  customerId: _sinclair_typebox.TString;
65
65
  paymentMethods: _sinclair_typebox.TArray<_sinclair_typebox.TUnion<[{ [K in keyof T]: _sinclair_typebox.TLiteral<T[K]>; }[keyof T]]>>;
66
66
  successRedirectUri: _sinclair_typebox.TString;
67
67
  cancelRedirectUri: _sinclair_typebox.TString;
68
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]]>;
69
+ status: _sinclair_typebox.TUnion<[{ [K_1 in keyof U]: _sinclair_typebox.TLiteral<U[K_1]>; }[keyof U]]>;
70
70
  extraFields: _sinclair_typebox.TOptional<_sinclair_typebox.TUnknown>;
71
71
  };
72
- UpdateCheckoutSessionSchema: <T extends Record<string, _forklaunch_validator.LiteralSchema>, U extends Record<string, _forklaunch_validator.LiteralSchema>>(PaymentMethodEnum: T, StatusEnum: U) => {
72
+ UpdateCheckoutSessionSchema: <T extends Record<string, _forklaunch_validator.LiteralSchema>, U_1 extends Record<string, _forklaunch_validator.LiteralSchema>>(PaymentMethodEnum: T, StatusEnum: U_1) => {
73
73
  id: _sinclair_typebox.TString;
74
74
  customerId: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
75
75
  paymentMethods: _sinclair_typebox.TOptional<_sinclair_typebox.TArray<_sinclair_typebox.TUnion<[{ [K in keyof T]: _sinclair_typebox.TLiteral<T[K]>; }[keyof T]]>>>;
76
76
  successRedirectUri: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
77
77
  cancelRedirectUri: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
78
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]]>>;
79
+ status: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[{ [K_1 in keyof U_1]: _sinclair_typebox.TLiteral<U_1[K_1]>; }[keyof U_1]]>>;
80
80
  extraFields: _sinclair_typebox.TOptional<_sinclair_typebox.TUnknown>;
81
81
  };
82
- CheckoutSessionSchema: <T extends Record<string, _forklaunch_validator.LiteralSchema>, U_1 extends Record<string, _forklaunch_validator.LiteralSchema>>(PaymentMethodEnum: T, StatusEnum: U_1) => {
82
+ CheckoutSessionSchema: <T extends Record<string, _forklaunch_validator.LiteralSchema>, U_2 extends Record<string, _forklaunch_validator.LiteralSchema>>(PaymentMethodEnum: T, StatusEnum: U_2) => {
83
83
  id: _sinclair_typebox.TString;
84
84
  customerId: _sinclair_typebox.TString;
85
85
  metadata: _sinclair_typebox.TOptional<_sinclair_typebox.TUnknown>;
@@ -87,7 +87,7 @@ declare const BaseCheckoutSessionServiceSchemas: <SchemaValidator extends _forkl
87
87
  successRedirectUri: _sinclair_typebox.TString;
88
88
  cancelRedirectUri: _sinclair_typebox.TString;
89
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]]>;
90
+ status: _sinclair_typebox.TUnion<[{ [K_1 in keyof U_2]: _sinclair_typebox.TLiteral<U_2[K_1]>; }[keyof U_2]]>;
91
91
  extraFields: _sinclair_typebox.TOptional<_sinclair_typebox.TUnknown>;
92
92
  createdAt: _sinclair_typebox.TOptional<_sinclair_typebox.TTransform<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber, _sinclair_typebox.TDate]>, Date>>;
93
93
  updatedAt: _sinclair_typebox.TOptional<_sinclair_typebox.TTransform<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber, _sinclair_typebox.TDate]>, Date>>;
@@ -95,26 +95,26 @@ declare const BaseCheckoutSessionServiceSchemas: <SchemaValidator extends _forkl
95
95
  }, (options: {
96
96
  uuidId: boolean;
97
97
  }) => {
98
- CreateCheckoutSessionSchema: <T extends Record<string, _forklaunch_validator.LiteralSchema>, U_2 extends Record<string, _forklaunch_validator.LiteralSchema>>(PaymentMethodEnum: T, StatusEnum: U_2) => {
98
+ CreateCheckoutSessionSchema: <T extends Record<string, _forklaunch_validator.LiteralSchema>, U_3 extends Record<string, _forklaunch_validator.LiteralSchema>>(PaymentMethodEnum: T, StatusEnum: U_3) => {
99
99
  customerId: zod.ZodString;
100
100
  paymentMethods: zod.ZodArray<zod.ZodUnion<[{ [K in keyof T]: zod.ZodLiteral<T[K]>; }[keyof T]]>, "many">;
101
101
  successRedirectUri: zod.ZodString;
102
102
  cancelRedirectUri: zod.ZodString;
103
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]]>;
104
+ status: zod.ZodUnion<[{ [K_1 in keyof U_3]: zod.ZodLiteral<U_3[K_1]>; }[keyof U_3]]>;
105
105
  extraFields: zod.ZodOptional<zod.ZodUnknown>;
106
106
  };
107
- UpdateCheckoutSessionSchema: <T extends Record<string, _forklaunch_validator.LiteralSchema>, U_3 extends Record<string, _forklaunch_validator.LiteralSchema>>(PaymentMethodEnum: T, StatusEnum: U_3) => {
107
+ UpdateCheckoutSessionSchema: <T extends Record<string, _forklaunch_validator.LiteralSchema>, U_4 extends Record<string, _forklaunch_validator.LiteralSchema>>(PaymentMethodEnum: T, StatusEnum: U_4) => {
108
108
  id: zod.ZodString;
109
109
  customerId: zod.ZodOptional<zod.ZodString>;
110
110
  paymentMethods: zod.ZodOptional<zod.ZodArray<zod.ZodUnion<[{ [K in keyof T]: zod.ZodLiteral<T[K]>; }[keyof T]]>, "many">>;
111
111
  successRedirectUri: zod.ZodOptional<zod.ZodString>;
112
112
  cancelRedirectUri: zod.ZodOptional<zod.ZodString>;
113
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]]>>;
114
+ status: zod.ZodOptional<zod.ZodUnion<[{ [K_1 in keyof U_4]: zod.ZodLiteral<U_4[K_1]>; }[keyof U_4]]>>;
115
115
  extraFields: zod.ZodOptional<zod.ZodUnknown>;
116
116
  };
117
- CheckoutSessionSchema: <T extends Record<string, _forklaunch_validator.LiteralSchema>, U_4 extends Record<string, _forklaunch_validator.LiteralSchema>>(PaymentMethodEnum: T, StatusEnum: U_4) => {
117
+ CheckoutSessionSchema: <T extends Record<string, _forklaunch_validator.LiteralSchema>, U_5 extends Record<string, _forklaunch_validator.LiteralSchema>>(PaymentMethodEnum: T, StatusEnum: U_5) => {
118
118
  id: zod.ZodString;
119
119
  customerId: zod.ZodString;
120
120
  metadata: zod.ZodOptional<zod.ZodUnknown>;
@@ -122,7 +122,7 @@ declare const BaseCheckoutSessionServiceSchemas: <SchemaValidator extends _forkl
122
122
  successRedirectUri: zod.ZodString;
123
123
  cancelRedirectUri: zod.ZodString;
124
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]]>;
125
+ status: zod.ZodUnion<[{ [K_1 in keyof U_5]: zod.ZodLiteral<U_5[K_1]>; }[keyof U_5]]>;
126
126
  extraFields: zod.ZodOptional<zod.ZodUnknown>;
127
127
  createdAt: zod.ZodOptional<zod.ZodEffects<zod.ZodDate, Date, unknown>>;
128
128
  updatedAt: zod.ZodOptional<zod.ZodEffects<zod.ZodDate, Date, unknown>>;
@@ -60,26 +60,26 @@ declare const BaseCheckoutSessionServiceSchemas: <SchemaValidator extends _forkl
60
60
  }) => _forklaunch_core_mappers.SchemasByValidator<SchemaValidator, (options: {
61
61
  uuidId: boolean;
62
62
  }) => {
63
- CreateCheckoutSessionSchema: <T extends Record<string, _forklaunch_validator.LiteralSchema>>(PaymentMethodEnum: T, StatusEnum: T) => {
63
+ CreateCheckoutSessionSchema: <T extends Record<string, _forklaunch_validator.LiteralSchema>, U extends Record<string, _forklaunch_validator.LiteralSchema>>(PaymentMethodEnum: T, StatusEnum: U) => {
64
64
  customerId: _sinclair_typebox.TString;
65
65
  paymentMethods: _sinclair_typebox.TArray<_sinclair_typebox.TUnion<[{ [K in keyof T]: _sinclair_typebox.TLiteral<T[K]>; }[keyof T]]>>;
66
66
  successRedirectUri: _sinclair_typebox.TString;
67
67
  cancelRedirectUri: _sinclair_typebox.TString;
68
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]]>;
69
+ status: _sinclair_typebox.TUnion<[{ [K_1 in keyof U]: _sinclair_typebox.TLiteral<U[K_1]>; }[keyof U]]>;
70
70
  extraFields: _sinclair_typebox.TOptional<_sinclair_typebox.TUnknown>;
71
71
  };
72
- UpdateCheckoutSessionSchema: <T extends Record<string, _forklaunch_validator.LiteralSchema>, U extends Record<string, _forklaunch_validator.LiteralSchema>>(PaymentMethodEnum: T, StatusEnum: U) => {
72
+ UpdateCheckoutSessionSchema: <T extends Record<string, _forklaunch_validator.LiteralSchema>, U_1 extends Record<string, _forklaunch_validator.LiteralSchema>>(PaymentMethodEnum: T, StatusEnum: U_1) => {
73
73
  id: _sinclair_typebox.TString;
74
74
  customerId: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
75
75
  paymentMethods: _sinclair_typebox.TOptional<_sinclair_typebox.TArray<_sinclair_typebox.TUnion<[{ [K in keyof T]: _sinclair_typebox.TLiteral<T[K]>; }[keyof T]]>>>;
76
76
  successRedirectUri: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
77
77
  cancelRedirectUri: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
78
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]]>>;
79
+ status: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[{ [K_1 in keyof U_1]: _sinclair_typebox.TLiteral<U_1[K_1]>; }[keyof U_1]]>>;
80
80
  extraFields: _sinclair_typebox.TOptional<_sinclair_typebox.TUnknown>;
81
81
  };
82
- CheckoutSessionSchema: <T extends Record<string, _forklaunch_validator.LiteralSchema>, U_1 extends Record<string, _forklaunch_validator.LiteralSchema>>(PaymentMethodEnum: T, StatusEnum: U_1) => {
82
+ CheckoutSessionSchema: <T extends Record<string, _forklaunch_validator.LiteralSchema>, U_2 extends Record<string, _forklaunch_validator.LiteralSchema>>(PaymentMethodEnum: T, StatusEnum: U_2) => {
83
83
  id: _sinclair_typebox.TString;
84
84
  customerId: _sinclair_typebox.TString;
85
85
  metadata: _sinclair_typebox.TOptional<_sinclair_typebox.TUnknown>;
@@ -87,7 +87,7 @@ declare const BaseCheckoutSessionServiceSchemas: <SchemaValidator extends _forkl
87
87
  successRedirectUri: _sinclair_typebox.TString;
88
88
  cancelRedirectUri: _sinclair_typebox.TString;
89
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]]>;
90
+ status: _sinclair_typebox.TUnion<[{ [K_1 in keyof U_2]: _sinclair_typebox.TLiteral<U_2[K_1]>; }[keyof U_2]]>;
91
91
  extraFields: _sinclair_typebox.TOptional<_sinclair_typebox.TUnknown>;
92
92
  createdAt: _sinclair_typebox.TOptional<_sinclair_typebox.TTransform<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber, _sinclair_typebox.TDate]>, Date>>;
93
93
  updatedAt: _sinclair_typebox.TOptional<_sinclair_typebox.TTransform<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber, _sinclair_typebox.TDate]>, Date>>;
@@ -95,26 +95,26 @@ declare const BaseCheckoutSessionServiceSchemas: <SchemaValidator extends _forkl
95
95
  }, (options: {
96
96
  uuidId: boolean;
97
97
  }) => {
98
- CreateCheckoutSessionSchema: <T extends Record<string, _forklaunch_validator.LiteralSchema>, U_2 extends Record<string, _forklaunch_validator.LiteralSchema>>(PaymentMethodEnum: T, StatusEnum: U_2) => {
98
+ CreateCheckoutSessionSchema: <T extends Record<string, _forklaunch_validator.LiteralSchema>, U_3 extends Record<string, _forklaunch_validator.LiteralSchema>>(PaymentMethodEnum: T, StatusEnum: U_3) => {
99
99
  customerId: zod.ZodString;
100
100
  paymentMethods: zod.ZodArray<zod.ZodUnion<[{ [K in keyof T]: zod.ZodLiteral<T[K]>; }[keyof T]]>, "many">;
101
101
  successRedirectUri: zod.ZodString;
102
102
  cancelRedirectUri: zod.ZodString;
103
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]]>;
104
+ status: zod.ZodUnion<[{ [K_1 in keyof U_3]: zod.ZodLiteral<U_3[K_1]>; }[keyof U_3]]>;
105
105
  extraFields: zod.ZodOptional<zod.ZodUnknown>;
106
106
  };
107
- UpdateCheckoutSessionSchema: <T extends Record<string, _forklaunch_validator.LiteralSchema>, U_3 extends Record<string, _forklaunch_validator.LiteralSchema>>(PaymentMethodEnum: T, StatusEnum: U_3) => {
107
+ UpdateCheckoutSessionSchema: <T extends Record<string, _forklaunch_validator.LiteralSchema>, U_4 extends Record<string, _forklaunch_validator.LiteralSchema>>(PaymentMethodEnum: T, StatusEnum: U_4) => {
108
108
  id: zod.ZodString;
109
109
  customerId: zod.ZodOptional<zod.ZodString>;
110
110
  paymentMethods: zod.ZodOptional<zod.ZodArray<zod.ZodUnion<[{ [K in keyof T]: zod.ZodLiteral<T[K]>; }[keyof T]]>, "many">>;
111
111
  successRedirectUri: zod.ZodOptional<zod.ZodString>;
112
112
  cancelRedirectUri: zod.ZodOptional<zod.ZodString>;
113
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]]>>;
114
+ status: zod.ZodOptional<zod.ZodUnion<[{ [K_1 in keyof U_4]: zod.ZodLiteral<U_4[K_1]>; }[keyof U_4]]>>;
115
115
  extraFields: zod.ZodOptional<zod.ZodUnknown>;
116
116
  };
117
- CheckoutSessionSchema: <T extends Record<string, _forklaunch_validator.LiteralSchema>, U_4 extends Record<string, _forklaunch_validator.LiteralSchema>>(PaymentMethodEnum: T, StatusEnum: U_4) => {
117
+ CheckoutSessionSchema: <T extends Record<string, _forklaunch_validator.LiteralSchema>, U_5 extends Record<string, _forklaunch_validator.LiteralSchema>>(PaymentMethodEnum: T, StatusEnum: U_5) => {
118
118
  id: zod.ZodString;
119
119
  customerId: zod.ZodString;
120
120
  metadata: zod.ZodOptional<zod.ZodUnknown>;
@@ -122,7 +122,7 @@ declare const BaseCheckoutSessionServiceSchemas: <SchemaValidator extends _forkl
122
122
  successRedirectUri: zod.ZodString;
123
123
  cancelRedirectUri: zod.ZodString;
124
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]]>;
125
+ status: zod.ZodUnion<[{ [K_1 in keyof U_5]: zod.ZodLiteral<U_5[K_1]>; }[keyof U_5]]>;
126
126
  extraFields: zod.ZodOptional<zod.ZodUnknown>;
127
127
  createdAt: zod.ZodOptional<zod.ZodEffects<zod.ZodDate, Date, unknown>>;
128
128
  updatedAt: zod.ZodOptional<zod.ZodEffects<zod.ZodDate, Date, unknown>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forklaunch/implementation-billing-base",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "description": "Billing basic implementation for forklaunch",
5
5
  "homepage": "https://github.com/forklaunch/forklaunch-js#readme",
6
6
  "bugs": {