@forklaunch/implementation-billing-stripe 0.5.23 → 1.0.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/domain/enum/index.d.mts +6 -123
- package/lib/domain/enum/index.d.ts +6 -123
- package/lib/domain/enum/index.js +8 -0
- package/lib/domain/enum/index.mjs +7 -0
- package/lib/domain/schemas/index.d.mts +39 -39
- package/lib/domain/schemas/index.d.ts +39 -39
- package/lib/domain/schemas/index.js +8 -8
- package/lib/domain/schemas/index.mjs +8 -8
- package/lib/domain/types/index.d.mts +470 -66
- package/lib/domain/types/index.d.ts +470 -66
- package/lib/eject/domain/enum/index.ts +1 -0
- package/lib/eject/domain/enum/party.enum.ts +5 -0
- package/lib/eject/domain/schemas/plan.schema.ts +2 -2
- package/lib/eject/domain/schemas/subscription.schema.ts +2 -2
- package/lib/eject/domain/types/billingPortal.mapper.types.ts +7 -4
- package/lib/eject/domain/types/checkoutSession.mapper.types.ts +7 -4
- package/lib/eject/domain/types/paymentLink.mapper.types.ts +7 -4
- package/lib/eject/domain/types/plan.mapper.types.ts +9 -4
- package/lib/eject/domain/types/stripe.entity.types.ts +103 -63
- package/lib/eject/domain/types/stripeWebhookEvent.types.ts +16 -0
- package/lib/eject/domain/types/subscription.mapper.types.ts +10 -7
- package/lib/eject/services/checkoutSession.service.ts +5 -5
- package/lib/eject/services/paymentLink.service.ts +14 -12
- package/lib/eject/services/webhook.service.ts +4 -3
- package/lib/planCadence.enum-BKHaW1xa.d.mts +126 -0
- package/lib/planCadence.enum-BKHaW1xa.d.ts +126 -0
- package/lib/services/index.d.mts +19 -18
- package/lib/services/index.d.ts +19 -18
- package/lib/services/index.js +86 -14
- package/lib/services/index.mjs +86 -14
- package/package.json +10 -10
|
@@ -1,17 +1,19 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import * as _mikro_orm_core from '@mikro-orm/core';
|
|
2
|
+
import { InferEntity, EntityManager } from '@mikro-orm/core';
|
|
3
|
+
import Stripe__default from 'stripe';
|
|
3
4
|
import { BillingPortalDto, CreateBillingPortalDto, UpdateBillingPortalDto, CheckoutSessionDto, CreateCheckoutSessionDto, UpdateCheckoutSessionDto, PaymentLinkDto, CreatePaymentLinkDto, UpdatePaymentLinkDto, PlanDto, CreatePlanDto, UpdatePlanDto, SubscriptionDto, CreateSubscriptionDto, UpdateSubscriptionDto } from '@forklaunch/interfaces-billing/types';
|
|
4
|
-
import { PaymentMethodEnum, CurrencyEnum, PlanCadenceEnum, BillingProviderEnum } from '
|
|
5
|
+
import { P as PaymentMethodEnum, C as CurrencyEnum, a as PlanCadenceEnum, B as BillingProviderEnum } from '../../planCadence.enum-BKHaW1xa.mjs';
|
|
6
|
+
import * as _forklaunch_core_persistence from '@forklaunch/core/persistence';
|
|
5
7
|
|
|
6
8
|
type BillingPortalOmissions = 'customer';
|
|
7
9
|
type StripeCreateBillingPortalDto = Omit<CreateBillingPortalDto, 'providerFields'> & {
|
|
8
|
-
stripeFields: Omit<
|
|
10
|
+
stripeFields: Omit<Stripe__default.BillingPortal.SessionCreateParams, BillingPortalOmissions>;
|
|
9
11
|
};
|
|
10
12
|
type StripeUpdateBillingPortalDto = Omit<UpdateBillingPortalDto, 'providerFields'> & {
|
|
11
|
-
stripeFields?: Omit<
|
|
13
|
+
stripeFields?: Omit<Stripe__default.BillingPortal.SessionCreateParams, BillingPortalOmissions>;
|
|
12
14
|
};
|
|
13
15
|
type StripeBillingPortalDto = Omit<BillingPortalDto, 'providerFields'> & {
|
|
14
|
-
stripeFields:
|
|
16
|
+
stripeFields: Stripe__default.BillingPortal.Session;
|
|
15
17
|
};
|
|
16
18
|
type StripeBillingPortalDtos = {
|
|
17
19
|
BillingPortalMapper: StripeBillingPortalDto;
|
|
@@ -21,14 +23,14 @@ type StripeBillingPortalDtos = {
|
|
|
21
23
|
type CheckoutSessionOmissions = 'payment_method_types' | 'currency' | 'success_url' | 'cancel_url';
|
|
22
24
|
type StripeCreateCheckoutSessionDto<StatusEnum> = Omit<CreateCheckoutSessionDto<typeof PaymentMethodEnum, typeof CurrencyEnum, StatusEnum>, 'providerFields' | 'uri'> & {
|
|
23
25
|
uri: string;
|
|
24
|
-
stripeFields: Omit<
|
|
26
|
+
stripeFields: Omit<Stripe__default.Checkout.SessionCreateParams, CheckoutSessionOmissions>;
|
|
25
27
|
};
|
|
26
28
|
type StripeUpdateCheckoutSessionDto<StatusEnum> = Omit<UpdateCheckoutSessionDto<typeof PaymentMethodEnum, typeof CurrencyEnum, StatusEnum>, 'providerFields'> & {
|
|
27
|
-
stripeFields?: Omit<
|
|
29
|
+
stripeFields?: Omit<Stripe__default.Checkout.SessionCreateParams, CheckoutSessionOmissions>;
|
|
28
30
|
};
|
|
29
31
|
type StripeCheckoutSessionDto<StatusEnum> = Omit<CheckoutSessionDto<typeof PaymentMethodEnum, typeof CurrencyEnum, StatusEnum>, 'providerFields' | 'uri'> & {
|
|
30
32
|
uri: string;
|
|
31
|
-
stripeFields:
|
|
33
|
+
stripeFields: Stripe__default.Checkout.Session;
|
|
32
34
|
};
|
|
33
35
|
type StripeCheckoutSessionDtos<StatusEnum> = {
|
|
34
36
|
CheckoutSessionMapper: StripeCheckoutSessionDto<StatusEnum>;
|
|
@@ -36,13 +38,13 @@ type StripeCheckoutSessionDtos<StatusEnum> = {
|
|
|
36
38
|
UpdateCheckoutSessionMapper: StripeUpdateCheckoutSessionDto<StatusEnum>;
|
|
37
39
|
};
|
|
38
40
|
type StripeCreatePaymentLinkDto<StatusEnum> = Omit<CreatePaymentLinkDto<typeof PaymentMethodEnum, typeof CurrencyEnum, StatusEnum>, 'providerFields'> & {
|
|
39
|
-
stripeFields:
|
|
41
|
+
stripeFields: Stripe__default.PaymentLinkCreateParams;
|
|
40
42
|
};
|
|
41
43
|
type StripeUpdatePaymentLinkDto<StatusEnum> = Omit<UpdatePaymentLinkDto<typeof PaymentMethodEnum, typeof CurrencyEnum, StatusEnum>, 'providerFields'> & {
|
|
42
|
-
stripeFields?:
|
|
44
|
+
stripeFields?: Stripe__default.PaymentLinkUpdateParams;
|
|
43
45
|
};
|
|
44
46
|
type StripePaymentLinkDto<StatusEnum> = Omit<PaymentLinkDto<typeof PaymentMethodEnum, typeof CurrencyEnum, StatusEnum>, 'providerFields'> & {
|
|
45
|
-
stripeFields:
|
|
47
|
+
stripeFields: Stripe__default.PaymentLink;
|
|
46
48
|
};
|
|
47
49
|
type StripePaymentLinkDtos<StatusEnum> = {
|
|
48
50
|
PaymentLinkMapper: StripePaymentLinkDto<StatusEnum>;
|
|
@@ -51,13 +53,13 @@ type StripePaymentLinkDtos<StatusEnum> = {
|
|
|
51
53
|
};
|
|
52
54
|
type PlanOmissions = 'product' | 'interval' | 'currency';
|
|
53
55
|
type StripeCreatePlanDto = Omit<CreatePlanDto<typeof PlanCadenceEnum, typeof CurrencyEnum, typeof BillingProviderEnum>, 'providerFields'> & {
|
|
54
|
-
stripeFields: Omit<
|
|
56
|
+
stripeFields: Omit<Stripe__default.PlanCreateParams, PlanOmissions>;
|
|
55
57
|
};
|
|
56
58
|
type StripeUpdatePlanDto = Omit<UpdatePlanDto<typeof PlanCadenceEnum, typeof CurrencyEnum, typeof BillingProviderEnum>, 'providerFields'> & {
|
|
57
|
-
stripeFields?: Omit<
|
|
59
|
+
stripeFields?: Omit<Stripe__default.PlanUpdateParams, PlanOmissions>;
|
|
58
60
|
};
|
|
59
61
|
type StripePlanDto = Omit<PlanDto<typeof PlanCadenceEnum, typeof CurrencyEnum, typeof BillingProviderEnum>, 'providerFields'> & {
|
|
60
|
-
stripeFields:
|
|
62
|
+
stripeFields: Stripe__default.Product;
|
|
61
63
|
};
|
|
62
64
|
type StripePlanDtos = {
|
|
63
65
|
PlanMapper: StripePlanDto;
|
|
@@ -66,13 +68,13 @@ type StripePlanDtos = {
|
|
|
66
68
|
};
|
|
67
69
|
type SubscriptionOmissions = 'items' | 'customer';
|
|
68
70
|
type StripeCreateSubscriptionDto<PartyType> = Omit<CreateSubscriptionDto<PartyType, typeof BillingProviderEnum>, 'providerFields'> & {
|
|
69
|
-
stripeFields: Omit<
|
|
71
|
+
stripeFields: Omit<Stripe__default.SubscriptionCreateParams, SubscriptionOmissions>;
|
|
70
72
|
};
|
|
71
73
|
type StripeUpdateSubscriptionDto<PartyType> = Omit<UpdateSubscriptionDto<PartyType, typeof BillingProviderEnum>, 'providerFields'> & {
|
|
72
|
-
stripeFields?: Omit<
|
|
74
|
+
stripeFields?: Omit<Stripe__default.SubscriptionUpdateParams, SubscriptionOmissions>;
|
|
73
75
|
};
|
|
74
76
|
type StripeSubscriptionDto<PartyType> = Omit<SubscriptionDto<PartyType, typeof BillingProviderEnum>, 'providerFields'> & {
|
|
75
|
-
stripeFields:
|
|
77
|
+
stripeFields: Stripe__default.Subscription;
|
|
76
78
|
};
|
|
77
79
|
type StripeSubscriptionDtos<PartyType> = {
|
|
78
80
|
SubscriptionMapper: StripeSubscriptionDto<PartyType>;
|
|
@@ -80,105 +82,507 @@ type StripeSubscriptionDtos<PartyType> = {
|
|
|
80
82
|
UpdateSubscriptionMapper: StripeUpdateSubscriptionDto<PartyType>;
|
|
81
83
|
};
|
|
82
84
|
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
85
|
+
declare const BillingPortal: _mikro_orm_core.EntitySchemaWithMeta<"BillingPortal", string, _mikro_orm_core.InferEntityFromProperties<{
|
|
86
|
+
readonly id: _forklaunch_core_persistence.ClassifiedProperty<Pick<_mikro_orm_core.UniversalPropertyOptionsBuilder<string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
87
|
+
primary: true;
|
|
88
|
+
}, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
89
|
+
primary: true;
|
|
90
|
+
}>;
|
|
91
|
+
readonly customerId: _forklaunch_core_persistence.ClassifiedProperty<_mikro_orm_core.UniversalPropertyOptionsBuilder<string, _mikro_orm_core.EmptyOptions, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, string, _mikro_orm_core.EmptyOptions>;
|
|
92
|
+
readonly providerFields: _forklaunch_core_persistence.ClassifiedProperty<_mikro_orm_core.PropertyChain<Stripe__default.BillingPortal.Session, _mikro_orm_core.EmptyOptions>, Stripe__default.BillingPortal.Session, _mikro_orm_core.EmptyOptions>;
|
|
93
|
+
}, undefined, never, never, false>, never, {
|
|
94
|
+
readonly id: _forklaunch_core_persistence.ClassifiedProperty<Pick<_mikro_orm_core.UniversalPropertyOptionsBuilder<string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
95
|
+
primary: true;
|
|
96
|
+
}, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
97
|
+
primary: true;
|
|
98
|
+
}>;
|
|
99
|
+
readonly customerId: _forklaunch_core_persistence.ClassifiedProperty<_mikro_orm_core.UniversalPropertyOptionsBuilder<string, _mikro_orm_core.EmptyOptions, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, string, _mikro_orm_core.EmptyOptions>;
|
|
100
|
+
readonly providerFields: _forklaunch_core_persistence.ClassifiedProperty<_mikro_orm_core.PropertyChain<Stripe__default.BillingPortal.Session, _mikro_orm_core.EmptyOptions>, Stripe__default.BillingPortal.Session, _mikro_orm_core.EmptyOptions>;
|
|
101
|
+
}, _mikro_orm_core.EntityCtor<_mikro_orm_core.InferEntityFromProperties<{
|
|
102
|
+
readonly id: _forklaunch_core_persistence.ClassifiedProperty<Pick<_mikro_orm_core.UniversalPropertyOptionsBuilder<string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
103
|
+
primary: true;
|
|
104
|
+
}, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
105
|
+
primary: true;
|
|
106
|
+
}>;
|
|
107
|
+
readonly customerId: _forklaunch_core_persistence.ClassifiedProperty<_mikro_orm_core.UniversalPropertyOptionsBuilder<string, _mikro_orm_core.EmptyOptions, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, string, _mikro_orm_core.EmptyOptions>;
|
|
108
|
+
readonly providerFields: _forklaunch_core_persistence.ClassifiedProperty<_mikro_orm_core.PropertyChain<Stripe__default.BillingPortal.Session, _mikro_orm_core.EmptyOptions>, Stripe__default.BillingPortal.Session, _mikro_orm_core.EmptyOptions>;
|
|
109
|
+
}, undefined, never, never, false>>>;
|
|
110
|
+
declare const CheckoutSession: _mikro_orm_core.EntitySchemaWithMeta<"CheckoutSession", string, _mikro_orm_core.InferEntityFromProperties<{
|
|
111
|
+
readonly id: _forklaunch_core_persistence.ClassifiedProperty<Pick<_mikro_orm_core.UniversalPropertyOptionsBuilder<string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
112
|
+
primary: true;
|
|
113
|
+
}, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
114
|
+
primary: true;
|
|
115
|
+
}>;
|
|
116
|
+
readonly customerId: _forklaunch_core_persistence.ClassifiedProperty<_mikro_orm_core.UniversalPropertyOptionsBuilder<string, _mikro_orm_core.EmptyOptions, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, string, _mikro_orm_core.EmptyOptions>;
|
|
117
|
+
readonly paymentMethods: _forklaunch_core_persistence.ClassifiedProperty<_mikro_orm_core.PropertyChain<any, Omit<_mikro_orm_core.EmptyOptions & {
|
|
118
|
+
kind: "enum";
|
|
119
|
+
}, "array"> & {
|
|
120
|
+
array: true;
|
|
121
|
+
}>, any, Omit<_mikro_orm_core.EmptyOptions & {
|
|
122
|
+
kind: "enum";
|
|
123
|
+
}, "array"> & {
|
|
124
|
+
array: true;
|
|
125
|
+
}>;
|
|
126
|
+
readonly currency: _forklaunch_core_persistence.ClassifiedProperty<_mikro_orm_core.PropertyChain<any, _mikro_orm_core.EmptyOptions & {
|
|
127
|
+
kind: "enum";
|
|
128
|
+
}>, any, _mikro_orm_core.EmptyOptions & {
|
|
129
|
+
kind: "enum";
|
|
130
|
+
}>;
|
|
131
|
+
readonly status: _forklaunch_core_persistence.ClassifiedProperty<_mikro_orm_core.PropertyChain<any, _mikro_orm_core.EmptyOptions & {
|
|
132
|
+
kind: "enum";
|
|
133
|
+
}>, any, _mikro_orm_core.EmptyOptions & {
|
|
134
|
+
kind: "enum";
|
|
135
|
+
}>;
|
|
136
|
+
readonly providerFields: _forklaunch_core_persistence.ClassifiedProperty<_mikro_orm_core.PropertyChain<Stripe__default.Checkout.Session, _mikro_orm_core.EmptyOptions>, Stripe__default.Checkout.Session, _mikro_orm_core.EmptyOptions>;
|
|
137
|
+
}, undefined, never, never, false>, never, {
|
|
138
|
+
readonly id: _forklaunch_core_persistence.ClassifiedProperty<Pick<_mikro_orm_core.UniversalPropertyOptionsBuilder<string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
139
|
+
primary: true;
|
|
140
|
+
}, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
141
|
+
primary: true;
|
|
142
|
+
}>;
|
|
143
|
+
readonly customerId: _forklaunch_core_persistence.ClassifiedProperty<_mikro_orm_core.UniversalPropertyOptionsBuilder<string, _mikro_orm_core.EmptyOptions, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, string, _mikro_orm_core.EmptyOptions>;
|
|
144
|
+
readonly paymentMethods: _forklaunch_core_persistence.ClassifiedProperty<_mikro_orm_core.PropertyChain<any, Omit<_mikro_orm_core.EmptyOptions & {
|
|
145
|
+
kind: "enum";
|
|
146
|
+
}, "array"> & {
|
|
147
|
+
array: true;
|
|
148
|
+
}>, any, Omit<_mikro_orm_core.EmptyOptions & {
|
|
149
|
+
kind: "enum";
|
|
150
|
+
}, "array"> & {
|
|
151
|
+
array: true;
|
|
152
|
+
}>;
|
|
153
|
+
readonly currency: _forklaunch_core_persistence.ClassifiedProperty<_mikro_orm_core.PropertyChain<any, _mikro_orm_core.EmptyOptions & {
|
|
154
|
+
kind: "enum";
|
|
155
|
+
}>, any, _mikro_orm_core.EmptyOptions & {
|
|
156
|
+
kind: "enum";
|
|
157
|
+
}>;
|
|
158
|
+
readonly status: _forklaunch_core_persistence.ClassifiedProperty<_mikro_orm_core.PropertyChain<any, _mikro_orm_core.EmptyOptions & {
|
|
159
|
+
kind: "enum";
|
|
160
|
+
}>, any, _mikro_orm_core.EmptyOptions & {
|
|
161
|
+
kind: "enum";
|
|
162
|
+
}>;
|
|
163
|
+
readonly providerFields: _forklaunch_core_persistence.ClassifiedProperty<_mikro_orm_core.PropertyChain<Stripe__default.Checkout.Session, _mikro_orm_core.EmptyOptions>, Stripe__default.Checkout.Session, _mikro_orm_core.EmptyOptions>;
|
|
164
|
+
}, _mikro_orm_core.EntityCtor<_mikro_orm_core.InferEntityFromProperties<{
|
|
165
|
+
readonly id: _forklaunch_core_persistence.ClassifiedProperty<Pick<_mikro_orm_core.UniversalPropertyOptionsBuilder<string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
166
|
+
primary: true;
|
|
167
|
+
}, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
168
|
+
primary: true;
|
|
169
|
+
}>;
|
|
170
|
+
readonly customerId: _forklaunch_core_persistence.ClassifiedProperty<_mikro_orm_core.UniversalPropertyOptionsBuilder<string, _mikro_orm_core.EmptyOptions, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, string, _mikro_orm_core.EmptyOptions>;
|
|
171
|
+
readonly paymentMethods: _forklaunch_core_persistence.ClassifiedProperty<_mikro_orm_core.PropertyChain<any, Omit<_mikro_orm_core.EmptyOptions & {
|
|
172
|
+
kind: "enum";
|
|
173
|
+
}, "array"> & {
|
|
174
|
+
array: true;
|
|
175
|
+
}>, any, Omit<_mikro_orm_core.EmptyOptions & {
|
|
176
|
+
kind: "enum";
|
|
177
|
+
}, "array"> & {
|
|
178
|
+
array: true;
|
|
179
|
+
}>;
|
|
180
|
+
readonly currency: _forklaunch_core_persistence.ClassifiedProperty<_mikro_orm_core.PropertyChain<any, _mikro_orm_core.EmptyOptions & {
|
|
181
|
+
kind: "enum";
|
|
182
|
+
}>, any, _mikro_orm_core.EmptyOptions & {
|
|
183
|
+
kind: "enum";
|
|
184
|
+
}>;
|
|
185
|
+
readonly status: _forklaunch_core_persistence.ClassifiedProperty<_mikro_orm_core.PropertyChain<any, _mikro_orm_core.EmptyOptions & {
|
|
186
|
+
kind: "enum";
|
|
187
|
+
}>, any, _mikro_orm_core.EmptyOptions & {
|
|
188
|
+
kind: "enum";
|
|
189
|
+
}>;
|
|
190
|
+
readonly providerFields: _forklaunch_core_persistence.ClassifiedProperty<_mikro_orm_core.PropertyChain<Stripe__default.Checkout.Session, _mikro_orm_core.EmptyOptions>, Stripe__default.Checkout.Session, _mikro_orm_core.EmptyOptions>;
|
|
191
|
+
}, undefined, never, never, false>>>;
|
|
192
|
+
declare const PaymentLink: _mikro_orm_core.EntitySchemaWithMeta<"PaymentLink", string, _mikro_orm_core.InferEntityFromProperties<{
|
|
193
|
+
readonly id: _forklaunch_core_persistence.ClassifiedProperty<Pick<_mikro_orm_core.UniversalPropertyOptionsBuilder<string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
194
|
+
primary: true;
|
|
195
|
+
}, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
196
|
+
primary: true;
|
|
197
|
+
}>;
|
|
198
|
+
readonly amount: _forklaunch_core_persistence.ClassifiedProperty<_mikro_orm_core.UniversalPropertyOptionsBuilder<NonNullable<string | number>, _mikro_orm_core.EmptyOptions, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, NonNullable<string | number>, _mikro_orm_core.EmptyOptions>;
|
|
199
|
+
readonly paymentMethods: _forklaunch_core_persistence.ClassifiedProperty<_mikro_orm_core.PropertyChain<any, Omit<_mikro_orm_core.EmptyOptions & {
|
|
200
|
+
kind: "enum";
|
|
201
|
+
}, "array"> & {
|
|
202
|
+
array: true;
|
|
203
|
+
}>, any, Omit<_mikro_orm_core.EmptyOptions & {
|
|
204
|
+
kind: "enum";
|
|
205
|
+
}, "array"> & {
|
|
206
|
+
array: true;
|
|
207
|
+
}>;
|
|
208
|
+
readonly currency: _forklaunch_core_persistence.ClassifiedProperty<_mikro_orm_core.PropertyChain<any, _mikro_orm_core.EmptyOptions & {
|
|
209
|
+
kind: "enum";
|
|
210
|
+
}>, any, _mikro_orm_core.EmptyOptions & {
|
|
211
|
+
kind: "enum";
|
|
212
|
+
}>;
|
|
213
|
+
readonly status: _forklaunch_core_persistence.ClassifiedProperty<_mikro_orm_core.PropertyChain<any, _mikro_orm_core.EmptyOptions & {
|
|
214
|
+
kind: "enum";
|
|
215
|
+
}>, any, _mikro_orm_core.EmptyOptions & {
|
|
216
|
+
kind: "enum";
|
|
217
|
+
}>;
|
|
218
|
+
readonly providerFields: _forklaunch_core_persistence.ClassifiedProperty<_mikro_orm_core.PropertyChain<Stripe__default.PaymentLink, _mikro_orm_core.EmptyOptions>, Stripe__default.PaymentLink, _mikro_orm_core.EmptyOptions>;
|
|
219
|
+
}, undefined, never, never, false>, never, {
|
|
220
|
+
readonly id: _forklaunch_core_persistence.ClassifiedProperty<Pick<_mikro_orm_core.UniversalPropertyOptionsBuilder<string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
221
|
+
primary: true;
|
|
222
|
+
}, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
223
|
+
primary: true;
|
|
224
|
+
}>;
|
|
225
|
+
readonly amount: _forklaunch_core_persistence.ClassifiedProperty<_mikro_orm_core.UniversalPropertyOptionsBuilder<NonNullable<string | number>, _mikro_orm_core.EmptyOptions, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, NonNullable<string | number>, _mikro_orm_core.EmptyOptions>;
|
|
226
|
+
readonly paymentMethods: _forklaunch_core_persistence.ClassifiedProperty<_mikro_orm_core.PropertyChain<any, Omit<_mikro_orm_core.EmptyOptions & {
|
|
227
|
+
kind: "enum";
|
|
228
|
+
}, "array"> & {
|
|
229
|
+
array: true;
|
|
230
|
+
}>, any, Omit<_mikro_orm_core.EmptyOptions & {
|
|
231
|
+
kind: "enum";
|
|
232
|
+
}, "array"> & {
|
|
233
|
+
array: true;
|
|
234
|
+
}>;
|
|
235
|
+
readonly currency: _forklaunch_core_persistence.ClassifiedProperty<_mikro_orm_core.PropertyChain<any, _mikro_orm_core.EmptyOptions & {
|
|
236
|
+
kind: "enum";
|
|
237
|
+
}>, any, _mikro_orm_core.EmptyOptions & {
|
|
238
|
+
kind: "enum";
|
|
239
|
+
}>;
|
|
240
|
+
readonly status: _forklaunch_core_persistence.ClassifiedProperty<_mikro_orm_core.PropertyChain<any, _mikro_orm_core.EmptyOptions & {
|
|
241
|
+
kind: "enum";
|
|
242
|
+
}>, any, _mikro_orm_core.EmptyOptions & {
|
|
243
|
+
kind: "enum";
|
|
244
|
+
}>;
|
|
245
|
+
readonly providerFields: _forklaunch_core_persistence.ClassifiedProperty<_mikro_orm_core.PropertyChain<Stripe__default.PaymentLink, _mikro_orm_core.EmptyOptions>, Stripe__default.PaymentLink, _mikro_orm_core.EmptyOptions>;
|
|
246
|
+
}, _mikro_orm_core.EntityCtor<_mikro_orm_core.InferEntityFromProperties<{
|
|
247
|
+
readonly id: _forklaunch_core_persistence.ClassifiedProperty<Pick<_mikro_orm_core.UniversalPropertyOptionsBuilder<string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
248
|
+
primary: true;
|
|
249
|
+
}, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
250
|
+
primary: true;
|
|
251
|
+
}>;
|
|
252
|
+
readonly amount: _forklaunch_core_persistence.ClassifiedProperty<_mikro_orm_core.UniversalPropertyOptionsBuilder<NonNullable<string | number>, _mikro_orm_core.EmptyOptions, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, NonNullable<string | number>, _mikro_orm_core.EmptyOptions>;
|
|
253
|
+
readonly paymentMethods: _forklaunch_core_persistence.ClassifiedProperty<_mikro_orm_core.PropertyChain<any, Omit<_mikro_orm_core.EmptyOptions & {
|
|
254
|
+
kind: "enum";
|
|
255
|
+
}, "array"> & {
|
|
256
|
+
array: true;
|
|
257
|
+
}>, any, Omit<_mikro_orm_core.EmptyOptions & {
|
|
258
|
+
kind: "enum";
|
|
259
|
+
}, "array"> & {
|
|
260
|
+
array: true;
|
|
261
|
+
}>;
|
|
262
|
+
readonly currency: _forklaunch_core_persistence.ClassifiedProperty<_mikro_orm_core.PropertyChain<any, _mikro_orm_core.EmptyOptions & {
|
|
263
|
+
kind: "enum";
|
|
264
|
+
}>, any, _mikro_orm_core.EmptyOptions & {
|
|
265
|
+
kind: "enum";
|
|
266
|
+
}>;
|
|
267
|
+
readonly status: _forklaunch_core_persistence.ClassifiedProperty<_mikro_orm_core.PropertyChain<any, _mikro_orm_core.EmptyOptions & {
|
|
268
|
+
kind: "enum";
|
|
269
|
+
}>, any, _mikro_orm_core.EmptyOptions & {
|
|
270
|
+
kind: "enum";
|
|
271
|
+
}>;
|
|
272
|
+
readonly providerFields: _forklaunch_core_persistence.ClassifiedProperty<_mikro_orm_core.PropertyChain<Stripe__default.PaymentLink, _mikro_orm_core.EmptyOptions>, Stripe__default.PaymentLink, _mikro_orm_core.EmptyOptions>;
|
|
273
|
+
}, undefined, never, never, false>>>;
|
|
274
|
+
declare const Plan: _mikro_orm_core.EntitySchemaWithMeta<"Plan", string, _mikro_orm_core.InferEntityFromProperties<{
|
|
275
|
+
readonly id: _forklaunch_core_persistence.ClassifiedProperty<Pick<_mikro_orm_core.UniversalPropertyOptionsBuilder<string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
276
|
+
primary: true;
|
|
277
|
+
}, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
278
|
+
primary: true;
|
|
279
|
+
}>;
|
|
280
|
+
readonly name: _forklaunch_core_persistence.ClassifiedProperty<_mikro_orm_core.UniversalPropertyOptionsBuilder<string, _mikro_orm_core.EmptyOptions, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, string, _mikro_orm_core.EmptyOptions>;
|
|
281
|
+
readonly price: _forklaunch_core_persistence.ClassifiedProperty<_mikro_orm_core.UniversalPropertyOptionsBuilder<NonNullable<string | number>, _mikro_orm_core.EmptyOptions, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, NonNullable<string | number>, _mikro_orm_core.EmptyOptions>;
|
|
282
|
+
readonly externalId: _forklaunch_core_persistence.ClassifiedProperty<_mikro_orm_core.UniversalPropertyOptionsBuilder<string, _mikro_orm_core.EmptyOptions, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, string, _mikro_orm_core.EmptyOptions>;
|
|
283
|
+
readonly cadence: _forklaunch_core_persistence.ClassifiedProperty<_mikro_orm_core.PropertyChain<any, _mikro_orm_core.EmptyOptions & {
|
|
284
|
+
kind: "enum";
|
|
285
|
+
}>, any, _mikro_orm_core.EmptyOptions & {
|
|
286
|
+
kind: "enum";
|
|
287
|
+
}>;
|
|
288
|
+
readonly currency: _forklaunch_core_persistence.ClassifiedProperty<_mikro_orm_core.PropertyChain<any, _mikro_orm_core.EmptyOptions & {
|
|
289
|
+
kind: "enum";
|
|
290
|
+
}>, any, _mikro_orm_core.EmptyOptions & {
|
|
291
|
+
kind: "enum";
|
|
292
|
+
}>;
|
|
293
|
+
readonly billingProvider: _forklaunch_core_persistence.ClassifiedProperty<_mikro_orm_core.PropertyChain<any, _mikro_orm_core.EmptyOptions & {
|
|
294
|
+
kind: "enum";
|
|
295
|
+
}>, any, _mikro_orm_core.EmptyOptions & {
|
|
296
|
+
kind: "enum";
|
|
297
|
+
}>;
|
|
298
|
+
readonly providerFields: _forklaunch_core_persistence.ClassifiedProperty<_mikro_orm_core.PropertyChain<Stripe__default.Product, _mikro_orm_core.EmptyOptions>, Stripe__default.Product, _mikro_orm_core.EmptyOptions>;
|
|
299
|
+
}, undefined, never, never, false>, never, {
|
|
300
|
+
readonly id: _forklaunch_core_persistence.ClassifiedProperty<Pick<_mikro_orm_core.UniversalPropertyOptionsBuilder<string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
301
|
+
primary: true;
|
|
302
|
+
}, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
303
|
+
primary: true;
|
|
304
|
+
}>;
|
|
305
|
+
readonly name: _forklaunch_core_persistence.ClassifiedProperty<_mikro_orm_core.UniversalPropertyOptionsBuilder<string, _mikro_orm_core.EmptyOptions, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, string, _mikro_orm_core.EmptyOptions>;
|
|
306
|
+
readonly price: _forklaunch_core_persistence.ClassifiedProperty<_mikro_orm_core.UniversalPropertyOptionsBuilder<NonNullable<string | number>, _mikro_orm_core.EmptyOptions, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, NonNullable<string | number>, _mikro_orm_core.EmptyOptions>;
|
|
307
|
+
readonly externalId: _forklaunch_core_persistence.ClassifiedProperty<_mikro_orm_core.UniversalPropertyOptionsBuilder<string, _mikro_orm_core.EmptyOptions, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, string, _mikro_orm_core.EmptyOptions>;
|
|
308
|
+
readonly cadence: _forklaunch_core_persistence.ClassifiedProperty<_mikro_orm_core.PropertyChain<any, _mikro_orm_core.EmptyOptions & {
|
|
309
|
+
kind: "enum";
|
|
310
|
+
}>, any, _mikro_orm_core.EmptyOptions & {
|
|
311
|
+
kind: "enum";
|
|
312
|
+
}>;
|
|
313
|
+
readonly currency: _forklaunch_core_persistence.ClassifiedProperty<_mikro_orm_core.PropertyChain<any, _mikro_orm_core.EmptyOptions & {
|
|
314
|
+
kind: "enum";
|
|
315
|
+
}>, any, _mikro_orm_core.EmptyOptions & {
|
|
316
|
+
kind: "enum";
|
|
317
|
+
}>;
|
|
318
|
+
readonly billingProvider: _forklaunch_core_persistence.ClassifiedProperty<_mikro_orm_core.PropertyChain<any, _mikro_orm_core.EmptyOptions & {
|
|
319
|
+
kind: "enum";
|
|
320
|
+
}>, any, _mikro_orm_core.EmptyOptions & {
|
|
321
|
+
kind: "enum";
|
|
322
|
+
}>;
|
|
323
|
+
readonly providerFields: _forklaunch_core_persistence.ClassifiedProperty<_mikro_orm_core.PropertyChain<Stripe__default.Product, _mikro_orm_core.EmptyOptions>, Stripe__default.Product, _mikro_orm_core.EmptyOptions>;
|
|
324
|
+
}, _mikro_orm_core.EntityCtor<_mikro_orm_core.InferEntityFromProperties<{
|
|
325
|
+
readonly id: _forklaunch_core_persistence.ClassifiedProperty<Pick<_mikro_orm_core.UniversalPropertyOptionsBuilder<string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
326
|
+
primary: true;
|
|
327
|
+
}, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
328
|
+
primary: true;
|
|
329
|
+
}>;
|
|
330
|
+
readonly name: _forklaunch_core_persistence.ClassifiedProperty<_mikro_orm_core.UniversalPropertyOptionsBuilder<string, _mikro_orm_core.EmptyOptions, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, string, _mikro_orm_core.EmptyOptions>;
|
|
331
|
+
readonly price: _forklaunch_core_persistence.ClassifiedProperty<_mikro_orm_core.UniversalPropertyOptionsBuilder<NonNullable<string | number>, _mikro_orm_core.EmptyOptions, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, NonNullable<string | number>, _mikro_orm_core.EmptyOptions>;
|
|
332
|
+
readonly externalId: _forklaunch_core_persistence.ClassifiedProperty<_mikro_orm_core.UniversalPropertyOptionsBuilder<string, _mikro_orm_core.EmptyOptions, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, string, _mikro_orm_core.EmptyOptions>;
|
|
333
|
+
readonly cadence: _forklaunch_core_persistence.ClassifiedProperty<_mikro_orm_core.PropertyChain<any, _mikro_orm_core.EmptyOptions & {
|
|
334
|
+
kind: "enum";
|
|
335
|
+
}>, any, _mikro_orm_core.EmptyOptions & {
|
|
336
|
+
kind: "enum";
|
|
337
|
+
}>;
|
|
338
|
+
readonly currency: _forklaunch_core_persistence.ClassifiedProperty<_mikro_orm_core.PropertyChain<any, _mikro_orm_core.EmptyOptions & {
|
|
339
|
+
kind: "enum";
|
|
340
|
+
}>, any, _mikro_orm_core.EmptyOptions & {
|
|
341
|
+
kind: "enum";
|
|
342
|
+
}>;
|
|
343
|
+
readonly billingProvider: _forklaunch_core_persistence.ClassifiedProperty<_mikro_orm_core.PropertyChain<any, _mikro_orm_core.EmptyOptions & {
|
|
344
|
+
kind: "enum";
|
|
345
|
+
}>, any, _mikro_orm_core.EmptyOptions & {
|
|
346
|
+
kind: "enum";
|
|
347
|
+
}>;
|
|
348
|
+
readonly providerFields: _forklaunch_core_persistence.ClassifiedProperty<_mikro_orm_core.PropertyChain<Stripe__default.Product, _mikro_orm_core.EmptyOptions>, Stripe__default.Product, _mikro_orm_core.EmptyOptions>;
|
|
349
|
+
}, undefined, never, never, false>>>;
|
|
350
|
+
declare const Subscription: _mikro_orm_core.EntitySchemaWithMeta<"Subscription", string, _mikro_orm_core.InferEntityFromProperties<{
|
|
351
|
+
readonly id: _forklaunch_core_persistence.ClassifiedProperty<Pick<_mikro_orm_core.UniversalPropertyOptionsBuilder<string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
352
|
+
primary: true;
|
|
353
|
+
}, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
354
|
+
primary: true;
|
|
355
|
+
}>;
|
|
356
|
+
readonly partyId: _forklaunch_core_persistence.ClassifiedProperty<_mikro_orm_core.UniversalPropertyOptionsBuilder<string, _mikro_orm_core.EmptyOptions, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, string, _mikro_orm_core.EmptyOptions>;
|
|
357
|
+
readonly externalId: _forklaunch_core_persistence.ClassifiedProperty<_mikro_orm_core.UniversalPropertyOptionsBuilder<string, _mikro_orm_core.EmptyOptions, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, string, _mikro_orm_core.EmptyOptions>;
|
|
358
|
+
readonly partyType: _forklaunch_core_persistence.ClassifiedProperty<_mikro_orm_core.PropertyChain<any, _mikro_orm_core.EmptyOptions & {
|
|
359
|
+
kind: "enum";
|
|
360
|
+
}>, any, _mikro_orm_core.EmptyOptions & {
|
|
361
|
+
kind: "enum";
|
|
362
|
+
}>;
|
|
363
|
+
readonly billingProvider: _forklaunch_core_persistence.ClassifiedProperty<_mikro_orm_core.PropertyChain<any, _mikro_orm_core.EmptyOptions & {
|
|
364
|
+
kind: "enum";
|
|
365
|
+
}>, any, _mikro_orm_core.EmptyOptions & {
|
|
366
|
+
kind: "enum";
|
|
367
|
+
}>;
|
|
368
|
+
readonly active: _forklaunch_core_persistence.ClassifiedProperty<_mikro_orm_core.UniversalPropertyOptionsBuilder<NonNullable<boolean | null | undefined>, _mikro_orm_core.EmptyOptions, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, NonNullable<boolean | null | undefined>, _mikro_orm_core.EmptyOptions>;
|
|
369
|
+
readonly providerFields: _forklaunch_core_persistence.ClassifiedProperty<_mikro_orm_core.PropertyChain<Stripe__default.Subscription, _mikro_orm_core.EmptyOptions>, Stripe__default.Subscription, _mikro_orm_core.EmptyOptions>;
|
|
370
|
+
}, undefined, never, never, false>, never, {
|
|
371
|
+
readonly id: _forklaunch_core_persistence.ClassifiedProperty<Pick<_mikro_orm_core.UniversalPropertyOptionsBuilder<string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
372
|
+
primary: true;
|
|
373
|
+
}, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
374
|
+
primary: true;
|
|
375
|
+
}>;
|
|
376
|
+
readonly partyId: _forklaunch_core_persistence.ClassifiedProperty<_mikro_orm_core.UniversalPropertyOptionsBuilder<string, _mikro_orm_core.EmptyOptions, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, string, _mikro_orm_core.EmptyOptions>;
|
|
377
|
+
readonly externalId: _forklaunch_core_persistence.ClassifiedProperty<_mikro_orm_core.UniversalPropertyOptionsBuilder<string, _mikro_orm_core.EmptyOptions, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, string, _mikro_orm_core.EmptyOptions>;
|
|
378
|
+
readonly partyType: _forklaunch_core_persistence.ClassifiedProperty<_mikro_orm_core.PropertyChain<any, _mikro_orm_core.EmptyOptions & {
|
|
379
|
+
kind: "enum";
|
|
380
|
+
}>, any, _mikro_orm_core.EmptyOptions & {
|
|
381
|
+
kind: "enum";
|
|
382
|
+
}>;
|
|
383
|
+
readonly billingProvider: _forklaunch_core_persistence.ClassifiedProperty<_mikro_orm_core.PropertyChain<any, _mikro_orm_core.EmptyOptions & {
|
|
384
|
+
kind: "enum";
|
|
385
|
+
}>, any, _mikro_orm_core.EmptyOptions & {
|
|
386
|
+
kind: "enum";
|
|
387
|
+
}>;
|
|
388
|
+
readonly active: _forklaunch_core_persistence.ClassifiedProperty<_mikro_orm_core.UniversalPropertyOptionsBuilder<NonNullable<boolean | null | undefined>, _mikro_orm_core.EmptyOptions, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, NonNullable<boolean | null | undefined>, _mikro_orm_core.EmptyOptions>;
|
|
389
|
+
readonly providerFields: _forklaunch_core_persistence.ClassifiedProperty<_mikro_orm_core.PropertyChain<Stripe__default.Subscription, _mikro_orm_core.EmptyOptions>, Stripe__default.Subscription, _mikro_orm_core.EmptyOptions>;
|
|
390
|
+
}, _mikro_orm_core.EntityCtor<_mikro_orm_core.InferEntityFromProperties<{
|
|
391
|
+
readonly id: _forklaunch_core_persistence.ClassifiedProperty<Pick<_mikro_orm_core.UniversalPropertyOptionsBuilder<string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
392
|
+
primary: true;
|
|
393
|
+
}, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
394
|
+
primary: true;
|
|
395
|
+
}>;
|
|
396
|
+
readonly partyId: _forklaunch_core_persistence.ClassifiedProperty<_mikro_orm_core.UniversalPropertyOptionsBuilder<string, _mikro_orm_core.EmptyOptions, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, string, _mikro_orm_core.EmptyOptions>;
|
|
397
|
+
readonly externalId: _forklaunch_core_persistence.ClassifiedProperty<_mikro_orm_core.UniversalPropertyOptionsBuilder<string, _mikro_orm_core.EmptyOptions, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, string, _mikro_orm_core.EmptyOptions>;
|
|
398
|
+
readonly partyType: _forklaunch_core_persistence.ClassifiedProperty<_mikro_orm_core.PropertyChain<any, _mikro_orm_core.EmptyOptions & {
|
|
399
|
+
kind: "enum";
|
|
400
|
+
}>, any, _mikro_orm_core.EmptyOptions & {
|
|
401
|
+
kind: "enum";
|
|
402
|
+
}>;
|
|
403
|
+
readonly billingProvider: _forklaunch_core_persistence.ClassifiedProperty<_mikro_orm_core.PropertyChain<any, _mikro_orm_core.EmptyOptions & {
|
|
404
|
+
kind: "enum";
|
|
405
|
+
}>, any, _mikro_orm_core.EmptyOptions & {
|
|
406
|
+
kind: "enum";
|
|
407
|
+
}>;
|
|
408
|
+
readonly active: _forklaunch_core_persistence.ClassifiedProperty<_mikro_orm_core.UniversalPropertyOptionsBuilder<NonNullable<boolean | null | undefined>, _mikro_orm_core.EmptyOptions, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, NonNullable<boolean | null | undefined>, _mikro_orm_core.EmptyOptions>;
|
|
409
|
+
readonly providerFields: _forklaunch_core_persistence.ClassifiedProperty<_mikro_orm_core.PropertyChain<Stripe__default.Subscription, _mikro_orm_core.EmptyOptions>, Stripe__default.Subscription, _mikro_orm_core.EmptyOptions>;
|
|
410
|
+
}, undefined, never, never, false>>>;
|
|
411
|
+
|
|
86
412
|
type StripeBillingPortalEntities = {
|
|
87
|
-
BillingPortalMapper:
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
413
|
+
BillingPortalMapper: {
|
|
414
|
+
'~entity': (typeof BillingPortal)['~entity'];
|
|
415
|
+
};
|
|
416
|
+
CreateBillingPortalMapper: {
|
|
417
|
+
'~entity': (typeof BillingPortal)['~entity'];
|
|
418
|
+
};
|
|
419
|
+
UpdateBillingPortalMapper: {
|
|
420
|
+
'~entity': (typeof BillingPortal)['~entity'];
|
|
421
|
+
};
|
|
93
422
|
};
|
|
94
423
|
type StripeCheckoutSessionEntities<StatusEnum> = {
|
|
95
|
-
CheckoutSessionMapper:
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
424
|
+
CheckoutSessionMapper: {
|
|
425
|
+
'~entity': (typeof CheckoutSession)['~entity'] & {
|
|
426
|
+
paymentMethods: PaymentMethodEnum[keyof PaymentMethodEnum][];
|
|
427
|
+
currency: CurrencyEnum[keyof CurrencyEnum];
|
|
428
|
+
status: StatusEnum[keyof StatusEnum];
|
|
429
|
+
};
|
|
430
|
+
};
|
|
431
|
+
CreateCheckoutSessionMapper: {
|
|
432
|
+
'~entity': (typeof CheckoutSession)['~entity'] & {
|
|
433
|
+
paymentMethods: PaymentMethodEnum[keyof PaymentMethodEnum][];
|
|
434
|
+
currency: CurrencyEnum[keyof CurrencyEnum];
|
|
435
|
+
status: StatusEnum[keyof StatusEnum];
|
|
436
|
+
};
|
|
437
|
+
};
|
|
438
|
+
UpdateCheckoutSessionMapper: {
|
|
439
|
+
'~entity': (typeof CheckoutSession)['~entity'] & {
|
|
440
|
+
paymentMethods: PaymentMethodEnum[keyof PaymentMethodEnum][];
|
|
441
|
+
currency: CurrencyEnum[keyof CurrencyEnum];
|
|
442
|
+
status: StatusEnum[keyof StatusEnum];
|
|
443
|
+
};
|
|
444
|
+
};
|
|
101
445
|
};
|
|
102
446
|
type StripePaymentLinkEntities<StatusEnum> = {
|
|
103
|
-
PaymentLinkMapper:
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
447
|
+
PaymentLinkMapper: {
|
|
448
|
+
'~entity': (typeof PaymentLink)['~entity'] & {
|
|
449
|
+
paymentMethods: PaymentMethodEnum[keyof PaymentMethodEnum][];
|
|
450
|
+
currency: CurrencyEnum[keyof CurrencyEnum];
|
|
451
|
+
status: StatusEnum[keyof StatusEnum];
|
|
452
|
+
};
|
|
453
|
+
};
|
|
454
|
+
CreatePaymentLinkMapper: {
|
|
455
|
+
'~entity': (typeof PaymentLink)['~entity'] & {
|
|
456
|
+
paymentMethods: PaymentMethodEnum[keyof PaymentMethodEnum][];
|
|
457
|
+
currency: CurrencyEnum[keyof CurrencyEnum];
|
|
458
|
+
status: StatusEnum[keyof StatusEnum];
|
|
459
|
+
};
|
|
460
|
+
};
|
|
461
|
+
UpdatePaymentLinkMapper: {
|
|
462
|
+
'~entity': (typeof PaymentLink)['~entity'] & {
|
|
463
|
+
paymentMethods: PaymentMethodEnum[keyof PaymentMethodEnum][];
|
|
464
|
+
currency: CurrencyEnum[keyof CurrencyEnum];
|
|
465
|
+
status: StatusEnum[keyof StatusEnum];
|
|
466
|
+
};
|
|
467
|
+
};
|
|
109
468
|
};
|
|
110
469
|
type StripePlanEntities = {
|
|
111
|
-
PlanMapper:
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
470
|
+
PlanMapper: {
|
|
471
|
+
'~entity': (typeof Plan)['~entity'] & {
|
|
472
|
+
cadence: PlanCadenceEnum[keyof PlanCadenceEnum];
|
|
473
|
+
currency: CurrencyEnum[keyof CurrencyEnum];
|
|
474
|
+
billingProvider: BillingProviderEnum[keyof BillingProviderEnum];
|
|
475
|
+
};
|
|
476
|
+
};
|
|
477
|
+
CreatePlanMapper: {
|
|
478
|
+
'~entity': (typeof Plan)['~entity'] & {
|
|
479
|
+
cadence: PlanCadenceEnum[keyof PlanCadenceEnum];
|
|
480
|
+
currency: CurrencyEnum[keyof CurrencyEnum];
|
|
481
|
+
billingProvider: BillingProviderEnum[keyof BillingProviderEnum];
|
|
482
|
+
};
|
|
483
|
+
};
|
|
484
|
+
UpdatePlanMapper: {
|
|
485
|
+
'~entity': (typeof Plan)['~entity'] & {
|
|
486
|
+
cadence: PlanCadenceEnum[keyof PlanCadenceEnum];
|
|
487
|
+
currency: CurrencyEnum[keyof CurrencyEnum];
|
|
488
|
+
billingProvider: BillingProviderEnum[keyof BillingProviderEnum];
|
|
489
|
+
};
|
|
490
|
+
};
|
|
117
491
|
};
|
|
118
|
-
type StripeSubscriptionEntities<
|
|
119
|
-
SubscriptionMapper:
|
|
120
|
-
|
|
121
|
-
|
|
492
|
+
type StripeSubscriptionEntities<PartyTypeEnum> = {
|
|
493
|
+
SubscriptionMapper: {
|
|
494
|
+
'~entity': (typeof Subscription)['~entity'] & {
|
|
495
|
+
partyType: PartyTypeEnum[keyof PartyTypeEnum];
|
|
496
|
+
billingProvider: BillingProviderEnum[keyof BillingProviderEnum];
|
|
497
|
+
};
|
|
498
|
+
};
|
|
499
|
+
CreateSubscriptionMapper: {
|
|
500
|
+
'~entity': (typeof Subscription)['~entity'] & {
|
|
501
|
+
partyType: PartyTypeEnum[keyof PartyTypeEnum];
|
|
502
|
+
billingProvider: BillingProviderEnum[keyof BillingProviderEnum];
|
|
503
|
+
};
|
|
504
|
+
};
|
|
505
|
+
UpdateSubscriptionMapper: {
|
|
506
|
+
'~entity': (typeof Subscription)['~entity'] & {
|
|
507
|
+
partyType: PartyTypeEnum[keyof PartyTypeEnum];
|
|
508
|
+
billingProvider: BillingProviderEnum[keyof BillingProviderEnum];
|
|
509
|
+
};
|
|
510
|
+
};
|
|
122
511
|
};
|
|
123
512
|
|
|
124
513
|
type StripeBillingPortalMappers<Entities extends StripeBillingPortalEntities, Dto extends StripeBillingPortalDtos> = {
|
|
125
514
|
BillingPortalMapper: {
|
|
126
|
-
|
|
515
|
+
entity: Entities['BillingPortalMapper'];
|
|
516
|
+
toDto: (entity: InferEntity<Entities['BillingPortalMapper']>) => Promise<Dto['BillingPortalMapper']>;
|
|
127
517
|
};
|
|
128
518
|
CreateBillingPortalMapper: {
|
|
129
|
-
|
|
519
|
+
entity: Entities['CreateBillingPortalMapper'];
|
|
520
|
+
toEntity: (dto: Dto['CreateBillingPortalMapper'], em: EntityManager, stripeSession: Stripe__default.BillingPortal.Session, ...args: unknown[]) => Promise<InferEntity<Entities['CreateBillingPortalMapper']>>;
|
|
130
521
|
};
|
|
131
522
|
UpdateBillingPortalMapper: {
|
|
132
|
-
|
|
523
|
+
entity: Entities['UpdateBillingPortalMapper'];
|
|
524
|
+
toEntity: (dto: Dto['UpdateBillingPortalMapper'], em: EntityManager, stripeSession: Stripe__default.BillingPortal.Session, ...args: unknown[]) => Promise<InferEntity<Entities['UpdateBillingPortalMapper']>>;
|
|
133
525
|
};
|
|
134
526
|
};
|
|
135
527
|
|
|
136
528
|
type StripeCheckoutSessionMappers<StatusEnum, Entities extends StripeCheckoutSessionEntities<StatusEnum>, Dto extends StripeCheckoutSessionDtos<StatusEnum>> = {
|
|
137
529
|
CheckoutSessionMapper: {
|
|
138
|
-
|
|
530
|
+
entity: Entities['CheckoutSessionMapper'];
|
|
531
|
+
toDto: (entity: InferEntity<Entities['CheckoutSessionMapper']>) => Promise<Dto['CheckoutSessionMapper']>;
|
|
139
532
|
};
|
|
140
533
|
CreateCheckoutSessionMapper: {
|
|
141
|
-
|
|
534
|
+
entity: Entities['CreateCheckoutSessionMapper'];
|
|
535
|
+
toEntity: (dto: Dto['CreateCheckoutSessionMapper'], em: EntityManager, stripeSession: Stripe__default.Checkout.Session, ...args: unknown[]) => Promise<InferEntity<Entities['CreateCheckoutSessionMapper']>>;
|
|
142
536
|
};
|
|
143
537
|
UpdateCheckoutSessionMapper: {
|
|
144
|
-
|
|
538
|
+
entity: Entities['UpdateCheckoutSessionMapper'];
|
|
539
|
+
toEntity: (dto: Dto['UpdateCheckoutSessionMapper'], em: EntityManager, stripeSession: Stripe__default.Checkout.Session, ...args: unknown[]) => Promise<InferEntity<Entities['UpdateCheckoutSessionMapper']>>;
|
|
145
540
|
};
|
|
146
541
|
};
|
|
147
542
|
|
|
148
543
|
type StripePaymentLinkMappers<StatusEnum, Entities extends StripePaymentLinkEntities<StatusEnum>, Dto extends StripePaymentLinkDtos<StatusEnum>> = {
|
|
149
544
|
PaymentLinkMapper: {
|
|
150
|
-
|
|
545
|
+
entity: Entities['PaymentLinkMapper'];
|
|
546
|
+
toDto: (entity: InferEntity<Entities['PaymentLinkMapper']>) => Promise<Dto['PaymentLinkMapper']>;
|
|
151
547
|
};
|
|
152
548
|
CreatePaymentLinkMapper: {
|
|
153
|
-
|
|
549
|
+
entity: Entities['CreatePaymentLinkMapper'];
|
|
550
|
+
toEntity: (dto: Dto['CreatePaymentLinkMapper'], em: EntityManager, stripePaymentLink: Stripe__default.PaymentLink, ...args: unknown[]) => Promise<InferEntity<Entities['CreatePaymentLinkMapper']>>;
|
|
154
551
|
};
|
|
155
552
|
UpdatePaymentLinkMapper: {
|
|
156
|
-
|
|
553
|
+
entity: Entities['UpdatePaymentLinkMapper'];
|
|
554
|
+
toEntity: (dto: Dto['UpdatePaymentLinkMapper'], em: EntityManager, stripePaymentLink: Stripe__default.PaymentLink, ...args: unknown[]) => Promise<InferEntity<Entities['UpdatePaymentLinkMapper']>>;
|
|
157
555
|
};
|
|
158
556
|
};
|
|
159
557
|
|
|
160
558
|
type StripePlanMappers<Entities extends StripePlanEntities, Dto extends StripePlanDtos> = {
|
|
161
559
|
PlanMapper: {
|
|
162
|
-
|
|
560
|
+
entity: Entities['PlanMapper'];
|
|
561
|
+
toDto: (entity: InferEntity<Entities['PlanMapper']>) => Promise<Dto['PlanMapper']>;
|
|
163
562
|
};
|
|
164
563
|
CreatePlanMapper: {
|
|
165
|
-
|
|
564
|
+
entity: Entities['CreatePlanMapper'];
|
|
565
|
+
toEntity: (dto: Dto['CreatePlanMapper'], em: EntityManager, stripePlan: Stripe__default.Product, ...args: unknown[]) => Promise<InferEntity<Entities['CreatePlanMapper']>>;
|
|
166
566
|
};
|
|
167
567
|
UpdatePlanMapper: {
|
|
168
|
-
|
|
568
|
+
entity: Entities['UpdatePlanMapper'];
|
|
569
|
+
toEntity: (dto: Dto['UpdatePlanMapper'], em: EntityManager, stripePlan: Stripe__default.Product, ...args: unknown[]) => Promise<InferEntity<Entities['UpdatePlanMapper']>>;
|
|
169
570
|
};
|
|
170
571
|
};
|
|
171
572
|
|
|
172
|
-
type StripeSubscriptionMappers<
|
|
573
|
+
type StripeSubscriptionMappers<PartyTypeEnum, Entities extends StripeSubscriptionEntities<PartyTypeEnum>, Dto extends StripeSubscriptionDtos<PartyTypeEnum>> = {
|
|
173
574
|
SubscriptionMapper: {
|
|
174
|
-
|
|
575
|
+
entity: Entities['SubscriptionMapper'];
|
|
576
|
+
toDto: (entity: InferEntity<Entities['SubscriptionMapper']>) => Promise<Dto['SubscriptionMapper']>;
|
|
175
577
|
};
|
|
176
578
|
CreateSubscriptionMapper: {
|
|
177
|
-
|
|
579
|
+
entity: Entities['CreateSubscriptionMapper'];
|
|
580
|
+
toEntity: (dto: Dto['CreateSubscriptionMapper'], em: EntityManager, stripeSubscription: Stripe__default.Subscription, ...args: unknown[]) => Promise<InferEntity<Entities['CreateSubscriptionMapper']>>;
|
|
178
581
|
};
|
|
179
582
|
UpdateSubscriptionMapper: {
|
|
180
|
-
|
|
583
|
+
entity: Entities['UpdateSubscriptionMapper'];
|
|
584
|
+
toEntity: (dto: Dto['UpdateSubscriptionMapper'], em: EntityManager, stripeSubscription: Stripe__default.Subscription, ...args: unknown[]) => Promise<InferEntity<Entities['UpdateSubscriptionMapper']>>;
|
|
181
585
|
};
|
|
182
586
|
};
|
|
183
587
|
|
|
184
|
-
export type { StripeBillingPortalDto, StripeBillingPortalDtos, StripeBillingPortalEntities,
|
|
588
|
+
export type { StripeBillingPortalDto, StripeBillingPortalDtos, StripeBillingPortalEntities, StripeBillingPortalMappers, StripeCheckoutSessionDto, StripeCheckoutSessionDtos, StripeCheckoutSessionEntities, StripeCheckoutSessionMappers, StripeCreateBillingPortalDto, StripeCreateCheckoutSessionDto, StripeCreatePaymentLinkDto, StripeCreatePlanDto, StripeCreateSubscriptionDto, StripePaymentLinkDto, StripePaymentLinkDtos, StripePaymentLinkEntities, StripePaymentLinkMappers, StripePlanDto, StripePlanDtos, StripePlanEntities, StripePlanMappers, StripeSubscriptionDto, StripeSubscriptionDtos, StripeSubscriptionEntities, StripeSubscriptionMappers, StripeUpdateBillingPortalDto, StripeUpdateCheckoutSessionDto, StripeUpdatePaymentLinkDto, StripeUpdatePlanDto, StripeUpdateSubscriptionDto };
|