cecon-interfaces 1.8.34 → 1.8.36

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 (54) hide show
  1. package/dist/esm2022/natipay/user/entities/user.entity.mjs +3 -1
  2. package/dist/esm2022/natipay/user/interfaces/i-user.mjs +1 -1
  3. package/dist/esm2022/payio/chef-config/entities/webhook.entity.mjs +2 -1
  4. package/dist/esm2022/payio/chef-config/interfaces/i-webhook.mjs +1 -1
  5. package/dist/esm2022/payio/tabs/entities/tab.entity.mjs +4 -1
  6. package/dist/esm2022/payio/tabs/enums/index.mjs +2 -0
  7. package/dist/esm2022/payio/tabs/enums/status.enum.mjs +11 -0
  8. package/dist/esm2022/payio/tabs/interfaces/i-tab.mjs +1 -1
  9. package/dist/esm2022/payio/user/entities/index.mjs +2 -1
  10. package/dist/esm2022/payio/user/entities/user-report.entity.mjs +29 -0
  11. package/dist/esm2022/payio/user/entities/user.entity.mjs +10 -1
  12. package/dist/esm2022/payio/user/enums/evidence-type.enum.mjs +9 -0
  13. package/dist/esm2022/payio/user/enums/index.mjs +3 -0
  14. package/dist/esm2022/payio/user/enums/reports-type.enum.mjs +17 -0
  15. package/dist/esm2022/payio/user/interfaces/i-user-report.mjs +2 -0
  16. package/dist/esm2022/payio/user/interfaces/i-user.mjs +1 -1
  17. package/dist/esm2022/payio/user/interfaces/index.mjs +1 -1
  18. package/dist/esm2022/users/entities/user.entity.mjs +2 -8
  19. package/dist/esm2022/users/interfaces/i-user.mjs +1 -1
  20. package/dist/fesm2022/cecon-interfaces.mjs +80 -7
  21. package/dist/fesm2022/cecon-interfaces.mjs.map +1 -1
  22. package/dist/natipay/user/entities/user.entity.d.ts +2 -0
  23. package/dist/natipay/user/entities/user.entity.js +2 -0
  24. package/dist/natipay/user/interfaces/i-user.d.ts +2 -0
  25. package/dist/payio/chef-config/entities/webhook.entity.d.ts +1 -0
  26. package/dist/payio/chef-config/entities/webhook.entity.js +1 -0
  27. package/dist/payio/chef-config/interfaces/i-webhook.d.ts +6 -5
  28. package/dist/payio/tabs/entities/tab.entity.d.ts +3 -0
  29. package/dist/payio/tabs/entities/tab.entity.js +3 -0
  30. package/dist/payio/tabs/enums/index.d.ts +1 -0
  31. package/dist/payio/tabs/enums/index.js +5 -0
  32. package/dist/payio/tabs/enums/status.enum.d.ts +9 -0
  33. package/dist/payio/tabs/enums/status.enum.js +13 -0
  34. package/dist/payio/tabs/interfaces/i-tab.d.ts +3 -0
  35. package/dist/payio/user/entities/index.d.ts +1 -0
  36. package/dist/payio/user/entities/index.js +4 -1
  37. package/dist/payio/user/entities/user-report.entity.d.ts +21 -0
  38. package/dist/payio/user/entities/user-report.entity.js +33 -0
  39. package/dist/payio/user/entities/user.entity.d.ts +10 -0
  40. package/dist/payio/user/entities/user.entity.js +9 -0
  41. package/dist/payio/user/enums/evidence-type.enum.d.ts +7 -0
  42. package/dist/payio/user/enums/evidence-type.enum.js +11 -0
  43. package/dist/payio/user/enums/index.d.ts +2 -0
  44. package/dist/payio/user/enums/index.js +7 -0
  45. package/dist/payio/user/enums/reports-type.enum.d.ts +15 -0
  46. package/dist/payio/user/enums/reports-type.enum.js +19 -0
  47. package/dist/payio/user/interfaces/i-user-report.d.ts +20 -0
  48. package/dist/payio/user/interfaces/i-user-report.js +2 -0
  49. package/dist/payio/user/interfaces/i-user.d.ts +10 -0
  50. package/dist/payio/user/interfaces/index.d.ts +1 -0
  51. package/dist/users/entities/user.entity.d.ts +3 -6
  52. package/dist/users/entities/user.entity.js +0 -6
  53. package/dist/users/interfaces/i-user.d.ts +0 -3
  54. package/package.json +1 -1
@@ -1,6 +1,8 @@
1
1
  import { UserEntity } from '../../../users';
