@loopstack/hub-client 0.13.0 → 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 +7085 -3848
- package/base.ts +33 -29
- package/common.ts +88 -75
- package/configuration.ts +103 -96
- package/dist/api.d.ts +2957 -1433
- package/dist/api.js +1410 -259
- 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 +2957 -1433
- package/dist/esm/api.js +1397 -259
- 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 -49
- 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,42 +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
105
|
Name: 'name',
|
|
52
|
-
|
|
106
|
+
Type: 'type',
|
|
53
107
|
CreatedAt: 'createdAt',
|
|
54
108
|
UpdatedAt: 'updatedAt',
|
|
55
|
-
UserId: 'userId'
|
|
109
|
+
UserId: 'userId',
|
|
56
110
|
};
|
|
57
111
|
export const WorkerSortByDtoOrderEnum = {
|
|
58
112
|
Asc: 'ASC',
|
|
59
|
-
Desc: 'DESC'
|
|
113
|
+
Desc: 'DESC',
|
|
60
114
|
};
|
|
61
115
|
/**
|
|
62
116
|
* AdminApi - axios parameter creator
|
|
@@ -77,8 +131,7 @@ export const AdminApiAxiosParamCreator = function (configuration) {
|
|
|
77
131
|
assertParamExists('adminControllerAddRoleToUser', 'userId', userId);
|
|
78
132
|
// verify required parameter 'addRoleDto' is not null or undefined
|
|
79
133
|
assertParamExists('adminControllerAddRoleToUser', 'addRoleDto', addRoleDto);
|
|
80
|
-
const localVarPath = `/api/v1/admin/users/{userId}/roles/add`
|
|
81
|
-
.replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
|
|
134
|
+
const localVarPath = `/api/v1/admin/users/{userId}/roles/add`.replace(`{${'userId'}}`, encodeURIComponent(String(userId)));
|
|
82
135
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
83
136
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
84
137
|
let baseOptions;
|
|
@@ -108,8 +161,7 @@ export const AdminApiAxiosParamCreator = function (configuration) {
|
|
|
108
161
|
adminControllerDeleteUser: (userId_1, ...args_1) => __awaiter(this, [userId_1, ...args_1], void 0, function* (userId, options = {}) {
|
|
109
162
|
// verify required parameter 'userId' is not null or undefined
|
|
110
163
|
assertParamExists('adminControllerDeleteUser', 'userId', userId);
|
|
111
|
-
const localVarPath = `/api/v1/admin/users/{userId}`
|
|
112
|
-
.replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
|
|
164
|
+
const localVarPath = `/api/v1/admin/users/{userId}`.replace(`{${'userId'}}`, encodeURIComponent(String(userId)));
|
|
113
165
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
114
166
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
115
167
|
let baseOptions;
|
|
@@ -174,8 +226,7 @@ export const AdminApiAxiosParamCreator = function (configuration) {
|
|
|
174
226
|
adminControllerGetUserById: (userId_1, ...args_1) => __awaiter(this, [userId_1, ...args_1], void 0, function* (userId, options = {}) {
|
|
175
227
|
// verify required parameter 'userId' is not null or undefined
|
|
176
228
|
assertParamExists('adminControllerGetUserById', 'userId', userId);
|
|
177
|
-
const localVarPath = `/api/v1/admin/users/{userId}`
|
|
178
|
-
.replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
|
|
229
|
+
const localVarPath = `/api/v1/admin/users/{userId}`.replace(`{${'userId'}}`, encodeURIComponent(String(userId)));
|
|
179
230
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
180
231
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
181
232
|
let baseOptions;
|
|
@@ -206,8 +257,7 @@ export const AdminApiAxiosParamCreator = function (configuration) {
|
|
|
206
257
|
assertParamExists('adminControllerRemoveRoleFromUser', 'userId', userId);
|
|
207
258
|
// verify required parameter 'removeRoleDto' is not null or undefined
|
|
208
259
|
assertParamExists('adminControllerRemoveRoleFromUser', 'removeRoleDto', removeRoleDto);
|
|
209
|
-
const localVarPath = `/api/v1/admin/users/{userId}/roles/remove`
|
|
210
|
-
.replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
|
|
260
|
+
const localVarPath = `/api/v1/admin/users/{userId}/roles/remove`.replace(`{${'userId'}}`, encodeURIComponent(String(userId)));
|
|
211
261
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
212
262
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
213
263
|
let baseOptions;
|
|
@@ -271,8 +321,7 @@ export const AdminApiAxiosParamCreator = function (configuration) {
|
|
|
271
321
|
assertParamExists('adminControllerToggleUserAccess', 'userId', userId);
|
|
272
322
|
// verify required parameter 'toggleAccessDto' is not null or undefined
|
|
273
323
|
assertParamExists('adminControllerToggleUserAccess', 'toggleAccessDto', toggleAccessDto);
|
|
274
|
-
const localVarPath = `/api/v1/admin/users/{userId}/access`
|
|
275
|
-
.replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
|
|
324
|
+
const localVarPath = `/api/v1/admin/users/{userId}/access`.replace(`{${'userId'}}`, encodeURIComponent(String(userId)));
|
|
276
325
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
277
326
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
278
327
|
let baseOptions;
|
|
@@ -305,8 +354,7 @@ export const AdminApiAxiosParamCreator = function (configuration) {
|
|
|
305
354
|
assertParamExists('adminControllerToggleUserActive', 'userId', userId);
|
|
306
355
|
// verify required parameter 'toggleActiveDto' is not null or undefined
|
|
307
356
|
assertParamExists('adminControllerToggleUserActive', 'toggleActiveDto', toggleActiveDto);
|
|
308
|
-
const localVarPath = `/api/v1/admin/users/{userId}/active`
|
|
309
|
-
.replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
|
|
357
|
+
const localVarPath = `/api/v1/admin/users/{userId}/active`.replace(`{${'userId'}}`, encodeURIComponent(String(userId)));
|
|
310
358
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
311
359
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
312
360
|
let baseOptions;
|
|
@@ -339,8 +387,7 @@ export const AdminApiAxiosParamCreator = function (configuration) {
|
|
|
339
387
|
assertParamExists('adminControllerUpdateUserRoles', 'userId', userId);
|
|
340
388
|
// verify required parameter 'updateUserRolesDto' is not null or undefined
|
|
341
389
|
assertParamExists('adminControllerUpdateUserRoles', 'updateUserRolesDto', updateUserRolesDto);
|
|
342
|
-
const localVarPath = `/api/v1/admin/users/{userId}/roles`
|
|
343
|
-
.replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
|
|
390
|
+
const localVarPath = `/api/v1/admin/users/{userId}/roles`.replace(`{${'userId'}}`, encodeURIComponent(String(userId)));
|
|
344
391
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
345
392
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
346
393
|
let baseOptions;
|
|
@@ -536,7 +583,9 @@ export const AdminApiFactory = function (configuration, basePath, axios) {
|
|
|
536
583
|
* @throws {RequiredError}
|
|
537
584
|
*/
|
|
538
585
|
adminControllerAddRoleToUser(requestParameters, options) {
|
|
539
|
-
return localVarFp
|
|
586
|
+
return localVarFp
|
|
587
|
+
.adminControllerAddRoleToUser(requestParameters.userId, requestParameters.addRoleDto, options)
|
|
588
|
+
.then((request) => request(axios, basePath));
|
|
540
589
|
},
|
|
541
590
|
/**
|
|
542
591
|
*
|
|
@@ -546,7 +595,9 @@ export const AdminApiFactory = function (configuration, basePath, axios) {
|
|
|
546
595
|
* @throws {RequiredError}
|
|
547
596
|
*/
|
|
548
597
|
adminControllerDeleteUser(requestParameters, options) {
|
|
549
|
-
return localVarFp
|
|
598
|
+
return localVarFp
|
|
599
|
+
.adminControllerDeleteUser(requestParameters.userId, options)
|
|
600
|
+
.then((request) => request(axios, basePath));
|
|
550
601
|
},
|
|
551
602
|
/**
|
|
552
603
|
*
|
|
@@ -556,7 +607,9 @@ export const AdminApiFactory = function (configuration, basePath, axios) {
|
|
|
556
607
|
* @throws {RequiredError}
|
|
557
608
|
*/
|
|
558
609
|
adminControllerGetAllUsers(requestParameters, options) {
|
|
559
|
-
return localVarFp
|
|
610
|
+
return localVarFp
|
|
611
|
+
.adminControllerGetAllUsers(requestParameters.skip, requestParameters.take, options)
|
|
612
|
+
.then((request) => request(axios, basePath));
|
|
560
613
|
},
|
|
561
614
|
/**
|
|
562
615
|
*
|
|
@@ -566,7 +619,9 @@ export const AdminApiFactory = function (configuration, basePath, axios) {
|
|
|
566
619
|
* @throws {RequiredError}
|
|
567
620
|
*/
|
|
568
621
|
adminControllerGetUserById(requestParameters, options) {
|
|
569
|
-
return localVarFp
|
|
622
|
+
return localVarFp
|
|
623
|
+
.adminControllerGetUserById(requestParameters.userId, options)
|
|
624
|
+
.then((request) => request(axios, basePath));
|
|
570
625
|
},
|
|
571
626
|
/**
|
|
572
627
|
*
|
|
@@ -576,7 +631,9 @@ export const AdminApiFactory = function (configuration, basePath, axios) {
|
|
|
576
631
|
* @throws {RequiredError}
|
|
577
632
|
*/
|
|
578
633
|
adminControllerRemoveRoleFromUser(requestParameters, options) {
|
|
579
|
-
return localVarFp
|
|
634
|
+
return localVarFp
|
|
635
|
+
.adminControllerRemoveRoleFromUser(requestParameters.userId, requestParameters.removeRoleDto, options)
|
|
636
|
+
.then((request) => request(axios, basePath));
|
|
580
637
|
},
|
|
581
638
|
/**
|
|
582
639
|
*
|
|
@@ -586,7 +643,9 @@ export const AdminApiFactory = function (configuration, basePath, axios) {
|
|
|
586
643
|
* @throws {RequiredError}
|
|
587
644
|
*/
|
|
588
645
|
adminControllerSearchUsers(requestParameters, options) {
|
|
589
|
-
return localVarFp
|
|
646
|
+
return localVarFp
|
|
647
|
+
.adminControllerSearchUsers(requestParameters.q, options)
|
|
648
|
+
.then((request) => request(axios, basePath));
|
|
590
649
|
},
|
|
591
650
|
/**
|
|
592
651
|
*
|
|
@@ -596,7 +655,9 @@ export const AdminApiFactory = function (configuration, basePath, axios) {
|
|
|
596
655
|
* @throws {RequiredError}
|
|
597
656
|
*/
|
|
598
657
|
adminControllerToggleUserAccess(requestParameters, options) {
|
|
599
|
-
return localVarFp
|
|
658
|
+
return localVarFp
|
|
659
|
+
.adminControllerToggleUserAccess(requestParameters.userId, requestParameters.toggleAccessDto, options)
|
|
660
|
+
.then((request) => request(axios, basePath));
|
|
600
661
|
},
|
|
601
662
|
/**
|
|
602
663
|
*
|
|
@@ -606,7 +667,9 @@ export const AdminApiFactory = function (configuration, basePath, axios) {
|
|
|
606
667
|
* @throws {RequiredError}
|
|
607
668
|
*/
|
|
608
669
|
adminControllerToggleUserActive(requestParameters, options) {
|
|
609
|
-
return localVarFp
|
|
670
|
+
return localVarFp
|
|
671
|
+
.adminControllerToggleUserActive(requestParameters.userId, requestParameters.toggleActiveDto, options)
|
|
672
|
+
.then((request) => request(axios, basePath));
|
|
610
673
|
},
|
|
611
674
|
/**
|
|
612
675
|
*
|
|
@@ -616,7 +679,9 @@ export const AdminApiFactory = function (configuration, basePath, axios) {
|
|
|
616
679
|
* @throws {RequiredError}
|
|
617
680
|
*/
|
|
618
681
|
adminControllerUpdateUserRoles(requestParameters, options) {
|
|
619
|
-
return localVarFp
|
|
682
|
+
return localVarFp
|
|
683
|
+
.adminControllerUpdateUserRoles(requestParameters.userId, requestParameters.updateUserRolesDto, options)
|
|
684
|
+
.then((request) => request(axios, basePath));
|
|
620
685
|
},
|
|
621
686
|
};
|
|
622
687
|
};
|
|
@@ -636,7 +701,9 @@ export class AdminApi extends BaseAPI {
|
|
|
636
701
|
* @memberof AdminApi
|
|
637
702
|
*/
|
|
638
703
|
adminControllerAddRoleToUser(requestParameters, options) {
|
|
639
|
-
return AdminApiFp(this.configuration)
|
|
704
|
+
return AdminApiFp(this.configuration)
|
|
705
|
+
.adminControllerAddRoleToUser(requestParameters.userId, requestParameters.addRoleDto, options)
|
|
706
|
+
.then((request) => request(this.axios, this.basePath));
|
|
640
707
|
}
|
|
641
708
|
/**
|
|
642
709
|
*
|
|
@@ -647,7 +714,9 @@ export class AdminApi extends BaseAPI {
|
|
|
647
714
|
* @memberof AdminApi
|
|
648
715
|
*/
|
|
649
716
|
adminControllerDeleteUser(requestParameters, options) {
|
|
650
|
-
return AdminApiFp(this.configuration)
|
|
717
|
+
return AdminApiFp(this.configuration)
|
|
718
|
+
.adminControllerDeleteUser(requestParameters.userId, options)
|
|
719
|
+
.then((request) => request(this.axios, this.basePath));
|
|
651
720
|
}
|
|
652
721
|
/**
|
|
653
722
|
*
|
|
@@ -658,7 +727,9 @@ export class AdminApi extends BaseAPI {
|
|
|
658
727
|
* @memberof AdminApi
|
|
659
728
|
*/
|
|
660
729
|
adminControllerGetAllUsers(requestParameters, options) {
|
|
661
|
-
return AdminApiFp(this.configuration)
|
|
730
|
+
return AdminApiFp(this.configuration)
|
|
731
|
+
.adminControllerGetAllUsers(requestParameters.skip, requestParameters.take, options)
|
|
732
|
+
.then((request) => request(this.axios, this.basePath));
|
|
662
733
|
}
|
|
663
734
|
/**
|
|
664
735
|
*
|
|
@@ -669,7 +740,9 @@ export class AdminApi extends BaseAPI {
|
|
|
669
740
|
* @memberof AdminApi
|
|
670
741
|
*/
|
|
671
742
|
adminControllerGetUserById(requestParameters, options) {
|
|
672
|
-
return AdminApiFp(this.configuration)
|
|
743
|
+
return AdminApiFp(this.configuration)
|
|
744
|
+
.adminControllerGetUserById(requestParameters.userId, options)
|
|
745
|
+
.then((request) => request(this.axios, this.basePath));
|
|
673
746
|
}
|
|
674
747
|
/**
|
|
675
748
|
*
|
|
@@ -680,7 +753,9 @@ export class AdminApi extends BaseAPI {
|
|
|
680
753
|
* @memberof AdminApi
|
|
681
754
|
*/
|
|
682
755
|
adminControllerRemoveRoleFromUser(requestParameters, options) {
|
|
683
|
-
return AdminApiFp(this.configuration)
|
|
756
|
+
return AdminApiFp(this.configuration)
|
|
757
|
+
.adminControllerRemoveRoleFromUser(requestParameters.userId, requestParameters.removeRoleDto, options)
|
|
758
|
+
.then((request) => request(this.axios, this.basePath));
|
|
684
759
|
}
|
|
685
760
|
/**
|
|
686
761
|
*
|
|
@@ -691,7 +766,9 @@ export class AdminApi extends BaseAPI {
|
|
|
691
766
|
* @memberof AdminApi
|
|
692
767
|
*/
|
|
693
768
|
adminControllerSearchUsers(requestParameters, options) {
|
|
694
|
-
return AdminApiFp(this.configuration)
|
|
769
|
+
return AdminApiFp(this.configuration)
|
|
770
|
+
.adminControllerSearchUsers(requestParameters.q, options)
|
|
771
|
+
.then((request) => request(this.axios, this.basePath));
|
|
695
772
|
}
|
|
696
773
|
/**
|
|
697
774
|
*
|
|
@@ -702,7 +779,9 @@ export class AdminApi extends BaseAPI {
|
|
|
702
779
|
* @memberof AdminApi
|
|
703
780
|
*/
|
|
704
781
|
adminControllerToggleUserAccess(requestParameters, options) {
|
|
705
|
-
return AdminApiFp(this.configuration)
|
|
782
|
+
return AdminApiFp(this.configuration)
|
|
783
|
+
.adminControllerToggleUserAccess(requestParameters.userId, requestParameters.toggleAccessDto, options)
|
|
784
|
+
.then((request) => request(this.axios, this.basePath));
|
|
706
785
|
}
|
|
707
786
|
/**
|
|
708
787
|
*
|
|
@@ -713,7 +792,9 @@ export class AdminApi extends BaseAPI {
|
|
|
713
792
|
* @memberof AdminApi
|
|
714
793
|
*/
|
|
715
794
|
adminControllerToggleUserActive(requestParameters, options) {
|
|
716
|
-
return AdminApiFp(this.configuration)
|
|
795
|
+
return AdminApiFp(this.configuration)
|
|
796
|
+
.adminControllerToggleUserActive(requestParameters.userId, requestParameters.toggleActiveDto, options)
|
|
797
|
+
.then((request) => request(this.axios, this.basePath));
|
|
717
798
|
}
|
|
718
799
|
/**
|
|
719
800
|
*
|
|
@@ -724,7 +805,9 @@ export class AdminApi extends BaseAPI {
|
|
|
724
805
|
* @memberof AdminApi
|
|
725
806
|
*/
|
|
726
807
|
adminControllerUpdateUserRoles(requestParameters, options) {
|
|
727
|
-
return AdminApiFp(this.configuration)
|
|
808
|
+
return AdminApiFp(this.configuration)
|
|
809
|
+
.adminControllerUpdateUserRoles(requestParameters.userId, requestParameters.updateUserRolesDto, options)
|
|
810
|
+
.then((request) => request(this.axios, this.basePath));
|
|
728
811
|
}
|
|
729
812
|
}
|
|
730
813
|
/**
|
|
@@ -1553,7 +1636,9 @@ export const ApiV1AuthApiFactory = function (configuration, basePath, axios) {
|
|
|
1553
1636
|
* @throws {RequiredError}
|
|
1554
1637
|
*/
|
|
1555
1638
|
authControllerLinkProvider(requestParameters, options) {
|
|
1556
|
-
return localVarFp
|
|
1639
|
+
return localVarFp
|
|
1640
|
+
.authControllerLinkProvider(requestParameters.body, options)
|
|
1641
|
+
.then((request) => request(axios, basePath));
|
|
1557
1642
|
},
|
|
1558
1643
|
/**
|
|
1559
1644
|
*
|
|
@@ -1563,7 +1648,9 @@ export const ApiV1AuthApiFactory = function (configuration, basePath, axios) {
|
|
|
1563
1648
|
* @throws {RequiredError}
|
|
1564
1649
|
*/
|
|
1565
1650
|
authControllerLogin(requestParameters, options) {
|
|
1566
|
-
return localVarFp
|
|
1651
|
+
return localVarFp
|
|
1652
|
+
.authControllerLogin(requestParameters.body, options)
|
|
1653
|
+
.then((request) => request(axios, basePath));
|
|
1567
1654
|
},
|
|
1568
1655
|
/**
|
|
1569
1656
|
*
|
|
@@ -1591,7 +1678,9 @@ export const ApiV1AuthApiFactory = function (configuration, basePath, axios) {
|
|
|
1591
1678
|
* @throws {RequiredError}
|
|
1592
1679
|
*/
|
|
1593
1680
|
authControllerRegister(requestParameters, options) {
|
|
1594
|
-
return localVarFp
|
|
1681
|
+
return localVarFp
|
|
1682
|
+
.authControllerRegister(requestParameters.body, options)
|
|
1683
|
+
.then((request) => request(axios, basePath));
|
|
1595
1684
|
},
|
|
1596
1685
|
/**
|
|
1597
1686
|
*
|
|
@@ -1601,7 +1690,9 @@ export const ApiV1AuthApiFactory = function (configuration, basePath, axios) {
|
|
|
1601
1690
|
* @throws {RequiredError}
|
|
1602
1691
|
*/
|
|
1603
1692
|
authControllerRequestPasswordReset(requestParameters, options) {
|
|
1604
|
-
return localVarFp
|
|
1693
|
+
return localVarFp
|
|
1694
|
+
.authControllerRequestPasswordReset(requestParameters.requestPasswordResetDto, options)
|
|
1695
|
+
.then((request) => request(axios, basePath));
|
|
1605
1696
|
},
|
|
1606
1697
|
/**
|
|
1607
1698
|
*
|
|
@@ -1611,7 +1702,9 @@ export const ApiV1AuthApiFactory = function (configuration, basePath, axios) {
|
|
|
1611
1702
|
* @throws {RequiredError}
|
|
1612
1703
|
*/
|
|
1613
1704
|
authControllerResendVerification(requestParameters, options) {
|
|
1614
|
-
return localVarFp
|
|
1705
|
+
return localVarFp
|
|
1706
|
+
.authControllerResendVerification(requestParameters.resendVerificationDto, options)
|
|
1707
|
+
.then((request) => request(axios, basePath));
|
|
1615
1708
|
},
|
|
1616
1709
|
/**
|
|
1617
1710
|
*
|
|
@@ -1621,7 +1714,9 @@ export const ApiV1AuthApiFactory = function (configuration, basePath, axios) {
|
|
|
1621
1714
|
* @throws {RequiredError}
|
|
1622
1715
|
*/
|
|
1623
1716
|
authControllerResetPassword(requestParameters, options) {
|
|
1624
|
-
return localVarFp
|
|
1717
|
+
return localVarFp
|
|
1718
|
+
.authControllerResetPassword(requestParameters.resetPasswordDto, options)
|
|
1719
|
+
.then((request) => request(axios, basePath));
|
|
1625
1720
|
},
|
|
1626
1721
|
/**
|
|
1627
1722
|
*
|
|
@@ -1631,7 +1726,9 @@ export const ApiV1AuthApiFactory = function (configuration, basePath, axios) {
|
|
|
1631
1726
|
* @throws {RequiredError}
|
|
1632
1727
|
*/
|
|
1633
1728
|
authControllerVerifyEmail(requestParameters, options) {
|
|
1634
|
-
return localVarFp
|
|
1729
|
+
return localVarFp
|
|
1730
|
+
.authControllerVerifyEmail(requestParameters.verifyEmailDto, options)
|
|
1731
|
+
.then((request) => request(axios, basePath));
|
|
1635
1732
|
},
|
|
1636
1733
|
};
|
|
1637
1734
|
};
|
|
@@ -1650,7 +1747,9 @@ export class ApiV1AuthApi extends BaseAPI {
|
|
|
1650
1747
|
* @memberof ApiV1AuthApi
|
|
1651
1748
|
*/
|
|
1652
1749
|
authControllerDiscordAuth(options) {
|
|
1653
|
-
return ApiV1AuthApiFp(this.configuration)
|
|
1750
|
+
return ApiV1AuthApiFp(this.configuration)
|
|
1751
|
+
.authControllerDiscordAuth(options)
|
|
1752
|
+
.then((request) => request(this.axios, this.basePath));
|
|
1654
1753
|
}
|
|
1655
1754
|
/**
|
|
1656
1755
|
*
|
|
@@ -1660,7 +1759,9 @@ export class ApiV1AuthApi extends BaseAPI {
|
|
|
1660
1759
|
* @memberof ApiV1AuthApi
|
|
1661
1760
|
*/
|
|
1662
1761
|
authControllerDiscordCallback(options) {
|
|
1663
|
-
return ApiV1AuthApiFp(this.configuration)
|
|
1762
|
+
return ApiV1AuthApiFp(this.configuration)
|
|
1763
|
+
.authControllerDiscordCallback(options)
|
|
1764
|
+
.then((request) => request(this.axios, this.basePath));
|
|
1664
1765
|
}
|
|
1665
1766
|
/**
|
|
1666
1767
|
*
|
|
@@ -1670,7 +1771,9 @@ export class ApiV1AuthApi extends BaseAPI {
|
|
|
1670
1771
|
* @memberof ApiV1AuthApi
|
|
1671
1772
|
*/
|
|
1672
1773
|
authControllerGetProviders(options) {
|
|
1673
|
-
return ApiV1AuthApiFp(this.configuration)
|
|
1774
|
+
return ApiV1AuthApiFp(this.configuration)
|
|
1775
|
+
.authControllerGetProviders(options)
|
|
1776
|
+
.then((request) => request(this.axios, this.basePath));
|
|
1674
1777
|
}
|
|
1675
1778
|
/**
|
|
1676
1779
|
*
|
|
@@ -1680,7 +1783,9 @@ export class ApiV1AuthApi extends BaseAPI {
|
|
|
1680
1783
|
* @memberof ApiV1AuthApi
|
|
1681
1784
|
*/
|
|
1682
1785
|
authControllerGithubAuth(options) {
|
|
1683
|
-
return ApiV1AuthApiFp(this.configuration)
|
|
1786
|
+
return ApiV1AuthApiFp(this.configuration)
|
|
1787
|
+
.authControllerGithubAuth(options)
|
|
1788
|
+
.then((request) => request(this.axios, this.basePath));
|
|
1684
1789
|
}
|
|
1685
1790
|
/**
|
|
1686
1791
|
*
|
|
@@ -1690,7 +1795,9 @@ export class ApiV1AuthApi extends BaseAPI {
|
|
|
1690
1795
|
* @memberof ApiV1AuthApi
|
|
1691
1796
|
*/
|
|
1692
1797
|
authControllerGithubCallback(options) {
|
|
1693
|
-
return ApiV1AuthApiFp(this.configuration)
|
|
1798
|
+
return ApiV1AuthApiFp(this.configuration)
|
|
1799
|
+
.authControllerGithubCallback(options)
|
|
1800
|
+
.then((request) => request(this.axios, this.basePath));
|
|
1694
1801
|
}
|
|
1695
1802
|
/**
|
|
1696
1803
|
*
|
|
@@ -1700,7 +1807,9 @@ export class ApiV1AuthApi extends BaseAPI {
|
|
|
1700
1807
|
* @memberof ApiV1AuthApi
|
|
1701
1808
|
*/
|
|
1702
1809
|
authControllerGoogleAuth(options) {
|
|
1703
|
-
return ApiV1AuthApiFp(this.configuration)
|
|
1810
|
+
return ApiV1AuthApiFp(this.configuration)
|
|
1811
|
+
.authControllerGoogleAuth(options)
|
|
1812
|
+
.then((request) => request(this.axios, this.basePath));
|
|
1704
1813
|
}
|
|
1705
1814
|
/**
|
|
1706
1815
|
*
|
|
@@ -1710,7 +1819,9 @@ export class ApiV1AuthApi extends BaseAPI {
|
|
|
1710
1819
|
* @memberof ApiV1AuthApi
|
|
1711
1820
|
*/
|
|
1712
1821
|
authControllerGoogleCallback(options) {
|
|
1713
|
-
return ApiV1AuthApiFp(this.configuration)
|
|
1822
|
+
return ApiV1AuthApiFp(this.configuration)
|
|
1823
|
+
.authControllerGoogleCallback(options)
|
|
1824
|
+
.then((request) => request(this.axios, this.basePath));
|
|
1714
1825
|
}
|
|
1715
1826
|
/**
|
|
1716
1827
|
*
|
|
@@ -1720,7 +1831,9 @@ export class ApiV1AuthApi extends BaseAPI {
|
|
|
1720
1831
|
* @memberof ApiV1AuthApi
|
|
1721
1832
|
*/
|
|
1722
1833
|
authControllerHealthCheck(options) {
|
|
1723
|
-
return ApiV1AuthApiFp(this.configuration)
|
|
1834
|
+
return ApiV1AuthApiFp(this.configuration)
|
|
1835
|
+
.authControllerHealthCheck(options)
|
|
1836
|
+
.then((request) => request(this.axios, this.basePath));
|
|
1724
1837
|
}
|
|
1725
1838
|
/**
|
|
1726
1839
|
*
|
|
@@ -1731,7 +1844,9 @@ export class ApiV1AuthApi extends BaseAPI {
|
|
|
1731
1844
|
* @memberof ApiV1AuthApi
|
|
1732
1845
|
*/
|
|
1733
1846
|
authControllerLinkProvider(requestParameters, options) {
|
|
1734
|
-
return ApiV1AuthApiFp(this.configuration)
|
|
1847
|
+
return ApiV1AuthApiFp(this.configuration)
|
|
1848
|
+
.authControllerLinkProvider(requestParameters.body, options)
|
|
1849
|
+
.then((request) => request(this.axios, this.basePath));
|
|
1735
1850
|
}
|
|
1736
1851
|
/**
|
|
1737
1852
|
*
|
|
@@ -1742,7 +1857,9 @@ export class ApiV1AuthApi extends BaseAPI {
|
|
|
1742
1857
|
* @memberof ApiV1AuthApi
|
|
1743
1858
|
*/
|
|
1744
1859
|
authControllerLogin(requestParameters, options) {
|
|
1745
|
-
return ApiV1AuthApiFp(this.configuration)
|
|
1860
|
+
return ApiV1AuthApiFp(this.configuration)
|
|
1861
|
+
.authControllerLogin(requestParameters.body, options)
|
|
1862
|
+
.then((request) => request(this.axios, this.basePath));
|
|
1746
1863
|
}
|
|
1747
1864
|
/**
|
|
1748
1865
|
*
|
|
@@ -1752,7 +1869,9 @@ export class ApiV1AuthApi extends BaseAPI {
|
|
|
1752
1869
|
* @memberof ApiV1AuthApi
|
|
1753
1870
|
*/
|
|
1754
1871
|
authControllerLogout(options) {
|
|
1755
|
-
return ApiV1AuthApiFp(this.configuration)
|
|
1872
|
+
return ApiV1AuthApiFp(this.configuration)
|
|
1873
|
+
.authControllerLogout(options)
|
|
1874
|
+
.then((request) => request(this.axios, this.basePath));
|
|
1756
1875
|
}
|
|
1757
1876
|
/**
|
|
1758
1877
|
*
|
|
@@ -1762,7 +1881,9 @@ export class ApiV1AuthApi extends BaseAPI {
|
|
|
1762
1881
|
* @memberof ApiV1AuthApi
|
|
1763
1882
|
*/
|
|
1764
1883
|
authControllerRefresh(options) {
|
|
1765
|
-
return ApiV1AuthApiFp(this.configuration)
|
|
1884
|
+
return ApiV1AuthApiFp(this.configuration)
|
|
1885
|
+
.authControllerRefresh(options)
|
|
1886
|
+
.then((request) => request(this.axios, this.basePath));
|
|
1766
1887
|
}
|
|
1767
1888
|
/**
|
|
1768
1889
|
*
|
|
@@ -1773,7 +1894,9 @@ export class ApiV1AuthApi extends BaseAPI {
|
|
|
1773
1894
|
* @memberof ApiV1AuthApi
|
|
1774
1895
|
*/
|
|
1775
1896
|
authControllerRegister(requestParameters, options) {
|
|
1776
|
-
return ApiV1AuthApiFp(this.configuration)
|
|
1897
|
+
return ApiV1AuthApiFp(this.configuration)
|
|
1898
|
+
.authControllerRegister(requestParameters.body, options)
|
|
1899
|
+
.then((request) => request(this.axios, this.basePath));
|
|
1777
1900
|
}
|
|
1778
1901
|
/**
|
|
1779
1902
|
*
|
|
@@ -1784,7 +1907,9 @@ export class ApiV1AuthApi extends BaseAPI {
|
|
|
1784
1907
|
* @memberof ApiV1AuthApi
|
|
1785
1908
|
*/
|
|
1786
1909
|
authControllerRequestPasswordReset(requestParameters, options) {
|
|
1787
|
-
return ApiV1AuthApiFp(this.configuration)
|
|
1910
|
+
return ApiV1AuthApiFp(this.configuration)
|
|
1911
|
+
.authControllerRequestPasswordReset(requestParameters.requestPasswordResetDto, options)
|
|
1912
|
+
.then((request) => request(this.axios, this.basePath));
|
|
1788
1913
|
}
|
|
1789
1914
|
/**
|
|
1790
1915
|
*
|
|
@@ -1795,7 +1920,9 @@ export class ApiV1AuthApi extends BaseAPI {
|
|
|
1795
1920
|
* @memberof ApiV1AuthApi
|
|
1796
1921
|
*/
|
|
1797
1922
|
authControllerResendVerification(requestParameters, options) {
|
|
1798
|
-
return ApiV1AuthApiFp(this.configuration)
|
|
1923
|
+
return ApiV1AuthApiFp(this.configuration)
|
|
1924
|
+
.authControllerResendVerification(requestParameters.resendVerificationDto, options)
|
|
1925
|
+
.then((request) => request(this.axios, this.basePath));
|
|
1799
1926
|
}
|
|
1800
1927
|
/**
|
|
1801
1928
|
*
|
|
@@ -1806,7 +1933,9 @@ export class ApiV1AuthApi extends BaseAPI {
|
|
|
1806
1933
|
* @memberof ApiV1AuthApi
|
|
1807
1934
|
*/
|
|
1808
1935
|
authControllerResetPassword(requestParameters, options) {
|
|
1809
|
-
return ApiV1AuthApiFp(this.configuration)
|
|
1936
|
+
return ApiV1AuthApiFp(this.configuration)
|
|
1937
|
+
.authControllerResetPassword(requestParameters.resetPasswordDto, options)
|
|
1938
|
+
.then((request) => request(this.axios, this.basePath));
|
|
1810
1939
|
}
|
|
1811
1940
|
/**
|
|
1812
1941
|
*
|
|
@@ -1817,7 +1946,9 @@ export class ApiV1AuthApi extends BaseAPI {
|
|
|
1817
1946
|
* @memberof ApiV1AuthApi
|
|
1818
1947
|
*/
|
|
1819
1948
|
authControllerVerifyEmail(requestParameters, options) {
|
|
1820
|
-
return ApiV1AuthApiFp(this.configuration)
|
|
1949
|
+
return ApiV1AuthApiFp(this.configuration)
|
|
1950
|
+
.authControllerVerifyEmail(requestParameters.verifyEmailDto, options)
|
|
1951
|
+
.then((request) => request(this.axios, this.basePath));
|
|
1821
1952
|
}
|
|
1822
1953
|
}
|
|
1823
1954
|
/**
|
|
@@ -1827,46 +1958,16 @@ export class ApiV1AuthApi extends BaseAPI {
|
|
|
1827
1958
|
export const ApiV1SsoApiAxiosParamCreator = function (configuration) {
|
|
1828
1959
|
return {
|
|
1829
1960
|
/**
|
|
1830
|
-
* Generates a
|
|
1831
|
-
* @summary Generate
|
|
1832
|
-
* @param {
|
|
1833
|
-
* @param {*} [options] Override http request option.
|
|
1834
|
-
* @throws {RequiredError}
|
|
1835
|
-
*/
|
|
1836
|
-
ssoControllerGenerateLocalCode: (body_1, ...args_1) => __awaiter(this, [body_1, ...args_1], void 0, function* (body, options = {}) {
|
|
1837
|
-
// verify required parameter 'body' is not null or undefined
|
|
1838
|
-
assertParamExists('ssoControllerGenerateLocalCode', 'body', body);
|
|
1839
|
-
const localVarPath = `/api/v1/sso/generate-code`;
|
|
1840
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1841
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1842
|
-
let baseOptions;
|
|
1843
|
-
if (configuration) {
|
|
1844
|
-
baseOptions = configuration.baseOptions;
|
|
1845
|
-
}
|
|
1846
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1847
|
-
const localVarHeaderParameter = {};
|
|
1848
|
-
const localVarQueryParameter = {};
|
|
1849
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1850
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1851
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1852
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1853
|
-
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
|
|
1854
|
-
return {
|
|
1855
|
-
url: toPathString(localVarUrlObj),
|
|
1856
|
-
options: localVarRequestOptions,
|
|
1857
|
-
};
|
|
1858
|
-
}),
|
|
1859
|
-
/**
|
|
1860
|
-
* Validates an authorization code and returns the associated user information. The code is consumed upon successful validation and cannot be reused.
|
|
1861
|
-
* @summary Validate and consume an authorization code
|
|
1862
|
-
* @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
|
|
1863
1964
|
* @param {*} [options] Override http request option.
|
|
1864
1965
|
* @throws {RequiredError}
|
|
1865
1966
|
*/
|
|
1866
|
-
|
|
1867
|
-
// verify required parameter '
|
|
1868
|
-
assertParamExists('
|
|
1869
|
-
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`;
|
|
1870
1971
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1871
1972
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1872
1973
|
let baseOptions;
|
|
@@ -1880,7 +1981,7 @@ export const ApiV1SsoApiAxiosParamCreator = function (configuration) {
|
|
|
1880
1981
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1881
1982
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1882
1983
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1883
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
1984
|
+
localVarRequestOptions.data = serializeDataIfNeeded(ssoTokenRequestDto, localVarRequestOptions, configuration);
|
|
1884
1985
|
return {
|
|
1885
1986
|
url: toPathString(localVarUrlObj),
|
|
1886
1987
|
options: localVarRequestOptions,
|
|
@@ -1896,34 +1997,18 @@ export const ApiV1SsoApiFp = function (configuration) {
|
|
|
1896
1997
|
const localVarAxiosParamCreator = ApiV1SsoApiAxiosParamCreator(configuration);
|
|
1897
1998
|
return {
|
|
1898
1999
|
/**
|
|
1899
|
-
* Generates a
|
|
1900
|
-
* @summary Generate
|
|
1901
|
-
* @param {
|
|
1902
|
-
* @param {*} [options] Override http request option.
|
|
1903
|
-
* @throws {RequiredError}
|
|
1904
|
-
*/
|
|
1905
|
-
ssoControllerGenerateLocalCode(body, options) {
|
|
1906
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1907
|
-
var _a, _b, _c;
|
|
1908
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.ssoControllerGenerateLocalCode(body, options);
|
|
1909
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1910
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ApiV1SsoApi.ssoControllerGenerateLocalCode']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1911
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1912
|
-
});
|
|
1913
|
-
},
|
|
1914
|
-
/**
|
|
1915
|
-
* Validates an authorization code and returns the associated user information. The code is consumed upon successful validation and cannot be reused.
|
|
1916
|
-
* @summary Validate and consume an authorization code
|
|
1917
|
-
* @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
|
|
1918
2003
|
* @param {*} [options] Override http request option.
|
|
1919
2004
|
* @throws {RequiredError}
|
|
1920
2005
|
*/
|
|
1921
|
-
|
|
2006
|
+
ssoControllerGenerateToken(ssoTokenRequestDto, options) {
|
|
1922
2007
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1923
2008
|
var _a, _b, _c;
|
|
1924
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
2009
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.ssoControllerGenerateToken(ssoTokenRequestDto, options);
|
|
1925
2010
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1926
|
-
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;
|
|
1927
2012
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1928
2013
|
});
|
|
1929
2014
|
},
|
|
@@ -1937,24 +2022,16 @@ export const ApiV1SsoApiFactory = function (configuration, basePath, axios) {
|
|
|
1937
2022
|
const localVarFp = ApiV1SsoApiFp(configuration);
|
|
1938
2023
|
return {
|
|
1939
2024
|
/**
|
|
1940
|
-
* Generates a
|
|
1941
|
-
* @summary Generate
|
|
1942
|
-
* @param {
|
|
1943
|
-
* @param {*} [options] Override http request option.
|
|
1944
|
-
* @throws {RequiredError}
|
|
1945
|
-
*/
|
|
1946
|
-
ssoControllerGenerateLocalCode(requestParameters, options) {
|
|
1947
|
-
return localVarFp.ssoControllerGenerateLocalCode(requestParameters.body, options).then((request) => request(axios, basePath));
|
|
1948
|
-
},
|
|
1949
|
-
/**
|
|
1950
|
-
* Validates an authorization code and returns the associated user information. The code is consumed upon successful validation and cannot be reused.
|
|
1951
|
-
* @summary Validate and consume an authorization code
|
|
1952
|
-
* @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.
|
|
1953
2028
|
* @param {*} [options] Override http request option.
|
|
1954
2029
|
* @throws {RequiredError}
|
|
1955
2030
|
*/
|
|
1956
|
-
|
|
1957
|
-
return localVarFp
|
|
2031
|
+
ssoControllerGenerateToken(requestParameters, options) {
|
|
2032
|
+
return localVarFp
|
|
2033
|
+
.ssoControllerGenerateToken(requestParameters.ssoTokenRequestDto, options)
|
|
2034
|
+
.then((request) => request(axios, basePath));
|
|
1958
2035
|
},
|
|
1959
2036
|
};
|
|
1960
2037
|
};
|
|
@@ -1966,26 +2043,17 @@ export const ApiV1SsoApiFactory = function (configuration, basePath, axios) {
|
|
|
1966
2043
|
*/
|
|
1967
2044
|
export class ApiV1SsoApi extends BaseAPI {
|
|
1968
2045
|
/**
|
|
1969
|
-
* Generates a
|
|
1970
|
-
* @summary Generate
|
|
1971
|
-
* @param {
|
|
1972
|
-
* @param {*} [options] Override http request option.
|
|
1973
|
-
* @throws {RequiredError}
|
|
1974
|
-
* @memberof ApiV1SsoApi
|
|
1975
|
-
*/
|
|
1976
|
-
ssoControllerGenerateLocalCode(requestParameters, options) {
|
|
1977
|
-
return ApiV1SsoApiFp(this.configuration).ssoControllerGenerateLocalCode(requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
1978
|
-
}
|
|
1979
|
-
/**
|
|
1980
|
-
* Validates an authorization code and returns the associated user information. The code is consumed upon successful validation and cannot be reused.
|
|
1981
|
-
* @summary Validate and consume an authorization code
|
|
1982
|
-
* @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.
|
|
1983
2049
|
* @param {*} [options] Override http request option.
|
|
1984
2050
|
* @throws {RequiredError}
|
|
1985
2051
|
* @memberof ApiV1SsoApi
|
|
1986
2052
|
*/
|
|
1987
|
-
|
|
1988
|
-
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));
|
|
1989
2057
|
}
|
|
1990
2058
|
}
|
|
1991
2059
|
/**
|
|
@@ -2127,7 +2195,9 @@ export class ApiV1UserApi extends BaseAPI {
|
|
|
2127
2195
|
* @memberof ApiV1UserApi
|
|
2128
2196
|
*/
|
|
2129
2197
|
userControllerDeleteAccount(options) {
|
|
2130
|
-
return ApiV1UserApiFp(this.configuration)
|
|
2198
|
+
return ApiV1UserApiFp(this.configuration)
|
|
2199
|
+
.userControllerDeleteAccount(options)
|
|
2200
|
+
.then((request) => request(this.axios, this.basePath));
|
|
2131
2201
|
}
|
|
2132
2202
|
/**
|
|
2133
2203
|
*
|
|
@@ -2137,7 +2207,9 @@ export class ApiV1UserApi extends BaseAPI {
|
|
|
2137
2207
|
* @memberof ApiV1UserApi
|
|
2138
2208
|
*/
|
|
2139
2209
|
userControllerInfo(options) {
|
|
2140
|
-
return ApiV1UserApiFp(this.configuration)
|
|
2210
|
+
return ApiV1UserApiFp(this.configuration)
|
|
2211
|
+
.userControllerInfo(options)
|
|
2212
|
+
.then((request) => request(this.axios, this.basePath));
|
|
2141
2213
|
}
|
|
2142
2214
|
}
|
|
2143
2215
|
/**
|
|
@@ -2264,7 +2336,9 @@ export const ApiV1UserSettingsApiFactory = function (configuration, basePath, ax
|
|
|
2264
2336
|
* @throws {RequiredError}
|
|
2265
2337
|
*/
|
|
2266
2338
|
userSettingsControllerUpdateSettings(requestParameters, options) {
|
|
2267
|
-
return localVarFp
|
|
2339
|
+
return localVarFp
|
|
2340
|
+
.userSettingsControllerUpdateSettings(requestParameters.userSettingsUpdateDto, options)
|
|
2341
|
+
.then((request) => request(axios, basePath));
|
|
2268
2342
|
},
|
|
2269
2343
|
};
|
|
2270
2344
|
};
|
|
@@ -2282,7 +2356,9 @@ export class ApiV1UserSettingsApi extends BaseAPI {
|
|
|
2282
2356
|
* @memberof ApiV1UserSettingsApi
|
|
2283
2357
|
*/
|
|
2284
2358
|
userSettingsControllerGetSettings(options) {
|
|
2285
|
-
return ApiV1UserSettingsApiFp(this.configuration)
|
|
2359
|
+
return ApiV1UserSettingsApiFp(this.configuration)
|
|
2360
|
+
.userSettingsControllerGetSettings(options)
|
|
2361
|
+
.then((request) => request(this.axios, this.basePath));
|
|
2286
2362
|
}
|
|
2287
2363
|
/**
|
|
2288
2364
|
*
|
|
@@ -2293,7 +2369,9 @@ export class ApiV1UserSettingsApi extends BaseAPI {
|
|
|
2293
2369
|
* @memberof ApiV1UserSettingsApi
|
|
2294
2370
|
*/
|
|
2295
2371
|
userSettingsControllerUpdateSettings(requestParameters, options) {
|
|
2296
|
-
return ApiV1UserSettingsApiFp(this.configuration)
|
|
2372
|
+
return ApiV1UserSettingsApiFp(this.configuration)
|
|
2373
|
+
.userSettingsControllerUpdateSettings(requestParameters.userSettingsUpdateDto, options)
|
|
2374
|
+
.then((request) => request(this.axios, this.basePath));
|
|
2297
2375
|
}
|
|
2298
2376
|
}
|
|
2299
2377
|
/**
|
|
@@ -2372,8 +2450,7 @@ export const ApiV1WorkersApiAxiosParamCreator = function (configuration) {
|
|
|
2372
2450
|
workerControllerDeleteWorker: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
2373
2451
|
// verify required parameter 'id' is not null or undefined
|
|
2374
2452
|
assertParamExists('workerControllerDeleteWorker', 'id', id);
|
|
2375
|
-
const localVarPath = `/api/v1/workers/id/{id}`
|
|
2376
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
2453
|
+
const localVarPath = `/api/v1/workers/id/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
2377
2454
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2378
2455
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2379
2456
|
let baseOptions;
|
|
@@ -2391,35 +2468,6 @@ export const ApiV1WorkersApiAxiosParamCreator = function (configuration) {
|
|
|
2391
2468
|
options: localVarRequestOptions,
|
|
2392
2469
|
};
|
|
2393
2470
|
}),
|
|
2394
|
-
/**
|
|
2395
|
-
*
|
|
2396
|
-
* @summary Create a worker secret
|
|
2397
|
-
* @param {string} id The ID of the worker
|
|
2398
|
-
* @param {*} [options] Override http request option.
|
|
2399
|
-
* @throws {RequiredError}
|
|
2400
|
-
*/
|
|
2401
|
-
workerControllerGenerateWorkerSecret: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
2402
|
-
// verify required parameter 'id' is not null or undefined
|
|
2403
|
-
assertParamExists('workerControllerGenerateWorkerSecret', 'id', id);
|
|
2404
|
-
const localVarPath = `/api/v1/workers/{id}/generate-secret`
|
|
2405
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
2406
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2407
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2408
|
-
let baseOptions;
|
|
2409
|
-
if (configuration) {
|
|
2410
|
-
baseOptions = configuration.baseOptions;
|
|
2411
|
-
}
|
|
2412
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
2413
|
-
const localVarHeaderParameter = {};
|
|
2414
|
-
const localVarQueryParameter = {};
|
|
2415
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2416
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2417
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2418
|
-
return {
|
|
2419
|
-
url: toPathString(localVarUrlObj),
|
|
2420
|
-
options: localVarRequestOptions,
|
|
2421
|
-
};
|
|
2422
|
-
}),
|
|
2423
2471
|
/**
|
|
2424
2472
|
*
|
|
2425
2473
|
* @summary Get a worker by ID
|
|
@@ -2430,8 +2478,7 @@ export const ApiV1WorkersApiAxiosParamCreator = function (configuration) {
|
|
|
2430
2478
|
workerControllerGetWorkerById: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
2431
2479
|
// verify required parameter 'id' is not null or undefined
|
|
2432
2480
|
assertParamExists('workerControllerGetWorkerById', 'id', id);
|
|
2433
|
-
const localVarPath = `/api/v1/workers/{id}`
|
|
2434
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
2481
|
+
const localVarPath = `/api/v1/workers/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
2435
2482
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2436
2483
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2437
2484
|
let baseOptions;
|
|
@@ -2511,8 +2558,7 @@ export const ApiV1WorkersApiAxiosParamCreator = function (configuration) {
|
|
|
2511
2558
|
assertParamExists('workerControllerUpdateWorker', 'id', id);
|
|
2512
2559
|
// verify required parameter 'workerUpdateDto' is not null or undefined
|
|
2513
2560
|
assertParamExists('workerControllerUpdateWorker', 'workerUpdateDto', workerUpdateDto);
|
|
2514
|
-
const localVarPath = `/api/v1/workers/{id}`
|
|
2515
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
2561
|
+
const localVarPath = `/api/v1/workers/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
2516
2562
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2517
2563
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2518
2564
|
let baseOptions;
|
|
@@ -2589,22 +2635,6 @@ export const ApiV1WorkersApiFp = function (configuration) {
|
|
|
2589
2635
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2590
2636
|
});
|
|
2591
2637
|
},
|
|
2592
|
-
/**
|
|
2593
|
-
*
|
|
2594
|
-
* @summary Create a worker secret
|
|
2595
|
-
* @param {string} id The ID of the worker
|
|
2596
|
-
* @param {*} [options] Override http request option.
|
|
2597
|
-
* @throws {RequiredError}
|
|
2598
|
-
*/
|
|
2599
|
-
workerControllerGenerateWorkerSecret(id, options) {
|
|
2600
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
2601
|
-
var _a, _b, _c;
|
|
2602
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.workerControllerGenerateWorkerSecret(id, options);
|
|
2603
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2604
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ApiV1WorkersApi.workerControllerGenerateWorkerSecret']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2605
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2606
|
-
});
|
|
2607
|
-
},
|
|
2608
2638
|
/**
|
|
2609
2639
|
*
|
|
2610
2640
|
* @summary Get a worker by ID
|
|
@@ -2676,7 +2706,9 @@ export const ApiV1WorkersApiFactory = function (configuration, basePath, axios)
|
|
|
2676
2706
|
* @throws {RequiredError}
|
|
2677
2707
|
*/
|
|
2678
2708
|
workerControllerBatchDeleteWorkers(requestParameters, options) {
|
|
2679
|
-
return localVarFp
|
|
2709
|
+
return localVarFp
|
|
2710
|
+
.workerControllerBatchDeleteWorkers(requestParameters.workerControllerBatchDeleteWorkersRequest, options)
|
|
2711
|
+
.then((request) => request(axios, basePath));
|
|
2680
2712
|
},
|
|
2681
2713
|
/**
|
|
2682
2714
|
*
|
|
@@ -2686,7 +2718,9 @@ export const ApiV1WorkersApiFactory = function (configuration, basePath, axios)
|
|
|
2686
2718
|
* @throws {RequiredError}
|
|
2687
2719
|
*/
|
|
2688
2720
|
workerControllerCreateWorker(requestParameters, options) {
|
|
2689
|
-
return localVarFp
|
|
2721
|
+
return localVarFp
|
|
2722
|
+
.workerControllerCreateWorker(requestParameters.workerCreateDto, options)
|
|
2723
|
+
.then((request) => request(axios, basePath));
|
|
2690
2724
|
},
|
|
2691
2725
|
/**
|
|
2692
2726
|
*
|
|
@@ -2696,17 +2730,9 @@ export const ApiV1WorkersApiFactory = function (configuration, basePath, axios)
|
|
|
2696
2730
|
* @throws {RequiredError}
|
|
2697
2731
|
*/
|
|
2698
2732
|
workerControllerDeleteWorker(requestParameters, options) {
|
|
2699
|
-
return localVarFp
|
|
2700
|
-
|
|
2701
|
-
|
|
2702
|
-
*
|
|
2703
|
-
* @summary Create a worker secret
|
|
2704
|
-
* @param {ApiV1WorkersApiWorkerControllerGenerateWorkerSecretRequest} requestParameters Request parameters.
|
|
2705
|
-
* @param {*} [options] Override http request option.
|
|
2706
|
-
* @throws {RequiredError}
|
|
2707
|
-
*/
|
|
2708
|
-
workerControllerGenerateWorkerSecret(requestParameters, options) {
|
|
2709
|
-
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));
|
|
2710
2736
|
},
|
|
2711
2737
|
/**
|
|
2712
2738
|
*
|
|
@@ -2716,7 +2742,9 @@ export const ApiV1WorkersApiFactory = function (configuration, basePath, axios)
|
|
|
2716
2742
|
* @throws {RequiredError}
|
|
2717
2743
|
*/
|
|
2718
2744
|
workerControllerGetWorkerById(requestParameters, options) {
|
|
2719
|
-
return localVarFp
|
|
2745
|
+
return localVarFp
|
|
2746
|
+
.workerControllerGetWorkerById(requestParameters.id, options)
|
|
2747
|
+
.then((request) => request(axios, basePath));
|
|
2720
2748
|
},
|
|
2721
2749
|
/**
|
|
2722
2750
|
*
|
|
@@ -2726,7 +2754,9 @@ export const ApiV1WorkersApiFactory = function (configuration, basePath, axios)
|
|
|
2726
2754
|
* @throws {RequiredError}
|
|
2727
2755
|
*/
|
|
2728
2756
|
workerControllerGetWorkers(requestParameters = {}, options) {
|
|
2729
|
-
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));
|
|
2730
2760
|
},
|
|
2731
2761
|
/**
|
|
2732
2762
|
*
|
|
@@ -2736,7 +2766,9 @@ export const ApiV1WorkersApiFactory = function (configuration, basePath, axios)
|
|
|
2736
2766
|
* @throws {RequiredError}
|
|
2737
2767
|
*/
|
|
2738
2768
|
workerControllerUpdateWorker(requestParameters, options) {
|
|
2739
|
-
return localVarFp
|
|
2769
|
+
return localVarFp
|
|
2770
|
+
.workerControllerUpdateWorker(requestParameters.id, requestParameters.workerUpdateDto, options)
|
|
2771
|
+
.then((request) => request(axios, basePath));
|
|
2740
2772
|
},
|
|
2741
2773
|
};
|
|
2742
2774
|
};
|
|
@@ -2756,7 +2788,9 @@ export class ApiV1WorkersApi extends BaseAPI {
|
|
|
2756
2788
|
* @memberof ApiV1WorkersApi
|
|
2757
2789
|
*/
|
|
2758
2790
|
workerControllerBatchDeleteWorkers(requestParameters, options) {
|
|
2759
|
-
return ApiV1WorkersApiFp(this.configuration)
|
|
2791
|
+
return ApiV1WorkersApiFp(this.configuration)
|
|
2792
|
+
.workerControllerBatchDeleteWorkers(requestParameters.workerControllerBatchDeleteWorkersRequest, options)
|
|
2793
|
+
.then((request) => request(this.axios, this.basePath));
|
|
2760
2794
|
}
|
|
2761
2795
|
/**
|
|
2762
2796
|
*
|
|
@@ -2767,7 +2801,9 @@ export class ApiV1WorkersApi extends BaseAPI {
|
|
|
2767
2801
|
* @memberof ApiV1WorkersApi
|
|
2768
2802
|
*/
|
|
2769
2803
|
workerControllerCreateWorker(requestParameters, options) {
|
|
2770
|
-
return ApiV1WorkersApiFp(this.configuration)
|
|
2804
|
+
return ApiV1WorkersApiFp(this.configuration)
|
|
2805
|
+
.workerControllerCreateWorker(requestParameters.workerCreateDto, options)
|
|
2806
|
+
.then((request) => request(this.axios, this.basePath));
|
|
2771
2807
|
}
|
|
2772
2808
|
/**
|
|
2773
2809
|
*
|
|
@@ -2778,18 +2814,9 @@ export class ApiV1WorkersApi extends BaseAPI {
|
|
|
2778
2814
|
* @memberof ApiV1WorkersApi
|
|
2779
2815
|
*/
|
|
2780
2816
|
workerControllerDeleteWorker(requestParameters, options) {
|
|
2781
|
-
return ApiV1WorkersApiFp(this.configuration)
|
|
2782
|
-
|
|
2783
|
-
|
|
2784
|
-
*
|
|
2785
|
-
* @summary Create a worker secret
|
|
2786
|
-
* @param {ApiV1WorkersApiWorkerControllerGenerateWorkerSecretRequest} requestParameters Request parameters.
|
|
2787
|
-
* @param {*} [options] Override http request option.
|
|
2788
|
-
* @throws {RequiredError}
|
|
2789
|
-
* @memberof ApiV1WorkersApi
|
|
2790
|
-
*/
|
|
2791
|
-
workerControllerGenerateWorkerSecret(requestParameters, options) {
|
|
2792
|
-
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));
|
|
2793
2820
|
}
|
|
2794
2821
|
/**
|
|
2795
2822
|
*
|
|
@@ -2800,7 +2827,9 @@ export class ApiV1WorkersApi extends BaseAPI {
|
|
|
2800
2827
|
* @memberof ApiV1WorkersApi
|
|
2801
2828
|
*/
|
|
2802
2829
|
workerControllerGetWorkerById(requestParameters, options) {
|
|
2803
|
-
return ApiV1WorkersApiFp(this.configuration)
|
|
2830
|
+
return ApiV1WorkersApiFp(this.configuration)
|
|
2831
|
+
.workerControllerGetWorkerById(requestParameters.id, options)
|
|
2832
|
+
.then((request) => request(this.axios, this.basePath));
|
|
2804
2833
|
}
|
|
2805
2834
|
/**
|
|
2806
2835
|
*
|
|
@@ -2811,7 +2840,9 @@ export class ApiV1WorkersApi extends BaseAPI {
|
|
|
2811
2840
|
* @memberof ApiV1WorkersApi
|
|
2812
2841
|
*/
|
|
2813
2842
|
workerControllerGetWorkers(requestParameters = {}, options) {
|
|
2814
|
-
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));
|
|
2815
2846
|
}
|
|
2816
2847
|
/**
|
|
2817
2848
|
*
|
|
@@ -2822,6 +2853,1113 @@ export class ApiV1WorkersApi extends BaseAPI {
|
|
|
2822
2853
|
* @memberof ApiV1WorkersApi
|
|
2823
2854
|
*/
|
|
2824
2855
|
workerControllerUpdateWorker(requestParameters, options) {
|
|
2825
|
-
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));
|
|
2826
3964
|
}
|
|
2827
3965
|
}
|