@libgot/whatsapp-bridge-sdk 1.0.42 → 1.0.43

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.42
1
+ ## @1.0.43
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.42 --save
39
+ npm install @libgot/whatsapp-bridge-sdk@1.0.43 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
package/api.ts CHANGED
@@ -20,5 +20,6 @@ export * from './apis/flows-api';
20
20
  export * from './apis/healthchecks-api';
21
21
  export * from './apis/messages-api';
22
22
  export * from './apis/sessions-api';
23
+ export * from './apis/tasks-api';
23
24
  export * from './apis/users-api';
24
25
 
package/apis/chats-api.ts CHANGED
@@ -21,6 +21,8 @@ import { AssignToMeDto } from '../models';
21
21
  import { AssignmentTypeDto } from '../models';
22
22
  import { MarkChatUnreadDto } from '../models';
23
23
  import { PaginationChatResponseDto } from '../models';
24
+ import { UpdateAgentDto } from '../models';
25
+ import { UpdateChatStatusDto } from '../models';
24
26
  import { WhatsappChatResponseDTO } from '../models';
25
27
  /**
26
28
  * ChatsApi - axios parameter creator
@@ -338,6 +340,108 @@ export const ChatsApiAxiosParamCreator = function (configuration?: Configuration
338
340
  const needsSerialization = (typeof body !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
339
341
  localVarRequestOptions.data = needsSerialization ? JSON.stringify(body !== undefined ? body : {}) : (body || "");
340
342
 
343
+ return {
344
+ url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
345
+ options: localVarRequestOptions,
346
+ };
347
+ },
348
+ /**
349
+ *
350
+ * @param {UpdateAgentDto} body
351
+ * @param {string} apikey
352
+ * @param {*} [options] Override http request option.
353
+ * @throws {RequiredError}
354
+ */
355
+ updateAgent: async (body: UpdateAgentDto, apikey: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
356
+ // verify required parameter 'body' is not null or undefined
357
+ if (body === null || body === undefined) {
358
+ throw new RequiredError('body','Required parameter body was null or undefined when calling updateAgent.');
359
+ }
360
+ // verify required parameter 'apikey' is not null or undefined
361
+ if (apikey === null || apikey === undefined) {
362
+ throw new RequiredError('apikey','Required parameter apikey was null or undefined when calling updateAgent.');
363
+ }
364
+ const localVarPath = `/api/chats/update-agent`;
365
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
366
+ const localVarUrlObj = new URL(localVarPath, 'https://example.com');
367
+ let baseOptions;
368
+ if (configuration) {
369
+ baseOptions = configuration.baseOptions;
370
+ }
371
+ const localVarRequestOptions :AxiosRequestConfig = { method: 'POST', ...baseOptions, ...options};
372
+ const localVarHeaderParameter = {} as any;
373
+ const localVarQueryParameter = {} as any;
374
+
375
+ if (apikey !== undefined && apikey !== null) {
376
+ localVarHeaderParameter['apikey'] = String(apikey);
377
+ }
378
+
379
+ localVarHeaderParameter['Content-Type'] = 'application/json';
380
+
381
+ const query = new URLSearchParams(localVarUrlObj.search);
382
+ for (const key in localVarQueryParameter) {
383
+ query.set(key, localVarQueryParameter[key]);
384
+ }
385
+ for (const key in options.params) {
386
+ query.set(key, options.params[key]);
387
+ }
388
+ localVarUrlObj.search = (new URLSearchParams(query)).toString();
389
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
390
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
391
+ const needsSerialization = (typeof body !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
392
+ localVarRequestOptions.data = needsSerialization ? JSON.stringify(body !== undefined ? body : {}) : (body || "");
393
+
394
+ return {
395
+ url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
396
+ options: localVarRequestOptions,
397
+ };
398
+ },
399
+ /**
400
+ *
401
+ * @param {UpdateChatStatusDto} body
402
+ * @param {string} apikey
403
+ * @param {*} [options] Override http request option.
404
+ * @throws {RequiredError}
405
+ */
406
+ updateChatStatus: async (body: UpdateChatStatusDto, apikey: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
407
+ // verify required parameter 'body' is not null or undefined
408
+ if (body === null || body === undefined) {
409
+ throw new RequiredError('body','Required parameter body was null or undefined when calling updateChatStatus.');
410
+ }
411
+ // verify required parameter 'apikey' is not null or undefined
412
+ if (apikey === null || apikey === undefined) {
413
+ throw new RequiredError('apikey','Required parameter apikey was null or undefined when calling updateChatStatus.');
414
+ }
415
+ const localVarPath = `/api/chats/status`;
416
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
417
+ const localVarUrlObj = new URL(localVarPath, 'https://example.com');
418
+ let baseOptions;
419
+ if (configuration) {
420
+ baseOptions = configuration.baseOptions;
421
+ }
422
+ const localVarRequestOptions :AxiosRequestConfig = { method: 'PATCH', ...baseOptions, ...options};
423
+ const localVarHeaderParameter = {} as any;
424
+ const localVarQueryParameter = {} as any;
425
+
426
+ if (apikey !== undefined && apikey !== null) {
427
+ localVarHeaderParameter['apikey'] = String(apikey);
428
+ }
429
+
430
+ localVarHeaderParameter['Content-Type'] = 'application/json';
431
+
432
+ const query = new URLSearchParams(localVarUrlObj.search);
433
+ for (const key in localVarQueryParameter) {
434
+ query.set(key, localVarQueryParameter[key]);
435
+ }
436
+ for (const key in options.params) {
437
+ query.set(key, options.params[key]);
438
+ }
439
+ localVarUrlObj.search = (new URLSearchParams(query)).toString();
440
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
441
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
442
+ const needsSerialization = (typeof body !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
443
+ localVarRequestOptions.data = needsSerialization ? JSON.stringify(body !== undefined ? body : {}) : (body || "");
444
+
341
445
  return {
342
446
  url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
343
447
  options: localVarRequestOptions,
@@ -434,6 +538,34 @@ export const ChatsApiFp = function(configuration?: Configuration) {
434
538
  return axios.request(axiosRequestArgs);
435
539
  };
436
540
  },
541
+ /**
542
+ *
543
+ * @param {UpdateAgentDto} body
544
+ * @param {string} apikey
545
+ * @param {*} [options] Override http request option.
546
+ * @throws {RequiredError}
547
+ */
548
+ async updateAgent(body: UpdateAgentDto, apikey: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<void>>> {
549
+ const localVarAxiosArgs = await ChatsApiAxiosParamCreator(configuration).updateAgent(body, apikey, options);
550
+ return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
551
+ const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
552
+ return axios.request(axiosRequestArgs);
553
+ };
554
+ },
555
+ /**
556
+ *
557
+ * @param {UpdateChatStatusDto} body
558
+ * @param {string} apikey
559
+ * @param {*} [options] Override http request option.
560
+ * @throws {RequiredError}
561
+ */
562
+ async updateChatStatus(body: UpdateChatStatusDto, apikey: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<void>>> {
563
+ const localVarAxiosArgs = await ChatsApiAxiosParamCreator(configuration).updateChatStatus(body, apikey, options);
564
+ return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
565
+ const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
566
+ return axios.request(axiosRequestArgs);
567
+ };
568
+ },
437
569
  }
438
570
  };
439
571
 
@@ -505,6 +637,26 @@ export const ChatsApiFactory = function (configuration?: Configuration, basePath
505
637
  async markChatUnread(body: MarkChatUnreadDto, apikey: string, id: number, options?: AxiosRequestConfig): Promise<AxiosResponse<void>> {
506
638
  return ChatsApiFp(configuration).markChatUnread(body, apikey, id, options).then((request) => request(axios, basePath));
507
639
  },
640
+ /**
641
+ *
642
+ * @param {UpdateAgentDto} body
643
+ * @param {string} apikey
644
+ * @param {*} [options] Override http request option.
645
+ * @throws {RequiredError}
646
+ */
647
+ async updateAgent(body: UpdateAgentDto, apikey: string, options?: AxiosRequestConfig): Promise<AxiosResponse<void>> {
648
+ return ChatsApiFp(configuration).updateAgent(body, apikey, options).then((request) => request(axios, basePath));
649
+ },
650
+ /**
651
+ *
652
+ * @param {UpdateChatStatusDto} body
653
+ * @param {string} apikey
654
+ * @param {*} [options] Override http request option.
655
+ * @throws {RequiredError}
656
+ */
657
+ async updateChatStatus(body: UpdateChatStatusDto, apikey: string, options?: AxiosRequestConfig): Promise<AxiosResponse<void>> {
658
+ return ChatsApiFp(configuration).updateChatStatus(body, apikey, options).then((request) => request(axios, basePath));
659
+ },
508
660
  };
509
661
  };
