cecon-interfaces 1.0.47 → 1.0.48
Sign up to get free protection for your applications and to get access to all the features.
- 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 +4 -4
- 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 +22 -22
- 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 +3 -3
- package/dist/lead/entities/lead.entity.js +3 -3
- package/dist/lead/interfaces/i-lead.d.ts +6 -5
- 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
|
}
|
@@ -11,7 +11,7 @@ export declare class LeadEntity implements ILead {
|
|
11
11
|
/**ID do agente ou parceiro que cadastrou o lead. */
|
12
12
|
assignedTo?: string;
|
13
13
|
/**Notas ou observações adicionais. */
|
14
|
-
createdAt:
|
14
|
+
createdAt: Date;
|
15
15
|
/**Tipo de documento (CPF, CNPJ, Passaporte, etc.). */
|
16
16
|
doc: string;
|
17
17
|
/**Identificador único do lead. */
|
@@ -22,7 +22,7 @@ export declare class LeadEntity implements ILead {
|
|
22
22
|
/**Fonte de origem do lead. */
|
23
23
|
interestedIn: string[];
|
24
24
|
/**Data e hora de criação. */
|
25
|
-
lastContacted?:
|
25
|
+
lastContacted?: Date;
|
26
26
|
/**Número do documento conforme o tipo. */
|
27
27
|
name: string;
|
28
28
|
note?: string;
|
@@ -37,6 +37,6 @@ export declare class LeadEntity implements ILead {
|
|
37
37
|
status: LeadStatusEnum;
|
38
38
|
/**ID do colaborador responsável pelo lead. */
|
39
39
|
tags: string[];
|
40
|
-
updatedAt:
|
40
|
+
updatedAt: Date;
|
41
41
|
constructor(data?: Partial<LeadEntity>);
|
42
42
|
}
|
@@ -17,7 +17,7 @@ var LeadEntity = /** @class */ (function () {
|
|
17
17
|
/**ID do agente ou parceiro que cadastrou o lead. */
|
18
18
|
this.assignedTo = '';
|
19
19
|
/**Notas ou observações adicionais. */
|
20
|
-
this.createdAt = Date
|
20
|
+
this.createdAt = new Date();
|
21
21
|
/**Tipo de documento (CPF, CNPJ, Passaporte, etc.). */
|
22
22
|
this.doc = '';
|
23
23
|
/**Identificador único do lead. */
|
@@ -28,7 +28,7 @@ var LeadEntity = /** @class */ (function () {
|
|
28
28
|
/**Fonte de origem do lead. */
|
29
29
|
this.interestedIn = [];
|
30
30
|
/**Data e hora de criação. */
|
31
|
-
this.lastContacted = Date
|
31
|
+
this.lastContacted = new Date();
|
32
32
|
/**Número do documento conforme o tipo. */
|
33
33
|
this.name = '';
|
34
34
|
this.note = '';
|
@@ -43,7 +43,7 @@ var LeadEntity = /** @class */ (function () {
|
|
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) {
|
@@ -2,8 +2,9 @@ import { LeadOriginEnum } from '../../general/enums';
|
|
2
2
|
import { LeadStatusEnum } from '../enums';
|
3
3
|
export interface ILead {
|
4
4
|
/**
|
5
|
-
* Lista de
|
6
|
-
|
5
|
+
* Lista de atividades ou eventos relacionados ao lead.
|
6
|
+
* Exemplo: ['Feira de negócios', 'Evento de lançamento', 'Reunião']
|
7
|
+
* */
|
7
8
|
activity?: string[];
|
8
9
|
/**
|
9
10
|
* Outros endereços de e-mail, se disponíveis.
|
@@ -20,7 +21,7 @@ export interface ILead {
|
|
20
21
|
/**
|
21
22
|
* Data e hora de criação.
|
22
23
|
**/
|
23
|
-
createdAt:
|
24
|
+
createdAt: Date;
|
24
25
|
/**
|
25
26
|
* Número do documento conforme o tipo.
|
26
27
|
**/
|
@@ -44,7 +45,7 @@ export interface ILead {
|
|
44
45
|
/**
|
45
46
|
* Data e hora do último contato.
|
46
47
|
**/
|
47
|
-
lastContacted?:
|
48
|
+
lastContacted?: Date;
|
48
49
|
/**
|
49
50
|
* Nome completo ou razão social do lead.
|
50
51
|
**/
|
@@ -80,5 +81,5 @@ export interface ILead {
|
|
80
81
|
/**
|
81
82
|
* Data e hora da última atualização.
|
82
83
|
*/
|
83
|
-
updatedAt:
|
84
|
+
updatedAt: Date;
|
84
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) {
|