@forklaunch/interfaces-billing 0.1.2 → 0.1.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/eject/interfaces/interfaces/billingPortal.service.interface.ts +18 -0
- package/lib/eject/interfaces/interfaces/checkoutSession.service.interface.ts +19 -0
- package/lib/eject/interfaces/interfaces/index.ts +5 -0
- package/lib/eject/interfaces/paymentLink.service.interface.ts +27 -0
- package/lib/eject/interfaces/plan.service.interface.ts +29 -0
- package/lib/eject/interfaces/subscription.service.interface.ts +49 -0
- package/lib/eject/types/types/billingPortal.service.types.ts +19 -0
- package/lib/eject/types/types/checkoutSession.service.types.ts +21 -0
- package/lib/eject/types/types/index.ts +5 -0
- package/lib/eject/types/types/paymentLink.service.types.ts +23 -0
- package/lib/eject/types/types/plan.service.types.ts +26 -0
- package/lib/eject/types/types/subscription.service.types.ts +28 -0
- package/lib/index.d.ts +3 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/interfaces/billingPortal.service.interface.d.ts +8 -0
- package/lib/interfaces/billingPortal.service.interface.d.ts.map +1 -0
- package/lib/interfaces/billingPortal.service.interface.js +1 -0
- package/lib/interfaces/checkoutSession.service.interface.d.ts +9 -0
- package/lib/interfaces/checkoutSession.service.interface.d.ts.map +1 -0
- package/lib/interfaces/checkoutSession.service.interface.js +1 -0
- package/lib/interfaces/index.d.ts +6 -0
- package/lib/interfaces/index.d.ts.map +1 -0
- package/lib/interfaces/index.js +5 -0
- package/lib/interfaces/paymentLink.service.interface.d.ts +11 -0
- package/lib/interfaces/paymentLink.service.interface.d.ts.map +1 -0
- package/lib/interfaces/paymentLink.service.interface.js +1 -0
- package/lib/interfaces/plan.service.interface.d.ts +10 -0
- package/lib/interfaces/plan.service.interface.d.ts.map +1 -0
- package/lib/interfaces/plan.service.interface.js +1 -0
- package/lib/interfaces/subscription.service.interface.d.ts +14 -0
- package/lib/interfaces/subscription.service.interface.d.ts.map +1 -0
- package/lib/interfaces/subscription.service.interface.js +1 -0
- package/lib/jest.config.d.ts +4 -0
- package/lib/jest.config.d.ts.map +1 -0
- package/lib/jest.config.js +19 -0
- package/lib/tsconfig.tsbuildinfo +1 -0
- package/lib/types/billingPortal.service.types.d.ts +16 -0
- package/lib/types/billingPortal.service.types.d.ts.map +1 -0
- package/lib/types/billingPortal.service.types.js +1 -0
- package/lib/types/checkoutSession.service.types.d.ts +17 -0
- package/lib/types/checkoutSession.service.types.d.ts.map +1 -0
- package/lib/types/checkoutSession.service.types.js +1 -0
- package/lib/types/index.d.ts +6 -0
- package/lib/types/index.d.ts.map +1 -0
- package/lib/types/index.js +5 -0
- package/lib/types/paymentLink.service.types.d.ts +19 -0
- package/lib/types/paymentLink.service.types.d.ts.map +1 -0
- package/lib/types/paymentLink.service.types.js +1 -0
- package/lib/types/plan.service.types.d.ts +22 -0
- package/lib/types/plan.service.types.d.ts.map +1 -0
- package/lib/types/plan.service.types.js +1 -0
- package/lib/types/subscription.service.types.d.ts +24 -0
- package/lib/types/subscription.service.types.d.ts.map +1 -0
- package/lib/types/subscription.service.types.js +1 -0
- package/lib/vitest.config.d.ts +3 -0
- package/lib/vitest.config.d.ts.map +1 -0
- package/lib/vitest.config.js +7 -0
- package/package.json +4 -2
- package/tsconfig.json +0 -7
- /package/{interfaces → lib/eject/interfaces}/billingPortal.service.interface.ts +0 -0
- /package/{interfaces → lib/eject/interfaces}/checkoutSession.service.interface.ts +0 -0
- /package/{interfaces → lib/eject/interfaces}/index.ts +0 -0
- /package/{interfaces → lib/eject/interfaces/interfaces}/paymentLink.service.interface.ts +0 -0
- /package/{interfaces → lib/eject/interfaces/interfaces}/plan.service.interface.ts +0 -0
- /package/{interfaces → lib/eject/interfaces/interfaces}/subscription.service.interface.ts +0 -0
- /package/{types → lib/eject/types}/billingPortal.service.types.ts +0 -0
- /package/{types → lib/eject/types}/checkoutSession.service.types.ts +0 -0
- /package/{types → lib/eject/types}/index.ts +0 -0
- /package/{types → lib/eject/types}/paymentLink.service.types.ts +0 -0
- /package/{types → lib/eject/types}/plan.service.types.ts +0 -0
- /package/{types → lib/eject/types}/subscription.service.types.ts +0 -0
- /package/{index.ts → lib/index.js} +0 -0
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { IdDto, IdsDto, RecordTimingDto } from '@forklaunch/common';
|
|
2
|
+
export type CreateSubscriptionDto<PartyType, BillingProviderType> = {
|
|
3
|
+
partyId: string;
|
|
4
|
+
partyType: PartyType[keyof PartyType];
|
|
5
|
+
description?: string;
|
|
6
|
+
active: boolean;
|
|
7
|
+
productId: string;
|
|
8
|
+
extraFields?: unknown;
|
|
9
|
+
externalId: string;
|
|
10
|
+
billingProvider?: BillingProviderType[keyof BillingProviderType];
|
|
11
|
+
startDate: Date;
|
|
12
|
+
endDate: Date;
|
|
13
|
+
status: string;
|
|
14
|
+
};
|
|
15
|
+
export type UpdateSubscriptionDto<PartyType, BillingProviderType> = IdDto & Partial<CreateSubscriptionDto<PartyType, BillingProviderType>>;
|
|
16
|
+
export type SubscriptionDto<PartyType, BillingProviderType> = IdDto & CreateSubscriptionDto<PartyType, BillingProviderType> & Partial<RecordTimingDto>;
|
|
17
|
+
export type SubscriptionServiceParameters<PartyType, BillingProviderType> = {
|
|
18
|
+
CreateSubscriptionDto: CreateSubscriptionDto<PartyType, BillingProviderType>;
|
|
19
|
+
UpdateSubscriptionDto: UpdateSubscriptionDto<PartyType, BillingProviderType>;
|
|
20
|
+
SubscriptionDto: SubscriptionDto<PartyType, BillingProviderType>;
|
|
21
|
+
IdDto: IdDto;
|
|
22
|
+
IdsDto: IdsDto;
|
|
23
|
+
};
|
|
24
|
+
//# sourceMappingURL=subscription.service.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"subscription.service.types.d.ts","sourceRoot":"","sources":["../../types/subscription.service.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;A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AEA,wBAKG"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@forklaunch/interfaces-billing",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.4",
|
|
4
4
|
"description": "Billing interfaces for forklaunch",
|
|
5
5
|
"homepage": "https://github.com/forklaunch/forklaunch-js#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -12,7 +12,9 @@
|
|
|
12
12
|
},
|
|
13
13
|
"license": "MIT",
|
|
14
14
|
"author": "Forklift Technologies, Inc.",
|
|
15
|
-
"
|
|
15
|
+
"files": [
|
|
16
|
+
"lib/**"
|
|
17
|
+
],
|
|
16
18
|
"dependencies": {
|
|
17
19
|
"@forklaunch/common": "^0.2.5",
|
|
18
20
|
"@mikro-orm/core": "^6.4.11"
|
package/tsconfig.json
DELETED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|