@triveria/admin 0.0.159 → 0.0.160
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 +200 -17
- package/api.js +220 -17
- package/package.json +1 -1
package/api.d.ts
CHANGED
|
@@ -13,6 +13,16 @@ import type { Configuration } from './configuration';
|
|
|
13
13
|
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
14
14
|
import type { RequestArgs } from './base';
|
|
15
15
|
import { BaseAPI } from './base';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @enum {string}
|
|
20
|
+
*/
|
|
21
|
+
export declare const AdminRole: {
|
|
22
|
+
readonly UserManager: "User Manager";
|
|
23
|
+
readonly WalletManager: "Wallet Manager";
|
|
24
|
+
};
|
|
25
|
+
export type AdminRole = typeof AdminRole[keyof typeof AdminRole];
|
|
16
26
|
/**
|
|
17
27
|
* Application to access Wallet API
|
|
18
28
|
* @export
|
|
@@ -49,7 +59,7 @@ export interface ApplicationCreateRequest {
|
|
|
49
59
|
* @type {string}
|
|
50
60
|
* @memberof ApplicationCreateRequest
|
|
51
61
|
*/
|
|
52
|
-
'name'
|
|
62
|
+
'name': string;
|
|
53
63
|
}
|
|
54
64
|
/**
|
|
55
65
|
* Health status of the system
|
|
@@ -95,6 +105,92 @@ export interface Owner {
|
|
|
95
105
|
* @memberof Owner
|
|
96
106
|
*/
|
|
97
107
|
'id': string;
|
|
108
|
+
/**
|
|
109
|
+
*
|
|
110
|
+
* @type {string}
|
|
111
|
+
* @memberof Owner
|
|
112
|
+
*/
|
|
113
|
+
'tenantId': string;
|
|
114
|
+
/**
|
|
115
|
+
*
|
|
116
|
+
* @type {string}
|
|
117
|
+
* @memberof Owner
|
|
118
|
+
*/
|
|
119
|
+
'email'?: string;
|
|
120
|
+
/**
|
|
121
|
+
*
|
|
122
|
+
* @type {string}
|
|
123
|
+
* @memberof Owner
|
|
124
|
+
*/
|
|
125
|
+
'name'?: string;
|
|
126
|
+
/**
|
|
127
|
+
*
|
|
128
|
+
* @type {string}
|
|
129
|
+
* @memberof Owner
|
|
130
|
+
*/
|
|
131
|
+
'created'?: string;
|
|
132
|
+
/**
|
|
133
|
+
*
|
|
134
|
+
* @type {string}
|
|
135
|
+
* @memberof Owner
|
|
136
|
+
*/
|
|
137
|
+
'updated'?: string;
|
|
138
|
+
/**
|
|
139
|
+
*
|
|
140
|
+
* @type {string}
|
|
141
|
+
* @memberof Owner
|
|
142
|
+
*/
|
|
143
|
+
'lastLogin'?: string;
|
|
144
|
+
/**
|
|
145
|
+
*
|
|
146
|
+
* @type {Array<AdminRole>}
|
|
147
|
+
* @memberof Owner
|
|
148
|
+
*/
|
|
149
|
+
'adminRoles'?: Array<AdminRole>;
|
|
150
|
+
}
|
|
151
|
+
/**
|
|
152
|
+
* Owner patch payload
|
|
153
|
+
* @export
|
|
154
|
+
* @interface OwnerPatchPayload
|
|
155
|
+
*/
|
|
156
|
+
export interface OwnerPatchPayload {
|
|
157
|
+
/**
|
|
158
|
+
*
|
|
159
|
+
* @type {string}
|
|
160
|
+
* @memberof OwnerPatchPayload
|
|
161
|
+
*/
|
|
162
|
+
'tenantId'?: string;
|
|
163
|
+
/**
|
|
164
|
+
* Admin Roles delimited by the comma character
|
|
165
|
+
* @type {string}
|
|
166
|
+
* @memberof OwnerPatchPayload
|
|
167
|
+
*/
|
|
168
|
+
'adminRoles'?: string;
|
|
169
|
+
}
|
|
170
|
+
/**
|
|
171
|
+
* Owner details including M2M apps list
|
|
172
|
+
* @export
|
|
173
|
+
* @interface OwnerWithExtras
|
|
174
|
+
*/
|
|
175
|
+
export interface OwnerWithExtras {
|
|
176
|
+
/**
|
|
177
|
+
*
|
|
178
|
+
* @type {Owner}
|
|
179
|
+
* @memberof OwnerWithExtras
|
|
180
|
+
*/
|
|
181
|
+
'owner': Owner;
|
|
182
|
+
/**
|
|
183
|
+
*
|
|
184
|
+
* @type {Array<Application>}
|
|
185
|
+
* @memberof OwnerWithExtras
|
|
186
|
+
*/
|
|
187
|
+
'apps'?: Array<Application>;
|
|
188
|
+
/**
|
|
189
|
+
* Owner user management URL
|
|
190
|
+
* @type {string}
|
|
191
|
+
* @memberof OwnerWithExtras
|
|
192
|
+
*/
|
|
193
|
+
'url': string;
|
|
98
194
|
}
|
|
99
195
|
/**
|
|
100
196
|
* DefaultApi - axios parameter creator
|
|
@@ -102,28 +198,28 @@ export interface Owner {
|
|
|
102
198
|
*/
|
|
103
199
|
export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
104
200
|
/**
|
|
105
|
-
*
|
|
201
|
+
* Creates M2M application / client for the authenticated user
|
|
106
202
|
* @param {ApplicationCreateRequest} [applicationCreateRequest]
|
|
107
203
|
* @param {*} [options] Override http request option.
|
|
108
204
|
* @throws {RequiredError}
|
|
109
205
|
*/
|
|
110
206
|
applicationCreate: (applicationCreateRequest?: ApplicationCreateRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
111
207
|
/**
|
|
112
|
-
*
|
|
208
|
+
* Deletes specific M2M application
|
|
113
209
|
* @param {string} applicationId Application ID
|
|
114
210
|
* @param {*} [options] Override http request option.
|
|
115
211
|
* @throws {RequiredError}
|
|
116
212
|
*/
|
|
117
213
|
applicationDelete: (applicationId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
118
214
|
/**
|
|
119
|
-
*
|
|
215
|
+
* Retrieves M2M application info
|
|
120
216
|
* @param {string} applicationId Application ID
|
|
121
217
|
* @param {*} [options] Override http request option.
|
|
122
218
|
* @throws {RequiredError}
|
|
123
219
|
*/
|
|
124
220
|
applicationGet: (applicationId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
125
221
|
/**
|
|
126
|
-
*
|
|
222
|
+
* Lists applications / clients for the authenticated user
|
|
127
223
|
* @param {*} [options] Override http request option.
|
|
128
224
|
* @throws {RequiredError}
|
|
129
225
|
*/
|
|
@@ -140,6 +236,27 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
|
|
|
140
236
|
* @throws {RequiredError}
|
|
141
237
|
*/
|
|
142
238
|
ownerGet: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
239
|
+
/**
|
|
240
|
+
* Retrieves owner info by ID including M2M apps list
|
|
241
|
+
* @param {string} ownerId
|
|
242
|
+
* @param {*} [options] Override http request option.
|
|
243
|
+
* @throws {RequiredError}
|
|
244
|
+
*/
|
|
245
|
+
ownerGetById: (ownerId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
246
|
+
/**
|
|
247
|
+
*
|
|
248
|
+
* @param {string} ownerId
|
|
249
|
+
* @param {OwnerPatchPayload} [ownerPatchPayload]
|
|
250
|
+
* @param {*} [options] Override http request option.
|
|
251
|
+
* @throws {RequiredError}
|
|
252
|
+
*/
|
|
253
|
+
ownerUpdate: (ownerId: string, ownerPatchPayload?: OwnerPatchPayload, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
254
|
+
/**
|
|
255
|
+
* Retrieves owners
|
|
256
|
+
* @param {*} [options] Override http request option.
|
|
257
|
+
* @throws {RequiredError}
|
|
258
|
+
*/
|
|
259
|
+
ownersList: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
143
260
|
};
|
|
144
261
|
/**
|
|
145
262
|
* DefaultApi - functional programming interface
|
|
@@ -147,28 +264,28 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
|
|
|
147
264
|
*/
|
|
148
265
|
export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
149
266
|
/**
|
|
150
|
-
*
|
|
267
|
+
* Creates M2M application / client for the authenticated user
|
|
151
268
|
* @param {ApplicationCreateRequest} [applicationCreateRequest]
|
|
152
269
|
* @param {*} [options] Override http request option.
|
|
153
270
|
* @throws {RequiredError}
|
|
154
271
|
*/
|
|
155
272
|
applicationCreate(applicationCreateRequest?: ApplicationCreateRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Application>>;
|
|
156
273
|
/**
|
|
157
|
-
*
|
|
274
|
+
* Deletes specific M2M application
|
|
158
275
|
* @param {string} applicationId Application ID
|
|
159
276
|
* @param {*} [options] Override http request option.
|
|
160
277
|
* @throws {RequiredError}
|
|
161
278
|
*/
|
|
162
279
|
applicationDelete(applicationId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
163
280
|
/**
|
|
164
|
-
*
|
|
281
|
+
* Retrieves M2M application info
|
|
165
282
|
* @param {string} applicationId Application ID
|
|
166
283
|
* @param {*} [options] Override http request option.
|
|
167
284
|
* @throws {RequiredError}
|
|
168
285
|
*/
|
|
169
286
|
applicationGet(applicationId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Application>>;
|
|
170
287
|
/**
|
|
171
|
-
*
|
|
288
|
+
* Lists applications / clients for the authenticated user
|
|
172
289
|
* @param {*} [options] Override http request option.
|
|
173
290
|
* @throws {RequiredError}
|
|
174
291
|
*/
|
|
@@ -185,6 +302,27 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
|
185
302
|
* @throws {RequiredError}
|
|
186
303
|
*/
|
|
187
304
|
ownerGet(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Owner>>;
|
|
305
|
+
/**
|
|
306
|
+
* Retrieves owner info by ID including M2M apps list
|
|
307
|
+
* @param {string} ownerId
|
|
308
|
+
* @param {*} [options] Override http request option.
|
|
309
|
+
* @throws {RequiredError}
|
|
310
|
+
*/
|
|
311
|
+
ownerGetById(ownerId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OwnerWithExtras>>;
|
|
312
|
+
/**
|
|
313
|
+
*
|
|
314
|
+
* @param {string} ownerId
|
|
315
|
+
* @param {OwnerPatchPayload} [ownerPatchPayload]
|
|
316
|
+
* @param {*} [options] Override http request option.
|
|
317
|
+
* @throws {RequiredError}
|
|
318
|
+
*/
|
|
319
|
+
ownerUpdate(ownerId: string, ownerPatchPayload?: OwnerPatchPayload, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
320
|
+
/**
|
|
321
|
+
* Retrieves owners
|
|
322
|
+
* @param {*} [options] Override http request option.
|
|
323
|
+
* @throws {RequiredError}
|
|
324
|
+
*/
|
|
325
|
+
ownersList(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Owner>>>;
|
|
188
326
|
};
|
|
189
327
|
/**
|
|
190
328
|
* DefaultApi - factory interface
|
|
@@ -192,28 +330,28 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
|
192
330
|
*/
|
|
193
331
|
export declare const DefaultApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
194
332
|
/**
|
|
195
|
-
*
|
|
333
|
+
* Creates M2M application / client for the authenticated user
|
|
196
334
|
* @param {ApplicationCreateRequest} [applicationCreateRequest]
|
|
197
335
|
* @param {*} [options] Override http request option.
|
|
198
336
|
* @throws {RequiredError}
|
|
199
337
|
*/
|
|
200
338
|
applicationCreate(applicationCreateRequest?: ApplicationCreateRequest, options?: RawAxiosRequestConfig): AxiosPromise<Application>;
|
|
201
339
|
/**
|
|
202
|
-
*
|
|
340
|
+
* Deletes specific M2M application
|
|
203
341
|
* @param {string} applicationId Application ID
|
|
204
342
|
* @param {*} [options] Override http request option.
|
|
205
343
|
* @throws {RequiredError}
|
|
206
344
|
*/
|
|
207
345
|
applicationDelete(applicationId: string, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
208
346
|
/**
|
|
209
|
-
*
|
|
347
|
+
* Retrieves M2M application info
|
|
210
348
|
* @param {string} applicationId Application ID
|
|
211
349
|
* @param {*} [options] Override http request option.
|
|
212
350
|
* @throws {RequiredError}
|
|
213
351
|
*/
|
|
214
352
|
applicationGet(applicationId: string, options?: RawAxiosRequestConfig): AxiosPromise<Application>;
|
|
215
353
|
/**
|
|
216
|
-
*
|
|
354
|
+
* Lists applications / clients for the authenticated user
|
|
217
355
|
* @param {*} [options] Override http request option.
|
|
218
356
|
* @throws {RequiredError}
|
|
219
357
|
*/
|
|
@@ -230,6 +368,27 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
|
|
|
230
368
|
* @throws {RequiredError}
|
|
231
369
|
*/
|
|
232
370
|
ownerGet(options?: RawAxiosRequestConfig): AxiosPromise<Owner>;
|
|
371
|
+
/**
|
|
372
|
+
* Retrieves owner info by ID including M2M apps list
|
|
373
|
+
* @param {string} ownerId
|
|
374
|
+
* @param {*} [options] Override http request option.
|
|
375
|
+
* @throws {RequiredError}
|
|
376
|
+
*/
|
|
377
|
+
ownerGetById(ownerId: string, options?: RawAxiosRequestConfig): AxiosPromise<OwnerWithExtras>;
|
|
378
|
+
/**
|
|
379
|
+
*
|
|
380
|
+
* @param {string} ownerId
|
|
381
|
+
* @param {OwnerPatchPayload} [ownerPatchPayload]
|
|
382
|
+
* @param {*} [options] Override http request option.
|
|
383
|
+
* @throws {RequiredError}
|
|
384
|
+
*/
|
|
385
|
+
ownerUpdate(ownerId: string, ownerPatchPayload?: OwnerPatchPayload, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
386
|
+
/**
|
|
387
|
+
* Retrieves owners
|
|
388
|
+
* @param {*} [options] Override http request option.
|
|
389
|
+
* @throws {RequiredError}
|
|
390
|
+
*/
|
|
391
|
+
ownersList(options?: RawAxiosRequestConfig): AxiosPromise<Array<Owner>>;
|
|
233
392
|
};
|
|
234
393
|
/**
|
|
235
394
|
* DefaultApi - object-oriented interface
|
|
@@ -239,7 +398,7 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
|
|
|
239
398
|
*/
|
|
240
399
|
export declare class DefaultApi extends BaseAPI {
|
|
241
400
|
/**
|
|
242
|
-
*
|
|
401
|
+
* Creates M2M application / client for the authenticated user
|
|
243
402
|
* @param {ApplicationCreateRequest} [applicationCreateRequest]
|
|
244
403
|
* @param {*} [options] Override http request option.
|
|
245
404
|
* @throws {RequiredError}
|
|
@@ -247,7 +406,7 @@ export declare class DefaultApi extends BaseAPI {
|
|
|
247
406
|
*/
|
|
248
407
|
applicationCreate(applicationCreateRequest?: ApplicationCreateRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Application, any>>;
|
|
249
408
|
/**
|
|
250
|
-
*
|
|
409
|
+
* Deletes specific M2M application
|
|
251
410
|
* @param {string} applicationId Application ID
|
|
252
411
|
* @param {*} [options] Override http request option.
|
|
253
412
|
* @throws {RequiredError}
|
|
@@ -255,7 +414,7 @@ export declare class DefaultApi extends BaseAPI {
|
|
|
255
414
|
*/
|
|
256
415
|
applicationDelete(applicationId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
257
416
|
/**
|
|
258
|
-
*
|
|
417
|
+
* Retrieves M2M application info
|
|
259
418
|
* @param {string} applicationId Application ID
|
|
260
419
|
* @param {*} [options] Override http request option.
|
|
261
420
|
* @throws {RequiredError}
|
|
@@ -263,7 +422,7 @@ export declare class DefaultApi extends BaseAPI {
|
|
|
263
422
|
*/
|
|
264
423
|
applicationGet(applicationId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Application, any>>;
|
|
265
424
|
/**
|
|
266
|
-
*
|
|
425
|
+
* Lists applications / clients for the authenticated user
|
|
267
426
|
* @param {*} [options] Override http request option.
|
|
268
427
|
* @throws {RequiredError}
|
|
269
428
|
* @memberof DefaultApi
|
|
@@ -283,4 +442,28 @@ export declare class DefaultApi extends BaseAPI {
|
|
|
283
442
|
* @memberof DefaultApi
|
|
284
443
|
*/
|
|
285
444
|
ownerGet(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Owner, any>>;
|
|
445
|
+
/**
|
|
446
|
+
* Retrieves owner info by ID including M2M apps list
|
|
447
|
+
* @param {string} ownerId
|
|
448
|
+
* @param {*} [options] Override http request option.
|
|
449
|
+
* @throws {RequiredError}
|
|
450
|
+
* @memberof DefaultApi
|
|
451
|
+
*/
|
|
452
|
+
ownerGetById(ownerId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<OwnerWithExtras, any>>;
|
|
453
|
+
/**
|
|
454
|
+
*
|
|
455
|
+
* @param {string} ownerId
|
|
456
|
+
* @param {OwnerPatchPayload} [ownerPatchPayload]
|
|
457
|
+
* @param {*} [options] Override http request option.
|
|
458
|
+
* @throws {RequiredError}
|
|
459
|
+
* @memberof DefaultApi
|
|
460
|
+
*/
|
|
461
|
+
ownerUpdate(ownerId: string, ownerPatchPayload?: OwnerPatchPayload, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
462
|
+
/**
|
|
463
|
+
* Retrieves owners
|
|
464
|
+
* @param {*} [options] Override http request option.
|
|
465
|
+
* @throws {RequiredError}
|
|
466
|
+
* @memberof DefaultApi
|
|
467
|
+
*/
|
|
468
|
+
ownersList(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Owner[], any>>;
|
|
286
469
|
}
|
package/api.js
CHANGED
|
@@ -25,13 +25,22 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
25
25
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
26
26
|
};
|
|
27
27
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
|
-
exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = exports.HealthStatusStatusEnum = void 0;
|
|
28
|
+
exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = exports.HealthStatusStatusEnum = exports.AdminRole = void 0;
|
|
29
29
|
const axios_1 = __importDefault(require("axios"));
|
|
30
30
|
// Some imports not used depending on template conditions
|
|
31
31
|
// @ts-ignore
|
|
32
32
|
const common_1 = require("./common");
|
|
33
33
|
// @ts-ignore
|
|
34
34
|
const base_1 = require("./base");
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @export
|
|
38
|
+
* @enum {string}
|
|
39
|
+
*/
|
|
40
|
+
exports.AdminRole = {
|
|
41
|
+
UserManager: 'User Manager',
|
|
42
|
+
WalletManager: 'Wallet Manager'
|
|
43
|
+
};
|
|
35
44
|
exports.HealthStatusStatusEnum = {
|
|
36
45
|
Ok: 'ok',
|
|
37
46
|
Limited: 'limited',
|
|
@@ -44,7 +53,7 @@ exports.HealthStatusStatusEnum = {
|
|
|
44
53
|
const DefaultApiAxiosParamCreator = function (configuration) {
|
|
45
54
|
return {
|
|
46
55
|
/**
|
|
47
|
-
*
|
|
56
|
+
* Creates M2M application / client for the authenticated user
|
|
48
57
|
* @param {ApplicationCreateRequest} [applicationCreateRequest]
|
|
49
58
|
* @param {*} [options] Override http request option.
|
|
50
59
|
* @throws {RequiredError}
|
|
@@ -74,7 +83,7 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
74
83
|
};
|
|
75
84
|
}),
|
|
76
85
|
/**
|
|
77
|
-
*
|
|
86
|
+
* Deletes specific M2M application
|
|
78
87
|
* @param {string} applicationId Application ID
|
|
79
88
|
* @param {*} [options] Override http request option.
|
|
80
89
|
* @throws {RequiredError}
|
|
@@ -105,7 +114,7 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
105
114
|
};
|
|
106
115
|
}),
|
|
107
116
|
/**
|
|
108
|
-
*
|
|
117
|
+
* Retrieves M2M application info
|
|
109
118
|
* @param {string} applicationId Application ID
|
|
110
119
|
* @param {*} [options] Override http request option.
|
|
111
120
|
* @throws {RequiredError}
|
|
@@ -136,7 +145,7 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
136
145
|
};
|
|
137
146
|
}),
|
|
138
147
|
/**
|
|
139
|
-
*
|
|
148
|
+
* Lists applications / clients for the authenticated user
|
|
140
149
|
* @param {*} [options] Override http request option.
|
|
141
150
|
* @throws {RequiredError}
|
|
142
151
|
*/
|
|
@@ -213,6 +222,98 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
213
222
|
options: localVarRequestOptions,
|
|
214
223
|
};
|
|
215
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
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
249
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
250
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
251
|
+
return {
|
|
252
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
253
|
+
options: localVarRequestOptions,
|
|
254
|
+
};
|
|
255
|
+
}),
|
|
256
|
+
/**
|
|
257
|
+
*
|
|
258
|
+
* @param {string} ownerId
|
|
259
|
+
* @param {OwnerPatchPayload} [ownerPatchPayload]
|
|
260
|
+
* @param {*} [options] Override http request option.
|
|
261
|
+
* @throws {RequiredError}
|
|
262
|
+
*/
|
|
263
|
+
ownerUpdate: (ownerId, ownerPatchPayload, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
264
|
+
// verify required parameter 'ownerId' is not null or undefined
|
|
265
|
+
(0, common_1.assertParamExists)('ownerUpdate', 'ownerId', ownerId);
|
|
266
|
+
const localVarPath = `/admin/owners/{owner_id}`
|
|
267
|
+
.replace(`{${"owner_id"}}`, encodeURIComponent(String(ownerId)));
|
|
268
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
269
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
270
|
+
let baseOptions;
|
|
271
|
+
if (configuration) {
|
|
272
|
+
baseOptions = configuration.baseOptions;
|
|
273
|
+
}
|
|
274
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
275
|
+
const localVarHeaderParameter = {};
|
|
276
|
+
const localVarQueryParameter = {};
|
|
277
|
+
// authentication accessToken required
|
|
278
|
+
// http bearer authentication required
|
|
279
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
280
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
281
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
282
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
283
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
284
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(ownerPatchPayload, localVarRequestOptions, configuration);
|
|
285
|
+
return {
|
|
286
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
287
|
+
options: localVarRequestOptions,
|
|
288
|
+
};
|
|
289
|
+
}),
|
|
290
|
+
/**
|
|
291
|
+
* Retrieves owners
|
|
292
|
+
* @param {*} [options] Override http request option.
|
|
293
|
+
* @throws {RequiredError}
|
|
294
|
+
*/
|
|
295
|
+
ownersList: (options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
296
|
+
const localVarPath = `/admin/owners`;
|
|
297
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
298
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
299
|
+
let baseOptions;
|
|
300
|
+
if (configuration) {
|
|
301
|
+
baseOptions = configuration.baseOptions;
|
|
302
|
+
}
|
|
303
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
304
|
+
const localVarHeaderParameter = {};
|
|
305
|
+
const localVarQueryParameter = {};
|
|
306
|
+
// authentication accessToken required
|
|
307
|
+
// http bearer authentication required
|
|
308
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
309
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
310
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
311
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
312
|
+
return {
|
|
313
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
314
|
+
options: localVarRequestOptions,
|
|
315
|
+
};
|
|
316
|
+
}),
|
|
216
317
|
};
|
|
217
318
|
};
|
|
218
319
|
exports.DefaultApiAxiosParamCreator = DefaultApiAxiosParamCreator;
|
|
@@ -224,7 +325,7 @@ const DefaultApiFp = function (configuration) {
|
|
|
224
325
|
const localVarAxiosParamCreator = (0, exports.DefaultApiAxiosParamCreator)(configuration);
|
|
225
326
|
return {
|
|
226
327
|
/**
|
|
227
|
-
*
|
|
328
|
+
* Creates M2M application / client for the authenticated user
|
|
228
329
|
* @param {ApplicationCreateRequest} [applicationCreateRequest]
|
|
229
330
|
* @param {*} [options] Override http request option.
|
|
230
331
|
* @throws {RequiredError}
|
|
@@ -239,7 +340,7 @@ const DefaultApiFp = function (configuration) {
|
|
|
239
340
|
});
|
|
240
341
|
},
|
|
241
342
|
/**
|
|
242
|
-
*
|
|
343
|
+
* Deletes specific M2M application
|
|
243
344
|
* @param {string} applicationId Application ID
|
|
244
345
|
* @param {*} [options] Override http request option.
|
|
245
346
|
* @throws {RequiredError}
|
|
@@ -254,7 +355,7 @@ const DefaultApiFp = function (configuration) {
|
|
|
254
355
|
});
|
|
255
356
|
},
|
|
256
357
|
/**
|
|
257
|
-
*
|
|
358
|
+
* Retrieves M2M application info
|
|
258
359
|
* @param {string} applicationId Application ID
|
|
259
360
|
* @param {*} [options] Override http request option.
|
|
260
361
|
* @throws {RequiredError}
|
|
@@ -269,7 +370,7 @@ const DefaultApiFp = function (configuration) {
|
|
|
269
370
|
});
|
|
270
371
|
},
|
|
271
372
|
/**
|
|
272
|
-
*
|
|
373
|
+
* Lists applications / clients for the authenticated user
|
|
273
374
|
* @param {*} [options] Override http request option.
|
|
274
375
|
* @throws {RequiredError}
|
|
275
376
|
*/
|
|
@@ -310,6 +411,51 @@ const DefaultApiFp = function (configuration) {
|
|
|
310
411
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
311
412
|
});
|
|
312
413
|
},
|
|
414
|
+
/**
|
|
415
|
+
* Retrieves owner info by ID including M2M apps list
|
|
416
|
+
* @param {string} ownerId
|
|
417
|
+
* @param {*} [options] Override http request option.
|
|
418
|
+
* @throws {RequiredError}
|
|
419
|
+
*/
|
|
420
|
+
ownerGetById(ownerId, options) {
|
|
421
|
+
var _a, _b, _c;
|
|
422
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
423
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.ownerGetById(ownerId, options);
|
|
424
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
425
|
+
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;
|
|
426
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
427
|
+
});
|
|
428
|
+
},
|
|
429
|
+
/**
|
|
430
|
+
*
|
|
431
|
+
* @param {string} ownerId
|
|
432
|
+
* @param {OwnerPatchPayload} [ownerPatchPayload]
|
|
433
|
+
* @param {*} [options] Override http request option.
|
|
434
|
+
* @throws {RequiredError}
|
|
435
|
+
*/
|
|
436
|
+
ownerUpdate(ownerId, ownerPatchPayload, options) {
|
|
437
|
+
var _a, _b, _c;
|
|
438
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
439
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.ownerUpdate(ownerId, ownerPatchPayload, options);
|
|
440
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
441
|
+
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;
|
|
442
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
443
|
+
});
|
|
444
|
+
},
|
|
445
|
+
/**
|
|
446
|
+
* Retrieves owners
|
|
447
|
+
* @param {*} [options] Override http request option.
|
|
448
|
+
* @throws {RequiredError}
|
|
449
|
+
*/
|
|
450
|
+
ownersList(options) {
|
|
451
|
+
var _a, _b, _c;
|
|
452
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
453
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.ownersList(options);
|
|
454
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
455
|
+
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;
|
|
456
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
457
|
+
});
|
|
458
|
+
},
|
|
313
459
|
};
|
|
314
460
|
};
|
|
315
461
|
exports.DefaultApiFp = DefaultApiFp;
|
|
@@ -321,7 +467,7 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
321
467
|
const localVarFp = (0, exports.DefaultApiFp)(configuration);
|
|
322
468
|
return {
|
|
323
469
|
/**
|
|
324
|
-
*
|
|
470
|
+
* Creates M2M application / client for the authenticated user
|
|
325
471
|
* @param {ApplicationCreateRequest} [applicationCreateRequest]
|
|
326
472
|
* @param {*} [options] Override http request option.
|
|
327
473
|
* @throws {RequiredError}
|
|
@@ -330,7 +476,7 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
330
476
|
return localVarFp.applicationCreate(applicationCreateRequest, options).then((request) => request(axios, basePath));
|
|
331
477
|
},
|
|
332
478
|
/**
|
|
333
|
-
*
|
|
479
|
+
* Deletes specific M2M application
|
|
334
480
|
* @param {string} applicationId Application ID
|
|
335
481
|
* @param {*} [options] Override http request option.
|
|
336
482
|
* @throws {RequiredError}
|
|
@@ -339,7 +485,7 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
339
485
|
return localVarFp.applicationDelete(applicationId, options).then((request) => request(axios, basePath));
|
|
340
486
|
},
|
|
341
487
|
/**
|
|
342
|
-
*
|
|
488
|
+
* Retrieves M2M application info
|
|
343
489
|
* @param {string} applicationId Application ID
|
|
344
490
|
* @param {*} [options] Override http request option.
|
|
345
491
|
* @throws {RequiredError}
|
|
@@ -348,7 +494,7 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
348
494
|
return localVarFp.applicationGet(applicationId, options).then((request) => request(axios, basePath));
|
|
349
495
|
},
|
|
350
496
|
/**
|
|
351
|
-
*
|
|
497
|
+
* Lists applications / clients for the authenticated user
|
|
352
498
|
* @param {*} [options] Override http request option.
|
|
353
499
|
* @throws {RequiredError}
|
|
354
500
|
*/
|
|
@@ -371,6 +517,33 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
371
517
|
ownerGet(options) {
|
|
372
518
|
return localVarFp.ownerGet(options).then((request) => request(axios, basePath));
|
|
373
519
|
},
|
|
520
|
+
/**
|
|
521
|
+
* Retrieves owner info by ID including M2M apps list
|
|
522
|
+
* @param {string} ownerId
|
|
523
|
+
* @param {*} [options] Override http request option.
|
|
524
|
+
* @throws {RequiredError}
|
|
525
|
+
*/
|
|
526
|
+
ownerGetById(ownerId, options) {
|
|
527
|
+
return localVarFp.ownerGetById(ownerId, options).then((request) => request(axios, basePath));
|
|
528
|
+
},
|
|
529
|
+
/**
|
|
530
|
+
*
|
|
531
|
+
* @param {string} ownerId
|
|
532
|
+
* @param {OwnerPatchPayload} [ownerPatchPayload]
|
|
533
|
+
* @param {*} [options] Override http request option.
|
|
534
|
+
* @throws {RequiredError}
|
|
535
|
+
*/
|
|
536
|
+
ownerUpdate(ownerId, ownerPatchPayload, options) {
|
|
537
|
+
return localVarFp.ownerUpdate(ownerId, ownerPatchPayload, options).then((request) => request(axios, basePath));
|
|
538
|
+
},
|
|
539
|
+
/**
|
|
540
|
+
* Retrieves owners
|
|
541
|
+
* @param {*} [options] Override http request option.
|
|
542
|
+
* @throws {RequiredError}
|
|
543
|
+
*/
|
|
544
|
+
ownersList(options) {
|
|
545
|
+
return localVarFp.ownersList(options).then((request) => request(axios, basePath));
|
|
546
|
+
},
|
|
374
547
|
};
|
|
375
548
|
};
|
|
376
549
|
exports.DefaultApiFactory = DefaultApiFactory;
|
|
@@ -382,7 +555,7 @@ exports.DefaultApiFactory = DefaultApiFactory;
|
|
|
382
555
|
*/
|
|
383
556
|
class DefaultApi extends base_1.BaseAPI {
|
|
384
557
|
/**
|
|
385
|
-
*
|
|
558
|
+
* Creates M2M application / client for the authenticated user
|
|
386
559
|
* @param {ApplicationCreateRequest} [applicationCreateRequest]
|
|
387
560
|
* @param {*} [options] Override http request option.
|
|
388
561
|
* @throws {RequiredError}
|
|
@@ -392,7 +565,7 @@ class DefaultApi extends base_1.BaseAPI {
|
|
|
392
565
|
return (0, exports.DefaultApiFp)(this.configuration).applicationCreate(applicationCreateRequest, options).then((request) => request(this.axios, this.basePath));
|
|
393
566
|
}
|
|
394
567
|
/**
|
|
395
|
-
*
|
|
568
|
+
* Deletes specific M2M application
|
|
396
569
|
* @param {string} applicationId Application ID
|
|
397
570
|
* @param {*} [options] Override http request option.
|
|
398
571
|
* @throws {RequiredError}
|
|
@@ -402,7 +575,7 @@ class DefaultApi extends base_1.BaseAPI {
|
|
|
402
575
|
return (0, exports.DefaultApiFp)(this.configuration).applicationDelete(applicationId, options).then((request) => request(this.axios, this.basePath));
|
|
403
576
|
}
|
|
404
577
|
/**
|
|
405
|
-
*
|
|
578
|
+
* Retrieves M2M application info
|
|
406
579
|
* @param {string} applicationId Application ID
|
|
407
580
|
* @param {*} [options] Override http request option.
|
|
408
581
|
* @throws {RequiredError}
|
|
@@ -412,7 +585,7 @@ class DefaultApi extends base_1.BaseAPI {
|
|
|
412
585
|
return (0, exports.DefaultApiFp)(this.configuration).applicationGet(applicationId, options).then((request) => request(this.axios, this.basePath));
|
|
413
586
|
}
|
|
414
587
|
/**
|
|
415
|
-
*
|
|
588
|
+
* Lists applications / clients for the authenticated user
|
|
416
589
|
* @param {*} [options] Override http request option.
|
|
417
590
|
* @throws {RequiredError}
|
|
418
591
|
* @memberof DefaultApi
|
|
@@ -438,5 +611,35 @@ class DefaultApi extends base_1.BaseAPI {
|
|
|
438
611
|
ownerGet(options) {
|
|
439
612
|
return (0, exports.DefaultApiFp)(this.configuration).ownerGet(options).then((request) => request(this.axios, this.basePath));
|
|
440
613
|
}
|
|
614
|
+
/**
|
|
615
|
+
* Retrieves owner info by ID including M2M apps list
|
|
616
|
+
* @param {string} ownerId
|
|
617
|
+
* @param {*} [options] Override http request option.
|
|
618
|
+
* @throws {RequiredError}
|
|
619
|
+
* @memberof DefaultApi
|
|
620
|
+
*/
|
|
621
|
+
ownerGetById(ownerId, options) {
|
|
622
|
+
return (0, exports.DefaultApiFp)(this.configuration).ownerGetById(ownerId, options).then((request) => request(this.axios, this.basePath));
|
|
623
|
+
}
|
|
624
|
+
/**
|
|
625
|
+
*
|
|
626
|
+
* @param {string} ownerId
|
|
627
|
+
* @param {OwnerPatchPayload} [ownerPatchPayload]
|
|
628
|
+
* @param {*} [options] Override http request option.
|
|
629
|
+
* @throws {RequiredError}
|
|
630
|
+
* @memberof DefaultApi
|
|
631
|
+
*/
|
|
632
|
+
ownerUpdate(ownerId, ownerPatchPayload, options) {
|
|
633
|
+
return (0, exports.DefaultApiFp)(this.configuration).ownerUpdate(ownerId, ownerPatchPayload, options).then((request) => request(this.axios, this.basePath));
|
|
634
|
+
}
|
|
635
|
+
/**
|
|
636
|
+
* Retrieves owners
|
|
637
|
+
* @param {*} [options] Override http request option.
|
|
638
|
+
* @throws {RequiredError}
|
|
639
|
+
* @memberof DefaultApi
|
|
640
|
+
*/
|
|
641
|
+
ownersList(options) {
|
|
642
|
+
return (0, exports.DefaultApiFp)(this.configuration).ownersList(options).then((request) => request(this.axios, this.basePath));
|
|
643
|
+
}
|
|
441
644
|
}
|
|
442
645
|
exports.DefaultApi = DefaultApi;
|