@libgot/whatsapp-bridge-sdk 1.0.39-rc.1 → 1.0.40-rc.1

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/.nvmrc ADDED
@@ -0,0 +1 @@
1
+ lts/*
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @1.0.39-rc.1
1
+ ## @1.0.40-rc.1
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.39-rc.1 --save
39
+ npm install @libgot/whatsapp-bridge-sdk@1.0.40-rc.1 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
package/apis/chats-api.ts CHANGED
@@ -166,6 +166,7 @@ export const ChatsApiAxiosParamCreator = function (configuration?: Configuration
166
166
  /**
167
167
  *
168
168
  * @param {number} branchId
169
+ * @param {string} apikey
169
170
  * @param {string} [q]
170
171
  * @param {boolean} [unassigned]
171
172
  * @param {boolean} [unread]
@@ -178,11 +179,15 @@ export const ChatsApiAxiosParamCreator = function (configuration?: Configuration
178
179
  * @param {*} [options] Override http request option.
179
180
  * @throws {RequiredError}
180
181
  */
181
- 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> => {
182
+ getChats: async (branchId: number, apikey: string, q?: string, unassigned?: boolean, unread?: boolean, rowsPerPage?: number, currentPage?: number, userId?: number, externallyInitiated?: boolean, id?: number, assignmentTypeCode?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
182
183
  // verify required parameter 'branchId' is not null or undefined
183
184
  if (branchId === null || branchId === undefined) {
184
185
  throw new RequiredError('branchId','Required parameter branchId was null or undefined when calling getChats.');
185
186
  }
187
+ // verify required parameter 'apikey' is not null or undefined
188
+ if (apikey === null || apikey === undefined) {
189
+ throw new RequiredError('apikey','Required parameter apikey was null or undefined when calling getChats.');
190
+ }
186
191
  const localVarPath = `/api/chats`;
187
192
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
188
193
  const localVarUrlObj = new URL(localVarPath, 'https://example.com');
@@ -234,6 +239,10 @@ export const ChatsApiAxiosParamCreator = function (configuration?: Configuration
234
239
  localVarQueryParameter['assignmentTypeCode'] = assignmentTypeCode;
235
240
  }
236
241
 
242
+ if (apikey !== undefined && apikey !== null) {
243
+ localVarHeaderParameter['apikey'] = String(apikey);
244
+ }
245
+
237
246
  const query = new URLSearchParams(localVarUrlObj.search);
238
247
  for (const key in localVarQueryParameter) {
239
248
  query.set(key, localVarQueryParameter[key]);
@@ -351,6 +360,7 @@ export const ChatsApiFp = function(configuration?: Configuration) {
351
360
  /**
352
361
  *
353
362
  * @param {number} branchId
363
+ * @param {string} apikey
354
364
  * @param {string} [q]
355
365
  * @param {boolean} [unassigned]
356
366
  * @param {boolean} [unread]
@@ -363,8 +373,8 @@ export const ChatsApiFp = function(configuration?: Configuration) {
363
373
  * @param {*} [options] Override http request option.
364
374
  * @throws {RequiredError}
365
375
  */
366
- 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>>> {
367
- const localVarAxiosArgs = await ChatsApiAxiosParamCreator(configuration).getChats(branchId, q, unassigned, unread, rowsPerPage, currentPage, userId, externallyInitiated, id, assignmentTypeCode, options);
376
+ async getChats(branchId: number, apikey: string, 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>>> {
377
+ const localVarAxiosArgs = await ChatsApiAxiosParamCreator(configuration).getChats(branchId, apikey, q, unassigned, unread, rowsPerPage, currentPage, userId, externallyInitiated, id, assignmentTypeCode, options);
368
378
  return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
369
379
  const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
370
380
  return axios.request(axiosRequestArgs);
@@ -425,6 +435,7 @@ export const ChatsApiFactory = function (configuration?: Configuration, basePath
425
435
  /**
426
436
  *
427
437
  * @param {number} branchId
438
+ * @param {string} apikey
428
439
  * @param {string} [q]
429
440
  * @param {boolean} [unassigned]
430
441
  * @param {boolean} [unread]
@@ -437,8 +448,8 @@ export const ChatsApiFactory = function (configuration?: Configuration, basePath
437
448
  * @param {*} [options] Override http request option.
438
449
  * @throws {RequiredError}
439
450
  */
440
- 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>> {
441
- return ChatsApiFp(configuration).getChats(branchId, q, unassigned, unread, rowsPerPage, currentPage, userId, externallyInitiated, id, assignmentTypeCode, options).then((request) => request(axios, basePath));
451
+ async getChats(branchId: number, apikey: string, q?: string, unassigned?: boolean, unread?: boolean, rowsPerPage?: number, currentPage?: number, userId?: number, externallyInitiated?: boolean, id?: number, assignmentTypeCode?: string, options?: AxiosRequestConfig): Promise<AxiosResponse<PaginationChatResponseDto>> {
452
+ return ChatsApiFp(configuration).getChats(branchId, apikey, q, unassigned, unread, rowsPerPage, currentPage, userId, externallyInitiated, id, assignmentTypeCode, options).then((request) => request(axios, basePath));
442
453
  },
443
454
  /**
444
455
  *
@@ -495,6 +506,7 @@ export class ChatsApi extends BaseAPI {
495
506
  /**
496
507
  *
497
508
  * @param {number} branchId
509
+ * @param {string} apikey
498
510
  * @param {string} [q]
499
511
  * @param {boolean} [unassigned]
500
512
  * @param {boolean} [unread]
@@ -508,8 +520,8 @@ export class ChatsApi extends BaseAPI {
508
520
  * @throws {RequiredError}
509
521
  * @memberof ChatsApi
510
522
  */
511
- 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>> {
512
- return ChatsApiFp(this.configuration).getChats(branchId, q, unassigned, unread, rowsPerPage, currentPage, userId, externallyInitiated, id, assignmentTypeCode, options).then((request) => request(this.axios, this.basePath));
523
+ public async getChats(branchId: number, apikey: string, q?: string, unassigned?: boolean, unread?: boolean, rowsPerPage?: number, currentPage?: number, userId?: number, externallyInitiated?: boolean, id?: number, assignmentTypeCode?: string, options?: AxiosRequestConfig) : Promise<AxiosResponse<PaginationChatResponseDto>> {
524
+ return ChatsApiFp(this.configuration).getChats(branchId, apikey, q, unassigned, unread, rowsPerPage, currentPage, userId, externallyInitiated, id, assignmentTypeCode, options).then((request) => request(this.axios, this.basePath));
513
525
  }
514
526
  /**
515
527
  *
package/apis/flows-api.ts CHANGED
@@ -95,45 +95,6 @@ export const FlowsApiAxiosParamCreator = function (configuration?: Configuration
95
95
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
96
96
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
97
97
 
98
- return {
99
- url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
100
- options: localVarRequestOptions,
101
- };
102
- },
103
- /**
104
- *
105
- * @param {number} leadId
106
- * @param {*} [options] Override http request option.
107
- * @throws {RequiredError}
108
- */
109
- flowsControllerHandleGet2: async (leadId: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
110
- // verify required parameter 'leadId' is not null or undefined
111
- if (leadId === null || leadId === undefined) {
112
- throw new RequiredError('leadId','Required parameter leadId was null or undefined when calling flowsControllerHandleGet2.');
113
- }
114
- const localVarPath = `/api/flows/getOffer/{leadId}`
115
- .replace(`{${"leadId"}}`, encodeURIComponent(String(leadId)));
116
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
117
- const localVarUrlObj = new URL(localVarPath, 'https://example.com');
118
- let baseOptions;
119
- if (configuration) {
120
- baseOptions = configuration.baseOptions;
121
- }
122
- const localVarRequestOptions :AxiosRequestConfig = { method: 'GET', ...baseOptions, ...options};
123
- const localVarHeaderParameter = {} as any;
124
- const localVarQueryParameter = {} as any;
125
-
126
- const query = new URLSearchParams(localVarUrlObj.search);
127
- for (const key in localVarQueryParameter) {
128
- query.set(key, localVarQueryParameter[key]);
129
- }
130
- for (const key in options.params) {
131
- query.set(key, options.params[key]);
132
- }
133
- localVarUrlObj.search = (new URLSearchParams(query)).toString();
134
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
135
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
136
-
137
98
  return {
138
99
  url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
139
100
  options: localVarRequestOptions,
@@ -173,19 +134,6 @@ export const FlowsApiFp = function(configuration?: Configuration) {
173
134
  return axios.request(axiosRequestArgs);
174
135
  };
175
136
  },
176
- /**
177
- *
178
- * @param {number} leadId
179
- * @param {*} [options] Override http request option.
180
- * @throws {RequiredError}
181
- */
182
- async flowsControllerHandleGet2(leadId: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<void>>> {
183
- const localVarAxiosArgs = await FlowsApiAxiosParamCreator(configuration).flowsControllerHandleGet2(leadId, options);
184
- return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
185
- const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
186
- return axios.request(axiosRequestArgs);
187
- };
188
- },
189
137
  }
190
138
  };
191
139
 
@@ -212,15 +160,6 @@ export const FlowsApiFactory = function (configuration?: Configuration, basePath
212
160
  async flowsControllerHandleGet(options?: AxiosRequestConfig): Promise<AxiosResponse<void>> {
213
161
  return FlowsApiFp(configuration).flowsControllerHandleGet(options).then((request) => request(axios, basePath));
214
162
  },
215
- /**
216
- *
217
- * @param {number} leadId
218
- * @param {*} [options] Override http request option.
219
- * @throws {RequiredError}
220
- */
221
- async flowsControllerHandleGet2(leadId: number, options?: AxiosRequestConfig): Promise<AxiosResponse<void>> {
222
- return FlowsApiFp(configuration).flowsControllerHandleGet2(leadId, options).then((request) => request(axios, basePath));
223
- },
224
163
  };
225
164
  };
226
165
 
@@ -250,14 +189,4 @@ export class FlowsApi extends BaseAPI {
250
189
  public async flowsControllerHandleGet(options?: AxiosRequestConfig) : Promise<AxiosResponse<void>> {
251
190
  return FlowsApiFp(this.configuration).flowsControllerHandleGet(options).then((request) => request(this.axios, this.basePath));
252
191
  }
253
- /**
254
- *
255
- * @param {number} leadId
256
- * @param {*} [options] Override http request option.
257
- * @throws {RequiredError}
258
- * @memberof FlowsApi
259
- */
260
- public async flowsControllerHandleGet2(leadId: number, options?: AxiosRequestConfig) : Promise<AxiosResponse<void>> {
261
- return FlowsApiFp(this.configuration).flowsControllerHandleGet2(leadId, options).then((request) => request(this.axios, this.basePath));
262
- }
263
192
  }
@@ -48,6 +48,7 @@ export declare const ChatsApiAxiosParamCreator: (configuration?: Configuration)
48
48
  /**
49
49
  *
50
50
  * @param {number} branchId
51
+ * @param {string} apikey
51
52
  * @param {string} [q]
52
53
  * @param {boolean} [unassigned]
53
54
  * @param {boolean} [unread]
@@ -60,7 +61,7 @@ export declare const ChatsApiAxiosParamCreator: (configuration?: Configuration)
60
61
  * @param {*} [options] Override http request option.
61
62
  * @throws {RequiredError}
62
63
  */
63
- 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>;
64
+ getChats: (branchId: number, apikey: string, q?: string, unassigned?: boolean, unread?: boolean, rowsPerPage?: number, currentPage?: number, userId?: number, externallyInitiated?: boolean, id?: number, assignmentTypeCode?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
64
65
  /**
65
66
  *
66
67
  * @param {MarkChatUnreadDto} body
@@ -101,6 +102,7 @@ export declare const ChatsApiFp: (configuration?: Configuration) => {
101
102
  /**
102
103
  *
103
104
  * @param {number} branchId
105
+ * @param {string} apikey
104
106
  * @param {string} [q]
105
107
  * @param {boolean} [unassigned]
106
108
  * @param {boolean} [unread]
@@ -113,7 +115,7 @@ export declare const ChatsApiFp: (configuration?: Configuration) => {
113
115
  * @param {*} [options] Override http request option.
114
116
  * @throws {RequiredError}
115
117
  */
116
- 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>>>;
118
+ getChats(branchId: number, apikey: string, 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>>>;
117
119
  /**
118
120
  *
119
121
  * @param {MarkChatUnreadDto} body
@@ -154,6 +156,7 @@ export declare const ChatsApiFactory: (configuration?: Configuration, basePath?:
154
156
  /**
155
157
  *
156
158
  * @param {number} branchId
159
+ * @param {string} apikey
157
160
  * @param {string} [q]
158
161
  * @param {boolean} [unassigned]
159
162
  * @param {boolean} [unread]
@@ -166,7 +169,7 @@ export declare const ChatsApiFactory: (configuration?: Configuration, basePath?:
166
169
  * @param {*} [options] Override http request option.
167
170
  * @throws {RequiredError}
168
171
  */
169
- 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>>;
172
+ getChats(branchId: number, apikey: string, q?: string, unassigned?: boolean, unread?: boolean, rowsPerPage?: number, currentPage?: number, userId?: number, externallyInitiated?: boolean, id?: number, assignmentTypeCode?: string, options?: AxiosRequestConfig): Promise<AxiosResponse<PaginationChatResponseDto>>;
170
173
  /**
171
174
  *
172
175
  * @param {MarkChatUnreadDto} body
@@ -212,6 +215,7 @@ export declare class ChatsApi extends BaseAPI {
212
215
  /**
213
216
  *
214
217
  * @param {number} branchId
218
+ * @param {string} apikey
215
219
  * @param {string} [q]
216
220
  * @param {boolean} [unassigned]
217
221
  * @param {boolean} [unread]
@@ -225,7 +229,7 @@ export declare class ChatsApi extends BaseAPI {
225
229
  * @throws {RequiredError}
226
230
  * @memberof ChatsApi
227
231
  */
228
- 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>>;
232
+ getChats(branchId: number, apikey: string, q?: string, unassigned?: boolean, unread?: boolean, rowsPerPage?: number, currentPage?: number, userId?: number, externallyInitiated?: boolean, id?: number, assignmentTypeCode?: string, options?: AxiosRequestConfig): Promise<AxiosResponse<PaginationChatResponseDto>>;
229
233
  /**
230
234
  *
231
235
  * @param {MarkChatUnreadDto} body
@@ -163,6 +163,7 @@ const ChatsApiAxiosParamCreator = function (configuration) {
163
163
  /**
164
164
  *
165
165
  * @param {number} branchId
166
+ * @param {string} apikey
166
167
  * @param {string} [q]
167
168
  * @param {boolean} [unassigned]
168
169
  * @param {boolean} [unread]
@@ -175,11 +176,15 @@ const ChatsApiAxiosParamCreator = function (configuration) {
175
176
  * @param {*} [options] Override http request option.
176
177
  * @throws {RequiredError}
177
178
  */
178
- 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 = {}) {
179
+ getChats: (branchId_1, apikey_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, apikey_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, apikey, q, unassigned, unread, rowsPerPage, currentPage, userId, externallyInitiated, id, assignmentTypeCode, options = {}) {
179
180
  // verify required parameter 'branchId' is not null or undefined
180
181
  if (branchId === null || branchId === undefined) {
181
182
  throw new base_1.RequiredError('branchId', 'Required parameter branchId was null or undefined when calling getChats.');
182
183
  }
184
+ // verify required parameter 'apikey' is not null or undefined
185
+ if (apikey === null || apikey === undefined) {
186
+ throw new base_1.RequiredError('apikey', 'Required parameter apikey was null or undefined when calling getChats.');
187
+ }
183
188
  const localVarPath = `/api/chats`;
184
189
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
185
190
  const localVarUrlObj = new URL(localVarPath, 'https://example.com');
@@ -220,6 +225,9 @@ const ChatsApiAxiosParamCreator = function (configuration) {
220
225
  if (assignmentTypeCode !== undefined) {
221
226
  localVarQueryParameter['assignmentTypeCode'] = assignmentTypeCode;
222
227
  }
228
+ if (apikey !== undefined && apikey !== null) {
229
+ localVarHeaderParameter['apikey'] = String(apikey);
230
+ }
223
231
  const query = new URLSearchParams(localVarUrlObj.search);
224
232
  for (const key in localVarQueryParameter) {
225
233
  query.set(key, localVarQueryParameter[key]);
@@ -339,6 +347,7 @@ const ChatsApiFp = function (configuration) {
339
347
  /**
340
348
  *
341
349
  * @param {number} branchId
350
+ * @param {string} apikey
342
351
  * @param {string} [q]
343
352
  * @param {boolean} [unassigned]
344
353
  * @param {boolean} [unread]
@@ -351,9 +360,9 @@ const ChatsApiFp = function (configuration) {
351
360
  * @param {*} [options] Override http request option.
352
361
  * @throws {RequiredError}
353
362
  */
354
- getChats(branchId, q, unassigned, unread, rowsPerPage, currentPage, userId, externallyInitiated, id, assignmentTypeCode, options) {
363
+ getChats(branchId, apikey, q, unassigned, unread, rowsPerPage, currentPage, userId, externallyInitiated, id, assignmentTypeCode, options) {
355
364
  return __awaiter(this, void 0, void 0, function* () {
356
- const localVarAxiosArgs = yield (0, exports.ChatsApiAxiosParamCreator)(configuration).getChats(branchId, q, unassigned, unread, rowsPerPage, currentPage, userId, externallyInitiated, id, assignmentTypeCode, options);
365
+ const localVarAxiosArgs = yield (0, exports.ChatsApiAxiosParamCreator)(configuration).getChats(branchId, apikey, q, unassigned, unread, rowsPerPage, currentPage, userId, externallyInitiated, id, assignmentTypeCode, options);
357
366
  return (axios = axios_1.default, basePath = base_1.BASE_PATH) => {
358
367
  const axiosRequestArgs = Object.assign(Object.assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
359
368
  return axios.request(axiosRequestArgs);
@@ -423,6 +432,7 @@ const ChatsApiFactory = function (configuration, basePath, axios) {
423
432
  /**
424
433
  *
425
434
  * @param {number} branchId
435
+ * @param {string} apikey
426
436
  * @param {string} [q]
427
437
  * @param {boolean} [unassigned]
428
438
  * @param {boolean} [unread]
@@ -435,9 +445,9 @@ const ChatsApiFactory = function (configuration, basePath, axios) {
435
445
  * @param {*} [options] Override http request option.
436
446
  * @throws {RequiredError}
437
447
  */
438
- getChats(branchId, q, unassigned, unread, rowsPerPage, currentPage, userId, externallyInitiated, id, assignmentTypeCode, options) {
448
+ getChats(branchId, apikey, q, unassigned, unread, rowsPerPage, currentPage, userId, externallyInitiated, id, assignmentTypeCode, options) {
439
449
  return __awaiter(this, void 0, void 0, function* () {
440
- return (0, exports.ChatsApiFp)(configuration).getChats(branchId, q, unassigned, unread, rowsPerPage, currentPage, userId, externallyInitiated, id, assignmentTypeCode, options).then((request) => request(axios, basePath));
450
+ return (0, exports.ChatsApiFp)(configuration).getChats(branchId, apikey, q, unassigned, unread, rowsPerPage, currentPage, userId, externallyInitiated, id, assignmentTypeCode, options).then((request) => request(axios, basePath));
441
451
  });
442
452
  },
443
453
  /**
@@ -503,6 +513,7 @@ class ChatsApi extends base_1.BaseAPI {
503
513
  /**
504
514
  *
505
515
  * @param {number} branchId
516
+ * @param {string} apikey
506
517
  * @param {string} [q]
507
518
  * @param {boolean} [unassigned]
508
519
  * @param {boolean} [unread]
@@ -516,9 +527,9 @@ class ChatsApi extends base_1.BaseAPI {
516
527
  * @throws {RequiredError}
517
528
  * @memberof ChatsApi
518
529
  */
519
- getChats(branchId, q, unassigned, unread, rowsPerPage, currentPage, userId, externallyInitiated, id, assignmentTypeCode, options) {
530
+ getChats(branchId, apikey, q, unassigned, unread, rowsPerPage, currentPage, userId, externallyInitiated, id, assignmentTypeCode, options) {
520
531
  return __awaiter(this, void 0, void 0, function* () {
521
- 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));
532
+ return (0, exports.ChatsApiFp)(this.configuration).getChats(branchId, apikey, q, unassigned, unread, rowsPerPage, currentPage, userId, externallyInitiated, id, assignmentTypeCode, options).then((request) => request(this.axios, this.basePath));
522
533
  });
523
534
  }
524
535
  /**
@@ -32,13 +32,6 @@ export declare const FlowsApiAxiosParamCreator: (configuration?: Configuration)
32
32
  * @throws {RequiredError}
33
33
  */
34
34
  flowsControllerHandleGet: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
35
- /**
36
- *
37
- * @param {number} leadId
38
- * @param {*} [options] Override http request option.
39
- * @throws {RequiredError}
40
- */
41
- flowsControllerHandleGet2: (leadId: number, options?: AxiosRequestConfig) => Promise<RequestArgs>;
42
35
  };
43
36
  /**
44
37
  * FlowsApi - functional programming interface
@@ -58,13 +51,6 @@ export declare const FlowsApiFp: (configuration?: Configuration) => {
58
51
  * @throws {RequiredError}
59
52
  */
60
53
  flowsControllerHandleGet(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<void>>>;
61
- /**
62
- *
63
- * @param {number} leadId
64
- * @param {*} [options] Override http request option.
65
- * @throws {RequiredError}
66
- */
67
- flowsControllerHandleGet2(leadId: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<void>>>;
68
54
  };
69
55
  /**
70
56
  * FlowsApi - factory interface
@@ -84,13 +70,6 @@ export declare const FlowsApiFactory: (configuration?: Configuration, basePath?:
84
70
  * @throws {RequiredError}
85
71
  */
86
72
  flowsControllerHandleGet(options?: AxiosRequestConfig): Promise<AxiosResponse<void>>;
87
- /**
88
- *
89
- * @param {number} leadId
90
- * @param {*} [options] Override http request option.
91
- * @throws {RequiredError}
92
- */
93
- flowsControllerHandleGet2(leadId: number, options?: AxiosRequestConfig): Promise<AxiosResponse<void>>;
94
73
  };
95
74
  /**
96
75
  * FlowsApi - object-oriented interface
@@ -114,12 +93,4 @@ export declare class FlowsApi extends BaseAPI {
114
93
  * @memberof FlowsApi
115
94
  */
116
95
  flowsControllerHandleGet(options?: AxiosRequestConfig): Promise<AxiosResponse<void>>;
117
- /**
118
- *
119
- * @param {number} leadId
120
- * @param {*} [options] Override http request option.
121
- * @throws {RequiredError}
122
- * @memberof FlowsApi
123
- */
124
- flowsControllerHandleGet2(leadId: number, options?: AxiosRequestConfig): Promise<AxiosResponse<void>>;
125
96
  }
@@ -103,43 +103,6 @@ const FlowsApiAxiosParamCreator = function (configuration) {
103
103
  options: localVarRequestOptions,
104
104
  };
105
105
  }),
106
- /**
107
- *
108
- * @param {number} leadId
109
- * @param {*} [options] Override http request option.
110
- * @throws {RequiredError}
111
- */
112
- flowsControllerHandleGet2: (leadId_1, ...args_1) => __awaiter(this, [leadId_1, ...args_1], void 0, function* (leadId, options = {}) {
113
- // verify required parameter 'leadId' is not null or undefined
114
- if (leadId === null || leadId === undefined) {
115
- throw new base_1.RequiredError('leadId', 'Required parameter leadId was null or undefined when calling flowsControllerHandleGet2.');
116
- }
117
- const localVarPath = `/api/flows/getOffer/{leadId}`
118
- .replace(`{${"leadId"}}`, encodeURIComponent(String(leadId)));
119
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
120
- const localVarUrlObj = new URL(localVarPath, 'https://example.com');
121
- let baseOptions;
122
- if (configuration) {
123
- baseOptions = configuration.baseOptions;
124
- }
125
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
126
- const localVarHeaderParameter = {};
127
- const localVarQueryParameter = {};
128
- const query = new URLSearchParams(localVarUrlObj.search);
129
- for (const key in localVarQueryParameter) {
130
- query.set(key, localVarQueryParameter[key]);
131
- }
132
- for (const key in options.params) {
133
- query.set(key, options.params[key]);
134
- }
135
- localVarUrlObj.search = (new URLSearchParams(query)).toString();
136
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
137
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
138
- return {
139
- url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
140
- options: localVarRequestOptions,
141
- };
142
- }),
143
106
  };
144
107
  };
145
108
  exports.FlowsApiAxiosParamCreator = FlowsApiAxiosParamCreator;
@@ -178,21 +141,6 @@ const FlowsApiFp = function (configuration) {
178
141
  };
179
142
  });
180
143
  },
181
- /**
182
- *
183
- * @param {number} leadId
184
- * @param {*} [options] Override http request option.
185
- * @throws {RequiredError}
186
- */
187
- flowsControllerHandleGet2(leadId, options) {
188
- return __awaiter(this, void 0, void 0, function* () {
189
- const localVarAxiosArgs = yield (0, exports.FlowsApiAxiosParamCreator)(configuration).flowsControllerHandleGet2(leadId, options);
190
- return (axios = axios_1.default, basePath = base_1.BASE_PATH) => {
191
- const axiosRequestArgs = Object.assign(Object.assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
192
- return axios.request(axiosRequestArgs);
193
- };
194
- });
195
- },
196
144
  };
197
145
  };
198
146
  exports.FlowsApiFp = FlowsApiFp;
@@ -223,17 +171,6 @@ const FlowsApiFactory = function (configuration, basePath, axios) {
223
171
  return (0, exports.FlowsApiFp)(configuration).flowsControllerHandleGet(options).then((request) => request(axios, basePath));
224
172
  });
225
173
  },
226
- /**
227
- *
228
- * @param {number} leadId
229
- * @param {*} [options] Override http request option.
230
- * @throws {RequiredError}
231
- */
232
- flowsControllerHandleGet2(leadId, options) {
233
- return __awaiter(this, void 0, void 0, function* () {
234
- return (0, exports.FlowsApiFp)(configuration).flowsControllerHandleGet2(leadId, options).then((request) => request(axios, basePath));
235
- });
236
- },
237
174
  };
238
175
  };
239
176
  exports.FlowsApiFactory = FlowsApiFactory;
@@ -267,17 +204,5 @@ class FlowsApi extends base_1.BaseAPI {
267
204
  return (0, exports.FlowsApiFp)(this.configuration).flowsControllerHandleGet(options).then((request) => request(this.axios, this.basePath));
268
205
  });
269
206
  }
270
- /**
271
- *
272
- * @param {number} leadId
273
- * @param {*} [options] Override http request option.
274
- * @throws {RequiredError}
275
- * @memberof FlowsApi
276
- */
277
- flowsControllerHandleGet2(leadId, options) {
278
- return __awaiter(this, void 0, void 0, function* () {
279
- return (0, exports.FlowsApiFp)(this.configuration).flowsControllerHandleGet2(leadId, options).then((request) => request(this.axios, this.basePath));
280
- });
281
- }
282
207
  }
283
208
  exports.FlowsApi = FlowsApi;
@@ -22,4 +22,10 @@ export interface ConversationMessageDto {
22
22
  * @example Hola como estas?
23
23
  */
24
24
  conversation: string;
25
+ /**
26
+ * @type {string}
27
+ * @memberof ConversationMessageDto
28
+ * @example Hola como estas?
29
+ */
30
+ renderedMessage: string;
25
31
  }
@@ -26,4 +26,11 @@ export interface ConversationMessageDto {
26
26
  * @example Hola como estas?
27
27
  */
28
28
  conversation: string;
29
+
30
+ /**
31
+ * @type {string}
32
+ * @memberof ConversationMessageDto
33
+ * @example Hola como estas?
34
+ */
35
+ renderedMessage: string;
29
36
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@libgot/whatsapp-bridge-sdk",
3
- "version": "1.0.39-rc.1",
3
+ "version": "1.0.40-rc.1",
4
4
  "description": "OpenAPI client for ",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [
@@ -17,7 +17,7 @@
17
17
  "prepublishOnly": "npm run build"
18
18
  },
19
19
  "dependencies": {
20
- "axios": "^1.8.4"
20
+ "axios": "^1.13.2"
21
21
  },
22
22
  "devDependencies": {
23
23
  "@types/node": "^12.11.5",