@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.
Files changed (59) hide show
  1. package/dist/_entries.cjs +358 -391
  2. package/dist/admin/index.js +2 -1
  3. package/dist/{aggregation-o0LMenvl.d.ts → aggregation-DP5zfKbU.d.ts} +3 -3
  4. package/dist/{aggregation-SKfXu09x.d.cts → aggregation-mZ7WZROK.d.cts} +3 -3
  5. package/dist/billing/index.d.cts +13 -12
  6. package/dist/billing/index.d.ts +13 -12
  7. package/dist/billing/index.js +4 -3
  8. package/dist/catalog/index.d.cts +10 -10
  9. package/dist/catalog/index.d.ts +10 -10
  10. package/dist/catalog/index.js +2 -2
  11. package/dist/{catalog.module-BKObceo0.d.ts → catalog.module-CQr1FpkI.d.ts} +6 -6
  12. package/dist/{catalog.module-Dw2Hrbyu.d.cts → catalog.module-D-_pQDNA.d.cts} +6 -6
  13. package/dist/checkout-offer/index.js +1 -1
  14. package/dist/{chunk-EUU3B6NB.js → chunk-4O6R6ARQ.js} +12 -6
  15. package/dist/{chunk-LXUBCLRK.js → chunk-7X5MSAIL.js} +16 -15
  16. package/dist/{chunk-AFK2IE2L.js → chunk-7ZPFQXHM.js} +1 -1
  17. package/dist/chunk-EBJJNTW6.js +22 -0
  18. package/dist/{chunk-6WA4X5U3.js → chunk-MJ32VNZD.js} +41 -91
  19. package/dist/{chunk-F6DCLVBB.js → chunk-NNNXXUPT.js} +9 -3
  20. package/dist/{chunk-7JIHG53V.js → chunk-SN5UOC43.js} +7 -4
  21. package/dist/{chunk-KUDKD7ZG.js → chunk-UFS344JD.js} +26 -22
  22. package/dist/{chunk-I77VS3YH.js → chunk-UO64MK3Q.js} +18 -24
  23. package/dist/{chunk-QLJHIIOY.js → chunk-VQQWF7MW.js} +7 -3
  24. package/dist/{chunk-ORWIGSNN.js → chunk-XTVAFJ3P.js} +2 -1
  25. package/dist/{define-saasicat-D8c6Bs4T.d.cts → define-saasicat-ByPjtKPy.d.cts} +1 -1
  26. package/dist/{define-saasicat-CqkhnHn-.d.ts → define-saasicat-C99hWAUK.d.ts} +1 -1
  27. package/dist/discovery/index.d.cts +2 -2
  28. package/dist/discovery/index.d.ts +2 -2
  29. package/dist/{enforce-quota.interceptor-Dk0eEtzV.d.cts → enforce-quota.interceptor-BrsU1UYJ.d.cts} +1 -1
  30. package/dist/{enforce-quota.interceptor-Dp8wTYro.d.ts → enforce-quota.interceptor-reO-i71U.d.ts} +1 -1
  31. package/dist/entitlement/index.d.cts +1 -1
  32. package/dist/entitlement/index.d.ts +1 -1
  33. package/dist/entitlement/index.js +2 -1
  34. package/dist/index.d.cts +30 -11
  35. package/dist/index.d.ts +30 -11
  36. package/dist/index.js +14 -10
  37. package/dist/{module-BwD-wAor.d.ts → module-BE17XFLg.d.ts} +1 -1
  38. package/dist/{module-DsDkbawm.d.cts → module-CHMIyWlf.d.cts} +1 -1
  39. package/dist/{plan-versions.service-BB36Q1bg.d.ts → plan-versions.service-B-YoE4SZ.d.ts} +1 -1
  40. package/dist/{plan-versions.service-CUR2Whyr.d.cts → plan-versions.service-_saKzb50.d.cts} +1 -1
  41. package/dist/platform/index.d.cts +11 -11
  42. package/dist/platform/index.d.ts +11 -11
  43. package/dist/platform/index.js +9 -8
  44. package/dist/promo/index.d.cts +3 -3
  45. package/dist/promo/index.d.ts +3 -3
  46. package/dist/promo/index.js +3 -2
  47. package/dist/registration/index.d.cts +1 -1
  48. package/dist/registration/index.d.ts +1 -1
  49. package/dist/registration/index.js +2 -1
  50. package/dist/{saas-platform.module-BQmrDGVU.d.ts → saas-platform.module-DolE41YY.d.ts} +2 -2
  51. package/dist/{saas-platform.module-DducnQ9s.d.cts → saas-platform.module-HCDNZTiE.d.cts} +2 -2
  52. package/dist/{service-DPZ2W1E-.d.cts → service-D48clObR.d.cts} +1 -1
  53. package/dist/{service-DPZ2W1E-.d.ts → service-D48clObR.d.ts} +1 -1
  54. package/dist/{tenant-billing.controller-b1G1yB09.d.ts → tenant-billing.controller-7o4ObzGs.d.ts} +3 -3
  55. package/dist/{tenant-billing.controller-m42YQ_Ei.d.cts → tenant-billing.controller-DubP6-Md.d.cts} +3 -3
  56. package/dist/testing/index.d.cts +6 -6
  57. package/dist/testing/index.d.ts +6 -6
  58. package/dist/testing/index.js +10 -9
  59. package/package.json +3 -3
