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

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.34-rc.1
1
+ ## @1.0.34-rc.2
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.34-rc.1 --save
39
+ npm install @libgot/whatsapp-bridge-sdk@1.0.34-rc.2 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
package/apis/chats-api.ts CHANGED
@@ -118,6 +118,7 @@ export const ChatsApiAxiosParamCreator = function (configuration?: Configuration
118
118
  *
119
119
  * @param {number} branchId
120
120
  * @param {string} [q]
121
+ * @param {boolean} [unassigned]
121
122
  * @param {boolean} [unread]
122
123
  * @param {number} [rowsPerPage]
123
124
  * @param {number} [currentPage]
@@ -125,7 +126,7 @@ export const ChatsApiAxiosParamCreator = function (configuration?: Configuration
125
126
  * @param {*} [options] Override http request option.
126
127
  * @throws {RequiredError}
127
128
  */
128
- getChats: async (branchId: number, q?: string, unread?: boolean, rowsPerPage?: number, currentPage?: number, userId?: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
129
+ getChats: async (branchId: number, q?: string, unassigned?: boolean, unread?: boolean, rowsPerPage?: number, currentPage?: number, userId?: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
129
130
  // verify required parameter 'branchId' is not null or undefined
130
131
  if (branchId === null || branchId === undefined) {
131
132
  throw new RequiredError('branchId','Required parameter branchId was null or undefined when calling getChats.');
@@ -145,6 +146,10 @@ export const ChatsApiAxiosParamCreator = function (configuration?: Configuration
145
146
  localVarQueryParameter['q'] = q;
146
147
  }
147
148
 
149
+ if (unassigned !== undefined) {
150
+ localVarQueryParameter['unassigned'] = unassigned;
151
+ }
152
+
148
153
  if (unread !== undefined) {
149
154
  localVarQueryParameter['unread'] = unread;
150
155
  }
@@ -269,6 +274,7 @@ export const ChatsApiFp = function(configuration?: Configuration) {
269
274
  *
270
275
  * @param {number} branchId
271
276
  * @param {string} [q]
277
+ * @param {boolean} [unassigned]
272
278
  * @param {boolean} [unread]
273
279
  * @param {number} [rowsPerPage]
274
280
  * @param {number} [currentPage]
@@ -276,8 +282,8 @@ export const ChatsApiFp = function(configuration?: Configuration) {
276
282
  * @param {*} [options] Override http request option.
277
283
  * @throws {RequiredError}
278
284
  */
279
- async getChats(branchId: number, q?: string, unread?: boolean, rowsPerPage?: number, currentPage?: number, userId?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<PaginationChatResponseDto>>> {
280
- const localVarAxiosArgs = await ChatsApiAxiosParamCreator(configuration).getChats(branchId, q, unread, rowsPerPage, currentPage, userId, options);
285
+ async getChats(branchId: number, q?: string, unassigned?: boolean, unread?: boolean, rowsPerPage?: number, currentPage?: number, userId?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<PaginationChatResponseDto>>> {
286
+ const localVarAxiosArgs = await ChatsApiAxiosParamCreator(configuration).getChats(branchId, q, unassigned, unread, rowsPerPage, currentPage, userId, options);
281
287
  return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
282
288
  const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
283
289
  return axios.request(axiosRequestArgs);
@@ -329,6 +335,7 @@ export const ChatsApiFactory = function (configuration?: Configuration, basePath
329
335
  *
330
336
  * @param {number} branchId
331
337
  * @param {string} [q]
338
+ * @param {boolean} [unassigned]
332
339
  * @param {boolean} [unread]
333
340
  * @param {number} [rowsPerPage]
334
341
  * @param {number} [currentPage]
@@ -336,8 +343,8 @@ export const ChatsApiFactory = function (configuration?: Configuration, basePath
336
343
  * @param {*} [options] Override http request option.
337
344
  * @throws {RequiredError}
338
345
  */
339
- async getChats(branchId: number, q?: string, unread?: boolean, rowsPerPage?: number, currentPage?: number, userId?: number, options?: AxiosRequestConfig): Promise<AxiosResponse<PaginationChatResponseDto>> {
340
- return ChatsApiFp(configuration).getChats(branchId, q, unread, rowsPerPage, currentPage, userId, options).then((request) => request(axios, basePath));
346
+ async getChats(branchId: number, q?: string, unassigned?: boolean, unread?: boolean, rowsPerPage?: number, currentPage?: number, userId?: number, options?: AxiosRequestConfig): Promise<AxiosResponse<PaginationChatResponseDto>> {
347
+ return ChatsApiFp(configuration).getChats(branchId, q, unassigned, unread, rowsPerPage, currentPage, userId, options).then((request) => request(axios, basePath));
341
348
  },
342
349
  /**
343
350
  *
@@ -384,6 +391,7 @@ export class ChatsApi extends BaseAPI {
384
391
  *
385
392
  * @param {number} branchId
386
393
  * @param {string} [q]
394
+ * @param {boolean} [unassigned]
387
395
  * @param {boolean} [unread]
388
396
  * @param {number} [rowsPerPage]
389
397
  * @param {number} [currentPage]
@@ -392,8 +400,8 @@ export class ChatsApi extends BaseAPI {
392
400
  * @throws {RequiredError}
393
401
  * @memberof ChatsApi
394
402
  */
395
- public async getChats(branchId: number, q?: string, unread?: boolean, rowsPerPage?: number, currentPage?: number, userId?: number, options?: AxiosRequestConfig) : Promise<AxiosResponse<PaginationChatResponseDto>> {
396
- return ChatsApiFp(this.configuration).getChats(branchId, q, unread, rowsPerPage, currentPage, userId, options).then((request) => request(this.axios, this.basePath));
403
+ public async getChats(branchId: number, q?: string, unassigned?: boolean, unread?: boolean, rowsPerPage?: number, currentPage?: number, userId?: number, options?: AxiosRequestConfig) : Promise<AxiosResponse<PaginationChatResponseDto>> {
404
+ return ChatsApiFp(this.configuration).getChats(branchId, q, unassigned, unread, rowsPerPage, currentPage, userId, options).then((request) => request(this.axios, this.basePath));
397
405
  }
398
406
  /**
399
407
  *
@@ -40,6 +40,7 @@ export declare const ChatsApiAxiosParamCreator: (configuration?: Configuration)
40
40
  *
41
41
  * @param {number} branchId
42
42
  * @param {string} [q]
43
+ * @param {boolean} [unassigned]
43
44
  * @param {boolean} [unread]
44
45
  * @param {number} [rowsPerPage]
45
46
  * @param {number} [currentPage]
@@ -47,7 +48,7 @@ export declare const ChatsApiAxiosParamCreator: (configuration?: Configuration)
47
48
  * @param {*} [options] Override http request option.
48
49
  * @throws {RequiredError}
49
50
  */
50
- getChats: (branchId: number, q?: string, unread?: boolean, rowsPerPage?: number, currentPage?: number, userId?: number, options?: AxiosRequestConfig) => Promise<RequestArgs>;
51
+ getChats: (branchId: number, q?: string, unassigned?: boolean, unread?: boolean, rowsPerPage?: number, currentPage?: number, userId?: number, options?: AxiosRequestConfig) => Promise<RequestArgs>;
51
52
  /**
52
53
  *
53
54
  * @param {MarkChatUnreadDto} body
@@ -81,6 +82,7 @@ export declare const ChatsApiFp: (configuration?: Configuration) => {
81
82
  *
82
83
  * @param {number} branchId
83
84
  * @param {string} [q]
85
+ * @param {boolean} [unassigned]
84
86
  * @param {boolean} [unread]
85
87
  * @param {number} [rowsPerPage]
86
88
  * @param {number} [currentPage]
@@ -88,7 +90,7 @@ export declare const ChatsApiFp: (configuration?: Configuration) => {
88
90
  * @param {*} [options] Override http request option.
89
91
  * @throws {RequiredError}
90
92
  */
91
- getChats(branchId: number, q?: string, unread?: boolean, rowsPerPage?: number, currentPage?: number, userId?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<PaginationChatResponseDto>>>;
93
+ getChats(branchId: number, q?: string, unassigned?: boolean, unread?: boolean, rowsPerPage?: number, currentPage?: number, userId?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<PaginationChatResponseDto>>>;
92
94
  /**
93
95
  *
94
96
  * @param {MarkChatUnreadDto} body
@@ -122,6 +124,7 @@ export declare const ChatsApiFactory: (configuration?: Configuration, basePath?:
122
124
  *
123
125
  * @param {number} branchId
124
126
  * @param {string} [q]
127
+ * @param {boolean} [unassigned]
125
128
  * @param {boolean} [unread]
126
129
  * @param {number} [rowsPerPage]
127
130
  * @param {number} [currentPage]
@@ -129,7 +132,7 @@ export declare const ChatsApiFactory: (configuration?: Configuration, basePath?:
129
132
  * @param {*} [options] Override http request option.
130
133
  * @throws {RequiredError}
131
134
  */
132
- getChats(branchId: number, q?: string, unread?: boolean, rowsPerPage?: number, currentPage?: number, userId?: number, options?: AxiosRequestConfig): Promise<AxiosResponse<PaginationChatResponseDto>>;
135
+ getChats(branchId: number, q?: string, unassigned?: boolean, unread?: boolean, rowsPerPage?: number, currentPage?: number, userId?: number, options?: AxiosRequestConfig): Promise<AxiosResponse<PaginationChatResponseDto>>;
133
136
  /**
134
137
  *
135
138
  * @param {MarkChatUnreadDto} body
@@ -167,6 +170,7 @@ export declare class ChatsApi extends BaseAPI {
167
170
  *
168
171
  * @param {number} branchId
169
172
  * @param {string} [q]
173
+ * @param {boolean} [unassigned]
170
174
  * @param {boolean} [unread]
171
175
  * @param {number} [rowsPerPage]
172
176
  * @param {number} [currentPage]
@@ -175,7 +179,7 @@ export declare class ChatsApi extends BaseAPI {
175
179
  * @throws {RequiredError}
176
180
  * @memberof ChatsApi
177
181
  */
178
- getChats(branchId: number, q?: string, unread?: boolean, rowsPerPage?: number, currentPage?: number, userId?: number, options?: AxiosRequestConfig): Promise<AxiosResponse<PaginationChatResponseDto>>;
182
+ getChats(branchId: number, q?: string, unassigned?: boolean, unread?: boolean, rowsPerPage?: number, currentPage?: number, userId?: number, options?: AxiosRequestConfig): Promise<AxiosResponse<PaginationChatResponseDto>>;
179
183
  /**
180
184
  *
181
185
  * @param {MarkChatUnreadDto} body
@@ -119,6 +119,7 @@ const ChatsApiAxiosParamCreator = function (configuration) {
119
119
  *
120
120
  * @param {number} branchId
121
121
  * @param {string} [q]
122
+ * @param {boolean} [unassigned]
122
123
  * @param {boolean} [unread]
123
124
  * @param {number} [rowsPerPage]
124
125
  * @param {number} [currentPage]
@@ -126,7 +127,7 @@ const ChatsApiAxiosParamCreator = function (configuration) {
126
127
  * @param {*} [options] Override http request option.
127
128
  * @throws {RequiredError}
128
129
  */
129
- getChats: (branchId_1, q_1, unread_1, rowsPerPage_1, currentPage_1, userId_1, ...args_1) => __awaiter(this, [branchId_1, q_1, unread_1, rowsPerPage_1, currentPage_1, userId_1, ...args_1], void 0, function* (branchId, q, unread, rowsPerPage, currentPage, userId, options = {}) {
130
+ getChats: (branchId_1, q_1, unassigned_1, unread_1, rowsPerPage_1, currentPage_1, userId_1, ...args_1) => __awaiter(this, [branchId_1, q_1, unassigned_1, unread_1, rowsPerPage_1, currentPage_1, userId_1, ...args_1], void 0, function* (branchId, q, unassigned, unread, rowsPerPage, currentPage, userId, options = {}) {
130
131
  // verify required parameter 'branchId' is not null or undefined
131
132
  if (branchId === null || branchId === undefined) {
132
133
  throw new base_1.RequiredError('branchId', 'Required parameter branchId was null or undefined when calling getChats.');
@@ -144,6 +145,9 @@ const ChatsApiAxiosParamCreator = function (configuration) {
144
145
  if (q !== undefined) {
145
146
  localVarQueryParameter['q'] = q;
146
147
  }
148
+ if (unassigned !== undefined) {
149
+ localVarQueryParameter['unassigned'] = unassigned;
150
+ }
147
151
  if (unread !== undefined) {
148
152
  localVarQueryParameter['unread'] = unread;
149
153
  }
@@ -263,6 +267,7 @@ const ChatsApiFp = function (configuration) {
263
267
  *
264
268
  * @param {number} branchId
265
269
  * @param {string} [q]
270
+ * @param {boolean} [unassigned]
266
271
  * @param {boolean} [unread]
267
272
  * @param {number} [rowsPerPage]
268
273
  * @param {number} [currentPage]
@@ -270,9 +275,9 @@ const ChatsApiFp = function (configuration) {
270
275
  * @param {*} [options] Override http request option.
271
276
  * @throws {RequiredError}
272
277
  */
273
- getChats(branchId, q, unread, rowsPerPage, currentPage, userId, options) {
278
+ getChats(branchId, q, unassigned, unread, rowsPerPage, currentPage, userId, options) {
274
279
  return __awaiter(this, void 0, void 0, function* () {
275
- const localVarAxiosArgs = yield (0, exports.ChatsApiAxiosParamCreator)(configuration).getChats(branchId, q, unread, rowsPerPage, currentPage, userId, options);
280
+ const localVarAxiosArgs = yield (0, exports.ChatsApiAxiosParamCreator)(configuration).getChats(branchId, q, unassigned, unread, rowsPerPage, currentPage, userId, options);
276
281
  return (axios = axios_1.default, basePath = base_1.BASE_PATH) => {
277
282
  const axiosRequestArgs = Object.assign(Object.assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
278
283
  return axios.request(axiosRequestArgs);
@@ -331,6 +336,7 @@ const ChatsApiFactory = function (configuration, basePath, axios) {
331
336
  *
332
337
  * @param {number} branchId
333
338
  * @param {string} [q]
339
+ * @param {boolean} [unassigned]
334
340
  * @param {boolean} [unread]
335
341
  * @param {number} [rowsPerPage]
336
342
  * @param {number} [currentPage]
@@ -338,9 +344,9 @@ const ChatsApiFactory = function (configuration, basePath, axios) {
338
344
  * @param {*} [options] Override http request option.
339
345
  * @throws {RequiredError}
340
346
  */
341
- getChats(branchId, q, unread, rowsPerPage, currentPage, userId, options) {
347
+ getChats(branchId, q, unassigned, unread, rowsPerPage, currentPage, userId, options) {
342
348
  return __awaiter(this, void 0, void 0, function* () {
343
- return (0, exports.ChatsApiFp)(configuration).getChats(branchId, q, unread, rowsPerPage, currentPage, userId, options).then((request) => request(axios, basePath));
349
+ return (0, exports.ChatsApiFp)(configuration).getChats(branchId, q, unassigned, unread, rowsPerPage, currentPage, userId, options).then((request) => request(axios, basePath));
344
350
  });
345
351
  },
346
352
  /**
@@ -394,6 +400,7 @@ class ChatsApi extends base_1.BaseAPI {
394
400
  *
395
401
  * @param {number} branchId
396
402
  * @param {string} [q]
403
+ * @param {boolean} [unassigned]
397
404
  * @param {boolean} [unread]
398
405
  * @param {number} [rowsPerPage]
399
406
  * @param {number} [currentPage]
@@ -402,9 +409,9 @@ class ChatsApi extends base_1.BaseAPI {
402
409
  * @throws {RequiredError}
403
410
  * @memberof ChatsApi
404
411
  */
405
- getChats(branchId, q, unread, rowsPerPage, currentPage, userId, options) {
412
+ getChats(branchId, q, unassigned, unread, rowsPerPage, currentPage, userId, options) {
406
413
  return __awaiter(this, void 0, void 0, function* () {
407
- return (0, exports.ChatsApiFp)(this.configuration).getChats(branchId, q, unread, rowsPerPage, currentPage, userId, options).then((request) => request(this.axios, this.basePath));
414
+ return (0, exports.ChatsApiFp)(this.configuration).getChats(branchId, q, unassigned, unread, rowsPerPage, currentPage, userId, options).then((request) => request(this.axios, this.basePath));
408
415
  });
409
416
  }
410
417
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@libgot/whatsapp-bridge-sdk",
3
- "version": "1.0.34-rc.1",
3
+ "version": "1.0.34-rc.2",
4
4
  "description": "OpenAPI client for ",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [