@saasicat/nest 0.21.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 (47) hide show
  1. package/dist/_entries.cjs +21 -15
  2. package/dist/admin/index.js +1 -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 +7 -7
  6. package/dist/billing/index.d.ts +7 -7
  7. package/dist/billing/index.js +2 -2
  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/{chunk-GC5AKN44.js → chunk-7X5MSAIL.js} +7 -7
  14. package/dist/{chunk-55QGAZRQ.js → chunk-7ZPFQXHM.js} +1 -1
  15. package/dist/{chunk-3DRZ5GCP.js → chunk-MJ32VNZD.js} +1 -1
  16. package/dist/{chunk-AGOG5B77.js → chunk-NNNXXUPT.js} +1 -1
  17. package/dist/{chunk-FYWLPYBK.js → chunk-SN5UOC43.js} +3 -3
  18. package/dist/{chunk-ZH5PYEMI.js → chunk-UFS344JD.js} +11 -5
  19. package/dist/{chunk-NZLAYCEX.js → chunk-UO64MK3Q.js} +3 -3
  20. package/dist/{define-saasicat-Cf9DpEsY.d.cts → define-saasicat-ByPjtKPy.d.cts} +1 -1
  21. package/dist/{define-saasicat-B20Ms8UC.d.ts → define-saasicat-C99hWAUK.d.ts} +1 -1
  22. package/dist/discovery/index.d.cts +2 -2
  23. package/dist/discovery/index.d.ts +2 -2
  24. package/dist/{enforce-quota.interceptor-Dtg5WdFj.d.cts → enforce-quota.interceptor-BrsU1UYJ.d.cts} +1 -1
  25. package/dist/{enforce-quota.interceptor-CUyfR4cQ.d.ts → enforce-quota.interceptor-reO-i71U.d.ts} +1 -1
  26. package/dist/entitlement/index.d.cts +1 -1
  27. package/dist/entitlement/index.d.ts +1 -1
  28. package/dist/entitlement/index.js +1 -1
  29. package/dist/index.d.cts +7 -7
  30. package/dist/index.d.ts +7 -7
  31. package/dist/index.js +7 -7
  32. package/dist/{plan-versions.service-BB36Q1bg.d.ts → plan-versions.service-B-YoE4SZ.d.ts} +1 -1
  33. package/dist/{plan-versions.service-CUR2Whyr.d.cts → plan-versions.service-_saKzb50.d.cts} +1 -1
  34. package/dist/platform/index.d.cts +9 -9
  35. package/dist/platform/index.d.ts +9 -9
  36. package/dist/platform/index.js +5 -5
  37. package/dist/registration/index.d.cts +1 -1
  38. package/dist/registration/index.d.ts +1 -1
  39. package/dist/registration/index.js +1 -1
  40. package/dist/{saas-platform.module-DChhDrR-.d.ts → saas-platform.module-DolE41YY.d.ts} +1 -1
  41. package/dist/{saas-platform.module-BfaYfL-G.d.cts → saas-platform.module-HCDNZTiE.d.cts} +1 -1
  42. package/dist/{tenant-billing.controller-DT5UrnDX.d.ts → tenant-billing.controller-7o4ObzGs.d.ts} +2 -2
  43. package/dist/{tenant-billing.controller-BIF-mstX.d.cts → tenant-billing.controller-DubP6-Md.d.cts} +2 -2
  44. package/dist/testing/index.d.cts +4 -4
  45. package/dist/testing/index.d.ts +4 -4
  46. package/dist/testing/index.js +6 -6
  47. package/package.json +3 -3
@@ -16,7 +16,7 @@ import {
16
16
  SubscriptionPlanResolver,
17
17
  TenantManifestService,
18
18
  buildTenantManifestController
19
- } from "../chunk-ZH5PYEMI.js";
19
+ } from "../chunk-UFS344JD.js";
20
20
  import {
21
21
  PromoCodeRateLimitGuard
22
22
  } from "../chunk-4O6R6ARQ.js";
@@ -31,7 +31,7 @@ import {
31
31
  MfaGuard,
32
32
  MfaService,
33
33
  SuperAdminGuard
34
- } from "../chunk-FYWLPYBK.js";
34
+ } from "../chunk-SN5UOC43.js";
35
35
  import {
36
36
  ComposedTenantAuthGuard,
37
37
  PendingPlanMaterializationService,
@@ -40,7 +40,7 @@ import {
40
40
  SubscriptionBundlesService,
41
41
  TenantAdminGuard,
42
42
  TenantBillingController
43
- } from "../chunk-NZLAYCEX.js";
43
+ } from "../chunk-UO64MK3Q.js";
44
44
  import {
45
45
  PromoCodesService
46
46
  } from "../chunk-VQQWF7MW.js";
@@ -57,7 +57,7 @@ import {
57
57
  PlansService,
58
58
  PromotionsService,
59
59
  PublicMarketingCatalogService
60
- } from "../chunk-GC5AKN44.js";
60
+ } from "../chunk-7X5MSAIL.js";
61
61
  import "../chunk-WPUVJRIN.js";
