@loopstack/hub-client 0.12.2 → 0.13.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +13 -9
- package/api.ts +7084 -3866
- package/base.ts +33 -29
- package/common.ts +88 -75
- package/configuration.ts +103 -96
- package/dist/api.d.ts +2945 -1440
- package/dist/api.js +1410 -260
- package/dist/base.d.ts +1 -1
- package/dist/base.js +6 -20
- package/dist/common.d.ts +2 -2
- package/dist/common.js +9 -24
- package/dist/configuration.js +1 -1
- package/dist/esm/api.d.ts +2945 -1440
- package/dist/esm/api.js +1397 -260
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +6 -20
- package/dist/esm/common.d.ts +2 -2
- package/dist/esm/common.js +10 -25
- package/dist/esm/configuration.js +1 -1
- package/dist/esm/index.d.ts +2 -2
- package/dist/esm/index.js +2 -3
- package/dist/index.d.ts +2 -2
- package/dist/index.js +0 -1
- package/index.ts +3 -6
- package/package.json +6 -9
- package/tsconfig.json +2 -7
- package/CHANGELOG.md +0 -43
- package/LICENSE +0 -19
package/dist/esm/api.js
CHANGED
|
@@ -1,16 +1,3 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* Loopstack Hub
|
|
5
|
-
* Loopstack Hub Documentation
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
1
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
15
2
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
16
3
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -21,43 +8,109 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
21
8
|
});
|
|
22
9
|
};
|
|
23
10
|
import globalAxios from 'axios';
|
|
24
|
-
// Some imports not used depending on template conditions
|
|
25
|
-
// @ts-ignore
|
|
26
|
-
import { DUMMY_BASE_URL, assertParamExists, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common';
|
|
27
11
|
// @ts-ignore
|
|
28
12
|
import { BASE_PATH, BaseAPI, operationServerMap } from './base';
|
|
13
|
+
// Some imports not used depending on template conditions
|
|
14
|
+
// @ts-ignore
|
|
15
|
+
import { DUMMY_BASE_URL, assertParamExists, createRequestFunction, serializeDataIfNeeded, setSearchParams, toPathString, } from './common';
|
|
29
16
|
export const AddRoleDtoRoleEnum = {
|
|
30
17
|
RoleAdmin: 'ROLE_ADMIN',
|
|
31
18
|
RoleBeta: 'ROLE_BETA',
|
|
32
|
-
RoleUser: 'ROLE_USER'
|
|
19
|
+
RoleUser: 'ROLE_USER',
|
|
20
|
+
RoleContributor: 'ROLE_CONTRIBUTOR',
|
|
21
|
+
};
|
|
22
|
+
export const ConfirmDraftDtoCategoryEnum = {
|
|
23
|
+
Tools: 'tools',
|
|
24
|
+
Examples: 'examples',
|
|
25
|
+
Bundles: 'bundles',
|
|
26
|
+
Modules: 'modules',
|
|
27
|
+
Integrations: 'integrations',
|
|
28
|
+
};
|
|
29
|
+
export const DraftEntryResponseDtoStatusEnum = {
|
|
30
|
+
Draft: 'draft',
|
|
31
|
+
Pending: 'pending',
|
|
32
|
+
Active: 'active',
|
|
33
|
+
Inactive: 'inactive',
|
|
34
|
+
};
|
|
35
|
+
export const MaintenanceRunDtoTriggerTypeEnum = {
|
|
36
|
+
Scheduled: 'scheduled',
|
|
37
|
+
Manual: 'manual',
|
|
38
|
+
};
|
|
39
|
+
export const RegistryEntryAdminResponseDtoStatusEnum = {
|
|
40
|
+
Draft: 'draft',
|
|
41
|
+
Pending: 'pending',
|
|
42
|
+
Active: 'active',
|
|
43
|
+
Inactive: 'inactive',
|
|
44
|
+
};
|
|
45
|
+
export const RegistryEntryAdminResponseDtoCategoryEnum = {
|
|
46
|
+
Tools: 'tools',
|
|
47
|
+
Examples: 'examples',
|
|
48
|
+
Bundles: 'bundles',
|
|
49
|
+
Modules: 'modules',
|
|
50
|
+
Integrations: 'integrations',
|
|
51
|
+
};
|
|
52
|
+
export const RegistryEntryResponseDtoStatusEnum = {
|
|
53
|
+
Draft: 'draft',
|
|
54
|
+
Pending: 'pending',
|
|
55
|
+
Active: 'active',
|
|
56
|
+
Inactive: 'inactive',
|
|
57
|
+
};
|
|
58
|
+
export const RegistryEntryResponseDtoCategoryEnum = {
|
|
59
|
+
Tools: 'tools',
|
|
60
|
+
Examples: 'examples',
|
|
61
|
+
Bundles: 'bundles',
|
|
62
|
+
Modules: 'modules',
|
|
63
|
+
Integrations: 'integrations',
|
|
33
64
|
};
|
|
34
65
|
export const RemoveRoleDtoRoleEnum = {
|
|
35
66
|
RoleAdmin: 'ROLE_ADMIN',
|
|
36
67
|
RoleBeta: 'ROLE_BETA',
|
|
37
|
-
RoleUser: 'ROLE_USER'
|
|
68
|
+
RoleUser: 'ROLE_USER',
|
|
69
|
+
RoleContributor: 'ROLE_CONTRIBUTOR',
|
|
38
70
|
};
|
|
39
71
|
export const UIPreferencesDtoThemeEnum = {
|
|
40
72
|
Light: 'light',
|
|
41
|
-
Dark: 'dark'
|
|
73
|
+
Dark: 'dark',
|
|
74
|
+
};
|
|
75
|
+
export const UpdateEntryDtoCategoryEnum = {
|
|
76
|
+
Tools: 'tools',
|
|
77
|
+
Examples: 'examples',
|
|
78
|
+
Bundles: 'bundles',
|
|
79
|
+
Modules: 'modules',
|
|
80
|
+
Integrations: 'integrations',
|
|
81
|
+
};
|
|
82
|
+
export const UpdateStatusDtoStatusEnum = {
|
|
83
|
+
Draft: 'draft',
|
|
84
|
+
Pending: 'pending',
|
|
85
|
+
Active: 'active',
|
|
86
|
+
Inactive: 'inactive',
|
|
42
87
|
};
|
|
43
88
|
export const UpdateUserRolesDtoRolesEnum = {
|
|
44
89
|
RoleAdmin: 'ROLE_ADMIN',
|
|
45
90
|
RoleBeta: 'ROLE_BETA',
|
|
46
|
-
RoleUser: 'ROLE_USER'
|
|
91
|
+
RoleUser: 'ROLE_USER',
|
|
92
|
+
RoleContributor: 'ROLE_CONTRIBUTOR',
|
|
93
|
+
};
|
|
94
|
+
export const WorkerDtoTypeEnum = {
|
|
95
|
+
SelfHosted: 'self_hosted',
|
|
96
|
+
Managed: 'managed',
|
|
97
|
+
};
|
|
98
|
+
export const WorkerItemDtoTypeEnum = {
|
|
99
|
+
SelfHosted: 'self_hosted',
|
|
100
|
+
Managed: 'managed',
|
|
47
101
|
};
|
|
48
102
|
export const WorkerSortByDtoFieldEnum = {
|
|
49
103
|
Id: 'id',
|
|
50
104
|
Url: 'url',
|
|
51
|
-
WebsocketUrl: 'websocketUrl',
|
|
52
105
|
Name: 'name',
|
|
53
|
-
|
|
106
|
+
Type: 'type',
|
|
54
107
|
CreatedAt: 'createdAt',
|
|
55
108
|
UpdatedAt: 'updatedAt',
|
|
56
|
-
UserId: 'userId'
|
|
109
|
+
UserId: 'userId',
|
|
57
110
|
};
|
|
58
111
|
export const WorkerSortByDtoOrderEnum = {
|
|
59
112
|
Asc: 'ASC',
|
|
60
|
-
Desc: 'DESC'
|
|
113
|
+
Desc: 'DESC',
|
|
61
114
|
};
|
|
62
115
|
/**
|
|
63
116
|
* AdminApi - axios parameter creator
|
|
@@ -78,8 +131,7 @@ export const AdminApiAxiosParamCreator = function (configuration) {
|
|
|
78
131
|
assertParamExists('adminControllerAddRoleToUser', 'userId', userId);
|
|
79
132
|
// verify required parameter 'addRoleDto' is not null or undefined
|
|
80
133
|
assertParamExists('adminControllerAddRoleToUser', 'addRoleDto', addRoleDto);
|
|
81
|
-
const localVarPath = `/api/v1/admin/users/{userId}/roles/add`
|
|
82
|
-
.replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
|
|
134
|
+
const localVarPath = `/api/v1/admin/users/{userId}/roles/add`.replace(`{${'userId'}}`, encodeURIComponent(String(userId)));
|
|
83
135
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
84
136
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
85
137
|
let baseOptions;
|
|
@@ -109,8 +161,7 @@ export const AdminApiAxiosParamCreator = function (configuration) {
|
|
|
109
161
|
adminControllerDeleteUser: (userId_1, ...args_1) => __awaiter(this, [userId_1, ...args_1], void 0, function* (userId, options = {}) {
|
|
110
162
|
// verify required parameter 'userId' is not null or undefined
|
|
111
163
|
assertParamExists('adminControllerDeleteUser', 'userId', userId);
|
|
112
|
-
const localVarPath = `/api/v1/admin/users/{userId}`
|
|
113
|
-
.replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
|
|
164
|
+
const localVarPath = `/api/v1/admin/users/{userId}`.replace(`{${'userId'}}`, encodeURIComponent(String(userId)));
|
|
114
165
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
115
166
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
116
167
|
let baseOptions;
|
|
@@ -175,8 +226,7 @@ export const AdminApiAxiosParamCreator = function (configuration) {
|
|
|
175
226
|
adminControllerGetUserById: (userId_1, ...args_1) => __awaiter(this, [userId_1, ...args_1], void 0, function* (userId, options = {}) {
|
|
176
227
|
// verify required parameter 'userId' is not null or undefined
|
|
177
228
|
assertParamExists('adminControllerGetUserById', 'userId', userId);
|
|
178
|
-
const localVarPath = `/api/v1/admin/users/{userId}`
|
|
179
|
-
.replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
|
|
229
|
+
const localVarPath = `/api/v1/admin/users/{userId}`.replace(`{${'userId'}}`, encodeURIComponent(String(userId)));
|
|
180
230
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
181
231
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
182
232
|
let baseOptions;
|
|
@@ -207,8 +257,7 @@ export const AdminApiAxiosParamCreator = function (configuration) {
|
|
|
207
257
|
assertParamExists('adminControllerRemoveRoleFromUser', 'userId', userId);
|
|
208
258
|
// verify required parameter 'removeRoleDto' is not null or undefined
|
|
209
259
|
assertParamExists('adminControllerRemoveRoleFromUser', 'removeRoleDto', removeRoleDto);
|
|
210
|
-
const localVarPath = `/api/v1/admin/users/{userId}/roles/remove`
|
|
211
|
-
.replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
|
|
260
|
+
const localVarPath = `/api/v1/admin/users/{userId}/roles/remove`.replace(`{${'userId'}}`, encodeURIComponent(String(userId)));
|
|
212
261
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
213
262
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
214
263
|
let baseOptions;
|
|
@@ -272,8 +321,7 @@ export const AdminApiAxiosParamCreator = function (configuration) {
|
|
|
272
321
|
assertParamExists('adminControllerToggleUserAccess', 'userId', userId);
|
|
273
322
|
// verify required parameter 'toggleAccessDto' is not null or undefined
|
|
274
323
|
assertParamExists('adminControllerToggleUserAccess', 'toggleAccessDto', toggleAccessDto);
|
|
275
|
-
const localVarPath = `/api/v1/admin/users/{userId}/access`
|
|
276
|
-
.replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
|
|
324
|
+
const localVarPath = `/api/v1/admin/users/{userId}/access`.replace(`{${'userId'}}`, encodeURIComponent(String(userId)));
|
|
277
325
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
278
326
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
279
327
|
let baseOptions;
|
|
@@ -306,8 +354,7 @@ export const AdminApiAxiosParamCreator = function (configuration) {
|
|
|
306
354
|
assertParamExists('adminControllerToggleUserActive', 'userId', userId);
|
|
307
355
|
// verify required parameter 'toggleActiveDto' is not null or undefined
|
|
308
356
|
assertParamExists('adminControllerToggleUserActive', 'toggleActiveDto', toggleActiveDto);
|
|
309
|
-
const localVarPath = `/api/v1/admin/users/{userId}/active`
|
|
310
|
-
.replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
|
|
357
|
+
const localVarPath = `/api/v1/admin/users/{userId}/active`.replace(`{${'userId'}}`, encodeURIComponent(String(userId)));
|
|
311
358
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
312
359
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
313
360
|
let baseOptions;
|
|
@@ -340,8 +387,7 @@ export const AdminApiAxiosParamCreator = function (configuration) {
|
|
|
340
387
|
assertParamExists('adminControllerUpdateUserRoles', 'userId', userId);
|
|
341
388
|
// verify required parameter 'updateUserRolesDto' is not null or undefined
|
|
342
389
|
assertParamExists('adminControllerUpdateUserRoles', 'updateUserRolesDto', updateUserRolesDto);
|
|
343
|
-
const localVarPath = `/api/v1/admin/users/{userId}/roles`
|
|
344
|
-
.replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
|
|
390
|
+
const localVarPath = `/api/v1/admin/users/{userId}/roles`.replace(`{${'userId'}}`, encodeURIComponent(String(userId)));
|
|
345
391
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
346
392
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
347
393
|
let baseOptions;
|
|
@@ -537,7 +583,9 @@ export const AdminApiFactory = function (configuration, basePath, axios) {
|
|
|
537
583
|
* @throws {RequiredError}
|
|
538
584
|
*/
|
|
539
585
|
adminControllerAddRoleToUser(requestParameters, options) {
|
|
540
|
-
return localVarFp
|
|
586
|
+
return localVarFp
|
|
587
|
+
.adminControllerAddRoleToUser(requestParameters.userId, requestParameters.addRoleDto, options)
|
|
588
|
+
.then((request) => request(axios, basePath));
|
|
541
589
|
},
|
|
542
590
|
/**
|
|
543
591
|
*
|
|
@@ -547,7 +595,9 @@ export const AdminApiFactory = function (configuration, basePath, axios) {
|
|
|
547
595
|
* @throws {RequiredError}
|
|
548
596
|
*/
|
|
549
597
|
adminControllerDeleteUser(requestParameters, options) {
|
|
550
|
-
return localVarFp
|
|
598
|
+
return localVarFp
|
|
599
|
+
.adminControllerDeleteUser(requestParameters.userId, options)
|
|
600
|
+
.then((request) => request(axios, basePath));
|
|
551
601
|
},
|
|
552
602
|
/**
|
|
553
603
|
*
|
|
@@ -557,7 +607,9 @@ export const AdminApiFactory = function (configuration, basePath, axios) {
|
|
|
557
607
|
* @throws {RequiredError}
|
|
558
608
|
*/
|
|
559
609
|
adminControllerGetAllUsers(requestParameters, options) {
|
|
560
|
-
return localVarFp
|
|
610
|
+
return localVarFp
|
|
611
|
+
.adminControllerGetAllUsers(requestParameters.skip, requestParameters.take, options)
|
|
612
|
+
.then((request) => request(axios, basePath));
|
|
561
613
|
},
|
|
562
614
|
/**
|
|
563
615
|
*
|
|
@@ -567,7 +619,9 @@ export const AdminApiFactory = function (configuration, basePath, axios) {
|
|
|
567
619
|
* @throws {RequiredError}
|
|
568
620
|
*/
|
|
569
621
|
adminControllerGetUserById(requestParameters, options) {
|
|
570
|
-
return localVarFp
|
|
622
|
+
return localVarFp
|
|
623
|
+
.adminControllerGetUserById(requestParameters.userId, options)
|
|
624
|
+
.then((request) => request(axios, basePath));
|
|
571
625
|
},
|
|
572
626
|
/**
|
|
573
627
|
*
|
|
@@ -577,7 +631,9 @@ export const AdminApiFactory = function (configuration, basePath, axios) {
|
|
|
577
631
|
* @throws {RequiredError}
|
|
578
632
|
*/
|
|
579
633
|
adminControllerRemoveRoleFromUser(requestParameters, options) {
|
|
580
|
-
return localVarFp
|
|
634
|
+
return localVarFp
|
|
635
|
+
.adminControllerRemoveRoleFromUser(requestParameters.userId, requestParameters.removeRoleDto, options)
|
|
636
|
+
.then((request) => request(axios, basePath));
|
|
581
637
|
},
|
|
582
638
|
/**
|
|
583
639
|
*
|
|
@@ -587,7 +643,9 @@ export const AdminApiFactory = function (configuration, basePath, axios) {
|
|
|
587
643
|
* @throws {RequiredError}
|
|
588
644
|
*/
|
|
589
645
|
adminControllerSearchUsers(requestParameters, options) {
|
|
590
|
-
return localVarFp
|
|
646
|
+
return localVarFp
|
|
647
|
+
.adminControllerSearchUsers(requestParameters.q, options)
|
|
648
|
+
.then((request) => request(axios, basePath));
|
|
591
649
|
},
|
|
592
650
|
/**
|
|
593
651
|
*
|
|
@@ -597,7 +655,9 @@ export const AdminApiFactory = function (configuration, basePath, axios) {
|
|
|
597
655
|
* @throws {RequiredError}
|
|
598
656
|
*/
|
|
599
657
|
adminControllerToggleUserAccess(requestParameters, options) {
|
|
600
|
-
return localVarFp
|
|
658
|
+
return localVarFp
|
|
659
|
+
.adminControllerToggleUserAccess(requestParameters.userId, requestParameters.toggleAccessDto, options)
|
|
660
|
+
.then((request) => request(axios, basePath));
|
|
601
661
|
},
|
|
602
662
|
/**
|
|
603
663
|
*
|
|
@@ -607,7 +667,9 @@ export const AdminApiFactory = function (configuration, basePath, axios) {
|
|
|
607
667
|
* @throws {RequiredError}
|
|
608
668
|
*/
|
|
609
669
|
adminControllerToggleUserActive(requestParameters, options) {
|
|
610
|
-
return localVarFp
|
|
670
|
+
return localVarFp
|
|
671
|
+
.adminControllerToggleUserActive(requestParameters.userId, requestParameters.toggleActiveDto, options)
|
|
672
|
+
.then((request) => request(axios, basePath));
|
|
611
673
|
},
|
|
612
674
|
/**
|
|
613
675
|
*
|
|
@@ -617,7 +679,9 @@ export const AdminApiFactory = function (configuration, basePath, axios) {
|
|
|
617
679
|
* @throws {RequiredError}
|
|
618
680
|
*/
|
|
619
681
|
adminControllerUpdateUserRoles(requestParameters, options) {
|
|
620
|
-
return localVarFp
|
|
682
|
+
return localVarFp
|
|
683
|
+
.adminControllerUpdateUserRoles(requestParameters.userId, requestParameters.updateUserRolesDto, options)
|
|
684
|
+
.then((request) => request(axios, basePath));
|
|
621
685
|
},
|
|
622
686
|
};
|
|
623
687
|
};
|
|
@@ -637,7 +701,9 @@ export class AdminApi extends BaseAPI {
|
|
|
637
701
|
* @memberof AdminApi
|
|
638
702
|
*/
|
|
639
703
|
adminControllerAddRoleToUser(requestParameters, options) {
|
|
640
|
-
return AdminApiFp(this.configuration)
|
|
704
|
+
return AdminApiFp(this.configuration)
|
|
705
|
+
.adminControllerAddRoleToUser(requestParameters.userId, requestParameters.addRoleDto, options)
|
|
706
|
+
.then((request) => request(this.axios, this.basePath));
|
|
641
707
|
}
|
|
642
708
|
/**
|
|
643
709
|
*
|
|
@@ -648,7 +714,9 @@ export class AdminApi extends BaseAPI {
|
|
|
648
714
|
* @memberof AdminApi
|
|
649
715
|
*/
|
|
650
716
|
adminControllerDeleteUser(requestParameters, options) {
|
|
651
|
-
return AdminApiFp(this.configuration)
|
|
717
|
+
return AdminApiFp(this.configuration)
|
|
718
|
+
.adminControllerDeleteUser(requestParameters.userId, options)
|
|
719
|
+
.then((request) => request(this.axios, this.basePath));
|
|
652
720
|
}
|
|
653
721
|
/**
|
|
654
722
|
*
|
|
@@ -659,7 +727,9 @@ export class AdminApi extends BaseAPI {
|
|
|
659
727
|
* @memberof AdminApi
|
|
660
728
|
*/
|
|
661
729
|
adminControllerGetAllUsers(requestParameters, options) {
|
|
662
|
-
return AdminApiFp(this.configuration)
|
|
730
|
+
return AdminApiFp(this.configuration)
|
|
731
|
+
.adminControllerGetAllUsers(requestParameters.skip, requestParameters.take, options)
|
|
732
|
+
.then((request) => request(this.axios, this.basePath));
|
|
663
733
|
}
|
|
664
734
|
/**
|
|
665
735
|
*
|
|
@@ -670,7 +740,9 @@ export class AdminApi extends BaseAPI {
|
|
|
670
740
|
* @memberof AdminApi
|
|
671
741
|
*/
|
|
672
742
|
adminControllerGetUserById(requestParameters, options) {
|
|
673
|
-
return AdminApiFp(this.configuration)
|
|
743
|
+
return AdminApiFp(this.configuration)
|
|
744
|
+
.adminControllerGetUserById(requestParameters.userId, options)
|
|
745
|
+
.then((request) => request(this.axios, this.basePath));
|
|
674
746
|
}
|
|
675
747
|
/**
|
|
676
748
|
*
|
|
@@ -681,7 +753,9 @@ export class AdminApi extends BaseAPI {
|
|
|
681
753
|
* @memberof AdminApi
|
|
682
754
|
*/
|
|
683
755
|
adminControllerRemoveRoleFromUser(requestParameters, options) {
|
|
684
|
-
return AdminApiFp(this.configuration)
|
|
756
|
+
return AdminApiFp(this.configuration)
|
|
757
|
+
.adminControllerRemoveRoleFromUser(requestParameters.userId, requestParameters.removeRoleDto, options)
|
|
758
|
+
.then((request) => request(this.axios, this.basePath));
|
|
685
759
|
}
|
|
686
760
|
/**
|
|
687
761
|
*
|
|
@@ -692,7 +766,9 @@ export class AdminApi extends BaseAPI {
|
|
|
692
766
|
* @memberof AdminApi
|
|
693
767
|
*/
|
|
694
768
|
adminControllerSearchUsers(requestParameters, options) {
|
|
695
|
-
return AdminApiFp(this.configuration)
|
|
769
|
+
return AdminApiFp(this.configuration)
|
|
770
|
+
.adminControllerSearchUsers(requestParameters.q, options)
|
|
771
|
+
.then((request) => request(this.axios, this.basePath));
|
|
696
772
|
}
|
|
697
773
|
/**
|
|
698
774
|
*
|
|
@@ -703,7 +779,9 @@ export class AdminApi extends BaseAPI {
|
|
|
703
779
|
* @memberof AdminApi
|
|
704
780
|
*/
|
|
705
781
|
adminControllerToggleUserAccess(requestParameters, options) {
|
|
706
|
-
return AdminApiFp(this.configuration)
|
|
782
|
+
return AdminApiFp(this.configuration)
|
|
783
|
+
.adminControllerToggleUserAccess(requestParameters.userId, requestParameters.toggleAccessDto, options)
|
|
784
|
+
.then((request) => request(this.axios, this.basePath));
|
|
707
785
|
}
|
|
708
786
|
/**
|
|
709
787
|
*
|
|
@@ -714,7 +792,9 @@ export class AdminApi extends BaseAPI {
|
|
|
714
792
|
* @memberof AdminApi
|
|
715
793
|
*/
|
|
716
794
|
adminControllerToggleUserActive(requestParameters, options) {
|
|
717
|
-
return AdminApiFp(this.configuration)
|
|
795
|
+
return AdminApiFp(this.configuration)
|
|
796
|
+
.adminControllerToggleUserActive(requestParameters.userId, requestParameters.toggleActiveDto, options)
|
|
797
|
+
.then((request) => request(this.axios, this.basePath));
|
|
718
798
|
}
|
|
719
799
|
/**
|
|
720
800
|
*
|
|
@@ -725,7 +805,9 @@ export class AdminApi extends BaseAPI {
|
|
|
725
805
|
* @memberof AdminApi
|
|
726
806
|
*/
|
|
727
807
|
adminControllerUpdateUserRoles(requestParameters, options) {
|
|
728
|
-
return AdminApiFp(this.configuration)
|
|
808
|
+
return AdminApiFp(this.configuration)
|
|
809
|
+
.adminControllerUpdateUserRoles(requestParameters.userId, requestParameters.updateUserRolesDto, options)
|
|
810
|
+
.then((request) => request(this.axios, this.basePath));
|
|
729
811
|
}
|
|
730
812
|
}
|
|
731
813
|
/**
|
|
@@ -1554,7 +1636,9 @@ export const ApiV1AuthApiFactory = function (configuration, basePath, axios) {
|
|
|
1554
1636
|
* @throws {RequiredError}
|
|
1555
1637
|
*/
|
|
1556
1638
|
authControllerLinkProvider(requestParameters, options) {
|
|
1557
|
-
return localVarFp
|
|
1639
|
+
return localVarFp
|
|
1640
|
+
.authControllerLinkProvider(requestParameters.body, options)
|
|
1641
|
+
.then((request) => request(axios, basePath));
|
|
1558
1642
|
},
|
|
1559
1643
|
/**
|
|
1560
1644
|
*
|
|
@@ -1564,7 +1648,9 @@ export const ApiV1AuthApiFactory = function (configuration, basePath, axios) {
|
|
|
1564
1648
|
* @throws {RequiredError}
|
|
1565
1649
|
*/
|
|
1566
1650
|
authControllerLogin(requestParameters, options) {
|
|
1567
|
-
return localVarFp
|
|
1651
|
+
return localVarFp
|
|
1652
|
+
.authControllerLogin(requestParameters.body, options)
|
|
1653
|
+
.then((request) => request(axios, basePath));
|
|
1568
1654
|
},
|
|
1569
1655
|
/**
|
|
1570
1656
|
*
|
|
@@ -1592,7 +1678,9 @@ export const ApiV1AuthApiFactory = function (configuration, basePath, axios) {
|
|
|
1592
1678
|
* @throws {RequiredError}
|
|
1593
1679
|
*/
|
|
1594
1680
|
authControllerRegister(requestParameters, options) {
|
|
1595
|
-
return localVarFp
|
|
1681
|
+
return localVarFp
|
|
1682
|
+
.authControllerRegister(requestParameters.body, options)
|
|
1683
|
+
.then((request) => request(axios, basePath));
|
|
1596
1684
|
},
|
|
1597
1685
|
/**
|
|
1598
1686
|
*
|
|
@@ -1602,7 +1690,9 @@ export const ApiV1AuthApiFactory = function (configuration, basePath, axios) {
|
|
|
1602
1690
|
* @throws {RequiredError}
|
|
1603
1691
|
*/
|
|
1604
1692
|
authControllerRequestPasswordReset(requestParameters, options) {
|
|
1605
|
-
return localVarFp
|
|
1693
|
+
return localVarFp
|
|
1694
|
+
.authControllerRequestPasswordReset(requestParameters.requestPasswordResetDto, options)
|
|
1695
|
+
.then((request) => request(axios, basePath));
|
|
1606
1696
|
},
|
|
1607
1697
|
/**
|
|
1608
1698
|
*
|
|
@@ -1612,7 +1702,9 @@ export const ApiV1AuthApiFactory = function (configuration, basePath, axios) {
|
|
|
1612
1702
|
* @throws {RequiredError}
|
|
1613
1703
|
*/
|
|
1614
1704
|
authControllerResendVerification(requestParameters, options) {
|
|
1615
|
-
return localVarFp
|
|
1705
|
+
return localVarFp
|
|
1706
|
+
.authControllerResendVerification(requestParameters.resendVerificationDto, options)
|
|
1707
|
+
.then((request) => request(axios, basePath));
|
|
1616
1708
|
},
|
|
1617
1709
|
/**
|
|
1618
1710
|
*
|
|
@@ -1622,7 +1714,9 @@ export const ApiV1AuthApiFactory = function (configuration, basePath, axios) {
|
|
|
1622
1714
|
* @throws {RequiredError}
|
|
1623
1715
|
*/
|
|
1624
1716
|
authControllerResetPassword(requestParameters, options) {
|
|
1625
|
-
return localVarFp
|
|
1717
|
+
return localVarFp
|
|
1718
|
+
.authControllerResetPassword(requestParameters.resetPasswordDto, options)
|
|
1719
|
+
.then((request) => request(axios, basePath));
|
|
1626
1720
|
},
|
|
1627
1721
|
/**
|
|
1628
1722
|
*
|
|
@@ -1632,7 +1726,9 @@ export const ApiV1AuthApiFactory = function (configuration, basePath, axios) {
|
|
|
1632
1726
|
* @throws {RequiredError}
|
|
1633
1727
|
*/
|
|
1634
1728
|
authControllerVerifyEmail(requestParameters, options) {
|
|
1635
|
-
return localVarFp
|
|
1729
|
+
return localVarFp
|
|
1730
|
+
.authControllerVerifyEmail(requestParameters.verifyEmailDto, options)
|
|
1731
|
+
.then((request) => request(axios, basePath));
|
|
1636
1732
|
},
|
|
1637
1733
|
};
|
|
1638
1734
|
};
|
|
@@ -1651,7 +1747,9 @@ export class ApiV1AuthApi extends BaseAPI {
|
|
|
1651
1747
|
* @memberof ApiV1AuthApi
|
|
1652
1748
|
*/
|
|
1653
1749
|
authControllerDiscordAuth(options) {
|
|
1654
|
-
return ApiV1AuthApiFp(this.configuration)
|
|
1750
|
+
return ApiV1AuthApiFp(this.configuration)
|
|
1751
|
+
.authControllerDiscordAuth(options)
|
|
1752
|
+
.then((request) => request(this.axios, this.basePath));
|
|
1655
1753
|
}
|
|
1656
1754
|
/**
|
|
1657
1755
|
*
|
|
@@ -1661,7 +1759,9 @@ export class ApiV1AuthApi extends BaseAPI {
|
|
|
1661
1759
|
* @memberof ApiV1AuthApi
|
|
1662
1760
|
*/
|
|
1663
1761
|
authControllerDiscordCallback(options) {
|
|
1664
|
-
return ApiV1AuthApiFp(this.configuration)
|
|
1762
|
+
return ApiV1AuthApiFp(this.configuration)
|
|
1763
|
+
.authControllerDiscordCallback(options)
|
|
1764
|
+
.then((request) => request(this.axios, this.basePath));
|
|
1665
1765
|
}
|
|
1666
1766
|
/**
|
|
1667
1767
|
*
|
|
@@ -1671,7 +1771,9 @@ export class ApiV1AuthApi extends BaseAPI {
|
|
|
1671
1771
|
* @memberof ApiV1AuthApi
|
|
1672
1772
|
*/
|
|
1673
1773
|
authControllerGetProviders(options) {
|
|
1674
|
-
return ApiV1AuthApiFp(this.configuration)
|
|
1774
|
+
return ApiV1AuthApiFp(this.configuration)
|
|
1775
|
+
.authControllerGetProviders(options)
|
|
1776
|
+
.then((request) => request(this.axios, this.basePath));
|
|
1675
1777
|
}
|
|
1676
1778
|
/**
|
|
1677
1779
|
*
|
|
@@ -1681,7 +1783,9 @@ export class ApiV1AuthApi extends BaseAPI {
|
|
|
1681
1783
|
* @memberof ApiV1AuthApi
|
|
1682
1784
|
*/
|
|
1683
1785
|
authControllerGithubAuth(options) {
|
|
1684
|
-
return ApiV1AuthApiFp(this.configuration)
|
|
1786
|
+
return ApiV1AuthApiFp(this.configuration)
|
|
1787
|
+
.authControllerGithubAuth(options)
|
|
1788
|
+
.then((request) => request(this.axios, this.basePath));
|
|
1685
1789
|
}
|
|
1686
1790
|
/**
|
|
1687
1791
|
*
|
|
@@ -1691,7 +1795,9 @@ export class ApiV1AuthApi extends BaseAPI {
|
|
|
1691
1795
|
* @memberof ApiV1AuthApi
|
|
1692
1796
|
*/
|
|
1693
1797
|
authControllerGithubCallback(options) {
|
|
1694
|
-
return ApiV1AuthApiFp(this.configuration)
|
|
1798
|
+
return ApiV1AuthApiFp(this.configuration)
|
|
1799
|
+
.authControllerGithubCallback(options)
|
|
1800
|
+
.then((request) => request(this.axios, this.basePath));
|
|
1695
1801
|
}
|
|
1696
1802
|
/**
|
|
1697
1803
|
*
|
|
@@ -1701,7 +1807,9 @@ export class ApiV1AuthApi extends BaseAPI {
|
|
|
1701
1807
|
* @memberof ApiV1AuthApi
|
|
1702
1808
|
*/
|
|
1703
1809
|
authControllerGoogleAuth(options) {
|
|
1704
|
-
return ApiV1AuthApiFp(this.configuration)
|
|
1810
|
+
return ApiV1AuthApiFp(this.configuration)
|
|
1811
|
+
.authControllerGoogleAuth(options)
|
|
1812
|
+
.then((request) => request(this.axios, this.basePath));
|
|
1705
1813
|
}
|
|
1706
1814
|
/**
|
|
1707
1815
|
*
|
|
@@ -1711,7 +1819,9 @@ export class ApiV1AuthApi extends BaseAPI {
|
|
|
1711
1819
|
* @memberof ApiV1AuthApi
|
|
1712
1820
|
*/
|
|
1713
1821
|
authControllerGoogleCallback(options) {
|
|
1714
|
-
return ApiV1AuthApiFp(this.configuration)
|
|
1822
|
+
return ApiV1AuthApiFp(this.configuration)
|
|
1823
|
+
.authControllerGoogleCallback(options)
|
|
1824
|
+
.then((request) => request(this.axios, this.basePath));
|
|
1715
1825
|
}
|
|
1716
1826
|
/**
|
|
1717
1827
|
*
|
|
@@ -1721,7 +1831,9 @@ export class ApiV1AuthApi extends BaseAPI {
|
|
|
1721
1831
|
* @memberof ApiV1AuthApi
|
|
1722
1832
|
*/
|
|
1723
1833
|
authControllerHealthCheck(options) {
|
|
1724
|
-
return ApiV1AuthApiFp(this.configuration)
|
|
1834
|
+
return ApiV1AuthApiFp(this.configuration)
|
|
1835
|
+
.authControllerHealthCheck(options)
|
|
1836
|
+
.then((request) => request(this.axios, this.basePath));
|
|
1725
1837
|
}
|
|
1726
1838
|
/**
|
|
1727
1839
|
*
|
|
@@ -1732,7 +1844,9 @@ export class ApiV1AuthApi extends BaseAPI {
|
|
|
1732
1844
|
* @memberof ApiV1AuthApi
|
|
1733
1845
|
*/
|
|
1734
1846
|
authControllerLinkProvider(requestParameters, options) {
|
|
1735
|
-
return ApiV1AuthApiFp(this.configuration)
|
|
1847
|
+
return ApiV1AuthApiFp(this.configuration)
|
|
1848
|
+
.authControllerLinkProvider(requestParameters.body, options)
|
|
1849
|
+
.then((request) => request(this.axios, this.basePath));
|
|
1736
1850
|
}
|
|
1737
1851
|
/**
|
|
1738
1852
|
*
|
|
@@ -1743,7 +1857,9 @@ export class ApiV1AuthApi extends BaseAPI {
|
|
|
1743
1857
|
* @memberof ApiV1AuthApi
|
|
1744
1858
|
*/
|
|
1745
1859
|
authControllerLogin(requestParameters, options) {
|
|
1746
|
-
return ApiV1AuthApiFp(this.configuration)
|
|
1860
|
+
return ApiV1AuthApiFp(this.configuration)
|
|
1861
|
+
.authControllerLogin(requestParameters.body, options)
|
|
1862
|
+
.then((request) => request(this.axios, this.basePath));
|
|
1747
1863
|
}
|
|
1748
1864
|
/**
|
|
1749
1865
|
*
|
|
@@ -1753,7 +1869,9 @@ export class ApiV1AuthApi extends BaseAPI {
|
|
|
1753
1869
|
* @memberof ApiV1AuthApi
|
|
1754
1870
|
*/
|
|
1755
1871
|
authControllerLogout(options) {
|
|
1756
|
-
return ApiV1AuthApiFp(this.configuration)
|
|
1872
|
+
return ApiV1AuthApiFp(this.configuration)
|
|
1873
|
+
.authControllerLogout(options)
|
|
1874
|
+
.then((request) => request(this.axios, this.basePath));
|
|
1757
1875
|
}
|
|
1758
1876
|
/**
|
|
1759
1877
|
*
|
|
@@ -1763,7 +1881,9 @@ export class ApiV1AuthApi extends BaseAPI {
|
|
|
1763
1881
|
* @memberof ApiV1AuthApi
|
|
1764
1882
|
*/
|
|
1765
1883
|
authControllerRefresh(options) {
|
|
1766
|
-
return ApiV1AuthApiFp(this.configuration)
|
|
1884
|
+
return ApiV1AuthApiFp(this.configuration)
|
|
1885
|
+
.authControllerRefresh(options)
|
|
1886
|
+
.then((request) => request(this.axios, this.basePath));
|
|
1767
1887
|
}
|
|
1768
1888
|
/**
|
|
1769
1889
|
*
|
|
@@ -1774,7 +1894,9 @@ export class ApiV1AuthApi extends BaseAPI {
|
|
|
1774
1894
|
* @memberof ApiV1AuthApi
|
|
1775
1895
|
*/
|
|
1776
1896
|
authControllerRegister(requestParameters, options) {
|
|
1777
|
-
return ApiV1AuthApiFp(this.configuration)
|
|
1897
|
+
return ApiV1AuthApiFp(this.configuration)
|
|
1898
|
+
.authControllerRegister(requestParameters.body, options)
|
|
1899
|
+
.then((request) => request(this.axios, this.basePath));
|
|
1778
1900
|
}
|
|
1779
1901
|
/**
|
|
1780
1902
|
*
|
|
@@ -1785,7 +1907,9 @@ export class ApiV1AuthApi extends BaseAPI {
|
|
|
1785
1907
|
* @memberof ApiV1AuthApi
|
|
1786
1908
|
*/
|
|
1787
1909
|
authControllerRequestPasswordReset(requestParameters, options) {
|
|
1788
|
-
return ApiV1AuthApiFp(this.configuration)
|
|
1910
|
+
return ApiV1AuthApiFp(this.configuration)
|
|
1911
|
+
.authControllerRequestPasswordReset(requestParameters.requestPasswordResetDto, options)
|
|
1912
|
+
.then((request) => request(this.axios, this.basePath));
|
|
1789
1913
|
}
|
|
1790
1914
|
/**
|
|
1791
1915
|
*
|
|
@@ -1796,7 +1920,9 @@ export class ApiV1AuthApi extends BaseAPI {
|
|
|
1796
1920
|
* @memberof ApiV1AuthApi
|
|
1797
1921
|
*/
|
|
1798
1922
|
authControllerResendVerification(requestParameters, options) {
|
|
1799
|
-
return ApiV1AuthApiFp(this.configuration)
|
|
1923
|
+
return ApiV1AuthApiFp(this.configuration)
|
|
1924
|
+
.authControllerResendVerification(requestParameters.resendVerificationDto, options)
|
|
1925
|
+
.then((request) => request(this.axios, this.basePath));
|
|
1800
1926
|
}
|
|
1801
1927
|
/**
|
|
1802
1928
|
*
|
|
@@ -1807,7 +1933,9 @@ export class ApiV1AuthApi extends BaseAPI {
|
|
|
1807
1933
|
* @memberof ApiV1AuthApi
|
|
1808
1934
|
*/
|
|
1809
1935
|
authControllerResetPassword(requestParameters, options) {
|
|
1810
|
-
return ApiV1AuthApiFp(this.configuration)
|
|
1936
|
+
return ApiV1AuthApiFp(this.configuration)
|
|
1937
|
+
.authControllerResetPassword(requestParameters.resetPasswordDto, options)
|
|
1938
|
+
.then((request) => request(this.axios, this.basePath));
|
|
1811
1939
|
}
|
|
1812
1940
|
/**
|
|
1813
1941
|
*
|
|
@@ -1818,7 +1946,9 @@ export class ApiV1AuthApi extends BaseAPI {
|
|
|
1818
1946
|
* @memberof ApiV1AuthApi
|
|
1819
1947
|
*/
|
|
1820
1948
|
authControllerVerifyEmail(requestParameters, options) {
|
|
1821
|
-
return ApiV1AuthApiFp(this.configuration)
|
|
1949
|
+
return ApiV1AuthApiFp(this.configuration)
|
|
1950
|
+
.authControllerVerifyEmail(requestParameters.verifyEmailDto, options)
|
|
1951
|
+
.then((request) => request(this.axios, this.basePath));
|
|
1822
1952
|
}
|
|
1823
1953
|
}
|
|
1824
1954
|
/**
|
|
@@ -1828,46 +1958,16 @@ export class ApiV1AuthApi extends BaseAPI {
|
|
|
1828
1958
|
export const ApiV1SsoApiAxiosParamCreator = function (configuration) {
|
|
1829
1959
|
return {
|
|
1830
1960
|
/**
|
|
1831
|
-
* Generates a
|
|
1832
|
-
* @summary Generate
|
|
1833
|
-
* @param {
|
|
1834
|
-
* @param {*} [options] Override http request option.
|
|
1835
|
-
* @throws {RequiredError}
|
|
1836
|
-
*/
|
|
1837
|
-
ssoControllerGenerateLocalCode: (body_1, ...args_1) => __awaiter(this, [body_1, ...args_1], void 0, function* (body, options = {}) {
|
|
1838
|
-
// verify required parameter 'body' is not null or undefined
|
|
1839
|
-
assertParamExists('ssoControllerGenerateLocalCode', 'body', body);
|
|
1840
|
-
const localVarPath = `/api/v1/sso/generate-code`;
|
|
1841
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1842
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1843
|
-
let baseOptions;
|
|
1844
|
-
if (configuration) {
|
|
1845
|
-
baseOptions = configuration.baseOptions;
|
|
1846
|
-
}
|
|
1847
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1848
|
-
const localVarHeaderParameter = {};
|
|
1849
|
-
const localVarQueryParameter = {};
|
|
1850
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1851
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1852
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1853
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1854
|
-
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
|
|
1855
|
-
return {
|
|
1856
|
-
url: toPathString(localVarUrlObj),
|
|
1857
|
-
options: localVarRequestOptions,
|
|
1858
|
-
};
|
|
1859
|
-
}),
|
|
1860
|
-
/**
|
|
1861
|
-
* Validates an authorization code and returns the associated user information. The code is consumed upon successful validation and cannot be reused.
|
|
1862
|
-
* @summary Validate and consume an authorization code
|
|
1863
|
-
* @param {object} body
|
|
1961
|
+
* Generates a short-lived, Hub-signed ID token (RS256) that can be used to authenticate the current user against a worker instance. The worker verifies this token using Hub\'s JWKS endpoint.
|
|
1962
|
+
* @summary Generate a signed ID token for worker authentication
|
|
1963
|
+
* @param {SsoTokenRequestDto} ssoTokenRequestDto
|
|
1864
1964
|
* @param {*} [options] Override http request option.
|
|
1865
1965
|
* @throws {RequiredError}
|
|
1866
1966
|
*/
|
|
1867
|
-
|
|
1868
|
-
// verify required parameter '
|
|
1869
|
-
assertParamExists('
|
|
1870
|
-
const localVarPath = `/api/v1/sso/
|
|
1967
|
+
ssoControllerGenerateToken: (ssoTokenRequestDto_1, ...args_1) => __awaiter(this, [ssoTokenRequestDto_1, ...args_1], void 0, function* (ssoTokenRequestDto, options = {}) {
|
|
1968
|
+
// verify required parameter 'ssoTokenRequestDto' is not null or undefined
|
|
1969
|
+
assertParamExists('ssoControllerGenerateToken', 'ssoTokenRequestDto', ssoTokenRequestDto);
|
|
1970
|
+
const localVarPath = `/api/v1/sso/token`;
|
|
1871
1971
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1872
1972
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1873
1973
|
let baseOptions;
|
|
@@ -1881,7 +1981,7 @@ export const ApiV1SsoApiAxiosParamCreator = function (configuration) {
|
|
|
1881
1981
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1882
1982
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1883
1983
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1884
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
1984
|
+
localVarRequestOptions.data = serializeDataIfNeeded(ssoTokenRequestDto, localVarRequestOptions, configuration);
|
|
1885
1985
|
return {
|
|
1886
1986
|
url: toPathString(localVarUrlObj),
|
|
1887
1987
|
options: localVarRequestOptions,
|
|
@@ -1897,34 +1997,18 @@ export const ApiV1SsoApiFp = function (configuration) {
|
|
|
1897
1997
|
const localVarAxiosParamCreator = ApiV1SsoApiAxiosParamCreator(configuration);
|
|
1898
1998
|
return {
|
|
1899
1999
|
/**
|
|
1900
|
-
* Generates a
|
|
1901
|
-
* @summary Generate
|
|
1902
|
-
* @param {
|
|
1903
|
-
* @param {*} [options] Override http request option.
|
|
1904
|
-
* @throws {RequiredError}
|
|
1905
|
-
*/
|
|
1906
|
-
ssoControllerGenerateLocalCode(body, options) {
|
|
1907
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1908
|
-
var _a, _b, _c;
|
|
1909
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.ssoControllerGenerateLocalCode(body, options);
|
|
1910
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1911
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ApiV1SsoApi.ssoControllerGenerateLocalCode']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1912
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1913
|
-
});
|
|
1914
|
-
},
|
|
1915
|
-
/**
|
|
1916
|
-
* Validates an authorization code and returns the associated user information. The code is consumed upon successful validation and cannot be reused.
|
|
1917
|
-
* @summary Validate and consume an authorization code
|
|
1918
|
-
* @param {object} body
|
|
2000
|
+
* Generates a short-lived, Hub-signed ID token (RS256) that can be used to authenticate the current user against a worker instance. The worker verifies this token using Hub\'s JWKS endpoint.
|
|
2001
|
+
* @summary Generate a signed ID token for worker authentication
|
|
2002
|
+
* @param {SsoTokenRequestDto} ssoTokenRequestDto
|
|
1919
2003
|
* @param {*} [options] Override http request option.
|
|
1920
2004
|
* @throws {RequiredError}
|
|
1921
2005
|
*/
|
|
1922
|
-
|
|
2006
|
+
ssoControllerGenerateToken(ssoTokenRequestDto, options) {
|
|
1923
2007
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1924
2008
|
var _a, _b, _c;
|
|
1925
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
2009
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.ssoControllerGenerateToken(ssoTokenRequestDto, options);
|
|
1926
2010
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1927
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ApiV1SsoApi.
|
|
2011
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ApiV1SsoApi.ssoControllerGenerateToken']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1928
2012
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1929
2013
|
});
|
|
1930
2014
|
},
|
|
@@ -1938,24 +2022,16 @@ export const ApiV1SsoApiFactory = function (configuration, basePath, axios) {
|
|
|
1938
2022
|
const localVarFp = ApiV1SsoApiFp(configuration);
|
|
1939
2023
|
return {
|
|
1940
2024
|
/**
|
|
1941
|
-
* Generates a
|
|
1942
|
-
* @summary Generate
|
|
1943
|
-
* @param {
|
|
1944
|
-
* @param {*} [options] Override http request option.
|
|
1945
|
-
* @throws {RequiredError}
|
|
1946
|
-
*/
|
|
1947
|
-
ssoControllerGenerateLocalCode(requestParameters, options) {
|
|
1948
|
-
return localVarFp.ssoControllerGenerateLocalCode(requestParameters.body, options).then((request) => request(axios, basePath));
|
|
1949
|
-
},
|
|
1950
|
-
/**
|
|
1951
|
-
* Validates an authorization code and returns the associated user information. The code is consumed upon successful validation and cannot be reused.
|
|
1952
|
-
* @summary Validate and consume an authorization code
|
|
1953
|
-
* @param {ApiV1SsoApiSsoControllerValidateCodeRequest} requestParameters Request parameters.
|
|
2025
|
+
* Generates a short-lived, Hub-signed ID token (RS256) that can be used to authenticate the current user against a worker instance. The worker verifies this token using Hub\'s JWKS endpoint.
|
|
2026
|
+
* @summary Generate a signed ID token for worker authentication
|
|
2027
|
+
* @param {ApiV1SsoApiSsoControllerGenerateTokenRequest} requestParameters Request parameters.
|
|
1954
2028
|
* @param {*} [options] Override http request option.
|
|
1955
2029
|
* @throws {RequiredError}
|
|
1956
2030
|
*/
|
|
1957
|
-
|
|
1958
|
-
return localVarFp
|
|
2031
|
+
ssoControllerGenerateToken(requestParameters, options) {
|
|
2032
|
+
return localVarFp
|
|
2033
|
+
.ssoControllerGenerateToken(requestParameters.ssoTokenRequestDto, options)
|
|
2034
|
+
.then((request) => request(axios, basePath));
|
|
1959
2035
|
},
|
|
1960
2036
|
};
|
|
1961
2037
|
};
|
|
@@ -1967,26 +2043,17 @@ export const ApiV1SsoApiFactory = function (configuration, basePath, axios) {
|
|
|
1967
2043
|
*/
|
|
1968
2044
|
export class ApiV1SsoApi extends BaseAPI {
|
|
1969
2045
|
/**
|
|
1970
|
-
* Generates a
|
|
1971
|
-
* @summary Generate
|
|
1972
|
-
* @param {
|
|
1973
|
-
* @param {*} [options] Override http request option.
|
|
1974
|
-
* @throws {RequiredError}
|
|
1975
|
-
* @memberof ApiV1SsoApi
|
|
1976
|
-
*/
|
|
1977
|
-
ssoControllerGenerateLocalCode(requestParameters, options) {
|
|
1978
|
-
return ApiV1SsoApiFp(this.configuration).ssoControllerGenerateLocalCode(requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
1979
|
-
}
|
|
1980
|
-
/**
|
|
1981
|
-
* Validates an authorization code and returns the associated user information. The code is consumed upon successful validation and cannot be reused.
|
|
1982
|
-
* @summary Validate and consume an authorization code
|
|
1983
|
-
* @param {ApiV1SsoApiSsoControllerValidateCodeRequest} requestParameters Request parameters.
|
|
2046
|
+
* Generates a short-lived, Hub-signed ID token (RS256) that can be used to authenticate the current user against a worker instance. The worker verifies this token using Hub\'s JWKS endpoint.
|
|
2047
|
+
* @summary Generate a signed ID token for worker authentication
|
|
2048
|
+
* @param {ApiV1SsoApiSsoControllerGenerateTokenRequest} requestParameters Request parameters.
|
|
1984
2049
|
* @param {*} [options] Override http request option.
|
|
1985
2050
|
* @throws {RequiredError}
|
|
1986
2051
|
* @memberof ApiV1SsoApi
|
|
1987
2052
|
*/
|
|
1988
|
-
|
|
1989
|
-
return ApiV1SsoApiFp(this.configuration)
|
|
2053
|
+
ssoControllerGenerateToken(requestParameters, options) {
|
|
2054
|
+
return ApiV1SsoApiFp(this.configuration)
|
|
2055
|
+
.ssoControllerGenerateToken(requestParameters.ssoTokenRequestDto, options)
|
|
2056
|
+
.then((request) => request(this.axios, this.basePath));
|
|
1990
2057
|
}
|
|
1991
2058
|
}
|
|
1992
2059
|
/**
|
|
@@ -2128,7 +2195,9 @@ export class ApiV1UserApi extends BaseAPI {
|
|
|
2128
2195
|
* @memberof ApiV1UserApi
|
|
2129
2196
|
*/
|
|
2130
2197
|
userControllerDeleteAccount(options) {
|
|
2131
|
-
return ApiV1UserApiFp(this.configuration)
|
|
2198
|
+
return ApiV1UserApiFp(this.configuration)
|
|
2199
|
+
.userControllerDeleteAccount(options)
|
|
2200
|
+
.then((request) => request(this.axios, this.basePath));
|
|
2132
2201
|
}
|
|
2133
2202
|
/**
|
|
2134
2203
|
*
|
|
@@ -2138,7 +2207,9 @@ export class ApiV1UserApi extends BaseAPI {
|
|
|
2138
2207
|
* @memberof ApiV1UserApi
|
|
2139
2208
|
*/
|
|
2140
2209
|
userControllerInfo(options) {
|
|
2141
|
-
return ApiV1UserApiFp(this.configuration)
|
|
2210
|
+
return ApiV1UserApiFp(this.configuration)
|
|
2211
|
+
.userControllerInfo(options)
|
|
2212
|
+
.then((request) => request(this.axios, this.basePath));
|
|
2142
2213
|
}
|
|
2143
2214
|
}
|
|
2144
2215
|
/**
|
|
@@ -2265,7 +2336,9 @@ export const ApiV1UserSettingsApiFactory = function (configuration, basePath, ax
|
|
|
2265
2336
|
* @throws {RequiredError}
|
|
2266
2337
|
*/
|
|
2267
2338
|
userSettingsControllerUpdateSettings(requestParameters, options) {
|
|
2268
|
-
return localVarFp
|
|
2339
|
+
return localVarFp
|
|
2340
|
+
.userSettingsControllerUpdateSettings(requestParameters.userSettingsUpdateDto, options)
|
|
2341
|
+
.then((request) => request(axios, basePath));
|
|
2269
2342
|
},
|
|
2270
2343
|
};
|
|
2271
2344
|
};
|
|
@@ -2283,7 +2356,9 @@ export class ApiV1UserSettingsApi extends BaseAPI {
|
|
|
2283
2356
|
* @memberof ApiV1UserSettingsApi
|
|
2284
2357
|
*/
|
|
2285
2358
|
userSettingsControllerGetSettings(options) {
|
|
2286
|
-
return ApiV1UserSettingsApiFp(this.configuration)
|
|
2359
|
+
return ApiV1UserSettingsApiFp(this.configuration)
|
|
2360
|
+
.userSettingsControllerGetSettings(options)
|
|
2361
|
+
.then((request) => request(this.axios, this.basePath));
|
|
2287
2362
|
}
|
|
2288
2363
|
/**
|
|
2289
2364
|
*
|
|
@@ -2294,7 +2369,9 @@ export class ApiV1UserSettingsApi extends BaseAPI {
|
|
|
2294
2369
|
* @memberof ApiV1UserSettingsApi
|
|
2295
2370
|
*/
|
|
2296
2371
|
userSettingsControllerUpdateSettings(requestParameters, options) {
|
|
2297
|
-
return ApiV1UserSettingsApiFp(this.configuration)
|
|
2372
|
+
return ApiV1UserSettingsApiFp(this.configuration)
|
|
2373
|
+
.userSettingsControllerUpdateSettings(requestParameters.userSettingsUpdateDto, options)
|
|
2374
|
+
.then((request) => request(this.axios, this.basePath));
|
|
2298
2375
|
}
|
|
2299
2376
|
}
|
|
2300
2377
|
/**
|
|
@@ -2373,8 +2450,7 @@ export const ApiV1WorkersApiAxiosParamCreator = function (configuration) {
|
|
|
2373
2450
|
workerControllerDeleteWorker: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
2374
2451
|
// verify required parameter 'id' is not null or undefined
|
|
2375
2452
|
assertParamExists('workerControllerDeleteWorker', 'id', id);
|
|
2376
|
-
const localVarPath = `/api/v1/workers/id/{id}`
|
|
2377
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
2453
|
+
const localVarPath = `/api/v1/workers/id/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
2378
2454
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2379
2455
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2380
2456
|
let baseOptions;
|
|
@@ -2392,35 +2468,6 @@ export const ApiV1WorkersApiAxiosParamCreator = function (configuration) {
|
|
|
2392
2468
|
options: localVarRequestOptions,
|
|
2393
2469
|
};
|
|
2394
2470
|
}),
|
|
2395
|
-
/**
|
|
2396
|
-
*
|
|
2397
|
-
* @summary Create a worker secret
|
|
2398
|
-
* @param {string} id The ID of the worker
|
|
2399
|
-
* @param {*} [options] Override http request option.
|
|
2400
|
-
* @throws {RequiredError}
|
|
2401
|
-
*/
|
|
2402
|
-
workerControllerGenerateWorkerSecret: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
2403
|
-
// verify required parameter 'id' is not null or undefined
|
|
2404
|
-
assertParamExists('workerControllerGenerateWorkerSecret', 'id', id);
|
|
2405
|
-
const localVarPath = `/api/v1/workers/{id}/generate-secret`
|
|
2406
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
2407
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2408
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2409
|
-
let baseOptions;
|
|
2410
|
-
if (configuration) {
|
|
2411
|
-
baseOptions = configuration.baseOptions;
|
|
2412
|
-
}
|
|
2413
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
2414
|
-
const localVarHeaderParameter = {};
|
|
2415
|
-
const localVarQueryParameter = {};
|
|
2416
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2417
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2418
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2419
|
-
return {
|
|
2420
|
-
url: toPathString(localVarUrlObj),
|
|
2421
|
-
options: localVarRequestOptions,
|
|
2422
|
-
};
|
|
2423
|
-
}),
|
|
2424
2471
|
/**
|
|
2425
2472
|
*
|
|
2426
2473
|
* @summary Get a worker by ID
|
|
@@ -2431,8 +2478,7 @@ export const ApiV1WorkersApiAxiosParamCreator = function (configuration) {
|
|
|
2431
2478
|
workerControllerGetWorkerById: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
2432
2479
|
// verify required parameter 'id' is not null or undefined
|
|
2433
2480
|
assertParamExists('workerControllerGetWorkerById', 'id', id);
|
|
2434
|
-
const localVarPath = `/api/v1/workers/{id}`
|
|
2435
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
2481
|
+
const localVarPath = `/api/v1/workers/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
2436
2482
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2437
2483
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2438
2484
|
let baseOptions;
|
|
@@ -2512,8 +2558,7 @@ export const ApiV1WorkersApiAxiosParamCreator = function (configuration) {
|
|
|
2512
2558
|
assertParamExists('workerControllerUpdateWorker', 'id', id);
|
|
2513
2559
|
// verify required parameter 'workerUpdateDto' is not null or undefined
|
|
2514
2560
|
assertParamExists('workerControllerUpdateWorker', 'workerUpdateDto', workerUpdateDto);
|
|
2515
|
-
const localVarPath = `/api/v1/workers/{id}`
|
|
2516
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
2561
|
+
const localVarPath = `/api/v1/workers/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
2517
2562
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2518
2563
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2519
2564
|
let baseOptions;
|
|
@@ -2590,22 +2635,6 @@ export const ApiV1WorkersApiFp = function (configuration) {
|
|
|
2590
2635
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2591
2636
|
});
|
|
2592
2637
|
},
|
|
2593
|
-
/**
|
|
2594
|
-
*
|
|
2595
|
-
* @summary Create a worker secret
|
|
2596
|
-
* @param {string} id The ID of the worker
|
|
2597
|
-
* @param {*} [options] Override http request option.
|
|
2598
|
-
* @throws {RequiredError}
|
|
2599
|
-
*/
|
|
2600
|
-
workerControllerGenerateWorkerSecret(id, options) {
|
|
2601
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
2602
|
-
var _a, _b, _c;
|
|
2603
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.workerControllerGenerateWorkerSecret(id, options);
|
|
2604
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2605
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ApiV1WorkersApi.workerControllerGenerateWorkerSecret']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2606
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2607
|
-
});
|
|
2608
|
-
},
|
|
2609
2638
|
/**
|
|
2610
2639
|
*
|
|
2611
2640
|
* @summary Get a worker by ID
|
|
@@ -2677,7 +2706,9 @@ export const ApiV1WorkersApiFactory = function (configuration, basePath, axios)
|
|
|
2677
2706
|
* @throws {RequiredError}
|
|
2678
2707
|
*/
|
|
2679
2708
|
workerControllerBatchDeleteWorkers(requestParameters, options) {
|
|
2680
|
-
return localVarFp
|
|
2709
|
+
return localVarFp
|
|
2710
|
+
.workerControllerBatchDeleteWorkers(requestParameters.workerControllerBatchDeleteWorkersRequest, options)
|
|
2711
|
+
.then((request) => request(axios, basePath));
|
|
2681
2712
|
},
|
|
2682
2713
|
/**
|
|
2683
2714
|
*
|
|
@@ -2687,7 +2718,9 @@ export const ApiV1WorkersApiFactory = function (configuration, basePath, axios)
|
|
|
2687
2718
|
* @throws {RequiredError}
|
|
2688
2719
|
*/
|
|
2689
2720
|
workerControllerCreateWorker(requestParameters, options) {
|
|
2690
|
-
return localVarFp
|
|
2721
|
+
return localVarFp
|
|
2722
|
+
.workerControllerCreateWorker(requestParameters.workerCreateDto, options)
|
|
2723
|
+
.then((request) => request(axios, basePath));
|
|
2691
2724
|
},
|
|
2692
2725
|
/**
|
|
2693
2726
|
*
|
|
@@ -2697,17 +2730,9 @@ export const ApiV1WorkersApiFactory = function (configuration, basePath, axios)
|
|
|
2697
2730
|
* @throws {RequiredError}
|
|
2698
2731
|
*/
|
|
2699
2732
|
workerControllerDeleteWorker(requestParameters, options) {
|
|
2700
|
-
return localVarFp
|
|
2701
|
-
|
|
2702
|
-
|
|
2703
|
-
*
|
|
2704
|
-
* @summary Create a worker secret
|
|
2705
|
-
* @param {ApiV1WorkersApiWorkerControllerGenerateWorkerSecretRequest} requestParameters Request parameters.
|
|
2706
|
-
* @param {*} [options] Override http request option.
|
|
2707
|
-
* @throws {RequiredError}
|
|
2708
|
-
*/
|
|
2709
|
-
workerControllerGenerateWorkerSecret(requestParameters, options) {
|
|
2710
|
-
return localVarFp.workerControllerGenerateWorkerSecret(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
2733
|
+
return localVarFp
|
|
2734
|
+
.workerControllerDeleteWorker(requestParameters.id, options)
|
|
2735
|
+
.then((request) => request(axios, basePath));
|
|
2711
2736
|
},
|
|
2712
2737
|
/**
|
|
2713
2738
|
*
|
|
@@ -2717,7 +2742,9 @@ export const ApiV1WorkersApiFactory = function (configuration, basePath, axios)
|
|
|
2717
2742
|
* @throws {RequiredError}
|
|
2718
2743
|
*/
|
|
2719
2744
|
workerControllerGetWorkerById(requestParameters, options) {
|
|
2720
|
-
return localVarFp
|
|
2745
|
+
return localVarFp
|
|
2746
|
+
.workerControllerGetWorkerById(requestParameters.id, options)
|
|
2747
|
+
.then((request) => request(axios, basePath));
|
|
2721
2748
|
},
|
|
2722
2749
|
/**
|
|
2723
2750
|
*
|
|
@@ -2727,7 +2754,9 @@ export const ApiV1WorkersApiFactory = function (configuration, basePath, axios)
|
|
|
2727
2754
|
* @throws {RequiredError}
|
|
2728
2755
|
*/
|
|
2729
2756
|
workerControllerGetWorkers(requestParameters = {}, options) {
|
|
2730
|
-
return localVarFp
|
|
2757
|
+
return localVarFp
|
|
2758
|
+
.workerControllerGetWorkers(requestParameters.page, requestParameters.limit, requestParameters.filter, requestParameters.sortBy, requestParameters.search, requestParameters.searchColumns, options)
|
|
2759
|
+
.then((request) => request(axios, basePath));
|
|
2731
2760
|
},
|
|
2732
2761
|
/**
|
|
2733
2762
|
*
|
|
@@ -2737,7 +2766,9 @@ export const ApiV1WorkersApiFactory = function (configuration, basePath, axios)
|
|
|
2737
2766
|
* @throws {RequiredError}
|
|
2738
2767
|
*/
|
|
2739
2768
|
workerControllerUpdateWorker(requestParameters, options) {
|
|
2740
|
-
return localVarFp
|
|
2769
|
+
return localVarFp
|
|
2770
|
+
.workerControllerUpdateWorker(requestParameters.id, requestParameters.workerUpdateDto, options)
|
|
2771
|
+
.then((request) => request(axios, basePath));
|
|
2741
2772
|
},
|
|
2742
2773
|
};
|
|
2743
2774
|
};
|
|
@@ -2757,7 +2788,9 @@ export class ApiV1WorkersApi extends BaseAPI {
|
|
|
2757
2788
|
* @memberof ApiV1WorkersApi
|
|
2758
2789
|
*/
|
|
2759
2790
|
workerControllerBatchDeleteWorkers(requestParameters, options) {
|
|
2760
|
-
return ApiV1WorkersApiFp(this.configuration)
|
|
2791
|
+
return ApiV1WorkersApiFp(this.configuration)
|
|
2792
|
+
.workerControllerBatchDeleteWorkers(requestParameters.workerControllerBatchDeleteWorkersRequest, options)
|
|
2793
|
+
.then((request) => request(this.axios, this.basePath));
|
|
2761
2794
|
}
|
|
2762
2795
|
/**
|
|
2763
2796
|
*
|
|
@@ -2768,7 +2801,9 @@ export class ApiV1WorkersApi extends BaseAPI {
|
|
|
2768
2801
|
* @memberof ApiV1WorkersApi
|
|
2769
2802
|
*/
|
|
2770
2803
|
workerControllerCreateWorker(requestParameters, options) {
|
|
2771
|
-
return ApiV1WorkersApiFp(this.configuration)
|
|
2804
|
+
return ApiV1WorkersApiFp(this.configuration)
|
|
2805
|
+
.workerControllerCreateWorker(requestParameters.workerCreateDto, options)
|
|
2806
|
+
.then((request) => request(this.axios, this.basePath));
|
|
2772
2807
|
}
|
|
2773
2808
|
/**
|
|
2774
2809
|
*
|
|
@@ -2779,18 +2814,9 @@ export class ApiV1WorkersApi extends BaseAPI {
|
|
|
2779
2814
|
* @memberof ApiV1WorkersApi
|
|
2780
2815
|
*/
|
|
2781
2816
|
workerControllerDeleteWorker(requestParameters, options) {
|
|
2782
|
-
return ApiV1WorkersApiFp(this.configuration)
|
|
2783
|
-
|
|
2784
|
-
|
|
2785
|
-
*
|
|
2786
|
-
* @summary Create a worker secret
|
|
2787
|
-
* @param {ApiV1WorkersApiWorkerControllerGenerateWorkerSecretRequest} requestParameters Request parameters.
|
|
2788
|
-
* @param {*} [options] Override http request option.
|
|
2789
|
-
* @throws {RequiredError}
|
|
2790
|
-
* @memberof ApiV1WorkersApi
|
|
2791
|
-
*/
|
|
2792
|
-
workerControllerGenerateWorkerSecret(requestParameters, options) {
|
|
2793
|
-
return ApiV1WorkersApiFp(this.configuration).workerControllerGenerateWorkerSecret(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
2817
|
+
return ApiV1WorkersApiFp(this.configuration)
|
|
2818
|
+
.workerControllerDeleteWorker(requestParameters.id, options)
|
|
2819
|
+
.then((request) => request(this.axios, this.basePath));
|
|
2794
2820
|
}
|
|
2795
2821
|
/**
|
|
2796
2822
|
*
|
|
@@ -2801,7 +2827,9 @@ export class ApiV1WorkersApi extends BaseAPI {
|
|
|
2801
2827
|
* @memberof ApiV1WorkersApi
|
|
2802
2828
|
*/
|
|
2803
2829
|
workerControllerGetWorkerById(requestParameters, options) {
|
|
2804
|
-
return ApiV1WorkersApiFp(this.configuration)
|
|
2830
|
+
return ApiV1WorkersApiFp(this.configuration)
|
|
2831
|
+
.workerControllerGetWorkerById(requestParameters.id, options)
|
|
2832
|
+
.then((request) => request(this.axios, this.basePath));
|
|
2805
2833
|
}
|
|
2806
2834
|
/**
|
|
2807
2835
|
*
|
|
@@ -2812,7 +2840,9 @@ export class ApiV1WorkersApi extends BaseAPI {
|
|
|
2812
2840
|
* @memberof ApiV1WorkersApi
|
|
2813
2841
|
*/
|
|
2814
2842
|
workerControllerGetWorkers(requestParameters = {}, options) {
|
|
2815
|
-
return ApiV1WorkersApiFp(this.configuration)
|
|
2843
|
+
return ApiV1WorkersApiFp(this.configuration)
|
|
2844
|
+
.workerControllerGetWorkers(requestParameters.page, requestParameters.limit, requestParameters.filter, requestParameters.sortBy, requestParameters.search, requestParameters.searchColumns, options)
|
|
2845
|
+
.then((request) => request(this.axios, this.basePath));
|
|
2816
2846
|
}
|
|
2817
2847
|
/**
|
|
2818
2848
|
*
|
|
@@ -2823,6 +2853,1113 @@ export class ApiV1WorkersApi extends BaseAPI {
|
|
|
2823
2853
|
* @memberof ApiV1WorkersApi
|
|
2824
2854
|
*/
|
|
2825
2855
|
workerControllerUpdateWorker(requestParameters, options) {
|
|
2826
|
-
return ApiV1WorkersApiFp(this.configuration)
|
|
2856
|
+
return ApiV1WorkersApiFp(this.configuration)
|
|
2857
|
+
.workerControllerUpdateWorker(requestParameters.id, requestParameters.workerUpdateDto, options)
|
|
2858
|
+
.then((request) => request(this.axios, this.basePath));
|
|
2859
|
+
}
|
|
2860
|
+
}
|
|
2861
|
+
/**
|
|
2862
|
+
* RegistryApi - axios parameter creator
|
|
2863
|
+
* @export
|
|
2864
|
+
*/
|
|
2865
|
+
export const RegistryApiAxiosParamCreator = function (configuration) {
|
|
2866
|
+
return {
|
|
2867
|
+
/**
|
|
2868
|
+
* Review and confirm a draft entry, optionally modifying the extracted data. Moves the entry to pending status for review.
|
|
2869
|
+
* @summary Confirm a draft entry
|
|
2870
|
+
* @param {string} id
|
|
2871
|
+
* @param {ConfirmDraftDto} confirmDraftDto
|
|
2872
|
+
* @param {*} [options] Override http request option.
|
|
2873
|
+
* @throws {RequiredError}
|
|
2874
|
+
*/
|
|
2875
|
+
registryControllerConfirmDraft: (id_1, confirmDraftDto_1, ...args_1) => __awaiter(this, [id_1, confirmDraftDto_1, ...args_1], void 0, function* (id, confirmDraftDto, options = {}) {
|
|
2876
|
+
// verify required parameter 'id' is not null or undefined
|
|
2877
|
+
assertParamExists('registryControllerConfirmDraft', 'id', id);
|
|
2878
|
+
// verify required parameter 'confirmDraftDto' is not null or undefined
|
|
2879
|
+
assertParamExists('registryControllerConfirmDraft', 'confirmDraftDto', confirmDraftDto);
|
|
2880
|
+
const localVarPath = `/api/v1/registry/drafts/{id}/confirm`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
2881
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2882
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2883
|
+
let baseOptions;
|
|
2884
|
+
if (configuration) {
|
|
2885
|
+
baseOptions = configuration.baseOptions;
|
|
2886
|
+
}
|
|
2887
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
2888
|
+
const localVarHeaderParameter = {};
|
|
2889
|
+
const localVarQueryParameter = {};
|
|
2890
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2891
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2892
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2893
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2894
|
+
localVarRequestOptions.data = serializeDataIfNeeded(confirmDraftDto, localVarRequestOptions, configuration);
|
|
2895
|
+
return {
|
|
2896
|
+
url: toPathString(localVarUrlObj),
|
|
2897
|
+
options: localVarRequestOptions,
|
|
2898
|
+
};
|
|
2899
|
+
}),
|
|
2900
|
+
/**
|
|
2901
|
+
*
|
|
2902
|
+
* @summary List active entries
|
|
2903
|
+
* @param {string} [category]
|
|
2904
|
+
* @param {Array<string>} [tags]
|
|
2905
|
+
* @param {string} [search]
|
|
2906
|
+
* @param {number} [page]
|
|
2907
|
+
* @param {number} [limit]
|
|
2908
|
+
* @param {*} [options] Override http request option.
|
|
2909
|
+
* @throws {RequiredError}
|
|
2910
|
+
*/
|
|
2911
|
+
registryControllerFindAll: (category_1, tags_1, search_1, page_1, limit_1, ...args_1) => __awaiter(this, [category_1, tags_1, search_1, page_1, limit_1, ...args_1], void 0, function* (category, tags, search, page, limit, options = {}) {
|
|
2912
|
+
const localVarPath = `/api/v1/registry/entries`;
|
|
2913
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2914
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2915
|
+
let baseOptions;
|
|
2916
|
+
if (configuration) {
|
|
2917
|
+
baseOptions = configuration.baseOptions;
|
|
2918
|
+
}
|
|
2919
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2920
|
+
const localVarHeaderParameter = {};
|
|
2921
|
+
const localVarQueryParameter = {};
|
|
2922
|
+
if (category !== undefined) {
|
|
2923
|
+
localVarQueryParameter['category'] = category;
|
|
2924
|
+
}
|
|
2925
|
+
if (tags) {
|
|
2926
|
+
localVarQueryParameter['tags'] = tags;
|
|
2927
|
+
}
|
|
2928
|
+
if (search !== undefined) {
|
|
2929
|
+
localVarQueryParameter['search'] = search;
|
|
2930
|
+
}
|
|
2931
|
+
if (page !== undefined) {
|
|
2932
|
+
localVarQueryParameter['page'] = page;
|
|
2933
|
+
}
|
|
2934
|
+
if (limit !== undefined) {
|
|
2935
|
+
localVarQueryParameter['limit'] = limit;
|
|
2936
|
+
}
|
|
2937
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2938
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2939
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2940
|
+
return {
|
|
2941
|
+
url: toPathString(localVarUrlObj),
|
|
2942
|
+
options: localVarRequestOptions,
|
|
2943
|
+
};
|
|
2944
|
+
}),
|
|
2945
|
+
/**
|
|
2946
|
+
*
|
|
2947
|
+
* @summary Get single entry details by URL slug
|
|
2948
|
+
* @param {string} slug
|
|
2949
|
+
* @param {*} [options] Override http request option.
|
|
2950
|
+
* @throws {RequiredError}
|
|
2951
|
+
*/
|
|
2952
|
+
registryControllerFindOne: (slug_1, ...args_1) => __awaiter(this, [slug_1, ...args_1], void 0, function* (slug, options = {}) {
|
|
2953
|
+
// verify required parameter 'slug' is not null or undefined
|
|
2954
|
+
assertParamExists('registryControllerFindOne', 'slug', slug);
|
|
2955
|
+
const localVarPath = `/api/v1/registry/entries/{slug}`.replace(`{${'slug'}}`, encodeURIComponent(String(slug)));
|
|
2956
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2957
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2958
|
+
let baseOptions;
|
|
2959
|
+
if (configuration) {
|
|
2960
|
+
baseOptions = configuration.baseOptions;
|
|
2961
|
+
}
|
|
2962
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2963
|
+
const localVarHeaderParameter = {};
|
|
2964
|
+
const localVarQueryParameter = {};
|
|
2965
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2966
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2967
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2968
|
+
return {
|
|
2969
|
+
url: toPathString(localVarUrlObj),
|
|
2970
|
+
options: localVarRequestOptions,
|
|
2971
|
+
};
|
|
2972
|
+
}),
|
|
2973
|
+
/**
|
|
2974
|
+
*
|
|
2975
|
+
* @summary Get current user draft entries
|
|
2976
|
+
* @param {*} [options] Override http request option.
|
|
2977
|
+
* @throws {RequiredError}
|
|
2978
|
+
*/
|
|
2979
|
+
registryControllerGetUserDrafts: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
2980
|
+
const localVarPath = `/api/v1/registry/drafts`;
|
|
2981
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2982
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2983
|
+
let baseOptions;
|
|
2984
|
+
if (configuration) {
|
|
2985
|
+
baseOptions = configuration.baseOptions;
|
|
2986
|
+
}
|
|
2987
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2988
|
+
const localVarHeaderParameter = {};
|
|
2989
|
+
const localVarQueryParameter = {};
|
|
2990
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2991
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2992
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2993
|
+
return {
|
|
2994
|
+
url: toPathString(localVarUrlObj),
|
|
2995
|
+
options: localVarRequestOptions,
|
|
2996
|
+
};
|
|
2997
|
+
}),
|
|
2998
|
+
/**
|
|
2999
|
+
* Validates an NPM package and creates a draft entry with extracted data. The user can then review and confirm the submission.
|
|
3000
|
+
* @summary Submit an NPM package
|
|
3001
|
+
* @param {SubmitPackageDto} submitPackageDto
|
|
3002
|
+
* @param {*} [options] Override http request option.
|
|
3003
|
+
* @throws {RequiredError}
|
|
3004
|
+
*/
|
|
3005
|
+
registryControllerSubmitPackage: (submitPackageDto_1, ...args_1) => __awaiter(this, [submitPackageDto_1, ...args_1], void 0, function* (submitPackageDto, options = {}) {
|
|
3006
|
+
// verify required parameter 'submitPackageDto' is not null or undefined
|
|
3007
|
+
assertParamExists('registryControllerSubmitPackage', 'submitPackageDto', submitPackageDto);
|
|
3008
|
+
const localVarPath = `/api/v1/registry/submit`;
|
|
3009
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3010
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3011
|
+
let baseOptions;
|
|
3012
|
+
if (configuration) {
|
|
3013
|
+
baseOptions = configuration.baseOptions;
|
|
3014
|
+
}
|
|
3015
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
3016
|
+
const localVarHeaderParameter = {};
|
|
3017
|
+
const localVarQueryParameter = {};
|
|
3018
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3019
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3020
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3021
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3022
|
+
localVarRequestOptions.data = serializeDataIfNeeded(submitPackageDto, localVarRequestOptions, configuration);
|
|
3023
|
+
return {
|
|
3024
|
+
url: toPathString(localVarUrlObj),
|
|
3025
|
+
options: localVarRequestOptions,
|
|
3026
|
+
};
|
|
3027
|
+
}),
|
|
3028
|
+
};
|
|
3029
|
+
};
|
|
3030
|
+
/**
|
|
3031
|
+
* RegistryApi - functional programming interface
|
|
3032
|
+
* @export
|
|
3033
|
+
*/
|
|
3034
|
+
export const RegistryApiFp = function (configuration) {
|
|
3035
|
+
const localVarAxiosParamCreator = RegistryApiAxiosParamCreator(configuration);
|
|
3036
|
+
return {
|
|
3037
|
+
/**
|
|
3038
|
+
* Review and confirm a draft entry, optionally modifying the extracted data. Moves the entry to pending status for review.
|
|
3039
|
+
* @summary Confirm a draft entry
|
|
3040
|
+
* @param {string} id
|
|
3041
|
+
* @param {ConfirmDraftDto} confirmDraftDto
|
|
3042
|
+
* @param {*} [options] Override http request option.
|
|
3043
|
+
* @throws {RequiredError}
|
|
3044
|
+
*/
|
|
3045
|
+
registryControllerConfirmDraft(id, confirmDraftDto, options) {
|
|
3046
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3047
|
+
var _a, _b, _c;
|
|
3048
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.registryControllerConfirmDraft(id, confirmDraftDto, options);
|
|
3049
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3050
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['RegistryApi.registryControllerConfirmDraft']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3051
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3052
|
+
});
|
|
3053
|
+
},
|
|
3054
|
+
/**
|
|
3055
|
+
*
|
|
3056
|
+
* @summary List active entries
|
|
3057
|
+
* @param {string} [category]
|
|
3058
|
+
* @param {Array<string>} [tags]
|
|
3059
|
+
* @param {string} [search]
|
|
3060
|
+
* @param {number} [page]
|
|
3061
|
+
* @param {number} [limit]
|
|
3062
|
+
* @param {*} [options] Override http request option.
|
|
3063
|
+
* @throws {RequiredError}
|
|
3064
|
+
*/
|
|
3065
|
+
registryControllerFindAll(category, tags, search, page, limit, options) {
|
|
3066
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3067
|
+
var _a, _b, _c;
|
|
3068
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.registryControllerFindAll(category, tags, search, page, limit, options);
|
|
3069
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3070
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['RegistryApi.registryControllerFindAll']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3071
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3072
|
+
});
|
|
3073
|
+
},
|
|
3074
|
+
/**
|
|
3075
|
+
*
|
|
3076
|
+
* @summary Get single entry details by URL slug
|
|
3077
|
+
* @param {string} slug
|
|
3078
|
+
* @param {*} [options] Override http request option.
|
|
3079
|
+
* @throws {RequiredError}
|
|
3080
|
+
*/
|
|
3081
|
+
registryControllerFindOne(slug, options) {
|
|
3082
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3083
|
+
var _a, _b, _c;
|
|
3084
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.registryControllerFindOne(slug, options);
|
|
3085
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3086
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['RegistryApi.registryControllerFindOne']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3087
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3088
|
+
});
|
|
3089
|
+
},
|
|
3090
|
+
/**
|
|
3091
|
+
*
|
|
3092
|
+
* @summary Get current user draft entries
|
|
3093
|
+
* @param {*} [options] Override http request option.
|
|
3094
|
+
* @throws {RequiredError}
|
|
3095
|
+
*/
|
|
3096
|
+
registryControllerGetUserDrafts(options) {
|
|
3097
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3098
|
+
var _a, _b, _c;
|
|
3099
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.registryControllerGetUserDrafts(options);
|
|
3100
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3101
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['RegistryApi.registryControllerGetUserDrafts']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3102
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3103
|
+
});
|
|
3104
|
+
},
|
|
3105
|
+
/**
|
|
3106
|
+
* Validates an NPM package and creates a draft entry with extracted data. The user can then review and confirm the submission.
|
|
3107
|
+
* @summary Submit an NPM package
|
|
3108
|
+
* @param {SubmitPackageDto} submitPackageDto
|
|
3109
|
+
* @param {*} [options] Override http request option.
|
|
3110
|
+
* @throws {RequiredError}
|
|
3111
|
+
*/
|
|
3112
|
+
registryControllerSubmitPackage(submitPackageDto, options) {
|
|
3113
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3114
|
+
var _a, _b, _c;
|
|
3115
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.registryControllerSubmitPackage(submitPackageDto, options);
|
|
3116
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3117
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['RegistryApi.registryControllerSubmitPackage']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3118
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3119
|
+
});
|
|
3120
|
+
},
|
|
3121
|
+
};
|
|
3122
|
+
};
|
|
3123
|
+
/**
|
|
3124
|
+
* RegistryApi - factory interface
|
|
3125
|
+
* @export
|
|
3126
|
+
*/
|
|
3127
|
+
export const RegistryApiFactory = function (configuration, basePath, axios) {
|
|
3128
|
+
const localVarFp = RegistryApiFp(configuration);
|
|
3129
|
+
return {
|
|
3130
|
+
/**
|
|
3131
|
+
* Review and confirm a draft entry, optionally modifying the extracted data. Moves the entry to pending status for review.
|
|
3132
|
+
* @summary Confirm a draft entry
|
|
3133
|
+
* @param {RegistryApiRegistryControllerConfirmDraftRequest} requestParameters Request parameters.
|
|
3134
|
+
* @param {*} [options] Override http request option.
|
|
3135
|
+
* @throws {RequiredError}
|
|
3136
|
+
*/
|
|
3137
|
+
registryControllerConfirmDraft(requestParameters, options) {
|
|
3138
|
+
return localVarFp
|
|
3139
|
+
.registryControllerConfirmDraft(requestParameters.id, requestParameters.confirmDraftDto, options)
|
|
3140
|
+
.then((request) => request(axios, basePath));
|
|
3141
|
+
},
|
|
3142
|
+
/**
|
|
3143
|
+
*
|
|
3144
|
+
* @summary List active entries
|
|
3145
|
+
* @param {RegistryApiRegistryControllerFindAllRequest} requestParameters Request parameters.
|
|
3146
|
+
* @param {*} [options] Override http request option.
|
|
3147
|
+
* @throws {RequiredError}
|
|
3148
|
+
*/
|
|
3149
|
+
registryControllerFindAll(requestParameters = {}, options) {
|
|
3150
|
+
return localVarFp
|
|
3151
|
+
.registryControllerFindAll(requestParameters.category, requestParameters.tags, requestParameters.search, requestParameters.page, requestParameters.limit, options)
|
|
3152
|
+
.then((request) => request(axios, basePath));
|
|
3153
|
+
},
|
|
3154
|
+
/**
|
|
3155
|
+
*
|
|
3156
|
+
* @summary Get single entry details by URL slug
|
|
3157
|
+
* @param {RegistryApiRegistryControllerFindOneRequest} requestParameters Request parameters.
|
|
3158
|
+
* @param {*} [options] Override http request option.
|
|
3159
|
+
* @throws {RequiredError}
|
|
3160
|
+
*/
|
|
3161
|
+
registryControllerFindOne(requestParameters, options) {
|
|
3162
|
+
return localVarFp
|
|
3163
|
+
.registryControllerFindOne(requestParameters.slug, options)
|
|
3164
|
+
.then((request) => request(axios, basePath));
|
|
3165
|
+
},
|
|
3166
|
+
/**
|
|
3167
|
+
*
|
|
3168
|
+
* @summary Get current user draft entries
|
|
3169
|
+
* @param {*} [options] Override http request option.
|
|
3170
|
+
* @throws {RequiredError}
|
|
3171
|
+
*/
|
|
3172
|
+
registryControllerGetUserDrafts(options) {
|
|
3173
|
+
return localVarFp.registryControllerGetUserDrafts(options).then((request) => request(axios, basePath));
|
|
3174
|
+
},
|
|
3175
|
+
/**
|
|
3176
|
+
* Validates an NPM package and creates a draft entry with extracted data. The user can then review and confirm the submission.
|
|
3177
|
+
* @summary Submit an NPM package
|
|
3178
|
+
* @param {RegistryApiRegistryControllerSubmitPackageRequest} requestParameters Request parameters.
|
|
3179
|
+
* @param {*} [options] Override http request option.
|
|
3180
|
+
* @throws {RequiredError}
|
|
3181
|
+
*/
|
|
3182
|
+
registryControllerSubmitPackage(requestParameters, options) {
|
|
3183
|
+
return localVarFp
|
|
3184
|
+
.registryControllerSubmitPackage(requestParameters.submitPackageDto, options)
|
|
3185
|
+
.then((request) => request(axios, basePath));
|
|
3186
|
+
},
|
|
3187
|
+
};
|
|
3188
|
+
};
|
|
3189
|
+
/**
|
|
3190
|
+
* RegistryApi - object-oriented interface
|
|
3191
|
+
* @export
|
|
3192
|
+
* @class RegistryApi
|
|
3193
|
+
* @extends {BaseAPI}
|
|
3194
|
+
*/
|
|
3195
|
+
export class RegistryApi extends BaseAPI {
|
|
3196
|
+
/**
|
|
3197
|
+
* Review and confirm a draft entry, optionally modifying the extracted data. Moves the entry to pending status for review.
|
|
3198
|
+
* @summary Confirm a draft entry
|
|
3199
|
+
* @param {RegistryApiRegistryControllerConfirmDraftRequest} requestParameters Request parameters.
|
|
3200
|
+
* @param {*} [options] Override http request option.
|
|
3201
|
+
* @throws {RequiredError}
|
|
3202
|
+
* @memberof RegistryApi
|
|
3203
|
+
*/
|
|
3204
|
+
registryControllerConfirmDraft(requestParameters, options) {
|
|
3205
|
+
return RegistryApiFp(this.configuration)
|
|
3206
|
+
.registryControllerConfirmDraft(requestParameters.id, requestParameters.confirmDraftDto, options)
|
|
3207
|
+
.then((request) => request(this.axios, this.basePath));
|
|
3208
|
+
}
|
|
3209
|
+
/**
|
|
3210
|
+
*
|
|
3211
|
+
* @summary List active entries
|
|
3212
|
+
* @param {RegistryApiRegistryControllerFindAllRequest} requestParameters Request parameters.
|
|
3213
|
+
* @param {*} [options] Override http request option.
|
|
3214
|
+
* @throws {RequiredError}
|
|
3215
|
+
* @memberof RegistryApi
|
|
3216
|
+
*/
|
|
3217
|
+
registryControllerFindAll(requestParameters = {}, options) {
|
|
3218
|
+
return RegistryApiFp(this.configuration)
|
|
3219
|
+
.registryControllerFindAll(requestParameters.category, requestParameters.tags, requestParameters.search, requestParameters.page, requestParameters.limit, options)
|
|
3220
|
+
.then((request) => request(this.axios, this.basePath));
|
|
3221
|
+
}
|
|
3222
|
+
/**
|
|
3223
|
+
*
|
|
3224
|
+
* @summary Get single entry details by URL slug
|
|
3225
|
+
* @param {RegistryApiRegistryControllerFindOneRequest} requestParameters Request parameters.
|
|
3226
|
+
* @param {*} [options] Override http request option.
|
|
3227
|
+
* @throws {RequiredError}
|
|
3228
|
+
* @memberof RegistryApi
|
|
3229
|
+
*/
|
|
3230
|
+
registryControllerFindOne(requestParameters, options) {
|
|
3231
|
+
return RegistryApiFp(this.configuration)
|
|
3232
|
+
.registryControllerFindOne(requestParameters.slug, options)
|
|
3233
|
+
.then((request) => request(this.axios, this.basePath));
|
|
3234
|
+
}
|
|
3235
|
+
/**
|
|
3236
|
+
*
|
|
3237
|
+
* @summary Get current user draft entries
|
|
3238
|
+
* @param {*} [options] Override http request option.
|
|
3239
|
+
* @throws {RequiredError}
|
|
3240
|
+
* @memberof RegistryApi
|
|
3241
|
+
*/
|
|
3242
|
+
registryControllerGetUserDrafts(options) {
|
|
3243
|
+
return RegistryApiFp(this.configuration)
|
|
3244
|
+
.registryControllerGetUserDrafts(options)
|
|
3245
|
+
.then((request) => request(this.axios, this.basePath));
|
|
3246
|
+
}
|
|
3247
|
+
/**
|
|
3248
|
+
* Validates an NPM package and creates a draft entry with extracted data. The user can then review and confirm the submission.
|
|
3249
|
+
* @summary Submit an NPM package
|
|
3250
|
+
* @param {RegistryApiRegistryControllerSubmitPackageRequest} requestParameters Request parameters.
|
|
3251
|
+
* @param {*} [options] Override http request option.
|
|
3252
|
+
* @throws {RequiredError}
|
|
3253
|
+
* @memberof RegistryApi
|
|
3254
|
+
*/
|
|
3255
|
+
registryControllerSubmitPackage(requestParameters, options) {
|
|
3256
|
+
return RegistryApiFp(this.configuration)
|
|
3257
|
+
.registryControllerSubmitPackage(requestParameters.submitPackageDto, options)
|
|
3258
|
+
.then((request) => request(this.axios, this.basePath));
|
|
3259
|
+
}
|
|
3260
|
+
}
|
|
3261
|
+
/**
|
|
3262
|
+
* RegistryAdminApi - axios parameter creator
|
|
3263
|
+
* @export
|
|
3264
|
+
*/
|
|
3265
|
+
export const RegistryAdminApiAxiosParamCreator = function (configuration) {
|
|
3266
|
+
return {
|
|
3267
|
+
/**
|
|
3268
|
+
*
|
|
3269
|
+
* @summary Delete entry (admin)
|
|
3270
|
+
* @param {string} id
|
|
3271
|
+
* @param {*} [options] Override http request option.
|
|
3272
|
+
* @throws {RequiredError}
|
|
3273
|
+
*/
|
|
3274
|
+
registryAdminControllerDelete: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
3275
|
+
// verify required parameter 'id' is not null or undefined
|
|
3276
|
+
assertParamExists('registryAdminControllerDelete', 'id', id);
|
|
3277
|
+
const localVarPath = `/api/v1/registry/entries/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
3278
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3279
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3280
|
+
let baseOptions;
|
|
3281
|
+
if (configuration) {
|
|
3282
|
+
baseOptions = configuration.baseOptions;
|
|
3283
|
+
}
|
|
3284
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
3285
|
+
const localVarHeaderParameter = {};
|
|
3286
|
+
const localVarQueryParameter = {};
|
|
3287
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3288
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3289
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3290
|
+
return {
|
|
3291
|
+
url: toPathString(localVarUrlObj),
|
|
3292
|
+
options: localVarRequestOptions,
|
|
3293
|
+
};
|
|
3294
|
+
}),
|
|
3295
|
+
/**
|
|
3296
|
+
*
|
|
3297
|
+
* @summary List all entries (admin)
|
|
3298
|
+
* @param {string} [category]
|
|
3299
|
+
* @param {Array<string>} [tags]
|
|
3300
|
+
* @param {string} [search]
|
|
3301
|
+
* @param {number} [page]
|
|
3302
|
+
* @param {number} [limit]
|
|
3303
|
+
* @param {*} [options] Override http request option.
|
|
3304
|
+
* @throws {RequiredError}
|
|
3305
|
+
*/
|
|
3306
|
+
registryAdminControllerFindAll: (category_1, tags_1, search_1, page_1, limit_1, ...args_1) => __awaiter(this, [category_1, tags_1, search_1, page_1, limit_1, ...args_1], void 0, function* (category, tags, search, page, limit, options = {}) {
|
|
3307
|
+
const localVarPath = `/api/v1/registry/entries/admin`;
|
|
3308
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3309
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3310
|
+
let baseOptions;
|
|
3311
|
+
if (configuration) {
|
|
3312
|
+
baseOptions = configuration.baseOptions;
|
|
3313
|
+
}
|
|
3314
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
3315
|
+
const localVarHeaderParameter = {};
|
|
3316
|
+
const localVarQueryParameter = {};
|
|
3317
|
+
if (category !== undefined) {
|
|
3318
|
+
localVarQueryParameter['category'] = category;
|
|
3319
|
+
}
|
|
3320
|
+
if (tags) {
|
|
3321
|
+
localVarQueryParameter['tags'] = tags;
|
|
3322
|
+
}
|
|
3323
|
+
if (search !== undefined) {
|
|
3324
|
+
localVarQueryParameter['search'] = search;
|
|
3325
|
+
}
|
|
3326
|
+
if (page !== undefined) {
|
|
3327
|
+
localVarQueryParameter['page'] = page;
|
|
3328
|
+
}
|
|
3329
|
+
if (limit !== undefined) {
|
|
3330
|
+
localVarQueryParameter['limit'] = limit;
|
|
3331
|
+
}
|
|
3332
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3333
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3334
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3335
|
+
return {
|
|
3336
|
+
url: toPathString(localVarUrlObj),
|
|
3337
|
+
options: localVarRequestOptions,
|
|
3338
|
+
};
|
|
3339
|
+
}),
|
|
3340
|
+
/**
|
|
3341
|
+
*
|
|
3342
|
+
* @summary Get maintenance run history (admin)
|
|
3343
|
+
* @param {number} [limit] Maximum number of runs to return
|
|
3344
|
+
* @param {*} [options] Override http request option.
|
|
3345
|
+
* @throws {RequiredError}
|
|
3346
|
+
*/
|
|
3347
|
+
registryAdminControllerGetMaintenanceHistory: (limit_1, ...args_1) => __awaiter(this, [limit_1, ...args_1], void 0, function* (limit, options = {}) {
|
|
3348
|
+
const localVarPath = `/api/v1/registry/maintenance/history`;
|
|
3349
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3350
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3351
|
+
let baseOptions;
|
|
3352
|
+
if (configuration) {
|
|
3353
|
+
baseOptions = configuration.baseOptions;
|
|
3354
|
+
}
|
|
3355
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
3356
|
+
const localVarHeaderParameter = {};
|
|
3357
|
+
const localVarQueryParameter = {};
|
|
3358
|
+
if (limit !== undefined) {
|
|
3359
|
+
localVarQueryParameter['limit'] = limit;
|
|
3360
|
+
}
|
|
3361
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3362
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3363
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3364
|
+
return {
|
|
3365
|
+
url: toPathString(localVarUrlObj),
|
|
3366
|
+
options: localVarRequestOptions,
|
|
3367
|
+
};
|
|
3368
|
+
}),
|
|
3369
|
+
/**
|
|
3370
|
+
*
|
|
3371
|
+
* @summary Get registry maintenance statistics (admin)
|
|
3372
|
+
* @param {*} [options] Override http request option.
|
|
3373
|
+
* @throws {RequiredError}
|
|
3374
|
+
*/
|
|
3375
|
+
registryAdminControllerGetStatistics: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
3376
|
+
const localVarPath = `/api/v1/registry/maintenance/statistics`;
|
|
3377
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3378
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3379
|
+
let baseOptions;
|
|
3380
|
+
if (configuration) {
|
|
3381
|
+
baseOptions = configuration.baseOptions;
|
|
3382
|
+
}
|
|
3383
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
3384
|
+
const localVarHeaderParameter = {};
|
|
3385
|
+
const localVarQueryParameter = {};
|
|
3386
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3387
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3388
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3389
|
+
return {
|
|
3390
|
+
url: toPathString(localVarUrlObj),
|
|
3391
|
+
options: localVarRequestOptions,
|
|
3392
|
+
};
|
|
3393
|
+
}),
|
|
3394
|
+
/**
|
|
3395
|
+
*
|
|
3396
|
+
* @summary Run registry maintenance manually (admin)
|
|
3397
|
+
* @param {*} [options] Override http request option.
|
|
3398
|
+
* @throws {RequiredError}
|
|
3399
|
+
*/
|
|
3400
|
+
registryAdminControllerRunMaintenance: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
3401
|
+
const localVarPath = `/api/v1/registry/maintenance/run`;
|
|
3402
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3403
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3404
|
+
let baseOptions;
|
|
3405
|
+
if (configuration) {
|
|
3406
|
+
baseOptions = configuration.baseOptions;
|
|
3407
|
+
}
|
|
3408
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
3409
|
+
const localVarHeaderParameter = {};
|
|
3410
|
+
const localVarQueryParameter = {};
|
|
3411
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3412
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3413
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3414
|
+
return {
|
|
3415
|
+
url: toPathString(localVarUrlObj),
|
|
3416
|
+
options: localVarRequestOptions,
|
|
3417
|
+
};
|
|
3418
|
+
}),
|
|
3419
|
+
/**
|
|
3420
|
+
*
|
|
3421
|
+
* @summary Update entry (admin)
|
|
3422
|
+
* @param {string} id
|
|
3423
|
+
* @param {UpdateEntryDto} updateEntryDto
|
|
3424
|
+
* @param {*} [options] Override http request option.
|
|
3425
|
+
* @throws {RequiredError}
|
|
3426
|
+
*/
|
|
3427
|
+
registryAdminControllerUpdate: (id_1, updateEntryDto_1, ...args_1) => __awaiter(this, [id_1, updateEntryDto_1, ...args_1], void 0, function* (id, updateEntryDto, options = {}) {
|
|
3428
|
+
// verify required parameter 'id' is not null or undefined
|
|
3429
|
+
assertParamExists('registryAdminControllerUpdate', 'id', id);
|
|
3430
|
+
// verify required parameter 'updateEntryDto' is not null or undefined
|
|
3431
|
+
assertParamExists('registryAdminControllerUpdate', 'updateEntryDto', updateEntryDto);
|
|
3432
|
+
const localVarPath = `/api/v1/registry/entries/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
3433
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3434
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3435
|
+
let baseOptions;
|
|
3436
|
+
if (configuration) {
|
|
3437
|
+
baseOptions = configuration.baseOptions;
|
|
3438
|
+
}
|
|
3439
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
3440
|
+
const localVarHeaderParameter = {};
|
|
3441
|
+
const localVarQueryParameter = {};
|
|
3442
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3443
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3444
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3445
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3446
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateEntryDto, localVarRequestOptions, configuration);
|
|
3447
|
+
return {
|
|
3448
|
+
url: toPathString(localVarUrlObj),
|
|
3449
|
+
options: localVarRequestOptions,
|
|
3450
|
+
};
|
|
3451
|
+
}),
|
|
3452
|
+
/**
|
|
3453
|
+
*
|
|
3454
|
+
* @summary Manage staff tags (admin)
|
|
3455
|
+
* @param {string} id
|
|
3456
|
+
* @param {UpdateStaffTagsDto} updateStaffTagsDto
|
|
3457
|
+
* @param {*} [options] Override http request option.
|
|
3458
|
+
* @throws {RequiredError}
|
|
3459
|
+
*/
|
|
3460
|
+
registryAdminControllerUpdateStaffTags: (id_1, updateStaffTagsDto_1, ...args_1) => __awaiter(this, [id_1, updateStaffTagsDto_1, ...args_1], void 0, function* (id, updateStaffTagsDto, options = {}) {
|
|
3461
|
+
// verify required parameter 'id' is not null or undefined
|
|
3462
|
+
assertParamExists('registryAdminControllerUpdateStaffTags', 'id', id);
|
|
3463
|
+
// verify required parameter 'updateStaffTagsDto' is not null or undefined
|
|
3464
|
+
assertParamExists('registryAdminControllerUpdateStaffTags', 'updateStaffTagsDto', updateStaffTagsDto);
|
|
3465
|
+
const localVarPath = `/api/v1/registry/entries/{id}/staff-tags`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
3466
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3467
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3468
|
+
let baseOptions;
|
|
3469
|
+
if (configuration) {
|
|
3470
|
+
baseOptions = configuration.baseOptions;
|
|
3471
|
+
}
|
|
3472
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
3473
|
+
const localVarHeaderParameter = {};
|
|
3474
|
+
const localVarQueryParameter = {};
|
|
3475
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3476
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3477
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3478
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3479
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateStaffTagsDto, localVarRequestOptions, configuration);
|
|
3480
|
+
return {
|
|
3481
|
+
url: toPathString(localVarUrlObj),
|
|
3482
|
+
options: localVarRequestOptions,
|
|
3483
|
+
};
|
|
3484
|
+
}),
|
|
3485
|
+
/**
|
|
3486
|
+
*
|
|
3487
|
+
* @summary Activate/deactivate entry (admin)
|
|
3488
|
+
* @param {string} id
|
|
3489
|
+
* @param {UpdateStatusDto} updateStatusDto
|
|
3490
|
+
* @param {*} [options] Override http request option.
|
|
3491
|
+
* @throws {RequiredError}
|
|
3492
|
+
*/
|
|
3493
|
+
registryAdminControllerUpdateStatus: (id_1, updateStatusDto_1, ...args_1) => __awaiter(this, [id_1, updateStatusDto_1, ...args_1], void 0, function* (id, updateStatusDto, options = {}) {
|
|
3494
|
+
// verify required parameter 'id' is not null or undefined
|
|
3495
|
+
assertParamExists('registryAdminControllerUpdateStatus', 'id', id);
|
|
3496
|
+
// verify required parameter 'updateStatusDto' is not null or undefined
|
|
3497
|
+
assertParamExists('registryAdminControllerUpdateStatus', 'updateStatusDto', updateStatusDto);
|
|
3498
|
+
const localVarPath = `/api/v1/registry/entries/{id}/status`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
3499
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3500
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3501
|
+
let baseOptions;
|
|
3502
|
+
if (configuration) {
|
|
3503
|
+
baseOptions = configuration.baseOptions;
|
|
3504
|
+
}
|
|
3505
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
3506
|
+
const localVarHeaderParameter = {};
|
|
3507
|
+
const localVarQueryParameter = {};
|
|
3508
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3509
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3510
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3511
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3512
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateStatusDto, localVarRequestOptions, configuration);
|
|
3513
|
+
return {
|
|
3514
|
+
url: toPathString(localVarUrlObj),
|
|
3515
|
+
options: localVarRequestOptions,
|
|
3516
|
+
};
|
|
3517
|
+
}),
|
|
3518
|
+
};
|
|
3519
|
+
};
|
|
3520
|
+
/**
|
|
3521
|
+
* RegistryAdminApi - functional programming interface
|
|
3522
|
+
* @export
|
|
3523
|
+
*/
|
|
3524
|
+
export const RegistryAdminApiFp = function (configuration) {
|
|
3525
|
+
const localVarAxiosParamCreator = RegistryAdminApiAxiosParamCreator(configuration);
|
|
3526
|
+
return {
|
|
3527
|
+
/**
|
|
3528
|
+
*
|
|
3529
|
+
* @summary Delete entry (admin)
|
|
3530
|
+
* @param {string} id
|
|
3531
|
+
* @param {*} [options] Override http request option.
|
|
3532
|
+
* @throws {RequiredError}
|
|
3533
|
+
*/
|
|
3534
|
+
registryAdminControllerDelete(id, options) {
|
|
3535
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3536
|
+
var _a, _b, _c;
|
|
3537
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.registryAdminControllerDelete(id, options);
|
|
3538
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3539
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['RegistryAdminApi.registryAdminControllerDelete']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3540
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3541
|
+
});
|
|
3542
|
+
},
|
|
3543
|
+
/**
|
|
3544
|
+
*
|
|
3545
|
+
* @summary List all entries (admin)
|
|
3546
|
+
* @param {string} [category]
|
|
3547
|
+
* @param {Array<string>} [tags]
|
|
3548
|
+
* @param {string} [search]
|
|
3549
|
+
* @param {number} [page]
|
|
3550
|
+
* @param {number} [limit]
|
|
3551
|
+
* @param {*} [options] Override http request option.
|
|
3552
|
+
* @throws {RequiredError}
|
|
3553
|
+
*/
|
|
3554
|
+
registryAdminControllerFindAll(category, tags, search, page, limit, options) {
|
|
3555
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3556
|
+
var _a, _b, _c;
|
|
3557
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.registryAdminControllerFindAll(category, tags, search, page, limit, options);
|
|
3558
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3559
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['RegistryAdminApi.registryAdminControllerFindAll']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3560
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3561
|
+
});
|
|
3562
|
+
},
|
|
3563
|
+
/**
|
|
3564
|
+
*
|
|
3565
|
+
* @summary Get maintenance run history (admin)
|
|
3566
|
+
* @param {number} [limit] Maximum number of runs to return
|
|
3567
|
+
* @param {*} [options] Override http request option.
|
|
3568
|
+
* @throws {RequiredError}
|
|
3569
|
+
*/
|
|
3570
|
+
registryAdminControllerGetMaintenanceHistory(limit, options) {
|
|
3571
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3572
|
+
var _a, _b, _c;
|
|
3573
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.registryAdminControllerGetMaintenanceHistory(limit, options);
|
|
3574
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3575
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['RegistryAdminApi.registryAdminControllerGetMaintenanceHistory']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3576
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3577
|
+
});
|
|
3578
|
+
},
|
|
3579
|
+
/**
|
|
3580
|
+
*
|
|
3581
|
+
* @summary Get registry maintenance statistics (admin)
|
|
3582
|
+
* @param {*} [options] Override http request option.
|
|
3583
|
+
* @throws {RequiredError}
|
|
3584
|
+
*/
|
|
3585
|
+
registryAdminControllerGetStatistics(options) {
|
|
3586
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3587
|
+
var _a, _b, _c;
|
|
3588
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.registryAdminControllerGetStatistics(options);
|
|
3589
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3590
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['RegistryAdminApi.registryAdminControllerGetStatistics']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3591
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3592
|
+
});
|
|
3593
|
+
},
|
|
3594
|
+
/**
|
|
3595
|
+
*
|
|
3596
|
+
* @summary Run registry maintenance manually (admin)
|
|
3597
|
+
* @param {*} [options] Override http request option.
|
|
3598
|
+
* @throws {RequiredError}
|
|
3599
|
+
*/
|
|
3600
|
+
registryAdminControllerRunMaintenance(options) {
|
|
3601
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3602
|
+
var _a, _b, _c;
|
|
3603
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.registryAdminControllerRunMaintenance(options);
|
|
3604
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3605
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['RegistryAdminApi.registryAdminControllerRunMaintenance']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3606
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3607
|
+
});
|
|
3608
|
+
},
|
|
3609
|
+
/**
|
|
3610
|
+
*
|
|
3611
|
+
* @summary Update entry (admin)
|
|
3612
|
+
* @param {string} id
|
|
3613
|
+
* @param {UpdateEntryDto} updateEntryDto
|
|
3614
|
+
* @param {*} [options] Override http request option.
|
|
3615
|
+
* @throws {RequiredError}
|
|
3616
|
+
*/
|
|
3617
|
+
registryAdminControllerUpdate(id, updateEntryDto, options) {
|
|
3618
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3619
|
+
var _a, _b, _c;
|
|
3620
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.registryAdminControllerUpdate(id, updateEntryDto, options);
|
|
3621
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3622
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['RegistryAdminApi.registryAdminControllerUpdate']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3623
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3624
|
+
});
|
|
3625
|
+
},
|
|
3626
|
+
/**
|
|
3627
|
+
*
|
|
3628
|
+
* @summary Manage staff tags (admin)
|
|
3629
|
+
* @param {string} id
|
|
3630
|
+
* @param {UpdateStaffTagsDto} updateStaffTagsDto
|
|
3631
|
+
* @param {*} [options] Override http request option.
|
|
3632
|
+
* @throws {RequiredError}
|
|
3633
|
+
*/
|
|
3634
|
+
registryAdminControllerUpdateStaffTags(id, updateStaffTagsDto, options) {
|
|
3635
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3636
|
+
var _a, _b, _c;
|
|
3637
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.registryAdminControllerUpdateStaffTags(id, updateStaffTagsDto, options);
|
|
3638
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3639
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['RegistryAdminApi.registryAdminControllerUpdateStaffTags']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3640
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3641
|
+
});
|
|
3642
|
+
},
|
|
3643
|
+
/**
|
|
3644
|
+
*
|
|
3645
|
+
* @summary Activate/deactivate entry (admin)
|
|
3646
|
+
* @param {string} id
|
|
3647
|
+
* @param {UpdateStatusDto} updateStatusDto
|
|
3648
|
+
* @param {*} [options] Override http request option.
|
|
3649
|
+
* @throws {RequiredError}
|
|
3650
|
+
*/
|
|
3651
|
+
registryAdminControllerUpdateStatus(id, updateStatusDto, options) {
|
|
3652
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3653
|
+
var _a, _b, _c;
|
|
3654
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.registryAdminControllerUpdateStatus(id, updateStatusDto, options);
|
|
3655
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3656
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['RegistryAdminApi.registryAdminControllerUpdateStatus']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3657
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3658
|
+
});
|
|
3659
|
+
},
|
|
3660
|
+
};
|
|
3661
|
+
};
|
|
3662
|
+
/**
|
|
3663
|
+
* RegistryAdminApi - factory interface
|
|
3664
|
+
* @export
|
|
3665
|
+
*/
|
|
3666
|
+
export const RegistryAdminApiFactory = function (configuration, basePath, axios) {
|
|
3667
|
+
const localVarFp = RegistryAdminApiFp(configuration);
|
|
3668
|
+
return {
|
|
3669
|
+
/**
|
|
3670
|
+
*
|
|
3671
|
+
* @summary Delete entry (admin)
|
|
3672
|
+
* @param {RegistryAdminApiRegistryAdminControllerDeleteRequest} requestParameters Request parameters.
|
|
3673
|
+
* @param {*} [options] Override http request option.
|
|
3674
|
+
* @throws {RequiredError}
|
|
3675
|
+
*/
|
|
3676
|
+
registryAdminControllerDelete(requestParameters, options) {
|
|
3677
|
+
return localVarFp
|
|
3678
|
+
.registryAdminControllerDelete(requestParameters.id, options)
|
|
3679
|
+
.then((request) => request(axios, basePath));
|
|
3680
|
+
},
|
|
3681
|
+
/**
|
|
3682
|
+
*
|
|
3683
|
+
* @summary List all entries (admin)
|
|
3684
|
+
* @param {RegistryAdminApiRegistryAdminControllerFindAllRequest} requestParameters Request parameters.
|
|
3685
|
+
* @param {*} [options] Override http request option.
|
|
3686
|
+
* @throws {RequiredError}
|
|
3687
|
+
*/
|
|
3688
|
+
registryAdminControllerFindAll(requestParameters = {}, options) {
|
|
3689
|
+
return localVarFp
|
|
3690
|
+
.registryAdminControllerFindAll(requestParameters.category, requestParameters.tags, requestParameters.search, requestParameters.page, requestParameters.limit, options)
|
|
3691
|
+
.then((request) => request(axios, basePath));
|
|
3692
|
+
},
|
|
3693
|
+
/**
|
|
3694
|
+
*
|
|
3695
|
+
* @summary Get maintenance run history (admin)
|
|
3696
|
+
* @param {RegistryAdminApiRegistryAdminControllerGetMaintenanceHistoryRequest} requestParameters Request parameters.
|
|
3697
|
+
* @param {*} [options] Override http request option.
|
|
3698
|
+
* @throws {RequiredError}
|
|
3699
|
+
*/
|
|
3700
|
+
registryAdminControllerGetMaintenanceHistory(requestParameters = {}, options) {
|
|
3701
|
+
return localVarFp
|
|
3702
|
+
.registryAdminControllerGetMaintenanceHistory(requestParameters.limit, options)
|
|
3703
|
+
.then((request) => request(axios, basePath));
|
|
3704
|
+
},
|
|
3705
|
+
/**
|
|
3706
|
+
*
|
|
3707
|
+
* @summary Get registry maintenance statistics (admin)
|
|
3708
|
+
* @param {*} [options] Override http request option.
|
|
3709
|
+
* @throws {RequiredError}
|
|
3710
|
+
*/
|
|
3711
|
+
registryAdminControllerGetStatistics(options) {
|
|
3712
|
+
return localVarFp.registryAdminControllerGetStatistics(options).then((request) => request(axios, basePath));
|
|
3713
|
+
},
|
|
3714
|
+
/**
|
|
3715
|
+
*
|
|
3716
|
+
* @summary Run registry maintenance manually (admin)
|
|
3717
|
+
* @param {*} [options] Override http request option.
|
|
3718
|
+
* @throws {RequiredError}
|
|
3719
|
+
*/
|
|
3720
|
+
registryAdminControllerRunMaintenance(options) {
|
|
3721
|
+
return localVarFp.registryAdminControllerRunMaintenance(options).then((request) => request(axios, basePath));
|
|
3722
|
+
},
|
|
3723
|
+
/**
|
|
3724
|
+
*
|
|
3725
|
+
* @summary Update entry (admin)
|
|
3726
|
+
* @param {RegistryAdminApiRegistryAdminControllerUpdateRequest} requestParameters Request parameters.
|
|
3727
|
+
* @param {*} [options] Override http request option.
|
|
3728
|
+
* @throws {RequiredError}
|
|
3729
|
+
*/
|
|
3730
|
+
registryAdminControllerUpdate(requestParameters, options) {
|
|
3731
|
+
return localVarFp
|
|
3732
|
+
.registryAdminControllerUpdate(requestParameters.id, requestParameters.updateEntryDto, options)
|
|
3733
|
+
.then((request) => request(axios, basePath));
|
|
3734
|
+
},
|
|
3735
|
+
/**
|
|
3736
|
+
*
|
|
3737
|
+
* @summary Manage staff tags (admin)
|
|
3738
|
+
* @param {RegistryAdminApiRegistryAdminControllerUpdateStaffTagsRequest} requestParameters Request parameters.
|
|
3739
|
+
* @param {*} [options] Override http request option.
|
|
3740
|
+
* @throws {RequiredError}
|
|
3741
|
+
*/
|
|
3742
|
+
registryAdminControllerUpdateStaffTags(requestParameters, options) {
|
|
3743
|
+
return localVarFp
|
|
3744
|
+
.registryAdminControllerUpdateStaffTags(requestParameters.id, requestParameters.updateStaffTagsDto, options)
|
|
3745
|
+
.then((request) => request(axios, basePath));
|
|
3746
|
+
},
|
|
3747
|
+
/**
|
|
3748
|
+
*
|
|
3749
|
+
* @summary Activate/deactivate entry (admin)
|
|
3750
|
+
* @param {RegistryAdminApiRegistryAdminControllerUpdateStatusRequest} requestParameters Request parameters.
|
|
3751
|
+
* @param {*} [options] Override http request option.
|
|
3752
|
+
* @throws {RequiredError}
|
|
3753
|
+
*/
|
|
3754
|
+
registryAdminControllerUpdateStatus(requestParameters, options) {
|
|
3755
|
+
return localVarFp
|
|
3756
|
+
.registryAdminControllerUpdateStatus(requestParameters.id, requestParameters.updateStatusDto, options)
|
|
3757
|
+
.then((request) => request(axios, basePath));
|
|
3758
|
+
},
|
|
3759
|
+
};
|
|
3760
|
+
};
|
|
3761
|
+
/**
|
|
3762
|
+
* RegistryAdminApi - object-oriented interface
|
|
3763
|
+
* @export
|
|
3764
|
+
* @class RegistryAdminApi
|
|
3765
|
+
* @extends {BaseAPI}
|
|
3766
|
+
*/
|
|
3767
|
+
export class RegistryAdminApi extends BaseAPI {
|
|
3768
|
+
/**
|
|
3769
|
+
*
|
|
3770
|
+
* @summary Delete entry (admin)
|
|
3771
|
+
* @param {RegistryAdminApiRegistryAdminControllerDeleteRequest} requestParameters Request parameters.
|
|
3772
|
+
* @param {*} [options] Override http request option.
|
|
3773
|
+
* @throws {RequiredError}
|
|
3774
|
+
* @memberof RegistryAdminApi
|
|
3775
|
+
*/
|
|
3776
|
+
registryAdminControllerDelete(requestParameters, options) {
|
|
3777
|
+
return RegistryAdminApiFp(this.configuration)
|
|
3778
|
+
.registryAdminControllerDelete(requestParameters.id, options)
|
|
3779
|
+
.then((request) => request(this.axios, this.basePath));
|
|
3780
|
+
}
|
|
3781
|
+
/**
|
|
3782
|
+
*
|
|
3783
|
+
* @summary List all entries (admin)
|
|
3784
|
+
* @param {RegistryAdminApiRegistryAdminControllerFindAllRequest} requestParameters Request parameters.
|
|
3785
|
+
* @param {*} [options] Override http request option.
|
|
3786
|
+
* @throws {RequiredError}
|
|
3787
|
+
* @memberof RegistryAdminApi
|
|
3788
|
+
*/
|
|
3789
|
+
registryAdminControllerFindAll(requestParameters = {}, options) {
|
|
3790
|
+
return RegistryAdminApiFp(this.configuration)
|
|
3791
|
+
.registryAdminControllerFindAll(requestParameters.category, requestParameters.tags, requestParameters.search, requestParameters.page, requestParameters.limit, options)
|
|
3792
|
+
.then((request) => request(this.axios, this.basePath));
|
|
3793
|
+
}
|
|
3794
|
+
/**
|
|
3795
|
+
*
|
|
3796
|
+
* @summary Get maintenance run history (admin)
|
|
3797
|
+
* @param {RegistryAdminApiRegistryAdminControllerGetMaintenanceHistoryRequest} requestParameters Request parameters.
|
|
3798
|
+
* @param {*} [options] Override http request option.
|
|
3799
|
+
* @throws {RequiredError}
|
|
3800
|
+
* @memberof RegistryAdminApi
|
|
3801
|
+
*/
|
|
3802
|
+
registryAdminControllerGetMaintenanceHistory(requestParameters = {}, options) {
|
|
3803
|
+
return RegistryAdminApiFp(this.configuration)
|
|
3804
|
+
.registryAdminControllerGetMaintenanceHistory(requestParameters.limit, options)
|
|
3805
|
+
.then((request) => request(this.axios, this.basePath));
|
|
3806
|
+
}
|
|
3807
|
+
/**
|
|
3808
|
+
*
|
|
3809
|
+
* @summary Get registry maintenance statistics (admin)
|
|
3810
|
+
* @param {*} [options] Override http request option.
|
|
3811
|
+
* @throws {RequiredError}
|
|
3812
|
+
* @memberof RegistryAdminApi
|
|
3813
|
+
*/
|
|
3814
|
+
registryAdminControllerGetStatistics(options) {
|
|
3815
|
+
return RegistryAdminApiFp(this.configuration)
|
|
3816
|
+
.registryAdminControllerGetStatistics(options)
|
|
3817
|
+
.then((request) => request(this.axios, this.basePath));
|
|
3818
|
+
}
|
|
3819
|
+
/**
|
|
3820
|
+
*
|
|
3821
|
+
* @summary Run registry maintenance manually (admin)
|
|
3822
|
+
* @param {*} [options] Override http request option.
|
|
3823
|
+
* @throws {RequiredError}
|
|
3824
|
+
* @memberof RegistryAdminApi
|
|
3825
|
+
*/
|
|
3826
|
+
registryAdminControllerRunMaintenance(options) {
|
|
3827
|
+
return RegistryAdminApiFp(this.configuration)
|
|
3828
|
+
.registryAdminControllerRunMaintenance(options)
|
|
3829
|
+
.then((request) => request(this.axios, this.basePath));
|
|
3830
|
+
}
|
|
3831
|
+
/**
|
|
3832
|
+
*
|
|
3833
|
+
* @summary Update entry (admin)
|
|
3834
|
+
* @param {RegistryAdminApiRegistryAdminControllerUpdateRequest} requestParameters Request parameters.
|
|
3835
|
+
* @param {*} [options] Override http request option.
|
|
3836
|
+
* @throws {RequiredError}
|
|
3837
|
+
* @memberof RegistryAdminApi
|
|
3838
|
+
*/
|
|
3839
|
+
registryAdminControllerUpdate(requestParameters, options) {
|
|
3840
|
+
return RegistryAdminApiFp(this.configuration)
|
|
3841
|
+
.registryAdminControllerUpdate(requestParameters.id, requestParameters.updateEntryDto, options)
|
|
3842
|
+
.then((request) => request(this.axios, this.basePath));
|
|
3843
|
+
}
|
|
3844
|
+
/**
|
|
3845
|
+
*
|
|
3846
|
+
* @summary Manage staff tags (admin)
|
|
3847
|
+
* @param {RegistryAdminApiRegistryAdminControllerUpdateStaffTagsRequest} requestParameters Request parameters.
|
|
3848
|
+
* @param {*} [options] Override http request option.
|
|
3849
|
+
* @throws {RequiredError}
|
|
3850
|
+
* @memberof RegistryAdminApi
|
|
3851
|
+
*/
|
|
3852
|
+
registryAdminControllerUpdateStaffTags(requestParameters, options) {
|
|
3853
|
+
return RegistryAdminApiFp(this.configuration)
|
|
3854
|
+
.registryAdminControllerUpdateStaffTags(requestParameters.id, requestParameters.updateStaffTagsDto, options)
|
|
3855
|
+
.then((request) => request(this.axios, this.basePath));
|
|
3856
|
+
}
|
|
3857
|
+
/**
|
|
3858
|
+
*
|
|
3859
|
+
* @summary Activate/deactivate entry (admin)
|
|
3860
|
+
* @param {RegistryAdminApiRegistryAdminControllerUpdateStatusRequest} requestParameters Request parameters.
|
|
3861
|
+
* @param {*} [options] Override http request option.
|
|
3862
|
+
* @throws {RequiredError}
|
|
3863
|
+
* @memberof RegistryAdminApi
|
|
3864
|
+
*/
|
|
3865
|
+
registryAdminControllerUpdateStatus(requestParameters, options) {
|
|
3866
|
+
return RegistryAdminApiFp(this.configuration)
|
|
3867
|
+
.registryAdminControllerUpdateStatus(requestParameters.id, requestParameters.updateStatusDto, options)
|
|
3868
|
+
.then((request) => request(this.axios, this.basePath));
|
|
3869
|
+
}
|
|
3870
|
+
}
|
|
3871
|
+
/**
|
|
3872
|
+
* WellKnownApi - axios parameter creator
|
|
3873
|
+
* @export
|
|
3874
|
+
*/
|
|
3875
|
+
export const WellKnownApiAxiosParamCreator = function (configuration) {
|
|
3876
|
+
return {
|
|
3877
|
+
/**
|
|
3878
|
+
*
|
|
3879
|
+
* @summary JSON Web Key Set for verifying Hub-signed ID tokens
|
|
3880
|
+
* @param {*} [options] Override http request option.
|
|
3881
|
+
* @throws {RequiredError}
|
|
3882
|
+
*/
|
|
3883
|
+
ssoJwksControllerGetJwks: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
3884
|
+
const localVarPath = `/.well-known/jwks.json`;
|
|
3885
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3886
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3887
|
+
let baseOptions;
|
|
3888
|
+
if (configuration) {
|
|
3889
|
+
baseOptions = configuration.baseOptions;
|
|
3890
|
+
}
|
|
3891
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
3892
|
+
const localVarHeaderParameter = {};
|
|
3893
|
+
const localVarQueryParameter = {};
|
|
3894
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3895
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3896
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3897
|
+
return {
|
|
3898
|
+
url: toPathString(localVarUrlObj),
|
|
3899
|
+
options: localVarRequestOptions,
|
|
3900
|
+
};
|
|
3901
|
+
}),
|
|
3902
|
+
};
|
|
3903
|
+
};
|
|
3904
|
+
/**
|
|
3905
|
+
* WellKnownApi - functional programming interface
|
|
3906
|
+
* @export
|
|
3907
|
+
*/
|
|
3908
|
+
export const WellKnownApiFp = function (configuration) {
|
|
3909
|
+
const localVarAxiosParamCreator = WellKnownApiAxiosParamCreator(configuration);
|
|
3910
|
+
return {
|
|
3911
|
+
/**
|
|
3912
|
+
*
|
|
3913
|
+
* @summary JSON Web Key Set for verifying Hub-signed ID tokens
|
|
3914
|
+
* @param {*} [options] Override http request option.
|
|
3915
|
+
* @throws {RequiredError}
|
|
3916
|
+
*/
|
|
3917
|
+
ssoJwksControllerGetJwks(options) {
|
|
3918
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3919
|
+
var _a, _b, _c;
|
|
3920
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.ssoJwksControllerGetJwks(options);
|
|
3921
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3922
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['WellKnownApi.ssoJwksControllerGetJwks']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3923
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3924
|
+
});
|
|
3925
|
+
},
|
|
3926
|
+
};
|
|
3927
|
+
};
|
|
3928
|
+
/**
|
|
3929
|
+
* WellKnownApi - factory interface
|
|
3930
|
+
* @export
|
|
3931
|
+
*/
|
|
3932
|
+
export const WellKnownApiFactory = function (configuration, basePath, axios) {
|
|
3933
|
+
const localVarFp = WellKnownApiFp(configuration);
|
|
3934
|
+
return {
|
|
3935
|
+
/**
|
|
3936
|
+
*
|
|
3937
|
+
* @summary JSON Web Key Set for verifying Hub-signed ID tokens
|
|
3938
|
+
* @param {*} [options] Override http request option.
|
|
3939
|
+
* @throws {RequiredError}
|
|
3940
|
+
*/
|
|
3941
|
+
ssoJwksControllerGetJwks(options) {
|
|
3942
|
+
return localVarFp.ssoJwksControllerGetJwks(options).then((request) => request(axios, basePath));
|
|
3943
|
+
},
|
|
3944
|
+
};
|
|
3945
|
+
};
|
|
3946
|
+
/**
|
|
3947
|
+
* WellKnownApi - object-oriented interface
|
|
3948
|
+
* @export
|
|
3949
|
+
* @class WellKnownApi
|
|
3950
|
+
* @extends {BaseAPI}
|
|
3951
|
+
*/
|
|
3952
|
+
export class WellKnownApi extends BaseAPI {
|
|
3953
|
+
/**
|
|
3954
|
+
*
|
|
3955
|
+
* @summary JSON Web Key Set for verifying Hub-signed ID tokens
|
|
3956
|
+
* @param {*} [options] Override http request option.
|
|
3957
|
+
* @throws {RequiredError}
|
|
3958
|
+
* @memberof WellKnownApi
|
|
3959
|
+
*/
|
|
3960
|
+
ssoJwksControllerGetJwks(options) {
|
|
3961
|
+
return WellKnownApiFp(this.configuration)
|
|
3962
|
+
.ssoJwksControllerGetJwks(options)
|
|
3963
|
+
.then((request) => request(this.axios, this.basePath));
|
|
2827
3964
|
}
|
|
2828
3965
|
}
|