@saasicat/nest 0.27.0 → 1.0.0-rc.1
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/README.md +1 -1
- package/dist/.build-stamp +1 -0
- package/dist/_entries.cjs +460 -460
- package/dist/admin/index.d.cts +6 -6
- package/dist/admin/index.d.ts +6 -6
- package/dist/admin/index.js +3 -3
- package/dist/{admin-audit.service-9IqXMlZm.d.cts → admin-audit.service-4P3Djdxk.d.cts} +1 -1
- package/dist/{admin-audit.service-9IqXMlZm.d.ts → admin-audit.service-4P3Djdxk.d.ts} +1 -1
- package/dist/{admin-resources.module-DGgGSdzN.d.cts → admin-resources.module-CpvzcfCc.d.cts} +2 -2
- package/dist/{admin-resources.module-BY5r_1MG.d.ts → admin-resources.module-DF5_Q7RD.d.ts} +2 -2
- package/dist/{admin-stats.service-HUZIU448.d.cts → admin-stats.service-DfKupywR.d.cts} +3 -3
- package/dist/{admin-stats.service-Db2exT_d.d.ts → admin-stats.service-TYiSUwIR.d.ts} +3 -3
- package/dist/{aggregation-DP5zfKbU.d.ts → aggregation-B3CD0v_d.d.cts} +2 -2
- package/dist/{aggregation-mZ7WZROK.d.cts → aggregation-BFzW07DE.d.ts} +2 -2
- package/dist/billing/index.d.cts +13 -13
- package/dist/billing/index.d.ts +13 -13
- package/dist/billing/index.js +15 -15
- package/dist/catalog/index.d.cts +17 -5
- package/dist/catalog/index.d.ts +17 -5
- package/dist/catalog/index.js +12 -10
- package/dist/{catalog.module-D-_pQDNA.d.cts → catalog.module-BDDO6iwq.d.cts} +1 -1
- package/dist/{catalog.module-CQr1FpkI.d.ts → catalog.module-BTnMsE6u.d.ts} +1 -1
- package/dist/checkout-offer/index.d.cts +3 -3
- package/dist/checkout-offer/index.d.ts +3 -3
- package/dist/checkout-offer/index.js +2 -2
- package/dist/{checkout-offer.module-Ca3_TieR.d.ts → checkout-offer.module-CMtiQJTT.d.ts} +1 -1
- package/dist/{checkout-offer.module-DmlpPevf.d.cts → checkout-offer.module-CVpWrzbe.d.cts} +1 -1
- package/dist/{checkout-offer.service-BX51dljL.d.ts → checkout-offer.service-BLOv2HOo.d.cts} +1 -1
- package/dist/{checkout-offer.service-BX51dljL.d.cts → checkout-offer.service-BLOv2HOo.d.ts} +1 -1
- package/dist/{chunk-EBJJNTW6.js → chunk-57V6ZTI6.js} +1 -1
- package/dist/{chunk-37HEKVDH.js → chunk-7TVZI3KY.js} +11 -11
- package/dist/chunk-AOQJEYOL.js +20 -0
- package/dist/{chunk-3E6ONOMG.js → chunk-AU3OOREM.js} +2 -2
- package/dist/{chunk-H4DOTO7S.js → chunk-BGS4CWV2.js} +5 -5
- package/dist/{chunk-YYUXKLXK.js → chunk-I7GTA3RX.js} +2 -2
- package/dist/{chunk-7ZPFQXHM.js → chunk-IQTQLQD3.js} +5 -5
- package/dist/{chunk-CJFAOD7K.js → chunk-KFT5AIIH.js} +2 -2
- package/dist/{chunk-XTVAFJ3P.js → chunk-L23MLBEC.js} +7 -7
- package/dist/{chunk-SN5UOC43.js → chunk-LTT736P3.js} +15 -15
- package/dist/{chunk-WPUVJRIN.js → chunk-N3L3AICU.js} +11 -11
- package/dist/{chunk-MJ32VNZD.js → chunk-NARZ2WWK.js} +22 -22
- package/dist/{chunk-E56W4U2P.js → chunk-O2J2HDXA.js} +4 -4
- package/dist/{chunk-WKVBNTYC.js → chunk-OUDSQ3PU.js} +6 -6
- package/dist/{chunk-F4B2NJUZ.js → chunk-PK6C5R7B.js} +15 -15
- package/dist/{chunk-L4SUWH5B.js → chunk-QUZU2M33.js} +2 -2
- package/dist/{chunk-NYLON2VC.js → chunk-VBRYPU7V.js} +2 -2
- package/dist/{chunk-2JTISFUZ.js → chunk-VG2NU3CG.js} +11 -11
- package/dist/{chunk-7X5MSAIL.js → chunk-VNADKD5U.js} +23 -23
- package/dist/{chunk-UHD6FJBQ.js → chunk-W6YEIY4R.js} +46 -46
- package/dist/{chunk-5ZXBXYXU.js → chunk-WXYJHZCN.js} +3 -3
- package/dist/{chunk-6WL6VQ7Z.js → chunk-XBYAFEOR.js} +2 -2
- package/dist/{chunk-EHKMPP6J.js → chunk-XMA4XYC5.js} +40 -40
- package/dist/{chunk-B6IWLV7R.js → chunk-YZPVQUIW.js} +8 -8
- package/dist/{define-saasicat-CFxut1VR.d.cts → define-saasicat-B5RmWiD2.d.cts} +8 -8
- package/dist/{define-saasicat-3ois8t8s.d.ts → define-saasicat-DN-dRObd.d.ts} +8 -8
- package/dist/discovery/index.d.cts +4 -4
- package/dist/discovery/index.d.ts +4 -4
- package/dist/discovery/index.js +7 -7
- package/dist/{discovery.scanner-DLgEvuoy.d.cts → discovery.scanner-9cMqF95o.d.cts} +1 -1
- package/dist/{discovery.scanner-DLgEvuoy.d.ts → discovery.scanner-9cMqF95o.d.ts} +1 -1
- package/dist/{enforce-quota.interceptor-N80KC34N.d.cts → enforce-quota.interceptor-CnieZsdB.d.cts} +3 -3
- package/dist/{enforce-quota.interceptor-CYDNvAQz.d.ts → enforce-quota.interceptor-Cseo35Ki.d.ts} +3 -3
- package/dist/entitlement/index.d.cts +4 -4
- package/dist/entitlement/index.d.ts +4 -4
- package/dist/entitlement/index.js +8 -8
- package/dist/index.d.cts +23 -23
- package/dist/index.d.ts +23 -23
- package/dist/index.js +137 -136
- package/dist/{module-options-klrPnWGF.d.cts → module-options-CjeSSaBf.d.cts} +35 -35
- package/dist/{module-options-ByJL7FZm.d.ts → module-options-DtcJqwjv.d.ts} +35 -35
- package/dist/{plan-resolution-CFCoUkrE.d.cts → plan-resolution-Cgo_TR1H.d.cts} +1 -1
- package/dist/{plan-resolution-CFCoUkrE.d.ts → plan-resolution-Cgo_TR1H.d.ts} +1 -1
- package/dist/{plan-versions.service-B-YoE4SZ.d.ts → plan-versions.service-DChhbK6h.d.ts} +2 -2
- package/dist/{plan-versions.service-_saKzb50.d.cts → plan-versions.service-TPEtbN0r.d.cts} +2 -2
- package/dist/platform/index.d.cts +29 -29
- package/dist/platform/index.d.ts +29 -29
- package/dist/platform/index.js +32 -33
- package/dist/promo/index.d.cts +4 -4
- package/dist/promo/index.d.ts +4 -4
- package/dist/promo/index.js +4 -4
- package/dist/{module-BE17XFLg.d.ts → promo.module-BUKcUWDf.d.ts} +2 -2
- package/dist/{module-CHMIyWlf.d.cts → promo.module-BY2YHHLn.d.cts} +2 -2
- package/dist/{service-D48clObR.d.cts → promo.service-2qFgqF-a.d.cts} +1 -1
- package/dist/{service-D48clObR.d.ts → promo.service-2qFgqF-a.d.ts} +1 -1
- package/dist/registration/index.d.cts +3 -3
- package/dist/registration/index.d.ts +3 -3
- package/dist/registration/index.js +2 -2
- package/dist/subscription-contract/index.d.cts +3 -3
- package/dist/subscription-contract/index.d.ts +3 -3
- package/dist/subscription-contract/index.js +3 -3
- package/dist/{subscription-contract.module-B2uNvUJL.d.cts → subscription-contract.module-CEK8HS5-.d.cts} +1 -1
- package/dist/{subscription-contract.module-edyhBr4n.d.ts → subscription-contract.module-fDFdQ0jm.d.ts} +1 -1
- package/dist/{subscription-contract.service--cm47ZJJ.d.cts → subscription-contract.service-hD87MKyg.d.cts} +1 -1
- package/dist/{subscription-contract.service--cm47ZJJ.d.ts → subscription-contract.service-hD87MKyg.d.ts} +1 -1
- package/dist/{tenant-billing.controller-CAMMdfn1.d.cts → tenant-billing.controller-B6UTheK_.d.cts} +5 -5
- package/dist/{tenant-billing.controller-CYYK0CpT.d.ts → tenant-billing.controller-DpgHCT9r.d.ts} +5 -5
- package/dist/{tenant-billing.module-BxJS6fX4.d.cts → tenant-billing.module-BznC3XtW.d.cts} +1 -1
- package/dist/{tenant-billing.module-B0stLoJn.d.ts → tenant-billing.module-wUbsQSFG.d.ts} +1 -1
- package/dist/testing/index.d.cts +19 -19
- package/dist/testing/index.d.ts +19 -19
- package/dist/testing/index.js +33 -33
- package/package.json +5 -5
- package/dist/chunk-L4KTQ6CL.js +0 -20
|
@@ -4,35 +4,35 @@ import {
|
|
|
4
4
|
USER_ID_RESOLVER_TOKEN,
|
|
5
5
|
classifyBundleVersionDiff,
|
|
6
6
|
classifyPlanDiff
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import {
|
|
9
|
-
AdminAuditService
|
|
10
|
-
} from "./chunk-E56W4U2P.js";
|
|
11
|
-
import {
|
|
12
|
-
SaaSiCatPublicRoute
|
|
13
|
-
} from "./chunk-YSC46BGM.js";
|
|
7
|
+
} from "./chunk-N3L3AICU.js";
|
|
14
8
|
import {
|
|
15
9
|
DiscoveryScanner
|
|
16
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-WXYJHZCN.js";
|
|
17
11
|
import {
|
|
18
12
|
SUBSCRIPTION_REPOSITORY_TOKEN
|
|
19
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-OUDSQ3PU.js";
|
|
20
14
|
import {
|
|
21
15
|
BUNDLE_REPOSITORY_TOKEN,
|
|
22
16
|
CATALOG_ENTRY_REPOSITORY_TOKEN,
|
|
17
|
+
CATALOG_FEATURE_UI_REGISTRY_TOKEN,
|
|
23
18
|
CATALOG_SERVICE_CONFIG_TOKEN,
|
|
24
|
-
FEATURE_UI_REGISTRY_TOKEN,
|
|
25
19
|
MARKETING_PROJECTION_REPOSITORY_TOKEN,
|
|
26
20
|
MARKETING_SETTINGS_REPOSITORY_TOKEN,
|
|
27
21
|
PLAN_REPOSITORY_TOKEN,
|
|
28
22
|
PROMOTION_REPOSITORY_TOKEN
|
|
29
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-AOQJEYOL.js";
|
|
24
|
+
import {
|
|
25
|
+
DISCOVERY_SNAPSHOT_TOKEN
|
|
26
|
+
} from "./chunk-QUZU2M33.js";
|
|
27
|
+
import {
|
|
28
|
+
AdminAuditService
|
|
29
|
+
} from "./chunk-O2J2HDXA.js";
|
|
30
|
+
import {
|
|
31
|
+
SaaSiCatPublicRoute
|
|
32
|
+
} from "./chunk-YSC46BGM.js";
|
|
30
33
|
import {
|
|
31
34
|
asProvider
|
|
32
35
|
} from "./chunk-SABTXESR.js";
|
|
33
|
-
import {
|
|
34
|
-
DISCOVERY_SNAPSHOT_TOKEN
|
|
35
|
-
} from "./chunk-L4SUWH5B.js";
|
|
36
36
|
import {
|
|
37
37
|
__name
|
|
38
38
|
} from "./chunk-SHUYVCID.js";
|
|
@@ -192,7 +192,7 @@ __name(validatePlanDraft, "validatePlanDraft");
|
|
|
192
192
|
|
|
193
193
|
// src/catalog/bundles.service.ts
|
|
194
194
|
import { Inject, Injectable, Logger, NotFoundException, Optional, UnprocessableEntityException } from "@nestjs/common";
|
|
195
|
-
import { CATALOG_ERROR_CODES, isVersionEditable } from "@saasicat/
|
|
195
|
+
import { CATALOG_ERROR_CODES, isVersionEditable } from "@saasicat/core";
|
|
196
196
|
|
|
197
197
|
// src/core/discovery-snapshot-source.ts
|
|
198
198
|
function resolveDiscoverySnapshot(injected, scanner) {
|
|
@@ -789,7 +789,7 @@ BundlesService = _ts_decorate([
|
|
|
789
789
|
|
|
790
790
|
// src/catalog/marketing-projections.service.ts
|
|
791
791
|
import { ConflictException, Inject as Inject2, Injectable as Injectable2, NotFoundException as NotFoundException2 } from "@nestjs/common";
|
|
792
|
-
import { CATALOG_ERROR_CODES as CATALOG_ERROR_CODES2 } from "@saasicat/
|
|
792
|
+
import { CATALOG_ERROR_CODES as CATALOG_ERROR_CODES2 } from "@saasicat/core";
|
|
793
793
|
function _ts_decorate2(decorators, target, key, desc) {
|
|
794
794
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
795
795
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -910,7 +910,7 @@ __name(keyListSegment, "keyListSegment");
|
|
|
910
910
|
|
|
911
911
|
// src/catalog/catalog-entries.service.ts
|
|
912
912
|
import { Inject as Inject3, Injectable as Injectable3, Logger as Logger2, NotFoundException as NotFoundException3, Optional as Optional2, UnprocessableEntityException as UnprocessableEntityException2 } from "@nestjs/common";
|
|
913
|
-
import { CATALOG_ERROR_CODES as CATALOG_ERROR_CODES3 } from "@saasicat/
|
|
913
|
+
import { CATALOG_ERROR_CODES as CATALOG_ERROR_CODES3 } from "@saasicat/core";
|
|
914
914
|
function _ts_decorate3(decorators, target, key, desc) {
|
|
915
915
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
916
916
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -1318,7 +1318,7 @@ CatalogEntriesService = _ts_decorate3([
|
|
|
1318
1318
|
_ts_param3(3, Optional2()),
|
|
1319
1319
|
_ts_param3(3, Inject3(DiscoveryScanner)),
|
|
1320
1320
|
_ts_param3(4, Optional2()),
|
|
1321
|
-
_ts_param3(4, Inject3(
|
|
1321
|
+
_ts_param3(4, Inject3(CATALOG_FEATURE_UI_REGISTRY_TOKEN)),
|
|
1322
1322
|
_ts_metadata3("design:type", Function),
|
|
1323
1323
|
_ts_metadata3("design:paramtypes", [
|
|
1324
1324
|
typeof CatalogEntryRepository === "undefined" ? Object : CatalogEntryRepository,
|
|
@@ -1791,7 +1791,7 @@ __name(buildCatalogEntriesController, "buildCatalogEntriesController");
|
|
|
1791
1791
|
|
|
1792
1792
|
// src/catalog/promotions.service.ts
|
|
1793
1793
|
import { Inject as Inject6, Injectable as Injectable5, NotFoundException as NotFoundException4 } from "@nestjs/common";
|
|
1794
|
-
import { CATALOG_ERROR_CODES as CATALOG_ERROR_CODES4 } from "@saasicat/
|
|
1794
|
+
import { CATALOG_ERROR_CODES as CATALOG_ERROR_CODES4 } from "@saasicat/core";
|
|
1795
1795
|
function _ts_decorate7(decorators, target, key, desc) {
|
|
1796
1796
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1797
1797
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -2410,7 +2410,7 @@ __name(buildMarketingSettingsController, "buildMarketingSettingsController");
|
|
|
2410
2410
|
|
|
2411
2411
|
// src/catalog/public-marketing-catalog.service.ts
|
|
2412
2412
|
import { Inject as Inject10, Injectable as Injectable7, Optional as Optional5 } from "@nestjs/common";
|
|
2413
|
-
import { applyPromo, buildFeatureRequiresIndex, collectUnsatisfiedRequires, pickActivePromo } from "@saasicat/
|
|
2413
|
+
import { applyPromo, buildFeatureRequiresIndex, collectUnsatisfiedRequires, pickActivePromo } from "@saasicat/core";
|
|
2414
2414
|
function _ts_decorate13(decorators, target, key, desc) {
|
|
2415
2415
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
2416
2416
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -2823,7 +2823,7 @@ __name(parseAsOf, "parseAsOf");
|
|
|
2823
2823
|
|
|
2824
2824
|
// src/catalog/plans.service.ts
|
|
2825
2825
|
import { Inject as Inject12, Injectable as Injectable8, NotFoundException as NotFoundException5, Optional as Optional6, UnprocessableEntityException as UnprocessableEntityException3 } from "@nestjs/common";
|
|
2826
|
-
import { CATALOG_ERROR_CODES as CATALOG_ERROR_CODES5 } from "@saasicat/
|
|
2826
|
+
import { CATALOG_ERROR_CODES as CATALOG_ERROR_CODES5 } from "@saasicat/core";
|
|
2827
2827
|
function _ts_decorate15(decorators, target, key, desc) {
|
|
2828
2828
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
2829
2829
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -3009,7 +3009,7 @@ PlansService = _ts_decorate15([
|
|
|
3009
3009
|
|
|
3010
3010
|
// src/catalog/plan-versions.service.ts
|
|
3011
3011
|
import { Inject as Inject13, Injectable as Injectable9, Logger as Logger3, NotFoundException as NotFoundException6, Optional as Optional7, UnprocessableEntityException as UnprocessableEntityException4 } from "@nestjs/common";
|
|
3012
|
-
import { CATALOG_ERROR_CODES as CATALOG_ERROR_CODES6, isVersionEditable as isVersionEditable2 } from "@saasicat/
|
|
3012
|
+
import { CATALOG_ERROR_CODES as CATALOG_ERROR_CODES6, isVersionEditable as isVersionEditable2 } from "@saasicat/core";
|
|
3013
3013
|
function _ts_decorate16(decorators, target, key, desc) {
|
|
3014
3014
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3015
3015
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -5127,7 +5127,7 @@ var CatalogModule = class _CatalogModule {
|
|
|
5127
5127
|
}
|
|
5128
5128
|
},
|
|
5129
5129
|
{
|
|
5130
|
-
provide:
|
|
5130
|
+
provide: CATALOG_FEATURE_UI_REGISTRY_TOKEN,
|
|
5131
5131
|
useValue: options.featureUiRegistry ?? null
|
|
5132
5132
|
},
|
|
5133
5133
|
BundlesService,
|
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
PromoCodesService
|
|
3
|
-
} from "./chunk-37HEKVDH.js";
|
|
4
1
|
import {
|
|
5
2
|
SubscriptionContractService
|
|
6
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-KFT5AIIH.js";
|
|
7
4
|
import {
|
|
8
5
|
AUDIT_CONTEXT_RESOLVER_TOKEN,
|
|
9
6
|
PENDING_PLAN_QUERY_PORT_TOKEN,
|
|
@@ -15,39 +12,42 @@ import {
|
|
|
15
12
|
USAGE_SNAPSHOT_PORT_TOKEN,
|
|
16
13
|
USER_EMAIL_RESOLVER_TOKEN,
|
|
17
14
|
USER_ID_RESOLVER_TOKEN
|
|
18
|
-
} from "./chunk-
|
|
19
|
-
import {
|
|
20
|
-
AdminAuditService
|
|
21
|
-
} from "./chunk-E56W4U2P.js";
|
|
22
|
-
import {
|
|
23
|
-
SaaSiCatPublicRoute
|
|
24
|
-
} from "./chunk-YSC46BGM.js";
|
|
15
|
+
} from "./chunk-N3L3AICU.js";
|
|
25
16
|
import {
|
|
26
17
|
EntitlementService,
|
|
27
18
|
SUBSCRIPTION_BUNDLE_CONFIG_TOKEN,
|
|
28
19
|
SUBSCRIPTION_BUNDLE_REPOSITORY_TOKEN,
|
|
29
20
|
toEffectiveLimitsSnapshot
|
|
30
|
-
} from "./chunk-
|
|
31
|
-
import {
|
|
32
|
-
PLAN_CATALOG_TOKEN,
|
|
33
|
-
findPlan,
|
|
34
|
-
getMarketedPlans,
|
|
35
|
-
getPlanPriceNet
|
|
36
|
-
} from "./chunk-DQKCK7DX.js";
|
|
21
|
+
} from "./chunk-PK6C5R7B.js";
|
|
37
22
|
import {
|
|
38
23
|
SUBSCRIPTION_CONTRACT_REPOSITORY_TOKEN
|
|
39
|
-
} from "./chunk-
|
|
40
|
-
import {
|
|
41
|
-
codedError
|
|
42
|
-
} from "./chunk-EBJJNTW6.js";
|
|
24
|
+
} from "./chunk-VBRYPU7V.js";
|
|
43
25
|
import {
|
|
44
26
|
ENTITLEMENT_SERVICE_TOKEN
|
|
45
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-OUDSQ3PU.js";
|
|
46
28
|
import {
|
|
47
29
|
BUNDLE_REPOSITORY_TOKEN,
|
|
48
30
|
CATALOG_ENTRY_REPOSITORY_TOKEN,
|
|
49
31
|
PLAN_REPOSITORY_TOKEN
|
|
50
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-AOQJEYOL.js";
|
|
33
|
+
import {
|
|
34
|
+
PromoCodesService
|
|
35
|
+
} from "./chunk-7TVZI3KY.js";
|
|
36
|
+
import {
|
|
37
|
+
AdminAuditService
|
|
38
|
+
} from "./chunk-O2J2HDXA.js";
|
|
39
|
+
import {
|
|
40
|
+
SaaSiCatPublicRoute
|
|
41
|
+
} from "./chunk-YSC46BGM.js";
|
|
42
|
+
import {
|
|
43
|
+
PLAN_CATALOG_TOKEN,
|
|
44
|
+
findPlan,
|
|
45
|
+
getMarketedPlans,
|
|
46
|
+
getPlanPriceNet
|
|
47
|
+
} from "./chunk-DQKCK7DX.js";
|
|
48
|
+
import {
|
|
49
|
+
codedError
|
|
50
|
+
} from "./chunk-57V6ZTI6.js";
|
|
51
51
|
import {
|
|
52
52
|
asProvider
|
|
53
53
|
} from "./chunk-SABTXESR.js";
|
|
@@ -107,17 +107,17 @@ var REQUIRE_FEATURE_KEY = "require-feature";
|
|
|
107
107
|
var RequireFeature = /* @__PURE__ */ __name((...features) => SetMetadata(REQUIRE_FEATURE_KEY, features), "RequireFeature");
|
|
108
108
|
|
|
109
109
|
// src/billing/public-catalog.tokens.ts
|
|
110
|
-
var PUBLIC_CATALOG_PROJECT_KEY_TOKEN = /* @__PURE__ */ Symbol.for("
|
|
111
|
-
var PUBLIC_CATALOG_BUNDLE_REPOSITORY_TOKEN = /* @__PURE__ */ Symbol.for("
|
|
112
|
-
var PUBLIC_CATALOG_MARKETING_REPOSITORY_TOKEN = /* @__PURE__ */ Symbol.for("
|
|
113
|
-
var PUBLIC_CATALOG_CATALOG_ENTRY_REPOSITORY_TOKEN = /* @__PURE__ */ Symbol.for("
|
|
110
|
+
var PUBLIC_CATALOG_PROJECT_KEY_TOKEN = /* @__PURE__ */ Symbol.for("saasicat/nest/PublicCatalogProjectKey");
|
|
111
|
+
var PUBLIC_CATALOG_BUNDLE_REPOSITORY_TOKEN = /* @__PURE__ */ Symbol.for("saasicat/nest/PublicCatalogBundleRepository");
|
|
112
|
+
var PUBLIC_CATALOG_MARKETING_REPOSITORY_TOKEN = /* @__PURE__ */ Symbol.for("saasicat/nest/PublicCatalogMarketingRepository");
|
|
113
|
+
var PUBLIC_CATALOG_CATALOG_ENTRY_REPOSITORY_TOKEN = /* @__PURE__ */ Symbol.for("saasicat/nest/PublicCatalogCatalogEntryRepository");
|
|
114
114
|
|
|
115
115
|
// src/billing/feature-ui-registry.tokens.ts
|
|
116
|
-
var
|
|
116
|
+
var BILLING_FEATURE_UI_REGISTRY_TOKEN = /* @__PURE__ */ Symbol.for("saasicat/nest/BillingFeatureUiRegistry");
|
|
117
117
|
|
|
118
118
|
// src/billing/public-catalog.controller.ts
|
|
119
119
|
import { Controller, Get, Inject, Optional, Query } from "@nestjs/common";
|
|
120
|
-
import { buildFeatureRequiresIndex, collectUnsatisfiedRequires } from "@saasicat/
|
|
120
|
+
import { buildFeatureRequiresIndex, collectUnsatisfiedRequires } from "@saasicat/core";
|
|
121
121
|
function _ts_decorate(decorators, target, key, desc) {
|
|
122
122
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
123
123
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -314,7 +314,7 @@ PublicCatalogController = _ts_decorate([
|
|
|
314
314
|
Controller("billing"),
|
|
315
315
|
SaaSiCatPublicRoute(),
|
|
316
316
|
_ts_param(0, Inject(PLAN_CATALOG_TOKEN)),
|
|
317
|
-
_ts_param(1, Inject(
|
|
317
|
+
_ts_param(1, Inject(BILLING_FEATURE_UI_REGISTRY_TOKEN)),
|
|
318
318
|
_ts_param(2, Optional()),
|
|
319
319
|
_ts_param(2, Inject(PUBLIC_CATALOG_PROJECT_KEY_TOKEN)),
|
|
320
320
|
_ts_param(3, Optional()),
|
|
@@ -351,7 +351,7 @@ var PublicCatalogModule = class _PublicCatalogModule {
|
|
|
351
351
|
const providers = [
|
|
352
352
|
...options.extraProviders ?? [],
|
|
353
353
|
{
|
|
354
|
-
provide:
|
|
354
|
+
provide: BILLING_FEATURE_UI_REGISTRY_TOKEN,
|
|
355
355
|
useValue: options.featureUiRegistry
|
|
356
356
|
}
|
|
357
357
|
];
|
|
@@ -378,7 +378,7 @@ var PublicCatalogModule = class _PublicCatalogModule {
|
|
|
378
378
|
],
|
|
379
379
|
providers,
|
|
380
380
|
exports: [
|
|
381
|
-
|
|
381
|
+
BILLING_FEATURE_UI_REGISTRY_TOKEN
|
|
382
382
|
]
|
|
383
383
|
};
|
|
384
384
|
}
|
|
@@ -389,7 +389,7 @@ PublicCatalogModule = _ts_decorate2([
|
|
|
389
389
|
|
|
390
390
|
// src/billing/composed-tenant-auth.guard.ts
|
|
391
391
|
import { ForbiddenException, Inject as Inject2, Injectable, Optional as Optional2 } from "@nestjs/common";
|
|
392
|
-
import { AUTH_ERROR_CODES } from "@saasicat/
|
|
392
|
+
import { AUTH_ERROR_CODES } from "@saasicat/core";
|
|
393
393
|
function _ts_decorate3(decorators, target, key, desc) {
|
|
394
394
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
395
395
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -441,7 +441,7 @@ ComposedTenantAuthGuard = _ts_decorate3([
|
|
|
441
441
|
|
|
442
442
|
// src/billing/tenant-admin.guard.ts
|
|
443
443
|
import { ForbiddenException as ForbiddenException2, Injectable as Injectable2 } from "@nestjs/common";
|
|
444
|
-
import { AUTH_ERROR_CODES as AUTH_ERROR_CODES2 } from "@saasicat/
|
|
444
|
+
import { AUTH_ERROR_CODES as AUTH_ERROR_CODES2 } from "@saasicat/core";
|
|
445
445
|
function _ts_decorate4(decorators, target, key, desc) {
|
|
446
446
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
447
447
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -480,8 +480,8 @@ TenantAdminGuard = _ts_decorate4([
|
|
|
480
480
|
], TenantAdminGuard);
|
|
481
481
|
|
|
482
482
|
// src/billing/self-service-policy.ts
|
|
483
|
-
var SELF_SERVICE_BLOCKED_PLANS_TOKEN = /* @__PURE__ */ Symbol.for("
|
|
484
|
-
var SELF_SERVICE_BLOCKED_BUNDLES_TOKEN = /* @__PURE__ */ Symbol.for("
|
|
483
|
+
var SELF_SERVICE_BLOCKED_PLANS_TOKEN = /* @__PURE__ */ Symbol.for("saasicat/nest/SelfServiceBlockedPlans");
|
|
484
|
+
var SELF_SERVICE_BLOCKED_BUNDLES_TOKEN = /* @__PURE__ */ Symbol.for("saasicat/nest/SelfServiceBlockedBundles");
|
|
485
485
|
|
|
486
486
|
// src/billing/proration.ts
|
|
487
487
|
var DAY_MS = 864e5;
|
|
@@ -508,7 +508,7 @@ __name(round2, "round2");
|
|
|
508
508
|
|
|
509
509
|
// src/billing/plan-change-preview.service.ts
|
|
510
510
|
import { Inject as Inject3, Injectable as Injectable3, NotFoundException, Optional as Optional3 } from "@nestjs/common";
|
|
511
|
-
import { BILLING_ERROR_CODES } from "@saasicat/
|
|
511
|
+
import { BILLING_ERROR_CODES } from "@saasicat/core";
|
|
512
512
|
function _ts_decorate5(decorators, target, key, desc) {
|
|
513
513
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
514
514
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -755,9 +755,9 @@ function isFloatQuota(key) {
|
|
|
755
755
|
__name(isFloatQuota, "isFloatQuota");
|
|
756
756
|
|
|
757
757
|
// src/billing/contract-freeze.tokens.ts
|
|
758
|
-
var CONTRACT_FREEZE_PORT_TOKEN = /* @__PURE__ */ Symbol.for("
|
|
759
|
-
var CONTRACT_FREEZE_SOURCE_PORT_TOKEN = /* @__PURE__ */ Symbol.for("
|
|
760
|
-
var CONTRACT_FREEZE_PROJECT_KEY_TOKEN = /* @__PURE__ */ Symbol.for("
|
|
758
|
+
var CONTRACT_FREEZE_PORT_TOKEN = /* @__PURE__ */ Symbol.for("saasicat/nest/ContractFreezePort");
|
|
759
|
+
var CONTRACT_FREEZE_SOURCE_PORT_TOKEN = /* @__PURE__ */ Symbol.for("saasicat/nest/ContractFreezeSourcePort");
|
|
760
|
+
var CONTRACT_FREEZE_PROJECT_KEY_TOKEN = /* @__PURE__ */ Symbol.for("saasicat/nest/ContractFreezeProjectKey");
|
|
761
761
|
|
|
762
762
|
// src/billing/pending-plan-materialization.service.ts
|
|
763
763
|
import { Inject as Inject4, Injectable as Injectable4, Logger, Optional as Optional4 } from "@nestjs/common";
|
|
@@ -1098,7 +1098,7 @@ _ts_decorate9([
|
|
|
1098
1098
|
|
|
1099
1099
|
// src/billing/subscription-bundles.service.ts
|
|
1100
1100
|
import { Inject as Inject6, Injectable as Injectable6, NotFoundException as NotFoundException2, Optional as Optional5, UnprocessableEntityException } from "@nestjs/common";
|
|
1101
|
-
import { BILLING_ERROR_CODES as BILLING_ERROR_CODES2, CATALOG_ERROR_CODES } from "@saasicat/
|
|
1101
|
+
import { BILLING_ERROR_CODES as BILLING_ERROR_CODES2, CATALOG_ERROR_CODES } from "@saasicat/core";
|
|
1102
1102
|
function _ts_decorate10(decorators, target, key, desc) {
|
|
1103
1103
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1104
1104
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -1308,7 +1308,7 @@ __name(addMonths, "addMonths");
|
|
|
1308
1308
|
|
|
1309
1309
|
// src/billing/tenant-billing.controller.ts
|
|
1310
1310
|
import { BadRequestException, Body, Controller as Controller2, ForbiddenException as ForbiddenException3, Get as Get2, HttpCode, HttpStatus, Inject as Inject7, Logger as Logger2, NotFoundException as NotFoundException3, Optional as Optional6, Post, Req, UseGuards } from "@nestjs/common";
|
|
1311
|
-
import { AUTH_ERROR_CODES as AUTH_ERROR_CODES3, BILLING_ERROR_CODES as BILLING_ERROR_CODES3 } from "@saasicat/
|
|
1311
|
+
import { AUTH_ERROR_CODES as AUTH_ERROR_CODES3, BILLING_ERROR_CODES as BILLING_ERROR_CODES3 } from "@saasicat/core";
|
|
1312
1312
|
function _ts_decorate11(decorators, target, key, desc) {
|
|
1313
1313
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1314
1314
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -2045,7 +2045,7 @@ TenantBillingModule = _ts_decorate12([
|
|
|
2045
2045
|
|
|
2046
2046
|
// src/billing/subscription-bundle-preview.service.ts
|
|
2047
2047
|
import { Inject as Inject8, Injectable as Injectable7, NotFoundException as NotFoundException4, Optional as Optional7 } from "@nestjs/common";
|
|
2048
|
-
import { BILLING_ERROR_CODES as BILLING_ERROR_CODES4, CATALOG_ERROR_CODES as CATALOG_ERROR_CODES2, buildFeatureRequiresIndex as buildFeatureRequiresIndex2, collectUnsatisfiedRequires as collectUnsatisfiedRequires2 } from "@saasicat/
|
|
2048
|
+
import { BILLING_ERROR_CODES as BILLING_ERROR_CODES4, CATALOG_ERROR_CODES as CATALOG_ERROR_CODES2, buildFeatureRequiresIndex as buildFeatureRequiresIndex2, collectUnsatisfiedRequires as collectUnsatisfiedRequires2 } from "@saasicat/core";
|
|
2049
2049
|
function _ts_decorate13(decorators, target, key, desc) {
|
|
2050
2050
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
2051
2051
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -2326,7 +2326,7 @@ __name(toSnapshot, "toSnapshot");
|
|
|
2326
2326
|
|
|
2327
2327
|
// src/billing/tenant-subscription-bundles.controller.ts
|
|
2328
2328
|
import { BadRequestException as BadRequestException2, Body as Body2, Controller as Controller3, Delete, Get as Get3, HttpCode as HttpCode2, HttpStatus as HttpStatus2, Inject as Inject9, Logger as Logger3, NotFoundException as NotFoundException5, Optional as Optional8, Param, ParseUUIDPipe, Post as Post2, Req as Req2, UseGuards as UseGuards2 } from "@nestjs/common";
|
|
2329
|
-
import { AUTH_ERROR_CODES as AUTH_ERROR_CODES4, BILLING_ERROR_CODES as BILLING_ERROR_CODES5 } from "@saasicat/
|
|
2329
|
+
import { AUTH_ERROR_CODES as AUTH_ERROR_CODES4, BILLING_ERROR_CODES as BILLING_ERROR_CODES5 } from "@saasicat/core";
|
|
2330
2330
|
|
|
2331
2331
|
// src/billing/dto/subscription-bundles.dto.ts
|
|
2332
2332
|
import { IsInt, IsOptional as IsOptional3, IsUUID as IsUUID2, Matches as Matches3, Max, Min } from "class-validator";
|
|
@@ -2720,7 +2720,7 @@ export {
|
|
|
2720
2720
|
PUBLIC_CATALOG_BUNDLE_REPOSITORY_TOKEN,
|
|
2721
2721
|
PUBLIC_CATALOG_MARKETING_REPOSITORY_TOKEN,
|
|
2722
2722
|
PUBLIC_CATALOG_CATALOG_ENTRY_REPOSITORY_TOKEN,
|
|
2723
|
-
|
|
2723
|
+
BILLING_FEATURE_UI_REGISTRY_TOKEN,
|
|
2724
2724
|
PublicCatalogController,
|
|
2725
2725
|
PublicCatalogModule,
|
|
2726
2726
|
ComposedTenantAuthGuard,
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
DEFINES_QUOTA_KEY,
|
|
3
3
|
ENFORCE_QUOTA_KEY,
|
|
4
4
|
IMPLEMENTS_CAPABILITY_KEY
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-QUZU2M33.js";
|
|
6
6
|
import {
|
|
7
7
|
__name
|
|
8
8
|
} from "./chunk-SHUYVCID.js";
|
|
@@ -34,8 +34,8 @@ var DEFAULT_APP_INFO = {
|
|
|
34
34
|
key: "unknown",
|
|
35
35
|
version: "0.0.0"
|
|
36
36
|
};
|
|
37
|
-
var DISCOVERY_APP_INFO_TOKEN = /* @__PURE__ */ Symbol.for("
|
|
38
|
-
var DISCOVERY_SNAPSHOT_PATH_TOKEN = /* @__PURE__ */ Symbol.for("
|
|
37
|
+
var DISCOVERY_APP_INFO_TOKEN = /* @__PURE__ */ Symbol.for("saasicat/nest/DiscoveryAppInfo");
|
|
38
|
+
var DISCOVERY_SNAPSHOT_PATH_TOKEN = /* @__PURE__ */ Symbol.for("saasicat/nest/DiscoverySnapshotPath");
|
|
39
39
|
var DiscoveryScanner = class _DiscoveryScanner {
|
|
40
40
|
static {
|
|
41
41
|
__name(this, "DiscoveryScanner");
|
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
DISCOVERY_APP_INFO_TOKEN,
|
|
3
3
|
DISCOVERY_SNAPSHOT_PATH_TOKEN,
|
|
4
4
|
DiscoveryScanner
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-WXYJHZCN.js";
|
|
6
6
|
import {
|
|
7
7
|
DISCOVERY_SNAPSHOT_TOKEN
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-QUZU2M33.js";
|
|
9
9
|
import {
|
|
10
10
|
__name
|
|
11
11
|
} from "./chunk-SHUYVCID.js";
|
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
PromoCodesModule
|
|
3
|
-
} from "./chunk-B6IWLV7R.js";
|
|
4
1
|
import {
|
|
5
2
|
SubscriptionContractModule
|
|
6
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-AU3OOREM.js";
|
|
7
4
|
import {
|
|
8
5
|
AdminManifestModule,
|
|
9
6
|
AdminManifestService,
|
|
@@ -12,7 +9,7 @@ import {
|
|
|
12
9
|
AdminStatsModule,
|
|
13
10
|
MfaService,
|
|
14
11
|
SuperAdminGuard
|
|
15
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-LTT736P3.js";
|
|
16
13
|
import {
|
|
17
14
|
FEATURE_GUARD_MARKER,
|
|
18
15
|
PublicCatalogModule,
|
|
@@ -20,49 +17,52 @@ import {
|
|
|
20
17
|
SubscriptionBundleModule,
|
|
21
18
|
TenantBillingModule,
|
|
22
19
|
isPlatformFeatureGuard
|
|
23
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-W6YEIY4R.js";
|
|
24
21
|
import {
|
|
25
22
|
CatalogModule
|
|
26
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-VNADKD5U.js";
|
|
27
24
|
import {
|
|
28
25
|
CheckoutOfferModule
|
|
29
|
-
} from "./chunk-
|
|
30
|
-
import {
|
|
31
|
-
SaaSiCatPublicRoute
|
|
32
|
-
} from "./chunk-YSC46BGM.js";
|
|
26
|
+
} from "./chunk-L23MLBEC.js";
|
|
33
27
|
import {
|
|
34
28
|
DiscoveryModule
|
|
35
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-XBYAFEOR.js";
|
|
36
30
|
import {
|
|
37
31
|
EntitlementModule
|
|
38
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-BGS4CWV2.js";
|
|
39
33
|
import {
|
|
40
34
|
LimitExceededError
|
|
41
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-PK6C5R7B.js";
|
|
36
|
+
import {
|
|
37
|
+
ENFORCE_QUOTA_KEY
|
|
38
|
+
} from "./chunk-QUZU2M33.js";
|
|
39
|
+
import {
|
|
40
|
+
PromoCodesModule
|
|
41
|
+
} from "./chunk-YZPVQUIW.js";
|
|
42
|
+
import {
|
|
43
|
+
SaaSiCatPublicRoute
|
|
44
|
+
} from "./chunk-YSC46BGM.js";
|
|
42
45
|
import {
|
|
43
46
|
PLAN_CATALOG_TOKEN,
|
|
44
47
|
PlanCatalogModule
|
|
45
48
|
} from "./chunk-DQKCK7DX.js";
|
|
46
49
|
import {
|
|
47
50
|
codedError
|
|
48
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-57V6ZTI6.js";
|
|
49
52
|
import {
|
|
50
53
|
asProvider
|
|
51
54
|
} from "./chunk-SABTXESR.js";
|
|
52
|
-
import {
|
|
53
|
-
ENFORCE_QUOTA_KEY
|
|
54
|
-
} from "./chunk-L4SUWH5B.js";
|
|
55
55
|
import {
|
|
56
56
|
__name
|
|
57
57
|
} from "./chunk-SHUYVCID.js";
|
|
58
58
|
|
|
59
|
-
// src/setup/tokens.ts
|
|
60
|
-
var SETUP_PROVISIONING_PORT_TOKEN = /* @__PURE__ */ Symbol.for("
|
|
61
|
-
var SETUP_CONFIG_TOKEN = /* @__PURE__ */ Symbol.for("
|
|
59
|
+
// src/setup/setup.tokens.ts
|
|
60
|
+
var SETUP_PROVISIONING_PORT_TOKEN = /* @__PURE__ */ Symbol.for("saasicat/nest/SetupProvisioningPort");
|
|
61
|
+
var SETUP_CONFIG_TOKEN = /* @__PURE__ */ Symbol.for("saasicat/nest/SetupConfig");
|
|
62
62
|
|
|
63
63
|
// src/setup/setup.service.ts
|
|
64
64
|
import { BadRequestException, ConflictException, ForbiddenException, Inject, Injectable, UnauthorizedException } from "@nestjs/common";
|
|
65
|
-
import { isPlatformUserExistsError, SETUP_ERROR_CODES } from "@saasicat/
|
|
65
|
+
import { isPlatformUserExistsError, SETUP_ERROR_CODES } from "@saasicat/core";
|
|
66
66
|
import { randomBytes, timingSafeEqual } from "crypto";
|
|
67
67
|
import QRCode from "qrcode";
|
|
68
68
|
function _ts_decorate(decorators, target, key, desc) {
|
|
@@ -374,7 +374,7 @@ function _ts_param3(paramIndex, decorator) {
|
|
|
374
374
|
__name(_ts_param3, "_ts_param");
|
|
375
375
|
var GUARDS_METADATA = "__guards__";
|
|
376
376
|
var METHOD_METADATA = "method";
|
|
377
|
-
var ENFORCEMENT_CHAIN_STATE_TOKEN = /* @__PURE__ */ Symbol.for("
|
|
377
|
+
var ENFORCEMENT_CHAIN_STATE_TOKEN = /* @__PURE__ */ Symbol.for("saasicat/nest/EnforcementChainState");
|
|
378
378
|
var EnforcementChainCheck = class {
|
|
379
379
|
static {
|
|
380
380
|
__name(this, "EnforcementChainCheck");
|
|
@@ -505,7 +505,7 @@ function readGuards(target) {
|
|
|
505
505
|
__name(readGuards, "readGuards");
|
|
506
506
|
|
|
507
507
|
// src/platform/validation/rules.ts
|
|
508
|
-
import { assertPersistenceCapabilities } from "@saasicat/
|
|
508
|
+
import { assertPersistenceCapabilities } from "@saasicat/core";
|
|
509
509
|
var DOCS_BASE = "https://github.com/uelker70/saasicat/blob/main/docs/reference/options.md";
|
|
510
510
|
var headingSlug = /* @__PURE__ */ __name((text) => text.trim().toLowerCase().replace(/[^a-z0-9 -]/g, "").replace(/ /g, "-"), "headingSlug");
|
|
511
511
|
var docsUrlFor = /* @__PURE__ */ __name((id) => `${DOCS_BASE}#${headingSlug(id)}`, "docsUrlFor");
|
|
@@ -623,7 +623,7 @@ var RULE_SPECS = [
|
|
|
623
623
|
assertPersistenceCapabilities(bundle(c).capabilities, {
|
|
624
624
|
transactions: true,
|
|
625
625
|
pessimisticLocking: true
|
|
626
|
-
}, "
|
|
626
|
+
}, "SaaSiCatModule entitlement (transactional enforceLimit)");
|
|
627
627
|
throw new Error("persistence capabilities check did not fail as expected");
|
|
628
628
|
}, "error")
|
|
629
629
|
},
|
|
@@ -1054,7 +1054,7 @@ function composeModuleExports(ctx, ownExports) {
|
|
|
1054
1054
|
__name(composeModuleExports, "composeModuleExports");
|
|
1055
1055
|
|
|
1056
1056
|
// src/platform/plan-resolver.port.ts
|
|
1057
|
-
var PLAN_RESOLVER_PORT_TOKEN = /* @__PURE__ */ Symbol.for("
|
|
1057
|
+
var PLAN_RESOLVER_PORT_TOKEN = /* @__PURE__ */ Symbol.for("saasicat/nest/PlanResolverPort");
|
|
1058
1058
|
var StaticPlanResolver = class {
|
|
1059
1059
|
static {
|
|
1060
1060
|
__name(this, "StaticPlanResolver");
|
|
@@ -1305,7 +1305,7 @@ function _ts_param6(paramIndex, decorator) {
|
|
|
1305
1305
|
};
|
|
1306
1306
|
}
|
|
1307
1307
|
__name(_ts_param6, "_ts_param");
|
|
1308
|
-
var QUOTA_PROVIDERS_TOKEN = /* @__PURE__ */ Symbol.for("
|
|
1308
|
+
var QUOTA_PROVIDERS_TOKEN = /* @__PURE__ */ Symbol.for("saasicat/nest/QuotaProviders");
|
|
1309
1309
|
var EnforceQuotaInterceptor = class {
|
|
1310
1310
|
static {
|
|
1311
1311
|
__name(this, "EnforceQuotaInterceptor");
|
|
@@ -1364,7 +1364,7 @@ EnforceQuotaInterceptor = _ts_decorate8([
|
|
|
1364
1364
|
// src/platform/static-feature.guard.ts
|
|
1365
1365
|
import { ForbiddenException as ForbiddenException2, Inject as Inject6, Injectable as Injectable6, Optional as Optional3 } from "@nestjs/common";
|
|
1366
1366
|
import { Reflector as Reflector2 } from "@nestjs/core";
|
|
1367
|
-
import { AUTH_ERROR_CODES, FEATURE_NOT_LICENSED } from "@saasicat/
|
|
1367
|
+
import { AUTH_ERROR_CODES, FEATURE_NOT_LICENSED } from "@saasicat/core";
|
|
1368
1368
|
function _ts_decorate9(decorators, target, key, desc) {
|
|
1369
1369
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1370
1370
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -1382,7 +1382,7 @@ function _ts_param7(paramIndex, decorator) {
|
|
|
1382
1382
|
};
|
|
1383
1383
|
}
|
|
1384
1384
|
__name(_ts_param7, "_ts_param");
|
|
1385
|
-
var STATIC_FEATURE_GUARD_CONFIG_TOKEN = /* @__PURE__ */ Symbol.for("
|
|
1385
|
+
var STATIC_FEATURE_GUARD_CONFIG_TOKEN = /* @__PURE__ */ Symbol.for("saasicat/nest/StaticFeatureGuardConfig");
|
|
1386
1386
|
var StaticFeatureGuard = class {
|
|
1387
1387
|
static {
|
|
1388
1388
|
__name(this, "StaticFeatureGuard");
|
|
@@ -1471,13 +1471,13 @@ var SubscriptionPlanResolver = class {
|
|
|
1471
1471
|
}
|
|
1472
1472
|
};
|
|
1473
1473
|
|
|
1474
|
-
// src/platform/
|
|
1474
|
+
// src/platform/saasicat.module.ts
|
|
1475
1475
|
import { Logger, Module as Module2 } from "@nestjs/common";
|
|
1476
1476
|
import { DiscoveryModule as NestDiscoveryModule } from "@nestjs/core";
|
|
1477
1477
|
|
|
1478
1478
|
// src/platform/compose/manifest.ts
|
|
1479
|
-
var PLATFORM_SUBSCRIPTION_REPOSITORY_TOKEN = /* @__PURE__ */ Symbol.for("
|
|
1480
|
-
var STANDARD_MANIFEST_REGISTRATION_TOKEN = /* @__PURE__ */ Symbol.for("
|
|
1479
|
+
var PLATFORM_SUBSCRIPTION_REPOSITORY_TOKEN = /* @__PURE__ */ Symbol.for("saasicat/nest/PlatformSubscriptionRepository");
|
|
1480
|
+
var STANDARD_MANIFEST_REGISTRATION_TOKEN = /* @__PURE__ */ Symbol.for("saasicat/nest/StandardManifestRegistration");
|
|
1481
1481
|
function buildStandardManifestContribution(catalog, adminResources, promoCodes) {
|
|
1482
1482
|
const capabilities = {
|
|
1483
1483
|
"discovery.read": true
|
|
@@ -1548,7 +1548,7 @@ function buildMinimalManifestConfig() {
|
|
|
1548
1548
|
appVersion: "0.0.0"
|
|
1549
1549
|
},
|
|
1550
1550
|
planCatalogSnapshot: {
|
|
1551
|
-
source: "
|
|
1551
|
+
source: "saasicat-module",
|
|
1552
1552
|
hash: "sha256-quickstart",
|
|
1553
1553
|
currency: catalog.currency,
|
|
1554
1554
|
vatRate: catalog.vatRate,
|
|
@@ -1729,7 +1729,7 @@ function planResolverProvider(ctx, resolution) {
|
|
|
1729
1729
|
}
|
|
1730
1730
|
__name(planResolverProvider, "planResolverProvider");
|
|
1731
1731
|
|
|
1732
|
-
// src/platform/
|
|
1732
|
+
// src/platform/saasicat.module.ts
|
|
1733
1733
|
function _ts_decorate10(decorators, target, key, desc) {
|
|
1734
1734
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1735
1735
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -1745,9 +1745,9 @@ function enforcementChainState(state) {
|
|
|
1745
1745
|
};
|
|
1746
1746
|
}
|
|
1747
1747
|
__name(enforcementChainState, "enforcementChainState");
|
|
1748
|
-
var
|
|
1748
|
+
var SaaSiCatModule = class _SaaSiCatModule {
|
|
1749
1749
|
static {
|
|
1750
|
-
__name(this, "
|
|
1750
|
+
__name(this, "SaaSiCatModule");
|
|
1751
1751
|
}
|
|
1752
1752
|
static forRoot(options) {
|
|
1753
1753
|
const explicit = options.adapters ?? {};
|
|
@@ -1837,7 +1837,7 @@ var SaasPlatformModule = class _SaasPlatformModule {
|
|
|
1837
1837
|
lightweightProviders.push(...tenantManifest.providers);
|
|
1838
1838
|
lightweightExports.push(...tenantManifest.exports);
|
|
1839
1839
|
return {
|
|
1840
|
-
module:
|
|
1840
|
+
module: _SaaSiCatModule,
|
|
1841
1841
|
imports,
|
|
1842
1842
|
providers: lightweightProviders,
|
|
1843
1843
|
controllers: tenantManifest.controllers,
|
|
@@ -1846,9 +1846,9 @@ var SaasPlatformModule = class _SaasPlatformModule {
|
|
|
1846
1846
|
};
|
|
1847
1847
|
}
|
|
1848
1848
|
};
|
|
1849
|
-
|
|
1849
|
+
SaaSiCatModule = _ts_decorate10([
|
|
1850
1850
|
Module2({})
|
|
1851
|
-
],
|
|
1851
|
+
], SaaSiCatModule);
|
|
1852
1852
|
|
|
1853
1853
|
export {
|
|
1854
1854
|
SETUP_PROVISIONING_PORT_TOKEN,
|
|
@@ -1879,5 +1879,5 @@ export {
|
|
|
1879
1879
|
STATIC_FEATURE_GUARD_CONFIG_TOKEN,
|
|
1880
1880
|
StaticFeatureGuard,
|
|
1881
1881
|
SubscriptionPlanResolver,
|
|
1882
|
-
|
|
1882
|
+
SaaSiCatModule
|
|
1883
1883
|
};
|