cecon-interfaces 1.1.21 → 1.1.24
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/esm2022/installation/entities/installation.entity.mjs +3 -3
- package/dist/esm2022/installation/enums/status.enum.mjs +7 -6
- package/dist/esm2022/installation/interfaces/i-installation.mjs +1 -1
- package/dist/esm2022/subscription/entities/subscription.entity.mjs +3 -3
- package/dist/esm2022/subscription/enums/index.mjs +2 -2
- package/dist/esm2022/subscription/enums/subscription-status.enum.mjs +12 -12
- package/dist/esm2022/subscription/interfaces/i-subscription.mjs +1 -1
- package/dist/esm2022/voucher/entities/voucher.entity.mjs +4 -3
- package/dist/esm2022/voucher/interfaces/i-voucher.mjs +1 -1
- package/dist/fesm2022/cecon-interfaces.mjs +30 -28
- package/dist/fesm2022/cecon-interfaces.mjs.map +1 -1
- package/dist/installation/entities/installation.entity.d.ts +2 -2
- package/dist/installation/entities/installation.entity.js +2 -2
- package/dist/installation/enums/status.enum.d.ts +6 -5
- package/dist/installation/enums/status.enum.js +6 -5
- package/dist/installation/interfaces/i-installation.d.ts +2 -2
- package/dist/package.json +1 -1
- package/dist/subscription/entities/subscription.entity.d.ts +2 -2
- package/dist/subscription/entities/subscription.entity.js +1 -1
- package/dist/subscription/enums/index.d.ts +1 -1
- package/dist/subscription/enums/index.js +2 -2
- package/dist/subscription/enums/subscription-status.enum.d.ts +1 -1
- package/dist/subscription/enums/subscription-status.enum.js +12 -12
- package/dist/subscription/interfaces/i-subscription.d.ts +3 -3
- package/dist/voucher/entities/voucher.entity.d.ts +1 -0
- package/dist/voucher/entities/voucher.entity.js +3 -2
- package/dist/voucher/interfaces/i-voucher.d.ts +1 -0
- package/package.json +1 -1
@@ -1,5 +1,5 @@
|
|
1
1
|
import { AppConfigType } from '../../app';
|
2
|
-
import {
|
2
|
+
import { ESubscriptionStatus } from '../../subscription/enums/subscription-status.enum';
|
3
3
|
import { IInstallation } from '../interfaces/i-installation';
|
4
4
|
import { InstallationAppEntity } from './installation-app.entity';
|
5
5
|
export declare class InstallationEntity implements IInstallation {
|
@@ -10,7 +10,7 @@ export declare class InstallationEntity implements IInstallation {
|
|
10
10
|
featureId: string;
|
11
11
|
id: string;
|
12
12
|
lastCheckAt: Date;
|
13
|
-
status:
|
13
|
+
status: ESubscriptionStatus;
|
14
14
|
subscriptionId: string;
|
15
15
|
tags: string[];
|
16
16
|
trialEndDate: Date;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.InstallationEntity = void 0;
|
4
|
-
var
|
4
|
+
var subscription_status_enum_1 = require("../../subscription/enums/subscription-status.enum");
|
5
5
|
var installation_app_entity_1 = require("./installation-app.entity");
|
6
6
|
var InstallationEntity = /** @class */ (function () {
|
7
7
|
// #endregion Properties (13)
|
@@ -15,7 +15,7 @@ var InstallationEntity = /** @class */ (function () {
|
|
15
15
|
this.featureId = '';
|
16
16
|
this.id = '';
|
17
17
|
this.lastCheckAt = new Date();
|
18
|
-
this.status =
|
18
|
+
this.status = subscription_status_enum_1.ESubscriptionStatus.PLACED;
|
19
19
|
this.subscriptionId = '';
|
20
20
|
this.tags = [];
|
21
21
|
this.trialEndDate = new Date();
|
@@ -1,10 +1,11 @@
|
|
1
1
|
export declare enum EInstallationStatus {
|
2
|
-
|
2
|
+
INSTALLED = "INSTALLED",
|
3
3
|
ACTIVE = "ACTIVE",
|
4
|
-
SUSPENDED = "SUSPENDED",
|
5
|
-
EXPIRED = "EXPIRED",
|
6
4
|
CANCELLED = "CANCELLED",
|
5
|
+
PLACED = "PLACED",
|
6
|
+
EXPIRED = "EXPIRED",
|
7
7
|
PENDING = "PENDING",
|
8
|
-
|
9
|
-
|
8
|
+
TRIAL = "TRIAL",
|
9
|
+
FREE = "FREE",
|
10
|
+
SUSPENDED = "SUSPENDED"
|
10
11
|
}
|
@@ -3,12 +3,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.EInstallationStatus = void 0;
|
4
4
|
var EInstallationStatus;
|
5
5
|
(function (EInstallationStatus) {
|
6
|
-
EInstallationStatus["
|
6
|
+
EInstallationStatus["INSTALLED"] = "INSTALLED";
|
7
7
|
EInstallationStatus["ACTIVE"] = "ACTIVE";
|
8
|
-
EInstallationStatus["SUSPENDED"] = "SUSPENDED";
|
9
|
-
EInstallationStatus["EXPIRED"] = "EXPIRED";
|
10
8
|
EInstallationStatus["CANCELLED"] = "CANCELLED";
|
9
|
+
EInstallationStatus["PLACED"] = "PLACED";
|
10
|
+
EInstallationStatus["EXPIRED"] = "EXPIRED";
|
11
11
|
EInstallationStatus["PENDING"] = "PENDING";
|
12
|
-
EInstallationStatus["
|
13
|
-
EInstallationStatus["
|
12
|
+
EInstallationStatus["TRIAL"] = "TRIAL";
|
13
|
+
EInstallationStatus["FREE"] = "FREE";
|
14
|
+
EInstallationStatus["SUSPENDED"] = "SUSPENDED";
|
14
15
|
})(EInstallationStatus || (exports.EInstallationStatus = EInstallationStatus = {}));
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { AppConfigType } from '../../app';
|
2
|
-
import {
|
2
|
+
import { ESubscriptionStatus } from '../../subscription/enums/subscription-status.enum';
|
3
3
|
import { IInstallationApp } from './i-installation-app';
|
4
4
|
export interface IInstallation {
|
5
5
|
app: IInstallationApp;
|
@@ -9,7 +9,7 @@ export interface IInstallation {
|
|
9
9
|
featureId: string;
|
10
10
|
id: string;
|
11
11
|
lastCheckAt: Date;
|
12
|
-
status:
|
12
|
+
status: ESubscriptionStatus;
|
13
13
|
subscriptionId: string;
|
14
14
|
tags: string[];
|
15
15
|
trialEndDate: Date;
|
package/dist/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import { FeatureEntity } from '../../feature';
|
2
2
|
import { CustomVariableEntity, IntervalTypeEnum, PaymentEntity } from '../../general';
|
3
3
|
import { InvoiceEntity } from '../../invoice';
|
4
|
-
import {
|
4
|
+
import { ESubscriptionStatus } from '../enums';
|
5
5
|
import { ISubscription } from '../interfaces/i-subscription';
|
6
6
|
import { SubscriptionCompanyEntity } from './subscription-company.entity';
|
7
7
|
import { SubscriptionItemEntity } from './subscription-item.entity';
|
@@ -30,7 +30,7 @@ export declare class SubscriptionEntity implements ISubscription {
|
|
30
30
|
renewPaymentDate: Date;
|
31
31
|
renovatedAt: Date;
|
32
32
|
startsAt: Date;
|
33
|
-
status:
|
33
|
+
status: ESubscriptionStatus;
|
34
34
|
tags: string[];
|
35
35
|
updatedAt: Date;
|
36
36
|
payment: PaymentEntity;
|
@@ -32,7 +32,7 @@ var SubscriptionEntity = /** @class */ (function () {
|
|
32
32
|
this.renewPaymentDate = new Date();
|
33
33
|
this.renovatedAt = new Date();
|
34
34
|
this.startsAt = new Date();
|
35
|
-
this.status = enums_1.
|
35
|
+
this.status = enums_1.ESubscriptionStatus.PENDING;
|
36
36
|
this.tags = [];
|
37
37
|
this.updatedAt = new Date();
|
38
38
|
this.payment = new general_1.PaymentEntity();
|
@@ -1 +1 @@
|
|
1
|
-
export {
|
1
|
+
export { ESubscriptionStatus } from './subscription-status.enum';
|
@@ -1,5 +1,5 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.
|
3
|
+
exports.ESubscriptionStatus = void 0;
|
4
4
|
var subscription_status_enum_1 = require("./subscription-status.enum");
|
5
|
-
Object.defineProperty(exports, "
|
5
|
+
Object.defineProperty(exports, "ESubscriptionStatus", { enumerable: true, get: function () { return subscription_status_enum_1.ESubscriptionStatus; } });
|
@@ -1,14 +1,14 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.
|
4
|
-
var
|
5
|
-
(function (
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
})(
|
3
|
+
exports.ESubscriptionStatus = void 0;
|
4
|
+
var ESubscriptionStatus;
|
5
|
+
(function (ESubscriptionStatus) {
|
6
|
+
ESubscriptionStatus["ACTIVE"] = "ACTIVE";
|
7
|
+
ESubscriptionStatus["CANCELLED"] = "CANCELLED";
|
8
|
+
ESubscriptionStatus["PLACED"] = "PLACED";
|
9
|
+
ESubscriptionStatus["EXPIRED"] = "EXPIRED";
|
10
|
+
ESubscriptionStatus["PENDING"] = "PENDING";
|
11
|
+
ESubscriptionStatus["TRIAL"] = "TRIAL";
|
12
|
+
ESubscriptionStatus["FREE"] = "FREE";
|
13
|
+
ESubscriptionStatus["SUSPENDED"] = "SUSPENDED";
|
14
|
+
})(ESubscriptionStatus || (exports.ESubscriptionStatus = ESubscriptionStatus = {}));
|
@@ -1,8 +1,8 @@
|
|
1
1
|
import { IFeature } from '../../feature';
|
2
2
|
import { ICustomVariable, IntervalTypeEnum } from '../../general';
|
3
|
-
import { IPayment } from '../../general/interfaces
|
3
|
+
import { IPayment } from '../../general/interfaces';
|
4
4
|
import { IInvoice } from '../../invoice';
|
5
|
-
import {
|
5
|
+
import { ESubscriptionStatus } from '../enums';
|
6
6
|
import { ISubscriptionCompany } from './i-subscription-company';
|
7
7
|
import { ISubscriptionItem } from './i-subscription-item';
|
8
8
|
import { ISubscriptionLog } from './i-subscription-log';
|
@@ -31,7 +31,7 @@ export interface ISubscription {
|
|
31
31
|
renewPaymentDate: Date;
|
32
32
|
renovatedAt: Date;
|
33
33
|
startsAt: Date;
|
34
|
-
status:
|
34
|
+
status: ESubscriptionStatus;
|
35
35
|
tags: string[];
|
36
36
|
updatedAt: Date;
|
37
37
|
}
|
@@ -18,6 +18,7 @@ export declare class VoucherEntity implements IVoucher {
|
|
18
18
|
partnerId: string | null;
|
19
19
|
sponsorship: SponsorshipValueEntity[];
|
20
20
|
status: EVoucherStatus;
|
21
|
+
tags: string[];
|
21
22
|
updatedAt: Date;
|
22
23
|
usedCount: number;
|
23
24
|
constructor(data?: Partial<VoucherEntity>);
|
@@ -4,10 +4,10 @@ exports.VoucherEntity = void 0;
|
|
4
4
|
var general_1 = require("../../general");
|
5
5
|
var enums_1 = require("../enums");
|
6
6
|
var VoucherEntity = /** @class */ (function () {
|
7
|
-
// #endregion Properties (
|
7
|
+
// #endregion Properties (19)
|
8
8
|
// #region Constructors (1)
|
9
9
|
function VoucherEntity(data) {
|
10
|
-
// #region Properties (
|
10
|
+
// #region Properties (19)
|
11
11
|
// se permite ou não a alteração do nome do cupom pelo parceiro
|
12
12
|
this.allowsKeyChange = false;
|
13
13
|
// valor do desconto (soma do valor de todos os patrocínios - sponsorship)
|
@@ -39,6 +39,7 @@ var VoucherEntity = /** @class */ (function () {
|
|
39
39
|
this.sponsorship = [];
|
40
40
|
// status do cupom
|
41
41
|
this.status = enums_1.EVoucherStatus.PLACED;
|
42
|
+
this.tags = [];
|
42
43
|
// data da última atualização do cupom
|
43
44
|
this.updatedAt = new Date();
|
44
45
|
// contador de quantas vezes o cupom foi usado
|