@saasicat/nest 0.27.0 → 1.0.0-rc.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/.build-stamp +1 -0
- package/dist/_entries.cjs +143 -143
- package/dist/admin/index.d.cts +2 -2
- package/dist/admin/index.d.ts +2 -2
- package/dist/admin/index.js +2 -2
- package/dist/{admin-stats.service-HUZIU448.d.cts → admin-stats.service-BroyovpL.d.cts} +1 -1
- package/dist/{admin-stats.service-Db2exT_d.d.ts → admin-stats.service-G53IEkkt.d.ts} +1 -1
- package/dist/billing/index.d.cts +4 -4
- package/dist/billing/index.d.ts +4 -4
- package/dist/billing/index.js +13 -13
- package/dist/catalog/index.d.cts +13 -1
- package/dist/catalog/index.d.ts +13 -1
- package/dist/catalog/index.js +10 -8
- package/dist/checkout-offer/index.js +2 -2
- package/dist/{chunk-7ZPFQXHM.js → chunk-3UZW7TU4.js} +1 -1
- package/dist/{chunk-XTVAFJ3P.js → chunk-AEEK64XD.js} +3 -3
- package/dist/chunk-AOQJEYOL.js +20 -0
- package/dist/{chunk-H4DOTO7S.js → chunk-H3W6QDQH.js} +5 -5
- package/dist/{chunk-YYUXKLXK.js → chunk-I7GTA3RX.js} +2 -2
- package/dist/{chunk-SN5UOC43.js → chunk-IPOLCDKN.js} +11 -11
- package/dist/{chunk-CJFAOD7K.js → chunk-IVEA6M3B.js} +1 -1
- package/dist/{chunk-EHKMPP6J.js → chunk-JCAZT727.js} +29 -29
- package/dist/{chunk-2JTISFUZ.js → chunk-JTLKWP3Q.js} +7 -7
- package/dist/{chunk-E56W4U2P.js → chunk-O2J2HDXA.js} +4 -4
- package/dist/{chunk-WKVBNTYC.js → chunk-OUDSQ3PU.js} +6 -6
- package/dist/{chunk-MJ32VNZD.js → chunk-P5D5CYO2.js} +18 -18
- package/dist/{chunk-L4SUWH5B.js → chunk-QUZU2M33.js} +2 -2
- package/dist/{chunk-WPUVJRIN.js → chunk-S6BAD5XM.js} +10 -10
- package/dist/{chunk-7X5MSAIL.js → chunk-SH7J5IU7.js} +9 -9
- package/dist/{chunk-37HEKVDH.js → chunk-V4OJ43K2.js} +10 -10
- package/dist/{chunk-NYLON2VC.js → chunk-VBRYPU7V.js} +2 -2
- package/dist/{chunk-B6IWLV7R.js → chunk-VTMCMVYQ.js} +6 -6
- package/dist/{chunk-UHD6FJBQ.js → chunk-WSPHIIGS.js} +22 -22
- package/dist/{chunk-5ZXBXYXU.js → chunk-WXYJHZCN.js} +3 -3
- package/dist/{chunk-6WL6VQ7Z.js → chunk-XBYAFEOR.js} +2 -2
- package/dist/{chunk-F4B2NJUZ.js → chunk-XEW6YXL5.js} +7 -7
- package/dist/{chunk-3E6ONOMG.js → chunk-Y43SGD5J.js} +2 -2
- package/dist/{define-saasicat-3ois8t8s.d.ts → define-saasicat-BFgeoVG9.d.ts} +7 -7
- package/dist/{define-saasicat-CFxut1VR.d.cts → define-saasicat-CNUWjfNK.d.cts} +7 -7
- package/dist/discovery/index.js +4 -4
- package/dist/{enforce-quota.interceptor-CYDNvAQz.d.ts → enforce-quota.interceptor-BYqmdFB5.d.ts} +1 -1
- package/dist/{enforce-quota.interceptor-N80KC34N.d.cts → enforce-quota.interceptor-BxIR63Wn.d.cts} +1 -1
- package/dist/entitlement/index.js +6 -6
- package/dist/index.d.cts +9 -9
- package/dist/index.d.ts +9 -9
- package/dist/index.js +29 -28
- package/dist/{module-options-ByJL7FZm.d.ts → module-options-BymIkAsh.d.ts} +29 -29
- package/dist/{module-options-klrPnWGF.d.cts → module-options-DgwBKVpC.d.cts} +29 -29
- package/dist/platform/index.d.cts +16 -16
- package/dist/platform/index.d.ts +16 -16
- package/dist/platform/index.js +21 -22
- package/dist/promo/index.d.cts +3 -3
- package/dist/promo/index.d.ts +3 -3
- package/dist/promo/index.js +3 -3
- package/dist/{module-BE17XFLg.d.ts → promo.module-CnzddtJ0.d.ts} +1 -1
- package/dist/{module-CHMIyWlf.d.cts → promo.module-DokmUGmm.d.cts} +1 -1
- 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/subscription-contract/index.js +3 -3
- package/dist/{tenant-billing.controller-CYYK0CpT.d.ts → tenant-billing.controller-BQPy5yXh.d.ts} +1 -1
- package/dist/{tenant-billing.controller-CAMMdfn1.d.cts → tenant-billing.controller-CODIYzlI.d.cts} +1 -1
- package/dist/testing/index.d.cts +10 -10
- package/dist/testing/index.d.ts +10 -10
- package/dist/testing/index.js +31 -31
- package/package.json +5 -5
- package/dist/chunk-L4KTQ6CL.js +0 -20
- /package/dist/{service-D48clObR.d.cts → promo.service-D48clObR.d.cts} +0 -0
- /package/dist/{service-D48clObR.d.ts → promo.service-D48clObR.d.ts} +0 -0
package/dist/admin/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { f as AdminStatsService, g as AdminStatsSnapshot } from '../admin-stats.service-
|
|
2
|
-
export { A as AdminBypassRlsInterceptor, a as AdminManifestModule, b as AdminManifestModuleOptions, c as AdminManifestService, d as AdminModule, e as AdminModuleOptions, M as MfaGuard, h as MfaService, P as PLATFORM_CORE_CONTRIBUTION_TOKEN, R as REQUIRE_MFA_KEY, i as RequireMfa, S as SuperAdminGuard, T as TotpSetupResult, V as VerifyTotpInput } from '../admin-stats.service-
|
|
1
|
+
import { f as AdminStatsService, g as AdminStatsSnapshot } from '../admin-stats.service-BroyovpL.cjs';
|
|
2
|
+
export { A as AdminBypassRlsInterceptor, a as AdminManifestModule, b as AdminManifestModuleOptions, c as AdminManifestService, d as AdminModule, e as AdminModuleOptions, M as MfaGuard, h as MfaService, P as PLATFORM_CORE_CONTRIBUTION_TOKEN, R as REQUIRE_MFA_KEY, i as RequireMfa, S as SuperAdminGuard, T as TotpSetupResult, V as VerifyTotpInput } from '../admin-stats.service-BroyovpL.cjs';
|
|
3
3
|
export { A as AdminAuditService } from '../admin-audit.service-9IqXMlZm.cjs';
|
|
4
4
|
import { b as AdminManifestConfig } from '../admin-resources.module-DGgGSdzN.cjs';
|
|
5
5
|
export { A as ADMIN_MANIFEST_CONFIG, a as ADMIN_RESOURCES_PORT_TOKEN, c as AdminResourcesModule, d as AdminResourcesModuleOptions, e as AdminResourcesService, f as AdminStatsModule, g as AdminStatsModuleOptions, S as SuspendTenantDto } from '../admin-resources.module-DGgGSdzN.cjs';
|
package/dist/admin/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { f as AdminStatsService, g as AdminStatsSnapshot } from '../admin-stats.service-
|
|
2
|
-
export { A as AdminBypassRlsInterceptor, a as AdminManifestModule, b as AdminManifestModuleOptions, c as AdminManifestService, d as AdminModule, e as AdminModuleOptions, M as MfaGuard, h as MfaService, P as PLATFORM_CORE_CONTRIBUTION_TOKEN, R as REQUIRE_MFA_KEY, i as RequireMfa, S as SuperAdminGuard, T as TotpSetupResult, V as VerifyTotpInput } from '../admin-stats.service-
|
|
1
|
+
import { f as AdminStatsService, g as AdminStatsSnapshot } from '../admin-stats.service-G53IEkkt.js';
|
|
2
|
+
export { A as AdminBypassRlsInterceptor, a as AdminManifestModule, b as AdminManifestModuleOptions, c as AdminManifestService, d as AdminModule, e as AdminModuleOptions, M as MfaGuard, h as MfaService, P as PLATFORM_CORE_CONTRIBUTION_TOKEN, R as REQUIRE_MFA_KEY, i as RequireMfa, S as SuperAdminGuard, T as TotpSetupResult, V as VerifyTotpInput } from '../admin-stats.service-G53IEkkt.js';
|
|
3
3
|
export { A as AdminAuditService } from '../admin-audit.service-9IqXMlZm.js';
|
|
4
4
|
import { b as AdminManifestConfig } from '../admin-resources.module-BY5r_1MG.js';
|
|
5
5
|
export { A as ADMIN_MANIFEST_CONFIG, a as ADMIN_RESOURCES_PORT_TOKEN, c as AdminResourcesModule, d as AdminResourcesModuleOptions, e as AdminResourcesService, f as AdminStatsModule, g as AdminStatsModuleOptions, S as SuspendTenantDto } from '../admin-resources.module-BY5r_1MG.js';
|
package/dist/admin/index.js
CHANGED
|
@@ -25,13 +25,13 @@ import {
|
|
|
25
25
|
SuperAdminGuard,
|
|
26
26
|
SuspendTenantDto,
|
|
27
27
|
buildAdminStatsController
|
|
28
|
-
} from "../chunk-
|
|
28
|
+
} from "../chunk-IPOLCDKN.js";
|
|
29
29
|
import {
|
|
30
30
|
AUDIT_PORT_TOKEN,
|
|
31
31
|
AdminAuditService,
|
|
32
32
|
MFA_PORT_TOKEN,
|
|
33
33
|
RLS_BYPASS_PORT_TOKEN
|
|
34
|
-
} from "../chunk-
|
|
34
|
+
} from "../chunk-O2J2HDXA.js";
|
|
35
35
|
import "../chunk-YSC46BGM.js";
|
|
36
36
|
import "../chunk-EBJJNTW6.js";
|
|
37
37
|
import "../chunk-SABTXESR.js";
|
|
@@ -44,7 +44,7 @@ declare class MfaService {
|
|
|
44
44
|
isEnabled(userId: string): Promise<boolean>;
|
|
45
45
|
}
|
|
46
46
|
|
|
47
|
-
declare const REQUIRE_MFA_KEY = "
|
|
47
|
+
declare const REQUIRE_MFA_KEY = "saasicat/nest/require-mfa";
|
|
48
48
|
/**
|
|
49
49
|
* Marks an endpoint as MFA-required. The frontend sends the TOTP code
|
|
50
50
|
* in the `X-Mfa-Code` header.
|
|
@@ -44,7 +44,7 @@ declare class MfaService {
|
|
|
44
44
|
isEnabled(userId: string): Promise<boolean>;
|
|
45
45
|
}
|
|
46
46
|
|
|
47
|
-
declare const REQUIRE_MFA_KEY = "
|
|
47
|
+
declare const REQUIRE_MFA_KEY = "saasicat/nest/require-mfa";
|
|
48
48
|
/**
|
|
49
49
|
* Marks an endpoint as MFA-required. The frontend sends the TOTP code
|
|
50
50
|
* in the `X-Mfa-Code` header.
|
package/dist/billing/index.d.cts
CHANGED
|
@@ -8,10 +8,10 @@ export { Type as NestType } from '@nestjs/common';
|
|
|
8
8
|
import { Reflector, BaseExceptionFilter } from '@nestjs/core';
|
|
9
9
|
import { c as EntitlementService } from '../aggregation-mZ7WZROK.cjs';
|
|
10
10
|
import { P as ProviderSpec } from '../di-CcNeq9v-.cjs';
|
|
11
|
-
export { A as AddBundleToSubscriptionInput, B as BundlePreviewSnapshot, C as CancelBundleFromSubscriptionInput, a as CancelSubscriptionDto, b as ChangePlanDto, c as CompleteOnboardingSubscriptionDto, d as ComposedTenantAuthGuard, L as LimitsCheckRow, P as PendingPlanMaterializationService, e as PlanChangeContext, f as PlanChangePreviewDto, g as PlanChangePreviewIssue, h as PlanChangePreviewService, i as PlanChangeType, j as PlanSnapshotDto, k as PreviewPlanChangeDto, l as ProrationDto, m as ProrationInput, R as RedundantFeatureHint, S as SubscriptionBundleAddPreviewDto, n as SubscriptionBundleCancelPreviewDto, o as SubscriptionBundleConfig, p as SubscriptionBundlePreviewContext, q as SubscriptionBundlePreviewIssue, r as SubscriptionBundlePreviewService, s as SubscriptionBundlesService, T as TenantAdminGuard, t as TenantBillingController, U as UsageResponse, u as addMonths, v as computeProration, w as resolveBundleCancelEffectiveAt, x as resolveBundlePriceNet } from '../tenant-billing.controller-
|
|
11
|
+
export { A as AddBundleToSubscriptionInput, B as BundlePreviewSnapshot, C as CancelBundleFromSubscriptionInput, a as CancelSubscriptionDto, b as ChangePlanDto, c as CompleteOnboardingSubscriptionDto, d as ComposedTenantAuthGuard, L as LimitsCheckRow, P as PendingPlanMaterializationService, e as PlanChangeContext, f as PlanChangePreviewDto, g as PlanChangePreviewIssue, h as PlanChangePreviewService, i as PlanChangeType, j as PlanSnapshotDto, k as PreviewPlanChangeDto, l as ProrationDto, m as ProrationInput, R as RedundantFeatureHint, S as SubscriptionBundleAddPreviewDto, n as SubscriptionBundleCancelPreviewDto, o as SubscriptionBundleConfig, p as SubscriptionBundlePreviewContext, q as SubscriptionBundlePreviewIssue, r as SubscriptionBundlePreviewService, s as SubscriptionBundlesService, T as TenantAdminGuard, t as TenantBillingController, U as UsageResponse, u as addMonths, v as computeProration, w as resolveBundleCancelEffectiveAt, x as resolveBundlePriceNet } from '../tenant-billing.controller-CODIYzlI.cjs';
|
|
12
12
|
import { S as SubscriptionContractService } from '../subscription-contract.service--cm47ZJJ.cjs';
|
|
13
13
|
import '../plan-resolution-CFCoUkrE.cjs';
|
|
14
|
-
import '../service-D48clObR.cjs';
|
|
14
|
+
import '../promo.service-D48clObR.cjs';
|
|
15
15
|
import '../admin-audit.service-9IqXMlZm.cjs';
|
|
16
16
|
|
|
17
17
|
/**
|
|
@@ -445,7 +445,7 @@ declare function getActiveFeatureKeys(catalog: PlanCatalog): FeatureKey[];
|
|
|
445
445
|
*/
|
|
446
446
|
declare function isFeaturePlannedOnly(catalog: PlanCatalog, featureKey: FeatureKey): boolean;
|
|
447
447
|
|
|
448
|
-
declare const
|
|
448
|
+
declare const BILLING_FEATURE_UI_REGISTRY_TOKEN: unique symbol;
|
|
449
449
|
|
|
450
450
|
interface MarketingFields {
|
|
451
451
|
displayLabel?: string;
|
|
@@ -596,4 +596,4 @@ declare const SUBSCRIPTION_BUNDLE_CONFIG_TOKEN: unique symbol;
|
|
|
596
596
|
*/
|
|
597
597
|
declare function buildTenantSubscriptionBundlesController(extraGuards?: Array<Type<CanActivate>>): Type;
|
|
598
598
|
|
|
599
|
-
export { type AjvErrorLike, CatalogBundleUpsellResolver, ConfiguratorCatalogBuilder, ContractFreezePort, ContractFreezeSourcePort, FEATURE_GUARD_CONFIG_TOKEN, FEATURE_GUARD_MARKER,
|
|
599
|
+
export { type AjvErrorLike, BILLING_FEATURE_UI_REGISTRY_TOKEN, CatalogBundleUpsellResolver, ConfiguratorCatalogBuilder, ContractFreezePort, ContractFreezeSourcePort, FEATURE_GUARD_CONFIG_TOKEN, FEATURE_GUARD_MARKER, FeatureGuard, type FeatureGuardConfig, LimitExceededFilter, type LoadPlanCatalogOptions, type MarketingFields, type NextPeriodWindow, PLAN_CATALOG_IMPORT_SINK_TOKEN, PLAN_CATALOG_READ_SINK_TOKEN, PLAN_CATALOG_TOKEN, PUBLIC_CATALOG_BUNDLE_REPOSITORY_TOKEN, PUBLIC_CATALOG_MARKETING_REPOSITORY_TOKEN, PUBLIC_CATALOG_PROJECT_KEY_TOKEN, type PeriodRollInput, type PlanCatalogBuildSettings, PlanCatalogImportDto, type PlanCatalogImporterControllerConfig, PlanCatalogImporterModule, type PlanCatalogImporterModuleOptions, PlanCatalogImporterService, PlanCatalogModule, type PlanCatalogModuleOptions, PlanCatalogValidationError, type PlanResponseEntry, type PublicBundleEntry, PublicCatalogController, PublicCatalogModule, type PublicCatalogModuleOptions, PublishValidationError, type PublishablePlanVersion, REQUIRE_FEATURE_KEY, type RenewalDecision, type RenewalSubInput, RequireFeature, SUBSCRIPTION_BUNDLE_CONFIG_TOKEN, SUBSCRIPTION_BUNDLE_REPOSITORY_TOKEN, SubscriptionContractFreezeService, UPSELL_OFFER_CURRENCY_TOKEN, UPSELL_OFFER_RESOLVER_TOKEN, assertBaseVersionFresh, assertChangeNote, assertDraftPublishable, assertOptimisticLockHeld, buildPlanCatalogFromSnapshot, buildPlanCatalogImporterController, buildTenantSubscriptionBundlesController, clearPendingPlanVersionFields, computeCarriedTrialEndsAt, computeNextPeriod, decideRenewal, findPlan, getActiveFeatureKeys, getMarketedPlans, getPlanOrThrow, getPlanPriceGross, getPlanPriceNet, getPlanQuota, initialPeriodWindow, isFeatureInPlan, isFeaturePlannedOnly, loadPlanCatalogFromFile, loadPlanCatalogFromString, periodEndAfter, periodEndWithMinLead };
|
package/dist/billing/index.d.ts
CHANGED
|
@@ -8,10 +8,10 @@ export { Type as NestType } from '@nestjs/common';
|
|
|
8
8
|
import { Reflector, BaseExceptionFilter } from '@nestjs/core';
|
|
9
9
|
import { c as EntitlementService } from '../aggregation-DP5zfKbU.js';
|
|
10
10
|
import { P as ProviderSpec } from '../di-CcNeq9v-.js';
|
|
11
|
-
export { A as AddBundleToSubscriptionInput, B as BundlePreviewSnapshot, C as CancelBundleFromSubscriptionInput, a as CancelSubscriptionDto, b as ChangePlanDto, c as CompleteOnboardingSubscriptionDto, d as ComposedTenantAuthGuard, L as LimitsCheckRow, P as PendingPlanMaterializationService, e as PlanChangeContext, f as PlanChangePreviewDto, g as PlanChangePreviewIssue, h as PlanChangePreviewService, i as PlanChangeType, j as PlanSnapshotDto, k as PreviewPlanChangeDto, l as ProrationDto, m as ProrationInput, R as RedundantFeatureHint, S as SubscriptionBundleAddPreviewDto, n as SubscriptionBundleCancelPreviewDto, o as SubscriptionBundleConfig, p as SubscriptionBundlePreviewContext, q as SubscriptionBundlePreviewIssue, r as SubscriptionBundlePreviewService, s as SubscriptionBundlesService, T as TenantAdminGuard, t as TenantBillingController, U as UsageResponse, u as addMonths, v as computeProration, w as resolveBundleCancelEffectiveAt, x as resolveBundlePriceNet } from '../tenant-billing.controller-
|
|
11
|
+
export { A as AddBundleToSubscriptionInput, B as BundlePreviewSnapshot, C as CancelBundleFromSubscriptionInput, a as CancelSubscriptionDto, b as ChangePlanDto, c as CompleteOnboardingSubscriptionDto, d as ComposedTenantAuthGuard, L as LimitsCheckRow, P as PendingPlanMaterializationService, e as PlanChangeContext, f as PlanChangePreviewDto, g as PlanChangePreviewIssue, h as PlanChangePreviewService, i as PlanChangeType, j as PlanSnapshotDto, k as PreviewPlanChangeDto, l as ProrationDto, m as ProrationInput, R as RedundantFeatureHint, S as SubscriptionBundleAddPreviewDto, n as SubscriptionBundleCancelPreviewDto, o as SubscriptionBundleConfig, p as SubscriptionBundlePreviewContext, q as SubscriptionBundlePreviewIssue, r as SubscriptionBundlePreviewService, s as SubscriptionBundlesService, T as TenantAdminGuard, t as TenantBillingController, U as UsageResponse, u as addMonths, v as computeProration, w as resolveBundleCancelEffectiveAt, x as resolveBundlePriceNet } from '../tenant-billing.controller-BQPy5yXh.js';
|
|
12
12
|
import { S as SubscriptionContractService } from '../subscription-contract.service--cm47ZJJ.js';
|
|
13
13
|
import '../plan-resolution-CFCoUkrE.js';
|
|
14
|
-
import '../service-D48clObR.js';
|
|
14
|
+
import '../promo.service-D48clObR.js';
|
|
15
15
|
import '../admin-audit.service-9IqXMlZm.js';
|
|
16
16
|
|
|
17
17
|
/**
|
|
@@ -445,7 +445,7 @@ declare function getActiveFeatureKeys(catalog: PlanCatalog): FeatureKey[];
|
|
|
445
445
|
*/
|
|
446
446
|
declare function isFeaturePlannedOnly(catalog: PlanCatalog, featureKey: FeatureKey): boolean;
|
|
447
447
|
|
|
448
|
-
declare const
|
|
448
|
+
declare const BILLING_FEATURE_UI_REGISTRY_TOKEN: unique symbol;
|
|
449
449
|
|
|
450
450
|
interface MarketingFields {
|
|
451
451
|
displayLabel?: string;
|
|
@@ -596,4 +596,4 @@ declare const SUBSCRIPTION_BUNDLE_CONFIG_TOKEN: unique symbol;
|
|
|
596
596
|
*/
|
|
597
597
|
declare function buildTenantSubscriptionBundlesController(extraGuards?: Array<Type<CanActivate>>): Type;
|
|
598
598
|
|
|
599
|
-
export { type AjvErrorLike, CatalogBundleUpsellResolver, ConfiguratorCatalogBuilder, ContractFreezePort, ContractFreezeSourcePort, FEATURE_GUARD_CONFIG_TOKEN, FEATURE_GUARD_MARKER,
|
|
599
|
+
export { type AjvErrorLike, BILLING_FEATURE_UI_REGISTRY_TOKEN, CatalogBundleUpsellResolver, ConfiguratorCatalogBuilder, ContractFreezePort, ContractFreezeSourcePort, FEATURE_GUARD_CONFIG_TOKEN, FEATURE_GUARD_MARKER, FeatureGuard, type FeatureGuardConfig, LimitExceededFilter, type LoadPlanCatalogOptions, type MarketingFields, type NextPeriodWindow, PLAN_CATALOG_IMPORT_SINK_TOKEN, PLAN_CATALOG_READ_SINK_TOKEN, PLAN_CATALOG_TOKEN, PUBLIC_CATALOG_BUNDLE_REPOSITORY_TOKEN, PUBLIC_CATALOG_MARKETING_REPOSITORY_TOKEN, PUBLIC_CATALOG_PROJECT_KEY_TOKEN, type PeriodRollInput, type PlanCatalogBuildSettings, PlanCatalogImportDto, type PlanCatalogImporterControllerConfig, PlanCatalogImporterModule, type PlanCatalogImporterModuleOptions, PlanCatalogImporterService, PlanCatalogModule, type PlanCatalogModuleOptions, PlanCatalogValidationError, type PlanResponseEntry, type PublicBundleEntry, PublicCatalogController, PublicCatalogModule, type PublicCatalogModuleOptions, PublishValidationError, type PublishablePlanVersion, REQUIRE_FEATURE_KEY, type RenewalDecision, type RenewalSubInput, RequireFeature, SUBSCRIPTION_BUNDLE_CONFIG_TOKEN, SUBSCRIPTION_BUNDLE_REPOSITORY_TOKEN, SubscriptionContractFreezeService, UPSELL_OFFER_CURRENCY_TOKEN, UPSELL_OFFER_RESOLVER_TOKEN, assertBaseVersionFresh, assertChangeNote, assertDraftPublishable, assertOptimisticLockHeld, buildPlanCatalogFromSnapshot, buildPlanCatalogImporterController, buildTenantSubscriptionBundlesController, clearPendingPlanVersionFields, computeCarriedTrialEndsAt, computeNextPeriod, decideRenewal, findPlan, getActiveFeatureKeys, getMarketedPlans, getPlanOrThrow, getPlanPriceGross, getPlanPriceNet, getPlanQuota, initialPeriodWindow, isFeatureInPlan, isFeaturePlannedOnly, loadPlanCatalogFromFile, loadPlanCatalogFromString, periodEndAfter, periodEndWithMinLead };
|
package/dist/billing/index.js
CHANGED
|
@@ -23,8 +23,9 @@ import {
|
|
|
23
23
|
decideRenewal,
|
|
24
24
|
loadPlanCatalogFromFile,
|
|
25
25
|
loadPlanCatalogFromString
|
|
26
|
-
} from "../chunk-
|
|
26
|
+
} from "../chunk-JTLKWP3Q.js";
|
|
27
27
|
import {
|
|
28
|
+
BILLING_FEATURE_UI_REGISTRY_TOKEN,
|
|
28
29
|
CONTRACT_FREEZE_PORT_TOKEN,
|
|
29
30
|
CONTRACT_FREEZE_PROJECT_KEY_TOKEN,
|
|
30
31
|
CONTRACT_FREEZE_SOURCE_PORT_TOKEN,
|
|
@@ -33,7 +34,6 @@ import {
|
|
|
33
34
|
CompleteOnboardingSubscriptionDto,
|
|
34
35
|
ComposedTenantAuthGuard,
|
|
35
36
|
FEATURE_GUARD_MARKER,
|
|
36
|
-
FEATURE_UI_REGISTRY_TOKEN,
|
|
37
37
|
PUBLIC_CATALOG_BUNDLE_REPOSITORY_TOKEN,
|
|
38
38
|
PUBLIC_CATALOG_MARKETING_REPOSITORY_TOKEN,
|
|
39
39
|
PUBLIC_CATALOG_PROJECT_KEY_TOKEN,
|
|
@@ -62,9 +62,9 @@ import {
|
|
|
62
62
|
periodEndWithMinLead,
|
|
63
63
|
resolveBundleCancelEffectiveAt,
|
|
64
64
|
resolveBundlePriceNet
|
|
65
|
-
} from "../chunk-
|
|
66
|
-
import "../chunk-
|
|
67
|
-
import "../chunk-
|
|
65
|
+
} from "../chunk-WSPHIIGS.js";
|
|
66
|
+
import "../chunk-V4OJ43K2.js";
|
|
67
|
+
import "../chunk-IVEA6M3B.js";
|
|
68
68
|
import {
|
|
69
69
|
AUDIT_CONTEXT_RESOLVER_TOKEN,
|
|
70
70
|
PENDING_PLAN_QUERY_PORT_TOKEN,
|
|
@@ -78,14 +78,14 @@ import {
|
|
|
78
78
|
USER_ID_RESOLVER_TOKEN,
|
|
79
79
|
classifyBundleVersionDiff,
|
|
80
80
|
classifyPlanDiff
|
|
81
|
-
} from "../chunk-
|
|
82
|
-
import "../chunk-
|
|
81
|
+
} from "../chunk-S6BAD5XM.js";
|
|
82
|
+
import "../chunk-O2J2HDXA.js";
|
|
83
83
|
import "../chunk-BSK6YBLI.js";
|
|
84
84
|
import "../chunk-YSC46BGM.js";
|
|
85
85
|
import {
|
|
86
86
|
SUBSCRIPTION_BUNDLE_CONFIG_TOKEN,
|
|
87
87
|
SUBSCRIPTION_BUNDLE_REPOSITORY_TOKEN
|
|
88
|
-
} from "../chunk-
|
|
88
|
+
} from "../chunk-XEW6YXL5.js";
|
|
89
89
|
import {
|
|
90
90
|
PLAN_CATALOG_READ_SINK_TOKEN,
|
|
91
91
|
PLAN_CATALOG_TOKEN,
|
|
@@ -101,15 +101,16 @@ import {
|
|
|
101
101
|
isFeatureInPlan,
|
|
102
102
|
isFeaturePlannedOnly
|
|
103
103
|
} from "../chunk-DQKCK7DX.js";
|
|
104
|
-
import "../chunk-
|
|
104
|
+
import "../chunk-VBRYPU7V.js";
|
|
105
105
|
import "../chunk-EBJJNTW6.js";
|
|
106
|
-
import "../chunk-
|
|
107
|
-
import "../chunk-
|
|
106
|
+
import "../chunk-OUDSQ3PU.js";
|
|
107
|
+
import "../chunk-AOQJEYOL.js";
|
|
108
108
|
import "../chunk-SABTXESR.js";
|
|
109
|
-
import "../chunk-
|
|
109
|
+
import "../chunk-QUZU2M33.js";
|
|
110
110
|
import "../chunk-SHUYVCID.js";
|
|
111
111
|
export {
|
|
112
112
|
AUDIT_CONTEXT_RESOLVER_TOKEN,
|
|
113
|
+
BILLING_FEATURE_UI_REGISTRY_TOKEN,
|
|
113
114
|
CONTRACT_FREEZE_PORT_TOKEN,
|
|
114
115
|
CONTRACT_FREEZE_PROJECT_KEY_TOKEN,
|
|
115
116
|
CONTRACT_FREEZE_SOURCE_PORT_TOKEN,
|
|
@@ -121,7 +122,6 @@ export {
|
|
|
121
122
|
ConfiguratorCatalogBuilder,
|
|
122
123
|
FEATURE_GUARD_CONFIG_TOKEN,
|
|
123
124
|
FEATURE_GUARD_MARKER,
|
|
124
|
-
FEATURE_UI_REGISTRY_TOKEN,
|
|
125
125
|
FeatureGuard,
|
|
126
126
|
LimitExceededFilter,
|
|
127
127
|
PENDING_PLAN_QUERY_PORT_TOKEN,
|
package/dist/catalog/index.d.cts
CHANGED
|
@@ -56,6 +56,18 @@ declare const MARKETING_SETTINGS_REPOSITORY_TOKEN: unique symbol;
|
|
|
56
56
|
* Provided by CatalogModule.forRoot().
|
|
57
57
|
*/
|
|
58
58
|
declare const CATALOG_SERVICE_CONFIG_TOKEN: unique symbol;
|
|
59
|
+
/**
|
|
60
|
+
* Optional consumer-curated FeatureUiRegistry (label/description/icon per
|
|
61
|
+
* Feature). Feeds the Discovery auto-sync: empty `FeatureCatalogEntry` fields
|
|
62
|
+
* are seeded from it at boot (SuperAdmin edits remain untouched), so that
|
|
63
|
+
* the DB becomes the SSOT for UI metadata.
|
|
64
|
+
*
|
|
65
|
+
* Distinct from `billing/feature-ui-registry.tokens.ts`, which carries the
|
|
66
|
+
* registry for the PUBLIC catalog endpoints. Same exported name, different
|
|
67
|
+
* token on purpose — an app may curate the two surfaces differently. The key
|
|
68
|
+
* is namespaced accordingly so the two never collide.
|
|
69
|
+
*/
|
|
70
|
+
declare const CATALOG_FEATURE_UI_REGISTRY_TOKEN: unique symbol;
|
|
59
71
|
|
|
60
72
|
/**
|
|
61
73
|
* Advisory warnings (#35): they inform but never block — not even in
|
|
@@ -535,4 +547,4 @@ declare class PublishPlanVersionDto {
|
|
|
535
547
|
validUntil?: string | null;
|
|
536
548
|
}
|
|
537
549
|
|
|
538
|
-
export { ADVISORY_STRICT_MODE_CODES, BUNDLE_REPOSITORY_TOKEN, CATALOG_ENTRY_REPOSITORY_TOKEN, CATALOG_SERVICE_CONFIG_TOKEN, CreateBundleDto, CreateBundleVersionDraftDto, CreateMarketingProjectionDto, CreatePlanDto, CreatePlanVersionDraftDto, CreatePromotionDto, ListCatalogEntriesQueryDto, ListMarketingProjectionsQueryDto, ListMarketingSettingsQueryDto, ListPromotionsQueryDto, MARKETING_PROJECTION_REPOSITORY_TOKEN, MARKETING_SETTINGS_REPOSITORY_TOKEN, PLAN_REPOSITORY_TOKEN, PROMOTION_REPOSITORY_TOKEN, type PreflightFinding, type PreflightInput, type PreflightReport, PublishBundleVersionDto, PublishPlanVersionDto, ReviewCatalogEntryDto, type SeedBundleDraft, type SeedGateFinding, type SeedGateInput, type SeedGateMode, type SeedGateReport, type SeedGateRunOptions, type SeedPlanDraft, SyncDiscoveryDto, UpdateBundleDto, UpdateBundleVersionDraftDto, UpdateCatalogEntryI18nDto, UpdateMarketingProjectionDto, UpdateMarketingSettingsDto, UpdatePlanDto, UpdatePlanVersionDraftDto, UpdatePromotionDto, blockingStrictModeWarnings, buildBundleVersionsController, buildBundlesController, buildCatalogEntriesController, buildMarketingProjectionsController, buildMarketingSettingsController, buildPlanVersionsController, buildPlansController, buildPromotionsController, buildPublicMarketingCatalogController, featureApprovalSignature, formatPreflightReport, formatSeedGateReport, loadApprovedCatalogKeys, preflightExitCode, quotaApprovalSignature, runPreflight, runSeedGateFromFile, seedGateExitCode, validateBundleDraft, validatePlanDraft, validateSeedAgainstSnapshot };
|
|
550
|
+
export { ADVISORY_STRICT_MODE_CODES, BUNDLE_REPOSITORY_TOKEN, CATALOG_ENTRY_REPOSITORY_TOKEN, CATALOG_FEATURE_UI_REGISTRY_TOKEN, CATALOG_SERVICE_CONFIG_TOKEN, CreateBundleDto, CreateBundleVersionDraftDto, CreateMarketingProjectionDto, CreatePlanDto, CreatePlanVersionDraftDto, CreatePromotionDto, ListCatalogEntriesQueryDto, ListMarketingProjectionsQueryDto, ListMarketingSettingsQueryDto, ListPromotionsQueryDto, MARKETING_PROJECTION_REPOSITORY_TOKEN, MARKETING_SETTINGS_REPOSITORY_TOKEN, PLAN_REPOSITORY_TOKEN, PROMOTION_REPOSITORY_TOKEN, type PreflightFinding, type PreflightInput, type PreflightReport, PublishBundleVersionDto, PublishPlanVersionDto, ReviewCatalogEntryDto, type SeedBundleDraft, type SeedGateFinding, type SeedGateInput, type SeedGateMode, type SeedGateReport, type SeedGateRunOptions, type SeedPlanDraft, SyncDiscoveryDto, UpdateBundleDto, UpdateBundleVersionDraftDto, UpdateCatalogEntryI18nDto, UpdateMarketingProjectionDto, UpdateMarketingSettingsDto, UpdatePlanDto, UpdatePlanVersionDraftDto, UpdatePromotionDto, blockingStrictModeWarnings, buildBundleVersionsController, buildBundlesController, buildCatalogEntriesController, buildMarketingProjectionsController, buildMarketingSettingsController, buildPlanVersionsController, buildPlansController, buildPromotionsController, buildPublicMarketingCatalogController, featureApprovalSignature, formatPreflightReport, formatSeedGateReport, loadApprovedCatalogKeys, preflightExitCode, quotaApprovalSignature, runPreflight, runSeedGateFromFile, seedGateExitCode, validateBundleDraft, validatePlanDraft, validateSeedAgainstSnapshot };
|
package/dist/catalog/index.d.ts
CHANGED
|
@@ -56,6 +56,18 @@ declare const MARKETING_SETTINGS_REPOSITORY_TOKEN: unique symbol;
|
|
|
56
56
|
* Provided by CatalogModule.forRoot().
|
|
57
57
|
*/
|
|
58
58
|
declare const CATALOG_SERVICE_CONFIG_TOKEN: unique symbol;
|
|
59
|
+
/**
|
|
60
|
+
* Optional consumer-curated FeatureUiRegistry (label/description/icon per
|
|
61
|
+
* Feature). Feeds the Discovery auto-sync: empty `FeatureCatalogEntry` fields
|
|
62
|
+
* are seeded from it at boot (SuperAdmin edits remain untouched), so that
|
|
63
|
+
* the DB becomes the SSOT for UI metadata.
|
|
64
|
+
*
|
|
65
|
+
* Distinct from `billing/feature-ui-registry.tokens.ts`, which carries the
|
|
66
|
+
* registry for the PUBLIC catalog endpoints. Same exported name, different
|
|
67
|
+
* token on purpose — an app may curate the two surfaces differently. The key
|
|
68
|
+
* is namespaced accordingly so the two never collide.
|
|
69
|
+
*/
|
|
70
|
+
declare const CATALOG_FEATURE_UI_REGISTRY_TOKEN: unique symbol;
|
|
59
71
|
|
|
60
72
|
/**
|
|
61
73
|
* Advisory warnings (#35): they inform but never block — not even in
|
|
@@ -535,4 +547,4 @@ declare class PublishPlanVersionDto {
|
|
|
535
547
|
validUntil?: string | null;
|
|
536
548
|
}
|
|
537
549
|
|
|
538
|
-
export { ADVISORY_STRICT_MODE_CODES, BUNDLE_REPOSITORY_TOKEN, CATALOG_ENTRY_REPOSITORY_TOKEN, CATALOG_SERVICE_CONFIG_TOKEN, CreateBundleDto, CreateBundleVersionDraftDto, CreateMarketingProjectionDto, CreatePlanDto, CreatePlanVersionDraftDto, CreatePromotionDto, ListCatalogEntriesQueryDto, ListMarketingProjectionsQueryDto, ListMarketingSettingsQueryDto, ListPromotionsQueryDto, MARKETING_PROJECTION_REPOSITORY_TOKEN, MARKETING_SETTINGS_REPOSITORY_TOKEN, PLAN_REPOSITORY_TOKEN, PROMOTION_REPOSITORY_TOKEN, type PreflightFinding, type PreflightInput, type PreflightReport, PublishBundleVersionDto, PublishPlanVersionDto, ReviewCatalogEntryDto, type SeedBundleDraft, type SeedGateFinding, type SeedGateInput, type SeedGateMode, type SeedGateReport, type SeedGateRunOptions, type SeedPlanDraft, SyncDiscoveryDto, UpdateBundleDto, UpdateBundleVersionDraftDto, UpdateCatalogEntryI18nDto, UpdateMarketingProjectionDto, UpdateMarketingSettingsDto, UpdatePlanDto, UpdatePlanVersionDraftDto, UpdatePromotionDto, blockingStrictModeWarnings, buildBundleVersionsController, buildBundlesController, buildCatalogEntriesController, buildMarketingProjectionsController, buildMarketingSettingsController, buildPlanVersionsController, buildPlansController, buildPromotionsController, buildPublicMarketingCatalogController, featureApprovalSignature, formatPreflightReport, formatSeedGateReport, loadApprovedCatalogKeys, preflightExitCode, quotaApprovalSignature, runPreflight, runSeedGateFromFile, seedGateExitCode, validateBundleDraft, validatePlanDraft, validateSeedAgainstSnapshot };
|
|
550
|
+
export { ADVISORY_STRICT_MODE_CODES, BUNDLE_REPOSITORY_TOKEN, CATALOG_ENTRY_REPOSITORY_TOKEN, CATALOG_FEATURE_UI_REGISTRY_TOKEN, CATALOG_SERVICE_CONFIG_TOKEN, CreateBundleDto, CreateBundleVersionDraftDto, CreateMarketingProjectionDto, CreatePlanDto, CreatePlanVersionDraftDto, CreatePromotionDto, ListCatalogEntriesQueryDto, ListMarketingProjectionsQueryDto, ListMarketingSettingsQueryDto, ListPromotionsQueryDto, MARKETING_PROJECTION_REPOSITORY_TOKEN, MARKETING_SETTINGS_REPOSITORY_TOKEN, PLAN_REPOSITORY_TOKEN, PROMOTION_REPOSITORY_TOKEN, type PreflightFinding, type PreflightInput, type PreflightReport, PublishBundleVersionDto, PublishPlanVersionDto, ReviewCatalogEntryDto, type SeedBundleDraft, type SeedGateFinding, type SeedGateInput, type SeedGateMode, type SeedGateReport, type SeedGateRunOptions, type SeedPlanDraft, SyncDiscoveryDto, UpdateBundleDto, UpdateBundleVersionDraftDto, UpdateCatalogEntryI18nDto, UpdateMarketingProjectionDto, UpdateMarketingSettingsDto, UpdatePlanDto, UpdatePlanVersionDraftDto, UpdatePromotionDto, blockingStrictModeWarnings, buildBundleVersionsController, buildBundlesController, buildCatalogEntriesController, buildMarketingProjectionsController, buildMarketingSettingsController, buildPlanVersionsController, buildPlansController, buildPromotionsController, buildPublicMarketingCatalogController, featureApprovalSignature, formatPreflightReport, formatSeedGateReport, loadApprovedCatalogKeys, preflightExitCode, quotaApprovalSignature, runPreflight, runSeedGateFromFile, seedGateExitCode, validateBundleDraft, validatePlanDraft, validateSeedAgainstSnapshot };
|
package/dist/catalog/index.js
CHANGED
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
runSeedGateFromFile,
|
|
7
7
|
seedGateExitCode,
|
|
8
8
|
validateSeedAgainstSnapshot
|
|
9
|
-
} from "../chunk-
|
|
9
|
+
} from "../chunk-3UZW7TU4.js";
|
|
10
10
|
import "../chunk-74SCJ4HF.js";
|
|
11
11
|
import {
|
|
12
12
|
ADVISORY_STRICT_MODE_CODES,
|
|
@@ -56,29 +56,31 @@ import {
|
|
|
56
56
|
quotaApprovalSignature,
|
|
57
57
|
validateBundleDraft,
|
|
58
58
|
validatePlanDraft
|
|
59
|
-
} from "../chunk-
|
|
60
|
-
import "../chunk-
|
|
61
|
-
import "../chunk-
|
|
59
|
+
} from "../chunk-SH7J5IU7.js";
|
|
60
|
+
import "../chunk-S6BAD5XM.js";
|
|
61
|
+
import "../chunk-O2J2HDXA.js";
|
|
62
62
|
import "../chunk-YSC46BGM.js";
|
|
63
|
-
import "../chunk-
|
|
64
|
-
import "../chunk-
|
|
63
|
+
import "../chunk-WXYJHZCN.js";
|
|
64
|
+
import "../chunk-OUDSQ3PU.js";
|
|
65
65
|
import {
|
|
66
66
|
BUNDLE_REPOSITORY_TOKEN,
|
|
67
67
|
CATALOG_ENTRY_REPOSITORY_TOKEN,
|
|
68
|
+
CATALOG_FEATURE_UI_REGISTRY_TOKEN,
|
|
68
69
|
CATALOG_SERVICE_CONFIG_TOKEN,
|
|
69
70
|
MARKETING_PROJECTION_REPOSITORY_TOKEN,
|
|
70
71
|
MARKETING_SETTINGS_REPOSITORY_TOKEN,
|
|
71
72
|
PLAN_REPOSITORY_TOKEN,
|
|
72
73
|
PROMOTION_REPOSITORY_TOKEN
|
|
73
|
-
} from "../chunk-
|
|
74
|
+
} from "../chunk-AOQJEYOL.js";
|
|
74
75
|
import "../chunk-SABTXESR.js";
|
|
75
|
-
import "../chunk-
|
|
76
|
+
import "../chunk-QUZU2M33.js";
|
|
76
77
|
import "../chunk-SHUYVCID.js";
|
|
77
78
|
export {
|
|
78
79
|
ADVISORY_STRICT_MODE_CODES,
|
|
79
80
|
BUNDLE_REPOSITORY_TOKEN,
|
|
80
81
|
BundlesService,
|
|
81
82
|
CATALOG_ENTRY_REPOSITORY_TOKEN,
|
|
83
|
+
CATALOG_FEATURE_UI_REGISTRY_TOKEN,
|
|
82
84
|
CATALOG_SERVICE_CONFIG_TOKEN,
|
|
83
85
|
CatalogEntriesService,
|
|
84
86
|
CatalogModule,
|
|
@@ -6,10 +6,10 @@ import {
|
|
|
6
6
|
CreateCheckoutOfferDto,
|
|
7
7
|
UpdateCheckoutOfferDto,
|
|
8
8
|
buildCheckoutOfferController
|
|
9
|
-
} from "../chunk-
|
|
9
|
+
} from "../chunk-AEEK64XD.js";
|
|
10
10
|
import "../chunk-BSK6YBLI.js";
|
|
11
11
|
import "../chunk-YSC46BGM.js";
|
|
12
|
-
import "../chunk-
|
|
12
|
+
import "../chunk-AOQJEYOL.js";
|
|
13
13
|
import "../chunk-SABTXESR.js";
|
|
14
14
|
import "../chunk-SHUYVCID.js";
|
|
15
15
|
export {
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
BUNDLE_REPOSITORY_TOKEN,
|
|
9
9
|
CATALOG_ENTRY_REPOSITORY_TOKEN,
|
|
10
10
|
PLAN_REPOSITORY_TOKEN
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-AOQJEYOL.js";
|
|
12
12
|
import {
|
|
13
13
|
asProvider
|
|
14
14
|
} from "./chunk-SABTXESR.js";
|
|
@@ -16,8 +16,8 @@ import {
|
|
|
16
16
|
__name
|
|
17
17
|
} from "./chunk-SHUYVCID.js";
|
|
18
18
|
|
|
19
|
-
// src/checkout-offer/tokens.ts
|
|
20
|
-
var CHECKOUT_OFFER_REPOSITORY_TOKEN = /* @__PURE__ */ Symbol.for("
|
|
19
|
+
// src/checkout-offer/checkout-offer.tokens.ts
|
|
20
|
+
var CHECKOUT_OFFER_REPOSITORY_TOKEN = /* @__PURE__ */ Symbol.for("saasicat/nest/CheckoutOfferRepository");
|
|
21
21
|
|
|
22
22
|
// src/checkout-offer/checkout-offer.service.ts
|
|
23
23
|
import { ConflictException, Inject, Injectable, NotFoundException, Optional, UnprocessableEntityException } from "@nestjs/common";
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
// src/catalog/catalog.tokens.ts
|
|
2
|
+
var PLAN_REPOSITORY_TOKEN = /* @__PURE__ */ Symbol.for("saasicat/nest/PlanRepository");
|
|
3
|
+
var BUNDLE_REPOSITORY_TOKEN = /* @__PURE__ */ Symbol.for("saasicat/nest/BundleRepository");
|
|
4
|
+
var MARKETING_PROJECTION_REPOSITORY_TOKEN = /* @__PURE__ */ Symbol.for("saasicat/nest/MarketingProjectionRepository");
|
|
5
|
+
var CATALOG_ENTRY_REPOSITORY_TOKEN = /* @__PURE__ */ Symbol.for("saasicat/nest/CatalogEntryRepository");
|
|
6
|
+
var PROMOTION_REPOSITORY_TOKEN = /* @__PURE__ */ Symbol.for("saasicat/nest/PromotionRepository");
|
|
7
|
+
var MARKETING_SETTINGS_REPOSITORY_TOKEN = /* @__PURE__ */ Symbol.for("saasicat/nest/MarketingSettingsRepository");
|
|
8
|
+
var CATALOG_SERVICE_CONFIG_TOKEN = /* @__PURE__ */ Symbol.for("saasicat/nest/CatalogServiceConfig");
|
|
9
|
+
var CATALOG_FEATURE_UI_REGISTRY_TOKEN = /* @__PURE__ */ Symbol.for("saasicat/nest/CatalogFeatureUiRegistry");
|
|
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
|
+
CATALOG_FEATURE_UI_REGISTRY_TOKEN
|
|
20
|
+
};
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
2
|
EntitlementService,
|
|
3
3
|
SUBSCRIPTION_BUNDLE_REPOSITORY_TOKEN
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-XEW6YXL5.js";
|
|
5
5
|
import {
|
|
6
6
|
SUBSCRIPTION_CONTRACT_REPOSITORY_TOKEN
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-VBRYPU7V.js";
|
|
8
8
|
import {
|
|
9
9
|
ENTITLEMENT_RESOLUTION_CONFIG_TOKEN,
|
|
10
10
|
ENTITLEMENT_SERVICE_TOKEN,
|
|
11
11
|
PLAN_VERSION_REPOSITORY_TOKEN,
|
|
12
12
|
SUBSCRIPTION_REPOSITORY_TOKEN,
|
|
13
13
|
TRANSACTION_RUNNER_TOKEN
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-OUDSQ3PU.js";
|
|
15
15
|
import {
|
|
16
16
|
BUNDLE_REPOSITORY_TOKEN
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-AOQJEYOL.js";
|
|
18
18
|
import {
|
|
19
19
|
asProvider
|
|
20
20
|
} from "./chunk-SABTXESR.js";
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
__name
|
|
23
23
|
} from "./chunk-SHUYVCID.js";
|
|
24
24
|
|
|
25
|
-
// src/entitlement/module.ts
|
|
25
|
+
// src/entitlement/entitlement.module.ts
|
|
26
26
|
import { Module } from "@nestjs/common";
|
|
27
27
|
function _ts_decorate(decorators, target, key, desc) {
|
|
28
28
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DiscoveryScanner
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-WXYJHZCN.js";
|
|
4
4
|
import {
|
|
5
5
|
DEFINES_QUOTA_KEY,
|
|
6
6
|
DISCOVERY_SNAPSHOT_TOKEN,
|
|
7
7
|
ENFORCE_QUOTA_KEY,
|
|
8
8
|
IMPLEMENTS_CAPABILITY_KEY,
|
|
9
9
|
REQUIRES_CAPABILITY_KEY
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-QUZU2M33.js";
|
|
11
11
|
import {
|
|
12
12
|
__name
|
|
13
13
|
} from "./chunk-SHUYVCID.js";
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
AdminAuditService,
|
|
4
4
|
MFA_PORT_TOKEN,
|
|
5
5
|
RLS_BYPASS_PORT_TOKEN
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-O2J2HDXA.js";
|
|
7
7
|
import {
|
|
8
8
|
SaaSiCatPublicRoute
|
|
9
9
|
} from "./chunk-YSC46BGM.js";
|
|
@@ -53,7 +53,7 @@ SuperAdminGuard = _ts_decorate([
|
|
|
53
53
|
Injectable()
|
|
54
54
|
], SuperAdminGuard);
|
|
55
55
|
|
|
56
|
-
// src/admin/mfa.ts
|
|
56
|
+
// src/admin/mfa.service.ts
|
|
57
57
|
import { Inject, Injectable as Injectable2, Logger } from "@nestjs/common";
|
|
58
58
|
import { generateSecret, generateURI, verify as verifyTotpCode } from "otplib";
|
|
59
59
|
function _ts_decorate2(decorators, target, key, desc) {
|
|
@@ -176,7 +176,7 @@ function _ts_param2(paramIndex, decorator) {
|
|
|
176
176
|
};
|
|
177
177
|
}
|
|
178
178
|
__name(_ts_param2, "_ts_param");
|
|
179
|
-
var REQUIRE_MFA_KEY = "
|
|
179
|
+
var REQUIRE_MFA_KEY = "saasicat/nest/require-mfa";
|
|
180
180
|
var RequireMfa = /* @__PURE__ */ __name(() => SetMetadata(REQUIRE_MFA_KEY, true), "RequireMfa");
|
|
181
181
|
var MfaGuard = class _MfaGuard {
|
|
182
182
|
static {
|
|
@@ -295,7 +295,7 @@ AdminBypassRlsInterceptor = _ts_decorate4([
|
|
|
295
295
|
])
|
|
296
296
|
], AdminBypassRlsInterceptor);
|
|
297
297
|
|
|
298
|
-
// src/admin/module.ts
|
|
298
|
+
// src/admin/admin.module.ts
|
|
299
299
|
import { Module } from "@nestjs/common";
|
|
300
300
|
function _ts_decorate5(decorators, target, key, desc) {
|
|
301
301
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
@@ -342,7 +342,7 @@ AdminModule = _ts_decorate5([
|
|
|
342
342
|
], AdminModule);
|
|
343
343
|
|
|
344
344
|
// src/admin/admin-manifest.config.ts
|
|
345
|
-
var ADMIN_MANIFEST_CONFIG = /* @__PURE__ */ Symbol.for("
|
|
345
|
+
var ADMIN_MANIFEST_CONFIG = /* @__PURE__ */ Symbol.for("saasicat/nest/AdminManifestConfig");
|
|
346
346
|
|
|
347
347
|
// src/admin/admin-manifest.service.ts
|
|
348
348
|
import { Inject as Inject4, Injectable as Injectable5, Logger as Logger3, Optional } from "@nestjs/common";
|
|
@@ -364,7 +364,7 @@ function _ts_param4(paramIndex, decorator) {
|
|
|
364
364
|
};
|
|
365
365
|
}
|
|
366
366
|
__name(_ts_param4, "_ts_param");
|
|
367
|
-
var PLATFORM_CORE_CONTRIBUTION_TOKEN = /* @__PURE__ */ Symbol.for("
|
|
367
|
+
var PLATFORM_CORE_CONTRIBUTION_TOKEN = /* @__PURE__ */ Symbol.for("saasicat/nest/PlatformCoreContribution");
|
|
368
368
|
var AdminManifestService = class _AdminManifestService {
|
|
369
369
|
static {
|
|
370
370
|
__name(this, "AdminManifestService");
|
|
@@ -954,10 +954,10 @@ AdminManifestModule = _ts_decorate8([
|
|
|
954
954
|
], AdminManifestModule);
|
|
955
955
|
|
|
956
956
|
// src/admin/admin-stats.tokens.ts
|
|
957
|
-
var SUBSCRIPTION_STATS_PORT_TOKEN = /* @__PURE__ */ Symbol.for("
|
|
958
|
-
var PROMO_CODE_STATS_PORT_TOKEN = /* @__PURE__ */ Symbol.for("
|
|
959
|
-
var AUDIT_STATS_PORT_TOKEN = /* @__PURE__ */ Symbol.for("
|
|
960
|
-
var ADMIN_STATS_AUDIT_WINDOW_DAYS_TOKEN = /* @__PURE__ */ Symbol.for("
|
|
957
|
+
var SUBSCRIPTION_STATS_PORT_TOKEN = /* @__PURE__ */ Symbol.for("saasicat/nest/SubscriptionStatsPort");
|
|
958
|
+
var PROMO_CODE_STATS_PORT_TOKEN = /* @__PURE__ */ Symbol.for("saasicat/nest/PromoCodeStatsPort");
|
|
959
|
+
var AUDIT_STATS_PORT_TOKEN = /* @__PURE__ */ Symbol.for("saasicat/nest/AuditStatsPort");
|
|
960
|
+
var ADMIN_STATS_AUDIT_WINDOW_DAYS_TOKEN = /* @__PURE__ */ Symbol.for("saasicat/nest/AdminStatsAuditWindowDays");
|
|
961
961
|
|
|
962
962
|
// src/admin/admin-stats.service.ts
|
|
963
963
|
import { Inject as Inject7, Injectable as Injectable6, Optional as Optional2 } from "@nestjs/common";
|
|
@@ -1176,7 +1176,7 @@ function _ts_param9(paramIndex, decorator) {
|
|
|
1176
1176
|
};
|
|
1177
1177
|
}
|
|
1178
1178
|
__name(_ts_param9, "_ts_param");
|
|
1179
|
-
var ADMIN_RESOURCES_PORT_TOKEN = /* @__PURE__ */ Symbol.for("
|
|
1179
|
+
var ADMIN_RESOURCES_PORT_TOKEN = /* @__PURE__ */ Symbol.for("saasicat/nest/AdminResourcesPort");
|
|
1180
1180
|
var SuspendTenantDto = class {
|
|
1181
1181
|
static {
|
|
1182
1182
|
__name(this, "SuspendTenantDto");
|