@coscine/api-client 3.2.1 → 3.3.0
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/dist/index.js +4073 -4067
- package/dist/index.js.map +1 -1
- package/dist/index.umd.js +4073 -4067
- package/dist/index.umd.js.map +1 -1
- package/dist/lib/Coscine.Api/api.js +516 -10
- package/dist/lib/Coscine.Api/api.js.map +1 -1
- package/dist/lib/Coscine.Api/base.js +1 -1
- package/dist/lib/apis.js +43 -43
- package/dist/lib/apis.js.map +1 -1
- package/dist/types/Coscine.Api/api.d.ts +1203 -453
- package/dist/types/apis.d.ts +20 -20
- package/dist/types/index.d.ts +40 -40
- package/package.json +2 -2
|
@@ -25,9 +25,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
25
25
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
26
26
|
};
|
|
27
27
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
|
-
exports.
|
|
29
|
-
exports.
|
|
30
|
-
exports.VocabularyApi = exports.VocabularyApiFactory = exports.VocabularyApiFp = exports.VocabularyApiAxiosParamCreator = exports.VisibilityApi = exports.VisibilityApiFactory = exports.VisibilityApiFp = exports.VisibilityApiAxiosParamCreator = exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = exports.TreeApi = exports.TreeApiFactory = exports.TreeApiFp = exports.TreeApiAxiosParamCreator = void 0;
|
|
28
|
+
exports.ProjectInvitationApiFp = exports.ProjectInvitationApiAxiosParamCreator = exports.ProjectApi = exports.ProjectApiFactory = exports.ProjectApiFp = exports.ProjectApiAxiosParamCreator = exports.PidApi = exports.PidApiFactory = exports.PidApiFp = exports.PidApiAxiosParamCreator = exports.OrganizationApi = exports.OrganizationApiFactory = exports.OrganizationApiFp = exports.OrganizationApiAxiosParamCreator = exports.MaintenanceApi = exports.MaintenanceApiFactory = exports.MaintenanceApiFp = exports.MaintenanceApiAxiosParamCreator = exports.LicenseApi = exports.LicenseApiFactory = exports.LicenseApiFp = exports.LicenseApiAxiosParamCreator = exports.LanguageApi = exports.LanguageApiFactory = exports.LanguageApiFp = exports.LanguageApiAxiosParamCreator = exports.DisciplineApi = exports.DisciplineApiFactory = exports.DisciplineApiFp = exports.DisciplineApiAxiosParamCreator = exports.BlobApi = exports.BlobApiFactory = exports.BlobApiFp = exports.BlobApiAxiosParamCreator = exports.ApplicationProfileApi = exports.ApplicationProfileApiFactory = exports.ApplicationProfileApiFp = exports.ApplicationProfileApiAxiosParamCreator = exports.AdminApi = exports.AdminApiFactory = exports.AdminApiFp = exports.AdminApiAxiosParamCreator = exports.TreeDataType = exports.SearchCategoryType = exports.ResourceTypeStatus = exports.RdfFormat = exports.QuotaUnit = exports.PidType = exports.IdentityProviders = exports.AcceptedLanguage = void 0;
|
|
29
|
+
exports.TitleApi = exports.TitleApiFactory = exports.TitleApiFp = exports.TitleApiAxiosParamCreator = exports.SelfApiTokenApi = exports.SelfApiTokenApiFactory = exports.SelfApiTokenApiFp = exports.SelfApiTokenApiAxiosParamCreator = exports.SelfApi = exports.SelfApiFactory = exports.SelfApiFp = exports.SelfApiAxiosParamCreator = exports.SearchApi = exports.SearchApiFactory = exports.SearchApiFp = exports.SearchApiAxiosParamCreator = exports.RoleApi = exports.RoleApiFactory = exports.RoleApiFp = exports.RoleApiAxiosParamCreator = exports.ResourceTypeApi = exports.ResourceTypeApiFactory = exports.ResourceTypeApiFp = exports.ResourceTypeApiAxiosParamCreator = exports.ResourceApi = exports.ResourceApiFactory = exports.ResourceApiFp = exports.ResourceApiAxiosParamCreator = exports.ProjectResourceTypeApi = exports.ProjectResourceTypeApiFactory = exports.ProjectResourceTypeApiFp = exports.ProjectResourceTypeApiAxiosParamCreator = exports.ProjectResourceQuotaApi = exports.ProjectResourceQuotaApiFactory = exports.ProjectResourceQuotaApiFp = exports.ProjectResourceQuotaApiAxiosParamCreator = exports.ProjectResourceApi = exports.ProjectResourceApiFactory = exports.ProjectResourceApiFp = exports.ProjectResourceApiAxiosParamCreator = exports.ProjectQuotaApi = exports.ProjectQuotaApiFactory = exports.ProjectQuotaApiFp = exports.ProjectQuotaApiAxiosParamCreator = exports.ProjectMemberApi = exports.ProjectMemberApiFactory = exports.ProjectMemberApiFp = exports.ProjectMemberApiAxiosParamCreator = exports.ProjectInvitationApi = exports.ProjectInvitationApiFactory = void 0;
|
|
30
|
+
exports.VocabularyApi = exports.VocabularyApiFactory = exports.VocabularyApiFp = exports.VocabularyApiAxiosParamCreator = exports.VisibilityApi = exports.VisibilityApiFactory = exports.VisibilityApiFp = exports.VisibilityApiAxiosParamCreator = exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = exports.TreeApi = exports.TreeApiFactory = exports.TreeApiFp = exports.TreeApiAxiosParamCreator = exports.TosApi = exports.TosApiFactory = exports.TosApiFp = exports.TosApiAxiosParamCreator = void 0;
|
|
31
31
|
const axios_1 = __importDefault(require("axios"));
|
|
32
32
|
// Some imports not used depending on template conditions
|
|
33
33
|
// @ts-ignore
|
|
@@ -120,6 +120,505 @@ var TreeDataType;
|
|
|
120
120
|
TreeDataType["Tree"] = "Tree";
|
|
121
121
|
TreeDataType["Leaf"] = "Leaf";
|
|
122
122
|
})(TreeDataType = exports.TreeDataType || (exports.TreeDataType = {}));
|
|
123
|
+
/**
|
|
124
|
+
* AdminApi - axios parameter creator
|
|
125
|
+
* @export
|
|
126
|
+
*/
|
|
127
|
+
const AdminApiAxiosParamCreator = function (configuration) {
|
|
128
|
+
return {
|
|
129
|
+
/**
|
|
130
|
+
*
|
|
131
|
+
* @summary Responds with the HTTP methods allowed for the endpoint.
|
|
132
|
+
* @param {*} [options] Override http request option.
|
|
133
|
+
* @throws {RequiredError}
|
|
134
|
+
*/
|
|
135
|
+
apiV2AdminOptions: (options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
136
|
+
const localVarPath = `/api/v2/admin`;
|
|
137
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
138
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
139
|
+
let baseOptions;
|
|
140
|
+
if (configuration) {
|
|
141
|
+
baseOptions = configuration.baseOptions;
|
|
142
|
+
}
|
|
143
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'OPTIONS' }, baseOptions), options);
|
|
144
|
+
const localVarHeaderParameter = {};
|
|
145
|
+
const localVarQueryParameter = {};
|
|
146
|
+
// authentication Bearer required
|
|
147
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
148
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
|
|
149
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
150
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
151
|
+
return {
|
|
152
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
153
|
+
options: localVarRequestOptions,
|
|
154
|
+
};
|
|
155
|
+
}),
|
|
156
|
+
/**
|
|
157
|
+
*
|
|
158
|
+
* @summary Retrieves all projects.
|
|
159
|
+
* @param {boolean} [topLevel]
|
|
160
|
+
* @param {boolean} [includeDeleted]
|
|
161
|
+
* @param {number} [pageNumber]
|
|
162
|
+
* @param {number} [pageSize]
|
|
163
|
+
* @param {string} [orderBy]
|
|
164
|
+
* @param {*} [options] Override http request option.
|
|
165
|
+
* @throws {RequiredError}
|
|
166
|
+
*/
|
|
167
|
+
getAllProjects: (topLevel, includeDeleted, pageNumber, pageSize, orderBy, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
168
|
+
const localVarPath = `/api/v2/admin/projects`;
|
|
169
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
170
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
171
|
+
let baseOptions;
|
|
172
|
+
if (configuration) {
|
|
173
|
+
baseOptions = configuration.baseOptions;
|
|
174
|
+
}
|
|
175
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
176
|
+
const localVarHeaderParameter = {};
|
|
177
|
+
const localVarQueryParameter = {};
|
|
178
|
+
// authentication Bearer required
|
|
179
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
180
|
+
if (topLevel !== undefined) {
|
|
181
|
+
localVarQueryParameter['TopLevel'] = topLevel;
|
|
182
|
+
}
|
|
183
|
+
if (includeDeleted !== undefined) {
|
|
184
|
+
localVarQueryParameter['IncludeDeleted'] = includeDeleted;
|
|
185
|
+
}
|
|
186
|
+
if (pageNumber !== undefined) {
|
|
187
|
+
localVarQueryParameter['PageNumber'] = pageNumber;
|
|
188
|
+
}
|
|
189
|
+
if (pageSize !== undefined) {
|
|
190
|
+
localVarQueryParameter['PageSize'] = pageSize;
|
|
191
|
+
}
|
|
192
|
+
if (orderBy !== undefined) {
|
|
193
|
+
localVarQueryParameter['OrderBy'] = orderBy;
|
|
194
|
+
}
|
|
195
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
|
|
196
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
197
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
198
|
+
return {
|
|
199
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
200
|
+
options: localVarRequestOptions,
|
|
201
|
+
};
|
|
202
|
+
}),
|
|
203
|
+
/**
|
|
204
|
+
*
|
|
205
|
+
* @summary Retrieves all resources.
|
|
206
|
+
* @param {boolean} [includeDeleted]
|
|
207
|
+
* @param {number} [pageNumber]
|
|
208
|
+
* @param {number} [pageSize]
|
|
209
|
+
* @param {string} [orderBy]
|
|
210
|
+
* @param {*} [options] Override http request option.
|
|
211
|
+
* @throws {RequiredError}
|
|
212
|
+
*/
|
|
213
|
+
getAllResources: (includeDeleted, pageNumber, pageSize, orderBy, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
214
|
+
const localVarPath = `/api/v2/admin/resources`;
|
|
215
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
216
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
217
|
+
let baseOptions;
|
|
218
|
+
if (configuration) {
|
|
219
|
+
baseOptions = configuration.baseOptions;
|
|
220
|
+
}
|
|
221
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
222
|
+
const localVarHeaderParameter = {};
|
|
223
|
+
const localVarQueryParameter = {};
|
|
224
|
+
// authentication Bearer required
|
|
225
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
226
|
+
if (includeDeleted !== undefined) {
|
|
227
|
+
localVarQueryParameter['IncludeDeleted'] = includeDeleted;
|
|
228
|
+
}
|
|
229
|
+
if (pageNumber !== undefined) {
|
|
230
|
+
localVarQueryParameter['PageNumber'] = pageNumber;
|
|
231
|
+
}
|
|
232
|
+
if (pageSize !== undefined) {
|
|
233
|
+
localVarQueryParameter['PageSize'] = pageSize;
|
|
234
|
+
}
|
|
235
|
+
if (orderBy !== undefined) {
|
|
236
|
+
localVarQueryParameter['OrderBy'] = orderBy;
|
|
237
|
+
}
|
|
238
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
|
|
239
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
240
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
241
|
+
return {
|
|
242
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
243
|
+
options: localVarRequestOptions,
|
|
244
|
+
};
|
|
245
|
+
}),
|
|
246
|
+
/**
|
|
247
|
+
*
|
|
248
|
+
* @summary Retrieves all users.
|
|
249
|
+
* @param {string} [orderBy]
|
|
250
|
+
* @param {boolean} [tosAccepted]
|
|
251
|
+
* @param {number} [pageNumber]
|
|
252
|
+
* @param {number} [pageSize]
|
|
253
|
+
* @param {*} [options] Override http request option.
|
|
254
|
+
* @throws {RequiredError}
|
|
255
|
+
*/
|
|
256
|
+
getAllUsers: (orderBy, tosAccepted, pageNumber, pageSize, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
257
|
+
const localVarPath = `/api/v2/admin/users`;
|
|
258
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
259
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
260
|
+
let baseOptions;
|
|
261
|
+
if (configuration) {
|
|
262
|
+
baseOptions = configuration.baseOptions;
|
|
263
|
+
}
|
|
264
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
265
|
+
const localVarHeaderParameter = {};
|
|
266
|
+
const localVarQueryParameter = {};
|
|
267
|
+
// authentication Bearer required
|
|
268
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
269
|
+
if (orderBy !== undefined) {
|
|
270
|
+
localVarQueryParameter['OrderBy'] = orderBy;
|
|
271
|
+
}
|
|
272
|
+
if (tosAccepted !== undefined) {
|
|
273
|
+
localVarQueryParameter['TosAccepted'] = tosAccepted;
|
|
274
|
+
}
|
|
275
|
+
if (pageNumber !== undefined) {
|
|
276
|
+
localVarQueryParameter['PageNumber'] = pageNumber;
|
|
277
|
+
}
|
|
278
|
+
if (pageSize !== undefined) {
|
|
279
|
+
localVarQueryParameter['PageSize'] = pageSize;
|
|
280
|
+
}
|
|
281
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
|
|
282
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
283
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
284
|
+
return {
|
|
285
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
286
|
+
options: localVarRequestOptions,
|
|
287
|
+
};
|
|
288
|
+
}),
|
|
289
|
+
/**
|
|
290
|
+
*
|
|
291
|
+
* @summary Gets a metadata graph.
|
|
292
|
+
* @param {string} graphUri
|
|
293
|
+
* @param {RdfFormat} [format]
|
|
294
|
+
* @param {*} [options] Override http request option.
|
|
295
|
+
* @throws {RequiredError}
|
|
296
|
+
*/
|
|
297
|
+
getMetadataGraph: (graphUri, format, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
298
|
+
// verify required parameter 'graphUri' is not null or undefined
|
|
299
|
+
(0, common_1.assertParamExists)('getMetadataGraph', 'graphUri', graphUri);
|
|
300
|
+
const localVarPath = `/api/v2/admin/metadata`;
|
|
301
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
302
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
303
|
+
let baseOptions;
|
|
304
|
+
if (configuration) {
|
|
305
|
+
baseOptions = configuration.baseOptions;
|
|
306
|
+
}
|
|
307
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
308
|
+
const localVarHeaderParameter = {};
|
|
309
|
+
const localVarQueryParameter = {};
|
|
310
|
+
// authentication Bearer required
|
|
311
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
312
|
+
if (graphUri !== undefined) {
|
|
313
|
+
localVarQueryParameter['GraphUri'] = graphUri;
|
|
314
|
+
}
|
|
315
|
+
if (format !== undefined) {
|
|
316
|
+
localVarQueryParameter['Format'] = format;
|
|
317
|
+
}
|
|
318
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
|
|
319
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
320
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
321
|
+
return {
|
|
322
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
323
|
+
options: localVarRequestOptions,
|
|
324
|
+
};
|
|
325
|
+
}),
|
|
326
|
+
/**
|
|
327
|
+
*
|
|
328
|
+
* @summary Updates a metadata graph.
|
|
329
|
+
* @param {MetadataUpdateAdminParameters} [metadataUpdateAdminParameters] The metadata update admin parameters.
|
|
330
|
+
* @param {*} [options] Override http request option.
|
|
331
|
+
* @throws {RequiredError}
|
|
332
|
+
*/
|
|
333
|
+
updateMetadataGraph: (metadataUpdateAdminParameters, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
334
|
+
const localVarPath = `/api/v2/admin/metadata`;
|
|
335
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
336
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
337
|
+
let baseOptions;
|
|
338
|
+
if (configuration) {
|
|
339
|
+
baseOptions = configuration.baseOptions;
|
|
340
|
+
}
|
|
341
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
342
|
+
const localVarHeaderParameter = {};
|
|
343
|
+
const localVarQueryParameter = {};
|
|
344
|
+
// authentication Bearer required
|
|
345
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
346
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
347
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
|
|
348
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
349
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
350
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(metadataUpdateAdminParameters, localVarRequestOptions, configuration);
|
|
351
|
+
return {
|
|
352
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
353
|
+
options: localVarRequestOptions,
|
|
354
|
+
};
|
|
355
|
+
}),
|
|
356
|
+
};
|
|
357
|
+
};
|
|
358
|
+
exports.AdminApiAxiosParamCreator = AdminApiAxiosParamCreator;
|
|
359
|
+
/**
|
|
360
|
+
* AdminApi - functional programming interface
|
|
361
|
+
* @export
|
|
362
|
+
*/
|
|
363
|
+
const AdminApiFp = function (configuration) {
|
|
364
|
+
const localVarAxiosParamCreator = (0, exports.AdminApiAxiosParamCreator)(configuration);
|
|
365
|
+
return {
|
|
366
|
+
/**
|
|
367
|
+
*
|
|
368
|
+
* @summary Responds with the HTTP methods allowed for the endpoint.
|
|
369
|
+
* @param {*} [options] Override http request option.
|
|
370
|
+
* @throws {RequiredError}
|
|
371
|
+
*/
|
|
372
|
+
apiV2AdminOptions(options) {
|
|
373
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
374
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.apiV2AdminOptions(options);
|
|
375
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
376
|
+
});
|
|
377
|
+
},
|
|
378
|
+
/**
|
|
379
|
+
*
|
|
380
|
+
* @summary Retrieves all projects.
|
|
381
|
+
* @param {boolean} [topLevel]
|
|
382
|
+
* @param {boolean} [includeDeleted]
|
|
383
|
+
* @param {number} [pageNumber]
|
|
384
|
+
* @param {number} [pageSize]
|
|
385
|
+
* @param {string} [orderBy]
|
|
386
|
+
* @param {*} [options] Override http request option.
|
|
387
|
+
* @throws {RequiredError}
|
|
388
|
+
*/
|
|
389
|
+
getAllProjects(topLevel, includeDeleted, pageNumber, pageSize, orderBy, options) {
|
|
390
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
391
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getAllProjects(topLevel, includeDeleted, pageNumber, pageSize, orderBy, options);
|
|
392
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
393
|
+
});
|
|
394
|
+
},
|
|
395
|
+
/**
|
|
396
|
+
*
|
|
397
|
+
* @summary Retrieves all resources.
|
|
398
|
+
* @param {boolean} [includeDeleted]
|
|
399
|
+
* @param {number} [pageNumber]
|
|
400
|
+
* @param {number} [pageSize]
|
|
401
|
+
* @param {string} [orderBy]
|
|
402
|
+
* @param {*} [options] Override http request option.
|
|
403
|
+
* @throws {RequiredError}
|
|
404
|
+
*/
|
|
405
|
+
getAllResources(includeDeleted, pageNumber, pageSize, orderBy, options) {
|
|
406
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
407
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getAllResources(includeDeleted, pageNumber, pageSize, orderBy, options);
|
|
408
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
409
|
+
});
|
|
410
|
+
},
|
|
411
|
+
/**
|
|
412
|
+
*
|
|
413
|
+
* @summary Retrieves all users.
|
|
414
|
+
* @param {string} [orderBy]
|
|
415
|
+
* @param {boolean} [tosAccepted]
|
|
416
|
+
* @param {number} [pageNumber]
|
|
417
|
+
* @param {number} [pageSize]
|
|
418
|
+
* @param {*} [options] Override http request option.
|
|
419
|
+
* @throws {RequiredError}
|
|
420
|
+
*/
|
|
421
|
+
getAllUsers(orderBy, tosAccepted, pageNumber, pageSize, options) {
|
|
422
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
423
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getAllUsers(orderBy, tosAccepted, pageNumber, pageSize, options);
|
|
424
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
425
|
+
});
|
|
426
|
+
},
|
|
427
|
+
/**
|
|
428
|
+
*
|
|
429
|
+
* @summary Gets a metadata graph.
|
|
430
|
+
* @param {string} graphUri
|
|
431
|
+
* @param {RdfFormat} [format]
|
|
432
|
+
* @param {*} [options] Override http request option.
|
|
433
|
+
* @throws {RequiredError}
|
|
434
|
+
*/
|
|
435
|
+
getMetadataGraph(graphUri, format, options) {
|
|
436
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
437
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getMetadataGraph(graphUri, format, options);
|
|
438
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
439
|
+
});
|
|
440
|
+
},
|
|
441
|
+
/**
|
|
442
|
+
*
|
|
443
|
+
* @summary Updates a metadata graph.
|
|
444
|
+
* @param {MetadataUpdateAdminParameters} [metadataUpdateAdminParameters] The metadata update admin parameters.
|
|
445
|
+
* @param {*} [options] Override http request option.
|
|
446
|
+
* @throws {RequiredError}
|
|
447
|
+
*/
|
|
448
|
+
updateMetadataGraph(metadataUpdateAdminParameters, options) {
|
|
449
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
450
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateMetadataGraph(metadataUpdateAdminParameters, options);
|
|
451
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
452
|
+
});
|
|
453
|
+
},
|
|
454
|
+
};
|
|
455
|
+
};
|
|
456
|
+
exports.AdminApiFp = AdminApiFp;
|
|
457
|
+
/**
|
|
458
|
+
* AdminApi - factory interface
|
|
459
|
+
* @export
|
|
460
|
+
*/
|
|
461
|
+
const AdminApiFactory = function (configuration, basePath, axios) {
|
|
462
|
+
const localVarFp = (0, exports.AdminApiFp)(configuration);
|
|
463
|
+
return {
|
|
464
|
+
/**
|
|
465
|
+
*
|
|
466
|
+
* @summary Responds with the HTTP methods allowed for the endpoint.
|
|
467
|
+
* @param {*} [options] Override http request option.
|
|
468
|
+
* @throws {RequiredError}
|
|
469
|
+
*/
|
|
470
|
+
apiV2AdminOptions(options) {
|
|
471
|
+
return localVarFp.apiV2AdminOptions(options).then((request) => request(axios, basePath));
|
|
472
|
+
},
|
|
473
|
+
/**
|
|
474
|
+
*
|
|
475
|
+
* @summary Retrieves all projects.
|
|
476
|
+
* @param {boolean} [topLevel]
|
|
477
|
+
* @param {boolean} [includeDeleted]
|
|
478
|
+
* @param {number} [pageNumber]
|
|
479
|
+
* @param {number} [pageSize]
|
|
480
|
+
* @param {string} [orderBy]
|
|
481
|
+
* @param {*} [options] Override http request option.
|
|
482
|
+
* @throws {RequiredError}
|
|
483
|
+
*/
|
|
484
|
+
getAllProjects(topLevel, includeDeleted, pageNumber, pageSize, orderBy, options) {
|
|
485
|
+
return localVarFp.getAllProjects(topLevel, includeDeleted, pageNumber, pageSize, orderBy, options).then((request) => request(axios, basePath));
|
|
486
|
+
},
|
|
487
|
+
/**
|
|
488
|
+
*
|
|
489
|
+
* @summary Retrieves all resources.
|
|
490
|
+
* @param {boolean} [includeDeleted]
|
|
491
|
+
* @param {number} [pageNumber]
|
|
492
|
+
* @param {number} [pageSize]
|
|
493
|
+
* @param {string} [orderBy]
|
|
494
|
+
* @param {*} [options] Override http request option.
|
|
495
|
+
* @throws {RequiredError}
|
|
496
|
+
*/
|
|
497
|
+
getAllResources(includeDeleted, pageNumber, pageSize, orderBy, options) {
|
|
498
|
+
return localVarFp.getAllResources(includeDeleted, pageNumber, pageSize, orderBy, options).then((request) => request(axios, basePath));
|
|
499
|
+
},
|
|
500
|
+
/**
|
|
501
|
+
*
|
|
502
|
+
* @summary Retrieves all users.
|
|
503
|
+
* @param {string} [orderBy]
|
|
504
|
+
* @param {boolean} [tosAccepted]
|
|
505
|
+
* @param {number} [pageNumber]
|
|
506
|
+
* @param {number} [pageSize]
|
|
507
|
+
* @param {*} [options] Override http request option.
|
|
508
|
+
* @throws {RequiredError}
|
|
509
|
+
*/
|
|
510
|
+
getAllUsers(orderBy, tosAccepted, pageNumber, pageSize, options) {
|
|
511
|
+
return localVarFp.getAllUsers(orderBy, tosAccepted, pageNumber, pageSize, options).then((request) => request(axios, basePath));
|
|
512
|
+
},
|
|
513
|
+
/**
|
|
514
|
+
*
|
|
515
|
+
* @summary Gets a metadata graph.
|
|
516
|
+
* @param {string} graphUri
|
|
517
|
+
* @param {RdfFormat} [format]
|
|
518
|
+
* @param {*} [options] Override http request option.
|
|
519
|
+
* @throws {RequiredError}
|
|
520
|
+
*/
|
|
521
|
+
getMetadataGraph(graphUri, format, options) {
|
|
522
|
+
return localVarFp.getMetadataGraph(graphUri, format, options).then((request) => request(axios, basePath));
|
|
523
|
+
},
|
|
524
|
+
/**
|
|
525
|
+
*
|
|
526
|
+
* @summary Updates a metadata graph.
|
|
527
|
+
* @param {MetadataUpdateAdminParameters} [metadataUpdateAdminParameters] The metadata update admin parameters.
|
|
528
|
+
* @param {*} [options] Override http request option.
|
|
529
|
+
* @throws {RequiredError}
|
|
530
|
+
*/
|
|
531
|
+
updateMetadataGraph(metadataUpdateAdminParameters, options) {
|
|
532
|
+
return localVarFp.updateMetadataGraph(metadataUpdateAdminParameters, options).then((request) => request(axios, basePath));
|
|
533
|
+
},
|
|
534
|
+
};
|
|
535
|
+
};
|
|
536
|
+
exports.AdminApiFactory = AdminApiFactory;
|
|
537
|
+
/**
|
|
538
|
+
* AdminApi - object-oriented interface
|
|
539
|
+
* @export
|
|
540
|
+
* @class AdminApi
|
|
541
|
+
* @extends {BaseAPI}
|
|
542
|
+
*/
|
|
543
|
+
class AdminApi extends base_1.BaseAPI {
|
|
544
|
+
/**
|
|
545
|
+
*
|
|
546
|
+
* @summary Responds with the HTTP methods allowed for the endpoint.
|
|
547
|
+
* @param {*} [options] Override http request option.
|
|
548
|
+
* @throws {RequiredError}
|
|
549
|
+
* @memberof AdminApi
|
|
550
|
+
*/
|
|
551
|
+
apiV2AdminOptions(options) {
|
|
552
|
+
return (0, exports.AdminApiFp)(this.configuration).apiV2AdminOptions(options).then((request) => request(this.axios, this.basePath));
|
|
553
|
+
}
|
|
554
|
+
/**
|
|
555
|
+
*
|
|
556
|
+
* @summary Retrieves all projects.
|
|
557
|
+
* @param {boolean} [topLevel]
|
|
558
|
+
* @param {boolean} [includeDeleted]
|
|
559
|
+
* @param {number} [pageNumber]
|
|
560
|
+
* @param {number} [pageSize]
|
|
561
|
+
* @param {string} [orderBy]
|
|
562
|
+
* @param {*} [options] Override http request option.
|
|
563
|
+
* @throws {RequiredError}
|
|
564
|
+
* @memberof AdminApi
|
|
565
|
+
*/
|
|
566
|
+
getAllProjects(topLevel, includeDeleted, pageNumber, pageSize, orderBy, options) {
|
|
567
|
+
return (0, exports.AdminApiFp)(this.configuration).getAllProjects(topLevel, includeDeleted, pageNumber, pageSize, orderBy, options).then((request) => request(this.axios, this.basePath));
|
|
568
|
+
}
|
|
569
|
+
/**
|
|
570
|
+
*
|
|
571
|
+
* @summary Retrieves all resources.
|
|
572
|
+
* @param {boolean} [includeDeleted]
|
|
573
|
+
* @param {number} [pageNumber]
|
|
574
|
+
* @param {number} [pageSize]
|
|
575
|
+
* @param {string} [orderBy]
|
|
576
|
+
* @param {*} [options] Override http request option.
|
|
577
|
+
* @throws {RequiredError}
|
|
578
|
+
* @memberof AdminApi
|
|
579
|
+
*/
|
|
580
|
+
getAllResources(includeDeleted, pageNumber, pageSize, orderBy, options) {
|
|
581
|
+
return (0, exports.AdminApiFp)(this.configuration).getAllResources(includeDeleted, pageNumber, pageSize, orderBy, options).then((request) => request(this.axios, this.basePath));
|
|
582
|
+
}
|
|
583
|
+
/**
|
|
584
|
+
*
|
|
585
|
+
* @summary Retrieves all users.
|
|
586
|
+
* @param {string} [orderBy]
|
|
587
|
+
* @param {boolean} [tosAccepted]
|
|
588
|
+
* @param {number} [pageNumber]
|
|
589
|
+
* @param {number} [pageSize]
|
|
590
|
+
* @param {*} [options] Override http request option.
|
|
591
|
+
* @throws {RequiredError}
|
|
592
|
+
* @memberof AdminApi
|
|
593
|
+
*/
|
|
594
|
+
getAllUsers(orderBy, tosAccepted, pageNumber, pageSize, options) {
|
|
595
|
+
return (0, exports.AdminApiFp)(this.configuration).getAllUsers(orderBy, tosAccepted, pageNumber, pageSize, options).then((request) => request(this.axios, this.basePath));
|
|
596
|
+
}
|
|
597
|
+
/**
|
|
598
|
+
*
|
|
599
|
+
* @summary Gets a metadata graph.
|
|
600
|
+
* @param {string} graphUri
|
|
601
|
+
* @param {RdfFormat} [format]
|
|
602
|
+
* @param {*} [options] Override http request option.
|
|
603
|
+
* @throws {RequiredError}
|
|
604
|
+
* @memberof AdminApi
|
|
605
|
+
*/
|
|
606
|
+
getMetadataGraph(graphUri, format, options) {
|
|
607
|
+
return (0, exports.AdminApiFp)(this.configuration).getMetadataGraph(graphUri, format, options).then((request) => request(this.axios, this.basePath));
|
|
608
|
+
}
|
|
609
|
+
/**
|
|
610
|
+
*
|
|
611
|
+
* @summary Updates a metadata graph.
|
|
612
|
+
* @param {MetadataUpdateAdminParameters} [metadataUpdateAdminParameters] The metadata update admin parameters.
|
|
613
|
+
* @param {*} [options] Override http request option.
|
|
614
|
+
* @throws {RequiredError}
|
|
615
|
+
* @memberof AdminApi
|
|
616
|
+
*/
|
|
617
|
+
updateMetadataGraph(metadataUpdateAdminParameters, options) {
|
|
618
|
+
return (0, exports.AdminApiFp)(this.configuration).updateMetadataGraph(metadataUpdateAdminParameters, options).then((request) => request(this.axios, this.basePath));
|
|
619
|
+
}
|
|
620
|
+
}
|
|
621
|
+
exports.AdminApi = AdminApi;
|
|
123
622
|
/**
|
|
124
623
|
* ApplicationProfileApi - axios parameter creator
|
|
125
624
|
* @export
|
|
@@ -227,13 +726,14 @@ const ApplicationProfileApiAxiosParamCreator = function (configuration) {
|
|
|
227
726
|
* @summary Retrieves all application profiles.
|
|
228
727
|
* @param {string} [searchTerm]
|
|
229
728
|
* @param {AcceptedLanguage} [language]
|
|
729
|
+
* @param {boolean} [modules]
|
|
230
730
|
* @param {number} [pageNumber]
|
|
231
731
|
* @param {number} [pageSize]
|
|
232
732
|
* @param {string} [orderBy]
|
|
233
733
|
* @param {*} [options] Override http request option.
|
|
234
734
|
* @throws {RequiredError}
|
|
235
735
|
*/
|
|
236
|
-
getApplicationProfiles: (searchTerm, language, pageNumber, pageSize, orderBy, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
736
|
+
getApplicationProfiles: (searchTerm, language, modules, pageNumber, pageSize, orderBy, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
237
737
|
const localVarPath = `/api/v2/application-profiles/profiles`;
|
|
238
738
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
239
739
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -252,6 +752,9 @@ const ApplicationProfileApiAxiosParamCreator = function (configuration) {
|
|
|
252
752
|
if (language !== undefined) {
|
|
253
753
|
localVarQueryParameter['Language'] = language;
|
|
254
754
|
}
|
|
755
|
+
if (modules !== undefined) {
|
|
756
|
+
localVarQueryParameter['Modules'] = modules;
|
|
757
|
+
}
|
|
255
758
|
if (pageNumber !== undefined) {
|
|
256
759
|
localVarQueryParameter['PageNumber'] = pageNumber;
|
|
257
760
|
}
|
|
@@ -355,15 +858,16 @@ const ApplicationProfileApiFp = function (configuration) {
|
|
|
355
858
|
* @summary Retrieves all application profiles.
|
|
356
859
|
* @param {string} [searchTerm]
|
|
357
860
|
* @param {AcceptedLanguage} [language]
|
|
861
|
+
* @param {boolean} [modules]
|
|
358
862
|
* @param {number} [pageNumber]
|
|
359
863
|
* @param {number} [pageSize]
|
|
360
864
|
* @param {string} [orderBy]
|
|
361
865
|
* @param {*} [options] Override http request option.
|
|
362
866
|
* @throws {RequiredError}
|
|
363
867
|
*/
|
|
364
|
-
getApplicationProfiles(searchTerm, language, pageNumber, pageSize, orderBy, options) {
|
|
868
|
+
getApplicationProfiles(searchTerm, language, modules, pageNumber, pageSize, orderBy, options) {
|
|
365
869
|
return __awaiter(this, void 0, void 0, function* () {
|
|
366
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getApplicationProfiles(searchTerm, language, pageNumber, pageSize, orderBy, options);
|
|
870
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getApplicationProfiles(searchTerm, language, modules, pageNumber, pageSize, orderBy, options);
|
|
367
871
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
368
872
|
});
|
|
369
873
|
},
|
|
@@ -426,14 +930,15 @@ const ApplicationProfileApiFactory = function (configuration, basePath, axios) {
|
|
|
426
930
|
* @summary Retrieves all application profiles.
|
|
427
931
|
* @param {string} [searchTerm]
|
|
428
932
|
* @param {AcceptedLanguage} [language]
|
|
933
|
+
* @param {boolean} [modules]
|
|
429
934
|
* @param {number} [pageNumber]
|
|
430
935
|
* @param {number} [pageSize]
|
|
431
936
|
* @param {string} [orderBy]
|
|
432
937
|
* @param {*} [options] Override http request option.
|
|
433
938
|
* @throws {RequiredError}
|
|
434
939
|
*/
|
|
435
|
-
getApplicationProfiles(searchTerm, language, pageNumber, pageSize, orderBy, options) {
|
|
436
|
-
return localVarFp.getApplicationProfiles(searchTerm, language, pageNumber, pageSize, orderBy, options).then((request) => request(axios, basePath));
|
|
940
|
+
getApplicationProfiles(searchTerm, language, modules, pageNumber, pageSize, orderBy, options) {
|
|
941
|
+
return localVarFp.getApplicationProfiles(searchTerm, language, modules, pageNumber, pageSize, orderBy, options).then((request) => request(axios, basePath));
|
|
437
942
|
},
|
|
438
943
|
/**
|
|
439
944
|
*
|
|
@@ -494,6 +999,7 @@ class ApplicationProfileApi extends base_1.BaseAPI {
|
|
|
494
999
|
* @summary Retrieves all application profiles.
|
|
495
1000
|
* @param {string} [searchTerm]
|
|
496
1001
|
* @param {AcceptedLanguage} [language]
|
|
1002
|
+
* @param {boolean} [modules]
|
|
497
1003
|
* @param {number} [pageNumber]
|
|
498
1004
|
* @param {number} [pageSize]
|
|
499
1005
|
* @param {string} [orderBy]
|
|
@@ -501,8 +1007,8 @@ class ApplicationProfileApi extends base_1.BaseAPI {
|
|
|
501
1007
|
* @throws {RequiredError}
|
|
502
1008
|
* @memberof ApplicationProfileApi
|
|
503
1009
|
*/
|
|
504
|
-
getApplicationProfiles(searchTerm, language, pageNumber, pageSize, orderBy, options) {
|
|
505
|
-
return (0, exports.ApplicationProfileApiFp)(this.configuration).getApplicationProfiles(searchTerm, language, pageNumber, pageSize, orderBy, options).then((request) => request(this.axios, this.basePath));
|
|
1010
|
+
getApplicationProfiles(searchTerm, language, modules, pageNumber, pageSize, orderBy, options) {
|
|
1011
|
+
return (0, exports.ApplicationProfileApiFp)(this.configuration).getApplicationProfiles(searchTerm, language, modules, pageNumber, pageSize, orderBy, options).then((request) => request(this.axios, this.basePath));
|
|
506
1012
|
}
|
|
507
1013
|
/**
|
|
508
1014
|
*
|