cecon-interfaces 1.4.20 → 1.4.22

Sign up to get free protection for your applications and to get access to all the features.
Files changed (26) hide show
  1. package/dist/esm2022/mobyo/company-settings/entities/company-settings.entity.mjs +19 -0
  2. package/dist/esm2022/mobyo/company-settings/entities/index.mjs +2 -1
  3. package/dist/esm2022/mobyo/company-settings/entities/wa-server.entity.mjs +5 -5
  4. package/dist/esm2022/mobyo/company-settings/interfaces/i-company-settings.mjs +2 -0
  5. package/dist/esm2022/mobyo/company-settings/interfaces/i-wa-server.mjs +1 -1
  6. package/dist/esm2022/mobyo/company-settings/interfaces/index.mjs +1 -1
  7. package/dist/esm2022/wa-server/enums/handler-message.enum.mjs +19 -0
  8. package/dist/esm2022/wa-server/enums/index.mjs +2 -1
  9. package/dist/fesm2022/cecon-interfaces.mjs +42 -5
  10. package/dist/fesm2022/cecon-interfaces.mjs.map +1 -1
  11. package/dist/mobyo/company-settings/entities/company-settings.entity.d.ts +9 -0
  12. package/dist/mobyo/company-settings/entities/company-settings.entity.js +23 -0
  13. package/dist/mobyo/company-settings/entities/index.d.ts +1 -0
  14. package/dist/mobyo/company-settings/entities/index.js +3 -1
  15. package/dist/mobyo/company-settings/entities/wa-server.entity.d.ts +2 -2
  16. package/dist/mobyo/company-settings/entities/wa-server.entity.js +4 -4
  17. package/dist/mobyo/company-settings/interfaces/i-company-settings.d.ts +7 -0
  18. package/dist/mobyo/company-settings/interfaces/i-company-settings.js +2 -0
  19. package/dist/mobyo/company-settings/interfaces/i-wa-server.d.ts +2 -2
  20. package/dist/mobyo/company-settings/interfaces/index.d.ts +1 -0
  21. package/dist/package.json +1 -1
  22. package/dist/wa-server/enums/handler-message.enum.d.ts +17 -0
  23. package/dist/wa-server/enums/handler-message.enum.js +21 -0
  24. package/dist/wa-server/enums/index.d.ts +1 -0
  25. package/dist/wa-server/enums/index.js +3 -1
  26. package/package.json +1 -1
@@ -0,0 +1,9 @@
1
+ import { ICompanySettings } from '../interfaces';
2
+ import { CompanySettingsWaServerEntity } from './wa-server.entity';
3
+ export declare class CompanySettingsEntity implements ICompanySettings {
4
+ createdAt: Date;
5
+ id: string;
6
+ updatedAt: Date;
7
+ waServer: CompanySettingsWaServerEntity;
8
+ constructor(data?: ICompanySettings);
9
+ }
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CompanySettingsEntity = void 0;
4
+ var wa_server_entity_1 = require("./wa-server.entity");
5
+ var CompanySettingsEntity = /** @class */ (function () {
6
+ // #endregion Properties (4)
7
+ // #region Constructors (1)
8
+ function CompanySettingsEntity(data) {
9
+ // #region Properties (4)
10
+ this.createdAt = new Date();
11
+ this.id = '';
12
+ this.updatedAt = new Date();
13
+ this.waServer = new wa_server_entity_1.CompanySettingsWaServerEntity();
14
+ if (data) {
15
+ this.id = data.id || '';
16
+ this.createdAt = data.createdAt || new Date();
17
+ this.updatedAt = data.updatedAt || new Date();
18
+ this.waServer = new wa_server_entity_1.CompanySettingsWaServerEntity(data.waServer);
19
+ }
20
+ }
21
+ return CompanySettingsEntity;
22
+ }());
23
+ exports.CompanySettingsEntity = CompanySettingsEntity;
@@ -1 +1,2 @@
1
+ export { CompanySettingsEntity } from './company-settings.entity';
1
2
  export { CompanySettingsWaServerEntity } from './wa-server.entity';
@@ -1,5 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CompanySettingsWaServerEntity = void 0;
3
+ exports.CompanySettingsWaServerEntity = exports.CompanySettingsEntity = void 0;
4
+ var company_settings_entity_1 = require("./company-settings.entity");
5
+ Object.defineProperty(exports, "CompanySettingsEntity", { enumerable: true, get: function () { return company_settings_entity_1.CompanySettingsEntity; } });
4
6
  var wa_server_entity_1 = require("./wa-server.entity");
5
7
  Object.defineProperty(exports, "CompanySettingsWaServerEntity", { enumerable: true, get: function () { return wa_server_entity_1.CompanySettingsWaServerEntity; } });
@@ -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;
@@ -0,0 +1,7 @@
1
+ import { ICompanySettingsWaServer } from './i-wa-server';
2
+ export interface ICompanySettings {
3
+ createdAt: Date;
4
+ id: string;
5
+ updatedAt: Date;
6
+ waServer: ICompanySettingsWaServer;
7
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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
  }
@@ -1 +1,2 @@
1
+ export { ICompanySettings } from './i-company-settings';
1
2
  export { ICompanySettingsWaServer } from './i-wa-server';
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.4.20",
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.20",
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",