@libgot/whatsapp-bridge-sdk 1.0.42 → 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.
Files changed (39) hide show
  1. package/README.md +2 -2
  2. package/api.ts +1 -0
  3. package/apis/chats-api.ts +379 -0
  4. package/apis/sessions-api.ts +83 -0
  5. package/apis/tasks-api.ts +141 -0
  6. package/dist/api.d.ts +1 -0
  7. package/dist/api.js +1 -0
  8. package/dist/apis/chats-api.d.ts +149 -0
  9. package/dist/apis/chats-api.js +381 -0
  10. package/dist/apis/sessions-api.d.ts +33 -0
  11. package/dist/apis/sessions-api.js +86 -0
  12. package/dist/apis/tasks-api.d.ts +74 -0
  13. package/dist/apis/tasks-api.js +153 -0
  14. package/dist/models/chat-lifecycle-event-dto.d.ts +65 -0
  15. package/dist/models/chat-lifecycle-event-dto.js +26 -0
  16. package/dist/models/chat-lifecycle-events-response-dto.d.ts +25 -0
  17. package/dist/models/chat-lifecycle-events-response-dto.js +15 -0
  18. package/dist/models/create-chat-lifecycle-event-dto.d.ts +40 -0
  19. package/dist/models/create-chat-lifecycle-event-dto.js +26 -0
  20. package/dist/models/index.d.ts +6 -0
  21. package/dist/models/index.js +6 -0
  22. package/dist/models/repair-missing-message-keys-dto.d.ts +19 -0
  23. package/dist/models/repair-missing-message-keys-dto.js +15 -0
  24. package/dist/models/send-template-data-dto.d.ts +6 -0
  25. package/dist/models/update-agent-dto.d.ts +55 -0
  26. package/dist/models/update-agent-dto.js +15 -0
  27. package/dist/models/update-chat-status-dto.d.ts +43 -0
  28. package/dist/models/update-chat-status-dto.js +15 -0
  29. package/dist/models/whatsapp-chat-dto.d.ts +6 -0
  30. package/models/chat-lifecycle-event-dto.ts +74 -0
  31. package/models/chat-lifecycle-events-response-dto.ts +29 -0
  32. package/models/create-chat-lifecycle-event-dto.ts +47 -0
  33. package/models/index.ts +6 -0
  34. package/models/repair-missing-message-keys-dto.ts +22 -0
  35. package/models/send-template-data-dto.ts +7 -0
  36. package/models/update-agent-dto.ts +64 -0
  37. package/models/update-chat-status-dto.ts +50 -0
  38. package/models/whatsapp-chat-dto.ts +7 -0
  39. package/package.json +2 -2
@@ -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';
@@ -25,6 +28,7 @@ export * from './pagination-chat-response-dto';
25
28
  export * from './parameter-template-dto';
26
29
  export * from './read-message-dto';
27
30
  export * from './read-message-response-data-dto';
31
+ export * from './repair-missing-message-keys-dto';
28
32
  export * from './role-dto';
29
33
  export * from './send-template-data-dto';
30
34
  export * from './send-template-dto';
@@ -39,6 +43,8 @@ export * from './status-dto';
39
43
  export * from './tokens-dto';
40
44
  export * from './unauthorized-dto';
41
45
  export * from './unauthorized-token-dto';
46
+ export * from './update-agent-dto';
47
+ export * from './update-chat-status-dto';
42
48
  export * from './user-detail-dto';
43
49
  export * from './user-update-password-dto';
44
50
  export * from './whatsapp-chat-dto';
@@ -0,0 +1,22 @@
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 RepairMissingMessageKeysDto
20
+ */
21
+ export interface RepairMissingMessageKeysDto {
22
+ }
@@ -61,6 +61,13 @@ export interface SendTemplateDataDto {
61
61
  * @example 3265
62
62
  */
63
63
  senderId?: number;
64
+
65
+ /**
66
+ * @type {boolean}
67
+ * @memberof SendTemplateDataDto
68
+ * @example true
69
+ */
70
+ isMessageMarketing?: boolean;
64
71
  }
65
72
 
66
73
  /**
@@ -0,0 +1,64 @@
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 UpdateAgentDto
20
+ */
21
+ export interface UpdateAgentDto {
22
+
23
+ /**
24
+ * @type {number}
25
+ * @memberof UpdateAgentDto
26
+ * @example 1
27
+ */
28
+ branchId?: number;
29
+
30
+ /**
31
+ * @type {boolean}
32
+ * @memberof UpdateAgentDto
33
+ * @example true
34
+ */
35
+ enableAgentPusher?: boolean;
36
+
37
+ /**
38
+ * @type {boolean}
39
+ * @memberof UpdateAgentDto
40
+ * @example true
41
+ */
42
+ enableAgentSales?: boolean;
43
+
44
+ /**
45
+ * @type {boolean}
46
+ * @memberof UpdateAgentDto
47
+ * @example true
48
+ */
49
+ enableAgentAtc?: boolean;
50
+
51
+ /**
52
+ * @type {number}
53
+ * @memberof UpdateAgentDto
54
+ * @example 543814654987
55
+ */
56
+ cellphone?: number;
57
+
58
+ /**
59
+ * @type {number}
60
+ * @memberof UpdateAgentDto
61
+ * @example 1354
62
+ */
63
+ leadId?: number;
64
+ }
@@ -0,0 +1,50 @@
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 UpdateChatStatusDto
20
+ */
21
+ export interface UpdateChatStatusDto {
22
+
23
+ /**
24
+ * @type {number}
25
+ * @memberof UpdateChatStatusDto
26
+ * @example 5438132165465
27
+ */
28
+ cellphone: number;
29
+
30
+ /**
31
+ * @type {boolean}
32
+ * @memberof UpdateChatStatusDto
33
+ * @example true
34
+ */
35
+ isActive: boolean;
36
+
37
+ /**
38
+ * @type {number}
39
+ * @memberof UpdateChatStatusDto
40
+ * @example 1
41
+ */
42
+ branchId: number;
43
+
44
+ /**
45
+ * @type {number}
46
+ * @memberof UpdateChatStatusDto
47
+ * @example 1354
48
+ */
49
+ leadId?: number;
50
+ }
@@ -103,4 +103,11 @@ export interface WhatsappChatDto {
103
103
  * @example 9023
104
104
  */
105
105
  leadId: number;
106
+
107
+ /**
108
+ * @type {boolean}
109
+ * @memberof WhatsappChatDto
110
+ * @example false
111
+ */
112
+ isMarketingOptOut: boolean;
106
113
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@libgot/whatsapp-bridge-sdk",
3
- "version": "1.0.42",
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",