@libgot/whatsapp-bridge-sdk 1.0.23 → 1.0.25
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 +15 -7
- package/dist/apis/chats-api.d.ts +8 -4
- package/dist/apis/chats-api.js +17 -10
- package/dist/models/document-message-dto.d.ts +31 -0
- package/dist/models/document-message-dto.js +15 -0
- package/dist/models/image-message-dto.d.ts +31 -0
- package/dist/models/image-message-dto.js +15 -0
- package/dist/models/index.d.ts +3 -0
- package/dist/models/index.js +3 -0
- package/dist/models/send-message-dto.d.ts +19 -0
- package/dist/models/send-message-dto.js +15 -0
- package/dist/models/whatsapp-message-dto.d.ts +4 -2
- package/models/document-message-dto.ts +36 -0
- package/models/image-message-dto.ts +36 -0
- package/models/index.ts +3 -0
- package/models/send-message-dto.ts +22 -0
- package/models/whatsapp-message-dto.ts +4 -2
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @1.0.
|
|
1
|
+
## @1.0.25
|
|
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.25 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
package/apis/chats-api.ts
CHANGED
|
@@ -116,10 +116,11 @@ export const ChatsApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
116
116
|
/**
|
|
117
117
|
*
|
|
118
118
|
* @param {number} branchId
|
|
119
|
+
* @param {number} [userId]
|
|
119
120
|
* @param {*} [options] Override http request option.
|
|
120
121
|
* @throws {RequiredError}
|
|
121
122
|
*/
|
|
122
|
-
getChats: async (branchId: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
123
|
+
getChats: async (branchId: number, userId?: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
123
124
|
// verify required parameter 'branchId' is not null or undefined
|
|
124
125
|
if (branchId === null || branchId === undefined) {
|
|
125
126
|
throw new RequiredError('branchId','Required parameter branchId was null or undefined when calling getChats.');
|
|
@@ -139,6 +140,10 @@ export const ChatsApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
139
140
|
localVarQueryParameter['branchId'] = branchId;
|
|
140
141
|
}
|
|
141
142
|
|
|
143
|
+
if (userId !== undefined) {
|
|
144
|
+
localVarQueryParameter['userId'] = userId;
|
|
145
|
+
}
|
|
146
|
+
|
|
142
147
|
const query = new URLSearchParams(localVarUrlObj.search);
|
|
143
148
|
for (const key in localVarQueryParameter) {
|
|
144
149
|
query.set(key, localVarQueryParameter[key]);
|
|
@@ -194,11 +199,12 @@ export const ChatsApiFp = function(configuration?: Configuration) {
|
|
|
194
199
|
/**
|
|
195
200
|
*
|
|
196
201
|
* @param {number} branchId
|
|
202
|
+
* @param {number} [userId]
|
|
197
203
|
* @param {*} [options] Override http request option.
|
|
198
204
|
* @throws {RequiredError}
|
|
199
205
|
*/
|
|
200
|
-
async getChats(branchId: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<ChatsResponseDTO>>> {
|
|
201
|
-
const localVarAxiosArgs = await ChatsApiAxiosParamCreator(configuration).getChats(branchId, options);
|
|
206
|
+
async getChats(branchId: number, userId?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<ChatsResponseDTO>>> {
|
|
207
|
+
const localVarAxiosArgs = await ChatsApiAxiosParamCreator(configuration).getChats(branchId, userId, options);
|
|
202
208
|
return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
|
|
203
209
|
const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
|
|
204
210
|
return axios.request(axiosRequestArgs);
|
|
@@ -235,11 +241,12 @@ export const ChatsApiFactory = function (configuration?: Configuration, basePath
|
|
|
235
241
|
/**
|
|
236
242
|
*
|
|
237
243
|
* @param {number} branchId
|
|
244
|
+
* @param {number} [userId]
|
|
238
245
|
* @param {*} [options] Override http request option.
|
|
239
246
|
* @throws {RequiredError}
|
|
240
247
|
*/
|
|
241
|
-
async getChats(branchId: number, options?: AxiosRequestConfig): Promise<AxiosResponse<ChatsResponseDTO>> {
|
|
242
|
-
return ChatsApiFp(configuration).getChats(branchId, options).then((request) => request(axios, basePath));
|
|
248
|
+
async getChats(branchId: number, userId?: number, options?: AxiosRequestConfig): Promise<AxiosResponse<ChatsResponseDTO>> {
|
|
249
|
+
return ChatsApiFp(configuration).getChats(branchId, userId, options).then((request) => request(axios, basePath));
|
|
243
250
|
},
|
|
244
251
|
};
|
|
245
252
|
};
|
|
@@ -275,11 +282,12 @@ export class ChatsApi extends BaseAPI {
|
|
|
275
282
|
/**
|
|
276
283
|
*
|
|
277
284
|
* @param {number} branchId
|
|
285
|
+
* @param {number} [userId]
|
|
278
286
|
* @param {*} [options] Override http request option.
|
|
279
287
|
* @throws {RequiredError}
|
|
280
288
|
* @memberof ChatsApi
|
|
281
289
|
*/
|
|
282
|
-
public async getChats(branchId: number, options?: AxiosRequestConfig) : Promise<AxiosResponse<ChatsResponseDTO>> {
|
|
283
|
-
return ChatsApiFp(this.configuration).getChats(branchId, options).then((request) => request(this.axios, this.basePath));
|
|
290
|
+
public async getChats(branchId: number, userId?: number, options?: AxiosRequestConfig) : Promise<AxiosResponse<ChatsResponseDTO>> {
|
|
291
|
+
return ChatsApiFp(this.configuration).getChats(branchId, userId, options).then((request) => request(this.axios, this.basePath));
|
|
284
292
|
}
|
|
285
293
|
}
|
package/dist/apis/chats-api.d.ts
CHANGED
|
@@ -38,10 +38,11 @@ export declare const ChatsApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
38
38
|
/**
|
|
39
39
|
*
|
|
40
40
|
* @param {number} branchId
|
|
41
|
+
* @param {number} [userId]
|
|
41
42
|
* @param {*} [options] Override http request option.
|
|
42
43
|
* @throws {RequiredError}
|
|
43
44
|
*/
|
|
44
|
-
getChats: (branchId: number, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
45
|
+
getChats: (branchId: number, userId?: number, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
45
46
|
};
|
|
46
47
|
/**
|
|
47
48
|
* ChatsApi - functional programming interface
|
|
@@ -66,10 +67,11 @@ export declare const ChatsApiFp: (configuration?: Configuration) => {
|
|
|
66
67
|
/**
|
|
67
68
|
*
|
|
68
69
|
* @param {number} branchId
|
|
70
|
+
* @param {number} [userId]
|
|
69
71
|
* @param {*} [options] Override http request option.
|
|
70
72
|
* @throws {RequiredError}
|
|
71
73
|
*/
|
|
72
|
-
getChats(branchId: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<ChatsResponseDTO>>>;
|
|
74
|
+
getChats(branchId: number, userId?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<ChatsResponseDTO>>>;
|
|
73
75
|
};
|
|
74
76
|
/**
|
|
75
77
|
* ChatsApi - factory interface
|
|
@@ -94,10 +96,11 @@ export declare const ChatsApiFactory: (configuration?: Configuration, basePath?:
|
|
|
94
96
|
/**
|
|
95
97
|
*
|
|
96
98
|
* @param {number} branchId
|
|
99
|
+
* @param {number} [userId]
|
|
97
100
|
* @param {*} [options] Override http request option.
|
|
98
101
|
* @throws {RequiredError}
|
|
99
102
|
*/
|
|
100
|
-
getChats(branchId: number, options?: AxiosRequestConfig): Promise<AxiosResponse<ChatsResponseDTO>>;
|
|
103
|
+
getChats(branchId: number, userId?: number, options?: AxiosRequestConfig): Promise<AxiosResponse<ChatsResponseDTO>>;
|
|
101
104
|
};
|
|
102
105
|
/**
|
|
103
106
|
* ChatsApi - object-oriented interface
|
|
@@ -126,9 +129,10 @@ export declare class ChatsApi extends BaseAPI {
|
|
|
126
129
|
/**
|
|
127
130
|
*
|
|
128
131
|
* @param {number} branchId
|
|
132
|
+
* @param {number} [userId]
|
|
129
133
|
* @param {*} [options] Override http request option.
|
|
130
134
|
* @throws {RequiredError}
|
|
131
135
|
* @memberof ChatsApi
|
|
132
136
|
*/
|
|
133
|
-
getChats(branchId: number, options?: AxiosRequestConfig): Promise<AxiosResponse<ChatsResponseDTO>>;
|
|
137
|
+
getChats(branchId: number, userId?: number, options?: AxiosRequestConfig): Promise<AxiosResponse<ChatsResponseDTO>>;
|
|
134
138
|
}
|
package/dist/apis/chats-api.js
CHANGED
|
@@ -197,15 +197,16 @@ var ChatsApiAxiosParamCreator = function (configuration) {
|
|
|
197
197
|
/**
|
|
198
198
|
*
|
|
199
199
|
* @param {number} branchId
|
|
200
|
+
* @param {number} [userId]
|
|
200
201
|
* @param {*} [options] Override http request option.
|
|
201
202
|
* @throws {RequiredError}
|
|
202
203
|
*/
|
|
203
|
-
getChats: function (branchId_1) {
|
|
204
|
+
getChats: function (branchId_1, userId_1) {
|
|
204
205
|
var args_1 = [];
|
|
205
|
-
for (var _i =
|
|
206
|
-
args_1[_i -
|
|
206
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
207
|
+
args_1[_i - 2] = arguments[_i];
|
|
207
208
|
}
|
|
208
|
-
return __awaiter(_this, __spreadArray([branchId_1], args_1, true), void 0, function (branchId, options) {
|
|
209
|
+
return __awaiter(_this, __spreadArray([branchId_1, userId_1], args_1, true), void 0, function (branchId, userId, options) {
|
|
209
210
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, query, key, key, headersFromBaseOptions;
|
|
210
211
|
if (options === void 0) { options = {}; }
|
|
211
212
|
return __generator(this, function (_a) {
|
|
@@ -224,6 +225,9 @@ var ChatsApiAxiosParamCreator = function (configuration) {
|
|
|
224
225
|
if (branchId !== undefined) {
|
|
225
226
|
localVarQueryParameter['branchId'] = branchId;
|
|
226
227
|
}
|
|
228
|
+
if (userId !== undefined) {
|
|
229
|
+
localVarQueryParameter['userId'] = userId;
|
|
230
|
+
}
|
|
227
231
|
query = new URLSearchParams(localVarUrlObj.search);
|
|
228
232
|
for (key in localVarQueryParameter) {
|
|
229
233
|
query.set(key, localVarQueryParameter[key]);
|
|
@@ -302,15 +306,16 @@ var ChatsApiFp = function (configuration) {
|
|
|
302
306
|
/**
|
|
303
307
|
*
|
|
304
308
|
* @param {number} branchId
|
|
309
|
+
* @param {number} [userId]
|
|
305
310
|
* @param {*} [options] Override http request option.
|
|
306
311
|
* @throws {RequiredError}
|
|
307
312
|
*/
|
|
308
|
-
getChats: function (branchId, options) {
|
|
313
|
+
getChats: function (branchId, userId, options) {
|
|
309
314
|
return __awaiter(this, void 0, void 0, function () {
|
|
310
315
|
var localVarAxiosArgs;
|
|
311
316
|
return __generator(this, function (_a) {
|
|
312
317
|
switch (_a.label) {
|
|
313
|
-
case 0: return [4 /*yield*/, (0, exports.ChatsApiAxiosParamCreator)(configuration).getChats(branchId, options)];
|
|
318
|
+
case 0: return [4 /*yield*/, (0, exports.ChatsApiAxiosParamCreator)(configuration).getChats(branchId, userId, options)];
|
|
314
319
|
case 1:
|
|
315
320
|
localVarAxiosArgs = _a.sent();
|
|
316
321
|
return [2 /*return*/, function (axios, basePath) {
|
|
@@ -362,13 +367,14 @@ var ChatsApiFactory = function (configuration, basePath, axios) {
|
|
|
362
367
|
/**
|
|
363
368
|
*
|
|
364
369
|
* @param {number} branchId
|
|
370
|
+
* @param {number} [userId]
|
|
365
371
|
* @param {*} [options] Override http request option.
|
|
366
372
|
* @throws {RequiredError}
|
|
367
373
|
*/
|
|
368
|
-
getChats: function (branchId, options) {
|
|
374
|
+
getChats: function (branchId, userId, options) {
|
|
369
375
|
return __awaiter(this, void 0, void 0, function () {
|
|
370
376
|
return __generator(this, function (_a) {
|
|
371
|
-
return [2 /*return*/, (0, exports.ChatsApiFp)(configuration).getChats(branchId, options).then(function (request) { return request(axios, basePath); })];
|
|
377
|
+
return [2 /*return*/, (0, exports.ChatsApiFp)(configuration).getChats(branchId, userId, options).then(function (request) { return request(axios, basePath); })];
|
|
372
378
|
});
|
|
373
379
|
});
|
|
374
380
|
},
|
|
@@ -420,15 +426,16 @@ var ChatsApi = /** @class */ (function (_super) {
|
|
|
420
426
|
/**
|
|
421
427
|
*
|
|
422
428
|
* @param {number} branchId
|
|
429
|
+
* @param {number} [userId]
|
|
423
430
|
* @param {*} [options] Override http request option.
|
|
424
431
|
* @throws {RequiredError}
|
|
425
432
|
* @memberof ChatsApi
|
|
426
433
|
*/
|
|
427
|
-
ChatsApi.prototype.getChats = function (branchId, options) {
|
|
434
|
+
ChatsApi.prototype.getChats = function (branchId, userId, options) {
|
|
428
435
|
return __awaiter(this, void 0, void 0, function () {
|
|
429
436
|
var _this = this;
|
|
430
437
|
return __generator(this, function (_a) {
|
|
431
|
-
return [2 /*return*/, (0, exports.ChatsApiFp)(this.configuration).getChats(branchId, options).then(function (request) { return request(_this.axios, _this.basePath); })];
|
|
438
|
+
return [2 /*return*/, (0, exports.ChatsApiFp)(this.configuration).getChats(branchId, userId, options).then(function (request) { return request(_this.axios, _this.basePath); })];
|
|
432
439
|
});
|
|
433
440
|
});
|
|
434
441
|
};
|
|
@@ -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 DocumentMessageDto
|
|
17
|
+
*/
|
|
18
|
+
export interface DocumentMessageDto {
|
|
19
|
+
/**
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof DocumentMessageDto
|
|
22
|
+
* @example https://example.com/document.pdf
|
|
23
|
+
*/
|
|
24
|
+
mediaUrl: string;
|
|
25
|
+
/**
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof DocumentMessageDto
|
|
28
|
+
* @example documentMessage
|
|
29
|
+
*/
|
|
30
|
+
mediaType: 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,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 ImageMessageDto
|
|
17
|
+
*/
|
|
18
|
+
export interface ImageMessageDto {
|
|
19
|
+
/**
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ImageMessageDto
|
|
22
|
+
* @example https://example.com/image.jpg
|
|
23
|
+
*/
|
|
24
|
+
mediaUrl: string;
|
|
25
|
+
/**
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ImageMessageDto
|
|
28
|
+
* @example imageMessage
|
|
29
|
+
*/
|
|
30
|
+
mediaType: 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 });
|
package/dist/models/index.d.ts
CHANGED
|
@@ -10,6 +10,8 @@ export * from './contacts-response-dto';
|
|
|
10
10
|
export * from './conversation-message-dto';
|
|
11
11
|
export * from './data-dto';
|
|
12
12
|
export * from './data-unauthorized-dto';
|
|
13
|
+
export * from './document-message-dto';
|
|
14
|
+
export * from './image-message-dto';
|
|
13
15
|
export * from './inline-response2011-class';
|
|
14
16
|
export * from './inline-response2011-message';
|
|
15
17
|
export * from './inline-response503';
|
|
@@ -21,6 +23,7 @@ export * from './parameter-template-dto';
|
|
|
21
23
|
export * from './read-message-dto';
|
|
22
24
|
export * from './read-message-response-data-dto';
|
|
23
25
|
export * from './role-dto';
|
|
26
|
+
export * from './send-message-dto';
|
|
24
27
|
export * from './send-template-data-dto';
|
|
25
28
|
export * from './send-template-dto';
|
|
26
29
|
export * from './send-text-data-response-dto';
|
package/dist/models/index.js
CHANGED
|
@@ -26,6 +26,8 @@ __exportStar(require("./contacts-response-dto"), exports);
|
|
|
26
26
|
__exportStar(require("./conversation-message-dto"), exports);
|
|
27
27
|
__exportStar(require("./data-dto"), exports);
|
|
28
28
|
__exportStar(require("./data-unauthorized-dto"), exports);
|
|
29
|
+
__exportStar(require("./document-message-dto"), exports);
|
|
30
|
+
__exportStar(require("./image-message-dto"), exports);
|
|
29
31
|
__exportStar(require("./inline-response2011-class"), exports);
|
|
30
32
|
__exportStar(require("./inline-response2011-message"), exports);
|
|
31
33
|
__exportStar(require("./inline-response503"), exports);
|
|
@@ -37,6 +39,7 @@ __exportStar(require("./parameter-template-dto"), exports);
|
|
|
37
39
|
__exportStar(require("./read-message-dto"), exports);
|
|
38
40
|
__exportStar(require("./read-message-response-data-dto"), exports);
|
|
39
41
|
__exportStar(require("./role-dto"), exports);
|
|
42
|
+
__exportStar(require("./send-message-dto"), exports);
|
|
40
43
|
__exportStar(require("./send-template-data-dto"), exports);
|
|
41
44
|
__exportStar(require("./send-template-dto"), exports);
|
|
42
45
|
__exportStar(require("./send-text-data-response-dto"), exports);
|
|
@@ -0,0 +1,19 @@
|
|
|
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 SendMessageDto
|
|
17
|
+
*/
|
|
18
|
+
export interface SendMessageDto {
|
|
19
|
+
}
|
|
@@ -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,8 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import { ConversationMessageDto } from './conversation-message-dto';
|
|
13
|
+
import { DocumentMessageDto } from './document-message-dto';
|
|
14
|
+
import { ImageMessageDto } from './image-message-dto';
|
|
13
15
|
import { WhatsappMessageKeyDto } from './whatsapp-message-key-dto';
|
|
14
16
|
/**
|
|
15
17
|
*
|
|
@@ -37,10 +39,10 @@ export interface WhatsappMessageDto {
|
|
|
37
39
|
*/
|
|
38
40
|
messageTimestamp: number;
|
|
39
41
|
/**
|
|
40
|
-
* @type {ConversationMessageDto}
|
|
42
|
+
* @type {ConversationMessageDto | ImageMessageDto | DocumentMessageDto}
|
|
41
43
|
* @memberof WhatsappMessageDto
|
|
42
44
|
*/
|
|
43
|
-
message: ConversationMessageDto;
|
|
45
|
+
message: ConversationMessageDto | ImageMessageDto | DocumentMessageDto;
|
|
44
46
|
/**
|
|
45
47
|
* @type {WhatsappMessageKeyDto}
|
|
46
48
|
* @memberof WhatsappMessageDto
|
|
@@ -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 DocumentMessageDto
|
|
20
|
+
*/
|
|
21
|
+
export interface DocumentMessageDto {
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof DocumentMessageDto
|
|
26
|
+
* @example https://example.com/document.pdf
|
|
27
|
+
*/
|
|
28
|
+
mediaUrl: string;
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof DocumentMessageDto
|
|
33
|
+
* @example documentMessage
|
|
34
|
+
*/
|
|
35
|
+
mediaType: string;
|
|
36
|
+
}
|
|
@@ -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 ImageMessageDto
|
|
20
|
+
*/
|
|
21
|
+
export interface ImageMessageDto {
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof ImageMessageDto
|
|
26
|
+
* @example https://example.com/image.jpg
|
|
27
|
+
*/
|
|
28
|
+
mediaUrl: string;
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof ImageMessageDto
|
|
33
|
+
* @example imageMessage
|
|
34
|
+
*/
|
|
35
|
+
mediaType: string;
|
|
36
|
+
}
|
package/models/index.ts
CHANGED
|
@@ -10,6 +10,8 @@ export * from './contacts-response-dto';
|
|
|
10
10
|
export * from './conversation-message-dto';
|
|
11
11
|
export * from './data-dto';
|
|
12
12
|
export * from './data-unauthorized-dto';
|
|
13
|
+
export * from './document-message-dto';
|
|
14
|
+
export * from './image-message-dto';
|
|
13
15
|
export * from './inline-response2011-class';
|
|
14
16
|
export * from './inline-response2011-message';
|
|
15
17
|
export * from './inline-response503';
|
|
@@ -21,6 +23,7 @@ export * from './parameter-template-dto';
|
|
|
21
23
|
export * from './read-message-dto';
|
|
22
24
|
export * from './read-message-response-data-dto';
|
|
23
25
|
export * from './role-dto';
|
|
26
|
+
export * from './send-message-dto';
|
|
24
27
|
export * from './send-template-data-dto';
|
|
25
28
|
export * from './send-template-dto';
|
|
26
29
|
export * from './send-text-data-response-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 SendMessageDto
|
|
20
|
+
*/
|
|
21
|
+
export interface SendMessageDto {
|
|
22
|
+
}
|
|
@@ -13,6 +13,8 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { ConversationMessageDto } from './conversation-message-dto';
|
|
16
|
+
import { DocumentMessageDto } from './document-message-dto';
|
|
17
|
+
import { ImageMessageDto } from './image-message-dto';
|
|
16
18
|
import { WhatsappMessageKeyDto } from './whatsapp-message-key-dto';
|
|
17
19
|
/**
|
|
18
20
|
*
|
|
@@ -44,10 +46,10 @@ export interface WhatsappMessageDto {
|
|
|
44
46
|
messageTimestamp: number;
|
|
45
47
|
|
|
46
48
|
/**
|
|
47
|
-
* @type {ConversationMessageDto}
|
|
49
|
+
* @type {ConversationMessageDto | ImageMessageDto | DocumentMessageDto}
|
|
48
50
|
* @memberof WhatsappMessageDto
|
|
49
51
|
*/
|
|
50
|
-
message: ConversationMessageDto;
|
|
52
|
+
message: ConversationMessageDto | ImageMessageDto | DocumentMessageDto;
|
|
51
53
|
|
|
52
54
|
/**
|
|
53
55
|
* @type {WhatsappMessageKeyDto}
|
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.25",
|
|
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.8.4"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
23
|
"@types/node": "^12.11.5",
|