@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.
- package/dist/_entries.cjs +21 -15
- package/dist/admin/index.js +1 -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 +7 -7
- package/dist/billing/index.d.ts +7 -7
- package/dist/billing/index.js +2 -2
- 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/{chunk-GC5AKN44.js → chunk-7X5MSAIL.js} +7 -7
- package/dist/{chunk-55QGAZRQ.js → chunk-7ZPFQXHM.js} +1 -1
- package/dist/{chunk-3DRZ5GCP.js → chunk-MJ32VNZD.js} +1 -1
- package/dist/{chunk-AGOG5B77.js → chunk-NNNXXUPT.js} +1 -1
- package/dist/{chunk-FYWLPYBK.js → chunk-SN5UOC43.js} +3 -3
- package/dist/{chunk-ZH5PYEMI.js → chunk-UFS344JD.js} +11 -5
- package/dist/{chunk-NZLAYCEX.js → chunk-UO64MK3Q.js} +3 -3
- package/dist/{define-saasicat-Cf9DpEsY.d.cts → define-saasicat-ByPjtKPy.d.cts} +1 -1
- package/dist/{define-saasicat-B20Ms8UC.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-Dtg5WdFj.d.cts → enforce-quota.interceptor-BrsU1UYJ.d.cts} +1 -1
- package/dist/{enforce-quota.interceptor-CUyfR4cQ.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 +1 -1
- package/dist/index.d.cts +7 -7
- package/dist/index.d.ts +7 -7
- package/dist/index.js +7 -7
- 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 +9 -9
- package/dist/platform/index.d.ts +9 -9
- package/dist/platform/index.js +5 -5
- package/dist/registration/index.d.cts +1 -1
- package/dist/registration/index.d.ts +1 -1
- package/dist/registration/index.js +1 -1
- package/dist/{saas-platform.module-DChhDrR-.d.ts → saas-platform.module-DolE41YY.d.ts} +1 -1
- package/dist/{saas-platform.module-BfaYfL-G.d.cts → saas-platform.module-HCDNZTiE.d.cts} +1 -1
- package/dist/{tenant-billing.controller-DT5UrnDX.d.ts → tenant-billing.controller-7o4ObzGs.d.ts} +2 -2
- package/dist/{tenant-billing.controller-BIF-mstX.d.cts → tenant-billing.controller-DubP6-Md.d.cts} +2 -2
- package/dist/testing/index.d.cts +4 -4
- package/dist/testing/index.d.ts +4 -4
- package/dist/testing/index.js +6 -6
- package/package.json +3 -3
package/dist/platform/index.js
CHANGED
|
@@ -16,7 +16,7 @@ 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
22
|
} from "../chunk-4O6R6ARQ.js";
|
|
@@ -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,7 +40,7 @@ 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
46
|
} from "../chunk-VQQWF7MW.js";
|
|
@@ -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
|
|
@@ -78,7 +78,7 @@ 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
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
|
-
*
|
|
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
|
|
@@ -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-
|
|
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-
|
|
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
|
|
package/dist/{tenant-billing.controller-DT5UrnDX.d.ts → tenant-billing.controller-7o4ObzGs.d.ts}
RENAMED
|
@@ -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-
|
|
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
|
|
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-BIF-mstX.d.cts → tenant-billing.controller-DubP6-Md.d.cts}
RENAMED
|
@@ -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-
|
|
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
|
|
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,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-
|
|
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';
|
|
@@ -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-
|
|
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,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-
|
|
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';
|
|
@@ -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-
|
|
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,13 +5,13 @@ import {
|
|
|
5
5
|
StaticEntitlementService,
|
|
6
6
|
StaticFeatureGuard,
|
|
7
7
|
StaticPlanResolver
|
|
8
|
-
} from "../chunk-
|
|
8
|
+
} from "../chunk-UFS344JD.js";
|
|
9
9
|
import "../chunk-4O6R6ARQ.js";
|
|
10
|
-
import "../chunk-
|
|
11
|
-
import "../chunk-
|
|
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-
|
|
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-
|
|
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
|
|
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.
|
|
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",
|