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.
Files changed (64) hide show
  1. package/dist/company/entities/company.entity.d.ts +2 -2
  2. package/dist/company/entities/company.entity.js +2 -2
  3. package/dist/company/interfaces/i-company.d.ts +2 -2
  4. package/dist/device/entities/device.entity.d.ts +2 -2
  5. package/dist/device/entities/device.entity.js +2 -2
  6. package/dist/device/entities/installed-apps.entity.d.ts +5 -5
  7. package/dist/device/entities/installed-apps.entity.js +5 -5
  8. package/dist/device/interfaces/i-device.d.ts +2 -2
  9. package/dist/device/interfaces/i-installed-apps.d.ts +5 -5
  10. package/dist/esm2022/company/entities/company.entity.mjs +3 -3
  11. package/dist/esm2022/company/interfaces/i-company.mjs +1 -1
  12. package/dist/esm2022/device/entities/device.entity.mjs +3 -3
  13. package/dist/esm2022/device/entities/installed-apps.entity.mjs +6 -6
  14. package/dist/esm2022/device/interfaces/i-device.mjs +1 -1
  15. package/dist/esm2022/device/interfaces/i-installed-apps.mjs +1 -1
  16. package/dist/esm2022/general/entities/base.entity.mjs +3 -3
  17. package/dist/esm2022/general/entities/payment-method.entity.mjs +3 -3
  18. package/dist/esm2022/general/entities/rating.entity.mjs +2 -2
  19. package/dist/esm2022/general/interfaces/i-base.mjs +1 -1
  20. package/dist/esm2022/general/interfaces/i-payment-method.mjs +1 -1
  21. package/dist/esm2022/general/interfaces/i-rating.mjs +1 -1
  22. package/dist/esm2022/invite/entities/invite.entity.mjs +4 -4
  23. package/dist/esm2022/invite/interfaces/i-invite.mjs +1 -1
  24. package/dist/esm2022/lead/entities/lead.entity.mjs +4 -4
  25. package/dist/esm2022/lead/interfaces/i-lead.mjs +1 -1
  26. package/dist/esm2022/order/entities/order.entity.mjs +3 -3
  27. package/dist/esm2022/order/interfaces/i-order.mjs +1 -1
  28. package/dist/esm2022/partner/entities/partner.entity.mjs +2 -2
  29. package/dist/esm2022/partner/interfaces/i-partner.mjs +1 -1
  30. package/dist/esm2022/plan/entities/feature.entity.mjs +3 -3
  31. package/dist/esm2022/plan/entities/plan.entity.mjs +3 -3
  32. package/dist/esm2022/plan/interfaces/i-feature.mjs +1 -1
  33. package/dist/esm2022/plan/interfaces/i-plan.mjs +1 -1
  34. package/dist/fesm2022/cecon-interfaces.mjs +22 -22
  35. package/dist/fesm2022/cecon-interfaces.mjs.map +1 -1
  36. package/dist/general/entities/base.entity.d.ts +2 -2
  37. package/dist/general/entities/base.entity.js +2 -2
  38. package/dist/general/entities/payment-method.entity.d.ts +2 -2
  39. package/dist/general/entities/payment-method.entity.js +2 -2
  40. package/dist/general/entities/rating.entity.d.ts +1 -1
  41. package/dist/general/entities/rating.entity.js +1 -1
  42. package/dist/general/interfaces/i-base.d.ts +2 -2
  43. package/dist/general/interfaces/i-payment-method.d.ts +2 -2
  44. package/dist/general/interfaces/i-rating.d.ts +1 -1
  45. package/dist/invite/entities/invite.entity.d.ts +3 -3
  46. package/dist/invite/entities/invite.entity.js +3 -3
  47. package/dist/invite/interfaces/i-invite.d.ts +3 -3
  48. package/dist/lead/entities/lead.entity.d.ts +3 -3
  49. package/dist/lead/entities/lead.entity.js +3 -3
  50. package/dist/lead/interfaces/i-lead.d.ts +6 -5
  51. package/dist/order/entities/order.entity.d.ts +2 -2
  52. package/dist/order/entities/order.entity.js +2 -2
  53. package/dist/order/interfaces/i-order.d.ts +2 -2
  54. package/dist/package.json +1 -1
  55. package/dist/partner/entities/partner.entity.d.ts +1 -1
  56. package/dist/partner/entities/partner.entity.js +1 -1
  57. package/dist/partner/interfaces/i-partner.d.ts +1 -1
  58. package/dist/plan/entities/feature.entity.d.ts +2 -2
  59. package/dist/plan/entities/feature.entity.js +2 -2
  60. package/dist/plan/entities/plan.entity.d.ts +2 -2
  61. package/dist/plan/entities/plan.entity.js +2 -2
  62. package/dist/plan/interfaces/i-feature.d.ts +2 -2
  63. package/dist/plan/interfaces/i-plan.d.ts +2 -2
  64. package/package.json +1 -1
