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

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.2
1
+ ## @1.0.34-rc.3
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.2 --save
39
+ npm install @libgot/whatsapp-bridge-sdk@1.0.34-rc.3 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
package/apis/chats-api.ts CHANGED
@@ -123,10 +123,11 @@ export const ChatsApiAxiosParamCreator = function (configuration?: Configuration
123
123
  * @param {number} [rowsPerPage]
124
124
  * @param {number} [currentPage]
125
125
  * @param {number} [userId]
126
+ * @param {boolean} [externallyInitiated]
126
127
  * @param {*} [options] Override http request option.
127
128
  * @throws {RequiredError}
128
129
  */
129
- getChats: async (branchId: number, q?: string, unassigned?: boolean, unread?: boolean, rowsPerPage?: number, currentPage?: number, userId?: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
130
+ getChats: async (branchId: number, q?: string, unassigned?: boolean, unread?: boolean, rowsPerPage?: number, currentPage?: number, userId?: number, externallyInitiated?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
130
131
  // verify required parameter 'branchId' is not null or undefined
131
132
  if (branchId === null || branchId === undefined) {
132
133
  throw new RequiredError('branchId','Required parameter branchId was null or undefined when calling getChats.');
@@ -170,6 +171,10 @@ export const ChatsApiAxiosParamCreator = function (configuration?: Configuration
170
171
  localVarQueryParameter['branchId'] = branchId;
171
172
  }
172
173
 
174
+ if (externallyInitiated !== undefined) {
175
+ localVarQueryParameter['externallyInitiated'] = externallyInitiated;
176
+ }
177
+
173
178
  const query = new URLSearchParams(localVarUrlObj.search);
174
179
  for (const key in localVarQueryParameter) {
175
180
  query.set(key, localVarQueryParameter[key]);
@@ -279,11 +284,12 @@ export const ChatsApiFp = function(configuration?: Configuration) {
279
284
  * @param {number} [rowsPerPage]
280
285
  * @param {number} [currentPage]
281
286
  * @param {number} [userId]
287
+ * @param {boolean} [externallyInitiated]
282
288
  * @param {*} [options] Override http request option.
283
289
  * @throws {RequiredError}
284
290
  */
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);
291
+ async getChats(branchId: number, q?: string, unassigned?: boolean, unread?: boolean, rowsPerPage?: number, currentPage?: number, userId?: number, externallyInitiated?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<PaginationChatResponseDto>>> {
292
+ const localVarAxiosArgs = await ChatsApiAxiosParamCreator(configuration).getChats(branchId, q, unassigned, unread, rowsPerPage, currentPage, userId, externallyInitiated, options);
287
293
  return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
288
294
  const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
289
295
  return axios.request(axiosRequestArgs);
@@ -340,11 +346,12 @@ export const ChatsApiFactory = function (configuration?: Configuration, basePath
340
346
  * @param {number} [rowsPerPage]
341
347
  * @param {number} [currentPage]
342
348
  * @param {number} [userId]
349
+ * @param {boolean} [externallyInitiated]
343
350
  * @param {*} [options] Override http request option.
344
351
  * @throws {RequiredError}
345
352
  */
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));
353
+ async getChats(branchId: number, q?: string, unassigned?: boolean, unread?: boolean, rowsPerPage?: number, currentPage?: number, userId?: number, externallyInitiated?: boolean, options?: AxiosRequestConfig): Promise<AxiosResponse<PaginationChatResponseDto>> {
354
+ return ChatsApiFp(configuration).getChats(branchId, q, unassigned, unread, rowsPerPage, currentPage, userId, externallyInitiated, options).then((request) => request(axios, basePath));
348
355
  },
349
356
  /**
350
357
  *
@@ -396,12 +403,13 @@ export class ChatsApi extends BaseAPI {
396
403
  * @param {number} [rowsPerPage]
397
404
  * @param {number} [currentPage]
398
405
  * @param {number} [userId]
406
+ * @param {boolean} [externallyInitiated]
399
407
  * @param {*} [options] Override http request option.
400
408
  * @throws {RequiredError}
401
409
  * @memberof ChatsApi
402
410
  */
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));
411
+ public async getChats(branchId: number, q?: string, unassigned?: boolean, unread?: boolean, rowsPerPage?: number, currentPage?: number, userId?: number, externallyInitiated?: boolean, options?: AxiosRequestConfig) : Promise<AxiosResponse<PaginationChatResponseDto>> {
412
+ return ChatsApiFp(this.configuration).getChats(branchId, q, unassigned, unread, rowsPerPage, currentPage, userId, externallyInitiated, options).then((request) => request(this.axios, this.basePath));
405
413
  }
406
414
  /**
407
415
  *
@@ -45,10 +45,11 @@ export declare const ChatsApiAxiosParamCreator: (configuration?: Configuration)
45
45
  * @param {number} [rowsPerPage]
46
46
  * @param {number} [currentPage]
47
47
  * @param {number} [userId]
48
+ * @param {boolean} [externallyInitiated]
48
49
  * @param {*} [options] Override http request option.
49
50
  * @throws {RequiredError}
50
51
  */
51
- getChats: (branchId: number, q?: string, unassigned?: boolean, unread?: boolean, rowsPerPage?: number, currentPage?: number, userId?: number, options?: AxiosRequestConfig) => Promise<RequestArgs>;
52
+ getChats: (branchId: number, q?: string, unassigned?: boolean, unread?: boolean, rowsPerPage?: number, currentPage?: number, userId?: number, externallyInitiated?: boolean, options?: AxiosRequestConfig) => Promise<RequestArgs>;
52
53
  /**
53
54
  *
54
55
  * @param {MarkChatUnreadDto} body
@@ -87,10 +88,11 @@ export declare const ChatsApiFp: (configuration?: Configuration) => {
87
88
  * @param {number} [rowsPerPage]
88
89
  * @param {number} [currentPage]
89
90
  * @param {number} [userId]
91
+ * @param {boolean} [externallyInitiated]
90
92
  * @param {*} [options] Override http request option.
91
93
  * @throws {RequiredError}
92
94
  */
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>>>;
95
+ getChats(branchId: number, q?: string, unassigned?: boolean, unread?: boolean, rowsPerPage?: number, currentPage?: number, userId?: number, externallyInitiated?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<PaginationChatResponseDto>>>;
94
96
  /**
95
97
  *
96
98
  * @param {MarkChatUnreadDto} body
@@ -129,10 +131,11 @@ export declare const ChatsApiFactory: (configuration?: Configuration, basePath?:
129
131
  * @param {number} [rowsPerPage]
130
132
  * @param {number} [currentPage]
131
133
  * @param {number} [userId]
134
+ * @param {boolean} [externallyInitiated]
132
135
  * @param {*} [options] Override http request option.
133
136
  * @throws {RequiredError}
134
137
  */
135
- getChats(branchId: number, q?: string, unassigned?: boolean, unread?: boolean, rowsPerPage?: number, currentPage?: number, userId?: number, options?: AxiosRequestConfig): Promise<AxiosResponse<PaginationChatResponseDto>>;
138
+ getChats(branchId: number, q?: string, unassigned?: boolean, unread?: boolean, rowsPerPage?: number, currentPage?: number, userId?: number, externallyInitiated?: boolean, options?: AxiosRequestConfig): Promise<AxiosResponse<PaginationChatResponseDto>>;
136
139
  /**
137
140
  *
138
141
  * @param {MarkChatUnreadDto} body
@@ -175,11 +178,12 @@ export declare class ChatsApi extends BaseAPI {
175
178
  * @param {number} [rowsPerPage]
176
179
  * @param {number} [currentPage]
177
180
  * @param {number} [userId]
181
+ * @param {boolean} [externallyInitiated]
178
182
  * @param {*} [options] Override http request option.
179
183
  * @throws {RequiredError}
180
184
  * @memberof ChatsApi
181
185
  */
182
- getChats(branchId: number, q?: string, unassigned?: boolean, unread?: boolean, rowsPerPage?: number, currentPage?: number, userId?: number, options?: AxiosRequestConfig): Promise<AxiosResponse<PaginationChatResponseDto>>;
186
+ getChats(branchId: number, q?: string, unassigned?: boolean, unread?: boolean, rowsPerPage?: number, currentPage?: number, userId?: number, externallyInitiated?: boolean, options?: AxiosRequestConfig): Promise<AxiosResponse<PaginationChatResponseDto>>;
183
187
  /**
184
188
  *
185
189
  * @param {MarkChatUnreadDto} body
@@ -124,10 +124,11 @@ const ChatsApiAxiosParamCreator = function (configuration) {
124
124
  * @param {number} [rowsPerPage]
125
125
  * @param {number} [currentPage]
126
126
  * @param {number} [userId]
127
+ * @param {boolean} [externallyInitiated]
127
128
  * @param {*} [options] Override http request option.
128
129
  * @throws {RequiredError}
129
130
  */
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 = {}) {
131
+ getChats: (branchId_1, q_1, unassigned_1, unread_1, rowsPerPage_1, currentPage_1, userId_1, externallyInitiated_1, ...args_1) => __awaiter(this, [branchId_1, q_1, unassigned_1, unread_1, rowsPerPage_1, currentPage_1, userId_1, externallyInitiated_1, ...args_1], void 0, function* (branchId, q, unassigned, unread, rowsPerPage, currentPage, userId, externallyInitiated, options = {}) {
131
132
  // verify required parameter 'branchId' is not null or undefined
132
133
  if (branchId === null || branchId === undefined) {
133
134
  throw new base_1.RequiredError('branchId', 'Required parameter branchId was null or undefined when calling getChats.');
@@ -163,6 +164,9 @@ const ChatsApiAxiosParamCreator = function (configuration) {
163
164
  if (branchId !== undefined) {
164
165
  localVarQueryParameter['branchId'] = branchId;
165
166
  }
167
+ if (externallyInitiated !== undefined) {
168
+ localVarQueryParameter['externallyInitiated'] = externallyInitiated;
169
+ }
166
170
  const query = new URLSearchParams(localVarUrlObj.search);
167
171
  for (const key in localVarQueryParameter) {
168
172
  query.set(key, localVarQueryParameter[key]);
@@ -272,12 +276,13 @@ const ChatsApiFp = function (configuration) {
272
276
  * @param {number} [rowsPerPage]
273
277
  * @param {number} [currentPage]
274
278
  * @param {number} [userId]
279
+ * @param {boolean} [externallyInitiated]
275
280
  * @param {*} [options] Override http request option.
276
281
  * @throws {RequiredError}
277
282
  */
278
- getChats(branchId, q, unassigned, unread, rowsPerPage, currentPage, userId, options) {
283
+ getChats(branchId, q, unassigned, unread, rowsPerPage, currentPage, userId, externallyInitiated, options) {
279
284
  return __awaiter(this, void 0, void 0, function* () {
280
- const localVarAxiosArgs = yield (0, exports.ChatsApiAxiosParamCreator)(configuration).getChats(branchId, q, unassigned, unread, rowsPerPage, currentPage, userId, options);
285
+ const localVarAxiosArgs = yield (0, exports.ChatsApiAxiosParamCreator)(configuration).getChats(branchId, q, unassigned, unread, rowsPerPage, currentPage, userId, externallyInitiated, options);
281
286
  return (axios = axios_1.default, basePath = base_1.BASE_PATH) => {
282
287
  const axiosRequestArgs = Object.assign(Object.assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
283
288
  return axios.request(axiosRequestArgs);
@@ -341,12 +346,13 @@ const ChatsApiFactory = function (configuration, basePath, axios) {
341
346
  * @param {number} [rowsPerPage]
342
347
  * @param {number} [currentPage]
343
348
  * @param {number} [userId]
349
+ * @param {boolean} [externallyInitiated]
344
350
  * @param {*} [options] Override http request option.
345
351
  * @throws {RequiredError}
346
352
  */
347
- getChats(branchId, q, unassigned, unread, rowsPerPage, currentPage, userId, options) {
353
+ getChats(branchId, q, unassigned, unread, rowsPerPage, currentPage, userId, externallyInitiated, options) {
348
354
  return __awaiter(this, void 0, void 0, function* () {
349
- return (0, exports.ChatsApiFp)(configuration).getChats(branchId, q, unassigned, unread, rowsPerPage, currentPage, userId, options).then((request) => request(axios, basePath));
355
+ return (0, exports.ChatsApiFp)(configuration).getChats(branchId, q, unassigned, unread, rowsPerPage, currentPage, userId, externallyInitiated, options).then((request) => request(axios, basePath));
350
356
  });
351
357
  },
352
358
  /**
@@ -405,13 +411,14 @@ class ChatsApi extends base_1.BaseAPI {
405
411
  * @param {number} [rowsPerPage]
406
412
  * @param {number} [currentPage]
407
413
  * @param {number} [userId]
414
+ * @param {boolean} [externallyInitiated]
408
415
  * @param {*} [options] Override http request option.
409
416
  * @throws {RequiredError}
410
417
  * @memberof ChatsApi
411
418
  */
412
- getChats(branchId, q, unassigned, unread, rowsPerPage, currentPage, userId, options) {
419
+ getChats(branchId, q, unassigned, unread, rowsPerPage, currentPage, userId, externallyInitiated, options) {
413
420
  return __awaiter(this, void 0, void 0, function* () {
414
- return (0, exports.ChatsApiFp)(this.configuration).getChats(branchId, q, unassigned, unread, rowsPerPage, currentPage, userId, options).then((request) => request(this.axios, this.basePath));
421
+ return (0, exports.ChatsApiFp)(this.configuration).getChats(branchId, q, unassigned, unread, rowsPerPage, currentPage, userId, externallyInitiated, options).then((request) => request(this.axios, this.basePath));
415
422
  });
416
423
  }
417
424
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@libgot/whatsapp-bridge-sdk",
3
- "version": "1.0.34-rc.2",
3
+ "version": "1.0.34-rc.3",
4
4
  "description": "OpenAPI client for ",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [