@saasicat/nest 0.26.1 → 0.27.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/LICENSE +90 -201
- package/dist/_entries.cjs +3265 -2846
- package/dist/billing/index.d.cts +4 -4
- package/dist/billing/index.d.ts +4 -4
- package/dist/billing/index.js +29 -27
- package/dist/chunk-2FR6ZL7R.js +0 -0
- package/dist/chunk-2JTISFUZ.js +792 -0
- package/dist/chunk-2SLTRKXC.js +0 -0
- package/dist/chunk-3E6ONOMG.js +50 -0
- package/dist/{chunk-B7NRY2LV.js → chunk-CJFAOD7K.js} +1 -39
- package/dist/{chunk-TCBYOFAC.js → chunk-EHKMPP6J.js} +1164 -745
- package/dist/{chunk-NNNXXUPT.js → chunk-F4B2NJUZ.js} +23 -88
- package/dist/chunk-H4DOTO7S.js +85 -0
- package/dist/{chunk-YWDLYOFN.js → chunk-UHD6FJBQ.js} +412 -1188
- package/dist/{define-saasicat-BK6RRWWG.d.ts → define-saasicat-3ois8t8s.d.ts} +26 -3
- package/dist/{define-saasicat-D30I-WET.d.cts → define-saasicat-CFxut1VR.d.cts} +26 -3
- package/dist/{enforce-quota.interceptor-B9QueAFf.d.ts → enforce-quota.interceptor-CYDNvAQz.d.ts} +3 -3
- package/dist/{enforce-quota.interceptor-DY6CLjoP.d.cts → enforce-quota.interceptor-N80KC34N.d.cts} +3 -3
- package/dist/entitlement/index.js +5 -2
- package/dist/index.d.cts +5 -5
- package/dist/index.d.ts +5 -5
- package/dist/index.js +39 -31
- package/dist/{saas-platform.module-D1mUZPrz.d.ts → module-options-ByJL7FZm.d.ts} +40 -27
- package/dist/{saas-platform.module-CgalxzcT.d.cts → module-options-klrPnWGF.d.cts} +40 -27
- package/dist/platform/index.d.cts +201 -19
- package/dist/platform/index.d.ts +201 -19
- package/dist/platform/index.js +34 -9
- package/dist/subscription-contract/index.js +5 -2
- package/dist/{tenant-billing.controller-DHSUrT_N.d.cts → tenant-billing.controller-CAMMdfn1.d.cts} +1 -1
- package/dist/{tenant-billing.controller-BSlpFqVA.d.ts → tenant-billing.controller-CYYK0CpT.d.ts} +1 -1
- package/dist/{subscription-bundles.module-BDbODWvA.d.ts → tenant-billing.module-B0stLoJn.d.ts} +51 -51
- package/dist/{subscription-bundles.module-Cfi-lFWF.d.cts → tenant-billing.module-BxJS6fX4.d.cts} +51 -51
- package/dist/testing/index.d.cts +8 -8
- package/dist/testing/index.d.ts +8 -8
- package/dist/testing/index.js +6 -4
- package/package.json +4 -4
- /package/dist/{chunk-FY4EJTV4.js → chunk-OYNHOY45.js} +0 -0
|
File without changes
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import {
|
|
2
|
+
SubscriptionContractService
|
|
3
|
+
} from "./chunk-CJFAOD7K.js";
|
|
4
|
+
import {
|
|
5
|
+
SUBSCRIPTION_CONTRACT_REPOSITORY_TOKEN
|
|
6
|
+
} from "./chunk-NYLON2VC.js";
|
|
7
|
+
import {
|
|
8
|
+
asProvider
|
|
9
|
+
} from "./chunk-SABTXESR.js";
|
|
10
|
+
import {
|
|
11
|
+
__name
|
|
12
|
+
} from "./chunk-SHUYVCID.js";
|
|
13
|
+
|
|
14
|
+
// src/subscription-contract/subscription-contract.module.ts
|
|
15
|
+
import { Module } from "@nestjs/common";
|
|
16
|
+
function _ts_decorate(decorators, target, key, desc) {
|
|
17
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
18
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
19
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
20
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
21
|
+
}
|
|
22
|
+
__name(_ts_decorate, "_ts_decorate");
|
|
23
|
+
var SubscriptionContractModule = class _SubscriptionContractModule {
|
|
24
|
+
static {
|
|
25
|
+
__name(this, "SubscriptionContractModule");
|
|
26
|
+
}
|
|
27
|
+
static forRoot(options) {
|
|
28
|
+
return {
|
|
29
|
+
module: _SubscriptionContractModule,
|
|
30
|
+
global: options.global ?? false,
|
|
31
|
+
imports: options.imports ?? [],
|
|
32
|
+
providers: [
|
|
33
|
+
asProvider(SUBSCRIPTION_CONTRACT_REPOSITORY_TOKEN, options.subscriptionContractRepository),
|
|
34
|
+
SubscriptionContractService,
|
|
35
|
+
...options.extraProviders ?? []
|
|
36
|
+
],
|
|
37
|
+
exports: [
|
|
38
|
+
SubscriptionContractService,
|
|
39
|
+
SUBSCRIPTION_CONTRACT_REPOSITORY_TOKEN
|
|
40
|
+
]
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
SubscriptionContractModule = _ts_decorate([
|
|
45
|
+
Module({})
|
|
46
|
+
], SubscriptionContractModule);
|
|
47
|
+
|
|
48
|
+
export {
|
|
49
|
+
SubscriptionContractModule
|
|
50
|
+
};
|
|
@@ -4,9 +4,6 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
SUBSCRIPTION_CONTRACT_REPOSITORY_TOKEN
|
|
6
6
|
} from "./chunk-NYLON2VC.js";
|
|
7
|
-
import {
|
|
8
|
-
asProvider
|
|
9
|
-
} from "./chunk-SABTXESR.js";
|
|
10
7
|
import {
|
|
11
8
|
__name
|
|
12
9
|
} from "./chunk-SHUYVCID.js";
|
|
@@ -336,44 +333,9 @@ function lineItemKindPriority(kind) {
|
|
|
336
333
|
}
|
|
337
334
|
__name(lineItemKindPriority, "lineItemKindPriority");
|
|
338
335
|
|
|
339
|
-
// src/subscription-contract/subscription-contract.module.ts
|
|
340
|
-
import { Module } from "@nestjs/common";
|
|
341
|
-
function _ts_decorate2(decorators, target, key, desc) {
|
|
342
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
343
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
344
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
345
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
346
|
-
}
|
|
347
|
-
__name(_ts_decorate2, "_ts_decorate");
|
|
348
|
-
var SubscriptionContractModule = class _SubscriptionContractModule {
|
|
349
|
-
static {
|
|
350
|
-
__name(this, "SubscriptionContractModule");
|
|
351
|
-
}
|
|
352
|
-
static forRoot(options) {
|
|
353
|
-
return {
|
|
354
|
-
module: _SubscriptionContractModule,
|
|
355
|
-
global: options.global ?? false,
|
|
356
|
-
imports: options.imports ?? [],
|
|
357
|
-
providers: [
|
|
358
|
-
asProvider(SUBSCRIPTION_CONTRACT_REPOSITORY_TOKEN, options.subscriptionContractRepository),
|
|
359
|
-
SubscriptionContractService,
|
|
360
|
-
...options.extraProviders ?? []
|
|
361
|
-
],
|
|
362
|
-
exports: [
|
|
363
|
-
SubscriptionContractService,
|
|
364
|
-
SUBSCRIPTION_CONTRACT_REPOSITORY_TOKEN
|
|
365
|
-
]
|
|
366
|
-
};
|
|
367
|
-
}
|
|
368
|
-
};
|
|
369
|
-
SubscriptionContractModule = _ts_decorate2([
|
|
370
|
-
Module({})
|
|
371
|
-
], SubscriptionContractModule);
|
|
372
|
-
|
|
373
336
|
export {
|
|
374
337
|
SubscriptionContractService,
|
|
375
338
|
contractLineItemToInvoiceLineItem,
|
|
376
339
|
subscriptionContractToInvoiceSnapshot,
|
|
377
|
-
sortContractLineItemsForInvoice
|
|
378
|
-
SubscriptionContractModule
|
|
340
|
+
sortContractLineItemsForInvoice
|
|
379
341
|
};
|