@saasicat/nest 0.18.0 → 0.19.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_entries.cjs +1309 -519
- package/dist/admin/index.js +1 -1
- package/dist/billing/index.d.cts +7 -4
- package/dist/billing/index.d.ts +7 -4
- package/dist/billing/index.js +6 -6
- package/dist/catalog/index.js +4 -4
- package/dist/checkout-offer/index.js +2 -2
- package/dist/{chunk-Z3FWN3HJ.js → chunk-5ZXBXYXU.js} +3 -3
- package/dist/{chunk-RZVSKKXX.js → chunk-6WA4X5U3.js} +46 -45
- package/dist/{chunk-V34AA7C7.js → chunk-6WL6VQ7Z.js} +1 -1
- package/dist/{chunk-ABB2CRAS.js → chunk-74SCJ4HF.js} +1 -1
- package/dist/{chunk-PLJEAUFU.js → chunk-7JIHG53V.js} +76 -39
- package/dist/{chunk-7RRWI5LH.js → chunk-AFK2IE2L.js} +10 -10
- package/dist/{chunk-32EMXPU2.js → chunk-B7NRY2LV.js} +48 -17
- package/dist/{chunk-MDIZUVIK.js → chunk-BSK6YBLI.js} +1 -1
- package/dist/{chunk-R2QOSVAA.js → chunk-DQKCK7DX.js} +1 -1
- package/dist/{chunk-GLLCB4BP.js → chunk-EUU3B6NB.js} +17 -13
- package/dist/{chunk-EXOLOJFZ.js → chunk-F6DCLVBB.js} +29 -8
- package/dist/{chunk-5KH2O4SF.js → chunk-I77VS3YH.js} +287 -105
- package/dist/{chunk-YITTE646.js → chunk-KUDKD7ZG.js} +34 -14
- package/dist/{chunk-P3DP6GJE.js → chunk-LXUBCLRK.js} +486 -160
- package/dist/{chunk-GJBXOCRZ.js → chunk-ORWIGSNN.js} +45 -17
- package/dist/{chunk-E7AJ42AB.js → chunk-QLJHIIOY.js} +168 -28
- package/dist/{chunk-BOADBIGB.js → chunk-YYUXKLXK.js} +2 -2
- package/dist/{define-saasicat-Rc0rXrYG.d.ts → define-saasicat-CqkhnHn-.d.ts} +1 -1
- package/dist/{define-saasicat-CeDBX9ji.d.cts → define-saasicat-D8c6Bs4T.d.cts} +1 -1
- package/dist/discovery/index.d.cts +2 -2
- package/dist/discovery/index.d.ts +2 -2
- package/dist/discovery/index.js +4 -4
- package/dist/{enforce-quota.interceptor-DMw-bPyk.d.cts → enforce-quota.interceptor-Dk0eEtzV.d.cts} +1 -1
- package/dist/{enforce-quota.interceptor-CmbWX39L.d.ts → enforce-quota.interceptor-Dp8wTYro.d.ts} +1 -1
- package/dist/entitlement/index.js +2 -2
- package/dist/index.d.cts +6 -6
- package/dist/index.d.ts +6 -6
- package/dist/index.js +17 -17
- package/dist/{module-DgYJur6f.d.ts → module-BwD-wAor.d.ts} +1 -1
- package/dist/{module-CSN8j8Tp.d.cts → module-DsDkbawm.d.cts} +1 -1
- package/dist/platform/index.d.cts +8 -8
- package/dist/platform/index.d.ts +8 -8
- package/dist/platform/index.js +13 -13
- 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/registration/index.js +1 -1
- package/dist/{saas-platform.module-DLhoqKNA.d.ts → saas-platform.module-BQmrDGVU.d.ts} +1 -1
- package/dist/{saas-platform.module-D3rUTiho.d.cts → saas-platform.module-DducnQ9s.d.cts} +1 -1
- package/dist/{service-DX8KbGXl.d.cts → service-DPZ2W1E-.d.cts} +2 -2
- package/dist/{service-DX8KbGXl.d.ts → service-DPZ2W1E-.d.ts} +2 -2
- package/dist/subscription-contract/index.js +2 -2
- package/dist/{tenant-billing.controller-BwZRnJ3q.d.ts → tenant-billing.controller-b1G1yB09.d.ts} +2 -2
- package/dist/{tenant-billing.controller-CG4CaFUP.d.cts → tenant-billing.controller-m42YQ_Ei.d.cts} +2 -2
- package/dist/testing/index.d.cts +5 -5
- package/dist/testing/index.d.ts +5 -5
- package/dist/testing/index.js +33 -33
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
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 SaaSiCatPublicRoute, e as SetupConfig, f as defineSaaSiCat, i as isSaaSiCatPublicRoute } from './define-saasicat-
|
|
2
|
+
import { S as SetupService } from './define-saasicat-CqkhnHn-.js';
|
|
3
|
+
export { a as SAASICAT_PUBLIC_ROUTE_KEY, b as SETUP_CONFIG_TOKEN, c as SETUP_PROVISIONING_PORT_TOKEN, d as SaaSiCatPublicRoute, e as SetupConfig, f as defineSaaSiCat, i as isSaaSiCatPublicRoute } from './define-saasicat-CqkhnHn-.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, UpdatePromoCodeDto, addCycles, buildLabel, buildPromoCodeAdminController, computeDiscountGross, computeDiscountedGross, computeIncludedVat, computeRegularStartsAt, grossFromNet, round2 } from './promo/index.js';
|
|
5
|
-
export { P as PreviewInput, a as PreviewInvalid, b as PreviewReason, c as PreviewResult, d as PreviewValid, e as PromoCodeStats, f as PromoCodesService, g as PromoServiceConfig, R as RedeemInput } from './service-
|
|
5
|
+
export { P as PreviewInput, a as PreviewInvalid, b as PreviewReason, c as PreviewResult, d as PreviewValid, e as PromoCodeStats, f as PromoCodesService, g as PromoServiceConfig, R as RedeemInput } from './service-DPZ2W1E-.js';
|
|
6
6
|
export { P as PromoCodeRateLimitGuard, h as hashIp, i as ipFingerprint } from './rate-limit.guard-dntqAlfZ.js';
|
|
7
|
-
export { P as PromoCodesModule, a as PromoCodesModuleOptions } from './module-
|
|
7
|
+
export { P as PromoCodesModule, a as PromoCodesModuleOptions } from './module-BwD-wAor.js';
|
|
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 } from '@saasicat/types';
|
|
10
10
|
export { BundleVersionFields, ChangeDirection, DiffResult, DiscoveredCapability, DiscoveredFeature, DiscoveredQuota, DiscoverySnapshot, PasswordHasher, PlanVersionFields, VersionChange, VersionChangeDirection, classifyBundleVersionDiff, classifyPlanDiff } from '@saasicat/types';
|
|
11
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, 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 } from './subscription-bundles.module-BQmoozm5.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-
|
|
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-b1G1yB09.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-o0LMenvl.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 SaaSiCatModule, a as SaasPlatformAdapters, b as SaasPlatformAdminResourcesOptions, c as SaasPlatformAdminStatsOptions, d as SaasPlatformCatalogOptions, e as SaasPlatformCheckoutOfferOptions, S as SaasPlatformModule, f as SaasPlatformModuleOptions, g as SaasPlatformPromoCodesOptions, h as SaasPlatformSetupOptions, i as SaasPlatformSubscriptionBundlesOptions, j as SaasPlatformSubscriptionContractOptions, k as SaasPlatformTenantAuthGuards, l as SaasPlatformTenantBillingOptions, m as SetupModule, n as SetupModuleOptions } from './saas-platform.module-
|
|
20
|
+
export { S as SaaSiCatModule, a as SaasPlatformAdapters, b as SaasPlatformAdminResourcesOptions, c as SaasPlatformAdminStatsOptions, d as SaasPlatformCatalogOptions, e as SaasPlatformCheckoutOfferOptions, S as SaasPlatformModule, f as SaasPlatformModuleOptions, g as SaasPlatformPromoCodesOptions, h as SaasPlatformSetupOptions, i as SaasPlatformSubscriptionBundlesOptions, j as SaasPlatformSubscriptionContractOptions, k as SaasPlatformTenantAuthGuards, l as SaasPlatformTenantBillingOptions, m as SetupModule, n as SetupModuleOptions } from './saas-platform.module-BQmrDGVU.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
|
@@ -37,7 +37,7 @@ import {
|
|
|
37
37
|
resolveModel,
|
|
38
38
|
slugify,
|
|
39
39
|
verifyOtpCode
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-6WA4X5U3.js";
|
|
41
41
|
import "./chunk-UF53DWWR.js";
|
|
42
42
|
import {
|
|
43
43
|
formatPreflightReport,
|
|
@@ -47,7 +47,7 @@ import {
|
|
|
47
47
|
runSeedGateFromFile,
|
|
48
48
|
seedGateExitCode,
|
|
49
49
|
validateSeedAgainstSnapshot
|
|
50
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-AFK2IE2L.js";
|
|
51
51
|
import "./chunk-DBZGV3HC.js";
|
|
52
52
|
import {
|
|
53
53
|
DefinesQuota,
|
|
@@ -55,11 +55,11 @@ import {
|
|
|
55
55
|
ImplementsCapability,
|
|
56
56
|
RequiresCapability,
|
|
57
57
|
runHeadlessDiscoveryScan
|
|
58
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-YYUXKLXK.js";
|
|
59
59
|
import {
|
|
60
60
|
DiscoverySnapshotNotFoundError,
|
|
61
61
|
loadDiscoverySnapshotFromFile
|
|
62
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-74SCJ4HF.js";
|
|
63
63
|
import {
|
|
64
64
|
defineSaaSiCat
|
|
65
65
|
} from "./chunk-EWPF57AG.js";
|
|
@@ -70,7 +70,7 @@ import {
|
|
|
70
70
|
SetupController,
|
|
71
71
|
SetupModule,
|
|
72
72
|
SetupService
|
|
73
|
-
} from "./chunk-
|
|
73
|
+
} from "./chunk-KUDKD7ZG.js";
|
|
74
74
|
import {
|
|
75
75
|
CreatePromoCodeDto,
|
|
76
76
|
PreviewPromoCodeDto,
|
|
@@ -82,7 +82,7 @@ import {
|
|
|
82
82
|
buildPromoCodeAdminController,
|
|
83
83
|
hashIp,
|
|
84
84
|
ipFingerprint
|
|
85
|
-
} from "./chunk-
|
|
85
|
+
} from "./chunk-EUU3B6NB.js";
|
|
86
86
|
import {
|
|
87
87
|
ADMIN_MANIFEST_CONFIG,
|
|
88
88
|
ADMIN_RESOURCES_PORT_TOKEN,
|
|
@@ -109,7 +109,7 @@ import {
|
|
|
109
109
|
SuperAdminGuard,
|
|
110
110
|
SuspendTenantDto,
|
|
111
111
|
buildAdminStatsController
|
|
112
|
-
} from "./chunk-
|
|
112
|
+
} from "./chunk-7JIHG53V.js";
|
|
113
113
|
import {
|
|
114
114
|
CONTRACT_FREEZE_PORT_TOKEN,
|
|
115
115
|
CONTRACT_FREEZE_PROJECT_KEY_TOKEN,
|
|
@@ -170,7 +170,7 @@ import {
|
|
|
170
170
|
periodEndWithMinLead,
|
|
171
171
|
resolveBundleCancelEffectiveAt,
|
|
172
172
|
resolveBundlePriceNet
|
|
173
|
-
} from "./chunk-
|
|
173
|
+
} from "./chunk-I77VS3YH.js";
|
|
174
174
|
import {
|
|
175
175
|
PROMO_CODE_REDEMPTION_REPOSITORY_TOKEN,
|
|
176
176
|
PROMO_CODE_REPOSITORY_TOKEN,
|
|
@@ -186,14 +186,14 @@ import {
|
|
|
186
186
|
computeDiscountGross,
|
|
187
187
|
computeDiscountedGross,
|
|
188
188
|
computeRegularStartsAt
|
|
189
|
-
} from "./chunk-
|
|
189
|
+
} from "./chunk-QLJHIIOY.js";
|
|
190
190
|
import {
|
|
191
191
|
SubscriptionContractModule,
|
|
192
192
|
SubscriptionContractService,
|
|
193
193
|
contractLineItemToInvoiceLineItem,
|
|
194
194
|
sortContractLineItemsForInvoice,
|
|
195
195
|
subscriptionContractToInvoiceSnapshot
|
|
196
|
-
} from "./chunk-
|
|
196
|
+
} from "./chunk-B7NRY2LV.js";
|
|
197
197
|
import {
|
|
198
198
|
ADVISORY_STRICT_MODE_CODES,
|
|
199
199
|
BundlesService,
|
|
@@ -242,7 +242,7 @@ import {
|
|
|
242
242
|
quotaApprovalSignature,
|
|
243
243
|
validateBundleDraft,
|
|
244
244
|
validatePlanDraft
|
|
245
|
-
} from "./chunk-
|
|
245
|
+
} from "./chunk-LXUBCLRK.js";
|
|
246
246
|
import {
|
|
247
247
|
AUDIT_CONTEXT_RESOLVER_TOKEN,
|
|
248
248
|
PENDING_PLAN_QUERY_PORT_TOKEN,
|
|
@@ -270,8 +270,8 @@ import {
|
|
|
270
270
|
CreateCheckoutOfferDto,
|
|
271
271
|
UpdateCheckoutOfferDto,
|
|
272
272
|
buildCheckoutOfferController
|
|
273
|
-
} from "./chunk-
|
|
274
|
-
import "./chunk-
|
|
273
|
+
} from "./chunk-ORWIGSNN.js";
|
|
274
|
+
import "./chunk-BSK6YBLI.js";
|
|
275
275
|
import {
|
|
276
276
|
SAASICAT_PUBLIC_ROUTE_KEY,
|
|
277
277
|
SaaSiCatPublicRoute,
|
|
@@ -280,13 +280,13 @@ import {
|
|
|
280
280
|
import {
|
|
281
281
|
DiscoveryModule,
|
|
282
282
|
buildDiscoveryController
|
|
283
|
-
} from "./chunk-
|
|
283
|
+
} from "./chunk-6WL6VQ7Z.js";
|
|
284
284
|
import {
|
|
285
285
|
DISCOVERY_APP_INFO_TOKEN,
|
|
286
286
|
DISCOVERY_SNAPSHOT_PATH_TOKEN,
|
|
287
287
|
DiscoveryScanner,
|
|
288
288
|
computeSnapshotHash
|
|
289
|
-
} from "./chunk-
|
|
289
|
+
} from "./chunk-5ZXBXYXU.js";
|
|
290
290
|
import {
|
|
291
291
|
EntitlementModule,
|
|
292
292
|
EntitlementService,
|
|
@@ -310,7 +310,7 @@ import {
|
|
|
310
310
|
mergeSubscriptionBundlesIntoLimits,
|
|
311
311
|
resolveEntitlementPlan,
|
|
312
312
|
toEffectiveLimitsSnapshot
|
|
313
|
-
} from "./chunk-
|
|
313
|
+
} from "./chunk-F6DCLVBB.js";
|
|
314
314
|
import {
|
|
315
315
|
PLAN_CATALOG_READ_SINK_TOKEN,
|
|
316
316
|
PLAN_CATALOG_TOKEN,
|
|
@@ -328,7 +328,7 @@ import {
|
|
|
328
328
|
isFeatureInPlan,
|
|
329
329
|
isFeaturePlannedOnly,
|
|
330
330
|
round2
|
|
331
|
-
} from "./chunk-
|
|
331
|
+
} from "./chunk-DQKCK7DX.js";
|
|
332
332
|
import {
|
|
333
333
|
SUBSCRIPTION_CONTRACT_REPOSITORY_TOKEN
|
|
334
334
|
} from "./chunk-NYLON2VC.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Type, CanActivate, DynamicModule, ForwardReference } from '@nestjs/common';
|
|
2
2
|
import { PromoCodeRepository, PromoCodeRedemptionRepository, PromoCodeValidationLogRepository, FirstTimeCustomerCheck, PromoSubscriptionLookup, PromoRevenueDeductionAggregator, TransactionRunner } from '@saasicat/types';
|
|
3
3
|
import { P as ProviderSpec } from './di-CcNeq9v-.js';
|
|
4
|
-
import { g as PromoServiceConfig } from './service-
|
|
4
|
+
import { g as PromoServiceConfig } from './service-DPZ2W1E-.js';
|
|
5
5
|
|
|
6
6
|
interface PromoCodesModuleOptions {
|
|
7
7
|
promoCodeRepository: ProviderSpec<PromoCodeRepository>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Type, CanActivate, DynamicModule, ForwardReference } from '@nestjs/common';
|
|
2
2
|
import { PromoCodeRepository, PromoCodeRedemptionRepository, PromoCodeValidationLogRepository, FirstTimeCustomerCheck, PromoSubscriptionLookup, PromoRevenueDeductionAggregator, TransactionRunner } from '@saasicat/types';
|
|
3
3
|
import { P as ProviderSpec } from './di-CcNeq9v-.cjs';
|
|
4
|
-
import { g as PromoServiceConfig } from './service-
|
|
4
|
+
import { g as PromoServiceConfig } from './service-DPZ2W1E-.cjs';
|
|
5
5
|
|
|
6
6
|
interface PromoCodesModuleOptions {
|
|
7
7
|
promoCodeRepository: ProviderSpec<PromoCodeRepository>;
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { p as PlanResolverPort } from '../saas-platform.module-
|
|
2
|
-
export { P as PLAN_RESOLVER_PORT_TOKEN, S as SaaSiCatModule, a as SaasPlatformAdapters, b as SaasPlatformAdminResourcesOptions, c as SaasPlatformAdminStatsOptions, d as SaasPlatformCatalogOptions, e as SaasPlatformCheckoutOfferOptions, S as SaasPlatformModule, f as SaasPlatformModuleOptions, g as SaasPlatformPromoCodesOptions, h as SaasPlatformSetupOptions, i as SaasPlatformSubscriptionBundlesOptions, j as SaasPlatformSubscriptionContractOptions, k as SaasPlatformTenantAuthGuards, l as SaasPlatformTenantBillingOptions, m as SetupModule, n as SetupModuleOptions, o as StaticPlanResolver, T as TenantManifestControllerOptions, q as buildTenantManifestController } from '../saas-platform.module-
|
|
3
|
-
export { a as SAASICAT_PUBLIC_ROUTE_KEY, d as SaaSiCatPublicRoute, S as SetupService, f as defineSaaSiCat, i as isSaaSiCatPublicRoute } from '../define-saasicat-
|
|
1
|
+
import { p as PlanResolverPort } from '../saas-platform.module-DducnQ9s.cjs';
|
|
2
|
+
export { P as PLAN_RESOLVER_PORT_TOKEN, S as SaaSiCatModule, a as SaasPlatformAdapters, b as SaasPlatformAdminResourcesOptions, c as SaasPlatformAdminStatsOptions, d as SaasPlatformCatalogOptions, e as SaasPlatformCheckoutOfferOptions, S as SaasPlatformModule, f as SaasPlatformModuleOptions, g as SaasPlatformPromoCodesOptions, h as SaasPlatformSetupOptions, i as SaasPlatformSubscriptionBundlesOptions, j as SaasPlatformSubscriptionContractOptions, k as SaasPlatformTenantAuthGuards, l as SaasPlatformTenantBillingOptions, m as SetupModule, n as SetupModuleOptions, o as StaticPlanResolver, T as TenantManifestControllerOptions, q as buildTenantManifestController } from '../saas-platform.module-DducnQ9s.cjs';
|
|
3
|
+
export { a as SAASICAT_PUBLIC_ROUTE_KEY, d as SaaSiCatPublicRoute, S as SetupService, f as defineSaaSiCat, i as isSaaSiCatPublicRoute } from '../define-saasicat-D8c6Bs4T.cjs';
|
|
4
4
|
import { SubscriptionRepository, UsageSnapshotPort, QuotaProvider } from '@saasicat/types';
|
|
5
|
-
import { S as StaticEntitlementService } from '../enforce-quota.interceptor-
|
|
6
|
-
export { E as EnforceQuotaInterceptor, Q as QUOTA_PROVIDERS_TOKEN, b as STATIC_FEATURE_GUARD_CONFIG_TOKEN, c as StaticEntitlementSnapshot, a as StaticFeatureGuard, d as StaticFeatureGuardConfig } from '../enforce-quota.interceptor-
|
|
5
|
+
import { S as StaticEntitlementService } from '../enforce-quota.interceptor-Dk0eEtzV.cjs';
|
|
6
|
+
export { E as EnforceQuotaInterceptor, Q as QUOTA_PROVIDERS_TOKEN, b as STATIC_FEATURE_GUARD_CONFIG_TOKEN, c as StaticEntitlementSnapshot, a as StaticFeatureGuard, d as StaticFeatureGuardConfig } from '../enforce-quota.interceptor-Dk0eEtzV.cjs';
|
|
7
7
|
export { A as AdminBypassRlsInterceptor, a as AdminManifestModule, b as AdminManifestModuleOptions, c as AdminManifestService, d as AdminModule, e as AdminModuleOptions, f as AdminStatsService, M as MfaGuard, h as MfaService, S as SuperAdminGuard } from '../admin-stats.service-HUZIU448.cjs';
|
|
8
8
|
export { A as AdminAuditService } from '../admin-audit.service-9IqXMlZm.cjs';
|
|
9
9
|
export { e as AdminResourcesService, f as AdminStatsModule, g as AdminStatsModuleOptions } from '../admin-resources.module-DGgGSdzN.cjs';
|
|
10
10
|
export { c as EntitlementService } from '../aggregation-SKfXu09x.cjs';
|
|
11
|
-
export { d as ComposedTenantAuthGuard, P as PendingPlanMaterializationService, h as PlanChangePreviewService, r as SubscriptionBundlePreviewService, s as SubscriptionBundlesService, T as TenantAdminGuard, t as TenantBillingController } from '../tenant-billing.controller-
|
|
11
|
+
export { d as ComposedTenantAuthGuard, P as PendingPlanMaterializationService, h as PlanChangePreviewService, r as SubscriptionBundlePreviewService, s as SubscriptionBundlesService, T as TenantAdminGuard, t as TenantBillingController } from '../tenant-billing.controller-m42YQ_Ei.cjs';
|
|
12
12
|
export { B as BundlesService, C as CatalogEntriesService, M as MarketingProjectionsService, b as MarketingSettingsService, P as PlanVersionsService, c as PlansService, d as PromotionsService, e as PublicMarketingCatalogService } from '../plan-versions.service-CUR2Whyr.cjs';
|
|
13
13
|
export { c as DiscoveryScanner } from '../discovery.scanner-DLgEvuoy.cjs';
|
|
14
14
|
export { P as PromoCodeRateLimitGuard } from '../rate-limit.guard-dntqAlfZ.cjs';
|
|
15
|
-
export { f as PromoCodesService } from '../service-
|
|
15
|
+
export { f as PromoCodesService } from '../service-DPZ2W1E-.cjs';
|
|
16
16
|
export { a as CheckoutOfferModule, b as CheckoutOfferModuleOptions } from '../checkout-offer.module-DmlpPevf.cjs';
|
|
17
17
|
export { C as CheckoutOfferService } from '../checkout-offer.service-BX51dljL.cjs';
|
|
18
18
|
export { S as SubscriptionContractModule, a as SubscriptionContractModuleOptions } from '../subscription-contract.module-B2uNvUJL.cjs';
|
|
@@ -20,7 +20,7 @@ export { S as SubscriptionContractService } from '../subscription-contract.servi
|
|
|
20
20
|
import '@nestjs/common';
|
|
21
21
|
import '../di-CcNeq9v-.cjs';
|
|
22
22
|
import '../plan-resolution-CFCoUkrE.cjs';
|
|
23
|
-
import '../module-
|
|
23
|
+
import '../module-DsDkbawm.cjs';
|
|
24
24
|
import '../catalog.module-Dw2Hrbyu.cjs';
|
|
25
25
|
import '../subscription-bundles.module-DCpV-Pb5.cjs';
|
|
26
26
|
import '@nestjs/core';
|
package/dist/platform/index.d.ts
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { p as PlanResolverPort } from '../saas-platform.module-
|
|
2
|
-
export { P as PLAN_RESOLVER_PORT_TOKEN, S as SaaSiCatModule, a as SaasPlatformAdapters, b as SaasPlatformAdminResourcesOptions, c as SaasPlatformAdminStatsOptions, d as SaasPlatformCatalogOptions, e as SaasPlatformCheckoutOfferOptions, S as SaasPlatformModule, f as SaasPlatformModuleOptions, g as SaasPlatformPromoCodesOptions, h as SaasPlatformSetupOptions, i as SaasPlatformSubscriptionBundlesOptions, j as SaasPlatformSubscriptionContractOptions, k as SaasPlatformTenantAuthGuards, l as SaasPlatformTenantBillingOptions, m as SetupModule, n as SetupModuleOptions, o as StaticPlanResolver, T as TenantManifestControllerOptions, q as buildTenantManifestController } from '../saas-platform.module-
|
|
3
|
-
export { a as SAASICAT_PUBLIC_ROUTE_KEY, d as SaaSiCatPublicRoute, S as SetupService, f as defineSaaSiCat, i as isSaaSiCatPublicRoute } from '../define-saasicat-
|
|
1
|
+
import { p as PlanResolverPort } from '../saas-platform.module-BQmrDGVU.js';
|
|
2
|
+
export { P as PLAN_RESOLVER_PORT_TOKEN, S as SaaSiCatModule, a as SaasPlatformAdapters, b as SaasPlatformAdminResourcesOptions, c as SaasPlatformAdminStatsOptions, d as SaasPlatformCatalogOptions, e as SaasPlatformCheckoutOfferOptions, S as SaasPlatformModule, f as SaasPlatformModuleOptions, g as SaasPlatformPromoCodesOptions, h as SaasPlatformSetupOptions, i as SaasPlatformSubscriptionBundlesOptions, j as SaasPlatformSubscriptionContractOptions, k as SaasPlatformTenantAuthGuards, l as SaasPlatformTenantBillingOptions, m as SetupModule, n as SetupModuleOptions, o as StaticPlanResolver, T as TenantManifestControllerOptions, q as buildTenantManifestController } from '../saas-platform.module-BQmrDGVU.js';
|
|
3
|
+
export { a as SAASICAT_PUBLIC_ROUTE_KEY, d as SaaSiCatPublicRoute, S as SetupService, f as defineSaaSiCat, i as isSaaSiCatPublicRoute } from '../define-saasicat-CqkhnHn-.js';
|
|
4
4
|
import { SubscriptionRepository, UsageSnapshotPort, QuotaProvider } from '@saasicat/types';
|
|
5
|
-
import { S as StaticEntitlementService } from '../enforce-quota.interceptor-
|
|
6
|
-
export { E as EnforceQuotaInterceptor, Q as QUOTA_PROVIDERS_TOKEN, b as STATIC_FEATURE_GUARD_CONFIG_TOKEN, c as StaticEntitlementSnapshot, a as StaticFeatureGuard, d as StaticFeatureGuardConfig } from '../enforce-quota.interceptor-
|
|
5
|
+
import { S as StaticEntitlementService } from '../enforce-quota.interceptor-Dp8wTYro.js';
|
|
6
|
+
export { E as EnforceQuotaInterceptor, Q as QUOTA_PROVIDERS_TOKEN, b as STATIC_FEATURE_GUARD_CONFIG_TOKEN, c as StaticEntitlementSnapshot, a as StaticFeatureGuard, d as StaticFeatureGuardConfig } from '../enforce-quota.interceptor-Dp8wTYro.js';
|
|
7
7
|
export { A as AdminBypassRlsInterceptor, a as AdminManifestModule, b as AdminManifestModuleOptions, c as AdminManifestService, d as AdminModule, e as AdminModuleOptions, f as AdminStatsService, M as MfaGuard, h as MfaService, S as SuperAdminGuard } from '../admin-stats.service-Db2exT_d.js';
|
|
8
8
|
export { A as AdminAuditService } from '../admin-audit.service-9IqXMlZm.js';
|
|
9
9
|
export { e as AdminResourcesService, f as AdminStatsModule, g as AdminStatsModuleOptions } from '../admin-resources.module-BY5r_1MG.js';
|
|
10
10
|
export { c as EntitlementService } from '../aggregation-o0LMenvl.js';
|
|
11
|
-
export { d as ComposedTenantAuthGuard, P as PendingPlanMaterializationService, h as PlanChangePreviewService, r as SubscriptionBundlePreviewService, s as SubscriptionBundlesService, T as TenantAdminGuard, t as TenantBillingController } from '../tenant-billing.controller-
|
|
11
|
+
export { d as ComposedTenantAuthGuard, P as PendingPlanMaterializationService, h as PlanChangePreviewService, r as SubscriptionBundlePreviewService, s as SubscriptionBundlesService, T as TenantAdminGuard, t as TenantBillingController } from '../tenant-billing.controller-b1G1yB09.js';
|
|
12
12
|
export { B as BundlesService, C as CatalogEntriesService, M as MarketingProjectionsService, b as MarketingSettingsService, P as PlanVersionsService, c as PlansService, d as PromotionsService, e as PublicMarketingCatalogService } from '../plan-versions.service-BB36Q1bg.js';
|
|
13
13
|
export { c as DiscoveryScanner } from '../discovery.scanner-DLgEvuoy.js';
|
|
14
14
|
export { P as PromoCodeRateLimitGuard } from '../rate-limit.guard-dntqAlfZ.js';
|
|
15
|
-
export { f as PromoCodesService } from '../service-
|
|
15
|
+
export { f as PromoCodesService } from '../service-DPZ2W1E-.js';
|
|
16
16
|
export { a as CheckoutOfferModule, b as CheckoutOfferModuleOptions } from '../checkout-offer.module-Ca3_TieR.js';
|
|
17
17
|
export { C as CheckoutOfferService } from '../checkout-offer.service-BX51dljL.js';
|
|
18
18
|
export { S as SubscriptionContractModule, a as SubscriptionContractModuleOptions } from '../subscription-contract.module-edyhBr4n.js';
|
|
@@ -20,7 +20,7 @@ export { S as SubscriptionContractService } from '../subscription-contract.servi
|
|
|
20
20
|
import '@nestjs/common';
|
|
21
21
|
import '../di-CcNeq9v-.js';
|
|
22
22
|
import '../plan-resolution-CFCoUkrE.js';
|
|
23
|
-
import '../module-
|
|
23
|
+
import '../module-BwD-wAor.js';
|
|
24
24
|
import '../catalog.module-BKObceo0.js';
|
|
25
25
|
import '../subscription-bundles.module-BQmoozm5.js';
|
|
26
26
|
import '@nestjs/core';
|
package/dist/platform/index.js
CHANGED
|
@@ -16,10 +16,10 @@ import {
|
|
|
16
16
|
SubscriptionPlanResolver,
|
|
17
17
|
TenantManifestService,
|
|
18
18
|
buildTenantManifestController
|
|
19
|
-
} from "../chunk-
|
|
19
|
+
} from "../chunk-KUDKD7ZG.js";
|
|
20
20
|
import {
|
|
21
21
|
PromoCodeRateLimitGuard
|
|
22
|
-
} from "../chunk-
|
|
22
|
+
} from "../chunk-EUU3B6NB.js";
|
|
23
23
|
import {
|
|
24
24
|
AdminBypassRlsInterceptor,
|
|
25
25
|
AdminManifestModule,
|
|
@@ -31,7 +31,7 @@ import {
|
|
|
31
31
|
MfaGuard,
|
|
32
32
|
MfaService,
|
|
33
33
|
SuperAdminGuard
|
|
34
|
-
} from "../chunk-
|
|
34
|
+
} from "../chunk-7JIHG53V.js";
|
|
35
35
|
import {
|
|
36
36
|
ComposedTenantAuthGuard,
|
|
37
37
|
PendingPlanMaterializationService,
|
|
@@ -40,14 +40,14 @@ import {
|
|
|
40
40
|
SubscriptionBundlesService,
|
|
41
41
|
TenantAdminGuard,
|
|
42
42
|
TenantBillingController
|
|
43
|
-
} from "../chunk-
|
|
43
|
+
} from "../chunk-I77VS3YH.js";
|
|
44
44
|
import {
|
|
45
45
|
PromoCodesService
|
|
46
|
-
} from "../chunk-
|
|
46
|
+
} from "../chunk-QLJHIIOY.js";
|
|
47
47
|
import {
|
|
48
48
|
SubscriptionContractModule,
|
|
49
49
|
SubscriptionContractService
|
|
50
|
-
} from "../chunk-
|
|
50
|
+
} from "../chunk-B7NRY2LV.js";
|
|
51
51
|
import {
|
|
52
52
|
BundlesService,
|
|
53
53
|
CatalogEntriesService,
|
|
@@ -57,7 +57,7 @@ import {
|
|
|
57
57
|
PlansService,
|
|
58
58
|
PromotionsService,
|
|
59
59
|
PublicMarketingCatalogService
|
|
60
|
-
} from "../chunk-
|
|
60
|
+
} from "../chunk-LXUBCLRK.js";
|
|
61
61
|
import "../chunk-WPUVJRIN.js";
|
|
62
62
|
import {
|
|
63
63
|
AdminAuditService
|
|
@@ -65,21 +65,21 @@ import {
|
|
|
65
65
|
import {
|
|
66
66
|
CheckoutOfferModule,
|
|
67
67
|
CheckoutOfferService
|
|
68
|
-
} from "../chunk-
|
|
69
|
-
import "../chunk-
|
|
68
|
+
} from "../chunk-ORWIGSNN.js";
|
|
69
|
+
import "../chunk-BSK6YBLI.js";
|
|
70
70
|
import {
|
|
71
71
|
SAASICAT_PUBLIC_ROUTE_KEY,
|
|
72
72
|
SaaSiCatPublicRoute,
|
|
73
73
|
isSaaSiCatPublicRoute
|
|
74
74
|
} from "../chunk-YSC46BGM.js";
|
|
75
|
-
import "../chunk-
|
|
75
|
+
import "../chunk-6WL6VQ7Z.js";
|
|
76
76
|
import {
|
|
77
77
|
DiscoveryScanner
|
|
78
|
-
} from "../chunk-
|
|
78
|
+
} from "../chunk-5ZXBXYXU.js";
|
|
79
79
|
import {
|
|
80
80
|
EntitlementService
|
|
81
|
-
} from "../chunk-
|
|
82
|
-
import "../chunk-
|
|
81
|
+
} from "../chunk-F6DCLVBB.js";
|
|
82
|
+
import "../chunk-DQKCK7DX.js";
|
|
83
83
|
import "../chunk-NYLON2VC.js";
|
|
84
84
|
import "../chunk-WKVBNTYC.js";
|
|
85
85
|
import "../chunk-L4KTQ6CL.js";
|
package/dist/promo/index.d.cts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { PromoCodeValueType, PromoCodeDurationType, BillingCycle, PromoCodeRepository, PromoCodeRedemptionRepository } from '@saasicat/types';
|
|
2
|
-
import { f as PromoCodesService, c as PreviewResult } from '../service-
|
|
3
|
-
export { P as PreviewInput, a as PreviewInvalid, b as PreviewReason, d as PreviewValid, e as PromoCodeStats, g as PromoServiceConfig, R as RedeemInput } from '../service-
|
|
2
|
+
import { f as PromoCodesService, c as PreviewResult } from '../service-DPZ2W1E-.cjs';
|
|
3
|
+
export { P as PreviewInput, a as PreviewInvalid, b as PreviewReason, d as PreviewValid, e as PromoCodeStats, g as PromoServiceConfig, R as RedeemInput } from '../service-DPZ2W1E-.cjs';
|
|
4
4
|
export { P as PromoCodeRateLimitGuard, h as hashIp, i as ipFingerprint } from '../rate-limit.guard-dntqAlfZ.cjs';
|
|
5
|
-
export { P as PromoCodesModule, a as PromoCodesModuleOptions } from '../module-
|
|
5
|
+
export { P as PromoCodesModule, a as PromoCodesModuleOptions } from '../module-DsDkbawm.cjs';
|
|
6
6
|
import { Type, CanActivate } from '@nestjs/common';
|
|
7
7
|
import '../di-CcNeq9v-.cjs';
|
|
8
8
|
|
package/dist/promo/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { PromoCodeValueType, PromoCodeDurationType, BillingCycle, PromoCodeRepository, PromoCodeRedemptionRepository } from '@saasicat/types';
|
|
2
|
-
import { f as PromoCodesService, c as PreviewResult } from '../service-
|
|
3
|
-
export { P as PreviewInput, a as PreviewInvalid, b as PreviewReason, d as PreviewValid, e as PromoCodeStats, g as PromoServiceConfig, R as RedeemInput } from '../service-
|
|
2
|
+
import { f as PromoCodesService, c as PreviewResult } from '../service-DPZ2W1E-.js';
|
|
3
|
+
export { P as PreviewInput, a as PreviewInvalid, b as PreviewReason, d as PreviewValid, e as PromoCodeStats, g as PromoServiceConfig, R as RedeemInput } from '../service-DPZ2W1E-.js';
|
|
4
4
|
export { P as PromoCodeRateLimitGuard, h as hashIp, i as ipFingerprint } from '../rate-limit.guard-dntqAlfZ.js';
|
|
5
|
-
export { P as PromoCodesModule, a as PromoCodesModuleOptions } from '../module-
|
|
5
|
+
export { P as PromoCodesModule, a as PromoCodesModuleOptions } from '../module-BwD-wAor.js';
|
|
6
6
|
import { Type, CanActivate } from '@nestjs/common';
|
|
7
7
|
import '../di-CcNeq9v-.js';
|
|
8
8
|
|
package/dist/promo/index.js
CHANGED
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
buildPromoCodeAdminController,
|
|
11
11
|
hashIp,
|
|
12
12
|
ipFingerprint
|
|
13
|
-
} from "../chunk-
|
|
13
|
+
} from "../chunk-EUU3B6NB.js";
|
|
14
14
|
import {
|
|
15
15
|
PROMO_CODE_REDEMPTION_REPOSITORY_TOKEN,
|
|
16
16
|
PROMO_CODE_REPOSITORY_TOKEN,
|
|
@@ -26,14 +26,14 @@ import {
|
|
|
26
26
|
computeDiscountGross,
|
|
27
27
|
computeDiscountedGross,
|
|
28
28
|
computeRegularStartsAt
|
|
29
|
-
} from "../chunk-
|
|
29
|
+
} from "../chunk-QLJHIIOY.js";
|
|
30
30
|
import "../chunk-E56W4U2P.js";
|
|
31
31
|
import "../chunk-YSC46BGM.js";
|
|
32
32
|
import {
|
|
33
33
|
computeIncludedVat,
|
|
34
34
|
grossFromNet,
|
|
35
35
|
round2
|
|
36
|
-
} from "../chunk-
|
|
36
|
+
} from "../chunk-DQKCK7DX.js";
|
|
37
37
|
import "../chunk-SABTXESR.js";
|
|
38
38
|
import "../chunk-SHUYVCID.js";
|
|
39
39
|
export {
|
|
@@ -4,7 +4,7 @@ import { P as ProviderSpec } from './di-CcNeq9v-.js';
|
|
|
4
4
|
import { b as AdminManifestConfig, d as AdminResourcesModuleOptions, g as AdminStatsModuleOptions } from './admin-resources.module-BY5r_1MG.js';
|
|
5
5
|
import { E as EntitlementResolutionConfig } from './plan-resolution-CFCoUkrE.js';
|
|
6
6
|
import { a as SubscriptionContractModuleOptions } from './subscription-contract.module-edyhBr4n.js';
|
|
7
|
-
import { a as PromoCodesModuleOptions } from './module-
|
|
7
|
+
import { a as PromoCodesModuleOptions } from './module-BwD-wAor.js';
|
|
8
8
|
import { b as DiscoveryAppInfo } from './discovery.scanner-DLgEvuoy.js';
|
|
9
9
|
import { b as CatalogModuleOptions } from './catalog.module-BKObceo0.js';
|
|
10
10
|
import { b as CheckoutOfferModuleOptions } from './checkout-offer.module-Ca3_TieR.js';
|
|
@@ -4,7 +4,7 @@ import { P as ProviderSpec } from './di-CcNeq9v-.cjs';
|
|
|
4
4
|
import { b as AdminManifestConfig, d as AdminResourcesModuleOptions, g as AdminStatsModuleOptions } from './admin-resources.module-DGgGSdzN.cjs';
|
|
5
5
|
import { E as EntitlementResolutionConfig } from './plan-resolution-CFCoUkrE.cjs';
|
|
6
6
|
import { a as SubscriptionContractModuleOptions } from './subscription-contract.module-B2uNvUJL.cjs';
|
|
7
|
-
import { a as PromoCodesModuleOptions } from './module-
|
|
7
|
+
import { a as PromoCodesModuleOptions } from './module-DsDkbawm.cjs';
|
|
8
8
|
import { b as DiscoveryAppInfo } from './discovery.scanner-DLgEvuoy.cjs';
|
|
9
9
|
import { b as CatalogModuleOptions } from './catalog.module-Dw2Hrbyu.cjs';
|
|
10
10
|
import { b as CheckoutOfferModuleOptions } from './checkout-offer.module-DmlpPevf.cjs';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { PromoCodeRepository, PromoCodeRedemptionRepository, PromoCodeValidationLogRepository, FirstTimeCustomerCheck, PromoSubscriptionLookup, PromoRevenueDeductionAggregator, TransactionRunner, PlanCatalog, CreatePromoCodeData, PromoCodeRecord, UpdatePromoCodeData, PromoCodeFilter, PromoCodeRedemptionListItem, BillingCycle, PromoCodeRedemptionRecord, TransactionContext } from '@saasicat/types';
|
|
1
|
+
import { PromoCodeRepository, PromoCodeRedemptionRepository, PromoCodeValidationLogRepository, FirstTimeCustomerCheck, PromoSubscriptionLookup, PromoRevenueDeductionAggregator, TransactionRunner, PlanCatalog, CreatePromoCodeData, PromoCodeRecord, UpdatePromoCodeData, PromoCodeFilter, PromoCodeRedemptionListItem, BillingCycle, PromoPreviewInvalidReason, PromoCodeRedemptionRecord, TransactionContext } from '@saasicat/types';
|
|
2
2
|
|
|
3
|
-
type PreviewReason =
|
|
3
|
+
type PreviewReason = PromoPreviewInvalidReason;
|
|
4
4
|
type PreviewInvalid = {
|
|
5
5
|
valid: false;
|
|
6
6
|
reason: PreviewReason;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { PromoCodeRepository, PromoCodeRedemptionRepository, PromoCodeValidationLogRepository, FirstTimeCustomerCheck, PromoSubscriptionLookup, PromoRevenueDeductionAggregator, TransactionRunner, PlanCatalog, CreatePromoCodeData, PromoCodeRecord, UpdatePromoCodeData, PromoCodeFilter, PromoCodeRedemptionListItem, BillingCycle, PromoCodeRedemptionRecord, TransactionContext } from '@saasicat/types';
|
|
1
|
+
import { PromoCodeRepository, PromoCodeRedemptionRepository, PromoCodeValidationLogRepository, FirstTimeCustomerCheck, PromoSubscriptionLookup, PromoRevenueDeductionAggregator, TransactionRunner, PlanCatalog, CreatePromoCodeData, PromoCodeRecord, UpdatePromoCodeData, PromoCodeFilter, PromoCodeRedemptionListItem, BillingCycle, PromoPreviewInvalidReason, PromoCodeRedemptionRecord, TransactionContext } from '@saasicat/types';
|
|
2
2
|
|
|
3
|
-
type PreviewReason =
|
|
3
|
+
type PreviewReason = PromoPreviewInvalidReason;
|
|
4
4
|
type PreviewInvalid = {
|
|
5
5
|
valid: false;
|
|
6
6
|
reason: PreviewReason;
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
contractLineItemToInvoiceLineItem,
|
|
5
5
|
sortContractLineItemsForInvoice,
|
|
6
6
|
subscriptionContractToInvoiceSnapshot
|
|
7
|
-
} from "../chunk-
|
|
8
|
-
import "../chunk-
|
|
7
|
+
} from "../chunk-B7NRY2LV.js";
|
|
8
|
+
import "../chunk-BSK6YBLI.js";
|
|
9
9
|
import {
|
|
10
10
|
SUBSCRIPTION_CONTRACT_REPOSITORY_TOKEN
|
|
11
11
|
} from "../chunk-NYLON2VC.js";
|
package/dist/{tenant-billing.controller-BwZRnJ3q.d.ts → tenant-billing.controller-b1G1yB09.d.ts}
RENAMED
|
@@ -2,7 +2,7 @@ import { CanActivate, ExecutionContext } from '@nestjs/common';
|
|
|
2
2
|
import { b as AuthGuardList, m as SelfServiceBlockedPlans, w as TrialProjectionPort, h as PendingPlanQueryPort, f as ContractFreezePort, l as SelfServiceBlockedBundles, u as TenantIdResolver, B as UserIdResolver, z as UserEmailResolver, a as AuditContextResolver } from './subscription-bundles.module-BQmoozm5.js';
|
|
3
3
|
import { PlanCatalog, SubscriptionUsagePort, UsageSnapshotPort, TenantSubscriptionWritePort, SubscriptionBundleRepository, BundleRepository, SubscriptionBundleView, SubscriptionBundleRecord, PlanRepository, CatalogEntryRepository, BundleVersionRow, SubscriptionUsageRecord, OnboardingSelectionResponse } from '@saasicat/types';
|
|
4
4
|
import { c as EntitlementService, a as EffectiveLimitsSnapshot, t as toEffectiveLimitsSnapshot } from './aggregation-o0LMenvl.js';
|
|
5
|
-
import { f as PromoCodesService } from './service-
|
|
5
|
+
import { f as PromoCodesService } from './service-DPZ2W1E-.js';
|
|
6
6
|
import { A as AdminAuditService } from './admin-audit.service-9IqXMlZm.js';
|
|
7
7
|
|
|
8
8
|
declare class ComposedTenantAuthGuard implements CanActivate {
|
|
@@ -71,7 +71,7 @@ interface PlanChangePreviewDto {
|
|
|
71
71
|
* Projected new trial end after the change (app trial logic, e.g.
|
|
72
72
|
* carry-over of the remaining time). `null` if no TrialProjectionPort is
|
|
73
73
|
* configured, the subscription is not in a trial, or nothing changes.
|
|
74
|
-
* The wizard uses this to show "
|
|
74
|
+
* The wizard uses this to show "regular from the end of the trial".
|
|
75
75
|
*/
|
|
76
76
|
projectedTrialEndsAt: Date | null;
|
|
77
77
|
proration: ProrationDto | null;
|
package/dist/{tenant-billing.controller-CG4CaFUP.d.cts → tenant-billing.controller-m42YQ_Ei.d.cts}
RENAMED
|
@@ -2,7 +2,7 @@ import { CanActivate, ExecutionContext } from '@nestjs/common';
|
|
|
2
2
|
import { b as AuthGuardList, m as SelfServiceBlockedPlans, w as TrialProjectionPort, h as PendingPlanQueryPort, f as ContractFreezePort, l as SelfServiceBlockedBundles, u as TenantIdResolver, B as UserIdResolver, z as UserEmailResolver, a as AuditContextResolver } from './subscription-bundles.module-DCpV-Pb5.cjs';
|
|
3
3
|
import { PlanCatalog, SubscriptionUsagePort, UsageSnapshotPort, TenantSubscriptionWritePort, SubscriptionBundleRepository, BundleRepository, SubscriptionBundleView, SubscriptionBundleRecord, PlanRepository, CatalogEntryRepository, BundleVersionRow, SubscriptionUsageRecord, OnboardingSelectionResponse } from '@saasicat/types';
|
|
4
4
|
import { c as EntitlementService, a as EffectiveLimitsSnapshot, t as toEffectiveLimitsSnapshot } from './aggregation-SKfXu09x.cjs';
|
|
5
|
-
import { f as PromoCodesService } from './service-
|
|
5
|
+
import { f as PromoCodesService } from './service-DPZ2W1E-.cjs';
|
|
6
6
|
import { A as AdminAuditService } from './admin-audit.service-9IqXMlZm.cjs';
|
|
7
7
|
|
|
8
8
|
declare class ComposedTenantAuthGuard implements CanActivate {
|
|
@@ -71,7 +71,7 @@ interface PlanChangePreviewDto {
|
|
|
71
71
|
* Projected new trial end after the change (app trial logic, e.g.
|
|
72
72
|
* carry-over of the remaining time). `null` if no TrialProjectionPort is
|
|
73
73
|
* configured, the subscription is not in a trial, or nothing changes.
|
|
74
|
-
* The wizard uses this to show "
|
|
74
|
+
* The wizard uses this to show "regular from the end of the trial".
|
|
75
75
|
*/
|
|
76
76
|
projectedTrialEndsAt: Date | null;
|
|
77
77
|
proration: ProrationDto | null;
|
package/dist/testing/index.d.cts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { BundleRepository, BundleRow, BundleVersionRow, BundleListFilter, CreateBundleData, UpdateBundleData, CreateBundleVersionDraftData, UpdateBundleVersionDraftData, VersionChange, MarketingProjectionRepository, MarketingProjectionRow, MarketingProjectionFilter, CreateMarketingProjectionData, UpdateMarketingProjectionData, PlanRepository, PlanRow, PlanVersionRow, PlanListFilter, CreatePlanData, UpdatePlanData, CreatePlanVersionDraftData, UpdatePlanVersionDraftData, PlanVersionRepository, PlanVersionRecord, TransactionContext, SubscriptionBundleRepository, SubscriptionBundleRecord, CreateSubscriptionBundleData, CancelSubscriptionBundleData, SubscriptionContractRepository, SubscriptionContractFilter, SubscriptionContractRecord, CreateSubscriptionContractData, TerminateSubscriptionContractData, SubscriptionRepository, SubscriptionRecord, TransactionRunner, PlanCatalog, QuotaProvider } from '@saasicat/types';
|
|
2
2
|
import { Type, DynamicModule } from '@nestjs/common';
|
|
3
|
-
import { a as SaasPlatformAdapters } from '../saas-platform.module-
|
|
4
|
-
export { P as PLAN_RESOLVER_PORT_TOKEN, o as StaticPlanResolver } from '../saas-platform.module-
|
|
5
|
-
export { E as EnforceQuotaInterceptor, S as StaticEntitlementService, a as StaticFeatureGuard } from '../enforce-quota.interceptor-
|
|
3
|
+
import { a as SaasPlatformAdapters } from '../saas-platform.module-DducnQ9s.cjs';
|
|
4
|
+
export { P as PLAN_RESOLVER_PORT_TOKEN, o as StaticPlanResolver } from '../saas-platform.module-DducnQ9s.cjs';
|
|
5
|
+
export { E as EnforceQuotaInterceptor, S as StaticEntitlementService, a as StaticFeatureGuard } from '../enforce-quota.interceptor-Dk0eEtzV.cjs';
|
|
6
6
|
import '../di-CcNeq9v-.cjs';
|
|
7
7
|
import '../admin-resources.module-DGgGSdzN.cjs';
|
|
8
8
|
import '../admin-audit.service-9IqXMlZm.cjs';
|
|
9
9
|
import '../plan-resolution-CFCoUkrE.cjs';
|
|
10
10
|
import '../subscription-contract.module-B2uNvUJL.cjs';
|
|
11
|
-
import '../module-
|
|
12
|
-
import '../service-
|
|
11
|
+
import '../module-DsDkbawm.cjs';
|
|
12
|
+
import '../service-DPZ2W1E-.cjs';
|
|
13
13
|
import '../discovery.scanner-DLgEvuoy.cjs';
|
|
14
14
|
import '@nestjs/core';
|
|
15
15
|
import '../catalog.module-Dw2Hrbyu.cjs';
|
package/dist/testing/index.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { BundleRepository, BundleRow, BundleVersionRow, BundleListFilter, CreateBundleData, UpdateBundleData, CreateBundleVersionDraftData, UpdateBundleVersionDraftData, VersionChange, MarketingProjectionRepository, MarketingProjectionRow, MarketingProjectionFilter, CreateMarketingProjectionData, UpdateMarketingProjectionData, PlanRepository, PlanRow, PlanVersionRow, PlanListFilter, CreatePlanData, UpdatePlanData, CreatePlanVersionDraftData, UpdatePlanVersionDraftData, PlanVersionRepository, PlanVersionRecord, TransactionContext, SubscriptionBundleRepository, SubscriptionBundleRecord, CreateSubscriptionBundleData, CancelSubscriptionBundleData, SubscriptionContractRepository, SubscriptionContractFilter, SubscriptionContractRecord, CreateSubscriptionContractData, TerminateSubscriptionContractData, SubscriptionRepository, SubscriptionRecord, TransactionRunner, PlanCatalog, QuotaProvider } from '@saasicat/types';
|
|
2
2
|
import { Type, DynamicModule } from '@nestjs/common';
|
|
3
|
-
import { a as SaasPlatformAdapters } from '../saas-platform.module-
|
|
4
|
-
export { P as PLAN_RESOLVER_PORT_TOKEN, o as StaticPlanResolver } from '../saas-platform.module-
|
|
5
|
-
export { E as EnforceQuotaInterceptor, S as StaticEntitlementService, a as StaticFeatureGuard } from '../enforce-quota.interceptor-
|
|
3
|
+
import { a as SaasPlatformAdapters } from '../saas-platform.module-BQmrDGVU.js';
|
|
4
|
+
export { P as PLAN_RESOLVER_PORT_TOKEN, o as StaticPlanResolver } from '../saas-platform.module-BQmrDGVU.js';
|
|
5
|
+
export { E as EnforceQuotaInterceptor, S as StaticEntitlementService, a as StaticFeatureGuard } from '../enforce-quota.interceptor-Dp8wTYro.js';
|
|
6
6
|
import '../di-CcNeq9v-.js';
|
|
7
7
|
import '../admin-resources.module-BY5r_1MG.js';
|
|
8
8
|
import '../admin-audit.service-9IqXMlZm.js';
|
|
9
9
|
import '../plan-resolution-CFCoUkrE.js';
|
|
10
10
|
import '../subscription-contract.module-edyhBr4n.js';
|
|
11
|
-
import '../module-
|
|
12
|
-
import '../service-
|
|
11
|
+
import '../module-BwD-wAor.js';
|
|
12
|
+
import '../service-DPZ2W1E-.js';
|
|
13
13
|
import '../discovery.scanner-DLgEvuoy.js';
|
|
14
14
|
import '@nestjs/core';
|
|
15
15
|
import '../catalog.module-BKObceo0.js';
|