@libgot/whatsapp-bridge-sdk 1.0.13 → 1.0.14
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/messages-api.ts +4 -4
- package/dist/apis/messages-api.d.ts +4 -4
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/dist/models/send-text-data-response-dto.d.ts +25 -0
- package/dist/models/send-text-data-response-dto.js +15 -0
- package/dist/models/send-text-response-dto.d.ts +1 -1
- package/models/index.ts +1 -0
- package/models/send-text-data-response-dto.ts +29 -0
- package/models/send-text-response-dto.ts +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @1.0.
|
|
1
|
+
## @1.0.14
|
|
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.14 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
package/apis/messages-api.ts
CHANGED
|
@@ -18,8 +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 { SendTextDataResponseDto } from '../models';
|
|
21
22
|
import { SendTextDto } from '../models';
|
|
22
|
-
import { SendTextResponseDto } from '../models';
|
|
23
23
|
/**
|
|
24
24
|
* MessagesApi - axios parameter creator
|
|
25
25
|
* @export
|
|
@@ -138,7 +138,7 @@ export const MessagesApiFp = function(configuration?: Configuration) {
|
|
|
138
138
|
* @param {*} [options] Override http request option.
|
|
139
139
|
* @throws {RequiredError}
|
|
140
140
|
*/
|
|
141
|
-
async sendMessage(body: SendTextDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<
|
|
141
|
+
async sendMessage(body: SendTextDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<SendTextDataResponseDto>>> {
|
|
142
142
|
const localVarAxiosArgs = await MessagesApiAxiosParamCreator(configuration).sendMessage(body, options);
|
|
143
143
|
return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
|
|
144
144
|
const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
|
|
@@ -169,7 +169,7 @@ export const MessagesApiFactory = function (configuration?: Configuration, baseP
|
|
|
169
169
|
* @param {*} [options] Override http request option.
|
|
170
170
|
* @throws {RequiredError}
|
|
171
171
|
*/
|
|
172
|
-
async sendMessage(body: SendTextDto, options?: AxiosRequestConfig): Promise<AxiosResponse<
|
|
172
|
+
async sendMessage(body: SendTextDto, options?: AxiosRequestConfig): Promise<AxiosResponse<SendTextDataResponseDto>> {
|
|
173
173
|
return MessagesApiFp(configuration).sendMessage(body, options).then((request) => request(axios, basePath));
|
|
174
174
|
},
|
|
175
175
|
};
|
|
@@ -199,7 +199,7 @@ export class MessagesApi extends BaseAPI {
|
|
|
199
199
|
* @throws {RequiredError}
|
|
200
200
|
* @memberof MessagesApi
|
|
201
201
|
*/
|
|
202
|
-
public async sendMessage(body: SendTextDto, options?: AxiosRequestConfig) : Promise<AxiosResponse<
|
|
202
|
+
public async sendMessage(body: SendTextDto, options?: AxiosRequestConfig) : Promise<AxiosResponse<SendTextDataResponseDto>> {
|
|
203
203
|
return MessagesApiFp(this.configuration).sendMessage(body, options).then((request) => request(this.axios, this.basePath));
|
|
204
204
|
}
|
|
205
205
|
}
|
|
@@ -13,8 +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 { SendTextDataResponseDto } from '../models';
|
|
16
17
|
import { SendTextDto } from '../models';
|
|
17
|
-
import { SendTextResponseDto } from '../models';
|
|
18
18
|
/**
|
|
19
19
|
* MessagesApi - axios parameter creator
|
|
20
20
|
* @export
|
|
@@ -53,7 +53,7 @@ export declare const MessagesApiFp: (configuration?: Configuration) => {
|
|
|
53
53
|
* @param {*} [options] Override http request option.
|
|
54
54
|
* @throws {RequiredError}
|
|
55
55
|
*/
|
|
56
|
-
sendMessage(body: SendTextDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<
|
|
56
|
+
sendMessage(body: SendTextDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<SendTextDataResponseDto>>>;
|
|
57
57
|
};
|
|
58
58
|
/**
|
|
59
59
|
* MessagesApi - factory interface
|
|
@@ -73,7 +73,7 @@ export declare const MessagesApiFactory: (configuration?: Configuration, basePat
|
|
|
73
73
|
* @param {*} [options] Override http request option.
|
|
74
74
|
* @throws {RequiredError}
|
|
75
75
|
*/
|
|
76
|
-
sendMessage(body: SendTextDto, options?: AxiosRequestConfig): Promise<AxiosResponse<
|
|
76
|
+
sendMessage(body: SendTextDto, options?: AxiosRequestConfig): Promise<AxiosResponse<SendTextDataResponseDto>>;
|
|
77
77
|
};
|
|
78
78
|
/**
|
|
79
79
|
* MessagesApi - object-oriented interface
|
|
@@ -97,5 +97,5 @@ export declare class MessagesApi extends BaseAPI {
|
|
|
97
97
|
* @throws {RequiredError}
|
|
98
98
|
* @memberof MessagesApi
|
|
99
99
|
*/
|
|
100
|
-
sendMessage(body: SendTextDto, options?: AxiosRequestConfig): Promise<AxiosResponse<
|
|
100
|
+
sendMessage(body: SendTextDto, options?: AxiosRequestConfig): Promise<AxiosResponse<SendTextDataResponseDto>>;
|
|
101
101
|
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -15,6 +15,7 @@ export * from './inline-response503-info';
|
|
|
15
15
|
export * from './key-dto';
|
|
16
16
|
export * from './message-response-dto';
|
|
17
17
|
export * from './role-dto';
|
|
18
|
+
export * from './send-text-data-response-dto';
|
|
18
19
|
export * from './send-text-dto';
|
|
19
20
|
export * from './send-text-response-dto';
|
|
20
21
|
export * from './status-dto';
|
package/dist/models/index.js
CHANGED
|
@@ -31,6 +31,7 @@ __exportStar(require("./inline-response503-info"), exports);
|
|
|
31
31
|
__exportStar(require("./key-dto"), exports);
|
|
32
32
|
__exportStar(require("./message-response-dto"), exports);
|
|
33
33
|
__exportStar(require("./role-dto"), exports);
|
|
34
|
+
__exportStar(require("./send-text-data-response-dto"), exports);
|
|
34
35
|
__exportStar(require("./send-text-dto"), exports);
|
|
35
36
|
__exportStar(require("./send-text-response-dto"), exports);
|
|
36
37
|
__exportStar(require("./status-dto"), exports);
|
|
@@ -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 { SendTextResponseDto } from './send-text-response-dto';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface SendTextDataResponseDto
|
|
18
|
+
*/
|
|
19
|
+
export interface SendTextDataResponseDto {
|
|
20
|
+
/**
|
|
21
|
+
* @type {SendTextResponseDto}
|
|
22
|
+
* @memberof SendTextDataResponseDto
|
|
23
|
+
*/
|
|
24
|
+
data: SendTextResponseDto;
|
|
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
|
@@ -15,6 +15,7 @@ export * from './inline-response503-info';
|
|
|
15
15
|
export * from './key-dto';
|
|
16
16
|
export * from './message-response-dto';
|
|
17
17
|
export * from './role-dto';
|
|
18
|
+
export * from './send-text-data-response-dto';
|
|
18
19
|
export * from './send-text-dto';
|
|
19
20
|
export * from './send-text-response-dto';
|
|
20
21
|
export * from './status-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 { SendTextResponseDto } from './send-text-response-dto';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
* @interface SendTextDataResponseDto
|
|
21
|
+
*/
|
|
22
|
+
export interface SendTextDataResponseDto {
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* @type {SendTextResponseDto}
|
|
26
|
+
* @memberof SendTextDataResponseDto
|
|
27
|
+
*/
|
|
28
|
+
data: SendTextResponseDto;
|
|
29
|
+
}
|