@libgot/whatsapp-bridge-sdk 1.0.4 → 1.0.5
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/api.ts +1 -0
- package/apis/chats-api.ts +117 -0
- package/apis/default-api.ts +0 -62
- package/dist/api.d.ts +1 -0
- package/dist/api.js +1 -0
- package/dist/apis/chats-api.d.ts +66 -0
- package/dist/apis/chats-api.js +203 -0
- package/dist/apis/default-api.d.ts +0 -25
- package/dist/apis/default-api.js +0 -84
- package/dist/models/chats-response-dto.d.ts +25 -0
- package/dist/models/chats-response-dto.js +15 -0
- package/dist/models/index.d.ts +2 -0
- package/dist/models/index.js +2 -0
- package/dist/models/whatsapp-chat-dto.d.ts +55 -0
- package/dist/models/whatsapp-chat-dto.js +15 -0
- package/dist/models/whatsapp-message-dto.d.ts +1 -1
- package/models/chats-response-dto.ts +29 -0
- package/models/index.ts +2 -0
- package/models/whatsapp-chat-dto.ts +64 -0
- package/models/whatsapp-message-dto.ts +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @1.0.
|
|
1
|
+
## @1.0.5
|
|
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.5 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
package/api.ts
CHANGED
|
@@ -0,0 +1,117 @@
|
|
|
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 globalAxios, { AxiosResponse, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
16
|
+
import { Configuration } from '../configuration';
|
|
17
|
+
// Some imports not used depending on template conditions
|
|
18
|
+
// @ts-ignore
|
|
19
|
+
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
|
|
20
|
+
import { ChatsResponseDTO } from '../models';
|
|
21
|
+
/**
|
|
22
|
+
* ChatsApi - axios parameter creator
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
export const ChatsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
26
|
+
return {
|
|
27
|
+
/**
|
|
28
|
+
*
|
|
29
|
+
* @param {*} [options] Override http request option.
|
|
30
|
+
* @throws {RequiredError}
|
|
31
|
+
*/
|
|
32
|
+
getChats: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
33
|
+
const localVarPath = `/api/chats`;
|
|
34
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
35
|
+
const localVarUrlObj = new URL(localVarPath, 'https://example.com');
|
|
36
|
+
let baseOptions;
|
|
37
|
+
if (configuration) {
|
|
38
|
+
baseOptions = configuration.baseOptions;
|
|
39
|
+
}
|
|
40
|
+
const localVarRequestOptions :AxiosRequestConfig = { method: 'GET', ...baseOptions, ...options};
|
|
41
|
+
const localVarHeaderParameter = {} as any;
|
|
42
|
+
const localVarQueryParameter = {} as any;
|
|
43
|
+
|
|
44
|
+
const query = new URLSearchParams(localVarUrlObj.search);
|
|
45
|
+
for (const key in localVarQueryParameter) {
|
|
46
|
+
query.set(key, localVarQueryParameter[key]);
|
|
47
|
+
}
|
|
48
|
+
for (const key in options.params) {
|
|
49
|
+
query.set(key, options.params[key]);
|
|
50
|
+
}
|
|
51
|
+
localVarUrlObj.search = (new URLSearchParams(query)).toString();
|
|
52
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
53
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
54
|
+
|
|
55
|
+
return {
|
|
56
|
+
url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
|
|
57
|
+
options: localVarRequestOptions,
|
|
58
|
+
};
|
|
59
|
+
},
|
|
60
|
+
}
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* ChatsApi - functional programming interface
|
|
65
|
+
* @export
|
|
66
|
+
*/
|
|
67
|
+
export const ChatsApiFp = function(configuration?: Configuration) {
|
|
68
|
+
return {
|
|
69
|
+
/**
|
|
70
|
+
*
|
|
71
|
+
* @param {*} [options] Override http request option.
|
|
72
|
+
* @throws {RequiredError}
|
|
73
|
+
*/
|
|
74
|
+
async getChats(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<ChatsResponseDTO>>> {
|
|
75
|
+
const localVarAxiosArgs = await ChatsApiAxiosParamCreator(configuration).getChats(options);
|
|
76
|
+
return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
|
|
77
|
+
const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
|
|
78
|
+
return axios.request(axiosRequestArgs);
|
|
79
|
+
};
|
|
80
|
+
},
|
|
81
|
+
}
|
|
82
|
+
};
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* ChatsApi - factory interface
|
|
86
|
+
* @export
|
|
87
|
+
*/
|
|
88
|
+
export const ChatsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
89
|
+
return {
|
|
90
|
+
/**
|
|
91
|
+
*
|
|
92
|
+
* @param {*} [options] Override http request option.
|
|
93
|
+
* @throws {RequiredError}
|
|
94
|
+
*/
|
|
95
|
+
async getChats(options?: AxiosRequestConfig): Promise<AxiosResponse<ChatsResponseDTO>> {
|
|
96
|
+
return ChatsApiFp(configuration).getChats(options).then((request) => request(axios, basePath));
|
|
97
|
+
},
|
|
98
|
+
};
|
|
99
|
+
};
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* ChatsApi - object-oriented interface
|
|
103
|
+
* @export
|
|
104
|
+
* @class ChatsApi
|
|
105
|
+
* @extends {BaseAPI}
|
|
106
|
+
*/
|
|
107
|
+
export class ChatsApi extends BaseAPI {
|
|
108
|
+
/**
|
|
109
|
+
*
|
|
110
|
+
* @param {*} [options] Override http request option.
|
|
111
|
+
* @throws {RequiredError}
|
|
112
|
+
* @memberof ChatsApi
|
|
113
|
+
*/
|
|
114
|
+
public async getChats(options?: AxiosRequestConfig) : Promise<AxiosResponse<ChatsResponseDTO>> {
|
|
115
|
+
return ChatsApiFp(this.configuration).getChats(options).then((request) => request(this.axios, this.basePath));
|
|
116
|
+
}
|
|
117
|
+
}
|
package/apis/default-api.ts
CHANGED
|
@@ -51,39 +51,6 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
51
51
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
52
52
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
53
53
|
|
|
54
|
-
return {
|
|
55
|
-
url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
|
|
56
|
-
options: localVarRequestOptions,
|
|
57
|
-
};
|
|
58
|
-
},
|
|
59
|
-
/**
|
|
60
|
-
*
|
|
61
|
-
* @param {*} [options] Override http request option.
|
|
62
|
-
* @throws {RequiredError}
|
|
63
|
-
*/
|
|
64
|
-
getChats: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
65
|
-
const localVarPath = `/api/chats`;
|
|
66
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
67
|
-
const localVarUrlObj = new URL(localVarPath, 'https://example.com');
|
|
68
|
-
let baseOptions;
|
|
69
|
-
if (configuration) {
|
|
70
|
-
baseOptions = configuration.baseOptions;
|
|
71
|
-
}
|
|
72
|
-
const localVarRequestOptions :AxiosRequestConfig = { method: 'GET', ...baseOptions, ...options};
|
|
73
|
-
const localVarHeaderParameter = {} as any;
|
|
74
|
-
const localVarQueryParameter = {} as any;
|
|
75
|
-
|
|
76
|
-
const query = new URLSearchParams(localVarUrlObj.search);
|
|
77
|
-
for (const key in localVarQueryParameter) {
|
|
78
|
-
query.set(key, localVarQueryParameter[key]);
|
|
79
|
-
}
|
|
80
|
-
for (const key in options.params) {
|
|
81
|
-
query.set(key, options.params[key]);
|
|
82
|
-
}
|
|
83
|
-
localVarUrlObj.search = (new URLSearchParams(query)).toString();
|
|
84
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
85
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
86
|
-
|
|
87
54
|
return {
|
|
88
55
|
url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
|
|
89
56
|
options: localVarRequestOptions,
|
|
@@ -110,18 +77,6 @@ export const DefaultApiFp = function(configuration?: Configuration) {
|
|
|
110
77
|
return axios.request(axiosRequestArgs);
|
|
111
78
|
};
|
|
112
79
|
},
|
|
113
|
-
/**
|
|
114
|
-
*
|
|
115
|
-
* @param {*} [options] Override http request option.
|
|
116
|
-
* @throws {RequiredError}
|
|
117
|
-
*/
|
|
118
|
-
async getChats(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<void>>> {
|
|
119
|
-
const localVarAxiosArgs = await DefaultApiAxiosParamCreator(configuration).getChats(options);
|
|
120
|
-
return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
|
|
121
|
-
const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
|
|
122
|
-
return axios.request(axiosRequestArgs);
|
|
123
|
-
};
|
|
124
|
-
},
|
|
125
80
|
}
|
|
126
81
|
};
|
|
127
82
|
|
|
@@ -139,14 +94,6 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa
|
|
|
139
94
|
async appControllerGetHello(options?: AxiosRequestConfig): Promise<AxiosResponse<void>> {
|
|
140
95
|
return DefaultApiFp(configuration).appControllerGetHello(options).then((request) => request(axios, basePath));
|
|
141
96
|
},
|
|
142
|
-
/**
|
|
143
|
-
*
|
|
144
|
-
* @param {*} [options] Override http request option.
|
|
145
|
-
* @throws {RequiredError}
|
|
146
|
-
*/
|
|
147
|
-
async getChats(options?: AxiosRequestConfig): Promise<AxiosResponse<void>> {
|
|
148
|
-
return DefaultApiFp(configuration).getChats(options).then((request) => request(axios, basePath));
|
|
149
|
-
},
|
|
150
97
|
};
|
|
151
98
|
};
|
|
152
99
|
|
|
@@ -166,13 +113,4 @@ export class DefaultApi extends BaseAPI {
|
|
|
166
113
|
public async appControllerGetHello(options?: AxiosRequestConfig) : Promise<AxiosResponse<void>> {
|
|
167
114
|
return DefaultApiFp(this.configuration).appControllerGetHello(options).then((request) => request(this.axios, this.basePath));
|
|
168
115
|
}
|
|
169
|
-
/**
|
|
170
|
-
*
|
|
171
|
-
* @param {*} [options] Override http request option.
|
|
172
|
-
* @throws {RequiredError}
|
|
173
|
-
* @memberof DefaultApi
|
|
174
|
-
*/
|
|
175
|
-
public async getChats(options?: AxiosRequestConfig) : Promise<AxiosResponse<void>> {
|
|
176
|
-
return DefaultApiFp(this.configuration).getChats(options).then((request) => request(this.axios, this.basePath));
|
|
177
|
-
}
|
|
178
116
|
}
|
package/dist/api.d.ts
CHANGED
package/dist/api.js
CHANGED
|
@@ -24,6 +24,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
24
24
|
* Do not edit the class manually.
|
|
25
25
|
*/
|
|
26
26
|
__exportStar(require("./apis/auth-api"), exports);
|
|
27
|
+
__exportStar(require("./apis/chats-api"), exports);
|
|
27
28
|
__exportStar(require("./apis/contacts-api"), exports);
|
|
28
29
|
__exportStar(require("./apis/default-api"), exports);
|
|
29
30
|
__exportStar(require("./apis/healthchecks-api"), exports);
|
|
@@ -0,0 +1,66 @@
|
|
|
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 { AxiosResponse, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
13
|
+
import { Configuration } from '../configuration';
|
|
14
|
+
import { RequestArgs, BaseAPI } from '../base';
|
|
15
|
+
import { ChatsResponseDTO } from '../models';
|
|
16
|
+
/**
|
|
17
|
+
* ChatsApi - axios parameter creator
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
export declare const ChatsApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
* @param {*} [options] Override http request option.
|
|
24
|
+
* @throws {RequiredError}
|
|
25
|
+
*/
|
|
26
|
+
getChats: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* ChatsApi - functional programming interface
|
|
30
|
+
* @export
|
|
31
|
+
*/
|
|
32
|
+
export declare const ChatsApiFp: (configuration?: Configuration) => {
|
|
33
|
+
/**
|
|
34
|
+
*
|
|
35
|
+
* @param {*} [options] Override http request option.
|
|
36
|
+
* @throws {RequiredError}
|
|
37
|
+
*/
|
|
38
|
+
getChats(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<ChatsResponseDTO>>>;
|
|
39
|
+
};
|
|
40
|
+
/**
|
|
41
|
+
* ChatsApi - factory interface
|
|
42
|
+
* @export
|
|
43
|
+
*/
|
|
44
|
+
export declare const ChatsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
45
|
+
/**
|
|
46
|
+
*
|
|
47
|
+
* @param {*} [options] Override http request option.
|
|
48
|
+
* @throws {RequiredError}
|
|
49
|
+
*/
|
|
50
|
+
getChats(options?: AxiosRequestConfig): Promise<AxiosResponse<ChatsResponseDTO>>;
|
|
51
|
+
};
|
|
52
|
+
/**
|
|
53
|
+
* ChatsApi - object-oriented interface
|
|
54
|
+
* @export
|
|
55
|
+
* @class ChatsApi
|
|
56
|
+
* @extends {BaseAPI}
|
|
57
|
+
*/
|
|
58
|
+
export declare class ChatsApi extends BaseAPI {
|
|
59
|
+
/**
|
|
60
|
+
*
|
|
61
|
+
* @param {*} [options] Override http request option.
|
|
62
|
+
* @throws {RequiredError}
|
|
63
|
+
* @memberof ChatsApi
|
|
64
|
+
*/
|
|
65
|
+
getChats(options?: AxiosRequestConfig): Promise<AxiosResponse<ChatsResponseDTO>>;
|
|
66
|
+
}
|
|
@@ -0,0 +1,203 @@
|
|
|
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
|
+
var __extends = (this && this.__extends) || (function () {
|
|
16
|
+
var extendStatics = function (d, b) {
|
|
17
|
+
extendStatics = Object.setPrototypeOf ||
|
|
18
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
19
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
20
|
+
return extendStatics(d, b);
|
|
21
|
+
};
|
|
22
|
+
return function (d, b) {
|
|
23
|
+
extendStatics(d, b);
|
|
24
|
+
function __() { this.constructor = d; }
|
|
25
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
26
|
+
};
|
|
27
|
+
})();
|
|
28
|
+
var __assign = (this && this.__assign) || function () {
|
|
29
|
+
__assign = Object.assign || function(t) {
|
|
30
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
31
|
+
s = arguments[i];
|
|
32
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
33
|
+
t[p] = s[p];
|
|
34
|
+
}
|
|
35
|
+
return t;
|
|
36
|
+
};
|
|
37
|
+
return __assign.apply(this, arguments);
|
|
38
|
+
};
|
|
39
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
40
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
41
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
42
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
43
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
44
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
45
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
46
|
+
});
|
|
47
|
+
};
|
|
48
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
49
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
50
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
51
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
52
|
+
function step(op) {
|
|
53
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
54
|
+
while (_) try {
|
|
55
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
56
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
57
|
+
switch (op[0]) {
|
|
58
|
+
case 0: case 1: t = op; break;
|
|
59
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
60
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
61
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
62
|
+
default:
|
|
63
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
64
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
65
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
66
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
67
|
+
if (t[2]) _.ops.pop();
|
|
68
|
+
_.trys.pop(); continue;
|
|
69
|
+
}
|
|
70
|
+
op = body.call(thisArg, _);
|
|
71
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
72
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
73
|
+
}
|
|
74
|
+
};
|
|
75
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
76
|
+
exports.ChatsApi = exports.ChatsApiFactory = exports.ChatsApiFp = exports.ChatsApiAxiosParamCreator = void 0;
|
|
77
|
+
var axios_1 = require("axios");
|
|
78
|
+
// Some imports not used depending on template conditions
|
|
79
|
+
// @ts-ignore
|
|
80
|
+
var base_1 = require("../base");
|
|
81
|
+
/**
|
|
82
|
+
* ChatsApi - axios parameter creator
|
|
83
|
+
* @export
|
|
84
|
+
*/
|
|
85
|
+
exports.ChatsApiAxiosParamCreator = function (configuration) {
|
|
86
|
+
var _this = this;
|
|
87
|
+
return {
|
|
88
|
+
/**
|
|
89
|
+
*
|
|
90
|
+
* @param {*} [options] Override http request option.
|
|
91
|
+
* @throws {RequiredError}
|
|
92
|
+
*/
|
|
93
|
+
getChats: function (options) {
|
|
94
|
+
if (options === void 0) { options = {}; }
|
|
95
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
96
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, query, key, key, headersFromBaseOptions;
|
|
97
|
+
return __generator(this, function (_a) {
|
|
98
|
+
localVarPath = "/api/chats";
|
|
99
|
+
localVarUrlObj = new URL(localVarPath, 'https://example.com');
|
|
100
|
+
if (configuration) {
|
|
101
|
+
baseOptions = configuration.baseOptions;
|
|
102
|
+
}
|
|
103
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
104
|
+
localVarHeaderParameter = {};
|
|
105
|
+
localVarQueryParameter = {};
|
|
106
|
+
query = new URLSearchParams(localVarUrlObj.search);
|
|
107
|
+
for (key in localVarQueryParameter) {
|
|
108
|
+
query.set(key, localVarQueryParameter[key]);
|
|
109
|
+
}
|
|
110
|
+
for (key in options.params) {
|
|
111
|
+
query.set(key, options.params[key]);
|
|
112
|
+
}
|
|
113
|
+
localVarUrlObj.search = (new URLSearchParams(query)).toString();
|
|
114
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
115
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
116
|
+
return [2 /*return*/, {
|
|
117
|
+
url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
|
|
118
|
+
options: localVarRequestOptions,
|
|
119
|
+
}];
|
|
120
|
+
});
|
|
121
|
+
});
|
|
122
|
+
},
|
|
123
|
+
};
|
|
124
|
+
};
|
|
125
|
+
/**
|
|
126
|
+
* ChatsApi - functional programming interface
|
|
127
|
+
* @export
|
|
128
|
+
*/
|
|
129
|
+
exports.ChatsApiFp = function (configuration) {
|
|
130
|
+
return {
|
|
131
|
+
/**
|
|
132
|
+
*
|
|
133
|
+
* @param {*} [options] Override http request option.
|
|
134
|
+
* @throws {RequiredError}
|
|
135
|
+
*/
|
|
136
|
+
getChats: function (options) {
|
|
137
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
138
|
+
var localVarAxiosArgs;
|
|
139
|
+
return __generator(this, function (_a) {
|
|
140
|
+
switch (_a.label) {
|
|
141
|
+
case 0: return [4 /*yield*/, exports.ChatsApiAxiosParamCreator(configuration).getChats(options)];
|
|
142
|
+
case 1:
|
|
143
|
+
localVarAxiosArgs = _a.sent();
|
|
144
|
+
return [2 /*return*/, function (axios, basePath) {
|
|
145
|
+
if (axios === void 0) { axios = axios_1.default; }
|
|
146
|
+
if (basePath === void 0) { basePath = base_1.BASE_PATH; }
|
|
147
|
+
var axiosRequestArgs = __assign(__assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
|
|
148
|
+
return axios.request(axiosRequestArgs);
|
|
149
|
+
}];
|
|
150
|
+
}
|
|
151
|
+
});
|
|
152
|
+
});
|
|
153
|
+
},
|
|
154
|
+
};
|
|
155
|
+
};
|
|
156
|
+
/**
|
|
157
|
+
* ChatsApi - factory interface
|
|
158
|
+
* @export
|
|
159
|
+
*/
|
|
160
|
+
exports.ChatsApiFactory = function (configuration, basePath, axios) {
|
|
161
|
+
return {
|
|
162
|
+
/**
|
|
163
|
+
*
|
|
164
|
+
* @param {*} [options] Override http request option.
|
|
165
|
+
* @throws {RequiredError}
|
|
166
|
+
*/
|
|
167
|
+
getChats: function (options) {
|
|
168
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
169
|
+
return __generator(this, function (_a) {
|
|
170
|
+
return [2 /*return*/, exports.ChatsApiFp(configuration).getChats(options).then(function (request) { return request(axios, basePath); })];
|
|
171
|
+
});
|
|
172
|
+
});
|
|
173
|
+
},
|
|
174
|
+
};
|
|
175
|
+
};
|
|
176
|
+
/**
|
|
177
|
+
* ChatsApi - object-oriented interface
|
|
178
|
+
* @export
|
|
179
|
+
* @class ChatsApi
|
|
180
|
+
* @extends {BaseAPI}
|
|
181
|
+
*/
|
|
182
|
+
var ChatsApi = /** @class */ (function (_super) {
|
|
183
|
+
__extends(ChatsApi, _super);
|
|
184
|
+
function ChatsApi() {
|
|
185
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
186
|
+
}
|
|
187
|
+
/**
|
|
188
|
+
*
|
|
189
|
+
* @param {*} [options] Override http request option.
|
|
190
|
+
* @throws {RequiredError}
|
|
191
|
+
* @memberof ChatsApi
|
|
192
|
+
*/
|
|
193
|
+
ChatsApi.prototype.getChats = function (options) {
|
|
194
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
195
|
+
var _this = this;
|
|
196
|
+
return __generator(this, function (_a) {
|
|
197
|
+
return [2 /*return*/, exports.ChatsApiFp(this.configuration).getChats(options).then(function (request) { return request(_this.axios, _this.basePath); })];
|
|
198
|
+
});
|
|
199
|
+
});
|
|
200
|
+
};
|
|
201
|
+
return ChatsApi;
|
|
202
|
+
}(base_1.BaseAPI));
|
|
203
|
+
exports.ChatsApi = ChatsApi;
|
|
@@ -23,12 +23,6 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
|
|
|
23
23
|
* @throws {RequiredError}
|
|
24
24
|
*/
|
|
25
25
|
appControllerGetHello: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
26
|
-
/**
|
|
27
|
-
*
|
|
28
|
-
* @param {*} [options] Override http request option.
|
|
29
|
-
* @throws {RequiredError}
|
|
30
|
-
*/
|
|
31
|
-
getChats: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
32
26
|
};
|
|
33
27
|
/**
|
|
34
28
|
* DefaultApi - functional programming interface
|
|
@@ -41,12 +35,6 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
|
41
35
|
* @throws {RequiredError}
|
|
42
36
|
*/
|
|
43
37
|
appControllerGetHello(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<void>>>;
|
|
44
|
-
/**
|
|
45
|
-
*
|
|
46
|
-
* @param {*} [options] Override http request option.
|
|
47
|
-
* @throws {RequiredError}
|
|
48
|
-
*/
|
|
49
|
-
getChats(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<void>>>;
|
|
50
38
|
};
|
|
51
39
|
/**
|
|
52
40
|
* DefaultApi - factory interface
|
|
@@ -59,12 +47,6 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
|
|
|
59
47
|
* @throws {RequiredError}
|
|
60
48
|
*/
|
|
61
49
|
appControllerGetHello(options?: AxiosRequestConfig): Promise<AxiosResponse<void>>;
|
|
62
|
-
/**
|
|
63
|
-
*
|
|
64
|
-
* @param {*} [options] Override http request option.
|
|
65
|
-
* @throws {RequiredError}
|
|
66
|
-
*/
|
|
67
|
-
getChats(options?: AxiosRequestConfig): Promise<AxiosResponse<void>>;
|
|
68
50
|
};
|
|
69
51
|
/**
|
|
70
52
|
* DefaultApi - object-oriented interface
|
|
@@ -80,11 +62,4 @@ export declare class DefaultApi extends BaseAPI {
|
|
|
80
62
|
* @memberof DefaultApi
|
|
81
63
|
*/
|
|
82
64
|
appControllerGetHello(options?: AxiosRequestConfig): Promise<AxiosResponse<void>>;
|
|
83
|
-
/**
|
|
84
|
-
*
|
|
85
|
-
* @param {*} [options] Override http request option.
|
|
86
|
-
* @throws {RequiredError}
|
|
87
|
-
* @memberof DefaultApi
|
|
88
|
-
*/
|
|
89
|
-
getChats(options?: AxiosRequestConfig): Promise<AxiosResponse<void>>;
|
|
90
65
|
}
|
package/dist/apis/default-api.js
CHANGED
|
@@ -120,41 +120,6 @@ exports.DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
120
120
|
});
|
|
121
121
|
});
|
|
122
122
|
},
|
|
123
|
-
/**
|
|
124
|
-
*
|
|
125
|
-
* @param {*} [options] Override http request option.
|
|
126
|
-
* @throws {RequiredError}
|
|
127
|
-
*/
|
|
128
|
-
getChats: function (options) {
|
|
129
|
-
if (options === void 0) { options = {}; }
|
|
130
|
-
return __awaiter(_this, void 0, void 0, function () {
|
|
131
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, query, key, key, headersFromBaseOptions;
|
|
132
|
-
return __generator(this, function (_a) {
|
|
133
|
-
localVarPath = "/api/chats";
|
|
134
|
-
localVarUrlObj = new URL(localVarPath, 'https://example.com');
|
|
135
|
-
if (configuration) {
|
|
136
|
-
baseOptions = configuration.baseOptions;
|
|
137
|
-
}
|
|
138
|
-
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
139
|
-
localVarHeaderParameter = {};
|
|
140
|
-
localVarQueryParameter = {};
|
|
141
|
-
query = new URLSearchParams(localVarUrlObj.search);
|
|
142
|
-
for (key in localVarQueryParameter) {
|
|
143
|
-
query.set(key, localVarQueryParameter[key]);
|
|
144
|
-
}
|
|
145
|
-
for (key in options.params) {
|
|
146
|
-
query.set(key, options.params[key]);
|
|
147
|
-
}
|
|
148
|
-
localVarUrlObj.search = (new URLSearchParams(query)).toString();
|
|
149
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
150
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
151
|
-
return [2 /*return*/, {
|
|
152
|
-
url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
|
|
153
|
-
options: localVarRequestOptions,
|
|
154
|
-
}];
|
|
155
|
-
});
|
|
156
|
-
});
|
|
157
|
-
},
|
|
158
123
|
};
|
|
159
124
|
};
|
|
160
125
|
/**
|
|
@@ -186,29 +151,6 @@ exports.DefaultApiFp = function (configuration) {
|
|
|
186
151
|
});
|
|
187
152
|
});
|
|
188
153
|
},
|
|
189
|
-
/**
|
|
190
|
-
*
|
|
191
|
-
* @param {*} [options] Override http request option.
|
|
192
|
-
* @throws {RequiredError}
|
|
193
|
-
*/
|
|
194
|
-
getChats: function (options) {
|
|
195
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
196
|
-
var localVarAxiosArgs;
|
|
197
|
-
return __generator(this, function (_a) {
|
|
198
|
-
switch (_a.label) {
|
|
199
|
-
case 0: return [4 /*yield*/, exports.DefaultApiAxiosParamCreator(configuration).getChats(options)];
|
|
200
|
-
case 1:
|
|
201
|
-
localVarAxiosArgs = _a.sent();
|
|
202
|
-
return [2 /*return*/, function (axios, basePath) {
|
|
203
|
-
if (axios === void 0) { axios = axios_1.default; }
|
|
204
|
-
if (basePath === void 0) { basePath = base_1.BASE_PATH; }
|
|
205
|
-
var axiosRequestArgs = __assign(__assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
|
|
206
|
-
return axios.request(axiosRequestArgs);
|
|
207
|
-
}];
|
|
208
|
-
}
|
|
209
|
-
});
|
|
210
|
-
});
|
|
211
|
-
},
|
|
212
154
|
};
|
|
213
155
|
};
|
|
214
156
|
/**
|
|
@@ -229,18 +171,6 @@ exports.DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
229
171
|
});
|
|
230
172
|
});
|
|
231
173
|
},
|
|
232
|
-
/**
|
|
233
|
-
*
|
|
234
|
-
* @param {*} [options] Override http request option.
|
|
235
|
-
* @throws {RequiredError}
|
|
236
|
-
*/
|
|
237
|
-
getChats: function (options) {
|
|
238
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
239
|
-
return __generator(this, function (_a) {
|
|
240
|
-
return [2 /*return*/, exports.DefaultApiFp(configuration).getChats(options).then(function (request) { return request(axios, basePath); })];
|
|
241
|
-
});
|
|
242
|
-
});
|
|
243
|
-
},
|
|
244
174
|
};
|
|
245
175
|
};
|
|
246
176
|
/**
|
|
@@ -268,20 +198,6 @@ var DefaultApi = /** @class */ (function (_super) {
|
|
|
268
198
|
});
|
|
269
199
|
});
|
|
270
200
|
};
|
|
271
|
-
/**
|
|
272
|
-
*
|
|
273
|
-
* @param {*} [options] Override http request option.
|
|
274
|
-
* @throws {RequiredError}
|
|
275
|
-
* @memberof DefaultApi
|
|
276
|
-
*/
|
|
277
|
-
DefaultApi.prototype.getChats = function (options) {
|
|
278
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
279
|
-
var _this = this;
|
|
280
|
-
return __generator(this, function (_a) {
|
|
281
|
-
return [2 /*return*/, exports.DefaultApiFp(this.configuration).getChats(options).then(function (request) { return request(_this.axios, _this.basePath); })];
|
|
282
|
-
});
|
|
283
|
-
});
|
|
284
|
-
};
|
|
285
201
|
return DefaultApi;
|
|
286
202
|
}(base_1.BaseAPI));
|
|
287
203
|
exports.DefaultApi = DefaultApi;
|
|
@@ -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 ChatsResponseDTO
|
|
18
|
+
*/
|
|
19
|
+
export interface ChatsResponseDTO {
|
|
20
|
+
/**
|
|
21
|
+
* @type {Array<WhatsappChatDto>}
|
|
22
|
+
* @memberof ChatsResponseDTO
|
|
23
|
+
*/
|
|
24
|
+
data: Array<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/dist/models/index.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ export * from './api-response-auth-dto';
|
|
|
3
3
|
export * from './api-response-user-dto';
|
|
4
4
|
export * from './attributes';
|
|
5
5
|
export * from './auth-dto';
|
|
6
|
+
export * from './chats-response-dto';
|
|
6
7
|
export * from './contacts-response-dto';
|
|
7
8
|
export * from './conversation-message-dto';
|
|
8
9
|
export * from './data-dto';
|
|
@@ -17,5 +18,6 @@ export * from './unauthorized-dto';
|
|
|
17
18
|
export * from './unauthorized-token-dto';
|
|
18
19
|
export * from './user-detail-dto';
|
|
19
20
|
export * from './user-update-password-dto';
|
|
21
|
+
export * from './whatsapp-chat-dto';
|
|
20
22
|
export * from './whatsapp-contact-dto';
|
|
21
23
|
export * from './whatsapp-message-dto';
|
package/dist/models/index.js
CHANGED
|
@@ -15,6 +15,7 @@ __exportStar(require("./api-response-auth-dto"), exports);
|
|
|
15
15
|
__exportStar(require("./api-response-user-dto"), exports);
|
|
16
16
|
__exportStar(require("./attributes"), exports);
|
|
17
17
|
__exportStar(require("./auth-dto"), exports);
|
|
18
|
+
__exportStar(require("./chats-response-dto"), exports);
|
|
18
19
|
__exportStar(require("./contacts-response-dto"), exports);
|
|
19
20
|
__exportStar(require("./conversation-message-dto"), exports);
|
|
20
21
|
__exportStar(require("./data-dto"), exports);
|
|
@@ -29,5 +30,6 @@ __exportStar(require("./unauthorized-dto"), exports);
|
|
|
29
30
|
__exportStar(require("./unauthorized-token-dto"), exports);
|
|
30
31
|
__exportStar(require("./user-detail-dto"), exports);
|
|
31
32
|
__exportStar(require("./user-update-password-dto"), exports);
|
|
33
|
+
__exportStar(require("./whatsapp-chat-dto"), exports);
|
|
32
34
|
__exportStar(require("./whatsapp-contact-dto"), exports);
|
|
33
35
|
__exportStar(require("./whatsapp-message-dto"), exports);
|
|
@@ -0,0 +1,55 @@
|
|
|
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 { WhatsappContactDto } from './whatsapp-contact-dto';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface WhatsappChatDto
|
|
18
|
+
*/
|
|
19
|
+
export interface WhatsappChatDto {
|
|
20
|
+
/**
|
|
21
|
+
* @type {number}
|
|
22
|
+
* @memberof WhatsappChatDto
|
|
23
|
+
* @example 23
|
|
24
|
+
*/
|
|
25
|
+
id: number;
|
|
26
|
+
/**
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof WhatsappChatDto
|
|
29
|
+
* @example cm55pog2s0042cbkmvehdw2ig
|
|
30
|
+
*/
|
|
31
|
+
externalChatId: string;
|
|
32
|
+
/**
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof WhatsappChatDto
|
|
35
|
+
* @example 15551578788@s.whatsapp.net
|
|
36
|
+
*/
|
|
37
|
+
remoteJid: string;
|
|
38
|
+
/**
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof WhatsappChatDto
|
|
41
|
+
* @example Jhon Doe
|
|
42
|
+
*/
|
|
43
|
+
name: string;
|
|
44
|
+
/**
|
|
45
|
+
* @type {number}
|
|
46
|
+
* @memberof WhatsappChatDto
|
|
47
|
+
* @example 3
|
|
48
|
+
*/
|
|
49
|
+
unreadMessages: number;
|
|
50
|
+
/**
|
|
51
|
+
* @type {WhatsappContactDto}
|
|
52
|
+
* @memberof WhatsappChatDto
|
|
53
|
+
*/
|
|
54
|
+
whatsappContact: WhatsappContactDto;
|
|
55
|
+
}
|
|
@@ -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,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 ChatsResponseDTO
|
|
21
|
+
*/
|
|
22
|
+
export interface ChatsResponseDTO {
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* @type {Array<WhatsappChatDto>}
|
|
26
|
+
* @memberof ChatsResponseDTO
|
|
27
|
+
*/
|
|
28
|
+
data: Array<WhatsappChatDto>;
|
|
29
|
+
}
|
package/models/index.ts
CHANGED
|
@@ -3,6 +3,7 @@ export * from './api-response-auth-dto';
|
|
|
3
3
|
export * from './api-response-user-dto';
|
|
4
4
|
export * from './attributes';
|
|
5
5
|
export * from './auth-dto';
|
|
6
|
+
export * from './chats-response-dto';
|
|
6
7
|
export * from './contacts-response-dto';
|
|
7
8
|
export * from './conversation-message-dto';
|
|
8
9
|
export * from './data-dto';
|
|
@@ -17,5 +18,6 @@ export * from './unauthorized-dto';
|
|
|
17
18
|
export * from './unauthorized-token-dto';
|
|
18
19
|
export * from './user-detail-dto';
|
|
19
20
|
export * from './user-update-password-dto';
|
|
21
|
+
export * from './whatsapp-chat-dto';
|
|
20
22
|
export * from './whatsapp-contact-dto';
|
|
21
23
|
export * from './whatsapp-message-dto';
|
|
@@ -0,0 +1,64 @@
|
|
|
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 { WhatsappContactDto } from './whatsapp-contact-dto';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
* @interface WhatsappChatDto
|
|
21
|
+
*/
|
|
22
|
+
export interface WhatsappChatDto {
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* @type {number}
|
|
26
|
+
* @memberof WhatsappChatDto
|
|
27
|
+
* @example 23
|
|
28
|
+
*/
|
|
29
|
+
id: number;
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof WhatsappChatDto
|
|
34
|
+
* @example cm55pog2s0042cbkmvehdw2ig
|
|
35
|
+
*/
|
|
36
|
+
externalChatId: string;
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof WhatsappChatDto
|
|
41
|
+
* @example 15551578788@s.whatsapp.net
|
|
42
|
+
*/
|
|
43
|
+
remoteJid: string;
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @memberof WhatsappChatDto
|
|
48
|
+
* @example Jhon Doe
|
|
49
|
+
*/
|
|
50
|
+
name: string;
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* @type {number}
|
|
54
|
+
* @memberof WhatsappChatDto
|
|
55
|
+
* @example 3
|
|
56
|
+
*/
|
|
57
|
+
unreadMessages: number;
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* @type {WhatsappContactDto}
|
|
61
|
+
* @memberof WhatsappChatDto
|
|
62
|
+
*/
|
|
63
|
+
whatsappContact: WhatsappContactDto;
|
|
64
|
+
}
|