@libgot/whatsapp-bridge-sdk 1.0.30 → 1.0.31

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.31
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.31 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
package/apis/chats-api.ts CHANGED
@@ -121,10 +121,11 @@ export const ChatsApiAxiosParamCreator = function (configuration?: Configuration
121
121
  * @param {number} [currentPage]
122
122
  * @param {number} [rowsPerPage]
123
123
  * @param {number} [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?: number, 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]);
@@ -267,11 +272,12 @@ export const ChatsApiFp = function(configuration?: Configuration) {
267
272
  * @param {number} [currentPage]
268
273
  * @param {number} [rowsPerPage]
269
274
  * @param {number} [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?: number, 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);
@@ -326,11 +332,12 @@ export const ChatsApiFactory = function (configuration?: Configuration, basePath
326
332
  * @param {number} [currentPage]
327
333
  * @param {number} [rowsPerPage]
328
334
  * @param {number} [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?: number, 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
  *
@@ -380,12 +387,13 @@ export class ChatsApi extends BaseAPI {
380
387
  * @param {number} [currentPage]
381
388
  * @param {number} [rowsPerPage]
382
389
  * @param {number} [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?: number, 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
  *
@@ -43,10 +43,11 @@ export declare const ChatsApiAxiosParamCreator: (configuration?: Configuration)
43
43
  * @param {number} [currentPage]
44
44
  * @param {number} [rowsPerPage]
45
45
  * @param {number} [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?: number, q?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
50
51
  /**
51
52
  *
52
53
  * @param {MarkChatUnreadDto} body
@@ -83,10 +84,11 @@ export declare const ChatsApiFp: (configuration?: Configuration) => {
83
84
  * @param {number} [currentPage]
84
85
  * @param {number} [rowsPerPage]
85
86
  * @param {number} [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?: number, q?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<PaginationChatResponseDto>>>;
90
92
  /**
91
93
  *
92
94
  * @param {MarkChatUnreadDto} body
@@ -123,10 +125,11 @@ export declare const ChatsApiFactory: (configuration?: Configuration, basePath?:
123
125
  * @param {number} [currentPage]
124
126
  * @param {number} [rowsPerPage]
125
127
  * @param {number} [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?: number, q?: string, options?: AxiosRequestConfig): Promise<AxiosResponse<PaginationChatResponseDto>>;
130
133
  /**
131
134
  *
132
135
  * @param {MarkChatUnreadDto} body
@@ -167,11 +170,12 @@ export declare class ChatsApi extends BaseAPI {
167
170
  * @param {number} [currentPage]
168
171
  * @param {number} [rowsPerPage]
169
172
  * @param {number} [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?: number, q?: string, options?: AxiosRequestConfig): Promise<AxiosResponse<PaginationChatResponseDto>>;
175
179
  /**
176
180
  *
177
181
  * @param {MarkChatUnreadDto} body
@@ -201,15 +201,16 @@ var ChatsApiAxiosParamCreator = function (configuration) {
201
201
  * @param {number} [currentPage]
202
202
  * @param {number} [rowsPerPage]
203
203
  * @param {number} [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]);
@@ -375,15 +379,16 @@ var ChatsApiFp = function (configuration) {
375
379
  * @param {number} [currentPage]
376
380
  * @param {number} [rowsPerPage]
377
381
  * @param {number} [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) {
@@ -464,13 +469,14 @@ var ChatsApiFactory = function (configuration, basePath, axios) {
464
469
  * @param {number} [currentPage]
465
470
  * @param {number} [rowsPerPage]
466
471
  * @param {number} [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
  },
@@ -540,15 +546,16 @@ var ChatsApi = /** @class */ (function (_super) {
540
546
  * @param {number} [currentPage]
541
547
  * @param {number} [rowsPerPage]
542
548
  * @param {number} [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.31",
4
4
  "description": "OpenAPI client for ",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [