@saasicat/nest 0.5.0 → 0.7.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.
Files changed (57) hide show
  1. package/dist/admin/index.cjs +3 -8
  2. package/dist/admin/index.d.cts +5 -33
  3. package/dist/admin/index.d.ts +5 -33
  4. package/dist/admin/index.js +2 -2
  5. package/dist/{admin-manifest.config-DxTfZ8-L.d.cts → admin-manifest.config-DyrQNT7M.d.cts} +1 -1
  6. package/dist/{admin-manifest.config-DxTfZ8-L.d.ts → admin-manifest.config-DyrQNT7M.d.ts} +1 -1
  7. package/dist/admin-manifest.service-Cp6uwvmt.d.cts +33 -0
  8. package/dist/admin-manifest.service-UGgzR1x-.d.ts +33 -0
  9. package/dist/{aggregation-DGCyoN5d.d.ts → aggregation-BibpEO0t.d.ts} +6 -59
  10. package/dist/{aggregation-Bt1i_whS.d.cts → aggregation-CfI0bOsQ.d.cts} +6 -59
  11. package/dist/billing/index.cjs +19 -107
  12. package/dist/billing/index.d.cts +8 -30
  13. package/dist/billing/index.d.ts +8 -30
  14. package/dist/billing/index.js +6 -8
  15. package/dist/catalog/index.cjs +1160 -1985
  16. package/dist/catalog/index.d.cts +9 -124
  17. package/dist/catalog/index.d.ts +9 -124
  18. package/dist/catalog/index.js +3 -25
  19. package/dist/checkout-offer/index.js +2 -2
  20. package/dist/{chunk-2VNZYRDV.js → chunk-52UTQRD3.js} +1 -1
  21. package/dist/{chunk-V7HUZ6UQ.js → chunk-5DDCSGZC.js} +1106 -1919
  22. package/dist/{chunk-S2OZ5RIM.js → chunk-6LP7CDS2.js} +15 -68
  23. package/dist/{chunk-NWLOILP6.js → chunk-A2QBXDJC.js} +15 -7
  24. package/dist/{chunk-XSGU2Y2O.js → chunk-CK54YKVK.js} +2 -33
  25. package/dist/{chunk-SYEVGPFC.js → chunk-K3OPNVFR.js} +1 -1
  26. package/dist/{chunk-XCZ3TTFK.js → chunk-N3WANKSA.js} +0 -2
  27. package/dist/{chunk-MV6LW5UB.js → chunk-R2QOSVAA.js} +2 -2
  28. package/dist/{chunk-NFOSITWB.js → chunk-RZU4HIAN.js} +12 -45
  29. package/dist/{chunk-YNEW3L63.js → chunk-SD3TT2BR.js} +1 -1
  30. package/dist/{chunk-P6MYZMXQ.js → chunk-U6HT27J7.js} +3 -8
  31. package/dist/{chunk-7MLGHWKO.js → chunk-WKVBNTYC.js} +2 -0
  32. package/dist/{chunk-ZL4LLE2Z.js → chunk-ZLUGQE5D.js} +1 -1
  33. package/dist/{enforce-quota.interceptor-3HmbeHTM.d.ts → enforce-quota.interceptor-Dj1Kusr5.d.ts} +9 -4
  34. package/dist/{enforce-quota.interceptor-HmdZFg41.d.cts → enforce-quota.interceptor-cv7r80VM.d.cts} +9 -4
  35. package/dist/entitlement/index.cjs +13 -46
  36. package/dist/entitlement/index.d.cts +4 -3
  37. package/dist/entitlement/index.d.ts +4 -3
  38. package/dist/entitlement/index.js +6 -8
  39. package/dist/index.cjs +1348 -2300
  40. package/dist/index.d.cts +8 -7
  41. package/dist/index.d.ts +8 -7
  42. package/dist/index.js +14 -42
  43. package/dist/platform/index.cjs +28 -54
  44. package/dist/platform/index.d.cts +4 -3
  45. package/dist/platform/index.d.ts +4 -3
  46. package/dist/platform/index.js +9 -6
  47. package/dist/promo/index.cjs +2 -2
  48. package/dist/promo/index.js +3 -3
  49. package/dist/registration/index.cjs +2 -34
  50. package/dist/registration/index.d.cts +3 -21
  51. package/dist/registration/index.d.ts +3 -21
  52. package/dist/registration/index.js +1 -3
  53. package/dist/testing/index.cjs +26 -255
  54. package/dist/testing/index.d.cts +5 -37
  55. package/dist/testing/index.d.ts +5 -37
  56. package/dist/testing/index.js +6 -206
  57. package/package.json +3 -3