62
62
  import {
63
63
  AdminAuditService
@@ -78,7 +78,7 @@ import {
78
78
  } from "../chunk-5ZXBXYXU.js";
79
79
  import {
80
80
  EntitlementService
81
- } from "../chunk-AGOG5B77.js";
81
+ } from "../chunk-NNNXXUPT.js";
82
82
  import "../chunk-DQKCK7DX.js";
83
83
  import "../chunk-NYLON2VC.js";
84
84
  import "../chunk-EBJJNTW6.js";
@@ -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,7 @@ import {
36
36
  resolveModel,
37
37
  slugify,
38
38
  verifyOtpCode
39
- } from "../chunk-3DRZ5GCP.js";
39
+ } from "../chunk-MJ32VNZD.js";
40
40
  import "../chunk-EBJJNTW6.js";
41
41
  import "../chunk-SABTXESR.js";
42
42
  import "../chunk-SHUYVCID.js";
@@ -6,7 +6,7 @@ import { E as EntitlementResolutionConfig } from './plan-resolution-CFCoUkrE.js'
6
6
  import { a as SubscriptionContractModuleOptions } from './subscription-contract.module-edyhBr4n.js';
7
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
 
@@ -6,7 +6,7 @@ import { E as EntitlementResolutionConfig } from './plan-resolution-CFCoUkrE.cjs
6
6
  import { a as SubscriptionContractModuleOptions } from './subscription-contract.module-B2uNvUJL.cjs';
7
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
 
@@ -1,7 +1,7 @@
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';
4
+ import { c as EntitlementService, a as EffectiveLimitsSnapshot, t as toEffectiveLimitsSnapshot } from './aggregation-DP5zfKbU.js';
5
5
  import { g as PromoCodesService } from './service-D48clObR.js';
6
6
  import { A as AdminAuditService } from './admin-audit.service-9IqXMlZm.js';
7
7
 
@@ -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,7 +1,7 @@
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';
4
+ import { c as EntitlementService, a as EffectiveLimitsSnapshot, t as toEffectiveLimitsSnapshot } from './aggregation-mZ7WZROK.cjs';
5
5
  import { g as PromoCodesService } from './service-D48clObR.cjs';
6
6
  import { A as AdminAuditService } from './admin-audit.service-9IqXMlZm.cjs';
7
7
 
@@ -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 { 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-BfaYfL-G.cjs';
4
- export { P as PLAN_RESOLVER_PORT_TOKEN, o as StaticPlanResolver } from '../saas-platform.module-BfaYfL-G.cjs';
5
- export { E as EnforceQuotaInterceptor, S as StaticEntitlementService, a as StaticFeatureGuard } from '../enforce-quota.interceptor-Dtg5WdFj.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';
@@ -12,7 +12,7 @@ import '../module-CHMIyWlf.cjs';
12
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,8 +1,8 @@
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-DChhDrR-.js';
4
- export { P as PLAN_RESOLVER_PORT_TOKEN, o as StaticPlanResolver } from '../saas-platform.module-DChhDrR-.js';
5
- export { E as EnforceQuotaInterceptor, S as StaticEntitlementService, a as StaticFeatureGuard } from '../enforce-quota.interceptor-CUyfR4cQ.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';
@@ -12,7 +12,7 @@ import '../module-BE17XFLg.js';
12
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,13 +5,13 @@ import {
5
5
  StaticEntitlementService,
6
6
  StaticFeatureGuard,
7
7
  StaticPlanResolver
8
- } from "../chunk-ZH5PYEMI.js";
8
+ } from "../chunk-UFS344JD.js";
9
9
  import "../chunk-4O6R6ARQ.js";
10
- import "../chunk-FYWLPYBK.js";
11
- import "../chunk-NZLAYCEX.js";
10
+ import "../chunk-SN5UOC43.js";
11
+ import "../chunk-UO64MK3Q.js";
12
12
  import "../chunk-VQQWF7MW.js";
13
13
  import "../chunk-B7NRY2LV.js";
14
- import "../chunk-GC5AKN44.js";
14
+ import "../chunk-7X5MSAIL.js";
15
15
  import "../chunk-WPUVJRIN.js";
16
16
  import "../chunk-E56W4U2P.js";
17
17
  import "../chunk-XTVAFJ3P.js";
@@ -19,7 +19,7 @@ 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-AGOG5B77.js";
22
+ import "../chunk-NNNXXUPT.js";
23
23
  import "../chunk-DQKCK7DX.js";
24
24
  import "../chunk-NYLON2VC.js";
25
25
  import "../chunk-EBJJNTW6.js";
@@ -751,7 +751,7 @@ var FakePlanRepository = class {
751
751
  if (v.planId === existing.planKey) this.versions.delete(id);
752
752
  }
753
753
  }
754
- // ─── Lifecycle (SPEC_V2 §11.1 M6 Pack 2a) ───
754
+ // ─── Lifecycle ───
755
755
  // Binding Plan ↔ PlanVersion: PlanVersion.planId === Plan.planKey
756
756
  // (soft string reference). Lifecycle methods take planKey
757
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.21.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.21.0",
141
- "@saasicat/types": "^0.21.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",