@libgot/whatsapp-bridge-sdk 1.0.43 → 1.0.44-rc.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -2
- package/apis/chats-api.ts +301 -0
- package/dist/apis/chats-api.d.ts +119 -0
- package/dist/apis/chats-api.js +302 -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/chat-lifecycle-event-dto.d.ts +65 -0
- package/dist/models/chat-lifecycle-event-dto.js +26 -0
- package/dist/models/chat-lifecycle-events-response-dto.d.ts +25 -0
- package/dist/models/chat-lifecycle-events-response-dto.js +15 -0
- package/dist/models/create-chat-lifecycle-event-dto.d.ts +40 -0
- package/dist/models/create-chat-lifecycle-event-dto.js +26 -0
- package/dist/models/index.d.ts +4 -0
- package/dist/models/index.js +4 -0
- package/dist/models/update-agent-dto.d.ts +6 -0
- package/models/chat-latest-status-dto.ts +68 -0
- package/models/chat-lifecycle-event-dto.ts +74 -0
- package/models/chat-lifecycle-events-response-dto.ts +29 -0
- package/models/create-chat-lifecycle-event-dto.ts +47 -0
- package/models/index.ts +4 -0
- package/models/update-agent-dto.ts +7 -0
- package/package.json +2 -2
|
@@ -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,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
|
+
|
|
@@ -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,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';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@libgot/whatsapp-bridge-sdk",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.44-rc.2",
|
|
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.
|
|
20
|
+
"axios": "^1.15.2"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
23
|
"@types/node": "^12.11.5",
|