@saasicat/nest 0.9.0 → 0.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_entries.cjs +17678 -0
- package/dist/admin/index.cjs +4 -1533
- package/dist/admin/index.d.cts +10 -173
- package/dist/admin/index.d.ts +10 -173
- package/dist/admin/index.js +3 -2
- package/dist/{admin-resources.module-BybEjZs-.d.cts → admin-resources.module-BZN_yBFj.d.cts} +1 -1
- package/dist/{admin-resources.module-CUCLlUAi.d.ts → admin-resources.module-Cms8MY6h.d.ts} +1 -1
- package/dist/admin-stats.module-15ac5KY3.d.ts +201 -0
- package/dist/admin-stats.module-v4SVvWzj.d.cts +201 -0
- package/dist/billing/index.cjs +4 -5130
- package/dist/billing/index.d.cts +8 -437
- package/dist/billing/index.d.ts +8 -437
- package/dist/billing/index.js +4 -4
- package/dist/catalog/index.cjs +4 -5624
- package/dist/catalog/index.d.cts +5 -328
- package/dist/catalog/index.d.ts +5 -328
- package/dist/catalog/index.js +4 -4
- package/dist/checkout-offer/index.cjs +4 -807
- package/dist/checkout-offer/index.d.cts +5 -84
- package/dist/checkout-offer/index.d.ts +5 -84
- package/dist/checkout-offer/index.js +3 -2
- package/dist/checkout-offer.module-Y0hDOVrq.d.ts +85 -0
- package/dist/checkout-offer.module-ZYF5IsDY.d.cts +85 -0
- package/dist/{chunk-PBQRPDO2.js → chunk-33TP26MR.js} +2 -2
- package/dist/{chunk-CK54YKVK.js → chunk-75JABGZK.js} +16 -16
- package/dist/{chunk-HRU3CP57.js → chunk-BOADBIGB.js} +1 -1
- package/dist/chunk-DBZGV3HC.js +0 -0
- package/dist/{chunk-ZLUGQE5D.js → chunk-E7AJ42AB.js} +8 -8
- package/dist/{chunk-HXAWPPFW.js → chunk-F3VV6EXG.js} +9 -9
- package/dist/{chunk-3M6VLT5N.js → chunk-FVT7KTUI.js} +2 -2
- package/dist/{chunk-GW2I3JZD.js → chunk-GBDUH6DO.js} +1 -1
- package/dist/{chunk-K3OPNVFR.js → chunk-HBFU5AN3.js} +5 -9
- package/dist/{chunk-OFBDEO45.js → chunk-IRWZC3GC.js} +1 -1
- package/dist/chunk-L4KTQ6CL.js +20 -0
- package/dist/{chunk-WGVTXSYW.js → chunk-LZHLGUQI.js} +1 -1
- package/dist/{chunk-ZZMAHX22.js → chunk-PUXLPUVH.js} +15 -12
- package/dist/{chunk-7K5PT2LX.js → chunk-TXDH4FUA.js} +1 -1
- package/dist/chunk-UF53DWWR.js +0 -0
- package/dist/{chunk-AJ3EPELS.js → chunk-V34AA7C7.js} +1 -1
- package/dist/chunk-WJ6BMDL3.js +313 -0
- package/dist/{chunk-M6CZQYPY.js → chunk-Z3FWN3HJ.js} +2 -2
- package/dist/discovery/index.cjs +4 -588
- package/dist/discovery/index.js +3 -3
- package/dist/{enforce-quota.interceptor-SqrQVF91.d.cts → enforce-quota.interceptor-BhkX5nq2.d.cts} +35 -2
- package/dist/{enforce-quota.interceptor-B3CL5MSw.d.ts → enforce-quota.interceptor-CcqZc0Yu.d.ts} +35 -2
- package/dist/entitlement/index.cjs +4 -781
- package/dist/entitlement/index.js +2 -2
- package/dist/index.cjs +4 -15671
- package/dist/index.d.cts +21 -56
- package/dist/index.d.ts +21 -56
- package/dist/index.js +39 -334
- package/dist/{module-DeH_Jkcq.d.cts → module-CSN8j8Tp.d.cts} +1 -1
- package/dist/{module-B5m080F0.d.ts → module-DgYJur6f.d.ts} +1 -1
- package/dist/plan-versions.service-BB36Q1bg.d.ts +329 -0
- package/dist/plan-versions.service-CUR2Whyr.d.cts +329 -0
- package/dist/platform/index.cjs +4 -12925
- package/dist/platform/index.d.cts +17 -9
- package/dist/platform/index.d.ts +17 -9
- package/dist/platform/index.js +98 -14
- package/dist/promo/index.cjs +4 -1520
- package/dist/promo/index.d.cts +6 -21
- package/dist/promo/index.d.ts +6 -21
- package/dist/promo/index.js +2 -2
- package/dist/rate-limit.guard-dntqAlfZ.d.cts +19 -0
- package/dist/rate-limit.guard-dntqAlfZ.d.ts +19 -0
- package/dist/registration/index.cjs +4 -1655
- package/dist/registration/index.js +1 -1
- package/dist/{service-DlhMnYjW.d.ts → service-DX8KbGXl.d.cts} +1 -1
- package/dist/{service-DlhMnYjW.d.cts → service-DX8KbGXl.d.ts} +1 -1
- package/dist/setup.service-BPwJ7My_.d.cts +45 -0
- package/dist/setup.service-D2mrdDDB.d.ts +45 -0
- package/dist/subscription-bundle-preview.service-BkJXHAeP.d.cts +438 -0
- package/dist/subscription-bundle-preview.service-DBbrE_cw.d.ts +438 -0
- package/dist/subscription-contract/index.cjs +4 -471
- package/dist/subscription-contract/index.d.cts +5 -13
- package/dist/subscription-contract/index.d.ts +5 -13
- package/dist/subscription-contract.module-CG9fPKAr.d.cts +14 -0
- package/dist/subscription-contract.module-CVebZzHR.d.ts +14 -0
- package/dist/testing/index.cjs +4 -13888
- package/dist/testing/index.d.cts +5 -5
- package/dist/testing/index.d.ts +5 -5
- package/dist/testing/index.js +10 -10
- package/package.json +4 -4
- package/dist/admin-manifest.service-BMeSLRW4.d.ts +0 -33
- package/dist/admin-manifest.service-StAQe6QO.d.cts +0 -33
- package/dist/chunk-N3WANKSA.js +0 -20
package/dist/promo/index.d.cts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { PromoCodeValueType, PromoCodeDurationType, BillingCycle, PromoCodeRepository, PromoCodeRedemptionRepository } from '@saasicat/types';
|
|
2
|
-
import {
|
|
3
|
-
export {
|
|
4
|
-
|
|
5
|
-
export { P as PromoCodesModule, a as PromoCodesModuleOptions } from '../module-
|
|
2
|
+
import { f as PromoCodesService, c as PreviewResult } from '../service-DX8KbGXl.cjs';
|
|
3
|
+
export { P as PreviewInput, a as PreviewInvalid, b as PreviewReason, d as PreviewValid, e as PromoCodeStats, g as PromoServiceConfig, R as RedeemInput } from '../service-DX8KbGXl.cjs';
|
|
4
|
+
export { P as PromoCodeRateLimitGuard, h as hashIp, i as ipFingerprint } from '../rate-limit.guard-dntqAlfZ.cjs';
|
|
5
|
+
export { P as PromoCodesModule, a as PromoCodesModuleOptions } from '../module-CSN8j8Tp.cjs';
|
|
6
|
+
import { Type, CanActivate } from '@nestjs/common';
|
|
6
7
|
import '../di-CcNeq9v-.cjs';
|
|
7
8
|
|
|
8
9
|
/** Structural view of a PromoCode for the calculator functions.
|
|
@@ -46,22 +47,6 @@ declare class PromoCodeExpirer {
|
|
|
46
47
|
expirePromoCodes(): Promise<void>;
|
|
47
48
|
}
|
|
48
49
|
|
|
49
|
-
interface RequestLike$1 {
|
|
50
|
-
headers: Record<string, string | string[] | undefined>;
|
|
51
|
-
ip?: string;
|
|
52
|
-
user?: {
|
|
53
|
-
id?: string;
|
|
54
|
-
};
|
|
55
|
-
}
|
|
56
|
-
declare class PromoCodeRateLimitGuard implements CanActivate {
|
|
57
|
-
private ipBuckets;
|
|
58
|
-
private sessionBuckets;
|
|
59
|
-
canActivate(context: ExecutionContext): boolean;
|
|
60
|
-
private exceeded;
|
|
61
|
-
}
|
|
62
|
-
declare function ipFingerprint(req: RequestLike$1): string;
|
|
63
|
-
declare function hashIp(req: RequestLike$1): string;
|
|
64
|
-
|
|
65
50
|
declare const PROMO_CODE_REPOSITORY_TOKEN: unique symbol;
|
|
66
51
|
declare const PROMO_CODE_REDEMPTION_REPOSITORY_TOKEN: unique symbol;
|
|
67
52
|
declare const PROMO_CODE_VALIDATION_LOG_REPOSITORY_TOKEN: unique symbol;
|
|
@@ -135,4 +120,4 @@ declare class UpdatePromoCodeDto {
|
|
|
135
120
|
revenueDeductionAccount?: string | null;
|
|
136
121
|
}
|
|
137
122
|
|
|
138
|
-
export { CreatePromoCodeDto, PROMO_CODE_REDEMPTION_REPOSITORY_TOKEN, PROMO_CODE_REPOSITORY_TOKEN, PROMO_CODE_VALIDATION_LOG_REPOSITORY_TOKEN, PROMO_FIRST_TIME_CUSTOMER_CHECK_TOKEN, PROMO_REVENUE_DEDUCTION_AGGREGATOR_TOKEN, PROMO_SERVICE_CONFIG_TOKEN, PROMO_SUBSCRIPTION_LOOKUP_TOKEN, PROMO_TRANSACTION_RUNNER_TOKEN, PreviewPromoCodeDto, PreviewResult, PromoCodeExpirer, type PromoCodeForCalc, PromoCodePublicController,
|
|
123
|
+
export { CreatePromoCodeDto, PROMO_CODE_REDEMPTION_REPOSITORY_TOKEN, PROMO_CODE_REPOSITORY_TOKEN, PROMO_CODE_VALIDATION_LOG_REPOSITORY_TOKEN, PROMO_FIRST_TIME_CUSTOMER_CHECK_TOKEN, PROMO_REVENUE_DEDUCTION_AGGREGATOR_TOKEN, PROMO_SERVICE_CONFIG_TOKEN, PROMO_SUBSCRIPTION_LOOKUP_TOKEN, PROMO_TRANSACTION_RUNNER_TOKEN, PreviewPromoCodeDto, PreviewResult, PromoCodeExpirer, type PromoCodeForCalc, PromoCodePublicController, PromoCodesService, UpdatePromoCodeDto, addCycles, buildLabel, buildPromoCodeAdminController, computeDiscountGross, computeDiscountedGross, computeIncludedVat, computeRegularStartsAt, grossFromNet, round2 };
|
package/dist/promo/index.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { PromoCodeValueType, PromoCodeDurationType, BillingCycle, PromoCodeRepository, PromoCodeRedemptionRepository } from '@saasicat/types';
|
|
2
|
-
import {
|
|
3
|
-
export {
|
|
4
|
-
|
|
5
|
-
export { P as PromoCodesModule, a as PromoCodesModuleOptions } from '../module-
|
|
2
|
+
import { f as PromoCodesService, c as PreviewResult } from '../service-DX8KbGXl.js';
|
|
3
|
+
export { P as PreviewInput, a as PreviewInvalid, b as PreviewReason, d as PreviewValid, e as PromoCodeStats, g as PromoServiceConfig, R as RedeemInput } from '../service-DX8KbGXl.js';
|
|
4
|
+
export { P as PromoCodeRateLimitGuard, h as hashIp, i as ipFingerprint } from '../rate-limit.guard-dntqAlfZ.js';
|
|
5
|
+
export { P as PromoCodesModule, a as PromoCodesModuleOptions } from '../module-DgYJur6f.js';
|
|
6
|
+
import { Type, CanActivate } from '@nestjs/common';
|
|
6
7
|
import '../di-CcNeq9v-.js';
|
|
7
8
|
|
|
8
9
|
/** Structural view of a PromoCode for the calculator functions.
|
|
@@ -46,22 +47,6 @@ declare class PromoCodeExpirer {
|
|
|
46
47
|
expirePromoCodes(): Promise<void>;
|
|
47
48
|
}
|
|
48
49
|
|
|
49
|
-
interface RequestLike$1 {
|
|
50
|
-
headers: Record<string, string | string[] | undefined>;
|
|
51
|
-
ip?: string;
|
|
52
|
-
user?: {
|
|
53
|
-
id?: string;
|
|
54
|
-
};
|
|
55
|
-
}
|
|
56
|
-
declare class PromoCodeRateLimitGuard implements CanActivate {
|
|
57
|
-
private ipBuckets;
|
|
58
|
-
private sessionBuckets;
|
|
59
|
-
canActivate(context: ExecutionContext): boolean;
|
|
60
|
-
private exceeded;
|
|
61
|
-
}
|
|
62
|
-
declare function ipFingerprint(req: RequestLike$1): string;
|
|
63
|
-
declare function hashIp(req: RequestLike$1): string;
|
|
64
|
-
|
|
65
50
|
declare const PROMO_CODE_REPOSITORY_TOKEN: unique symbol;
|
|
66
51
|
declare const PROMO_CODE_REDEMPTION_REPOSITORY_TOKEN: unique symbol;
|
|
67
52
|
declare const PROMO_CODE_VALIDATION_LOG_REPOSITORY_TOKEN: unique symbol;
|
|
@@ -135,4 +120,4 @@ declare class UpdatePromoCodeDto {
|
|
|
135
120
|
revenueDeductionAccount?: string | null;
|
|
136
121
|
}
|
|
137
122
|
|
|
138
|
-
export { CreatePromoCodeDto, PROMO_CODE_REDEMPTION_REPOSITORY_TOKEN, PROMO_CODE_REPOSITORY_TOKEN, PROMO_CODE_VALIDATION_LOG_REPOSITORY_TOKEN, PROMO_FIRST_TIME_CUSTOMER_CHECK_TOKEN, PROMO_REVENUE_DEDUCTION_AGGREGATOR_TOKEN, PROMO_SERVICE_CONFIG_TOKEN, PROMO_SUBSCRIPTION_LOOKUP_TOKEN, PROMO_TRANSACTION_RUNNER_TOKEN, PreviewPromoCodeDto, PreviewResult, PromoCodeExpirer, type PromoCodeForCalc, PromoCodePublicController,
|
|
123
|
+
export { CreatePromoCodeDto, PROMO_CODE_REDEMPTION_REPOSITORY_TOKEN, PROMO_CODE_REPOSITORY_TOKEN, PROMO_CODE_VALIDATION_LOG_REPOSITORY_TOKEN, PROMO_FIRST_TIME_CUSTOMER_CHECK_TOKEN, PROMO_REVENUE_DEDUCTION_AGGREGATOR_TOKEN, PROMO_SERVICE_CONFIG_TOKEN, PROMO_SUBSCRIPTION_LOOKUP_TOKEN, PROMO_TRANSACTION_RUNNER_TOKEN, PreviewPromoCodeDto, PreviewResult, PromoCodeExpirer, type PromoCodeForCalc, PromoCodePublicController, PromoCodesService, UpdatePromoCodeDto, addCycles, buildLabel, buildPromoCodeAdminController, computeDiscountGross, computeDiscountedGross, computeIncludedVat, computeRegularStartsAt, grossFromNet, round2 };
|
package/dist/promo/index.js
CHANGED
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
buildPromoCodeAdminController,
|
|
11
11
|
hashIp,
|
|
12
12
|
ipFingerprint
|
|
13
|
-
} from "../chunk-
|
|
13
|
+
} from "../chunk-IRWZC3GC.js";
|
|
14
14
|
import {
|
|
15
15
|
PROMO_CODE_REDEMPTION_REPOSITORY_TOKEN,
|
|
16
16
|
PROMO_CODE_REPOSITORY_TOKEN,
|
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
computeDiscountGross,
|
|
27
27
|
computeDiscountedGross,
|
|
28
28
|
computeRegularStartsAt
|
|
29
|
-
} from "../chunk-
|
|
29
|
+
} from "../chunk-E7AJ42AB.js";
|
|
30
30
|
import "../chunk-E56W4U2P.js";
|
|
31
31
|
import {
|
|
32
32
|
computeIncludedVat,
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { CanActivate, ExecutionContext } from '@nestjs/common';
|
|
2
|
+
|
|
3
|
+
interface RequestLike {
|
|
4
|
+
headers: Record<string, string | string[] | undefined>;
|
|
5
|
+
ip?: string;
|
|
6
|
+
user?: {
|
|
7
|
+
id?: string;
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
declare class PromoCodeRateLimitGuard implements CanActivate {
|
|
11
|
+
private ipBuckets;
|
|
12
|
+
private sessionBuckets;
|
|
13
|
+
canActivate(context: ExecutionContext): boolean;
|
|
14
|
+
private exceeded;
|
|
15
|
+
}
|
|
16
|
+
declare function ipFingerprint(req: RequestLike): string;
|
|
17
|
+
declare function hashIp(req: RequestLike): string;
|
|
18
|
+
|
|
19
|
+
export { PromoCodeRateLimitGuard as P, hashIp as h, ipFingerprint as i };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { CanActivate, ExecutionContext } from '@nestjs/common';
|
|
2
|
+
|
|
3
|
+
interface RequestLike {
|
|
4
|
+
headers: Record<string, string | string[] | undefined>;
|
|
5
|
+
ip?: string;
|
|
6
|
+
user?: {
|
|
7
|
+
id?: string;
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
declare class PromoCodeRateLimitGuard implements CanActivate {
|
|
11
|
+
private ipBuckets;
|
|
12
|
+
private sessionBuckets;
|
|
13
|
+
canActivate(context: ExecutionContext): boolean;
|
|
14
|
+
private exceeded;
|
|
15
|
+
}
|
|
16
|
+
declare function ipFingerprint(req: RequestLike): string;
|
|
17
|
+
declare function hashIp(req: RequestLike): string;
|
|
18
|
+
|
|
19
|
+
export { PromoCodeRateLimitGuard as P, hashIp as h, ipFingerprint as i };
|