cecon-interfaces 1.9.49 → 1.9.52

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 (30) hide show
  1. package/dist/esm2022/payio/cards/entities/card.entity.mjs +3 -3
  2. package/dist/esm2022/payio/cards/enums/index.mjs +3 -1
  3. package/dist/esm2022/payio/cards/enums/status.enum.mjs +2 -1
  4. package/dist/esm2022/payio/cards/interfaces/i-card.mjs +1 -1
  5. package/dist/esm2022/payio/user/entities/index.mjs +2 -1
  6. package/dist/esm2022/payio/user/entities/user-sessions.entity.mjs +15 -0
  7. package/dist/esm2022/payio/user/entities/user.entity.mjs +2 -3
  8. package/dist/esm2022/payio/user/interfaces/i-user-sessions.mjs +2 -0
  9. package/dist/esm2022/payio/user/interfaces/i-user.mjs +1 -1
  10. package/dist/esm2022/payio/user/interfaces/index.mjs +1 -1
  11. package/dist/fesm2022/cecon-interfaces.mjs +34 -19
  12. package/dist/fesm2022/cecon-interfaces.mjs.map +1 -1
  13. package/dist/payio/cards/entities/card.entity.d.ts +2 -2
  14. package/dist/payio/cards/entities/card.entity.js +2 -2
  15. package/dist/payio/cards/enums/index.d.ts +2 -0
  16. package/dist/payio/cards/enums/index.js +5 -1
  17. package/dist/payio/cards/enums/status.enum.d.ts +2 -1
  18. package/dist/payio/cards/enums/status.enum.js +1 -0
  19. package/dist/payio/cards/interfaces/i-card.d.ts +8 -8
  20. package/dist/payio/user/entities/index.d.ts +1 -0
  21. package/dist/payio/user/entities/index.js +3 -1
  22. package/dist/payio/user/entities/user-sessions.entity.d.ts +7 -0
  23. package/dist/payio/user/entities/user-sessions.entity.js +19 -0
  24. package/dist/payio/user/entities/user.entity.d.ts +2 -2
  25. package/dist/payio/user/entities/user.entity.js +1 -2
  26. package/dist/payio/user/interfaces/i-user-sessions.d.ts +5 -0
  27. package/dist/payio/user/interfaces/i-user-sessions.js +2 -0
  28. package/dist/payio/user/interfaces/i-user.d.ts +2 -2
  29. package/dist/payio/user/interfaces/index.d.ts +1 -0
  30. package/package.json +1 -1
@@ -24,8 +24,8 @@ export declare class PayioCardEntity implements IPayioCard {
24
24
  statusProduction: EPayioCardStatusProduction;
25
25
  tags: string[];
26
26
  type: EPayioCardType;
27
- unblockCode: string | null;
28
- unblockedAt: Date | null;
27
+ unLockCode: string | null;
28
+ unLockedAt: Date | null;
29
29
  updatedAt: Date;
30
30
  constructor(data?: Partial<PayioCardEntity>);
31
31
  }
