@libgot/whatsapp-bridge-sdk 1.0.43 → 1.0.44-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/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @1.0.43
1
+ ## @1.0.44-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.43 --save
39
+ npm install @libgot/whatsapp-bridge-sdk@1.0.44-rc.1 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
package/apis/chats-api.ts CHANGED
@@ -19,6 +19,9 @@ 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 { ChatLifecycleEventDto } from '../models';
23
+ import { ChatLifecycleEventsResponseDto } from '../models';
24
+ import { CreateChatLifecycleEventDto } from '../models';
22
25
  import { MarkChatUnreadDto } from '../models';
23
26
  import { PaginationChatResponseDto } from '../models';
24
27
  import { UpdateAgentDto } from '../models';
@@ -144,6 +147,72 @@ export const ChatsApiAxiosParamCreator = function (configuration?: Configuration
144
147
  options: localVarRequestOptions,
145
148
  };
146
149
  },
150
+ /**
151
+ *
152
+ * @param {CreateChatLifecycleEventDto} body
153
+ * @param {string} apikey
154
+ * @param {number} branchId
155
+ * @param {number} id
156
+ * @param {*} [options] Override http request option.
157
+ * @throws {RequiredError}
158
+ */
159
+ createChatEvent: async (body: CreateChatLifecycleEventDto, apikey: string, branchId: number, id: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
160
+ // verify required parameter 'body' is not null or undefined
161
+ if (body === null || body === undefined) {
162
+ throw new RequiredError('body','Required parameter body was null or undefined when calling createChatEvent.');
163
+ }
164
+ // verify required parameter 'apikey' is not null or undefined
165
+ if (apikey === null || apikey === undefined) {
166
+ throw new RequiredError('apikey','Required parameter apikey was null or undefined when calling createChatEvent.');
167
+ }
168
+ // verify required parameter 'branchId' is not null or undefined
169
+ if (branchId === null || branchId === undefined) {
170
+ throw new RequiredError('branchId','Required parameter branchId was null or undefined when calling createChatEvent.');
171
+ }
172
+ // verify required parameter 'id' is not null or undefined
173
+ if (id === null || id === undefined) {
174
+ throw new RequiredError('id','Required parameter id was null or undefined when calling createChatEvent.');
175
+ }
176
+ const localVarPath = `/api/chats/{id}/events`
177
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
178
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
179
+ const localVarUrlObj = new URL(localVarPath, 'https://example.com');
180
+ let baseOptions;
181
+ if (configuration) {
182
+ baseOptions = configuration.baseOptions;
183
+ }
184
+ const localVarRequestOptions :AxiosRequestConfig = { method: 'POST', ...baseOptions, ...options};
185
+ const localVarHeaderParameter = {} as any;
186
+ const localVarQueryParameter = {} as any;
187
+
188
+ if (branchId !== undefined) {
189
+ localVarQueryParameter['branchId'] = branchId;
190
+ }
191
+
192
+ if (apikey !== undefined && apikey !== null) {
193
+ localVarHeaderParameter['apikey'] = String(apikey);
194
+ }
195
+
196
+ localVarHeaderParameter['Content-Type'] = 'application/json';
197
+
198
+ const query = new URLSearchParams(localVarUrlObj.search);
199
+ for (const key in localVarQueryParameter) {
200
+ query.set(key, localVarQueryParameter[key]);
201
+ }
202
+ for (const key in options.params) {
203
+ query.set(key, options.params[key]);
204
+ }
205
+ localVarUrlObj.search = (new URLSearchParams(query)).toString();
206
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
207
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
208
+ const needsSerialization = (typeof body !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
209
+ localVarRequestOptions.data = needsSerialization ? JSON.stringify(body !== undefined ? body : {}) : (body || "");
210
+
211
+ return {
212
+ url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
213
+ options: localVarRequestOptions,
214
+ };
215
+ },
147
216
  /**
148
217
  *
149
218
  * @param {number} id
@@ -192,6 +261,63 @@ export const ChatsApiAxiosParamCreator = function (configuration?: Configuration
192
261
  options: localVarRequestOptions,
193
262
  };
194
263
  },
264
+ /**
265
+ *
266
+ * @param {number} id
267
+ * @param {number} branchId
268
+ * @param {string} apikey
269
+ * @param {*} [options] Override http request option.
270
+ * @throws {RequiredError}
271
+ */
272
+ getChatEvents: async (id: number, branchId: number, apikey: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
273
+ // verify required parameter 'id' is not null or undefined
274
+ if (id === null || id === undefined) {
275
+ throw new RequiredError('id','Required parameter id was null or undefined when calling getChatEvents.');
276
+ }
277
+ // verify required parameter 'branchId' is not null or undefined
278
+ if (branchId === null || branchId === undefined) {
279
+ throw new RequiredError('branchId','Required parameter branchId was null or undefined when calling getChatEvents.');
280
+ }
281
+ // verify required parameter 'apikey' is not null or undefined
282
+ if (apikey === null || apikey === undefined) {
283
+ throw new RequiredError('apikey','Required parameter apikey was null or undefined when calling getChatEvents.');
284
+ }
285
+ const localVarPath = `/api/chats/{id}/events`
286
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
287
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
288
+ const localVarUrlObj = new URL(localVarPath, 'https://example.com');
289
+ let baseOptions;
290
+ if (configuration) {
291
+ baseOptions = configuration.baseOptions;
292
+ }
293
+ const localVarRequestOptions :AxiosRequestConfig = { method: 'GET', ...baseOptions, ...options};
294
+ const localVarHeaderParameter = {} as any;
295
+ const localVarQueryParameter = {} as any;
296
+
297
+ if (branchId !== undefined) {
298
+ localVarQueryParameter['branchId'] = branchId;
299
+ }
300
+
301
+ if (apikey !== undefined && apikey !== null) {
302
+ localVarHeaderParameter['apikey'] = String(apikey);
303
+ }
304
+
305
+ const query = new URLSearchParams(localVarUrlObj.search);
306
+ for (const key in localVarQueryParameter) {
307
+ query.set(key, localVarQueryParameter[key]);
308
+ }
309
+ for (const key in options.params) {
310
+ query.set(key, options.params[key]);
311
+ }
312
+ localVarUrlObj.search = (new URLSearchParams(query)).toString();
313
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
314
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
315
+
316
+ return {
317
+ url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
318
+ options: localVarRequestOptions,
319
+ };
320
+ },
195
321
  /**
196
322
  *
197
323
  * @param {number} branchId
@@ -486,6 +612,22 @@ export const ChatsApiFp = function(configuration?: Configuration) {
486
612
  return axios.request(axiosRequestArgs);
487
613
  };
488
614
  },
615
+ /**
616
+ *
617
+ * @param {CreateChatLifecycleEventDto} body
618
+ * @param {string} apikey
619
+ * @param {number} branchId
620
+ * @param {number} id
621
+ * @param {*} [options] Override http request option.
622
+ * @throws {RequiredError}
623
+ */
624
+ async createChatEvent(body: CreateChatLifecycleEventDto, apikey: string, branchId: number, id: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<ChatLifecycleEventDto>>> {
625
+ const localVarAxiosArgs = await ChatsApiAxiosParamCreator(configuration).createChatEvent(body, apikey, branchId, id, options);
626
+ return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
627
+ const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
628
+ return axios.request(axiosRequestArgs);
629
+ };
630
+ },
489
631
  /**
490
632
  *
491
633
  * @param {number} id
@@ -500,6 +642,21 @@ export const ChatsApiFp = function(configuration?: Configuration) {
500
642
  return axios.request(axiosRequestArgs);
501
643
  };
502
644
  },
645
+ /**
646
+ *
647
+ * @param {number} id
648
+ * @param {number} branchId
649
+ * @param {string} apikey
650
+ * @param {*} [options] Override http request option.
651
+ * @throws {RequiredError}
652
+ */
653
+ async getChatEvents(id: number, branchId: number, apikey: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<ChatLifecycleEventsResponseDto>>> {
654
+ const localVarAxiosArgs = await ChatsApiAxiosParamCreator(configuration).getChatEvents(id, branchId, apikey, options);
655
+ return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
656
+ const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
657
+ return axios.request(axiosRequestArgs);
658
+ };
659
+ },
503
660
  /**
504
661
  *
505
662
  * @param {number} branchId
@@ -597,6 +754,18 @@ export const ChatsApiFactory = function (configuration?: Configuration, basePath
597
754
  async assignmentType(body: AssignmentTypeDto, apikey: string, cellphone: string, id: number, options?: AxiosRequestConfig): Promise<AxiosResponse<void>> {
598
755
  return ChatsApiFp(configuration).assignmentType(body, apikey, cellphone, id, options).then((request) => request(axios, basePath));
599
756
  },
757
+ /**
758
+ *
759
+ * @param {CreateChatLifecycleEventDto} body
760
+ * @param {string} apikey
761
+ * @param {number} branchId
762
+ * @param {number} id
763
+ * @param {*} [options] Override http request option.
764
+ * @throws {RequiredError}
765
+ */
766
+ async createChatEvent(body: CreateChatLifecycleEventDto, apikey: string, branchId: number, id: number, options?: AxiosRequestConfig): Promise<AxiosResponse<ChatLifecycleEventDto>> {
767
+ return ChatsApiFp(configuration).createChatEvent(body, apikey, branchId, id, options).then((request) => request(axios, basePath));
768
+ },
600
769
  /**
601
770
  *
602
771
  * @param {number} id
@@ -607,6 +776,17 @@ export const ChatsApiFactory = function (configuration?: Configuration, basePath
607
776
  async getChat(id: number, apikey: string, options?: AxiosRequestConfig): Promise<AxiosResponse<WhatsappChatResponseDTO>> {
608
777
  return ChatsApiFp(configuration).getChat(id, apikey, options).then((request) => request(axios, basePath));
609
778
  },
779
+ /**
780
+ *
781
+ * @param {number} id
782
+ * @param {number} branchId
783
+ * @param {string} apikey
784
+ * @param {*} [options] Override http request option.
785
+ * @throws {RequiredError}
786
+ */
787
+ async getChatEvents(id: number, branchId: number, apikey: string, options?: AxiosRequestConfig): Promise<AxiosResponse<ChatLifecycleEventsResponseDto>> {
788
+ return ChatsApiFp(configuration).getChatEvents(id, branchId, apikey, options).then((request) => request(axios, basePath));
789
+ },
610
790
  /**
611
791
  *
612
792
  * @param {number} branchId
@@ -691,6 +871,19 @@ export class ChatsApi extends BaseAPI {
691
871
  public async assignmentType(body: AssignmentTypeDto, apikey: string, cellphone: string, id: number, options?: AxiosRequestConfig) : Promise<AxiosResponse<void>> {
692
872
  return ChatsApiFp(this.configuration).assignmentType(body, apikey, cellphone, id, options).then((request) => request(this.axios, this.basePath));
693
873
  }
874
+ /**
875
+ *
876
+ * @param {CreateChatLifecycleEventDto} body
877
+ * @param {string} apikey
878
+ * @param {number} branchId
879
+ * @param {number} id
880
+ * @param {*} [options] Override http request option.
881
+ * @throws {RequiredError}
882
+ * @memberof ChatsApi
883
+ */
884
+ public async createChatEvent(body: CreateChatLifecycleEventDto, apikey: string, branchId: number, id: number, options?: AxiosRequestConfig) : Promise<AxiosResponse<ChatLifecycleEventDto>> {
885
+ return ChatsApiFp(this.configuration).createChatEvent(body, apikey, branchId, id, options).then((request) => request(this.axios, this.basePath));
886
+ }
694
887
  /**
695
888
  *
696
889
  * @param {number} id
@@ -702,6 +895,18 @@ export class ChatsApi extends BaseAPI {
702
895
  public async getChat(id: number, apikey: string, options?: AxiosRequestConfig) : Promise<AxiosResponse<WhatsappChatResponseDTO>> {
703
896
  return ChatsApiFp(this.configuration).getChat(id, apikey, options).then((request) => request(this.axios, this.basePath));
704
897
  }
898
+ /**
899
+ *
900
+ * @param {number} id
901
+ * @param {number} branchId
902
+ * @param {string} apikey
903
+ * @param {*} [options] Override http request option.
904
+ * @throws {RequiredError}
905
+ * @memberof ChatsApi
906
+ */
907
+ public async getChatEvents(id: number, branchId: number, apikey: string, options?: AxiosRequestConfig) : Promise<AxiosResponse<ChatLifecycleEventsResponseDto>> {
908
+ return ChatsApiFp(this.configuration).getChatEvents(id, branchId, apikey, options).then((request) => request(this.axios, this.basePath));
909
+ }
705
910
  /**
706
911
  *
707
912
  * @param {number} branchId
@@ -14,6 +14,9 @@ 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 { ChatLifecycleEventDto } from '../models';
18
+ import { ChatLifecycleEventsResponseDto } from '../models';
19
+ import { CreateChatLifecycleEventDto } from '../models';
17
20
  import { MarkChatUnreadDto } from '../models';
18
21
  import { PaginationChatResponseDto } from '../models';
19
22
  import { UpdateAgentDto } from '../models';
@@ -42,6 +45,16 @@ export declare const ChatsApiAxiosParamCreator: (configuration?: Configuration)
42
45
  * @throws {RequiredError}
43
46
  */
44
47
  assignmentType: (body: AssignmentTypeDto, apikey: string, cellphone: string, id: number, options?: AxiosRequestConfig) => Promise<RequestArgs>;
48
+ /**
49
+ *
50
+ * @param {CreateChatLifecycleEventDto} body
51
+ * @param {string} apikey
52
+ * @param {number} branchId
53
+ * @param {number} id
54
+ * @param {*} [options] Override http request option.
55
+ * @throws {RequiredError}
56
+ */
57
+ createChatEvent: (body: CreateChatLifecycleEventDto, apikey: string, branchId: number, id: number, options?: AxiosRequestConfig) => Promise<RequestArgs>;
45
58
  /**
46
59
  *
47
60
  * @param {number} id
@@ -50,6 +63,15 @@ export declare const ChatsApiAxiosParamCreator: (configuration?: Configuration)
50
63
  * @throws {RequiredError}
51
64
  */
52
65
  getChat: (id: number, apikey: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
66
+ /**
67
+ *
68
+ * @param {number} id
69
+ * @param {number} branchId
70
+ * @param {string} apikey
71
+ * @param {*} [options] Override http request option.
72
+ * @throws {RequiredError}
73
+ */
74
+ getChatEvents: (id: number, branchId: number, apikey: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
53
75
  /**
54
76
  *
55
77
  * @param {number} branchId
@@ -116,6 +138,16 @@ export declare const ChatsApiFp: (configuration?: Configuration) => {
116
138
  * @throws {RequiredError}
117
139
  */
118
140
  assignmentType(body: AssignmentTypeDto, apikey: string, cellphone: string, id: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<void>>>;
141
+ /**
142
+ *
143
+ * @param {CreateChatLifecycleEventDto} body
144
+ * @param {string} apikey
145
+ * @param {number} branchId
146
+ * @param {number} id
147
+ * @param {*} [options] Override http request option.
148
+ * @throws {RequiredError}
149
+ */
150
+ createChatEvent(body: CreateChatLifecycleEventDto, apikey: string, branchId: number, id: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<ChatLifecycleEventDto>>>;
119
151
  /**
120
152
  *
121
153
  * @param {number} id
@@ -124,6 +156,15 @@ export declare const ChatsApiFp: (configuration?: Configuration) => {
124
156
  * @throws {RequiredError}
125
157
  */
126
158
  getChat(id: number, apikey: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<WhatsappChatResponseDTO>>>;
159
+ /**
160
+ *
161
+ * @param {number} id
162
+ * @param {number} branchId
163
+ * @param {string} apikey
164
+ * @param {*} [options] Override http request option.
165
+ * @throws {RequiredError}
166
+ */
167
+ getChatEvents(id: number, branchId: number, apikey: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<ChatLifecycleEventsResponseDto>>>;
127
168
  /**
128
169
  *
129
170
  * @param {number} branchId
@@ -190,6 +231,16 @@ export declare const ChatsApiFactory: (configuration?: Configuration, basePath?:
190
231
  * @throws {RequiredError}
191
232
  */
192
233
  assignmentType(body: AssignmentTypeDto, apikey: string, cellphone: string, id: number, options?: AxiosRequestConfig): Promise<AxiosResponse<void>>;
234
+ /**
235
+ *
236
+ * @param {CreateChatLifecycleEventDto} body
237
+ * @param {string} apikey
238
+ * @param {number} branchId
239
+ * @param {number} id
240
+ * @param {*} [options] Override http request option.
241
+ * @throws {RequiredError}
242
+ */
243
+ createChatEvent(body: CreateChatLifecycleEventDto, apikey: string, branchId: number, id: number, options?: AxiosRequestConfig): Promise<AxiosResponse<ChatLifecycleEventDto>>;
193
244
  /**
194
245
  *
195
246
  * @param {number} id
@@ -198,6 +249,15 @@ export declare const ChatsApiFactory: (configuration?: Configuration, basePath?:
198
249
  * @throws {RequiredError}
199
250
  */
200
251
  getChat(id: number, apikey: string, options?: AxiosRequestConfig): Promise<AxiosResponse<WhatsappChatResponseDTO>>;
252
+ /**
253
+ *
254
+ * @param {number} id
255
+ * @param {number} branchId
256
+ * @param {string} apikey
257
+ * @param {*} [options] Override http request option.
258
+ * @throws {RequiredError}
259
+ */
260
+ getChatEvents(id: number, branchId: number, apikey: string, options?: AxiosRequestConfig): Promise<AxiosResponse<ChatLifecycleEventsResponseDto>>;
201
261
  /**
202
262
  *
203
263
  * @param {number} branchId
@@ -268,6 +328,17 @@ export declare class ChatsApi extends BaseAPI {
268
328
  * @memberof ChatsApi
269
329
  */
270
330
  assignmentType(body: AssignmentTypeDto, apikey: string, cellphone: string, id: number, options?: AxiosRequestConfig): Promise<AxiosResponse<void>>;
331
+ /**
332
+ *
333
+ * @param {CreateChatLifecycleEventDto} body
334
+ * @param {string} apikey
335
+ * @param {number} branchId
336
+ * @param {number} id
337
+ * @param {*} [options] Override http request option.
338
+ * @throws {RequiredError}
339
+ * @memberof ChatsApi
340
+ */
341
+ createChatEvent(body: CreateChatLifecycleEventDto, apikey: string, branchId: number, id: number, options?: AxiosRequestConfig): Promise<AxiosResponse<ChatLifecycleEventDto>>;
271
342
  /**
272
343
  *
273
344
  * @param {number} id
@@ -277,6 +348,16 @@ export declare class ChatsApi extends BaseAPI {
277
348
  * @memberof ChatsApi
278
349
  */
279
350
  getChat(id: number, apikey: string, options?: AxiosRequestConfig): Promise<AxiosResponse<WhatsappChatResponseDTO>>;
351
+ /**
352
+ *
353
+ * @param {number} id
354
+ * @param {number} branchId
355
+ * @param {string} apikey
356
+ * @param {*} [options] Override http request option.
357
+ * @throws {RequiredError}
358
+ * @memberof ChatsApi
359
+ */
360
+ getChatEvents(id: number, branchId: number, apikey: string, options?: AxiosRequestConfig): Promise<AxiosResponse<ChatLifecycleEventsResponseDto>>;
280
361
  /**
281
362
  *
282
363
  * @param {number} branchId
@@ -139,6 +139,67 @@ const ChatsApiAxiosParamCreator = function (configuration) {
139
139
  options: localVarRequestOptions,
140
140
  };
141
141
  }),
142
+ /**
143
+ *
144
+ * @param {CreateChatLifecycleEventDto} body
145
+ * @param {string} apikey
146
+ * @param {number} branchId
147
+ * @param {number} id
148
+ * @param {*} [options] Override http request option.
149
+ * @throws {RequiredError}
150
+ */
151
+ createChatEvent: (body_1, apikey_1, branchId_1, id_1, ...args_1) => __awaiter(this, [body_1, apikey_1, branchId_1, id_1, ...args_1], void 0, function* (body, apikey, branchId, id, options = {}) {
152
+ // verify required parameter 'body' is not null or undefined
153
+ if (body === null || body === undefined) {
154
+ throw new base_1.RequiredError('body', 'Required parameter body was null or undefined when calling createChatEvent.');
155
+ }
156
+ // verify required parameter 'apikey' is not null or undefined
157
+ if (apikey === null || apikey === undefined) {
158
+ throw new base_1.RequiredError('apikey', 'Required parameter apikey was null or undefined when calling createChatEvent.');
159
+ }
160
+ // verify required parameter 'branchId' is not null or undefined
161
+ if (branchId === null || branchId === undefined) {
162
+ throw new base_1.RequiredError('branchId', 'Required parameter branchId was null or undefined when calling createChatEvent.');
163
+ }
164
+ // verify required parameter 'id' is not null or undefined
165
+ if (id === null || id === undefined) {
166
+ throw new base_1.RequiredError('id', 'Required parameter id was null or undefined when calling createChatEvent.');
167
+ }
168
+ const localVarPath = `/api/chats/{id}/events`
169
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
170
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
171
+ const localVarUrlObj = new URL(localVarPath, 'https://example.com');
172
+ let baseOptions;
173
+ if (configuration) {
174
+ baseOptions = configuration.baseOptions;
175
+ }
176
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
177
+ const localVarHeaderParameter = {};
178
+ const localVarQueryParameter = {};
179
+ if (branchId !== undefined) {
180
+ localVarQueryParameter['branchId'] = branchId;
181
+ }
182
+ if (apikey !== undefined && apikey !== null) {
183
+ localVarHeaderParameter['apikey'] = String(apikey);
184
+ }
185
+ localVarHeaderParameter['Content-Type'] = 'application/json';
186
+ const query = new URLSearchParams(localVarUrlObj.search);
187
+ for (const key in localVarQueryParameter) {
188
+ query.set(key, localVarQueryParameter[key]);
189
+ }
190
+ for (const key in options.params) {
191
+ query.set(key, options.params[key]);
192
+ }
193
+ localVarUrlObj.search = (new URLSearchParams(query)).toString();
194
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
195
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
196
+ const needsSerialization = (typeof body !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
197
+ localVarRequestOptions.data = needsSerialization ? JSON.stringify(body !== undefined ? body : {}) : (body || "");
198
+ return {
199
+ url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
200
+ options: localVarRequestOptions,
201
+ };
202
+ }),
142
203
  /**
143
204
  *
144
205
  * @param {number} id
@@ -184,6 +245,59 @@ const ChatsApiAxiosParamCreator = function (configuration) {
184
245
  options: localVarRequestOptions,
185
246
  };
186
247
  }),
248
+ /**
249
+ *
250
+ * @param {number} id
251
+ * @param {number} branchId
252
+ * @param {string} apikey
253
+ * @param {*} [options] Override http request option.
254
+ * @throws {RequiredError}
255
+ */
256
+ getChatEvents: (id_1, branchId_1, apikey_1, ...args_1) => __awaiter(this, [id_1, branchId_1, apikey_1, ...args_1], void 0, function* (id, branchId, apikey, options = {}) {
257
+ // verify required parameter 'id' is not null or undefined
258
+ if (id === null || id === undefined) {
259
+ throw new base_1.RequiredError('id', 'Required parameter id was null or undefined when calling getChatEvents.');
260
+ }
261
+ // verify required parameter 'branchId' is not null or undefined
262
+ if (branchId === null || branchId === undefined) {
263
+ throw new base_1.RequiredError('branchId', 'Required parameter branchId was null or undefined when calling getChatEvents.');
264
+ }
265
+ // verify required parameter 'apikey' is not null or undefined
266
+ if (apikey === null || apikey === undefined) {
267
+ throw new base_1.RequiredError('apikey', 'Required parameter apikey was null or undefined when calling getChatEvents.');
268
+ }
269
+ const localVarPath = `/api/chats/{id}/events`
270
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
271
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
272
+ const localVarUrlObj = new URL(localVarPath, 'https://example.com');
273
+ let baseOptions;
274
+ if (configuration) {
275
+ baseOptions = configuration.baseOptions;
276
+ }
277
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
278
+ const localVarHeaderParameter = {};
279
+ const localVarQueryParameter = {};
280
+ if (branchId !== undefined) {
281
+ localVarQueryParameter['branchId'] = branchId;
282
+ }
283
+ if (apikey !== undefined && apikey !== null) {
284
+ localVarHeaderParameter['apikey'] = String(apikey);
285
+ }
286
+ const query = new URLSearchParams(localVarUrlObj.search);
287
+ for (const key in localVarQueryParameter) {
288
+ query.set(key, localVarQueryParameter[key]);
289
+ }
290
+ for (const key in options.params) {
291
+ query.set(key, options.params[key]);
292
+ }
293
+ localVarUrlObj.search = (new URLSearchParams(query)).toString();
294
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
295
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
296
+ return {
297
+ url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
298
+ options: localVarRequestOptions,
299
+ };
300
+ }),
187
301
  /**
188
302
  *
189
303
  * @param {number} branchId
@@ -457,6 +571,24 @@ const ChatsApiFp = function (configuration) {
457
571
  };
458
572
  });
459
573
  },
574
+ /**
575
+ *
576
+ * @param {CreateChatLifecycleEventDto} body
577
+ * @param {string} apikey
578
+ * @param {number} branchId
579
+ * @param {number} id
580
+ * @param {*} [options] Override http request option.
581
+ * @throws {RequiredError}
582
+ */
583
+ createChatEvent(body, apikey, branchId, id, options) {
584
+ return __awaiter(this, void 0, void 0, function* () {
585
+ const localVarAxiosArgs = yield (0, exports.ChatsApiAxiosParamCreator)(configuration).createChatEvent(body, apikey, branchId, id, options);
586
+ return (axios = axios_1.default, basePath = base_1.BASE_PATH) => {
587
+ const axiosRequestArgs = Object.assign(Object.assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
588
+ return axios.request(axiosRequestArgs);
589
+ };
590
+ });
591
+ },
460
592
  /**
461
593
  *
462
594
  * @param {number} id
@@ -473,6 +605,23 @@ const ChatsApiFp = function (configuration) {
473
605
  };
474
606
  });
475
607
  },
608
+ /**
609
+ *
610
+ * @param {number} id
611
+ * @param {number} branchId
612
+ * @param {string} apikey
613
+ * @param {*} [options] Override http request option.
614
+ * @throws {RequiredError}
615
+ */
616
+ getChatEvents(id, branchId, apikey, options) {
617
+ return __awaiter(this, void 0, void 0, function* () {
618
+ const localVarAxiosArgs = yield (0, exports.ChatsApiAxiosParamCreator)(configuration).getChatEvents(id, branchId, apikey, options);
619
+ return (axios = axios_1.default, basePath = base_1.BASE_PATH) => {
620
+ const axiosRequestArgs = Object.assign(Object.assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
621
+ return axios.request(axiosRequestArgs);
622
+ };
623
+ });
624
+ },
476
625
  /**
477
626
  *
478
627
  * @param {number} branchId
@@ -582,6 +731,20 @@ const ChatsApiFactory = function (configuration, basePath, axios) {
582
731
  return (0, exports.ChatsApiFp)(configuration).assignmentType(body, apikey, cellphone, id, options).then((request) => request(axios, basePath));
583
732
  });
584
733
  },
734
+ /**
735
+ *
736
+ * @param {CreateChatLifecycleEventDto} body
737
+ * @param {string} apikey
738
+ * @param {number} branchId
739
+ * @param {number} id
740
+ * @param {*} [options] Override http request option.
741
+ * @throws {RequiredError}
742
+ */
743
+ createChatEvent(body, apikey, branchId, id, options) {
744
+ return __awaiter(this, void 0, void 0, function* () {
745
+ return (0, exports.ChatsApiFp)(configuration).createChatEvent(body, apikey, branchId, id, options).then((request) => request(axios, basePath));
746
+ });
747
+ },
585
748
  /**
586
749
  *
587
750
  * @param {number} id
@@ -594,6 +757,19 @@ const ChatsApiFactory = function (configuration, basePath, axios) {
594
757
  return (0, exports.ChatsApiFp)(configuration).getChat(id, apikey, options).then((request) => request(axios, basePath));
595
758
  });
596
759
  },
760
+ /**
761
+ *
762
+ * @param {number} id
763
+ * @param {number} branchId
764
+ * @param {string} apikey
765
+ * @param {*} [options] Override http request option.
766
+ * @throws {RequiredError}
767
+ */
768
+ getChatEvents(id, branchId, apikey, options) {
769
+ return __awaiter(this, void 0, void 0, function* () {
770
+ return (0, exports.ChatsApiFp)(configuration).getChatEvents(id, branchId, apikey, options).then((request) => request(axios, basePath));
771
+ });
772
+ },
597
773
  /**
598
774
  *
599
775
  * @param {number} branchId
@@ -690,6 +866,21 @@ class ChatsApi extends base_1.BaseAPI {
690
866
  return (0, exports.ChatsApiFp)(this.configuration).assignmentType(body, apikey, cellphone, id, options).then((request) => request(this.axios, this.basePath));
691
867
  });
692
868
  }
869
+ /**
870
+ *
871
+ * @param {CreateChatLifecycleEventDto} body
872
+ * @param {string} apikey
873
+ * @param {number} branchId
874
+ * @param {number} id
875
+ * @param {*} [options] Override http request option.
876
+ * @throws {RequiredError}
877
+ * @memberof ChatsApi
878
+ */
879
+ createChatEvent(body, apikey, branchId, id, options) {
880
+ return __awaiter(this, void 0, void 0, function* () {
881
+ return (0, exports.ChatsApiFp)(this.configuration).createChatEvent(body, apikey, branchId, id, options).then((request) => request(this.axios, this.basePath));
882
+ });
883
+ }
693
884
  /**
694
885
  *
695
886
  * @param {number} id
@@ -703,6 +894,20 @@ class ChatsApi extends base_1.BaseAPI {
703
894
  return (0, exports.ChatsApiFp)(this.configuration).getChat(id, apikey, options).then((request) => request(this.axios, this.basePath));
704
895
  });
705
896
  }
897
+ /**
898
+ *
899
+ * @param {number} id
900
+ * @param {number} branchId
901
+ * @param {string} apikey
902
+ * @param {*} [options] Override http request option.
903
+ * @throws {RequiredError}
904
+ * @memberof ChatsApi
905
+ */
906
+ getChatEvents(id, branchId, apikey, options) {
907
+ return __awaiter(this, void 0, void 0, function* () {
908
+ return (0, exports.ChatsApiFp)(this.configuration).getChatEvents(id, branchId, apikey, options).then((request) => request(this.axios, this.basePath));
909
+ });
910
+ }
706
911
  /**
707
912
  *
708
913
  * @param {number} branchId
@@ -0,0 +1,65 @@
1
+ /**
2
+ * whatsapp-bridge Node Api
3
+ * The whatsapp-bridge API description
4
+ *
5
+ * OpenAPI spec version: 0.0.1
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by the swagger code generator program.
9
+ * https://github.com/swagger-api/swagger-codegen.git
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ *
15
+ * @export
16
+ * @interface ChatLifecycleEventDto
17
+ */
18
+ export interface ChatLifecycleEventDto {
19
+ /**
20
+ * @type {number}
21
+ * @memberof ChatLifecycleEventDto
22
+ * @example 1
23
+ */
24
+ id: number;
25
+ /**
26
+ * @type {number}
27
+ * @memberof ChatLifecycleEventDto
28
+ * @example 58
29
+ */
30
+ chatId: number;
31
+ /**
32
+ * @type {string}
33
+ * @memberof ChatLifecycleEventDto
34
+ * @example CHAT_CLOSED
35
+ */
36
+ eventType: ChatLifecycleEventDtoEventTypeEnum;
37
+ /**
38
+ * @type {number}
39
+ * @memberof ChatLifecycleEventDto
40
+ * @example 458
41
+ */
42
+ sessionId: number;
43
+ /**
44
+ * @type {{ [key: string]: any; }}
45
+ * @memberof ChatLifecycleEventDto
46
+ * @example {"from":"CHAT_CLOSED","to":"CHAT_REOPENED","triggeredBy":1203}
47
+ */
48
+ eventPayload: {
49
+ [key: string]: any;
50
+ } | null;
51
+ /**
52
+ * @type {Date}
53
+ * @memberof ChatLifecycleEventDto
54
+ */
55
+ createdAt: Date;
56
+ }
57
+ /**
58
+ * @export
59
+ * @enum {string}
60
+ */
61
+ export declare enum ChatLifecycleEventDtoEventTypeEnum {
62
+ OPENED = "CHAT_OPENED",
63
+ CLOSED = "CHAT_CLOSED",
64
+ REOPENED = "CHAT_REOPENED"
65
+ }
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * whatsapp-bridge Node Api
6
+ * The whatsapp-bridge API description
7
+ *
8
+ * OpenAPI spec version: 0.0.1
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by the swagger code generator program.
12
+ * https://github.com/swagger-api/swagger-codegen.git
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.ChatLifecycleEventDtoEventTypeEnum = void 0;
17
+ /**
18
+ * @export
19
+ * @enum {string}
20
+ */
21
+ var ChatLifecycleEventDtoEventTypeEnum;
22
+ (function (ChatLifecycleEventDtoEventTypeEnum) {
23
+ ChatLifecycleEventDtoEventTypeEnum["OPENED"] = "CHAT_OPENED";
24
+ ChatLifecycleEventDtoEventTypeEnum["CLOSED"] = "CHAT_CLOSED";
25
+ ChatLifecycleEventDtoEventTypeEnum["REOPENED"] = "CHAT_REOPENED";
26
+ })(ChatLifecycleEventDtoEventTypeEnum || (exports.ChatLifecycleEventDtoEventTypeEnum = ChatLifecycleEventDtoEventTypeEnum = {}));
@@ -0,0 +1,25 @@
1
+ /**
2
+ * whatsapp-bridge Node Api
3
+ * The whatsapp-bridge API description
4
+ *
5
+ * OpenAPI spec version: 0.0.1
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by the swagger code generator program.
9
+ * https://github.com/swagger-api/swagger-codegen.git
10
+ * Do not edit the class manually.
11
+ */
12
+ import { ChatLifecycleEventDto } from './chat-lifecycle-event-dto';
13
+ /**
14
+ *
15
+ *
16
+ * @export
17
+ * @interface ChatLifecycleEventsResponseDto
18
+ */
19
+ export interface ChatLifecycleEventsResponseDto {
20
+ /**
21
+ * @type {Array<ChatLifecycleEventDto>}
22
+ * @memberof ChatLifecycleEventsResponseDto
23
+ */
24
+ data: Array<ChatLifecycleEventDto>;
25
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * whatsapp-bridge Node Api
6
+ * The whatsapp-bridge API description
7
+ *
8
+ * OpenAPI spec version: 0.0.1
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by the swagger code generator program.
12
+ * https://github.com/swagger-api/swagger-codegen.git
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,40 @@
1
+ /**
2
+ * whatsapp-bridge Node Api
3
+ * The whatsapp-bridge API description
4
+ *
5
+ * OpenAPI spec version: 0.0.1
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by the swagger code generator program.
9
+ * https://github.com/swagger-api/swagger-codegen.git
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ *
15
+ * @export
16
+ * @interface CreateChatLifecycleEventDto
17
+ */
18
+ export interface CreateChatLifecycleEventDto {
19
+ /**
20
+ * @type {string}
21
+ * @memberof CreateChatLifecycleEventDto
22
+ * @example CHAT_CLOSED
23
+ */
24
+ eventType: CreateChatLifecycleEventDtoEventTypeEnum;
25
+ /**
26
+ * @type {number}
27
+ * @memberof CreateChatLifecycleEventDto
28
+ * @example 1203
29
+ */
30
+ triggeredBy?: number;
31
+ }
32
+ /**
33
+ * @export
34
+ * @enum {string}
35
+ */
36
+ export declare enum CreateChatLifecycleEventDtoEventTypeEnum {
37
+ OPENED = "CHAT_OPENED",
38
+ CLOSED = "CHAT_CLOSED",
39
+ REOPENED = "CHAT_REOPENED"
40
+ }
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * whatsapp-bridge Node Api
6
+ * The whatsapp-bridge API description
7
+ *
8
+ * OpenAPI spec version: 0.0.1
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by the swagger code generator program.
12
+ * https://github.com/swagger-api/swagger-codegen.git
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.CreateChatLifecycleEventDtoEventTypeEnum = void 0;
17
+ /**
18
+ * @export
19
+ * @enum {string}
20
+ */
21
+ var CreateChatLifecycleEventDtoEventTypeEnum;
22
+ (function (CreateChatLifecycleEventDtoEventTypeEnum) {
23
+ CreateChatLifecycleEventDtoEventTypeEnum["OPENED"] = "CHAT_OPENED";
24
+ CreateChatLifecycleEventDtoEventTypeEnum["CLOSED"] = "CHAT_CLOSED";
25
+ CreateChatLifecycleEventDtoEventTypeEnum["REOPENED"] = "CHAT_REOPENED";
26
+ })(CreateChatLifecycleEventDtoEventTypeEnum || (exports.CreateChatLifecycleEventDtoEventTypeEnum = CreateChatLifecycleEventDtoEventTypeEnum = {}));
@@ -6,9 +6,12 @@ export * from './assign-to-me-dto';
6
6
  export * from './assignment-type-dto';
7
7
  export * from './attributes';
8
8
  export * from './cellphone-validation-dto';
9
+ export * from './chat-lifecycle-event-dto';
10
+ export * from './chat-lifecycle-events-response-dto';
9
11
  export * from './component-template-dto';
10
12
  export * from './contacts-response-dto';
11
13
  export * from './conversation-message-dto';
14
+ export * from './create-chat-lifecycle-event-dto';
12
15
  export * from './data-dto';
13
16
  export * from './data-unauthorized-dto';
14
17
  export * from './document-message-dto';
@@ -22,9 +22,12 @@ __exportStar(require("./assign-to-me-dto"), exports);
22
22
  __exportStar(require("./assignment-type-dto"), exports);
23
23
  __exportStar(require("./attributes"), exports);
24
24
  __exportStar(require("./cellphone-validation-dto"), exports);
25
+ __exportStar(require("./chat-lifecycle-event-dto"), exports);
26
+ __exportStar(require("./chat-lifecycle-events-response-dto"), exports);
25
27
  __exportStar(require("./component-template-dto"), exports);
26
28
  __exportStar(require("./contacts-response-dto"), exports);
27
29
  __exportStar(require("./conversation-message-dto"), exports);
30
+ __exportStar(require("./create-chat-lifecycle-event-dto"), exports);
28
31
  __exportStar(require("./data-dto"), exports);
29
32
  __exportStar(require("./data-unauthorized-dto"), exports);
30
33
  __exportStar(require("./document-message-dto"), exports);
@@ -34,6 +34,12 @@ export interface UpdateAgentDto {
34
34
  * @example true
35
35
  */
36
36
  enableAgentSales?: boolean;
37
+ /**
38
+ * @type {boolean}
39
+ * @memberof UpdateAgentDto
40
+ * @example true
41
+ */
42
+ enableAgentAtc?: boolean;
37
43
  /**
38
44
  * @type {number}
39
45
  * @memberof UpdateAgentDto
@@ -0,0 +1,74 @@
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
+ /**
16
+ *
17
+ *
18
+ * @export
19
+ * @interface ChatLifecycleEventDto
20
+ */
21
+ export interface ChatLifecycleEventDto {
22
+
23
+ /**
24
+ * @type {number}
25
+ * @memberof ChatLifecycleEventDto
26
+ * @example 1
27
+ */
28
+ id: number;
29
+
30
+ /**
31
+ * @type {number}
32
+ * @memberof ChatLifecycleEventDto
33
+ * @example 58
34
+ */
35
+ chatId: number;
36
+
37
+ /**
38
+ * @type {string}
39
+ * @memberof ChatLifecycleEventDto
40
+ * @example CHAT_CLOSED
41
+ */
42
+ eventType: ChatLifecycleEventDtoEventTypeEnum;
43
+
44
+ /**
45
+ * @type {number}
46
+ * @memberof ChatLifecycleEventDto
47
+ * @example 458
48
+ */
49
+ sessionId: number;
50
+
51
+ /**
52
+ * @type {{ [key: string]: any; }}
53
+ * @memberof ChatLifecycleEventDto
54
+ * @example {"from":"CHAT_CLOSED","to":"CHAT_REOPENED","triggeredBy":1203}
55
+ */
56
+ eventPayload: { [key: string]: any; } | null;
57
+
58
+ /**
59
+ * @type {Date}
60
+ * @memberof ChatLifecycleEventDto
61
+ */
62
+ createdAt: Date;
63
+ }
64
+
65
+ /**
66
+ * @export
67
+ * @enum {string}
68
+ */
69
+ export enum ChatLifecycleEventDtoEventTypeEnum {
70
+ OPENED = 'CHAT_OPENED',
71
+ CLOSED = 'CHAT_CLOSED',
72
+ REOPENED = 'CHAT_REOPENED'
73
+ }
74
+
@@ -0,0 +1,29 @@
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 { ChatLifecycleEventDto } from './chat-lifecycle-event-dto';
16
+ /**
17
+ *
18
+ *
19
+ * @export
20
+ * @interface ChatLifecycleEventsResponseDto
21
+ */
22
+ export interface ChatLifecycleEventsResponseDto {
23
+
24
+ /**
25
+ * @type {Array<ChatLifecycleEventDto>}
26
+ * @memberof ChatLifecycleEventsResponseDto
27
+ */
28
+ data: Array<ChatLifecycleEventDto>;
29
+ }
@@ -0,0 +1,47 @@
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
+ /**
16
+ *
17
+ *
18
+ * @export
19
+ * @interface CreateChatLifecycleEventDto
20
+ */
21
+ export interface CreateChatLifecycleEventDto {
22
+
23
+ /**
24
+ * @type {string}
25
+ * @memberof CreateChatLifecycleEventDto
26
+ * @example CHAT_CLOSED
27
+ */
28
+ eventType: CreateChatLifecycleEventDtoEventTypeEnum;
29
+
30
+ /**
31
+ * @type {number}
32
+ * @memberof CreateChatLifecycleEventDto
33
+ * @example 1203
34
+ */
35
+ triggeredBy?: number;
36
+ }
37
+
38
+ /**
39
+ * @export
40
+ * @enum {string}
41
+ */
42
+ export enum CreateChatLifecycleEventDtoEventTypeEnum {
43
+ OPENED = 'CHAT_OPENED',
44
+ CLOSED = 'CHAT_CLOSED',
45
+ REOPENED = 'CHAT_REOPENED'
46
+ }
47
+
package/models/index.ts CHANGED
@@ -6,9 +6,12 @@ export * from './assign-to-me-dto';
6
6
  export * from './assignment-type-dto';
7
7
  export * from './attributes';
8
8
  export * from './cellphone-validation-dto';
9
+ export * from './chat-lifecycle-event-dto';
10
+ export * from './chat-lifecycle-events-response-dto';
9
11
  export * from './component-template-dto';
10
12
  export * from './contacts-response-dto';
11
13
  export * from './conversation-message-dto';
14
+ export * from './create-chat-lifecycle-event-dto';
12
15
  export * from './data-dto';
13
16
  export * from './data-unauthorized-dto';
14
17
  export * from './document-message-dto';
@@ -41,6 +41,13 @@ export interface UpdateAgentDto {
41
41
  */
42
42
  enableAgentSales?: boolean;
43
43
 
44
+ /**
45
+ * @type {boolean}
46
+ * @memberof UpdateAgentDto
47
+ * @example true
48
+ */
49
+ enableAgentAtc?: boolean;
50
+
44
51
  /**
45
52
  * @type {number}
46
53
  * @memberof UpdateAgentDto
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@libgot/whatsapp-bridge-sdk",
3
- "version": "1.0.43",
3
+ "version": "1.0.44-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.13.2"
20
+ "axios": "^1.15.2"
21
21
  },
22
22
  "devDependencies": {
23
23
  "@types/node": "^12.11.5",