@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 CHANGED
@@ -1,4 +1,4 @@
1
- ## @1.0.13
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.13 --save
39
+ npm install @libgot/whatsapp-bridge-sdk@1.0.14 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -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<SendTextResponseDto>>> {
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<SendTextResponseDto>> {
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<SendTextResponseDto>> {
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<SendTextResponseDto>>>;
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<SendTextResponseDto>>;
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<SendTextResponseDto>>;
100
+ sendMessage(body: SendTextDto, options?: AxiosRequestConfig): Promise<AxiosResponse<SendTextDataResponseDto>>;
101
101
  }
@@ -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';
@@ -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 });
@@ -21,5 +21,5 @@ export interface SendTextResponseDto {
21
21
  * @type {InlineResponse2011Class}
22
22
  * @memberof SendTextResponseDto
23
23
  */
24
- data: InlineResponse2011Class;
24
+ message: InlineResponse2011Class;
25
25
  }
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
+ }
@@ -25,5 +25,5 @@ export interface SendTextResponseDto {
25
25
  * @type {InlineResponse2011Class}
26
26
  * @memberof SendTextResponseDto
27
27
  */
28
- data: InlineResponse2011Class;
28
+ message: InlineResponse2011Class;
29
29
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@libgot/whatsapp-bridge-sdk",
3
- "version": "1.0.13",
3
+ "version": "1.0.14",
4
4
  "description": "OpenAPI client for ",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [