@libgot/whatsapp-bridge-sdk 1.0.36-rc.2 → 1.0.36

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.36-rc.2
1
+ ## @1.0.36
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.36-rc.2 --save
39
+ npm install @libgot/whatsapp-bridge-sdk@1.0.36 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
package/apis/chats-api.ts CHANGED
@@ -180,11 +180,11 @@ export const ChatsApiAxiosParamCreator = function (configuration?: Configuration
180
180
  * @param {number} [userId]
181
181
  * @param {boolean} [externallyInitiated]
182
182
  * @param {number} [id]
183
- * @param {any} [assignmentType]
183
+ * @param {string} [assignmentTypeCode]
184
184
  * @param {*} [options] Override http request option.
185
185
  * @throws {RequiredError}
186
186
  */
187
- getChats: async (branchId: number, q?: string, unassigned?: boolean, unread?: boolean, rowsPerPage?: number, currentPage?: number, userId?: number, externallyInitiated?: boolean, id?: number, assignmentType?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
187
+ getChats: async (branchId: number, q?: string, unassigned?: boolean, unread?: boolean, rowsPerPage?: number, currentPage?: number, userId?: number, externallyInitiated?: boolean, id?: number, assignmentTypeCode?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
188
188
  // verify required parameter 'branchId' is not null or undefined
189
189
  if (branchId === null || branchId === undefined) {
190
190
  throw new RequiredError('branchId','Required parameter branchId was null or undefined when calling getChats.');
@@ -236,8 +236,8 @@ export const ChatsApiAxiosParamCreator = function (configuration?: Configuration
236
236
  localVarQueryParameter['id'] = id;
237
237
  }
238
238
 
239
- if (assignmentType !== undefined) {
240
- localVarQueryParameter['assignmentType'] = assignmentType;
239
+ if (assignmentTypeCode !== undefined) {
240
+ localVarQueryParameter['assignmentTypeCode'] = assignmentTypeCode;
241
241
  }
242
242
 
243
243
  const query = new URLSearchParams(localVarUrlObj.search);
@@ -366,12 +366,12 @@ export const ChatsApiFp = function(configuration?: Configuration) {
366
366
  * @param {number} [userId]
367
367
  * @param {boolean} [externallyInitiated]
368
368
  * @param {number} [id]
369
- * @param {any} [assignmentType]
369
+ * @param {string} [assignmentTypeCode]
370
370
  * @param {*} [options] Override http request option.
371
371
  * @throws {RequiredError}
372
372
  */
373
- async getChats(branchId: number, q?: string, unassigned?: boolean, unread?: boolean, rowsPerPage?: number, currentPage?: number, userId?: number, externallyInitiated?: boolean, id?: number, assignmentType?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<PaginationChatResponseDto>>> {
374
- const localVarAxiosArgs = await ChatsApiAxiosParamCreator(configuration).getChats(branchId, q, unassigned, unread, rowsPerPage, currentPage, userId, externallyInitiated, id, assignmentType, options);
373
+ async getChats(branchId: number, q?: string, unassigned?: boolean, unread?: boolean, rowsPerPage?: number, currentPage?: number, userId?: number, externallyInitiated?: boolean, id?: number, assignmentTypeCode?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<PaginationChatResponseDto>>> {
374
+ const localVarAxiosArgs = await ChatsApiAxiosParamCreator(configuration).getChats(branchId, q, unassigned, unread, rowsPerPage, currentPage, userId, externallyInitiated, id, assignmentTypeCode, options);
375
375
  return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
376
376
  const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
377
377
  return axios.request(axiosRequestArgs);
@@ -441,12 +441,12 @@ export const ChatsApiFactory = function (configuration?: Configuration, basePath
441
441
  * @param {number} [userId]
442
442
  * @param {boolean} [externallyInitiated]
443
443
  * @param {number} [id]
444
- * @param {any} [assignmentType]
444
+ * @param {string} [assignmentTypeCode]
445
445
  * @param {*} [options] Override http request option.
446
446
  * @throws {RequiredError}
447
447
  */
448
- async getChats(branchId: number, q?: string, unassigned?: boolean, unread?: boolean, rowsPerPage?: number, currentPage?: number, userId?: number, externallyInitiated?: boolean, id?: number, assignmentType?: any, options?: AxiosRequestConfig): Promise<AxiosResponse<PaginationChatResponseDto>> {
449
- return ChatsApiFp(configuration).getChats(branchId, q, unassigned, unread, rowsPerPage, currentPage, userId, externallyInitiated, id, assignmentType, options).then((request) => request(axios, basePath));
448
+ async getChats(branchId: number, q?: string, unassigned?: boolean, unread?: boolean, rowsPerPage?: number, currentPage?: number, userId?: number, externallyInitiated?: boolean, id?: number, assignmentTypeCode?: string, options?: AxiosRequestConfig): Promise<AxiosResponse<PaginationChatResponseDto>> {
449
+ return ChatsApiFp(configuration).getChats(branchId, q, unassigned, unread, rowsPerPage, currentPage, userId, externallyInitiated, id, assignmentTypeCode, options).then((request) => request(axios, basePath));
450
450
  },
451
451
  /**
452
452
  *
@@ -512,13 +512,13 @@ export class ChatsApi extends BaseAPI {
512
512
  * @param {number} [userId]
513
513
  * @param {boolean} [externallyInitiated]
514
514
  * @param {number} [id]
515
- * @param {any} [assignmentType]
515
+ * @param {string} [assignmentTypeCode]
516
516
  * @param {*} [options] Override http request option.
517
517
  * @throws {RequiredError}
518
518
  * @memberof ChatsApi
519
519
  */
520
- public async getChats(branchId: number, q?: string, unassigned?: boolean, unread?: boolean, rowsPerPage?: number, currentPage?: number, userId?: number, externallyInitiated?: boolean, id?: number, assignmentType?: any, options?: AxiosRequestConfig) : Promise<AxiosResponse<PaginationChatResponseDto>> {
521
- return ChatsApiFp(this.configuration).getChats(branchId, q, unassigned, unread, rowsPerPage, currentPage, userId, externallyInitiated, id, assignmentType, options).then((request) => request(this.axios, this.basePath));
520
+ public async getChats(branchId: number, q?: string, unassigned?: boolean, unread?: boolean, rowsPerPage?: number, currentPage?: number, userId?: number, externallyInitiated?: boolean, id?: number, assignmentTypeCode?: string, options?: AxiosRequestConfig) : Promise<AxiosResponse<PaginationChatResponseDto>> {
521
+ return ChatsApiFp(this.configuration).getChats(branchId, q, unassigned, unread, rowsPerPage, currentPage, userId, externallyInitiated, id, assignmentTypeCode, options).then((request) => request(this.axios, this.basePath));
522
522
  }
523
523
  /**
524
524
  *
@@ -57,11 +57,11 @@ export declare const ChatsApiAxiosParamCreator: (configuration?: Configuration)
57
57
  * @param {number} [userId]
58
58
  * @param {boolean} [externallyInitiated]
59
59
  * @param {number} [id]
60
- * @param {any} [assignmentType]
60
+ * @param {string} [assignmentTypeCode]
61
61
  * @param {*} [options] Override http request option.
62
62
  * @throws {RequiredError}
63
63
  */
64
- getChats: (branchId: number, q?: string, unassigned?: boolean, unread?: boolean, rowsPerPage?: number, currentPage?: number, userId?: number, externallyInitiated?: boolean, id?: number, assignmentType?: any, options?: AxiosRequestConfig) => Promise<RequestArgs>;
64
+ getChats: (branchId: number, q?: string, unassigned?: boolean, unread?: boolean, rowsPerPage?: number, currentPage?: number, userId?: number, externallyInitiated?: boolean, id?: number, assignmentTypeCode?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
65
65
  /**
66
66
  *
67
67
  * @param {MarkChatUnreadDto} body
@@ -111,11 +111,11 @@ export declare const ChatsApiFp: (configuration?: Configuration) => {
111
111
  * @param {number} [userId]
112
112
  * @param {boolean} [externallyInitiated]
113
113
  * @param {number} [id]
114
- * @param {any} [assignmentType]
114
+ * @param {string} [assignmentTypeCode]
115
115
  * @param {*} [options] Override http request option.
116
116
  * @throws {RequiredError}
117
117
  */
118
- getChats(branchId: number, q?: string, unassigned?: boolean, unread?: boolean, rowsPerPage?: number, currentPage?: number, userId?: number, externallyInitiated?: boolean, id?: number, assignmentType?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<PaginationChatResponseDto>>>;
118
+ getChats(branchId: number, q?: string, unassigned?: boolean, unread?: boolean, rowsPerPage?: number, currentPage?: number, userId?: number, externallyInitiated?: boolean, id?: number, assignmentTypeCode?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<PaginationChatResponseDto>>>;
119
119
  /**
120
120
  *
121
121
  * @param {MarkChatUnreadDto} body
@@ -165,11 +165,11 @@ export declare const ChatsApiFactory: (configuration?: Configuration, basePath?:
165
165
  * @param {number} [userId]
166
166
  * @param {boolean} [externallyInitiated]
167
167
  * @param {number} [id]
168
- * @param {any} [assignmentType]
168
+ * @param {string} [assignmentTypeCode]
169
169
  * @param {*} [options] Override http request option.
170
170
  * @throws {RequiredError}
171
171
  */
172
- getChats(branchId: number, q?: string, unassigned?: boolean, unread?: boolean, rowsPerPage?: number, currentPage?: number, userId?: number, externallyInitiated?: boolean, id?: number, assignmentType?: any, options?: AxiosRequestConfig): Promise<AxiosResponse<PaginationChatResponseDto>>;
172
+ getChats(branchId: number, q?: string, unassigned?: boolean, unread?: boolean, rowsPerPage?: number, currentPage?: number, userId?: number, externallyInitiated?: boolean, id?: number, assignmentTypeCode?: string, options?: AxiosRequestConfig): Promise<AxiosResponse<PaginationChatResponseDto>>;
173
173
  /**
174
174
  *
175
175
  * @param {MarkChatUnreadDto} body
@@ -224,12 +224,12 @@ export declare class ChatsApi extends BaseAPI {
224
224
  * @param {number} [userId]
225
225
  * @param {boolean} [externallyInitiated]
226
226
  * @param {number} [id]
227
- * @param {any} [assignmentType]
227
+ * @param {string} [assignmentTypeCode]
228
228
  * @param {*} [options] Override http request option.
229
229
  * @throws {RequiredError}
230
230
  * @memberof ChatsApi
231
231
  */
232
- getChats(branchId: number, q?: string, unassigned?: boolean, unread?: boolean, rowsPerPage?: number, currentPage?: number, userId?: number, externallyInitiated?: boolean, id?: number, assignmentType?: any, options?: AxiosRequestConfig): Promise<AxiosResponse<PaginationChatResponseDto>>;
232
+ getChats(branchId: number, q?: string, unassigned?: boolean, unread?: boolean, rowsPerPage?: number, currentPage?: number, userId?: number, externallyInitiated?: boolean, id?: number, assignmentTypeCode?: string, options?: AxiosRequestConfig): Promise<AxiosResponse<PaginationChatResponseDto>>;
233
233
  /**
234
234
  *
235
235
  * @param {MarkChatUnreadDto} body
@@ -177,11 +177,11 @@ const ChatsApiAxiosParamCreator = function (configuration) {
177
177
  * @param {number} [userId]
178
178
  * @param {boolean} [externallyInitiated]
179
179
  * @param {number} [id]
180
- * @param {any} [assignmentType]
180
+ * @param {string} [assignmentTypeCode]
181
181
  * @param {*} [options] Override http request option.
182
182
  * @throws {RequiredError}
183
183
  */
184
- getChats: (branchId_1, q_1, unassigned_1, unread_1, rowsPerPage_1, currentPage_1, userId_1, externallyInitiated_1, id_1, assignmentType_1, ...args_1) => __awaiter(this, [branchId_1, q_1, unassigned_1, unread_1, rowsPerPage_1, currentPage_1, userId_1, externallyInitiated_1, id_1, assignmentType_1, ...args_1], void 0, function* (branchId, q, unassigned, unread, rowsPerPage, currentPage, userId, externallyInitiated, id, assignmentType, options = {}) {
184
+ getChats: (branchId_1, q_1, unassigned_1, unread_1, rowsPerPage_1, currentPage_1, userId_1, externallyInitiated_1, id_1, assignmentTypeCode_1, ...args_1) => __awaiter(this, [branchId_1, q_1, unassigned_1, unread_1, rowsPerPage_1, currentPage_1, userId_1, externallyInitiated_1, id_1, assignmentTypeCode_1, ...args_1], void 0, function* (branchId, q, unassigned, unread, rowsPerPage, currentPage, userId, externallyInitiated, id, assignmentTypeCode, options = {}) {
185
185
  // verify required parameter 'branchId' is not null or undefined
186
186
  if (branchId === null || branchId === undefined) {
187
187
  throw new base_1.RequiredError('branchId', 'Required parameter branchId was null or undefined when calling getChats.');
@@ -223,8 +223,8 @@ const ChatsApiAxiosParamCreator = function (configuration) {
223
223
  if (id !== undefined) {
224
224
  localVarQueryParameter['id'] = id;
225
225
  }
226
- if (assignmentType !== undefined) {
227
- localVarQueryParameter['assignmentType'] = assignmentType;
226
+ if (assignmentTypeCode !== undefined) {
227
+ localVarQueryParameter['assignmentTypeCode'] = assignmentTypeCode;
228
228
  }
229
229
  const query = new URLSearchParams(localVarUrlObj.search);
230
230
  for (const key in localVarQueryParameter) {
@@ -354,13 +354,13 @@ const ChatsApiFp = function (configuration) {
354
354
  * @param {number} [userId]
355
355
  * @param {boolean} [externallyInitiated]
356
356
  * @param {number} [id]
357
- * @param {any} [assignmentType]
357
+ * @param {string} [assignmentTypeCode]
358
358
  * @param {*} [options] Override http request option.
359
359
  * @throws {RequiredError}
360
360
  */
361
- getChats(branchId, q, unassigned, unread, rowsPerPage, currentPage, userId, externallyInitiated, id, assignmentType, options) {
361
+ getChats(branchId, q, unassigned, unread, rowsPerPage, currentPage, userId, externallyInitiated, id, assignmentTypeCode, options) {
362
362
  return __awaiter(this, void 0, void 0, function* () {
363
- const localVarAxiosArgs = yield (0, exports.ChatsApiAxiosParamCreator)(configuration).getChats(branchId, q, unassigned, unread, rowsPerPage, currentPage, userId, externallyInitiated, id, assignmentType, options);
363
+ const localVarAxiosArgs = yield (0, exports.ChatsApiAxiosParamCreator)(configuration).getChats(branchId, q, unassigned, unread, rowsPerPage, currentPage, userId, externallyInitiated, id, assignmentTypeCode, options);
364
364
  return (axios = axios_1.default, basePath = base_1.BASE_PATH) => {
365
365
  const axiosRequestArgs = Object.assign(Object.assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
366
366
  return axios.request(axiosRequestArgs);
@@ -439,13 +439,13 @@ const ChatsApiFactory = function (configuration, basePath, axios) {
439
439
  * @param {number} [userId]
440
440
  * @param {boolean} [externallyInitiated]
441
441
  * @param {number} [id]
442
- * @param {any} [assignmentType]
442
+ * @param {string} [assignmentTypeCode]
443
443
  * @param {*} [options] Override http request option.
444
444
  * @throws {RequiredError}
445
445
  */
446
- getChats(branchId, q, unassigned, unread, rowsPerPage, currentPage, userId, externallyInitiated, id, assignmentType, options) {
446
+ getChats(branchId, q, unassigned, unread, rowsPerPage, currentPage, userId, externallyInitiated, id, assignmentTypeCode, options) {
447
447
  return __awaiter(this, void 0, void 0, function* () {
448
- return (0, exports.ChatsApiFp)(configuration).getChats(branchId, q, unassigned, unread, rowsPerPage, currentPage, userId, externallyInitiated, id, assignmentType, options).then((request) => request(axios, basePath));
448
+ return (0, exports.ChatsApiFp)(configuration).getChats(branchId, q, unassigned, unread, rowsPerPage, currentPage, userId, externallyInitiated, id, assignmentTypeCode, options).then((request) => request(axios, basePath));
449
449
  });
450
450
  },
451
451
  /**
@@ -520,14 +520,14 @@ class ChatsApi extends base_1.BaseAPI {
520
520
  * @param {number} [userId]
521
521
  * @param {boolean} [externallyInitiated]
522
522
  * @param {number} [id]
523
- * @param {any} [assignmentType]
523
+ * @param {string} [assignmentTypeCode]
524
524
  * @param {*} [options] Override http request option.
525
525
  * @throws {RequiredError}
526
526
  * @memberof ChatsApi
527
527
  */
528
- getChats(branchId, q, unassigned, unread, rowsPerPage, currentPage, userId, externallyInitiated, id, assignmentType, options) {
528
+ getChats(branchId, q, unassigned, unread, rowsPerPage, currentPage, userId, externallyInitiated, id, assignmentTypeCode, options) {
529
529
  return __awaiter(this, void 0, void 0, function* () {
530
- return (0, exports.ChatsApiFp)(this.configuration).getChats(branchId, q, unassigned, unread, rowsPerPage, currentPage, userId, externallyInitiated, id, assignmentType, options).then((request) => request(this.axios, this.basePath));
530
+ return (0, exports.ChatsApiFp)(this.configuration).getChats(branchId, q, unassigned, unread, rowsPerPage, currentPage, userId, externallyInitiated, id, assignmentTypeCode, options).then((request) => request(this.axios, this.basePath));
531
531
  });
532
532
  }
533
533
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@libgot/whatsapp-bridge-sdk",
3
- "version": "1.0.36-rc.2",
3
+ "version": "1.0.36",
4
4
  "description": "OpenAPI client for ",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [