@forklaunch/implementation-billing-base 0.8.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/schemas/index.d.mts +8 -8
- package/lib/domain/schemas/index.d.ts +8 -8
- package/lib/domain/schemas/index.js +8 -8
- package/lib/domain/schemas/index.mjs +8 -8
- package/lib/domain/types/index.d.mts +459 -31
- package/lib/domain/types/index.d.ts +459 -31
- 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/baseBillingEntity.types.ts +97 -46
- 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 +7 -4
- package/lib/eject/domain/types/subscription.mapper.types.ts +7 -4
- package/lib/eject/services/billingPortal.service.ts +3 -5
- package/lib/eject/services/checkoutSession.service.ts +19 -12
- package/lib/eject/services/paymentLink.service.ts +27 -17
- package/lib/eject/services/plan.service.ts +22 -8
- package/lib/eject/services/subscription.service.ts +55 -28
- package/lib/services/index.d.mts +4 -3
- package/lib/services/index.d.ts +4 -3
- package/lib/services/index.js +101 -57
- package/lib/services/index.mjs +101 -57
- package/package.json +9 -9
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { BillingPortalDto, CreateBillingPortalDto, UpdateBillingPortalDto, CheckoutSessionDto, CreateCheckoutSessionDto, UpdateCheckoutSessionDto, PaymentLinkDto, CreatePaymentLinkDto, UpdatePaymentLinkDto, PlanDto, CreatePlanDto, UpdatePlanDto, SubscriptionDto, CreateSubscriptionDto, UpdateSubscriptionDto } from '@forklaunch/interfaces-billing/types';
|
|
2
|
-
import
|
|
2
|
+
import * as _forklaunch_core_persistence from '@forklaunch/core/persistence';
|
|
3
|
+
import * as _mikro_orm_core from '@mikro-orm/core';
|
|
4
|
+
import { InferEntity, EntityManager } from '@mikro-orm/core';
|
|
3
5
|
|
|
4
6
|
type BaseBillingDtos = {
|
|
5
7
|
BillingPortalMapper: BillingPortalDto;
|
|
@@ -27,89 +29,515 @@ type BaseSubscriptionDtos<PartyType, BillingProviderType> = {
|
|
|
27
29
|
UpdateSubscriptionMapper: UpdateSubscriptionDto<PartyType, BillingProviderType>;
|
|
28
30
|
};
|
|
29
31
|
|
|
32
|
+
declare const BillingPortal: _mikro_orm_core.EntitySchemaWithMeta<"BillingPortal", string, _mikro_orm_core.InferEntityFromProperties<{
|
|
33
|
+
readonly id: _forklaunch_core_persistence.ClassifiedProperty<Pick<_mikro_orm_core.UniversalPropertyOptionsBuilder<string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
34
|
+
primary: true;
|
|
35
|
+
}, 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"> & {
|
|
36
|
+
primary: true;
|
|
37
|
+
}>;
|
|
38
|
+
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>;
|
|
39
|
+
}, undefined, never, never, false>, never, {
|
|
40
|
+
readonly id: _forklaunch_core_persistence.ClassifiedProperty<Pick<_mikro_orm_core.UniversalPropertyOptionsBuilder<string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
41
|
+
primary: true;
|
|
42
|
+
}, 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"> & {
|
|
43
|
+
primary: true;
|
|
44
|
+
}>;
|
|
45
|
+
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>;
|
|
46
|
+
}, _mikro_orm_core.EntityCtor<_mikro_orm_core.InferEntityFromProperties<{
|
|
47
|
+
readonly id: _forklaunch_core_persistence.ClassifiedProperty<Pick<_mikro_orm_core.UniversalPropertyOptionsBuilder<string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
48
|
+
primary: true;
|
|
49
|
+
}, 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"> & {
|
|
50
|
+
primary: true;
|
|
51
|
+
}>;
|
|
52
|
+
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>;
|
|
53
|
+
}, undefined, never, never, false>>>;
|
|
54
|
+
declare const CheckoutSession: _mikro_orm_core.EntitySchemaWithMeta<"CheckoutSession", string, _mikro_orm_core.InferEntityFromProperties<{
|
|
55
|
+
readonly id: _forklaunch_core_persistence.ClassifiedProperty<Pick<_mikro_orm_core.UniversalPropertyOptionsBuilder<string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
56
|
+
primary: true;
|
|
57
|
+
}, 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"> & {
|
|
58
|
+
primary: true;
|
|
59
|
+
}>;
|
|
60
|
+
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>;
|
|
61
|
+
readonly paymentMethods: _forklaunch_core_persistence.ClassifiedProperty<_mikro_orm_core.PropertyChain<any, Omit<_mikro_orm_core.EmptyOptions & {
|
|
62
|
+
kind: "enum";
|
|
63
|
+
}, "array"> & {
|
|
64
|
+
array: true;
|
|
65
|
+
}>, any, Omit<_mikro_orm_core.EmptyOptions & {
|
|
66
|
+
kind: "enum";
|
|
67
|
+
}, "array"> & {
|
|
68
|
+
array: true;
|
|
69
|
+
}>;
|
|
70
|
+
readonly currency: _forklaunch_core_persistence.ClassifiedProperty<_mikro_orm_core.PropertyChain<any, _mikro_orm_core.EmptyOptions & {
|
|
71
|
+
kind: "enum";
|
|
72
|
+
}>, any, _mikro_orm_core.EmptyOptions & {
|
|
73
|
+
kind: "enum";
|
|
74
|
+
}>;
|
|
75
|
+
readonly status: _forklaunch_core_persistence.ClassifiedProperty<_mikro_orm_core.PropertyChain<any, _mikro_orm_core.EmptyOptions & {
|
|
76
|
+
kind: "enum";
|
|
77
|
+
}>, any, _mikro_orm_core.EmptyOptions & {
|
|
78
|
+
kind: "enum";
|
|
79
|
+
}>;
|
|
80
|
+
}, undefined, never, never, false>, never, {
|
|
81
|
+
readonly id: _forklaunch_core_persistence.ClassifiedProperty<Pick<_mikro_orm_core.UniversalPropertyOptionsBuilder<string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
82
|
+
primary: true;
|
|
83
|
+
}, 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"> & {
|
|
84
|
+
primary: true;
|
|
85
|
+
}>;
|
|
86
|
+
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>;
|
|
87
|
+
readonly paymentMethods: _forklaunch_core_persistence.ClassifiedProperty<_mikro_orm_core.PropertyChain<any, Omit<_mikro_orm_core.EmptyOptions & {
|
|
88
|
+
kind: "enum";
|
|
89
|
+
}, "array"> & {
|
|
90
|
+
array: true;
|
|
91
|
+
}>, any, Omit<_mikro_orm_core.EmptyOptions & {
|
|
92
|
+
kind: "enum";
|
|
93
|
+
}, "array"> & {
|
|
94
|
+
array: true;
|
|
95
|
+
}>;
|
|
96
|
+
readonly currency: _forklaunch_core_persistence.ClassifiedProperty<_mikro_orm_core.PropertyChain<any, _mikro_orm_core.EmptyOptions & {
|
|
97
|
+
kind: "enum";
|
|
98
|
+
}>, any, _mikro_orm_core.EmptyOptions & {
|
|
99
|
+
kind: "enum";
|
|
100
|
+
}>;
|
|
101
|
+
readonly status: _forklaunch_core_persistence.ClassifiedProperty<_mikro_orm_core.PropertyChain<any, _mikro_orm_core.EmptyOptions & {
|
|
102
|
+
kind: "enum";
|
|
103
|
+
}>, any, _mikro_orm_core.EmptyOptions & {
|
|
104
|
+
kind: "enum";
|
|
105
|
+
}>;
|
|
106
|
+
}, _mikro_orm_core.EntityCtor<_mikro_orm_core.InferEntityFromProperties<{
|
|
107
|
+
readonly id: _forklaunch_core_persistence.ClassifiedProperty<Pick<_mikro_orm_core.UniversalPropertyOptionsBuilder<string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
108
|
+
primary: true;
|
|
109
|
+
}, 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"> & {
|
|
110
|
+
primary: true;
|
|
111
|
+
}>;
|
|
112
|
+
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>;
|
|
113
|
+
readonly paymentMethods: _forklaunch_core_persistence.ClassifiedProperty<_mikro_orm_core.PropertyChain<any, Omit<_mikro_orm_core.EmptyOptions & {
|
|
114
|
+
kind: "enum";
|
|
115
|
+
}, "array"> & {
|
|
116
|
+
array: true;
|
|
117
|
+
}>, any, Omit<_mikro_orm_core.EmptyOptions & {
|
|
118
|
+
kind: "enum";
|
|
119
|
+
}, "array"> & {
|
|
120
|
+
array: true;
|
|
121
|
+
}>;
|
|
122
|
+
readonly currency: _forklaunch_core_persistence.ClassifiedProperty<_mikro_orm_core.PropertyChain<any, _mikro_orm_core.EmptyOptions & {
|
|
123
|
+
kind: "enum";
|
|
124
|
+
}>, any, _mikro_orm_core.EmptyOptions & {
|
|
125
|
+
kind: "enum";
|
|
126
|
+
}>;
|
|
127
|
+
readonly status: _forklaunch_core_persistence.ClassifiedProperty<_mikro_orm_core.PropertyChain<any, _mikro_orm_core.EmptyOptions & {
|
|
128
|
+
kind: "enum";
|
|
129
|
+
}>, any, _mikro_orm_core.EmptyOptions & {
|
|
130
|
+
kind: "enum";
|
|
131
|
+
}>;
|
|
132
|
+
}, undefined, never, never, false>>>;
|
|
133
|
+
declare const PaymentLink: _mikro_orm_core.EntitySchemaWithMeta<"PaymentLink", string, _mikro_orm_core.InferEntityFromProperties<{
|
|
134
|
+
readonly id: _forklaunch_core_persistence.ClassifiedProperty<Pick<_mikro_orm_core.UniversalPropertyOptionsBuilder<string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
135
|
+
primary: true;
|
|
136
|
+
}, 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"> & {
|
|
137
|
+
primary: true;
|
|
138
|
+
}>;
|
|
139
|
+
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>;
|
|
140
|
+
readonly paymentMethods: _forklaunch_core_persistence.ClassifiedProperty<_mikro_orm_core.PropertyChain<any, Omit<_mikro_orm_core.EmptyOptions & {
|
|
141
|
+
kind: "enum";
|
|
142
|
+
}, "array"> & {
|
|
143
|
+
array: true;
|
|
144
|
+
}>, any, Omit<_mikro_orm_core.EmptyOptions & {
|
|
145
|
+
kind: "enum";
|
|
146
|
+
}, "array"> & {
|
|
147
|
+
array: true;
|
|
148
|
+
}>;
|
|
149
|
+
readonly currency: _forklaunch_core_persistence.ClassifiedProperty<_mikro_orm_core.PropertyChain<any, _mikro_orm_core.EmptyOptions & {
|
|
150
|
+
kind: "enum";
|
|
151
|
+
}>, any, _mikro_orm_core.EmptyOptions & {
|
|
152
|
+
kind: "enum";
|
|
153
|
+
}>;
|
|
154
|
+
readonly status: _forklaunch_core_persistence.ClassifiedProperty<_mikro_orm_core.PropertyChain<any, _mikro_orm_core.EmptyOptions & {
|
|
155
|
+
kind: "enum";
|
|
156
|
+
}>, any, _mikro_orm_core.EmptyOptions & {
|
|
157
|
+
kind: "enum";
|
|
158
|
+
}>;
|
|
159
|
+
}, undefined, never, never, false>, never, {
|
|
160
|
+
readonly id: _forklaunch_core_persistence.ClassifiedProperty<Pick<_mikro_orm_core.UniversalPropertyOptionsBuilder<string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
161
|
+
primary: true;
|
|
162
|
+
}, 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"> & {
|
|
163
|
+
primary: true;
|
|
164
|
+
}>;
|
|
165
|
+
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>;
|
|
166
|
+
readonly paymentMethods: _forklaunch_core_persistence.ClassifiedProperty<_mikro_orm_core.PropertyChain<any, Omit<_mikro_orm_core.EmptyOptions & {
|
|
167
|
+
kind: "enum";
|
|
168
|
+
}, "array"> & {
|
|
169
|
+
array: true;
|
|
170
|
+
}>, any, Omit<_mikro_orm_core.EmptyOptions & {
|
|
171
|
+
kind: "enum";
|
|
172
|
+
}, "array"> & {
|
|
173
|
+
array: true;
|
|
174
|
+
}>;
|
|
175
|
+
readonly currency: _forklaunch_core_persistence.ClassifiedProperty<_mikro_orm_core.PropertyChain<any, _mikro_orm_core.EmptyOptions & {
|
|
176
|
+
kind: "enum";
|
|
177
|
+
}>, any, _mikro_orm_core.EmptyOptions & {
|
|
178
|
+
kind: "enum";
|
|
179
|
+
}>;
|
|
180
|
+
readonly status: _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
|
+
}, _mikro_orm_core.EntityCtor<_mikro_orm_core.InferEntityFromProperties<{
|
|
186
|
+
readonly id: _forklaunch_core_persistence.ClassifiedProperty<Pick<_mikro_orm_core.UniversalPropertyOptionsBuilder<string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
187
|
+
primary: true;
|
|
188
|
+
}, 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"> & {
|
|
189
|
+
primary: true;
|
|
190
|
+
}>;
|
|
191
|
+
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>;
|
|
192
|
+
readonly paymentMethods: _forklaunch_core_persistence.ClassifiedProperty<_mikro_orm_core.PropertyChain<any, Omit<_mikro_orm_core.EmptyOptions & {
|
|
193
|
+
kind: "enum";
|
|
194
|
+
}, "array"> & {
|
|
195
|
+
array: true;
|
|
196
|
+
}>, any, Omit<_mikro_orm_core.EmptyOptions & {
|
|
197
|
+
kind: "enum";
|
|
198
|
+
}, "array"> & {
|
|
199
|
+
array: true;
|
|
200
|
+
}>;
|
|
201
|
+
readonly currency: _forklaunch_core_persistence.ClassifiedProperty<_mikro_orm_core.PropertyChain<any, _mikro_orm_core.EmptyOptions & {
|
|
202
|
+
kind: "enum";
|
|
203
|
+
}>, any, _mikro_orm_core.EmptyOptions & {
|
|
204
|
+
kind: "enum";
|
|
205
|
+
}>;
|
|
206
|
+
readonly status: _forklaunch_core_persistence.ClassifiedProperty<_mikro_orm_core.PropertyChain<any, _mikro_orm_core.EmptyOptions & {
|
|
207
|
+
kind: "enum";
|
|
208
|
+
}>, any, _mikro_orm_core.EmptyOptions & {
|
|
209
|
+
kind: "enum";
|
|
210
|
+
}>;
|
|
211
|
+
}, undefined, never, never, false>>>;
|
|
212
|
+
declare const Plan: _mikro_orm_core.EntitySchemaWithMeta<"Plan", string, _mikro_orm_core.InferEntityFromProperties<{
|
|
213
|
+
readonly id: _forklaunch_core_persistence.ClassifiedProperty<Pick<_mikro_orm_core.UniversalPropertyOptionsBuilder<string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
214
|
+
primary: true;
|
|
215
|
+
}, 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"> & {
|
|
216
|
+
primary: true;
|
|
217
|
+
}>;
|
|
218
|
+
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>;
|
|
219
|
+
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>;
|
|
220
|
+
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>;
|
|
221
|
+
readonly cadence: _forklaunch_core_persistence.ClassifiedProperty<_mikro_orm_core.PropertyChain<any, _mikro_orm_core.EmptyOptions & {
|
|
222
|
+
kind: "enum";
|
|
223
|
+
}>, any, _mikro_orm_core.EmptyOptions & {
|
|
224
|
+
kind: "enum";
|
|
225
|
+
}>;
|
|
226
|
+
readonly currency: _forklaunch_core_persistence.ClassifiedProperty<_mikro_orm_core.PropertyChain<any, _mikro_orm_core.EmptyOptions & {
|
|
227
|
+
kind: "enum";
|
|
228
|
+
}>, any, _mikro_orm_core.EmptyOptions & {
|
|
229
|
+
kind: "enum";
|
|
230
|
+
}>;
|
|
231
|
+
readonly billingProvider: _forklaunch_core_persistence.ClassifiedProperty<_mikro_orm_core.PropertyChain<any, Omit<_mikro_orm_core.EmptyOptions & {
|
|
232
|
+
kind: "enum";
|
|
233
|
+
}, "nullable"> & {
|
|
234
|
+
nullable: true;
|
|
235
|
+
}>, any, Omit<_mikro_orm_core.EmptyOptions & {
|
|
236
|
+
kind: "enum";
|
|
237
|
+
}, "nullable"> & {
|
|
238
|
+
nullable: true;
|
|
239
|
+
}>;
|
|
240
|
+
}, undefined, never, never, false>, never, {
|
|
241
|
+
readonly id: _forklaunch_core_persistence.ClassifiedProperty<Pick<_mikro_orm_core.UniversalPropertyOptionsBuilder<string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
242
|
+
primary: true;
|
|
243
|
+
}, 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"> & {
|
|
244
|
+
primary: true;
|
|
245
|
+
}>;
|
|
246
|
+
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>;
|
|
247
|
+
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>;
|
|
248
|
+
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>;
|
|
249
|
+
readonly cadence: _forklaunch_core_persistence.ClassifiedProperty<_mikro_orm_core.PropertyChain<any, _mikro_orm_core.EmptyOptions & {
|
|
250
|
+
kind: "enum";
|
|
251
|
+
}>, any, _mikro_orm_core.EmptyOptions & {
|
|
252
|
+
kind: "enum";
|
|
253
|
+
}>;
|
|
254
|
+
readonly currency: _forklaunch_core_persistence.ClassifiedProperty<_mikro_orm_core.PropertyChain<any, _mikro_orm_core.EmptyOptions & {
|
|
255
|
+
kind: "enum";
|
|
256
|
+
}>, any, _mikro_orm_core.EmptyOptions & {
|
|
257
|
+
kind: "enum";
|
|
258
|
+
}>;
|
|
259
|
+
readonly billingProvider: _forklaunch_core_persistence.ClassifiedProperty<_mikro_orm_core.PropertyChain<any, Omit<_mikro_orm_core.EmptyOptions & {
|
|
260
|
+
kind: "enum";
|
|
261
|
+
}, "nullable"> & {
|
|
262
|
+
nullable: true;
|
|
263
|
+
}>, any, Omit<_mikro_orm_core.EmptyOptions & {
|
|
264
|
+
kind: "enum";
|
|
265
|
+
}, "nullable"> & {
|
|
266
|
+
nullable: true;
|
|
267
|
+
}>;
|
|
268
|
+
}, _mikro_orm_core.EntityCtor<_mikro_orm_core.InferEntityFromProperties<{
|
|
269
|
+
readonly id: _forklaunch_core_persistence.ClassifiedProperty<Pick<_mikro_orm_core.UniversalPropertyOptionsBuilder<string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
270
|
+
primary: true;
|
|
271
|
+
}, 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"> & {
|
|
272
|
+
primary: true;
|
|
273
|
+
}>;
|
|
274
|
+
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>;
|
|
275
|
+
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>;
|
|
276
|
+
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>;
|
|
277
|
+
readonly cadence: _forklaunch_core_persistence.ClassifiedProperty<_mikro_orm_core.PropertyChain<any, _mikro_orm_core.EmptyOptions & {
|
|
278
|
+
kind: "enum";
|
|
279
|
+
}>, any, _mikro_orm_core.EmptyOptions & {
|
|
280
|
+
kind: "enum";
|
|
281
|
+
}>;
|
|
282
|
+
readonly currency: _forklaunch_core_persistence.ClassifiedProperty<_mikro_orm_core.PropertyChain<any, _mikro_orm_core.EmptyOptions & {
|
|
283
|
+
kind: "enum";
|
|
284
|
+
}>, any, _mikro_orm_core.EmptyOptions & {
|
|
285
|
+
kind: "enum";
|
|
286
|
+
}>;
|
|
287
|
+
readonly billingProvider: _forklaunch_core_persistence.ClassifiedProperty<_mikro_orm_core.PropertyChain<any, Omit<_mikro_orm_core.EmptyOptions & {
|
|
288
|
+
kind: "enum";
|
|
289
|
+
}, "nullable"> & {
|
|
290
|
+
nullable: true;
|
|
291
|
+
}>, any, Omit<_mikro_orm_core.EmptyOptions & {
|
|
292
|
+
kind: "enum";
|
|
293
|
+
}, "nullable"> & {
|
|
294
|
+
nullable: true;
|
|
295
|
+
}>;
|
|
296
|
+
}, undefined, never, never, false>>>;
|
|
297
|
+
declare const Subscription: _mikro_orm_core.EntitySchemaWithMeta<"Subscription", string, _mikro_orm_core.InferEntityFromProperties<{
|
|
298
|
+
readonly id: _forklaunch_core_persistence.ClassifiedProperty<Pick<_mikro_orm_core.UniversalPropertyOptionsBuilder<string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
299
|
+
primary: true;
|
|
300
|
+
}, 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"> & {
|
|
301
|
+
primary: true;
|
|
302
|
+
}>;
|
|
303
|
+
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>;
|
|
304
|
+
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>;
|
|
305
|
+
readonly partyType: _forklaunch_core_persistence.ClassifiedProperty<_mikro_orm_core.PropertyChain<any, _mikro_orm_core.EmptyOptions & {
|
|
306
|
+
kind: "enum";
|
|
307
|
+
}>, any, _mikro_orm_core.EmptyOptions & {
|
|
308
|
+
kind: "enum";
|
|
309
|
+
}>;
|
|
310
|
+
readonly billingProvider: _forklaunch_core_persistence.ClassifiedProperty<_mikro_orm_core.PropertyChain<any, Omit<_mikro_orm_core.EmptyOptions & {
|
|
311
|
+
kind: "enum";
|
|
312
|
+
}, "nullable"> & {
|
|
313
|
+
nullable: true;
|
|
314
|
+
}>, any, Omit<_mikro_orm_core.EmptyOptions & {
|
|
315
|
+
kind: "enum";
|
|
316
|
+
}, "nullable"> & {
|
|
317
|
+
nullable: true;
|
|
318
|
+
}>;
|
|
319
|
+
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>;
|
|
320
|
+
}, undefined, never, never, false>, never, {
|
|
321
|
+
readonly id: _forklaunch_core_persistence.ClassifiedProperty<Pick<_mikro_orm_core.UniversalPropertyOptionsBuilder<string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
322
|
+
primary: true;
|
|
323
|
+
}, 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"> & {
|
|
324
|
+
primary: true;
|
|
325
|
+
}>;
|
|
326
|
+
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>;
|
|
327
|
+
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>;
|
|
328
|
+
readonly partyType: _forklaunch_core_persistence.ClassifiedProperty<_mikro_orm_core.PropertyChain<any, _mikro_orm_core.EmptyOptions & {
|
|
329
|
+
kind: "enum";
|
|
330
|
+
}>, any, _mikro_orm_core.EmptyOptions & {
|
|
331
|
+
kind: "enum";
|
|
332
|
+
}>;
|
|
333
|
+
readonly billingProvider: _forklaunch_core_persistence.ClassifiedProperty<_mikro_orm_core.PropertyChain<any, Omit<_mikro_orm_core.EmptyOptions & {
|
|
334
|
+
kind: "enum";
|
|
335
|
+
}, "nullable"> & {
|
|
336
|
+
nullable: true;
|
|
337
|
+
}>, any, Omit<_mikro_orm_core.EmptyOptions & {
|
|
338
|
+
kind: "enum";
|
|
339
|
+
}, "nullable"> & {
|
|
340
|
+
nullable: true;
|
|
341
|
+
}>;
|
|
342
|
+
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>;
|
|
343
|
+
}, _mikro_orm_core.EntityCtor<_mikro_orm_core.InferEntityFromProperties<{
|
|
344
|
+
readonly id: _forklaunch_core_persistence.ClassifiedProperty<Pick<_mikro_orm_core.UniversalPropertyOptionsBuilder<string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
345
|
+
primary: true;
|
|
346
|
+
}, 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"> & {
|
|
347
|
+
primary: true;
|
|
348
|
+
}>;
|
|
349
|
+
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>;
|
|
350
|
+
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>;
|
|
351
|
+
readonly partyType: _forklaunch_core_persistence.ClassifiedProperty<_mikro_orm_core.PropertyChain<any, _mikro_orm_core.EmptyOptions & {
|
|
352
|
+
kind: "enum";
|
|
353
|
+
}>, any, _mikro_orm_core.EmptyOptions & {
|
|
354
|
+
kind: "enum";
|
|
355
|
+
}>;
|
|
356
|
+
readonly billingProvider: _forklaunch_core_persistence.ClassifiedProperty<_mikro_orm_core.PropertyChain<any, Omit<_mikro_orm_core.EmptyOptions & {
|
|
357
|
+
kind: "enum";
|
|
358
|
+
}, "nullable"> & {
|
|
359
|
+
nullable: true;
|
|
360
|
+
}>, any, Omit<_mikro_orm_core.EmptyOptions & {
|
|
361
|
+
kind: "enum";
|
|
362
|
+
}, "nullable"> & {
|
|
363
|
+
nullable: true;
|
|
364
|
+
}>;
|
|
365
|
+
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>;
|
|
366
|
+
}, undefined, never, never, false>>>;
|
|
367
|
+
|
|
30
368
|
type BaseBillingEntities = {
|
|
31
|
-
BillingPortalMapper:
|
|
32
|
-
|
|
33
|
-
|
|
369
|
+
BillingPortalMapper: {
|
|
370
|
+
'~entity': (typeof BillingPortal)['~entity'];
|
|
371
|
+
};
|
|
372
|
+
CreateBillingPortalMapper: {
|
|
373
|
+
'~entity': (typeof BillingPortal)['~entity'];
|
|
374
|
+
};
|
|
375
|
+
UpdateBillingPortalMapper: {
|
|
376
|
+
'~entity': (typeof BillingPortal)['~entity'];
|
|
377
|
+
};
|
|
34
378
|
};
|
|
35
379
|
type BaseCheckoutSessionEntities<PaymentMethodEnum, CurrencyEnum, StatusEnum> = {
|
|
36
|
-
CheckoutSessionMapper:
|
|
37
|
-
|
|
38
|
-
|
|
380
|
+
CheckoutSessionMapper: {
|
|
381
|
+
'~entity': (typeof CheckoutSession)['~entity'] & {
|
|
382
|
+
paymentMethods: PaymentMethodEnum[keyof PaymentMethodEnum][];
|
|
383
|
+
currency: CurrencyEnum[keyof CurrencyEnum];
|
|
384
|
+
status: StatusEnum[keyof StatusEnum];
|
|
385
|
+
};
|
|
386
|
+
};
|
|
387
|
+
CreateCheckoutSessionMapper: {
|
|
388
|
+
'~entity': (typeof CheckoutSession)['~entity'] & {
|
|
389
|
+
paymentMethods: PaymentMethodEnum[keyof PaymentMethodEnum][];
|
|
390
|
+
currency: CurrencyEnum[keyof CurrencyEnum];
|
|
391
|
+
status: StatusEnum[keyof StatusEnum];
|
|
392
|
+
};
|
|
393
|
+
};
|
|
394
|
+
UpdateCheckoutSessionMapper: {
|
|
395
|
+
'~entity': (typeof CheckoutSession)['~entity'] & {
|
|
396
|
+
paymentMethods: PaymentMethodEnum[keyof PaymentMethodEnum][];
|
|
397
|
+
currency: CurrencyEnum[keyof CurrencyEnum];
|
|
398
|
+
status: StatusEnum[keyof StatusEnum];
|
|
399
|
+
};
|
|
400
|
+
};
|
|
39
401
|
};
|
|
40
402
|
type BasePaymentLinkEntities<PaymentMethodEnum, CurrencyEnum, StatusEnum> = {
|
|
41
|
-
PaymentLinkMapper:
|
|
42
|
-
|
|
43
|
-
|
|
403
|
+
PaymentLinkMapper: {
|
|
404
|
+
'~entity': (typeof PaymentLink)['~entity'] & {
|
|
405
|
+
paymentMethods: PaymentMethodEnum[keyof PaymentMethodEnum][];
|
|
406
|
+
currency: CurrencyEnum[keyof CurrencyEnum];
|
|
407
|
+
status: StatusEnum[keyof StatusEnum];
|
|
408
|
+
};
|
|
409
|
+
};
|
|
410
|
+
CreatePaymentLinkMapper: {
|
|
411
|
+
'~entity': (typeof PaymentLink)['~entity'] & {
|
|
412
|
+
paymentMethods: PaymentMethodEnum[keyof PaymentMethodEnum][];
|
|
413
|
+
currency: CurrencyEnum[keyof CurrencyEnum];
|
|
414
|
+
status: StatusEnum[keyof StatusEnum];
|
|
415
|
+
};
|
|
416
|
+
};
|
|
417
|
+
UpdatePaymentLinkMapper: {
|
|
418
|
+
'~entity': (typeof PaymentLink)['~entity'] & {
|
|
419
|
+
paymentMethods: PaymentMethodEnum[keyof PaymentMethodEnum][];
|
|
420
|
+
currency: CurrencyEnum[keyof CurrencyEnum];
|
|
421
|
+
status: StatusEnum[keyof StatusEnum];
|
|
422
|
+
};
|
|
423
|
+
};
|
|
44
424
|
};
|
|
45
425
|
type BasePlanEntities<PlanCadenceEnum, CurrencyEnum, BillingProviderEnum> = {
|
|
46
|
-
PlanMapper:
|
|
47
|
-
|
|
48
|
-
|
|
426
|
+
PlanMapper: {
|
|
427
|
+
'~entity': (typeof Plan)['~entity'] & {
|
|
428
|
+
cadence: PlanCadenceEnum[keyof PlanCadenceEnum];
|
|
429
|
+
currency: CurrencyEnum[keyof CurrencyEnum];
|
|
430
|
+
billingProvider: BillingProviderEnum[keyof BillingProviderEnum];
|
|
431
|
+
};
|
|
432
|
+
};
|
|
433
|
+
CreatePlanMapper: {
|
|
434
|
+
'~entity': (typeof Plan)['~entity'] & {
|
|
435
|
+
cadence: PlanCadenceEnum[keyof PlanCadenceEnum];
|
|
436
|
+
currency: CurrencyEnum[keyof CurrencyEnum];
|
|
437
|
+
billingProvider: BillingProviderEnum[keyof BillingProviderEnum];
|
|
438
|
+
};
|
|
439
|
+
};
|
|
440
|
+
UpdatePlanMapper: {
|
|
441
|
+
'~entity': (typeof Plan)['~entity'] & {
|
|
442
|
+
cadence: PlanCadenceEnum[keyof PlanCadenceEnum];
|
|
443
|
+
currency: CurrencyEnum[keyof CurrencyEnum];
|
|
444
|
+
billingProvider: BillingProviderEnum[keyof BillingProviderEnum];
|
|
445
|
+
};
|
|
446
|
+
};
|
|
49
447
|
};
|
|
50
448
|
type BaseSubscriptionEntities<PartyType, BillingProviderType> = {
|
|
51
|
-
SubscriptionMapper:
|
|
52
|
-
|
|
53
|
-
|
|
449
|
+
SubscriptionMapper: {
|
|
450
|
+
'~entity': (typeof Subscription)['~entity'] & {
|
|
451
|
+
partyType: PartyType[keyof PartyType];
|
|
452
|
+
billingProvider: BillingProviderType[keyof BillingProviderType];
|
|
453
|
+
};
|
|
454
|
+
};
|
|
455
|
+
CreateSubscriptionMapper: {
|
|
456
|
+
'~entity': (typeof Subscription)['~entity'] & {
|
|
457
|
+
partyType: PartyType[keyof PartyType];
|
|
458
|
+
billingProvider: BillingProviderType[keyof BillingProviderType];
|
|
459
|
+
};
|
|
460
|
+
};
|
|
461
|
+
UpdateSubscriptionMapper: {
|
|
462
|
+
'~entity': (typeof Subscription)['~entity'] & {
|
|
463
|
+
partyType: PartyType[keyof PartyType];
|
|
464
|
+
billingProvider: BillingProviderType[keyof BillingProviderType];
|
|
465
|
+
};
|
|
466
|
+
};
|
|
54
467
|
};
|
|
55
468
|
|
|
56
469
|
type BillingPortalMappers<MapperEntities extends BaseBillingEntities, MapperDomains extends BaseBillingDtos> = {
|
|
57
470
|
BillingPortalMapper: {
|
|
58
|
-
|
|
471
|
+
entity: MapperEntities['BillingPortalMapper'];
|
|
472
|
+
toDto: (entity: InferEntity<MapperEntities['BillingPortalMapper']>) => Promise<MapperDomains['BillingPortalMapper']>;
|
|
59
473
|
};
|
|
60
474
|
CreateBillingPortalMapper: {
|
|
61
|
-
|
|
475
|
+
entity: MapperEntities['CreateBillingPortalMapper'];
|
|
476
|
+
toEntity: (dto: MapperDomains['CreateBillingPortalMapper'], em: EntityManager, ...args: unknown[]) => Promise<InferEntity<MapperEntities['CreateBillingPortalMapper']>>;
|
|
62
477
|
};
|
|
63
478
|
UpdateBillingPortalMapper: {
|
|
64
|
-
|
|
479
|
+
entity: MapperEntities['UpdateBillingPortalMapper'];
|
|
480
|
+
toEntity: (dto: MapperDomains['UpdateBillingPortalMapper'], em: EntityManager, ...args: unknown[]) => Promise<InferEntity<MapperEntities['UpdateBillingPortalMapper']>>;
|
|
65
481
|
};
|
|
66
482
|
};
|
|
67
483
|
|
|
68
484
|
type CheckoutSessionMappers<PaymentMethodEnum, CurrencyEnum, StatusEnum, MapperEntities extends BaseCheckoutSessionEntities<PaymentMethodEnum, CurrencyEnum, StatusEnum>, MapperDomains extends BaseCheckoutSessionDtos<PaymentMethodEnum, CurrencyEnum, StatusEnum>> = {
|
|
69
485
|
CheckoutSessionMapper: {
|
|
70
|
-
|
|
486
|
+
entity: MapperEntities['CheckoutSessionMapper'];
|
|
487
|
+
toDto: (entity: InferEntity<MapperEntities['CheckoutSessionMapper']>) => Promise<MapperDomains['CheckoutSessionMapper']>;
|
|
71
488
|
};
|
|
72
489
|
CreateCheckoutSessionMapper: {
|
|
73
|
-
|
|
490
|
+
entity: MapperEntities['CreateCheckoutSessionMapper'];
|
|
491
|
+
toEntity: (dto: MapperDomains['CreateCheckoutSessionMapper'], em: EntityManager, ...args: unknown[]) => Promise<InferEntity<MapperEntities['CreateCheckoutSessionMapper']>>;
|
|
74
492
|
};
|
|
75
493
|
UpdateCheckoutSessionMapper: {
|
|
76
|
-
|
|
494
|
+
entity: MapperEntities['UpdateCheckoutSessionMapper'];
|
|
495
|
+
toEntity: (dto: MapperDomains['UpdateCheckoutSessionMapper'], em: EntityManager, ...args: unknown[]) => Promise<InferEntity<MapperEntities['UpdateCheckoutSessionMapper']>>;
|
|
77
496
|
};
|
|
78
497
|
};
|
|
79
498
|
|
|
80
499
|
type PaymentLinkMappers<PaymentMethodEnum, CurrencyEnum, StatusEnum, MapperEntities extends BasePaymentLinkEntities<PaymentMethodEnum, CurrencyEnum, StatusEnum>, MapperDomains extends BasePaymentLinkDtos<PaymentMethodEnum, CurrencyEnum, StatusEnum>> = {
|
|
81
500
|
PaymentLinkMapper: {
|
|
82
|
-
|
|
501
|
+
entity: MapperEntities['PaymentLinkMapper'];
|
|
502
|
+
toDto: (entity: InferEntity<MapperEntities['PaymentLinkMapper']>) => Promise<MapperDomains['PaymentLinkMapper']>;
|
|
83
503
|
};
|
|
84
504
|
CreatePaymentLinkMapper: {
|
|
85
|
-
|
|
505
|
+
entity: MapperEntities['CreatePaymentLinkMapper'];
|
|
506
|
+
toEntity: (dto: MapperDomains['CreatePaymentLinkMapper'], em: EntityManager, ...args: unknown[]) => Promise<InferEntity<MapperEntities['CreatePaymentLinkMapper']>>;
|
|
86
507
|
};
|
|
87
508
|
UpdatePaymentLinkMapper: {
|
|
88
|
-
|
|
509
|
+
entity: MapperEntities['UpdatePaymentLinkMapper'];
|
|
510
|
+
toEntity: (dto: MapperDomains['UpdatePaymentLinkMapper'], em: EntityManager, ...args: unknown[]) => Promise<InferEntity<MapperEntities['UpdatePaymentLinkMapper']>>;
|
|
89
511
|
};
|
|
90
512
|
};
|
|
91
513
|
|
|
92
514
|
type PlanMappers<PlanCadenceEnum, CurrencyEnum, BillingProviderEnum, MapperEntities extends BasePlanEntities<PlanCadenceEnum, CurrencyEnum, BillingProviderEnum>, MapperDomains extends BasePlanDtos<PlanCadenceEnum, CurrencyEnum, BillingProviderEnum>> = {
|
|
93
515
|
PlanMapper: {
|
|
94
|
-
|
|
516
|
+
entity: MapperEntities['PlanMapper'];
|
|
517
|
+
toDto: (entity: InferEntity<MapperEntities['PlanMapper']>) => Promise<MapperDomains['PlanMapper']>;
|
|
95
518
|
};
|
|
96
519
|
CreatePlanMapper: {
|
|
97
|
-
|
|
520
|
+
entity: MapperEntities['CreatePlanMapper'];
|
|
521
|
+
toEntity: (dto: MapperDomains['CreatePlanMapper'], em: EntityManager, ...args: unknown[]) => Promise<InferEntity<MapperEntities['CreatePlanMapper']>>;
|
|
98
522
|
};
|
|
99
523
|
UpdatePlanMapper: {
|
|
100
|
-
|
|
524
|
+
entity: MapperEntities['UpdatePlanMapper'];
|
|
525
|
+
toEntity: (dto: MapperDomains['UpdatePlanMapper'], em: EntityManager, ...args: unknown[]) => Promise<InferEntity<MapperEntities['UpdatePlanMapper']>>;
|
|
101
526
|
};
|
|
102
527
|
};
|
|
103
528
|
|
|
104
529
|
type SubscriptionMappers<PartyType, BillingProviderType, MapperEntities extends BaseSubscriptionEntities<PartyType, BillingProviderType>, MapperDomains extends BaseSubscriptionDtos<PartyType, BillingProviderType>> = {
|
|
105
530
|
SubscriptionMapper: {
|
|
106
|
-
|
|
531
|
+
entity: MapperEntities['SubscriptionMapper'];
|
|
532
|
+
toDto: (entity: InferEntity<MapperEntities['SubscriptionMapper']>) => Promise<MapperDomains['SubscriptionMapper']>;
|
|
107
533
|
};
|
|
108
534
|
CreateSubscriptionMapper: {
|
|
109
|
-
|
|
535
|
+
entity: MapperEntities['CreateSubscriptionMapper'];
|
|
536
|
+
toEntity: (dto: MapperDomains['CreateSubscriptionMapper'], em: EntityManager, ...args: unknown[]) => Promise<InferEntity<MapperEntities['CreateSubscriptionMapper']>>;
|
|
110
537
|
};
|
|
111
538
|
UpdateSubscriptionMapper: {
|
|
112
|
-
|
|
539
|
+
entity: MapperEntities['UpdateSubscriptionMapper'];
|
|
540
|
+
toEntity: (dto: MapperDomains['UpdateSubscriptionMapper'], em: EntityManager, ...args: unknown[]) => Promise<InferEntity<MapperEntities['UpdateSubscriptionMapper']>>;
|
|
113
541
|
};
|
|
114
542
|
};
|
|
115
543
|
|