cecon-interfaces 1.0.75 → 1.0.77
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/esm2022/feature/entities/feature.entity.mjs +25 -0
- package/dist/esm2022/feature/entities/index.mjs +2 -0
- package/dist/esm2022/feature/index.mjs +3 -0
- package/dist/esm2022/feature/interfaces/i-feature.mjs +2 -0
- package/dist/esm2022/feature/interfaces/index.mjs +2 -0
- package/dist/esm2022/general/enums/index.mjs +2 -1
- package/dist/esm2022/general/enums/payment-status.enum.mjs +13 -0
- package/dist/esm2022/index.mjs +4 -1
- package/dist/esm2022/installation/entities/installation.entity.mjs +8 -9
- package/dist/esm2022/installation/interfaces/i-installation.mjs +1 -1
- package/dist/esm2022/invoice/entities/index.mjs +4 -0
- package/dist/esm2022/invoice/entities/invoice-item.entity.mjs +23 -0
- package/dist/esm2022/invoice/entities/invoice-payment-method.entity.mjs +31 -0
- package/dist/esm2022/invoice/entities/invoice.entity.mjs +32 -0
- package/dist/esm2022/invoice/enums/index.mjs +2 -0
- package/dist/esm2022/invoice/enums/invoices-status.enum.mjs +14 -0
- package/dist/esm2022/invoice/index.mjs +4 -0
- package/dist/esm2022/invoice/interfaces/i-invoice-item.mjs +2 -0
- package/dist/esm2022/invoice/interfaces/i-invoice-payment-method.mjs +2 -0
- package/dist/esm2022/invoice/interfaces/i-invoice.mjs +2 -0
- package/dist/esm2022/invoice/interfaces/index.mjs +2 -0
- package/dist/esm2022/subscription/entities/index.mjs +3 -0
- package/dist/esm2022/subscription/entities/subscription-invoice-history.entity.mjs +22 -0
- package/dist/esm2022/subscription/entities/subscription.entity.mjs +32 -0
- package/dist/esm2022/subscription/enums/index.mjs +2 -0
- package/dist/esm2022/subscription/enums/subscription-status.enum.mjs +15 -0
- package/dist/esm2022/subscription/index.mjs +4 -0
- package/dist/esm2022/subscription/interfaces/i-subscription-invoice-history.mjs +2 -0
- package/dist/esm2022/subscription/interfaces/i-subscription.mjs +2 -0
- package/dist/esm2022/subscription/interfaces/index.mjs +2 -0
- package/dist/feature/entities/feature.entity.d.ts +15 -0
- package/dist/feature/entities/feature.entity.js +29 -0
- package/dist/feature/entities/index.d.ts +1 -0
- package/dist/feature/entities/index.js +5 -0
- package/dist/feature/index.d.ts +2 -0
- package/dist/feature/index.js +18 -0
- package/dist/feature/interfaces/i-feature.d.ts +13 -0
- package/dist/feature/interfaces/i-feature.js +2 -0
- package/dist/feature/interfaces/index.d.ts +1 -0
- package/dist/feature/interfaces/index.js +2 -0
- package/dist/fesm2022/cecon-interfaces.mjs +210 -9
- package/dist/fesm2022/cecon-interfaces.mjs.map +1 -1
- package/dist/general/enums/index.d.ts +1 -0
- package/dist/general/enums/index.js +3 -1
- package/dist/general/enums/payment-status.enum.d.ts +11 -0
- package/dist/general/enums/payment-status.enum.js +15 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +3 -0
- package/dist/installation/entities/installation.entity.d.ts +5 -6
- package/dist/installation/entities/installation.entity.js +7 -8
- package/dist/installation/interfaces/i-installation.d.ts +5 -6
- package/dist/invoice/entities/index.d.ts +3 -0
- package/dist/invoice/entities/index.js +9 -0
- package/dist/invoice/entities/invoice-item.entity.d.ts +12 -0
- package/dist/invoice/entities/invoice-item.entity.js +27 -0
- package/dist/invoice/entities/invoice-payment-method.entity.d.ts +20 -0
- package/dist/invoice/entities/invoice-payment-method.entity.js +35 -0
- package/dist/invoice/entities/invoice.entity.d.ts +23 -0
- package/dist/invoice/entities/invoice.entity.js +36 -0
- package/dist/invoice/enums/index.d.ts +1 -0
- package/dist/invoice/enums/index.js +5 -0
- package/dist/invoice/enums/invoices-status.enum.d.ts +12 -0
- package/dist/invoice/enums/invoices-status.enum.js +16 -0
- package/dist/invoice/index.d.ts +3 -0
- package/dist/invoice/index.js +19 -0
- package/dist/invoice/interfaces/i-invoice-item.d.ts +10 -0
- package/dist/invoice/interfaces/i-invoice-item.js +2 -0
- package/dist/invoice/interfaces/i-invoice-payment-method.d.ts +18 -0
- package/dist/invoice/interfaces/i-invoice-payment-method.js +2 -0
- package/dist/invoice/interfaces/i-invoice.d.ts +21 -0
- package/dist/invoice/interfaces/i-invoice.js +2 -0
- package/dist/invoice/interfaces/index.d.ts +3 -0
- package/dist/invoice/interfaces/index.js +2 -0
- package/dist/package.json +1 -1
- package/dist/subscription/entities/index.d.ts +2 -0
- package/dist/subscription/entities/index.js +7 -0
- package/dist/subscription/entities/subscription-invoice-history.entity.d.ts +11 -0
- package/dist/subscription/entities/subscription-invoice-history.entity.js +26 -0
- package/dist/subscription/entities/subscription.entity.d.ts +22 -0
- package/dist/subscription/entities/subscription.entity.js +36 -0
- package/dist/subscription/enums/index.d.ts +1 -0
- package/dist/subscription/enums/index.js +5 -0
- package/dist/subscription/enums/subscription-status.enum.d.ts +13 -0
- package/dist/subscription/enums/subscription-status.enum.js +17 -0
- package/dist/subscription/index.d.ts +3 -0
- package/dist/subscription/index.js +19 -0
- package/dist/subscription/interfaces/i-subscription-invoice-history.d.ts +9 -0
- package/dist/subscription/interfaces/i-subscription-invoice-history.js +2 -0
- package/dist/subscription/interfaces/i-subscription.d.ts +20 -0
- package/dist/subscription/interfaces/i-subscription.js +2 -0
- package/dist/subscription/interfaces/index.d.ts +2 -0
- package/dist/subscription/interfaces/index.js +2 -0
- package/package.json +1 -1
@@ -0,0 +1,17 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.SubscriptionStatusEnum = void 0;
|
4
|
+
var SubscriptionStatusEnum;
|
5
|
+
(function (SubscriptionStatusEnum) {
|
6
|
+
SubscriptionStatusEnum["ACTIVE"] = "ACTIVE";
|
7
|
+
SubscriptionStatusEnum["CANCELLED"] = "CANCELLED";
|
8
|
+
SubscriptionStatusEnum["EXPIRED"] = "EXPIRED";
|
9
|
+
SubscriptionStatusEnum["PENDING"] = "PENDING";
|
10
|
+
SubscriptionStatusEnum["PENDING_PAYMENT"] = "PENDING_PAYMENT";
|
11
|
+
SubscriptionStatusEnum["PENDING_RENEWAL"] = "PENDING_RENEWAL";
|
12
|
+
SubscriptionStatusEnum["TRIAL"] = "TRIAL";
|
13
|
+
SubscriptionStatusEnum["FREE"] = "FREE";
|
14
|
+
SubscriptionStatusEnum["FREE_TRIAL"] = "FREE_TRIAL";
|
15
|
+
SubscriptionStatusEnum["FREE_TRIAL_EXPIRED"] = "FREE_TRIAL_EXPIRED";
|
16
|
+
SubscriptionStatusEnum["SUSPENDED"] = "SUSPENDED";
|
17
|
+
})(SubscriptionStatusEnum || (exports.SubscriptionStatusEnum = SubscriptionStatusEnum = {}));
|
@@ -0,0 +1,19 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
|
+
if (k2 === undefined) k2 = k;
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
7
|
+
}
|
8
|
+
Object.defineProperty(o, k2, desc);
|
9
|
+
}) : (function(o, m, k, k2) {
|
10
|
+
if (k2 === undefined) k2 = k;
|
11
|
+
o[k2] = m[k];
|
12
|
+
}));
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
15
|
+
};
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
17
|
+
__exportStar(require("./entities"), exports);
|
18
|
+
__exportStar(require("./enums"), exports);
|
19
|
+
__exportStar(require("./interfaces"), exports);
|
@@ -0,0 +1,20 @@
|
|
1
|
+
import { IntervalTypeEnum } from '../../general';
|
2
|
+
import { SubscriptionStatusEnum } from '../enums';
|
3
|
+
import { ISubscriptionInvoiceHistory } from './i-subscription-invoice-history';
|
4
|
+
export interface ISubscription {
|
5
|
+
cancellationReason: string;
|
6
|
+
createdAt: Date;
|
7
|
+
customerId: string;
|
8
|
+
endDate: Date;
|
9
|
+
trialEndDate: Date;
|
10
|
+
id: string;
|
11
|
+
interval: number;
|
12
|
+
intervalType: IntervalTypeEnum;
|
13
|
+
notes: string;
|
14
|
+
invoiceHistory: ISubscriptionInvoiceHistory[];
|
15
|
+
planId: string;
|
16
|
+
renewPaymentDate: Date;
|
17
|
+
startDate: Date;
|
18
|
+
status: SubscriptionStatusEnum;
|
19
|
+
updatedAt: Date;
|
20
|
+
}
|