@forklaunch/interfaces-billing 0.2.2 → 0.3.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.
Files changed (48) hide show
  1. package/lib/interfaces/index.d.mts +50 -0
  2. package/lib/interfaces/index.d.ts +50 -6
  3. package/lib/interfaces/index.js +18 -5
  4. package/lib/interfaces/index.mjs +0 -0
  5. package/lib/types/index.d.mts +100 -0
  6. package/lib/types/index.d.ts +100 -6
  7. package/lib/types/index.js +18 -5
  8. package/lib/types/index.mjs +0 -0
  9. package/package.json +11 -7
  10. package/lib/interfaces/billingPortal.service.interface.d.ts +0 -16
  11. package/lib/interfaces/billingPortal.service.interface.d.ts.map +0 -1
  12. package/lib/interfaces/billingPortal.service.interface.js +0 -1
  13. package/lib/interfaces/checkoutSession.service.interface.d.ts +0 -20
  14. package/lib/interfaces/checkoutSession.service.interface.d.ts.map +0 -1
  15. package/lib/interfaces/checkoutSession.service.interface.js +0 -1
  16. package/lib/interfaces/index.d.ts.map +0 -1
  17. package/lib/interfaces/paymentLink.service.interface.d.ts +0 -24
  18. package/lib/interfaces/paymentLink.service.interface.d.ts.map +0 -1
  19. package/lib/interfaces/paymentLink.service.interface.js +0 -1
  20. package/lib/interfaces/plan.service.interface.d.ts +0 -29
  21. package/lib/interfaces/plan.service.interface.d.ts.map +0 -1
  22. package/lib/interfaces/plan.service.interface.js +0 -1
  23. package/lib/interfaces/subscription.service.interface.d.ts +0 -48
  24. package/lib/interfaces/subscription.service.interface.d.ts.map +0 -1
  25. package/lib/interfaces/subscription.service.interface.js +0 -1
  26. package/lib/jest.config.d.ts +0 -4
  27. package/lib/jest.config.d.ts.map +0 -1
  28. package/lib/jest.config.js +0 -19
  29. package/lib/tsconfig.tsbuildinfo +0 -1
  30. package/lib/types/billingPortal.service.types.d.ts +0 -18
  31. package/lib/types/billingPortal.service.types.d.ts.map +0 -1
  32. package/lib/types/billingPortal.service.types.js +0 -1
  33. package/lib/types/checkoutSession.service.types.d.ts +0 -25
  34. package/lib/types/checkoutSession.service.types.d.ts.map +0 -1
  35. package/lib/types/checkoutSession.service.types.js +0 -1
  36. package/lib/types/index.d.ts.map +0 -1
  37. package/lib/types/paymentLink.service.types.d.ts +0 -24
  38. package/lib/types/paymentLink.service.types.d.ts.map +0 -1
  39. package/lib/types/paymentLink.service.types.js +0 -1
  40. package/lib/types/plan.service.types.d.ts +0 -25
  41. package/lib/types/plan.service.types.d.ts.map +0 -1
  42. package/lib/types/plan.service.types.js +0 -1
  43. package/lib/types/subscription.service.types.d.ts +0 -27
  44. package/lib/types/subscription.service.types.d.ts.map +0 -1
  45. package/lib/types/subscription.service.types.js +0 -1
  46. package/lib/vitest.config.d.ts +0 -3
  47. package/lib/vitest.config.d.ts.map +0 -1
  48. package/lib/vitest.config.js +0 -7
