@saasicat/nest 0.27.0 → 1.0.0-rc.1
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 +1 -1
- package/dist/.build-stamp +1 -0
- package/dist/_entries.cjs +460 -460
- package/dist/admin/index.d.cts +6 -6
- package/dist/admin/index.d.ts +6 -6
- package/dist/admin/index.js +3 -3
- package/dist/{admin-audit.service-9IqXMlZm.d.cts → admin-audit.service-4P3Djdxk.d.cts} +1 -1
- package/dist/{admin-audit.service-9IqXMlZm.d.ts → admin-audit.service-4P3Djdxk.d.ts} +1 -1
- package/dist/{admin-resources.module-DGgGSdzN.d.cts → admin-resources.module-CpvzcfCc.d.cts} +2 -2
- package/dist/{admin-resources.module-BY5r_1MG.d.ts → admin-resources.module-DF5_Q7RD.d.ts} +2 -2
- package/dist/{admin-stats.service-HUZIU448.d.cts → admin-stats.service-DfKupywR.d.cts} +3 -3
- package/dist/{admin-stats.service-Db2exT_d.d.ts → admin-stats.service-TYiSUwIR.d.ts} +3 -3
- package/dist/{aggregation-DP5zfKbU.d.ts → aggregation-B3CD0v_d.d.cts} +2 -2
- package/dist/{aggregation-mZ7WZROK.d.cts → aggregation-BFzW07DE.d.ts} +2 -2
- package/dist/billing/index.d.cts +13 -13
- package/dist/billing/index.d.ts +13 -13
- package/dist/billing/index.js +15 -15
- package/dist/catalog/index.d.cts +17 -5
- package/dist/catalog/index.d.ts +17 -5
- package/dist/catalog/index.js +12 -10
- package/dist/{catalog.module-D-_pQDNA.d.cts → catalog.module-BDDO6iwq.d.cts} +1 -1
- package/dist/{catalog.module-CQr1FpkI.d.ts → catalog.module-BTnMsE6u.d.ts} +1 -1
- package/dist/checkout-offer/index.d.cts +3 -3
- package/dist/checkout-offer/index.d.ts +3 -3
- package/dist/checkout-offer/index.js +2 -2
- package/dist/{checkout-offer.module-Ca3_TieR.d.ts → checkout-offer.module-CMtiQJTT.d.ts} +1 -1
- package/dist/{checkout-offer.module-DmlpPevf.d.cts → checkout-offer.module-CVpWrzbe.d.cts} +1 -1
- package/dist/{checkout-offer.service-BX51dljL.d.ts → checkout-offer.service-BLOv2HOo.d.cts} +1 -1
- package/dist/{checkout-offer.service-BX51dljL.d.cts → checkout-offer.service-BLOv2HOo.d.ts} +1 -1
- package/dist/{chunk-EBJJNTW6.js → chunk-57V6ZTI6.js} +1 -1
- package/dist/{chunk-37HEKVDH.js → chunk-7TVZI3KY.js} +11 -11
- package/dist/chunk-AOQJEYOL.js +20 -0
- package/dist/{chunk-3E6ONOMG.js → chunk-AU3OOREM.js} +2 -2
- package/dist/{chunk-H4DOTO7S.js → chunk-BGS4CWV2.js} +5 -5
- package/dist/{chunk-YYUXKLXK.js → chunk-I7GTA3RX.js} +2 -2
- package/dist/{chunk-7ZPFQXHM.js → chunk-IQTQLQD3.js} +5 -5
- package/dist/{chunk-CJFAOD7K.js → chunk-KFT5AIIH.js} +2 -2
- package/dist/{chunk-XTVAFJ3P.js → chunk-L23MLBEC.js} +7 -7
- package/dist/{chunk-SN5UOC43.js → chunk-LTT736P3.js} +15 -15
- package/dist/{chunk-WPUVJRIN.js → chunk-N3L3AICU.js} +11 -11
- package/dist/{chunk-MJ32VNZD.js → chunk-NARZ2WWK.js} +22 -22
- package/dist/{chunk-E56W4U2P.js → chunk-O2J2HDXA.js} +4 -4
- package/dist/{chunk-WKVBNTYC.js → chunk-OUDSQ3PU.js} +6 -6
- package/dist/{chunk-F4B2NJUZ.js → chunk-PK6C5R7B.js} +15 -15
- package/dist/{chunk-L4SUWH5B.js → chunk-QUZU2M33.js} +2 -2
- package/dist/{chunk-NYLON2VC.js → chunk-VBRYPU7V.js} +2 -2
- package/dist/{chunk-2JTISFUZ.js → chunk-VG2NU3CG.js} +11 -11
- package/dist/{chunk-7X5MSAIL.js → chunk-VNADKD5U.js} +23 -23
- package/dist/{chunk-UHD6FJBQ.js → chunk-W6YEIY4R.js} +46 -46
- package/dist/{chunk-5ZXBXYXU.js → chunk-WXYJHZCN.js} +3 -3
- package/dist/{chunk-6WL6VQ7Z.js → chunk-XBYAFEOR.js} +2 -2
- package/dist/{chunk-EHKMPP6J.js → chunk-XMA4XYC5.js} +40 -40
- package/dist/{chunk-B6IWLV7R.js → chunk-YZPVQUIW.js} +8 -8
- package/dist/{define-saasicat-CFxut1VR.d.cts → define-saasicat-B5RmWiD2.d.cts} +8 -8
- package/dist/{define-saasicat-3ois8t8s.d.ts → define-saasicat-DN-dRObd.d.ts} +8 -8
- package/dist/discovery/index.d.cts +4 -4
- package/dist/discovery/index.d.ts +4 -4
- package/dist/discovery/index.js +7 -7
- package/dist/{discovery.scanner-DLgEvuoy.d.cts → discovery.scanner-9cMqF95o.d.cts} +1 -1
- package/dist/{discovery.scanner-DLgEvuoy.d.ts → discovery.scanner-9cMqF95o.d.ts} +1 -1
- package/dist/{enforce-quota.interceptor-N80KC34N.d.cts → enforce-quota.interceptor-CnieZsdB.d.cts} +3 -3
- package/dist/{enforce-quota.interceptor-CYDNvAQz.d.ts → enforce-quota.interceptor-Cseo35Ki.d.ts} +3 -3
- package/dist/entitlement/index.d.cts +4 -4
- package/dist/entitlement/index.d.ts +4 -4
- package/dist/entitlement/index.js +8 -8
- package/dist/index.d.cts +23 -23
- package/dist/index.d.ts +23 -23
- package/dist/index.js +137 -136
- package/dist/{module-options-klrPnWGF.d.cts → module-options-CjeSSaBf.d.cts} +35 -35
- package/dist/{module-options-ByJL7FZm.d.ts → module-options-DtcJqwjv.d.ts} +35 -35
- package/dist/{plan-resolution-CFCoUkrE.d.cts → plan-resolution-Cgo_TR1H.d.cts} +1 -1
- package/dist/{plan-resolution-CFCoUkrE.d.ts → plan-resolution-Cgo_TR1H.d.ts} +1 -1
- package/dist/{plan-versions.service-B-YoE4SZ.d.ts → plan-versions.service-DChhbK6h.d.ts} +2 -2
- package/dist/{plan-versions.service-_saKzb50.d.cts → plan-versions.service-TPEtbN0r.d.cts} +2 -2
- package/dist/platform/index.d.cts +29 -29
- package/dist/platform/index.d.ts +29 -29
- package/dist/platform/index.js +32 -33
- package/dist/promo/index.d.cts +4 -4
- package/dist/promo/index.d.ts +4 -4
- package/dist/promo/index.js +4 -4
- package/dist/{module-BE17XFLg.d.ts → promo.module-BUKcUWDf.d.ts} +2 -2
- package/dist/{module-CHMIyWlf.d.cts → promo.module-BY2YHHLn.d.cts} +2 -2
- package/dist/{service-D48clObR.d.cts → promo.service-2qFgqF-a.d.cts} +1 -1
- package/dist/{service-D48clObR.d.ts → promo.service-2qFgqF-a.d.ts} +1 -1
- package/dist/registration/index.d.cts +3 -3
- package/dist/registration/index.d.ts +3 -3
- package/dist/registration/index.js +2 -2
- package/dist/subscription-contract/index.d.cts +3 -3
- package/dist/subscription-contract/index.d.ts +3 -3
- package/dist/subscription-contract/index.js +3 -3
- package/dist/{subscription-contract.module-B2uNvUJL.d.cts → subscription-contract.module-CEK8HS5-.d.cts} +1 -1
- package/dist/{subscription-contract.module-edyhBr4n.d.ts → subscription-contract.module-fDFdQ0jm.d.ts} +1 -1
- package/dist/{subscription-contract.service--cm47ZJJ.d.cts → subscription-contract.service-hD87MKyg.d.cts} +1 -1
- package/dist/{subscription-contract.service--cm47ZJJ.d.ts → subscription-contract.service-hD87MKyg.d.ts} +1 -1
- package/dist/{tenant-billing.controller-CAMMdfn1.d.cts → tenant-billing.controller-B6UTheK_.d.cts} +5 -5
- package/dist/{tenant-billing.controller-CYYK0CpT.d.ts → tenant-billing.controller-DpgHCT9r.d.ts} +5 -5
- package/dist/{tenant-billing.module-BxJS6fX4.d.cts → tenant-billing.module-BznC3XtW.d.cts} +1 -1
- package/dist/{tenant-billing.module-B0stLoJn.d.ts → tenant-billing.module-wUbsQSFG.d.ts} +1 -1
- package/dist/testing/index.d.cts +19 -19
- package/dist/testing/index.d.ts +19 -19
- package/dist/testing/index.js +33 -33
- package/package.json +5 -5
- package/dist/chunk-L4KTQ6CL.js +0 -20
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Type, CanActivate, DynamicModule, ForwardReference } from '@nestjs/common';
|
|
2
|
-
import { PromoCodeRepository, PromoCodeRedemptionRepository, PromoCodeValidationLogRepository, FirstTimeCustomerCheck, PromoSubscriptionLookup, PromoRevenueDeductionAggregator, TransactionRunner } from '@saasicat/
|
|
2
|
+
import { PromoCodeRepository, PromoCodeRedemptionRepository, PromoCodeValidationLogRepository, FirstTimeCustomerCheck, PromoSubscriptionLookup, PromoRevenueDeductionAggregator, TransactionRunner } from '@saasicat/core';
|
|
3
3
|
import { P as ProviderSpec } from './di-CcNeq9v-.cjs';
|
|
4
|
-
import { P as PromoServiceConfig } from './service-
|
|
4
|
+
import { P as PromoServiceConfig } from './promo.service-2qFgqF-a.cjs';
|
|
5
5
|
|
|
6
6
|
interface PromoCodesModuleOptions {
|
|
7
7
|
promoCodeRepository: ProviderSpec<PromoCodeRepository>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PromoCodeRepository, PromoCodeRedemptionRepository, PromoCodeValidationLogRepository, FirstTimeCustomerCheck, PromoSubscriptionLookup, PromoRevenueDeductionAggregator, TransactionRunner, PlanCatalog, CreatePromoCodeData, PromoCodeRecord, UpdatePromoCodeData, PromoCodeFilter, PromoCodeRedemptionListItem, BillingCycle, PromoPreviewInvalidReason, PromoCodeRedemptionRecord, TransactionContext } from '@saasicat/
|
|
1
|
+
import { PromoCodeRepository, PromoCodeRedemptionRepository, PromoCodeValidationLogRepository, FirstTimeCustomerCheck, PromoSubscriptionLookup, PromoRevenueDeductionAggregator, TransactionRunner, PlanCatalog, CreatePromoCodeData, PromoCodeRecord, UpdatePromoCodeData, PromoCodeFilter, PromoCodeRedemptionListItem, BillingCycle, PromoPreviewInvalidReason, PromoCodeRedemptionRecord, TransactionContext } from '@saasicat/core';
|
|
2
2
|
|
|
3
3
|
type PreviewReason = PromoPreviewInvalidReason;
|
|
4
4
|
type PreviewInvalid = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PromoCodeRepository, PromoCodeRedemptionRepository, PromoCodeValidationLogRepository, FirstTimeCustomerCheck, PromoSubscriptionLookup, PromoRevenueDeductionAggregator, TransactionRunner, PlanCatalog, CreatePromoCodeData, PromoCodeRecord, UpdatePromoCodeData, PromoCodeFilter, PromoCodeRedemptionListItem, BillingCycle, PromoPreviewInvalidReason, PromoCodeRedemptionRecord, TransactionContext } from '@saasicat/
|
|
1
|
+
import { PromoCodeRepository, PromoCodeRedemptionRepository, PromoCodeValidationLogRepository, FirstTimeCustomerCheck, PromoSubscriptionLookup, PromoRevenueDeductionAggregator, TransactionRunner, PlanCatalog, CreatePromoCodeData, PromoCodeRecord, UpdatePromoCodeData, PromoCodeFilter, PromoCodeRedemptionListItem, BillingCycle, PromoPreviewInvalidReason, PromoCodeRedemptionRecord, TransactionContext } from '@saasicat/core';
|
|
2
2
|
|
|
3
3
|
type PreviewReason = PromoPreviewInvalidReason;
|
|
4
4
|
type PreviewInvalid = {
|
|
@@ -1,5 +1,5 @@
|
|
|
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/
|
|
2
|
-
export { PasswordHasher } from '@saasicat/
|
|
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/core';
|
|
2
|
+
export { PasswordHasher } from '@saasicat/core';
|
|
3
3
|
import { CanActivate, ExecutionContext, Type, DynamicModule, ForwardReference, Provider } from '@nestjs/common';
|
|
4
4
|
import { P as ProviderSpec } from '../di-CcNeq9v-.cjs';
|
|
5
5
|
export { CronExpression } from '@nestjs/schedule';
|
|
@@ -36,7 +36,7 @@ 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
|
-
/** Optionally injectable configuration — falls back to default TTLs from
|
|
39
|
+
/** Optionally injectable configuration — falls back to default TTLs from @saasicat/core. */
|
|
40
40
|
declare const REGISTRATION_CONFIG_TOKEN: unique symbol;
|
|
41
41
|
|
|
42
42
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
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/
|
|
2
|
-
export { PasswordHasher } from '@saasicat/
|
|
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/core';
|
|
2
|
+
export { PasswordHasher } from '@saasicat/core';
|
|
3
3
|
import { CanActivate, ExecutionContext, Type, DynamicModule, ForwardReference, Provider } from '@nestjs/common';
|
|
4
4
|
import { P as ProviderSpec } from '../di-CcNeq9v-.js';
|
|
5
5
|
export { CronExpression } from '@nestjs/schedule';
|
|
@@ -36,7 +36,7 @@ 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
|
-
/** Optionally injectable configuration — falls back to default TTLs from
|
|
39
|
+
/** Optionally injectable configuration — falls back to default TTLs from @saasicat/core. */
|
|
40
40
|
declare const REGISTRATION_CONFIG_TOKEN: unique symbol;
|
|
41
41
|
|
|
42
42
|
/**
|
|
@@ -36,8 +36,8 @@ import {
|
|
|
36
36
|
resolveModel,
|
|
37
37
|
slugify,
|
|
38
38
|
verifyOtpCode
|
|
39
|
-
} from "../chunk-
|
|
40
|
-
import "../chunk-
|
|
39
|
+
} from "../chunk-NARZ2WWK.js";
|
|
40
|
+
import "../chunk-57V6ZTI6.js";
|
|
41
41
|
import "../chunk-SABTXESR.js";
|
|
42
42
|
import "../chunk-SHUYVCID.js";
|
|
43
43
|
export {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { C as CreateContractFromOfferOptions, S as SubscriptionContractService, c as contractLineItemToInvoiceLineItem, s as sortContractLineItemsForInvoice, a as subscriptionContractToInvoiceSnapshot } from '../subscription-contract.service
|
|
2
|
-
export { S as SubscriptionContractModule, a as SubscriptionContractModuleOptions } from '../subscription-contract.module-
|
|
3
|
-
import '@saasicat/
|
|
1
|
+
export { C as CreateContractFromOfferOptions, S as SubscriptionContractService, c as contractLineItemToInvoiceLineItem, s as sortContractLineItemsForInvoice, a as subscriptionContractToInvoiceSnapshot } from '../subscription-contract.service-hD87MKyg.cjs';
|
|
2
|
+
export { S as SubscriptionContractModule, a as SubscriptionContractModuleOptions } from '../subscription-contract.module-CEK8HS5-.cjs';
|
|
3
|
+
import '@saasicat/core';
|
|
4
4
|
import '@nestjs/common';
|
|
5
5
|
import '../di-CcNeq9v-.cjs';
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { C as CreateContractFromOfferOptions, S as SubscriptionContractService, c as contractLineItemToInvoiceLineItem, s as sortContractLineItemsForInvoice, a as subscriptionContractToInvoiceSnapshot } from '../subscription-contract.service
|
|
2
|
-
export { S as SubscriptionContractModule, a as SubscriptionContractModuleOptions } from '../subscription-contract.module-
|
|
3
|
-
import '@saasicat/
|
|
1
|
+
export { C as CreateContractFromOfferOptions, S as SubscriptionContractService, c as contractLineItemToInvoiceLineItem, s as sortContractLineItemsForInvoice, a as subscriptionContractToInvoiceSnapshot } from '../subscription-contract.service-hD87MKyg.js';
|
|
2
|
+
export { S as SubscriptionContractModule, a as SubscriptionContractModuleOptions } from '../subscription-contract.module-fDFdQ0jm.js';
|
|
3
|
+
import '@saasicat/core';
|
|
4
4
|
import '@nestjs/common';
|
|
5
5
|
import '../di-CcNeq9v-.js';
|
|
6
6
|
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import "../chunk-2SLTRKXC.js";
|
|
2
2
|
import {
|
|
3
3
|
SubscriptionContractModule
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-AU3OOREM.js";
|
|
5
5
|
import {
|
|
6
6
|
SubscriptionContractService,
|
|
7
7
|
contractLineItemToInvoiceLineItem,
|
|
8
8
|
sortContractLineItemsForInvoice,
|
|
9
9
|
subscriptionContractToInvoiceSnapshot
|
|
10
|
-
} from "../chunk-
|
|
10
|
+
} from "../chunk-KFT5AIIH.js";
|
|
11
11
|
import "../chunk-BSK6YBLI.js";
|
|
12
12
|
import {
|
|
13
13
|
SUBSCRIPTION_CONTRACT_REPOSITORY_TOKEN
|
|
14
|
-
} from "../chunk-
|
|
14
|
+
} from "../chunk-VBRYPU7V.js";
|
|
15
15
|
import "../chunk-SABTXESR.js";
|
|
16
16
|
import "../chunk-SHUYVCID.js";
|
|
17
17
|
export {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Type, DynamicModule, ForwardReference, Provider } from '@nestjs/common';
|
|
2
|
-
import { SubscriptionContractRepository } from '@saasicat/
|
|
2
|
+
import { SubscriptionContractRepository } from '@saasicat/core';
|
|
3
3
|
import { P as ProviderSpec } from './di-CcNeq9v-.cjs';
|
|
4
4
|
|
|
5
5
|
interface SubscriptionContractModuleOptions {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Type, DynamicModule, ForwardReference, Provider } from '@nestjs/common';
|
|
2
|
-
import { SubscriptionContractRepository } from '@saasicat/
|
|
2
|
+
import { SubscriptionContractRepository } from '@saasicat/core';
|
|
3
3
|
import { P as ProviderSpec } from './di-CcNeq9v-.js';
|
|
4
4
|
|
|
5
5
|
interface SubscriptionContractModuleOptions {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SubscriptionContractRepository, SubscriptionContractRecord, SubscriptionContractInvoiceSnapshot, CreateSubscriptionContractData, TerminateSubscriptionContractData, CheckoutOfferRow, ContractLineItemRecord, InvoiceLineItemSnapshot } from '@saasicat/
|
|
1
|
+
import { SubscriptionContractRepository, SubscriptionContractRecord, SubscriptionContractInvoiceSnapshot, CreateSubscriptionContractData, TerminateSubscriptionContractData, CheckoutOfferRow, ContractLineItemRecord, InvoiceLineItemSnapshot } from '@saasicat/core';
|
|
2
2
|
|
|
3
3
|
interface CreateContractFromOfferOptions {
|
|
4
4
|
tenantId: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SubscriptionContractRepository, SubscriptionContractRecord, SubscriptionContractInvoiceSnapshot, CreateSubscriptionContractData, TerminateSubscriptionContractData, CheckoutOfferRow, ContractLineItemRecord, InvoiceLineItemSnapshot } from '@saasicat/
|
|
1
|
+
import { SubscriptionContractRepository, SubscriptionContractRecord, SubscriptionContractInvoiceSnapshot, CreateSubscriptionContractData, TerminateSubscriptionContractData, CheckoutOfferRow, ContractLineItemRecord, InvoiceLineItemSnapshot } from '@saasicat/core';
|
|
2
2
|
|
|
3
3
|
interface CreateContractFromOfferOptions {
|
|
4
4
|
tenantId: string;
|
package/dist/{tenant-billing.controller-CAMMdfn1.d.cts → tenant-billing.controller-B6UTheK_.d.cts}
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { CanActivate, ExecutionContext } from '@nestjs/common';
|
|
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 './tenant-billing.module-
|
|
3
|
-
import { PlanCatalog, SubscriptionUsagePort, UsageSnapshotPort, TenantSubscriptionWritePort, SubscriptionBundleRepository, BundleRepository, SubscriptionBundleView, SubscriptionBundleRecord, PlanRepository, CatalogEntryRepository, BundleVersionRow, SubscriptionUsageRecord, OnboardingSelectionResponse } from '@saasicat/
|
|
4
|
-
import { c as EntitlementService, a as EffectiveLimitsSnapshot, t as toEffectiveLimitsSnapshot } from './aggregation-
|
|
5
|
-
import { g as PromoCodesService } from './service-
|
|
6
|
-
import { A as AdminAuditService } from './admin-audit.service-
|
|
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 './tenant-billing.module-BznC3XtW.cjs';
|
|
3
|
+
import { PlanCatalog, SubscriptionUsagePort, UsageSnapshotPort, TenantSubscriptionWritePort, SubscriptionBundleRepository, BundleRepository, SubscriptionBundleView, SubscriptionBundleRecord, PlanRepository, CatalogEntryRepository, BundleVersionRow, SubscriptionUsageRecord, OnboardingSelectionResponse } from '@saasicat/core';
|
|
4
|
+
import { c as EntitlementService, a as EffectiveLimitsSnapshot, t as toEffectiveLimitsSnapshot } from './aggregation-B3CD0v_d.cjs';
|
|
5
|
+
import { g as PromoCodesService } from './promo.service-2qFgqF-a.cjs';
|
|
6
|
+
import { A as AdminAuditService } from './admin-audit.service-4P3Djdxk.cjs';
|
|
7
7
|
|
|
8
8
|
declare class ComposedTenantAuthGuard implements CanActivate {
|
|
9
9
|
private readonly guards;
|
package/dist/{tenant-billing.controller-CYYK0CpT.d.ts → tenant-billing.controller-DpgHCT9r.d.ts}
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { CanActivate, ExecutionContext } from '@nestjs/common';
|
|
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 './tenant-billing.module-
|
|
3
|
-
import { PlanCatalog, SubscriptionUsagePort, UsageSnapshotPort, TenantSubscriptionWritePort, SubscriptionBundleRepository, BundleRepository, SubscriptionBundleView, SubscriptionBundleRecord, PlanRepository, CatalogEntryRepository, BundleVersionRow, SubscriptionUsageRecord, OnboardingSelectionResponse } from '@saasicat/
|
|
4
|
-
import { c as EntitlementService, a as EffectiveLimitsSnapshot, t as toEffectiveLimitsSnapshot } from './aggregation-
|
|
5
|
-
import { g as PromoCodesService } from './service-
|
|
6
|
-
import { A as AdminAuditService } from './admin-audit.service-
|
|
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 './tenant-billing.module-wUbsQSFG.js';
|
|
3
|
+
import { PlanCatalog, SubscriptionUsagePort, UsageSnapshotPort, TenantSubscriptionWritePort, SubscriptionBundleRepository, BundleRepository, SubscriptionBundleView, SubscriptionBundleRecord, PlanRepository, CatalogEntryRepository, BundleVersionRow, SubscriptionUsageRecord, OnboardingSelectionResponse } from '@saasicat/core';
|
|
4
|
+
import { c as EntitlementService, a as EffectiveLimitsSnapshot, t as toEffectiveLimitsSnapshot } from './aggregation-BFzW07DE.js';
|
|
5
|
+
import { g as PromoCodesService } from './promo.service-2qFgqF-a.js';
|
|
6
|
+
import { A as AdminAuditService } from './admin-audit.service-4P3Djdxk.js';
|
|
7
7
|
|
|
8
8
|
declare class ComposedTenantAuthGuard implements CanActivate {
|
|
9
9
|
private readonly guards;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CanActivate, Type, DynamicModule, ForwardReference, Provider } from '@nestjs/common';
|
|
2
|
-
import { NewContractLineItemData, BillingCycle, SubscriptionUsagePort, SubscriptionBundleRepository, BundleRepository, UsageSnapshotPort, TenantSubscriptionWritePort, SubscriptionContractRepository } from '@saasicat/
|
|
2
|
+
import { NewContractLineItemData, BillingCycle, SubscriptionUsagePort, SubscriptionBundleRepository, BundleRepository, UsageSnapshotPort, TenantSubscriptionWritePort, SubscriptionContractRepository } from '@saasicat/core';
|
|
3
3
|
import { P as ProviderSpec } from './di-CcNeq9v-.cjs';
|
|
4
4
|
|
|
5
5
|
declare const FEATURE_GUARD_MARKER: unique symbol;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CanActivate, Type, DynamicModule, ForwardReference, Provider } from '@nestjs/common';
|
|
2
|
-
import { NewContractLineItemData, BillingCycle, SubscriptionUsagePort, SubscriptionBundleRepository, BundleRepository, UsageSnapshotPort, TenantSubscriptionWritePort, SubscriptionContractRepository } from '@saasicat/
|
|
2
|
+
import { NewContractLineItemData, BillingCycle, SubscriptionUsagePort, SubscriptionBundleRepository, BundleRepository, UsageSnapshotPort, TenantSubscriptionWritePort, SubscriptionContractRepository } from '@saasicat/core';
|
|
3
3
|
import { P as ProviderSpec } from './di-CcNeq9v-.js';
|
|
4
4
|
|
|
5
5
|
declare const FEATURE_GUARD_MARKER: unique symbol;
|
package/dist/testing/index.d.cts
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
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/
|
|
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/core';
|
|
2
2
|
import { Type, DynamicModule } from '@nestjs/common';
|
|
3
|
-
import { S as
|
|
4
|
-
export { P as PLAN_RESOLVER_PORT_TOKEN, n as StaticPlanResolver } from '../module-options-
|
|
5
|
-
export { E as EnforceQuotaInterceptor, S as StaticEntitlementService, a as StaticFeatureGuard } from '../enforce-quota.interceptor-
|
|
3
|
+
import { S as SaaSiCatAdapters } from '../module-options-CjeSSaBf.cjs';
|
|
4
|
+
export { P as PLAN_RESOLVER_PORT_TOKEN, n as StaticPlanResolver } from '../module-options-CjeSSaBf.cjs';
|
|
5
|
+
export { E as EnforceQuotaInterceptor, S as StaticEntitlementService, a as StaticFeatureGuard } from '../enforce-quota.interceptor-CnieZsdB.cjs';
|
|
6
6
|
import '../di-CcNeq9v-.cjs';
|
|
7
|
-
import '../admin-resources.module-
|
|
8
|
-
import '../admin-audit.service-
|
|
9
|
-
import '../tenant-billing.module-
|
|
10
|
-
import '../catalog.module-
|
|
11
|
-
import '../discovery.scanner-
|
|
7
|
+
import '../admin-resources.module-CpvzcfCc.cjs';
|
|
8
|
+
import '../admin-audit.service-4P3Djdxk.cjs';
|
|
9
|
+
import '../tenant-billing.module-BznC3XtW.cjs';
|
|
10
|
+
import '../catalog.module-BDDO6iwq.cjs';
|
|
11
|
+
import '../discovery.scanner-9cMqF95o.cjs';
|
|
12
12
|
import '@nestjs/core';
|
|
13
|
-
import '../plan-resolution-
|
|
14
|
-
import '../module-
|
|
15
|
-
import '../service-
|
|
16
|
-
import '../checkout-offer.module-
|
|
17
|
-
import '../subscription-contract.module-
|
|
13
|
+
import '../plan-resolution-Cgo_TR1H.cjs';
|
|
14
|
+
import '../promo.module-BY2YHHLn.cjs';
|
|
15
|
+
import '../promo.service-2qFgqF-a.cjs';
|
|
16
|
+
import '../checkout-offer.module-CVpWrzbe.cjs';
|
|
17
|
+
import '../subscription-contract.module-CEK8HS5-.cjs';
|
|
18
18
|
import 'rxjs';
|
|
19
19
|
|
|
20
20
|
/**
|
|
@@ -234,20 +234,20 @@ declare class StubAuditPort {
|
|
|
234
234
|
declare class StubRlsBypassPort {
|
|
235
235
|
runWithBypass<T>(fn: () => Promise<T>): Promise<T>;
|
|
236
236
|
}
|
|
237
|
-
interface
|
|
237
|
+
interface CreateSaaSiCatTestModuleOptions {
|
|
238
238
|
planCatalog: PlanCatalog;
|
|
239
239
|
/** Default `'starter'` if the catalog has at least one plan. */
|
|
240
240
|
defaultPlanId?: string;
|
|
241
241
|
/** QuotaProvider classes for the `EnforceQuotaInterceptor`. */
|
|
242
242
|
quotaProviders?: Array<Type<QuotaProvider>>;
|
|
243
243
|
/** Overrides — if the test needs a different adapter. */
|
|
244
|
-
overrides?: Partial<Pick<
|
|
244
|
+
overrides?: Partial<Pick<SaaSiCatAdapters, 'mfa' | 'audit' | 'rlsBypass'>>;
|
|
245
245
|
}
|
|
246
246
|
/**
|
|
247
|
-
* Returns a `DynamicModule` that sets up the
|
|
247
|
+
* Returns a `DynamicModule` that sets up the SaaSiCatModule with stub
|
|
248
248
|
* adapters + the given PlanCatalog in static entitlement mode.
|
|
249
249
|
* Tests can drop this into `Test.createTestingModule({ imports: [...] })`.
|
|
250
250
|
*/
|
|
251
|
-
declare function
|
|
251
|
+
declare function createSaaSiCatTestModule(options: CreateSaaSiCatTestModuleOptions): DynamicModule;
|
|
252
252
|
|
|
253
|
-
export { type
|
|
253
|
+
export { type CreateSaaSiCatTestModuleOptions, FakeBundleRepository, FakeMarketingProjectionRepository, FakePlanRepository, FakePlanVersionRepository, FakeSubscriptionBundleRepository, FakeSubscriptionContractRepository, FakeSubscriptionRepository, FakeTransactionRunner, StubAuditPort, StubMfaPort, StubRlsBypassPort, createSaaSiCatTestModule };
|
package/dist/testing/index.d.ts
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
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/
|
|
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/core';
|
|
2
2
|
import { Type, DynamicModule } from '@nestjs/common';
|
|
3
|
-
import { S as
|
|
4
|
-
export { P as PLAN_RESOLVER_PORT_TOKEN, n as StaticPlanResolver } from '../module-options-
|
|
5
|
-
export { E as EnforceQuotaInterceptor, S as StaticEntitlementService, a as StaticFeatureGuard } from '../enforce-quota.interceptor-
|
|
3
|
+
import { S as SaaSiCatAdapters } from '../module-options-DtcJqwjv.js';
|
|
4
|
+
export { P as PLAN_RESOLVER_PORT_TOKEN, n as StaticPlanResolver } from '../module-options-DtcJqwjv.js';
|
|
5
|
+
export { E as EnforceQuotaInterceptor, S as StaticEntitlementService, a as StaticFeatureGuard } from '../enforce-quota.interceptor-Cseo35Ki.js';
|
|
6
6
|
import '../di-CcNeq9v-.js';
|
|
7
|
-
import '../admin-resources.module-
|
|
8
|
-
import '../admin-audit.service-
|
|
9
|
-
import '../tenant-billing.module-
|
|
10
|
-
import '../catalog.module-
|
|
11
|
-
import '../discovery.scanner-
|
|
7
|
+
import '../admin-resources.module-DF5_Q7RD.js';
|
|
8
|
+
import '../admin-audit.service-4P3Djdxk.js';
|
|
9
|
+
import '../tenant-billing.module-wUbsQSFG.js';
|
|
10
|
+
import '../catalog.module-BTnMsE6u.js';
|
|
11
|
+
import '../discovery.scanner-9cMqF95o.js';
|
|
12
12
|
import '@nestjs/core';
|
|
13
|
-
import '../plan-resolution-
|
|
14
|
-
import '../module-
|
|
15
|
-
import '../service-
|
|
16
|
-
import '../checkout-offer.module-
|
|
17
|
-
import '../subscription-contract.module-
|
|
13
|
+
import '../plan-resolution-Cgo_TR1H.js';
|
|
14
|
+
import '../promo.module-BUKcUWDf.js';
|
|
15
|
+
import '../promo.service-2qFgqF-a.js';
|
|
16
|
+
import '../checkout-offer.module-CMtiQJTT.js';
|
|
17
|
+
import '../subscription-contract.module-fDFdQ0jm.js';
|
|
18
18
|
import 'rxjs';
|
|
19
19
|
|
|
20
20
|
/**
|
|
@@ -234,20 +234,20 @@ declare class StubAuditPort {
|
|
|
234
234
|
declare class StubRlsBypassPort {
|
|
235
235
|
runWithBypass<T>(fn: () => Promise<T>): Promise<T>;
|
|
236
236
|
}
|
|
237
|
-
interface
|
|
237
|
+
interface CreateSaaSiCatTestModuleOptions {
|
|
238
238
|
planCatalog: PlanCatalog;
|
|
239
239
|
/** Default `'starter'` if the catalog has at least one plan. */
|
|
240
240
|
defaultPlanId?: string;
|
|
241
241
|
/** QuotaProvider classes for the `EnforceQuotaInterceptor`. */
|
|
242
242
|
quotaProviders?: Array<Type<QuotaProvider>>;
|
|
243
243
|
/** Overrides — if the test needs a different adapter. */
|
|
244
|
-
overrides?: Partial<Pick<
|
|
244
|
+
overrides?: Partial<Pick<SaaSiCatAdapters, 'mfa' | 'audit' | 'rlsBypass'>>;
|
|
245
245
|
}
|
|
246
246
|
/**
|
|
247
|
-
* Returns a `DynamicModule` that sets up the
|
|
247
|
+
* Returns a `DynamicModule` that sets up the SaaSiCatModule with stub
|
|
248
248
|
* adapters + the given PlanCatalog in static entitlement mode.
|
|
249
249
|
* Tests can drop this into `Test.createTestingModule({ imports: [...] })`.
|
|
250
250
|
*/
|
|
251
|
-
declare function
|
|
251
|
+
declare function createSaaSiCatTestModule(options: CreateSaaSiCatTestModuleOptions): DynamicModule;
|
|
252
252
|
|
|
253
|
-
export { type
|
|
253
|
+
export { type CreateSaaSiCatTestModuleOptions, FakeBundleRepository, FakeMarketingProjectionRepository, FakePlanRepository, FakePlanVersionRepository, FakeSubscriptionBundleRepository, FakeSubscriptionContractRepository, FakeSubscriptionRepository, FakeTransactionRunner, StubAuditPort, StubMfaPort, StubRlsBypassPort, createSaaSiCatTestModule };
|
package/dist/testing/index.js
CHANGED
|
@@ -1,40 +1,40 @@
|
|
|
1
1
|
import {
|
|
2
2
|
EnforceQuotaInterceptor,
|
|
3
3
|
PLAN_RESOLVER_PORT_TOKEN,
|
|
4
|
-
|
|
4
|
+
SaaSiCatModule,
|
|
5
5
|
StaticEntitlementService,
|
|
6
6
|
StaticFeatureGuard,
|
|
7
7
|
StaticPlanResolver
|
|
8
|
-
} from "../chunk-
|
|
9
|
-
import "../chunk-
|
|
10
|
-
import "../chunk-
|
|
11
|
-
import "../chunk-
|
|
12
|
-
import "../chunk-
|
|
13
|
-
import "../chunk-
|
|
14
|
-
import "../chunk-
|
|
15
|
-
import "../chunk-
|
|
16
|
-
import "../chunk-WPUVJRIN.js";
|
|
17
|
-
import "../chunk-E56W4U2P.js";
|
|
18
|
-
import "../chunk-XTVAFJ3P.js";
|
|
8
|
+
} from "../chunk-XMA4XYC5.js";
|
|
9
|
+
import "../chunk-AU3OOREM.js";
|
|
10
|
+
import "../chunk-LTT736P3.js";
|
|
11
|
+
import "../chunk-W6YEIY4R.js";
|
|
12
|
+
import "../chunk-KFT5AIIH.js";
|
|
13
|
+
import "../chunk-VNADKD5U.js";
|
|
14
|
+
import "../chunk-N3L3AICU.js";
|
|
15
|
+
import "../chunk-L23MLBEC.js";
|
|
19
16
|
import "../chunk-BSK6YBLI.js";
|
|
17
|
+
import "../chunk-XBYAFEOR.js";
|
|
18
|
+
import "../chunk-WXYJHZCN.js";
|
|
19
|
+
import "../chunk-BGS4CWV2.js";
|
|
20
|
+
import "../chunk-PK6C5R7B.js";
|
|
21
|
+
import "../chunk-VBRYPU7V.js";
|
|
22
|
+
import "../chunk-OUDSQ3PU.js";
|
|
23
|
+
import "../chunk-AOQJEYOL.js";
|
|
24
|
+
import "../chunk-QUZU2M33.js";
|
|
25
|
+
import "../chunk-YZPVQUIW.js";
|
|
26
|
+
import "../chunk-7TVZI3KY.js";
|
|
27
|
+
import "../chunk-O2J2HDXA.js";
|
|
20
28
|
import "../chunk-YSC46BGM.js";
|
|
21
|
-
import "../chunk-6WL6VQ7Z.js";
|
|
22
|
-
import "../chunk-5ZXBXYXU.js";
|
|
23
|
-
import "../chunk-H4DOTO7S.js";
|
|
24
|
-
import "../chunk-F4B2NJUZ.js";
|
|
25
29
|
import "../chunk-DQKCK7DX.js";
|
|
26
|
-
import "../chunk-
|
|
27
|
-
import "../chunk-EBJJNTW6.js";
|
|
28
|
-
import "../chunk-WKVBNTYC.js";
|
|
29
|
-
import "../chunk-L4KTQ6CL.js";
|
|
30
|
+
import "../chunk-57V6ZTI6.js";
|
|
30
31
|
import "../chunk-SABTXESR.js";
|
|
31
|
-
import "../chunk-L4SUWH5B.js";
|
|
32
32
|
import {
|
|
33
33
|
__name
|
|
34
34
|
} from "../chunk-SHUYVCID.js";
|
|
35
35
|
|
|
36
36
|
// src/testing/fake-repositories.ts
|
|
37
|
-
import { startOfUtcDay } from "@saasicat/
|
|
37
|
+
import { startOfUtcDay } from "@saasicat/core";
|
|
38
38
|
var FakeSubscriptionRepository = class {
|
|
39
39
|
static {
|
|
40
40
|
__name(this, "FakeSubscriptionRepository");
|
|
@@ -341,7 +341,7 @@ var FakeTransactionRunner = class _FakeTransactionRunner {
|
|
|
341
341
|
__name(this, "FakeTransactionRunner");
|
|
342
342
|
}
|
|
343
343
|
/** Sentinel value passed through as the TransactionContext. */
|
|
344
|
-
static TX_SENTINEL = /* @__PURE__ */ Symbol.for("FakeTransactionRunner.tx");
|
|
344
|
+
static TX_SENTINEL = /* @__PURE__ */ Symbol.for("saasicat/nest/FakeTransactionRunner.tx");
|
|
345
345
|
runCount = 0;
|
|
346
346
|
async run(fn) {
|
|
347
347
|
this.runCount += 1;
|
|
@@ -922,7 +922,7 @@ var FakePlanRepository = class {
|
|
|
922
922
|
}
|
|
923
923
|
};
|
|
924
924
|
|
|
925
|
-
// src/testing/create-
|
|
925
|
+
// src/testing/create-saasicat-test-module.ts
|
|
926
926
|
import { Module } from "@nestjs/common";
|
|
927
927
|
function _ts_decorate(decorators, target, key, desc) {
|
|
928
928
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
@@ -964,17 +964,17 @@ var StubRlsBypassPort = class {
|
|
|
964
964
|
return fn();
|
|
965
965
|
}
|
|
966
966
|
};
|
|
967
|
-
function
|
|
967
|
+
function createSaaSiCatTestModule(options) {
|
|
968
968
|
const defaultPlanId = options.defaultPlanId ?? options.planCatalog.plans?.[0]?.id;
|
|
969
|
-
let
|
|
969
|
+
let SaaSiCatTestHost = class SaaSiCatTestHost {
|
|
970
970
|
static {
|
|
971
|
-
__name(this, "
|
|
971
|
+
__name(this, "SaaSiCatTestHost");
|
|
972
972
|
}
|
|
973
973
|
};
|
|
974
|
-
|
|
974
|
+
SaaSiCatTestHost = _ts_decorate([
|
|
975
975
|
Module({
|
|
976
976
|
imports: [
|
|
977
|
-
|
|
977
|
+
SaaSiCatModule.forRoot({
|
|
978
978
|
planCatalog: options.planCatalog,
|
|
979
979
|
controller: {
|
|
980
980
|
guards: []
|
|
@@ -989,12 +989,12 @@ function createSaasPlatformTestModule(options) {
|
|
|
989
989
|
})
|
|
990
990
|
]
|
|
991
991
|
})
|
|
992
|
-
],
|
|
992
|
+
], SaaSiCatTestHost);
|
|
993
993
|
return {
|
|
994
|
-
module:
|
|
994
|
+
module: SaaSiCatTestHost
|
|
995
995
|
};
|
|
996
996
|
}
|
|
997
|
-
__name(
|
|
997
|
+
__name(createSaaSiCatTestModule, "createSaaSiCatTestModule");
|
|
998
998
|
export {
|
|
999
999
|
EnforceQuotaInterceptor,
|
|
1000
1000
|
FakeBundleRepository,
|
|
@@ -1012,5 +1012,5 @@ export {
|
|
|
1012
1012
|
StubAuditPort,
|
|
1013
1013
|
StubMfaPort,
|
|
1014
1014
|
StubRlsBypassPort,
|
|
1015
|
-
|
|
1015
|
+
createSaaSiCatTestModule
|
|
1016
1016
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@saasicat/nest",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.0-rc.1",
|
|
4
4
|
"description": "NestJS implementation of SaaSiCat: capability discovery, catalog packaging, contracts, entitlement enforcement, billing and admin APIs.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -137,8 +137,8 @@
|
|
|
137
137
|
"js-yaml": "^4.3.1",
|
|
138
138
|
"otplib": "^13.4.1",
|
|
139
139
|
"qrcode": "^1.5.4",
|
|
140
|
-
"@saasicat/spec": "^0.
|
|
141
|
-
"@saasicat/
|
|
140
|
+
"@saasicat/spec": "^1.0.0-rc.1",
|
|
141
|
+
"@saasicat/core": "^1.0.0-rc.1"
|
|
142
142
|
},
|
|
143
143
|
"peerDependencies": {
|
|
144
144
|
"@nestjs/common": "^11.0.0",
|
|
@@ -171,7 +171,7 @@
|
|
|
171
171
|
"repository": {
|
|
172
172
|
"type": "git",
|
|
173
173
|
"url": "https://github.com/uelker70/saasicat.git",
|
|
174
|
-
"directory": "packages/
|
|
174
|
+
"directory": "packages/nest"
|
|
175
175
|
},
|
|
176
176
|
"bugs": {
|
|
177
177
|
"url": "https://github.com/uelker70/saasicat/issues"
|
|
@@ -182,6 +182,6 @@
|
|
|
182
182
|
"scripts": {
|
|
183
183
|
"build": "node ../../scripts/build-and-prune.mjs \"tsup && tsup --config tsup.cjs.config.ts && node scripts/build-cjs-stubs.mjs\"",
|
|
184
184
|
"pretest": "pnpm run build",
|
|
185
|
-
"test": "node --test tests
|
|
185
|
+
"test": "node --test 'tests/*.test.js'"
|
|
186
186
|
}
|
|
187
187
|
}
|
package/dist/chunk-L4KTQ6CL.js
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
// src/catalog/tokens.ts
|
|
2
|
-
var PLAN_REPOSITORY_TOKEN = /* @__PURE__ */ Symbol.for("saas-platform/PlanRepository");
|
|
3
|
-
var BUNDLE_REPOSITORY_TOKEN = /* @__PURE__ */ Symbol.for("saas-platform/BundleRepository");
|
|
4
|
-
var MARKETING_PROJECTION_REPOSITORY_TOKEN = /* @__PURE__ */ Symbol.for("saas-platform/MarketingProjectionRepository");
|
|
5
|
-
var CATALOG_ENTRY_REPOSITORY_TOKEN = /* @__PURE__ */ Symbol.for("saas-platform/CatalogEntryRepository");
|
|
6
|
-
var PROMOTION_REPOSITORY_TOKEN = /* @__PURE__ */ Symbol.for("saas-platform/PromotionRepository");
|
|
7
|
-
var MARKETING_SETTINGS_REPOSITORY_TOKEN = /* @__PURE__ */ Symbol.for("saas-platform/MarketingSettingsRepository");
|
|
8
|
-
var CATALOG_SERVICE_CONFIG_TOKEN = /* @__PURE__ */ Symbol.for("saas-platform/CatalogServiceConfig");
|
|
9
|
-
var FEATURE_UI_REGISTRY_TOKEN = /* @__PURE__ */ Symbol.for("saas-platform/CatalogFeatureUiRegistry");
|
|
10
|
-
|
|
11
|
-
export {
|
|
12
|
-
PLAN_REPOSITORY_TOKEN,
|
|
13
|
-
BUNDLE_REPOSITORY_TOKEN,
|
|
14
|
-
MARKETING_PROJECTION_REPOSITORY_TOKEN,
|
|
15
|
-
CATALOG_ENTRY_REPOSITORY_TOKEN,
|
|
16
|
-
PROMOTION_REPOSITORY_TOKEN,
|
|
17
|
-
MARKETING_SETTINGS_REPOSITORY_TOKEN,
|
|
18
|
-
CATALOG_SERVICE_CONFIG_TOKEN,
|
|
19
|
-
FEATURE_UI_REGISTRY_TOKEN
|
|
20
|
-
};
|