@saasicat/nest 0.26.0 → 0.27.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/LICENSE +90 -201
- package/dist/_entries.cjs +3265 -2846
- package/dist/billing/index.d.cts +4 -4
- package/dist/billing/index.d.ts +4 -4
- package/dist/billing/index.js +33 -31
- package/dist/catalog/index.js +5 -5
- package/dist/checkout-offer/index.js +2 -2
- package/dist/chunk-2FR6ZL7R.js +0 -0
- package/dist/chunk-2JTISFUZ.js +792 -0
- package/dist/chunk-2SLTRKXC.js +0 -0
- package/dist/chunk-3E6ONOMG.js +50 -0
- package/dist/{chunk-UOWK2HYG.js → chunk-7ZPFQXHM.js} +1 -1
- package/dist/{chunk-B7NRY2LV.js → chunk-CJFAOD7K.js} +1 -39
- package/dist/{chunk-J62YI25C.js → chunk-EHKMPP6J.js} +1194 -775
- package/dist/{chunk-RPO4IVUY.js → chunk-F4B2NJUZ.js} +26 -91
- package/dist/chunk-H4DOTO7S.js +85 -0
- package/dist/{chunk-V3MRZ7SH.js → chunk-UHD6FJBQ.js} +421 -1197
- package/dist/{define-saasicat-BK6RRWWG.d.ts → define-saasicat-3ois8t8s.d.ts} +26 -3
- package/dist/{define-saasicat-D30I-WET.d.cts → define-saasicat-CFxut1VR.d.cts} +26 -3
- package/dist/{enforce-quota.interceptor-B9QueAFf.d.ts → enforce-quota.interceptor-CYDNvAQz.d.ts} +3 -3
- package/dist/{enforce-quota.interceptor-DY6CLjoP.d.cts → enforce-quota.interceptor-N80KC34N.d.cts} +3 -3
- package/dist/entitlement/index.js +7 -4
- package/dist/index.d.cts +5 -5
- package/dist/index.d.ts +5 -5
- package/dist/index.js +87 -79
- package/dist/{saas-platform.module-D1mUZPrz.d.ts → module-options-ByJL7FZm.d.ts} +40 -27
- package/dist/{saas-platform.module-CgalxzcT.d.cts → module-options-klrPnWGF.d.cts} +40 -27
- package/dist/platform/index.d.cts +201 -19
- package/dist/platform/index.d.ts +201 -19
- package/dist/platform/index.js +58 -33
- package/dist/promo/index.js +2 -2
- package/dist/subscription-contract/index.js +5 -2
- package/dist/{tenant-billing.controller-DHSUrT_N.d.cts → tenant-billing.controller-CAMMdfn1.d.cts} +1 -1
- package/dist/{tenant-billing.controller-BSlpFqVA.d.ts → tenant-billing.controller-CYYK0CpT.d.ts} +1 -1
- package/dist/{subscription-bundles.module-BDbODWvA.d.ts → tenant-billing.module-B0stLoJn.d.ts} +51 -51
- package/dist/{subscription-bundles.module-Cfi-lFWF.d.cts → tenant-billing.module-BxJS6fX4.d.cts} +51 -51
- package/dist/testing/index.d.cts +8 -8
- package/dist/testing/index.d.ts +8 -8
- package/dist/testing/index.js +13 -11
- package/package.json +4 -4
- package/dist/{chunk-QB7MICKQ.js → chunk-7X5MSAIL.js} +9 -9
- package/dist/{chunk-FY4EJTV4.js → chunk-OYNHOY45.js} +0 -0
- package/dist/{chunk-I4XD43AN.js → chunk-XTVAFJ3P.js} +3 -3
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as _nestjs_common from '@nestjs/common';
|
|
2
|
-
import { ExecutionContext } from '@nestjs/common';
|
|
2
|
+
import { ExecutionContext, DynamicModule } from '@nestjs/common';
|
|
3
3
|
import { Reflector } from '@nestjs/core';
|
|
4
4
|
import { SuperAdminProvisioningPort, SetupStatusResponse, SetupRequest, SetupResult, SetupConfirmMfaRequest, SetupConfirmMfaResponse } from '@saasicat/types';
|
|
5
5
|
import { h as MfaService } from './admin-stats.service-Db2exT_d.js';
|
|
6
|
-
import {
|
|
6
|
+
import { e as SaasPlatformModuleOptions } from './module-options-ByJL7FZm.js';
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* Shared metadata key for endpoints that intentionally run without application
|
|
@@ -36,6 +36,29 @@ declare class SetupService {
|
|
|
36
36
|
private assertNoSuperAdmin;
|
|
37
37
|
}
|
|
38
38
|
|
|
39
|
+
/**
|
|
40
|
+
* Bundles the complete standard SaaSiCat backend stack into a single
|
|
41
|
+
* `forRoot({...})` call. Reduces AppModule boilerplate and eliminates the
|
|
42
|
+
* ordering trap.
|
|
43
|
+
*
|
|
44
|
+
* Quickstart path (Prisma + PostgreSQL on the canonical schema):
|
|
45
|
+
*
|
|
46
|
+
* ```ts
|
|
47
|
+
* SaasPlatformModule.forRoot({
|
|
48
|
+
* planCatalog: loadPlanCatalogFromFile({ path: 'config/saas.yaml' }),
|
|
49
|
+
* controller: { guards: [JwtAuthGuard] },
|
|
50
|
+
* imports: [AuthModule],
|
|
51
|
+
* persistence: prismaPersistence({ client: PrismaService }), // @saasicat/adapter-prisma
|
|
52
|
+
* })
|
|
53
|
+
* ```
|
|
54
|
+
*
|
|
55
|
+
* Individual `adapters` entries stay supported (custom schema / other ORM)
|
|
56
|
+
* and override bundle slices field by field.
|
|
57
|
+
*/
|
|
58
|
+
declare class SaasPlatformModule {
|
|
59
|
+
static forRoot(options: SaasPlatformModuleOptions): DynamicModule;
|
|
60
|
+
}
|
|
61
|
+
|
|
39
62
|
/**
|
|
40
63
|
* Typed identity helper for the high-level SaaSiCat configuration. It keeps
|
|
41
64
|
* literal types and gives editors one place for completion without adding
|
|
@@ -43,4 +66,4 @@ declare class SetupService {
|
|
|
43
66
|
*/
|
|
44
67
|
declare function defineSaaSiCat<const T extends SaasPlatformModuleOptions>(options: T): T;
|
|
45
68
|
|
|
46
|
-
export { SetupService as S, SAASICAT_PUBLIC_ROUTE_KEY as a, SETUP_CONFIG_TOKEN as b, SETUP_PROVISIONING_PORT_TOKEN as c,
|
|
69
|
+
export { SetupService as S, SAASICAT_PUBLIC_ROUTE_KEY as a, SETUP_CONFIG_TOKEN as b, SETUP_PROVISIONING_PORT_TOKEN as c, SaasPlatformModule as d, SaaSiCatPublicRoute as e, type SetupConfig as f, defineSaaSiCat as g, isSaaSiCatPublicRoute as i };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as _nestjs_common from '@nestjs/common';
|
|
2
|
-
import { ExecutionContext } from '@nestjs/common';
|
|
2
|
+
import { ExecutionContext, DynamicModule } from '@nestjs/common';
|
|
3
3
|
import { Reflector } from '@nestjs/core';
|
|
4
4
|
import { SuperAdminProvisioningPort, SetupStatusResponse, SetupRequest, SetupResult, SetupConfirmMfaRequest, SetupConfirmMfaResponse } from '@saasicat/types';
|
|
5
5
|
import { h as MfaService } from './admin-stats.service-HUZIU448.cjs';
|
|
6
|
-
import {
|
|
6
|
+
import { e as SaasPlatformModuleOptions } from './module-options-klrPnWGF.cjs';
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* Shared metadata key for endpoints that intentionally run without application
|
|
@@ -36,6 +36,29 @@ declare class SetupService {
|
|
|
36
36
|
private assertNoSuperAdmin;
|
|
37
37
|
}
|
|
38
38
|
|
|
39
|
+
/**
|
|
40
|
+
* Bundles the complete standard SaaSiCat backend stack into a single
|
|
41
|
+
* `forRoot({...})` call. Reduces AppModule boilerplate and eliminates the
|
|
42
|
+
* ordering trap.
|
|
43
|
+
*
|
|
44
|
+
* Quickstart path (Prisma + PostgreSQL on the canonical schema):
|
|
45
|
+
*
|
|
46
|
+
* ```ts
|
|
47
|
+
* SaasPlatformModule.forRoot({
|
|
48
|
+
* planCatalog: loadPlanCatalogFromFile({ path: 'config/saas.yaml' }),
|
|
49
|
+
* controller: { guards: [JwtAuthGuard] },
|
|
50
|
+
* imports: [AuthModule],
|
|
51
|
+
* persistence: prismaPersistence({ client: PrismaService }), // @saasicat/adapter-prisma
|
|
52
|
+
* })
|
|
53
|
+
* ```
|
|
54
|
+
*
|
|
55
|
+
* Individual `adapters` entries stay supported (custom schema / other ORM)
|
|
56
|
+
* and override bundle slices field by field.
|
|
57
|
+
*/
|
|
58
|
+
declare class SaasPlatformModule {
|
|
59
|
+
static forRoot(options: SaasPlatformModuleOptions): DynamicModule;
|
|
60
|
+
}
|
|
61
|
+
|
|
39
62
|
/**
|
|
40
63
|
* Typed identity helper for the high-level SaaSiCat configuration. It keeps
|
|
41
64
|
* literal types and gives editors one place for completion without adding
|
|
@@ -43,4 +66,4 @@ declare class SetupService {
|
|
|
43
66
|
*/
|
|
44
67
|
declare function defineSaaSiCat<const T extends SaasPlatformModuleOptions>(options: T): T;
|
|
45
68
|
|
|
46
|
-
export { SetupService as S, SAASICAT_PUBLIC_ROUTE_KEY as a, SETUP_CONFIG_TOKEN as b, SETUP_PROVISIONING_PORT_TOKEN as c,
|
|
69
|
+
export { SetupService as S, SAASICAT_PUBLIC_ROUTE_KEY as a, SETUP_CONFIG_TOKEN as b, SETUP_PROVISIONING_PORT_TOKEN as c, SaasPlatformModule as d, SaaSiCatPublicRoute as e, type SetupConfig as f, defineSaaSiCat as g, isSaaSiCatPublicRoute as i };
|
package/dist/{enforce-quota.interceptor-B9QueAFf.d.ts → enforce-quota.interceptor-CYDNvAQz.d.ts}
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { CanActivate, ExecutionContext, NestInterceptor, CallHandler } from '@nestjs/common';
|
|
2
2
|
import { Reflector } from '@nestjs/core';
|
|
3
|
-
import { F as FEATURE_GUARD_MARKER } from './
|
|
3
|
+
import { F as FEATURE_GUARD_MARKER } from './tenant-billing.module-B0stLoJn.js';
|
|
4
4
|
import { Observable } from 'rxjs';
|
|
5
5
|
import { PlanCatalog, QuotaProvider } from '@saasicat/types';
|
|
6
|
-
import {
|
|
6
|
+
import { o as PlanResolverPort } from './module-options-ByJL7FZm.js';
|
|
7
7
|
|
|
8
8
|
interface StaticEntitlementSnapshot {
|
|
9
9
|
planId: string | null;
|
|
@@ -44,7 +44,7 @@ declare class StaticFeatureGuard implements CanActivate {
|
|
|
44
44
|
private readonly reflector;
|
|
45
45
|
private readonly entitlements;
|
|
46
46
|
private readonly config;
|
|
47
|
-
/** Lets `
|
|
47
|
+
/** Lets `EnforcementChainCheck` recognise this guard across CJS entries. */
|
|
48
48
|
static readonly [FEATURE_GUARD_MARKER] = true;
|
|
49
49
|
constructor(reflector: Reflector, entitlements: StaticEntitlementService, config?: StaticFeatureGuardConfig | null);
|
|
50
50
|
canActivate(context: ExecutionContext): Promise<boolean>;
|
package/dist/{enforce-quota.interceptor-DY6CLjoP.d.cts → enforce-quota.interceptor-N80KC34N.d.cts}
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { CanActivate, ExecutionContext, NestInterceptor, CallHandler } from '@nestjs/common';
|
|
2
2
|
import { Reflector } from '@nestjs/core';
|
|
3
|
-
import { F as FEATURE_GUARD_MARKER } from './
|
|
3
|
+
import { F as FEATURE_GUARD_MARKER } from './tenant-billing.module-BxJS6fX4.cjs';
|
|
4
4
|
import { Observable } from 'rxjs';
|
|
5
5
|
import { PlanCatalog, QuotaProvider } from '@saasicat/types';
|
|
6
|
-
import {
|
|
6
|
+
import { o as PlanResolverPort } from './module-options-klrPnWGF.cjs';
|
|
7
7
|
|
|
8
8
|
interface StaticEntitlementSnapshot {
|
|
9
9
|
planId: string | null;
|
|
@@ -44,7 +44,7 @@ declare class StaticFeatureGuard implements CanActivate {
|
|
|
44
44
|
private readonly reflector;
|
|
45
45
|
private readonly entitlements;
|
|
46
46
|
private readonly config;
|
|
47
|
-
/** Lets `
|
|
47
|
+
/** Lets `EnforcementChainCheck` recognise this guard across CJS entries. */
|
|
48
48
|
static readonly [FEATURE_GUARD_MARKER] = true;
|
|
49
49
|
constructor(reflector: Reflector, entitlements: StaticEntitlementService, config?: StaticFeatureGuardConfig | null);
|
|
50
50
|
canActivate(context: ExecutionContext): Promise<boolean>;
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
+
import "../chunk-2FR6ZL7R.js";
|
|
2
|
+
import {
|
|
3
|
+
EntitlementModule
|
|
4
|
+
} from "../chunk-H4DOTO7S.js";
|
|
1
5
|
import {
|
|
2
|
-
EntitlementModule,
|
|
3
6
|
EntitlementService,
|
|
4
7
|
LimitExceededError,
|
|
5
8
|
aggregateContractLineItemEntitlements,
|
|
@@ -19,9 +22,10 @@ import {
|
|
|
19
22
|
mergeSubscriptionBundlesIntoLimits,
|
|
20
23
|
resolveEntitlementPlan,
|
|
21
24
|
toEffectiveLimitsSnapshot
|
|
22
|
-
} from "../chunk-
|
|
25
|
+
} from "../chunk-F4B2NJUZ.js";
|
|
23
26
|
import "../chunk-DQKCK7DX.js";
|
|
24
27
|
import "../chunk-NYLON2VC.js";
|
|
28
|
+
import "../chunk-EBJJNTW6.js";
|
|
25
29
|
import {
|
|
26
30
|
ENTITLEMENT_RESOLUTION_CONFIG_TOKEN,
|
|
27
31
|
ENTITLEMENT_SERVICE_TOKEN,
|
|
@@ -30,9 +34,8 @@ import {
|
|
|
30
34
|
TRANSACTION_RUNNER_TOKEN
|
|
31
35
|
} from "../chunk-WKVBNTYC.js";
|
|
32
36
|
import "../chunk-L4KTQ6CL.js";
|
|
33
|
-
import "../chunk-L4SUWH5B.js";
|
|
34
|
-
import "../chunk-EBJJNTW6.js";
|
|
35
37
|
import "../chunk-SABTXESR.js";
|
|
38
|
+
import "../chunk-L4SUWH5B.js";
|
|
36
39
|
import "../chunk-SHUYVCID.js";
|
|
37
40
|
export {
|
|
38
41
|
ENTITLEMENT_RESOLUTION_CONFIG_TOKEN,
|
package/dist/index.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { P as ProviderSpec, a as asProvider } from './di-CcNeq9v-.cjs';
|
|
2
|
-
import { S as SetupService } from './define-saasicat-
|
|
3
|
-
export { a as SAASICAT_PUBLIC_ROUTE_KEY, b as SETUP_CONFIG_TOKEN, c as SETUP_PROVISIONING_PORT_TOKEN, d as
|
|
2
|
+
import { S as SetupService } from './define-saasicat-CFxut1VR.cjs';
|
|
3
|
+
export { a as SAASICAT_PUBLIC_ROUTE_KEY, b as SETUP_CONFIG_TOKEN, c as SETUP_PROVISIONING_PORT_TOKEN, d as SaaSiCatModule, e as SaaSiCatPublicRoute, d as SaasPlatformModule, f as SetupConfig, g as defineSaaSiCat, i as isSaaSiCatPublicRoute } from './define-saasicat-CFxut1VR.cjs';
|
|
4
4
|
export { CreatePromoCodeDto, PROMO_CODE_REDEMPTION_REPOSITORY_TOKEN, PROMO_CODE_REPOSITORY_TOKEN, PROMO_CODE_VALIDATION_LOG_REPOSITORY_TOKEN, PROMO_FIRST_TIME_CUSTOMER_CHECK_TOKEN, PROMO_REVENUE_DEDUCTION_AGGREGATOR_TOKEN, PROMO_SERVICE_CONFIG_TOKEN, PROMO_SUBSCRIPTION_LOOKUP_TOKEN, PROMO_TRANSACTION_RUNNER_TOKEN, PreviewPromoCodeDto, PromoCodeExpirer, PromoCodeForCalc, PromoCodePublicController, PromoLabelOptions, UpdatePromoCodeDto, addCycles, buildLabel, buildPromoCodeAdminController, computeDiscountGross, computeDiscountedGross, computeIncludedVat, computeRegularStartsAt, grossFromNet, round2 } from './promo/index.cjs';
|
|
5
5
|
export { a as PreviewInput, b as PreviewInvalid, c as PreviewReason, d as PreviewResult, e as PreviewValid, f as PromoCodeStats, g as PromoCodesService, P as PromoServiceConfig, R as RedeemInput } from './service-D48clObR.cjs';
|
|
6
6
|
export { P as PromoCodeRateLimitGuard, h as hashIp, i as ipFingerprint } from './rate-limit.guard-dntqAlfZ.cjs';
|
|
@@ -8,8 +8,8 @@ export { P as PromoCodesModule, a as PromoCodesModuleOptions } from './module-CH
|
|
|
8
8
|
export { AjvErrorLike, CatalogBundleUpsellResolver, ConfiguratorCatalogBuilder, FEATURE_GUARD_CONFIG_TOKEN, FEATURE_UI_REGISTRY_TOKEN, FeatureGuard, FeatureGuardConfig, LimitExceededFilter, LoadPlanCatalogOptions, MarketingFields, 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, PeriodRollInput, PlanCatalogBuildSettings, PlanCatalogImportDto, PlanCatalogImporterControllerConfig, PlanCatalogImporterModule, PlanCatalogImporterModuleOptions, PlanCatalogImporterService, PlanCatalogModule, PlanCatalogModuleOptions, PlanCatalogValidationError, PlanResponseEntry, PublicBundleEntry, PublicCatalogController, PublicCatalogModule, PublicCatalogModuleOptions, PublishValidationError, PublishablePlanVersion, REQUIRE_FEATURE_KEY, RenewalDecision, 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 } from './billing/index.cjs';
|
|
9
9
|
import { SetupStatusResponse, SetupResult, SetupConfirmMfaResponse, PlatformErrorCode, PlatformErrorBody } from '@saasicat/types';
|
|
10
10
|
export { BundleVersionFields, ChangeDirection, DiffResult, DiscoveredCapability, DiscoveredFeature, DiscoveredQuota, DiscoverySnapshot, PasswordHasher, PlanVersionFields, VersionChange, VersionChangeDirection, classifyBundleVersionDiff, classifyPlanDiff } from '@saasicat/types';
|
|
11
|
-
export { A as AUDIT_CONTEXT_RESOLVER_TOKEN, a as AuditContextResolver, b as AuthGuardList, C as CONTRACT_FREEZE_PORT_TOKEN, c as CONTRACT_FREEZE_PROJECT_KEY_TOKEN, d as CONTRACT_FREEZE_SOURCE_PORT_TOKEN, e as ContractFreezeBundleSnapshot, f as ContractFreezePort, g as ContractFreezeSourcePort, D as DuePendingPlanChange, F as FEATURE_GUARD_MARKER, M as MarkedFeatureGuard, P as PENDING_PLAN_QUERY_PORT_TOKEN, h as PendingPlanQueryPort, S as SELF_SERVICE_BLOCKED_BUNDLES_TOKEN, i as SELF_SERVICE_BLOCKED_PLANS_TOKEN, j as SUBSCRIPTION_USAGE_PORT_TOKEN, k as SUBSCRIPTION_WRITE_PORT_TOKEN, l as SelfServiceBlockedBundles, m as SelfServiceBlockedPlans, n as SubscriptionBundleControllerOptions, o as SubscriptionBundleModule, p as SubscriptionBundleModuleOptions, T as TENANT_AUTH_GUARDS_TOKEN, q as TENANT_ID_RESOLVER_TOKEN, r as TRIAL_PROJECTION_PORT_TOKEN, s as TenantBillingModule, t as TenantBillingModuleOptions, u as TenantIdResolver, v as TrialProjectionInput, w as TrialProjectionPort, U as USAGE_SNAPSHOT_PORT_TOKEN, x as USER_EMAIL_RESOLVER_TOKEN, y as USER_ID_RESOLVER_TOKEN, z as UserEmailResolver, B as UserIdResolver, E as isPlatformFeatureGuard } from './
|
|
12
|
-
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 AUDIT_CONTEXT_RESOLVER_TOKEN, a as AuditContextResolver, b as AuthGuardList, C as CONTRACT_FREEZE_PORT_TOKEN, c as CONTRACT_FREEZE_PROJECT_KEY_TOKEN, d as CONTRACT_FREEZE_SOURCE_PORT_TOKEN, e as ContractFreezeBundleSnapshot, f as ContractFreezePort, g as ContractFreezeSourcePort, D as DuePendingPlanChange, F as FEATURE_GUARD_MARKER, M as MarkedFeatureGuard, P as PENDING_PLAN_QUERY_PORT_TOKEN, h as PendingPlanQueryPort, S as SELF_SERVICE_BLOCKED_BUNDLES_TOKEN, i as SELF_SERVICE_BLOCKED_PLANS_TOKEN, j as SUBSCRIPTION_USAGE_PORT_TOKEN, k as SUBSCRIPTION_WRITE_PORT_TOKEN, l as SelfServiceBlockedBundles, m as SelfServiceBlockedPlans, n as SubscriptionBundleControllerOptions, o as SubscriptionBundleModule, p as SubscriptionBundleModuleOptions, T as TENANT_AUTH_GUARDS_TOKEN, q as TENANT_ID_RESOLVER_TOKEN, r as TRIAL_PROJECTION_PORT_TOKEN, s as TenantBillingModule, t as TenantBillingModuleOptions, u as TenantIdResolver, v as TrialProjectionInput, w as TrialProjectionPort, U as USAGE_SNAPSHOT_PORT_TOKEN, x as USER_EMAIL_RESOLVER_TOKEN, y as USER_ID_RESOLVER_TOKEN, z as UserEmailResolver, B as UserIdResolver, E as isPlatformFeatureGuard } from './tenant-billing.module-BxJS6fX4.cjs';
|
|
12
|
+
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-CAMMdfn1.cjs';
|
|
13
13
|
export { C as CustomLimitsShape, E as EffectiveLimits, a as EffectiveLimitsSnapshot, b as EnforceLimitInput, c as EntitlementService, P as PlanVersionSnapshot, S as SubscriptionBundleSnapshot, d as SubscriptionLimitsInput, e as aggregateContractLineItemEntitlements, f as aggregateLimits, g as aggregateSubscriptionBundleQuotas, h as applyCustomLimits, i as collectSubscriptionBundleFeatures, j as contractBundleVersionIds, k as contractLimits, l as filterActiveSubscriptionBundles, m as filterPlannedOnlyFeatures, n as hasAnyFeature, o as hasFeature, p as mergeSubscriptionBundlesIntoLimits, t as toEffectiveLimitsSnapshot } from './aggregation-mZ7WZROK.cjs';
|
|
14
14
|
export { ENTITLEMENT_RESOLUTION_CONFIG_TOKEN, ENTITLEMENT_SERVICE_TOKEN, EntitlementModule, EntitlementModuleOptions, LimitExceededError, PLAN_VERSION_REPOSITORY_TOKEN, ReplacedByIndex, SUBSCRIPTION_REPOSITORY_TOKEN, TRANSACTION_RUNNER_TOKEN, buildReplacedByIndex, expandReplacedFeatures, isLimitExceededError } from './entitlement/index.cjs';
|
|
15
15
|
export { E as EntitlementResolutionConfig, a as EntitlementResolutionInput, r as resolveEntitlementPlan } from './plan-resolution-CFCoUkrE.cjs';
|
|
@@ -17,7 +17,7 @@ export { ADMIN_STATS_AUDIT_WINDOW_DAYS_TOKEN, AUDIT_PORT_TOKEN, AUDIT_STATS_PORT
|
|
|
17
17
|
export { A as AdminBypassRlsInterceptor, a as AdminManifestModule, b as AdminManifestModuleOptions, c as AdminManifestService, d as AdminModule, e as AdminModuleOptions, f as AdminStatsService, g as AdminStatsSnapshot, 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-HUZIU448.cjs';
|
|
18
18
|
export { A as AdminAuditService } from './admin-audit.service-9IqXMlZm.cjs';
|
|
19
19
|
export { A as ADMIN_MANIFEST_CONFIG, a as ADMIN_RESOURCES_PORT_TOKEN, b as AdminManifestConfig, c as AdminResourcesModule, d as AdminResourcesModuleOptions, e as AdminResourcesService, f as AdminStatsModule, g as AdminStatsModuleOptions, S as SuspendTenantDto } from './admin-resources.module-DGgGSdzN.cjs';
|
|
20
|
-
export { S as
|
|
20
|
+
export { S as SaasPlatformAdapters, a as SaasPlatformAdminResourcesOptions, b as SaasPlatformAdminStatsOptions, c as SaasPlatformCatalogOptions, d as SaasPlatformCheckoutOfferOptions, e as SaasPlatformModuleOptions, f as SaasPlatformPromoCodesOptions, g as SaasPlatformSetupOptions, h as SaasPlatformSubscriptionBundlesOptions, i as SaasPlatformSubscriptionContractOptions, j as SaasPlatformTenantAuthGuards, k as SaasPlatformTenantBillingOptions, l as SetupModule, m as SetupModuleOptions } from './module-options-klrPnWGF.cjs';
|
|
21
21
|
export { ACTIVATION_ORCHESTRATOR_TOKEN, BaseIpRateLimitGuard, ContinueRegistrationDto, PASSWORD_HASHER_TOKEN, PAYMENT_EVENT_LOG_TOKEN, PAYMENT_PROVIDER_TOKEN, PENDING_REGISTRATION_REPOSITORY_TOKEN, PLAN_CATALOG_LOOKUP_TOKEN, PaymentWebhookDto, PendingRegistrationService, PreviewRegistrationPromoDto, PromoEvaluation, REGISTRATION_AUDIT_LOGGER_TOKEN, REGISTRATION_CONFIGURATOR_LOOKUP_TOKEN, REGISTRATION_CONFIG_TOKEN, REGISTRATION_OTP_DELIVERY_TOKEN, REGISTRATION_PROMO_PREVIEW_TOKEN, REGISTRATION_RESUME_BASE_URL_TOKEN, REGISTRATION_RESUME_DELIVERY_TOKEN, REGISTRATION_RESUME_TOKEN_SIGNER_TOKEN, RegisterStartDto, RegistrationCleanupCron, RegistrationModule, RegistrationModuleOptions, ResendRegistrationOtpDto, SLUG_AVAILABILITY_CHECK_TOKEN, SaveRegistrationConfigDto, SaveRegistrationConfigSelectionDto, SelectRegistrationPlanDto, StartRegistrationCheckoutDto, USER_ACCOUNT_LOOKUP_TOKEN, VerifyRegistrationOtpDto, computeBreakdown, generateOtpCode, hashOtpCode, resolveModel, slugify, verifyOtpCode } from './registration/index.cjs';
|
|
22
22
|
export { DEFINES_QUOTA_KEY, DISCOVERY_SNAPSHOT_TOKEN, DefinesQuota, DefinesQuotaOptions, DiscoveryControllerConfig, DiscoveryModule, DiscoveryModuleOptions, DiscoverySnapshotNotFoundError, ENFORCE_QUOTA_KEY, EnforceQuota, EnforceQuotaMetadata, EnforceQuotaOptions, HeadlessScanOptions, IMPLEMENTS_CAPABILITY_KEY, ImplementsCapability, ImplementsCapabilityMetadata, ImplementsCapabilityOptions, REQUIRES_CAPABILITY_KEY, RequiresCapability, RequiresCapabilityKeys, buildDiscoveryController, loadDiscoverySnapshotFromFile, runHeadlessDiscoveryScan } from './discovery/index.cjs';
|
|
23
23
|
export { D as DISCOVERY_APP_INFO_TOKEN, a as DISCOVERY_SNAPSHOT_PATH_TOKEN, b as DiscoveryAppInfo, c as DiscoveryScanner, d as computeSnapshotHash } from './discovery.scanner-DLgEvuoy.cjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { P as ProviderSpec, a as asProvider } from './di-CcNeq9v-.js';
|
|
2
|
-
import { S as SetupService } from './define-saasicat-
|
|
3
|
-
export { a as SAASICAT_PUBLIC_ROUTE_KEY, b as SETUP_CONFIG_TOKEN, c as SETUP_PROVISIONING_PORT_TOKEN, d as
|
|
2
|
+
import { S as SetupService } from './define-saasicat-3ois8t8s.js';
|
|
3
|
+
export { a as SAASICAT_PUBLIC_ROUTE_KEY, b as SETUP_CONFIG_TOKEN, c as SETUP_PROVISIONING_PORT_TOKEN, d as SaaSiCatModule, e as SaaSiCatPublicRoute, d as SaasPlatformModule, f as SetupConfig, g as defineSaaSiCat, i as isSaaSiCatPublicRoute } from './define-saasicat-3ois8t8s.js';
|
|
4
4
|
export { CreatePromoCodeDto, PROMO_CODE_REDEMPTION_REPOSITORY_TOKEN, PROMO_CODE_REPOSITORY_TOKEN, PROMO_CODE_VALIDATION_LOG_REPOSITORY_TOKEN, PROMO_FIRST_TIME_CUSTOMER_CHECK_TOKEN, PROMO_REVENUE_DEDUCTION_AGGREGATOR_TOKEN, PROMO_SERVICE_CONFIG_TOKEN, PROMO_SUBSCRIPTION_LOOKUP_TOKEN, PROMO_TRANSACTION_RUNNER_TOKEN, PreviewPromoCodeDto, PromoCodeExpirer, PromoCodeForCalc, PromoCodePublicController, PromoLabelOptions, UpdatePromoCodeDto, addCycles, buildLabel, buildPromoCodeAdminController, computeDiscountGross, computeDiscountedGross, computeIncludedVat, computeRegularStartsAt, grossFromNet, round2 } from './promo/index.js';
|
|
5
5
|
export { a as PreviewInput, b as PreviewInvalid, c as PreviewReason, d as PreviewResult, e as PreviewValid, f as PromoCodeStats, g as PromoCodesService, P as PromoServiceConfig, R as RedeemInput } from './service-D48clObR.js';
|
|
6
6
|
export { P as PromoCodeRateLimitGuard, h as hashIp, i as ipFingerprint } from './rate-limit.guard-dntqAlfZ.js';
|
|
@@ -8,8 +8,8 @@ export { P as PromoCodesModule, a as PromoCodesModuleOptions } from './module-BE
|
|
|
8
8
|
export { AjvErrorLike, CatalogBundleUpsellResolver, ConfiguratorCatalogBuilder, FEATURE_GUARD_CONFIG_TOKEN, FEATURE_UI_REGISTRY_TOKEN, FeatureGuard, FeatureGuardConfig, LimitExceededFilter, LoadPlanCatalogOptions, MarketingFields, 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, PeriodRollInput, PlanCatalogBuildSettings, PlanCatalogImportDto, PlanCatalogImporterControllerConfig, PlanCatalogImporterModule, PlanCatalogImporterModuleOptions, PlanCatalogImporterService, PlanCatalogModule, PlanCatalogModuleOptions, PlanCatalogValidationError, PlanResponseEntry, PublicBundleEntry, PublicCatalogController, PublicCatalogModule, PublicCatalogModuleOptions, PublishValidationError, PublishablePlanVersion, REQUIRE_FEATURE_KEY, RenewalDecision, 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 } from './billing/index.js';
|
|
9
9
|
import { SetupStatusResponse, SetupResult, SetupConfirmMfaResponse, PlatformErrorCode, PlatformErrorBody } from '@saasicat/types';
|
|
10
10
|
export { BundleVersionFields, ChangeDirection, DiffResult, DiscoveredCapability, DiscoveredFeature, DiscoveredQuota, DiscoverySnapshot, PasswordHasher, PlanVersionFields, VersionChange, VersionChangeDirection, classifyBundleVersionDiff, classifyPlanDiff } from '@saasicat/types';
|
|
11
|
-
export { A as AUDIT_CONTEXT_RESOLVER_TOKEN, a as AuditContextResolver, b as AuthGuardList, C as CONTRACT_FREEZE_PORT_TOKEN, c as CONTRACT_FREEZE_PROJECT_KEY_TOKEN, d as CONTRACT_FREEZE_SOURCE_PORT_TOKEN, e as ContractFreezeBundleSnapshot, f as ContractFreezePort, g as ContractFreezeSourcePort, D as DuePendingPlanChange, F as FEATURE_GUARD_MARKER, M as MarkedFeatureGuard, P as PENDING_PLAN_QUERY_PORT_TOKEN, h as PendingPlanQueryPort, S as SELF_SERVICE_BLOCKED_BUNDLES_TOKEN, i as SELF_SERVICE_BLOCKED_PLANS_TOKEN, j as SUBSCRIPTION_USAGE_PORT_TOKEN, k as SUBSCRIPTION_WRITE_PORT_TOKEN, l as SelfServiceBlockedBundles, m as SelfServiceBlockedPlans, n as SubscriptionBundleControllerOptions, o as SubscriptionBundleModule, p as SubscriptionBundleModuleOptions, T as TENANT_AUTH_GUARDS_TOKEN, q as TENANT_ID_RESOLVER_TOKEN, r as TRIAL_PROJECTION_PORT_TOKEN, s as TenantBillingModule, t as TenantBillingModuleOptions, u as TenantIdResolver, v as TrialProjectionInput, w as TrialProjectionPort, U as USAGE_SNAPSHOT_PORT_TOKEN, x as USER_EMAIL_RESOLVER_TOKEN, y as USER_ID_RESOLVER_TOKEN, z as UserEmailResolver, B as UserIdResolver, E as isPlatformFeatureGuard } from './
|
|
12
|
-
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 AUDIT_CONTEXT_RESOLVER_TOKEN, a as AuditContextResolver, b as AuthGuardList, C as CONTRACT_FREEZE_PORT_TOKEN, c as CONTRACT_FREEZE_PROJECT_KEY_TOKEN, d as CONTRACT_FREEZE_SOURCE_PORT_TOKEN, e as ContractFreezeBundleSnapshot, f as ContractFreezePort, g as ContractFreezeSourcePort, D as DuePendingPlanChange, F as FEATURE_GUARD_MARKER, M as MarkedFeatureGuard, P as PENDING_PLAN_QUERY_PORT_TOKEN, h as PendingPlanQueryPort, S as SELF_SERVICE_BLOCKED_BUNDLES_TOKEN, i as SELF_SERVICE_BLOCKED_PLANS_TOKEN, j as SUBSCRIPTION_USAGE_PORT_TOKEN, k as SUBSCRIPTION_WRITE_PORT_TOKEN, l as SelfServiceBlockedBundles, m as SelfServiceBlockedPlans, n as SubscriptionBundleControllerOptions, o as SubscriptionBundleModule, p as SubscriptionBundleModuleOptions, T as TENANT_AUTH_GUARDS_TOKEN, q as TENANT_ID_RESOLVER_TOKEN, r as TRIAL_PROJECTION_PORT_TOKEN, s as TenantBillingModule, t as TenantBillingModuleOptions, u as TenantIdResolver, v as TrialProjectionInput, w as TrialProjectionPort, U as USAGE_SNAPSHOT_PORT_TOKEN, x as USER_EMAIL_RESOLVER_TOKEN, y as USER_ID_RESOLVER_TOKEN, z as UserEmailResolver, B as UserIdResolver, E as isPlatformFeatureGuard } from './tenant-billing.module-B0stLoJn.js';
|
|
12
|
+
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-CYYK0CpT.js';
|
|
13
13
|
export { C as CustomLimitsShape, E as EffectiveLimits, a as EffectiveLimitsSnapshot, b as EnforceLimitInput, c as EntitlementService, P as PlanVersionSnapshot, S as SubscriptionBundleSnapshot, d as SubscriptionLimitsInput, e as aggregateContractLineItemEntitlements, f as aggregateLimits, g as aggregateSubscriptionBundleQuotas, h as applyCustomLimits, i as collectSubscriptionBundleFeatures, j as contractBundleVersionIds, k as contractLimits, l as filterActiveSubscriptionBundles, m as filterPlannedOnlyFeatures, n as hasAnyFeature, o as hasFeature, p as mergeSubscriptionBundlesIntoLimits, t as toEffectiveLimitsSnapshot } from './aggregation-DP5zfKbU.js';
|
|
14
14
|
export { ENTITLEMENT_RESOLUTION_CONFIG_TOKEN, ENTITLEMENT_SERVICE_TOKEN, EntitlementModule, EntitlementModuleOptions, LimitExceededError, PLAN_VERSION_REPOSITORY_TOKEN, ReplacedByIndex, SUBSCRIPTION_REPOSITORY_TOKEN, TRANSACTION_RUNNER_TOKEN, buildReplacedByIndex, expandReplacedFeatures, isLimitExceededError } from './entitlement/index.js';
|
|
15
15
|
export { E as EntitlementResolutionConfig, a as EntitlementResolutionInput, r as resolveEntitlementPlan } from './plan-resolution-CFCoUkrE.js';
|
|
@@ -17,7 +17,7 @@ export { ADMIN_STATS_AUDIT_WINDOW_DAYS_TOKEN, AUDIT_PORT_TOKEN, AUDIT_STATS_PORT
|
|
|
17
17
|
export { A as AdminBypassRlsInterceptor, a as AdminManifestModule, b as AdminManifestModuleOptions, c as AdminManifestService, d as AdminModule, e as AdminModuleOptions, f as AdminStatsService, g as AdminStatsSnapshot, 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-Db2exT_d.js';
|
|
18
18
|
export { A as AdminAuditService } from './admin-audit.service-9IqXMlZm.js';
|
|
19
19
|
export { A as ADMIN_MANIFEST_CONFIG, a as ADMIN_RESOURCES_PORT_TOKEN, b as AdminManifestConfig, 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';
|
|
20
|
-
export { S as
|
|
20
|
+
export { S as SaasPlatformAdapters, a as SaasPlatformAdminResourcesOptions, b as SaasPlatformAdminStatsOptions, c as SaasPlatformCatalogOptions, d as SaasPlatformCheckoutOfferOptions, e as SaasPlatformModuleOptions, f as SaasPlatformPromoCodesOptions, g as SaasPlatformSetupOptions, h as SaasPlatformSubscriptionBundlesOptions, i as SaasPlatformSubscriptionContractOptions, j as SaasPlatformTenantAuthGuards, k as SaasPlatformTenantBillingOptions, l as SetupModule, m as SetupModuleOptions } from './module-options-ByJL7FZm.js';
|
|
21
21
|
export { ACTIVATION_ORCHESTRATOR_TOKEN, BaseIpRateLimitGuard, ContinueRegistrationDto, PASSWORD_HASHER_TOKEN, PAYMENT_EVENT_LOG_TOKEN, PAYMENT_PROVIDER_TOKEN, PENDING_REGISTRATION_REPOSITORY_TOKEN, PLAN_CATALOG_LOOKUP_TOKEN, PaymentWebhookDto, PendingRegistrationService, PreviewRegistrationPromoDto, PromoEvaluation, REGISTRATION_AUDIT_LOGGER_TOKEN, REGISTRATION_CONFIGURATOR_LOOKUP_TOKEN, REGISTRATION_CONFIG_TOKEN, REGISTRATION_OTP_DELIVERY_TOKEN, REGISTRATION_PROMO_PREVIEW_TOKEN, REGISTRATION_RESUME_BASE_URL_TOKEN, REGISTRATION_RESUME_DELIVERY_TOKEN, REGISTRATION_RESUME_TOKEN_SIGNER_TOKEN, RegisterStartDto, RegistrationCleanupCron, RegistrationModule, RegistrationModuleOptions, ResendRegistrationOtpDto, SLUG_AVAILABILITY_CHECK_TOKEN, SaveRegistrationConfigDto, SaveRegistrationConfigSelectionDto, SelectRegistrationPlanDto, StartRegistrationCheckoutDto, USER_ACCOUNT_LOOKUP_TOKEN, VerifyRegistrationOtpDto, computeBreakdown, generateOtpCode, hashOtpCode, resolveModel, slugify, verifyOtpCode } from './registration/index.js';
|
|
22
22
|
export { DEFINES_QUOTA_KEY, DISCOVERY_SNAPSHOT_TOKEN, DefinesQuota, DefinesQuotaOptions, DiscoveryControllerConfig, DiscoveryModule, DiscoveryModuleOptions, DiscoverySnapshotNotFoundError, ENFORCE_QUOTA_KEY, EnforceQuota, EnforceQuotaMetadata, EnforceQuotaOptions, HeadlessScanOptions, IMPLEMENTS_CAPABILITY_KEY, ImplementsCapability, ImplementsCapabilityMetadata, ImplementsCapabilityOptions, REQUIRES_CAPABILITY_KEY, RequiresCapability, RequiresCapabilityKeys, buildDiscoveryController, loadDiscoverySnapshotFromFile, runHeadlessDiscoveryScan } from './discovery/index.js';
|
|
23
23
|
export { D as DISCOVERY_APP_INFO_TOKEN, a as DISCOVERY_SNAPSHOT_PATH_TOKEN, b as DiscoveryAppInfo, c as DiscoveryScanner, d as computeSnapshotHash } from './discovery.scanner-DLgEvuoy.js';
|
package/dist/index.js
CHANGED
|
@@ -38,6 +38,34 @@ import {
|
|
|
38
38
|
slugify,
|
|
39
39
|
verifyOtpCode
|
|
40
40
|
} from "./chunk-MJ32VNZD.js";
|
|
41
|
+
import "./chunk-2SLTRKXC.js";
|
|
42
|
+
import "./chunk-UF53DWWR.js";
|
|
43
|
+
import {
|
|
44
|
+
CatalogBundleUpsellResolver,
|
|
45
|
+
ConfiguratorCatalogBuilder,
|
|
46
|
+
FEATURE_GUARD_CONFIG_TOKEN,
|
|
47
|
+
FeatureGuard,
|
|
48
|
+
LimitExceededFilter,
|
|
49
|
+
PLAN_CATALOG_IMPORT_SINK_TOKEN,
|
|
50
|
+
PlanCatalogImportDto,
|
|
51
|
+
PlanCatalogImporterModule,
|
|
52
|
+
PlanCatalogImporterService,
|
|
53
|
+
PlanCatalogValidationError,
|
|
54
|
+
PublishValidationError,
|
|
55
|
+
UPSELL_OFFER_CURRENCY_TOKEN,
|
|
56
|
+
UPSELL_OFFER_RESOLVER_TOKEN,
|
|
57
|
+
assertBaseVersionFresh,
|
|
58
|
+
assertChangeNote,
|
|
59
|
+
assertDraftPublishable,
|
|
60
|
+
assertOptimisticLockHeld,
|
|
61
|
+
buildPlanCatalogImporterController,
|
|
62
|
+
clearPendingPlanVersionFields,
|
|
63
|
+
computeCarriedTrialEndsAt,
|
|
64
|
+
computeNextPeriod,
|
|
65
|
+
decideRenewal,
|
|
66
|
+
loadPlanCatalogFromFile,
|
|
67
|
+
loadPlanCatalogFromString
|
|
68
|
+
} from "./chunk-2JTISFUZ.js";
|
|
41
69
|
import {
|
|
42
70
|
formatPreflightReport,
|
|
43
71
|
formatSeedGateReport,
|
|
@@ -46,7 +74,7 @@ import {
|
|
|
46
74
|
runSeedGateFromFile,
|
|
47
75
|
seedGateExitCode,
|
|
48
76
|
validateSeedAgainstSnapshot
|
|
49
|
-
} from "./chunk-
|
|
77
|
+
} from "./chunk-7ZPFQXHM.js";
|
|
50
78
|
import "./chunk-DBZGV3HC.js";
|
|
51
79
|
import {
|
|
52
80
|
DefinesQuota,
|
|
@@ -59,10 +87,10 @@ import {
|
|
|
59
87
|
DiscoverySnapshotNotFoundError,
|
|
60
88
|
loadDiscoverySnapshotFromFile
|
|
61
89
|
} from "./chunk-74SCJ4HF.js";
|
|
62
|
-
import "./chunk-
|
|
90
|
+
import "./chunk-2FR6ZL7R.js";
|
|
63
91
|
import {
|
|
64
92
|
defineSaaSiCat
|
|
65
|
-
} from "./chunk-
|
|
93
|
+
} from "./chunk-OYNHOY45.js";
|
|
66
94
|
import {
|
|
67
95
|
SETUP_CONFIG_TOKEN,
|
|
68
96
|
SETUP_PROVISIONING_PORT_TOKEN,
|
|
@@ -70,7 +98,7 @@ import {
|
|
|
70
98
|
SetupController,
|
|
71
99
|
SetupModule,
|
|
72
100
|
SetupService
|
|
73
|
-
} from "./chunk-
|
|
101
|
+
} from "./chunk-EHKMPP6J.js";
|
|
74
102
|
import {
|
|
75
103
|
CreatePromoCodeDto,
|
|
76
104
|
PreviewPromoCodeDto,
|
|
@@ -83,35 +111,54 @@ import {
|
|
|
83
111
|
hashIp,
|
|
84
112
|
ipFingerprint
|
|
85
113
|
} from "./chunk-B6IWLV7R.js";
|
|
114
|
+
import {
|
|
115
|
+
SubscriptionContractModule
|
|
116
|
+
} from "./chunk-3E6ONOMG.js";
|
|
117
|
+
import {
|
|
118
|
+
ADMIN_MANIFEST_CONFIG,
|
|
119
|
+
ADMIN_RESOURCES_PORT_TOKEN,
|
|
120
|
+
ADMIN_STATS_AUDIT_WINDOW_DAYS_TOKEN,
|
|
121
|
+
AUDIT_STATS_PORT_TOKEN,
|
|
122
|
+
AdminBypassRlsInterceptor,
|
|
123
|
+
AdminManifestModule,
|
|
124
|
+
AdminManifestService,
|
|
125
|
+
AdminModule,
|
|
126
|
+
AdminPublicBootController,
|
|
127
|
+
AdminResourcesModule,
|
|
128
|
+
AdminResourcesService,
|
|
129
|
+
AdminStatsController,
|
|
130
|
+
AdminStatsModule,
|
|
131
|
+
AdminStatsService,
|
|
132
|
+
MfaGuard,
|
|
133
|
+
MfaService,
|
|
134
|
+
PLATFORM_CORE_CONTRIBUTION_TOKEN,
|
|
135
|
+
PLATFORM_CORE_MANIFEST_CONTRIBUTION,
|
|
136
|
+
PROMO_CODE_STATS_PORT_TOKEN,
|
|
137
|
+
REQUIRE_MFA_KEY,
|
|
138
|
+
RequireMfa,
|
|
139
|
+
SUBSCRIPTION_STATS_PORT_TOKEN,
|
|
140
|
+
SuperAdminGuard,
|
|
141
|
+
SuspendTenantDto,
|
|
142
|
+
buildAdminStatsController
|
|
143
|
+
} from "./chunk-SN5UOC43.js";
|
|
86
144
|
import {
|
|
87
145
|
CONTRACT_FREEZE_PORT_TOKEN,
|
|
88
146
|
CONTRACT_FREEZE_PROJECT_KEY_TOKEN,
|
|
89
147
|
CONTRACT_FREEZE_SOURCE_PORT_TOKEN,
|
|
90
148
|
CancelSubscriptionDto,
|
|
91
|
-
CatalogBundleUpsellResolver,
|
|
92
149
|
ChangePlanDto,
|
|
93
150
|
CompleteOnboardingSubscriptionDto,
|
|
94
151
|
ComposedTenantAuthGuard,
|
|
95
|
-
ConfiguratorCatalogBuilder,
|
|
96
|
-
FEATURE_GUARD_CONFIG_TOKEN,
|
|
97
152
|
FEATURE_GUARD_MARKER,
|
|
98
153
|
FEATURE_UI_REGISTRY_TOKEN,
|
|
99
|
-
FeatureGuard,
|
|
100
|
-
LimitExceededFilter,
|
|
101
|
-
PLAN_CATALOG_IMPORT_SINK_TOKEN,
|
|
102
154
|
PUBLIC_CATALOG_BUNDLE_REPOSITORY_TOKEN,
|
|
103
155
|
PUBLIC_CATALOG_MARKETING_REPOSITORY_TOKEN,
|
|
104
156
|
PUBLIC_CATALOG_PROJECT_KEY_TOKEN,
|
|
105
157
|
PendingPlanMaterializationService,
|
|
106
|
-
PlanCatalogImportDto,
|
|
107
|
-
PlanCatalogImporterModule,
|
|
108
|
-
PlanCatalogImporterService,
|
|
109
|
-
PlanCatalogValidationError,
|
|
110
158
|
PlanChangePreviewService,
|
|
111
159
|
PreviewPlanChangeDto,
|
|
112
160
|
PublicCatalogController,
|
|
113
161
|
PublicCatalogModule,
|
|
114
|
-
PublishValidationError,
|
|
115
162
|
REQUIRE_FEATURE_KEY,
|
|
116
163
|
RequireFeature,
|
|
117
164
|
SELF_SERVICE_BLOCKED_BUNDLES_TOKEN,
|
|
@@ -123,29 +170,16 @@ import {
|
|
|
123
170
|
TenantAdminGuard,
|
|
124
171
|
TenantBillingController,
|
|
125
172
|
TenantBillingModule,
|
|
126
|
-
UPSELL_OFFER_CURRENCY_TOKEN,
|
|
127
|
-
UPSELL_OFFER_RESOLVER_TOKEN,
|
|
128
173
|
addMonths,
|
|
129
|
-
assertBaseVersionFresh,
|
|
130
|
-
assertChangeNote,
|
|
131
|
-
assertDraftPublishable,
|
|
132
|
-
assertOptimisticLockHeld,
|
|
133
|
-
buildPlanCatalogImporterController,
|
|
134
174
|
buildTenantSubscriptionBundlesController,
|
|
135
|
-
clearPendingPlanVersionFields,
|
|
136
|
-
computeCarriedTrialEndsAt,
|
|
137
|
-
computeNextPeriod,
|
|
138
175
|
computeProration,
|
|
139
|
-
decideRenewal,
|
|
140
176
|
initialPeriodWindow,
|
|
141
177
|
isPlatformFeatureGuard,
|
|
142
|
-
loadPlanCatalogFromFile,
|
|
143
|
-
loadPlanCatalogFromString,
|
|
144
178
|
periodEndAfter,
|
|
145
179
|
periodEndWithMinLead,
|
|
146
180
|
resolveBundleCancelEffectiveAt,
|
|
147
181
|
resolveBundlePriceNet
|
|
148
|
-
} from "./chunk-
|
|
182
|
+
} from "./chunk-UHD6FJBQ.js";
|
|
149
183
|
import {
|
|
150
184
|
PROMO_CODE_REDEMPTION_REPOSITORY_TOKEN,
|
|
151
185
|
PROMO_CODE_REPOSITORY_TOKEN,
|
|
@@ -163,12 +197,11 @@ import {
|
|
|
163
197
|
computeRegularStartsAt
|
|
164
198
|
} from "./chunk-37HEKVDH.js";
|
|
165
199
|
import {
|
|
166
|
-
SubscriptionContractModule,
|
|
167
200
|
SubscriptionContractService,
|
|
168
201
|
contractLineItemToInvoiceLineItem,
|
|
169
202
|
sortContractLineItemsForInvoice,
|
|
170
203
|
subscriptionContractToInvoiceSnapshot
|
|
171
|
-
} from "./chunk-
|
|
204
|
+
} from "./chunk-CJFAOD7K.js";
|
|
172
205
|
import {
|
|
173
206
|
ADVISORY_STRICT_MODE_CODES,
|
|
174
207
|
BundlesService,
|
|
@@ -217,7 +250,7 @@ import {
|
|
|
217
250
|
quotaApprovalSignature,
|
|
218
251
|
validateBundleDraft,
|
|
219
252
|
validatePlanDraft
|
|
220
|
-
} from "./chunk-
|
|
253
|
+
} from "./chunk-7X5MSAIL.js";
|
|
221
254
|
import {
|
|
222
255
|
AUDIT_CONTEXT_RESOLVER_TOKEN,
|
|
223
256
|
PENDING_PLAN_QUERY_PORT_TOKEN,
|
|
@@ -232,6 +265,12 @@ import {
|
|
|
232
265
|
classifyBundleVersionDiff,
|
|
233
266
|
classifyPlanDiff
|
|
234
267
|
} from "./chunk-WPUVJRIN.js";
|
|
268
|
+
import {
|
|
269
|
+
AUDIT_PORT_TOKEN,
|
|
270
|
+
AdminAuditService,
|
|
271
|
+
MFA_PORT_TOKEN,
|
|
272
|
+
RLS_BYPASS_PORT_TOKEN
|
|
273
|
+
} from "./chunk-E56W4U2P.js";
|
|
235
274
|
import {
|
|
236
275
|
CHECKOUT_OFFER_REPOSITORY_TOKEN,
|
|
237
276
|
CheckoutOfferModule,
|
|
@@ -239,8 +278,13 @@ import {
|
|
|
239
278
|
CreateCheckoutOfferDto,
|
|
240
279
|
UpdateCheckoutOfferDto,
|
|
241
280
|
buildCheckoutOfferController
|
|
242
|
-
} from "./chunk-
|
|
281
|
+
} from "./chunk-XTVAFJ3P.js";
|
|
243
282
|
import "./chunk-BSK6YBLI.js";
|
|
283
|
+
import {
|
|
284
|
+
SAASICAT_PUBLIC_ROUTE_KEY,
|
|
285
|
+
SaaSiCatPublicRoute,
|
|
286
|
+
isSaaSiCatPublicRoute
|
|
287
|
+
} from "./chunk-YSC46BGM.js";
|
|
244
288
|
import {
|
|
245
289
|
DiscoveryModule,
|
|
246
290
|
buildDiscoveryController
|
|
@@ -252,7 +296,9 @@ import {
|
|
|
252
296
|
computeSnapshotHash
|
|
253
297
|
} from "./chunk-5ZXBXYXU.js";
|
|
254
298
|
import {
|
|
255
|
-
EntitlementModule
|
|
299
|
+
EntitlementModule
|
|
300
|
+
} from "./chunk-H4DOTO7S.js";
|
|
301
|
+
import {
|
|
256
302
|
EntitlementService,
|
|
257
303
|
LimitExceededError,
|
|
258
304
|
SUBSCRIPTION_BUNDLE_CONFIG_TOKEN,
|
|
@@ -274,7 +320,7 @@ import {
|
|
|
274
320
|
mergeSubscriptionBundlesIntoLimits,
|
|
275
321
|
resolveEntitlementPlan,
|
|
276
322
|
toEffectiveLimitsSnapshot
|
|
277
|
-
} from "./chunk-
|
|
323
|
+
} from "./chunk-F4B2NJUZ.js";
|
|
278
324
|
import {
|
|
279
325
|
PLAN_CATALOG_READ_SINK_TOKEN,
|
|
280
326
|
PLAN_CATALOG_TOKEN,
|
|
@@ -296,6 +342,9 @@ import {
|
|
|
296
342
|
import {
|
|
297
343
|
SUBSCRIPTION_CONTRACT_REPOSITORY_TOKEN
|
|
298
344
|
} from "./chunk-NYLON2VC.js";
|
|
345
|
+
import {
|
|
346
|
+
codedError
|
|
347
|
+
} from "./chunk-EBJJNTW6.js";
|
|
299
348
|
import {
|
|
300
349
|
ENTITLEMENT_RESOLUTION_CONFIG_TOKEN,
|
|
301
350
|
ENTITLEMENT_SERVICE_TOKEN,
|
|
@@ -312,6 +361,9 @@ import {
|
|
|
312
361
|
PLAN_REPOSITORY_TOKEN,
|
|
313
362
|
PROMOTION_REPOSITORY_TOKEN
|
|
314
363
|
} from "./chunk-L4KTQ6CL.js";
|
|
364
|
+
import {
|
|
365
|
+
asProvider
|
|
366
|
+
} from "./chunk-SABTXESR.js";
|
|
315
367
|
import {
|
|
316
368
|
DEFINES_QUOTA_KEY,
|
|
317
369
|
DISCOVERY_SNAPSHOT_TOKEN,
|
|
@@ -319,50 +371,6 @@ import {
|
|
|
319
371
|
IMPLEMENTS_CAPABILITY_KEY,
|
|
320
372
|
REQUIRES_CAPABILITY_KEY
|
|
321
373
|
} from "./chunk-L4SUWH5B.js";
|
|
322
|
-
import {
|
|
323
|
-
ADMIN_MANIFEST_CONFIG,
|
|
324
|
-
ADMIN_RESOURCES_PORT_TOKEN,
|
|
325
|
-
ADMIN_STATS_AUDIT_WINDOW_DAYS_TOKEN,
|
|
326
|
-
AUDIT_STATS_PORT_TOKEN,
|
|
327
|
-
AdminBypassRlsInterceptor,
|
|
328
|
-
AdminManifestModule,
|
|
329
|
-
AdminManifestService,
|
|
330
|
-
AdminModule,
|
|
331
|
-
AdminPublicBootController,
|
|
332
|
-
AdminResourcesModule,
|
|
333
|
-
AdminResourcesService,
|
|
334
|
-
AdminStatsController,
|
|
335
|
-
AdminStatsModule,
|
|
336
|
-
AdminStatsService,
|
|
337
|
-
MfaGuard,
|
|
338
|
-
MfaService,
|
|
339
|
-
PLATFORM_CORE_CONTRIBUTION_TOKEN,
|
|
340
|
-
PLATFORM_CORE_MANIFEST_CONTRIBUTION,
|
|
341
|
-
PROMO_CODE_STATS_PORT_TOKEN,
|
|
342
|
-
REQUIRE_MFA_KEY,
|
|
343
|
-
RequireMfa,
|
|
344
|
-
SUBSCRIPTION_STATS_PORT_TOKEN,
|
|
345
|
-
SuperAdminGuard,
|
|
346
|
-
SuspendTenantDto,
|
|
347
|
-
buildAdminStatsController
|
|
348
|
-
} from "./chunk-SN5UOC43.js";
|
|
349
|
-
import {
|
|
350
|
-
AUDIT_PORT_TOKEN,
|
|
351
|
-
AdminAuditService,
|
|
352
|
-
MFA_PORT_TOKEN,
|
|
353
|
-
RLS_BYPASS_PORT_TOKEN
|
|
354
|
-
} from "./chunk-E56W4U2P.js";
|
|
355
|
-
import {
|
|
356
|
-
SAASICAT_PUBLIC_ROUTE_KEY,
|
|
357
|
-
SaaSiCatPublicRoute,
|
|
358
|
-
isSaaSiCatPublicRoute
|
|
359
|
-
} from "./chunk-YSC46BGM.js";
|
|
360
|
-
import {
|
|
361
|
-
codedError
|
|
362
|
-
} from "./chunk-EBJJNTW6.js";
|
|
363
|
-
import {
|
|
364
|
-
asProvider
|
|
365
|
-
} from "./chunk-SABTXESR.js";
|
|
366
374
|
import "./chunk-SHUYVCID.js";
|
|
367
375
|
export {
|
|
368
376
|
ACTIVATION_ORCHESTRATOR_TOKEN,
|