@forklaunch/implementation-billing-base 1.0.30 → 1.0.32
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.
|
@@ -1,32 +1,33 @@
|
|
|
1
|
+
import { ResolvedEntity } from '@forklaunch/core/persistence';
|
|
1
2
|
import { BillingPortal, CheckoutSession, PaymentLink, Plan, Subscription } from '../../persistence/entities';
|
|
2
3
|
export type BaseBillingEntities = {
|
|
3
4
|
BillingPortalMapper: {
|
|
4
|
-
'~entity': (typeof BillingPortal)['~entity']
|
|
5
|
+
'~entity': ResolvedEntity<(typeof BillingPortal)['~entity']>;
|
|
5
6
|
};
|
|
6
7
|
CreateBillingPortalMapper: {
|
|
7
|
-
'~entity': (typeof BillingPortal)['~entity']
|
|
8
|
+
'~entity': ResolvedEntity<(typeof BillingPortal)['~entity']>;
|
|
8
9
|
};
|
|
9
10
|
UpdateBillingPortalMapper: {
|
|
10
|
-
'~entity': (typeof BillingPortal)['~entity']
|
|
11
|
+
'~entity': ResolvedEntity<(typeof BillingPortal)['~entity']>;
|
|
11
12
|
};
|
|
12
13
|
};
|
|
13
14
|
export type BaseCheckoutSessionEntities<PaymentMethodEnum, CurrencyEnum, StatusEnum> = {
|
|
14
15
|
CheckoutSessionMapper: {
|
|
15
|
-
'~entity': (typeof CheckoutSession)['~entity'] & {
|
|
16
|
+
'~entity': ResolvedEntity<(typeof CheckoutSession)['~entity']> & {
|
|
16
17
|
paymentMethods: PaymentMethodEnum[keyof PaymentMethodEnum][];
|
|
17
18
|
currency: CurrencyEnum[keyof CurrencyEnum];
|
|
18
19
|
status: StatusEnum[keyof StatusEnum];
|
|
19
20
|
};
|
|
20
21
|
};
|
|
21
22
|
CreateCheckoutSessionMapper: {
|
|
22
|
-
'~entity': (typeof CheckoutSession)['~entity'] & {
|
|
23
|
+
'~entity': ResolvedEntity<(typeof CheckoutSession)['~entity']> & {
|
|
23
24
|
paymentMethods: PaymentMethodEnum[keyof PaymentMethodEnum][];
|
|
24
25
|
currency: CurrencyEnum[keyof CurrencyEnum];
|
|
25
26
|
status: StatusEnum[keyof StatusEnum];
|
|
26
27
|
};
|
|
27
28
|
};
|
|
28
29
|
UpdateCheckoutSessionMapper: {
|
|
29
|
-
'~entity': (typeof CheckoutSession)['~entity'] & {
|
|
30
|
+
'~entity': ResolvedEntity<(typeof CheckoutSession)['~entity']> & {
|
|
30
31
|
paymentMethods: PaymentMethodEnum[keyof PaymentMethodEnum][];
|
|
31
32
|
currency: CurrencyEnum[keyof CurrencyEnum];
|
|
32
33
|
status: StatusEnum[keyof StatusEnum];
|
|
@@ -35,21 +36,21 @@ export type BaseCheckoutSessionEntities<PaymentMethodEnum, CurrencyEnum, StatusE
|
|
|
35
36
|
};
|
|
36
37
|
export type BasePaymentLinkEntities<PaymentMethodEnum, CurrencyEnum, StatusEnum> = {
|
|
37
38
|
PaymentLinkMapper: {
|
|
38
|
-
'~entity': (typeof PaymentLink)['~entity'] & {
|
|
39
|
+
'~entity': ResolvedEntity<(typeof PaymentLink)['~entity']> & {
|
|
39
40
|
paymentMethods: PaymentMethodEnum[keyof PaymentMethodEnum][];
|
|
40
41
|
currency: CurrencyEnum[keyof CurrencyEnum];
|
|
41
42
|
status: StatusEnum[keyof StatusEnum];
|
|
42
43
|
};
|
|
43
44
|
};
|
|
44
45
|
CreatePaymentLinkMapper: {
|
|
45
|
-
'~entity': (typeof PaymentLink)['~entity'] & {
|
|
46
|
+
'~entity': ResolvedEntity<(typeof PaymentLink)['~entity']> & {
|
|
46
47
|
paymentMethods: PaymentMethodEnum[keyof PaymentMethodEnum][];
|
|
47
48
|
currency: CurrencyEnum[keyof CurrencyEnum];
|
|
48
49
|
status: StatusEnum[keyof StatusEnum];
|
|
49
50
|
};
|
|
50
51
|
};
|
|
51
52
|
UpdatePaymentLinkMapper: {
|
|
52
|
-
'~entity': (typeof PaymentLink)['~entity'] & {
|
|
53
|
+
'~entity': ResolvedEntity<(typeof PaymentLink)['~entity']> & {
|
|
53
54
|
paymentMethods: PaymentMethodEnum[keyof PaymentMethodEnum][];
|
|
54
55
|
currency: CurrencyEnum[keyof CurrencyEnum];
|
|
55
56
|
status: StatusEnum[keyof StatusEnum];
|
|
@@ -58,21 +59,21 @@ export type BasePaymentLinkEntities<PaymentMethodEnum, CurrencyEnum, StatusEnum>
|
|
|
58
59
|
};
|
|
59
60
|
export type BasePlanEntities<PlanCadenceEnum, CurrencyEnum, BillingProviderEnum> = {
|
|
60
61
|
PlanMapper: {
|
|
61
|
-
'~entity': (typeof Plan)['~entity'] & {
|
|
62
|
+
'~entity': ResolvedEntity<(typeof Plan)['~entity']> & {
|
|
62
63
|
cadence: PlanCadenceEnum[keyof PlanCadenceEnum];
|
|
63
64
|
currency: CurrencyEnum[keyof CurrencyEnum];
|
|
64
65
|
billingProvider: BillingProviderEnum[keyof BillingProviderEnum] | null | undefined;
|
|
65
66
|
};
|
|
66
67
|
};
|
|
67
68
|
CreatePlanMapper: {
|
|
68
|
-
'~entity': (typeof Plan)['~entity'] & {
|
|
69
|
+
'~entity': ResolvedEntity<(typeof Plan)['~entity']> & {
|
|
69
70
|
cadence: PlanCadenceEnum[keyof PlanCadenceEnum];
|
|
70
71
|
currency: CurrencyEnum[keyof CurrencyEnum];
|
|
71
72
|
billingProvider: BillingProviderEnum[keyof BillingProviderEnum] | null | undefined;
|
|
72
73
|
};
|
|
73
74
|
};
|
|
74
75
|
UpdatePlanMapper: {
|
|
75
|
-
'~entity': (typeof Plan)['~entity'] & {
|
|
76
|
+
'~entity': ResolvedEntity<(typeof Plan)['~entity']> & {
|
|
76
77
|
cadence: PlanCadenceEnum[keyof PlanCadenceEnum];
|
|
77
78
|
currency: CurrencyEnum[keyof CurrencyEnum];
|
|
78
79
|
billingProvider: BillingProviderEnum[keyof BillingProviderEnum] | null | undefined;
|
|
@@ -81,19 +82,19 @@ export type BasePlanEntities<PlanCadenceEnum, CurrencyEnum, BillingProviderEnum>
|
|
|
81
82
|
};
|
|
82
83
|
export type BaseSubscriptionEntities<PartyType, BillingProviderType> = {
|
|
83
84
|
SubscriptionMapper: {
|
|
84
|
-
'~entity': (typeof Subscription)['~entity'] & {
|
|
85
|
+
'~entity': ResolvedEntity<(typeof Subscription)['~entity']> & {
|
|
85
86
|
partyType: PartyType[keyof PartyType];
|
|
86
87
|
billingProvider: BillingProviderType[keyof BillingProviderType] | null | undefined;
|
|
87
88
|
};
|
|
88
89
|
};
|
|
89
90
|
CreateSubscriptionMapper: {
|
|
90
|
-
'~entity': (typeof Subscription)['~entity'] & {
|
|
91
|
+
'~entity': ResolvedEntity<(typeof Subscription)['~entity']> & {
|
|
91
92
|
partyType: PartyType[keyof PartyType];
|
|
92
93
|
billingProvider: BillingProviderType[keyof BillingProviderType] | null | undefined;
|
|
93
94
|
};
|
|
94
95
|
};
|
|
95
96
|
UpdateSubscriptionMapper: {
|
|
96
|
-
'~entity': (typeof Subscription)['~entity'] & {
|
|
97
|
+
'~entity': ResolvedEntity<(typeof Subscription)['~entity']> & {
|
|
97
98
|
partyType: PartyType[keyof PartyType];
|
|
98
99
|
billingProvider: BillingProviderType[keyof BillingProviderType] | null | undefined;
|
|
99
100
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"baseBillingEntity.types.d.ts","sourceRoot":"","sources":["../../../domain/types/baseBillingEntity.types.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EACb,eAAe,EACf,WAAW,EACX,IAAI,EACJ,YAAY,EACb,MAAM,4BAA4B,CAAC;AAGpC,MAAM,MAAM,mBAAmB,GAAG;IAChC,mBAAmB,EAAE;QACnB,SAAS,EAAE,CAAC,OAAO,aAAa,CAAC,CAAC,SAAS,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"baseBillingEntity.types.d.ts","sourceRoot":"","sources":["../../../domain/types/baseBillingEntity.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9D,OAAO,EACL,aAAa,EAC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AAC,CAAC;YACtC,eAAe,EACX,mBAAmB,CAAC,MAAM,mBAAmB,CAAC,GAC9C,IAAI,GACJ,SAAS,CAAC;SACf,CAAC;KACH,CAAC;IACF,wBAAwB,EAAE;QACxB,SAAS,EAAE,cAAc,CAAC,CAAC,OAAO,YAAY,CAAC,CAAC,SAAS,CAAC,CAAC,GAAG;YAC5D,SAAS,EAAE,SAAS,CAAC,MAAM,SAAS,CAAC,CAAC;YACtC,eAAe,EACX,mBAAmB,CAAC,MAAM,mBAAmB,CAAC,GAC9C,IAAI,GACJ,SAAS,CAAC;SACf,CAAC;KACH,CAAC;IACF,wBAAwB,EAAE;QACxB,SAAS,EAAE,cAAc,CAAC,CAAC,OAAO,YAAY,CAAC,CAAC,SAAS,CAAC,CAAC,GAAG;YAC5D,SAAS,EAAE,SAAS,CAAC,MAAM,SAAS,CAAC,CAAC;YACtC,eAAe,EACX,mBAAmB,CAAC,MAAM,mBAAmB,CAAC,GAC9C,IAAI,GACJ,SAAS,CAAC;SACf,CAAC;KACH,CAAC;CACH,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ResolvedEntity } from '@forklaunch/core/persistence';
|
|
1
2
|
import {
|
|
2
3
|
BillingPortal,
|
|
3
4
|
CheckoutSession,
|
|
@@ -9,13 +10,13 @@ import {
|
|
|
9
10
|
// billing portal entity types
|
|
10
11
|
export type BaseBillingEntities = {
|
|
11
12
|
BillingPortalMapper: {
|
|
12
|
-
'~entity': (typeof BillingPortal)['~entity']
|
|
13
|
+
'~entity': ResolvedEntity<(typeof BillingPortal)['~entity']>;
|
|
13
14
|
};
|
|
14
15
|
CreateBillingPortalMapper: {
|
|
15
|
-
'~entity': (typeof BillingPortal)['~entity']
|
|
16
|
+
'~entity': ResolvedEntity<(typeof BillingPortal)['~entity']>;
|
|
16
17
|
};
|
|
17
18
|
UpdateBillingPortalMapper: {
|
|
18
|
-
'~entity': (typeof BillingPortal)['~entity']
|
|
19
|
+
'~entity': ResolvedEntity<(typeof BillingPortal)['~entity']>;
|
|
19
20
|
};
|
|
20
21
|
};
|
|
21
22
|
|
|
@@ -26,21 +27,21 @@ export type BaseCheckoutSessionEntities<
|
|
|
26
27
|
StatusEnum
|
|
27
28
|
> = {
|
|
28
29
|
CheckoutSessionMapper: {
|
|
29
|
-
'~entity': (typeof CheckoutSession)['~entity'] & {
|
|
30
|
+
'~entity': ResolvedEntity<(typeof CheckoutSession)['~entity']> & {
|
|
30
31
|
paymentMethods: PaymentMethodEnum[keyof PaymentMethodEnum][];
|
|
31
32
|
currency: CurrencyEnum[keyof CurrencyEnum];
|
|
32
33
|
status: StatusEnum[keyof StatusEnum];
|
|
33
34
|
};
|
|
34
35
|
};
|
|
35
36
|
CreateCheckoutSessionMapper: {
|
|
36
|
-
'~entity': (typeof CheckoutSession)['~entity'] & {
|
|
37
|
+
'~entity': ResolvedEntity<(typeof CheckoutSession)['~entity']> & {
|
|
37
38
|
paymentMethods: PaymentMethodEnum[keyof PaymentMethodEnum][];
|
|
38
39
|
currency: CurrencyEnum[keyof CurrencyEnum];
|
|
39
40
|
status: StatusEnum[keyof StatusEnum];
|
|
40
41
|
};
|
|
41
42
|
};
|
|
42
43
|
UpdateCheckoutSessionMapper: {
|
|
43
|
-
'~entity': (typeof CheckoutSession)['~entity'] & {
|
|
44
|
+
'~entity': ResolvedEntity<(typeof CheckoutSession)['~entity']> & {
|
|
44
45
|
paymentMethods: PaymentMethodEnum[keyof PaymentMethodEnum][];
|
|
45
46
|
currency: CurrencyEnum[keyof CurrencyEnum];
|
|
46
47
|
status: StatusEnum[keyof StatusEnum];
|
|
@@ -55,21 +56,21 @@ export type BasePaymentLinkEntities<
|
|
|
55
56
|
StatusEnum
|
|
56
57
|
> = {
|
|
57
58
|
PaymentLinkMapper: {
|
|
58
|
-
'~entity': (typeof PaymentLink)['~entity'] & {
|
|
59
|
+
'~entity': ResolvedEntity<(typeof PaymentLink)['~entity']> & {
|
|
59
60
|
paymentMethods: PaymentMethodEnum[keyof PaymentMethodEnum][];
|
|
60
61
|
currency: CurrencyEnum[keyof CurrencyEnum];
|
|
61
62
|
status: StatusEnum[keyof StatusEnum];
|
|
62
63
|
};
|
|
63
64
|
};
|
|
64
65
|
CreatePaymentLinkMapper: {
|
|
65
|
-
'~entity': (typeof PaymentLink)['~entity'] & {
|
|
66
|
+
'~entity': ResolvedEntity<(typeof PaymentLink)['~entity']> & {
|
|
66
67
|
paymentMethods: PaymentMethodEnum[keyof PaymentMethodEnum][];
|
|
67
68
|
currency: CurrencyEnum[keyof CurrencyEnum];
|
|
68
69
|
status: StatusEnum[keyof StatusEnum];
|
|
69
70
|
};
|
|
70
71
|
};
|
|
71
72
|
UpdatePaymentLinkMapper: {
|
|
72
|
-
'~entity': (typeof PaymentLink)['~entity'] & {
|
|
73
|
+
'~entity': ResolvedEntity<(typeof PaymentLink)['~entity']> & {
|
|
73
74
|
paymentMethods: PaymentMethodEnum[keyof PaymentMethodEnum][];
|
|
74
75
|
currency: CurrencyEnum[keyof CurrencyEnum];
|
|
75
76
|
status: StatusEnum[keyof StatusEnum];
|
|
@@ -84,7 +85,7 @@ export type BasePlanEntities<
|
|
|
84
85
|
BillingProviderEnum
|
|
85
86
|
> = {
|
|
86
87
|
PlanMapper: {
|
|
87
|
-
'~entity': (typeof Plan)['~entity'] & {
|
|
88
|
+
'~entity': ResolvedEntity<(typeof Plan)['~entity']> & {
|
|
88
89
|
cadence: PlanCadenceEnum[keyof PlanCadenceEnum];
|
|
89
90
|
currency: CurrencyEnum[keyof CurrencyEnum];
|
|
90
91
|
billingProvider:
|
|
@@ -94,7 +95,7 @@ export type BasePlanEntities<
|
|
|
94
95
|
};
|
|
95
96
|
};
|
|
96
97
|
CreatePlanMapper: {
|
|
97
|
-
'~entity': (typeof Plan)['~entity'] & {
|
|
98
|
+
'~entity': ResolvedEntity<(typeof Plan)['~entity']> & {
|
|
98
99
|
cadence: PlanCadenceEnum[keyof PlanCadenceEnum];
|
|
99
100
|
currency: CurrencyEnum[keyof CurrencyEnum];
|
|
100
101
|
billingProvider:
|
|
@@ -104,7 +105,7 @@ export type BasePlanEntities<
|
|
|
104
105
|
};
|
|
105
106
|
};
|
|
106
107
|
UpdatePlanMapper: {
|
|
107
|
-
'~entity': (typeof Plan)['~entity'] & {
|
|
108
|
+
'~entity': ResolvedEntity<(typeof Plan)['~entity']> & {
|
|
108
109
|
cadence: PlanCadenceEnum[keyof PlanCadenceEnum];
|
|
109
110
|
currency: CurrencyEnum[keyof CurrencyEnum];
|
|
110
111
|
billingProvider:
|
|
@@ -118,7 +119,7 @@ export type BasePlanEntities<
|
|
|
118
119
|
// subscription entity types
|
|
119
120
|
export type BaseSubscriptionEntities<PartyType, BillingProviderType> = {
|
|
120
121
|
SubscriptionMapper: {
|
|
121
|
-
'~entity': (typeof Subscription)['~entity'] & {
|
|
122
|
+
'~entity': ResolvedEntity<(typeof Subscription)['~entity']> & {
|
|
122
123
|
partyType: PartyType[keyof PartyType];
|
|
123
124
|
billingProvider:
|
|
124
125
|
| BillingProviderType[keyof BillingProviderType]
|
|
@@ -127,7 +128,7 @@ export type BaseSubscriptionEntities<PartyType, BillingProviderType> = {
|
|
|
127
128
|
};
|
|
128
129
|
};
|
|
129
130
|
CreateSubscriptionMapper: {
|
|
130
|
-
'~entity': (typeof Subscription)['~entity'] & {
|
|
131
|
+
'~entity': ResolvedEntity<(typeof Subscription)['~entity']> & {
|
|
131
132
|
partyType: PartyType[keyof PartyType];
|
|
132
133
|
billingProvider:
|
|
133
134
|
| BillingProviderType[keyof BillingProviderType]
|
|
@@ -136,7 +137,7 @@ export type BaseSubscriptionEntities<PartyType, BillingProviderType> = {
|
|
|
136
137
|
};
|
|
137
138
|
};
|
|
138
139
|
UpdateSubscriptionMapper: {
|
|
139
|
-
'~entity': (typeof Subscription)['~entity'] & {
|
|
140
|
+
'~entity': ResolvedEntity<(typeof Subscription)['~entity']> & {
|
|
140
141
|
partyType: PartyType[keyof PartyType];
|
|
141
142
|
billingProvider:
|
|
142
143
|
| BillingProviderType[keyof BillingProviderType]
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@forklaunch/implementation-billing-base",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.32",
|
|
4
4
|
"description": "Billing basic implementation for forklaunch",
|
|
5
5
|
"homepage": "https://github.com/forklaunch/forklaunch-js#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -46,14 +46,14 @@
|
|
|
46
46
|
],
|
|
47
47
|
"dependencies": {
|
|
48
48
|
"@forklaunch/common": "^1.2.23",
|
|
49
|
-
"@forklaunch/core": "^1.5.
|
|
49
|
+
"@forklaunch/core": "^1.5.15",
|
|
50
50
|
"@forklaunch/internal": "^1.2.24",
|
|
51
51
|
"@forklaunch/validator": "^1.2.24",
|
|
52
|
-
"@mikro-orm/core": "7.1.11",
|
|
52
|
+
"@mikro-orm/core": "^7.1.11",
|
|
53
53
|
"@sinclair/typebox": "^0.34.52",
|
|
54
54
|
"ajv": "^8.20.0",
|
|
55
55
|
"zod": "^4.4.3",
|
|
56
|
-
"@forklaunch/interfaces-billing": "^1.0.
|
|
56
|
+
"@forklaunch/interfaces-billing": "^1.0.31"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"@typescript/native-preview": "7.0.0-dev.20260707.2",
|