@forklaunch/implementation-billing-stripe 0.4.2 → 0.4.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/services/index.d.mts
CHANGED
|
@@ -3,12 +3,13 @@ import { TtlCache } from '@forklaunch/core/cache';
|
|
|
3
3
|
import { TelemetryOptions, OpenTelemetryCollector, MetricsDefinition } from '@forklaunch/core/http';
|
|
4
4
|
import { BaseBillingPortalService, BaseCheckoutSessionService, BasePaymentLinkService, BasePlanService, BaseSubscriptionService } from '@forklaunch/implementation-billing-base/services';
|
|
5
5
|
import { BillingPortalService, CheckoutSessionService, PaymentLinkService, PlanService, SubscriptionService } from '@forklaunch/interfaces-billing/interfaces';
|
|
6
|
+
export * from '@forklaunch/interfaces-billing/interfaces';
|
|
6
7
|
import { AnySchemaValidator } from '@forklaunch/validator';
|
|
7
8
|
import { EntityManager } from '@mikro-orm/core';
|
|
8
9
|
import stripe__default from 'stripe';
|
|
9
10
|
import { StripeBillingPortalEntities, StripeBillingPortalDtos, StripeBillingPortalMappers, StripeCreateBillingPortalDto, StripeUpdateBillingPortalDto, StripeCheckoutSessionEntities, StripeCheckoutSessionDtos, StripeCheckoutSessionMappers, StripeCreateCheckoutSessionDto, StripePaymentLinkEntities, StripePaymentLinkDtos, StripeCreatePaymentLinkDto, StripeUpdatePaymentLinkDto, StripePaymentLinkDto, StripePaymentLinkMappers, StripePlanEntities, StripePlanDtos, StripeCreatePlanDto, StripeUpdatePlanDto, StripePlanDto, StripePlanMappers, StripeSubscriptionEntities, StripeSubscriptionDtos, StripeCreateSubscriptionDto, StripeUpdateSubscriptionDto, StripeSubscriptionDto, StripeSubscriptionMappers } from '../domain/types/index.mjs';
|
|
10
11
|
import { PaymentMethodEnum, CurrencyEnum, PlanCadenceEnum, BillingProviderEnum } from '../domain/enum/index.mjs';
|
|
11
|
-
|
|
12
|
+
export * from '@forklaunch/interfaces-billing/types';
|
|
12
13
|
|
|
13
14
|
declare class StripeBillingPortalService<SchemaValidator extends AnySchemaValidator, Entities extends StripeBillingPortalEntities, Dto extends StripeBillingPortalDtos = StripeBillingPortalDtos> implements BillingPortalService<{
|
|
14
15
|
CreateBillingPortalDto: Dto['CreateBillingPortalMapper'];
|
package/lib/services/index.d.ts
CHANGED
|
@@ -3,12 +3,13 @@ import { TtlCache } from '@forklaunch/core/cache';
|
|
|
3
3
|
import { TelemetryOptions, OpenTelemetryCollector, MetricsDefinition } from '@forklaunch/core/http';
|
|
4
4
|
import { BaseBillingPortalService, BaseCheckoutSessionService, BasePaymentLinkService, BasePlanService, BaseSubscriptionService } from '@forklaunch/implementation-billing-base/services';
|
|
5
5
|
import { BillingPortalService, CheckoutSessionService, PaymentLinkService, PlanService, SubscriptionService } from '@forklaunch/interfaces-billing/interfaces';
|
|
6
|
+
export * from '@forklaunch/interfaces-billing/interfaces';
|
|
6
7
|
import { AnySchemaValidator } from '@forklaunch/validator';
|
|
7
8
|
import { EntityManager } from '@mikro-orm/core';
|
|
8
9
|
import stripe__default from 'stripe';
|
|
9
10
|
import { StripeBillingPortalEntities, StripeBillingPortalDtos, StripeBillingPortalMappers, StripeCreateBillingPortalDto, StripeUpdateBillingPortalDto, StripeCheckoutSessionEntities, StripeCheckoutSessionDtos, StripeCheckoutSessionMappers, StripeCreateCheckoutSessionDto, StripePaymentLinkEntities, StripePaymentLinkDtos, StripeCreatePaymentLinkDto, StripeUpdatePaymentLinkDto, StripePaymentLinkDto, StripePaymentLinkMappers, StripePlanEntities, StripePlanDtos, StripeCreatePlanDto, StripeUpdatePlanDto, StripePlanDto, StripePlanMappers, StripeSubscriptionEntities, StripeSubscriptionDtos, StripeCreateSubscriptionDto, StripeUpdateSubscriptionDto, StripeSubscriptionDto, StripeSubscriptionMappers } from '../domain/types/index.js';
|
|
10
11
|
import { PaymentMethodEnum, CurrencyEnum, PlanCadenceEnum, BillingProviderEnum } from '../domain/enum/index.js';
|
|
11
|
-
|
|
12
|
+
export * from '@forklaunch/interfaces-billing/types';
|
|
12
13
|
|
|
13
14
|
declare class StripeBillingPortalService<SchemaValidator extends AnySchemaValidator, Entities extends StripeBillingPortalEntities, Dto extends StripeBillingPortalDtos = StripeBillingPortalDtos> implements BillingPortalService<{
|
|
14
15
|
CreateBillingPortalDto: Dto['CreateBillingPortalMapper'];
|
package/lib/services/index.js
CHANGED
|
@@ -15,6 +15,7 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
15
15
|
}
|
|
16
16
|
return to;
|
|
17
17
|
};
|
|
18
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
18
19
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
20
|
|
|
20
21
|
// services/index.ts
|
|
@@ -755,6 +756,10 @@ var StripeWebhookService = class {
|
|
|
755
756
|
await this.em.flush();
|
|
756
757
|
}
|
|
757
758
|
};
|
|
759
|
+
|
|
760
|
+
// services/index.ts
|
|
761
|
+
__reExport(services_exports, require("@forklaunch/interfaces-billing/interfaces"), module.exports);
|
|
762
|
+
__reExport(services_exports, require("@forklaunch/interfaces-billing/types"), module.exports);
|
|
758
763
|
// Annotate the CommonJS export names for ESM import in node:
|
|
759
764
|
0 && (module.exports = {
|
|
760
765
|
StripeBillingPortalService,
|
|
@@ -762,5 +767,7 @@ var StripeWebhookService = class {
|
|
|
762
767
|
StripePaymentLinkService,
|
|
763
768
|
StripePlanService,
|
|
764
769
|
StripeSubscriptionService,
|
|
765
|
-
StripeWebhookService
|
|
770
|
+
StripeWebhookService,
|
|
771
|
+
...require("@forklaunch/interfaces-billing/interfaces"),
|
|
772
|
+
...require("@forklaunch/interfaces-billing/types")
|
|
766
773
|
});
|
package/lib/services/index.mjs
CHANGED
|
@@ -724,6 +724,10 @@ var StripeWebhookService = class {
|
|
|
724
724
|
await this.em.flush();
|
|
725
725
|
}
|
|
726
726
|
};
|
|
727
|
+
|
|
728
|
+
// services/index.ts
|
|
729
|
+
export * from "@forklaunch/interfaces-billing/interfaces";
|
|
730
|
+
export * from "@forklaunch/interfaces-billing/types";
|
|
727
731
|
export {
|
|
728
732
|
StripeBillingPortalService,
|
|
729
733
|
StripeCheckoutSessionService,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@forklaunch/implementation-billing-stripe",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.4",
|
|
4
4
|
"description": "Stripe implementation for forklaunch billing",
|
|
5
5
|
"homepage": "https://github.com/forklaunch/forklaunch-js#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -51,8 +51,8 @@
|
|
|
51
51
|
"ajv": "^8.17.1",
|
|
52
52
|
"stripe": "^18.5.0",
|
|
53
53
|
"zod": "^4.1.11",
|
|
54
|
-
"@forklaunch/implementation-billing-base": "0.7.
|
|
55
|
-
"@forklaunch/interfaces-billing": "0.7.
|
|
54
|
+
"@forklaunch/implementation-billing-base": "0.7.4",
|
|
55
|
+
"@forklaunch/interfaces-billing": "0.7.3"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
58
|
"@typescript/native-preview": "7.0.0-dev.20250930.1",
|