510
662
 
@@ -582,4 +734,26 @@ export class ChatsApi extends BaseAPI {
582
734
  public async markChatUnread(body: MarkChatUnreadDto, apikey: string, id: number, options?: AxiosRequestConfig) : Promise<AxiosResponse<void>> {
583
735
  return ChatsApiFp(this.configuration).markChatUnread(body, apikey, id, options).then((request) => request(this.axios, this.basePath));
584
736
  }
737
+ /**
738
+ *
739
+ * @param {UpdateAgentDto} body
740
+ * @param {string} apikey
741
+ * @param {*} [options] Override http request option.
742
+ * @throws {RequiredError}
743
+ * @memberof ChatsApi
744
+ */
745
+ public async updateAgent(body: UpdateAgentDto, apikey: string, options?: AxiosRequestConfig) : Promise<AxiosResponse<void>> {
746
+ return ChatsApiFp(this.configuration).updateAgent(body, apikey, options).then((request) => request(this.axios, this.basePath));
747
+ }
748
+ /**
749
+ *
750
+ * @param {UpdateChatStatusDto} body
751
+ * @param {string} apikey
752
+ * @param {*} [options] Override http request option.
753
+ * @throws {RequiredError}
754
+ * @memberof ChatsApi
755
+ */
756
+ public async updateChatStatus(body: UpdateChatStatusDto, apikey: string, options?: AxiosRequestConfig) : Promise<AxiosResponse<void>> {
757
+ return ChatsApiFp(this.configuration).updateChatStatus(body, apikey, options).then((request) => request(this.axios, this.basePath));
758
+ }
585
759
  }
