@libgot/whatsapp-bridge-sdk 1.0.11 → 1.0.13
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/apis/chats-api.ts +4 -4
- package/apis/messages-api.ts +76 -0
- package/dist/apis/chats-api.d.ts +4 -4
- package/dist/apis/messages-api.d.ts +31 -0
- package/dist/apis/messages-api.js +99 -0
- package/dist/models/index.d.ts +6 -2
- package/dist/models/index.js +6 -2
- package/dist/models/inline-response2011-class.d.ts +72 -0
- package/dist/models/inline-response2011-class.js +15 -0
- package/dist/models/inline-response2011-message.d.ts +25 -0
- package/dist/models/inline-response2011-message.js +15 -0
- package/dist/models/key-dto.d.ts +37 -0
- package/dist/models/key-dto.js +15 -0
- package/dist/models/send-text-dto.d.ts +31 -0
- package/dist/models/send-text-dto.js +15 -0
- package/dist/models/send-text-response-dto.d.ts +25 -0
- package/dist/models/send-text-response-dto.js +15 -0
- package/dist/models/whatsapp-chat-dto.d.ts +3 -3
- package/dist/models/whatsapp-chat-response-dto.d.ts +25 -0
- package/dist/models/whatsapp-chat-response-dto.js +15 -0
- package/models/index.ts +6 -2
- package/models/inline-response2011-class.ts +84 -0
- package/models/inline-response2011-message.ts +29 -0
- package/models/key-dto.ts +43 -0
- package/models/send-text-dto.ts +36 -0
- package/models/send-text-response-dto.ts +29 -0
- package/models/whatsapp-chat-dto.ts +3 -3
- package/models/whatsapp-chat-response-dto.ts +29 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @1.0.
|
|
1
|
+
## @1.0.13
|
|
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,7 @@ 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.
|
|
39
|
+
npm install @libgot/whatsapp-bridge-sdk@1.0.13 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
package/apis/chats-api.ts
CHANGED
|
@@ -17,8 +17,8 @@ import { Configuration } from '../configuration';
|
|
|
17
17
|
// Some imports not used depending on template conditions
|
|
18
18
|
// @ts-ignore
|
|
19
19
|
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
|
|
20
|
-
import { ActiveChatResponseDTO } from '../models';
|
|
21
20
|
import { ChatsResponseDTO } from '../models';
|
|
21
|
+
import { WhatsappChatResponseDTO } from '../models';
|
|
22
22
|
/**
|
|
23
23
|
* ChatsApi - axios parameter creator
|
|
24
24
|
* @export
|
|
@@ -112,7 +112,7 @@ export const ChatsApiFp = function(configuration?: Configuration) {
|
|
|
112
112
|
* @param {*} [options] Override http request option.
|
|
113
113
|
* @throws {RequiredError}
|
|
114
114
|
*/
|
|
115
|
-
async getChat(id: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<
|
|
115
|
+
async getChat(id: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<WhatsappChatResponseDTO>>> {
|
|
116
116
|
const localVarAxiosArgs = await ChatsApiAxiosParamCreator(configuration).getChat(id, options);
|
|
117
117
|
return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
|
|
118
118
|
const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
|
|
@@ -146,7 +146,7 @@ export const ChatsApiFactory = function (configuration?: Configuration, basePath
|
|
|
146
146
|
* @param {*} [options] Override http request option.
|
|
147
147
|
* @throws {RequiredError}
|
|
148
148
|
*/
|
|
149
|
-
async getChat(id: number, options?: AxiosRequestConfig): Promise<AxiosResponse<
|
|
149
|
+
async getChat(id: number, options?: AxiosRequestConfig): Promise<AxiosResponse<WhatsappChatResponseDTO>> {
|
|
150
150
|
return ChatsApiFp(configuration).getChat(id, options).then((request) => request(axios, basePath));
|
|
151
151
|
},
|
|
152
152
|
/**
|
|
@@ -174,7 +174,7 @@ export class ChatsApi extends BaseAPI {
|
|
|
174
174
|
* @throws {RequiredError}
|
|
175
175
|
* @memberof ChatsApi
|
|
176
176
|
*/
|
|
177
|
-
public async getChat(id: number, options?: AxiosRequestConfig) : Promise<AxiosResponse<
|
|
177
|
+
public async getChat(id: number, options?: AxiosRequestConfig) : Promise<AxiosResponse<WhatsappChatResponseDTO>> {
|
|
178
178
|
return ChatsApiFp(this.configuration).getChat(id, options).then((request) => request(this.axios, this.basePath));
|
|
179
179
|
}
|
|
180
180
|
/**
|
package/apis/messages-api.ts
CHANGED
|
@@ -18,6 +18,8 @@ import { Configuration } from '../configuration';
|
|
|
18
18
|
// @ts-ignore
|
|
19
19
|
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
|
|
20
20
|
import { MessageResponseDto } from '../models';
|
|
21
|
+
import { SendTextDto } from '../models';
|
|
22
|
+
import { SendTextResponseDto } from '../models';
|
|
21
23
|
/**
|
|
22
24
|
* MessagesApi - axios parameter creator
|
|
23
25
|
* @export
|
|
@@ -61,6 +63,48 @@ export const MessagesApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
61
63
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
62
64
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
63
65
|
|
|
66
|
+
return {
|
|
67
|
+
url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
|
|
68
|
+
options: localVarRequestOptions,
|
|
69
|
+
};
|
|
70
|
+
},
|
|
71
|
+
/**
|
|
72
|
+
*
|
|
73
|
+
* @param {SendTextDto} body
|
|
74
|
+
* @param {*} [options] Override http request option.
|
|
75
|
+
* @throws {RequiredError}
|
|
76
|
+
*/
|
|
77
|
+
sendMessage: async (body: SendTextDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
78
|
+
// verify required parameter 'body' is not null or undefined
|
|
79
|
+
if (body === null || body === undefined) {
|
|
80
|
+
throw new RequiredError('body','Required parameter body was null or undefined when calling sendMessage.');
|
|
81
|
+
}
|
|
82
|
+
const localVarPath = `/api/messages/send-text`;
|
|
83
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
84
|
+
const localVarUrlObj = new URL(localVarPath, 'https://example.com');
|
|
85
|
+
let baseOptions;
|
|
86
|
+
if (configuration) {
|
|
87
|
+
baseOptions = configuration.baseOptions;
|
|
88
|
+
}
|
|
89
|
+
const localVarRequestOptions :AxiosRequestConfig = { method: 'POST', ...baseOptions, ...options};
|
|
90
|
+
const localVarHeaderParameter = {} as any;
|
|
91
|
+
const localVarQueryParameter = {} as any;
|
|
92
|
+
|
|
93
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
94
|
+
|
|
95
|
+
const query = new URLSearchParams(localVarUrlObj.search);
|
|
96
|
+
for (const key in localVarQueryParameter) {
|
|
97
|
+
query.set(key, localVarQueryParameter[key]);
|
|
98
|
+
}
|
|
99
|
+
for (const key in options.params) {
|
|
100
|
+
query.set(key, options.params[key]);
|
|
101
|
+
}
|
|
102
|
+
localVarUrlObj.search = (new URLSearchParams(query)).toString();
|
|
103
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
104
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
105
|
+
const needsSerialization = (typeof body !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
|
|
106
|
+
localVarRequestOptions.data = needsSerialization ? JSON.stringify(body !== undefined ? body : {}) : (body || "");
|
|
107
|
+
|
|
64
108
|
return {
|
|
65
109
|
url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
|
|
66
110
|
options: localVarRequestOptions,
|
|
@@ -88,6 +132,19 @@ export const MessagesApiFp = function(configuration?: Configuration) {
|
|
|
88
132
|
return axios.request(axiosRequestArgs);
|
|
89
133
|
};
|
|
90
134
|
},
|
|
135
|
+
/**
|
|
136
|
+
*
|
|
137
|
+
* @param {SendTextDto} body
|
|
138
|
+
* @param {*} [options] Override http request option.
|
|
139
|
+
* @throws {RequiredError}
|
|
140
|
+
*/
|
|
141
|
+
async sendMessage(body: SendTextDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<SendTextResponseDto>>> {
|
|
142
|
+
const localVarAxiosArgs = await MessagesApiAxiosParamCreator(configuration).sendMessage(body, options);
|
|
143
|
+
return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
|
|
144
|
+
const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
|
|
145
|
+
return axios.request(axiosRequestArgs);
|
|
146
|
+
};
|
|
147
|
+
},
|
|
91
148
|
}
|
|
92
149
|
};
|
|
93
150
|
|
|
@@ -106,6 +163,15 @@ export const MessagesApiFactory = function (configuration?: Configuration, baseP
|
|
|
106
163
|
async getMessages(chatId: number, options?: AxiosRequestConfig): Promise<AxiosResponse<MessageResponseDto>> {
|
|
107
164
|
return MessagesApiFp(configuration).getMessages(chatId, options).then((request) => request(axios, basePath));
|
|
108
165
|
},
|
|
166
|
+
/**
|
|
167
|
+
*
|
|
168
|
+
* @param {SendTextDto} body
|
|
169
|
+
* @param {*} [options] Override http request option.
|
|
170
|
+
* @throws {RequiredError}
|
|
171
|
+
*/
|
|
172
|
+
async sendMessage(body: SendTextDto, options?: AxiosRequestConfig): Promise<AxiosResponse<SendTextResponseDto>> {
|
|
173
|
+
return MessagesApiFp(configuration).sendMessage(body, options).then((request) => request(axios, basePath));
|
|
174
|
+
},
|
|
109
175
|
};
|
|
110
176
|
};
|
|
111
177
|
|
|
@@ -126,4 +192,14 @@ export class MessagesApi extends BaseAPI {
|
|
|
126
192
|
public async getMessages(chatId: number, options?: AxiosRequestConfig) : Promise<AxiosResponse<MessageResponseDto>> {
|
|
127
193
|
return MessagesApiFp(this.configuration).getMessages(chatId, options).then((request) => request(this.axios, this.basePath));
|
|
128
194
|
}
|
|
195
|
+
/**
|
|
196
|
+
*
|
|
197
|
+
* @param {SendTextDto} body
|
|
198
|
+
* @param {*} [options] Override http request option.
|
|
199
|
+
* @throws {RequiredError}
|
|
200
|
+
* @memberof MessagesApi
|
|
201
|
+
*/
|
|
202
|
+
public async sendMessage(body: SendTextDto, options?: AxiosRequestConfig) : Promise<AxiosResponse<SendTextResponseDto>> {
|
|
203
|
+
return MessagesApiFp(this.configuration).sendMessage(body, options).then((request) => request(this.axios, this.basePath));
|
|
204
|
+
}
|
|
129
205
|
}
|
package/dist/apis/chats-api.d.ts
CHANGED
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
import { AxiosResponse, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
13
13
|
import { Configuration } from '../configuration';
|
|
14
14
|
import { RequestArgs, BaseAPI } from '../base';
|
|
15
|
-
import { ActiveChatResponseDTO } from '../models';
|
|
16
15
|
import { ChatsResponseDTO } from '../models';
|
|
16
|
+
import { WhatsappChatResponseDTO } from '../models';
|
|
17
17
|
/**
|
|
18
18
|
* ChatsApi - axios parameter creator
|
|
19
19
|
* @export
|
|
@@ -44,7 +44,7 @@ export declare const ChatsApiFp: (configuration?: Configuration) => {
|
|
|
44
44
|
* @param {*} [options] Override http request option.
|
|
45
45
|
* @throws {RequiredError}
|
|
46
46
|
*/
|
|
47
|
-
getChat(id: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<
|
|
47
|
+
getChat(id: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<WhatsappChatResponseDTO>>>;
|
|
48
48
|
/**
|
|
49
49
|
*
|
|
50
50
|
* @param {*} [options] Override http request option.
|
|
@@ -63,7 +63,7 @@ export declare const ChatsApiFactory: (configuration?: Configuration, basePath?:
|
|
|
63
63
|
* @param {*} [options] Override http request option.
|
|
64
64
|
* @throws {RequiredError}
|
|
65
65
|
*/
|
|
66
|
-
getChat(id: number, options?: AxiosRequestConfig): Promise<AxiosResponse<
|
|
66
|
+
getChat(id: number, options?: AxiosRequestConfig): Promise<AxiosResponse<WhatsappChatResponseDTO>>;
|
|
67
67
|
/**
|
|
68
68
|
*
|
|
69
69
|
* @param {*} [options] Override http request option.
|
|
@@ -85,7 +85,7 @@ export declare class ChatsApi extends BaseAPI {
|
|
|
85
85
|
* @throws {RequiredError}
|
|
86
86
|
* @memberof ChatsApi
|
|
87
87
|
*/
|
|
88
|
-
getChat(id: number, options?: AxiosRequestConfig): Promise<AxiosResponse<
|
|
88
|
+
getChat(id: number, options?: AxiosRequestConfig): Promise<AxiosResponse<WhatsappChatResponseDTO>>;
|
|
89
89
|
/**
|
|
90
90
|
*
|
|
91
91
|
* @param {*} [options] Override http request option.
|
|
@@ -13,6 +13,8 @@ import { AxiosResponse, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
|
13
13
|
import { Configuration } from '../configuration';
|
|
14
14
|
import { RequestArgs, BaseAPI } from '../base';
|
|
15
15
|
import { MessageResponseDto } from '../models';
|
|
16
|
+
import { SendTextDto } from '../models';
|
|
17
|
+
import { SendTextResponseDto } from '../models';
|
|
16
18
|
/**
|
|
17
19
|
* MessagesApi - axios parameter creator
|
|
18
20
|
* @export
|
|
@@ -25,6 +27,13 @@ export declare const MessagesApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
25
27
|
* @throws {RequiredError}
|
|
26
28
|
*/
|
|
27
29
|
getMessages: (chatId: number, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @param {SendTextDto} body
|
|
33
|
+
* @param {*} [options] Override http request option.
|
|
34
|
+
* @throws {RequiredError}
|
|
35
|
+
*/
|
|
36
|
+
sendMessage: (body: SendTextDto, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
28
37
|
};
|
|
29
38
|
/**
|
|
30
39
|
* MessagesApi - functional programming interface
|
|
@@ -38,6 +47,13 @@ export declare const MessagesApiFp: (configuration?: Configuration) => {
|
|
|
38
47
|
* @throws {RequiredError}
|
|
39
48
|
*/
|
|
40
49
|
getMessages(chatId: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<MessageResponseDto>>>;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @param {SendTextDto} body
|
|
53
|
+
* @param {*} [options] Override http request option.
|
|
54
|
+
* @throws {RequiredError}
|
|
55
|
+
*/
|
|
56
|
+
sendMessage(body: SendTextDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<SendTextResponseDto>>>;
|
|
41
57
|
};
|
|
42
58
|
/**
|
|
43
59
|
* MessagesApi - factory interface
|
|
@@ -51,6 +67,13 @@ export declare const MessagesApiFactory: (configuration?: Configuration, basePat
|
|
|
51
67
|
* @throws {RequiredError}
|
|
52
68
|
*/
|
|
53
69
|
getMessages(chatId: number, options?: AxiosRequestConfig): Promise<AxiosResponse<MessageResponseDto>>;
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
* @param {SendTextDto} body
|
|
73
|
+
* @param {*} [options] Override http request option.
|
|
74
|
+
* @throws {RequiredError}
|
|
75
|
+
*/
|
|
76
|
+
sendMessage(body: SendTextDto, options?: AxiosRequestConfig): Promise<AxiosResponse<SendTextResponseDto>>;
|
|
54
77
|
};
|
|
55
78
|
/**
|
|
56
79
|
* MessagesApi - object-oriented interface
|
|
@@ -67,4 +90,12 @@ export declare class MessagesApi extends BaseAPI {
|
|
|
67
90
|
* @memberof MessagesApi
|
|
68
91
|
*/
|
|
69
92
|
getMessages(chatId: number, options?: AxiosRequestConfig): Promise<AxiosResponse<MessageResponseDto>>;
|
|
93
|
+
/**
|
|
94
|
+
*
|
|
95
|
+
* @param {SendTextDto} body
|
|
96
|
+
* @param {*} [options] Override http request option.
|
|
97
|
+
* @throws {RequiredError}
|
|
98
|
+
* @memberof MessagesApi
|
|
99
|
+
*/
|
|
100
|
+
sendMessage(body: SendTextDto, options?: AxiosRequestConfig): Promise<AxiosResponse<SendTextResponseDto>>;
|
|
70
101
|
}
|
|
@@ -143,6 +143,53 @@ var MessagesApiAxiosParamCreator = function (configuration) {
|
|
|
143
143
|
});
|
|
144
144
|
});
|
|
145
145
|
},
|
|
146
|
+
/**
|
|
147
|
+
*
|
|
148
|
+
* @param {SendTextDto} body
|
|
149
|
+
* @param {*} [options] Override http request option.
|
|
150
|
+
* @throws {RequiredError}
|
|
151
|
+
*/
|
|
152
|
+
sendMessage: function (body_1) {
|
|
153
|
+
var args_1 = [];
|
|
154
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
155
|
+
args_1[_i - 1] = arguments[_i];
|
|
156
|
+
}
|
|
157
|
+
return __awaiter(_this, __spreadArray([body_1], args_1, true), void 0, function (body, options) {
|
|
158
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, query, key, key, headersFromBaseOptions, needsSerialization;
|
|
159
|
+
if (options === void 0) { options = {}; }
|
|
160
|
+
return __generator(this, function (_a) {
|
|
161
|
+
// verify required parameter 'body' is not null or undefined
|
|
162
|
+
if (body === null || body === undefined) {
|
|
163
|
+
throw new base_1.RequiredError('body', 'Required parameter body was null or undefined when calling sendMessage.');
|
|
164
|
+
}
|
|
165
|
+
localVarPath = "/api/messages/send-text";
|
|
166
|
+
localVarUrlObj = new URL(localVarPath, 'https://example.com');
|
|
167
|
+
if (configuration) {
|
|
168
|
+
baseOptions = configuration.baseOptions;
|
|
169
|
+
}
|
|
170
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
171
|
+
localVarHeaderParameter = {};
|
|
172
|
+
localVarQueryParameter = {};
|
|
173
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
174
|
+
query = new URLSearchParams(localVarUrlObj.search);
|
|
175
|
+
for (key in localVarQueryParameter) {
|
|
176
|
+
query.set(key, localVarQueryParameter[key]);
|
|
177
|
+
}
|
|
178
|
+
for (key in options.params) {
|
|
179
|
+
query.set(key, options.params[key]);
|
|
180
|
+
}
|
|
181
|
+
localVarUrlObj.search = (new URLSearchParams(query)).toString();
|
|
182
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
183
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
184
|
+
needsSerialization = (typeof body !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
|
|
185
|
+
localVarRequestOptions.data = needsSerialization ? JSON.stringify(body !== undefined ? body : {}) : (body || "");
|
|
186
|
+
return [2 /*return*/, {
|
|
187
|
+
url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
|
|
188
|
+
options: localVarRequestOptions,
|
|
189
|
+
}];
|
|
190
|
+
});
|
|
191
|
+
});
|
|
192
|
+
},
|
|
146
193
|
};
|
|
147
194
|
};
|
|
148
195
|
exports.MessagesApiAxiosParamCreator = MessagesApiAxiosParamCreator;
|
|
@@ -176,6 +223,30 @@ var MessagesApiFp = function (configuration) {
|
|
|
176
223
|
});
|
|
177
224
|
});
|
|
178
225
|
},
|
|
226
|
+
/**
|
|
227
|
+
*
|
|
228
|
+
* @param {SendTextDto} body
|
|
229
|
+
* @param {*} [options] Override http request option.
|
|
230
|
+
* @throws {RequiredError}
|
|
231
|
+
*/
|
|
232
|
+
sendMessage: function (body, options) {
|
|
233
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
234
|
+
var localVarAxiosArgs;
|
|
235
|
+
return __generator(this, function (_a) {
|
|
236
|
+
switch (_a.label) {
|
|
237
|
+
case 0: return [4 /*yield*/, (0, exports.MessagesApiAxiosParamCreator)(configuration).sendMessage(body, options)];
|
|
238
|
+
case 1:
|
|
239
|
+
localVarAxiosArgs = _a.sent();
|
|
240
|
+
return [2 /*return*/, function (axios, basePath) {
|
|
241
|
+
if (axios === void 0) { axios = axios_1.default; }
|
|
242
|
+
if (basePath === void 0) { basePath = base_1.BASE_PATH; }
|
|
243
|
+
var axiosRequestArgs = __assign(__assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
|
|
244
|
+
return axios.request(axiosRequestArgs);
|
|
245
|
+
}];
|
|
246
|
+
}
|
|
247
|
+
});
|
|
248
|
+
});
|
|
249
|
+
},
|
|
179
250
|
};
|
|
180
251
|
};
|
|
181
252
|
exports.MessagesApiFp = MessagesApiFp;
|
|
@@ -198,6 +269,19 @@ var MessagesApiFactory = function (configuration, basePath, axios) {
|
|
|
198
269
|
});
|
|
199
270
|
});
|
|
200
271
|
},
|
|
272
|
+
/**
|
|
273
|
+
*
|
|
274
|
+
* @param {SendTextDto} body
|
|
275
|
+
* @param {*} [options] Override http request option.
|
|
276
|
+
* @throws {RequiredError}
|
|
277
|
+
*/
|
|
278
|
+
sendMessage: function (body, options) {
|
|
279
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
280
|
+
return __generator(this, function (_a) {
|
|
281
|
+
return [2 /*return*/, (0, exports.MessagesApiFp)(configuration).sendMessage(body, options).then(function (request) { return request(axios, basePath); })];
|
|
282
|
+
});
|
|
283
|
+
});
|
|
284
|
+
},
|
|
201
285
|
};
|
|
202
286
|
};
|
|
203
287
|
exports.MessagesApiFactory = MessagesApiFactory;
|
|
@@ -227,6 +311,21 @@ var MessagesApi = /** @class */ (function (_super) {
|
|
|
227
311
|
});
|
|
228
312
|
});
|
|
229
313
|
};
|
|
314
|
+
/**
|
|
315
|
+
*
|
|
316
|
+
* @param {SendTextDto} body
|
|
317
|
+
* @param {*} [options] Override http request option.
|
|
318
|
+
* @throws {RequiredError}
|
|
319
|
+
* @memberof MessagesApi
|
|
320
|
+
*/
|
|
321
|
+
MessagesApi.prototype.sendMessage = function (body, options) {
|
|
322
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
323
|
+
var _this = this;
|
|
324
|
+
return __generator(this, function (_a) {
|
|
325
|
+
return [2 /*return*/, (0, exports.MessagesApiFp)(this.configuration).sendMessage(body, options).then(function (request) { return request(_this.axios, _this.basePath); })];
|
|
326
|
+
});
|
|
327
|
+
});
|
|
328
|
+
};
|
|
230
329
|
return MessagesApi;
|
|
231
330
|
}(base_1.BaseAPI));
|
|
232
331
|
exports.MessagesApi = MessagesApi;
|
package/dist/models/index.d.ts
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
export * from './active-chat-dto';
|
|
2
|
-
export * from './active-chat-response-dto';
|
|
3
1
|
export * from './api-request-user-update-password-dto';
|
|
4
2
|
export * from './api-response-auth-dto';
|
|
5
3
|
export * from './api-response-user-dto';
|
|
@@ -10,10 +8,15 @@ export * from './contacts-response-dto';
|
|
|
10
8
|
export * from './conversation-message-dto';
|
|
11
9
|
export * from './data-dto';
|
|
12
10
|
export * from './data-unauthorized-dto';
|
|
11
|
+
export * from './inline-response2011-class';
|
|
12
|
+
export * from './inline-response2011-message';
|
|
13
13
|
export * from './inline-response503';
|
|
14
14
|
export * from './inline-response503-info';
|
|
15
|
+
export * from './key-dto';
|
|
15
16
|
export * from './message-response-dto';
|
|
16
17
|
export * from './role-dto';
|
|
18
|
+
export * from './send-text-dto';
|
|
19
|
+
export * from './send-text-response-dto';
|
|
17
20
|
export * from './status-dto';
|
|
18
21
|
export * from './tokens-dto';
|
|
19
22
|
export * from './unauthorized-dto';
|
|
@@ -21,6 +24,7 @@ export * from './unauthorized-token-dto';
|
|
|
21
24
|
export * from './user-detail-dto';
|
|
22
25
|
export * from './user-update-password-dto';
|
|
23
26
|
export * from './whatsapp-chat-dto';
|
|
27
|
+
export * from './whatsapp-chat-response-dto';
|
|
24
28
|
export * from './whatsapp-contact-dto';
|
|
25
29
|
export * from './whatsapp-message-dto';
|
|
26
30
|
export * from './whatsapp-message-key-dto';
|
package/dist/models/index.js
CHANGED
|
@@ -14,8 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./active-chat-dto"), exports);
|
|
18
|
-
__exportStar(require("./active-chat-response-dto"), exports);
|
|
19
17
|
__exportStar(require("./api-request-user-update-password-dto"), exports);
|
|
20
18
|
__exportStar(require("./api-response-auth-dto"), exports);
|
|
21
19
|
__exportStar(require("./api-response-user-dto"), exports);
|
|
@@ -26,10 +24,15 @@ __exportStar(require("./contacts-response-dto"), exports);
|
|
|
26
24
|
__exportStar(require("./conversation-message-dto"), exports);
|
|
27
25
|
__exportStar(require("./data-dto"), exports);
|
|
28
26
|
__exportStar(require("./data-unauthorized-dto"), exports);
|
|
27
|
+
__exportStar(require("./inline-response2011-class"), exports);
|
|
28
|
+
__exportStar(require("./inline-response2011-message"), exports);
|
|
29
29
|
__exportStar(require("./inline-response503"), exports);
|
|
30
30
|
__exportStar(require("./inline-response503-info"), exports);
|
|
31
|
+
__exportStar(require("./key-dto"), exports);
|
|
31
32
|
__exportStar(require("./message-response-dto"), exports);
|
|
32
33
|
__exportStar(require("./role-dto"), exports);
|
|
34
|
+
__exportStar(require("./send-text-dto"), exports);
|
|
35
|
+
__exportStar(require("./send-text-response-dto"), exports);
|
|
33
36
|
__exportStar(require("./status-dto"), exports);
|
|
34
37
|
__exportStar(require("./tokens-dto"), exports);
|
|
35
38
|
__exportStar(require("./unauthorized-dto"), exports);
|
|
@@ -37,6 +40,7 @@ __exportStar(require("./unauthorized-token-dto"), exports);
|
|
|
37
40
|
__exportStar(require("./user-detail-dto"), exports);
|
|
38
41
|
__exportStar(require("./user-update-password-dto"), exports);
|
|
39
42
|
__exportStar(require("./whatsapp-chat-dto"), exports);
|
|
43
|
+
__exportStar(require("./whatsapp-chat-response-dto"), exports);
|
|
40
44
|
__exportStar(require("./whatsapp-contact-dto"), exports);
|
|
41
45
|
__exportStar(require("./whatsapp-message-dto"), exports);
|
|
42
46
|
__exportStar(require("./whatsapp-message-key-dto"), exports);
|
|
@@ -0,0 +1,72 @@
|
|
|
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 { InlineResponse2011Message } from './inline-response2011-message';
|
|
13
|
+
import { KeyDto } from './key-dto';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
*
|
|
17
|
+
* @export
|
|
18
|
+
* @interface InlineResponse2011Class
|
|
19
|
+
*/
|
|
20
|
+
export interface InlineResponse2011Class {
|
|
21
|
+
/**
|
|
22
|
+
* @type {KeyDto}
|
|
23
|
+
* @memberof InlineResponse2011Class
|
|
24
|
+
*/
|
|
25
|
+
key: KeyDto;
|
|
26
|
+
/**
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof InlineResponse2011Class
|
|
29
|
+
* @example Jhon Doe
|
|
30
|
+
*/
|
|
31
|
+
pushName: string;
|
|
32
|
+
/**
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof InlineResponse2011Class
|
|
35
|
+
* @example PENDING
|
|
36
|
+
*/
|
|
37
|
+
status: string;
|
|
38
|
+
/**
|
|
39
|
+
* @type {InlineResponse2011Message}
|
|
40
|
+
* @memberof InlineResponse2011Class
|
|
41
|
+
*/
|
|
42
|
+
message: InlineResponse2011Message;
|
|
43
|
+
/**
|
|
44
|
+
* @type {any}
|
|
45
|
+
* @memberof InlineResponse2011Class
|
|
46
|
+
*/
|
|
47
|
+
contextInfo: any;
|
|
48
|
+
/**
|
|
49
|
+
* @type {string}
|
|
50
|
+
* @memberof InlineResponse2011Class
|
|
51
|
+
* @example conversation
|
|
52
|
+
*/
|
|
53
|
+
messageType: string;
|
|
54
|
+
/**
|
|
55
|
+
* @type {number}
|
|
56
|
+
* @memberof InlineResponse2011Class
|
|
57
|
+
* @example 1738267884
|
|
58
|
+
*/
|
|
59
|
+
messageTimestamp: number;
|
|
60
|
+
/**
|
|
61
|
+
* @type {string}
|
|
62
|
+
* @memberof InlineResponse2011Class
|
|
63
|
+
* @example e2845cfb-00e4-4533-8147-923628f4a401
|
|
64
|
+
*/
|
|
65
|
+
instanceId: string;
|
|
66
|
+
/**
|
|
67
|
+
* @type {string}
|
|
68
|
+
* @memberof InlineResponse2011Class
|
|
69
|
+
* @example unknown
|
|
70
|
+
*/
|
|
71
|
+
source: string;
|
|
72
|
+
}
|
|
@@ -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,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
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface InlineResponse2011Message
|
|
17
|
+
*/
|
|
18
|
+
export interface InlineResponse2011Message {
|
|
19
|
+
/**
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof InlineResponse2011Message
|
|
22
|
+
* @example texto de envio
|
|
23
|
+
*/
|
|
24
|
+
conversation: string;
|
|
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,37 @@
|
|
|
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 KeyDto
|
|
17
|
+
*/
|
|
18
|
+
export interface KeyDto {
|
|
19
|
+
/**
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof KeyDto
|
|
22
|
+
* @example 3EB0E925FA7E136C585A91A78E6941C937DFA9CB
|
|
23
|
+
*/
|
|
24
|
+
id: string;
|
|
25
|
+
/**
|
|
26
|
+
* @type {boolean}
|
|
27
|
+
* @memberof KeyDto
|
|
28
|
+
* @example true
|
|
29
|
+
*/
|
|
30
|
+
fromMe: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof KeyDto
|
|
34
|
+
* @example 549112312456@s.whatsapp.net
|
|
35
|
+
*/
|
|
36
|
+
remoteJid: string;
|
|
37
|
+
}
|
|
@@ -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,31 @@
|
|
|
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 SendTextDto
|
|
17
|
+
*/
|
|
18
|
+
export interface SendTextDto {
|
|
19
|
+
/**
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof SendTextDto
|
|
22
|
+
* @example 12
|
|
23
|
+
*/
|
|
24
|
+
contactId: number;
|
|
25
|
+
/**
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof SendTextDto
|
|
28
|
+
* @example texto de envio
|
|
29
|
+
*/
|
|
30
|
+
text: string;
|
|
31
|
+
}
|
|
@@ -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,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 { InlineResponse2011Class } from './inline-response2011-class';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface SendTextResponseDto
|
|
18
|
+
*/
|
|
19
|
+
export interface SendTextResponseDto {
|
|
20
|
+
/**
|
|
21
|
+
* @type {InlineResponse2011Class}
|
|
22
|
+
* @memberof SendTextResponseDto
|
|
23
|
+
*/
|
|
24
|
+
data: InlineResponse2011Class;
|
|
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 });
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import { WhatsappContactDto } from './whatsapp-contact-dto';
|
|
13
|
+
import { WhatsappMessageDto } from './whatsapp-message-dto';
|
|
13
14
|
/**
|
|
14
15
|
*
|
|
15
16
|
*
|
|
@@ -48,11 +49,10 @@ export interface WhatsappChatDto {
|
|
|
48
49
|
*/
|
|
49
50
|
unreadMessages: number;
|
|
50
51
|
/**
|
|
51
|
-
* @type {
|
|
52
|
+
* @type {Array<WhatsappMessageDto>}
|
|
52
53
|
* @memberof WhatsappChatDto
|
|
53
|
-
* @example 3
|
|
54
54
|
*/
|
|
55
|
-
messages:
|
|
55
|
+
messages: Array<WhatsappMessageDto>;
|
|
56
56
|
/**
|
|
57
57
|
* @type {WhatsappContactDto}
|
|
58
58
|
* @memberof WhatsappChatDto
|
|
@@ -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 { WhatsappChatDto } from './whatsapp-chat-dto';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface WhatsappChatResponseDTO
|
|
18
|
+
*/
|
|
19
|
+
export interface WhatsappChatResponseDTO {
|
|
20
|
+
/**
|
|
21
|
+
* @type {WhatsappChatDto}
|
|
22
|
+
* @memberof WhatsappChatResponseDTO
|
|
23
|
+
*/
|
|
24
|
+
data: WhatsappChatDto;
|
|
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 });
|
package/models/index.ts
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
export * from './active-chat-dto';
|
|
2
|
-
export * from './active-chat-response-dto';
|
|
3
1
|
export * from './api-request-user-update-password-dto';
|
|
4
2
|
export * from './api-response-auth-dto';
|
|
5
3
|
export * from './api-response-user-dto';
|
|
@@ -10,10 +8,15 @@ export * from './contacts-response-dto';
|
|
|
10
8
|
export * from './conversation-message-dto';
|
|
11
9
|
export * from './data-dto';
|
|
12
10
|
export * from './data-unauthorized-dto';
|
|
11
|
+
export * from './inline-response2011-class';
|
|
12
|
+
export * from './inline-response2011-message';
|
|
13
13
|
export * from './inline-response503';
|
|
14
14
|
export * from './inline-response503-info';
|
|
15
|
+
export * from './key-dto';
|
|
15
16
|
export * from './message-response-dto';
|
|
16
17
|
export * from './role-dto';
|
|
18
|
+
export * from './send-text-dto';
|
|
19
|
+
export * from './send-text-response-dto';
|
|
17
20
|
export * from './status-dto';
|
|
18
21
|
export * from './tokens-dto';
|
|
19
22
|
export * from './unauthorized-dto';
|
|
@@ -21,6 +24,7 @@ export * from './unauthorized-token-dto';
|
|
|
21
24
|
export * from './user-detail-dto';
|
|
22
25
|
export * from './user-update-password-dto';
|
|
23
26
|
export * from './whatsapp-chat-dto';
|
|
27
|
+
export * from './whatsapp-chat-response-dto';
|
|
24
28
|
export * from './whatsapp-contact-dto';
|
|
25
29
|
export * from './whatsapp-message-dto';
|
|
26
30
|
export * from './whatsapp-message-key-dto';
|
|
@@ -0,0 +1,84 @@
|
|
|
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 { InlineResponse2011Message } from './inline-response2011-message';
|
|
16
|
+
import { KeyDto } from './key-dto';
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
*
|
|
20
|
+
* @export
|
|
21
|
+
* @interface InlineResponse2011Class
|
|
22
|
+
*/
|
|
23
|
+
export interface InlineResponse2011Class {
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* @type {KeyDto}
|
|
27
|
+
* @memberof InlineResponse2011Class
|
|
28
|
+
*/
|
|
29
|
+
key: KeyDto;
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof InlineResponse2011Class
|
|
34
|
+
* @example Jhon Doe
|
|
35
|
+
*/
|
|
36
|
+
pushName: string;
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof InlineResponse2011Class
|
|
41
|
+
* @example PENDING
|
|
42
|
+
*/
|
|
43
|
+
status: string;
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* @type {InlineResponse2011Message}
|
|
47
|
+
* @memberof InlineResponse2011Class
|
|
48
|
+
*/
|
|
49
|
+
message: InlineResponse2011Message;
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* @type {any}
|
|
53
|
+
* @memberof InlineResponse2011Class
|
|
54
|
+
*/
|
|
55
|
+
contextInfo: any;
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* @type {string}
|
|
59
|
+
* @memberof InlineResponse2011Class
|
|
60
|
+
* @example conversation
|
|
61
|
+
*/
|
|
62
|
+
messageType: string;
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* @type {number}
|
|
66
|
+
* @memberof InlineResponse2011Class
|
|
67
|
+
* @example 1738267884
|
|
68
|
+
*/
|
|
69
|
+
messageTimestamp: number;
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* @type {string}
|
|
73
|
+
* @memberof InlineResponse2011Class
|
|
74
|
+
* @example e2845cfb-00e4-4533-8147-923628f4a401
|
|
75
|
+
*/
|
|
76
|
+
instanceId: string;
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* @type {string}
|
|
80
|
+
* @memberof InlineResponse2011Class
|
|
81
|
+
* @example unknown
|
|
82
|
+
*/
|
|
83
|
+
source: string;
|
|
84
|
+
}
|
|
@@ -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 InlineResponse2011Message
|
|
20
|
+
*/
|
|
21
|
+
export interface InlineResponse2011Message {
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof InlineResponse2011Message
|
|
26
|
+
* @example texto de envio
|
|
27
|
+
*/
|
|
28
|
+
conversation: string;
|
|
29
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
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 KeyDto
|
|
20
|
+
*/
|
|
21
|
+
export interface KeyDto {
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof KeyDto
|
|
26
|
+
* @example 3EB0E925FA7E136C585A91A78E6941C937DFA9CB
|
|
27
|
+
*/
|
|
28
|
+
id: string;
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* @type {boolean}
|
|
32
|
+
* @memberof KeyDto
|
|
33
|
+
* @example true
|
|
34
|
+
*/
|
|
35
|
+
fromMe: boolean;
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof KeyDto
|
|
40
|
+
* @example 549112312456@s.whatsapp.net
|
|
41
|
+
*/
|
|
42
|
+
remoteJid: string;
|
|
43
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
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 SendTextDto
|
|
20
|
+
*/
|
|
21
|
+
export interface SendTextDto {
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof SendTextDto
|
|
26
|
+
* @example 12
|
|
27
|
+
*/
|
|
28
|
+
contactId: number;
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof SendTextDto
|
|
33
|
+
* @example texto de envio
|
|
34
|
+
*/
|
|
35
|
+
text: string;
|
|
36
|
+
}
|
|
@@ -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 { InlineResponse2011Class } from './inline-response2011-class';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
* @interface SendTextResponseDto
|
|
21
|
+
*/
|
|
22
|
+
export interface SendTextResponseDto {
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* @type {InlineResponse2011Class}
|
|
26
|
+
* @memberof SendTextResponseDto
|
|
27
|
+
*/
|
|
28
|
+
data: InlineResponse2011Class;
|
|
29
|
+
}
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { WhatsappContactDto } from './whatsapp-contact-dto';
|
|
16
|
+
import { WhatsappMessageDto } from './whatsapp-message-dto';
|
|
16
17
|
/**
|
|
17
18
|
*
|
|
18
19
|
*
|
|
@@ -57,11 +58,10 @@ export interface WhatsappChatDto {
|
|
|
57
58
|
unreadMessages: number;
|
|
58
59
|
|
|
59
60
|
/**
|
|
60
|
-
* @type {
|
|
61
|
+
* @type {Array<WhatsappMessageDto>}
|
|
61
62
|
* @memberof WhatsappChatDto
|
|
62
|
-
* @example 3
|
|
63
63
|
*/
|
|
64
|
-
messages:
|
|
64
|
+
messages: Array<WhatsappMessageDto>;
|
|
65
65
|
|
|
66
66
|
/**
|
|
67
67
|
* @type {WhatsappContactDto}
|
|
@@ -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 WhatsappChatResponseDTO
|
|
21
|
+
*/
|
|
22
|
+
export interface WhatsappChatResponseDTO {
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* @type {WhatsappChatDto}
|
|
26
|
+
* @memberof WhatsappChatResponseDTO
|
|
27
|
+
*/
|
|
28
|
+
data: WhatsappChatDto;
|
|
29
|
+
}
|