@libgot/whatsapp-bridge-sdk 1.0.32 → 1.0.34-rc.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/base.js CHANGED
@@ -12,26 +12,11 @@
12
12
  * https://github.com/swagger-api/swagger-codegen.git
13
13
  * Do not edit the class manually.
14
14
  */
15
- var __extends = (this && this.__extends) || (function () {
16
- var extendStatics = function (d, b) {
17
- extendStatics = Object.setPrototypeOf ||
18
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
19
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
20
- return extendStatics(d, b);
21
- };
22
- return function (d, b) {
23
- if (typeof b !== "function" && b !== null)
24
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
25
- extendStatics(d, b);
26
- function __() { this.constructor = d; }
27
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
28
- };
29
- })();
30
15
  Object.defineProperty(exports, "__esModule", { value: true });
31
16
  exports.RequiredError = exports.BaseAPI = exports.COLLECTION_FORMATS = exports.BASE_PATH = void 0;
32
17
  // Some imports not used depending on template conditions
33
18
  // @ts-ignore
34
- var axios_1 = require("axios");
19
+ const axios_1 = require("axios");
35
20
  exports.BASE_PATH = "http://api-whatsapp-bridge.local.libgot.com".replace(/\/+$/, "");
36
21
  /**
37
22
  *
@@ -48,10 +33,8 @@ exports.COLLECTION_FORMATS = {
48
33
  * @export
49
34
  * @class BaseAPI
50
35
  */
51
- var BaseAPI = /** @class */ (function () {
52
- function BaseAPI(configuration, basePath, axios) {
53
- if (basePath === void 0) { basePath = exports.BASE_PATH; }
54
- if (axios === void 0) { axios = axios_1.default; }
36
+ class BaseAPI {
37
+ constructor(configuration, basePath = exports.BASE_PATH, axios = axios_1.default) {
55
38
  this.basePath = basePath;
56
39
  this.axios = axios;
57
40
  if (configuration) {
@@ -59,8 +42,7 @@ var BaseAPI = /** @class */ (function () {
59
42
  this.basePath = configuration.basePath || this.basePath;
60
43
  }
61
44
  }
62
- return BaseAPI;
63
- }());
45
+ }
64
46
  exports.BaseAPI = BaseAPI;
65
47
  ;
66
48
  /**
@@ -69,14 +51,11 @@ exports.BaseAPI = BaseAPI;
69
51
  * @class RequiredError
70
52
  * @extends {Error}
71
53
  */
72
- var RequiredError = /** @class */ (function (_super) {
73
- __extends(RequiredError, _super);
74
- function RequiredError(field, msg) {
75
- var _this = _super.call(this, msg) || this;
76
- _this.field = field;
77
- _this.name = "RequiredError";
78
- return _this;
54
+ class RequiredError extends Error {
55
+ constructor(field, msg) {
56
+ super(msg);
57
+ this.field = field;
58
+ this.name = "RequiredError";
79
59
  }
80
- return RequiredError;
81
- }(Error));
60
+ }
82
61
  exports.RequiredError = RequiredError;
@@ -14,9 +14,8 @@
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.Configuration = void 0;
17
- var Configuration = /** @class */ (function () {
18
- function Configuration(param) {
19
- if (param === void 0) { param = {}; }
17
+ class Configuration {
18
+ constructor(param = {}) {
20
19
  this.apiKey = param.apiKey;
21
20
  this.username = param.username;
22
21
  this.password = param.password;
@@ -24,6 +23,5 @@ var Configuration = /** @class */ (function () {
24
23
  this.basePath = param.basePath;
25
24
  this.baseOptions = param.baseOptions;
26
25
  }
27
- return Configuration;
28
- }());
26
+ }
29
27
  exports.Configuration = Configuration;
@@ -20,10 +20,15 @@ export interface ReadMessageDto {
20
20
  * @type {number}
21
21
  * @memberof ReadMessageDto
22
22
  */
23
- chatId: number;
23
+ branchId: number;
24
24
  /**
25
25
  * @type {number}
26
26
  * @memberof ReadMessageDto
27
27
  */
28
- branchId: number;
28
+ chatId?: number;
29
+ /**
30
+ * @type {number}
31
+ * @memberof ReadMessageDto
32
+ */
33
+ cellphone?: number;
29
34
  }
@@ -24,11 +24,17 @@ export interface ReadMessageDto {
24
24
  * @type {number}
25
25
  * @memberof ReadMessageDto
26
26
  */
27
- chatId: number;
27
+ branchId: number;
28
28
 
29
29
  /**
30
30
  * @type {number}
31
31
  * @memberof ReadMessageDto
32
32
  */
33
- branchId: number;
33
+ chatId?: number;
34
+
35
+ /**
36
+ * @type {number}
37
+ * @memberof ReadMessageDto
38
+ */
39
+ cellphone?: number;
34
40
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@libgot/whatsapp-bridge-sdk",
3
- "version": "1.0.32",
3
+ "version": "1.0.34-rc.1",
4
4
  "description": "OpenAPI client for ",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [
package/tsconfig.json CHANGED
@@ -1,15 +1,11 @@
1
1
  {
2
2
  "compilerOptions": {
3
3
  "declaration": true,
4
- "target": "es5",
4
+ "target": "es6",
5
5
  "module": "commonjs",
6
6
  "noImplicitAny": true,
7
7
  "outDir": "dist",
8
8
  "rootDir": ".",
9
- "lib": [
10
- "es6",
11
- "dom"
12
- ],
13
9
  "typeRoots": [
14
10
  "node_modules/@types"
15
11
  ]