@@ -1,18 +1,18 @@
1
- import { p as PlanResolverPort } from '../saas-platform.module-DducnQ9s.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-DducnQ9s.cjs';
3
- export { a as SAASICAT_PUBLIC_ROUTE_KEY, d as SaaSiCatPublicRoute, S as SetupService, f as defineSaaSiCat, i as isSaaSiCatPublicRoute } from '../define-saasicat-D8c6Bs4T.cjs';
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-Dk0eEtzV.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-Dk0eEtzV.cjs';
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-SKfXu09x.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-m42YQ_Ei.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-CUR2Whyr.cjs';
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 { f as PromoCodesService } from '../service-DPZ2W1E-.cjs';
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-DsDkbawm.cjs';
24
- import '../catalog.module-Dw2Hrbyu.cjs';
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';
@@ -1,18 +1,18 @@
1
- import { p as PlanResolverPort } from '../saas-platform.module-BQmrDGVU.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-BQmrDGVU.js';
3
- export { a as SAASICAT_PUBLIC_ROUTE_KEY, d as SaaSiCatPublicRoute, S as SetupService, f as defineSaaSiCat, i as isSaaSiCatPublicRoute } from '../define-saasicat-CqkhnHn-.js';
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-Dp8wTYro.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-Dp8wTYro.js';
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-o0LMenvl.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-b1G1yB09.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-BB36Q1bg.js';
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 { f as PromoCodesService } from '../service-DPZ2W1E-.js';
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-BwD-wAor.js';
24
- import '../catalog.module-BKObceo0.js';
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';
@@ -16,10 +16,10 @@ import {
16
16
  SubscriptionPlanResolver,
17
17
  TenantManifestService,
18
18
  buildTenantManifestController
19
- } from "../chunk-KUDKD7ZG.js";
19
+ } from "../chunk-UFS344JD.js";
20
20
  import {
21
21
  PromoCodeRateLimitGuard
22
- } from "../chunk-EUU3B6NB.js";
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-7JIHG53V.js";
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-I77VS3YH.js";
43
+ } from "../chunk-UO64MK3Q.js";
44
44
  import {
45
45
  PromoCodesService
46
- } from "../chunk-QLJHIIOY.js";
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-LXUBCLRK.js";
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-ORWIGSNN.js";
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-F6DCLVBB.js";
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";
@@ -1,8 +1,8 @@
1
1
  import { PromoCodeValueType, PromoCodeDurationType, BillingCycle, PromoCodeRepository, PromoCodeRedemptionRepository } from '@saasicat/types';
2
- import { f as PromoCodesService, c as PreviewResult } from '../service-DPZ2W1E-.cjs';
3
- export { P as PreviewInput, a as PreviewInvalid, b as PreviewReason, d as PreviewValid, e as PromoCodeStats, g as PromoServiceConfig, R as RedeemInput } from '../service-DPZ2W1E-.cjs';
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-DsDkbawm.cjs';
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
 
@@ -1,8 +1,8 @@
1
1
  import { PromoCodeValueType, PromoCodeDurationType, BillingCycle, PromoCodeRepository, PromoCodeRedemptionRepository } from '@saasicat/types';
