@forklaunch/interfaces-billing 0.6.3 → 0.6.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/interfaces/index.d.mts +146 -37
- package/lib/interfaces/index.d.ts +146 -37
- package/lib/interfaces/index.js +8 -4
- package/lib/types/index.d.mts +133 -52
- package/lib/types/index.d.ts +133 -52
- package/lib/types/index.js +8 -4
- package/package.json +3 -3
|
@@ -1,50 +1,159 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
BillingPortalServiceParameters,
|
|
3
|
+
CheckoutSessionServiceParameters,
|
|
4
|
+
PaymentLinkServiceParameters,
|
|
5
|
+
PlanServiceParameters,
|
|
6
|
+
SubscriptionServiceParameters
|
|
7
|
+
} from '../types/index.mjs';
|
|
2
8
|
import { EntityManager } from '@mikro-orm/core';
|
|
3
9
|
import '@forklaunch/common';
|
|
4
10
|
|
|
5
|
-
interface BillingPortalService<
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
11
|
+
interface BillingPortalService<
|
|
12
|
+
Params extends BillingPortalServiceParameters = BillingPortalServiceParameters
|
|
13
|
+
> {
|
|
14
|
+
createBillingPortalSession: (
|
|
15
|
+
billingPortalDto: Params['CreateBillingPortalDto'],
|
|
16
|
+
...args: unknown[]
|
|
17
|
+
) => Promise<Params['BillingPortalDto']>;
|
|
18
|
+
getBillingPortalSession: (
|
|
19
|
+
idDto: Params['IdDto']
|
|
20
|
+
) => Promise<Params['BillingPortalDto']>;
|
|
21
|
+
updateBillingPortalSession: (
|
|
22
|
+
billingPortalDto: Params['UpdateBillingPortalDto'],
|
|
23
|
+
...args: unknown[]
|
|
24
|
+
) => Promise<Params['BillingPortalDto']>;
|
|
25
|
+
expireBillingPortalSession: (idDto: Params['IdDto']) => Promise<void>;
|
|
10
26
|
}
|
|
11
27
|
|
|
12
|
-
interface CheckoutSessionService<
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
28
|
+
interface CheckoutSessionService<
|
|
29
|
+
PaymentMethodEnum,
|
|
30
|
+
CurrencyEnum,
|
|
31
|
+
StatusEnum,
|
|
32
|
+
Params extends CheckoutSessionServiceParameters<
|
|
33
|
+
PaymentMethodEnum,
|
|
34
|
+
CurrencyEnum,
|
|
35
|
+
StatusEnum
|
|
36
|
+
> = CheckoutSessionServiceParameters<
|
|
37
|
+
PaymentMethodEnum,
|
|
38
|
+
CurrencyEnum,
|
|
39
|
+
StatusEnum
|
|
40
|
+
>
|
|
41
|
+
> {
|
|
42
|
+
createCheckoutSession: (
|
|
43
|
+
checkoutSessionDto: Params['CreateCheckoutSessionDto']
|
|
44
|
+
) => Promise<Params['CheckoutSessionDto']>;
|
|
45
|
+
getCheckoutSession: (
|
|
46
|
+
idDto: Params['IdDto']
|
|
47
|
+
) => Promise<Params['CheckoutSessionDto']>;
|
|
48
|
+
expireCheckoutSession: (idDto: Params['IdDto']) => Promise<void>;
|
|
49
|
+
handleCheckoutSuccess: (idDto: Params['IdDto']) => Promise<void>;
|
|
50
|
+
handleCheckoutFailure: (idDto: Params['IdDto']) => Promise<void>;
|
|
18
51
|
}
|
|
19
52
|
|
|
20
|
-
interface PaymentLinkService<
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
53
|
+
interface PaymentLinkService<
|
|
54
|
+
PaymentMethodEnum,
|
|
55
|
+
CurrencyEnum,
|
|
56
|
+
StatusEnum,
|
|
57
|
+
Params extends PaymentLinkServiceParameters<
|
|
58
|
+
PaymentMethodEnum,
|
|
59
|
+
CurrencyEnum,
|
|
60
|
+
StatusEnum
|
|
61
|
+
> = PaymentLinkServiceParameters<PaymentMethodEnum, CurrencyEnum, StatusEnum>
|
|
62
|
+
> {
|
|
63
|
+
createPaymentLink: (
|
|
64
|
+
paymentLink: Params['CreatePaymentLinkDto']
|
|
65
|
+
) => Promise<Params['PaymentLinkDto']>;
|
|
66
|
+
updatePaymentLink: (
|
|
67
|
+
paymentLink: Params['UpdatePaymentLinkDto']
|
|
68
|
+
) => Promise<Params['PaymentLinkDto']>;
|
|
69
|
+
getPaymentLink: (idDto: Params['IdDto']) => Promise<Params['PaymentLinkDto']>;
|
|
70
|
+
expirePaymentLink: (idDto: Params['IdDto']) => Promise<void>;
|
|
71
|
+
handlePaymentSuccess: (idDto: Params['IdDto']) => Promise<void>;
|
|
72
|
+
handlePaymentFailure: (idDto: Params['IdDto']) => Promise<void>;
|
|
73
|
+
listPaymentLinks: (
|
|
74
|
+
idsDto?: Params['IdsDto']
|
|
75
|
+
) => Promise<Params['PaymentLinkDto'][]>;
|
|
28
76
|
}
|
|
29
77
|
|
|
30
|
-
interface PlanService<
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
78
|
+
interface PlanService<
|
|
79
|
+
PlanCadenceEnum,
|
|
80
|
+
CurrencyEnum,
|
|
81
|
+
BillingProviderEnum,
|
|
82
|
+
Params extends PlanServiceParameters<
|
|
83
|
+
PlanCadenceEnum,
|
|
84
|
+
CurrencyEnum,
|
|
85
|
+
BillingProviderEnum
|
|
86
|
+
> = PlanServiceParameters<PlanCadenceEnum, CurrencyEnum, BillingProviderEnum>
|
|
87
|
+
> {
|
|
88
|
+
createPlan: (
|
|
89
|
+
planDto: Params['CreatePlanDto'],
|
|
90
|
+
em?: EntityManager
|
|
91
|
+
) => Promise<Params['PlanDto']>;
|
|
92
|
+
getPlan: (
|
|
93
|
+
idDto: Params['IdDto'],
|
|
94
|
+
em?: EntityManager
|
|
95
|
+
) => Promise<Params['PlanDto']>;
|
|
96
|
+
updatePlan: (
|
|
97
|
+
planDto: Params['UpdatePlanDto'],
|
|
98
|
+
em?: EntityManager
|
|
99
|
+
) => Promise<Params['PlanDto']>;
|
|
100
|
+
deletePlan: (idDto: Params['IdDto'], em?: EntityManager) => Promise<void>;
|
|
101
|
+
listPlans: (
|
|
102
|
+
idsDto?: Params['IdsDto'],
|
|
103
|
+
em?: EntityManager
|
|
104
|
+
) => Promise<Params['PlanDto'][]>;
|
|
36
105
|
}
|
|
37
106
|
|
|
38
|
-
interface SubscriptionService<
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
107
|
+
interface SubscriptionService<
|
|
108
|
+
PartyType,
|
|
109
|
+
BillingProviderType,
|
|
110
|
+
Params extends SubscriptionServiceParameters<
|
|
111
|
+
PartyType,
|
|
112
|
+
BillingProviderType
|
|
113
|
+
> = SubscriptionServiceParameters<PartyType, BillingProviderType>
|
|
114
|
+
> {
|
|
115
|
+
createSubscription: (
|
|
116
|
+
subscriptionDto: Params['CreateSubscriptionDto'],
|
|
117
|
+
em?: EntityManager
|
|
118
|
+
) => Promise<Params['SubscriptionDto']>;
|
|
119
|
+
getSubscription: (
|
|
120
|
+
idDto: Params['IdDto'],
|
|
121
|
+
em?: EntityManager
|
|
122
|
+
) => Promise<Params['SubscriptionDto']>;
|
|
123
|
+
getUserSubscription: (
|
|
124
|
+
idDto: Params['IdDto'],
|
|
125
|
+
em?: EntityManager
|
|
126
|
+
) => Promise<Params['SubscriptionDto']>;
|
|
127
|
+
getOrganizationSubscription: (
|
|
128
|
+
idDto: Params['IdDto'],
|
|
129
|
+
em?: EntityManager
|
|
130
|
+
) => Promise<Params['SubscriptionDto']>;
|
|
131
|
+
updateSubscription: (
|
|
132
|
+
subscriptionDto: Params['UpdateSubscriptionDto'],
|
|
133
|
+
em?: EntityManager
|
|
134
|
+
) => Promise<Params['SubscriptionDto']>;
|
|
135
|
+
deleteSubscription: (
|
|
136
|
+
id: Params['IdDto'],
|
|
137
|
+
em?: EntityManager
|
|
138
|
+
) => Promise<void>;
|
|
139
|
+
listSubscriptions: (
|
|
140
|
+
idsDto: Params['IdsDto'],
|
|
141
|
+
em?: EntityManager
|
|
142
|
+
) => Promise<Params['SubscriptionDto'][]>;
|
|
143
|
+
cancelSubscription: (
|
|
144
|
+
idDto: Params['IdDto'],
|
|
145
|
+
em?: EntityManager
|
|
146
|
+
) => Promise<void>;
|
|
147
|
+
resumeSubscription: (
|
|
148
|
+
idDto: Params['IdDto'],
|
|
149
|
+
em?: EntityManager
|
|
150
|
+
) => Promise<void>;
|
|
48
151
|
}
|
|
49
152
|
|
|
50
|
-
export type {
|
|
153
|
+
export type {
|
|
154
|
+
BillingPortalService,
|
|
155
|
+
CheckoutSessionService,
|
|
156
|
+
PaymentLinkService,
|
|
157
|
+
PlanService,
|
|
158
|
+
SubscriptionService
|
|
159
|
+
};
|
|
@@ -1,50 +1,159 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
BillingPortalServiceParameters,
|
|
3
|
+
CheckoutSessionServiceParameters,
|
|
4
|
+
PaymentLinkServiceParameters,
|
|
5
|
+
PlanServiceParameters,
|
|
6
|
+
SubscriptionServiceParameters
|
|
7
|
+
} from '../types/index.js';
|
|
2
8
|
import { EntityManager } from '@mikro-orm/core';
|
|
3
9
|
import '@forklaunch/common';
|
|
4
10
|
|
|
5
|
-
interface BillingPortalService<
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
11
|
+
interface BillingPortalService<
|
|
12
|
+
Params extends BillingPortalServiceParameters = BillingPortalServiceParameters
|
|
13
|
+
> {
|
|
14
|
+
createBillingPortalSession: (
|
|
15
|
+
billingPortalDto: Params['CreateBillingPortalDto'],
|
|
16
|
+
...args: unknown[]
|
|
17
|
+
) => Promise<Params['BillingPortalDto']>;
|
|
18
|
+
getBillingPortalSession: (
|
|
19
|
+
idDto: Params['IdDto']
|
|
20
|
+
) => Promise<Params['BillingPortalDto']>;
|
|
21
|
+
updateBillingPortalSession: (
|
|
22
|
+
billingPortalDto: Params['UpdateBillingPortalDto'],
|
|
23
|
+
...args: unknown[]
|
|
24
|
+
) => Promise<Params['BillingPortalDto']>;
|
|
25
|
+
expireBillingPortalSession: (idDto: Params['IdDto']) => Promise<void>;
|
|
10
26
|
}
|
|
11
27
|
|
|
12
|
-
interface CheckoutSessionService<
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
28
|
+
interface CheckoutSessionService<
|
|
29
|
+
PaymentMethodEnum,
|
|
30
|
+
CurrencyEnum,
|
|
31
|
+
StatusEnum,
|
|
32
|
+
Params extends CheckoutSessionServiceParameters<
|
|
33
|
+
PaymentMethodEnum,
|
|
34
|
+
CurrencyEnum,
|
|
35
|
+
StatusEnum
|
|
36
|
+
> = CheckoutSessionServiceParameters<
|
|
37
|
+
PaymentMethodEnum,
|
|
38
|
+
CurrencyEnum,
|
|
39
|
+
StatusEnum
|
|
40
|
+
>
|
|
41
|
+
> {
|
|
42
|
+
createCheckoutSession: (
|
|
43
|
+
checkoutSessionDto: Params['CreateCheckoutSessionDto']
|
|
44
|
+
) => Promise<Params['CheckoutSessionDto']>;
|
|
45
|
+
getCheckoutSession: (
|
|
46
|
+
idDto: Params['IdDto']
|
|
47
|
+
) => Promise<Params['CheckoutSessionDto']>;
|
|
48
|
+
expireCheckoutSession: (idDto: Params['IdDto']) => Promise<void>;
|
|
49
|
+
handleCheckoutSuccess: (idDto: Params['IdDto']) => Promise<void>;
|
|
50
|
+
handleCheckoutFailure: (idDto: Params['IdDto']) => Promise<void>;
|
|
18
51
|
}
|
|
19
52
|
|
|
20
|
-
interface PaymentLinkService<
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
53
|
+
interface PaymentLinkService<
|
|
54
|
+
PaymentMethodEnum,
|
|
55
|
+
CurrencyEnum,
|
|
56
|
+
StatusEnum,
|
|
57
|
+
Params extends PaymentLinkServiceParameters<
|
|
58
|
+
PaymentMethodEnum,
|
|
59
|
+
CurrencyEnum,
|
|
60
|
+
StatusEnum
|
|
61
|
+
> = PaymentLinkServiceParameters<PaymentMethodEnum, CurrencyEnum, StatusEnum>
|
|
62
|
+
> {
|
|
63
|
+
createPaymentLink: (
|
|
64
|
+
paymentLink: Params['CreatePaymentLinkDto']
|
|
65
|
+
) => Promise<Params['PaymentLinkDto']>;
|
|
66
|
+
updatePaymentLink: (
|
|
67
|
+
paymentLink: Params['UpdatePaymentLinkDto']
|
|
68
|
+
) => Promise<Params['PaymentLinkDto']>;
|
|
69
|
+
getPaymentLink: (idDto: Params['IdDto']) => Promise<Params['PaymentLinkDto']>;
|
|
70
|
+
expirePaymentLink: (idDto: Params['IdDto']) => Promise<void>;
|
|
71
|
+
handlePaymentSuccess: (idDto: Params['IdDto']) => Promise<void>;
|
|
72
|
+
handlePaymentFailure: (idDto: Params['IdDto']) => Promise<void>;
|
|
73
|
+
listPaymentLinks: (
|
|
74
|
+
idsDto?: Params['IdsDto']
|
|
75
|
+
) => Promise<Params['PaymentLinkDto'][]>;
|
|
28
76
|
}
|
|
29
77
|
|
|
30
|
-
interface PlanService<
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
78
|
+
interface PlanService<
|
|
79
|
+
PlanCadenceEnum,
|
|
80
|
+
CurrencyEnum,
|
|
81
|
+
BillingProviderEnum,
|
|
82
|
+
Params extends PlanServiceParameters<
|
|
83
|
+
PlanCadenceEnum,
|
|
84
|
+
CurrencyEnum,
|
|
85
|
+
BillingProviderEnum
|
|
86
|
+
> = PlanServiceParameters<PlanCadenceEnum, CurrencyEnum, BillingProviderEnum>
|
|
87
|
+
> {
|
|
88
|
+
createPlan: (
|
|
89
|
+
planDto: Params['CreatePlanDto'],
|
|
90
|
+
em?: EntityManager
|
|
91
|
+
) => Promise<Params['PlanDto']>;
|
|
92
|
+
getPlan: (
|
|
93
|
+
idDto: Params['IdDto'],
|
|
94
|
+
em?: EntityManager
|
|
95
|
+
) => Promise<Params['PlanDto']>;
|
|
96
|
+
updatePlan: (
|
|
97
|
+
planDto: Params['UpdatePlanDto'],
|
|
98
|
+
em?: EntityManager
|
|
99
|
+
) => Promise<Params['PlanDto']>;
|
|
100
|
+
deletePlan: (idDto: Params['IdDto'], em?: EntityManager) => Promise<void>;
|
|
101
|
+
listPlans: (
|
|
102
|
+
idsDto?: Params['IdsDto'],
|
|
103
|
+
em?: EntityManager
|
|
104
|
+
) => Promise<Params['PlanDto'][]>;
|
|
36
105
|
}
|
|
37
106
|
|
|
38
|
-
interface SubscriptionService<
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
107
|
+
interface SubscriptionService<
|
|
108
|
+
PartyType,
|
|
109
|
+
BillingProviderType,
|
|
110
|
+
Params extends SubscriptionServiceParameters<
|
|
111
|
+
PartyType,
|
|
112
|
+
BillingProviderType
|
|
113
|
+
> = SubscriptionServiceParameters<PartyType, BillingProviderType>
|
|
114
|
+
> {
|
|
115
|
+
createSubscription: (
|
|
116
|
+
subscriptionDto: Params['CreateSubscriptionDto'],
|
|
117
|
+
em?: EntityManager
|
|
118
|
+
) => Promise<Params['SubscriptionDto']>;
|
|
119
|
+
getSubscription: (
|
|
120
|
+
idDto: Params['IdDto'],
|
|
121
|
+
em?: EntityManager
|
|
122
|
+
) => Promise<Params['SubscriptionDto']>;
|
|
123
|
+
getUserSubscription: (
|
|
124
|
+
idDto: Params['IdDto'],
|
|
125
|
+
em?: EntityManager
|
|
126
|
+
) => Promise<Params['SubscriptionDto']>;
|
|
127
|
+
getOrganizationSubscription: (
|
|
128
|
+
idDto: Params['IdDto'],
|
|
129
|
+
em?: EntityManager
|
|
130
|
+
) => Promise<Params['SubscriptionDto']>;
|
|
131
|
+
updateSubscription: (
|
|
132
|
+
subscriptionDto: Params['UpdateSubscriptionDto'],
|
|
133
|
+
em?: EntityManager
|
|
134
|
+
) => Promise<Params['SubscriptionDto']>;
|
|
135
|
+
deleteSubscription: (
|
|
136
|
+
id: Params['IdDto'],
|
|
137
|
+
em?: EntityManager
|
|
138
|
+
) => Promise<void>;
|
|
139
|
+
listSubscriptions: (
|
|
140
|
+
idsDto: Params['IdsDto'],
|
|
141
|
+
em?: EntityManager
|
|
142
|
+
) => Promise<Params['SubscriptionDto'][]>;
|
|
143
|
+
cancelSubscription: (
|
|
144
|
+
idDto: Params['IdDto'],
|
|
145
|
+
em?: EntityManager
|
|
146
|
+
) => Promise<void>;
|
|
147
|
+
resumeSubscription: (
|
|
148
|
+
idDto: Params['IdDto'],
|
|
149
|
+
em?: EntityManager
|
|
150
|
+
) => Promise<void>;
|
|
48
151
|
}
|
|
49
152
|
|
|
50
|
-
export type {
|
|
153
|
+
export type {
|
|
154
|
+
BillingPortalService,
|
|
155
|
+
CheckoutSessionService,
|
|
156
|
+
PaymentLinkService,
|
|
157
|
+
PlanService,
|
|
158
|
+
SubscriptionService
|
|
159
|
+
};
|
package/lib/interfaces/index.js
CHANGED
|
@@ -1,17 +1,21 @@
|
|
|
1
|
-
|
|
1
|
+
'use strict';
|
|
2
2
|
var __defProp = Object.defineProperty;
|
|
3
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
5
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
6
|
var __copyProps = (to, from, except, desc) => {
|
|
7
|
-
if (from && typeof from ===
|
|
7
|
+
if ((from && typeof from === 'object') || typeof from === 'function') {
|
|
8
8
|
for (let key of __getOwnPropNames(from))
|
|
9
9
|
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
-
__defProp(to, key, {
|
|
10
|
+
__defProp(to, key, {
|
|
11
|
+
get: () => from[key],
|
|
12
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
13
|
+
});
|
|
11
14
|
}
|
|
12
15
|
return to;
|
|
13
16
|
};
|
|
14
|
-
var __toCommonJS = (mod) =>
|
|
17
|
+
var __toCommonJS = (mod) =>
|
|
18
|
+
__copyProps(__defProp({}, '__esModule', { value: true }), mod);
|
|
15
19
|
|
|
16
20
|
// interfaces/index.ts
|
|
17
21
|
var interfaces_exports = {};
|
package/lib/types/index.d.mts
CHANGED
|
@@ -1,21 +1,24 @@
|
|
|
1
1
|
import { IdDto, RecordTimingDto, IdsDto } from '@forklaunch/common';
|
|
2
2
|
|
|
3
3
|
type CreateBillingPortalDto = Partial<IdDto> & {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
customerId: string;
|
|
5
|
+
uri?: string;
|
|
6
|
+
expiresAt: Date;
|
|
7
|
+
providerFields?: unknown;
|
|
8
8
|
};
|
|
9
9
|
type UpdateBillingPortalDto = Partial<CreateBillingPortalDto> & IdDto;
|
|
10
|
-
type BillingPortalDto = CreateBillingPortalDto &
|
|
10
|
+
type BillingPortalDto = CreateBillingPortalDto &
|
|
11
|
+
IdDto &
|
|
12
|
+
Partial<RecordTimingDto>;
|
|
11
13
|
type BillingPortalServiceParameters = {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
CreateBillingPortalDto: CreateBillingPortalDto;
|
|
15
|
+
UpdateBillingPortalDto: UpdateBillingPortalDto;
|
|
16
|
+
BillingPortalDto: BillingPortalDto;
|
|
17
|
+
IdDto: IdDto;
|
|
16
18
|
};
|
|
17
19
|
|
|
18
|
-
type CreateCheckoutSessionDto<PaymentMethodEnum, CurrencyEnum, StatusEnum> =
|
|
20
|
+
type CreateCheckoutSessionDto<PaymentMethodEnum, CurrencyEnum, StatusEnum> =
|
|
21
|
+
Partial<IdDto> & {
|
|
19
22
|
customerId: string;
|
|
20
23
|
paymentMethods: PaymentMethodEnum[keyof PaymentMethodEnum][];
|
|
21
24
|
currency: CurrencyEnum[keyof CurrencyEnum];
|
|
@@ -25,33 +28,68 @@ type CreateCheckoutSessionDto<PaymentMethodEnum, CurrencyEnum, StatusEnum> = Par
|
|
|
25
28
|
expiresAt: Date;
|
|
26
29
|
status: StatusEnum[keyof StatusEnum];
|
|
27
30
|
providerFields?: unknown;
|
|
28
|
-
};
|
|
29
|
-
type UpdateCheckoutSessionDto<PaymentMethodEnum, CurrencyEnum, StatusEnum> =
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
31
|
+
};
|
|
32
|
+
type UpdateCheckoutSessionDto<PaymentMethodEnum, CurrencyEnum, StatusEnum> =
|
|
33
|
+
Partial<
|
|
34
|
+
CreateCheckoutSessionDto<PaymentMethodEnum, CurrencyEnum, StatusEnum>
|
|
35
|
+
> &
|
|
36
|
+
IdDto;
|
|
37
|
+
type CheckoutSessionDto<PaymentMethodEnum, CurrencyEnum, StatusEnum> =
|
|
38
|
+
CreateCheckoutSessionDto<PaymentMethodEnum, CurrencyEnum, StatusEnum> &
|
|
39
|
+
IdDto &
|
|
40
|
+
Partial<RecordTimingDto>;
|
|
41
|
+
type CheckoutSessionServiceParameters<
|
|
42
|
+
PaymentMethodEnum,
|
|
43
|
+
CurrencyEnum,
|
|
44
|
+
StatusEnum
|
|
45
|
+
> = {
|
|
46
|
+
CreateCheckoutSessionDto: CreateCheckoutSessionDto<
|
|
47
|
+
PaymentMethodEnum,
|
|
48
|
+
CurrencyEnum,
|
|
49
|
+
StatusEnum
|
|
50
|
+
>;
|
|
51
|
+
CheckoutSessionDto: CheckoutSessionDto<
|
|
52
|
+
PaymentMethodEnum,
|
|
53
|
+
CurrencyEnum,
|
|
54
|
+
StatusEnum
|
|
55
|
+
>;
|
|
56
|
+
IdDto: IdDto;
|
|
35
57
|
};
|
|
36
58
|
|
|
37
|
-
type CreatePaymentLinkDto<PaymentMethodEnum, CurrencyEnum, StatusEnum> =
|
|
59
|
+
type CreatePaymentLinkDto<PaymentMethodEnum, CurrencyEnum, StatusEnum> =
|
|
60
|
+
Partial<IdDto> & {
|
|
38
61
|
amount: number;
|
|
39
62
|
currency: CurrencyEnum[keyof CurrencyEnum];
|
|
40
63
|
paymentMethods: PaymentMethodEnum[keyof PaymentMethodEnum][];
|
|
41
64
|
status: StatusEnum[keyof StatusEnum];
|
|
42
65
|
providerFields?: unknown;
|
|
43
|
-
};
|
|
44
|
-
type UpdatePaymentLinkDto<PaymentMethodEnum, CurrencyEnum, StatusEnum> =
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
66
|
+
};
|
|
67
|
+
type UpdatePaymentLinkDto<PaymentMethodEnum, CurrencyEnum, StatusEnum> =
|
|
68
|
+
Partial<CreatePaymentLinkDto<PaymentMethodEnum, CurrencyEnum, StatusEnum>> &
|
|
69
|
+
IdDto;
|
|
70
|
+
type PaymentLinkDto<PaymentMethodEnum, CurrencyEnum, StatusEnum> =
|
|
71
|
+
CreatePaymentLinkDto<PaymentMethodEnum, CurrencyEnum, StatusEnum> &
|
|
72
|
+
IdDto &
|
|
73
|
+
Partial<RecordTimingDto>;
|
|
74
|
+
type PaymentLinkServiceParameters<PaymentMethodEnum, CurrencyEnum, StatusEnum> =
|
|
75
|
+
{
|
|
76
|
+
CreatePaymentLinkDto: CreatePaymentLinkDto<
|
|
77
|
+
PaymentMethodEnum,
|
|
78
|
+
CurrencyEnum,
|
|
79
|
+
StatusEnum
|
|
80
|
+
>;
|
|
81
|
+
UpdatePaymentLinkDto: UpdatePaymentLinkDto<
|
|
82
|
+
PaymentMethodEnum,
|
|
83
|
+
CurrencyEnum,
|
|
84
|
+
StatusEnum
|
|
85
|
+
>;
|
|
49
86
|
PaymentLinkDto: PaymentLinkDto<PaymentMethodEnum, CurrencyEnum, StatusEnum>;
|
|
50
87
|
IdDto: IdDto;
|
|
51
88
|
IdsDto: IdsDto;
|
|
52
|
-
};
|
|
89
|
+
};
|
|
53
90
|
|
|
54
|
-
type CreatePlanDto<PlanCadenceEnum, CurrencyEnum, BillingProviderEnum> =
|
|
91
|
+
type CreatePlanDto<PlanCadenceEnum, CurrencyEnum, BillingProviderEnum> =
|
|
92
|
+
Partial<IdDto> & {
|
|
55
93
|
active: boolean;
|
|
56
94
|
name: string;
|
|
57
95
|
description?: string;
|
|
@@ -62,38 +100,81 @@ type CreatePlanDto<PlanCadenceEnum, CurrencyEnum, BillingProviderEnum> = Partial
|
|
|
62
100
|
providerFields?: unknown;
|
|
63
101
|
externalId: string;
|
|
64
102
|
billingProvider?: BillingProviderEnum[keyof BillingProviderEnum];
|
|
65
|
-
};
|
|
66
|
-
type UpdatePlanDto<PlanCadenceEnum, CurrencyEnum, BillingProviderEnum> =
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
103
|
+
};
|
|
104
|
+
type UpdatePlanDto<PlanCadenceEnum, CurrencyEnum, BillingProviderEnum> =
|
|
105
|
+
Partial<CreatePlanDto<PlanCadenceEnum, CurrencyEnum, BillingProviderEnum>> &
|
|
106
|
+
IdDto;
|
|
107
|
+
type PlanDto<PlanCadenceEnum, CurrencyEnum, BillingProviderEnum> =
|
|
108
|
+
CreatePlanDto<PlanCadenceEnum, CurrencyEnum, BillingProviderEnum> &
|
|
109
|
+
IdDto &
|
|
110
|
+
Partial<RecordTimingDto>;
|
|
111
|
+
type PlanServiceParameters<PlanCadenceEnum, CurrencyEnum, BillingProviderEnum> =
|
|
112
|
+
{
|
|
113
|
+
CreatePlanDto: CreatePlanDto<
|
|
114
|
+
PlanCadenceEnum,
|
|
115
|
+
CurrencyEnum,
|
|
116
|
+
BillingProviderEnum
|
|
117
|
+
>;
|
|
118
|
+
UpdatePlanDto: UpdatePlanDto<
|
|
119
|
+
PlanCadenceEnum,
|
|
120
|
+
CurrencyEnum,
|
|
121
|
+
BillingProviderEnum
|
|
122
|
+
>;
|
|
71
123
|
PlanDto: PlanDto<PlanCadenceEnum, CurrencyEnum, BillingProviderEnum>;
|
|
72
124
|
IdDto: IdDto;
|
|
73
125
|
IdsDto: IdsDto;
|
|
74
|
-
};
|
|
126
|
+
};
|
|
75
127
|
|
|
76
128
|
type CreateSubscriptionDto<PartyType, BillingProviderType> = Partial<IdDto> & {
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
129
|
+
partyId: string;
|
|
130
|
+
partyType: PartyType[keyof PartyType];
|
|
131
|
+
description?: string;
|
|
132
|
+
active: boolean;
|
|
133
|
+
productId: string;
|
|
134
|
+
providerFields?: unknown;
|
|
135
|
+
externalId: string;
|
|
136
|
+
billingProvider?: BillingProviderType[keyof BillingProviderType];
|
|
137
|
+
startDate: Date;
|
|
138
|
+
endDate?: Date;
|
|
139
|
+
status: string;
|
|
88
140
|
};
|
|
89
|
-
type UpdateSubscriptionDto<PartyType, BillingProviderType> = Partial<
|
|
90
|
-
|
|
141
|
+
type UpdateSubscriptionDto<PartyType, BillingProviderType> = Partial<
|
|
142
|
+
CreateSubscriptionDto<PartyType, BillingProviderType>
|
|
143
|
+
> &
|
|
144
|
+
IdDto;
|
|
145
|
+
type SubscriptionDto<PartyType, BillingProviderType> = CreateSubscriptionDto<
|
|
146
|
+
PartyType,
|
|
147
|
+
BillingProviderType
|
|
148
|
+
> &
|
|
149
|
+
IdDto &
|
|
150
|
+
Partial<RecordTimingDto>;
|
|
91
151
|
type SubscriptionServiceParameters<PartyType, BillingProviderType> = {
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
152
|
+
CreateSubscriptionDto: CreateSubscriptionDto<PartyType, BillingProviderType>;
|
|
153
|
+
UpdateSubscriptionDto: UpdateSubscriptionDto<PartyType, BillingProviderType>;
|
|
154
|
+
SubscriptionDto: SubscriptionDto<PartyType, BillingProviderType>;
|
|
155
|
+
IdDto: IdDto;
|
|
156
|
+
IdsDto: IdsDto;
|
|
97
157
|
};
|
|
98
158
|
|
|
99
|
-
export type {
|
|
159
|
+
export type {
|
|
160
|
+
BillingPortalDto,
|
|
161
|
+
BillingPortalServiceParameters,
|
|
162
|
+
CheckoutSessionDto,
|
|
163
|
+
CheckoutSessionServiceParameters,
|
|
164
|
+
CreateBillingPortalDto,
|
|
165
|
+
CreateCheckoutSessionDto,
|
|
166
|
+
CreatePaymentLinkDto,
|
|
167
|
+
CreatePlanDto,
|
|
168
|
+
CreateSubscriptionDto,
|
|
169
|
+
PaymentLinkDto,
|
|
170
|
+
PaymentLinkServiceParameters,
|
|
171
|
+
PlanDto,
|
|
172
|
+
PlanServiceParameters,
|
|
173
|
+
SubscriptionDto,
|
|
174
|
+
SubscriptionServiceParameters,
|
|
175
|
+
UpdateBillingPortalDto,
|
|
176
|
+
UpdateCheckoutSessionDto,
|
|
177
|
+
UpdatePaymentLinkDto,
|
|
178
|
+
UpdatePlanDto,
|
|
179
|
+
UpdateSubscriptionDto
|
|
180
|
+
};
|
package/lib/types/index.d.ts
CHANGED
|
@@ -1,21 +1,24 @@
|
|
|
1
1
|
import { IdDto, RecordTimingDto, IdsDto } from '@forklaunch/common';
|
|
2
2
|
|
|
3
3
|
type CreateBillingPortalDto = Partial<IdDto> & {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
customerId: string;
|
|
5
|
+
uri?: string;
|
|
6
|
+
expiresAt: Date;
|
|
7
|
+
providerFields?: unknown;
|
|
8
8
|
};
|
|
9
9
|
type UpdateBillingPortalDto = Partial<CreateBillingPortalDto> & IdDto;
|
|
10
|
-
type BillingPortalDto = CreateBillingPortalDto &
|
|
10
|
+
type BillingPortalDto = CreateBillingPortalDto &
|
|
11
|
+
IdDto &
|
|
12
|
+
Partial<RecordTimingDto>;
|
|
11
13
|
type BillingPortalServiceParameters = {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
CreateBillingPortalDto: CreateBillingPortalDto;
|
|
15
|
+
UpdateBillingPortalDto: UpdateBillingPortalDto;
|
|
16
|
+
BillingPortalDto: BillingPortalDto;
|
|
17
|
+
IdDto: IdDto;
|
|
16
18
|
};
|
|
17
19
|
|
|
18
|
-
type CreateCheckoutSessionDto<PaymentMethodEnum, CurrencyEnum, StatusEnum> =
|
|
20
|
+
type CreateCheckoutSessionDto<PaymentMethodEnum, CurrencyEnum, StatusEnum> =
|
|
21
|
+
Partial<IdDto> & {
|
|
19
22
|
customerId: string;
|
|
20
23
|
paymentMethods: PaymentMethodEnum[keyof PaymentMethodEnum][];
|
|
21
24
|
currency: CurrencyEnum[keyof CurrencyEnum];
|
|
@@ -25,33 +28,68 @@ type CreateCheckoutSessionDto<PaymentMethodEnum, CurrencyEnum, StatusEnum> = Par
|
|
|
25
28
|
expiresAt: Date;
|
|
26
29
|
status: StatusEnum[keyof StatusEnum];
|
|
27
30
|
providerFields?: unknown;
|
|
28
|
-
};
|
|
29
|
-
type UpdateCheckoutSessionDto<PaymentMethodEnum, CurrencyEnum, StatusEnum> =
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
31
|
+
};
|
|
32
|
+
type UpdateCheckoutSessionDto<PaymentMethodEnum, CurrencyEnum, StatusEnum> =
|
|
33
|
+
Partial<
|
|
34
|
+
CreateCheckoutSessionDto<PaymentMethodEnum, CurrencyEnum, StatusEnum>
|
|
35
|
+
> &
|
|
36
|
+
IdDto;
|
|
37
|
+
type CheckoutSessionDto<PaymentMethodEnum, CurrencyEnum, StatusEnum> =
|
|
38
|
+
CreateCheckoutSessionDto<PaymentMethodEnum, CurrencyEnum, StatusEnum> &
|
|
39
|
+
IdDto &
|
|
40
|
+
Partial<RecordTimingDto>;
|
|
41
|
+
type CheckoutSessionServiceParameters<
|
|
42
|
+
PaymentMethodEnum,
|
|
43
|
+
CurrencyEnum,
|
|
44
|
+
StatusEnum
|
|
45
|
+
> = {
|
|
46
|
+
CreateCheckoutSessionDto: CreateCheckoutSessionDto<
|
|
47
|
+
PaymentMethodEnum,
|
|
48
|
+
CurrencyEnum,
|
|
49
|
+
StatusEnum
|
|
50
|
+
>;
|
|
51
|
+
CheckoutSessionDto: CheckoutSessionDto<
|
|
52
|
+
PaymentMethodEnum,
|
|
53
|
+
CurrencyEnum,
|
|
54
|
+
StatusEnum
|
|
55
|
+
>;
|
|
56
|
+
IdDto: IdDto;
|
|
35
57
|
};
|
|
36
58
|
|
|
37
|
-
type CreatePaymentLinkDto<PaymentMethodEnum, CurrencyEnum, StatusEnum> =
|
|
59
|
+
type CreatePaymentLinkDto<PaymentMethodEnum, CurrencyEnum, StatusEnum> =
|
|
60
|
+
Partial<IdDto> & {
|
|
38
61
|
amount: number;
|
|
39
62
|
currency: CurrencyEnum[keyof CurrencyEnum];
|
|
40
63
|
paymentMethods: PaymentMethodEnum[keyof PaymentMethodEnum][];
|
|
41
64
|
status: StatusEnum[keyof StatusEnum];
|
|
42
65
|
providerFields?: unknown;
|
|
43
|
-
};
|
|
44
|
-
type UpdatePaymentLinkDto<PaymentMethodEnum, CurrencyEnum, StatusEnum> =
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
66
|
+
};
|
|
67
|
+
type UpdatePaymentLinkDto<PaymentMethodEnum, CurrencyEnum, StatusEnum> =
|
|
68
|
+
Partial<CreatePaymentLinkDto<PaymentMethodEnum, CurrencyEnum, StatusEnum>> &
|
|
69
|
+
IdDto;
|
|
70
|
+
type PaymentLinkDto<PaymentMethodEnum, CurrencyEnum, StatusEnum> =
|
|
71
|
+
CreatePaymentLinkDto<PaymentMethodEnum, CurrencyEnum, StatusEnum> &
|
|
72
|
+
IdDto &
|
|
73
|
+
Partial<RecordTimingDto>;
|
|
74
|
+
type PaymentLinkServiceParameters<PaymentMethodEnum, CurrencyEnum, StatusEnum> =
|
|
75
|
+
{
|
|
76
|
+
CreatePaymentLinkDto: CreatePaymentLinkDto<
|
|
77
|
+
PaymentMethodEnum,
|
|
78
|
+
CurrencyEnum,
|
|
79
|
+
StatusEnum
|
|
80
|
+
>;
|
|
81
|
+
UpdatePaymentLinkDto: UpdatePaymentLinkDto<
|
|
82
|
+
PaymentMethodEnum,
|
|
83
|
+
CurrencyEnum,
|
|
84
|
+
StatusEnum
|
|
85
|
+
>;
|
|
49
86
|
PaymentLinkDto: PaymentLinkDto<PaymentMethodEnum, CurrencyEnum, StatusEnum>;
|
|
50
87
|
IdDto: IdDto;
|
|
51
88
|
IdsDto: IdsDto;
|
|
52
|
-
};
|
|
89
|
+
};
|
|
53
90
|
|
|
54
|
-
type CreatePlanDto<PlanCadenceEnum, CurrencyEnum, BillingProviderEnum> =
|
|
91
|
+
type CreatePlanDto<PlanCadenceEnum, CurrencyEnum, BillingProviderEnum> =
|
|
92
|
+
Partial<IdDto> & {
|
|
55
93
|
active: boolean;
|
|
56
94
|
name: string;
|
|
57
95
|
description?: string;
|
|
@@ -62,38 +100,81 @@ type CreatePlanDto<PlanCadenceEnum, CurrencyEnum, BillingProviderEnum> = Partial
|
|
|
62
100
|
providerFields?: unknown;
|
|
63
101
|
externalId: string;
|
|
64
102
|
billingProvider?: BillingProviderEnum[keyof BillingProviderEnum];
|
|
65
|
-
};
|
|
66
|
-
type UpdatePlanDto<PlanCadenceEnum, CurrencyEnum, BillingProviderEnum> =
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
103
|
+
};
|
|
104
|
+
type UpdatePlanDto<PlanCadenceEnum, CurrencyEnum, BillingProviderEnum> =
|
|
105
|
+
Partial<CreatePlanDto<PlanCadenceEnum, CurrencyEnum, BillingProviderEnum>> &
|
|
106
|
+
IdDto;
|
|
107
|
+
type PlanDto<PlanCadenceEnum, CurrencyEnum, BillingProviderEnum> =
|
|
108
|
+
CreatePlanDto<PlanCadenceEnum, CurrencyEnum, BillingProviderEnum> &
|
|
109
|
+
IdDto &
|
|
110
|
+
Partial<RecordTimingDto>;
|
|
111
|
+
type PlanServiceParameters<PlanCadenceEnum, CurrencyEnum, BillingProviderEnum> =
|
|
112
|
+
{
|
|
113
|
+
CreatePlanDto: CreatePlanDto<
|
|
114
|
+
PlanCadenceEnum,
|
|
115
|
+
CurrencyEnum,
|
|
116
|
+
BillingProviderEnum
|
|
117
|
+
>;
|
|
118
|
+
UpdatePlanDto: UpdatePlanDto<
|
|
119
|
+
PlanCadenceEnum,
|
|
120
|
+
CurrencyEnum,
|
|
121
|
+
BillingProviderEnum
|
|
122
|
+
>;
|
|
71
123
|
PlanDto: PlanDto<PlanCadenceEnum, CurrencyEnum, BillingProviderEnum>;
|
|
72
124
|
IdDto: IdDto;
|
|
73
125
|
IdsDto: IdsDto;
|
|
74
|
-
};
|
|
126
|
+
};
|
|
75
127
|
|
|
76
128
|
type CreateSubscriptionDto<PartyType, BillingProviderType> = Partial<IdDto> & {
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
129
|
+
partyId: string;
|
|
130
|
+
partyType: PartyType[keyof PartyType];
|
|
131
|
+
description?: string;
|
|
132
|
+
active: boolean;
|
|
133
|
+
productId: string;
|
|
134
|
+
providerFields?: unknown;
|
|
135
|
+
externalId: string;
|
|
136
|
+
billingProvider?: BillingProviderType[keyof BillingProviderType];
|
|
137
|
+
startDate: Date;
|
|
138
|
+
endDate?: Date;
|
|
139
|
+
status: string;
|
|
88
140
|
};
|
|
89
|
-
type UpdateSubscriptionDto<PartyType, BillingProviderType> = Partial<
|
|
90
|
-
|
|
141
|
+
type UpdateSubscriptionDto<PartyType, BillingProviderType> = Partial<
|
|
142
|
+
CreateSubscriptionDto<PartyType, BillingProviderType>
|
|
143
|
+
> &
|
|
144
|
+
IdDto;
|
|
145
|
+
type SubscriptionDto<PartyType, BillingProviderType> = CreateSubscriptionDto<
|
|
146
|
+
PartyType,
|
|
147
|
+
BillingProviderType
|
|
148
|
+
> &
|
|
149
|
+
IdDto &
|
|
150
|
+
Partial<RecordTimingDto>;
|
|
91
151
|
type SubscriptionServiceParameters<PartyType, BillingProviderType> = {
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
152
|
+
CreateSubscriptionDto: CreateSubscriptionDto<PartyType, BillingProviderType>;
|
|
153
|
+
UpdateSubscriptionDto: UpdateSubscriptionDto<PartyType, BillingProviderType>;
|
|
154
|
+
SubscriptionDto: SubscriptionDto<PartyType, BillingProviderType>;
|
|
155
|
+
IdDto: IdDto;
|
|
156
|
+
IdsDto: IdsDto;
|
|
97
157
|
};
|
|
98
158
|
|
|
99
|
-
export type {
|
|
159
|
+
export type {
|
|
160
|
+
BillingPortalDto,
|
|
161
|
+
BillingPortalServiceParameters,
|
|
162
|
+
CheckoutSessionDto,
|
|
163
|
+
CheckoutSessionServiceParameters,
|
|
164
|
+
CreateBillingPortalDto,
|
|
165
|
+
CreateCheckoutSessionDto,
|
|
166
|
+
CreatePaymentLinkDto,
|
|
167
|
+
CreatePlanDto,
|
|
168
|
+
CreateSubscriptionDto,
|
|
169
|
+
PaymentLinkDto,
|
|
170
|
+
PaymentLinkServiceParameters,
|
|
171
|
+
PlanDto,
|
|
172
|
+
PlanServiceParameters,
|
|
173
|
+
SubscriptionDto,
|
|
174
|
+
SubscriptionServiceParameters,
|
|
175
|
+
UpdateBillingPortalDto,
|
|
176
|
+
UpdateCheckoutSessionDto,
|
|
177
|
+
UpdatePaymentLinkDto,
|
|
178
|
+
UpdatePlanDto,
|
|
179
|
+
UpdateSubscriptionDto
|
|
180
|
+
};
|
package/lib/types/index.js
CHANGED
|
@@ -1,17 +1,21 @@
|
|
|
1
|
-
|
|
1
|
+
'use strict';
|
|
2
2
|
var __defProp = Object.defineProperty;
|
|
3
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
5
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
6
|
var __copyProps = (to, from, except, desc) => {
|
|
7
|
-
if (from && typeof from ===
|
|
7
|
+
if ((from && typeof from === 'object') || typeof from === 'function') {
|
|
8
8
|
for (let key of __getOwnPropNames(from))
|
|
9
9
|
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
-
__defProp(to, key, {
|
|
10
|
+
__defProp(to, key, {
|
|
11
|
+
get: () => from[key],
|
|
12
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
13
|
+
});
|
|
11
14
|
}
|
|
12
15
|
return to;
|
|
13
16
|
};
|
|
14
|
-
var __toCommonJS = (mod) =>
|
|
17
|
+
var __toCommonJS = (mod) =>
|
|
18
|
+
__copyProps(__defProp({}, '__esModule', { value: true }), mod);
|
|
15
19
|
|
|
16
20
|
// types/index.ts
|
|
17
21
|
var types_exports = {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@forklaunch/interfaces-billing",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.4",
|
|
4
4
|
"description": "Billing interfaces for forklaunch",
|
|
5
5
|
"homepage": "https://github.com/forklaunch/forklaunch-js#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -31,11 +31,11 @@
|
|
|
31
31
|
"lib/**"
|
|
32
32
|
],
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@forklaunch/common": "^0.6.
|
|
34
|
+
"@forklaunch/common": "^0.6.7",
|
|
35
35
|
"@mikro-orm/core": "^6.5.2"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"@typescript/native-preview": "7.0.0-dev.
|
|
38
|
+
"@typescript/native-preview": "7.0.0-dev.20250911.1",
|
|
39
39
|
"depcheck": "^1.4.7",
|
|
40
40
|
"prettier": "^3.6.2",
|
|
41
41
|
"typedoc": "^0.28.12"
|