cecon-interfaces 1.2.12 → 1.2.13

Sign up to get free protection for your applications and to get access to all the features.
Files changed (76) hide show
  1. package/dist/app/enums/mode.enum.d.ts +5 -1
  2. package/dist/app/enums/mode.enum.js +5 -1
  3. package/dist/esm2022/app/enums/mode.enum.mjs +6 -2
  4. package/dist/esm2022/evolution/entities/chat-woot.entity.mjs +20 -0
  5. package/dist/esm2022/evolution/entities/evolution.entity.mjs +22 -0
  6. package/dist/esm2022/evolution/entities/hash.entity.mjs +16 -0
  7. package/dist/esm2022/evolution/entities/index.mjs +6 -0
  8. package/dist/esm2022/evolution/entities/instance.entity.mjs +17 -0
  9. package/dist/esm2022/evolution/entities/qrcode.entity.mjs +17 -0
  10. package/dist/esm2022/evolution/enums/events.enum.mjs +24 -0
  11. package/dist/esm2022/evolution/enums/index.mjs +2 -0
  12. package/dist/esm2022/evolution/index.mjs +4 -0
  13. package/dist/esm2022/evolution/interfaces/i-chatwoot.mjs +2 -0
  14. package/dist/esm2022/evolution/interfaces/i-evolution.mjs +2 -0
  15. package/dist/esm2022/evolution/interfaces/i-hash.mjs +2 -0
  16. package/dist/esm2022/evolution/interfaces/i-instance.mjs +2 -0
  17. package/dist/esm2022/evolution/interfaces/i-qrcode.mjs +2 -0
  18. package/dist/esm2022/evolution/interfaces/index.mjs +2 -0
  19. package/dist/esm2022/index.mjs +3 -1
  20. package/dist/esm2022/wa-server/entities/index.mjs +2 -0
  21. package/dist/esm2022/wa-server/entities/wa-server.entity.mjs +25 -0
  22. package/dist/esm2022/wa-server/enums/index.mjs +2 -0
  23. package/dist/esm2022/wa-server/enums/status.enum.mjs +10 -0
  24. package/dist/esm2022/wa-server/index.mjs +4 -0
  25. package/dist/esm2022/wa-server/interfaces/i-wa-server.mjs +2 -0
  26. package/dist/esm2022/wa-server/interfaces/index.mjs +2 -0
  27. package/dist/evolution/entities/chat-woot.entity.d.ts +11 -0
  28. package/dist/evolution/entities/chat-woot.entity.js +24 -0
  29. package/dist/evolution/entities/evolution.entity.d.ts +14 -0
  30. package/dist/evolution/entities/evolution.entity.js +26 -0
  31. package/dist/evolution/entities/hash.entity.d.ts +5 -0
  32. package/dist/evolution/entities/hash.entity.js +20 -0
  33. package/dist/evolution/entities/index.d.ts +5 -0
  34. package/dist/evolution/entities/index.js +13 -0
  35. package/dist/evolution/entities/instance.entity.d.ts +6 -0
  36. package/dist/evolution/entities/instance.entity.js +21 -0
  37. package/dist/evolution/entities/qrcode.entity.d.ts +6 -0
  38. package/dist/evolution/entities/qrcode.entity.js +21 -0
  39. package/dist/evolution/enums/events.enum.d.ts +22 -0
  40. package/dist/evolution/enums/events.enum.js +26 -0
  41. package/dist/evolution/enums/index.d.ts +1 -0
  42. package/dist/evolution/enums/index.js +5 -0
  43. package/dist/evolution/index.d.ts +3 -0
  44. package/dist/evolution/index.js +19 -0
  45. package/dist/evolution/interfaces/i-chatwoot.d.ts +9 -0
  46. package/dist/evolution/interfaces/i-chatwoot.js +2 -0
  47. package/dist/evolution/interfaces/i-evolution.d.ts +13 -0
  48. package/dist/evolution/interfaces/i-evolution.js +2 -0
  49. package/dist/evolution/interfaces/i-hash.d.ts +3 -0
  50. package/dist/evolution/interfaces/i-hash.js +2 -0
  51. package/dist/evolution/interfaces/i-instance.d.ts +4 -0
  52. package/dist/evolution/interfaces/i-instance.js +2 -0
  53. package/dist/evolution/interfaces/i-qrcode.d.ts +4 -0
  54. package/dist/evolution/interfaces/i-qrcode.js +2 -0
  55. package/dist/evolution/interfaces/index.d.ts +5 -0
  56. package/dist/evolution/interfaces/index.js +2 -0
  57. package/dist/fesm2022/cecon-interfaces.mjs +153 -2
  58. package/dist/fesm2022/cecon-interfaces.mjs.map +1 -1
  59. package/dist/index.d.ts +2 -0
  60. package/dist/index.js +2 -0
  61. package/dist/package.json +1 -1
  62. package/dist/wa-server/entities/index.d.ts +1 -0
  63. package/dist/wa-server/entities/index.js +5 -0
  64. package/dist/wa-server/entities/wa-server.entity.d.ts +16 -0
  65. package/dist/wa-server/entities/wa-server.entity.js +29 -0
  66. package/dist/wa-server/enums/index.d.ts +1 -0
  67. package/dist/wa-server/enums/index.js +5 -0
  68. package/dist/wa-server/enums/status.enum.d.ts +8 -0
  69. package/dist/wa-server/enums/status.enum.js +12 -0
  70. package/dist/wa-server/index.d.ts +3 -0
  71. package/dist/wa-server/index.js +19 -0
  72. package/dist/wa-server/interfaces/i-wa-server.d.ts +14 -0
  73. package/dist/wa-server/interfaces/i-wa-server.js +2 -0
  74. package/dist/wa-server/interfaces/index.d.ts +1 -0
  75. package/dist/wa-server/interfaces/index.js +2 -0
  76. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -9,6 +9,7 @@ export * from './container';