2
2
  import { INatipayUser } from '../interfaces/i-user';
3
3
  export declare class NatipayUserEntity extends UserEntity implements INatipayUser {
4
+ currentCompanyId: string | null;
5
+ currentCompanyName: string | null;
4
6
  currentContainerId?: string | null | undefined;
5
7
  currentContainerName?: string | null | undefined;
6
8
  constructor(data?: Partial<NatipayUserEntity>);
@@ -21,6 +21,8 @@ var NatipayUserEntity = /** @class */ (function (_super) {
21
21
  __extends(NatipayUserEntity, _super);
22
22
  function NatipayUserEntity(data) {
23
23
  var _this = _super.call(this) || this;
24
+ _this.currentCompanyId = null;
25
+ _this.currentCompanyName = null;
24
26
  _this.currentContainerId = null;
25
27
  _this.currentContainerName = null;
26
28
  if (data) {
@@ -1,5 +1,7 @@
1
1
  import { IUser } from '../../../users';
2
2
  export interface INatipayUser extends IUser {
3
+ currentCompanyId: string | null;
4
+ currentCompanyName: string | null;
3
5
  currentContainerId?: string | null;
4
6
  currentContainerName?: string | null;
5
7
  }
@@ -3,6 +3,7 @@ import { IPayioWebhook, IPayioWebhookHeader } from '../interfaces';
3
3
  export declare class PayioWebhookEntity implements IPayioWebhook {
4
4
  active: boolean;
5
5
  headers: PayioWebhookHeaderEntity[];
6
+ id: string;
6
7
  locked: boolean;
7
8
  method: EWebhookMethod;
8
9
  response: any;
@@ -6,6 +6,7 @@ var PayioWebhookEntity = /** @class */ (function () {
6
6
  function PayioWebhookEntity(data) {
7
7
  this.active = true;
8
8
  this.headers = [];
9
+ this.id = '';
9
10
  this.locked = false;
10
11
  this.method = __1.EWebhookMethod.POST;
11
12
  this.type = __1.EWebhookType.SEND_ORDER;
@@ -1,12 +1,13 @@
1
- import { EWebhookMethod, EWebhookType } from '../../..';
1
+ import { EWebhookMethod, EWebhookType } from "../../..";
2
2
  export interface IPayioWebhook {
3
3
  active: boolean;
4
- method: EWebhookMethod;
5
4
  headers: IPayioWebhookHeader[];
6
- url: string;
7
- type: EWebhookType;
8
- response: any;
5
+ id: string;
9
6
  locked: boolean;
7
+ method: EWebhookMethod;
8
+ response: any;
9
+ type: EWebhookType;
10
+ url: string;
10
11
  }
11
12
  export interface IPayioWebhookHeader {
12
13
  key: string;
@@ -1,9 +1,12 @@
1
+ import { EPayioTabStatus } from '../enums';
1
2
  import { IPayioTab } from '../interfaces/i-tab';
2
3
  export declare class PayioTabEntity implements IPayioTab {
3
4
  active: boolean;
4
5
  createdAt: Date;
5
6
  id: string;
6
7
  name: string;
8
+ status: EPayioTabStatus;
9
+ statusReason: string | null;
7
10
  tags: string[];
8
11
  updatedAt: Date;
9
12
  constructor(data?: Partial<PayioTabEntity>);
@@ -1,12 +1,15 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.PayioTabEntity = void 0;
4
+ var enums_1 = require("../enums");
4
5
  var PayioTabEntity = /** @class */ (function () {
5
6
  function PayioTabEntity(data) {
6
7
  this.active = true;
7
8
  this.createdAt = new Date();
8
9
  this.id = '';
9
10
  this.name = '';
11
+ this.status = enums_1.EPayioTabStatus.ACTIVE;
12
+ this.statusReason = null;
10
13
  this.tags = [];
11
14
  this.updatedAt = new Date();
12
15
  if (data) {
@@ -0,0 +1 @@
1
+ export { EPayioTabStatus } from './status.enum';
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EPayioTabStatus = void 0;
4
+ var status_enum_1 = require("./status.enum");
5
+ Object.defineProperty(exports, "EPayioTabStatus", { enumerable: true, get: function () { return status_enum_1.EPayioTabStatus; } });
@@ -0,0 +1,9 @@
1
+ export declare enum EPayioTabStatus {
2
+ ACTIVE = "active",
3
+ INACTIVE = "inactive",
4
+ SUSPENDED = "suspended",
5
+ LOST = "lost",
6
+ UNDER_REVIEW = "under_review",
7
+ BROKEN = "broken",
8
+ RESERVED = "reserved"
9
+ }
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EPayioTabStatus = void 0;
4
+ var EPayioTabStatus;
5
+ (function (EPayioTabStatus) {
6
+ EPayioTabStatus["ACTIVE"] = "active";
7
+ EPayioTabStatus["INACTIVE"] = "inactive";
8
+ EPayioTabStatus["SUSPENDED"] = "suspended";
9
+ EPayioTabStatus["LOST"] = "lost";
10
+ EPayioTabStatus["UNDER_REVIEW"] = "under_review";
11
+ EPayioTabStatus["BROKEN"] = "broken";
12
+ EPayioTabStatus["RESERVED"] = "reserved";
13
+ })(EPayioTabStatus || (exports.EPayioTabStatus = EPayioTabStatus = {}));
@@ -1,8 +1,11 @@
1
+ import { EPayioTabStatus } from '../enums';
1
2
  export interface IPayioTab {
2
3
  active: boolean;
3
4
  createdAt: Date;
4
5
  id: string;
5
6
  name: string | null;
7
+ status: EPayioTabStatus;
8
+ statusReason: string | null;
6
9
  updatedAt: Date;
7
10
  tags: string[];
8
11
  }
@@ -1 +1,2 @@
1
+ export { PayioUserReportEntity, PayioUserReportEvidenceEntity } from './user-report.entity';
1
2
  export { PayioUserEntity } from './user.entity';
@@ -1,5 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PayioUserEntity = void 0;
3
+ exports.PayioUserEntity = exports.PayioUserReportEvidenceEntity = exports.PayioUserReportEntity = void 0;
4
+ var user_report_entity_1 = require("./user-report.entity");
5
+ Object.defineProperty(exports, "PayioUserReportEntity", { enumerable: true, get: function () { return user_report_entity_1.PayioUserReportEntity; } });
6
+ Object.defineProperty(exports, "PayioUserReportEvidenceEntity", { enumerable: true, get: function () { return user_report_entity_1.PayioUserReportEvidenceEntity; } });
4
7
  var user_entity_1 = require("./user.entity");
5
8
  Object.defineProperty(exports, "PayioUserEntity", { enumerable: true, get: function () { return user_entity_1.PayioUserEntity; } });
@@ -0,0 +1,21 @@
1
+ import { UserReportEvidencesType, UserReportType } from '../enums';
2
+ import { IPayioUserReport, IPayioUserReportEvidences } from '../interfaces';
3
+ export declare class PayioUserReportEntity implements IPayioUserReport {
4
+ createdAt: Date;
5
+ data?: string | undefined;
6
+ description: string;
7
+ evidences: PayioUserReportEvidenceEntity[];
8
+ faceId: string;
9
+ faceImage64: string;
10
+ id: string;
11
+ type: UserReportType;
12
+ updatedAt: Date;
13
+ userId: string;
14
+ constructor(data?: Partial<PayioUserReportEntity>);
15
+ }
16
+ export declare class PayioUserReportEvidenceEntity implements IPayioUserReportEvidences {
17
+ base64?: string;
18
+ caption?: string;
19
+ type: UserReportEvidencesType;
20
+ url?: string;
21
+ }
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PayioUserReportEvidenceEntity = exports.PayioUserReportEntity = void 0;
4
+ var enums_1 = require("../enums");
5
+ var PayioUserReportEntity = /** @class */ (function () {
6
+ function PayioUserReportEntity(data) {
7
+ this.createdAt = new Date();
8
+ this.description = '';
9
+ this.evidences = [];
10
+ this.faceId = '';
11
+ this.faceImage64 = '';
12
+ this.id = '';
13
+ this.type = enums_1.UserReportType.OTHER;
14
+ this.updatedAt = new Date();
15
+ this.userId = '';
16
+ if (data) {
17
+ for (var key in data) {
18
+ if (data.hasOwnProperty(key) && key in this) {
19
+ this[key] = data[key];
20
+ }
21
+ }
22
+ }
23
+ }
24
+ return PayioUserReportEntity;
25
+ }());
26
+ exports.PayioUserReportEntity = PayioUserReportEntity;
27
+ var PayioUserReportEvidenceEntity = /** @class */ (function () {
28
+ function PayioUserReportEvidenceEntity() {
29
+ this.type = enums_1.UserReportEvidencesType.OTHER;
30
+ }
31
+ return PayioUserReportEvidenceEntity;
32
+ }());
33
+ exports.PayioUserReportEvidenceEntity = PayioUserReportEvidenceEntity;
@@ -1,5 +1,15 @@
1
1
  import { UserEntity } from '../../../users';
2
+ import { IPayioUserReport } from '../interfaces';
2
3
  import { IPayioUser } from '../interfaces/i-user';
3
4
  export declare class PayioUserEntity extends UserEntity implements IPayioUser {
5
+ accessCode: string | null;
6
+ accessCodeExpiration: Date | null;
7
+ code: string | null;
8
+ currentCompanyId: string | null;
9
+ currentCompanyName: string | null;
10
+ faceId: string | null;
11
+ faceImage64: string | null;
12
+ faceLastUpdate: Date | null;
13
+ reports: IPayioUserReport[];
4
14
  constructor(data?: Partial<PayioUserEntity>);
5
15
  }
@@ -21,6 +21,15 @@ var PayioUserEntity = /** @class */ (function (_super) {
21
21
  __extends(PayioUserEntity, _super);
22
22
  function PayioUserEntity(data) {
23
23
  var _this = _super.call(this) || this;
24
+ _this.accessCode = null;
25
+ _this.accessCodeExpiration = null;
26
+ _this.code = null;
27
+ _this.currentCompanyId = null;
28
+ _this.currentCompanyName = null;
29
+ _this.faceId = null;
30
+ _this.faceImage64 = null;
31
+ _this.faceLastUpdate = null;
32
+ _this.reports = [];
24
33
  if (data) {
25
34
  for (var key in data) {
26
35
  if (data.hasOwnProperty(key) && key in _this) {
@@ -0,0 +1,7 @@
1
+ export declare enum UserReportEvidencesType {
2
+ IMAGE = "image",
3
+ VIDEO = "video",
4
+ AUDIO = "audio",
5
+ TEXT = "text",
6
+ OTHER = "other"
7
+ }
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UserReportEvidencesType = void 0;
4
+ var UserReportEvidencesType;
5
+ (function (UserReportEvidencesType) {
6
+ UserReportEvidencesType["IMAGE"] = "image";
7
+ UserReportEvidencesType["VIDEO"] = "video";
8
+ UserReportEvidencesType["AUDIO"] = "audio";
9
+ UserReportEvidencesType["TEXT"] = "text";
10
+ UserReportEvidencesType["OTHER"] = "other";
11
+ })(UserReportEvidencesType || (exports.UserReportEvidencesType = UserReportEvidencesType = {}));
@@ -0,0 +1,2 @@
1
+ export { UserReportEvidencesType } from './evidence-type.enum';
2
+ export { UserReportType } from './reports-type.enum';
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UserReportType = exports.UserReportEvidencesType = void 0;
4
+ var evidence_type_enum_1 = require("./evidence-type.enum");
5
+ Object.defineProperty(exports, "UserReportEvidencesType", { enumerable: true, get: function () { return evidence_type_enum_1.UserReportEvidencesType; } });
6
+ var reports_type_enum_1 = require("./reports-type.enum");
7
+ Object.defineProperty(exports, "UserReportType", { enumerable: true, get: function () { return reports_type_enum_1.UserReportType; } });
@@ -0,0 +1,15 @@
1
+ export declare enum UserReportType {
2
+ INAPPROPRIATE_BEHAVIOR = "Comportamento Inadequado",
3
+ FRAUD_ATTEMPT = "Tentativa de Fraude",
4
+ UNAUTHORIZED_ACCESS = "Acesso N\u00E3o Autorizado",
5
+ RULE_VIOLATION = "Viola\u00E7\u00E3o de Regras",
6
+ PAYMENT_ISSUE = "Problemas com Pagamento",
7
+ UNWANTED_RECURRENCE = "Reincid\u00EAncia Indesejada",
8
+ SPACE_MISUSE = "Uso Indevido de Espa\u00E7o",
9
+ THEFT_SUSPICION = "Suspeita de Roubo",
10
+ RESERVATION_PROBLEM = "Problemas com Reservas",
11
+ TEMPORARY_BAN = "Proibi\u00E7\u00E3o Tempor\u00E1ria",
12
+ PERMANENT_BAN = "Proibi\u00E7\u00E3o Permanente",
13
+ WARNING = "Aviso Pr\u00E9vio",
14
+ OTHER = "Outros"
15
+ }
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UserReportType = void 0;
4
+ var UserReportType;
5
+ (function (UserReportType) {
6
+ UserReportType["INAPPROPRIATE_BEHAVIOR"] = "Comportamento Inadequado";
7
+ UserReportType["FRAUD_ATTEMPT"] = "Tentativa de Fraude";
8
+ UserReportType["UNAUTHORIZED_ACCESS"] = "Acesso N\u00E3o Autorizado";
9
+ UserReportType["RULE_VIOLATION"] = "Viola\u00E7\u00E3o de Regras";
10
+ UserReportType["PAYMENT_ISSUE"] = "Problemas com Pagamento";
11
+ UserReportType["UNWANTED_RECURRENCE"] = "Reincid\u00EAncia Indesejada";
12
+ UserReportType["SPACE_MISUSE"] = "Uso Indevido de Espa\u00E7o";
13
+ UserReportType["THEFT_SUSPICION"] = "Suspeita de Roubo";
14
+ UserReportType["RESERVATION_PROBLEM"] = "Problemas com Reservas";
15
+ UserReportType["TEMPORARY_BAN"] = "Proibi\u00E7\u00E3o Tempor\u00E1ria";
16
+ UserReportType["PERMANENT_BAN"] = "Proibi\u00E7\u00E3o Permanente";
17
+ UserReportType["WARNING"] = "Aviso Pr\u00E9vio";
18
+ UserReportType["OTHER"] = "Outros";
19
+ })(UserReportType || (exports.UserReportType = UserReportType = {}));
@@ -0,0 +1,20 @@
1
+ import { UserReportType } from '../enums';
2
+ import { UserReportEvidencesType } from '../enums/evidence-type.enum';
3
+ export interface IPayioUserReport {
4
+ createdAt: Date;
5
+ faceId: string;
6
+ faceImage64: string;
7
+ id: string;
8
+ data?: string;
9
+ type: UserReportType;
10
+ description: string;
11
+ evidences: IPayioUserReportEvidences[];
12
+ updatedAt: Date;
13
+ userId: string;
14
+ }
15
+ export interface IPayioUserReportEvidences {
16
+ type: UserReportEvidencesType;
17
+ url?: string;
18
+ base64?: string;
19
+ caption?: string;
20
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,3 +1,13 @@
1
1
  import { IUser } from '../../../users';
2
+ import { IPayioUserReport } from './i-user-report';
2
3
  export interface IPayioUser extends IUser {
4
+ accessCode: string | null;
5
+ accessCodeExpiration: Date | null;
6
+ code: string | null;
7
+ currentCompanyId: string | null;
8
+ currentCompanyName: string | null;
9
+ faceId: string | null;
10
+ faceImage64: string | null;
11
+ faceLastUpdate: Date | null;
12
+ reports: IPayioUserReport[];
3
13
  }
@@ -1 +1,2 @@
1
1
  export { IPayioUser } from './i-user';
2
+ export { IPayioUserReport, IPayioUserReportEvidences } from './i-user-report';
@@ -1,13 +1,10 @@
1
- import { NatipayMemberTypeEnum } from '../../natipay';
2
- import { PayioUserTypeEnum } from '../enums';
3
- import { IUser } from '../interfaces';
1
+ import { NatipayMemberTypeEnum } from "../../natipay";
2
+ import { PayioUserTypeEnum } from "../enums";
3
+ import { IUser } from "../interfaces";
4
4
  export declare class UserEntity implements IUser {
5
5
  accessCount: number;
6
6
  active: boolean;
7
- code: string | null;
8
7
  createdAt: Date;
9
- currentCompanyId: string | null;
10
- currentCompanyName: string | null;
11
8
  email: string | null;
12
9
  id: string;
13
10
  imageUrl: string | null;
@@ -3,16 +3,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.UserEntity = void 0;
4
4
  var enums_1 = require("../enums");
5
5
  var UserEntity = /** @class */ (function () {
6
- // #endregion Properties (16)
7
- // #region Constructors (1)
8
6
  function UserEntity(data) {
9
- // #region Properties (16)
10
7
  this.accessCount = 0;
11
8
  this.active = true;
12
- this.code = null;
13
9
  this.createdAt = new Date();
14
- this.currentCompanyId = null;
15
- this.currentCompanyName = null;
16
10
  this.email = null;
17
11
  this.id = '';
18
12
  this.imageUrl = null;
@@ -4,15 +4,12 @@ export interface IUser {
4
4
  accessCount: number;
5
5
  active: boolean;
6
6
  createdAt: Date;
7
- currentCompanyId: string | null;
8
- currentCompanyName: string | null;
9
7
  email: string | null;
10
8
  id: string;
11
9
  imageUrl: string | null;
12
10
  internationalCode: string;
13
11
  lastAccessAt: Date;
14
12
  name: string;
15
- code: string | null;
16
13
  phoneNumber: string;
17
14
  tags: string[];
18
15
  type: PayioUserTypeEnum | NatipayMemberTypeEnum;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.8.34",
3
+ "version": "1.8.36",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",