cecon-interfaces 1.6.86 → 1.6.89

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.
Files changed (39) hide show
  1. package/dist/esm2022/payio/activation-key/entities/activation-key.entity.mjs +4 -3
  2. package/dist/esm2022/payio/activation-key/interfaces/i-activation-key.mjs +1 -1
  3. package/dist/esm2022/payio/admins/entities/admin.entity.mjs +5 -3
  4. package/dist/esm2022/payio/admins/interfaces/i-admin.mjs +1 -1
  5. package/dist/esm2022/payio/device/entities/device.entity.mjs +5 -4
  6. package/dist/esm2022/payio/device/interfaces/i-device.mjs +1 -1
  7. package/dist/esm2022/payio/members/entities/member.entity.mjs +2 -1
  8. package/dist/esm2022/payio/members/interfaces/i-member.mjs +1 -1
  9. package/dist/esm2022/payio/resume-queues/entities/resume-queue.entity.mjs +13 -2
  10. package/dist/esm2022/payio/resume-queues/interfaces/i-resume-queue.mjs +1 -1
  11. package/dist/esm2022/payio/tokens/entities/token.entity.mjs +4 -3
  12. package/dist/esm2022/payio/tokens/interfaces/i-token.mjs +1 -1
  13. package/dist/esm2022/users/entities/user.entity.mjs +5 -3
  14. package/dist/esm2022/users/interfaces/i-user.mjs +1 -1
  15. package/dist/fesm2022/cecon-interfaces.mjs +31 -12
  16. package/dist/fesm2022/cecon-interfaces.mjs.map +1 -1
  17. package/dist/package.json +1 -1
  18. package/dist/payio/activation-key/entities/activation-key.entity.d.ts +1 -0
  19. package/dist/payio/activation-key/entities/activation-key.entity.js +3 -2
  20. package/dist/payio/activation-key/interfaces/i-activation-key.d.ts +1 -0
  21. package/dist/payio/admins/entities/admin.entity.d.ts +2 -0
  22. package/dist/payio/admins/entities/admin.entity.js +4 -2
  23. package/dist/payio/admins/interfaces/i-admin.d.ts +2 -0
  24. package/dist/payio/device/entities/device.entity.d.ts +2 -1
  25. package/dist/payio/device/entities/device.entity.js +4 -3
  26. package/dist/payio/device/interfaces/i-device.d.ts +2 -1
  27. package/dist/payio/members/entities/member.entity.d.ts +1 -0
  28. package/dist/payio/members/entities/member.entity.js +1 -0
  29. package/dist/payio/members/interfaces/i-member.d.ts +1 -0
  30. package/dist/payio/resume-queues/entities/resume-queue.entity.d.ts +2 -1
  31. package/dist/payio/resume-queues/entities/resume-queue.entity.js +11 -3
  32. package/dist/payio/resume-queues/interfaces/i-resume-queue.d.ts +1 -1
  33. package/dist/payio/tokens/entities/token.entity.d.ts +1 -0
  34. package/dist/payio/tokens/entities/token.entity.js +3 -2
  35. package/dist/payio/tokens/interfaces/i-token.d.ts +1 -0
  36. package/dist/users/entities/user.entity.d.ts +2 -0
  37. package/dist/users/entities/user.entity.js +4 -2
  38. package/dist/users/interfaces/i-user.d.ts +2 -0
  39. package/package.json +1 -1
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.6.86",
3
+ "version": "1.6.89",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -17,6 +17,7 @@ export declare class PayioActivationKeyEntity implements IPayioActivationKey {
17
17
  expirationDate: Date | null;
18
18
  id: string;
19
19
  logs: string[];
20
+ sandbox: boolean;
20
21
  status: EPayuioActivationStatus;
21
22
  usageLimit: number;
22
23
  usedCount: number;
@@ -3,10 +3,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.PayioActivationKeyEntity = void 0;
4
4
  var activation_key_status_enum_1 = require("../enums/activation-key-status.enum");
5
5
  var PayioActivationKeyEntity = /** @class */ (function () {
6
- // #endregion Properties (19)
6
+ // #endregion Properties (20)
7
7
  // #region Constructors (1)
8
8
  function PayioActivationKeyEntity(data) {
9
- // #region Properties (19)
9
+ // #region Properties (20)
10
10
  this.activationDate = null;
11
11
  this.activationReleasedId = '';
12
12
  this.appId = null;
@@ -23,6 +23,7 @@ var PayioActivationKeyEntity = /** @class */ (function () {
23
23
  this.expirationDate = null;
24
24
  this.id = '';
25
25
  this.logs = [];
26
+ this.sandbox = false;
26
27
  this.status = activation_key_status_enum_1.EPayuioActivationStatus.PENDING;
27
28
  this.usageLimit = 0;
28
29
  this.usedCount = 0;
@@ -9,6 +9,7 @@ export interface IPayioActivationKey {
9
9
  companyName: string | null;
10
10
  createdAt: Date;
11
11
  createdBy: string | null;
12
+ sandbox: boolean;
12
13
  deviceId: string | null;
13
14
  distributorId: string | null;
14
15
  distributorKey: string | null;
@@ -6,8 +6,10 @@ export declare class PayioAdminEntity implements IPayioAdmin {
6
6
  createdAt: Date;
7
7
  id: string;
8
8
  imageUrl: string | null;
9
+ internationalCode: string;
9
10
  lastAccessAt: Date | null;
10
11
  name: string;
12
+ phoneNumber: string;
11
13
  role: EPayioAdminRole;
12
14
  tags: string[];
13
15
  updatedAt: Date;
@@ -3,17 +3,19 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.PayioAdminEntity = void 0;
4
4
  var role_enum_1 = require("../enums/role.enum");
5
5
  var PayioAdminEntity = /** @class */ (function () {
6
- // #endregion Properties (11)
6
+ // #endregion Properties (13)
7
7
  // #region Constructors (1)
8
8
  function PayioAdminEntity(data) {
9
- // #region Properties (11)
9
+ // #region Properties (13)
10
10
  this.accessCount = null;
11
11
  this.active = true;
12
12
  this.createdAt = new Date();
13
13
  this.id = '';
14
14
  this.imageUrl = null;
15
+ this.internationalCode = '55';
15
16
  this.lastAccessAt = null;
16
17
  this.name = '';
18
+ this.phoneNumber = '';
17
19
  this.role = role_enum_1.EPayioAdminRole.USER;
18
20
  this.tags = [];
19
21
  this.updatedAt = new Date();
@@ -5,8 +5,10 @@ export interface IPayioAdmin {
5
5
  createdAt: Date;
6
6
  id: string;
7
7
  imageUrl: string | null;
8
+ internationalCode: string;
8
9
  lastAccessAt: Date | null;
9
10
  name: string;
11
+ phoneNumber: string;
10
12
  role: EPayioAdminRole;
11
13
  tags: string[];
12
14
  updatedAt: Date;
@@ -2,6 +2,7 @@ import { IPayioDevice } from '../interfaces/i-device';
2
2
  import { PayioDeviceChefEntity } from './device-chef.entity';
3
3
  export declare class PayioDeviceEntity implements IPayioDevice {
4
4
  active: boolean;
5
+ chef: PayioDeviceChefEntity | null;
5
6
  companyId: string;
6
7
  containerId: string;
7
8
  createdAt: Date;
@@ -9,8 +10,8 @@ export declare class PayioDeviceEntity implements IPayioDevice {
9
10
  id: string;
10
11
  lastAccess: Date;
11
12
  name: string;
13
+ sandbox: boolean;
12
14
  tags: string[];
13
15
  updatedAt: Date;
14
- chef: PayioDeviceChefEntity | null;
15
16
  constructor(data?: Partial<PayioDeviceEntity>);
16
17
  }
@@ -2,11 +2,12 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.PayioDeviceEntity = void 0;
4
4
  var PayioDeviceEntity = /** @class */ (function () {
5
- // #endregion Properties (10)
5
+ // #endregion Properties (12)
6
6
  // #region Constructors (1)
7
7
  function PayioDeviceEntity(data) {
8
- // #region Properties (10)
8
+ // #region Properties (12)
9
9
  this.active = false;
10
+ this.chef = null;
10
11
  this.companyId = '';
11
12
  this.containerId = '';
12
13
  this.createdAt = new Date();
@@ -14,9 +15,9 @@ var PayioDeviceEntity = /** @class */ (function () {
14
15
  this.id = '';
15
16
  this.lastAccess = new Date();
16
17
  this.name = '';
18
+ this.sandbox = false;
17
19
  this.tags = [];
18
20
  this.updatedAt = new Date();
19
- this.chef = null;
20
21
  if (data) {
21
22
  for (var key in data) {
22
23
  if (data.hasOwnProperty(key) && key in this) {
@@ -1,6 +1,7 @@
1
1
  import { IPayioDeviceChef } from './i-device-chef';
2
2
  export interface IPayioDevice {
3
3
  active: boolean;
4
+ chef: IPayioDeviceChef | null;
4
5
  companyId: string;
5
6
  containerId: string;
6
7
  createdAt: Date;
@@ -8,7 +9,7 @@ export interface IPayioDevice {
8
9
  id: string;
9
10
  lastAccess: Date;
10
11
  name: string;
12
+ sandbox: boolean;
11
13
  tags: string[];
12
- chef: IPayioDeviceChef | null;
13
14
  updatedAt: Date;
14
15
  }
@@ -12,6 +12,7 @@ export declare class PayioMemberEntity implements IPayioMember {
12
12
  lastAccessAt: Date | null;
13
13
  name: string;
14
14
  roles: PayioMemberRoleEntity[];
15
+ sandbox: boolean;
15
16
  tags: string[];
16
17
  updatedAt: Date;
17
18
  userId: string;
@@ -17,6 +17,7 @@ var PayioMemberEntity = /** @class */ (function () {
17
17
  this.lastAccessAt = null;
18
18
  this.name = '';
19
19
  this.roles = [];
20
+ this.sandbox = false;
20
21
  this.tags = [];
21
22
  this.updatedAt = new Date();
22
23
  this.userId = '';
@@ -11,6 +11,7 @@ export interface IPayioMember {
11
11
  lastAccessAt: Date | null;
12
12
  name: string;
13
13
  roles: IPayioMemberRole[];
14
+ sandbox: boolean;
14
15
  tags: string[];
15
16
  updatedAt: Date;
16
17
  userId: string;
@@ -5,11 +5,12 @@ export declare class PayioResumeQueueEntity implements IPayioResumeQueue {
5
5
  action: PayioResumeQueueActionEnum;
6
6
  attempts: number;
7
7
  createdAt: Date;
8
+ data: string | null;
8
9
  entityId: string;
9
10
  entityType: PayioEntitiesEnum;
10
11
  error: string;
11
12
  id: string;
12
13
  lastAttemptAt: Date;
13
- data: string | null;
14
14
  status: PayioResumeQueueStatusEnum;
15
+ constructor(data?: Partial<PayioResumeQueueEntity>);
15
16
  }
@@ -4,19 +4,27 @@ exports.PayioResumeQueueEntity = void 0;
4
4
  var enums_1 = require("../enums");
5
5
  var resume_queue_action_enum_1 = require("../enums/resume-queue-action.enum");
6
6
  var PayioResumeQueueEntity = /** @class */ (function () {
7
- function PayioResumeQueueEntity() {
7
+ // #endregion Properties (10)
8
+ // #region Constructors (1)
9
+ function PayioResumeQueueEntity(data) {
8
10
  // #region Properties (10)
9
11
  this.action = resume_queue_action_enum_1.PayioResumeQueueActionEnum.create;
10
12
  this.attempts = 0;
11
13
  this.createdAt = new Date();
14
+ this.data = null;
12
15
  this.entityId = '';
13
16
  this.entityType = enums_1.PayioEntitiesEnum.aplications;
14
17
  this.error = '';
15
18
  this.id = '';
16
19
  this.lastAttemptAt = new Date();
17
- this.data = null;
18
20
  this.status = enums_1.PayioResumeQueueStatusEnum.pending;
19
- // #endregion Properties (10)
21
+ if (data) {
22
+ for (var key in data) {
23
+ if (data.hasOwnProperty(key) && key in this) {
24
+ this[key] = data[key];
25
+ }
26
+ }
27
+ }
20
28
  }
21
29
  return PayioResumeQueueEntity;
22
30
  }());
@@ -4,11 +4,11 @@ export interface IPayioResumeQueue {
4
4
  action: PayioResumeQueueActionEnum;
5
5
  attempts: number;
6
6
  createdAt: Date;
7
+ data: string | null;
7
8
  entityId: string;
8
9
  entityType: PayioEntitiesEnum;
9
10
  error: string;
10
11
  id: string;
11
12
  lastAttemptAt: Date;
12
- data: string | null;
13
13
  status: PayioResumeQueueStatusEnum;
14
14
  }
@@ -8,6 +8,7 @@ export declare class PayioTokenEntity implements IPayioToken {
8
8
  isRevoked: boolean;
9
9
  refreshToken: string;
10
10
  revokedAt: Date | null;
11
+ sandbox: boolean;
11
12
  updatedAt: Date;
12
13
  userAgent: string | null;
13
14
  userId: string;
@@ -2,10 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.PayioTokenEntity = void 0;
4
4
  var PayioTokenEntity = /** @class */ (function () {
5
- // #endregion Properties (11)
5
+ // #endregion Properties (12)
6
6
  // #region Constructors (1)
7
7
  function PayioTokenEntity(data) {
8
- // #region Properties (11)
8
+ // #region Properties (12)
9
9
  this.createdAt = new Date();
10
10
  this.deviceId = null;
11
11
  this.expiresAt = new Date();
@@ -14,6 +14,7 @@ var PayioTokenEntity = /** @class */ (function () {
14
14
  this.isRevoked = false;
15
15
  this.refreshToken = '';
16
16
  this.revokedAt = null;
17
+ this.sandbox = false;
17
18
  this.updatedAt = new Date();
18
19
  this.userAgent = null;
19
20
  this.userId = '';
@@ -7,6 +7,7 @@ export interface IPayioToken {
7
7
  isRevoked: boolean;
8
8
  refreshToken: string;
9
9
  revokedAt: Date | null;
10
+ sandbox: boolean;
10
11
  updatedAt: Date;
11
12
  userAgent: string | null;
12
13
  userId: string;
@@ -1,6 +1,7 @@
1
1
  import { MemberTypeEnum } from '../../member/enums';
2
2
  import { IUser } from '../interfaces';
3
3
  export declare class UserEntity implements IUser {
4
+ accessCount: number;
4
5
  active: boolean;
5
6
  createdAt: Date;
6
7
  currentCompanyId: string | null;
@@ -10,6 +11,7 @@ export declare class UserEntity implements IUser {
10
11
  id: string;
11
12
  imageUrl: string | null;
12
13
  internationalCode: string;
14
+ lastAccessAt: Date;
13
15
  name: string;
14
16
  phoneNumber: string;
15
17
  tags: string[];
@@ -2,10 +2,11 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.UserEntity = void 0;
4
4
  var UserEntity = /** @class */ (function () {
5
- // #endregion Properties (14)
5
+ // #endregion Properties (16)
6
6
  // #region Constructors (1)
7
7
  function UserEntity(data) {
8
- // #region Properties (14)
8
+ // #region Properties (16)
9
+ this.accessCount = 0;
9
10
  this.active = true;
10
11
  this.createdAt = new Date();
11
12
  this.currentCompanyId = null;
@@ -15,6 +16,7 @@ var UserEntity = /** @class */ (function () {
15
16
  this.id = '';
16
17
  this.imageUrl = null;
17
18
  this.internationalCode = '55';
19
+ this.lastAccessAt = new Date();
18
20
  this.name = '';
19
21
  this.phoneNumber = '';
20
22
  this.tags = [];
@@ -8,6 +8,8 @@ export interface IUser {
8
8
  imageUrl: string | null;
9
9
  internationalCode: string;
10
10
  name: string;
11
+ accessCount: number;
12
+ lastAccessAt: Date;
11
13
  phoneNumber: string;
12
14
  tags: string[];
13
15
  type: MemberTypeEnum | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.6.86",
3
+ "version": "1.6.89",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",