@forklaunch/implementation-billing-stripe 0.0.1

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 (34) hide show
  1. package/LICENSE +21 -0
  2. package/lib/domain/index.d.mts +189 -0
  3. package/lib/domain/index.d.ts +189 -0
  4. package/lib/domain/index.js +231 -0
  5. package/lib/domain/index.mjs +201 -0
  6. package/lib/eject/domain/schemas/billingPortal.schema.ts +37 -0
  7. package/lib/eject/domain/schemas/checkoutSession.schema.ts +74 -0
  8. package/lib/eject/domain/schemas/index.ts +5 -0
  9. package/lib/eject/domain/schemas/paymentLink.schema.ts +62 -0
  10. package/lib/eject/domain/schemas/plan.schema.ts +68 -0
  11. package/lib/eject/domain/schemas/subscription.schema.ts +78 -0
  12. package/lib/eject/services/billingPortal.service.ts +185 -0
  13. package/lib/eject/services/checkoutSession.service.ts +179 -0
  14. package/lib/eject/services/index.ts +6 -0
  15. package/lib/eject/services/paymentLink.service.ts +239 -0
  16. package/lib/eject/services/plan.service.ts +219 -0
  17. package/lib/eject/services/subscription.service.ts +285 -0
  18. package/lib/eject/services/webhook.service.ts +272 -0
  19. package/lib/eject/types/index.ts +2 -0
  20. package/lib/eject/types/stripe.dto.types.ts +214 -0
  21. package/lib/eject/types/stripe.entity.types.ts +83 -0
  22. package/lib/schemas/index.d.mts +376 -0
  23. package/lib/schemas/index.d.ts +376 -0
  24. package/lib/schemas/index.js +704 -0
  25. package/lib/schemas/index.mjs +737 -0
  26. package/lib/services/index.d.mts +223 -0
  27. package/lib/services/index.d.ts +223 -0
  28. package/lib/services/index.js +788 -0
  29. package/lib/services/index.mjs +776 -0
  30. package/lib/types/index.d.mts +121 -0
  31. package/lib/types/index.d.ts +121 -0
  32. package/lib/types/index.js +18 -0
  33. package/lib/types/index.mjs +0 -0
  34. package/package.json +74 -0