9
9
  export * from './customer';
10
10
  export * from './customer-member';
11
11
  export * from './device';
12
+ export * from './evolution';
12
13
  export * from './feature';
13
14
  export * from './general';
14
15
  export * from './global-settings';
@@ -34,3 +35,4 @@ export * from './subscription-customer';
34
35
  export * from './token';
35
36
  export * from './viacep';
36
37
  export * from './voucher';
38
+ export * from './wa-server';
package/dist/index.js CHANGED
@@ -25,6 +25,7 @@ __exportStar(require("./container"), exports);
25
25
  __exportStar(require("./customer"), exports);
26
26
  __exportStar(require("./customer-member"), exports);
27
27
  __exportStar(require("./device"), exports);
28
+ __exportStar(require("./evolution"), exports);
28
29
  __exportStar(require("./feature"), exports);
29
30
  __exportStar(require("./general"), exports);
30
31
  __exportStar(require("./global-settings"), exports);
@@ -50,3 +51,4 @@ __exportStar(require("./subscription-customer"), exports);
50
51
  __exportStar(require("./token"), exports);
51
52
  __exportStar(require("./viacep"), exports);
52
53
  __exportStar(require("./voucher"), exports);
54
+ __exportStar(require("./wa-server"), exports);
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.2.12",
3
+ "version": "1.2.13",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -0,0 +1 @@
1
+ export { WaServerEntity } from './wa-server.entity';
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.WaServerEntity = void 0;
4
+ var wa_server_entity_1 = require("./wa-server.entity");
5
+ Object.defineProperty(exports, "WaServerEntity", { enumerable: true, get: function () { return wa_server_entity_1.WaServerEntity; } });
@@ -0,0 +1,16 @@
1
+ import { EWaServerStatus } from '../enums';
2
+ import { IWaServer } from '../interfaces';
3
+ export declare class WaServerEntity implements IWaServer {
4
+ active: boolean;
5
+ baseUrl: string;
6
+ createdAt: Date;
7
+ globalApiKey: string;
8
+ id: string;
9
+ installIds: string[];
10
+ name: string;
11
+ sessions: number;
12
+ stack: string;
13
+ status: EWaServerStatus;
14
+ updatedAt: Date;
15
+ constructor(data?: Partial<WaServerEntity>);
16
+ }
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.WaServerEntity = void 0;
4
+ var enums_1 = require("../enums");
5
+ var WaServerEntity = /** @class */ (function () {
6
+ function WaServerEntity(data) {
7
+ // #region Properties (11)
8
+ this.active = false;
9
+ this.baseUrl = '';
10
+ this.createdAt = new Date();
11
+ this.globalApiKey = '';
12
+ this.id = '';
13
+ this.installIds = [];
14
+ this.name = '';
15
+ this.sessions = 0;
16
+ this.stack = '';
17
+ this.status = enums_1.EWaServerStatus.STOPPED;
18
+ this.updatedAt = new Date();
19
+ if (data) {
20
+ for (var key in data) {
21
+ if (data.hasOwnProperty(key) && key in this) {
22
+ this[key] = data[key];
23
+ }
24
+ }
25
+ }
26
+ }
27
+ return WaServerEntity;
28
+ }());
29
+ exports.WaServerEntity = WaServerEntity;
@@ -0,0 +1 @@
1
+ export { EWaServerStatus } from './status.enum';
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EWaServerStatus = void 0;
4
+ var status_enum_1 = require("./status.enum");
5
+ Object.defineProperty(exports, "EWaServerStatus", { enumerable: true, get: function () { return status_enum_1.EWaServerStatus; } });
@@ -0,0 +1,8 @@
1
+ export declare enum EWaServerStatus {
2
+ CONNECTED = "CONNECTED",
3
+ DISCONNECTED = "DISCONNECTED",
4
+ RECONNECTING = "RECONNECTING",
5
+ RUNNING = "RUNNING",
6
+ STOPPED = "STOPPED",
7
+ DELETED = "DELETED"
8
+ }
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EWaServerStatus = void 0;
4
+ var EWaServerStatus;
5
+ (function (EWaServerStatus) {
6
+ EWaServerStatus["CONNECTED"] = "CONNECTED";
7
+ EWaServerStatus["DISCONNECTED"] = "DISCONNECTED";
8
+ EWaServerStatus["RECONNECTING"] = "RECONNECTING";
9
+ EWaServerStatus["RUNNING"] = "RUNNING";
10
+ EWaServerStatus["STOPPED"] = "STOPPED";
11
+ EWaServerStatus["DELETED"] = "DELETED";
12
+ })(EWaServerStatus || (exports.EWaServerStatus = EWaServerStatus = {}));
@@ -0,0 +1,3 @@
1
+ export * from './entities';
2
+ export * from './enums';
3
+ export * from './interfaces';
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./entities"), exports);
18
+ __exportStar(require("./enums"), exports);
19
+ __exportStar(require("./interfaces"), exports);
@@ -0,0 +1,14 @@
1
+ import { EWaServerStatus } from '../enums';
2
+ export interface IWaServer {
3
+ active: boolean;
4
+ name: string;
5
+ createdAt: Date;
6
+ updatedAt: Date;
7
+ stack: string;
8
+ status: EWaServerStatus;
9
+ id: string;
10
+ baseUrl: string;
11
+ globalApiKey: string;
12
+ sessions: number;
13
+ installIds: string[];
14
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export { IWaServer } from './i-wa-server';
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.2.12",
3
+ "version": "1.2.13",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",