@triveria/admin 0.0.156

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 ADDED
@@ -0,0 +1,248 @@
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: 1.0.0
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 { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
14
+ import type { RequestArgs } from './base';
15
+ import { BaseAPI } from './base';
16
+ /**
17
+ * Application to access Wallet API
18
+ * @export
19
+ * @interface Application
20
+ */
21
+ export interface Application {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof Application
26
+ */
27
+ 'name': string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof Application
32
+ */
33
+ 'id': string;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof Application
38
+ */
39
+ 'secret'?: string;
40
+ }
41
+ /**
42
+ *
43
+ * @export
44
+ * @interface ApplicationCreateRequest
45
+ */
46
+ export interface ApplicationCreateRequest {
47
+ /**
48
+ *
49
+ * @type {string}
50
+ * @memberof ApplicationCreateRequest
51
+ */
52
+ 'name'?: string;
53
+ }
54
+ /**
55
+ * Health status of the system
56
+ * @export
57
+ * @interface HealthStatus
58
+ */
59
+ export interface HealthStatus {
60
+ /**
61
+ *
62
+ * @type {string}
63
+ * @memberof HealthStatus
64
+ */
65
+ 'status': HealthStatusStatusEnum;
66
+ }
67
+ export declare const HealthStatusStatusEnum: {
68
+ readonly Ok: "ok";
69
+ readonly Limited: "limited";
70
+ readonly Critical: "critical";
71
+ };
72
+ export type HealthStatusStatusEnum = typeof HealthStatusStatusEnum[keyof typeof HealthStatusStatusEnum];
73
+ /**
74
+ * Common error message
75
+ * @export
76
+ * @interface ModelError
77
+ */
78
+ export interface ModelError {
79
+ /**
80
+ *
81
+ * @type {string}
82
+ * @memberof ModelError
83
+ */
84
+ 'Message': string;
85
+ }
86
+ /**
87
+ * DefaultApi - axios parameter creator
88
+ * @export
89
+ */
90
+ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration) => {
91
+ /**
92
+ *
93
+ * @param {ApplicationCreateRequest} [applicationCreateRequest]
94
+ * @param {*} [options] Override http request option.
95
+ * @throws {RequiredError}
96
+ */
97
+ applicationCreate: (applicationCreateRequest?: ApplicationCreateRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
98
+ /**
99
+ *
100
+ * @param {string} applicationId Application ID
101
+ * @param {*} [options] Override http request option.
102
+ * @throws {RequiredError}
103
+ */
104
+ applicationDelete: (applicationId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
105
+ /**
106
+ *
107
+ * @param {string} applicationId Application ID
108
+ * @param {*} [options] Override http request option.
109
+ * @throws {RequiredError}
110
+ */
111
+ applicationGet: (applicationId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
112
+ /**
113
+ *
114
+ * @param {*} [options] Override http request option.
115
+ * @throws {RequiredError}
116
+ */
117
+ applicationList: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
118
+ /**
119
+ *
120
+ * @param {*} [options] Override http request option.
121
+ * @throws {RequiredError}
122
+ */
123
+ healthCheck: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
124
+ };
125
+ /**
126
+ * DefaultApi - functional programming interface
127
+ * @export
128
+ */
129
+ export declare const DefaultApiFp: (configuration?: Configuration) => {
130
+ /**
131
+ *
132
+ * @param {ApplicationCreateRequest} [applicationCreateRequest]
133
+ * @param {*} [options] Override http request option.
134
+ * @throws {RequiredError}
135
+ */
136
+ applicationCreate(applicationCreateRequest?: ApplicationCreateRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Application>>;
137
+ /**
138
+ *
139
+ * @param {string} applicationId Application ID
140
+ * @param {*} [options] Override http request option.
141
+ * @throws {RequiredError}
142
+ */
143
+ applicationDelete(applicationId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
144
+ /**
145
+ *
146
+ * @param {string} applicationId Application ID
147
+ * @param {*} [options] Override http request option.
148
+ * @throws {RequiredError}
149
+ */
150
+ applicationGet(applicationId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Application>>;
151
+ /**
152
+ *
153
+ * @param {*} [options] Override http request option.
154
+ * @throws {RequiredError}
155
+ */
156
+ applicationList(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Application>>>;
157
+ /**
158
+ *
159
+ * @param {*} [options] Override http request option.
160
+ * @throws {RequiredError}
161
+ */
162
+ healthCheck(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HealthStatus>>;
163
+ };
164
+ /**
165
+ * DefaultApi - factory interface
166
+ * @export
167
+ */
168
+ export declare const DefaultApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
169
+ /**
170
+ *
171
+ * @param {ApplicationCreateRequest} [applicationCreateRequest]
172
+ * @param {*} [options] Override http request option.
173
+ * @throws {RequiredError}
174
+ */
175
+ applicationCreate(applicationCreateRequest?: ApplicationCreateRequest, options?: any): AxiosPromise<Application>;
176
+ /**
177
+ *
178
+ * @param {string} applicationId Application ID
179
+ * @param {*} [options] Override http request option.
180
+ * @throws {RequiredError}
181
+ */
182
+ applicationDelete(applicationId: string, options?: any): AxiosPromise<void>;
183
+ /**
184
+ *
185
+ * @param {string} applicationId Application ID
186
+ * @param {*} [options] Override http request option.
187
+ * @throws {RequiredError}
188
+ */
189
+ applicationGet(applicationId: string, options?: any): AxiosPromise<Application>;
190
+ /**
191
+ *
192
+ * @param {*} [options] Override http request option.
193
+ * @throws {RequiredError}
194
+ */
195
+ applicationList(options?: any): AxiosPromise<Array<Application>>;
196
+ /**
197
+ *
198
+ * @param {*} [options] Override http request option.
199
+ * @throws {RequiredError}
200
+ */
201
+ healthCheck(options?: any): AxiosPromise<HealthStatus>;
202
+ };
203
+ /**
204
+ * DefaultApi - object-oriented interface
205
+ * @export
206
+ * @class DefaultApi
207
+ * @extends {BaseAPI}
208
+ */
209
+ export declare class DefaultApi extends BaseAPI {
210
+ /**
211
+ *
212
+ * @param {ApplicationCreateRequest} [applicationCreateRequest]
213
+ * @param {*} [options] Override http request option.
214
+ * @throws {RequiredError}
215
+ * @memberof DefaultApi
216
+ */
217
+ applicationCreate(applicationCreateRequest?: ApplicationCreateRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Application, any>>;
218
+ /**
219
+ *
220
+ * @param {string} applicationId Application ID
221
+ * @param {*} [options] Override http request option.
222
+ * @throws {RequiredError}
223
+ * @memberof DefaultApi
224
+ */
225
+ applicationDelete(applicationId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
226
+ /**
227
+ *
228
+ * @param {string} applicationId Application ID
229
+ * @param {*} [options] Override http request option.
230
+ * @throws {RequiredError}
231
+ * @memberof DefaultApi
232
+ */
233
+ applicationGet(applicationId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Application, any>>;
234
+ /**
235
+ *
236
+ * @param {*} [options] Override http request option.
237
+ * @throws {RequiredError}
238
+ * @memberof DefaultApi
239
+ */
240
+ applicationList(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Application[], any>>;
241
+ /**
242
+ *
243
+ * @param {*} [options] Override http request option.
244
+ * @throws {RequiredError}
245
+ * @memberof DefaultApi
246
+ */
247
+ healthCheck(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<HealthStatus, any>>;
248
+ }
package/api.js ADDED
@@ -0,0 +1,384 @@
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: 1.0.0
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 = 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.HealthStatusStatusEnum = {
36
+ Ok: 'ok',
37
+ Limited: 'limited',
38
+ Critical: 'critical'
39
+ };
40
+ /**
41
+ * DefaultApi - axios parameter creator
42
+ * @export
43
+ */
44
+ const DefaultApiAxiosParamCreator = function (configuration) {
45
+ return {
46
+ /**
47
+ *
48
+ * @param {ApplicationCreateRequest} [applicationCreateRequest]
49
+ * @param {*} [options] Override http request option.
50
+ * @throws {RequiredError}
51
+ */
52
+ applicationCreate: (applicationCreateRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
53
+ const localVarPath = `/applications`;
54
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
55
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
56
+ let baseOptions;
57
+ if (configuration) {
58
+ baseOptions = configuration.baseOptions;
59
+ }
60
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
61
+ const localVarHeaderParameter = {};
62
+ const localVarQueryParameter = {};
63
+ // authentication accessToken required
64
+ // http bearer authentication required
65
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
66
+ localVarHeaderParameter['Content-Type'] = 'application/json';
67
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
68
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
69
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
70
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(applicationCreateRequest, localVarRequestOptions, configuration);
71
+ return {
72
+ url: (0, common_1.toPathString)(localVarUrlObj),
73
+ options: localVarRequestOptions,
74
+ };
75
+ }),
76
+ /**
77
+ *
78
+ * @param {string} applicationId Application ID
79
+ * @param {*} [options] Override http request option.
80
+ * @throws {RequiredError}
81
+ */
82
+ applicationDelete: (applicationId, options = {}) => __awaiter(this, void 0, void 0, function* () {
83
+ // verify required parameter 'applicationId' is not null or undefined
84
+ (0, common_1.assertParamExists)('applicationDelete', 'applicationId', applicationId);
85
+ const localVarPath = `/applications/{application_id}`
86
+ .replace(`{${"application_id"}}`, encodeURIComponent(String(applicationId)));
87
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
88
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
89
+ let baseOptions;
90
+ if (configuration) {
91
+ baseOptions = configuration.baseOptions;
92
+ }
93
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
94
+ const localVarHeaderParameter = {};
95
+ const localVarQueryParameter = {};
96
+ // authentication accessToken required
97
+ // http bearer authentication required
98
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
99
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
100
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
101
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
102
+ return {
103
+ url: (0, common_1.toPathString)(localVarUrlObj),
104
+ options: localVarRequestOptions,
105
+ };
106
+ }),
107
+ /**
108
+ *
109
+ * @param {string} applicationId Application ID
110
+ * @param {*} [options] Override http request option.
111
+ * @throws {RequiredError}
112
+ */
113
+ applicationGet: (applicationId, options = {}) => __awaiter(this, void 0, void 0, function* () {
114
+ // verify required parameter 'applicationId' is not null or undefined
115
+ (0, common_1.assertParamExists)('applicationGet', 'applicationId', applicationId);
116
+ const localVarPath = `/applications/{application_id}`
117
+ .replace(`{${"application_id"}}`, encodeURIComponent(String(applicationId)));
118
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
119
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
120
+ let baseOptions;
121
+ if (configuration) {
122
+ baseOptions = configuration.baseOptions;
123
+ }
124
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
125
+ const localVarHeaderParameter = {};
126
+ const localVarQueryParameter = {};
127
+ // authentication accessToken required
128
+ // http bearer authentication required
129
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
130
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
131
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
132
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
133
+ return {
134
+ url: (0, common_1.toPathString)(localVarUrlObj),
135
+ options: localVarRequestOptions,
136
+ };
137
+ }),
138
+ /**
139
+ *
140
+ * @param {*} [options] Override http request option.
141
+ * @throws {RequiredError}
142
+ */
143
+ applicationList: (options = {}) => __awaiter(this, void 0, void 0, function* () {
144
+ const localVarPath = `/applications`;
145
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
146
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
147
+ let baseOptions;
148
+ if (configuration) {
149
+ baseOptions = configuration.baseOptions;
150
+ }
151
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
152
+ const localVarHeaderParameter = {};
153
+ const localVarQueryParameter = {};
154
+ // authentication accessToken required
155
+ // http bearer authentication required
156
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
157
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
158
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
159
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
160
+ return {
161
+ url: (0, common_1.toPathString)(localVarUrlObj),
162
+ options: localVarRequestOptions,
163
+ };
164
+ }),
165
+ /**
166
+ *
167
+ * @param {*} [options] Override http request option.
168
+ * @throws {RequiredError}
169
+ */
170
+ healthCheck: (options = {}) => __awaiter(this, void 0, void 0, function* () {
171
+ const localVarPath = `/health`;
172
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
173
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
174
+ let baseOptions;
175
+ if (configuration) {
176
+ baseOptions = configuration.baseOptions;
177
+ }
178
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
179
+ const localVarHeaderParameter = {};
180
+ const localVarQueryParameter = {};
181
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
182
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
183
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
184
+ return {
185
+ url: (0, common_1.toPathString)(localVarUrlObj),
186
+ options: localVarRequestOptions,
187
+ };
188
+ }),
189
+ };
190
+ };
191
+ exports.DefaultApiAxiosParamCreator = DefaultApiAxiosParamCreator;
192
+ /**
193
+ * DefaultApi - functional programming interface
194
+ * @export
195
+ */
196
+ const DefaultApiFp = function (configuration) {
197
+ const localVarAxiosParamCreator = (0, exports.DefaultApiAxiosParamCreator)(configuration);
198
+ return {
199
+ /**
200
+ *
201
+ * @param {ApplicationCreateRequest} [applicationCreateRequest]
202
+ * @param {*} [options] Override http request option.
203
+ * @throws {RequiredError}
204
+ */
205
+ applicationCreate(applicationCreateRequest, options) {
206
+ var _a, _b, _c;
207
+ return __awaiter(this, void 0, void 0, function* () {
208
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.applicationCreate(applicationCreateRequest, options);
209
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
210
+ 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;
211
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
212
+ });
213
+ },
214
+ /**
215
+ *
216
+ * @param {string} applicationId Application ID
217
+ * @param {*} [options] Override http request option.
218
+ * @throws {RequiredError}
219
+ */
220
+ applicationDelete(applicationId, options) {
221
+ var _a, _b, _c;
222
+ return __awaiter(this, void 0, void 0, function* () {
223
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.applicationDelete(applicationId, options);
224
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
225
+ 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;
226
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
227
+ });
228
+ },
229
+ /**
230
+ *
231
+ * @param {string} applicationId Application ID
232
+ * @param {*} [options] Override http request option.
233
+ * @throws {RequiredError}
234
+ */
235
+ applicationGet(applicationId, options) {
236
+ var _a, _b, _c;
237
+ return __awaiter(this, void 0, void 0, function* () {
238
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.applicationGet(applicationId, options);
239
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
240
+ 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;
241
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
242
+ });
243
+ },
244
+ /**
245
+ *
246
+ * @param {*} [options] Override http request option.
247
+ * @throws {RequiredError}
248
+ */
249
+ applicationList(options) {
250
+ var _a, _b, _c;
251
+ return __awaiter(this, void 0, void 0, function* () {
252
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.applicationList(options);
253
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
254
+ 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;
255
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
256
+ });
257
+ },
258
+ /**
259
+ *
260
+ * @param {*} [options] Override http request option.
261
+ * @throws {RequiredError}
262
+ */
263
+ healthCheck(options) {
264
+ var _a, _b, _c;
265
+ return __awaiter(this, void 0, void 0, function* () {
266
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.healthCheck(options);
267
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
268
+ 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;
269
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
270
+ });
271
+ },
272
+ };
273
+ };
274
+ exports.DefaultApiFp = DefaultApiFp;
275
+ /**
276
+ * DefaultApi - factory interface
277
+ * @export
278
+ */
279
+ const DefaultApiFactory = function (configuration, basePath, axios) {
280
+ const localVarFp = (0, exports.DefaultApiFp)(configuration);
281
+ return {
282
+ /**
283
+ *
284
+ * @param {ApplicationCreateRequest} [applicationCreateRequest]
285
+ * @param {*} [options] Override http request option.
286
+ * @throws {RequiredError}
287
+ */
288
+ applicationCreate(applicationCreateRequest, options) {
289
+ return localVarFp.applicationCreate(applicationCreateRequest, options).then((request) => request(axios, basePath));
290
+ },
291
+ /**
292
+ *
293
+ * @param {string} applicationId Application ID
294
+ * @param {*} [options] Override http request option.
295
+ * @throws {RequiredError}
296
+ */
297
+ applicationDelete(applicationId, options) {
298
+ return localVarFp.applicationDelete(applicationId, options).then((request) => request(axios, basePath));
299
+ },
300
+ /**
301
+ *
302
+ * @param {string} applicationId Application ID
303
+ * @param {*} [options] Override http request option.
304
+ * @throws {RequiredError}
305
+ */
306
+ applicationGet(applicationId, options) {
307
+ return localVarFp.applicationGet(applicationId, options).then((request) => request(axios, basePath));
308
+ },
309
+ /**
310
+ *
311
+ * @param {*} [options] Override http request option.
312
+ * @throws {RequiredError}
313
+ */
314
+ applicationList(options) {
315
+ return localVarFp.applicationList(options).then((request) => request(axios, basePath));
316
+ },
317
+ /**
318
+ *
319
+ * @param {*} [options] Override http request option.
320
+ * @throws {RequiredError}
321
+ */
322
+ healthCheck(options) {
323
+ return localVarFp.healthCheck(options).then((request) => request(axios, basePath));
324
+ },
325
+ };
326
+ };
327
+ exports.DefaultApiFactory = DefaultApiFactory;
328
+ /**
329
+ * DefaultApi - object-oriented interface
330
+ * @export
331
+ * @class DefaultApi
332
+ * @extends {BaseAPI}
333
+ */
334
+ class DefaultApi extends base_1.BaseAPI {
335
+ /**
336
+ *
337
+ * @param {ApplicationCreateRequest} [applicationCreateRequest]
338
+ * @param {*} [options] Override http request option.
339
+ * @throws {RequiredError}
340
+ * @memberof DefaultApi
341
+ */
342
+ applicationCreate(applicationCreateRequest, options) {
343
+ return (0, exports.DefaultApiFp)(this.configuration).applicationCreate(applicationCreateRequest, options).then((request) => request(this.axios, this.basePath));
344
+ }
345
+ /**
346
+ *
347
+ * @param {string} applicationId Application ID
348
+ * @param {*} [options] Override http request option.
349
+ * @throws {RequiredError}
350
+ * @memberof DefaultApi
351
+ */
352
+ applicationDelete(applicationId, options) {
353
+ return (0, exports.DefaultApiFp)(this.configuration).applicationDelete(applicationId, options).then((request) => request(this.axios, this.basePath));
354
+ }
355
+ /**
356
+ *
357
+ * @param {string} applicationId Application ID
358
+ * @param {*} [options] Override http request option.
359
+ * @throws {RequiredError}
360
+ * @memberof DefaultApi
361
+ */
362
+ applicationGet(applicationId, options) {
363
+ return (0, exports.DefaultApiFp)(this.configuration).applicationGet(applicationId, options).then((request) => request(this.axios, this.basePath));
364
+ }
365
+ /**
366
+ *
367
+ * @param {*} [options] Override http request option.
368
+ * @throws {RequiredError}
369
+ * @memberof DefaultApi
370
+ */
371
+ applicationList(options) {
372
+ return (0, exports.DefaultApiFp)(this.configuration).applicationList(options).then((request) => request(this.axios, this.basePath));
373
+ }
374
+ /**
375
+ *
376
+ * @param {*} [options] Override http request option.
377
+ * @throws {RequiredError}
378
+ * @memberof DefaultApi
379
+ */
380
+ healthCheck(options) {
381
+ return (0, exports.DefaultApiFp)(this.configuration).healthCheck(options).then((request) => request(this.axios, this.basePath));
382
+ }
383
+ }
384
+ exports.DefaultApi = DefaultApi;
package/base.d.ts ADDED
@@ -0,0 +1,66 @@
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: 1.0.0
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
+ /**
16
+ *
17
+ * @export
18
+ */
19
+ export declare const COLLECTION_FORMATS: {
20
+ csv: string;
21
+ ssv: string;
22
+ tsv: string;
23
+ pipes: string;
24
+ };
25
+ /**
26
+ *
27
+ * @export
28
+ * @interface RequestArgs
29
+ */
30
+ export interface RequestArgs {
31
+ url: string;
32
+ options: RawAxiosRequestConfig;
33
+ }
34
+ /**
35
+ *
36
+ * @export
37
+ * @class BaseAPI
38
+ */
39
+ export declare class BaseAPI {
40
+ protected basePath: string;
41
+ protected axios: AxiosInstance;
42
+ protected configuration: Configuration | undefined;
43
+ constructor(configuration?: Configuration, basePath?: string, axios?: AxiosInstance);
44
+ }
45
+ /**
46
+ *
47
+ * @export
48
+ * @class RequiredError
49
+ * @extends {Error}
50
+ */
51
+ export declare class RequiredError extends Error {
52
+ field: string;
53
+ constructor(field: string, msg?: string);
54
+ }
55
+ interface ServerMap {
56
+ [key: string]: {
57
+ url: string;
58
+ description: string;
59
+ }[];
60
+ }
61
+ /**
62
+ *
63
+ * @export
64
+ */
65
+ export declare const operationServerMap: ServerMap;
66
+ export {};
package/base.js ADDED
@@ -0,0 +1,68 @@
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: 1.0.0
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 __importDefault = (this && this.__importDefault) || function (mod) {
16
+ return (mod && mod.__esModule) ? mod : { "default": mod };
17
+ };
18
+ Object.defineProperty(exports, "__esModule", { value: true });
19
+ exports.operationServerMap = exports.RequiredError = exports.BaseAPI = exports.COLLECTION_FORMATS = exports.BASE_PATH = void 0;
20
+ const axios_1 = __importDefault(require("axios"));
21
+ exports.BASE_PATH = "/api/v1".replace(/\/+$/, "");
22
+ /**
23
+ *
24
+ * @export
25
+ */
26
+ exports.COLLECTION_FORMATS = {
27
+ csv: ",",
28
+ ssv: " ",
29
+ tsv: "\t",
30
+ pipes: "|",
31
+ };
32
+ /**
33
+ *
34
+ * @export
35
+ * @class BaseAPI
36
+ */
37
+ class BaseAPI {
38
+ constructor(configuration, basePath = exports.BASE_PATH, axios = axios_1.default) {
39
+ var _a;
40
+ this.basePath = basePath;
41
+ this.axios = axios;
42
+ if (configuration) {
43
+ this.configuration = configuration;
44
+ this.basePath = (_a = configuration.basePath) !== null && _a !== void 0 ? _a : basePath;
45
+ }
46
+ }
47
+ }
48
+ exports.BaseAPI = BaseAPI;
49
+ ;
50
+ /**
51
+ *
52
+ * @export
53
+ * @class RequiredError
54
+ * @extends {Error}
55
+ */
56
+ class RequiredError extends Error {
57
+ constructor(field, msg) {
58
+ super(msg);
59
+ this.field = field;
60
+ this.name = "RequiredError";
61
+ }
62
+ }
63
+ exports.RequiredError = RequiredError;
64
+ /**
65
+ *
66
+ * @export
67
+ */
68
+ exports.operationServerMap = {};
package/client.d.ts ADDED
@@ -0,0 +1,17 @@
1
+ import { AxiosInstance } from "axios";
2
+ import { DefaultApi } from "./api";
3
+ export type ClientConfiguration = {
4
+ clientId: string;
5
+ clientSecret: string;
6
+ };
7
+ /**
8
+ * DefaultApi - object-oriented interface
9
+ * @export
10
+ * @class DefaultApi
11
+ * @extends {DefaultApi}
12
+ */
13
+ export declare class Client extends DefaultApi {
14
+ protected baseURL: string;
15
+ protected axios: AxiosInstance;
16
+ constructor(baseURL: string, axios?: AxiosInstance);
17
+ }
package/client.js ADDED
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.Client = void 0;
7
+ const api_1 = require("./api");
8
+ const axios_1 = __importDefault(require("axios"));
9
+ /**
10
+ * DefaultApi - object-oriented interface
11
+ * @export
12
+ * @class DefaultApi
13
+ * @extends {DefaultApi}
14
+ */
15
+ class Client extends api_1.DefaultApi {
16
+ constructor(baseURL, axios = axios_1.default) {
17
+ super({
18
+ basePath: baseURL,
19
+ isJsonMime,
20
+ }, baseURL, axios);
21
+ this.baseURL = baseURL;
22
+ this.axios = axios;
23
+ }
24
+ }
25
+ exports.Client = Client;
26
+ function isJsonMime(mime) {
27
+ const jsonMime = new RegExp('^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$', 'i');
28
+ return mime !== null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json');
29
+ }
package/common.d.ts ADDED
@@ -0,0 +1,65 @@
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: 1.0.0
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 { RequestArgs } from "./base";
14
+ import type { AxiosInstance, AxiosResponse } from 'axios';
15
+ /**
16
+ *
17
+ * @export
18
+ */
19
+ export declare const DUMMY_BASE_URL = "https://example.com";
20
+ /**
21
+ *
22
+ * @throws {RequiredError}
23
+ * @export
24
+ */
25
+ export declare const assertParamExists: (functionName: string, paramName: string, paramValue: unknown) => void;
26
+ /**
27
+ *
28
+ * @export
29
+ */
30
+ export declare const setApiKeyToObject: (object: any, keyParamName: string, configuration?: Configuration) => Promise<void>;
31
+ /**
32
+ *
33
+ * @export
34
+ */
35
+ export declare const setBasicAuthToObject: (object: any, configuration?: Configuration) => void;
36
+ /**
37
+ *
38
+ * @export
39
+ */
40
+ export declare const setBearerAuthToObject: (object: any, configuration?: Configuration) => Promise<void>;
41
+ /**
42
+ *
43
+ * @export
44
+ */
45
+ export declare const setOAuthToObject: (object: any, name: string, scopes: string[], configuration?: Configuration) => Promise<void>;
46
+ /**
47
+ *
48
+ * @export
49
+ */
50
+ export declare const setSearchParams: (url: URL, ...objects: any[]) => void;
51
+ /**
52
+ *
53
+ * @export
54
+ */
55
+ export declare const serializeDataIfNeeded: (value: any, requestOptions: any, configuration?: Configuration) => any;
56
+ /**
57
+ *
58
+ * @export
59
+ */
60
+ export declare const toPathString: (url: URL) => string;
61
+ /**
62
+ *
63
+ * @export
64
+ */
65
+ export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => <T = unknown, R = AxiosResponse<T, any>>(axios?: AxiosInstance, basePath?: string) => Promise<R>;
package/common.js ADDED
@@ -0,0 +1,161 @@
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: 1.0.0
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
+ Object.defineProperty(exports, "__esModule", { value: true });
25
+ exports.createRequestFunction = exports.toPathString = exports.serializeDataIfNeeded = exports.setSearchParams = exports.setOAuthToObject = exports.setBearerAuthToObject = exports.setBasicAuthToObject = exports.setApiKeyToObject = exports.assertParamExists = exports.DUMMY_BASE_URL = void 0;
26
+ const base_1 = require("./base");
27
+ /**
28
+ *
29
+ * @export
30
+ */
31
+ exports.DUMMY_BASE_URL = 'https://example.com';
32
+ /**
33
+ *
34
+ * @throws {RequiredError}
35
+ * @export
36
+ */
37
+ const assertParamExists = function (functionName, paramName, paramValue) {
38
+ if (paramValue === null || paramValue === undefined) {
39
+ throw new base_1.RequiredError(paramName, `Required parameter ${paramName} was null or undefined when calling ${functionName}.`);
40
+ }
41
+ };
42
+ exports.assertParamExists = assertParamExists;
43
+ /**
44
+ *
45
+ * @export
46
+ */
47
+ const setApiKeyToObject = function (object, keyParamName, configuration) {
48
+ return __awaiter(this, void 0, void 0, function* () {
49
+ if (configuration && configuration.apiKey) {
50
+ const localVarApiKeyValue = typeof configuration.apiKey === 'function'
51
+ ? yield configuration.apiKey(keyParamName)
52
+ : yield configuration.apiKey;
53
+ object[keyParamName] = localVarApiKeyValue;
54
+ }
55
+ });
56
+ };
57
+ exports.setApiKeyToObject = setApiKeyToObject;
58
+ /**
59
+ *
60
+ * @export
61
+ */
62
+ const setBasicAuthToObject = function (object, configuration) {
63
+ if (configuration && (configuration.username || configuration.password)) {
64
+ object["auth"] = { username: configuration.username, password: configuration.password };
65
+ }
66
+ };
67
+ exports.setBasicAuthToObject = setBasicAuthToObject;
68
+ /**
69
+ *
70
+ * @export
71
+ */
72
+ const setBearerAuthToObject = function (object, configuration) {
73
+ return __awaiter(this, void 0, void 0, function* () {
74
+ if (configuration && configuration.accessToken) {
75
+ const accessToken = typeof configuration.accessToken === 'function'
76
+ ? yield configuration.accessToken()
77
+ : yield configuration.accessToken;
78
+ object["Authorization"] = "Bearer " + accessToken;
79
+ }
80
+ });
81
+ };
82
+ exports.setBearerAuthToObject = setBearerAuthToObject;
83
+ /**
84
+ *
85
+ * @export
86
+ */
87
+ const setOAuthToObject = function (object, name, scopes, configuration) {
88
+ return __awaiter(this, void 0, void 0, function* () {
89
+ if (configuration && configuration.accessToken) {
90
+ const localVarAccessTokenValue = typeof configuration.accessToken === 'function'
91
+ ? yield configuration.accessToken(name, scopes)
92
+ : yield configuration.accessToken;
93
+ object["Authorization"] = "Bearer " + localVarAccessTokenValue;
94
+ }
95
+ });
96
+ };
97
+ exports.setOAuthToObject = setOAuthToObject;
98
+ function setFlattenedQueryParams(urlSearchParams, parameter, key = "") {
99
+ if (parameter == null)
100
+ return;
101
+ if (typeof parameter === "object") {
102
+ if (Array.isArray(parameter)) {
103
+ parameter.forEach(item => setFlattenedQueryParams(urlSearchParams, item, key));
104
+ }
105
+ else {
106
+ Object.keys(parameter).forEach(currentKey => setFlattenedQueryParams(urlSearchParams, parameter[currentKey], `${key}${key !== '' ? '.' : ''}${currentKey}`));
107
+ }
108
+ }
109
+ else {
110
+ if (urlSearchParams.has(key)) {
111
+ urlSearchParams.append(key, parameter);
112
+ }
113
+ else {
114
+ urlSearchParams.set(key, parameter);
115
+ }
116
+ }
117
+ }
118
+ /**
119
+ *
120
+ * @export
121
+ */
122
+ const setSearchParams = function (url, ...objects) {
123
+ const searchParams = new URLSearchParams(url.search);
124
+ setFlattenedQueryParams(searchParams, objects);
125
+ url.search = searchParams.toString();
126
+ };
127
+ exports.setSearchParams = setSearchParams;
128
+ /**
129
+ *
130
+ * @export
131
+ */
132
+ const serializeDataIfNeeded = function (value, requestOptions, configuration) {
133
+ const nonString = typeof value !== 'string';
134
+ const needsSerialization = nonString && configuration && configuration.isJsonMime
135
+ ? configuration.isJsonMime(requestOptions.headers['Content-Type'])
136
+ : nonString;
137
+ return needsSerialization
138
+ ? JSON.stringify(value !== undefined ? value : {})
139
+ : (value || "");
140
+ };
141
+ exports.serializeDataIfNeeded = serializeDataIfNeeded;
142
+ /**
143
+ *
144
+ * @export
145
+ */
146
+ const toPathString = function (url) {
147
+ return url.pathname + url.search + url.hash;
148
+ };
149
+ exports.toPathString = toPathString;
150
+ /**
151
+ *
152
+ * @export
153
+ */
154
+ const createRequestFunction = function (axiosArgs, globalAxios, BASE_PATH, configuration) {
155
+ return (axios = globalAxios, basePath = BASE_PATH) => {
156
+ var _a;
157
+ const axiosRequestArgs = Object.assign(Object.assign({}, axiosArgs.options), { url: (axios.defaults.baseURL ? '' : (_a = configuration === null || configuration === void 0 ? void 0 : configuration.basePath) !== null && _a !== void 0 ? _a : basePath) + axiosArgs.url });
158
+ return axios.request(axiosRequestArgs);
159
+ };
160
+ };
161
+ exports.createRequestFunction = createRequestFunction;
@@ -0,0 +1,91 @@
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: 1.0.0
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
+ export interface ConfigurationParameters {
13
+ apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
14
+ username?: string;
15
+ password?: string;
16
+ accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
17
+ basePath?: string;
18
+ serverIndex?: number;
19
+ baseOptions?: any;
20
+ formDataCtor?: new () => any;
21
+ }
22
+ export declare class Configuration {
23
+ /**
24
+ * parameter for apiKey security
25
+ * @param name security name
26
+ * @memberof Configuration
27
+ */
28
+ apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
29
+ /**
30
+ * parameter for basic security
31
+ *
32
+ * @type {string}
33
+ * @memberof Configuration
34
+ */
35
+ username?: string;
36
+ /**
37
+ * parameter for basic security
38
+ *
39
+ * @type {string}
40
+ * @memberof Configuration
41
+ */
42
+ password?: string;
43
+ /**
44
+ * parameter for oauth2 security
45
+ * @param name security name
46
+ * @param scopes oauth2 scope
47
+ * @memberof Configuration
48
+ */
49
+ accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
50
+ /**
51
+ * override base path
52
+ *
53
+ * @type {string}
54
+ * @memberof Configuration
55
+ */
56
+ basePath?: string;
57
+ /**
58
+ * override server index
59
+ *
60
+ * @type {number}
61
+ * @memberof Configuration
62
+ */
63
+ serverIndex?: number;
64
+ /**
65
+ * base options for axios calls
66
+ *
67
+ * @type {any}
68
+ * @memberof Configuration
69
+ */
70
+ baseOptions?: any;
71
+ /**
72
+ * The FormData constructor that will be used to create multipart form data
73
+ * requests. You can inject this here so that execution environments that
74
+ * do not support the FormData class can still run the generated client.
75
+ *
76
+ * @type {new () => FormData}
77
+ */
78
+ formDataCtor?: new () => any;
79
+ constructor(param?: ConfigurationParameters);
80
+ /**
81
+ * Check if the given MIME is a JSON MIME.
82
+ * JSON MIME examples:
83
+ * application/json
84
+ * application/json; charset=UTF8
85
+ * APPLICATION/JSON
86
+ * application/vnd.company+json
87
+ * @param mime - MIME (Multipurpose Internet Mail Extensions)
88
+ * @return True if the given MIME is JSON, false otherwise.
89
+ */
90
+ isJsonMime(mime: string): boolean;
91
+ }
@@ -0,0 +1,43 @@
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: 1.0.0
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
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.Configuration = void 0;
17
+ class Configuration {
18
+ constructor(param = {}) {
19
+ this.apiKey = param.apiKey;
20
+ this.username = param.username;
21
+ this.password = param.password;
22
+ this.accessToken = param.accessToken;
23
+ this.basePath = param.basePath;
24
+ this.serverIndex = param.serverIndex;
25
+ this.baseOptions = param.baseOptions;
26
+ this.formDataCtor = param.formDataCtor;
27
+ }
28
+ /**
29
+ * Check if the given MIME is a JSON MIME.
30
+ * JSON MIME examples:
31
+ * application/json
32
+ * application/json; charset=UTF8
33
+ * APPLICATION/JSON
34
+ * application/vnd.company+json
35
+ * @param mime - MIME (Multipurpose Internet Mail Extensions)
36
+ * @return True if the given MIME is JSON, false otherwise.
37
+ */
38
+ isJsonMime(mime) {
39
+ const jsonMime = new RegExp('^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$', 'i');
40
+ return mime !== null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json');
41
+ }
42
+ }
43
+ exports.Configuration = Configuration;
package/index.d.ts ADDED
@@ -0,0 +1,14 @@
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: 1.0.0
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
+ export * from "./api";
13
+ export * from "./configuration";
14
+ export * from "./client";
package/index.js ADDED
@@ -0,0 +1,32 @@
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: 1.0.0
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 __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
16
+ if (k2 === undefined) k2 = k;
17
+ var desc = Object.getOwnPropertyDescriptor(m, k);
18
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
19
+ desc = { enumerable: true, get: function() { return m[k]; } };
20
+ }
21
+ Object.defineProperty(o, k2, desc);
22
+ }) : (function(o, m, k, k2) {
23
+ if (k2 === undefined) k2 = k;
24
+ o[k2] = m[k];
25
+ }));
26
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
27
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
28
+ };
29
+ Object.defineProperty(exports, "__esModule", { value: true });
30
+ __exportStar(require("./api"), exports);
31
+ __exportStar(require("./configuration"), exports);
32
+ __exportStar(require("./client"), exports);
package/package.json ADDED
@@ -0,0 +1,24 @@
1
+ {
2
+ "name": "@triveria/admin",
3
+ "private": false,
4
+ "version": "0.0.156",
5
+ "description": "",
6
+ "main": "index.js",
7
+ "scripts": {
8
+ "test": "echo \"Error: no test specified\" && exit 1",
9
+ "build": "tsc && cp package.json dist/",
10
+ "gen-docs": "typedoc --plugin typedoc-plugin-markdown --out docs ./index.ts"
11
+ },
12
+ "keywords": [],
13
+ "author": "",
14
+ "license": "ISC",
15
+ "dependencies": {
16
+ "axios": "^1.6.5"
17
+ },
18
+ "devDependencies": {
19
+ "@types/node": "^20.10.6",
20
+ "typedoc": "^0.25.7",
21
+ "typedoc-plugin-markdown": "^3.17.1",
22
+ "typescript": "^5.3.3"
23
+ }
24
+ }