cecon-interfaces 1.0.46 → 1.0.48
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/company/entities/company.entity.d.ts +2 -2
- package/dist/company/entities/company.entity.js +2 -2
- package/dist/company/interfaces/i-company.d.ts +2 -2
- package/dist/device/entities/device.entity.d.ts +2 -2
- package/dist/device/entities/device.entity.js +2 -2
- package/dist/device/entities/installed-apps.entity.d.ts +5 -5
- package/dist/device/entities/installed-apps.entity.js +5 -5
- package/dist/device/interfaces/i-device.d.ts +2 -2
- package/dist/device/interfaces/i-installed-apps.d.ts +5 -5
- package/dist/esm2022/company/entities/company.entity.mjs +3 -3
- package/dist/esm2022/company/interfaces/i-company.mjs +1 -1
- package/dist/esm2022/device/entities/device.entity.mjs +3 -3
- package/dist/esm2022/device/entities/installed-apps.entity.mjs +6 -6
- package/dist/esm2022/device/interfaces/i-device.mjs +1 -1
- package/dist/esm2022/device/interfaces/i-installed-apps.mjs +1 -1
- package/dist/esm2022/general/entities/base.entity.mjs +3 -3
- package/dist/esm2022/general/entities/payment-method.entity.mjs +3 -3
- package/dist/esm2022/general/entities/rating.entity.mjs +2 -2
- package/dist/esm2022/general/interfaces/i-base.mjs +1 -1
- package/dist/esm2022/general/interfaces/i-payment-method.mjs +1 -1
- package/dist/esm2022/general/interfaces/i-rating.mjs +1 -1
- package/dist/esm2022/invite/entities/invite.entity.mjs +4 -4
- package/dist/esm2022/invite/interfaces/i-invite.mjs +1 -1
- package/dist/esm2022/lead/entities/lead.entity.mjs +9 -9
- package/dist/esm2022/lead/interfaces/i-lead.mjs +1 -1
- package/dist/esm2022/order/entities/order.entity.mjs +3 -3
- package/dist/esm2022/order/interfaces/i-order.mjs +1 -1
- package/dist/esm2022/partner/entities/partner.entity.mjs +2 -2
- package/dist/esm2022/partner/interfaces/i-partner.mjs +1 -1
- package/dist/esm2022/plan/entities/feature.entity.mjs +3 -3
- package/dist/esm2022/plan/entities/plan.entity.mjs +3 -3
- package/dist/esm2022/plan/interfaces/i-feature.mjs +1 -1
- package/dist/esm2022/plan/interfaces/i-plan.mjs +1 -1
- package/dist/fesm2022/cecon-interfaces.mjs +27 -27
- package/dist/fesm2022/cecon-interfaces.mjs.map +1 -1
- package/dist/general/entities/base.entity.d.ts +2 -2
- package/dist/general/entities/base.entity.js +2 -2
- package/dist/general/entities/payment-method.entity.d.ts +2 -2
- package/dist/general/entities/payment-method.entity.js +2 -2
- package/dist/general/entities/rating.entity.d.ts +1 -1
- package/dist/general/entities/rating.entity.js +1 -1
- package/dist/general/interfaces/i-base.d.ts +2 -2
- package/dist/general/interfaces/i-payment-method.d.ts +2 -2
- package/dist/general/interfaces/i-rating.d.ts +1 -1
- package/dist/invite/entities/invite.entity.d.ts +3 -3
- package/dist/invite/entities/invite.entity.js +3 -3
- package/dist/invite/interfaces/i-invite.d.ts +3 -3
- package/dist/lead/entities/lead.entity.d.ts +9 -9
- package/dist/lead/entities/lead.entity.js +8 -8
- package/dist/lead/interfaces/i-lead.d.ts +69 -8
- package/dist/order/entities/order.entity.d.ts +2 -2
- package/dist/order/entities/order.entity.js +2 -2
- package/dist/order/interfaces/i-order.d.ts +2 -2
- package/dist/package.json +1 -1
- package/dist/partner/entities/partner.entity.d.ts +1 -1
- package/dist/partner/entities/partner.entity.js +1 -1
- package/dist/partner/interfaces/i-partner.d.ts +1 -1
- package/dist/plan/entities/feature.entity.d.ts +2 -2
- package/dist/plan/entities/feature.entity.js +2 -2
- package/dist/plan/entities/plan.entity.d.ts +2 -2
- package/dist/plan/entities/plan.entity.js +2 -2
- package/dist/plan/interfaces/i-feature.d.ts +2 -2
- package/dist/plan/interfaces/i-plan.d.ts +2 -2
- package/package.json +1 -1
@@ -10,9 +10,9 @@ var BaseEntity = /** @class */ (function () {
|
|
10
10
|
this.active = true;
|
11
11
|
this.companyId = '';
|
12
12
|
this.containerId = '';
|
13
|
-
this.createdAt = Date
|
13
|
+
this.createdAt = new Date();
|
14
14
|
this.id = '';
|
15
|
-
this.updatedAt = Date
|
15
|
+
this.updatedAt = new Date();
|
16
16
|
if (data) {
|
17
17
|
for (var key in data) {
|
18
18
|
if (data.hasOwnProperty(key) && key in this) {
|
@@ -4,7 +4,7 @@ import { PaymentTypeEnum } from '../enums/payment-type.enum';
|
|
4
4
|
export declare class PaymentMethodEntity {
|
5
5
|
active: boolean;
|
6
6
|
channel: PaymentChannelEnum;
|
7
|
-
createdAt:
|
7
|
+
createdAt: Date;
|
8
8
|
fee: number;
|
9
9
|
id: string;
|
10
10
|
index: number;
|
@@ -14,6 +14,6 @@ export declare class PaymentMethodEntity {
|
|
14
14
|
name: string;
|
15
15
|
token: string;
|
16
16
|
type: PaymentTypeEnum;
|
17
|
-
updatedAt:
|
17
|
+
updatedAt: Date;
|
18
18
|
constructor(data?: Partial<PaymentMethodEntity>);
|
19
19
|
}
|
@@ -11,7 +11,7 @@ var PaymentMethodEntity = /** @class */ (function () {
|
|
11
11
|
// #region Properties (13)
|
12
12
|
this.active = false;
|
13
13
|
this.channel = payment_channel_enum_1.PaymentChannelEnum.AUTOMATION;
|
14
|
-
this.createdAt =
|
14
|
+
this.createdAt = new Date();
|
15
15
|
this.fee = 0;
|
16
16
|
this.id = '';
|
17
17
|
this.index = 0;
|
@@ -21,7 +21,7 @@ var PaymentMethodEntity = /** @class */ (function () {
|
|
21
21
|
this.name = '';
|
22
22
|
this.token = '';
|
23
23
|
this.type = payment_type_enum_1.PaymentTypeEnum.CREDIT_CARD;
|
24
|
-
this.updatedAt = Date
|
24
|
+
this.updatedAt = new Date();
|
25
25
|
if (data) {
|
26
26
|
for (var key in data) {
|
27
27
|
if (data.hasOwnProperty(key) && key in this) {
|
@@ -4,7 +4,7 @@ import { PaymentTypeEnum } from '../enums/payment-type.enum';
|
|
4
4
|
export interface IPaymentMethod {
|
5
5
|
active: boolean;
|
6
6
|
channel: PaymentChannelEnum;
|
7
|
-
createdAt:
|
7
|
+
createdAt: Date;
|
8
8
|
fee: number;
|
9
9
|
id: string;
|
10
10
|
index: number;
|
@@ -14,5 +14,5 @@ export interface IPaymentMethod {
|
|
14
14
|
name: string;
|
15
15
|
token: string;
|
16
16
|
type: PaymentTypeEnum;
|
17
|
-
updatedAt:
|
17
|
+
updatedAt: Date;
|
18
18
|
}
|
@@ -5,11 +5,11 @@ export declare class InviteEntity implements IInvite {
|
|
5
5
|
companyId: string;
|
6
6
|
companyName: string;
|
7
7
|
containerId: string;
|
8
|
-
createdAt:
|
8
|
+
createdAt: Date;
|
9
9
|
doc: string;
|
10
10
|
docType: DocTypeEnum;
|
11
11
|
email: string;
|
12
|
-
expireAt:
|
12
|
+
expireAt: Date;
|
13
13
|
expired: boolean;
|
14
14
|
id: string;
|
15
15
|
internationalCode: string;
|
@@ -18,6 +18,6 @@ export declare class InviteEntity implements IInvite {
|
|
18
18
|
photoURL: string;
|
19
19
|
status: InviteStatusEnum;
|
20
20
|
uid: string;
|
21
|
-
updatedAt:
|
21
|
+
updatedAt: Date;
|
22
22
|
constructor(data?: Partial<InviteEntity>);
|
23
23
|
}
|
@@ -11,11 +11,11 @@ var InviteEntity = /** @class */ (function () {
|
|
11
11
|
this.companyId = '';
|
12
12
|
this.companyName = '';
|
13
13
|
this.containerId = '';
|
14
|
-
this.createdAt = Date
|
14
|
+
this.createdAt = new Date();
|
15
15
|
this.doc = '';
|
16
16
|
this.docType = general_1.DocTypeEnum.CNPJ;
|
17
17
|
this.email = '';
|
18
|
-
this.expireAt = Date.
|
18
|
+
this.expireAt = new Date(new Date().getTime() + 86400000);
|
19
19
|
this.expired = false;
|
20
20
|
this.id = '';
|
21
21
|
this.internationalCode = '+55';
|
@@ -24,7 +24,7 @@ var InviteEntity = /** @class */ (function () {
|
|
24
24
|
this.photoURL = '';
|
25
25
|
this.status = enums_1.InviteStatusEnum.PENDING;
|
26
26
|
this.uid = '';
|
27
|
-
this.updatedAt = Date
|
27
|
+
this.updatedAt = new Date();
|
28
28
|
if (data) {
|
29
29
|
for (var key in data) {
|
30
30
|
if (data.hasOwnProperty(key) && key in this) {
|
@@ -4,11 +4,11 @@ export interface IInvite {
|
|
4
4
|
companyId: string;
|
5
5
|
companyName: string;
|
6
6
|
containerId: string;
|
7
|
-
createdAt:
|
7
|
+
createdAt: Date;
|
8
8
|
doc: string;
|
9
9
|
docType: DocTypeEnum;
|
10
10
|
email: string;
|
11
|
-
expireAt:
|
11
|
+
expireAt: Date;
|
12
12
|
expired: boolean;
|
13
13
|
id: string;
|
14
14
|
internationalCode: string;
|
@@ -17,5 +17,5 @@ export interface IInvite {
|
|
17
17
|
photoURL: string;
|
18
18
|
status: InviteStatusEnum;
|
19
19
|
uid: string;
|
20
|
-
updatedAt:
|
20
|
+
updatedAt: Date;
|
21
21
|
}
|
@@ -4,16 +4,14 @@ import { ILead } from '../interfaces';
|
|
4
4
|
export declare class LeadEntity implements ILead {
|
5
5
|
/**Lista de produtos ou serviços de interesse. */
|
6
6
|
activity?: string[];
|
7
|
-
/**Status atual. */
|
8
|
-
partnerId: string;
|
9
7
|
/**Endereço de e-mail principal para contato. */
|
10
|
-
alternateEmails
|
8
|
+
alternateEmails: string[];
|
11
9
|
/**Número de telefone principal. */
|
12
|
-
alternatePhones
|
10
|
+
alternatePhones: string[];
|
13
11
|
/**ID do agente ou parceiro que cadastrou o lead. */
|
14
12
|
assignedTo?: string;
|
15
13
|
/**Notas ou observações adicionais. */
|
16
|
-
createdAt:
|
14
|
+
createdAt: Date;
|
17
15
|
/**Tipo de documento (CPF, CNPJ, Passaporte, etc.). */
|
18
16
|
doc: string;
|
19
17
|
/**Identificador único do lead. */
|
@@ -24,19 +22,21 @@ export declare class LeadEntity implements ILead {
|
|
24
22
|
/**Fonte de origem do lead. */
|
25
23
|
interestedIn: string[];
|
26
24
|
/**Data e hora de criação. */
|
27
|
-
lastContacted?:
|
25
|
+
lastContacted?: Date;
|
28
26
|
/**Número do documento conforme o tipo. */
|
29
27
|
name: string;
|
30
28
|
note?: string;
|
29
|
+
origin: LeadOriginEnum;
|
30
|
+
/**Status atual. */
|
31
|
+
partnerId: string;
|
31
32
|
/**Outros endereços de e-mail, se disponíveis. */
|
32
33
|
phoneNumber?: string;
|
33
34
|
/**Outros números de telefone, se disponíveis. */
|
34
35
|
sandbox: boolean;
|
35
|
-
source: LeadOriginEnum;
|
36
36
|
/**Data e hora do último contato. */
|
37
37
|
status: LeadStatusEnum;
|
38
38
|
/**ID do colaborador responsável pelo lead. */
|
39
|
-
tags
|
40
|
-
updatedAt:
|
39
|
+
tags: string[];
|
40
|
+
updatedAt: Date;
|
41
41
|
constructor(data?: Partial<LeadEntity>);
|
42
42
|
}
|
@@ -4,14 +4,12 @@ exports.LeadEntity = void 0;
|
|
4
4
|
var enums_1 = require("../../general/enums");
|
5
5
|
var enums_2 = require("../enums");
|
6
6
|
var LeadEntity = /** @class */ (function () {
|
7
|
-
// #endregion Properties (
|
7
|
+
// #endregion Properties (20)
|
8
8
|
// #region Constructors (1)
|
9
9
|
function LeadEntity(data) {
|
10
|
-
// #region Properties (
|
10
|
+
// #region Properties (20)
|
11
11
|
/**Lista de produtos ou serviços de interesse. */
|
12
12
|
this.activity = [];
|
13
|
-
/**Status atual. */
|
14
|
-
this.partnerId = '';
|
15
13
|
/**Endereço de e-mail principal para contato. */
|
16
14
|
this.alternateEmails = [];
|
17
15
|
/**Número de telefone principal. */
|
@@ -19,7 +17,7 @@ var LeadEntity = /** @class */ (function () {
|
|
19
17
|
/**ID do agente ou parceiro que cadastrou o lead. */
|
20
18
|
this.assignedTo = '';
|
21
19
|
/**Notas ou observações adicionais. */
|
22
|
-
this.createdAt = Date
|
20
|
+
this.createdAt = new Date();
|
23
21
|
/**Tipo de documento (CPF, CNPJ, Passaporte, etc.). */
|
24
22
|
this.doc = '';
|
25
23
|
/**Identificador único do lead. */
|
@@ -30,20 +28,22 @@ var LeadEntity = /** @class */ (function () {
|
|
30
28
|
/**Fonte de origem do lead. */
|
31
29
|
this.interestedIn = [];
|
32
30
|
/**Data e hora de criação. */
|
33
|
-
this.lastContacted = Date
|
31
|
+
this.lastContacted = new Date();
|
34
32
|
/**Número do documento conforme o tipo. */
|
35
33
|
this.name = '';
|
36
34
|
this.note = '';
|
35
|
+
this.origin = enums_1.LeadOriginEnum.OTHERS;
|
36
|
+
/**Status atual. */
|
37
|
+
this.partnerId = '';
|
37
38
|
/**Outros endereços de e-mail, se disponíveis. */
|
38
39
|
this.phoneNumber = '';
|
39
40
|
/**Outros números de telefone, se disponíveis. */
|
40
41
|
this.sandbox = false;
|
41
|
-
this.source = enums_1.LeadOriginEnum.OTHERS;
|
42
42
|
/**Data e hora do último contato. */
|
43
43
|
this.status = enums_2.LeadStatusEnum.NEW;
|
44
44
|
/**ID do colaborador responsável pelo lead. */
|
45
45
|
this.tags = [];
|
46
|
-
this.updatedAt = Date
|
46
|
+
this.updatedAt = new Date();
|
47
47
|
if (data) {
|
48
48
|
for (var key in data) {
|
49
49
|
if (data.hasOwnProperty(key) && key in this) {
|
@@ -1,24 +1,85 @@
|
|
1
1
|
import { LeadOriginEnum } from '../../general/enums';
|
2
2
|
import { LeadStatusEnum } from '../enums';
|
3
3
|
export interface ILead {
|
4
|
+
/**
|
5
|
+
* Lista de atividades ou eventos relacionados ao lead.
|
6
|
+
* Exemplo: ['Feira de negócios', 'Evento de lançamento', 'Reunião']
|
7
|
+
* */
|
4
8
|
activity?: string[];
|
5
|
-
|
6
|
-
|
7
|
-
|
9
|
+
/**
|
10
|
+
* Outros endereços de e-mail, se disponíveis.
|
11
|
+
**/
|
12
|
+
alternateEmails: string[];
|
13
|
+
/**
|
14
|
+
* Números alternativos de telefone para contato.
|
15
|
+
**/
|
16
|
+
alternatePhones: string[];
|
17
|
+
/**
|
18
|
+
* ID do agente ou parceiro responsável pelo lead.
|
19
|
+
**/
|
8
20
|
assignedTo?: string;
|
9
|
-
|
21
|
+
/**
|
22
|
+
* Data e hora de criação.
|
23
|
+
**/
|
24
|
+
createdAt: Date;
|
25
|
+
/**
|
26
|
+
* Número do documento conforme o tipo.
|
27
|
+
**/
|
10
28
|
doc: string;
|
29
|
+
/**
|
30
|
+
* Tipo de documento (CPF, CNPJ, Passaporte, etc.).
|
31
|
+
**/
|
11
32
|
docType: any;
|
33
|
+
/**
|
34
|
+
* Endereço de e-mail principal para contato.
|
35
|
+
**/
|
12
36
|
email: string;
|
37
|
+
/**
|
38
|
+
* Identificador único do lead.
|
39
|
+
**/
|
13
40
|
id: string;
|
41
|
+
/**
|
42
|
+
* Lista de produtos ou serviços de interesse.
|
43
|
+
*/
|
14
44
|
interestedIn: string[];
|
15
|
-
|
45
|
+
/**
|
46
|
+
* Data e hora do último contato.
|
47
|
+
**/
|
48
|
+
lastContacted?: Date;
|
49
|
+
/**
|
50
|
+
* Nome completo ou razão social do lead.
|
51
|
+
**/
|
16
52
|
name: string;
|
53
|
+
/**
|
54
|
+
* Notas ou observações adicionais.
|
55
|
+
* */
|
17
56
|
note?: string;
|
57
|
+
/**
|
58
|
+
* Fonte de origem do lead.
|
59
|
+
**/
|
60
|
+
origin: LeadOriginEnum;
|
61
|
+
/**
|
62
|
+
* Id do afiliado responsável pelo lead.
|
63
|
+
*/
|
64
|
+
partnerId: string;
|
65
|
+
/**
|
66
|
+
* Número de telefone principal para contato.
|
67
|
+
*/
|
18
68
|
phoneNumber?: string;
|
69
|
+
/**
|
70
|
+
* Indica se o lead está em sandbox ou não.
|
71
|
+
*/
|
19
72
|
sandbox: boolean;
|
20
|
-
|
73
|
+
/**
|
74
|
+
* Status do lead.
|
75
|
+
*/
|
21
76
|
status: LeadStatusEnum;
|
22
|
-
|
23
|
-
|
77
|
+
/**
|
78
|
+
* Lista de tags ou categorias para ajudar na segmentação e busca.
|
79
|
+
*/
|
80
|
+
tags: string[];
|
81
|
+
/**
|
82
|
+
* Data e hora da última atualização.
|
83
|
+
*/
|
84
|
+
updatedAt: Date;
|
24
85
|
}
|
@@ -13,7 +13,7 @@ export declare class OrderEntity implements IOrder {
|
|
13
13
|
cancellation: OrderCancellationEntity;
|
14
14
|
companyId: string;
|
15
15
|
containerId: string;
|
16
|
-
createdAt:
|
16
|
+
createdAt: Date;
|
17
17
|
customer: OrderCustomerEntity;
|
18
18
|
id: string;
|
19
19
|
items: OrderItemEntity[];
|
@@ -22,7 +22,7 @@ export declare class OrderEntity implements IOrder {
|
|
22
22
|
sandbox: boolean;
|
23
23
|
status: OrderStatusEnum;
|
24
24
|
total: OrderTotalEntity;
|
25
|
-
updatedAt:
|
25
|
+
updatedAt: Date;
|
26
26
|
version: string;
|
27
27
|
constructor(data?: Partial<OrderEntity>);
|
28
28
|
}
|
@@ -14,7 +14,7 @@ var OrderEntity = /** @class */ (function () {
|
|
14
14
|
this.cancellation = new cancellation_entity_1.OrderCancellationEntity();
|
15
15
|
this.companyId = '';
|
16
16
|
this.containerId = '';
|
17
|
-
this.createdAt = Date
|
17
|
+
this.createdAt = new Date();
|
18
18
|
this.customer = new customer_entity_1.OrderCustomerEntity();
|
19
19
|
this.id = '';
|
20
20
|
this.items = [];
|
@@ -23,7 +23,7 @@ var OrderEntity = /** @class */ (function () {
|
|
23
23
|
this.sandbox = false;
|
24
24
|
this.status = enums_1.OrderStatusEnum.PENDING;
|
25
25
|
this.total = new total_entity_1.OrderTotalEntity();
|
26
|
-
this.updatedAt = Date
|
26
|
+
this.updatedAt = new Date();
|
27
27
|
this.version = '';
|
28
28
|
if (data) {
|
29
29
|
for (var key in data) {
|
@@ -12,7 +12,7 @@ export interface IOrder {
|
|
12
12
|
cancellation: IOrderCancellation;
|
13
13
|
companyId: string;
|
14
14
|
containerId: string;
|
15
|
-
createdAt:
|
15
|
+
createdAt: Date;
|
16
16
|
customer: IOrderCustomer;
|
17
17
|
id: string;
|
18
18
|
sandbox: boolean;
|
@@ -21,6 +21,6 @@ export interface IOrder {
|
|
21
21
|
salesChannel: string;
|
22
22
|
status: OrderStatusEnum;
|
23
23
|
total: IOrderTotal;
|
24
|
-
updatedAt:
|
24
|
+
updatedAt: Date;
|
25
25
|
version: string;
|
26
26
|
}
|
package/dist/package.json
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
import { IPlanFeature } from '../interfaces';
|
2
2
|
export declare class PlanFeatureEntity implements IPlanFeature {
|
3
|
-
createdAt:
|
3
|
+
createdAt: Date;
|
4
4
|
id: string;
|
5
5
|
identifier: string;
|
6
6
|
important: boolean;
|
7
7
|
name: string;
|
8
8
|
planId: string;
|
9
9
|
position: number;
|
10
|
-
updatedAt:
|
10
|
+
updatedAt: Date;
|
11
11
|
value: number;
|
12
12
|
constructor(data?: Partial<PlanFeatureEntity>);
|
13
13
|
}
|
@@ -6,14 +6,14 @@ var PlanFeatureEntity = /** @class */ (function () {
|
|
6
6
|
// #region Constructors (1)
|
7
7
|
function PlanFeatureEntity(data) {
|
8
8
|
// #region Properties (9)
|
9
|
-
this.createdAt = Date
|
9
|
+
this.createdAt = new Date();
|
10
10
|
this.id = '';
|
11
11
|
this.identifier = '';
|
12
12
|
this.important = false;
|
13
13
|
this.name = '';
|
14
14
|
this.planId = '';
|
15
15
|
this.position = 0;
|
16
|
-
this.updatedAt = Date
|
16
|
+
this.updatedAt = new Date();
|
17
17
|
this.value = 0;
|
18
18
|
if (data) {
|
19
19
|
for (var key in data) {
|
@@ -3,7 +3,7 @@ import { PlanIdentifierEnum } from '../enums/plans-identifier.enum';
|
|
3
3
|
import { IPlan } from '../interfaces';
|
4
4
|
import { PlanFeatureEntity } from './feature.entity';
|
5
5
|
export declare class PlanEntity implements IPlan {
|
6
|
-
createdAt:
|
6
|
+
createdAt: Date;
|
7
7
|
features: PlanFeatureEntity[];
|
8
8
|
id: string;
|
9
9
|
identifier: PlanIdentifierEnum;
|
@@ -11,6 +11,6 @@ export declare class PlanEntity implements IPlan {
|
|
11
11
|
intervalType: IntervalTypeEnum;
|
12
12
|
name: string;
|
13
13
|
price: number;
|
14
|
-
updatedAt:
|
14
|
+
updatedAt: Date;
|
15
15
|
constructor(data?: Partial<PlanEntity>);
|
16
16
|
}
|
@@ -8,7 +8,7 @@ var PlanEntity = /** @class */ (function () {
|
|
8
8
|
// #region Constructors (1)
|
9
9
|
function PlanEntity(data) {
|
10
10
|
// #region Properties (9)
|
11
|
-
this.createdAt = Date
|
11
|
+
this.createdAt = new Date();
|
12
12
|
this.features = [];
|
13
13
|
this.id = '';
|
14
14
|
this.identifier = plans_identifier_enum_1.PlanIdentifierEnum.NATIGO;
|
@@ -16,7 +16,7 @@ var PlanEntity = /** @class */ (function () {
|
|
16
16
|
this.intervalType = enums_1.IntervalTypeEnum.MONTHS;
|
17
17
|
this.name = '';
|
18
18
|
this.price = 0;
|
19
|
-
this.updatedAt = Date
|
19
|
+
this.updatedAt = new Date();
|
20
20
|
if (data) {
|
21
21
|
for (var key in data) {
|
22
22
|
if (data.hasOwnProperty(key) && key in this) {
|