@saasicat/nest 0.9.0 → 0.10.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 +17678 -0
- package/dist/admin/index.cjs +4 -1533
- package/dist/admin/index.d.cts +10 -173
- package/dist/admin/index.d.ts +10 -173
- package/dist/admin/index.js +3 -2
- package/dist/{admin-resources.module-BybEjZs-.d.cts → admin-resources.module-BZN_yBFj.d.cts} +1 -1
- package/dist/{admin-resources.module-CUCLlUAi.d.ts → admin-resources.module-Cms8MY6h.d.ts} +1 -1
- package/dist/admin-stats.module-15ac5KY3.d.ts +201 -0
- package/dist/admin-stats.module-v4SVvWzj.d.cts +201 -0
- package/dist/billing/index.cjs +4 -5130
- package/dist/billing/index.d.cts +8 -437
- package/dist/billing/index.d.ts +8 -437
- package/dist/billing/index.js +4 -4
- package/dist/catalog/index.cjs +4 -5624
- package/dist/catalog/index.d.cts +5 -328
- package/dist/catalog/index.d.ts +5 -328
- package/dist/catalog/index.js +4 -4
- package/dist/checkout-offer/index.cjs +4 -807
- package/dist/checkout-offer/index.d.cts +5 -84
- package/dist/checkout-offer/index.d.ts +5 -84
- package/dist/checkout-offer/index.js +3 -2
- package/dist/checkout-offer.module-Y0hDOVrq.d.ts +85 -0
- package/dist/checkout-offer.module-ZYF5IsDY.d.cts +85 -0
- package/dist/{chunk-PBQRPDO2.js → chunk-33TP26MR.js} +2 -2
- package/dist/{chunk-CK54YKVK.js → chunk-75JABGZK.js} +16 -16
- package/dist/{chunk-HRU3CP57.js → chunk-BOADBIGB.js} +1 -1
- package/dist/chunk-DBZGV3HC.js +0 -0
- package/dist/{chunk-ZLUGQE5D.js → chunk-E7AJ42AB.js} +8 -8
- package/dist/{chunk-HXAWPPFW.js → chunk-F3VV6EXG.js} +9 -9
- package/dist/{chunk-3M6VLT5N.js → chunk-FVT7KTUI.js} +2 -2
- package/dist/{chunk-GW2I3JZD.js → chunk-GBDUH6DO.js} +1 -1
- package/dist/{chunk-K3OPNVFR.js → chunk-HBFU5AN3.js} +5 -9
- package/dist/{chunk-OFBDEO45.js → chunk-IRWZC3GC.js} +1 -1
- package/dist/chunk-L4KTQ6CL.js +20 -0
- package/dist/{chunk-WGVTXSYW.js → chunk-LZHLGUQI.js} +1 -1
- package/dist/{chunk-ZZMAHX22.js → chunk-PUXLPUVH.js} +15 -12
- package/dist/{chunk-7K5PT2LX.js → chunk-TXDH4FUA.js} +1 -1
- package/dist/chunk-UF53DWWR.js +0 -0
- package/dist/{chunk-AJ3EPELS.js → chunk-V34AA7C7.js} +1 -1
- package/dist/chunk-WJ6BMDL3.js +313 -0
- package/dist/{chunk-M6CZQYPY.js → chunk-Z3FWN3HJ.js} +2 -2
- package/dist/discovery/index.cjs +4 -588
- package/dist/discovery/index.js +3 -3
- package/dist/{enforce-quota.interceptor-SqrQVF91.d.cts → enforce-quota.interceptor-BhkX5nq2.d.cts} +35 -2
- package/dist/{enforce-quota.interceptor-B3CL5MSw.d.ts → enforce-quota.interceptor-CcqZc0Yu.d.ts} +35 -2
- package/dist/entitlement/index.cjs +4 -781
- package/dist/entitlement/index.js +2 -2
- package/dist/index.cjs +4 -15671
- package/dist/index.d.cts +21 -56
- package/dist/index.d.ts +21 -56
- package/dist/index.js +39 -334
- package/dist/{module-DeH_Jkcq.d.cts → module-CSN8j8Tp.d.cts} +1 -1
- package/dist/{module-B5m080F0.d.ts → module-DgYJur6f.d.ts} +1 -1
- package/dist/plan-versions.service-BB36Q1bg.d.ts +329 -0
- package/dist/plan-versions.service-CUR2Whyr.d.cts +329 -0
- package/dist/platform/index.cjs +4 -12925
- package/dist/platform/index.d.cts +17 -9
- package/dist/platform/index.d.ts +17 -9
- package/dist/platform/index.js +98 -14
- package/dist/promo/index.cjs +4 -1520
- package/dist/promo/index.d.cts +6 -21
- package/dist/promo/index.d.ts +6 -21
- package/dist/promo/index.js +2 -2
- package/dist/rate-limit.guard-dntqAlfZ.d.cts +19 -0
- package/dist/rate-limit.guard-dntqAlfZ.d.ts +19 -0
- package/dist/registration/index.cjs +4 -1655
- package/dist/registration/index.js +1 -1
- package/dist/{service-DlhMnYjW.d.ts → service-DX8KbGXl.d.cts} +1 -1
- package/dist/{service-DlhMnYjW.d.cts → service-DX8KbGXl.d.ts} +1 -1
- package/dist/setup.service-BPwJ7My_.d.cts +45 -0
- package/dist/setup.service-D2mrdDDB.d.ts +45 -0
- package/dist/subscription-bundle-preview.service-BkJXHAeP.d.cts +438 -0
- package/dist/subscription-bundle-preview.service-DBbrE_cw.d.ts +438 -0
- package/dist/subscription-contract/index.cjs +4 -471
- package/dist/subscription-contract/index.d.cts +5 -13
- package/dist/subscription-contract/index.d.ts +5 -13
- package/dist/subscription-contract.module-CG9fPKAr.d.cts +14 -0
- package/dist/subscription-contract.module-CVebZzHR.d.ts +14 -0
- package/dist/testing/index.cjs +4 -13888
- package/dist/testing/index.d.cts +5 -5
- package/dist/testing/index.d.ts +5 -5
- package/dist/testing/index.js +10 -10
- package/package.json +4 -4
- package/dist/admin-manifest.service-BMeSLRW4.d.ts +0 -33
- package/dist/admin-manifest.service-StAQe6QO.d.cts +0 -33
- package/dist/chunk-N3WANKSA.js +0 -20
package/dist/testing/index.d.cts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
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 { S as SaasPlatformAdapters } from '../enforce-quota.interceptor-
|
|
4
|
-
export { E as EnforceQuotaInterceptor, P as PLAN_RESOLVER_PORT_TOKEN, a as StaticEntitlementService, b as StaticFeatureGuard, c as StaticPlanResolver } from '../enforce-quota.interceptor-
|
|
3
|
+
import { S as SaasPlatformAdapters } from '../enforce-quota.interceptor-BhkX5nq2.cjs';
|
|
4
|
+
export { E as EnforceQuotaInterceptor, P as PLAN_RESOLVER_PORT_TOKEN, a as StaticEntitlementService, b as StaticFeatureGuard, c as StaticPlanResolver } from '../enforce-quota.interceptor-BhkX5nq2.cjs';
|
|
5
5
|
import '../di-CcNeq9v-.cjs';
|
|
6
|
-
import '../admin-resources.module-
|
|
6
|
+
import '../admin-resources.module-BZN_yBFj.cjs';
|
|
7
7
|
import '../admin-audit.service-9IqXMlZm.cjs';
|
|
8
8
|
import '../plan-resolution-CFCoUkrE.cjs';
|
|
9
|
-
import '../module-
|
|
10
|
-
import '../service-
|
|
9
|
+
import '../module-CSN8j8Tp.cjs';
|
|
10
|
+
import '../service-DX8KbGXl.cjs';
|
|
11
11
|
import '../discovery.scanner-DLgEvuoy.cjs';
|
|
12
12
|
import '@nestjs/core';
|
|
13
13
|
import '../catalog.module-Dw2Hrbyu.cjs';
|
package/dist/testing/index.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
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 { S as SaasPlatformAdapters } from '../enforce-quota.interceptor-
|
|
4
|
-
export { E as EnforceQuotaInterceptor, P as PLAN_RESOLVER_PORT_TOKEN, a as StaticEntitlementService, b as StaticFeatureGuard, c as StaticPlanResolver } from '../enforce-quota.interceptor-
|
|
3
|
+
import { S as SaasPlatformAdapters } from '../enforce-quota.interceptor-CcqZc0Yu.js';
|
|
4
|
+
export { E as EnforceQuotaInterceptor, P as PLAN_RESOLVER_PORT_TOKEN, a as StaticEntitlementService, b as StaticFeatureGuard, c as StaticPlanResolver } from '../enforce-quota.interceptor-CcqZc0Yu.js';
|
|
5
5
|
import '../di-CcNeq9v-.js';
|
|
6
|
-
import '../admin-resources.module-
|
|
6
|
+
import '../admin-resources.module-Cms8MY6h.js';
|
|
7
7
|
import '../admin-audit.service-9IqXMlZm.js';
|
|
8
8
|
import '../plan-resolution-CFCoUkrE.js';
|
|
9
|
-
import '../module-
|
|
10
|
-
import '../service-
|
|
9
|
+
import '../module-DgYJur6f.js';
|
|
10
|
+
import '../service-DX8KbGXl.js';
|
|
11
11
|
import '../discovery.scanner-DLgEvuoy.js';
|
|
12
12
|
import '@nestjs/core';
|
|
13
13
|
import '../catalog.module-BKObceo0.js';
|
package/dist/testing/index.js
CHANGED
|
@@ -5,23 +5,23 @@ 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-PUXLPUVH.js";
|
|
9
|
+
import "../chunk-IRWZC3GC.js";
|
|
10
|
+
import "../chunk-FVT7KTUI.js";
|
|
11
|
+
import "../chunk-F3VV6EXG.js";
|
|
12
|
+
import "../chunk-E7AJ42AB.js";
|
|
13
13
|
import "../chunk-2PNX2QL2.js";
|
|
14
|
-
import "../chunk-
|
|
14
|
+
import "../chunk-33TP26MR.js";
|
|
15
15
|
import "../chunk-WPUVJRIN.js";
|
|
16
16
|
import "../chunk-E56W4U2P.js";
|
|
17
17
|
import "../chunk-MDIZUVIK.js";
|
|
18
|
-
import "../chunk-
|
|
19
|
-
import "../chunk-
|
|
20
|
-
import "../chunk-
|
|
18
|
+
import "../chunk-V34AA7C7.js";
|
|
19
|
+
import "../chunk-Z3FWN3HJ.js";
|
|
20
|
+
import "../chunk-GBDUH6DO.js";
|
|
21
21
|
import "../chunk-R2QOSVAA.js";
|
|
22
22
|
import "../chunk-NYLON2VC.js";
|
|
23
23
|
import "../chunk-WKVBNTYC.js";
|
|
24
|
-
import "../chunk-
|
|
24
|
+
import "../chunk-L4KTQ6CL.js";
|
|
25
25
|
import "../chunk-SABTXESR.js";
|
|
26
26
|
import "../chunk-L4SUWH5B.js";
|
|
27
27
|
import {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@saasicat/nest",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.10.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.1.0",
|
|
138
138
|
"otplib": "^13.4.1",
|
|
139
139
|
"qrcode": "^1.5.4",
|
|
140
|
-
"@saasicat/spec": "^0.
|
|
141
|
-
"@saasicat/types": "^0.
|
|
140
|
+
"@saasicat/spec": "^0.10.0",
|
|
141
|
+
"@saasicat/types": "^0.10.0"
|
|
142
142
|
},
|
|
143
143
|
"peerDependencies": {
|
|
144
144
|
"@nestjs/common": "^11.0.0",
|
|
@@ -180,7 +180,7 @@
|
|
|
180
180
|
"access": "public"
|
|
181
181
|
},
|
|
182
182
|
"scripts": {
|
|
183
|
-
"build": "tsup",
|
|
183
|
+
"build": "tsup && tsup --config tsup.cjs.config.ts && node scripts/build-cjs-stubs.mjs",
|
|
184
184
|
"pretest": "pnpm run build",
|
|
185
185
|
"test": "node --test tests/**/*.test.js"
|
|
186
186
|
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { ManifestContribution, AdminManifest } from '@saasicat/types';
|
|
2
|
-
import { A as AdminManifestConfig } from './admin-resources.module-CUCLlUAi.js';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* DI token for the platform core contribution. When `AdminManifestModule` is
|
|
6
|
-
* configured with `registerPlatformCore: true` (default), the module provides
|
|
7
|
-
* `PLATFORM_CORE_MANIFEST_CONTRIBUTION` under this token. The service
|
|
8
|
-
* registers the contribution in the constructor — before all app `register()`
|
|
9
|
-
* calls from `onModuleInit`.
|
|
10
|
-
*/
|
|
11
|
-
declare const PLATFORM_CORE_CONTRIBUTION_TOKEN: unique symbol;
|
|
12
|
-
declare class AdminManifestService {
|
|
13
|
-
private readonly config;
|
|
14
|
-
private readonly logger;
|
|
15
|
-
private readonly contributions;
|
|
16
|
-
private cached;
|
|
17
|
-
constructor(config: AdminManifestConfig, platformCore?: ManifestContribution | null);
|
|
18
|
-
register(contribution: ManifestContribution): void;
|
|
19
|
-
getManifest(): AdminManifest;
|
|
20
|
-
rebuild(): AdminManifest;
|
|
21
|
-
private build;
|
|
22
|
-
private mergeContributions;
|
|
23
|
-
/**
|
|
24
|
-
* Deterministic SHA-256 hash over the manifest. Uses the insertion
|
|
25
|
-
* order of the object keys — so that semantically meaningful reorders (e.g.
|
|
26
|
-
* the order of the sidebar items in `navigation.standardPages`) change the
|
|
27
|
-
* hash and invalidate the browser ETag cache. The manifest's own
|
|
28
|
-
* `manifestHash` field is hidden before serialization.
|
|
29
|
-
*/
|
|
30
|
-
private computeHash;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
export { AdminManifestService as A, PLATFORM_CORE_CONTRIBUTION_TOKEN as P };
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { ManifestContribution, AdminManifest } from '@saasicat/types';
|
|
2
|
-
import { A as AdminManifestConfig } from './admin-resources.module-BybEjZs-.cjs';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* DI token for the platform core contribution. When `AdminManifestModule` is
|
|
6
|
-
* configured with `registerPlatformCore: true` (default), the module provides
|
|
7
|
-
* `PLATFORM_CORE_MANIFEST_CONTRIBUTION` under this token. The service
|
|
8
|
-
* registers the contribution in the constructor — before all app `register()`
|
|
9
|
-
* calls from `onModuleInit`.
|
|
10
|
-
*/
|
|
11
|
-
declare const PLATFORM_CORE_CONTRIBUTION_TOKEN: unique symbol;
|
|
12
|
-
declare class AdminManifestService {
|
|
13
|
-
private readonly config;
|
|
14
|
-
private readonly logger;
|
|
15
|
-
private readonly contributions;
|
|
16
|
-
private cached;
|
|
17
|
-
constructor(config: AdminManifestConfig, platformCore?: ManifestContribution | null);
|
|
18
|
-
register(contribution: ManifestContribution): void;
|
|
19
|
-
getManifest(): AdminManifest;
|
|
20
|
-
rebuild(): AdminManifest;
|
|
21
|
-
private build;
|
|
22
|
-
private mergeContributions;
|
|
23
|
-
/**
|
|
24
|
-
* Deterministic SHA-256 hash over the manifest. Uses the insertion
|
|
25
|
-
* order of the object keys — so that semantically meaningful reorders (e.g.
|
|
26
|
-
* the order of the sidebar items in `navigation.standardPages`) change the
|
|
27
|
-
* hash and invalidate the browser ETag cache. The manifest's own
|
|
28
|
-
* `manifestHash` field is hidden before serialization.
|
|
29
|
-
*/
|
|
30
|
-
private computeHash;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
export { AdminManifestService as A, PLATFORM_CORE_CONTRIBUTION_TOKEN as P };
|
package/dist/chunk-N3WANKSA.js
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
// src/catalog/tokens.ts
|
|
2
|
-
var PLAN_REPOSITORY_TOKEN = /* @__PURE__ */ Symbol("PLAN_REPOSITORY");
|
|
3
|
-
var BUNDLE_REPOSITORY_TOKEN = /* @__PURE__ */ Symbol("BUNDLE_REPOSITORY");
|
|
4
|
-
var MARKETING_PROJECTION_REPOSITORY_TOKEN = /* @__PURE__ */ Symbol("MARKETING_PROJECTION_REPOSITORY");
|
|
5
|
-
var CATALOG_ENTRY_REPOSITORY_TOKEN = /* @__PURE__ */ Symbol("CATALOG_ENTRY_REPOSITORY");
|
|
6
|
-
var PROMOTION_REPOSITORY_TOKEN = /* @__PURE__ */ Symbol("PROMOTION_REPOSITORY");
|
|
7
|
-
var MARKETING_SETTINGS_REPOSITORY_TOKEN = /* @__PURE__ */ Symbol("MARKETING_SETTINGS_REPOSITORY");
|
|
8
|
-
var CATALOG_SERVICE_CONFIG_TOKEN = /* @__PURE__ */ Symbol("CATALOG_SERVICE_CONFIG");
|
|
9
|
-
var FEATURE_UI_REGISTRY_TOKEN = /* @__PURE__ */ Symbol("FEATURE_UI_REGISTRY");
|
|
10
|
-
|
|
11
|
-
export {
|
|
12
|
-
PLAN_REPOSITORY_TOKEN,
|
|
13
|
-
BUNDLE_REPOSITORY_TOKEN,
|
|
14
|
-
MARKETING_PROJECTION_REPOSITORY_TOKEN,
|
|
15
|
-
CATALOG_ENTRY_REPOSITORY_TOKEN,
|
|
16
|
-
PROMOTION_REPOSITORY_TOKEN,
|
|
17
|
-
MARKETING_SETTINGS_REPOSITORY_TOKEN,
|
|
18
|
-
CATALOG_SERVICE_CONFIG_TOKEN,
|
|
19
|
-
FEATURE_UI_REGISTRY_TOKEN
|
|
20
|
-
};
|