cecon-interfaces 1.4.21 → 1.4.22

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,7 +1,7 @@
1
1
  import { ICompanySettingsWaServer } from '../interfaces';
2
2
  export declare class CompanySettingsWaServerEntity implements ICompanySettingsWaServer {
3
- deliveryMenuUrl: string;
4
- indoorMenuUrl: string;
3
+ deliveryMenuUrl: string | null;
4
+ indoorMenuUrl: string | null;
5
5
  instanceName: string;
6
6
  serverId: string;
7
7
  constructor(data?: ICompanySettingsWaServer);
@@ -6,15 +6,15 @@ var CompanySettingsWaServerEntity = /** @class */ (function () {
6
6
  // #region Constructors (1)
7
7
  function CompanySettingsWaServerEntity(data) {
8
8
  // #region Properties (4)
9
- this.deliveryMenuUrl = '';
10
- this.indoorMenuUrl = '';
9
+ this.deliveryMenuUrl = null;
10
+ this.indoorMenuUrl = null;
11
11
  this.instanceName = '';
12
12
  this.serverId = '';
13
13
  if (data) {
14
14
  this.serverId = data.serverId || '';
15
15
  this.instanceName = data.instanceName || '';
16
- this.deliveryMenuUrl = data.deliveryMenuUrl || '';
17
- this.indoorMenuUrl = data.indoorMenuUrl || '';
16
+ this.deliveryMenuUrl = data.deliveryMenuUrl || null;
17
+ this.indoorMenuUrl = data.indoorMenuUrl || null;
18
18
  }
19
19
  }
20
20
  return CompanySettingsWaServerEntity;
@@ -1,6 +1,6 @@
1
1
  export interface ICompanySettingsWaServer {
2
2
  serverId: string;
3
3
  instanceName: string;
4
- deliveryMenuUrl: string;
5
- indoorMenuUrl: string;
4
+ deliveryMenuUrl: string | null;
5
+ indoorMenuUrl: string | null;
6
6
  }
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.4.21",
3
+ "version": "1.4.22",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -0,0 +1,17 @@
1
+ export declare enum EWaServerHandlerMessage {
2
+ WELCOME = "WELCOME",
3
+ ORDER_DISPATCHED = "ORDER_DISPATCHED",
4
+ SET_PIX = "SET_PIX",
5
+ CONFIRM_PAYMENT_PIX = "CONFIRM_PAYMENT_PIX",
6
+ ORDER_CANCELLED = "ORDER_CANCELLED",
7
+ ORDER_DELIVERED = "ORDER_DELIVERED",
8
+ ORDER_READY_TO_PICKUP = "ORDER_READY_TO_PICKUP",
9
+ ORDER_PLACED = "ORDER_PLACED",
10
+ ORDER_CONFIRMED = "ORDER_CONFIRMED",
11
+ CREATED_COMPANY = "CREATED_COMPANY",
12
+ SUBSCRIPTION_CREATED = "SUBSCRIPTION_CREATED",
13
+ SUBSCRIPTION_CANCELLED = "SUBSCRIPTION_CANCELLED",
14
+ SUBSCRIPTION_RENEWED = "SUBSCRIPTION_RENEWED",
15
+ SUBSCRIPTION_EXPIRED = "SUBSCRIPTION_EXPIRED",
16
+ SUBSCRIPTION_SUSPENDED = "SUBSCRIPTION_SUSPENDED"
17
+ }
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EWaServerHandlerMessage = void 0;
4
+ var EWaServerHandlerMessage;
5
+ (function (EWaServerHandlerMessage) {
6
+ EWaServerHandlerMessage["WELCOME"] = "WELCOME";
7
+ EWaServerHandlerMessage["ORDER_DISPATCHED"] = "ORDER_DISPATCHED";
8
+ EWaServerHandlerMessage["SET_PIX"] = "SET_PIX";
9
+ EWaServerHandlerMessage["CONFIRM_PAYMENT_PIX"] = "CONFIRM_PAYMENT_PIX";
10
+ EWaServerHandlerMessage["ORDER_CANCELLED"] = "ORDER_CANCELLED";
11
+ EWaServerHandlerMessage["ORDER_DELIVERED"] = "ORDER_DELIVERED";
12
+ EWaServerHandlerMessage["ORDER_READY_TO_PICKUP"] = "ORDER_READY_TO_PICKUP";
13
+ EWaServerHandlerMessage["ORDER_PLACED"] = "ORDER_PLACED";
14
+ EWaServerHandlerMessage["ORDER_CONFIRMED"] = "ORDER_CONFIRMED";
15
+ EWaServerHandlerMessage["CREATED_COMPANY"] = "CREATED_COMPANY";
16
+ EWaServerHandlerMessage["SUBSCRIPTION_CREATED"] = "SUBSCRIPTION_CREATED";
17
+ EWaServerHandlerMessage["SUBSCRIPTION_CANCELLED"] = "SUBSCRIPTION_CANCELLED";
18
+ EWaServerHandlerMessage["SUBSCRIPTION_RENEWED"] = "SUBSCRIPTION_RENEWED";
19
+ EWaServerHandlerMessage["SUBSCRIPTION_EXPIRED"] = "SUBSCRIPTION_EXPIRED";
20
+ EWaServerHandlerMessage["SUBSCRIPTION_SUSPENDED"] = "SUBSCRIPTION_SUSPENDED";
21
+ })(EWaServerHandlerMessage || (exports.EWaServerHandlerMessage = EWaServerHandlerMessage = {}));
@@ -1 +1,2 @@
1
+ export { EWaServerHandlerMessage } from './handler-message.enum';
1
2
  export { EWaServerStatus } from './status.enum';
@@ -1,5 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.EWaServerStatus = void 0;
3
+ exports.EWaServerStatus = exports.EWaServerHandlerMessage = void 0;
4
+ var handler_message_enum_1 = require("./handler-message.enum");
5
+ Object.defineProperty(exports, "EWaServerHandlerMessage", { enumerable: true, get: function () { return handler_message_enum_1.EWaServerHandlerMessage; } });
4
6
  var status_enum_1 = require("./status.enum");
5
7
  Object.defineProperty(exports, "EWaServerStatus", { enumerable: true, get: function () { return status_enum_1.EWaServerStatus; } });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.4.21",
3
+ "version": "1.4.22",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",