@libgot/whatsapp-bridge-sdk 1.0.11 → 1.0.12
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/dist/apis/chats-api.d.ts +4 -4
- package/dist/models/index.d.ts +1 -2
- package/dist/models/index.js +1 -2
- 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 +1 -2
- 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.12
|
|
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.12 --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/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.
|
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';
|
|
@@ -21,6 +19,7 @@ export * from './unauthorized-token-dto';
|
|
|
21
19
|
export * from './user-detail-dto';
|
|
22
20
|
export * from './user-update-password-dto';
|
|
23
21
|
export * from './whatsapp-chat-dto';
|
|
22
|
+
export * from './whatsapp-chat-response-dto';
|
|
24
23
|
export * from './whatsapp-contact-dto';
|
|
25
24
|
export * from './whatsapp-message-dto';
|
|
26
25
|
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);
|
|
@@ -37,6 +35,7 @@ __exportStar(require("./unauthorized-token-dto"), exports);
|
|
|
37
35
|
__exportStar(require("./user-detail-dto"), exports);
|
|
38
36
|
__exportStar(require("./user-update-password-dto"), exports);
|
|
39
37
|
__exportStar(require("./whatsapp-chat-dto"), exports);
|
|
38
|
+
__exportStar(require("./whatsapp-chat-response-dto"), exports);
|
|
40
39
|
__exportStar(require("./whatsapp-contact-dto"), exports);
|
|
41
40
|
__exportStar(require("./whatsapp-message-dto"), exports);
|
|
42
41
|
__exportStar(require("./whatsapp-message-key-dto"), exports);
|
|
@@ -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';
|
|
@@ -21,6 +19,7 @@ export * from './unauthorized-token-dto';
|
|
|
21
19
|
export * from './user-detail-dto';
|
|
22
20
|
export * from './user-update-password-dto';
|
|
23
21
|
export * from './whatsapp-chat-dto';
|
|
22
|
+
export * from './whatsapp-chat-response-dto';
|
|
24
23
|
export * from './whatsapp-contact-dto';
|
|
25
24
|
export * from './whatsapp-message-dto';
|
|
26
25
|
export * from './whatsapp-message-key-dto';
|
|
@@ -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
|
+
}
|