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,4 +1,4 @@
|
|
1
|
-
import {
|
1
|
+
import { ESubscriptionStatus } from '../../subscription/enums/subscription-status.enum';
|
2
2
|
import { InstallationAppEntity } from './installation-app.entity';
|
3
3
|
export class InstallationEntity {
|
4
4
|
// #region Properties (13)
|
@@ -9,7 +9,7 @@ export class InstallationEntity {
|
|
9
9
|
featureId = '';
|
10
10
|
id = '';
|
11
11
|
lastCheckAt = new Date();
|
12
|
-
status =
|
12
|
+
status = ESubscriptionStatus.PLACED;
|
13
13
|
subscriptionId = '';
|
14
14
|
tags = [];
|
15
15
|
trialEndDate = new Date();
|
@@ -27,4 +27,4 @@ export class InstallationEntity {
|
|
27
27
|
}
|
28
28
|
}
|
29
29
|
}
|
30
|
-
//# sourceMappingURL=data:application/json;base64,
|
30
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5zdGFsbGF0aW9uLmVudGl0eS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9pbnN0YWxsYXRpb24vZW50aXRpZXMvaW5zdGFsbGF0aW9uLmVudGl0eS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFDQSxPQUFPLEVBQUUsbUJBQW1CLEVBQUUsTUFBTSxtREFBbUQsQ0FBQztBQUV4RixPQUFPLEVBQUUscUJBQXFCLEVBQUUsTUFBTSwyQkFBMkIsQ0FBQztBQUVsRSxNQUFNLE9BQU8sa0JBQWtCO0lBQzdCLDBCQUEwQjtJQUVuQixHQUFHLEdBQTBCLElBQUkscUJBQXFCLEVBQUUsQ0FBQztJQUN6RCxTQUFTLEdBQVMsSUFBSSxJQUFJLEVBQUUsQ0FBQztJQUM3QixZQUFZLEdBQWtCLElBQUksQ0FBQztJQUNuQyxjQUFjLEdBQVMsSUFBSSxJQUFJLEVBQUUsQ0FBQztJQUNsQyxTQUFTLEdBQVcsRUFBRSxDQUFDO0lBQ3ZCLEVBQUUsR0FBVyxFQUFFLENBQUM7SUFDaEIsV0FBVyxHQUFTLElBQUksSUFBSSxFQUFFLENBQUM7SUFDL0IsTUFBTSxHQUF3QixtQkFBbUIsQ0FBQyxNQUFNLENBQUM7SUFDekQsY0FBYyxHQUFXLEVBQUUsQ0FBQztJQUM1QixJQUFJLEdBQWEsRU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G4gICAgICB9XG4gICAgfVxuICB9XG5cbiAgLy8gI2VuZHJlZ2lvbiBDb25zdHJ1Y3RvcnMgKDEpXG59XG4iXX0=
|
@@ -1,12 +1,13 @@
|
|
1
1
|
export var EInstallationStatus;
|
2
2
|
(function (EInstallationStatus) {
|
3
|
-
EInstallationStatus["
|
3
|
+
EInstallationStatus["INSTALLED"] = "INSTALLED";
|
4
4
|
EInstallationStatus["ACTIVE"] = "ACTIVE";
|
5
|
-
EInstallationStatus["SUSPENDED"] = "SUSPENDED";
|
6
|
-
EInstallationStatus["EXPIRED"] = "EXPIRED";
|
7
5
|
EInstallationStatus["CANCELLED"] = "CANCELLED";
|
6
|
+
EInstallationStatus["PLACED"] = "PLACED";
|
7
|
+
EInstallationStatus["EXPIRED"] = "EXPIRED";
|
8
8
|
EInstallationStatus["PENDING"] = "PENDING";
|
9
|
-
EInstallationStatus["
|
10
|
-
EInstallationStatus["
|
9
|
+
EInstallationStatus["TRIAL"] = "TRIAL";
|
10
|
+
EInstallationStatus["FREE"] = "FREE";
|
11
|
+
EInstallationStatus["SUSPENDED"] = "SUSPENDED";
|
11
12
|
})(EInstallationStatus || (EInstallationStatus = {}));
|
12
|
-
//# sourceMappingURL=data:application/json;base64,
|
13
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3RhdHVzLmVudW0uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9zcmMvaW5zdGFsbGF0aW9uL2VudW1zL3N0YXR1cy5lbnVtLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE1BQU0sQ0FBTixJQUFZLG1CQVVYO0FBVkQsV0FBWSxtQkFBbUI7SUFDN0IsOENBQXVCLENBQUE7SUFDdkIsd0NBQWlCLENBQUE7SUFDakIsOENBQXVCLENBQUE7SUFDdkIsd0NBQWlCLENBQUE7SUFDakIsMENBQW1CLENBQUE7SUFDbkIsMENBQW1CLENBQUE7SUFDbkIsc0NBQWUsQ0FBQTtJQUNmLG9DQUFhLENBQUE7SUFDYiw4Q0FBdUIsQ0FBQTtBQUN6QixDQUFDLEVBVlcsbUJBQW1CLEtBQW5CLG1CQUFtQixRQVU5QiIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBlbnVtIEVJbnN0YWxsYXRpb25TdGF0dXMge1xyXG4gIElOU1RBTExFRCA9ICdJTlNUQUxMRUQnLFxyXG4gIEFDVElWRSA9ICdBQ1RJVkUnLFxyXG4gIENBTkNFTExFRCA9ICdDQU5DRUxMRUQnLFxyXG4gIFBMQUNFRCA9ICdQTEFDRUQnLFxyXG4gIEVYUElSRUQgPSAnRVhQSVJFRCcsXHJcbiAgUEVORElORyA9ICdQRU5ESU5HJyxcclxuICBUUklBTCA9ICdUUklBTCcsXHJcbiAgRlJFRSA9ICdGUkVFJyxcclxuICBTVVNQRU5ERUQgPSAnU1VTUEVOREVEJyxcclxufVxyXG4iXX0=
|
@@ -1,2 +1,2 @@
|
|
1
1
|
export {};
|
2
|
-
//# sourceMappingURL=data:application/json;base64,
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaS1pbnN0YWxsYXRpb24uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9zcmMvaW5zdGFsbGF0aW9uL2ludGVyZmFjZXMvaS1pbnN0YWxsYXRpb24udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IEFwcENvbmZpZ1R5cGUgfSBmcm9tICcuLi8uLi9hcHAnO1xuaW1wb3J0IHsgRVN1YnNjcmlwdGlvblN0YXR1cyB9IGZyb20gJy4uLy4uL3N1YnNjcmlwdGlvbi9lbnVtcy9zdWJzY3JpcHRpb24tc3RhdHVzLmVudW0nO1xuaW1wb3J0IHsgSUluc3RhbGxhdGlvbkFwcCB9IGZyb20gJy4vaS1pbnN0YWxsYXRpb24tYXBwJztcblxuZXhwb3J0IGludGVyZmFjZSBJSW5zdGFsbGF0aW9uIHtcbiAgLy8gI3JlZ2lvbiBQcm9wZXJ0aWVzICgxMylcblxuICBhcHA6IElJbnN0YWxsYXRpb25BcHA7XG4gIGNyZWF0ZWRBdDogRGF0ZTtcbiAgY3VzdG9tQ29uZmlnOiBBcHBDb25maWdUeXBlO1xuICBleHBpcmF0aW9uRGF0ZTogRGF0ZTtcbiAgZmVhdHVyZUlkOiBzdHJpbmc7XG4gIGlkOiBzdHJpbmc7XG4gIGxhc3RDaGVja0F0OiBEYXRlO1xuICBzdGF0dXM6IEVTdWJzY3JpcHRpb25TdGF0dXM7XG4gIHN1YnNjcmlwdGlvbklkOiBzdHJpbmc7XG4gIHRhZ3M6IHN0cmluZ1tdO1xuICB0cmlhbEVuZERhdGU6IERhdGU7XG4gIHRyaWFsU3RhcnREYXRlOiBEYXRlO1xuICB1cGRhdGVkQXQ6IERhdGU7XG5cbiAgLy8gI2VuZHJlZ2lvbiBQcm9wZXJ0aWVzICgxMylcbn1cbiJdfQ==
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { IntervalTypeEnum, PaymentEntity } from '../../general';
|
2
|
-
import {
|
2
|
+
import { ESubscriptionStatus } from '../enums';
|
3
3
|
import { SubscriptionCompanyEntity } from './subscription-company.entity';
|
4
4
|
export class SubscriptionEntity {
|
5
5
|
// #region Properties (27)
|
@@ -26,7 +26,7 @@ export class SubscriptionEntity {
|
|
26
26
|
renewPaymentDate = new Date();
|
27
27
|
renovatedAt = new Date();
|
28
28
|
startsAt = new Date();
|
29
|
-
status =
|
29
|
+
status = ESubscriptionStatus.PENDING;
|
30
30
|
tags = [];
|
31
31
|
updatedAt = new Date();
|
32
32
|
payment = new PaymentEntity();
|
@@ -42,4 +42,4 @@ export class SubscriptionEntity {
|
|
42
42
|
}
|
43
43
|
}
|
44
44
|
}
|
45
|
-
//# sourceMappingURL=data:application/json;base64,
|
45
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bWVudEVudGl0eSgpO1xuXG4gIC8vICNlbmRyZWdpb24gUHJvcGVydGllcyAoMjcpXG5cbiAgLy8gI3JlZ2lvbiBDb25zdHJ1Y3RvcnMgKDEpXG5cbiAgY29uc3RydWN0b3IoZGF0YT86IFBhcnRpYWw8U3Vic2NyaXB0aW9uRW50aXR5Pikge1xuICAgIGlmIChkYXRhKSB7XG4gICAgICBmb3IgKGxldCBrZXkgaW4gZGF0YSkge1xuICAgICAgICBpZiAoZGF0YS5oYXNPd25Qcm9wZXJ0eShrZXkpICYmIGtleSBpbiB0aGlzKSB7XG4gICAgICAgICAgKHRoaXMgYXMgYW55KVtrZXldID0gKGRhdGEgYXMgYW55KVtrZXldO1xuICAgICAgICB9XG4gICAgICB9XG4gICAgfVxuICB9XG5cbiAgLy8gI2VuZHJlZ2lvbiBDb25zdHJ1Y3RvcnMgKDEpXG59XG4iXX0=
|
@@ -1,2 +1,2 @@
|
|
1
|
-
export {
|
2
|
-
//# sourceMappingURL=data:application/json;base64,
|
1
|
+
export { ESubscriptionStatus } from './subscription-status.enum';
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9zcmMvc3Vic2NyaXB0aW9uL2VudW1zL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxtQkFBbUIsRUFBRSxNQUFNLDRCQUE0QixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IHsgRVN1YnNjcmlwdGlvblN0YXR1cyB9IGZyb20gJy4vc3Vic2NyaXB0aW9uLXN0YXR1cy5lbnVtJztcbiJdfQ==
|
@@ -1,12 +1,12 @@
|
|
1
|
-
export var
|
2
|
-
(function (
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
})(
|
12
|
-
//# sourceMappingURL=data:application/json;base64,
|
1
|
+
export var ESubscriptionStatus;
|
2
|
+
(function (ESubscriptionStatus) {
|
3
|
+
ESubscriptionStatus["ACTIVE"] = "ACTIVE";
|
4
|
+
ESubscriptionStatus["CANCELLED"] = "CANCELLED";
|
5
|
+
ESubscriptionStatus["PLACED"] = "PLACED";
|
6
|
+
ESubscriptionStatus["EXPIRED"] = "EXPIRED";
|
7
|
+
ESubscriptionStatus["PENDING"] = "PENDING";
|
8
|
+
ESubscriptionStatus["TRIAL"] = "TRIAL";
|
9
|
+
ESubscriptionStatus["FREE"] = "FREE";
|
10
|
+
ESubscriptionStatus["SUSPENDED"] = "SUSPENDED";
|
11
|
+
})(ESubscriptionStatus || (ESubscriptionStatus = {}));
|
12
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3Vic2NyaXB0aW9uLXN0YXR1cy5lbnVtLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vc3JjL3N1YnNjcmlwdGlvbi9lbnVtcy9zdWJzY3JpcHRpb24tc3RhdHVzLmVudW0udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsTUFBTSxDQUFOLElBQVksbUJBU1g7QUFURCxXQUFZLG1CQUFtQjtJQUM3Qix3Q0FBaUIsQ0FBQTtJQUNqQiw4Q0FBdUIsQ0FBQTtJQUN2Qix3Q0FBaUIsQ0FBQTtJQUNqQiwwQ0FBbUIsQ0FBQTtJQUNuQiwwQ0FBbUIsQ0FBQTtJQUNuQixzQ0FBZSxDQUFBO0lBQ2Ysb0NBQWEsQ0FBQTtJQUNiLDhDQUF1QixDQUFBO0FBQ3pCLENBQUMsRUFUVyxtQkFBbUIsS0FBbkIsbUJBQW1CLFFBUzlCIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGVudW0gRVN1YnNjcmlwdGlvblN0YXR1cyB7XHJcbiAgQUNUSVZFID0gJ0FDVElWRScsXHJcbiAgQ0FOQ0VMTEVEID0gJ0NBTkNFTExFRCcsXHJcbiAgUExBQ0VEID0gJ1BMQUNFRCcsXHJcbiAgRVhQSVJFRCA9ICdFWFBJUkVEJyxcclxuICBQRU5ESU5HID0gJ1BFTkRJTkcnLFxyXG4gIFRSSUFMID0gJ1RSSUFMJyxcclxuICBGUkVFID0gJ0ZSRUUnLFxyXG4gIFNVU1BFTkRFRCA9ICdTVVNQRU5ERUQnLFxyXG59XHJcbiJdfQ==
|
@@ -1,2 +1,2 @@
|
|
1
1
|
export {};
|
2
|
-
//# sourceMappingURL=data:application/json;base64,
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaS1zdWJzY3JpcHRpb24uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9zcmMvc3Vic2NyaXB0aW9uL2ludGVyZmFjZXMvaS1zdWJzY3JpcHRpb24udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IElGZWF0dXJlIH0gZnJvbSAnLi4vLi4vZmVhdHVyZSc7XG5pbXBvcnQgeyBJQ3VzdG9tVmFyaWFibGUsIEludGVydmFsVHlwZUVudW0gfSBmcm9tICcuLi8uLi9nZW5lcmFsJztcbmltcG9ydCB7IElQYXltZW50IH0gZnJvbSAnLi4vLi4vZ2VuZXJhbC9pbnRlcmZhY2VzJztcbmltcG9ydCB7IElJbnZvaWNlIH0gZnJvbSAnLi4vLi4vaW52b2ljZSc7XG5pbXBvcnQgeyBFU3Vic2NyaXB0aW9uU3RhdHVzIH0gZnJvbSAnLi4vZW51bXMnO1xuaW1wb3J0IHsgSVN1YnNjcmlwdGlvbkNvbXBhbnkgfSBmcm9tICcuL2ktc3Vic2NyaXB0aW9uLWNvbXBhbnknO1xuaW1wb3J0IHsgSVN1YnNjcmlwdGlv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blxuICAvLyAjZW5kcmVnaW9uIFByb3BlcnRpZXMgKDI1KVxufVxuIl19
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { EDiscountType } from '../../general';
|
2
2
|
import { EVoucherStatus } from '../enums';
|
3
3
|
export class VoucherEntity {
|
4
|
-
// #region Properties (
|
4
|
+
// #region Properties (19)
|
5
5
|
// se permite ou não a alteração do nome do cupom pelo parceiro
|
6
6
|
allowsKeyChange = false;
|
7
7
|
// valor do desconto (soma do valor de todos os patrocínios - sponsorship)
|
@@ -33,11 +33,12 @@ export class VoucherEntity {
|
|
33
33
|
sponsorship = [];
|
34
34
|
// status do cupom
|
35
35
|
status = EVoucherStatus.PLACED;
|
36
|
+
tags = [];
|
36
37
|
// data da última atualização do cupom
|
37
38
|
updatedAt = new Date();
|
38
39
|
// contador de quantas vezes o cupom foi usado
|
39
40
|
usedCount = 0;
|
40
|
-
// #endregion Properties (
|
41
|
+
// #endregion Properties (19)
|
41
42
|
// #region Constructors (1)
|
42
43
|
constructor(data) {
|
43
44
|
if (data) {
|
@@ -49,4 +50,4 @@ export class VoucherEntity {
|
|
49
50
|
}
|
50
51
|
}
|
51
52
|
}
|
52
|
-
//# sourceMappingURL=data:application/json;base64,
|
53
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidm91Y2hlci5lbnRpdHkuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9zcmMvdm91Y2hlci9lbnRpdGllcy92b3VjaGVyLmVudGl0eS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsYUFBYSxFQUEwQixNQUFNLGVBQWUsQ0FBQztBQUN0RSxPQUFPLEVBQUUsY0FBYyxFQUFFLE1BQU0sVUFBVSxDQUFDO0FBRzFDLE1BQU0sT0FBTyxhQUFhO0lBQ3hCLDBCQUEwQjtJQUUxQiwrREFBK0Q7SUFDeEQsZUFBZSxH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wYXJhIG8gY3Vwb21cclxuICBrZXk6IHN0cmluZztcclxuICAvLyBtw6F4aW1vIGRlIHV0aWxpemHDp8O1ZXMgcGVybWl0aWRhcyAoLTEgcGFyYSBpbGltaXRhZG8pXHJcbiAgbWF4VXNlczogbnVtYmVyO1xyXG4gIC8vIElEIGRvIHBhcmNlaXJvIGFzc29jaWFkbyBhbyBjdXBvbSAob3BjaW9uYWwpXHJcbiAgcGFydG5lcklkPzogc3RyaW5nIHwgbnVsbDtcclxuICAvLyBpbmZvcm1hw6fDo28gZGUgcGF0cm9jw61uaW8gKG9wY2lvbmFsKVxyXG4gIHNwb25zb3JzaGlwOiBJU3BvbnNvcnNoaXBWYWx1ZVtdO1xyXG4gIC8vIHN0YXR1cyBkbyBjdXBvbVxyXG4gIHN0YXR1czogRVZvdWNoZXJTdGF0dXM7XHJcbiAgLy8gZGF0YSBkYSDDumx0aW1hIGF0dWFsaXphw6fDo28gZG8gY3Vwb21cclxuICB1cGRhdGVkQXQ6IERhdGU7XHJcbiAgLy8gY29udGFkb3IgZGUgcXVhbnRhcyB2ZXplcyBvIGN1cG9tIGZvaSB1c2Fkb1xyXG4gIHVzZWRDb3VudDogbnVtYmVyO1xyXG5cclxuICAvLyAjZW5kcmVnaW9uIFByb3BlcnRpZXMgKDE4KVxyXG4gIC8vIGRhdGEgZGEgw7psdGltYSBhdHVhbGl6YcOnw6NvIGRhIGNhbXBhbmhhXHJcbn1cclxuIl19
|
@@ -986,17 +986,17 @@ class FeatureEntity {
|
|
986
986
|
}
|
987
987
|
}
|
988
988
|
|
989
|
-
var
|
990
|
-
(function (
|
991
|
-
|
992
|
-
|
993
|
-
|
994
|
-
|
995
|
-
|
996
|
-
|
997
|
-
|
998
|
-
|
999
|
-
})(
|
989
|
+
var ESubscriptionStatus;
|
990
|
+
(function (ESubscriptionStatus) {
|
991
|
+
ESubscriptionStatus["ACTIVE"] = "ACTIVE";
|
992
|
+
ESubscriptionStatus["CANCELLED"] = "CANCELLED";
|
993
|
+
ESubscriptionStatus["PLACED"] = "PLACED";
|
994
|
+
ESubscriptionStatus["EXPIRED"] = "EXPIRED";
|
995
|
+
ESubscriptionStatus["PENDING"] = "PENDING";
|
996
|
+
ESubscriptionStatus["TRIAL"] = "TRIAL";
|
997
|
+
ESubscriptionStatus["FREE"] = "FREE";
|
998
|
+
ESubscriptionStatus["SUSPENDED"] = "SUSPENDED";
|
999
|
+
})(ESubscriptionStatus || (ESubscriptionStatus = {}));
|
1000
1000
|
|
1001
1001
|
class InstallationAppEntity {
|
1002
1002
|
// #region Properties (5)
|
@@ -1027,7 +1027,7 @@ class InstallationEntity {
|
|
1027
1027
|
featureId = '';
|
1028
1028
|
id = '';
|
1029
1029
|
lastCheckAt = new Date();
|
1030
|
-
status =
|
1030
|
+
status = ESubscriptionStatus.PLACED;
|
1031
1031
|
subscriptionId = '';
|
1032
1032
|
tags = [];
|
1033
1033
|
trialEndDate = new Date();
|
@@ -1046,6 +1046,19 @@ class InstallationEntity {
|
|
1046
1046
|
}
|
1047
1047
|
}
|
1048
1048
|
|
1049
|
+
var EInstallationStatus;
|
1050
|
+
(function (EInstallationStatus) {
|
1051
|
+
EInstallationStatus["INSTALLED"] = "INSTALLED";
|
1052
|
+
EInstallationStatus["ACTIVE"] = "ACTIVE";
|
1053
|
+
EInstallationStatus["CANCELLED"] = "CANCELLED";
|
1054
|
+
EInstallationStatus["PLACED"] = "PLACED";
|
1055
|
+
EInstallationStatus["EXPIRED"] = "EXPIRED";
|
1056
|
+
EInstallationStatus["PENDING"] = "PENDING";
|
1057
|
+
EInstallationStatus["TRIAL"] = "TRIAL";
|
1058
|
+
EInstallationStatus["FREE"] = "FREE";
|
1059
|
+
EInstallationStatus["SUSPENDED"] = "SUSPENDED";
|
1060
|
+
})(EInstallationStatus || (EInstallationStatus = {}));
|
1061
|
+
|
1049
1062
|
var InviteStatusEnum;
|
1050
1063
|
(function (InviteStatusEnum) {
|
1051
1064
|
InviteStatusEnum["ACCEPTED"] = "ACCEPTED";
|
@@ -2711,18 +2724,6 @@ class SubscriptionLogEntity {
|
|
2711
2724
|
}
|
2712
2725
|
}
|
2713
2726
|
|
2714
|
-
var SubscriptionStatusEnum;
|
2715
|
-
(function (SubscriptionStatusEnum) {
|
2716
|
-
SubscriptionStatusEnum["ACTIVE"] = "ACTIVE";
|
2717
|
-
SubscriptionStatusEnum["CANCELLED"] = "CANCELLED";
|
2718
|
-
SubscriptionStatusEnum["PLACED"] = "PLACED";
|
2719
|
-
SubscriptionStatusEnum["EXPIRED"] = "EXPIRED";
|
2720
|
-
SubscriptionStatusEnum["PENDING"] = "PENDING";
|
2721
|
-
SubscriptionStatusEnum["TRIAL"] = "TRIAL";
|
2722
|
-
SubscriptionStatusEnum["FREE"] = "FREE";
|
2723
|
-
SubscriptionStatusEnum["SUSPENDED"] = "SUSPENDED";
|
2724
|
-
})(SubscriptionStatusEnum || (SubscriptionStatusEnum = {}));
|
2725
|
-
|
2726
2727
|
class SubscriptionEntity {
|
2727
2728
|
// #region Properties (27)
|
2728
2729
|
amount = 0;
|
@@ -2748,7 +2749,7 @@ class SubscriptionEntity {
|
|
2748
2749
|
renewPaymentDate = new Date();
|
2749
2750
|
renovatedAt = new Date();
|
2750
2751
|
startsAt = new Date();
|
2751
|
-
status =
|
2752
|
+
status = ESubscriptionStatus.PENDING;
|
2752
2753
|
tags = [];
|
2753
2754
|
updatedAt = new Date();
|
2754
2755
|
payment = new PaymentEntity();
|
@@ -2803,7 +2804,7 @@ var EVoucherStatus;
|
|
2803
2804
|
})(EVoucherStatus || (EVoucherStatus = {}));
|
2804
2805
|
|
2805
2806
|
class VoucherEntity {
|
2806
|
-
// #region Properties (
|
2807
|
+
// #region Properties (19)
|
2807
2808
|
// se permite ou não a alteração do nome do cupom pelo parceiro
|
2808
2809
|
allowsKeyChange = false;
|
2809
2810
|
// valor do desconto (soma do valor de todos os patrocínios - sponsorship)
|
@@ -2835,11 +2836,12 @@ class VoucherEntity {
|
|
2835
2836
|
sponsorship = [];
|
2836
2837
|
// status do cupom
|
2837
2838
|
status = EVoucherStatus.PLACED;
|
2839
|
+
tags = [];
|
2838
2840
|
// data da última atualização do cupom
|
2839
2841
|
updatedAt = new Date();
|
2840
2842
|
// contador de quantas vezes o cupom foi usado
|
2841
2843
|
usedCount = 0;
|
2842
|
-
// #endregion Properties (
|
2844
|
+
// #endregion Properties (19)
|
2843
2845
|
// #region Constructors (1)
|
2844
2846
|
constructor(data) {
|
2845
2847
|
if (data) {
|
@@ -2856,5 +2858,5 @@ class VoucherEntity {
|
|
2856
2858
|
* Generated bundle index. Do not edit.
|
2857
2859
|
*/
|
2858
2860
|
|
2859
|
-
export { AccountInformationsEntity, AddressEntity, AppEntity, AppInfoEntity, BaseEntity, BooleanStringEnum, CampaignEntity, CarouselImageEntity, CompanyEntity, ContainerEntity, CoordsEntity, CustomVariableEntity, DeliveryAreaEntity, DeliveryAreaFixedEntity, DeviceEntity, DocTypeEnum, EAppCategory, EAppHeaderType, EAppMode, EAppType, ECampaignStatus, ECompanyKeys, ECompanyMessageType, EDiscountType, EFiscalDocModelCode, EInstallationStatus, EPlanFeatureType, EPlanIdentifier, ESponsorshipValues, EVoucherStatus, FeatureEntity, InstallationEntity, IntervalTypeEnum, InviteEntity, InviteStatusEnum, InvoiceEntity, InvoiceItemEntity, InvoicePaymentMethodEntity, InvoiceStatusEnum, IuguAccountEntity, LastVerificationRequestDataEntity as IuguAccountLastVerificationRequestDataEntity, IuguAutoAdvanceEnum, IuguBankEnum, IuguCustomerEntity, IuguInvoiceEntity, IuguInvoiceStatusEnum, IuguPaymentTokenDataEntity, IuguPaymentTokenEntity, LeadEntity, LeadOriginEnum, LeadStatusEnum, LegalEntiyEnum, MemberEntity, MemberRulesEnum, MemberTypeEnum, MessagerChannelEntity, MetadataEntity, MobyoApiConfigEntity, NatiGoEntity, NotificationActionEntity, NotificationActionTypeEnum, NotificationCategoryEnum, NotificationEntity, NotificationPriorityEnum, NotificationStatusEnum, OrderAdditionalFeeEntity, OrderBenefitsEntity, OrderCancellationEntity, OrderCustomerEntity, OrderEntity, OrderItemCompositionEntity, OrderItemEntity, OrderItemOptionEntity, OrderPaymentCardEntity, OrderPaymentCashEntity, OrderPaymentEntity, OrderPaymentMethodEntity, OrderPaymentPixEntity, OrderPaymentWalletEntity, OrderScaleEntity, OrderScaleItemEntity, OrderStatusEnum, OrderTotalEntity, OrdersCustomerPhoneEntity, OriginEntity, OsEnum, PartnerEntity, PaymentCardEntity, PaymentCashEntity, PaymentChannelEnum, PaymentEntity, PaymentMethodEntity, PaymentMethodOptionEntity, PaymentModeEnum, PaymentPixEntity, PaymentProviderAgentEntity, PaymentProviderEntity, PaymentProviderEnum, PaymentStatusEnum, PaymentTokenDataEntity, PaymentTokenEntity, PaymentTypeEnum, PaymentWalletEntity, PlanEntity, PlanFeatureEntity, PlatfomrEnum, PurchaseEntity, RabbitEntity, RatingEntity, ResumeCollectionEntity, ResumeDayEntity, ResumeEntity, ResumeHourEntity, ResumeMonthEntity, ResumeTotalEntity, ResumeYearEntity, SponsorshipValueEntity, SubscriptionCompanyEntity, SubscriptionEntity, SubscriptionItemEntity, SubscriptionLogEntity,
|
2861
|
+
export { AccountInformationsEntity, AddressEntity, AppEntity, AppInfoEntity, BaseEntity, BooleanStringEnum, CampaignEntity, CarouselImageEntity, CompanyEntity, ContainerEntity, CoordsEntity, CustomVariableEntity, DeliveryAreaEntity, DeliveryAreaFixedEntity, DeviceEntity, DocTypeEnum, EAppCategory, EAppHeaderType, EAppMode, EAppType, ECampaignStatus, ECompanyKeys, ECompanyMessageType, EDiscountType, EFiscalDocModelCode, EInstallationStatus, EPlanFeatureType, EPlanIdentifier, ESponsorshipValues, ESubscriptionStatus, EVoucherStatus, FeatureEntity, InstallationEntity, IntervalTypeEnum, InviteEntity, InviteStatusEnum, InvoiceEntity, InvoiceItemEntity, InvoicePaymentMethodEntity, InvoiceStatusEnum, IuguAccountEntity, LastVerificationRequestDataEntity as IuguAccountLastVerificationRequestDataEntity, IuguAutoAdvanceEnum, IuguBankEnum, IuguCustomerEntity, IuguInvoiceEntity, IuguInvoiceStatusEnum, IuguPaymentTokenDataEntity, IuguPaymentTokenEntity, LeadEntity, LeadOriginEnum, LeadStatusEnum, LegalEntiyEnum, MemberEntity, MemberRulesEnum, MemberTypeEnum, MessagerChannelEntity, MetadataEntity, MobyoApiConfigEntity, NatiGoEntity, NotificationActionEntity, NotificationActionTypeEnum, NotificationCategoryEnum, NotificationEntity, NotificationPriorityEnum, NotificationStatusEnum, OrderAdditionalFeeEntity, OrderBenefitsEntity, OrderCancellationEntity, OrderCustomerEntity, OrderEntity, OrderItemCompositionEntity, OrderItemEntity, OrderItemOptionEntity, OrderPaymentCardEntity, OrderPaymentCashEntity, OrderPaymentEntity, OrderPaymentMethodEntity, OrderPaymentPixEntity, OrderPaymentWalletEntity, OrderScaleEntity, OrderScaleItemEntity, OrderStatusEnum, OrderTotalEntity, OrdersCustomerPhoneEntity, OriginEntity, OsEnum, PartnerEntity, PaymentCardEntity, PaymentCashEntity, PaymentChannelEnum, PaymentEntity, PaymentMethodEntity, PaymentMethodOptionEntity, PaymentModeEnum, PaymentPixEntity, PaymentProviderAgentEntity, PaymentProviderEntity, PaymentProviderEnum, PaymentStatusEnum, PaymentTokenDataEntity, PaymentTokenEntity, PaymentTypeEnum, PaymentWalletEntity, PlanEntity, PlanFeatureEntity, PlatfomrEnum, PurchaseEntity, RabbitEntity, RatingEntity, ResumeCollectionEntity, ResumeDayEntity, ResumeEntity, ResumeHourEntity, ResumeMonthEntity, ResumeTotalEntity, ResumeYearEntity, SponsorshipValueEntity, SubscriptionCompanyEntity, SubscriptionEntity, SubscriptionItemEntity, SubscriptionLogEntity, TokenEntity, VoucherEntity };
|
2860
2862
|
//# sourceMappingURL=cecon-interfaces.mjs.map
|