@@ -25,6 +25,54 @@ import { SessionsResponseDataDto } from '../models';
25
25
  */
26
26
  export const SessionsApiAxiosParamCreator = function (configuration?: Configuration) {
27
27
  return {
28
+ /**
29
+ *
30
+ * @param {number} chatId
31
+ * @param {string} apikey
32
+ * @param {*} [options] Override http request option.
33
+ * @throws {RequiredError}
34
+ */
35
+ getCurrentSessionByChatId: async (chatId: number, apikey: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
36
+ // verify required parameter 'chatId' is not null or undefined
37
+ if (chatId === null || chatId === undefined) {
38
+ throw new RequiredError('chatId','Required parameter chatId was null or undefined when calling getCurrentSessionByChatId.');
39
+ }
40
+ // verify required parameter 'apikey' is not null or undefined
41
+ if (apikey === null || apikey === undefined) {
42
+ throw new RequiredError('apikey','Required parameter apikey was null or undefined when calling getCurrentSessionByChatId.');
43
+ }
44
+ const localVarPath = `/api/sessions/chat/{chatId}`
45
+ .replace(`{${"chatId"}}`, encodeURIComponent(String(chatId)));
46
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
47
+ const localVarUrlObj = new URL(localVarPath, 'https://example.com');
48
+ let baseOptions;
49
+ if (configuration) {
50
+ baseOptions = configuration.baseOptions;
51
+ }
52
+ const localVarRequestOptions :AxiosRequestConfig = { method: 'GET', ...baseOptions, ...options};
53
+ const localVarHeaderParameter = {} as any;
54
+ const localVarQueryParameter = {} as any;
55
+
56
+ if (apikey !== undefined && apikey !== null) {
57
+ localVarHeaderParameter['apikey'] = String(apikey);
58
+ }
59
+
60
+ const query = new URLSearchParams(localVarUrlObj.search);
61
+ for (const key in localVarQueryParameter) {
62
+ query.set(key, localVarQueryParameter[key]);
63
+ }
64
+ for (const key in options.params) {
65
+ query.set(key, options.params[key]);
66
+ }
67
+ localVarUrlObj.search = (new URLSearchParams(query)).toString();
68
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
69
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
70
+
71
+ return {
72
+ url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
73
+ options: localVarRequestOptions,
74
+ };
75
+ },
28
76
  /**
29
77
  *
30
78
  * @param {string} sessionUuid
@@ -133,6 +181,20 @@ export const SessionsApiAxiosParamCreator = function (configuration?: Configurat
133
181
  */
134
182
  export const SessionsApiFp = function(configuration?: Configuration) {
135
183
  return {
184
+ /**
185
+ *
186
+ * @param {number} chatId
187
+ * @param {string} apikey
188
+ * @param {*} [options] Override http request option.
189
+ * @throws {RequiredError}
190
+ */
191
+ async getCurrentSessionByChatId(chatId: number, apikey: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<SessionResponseDataDto>>> {
192
+ const localVarAxiosArgs = await SessionsApiAxiosParamCreator(configuration).getCurrentSessionByChatId(chatId, apikey, options);
193
+ return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
194
+ const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
195
+ return axios.request(axiosRequestArgs);
196
+ };
197
+ },
136
198
  /**
137
199
  *
138
200
  * @param {string} sessionUuid
@@ -170,6 +232,16 @@ export const SessionsApiFp = function(configuration?: Configuration) {
170
232
  */
171
233
  export const SessionsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
172
234
  return {
235
+ /**
236
+ *
237
+ * @param {number} chatId
238
+ * @param {string} apikey
239
+ * @param {*} [options] Override http request option.
240
+ * @throws {RequiredError}
241
+ */
242
+ async getCurrentSessionByChatId(chatId: number, apikey: string, options?: AxiosRequestConfig): Promise<AxiosResponse<SessionResponseDataDto>> {
243
+ return SessionsApiFp(configuration).getCurrentSessionByChatId(chatId, apikey, options).then((request) => request(axios, basePath));
244
+ },
173
245
  /**
174
246
  *
175
247
  * @param {string} sessionUuid
@@ -200,6 +272,17 @@ export const SessionsApiFactory = function (configuration?: Configuration, baseP
200
272
  * @extends {BaseAPI}
201
273
  */
202
274
  export class SessionsApi extends BaseAPI {
275
+ /**
276
+ *
277
+ * @param {number} chatId
278
+ * @param {string} apikey
279
+ * @param {*} [options] Override http request option.
280
+ * @throws {RequiredError}
281
+ * @memberof SessionsApi
282
+ */
283
+ public async getCurrentSessionByChatId(chatId: number, apikey: string, options?: AxiosRequestConfig) : Promise<AxiosResponse<SessionResponseDataDto>> {
284
+ return SessionsApiFp(this.configuration).getCurrentSessionByChatId(chatId, apikey, options).then((request) => request(this.axios, this.basePath));
285
+ }
203
286
  /**
204
287
  *
205
288
  * @param {string} sessionUuid
@@ -0,0 +1,141 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * whatsapp-bridge Node Api
5
+ * The whatsapp-bridge API description
6
+ *
7
+ * OpenAPI spec version: 0.0.1
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by the swagger code generator program.
11
+ * https://github.com/swagger-api/swagger-codegen.git
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import globalAxios, { AxiosResponse, AxiosInstance, AxiosRequestConfig } from 'axios';
16
+ import { Configuration } from '../configuration';
17
+ // Some imports not used depending on template conditions
18
+ // @ts-ignore
19
+ import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
20
+ import { RepairMissingMessageKeysDto } from '../models';
21
+ /**
22
+ * TasksApi - axios parameter creator
23
+ * @export
24
+ */
25
+ export const TasksApiAxiosParamCreator = function (configuration?: Configuration) {
26
+ return {
27
+ /**
28
+ *
29
+ * @param {RepairMissingMessageKeysDto} body
30
+ * @param {string} apikey
31
+ * @param {*} [options] Override http request option.
32
+ * @throws {RequiredError}
33
+ */
34
+ repairMissingMessageKeys: async (body: RepairMissingMessageKeysDto, apikey: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
35
+ // verify required parameter 'body' is not null or undefined
36
+ if (body === null || body === undefined) {
37
+ throw new RequiredError('body','Required parameter body was null or undefined when calling repairMissingMessageKeys.');
38
+ }
39
+ // verify required parameter 'apikey' is not null or undefined
40
+ if (apikey === null || apikey === undefined) {
41
+ throw new RequiredError('apikey','Required parameter apikey was null or undefined when calling repairMissingMessageKeys.');
42
+ }
43
+ const localVarPath = `/api/tasks/repair-missing-message-keys`;
44
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
45
+ const localVarUrlObj = new URL(localVarPath, 'https://example.com');
46
+ let baseOptions;
47
+ if (configuration) {
48
+ baseOptions = configuration.baseOptions;
49
+ }
50
+ const localVarRequestOptions :AxiosRequestConfig = { method: 'POST', ...baseOptions, ...options};
51
+ const localVarHeaderParameter = {} as any;
52
+ const localVarQueryParameter = {} as any;
53
+
54
+ if (apikey !== undefined && apikey !== null) {
55
+ localVarHeaderParameter['apikey'] = String(apikey);
56
+ }
57
+
58
+ localVarHeaderParameter['Content-Type'] = 'application/json';
59
+
60
+ const query = new URLSearchParams(localVarUrlObj.search);
61
+ for (const key in localVarQueryParameter) {
62
+ query.set(key, localVarQueryParameter[key]);
63
+ }
64
+ for (const key in options.params) {
65
+ query.set(key, options.params[key]);
66
+ }
67
+ localVarUrlObj.search = (new URLSearchParams(query)).toString();
68
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
69
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
70
+ const needsSerialization = (typeof body !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
71
+ localVarRequestOptions.data = needsSerialization ? JSON.stringify(body !== undefined ? body : {}) : (body || "");
72
+
73
+ return {
74
+ url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
75
+ options: localVarRequestOptions,
76
+ };
77
+ },
78
+ }
79
+ };
80
+
81
+ /**
82
+ * TasksApi - functional programming interface
83
+ * @export
84
+ */
85
+ export const TasksApiFp = function(configuration?: Configuration) {
86
+ return {
87
+ /**
88
+ *
89
+ * @param {RepairMissingMessageKeysDto} body
90
+ * @param {string} apikey
91
+ * @param {*} [options] Override http request option.
92
+ * @throws {RequiredError}
93
+ */
94
+ async repairMissingMessageKeys(body: RepairMissingMessageKeysDto, apikey: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<void>>> {
95
+ const localVarAxiosArgs = await TasksApiAxiosParamCreator(configuration).repairMissingMessageKeys(body, apikey, options);
96
+ return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
97
+ const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
98
+ return axios.request(axiosRequestArgs);
99
+ };
100
+ },
101
+ }
102
+ };
103
+
104
+ /**
105
+ * TasksApi - factory interface
106
+ * @export
107
+ */
108
+ export const TasksApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
109
+ return {
110
+ /**
111
+ *
112
+ * @param {RepairMissingMessageKeysDto} body
113
+ * @param {string} apikey
114
+ * @param {*} [options] Override http request option.
115
+ * @throws {RequiredError}
116
+ */
117
+ async repairMissingMessageKeys(body: RepairMissingMessageKeysDto, apikey: string, options?: AxiosRequestConfig): Promise<AxiosResponse<void>> {
118
+ return TasksApiFp(configuration).repairMissingMessageKeys(body, apikey, options).then((request) => request(axios, basePath));
119
+ },
120
+ };
121
+ };
122
+
123
+ /**
124
+ * TasksApi - object-oriented interface
125
+ * @export
126
+ * @class TasksApi
127
+ * @extends {BaseAPI}
128
+ */
129
+ export class TasksApi extends BaseAPI {
130
+ /**
131
+ *
132
+ * @param {RepairMissingMessageKeysDto} body
133
+ * @param {string} apikey
134
+ * @param {*} [options] Override http request option.
135
+ * @throws {RequiredError}
136
+ * @memberof TasksApi
137
+ */
138
+ public async repairMissingMessageKeys(body: RepairMissingMessageKeysDto, apikey: string, options?: AxiosRequestConfig) : Promise<AxiosResponse<void>> {
139
+ return TasksApiFp(this.configuration).repairMissingMessageKeys(body, apikey, options).then((request) => request(this.axios, this.basePath));
140
+ }
141
+ }
package/dist/api.d.ts CHANGED
@@ -18,4 +18,5 @@ export * from './apis/flows-api';
18
18
  export * from './apis/healthchecks-api';
19
19
  export * from './apis/messages-api';
20
20
  export * from './apis/sessions-api';
21
+ export * from './apis/tasks-api';
21
22
  export * from './apis/users-api';
package/dist/api.js CHANGED
@@ -36,4 +36,5 @@ __exportStar(require("./apis/flows-api"), exports);
36
36
  __exportStar(require("./apis/healthchecks-api"), exports);
37
37
  __exportStar(require("./apis/messages-api"), exports);
38
38
  __exportStar(require("./apis/sessions-api"), exports);
39
+ __exportStar(require("./apis/tasks-api"), exports);
39
40
  __exportStar(require("./apis/users-api"), exports);
@@ -16,6 +16,8 @@ import { AssignToMeDto } from '../models';
16
16
  import { AssignmentTypeDto } from '../models';
17
17
  import { MarkChatUnreadDto } from '../models';
18
18
  import { PaginationChatResponseDto } from '../models';
19
+ import { UpdateAgentDto } from '../models';
20
+ import { UpdateChatStatusDto } from '../models';
19
21
  import { WhatsappChatResponseDTO } from '../models';
20
22
  /**
21
23
  * ChatsApi - axios parameter creator
@@ -74,6 +76,22 @@ export declare const ChatsApiAxiosParamCreator: (configuration?: Configuration)
74
76
  * @throws {RequiredError}
75
77
  */
76
78
  markChatUnread: (body: MarkChatUnreadDto, apikey: string, id: number, options?: AxiosRequestConfig) => Promise<RequestArgs>;
79
+ /**
80
+ *
81
+ * @param {UpdateAgentDto} body
82
+ * @param {string} apikey
83
+ * @param {*} [options] Override http request option.
84
+ * @throws {RequiredError}
85
+ */
86
+ updateAgent: (body: UpdateAgentDto, apikey: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
87
+ /**
88
+ *
89
+ * @param {UpdateChatStatusDto} body
90
+ * @param {string} apikey
91
+ * @param {*} [options] Override http request option.
92
+ * @throws {RequiredError}
93
+ */
94
+ updateChatStatus: (body: UpdateChatStatusDto, apikey: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
77
95
  };
78
96
  /**
79
97
  * ChatsApi - functional programming interface
@@ -132,6 +150,22 @@ export declare const ChatsApiFp: (configuration?: Configuration) => {
132
150
  * @throws {RequiredError}
133
151
  */
134
152
  markChatUnread(body: MarkChatUnreadDto, apikey: string, id: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<void>>>;
153
+ /**
154
+ *
155
+ * @param {UpdateAgentDto} body
156
+ * @param {string} apikey
157
+ * @param {*} [options] Override http request option.
158
+ * @throws {RequiredError}
159
+ */
160
+ updateAgent(body: UpdateAgentDto, apikey: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<void>>>;
161
+ /**
162
+ *
163
+ * @param {UpdateChatStatusDto} body
164
+ * @param {string} apikey
165
+ * @param {*} [options] Override http request option.
166
+ * @throws {RequiredError}
167
+ */
168
+ updateChatStatus(body: UpdateChatStatusDto, apikey: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<void>>>;
135
169
  };
136
170
  /**
137
171
  * ChatsApi - factory interface
@@ -190,6 +224,22 @@ export declare const ChatsApiFactory: (configuration?: Configuration, basePath?:
190
224
  * @throws {RequiredError}
191
225
  */
192
226
  markChatUnread(body: MarkChatUnreadDto, apikey: string, id: number, options?: AxiosRequestConfig): Promise<AxiosResponse<void>>;
227
+ /**
228
+ *
229
+ * @param {UpdateAgentDto} body
230
+ * @param {string} apikey
231
+ * @param {*} [options] Override http request option.
232
+ * @throws {RequiredError}
233
+ */
234
+ updateAgent(body: UpdateAgentDto, apikey: string, options?: AxiosRequestConfig): Promise<AxiosResponse<void>>;
235
+ /**
236
+ *
237
+ * @param {UpdateChatStatusDto} body
238
+ * @param {string} apikey
239
+ * @param {*} [options] Override http request option.
240
+ * @throws {RequiredError}
241
+ */
242
+ updateChatStatus(body: UpdateChatStatusDto, apikey: string, options?: AxiosRequestConfig): Promise<AxiosResponse<void>>;
193
243
  };
194
244
  /**
195
245
  * ChatsApi - object-oriented interface
@@ -255,4 +305,22 @@ export declare class ChatsApi extends BaseAPI {
255
305
  * @memberof ChatsApi
256
306
  */
257
307
  markChatUnread(body: MarkChatUnreadDto, apikey: string, id: number, options?: AxiosRequestConfig): Promise<AxiosResponse<void>>;
308
+ /**
309
+ *
310
+ * @param {UpdateAgentDto} body
311
+ * @param {string} apikey
312
+ * @param {*} [options] Override http request option.
313
+ * @throws {RequiredError}
314
+ * @memberof ChatsApi
315
+ */
316
+ updateAgent(body: UpdateAgentDto, apikey: string, options?: AxiosRequestConfig): Promise<AxiosResponse<void>>;
317
+ /**
318
+ *
319
+ * @param {UpdateChatStatusDto} body
320
+ * @param {string} apikey
321
+ * @param {*} [options] Override http request option.
322
+ * @throws {RequiredError}
323
+ * @memberof ChatsApi
324
+ */
325
+ updateChatStatus(body: UpdateChatStatusDto, apikey: string, options?: AxiosRequestConfig): Promise<AxiosResponse<void>>;
258
326
  }