@libgot/whatsapp-bridge-sdk 1.0.39 → 1.0.40-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.
@@ -25,29 +25,33 @@ export declare const ChatsApiAxiosParamCreator: (configuration?: Configuration)
25
25
  /**
26
26
  *
27
27
  * @param {AssignToMeDto} body
28
+ * @param {string} apikey
28
29
  * @param {*} [options] Override http request option.
29
30
  * @throws {RequiredError}
30
31
  */
31
- assignToSeller: (body: AssignToMeDto, options?: AxiosRequestConfig) => Promise<RequestArgs>;
32
+ assignToSeller: (body: AssignToMeDto, apikey: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
32
33
  /**
33
34
  *
34
35
  * @param {AssignmentTypeDto} body
36
+ * @param {string} apikey
35
37
  * @param {string} cellphone
36
38
  * @param {number} id
37
39
  * @param {*} [options] Override http request option.
38
40
  * @throws {RequiredError}
39
41
  */
40
- assignmentType: (body: AssignmentTypeDto, cellphone: string, id: number, options?: AxiosRequestConfig) => Promise<RequestArgs>;
42
+ assignmentType: (body: AssignmentTypeDto, apikey: string, cellphone: string, id: number, options?: AxiosRequestConfig) => Promise<RequestArgs>;
41
43
  /**
42
44
  *
43
45
  * @param {number} id
46
+ * @param {string} apikey
44
47
  * @param {*} [options] Override http request option.
45
48
  * @throws {RequiredError}
46
49
  */
47
- getChat: (id: number, options?: AxiosRequestConfig) => Promise<RequestArgs>;
50
+ getChat: (id: number, apikey: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
48
51
  /**
49
52
  *
50
53
  * @param {number} branchId
54
+ * @param {string} apikey
51
55
  * @param {string} [q]
52
56
  * @param {boolean} [unassigned]
53
57
  * @param {boolean} [unread]
@@ -60,7 +64,7 @@ export declare const ChatsApiAxiosParamCreator: (configuration?: Configuration)
60
64
  * @param {*} [options] Override http request option.
61
65
  * @throws {RequiredError}
62
66
  */
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>;
67
+ 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
68
  /**
65
69
  *
66
70
  * @param {MarkChatUnreadDto} body
@@ -78,29 +82,33 @@ export declare const ChatsApiFp: (configuration?: Configuration) => {
78
82
  /**
79
83
  *
80
84
  * @param {AssignToMeDto} body
85
+ * @param {string} apikey
81
86
  * @param {*} [options] Override http request option.
82
87
  * @throws {RequiredError}
83
88
  */
84
- assignToSeller(body: AssignToMeDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<void>>>;
89
+ assignToSeller(body: AssignToMeDto, apikey: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<void>>>;
85
90
  /**
86
91
  *
87
92
  * @param {AssignmentTypeDto} body
93
+ * @param {string} apikey
88
94
  * @param {string} cellphone
89
95
  * @param {number} id
90
96
  * @param {*} [options] Override http request option.
91
97
  * @throws {RequiredError}
92
98
  */
93
- assignmentType(body: AssignmentTypeDto, cellphone: string, id: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<void>>>;
99
+ assignmentType(body: AssignmentTypeDto, apikey: string, cellphone: string, id: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<void>>>;
94
100
  /**
95
101
  *
96
102
  * @param {number} id
103
+ * @param {string} apikey
97
104
  * @param {*} [options] Override http request option.
98
105
  * @throws {RequiredError}
99
106
  */
100
- getChat(id: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<WhatsappChatResponseDTO>>>;
107
+ getChat(id: number, apikey: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<WhatsappChatResponseDTO>>>;
101
108
  /**
102
109
  *
103
110
  * @param {number} branchId
111
+ * @param {string} apikey
104
112
  * @param {string} [q]
105
113
  * @param {boolean} [unassigned]
106
114
  * @param {boolean} [unread]
@@ -113,7 +121,7 @@ export declare const ChatsApiFp: (configuration?: Configuration) => {
113
121
  * @param {*} [options] Override http request option.
114
122
  * @throws {RequiredError}
115
123
  */
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>>>;
124
+ 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
125
  /**
118
126
  *
119
127
  * @param {MarkChatUnreadDto} body
@@ -131,29 +139,33 @@ export declare const ChatsApiFactory: (configuration?: Configuration, basePath?:
131
139
  /**
132
140
  *
133
141
  * @param {AssignToMeDto} body
142
+ * @param {string} apikey
134
143
  * @param {*} [options] Override http request option.
135
144
  * @throws {RequiredError}
136
145
  */
137
- assignToSeller(body: AssignToMeDto, options?: AxiosRequestConfig): Promise<AxiosResponse<void>>;
146
+ assignToSeller(body: AssignToMeDto, apikey: string, options?: AxiosRequestConfig): Promise<AxiosResponse<void>>;
138
147
  /**
139
148
  *
140
149
  * @param {AssignmentTypeDto} body
150
+ * @param {string} apikey
141
151
  * @param {string} cellphone
142
152
  * @param {number} id
143
153
  * @param {*} [options] Override http request option.
144
154
  * @throws {RequiredError}
145
155
  */
146
- assignmentType(body: AssignmentTypeDto, cellphone: string, id: number, options?: AxiosRequestConfig): Promise<AxiosResponse<void>>;
156
+ assignmentType(body: AssignmentTypeDto, apikey: string, cellphone: string, id: number, options?: AxiosRequestConfig): Promise<AxiosResponse<void>>;
147
157
  /**
148
158
  *
149
159
  * @param {number} id
160
+ * @param {string} apikey
150
161
  * @param {*} [options] Override http request option.
151
162
  * @throws {RequiredError}
152
163
  */
153
- getChat(id: number, options?: AxiosRequestConfig): Promise<AxiosResponse<WhatsappChatResponseDTO>>;
164
+ getChat(id: number, apikey: string, options?: AxiosRequestConfig): Promise<AxiosResponse<WhatsappChatResponseDTO>>;
154
165
  /**
155
166
  *
156
167
  * @param {number} branchId
168
+ * @param {string} apikey
157
169
  * @param {string} [q]
158
170
  * @param {boolean} [unassigned]
159
171
  * @param {boolean} [unread]
@@ -166,7 +178,7 @@ export declare const ChatsApiFactory: (configuration?: Configuration, basePath?:
166
178
  * @param {*} [options] Override http request option.
167
179
  * @throws {RequiredError}
168
180
  */
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>>;
181
+ 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
182
  /**
171
183
  *
172
184
  * @param {MarkChatUnreadDto} body
@@ -186,32 +198,36 @@ export declare class ChatsApi extends BaseAPI {
186
198
  /**
187
199
  *
188
200
  * @param {AssignToMeDto} body
201
+ * @param {string} apikey
189
202
  * @param {*} [options] Override http request option.
190
203
  * @throws {RequiredError}
191
204
  * @memberof ChatsApi
192
205
  */
193
- assignToSeller(body: AssignToMeDto, options?: AxiosRequestConfig): Promise<AxiosResponse<void>>;
206
+ assignToSeller(body: AssignToMeDto, apikey: string, options?: AxiosRequestConfig): Promise<AxiosResponse<void>>;
194
207
  /**
195
208
  *
196
209
  * @param {AssignmentTypeDto} body
210
+ * @param {string} apikey
197
211
  * @param {string} cellphone
198
212
  * @param {number} id
199
213
  * @param {*} [options] Override http request option.
200
214
  * @throws {RequiredError}
201
215
  * @memberof ChatsApi
202
216
  */
203
- assignmentType(body: AssignmentTypeDto, cellphone: string, id: number, options?: AxiosRequestConfig): Promise<AxiosResponse<void>>;
217
+ assignmentType(body: AssignmentTypeDto, apikey: string, cellphone: string, id: number, options?: AxiosRequestConfig): Promise<AxiosResponse<void>>;
204
218
  /**
205
219
  *
206
220
  * @param {number} id
221
+ * @param {string} apikey
207
222
  * @param {*} [options] Override http request option.
208
223
  * @throws {RequiredError}
209
224
  * @memberof ChatsApi
210
225
  */
211
- getChat(id: number, options?: AxiosRequestConfig): Promise<AxiosResponse<WhatsappChatResponseDTO>>;
226
+ getChat(id: number, apikey: string, options?: AxiosRequestConfig): Promise<AxiosResponse<WhatsappChatResponseDTO>>;
212
227
  /**
213
228
  *
214
229
  * @param {number} branchId
230
+ * @param {string} apikey
215
231
  * @param {string} [q]
216
232
  * @param {boolean} [unassigned]
217
233
  * @param {boolean} [unread]
@@ -225,7 +241,7 @@ export declare class ChatsApi extends BaseAPI {
225
241
  * @throws {RequiredError}
226
242
  * @memberof ChatsApi
227
243
  */
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>>;
244
+ 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
245
  /**
230
246
  *
231
247
  * @param {MarkChatUnreadDto} body
@@ -36,14 +36,19 @@ const ChatsApiAxiosParamCreator = function (configuration) {
36
36
  /**
37
37
  *
38
38
  * @param {AssignToMeDto} body
39
+ * @param {string} apikey
39
40
  * @param {*} [options] Override http request option.
40
41
  * @throws {RequiredError}
41
42
  */
42
- assignToSeller: (body_1, ...args_1) => __awaiter(this, [body_1, ...args_1], void 0, function* (body, options = {}) {
43
+ assignToSeller: (body_1, apikey_1, ...args_1) => __awaiter(this, [body_1, apikey_1, ...args_1], void 0, function* (body, apikey, options = {}) {
43
44
  // verify required parameter 'body' is not null or undefined
44
45
  if (body === null || body === undefined) {
45
46
  throw new base_1.RequiredError('body', 'Required parameter body was null or undefined when calling assignToSeller.');
46
47
  }
48
+ // verify required parameter 'apikey' is not null or undefined
49
+ if (apikey === null || apikey === undefined) {
50
+ throw new base_1.RequiredError('apikey', 'Required parameter apikey was null or undefined when calling assignToSeller.');
51
+ }
47
52
  const localVarPath = `/api/chats/assign-to-seller`;
48
53
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
49
54
  const localVarUrlObj = new URL(localVarPath, 'https://example.com');
@@ -54,6 +59,9 @@ const ChatsApiAxiosParamCreator = function (configuration) {
54
59
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
55
60
  const localVarHeaderParameter = {};
56
61
  const localVarQueryParameter = {};
62
+ if (apikey !== undefined && apikey !== null) {
63
+ localVarHeaderParameter['apikey'] = String(apikey);
64
+ }
57
65
  localVarHeaderParameter['Content-Type'] = 'application/json';
58
66
  const query = new URLSearchParams(localVarUrlObj.search);
59
67
  for (const key in localVarQueryParameter) {
@@ -75,16 +83,21 @@ const ChatsApiAxiosParamCreator = function (configuration) {
75
83
  /**
76
84
  *
77
85
  * @param {AssignmentTypeDto} body
86
+ * @param {string} apikey
78
87
  * @param {string} cellphone
79
88
  * @param {number} id
80
89
  * @param {*} [options] Override http request option.
81
90
  * @throws {RequiredError}
82
91
  */
83
- assignmentType: (body_1, cellphone_1, id_1, ...args_1) => __awaiter(this, [body_1, cellphone_1, id_1, ...args_1], void 0, function* (body, cellphone, id, options = {}) {
92
+ assignmentType: (body_1, apikey_1, cellphone_1, id_1, ...args_1) => __awaiter(this, [body_1, apikey_1, cellphone_1, id_1, ...args_1], void 0, function* (body, apikey, cellphone, id, options = {}) {
84
93
  // verify required parameter 'body' is not null or undefined
85
94
  if (body === null || body === undefined) {
86
95
  throw new base_1.RequiredError('body', 'Required parameter body was null or undefined when calling assignmentType.');
87
96
  }
97
+ // verify required parameter 'apikey' is not null or undefined
98
+ if (apikey === null || apikey === undefined) {
99
+ throw new base_1.RequiredError('apikey', 'Required parameter apikey was null or undefined when calling assignmentType.');
100
+ }
88
101
  // verify required parameter 'cellphone' is not null or undefined
89
102
  if (cellphone === null || cellphone === undefined) {
90
103
  throw new base_1.RequiredError('cellphone', 'Required parameter cellphone was null or undefined when calling assignmentType.');
@@ -105,6 +118,9 @@ const ChatsApiAxiosParamCreator = function (configuration) {
105
118
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
106
119
  const localVarHeaderParameter = {};
107
120
  const localVarQueryParameter = {};
121
+ if (apikey !== undefined && apikey !== null) {
122
+ localVarHeaderParameter['apikey'] = String(apikey);
123
+ }
108
124
  localVarHeaderParameter['Content-Type'] = 'application/json';
109
125
  const query = new URLSearchParams(localVarUrlObj.search);
110
126
  for (const key in localVarQueryParameter) {
@@ -126,14 +142,19 @@ const ChatsApiAxiosParamCreator = function (configuration) {
126
142
  /**
127
143
  *
128
144
  * @param {number} id
145
+ * @param {string} apikey
129
146
  * @param {*} [options] Override http request option.
130
147
  * @throws {RequiredError}
131
148
  */
132
- getChat: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
149
+ getChat: (id_1, apikey_1, ...args_1) => __awaiter(this, [id_1, apikey_1, ...args_1], void 0, function* (id, apikey, options = {}) {
133
150
  // verify required parameter 'id' is not null or undefined
134
151
  if (id === null || id === undefined) {
135
152
  throw new base_1.RequiredError('id', 'Required parameter id was null or undefined when calling getChat.');
136
153
  }
154
+ // verify required parameter 'apikey' is not null or undefined
155
+ if (apikey === null || apikey === undefined) {
156
+ throw new base_1.RequiredError('apikey', 'Required parameter apikey was null or undefined when calling getChat.');
157
+ }
137
158
  const localVarPath = `/api/chats/{id}`
138
159
  .replace(`{${"id"}}`, encodeURIComponent(String(id)));
139
160
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -145,6 +166,9 @@ const ChatsApiAxiosParamCreator = function (configuration) {
145
166
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
146
167
  const localVarHeaderParameter = {};
147
168
  const localVarQueryParameter = {};
169
+ if (apikey !== undefined && apikey !== null) {
170
+ localVarHeaderParameter['apikey'] = String(apikey);
171
+ }
148
172
  const query = new URLSearchParams(localVarUrlObj.search);
149
173
  for (const key in localVarQueryParameter) {
150
174
  query.set(key, localVarQueryParameter[key]);
@@ -163,6 +187,7 @@ const ChatsApiAxiosParamCreator = function (configuration) {
163
187
  /**
164
188
  *
165
189
  * @param {number} branchId
190
+ * @param {string} apikey
166
191
  * @param {string} [q]
167
192
  * @param {boolean} [unassigned]
168
193
  * @param {boolean} [unread]
@@ -175,11 +200,15 @@ const ChatsApiAxiosParamCreator = function (configuration) {
175
200
  * @param {*} [options] Override http request option.
176
201
  * @throws {RequiredError}
177
202
  */
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 = {}) {
203
+ 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
204
  // verify required parameter 'branchId' is not null or undefined
180
205
  if (branchId === null || branchId === undefined) {
181
206
  throw new base_1.RequiredError('branchId', 'Required parameter branchId was null or undefined when calling getChats.');
182
207
  }
208
+ // verify required parameter 'apikey' is not null or undefined
209
+ if (apikey === null || apikey === undefined) {
210
+ throw new base_1.RequiredError('apikey', 'Required parameter apikey was null or undefined when calling getChats.');
211
+ }
183
212
  const localVarPath = `/api/chats`;
184
213
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
185
214
  const localVarUrlObj = new URL(localVarPath, 'https://example.com');
@@ -220,6 +249,9 @@ const ChatsApiAxiosParamCreator = function (configuration) {
220
249
  if (assignmentTypeCode !== undefined) {
221
250
  localVarQueryParameter['assignmentTypeCode'] = assignmentTypeCode;
222
251
  }
252
+ if (apikey !== undefined && apikey !== null) {
253
+ localVarHeaderParameter['apikey'] = String(apikey);
254
+ }
223
255
  const query = new URLSearchParams(localVarUrlObj.search);
224
256
  for (const key in localVarQueryParameter) {
225
257
  query.set(key, localVarQueryParameter[key]);
@@ -292,12 +324,13 @@ const ChatsApiFp = function (configuration) {
292
324
  /**
293
325
  *
294
326
  * @param {AssignToMeDto} body
327
+ * @param {string} apikey
295
328
  * @param {*} [options] Override http request option.
296
329
  * @throws {RequiredError}
297
330
  */
298
- assignToSeller(body, options) {
331
+ assignToSeller(body, apikey, options) {
299
332
  return __awaiter(this, void 0, void 0, function* () {
300
- const localVarAxiosArgs = yield (0, exports.ChatsApiAxiosParamCreator)(configuration).assignToSeller(body, options);
333
+ const localVarAxiosArgs = yield (0, exports.ChatsApiAxiosParamCreator)(configuration).assignToSeller(body, apikey, options);
301
334
  return (axios = axios_1.default, basePath = base_1.BASE_PATH) => {
302
335
  const axiosRequestArgs = Object.assign(Object.assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
303
336
  return axios.request(axiosRequestArgs);
@@ -307,14 +340,15 @@ const ChatsApiFp = function (configuration) {
307
340
  /**
308
341
  *
309
342
  * @param {AssignmentTypeDto} body
343
+ * @param {string} apikey
310
344
  * @param {string} cellphone
311
345
  * @param {number} id
312
346
  * @param {*} [options] Override http request option.
313
347
  * @throws {RequiredError}
314
348
  */
315
- assignmentType(body, cellphone, id, options) {
349
+ assignmentType(body, apikey, cellphone, id, options) {
316
350
  return __awaiter(this, void 0, void 0, function* () {
317
- const localVarAxiosArgs = yield (0, exports.ChatsApiAxiosParamCreator)(configuration).assignmentType(body, cellphone, id, options);
351
+ const localVarAxiosArgs = yield (0, exports.ChatsApiAxiosParamCreator)(configuration).assignmentType(body, apikey, cellphone, id, options);
318
352
  return (axios = axios_1.default, basePath = base_1.BASE_PATH) => {
319
353
  const axiosRequestArgs = Object.assign(Object.assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
320
354
  return axios.request(axiosRequestArgs);
@@ -324,12 +358,13 @@ const ChatsApiFp = function (configuration) {
324
358
  /**
325
359
  *
326
360
  * @param {number} id
361
+ * @param {string} apikey
327
362
  * @param {*} [options] Override http request option.
328
363
  * @throws {RequiredError}
329
364
  */
330
- getChat(id, options) {
365
+ getChat(id, apikey, options) {
331
366
  return __awaiter(this, void 0, void 0, function* () {
332
- const localVarAxiosArgs = yield (0, exports.ChatsApiAxiosParamCreator)(configuration).getChat(id, options);
367
+ const localVarAxiosArgs = yield (0, exports.ChatsApiAxiosParamCreator)(configuration).getChat(id, apikey, options);
333
368
  return (axios = axios_1.default, basePath = base_1.BASE_PATH) => {
334
369
  const axiosRequestArgs = Object.assign(Object.assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
335
370
  return axios.request(axiosRequestArgs);
@@ -339,6 +374,7 @@ const ChatsApiFp = function (configuration) {
339
374
  /**
340
375
  *
341
376
  * @param {number} branchId
377
+ * @param {string} apikey
342
378
  * @param {string} [q]
343
379
  * @param {boolean} [unassigned]
344
380
  * @param {boolean} [unread]
@@ -351,9 +387,9 @@ const ChatsApiFp = function (configuration) {
351
387
  * @param {*} [options] Override http request option.
352
388
  * @throws {RequiredError}
353
389
  */
354
- getChats(branchId, q, unassigned, unread, rowsPerPage, currentPage, userId, externallyInitiated, id, assignmentTypeCode, options) {
390
+ getChats(branchId, apikey, q, unassigned, unread, rowsPerPage, currentPage, userId, externallyInitiated, id, assignmentTypeCode, options) {
355
391
  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);
392
+ const localVarAxiosArgs = yield (0, exports.ChatsApiAxiosParamCreator)(configuration).getChats(branchId, apikey, q, unassigned, unread, rowsPerPage, currentPage, userId, externallyInitiated, id, assignmentTypeCode, options);
357
393
  return (axios = axios_1.default, basePath = base_1.BASE_PATH) => {
358
394
  const axiosRequestArgs = Object.assign(Object.assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
359
395
  return axios.request(axiosRequestArgs);
@@ -388,41 +424,45 @@ const ChatsApiFactory = function (configuration, basePath, axios) {
388
424
  /**
389
425
  *
390
426
  * @param {AssignToMeDto} body
427
+ * @param {string} apikey
391
428
  * @param {*} [options] Override http request option.
392
429
  * @throws {RequiredError}
393
430
  */
394
- assignToSeller(body, options) {
431
+ assignToSeller(body, apikey, options) {
395
432
  return __awaiter(this, void 0, void 0, function* () {
396
- return (0, exports.ChatsApiFp)(configuration).assignToSeller(body, options).then((request) => request(axios, basePath));
433
+ return (0, exports.ChatsApiFp)(configuration).assignToSeller(body, apikey, options).then((request) => request(axios, basePath));
397
434
  });
398
435
  },
399
436
  /**
400
437
  *
401
438
  * @param {AssignmentTypeDto} body
439
+ * @param {string} apikey
402
440
  * @param {string} cellphone
403
441
  * @param {number} id
404
442
  * @param {*} [options] Override http request option.
405
443
  * @throws {RequiredError}
406
444
  */
407
- assignmentType(body, cellphone, id, options) {
445
+ assignmentType(body, apikey, cellphone, id, options) {
408
446
  return __awaiter(this, void 0, void 0, function* () {
409
- return (0, exports.ChatsApiFp)(configuration).assignmentType(body, cellphone, id, options).then((request) => request(axios, basePath));
447
+ return (0, exports.ChatsApiFp)(configuration).assignmentType(body, apikey, cellphone, id, options).then((request) => request(axios, basePath));
410
448
  });
411
449
  },
412
450
  /**
413
451
  *
414
452
  * @param {number} id
453
+ * @param {string} apikey
415
454
  * @param {*} [options] Override http request option.
416
455
  * @throws {RequiredError}
417
456
  */
418
- getChat(id, options) {
457
+ getChat(id, apikey, options) {
419
458
  return __awaiter(this, void 0, void 0, function* () {
420
- return (0, exports.ChatsApiFp)(configuration).getChat(id, options).then((request) => request(axios, basePath));
459
+ return (0, exports.ChatsApiFp)(configuration).getChat(id, apikey, options).then((request) => request(axios, basePath));
421
460
  });
422
461
  },
423
462
  /**
424
463
  *
425
464
  * @param {number} branchId
465
+ * @param {string} apikey
426
466
  * @param {string} [q]
427
467
  * @param {boolean} [unassigned]
428
468
  * @param {boolean} [unread]
@@ -435,9 +475,9 @@ const ChatsApiFactory = function (configuration, basePath, axios) {
435
475
  * @param {*} [options] Override http request option.
436
476
  * @throws {RequiredError}
437
477
  */
438
- getChats(branchId, q, unassigned, unread, rowsPerPage, currentPage, userId, externallyInitiated, id, assignmentTypeCode, options) {
478
+ getChats(branchId, apikey, q, unassigned, unread, rowsPerPage, currentPage, userId, externallyInitiated, id, assignmentTypeCode, options) {
439
479
  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));
480
+ return (0, exports.ChatsApiFp)(configuration).getChats(branchId, apikey, q, unassigned, unread, rowsPerPage, currentPage, userId, externallyInitiated, id, assignmentTypeCode, options).then((request) => request(axios, basePath));
441
481
  });
442
482
  },
443
483
  /**
@@ -465,44 +505,48 @@ class ChatsApi extends base_1.BaseAPI {
465
505
  /**
466
506
  *
467
507
  * @param {AssignToMeDto} body
508
+ * @param {string} apikey
468
509
  * @param {*} [options] Override http request option.
469
510
  * @throws {RequiredError}
470
511
  * @memberof ChatsApi
471
512
  */
472
- assignToSeller(body, options) {
513
+ assignToSeller(body, apikey, options) {
473
514
  return __awaiter(this, void 0, void 0, function* () {
474
- return (0, exports.ChatsApiFp)(this.configuration).assignToSeller(body, options).then((request) => request(this.axios, this.basePath));
515
+ return (0, exports.ChatsApiFp)(this.configuration).assignToSeller(body, apikey, options).then((request) => request(this.axios, this.basePath));
475
516
  });
476
517
  }
477
518
  /**
478
519
  *
479
520
  * @param {AssignmentTypeDto} body
521
+ * @param {string} apikey
480
522
  * @param {string} cellphone
481
523
  * @param {number} id
482
524
  * @param {*} [options] Override http request option.
483
525
  * @throws {RequiredError}
484
526
  * @memberof ChatsApi
485
527
  */
486
- assignmentType(body, cellphone, id, options) {
528
+ assignmentType(body, apikey, cellphone, id, options) {
487
529
  return __awaiter(this, void 0, void 0, function* () {
488
- return (0, exports.ChatsApiFp)(this.configuration).assignmentType(body, cellphone, id, options).then((request) => request(this.axios, this.basePath));
530
+ return (0, exports.ChatsApiFp)(this.configuration).assignmentType(body, apikey, cellphone, id, options).then((request) => request(this.axios, this.basePath));
489
531
  });
490
532
  }
491
533
  /**
492
534
  *
493
535
  * @param {number} id
536
+ * @param {string} apikey
494
537
  * @param {*} [options] Override http request option.
495
538
  * @throws {RequiredError}
496
539
  * @memberof ChatsApi
497
540
  */
498
- getChat(id, options) {
541
+ getChat(id, apikey, options) {
499
542
  return __awaiter(this, void 0, void 0, function* () {
500
- return (0, exports.ChatsApiFp)(this.configuration).getChat(id, options).then((request) => request(this.axios, this.basePath));
543
+ return (0, exports.ChatsApiFp)(this.configuration).getChat(id, apikey, options).then((request) => request(this.axios, this.basePath));
501
544
  });
502
545
  }
503
546
  /**
504
547
  *
505
548
  * @param {number} branchId
549
+ * @param {string} apikey
506
550
  * @param {string} [q]
507
551
  * @param {boolean} [unassigned]
508
552
  * @param {boolean} [unread]
@@ -516,9 +560,9 @@ class ChatsApi extends base_1.BaseAPI {
516
560
  * @throws {RequiredError}
517
561
  * @memberof ChatsApi
518
562
  */
519
- getChats(branchId, q, unassigned, unread, rowsPerPage, currentPage, userId, externallyInitiated, id, assignmentTypeCode, options) {
563
+ getChats(branchId, apikey, q, unassigned, unread, rowsPerPage, currentPage, userId, externallyInitiated, id, assignmentTypeCode, options) {
520
564
  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));
565
+ 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
566
  });
523
567
  }
524
568
  /**
@@ -23,17 +23,19 @@ export declare const ContactsApiAxiosParamCreator: (configuration?: Configuratio
23
23
  *
24
24
  * @param {number} cellphone
25
25
  * @param {number} branchId
26
+ * @param {string} apikey
26
27
  * @param {*} [options] Override http request option.
27
28
  * @throws {RequiredError}
28
29
  */
29
- getChatFromCellphone: (cellphone: number, branchId: number, options?: AxiosRequestConfig) => Promise<RequestArgs>;
30
+ getChatFromCellphone: (cellphone: number, branchId: number, apikey: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
30
31
  /**
31
32
  *
32
33
  * @param {number} branchId
34
+ * @param {string} apikey
33
35
  * @param {*} [options] Override http request option.
34
36
  * @throws {RequiredError}
35
37
  */
36
- getContacts: (branchId: number, options?: AxiosRequestConfig) => Promise<RequestArgs>;
38
+ getContacts: (branchId: number, apikey: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
37
39
  };
38
40
  /**
39
41
  * ContactsApi - functional programming interface
@@ -44,17 +46,19 @@ export declare const ContactsApiFp: (configuration?: Configuration) => {
44
46
  *
45
47
  * @param {number} cellphone
46
48
  * @param {number} branchId
49
+ * @param {string} apikey
47
50
  * @param {*} [options] Override http request option.
48
51
  * @throws {RequiredError}
49
52
  */
50
- getChatFromCellphone(cellphone: number, branchId: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<WhatsappChatResponseDTO>>>;
53
+ getChatFromCellphone(cellphone: number, branchId: number, apikey: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<WhatsappChatResponseDTO>>>;
51
54
  /**
52
55
  *
53
56
  * @param {number} branchId
57
+ * @param {string} apikey
54
58
  * @param {*} [options] Override http request option.
55
59
  * @throws {RequiredError}
56
60
  */
57
- getContacts(branchId: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<ContactsResponseDTO>>>;
61
+ getContacts(branchId: number, apikey: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<ContactsResponseDTO>>>;
58
62
  };
59
63
  /**
60
64
  * ContactsApi - factory interface
@@ -65,17 +69,19 @@ export declare const ContactsApiFactory: (configuration?: Configuration, basePat
65
69
  *
66
70
  * @param {number} cellphone
67
71
  * @param {number} branchId
72
+ * @param {string} apikey
68
73
  * @param {*} [options] Override http request option.
69
74
  * @throws {RequiredError}
70
75
  */
71
- getChatFromCellphone(cellphone: number, branchId: number, options?: AxiosRequestConfig): Promise<AxiosResponse<WhatsappChatResponseDTO>>;
76
+ getChatFromCellphone(cellphone: number, branchId: number, apikey: string, options?: AxiosRequestConfig): Promise<AxiosResponse<WhatsappChatResponseDTO>>;
72
77
  /**
73
78
  *
74
79
  * @param {number} branchId
80
+ * @param {string} apikey
75
81
  * @param {*} [options] Override http request option.
76
82
  * @throws {RequiredError}
77
83
  */
78
- getContacts(branchId: number, options?: AxiosRequestConfig): Promise<AxiosResponse<ContactsResponseDTO>>;
84
+ getContacts(branchId: number, apikey: string, options?: AxiosRequestConfig): Promise<AxiosResponse<ContactsResponseDTO>>;
79
85
  };
80
86
  /**
81
87
  * ContactsApi - object-oriented interface
@@ -88,17 +94,19 @@ export declare class ContactsApi extends BaseAPI {
88
94
  *
89
95
  * @param {number} cellphone
90
96
  * @param {number} branchId
97
+ * @param {string} apikey
91
98
  * @param {*} [options] Override http request option.
92
99
  * @throws {RequiredError}
93
100
  * @memberof ContactsApi
94
101
  */
95
- getChatFromCellphone(cellphone: number, branchId: number, options?: AxiosRequestConfig): Promise<AxiosResponse<WhatsappChatResponseDTO>>;
102
+ getChatFromCellphone(cellphone: number, branchId: number, apikey: string, options?: AxiosRequestConfig): Promise<AxiosResponse<WhatsappChatResponseDTO>>;
96
103
  /**
97
104
  *
98
105
  * @param {number} branchId
106
+ * @param {string} apikey
99
107
  * @param {*} [options] Override http request option.
100
108
  * @throws {RequiredError}
101
109
  * @memberof ContactsApi
102
110
  */
103
- getContacts(branchId: number, options?: AxiosRequestConfig): Promise<AxiosResponse<ContactsResponseDTO>>;
111
+ getContacts(branchId: number, apikey: string, options?: AxiosRequestConfig): Promise<AxiosResponse<ContactsResponseDTO>>;
104
112
  }