cecon-interfaces 1.6.62 → 1.6.64

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 (37) hide show
  1. package/.vscode/settings.json +22 -0
  2. package/dist/esm2022/payio/activation-key/entities/activation-key.entity.mjs +15 -7
  3. package/dist/esm2022/payio/activation-key/enums/activation-key-status.enum.mjs +8 -0
  4. package/dist/esm2022/payio/activation-key/interfaces/i-activation-key.mjs +1 -1
  5. package/dist/esm2022/payio/chef-config/entities/chef-config-operation.entity.mjs +5 -5
  6. package/dist/esm2022/payio/chef-config/entities/chef-config-webhook.entity.mjs +7 -5
  7. package/dist/esm2022/payio/chef-config/entities/chef-config.entity.mjs +1 -2
  8. package/dist/esm2022/payio/chef-config/interfaces/i-chef-config-operation.mjs +1 -1
  9. package/dist/esm2022/payio/chef-config/interfaces/i-chef-config-webhook.mjs +1 -1
  10. package/dist/esm2022/payio/chef-config/interfaces/i-chef-config.mjs +1 -1
  11. package/dist/esm2022/payio/payload/entities/payload.entity.mjs +5 -4
  12. package/dist/esm2022/payio/payload/interfaces/i-payload.mjs +1 -1
  13. package/dist/esm2022/payio/schedules/entities/schedule-product.entity.mjs +1 -1
  14. package/dist/esm2022/payio/schedules/interfaces/i-schedule-product.mjs +1 -1
  15. package/dist/fesm2022/cecon-interfaces.mjs +35 -18
  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 +12 -4
  19. package/dist/payio/activation-key/entities/activation-key.entity.js +14 -6
  20. package/dist/payio/activation-key/enums/activation-key-status.enum.d.ts +6 -0
  21. package/dist/payio/activation-key/enums/activation-key-status.enum.js +10 -0
  22. package/dist/payio/activation-key/interfaces/i-activation-key.d.ts +12 -4
  23. package/dist/payio/chef-config/entities/chef-config-operation.entity.d.ts +3 -3
  24. package/dist/payio/chef-config/entities/chef-config-operation.entity.js +4 -4
  25. package/dist/payio/chef-config/entities/chef-config-webhook.entity.d.ts +2 -1
  26. package/dist/payio/chef-config/entities/chef-config-webhook.entity.js +6 -4
  27. package/dist/payio/chef-config/entities/chef-config.entity.d.ts +0 -1
  28. package/dist/payio/chef-config/entities/chef-config.entity.js +0 -1
  29. package/dist/payio/chef-config/interfaces/i-chef-config-operation.d.ts +12 -12
  30. package/dist/payio/chef-config/interfaces/i-chef-config-webhook.d.ts +2 -1
  31. package/dist/payio/chef-config/interfaces/i-chef-config.d.ts +0 -1
  32. package/dist/payio/payload/entities/payload.entity.d.ts +2 -2
  33. package/dist/payio/payload/entities/payload.entity.js +4 -3
  34. package/dist/payio/payload/interfaces/i-payload.d.ts +2 -2
  35. package/dist/payio/schedules/entities/schedule-product.entity.d.ts +1 -1
  36. package/dist/payio/schedules/interfaces/i-schedule-product.d.ts +1 -1
  37. 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.62",
3
+ "version": "1.6.64",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1,15 +1,23 @@
1
+ import { EPayuioActivationStatus } from '../enums/activation-key-status.enum';
1
2
  import { IPayioActivationKey } from '../interfaces/i-activation-key';
2
3
  export declare class PayioActivationKeyEntity implements IPayioActivationKey {
3
4
  activationDate: Date | null;
5
+ appId: string | null;
6
+ appSlug: string | null;
7
+ clientKey: string | null;
8
+ companyId: string | null;
9
+ companyName: string | null;
4
10
  createdAt: Date;
5
11
  createdBy: string | null;
12
+ deviceId: string | null;
6
13
  distributorId: string | null;
14
+ distributorKey: string | null;
15
+ distributorName: string | null;
7
16
  expirationDate: Date | null;
8
17
  id: string;
9
- key: string;
10
- planId: string | null;
11
- status: 'active' | 'used' | 'expired';
12
- subscriptionId: string | null;
18
+ keyGeneratorId: string | null;
19
+ logs: string[];
20
+ status: EPayuioActivationStatus;
13
21
  usageLimit: number;
14
22
  usedCount: number;
15
23
  constructor(data?: Partial<PayioActivationKeyEntity>);
@@ -1,21 +1,29 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.PayioActivationKeyEntity = void 0;
4
+ var activation_key_status_enum_1 = require("../enums/activation-key-status.enum");
4
5
  var PayioActivationKeyEntity = /** @class */ (function () {
5
- // #endregion Properties (12)
6
+ // #endregion Properties (19)
6
7
  // #region Constructors (1)
7
8
  function PayioActivationKeyEntity(data) {
8
- // #region Properties (12)
9
+ // #region Properties (19)
9
10
  this.activationDate = null;
11
+ this.appId = null;
12
+ this.appSlug = null;
13
+ this.clientKey = null;
14
+ this.companyId = null;
15
+ this.companyName = null;
10
16
  this.createdAt = new Date();
11
17
  this.createdBy = null;
18
+ this.deviceId = null;
12
19
  this.distributorId = null;
20
+ this.distributorKey = null;
21
+ this.distributorName = null;
13
22
  this.expirationDate = null;
14
23
  this.id = '';
15
- this.key = '';
16
- this.planId = null;
17
- this.status = 'active';
18
- this.subscriptionId = null;
24
+ this.keyGeneratorId = null;
25
+ this.logs = [];
26
+ this.status = activation_key_status_enum_1.EPayuioActivationStatus.PENDING;
19
27
  this.usageLimit = 0;
20
28
  this.usedCount = 0;
21
29
  if (data) {
@@ -0,0 +1,6 @@
1
+ export declare enum EPayuioActivationStatus {
2
+ PENDING = "PENDING",
3
+ ACTIVE = "ACTIVE",
4
+ EXPIRED = "EXPIRED",
5
+ CANCELLED = "CANCELLED"
6
+ }
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EPayuioActivationStatus = void 0;
4
+ var EPayuioActivationStatus;
5
+ (function (EPayuioActivationStatus) {
6
+ EPayuioActivationStatus["PENDING"] = "PENDING";
7
+ EPayuioActivationStatus["ACTIVE"] = "ACTIVE";
8
+ EPayuioActivationStatus["EXPIRED"] = "EXPIRED";
9
+ EPayuioActivationStatus["CANCELLED"] = "CANCELLED";
10
+ })(EPayuioActivationStatus || (exports.EPayuioActivationStatus = EPayuioActivationStatus = {}));
@@ -1,14 +1,22 @@
1
+ import { EPayuioActivationStatus } from '../enums/activation-key-status.enum';
1
2
  export interface IPayioActivationKey {
2
3
  activationDate: Date | null;
4
+ appId: string | null;
5
+ appSlug: string | null;
6
+ clientKey: string | null;
7
+ companyId: string | null;
8
+ companyName: string | null;
3
9
  createdAt: Date;
10
+ keyGeneratorId: string | null;
4
11
  createdBy: string | null;
12
+ deviceId: string | null;
5
13
  distributorId: string | null;
14
+ distributorKey: string | null;
15
+ distributorName: string | null;
6
16
  expirationDate: Date | null;
7
17
  id: string;
8
- key: string;
9
- planId: string | null;
10
- subscriptionId: string | null;
11
- status: 'active' | 'used' | 'expired';
18
+ logs: string[];
19
+ status: EPayuioActivationStatus;
12
20
  usageLimit: number;
13
21
  usedCount: number;
14
22
  }
@@ -5,9 +5,9 @@ export declare class PayioChefConfigOperationEntity implements IPayioChefConfigO
5
5
  barcodeInitialFlag: string;
6
6
  bipOnPrint: boolean;
7
7
  headerMessages: string[];
8
- listItems: string;
8
+ listItems: string[];
9
+ multiOrder: boolean;
9
10
  operationMode: EPayioChefOperationMode;
10
- orderFormat: string;
11
11
  printFormat: 'simple' | 'tabular';
12
12
  showBarCode: boolean;
13
13
  showNetWeight: boolean;
@@ -15,7 +15,7 @@ export declare class PayioChefConfigOperationEntity implements IPayioChefConfigO
15
15
  showPricePerKg: boolean;
16
16
  showTotalPrice: boolean;
17
17
  startOrderIn: number;
18
- tabFormat: string;
18
+ tabFormat: string | null;
19
19
  tabMode: EPayioChefTabMode;
20
20
  urlLogo: string;
21
21
  constructor(data?: Partial<PayioChefConfigOperationEntity>);
@@ -3,17 +3,17 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.PayioChefConfigOperationEntity = void 0;
4
4
  var enums_1 = require("../enums");
5
5
  var PayioChefConfigOperationEntity = /** @class */ (function () {
6
- // #endregion Properties (18)
6
+ // #endregion Properties (17)
7
7
  // #region Constructors (1)
8
8
  function PayioChefConfigOperationEntity(data) {
9
- // #region Properties (18)
9
+ // #region Properties (17)
10
10
  this.barcodeFormat = enums_1.EBarcodeFormat.CODE_6_PRICE_6;
11
11
  this.barcodeInitialFlag = '2';
12
12
  this.bipOnPrint = true;
13
13
  this.headerMessages = [];
14
- this.listItems = '';
14
+ this.listItems = [];
15
+ this.multiOrder = false;
15
16
  this.operationMode = enums_1.EPayioChefOperationMode.SCALE;
16
- this.orderFormat = '';
17
17
  this.printFormat = 'simple';
18
18
  this.showBarCode = true;
19
19
  this.showNetWeight = true;
@@ -3,9 +3,10 @@ export declare class PayioChefConfigWebhookEntity implements IPayioChefConfigWeb
3
3
  active: boolean;
4
4
  authToken: string | null;
5
5
  locked: boolean;
6
+ method: 'GET' | 'POST' | 'PUT' | 'DELETE';
6
7
  response: string | null;
7
8
  secret: string | null;
8
- test: boolean;
9
+ type: 'PING' | 'GET_PRODUCT' | 'SEND_ORDER' | 'GET_ORDER' | 'CANCEL_ORDER' | 'GET_ORDER_STATUS';
9
10
  url: string;
10
11
  constructor(data?: Partial<PayioChefConfigWebhookEntity>);
11
12
  }
@@ -2,16 +2,18 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.PayioChefConfigWebhookEntity = void 0;
4
4
  var PayioChefConfigWebhookEntity = /** @class */ (function () {
5
- // #endregion Properties (7)
5
+ // #endregion Properties (9)
6
6
  // #region Constructors (1)
7
7
  function PayioChefConfigWebhookEntity(data) {
8
- // #region Properties (7)
8
+ // #region Properties (9)
9
9
  this.active = true;
10
10
  this.authToken = null;
11
- this.locked = false; // Travar caso não esteja respondendo
11
+ this.locked = false;
12
+ this.method = 'POST';
13
+ // Travar caso não esteja respondendo
12
14
  this.response = null;
13
15
  this.secret = null;
14
- this.test = false;
16
+ this.type = 'SEND_ORDER';
15
17
  this.url = '';
16
18
  if (data) {
17
19
  for (var key in data) {
@@ -2,7 +2,6 @@ import { IPayioChefConfig, IPayioChefConfigOperation, IPayioChefConfigPrinter, I
2
2
  export declare class PayioChefConfigEntity implements IPayioChefConfig {
3
3
  createdAt: Date;
4
4
  id: string;
5
- multiOrder: boolean;
6
5
  name: string;
7
6
  operation: IPayioChefConfigOperation;
8
7
  printer: IPayioChefConfigPrinter | null;
@@ -10,7 +10,6 @@ var PayioChefConfigEntity = /** @class */ (function () {
10
10
  // #region Properties (9)
11
11
  this.createdAt = new Date();
12
12
  this.id = '';
13
- this.multiOrder = false;
14
13
  this.name = '';
15
14
  this.operation = new chef_config_operation_entity_1.PayioChefConfigOperationEntity();
16
15
  this.printer = null;
@@ -2,21 +2,21 @@ import { EPayioChefOperationMode } from '../enums';
2
2
  import { EBarcodeFormat } from '../enums/barcode-format.enum';
3
3
  import { EPayioChefTabMode } from '../enums/tab-mode.enum';
4
4
  export interface IPayioChefConfigOperation {
5
- tabMode: EPayioChefTabMode;
6
- tabFormat: string;
7
- urlLogo: string;
5
+ barcodeFormat: EBarcodeFormat;
6
+ barcodeInitialFlag: string;
7
+ bipOnPrint: boolean;
8
8
  headerMessages: string[];
9
- showOrderNumber: boolean;
9
+ listItems: string[];
10
+ multiOrder: boolean;
11
+ operationMode: EPayioChefOperationMode;
12
+ printFormat: 'simple' | 'tabular';
13
+ showBarCode: boolean;
10
14
  showNetWeight: boolean;
15
+ showOrderNumber: boolean;
11
16
  showPricePerKg: boolean;
12
17
  showTotalPrice: boolean;
13
- bipOnPrint: boolean;
14
- showBarCode: boolean;
15
18
  startOrderIn: number;
16
- orderFormat: string;
17
- printFormat: 'simple' | 'tabular';
18
- listItems: string;
19
- barcodeFormat: EBarcodeFormat;
20
- barcodeInitialFlag: string;
21
- operationMode: EPayioChefOperationMode;
19
+ tabFormat: string | null;
20
+ tabMode: EPayioChefTabMode;
21
+ urlLogo: string;
22
22
  }
@@ -1,9 +1,10 @@
1
1
  export interface IPayioChefConfigWebhook {
2
2
  active: boolean;
3
+ method: 'GET' | 'POST' | 'PUT' | 'DELETE';
3
4
  authToken: string | null;
4
5
  secret: string | null;
5
6
  url: string;
6
- test: boolean;
7
+ type: 'PING' | 'GET_PRODUCT' | 'SEND_ORDER' | 'GET_ORDER' | 'CANCEL_ORDER' | 'GET_ORDER_STATUS';
7
8
  response: string | null;
8
9
  locked: boolean;
9
10
  }
@@ -5,7 +5,6 @@ import { IPayioChefConfigWebhook } from './i-chef-config-webhook';
5
5
  export interface IPayioChefConfig {
6
6
  createdAt: Date;
7
7
  id: string;
8
- multiOrder: boolean;
9
8
  name: string;
10
9
  operation: IPayioChefConfigOperation;
11
10
  printer: IPayioChefConfigPrinter | null;
@@ -4,21 +4,21 @@ import { IPayioJwtPayloadApp } from '../interfaces/i-payload-app';
4
4
  import { IPayioJwtPayloadInfo } from '../interfaces/i-payload-info';
5
5
  import { PayioJwtPayloadDeviceEntity } from './payload-device.entity';
6
6
  import { PayioJwtPayloadScheduleEntity } from './payload-schedule.entity';
7
- import { PayioJwtPayloadSubscriptionEntity } from './payload-subscription.entity';
8
7
  import { PayioJwtPayloadUserEntity } from './payload-user.entity';
9
8
  export declare class PayioJwtPayloadEntity implements IPayioJwtPayload {
10
9
  app: IPayioJwtPayloadApp | null;
11
10
  aud: string;
12
11
  device: PayioJwtPayloadDeviceEntity | null;
12
+ distributorId: string | null;
13
13
  exp: number;
14
14
  iat: number;
15
15
  info: IPayioJwtPayloadInfo | null;
16
+ isActivated: boolean;
16
17
  iss: string;
17
18
  jti: string;
18
19
  permissions: PayioPermissionRoleEntity[];
19
20
  schedule: PayioJwtPayloadScheduleEntity | null;
20
21
  sub: string;
21
- subscription: PayioJwtPayloadSubscriptionEntity | null;
22
22
  type: string | null;
23
23
  user: PayioJwtPayloadUserEntity | null;
24
24
  constructor(data?: Partial<PayioJwtPayloadEntity>);
@@ -2,22 +2,23 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.PayioJwtPayloadEntity = void 0;
4
4
  var PayioJwtPayloadEntity = /** @class */ (function () {
5
- // #endregion Properties (14)
5
+ // #endregion Properties (15)
6
6
  // #region Constructors (1)
7
7
  function PayioJwtPayloadEntity(data) {
8
- // #region Properties (14)
8
+ // #region Properties (15)
9
9
  this.app = null;
10
10
  this.aud = '';
11
11
  this.device = null;
12
+ this.distributorId = null;
12
13
  this.exp = 0;
13
14
  this.iat = 0;
14
15
  this.info = null;
16
+ this.isActivated = false;
15
17
  this.iss = '';
16
18
  this.jti = '';
17
19
  this.permissions = [];
18
20
  this.schedule = null;
19
21
  this.sub = '';
20
- this.subscription = null;
21
22
  this.type = null;
22
23
  this.user = null;
23
24
  if (data) {
@@ -3,7 +3,6 @@ import { IPayioJwtPayloadApp } from './i-payload-app';
3
3
  import { IPayioJwtPayloadDevice } from './i-payload-device';
4
4
  import { IPayioJwtPayloadInfo } from './i-payload-info';
5
5
  import { IPayioJwtPayloadSchedule } from './i-payload-schedule';
6
- import { IPayioJwtPayloadSubscription } from './i-payload-subscription';
7
6
  import { IPayioJwtPayloadUser } from './i-payload-user';
8
7
  export interface IPayioJwtPayload {
9
8
  app: IPayioJwtPayloadApp | null;
@@ -27,9 +26,10 @@ export interface IPayioJwtPayload {
27
26
  iss: string;
28
27
  jti: string;
29
28
  permissions: IPayioPermissionRole[];
29
+ distributorId: string | null;
30
30
  schedule: IPayioJwtPayloadSchedule | null;
31
+ isActivated: boolean;
31
32
  sub: string;
32
- subscription: IPayioJwtPayloadSubscription | null;
33
33
  type: string | null;
34
34
  user: IPayioJwtPayloadUser | null;
35
35
  }
@@ -2,7 +2,7 @@ import { IPayioScheduleProduct } from '../interfaces/i-schedule-product';
2
2
  export declare class PayioScheduleProductEntity implements IPayioScheduleProduct {
3
3
  code: string;
4
4
  description: string;
5
- exceededWeightMessageText: string;
5
+ exceededWeightMessageText: string | null;
6
6
  exceededWeightPrice: number;
7
7
  id: string;
8
8
  maxWeightLimitMessage: number;
@@ -5,7 +5,7 @@ export interface IPayioScheduleProduct {
5
5
  maxWeightLimitPrice: number;
6
6
  maxWeightLimitMessage: number;
7
7
  exceededWeightPrice: number;
8
- exceededWeightMessageText: string;
8
+ exceededWeightMessageText: string | null;
9
9
  price: number;
10
10
  unit: string;
11
11
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.6.62",
3
+ "version": "1.6.64",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",