@libgot/whatsapp-bridge-sdk 1.0.43 → 1.0.44-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.
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @1.0.43
1
+ ## @1.0.44-rc.2
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,8 @@ 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.43 --save
39
+ npm install @libgot/whatsapp-bridge-sdk@1.0.44-rc.2 --save
40
+ pnpm add @libgot/whatsapp-bridge-sdk@1.0.44-rc.2
40
41
  ```
41
42
 
42
43
  _unPublished (not recommended):_
package/apis/chats-api.ts CHANGED
@@ -19,6 +19,10 @@ import { Configuration } from '../configuration';
19
19
  import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
20
20
  import { AssignToMeDto } from '../models';
21
21
  import { AssignmentTypeDto } from '../models';
22
+ import { ChatLatestStatusDto } from '../models';
23
+ import { ChatLifecycleEventDto } from '../models';
24
+ import { ChatLifecycleEventsResponseDto } from '../models';
25
+ import { CreateChatLifecycleEventDto } from '../models';
22
26
  import { MarkChatUnreadDto } from '../models';
23
27
  import { PaginationChatResponseDto } from '../models';
24
28
  import { UpdateAgentDto } from '../models';
@@ -144,6 +148,72 @@ export const ChatsApiAxiosParamCreator = function (configuration?: Configuration
144
148
  options: localVarRequestOptions,
145
149
  };
146
150
  },
151
+ /**
152
+ *
153
+ * @param {CreateChatLifecycleEventDto} body
154
+ * @param {string} apikey
155
+ * @param {number} branchId
156
+ * @param {number} id
157
+ * @param {*} [options] Override http request option.
158
+ * @throws {RequiredError}
159
+ */
160
+ createChatEvent: async (body: CreateChatLifecycleEventDto, apikey: string, branchId: number, id: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
161
+ // verify required parameter 'body' is not null or undefined
162
+ if (body === null || body === undefined) {
163
+ throw new RequiredError('body','Required parameter body was null or undefined when calling createChatEvent.');
164
+ }
165
+ // verify required parameter 'apikey' is not null or undefined
166
+ if (apikey === null || apikey === undefined) {
167
+ throw new RequiredError('apikey','Required parameter apikey was null or undefined when calling createChatEvent.');
168
+ }
169
+ // verify required parameter 'branchId' is not null or undefined
170
+ if (branchId === null || branchId === undefined) {
171
+ throw new RequiredError('branchId','Required parameter branchId was null or undefined when calling createChatEvent.');
172
+ }
173
+ // verify required parameter 'id' is not null or undefined
174
+ if (id === null || id === undefined) {
175
+ throw new RequiredError('id','Required parameter id was null or undefined when calling createChatEvent.');
176
+ }
177
+ const localVarPath = `/api/chats/{id}/events`
178
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
179
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
180
+ const localVarUrlObj = new URL(localVarPath, 'https://example.com');
181
+ let baseOptions;
182
+ if (configuration) {
183
+ baseOptions = configuration.baseOptions;
184
+ }
185
+ const localVarRequestOptions :AxiosRequestConfig = { method: 'POST', ...baseOptions, ...options};
186
+ const localVarHeaderParameter = {} as any;
187
+ const localVarQueryParameter = {} as any;
188
+
189
+ if (branchId !== undefined) {
190
+ localVarQueryParameter['branchId'] = branchId;
191
+ }
192
+
193
+ if (apikey !== undefined && apikey !== null) {
194
+ localVarHeaderParameter['apikey'] = String(apikey);
195
+ }
196
+
197
+ localVarHeaderParameter['Content-Type'] = 'application/json';
198
+
199
+ const query = new URLSearchParams(localVarUrlObj.search);
200
+ for (const key in localVarQueryParameter) {
201
+ query.set(key, localVarQueryParameter[key]);
202
+ }
203
+ for (const key in options.params) {
204
+ query.set(key, options.params[key]);
205
+ }
206
+ localVarUrlObj.search = (new URLSearchParams(query)).toString();
207
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
208
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
209
+ const needsSerialization = (typeof body !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
210
+ localVarRequestOptions.data = needsSerialization ? JSON.stringify(body !== undefined ? body : {}) : (body || "");
211
+
212
+ return {
213
+ url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
214
+ options: localVarRequestOptions,
215
+ };
216
+ },
147
217
  /**
148
218
  *
149
219
  * @param {number} id
@@ -192,6 +262,120 @@ export const ChatsApiAxiosParamCreator = function (configuration?: Configuration
192
262
  options: localVarRequestOptions,
193
263
  };
194
264
  },
265
+ /**
266
+ *
267
+ * @param {number} id
268
+ * @param {number} branchId
269
+ * @param {string} apikey
270
+ * @param {*} [options] Override http request option.
271
+ * @throws {RequiredError}
272
+ */
273
+ getChatEvents: async (id: number, branchId: number, apikey: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
274
+ // verify required parameter 'id' is not null or undefined
275
+ if (id === null || id === undefined) {
276
+ throw new RequiredError('id','Required parameter id was null or undefined when calling getChatEvents.');
277
+ }
278
+ // verify required parameter 'branchId' is not null or undefined
279
+ if (branchId === null || branchId === undefined) {
280
+ throw new RequiredError('branchId','Required parameter branchId was null or undefined when calling getChatEvents.');
281
+ }
282
+ // verify required parameter 'apikey' is not null or undefined
283
+ if (apikey === null || apikey === undefined) {
284
+ throw new RequiredError('apikey','Required parameter apikey was null or undefined when calling getChatEvents.');
285
+ }
286
+ const localVarPath = `/api/chats/{id}/events`
287
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
288
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
289
+ const localVarUrlObj = new URL(localVarPath, 'https://example.com');
290
+ let baseOptions;
291
+ if (configuration) {
292
+ baseOptions = configuration.baseOptions;
293
+ }
294
+ const localVarRequestOptions :AxiosRequestConfig = { method: 'GET', ...baseOptions, ...options};
295
+ const localVarHeaderParameter = {} as any;
296
+ const localVarQueryParameter = {} as any;
297
+
298
+ if (branchId !== undefined) {
299
+ localVarQueryParameter['branchId'] = branchId;
300
+ }
301
+
302
+ if (apikey !== undefined && apikey !== null) {
303
+ localVarHeaderParameter['apikey'] = String(apikey);
304
+ }
305
+
306
+ const query = new URLSearchParams(localVarUrlObj.search);
307
+ for (const key in localVarQueryParameter) {
308
+ query.set(key, localVarQueryParameter[key]);
309
+ }
310
+ for (const key in options.params) {
311
+ query.set(key, options.params[key]);
312
+ }
313
+ localVarUrlObj.search = (new URLSearchParams(query)).toString();
314
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
315
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
316
+
317
+ return {
318
+ url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
319
+ options: localVarRequestOptions,
320
+ };
321
+ },
322
+ /**
323
+ *
324
+ * @param {number} id
325
+ * @param {number} branchId
326
+ * @param {string} apikey
327
+ * @param {*} [options] Override http request option.
328
+ * @throws {RequiredError}
329
+ */
330
+ getChatLatestStatus: async (id: number, branchId: number, apikey: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
331
+ // verify required parameter 'id' is not null or undefined
332
+ if (id === null || id === undefined) {
333
+ throw new RequiredError('id','Required parameter id was null or undefined when calling getChatLatestStatus.');
334
+ }
335
+ // verify required parameter 'branchId' is not null or undefined
336
+ if (branchId === null || branchId === undefined) {
337
+ throw new RequiredError('branchId','Required parameter branchId was null or undefined when calling getChatLatestStatus.');
338
+ }
339
+ // verify required parameter 'apikey' is not null or undefined
340
+ if (apikey === null || apikey === undefined) {
341
+ throw new RequiredError('apikey','Required parameter apikey was null or undefined when calling getChatLatestStatus.');
342
+ }
343
+ const localVarPath = `/api/chats/{id}/latest-status`
344
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
345
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
346
+ const localVarUrlObj = new URL(localVarPath, 'https://example.com');
347
+ let baseOptions;
348
+ if (configuration) {
349
+ baseOptions = configuration.baseOptions;
350
+ }
351
+ const localVarRequestOptions :AxiosRequestConfig = { method: 'GET', ...baseOptions, ...options};
352
+ const localVarHeaderParameter = {} as any;
353
+ const localVarQueryParameter = {} as any;
354
+
355
+ if (branchId !== undefined) {
356
+ localVarQueryParameter['branchId'] = branchId;
357
+ }
358
+
359
+ if (apikey !== undefined && apikey !== null) {
360
+ localVarHeaderParameter['apikey'] = String(apikey);
361
+ }
362
+
363
+ const query = new URLSearchParams(localVarUrlObj.search);
364
+ for (const key in localVarQueryParameter) {
365
+ query.set(key, localVarQueryParameter[key]);
366
+ }
367
+ for (const key in options.params) {
368
+ query.set(key, options.params[key]);
369
+ }
370
+ localVarUrlObj.search = (new URLSearchParams(query)).toString();
371
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
372
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
373
+
374
+ return {
375
+ url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
376
+ options: localVarRequestOptions,
377
+ };
378
+ },
195
379
  /**
196
380
  *
197
381
  * @param {number} branchId
@@ -486,6 +670,22 @@ export const ChatsApiFp = function(configuration?: Configuration) {
486
670
  return axios.request(axiosRequestArgs);
487
671
  };
488
672
  },
673
+ /**
674
+ *
675
+ * @param {CreateChatLifecycleEventDto} body
676
+ * @param {string} apikey
677
+ * @param {number} branchId
678
+ * @param {number} id
679
+ * @param {*} [options] Override http request option.
680
+ * @throws {RequiredError}
681
+ */
682
+ async createChatEvent(body: CreateChatLifecycleEventDto, apikey: string, branchId: number, id: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<ChatLifecycleEventDto>>> {
683
+ const localVarAxiosArgs = await ChatsApiAxiosParamCreator(configuration).createChatEvent(body, apikey, branchId, id, options);
684
+ return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
685
+ const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
686
+ return axios.request(axiosRequestArgs);
687
+ };
688
+ },
489
689
  /**
490
690
  *
491
691
  * @param {number} id
@@ -500,6 +700,36 @@ export const ChatsApiFp = function(configuration?: Configuration) {
500
700
  return axios.request(axiosRequestArgs);
501
701
  };
502
702
  },
703
+ /**
704
+ *
705
+ * @param {number} id
706
+ * @param {number} branchId
707
+ * @param {string} apikey
708
+ * @param {*} [options] Override http request option.
709
+ * @throws {RequiredError}
710
+ */
711
+ async getChatEvents(id: number, branchId: number, apikey: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<ChatLifecycleEventsResponseDto>>> {
712
+ const localVarAxiosArgs = await ChatsApiAxiosParamCreator(configuration).getChatEvents(id, branchId, apikey, options);
713
+ return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
714
+ const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
715
+ return axios.request(axiosRequestArgs);
716
+ };
717
+ },
718
+ /**
719
+ *
720
+ * @param {number} id
721
+ * @param {number} branchId
722
+ * @param {string} apikey
723
+ * @param {*} [options] Override http request option.
724
+ * @throws {RequiredError}
725
+ */
726
+ async getChatLatestStatus(id: number, branchId: number, apikey: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<ChatLatestStatusDto>>> {
727
+ const localVarAxiosArgs = await ChatsApiAxiosParamCreator(configuration).getChatLatestStatus(id, branchId, apikey, options);
728
+ return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
729
+ const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
730
+ return axios.request(axiosRequestArgs);
731
+ };
732
+ },
503
733
  /**
504
734
  *
505
735
  * @param {number} branchId
@@ -597,6 +827,18 @@ export const ChatsApiFactory = function (configuration?: Configuration, basePath
597
827
  async assignmentType(body: AssignmentTypeDto, apikey: string, cellphone: string, id: number, options?: AxiosRequestConfig): Promise<AxiosResponse<void>> {
598
828
  return ChatsApiFp(configuration).assignmentType(body, apikey, cellphone, id, options).then((request) => request(axios, basePath));
599
829
  },
830
+ /**
831
+ *
832
+ * @param {CreateChatLifecycleEventDto} body
833
+ * @param {string} apikey
834
+ * @param {number} branchId
835
+ * @param {number} id
836
+ * @param {*} [options] Override http request option.
837
+ * @throws {RequiredError}
838
+ */
839
+ async createChatEvent(body: CreateChatLifecycleEventDto, apikey: string, branchId: number, id: number, options?: AxiosRequestConfig): Promise<AxiosResponse<ChatLifecycleEventDto>> {
840
+ return ChatsApiFp(configuration).createChatEvent(body, apikey, branchId, id, options).then((request) => request(axios, basePath));
841
+ },
600
842
  /**
601
843
  *
602
844
  * @param {number} id
@@ -607,6 +849,28 @@ export const ChatsApiFactory = function (configuration?: Configuration, basePath
607
849
  async getChat(id: number, apikey: string, options?: AxiosRequestConfig): Promise<AxiosResponse<WhatsappChatResponseDTO>> {
608
850
  return ChatsApiFp(configuration).getChat(id, apikey, options).then((request) => request(axios, basePath));
609
851
  },
852
+ /**
853
+ *
854
+ * @param {number} id
855
+ * @param {number} branchId
856
+ * @param {string} apikey
857
+ * @param {*} [options] Override http request option.
858
+ * @throws {RequiredError}
859
+ */
860
+ async getChatEvents(id: number, branchId: number, apikey: string, options?: AxiosRequestConfig): Promise<AxiosResponse<ChatLifecycleEventsResponseDto>> {
861
+ return ChatsApiFp(configuration).getChatEvents(id, branchId, apikey, options).then((request) => request(axios, basePath));
862
+ },
863
+ /**
864
+ *
865
+ * @param {number} id
866
+ * @param {number} branchId
867
+ * @param {string} apikey
868
+ * @param {*} [options] Override http request option.
869
+ * @throws {RequiredError}
870
+ */
871
+ async getChatLatestStatus(id: number, branchId: number, apikey: string, options?: AxiosRequestConfig): Promise<AxiosResponse<ChatLatestStatusDto>> {
872
+ return ChatsApiFp(configuration).getChatLatestStatus(id, branchId, apikey, options).then((request) => request(axios, basePath));
873
+ },
610
874
  /**
611
875
  *
612
876
  * @param {number} branchId
@@ -691,6 +955,19 @@ export class ChatsApi extends BaseAPI {
691
955
  public async assignmentType(body: AssignmentTypeDto, apikey: string, cellphone: string, id: number, options?: AxiosRequestConfig) : Promise<AxiosResponse<void>> {
692
956
  return ChatsApiFp(this.configuration).assignmentType(body, apikey, cellphone, id, options).then((request) => request(this.axios, this.basePath));
693
957
  }
958
+ /**
959
+ *
960
+ * @param {CreateChatLifecycleEventDto} body
961
+ * @param {string} apikey
962
+ * @param {number} branchId
963
+ * @param {number} id
964
+ * @param {*} [options] Override http request option.
965
+ * @throws {RequiredError}
966
+ * @memberof ChatsApi
967
+ */
968
+ public async createChatEvent(body: CreateChatLifecycleEventDto, apikey: string, branchId: number, id: number, options?: AxiosRequestConfig) : Promise<AxiosResponse<ChatLifecycleEventDto>> {
969
+ return ChatsApiFp(this.configuration).createChatEvent(body, apikey, branchId, id, options).then((request) => request(this.axios, this.basePath));
970
+ }
694
971
  /**
695
972
  *
696
973
  * @param {number} id
@@ -702,6 +979,30 @@ export class ChatsApi extends BaseAPI {
702
979
  public async getChat(id: number, apikey: string, options?: AxiosRequestConfig) : Promise<AxiosResponse<WhatsappChatResponseDTO>> {
703
980
  return ChatsApiFp(this.configuration).getChat(id, apikey, options).then((request) => request(this.axios, this.basePath));
704
981
  }
982
+ /**
983
+ *
984
+ * @param {number} id
985
+ * @param {number} branchId
986
+ * @param {string} apikey
987
+ * @param {*} [options] Override http request option.
988
+ * @throws {RequiredError}
989
+ * @memberof ChatsApi
990
+ */
991
+ public async getChatEvents(id: number, branchId: number, apikey: string, options?: AxiosRequestConfig) : Promise<AxiosResponse<ChatLifecycleEventsResponseDto>> {
992
+ return ChatsApiFp(this.configuration).getChatEvents(id, branchId, apikey, options).then((request) => request(this.axios, this.basePath));
993
+ }
994
+ /**
995
+ *
996
+ * @param {number} id
997
+ * @param {number} branchId
998
+ * @param {string} apikey
999
+ * @param {*} [options] Override http request option.
1000
+ * @throws {RequiredError}
1001
+ * @memberof ChatsApi
1002
+ */
1003
+ public async getChatLatestStatus(id: number, branchId: number, apikey: string, options?: AxiosRequestConfig) : Promise<AxiosResponse<ChatLatestStatusDto>> {
1004
+ return ChatsApiFp(this.configuration).getChatLatestStatus(id, branchId, apikey, options).then((request) => request(this.axios, this.basePath));
1005
+ }
705
1006
  /**
706
1007
  *
707
1008
  * @param {number} branchId
@@ -14,6 +14,10 @@ import { Configuration } from '../configuration';
14
14
  import { RequestArgs, BaseAPI } from '../base';
15
15
  import { AssignToMeDto } from '../models';
16
16
  import { AssignmentTypeDto } from '../models';
17
+ import { ChatLatestStatusDto } from '../models';
18
+ import { ChatLifecycleEventDto } from '../models';
19
+ import { ChatLifecycleEventsResponseDto } from '../models';
20
+ import { CreateChatLifecycleEventDto } from '../models';
17
21
  import { MarkChatUnreadDto } from '../models';
18
22
  import { PaginationChatResponseDto } from '../models';
19
23
  import { UpdateAgentDto } from '../models';
@@ -42,6 +46,16 @@ export declare const ChatsApiAxiosParamCreator: (configuration?: Configuration)
42
46
  * @throws {RequiredError}
43
47
  */
44
48
  assignmentType: (body: AssignmentTypeDto, apikey: string, cellphone: string, id: number, options?: AxiosRequestConfig) => Promise<RequestArgs>;
49
+ /**
50
+ *
51
+ * @param {CreateChatLifecycleEventDto} body
52
+ * @param {string} apikey
53
+ * @param {number} branchId
54
+ * @param {number} id
55
+ * @param {*} [options] Override http request option.
56
+ * @throws {RequiredError}
57
+ */
58
+ createChatEvent: (body: CreateChatLifecycleEventDto, apikey: string, branchId: number, id: number, options?: AxiosRequestConfig) => Promise<RequestArgs>;
45
59
  /**
46
60
  *
47
61
  * @param {number} id
@@ -50,6 +64,24 @@ export declare const ChatsApiAxiosParamCreator: (configuration?: Configuration)
50
64
  * @throws {RequiredError}
51
65
  */
52
66
  getChat: (id: number, apikey: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
67
+ /**
68
+ *
69
+ * @param {number} id
70
+ * @param {number} branchId
71
+ * @param {string} apikey
72
+ * @param {*} [options] Override http request option.
73
+ * @throws {RequiredError}
74
+ */
75
+ getChatEvents: (id: number, branchId: number, apikey: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
76
+ /**
77
+ *
78
+ * @param {number} id
79
+ * @param {number} branchId
80
+ * @param {string} apikey
81
+ * @param {*} [options] Override http request option.
82
+ * @throws {RequiredError}
83
+ */
84
+ getChatLatestStatus: (id: number, branchId: number, apikey: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
53
85
  /**
54
86
  *
55
87
  * @param {number} branchId
@@ -116,6 +148,16 @@ export declare const ChatsApiFp: (configuration?: Configuration) => {
116
148
  * @throws {RequiredError}
117
149
  */
118
150
  assignmentType(body: AssignmentTypeDto, apikey: string, cellphone: string, id: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<void>>>;
151
+ /**
152
+ *
153
+ * @param {CreateChatLifecycleEventDto} body
154
+ * @param {string} apikey
155
+ * @param {number} branchId
156
+ * @param {number} id
157
+ * @param {*} [options] Override http request option.
158
+ * @throws {RequiredError}
159
+ */
160
+ createChatEvent(body: CreateChatLifecycleEventDto, apikey: string, branchId: number, id: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<ChatLifecycleEventDto>>>;
119
161
  /**
120
162
  *
121
163
  * @param {number} id
@@ -124,6 +166,24 @@ export declare const ChatsApiFp: (configuration?: Configuration) => {
124
166
  * @throws {RequiredError}
125
167
  */
126
168
  getChat(id: number, apikey: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<WhatsappChatResponseDTO>>>;
169
+ /**
170
+ *
171
+ * @param {number} id
172
+ * @param {number} branchId
173
+ * @param {string} apikey
174
+ * @param {*} [options] Override http request option.
175
+ * @throws {RequiredError}
176
+ */
177
+ getChatEvents(id: number, branchId: number, apikey: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<ChatLifecycleEventsResponseDto>>>;
178
+ /**
179
+ *
180
+ * @param {number} id
181
+ * @param {number} branchId
182
+ * @param {string} apikey
183
+ * @param {*} [options] Override http request option.
184
+ * @throws {RequiredError}
185
+ */
186
+ getChatLatestStatus(id: number, branchId: number, apikey: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<ChatLatestStatusDto>>>;
127
187
  /**
128
188
  *
129
189
  * @param {number} branchId
@@ -190,6 +250,16 @@ export declare const ChatsApiFactory: (configuration?: Configuration, basePath?:
190
250
  * @throws {RequiredError}
191
251
  */
192
252
  assignmentType(body: AssignmentTypeDto, apikey: string, cellphone: string, id: number, options?: AxiosRequestConfig): Promise<AxiosResponse<void>>;
253
+ /**
254
+ *
255
+ * @param {CreateChatLifecycleEventDto} body
256
+ * @param {string} apikey
257
+ * @param {number} branchId
258
+ * @param {number} id
259
+ * @param {*} [options] Override http request option.
260
+ * @throws {RequiredError}
261
+ */
262
+ createChatEvent(body: CreateChatLifecycleEventDto, apikey: string, branchId: number, id: number, options?: AxiosRequestConfig): Promise<AxiosResponse<ChatLifecycleEventDto>>;
193
263
  /**
194
264
  *
195
265
  * @param {number} id
@@ -198,6 +268,24 @@ export declare const ChatsApiFactory: (configuration?: Configuration, basePath?:
198
268
  * @throws {RequiredError}
199
269
  */
200
270
  getChat(id: number, apikey: string, options?: AxiosRequestConfig): Promise<AxiosResponse<WhatsappChatResponseDTO>>;
271
+ /**
272
+ *
273
+ * @param {number} id
274
+ * @param {number} branchId
275
+ * @param {string} apikey
276
+ * @param {*} [options] Override http request option.
277
+ * @throws {RequiredError}
278
+ */
279
+ getChatEvents(id: number, branchId: number, apikey: string, options?: AxiosRequestConfig): Promise<AxiosResponse<ChatLifecycleEventsResponseDto>>;
280
+ /**
281
+ *
282
+ * @param {number} id
283
+ * @param {number} branchId
284
+ * @param {string} apikey
285
+ * @param {*} [options] Override http request option.
286
+ * @throws {RequiredError}
287
+ */
288
+ getChatLatestStatus(id: number, branchId: number, apikey: string, options?: AxiosRequestConfig): Promise<AxiosResponse<ChatLatestStatusDto>>;
201
289
  /**
202
290
  *
203
291
  * @param {number} branchId
@@ -268,6 +356,17 @@ export declare class ChatsApi extends BaseAPI {
268
356
  * @memberof ChatsApi
269
357
  */
270
358
  assignmentType(body: AssignmentTypeDto, apikey: string, cellphone: string, id: number, options?: AxiosRequestConfig): Promise<AxiosResponse<void>>;
359
+ /**
360
+ *
361
+ * @param {CreateChatLifecycleEventDto} body
362
+ * @param {string} apikey
363
+ * @param {number} branchId
364
+ * @param {number} id
365
+ * @param {*} [options] Override http request option.
366
+ * @throws {RequiredError}
367
+ * @memberof ChatsApi
368
+ */
369
+ createChatEvent(body: CreateChatLifecycleEventDto, apikey: string, branchId: number, id: number, options?: AxiosRequestConfig): Promise<AxiosResponse<ChatLifecycleEventDto>>;
271
370
  /**
272
371
  *
273
372
  * @param {number} id
@@ -277,6 +376,26 @@ export declare class ChatsApi extends BaseAPI {
277
376
  * @memberof ChatsApi
278
377
  */
279
378
  getChat(id: number, apikey: string, options?: AxiosRequestConfig): Promise<AxiosResponse<WhatsappChatResponseDTO>>;
379
+ /**
380
+ *
381
+ * @param {number} id
382
+ * @param {number} branchId
383
+ * @param {string} apikey
384
+ * @param {*} [options] Override http request option.
385
+ * @throws {RequiredError}
386
+ * @memberof ChatsApi
387
+ */
388
+ getChatEvents(id: number, branchId: number, apikey: string, options?: AxiosRequestConfig): Promise<AxiosResponse<ChatLifecycleEventsResponseDto>>;
389
+ /**
390
+ *
391
+ * @param {number} id
392
+ * @param {number} branchId
393
+ * @param {string} apikey
394
+ * @param {*} [options] Override http request option.
395
+ * @throws {RequiredError}
396
+ * @memberof ChatsApi
397
+ */
398
+ getChatLatestStatus(id: number, branchId: number, apikey: string, options?: AxiosRequestConfig): Promise<AxiosResponse<ChatLatestStatusDto>>;
280
399
  /**
281
400
  *
282
401
  * @param {number} branchId