@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/api.js
CHANGED
|
@@ -1,17 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* Loopstack Hub
|
|
6
|
-
* Loopstack Hub Documentation
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 1.0
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
-
* https://openapi-generator.tech
|
|
13
|
-
* Do not edit the class manually.
|
|
14
|
-
*/
|
|
15
2
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
16
3
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
17
4
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -22,44 +9,112 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
22
9
|
});
|
|
23
10
|
};
|
|
24
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
exports.ApiV1WorkersApi = exports.ApiV1WorkersApiFactory = exports.ApiV1WorkersApiFp = exports.ApiV1WorkersApiAxiosParamCreator = exports.ApiV1UserSettingsApi = exports.ApiV1UserSettingsApiFactory = exports.ApiV1UserSettingsApiFp = exports.ApiV1UserSettingsApiAxiosParamCreator = exports.ApiV1UserApi = exports.ApiV1UserApiFactory = exports.ApiV1UserApiFp = exports.ApiV1UserApiAxiosParamCreator = exports.ApiV1SsoApi = exports.ApiV1SsoApiFactory = exports.ApiV1SsoApiFp = exports.ApiV1SsoApiAxiosParamCreator = exports.ApiV1AuthApi = exports.ApiV1AuthApiFactory = exports.ApiV1AuthApiFp = exports.ApiV1AuthApiAxiosParamCreator = exports.AdminApi = exports.AdminApiFactory = exports.AdminApiFp = exports.AdminApiAxiosParamCreator = exports.WorkerSortByDtoOrderEnum = exports.WorkerSortByDtoFieldEnum = exports.UpdateUserRolesDtoRolesEnum = exports.UIPreferencesDtoThemeEnum = exports.RemoveRoleDtoRoleEnum = exports.AddRoleDtoRoleEnum = void 0;
|
|
12
|
+
exports.WellKnownApiAxiosParamCreator = exports.RegistryAdminApi = exports.RegistryAdminApiFactory = exports.RegistryAdminApiFp = exports.RegistryAdminApiAxiosParamCreator = exports.RegistryApi = exports.RegistryApiFactory = exports.RegistryApiFp = exports.RegistryApiAxiosParamCreator = exports.ApiV1WorkersApi = exports.ApiV1WorkersApiFactory = exports.ApiV1WorkersApiFp = exports.ApiV1WorkersApiAxiosParamCreator = exports.ApiV1UserSettingsApi = exports.ApiV1UserSettingsApiFactory = exports.ApiV1UserSettingsApiFp = exports.ApiV1UserSettingsApiAxiosParamCreator = exports.ApiV1UserApi = exports.ApiV1UserApiFactory = exports.ApiV1UserApiFp = exports.ApiV1UserApiAxiosParamCreator = exports.ApiV1SsoApi = exports.ApiV1SsoApiFactory = exports.ApiV1SsoApiFp = exports.ApiV1SsoApiAxiosParamCreator = exports.ApiV1AuthApi = exports.ApiV1AuthApiFactory = exports.ApiV1AuthApiFp = exports.ApiV1AuthApiAxiosParamCreator = exports.AdminApi = exports.AdminApiFactory = exports.AdminApiFp = exports.AdminApiAxiosParamCreator = exports.WorkerSortByDtoOrderEnum = exports.WorkerSortByDtoFieldEnum = exports.WorkerItemDtoTypeEnum = exports.WorkerDtoTypeEnum = exports.UpdateUserRolesDtoRolesEnum = exports.UpdateStatusDtoStatusEnum = exports.UpdateEntryDtoCategoryEnum = exports.UIPreferencesDtoThemeEnum = exports.RemoveRoleDtoRoleEnum = exports.RegistryEntryResponseDtoCategoryEnum = exports.RegistryEntryResponseDtoStatusEnum = exports.RegistryEntryAdminResponseDtoCategoryEnum = exports.RegistryEntryAdminResponseDtoStatusEnum = exports.MaintenanceRunDtoTriggerTypeEnum = exports.DraftEntryResponseDtoStatusEnum = exports.ConfirmDraftDtoCategoryEnum = exports.AddRoleDtoRoleEnum = void 0;
|
|
13
|
+
exports.WellKnownApi = exports.WellKnownApiFactory = exports.WellKnownApiFp = void 0;
|
|
26
14
|
const axios_1 = require("axios");
|
|
15
|
+
// @ts-ignore
|
|
16
|
+
const base_1 = require("./base");
|
|
27
17
|
// Some imports not used depending on template conditions
|
|
28
18
|
// @ts-ignore
|
|
29
19
|
const common_1 = require("./common");
|
|
30
|
-
// @ts-ignore
|
|
31
|
-
const base_1 = require("./base");
|
|
32
20
|
exports.AddRoleDtoRoleEnum = {
|
|
33
21
|
RoleAdmin: 'ROLE_ADMIN',
|
|
34
22
|
RoleBeta: 'ROLE_BETA',
|
|
35
|
-
RoleUser: 'ROLE_USER'
|
|
23
|
+
RoleUser: 'ROLE_USER',
|
|
24
|
+
RoleContributor: 'ROLE_CONTRIBUTOR',
|
|
25
|
+
};
|
|
26
|
+
exports.ConfirmDraftDtoCategoryEnum = {
|
|
27
|
+
Tools: 'tools',
|
|
28
|
+
Examples: 'examples',
|
|
29
|
+
Bundles: 'bundles',
|
|
30
|
+
Modules: 'modules',
|
|
31
|
+
Integrations: 'integrations',
|
|
32
|
+
};
|
|
33
|
+
exports.DraftEntryResponseDtoStatusEnum = {
|
|
34
|
+
Draft: 'draft',
|
|
35
|
+
Pending: 'pending',
|
|
36
|
+
Active: 'active',
|
|
37
|
+
Inactive: 'inactive',
|
|
38
|
+
};
|
|
39
|
+
exports.MaintenanceRunDtoTriggerTypeEnum = {
|
|
40
|
+
Scheduled: 'scheduled',
|
|
41
|
+
Manual: 'manual',
|
|
42
|
+
};
|
|
43
|
+
exports.RegistryEntryAdminResponseDtoStatusEnum = {
|
|
44
|
+
Draft: 'draft',
|
|
45
|
+
Pending: 'pending',
|
|
46
|
+
Active: 'active',
|
|
47
|
+
Inactive: 'inactive',
|
|
48
|
+
};
|
|
49
|
+
exports.RegistryEntryAdminResponseDtoCategoryEnum = {
|
|
50
|
+
Tools: 'tools',
|
|
51
|
+
Examples: 'examples',
|
|
52
|
+
Bundles: 'bundles',
|
|
53
|
+
Modules: 'modules',
|
|
54
|
+
Integrations: 'integrations',
|
|
55
|
+
};
|
|
56
|
+
exports.RegistryEntryResponseDtoStatusEnum = {
|
|
57
|
+
Draft: 'draft',
|
|
58
|
+
Pending: 'pending',
|
|
59
|
+
Active: 'active',
|
|
60
|
+
Inactive: 'inactive',
|
|
61
|
+
};
|
|
62
|
+
exports.RegistryEntryResponseDtoCategoryEnum = {
|
|
63
|
+
Tools: 'tools',
|
|
64
|
+
Examples: 'examples',
|
|
65
|
+
Bundles: 'bundles',
|
|
66
|
+
Modules: 'modules',
|
|
67
|
+
Integrations: 'integrations',
|
|
36
68
|
};
|
|
37
69
|
exports.RemoveRoleDtoRoleEnum = {
|
|
38
70
|
RoleAdmin: 'ROLE_ADMIN',
|
|
39
71
|
RoleBeta: 'ROLE_BETA',
|
|
40
|
-
RoleUser: 'ROLE_USER'
|
|
72
|
+
RoleUser: 'ROLE_USER',
|
|
73
|
+
RoleContributor: 'ROLE_CONTRIBUTOR',
|
|
41
74
|
};
|
|
42
75
|
exports.UIPreferencesDtoThemeEnum = {
|
|
43
76
|
Light: 'light',
|
|
44
|
-
Dark: 'dark'
|
|
77
|
+
Dark: 'dark',
|
|
78
|
+
};
|
|
79
|
+
exports.UpdateEntryDtoCategoryEnum = {
|
|
80
|
+
Tools: 'tools',
|
|
81
|
+
Examples: 'examples',
|
|
82
|
+
Bundles: 'bundles',
|
|
83
|
+
Modules: 'modules',
|
|
84
|
+
Integrations: 'integrations',
|
|
85
|
+
};
|
|
86
|
+
exports.UpdateStatusDtoStatusEnum = {
|
|
87
|
+
Draft: 'draft',
|
|
88
|
+
Pending: 'pending',
|
|
89
|
+
Active: 'active',
|
|
90
|
+
Inactive: 'inactive',
|
|
45
91
|
};
|
|
46
92
|
exports.UpdateUserRolesDtoRolesEnum = {
|
|
47
93
|
RoleAdmin: 'ROLE_ADMIN',
|
|
48
94
|
RoleBeta: 'ROLE_BETA',
|
|
49
|
-
RoleUser: 'ROLE_USER'
|
|
95
|
+
RoleUser: 'ROLE_USER',
|
|
96
|
+
RoleContributor: 'ROLE_CONTRIBUTOR',
|
|
97
|
+
};
|
|
98
|
+
exports.WorkerDtoTypeEnum = {
|
|
99
|
+
SelfHosted: 'self_hosted',
|
|
100
|
+
Managed: 'managed',
|
|
101
|
+
};
|
|
102
|
+
exports.WorkerItemDtoTypeEnum = {
|
|
103
|
+
SelfHosted: 'self_hosted',
|
|
104
|
+
Managed: 'managed',
|
|
50
105
|
};
|
|
51
106
|
exports.WorkerSortByDtoFieldEnum = {
|
|
52
107
|
Id: 'id',
|
|
53
108
|
Url: 'url',
|
|
54
109
|
Name: 'name',
|
|
55
|
-
|
|
110
|
+
Type: 'type',
|
|
56
111
|
CreatedAt: 'createdAt',
|
|
57
112
|
UpdatedAt: 'updatedAt',
|
|
58
|
-
UserId: 'userId'
|
|
113
|
+
UserId: 'userId',
|
|
59
114
|
};
|
|
60
115
|
exports.WorkerSortByDtoOrderEnum = {
|
|
61
116
|
Asc: 'ASC',
|
|
62
|
-
Desc: 'DESC'
|
|
117
|
+
Desc: 'DESC',
|
|
63
118
|
};
|
|
64
119
|
/**
|
|
65
120
|
* AdminApi - axios parameter creator
|
|
@@ -80,8 +135,7 @@ const AdminApiAxiosParamCreator = function (configuration) {
|
|
|
80
135
|
(0, common_1.assertParamExists)('adminControllerAddRoleToUser', 'userId', userId);
|
|
81
136
|
// verify required parameter 'addRoleDto' is not null or undefined
|
|
82
137
|
(0, common_1.assertParamExists)('adminControllerAddRoleToUser', 'addRoleDto', addRoleDto);
|
|
83
|
-
const localVarPath = `/api/v1/admin/users/{userId}/roles/add`
|
|
84
|
-
.replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
|
|
138
|
+
const localVarPath = `/api/v1/admin/users/{userId}/roles/add`.replace(`{${'userId'}}`, encodeURIComponent(String(userId)));
|
|
85
139
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
86
140
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
87
141
|
let baseOptions;
|
|
@@ -111,8 +165,7 @@ const AdminApiAxiosParamCreator = function (configuration) {
|
|
|
111
165
|
adminControllerDeleteUser: (userId_1, ...args_1) => __awaiter(this, [userId_1, ...args_1], void 0, function* (userId, options = {}) {
|
|
112
166
|
// verify required parameter 'userId' is not null or undefined
|
|
113
167
|
(0, common_1.assertParamExists)('adminControllerDeleteUser', 'userId', userId);
|
|
114
|
-
const localVarPath = `/api/v1/admin/users/{userId}`
|
|
115
|
-
.replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
|
|
168
|
+
const localVarPath = `/api/v1/admin/users/{userId}`.replace(`{${'userId'}}`, encodeURIComponent(String(userId)));
|
|
116
169
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
117
170
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
118
171
|
let baseOptions;
|
|
@@ -177,8 +230,7 @@ const AdminApiAxiosParamCreator = function (configuration) {
|
|
|
177
230
|
adminControllerGetUserById: (userId_1, ...args_1) => __awaiter(this, [userId_1, ...args_1], void 0, function* (userId, options = {}) {
|
|
178
231
|
// verify required parameter 'userId' is not null or undefined
|
|
179
232
|
(0, common_1.assertParamExists)('adminControllerGetUserById', 'userId', userId);
|
|
180
|
-
const localVarPath = `/api/v1/admin/users/{userId}`
|
|
181
|
-
.replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
|
|
233
|
+
const localVarPath = `/api/v1/admin/users/{userId}`.replace(`{${'userId'}}`, encodeURIComponent(String(userId)));
|
|
182
234
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
183
235
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
184
236
|
let baseOptions;
|
|
@@ -209,8 +261,7 @@ const AdminApiAxiosParamCreator = function (configuration) {
|
|
|
209
261
|
(0, common_1.assertParamExists)('adminControllerRemoveRoleFromUser', 'userId', userId);
|
|
210
262
|
// verify required parameter 'removeRoleDto' is not null or undefined
|
|
211
263
|
(0, common_1.assertParamExists)('adminControllerRemoveRoleFromUser', 'removeRoleDto', removeRoleDto);
|
|
212
|
-
const localVarPath = `/api/v1/admin/users/{userId}/roles/remove`
|
|
213
|
-
.replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
|
|
264
|
+
const localVarPath = `/api/v1/admin/users/{userId}/roles/remove`.replace(`{${'userId'}}`, encodeURIComponent(String(userId)));
|
|
214
265
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
215
266
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
216
267
|
let baseOptions;
|
|
@@ -274,8 +325,7 @@ const AdminApiAxiosParamCreator = function (configuration) {
|
|
|
274
325
|
(0, common_1.assertParamExists)('adminControllerToggleUserAccess', 'userId', userId);
|
|
275
326
|
// verify required parameter 'toggleAccessDto' is not null or undefined
|
|
276
327
|
(0, common_1.assertParamExists)('adminControllerToggleUserAccess', 'toggleAccessDto', toggleAccessDto);
|
|
277
|
-
const localVarPath = `/api/v1/admin/users/{userId}/access`
|
|
278
|
-
.replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
|
|
328
|
+
const localVarPath = `/api/v1/admin/users/{userId}/access`.replace(`{${'userId'}}`, encodeURIComponent(String(userId)));
|
|
279
329
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
280
330
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
281
331
|
let baseOptions;
|
|
@@ -308,8 +358,7 @@ const AdminApiAxiosParamCreator = function (configuration) {
|
|
|
308
358
|
(0, common_1.assertParamExists)('adminControllerToggleUserActive', 'userId', userId);
|
|
309
359
|
// verify required parameter 'toggleActiveDto' is not null or undefined
|
|
310
360
|
(0, common_1.assertParamExists)('adminControllerToggleUserActive', 'toggleActiveDto', toggleActiveDto);
|
|
311
|
-
const localVarPath = `/api/v1/admin/users/{userId}/active`
|
|
312
|
-
.replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
|
|
361
|
+
const localVarPath = `/api/v1/admin/users/{userId}/active`.replace(`{${'userId'}}`, encodeURIComponent(String(userId)));
|
|
313
362
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
314
363
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
315
364
|
let baseOptions;
|
|
@@ -342,8 +391,7 @@ const AdminApiAxiosParamCreator = function (configuration) {
|
|
|
342
391
|
(0, common_1.assertParamExists)('adminControllerUpdateUserRoles', 'userId', userId);
|
|
343
392
|
// verify required parameter 'updateUserRolesDto' is not null or undefined
|
|
344
393
|
(0, common_1.assertParamExists)('adminControllerUpdateUserRoles', 'updateUserRolesDto', updateUserRolesDto);
|
|
345
|
-
const localVarPath = `/api/v1/admin/users/{userId}/roles`
|
|
346
|
-
.replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
|
|
394
|
+
const localVarPath = `/api/v1/admin/users/{userId}/roles`.replace(`{${'userId'}}`, encodeURIComponent(String(userId)));
|
|
347
395
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
348
396
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
349
397
|
let baseOptions;
|
|
@@ -541,7 +589,9 @@ const AdminApiFactory = function (configuration, basePath, axios) {
|
|
|
541
589
|
* @throws {RequiredError}
|
|
542
590
|
*/
|
|
543
591
|
adminControllerAddRoleToUser(requestParameters, options) {
|
|
544
|
-
return localVarFp
|
|
592
|
+
return localVarFp
|
|
593
|
+
.adminControllerAddRoleToUser(requestParameters.userId, requestParameters.addRoleDto, options)
|
|
594
|
+
.then((request) => request(axios, basePath));
|
|
545
595
|
},
|
|
546
596
|
/**
|
|
547
597
|
*
|
|
@@ -551,7 +601,9 @@ const AdminApiFactory = function (configuration, basePath, axios) {
|
|
|
551
601
|
* @throws {RequiredError}
|
|
552
602
|
*/
|
|
553
603
|
adminControllerDeleteUser(requestParameters, options) {
|
|
554
|
-
return localVarFp
|
|
604
|
+
return localVarFp
|
|
605
|
+
.adminControllerDeleteUser(requestParameters.userId, options)
|
|
606
|
+
.then((request) => request(axios, basePath));
|
|
555
607
|
},
|
|
556
608
|
/**
|
|
557
609
|
*
|
|
@@ -561,7 +613,9 @@ const AdminApiFactory = function (configuration, basePath, axios) {
|
|
|
561
613
|
* @throws {RequiredError}
|
|
562
614
|
*/
|
|
563
615
|
adminControllerGetAllUsers(requestParameters, options) {
|
|
564
|
-
return localVarFp
|
|
616
|
+
return localVarFp
|
|
617
|
+
.adminControllerGetAllUsers(requestParameters.skip, requestParameters.take, options)
|
|
618
|
+
.then((request) => request(axios, basePath));
|
|
565
619
|
},
|
|
566
620
|
/**
|
|
567
621
|
*
|
|
@@ -571,7 +625,9 @@ const AdminApiFactory = function (configuration, basePath, axios) {
|
|
|
571
625
|
* @throws {RequiredError}
|
|
572
626
|
*/
|
|
573
627
|
adminControllerGetUserById(requestParameters, options) {
|
|
574
|
-
return localVarFp
|
|
628
|
+
return localVarFp
|
|
629
|
+
.adminControllerGetUserById(requestParameters.userId, options)
|
|
630
|
+
.then((request) => request(axios, basePath));
|
|
575
631
|
},
|
|
576
632
|
/**
|
|
577
633
|
*
|
|
@@ -581,7 +637,9 @@ const AdminApiFactory = function (configuration, basePath, axios) {
|
|
|
581
637
|
* @throws {RequiredError}
|
|
582
638
|
*/
|
|
583
639
|
adminControllerRemoveRoleFromUser(requestParameters, options) {
|
|
584
|
-
return localVarFp
|
|
640
|
+
return localVarFp
|
|
641
|
+
.adminControllerRemoveRoleFromUser(requestParameters.userId, requestParameters.removeRoleDto, options)
|
|
642
|
+
.then((request) => request(axios, basePath));
|
|
585
643
|
},
|
|
586
644
|
/**
|
|
587
645
|
*
|
|
@@ -591,7 +649,9 @@ const AdminApiFactory = function (configuration, basePath, axios) {
|
|
|
591
649
|
* @throws {RequiredError}
|
|
592
650
|
*/
|
|
593
651
|
adminControllerSearchUsers(requestParameters, options) {
|
|
594
|
-
return localVarFp
|
|
652
|
+
return localVarFp
|
|
653
|
+
.adminControllerSearchUsers(requestParameters.q, options)
|
|
654
|
+
.then((request) => request(axios, basePath));
|
|
595
655
|
},
|
|
596
656
|
/**
|
|
597
657
|
*
|
|
@@ -601,7 +661,9 @@ const AdminApiFactory = function (configuration, basePath, axios) {
|
|
|
601
661
|
* @throws {RequiredError}
|
|
602
662
|
*/
|
|
603
663
|
adminControllerToggleUserAccess(requestParameters, options) {
|
|
604
|
-
return localVarFp
|
|
664
|
+
return localVarFp
|
|
665
|
+
.adminControllerToggleUserAccess(requestParameters.userId, requestParameters.toggleAccessDto, options)
|
|
666
|
+
.then((request) => request(axios, basePath));
|
|
605
667
|
},
|
|
606
668
|
/**
|
|
607
669
|
*
|
|
@@ -611,7 +673,9 @@ const AdminApiFactory = function (configuration, basePath, axios) {
|
|
|
611
673
|
* @throws {RequiredError}
|
|
612
674
|
*/
|
|
613
675
|
adminControllerToggleUserActive(requestParameters, options) {
|
|
614
|
-
return localVarFp
|
|
676
|
+
return localVarFp
|
|
677
|
+
.adminControllerToggleUserActive(requestParameters.userId, requestParameters.toggleActiveDto, options)
|
|
678
|
+
.then((request) => request(axios, basePath));
|
|
615
679
|
},
|
|
616
680
|
/**
|
|
617
681
|
*
|
|
@@ -621,7 +685,9 @@ const AdminApiFactory = function (configuration, basePath, axios) {
|
|
|
621
685
|
* @throws {RequiredError}
|
|
622
686
|
*/
|
|
623
687
|
adminControllerUpdateUserRoles(requestParameters, options) {
|
|
624
|
-
return localVarFp
|
|
688
|
+
return localVarFp
|
|
689
|
+
.adminControllerUpdateUserRoles(requestParameters.userId, requestParameters.updateUserRolesDto, options)
|
|
690
|
+
.then((request) => request(axios, basePath));
|
|
625
691
|
},
|
|
626
692
|
};
|
|
627
693
|
};
|
|
@@ -642,7 +708,9 @@ class AdminApi extends base_1.BaseAPI {
|
|
|
642
708
|
* @memberof AdminApi
|
|
643
709
|
*/
|
|
644
710
|
adminControllerAddRoleToUser(requestParameters, options) {
|
|
645
|
-
return (0, exports.AdminApiFp)(this.configuration)
|
|
711
|
+
return (0, exports.AdminApiFp)(this.configuration)
|
|
712
|
+
.adminControllerAddRoleToUser(requestParameters.userId, requestParameters.addRoleDto, options)
|
|
713
|
+
.then((request) => request(this.axios, this.basePath));
|
|
646
714
|
}
|
|
647
715
|
/**
|
|
648
716
|
*
|
|
@@ -653,7 +721,9 @@ class AdminApi extends base_1.BaseAPI {
|
|
|
653
721
|
* @memberof AdminApi
|
|
654
722
|
*/
|
|
655
723
|
adminControllerDeleteUser(requestParameters, options) {
|
|
656
|
-
return (0, exports.AdminApiFp)(this.configuration)
|
|
724
|
+
return (0, exports.AdminApiFp)(this.configuration)
|
|
725
|
+
.adminControllerDeleteUser(requestParameters.userId, options)
|
|
726
|
+
.then((request) => request(this.axios, this.basePath));
|
|
657
727
|
}
|
|
658
728
|
/**
|
|
659
729
|
*
|
|
@@ -664,7 +734,9 @@ class AdminApi extends base_1.BaseAPI {
|
|
|
664
734
|
* @memberof AdminApi
|
|
665
735
|
*/
|
|
666
736
|
adminControllerGetAllUsers(requestParameters, options) {
|
|
667
|
-
return (0, exports.AdminApiFp)(this.configuration)
|
|
737
|
+
return (0, exports.AdminApiFp)(this.configuration)
|
|
738
|
+
.adminControllerGetAllUsers(requestParameters.skip, requestParameters.take, options)
|
|
739
|
+
.then((request) => request(this.axios, this.basePath));
|
|
668
740
|
}
|
|
669
741
|
/**
|
|
670
742
|
*
|
|
@@ -675,7 +747,9 @@ class AdminApi extends base_1.BaseAPI {
|
|
|
675
747
|
* @memberof AdminApi
|
|
676
748
|
*/
|
|
677
749
|
adminControllerGetUserById(requestParameters, options) {
|
|
678
|
-
return (0, exports.AdminApiFp)(this.configuration)
|
|
750
|
+
return (0, exports.AdminApiFp)(this.configuration)
|
|
751
|
+
.adminControllerGetUserById(requestParameters.userId, options)
|
|
752
|
+
.then((request) => request(this.axios, this.basePath));
|
|
679
753
|
}
|
|
680
754
|
/**
|
|
681
755
|
*
|
|
@@ -686,7 +760,9 @@ class AdminApi extends base_1.BaseAPI {
|
|
|
686
760
|
* @memberof AdminApi
|
|
687
761
|
*/
|
|
688
762
|
adminControllerRemoveRoleFromUser(requestParameters, options) {
|
|
689
|
-
return (0, exports.AdminApiFp)(this.configuration)
|
|
763
|
+
return (0, exports.AdminApiFp)(this.configuration)
|
|
764
|
+
.adminControllerRemoveRoleFromUser(requestParameters.userId, requestParameters.removeRoleDto, options)
|
|
765
|
+
.then((request) => request(this.axios, this.basePath));
|
|
690
766
|
}
|
|
691
767
|
/**
|
|
692
768
|
*
|
|
@@ -697,7 +773,9 @@ class AdminApi extends base_1.BaseAPI {
|
|
|
697
773
|
* @memberof AdminApi
|
|
698
774
|
*/
|
|
699
775
|
adminControllerSearchUsers(requestParameters, options) {
|
|
700
|
-
return (0, exports.AdminApiFp)(this.configuration)
|
|
776
|
+
return (0, exports.AdminApiFp)(this.configuration)
|
|
777
|
+
.adminControllerSearchUsers(requestParameters.q, options)
|
|
778
|
+
.then((request) => request(this.axios, this.basePath));
|
|
701
779
|
}
|
|
702
780
|
/**
|
|
703
781
|
*
|
|
@@ -708,7 +786,9 @@ class AdminApi extends base_1.BaseAPI {
|
|
|
708
786
|
* @memberof AdminApi
|
|
709
787
|
*/
|
|
710
788
|
adminControllerToggleUserAccess(requestParameters, options) {
|
|
711
|
-
return (0, exports.AdminApiFp)(this.configuration)
|
|
789
|
+
return (0, exports.AdminApiFp)(this.configuration)
|
|
790
|
+
.adminControllerToggleUserAccess(requestParameters.userId, requestParameters.toggleAccessDto, options)
|
|
791
|
+
.then((request) => request(this.axios, this.basePath));
|
|
712
792
|
}
|
|
713
793
|
/**
|
|
714
794
|
*
|
|
@@ -719,7 +799,9 @@ class AdminApi extends base_1.BaseAPI {
|
|
|
719
799
|
* @memberof AdminApi
|
|
720
800
|
*/
|
|
721
801
|
adminControllerToggleUserActive(requestParameters, options) {
|
|
722
|
-
return (0, exports.AdminApiFp)(this.configuration)
|
|
802
|
+
return (0, exports.AdminApiFp)(this.configuration)
|
|
803
|
+
.adminControllerToggleUserActive(requestParameters.userId, requestParameters.toggleActiveDto, options)
|
|
804
|
+
.then((request) => request(this.axios, this.basePath));
|
|
723
805
|
}
|
|
724
806
|
/**
|
|
725
807
|
*
|
|
@@ -730,7 +812,9 @@ class AdminApi extends base_1.BaseAPI {
|
|
|
730
812
|
* @memberof AdminApi
|
|
731
813
|
*/
|
|
732
814
|
adminControllerUpdateUserRoles(requestParameters, options) {
|
|
733
|
-
return (0, exports.AdminApiFp)(this.configuration)
|
|
815
|
+
return (0, exports.AdminApiFp)(this.configuration)
|
|
816
|
+
.adminControllerUpdateUserRoles(requestParameters.userId, requestParameters.updateUserRolesDto, options)
|
|
817
|
+
.then((request) => request(this.axios, this.basePath));
|
|
734
818
|
}
|
|
735
819
|
}
|
|
736
820
|
exports.AdminApi = AdminApi;
|
|
@@ -1562,7 +1646,9 @@ const ApiV1AuthApiFactory = function (configuration, basePath, axios) {
|
|
|
1562
1646
|
* @throws {RequiredError}
|
|
1563
1647
|
*/
|
|
1564
1648
|
authControllerLinkProvider(requestParameters, options) {
|
|
1565
|
-
return localVarFp
|
|
1649
|
+
return localVarFp
|
|
1650
|
+
.authControllerLinkProvider(requestParameters.body, options)
|
|
1651
|
+
.then((request) => request(axios, basePath));
|
|
1566
1652
|
},
|
|
1567
1653
|
/**
|
|
1568
1654
|
*
|
|
@@ -1572,7 +1658,9 @@ const ApiV1AuthApiFactory = function (configuration, basePath, axios) {
|
|
|
1572
1658
|
* @throws {RequiredError}
|
|
1573
1659
|
*/
|
|
1574
1660
|
authControllerLogin(requestParameters, options) {
|
|
1575
|
-
return localVarFp
|
|
1661
|
+
return localVarFp
|
|
1662
|
+
.authControllerLogin(requestParameters.body, options)
|
|
1663
|
+
.then((request) => request(axios, basePath));
|
|
1576
1664
|
},
|
|
1577
1665
|
/**
|
|
1578
1666
|
*
|
|
@@ -1600,7 +1688,9 @@ const ApiV1AuthApiFactory = function (configuration, basePath, axios) {
|
|
|
1600
1688
|
* @throws {RequiredError}
|
|
1601
1689
|
*/
|
|
1602
1690
|
authControllerRegister(requestParameters, options) {
|
|
1603
|
-
return localVarFp
|
|
1691
|
+
return localVarFp
|
|
1692
|
+
.authControllerRegister(requestParameters.body, options)
|
|
1693
|
+
.then((request) => request(axios, basePath));
|
|
1604
1694
|
},
|
|
1605
1695
|
/**
|
|
1606
1696
|
*
|
|
@@ -1610,7 +1700,9 @@ const ApiV1AuthApiFactory = function (configuration, basePath, axios) {
|
|
|
1610
1700
|
* @throws {RequiredError}
|
|
1611
1701
|
*/
|
|
1612
1702
|
authControllerRequestPasswordReset(requestParameters, options) {
|
|
1613
|
-
return localVarFp
|
|
1703
|
+
return localVarFp
|
|
1704
|
+
.authControllerRequestPasswordReset(requestParameters.requestPasswordResetDto, options)
|
|
1705
|
+
.then((request) => request(axios, basePath));
|
|
1614
1706
|
},
|
|
1615
1707
|
/**
|
|
1616
1708
|
*
|
|
@@ -1620,7 +1712,9 @@ const ApiV1AuthApiFactory = function (configuration, basePath, axios) {
|
|
|
1620
1712
|
* @throws {RequiredError}
|
|
1621
1713
|
*/
|
|
1622
1714
|
authControllerResendVerification(requestParameters, options) {
|
|
1623
|
-
return localVarFp
|
|
1715
|
+
return localVarFp
|
|
1716
|
+
.authControllerResendVerification(requestParameters.resendVerificationDto, options)
|
|
1717
|
+
.then((request) => request(axios, basePath));
|
|
1624
1718
|
},
|
|
1625
1719
|
/**
|
|
1626
1720
|
*
|
|
@@ -1630,7 +1724,9 @@ const ApiV1AuthApiFactory = function (configuration, basePath, axios) {
|
|
|
1630
1724
|
* @throws {RequiredError}
|
|
1631
1725
|
*/
|
|
1632
1726
|
authControllerResetPassword(requestParameters, options) {
|
|
1633
|
-
return localVarFp
|
|
1727
|
+
return localVarFp
|
|
1728
|
+
.authControllerResetPassword(requestParameters.resetPasswordDto, options)
|
|
1729
|
+
.then((request) => request(axios, basePath));
|
|
1634
1730
|
},
|
|
1635
1731
|
/**
|
|
1636
1732
|
*
|
|
@@ -1640,7 +1736,9 @@ const ApiV1AuthApiFactory = function (configuration, basePath, axios) {
|
|
|
1640
1736
|
* @throws {RequiredError}
|
|
1641
1737
|
*/
|
|
1642
1738
|
authControllerVerifyEmail(requestParameters, options) {
|
|
1643
|
-
return localVarFp
|
|
1739
|
+
return localVarFp
|
|
1740
|
+
.authControllerVerifyEmail(requestParameters.verifyEmailDto, options)
|
|
1741
|
+
.then((request) => request(axios, basePath));
|
|
1644
1742
|
},
|
|
1645
1743
|
};
|
|
1646
1744
|
};
|
|
@@ -1660,7 +1758,9 @@ class ApiV1AuthApi extends base_1.BaseAPI {
|
|
|
1660
1758
|
* @memberof ApiV1AuthApi
|
|
1661
1759
|
*/
|
|
1662
1760
|
authControllerDiscordAuth(options) {
|
|
1663
|
-
return (0, exports.ApiV1AuthApiFp)(this.configuration)
|
|
1761
|
+
return (0, exports.ApiV1AuthApiFp)(this.configuration)
|
|
1762
|
+
.authControllerDiscordAuth(options)
|
|
1763
|
+
.then((request) => request(this.axios, this.basePath));
|
|
1664
1764
|
}
|
|
1665
1765
|
/**
|
|
1666
1766
|
*
|
|
@@ -1670,7 +1770,9 @@ class ApiV1AuthApi extends base_1.BaseAPI {
|
|
|
1670
1770
|
* @memberof ApiV1AuthApi
|
|
1671
1771
|
*/
|
|
1672
1772
|
authControllerDiscordCallback(options) {
|
|
1673
|
-
return (0, exports.ApiV1AuthApiFp)(this.configuration)
|
|
1773
|
+
return (0, exports.ApiV1AuthApiFp)(this.configuration)
|
|
1774
|
+
.authControllerDiscordCallback(options)
|
|
1775
|
+
.then((request) => request(this.axios, this.basePath));
|
|
1674
1776
|
}
|
|
1675
1777
|
/**
|
|
1676
1778
|
*
|
|
@@ -1680,7 +1782,9 @@ class ApiV1AuthApi extends base_1.BaseAPI {
|
|
|
1680
1782
|
* @memberof ApiV1AuthApi
|
|
1681
1783
|
*/
|
|
1682
1784
|
authControllerGetProviders(options) {
|
|
1683
|
-
return (0, exports.ApiV1AuthApiFp)(this.configuration)
|
|
1785
|
+
return (0, exports.ApiV1AuthApiFp)(this.configuration)
|
|
1786
|
+
.authControllerGetProviders(options)
|
|
1787
|
+
.then((request) => request(this.axios, this.basePath));
|
|
1684
1788
|
}
|
|
1685
1789
|
/**
|
|
1686
1790
|
*
|
|
@@ -1690,7 +1794,9 @@ class ApiV1AuthApi extends base_1.BaseAPI {
|
|
|
1690
1794
|
* @memberof ApiV1AuthApi
|
|
1691
1795
|
*/
|
|
1692
1796
|
authControllerGithubAuth(options) {
|
|
1693
|
-
return (0, exports.ApiV1AuthApiFp)(this.configuration)
|
|
1797
|
+
return (0, exports.ApiV1AuthApiFp)(this.configuration)
|
|
1798
|
+
.authControllerGithubAuth(options)
|
|
1799
|
+
.then((request) => request(this.axios, this.basePath));
|
|
1694
1800
|
}
|
|
1695
1801
|
/**
|
|
1696
1802
|
*
|
|
@@ -1700,7 +1806,9 @@ class ApiV1AuthApi extends base_1.BaseAPI {
|
|
|
1700
1806
|
* @memberof ApiV1AuthApi
|
|
1701
1807
|
*/
|
|
1702
1808
|
authControllerGithubCallback(options) {
|
|
1703
|
-
return (0, exports.ApiV1AuthApiFp)(this.configuration)
|
|
1809
|
+
return (0, exports.ApiV1AuthApiFp)(this.configuration)
|
|
1810
|
+
.authControllerGithubCallback(options)
|
|
1811
|
+
.then((request) => request(this.axios, this.basePath));
|
|
1704
1812
|
}
|
|
1705
1813
|
/**
|
|
1706
1814
|
*
|
|
@@ -1710,7 +1818,9 @@ class ApiV1AuthApi extends base_1.BaseAPI {
|
|
|
1710
1818
|
* @memberof ApiV1AuthApi
|
|
1711
1819
|
*/
|
|
1712
1820
|
authControllerGoogleAuth(options) {
|
|
1713
|
-
return (0, exports.ApiV1AuthApiFp)(this.configuration)
|
|
1821
|
+
return (0, exports.ApiV1AuthApiFp)(this.configuration)
|
|
1822
|
+
.authControllerGoogleAuth(options)
|
|
1823
|
+
.then((request) => request(this.axios, this.basePath));
|
|
1714
1824
|
}
|
|
1715
1825
|
/**
|
|
1716
1826
|
*
|
|
@@ -1720,7 +1830,9 @@ class ApiV1AuthApi extends base_1.BaseAPI {
|
|
|
1720
1830
|
* @memberof ApiV1AuthApi
|
|
1721
1831
|
*/
|
|
1722
1832
|
authControllerGoogleCallback(options) {
|
|
1723
|
-
return (0, exports.ApiV1AuthApiFp)(this.configuration)
|
|
1833
|
+
return (0, exports.ApiV1AuthApiFp)(this.configuration)
|
|
1834
|
+
.authControllerGoogleCallback(options)
|
|
1835
|
+
.then((request) => request(this.axios, this.basePath));
|
|
1724
1836
|
}
|
|
1725
1837
|
/**
|
|
1726
1838
|
*
|
|
@@ -1730,7 +1842,9 @@ class ApiV1AuthApi extends base_1.BaseAPI {
|
|
|
1730
1842
|
* @memberof ApiV1AuthApi
|
|
1731
1843
|
*/
|
|
1732
1844
|
authControllerHealthCheck(options) {
|
|
1733
|
-
return (0, exports.ApiV1AuthApiFp)(this.configuration)
|
|
1845
|
+
return (0, exports.ApiV1AuthApiFp)(this.configuration)
|
|
1846
|
+
.authControllerHealthCheck(options)
|
|
1847
|
+
.then((request) => request(this.axios, this.basePath));
|
|
1734
1848
|
}
|
|
1735
1849
|
/**
|
|
1736
1850
|
*
|
|
@@ -1741,7 +1855,9 @@ class ApiV1AuthApi extends base_1.BaseAPI {
|
|
|
1741
1855
|
* @memberof ApiV1AuthApi
|
|
1742
1856
|
*/
|
|
1743
1857
|
authControllerLinkProvider(requestParameters, options) {
|
|
1744
|
-
return (0, exports.ApiV1AuthApiFp)(this.configuration)
|
|
1858
|
+
return (0, exports.ApiV1AuthApiFp)(this.configuration)
|
|
1859
|
+
.authControllerLinkProvider(requestParameters.body, options)
|
|
1860
|
+
.then((request) => request(this.axios, this.basePath));
|
|
1745
1861
|
}
|
|
1746
1862
|
/**
|
|
1747
1863
|
*
|
|
@@ -1752,7 +1868,9 @@ class ApiV1AuthApi extends base_1.BaseAPI {
|
|
|
1752
1868
|
* @memberof ApiV1AuthApi
|
|
1753
1869
|
*/
|
|
1754
1870
|
authControllerLogin(requestParameters, options) {
|
|
1755
|
-
return (0, exports.ApiV1AuthApiFp)(this.configuration)
|
|
1871
|
+
return (0, exports.ApiV1AuthApiFp)(this.configuration)
|
|
1872
|
+
.authControllerLogin(requestParameters.body, options)
|
|
1873
|
+
.then((request) => request(this.axios, this.basePath));
|
|
1756
1874
|
}
|
|
1757
1875
|
/**
|
|
1758
1876
|
*
|
|
@@ -1762,7 +1880,9 @@ class ApiV1AuthApi extends base_1.BaseAPI {
|
|
|
1762
1880
|
* @memberof ApiV1AuthApi
|
|
1763
1881
|
*/
|
|
1764
1882
|
authControllerLogout(options) {
|
|
1765
|
-
return (0, exports.ApiV1AuthApiFp)(this.configuration)
|
|
1883
|
+
return (0, exports.ApiV1AuthApiFp)(this.configuration)
|
|
1884
|
+
.authControllerLogout(options)
|
|
1885
|
+
.then((request) => request(this.axios, this.basePath));
|
|
1766
1886
|
}
|
|
1767
1887
|
/**
|
|
1768
1888
|
*
|
|
@@ -1772,7 +1892,9 @@ class ApiV1AuthApi extends base_1.BaseAPI {
|
|
|
1772
1892
|
* @memberof ApiV1AuthApi
|
|
1773
1893
|
*/
|
|
1774
1894
|
authControllerRefresh(options) {
|
|
1775
|
-
return (0, exports.ApiV1AuthApiFp)(this.configuration)
|
|
1895
|
+
return (0, exports.ApiV1AuthApiFp)(this.configuration)
|
|
1896
|
+
.authControllerRefresh(options)
|
|
1897
|
+
.then((request) => request(this.axios, this.basePath));
|
|
1776
1898
|
}
|
|
1777
1899
|
/**
|
|
1778
1900
|
*
|
|
@@ -1783,7 +1905,9 @@ class ApiV1AuthApi extends base_1.BaseAPI {
|
|
|
1783
1905
|
* @memberof ApiV1AuthApi
|
|
1784
1906
|
*/
|
|
1785
1907
|
authControllerRegister(requestParameters, options) {
|
|
1786
|
-
return (0, exports.ApiV1AuthApiFp)(this.configuration)
|
|
1908
|
+
return (0, exports.ApiV1AuthApiFp)(this.configuration)
|
|
1909
|
+
.authControllerRegister(requestParameters.body, options)
|
|
1910
|
+
.then((request) => request(this.axios, this.basePath));
|
|
1787
1911
|
}
|
|
1788
1912
|
/**
|
|
1789
1913
|
*
|
|
@@ -1794,7 +1918,9 @@ class ApiV1AuthApi extends base_1.BaseAPI {
|
|
|
1794
1918
|
* @memberof ApiV1AuthApi
|
|
1795
1919
|
*/
|
|
1796
1920
|
authControllerRequestPasswordReset(requestParameters, options) {
|
|
1797
|
-
return (0, exports.ApiV1AuthApiFp)(this.configuration)
|
|
1921
|
+
return (0, exports.ApiV1AuthApiFp)(this.configuration)
|
|
1922
|
+
.authControllerRequestPasswordReset(requestParameters.requestPasswordResetDto, options)
|
|
1923
|
+
.then((request) => request(this.axios, this.basePath));
|
|
1798
1924
|
}
|
|
1799
1925
|
/**
|
|
1800
1926
|
*
|
|
@@ -1805,7 +1931,9 @@ class ApiV1AuthApi extends base_1.BaseAPI {
|
|
|
1805
1931
|
* @memberof ApiV1AuthApi
|
|
1806
1932
|
*/
|
|
1807
1933
|
authControllerResendVerification(requestParameters, options) {
|
|
1808
|
-
return (0, exports.ApiV1AuthApiFp)(this.configuration)
|
|
1934
|
+
return (0, exports.ApiV1AuthApiFp)(this.configuration)
|
|
1935
|
+
.authControllerResendVerification(requestParameters.resendVerificationDto, options)
|
|
1936
|
+
.then((request) => request(this.axios, this.basePath));
|
|
1809
1937
|
}
|
|
1810
1938
|
/**
|
|
1811
1939
|
*
|
|
@@ -1816,7 +1944,9 @@ class ApiV1AuthApi extends base_1.BaseAPI {
|
|
|
1816
1944
|
* @memberof ApiV1AuthApi
|
|
1817
1945
|
*/
|
|
1818
1946
|
authControllerResetPassword(requestParameters, options) {
|
|
1819
|
-
return (0, exports.ApiV1AuthApiFp)(this.configuration)
|
|
1947
|
+
return (0, exports.ApiV1AuthApiFp)(this.configuration)
|
|
1948
|
+
.authControllerResetPassword(requestParameters.resetPasswordDto, options)
|
|
1949
|
+
.then((request) => request(this.axios, this.basePath));
|
|
1820
1950
|
}
|
|
1821
1951
|
/**
|
|
1822
1952
|
*
|
|
@@ -1827,7 +1957,9 @@ class ApiV1AuthApi extends base_1.BaseAPI {
|
|
|
1827
1957
|
* @memberof ApiV1AuthApi
|
|
1828
1958
|
*/
|
|
1829
1959
|
authControllerVerifyEmail(requestParameters, options) {
|
|
1830
|
-
return (0, exports.ApiV1AuthApiFp)(this.configuration)
|
|
1960
|
+
return (0, exports.ApiV1AuthApiFp)(this.configuration)
|
|
1961
|
+
.authControllerVerifyEmail(requestParameters.verifyEmailDto, options)
|
|
1962
|
+
.then((request) => request(this.axios, this.basePath));
|
|
1831
1963
|
}
|
|
1832
1964
|
}
|
|
1833
1965
|
exports.ApiV1AuthApi = ApiV1AuthApi;
|
|
@@ -1838,46 +1970,16 @@ exports.ApiV1AuthApi = ApiV1AuthApi;
|
|
|
1838
1970
|
const ApiV1SsoApiAxiosParamCreator = function (configuration) {
|
|
1839
1971
|
return {
|
|
1840
1972
|
/**
|
|
1841
|
-
* Generates a
|
|
1842
|
-
* @summary Generate
|
|
1843
|
-
* @param {
|
|
1844
|
-
* @param {*} [options] Override http request option.
|
|
1845
|
-
* @throws {RequiredError}
|
|
1846
|
-
*/
|
|
1847
|
-
ssoControllerGenerateLocalCode: (body_1, ...args_1) => __awaiter(this, [body_1, ...args_1], void 0, function* (body, options = {}) {
|
|
1848
|
-
// verify required parameter 'body' is not null or undefined
|
|
1849
|
-
(0, common_1.assertParamExists)('ssoControllerGenerateLocalCode', 'body', body);
|
|
1850
|
-
const localVarPath = `/api/v1/sso/generate-code`;
|
|
1851
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1852
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1853
|
-
let baseOptions;
|
|
1854
|
-
if (configuration) {
|
|
1855
|
-
baseOptions = configuration.baseOptions;
|
|
1856
|
-
}
|
|
1857
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1858
|
-
const localVarHeaderParameter = {};
|
|
1859
|
-
const localVarQueryParameter = {};
|
|
1860
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1861
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1862
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1863
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1864
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
|
|
1865
|
-
return {
|
|
1866
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1867
|
-
options: localVarRequestOptions,
|
|
1868
|
-
};
|
|
1869
|
-
}),
|
|
1870
|
-
/**
|
|
1871
|
-
* Validates an authorization code and returns the associated user information. The code is consumed upon successful validation and cannot be reused.
|
|
1872
|
-
* @summary Validate and consume an authorization code
|
|
1873
|
-
* @param {object} body
|
|
1973
|
+
* 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.
|
|
1974
|
+
* @summary Generate a signed ID token for worker authentication
|
|
1975
|
+
* @param {SsoTokenRequestDto} ssoTokenRequestDto
|
|
1874
1976
|
* @param {*} [options] Override http request option.
|
|
1875
1977
|
* @throws {RequiredError}
|
|
1876
1978
|
*/
|
|
1877
|
-
|
|
1878
|
-
// verify required parameter '
|
|
1879
|
-
(0, common_1.assertParamExists)('
|
|
1880
|
-
const localVarPath = `/api/v1/sso/
|
|
1979
|
+
ssoControllerGenerateToken: (ssoTokenRequestDto_1, ...args_1) => __awaiter(this, [ssoTokenRequestDto_1, ...args_1], void 0, function* (ssoTokenRequestDto, options = {}) {
|
|
1980
|
+
// verify required parameter 'ssoTokenRequestDto' is not null or undefined
|
|
1981
|
+
(0, common_1.assertParamExists)('ssoControllerGenerateToken', 'ssoTokenRequestDto', ssoTokenRequestDto);
|
|
1982
|
+
const localVarPath = `/api/v1/sso/token`;
|
|
1881
1983
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1882
1984
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1883
1985
|
let baseOptions;
|
|
@@ -1891,7 +1993,7 @@ const ApiV1SsoApiAxiosParamCreator = function (configuration) {
|
|
|
1891
1993
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1892
1994
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1893
1995
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1894
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
1996
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(ssoTokenRequestDto, localVarRequestOptions, configuration);
|
|
1895
1997
|
return {
|
|
1896
1998
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1897
1999
|
options: localVarRequestOptions,
|
|
@@ -1908,34 +2010,18 @@ const ApiV1SsoApiFp = function (configuration) {
|
|
|
1908
2010
|
const localVarAxiosParamCreator = (0, exports.ApiV1SsoApiAxiosParamCreator)(configuration);
|
|
1909
2011
|
return {
|
|
1910
2012
|
/**
|
|
1911
|
-
* Generates a
|
|
1912
|
-
* @summary Generate
|
|
1913
|
-
* @param {
|
|
1914
|
-
* @param {*} [options] Override http request option.
|
|
1915
|
-
* @throws {RequiredError}
|
|
1916
|
-
*/
|
|
1917
|
-
ssoControllerGenerateLocalCode(body, options) {
|
|
1918
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1919
|
-
var _a, _b, _c;
|
|
1920
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.ssoControllerGenerateLocalCode(body, options);
|
|
1921
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1922
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ApiV1SsoApi.ssoControllerGenerateLocalCode']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1923
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1924
|
-
});
|
|
1925
|
-
},
|
|
1926
|
-
/**
|
|
1927
|
-
* Validates an authorization code and returns the associated user information. The code is consumed upon successful validation and cannot be reused.
|
|
1928
|
-
* @summary Validate and consume an authorization code
|
|
1929
|
-
* @param {object} body
|
|
2013
|
+
* 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.
|
|
2014
|
+
* @summary Generate a signed ID token for worker authentication
|
|
2015
|
+
* @param {SsoTokenRequestDto} ssoTokenRequestDto
|
|
1930
2016
|
* @param {*} [options] Override http request option.
|
|
1931
2017
|
* @throws {RequiredError}
|
|
1932
2018
|
*/
|
|
1933
|
-
|
|
2019
|
+
ssoControllerGenerateToken(ssoTokenRequestDto, options) {
|
|
1934
2020
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1935
2021
|
var _a, _b, _c;
|
|
1936
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
2022
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.ssoControllerGenerateToken(ssoTokenRequestDto, options);
|
|
1937
2023
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1938
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ApiV1SsoApi.
|
|
2024
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ApiV1SsoApi.ssoControllerGenerateToken']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1939
2025
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1940
2026
|
});
|
|
1941
2027
|
},
|
|
@@ -1950,24 +2036,16 @@ const ApiV1SsoApiFactory = function (configuration, basePath, axios) {
|
|
|
1950
2036
|
const localVarFp = (0, exports.ApiV1SsoApiFp)(configuration);
|
|
1951
2037
|
return {
|
|
1952
2038
|
/**
|
|
1953
|
-
* Generates a
|
|
1954
|
-
* @summary Generate
|
|
1955
|
-
* @param {
|
|
1956
|
-
* @param {*} [options] Override http request option.
|
|
1957
|
-
* @throws {RequiredError}
|
|
1958
|
-
*/
|
|
1959
|
-
ssoControllerGenerateLocalCode(requestParameters, options) {
|
|
1960
|
-
return localVarFp.ssoControllerGenerateLocalCode(requestParameters.body, options).then((request) => request(axios, basePath));
|
|
1961
|
-
},
|
|
1962
|
-
/**
|
|
1963
|
-
* Validates an authorization code and returns the associated user information. The code is consumed upon successful validation and cannot be reused.
|
|
1964
|
-
* @summary Validate and consume an authorization code
|
|
1965
|
-
* @param {ApiV1SsoApiSsoControllerValidateCodeRequest} requestParameters Request parameters.
|
|
2039
|
+
* 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.
|
|
2040
|
+
* @summary Generate a signed ID token for worker authentication
|
|
2041
|
+
* @param {ApiV1SsoApiSsoControllerGenerateTokenRequest} requestParameters Request parameters.
|
|
1966
2042
|
* @param {*} [options] Override http request option.
|
|
1967
2043
|
* @throws {RequiredError}
|
|
1968
2044
|
*/
|
|
1969
|
-
|
|
1970
|
-
return localVarFp
|
|
2045
|
+
ssoControllerGenerateToken(requestParameters, options) {
|
|
2046
|
+
return localVarFp
|
|
2047
|
+
.ssoControllerGenerateToken(requestParameters.ssoTokenRequestDto, options)
|
|
2048
|
+
.then((request) => request(axios, basePath));
|
|
1971
2049
|
},
|
|
1972
2050
|
};
|
|
1973
2051
|
};
|
|
@@ -1980,26 +2058,17 @@ exports.ApiV1SsoApiFactory = ApiV1SsoApiFactory;
|
|
|
1980
2058
|
*/
|
|
1981
2059
|
class ApiV1SsoApi extends base_1.BaseAPI {
|
|
1982
2060
|
/**
|
|
1983
|
-
* Generates a
|
|
1984
|
-
* @summary Generate
|
|
1985
|
-
* @param {
|
|
1986
|
-
* @param {*} [options] Override http request option.
|
|
1987
|
-
* @throws {RequiredError}
|
|
1988
|
-
* @memberof ApiV1SsoApi
|
|
1989
|
-
*/
|
|
1990
|
-
ssoControllerGenerateLocalCode(requestParameters, options) {
|
|
1991
|
-
return (0, exports.ApiV1SsoApiFp)(this.configuration).ssoControllerGenerateLocalCode(requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
1992
|
-
}
|
|
1993
|
-
/**
|
|
1994
|
-
* Validates an authorization code and returns the associated user information. The code is consumed upon successful validation and cannot be reused.
|
|
1995
|
-
* @summary Validate and consume an authorization code
|
|
1996
|
-
* @param {ApiV1SsoApiSsoControllerValidateCodeRequest} requestParameters Request parameters.
|
|
2061
|
+
* 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.
|
|
2062
|
+
* @summary Generate a signed ID token for worker authentication
|
|
2063
|
+
* @param {ApiV1SsoApiSsoControllerGenerateTokenRequest} requestParameters Request parameters.
|
|
1997
2064
|
* @param {*} [options] Override http request option.
|
|
1998
2065
|
* @throws {RequiredError}
|
|
1999
2066
|
* @memberof ApiV1SsoApi
|
|
2000
2067
|
*/
|
|
2001
|
-
|
|
2002
|
-
return (0, exports.ApiV1SsoApiFp)(this.configuration)
|
|
2068
|
+
ssoControllerGenerateToken(requestParameters, options) {
|
|
2069
|
+
return (0, exports.ApiV1SsoApiFp)(this.configuration)
|
|
2070
|
+
.ssoControllerGenerateToken(requestParameters.ssoTokenRequestDto, options)
|
|
2071
|
+
.then((request) => request(this.axios, this.basePath));
|
|
2003
2072
|
}
|
|
2004
2073
|
}
|
|
2005
2074
|
exports.ApiV1SsoApi = ApiV1SsoApi;
|
|
@@ -2145,7 +2214,9 @@ class ApiV1UserApi extends base_1.BaseAPI {
|
|
|
2145
2214
|
* @memberof ApiV1UserApi
|
|
2146
2215
|
*/
|
|
2147
2216
|
userControllerDeleteAccount(options) {
|
|
2148
|
-
return (0, exports.ApiV1UserApiFp)(this.configuration)
|
|
2217
|
+
return (0, exports.ApiV1UserApiFp)(this.configuration)
|
|
2218
|
+
.userControllerDeleteAccount(options)
|
|
2219
|
+
.then((request) => request(this.axios, this.basePath));
|
|
2149
2220
|
}
|
|
2150
2221
|
/**
|
|
2151
2222
|
*
|
|
@@ -2155,7 +2226,9 @@ class ApiV1UserApi extends base_1.BaseAPI {
|
|
|
2155
2226
|
* @memberof ApiV1UserApi
|
|
2156
2227
|
*/
|
|
2157
2228
|
userControllerInfo(options) {
|
|
2158
|
-
return (0, exports.ApiV1UserApiFp)(this.configuration)
|
|
2229
|
+
return (0, exports.ApiV1UserApiFp)(this.configuration)
|
|
2230
|
+
.userControllerInfo(options)
|
|
2231
|
+
.then((request) => request(this.axios, this.basePath));
|
|
2159
2232
|
}
|
|
2160
2233
|
}
|
|
2161
2234
|
exports.ApiV1UserApi = ApiV1UserApi;
|
|
@@ -2285,7 +2358,9 @@ const ApiV1UserSettingsApiFactory = function (configuration, basePath, axios) {
|
|
|
2285
2358
|
* @throws {RequiredError}
|
|
2286
2359
|
*/
|
|
2287
2360
|
userSettingsControllerUpdateSettings(requestParameters, options) {
|
|
2288
|
-
return localVarFp
|
|
2361
|
+
return localVarFp
|
|
2362
|
+
.userSettingsControllerUpdateSettings(requestParameters.userSettingsUpdateDto, options)
|
|
2363
|
+
.then((request) => request(axios, basePath));
|
|
2289
2364
|
},
|
|
2290
2365
|
};
|
|
2291
2366
|
};
|
|
@@ -2304,7 +2379,9 @@ class ApiV1UserSettingsApi extends base_1.BaseAPI {
|
|
|
2304
2379
|
* @memberof ApiV1UserSettingsApi
|
|
2305
2380
|
*/
|
|
2306
2381
|
userSettingsControllerGetSettings(options) {
|
|
2307
|
-
return (0, exports.ApiV1UserSettingsApiFp)(this.configuration)
|
|
2382
|
+
return (0, exports.ApiV1UserSettingsApiFp)(this.configuration)
|
|
2383
|
+
.userSettingsControllerGetSettings(options)
|
|
2384
|
+
.then((request) => request(this.axios, this.basePath));
|
|
2308
2385
|
}
|
|
2309
2386
|
/**
|
|
2310
2387
|
*
|
|
@@ -2315,7 +2392,9 @@ class ApiV1UserSettingsApi extends base_1.BaseAPI {
|
|
|
2315
2392
|
* @memberof ApiV1UserSettingsApi
|
|
2316
2393
|
*/
|
|
2317
2394
|
userSettingsControllerUpdateSettings(requestParameters, options) {
|
|
2318
|
-
return (0, exports.ApiV1UserSettingsApiFp)(this.configuration)
|
|
2395
|
+
return (0, exports.ApiV1UserSettingsApiFp)(this.configuration)
|
|
2396
|
+
.userSettingsControllerUpdateSettings(requestParameters.userSettingsUpdateDto, options)
|
|
2397
|
+
.then((request) => request(this.axios, this.basePath));
|
|
2319
2398
|
}
|
|
2320
2399
|
}
|
|
2321
2400
|
exports.ApiV1UserSettingsApi = ApiV1UserSettingsApi;
|
|
@@ -2395,8 +2474,7 @@ const ApiV1WorkersApiAxiosParamCreator = function (configuration) {
|
|
|
2395
2474
|
workerControllerDeleteWorker: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
2396
2475
|
// verify required parameter 'id' is not null or undefined
|
|
2397
2476
|
(0, common_1.assertParamExists)('workerControllerDeleteWorker', 'id', id);
|
|
2398
|
-
const localVarPath = `/api/v1/workers/id/{id}`
|
|
2399
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
2477
|
+
const localVarPath = `/api/v1/workers/id/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
2400
2478
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2401
2479
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2402
2480
|
let baseOptions;
|
|
@@ -2414,35 +2492,6 @@ const ApiV1WorkersApiAxiosParamCreator = function (configuration) {
|
|
|
2414
2492
|
options: localVarRequestOptions,
|
|
2415
2493
|
};
|
|
2416
2494
|
}),
|
|
2417
|
-
/**
|
|
2418
|
-
*
|
|
2419
|
-
* @summary Create a worker secret
|
|
2420
|
-
* @param {string} id The ID of the worker
|
|
2421
|
-
* @param {*} [options] Override http request option.
|
|
2422
|
-
* @throws {RequiredError}
|
|
2423
|
-
*/
|
|
2424
|
-
workerControllerGenerateWorkerSecret: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
2425
|
-
// verify required parameter 'id' is not null or undefined
|
|
2426
|
-
(0, common_1.assertParamExists)('workerControllerGenerateWorkerSecret', 'id', id);
|
|
2427
|
-
const localVarPath = `/api/v1/workers/{id}/generate-secret`
|
|
2428
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
2429
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2430
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2431
|
-
let baseOptions;
|
|
2432
|
-
if (configuration) {
|
|
2433
|
-
baseOptions = configuration.baseOptions;
|
|
2434
|
-
}
|
|
2435
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
2436
|
-
const localVarHeaderParameter = {};
|
|
2437
|
-
const localVarQueryParameter = {};
|
|
2438
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2439
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2440
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2441
|
-
return {
|
|
2442
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2443
|
-
options: localVarRequestOptions,
|
|
2444
|
-
};
|
|
2445
|
-
}),
|
|
2446
2495
|
/**
|
|
2447
2496
|
*
|
|
2448
2497
|
* @summary Get a worker by ID
|
|
@@ -2453,8 +2502,7 @@ const ApiV1WorkersApiAxiosParamCreator = function (configuration) {
|
|
|
2453
2502
|
workerControllerGetWorkerById: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
2454
2503
|
// verify required parameter 'id' is not null or undefined
|
|
2455
2504
|
(0, common_1.assertParamExists)('workerControllerGetWorkerById', 'id', id);
|
|
2456
|
-
const localVarPath = `/api/v1/workers/{id}`
|
|
2457
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
2505
|
+
const localVarPath = `/api/v1/workers/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
2458
2506
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2459
2507
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2460
2508
|
let baseOptions;
|
|
@@ -2534,8 +2582,7 @@ const ApiV1WorkersApiAxiosParamCreator = function (configuration) {
|
|
|
2534
2582
|
(0, common_1.assertParamExists)('workerControllerUpdateWorker', 'id', id);
|
|
2535
2583
|
// verify required parameter 'workerUpdateDto' is not null or undefined
|
|
2536
2584
|
(0, common_1.assertParamExists)('workerControllerUpdateWorker', 'workerUpdateDto', workerUpdateDto);
|
|
2537
|
-
const localVarPath = `/api/v1/workers/{id}`
|
|
2538
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
2585
|
+
const localVarPath = `/api/v1/workers/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
2539
2586
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2540
2587
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2541
2588
|
let baseOptions;
|
|
@@ -2613,22 +2660,6 @@ const ApiV1WorkersApiFp = function (configuration) {
|
|
|
2613
2660
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2614
2661
|
});
|
|
2615
2662
|
},
|
|
2616
|
-
/**
|
|
2617
|
-
*
|
|
2618
|
-
* @summary Create a worker secret
|
|
2619
|
-
* @param {string} id The ID of the worker
|
|
2620
|
-
* @param {*} [options] Override http request option.
|
|
2621
|
-
* @throws {RequiredError}
|
|
2622
|
-
*/
|
|
2623
|
-
workerControllerGenerateWorkerSecret(id, options) {
|
|
2624
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
2625
|
-
var _a, _b, _c;
|
|
2626
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.workerControllerGenerateWorkerSecret(id, options);
|
|
2627
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2628
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ApiV1WorkersApi.workerControllerGenerateWorkerSecret']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2629
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2630
|
-
});
|
|
2631
|
-
},
|
|
2632
2663
|
/**
|
|
2633
2664
|
*
|
|
2634
2665
|
* @summary Get a worker by ID
|
|
@@ -2701,7 +2732,9 @@ const ApiV1WorkersApiFactory = function (configuration, basePath, axios) {
|
|
|
2701
2732
|
* @throws {RequiredError}
|
|
2702
2733
|
*/
|
|
2703
2734
|
workerControllerBatchDeleteWorkers(requestParameters, options) {
|
|
2704
|
-
return localVarFp
|
|
2735
|
+
return localVarFp
|
|
2736
|
+
.workerControllerBatchDeleteWorkers(requestParameters.workerControllerBatchDeleteWorkersRequest, options)
|
|
2737
|
+
.then((request) => request(axios, basePath));
|
|
2705
2738
|
},
|
|
2706
2739
|
/**
|
|
2707
2740
|
*
|
|
@@ -2711,7 +2744,9 @@ const ApiV1WorkersApiFactory = function (configuration, basePath, axios) {
|
|
|
2711
2744
|
* @throws {RequiredError}
|
|
2712
2745
|
*/
|
|
2713
2746
|
workerControllerCreateWorker(requestParameters, options) {
|
|
2714
|
-
return localVarFp
|
|
2747
|
+
return localVarFp
|
|
2748
|
+
.workerControllerCreateWorker(requestParameters.workerCreateDto, options)
|
|
2749
|
+
.then((request) => request(axios, basePath));
|
|
2715
2750
|
},
|
|
2716
2751
|
/**
|
|
2717
2752
|
*
|
|
@@ -2721,17 +2756,9 @@ const ApiV1WorkersApiFactory = function (configuration, basePath, axios) {
|
|
|
2721
2756
|
* @throws {RequiredError}
|
|
2722
2757
|
*/
|
|
2723
2758
|
workerControllerDeleteWorker(requestParameters, options) {
|
|
2724
|
-
return localVarFp
|
|
2725
|
-
|
|
2726
|
-
|
|
2727
|
-
*
|
|
2728
|
-
* @summary Create a worker secret
|
|
2729
|
-
* @param {ApiV1WorkersApiWorkerControllerGenerateWorkerSecretRequest} requestParameters Request parameters.
|
|
2730
|
-
* @param {*} [options] Override http request option.
|
|
2731
|
-
* @throws {RequiredError}
|
|
2732
|
-
*/
|
|
2733
|
-
workerControllerGenerateWorkerSecret(requestParameters, options) {
|
|
2734
|
-
return localVarFp.workerControllerGenerateWorkerSecret(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
2759
|
+
return localVarFp
|
|
2760
|
+
.workerControllerDeleteWorker(requestParameters.id, options)
|
|
2761
|
+
.then((request) => request(axios, basePath));
|
|
2735
2762
|
},
|
|
2736
2763
|
/**
|
|
2737
2764
|
*
|
|
@@ -2741,7 +2768,9 @@ const ApiV1WorkersApiFactory = function (configuration, basePath, axios) {
|
|
|
2741
2768
|
* @throws {RequiredError}
|
|
2742
2769
|
*/
|
|
2743
2770
|
workerControllerGetWorkerById(requestParameters, options) {
|
|
2744
|
-
return localVarFp
|
|
2771
|
+
return localVarFp
|
|
2772
|
+
.workerControllerGetWorkerById(requestParameters.id, options)
|
|
2773
|
+
.then((request) => request(axios, basePath));
|
|
2745
2774
|
},
|
|
2746
2775
|
/**
|
|
2747
2776
|
*
|
|
@@ -2751,7 +2780,9 @@ const ApiV1WorkersApiFactory = function (configuration, basePath, axios) {
|
|
|
2751
2780
|
* @throws {RequiredError}
|
|
2752
2781
|
*/
|
|
2753
2782
|
workerControllerGetWorkers(requestParameters = {}, options) {
|
|
2754
|
-
return localVarFp
|
|
2783
|
+
return localVarFp
|
|
2784
|
+
.workerControllerGetWorkers(requestParameters.page, requestParameters.limit, requestParameters.filter, requestParameters.sortBy, requestParameters.search, requestParameters.searchColumns, options)
|
|
2785
|
+
.then((request) => request(axios, basePath));
|
|
2755
2786
|
},
|
|
2756
2787
|
/**
|
|
2757
2788
|
*
|
|
@@ -2761,7 +2792,9 @@ const ApiV1WorkersApiFactory = function (configuration, basePath, axios) {
|
|
|
2761
2792
|
* @throws {RequiredError}
|
|
2762
2793
|
*/
|
|
2763
2794
|
workerControllerUpdateWorker(requestParameters, options) {
|
|
2764
|
-
return localVarFp
|
|
2795
|
+
return localVarFp
|
|
2796
|
+
.workerControllerUpdateWorker(requestParameters.id, requestParameters.workerUpdateDto, options)
|
|
2797
|
+
.then((request) => request(axios, basePath));
|
|
2765
2798
|
},
|
|
2766
2799
|
};
|
|
2767
2800
|
};
|
|
@@ -2782,7 +2815,9 @@ class ApiV1WorkersApi extends base_1.BaseAPI {
|
|
|
2782
2815
|
* @memberof ApiV1WorkersApi
|
|
2783
2816
|
*/
|
|
2784
2817
|
workerControllerBatchDeleteWorkers(requestParameters, options) {
|
|
2785
|
-
return (0, exports.ApiV1WorkersApiFp)(this.configuration)
|
|
2818
|
+
return (0, exports.ApiV1WorkersApiFp)(this.configuration)
|
|
2819
|
+
.workerControllerBatchDeleteWorkers(requestParameters.workerControllerBatchDeleteWorkersRequest, options)
|
|
2820
|
+
.then((request) => request(this.axios, this.basePath));
|
|
2786
2821
|
}
|
|
2787
2822
|
/**
|
|
2788
2823
|
*
|
|
@@ -2793,7 +2828,9 @@ class ApiV1WorkersApi extends base_1.BaseAPI {
|
|
|
2793
2828
|
* @memberof ApiV1WorkersApi
|
|
2794
2829
|
*/
|
|
2795
2830
|
workerControllerCreateWorker(requestParameters, options) {
|
|
2796
|
-
return (0, exports.ApiV1WorkersApiFp)(this.configuration)
|
|
2831
|
+
return (0, exports.ApiV1WorkersApiFp)(this.configuration)
|
|
2832
|
+
.workerControllerCreateWorker(requestParameters.workerCreateDto, options)
|
|
2833
|
+
.then((request) => request(this.axios, this.basePath));
|
|
2797
2834
|
}
|
|
2798
2835
|
/**
|
|
2799
2836
|
*
|
|
@@ -2804,18 +2841,9 @@ class ApiV1WorkersApi extends base_1.BaseAPI {
|
|
|
2804
2841
|
* @memberof ApiV1WorkersApi
|
|
2805
2842
|
*/
|
|
2806
2843
|
workerControllerDeleteWorker(requestParameters, options) {
|
|
2807
|
-
return (0, exports.ApiV1WorkersApiFp)(this.configuration)
|
|
2808
|
-
|
|
2809
|
-
|
|
2810
|
-
*
|
|
2811
|
-
* @summary Create a worker secret
|
|
2812
|
-
* @param {ApiV1WorkersApiWorkerControllerGenerateWorkerSecretRequest} requestParameters Request parameters.
|
|
2813
|
-
* @param {*} [options] Override http request option.
|
|
2814
|
-
* @throws {RequiredError}
|
|
2815
|
-
* @memberof ApiV1WorkersApi
|
|
2816
|
-
*/
|
|
2817
|
-
workerControllerGenerateWorkerSecret(requestParameters, options) {
|
|
2818
|
-
return (0, exports.ApiV1WorkersApiFp)(this.configuration).workerControllerGenerateWorkerSecret(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
2844
|
+
return (0, exports.ApiV1WorkersApiFp)(this.configuration)
|
|
2845
|
+
.workerControllerDeleteWorker(requestParameters.id, options)
|
|
2846
|
+
.then((request) => request(this.axios, this.basePath));
|
|
2819
2847
|
}
|
|
2820
2848
|
/**
|
|
2821
2849
|
*
|
|
@@ -2826,7 +2854,9 @@ class ApiV1WorkersApi extends base_1.BaseAPI {
|
|
|
2826
2854
|
* @memberof ApiV1WorkersApi
|
|
2827
2855
|
*/
|
|
2828
2856
|
workerControllerGetWorkerById(requestParameters, options) {
|
|
2829
|
-
return (0, exports.ApiV1WorkersApiFp)(this.configuration)
|
|
2857
|
+
return (0, exports.ApiV1WorkersApiFp)(this.configuration)
|
|
2858
|
+
.workerControllerGetWorkerById(requestParameters.id, options)
|
|
2859
|
+
.then((request) => request(this.axios, this.basePath));
|
|
2830
2860
|
}
|
|
2831
2861
|
/**
|
|
2832
2862
|
*
|
|
@@ -2837,7 +2867,9 @@ class ApiV1WorkersApi extends base_1.BaseAPI {
|
|
|
2837
2867
|
* @memberof ApiV1WorkersApi
|
|
2838
2868
|
*/
|
|
2839
2869
|
workerControllerGetWorkers(requestParameters = {}, options) {
|
|
2840
|
-
return (0, exports.ApiV1WorkersApiFp)(this.configuration)
|
|
2870
|
+
return (0, exports.ApiV1WorkersApiFp)(this.configuration)
|
|
2871
|
+
.workerControllerGetWorkers(requestParameters.page, requestParameters.limit, requestParameters.filter, requestParameters.sortBy, requestParameters.search, requestParameters.searchColumns, options)
|
|
2872
|
+
.then((request) => request(this.axios, this.basePath));
|
|
2841
2873
|
}
|
|
2842
2874
|
/**
|
|
2843
2875
|
*
|
|
@@ -2848,7 +2880,1126 @@ class ApiV1WorkersApi extends base_1.BaseAPI {
|
|
|
2848
2880
|
* @memberof ApiV1WorkersApi
|
|
2849
2881
|
*/
|
|
2850
2882
|
workerControllerUpdateWorker(requestParameters, options) {
|
|
2851
|
-
return (0, exports.ApiV1WorkersApiFp)(this.configuration)
|
|
2883
|
+
return (0, exports.ApiV1WorkersApiFp)(this.configuration)
|
|
2884
|
+
.workerControllerUpdateWorker(requestParameters.id, requestParameters.workerUpdateDto, options)
|
|
2885
|
+
.then((request) => request(this.axios, this.basePath));
|
|
2852
2886
|
}
|
|
2853
2887
|
}
|
|
2854
2888
|
exports.ApiV1WorkersApi = ApiV1WorkersApi;
|
|
2889
|
+
/**
|
|
2890
|
+
* RegistryApi - axios parameter creator
|
|
2891
|
+
* @export
|
|
2892
|
+
*/
|
|
2893
|
+
const RegistryApiAxiosParamCreator = function (configuration) {
|
|
2894
|
+
return {
|
|
2895
|
+
/**
|
|
2896
|
+
* Review and confirm a draft entry, optionally modifying the extracted data. Moves the entry to pending status for review.
|
|
2897
|
+
* @summary Confirm a draft entry
|
|
2898
|
+
* @param {string} id
|
|
2899
|
+
* @param {ConfirmDraftDto} confirmDraftDto
|
|
2900
|
+
* @param {*} [options] Override http request option.
|
|
2901
|
+
* @throws {RequiredError}
|
|
2902
|
+
*/
|
|
2903
|
+
registryControllerConfirmDraft: (id_1, confirmDraftDto_1, ...args_1) => __awaiter(this, [id_1, confirmDraftDto_1, ...args_1], void 0, function* (id, confirmDraftDto, options = {}) {
|
|
2904
|
+
// verify required parameter 'id' is not null or undefined
|
|
2905
|
+
(0, common_1.assertParamExists)('registryControllerConfirmDraft', 'id', id);
|
|
2906
|
+
// verify required parameter 'confirmDraftDto' is not null or undefined
|
|
2907
|
+
(0, common_1.assertParamExists)('registryControllerConfirmDraft', 'confirmDraftDto', confirmDraftDto);
|
|
2908
|
+
const localVarPath = `/api/v1/registry/drafts/{id}/confirm`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
2909
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2910
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2911
|
+
let baseOptions;
|
|
2912
|
+
if (configuration) {
|
|
2913
|
+
baseOptions = configuration.baseOptions;
|
|
2914
|
+
}
|
|
2915
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
2916
|
+
const localVarHeaderParameter = {};
|
|
2917
|
+
const localVarQueryParameter = {};
|
|
2918
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2919
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2920
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2921
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2922
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(confirmDraftDto, localVarRequestOptions, configuration);
|
|
2923
|
+
return {
|
|
2924
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2925
|
+
options: localVarRequestOptions,
|
|
2926
|
+
};
|
|
2927
|
+
}),
|
|
2928
|
+
/**
|
|
2929
|
+
*
|
|
2930
|
+
* @summary List active entries
|
|
2931
|
+
* @param {string} [category]
|
|
2932
|
+
* @param {Array<string>} [tags]
|
|
2933
|
+
* @param {string} [search]
|
|
2934
|
+
* @param {number} [page]
|
|
2935
|
+
* @param {number} [limit]
|
|
2936
|
+
* @param {*} [options] Override http request option.
|
|
2937
|
+
* @throws {RequiredError}
|
|
2938
|
+
*/
|
|
2939
|
+
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 = {}) {
|
|
2940
|
+
const localVarPath = `/api/v1/registry/entries`;
|
|
2941
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2942
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2943
|
+
let baseOptions;
|
|
2944
|
+
if (configuration) {
|
|
2945
|
+
baseOptions = configuration.baseOptions;
|
|
2946
|
+
}
|
|
2947
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2948
|
+
const localVarHeaderParameter = {};
|
|
2949
|
+
const localVarQueryParameter = {};
|
|
2950
|
+
if (category !== undefined) {
|
|
2951
|
+
localVarQueryParameter['category'] = category;
|
|
2952
|
+
}
|
|
2953
|
+
if (tags) {
|
|
2954
|
+
localVarQueryParameter['tags'] = tags;
|
|
2955
|
+
}
|
|
2956
|
+
if (search !== undefined) {
|
|
2957
|
+
localVarQueryParameter['search'] = search;
|
|
2958
|
+
}
|
|
2959
|
+
if (page !== undefined) {
|
|
2960
|
+
localVarQueryParameter['page'] = page;
|
|
2961
|
+
}
|
|
2962
|
+
if (limit !== undefined) {
|
|
2963
|
+
localVarQueryParameter['limit'] = limit;
|
|
2964
|
+
}
|
|
2965
|
+
(0, common_1.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: (0, common_1.toPathString)(localVarUrlObj),
|
|
2970
|
+
options: localVarRequestOptions,
|
|
2971
|
+
};
|
|
2972
|
+
}),
|
|
2973
|
+
/**
|
|
2974
|
+
*
|
|
2975
|
+
* @summary Get single entry details by URL slug
|
|
2976
|
+
* @param {string} slug
|
|
2977
|
+
* @param {*} [options] Override http request option.
|
|
2978
|
+
* @throws {RequiredError}
|
|
2979
|
+
*/
|
|
2980
|
+
registryControllerFindOne: (slug_1, ...args_1) => __awaiter(this, [slug_1, ...args_1], void 0, function* (slug, options = {}) {
|
|
2981
|
+
// verify required parameter 'slug' is not null or undefined
|
|
2982
|
+
(0, common_1.assertParamExists)('registryControllerFindOne', 'slug', slug);
|
|
2983
|
+
const localVarPath = `/api/v1/registry/entries/{slug}`.replace(`{${'slug'}}`, encodeURIComponent(String(slug)));
|
|
2984
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2985
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2986
|
+
let baseOptions;
|
|
2987
|
+
if (configuration) {
|
|
2988
|
+
baseOptions = configuration.baseOptions;
|
|
2989
|
+
}
|
|
2990
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2991
|
+
const localVarHeaderParameter = {};
|
|
2992
|
+
const localVarQueryParameter = {};
|
|
2993
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2994
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2995
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2996
|
+
return {
|
|
2997
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2998
|
+
options: localVarRequestOptions,
|
|
2999
|
+
};
|
|
3000
|
+
}),
|
|
3001
|
+
/**
|
|
3002
|
+
*
|
|
3003
|
+
* @summary Get current user draft entries
|
|
3004
|
+
* @param {*} [options] Override http request option.
|
|
3005
|
+
* @throws {RequiredError}
|
|
3006
|
+
*/
|
|
3007
|
+
registryControllerGetUserDrafts: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
3008
|
+
const localVarPath = `/api/v1/registry/drafts`;
|
|
3009
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3010
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3011
|
+
let baseOptions;
|
|
3012
|
+
if (configuration) {
|
|
3013
|
+
baseOptions = configuration.baseOptions;
|
|
3014
|
+
}
|
|
3015
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
3016
|
+
const localVarHeaderParameter = {};
|
|
3017
|
+
const localVarQueryParameter = {};
|
|
3018
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3019
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3020
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3021
|
+
return {
|
|
3022
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3023
|
+
options: localVarRequestOptions,
|
|
3024
|
+
};
|
|
3025
|
+
}),
|
|
3026
|
+
/**
|
|
3027
|
+
* Validates an NPM package and creates a draft entry with extracted data. The user can then review and confirm the submission.
|
|
3028
|
+
* @summary Submit an NPM package
|
|
3029
|
+
* @param {SubmitPackageDto} submitPackageDto
|
|
3030
|
+
* @param {*} [options] Override http request option.
|
|
3031
|
+
* @throws {RequiredError}
|
|
3032
|
+
*/
|
|
3033
|
+
registryControllerSubmitPackage: (submitPackageDto_1, ...args_1) => __awaiter(this, [submitPackageDto_1, ...args_1], void 0, function* (submitPackageDto, options = {}) {
|
|
3034
|
+
// verify required parameter 'submitPackageDto' is not null or undefined
|
|
3035
|
+
(0, common_1.assertParamExists)('registryControllerSubmitPackage', 'submitPackageDto', submitPackageDto);
|
|
3036
|
+
const localVarPath = `/api/v1/registry/submit`;
|
|
3037
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3038
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3039
|
+
let baseOptions;
|
|
3040
|
+
if (configuration) {
|
|
3041
|
+
baseOptions = configuration.baseOptions;
|
|
3042
|
+
}
|
|
3043
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
3044
|
+
const localVarHeaderParameter = {};
|
|
3045
|
+
const localVarQueryParameter = {};
|
|
3046
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3047
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3048
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3049
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3050
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(submitPackageDto, localVarRequestOptions, configuration);
|
|
3051
|
+
return {
|
|
3052
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3053
|
+
options: localVarRequestOptions,
|
|
3054
|
+
};
|
|
3055
|
+
}),
|
|
3056
|
+
};
|
|
3057
|
+
};
|
|
3058
|
+
exports.RegistryApiAxiosParamCreator = RegistryApiAxiosParamCreator;
|
|
3059
|
+
/**
|
|
3060
|
+
* RegistryApi - functional programming interface
|
|
3061
|
+
* @export
|
|
3062
|
+
*/
|
|
3063
|
+
const RegistryApiFp = function (configuration) {
|
|
3064
|
+
const localVarAxiosParamCreator = (0, exports.RegistryApiAxiosParamCreator)(configuration);
|
|
3065
|
+
return {
|
|
3066
|
+
/**
|
|
3067
|
+
* Review and confirm a draft entry, optionally modifying the extracted data. Moves the entry to pending status for review.
|
|
3068
|
+
* @summary Confirm a draft entry
|
|
3069
|
+
* @param {string} id
|
|
3070
|
+
* @param {ConfirmDraftDto} confirmDraftDto
|
|
3071
|
+
* @param {*} [options] Override http request option.
|
|
3072
|
+
* @throws {RequiredError}
|
|
3073
|
+
*/
|
|
3074
|
+
registryControllerConfirmDraft(id, confirmDraftDto, options) {
|
|
3075
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3076
|
+
var _a, _b, _c;
|
|
3077
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.registryControllerConfirmDraft(id, confirmDraftDto, options);
|
|
3078
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3079
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['RegistryApi.registryControllerConfirmDraft']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3080
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3081
|
+
});
|
|
3082
|
+
},
|
|
3083
|
+
/**
|
|
3084
|
+
*
|
|
3085
|
+
* @summary List active entries
|
|
3086
|
+
* @param {string} [category]
|
|
3087
|
+
* @param {Array<string>} [tags]
|
|
3088
|
+
* @param {string} [search]
|
|
3089
|
+
* @param {number} [page]
|
|
3090
|
+
* @param {number} [limit]
|
|
3091
|
+
* @param {*} [options] Override http request option.
|
|
3092
|
+
* @throws {RequiredError}
|
|
3093
|
+
*/
|
|
3094
|
+
registryControllerFindAll(category, tags, search, page, limit, options) {
|
|
3095
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3096
|
+
var _a, _b, _c;
|
|
3097
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.registryControllerFindAll(category, tags, search, page, limit, options);
|
|
3098
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3099
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['RegistryApi.registryControllerFindAll']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3100
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3101
|
+
});
|
|
3102
|
+
},
|
|
3103
|
+
/**
|
|
3104
|
+
*
|
|
3105
|
+
* @summary Get single entry details by URL slug
|
|
3106
|
+
* @param {string} slug
|
|
3107
|
+
* @param {*} [options] Override http request option.
|
|
3108
|
+
* @throws {RequiredError}
|
|
3109
|
+
*/
|
|
3110
|
+
registryControllerFindOne(slug, options) {
|
|
3111
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3112
|
+
var _a, _b, _c;
|
|
3113
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.registryControllerFindOne(slug, options);
|
|
3114
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3115
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['RegistryApi.registryControllerFindOne']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3116
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3117
|
+
});
|
|
3118
|
+
},
|
|
3119
|
+
/**
|
|
3120
|
+
*
|
|
3121
|
+
* @summary Get current user draft entries
|
|
3122
|
+
* @param {*} [options] Override http request option.
|
|
3123
|
+
* @throws {RequiredError}
|
|
3124
|
+
*/
|
|
3125
|
+
registryControllerGetUserDrafts(options) {
|
|
3126
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3127
|
+
var _a, _b, _c;
|
|
3128
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.registryControllerGetUserDrafts(options);
|
|
3129
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3130
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['RegistryApi.registryControllerGetUserDrafts']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3131
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3132
|
+
});
|
|
3133
|
+
},
|
|
3134
|
+
/**
|
|
3135
|
+
* Validates an NPM package and creates a draft entry with extracted data. The user can then review and confirm the submission.
|
|
3136
|
+
* @summary Submit an NPM package
|
|
3137
|
+
* @param {SubmitPackageDto} submitPackageDto
|
|
3138
|
+
* @param {*} [options] Override http request option.
|
|
3139
|
+
* @throws {RequiredError}
|
|
3140
|
+
*/
|
|
3141
|
+
registryControllerSubmitPackage(submitPackageDto, options) {
|
|
3142
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3143
|
+
var _a, _b, _c;
|
|
3144
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.registryControllerSubmitPackage(submitPackageDto, options);
|
|
3145
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3146
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['RegistryApi.registryControllerSubmitPackage']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3147
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3148
|
+
});
|
|
3149
|
+
},
|
|
3150
|
+
};
|
|
3151
|
+
};
|
|
3152
|
+
exports.RegistryApiFp = RegistryApiFp;
|
|
3153
|
+
/**
|
|
3154
|
+
* RegistryApi - factory interface
|
|
3155
|
+
* @export
|
|
3156
|
+
*/
|
|
3157
|
+
const RegistryApiFactory = function (configuration, basePath, axios) {
|
|
3158
|
+
const localVarFp = (0, exports.RegistryApiFp)(configuration);
|
|
3159
|
+
return {
|
|
3160
|
+
/**
|
|
3161
|
+
* Review and confirm a draft entry, optionally modifying the extracted data. Moves the entry to pending status for review.
|
|
3162
|
+
* @summary Confirm a draft entry
|
|
3163
|
+
* @param {RegistryApiRegistryControllerConfirmDraftRequest} requestParameters Request parameters.
|
|
3164
|
+
* @param {*} [options] Override http request option.
|
|
3165
|
+
* @throws {RequiredError}
|
|
3166
|
+
*/
|
|
3167
|
+
registryControllerConfirmDraft(requestParameters, options) {
|
|
3168
|
+
return localVarFp
|
|
3169
|
+
.registryControllerConfirmDraft(requestParameters.id, requestParameters.confirmDraftDto, options)
|
|
3170
|
+
.then((request) => request(axios, basePath));
|
|
3171
|
+
},
|
|
3172
|
+
/**
|
|
3173
|
+
*
|
|
3174
|
+
* @summary List active entries
|
|
3175
|
+
* @param {RegistryApiRegistryControllerFindAllRequest} requestParameters Request parameters.
|
|
3176
|
+
* @param {*} [options] Override http request option.
|
|
3177
|
+
* @throws {RequiredError}
|
|
3178
|
+
*/
|
|
3179
|
+
registryControllerFindAll(requestParameters = {}, options) {
|
|
3180
|
+
return localVarFp
|
|
3181
|
+
.registryControllerFindAll(requestParameters.category, requestParameters.tags, requestParameters.search, requestParameters.page, requestParameters.limit, options)
|
|
3182
|
+
.then((request) => request(axios, basePath));
|
|
3183
|
+
},
|
|
3184
|
+
/**
|
|
3185
|
+
*
|
|
3186
|
+
* @summary Get single entry details by URL slug
|
|
3187
|
+
* @param {RegistryApiRegistryControllerFindOneRequest} requestParameters Request parameters.
|
|
3188
|
+
* @param {*} [options] Override http request option.
|
|
3189
|
+
* @throws {RequiredError}
|
|
3190
|
+
*/
|
|
3191
|
+
registryControllerFindOne(requestParameters, options) {
|
|
3192
|
+
return localVarFp
|
|
3193
|
+
.registryControllerFindOne(requestParameters.slug, options)
|
|
3194
|
+
.then((request) => request(axios, basePath));
|
|
3195
|
+
},
|
|
3196
|
+
/**
|
|
3197
|
+
*
|
|
3198
|
+
* @summary Get current user draft entries
|
|
3199
|
+
* @param {*} [options] Override http request option.
|
|
3200
|
+
* @throws {RequiredError}
|
|
3201
|
+
*/
|
|
3202
|
+
registryControllerGetUserDrafts(options) {
|
|
3203
|
+
return localVarFp.registryControllerGetUserDrafts(options).then((request) => request(axios, basePath));
|
|
3204
|
+
},
|
|
3205
|
+
/**
|
|
3206
|
+
* Validates an NPM package and creates a draft entry with extracted data. The user can then review and confirm the submission.
|
|
3207
|
+
* @summary Submit an NPM package
|
|
3208
|
+
* @param {RegistryApiRegistryControllerSubmitPackageRequest} requestParameters Request parameters.
|
|
3209
|
+
* @param {*} [options] Override http request option.
|
|
3210
|
+
* @throws {RequiredError}
|
|
3211
|
+
*/
|
|
3212
|
+
registryControllerSubmitPackage(requestParameters, options) {
|
|
3213
|
+
return localVarFp
|
|
3214
|
+
.registryControllerSubmitPackage(requestParameters.submitPackageDto, options)
|
|
3215
|
+
.then((request) => request(axios, basePath));
|
|
3216
|
+
},
|
|
3217
|
+
};
|
|
3218
|
+
};
|
|
3219
|
+
exports.RegistryApiFactory = RegistryApiFactory;
|
|
3220
|
+
/**
|
|
3221
|
+
* RegistryApi - object-oriented interface
|
|
3222
|
+
* @export
|
|
3223
|
+
* @class RegistryApi
|
|
3224
|
+
* @extends {BaseAPI}
|
|
3225
|
+
*/
|
|
3226
|
+
class RegistryApi extends base_1.BaseAPI {
|
|
3227
|
+
/**
|
|
3228
|
+
* Review and confirm a draft entry, optionally modifying the extracted data. Moves the entry to pending status for review.
|
|
3229
|
+
* @summary Confirm a draft entry
|
|
3230
|
+
* @param {RegistryApiRegistryControllerConfirmDraftRequest} requestParameters Request parameters.
|
|
3231
|
+
* @param {*} [options] Override http request option.
|
|
3232
|
+
* @throws {RequiredError}
|
|
3233
|
+
* @memberof RegistryApi
|
|
3234
|
+
*/
|
|
3235
|
+
registryControllerConfirmDraft(requestParameters, options) {
|
|
3236
|
+
return (0, exports.RegistryApiFp)(this.configuration)
|
|
3237
|
+
.registryControllerConfirmDraft(requestParameters.id, requestParameters.confirmDraftDto, options)
|
|
3238
|
+
.then((request) => request(this.axios, this.basePath));
|
|
3239
|
+
}
|
|
3240
|
+
/**
|
|
3241
|
+
*
|
|
3242
|
+
* @summary List active entries
|
|
3243
|
+
* @param {RegistryApiRegistryControllerFindAllRequest} requestParameters Request parameters.
|
|
3244
|
+
* @param {*} [options] Override http request option.
|
|
3245
|
+
* @throws {RequiredError}
|
|
3246
|
+
* @memberof RegistryApi
|
|
3247
|
+
*/
|
|
3248
|
+
registryControllerFindAll(requestParameters = {}, options) {
|
|
3249
|
+
return (0, exports.RegistryApiFp)(this.configuration)
|
|
3250
|
+
.registryControllerFindAll(requestParameters.category, requestParameters.tags, requestParameters.search, requestParameters.page, requestParameters.limit, options)
|
|
3251
|
+
.then((request) => request(this.axios, this.basePath));
|
|
3252
|
+
}
|
|
3253
|
+
/**
|
|
3254
|
+
*
|
|
3255
|
+
* @summary Get single entry details by URL slug
|
|
3256
|
+
* @param {RegistryApiRegistryControllerFindOneRequest} requestParameters Request parameters.
|
|
3257
|
+
* @param {*} [options] Override http request option.
|
|
3258
|
+
* @throws {RequiredError}
|
|
3259
|
+
* @memberof RegistryApi
|
|
3260
|
+
*/
|
|
3261
|
+
registryControllerFindOne(requestParameters, options) {
|
|
3262
|
+
return (0, exports.RegistryApiFp)(this.configuration)
|
|
3263
|
+
.registryControllerFindOne(requestParameters.slug, options)
|
|
3264
|
+
.then((request) => request(this.axios, this.basePath));
|
|
3265
|
+
}
|
|
3266
|
+
/**
|
|
3267
|
+
*
|
|
3268
|
+
* @summary Get current user draft entries
|
|
3269
|
+
* @param {*} [options] Override http request option.
|
|
3270
|
+
* @throws {RequiredError}
|
|
3271
|
+
* @memberof RegistryApi
|
|
3272
|
+
*/
|
|
3273
|
+
registryControllerGetUserDrafts(options) {
|
|
3274
|
+
return (0, exports.RegistryApiFp)(this.configuration)
|
|
3275
|
+
.registryControllerGetUserDrafts(options)
|
|
3276
|
+
.then((request) => request(this.axios, this.basePath));
|
|
3277
|
+
}
|
|
3278
|
+
/**
|
|
3279
|
+
* Validates an NPM package and creates a draft entry with extracted data. The user can then review and confirm the submission.
|
|
3280
|
+
* @summary Submit an NPM package
|
|
3281
|
+
* @param {RegistryApiRegistryControllerSubmitPackageRequest} requestParameters Request parameters.
|
|
3282
|
+
* @param {*} [options] Override http request option.
|
|
3283
|
+
* @throws {RequiredError}
|
|
3284
|
+
* @memberof RegistryApi
|
|
3285
|
+
*/
|
|
3286
|
+
registryControllerSubmitPackage(requestParameters, options) {
|
|
3287
|
+
return (0, exports.RegistryApiFp)(this.configuration)
|
|
3288
|
+
.registryControllerSubmitPackage(requestParameters.submitPackageDto, options)
|
|
3289
|
+
.then((request) => request(this.axios, this.basePath));
|
|
3290
|
+
}
|
|
3291
|
+
}
|
|
3292
|
+
exports.RegistryApi = RegistryApi;
|
|
3293
|
+
/**
|
|
3294
|
+
* RegistryAdminApi - axios parameter creator
|
|
3295
|
+
* @export
|
|
3296
|
+
*/
|
|
3297
|
+
const RegistryAdminApiAxiosParamCreator = function (configuration) {
|
|
3298
|
+
return {
|
|
3299
|
+
/**
|
|
3300
|
+
*
|
|
3301
|
+
* @summary Delete entry (admin)
|
|
3302
|
+
* @param {string} id
|
|
3303
|
+
* @param {*} [options] Override http request option.
|
|
3304
|
+
* @throws {RequiredError}
|
|
3305
|
+
*/
|
|
3306
|
+
registryAdminControllerDelete: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
3307
|
+
// verify required parameter 'id' is not null or undefined
|
|
3308
|
+
(0, common_1.assertParamExists)('registryAdminControllerDelete', 'id', id);
|
|
3309
|
+
const localVarPath = `/api/v1/registry/entries/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
3310
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3311
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3312
|
+
let baseOptions;
|
|
3313
|
+
if (configuration) {
|
|
3314
|
+
baseOptions = configuration.baseOptions;
|
|
3315
|
+
}
|
|
3316
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
3317
|
+
const localVarHeaderParameter = {};
|
|
3318
|
+
const localVarQueryParameter = {};
|
|
3319
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3320
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3321
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3322
|
+
return {
|
|
3323
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3324
|
+
options: localVarRequestOptions,
|
|
3325
|
+
};
|
|
3326
|
+
}),
|
|
3327
|
+
/**
|
|
3328
|
+
*
|
|
3329
|
+
* @summary List all entries (admin)
|
|
3330
|
+
* @param {string} [category]
|
|
3331
|
+
* @param {Array<string>} [tags]
|
|
3332
|
+
* @param {string} [search]
|
|
3333
|
+
* @param {number} [page]
|
|
3334
|
+
* @param {number} [limit]
|
|
3335
|
+
* @param {*} [options] Override http request option.
|
|
3336
|
+
* @throws {RequiredError}
|
|
3337
|
+
*/
|
|
3338
|
+
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 = {}) {
|
|
3339
|
+
const localVarPath = `/api/v1/registry/entries/admin`;
|
|
3340
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3341
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3342
|
+
let baseOptions;
|
|
3343
|
+
if (configuration) {
|
|
3344
|
+
baseOptions = configuration.baseOptions;
|
|
3345
|
+
}
|
|
3346
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
3347
|
+
const localVarHeaderParameter = {};
|
|
3348
|
+
const localVarQueryParameter = {};
|
|
3349
|
+
if (category !== undefined) {
|
|
3350
|
+
localVarQueryParameter['category'] = category;
|
|
3351
|
+
}
|
|
3352
|
+
if (tags) {
|
|
3353
|
+
localVarQueryParameter['tags'] = tags;
|
|
3354
|
+
}
|
|
3355
|
+
if (search !== undefined) {
|
|
3356
|
+
localVarQueryParameter['search'] = search;
|
|
3357
|
+
}
|
|
3358
|
+
if (page !== undefined) {
|
|
3359
|
+
localVarQueryParameter['page'] = page;
|
|
3360
|
+
}
|
|
3361
|
+
if (limit !== undefined) {
|
|
3362
|
+
localVarQueryParameter['limit'] = limit;
|
|
3363
|
+
}
|
|
3364
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3365
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3366
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3367
|
+
return {
|
|
3368
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3369
|
+
options: localVarRequestOptions,
|
|
3370
|
+
};
|
|
3371
|
+
}),
|
|
3372
|
+
/**
|
|
3373
|
+
*
|
|
3374
|
+
* @summary Get maintenance run history (admin)
|
|
3375
|
+
* @param {number} [limit] Maximum number of runs to return
|
|
3376
|
+
* @param {*} [options] Override http request option.
|
|
3377
|
+
* @throws {RequiredError}
|
|
3378
|
+
*/
|
|
3379
|
+
registryAdminControllerGetMaintenanceHistory: (limit_1, ...args_1) => __awaiter(this, [limit_1, ...args_1], void 0, function* (limit, options = {}) {
|
|
3380
|
+
const localVarPath = `/api/v1/registry/maintenance/history`;
|
|
3381
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3382
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3383
|
+
let baseOptions;
|
|
3384
|
+
if (configuration) {
|
|
3385
|
+
baseOptions = configuration.baseOptions;
|
|
3386
|
+
}
|
|
3387
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
3388
|
+
const localVarHeaderParameter = {};
|
|
3389
|
+
const localVarQueryParameter = {};
|
|
3390
|
+
if (limit !== undefined) {
|
|
3391
|
+
localVarQueryParameter['limit'] = limit;
|
|
3392
|
+
}
|
|
3393
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3394
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3395
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3396
|
+
return {
|
|
3397
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3398
|
+
options: localVarRequestOptions,
|
|
3399
|
+
};
|
|
3400
|
+
}),
|
|
3401
|
+
/**
|
|
3402
|
+
*
|
|
3403
|
+
* @summary Get registry maintenance statistics (admin)
|
|
3404
|
+
* @param {*} [options] Override http request option.
|
|
3405
|
+
* @throws {RequiredError}
|
|
3406
|
+
*/
|
|
3407
|
+
registryAdminControllerGetStatistics: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
3408
|
+
const localVarPath = `/api/v1/registry/maintenance/statistics`;
|
|
3409
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3410
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3411
|
+
let baseOptions;
|
|
3412
|
+
if (configuration) {
|
|
3413
|
+
baseOptions = configuration.baseOptions;
|
|
3414
|
+
}
|
|
3415
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
3416
|
+
const localVarHeaderParameter = {};
|
|
3417
|
+
const localVarQueryParameter = {};
|
|
3418
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3419
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3420
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3421
|
+
return {
|
|
3422
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3423
|
+
options: localVarRequestOptions,
|
|
3424
|
+
};
|
|
3425
|
+
}),
|
|
3426
|
+
/**
|
|
3427
|
+
*
|
|
3428
|
+
* @summary Run registry maintenance manually (admin)
|
|
3429
|
+
* @param {*} [options] Override http request option.
|
|
3430
|
+
* @throws {RequiredError}
|
|
3431
|
+
*/
|
|
3432
|
+
registryAdminControllerRunMaintenance: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
3433
|
+
const localVarPath = `/api/v1/registry/maintenance/run`;
|
|
3434
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3435
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3436
|
+
let baseOptions;
|
|
3437
|
+
if (configuration) {
|
|
3438
|
+
baseOptions = configuration.baseOptions;
|
|
3439
|
+
}
|
|
3440
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
3441
|
+
const localVarHeaderParameter = {};
|
|
3442
|
+
const localVarQueryParameter = {};
|
|
3443
|
+
(0, common_1.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
|
+
return {
|
|
3447
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3448
|
+
options: localVarRequestOptions,
|
|
3449
|
+
};
|
|
3450
|
+
}),
|
|
3451
|
+
/**
|
|
3452
|
+
*
|
|
3453
|
+
* @summary Update entry (admin)
|
|
3454
|
+
* @param {string} id
|
|
3455
|
+
* @param {UpdateEntryDto} updateEntryDto
|
|
3456
|
+
* @param {*} [options] Override http request option.
|
|
3457
|
+
* @throws {RequiredError}
|
|
3458
|
+
*/
|
|
3459
|
+
registryAdminControllerUpdate: (id_1, updateEntryDto_1, ...args_1) => __awaiter(this, [id_1, updateEntryDto_1, ...args_1], void 0, function* (id, updateEntryDto, options = {}) {
|
|
3460
|
+
// verify required parameter 'id' is not null or undefined
|
|
3461
|
+
(0, common_1.assertParamExists)('registryAdminControllerUpdate', 'id', id);
|
|
3462
|
+
// verify required parameter 'updateEntryDto' is not null or undefined
|
|
3463
|
+
(0, common_1.assertParamExists)('registryAdminControllerUpdate', 'updateEntryDto', updateEntryDto);
|
|
3464
|
+
const localVarPath = `/api/v1/registry/entries/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
3465
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3466
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3467
|
+
let baseOptions;
|
|
3468
|
+
if (configuration) {
|
|
3469
|
+
baseOptions = configuration.baseOptions;
|
|
3470
|
+
}
|
|
3471
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
3472
|
+
const localVarHeaderParameter = {};
|
|
3473
|
+
const localVarQueryParameter = {};
|
|
3474
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3475
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3476
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3477
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3478
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateEntryDto, localVarRequestOptions, configuration);
|
|
3479
|
+
return {
|
|
3480
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3481
|
+
options: localVarRequestOptions,
|
|
3482
|
+
};
|
|
3483
|
+
}),
|
|
3484
|
+
/**
|
|
3485
|
+
*
|
|
3486
|
+
* @summary Manage staff tags (admin)
|
|
3487
|
+
* @param {string} id
|
|
3488
|
+
* @param {UpdateStaffTagsDto} updateStaffTagsDto
|
|
3489
|
+
* @param {*} [options] Override http request option.
|
|
3490
|
+
* @throws {RequiredError}
|
|
3491
|
+
*/
|
|
3492
|
+
registryAdminControllerUpdateStaffTags: (id_1, updateStaffTagsDto_1, ...args_1) => __awaiter(this, [id_1, updateStaffTagsDto_1, ...args_1], void 0, function* (id, updateStaffTagsDto, options = {}) {
|
|
3493
|
+
// verify required parameter 'id' is not null or undefined
|
|
3494
|
+
(0, common_1.assertParamExists)('registryAdminControllerUpdateStaffTags', 'id', id);
|
|
3495
|
+
// verify required parameter 'updateStaffTagsDto' is not null or undefined
|
|
3496
|
+
(0, common_1.assertParamExists)('registryAdminControllerUpdateStaffTags', 'updateStaffTagsDto', updateStaffTagsDto);
|
|
3497
|
+
const localVarPath = `/api/v1/registry/entries/{id}/staff-tags`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
3498
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3499
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3500
|
+
let baseOptions;
|
|
3501
|
+
if (configuration) {
|
|
3502
|
+
baseOptions = configuration.baseOptions;
|
|
3503
|
+
}
|
|
3504
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
3505
|
+
const localVarHeaderParameter = {};
|
|
3506
|
+
const localVarQueryParameter = {};
|
|
3507
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3508
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3509
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3510
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3511
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateStaffTagsDto, localVarRequestOptions, configuration);
|
|
3512
|
+
return {
|
|
3513
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3514
|
+
options: localVarRequestOptions,
|
|
3515
|
+
};
|
|
3516
|
+
}),
|
|
3517
|
+
/**
|
|
3518
|
+
*
|
|
3519
|
+
* @summary Activate/deactivate entry (admin)
|
|
3520
|
+
* @param {string} id
|
|
3521
|
+
* @param {UpdateStatusDto} updateStatusDto
|
|
3522
|
+
* @param {*} [options] Override http request option.
|
|
3523
|
+
* @throws {RequiredError}
|
|
3524
|
+
*/
|
|
3525
|
+
registryAdminControllerUpdateStatus: (id_1, updateStatusDto_1, ...args_1) => __awaiter(this, [id_1, updateStatusDto_1, ...args_1], void 0, function* (id, updateStatusDto, options = {}) {
|
|
3526
|
+
// verify required parameter 'id' is not null or undefined
|
|
3527
|
+
(0, common_1.assertParamExists)('registryAdminControllerUpdateStatus', 'id', id);
|
|
3528
|
+
// verify required parameter 'updateStatusDto' is not null or undefined
|
|
3529
|
+
(0, common_1.assertParamExists)('registryAdminControllerUpdateStatus', 'updateStatusDto', updateStatusDto);
|
|
3530
|
+
const localVarPath = `/api/v1/registry/entries/{id}/status`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
3531
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3532
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3533
|
+
let baseOptions;
|
|
3534
|
+
if (configuration) {
|
|
3535
|
+
baseOptions = configuration.baseOptions;
|
|
3536
|
+
}
|
|
3537
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
3538
|
+
const localVarHeaderParameter = {};
|
|
3539
|
+
const localVarQueryParameter = {};
|
|
3540
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3541
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3542
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3543
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3544
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateStatusDto, localVarRequestOptions, configuration);
|
|
3545
|
+
return {
|
|
3546
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3547
|
+
options: localVarRequestOptions,
|
|
3548
|
+
};
|
|
3549
|
+
}),
|
|
3550
|
+
};
|
|
3551
|
+
};
|
|
3552
|
+
exports.RegistryAdminApiAxiosParamCreator = RegistryAdminApiAxiosParamCreator;
|
|
3553
|
+
/**
|
|
3554
|
+
* RegistryAdminApi - functional programming interface
|
|
3555
|
+
* @export
|
|
3556
|
+
*/
|
|
3557
|
+
const RegistryAdminApiFp = function (configuration) {
|
|
3558
|
+
const localVarAxiosParamCreator = (0, exports.RegistryAdminApiAxiosParamCreator)(configuration);
|
|
3559
|
+
return {
|
|
3560
|
+
/**
|
|
3561
|
+
*
|
|
3562
|
+
* @summary Delete entry (admin)
|
|
3563
|
+
* @param {string} id
|
|
3564
|
+
* @param {*} [options] Override http request option.
|
|
3565
|
+
* @throws {RequiredError}
|
|
3566
|
+
*/
|
|
3567
|
+
registryAdminControllerDelete(id, options) {
|
|
3568
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3569
|
+
var _a, _b, _c;
|
|
3570
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.registryAdminControllerDelete(id, options);
|
|
3571
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3572
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['RegistryAdminApi.registryAdminControllerDelete']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3573
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3574
|
+
});
|
|
3575
|
+
},
|
|
3576
|
+
/**
|
|
3577
|
+
*
|
|
3578
|
+
* @summary List all entries (admin)
|
|
3579
|
+
* @param {string} [category]
|
|
3580
|
+
* @param {Array<string>} [tags]
|
|
3581
|
+
* @param {string} [search]
|
|
3582
|
+
* @param {number} [page]
|
|
3583
|
+
* @param {number} [limit]
|
|
3584
|
+
* @param {*} [options] Override http request option.
|
|
3585
|
+
* @throws {RequiredError}
|
|
3586
|
+
*/
|
|
3587
|
+
registryAdminControllerFindAll(category, tags, search, page, limit, options) {
|
|
3588
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3589
|
+
var _a, _b, _c;
|
|
3590
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.registryAdminControllerFindAll(category, tags, search, page, limit, options);
|
|
3591
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3592
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['RegistryAdminApi.registryAdminControllerFindAll']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3593
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3594
|
+
});
|
|
3595
|
+
},
|
|
3596
|
+
/**
|
|
3597
|
+
*
|
|
3598
|
+
* @summary Get maintenance run history (admin)
|
|
3599
|
+
* @param {number} [limit] Maximum number of runs to return
|
|
3600
|
+
* @param {*} [options] Override http request option.
|
|
3601
|
+
* @throws {RequiredError}
|
|
3602
|
+
*/
|
|
3603
|
+
registryAdminControllerGetMaintenanceHistory(limit, options) {
|
|
3604
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3605
|
+
var _a, _b, _c;
|
|
3606
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.registryAdminControllerGetMaintenanceHistory(limit, options);
|
|
3607
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3608
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['RegistryAdminApi.registryAdminControllerGetMaintenanceHistory']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3609
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3610
|
+
});
|
|
3611
|
+
},
|
|
3612
|
+
/**
|
|
3613
|
+
*
|
|
3614
|
+
* @summary Get registry maintenance statistics (admin)
|
|
3615
|
+
* @param {*} [options] Override http request option.
|
|
3616
|
+
* @throws {RequiredError}
|
|
3617
|
+
*/
|
|
3618
|
+
registryAdminControllerGetStatistics(options) {
|
|
3619
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3620
|
+
var _a, _b, _c;
|
|
3621
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.registryAdminControllerGetStatistics(options);
|
|
3622
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3623
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['RegistryAdminApi.registryAdminControllerGetStatistics']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3624
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3625
|
+
});
|
|
3626
|
+
},
|
|
3627
|
+
/**
|
|
3628
|
+
*
|
|
3629
|
+
* @summary Run registry maintenance manually (admin)
|
|
3630
|
+
* @param {*} [options] Override http request option.
|
|
3631
|
+
* @throws {RequiredError}
|
|
3632
|
+
*/
|
|
3633
|
+
registryAdminControllerRunMaintenance(options) {
|
|
3634
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3635
|
+
var _a, _b, _c;
|
|
3636
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.registryAdminControllerRunMaintenance(options);
|
|
3637
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3638
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['RegistryAdminApi.registryAdminControllerRunMaintenance']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3639
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3640
|
+
});
|
|
3641
|
+
},
|
|
3642
|
+
/**
|
|
3643
|
+
*
|
|
3644
|
+
* @summary Update entry (admin)
|
|
3645
|
+
* @param {string} id
|
|
3646
|
+
* @param {UpdateEntryDto} updateEntryDto
|
|
3647
|
+
* @param {*} [options] Override http request option.
|
|
3648
|
+
* @throws {RequiredError}
|
|
3649
|
+
*/
|
|
3650
|
+
registryAdminControllerUpdate(id, updateEntryDto, options) {
|
|
3651
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3652
|
+
var _a, _b, _c;
|
|
3653
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.registryAdminControllerUpdate(id, updateEntryDto, options);
|
|
3654
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3655
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['RegistryAdminApi.registryAdminControllerUpdate']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3656
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3657
|
+
});
|
|
3658
|
+
},
|
|
3659
|
+
/**
|
|
3660
|
+
*
|
|
3661
|
+
* @summary Manage staff tags (admin)
|
|
3662
|
+
* @param {string} id
|
|
3663
|
+
* @param {UpdateStaffTagsDto} updateStaffTagsDto
|
|
3664
|
+
* @param {*} [options] Override http request option.
|
|
3665
|
+
* @throws {RequiredError}
|
|
3666
|
+
*/
|
|
3667
|
+
registryAdminControllerUpdateStaffTags(id, updateStaffTagsDto, options) {
|
|
3668
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3669
|
+
var _a, _b, _c;
|
|
3670
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.registryAdminControllerUpdateStaffTags(id, updateStaffTagsDto, options);
|
|
3671
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3672
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['RegistryAdminApi.registryAdminControllerUpdateStaffTags']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3673
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3674
|
+
});
|
|
3675
|
+
},
|
|
3676
|
+
/**
|
|
3677
|
+
*
|
|
3678
|
+
* @summary Activate/deactivate entry (admin)
|
|
3679
|
+
* @param {string} id
|
|
3680
|
+
* @param {UpdateStatusDto} updateStatusDto
|
|
3681
|
+
* @param {*} [options] Override http request option.
|
|
3682
|
+
* @throws {RequiredError}
|
|
3683
|
+
*/
|
|
3684
|
+
registryAdminControllerUpdateStatus(id, updateStatusDto, options) {
|
|
3685
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3686
|
+
var _a, _b, _c;
|
|
3687
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.registryAdminControllerUpdateStatus(id, updateStatusDto, options);
|
|
3688
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3689
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['RegistryAdminApi.registryAdminControllerUpdateStatus']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3690
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3691
|
+
});
|
|
3692
|
+
},
|
|
3693
|
+
};
|
|
3694
|
+
};
|
|
3695
|
+
exports.RegistryAdminApiFp = RegistryAdminApiFp;
|
|
3696
|
+
/**
|
|
3697
|
+
* RegistryAdminApi - factory interface
|
|
3698
|
+
* @export
|
|
3699
|
+
*/
|
|
3700
|
+
const RegistryAdminApiFactory = function (configuration, basePath, axios) {
|
|
3701
|
+
const localVarFp = (0, exports.RegistryAdminApiFp)(configuration);
|
|
3702
|
+
return {
|
|
3703
|
+
/**
|
|
3704
|
+
*
|
|
3705
|
+
* @summary Delete entry (admin)
|
|
3706
|
+
* @param {RegistryAdminApiRegistryAdminControllerDeleteRequest} requestParameters Request parameters.
|
|
3707
|
+
* @param {*} [options] Override http request option.
|
|
3708
|
+
* @throws {RequiredError}
|
|
3709
|
+
*/
|
|
3710
|
+
registryAdminControllerDelete(requestParameters, options) {
|
|
3711
|
+
return localVarFp
|
|
3712
|
+
.registryAdminControllerDelete(requestParameters.id, options)
|
|
3713
|
+
.then((request) => request(axios, basePath));
|
|
3714
|
+
},
|
|
3715
|
+
/**
|
|
3716
|
+
*
|
|
3717
|
+
* @summary List all entries (admin)
|
|
3718
|
+
* @param {RegistryAdminApiRegistryAdminControllerFindAllRequest} requestParameters Request parameters.
|
|
3719
|
+
* @param {*} [options] Override http request option.
|
|
3720
|
+
* @throws {RequiredError}
|
|
3721
|
+
*/
|
|
3722
|
+
registryAdminControllerFindAll(requestParameters = {}, options) {
|
|
3723
|
+
return localVarFp
|
|
3724
|
+
.registryAdminControllerFindAll(requestParameters.category, requestParameters.tags, requestParameters.search, requestParameters.page, requestParameters.limit, options)
|
|
3725
|
+
.then((request) => request(axios, basePath));
|
|
3726
|
+
},
|
|
3727
|
+
/**
|
|
3728
|
+
*
|
|
3729
|
+
* @summary Get maintenance run history (admin)
|
|
3730
|
+
* @param {RegistryAdminApiRegistryAdminControllerGetMaintenanceHistoryRequest} requestParameters Request parameters.
|
|
3731
|
+
* @param {*} [options] Override http request option.
|
|
3732
|
+
* @throws {RequiredError}
|
|
3733
|
+
*/
|
|
3734
|
+
registryAdminControllerGetMaintenanceHistory(requestParameters = {}, options) {
|
|
3735
|
+
return localVarFp
|
|
3736
|
+
.registryAdminControllerGetMaintenanceHistory(requestParameters.limit, options)
|
|
3737
|
+
.then((request) => request(axios, basePath));
|
|
3738
|
+
},
|
|
3739
|
+
/**
|
|
3740
|
+
*
|
|
3741
|
+
* @summary Get registry maintenance statistics (admin)
|
|
3742
|
+
* @param {*} [options] Override http request option.
|
|
3743
|
+
* @throws {RequiredError}
|
|
3744
|
+
*/
|
|
3745
|
+
registryAdminControllerGetStatistics(options) {
|
|
3746
|
+
return localVarFp.registryAdminControllerGetStatistics(options).then((request) => request(axios, basePath));
|
|
3747
|
+
},
|
|
3748
|
+
/**
|
|
3749
|
+
*
|
|
3750
|
+
* @summary Run registry maintenance manually (admin)
|
|
3751
|
+
* @param {*} [options] Override http request option.
|
|
3752
|
+
* @throws {RequiredError}
|
|
3753
|
+
*/
|
|
3754
|
+
registryAdminControllerRunMaintenance(options) {
|
|
3755
|
+
return localVarFp.registryAdminControllerRunMaintenance(options).then((request) => request(axios, basePath));
|
|
3756
|
+
},
|
|
3757
|
+
/**
|
|
3758
|
+
*
|
|
3759
|
+
* @summary Update entry (admin)
|
|
3760
|
+
* @param {RegistryAdminApiRegistryAdminControllerUpdateRequest} requestParameters Request parameters.
|
|
3761
|
+
* @param {*} [options] Override http request option.
|
|
3762
|
+
* @throws {RequiredError}
|
|
3763
|
+
*/
|
|
3764
|
+
registryAdminControllerUpdate(requestParameters, options) {
|
|
3765
|
+
return localVarFp
|
|
3766
|
+
.registryAdminControllerUpdate(requestParameters.id, requestParameters.updateEntryDto, options)
|
|
3767
|
+
.then((request) => request(axios, basePath));
|
|
3768
|
+
},
|
|
3769
|
+
/**
|
|
3770
|
+
*
|
|
3771
|
+
* @summary Manage staff tags (admin)
|
|
3772
|
+
* @param {RegistryAdminApiRegistryAdminControllerUpdateStaffTagsRequest} requestParameters Request parameters.
|
|
3773
|
+
* @param {*} [options] Override http request option.
|
|
3774
|
+
* @throws {RequiredError}
|
|
3775
|
+
*/
|
|
3776
|
+
registryAdminControllerUpdateStaffTags(requestParameters, options) {
|
|
3777
|
+
return localVarFp
|
|
3778
|
+
.registryAdminControllerUpdateStaffTags(requestParameters.id, requestParameters.updateStaffTagsDto, options)
|
|
3779
|
+
.then((request) => request(axios, basePath));
|
|
3780
|
+
},
|
|
3781
|
+
/**
|
|
3782
|
+
*
|
|
3783
|
+
* @summary Activate/deactivate entry (admin)
|
|
3784
|
+
* @param {RegistryAdminApiRegistryAdminControllerUpdateStatusRequest} requestParameters Request parameters.
|
|
3785
|
+
* @param {*} [options] Override http request option.
|
|
3786
|
+
* @throws {RequiredError}
|
|
3787
|
+
*/
|
|
3788
|
+
registryAdminControllerUpdateStatus(requestParameters, options) {
|
|
3789
|
+
return localVarFp
|
|
3790
|
+
.registryAdminControllerUpdateStatus(requestParameters.id, requestParameters.updateStatusDto, options)
|
|
3791
|
+
.then((request) => request(axios, basePath));
|
|
3792
|
+
},
|
|
3793
|
+
};
|
|
3794
|
+
};
|
|
3795
|
+
exports.RegistryAdminApiFactory = RegistryAdminApiFactory;
|
|
3796
|
+
/**
|
|
3797
|
+
* RegistryAdminApi - object-oriented interface
|
|
3798
|
+
* @export
|
|
3799
|
+
* @class RegistryAdminApi
|
|
3800
|
+
* @extends {BaseAPI}
|
|
3801
|
+
*/
|
|
3802
|
+
class RegistryAdminApi extends base_1.BaseAPI {
|
|
3803
|
+
/**
|
|
3804
|
+
*
|
|
3805
|
+
* @summary Delete entry (admin)
|
|
3806
|
+
* @param {RegistryAdminApiRegistryAdminControllerDeleteRequest} requestParameters Request parameters.
|
|
3807
|
+
* @param {*} [options] Override http request option.
|
|
3808
|
+
* @throws {RequiredError}
|
|
3809
|
+
* @memberof RegistryAdminApi
|
|
3810
|
+
*/
|
|
3811
|
+
registryAdminControllerDelete(requestParameters, options) {
|
|
3812
|
+
return (0, exports.RegistryAdminApiFp)(this.configuration)
|
|
3813
|
+
.registryAdminControllerDelete(requestParameters.id, options)
|
|
3814
|
+
.then((request) => request(this.axios, this.basePath));
|
|
3815
|
+
}
|
|
3816
|
+
/**
|
|
3817
|
+
*
|
|
3818
|
+
* @summary List all entries (admin)
|
|
3819
|
+
* @param {RegistryAdminApiRegistryAdminControllerFindAllRequest} requestParameters Request parameters.
|
|
3820
|
+
* @param {*} [options] Override http request option.
|
|
3821
|
+
* @throws {RequiredError}
|
|
3822
|
+
* @memberof RegistryAdminApi
|
|
3823
|
+
*/
|
|
3824
|
+
registryAdminControllerFindAll(requestParameters = {}, options) {
|
|
3825
|
+
return (0, exports.RegistryAdminApiFp)(this.configuration)
|
|
3826
|
+
.registryAdminControllerFindAll(requestParameters.category, requestParameters.tags, requestParameters.search, requestParameters.page, requestParameters.limit, options)
|
|
3827
|
+
.then((request) => request(this.axios, this.basePath));
|
|
3828
|
+
}
|
|
3829
|
+
/**
|
|
3830
|
+
*
|
|
3831
|
+
* @summary Get maintenance run history (admin)
|
|
3832
|
+
* @param {RegistryAdminApiRegistryAdminControllerGetMaintenanceHistoryRequest} requestParameters Request parameters.
|
|
3833
|
+
* @param {*} [options] Override http request option.
|
|
3834
|
+
* @throws {RequiredError}
|
|
3835
|
+
* @memberof RegistryAdminApi
|
|
3836
|
+
*/
|
|
3837
|
+
registryAdminControllerGetMaintenanceHistory(requestParameters = {}, options) {
|
|
3838
|
+
return (0, exports.RegistryAdminApiFp)(this.configuration)
|
|
3839
|
+
.registryAdminControllerGetMaintenanceHistory(requestParameters.limit, options)
|
|
3840
|
+
.then((request) => request(this.axios, this.basePath));
|
|
3841
|
+
}
|
|
3842
|
+
/**
|
|
3843
|
+
*
|
|
3844
|
+
* @summary Get registry maintenance statistics (admin)
|
|
3845
|
+
* @param {*} [options] Override http request option.
|
|
3846
|
+
* @throws {RequiredError}
|
|
3847
|
+
* @memberof RegistryAdminApi
|
|
3848
|
+
*/
|
|
3849
|
+
registryAdminControllerGetStatistics(options) {
|
|
3850
|
+
return (0, exports.RegistryAdminApiFp)(this.configuration)
|
|
3851
|
+
.registryAdminControllerGetStatistics(options)
|
|
3852
|
+
.then((request) => request(this.axios, this.basePath));
|
|
3853
|
+
}
|
|
3854
|
+
/**
|
|
3855
|
+
*
|
|
3856
|
+
* @summary Run registry maintenance manually (admin)
|
|
3857
|
+
* @param {*} [options] Override http request option.
|
|
3858
|
+
* @throws {RequiredError}
|
|
3859
|
+
* @memberof RegistryAdminApi
|
|
3860
|
+
*/
|
|
3861
|
+
registryAdminControllerRunMaintenance(options) {
|
|
3862
|
+
return (0, exports.RegistryAdminApiFp)(this.configuration)
|
|
3863
|
+
.registryAdminControllerRunMaintenance(options)
|
|
3864
|
+
.then((request) => request(this.axios, this.basePath));
|
|
3865
|
+
}
|
|
3866
|
+
/**
|
|
3867
|
+
*
|
|
3868
|
+
* @summary Update entry (admin)
|
|
3869
|
+
* @param {RegistryAdminApiRegistryAdminControllerUpdateRequest} requestParameters Request parameters.
|
|
3870
|
+
* @param {*} [options] Override http request option.
|
|
3871
|
+
* @throws {RequiredError}
|
|
3872
|
+
* @memberof RegistryAdminApi
|
|
3873
|
+
*/
|
|
3874
|
+
registryAdminControllerUpdate(requestParameters, options) {
|
|
3875
|
+
return (0, exports.RegistryAdminApiFp)(this.configuration)
|
|
3876
|
+
.registryAdminControllerUpdate(requestParameters.id, requestParameters.updateEntryDto, options)
|
|
3877
|
+
.then((request) => request(this.axios, this.basePath));
|
|
3878
|
+
}
|
|
3879
|
+
/**
|
|
3880
|
+
*
|
|
3881
|
+
* @summary Manage staff tags (admin)
|
|
3882
|
+
* @param {RegistryAdminApiRegistryAdminControllerUpdateStaffTagsRequest} requestParameters Request parameters.
|
|
3883
|
+
* @param {*} [options] Override http request option.
|
|
3884
|
+
* @throws {RequiredError}
|
|
3885
|
+
* @memberof RegistryAdminApi
|
|
3886
|
+
*/
|
|
3887
|
+
registryAdminControllerUpdateStaffTags(requestParameters, options) {
|
|
3888
|
+
return (0, exports.RegistryAdminApiFp)(this.configuration)
|
|
3889
|
+
.registryAdminControllerUpdateStaffTags(requestParameters.id, requestParameters.updateStaffTagsDto, options)
|
|
3890
|
+
.then((request) => request(this.axios, this.basePath));
|
|
3891
|
+
}
|
|
3892
|
+
/**
|
|
3893
|
+
*
|
|
3894
|
+
* @summary Activate/deactivate entry (admin)
|
|
3895
|
+
* @param {RegistryAdminApiRegistryAdminControllerUpdateStatusRequest} requestParameters Request parameters.
|
|
3896
|
+
* @param {*} [options] Override http request option.
|
|
3897
|
+
* @throws {RequiredError}
|
|
3898
|
+
* @memberof RegistryAdminApi
|
|
3899
|
+
*/
|
|
3900
|
+
registryAdminControllerUpdateStatus(requestParameters, options) {
|
|
3901
|
+
return (0, exports.RegistryAdminApiFp)(this.configuration)
|
|
3902
|
+
.registryAdminControllerUpdateStatus(requestParameters.id, requestParameters.updateStatusDto, options)
|
|
3903
|
+
.then((request) => request(this.axios, this.basePath));
|
|
3904
|
+
}
|
|
3905
|
+
}
|
|
3906
|
+
exports.RegistryAdminApi = RegistryAdminApi;
|
|
3907
|
+
/**
|
|
3908
|
+
* WellKnownApi - axios parameter creator
|
|
3909
|
+
* @export
|
|
3910
|
+
*/
|
|
3911
|
+
const WellKnownApiAxiosParamCreator = function (configuration) {
|
|
3912
|
+
return {
|
|
3913
|
+
/**
|
|
3914
|
+
*
|
|
3915
|
+
* @summary JSON Web Key Set for verifying Hub-signed ID tokens
|
|
3916
|
+
* @param {*} [options] Override http request option.
|
|
3917
|
+
* @throws {RequiredError}
|
|
3918
|
+
*/
|
|
3919
|
+
ssoJwksControllerGetJwks: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
3920
|
+
const localVarPath = `/.well-known/jwks.json`;
|
|
3921
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3922
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3923
|
+
let baseOptions;
|
|
3924
|
+
if (configuration) {
|
|
3925
|
+
baseOptions = configuration.baseOptions;
|
|
3926
|
+
}
|
|
3927
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
3928
|
+
const localVarHeaderParameter = {};
|
|
3929
|
+
const localVarQueryParameter = {};
|
|
3930
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3931
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3932
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3933
|
+
return {
|
|
3934
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3935
|
+
options: localVarRequestOptions,
|
|
3936
|
+
};
|
|
3937
|
+
}),
|
|
3938
|
+
};
|
|
3939
|
+
};
|
|
3940
|
+
exports.WellKnownApiAxiosParamCreator = WellKnownApiAxiosParamCreator;
|
|
3941
|
+
/**
|
|
3942
|
+
* WellKnownApi - functional programming interface
|
|
3943
|
+
* @export
|
|
3944
|
+
*/
|
|
3945
|
+
const WellKnownApiFp = function (configuration) {
|
|
3946
|
+
const localVarAxiosParamCreator = (0, exports.WellKnownApiAxiosParamCreator)(configuration);
|
|
3947
|
+
return {
|
|
3948
|
+
/**
|
|
3949
|
+
*
|
|
3950
|
+
* @summary JSON Web Key Set for verifying Hub-signed ID tokens
|
|
3951
|
+
* @param {*} [options] Override http request option.
|
|
3952
|
+
* @throws {RequiredError}
|
|
3953
|
+
*/
|
|
3954
|
+
ssoJwksControllerGetJwks(options) {
|
|
3955
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3956
|
+
var _a, _b, _c;
|
|
3957
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.ssoJwksControllerGetJwks(options);
|
|
3958
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3959
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['WellKnownApi.ssoJwksControllerGetJwks']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3960
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3961
|
+
});
|
|
3962
|
+
},
|
|
3963
|
+
};
|
|
3964
|
+
};
|
|
3965
|
+
exports.WellKnownApiFp = WellKnownApiFp;
|
|
3966
|
+
/**
|
|
3967
|
+
* WellKnownApi - factory interface
|
|
3968
|
+
* @export
|
|
3969
|
+
*/
|
|
3970
|
+
const WellKnownApiFactory = function (configuration, basePath, axios) {
|
|
3971
|
+
const localVarFp = (0, exports.WellKnownApiFp)(configuration);
|
|
3972
|
+
return {
|
|
3973
|
+
/**
|
|
3974
|
+
*
|
|
3975
|
+
* @summary JSON Web Key Set for verifying Hub-signed ID tokens
|
|
3976
|
+
* @param {*} [options] Override http request option.
|
|
3977
|
+
* @throws {RequiredError}
|
|
3978
|
+
*/
|
|
3979
|
+
ssoJwksControllerGetJwks(options) {
|
|
3980
|
+
return localVarFp.ssoJwksControllerGetJwks(options).then((request) => request(axios, basePath));
|
|
3981
|
+
},
|
|
3982
|
+
};
|
|
3983
|
+
};
|
|
3984
|
+
exports.WellKnownApiFactory = WellKnownApiFactory;
|
|
3985
|
+
/**
|
|
3986
|
+
* WellKnownApi - object-oriented interface
|
|
3987
|
+
* @export
|
|
3988
|
+
* @class WellKnownApi
|
|
3989
|
+
* @extends {BaseAPI}
|
|
3990
|
+
*/
|
|
3991
|
+
class WellKnownApi extends base_1.BaseAPI {
|
|
3992
|
+
/**
|
|
3993
|
+
*
|
|
3994
|
+
* @summary JSON Web Key Set for verifying Hub-signed ID tokens
|
|
3995
|
+
* @param {*} [options] Override http request option.
|
|
3996
|
+
* @throws {RequiredError}
|
|
3997
|
+
* @memberof WellKnownApi
|
|
3998
|
+
*/
|
|
3999
|
+
ssoJwksControllerGetJwks(options) {
|
|
4000
|
+
return (0, exports.WellKnownApiFp)(this.configuration)
|
|
4001
|
+
.ssoJwksControllerGetJwks(options)
|
|
4002
|
+
.then((request) => request(this.axios, this.basePath));
|
|
4003
|
+
}
|
|
4004
|
+
}
|
|
4005
|
+
exports.WellKnownApi = WellKnownApi;
|