@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.
@@ -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,112 @@ 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
+ }),
301
+ /**
302
+ *
303
+ * @param {number} id
304
+ * @param {number} branchId
305
+ * @param {string} apikey
306
+ * @param {*} [options] Override http request option.
307
+ * @throws {RequiredError}
308
+ */
309
+ getChatLatestStatus: (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 = {}) {
310
+ // verify required parameter 'id' is not null or undefined
311
+ if (id === null || id === undefined) {
312
+ throw new base_1.RequiredError('id', 'Required parameter id was null or undefined when calling getChatLatestStatus.');
313
+ }
314
+ // verify required parameter 'branchId' is not null or undefined
315
+ if (branchId === null || branchId === undefined) {
316
+ throw new base_1.RequiredError('branchId', 'Required parameter branchId was null or undefined when calling getChatLatestStatus.');
317
+ }
318
+ // verify required parameter 'apikey' is not null or undefined
319
+ if (apikey === null || apikey === undefined) {
320
+ throw new base_1.RequiredError('apikey', 'Required parameter apikey was null or undefined when calling getChatLatestStatus.');
321
+ }
322
+ const localVarPath = `/api/chats/{id}/latest-status`
323
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
324
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
325
+ const localVarUrlObj = new URL(localVarPath, 'https://example.com');
326
+ let baseOptions;
327
+ if (configuration) {
328
+ baseOptions = configuration.baseOptions;
329
+ }
330
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
331
+ const localVarHeaderParameter = {};
332
+ const localVarQueryParameter = {};
333
+ if (branchId !== undefined) {
334
+ localVarQueryParameter['branchId'] = branchId;
335
+ }
336
+ if (apikey !== undefined && apikey !== null) {
337
+ localVarHeaderParameter['apikey'] = String(apikey);
338
+ }
339
+ const query = new URLSearchParams(localVarUrlObj.search);
340
+ for (const key in localVarQueryParameter) {
341
+ query.set(key, localVarQueryParameter[key]);
342
+ }
343
+ for (const key in options.params) {
344
+ query.set(key, options.params[key]);
345
+ }
346
+ localVarUrlObj.search = (new URLSearchParams(query)).toString();
347
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
348
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
349
+ return {
350
+ url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
351
+ options: localVarRequestOptions,
352
+ };
353
+ }),
187
354
  /**
188
355
  *
189
356
  * @param {number} branchId
@@ -457,6 +624,24 @@ const ChatsApiFp = function (configuration) {
457
624
  };
458
625
  });
459
626
  },
627
+ /**
628
+ *
629
+ * @param {CreateChatLifecycleEventDto} body
630
+ * @param {string} apikey
631
+ * @param {number} branchId
632
+ * @param {number} id
633
+ * @param {*} [options] Override http request option.
634
+ * @throws {RequiredError}
635
+ */
636
+ createChatEvent(body, apikey, branchId, id, options) {
637
+ return __awaiter(this, void 0, void 0, function* () {
638
+ const localVarAxiosArgs = yield (0, exports.ChatsApiAxiosParamCreator)(configuration).createChatEvent(body, apikey, branchId, id, options);
639
+ return (axios = axios_1.default, basePath = base_1.BASE_PATH) => {
640
+ const axiosRequestArgs = Object.assign(Object.assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
641
+ return axios.request(axiosRequestArgs);
642
+ };
643
+ });
644
+ },
460
645
  /**
461
646
  *
462
647
  * @param {number} id
@@ -473,6 +658,40 @@ const ChatsApiFp = function (configuration) {
473
658
  };
474
659
  });
475
660
  },
661
+ /**
662
+ *
663
+ * @param {number} id
664
+ * @param {number} branchId
665
+ * @param {string} apikey
666
+ * @param {*} [options] Override http request option.
667
+ * @throws {RequiredError}
668
+ */
669
+ getChatEvents(id, branchId, apikey, options) {
670
+ return __awaiter(this, void 0, void 0, function* () {
671
+ const localVarAxiosArgs = yield (0, exports.ChatsApiAxiosParamCreator)(configuration).getChatEvents(id, branchId, apikey, options);
672
+ return (axios = axios_1.default, basePath = base_1.BASE_PATH) => {
673
+ const axiosRequestArgs = Object.assign(Object.assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
674
+ return axios.request(axiosRequestArgs);
675
+ };
676
+ });
677
+ },
678
+ /**
679
+ *
680
+ * @param {number} id
681
+ * @param {number} branchId
682
+ * @param {string} apikey
683
+ * @param {*} [options] Override http request option.
684
+ * @throws {RequiredError}
685
+ */
686
+ getChatLatestStatus(id, branchId, apikey, options) {
687
+ return __awaiter(this, void 0, void 0, function* () {
688
+ const localVarAxiosArgs = yield (0, exports.ChatsApiAxiosParamCreator)(configuration).getChatLatestStatus(id, branchId, apikey, options);
689
+ return (axios = axios_1.default, basePath = base_1.BASE_PATH) => {
690
+ const axiosRequestArgs = Object.assign(Object.assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
691
+ return axios.request(axiosRequestArgs);
692
+ };
693
+ });
694
+ },
476
695
  /**
477
696
  *
478
697
  * @param {number} branchId
@@ -582,6 +801,20 @@ const ChatsApiFactory = function (configuration, basePath, axios) {
582
801
  return (0, exports.ChatsApiFp)(configuration).assignmentType(body, apikey, cellphone, id, options).then((request) => request(axios, basePath));
583
802
  });
584
803
  },
804
+ /**
805
+ *
806
+ * @param {CreateChatLifecycleEventDto} body
807
+ * @param {string} apikey
808
+ * @param {number} branchId
809
+ * @param {number} id
810
+ * @param {*} [options] Override http request option.
811
+ * @throws {RequiredError}
812
+ */
813
+ createChatEvent(body, apikey, branchId, id, options) {
814
+ return __awaiter(this, void 0, void 0, function* () {
815
+ return (0, exports.ChatsApiFp)(configuration).createChatEvent(body, apikey, branchId, id, options).then((request) => request(axios, basePath));
816
+ });
817
+ },
585
818
  /**
586
819
  *
587
820
  * @param {number} id
@@ -594,6 +827,32 @@ const ChatsApiFactory = function (configuration, basePath, axios) {
594
827
  return (0, exports.ChatsApiFp)(configuration).getChat(id, apikey, options).then((request) => request(axios, basePath));
595
828
  });
596
829
  },
830
+ /**
831
+ *
832
+ * @param {number} id
833
+ * @param {number} branchId
834
+ * @param {string} apikey
835
+ * @param {*} [options] Override http request option.
836
+ * @throws {RequiredError}
837
+ */
838
+ getChatEvents(id, branchId, apikey, options) {
839
+ return __awaiter(this, void 0, void 0, function* () {
840
+ return (0, exports.ChatsApiFp)(configuration).getChatEvents(id, branchId, apikey, options).then((request) => request(axios, basePath));
841
+ });
842
+ },
843
+ /**
844
+ *
845
+ * @param {number} id
846
+ * @param {number} branchId
847
+ * @param {string} apikey
848
+ * @param {*} [options] Override http request option.
849
+ * @throws {RequiredError}
850
+ */
851
+ getChatLatestStatus(id, branchId, apikey, options) {
852
+ return __awaiter(this, void 0, void 0, function* () {
853
+ return (0, exports.ChatsApiFp)(configuration).getChatLatestStatus(id, branchId, apikey, options).then((request) => request(axios, basePath));
854
+ });
855
+ },
597
856
  /**
598
857
  *
599
858
  * @param {number} branchId
@@ -690,6 +949,21 @@ class ChatsApi extends base_1.BaseAPI {
690
949
  return (0, exports.ChatsApiFp)(this.configuration).assignmentType(body, apikey, cellphone, id, options).then((request) => request(this.axios, this.basePath));
691
950
  });
692
951
  }
952
+ /**
953
+ *
954
+ * @param {CreateChatLifecycleEventDto} body
955
+ * @param {string} apikey
956
+ * @param {number} branchId
957
+ * @param {number} id
958
+ * @param {*} [options] Override http request option.
959
+ * @throws {RequiredError}
960
+ * @memberof ChatsApi
961
+ */
962
+ createChatEvent(body, apikey, branchId, id, options) {
963
+ return __awaiter(this, void 0, void 0, function* () {
964
+ return (0, exports.ChatsApiFp)(this.configuration).createChatEvent(body, apikey, branchId, id, options).then((request) => request(this.axios, this.basePath));
965
+ });
966
+ }
693
967
  /**
694
968
  *
695
969
  * @param {number} id
@@ -703,6 +977,34 @@ class ChatsApi extends base_1.BaseAPI {
703
977
  return (0, exports.ChatsApiFp)(this.configuration).getChat(id, apikey, options).then((request) => request(this.axios, this.basePath));
704
978
  });
705
979
  }
980
+ /**
981
+ *
982
+ * @param {number} id
983
+ * @param {number} branchId
984
+ * @param {string} apikey
985
+ * @param {*} [options] Override http request option.
986
+ * @throws {RequiredError}
987
+ * @memberof ChatsApi
988
+ */
989
+ getChatEvents(id, branchId, apikey, options) {
990
+ return __awaiter(this, void 0, void 0, function* () {
991
+ return (0, exports.ChatsApiFp)(this.configuration).getChatEvents(id, branchId, apikey, options).then((request) => request(this.axios, this.basePath));
992
+ });
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
+ getChatLatestStatus(id, branchId, apikey, options) {
1004
+ return __awaiter(this, void 0, void 0, function* () {
1005
+ return (0, exports.ChatsApiFp)(this.configuration).getChatLatestStatus(id, branchId, apikey, options).then((request) => request(this.axios, this.basePath));
1006
+ });
1007
+ }
706
1008
  /**
707
1009
  *
708
1010
  * @param {number} branchId
@@ -0,0 +1,58 @@
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 ChatLatestStatusDto
17
+ */
18
+ export interface ChatLatestStatusDto {
19
+ /**
20
+ * @type {number}
21
+ * @memberof ChatLatestStatusDto
22
+ * @example 3101
23
+ */
24
+ chatId: number;
25
+ /**
26
+ * @type {boolean}
27
+ * @memberof ChatLatestStatusDto
28
+ * @example true
29
+ */
30
+ hasActiveSession: boolean;
31
+ /**
32
+ * @type {number}
33
+ * @memberof ChatLatestStatusDto
34
+ * @example 920
35
+ */
36
+ sessionId: number | null;
37
+ /**
38
+ * @type {string}
39
+ * @memberof ChatLatestStatusDto
40
+ * @example CHAT_REOPENED
41
+ */
42
+ lastState: ChatLatestStatusDtoLastStateEnum;
43
+ /**
44
+ * @type {Date}
45
+ * @memberof ChatLatestStatusDto
46
+ * @example 2026-04-20T10:20Z
47
+ */
48
+ lastStateCreatedAt: Date | null;
49
+ }
50
+ /**
51
+ * @export
52
+ * @enum {string}
53
+ */
54
+ export declare enum ChatLatestStatusDtoLastStateEnum {
55
+ OPENED = "CHAT_OPENED",
56
+ CLOSED = "CHAT_CLOSED",
57
+ REOPENED = "CHAT_REOPENED"
58
+ }
@@ -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.ChatLatestStatusDtoLastStateEnum = void 0;
17
+ /**
18
+ * @export
19
+ * @enum {string}
20
+ */
21
+ var ChatLatestStatusDtoLastStateEnum;
22
+ (function (ChatLatestStatusDtoLastStateEnum) {
23
+ ChatLatestStatusDtoLastStateEnum["OPENED"] = "CHAT_OPENED";
24
+ ChatLatestStatusDtoLastStateEnum["CLOSED"] = "CHAT_CLOSED";
25
+ ChatLatestStatusDtoLastStateEnum["REOPENED"] = "CHAT_REOPENED";
26
+ })(ChatLatestStatusDtoLastStateEnum || (exports.ChatLatestStatusDtoLastStateEnum = ChatLatestStatusDtoLastStateEnum = {}));
@@ -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,13 @@ 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-latest-status-dto';
10
+ export * from './chat-lifecycle-event-dto';
11
+ export * from './chat-lifecycle-events-response-dto';
9
12
  export * from './component-template-dto';
10
13
  export * from './contacts-response-dto';
11
14
  export * from './conversation-message-dto';
15
+ export * from './create-chat-lifecycle-event-dto';
12
16
  export * from './data-dto';
13
17
  export * from './data-unauthorized-dto';
14
18
  export * from './document-message-dto';
@@ -22,9 +22,13 @@ __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-latest-status-dto"), exports);
26
+ __exportStar(require("./chat-lifecycle-event-dto"), exports);
27
+ __exportStar(require("./chat-lifecycle-events-response-dto"), exports);
25
28
  __exportStar(require("./component-template-dto"), exports);
26
29
  __exportStar(require("./contacts-response-dto"), exports);
27
30
  __exportStar(require("./conversation-message-dto"), exports);
31
+ __exportStar(require("./create-chat-lifecycle-event-dto"), exports);
28
32
  __exportStar(require("./data-dto"), exports);
29
33
  __exportStar(require("./data-unauthorized-dto"), exports);
30
34
  __exportStar(require("./document-message-dto"), exports);