@libgot/whatsapp-bridge-sdk 1.0.3 → 1.0.5
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 +2 -2
- package/api.ts +2 -0
- package/apis/chats-api.ts +117 -0
- package/apis/default-api.ts +0 -62
- package/apis/messages-api.ts +117 -0
- package/dist/api.d.ts +2 -0
- package/dist/api.js +2 -0
- package/dist/apis/chats-api.d.ts +66 -0
- package/dist/apis/chats-api.js +203 -0
- package/dist/apis/default-api.d.ts +0 -25
- package/dist/apis/default-api.js +0 -84
- package/dist/apis/messages-api.d.ts +66 -0
- package/dist/apis/messages-api.js +203 -0
- package/dist/models/chats-response-dto.d.ts +25 -0
- package/dist/models/chats-response-dto.js +15 -0
- package/dist/models/conversation-message-dto.d.ts +25 -0
- package/dist/models/conversation-message-dto.js +15 -0
- package/dist/models/index.d.ts +5 -1
- package/dist/models/index.js +5 -1
- package/dist/models/message-response-dto.d.ts +25 -0
- package/dist/models/message-response-dto.js +15 -0
- package/dist/models/whatsapp-chat-dto.d.ts +55 -0
- package/dist/models/whatsapp-chat-dto.js +15 -0
- package/dist/models/whatsapp-contact-dto.d.ts +1 -1
- package/dist/models/whatsapp-message-dto.d.ts +43 -0
- package/dist/models/whatsapp-message-dto.js +15 -0
- package/models/chats-response-dto.ts +29 -0
- package/models/conversation-message-dto.ts +29 -0
- package/models/index.ts +5 -1
- package/models/message-response-dto.ts +29 -0
- package/models/whatsapp-chat-dto.ts +64 -0
- package/models/whatsapp-contact-dto.ts +1 -1
- package/models/whatsapp-message-dto.ts +50 -0
- package/package.json +1 -1
- package/publish.sh +1 -0
|
@@ -39,5 +39,5 @@ export interface WhatsappContactDto {
|
|
|
39
39
|
* @memberof WhatsappContactDto
|
|
40
40
|
* @example https://pps.whatsapp.net/v/t61.24694-24/457509556_2356010488071107_6417764276476104496_n.jpg?ccb=11-4&oh=01_Q5AaIIFucBhJzpQiltPNuSAmyUkHd0uxhyBTWGxrhxSmEaU2&oe=677BCB9A&_nc_sid=5e03e0&_nc_cat=101
|
|
41
41
|
*/
|
|
42
|
-
profilePicUrl
|
|
42
|
+
profilePicUrl: string | null;
|
|
43
43
|
}
|
|
@@ -0,0 +1,43 @@
|
|
|
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 { ConversationMessageDto } from './conversation-message-dto';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface WhatsappMessageDto
|
|
18
|
+
*/
|
|
19
|
+
export interface WhatsappMessageDto {
|
|
20
|
+
/**
|
|
21
|
+
* @type {number}
|
|
22
|
+
* @memberof WhatsappMessageDto
|
|
23
|
+
* @example 9
|
|
24
|
+
*/
|
|
25
|
+
id: number;
|
|
26
|
+
/**
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof WhatsappMessageDto
|
|
29
|
+
* @example cm5o4kbjf001o8gppboeyg0xo
|
|
30
|
+
*/
|
|
31
|
+
externalMessageId: string;
|
|
32
|
+
/**
|
|
33
|
+
* @type {number}
|
|
34
|
+
* @memberof WhatsappMessageDto
|
|
35
|
+
* @example 1736452031
|
|
36
|
+
*/
|
|
37
|
+
messageTimestamp: number;
|
|
38
|
+
/**
|
|
39
|
+
* @type {ConversationMessageDto}
|
|
40
|
+
* @memberof WhatsappMessageDto
|
|
41
|
+
*/
|
|
42
|
+
message: ConversationMessageDto;
|
|
43
|
+
}
|
|
@@ -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,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 { WhatsappChatDto } from './whatsapp-chat-dto';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
* @interface ChatsResponseDTO
|
|
21
|
+
*/
|
|
22
|
+
export interface ChatsResponseDTO {
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* @type {Array<WhatsappChatDto>}
|
|
26
|
+
* @memberof ChatsResponseDTO
|
|
27
|
+
*/
|
|
28
|
+
data: Array<WhatsappChatDto>;
|
|
29
|
+
}
|
|
@@ -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
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface ConversationMessageDto
|
|
20
|
+
*/
|
|
21
|
+
export interface ConversationMessageDto {
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof ConversationMessageDto
|
|
26
|
+
* @example Hola como estas?
|
|
27
|
+
*/
|
|
28
|
+
conversation: string;
|
|
29
|
+
}
|
package/models/index.ts
CHANGED
|
@@ -3,12 +3,14 @@ export * from './api-response-auth-dto';
|
|
|
3
3
|
export * from './api-response-user-dto';
|
|
4
4
|
export * from './attributes';
|
|
5
5
|
export * from './auth-dto';
|
|
6
|
+
export * from './chats-response-dto';
|
|
6
7
|
export * from './contacts-response-dto';
|
|
8
|
+
export * from './conversation-message-dto';
|
|
7
9
|
export * from './data-dto';
|
|
8
10
|
export * from './data-unauthorized-dto';
|
|
9
11
|
export * from './inline-response503';
|
|
10
12
|
export * from './inline-response503-info';
|
|
11
|
-
export * from './message-dto';
|
|
13
|
+
export * from './message-response-dto';
|
|
12
14
|
export * from './role-dto';
|
|
13
15
|
export * from './status-dto';
|
|
14
16
|
export * from './tokens-dto';
|
|
@@ -16,4 +18,6 @@ export * from './unauthorized-dto';
|
|
|
16
18
|
export * from './unauthorized-token-dto';
|
|
17
19
|
export * from './user-detail-dto';
|
|
18
20
|
export * from './user-update-password-dto';
|
|
21
|
+
export * from './whatsapp-chat-dto';
|
|
19
22
|
export * from './whatsapp-contact-dto';
|
|
23
|
+
export * from './whatsapp-message-dto';
|
|
@@ -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 { WhatsappMessageDto } from './whatsapp-message-dto';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
* @interface MessageResponseDto
|
|
21
|
+
*/
|
|
22
|
+
export interface MessageResponseDto {
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* @type {Array<WhatsappMessageDto>}
|
|
26
|
+
* @memberof MessageResponseDto
|
|
27
|
+
*/
|
|
28
|
+
data: Array<WhatsappMessageDto>;
|
|
29
|
+
}
|
|
@@ -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
|
+
import { WhatsappContactDto } from './whatsapp-contact-dto';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
* @interface WhatsappChatDto
|
|
21
|
+
*/
|
|
22
|
+
export interface WhatsappChatDto {
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* @type {number}
|
|
26
|
+
* @memberof WhatsappChatDto
|
|
27
|
+
* @example 23
|
|
28
|
+
*/
|
|
29
|
+
id: number;
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof WhatsappChatDto
|
|
34
|
+
* @example cm55pog2s0042cbkmvehdw2ig
|
|
35
|
+
*/
|
|
36
|
+
externalChatId: string;
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof WhatsappChatDto
|
|
41
|
+
* @example 15551578788@s.whatsapp.net
|
|
42
|
+
*/
|
|
43
|
+
remoteJid: string;
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @memberof WhatsappChatDto
|
|
48
|
+
* @example Jhon Doe
|
|
49
|
+
*/
|
|
50
|
+
name: string;
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* @type {number}
|
|
54
|
+
* @memberof WhatsappChatDto
|
|
55
|
+
* @example 3
|
|
56
|
+
*/
|
|
57
|
+
unreadMessages: number;
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* @type {WhatsappContactDto}
|
|
61
|
+
* @memberof WhatsappChatDto
|
|
62
|
+
*/
|
|
63
|
+
whatsappContact: WhatsappContactDto;
|
|
64
|
+
}
|
|
@@ -46,5 +46,5 @@ export interface WhatsappContactDto {
|
|
|
46
46
|
* @memberof WhatsappContactDto
|
|
47
47
|
* @example https://pps.whatsapp.net/v/t61.24694-24/457509556_2356010488071107_6417764276476104496_n.jpg?ccb=11-4&oh=01_Q5AaIIFucBhJzpQiltPNuSAmyUkHd0uxhyBTWGxrhxSmEaU2&oe=677BCB9A&_nc_sid=5e03e0&_nc_cat=101
|
|
48
48
|
*/
|
|
49
|
-
profilePicUrl
|
|
49
|
+
profilePicUrl: string | null;
|
|
50
50
|
}
|
|
@@ -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
|
+
import { ConversationMessageDto } from './conversation-message-dto';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
* @interface WhatsappMessageDto
|
|
21
|
+
*/
|
|
22
|
+
export interface WhatsappMessageDto {
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* @type {number}
|
|
26
|
+
* @memberof WhatsappMessageDto
|
|
27
|
+
* @example 9
|
|
28
|
+
*/
|
|
29
|
+
id: number;
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof WhatsappMessageDto
|
|
34
|
+
* @example cm5o4kbjf001o8gppboeyg0xo
|
|
35
|
+
*/
|
|
36
|
+
externalMessageId: string;
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof WhatsappMessageDto
|
|
41
|
+
* @example 1736452031
|
|
42
|
+
*/
|
|
43
|
+
messageTimestamp: number;
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* @type {ConversationMessageDto}
|
|
47
|
+
* @memberof WhatsappMessageDto
|
|
48
|
+
*/
|
|
49
|
+
message: ConversationMessageDto;
|
|
50
|
+
}
|
package/package.json
CHANGED
package/publish.sh
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
npm publish --access public
|