2
- import { f as PromoCodesService, c as PreviewResult } from '../service-DPZ2W1E-.js';
3
- export { P as PreviewInput, a as PreviewInvalid, b as PreviewReason, d as PreviewValid, e as PromoCodeStats, g as PromoServiceConfig, R as RedeemInput } from '../service-DPZ2W1E-.js';
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-BwD-wAor.js';
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
 
@@ -10,7 +10,7 @@ import {
10
10
  buildPromoCodeAdminController,
11
11
  hashIp,
12
12
  ipFingerprint
13
- } from "../chunk-EUU3B6NB.js";
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-QLJHIIOY.js";
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
- * METAMODELL §17a — Bundle consistency. ID of the `CheckoutOffer` that was
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
- * METAMODELL §17a — Bundle consistency. ID of the `CheckoutOffer` that was
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
@@ -36,7 +36,8 @@ import {
36
36
  resolveModel,
37
37
  slugify,
38
38
  verifyOtpCode
39
- } from "../chunk-6WA4X5U3.js";
39
+ } from "../chunk-MJ32VNZD.js";
40
+ import "../chunk-EBJJNTW6.js";
40
41
  import "../chunk-SABTXESR.js";
41
42
  import "../chunk-SHUYVCID.js";
42
43
  export {
@@ -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-BwD-wAor.js';
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-BKObceo0.js';
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-DsDkbawm.cjs';
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-Dw2Hrbyu.cjs';
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 PreviewInput as P, type RedeemInput as R, type PreviewInvalid as a, type PreviewReason as b, type PreviewResult as c, type PreviewValid as d, type PromoCodeStats as e, PromoCodesService as f, type PromoServiceConfig as g };
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 PreviewInput as P, type RedeemInput as R, type PreviewInvalid as a, type PreviewReason as b, type PreviewResult as c, type PreviewValid as d, type PromoCodeStats as e, PromoCodesService as f, type PromoServiceConfig as g };
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 };
@@ -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-o0LMenvl.js';
5
- import { f as PromoCodesService } from './service-DPZ2W1E-.js';
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 (METAMODELL §17a): Frozen package snapshot from the
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.
@@ -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-SKfXu09x.cjs';
5
- import { f as PromoCodesService } from './service-DPZ2W1E-.cjs';
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 (METAMODELL §17a): Frozen package snapshot from the
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.
@@ -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-DducnQ9s.cjs';
4
- export { P as PLAN_RESOLVER_PORT_TOKEN, o as StaticPlanResolver } from '../saas-platform.module-DducnQ9s.cjs';
5
- export { E as EnforceQuotaInterceptor, S as StaticEntitlementService, a as StaticFeatureGuard } from '../enforce-quota.interceptor-Dk0eEtzV.cjs';
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-DsDkbawm.cjs';
12
- import '../service-DPZ2W1E-.cjs';
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-Dw2Hrbyu.cjs';
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';
@@ -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-BQmrDGVU.js';
4
- export { P as PLAN_RESOLVER_PORT_TOKEN, o as StaticPlanResolver } from '../saas-platform.module-BQmrDGVU.js';
5
- export { E as EnforceQuotaInterceptor, S as StaticEntitlementService, a as StaticFeatureGuard } from '../enforce-quota.interceptor-Dp8wTYro.js';
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-BwD-wAor.js';
12
- import '../service-DPZ2W1E-.js';
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-BKObceo0.js';
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';
@@ -5,23 +5,24 @@ import {
5
5
  StaticEntitlementService,
6
6
  StaticFeatureGuard,
7
7
  StaticPlanResolver
8
- } from "../chunk-KUDKD7ZG.js";
9
- import "../chunk-EUU3B6NB.js";
10
- import "../chunk-7JIHG53V.js";
11
- import "../chunk-I77VS3YH.js";
12
- import "../chunk-QLJHIIOY.js";
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-LXUBCLRK.js";
14
+ import "../chunk-7X5MSAIL.js";
15
15
  import "../chunk-WPUVJRIN.js";
16
16
  import "../chunk-E56W4U2P.js";
17
- import "../chunk-ORWIGSNN.js";
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-F6DCLVBB.js";
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 (SPEC_V2 §11.1 M6 Pack 2a) ───
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.19.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.19.0",
141
- "@saasicat/types": "^0.19.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",