@@ -1,25 +0,0 @@
1
- import { IdDto, IdsDto, RecordTimingDto } from '@forklaunch/common';
2
- export type CreatePlanDto<PlanCadenceEnum, BillingProviderEnum> = {
3
- active: boolean;
4
- name: string;
5
- description?: string;
6
- price: number;
7
- cadence: PlanCadenceEnum[keyof PlanCadenceEnum];
8
- features?: string[];
9
- extraFields?: unknown;
10
- externalId: string;
11
- billingProvider?: BillingProviderEnum[keyof BillingProviderEnum];
12
- };
13
- export type UpdatePlanDto<PlanCadenceEnum, BillingProviderEnum> = IdDto &
14
- Partial<CreatePlanDto<PlanCadenceEnum, BillingProviderEnum>>;
15
- export type PlanDto<PlanCadenceEnum, BillingProviderEnum> = IdDto &
16
- CreatePlanDto<PlanCadenceEnum, BillingProviderEnum> &
17
- Partial<RecordTimingDto>;
18
- export type PlanServiceParameters<PlanCadenceEnum, BillingProviderEnum> = {
19
- CreatePlanDto: CreatePlanDto<PlanCadenceEnum, BillingProviderEnum>;
20
- UpdatePlanDto: UpdatePlanDto<PlanCadenceEnum, BillingProviderEnum>;
21
- PlanDto: PlanDto<PlanCadenceEnum, BillingProviderEnum>;
22
- IdDto: IdDto;
23
- IdsDto: IdsDto;
24
- };
25
- //# sourceMappingURL=plan.service.types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"plan.service.types.d.ts","sourceRoot":"","sources":["../../types/plan.service.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAEpE,MAAM,MAAM,aAAa,CAAC,eAAe,EAAE,mBAAmB,IAAI;IAChE,MAAM,EAAE,OAAO,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,eAAe,CAAC,MAAM,eAAe,CAAC,CAAC;IAChD,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,UAAU,EAAE,MAAM,CAAC;IACnB,eAAe,CAAC,EAAE,mBAAmB,CAAC,MAAM,mBAAmB,CAAC,CAAC;CAClE,CAAC;AACF,MAAM,MAAM,aAAa,CAAC,eAAe,EAAE,mBAAmB,IAAI,KAAK,GACrE,OAAO,CAAC,aAAa,CAAC,eAAe,EAAE,mBAAmB,CAAC,CAAC,CAAC;AAC/D,MAAM,MAAM,OAAO,CAAC,eAAe,EAAE,mBAAmB,IAAI,KAAK,GAC/D,aAAa,CAAC,eAAe,EAAE,mBAAmB,CAAC,GACnD,OAAO,CAAC,eAAe,CAAC,CAAC;AAE3B,MAAM,MAAM,qBAAqB,CAAC,eAAe,EAAE,mBAAmB,IAAI;IACxE,aAAa,EAAE,aAAa,CAAC,eAAe,EAAE,mBAAmB,CAAC,CAAC;IACnE,aAAa,EAAE,aAAa,CAAC,eAAe,EAAE,mBAAmB,CAAC,CAAC;IACnE,OAAO,EAAE,OAAO,CAAC,eAAe,EAAE,mBAAmB,CAAC,CAAC;IACvD,KAAK,EAAE,KAAK,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC"}
@@ -1 +0,0 @@
1
- export {};
@@ -1,27 +0,0 @@
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 &
16
- Partial<CreateSubscriptionDto<PartyType, BillingProviderType>>;
17
- export type SubscriptionDto<PartyType, BillingProviderType> = IdDto &
18
- CreateSubscriptionDto<PartyType, BillingProviderType> &
19
- Partial<RecordTimingDto>;
20
- export type SubscriptionServiceParameters<PartyType, BillingProviderType> = {
21
- CreateSubscriptionDto: CreateSubscriptionDto<PartyType, BillingProviderType>;
22
- UpdateSubscriptionDto: UpdateSubscriptionDto<PartyType, BillingProviderType>;
23
- SubscriptionDto: SubscriptionDto<PartyType, BillingProviderType>;
24
- IdDto: IdDto;
25
- IdsDto: IdsDto;
26
- };
27
- //# sourceMappingURL=subscription.service.types.d.ts.map
@@ -1 +0,0 @@
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;AAEpE,MAAM,MAAM,qBAAqB,CAAC,SAAS,EAAE,mBAAmB,IAAI;IAClE,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,SAAS,CAAC,MAAM,SAAS,CAAC,CAAC;IACtC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,OAAO,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,UAAU,EAAE,MAAM,CAAC;IACnB,eAAe,CAAC,EAAE,mBAAmB,CAAC,MAAM,mBAAmB,CAAC,CAAC;IACjE,SAAS,EAAE,IAAI,CAAC;IAChB,OAAO,EAAE,IAAI,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AACF,MAAM,MAAM,qBAAqB,CAAC,SAAS,EAAE,mBAAmB,IAAI,KAAK,GACvE,OAAO,CAAC,qBAAqB,CAAC,SAAS,EAAE,mBAAmB,CAAC,CAAC,CAAC;AACjE,MAAM,MAAM,eAAe,CAAC,SAAS,EAAE,mBAAmB,IAAI,KAAK,GACjE,qBAAqB,CAAC,SAAS,EAAE,mBAAmB,CAAC,GACrD,OAAO,CAAC,eAAe,CAAC,CAAC;AAE3B,MAAM,MAAM,6BAA6B,CAAC,SAAS,EAAE,mBAAmB,IAAI;IAC1E,qBAAqB,EAAE,qBAAqB,CAAC,SAAS,EAAE,mBAAmB,CAAC,CAAC;IAC7E,qBAAqB,EAAE,qBAAqB,CAAC,SAAS,EAAE,mBAAmB,CAAC,CAAC;IAC7E,eAAe,EAAE,eAAe,CAAC,SAAS,EAAE,mBAAmB,CAAC,CAAC;IACjE,KAAK,EAAE,KAAK,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC"}
@@ -1 +0,0 @@
1
- export {};
@@ -1,3 +0,0 @@
1
- declare const _default: import('vite').UserConfig;
2
- export default _default;
3
- //# sourceMappingURL=vitest.config.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"vitest.config.d.ts","sourceRoot":"","sources":["../vitest.config.ts"],"names":[],"mappings":";AAEA,wBAKG"}
@@ -1,7 +0,0 @@
1
- import { defineConfig } from 'vitest/config';
2
- export default defineConfig({
3
- test: {
4
- globals: true,
5
- exclude: ['**/lib/**', '**/node_modules/**']
6
- }
7
- });