@@ -27,8 +27,8 @@ var PayioCardEntity = /** @class */ (function () {
27
27
  this.statusProduction = status_production_enum_1.EPayioCardStatusProduction.PENDING;
28
28
  this.tags = [];
29
29
  this.type = type_enum_1.EPayioCardType.VIRTUAL;
30
- this.unblockCode = null;
31
- this.unblockedAt = null;
30
+ this.unLockCode = null;
31
+ this.unLockedAt = null;
32
32
  this.updatedAt = new Date();
33
33
  if (data) {
34
34
  for (var key in data) {
@@ -1,3 +1,5 @@
1
1
  export { EPayioCardAccountProvider } from './account-provider.enum';
2
2
  export { ECardMode } from './mode.enum';
3
3
  export { EPayioCardStatus } from './status.enum';
4
+ export { EPayioCardStatusProduction } from './status-production.enum';
5
+ export { EPayioCardType } from './type.enum';
@@ -1,9 +1,13 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.EPayioCardStatus = exports.ECardMode = exports.EPayioCardAccountProvider = void 0;
3
+ exports.EPayioCardType = exports.EPayioCardStatusProduction = exports.EPayioCardStatus = exports.ECardMode = exports.EPayioCardAccountProvider = void 0;
4
4
  var account_provider_enum_1 = require("./account-provider.enum");
5
5
  Object.defineProperty(exports, "EPayioCardAccountProvider", { enumerable: true, get: function () { return account_provider_enum_1.EPayioCardAccountProvider; } });
6
6
  var mode_enum_1 = require("./mode.enum");
7
7
  Object.defineProperty(exports, "ECardMode", { enumerable: true, get: function () { return mode_enum_1.ECardMode; } });
8
8
  var status_enum_1 = require("./status.enum");
9
9
  Object.defineProperty(exports, "EPayioCardStatus", { enumerable: true, get: function () { return status_enum_1.EPayioCardStatus; } });
10
+ var status_production_enum_1 = require("./status-production.enum");
11
+ Object.defineProperty(exports, "EPayioCardStatusProduction", { enumerable: true, get: function () { return status_production_enum_1.EPayioCardStatusProduction; } });
12
+ var type_enum_1 = require("./type.enum");
13
+ Object.defineProperty(exports, "EPayioCardType", { enumerable: true, get: function () { return type_enum_1.EPayioCardType; } });
@@ -4,5 +4,6 @@ export declare enum EPayioCardStatus {
4
4
  INACTIVE = "INACTIVE",
5
5
  CANCELLED = "CANCELLED",
6
6
  BLOCKED = "BLOCKED",
7
- SUSPENDED = "SUSPENDED"
7
+ SUSPENDED = "SUSPENDED",
8
+ LOCKED = "LOCKED"
8
9
  }
@@ -9,4 +9,5 @@ var EPayioCardStatus;
9
9
  EPayioCardStatus["CANCELLED"] = "CANCELLED";
10
10
  EPayioCardStatus["BLOCKED"] = "BLOCKED";
11
11
  EPayioCardStatus["SUSPENDED"] = "SUSPENDED";
12
+ EPayioCardStatus["LOCKED"] = "LOCKED";
12
13
  })(EPayioCardStatus || (exports.EPayioCardStatus = EPayioCardStatus = {}));
@@ -1,9 +1,9 @@
1
- import { ECardMode, EPayioCardStatus } from "../enums";
2
- import { EPayioCardStatusProduction } from "../enums/status-production.enum";
3
- import { EPayioCardType } from "../enums/type.enum";
4
- import { IPayioCardAccountProvider } from "./i-card-account-provider";
5
- import { IPayioCardConfig } from "./i-card-config";
6
- import { IPayioCardData } from "./i-card-data";
1
+ import { ECardMode, EPayioCardStatus } from '../enums';
2
+ import { EPayioCardStatusProduction } from '../enums/status-production.enum';
3
+ import { EPayioCardType } from '../enums/type.enum';
4
+ import { IPayioCardAccountProvider } from './i-card-account-provider';
5
+ import { IPayioCardConfig } from './i-card-config';
6
+ import { IPayioCardData } from './i-card-data';
7
7
  export interface IPayioCard {
8
8
  accountProvider: IPayioCardAccountProvider;
9
9
  active: boolean;
@@ -23,7 +23,7 @@ export interface IPayioCard {
23
23
  statusProduction: EPayioCardStatusProduction;
24
24
  tags: string[];
25
25
  type: EPayioCardType;
26
- unblockCode: string | null;
27
- unblockedAt: Date | null;
26
+ unLockCode: string | null;
27
+ unLockedAt: Date | null;
28
28
  updatedAt: Date;
29
29
  }
@@ -1,2 +1,3 @@
1
1
  export { PayioUserReportEntity, PayioUserReportEvidenceEntity } from './user-report.entity';
2
+ export { PayioUserSessionsEntity } from './user-sessions.entity';
2
3
  export { PayioUserEntity } from './user.entity';
@@ -1,8 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PayioUserEntity = exports.PayioUserReportEvidenceEntity = exports.PayioUserReportEntity = void 0;
3
+ exports.PayioUserEntity = exports.PayioUserSessionsEntity = exports.PayioUserReportEvidenceEntity = exports.PayioUserReportEntity = void 0;
4
4
  var user_report_entity_1 = require("./user-report.entity");
5
5
  Object.defineProperty(exports, "PayioUserReportEntity", { enumerable: true, get: function () { return user_report_entity_1.PayioUserReportEntity; } });
6
6
  Object.defineProperty(exports, "PayioUserReportEvidenceEntity", { enumerable: true, get: function () { return user_report_entity_1.PayioUserReportEvidenceEntity; } });
7
+ var user_sessions_entity_1 = require("./user-sessions.entity");
8
+ Object.defineProperty(exports, "PayioUserSessionsEntity", { enumerable: true, get: function () { return user_sessions_entity_1.PayioUserSessionsEntity; } });
7
9
  var user_entity_1 = require("./user.entity");
8
10
  Object.defineProperty(exports, "PayioUserEntity", { enumerable: true, get: function () { return user_entity_1.PayioUserEntity; } });
@@ -0,0 +1,7 @@
1
+ import { IPayioUserSessions } from '../interfaces/i-user-sessions';
2
+ export declare class PayioUserSessionsEntity implements IPayioUserSessions {
3
+ companyId: string | null;
4
+ companyName: string | null;
5
+ deviceId: string | null;
6
+ constructor(data?: Partial<PayioUserSessionsEntity>);
7
+ }
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PayioUserSessionsEntity = void 0;
4
+ var PayioUserSessionsEntity = /** @class */ (function () {
5
+ function PayioUserSessionsEntity(data) {
6
+ this.companyId = null;
7
+ this.companyName = null;
8
+ this.deviceId = null;
9
+ if (data) {
10
+ for (var key in data) {
11
+ if (data.hasOwnProperty(key) && key in this) {
12
+ this[key] = data[key];
13
+ }
14
+ }
15
+ }
16
+ }
17
+ return PayioUserSessionsEntity;
18
+ }());
19
+ exports.PayioUserSessionsEntity = PayioUserSessionsEntity;
@@ -1,15 +1,15 @@
1
1
  import { UserEntity } from '../../../users';
2
2
  import { IPayioUserReport } from '../interfaces';
3
3
  import { IPayioUser } from '../interfaces/i-user';
4
+ import { PayioUserSessionsEntity } from './user-sessions.entity';
4
5
  export declare class PayioUserEntity extends UserEntity implements IPayioUser {
5
6
  accessCode: string | null;
6
7
  accessCodeExpiration: Date | null;
7
8
  code: string | null;
8
- currentCompanyId: string | null;
9
- currentCompanyName: string | null;
10
9
  faceId: string | null;
11
10
  faceImage64: string | null;
12
11
  faceLastUpdate: Date | null;
13
12
  reports: IPayioUserReport[];
13
+ sessions: PayioUserSessionsEntity[];
14
14
  constructor(data?: Partial<PayioUserEntity>);
15
15
  }
@@ -24,12 +24,11 @@ var PayioUserEntity = /** @class */ (function (_super) {
24
24
  _this.accessCode = null;
25
25
  _this.accessCodeExpiration = null;
26
26
  _this.code = null;
27
- _this.currentCompanyId = null;
28
- _this.currentCompanyName = null;
29
27
  _this.faceId = null;
30
28
  _this.faceImage64 = null;
31
29
  _this.faceLastUpdate = null;
32
30
  _this.reports = [];
31
+ _this.sessions = [];
33
32
  if (data) {
34
33
  for (var key in data) {
35
34
  if (data.hasOwnProperty(key) && key in _this) {
@@ -0,0 +1,5 @@
1
+ export interface IPayioUserSessions {
2
+ companyId: string | null;
3
+ companyName: string | null;
4
+ deviceId: string | null;
5
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,11 +1,11 @@
1
1
  import { IUser } from '../../../users';
2
2
  import { IPayioUserReport } from './i-user-report';
3
+ import { IPayioUserSessions } from './i-user-sessions';
3
4
  export interface IPayioUser extends IUser {
4
5
  accessCode: string | null;
5
6
  accessCodeExpiration: Date | null;
6
7
  code: string | null;
7
- currentCompanyId: string | null;
8
- currentCompanyName: string | null;
8
+ sessions: IPayioUserSessions[];
9
9
  faceId: string | null;
10
10
  faceImage64: string | null;
11
11
  faceLastUpdate: Date | null;
@@ -1,2 +1,3 @@
1
1
  export { IPayioUser } from './i-user';
2
2
  export { IPayioUserReport, IPayioUserReportEvidences } from './i-user-report';
3
+ export { IPayioUserSessions } from './i-user-sessions';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.9.49",
3
+ "version": "1.9.52",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",