@libgot/whatsapp-bridge-sdk 1.0.44-rc.1 → 1.0.44
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 +3 -2
- package/apis/chats-api.ts +96 -0
- package/dist/apis/chats-api.d.ts +38 -0
- package/dist/apis/chats-api.js +97 -0
- package/dist/models/chat-latest-status-dto.d.ts +58 -0
- package/dist/models/chat-latest-status-dto.js +26 -0
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/models/chat-latest-status-dto.ts +68 -0
- package/models/index.ts +1 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @1.0.44
|
|
1
|
+
## @1.0.44
|
|
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.44
|
|
39
|
+
npm install @libgot/whatsapp-bridge-sdk@1.0.44 --save
|
|
40
|
+
pnpm add @libgot/whatsapp-bridge-sdk@1.0.44
|
|
40
41
|
```
|
|
41
42
|
|
|
42
43
|
_unPublished (not recommended):_
|
package/apis/chats-api.ts
CHANGED
|
@@ -19,6 +19,7 @@ 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';
|
|
22
23
|
import { ChatLifecycleEventDto } from '../models';
|
|
23
24
|
import { ChatLifecycleEventsResponseDto } from '../models';
|
|
24
25
|
import { CreateChatLifecycleEventDto } from '../models';
|
|
@@ -318,6 +319,63 @@ export const ChatsApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
318
319
|
options: localVarRequestOptions,
|
|
319
320
|
};
|
|
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
|
+
},
|
|
321
379
|
/**
|
|
322
380
|
*
|
|
323
381
|
* @param {number} branchId
|
|
@@ -657,6 +715,21 @@ export const ChatsApiFp = function(configuration?: Configuration) {
|
|
|
657
715
|
return axios.request(axiosRequestArgs);
|
|
658
716
|
};
|
|
659
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
|
+
},
|
|
660
733
|
/**
|
|
661
734
|
*
|
|
662
735
|
* @param {number} branchId
|
|
@@ -787,6 +860,17 @@ export const ChatsApiFactory = function (configuration?: Configuration, basePath
|
|
|
787
860
|
async getChatEvents(id: number, branchId: number, apikey: string, options?: AxiosRequestConfig): Promise<AxiosResponse<ChatLifecycleEventsResponseDto>> {
|
|
788
861
|
return ChatsApiFp(configuration).getChatEvents(id, branchId, apikey, options).then((request) => request(axios, basePath));
|
|
789
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
|
+
},
|
|
790
874
|
/**
|
|
791
875
|
*
|
|
792
876
|
* @param {number} branchId
|
|
@@ -907,6 +991,18 @@ export class ChatsApi extends BaseAPI {
|
|
|
907
991
|
public async getChatEvents(id: number, branchId: number, apikey: string, options?: AxiosRequestConfig) : Promise<AxiosResponse<ChatLifecycleEventsResponseDto>> {
|
|
908
992
|
return ChatsApiFp(this.configuration).getChatEvents(id, branchId, apikey, options).then((request) => request(this.axios, this.basePath));
|
|
909
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
|
+
}
|
|
910
1006
|
/**
|
|
911
1007
|
*
|
|
912
1008
|
* @param {number} branchId
|
package/dist/apis/chats-api.d.ts
CHANGED
|
@@ -14,6 +14,7 @@ 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';
|
|
17
18
|
import { ChatLifecycleEventDto } from '../models';
|
|
18
19
|
import { ChatLifecycleEventsResponseDto } from '../models';
|
|
19
20
|
import { CreateChatLifecycleEventDto } from '../models';
|
|
@@ -72,6 +73,15 @@ export declare const ChatsApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
72
73
|
* @throws {RequiredError}
|
|
73
74
|
*/
|
|
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>;
|
|
75
85
|
/**
|
|
76
86
|
*
|
|
77
87
|
* @param {number} branchId
|
|
@@ -165,6 +175,15 @@ export declare const ChatsApiFp: (configuration?: Configuration) => {
|
|
|
165
175
|
* @throws {RequiredError}
|
|
166
176
|
*/
|
|
167
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>>>;
|
|
168
187
|
/**
|
|
169
188
|
*
|
|
170
189
|
* @param {number} branchId
|
|
@@ -258,6 +277,15 @@ export declare const ChatsApiFactory: (configuration?: Configuration, basePath?:
|
|
|
258
277
|
* @throws {RequiredError}
|
|
259
278
|
*/
|
|
260
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>>;
|
|
261
289
|
/**
|
|
262
290
|
*
|
|
263
291
|
* @param {number} branchId
|
|
@@ -358,6 +386,16 @@ export declare class ChatsApi extends BaseAPI {
|
|
|
358
386
|
* @memberof ChatsApi
|
|
359
387
|
*/
|
|
360
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>>;
|
|
361
399
|
/**
|
|
362
400
|
*
|
|
363
401
|
* @param {number} branchId
|
package/dist/apis/chats-api.js
CHANGED
|
@@ -298,6 +298,59 @@ const ChatsApiAxiosParamCreator = function (configuration) {
|
|
|
298
298
|
options: localVarRequestOptions,
|
|
299
299
|
};
|
|
300
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
|
+
}),
|
|
301
354
|
/**
|
|
302
355
|
*
|
|
303
356
|
* @param {number} branchId
|
|
@@ -622,6 +675,23 @@ const ChatsApiFp = function (configuration) {
|
|
|
622
675
|
};
|
|
623
676
|
});
|
|
624
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
|
+
},
|
|
625
695
|
/**
|
|
626
696
|
*
|
|
627
697
|
* @param {number} branchId
|
|
@@ -770,6 +840,19 @@ const ChatsApiFactory = function (configuration, basePath, axios) {
|
|
|
770
840
|
return (0, exports.ChatsApiFp)(configuration).getChatEvents(id, branchId, apikey, options).then((request) => request(axios, basePath));
|
|
771
841
|
});
|
|
772
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
|
+
},
|
|
773
856
|
/**
|
|
774
857
|
*
|
|
775
858
|
* @param {number} branchId
|
|
@@ -908,6 +991,20 @@ class ChatsApi extends base_1.BaseAPI {
|
|
|
908
991
|
return (0, exports.ChatsApiFp)(this.configuration).getChatEvents(id, branchId, apikey, options).then((request) => request(this.axios, this.basePath));
|
|
909
992
|
});
|
|
910
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
|
+
}
|
|
911
1008
|
/**
|
|
912
1009
|
*
|
|
913
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 = {}));
|
package/dist/models/index.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ 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';
|
|
9
10
|
export * from './chat-lifecycle-event-dto';
|
|
10
11
|
export * from './chat-lifecycle-events-response-dto';
|
|
11
12
|
export * from './component-template-dto';
|
package/dist/models/index.js
CHANGED
|
@@ -22,6 +22,7 @@ __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);
|
|
25
26
|
__exportStar(require("./chat-lifecycle-event-dto"), exports);
|
|
26
27
|
__exportStar(require("./chat-lifecycle-events-response-dto"), exports);
|
|
27
28
|
__exportStar(require("./component-template-dto"), exports);
|
|
@@ -0,0 +1,68 @@
|
|
|
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 ChatLatestStatusDto
|
|
20
|
+
*/
|
|
21
|
+
export interface ChatLatestStatusDto {
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof ChatLatestStatusDto
|
|
26
|
+
* @example 3101
|
|
27
|
+
*/
|
|
28
|
+
chatId: number;
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* @type {boolean}
|
|
32
|
+
* @memberof ChatLatestStatusDto
|
|
33
|
+
* @example true
|
|
34
|
+
*/
|
|
35
|
+
hasActiveSession: boolean;
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof ChatLatestStatusDto
|
|
40
|
+
* @example 920
|
|
41
|
+
*/
|
|
42
|
+
sessionId: number | null;
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof ChatLatestStatusDto
|
|
47
|
+
* @example CHAT_REOPENED
|
|
48
|
+
*/
|
|
49
|
+
lastState: ChatLatestStatusDtoLastStateEnum;
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* @type {Date}
|
|
53
|
+
* @memberof ChatLatestStatusDto
|
|
54
|
+
* @example 2026-04-20T10:20Z
|
|
55
|
+
*/
|
|
56
|
+
lastStateCreatedAt: Date | null;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* @export
|
|
61
|
+
* @enum {string}
|
|
62
|
+
*/
|
|
63
|
+
export enum ChatLatestStatusDtoLastStateEnum {
|
|
64
|
+
OPENED = 'CHAT_OPENED',
|
|
65
|
+
CLOSED = 'CHAT_CLOSED',
|
|
66
|
+
REOPENED = 'CHAT_REOPENED'
|
|
67
|
+
}
|
|
68
|
+
|
package/models/index.ts
CHANGED
|
@@ -6,6 +6,7 @@ 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';
|
|
9
10
|
export * from './chat-lifecycle-event-dto';
|
|
10
11
|
export * from './chat-lifecycle-events-response-dto';
|
|
11
12
|
export * from './component-template-dto';
|