@libgot/whatsapp-bridge-sdk 1.0.30 → 1.0.32

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.30
1
+ ## @1.0.32
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.30 --save
39
+ npm install @libgot/whatsapp-bridge-sdk@1.0.32 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
package/apis/chats-api.ts CHANGED
@@ -120,11 +120,12 @@ export const ChatsApiAxiosParamCreator = function (configuration?: Configuration
120
120
  * @param {number} [userId]
121
121
  * @param {number} [currentPage]
122
122
  * @param {number} [rowsPerPage]
123
- * @param {number} [unread]
123
+ * @param {boolean} [unread]
124
+ * @param {string} [q]
124
125
  * @param {*} [options] Override http request option.
125
126
  * @throws {RequiredError}
126
127
  */
127
- getChats: async (branchId: number, userId?: number, currentPage?: number, rowsPerPage?: number, unread?: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
128
+ getChats: async (branchId: number, userId?: number, currentPage?: number, rowsPerPage?: number, unread?: boolean, q?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
128
129
  // verify required parameter 'branchId' is not null or undefined
129
130
  if (branchId === null || branchId === undefined) {
130
131
  throw new RequiredError('branchId','Required parameter branchId was null or undefined when calling getChats.');
@@ -160,6 +161,10 @@ export const ChatsApiAxiosParamCreator = function (configuration?: Configuration
160
161
  localVarQueryParameter['unread'] = unread;
161
162
  }
162
163
 
164
+ if (q !== undefined) {
165
+ localVarQueryParameter['q'] = q;
166
+ }
167
+
163
168
  const query = new URLSearchParams(localVarUrlObj.search);
164
169
  for (const key in localVarQueryParameter) {
165
170
  query.set(key, localVarQueryParameter[key]);
@@ -266,12 +271,13 @@ export const ChatsApiFp = function(configuration?: Configuration) {
266
271
  * @param {number} [userId]
267
272
  * @param {number} [currentPage]
268
273
  * @param {number} [rowsPerPage]
269
- * @param {number} [unread]
274
+ * @param {boolean} [unread]
275
+ * @param {string} [q]
270
276
  * @param {*} [options] Override http request option.
271
277
  * @throws {RequiredError}
272
278
  */
273
- async getChats(branchId: number, userId?: number, currentPage?: number, rowsPerPage?: number, unread?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<PaginationChatResponseDto>>> {
274
- const localVarAxiosArgs = await ChatsApiAxiosParamCreator(configuration).getChats(branchId, userId, currentPage, rowsPerPage, unread, options);
279
+ async getChats(branchId: number, userId?: number, currentPage?: number, rowsPerPage?: number, unread?: boolean, q?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<PaginationChatResponseDto>>> {
280
+ const localVarAxiosArgs = await ChatsApiAxiosParamCreator(configuration).getChats(branchId, userId, currentPage, rowsPerPage, unread, q, options);
275
281
  return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
276
282
  const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
277
283
  return axios.request(axiosRequestArgs);
@@ -325,12 +331,13 @@ export const ChatsApiFactory = function (configuration?: Configuration, basePath
325
331
  * @param {number} [userId]
326
332
  * @param {number} [currentPage]
327
333
  * @param {number} [rowsPerPage]
328
- * @param {number} [unread]
334
+ * @param {boolean} [unread]
335
+ * @param {string} [q]
329
336
  * @param {*} [options] Override http request option.
330
337
  * @throws {RequiredError}
331
338
  */
332
- async getChats(branchId: number, userId?: number, currentPage?: number, rowsPerPage?: number, unread?: number, options?: AxiosRequestConfig): Promise<AxiosResponse<PaginationChatResponseDto>> {
333
- return ChatsApiFp(configuration).getChats(branchId, userId, currentPage, rowsPerPage, unread, options).then((request) => request(axios, basePath));
339
+ async getChats(branchId: number, userId?: number, currentPage?: number, rowsPerPage?: number, unread?: boolean, q?: string, options?: AxiosRequestConfig): Promise<AxiosResponse<PaginationChatResponseDto>> {
340
+ return ChatsApiFp(configuration).getChats(branchId, userId, currentPage, rowsPerPage, unread, q, options).then((request) => request(axios, basePath));
334
341
  },
335
342
  /**
336
343
  *
@@ -379,13 +386,14 @@ export class ChatsApi extends BaseAPI {
379
386
  * @param {number} [userId]
380
387
  * @param {number} [currentPage]
381
388
  * @param {number} [rowsPerPage]
382
- * @param {number} [unread]
389
+ * @param {boolean} [unread]
390
+ * @param {string} [q]
383
391
  * @param {*} [options] Override http request option.
384
392
  * @throws {RequiredError}
385
393
  * @memberof ChatsApi
386
394
  */
387
- public async getChats(branchId: number, userId?: number, currentPage?: number, rowsPerPage?: number, unread?: number, options?: AxiosRequestConfig) : Promise<AxiosResponse<PaginationChatResponseDto>> {
388
- return ChatsApiFp(this.configuration).getChats(branchId, userId, currentPage, rowsPerPage, unread, options).then((request) => request(this.axios, this.basePath));
395
+ public async getChats(branchId: number, userId?: number, currentPage?: number, rowsPerPage?: number, unread?: boolean, q?: string, options?: AxiosRequestConfig) : Promise<AxiosResponse<PaginationChatResponseDto>> {
396
+ return ChatsApiFp(this.configuration).getChats(branchId, userId, currentPage, rowsPerPage, unread, q, options).then((request) => request(this.axios, this.basePath));
389
397
  }
390
398
  /**
391
399
  *
@@ -42,11 +42,12 @@ export declare const ChatsApiAxiosParamCreator: (configuration?: Configuration)
42
42
  * @param {number} [userId]
43
43
  * @param {number} [currentPage]
44
44
  * @param {number} [rowsPerPage]
45
- * @param {number} [unread]
45
+ * @param {boolean} [unread]
46
+ * @param {string} [q]
46
47
  * @param {*} [options] Override http request option.
47
48
  * @throws {RequiredError}
48
49
  */
49
- getChats: (branchId: number, userId?: number, currentPage?: number, rowsPerPage?: number, unread?: number, options?: AxiosRequestConfig) => Promise<RequestArgs>;
50
+ getChats: (branchId: number, userId?: number, currentPage?: number, rowsPerPage?: number, unread?: boolean, q?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
50
51
  /**
51
52
  *
52
53
  * @param {MarkChatUnreadDto} body
@@ -82,11 +83,12 @@ export declare const ChatsApiFp: (configuration?: Configuration) => {
82
83
  * @param {number} [userId]
83
84
  * @param {number} [currentPage]
84
85
  * @param {number} [rowsPerPage]
85
- * @param {number} [unread]
86
+ * @param {boolean} [unread]
87
+ * @param {string} [q]
86
88
  * @param {*} [options] Override http request option.
87
89
  * @throws {RequiredError}
88
90
  */
89
- getChats(branchId: number, userId?: number, currentPage?: number, rowsPerPage?: number, unread?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<PaginationChatResponseDto>>>;
91
+ getChats(branchId: number, userId?: number, currentPage?: number, rowsPerPage?: number, unread?: boolean, q?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<PaginationChatResponseDto>>>;
90
92
  /**
91
93
  *
92
94
  * @param {MarkChatUnreadDto} body
@@ -122,11 +124,12 @@ export declare const ChatsApiFactory: (configuration?: Configuration, basePath?:
122
124
  * @param {number} [userId]
123
125
  * @param {number} [currentPage]
124
126
  * @param {number} [rowsPerPage]
125
- * @param {number} [unread]
127
+ * @param {boolean} [unread]
128
+ * @param {string} [q]
126
129
  * @param {*} [options] Override http request option.
127
130
  * @throws {RequiredError}
128
131
  */
129
- getChats(branchId: number, userId?: number, currentPage?: number, rowsPerPage?: number, unread?: number, options?: AxiosRequestConfig): Promise<AxiosResponse<PaginationChatResponseDto>>;
132
+ getChats(branchId: number, userId?: number, currentPage?: number, rowsPerPage?: number, unread?: boolean, q?: string, options?: AxiosRequestConfig): Promise<AxiosResponse<PaginationChatResponseDto>>;
130
133
  /**
131
134
  *
132
135
  * @param {MarkChatUnreadDto} body
@@ -166,12 +169,13 @@ export declare class ChatsApi extends BaseAPI {
166
169
  * @param {number} [userId]
167
170
  * @param {number} [currentPage]
168
171
  * @param {number} [rowsPerPage]
169
- * @param {number} [unread]
172
+ * @param {boolean} [unread]
173
+ * @param {string} [q]
170
174
  * @param {*} [options] Override http request option.
171
175
  * @throws {RequiredError}
172
176
  * @memberof ChatsApi
173
177
  */
174
- getChats(branchId: number, userId?: number, currentPage?: number, rowsPerPage?: number, unread?: number, options?: AxiosRequestConfig): Promise<AxiosResponse<PaginationChatResponseDto>>;
178
+ getChats(branchId: number, userId?: number, currentPage?: number, rowsPerPage?: number, unread?: boolean, q?: string, options?: AxiosRequestConfig): Promise<AxiosResponse<PaginationChatResponseDto>>;
175
179
  /**
176
180
  *
177
181
  * @param {MarkChatUnreadDto} body
@@ -200,16 +200,17 @@ var ChatsApiAxiosParamCreator = function (configuration) {
200
200
  * @param {number} [userId]
201
201
  * @param {number} [currentPage]
202
202
  * @param {number} [rowsPerPage]
203
- * @param {number} [unread]
203
+ * @param {boolean} [unread]
204
+ * @param {string} [q]
204
205
  * @param {*} [options] Override http request option.
205
206
  * @throws {RequiredError}
206
207
  */
207
- getChats: function (branchId_1, userId_1, currentPage_1, rowsPerPage_1, unread_1) {
208
+ getChats: function (branchId_1, userId_1, currentPage_1, rowsPerPage_1, unread_1, q_1) {
208
209
  var args_1 = [];
209
- for (var _i = 5; _i < arguments.length; _i++) {
210
- args_1[_i - 5] = arguments[_i];
210
+ for (var _i = 6; _i < arguments.length; _i++) {
211
+ args_1[_i - 6] = arguments[_i];
211
212
  }
212
- return __awaiter(_this, __spreadArray([branchId_1, userId_1, currentPage_1, rowsPerPage_1, unread_1], args_1, true), void 0, function (branchId, userId, currentPage, rowsPerPage, unread, options) {
213
+ return __awaiter(_this, __spreadArray([branchId_1, userId_1, currentPage_1, rowsPerPage_1, unread_1, q_1], args_1, true), void 0, function (branchId, userId, currentPage, rowsPerPage, unread, q, options) {
213
214
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, query, key, key, headersFromBaseOptions;
214
215
  if (options === void 0) { options = {}; }
215
216
  return __generator(this, function (_a) {
@@ -240,6 +241,9 @@ var ChatsApiAxiosParamCreator = function (configuration) {
240
241
  if (unread !== undefined) {
241
242
  localVarQueryParameter['unread'] = unread;
242
243
  }
244
+ if (q !== undefined) {
245
+ localVarQueryParameter['q'] = q;
246
+ }
243
247
  query = new URLSearchParams(localVarUrlObj.search);
244
248
  for (key in localVarQueryParameter) {
245
249
  query.set(key, localVarQueryParameter[key]);
@@ -374,16 +378,17 @@ var ChatsApiFp = function (configuration) {
374
378
  * @param {number} [userId]
375
379
  * @param {number} [currentPage]
376
380
  * @param {number} [rowsPerPage]
377
- * @param {number} [unread]
381
+ * @param {boolean} [unread]
382
+ * @param {string} [q]
378
383
  * @param {*} [options] Override http request option.
379
384
  * @throws {RequiredError}
380
385
  */
381
- getChats: function (branchId, userId, currentPage, rowsPerPage, unread, options) {
386
+ getChats: function (branchId, userId, currentPage, rowsPerPage, unread, q, options) {
382
387
  return __awaiter(this, void 0, void 0, function () {
383
388
  var localVarAxiosArgs;
384
389
  return __generator(this, function (_a) {
385
390
  switch (_a.label) {
386
- case 0: return [4 /*yield*/, (0, exports.ChatsApiAxiosParamCreator)(configuration).getChats(branchId, userId, currentPage, rowsPerPage, unread, options)];
391
+ case 0: return [4 /*yield*/, (0, exports.ChatsApiAxiosParamCreator)(configuration).getChats(branchId, userId, currentPage, rowsPerPage, unread, q, options)];
387
392
  case 1:
388
393
  localVarAxiosArgs = _a.sent();
389
394
  return [2 /*return*/, function (axios, basePath) {
@@ -463,14 +468,15 @@ var ChatsApiFactory = function (configuration, basePath, axios) {
463
468
  * @param {number} [userId]
464
469
  * @param {number} [currentPage]
465
470
  * @param {number} [rowsPerPage]
466
- * @param {number} [unread]
471
+ * @param {boolean} [unread]
472
+ * @param {string} [q]
467
473
  * @param {*} [options] Override http request option.
468
474
  * @throws {RequiredError}
469
475
  */
470
- getChats: function (branchId, userId, currentPage, rowsPerPage, unread, options) {
476
+ getChats: function (branchId, userId, currentPage, rowsPerPage, unread, q, options) {
471
477
  return __awaiter(this, void 0, void 0, function () {
472
478
  return __generator(this, function (_a) {
473
- return [2 /*return*/, (0, exports.ChatsApiFp)(configuration).getChats(branchId, userId, currentPage, rowsPerPage, unread, options).then(function (request) { return request(axios, basePath); })];
479
+ return [2 /*return*/, (0, exports.ChatsApiFp)(configuration).getChats(branchId, userId, currentPage, rowsPerPage, unread, q, options).then(function (request) { return request(axios, basePath); })];
474
480
  });
475
481
  });
476
482
  },
@@ -539,16 +545,17 @@ var ChatsApi = /** @class */ (function (_super) {
539
545
  * @param {number} [userId]
540
546
  * @param {number} [currentPage]
541
547
  * @param {number} [rowsPerPage]
542
- * @param {number} [unread]
548
+ * @param {boolean} [unread]
549
+ * @param {string} [q]
543
550
  * @param {*} [options] Override http request option.
544
551
  * @throws {RequiredError}
545
552
  * @memberof ChatsApi
546
553
  */
547
- ChatsApi.prototype.getChats = function (branchId, userId, currentPage, rowsPerPage, unread, options) {
554
+ ChatsApi.prototype.getChats = function (branchId, userId, currentPage, rowsPerPage, unread, q, options) {
548
555
  return __awaiter(this, void 0, void 0, function () {
549
556
  var _this = this;
550
557
  return __generator(this, function (_a) {
551
- return [2 /*return*/, (0, exports.ChatsApiFp)(this.configuration).getChats(branchId, userId, currentPage, rowsPerPage, unread, options).then(function (request) { return request(_this.axios, _this.basePath); })];
558
+ return [2 /*return*/, (0, exports.ChatsApiFp)(this.configuration).getChats(branchId, userId, currentPage, rowsPerPage, unread, q, options).then(function (request) { return request(_this.axios, _this.basePath); })];
552
559
  });
553
560
  });
554
561
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@libgot/whatsapp-bridge-sdk",
3
- "version": "1.0.30",
3
+ "version": "1.0.32",
4
4
  "description": "OpenAPI client for ",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [