cecon-interfaces 1.2.15 → 1.2.19

Sign up to get free protection for your applications and to get access to all the features.
Files changed (27) hide show
  1. package/dist/app/entities/app.entity.d.ts +1 -0
  2. package/dist/app/entities/app.entity.js +3 -2
  3. package/dist/app/interfaces/i-app.d.ts +1 -0
  4. package/dist/esm2022/app/entities/app.entity.mjs +4 -3
  5. package/dist/esm2022/app/interfaces/i-app.mjs +1 -1
  6. package/dist/esm2022/evolution/entities/instance.entity.mjs +8 -3
  7. package/dist/esm2022/evolution/interfaces/i-instance.mjs +1 -1
  8. package/dist/esm2022/invoice/entities/invoice-item.entity.mjs +4 -3
  9. package/dist/esm2022/invoice/interfaces/i-invoice-item.mjs +1 -1
  10. package/dist/esm2022/wa-server/entities/wa-server.entity.mjs +6 -4
  11. package/dist/esm2022/wa-server/enums/status.enum.mjs +2 -5
  12. package/dist/esm2022/wa-server/interfaces/i-wa-server.mjs +1 -1
  13. package/dist/evolution/entities/instance.entity.d.ts +5 -0
  14. package/dist/evolution/entities/instance.entity.js +7 -2
  15. package/dist/evolution/interfaces/i-instance.d.ts +5 -0
  16. package/dist/fesm2022/cecon-interfaces.mjs +19 -13
  17. package/dist/fesm2022/cecon-interfaces.mjs.map +1 -1
  18. package/dist/invoice/entities/invoice-item.entity.d.ts +1 -0
  19. package/dist/invoice/entities/invoice-item.entity.js +3 -2
  20. package/dist/invoice/interfaces/i-invoice-item.d.ts +5 -4
  21. package/dist/package.json +1 -1
  22. package/dist/wa-server/entities/wa-server.entity.d.ts +3 -2
  23. package/dist/wa-server/entities/wa-server.entity.js +5 -3
  24. package/dist/wa-server/enums/status.enum.d.ts +1 -4
  25. package/dist/wa-server/enums/status.enum.js +1 -4
  26. package/dist/wa-server/interfaces/i-wa-server.d.ts +2 -1
  27. package/package.json +1 -1
@@ -1,5 +1,6 @@
1
1
  import { IInvoiceItem } from '../interfaces';
2
2
  export declare class InvoiceItemEntity implements IInvoiceItem {
3
+ companyId: string;
3
4
  createdAt: Date;
4
5
  description: string;
5
6
  isRefunded: boolean;
@@ -2,10 +2,11 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.InvoiceItemEntity = void 0;
4
4
  var InvoiceItemEntity = /** @class */ (function () {
5
- // #endregion Properties (8)
5
+ // #endregion Properties (9)
6
6
  // #region Constructors (1)
7
7
  function InvoiceItemEntity(data) {
8
- // #region Properties (8)
8
+ // #region Properties (9)
9
+ this.companyId = '';
9
10
  this.createdAt = new Date();
10
11
  this.description = '';
11
12
  this.isRefunded = false;
@@ -1,10 +1,11 @@
1
1
  export interface IInvoiceItem {
2
+ companyId: string;
3
+ createdAt: Date;
2
4
  description: string;
3
- quantity: number;
4
5
  isRefunded: boolean;
5
- unitPrice: number;
6
- totalPrice: number;
6
+ quantity: number;
7
7
  reference: string | null;
8
- createdAt: Date;
8
+ totalPrice: number;
9
+ unitPrice: number;
9
10
  updatedAt: Date;
10
11
  }
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.2.15",
3
+ "version": "1.2.19",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1,3 +1,4 @@
1
+ import { IEvolutionInstance } from '../../evolution';
1
2
  import { EWaServerStatus } from '../enums';
2
3
  import { IWaServer } from '../interfaces';
3
4
  export declare class WaServerEntity implements IWaServer {
@@ -6,12 +7,12 @@ export declare class WaServerEntity implements IWaServer {
6
7
  createdAt: Date;
7
8
  globalApiKey: string;
8
9
  id: string;
9
- installIds: string[];
10
+ instances: IEvolutionInstance[];
10
11
  name: string;
11
- tags: string[];
12
12
  sessions: number;
13
13
  stack: string;
14
14
  status: EWaServerStatus;
15
+ tags: string[];
15
16
  updatedAt: Date;
16
17
  constructor(data?: Partial<WaServerEntity>);
17
18
  }
@@ -3,19 +3,21 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.WaServerEntity = void 0;
4
4
  var enums_1 = require("../enums");
5
5
  var WaServerEntity = /** @class */ (function () {
6
+ // #endregion Properties (12)
7
+ // #region Constructors (1)
6
8
  function WaServerEntity(data) {
7
- // #region Properties (11)
9
+ // #region Properties (12)
8
10
  this.active = false;
9
11
  this.baseUrl = '';
10
12
  this.createdAt = new Date();
11
13
  this.globalApiKey = '';
12
14
  this.id = '';
13
- this.installIds = [];
15
+ this.instances = [];
14
16
  this.name = '';
15
- this.tags = [];
16
17
  this.sessions = 0;
17
18
  this.stack = '';
18
19
  this.status = enums_1.EWaServerStatus.STOPPED;
20
+ this.tags = [];
19
21
  this.updatedAt = new Date();
20
22
  if (data) {
21
23
  for (var key in data) {
@@ -1,8 +1,5 @@
1
1
  export declare enum EWaServerStatus {
2
- CONNECTED = "CONNECTED",
3
- DISCONNECTED = "DISCONNECTED",
4
- RECONNECTING = "RECONNECTING",
5
2
  RUNNING = "RUNNING",
6
3
  STOPPED = "STOPPED",
7
- DELETED = "DELETED"
4
+ FULL = "FULL"
8
5
  }
@@ -3,10 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.EWaServerStatus = void 0;
4
4
  var EWaServerStatus;
5
5
  (function (EWaServerStatus) {
6
- EWaServerStatus["CONNECTED"] = "CONNECTED";
7
- EWaServerStatus["DISCONNECTED"] = "DISCONNECTED";
8
- EWaServerStatus["RECONNECTING"] = "RECONNECTING";
9
6
  EWaServerStatus["RUNNING"] = "RUNNING";
10
7
  EWaServerStatus["STOPPED"] = "STOPPED";
11
- EWaServerStatus["DELETED"] = "DELETED";
8
+ EWaServerStatus["FULL"] = "FULL";
12
9
  })(EWaServerStatus || (exports.EWaServerStatus = EWaServerStatus = {}));
@@ -1,3 +1,4 @@
1
+ import { IEvolutionInstance } from '../../evolution';
1
2
  import { EWaServerStatus } from '../enums';
2
3
  export interface IWaServer {
3
4
  active: boolean;
@@ -10,6 +11,6 @@ export interface IWaServer {
10
11
  tags: string[];
11
12
  baseUrl: string;
12
13
  globalApiKey: string;
14
+ instances: IEvolutionInstance[];
13
15
  sessions: number;
14
- installIds: string[];
15
16
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.2.15",
3
+ "version": "1.2.19",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",