cecon-interfaces 1.0.84 → 1.0.85
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/esm2022/subscription/entities/index.mjs +2 -2
- package/dist/esm2022/subscription/entities/subscription-log.entity.mjs +19 -0
- package/dist/esm2022/subscription/entities/subscription.entity.mjs +18 -15
- package/dist/esm2022/subscription/interfaces/i-subscription-log.mjs +2 -0
- package/dist/esm2022/subscription/interfaces/i-subscription.mjs +1 -1
- package/dist/esm2022/subscription/interfaces/index.mjs +1 -1
- package/dist/fesm2022/cecon-interfaces.mjs +22 -21
- package/dist/fesm2022/cecon-interfaces.mjs.map +1 -1
- package/dist/package.json +1 -1
- package/dist/subscription/entities/index.d.ts +1 -1
- package/dist/subscription/entities/index.js +2 -2
- package/dist/subscription/entities/subscription-log.entity.d.ts +8 -0
- package/dist/subscription/entities/subscription-log.entity.js +23 -0
- package/dist/subscription/entities/subscription.entity.d.ts +13 -9
- package/dist/subscription/entities/subscription.entity.js +15 -12
- package/dist/subscription/interfaces/i-subscription-log.d.ts +6 -0
- package/dist/subscription/interfaces/i-subscription.d.ts +9 -5
- package/dist/subscription/interfaces/index.d.ts +1 -1
- package/package.json +1 -1
- package/dist/esm2022/subscription/entities/subscription-invoice-history.entity.mjs +0 -22
- package/dist/esm2022/subscription/interfaces/i-subscription-invoice-history.mjs +0 -2
- package/dist/subscription/entities/subscription-invoice-history.entity.d.ts +0 -11
- package/dist/subscription/entities/subscription-invoice-history.entity.js +0 -26
- package/dist/subscription/interfaces/i-subscription-invoice-history.d.ts +0 -9
- /package/dist/subscription/interfaces/{i-subscription-invoice-history.js → i-subscription-log.js} +0 -0
package/dist/package.json
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
export { SubscriptionInvoiceHistoryEntity } from './subscription-
|
1
|
+
export { SubscriptionLogEntity as SubscriptionInvoiceHistoryEntity } from './subscription-log.entity';
|
2
2
|
export { SubscriptionEntity } from './subscription.entity';
|
@@ -1,7 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.SubscriptionEntity = exports.SubscriptionInvoiceHistoryEntity = void 0;
|
4
|
-
var
|
5
|
-
Object.defineProperty(exports, "SubscriptionInvoiceHistoryEntity", { enumerable: true, get: function () { return
|
4
|
+
var subscription_log_entity_1 = require("./subscription-log.entity");
|
5
|
+
Object.defineProperty(exports, "SubscriptionInvoiceHistoryEntity", { enumerable: true, get: function () { return subscription_log_entity_1.SubscriptionLogEntity; } });
|
6
6
|
var subscription_entity_1 = require("./subscription.entity");
|
7
7
|
Object.defineProperty(exports, "SubscriptionEntity", { enumerable: true, get: function () { return subscription_entity_1.SubscriptionEntity; } });
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import { ISubscriptionLog } from "../interfaces/i-subscription-log";
|
2
|
+
export declare class SubscriptionLogEntity implements ISubscriptionLog {
|
3
|
+
createdAt: Date;
|
4
|
+
description: string;
|
5
|
+
id: string;
|
6
|
+
notes: string;
|
7
|
+
constructor(data?: Partial<SubscriptionLogEntity>);
|
8
|
+
}
|
@@ -0,0 +1,23 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.SubscriptionLogEntity = void 0;
|
4
|
+
var SubscriptionLogEntity = /** @class */ (function () {
|
5
|
+
// #endregion Properties (4)
|
6
|
+
// #region Constructors (1)
|
7
|
+
function SubscriptionLogEntity(data) {
|
8
|
+
// #region Properties (4)
|
9
|
+
this.createdAt = new Date();
|
10
|
+
this.description = "";
|
11
|
+
this.id = "";
|
12
|
+
this.notes = "";
|
13
|
+
if (data) {
|
14
|
+
for (var key in data) {
|
15
|
+
if (data.hasOwnProperty(key) && key in this) {
|
16
|
+
this[key] = data[key];
|
17
|
+
}
|
18
|
+
}
|
19
|
+
}
|
20
|
+
}
|
21
|
+
return SubscriptionLogEntity;
|
22
|
+
}());
|
23
|
+
exports.SubscriptionLogEntity = SubscriptionLogEntity;
|
@@ -1,22 +1,26 @@
|
|
1
|
-
import {
|
2
|
-
import {
|
3
|
-
import {
|
4
|
-
import {
|
1
|
+
import { FeatureEntity } from "../../feature";
|
2
|
+
import { IntervalTypeEnum } from "../../general";
|
3
|
+
import { SubscriptionStatusEnum } from "../enums";
|
4
|
+
import { ISubscription } from "../interfaces/i-subscription";
|
5
|
+
import { SubscriptionLogEntity } from "./subscription-log.entity";
|
5
6
|
export declare class SubscriptionEntity implements ISubscription {
|
6
7
|
cancellationReason: string;
|
7
|
-
createdAt: Date;
|
8
8
|
companyId: string;
|
9
9
|
containerId: string | null;
|
10
|
-
|
11
|
-
|
10
|
+
createdAt: Date;
|
11
|
+
expiresAt: Date;
|
12
|
+
features: FeatureEntity[];
|
12
13
|
id: string;
|
13
14
|
interval: number;
|
14
15
|
intervalType: IntervalTypeEnum;
|
15
|
-
|
16
|
+
logs: SubscriptionLogEntity[];
|
16
17
|
notes: string;
|
18
|
+
partnerId: string | null;
|
17
19
|
planId: string;
|
20
|
+
planName: string;
|
18
21
|
renewPaymentDate: Date;
|
19
|
-
|
22
|
+
renovatedAt: Date;
|
23
|
+
startsAt: Date;
|
20
24
|
status: SubscriptionStatusEnum;
|
21
25
|
updatedAt: Date;
|
22
26
|
constructor(data?: Partial<SubscriptionEntity>);
|
@@ -4,24 +4,27 @@ exports.SubscriptionEntity = void 0;
|
|
4
4
|
var general_1 = require("../../general");
|
5
5
|
var enums_1 = require("../enums");
|
6
6
|
var SubscriptionEntity = /** @class */ (function () {
|
7
|
-
// #endregion Properties (
|
7
|
+
// #endregion Properties (19)
|
8
8
|
// #region Constructors (1)
|
9
9
|
function SubscriptionEntity(data) {
|
10
|
-
// #region Properties (
|
11
|
-
this.cancellationReason =
|
10
|
+
// #region Properties (19)
|
11
|
+
this.cancellationReason = "";
|
12
|
+
this.companyId = "";
|
13
|
+
this.containerId = "";
|
12
14
|
this.createdAt = new Date();
|
13
|
-
this.
|
14
|
-
this.
|
15
|
-
this.
|
16
|
-
this.endDate = new Date();
|
17
|
-
this.id = '';
|
15
|
+
this.expiresAt = new Date();
|
16
|
+
this.features = [];
|
17
|
+
this.id = "";
|
18
18
|
this.interval = 0;
|
19
19
|
this.intervalType = general_1.IntervalTypeEnum.MONTHS;
|
20
|
-
this.
|
21
|
-
this.notes =
|
22
|
-
this.
|
20
|
+
this.logs = [];
|
21
|
+
this.notes = "";
|
22
|
+
this.partnerId = "";
|
23
|
+
this.planId = "";
|
24
|
+
this.planName = "";
|
23
25
|
this.renewPaymentDate = new Date();
|
24
|
-
this.
|
26
|
+
this.renovatedAt = new Date();
|
27
|
+
this.startsAt = new Date();
|
25
28
|
this.status = enums_1.SubscriptionStatusEnum.PENDING;
|
26
29
|
this.updatedAt = new Date();
|
27
30
|
if (data) {
|
@@ -1,21 +1,25 @@
|
|
1
|
+
import { IFeature } from "../../feature";
|
1
2
|
import { IntervalTypeEnum } from "../../general";
|
2
3
|
import { SubscriptionStatusEnum } from "../enums";
|
3
|
-
import {
|
4
|
+
import { ISubscriptionLog } from "./i-subscription-log";
|
4
5
|
export interface ISubscription {
|
5
6
|
cancellationReason: string;
|
6
7
|
companyId: string;
|
7
8
|
containerId: string | null;
|
8
|
-
partnerId: string | null;
|
9
9
|
createdAt: Date;
|
10
|
-
|
10
|
+
expiresAt: Date;
|
11
|
+
features: IFeature[];
|
11
12
|
id: string;
|
12
13
|
interval: number;
|
13
14
|
intervalType: IntervalTypeEnum;
|
14
|
-
|
15
|
+
logs: ISubscriptionLog[];
|
15
16
|
notes: string;
|
17
|
+
partnerId: string | null;
|
16
18
|
planId: string;
|
19
|
+
planName: string;
|
17
20
|
renewPaymentDate: Date;
|
18
|
-
|
21
|
+
renovatedAt: Date;
|
22
|
+
startsAt: Date;
|
19
23
|
status: SubscriptionStatusEnum;
|
20
24
|
updatedAt: Date;
|
21
25
|
}
|
@@ -1,2 +1,2 @@
|
|
1
1
|
export { ISubscription } from './i-subscription';
|
2
|
-
export { ISubscriptionInvoiceHistory } from './i-subscription-
|
2
|
+
export { ISubscriptionLog as ISubscriptionInvoiceHistory } from './i-subscription-log';
|
package/package.json
CHANGED
@@ -1,22 +0,0 @@
|
|
1
|
-
import { OrderStatusEnum } from '../../order';
|
2
|
-
export class SubscriptionInvoiceHistoryEntity {
|
3
|
-
// #region Properties (6)
|
4
|
-
amount = 0;
|
5
|
-
createdAt = new Date();
|
6
|
-
dueDate = new Date();
|
7
|
-
invoiceId = '';
|
8
|
-
paidDate = new Date();
|
9
|
-
status = OrderStatusEnum.PENDING;
|
10
|
-
// #endregion Properties (6)
|
11
|
-
// #region Constructors (1)
|
12
|
-
constructor(data) {
|
13
|
-
if (data) {
|
14
|
-
for (let key in data) {
|
15
|
-
if (data.hasOwnProperty(key) && key in this) {
|
16
|
-
this[key] = data[key];
|
17
|
-
}
|
18
|
-
}
|
19
|
-
}
|
20
|
-
}
|
21
|
-
}
|
22
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3Vic2NyaXB0aW9uLWludm9pY2UtaGlzdG9yeS5lbnRpdHkuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9zcmMvc3Vic2NyaXB0aW9uL2VudGl0aWVzL3N1YnNjcmlwdGlvbi1pbnZvaWNlLWhpc3RvcnkuZW50aXR5LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxlQUFlLEVBQUUsTUFBTSxhQUFhLENBQUM7QUFHOUMsTUFBTSxPQUFPLGdDQUFnQztJQUN6Qyx5QkFBeUI7SUFFbEIsTUFBTSxHQUFXLENBQUMsQ0FBQztJQUNuQixTQUFTLEdBQVMsSUFBSSxJQUFJLEVBQUUsQ0FBQztJQUM3QixPQUFPLEdBQVMsSUFBSSxJQUFJLEVBQUUsQ0FBQztJQUMzQixTQUFTLEdBQVcsRUFBRSxDQUFDO0lBQ3ZCLFFBQVEsR0FBUyxJQUFJLElBQUksRUFBRSxDQUFDO0lBQzVCLE1BQU0s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ilcblxuICAgIGludm9pY2VJZDogc3RyaW5nO1xuICAgIGFtb3VudDogbnVtYmVyO1xuICAgIGNyZWF0ZWRBdDogRGF0ZTtcbiAgICBkdWVEYXRlOiBEYXRlO1xuICAgIHBhaWREYXRlOiBEYXRlO1xuICAgIHN0YXR1czogT3JkZXJTdGF0dXNFbnVtO1xuXG4gICAgLy8gI2VuZHJlZ2lvbiBQcm9wZXJ0aWVzICgxNilcbn1cbiJdfQ==
|
@@ -1,11 +0,0 @@
|
|
1
|
-
import { OrderStatusEnum } from '../../order';
|
2
|
-
import { ISubscriptionInvoiceHistory } from '../interfaces/i-subscription-invoice-history';
|
3
|
-
export declare class SubscriptionInvoiceHistoryEntity implements ISubscriptionInvoiceHistory {
|
4
|
-
amount: number;
|
5
|
-
createdAt: Date;
|
6
|
-
dueDate: Date;
|
7
|
-
invoiceId: string;
|
8
|
-
paidDate: Date;
|
9
|
-
status: OrderStatusEnum;
|
10
|
-
constructor(data?: Partial<SubscriptionInvoiceHistoryEntity>);
|
11
|
-
}
|
@@ -1,26 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.SubscriptionInvoiceHistoryEntity = void 0;
|
4
|
-
var order_1 = require("../../order");
|
5
|
-
var SubscriptionInvoiceHistoryEntity = /** @class */ (function () {
|
6
|
-
// #endregion Properties (6)
|
7
|
-
// #region Constructors (1)
|
8
|
-
function SubscriptionInvoiceHistoryEntity(data) {
|
9
|
-
// #region Properties (6)
|
10
|
-
this.amount = 0;
|
11
|
-
this.createdAt = new Date();
|
12
|
-
this.dueDate = new Date();
|
13
|
-
this.invoiceId = '';
|
14
|
-
this.paidDate = new Date();
|
15
|
-
this.status = order_1.OrderStatusEnum.PENDING;
|
16
|
-
if (data) {
|
17
|
-
for (var key in data) {
|
18
|
-
if (data.hasOwnProperty(key) && key in this) {
|
19
|
-
this[key] = data[key];
|
20
|
-
}
|
21
|
-
}
|
22
|
-
}
|
23
|
-
}
|
24
|
-
return SubscriptionInvoiceHistoryEntity;
|
25
|
-
}());
|
26
|
-
exports.SubscriptionInvoiceHistoryEntity = SubscriptionInvoiceHistoryEntity;
|
/package/dist/subscription/interfaces/{i-subscription-invoice-history.js → i-subscription-log.js}
RENAMED
File without changes
|