@libgot/whatsapp-bridge-sdk 1.0.22 → 1.0.24

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.22
1
+ ## @1.0.24
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.22 --save
39
+ npm install @libgot/whatsapp-bridge-sdk@1.0.24 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
package/apis/chats-api.ts CHANGED
@@ -116,10 +116,11 @@ export const ChatsApiAxiosParamCreator = function (configuration?: Configuration
116
116
  /**
117
117
  *
118
118
  * @param {number} branchId
119
+ * @param {number} [userId]
119
120
  * @param {*} [options] Override http request option.
120
121
  * @throws {RequiredError}
121
122
  */
122
- getChats: async (branchId: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
123
+ getChats: async (branchId: number, userId?: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
123
124
  // verify required parameter 'branchId' is not null or undefined
124
125
  if (branchId === null || branchId === undefined) {
125
126
  throw new RequiredError('branchId','Required parameter branchId was null or undefined when calling getChats.');
@@ -139,6 +140,10 @@ export const ChatsApiAxiosParamCreator = function (configuration?: Configuration
139
140
  localVarQueryParameter['branchId'] = branchId;
140
141
  }
141
142
 
143
+ if (userId !== undefined) {
144
+ localVarQueryParameter['userId'] = userId;
145
+ }
146
+
142
147
  const query = new URLSearchParams(localVarUrlObj.search);
143
148
  for (const key in localVarQueryParameter) {
144
149
  query.set(key, localVarQueryParameter[key]);
@@ -171,7 +176,7 @@ export const ChatsApiFp = function(configuration?: Configuration) {
171
176
  * @param {*} [options] Override http request option.
172
177
  * @throws {RequiredError}
173
178
  */
174
- async assignToMe(body: AssignToMeDto, id: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<WhatsappChatResponseDTO>>> {
179
+ async assignToMe(body: AssignToMeDto, id: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<void>>> {
175
180
  const localVarAxiosArgs = await ChatsApiAxiosParamCreator(configuration).assignToMe(body, id, options);
176
181
  return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
177
182
  const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
@@ -194,11 +199,12 @@ export const ChatsApiFp = function(configuration?: Configuration) {
194
199
  /**
195
200
  *
196
201
  * @param {number} branchId
202
+ * @param {number} [userId]
197
203
  * @param {*} [options] Override http request option.
198
204
  * @throws {RequiredError}
199
205
  */
200
- async getChats(branchId: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<ChatsResponseDTO>>> {
201
- const localVarAxiosArgs = await ChatsApiAxiosParamCreator(configuration).getChats(branchId, options);
206
+ async getChats(branchId: number, userId?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<ChatsResponseDTO>>> {
207
+ const localVarAxiosArgs = await ChatsApiAxiosParamCreator(configuration).getChats(branchId, userId, options);
202
208
  return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
203
209
  const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
204
210
  return axios.request(axiosRequestArgs);
@@ -220,7 +226,7 @@ export const ChatsApiFactory = function (configuration?: Configuration, basePath
220
226
  * @param {*} [options] Override http request option.
221
227
  * @throws {RequiredError}
222
228
  */
223
- async assignToMe(body: AssignToMeDto, id: number, options?: AxiosRequestConfig): Promise<AxiosResponse<WhatsappChatResponseDTO>> {
229
+ async assignToMe(body: AssignToMeDto, id: number, options?: AxiosRequestConfig): Promise<AxiosResponse<void>> {
224
230
  return ChatsApiFp(configuration).assignToMe(body, id, options).then((request) => request(axios, basePath));
225
231
  },
226
232
  /**
@@ -235,11 +241,12 @@ export const ChatsApiFactory = function (configuration?: Configuration, basePath
235
241
  /**
236
242
  *
237
243
  * @param {number} branchId
244
+ * @param {number} [userId]
238
245
  * @param {*} [options] Override http request option.
239
246
  * @throws {RequiredError}
240
247
  */
241
- async getChats(branchId: number, options?: AxiosRequestConfig): Promise<AxiosResponse<ChatsResponseDTO>> {
242
- return ChatsApiFp(configuration).getChats(branchId, options).then((request) => request(axios, basePath));
248
+ async getChats(branchId: number, userId?: number, options?: AxiosRequestConfig): Promise<AxiosResponse<ChatsResponseDTO>> {
249
+ return ChatsApiFp(configuration).getChats(branchId, userId, options).then((request) => request(axios, basePath));
243
250
  },
244
251
  };
245
252
  };
@@ -259,7 +266,7 @@ export class ChatsApi extends BaseAPI {
259
266
  * @throws {RequiredError}
260
267
  * @memberof ChatsApi
261
268
  */
262
- public async assignToMe(body: AssignToMeDto, id: number, options?: AxiosRequestConfig) : Promise<AxiosResponse<WhatsappChatResponseDTO>> {
269
+ public async assignToMe(body: AssignToMeDto, id: number, options?: AxiosRequestConfig) : Promise<AxiosResponse<void>> {
263
270
  return ChatsApiFp(this.configuration).assignToMe(body, id, options).then((request) => request(this.axios, this.basePath));
264
271
  }
265
272
  /**
@@ -275,11 +282,12 @@ export class ChatsApi extends BaseAPI {
275
282
  /**
276
283
  *
277
284
  * @param {number} branchId
285
+ * @param {number} [userId]
278
286
  * @param {*} [options] Override http request option.
279
287
  * @throws {RequiredError}
280
288
  * @memberof ChatsApi
281
289
  */
282
- public async getChats(branchId: number, options?: AxiosRequestConfig) : Promise<AxiosResponse<ChatsResponseDTO>> {
283
- return ChatsApiFp(this.configuration).getChats(branchId, options).then((request) => request(this.axios, this.basePath));
290
+ public async getChats(branchId: number, userId?: number, options?: AxiosRequestConfig) : Promise<AxiosResponse<ChatsResponseDTO>> {
291
+ return ChatsApiFp(this.configuration).getChats(branchId, userId, options).then((request) => request(this.axios, this.basePath));
284
292
  }
285
293
  }
@@ -38,10 +38,11 @@ export declare const ChatsApiAxiosParamCreator: (configuration?: Configuration)
38
38
  /**
39
39
  *
40
40
  * @param {number} branchId
41
+ * @param {number} [userId]
41
42
  * @param {*} [options] Override http request option.
42
43
  * @throws {RequiredError}
43
44
  */
44
- getChats: (branchId: number, options?: AxiosRequestConfig) => Promise<RequestArgs>;
45
+ getChats: (branchId: number, userId?: number, options?: AxiosRequestConfig) => Promise<RequestArgs>;
45
46
  };
46
47
  /**
47
48
  * ChatsApi - functional programming interface
@@ -55,7 +56,7 @@ export declare const ChatsApiFp: (configuration?: Configuration) => {
55
56
  * @param {*} [options] Override http request option.
56
57
  * @throws {RequiredError}
57
58
  */
58
- assignToMe(body: AssignToMeDto, id: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<WhatsappChatResponseDTO>>>;
59
+ assignToMe(body: AssignToMeDto, id: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<void>>>;
59
60
  /**
60
61
  *
61
62
  * @param {number} id
@@ -66,10 +67,11 @@ export declare const ChatsApiFp: (configuration?: Configuration) => {
66
67
  /**
67
68
  *
68
69
  * @param {number} branchId
70
+ * @param {number} [userId]
69
71
  * @param {*} [options] Override http request option.
70
72
  * @throws {RequiredError}
71
73
  */
72
- getChats(branchId: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<ChatsResponseDTO>>>;
74
+ getChats(branchId: number, userId?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<ChatsResponseDTO>>>;
73
75
  };
74
76
  /**
75
77
  * ChatsApi - factory interface
@@ -83,7 +85,7 @@ export declare const ChatsApiFactory: (configuration?: Configuration, basePath?:
83
85
  * @param {*} [options] Override http request option.
84
86
  * @throws {RequiredError}
85
87
  */
86
- assignToMe(body: AssignToMeDto, id: number, options?: AxiosRequestConfig): Promise<AxiosResponse<WhatsappChatResponseDTO>>;
88
+ assignToMe(body: AssignToMeDto, id: number, options?: AxiosRequestConfig): Promise<AxiosResponse<void>>;
87
89
  /**
88
90
  *
89
91
  * @param {number} id
@@ -94,10 +96,11 @@ export declare const ChatsApiFactory: (configuration?: Configuration, basePath?:
94
96
  /**
95
97
  *
96
98
  * @param {number} branchId
99
+ * @param {number} [userId]
97
100
  * @param {*} [options] Override http request option.
98
101
  * @throws {RequiredError}
99
102
  */
100
- getChats(branchId: number, options?: AxiosRequestConfig): Promise<AxiosResponse<ChatsResponseDTO>>;
103
+ getChats(branchId: number, userId?: number, options?: AxiosRequestConfig): Promise<AxiosResponse<ChatsResponseDTO>>;
101
104
  };
102
105
  /**
103
106
  * ChatsApi - object-oriented interface
@@ -114,7 +117,7 @@ export declare class ChatsApi extends BaseAPI {
114
117
  * @throws {RequiredError}
115
118
  * @memberof ChatsApi
116
119
  */
117
- assignToMe(body: AssignToMeDto, id: number, options?: AxiosRequestConfig): Promise<AxiosResponse<WhatsappChatResponseDTO>>;
120
+ assignToMe(body: AssignToMeDto, id: number, options?: AxiosRequestConfig): Promise<AxiosResponse<void>>;
118
121
  /**
119
122
  *
120
123
  * @param {number} id
@@ -126,9 +129,10 @@ export declare class ChatsApi extends BaseAPI {
126
129
  /**
127
130
  *
128
131
  * @param {number} branchId
132
+ * @param {number} [userId]
129
133
  * @param {*} [options] Override http request option.
130
134
  * @throws {RequiredError}
131
135
  * @memberof ChatsApi
132
136
  */
133
- getChats(branchId: number, options?: AxiosRequestConfig): Promise<AxiosResponse<ChatsResponseDTO>>;
137
+ getChats(branchId: number, userId?: number, options?: AxiosRequestConfig): Promise<AxiosResponse<ChatsResponseDTO>>;
134
138
  }
@@ -197,15 +197,16 @@ var ChatsApiAxiosParamCreator = function (configuration) {
197
197
  /**
198
198
  *
199
199
  * @param {number} branchId
200
+ * @param {number} [userId]
200
201
  * @param {*} [options] Override http request option.
201
202
  * @throws {RequiredError}
202
203
  */
203
- getChats: function (branchId_1) {
204
+ getChats: function (branchId_1, userId_1) {
204
205
  var args_1 = [];
205
- for (var _i = 1; _i < arguments.length; _i++) {
206
- args_1[_i - 1] = arguments[_i];
206
+ for (var _i = 2; _i < arguments.length; _i++) {
207
+ args_1[_i - 2] = arguments[_i];
207
208
  }
208
- return __awaiter(_this, __spreadArray([branchId_1], args_1, true), void 0, function (branchId, options) {
209
+ return __awaiter(_this, __spreadArray([branchId_1, userId_1], args_1, true), void 0, function (branchId, userId, options) {
209
210
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, query, key, key, headersFromBaseOptions;
210
211
  if (options === void 0) { options = {}; }
211
212
  return __generator(this, function (_a) {
@@ -224,6 +225,9 @@ var ChatsApiAxiosParamCreator = function (configuration) {
224
225
  if (branchId !== undefined) {
225
226
  localVarQueryParameter['branchId'] = branchId;
226
227
  }
228
+ if (userId !== undefined) {
229
+ localVarQueryParameter['userId'] = userId;
230
+ }
227
231
  query = new URLSearchParams(localVarUrlObj.search);
228
232
  for (key in localVarQueryParameter) {
229
233
  query.set(key, localVarQueryParameter[key]);
@@ -302,15 +306,16 @@ var ChatsApiFp = function (configuration) {
302
306
  /**
303
307
  *
304
308
  * @param {number} branchId
309
+ * @param {number} [userId]
305
310
  * @param {*} [options] Override http request option.
306
311
  * @throws {RequiredError}
307
312
  */
308
- getChats: function (branchId, options) {
313
+ getChats: function (branchId, userId, options) {
309
314
  return __awaiter(this, void 0, void 0, function () {
310
315
  var localVarAxiosArgs;
311
316
  return __generator(this, function (_a) {
312
317
  switch (_a.label) {
313
- case 0: return [4 /*yield*/, (0, exports.ChatsApiAxiosParamCreator)(configuration).getChats(branchId, options)];
318
+ case 0: return [4 /*yield*/, (0, exports.ChatsApiAxiosParamCreator)(configuration).getChats(branchId, userId, options)];
314
319
  case 1:
315
320
  localVarAxiosArgs = _a.sent();
316
321
  return [2 /*return*/, function (axios, basePath) {
@@ -362,13 +367,14 @@ var ChatsApiFactory = function (configuration, basePath, axios) {
362
367
  /**
363
368
  *
364
369
  * @param {number} branchId
370
+ * @param {number} [userId]
365
371
  * @param {*} [options] Override http request option.
366
372
  * @throws {RequiredError}
367
373
  */
368
- getChats: function (branchId, options) {
374
+ getChats: function (branchId, userId, options) {
369
375
  return __awaiter(this, void 0, void 0, function () {
370
376
  return __generator(this, function (_a) {
371
- return [2 /*return*/, (0, exports.ChatsApiFp)(configuration).getChats(branchId, options).then(function (request) { return request(axios, basePath); })];
377
+ return [2 /*return*/, (0, exports.ChatsApiFp)(configuration).getChats(branchId, userId, options).then(function (request) { return request(axios, basePath); })];
372
378
  });
373
379
  });
374
380
  },
@@ -420,15 +426,16 @@ var ChatsApi = /** @class */ (function (_super) {
420
426
  /**
421
427
  *
422
428
  * @param {number} branchId
429
+ * @param {number} [userId]
423
430
  * @param {*} [options] Override http request option.
424
431
  * @throws {RequiredError}
425
432
  * @memberof ChatsApi
426
433
  */
427
- ChatsApi.prototype.getChats = function (branchId, options) {
434
+ ChatsApi.prototype.getChats = function (branchId, userId, options) {
428
435
  return __awaiter(this, void 0, void 0, function () {
429
436
  var _this = this;
430
437
  return __generator(this, function (_a) {
431
- return [2 /*return*/, (0, exports.ChatsApiFp)(this.configuration).getChats(branchId, options).then(function (request) { return request(_this.axios, _this.basePath); })];
438
+ return [2 /*return*/, (0, exports.ChatsApiFp)(this.configuration).getChats(branchId, userId, options).then(function (request) { return request(_this.axios, _this.basePath); })];
432
439
  });
433
440
  });
434
441
  };
@@ -16,4 +16,16 @@
16
16
  * @interface AssignToMeDto
17
17
  */
18
18
  export interface AssignToMeDto {
19
+ /**
20
+ * @type {number}
21
+ * @memberof AssignToMeDto
22
+ * @example 1
23
+ */
24
+ userId: number;
25
+ /**
26
+ * @type {number}
27
+ * @memberof AssignToMeDto
28
+ * @example 1
29
+ */
30
+ branchId: number;
19
31
  }
@@ -19,4 +19,18 @@
19
19
  * @interface AssignToMeDto
20
20
  */
21
21
  export interface AssignToMeDto {
22
+
23
+ /**
24
+ * @type {number}
25
+ * @memberof AssignToMeDto
26
+ * @example 1
27
+ */
28
+ userId: number;
29
+
30
+ /**
31
+ * @type {number}
32
+ * @memberof AssignToMeDto
33
+ * @example 1
34
+ */
35
+ branchId: number;
22
36
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@libgot/whatsapp-bridge-sdk",
3
- "version": "1.0.22",
3
+ "version": "1.0.24",
4
4
  "description": "OpenAPI client for ",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [