cecon-interfaces 1.6.61 → 1.6.63

Sign up to get free protection for your applications and to get access to all the features.
Files changed (38) hide show
  1. package/.vscode/settings.json +22 -0
  2. package/dist/esm2022/payio/activation-key/entities/activation-key.entity.mjs +12 -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 +5 -5
  14. package/dist/esm2022/payio/schedules/interfaces/i-schedule-product.mjs +1 -1
  15. package/dist/fesm2022/cecon-interfaces.mjs +36 -22
  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 +9 -4
  19. package/dist/payio/activation-key/entities/activation-key.entity.js +11 -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 +9 -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 +4 -4
  36. package/dist/payio/schedules/entities/schedule-product.entity.js +4 -4
  37. package/dist/payio/schedules/interfaces/i-schedule-product.d.ts +4 -4
  38. 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.61",
3
+ "version": "1.6.63",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1,15 +1,20 @@
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
+ clientKey: string | null;
6
+ companyId: string | null;
7
+ companyName: string | null;
4
8
  createdAt: Date;
5
9
  createdBy: string | null;
10
+ deviceId: string | null;
6
11
  distributorId: string | null;
12
+ distributorKey: string | null;
13
+ distributorName: string | null;
7
14
  expirationDate: Date | null;
8
15
  id: string;
9
- key: string;
10
- planId: string | null;
11
- status: 'active' | 'used' | 'expired';
12
- subscriptionId: string | null;
16
+ logs: string[];
17
+ status: EPayuioActivationStatus;
13
18
  usageLimit: number;
14
19
  usedCount: number;
15
20
  constructor(data?: Partial<PayioActivationKeyEntity>);
@@ -1,21 +1,26 @@
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 (16)
6
7
  // #region Constructors (1)
7
8
  function PayioActivationKeyEntity(data) {
8
- // #region Properties (12)
9
+ // #region Properties (16)
9
10
  this.activationDate = null;
11
+ this.clientKey = null;
12
+ this.companyId = null;
13
+ this.companyName = null;
10
14
  this.createdAt = new Date();
11
15
  this.createdBy = null;
16
+ this.deviceId = null;
12
17
  this.distributorId = null;
18
+ this.distributorKey = null;
19
+ this.distributorName = null;
13
20
  this.expirationDate = null;
14
21
  this.id = '';
15
- this.key = '';
16
- this.planId = null;
17
- this.status = 'active';
18
- this.subscriptionId = null;
22
+ this.logs = [];
23
+ this.status = activation_key_status_enum_1.EPayuioActivationStatus.PENDING;
19
24
  this.usageLimit = 0;
20
25
  this.usedCount = 0;
21
26
  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,19 @@
1
+ import { EPayuioActivationStatus } from '../enums/activation-key-status.enum';
1
2
  export interface IPayioActivationKey {
2
3
  activationDate: Date | null;
4
+ clientKey: string | null;
5
+ companyId: string | null;
6
+ companyName: string | null;
3
7
  createdAt: Date;
4
8
  createdBy: string | null;
9
+ deviceId: string | null;
5
10
  distributorId: string | null;
11
+ distributorKey: string | null;
12
+ distributorName: string | null;
6
13
  expirationDate: Date | null;
7
14
  id: string;
8
- key: string;
9
- planId: string | null;
10
- subscriptionId: string | null;
11
- status: 'active' | 'used' | 'expired';
15
+ logs: string[];
16
+ status: EPayuioActivationStatus;
12
17
  usageLimit: number;
13
18
  usedCount: number;
14
19
  }
@@ -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,12 +2,12 @@ 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 | null;
6
+ exceededWeightPrice: number;
5
7
  id: string;
8
+ maxWeightLimitMessage: number;
9
+ maxWeightLimitPrice: number;
6
10
  price: number;
7
11
  unit: string;
8
- weightLimitExceeded: number;
9
- weightLimitExceededMessage: number;
10
- weightLimitExceededMessageText: string;
11
- weightLimitExceededPrice: number;
12
12
  constructor(data?: Partial<PayioScheduleProductEntity>);
13
13
  }
@@ -8,13 +8,13 @@ var PayioScheduleProductEntity = /** @class */ (function () {
8
8
  // #region Properties (9)
9
9
  this.code = '';
10
10
  this.description = '';
11
+ this.exceededWeightMessageText = '';
12
+ this.exceededWeightPrice = 0;
11
13
  this.id = '';
14
+ this.maxWeightLimitMessage = 0;
15
+ this.maxWeightLimitPrice = 0;
12
16
  this.price = 0;
13
17
  this.unit = 'KG';
14
- this.weightLimitExceeded = 0;
15
- this.weightLimitExceededMessage = 0;
16
- this.weightLimitExceededMessageText = '';
17
- this.weightLimitExceededPrice = 0;
18
18
  if (data) {
19
19
  for (var key in data) {
20
20
  if (data.hasOwnProperty(key) && key in this) {
@@ -2,10 +2,10 @@ export interface IPayioScheduleProduct {
2
2
  code: string;
3
3
  description: string;
4
4
  id: string;
5
- weightLimitExceeded: number;
6
- weightLimitExceededMessage: number;
7
- weightLimitExceededPrice: number;
8
- weightLimitExceededMessageText: string;
5
+ maxWeightLimitPrice: number;
6
+ maxWeightLimitMessage: number;
7
+ exceededWeightPrice: number;
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.61",
3
+ "version": "1.6.63",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",