@@ -9,21 +9,24 @@ import {
9
9
  StaticPlanResolver,
10
10
  TenantManifestService,
11
11
  buildTenantManifestController
12
- } from "../chunk-NWLOILP6.js";
13
- import "../chunk-P6MYZMXQ.js";
12
+ } from "../chunk-A2QBXDJC.js";
13
+ import {
14
+ AdminManifestService
15
+ } from "../chunk-U6HT27J7.js";
14
16
  import "../chunk-Q53N43LQ.js";
15
17
  import "../chunk-E56W4U2P.js";
16
18
  import "../chunk-AJ3EPELS.js";
17
19
  import "../chunk-M6CZQYPY.js";
18
- import "../chunk-NFOSITWB.js";
19
- import "../chunk-MV6LW5UB.js";
20
+ import "../chunk-RZU4HIAN.js";
21
+ import "../chunk-R2QOSVAA.js";
20
22
  import "../chunk-NYLON2VC.js";
21
- import "../chunk-7MLGHWKO.js";
22
- import "../chunk-XCZ3TTFK.js";
23
+ import "../chunk-WKVBNTYC.js";
24
+ import "../chunk-N3WANKSA.js";
23
25
  import "../chunk-SABTXESR.js";
24
26
  import "../chunk-L4SUWH5B.js";
25
27
  import "../chunk-SHUYVCID.js";
