@saasicat/nest 0.19.0 → 0.22.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.
- package/dist/_entries.cjs +358 -391
- package/dist/admin/index.js +2 -1
- package/dist/{aggregation-o0LMenvl.d.ts → aggregation-DP5zfKbU.d.ts} +3 -3
- package/dist/{aggregation-SKfXu09x.d.cts → aggregation-mZ7WZROK.d.cts} +3 -3
- package/dist/billing/index.d.cts +13 -12
- package/dist/billing/index.d.ts +13 -12
- package/dist/billing/index.js +4 -3
- package/dist/catalog/index.d.cts +10 -10
- package/dist/catalog/index.d.ts +10 -10
- package/dist/catalog/index.js +2 -2
- package/dist/{catalog.module-BKObceo0.d.ts → catalog.module-CQr1FpkI.d.ts} +6 -6
- package/dist/{catalog.module-Dw2Hrbyu.d.cts → catalog.module-D-_pQDNA.d.cts} +6 -6
- package/dist/checkout-offer/index.js +1 -1
- package/dist/{chunk-EUU3B6NB.js → chunk-4O6R6ARQ.js} +12 -6
- package/dist/{chunk-LXUBCLRK.js → chunk-7X5MSAIL.js} +16 -15
- package/dist/{chunk-AFK2IE2L.js → chunk-7ZPFQXHM.js} +1 -1
- package/dist/chunk-EBJJNTW6.js +22 -0
- package/dist/{chunk-6WA4X5U3.js → chunk-MJ32VNZD.js} +41 -91
- package/dist/{chunk-F6DCLVBB.js → chunk-NNNXXUPT.js} +9 -3
- package/dist/{chunk-7JIHG53V.js → chunk-SN5UOC43.js} +7 -4
- package/dist/{chunk-KUDKD7ZG.js → chunk-UFS344JD.js} +26 -22
- package/dist/{chunk-I77VS3YH.js → chunk-UO64MK3Q.js} +18 -24
- package/dist/{chunk-QLJHIIOY.js → chunk-VQQWF7MW.js} +7 -3
- package/dist/{chunk-ORWIGSNN.js → chunk-XTVAFJ3P.js} +2 -1
- package/dist/{define-saasicat-D8c6Bs4T.d.cts → define-saasicat-ByPjtKPy.d.cts} +1 -1
- package/dist/{define-saasicat-CqkhnHn-.d.ts → define-saasicat-C99hWAUK.d.ts} +1 -1
- package/dist/discovery/index.d.cts +2 -2
- package/dist/discovery/index.d.ts +2 -2
- package/dist/{enforce-quota.interceptor-Dk0eEtzV.d.cts → enforce-quota.interceptor-BrsU1UYJ.d.cts} +1 -1
- package/dist/{enforce-quota.interceptor-Dp8wTYro.d.ts → enforce-quota.interceptor-reO-i71U.d.ts} +1 -1
- package/dist/entitlement/index.d.cts +1 -1
- package/dist/entitlement/index.d.ts +1 -1
- package/dist/entitlement/index.js +2 -1
- package/dist/index.d.cts +30 -11
- package/dist/index.d.ts +30 -11
- package/dist/index.js +14 -10
- package/dist/{module-BwD-wAor.d.ts → module-BE17XFLg.d.ts} +1 -1
- package/dist/{module-DsDkbawm.d.cts → module-CHMIyWlf.d.cts} +1 -1
- package/dist/{plan-versions.service-BB36Q1bg.d.ts → plan-versions.service-B-YoE4SZ.d.ts} +1 -1
- package/dist/{plan-versions.service-CUR2Whyr.d.cts → plan-versions.service-_saKzb50.d.cts} +1 -1
- package/dist/platform/index.d.cts +11 -11
- package/dist/platform/index.d.ts +11 -11
- package/dist/platform/index.js +9 -8
- package/dist/promo/index.d.cts +3 -3
- package/dist/promo/index.d.ts +3 -3
- package/dist/promo/index.js +3 -2
- package/dist/registration/index.d.cts +1 -1
- package/dist/registration/index.d.ts +1 -1
- package/dist/registration/index.js +2 -1
- package/dist/{saas-platform.module-BQmrDGVU.d.ts → saas-platform.module-DolE41YY.d.ts} +2 -2
- package/dist/{saas-platform.module-DducnQ9s.d.cts → saas-platform.module-HCDNZTiE.d.cts} +2 -2
- package/dist/{service-DPZ2W1E-.d.cts → service-D48clObR.d.cts} +1 -1
- package/dist/{service-DPZ2W1E-.d.ts → service-D48clObR.d.ts} +1 -1
- package/dist/{tenant-billing.controller-b1G1yB09.d.ts → tenant-billing.controller-7o4ObzGs.d.ts} +3 -3
- package/dist/{tenant-billing.controller-m42YQ_Ei.d.cts → tenant-billing.controller-DubP6-Md.d.cts} +3 -3
- package/dist/testing/index.d.cts +6 -6
- package/dist/testing/index.d.ts +6 -6
- package/dist/testing/index.js +10 -9
- package/package.json +3 -3
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { p as PlanResolverPort } from '../saas-platform.module-
|
|
2
|
-
export { P as PLAN_RESOLVER_PORT_TOKEN, S as SaaSiCatModule, a as SaasPlatformAdapters, b as SaasPlatformAdminResourcesOptions, c as SaasPlatformAdminStatsOptions, d as SaasPlatformCatalogOptions, e as SaasPlatformCheckoutOfferOptions, S as SaasPlatformModule, f as SaasPlatformModuleOptions, g as SaasPlatformPromoCodesOptions, h as SaasPlatformSetupOptions, i as SaasPlatformSubscriptionBundlesOptions, j as SaasPlatformSubscriptionContractOptions, k as SaasPlatformTenantAuthGuards, l as SaasPlatformTenantBillingOptions, m as SetupModule, n as SetupModuleOptions, o as StaticPlanResolver, T as TenantManifestControllerOptions, q as buildTenantManifestController } from '../saas-platform.module-
|
|
3
|
-
export { a as SAASICAT_PUBLIC_ROUTE_KEY, d as SaaSiCatPublicRoute, S as SetupService, f as defineSaaSiCat, i as isSaaSiCatPublicRoute } from '../define-saasicat-
|
|
1
|
+
import { p as PlanResolverPort } from '../saas-platform.module-HCDNZTiE.cjs';
|
|
2
|
+
export { P as PLAN_RESOLVER_PORT_TOKEN, S as SaaSiCatModule, a as SaasPlatformAdapters, b as SaasPlatformAdminResourcesOptions, c as SaasPlatformAdminStatsOptions, d as SaasPlatformCatalogOptions, e as SaasPlatformCheckoutOfferOptions, S as SaasPlatformModule, f as SaasPlatformModuleOptions, g as SaasPlatformPromoCodesOptions, h as SaasPlatformSetupOptions, i as SaasPlatformSubscriptionBundlesOptions, j as SaasPlatformSubscriptionContractOptions, k as SaasPlatformTenantAuthGuards, l as SaasPlatformTenantBillingOptions, m as SetupModule, n as SetupModuleOptions, o as StaticPlanResolver, T as TenantManifestControllerOptions, q as buildTenantManifestController } from '../saas-platform.module-HCDNZTiE.cjs';
|
|
3
|
+
export { a as SAASICAT_PUBLIC_ROUTE_KEY, d as SaaSiCatPublicRoute, S as SetupService, f as defineSaaSiCat, i as isSaaSiCatPublicRoute } from '../define-saasicat-ByPjtKPy.cjs';
|
|
4
4
|
import { SubscriptionRepository, UsageSnapshotPort, QuotaProvider } from '@saasicat/types';
|
|
5
|
-
import { S as StaticEntitlementService } from '../enforce-quota.interceptor-
|
|
6
|
-
export { E as EnforceQuotaInterceptor, Q as QUOTA_PROVIDERS_TOKEN, b as STATIC_FEATURE_GUARD_CONFIG_TOKEN, c as StaticEntitlementSnapshot, a as StaticFeatureGuard, d as StaticFeatureGuardConfig } from '../enforce-quota.interceptor-
|
|
5
|
+
import { S as StaticEntitlementService } from '../enforce-quota.interceptor-BrsU1UYJ.cjs';
|
|
6
|
+
export { E as EnforceQuotaInterceptor, Q as QUOTA_PROVIDERS_TOKEN, b as STATIC_FEATURE_GUARD_CONFIG_TOKEN, c as StaticEntitlementSnapshot, a as StaticFeatureGuard, d as StaticFeatureGuardConfig } from '../enforce-quota.interceptor-BrsU1UYJ.cjs';
|
|
7
7
|
export { A as AdminBypassRlsInterceptor, a as AdminManifestModule, b as AdminManifestModuleOptions, c as AdminManifestService, d as AdminModule, e as AdminModuleOptions, f as AdminStatsService, M as MfaGuard, h as MfaService, S as SuperAdminGuard } from '../admin-stats.service-HUZIU448.cjs';
|
|
8
8
|
export { A as AdminAuditService } from '../admin-audit.service-9IqXMlZm.cjs';
|
|
9
9
|
export { e as AdminResourcesService, f as AdminStatsModule, g as AdminStatsModuleOptions } from '../admin-resources.module-DGgGSdzN.cjs';
|
|
10
|
-
export { c as EntitlementService } from '../aggregation-
|
|
11
|
-
export { d as ComposedTenantAuthGuard, P as PendingPlanMaterializationService, h as PlanChangePreviewService, r as SubscriptionBundlePreviewService, s as SubscriptionBundlesService, T as TenantAdminGuard, t as TenantBillingController } from '../tenant-billing.controller-
|
|
12
|
-
export { B as BundlesService, C as CatalogEntriesService, M as MarketingProjectionsService, b as MarketingSettingsService, P as PlanVersionsService, c as PlansService, d as PromotionsService, e as PublicMarketingCatalogService } from '../plan-versions.service-
|
|
10
|
+
export { c as EntitlementService } from '../aggregation-mZ7WZROK.cjs';
|
|
11
|
+
export { d as ComposedTenantAuthGuard, P as PendingPlanMaterializationService, h as PlanChangePreviewService, r as SubscriptionBundlePreviewService, s as SubscriptionBundlesService, T as TenantAdminGuard, t as TenantBillingController } from '../tenant-billing.controller-DubP6-Md.cjs';
|
|
12
|
+
export { B as BundlesService, C as CatalogEntriesService, M as MarketingProjectionsService, b as MarketingSettingsService, P as PlanVersionsService, c as PlansService, d as PromotionsService, e as PublicMarketingCatalogService } from '../plan-versions.service-_saKzb50.cjs';
|
|
13
13
|
export { c as DiscoveryScanner } from '../discovery.scanner-DLgEvuoy.cjs';
|
|
14
14
|
export { P as PromoCodeRateLimitGuard } from '../rate-limit.guard-dntqAlfZ.cjs';
|
|
15
|
-
export {
|
|
15
|
+
export { g as PromoCodesService } from '../service-D48clObR.cjs';
|
|
16
16
|
export { a as CheckoutOfferModule, b as CheckoutOfferModuleOptions } from '../checkout-offer.module-DmlpPevf.cjs';
|
|
17
17
|
export { C as CheckoutOfferService } from '../checkout-offer.service-BX51dljL.cjs';
|
|
18
18
|
export { S as SubscriptionContractModule, a as SubscriptionContractModuleOptions } from '../subscription-contract.module-B2uNvUJL.cjs';
|
|
@@ -20,8 +20,8 @@ export { S as SubscriptionContractService } from '../subscription-contract.servi
|
|
|
20
20
|
import '@nestjs/common';
|
|
21
21
|
import '../di-CcNeq9v-.cjs';
|
|
22
22
|
import '../plan-resolution-CFCoUkrE.cjs';
|
|
23
|
-
import '../module-
|
|
24
|
-
import '../catalog.module-
|
|
23
|
+
import '../module-CHMIyWlf.cjs';
|
|
24
|
+
import '../catalog.module-D-_pQDNA.cjs';
|
|
25
25
|
import '../subscription-bundles.module-DCpV-Pb5.cjs';
|
|
26
26
|
import '@nestjs/core';
|
|
27
27
|
import 'rxjs';
|
package/dist/platform/index.d.ts
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { p as PlanResolverPort } from '../saas-platform.module-
|
|
2
|
-
export { P as PLAN_RESOLVER_PORT_TOKEN, S as SaaSiCatModule, a as SaasPlatformAdapters, b as SaasPlatformAdminResourcesOptions, c as SaasPlatformAdminStatsOptions, d as SaasPlatformCatalogOptions, e as SaasPlatformCheckoutOfferOptions, S as SaasPlatformModule, f as SaasPlatformModuleOptions, g as SaasPlatformPromoCodesOptions, h as SaasPlatformSetupOptions, i as SaasPlatformSubscriptionBundlesOptions, j as SaasPlatformSubscriptionContractOptions, k as SaasPlatformTenantAuthGuards, l as SaasPlatformTenantBillingOptions, m as SetupModule, n as SetupModuleOptions, o as StaticPlanResolver, T as TenantManifestControllerOptions, q as buildTenantManifestController } from '../saas-platform.module-
|
|
3
|
-
export { a as SAASICAT_PUBLIC_ROUTE_KEY, d as SaaSiCatPublicRoute, S as SetupService, f as defineSaaSiCat, i as isSaaSiCatPublicRoute } from '../define-saasicat-
|
|
1
|
+
import { p as PlanResolverPort } from '../saas-platform.module-DolE41YY.js';
|
|
2
|
+
export { P as PLAN_RESOLVER_PORT_TOKEN, S as SaaSiCatModule, a as SaasPlatformAdapters, b as SaasPlatformAdminResourcesOptions, c as SaasPlatformAdminStatsOptions, d as SaasPlatformCatalogOptions, e as SaasPlatformCheckoutOfferOptions, S as SaasPlatformModule, f as SaasPlatformModuleOptions, g as SaasPlatformPromoCodesOptions, h as SaasPlatformSetupOptions, i as SaasPlatformSubscriptionBundlesOptions, j as SaasPlatformSubscriptionContractOptions, k as SaasPlatformTenantAuthGuards, l as SaasPlatformTenantBillingOptions, m as SetupModule, n as SetupModuleOptions, o as StaticPlanResolver, T as TenantManifestControllerOptions, q as buildTenantManifestController } from '../saas-platform.module-DolE41YY.js';
|
|
3
|
+
export { a as SAASICAT_PUBLIC_ROUTE_KEY, d as SaaSiCatPublicRoute, S as SetupService, f as defineSaaSiCat, i as isSaaSiCatPublicRoute } from '../define-saasicat-C99hWAUK.js';
|
|
4
4
|
import { SubscriptionRepository, UsageSnapshotPort, QuotaProvider } from '@saasicat/types';
|
|
5
|
-
import { S as StaticEntitlementService } from '../enforce-quota.interceptor-
|
|
6
|
-
export { E as EnforceQuotaInterceptor, Q as QUOTA_PROVIDERS_TOKEN, b as STATIC_FEATURE_GUARD_CONFIG_TOKEN, c as StaticEntitlementSnapshot, a as StaticFeatureGuard, d as StaticFeatureGuardConfig } from '../enforce-quota.interceptor-
|
|
5
|
+
import { S as StaticEntitlementService } from '../enforce-quota.interceptor-reO-i71U.js';
|
|
6
|
+
export { E as EnforceQuotaInterceptor, Q as QUOTA_PROVIDERS_TOKEN, b as STATIC_FEATURE_GUARD_CONFIG_TOKEN, c as StaticEntitlementSnapshot, a as StaticFeatureGuard, d as StaticFeatureGuardConfig } from '../enforce-quota.interceptor-reO-i71U.js';
|
|
7
7
|
export { A as AdminBypassRlsInterceptor, a as AdminManifestModule, b as AdminManifestModuleOptions, c as AdminManifestService, d as AdminModule, e as AdminModuleOptions, f as AdminStatsService, M as MfaGuard, h as MfaService, S as SuperAdminGuard } from '../admin-stats.service-Db2exT_d.js';
|
|
8
8
|
export { A as AdminAuditService } from '../admin-audit.service-9IqXMlZm.js';
|
|
9
9
|
export { e as AdminResourcesService, f as AdminStatsModule, g as AdminStatsModuleOptions } from '../admin-resources.module-BY5r_1MG.js';
|
|
10
|
-
export { c as EntitlementService } from '../aggregation-
|
|
11
|
-
export { d as ComposedTenantAuthGuard, P as PendingPlanMaterializationService, h as PlanChangePreviewService, r as SubscriptionBundlePreviewService, s as SubscriptionBundlesService, T as TenantAdminGuard, t as TenantBillingController } from '../tenant-billing.controller-
|
|
12
|
-
export { B as BundlesService, C as CatalogEntriesService, M as MarketingProjectionsService, b as MarketingSettingsService, P as PlanVersionsService, c as PlansService, d as PromotionsService, e as PublicMarketingCatalogService } from '../plan-versions.service-
|
|
10
|
+
export { c as EntitlementService } from '../aggregation-DP5zfKbU.js';
|
|
11
|
+
export { d as ComposedTenantAuthGuard, P as PendingPlanMaterializationService, h as PlanChangePreviewService, r as SubscriptionBundlePreviewService, s as SubscriptionBundlesService, T as TenantAdminGuard, t as TenantBillingController } from '../tenant-billing.controller-7o4ObzGs.js';
|
|
12
|
+
export { B as BundlesService, C as CatalogEntriesService, M as MarketingProjectionsService, b as MarketingSettingsService, P as PlanVersionsService, c as PlansService, d as PromotionsService, e as PublicMarketingCatalogService } from '../plan-versions.service-B-YoE4SZ.js';
|
|
13
13
|
export { c as DiscoveryScanner } from '../discovery.scanner-DLgEvuoy.js';
|
|
14
14
|
export { P as PromoCodeRateLimitGuard } from '../rate-limit.guard-dntqAlfZ.js';
|
|
15
|
-
export {
|
|
15
|
+
export { g as PromoCodesService } from '../service-D48clObR.js';
|
|
16
16
|
export { a as CheckoutOfferModule, b as CheckoutOfferModuleOptions } from '../checkout-offer.module-Ca3_TieR.js';
|
|
17
17
|
export { C as CheckoutOfferService } from '../checkout-offer.service-BX51dljL.js';
|
|
18
18
|
export { S as SubscriptionContractModule, a as SubscriptionContractModuleOptions } from '../subscription-contract.module-edyhBr4n.js';
|
|
@@ -20,8 +20,8 @@ export { S as SubscriptionContractService } from '../subscription-contract.servi
|
|
|
20
20
|
import '@nestjs/common';
|
|
21
21
|
import '../di-CcNeq9v-.js';
|
|
22
22
|
import '../plan-resolution-CFCoUkrE.js';
|
|
23
|
-
import '../module-
|
|
24
|
-
import '../catalog.module-
|
|
23
|
+
import '../module-BE17XFLg.js';
|
|
24
|
+
import '../catalog.module-CQr1FpkI.js';
|
|
25
25
|
import '../subscription-bundles.module-BQmoozm5.js';
|
|
26
26
|
import '@nestjs/core';
|
|
27
27
|
import 'rxjs';
|
package/dist/platform/index.js
CHANGED
|
@@ -16,10 +16,10 @@ import {
|
|
|
16
16
|
SubscriptionPlanResolver,
|
|
17
17
|
TenantManifestService,
|
|
18
18
|
buildTenantManifestController
|
|
19
|
-
} from "../chunk-
|
|
19
|
+
} from "../chunk-UFS344JD.js";
|
|
20
20
|
import {
|
|
21
21
|
PromoCodeRateLimitGuard
|
|
22
|
-
} from "../chunk-
|
|
22
|
+
} from "../chunk-4O6R6ARQ.js";
|
|
23
23
|
import {
|
|
24
24
|
AdminBypassRlsInterceptor,
|
|
25
25
|
AdminManifestModule,
|
|
@@ -31,7 +31,7 @@ import {
|
|
|
31
31
|
MfaGuard,
|
|
32
32
|
MfaService,
|
|
33
33
|
SuperAdminGuard
|
|
34
|
-
} from "../chunk-
|
|
34
|
+
} from "../chunk-SN5UOC43.js";
|
|
35
35
|
import {
|
|
36
36
|
ComposedTenantAuthGuard,
|
|
37
37
|
PendingPlanMaterializationService,
|
|
@@ -40,10 +40,10 @@ import {
|
|
|
40
40
|
SubscriptionBundlesService,
|
|
41
41
|
TenantAdminGuard,
|
|
42
42
|
TenantBillingController
|
|
43
|
-
} from "../chunk-
|
|
43
|
+
} from "../chunk-UO64MK3Q.js";
|
|
44
44
|
import {
|
|
45
45
|
PromoCodesService
|
|
46
|
-
} from "../chunk-
|
|
46
|
+
} from "../chunk-VQQWF7MW.js";
|
|
47
47
|
import {
|
|
48
48
|
SubscriptionContractModule,
|
|
49
49
|
SubscriptionContractService
|
|
@@ -57,7 +57,7 @@ import {
|
|
|
57
57
|
PlansService,
|
|
58
58
|
PromotionsService,
|
|
59
59
|
PublicMarketingCatalogService
|
|
60
|
-
} from "../chunk-
|
|
60
|
+
} from "../chunk-7X5MSAIL.js";
|
|
61
61
|
import "../chunk-WPUVJRIN.js";
|
|
62
62
|
import {
|
|
63
63
|
AdminAuditService
|
|
@@ -65,7 +65,7 @@ import {
|
|
|
65
65
|
import {
|
|
66
66
|
CheckoutOfferModule,
|
|
67
67
|
CheckoutOfferService
|
|
68
|
-
} from "../chunk-
|
|
68
|
+
} from "../chunk-XTVAFJ3P.js";
|
|
69
69
|
import "../chunk-BSK6YBLI.js";
|
|
70
70
|
import {
|
|
71
71
|
SAASICAT_PUBLIC_ROUTE_KEY,
|
|
@@ -78,9 +78,10 @@ import {
|
|
|
78
78
|
} from "../chunk-5ZXBXYXU.js";
|
|
79
79
|
import {
|
|
80
80
|
EntitlementService
|
|
81
|
-
} from "../chunk-
|
|
81
|
+
} from "../chunk-NNNXXUPT.js";
|
|
82
82
|
import "../chunk-DQKCK7DX.js";
|
|
83
83
|
import "../chunk-NYLON2VC.js";
|
|
84
|
+
import "../chunk-EBJJNTW6.js";
|
|
84
85
|
import "../chunk-WKVBNTYC.js";
|
|
85
86
|
import "../chunk-L4KTQ6CL.js";
|
|
86
87
|
import "../chunk-SABTXESR.js";
|
package/dist/promo/index.d.cts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { PromoCodeValueType, PromoCodeDurationType, BillingCycle, PromoCodeRepository, PromoCodeRedemptionRepository } from '@saasicat/types';
|
|
2
|
-
import {
|
|
3
|
-
export {
|
|
2
|
+
import { g as PromoCodesService, d as PreviewResult } from '../service-D48clObR.cjs';
|
|
3
|
+
export { a as PreviewInput, b as PreviewInvalid, c as PreviewReason, e as PreviewValid, f as PromoCodeStats, P as PromoServiceConfig, R as RedeemInput } from '../service-D48clObR.cjs';
|
|
4
4
|
export { P as PromoCodeRateLimitGuard, h as hashIp, i as ipFingerprint } from '../rate-limit.guard-dntqAlfZ.cjs';
|
|
5
|
-
export { P as PromoCodesModule, a as PromoCodesModuleOptions } from '../module-
|
|
5
|
+
export { P as PromoCodesModule, a as PromoCodesModuleOptions } from '../module-CHMIyWlf.cjs';
|
|
6
6
|
import { Type, CanActivate } from '@nestjs/common';
|
|
7
7
|
import '../di-CcNeq9v-.cjs';
|
|
8
8
|
|
package/dist/promo/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { PromoCodeValueType, PromoCodeDurationType, BillingCycle, PromoCodeRepository, PromoCodeRedemptionRepository } from '@saasicat/types';
|
|
2
|
-
import {
|
|
3
|
-
export {
|
|
2
|
+
import { g as PromoCodesService, d as PreviewResult } from '../service-D48clObR.js';
|
|
3
|
+
export { a as PreviewInput, b as PreviewInvalid, c as PreviewReason, e as PreviewValid, f as PromoCodeStats, P as PromoServiceConfig, R as RedeemInput } from '../service-D48clObR.js';
|
|
4
4
|
export { P as PromoCodeRateLimitGuard, h as hashIp, i as ipFingerprint } from '../rate-limit.guard-dntqAlfZ.js';
|
|
5
|
-
export { P as PromoCodesModule, a as PromoCodesModuleOptions } from '../module-
|
|
5
|
+
export { P as PromoCodesModule, a as PromoCodesModuleOptions } from '../module-BE17XFLg.js';
|
|
6
6
|
import { Type, CanActivate } from '@nestjs/common';
|
|
7
7
|
import '../di-CcNeq9v-.js';
|
|
8
8
|
|
package/dist/promo/index.js
CHANGED
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
buildPromoCodeAdminController,
|
|
11
11
|
hashIp,
|
|
12
12
|
ipFingerprint
|
|
13
|
-
} from "../chunk-
|
|
13
|
+
} from "../chunk-4O6R6ARQ.js";
|
|
14
14
|
import {
|
|
15
15
|
PROMO_CODE_REDEMPTION_REPOSITORY_TOKEN,
|
|
16
16
|
PROMO_CODE_REPOSITORY_TOKEN,
|
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
computeDiscountGross,
|
|
27
27
|
computeDiscountedGross,
|
|
28
28
|
computeRegularStartsAt
|
|
29
|
-
} from "../chunk-
|
|
29
|
+
} from "../chunk-VQQWF7MW.js";
|
|
30
30
|
import "../chunk-E56W4U2P.js";
|
|
31
31
|
import "../chunk-YSC46BGM.js";
|
|
32
32
|
import {
|
|
@@ -34,6 +34,7 @@ import {
|
|
|
34
34
|
grossFromNet,
|
|
35
35
|
round2
|
|
36
36
|
} from "../chunk-DQKCK7DX.js";
|
|
37
|
+
import "../chunk-EBJJNTW6.js";
|
|
37
38
|
import "../chunk-SABTXESR.js";
|
|
38
39
|
import "../chunk-SHUYVCID.js";
|
|
39
40
|
export {
|
|
@@ -377,7 +377,7 @@ declare class SaveRegistrationConfigSelectionDto {
|
|
|
377
377
|
billingCycle: 'MONTHLY' | 'YEARLY';
|
|
378
378
|
appliedPromoCode?: string | null;
|
|
379
379
|
/**
|
|
380
|
-
*
|
|
380
|
+
* — Bundle consistency. ID of the `CheckoutOffer` that was
|
|
381
381
|
* created on the pricing page (`<app>/register?offer=<id>`). Passed
|
|
382
382
|
* through unchanged in `configJson`; the ActivationOrchestrator freezes it
|
|
383
383
|
* as `packageSnapshot` when the subscription is created and sets the offer
|
|
@@ -377,7 +377,7 @@ declare class SaveRegistrationConfigSelectionDto {
|
|
|
377
377
|
billingCycle: 'MONTHLY' | 'YEARLY';
|
|
378
378
|
appliedPromoCode?: string | null;
|
|
379
379
|
/**
|
|
380
|
-
*
|
|
380
|
+
* — Bundle consistency. ID of the `CheckoutOffer` that was
|
|
381
381
|
* created on the pricing page (`<app>/register?offer=<id>`). Passed
|
|
382
382
|
* through unchanged in `configJson`; the ActivationOrchestrator freezes it
|
|
383
383
|
* as `packageSnapshot` when the subscription is created and sets the offer
|
|
@@ -4,9 +4,9 @@ import { P as ProviderSpec } from './di-CcNeq9v-.js';
|
|
|
4
4
|
import { b as AdminManifestConfig, d as AdminResourcesModuleOptions, g as AdminStatsModuleOptions } from './admin-resources.module-BY5r_1MG.js';
|
|
5
5
|
import { E as EntitlementResolutionConfig } from './plan-resolution-CFCoUkrE.js';
|
|
6
6
|
import { a as SubscriptionContractModuleOptions } from './subscription-contract.module-edyhBr4n.js';
|
|
7
|
-
import { a as PromoCodesModuleOptions } from './module-
|
|
7
|
+
import { a as PromoCodesModuleOptions } from './module-BE17XFLg.js';
|
|
8
8
|
import { b as DiscoveryAppInfo } from './discovery.scanner-DLgEvuoy.js';
|
|
9
|
-
import { b as CatalogModuleOptions } from './catalog.module-
|
|
9
|
+
import { b as CatalogModuleOptions } from './catalog.module-CQr1FpkI.js';
|
|
10
10
|
import { b as CheckoutOfferModuleOptions } from './checkout-offer.module-Ca3_TieR.js';
|
|
11
11
|
import { t as TenantBillingModuleOptions, p as SubscriptionBundleModuleOptions, n as SubscriptionBundleControllerOptions } from './subscription-bundles.module-BQmoozm5.js';
|
|
12
12
|
|
|
@@ -4,9 +4,9 @@ import { P as ProviderSpec } from './di-CcNeq9v-.cjs';
|
|
|
4
4
|
import { b as AdminManifestConfig, d as AdminResourcesModuleOptions, g as AdminStatsModuleOptions } from './admin-resources.module-DGgGSdzN.cjs';
|
|
5
5
|
import { E as EntitlementResolutionConfig } from './plan-resolution-CFCoUkrE.cjs';
|
|
6
6
|
import { a as SubscriptionContractModuleOptions } from './subscription-contract.module-B2uNvUJL.cjs';
|
|
7
|
-
import { a as PromoCodesModuleOptions } from './module-
|
|
7
|
+
import { a as PromoCodesModuleOptions } from './module-CHMIyWlf.cjs';
|
|
8
8
|
import { b as DiscoveryAppInfo } from './discovery.scanner-DLgEvuoy.cjs';
|
|
9
|
-
import { b as CatalogModuleOptions } from './catalog.module-
|
|
9
|
+
import { b as CatalogModuleOptions } from './catalog.module-D-_pQDNA.cjs';
|
|
10
10
|
import { b as CheckoutOfferModuleOptions } from './checkout-offer.module-DmlpPevf.cjs';
|
|
11
11
|
import { t as TenantBillingModuleOptions, p as SubscriptionBundleModuleOptions, n as SubscriptionBundleControllerOptions } from './subscription-bundles.module-DCpV-Pb5.cjs';
|
|
12
12
|
|
|
@@ -106,4 +106,4 @@ declare class PromoCodesService {
|
|
|
106
106
|
private lowestApplicablePlanGross;
|
|
107
107
|
}
|
|
108
108
|
|
|
109
|
-
export { type
|
|
109
|
+
export { type PromoServiceConfig as P, type RedeemInput as R, type PreviewInput as a, type PreviewInvalid as b, type PreviewReason as c, type PreviewResult as d, type PreviewValid as e, type PromoCodeStats as f, PromoCodesService as g };
|
|
@@ -106,4 +106,4 @@ declare class PromoCodesService {
|
|
|
106
106
|
private lowestApplicablePlanGross;
|
|
107
107
|
}
|
|
108
108
|
|
|
109
|
-
export { type
|
|
109
|
+
export { type PromoServiceConfig as P, type RedeemInput as R, type PreviewInput as a, type PreviewInvalid as b, type PreviewReason as c, type PreviewResult as d, type PreviewValid as e, type PromoCodeStats as f, PromoCodesService as g };
|
package/dist/{tenant-billing.controller-b1G1yB09.d.ts → tenant-billing.controller-7o4ObzGs.d.ts}
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { CanActivate, ExecutionContext } from '@nestjs/common';
|
|
2
2
|
import { b as AuthGuardList, m as SelfServiceBlockedPlans, w as TrialProjectionPort, h as PendingPlanQueryPort, f as ContractFreezePort, l as SelfServiceBlockedBundles, u as TenantIdResolver, B as UserIdResolver, z as UserEmailResolver, a as AuditContextResolver } from './subscription-bundles.module-BQmoozm5.js';
|
|
3
3
|
import { PlanCatalog, SubscriptionUsagePort, UsageSnapshotPort, TenantSubscriptionWritePort, SubscriptionBundleRepository, BundleRepository, SubscriptionBundleView, SubscriptionBundleRecord, PlanRepository, CatalogEntryRepository, BundleVersionRow, SubscriptionUsageRecord, OnboardingSelectionResponse } from '@saasicat/types';
|
|
4
|
-
import { c as EntitlementService, a as EffectiveLimitsSnapshot, t as toEffectiveLimitsSnapshot } from './aggregation-
|
|
5
|
-
import {
|
|
4
|
+
import { c as EntitlementService, a as EffectiveLimitsSnapshot, t as toEffectiveLimitsSnapshot } from './aggregation-DP5zfKbU.js';
|
|
5
|
+
import { g as PromoCodesService } from './service-D48clObR.js';
|
|
6
6
|
import { A as AdminAuditService } from './admin-audit.service-9IqXMlZm.js';
|
|
7
7
|
|
|
8
8
|
declare class ComposedTenantAuthGuard implements CanActivate {
|
|
@@ -357,7 +357,7 @@ interface UsageResponse {
|
|
|
357
357
|
limits: ReturnType<typeof toEffectiveLimitsSnapshot>;
|
|
358
358
|
usage: Record<string, number>;
|
|
359
359
|
/**
|
|
360
|
-
* P11.4
|
|
360
|
+
* P11.4: Frozen package snapshot from the
|
|
361
361
|
* `CheckoutOffer` that was activated during onboarding. Read-only
|
|
362
362
|
* for the tenant self-service UI. `null` for subscriptions without
|
|
363
363
|
* a CheckoutOffer origin.
|
package/dist/{tenant-billing.controller-m42YQ_Ei.d.cts → tenant-billing.controller-DubP6-Md.d.cts}
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { CanActivate, ExecutionContext } from '@nestjs/common';
|
|
2
2
|
import { b as AuthGuardList, m as SelfServiceBlockedPlans, w as TrialProjectionPort, h as PendingPlanQueryPort, f as ContractFreezePort, l as SelfServiceBlockedBundles, u as TenantIdResolver, B as UserIdResolver, z as UserEmailResolver, a as AuditContextResolver } from './subscription-bundles.module-DCpV-Pb5.cjs';
|
|
3
3
|
import { PlanCatalog, SubscriptionUsagePort, UsageSnapshotPort, TenantSubscriptionWritePort, SubscriptionBundleRepository, BundleRepository, SubscriptionBundleView, SubscriptionBundleRecord, PlanRepository, CatalogEntryRepository, BundleVersionRow, SubscriptionUsageRecord, OnboardingSelectionResponse } from '@saasicat/types';
|
|
4
|
-
import { c as EntitlementService, a as EffectiveLimitsSnapshot, t as toEffectiveLimitsSnapshot } from './aggregation-
|
|
5
|
-
import {
|
|
4
|
+
import { c as EntitlementService, a as EffectiveLimitsSnapshot, t as toEffectiveLimitsSnapshot } from './aggregation-mZ7WZROK.cjs';
|
|
5
|
+
import { g as PromoCodesService } from './service-D48clObR.cjs';
|
|
6
6
|
import { A as AdminAuditService } from './admin-audit.service-9IqXMlZm.cjs';
|
|
7
7
|
|
|
8
8
|
declare class ComposedTenantAuthGuard implements CanActivate {
|
|
@@ -357,7 +357,7 @@ interface UsageResponse {
|
|
|
357
357
|
limits: ReturnType<typeof toEffectiveLimitsSnapshot>;
|
|
358
358
|
usage: Record<string, number>;
|
|
359
359
|
/**
|
|
360
|
-
* P11.4
|
|
360
|
+
* P11.4: Frozen package snapshot from the
|
|
361
361
|
* `CheckoutOffer` that was activated during onboarding. Read-only
|
|
362
362
|
* for the tenant self-service UI. `null` for subscriptions without
|
|
363
363
|
* a CheckoutOffer origin.
|
package/dist/testing/index.d.cts
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { BundleRepository, BundleRow, BundleVersionRow, BundleListFilter, CreateBundleData, UpdateBundleData, CreateBundleVersionDraftData, UpdateBundleVersionDraftData, VersionChange, MarketingProjectionRepository, MarketingProjectionRow, MarketingProjectionFilter, CreateMarketingProjectionData, UpdateMarketingProjectionData, PlanRepository, PlanRow, PlanVersionRow, PlanListFilter, CreatePlanData, UpdatePlanData, CreatePlanVersionDraftData, UpdatePlanVersionDraftData, PlanVersionRepository, PlanVersionRecord, TransactionContext, SubscriptionBundleRepository, SubscriptionBundleRecord, CreateSubscriptionBundleData, CancelSubscriptionBundleData, SubscriptionContractRepository, SubscriptionContractFilter, SubscriptionContractRecord, CreateSubscriptionContractData, TerminateSubscriptionContractData, SubscriptionRepository, SubscriptionRecord, TransactionRunner, PlanCatalog, QuotaProvider } from '@saasicat/types';
|
|
2
2
|
import { Type, DynamicModule } from '@nestjs/common';
|
|
3
|
-
import { a as SaasPlatformAdapters } from '../saas-platform.module-
|
|
4
|
-
export { P as PLAN_RESOLVER_PORT_TOKEN, o as StaticPlanResolver } from '../saas-platform.module-
|
|
5
|
-
export { E as EnforceQuotaInterceptor, S as StaticEntitlementService, a as StaticFeatureGuard } from '../enforce-quota.interceptor-
|
|
3
|
+
import { a as SaasPlatformAdapters } from '../saas-platform.module-HCDNZTiE.cjs';
|
|
4
|
+
export { P as PLAN_RESOLVER_PORT_TOKEN, o as StaticPlanResolver } from '../saas-platform.module-HCDNZTiE.cjs';
|
|
5
|
+
export { E as EnforceQuotaInterceptor, S as StaticEntitlementService, a as StaticFeatureGuard } from '../enforce-quota.interceptor-BrsU1UYJ.cjs';
|
|
6
6
|
import '../di-CcNeq9v-.cjs';
|
|
7
7
|
import '../admin-resources.module-DGgGSdzN.cjs';
|
|
8
8
|
import '../admin-audit.service-9IqXMlZm.cjs';
|
|
9
9
|
import '../plan-resolution-CFCoUkrE.cjs';
|
|
10
10
|
import '../subscription-contract.module-B2uNvUJL.cjs';
|
|
11
|
-
import '../module-
|
|
12
|
-
import '../service-
|
|
11
|
+
import '../module-CHMIyWlf.cjs';
|
|
12
|
+
import '../service-D48clObR.cjs';
|
|
13
13
|
import '../discovery.scanner-DLgEvuoy.cjs';
|
|
14
14
|
import '@nestjs/core';
|
|
15
|
-
import '../catalog.module-
|
|
15
|
+
import '../catalog.module-D-_pQDNA.cjs';
|
|
16
16
|
import '../checkout-offer.module-DmlpPevf.cjs';
|
|
17
17
|
import '../subscription-bundles.module-DCpV-Pb5.cjs';
|
|
18
18
|
import 'rxjs';
|
package/dist/testing/index.d.ts
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { BundleRepository, BundleRow, BundleVersionRow, BundleListFilter, CreateBundleData, UpdateBundleData, CreateBundleVersionDraftData, UpdateBundleVersionDraftData, VersionChange, MarketingProjectionRepository, MarketingProjectionRow, MarketingProjectionFilter, CreateMarketingProjectionData, UpdateMarketingProjectionData, PlanRepository, PlanRow, PlanVersionRow, PlanListFilter, CreatePlanData, UpdatePlanData, CreatePlanVersionDraftData, UpdatePlanVersionDraftData, PlanVersionRepository, PlanVersionRecord, TransactionContext, SubscriptionBundleRepository, SubscriptionBundleRecord, CreateSubscriptionBundleData, CancelSubscriptionBundleData, SubscriptionContractRepository, SubscriptionContractFilter, SubscriptionContractRecord, CreateSubscriptionContractData, TerminateSubscriptionContractData, SubscriptionRepository, SubscriptionRecord, TransactionRunner, PlanCatalog, QuotaProvider } from '@saasicat/types';
|
|
2
2
|
import { Type, DynamicModule } from '@nestjs/common';
|
|
3
|
-
import { a as SaasPlatformAdapters } from '../saas-platform.module-
|
|
4
|
-
export { P as PLAN_RESOLVER_PORT_TOKEN, o as StaticPlanResolver } from '../saas-platform.module-
|
|
5
|
-
export { E as EnforceQuotaInterceptor, S as StaticEntitlementService, a as StaticFeatureGuard } from '../enforce-quota.interceptor-
|
|
3
|
+
import { a as SaasPlatformAdapters } from '../saas-platform.module-DolE41YY.js';
|
|
4
|
+
export { P as PLAN_RESOLVER_PORT_TOKEN, o as StaticPlanResolver } from '../saas-platform.module-DolE41YY.js';
|
|
5
|
+
export { E as EnforceQuotaInterceptor, S as StaticEntitlementService, a as StaticFeatureGuard } from '../enforce-quota.interceptor-reO-i71U.js';
|
|
6
6
|
import '../di-CcNeq9v-.js';
|
|
7
7
|
import '../admin-resources.module-BY5r_1MG.js';
|
|
8
8
|
import '../admin-audit.service-9IqXMlZm.js';
|
|
9
9
|
import '../plan-resolution-CFCoUkrE.js';
|
|
10
10
|
import '../subscription-contract.module-edyhBr4n.js';
|
|
11
|
-
import '../module-
|
|
12
|
-
import '../service-
|
|
11
|
+
import '../module-BE17XFLg.js';
|
|
12
|
+
import '../service-D48clObR.js';
|
|
13
13
|
import '../discovery.scanner-DLgEvuoy.js';
|
|
14
14
|
import '@nestjs/core';
|
|
15
|
-
import '../catalog.module-
|
|
15
|
+
import '../catalog.module-CQr1FpkI.js';
|
|
16
16
|
import '../checkout-offer.module-Ca3_TieR.js';
|
|
17
17
|
import '../subscription-bundles.module-BQmoozm5.js';
|
|
18
18
|
import 'rxjs';
|
package/dist/testing/index.js
CHANGED
|
@@ -5,23 +5,24 @@ import {
|
|
|
5
5
|
StaticEntitlementService,
|
|
6
6
|
StaticFeatureGuard,
|
|
7
7
|
StaticPlanResolver
|
|
8
|
-
} from "../chunk-
|
|
9
|
-
import "../chunk-
|
|
10
|
-
import "../chunk-
|
|
11
|
-
import "../chunk-
|
|
12
|
-
import "../chunk-
|
|
8
|
+
} from "../chunk-UFS344JD.js";
|
|
9
|
+
import "../chunk-4O6R6ARQ.js";
|
|
10
|
+
import "../chunk-SN5UOC43.js";
|
|
11
|
+
import "../chunk-UO64MK3Q.js";
|
|
12
|
+
import "../chunk-VQQWF7MW.js";
|
|
13
13
|
import "../chunk-B7NRY2LV.js";
|
|
14
|
-
import "../chunk-
|
|
14
|
+
import "../chunk-7X5MSAIL.js";
|
|
15
15
|
import "../chunk-WPUVJRIN.js";
|
|
16
16
|
import "../chunk-E56W4U2P.js";
|
|
17
|
-
import "../chunk-
|
|
17
|
+
import "../chunk-XTVAFJ3P.js";
|
|
18
18
|
import "../chunk-BSK6YBLI.js";
|
|
19
19
|
import "../chunk-YSC46BGM.js";
|
|
20
20
|
import "../chunk-6WL6VQ7Z.js";
|
|
21
21
|
import "../chunk-5ZXBXYXU.js";
|
|
22
|
-
import "../chunk-
|
|
22
|
+
import "../chunk-NNNXXUPT.js";
|
|
23
23
|
import "../chunk-DQKCK7DX.js";
|
|
24
24
|
import "../chunk-NYLON2VC.js";
|
|
25
|
+
import "../chunk-EBJJNTW6.js";
|
|
25
26
|
import "../chunk-WKVBNTYC.js";
|
|
26
27
|
import "../chunk-L4KTQ6CL.js";
|
|
27
28
|
import "../chunk-SABTXESR.js";
|
|
@@ -750,7 +751,7 @@ var FakePlanRepository = class {
|
|
|
750
751
|
if (v.planId === existing.planKey) this.versions.delete(id);
|
|
751
752
|
}
|
|
752
753
|
}
|
|
753
|
-
// ─── Lifecycle
|
|
754
|
+
// ─── Lifecycle ───
|
|
754
755
|
// Binding Plan ↔ PlanVersion: PlanVersion.planId === Plan.planKey
|
|
755
756
|
// (soft string reference). Lifecycle methods take planKey
|
|
756
757
|
// as input — the service resolves the plan UUID beforehand.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@saasicat/nest",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.22.0",
|
|
4
4
|
"description": "NestJS implementation of SaaSiCat: capability discovery, catalog packaging, contracts, entitlement enforcement, billing and admin APIs.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -137,8 +137,8 @@
|
|
|
137
137
|
"js-yaml": "^4.3.1",
|
|
138
138
|
"otplib": "^13.4.1",
|
|
139
139
|
"qrcode": "^1.5.4",
|
|
140
|
-
"@saasicat/spec": "^0.
|
|
141
|
-
"@saasicat/types": "^0.
|
|
140
|
+
"@saasicat/spec": "^0.22.0",
|
|
141
|
+
"@saasicat/types": "^0.22.0"
|
|
142
142
|
},
|
|
143
143
|
"peerDependencies": {
|
|
144
144
|
"@nestjs/common": "^11.0.0",
|