@saasicat/nest 1.0.0-rc.2 → 1.0.0-rc.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +44 -8
- package/dist/.build-stamp +1 -1
- package/dist/_entries.cjs +10214 -4796
- package/dist/admin/index.d.cts +5 -4
- package/dist/admin/index.d.ts +5 -4
- package/dist/admin/index.js +13 -9
- package/dist/{admin-resources.module-CpvzcfCc.d.cts → admin-resources.module-B4XNvdH-.d.cts} +1 -2
- package/dist/{admin-resources.module-DF5_Q7RD.d.ts → admin-resources.module-CWqdI9BV.d.ts} +1 -2
- package/dist/{admin-stats.service-TYiSUwIR.d.ts → admin-stats.service-CsLNt19Z.d.ts} +11 -7
- package/dist/{admin-stats.service-DfKupywR.d.cts → admin-stats.service-DrZrU8IJ.d.cts} +11 -7
- package/dist/{aggregation-B3CD0v_d.d.cts → aggregation-ChpZDh0g.d.ts} +39 -6
- package/dist/{aggregation-BFzW07DE.d.ts → aggregation-OpnhwzF5.d.cts} +39 -6
- package/dist/billing/index.d.cts +448 -108
- package/dist/billing/index.d.ts +448 -108
- package/dist/billing/index.js +108 -41
- package/dist/catalog/index.d.cts +74 -45
- package/dist/catalog/index.d.ts +74 -45
- package/dist/catalog/index.js +21 -13
- package/dist/catalog.module-C9O7BxRq.d.ts +180 -0
- package/dist/catalog.module-T-I5Ricz.d.cts +180 -0
- package/dist/checkout-offer/index.d.cts +17 -22
- package/dist/checkout-offer/index.d.ts +17 -22
- package/dist/checkout-offer/index.js +21 -7
- package/dist/checkout-offer.module-DFhGy6JO.d.cts +58 -0
- package/dist/checkout-offer.module-x7SP_dX4.d.ts +58 -0
- package/dist/checkout-offer.service-BeHgYikI.d.ts +242 -0
- package/dist/checkout-offer.service-CCVxG9b2.d.cts +242 -0
- package/dist/chunk-34XVPR6P.js +222 -0
- package/dist/{chunk-AOQJEYOL.js → chunk-3QVGA6JX.js} +3 -1
- package/dist/chunk-3RLWML2S.js +896 -0
- package/dist/{chunk-TXC3LHHB.js → chunk-4SDSYV4A.js} +21 -13
- package/dist/chunk-55QEDAMX.js +946 -0
- package/dist/chunk-5CKC7O52.js +140 -0
- package/dist/chunk-6PJE7EWO.js +185 -0
- package/dist/chunk-7NJKVC5X.js +353 -0
- package/dist/{chunk-RUNZ3X4C.js → chunk-AOS2JPDD.js} +1263 -185
- package/dist/{chunk-WOVQPXV4.js → chunk-CQ2ZZMTD.js} +702 -725
- package/dist/{chunk-NA6O63B7.js → chunk-F5X66HF5.js} +5 -5
- package/dist/chunk-FEQZCWUL.js +174 -0
- package/dist/{chunk-VIJ5NJWC.js → chunk-G6EZWECL.js} +107 -31
- package/dist/chunk-G7RQO2XO.js +0 -0
- package/dist/{chunk-N3L3AICU.js → chunk-GPQWGA6B.js} +5 -6
- package/dist/chunk-GZTL64QK.js +7 -0
- package/dist/{chunk-SABTXESR.js → chunk-J7NJRK3K.js} +17 -1
- package/dist/{chunk-SEPN52AD.js → chunk-JBCC6C3M.js} +566 -307
- package/dist/{chunk-I7GTA3RX.js → chunk-JQRA724W.js} +1 -1
- package/dist/{chunk-WXYJHZCN.js → chunk-JVAEKTJ4.js} +2 -14
- package/dist/chunk-KPEMTBOP.js +26 -0
- package/dist/chunk-LF6J4YYN.js +301 -0
- package/dist/{chunk-LTT736P3.js → chunk-LLYVYRGJ.js} +228 -387
- package/dist/{chunk-6Z7JR4EW.js → chunk-M47BNEY2.js} +1897 -633
- package/dist/{chunk-KFT5AIIH.js → chunk-NDLC5GYK.js} +206 -24
- package/dist/{chunk-O2J2HDXA.js → chunk-OOTEXP47.js} +3 -8
- package/dist/chunk-QPVDCKYS.js +702 -0
- package/dist/{chunk-NHVDCYK5.js → chunk-R5YCJBHY.js} +71 -106
- package/dist/{chunk-XBYAFEOR.js → chunk-S33SO5XX.js} +1 -1
- package/dist/chunk-SZ7RFPXA.js +10 -0
- package/dist/chunk-TBBZWZQT.js +98 -0
- package/dist/chunk-TOEFN7DN.js +295 -0
- package/dist/{chunk-7ZEGFL42.js → chunk-WHJSYKNC.js} +6 -6
- package/dist/chunk-WOEJ6K7M.js +55 -0
- package/dist/{chunk-AU3OOREM.js → chunk-XSSWYPP5.js} +16 -3
- package/dist/contract-line-item-money-B0Z3Ogur.d.cts +43 -0
- package/dist/contract-line-item-money-B0Z3Ogur.d.ts +43 -0
- package/dist/discovery/index.d.cts +2 -2
- package/dist/discovery/index.d.ts +2 -2
- package/dist/discovery/index.js +6 -6
- package/dist/{discovery.scanner-9cMqF95o.d.cts → discovery.scanner-DXKc6JkV.d.cts} +1 -1
- package/dist/{discovery.scanner-9cMqF95o.d.ts → discovery.scanner-DXKc6JkV.d.ts} +1 -1
- package/dist/{enforce-quota.interceptor-Df0e3OWe.d.cts → enforce-quota.interceptor-BFyVdWe8.d.cts} +6 -6
- package/dist/{enforce-quota.interceptor-DW3etVyI.d.ts → enforce-quota.interceptor-GaBXboGx.d.ts} +6 -6
- package/dist/entitlement/index.d.cts +27 -4
- package/dist/entitlement/index.d.ts +27 -4
- package/dist/entitlement/index.js +13 -8
- package/dist/index.d.cts +209 -28
- package/dist/index.d.ts +209 -28
- package/dist/index.js +285 -163
- package/dist/issuer-identity.check-CBO0vcsq.d.cts +197 -0
- package/dist/issuer-identity.check-Cz9CEMkZ.d.ts +197 -0
- package/dist/{module-options-COSEb0VW.d.ts → module-options-DmQ3G4sZ.d.ts} +135 -41
- package/dist/{module-options-BG3MzQva.d.cts → module-options-qAOwinHR.d.cts} +135 -41
- package/dist/payment-callback.service-CR84Xw1Z.d.cts +125 -0
- package/dist/payment-callback.service-CR84Xw1Z.d.ts +125 -0
- package/dist/payments/index.cjs +4 -0
- package/dist/payments/index.d.cts +187 -0
- package/dist/payments/index.d.ts +187 -0
- package/dist/payments/index.js +141 -0
- package/dist/payments.module-BdUq9ot_.d.cts +57 -0
- package/dist/payments.module-CQGv_VG7.d.ts +57 -0
- package/dist/plan-catalog-source-DWe-BGY1.d.cts +21 -0
- package/dist/plan-catalog-source-DWe-BGY1.d.ts +21 -0
- package/dist/{plan-resolution-Cgo_TR1H.d.cts → plan-resolution-CwUy_OqC.d.cts} +14 -0
- package/dist/{plan-resolution-Cgo_TR1H.d.ts → plan-resolution-CwUy_OqC.d.ts} +14 -0
- package/dist/{plan-versions.service-DChhbK6h.d.ts → plan-versions.service-C0N-Em2W.d.ts} +38 -64
- package/dist/{plan-versions.service-TPEtbN0r.d.cts → plan-versions.service-DARLh-qI.d.cts} +38 -64
- package/dist/platform/index.d.cts +52 -23
- package/dist/platform/index.d.ts +52 -23
- package/dist/platform/index.js +57 -36
- package/dist/promo/index.d.cts +23 -8
- package/dist/promo/index.d.ts +23 -8
- package/dist/promo/index.js +15 -7
- package/dist/{promo.module-DtvIycpt.d.cts → promo.module-CKkECmU8.d.cts} +9 -3
- package/dist/{promo.module-Z8h1PNX-.d.ts → promo.module-DuIJdK3U.d.ts} +9 -3
- package/dist/promo.service-BYBu6dy3.d.cts +215 -0
- package/dist/promo.service-CFjfF0Xm.d.ts +215 -0
- package/dist/registration/index.d.cts +104 -47
- package/dist/registration/index.d.ts +104 -47
- package/dist/registration/index.js +15 -9
- package/dist/subscriber/index.cjs +4 -0
- package/dist/subscriber/index.d.cts +28 -0
- package/dist/subscriber/index.d.ts +28 -0
- package/dist/subscriber/index.js +16 -0
- package/dist/subscriber.service-5W6Gi-1B.d.cts +68 -0
- package/dist/subscriber.service-5W6Gi-1B.d.ts +68 -0
- package/dist/subscription-contract/index.d.cts +4 -2
- package/dist/subscription-contract/index.d.ts +4 -2
- package/dist/subscription-contract/index.js +13 -5
- package/dist/{subscription-contract.module-fDFdQ0jm.d.ts → subscription-contract.module-BfIRpc1o.d.ts} +8 -2
- package/dist/{subscription-contract.module-CEK8HS5-.d.cts → subscription-contract.module-DTMuUJYd.d.cts} +8 -2
- package/dist/{subscription-contract.service-hD87MKyg.d.cts → subscription-contract.service-CPZrTM9C.d.ts} +32 -3
- package/dist/{subscription-contract.service-hD87MKyg.d.ts → subscription-contract.service-CfNApLuP.d.cts} +32 -3
- package/dist/tenant-billing.controller-BLqbsONe.d.ts +812 -0
- package/dist/tenant-billing.controller-DKbAqTbM.d.cts +812 -0
- package/dist/tenant-billing.module-ClbjzocC.d.cts +364 -0
- package/dist/tenant-billing.module-DohgJJ2m.d.ts +364 -0
- package/dist/tenant-billing.tokens-G-1xOlMr.d.cts +129 -0
- package/dist/tenant-billing.tokens-G-1xOlMr.d.ts +129 -0
- package/dist/testing/index.d.cts +44 -17
- package/dist/testing/index.d.ts +44 -17
- package/dist/testing/index.js +189 -40
- package/package.json +24 -4
- package/dist/catalog.module-BDDO6iwq.d.cts +0 -103
- package/dist/catalog.module-BTnMsE6u.d.ts +0 -103
- package/dist/checkout-offer.module-CMtiQJTT.d.ts +0 -39
- package/dist/checkout-offer.module-CVpWrzbe.d.cts +0 -39
- package/dist/checkout-offer.service-BLOv2HOo.d.cts +0 -49
- package/dist/checkout-offer.service-BLOv2HOo.d.ts +0 -49
- package/dist/chunk-57V6ZTI6.js +0 -22
- package/dist/chunk-BSK6YBLI.js +0 -87
- package/dist/chunk-DQKCK7DX.js +0 -217
- package/dist/chunk-VXEYLNIB.js +0 -632
- package/dist/chunk-WUDYIPYH.js +0 -715
- package/dist/define-saasicat-DROBe-b1.d.ts +0 -69
- package/dist/define-saasicat-vGBCkFys.d.cts +0 -69
- package/dist/promo.service-BJbKAmw3.d.cts +0 -112
- package/dist/promo.service-BJbKAmw3.d.ts +0 -112
- package/dist/tenant-billing.controller-BQ67mlmI.d.ts +0 -438
- package/dist/tenant-billing.controller-DS8kB8a7.d.cts +0 -438
- package/dist/tenant-billing.module-BznC3XtW.d.cts +0 -299
- package/dist/tenant-billing.module-wUbsQSFG.d.ts +0 -299
- /package/dist/{chunk-2FR6ZL7R.js → chunk-BHZOH2DY.js} +0 -0
- /package/dist/{chunk-2SLTRKXC.js → chunk-DFOW3JVO.js} +0 -0
- /package/dist/{chunk-DBZGV3HC.js → chunk-DU56UKEH.js} +0 -0
- /package/dist/{chunk-OYNHOY45.js → chunk-GAUEVIAE.js} +0 -0
package/dist/index.d.ts
CHANGED
|
@@ -1,39 +1,50 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export {
|
|
5
|
-
export {
|
|
1
|
+
import { P as ProviderSpec } from './di-CcNeq9v-.js';
|
|
2
|
+
export { a as asProvider } from './di-CcNeq9v-.js';
|
|
3
|
+
import { S as SetupService } from './issuer-identity.check-Cz9CEMkZ.js';
|
|
4
|
+
export { I as IssuerIdentityCheck, a as IssuerIdentityInspector, b as IssuerIdentityVerdict, c as SAASICAT_PUBLIC_ROUTE_KEY, d as SETUP_CONFIG_TOKEN, e as SETUP_PROVISIONING_PORT_TOKEN, f as SaaSiCatModule, g as SaaSiCatPublicRoute, h as SetupConfig, i as defineSaaSiCat, j as isSaaSiCatPublicRoute } from './issuer-identity.check-Cz9CEMkZ.js';
|
|
5
|
+
export { CreatePromoCodeDto, PROMO_CODE_HOLD_REPOSITORY_TOKEN, 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, isTaxRatePercent, netFromGross, round2 } from './promo/index.js';
|
|
6
|
+
export { C as CODE_MAX_LENGTH, b as CODE_MIN_LENGTH, c as CODE_PATTERN, d as CheckoutHoldInput, e as PreviewInput, f as PreviewInvalid, g as PreviewOptions, h as PreviewReason, i as PreviewResult, j as PreviewValid, k as PromoCodeStats, a as PromoCodesService, P as PromoServiceConfig, R as RedeemInput } from './promo.service-CFjfF0Xm.js';
|
|
6
7
|
export { P as PromoCodeRateLimitGuard, h as hashIp, i as ipFingerprint } from './rate-limit.guard-dntqAlfZ.js';
|
|
7
|
-
export {
|
|
8
|
-
export {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
export {
|
|
12
|
-
export { A as
|
|
13
|
-
export {
|
|
14
|
-
export {
|
|
15
|
-
export { E as
|
|
8
|
+
export { a as PromoCodesModule, P as PromoCodesModuleOptions } from './promo.module-DuIJdK3U.js';
|
|
9
|
+
export { AddSubscriptionBundleDto, BILLING_FEATURE_UI_REGISTRY_TOKEN, BillingPermissionGuard, BundleFirstPeriodInput, BundlePeriodRollInput, BundlePeriodWindow, BundlePlanContext, BundlePriceLookupDto, CancelSubscriptionBundleDto, CatalogBundleUpsellResolver, ConfiguratorCatalogBuilder, DEFAULT_BUNDLE_MINIMUM_TERM_MONTHS, FEATURE_GUARD_CONFIG_TOKEN, FeatureGuard, FeatureGuardConfig, LimitExceededFilter, MarketingFields, NextPeriodWindow, PLAN_CATALOG_IMPORT_SINK_TOKEN, PLAN_CATALOG_READ_SINK_TOKEN, PLAN_CATALOG_SETTINGS_TOKEN, PLAN_CATALOG_SOURCE_TOKEN, PUBLIC_CATALOG_BUNDLE_REPOSITORY_TOKEN, PUBLIC_CATALOG_MARKETING_REPOSITORY_TOKEN, PeriodRollInput, PlanAnchorSource, PlanCatalogBuildSettings, PlanCatalogImportDto, PlanCatalogImporterControllerConfig, PlanCatalogImporterModule, PlanCatalogImporterModuleOptions, PlanCatalogImporterService, PlanCatalogModule, PlanCatalogModuleOptions, PlanResponseEntry, PreviewSubscriptionBundleDto, 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, advanceOneCycle, assertBaseVersionFresh, assertChangeNote, assertDraftPublishable, assertOptimisticLockHeld, billingAnchorDay, buildPlanCatalogFromSnapshot, buildPlanCatalogImporterController, buildTenantSubscriptionBundlesController, bundleCycleFitsPlan, bundleFirstPeriodEnd, bundleFirstPeriodStart, bundleNextPeriodEnd, clearPendingPlanVersionFields, computeCarriedTrialEndsAt, computeNextBundlePeriod, computeNextPeriod, cyclesSoldFor, decideRenewal, findPlan, getActiveFeatureKeys, getMarketedPlans, getPlanOrThrow, getPlanPriceGross, getPlanPriceNet, getPlanQuota, initialPeriodWindow, isFeatureInPlan, isFeaturePlannedOnly, isPlanNotSoldInCycle, listPriceNet, periodEndAfter, periodEndWithMinLead, planNotSoldInCycle, resolveBundlePriceNet, resolvePlanAnchorDay, retreatOneCycle } from './billing/index.js';
|
|
10
|
+
export { A as AddBundleToSubscriptionInput, B as BundlePreviewSnapshot, C as CancelBundleFromSubscriptionInput, a as CancelSubscriptionDto, b as CancellableSubscription, c as CancellationDecision, d as CancellationInput, e as ChangePlanDto, f as CompleteOnboardingSubscriptionDto, g as ComposedTenantAuthGuard, h as CycleDirection, L as LimitsCheckRow, N as NO_NOTICE_PERIOD, P as PendingPlanMaterializationService, i as PlanChangeContext, j as PlanChangePreviewDto, k as PlanChangePreviewIssue, l as PlanChangePreviewService, m as PlanChangeType, n as PlanDirection, o as PlanSnapshotDto, p as PreviewPlanChangeDto, q as ProrationDto, r as ProrationInput, R as RedundantFeatureHint, S as SubscriptionBundleAddPreviewDto, s as SubscriptionBundleCancelPreviewDto, t as SubscriptionBundleConfig, u as SubscriptionBundlePreviewContext, v as SubscriptionBundlePreviewIssue, w as SubscriptionBundlePreviewService, x as SubscriptionBundlesService, T as TenantAdminGuard, y as TenantBillingController, U as UsageResponse, z as addMonths, D as clampToParent, E as computeProration, F as decideCancellation, G as decideCancellationFor, H as noticeDaysFor, I as resolveBundleCancelEffectiveAt } from './tenant-billing.controller-BLqbsONe.js';
|
|
11
|
+
import { SetupStatusResponse, SetupResult, SetupConfirmMfaResponse, PlanCatalogSettings, EmailPort, SettingsChangeRecord, AppliedSettingsPort, AppliedSettingsRecord, AppliedSettingsValues, SettingsDifference, PlatformErrorCode, PlatformErrorBody } from '@saasicat/core';
|
|
12
|
+
export { BundleVersionFields, CancellationNoticePeriods, ChangeDirection, DiffResult, DiscoveredCapability, DiscoveredFeature, DiscoveredQuota, DiscoverySnapshot, PasswordHasher, PlanVersionFields, SelfServiceBlockedPlans, VersionChange, VersionChangeDirection, classifyBundleVersionDiff, classifyPlanDiff } from '@saasicat/core';
|
|
13
|
+
export { A as AjvErrorLike, C as CONTRACT_FREEZE_PORT_TOKEN, b as CONTRACT_FREEZE_SOURCE_PORT_TOKEN, c as ContractFreezeBundleSnapshot, d as ContractFreezePort, e as ContractFreezeSourcePort, E as EnvironmentVariables, F as FEATURE_GUARD_MARKER, f as LoadPlanCatalogFromStringOptions, L as LoadPlanCatalogOptions, M as MarkedFeatureGuard, P as PLAN_CATALOG_UNREADABLE_ERROR, g as PlanCatalogValidationError, h as SELF_SERVICE_BLOCKED_BUNDLES_TOKEN, i as SELF_SERVICE_BLOCKED_PLANS_TOKEN, j as SelfServiceBlockedBundles, a as SubscriptionBundleControllerOptions, k as SubscriptionBundleModule, S as SubscriptionBundleModuleOptions, l as TenantBillingModule, T as TenantBillingModuleOptions, m as catalogSource, n as isPlatformFeatureGuard, o as loadPlanCatalogFromFile, p as loadPlanCatalogFromString } from './tenant-billing.module-DohgJJ2m.js';
|
|
14
|
+
export { a as PlanCatalogOrigin, P as PlanCatalogSource, g as givenPlanCatalogSource } from './plan-catalog-source-DWe-BGY1.js';
|
|
15
|
+
export { c as AUDIT_CONTEXT_RESOLVER_TOKEN, A as AuditContextResolver, d as AuthGuardList, B as BILLING_PERMISSION_GUARDS_TOKEN, C as CANCELLATION_NOTICE_DAYS_TOKEN, D as DuePendingPlanChange, e as PENDING_PLAN_QUERY_PORT_TOKEN, P as PendingPlanQueryPort, S as SUBSCRIPTION_USAGE_PORT_TOKEN, f as SUBSCRIPTION_WRITE_PORT_TOKEN, g as TENANT_AUTH_GUARDS_TOKEN, h as TENANT_ID_RESOLVER_TOKEN, i as TRIAL_PROJECTION_PORT_TOKEN, T as TenantIdResolver, j as TrialProjectionInput, a as TrialProjectionPort, k as USAGE_SNAPSHOT_PORT_TOKEN, l as USER_EMAIL_RESOLVER_TOKEN, m as USER_ID_RESOLVER_TOKEN, U as UserEmailResolver, b as UserIdResolver } from './tenant-billing.tokens-G-1xOlMr.js';
|
|
16
|
+
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-ChpZDh0g.js';
|
|
17
|
+
export { CancellationDates, ENTITLEMENT_RESOLUTION_CONFIG_TOKEN, ENTITLEMENT_SERVICE_TOKEN, EntitlementModule, EntitlementModuleOptions, LimitExceededError, PLAN_VERSION_REPOSITORY_TOKEN, ReplacedByIndex, SUBSCRIPTION_REPOSITORY_TOKEN, TRANSACTION_RUNNER_TOKEN, buildReplacedByIndex, cancellationHasLanded, cancellationLandsAt, expandReplacedFeatures, isLimitExceededError } from './entitlement/index.js';
|
|
18
|
+
export { E as EntitlementResolutionConfig, a as EntitlementResolutionInput, r as resolveEntitlementPlan } from './plan-resolution-CwUy_OqC.js';
|
|
16
19
|
export { ADMIN_STATS_AUDIT_WINDOW_DAYS_TOKEN, AUDIT_PORT_TOKEN, AUDIT_STATS_PORT_TOKEN, AdminPublicBootController, AdminStatsController, MFA_PORT_TOKEN, PLATFORM_CORE_MANIFEST_CONTRIBUTION, PROMO_CODE_STATS_PORT_TOKEN, RLS_BYPASS_PORT_TOKEN, SUBSCRIPTION_STATS_PORT_TOKEN, buildAdminStatsController } from './admin/index.js';
|
|
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,
|
|
20
|
+
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, h as MfaGuard, M 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-CsLNt19Z.js';
|
|
18
21
|
export { A as AdminAuditService } from './admin-audit.service-4P3Djdxk.js';
|
|
19
|
-
export {
|
|
20
|
-
export { S as SaaSiCatAdapters,
|
|
21
|
-
export { ACTIVATION_ORCHESTRATOR_TOKEN, BaseIpRateLimitGuard, ContinueRegistrationDto, PASSWORD_HASHER_TOKEN,
|
|
22
|
+
export { c as ADMIN_MANIFEST_CONFIG, d as ADMIN_RESOURCES_PORT_TOKEN, b as AdminManifestConfig, e as AdminResourcesModule, A as AdminResourcesModuleOptions, f as AdminResourcesService, g as AdminStatsModule, a as AdminStatsModuleOptions, S as SuspendTenantDto } from './admin-resources.module-CWqdI9BV.js';
|
|
23
|
+
export { S as SaaSiCatAdapters, d as SaaSiCatAdminResourcesOptions, e as SaaSiCatAdminStatsOptions, f as SaaSiCatCatalogOptions, g as SaaSiCatCheckoutOfferOptions, c as SaaSiCatModuleOptions, h as SaaSiCatPromoCodesOptions, i as SaaSiCatSetupOptions, j as SaaSiCatSubscriptionBundlesOptions, k as SaaSiCatSubscriptionContractOptions, l as SaaSiCatTenantAuthGuards, m as SaaSiCatTenantBillingOptions, n as SetupModule, o as SetupModuleOptions } from './module-options-DmQ3G4sZ.js';
|
|
24
|
+
export { ACTIVATION_ORCHESTRATOR_TOKEN, BaseIpRateLimitGuard, ContinueRegistrationDto, PASSWORD_HASHER_TOKEN, PENDING_REGISTRATION_REPOSITORY_TOKEN, PLAN_CATALOG_LOOKUP_TOKEN, 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, RegistrationBillingDetailsDto, 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
25
|
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
|
-
export {
|
|
24
|
-
export { B as BundlesService, C as CatalogEntriesService, a as CatalogServiceConfig, M as MarketingProjectionsService, b as MarketingSettingsService, P as PlanVersionsService, c as PlansService, d as PromotionsService
|
|
25
|
-
export { ADVISORY_STRICT_MODE_CODES, BUNDLE_REPOSITORY_TOKEN, CATALOG_ENTRY_REPOSITORY_TOKEN, CATALOG_FEATURE_UI_REGISTRY_TOKEN, CATALOG_SERVICE_CONFIG_TOKEN, CreateBundleDto, CreateBundleVersionDraftDto, CreateMarketingProjectionDto, CreatePlanDto, CreatePlanVersionDraftDto, CreatePromotionDto, ListCatalogEntriesQueryDto, ListMarketingProjectionsQueryDto,
|
|
26
|
-
export {
|
|
27
|
-
export { C as CheckoutOfferService } from './checkout-offer.service-
|
|
28
|
-
export { CHECKOUT_OFFER_REPOSITORY_TOKEN, CreateCheckoutOfferDto, UpdateCheckoutOfferDto, buildCheckoutOfferController } from './checkout-offer/index.js';
|
|
29
|
-
export {
|
|
30
|
-
export { C as CreateContractFromOfferOptions, S as SubscriptionContractService, c as contractLineItemToInvoiceLineItem, s as sortContractLineItemsForInvoice, a as subscriptionContractToInvoiceSnapshot } from './subscription-contract.service-
|
|
31
|
-
export {
|
|
26
|
+
export { b as DISCOVERY_APP_INFO_TOKEN, c as DISCOVERY_SNAPSHOT_PATH_TOKEN, D as DiscoveryAppInfo, a as DiscoveryScanner, d as computeSnapshotHash } from './discovery.scanner-DXKc6JkV.js';
|
|
27
|
+
export { B as BundlesService, C as CatalogEntriesService, a as CatalogServiceConfig, M as MarketingProjectionsService, b as MarketingSettingsService, P as PlanVersionsService, c as PlansService, d as PromotionsService } from './plan-versions.service-C0N-Em2W.js';
|
|
28
|
+
export { ADVISORY_STRICT_MODE_CODES, BUNDLE_REPOSITORY_TOKEN, BUNDLE_VERSION_WINDOW_CODES, CATALOG_ENTRY_REPOSITORY_TOKEN, CATALOG_FEATURE_UI_REGISTRY_TOKEN, CATALOG_SERVICE_CONFIG_TOKEN, CreateBundleDto, CreateBundleVersionDraftDto, CreateMarketingProjectionDto, CreatePlanDto, CreatePlanVersionDraftDto, CreatePromotionDto, ListCatalogEntriesQueryDto, ListMarketingProjectionsQueryDto, MARKETING_PROJECTION_REPOSITORY_TOKEN, MARKETING_SETTINGS_REPOSITORY_TOKEN, NEW_PAYMENT_METHODS_SOURCE_TOKEN, PLAN_REPOSITORY_TOKEN, PLAN_VERSION_WINDOW_CODES, PROMOTION_REPOSITORY_TOKEN, PreflightFinding, PreflightInput, PreflightReport, PreviousWindow, PublishBundleVersionDto, PublishPlanVersionDto, ReviewCatalogEntryDto, SeedBundleDraft, SeedGateFinding, SeedGateInput, SeedGateMode, SeedGateReport, SeedGateRunOptions, SeedPlanDraft, SyncDiscoveryDto, UpdateBundleDto, UpdateBundleVersionDraftDto, UpdateCatalogEntryI18nDto, UpdateMarketingProjectionDto, UpdateMarketingSettingsDto, UpdatePlanDto, UpdatePlanVersionDraftDto, UpdatePromotionDto, ValidityWindowCodes, ValidityWindowInput, blockingStrictModeWarnings, buildBundleVersionsController, buildBundlesController, buildCatalogEntriesController, buildMarketingProjectionsController, buildMarketingSettingsController, buildPlanVersionsController, buildPlansController, buildPromotionsController, buildPublicMarketingCatalogController, featureApprovalSignature, formatPreflightReport, formatSeedGateReport, loadApprovedCatalogKeys, preflightExitCode, quotaApprovalSignature, resolveValidityWindow, runPreflight, runSeedGateFromFile, seedGateExitCode, validateBundleDraft, validatePlanDraft, validateSeedAgainstSnapshot } from './catalog/index.js';
|
|
29
|
+
export { a as CatalogControllerConfig, b as CatalogModule, C as CatalogModuleOptions, N as NewPaymentMethodsSource, P as PublicMarketingCatalogOptions, c as PublicMarketingCatalogService } from './catalog.module-C9O7BxRq.js';
|
|
30
|
+
export { C as CheckoutOfferPricing, a as CheckoutOfferPricingInput, b as CheckoutOfferService, c as ConcludeCheckoutOfferOptions, d as ConcludeCheckoutOfferWithin, e as ConcludedCheckoutOffer, P as PricedCheckoutOffer } from './checkout-offer.service-BeHgYikI.js';
|
|
31
|
+
export { CHECKOUT_OFFER_REPOSITORY_TOKEN, CHECKOUT_OFFER_TRANSACTION_RUNNER_TOKEN, CreateCheckoutOfferDto, UpdateCheckoutOfferDto, buildCheckoutOfferController } from './checkout-offer/index.js';
|
|
32
|
+
export { a as CheckoutOfferConclusionOptions, b as CheckoutOfferControllerConfig, c as CheckoutOfferModule, C as CheckoutOfferModuleOptions } from './checkout-offer.module-x7SP_dX4.js';
|
|
33
|
+
export { C as CreateContractFromOfferOptions, S as SubscriptionContractService, c as contractLineItemToInvoiceLineItem, s as sortContractLineItemsForInvoice, a as subscriptionContractToInvoiceSnapshot } from './subscription-contract.service-CPZrTM9C.js';
|
|
34
|
+
export { a as SubscriptionContractModule, S as SubscriptionContractModuleOptions } from './subscription-contract.module-BfIRpc1o.js';
|
|
32
35
|
export { SUBSCRIPTION_CONTRACT_REPOSITORY_TOKEN } from './subscription-contract/index.js';
|
|
36
|
+
export { C as ContractLineMoney, a as ContractLineTotals, P as PricedContractLineItem, c as contractTotalsOf, r as recordContractLinesMoney } from './contract-line-item-money-B0Z3Ogur.js';
|
|
37
|
+
export { S as SubscriberService } from './subscriber.service-5W6Gi-1B.js';
|
|
38
|
+
export { SUBSCRIBER_REPOSITORY_TOKEN, SubscriberModule, SubscriberModuleOptions } from './subscriber/index.js';
|
|
39
|
+
import { OnApplicationBootstrap, Type, CanActivate, DynamicModule, ForwardReference } from '@nestjs/common';
|
|
33
40
|
export { Type as NestType } from '@nestjs/common';
|
|
34
41
|
export { CronExpression } from '@nestjs/schedule';
|
|
35
42
|
import '@nestjs/core';
|
|
36
43
|
import 'rxjs';
|
|
44
|
+
import './payments.module-CQGv_VG7.js';
|
|
45
|
+
import './payment-callback.service-CR84Xw1Z.js';
|
|
46
|
+
|
|
47
|
+
declare const EMAIL_PORT_TOKEN: unique symbol;
|
|
37
48
|
|
|
38
49
|
declare class SetupDto {
|
|
39
50
|
token: string;
|
|
@@ -53,6 +64,176 @@ declare class SetupController {
|
|
|
53
64
|
confirm(dto: SetupConfirmMfaDto): Promise<SetupConfirmMfaResponse>;
|
|
54
65
|
}
|
|
55
66
|
|
|
67
|
+
/** What one boot's notification amounted to. */
|
|
68
|
+
type NotificationOutcome = {
|
|
69
|
+
kind: 'nobody-to-tell';
|
|
70
|
+
} | {
|
|
71
|
+
kind: 'no-email-port';
|
|
72
|
+
addresses: readonly string[];
|
|
73
|
+
} | {
|
|
74
|
+
kind: 'sent';
|
|
75
|
+
addresses: readonly string[];
|
|
76
|
+
failed: readonly string[];
|
|
77
|
+
};
|
|
78
|
+
declare class SettingsChangeNotifier {
|
|
79
|
+
private readonly settings;
|
|
80
|
+
private readonly email;
|
|
81
|
+
private readonly logger;
|
|
82
|
+
constructor(settings: PlanCatalogSettings, email?: EmailPort | null);
|
|
83
|
+
/** The addresses `config/saas.yaml` names under `notifications.settingsChanged`. */
|
|
84
|
+
get addresses(): readonly string[];
|
|
85
|
+
/**
|
|
86
|
+
* Which of the two it is, said once at boot — and only where the question
|
|
87
|
+
* arises. An installation naming nobody asked for in-app only, and a line
|
|
88
|
+
* about it would be a warning at a correct configuration.
|
|
89
|
+
*/
|
|
90
|
+
reportModeAtBoot(): void;
|
|
91
|
+
/**
|
|
92
|
+
* Mails everybody the change concerns: the addresses the file names now,
|
|
93
|
+
* and — when the list itself is what moved — the ones it named before. An
|
|
94
|
+
* address taken off the list is told that once; otherwise whoever can edit
|
|
95
|
+
* the file could point the channel elsewhere and the people it pointed at
|
|
96
|
+
* would go quiet without a word, which is the failure this exists to
|
|
97
|
+
* prevent. Never throws: a mail that fails is logged.
|
|
98
|
+
*/
|
|
99
|
+
notify(change: SettingsChangeRecord): Promise<NotificationOutcome>;
|
|
100
|
+
}
|
|
101
|
+
/** The mail, as plain text: what moved, from which file, and when it was noticed. */
|
|
102
|
+
declare function describeChange(appName: string, change: SettingsChangeRecord): {
|
|
103
|
+
subject: string;
|
|
104
|
+
text: string;
|
|
105
|
+
};
|
|
106
|
+
|
|
107
|
+
/** What one boot did about the record. */
|
|
108
|
+
type BootOutcome = {
|
|
109
|
+
kind: 'not-recorded';
|
|
110
|
+
} | {
|
|
111
|
+
kind: 'first-record';
|
|
112
|
+
record: AppliedSettingsRecord;
|
|
113
|
+
} | {
|
|
114
|
+
kind: 'unchanged';
|
|
115
|
+
record: AppliedSettingsRecord;
|
|
116
|
+
} | {
|
|
117
|
+
kind: 'changed';
|
|
118
|
+
record: AppliedSettingsRecord;
|
|
119
|
+
change: SettingsChangeRecord;
|
|
120
|
+
};
|
|
121
|
+
declare class AppliedSettingsRecorder implements OnApplicationBootstrap {
|
|
122
|
+
private readonly settings;
|
|
123
|
+
private readonly source;
|
|
124
|
+
private readonly port;
|
|
125
|
+
private readonly notifier;
|
|
126
|
+
private readonly logger;
|
|
127
|
+
constructor(settings: PlanCatalogSettings, source: string, port?: AppliedSettingsPort | null, notifier?: SettingsChangeNotifier | null);
|
|
128
|
+
/** Whether this installation keeps a record at all. */
|
|
129
|
+
get recording(): boolean;
|
|
130
|
+
onApplicationBootstrap(): Promise<void>;
|
|
131
|
+
/**
|
|
132
|
+
* Mails the change without holding the boot for it.
|
|
133
|
+
*
|
|
134
|
+
* Nest resolves `app.listen()` only once every bootstrap hook has settled,
|
|
135
|
+
* and an SMTP host that does not answer would otherwise turn a changed
|
|
136
|
+
* setting into an installation that does not start. So the boot waits a
|
|
137
|
+
* moment — long enough for a working adapter to hand the mail over, so
|
|
138
|
+
* the log reads in order — and then goes on; a slow adapter finishes on
|
|
139
|
+
* its own, and `notify()` bounds each send and logs what timed out.
|
|
140
|
+
*/
|
|
141
|
+
private tellSomebody;
|
|
142
|
+
/**
|
|
143
|
+
* Compares the running settings with the record and writes what follows.
|
|
144
|
+
*
|
|
145
|
+
* `clock` is read once per attempt, after the record has been read and
|
|
146
|
+
* right before it is written, so the moment a row carries is the moment
|
|
147
|
+
* of the write that produced it. Read once when the start began, it would
|
|
148
|
+
* date a write by its start — and a start whose write landed after
|
|
149
|
+
* another's could carry the earlier moment, listing the changes in an
|
|
150
|
+
* order the record never went through.
|
|
151
|
+
*/
|
|
152
|
+
record(port: AppliedSettingsPort, clock: () => Date): Promise<BootOutcome>;
|
|
153
|
+
/**
|
|
154
|
+
* What one read of the record calls for, written. `null` means the write
|
|
155
|
+
* found the record moved since `previous` was read, and wrote nothing.
|
|
156
|
+
*/
|
|
157
|
+
private reconcile;
|
|
158
|
+
private report;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
interface SettingsChangeView {
|
|
162
|
+
id: string;
|
|
163
|
+
noticedAt: string;
|
|
164
|
+
source: string;
|
|
165
|
+
differences: SettingsDifference[];
|
|
166
|
+
acknowledgedAt: string | null;
|
|
167
|
+
acknowledgedBy: string | null;
|
|
168
|
+
}
|
|
169
|
+
/**
|
|
170
|
+
* The running configuration and its record.
|
|
171
|
+
*
|
|
172
|
+
* `settings`, `fingerprint` and `source` describe what IS running — read off
|
|
173
|
+
* the catalogue in memory, so they are right even where nothing is recorded.
|
|
174
|
+
* `appliedAt` is the record's answer to "since when", and it is null where
|
|
175
|
+
* there is no record to ask: the installation keeps none, or the write at boot
|
|
176
|
+
* failed and the record describes an earlier configuration.
|
|
177
|
+
*/
|
|
178
|
+
interface AppliedSettingsView {
|
|
179
|
+
source: string;
|
|
180
|
+
fingerprint: string;
|
|
181
|
+
settings: AppliedSettingsValues;
|
|
182
|
+
/** Whether this installation keeps a record at all. */
|
|
183
|
+
recorded: boolean;
|
|
184
|
+
appliedAt: string | null;
|
|
185
|
+
/** Newest first; empty where nothing is recorded. */
|
|
186
|
+
changes: SettingsChangeView[];
|
|
187
|
+
}
|
|
188
|
+
declare function buildSettingsController(guards: Array<Type<CanActivate>>): Type;
|
|
189
|
+
|
|
190
|
+
interface SettingsModuleOptions {
|
|
191
|
+
/**
|
|
192
|
+
* Where the record is kept. Optional: without it the platform runs the
|
|
193
|
+
* configuration all the same and says once, at boot, that it is not
|
|
194
|
+
* recording it.
|
|
195
|
+
*/
|
|
196
|
+
port?: ProviderSpec<AppliedSettingsPort>;
|
|
197
|
+
/**
|
|
198
|
+
* How the people `config/saas.yaml#notifications.settingsChanged` names are
|
|
199
|
+
* mailed. Optional: without it the change is recorded in the application
|
|
200
|
+
* only, and the boot log says so once where the file names anybody.
|
|
201
|
+
*/
|
|
202
|
+
email?: ProviderSpec<EmailPort>;
|
|
203
|
+
/**
|
|
204
|
+
* Where the running settings came from — the absolute path of the file, or
|
|
205
|
+
* the phrase saying they were handed in as code. Recorded beside the
|
|
206
|
+
* values, because "from where" is half of what an operator asks.
|
|
207
|
+
*/
|
|
208
|
+
source: string;
|
|
209
|
+
/** Class-level guards for `GET /admin/settings`. Required — see the controller. */
|
|
210
|
+
controller: {
|
|
211
|
+
guards: Array<Type<CanActivate>>;
|
|
212
|
+
};
|
|
213
|
+
/**
|
|
214
|
+
* Mount the controller at all. Default `true`; `false` for an app that
|
|
215
|
+
* serves the route itself — two controllers on one path abort the boot
|
|
216
|
+
* under Fastify and shadow each other under Express. The record is kept
|
|
217
|
+
* either way.
|
|
218
|
+
*/
|
|
219
|
+
includeController?: boolean;
|
|
220
|
+
/** Modules whose providers the guards or the port factory resolve from. */
|
|
221
|
+
imports?: Array<Type<unknown> | DynamicModule | Promise<DynamicModule> | ForwardReference>;
|
|
222
|
+
}
|
|
223
|
+
declare class SettingsModule {
|
|
224
|
+
static forRoot(options: SettingsModuleOptions): DynamicModule;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
/** `sha256-<hex>` over the canonical JSON of the settings — order-independent. */
|
|
228
|
+
declare function fingerprintOf(settings: AppliedSettingsValues): string;
|
|
229
|
+
|
|
230
|
+
declare const APPLIED_SETTINGS_PORT_TOKEN: unique symbol;
|
|
231
|
+
/**
|
|
232
|
+
* Where the running settings came from, as a sentence for the record: the
|
|
233
|
+
* absolute path of the file, or the phrase saying they were handed in as code.
|
|
234
|
+
*/
|
|
235
|
+
declare const SETTINGS_SOURCE_TOKEN: unique symbol;
|
|
236
|
+
|
|
56
237
|
/**
|
|
57
238
|
* Builds the body of a coded exception.
|
|
58
239
|
*
|
|
@@ -72,4 +253,4 @@ declare class SetupController {
|
|
|
72
253
|
*/
|
|
73
254
|
declare function codedError(code: PlatformErrorCode, params?: Record<string, unknown>): PlatformErrorBody;
|
|
74
255
|
|
|
75
|
-
export { SetupController, SetupService, codedError };
|
|
256
|
+
export { APPLIED_SETTINGS_PORT_TOKEN, AppliedSettingsRecorder, type AppliedSettingsView, type BootOutcome, EMAIL_PORT_TOKEN, type NotificationOutcome, ProviderSpec, SETTINGS_SOURCE_TOKEN, SettingsChangeNotifier, type SettingsChangeView, SettingsModule, type SettingsModuleOptions, SetupController, SetupService, buildSettingsController, codedError, describeChange, fingerprintOf };
|