@@ -2,8 +2,8 @@ export declare class BaseEntity {
2
2
  active: boolean;
3
3
  companyId: string;
4
4
  containerId: string;
5
- createdAt: number;
5
+ createdAt: Date;
6
6
  id: string;
7
- updatedAt: number;
7
+ updatedAt: Date;
8
8
  constructor(data?: Partial<BaseEntity>);
9
9
  }
@@ -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.now();
13
+ this.createdAt = new Date();
14
14
  this.id = '';
15
- this.updatedAt = Date.now();
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: number;
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: number;
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 = 0;
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.now();
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) {
@@ -1,7 +1,7 @@
1
1
  import { IRating } from '../interfaces/i-rating';
2
2
  export declare class RatingEntity implements IRating {
3
3
  comment?: string;
4
- createdAt: number;
4
+ createdAt: Date;
5
5
  rating: number;
6
6
  userId: string;
7
7
  constructor(data?: Partial<RatingEntity>);
@@ -7,7 +7,7 @@ var RatingEntity = /** @class */ (function () {
7
7
  function RatingEntity(data) {
8
8
  // #region Properties (4)
9
9
  this.comment = '';
10
- this.createdAt = Date.now();
10
+ this.createdAt = new Date();
11
11
  this.rating = 5;
12
12
  this.userId = '';
13
13
  if (data) {
@@ -2,7 +2,7 @@ export interface IBase {
2
2
  active: boolean;
3
3
  companyId: string;
4
4
  containerId: string;
5
- createdAt: number;
5
+ createdAt: Date;
6
6
  id: string;
7
- updatedAt: number;
7
+ updatedAt: Date;
8
8
  }
@@ -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: number;
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: number;
17
+ updatedAt: Date;
18
18
  }
@@ -2,5 +2,5 @@ export interface IRating {
2
2
  userId: string;
3
3
  rating: number;
4
4
  comment?: string;
5
- createdAt: number;
5
+ createdAt: Date;
6
6
  }
@@ -5,11 +5,11 @@ export declare class InviteEntity implements IInvite {
5
5
  companyId: string;
6
6
  companyName: string;
7
7
  containerId: string;
8
- createdAt: number;
8
+ createdAt: Date;
9
9
  doc: string;
10
10
  docType: DocTypeEnum;
11
11
  email: string;
12
- expireAt: number;
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: number;
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.now();
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.now() + 86400000;
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.now();
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: number;
7
+ createdAt: Date;
8
8
  doc: string;
9
9
  docType: DocTypeEnum;
10
10
  email: string;
11
- expireAt: number;
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: number;
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: number;
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?: number;
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: number;
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.now();
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.now();
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.now();
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 produtos ou serviços de interesse.
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: number;
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?: number;
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: number;
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: number;
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: number;
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.now();
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.now();
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: number;
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: number;
24
+ updatedAt: Date;
25
25
  version: string;
26
26
  }
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.0.47",
3
+ "version": "1.0.48",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "dependencies": {
6
6
  "tslib": "^2.3.0"
@@ -19,7 +19,7 @@ export declare class PartnerEntity implements IPartner {
19
19
  pubsubTopic: string;
20
20
  sandbox: boolean;
21
21
  tags: string[];
22
- updatedAt: number;
22
+ updatedAt: Date;
23
23
  version: string;
24
24
  constructor(data?: Partial<PartnerEntity>);
25
25
  }
@@ -25,7 +25,7 @@ var PartnerEntity = /** @class */ (function () {
25
25
  this.pubsubTopic = '';
26
26
  this.sandbox = false;
27
27
  this.tags = [];
28
- this.updatedAt = 0;
28
+ this.updatedAt = new Date();
29
29
  this.version = '';
30
30
  if (data) {
31
31
  for (var key in data) {
@@ -18,6 +18,6 @@ export interface IPartner {
18
18
  pubsubTopic: string;
19
19
  sandbox: boolean;
20
20
  tags: string[];
21
- updatedAt: number;
21
+ updatedAt: Date;
22
22
  version: string;
23
23
  }
@@ -1,13 +1,13 @@
1
1
  import { IPlanFeature } from '../interfaces';
2
2
  export declare class PlanFeatureEntity implements IPlanFeature {
3
- createdAt: number;
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: number;
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.now();
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.now();
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: number;
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: number;
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.now();
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.now();
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) {
@@ -1,11 +1,11 @@
1
1
  export interface IPlanFeature {
2
- createdAt: number;
2
+ createdAt: Date;
3
3
  id: string;
4
4
  identifier: string;
5
5
  important: boolean;
6
6
  name: string;
7
7
  planId: string;
8
8
  position: number;
9
- updatedAt: number;
9
+ updatedAt: Date;
10
10
  value: number;
11
11
  }
@@ -7,8 +7,8 @@ export interface IPlan {
7
7
  identifier: PlanIdentifierEnum;
8
8
  interval: number;
9
9
  intervalType: IntervalTypeEnum;
10
- createdAt: number;
11
- updatedAt: number;
10
+ createdAt: Date;
11
+ updatedAt: Date;
12
12
  price: number;
13
13
  features: IPlanFeature[];
14
14
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.0.47",
3
+ "version": "1.0.48",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "dependencies": {},
6
6
  "peerDependencies": {},