@libgot/whatsapp-bridge-sdk 1.0.2 → 1.0.4
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/messages-api.ts +117 -0
- package/dist/api.d.ts +17 -0
- package/dist/api.js +31 -0
- package/dist/apis/auth-api.d.ts +121 -0
- package/dist/apis/auth-api.js +418 -0
- package/dist/apis/contacts-api.d.ts +66 -0
- package/dist/apis/contacts-api.js +203 -0
- package/dist/apis/default-api.d.ts +90 -0
- package/dist/apis/default-api.js +287 -0
- package/dist/apis/healthchecks-api.d.ts +90 -0
- package/dist/apis/healthchecks-api.js +287 -0
- package/dist/apis/messages-api.d.ts +66 -0
- package/dist/apis/messages-api.js +203 -0
- package/dist/apis/users-api.d.ts +179 -0
- package/dist/apis/users-api.js +586 -0
- package/dist/base.d.ts +55 -0
- package/dist/base.js +80 -0
- package/dist/configuration.d.ts +65 -0
- package/dist/configuration.js +29 -0
- package/dist/index.d.ts +14 -0
- package/dist/index.js +28 -0
- package/dist/models/api-request-user-update-password-dto.d.ts +25 -0
- package/dist/models/api-request-user-update-password-dto.js +15 -0
- package/dist/models/api-response-auth-dto.d.ts +25 -0
- package/dist/models/api-response-auth-dto.js +15 -0
- package/dist/models/api-response-user-dto.d.ts +25 -0
- package/dist/models/api-response-user-dto.js +15 -0
- package/dist/models/attributes.d.ts +31 -0
- package/dist/models/attributes.js +15 -0
- package/dist/models/auth-dto.d.ts +31 -0
- package/dist/models/auth-dto.js +15 -0
- package/dist/models/contacts-response-dto.d.ts +25 -0
- package/dist/models/contacts-response-dto.js +15 -0
- package/dist/models/conversation-message-dto.d.ts +25 -0
- package/dist/models/conversation-message-dto.js +15 -0
- package/dist/models/data-dto.d.ts +25 -0
- package/dist/models/data-dto.js +15 -0
- package/dist/models/data-unauthorized-dto.d.ts +29 -0
- package/dist/models/data-unauthorized-dto.js +15 -0
- package/dist/models/index.d.ts +21 -0
- package/dist/models/index.js +33 -0
- package/dist/models/inline-response503-info.d.ts +24 -0
- package/dist/models/inline-response503-info.js +15 -0
- package/dist/models/inline-response503.d.ts +50 -0
- package/dist/models/inline-response503.js +15 -0
- package/dist/models/message-dto.d.ts +19 -0
- package/dist/models/message-dto.js +15 -0
- package/dist/models/message-response-dto.d.ts +25 -0
- package/dist/models/message-response-dto.js +15 -0
- package/dist/models/role-dto.d.ts +37 -0
- package/dist/models/role-dto.js +15 -0
- package/dist/models/status-dto.d.ts +31 -0
- package/dist/models/status-dto.js +15 -0
- package/dist/models/tokens-dto.d.ts +31 -0
- package/dist/models/tokens-dto.js +15 -0
- package/dist/models/unauthorized-dto.d.ts +25 -0
- package/dist/models/unauthorized-dto.js +15 -0
- package/dist/models/unauthorized-token-dto.d.ts +29 -0
- package/dist/models/unauthorized-token-dto.js +15 -0
- package/dist/models/user-detail-dto.d.ts +49 -0
- package/dist/models/user-detail-dto.js +15 -0
- package/dist/models/user-update-password-dto.d.ts +37 -0
- package/dist/models/user-update-password-dto.js +15 -0
- package/dist/models/whatsapp-contact-dto.d.ts +43 -0
- package/dist/models/whatsapp-contact-dto.js +15 -0
- package/dist/models/whatsapp-message-dto.d.ts +43 -0
- package/dist/models/whatsapp-message-dto.js +15 -0
- package/models/conversation-message-dto.ts +29 -0
- package/models/index.ts +3 -1
- package/models/message-response-dto.ts +29 -0
- package/models/whatsapp-contact-dto.ts +1 -1
- package/models/whatsapp-message-dto.ts +50 -0
- package/package.json +1 -1
- package/publish.sh +1 -0
|
@@ -0,0 +1,90 @@
|
|
|
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
|
+
/**
|
|
16
|
+
* DefaultApi - axios parameter creator
|
|
17
|
+
* @export
|
|
18
|
+
*/
|
|
19
|
+
export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @param {*} [options] Override http request option.
|
|
23
|
+
* @throws {RequiredError}
|
|
24
|
+
*/
|
|
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
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* DefaultApi - functional programming interface
|
|
35
|
+
* @export
|
|
36
|
+
*/
|
|
37
|
+
export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @param {*} [options] Override http request option.
|
|
41
|
+
* @throws {RequiredError}
|
|
42
|
+
*/
|
|
43
|
+
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
|
+
};
|
|
51
|
+
/**
|
|
52
|
+
* DefaultApi - factory interface
|
|
53
|
+
* @export
|
|
54
|
+
*/
|
|
55
|
+
export declare const DefaultApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @param {*} [options] Override http request option.
|
|
59
|
+
* @throws {RequiredError}
|
|
60
|
+
*/
|
|
61
|
+
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
|
+
};
|
|
69
|
+
/**
|
|
70
|
+
* DefaultApi - object-oriented interface
|
|
71
|
+
* @export
|
|
72
|
+
* @class DefaultApi
|
|
73
|
+
* @extends {BaseAPI}
|
|
74
|
+
*/
|
|
75
|
+
export declare class DefaultApi extends BaseAPI {
|
|
76
|
+
/**
|
|
77
|
+
*
|
|
78
|
+
* @param {*} [options] Override http request option.
|
|
79
|
+
* @throws {RequiredError}
|
|
80
|
+
* @memberof DefaultApi
|
|
81
|
+
*/
|
|
82
|
+
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
|
+
}
|
|
@@ -0,0 +1,287 @@
|
|
|
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.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = 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
|
+
* DefaultApi - axios parameter creator
|
|
83
|
+
* @export
|
|
84
|
+
*/
|
|
85
|
+
exports.DefaultApiAxiosParamCreator = function (configuration) {
|
|
86
|
+
var _this = this;
|
|
87
|
+
return {
|
|
88
|
+
/**
|
|
89
|
+
*
|
|
90
|
+
* @param {*} [options] Override http request option.
|
|
91
|
+
* @throws {RequiredError}
|
|
92
|
+
*/
|
|
93
|
+
appControllerGetHello: 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 = "/";
|
|
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
|
+
* @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
|
+
};
|
|
159
|
+
};
|
|
160
|
+
/**
|
|
161
|
+
* DefaultApi - functional programming interface
|
|
162
|
+
* @export
|
|
163
|
+
*/
|
|
164
|
+
exports.DefaultApiFp = function (configuration) {
|
|
165
|
+
return {
|
|
166
|
+
/**
|
|
167
|
+
*
|
|
168
|
+
* @param {*} [options] Override http request option.
|
|
169
|
+
* @throws {RequiredError}
|
|
170
|
+
*/
|
|
171
|
+
appControllerGetHello: function (options) {
|
|
172
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
173
|
+
var localVarAxiosArgs;
|
|
174
|
+
return __generator(this, function (_a) {
|
|
175
|
+
switch (_a.label) {
|
|
176
|
+
case 0: return [4 /*yield*/, exports.DefaultApiAxiosParamCreator(configuration).appControllerGetHello(options)];
|
|
177
|
+
case 1:
|
|
178
|
+
localVarAxiosArgs = _a.sent();
|
|
179
|
+
return [2 /*return*/, function (axios, basePath) {
|
|
180
|
+
if (axios === void 0) { axios = axios_1.default; }
|
|
181
|
+
if (basePath === void 0) { basePath = base_1.BASE_PATH; }
|
|
182
|
+
var axiosRequestArgs = __assign(__assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
|
|
183
|
+
return axios.request(axiosRequestArgs);
|
|
184
|
+
}];
|
|
185
|
+
}
|
|
186
|
+
});
|
|
187
|
+
});
|
|
188
|
+
},
|
|
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
|
+
};
|
|
213
|
+
};
|
|
214
|
+
/**
|
|
215
|
+
* DefaultApi - factory interface
|
|
216
|
+
* @export
|
|
217
|
+
*/
|
|
218
|
+
exports.DefaultApiFactory = function (configuration, basePath, axios) {
|
|
219
|
+
return {
|
|
220
|
+
/**
|
|
221
|
+
*
|
|
222
|
+
* @param {*} [options] Override http request option.
|
|
223
|
+
* @throws {RequiredError}
|
|
224
|
+
*/
|
|
225
|
+
appControllerGetHello: function (options) {
|
|
226
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
227
|
+
return __generator(this, function (_a) {
|
|
228
|
+
return [2 /*return*/, exports.DefaultApiFp(configuration).appControllerGetHello(options).then(function (request) { return request(axios, basePath); })];
|
|
229
|
+
});
|
|
230
|
+
});
|
|
231
|
+
},
|
|
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
|
+
};
|
|
245
|
+
};
|
|
246
|
+
/**
|
|
247
|
+
* DefaultApi - object-oriented interface
|
|
248
|
+
* @export
|
|
249
|
+
* @class DefaultApi
|
|
250
|
+
* @extends {BaseAPI}
|
|
251
|
+
*/
|
|
252
|
+
var DefaultApi = /** @class */ (function (_super) {
|
|
253
|
+
__extends(DefaultApi, _super);
|
|
254
|
+
function DefaultApi() {
|
|
255
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
256
|
+
}
|
|
257
|
+
/**
|
|
258
|
+
*
|
|
259
|
+
* @param {*} [options] Override http request option.
|
|
260
|
+
* @throws {RequiredError}
|
|
261
|
+
* @memberof DefaultApi
|
|
262
|
+
*/
|
|
263
|
+
DefaultApi.prototype.appControllerGetHello = function (options) {
|
|
264
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
265
|
+
var _this = this;
|
|
266
|
+
return __generator(this, function (_a) {
|
|
267
|
+
return [2 /*return*/, exports.DefaultApiFp(this.configuration).appControllerGetHello(options).then(function (request) { return request(_this.axios, _this.basePath); })];
|
|
268
|
+
});
|
|
269
|
+
});
|
|
270
|
+
};
|
|
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
|
+
return DefaultApi;
|
|
286
|
+
}(base_1.BaseAPI));
|
|
287
|
+
exports.DefaultApi = DefaultApi;
|
|
@@ -0,0 +1,90 @@
|
|
|
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
|
+
/**
|
|
16
|
+
* HealthchecksApi - axios parameter creator
|
|
17
|
+
* @export
|
|
18
|
+
*/
|
|
19
|
+
export declare const HealthchecksApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @param {*} [options] Override http request option.
|
|
23
|
+
* @throws {RequiredError}
|
|
24
|
+
*/
|
|
25
|
+
healthcheckControllerLiveness: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @param {*} [options] Override http request option.
|
|
29
|
+
* @throws {RequiredError}
|
|
30
|
+
*/
|
|
31
|
+
healthcheckControllerReadiness: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* HealthchecksApi - functional programming interface
|
|
35
|
+
* @export
|
|
36
|
+
*/
|
|
37
|
+
export declare const HealthchecksApiFp: (configuration?: Configuration) => {
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @param {*} [options] Override http request option.
|
|
41
|
+
* @throws {RequiredError}
|
|
42
|
+
*/
|
|
43
|
+
healthcheckControllerLiveness(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<void>>>;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @param {*} [options] Override http request option.
|
|
47
|
+
* @throws {RequiredError}
|
|
48
|
+
*/
|
|
49
|
+
healthcheckControllerReadiness(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<void>>>;
|
|
50
|
+
};
|
|
51
|
+
/**
|
|
52
|
+
* HealthchecksApi - factory interface
|
|
53
|
+
* @export
|
|
54
|
+
*/
|
|
55
|
+
export declare const HealthchecksApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @param {*} [options] Override http request option.
|
|
59
|
+
* @throws {RequiredError}
|
|
60
|
+
*/
|
|
61
|
+
healthcheckControllerLiveness(options?: AxiosRequestConfig): Promise<AxiosResponse<void>>;
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
* @param {*} [options] Override http request option.
|
|
65
|
+
* @throws {RequiredError}
|
|
66
|
+
*/
|
|
67
|
+
healthcheckControllerReadiness(options?: AxiosRequestConfig): Promise<AxiosResponse<void>>;
|
|
68
|
+
};
|
|
69
|
+
/**
|
|
70
|
+
* HealthchecksApi - object-oriented interface
|
|
71
|
+
* @export
|
|
72
|
+
* @class HealthchecksApi
|
|
73
|
+
* @extends {BaseAPI}
|
|
74
|
+
*/
|
|
75
|
+
export declare class HealthchecksApi extends BaseAPI {
|
|
76
|
+
/**
|
|
77
|
+
*
|
|
78
|
+
* @param {*} [options] Override http request option.
|
|
79
|
+
* @throws {RequiredError}
|
|
80
|
+
* @memberof HealthchecksApi
|
|
81
|
+
*/
|
|
82
|
+
healthcheckControllerLiveness(options?: AxiosRequestConfig): Promise<AxiosResponse<void>>;
|
|
83
|
+
/**
|
|
84
|
+
*
|
|
85
|
+
* @param {*} [options] Override http request option.
|
|
86
|
+
* @throws {RequiredError}
|
|
87
|
+
* @memberof HealthchecksApi
|
|
88
|
+
*/
|
|
89
|
+
healthcheckControllerReadiness(options?: AxiosRequestConfig): Promise<AxiosResponse<void>>;
|
|
90
|
+
}
|