cecon-interfaces 1.1.22 → 1.1.26
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/esm2022/subscription/entities/subscription.entity.mjs +3 -3
- package/dist/esm2022/subscription/enums/index.mjs +2 -2
- package/dist/esm2022/subscription/interfaces/i-subscription.mjs +1 -1
- package/dist/esm2022/voucher/entities/voucher.entity.mjs +6 -4
- package/dist/esm2022/voucher/interfaces/i-voucher.mjs +1 -1
- package/dist/fesm2022/cecon-interfaces.mjs +6 -4
- package/dist/fesm2022/cecon-interfaces.mjs.map +1 -1
- 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/interfaces/i-subscription.d.ts +3 -3
- package/dist/voucher/entities/voucher.entity.d.ts +3 -1
- package/dist/voucher/entities/voucher.entity.js +5 -3
- package/dist/voucher/interfaces/i-voucher.d.ts +3 -1
- package/package.json +1 -1
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 { ESubscriptionStatus
|
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,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
|
}
|
@@ -4,6 +4,7 @@ import { IVoucher } from '../interfaces';
|
|
4
4
|
export declare class VoucherEntity implements IVoucher {
|
5
5
|
allowsKeyChange: boolean;
|
6
6
|
amount: number;
|
7
|
+
appId: string[];
|
7
8
|
campaignId?: string | null;
|
8
9
|
companyId?: string | null;
|
9
10
|
containerId?: string | null;
|
@@ -15,9 +16,10 @@ export declare class VoucherEntity implements IVoucher {
|
|
15
16
|
isPublic: boolean;
|
16
17
|
key: string;
|
17
18
|
maxUses: number;
|
18
|
-
partnerId: string
|
19
|
+
partnerId: string[];
|
19
20
|
sponsorship: SponsorshipValueEntity[];
|
20
21
|
status: EVoucherStatus;
|
22
|
+
tags: string[];
|
21
23
|
updatedAt: Date;
|
22
24
|
usedCount: number;
|
23
25
|
constructor(data?: Partial<VoucherEntity>);
|
@@ -4,14 +4,15 @@ 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 (20)
|
8
8
|
// #region Constructors (1)
|
9
9
|
function VoucherEntity(data) {
|
10
|
-
// #region Properties (
|
10
|
+
// #region Properties (20)
|
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)
|
14
14
|
this.amount = 0;
|
15
|
+
this.appId = [];
|
15
16
|
// ID da campanha associada (opcional para uso futuro)
|
16
17
|
this.campaignId = null;
|
17
18
|
// ID da empresa associada ao cupom (opcional)
|
@@ -34,11 +35,12 @@ var VoucherEntity = /** @class */ (function () {
|
|
34
35
|
// máximo de utilizações permitidas (-1 para ilimitado)
|
35
36
|
this.maxUses = -1;
|
36
37
|
// ID do parceiro associado ao cupom (opcional)
|
37
|
-
this.partnerId =
|
38
|
+
this.partnerId = [];
|
38
39
|
// informação de patrocínio (opcional)
|
39
40
|
this.sponsorship = [];
|
40
41
|
// status do cupom
|
41
42
|
this.status = enums_1.EVoucherStatus.PLACED;
|
43
|
+
this.tags = [];
|
42
44
|
// data da última atualização do cupom
|
43
45
|
this.updatedAt = new Date();
|
44
46
|
// contador de quantas vezes o cupom foi usado
|
@@ -3,6 +3,7 @@ import { EVoucherStatus } from '../enums';
|
|
3
3
|
export interface IVoucher {
|
4
4
|
allowsKeyChange: boolean;
|
5
5
|
amount: number;
|
6
|
+
appId: string[];
|
6
7
|
campaignId?: string | null;
|
7
8
|
companyId?: string | null;
|
8
9
|
containerId?: string | null;
|
@@ -14,9 +15,10 @@ export interface IVoucher {
|
|
14
15
|
isPublic: boolean;
|
15
16
|
key: string;
|
16
17
|
maxUses: number;
|
17
|
-
partnerId
|
18
|
+
partnerId: string[];
|
18
19
|
sponsorship: ISponsorshipValue[];
|
19
20
|
status: EVoucherStatus;
|
21
|
+
tags: string[];
|
20
22
|
updatedAt: Date;
|
21
23
|
usedCount: number;
|
22
24
|
}
|