@triveria/admin 0.0.0-dev-f2e5999
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/api.d.ts +348 -0
- package/api.js +634 -0
- package/base.d.ts +42 -0
- package/base.js +49 -0
- package/client.d.ts +17 -0
- package/client.js +29 -0
- package/common.d.ts +34 -0
- package/common.js +139 -0
- package/configuration.d.ts +98 -0
- package/configuration.js +44 -0
- package/index.d.ts +14 -0
- package/index.js +32 -0
- package/package.json +28 -0
package/api.js
ADDED
|
@@ -0,0 +1,634 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Triveria Admin API
|
|
6
|
+
* Triveria Admin API allows to manage Wallet API keys and services.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: dev.f2e5999
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
16
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
17
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
18
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
19
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
20
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
21
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
22
|
+
});
|
|
23
|
+
};
|
|
24
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
25
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
26
|
+
};
|
|
27
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
|
+
exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = exports.HealthStatusStatusEnum = exports.AdminRole = void 0;
|
|
29
|
+
const axios_1 = __importDefault(require("axios"));
|
|
30
|
+
// Some imports not used depending on template conditions
|
|
31
|
+
// @ts-ignore
|
|
32
|
+
const common_1 = require("./common");
|
|
33
|
+
// @ts-ignore
|
|
34
|
+
const base_1 = require("./base");
|
|
35
|
+
exports.AdminRole = {
|
|
36
|
+
WalletAdminManagerWallet: 'wallet:admin:manager:wallet',
|
|
37
|
+
WalletAdminManagerUser: 'wallet:admin:manager:user',
|
|
38
|
+
};
|
|
39
|
+
exports.HealthStatusStatusEnum = {
|
|
40
|
+
Ok: 'ok',
|
|
41
|
+
Limited: 'limited',
|
|
42
|
+
Critical: 'critical',
|
|
43
|
+
};
|
|
44
|
+
/**
|
|
45
|
+
* DefaultApi - axios parameter creator
|
|
46
|
+
*/
|
|
47
|
+
const DefaultApiAxiosParamCreator = function (configuration) {
|
|
48
|
+
return {
|
|
49
|
+
/**
|
|
50
|
+
* Creates M2M application / client for the authenticated user
|
|
51
|
+
* @param {ApplicationCreateRequest} [applicationCreateRequest]
|
|
52
|
+
* @param {*} [options] Override http request option.
|
|
53
|
+
* @throws {RequiredError}
|
|
54
|
+
*/
|
|
55
|
+
applicationCreate: (applicationCreateRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
56
|
+
const localVarPath = `/applications`;
|
|
57
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
58
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
59
|
+
let baseOptions;
|
|
60
|
+
if (configuration) {
|
|
61
|
+
baseOptions = configuration.baseOptions;
|
|
62
|
+
}
|
|
63
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
64
|
+
const localVarHeaderParameter = {};
|
|
65
|
+
const localVarQueryParameter = {};
|
|
66
|
+
// authentication accessToken required
|
|
67
|
+
// http bearer authentication required
|
|
68
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
69
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
70
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
71
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
72
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
73
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
74
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(applicationCreateRequest, localVarRequestOptions, configuration);
|
|
75
|
+
return {
|
|
76
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
77
|
+
options: localVarRequestOptions,
|
|
78
|
+
};
|
|
79
|
+
}),
|
|
80
|
+
/**
|
|
81
|
+
* Deletes specific M2M application
|
|
82
|
+
* @param {string} applicationId Application ID
|
|
83
|
+
* @param {*} [options] Override http request option.
|
|
84
|
+
* @throws {RequiredError}
|
|
85
|
+
*/
|
|
86
|
+
applicationDelete: (applicationId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
87
|
+
// verify required parameter 'applicationId' is not null or undefined
|
|
88
|
+
(0, common_1.assertParamExists)('applicationDelete', 'applicationId', applicationId);
|
|
89
|
+
const localVarPath = `/applications/{application_id}`
|
|
90
|
+
.replace('{application_id}', encodeURIComponent(String(applicationId)));
|
|
91
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
92
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
93
|
+
let baseOptions;
|
|
94
|
+
if (configuration) {
|
|
95
|
+
baseOptions = configuration.baseOptions;
|
|
96
|
+
}
|
|
97
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
98
|
+
const localVarHeaderParameter = {};
|
|
99
|
+
const localVarQueryParameter = {};
|
|
100
|
+
// authentication accessToken required
|
|
101
|
+
// http bearer authentication required
|
|
102
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
103
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
104
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
105
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
106
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
107
|
+
return {
|
|
108
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
109
|
+
options: localVarRequestOptions,
|
|
110
|
+
};
|
|
111
|
+
}),
|
|
112
|
+
/**
|
|
113
|
+
* Retrieves M2M application info
|
|
114
|
+
* @param {string} applicationId Application ID
|
|
115
|
+
* @param {*} [options] Override http request option.
|
|
116
|
+
* @throws {RequiredError}
|
|
117
|
+
*/
|
|
118
|
+
applicationGet: (applicationId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
119
|
+
// verify required parameter 'applicationId' is not null or undefined
|
|
120
|
+
(0, common_1.assertParamExists)('applicationGet', 'applicationId', applicationId);
|
|
121
|
+
const localVarPath = `/applications/{application_id}`
|
|
122
|
+
.replace('{application_id}', encodeURIComponent(String(applicationId)));
|
|
123
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
124
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
125
|
+
let baseOptions;
|
|
126
|
+
if (configuration) {
|
|
127
|
+
baseOptions = configuration.baseOptions;
|
|
128
|
+
}
|
|
129
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
130
|
+
const localVarHeaderParameter = {};
|
|
131
|
+
const localVarQueryParameter = {};
|
|
132
|
+
// authentication accessToken required
|
|
133
|
+
// http bearer authentication required
|
|
134
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
135
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
136
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
137
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
138
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
139
|
+
return {
|
|
140
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
141
|
+
options: localVarRequestOptions,
|
|
142
|
+
};
|
|
143
|
+
}),
|
|
144
|
+
/**
|
|
145
|
+
* Lists applications / clients for the authenticated user
|
|
146
|
+
* @param {*} [options] Override http request option.
|
|
147
|
+
* @throws {RequiredError}
|
|
148
|
+
*/
|
|
149
|
+
applicationList: (options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
150
|
+
const localVarPath = `/applications`;
|
|
151
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
152
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
153
|
+
let baseOptions;
|
|
154
|
+
if (configuration) {
|
|
155
|
+
baseOptions = configuration.baseOptions;
|
|
156
|
+
}
|
|
157
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
158
|
+
const localVarHeaderParameter = {};
|
|
159
|
+
const localVarQueryParameter = {};
|
|
160
|
+
// authentication accessToken required
|
|
161
|
+
// http bearer authentication required
|
|
162
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
163
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
164
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
165
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
166
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
167
|
+
return {
|
|
168
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
169
|
+
options: localVarRequestOptions,
|
|
170
|
+
};
|
|
171
|
+
}),
|
|
172
|
+
/**
|
|
173
|
+
*
|
|
174
|
+
* @param {*} [options] Override http request option.
|
|
175
|
+
* @throws {RequiredError}
|
|
176
|
+
*/
|
|
177
|
+
healthCheck: (options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
178
|
+
const localVarPath = `/health`;
|
|
179
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
180
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
181
|
+
let baseOptions;
|
|
182
|
+
if (configuration) {
|
|
183
|
+
baseOptions = configuration.baseOptions;
|
|
184
|
+
}
|
|
185
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
186
|
+
const localVarHeaderParameter = {};
|
|
187
|
+
const localVarQueryParameter = {};
|
|
188
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
189
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
190
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
191
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
192
|
+
return {
|
|
193
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
194
|
+
options: localVarRequestOptions,
|
|
195
|
+
};
|
|
196
|
+
}),
|
|
197
|
+
/**
|
|
198
|
+
*
|
|
199
|
+
* @param {*} [options] Override http request option.
|
|
200
|
+
* @throws {RequiredError}
|
|
201
|
+
*/
|
|
202
|
+
ownerGet: (options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
203
|
+
const localVarPath = `/owner`;
|
|
204
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
205
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
206
|
+
let baseOptions;
|
|
207
|
+
if (configuration) {
|
|
208
|
+
baseOptions = configuration.baseOptions;
|
|
209
|
+
}
|
|
210
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
211
|
+
const localVarHeaderParameter = {};
|
|
212
|
+
const localVarQueryParameter = {};
|
|
213
|
+
// authentication accessToken required
|
|
214
|
+
// http bearer authentication required
|
|
215
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
216
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
217
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
218
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
219
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
220
|
+
return {
|
|
221
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
222
|
+
options: localVarRequestOptions,
|
|
223
|
+
};
|
|
224
|
+
}),
|
|
225
|
+
/**
|
|
226
|
+
* Retrieves owner info by ID including M2M apps list
|
|
227
|
+
* @param {string} ownerId
|
|
228
|
+
* @param {*} [options] Override http request option.
|
|
229
|
+
* @throws {RequiredError}
|
|
230
|
+
*/
|
|
231
|
+
ownerGetById: (ownerId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
232
|
+
// verify required parameter 'ownerId' is not null or undefined
|
|
233
|
+
(0, common_1.assertParamExists)('ownerGetById', 'ownerId', ownerId);
|
|
234
|
+
const localVarPath = `/admin/owners/{owner_id}`
|
|
235
|
+
.replace('{owner_id}', encodeURIComponent(String(ownerId)));
|
|
236
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
237
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
238
|
+
let baseOptions;
|
|
239
|
+
if (configuration) {
|
|
240
|
+
baseOptions = configuration.baseOptions;
|
|
241
|
+
}
|
|
242
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
243
|
+
const localVarHeaderParameter = {};
|
|
244
|
+
const localVarQueryParameter = {};
|
|
245
|
+
// authentication accessToken required
|
|
246
|
+
// http bearer authentication required
|
|
247
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
248
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
249
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
250
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
251
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
252
|
+
return {
|
|
253
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
254
|
+
options: localVarRequestOptions,
|
|
255
|
+
};
|
|
256
|
+
}),
|
|
257
|
+
/**
|
|
258
|
+
*
|
|
259
|
+
* @param {string} ownerId
|
|
260
|
+
* @param {OwnerPatchPayload} [ownerPatchPayload]
|
|
261
|
+
* @param {*} [options] Override http request option.
|
|
262
|
+
* @throws {RequiredError}
|
|
263
|
+
*/
|
|
264
|
+
ownerUpdate: (ownerId, ownerPatchPayload, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
265
|
+
// verify required parameter 'ownerId' is not null or undefined
|
|
266
|
+
(0, common_1.assertParamExists)('ownerUpdate', 'ownerId', ownerId);
|
|
267
|
+
const localVarPath = `/admin/owners/{owner_id}`
|
|
268
|
+
.replace('{owner_id}', encodeURIComponent(String(ownerId)));
|
|
269
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
270
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
271
|
+
let baseOptions;
|
|
272
|
+
if (configuration) {
|
|
273
|
+
baseOptions = configuration.baseOptions;
|
|
274
|
+
}
|
|
275
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
276
|
+
const localVarHeaderParameter = {};
|
|
277
|
+
const localVarQueryParameter = {};
|
|
278
|
+
// authentication accessToken required
|
|
279
|
+
// http bearer authentication required
|
|
280
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
281
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
282
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
283
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
284
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
285
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
286
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(ownerPatchPayload, localVarRequestOptions, configuration);
|
|
287
|
+
return {
|
|
288
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
289
|
+
options: localVarRequestOptions,
|
|
290
|
+
};
|
|
291
|
+
}),
|
|
292
|
+
/**
|
|
293
|
+
* Retrieves owners
|
|
294
|
+
* @param {*} [options] Override http request option.
|
|
295
|
+
* @throws {RequiredError}
|
|
296
|
+
*/
|
|
297
|
+
ownersList: (options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
298
|
+
const localVarPath = `/admin/owners`;
|
|
299
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
300
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
301
|
+
let baseOptions;
|
|
302
|
+
if (configuration) {
|
|
303
|
+
baseOptions = configuration.baseOptions;
|
|
304
|
+
}
|
|
305
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
306
|
+
const localVarHeaderParameter = {};
|
|
307
|
+
const localVarQueryParameter = {};
|
|
308
|
+
// authentication accessToken required
|
|
309
|
+
// http bearer authentication required
|
|
310
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
311
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
312
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
313
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
314
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
315
|
+
return {
|
|
316
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
317
|
+
options: localVarRequestOptions,
|
|
318
|
+
};
|
|
319
|
+
}),
|
|
320
|
+
};
|
|
321
|
+
};
|
|
322
|
+
exports.DefaultApiAxiosParamCreator = DefaultApiAxiosParamCreator;
|
|
323
|
+
/**
|
|
324
|
+
* DefaultApi - functional programming interface
|
|
325
|
+
*/
|
|
326
|
+
const DefaultApiFp = function (configuration) {
|
|
327
|
+
const localVarAxiosParamCreator = (0, exports.DefaultApiAxiosParamCreator)(configuration);
|
|
328
|
+
return {
|
|
329
|
+
/**
|
|
330
|
+
* Creates M2M application / client for the authenticated user
|
|
331
|
+
* @param {ApplicationCreateRequest} [applicationCreateRequest]
|
|
332
|
+
* @param {*} [options] Override http request option.
|
|
333
|
+
* @throws {RequiredError}
|
|
334
|
+
*/
|
|
335
|
+
applicationCreate(applicationCreateRequest, options) {
|
|
336
|
+
var _a, _b, _c;
|
|
337
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
338
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.applicationCreate(applicationCreateRequest, options);
|
|
339
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
340
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.applicationCreate']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
341
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
342
|
+
});
|
|
343
|
+
},
|
|
344
|
+
/**
|
|
345
|
+
* Deletes specific M2M application
|
|
346
|
+
* @param {string} applicationId Application ID
|
|
347
|
+
* @param {*} [options] Override http request option.
|
|
348
|
+
* @throws {RequiredError}
|
|
349
|
+
*/
|
|
350
|
+
applicationDelete(applicationId, options) {
|
|
351
|
+
var _a, _b, _c;
|
|
352
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
353
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.applicationDelete(applicationId, options);
|
|
354
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
355
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.applicationDelete']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
356
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
357
|
+
});
|
|
358
|
+
},
|
|
359
|
+
/**
|
|
360
|
+
* Retrieves M2M application info
|
|
361
|
+
* @param {string} applicationId Application ID
|
|
362
|
+
* @param {*} [options] Override http request option.
|
|
363
|
+
* @throws {RequiredError}
|
|
364
|
+
*/
|
|
365
|
+
applicationGet(applicationId, options) {
|
|
366
|
+
var _a, _b, _c;
|
|
367
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
368
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.applicationGet(applicationId, options);
|
|
369
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
370
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.applicationGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
371
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
372
|
+
});
|
|
373
|
+
},
|
|
374
|
+
/**
|
|
375
|
+
* Lists applications / clients for the authenticated user
|
|
376
|
+
* @param {*} [options] Override http request option.
|
|
377
|
+
* @throws {RequiredError}
|
|
378
|
+
*/
|
|
379
|
+
applicationList(options) {
|
|
380
|
+
var _a, _b, _c;
|
|
381
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
382
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.applicationList(options);
|
|
383
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
384
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.applicationList']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
385
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
386
|
+
});
|
|
387
|
+
},
|
|
388
|
+
/**
|
|
389
|
+
*
|
|
390
|
+
* @param {*} [options] Override http request option.
|
|
391
|
+
* @throws {RequiredError}
|
|
392
|
+
*/
|
|
393
|
+
healthCheck(options) {
|
|
394
|
+
var _a, _b, _c;
|
|
395
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
396
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.healthCheck(options);
|
|
397
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
398
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.healthCheck']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
399
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
400
|
+
});
|
|
401
|
+
},
|
|
402
|
+
/**
|
|
403
|
+
*
|
|
404
|
+
* @param {*} [options] Override http request option.
|
|
405
|
+
* @throws {RequiredError}
|
|
406
|
+
*/
|
|
407
|
+
ownerGet(options) {
|
|
408
|
+
var _a, _b, _c;
|
|
409
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
410
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.ownerGet(options);
|
|
411
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
412
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.ownerGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
413
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
414
|
+
});
|
|
415
|
+
},
|
|
416
|
+
/**
|
|
417
|
+
* Retrieves owner info by ID including M2M apps list
|
|
418
|
+
* @param {string} ownerId
|
|
419
|
+
* @param {*} [options] Override http request option.
|
|
420
|
+
* @throws {RequiredError}
|
|
421
|
+
*/
|
|
422
|
+
ownerGetById(ownerId, options) {
|
|
423
|
+
var _a, _b, _c;
|
|
424
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
425
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.ownerGetById(ownerId, options);
|
|
426
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
427
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.ownerGetById']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
428
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
429
|
+
});
|
|
430
|
+
},
|
|
431
|
+
/**
|
|
432
|
+
*
|
|
433
|
+
* @param {string} ownerId
|
|
434
|
+
* @param {OwnerPatchPayload} [ownerPatchPayload]
|
|
435
|
+
* @param {*} [options] Override http request option.
|
|
436
|
+
* @throws {RequiredError}
|
|
437
|
+
*/
|
|
438
|
+
ownerUpdate(ownerId, ownerPatchPayload, options) {
|
|
439
|
+
var _a, _b, _c;
|
|
440
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
441
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.ownerUpdate(ownerId, ownerPatchPayload, options);
|
|
442
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
443
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.ownerUpdate']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
444
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
445
|
+
});
|
|
446
|
+
},
|
|
447
|
+
/**
|
|
448
|
+
* Retrieves owners
|
|
449
|
+
* @param {*} [options] Override http request option.
|
|
450
|
+
* @throws {RequiredError}
|
|
451
|
+
*/
|
|
452
|
+
ownersList(options) {
|
|
453
|
+
var _a, _b, _c;
|
|
454
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
455
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.ownersList(options);
|
|
456
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
457
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.ownersList']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
458
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
459
|
+
});
|
|
460
|
+
},
|
|
461
|
+
};
|
|
462
|
+
};
|
|
463
|
+
exports.DefaultApiFp = DefaultApiFp;
|
|
464
|
+
/**
|
|
465
|
+
* DefaultApi - factory interface
|
|
466
|
+
*/
|
|
467
|
+
const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
468
|
+
const localVarFp = (0, exports.DefaultApiFp)(configuration);
|
|
469
|
+
return {
|
|
470
|
+
/**
|
|
471
|
+
* Creates M2M application / client for the authenticated user
|
|
472
|
+
* @param {ApplicationCreateRequest} [applicationCreateRequest]
|
|
473
|
+
* @param {*} [options] Override http request option.
|
|
474
|
+
* @throws {RequiredError}
|
|
475
|
+
*/
|
|
476
|
+
applicationCreate(applicationCreateRequest, options) {
|
|
477
|
+
return localVarFp.applicationCreate(applicationCreateRequest, options).then((request) => request(axios, basePath));
|
|
478
|
+
},
|
|
479
|
+
/**
|
|
480
|
+
* Deletes specific M2M application
|
|
481
|
+
* @param {string} applicationId Application ID
|
|
482
|
+
* @param {*} [options] Override http request option.
|
|
483
|
+
* @throws {RequiredError}
|
|
484
|
+
*/
|
|
485
|
+
applicationDelete(applicationId, options) {
|
|
486
|
+
return localVarFp.applicationDelete(applicationId, options).then((request) => request(axios, basePath));
|
|
487
|
+
},
|
|
488
|
+
/**
|
|
489
|
+
* Retrieves M2M application info
|
|
490
|
+
* @param {string} applicationId Application ID
|
|
491
|
+
* @param {*} [options] Override http request option.
|
|
492
|
+
* @throws {RequiredError}
|
|
493
|
+
*/
|
|
494
|
+
applicationGet(applicationId, options) {
|
|
495
|
+
return localVarFp.applicationGet(applicationId, options).then((request) => request(axios, basePath));
|
|
496
|
+
},
|
|
497
|
+
/**
|
|
498
|
+
* Lists applications / clients for the authenticated user
|
|
499
|
+
* @param {*} [options] Override http request option.
|
|
500
|
+
* @throws {RequiredError}
|
|
501
|
+
*/
|
|
502
|
+
applicationList(options) {
|
|
503
|
+
return localVarFp.applicationList(options).then((request) => request(axios, basePath));
|
|
504
|
+
},
|
|
505
|
+
/**
|
|
506
|
+
*
|
|
507
|
+
* @param {*} [options] Override http request option.
|
|
508
|
+
* @throws {RequiredError}
|
|
509
|
+
*/
|
|
510
|
+
healthCheck(options) {
|
|
511
|
+
return localVarFp.healthCheck(options).then((request) => request(axios, basePath));
|
|
512
|
+
},
|
|
513
|
+
/**
|
|
514
|
+
*
|
|
515
|
+
* @param {*} [options] Override http request option.
|
|
516
|
+
* @throws {RequiredError}
|
|
517
|
+
*/
|
|
518
|
+
ownerGet(options) {
|
|
519
|
+
return localVarFp.ownerGet(options).then((request) => request(axios, basePath));
|
|
520
|
+
},
|
|
521
|
+
/**
|
|
522
|
+
* Retrieves owner info by ID including M2M apps list
|
|
523
|
+
* @param {string} ownerId
|
|
524
|
+
* @param {*} [options] Override http request option.
|
|
525
|
+
* @throws {RequiredError}
|
|
526
|
+
*/
|
|
527
|
+
ownerGetById(ownerId, options) {
|
|
528
|
+
return localVarFp.ownerGetById(ownerId, options).then((request) => request(axios, basePath));
|
|
529
|
+
},
|
|
530
|
+
/**
|
|
531
|
+
*
|
|
532
|
+
* @param {string} ownerId
|
|
533
|
+
* @param {OwnerPatchPayload} [ownerPatchPayload]
|
|
534
|
+
* @param {*} [options] Override http request option.
|
|
535
|
+
* @throws {RequiredError}
|
|
536
|
+
*/
|
|
537
|
+
ownerUpdate(ownerId, ownerPatchPayload, options) {
|
|
538
|
+
return localVarFp.ownerUpdate(ownerId, ownerPatchPayload, options).then((request) => request(axios, basePath));
|
|
539
|
+
},
|
|
540
|
+
/**
|
|
541
|
+
* Retrieves owners
|
|
542
|
+
* @param {*} [options] Override http request option.
|
|
543
|
+
* @throws {RequiredError}
|
|
544
|
+
*/
|
|
545
|
+
ownersList(options) {
|
|
546
|
+
return localVarFp.ownersList(options).then((request) => request(axios, basePath));
|
|
547
|
+
},
|
|
548
|
+
};
|
|
549
|
+
};
|
|
550
|
+
exports.DefaultApiFactory = DefaultApiFactory;
|
|
551
|
+
/**
|
|
552
|
+
* DefaultApi - object-oriented interface
|
|
553
|
+
*/
|
|
554
|
+
class DefaultApi extends base_1.BaseAPI {
|
|
555
|
+
/**
|
|
556
|
+
* Creates M2M application / client for the authenticated user
|
|
557
|
+
* @param {ApplicationCreateRequest} [applicationCreateRequest]
|
|
558
|
+
* @param {*} [options] Override http request option.
|
|
559
|
+
* @throws {RequiredError}
|
|
560
|
+
*/
|
|
561
|
+
applicationCreate(applicationCreateRequest, options) {
|
|
562
|
+
return (0, exports.DefaultApiFp)(this.configuration).applicationCreate(applicationCreateRequest, options).then((request) => request(this.axios, this.basePath));
|
|
563
|
+
}
|
|
564
|
+
/**
|
|
565
|
+
* Deletes specific M2M application
|
|
566
|
+
* @param {string} applicationId Application ID
|
|
567
|
+
* @param {*} [options] Override http request option.
|
|
568
|
+
* @throws {RequiredError}
|
|
569
|
+
*/
|
|
570
|
+
applicationDelete(applicationId, options) {
|
|
571
|
+
return (0, exports.DefaultApiFp)(this.configuration).applicationDelete(applicationId, options).then((request) => request(this.axios, this.basePath));
|
|
572
|
+
}
|
|
573
|
+
/**
|
|
574
|
+
* Retrieves M2M application info
|
|
575
|
+
* @param {string} applicationId Application ID
|
|
576
|
+
* @param {*} [options] Override http request option.
|
|
577
|
+
* @throws {RequiredError}
|
|
578
|
+
*/
|
|
579
|
+
applicationGet(applicationId, options) {
|
|
580
|
+
return (0, exports.DefaultApiFp)(this.configuration).applicationGet(applicationId, options).then((request) => request(this.axios, this.basePath));
|
|
581
|
+
}
|
|
582
|
+
/**
|
|
583
|
+
* Lists applications / clients for the authenticated user
|
|
584
|
+
* @param {*} [options] Override http request option.
|
|
585
|
+
* @throws {RequiredError}
|
|
586
|
+
*/
|
|
587
|
+
applicationList(options) {
|
|
588
|
+
return (0, exports.DefaultApiFp)(this.configuration).applicationList(options).then((request) => request(this.axios, this.basePath));
|
|
589
|
+
}
|
|
590
|
+
/**
|
|
591
|
+
*
|
|
592
|
+
* @param {*} [options] Override http request option.
|
|
593
|
+
* @throws {RequiredError}
|
|
594
|
+
*/
|
|
595
|
+
healthCheck(options) {
|
|
596
|
+
return (0, exports.DefaultApiFp)(this.configuration).healthCheck(options).then((request) => request(this.axios, this.basePath));
|
|
597
|
+
}
|
|
598
|
+
/**
|
|
599
|
+
*
|
|
600
|
+
* @param {*} [options] Override http request option.
|
|
601
|
+
* @throws {RequiredError}
|
|
602
|
+
*/
|
|
603
|
+
ownerGet(options) {
|
|
604
|
+
return (0, exports.DefaultApiFp)(this.configuration).ownerGet(options).then((request) => request(this.axios, this.basePath));
|
|
605
|
+
}
|
|
606
|
+
/**
|
|
607
|
+
* Retrieves owner info by ID including M2M apps list
|
|
608
|
+
* @param {string} ownerId
|
|
609
|
+
* @param {*} [options] Override http request option.
|
|
610
|
+
* @throws {RequiredError}
|
|
611
|
+
*/
|
|
612
|
+
ownerGetById(ownerId, options) {
|
|
613
|
+
return (0, exports.DefaultApiFp)(this.configuration).ownerGetById(ownerId, options).then((request) => request(this.axios, this.basePath));
|
|
614
|
+
}
|
|
615
|
+
/**
|
|
616
|
+
*
|
|
617
|
+
* @param {string} ownerId
|
|
618
|
+
* @param {OwnerPatchPayload} [ownerPatchPayload]
|
|
619
|
+
* @param {*} [options] Override http request option.
|
|
620
|
+
* @throws {RequiredError}
|
|
621
|
+
*/
|
|
622
|
+
ownerUpdate(ownerId, ownerPatchPayload, options) {
|
|
623
|
+
return (0, exports.DefaultApiFp)(this.configuration).ownerUpdate(ownerId, ownerPatchPayload, options).then((request) => request(this.axios, this.basePath));
|
|
624
|
+
}
|
|
625
|
+
/**
|
|
626
|
+
* Retrieves owners
|
|
627
|
+
* @param {*} [options] Override http request option.
|
|
628
|
+
* @throws {RequiredError}
|
|
629
|
+
*/
|
|
630
|
+
ownersList(options) {
|
|
631
|
+
return (0, exports.DefaultApiFp)(this.configuration).ownersList(options).then((request) => request(this.axios, this.basePath));
|
|
632
|
+
}
|
|
633
|
+
}
|
|
634
|
+
exports.DefaultApi = DefaultApi;
|
package/base.d.ts
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Triveria Admin API
|
|
3
|
+
* Triveria Admin API allows to manage Wallet API keys and services.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: dev.f2e5999
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { Configuration } from './configuration';
|
|
13
|
+
import type { AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
14
|
+
export declare const BASE_PATH: string;
|
|
15
|
+
export declare const COLLECTION_FORMATS: {
|
|
16
|
+
csv: string;
|
|
17
|
+
ssv: string;
|
|
18
|
+
tsv: string;
|
|
19
|
+
pipes: string;
|
|
20
|
+
};
|
|
21
|
+
export interface RequestArgs {
|
|
22
|
+
url: string;
|
|
23
|
+
options: RawAxiosRequestConfig;
|
|
24
|
+
}
|
|
25
|
+
export declare class BaseAPI {
|
|
26
|
+
protected basePath: string;
|
|
27
|
+
protected axios: AxiosInstance;
|
|
28
|
+
protected configuration: Configuration | undefined;
|
|
29
|
+
constructor(configuration?: Configuration, basePath?: string, axios?: AxiosInstance);
|
|
30
|
+
}
|
|
31
|
+
export declare class RequiredError extends Error {
|
|
32
|
+
field: string;
|
|
33
|
+
constructor(field: string, msg?: string);
|
|
34
|
+
}
|
|
35
|
+
interface ServerMap {
|
|
36
|
+
[key: string]: {
|
|
37
|
+
url: string;
|
|
38
|
+
description: string;
|
|
39
|
+
}[];
|
|
40
|
+
}
|
|
41
|
+
export declare const operationServerMap: ServerMap;
|
|
42
|
+
export {};
|