26
28
  export {
29
+ AdminManifestService,
27
30
  EnforceQuotaInterceptor,
28
31
  PLAN_RESOLVER_PORT_TOKEN,
29
32
  QUOTA_PROVIDERS_TOKEN,
@@ -202,8 +202,8 @@ function _ts_decorate(decorators, target, key, desc) {
202
202
  return c > 3 && r && Object.defineProperty(target, key, r), r;
203
203
  }
204
204
  __name(_ts_decorate, "_ts_decorate");
205
- var PLAN_CATALOG_TOKEN = /* @__PURE__ */ Symbol("PLAN_CATALOG");
206
- var PLAN_CATALOG_READ_SINK_TOKEN = /* @__PURE__ */ Symbol("PLAN_CATALOG_READ_SINK");
205
+ var PLAN_CATALOG_TOKEN = /* @__PURE__ */ Symbol.for("saasicat/nest/PLAN_CATALOG");
206
+ var PLAN_CATALOG_READ_SINK_TOKEN = /* @__PURE__ */ Symbol.for("saasicat/nest/PLAN_CATALOG_READ_SINK");
207
207
  var PlanCatalogModule = class _PlanCatalogModule {
208
208
  static {
209
209
  __name(this, "PlanCatalogModule");
@@ -6,7 +6,7 @@ import {
6
6
  PromoCodesModule,
7
7
  hashIp,
8
8
  ipFingerprint
9
- } from "../chunk-2VNZYRDV.js";
9
+ } from "../chunk-52UTQRD3.js";
10
10
  import {
11
11
  PROMO_CODE_REDEMPTION_REPOSITORY_TOKEN,
12
12
  PROMO_CODE_REPOSITORY_TOKEN,
@@ -22,12 +22,12 @@ import {
22
22
  computeDiscountGross,
23
23
  computeDiscountedGross,
24
24
  computeRegularStartsAt
25
- } from "../chunk-ZL4LLE2Z.js";
25
+ } from "../chunk-ZLUGQE5D.js";
26
26
  import {
27
27
  computeIncludedVat,
28
28
  grossFromNet,
29
29
  round2
30
- } from "../chunk-MV6LW5UB.js";
30
+ } from "../chunk-R2QOSVAA.js";
31
31
  import "../chunk-SABTXESR.js";
32
32
  import "../chunk-SHUYVCID.js";
33
33
  export {
@@ -34,7 +34,6 @@ __export(registration_exports, {
34
34
  PendingRegistrationService: () => PendingRegistrationService,
35
35
  PreviewRegistrationPromoDto: () => PreviewRegistrationPromoDto,
36
36
  REGISTRATION_AUDIT_LOGGER_TOKEN: () => REGISTRATION_AUDIT_LOGGER_TOKEN,
37
- REGISTRATION_BUSINESS_TYPE_LOOKUP_TOKEN: () => REGISTRATION_BUSINESS_TYPE_LOOKUP_TOKEN,
38
37
  REGISTRATION_CONFIGURATOR_LOOKUP_TOKEN: () => REGISTRATION_CONFIGURATOR_LOOKUP_TOKEN,
39
38
  REGISTRATION_CONFIG_TOKEN: () => REGISTRATION_CONFIG_TOKEN,
40
39
  REGISTRATION_OTP_DELIVERY_TOKEN: () => REGISTRATION_OTP_DELIVERY_TOKEN,
@@ -107,7 +106,6 @@ var REGISTRATION_RESUME_DELIVERY_TOKEN = /* @__PURE__ */ Symbol("REGISTRATION_RE
107
106
  var REGISTRATION_RESUME_BASE_URL_TOKEN = /* @__PURE__ */ Symbol("REGISTRATION_RESUME_BASE_URL");
108
107
  var REGISTRATION_CONFIGURATOR_LOOKUP_TOKEN = /* @__PURE__ */ Symbol("REGISTRATION_CONFIGURATOR_LOOKUP");
109
108
  var REGISTRATION_PROMO_PREVIEW_TOKEN = /* @__PURE__ */ Symbol("REGISTRATION_PROMO_PREVIEW");
110
- var REGISTRATION_BUSINESS_TYPE_LOOKUP_TOKEN = /* @__PURE__ */ Symbol("REGISTRATION_BUSINESS_TYPE_LOOKUP");
111
109
  var REGISTRATION_CONFIG_TOKEN = /* @__PURE__ */ Symbol("REGISTRATION_CONFIG");
112
110
 
113
111
  // src/registration/pending-registration.service.ts
@@ -203,9 +201,8 @@ var PendingRegistrationService = class _PendingRegistrationService {
203
201
  resumeBaseUrl;
204
202
  configuratorLookup;
205
203
  promoPreview;
206
- businessTypeLookup;
207
204
  logger = new import_common.Logger(_PendingRegistrationService.name);
208
- constructor(repo, otpDelivery, userLookup, slugCheck, passwordHasher, planCatalog, paymentProvider, paymentEventLog, activationOrchestrator, audit, resumeTokenSigner, resumeDelivery, resumeBaseUrl, configuratorLookup, promoPreview, businessTypeLookup) {
205
+ constructor(repo, otpDelivery, userLookup, slugCheck, passwordHasher, planCatalog, paymentProvider, paymentEventLog, activationOrchestrator, audit, resumeTokenSigner, resumeDelivery, resumeBaseUrl, configuratorLookup, promoPreview) {
209
206
  this.repo = repo;
210
207
  this.otpDelivery = otpDelivery;
211
208
  this.userLookup = userLookup;
@@ -221,7 +218,6 @@ var PendingRegistrationService = class _PendingRegistrationService {
221
218
  this.resumeBaseUrl = resumeBaseUrl;
222
219
  this.configuratorLookup = configuratorLookup;
223
220
  this.promoPreview = promoPreview;
224
- this.businessTypeLookup = businessTypeLookup;
225
221
  }
226
222
  async record(eventType, pendingRegistrationId, context, metadata) {
227
223
  try {
@@ -773,14 +769,6 @@ var PendingRegistrationService = class _PendingRegistrationService {
773
769
  code: "MODEL_NOT_AVAILABLE"
774
770
  });
775
771
  }
776
- if (input.selection.businessTypeVersionId && this.businessTypeLookup) {
777
- const view = await this.businessTypeLookup.findPublishedVersion(input.selection.businessTypeVersionId);
778
- if (!view) {
779
- throw new import_common.BadRequestException({
780
- code: "BUSINESS_TYPE_NOT_AVAILABLE"
781
- });
782
- }
783
- }
784
772
  let promoEval;
785
773
  if (input.selection.appliedPromoCode && this.promoPreview) {
786
774
  const dryRun = computeBreakdown(catalog, {
@@ -947,8 +935,6 @@ PendingRegistrationService = _ts_decorate([
947
935
  _ts_param(13, (0, import_common.Inject)(REGISTRATION_CONFIGURATOR_LOOKUP_TOKEN)),
948
936
  _ts_param(14, (0, import_common.Optional)()),
949
937
  _ts_param(14, (0, import_common.Inject)(REGISTRATION_PROMO_PREVIEW_TOKEN)),
950
- _ts_param(15, (0, import_common.Optional)()),
951
- _ts_param(15, (0, import_common.Inject)(REGISTRATION_BUSINESS_TYPE_LOOKUP_TOKEN)),
952
938
  _ts_metadata("design:type", Function),
953
939
  _ts_metadata("design:paramtypes", [
954
940
  typeof PendingRegistrationRepository === "undefined" ? Object : PendingRegistrationRepository,
@@ -965,8 +951,7 @@ PendingRegistrationService = _ts_decorate([
965
951
  typeof RegistrationResumeDelivery === "undefined" ? Object : RegistrationResumeDelivery,
966
952
  String,
967
953
  typeof RegistrationConfiguratorLookup === "undefined" ? Object : RegistrationConfiguratorLookup,
968
- typeof RegistrationPromoPreview === "undefined" ? Object : RegistrationPromoPreview,
969
- typeof RegistrationBusinessTypeLookup === "undefined" ? Object : RegistrationBusinessTypeLookup
954
+ typeof RegistrationPromoPreview === "undefined" ? Object : RegistrationPromoPreview
970
955
  ])
971
956
  ], PendingRegistrationService);
972
957
  function normalizeEmail(value) {
@@ -1200,9 +1185,6 @@ var RegistrationModule = class _RegistrationModule {
1200
1185
  if (options.promoPreview) {
1201
1186
  providers.push(asProvider(REGISTRATION_PROMO_PREVIEW_TOKEN, options.promoPreview));
1202
1187
  }
1203
- if (options.businessTypeLookup) {
1204
- providers.push(asProvider(REGISTRATION_BUSINESS_TYPE_LOOKUP_TOKEN, options.businessTypeLookup));
1205
- }
1206
1188
  const includeCleanupCron = options.includeCleanupCron ?? true;
1207
1189
  if (includeCleanupCron) {
1208
1190
  providers.push(RegistrationCleanupCron);
@@ -1546,13 +1528,6 @@ var SaveRegistrationConfigSelectionDto = class {
1546
1528
  modelId;
1547
1529
  billingCycle;
1548
1530
  appliedPromoCode;
1549
- /**
1550
- * SPEC_V2 §11.1 M5.3 — optional business-type choice. UUID of a
1551
- * **published** BusinessTypeVersion. The service validates existence +
1552
- * live status against `RegistrationBusinessTypeLookup`. `null` = no
1553
- * choice (legacy Plan-only path).
1554
- */
1555
- businessTypeVersionId;
1556
1531
  /**
1557
1532
  * METAMODELL §17a — Bundle consistency. ID of the `CheckoutOffer` that was
1558
1533
  * created on the pricing page (`<app>/register?offer=<id>`). Passed
@@ -1581,12 +1556,6 @@ _ts_decorate12([
1581
1556
  (0, import_class_validator8.MaxLength)(60),
1582
1557
  _ts_metadata11("design:type", Object)
1583
1558
  ], SaveRegistrationConfigSelectionDto.prototype, "appliedPromoCode", void 0);
1584
- _ts_decorate12([
1585
- (0, import_class_validator8.IsOptional)(),
1586
- (0, import_class_validator8.ValidateIf)((_o, value) => value !== null),
1587
- (0, import_class_validator8.IsUUID)(),
1588
- _ts_metadata11("design:type", Object)
1589
- ], SaveRegistrationConfigSelectionDto.prototype, "businessTypeVersionId", void 0);
1590
1559
  _ts_decorate12([
1591
1560
  (0, import_class_validator8.IsOptional)(),
1592
1561
  (0, import_class_validator8.ValidateIf)((_o, value) => value !== null),
@@ -1659,7 +1628,6 @@ _ts_decorate13([
1659
1628
  PendingRegistrationService,
1660
1629
  PreviewRegistrationPromoDto,
1661
1630
  REGISTRATION_AUDIT_LOGGER_TOKEN,
1662
- REGISTRATION_BUSINESS_TYPE_LOOKUP_TOKEN,
1663
1631
  REGISTRATION_CONFIGURATOR_LOOKUP_TOKEN,
1664
1632
  REGISTRATION_CONFIG_TOKEN,
1665
1633
  REGISTRATION_OTP_DELIVERY_TOKEN,
@@ -1,4 +1,4 @@
1
- import { PendingRegistrationRepository, RegistrationOtpDelivery, UserAccountLookup, SlugAvailabilityCheck, PasswordHasher, PlanCatalogLookup, PaymentProvider, PaymentEventLog, ActivationOrchestrator, RegistrationAuditLogger, RegistrationResumeTokenSigner, RegistrationResumeDelivery, RegistrationConfiguratorLookup, RegistrationPromoPreview, RegistrationBusinessTypeLookup, PublicSignupPlan, SelectPlanInput, RegistrationAuditContext, SelectPlanResult, StartCheckoutInput, StartCheckoutResult, HandlePaymentEventInput, HandlePaymentEventResult, CleanupResult, StartRegistrationInput, StartRegistrationResult, VerifyRegistrationOtpResult, ResumeRegistrationInput, ResumeRegistrationResult, ConfiguratorCatalog, SaveRegistrationConfigInput, SaveRegistrationConfigResult, ConfiguratorPriceBreakdown, RegistrationConfigSelection } from '@saasicat/types';
1
+ import { PendingRegistrationRepository, RegistrationOtpDelivery, UserAccountLookup, SlugAvailabilityCheck, PasswordHasher, PlanCatalogLookup, PaymentProvider, PaymentEventLog, ActivationOrchestrator, RegistrationAuditLogger, RegistrationResumeTokenSigner, RegistrationResumeDelivery, RegistrationConfiguratorLookup, RegistrationPromoPreview, PublicSignupPlan, SelectPlanInput, RegistrationAuditContext, SelectPlanResult, StartCheckoutInput, StartCheckoutResult, HandlePaymentEventInput, HandlePaymentEventResult, CleanupResult, StartRegistrationInput, StartRegistrationResult, VerifyRegistrationOtpResult, ResumeRegistrationInput, ResumeRegistrationResult, ConfiguratorCatalog, SaveRegistrationConfigInput, SaveRegistrationConfigResult, ConfiguratorPriceBreakdown, RegistrationConfigSelection } from '@saasicat/types';
2
2
  export { PasswordHasher } from '@saasicat/types';
3
3
  import { CanActivate, ExecutionContext, Type, DynamicModule, ForwardReference, Provider } from '@nestjs/common';
4
4
  import { P as ProviderSpec } from '../di-CcNeq9v-.cjs';
@@ -36,8 +36,6 @@ declare const REGISTRATION_RESUME_DELIVERY_TOKEN: unique symbol;
36
36
  declare const REGISTRATION_RESUME_BASE_URL_TOKEN: unique symbol;
37
37
  declare const REGISTRATION_CONFIGURATOR_LOOKUP_TOKEN: unique symbol;
38
38
  declare const REGISTRATION_PROMO_PREVIEW_TOKEN: unique symbol;
39
- /** SPEC_V2 §11.1 M5.3 — published BusinessTypeVersion lookup for configurator selection. */
40
- declare const REGISTRATION_BUSINESS_TYPE_LOOKUP_TOKEN: unique symbol;
41
39
  /** Optionally injectable configuration — falls back to default TTLs from saas-platform-types. */
42
40
  declare const REGISTRATION_CONFIG_TOKEN: unique symbol;
43
41
 
@@ -72,9 +70,8 @@ declare class PendingRegistrationService {
72
70
  private readonly resumeBaseUrl?;
73
71
  private readonly configuratorLookup?;
74
72
  private readonly promoPreview?;
75
- private readonly businessTypeLookup?;
76
73
  private readonly logger;
77
- constructor(repo: PendingRegistrationRepository, otpDelivery: RegistrationOtpDelivery, userLookup: UserAccountLookup, slugCheck: SlugAvailabilityCheck, passwordHasher: PasswordHasher, planCatalog: PlanCatalogLookup, paymentProvider: PaymentProvider, paymentEventLog: PaymentEventLog, activationOrchestrator: ActivationOrchestrator, audit: RegistrationAuditLogger, resumeTokenSigner?: RegistrationResumeTokenSigner | undefined, resumeDelivery?: RegistrationResumeDelivery | undefined, resumeBaseUrl?: string | undefined, configuratorLookup?: RegistrationConfiguratorLookup | undefined, promoPreview?: RegistrationPromoPreview | undefined, businessTypeLookup?: RegistrationBusinessTypeLookup | undefined);
74
+ constructor(repo: PendingRegistrationRepository, otpDelivery: RegistrationOtpDelivery, userLookup: UserAccountLookup, slugCheck: SlugAvailabilityCheck, passwordHasher: PasswordHasher, planCatalog: PlanCatalogLookup, paymentProvider: PaymentProvider, paymentEventLog: PaymentEventLog, activationOrchestrator: ActivationOrchestrator, audit: RegistrationAuditLogger, resumeTokenSigner?: RegistrationResumeTokenSigner | undefined, resumeDelivery?: RegistrationResumeDelivery | undefined, resumeBaseUrl?: string | undefined, configuratorLookup?: RegistrationConfiguratorLookup | undefined, promoPreview?: RegistrationPromoPreview | undefined);
78
75
  private record;
79
76
  /** Public signup plan list for step 3 (frontend `usePublicPlans()`). */
80
77
  listPublicPlans(): Promise<PublicSignupPlan[]>;
@@ -263,14 +260,6 @@ interface RegistrationModuleOptions {
263
260
  * is ignored (snapshot is stored, discount=0).
264
261
  */
265
262
  promoPreview?: ProviderSpec<RegistrationPromoPreview>;
266
- /**
267
- * SPEC_V2 §11.1 M5.3: validates an optionally set
268
- * `RegistrationConfigSelection.businessTypeVersionId` against the
269
- * SuperAdmin catalog (published BusinessTypeVersions). Without an adapter
270
- * the ID is passed through unchecked — fine for apps without a
271
- * BusinessType catalog.
272
- */
273
- businessTypeLookup?: ProviderSpec<RegistrationBusinessTypeLookup>;
274
263
  /**
275
264
  * Modules that should be visible in the DynamicModule scope — needed so
276
265
  * that factory providers with `inject: [...]` can resolve classes from
@@ -387,13 +376,6 @@ declare class SaveRegistrationConfigSelectionDto {
387
376
  modelId: string;
388
377
  billingCycle: 'MONTHLY' | 'YEARLY';
389
378
  appliedPromoCode?: string | null;
390
- /**
391
- * SPEC_V2 §11.1 M5.3 — optional business-type choice. UUID of a
392
- * **published** BusinessTypeVersion. The service validates existence +
393
- * live status against `RegistrationBusinessTypeLookup`. `null` = no
394
- * choice (legacy Plan-only path).
395
- */
396
- businessTypeVersionId?: string | null;
397
379
  /**
398
380
  * METAMODELL §17a — Bundle consistency. ID of the `CheckoutOffer` that was
399
381
  * created on the pricing page (`<app>/register?offer=<id>`). Passed
@@ -438,4 +420,4 @@ declare function resolveModel(catalog: ConfiguratorCatalog, modelId: string): {
438
420
  yearlyNet: number;
439
421
  };
440
422
 
441
- 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, type PromoEvaluation, REGISTRATION_AUDIT_LOGGER_TOKEN, REGISTRATION_BUSINESS_TYPE_LOOKUP_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, type RegistrationModuleOptions, ResendRegistrationOtpDto, SLUG_AVAILABILITY_CHECK_TOKEN, SaveRegistrationConfigDto, SaveRegistrationConfigSelectionDto, SelectRegistrationPlanDto, StartRegistrationCheckoutDto, USER_ACCOUNT_LOOKUP_TOKEN, VerifyRegistrationOtpDto, computeBreakdown, generateOtpCode, hashOtpCode, resolveModel, slugify, verifyOtpCode };
423
+ 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, type 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, type RegistrationModuleOptions, ResendRegistrationOtpDto, SLUG_AVAILABILITY_CHECK_TOKEN, SaveRegistrationConfigDto, SaveRegistrationConfigSelectionDto, SelectRegistrationPlanDto, StartRegistrationCheckoutDto, USER_ACCOUNT_LOOKUP_TOKEN, VerifyRegistrationOtpDto, computeBreakdown, generateOtpCode, hashOtpCode, resolveModel, slugify, verifyOtpCode };
@@ -1,4 +1,4 @@
1
- import { PendingRegistrationRepository, RegistrationOtpDelivery, UserAccountLookup, SlugAvailabilityCheck, PasswordHasher, PlanCatalogLookup, PaymentProvider, PaymentEventLog, ActivationOrchestrator, RegistrationAuditLogger, RegistrationResumeTokenSigner, RegistrationResumeDelivery, RegistrationConfiguratorLookup, RegistrationPromoPreview, RegistrationBusinessTypeLookup, PublicSignupPlan, SelectPlanInput, RegistrationAuditContext, SelectPlanResult, StartCheckoutInput, StartCheckoutResult, HandlePaymentEventInput, HandlePaymentEventResult, CleanupResult, StartRegistrationInput, StartRegistrationResult, VerifyRegistrationOtpResult, ResumeRegistrationInput, ResumeRegistrationResult, ConfiguratorCatalog, SaveRegistrationConfigInput, SaveRegistrationConfigResult, ConfiguratorPriceBreakdown, RegistrationConfigSelection } from '@saasicat/types';
1
+ import { PendingRegistrationRepository, RegistrationOtpDelivery, UserAccountLookup, SlugAvailabilityCheck, PasswordHasher, PlanCatalogLookup, PaymentProvider, PaymentEventLog, ActivationOrchestrator, RegistrationAuditLogger, RegistrationResumeTokenSigner, RegistrationResumeDelivery, RegistrationConfiguratorLookup, RegistrationPromoPreview, PublicSignupPlan, SelectPlanInput, RegistrationAuditContext, SelectPlanResult, StartCheckoutInput, StartCheckoutResult, HandlePaymentEventInput, HandlePaymentEventResult, CleanupResult, StartRegistrationInput, StartRegistrationResult, VerifyRegistrationOtpResult, ResumeRegistrationInput, ResumeRegistrationResult, ConfiguratorCatalog, SaveRegistrationConfigInput, SaveRegistrationConfigResult, ConfiguratorPriceBreakdown, RegistrationConfigSelection } from '@saasicat/types';
2
2
  export { PasswordHasher } from '@saasicat/types';
3
3
  import { CanActivate, ExecutionContext, Type, DynamicModule, ForwardReference, Provider } from '@nestjs/common';
4
4
  import { P as ProviderSpec } from '../di-CcNeq9v-.js';
@@ -36,8 +36,6 @@ declare const REGISTRATION_RESUME_DELIVERY_TOKEN: unique symbol;
36
36
  declare const REGISTRATION_RESUME_BASE_URL_TOKEN: unique symbol;
37
37
  declare const REGISTRATION_CONFIGURATOR_LOOKUP_TOKEN: unique symbol;
38
38
  declare const REGISTRATION_PROMO_PREVIEW_TOKEN: unique symbol;
39
- /** SPEC_V2 §11.1 M5.3 — published BusinessTypeVersion lookup for configurator selection. */
40
- declare const REGISTRATION_BUSINESS_TYPE_LOOKUP_TOKEN: unique symbol;
41
39
  /** Optionally injectable configuration — falls back to default TTLs from saas-platform-types. */
42
40
  declare const REGISTRATION_CONFIG_TOKEN: unique symbol;
43
41
 
@@ -72,9 +70,8 @@ declare class PendingRegistrationService {
72
70
  private readonly resumeBaseUrl?;
73
71
  private readonly configuratorLookup?;
74
72
  private readonly promoPreview?;
75
- private readonly businessTypeLookup?;
76
73
  private readonly logger;
77
- constructor(repo: PendingRegistrationRepository, otpDelivery: RegistrationOtpDelivery, userLookup: UserAccountLookup, slugCheck: SlugAvailabilityCheck, passwordHasher: PasswordHasher, planCatalog: PlanCatalogLookup, paymentProvider: PaymentProvider, paymentEventLog: PaymentEventLog, activationOrchestrator: ActivationOrchestrator, audit: RegistrationAuditLogger, resumeTokenSigner?: RegistrationResumeTokenSigner | undefined, resumeDelivery?: RegistrationResumeDelivery | undefined, resumeBaseUrl?: string | undefined, configuratorLookup?: RegistrationConfiguratorLookup | undefined, promoPreview?: RegistrationPromoPreview | undefined, businessTypeLookup?: RegistrationBusinessTypeLookup | undefined);
74
+ constructor(repo: PendingRegistrationRepository, otpDelivery: RegistrationOtpDelivery, userLookup: UserAccountLookup, slugCheck: SlugAvailabilityCheck, passwordHasher: PasswordHasher, planCatalog: PlanCatalogLookup, paymentProvider: PaymentProvider, paymentEventLog: PaymentEventLog, activationOrchestrator: ActivationOrchestrator, audit: RegistrationAuditLogger, resumeTokenSigner?: RegistrationResumeTokenSigner | undefined, resumeDelivery?: RegistrationResumeDelivery | undefined, resumeBaseUrl?: string | undefined, configuratorLookup?: RegistrationConfiguratorLookup | undefined, promoPreview?: RegistrationPromoPreview | undefined);
78
75
  private record;
79
76
  /** Public signup plan list for step 3 (frontend `usePublicPlans()`). */
80
77
  listPublicPlans(): Promise<PublicSignupPlan[]>;
@@ -263,14 +260,6 @@ interface RegistrationModuleOptions {
263
260
  * is ignored (snapshot is stored, discount=0).
264
261
  */
265
262
  promoPreview?: ProviderSpec<RegistrationPromoPreview>;
266
- /**
267
- * SPEC_V2 §11.1 M5.3: validates an optionally set
268
- * `RegistrationConfigSelection.businessTypeVersionId` against the
269
- * SuperAdmin catalog (published BusinessTypeVersions). Without an adapter
270
- * the ID is passed through unchecked — fine for apps without a
271
- * BusinessType catalog.
272
- */
273
- businessTypeLookup?: ProviderSpec<RegistrationBusinessTypeLookup>;
274
263
  /**
275
264
  * Modules that should be visible in the DynamicModule scope — needed so
276
265
  * that factory providers with `inject: [...]` can resolve classes from
@@ -387,13 +376,6 @@ declare class SaveRegistrationConfigSelectionDto {
387
376
  modelId: string;
388
377
  billingCycle: 'MONTHLY' | 'YEARLY';
389
378
  appliedPromoCode?: string | null;
390
- /**
391
- * SPEC_V2 §11.1 M5.3 — optional business-type choice. UUID of a
392
- * **published** BusinessTypeVersion. The service validates existence +
393
- * live status against `RegistrationBusinessTypeLookup`. `null` = no
394
- * choice (legacy Plan-only path).
395
- */
396
- businessTypeVersionId?: string | null;
397
379
  /**
398
380
  * METAMODELL §17a — Bundle consistency. ID of the `CheckoutOffer` that was
399
381
  * created on the pricing page (`<app>/register?offer=<id>`). Passed
@@ -438,4 +420,4 @@ declare function resolveModel(catalog: ConfiguratorCatalog, modelId: string): {
438
420
  yearlyNet: number;
439
421
  };
440
422
 
441
- 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, type PromoEvaluation, REGISTRATION_AUDIT_LOGGER_TOKEN, REGISTRATION_BUSINESS_TYPE_LOOKUP_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, type RegistrationModuleOptions, ResendRegistrationOtpDto, SLUG_AVAILABILITY_CHECK_TOKEN, SaveRegistrationConfigDto, SaveRegistrationConfigSelectionDto, SelectRegistrationPlanDto, StartRegistrationCheckoutDto, USER_ACCOUNT_LOOKUP_TOKEN, VerifyRegistrationOtpDto, computeBreakdown, generateOtpCode, hashOtpCode, resolveModel, slugify, verifyOtpCode };
423
+ 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, type 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, type RegistrationModuleOptions, ResendRegistrationOtpDto, SLUG_AVAILABILITY_CHECK_TOKEN, SaveRegistrationConfigDto, SaveRegistrationConfigSelectionDto, SelectRegistrationPlanDto, StartRegistrationCheckoutDto, USER_ACCOUNT_LOOKUP_TOKEN, VerifyRegistrationOtpDto, computeBreakdown, generateOtpCode, hashOtpCode, resolveModel, slugify, verifyOtpCode };
@@ -12,7 +12,6 @@ import {
12
12
  PendingRegistrationService,
13
13
  PreviewRegistrationPromoDto,
14
14
  REGISTRATION_AUDIT_LOGGER_TOKEN,
15
- REGISTRATION_BUSINESS_TYPE_LOOKUP_TOKEN,
16
15
  REGISTRATION_CONFIGURATOR_LOOKUP_TOKEN,
17
16
  REGISTRATION_CONFIG_TOKEN,
18
17
  REGISTRATION_OTP_DELIVERY_TOKEN,
@@ -37,7 +36,7 @@ import {
37
36
  resolveModel,
38
37
  slugify,
39
38
  verifyOtpCode
40
- } from "../chunk-XSGU2Y2O.js";
39
+ } from "../chunk-CK54YKVK.js";
41
40
  import "../chunk-SABTXESR.js";
42
41
  import "../chunk-SHUYVCID.js";
43
42
  export {
@@ -54,7 +53,6 @@ export {
54
53
  PendingRegistrationService,
55
54
  PreviewRegistrationPromoDto,
56
55
  REGISTRATION_AUDIT_LOGGER_TOKEN,
57
- REGISTRATION_BUSINESS_TYPE_LOOKUP_TOKEN,
58
56
  REGISTRATION_CONFIGURATOR_LOOKUP_TOKEN,
59
57
  REGISTRATION_CONFIG_TOKEN,
60
58
  REGISTRATION_OTP_DELIVERY_TOKEN,