@@ -0,0 +1,121 @@
1
+ import { BillingPortalDto, CreateBillingPortalDto, UpdateBillingPortalDto, CheckoutSessionDto, CreateCheckoutSessionDto, UpdateCheckoutSessionDto, PaymentLinkDto, CreatePaymentLinkDto, UpdatePaymentLinkDto, PlanDto, CreatePlanDto, UpdatePlanDto, SubscriptionDto, CreateSubscriptionDto, UpdateSubscriptionDto } from '@forklaunch/interfaces-billing/types';
2
+ import Stripe__default from 'stripe';
3
+ import { PaymentMethodEnum, CurrencyEnum, PlanCadenceEnum, BillingProviderEnum } from '../domain/index.mjs';
4
+
5
+ type BillingPortalOmissions = 'customer';
6
+ type StripeCreateBillingPortalDto = Omit<CreateBillingPortalDto, 'providerFields'> & {
7
+ stripeFields: Omit<Stripe__default.BillingPortal.SessionCreateParams, BillingPortalOmissions>;
8
+ };
9
+ type StripeUpdateBillingPortalDto = Omit<UpdateBillingPortalDto, 'providerFields'> & {
10
+ stripeFields?: Omit<Stripe__default.BillingPortal.SessionCreateParams, BillingPortalOmissions>;
11
+ };
12
+ type StripeBillingPortalDto = Omit<BillingPortalDto, 'providerFields'> & {
13
+ stripeFields: Stripe__default.BillingPortal.Session;
14
+ };
15
+ type StripeBillingPortalDtos = {
16
+ BillingPortalMapper: StripeBillingPortalDto;
17
+ CreateBillingPortalMapper: StripeCreateBillingPortalDto;
18
+ UpdateBillingPortalMapper: StripeUpdateBillingPortalDto;
19
+ };
20
+ type CheckoutSessionOmissions = 'payment_method_types' | 'currency' | 'success_url' | 'cancel_url';
21
+ type StripeCreateCheckoutSessionDto<StatusEnum> = Omit<CreateCheckoutSessionDto<typeof PaymentMethodEnum, typeof CurrencyEnum, StatusEnum>, 'providerFields'> & {
22
+ stripeFields: Omit<Stripe__default.Checkout.SessionCreateParams, CheckoutSessionOmissions>;
23
+ };
24
+ type StripeUpdateCheckoutSessionDto<StatusEnum> = Omit<UpdateCheckoutSessionDto<typeof PaymentMethodEnum, typeof CurrencyEnum, StatusEnum>, 'providerFields'> & {
25
+ stripeFields?: Omit<Stripe__default.Checkout.SessionCreateParams, CheckoutSessionOmissions>;
26
+ };
27
+ type StripeCheckoutSessionDto<StatusEnum> = Omit<CheckoutSessionDto<typeof PaymentMethodEnum, typeof CurrencyEnum, StatusEnum>, 'providerFields'> & {
28
+ stripeFields: Stripe__default.Checkout.Session;
29
+ };
30
+ type StripeCheckoutSessionDtos<StatusEnum> = {
31
+ CheckoutSessionMapper: StripeCheckoutSessionDto<StatusEnum>;
32
+ CreateCheckoutSessionMapper: StripeCreateCheckoutSessionDto<StatusEnum>;
33
+ UpdateCheckoutSessionMapper: StripeUpdateCheckoutSessionDto<StatusEnum>;
34
+ };
35
+ type StripeCreatePaymentLinkDto<StatusEnum> = Omit<CreatePaymentLinkDto<typeof PaymentMethodEnum, typeof CurrencyEnum, StatusEnum>, 'providerFields'> & {
36
+ stripeFields: Stripe__default.PaymentLinkCreateParams;
37
+ };
38
+ type StripeUpdatePaymentLinkDto<StatusEnum> = Omit<UpdatePaymentLinkDto<typeof PaymentMethodEnum, typeof CurrencyEnum, StatusEnum>, 'providerFields'> & {
39
+ stripeFields?: Stripe__default.PaymentLinkUpdateParams;
40
+ };
41
+ type StripePaymentLinkDto<StatusEnum> = Omit<PaymentLinkDto<typeof PaymentMethodEnum, typeof CurrencyEnum, StatusEnum>, 'providerFields'> & {
42
+ stripeFields: Stripe__default.PaymentLink;
43
+ };
44
+ type StripePaymentLinkDtos<StatusEnum> = {
45
+ PaymentLinkMapper: StripePaymentLinkDto<StatusEnum>;
46
+ CreatePaymentLinkMapper: StripeCreatePaymentLinkDto<StatusEnum>;
47
+ UpdatePaymentLinkMapper: StripeUpdatePaymentLinkDto<StatusEnum>;
48
+ };
49
+ type PlanOmissions = 'product' | 'interval' | 'currency';
50
+ type StripeCreatePlanDto = Omit<CreatePlanDto<typeof PlanCadenceEnum, typeof CurrencyEnum, typeof BillingProviderEnum>, 'providerFields'> & {
51
+ stripeFields: Omit<Stripe__default.PlanCreateParams, PlanOmissions>;
52
+ };
53
+ type StripeUpdatePlanDto = Omit<UpdatePlanDto<typeof PlanCadenceEnum, typeof CurrencyEnum, typeof BillingProviderEnum>, 'providerFields'> & {
54
+ stripeFields?: Omit<Stripe__default.PlanUpdateParams, PlanOmissions>;
55
+ };
56
+ type StripePlanDto = Omit<PlanDto<typeof PlanCadenceEnum, typeof CurrencyEnum, typeof BillingProviderEnum>, 'providerFields'> & {
57
+ stripeFields: Stripe__default.Plan;
58
+ };
59
+ type StripePlanDtos = {
60
+ PlanMapper: StripePlanDto;
61
+ CreatePlanMapper: StripeCreatePlanDto;
62
+ UpdatePlanMapper: StripeUpdatePlanDto;
63
+ };
64
+ type SubscriptionOmissions = 'items' | 'customer';
65
+ type StripeCreateSubscriptionDto<PartyType> = Omit<CreateSubscriptionDto<PartyType, typeof BillingProviderEnum>, 'providerFields'> & {
66
+ stripeFields: Omit<Stripe__default.SubscriptionCreateParams, SubscriptionOmissions>;
67
+ };
68
+ type StripeUpdateSubscriptionDto<PartyType> = Omit<UpdateSubscriptionDto<PartyType, typeof BillingProviderEnum>, 'providerFields'> & {
69
+ stripeFields?: Omit<Stripe__default.SubscriptionUpdateParams, SubscriptionOmissions>;
70
+ };
71
+ type StripeSubscriptionDto<PartyType> = Omit<SubscriptionDto<PartyType, typeof BillingProviderEnum>, 'providerFields'> & {
72
+ stripeFields: Stripe__default.Subscription;
73
+ };
74
+ type StripeSubscriptionDtos<PartyType> = {
75
+ SubscriptionMapper: StripeSubscriptionDto<PartyType>;
76
+ CreateSubscriptionMapper: StripeCreateSubscriptionDto<PartyType>;
77
+ UpdateSubscriptionMapper: StripeUpdateSubscriptionDto<PartyType>;
78
+ };
79
+
80
+ type StripeBillingPortalEntity = BillingPortalDto & {
81
+ providerFields: Stripe__default.BillingPortal.Session;
82
+ };
83
+ type StripeBillingPortalEntities = {
84
+ BillingPortalMapper: StripeBillingPortalEntity;
85
+ CreateBillingPortalMapper: StripeBillingPortalEntity;
86
+ UpdateBillingPortalMapper: StripeBillingPortalEntity;
87
+ };
88
+ type StripeCheckoutSessionEntity<StatusEnum> = CheckoutSessionDto<typeof PaymentMethodEnum, typeof CurrencyEnum, StatusEnum> & {
89
+ providerFields: Stripe__default.Checkout.Session;
90
+ };
91
+ type StripeCheckoutSessionEntities<StatusEnum> = {
92
+ CheckoutSessionMapper: StripeCheckoutSessionEntity<StatusEnum>;
93
+ CreateCheckoutSessionMapper: StripeCheckoutSessionEntity<StatusEnum>;
94
+ UpdateCheckoutSessionMapper: StripeCheckoutSessionEntity<StatusEnum>;
95
+ };
96
+ type StripePaymentLinkEntity<StatusEnum> = PaymentLinkDto<typeof PaymentMethodEnum, typeof CurrencyEnum, StatusEnum> & {
97
+ providerFields: Stripe__default.PaymentLink;
98
+ };
99
+ type StripePaymentLinkEntities<StatusEnum> = {
100
+ PaymentLinkMapper: StripePaymentLinkEntity<StatusEnum>;
101
+ CreatePaymentLinkMapper: StripePaymentLinkEntity<StatusEnum>;
102
+ UpdatePaymentLinkMapper: StripePaymentLinkEntity<StatusEnum>;
103
+ };
104
+ type StripePlanEntity = PlanDto<typeof PlanCadenceEnum, typeof CurrencyEnum, typeof BillingProviderEnum> & {
105
+ providerFields: Stripe__default.Plan;
106
+ };
107
+ type StripePlanEntities = {
108
+ PlanMapper: StripePlanEntity;
109
+ CreatePlanMapper: StripePlanEntity;
110
+ UpdatePlanMapper: StripePlanEntity;
111
+ };
112
+ type StripeSubscriptionEntity<PartyType> = SubscriptionDto<PartyType, typeof BillingProviderEnum> & {
113
+ providerFields: Stripe__default.Subscription;
114
+ };
115
+ type StripeSubscriptionEntities<PartyType> = {
116
+ SubscriptionMapper: StripeSubscriptionEntity<PartyType>;
117
+ CreateSubscriptionMapper: StripeSubscriptionEntity<PartyType>;
118
+ UpdateSubscriptionMapper: StripeSubscriptionEntity<PartyType>;
119
+ };
120
+
121
+ export type { StripeBillingPortalDto, StripeBillingPortalDtos, StripeBillingPortalEntities, StripeBillingPortalEntity, StripeCheckoutSessionDto, StripeCheckoutSessionDtos, StripeCheckoutSessionEntities, StripeCheckoutSessionEntity, StripeCreateBillingPortalDto, StripeCreateCheckoutSessionDto, StripeCreatePaymentLinkDto, StripeCreatePlanDto, StripeCreateSubscriptionDto, StripePaymentLinkDto, StripePaymentLinkDtos, StripePaymentLinkEntities, StripePaymentLinkEntity, StripePlanDto, StripePlanDtos, StripePlanEntities, StripePlanEntity, StripeSubscriptionDto, StripeSubscriptionDtos, StripeSubscriptionEntities, StripeSubscriptionEntity, StripeUpdateBillingPortalDto, StripeUpdateCheckoutSessionDto, StripeUpdatePaymentLinkDto, StripeUpdatePlanDto, StripeUpdateSubscriptionDto };
@@ -0,0 +1,121 @@
1
+ import { BillingPortalDto, CreateBillingPortalDto, UpdateBillingPortalDto, CheckoutSessionDto, CreateCheckoutSessionDto, UpdateCheckoutSessionDto, PaymentLinkDto, CreatePaymentLinkDto, UpdatePaymentLinkDto, PlanDto, CreatePlanDto, UpdatePlanDto, SubscriptionDto, CreateSubscriptionDto, UpdateSubscriptionDto } from '@forklaunch/interfaces-billing/types';
2
+ import Stripe__default from 'stripe';
3
+ import { PaymentMethodEnum, CurrencyEnum, PlanCadenceEnum, BillingProviderEnum } from '../domain/index.js';
4
+
5
+ type BillingPortalOmissions = 'customer';
6
+ type StripeCreateBillingPortalDto = Omit<CreateBillingPortalDto, 'providerFields'> & {
7
+ stripeFields: Omit<Stripe__default.BillingPortal.SessionCreateParams, BillingPortalOmissions>;
8
+ };
9
+ type StripeUpdateBillingPortalDto = Omit<UpdateBillingPortalDto, 'providerFields'> & {
10
+ stripeFields?: Omit<Stripe__default.BillingPortal.SessionCreateParams, BillingPortalOmissions>;
11
+ };
12
+ type StripeBillingPortalDto = Omit<BillingPortalDto, 'providerFields'> & {
13
+ stripeFields: Stripe__default.BillingPortal.Session;
14
+ };
15
+ type StripeBillingPortalDtos = {
16
+ BillingPortalMapper: StripeBillingPortalDto;
17
+ CreateBillingPortalMapper: StripeCreateBillingPortalDto;
18
+ UpdateBillingPortalMapper: StripeUpdateBillingPortalDto;
19
+ };
20
+ type CheckoutSessionOmissions = 'payment_method_types' | 'currency' | 'success_url' | 'cancel_url';
21
+ type StripeCreateCheckoutSessionDto<StatusEnum> = Omit<CreateCheckoutSessionDto<typeof PaymentMethodEnum, typeof CurrencyEnum, StatusEnum>, 'providerFields'> & {
22
+ stripeFields: Omit<Stripe__default.Checkout.SessionCreateParams, CheckoutSessionOmissions>;
23
+ };
24
+ type StripeUpdateCheckoutSessionDto<StatusEnum> = Omit<UpdateCheckoutSessionDto<typeof PaymentMethodEnum, typeof CurrencyEnum, StatusEnum>, 'providerFields'> & {
25
+ stripeFields?: Omit<Stripe__default.Checkout.SessionCreateParams, CheckoutSessionOmissions>;
26
+ };
27
+ type StripeCheckoutSessionDto<StatusEnum> = Omit<CheckoutSessionDto<typeof PaymentMethodEnum, typeof CurrencyEnum, StatusEnum>, 'providerFields'> & {
28
+ stripeFields: Stripe__default.Checkout.Session;
29
+ };
30
+ type StripeCheckoutSessionDtos<StatusEnum> = {
31
+ CheckoutSessionMapper: StripeCheckoutSessionDto<StatusEnum>;
32
+ CreateCheckoutSessionMapper: StripeCreateCheckoutSessionDto<StatusEnum>;
33
+ UpdateCheckoutSessionMapper: StripeUpdateCheckoutSessionDto<StatusEnum>;
34
+ };
35
+ type StripeCreatePaymentLinkDto<StatusEnum> = Omit<CreatePaymentLinkDto<typeof PaymentMethodEnum, typeof CurrencyEnum, StatusEnum>, 'providerFields'> & {
36
+ stripeFields: Stripe__default.PaymentLinkCreateParams;
37
+ };
38
+ type StripeUpdatePaymentLinkDto<StatusEnum> = Omit<UpdatePaymentLinkDto<typeof PaymentMethodEnum, typeof CurrencyEnum, StatusEnum>, 'providerFields'> & {
39
+ stripeFields?: Stripe__default.PaymentLinkUpdateParams;
40
+ };
41
+ type StripePaymentLinkDto<StatusEnum> = Omit<PaymentLinkDto<typeof PaymentMethodEnum, typeof CurrencyEnum, StatusEnum>, 'providerFields'> & {
42
+ stripeFields: Stripe__default.PaymentLink;
43
+ };
44
+ type StripePaymentLinkDtos<StatusEnum> = {
45
+ PaymentLinkMapper: StripePaymentLinkDto<StatusEnum>;
46
+ CreatePaymentLinkMapper: StripeCreatePaymentLinkDto<StatusEnum>;
47
+ UpdatePaymentLinkMapper: StripeUpdatePaymentLinkDto<StatusEnum>;
48
+ };
49
+ type PlanOmissions = 'product' | 'interval' | 'currency';
50
+ type StripeCreatePlanDto = Omit<CreatePlanDto<typeof PlanCadenceEnum, typeof CurrencyEnum, typeof BillingProviderEnum>, 'providerFields'> & {
51
+ stripeFields: Omit<Stripe__default.PlanCreateParams, PlanOmissions>;
52
+ };
53
+ type StripeUpdatePlanDto = Omit<UpdatePlanDto<typeof PlanCadenceEnum, typeof CurrencyEnum, typeof BillingProviderEnum>, 'providerFields'> & {
54
+ stripeFields?: Omit<Stripe__default.PlanUpdateParams, PlanOmissions>;
55
+ };
56
+ type StripePlanDto = Omit<PlanDto<typeof PlanCadenceEnum, typeof CurrencyEnum, typeof BillingProviderEnum>, 'providerFields'> & {
57
+ stripeFields: Stripe__default.Plan;
58
+ };
59
+ type StripePlanDtos = {
60
+ PlanMapper: StripePlanDto;
61
+ CreatePlanMapper: StripeCreatePlanDto;
62
+ UpdatePlanMapper: StripeUpdatePlanDto;
63
+ };
64
+ type SubscriptionOmissions = 'items' | 'customer';
65
+ type StripeCreateSubscriptionDto<PartyType> = Omit<CreateSubscriptionDto<PartyType, typeof BillingProviderEnum>, 'providerFields'> & {
66
+ stripeFields: Omit<Stripe__default.SubscriptionCreateParams, SubscriptionOmissions>;
67
+ };
68
+ type StripeUpdateSubscriptionDto<PartyType> = Omit<UpdateSubscriptionDto<PartyType, typeof BillingProviderEnum>, 'providerFields'> & {
69
+ stripeFields?: Omit<Stripe__default.SubscriptionUpdateParams, SubscriptionOmissions>;
70
+ };
71
+ type StripeSubscriptionDto<PartyType> = Omit<SubscriptionDto<PartyType, typeof BillingProviderEnum>, 'providerFields'> & {
72
+ stripeFields: Stripe__default.Subscription;
73
+ };
74
+ type StripeSubscriptionDtos<PartyType> = {
75
+ SubscriptionMapper: StripeSubscriptionDto<PartyType>;
76
+ CreateSubscriptionMapper: StripeCreateSubscriptionDto<PartyType>;
77
+ UpdateSubscriptionMapper: StripeUpdateSubscriptionDto<PartyType>;
78
+ };
79
+
80
+ type StripeBillingPortalEntity = BillingPortalDto & {
81
+ providerFields: Stripe__default.BillingPortal.Session;
82
+ };
83
+ type StripeBillingPortalEntities = {
84
+ BillingPortalMapper: StripeBillingPortalEntity;
85
+ CreateBillingPortalMapper: StripeBillingPortalEntity;
86
+ UpdateBillingPortalMapper: StripeBillingPortalEntity;
87
+ };
88
+ type StripeCheckoutSessionEntity<StatusEnum> = CheckoutSessionDto<typeof PaymentMethodEnum, typeof CurrencyEnum, StatusEnum> & {
89
+ providerFields: Stripe__default.Checkout.Session;
90
+ };
91
+ type StripeCheckoutSessionEntities<StatusEnum> = {
92
+ CheckoutSessionMapper: StripeCheckoutSessionEntity<StatusEnum>;
93
+ CreateCheckoutSessionMapper: StripeCheckoutSessionEntity<StatusEnum>;
94
+ UpdateCheckoutSessionMapper: StripeCheckoutSessionEntity<StatusEnum>;
95
+ };
96
+ type StripePaymentLinkEntity<StatusEnum> = PaymentLinkDto<typeof PaymentMethodEnum, typeof CurrencyEnum, StatusEnum> & {
97
+ providerFields: Stripe__default.PaymentLink;
98
+ };
99
+ type StripePaymentLinkEntities<StatusEnum> = {
100
+ PaymentLinkMapper: StripePaymentLinkEntity<StatusEnum>;
101
+ CreatePaymentLinkMapper: StripePaymentLinkEntity<StatusEnum>;
102
+ UpdatePaymentLinkMapper: StripePaymentLinkEntity<StatusEnum>;
103
+ };
104
+ type StripePlanEntity = PlanDto<typeof PlanCadenceEnum, typeof CurrencyEnum, typeof BillingProviderEnum> & {
105
+ providerFields: Stripe__default.Plan;
106
+ };
107
+ type StripePlanEntities = {
108
+ PlanMapper: StripePlanEntity;
109
+ CreatePlanMapper: StripePlanEntity;
110
+ UpdatePlanMapper: StripePlanEntity;
111
+ };
112
+ type StripeSubscriptionEntity<PartyType> = SubscriptionDto<PartyType, typeof BillingProviderEnum> & {
113
+ providerFields: Stripe__default.Subscription;
114
+ };
115
+ type StripeSubscriptionEntities<PartyType> = {
116
+ SubscriptionMapper: StripeSubscriptionEntity<PartyType>;
117
+ CreateSubscriptionMapper: StripeSubscriptionEntity<PartyType>;
118
+ UpdateSubscriptionMapper: StripeSubscriptionEntity<PartyType>;
119
+ };
120
+
121
+ export type { StripeBillingPortalDto, StripeBillingPortalDtos, StripeBillingPortalEntities, StripeBillingPortalEntity, StripeCheckoutSessionDto, StripeCheckoutSessionDtos, StripeCheckoutSessionEntities, StripeCheckoutSessionEntity, StripeCreateBillingPortalDto, StripeCreateCheckoutSessionDto, StripeCreatePaymentLinkDto, StripeCreatePlanDto, StripeCreateSubscriptionDto, StripePaymentLinkDto, StripePaymentLinkDtos, StripePaymentLinkEntities, StripePaymentLinkEntity, StripePlanDto, StripePlanDtos, StripePlanEntities, StripePlanEntity, StripeSubscriptionDto, StripeSubscriptionDtos, StripeSubscriptionEntities, StripeSubscriptionEntity, StripeUpdateBillingPortalDto, StripeUpdateCheckoutSessionDto, StripeUpdatePaymentLinkDto, StripeUpdatePlanDto, StripeUpdateSubscriptionDto };
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __copyProps = (to, from, except, desc) => {
7
+ if (from && typeof from === "object" || typeof from === "function") {
8
+ for (let key of __getOwnPropNames(from))
9
+ if (!__hasOwnProp.call(to, key) && key !== except)
10
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
11
+ }
12
+ return to;
13
+ };
14
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
15
+
16
+ // types/index.ts
17
+ var types_exports = {};
18
+ module.exports = __toCommonJS(types_exports);
File without changes
package/package.json ADDED
@@ -0,0 +1,74 @@
1
+ {
2
+ "name": "@forklaunch/implementation-billing-stripe",
3
+ "version": "0.0.1",
4
+ "description": "Stripe implementation for forklaunch billing",
5
+ "homepage": "https://github.com/forklaunch/forklaunch-js#readme",
6
+ "bugs": {
7
+ "url": "https://github.com/forklaunch/forklaunch-js/issues"
8
+ },
9
+ "repository": {
10
+ "type": "git",
11
+ "url": "git+https://github.com/forklaunch/forklaunch-js.git"
12
+ },
13
+ "license": "MIT",
14
+ "author": "Forklift Technologies, Inc.",
15
+ "exports": {
16
+ "./domain": {
17
+ "types": "./lib/domain/index.d.ts",
18
+ "import": "./lib/domain/index.mjs",
19
+ "require": "./lib/domain/index.js",
20
+ "default": "./lib/domain/index.js"
21
+ },
22
+ "./schemas": {
23
+ "types": "./lib/schemas/index.d.ts",
24
+ "import": "./lib/schemas/index.mjs",
25
+ "require": "./lib/schemas/index.js",
26
+ "default": "./lib/schemas/index.js"
27
+ },
28
+ "./services": {
29
+ "types": "./lib/services/index.d.ts",
30
+ "import": "./lib/services/index.mjs",
31
+ "require": "./lib/services/index.js",
32
+ "default": "./lib/services/index.js"
33
+ },
34
+ "./types": {
35
+ "types": "./lib/types/index.d.ts",
36
+ "import": "./lib/types/index.mjs",
37
+ "require": "./lib/types/index.js",
38
+ "default": "./lib/types/index.js"
39
+ }
40
+ },
41
+ "files": [
42
+ "lib/**"
43
+ ],
44
+ "dependencies": {
45
+ "@forklaunch/common": "^0.3.14",
46
+ "@forklaunch/core": "^0.9.21",
47
+ "@forklaunch/internal": "^0.0.7",
48
+ "@forklaunch/validator": "^0.6.16",
49
+ "@mikro-orm/core": "^6.4.16",
50
+ "@sinclair/typebox": "^0.34.35",
51
+ "ajv": "^8.17.1",
52
+ "stripe": "^18.2.1",
53
+ "zod": "^3.25.67",
54
+ "@forklaunch/implementation-billing-base": "0.3.3",
55
+ "@forklaunch/interfaces-billing": "0.3.1"
56
+ },
57
+ "devDependencies": {
58
+ "@typescript/native-preview": "7.0.0-dev.20250619.1",
59
+ "depcheck": "^1.4.7",
60
+ "prettier": "^3.5.3",
61
+ "typedoc": "^0.28.5"
62
+ },
63
+ "scripts": {
64
+ "build": "tsc --noEmit && tsup schemas/index.ts services/index.ts domain/index.ts types/index.ts --format cjs,esm --no-splitting --dts --tsconfig tsconfig.json --out-dir lib --clean && if [ -f eject-package.bash ]; then pnpm package:eject; fi",
65
+ "clean": "rm -rf lib pnpm.lock.yaml node_modules",
66
+ "docs": "typedoc --out docs *",
67
+ "format": "prettier --ignore-path=.prettierignore --config .prettierrc '**/*.{ts,tsx,json}' --write",
68
+ "lint": "eslint . -c eslint.config.mjs",
69
+ "lint:fix": "eslint . -c eslint.config.mjs --fix",
70
+ "package:eject": "./eject-package.bash",
71
+ "publish:package": "./publish-package.bash",
72
+ "test": "vitest --passWithNoTests"
73
+ }
74
+ }