cecon-interfaces 1.0.85 → 1.0.89
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/esm2022/general/entities/custom-variable.entity.mjs +17 -0
- package/dist/esm2022/general/entities/index.mjs +2 -1
- package/dist/esm2022/general/interfaces/i-custom-variable.mjs +3 -0
- package/dist/esm2022/general/interfaces/index.mjs +1 -1
- package/dist/esm2022/invoice/entities/invoice-item.entity.mjs +3 -3
- package/dist/esm2022/invoice/entities/invoice.entity.mjs +12 -7
- package/dist/esm2022/invoice/interfaces/i-invoice-item.mjs +1 -1
- package/dist/esm2022/invoice/interfaces/i-invoice.mjs +1 -1
- package/dist/esm2022/iugu/entities/index.mjs +2 -1
- package/dist/esm2022/iugu/entities/invoice.entity.mjs +129 -0
- package/dist/esm2022/iugu/interfaces/i-invoice.mjs +2 -0
- package/dist/esm2022/iugu/interfaces/index.mjs +1 -1
- package/dist/esm2022/plan/interfaces/i-plan.mjs +1 -1
- package/dist/esm2022/subscription/entities/index.mjs +3 -2
- package/dist/esm2022/subscription/entities/subscription-item.entity.mjs +20 -0
- package/dist/esm2022/subscription/entities/subscription.entity.mjs +6 -3
- package/dist/esm2022/subscription/interfaces/i-subscription-item.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 +185 -11
- package/dist/fesm2022/cecon-interfaces.mjs.map +1 -1
- package/dist/general/entities/custom-variable.entity.d.ts +5 -0
- package/dist/general/entities/custom-variable.entity.js +21 -0
- package/dist/general/entities/index.d.ts +1 -0
- package/dist/general/entities/index.js +3 -1
- package/dist/general/interfaces/i-custom-variable.d.ts +4 -0
- package/dist/general/interfaces/i-custom-variable.js +3 -0
- package/dist/general/interfaces/index.d.ts +1 -0
- package/dist/invoice/entities/invoice-item.entity.d.ts +2 -2
- package/dist/invoice/entities/invoice-item.entity.js +2 -2
- package/dist/invoice/entities/invoice.entity.d.ts +8 -3
- package/dist/invoice/entities/invoice.entity.js +11 -6
- package/dist/invoice/interfaces/i-invoice-item.d.ts +2 -2
- package/dist/invoice/interfaces/i-invoice.d.ts +11 -6
- package/dist/iugu/entities/index.d.ts +1 -0
- package/dist/iugu/entities/index.js +3 -1
- package/dist/iugu/entities/invoice.entity.d.ts +118 -0
- package/dist/iugu/entities/invoice.entity.js +82 -0
- package/dist/iugu/interfaces/i-invoice.d.ts +116 -0
- package/dist/iugu/interfaces/i-invoice.js +2 -0
- package/dist/iugu/interfaces/index.d.ts +1 -0
- package/dist/package.json +1 -1
- package/dist/plan/interfaces/i-plan.d.ts +5 -5
- package/dist/subscription/entities/index.d.ts +2 -1
- package/dist/subscription/entities/index.js +4 -2
- package/dist/subscription/entities/subscription-item.entity.d.ts +9 -0
- package/dist/subscription/entities/subscription-item.entity.js +24 -0
- package/dist/subscription/entities/subscription.entity.d.ts +5 -1
- package/dist/subscription/entities/subscription.entity.js +5 -2
- package/dist/subscription/interfaces/i-subscription-item.d.ts +7 -0
- package/dist/subscription/interfaces/i-subscription-item.js +2 -0
- package/dist/subscription/interfaces/i-subscription.d.ts +5 -1
- package/dist/subscription/interfaces/index.d.ts +2 -1
- package/package.json +1 -1
@@ -1,18 +1,22 @@
|
|
1
1
|
import { FeatureEntity } from "../../feature";
|
2
|
-
import { IntervalTypeEnum } from "../../general";
|
2
|
+
import { CustomVariableEntity, IntervalTypeEnum } from "../../general";
|
3
3
|
import { SubscriptionStatusEnum } from "../enums";
|
4
4
|
import { ISubscription } from "../interfaces/i-subscription";
|
5
|
+
import { SubscriptionItemEntity } from "./subscription-item.entity";
|
5
6
|
import { SubscriptionLogEntity } from "./subscription-log.entity";
|
6
7
|
export declare class SubscriptionEntity implements ISubscription {
|
7
8
|
cancellationReason: string;
|
8
9
|
companyId: string;
|
10
|
+
companyName: string;
|
9
11
|
containerId: string | null;
|
10
12
|
createdAt: Date;
|
13
|
+
customVariable: CustomVariableEntity[];
|
11
14
|
expiresAt: Date;
|
12
15
|
features: FeatureEntity[];
|
13
16
|
id: string;
|
14
17
|
interval: number;
|
15
18
|
intervalType: IntervalTypeEnum;
|
19
|
+
items: SubscriptionItemEntity[];
|
16
20
|
logs: SubscriptionLogEntity[];
|
17
21
|
notes: string;
|
18
22
|
partnerId: string | null;
|
@@ -4,19 +4,22 @@ 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 (22)
|
8
8
|
// #region Constructors (1)
|
9
9
|
function SubscriptionEntity(data) {
|
10
|
-
// #region Properties (
|
10
|
+
// #region Properties (22)
|
11
11
|
this.cancellationReason = "";
|
12
12
|
this.companyId = "";
|
13
|
+
this.companyName = "";
|
13
14
|
this.containerId = "";
|
14
15
|
this.createdAt = new Date();
|
16
|
+
this.customVariable = [];
|
15
17
|
this.expiresAt = new Date();
|
16
18
|
this.features = [];
|
17
19
|
this.id = "";
|
18
20
|
this.interval = 0;
|
19
21
|
this.intervalType = general_1.IntervalTypeEnum.MONTHS;
|
22
|
+
this.items = [];
|
20
23
|
this.logs = [];
|
21
24
|
this.notes = "";
|
22
25
|
this.partnerId = "";
|
@@ -1,17 +1,21 @@
|
|
1
1
|
import { IFeature } from "../../feature";
|
2
|
-
import { IntervalTypeEnum } from "../../general";
|
2
|
+
import { ICustomVariable, IntervalTypeEnum } from "../../general";
|
3
3
|
import { SubscriptionStatusEnum } from "../enums";
|
4
|
+
import { ISubscriptionItem } from "./i-subscription-item";
|
4
5
|
import { ISubscriptionLog } from "./i-subscription-log";
|
5
6
|
export interface ISubscription {
|
6
7
|
cancellationReason: string;
|
7
8
|
companyId: string;
|
9
|
+
companyName: string;
|
8
10
|
containerId: string | null;
|
9
11
|
createdAt: Date;
|
12
|
+
customVariable: ICustomVariable[];
|
10
13
|
expiresAt: Date;
|
11
14
|
features: IFeature[];
|
12
15
|
id: string;
|
13
16
|
interval: number;
|
14
17
|
intervalType: IntervalTypeEnum;
|
18
|
+
items: ISubscriptionItem[];
|
15
19
|
logs: ISubscriptionLog[];
|
16
20
|
notes: string;
|
17
21
|
partnerId: string | null;
|