@libgot/whatsapp-bridge-sdk 1.0.4 → 1.0.6

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/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @1.0.4
1
+ ## @1.0.6
2
2
 
3
3
  This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:
4
4
 
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
36
36
  _published:_
37
37
 
38
38
  ```
39
- npm install @libgot/whatsapp-bridge-sdk@1.0.4 --save
39
+ npm install @libgot/whatsapp-bridge-sdk@1.0.6 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
package/api.ts CHANGED
@@ -12,6 +12,7 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
  export * from './apis/auth-api';
15
+ export * from './apis/chats-api';
15
16
  export * from './apis/contacts-api';
16
17
  export * from './apis/default-api';
17
18
  export * from './apis/healthchecks-api';
@@ -0,0 +1,117 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * whatsapp-bridge Node Api
5
+ * The whatsapp-bridge API description
6
+ *
7
+ * OpenAPI spec version: 0.0.1
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by the swagger code generator program.
11
+ * https://github.com/swagger-api/swagger-codegen.git
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import globalAxios, { AxiosResponse, AxiosInstance, AxiosRequestConfig } from 'axios';
16
+ import { Configuration } from '../configuration';
17
+ // Some imports not used depending on template conditions
18
+ // @ts-ignore
19
+ import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
20
+ import { ChatsResponseDTO } from '../models';
21
+ /**
22
+ * ChatsApi - axios parameter creator
23
+ * @export
24
+ */
25
+ export const ChatsApiAxiosParamCreator = function (configuration?: Configuration) {
26
+ return {
27
+ /**
28
+ *
29
+ * @param {*} [options] Override http request option.
30
+ * @throws {RequiredError}
31
+ */
32
+ getChats: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
33
+ const localVarPath = `/api/chats`;
34
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
35
+ const localVarUrlObj = new URL(localVarPath, 'https://example.com');
36
+ let baseOptions;
37
+ if (configuration) {
38
+ baseOptions = configuration.baseOptions;
39
+ }
40
+ const localVarRequestOptions :AxiosRequestConfig = { method: 'GET', ...baseOptions, ...options};
41
+ const localVarHeaderParameter = {} as any;
42
+ const localVarQueryParameter = {} as any;
43
+
44
+ const query = new URLSearchParams(localVarUrlObj.search);
45
+ for (const key in localVarQueryParameter) {
46
+ query.set(key, localVarQueryParameter[key]);
47
+ }
48
+ for (const key in options.params) {
49
+ query.set(key, options.params[key]);
50
+ }
51
+ localVarUrlObj.search = (new URLSearchParams(query)).toString();
52
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
53
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
54
+
55
+ return {
56
+ url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
57
+ options: localVarRequestOptions,
58
+ };
59
+ },
60
+ }
61
+ };
62
+
63
+ /**
64
+ * ChatsApi - functional programming interface
65
+ * @export
66
+ */
67
+ export const ChatsApiFp = function(configuration?: Configuration) {
68
+ return {
69
+ /**
70
+ *
71
+ * @param {*} [options] Override http request option.
72
+ * @throws {RequiredError}
73
+ */
74
+ async getChats(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<ChatsResponseDTO>>> {
75
+ const localVarAxiosArgs = await ChatsApiAxiosParamCreator(configuration).getChats(options);
76
+ return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
77
+ const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
78
+ return axios.request(axiosRequestArgs);
79
+ };
80
+ },
81
+ }
82
+ };
83
+
84
+ /**
85
+ * ChatsApi - factory interface
86
+ * @export
87
+ */
88
+ export const ChatsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
89
+ return {
90
+ /**
91
+ *
92
+ * @param {*} [options] Override http request option.
93
+ * @throws {RequiredError}
94
+ */
95
+ async getChats(options?: AxiosRequestConfig): Promise<AxiosResponse<ChatsResponseDTO>> {
96
+ return ChatsApiFp(configuration).getChats(options).then((request) => request(axios, basePath));
97
+ },
98
+ };
99
+ };
100
+
101
+ /**
102
+ * ChatsApi - object-oriented interface
103
+ * @export
104
+ * @class ChatsApi
105
+ * @extends {BaseAPI}
106
+ */
107
+ export class ChatsApi extends BaseAPI {
108
+ /**
109
+ *
110
+ * @param {*} [options] Override http request option.
111
+ * @throws {RequiredError}
112
+ * @memberof ChatsApi
113
+ */
114
+ public async getChats(options?: AxiosRequestConfig) : Promise<AxiosResponse<ChatsResponseDTO>> {
115
+ return ChatsApiFp(this.configuration).getChats(options).then((request) => request(this.axios, this.basePath));
116
+ }
117
+ }
@@ -51,39 +51,6 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
51
51
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
52
52
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
53
53
 
54
- return {
55
- url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
56
- options: localVarRequestOptions,
57
- };
58
- },
59
- /**
60
- *
61
- * @param {*} [options] Override http request option.
62
- * @throws {RequiredError}
63
- */
64
- getChats: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
65
- const localVarPath = `/api/chats`;
66
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
67
- const localVarUrlObj = new URL(localVarPath, 'https://example.com');
68
- let baseOptions;
69
- if (configuration) {
70
- baseOptions = configuration.baseOptions;
71
- }
72
- const localVarRequestOptions :AxiosRequestConfig = { method: 'GET', ...baseOptions, ...options};
73
- const localVarHeaderParameter = {} as any;
74
- const localVarQueryParameter = {} as any;
75
-
76
- const query = new URLSearchParams(localVarUrlObj.search);
77
- for (const key in localVarQueryParameter) {
78
- query.set(key, localVarQueryParameter[key]);
79
- }
80
- for (const key in options.params) {
81
- query.set(key, options.params[key]);
82
- }
83
- localVarUrlObj.search = (new URLSearchParams(query)).toString();
84
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
85
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
86
-
87
54
  return {
88
55
  url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
89
56
  options: localVarRequestOptions,
@@ -110,18 +77,6 @@ export const DefaultApiFp = function(configuration?: Configuration) {
110
77
  return axios.request(axiosRequestArgs);
111
78
  };
112
79
  },
113
- /**
114
- *
115
- * @param {*} [options] Override http request option.
116
- * @throws {RequiredError}
117
- */
118
- async getChats(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<void>>> {
119
- const localVarAxiosArgs = await DefaultApiAxiosParamCreator(configuration).getChats(options);
120
- return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
121
- const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
122
- return axios.request(axiosRequestArgs);
123
- };
124
- },
125
80
  }
126
81
  };
127
82
 
@@ -139,14 +94,6 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa
139
94
  async appControllerGetHello(options?: AxiosRequestConfig): Promise<AxiosResponse<void>> {
140
95
  return DefaultApiFp(configuration).appControllerGetHello(options).then((request) => request(axios, basePath));
141
96
  },
142
- /**
143
- *
144
- * @param {*} [options] Override http request option.
145
- * @throws {RequiredError}
146
- */
147
- async getChats(options?: AxiosRequestConfig): Promise<AxiosResponse<void>> {
148
- return DefaultApiFp(configuration).getChats(options).then((request) => request(axios, basePath));
149
- },
150
97
  };
151
98
  };
152
99
 
@@ -166,13 +113,4 @@ export class DefaultApi extends BaseAPI {
166
113
  public async appControllerGetHello(options?: AxiosRequestConfig) : Promise<AxiosResponse<void>> {
167
114
  return DefaultApiFp(this.configuration).appControllerGetHello(options).then((request) => request(this.axios, this.basePath));
168
115
  }
169
- /**
170
- *
171
- * @param {*} [options] Override http request option.
172
- * @throws {RequiredError}
173
- * @memberof DefaultApi
174
- */
175
- public async getChats(options?: AxiosRequestConfig) : Promise<AxiosResponse<void>> {
176
- return DefaultApiFp(this.configuration).getChats(options).then((request) => request(this.axios, this.basePath));
177
- }
178
116
  }
package/dist/api.d.ts CHANGED
@@ -10,6 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  export * from './apis/auth-api';
13
+ export * from './apis/chats-api';
13
14
  export * from './apis/contacts-api';
14
15
  export * from './apis/default-api';
15
16
  export * from './apis/healthchecks-api';
package/dist/api.js CHANGED
@@ -1,13 +1,17 @@
1
1
  "use strict";
2
2
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
3
  if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[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);
5
9
  }) : (function(o, m, k, k2) {
6
10
  if (k2 === undefined) k2 = k;
7
11
  o[k2] = m[k];
8
12
  }));
9
13
  var __exportStar = (this && this.__exportStar) || function(m, exports) {
10
- for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p);
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
11
15
  };
12
16
  Object.defineProperty(exports, "__esModule", { value: true });
13
17
  /* tslint:disable */
@@ -24,6 +28,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
24
28
  * Do not edit the class manually.
25
29
  */
26
30
  __exportStar(require("./apis/auth-api"), exports);
31
+ __exportStar(require("./apis/chats-api"), exports);
27
32
  __exportStar(require("./apis/contacts-api"), exports);
28
33
  __exportStar(require("./apis/default-api"), exports);
29
34
  __exportStar(require("./apis/healthchecks-api"), exports);
@@ -16,10 +16,12 @@ var __extends = (this && this.__extends) || (function () {
16
16
  var extendStatics = function (d, b) {
17
17
  extendStatics = Object.setPrototypeOf ||
18
18
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
19
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
19
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
20
20
  return extendStatics(d, b);
21
21
  };
22
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");
23
25
  extendStatics(d, b);
24
26
  function __() { this.constructor = d; }
25
27
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
@@ -46,12 +48,12 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
46
48
  });
47
49
  };
48
50
  var __generator = (this && this.__generator) || function (thisArg, body) {
49
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
50
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
51
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
52
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
51
53
  function verb(n) { return function (v) { return step([n, v]); }; }
52
54
  function step(op) {
53
55
  if (f) throw new TypeError("Generator is already executing.");
54
- while (_) try {
56
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
55
57
  if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
56
58
  if (y = 0, t) op = [op[0] & 2, t.value];
57
59
  switch (op[0]) {
@@ -72,6 +74,15 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
72
74
  if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
73
75
  }
74
76
  };
77
+ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
78
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
79
+ if (ar || !(i in from)) {
80
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
81
+ ar[i] = from[i];
82
+ }
83
+ }
84
+ return to.concat(ar || Array.prototype.slice.call(from));
85
+ };
75
86
  Object.defineProperty(exports, "__esModule", { value: true });
76
87
  exports.AuthApi = exports.AuthApiFactory = exports.AuthApiFp = exports.AuthApiAxiosParamCreator = void 0;
77
88
  var axios_1 = require("axios");
@@ -82,7 +93,7 @@ var base_1 = require("../base");
82
93
  * AuthApi - axios parameter creator
83
94
  * @export
84
95
  */
85
- exports.AuthApiAxiosParamCreator = function (configuration) {
96
+ var AuthApiAxiosParamCreator = function (configuration) {
86
97
  var _this = this;
87
98
  return {
88
99
  /**
@@ -91,10 +102,14 @@ exports.AuthApiAxiosParamCreator = function (configuration) {
91
102
  * @param {*} [options] Override http request option.
92
103
  * @throws {RequiredError}
93
104
  */
94
- login: function (body, options) {
95
- if (options === void 0) { options = {}; }
96
- return __awaiter(_this, void 0, void 0, function () {
105
+ login: function (body_1) {
106
+ var args_1 = [];
107
+ for (var _i = 1; _i < arguments.length; _i++) {
108
+ args_1[_i - 1] = arguments[_i];
109
+ }
110
+ return __awaiter(_this, __spreadArray([body_1], args_1, true), void 0, function (body, options) {
97
111
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, query, key, key, headersFromBaseOptions, needsSerialization;
112
+ if (options === void 0) { options = {}; }
98
113
  return __generator(this, function (_a) {
99
114
  // verify required parameter 'body' is not null or undefined
100
115
  if (body === null || body === undefined) {
@@ -133,10 +148,14 @@ exports.AuthApiAxiosParamCreator = function (configuration) {
133
148
  * @param {*} [options] Override http request option.
134
149
  * @throws {RequiredError}
135
150
  */
136
- logout: function (options) {
137
- if (options === void 0) { options = {}; }
138
- return __awaiter(_this, void 0, void 0, function () {
151
+ logout: function () {
152
+ var args_1 = [];
153
+ for (var _i = 0; _i < arguments.length; _i++) {
154
+ args_1[_i] = arguments[_i];
155
+ }
156
+ return __awaiter(_this, __spreadArray([], args_1, true), void 0, function (options) {
139
157
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, accessToken, _a, query, key, key, headersFromBaseOptions;
158
+ if (options === void 0) { options = {}; }
140
159
  return __generator(this, function (_b) {
141
160
  switch (_b.label) {
142
161
  case 0:
@@ -186,10 +205,14 @@ exports.AuthApiAxiosParamCreator = function (configuration) {
186
205
  * @param {*} [options] Override http request option.
187
206
  * @throws {RequiredError}
188
207
  */
189
- refreshToken: function (options) {
190
- if (options === void 0) { options = {}; }
191
- return __awaiter(_this, void 0, void 0, function () {
208
+ refreshToken: function () {
209
+ var args_1 = [];
210
+ for (var _i = 0; _i < arguments.length; _i++) {
211
+ args_1[_i] = arguments[_i];
212
+ }
213
+ return __awaiter(_this, __spreadArray([], args_1, true), void 0, function (options) {
192
214
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, accessToken, _a, query, key, key, headersFromBaseOptions;
215
+ if (options === void 0) { options = {}; }
193
216
  return __generator(this, function (_b) {
194
217
  switch (_b.label) {
195
218
  case 0:
@@ -236,11 +259,12 @@ exports.AuthApiAxiosParamCreator = function (configuration) {
236
259
  },
237
260
  };
238
261
  };
262
+ exports.AuthApiAxiosParamCreator = AuthApiAxiosParamCreator;
239
263
  /**
240
264
  * AuthApi - functional programming interface
241
265
  * @export
242
266
  */
243
- exports.AuthApiFp = function (configuration) {
267
+ var AuthApiFp = function (configuration) {
244
268
  return {
245
269
  /**
246
270
  *
@@ -253,7 +277,7 @@ exports.AuthApiFp = function (configuration) {
253
277
  var localVarAxiosArgs;
254
278
  return __generator(this, function (_a) {
255
279
  switch (_a.label) {
256
- case 0: return [4 /*yield*/, exports.AuthApiAxiosParamCreator(configuration).login(body, options)];
280
+ case 0: return [4 /*yield*/, (0, exports.AuthApiAxiosParamCreator)(configuration).login(body, options)];
257
281
  case 1:
258
282
  localVarAxiosArgs = _a.sent();
259
283
  return [2 /*return*/, function (axios, basePath) {
@@ -276,7 +300,7 @@ exports.AuthApiFp = function (configuration) {
276
300
  var localVarAxiosArgs;
277
301
  return __generator(this, function (_a) {
278
302
  switch (_a.label) {
279
- case 0: return [4 /*yield*/, exports.AuthApiAxiosParamCreator(configuration).logout(options)];
303
+ case 0: return [4 /*yield*/, (0, exports.AuthApiAxiosParamCreator)(configuration).logout(options)];
280
304
  case 1:
281
305
  localVarAxiosArgs = _a.sent();
282
306
  return [2 /*return*/, function (axios, basePath) {
@@ -299,7 +323,7 @@ exports.AuthApiFp = function (configuration) {
299
323
  var localVarAxiosArgs;
300
324
  return __generator(this, function (_a) {
301
325
  switch (_a.label) {
302
- case 0: return [4 /*yield*/, exports.AuthApiAxiosParamCreator(configuration).refreshToken(options)];
326
+ case 0: return [4 /*yield*/, (0, exports.AuthApiAxiosParamCreator)(configuration).refreshToken(options)];
303
327
  case 1:
304
328
  localVarAxiosArgs = _a.sent();
305
329
  return [2 /*return*/, function (axios, basePath) {
@@ -314,11 +338,12 @@ exports.AuthApiFp = function (configuration) {
314
338
  },
315
339
  };
316
340
  };
341
+ exports.AuthApiFp = AuthApiFp;
317
342
  /**
318
343
  * AuthApi - factory interface
319
344
  * @export
320
345
  */
321
- exports.AuthApiFactory = function (configuration, basePath, axios) {
346
+ var AuthApiFactory = function (configuration, basePath, axios) {
322
347
  return {
323
348
  /**
324
349
  *
@@ -329,7 +354,7 @@ exports.AuthApiFactory = function (configuration, basePath, axios) {
329
354
  login: function (body, options) {
330
355
  return __awaiter(this, void 0, void 0, function () {
331
356
  return __generator(this, function (_a) {
332
- return [2 /*return*/, exports.AuthApiFp(configuration).login(body, options).then(function (request) { return request(axios, basePath); })];
357
+ return [2 /*return*/, (0, exports.AuthApiFp)(configuration).login(body, options).then(function (request) { return request(axios, basePath); })];
333
358
  });
334
359
  });
335
360
  },
@@ -341,7 +366,7 @@ exports.AuthApiFactory = function (configuration, basePath, axios) {
341
366
  logout: function (options) {
342
367
  return __awaiter(this, void 0, void 0, function () {
343
368
  return __generator(this, function (_a) {
344
- return [2 /*return*/, exports.AuthApiFp(configuration).logout(options).then(function (request) { return request(axios, basePath); })];
369
+ return [2 /*return*/, (0, exports.AuthApiFp)(configuration).logout(options).then(function (request) { return request(axios, basePath); })];
345
370
  });
346
371
  });
347
372
  },
@@ -353,12 +378,13 @@ exports.AuthApiFactory = function (configuration, basePath, axios) {
353
378
  refreshToken: function (options) {
354
379
  return __awaiter(this, void 0, void 0, function () {
355
380
  return __generator(this, function (_a) {
356
- return [2 /*return*/, exports.AuthApiFp(configuration).refreshToken(options).then(function (request) { return request(axios, basePath); })];
381
+ return [2 /*return*/, (0, exports.AuthApiFp)(configuration).refreshToken(options).then(function (request) { return request(axios, basePath); })];
357
382
  });
358
383
  });
359
384
  },
360
385
  };
361
386
  };
387
+ exports.AuthApiFactory = AuthApiFactory;
362
388
  /**
363
389
  * AuthApi - object-oriented interface
364
390
  * @export
@@ -381,7 +407,7 @@ var AuthApi = /** @class */ (function (_super) {
381
407
  return __awaiter(this, void 0, void 0, function () {
382
408
  var _this = this;
383
409
  return __generator(this, function (_a) {
384
- return [2 /*return*/, exports.AuthApiFp(this.configuration).login(body, options).then(function (request) { return request(_this.axios, _this.basePath); })];
410
+ return [2 /*return*/, (0, exports.AuthApiFp)(this.configuration).login(body, options).then(function (request) { return request(_this.axios, _this.basePath); })];
385
411
  });
386
412
  });
387
413
  };
@@ -395,7 +421,7 @@ var AuthApi = /** @class */ (function (_super) {
395
421
  return __awaiter(this, void 0, void 0, function () {
396
422
  var _this = this;
397
423
  return __generator(this, function (_a) {
398
- return [2 /*return*/, exports.AuthApiFp(this.configuration).logout(options).then(function (request) { return request(_this.axios, _this.basePath); })];
424
+ return [2 /*return*/, (0, exports.AuthApiFp)(this.configuration).logout(options).then(function (request) { return request(_this.axios, _this.basePath); })];
399
425
  });
400
426
  });
401
427
  };
@@ -409,7 +435,7 @@ var AuthApi = /** @class */ (function (_super) {
409
435
  return __awaiter(this, void 0, void 0, function () {
410
436
  var _this = this;
411
437
  return __generator(this, function (_a) {
412
- return [2 /*return*/, exports.AuthApiFp(this.configuration).refreshToken(options).then(function (request) { return request(_this.axios, _this.basePath); })];
438
+ return [2 /*return*/, (0, exports.AuthApiFp)(this.configuration).refreshToken(options).then(function (request) { return request(_this.axios, _this.basePath); })];
413
439
  });
414
440
  });
415
441
  };
@@ -0,0 +1,66 @@
1
+ /**
2
+ * whatsapp-bridge Node Api
3
+ * The whatsapp-bridge API description
4
+ *
5
+ * OpenAPI spec version: 0.0.1
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by the swagger code generator program.
9
+ * https://github.com/swagger-api/swagger-codegen.git
10
+ * Do not edit the class manually.
11
+ */
12
+ import { AxiosResponse, AxiosInstance, AxiosRequestConfig } from 'axios';
13
+ import { Configuration } from '../configuration';
14
+ import { RequestArgs, BaseAPI } from '../base';
15
+ import { ChatsResponseDTO } from '../models';
16
+ /**
17
+ * ChatsApi - axios parameter creator
18
+ * @export
19
+ */
20
+ export declare const ChatsApiAxiosParamCreator: (configuration?: Configuration) => {
21
+ /**
22
+ *
23
+ * @param {*} [options] Override http request option.
24
+ * @throws {RequiredError}
25
+ */
26
+ getChats: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
27
+ };
28
+ /**
29
+ * ChatsApi - functional programming interface
30
+ * @export
31
+ */
32
+ export declare const ChatsApiFp: (configuration?: Configuration) => {
33
+ /**
34
+ *
35
+ * @param {*} [options] Override http request option.
36
+ * @throws {RequiredError}
37
+ */
38
+ getChats(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<ChatsResponseDTO>>>;
39
+ };
40
+ /**
41
+ * ChatsApi - factory interface
42
+ * @export
43
+ */
44
+ export declare const ChatsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
45
+ /**
46
+ *
47
+ * @param {*} [options] Override http request option.
48
+ * @throws {RequiredError}
49
+ */
50
+ getChats(options?: AxiosRequestConfig): Promise<AxiosResponse<ChatsResponseDTO>>;
51
+ };
52
+ /**
53
+ * ChatsApi - object-oriented interface
54
+ * @export
55
+ * @class ChatsApi
56
+ * @extends {BaseAPI}
57
+ */
58
+ export declare class ChatsApi extends BaseAPI {
59
+ /**
60
+ *
61
+ * @param {*} [options] Override http request option.
62
+ * @throws {RequiredError}
63
+ * @memberof ChatsApi
64
+ */
65
+ getChats(options?: AxiosRequestConfig): Promise<AxiosResponse<ChatsResponseDTO>>;
66
+ }