@researchdatabox/rva-registry-openapi-generated-node 0.0.0-bootstrap.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/api.d.ts +2367 -0
- package/dist/api.js +4067 -0
- package/dist/base.d.ts +42 -0
- package/dist/base.js +52 -0
- package/dist/common.d.ts +34 -0
- package/dist/common.js +122 -0
- package/dist/configuration.d.ts +98 -0
- package/dist/configuration.js +100 -0
- package/dist/index.d.ts +13 -0
- package/dist/index.js +31 -0
- package/package.json +32 -0
package/dist/api.js
ADDED
|
@@ -0,0 +1,4067 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Vocabulary Registry API
|
|
6
|
+
* Public access to the Vocabulary Registry API
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.2.0
|
|
9
|
+
* Contact: services@ardc.edu.au
|
|
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
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
16
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
17
|
+
};
|
|
18
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
+
exports.UtilitiesApi = exports.UtilitiesApiFactory = exports.UtilitiesApiFp = exports.UtilitiesApiAxiosParamCreator = exports.ServicesApi = exports.ServicesApiFactory = exports.ServicesApiFp = exports.ServicesApiAxiosParamCreator = exports.GetVersionArtefactsTypeEnum = exports.GetRelatedEntitiesRelatedEntityTypeEnum = exports.ResourcesApi = exports.ResourcesApiFactory = exports.ResourcesApiFp = exports.ResourcesApiAxiosParamCreator = exports.AdminApi = exports.AdminApiFactory = exports.AdminApiFp = exports.AdminApiAxiosParamCreator = exports.VocabularyStatusEnum = exports.VersionArtefactTypeEnum = exports.VersionArtefactStatusEnum = exports.VersionStatusEnum = exports.VersionBrowseFlagEnum = exports.UserInfoAuthenticationServiceIdEnum = exports.TaskOutcomeStatusEnum = exports.TaskStatusEnum = exports.SubtaskOutcomeOperationEnum = exports.SubtaskOutcomeSubtaskProviderTypeEnum = exports.SubtaskOutcomeStatusEnum = exports.SubtaskStatusEnum = exports.SubtaskOperationEnum = exports.SubtaskSubtaskProviderTypeEnum = exports.SubscriptionElementTypeEnum = exports.SubscriptionNotificationModeEnum = exports.RoleTypeIdEnum = exports.ReverseRelatedVocabularyRelatedVocabularyRelationEnum = exports.ReverseRelatedVocabularyRelatedEntityRelationEnum = exports.RelatedVocabularyRefRelationEnum = exports.RelatedVocabularyStatusEnum = exports.RelatedEntityRefRelationEnum = exports.RelatedEntityIdentifierIdentifierTypeEnum = exports.RelatedEntityTypeEnum = exports.OwnedVocabularyStatusEnum = exports.AccessPointDiscriminatorEnum = exports.AccessPointSourceEnum = void 0;
|
|
20
|
+
const axios_1 = __importDefault(require("axios"));
|
|
21
|
+
// Some imports not used depending on template conditions
|
|
22
|
+
// @ts-ignore
|
|
23
|
+
const common_1 = require("./common");
|
|
24
|
+
// @ts-ignore
|
|
25
|
+
const base_1 = require("./base");
|
|
26
|
+
exports.AccessPointSourceEnum = {
|
|
27
|
+
System: 'system',
|
|
28
|
+
User: 'user'
|
|
29
|
+
};
|
|
30
|
+
exports.AccessPointDiscriminatorEnum = {
|
|
31
|
+
ApiSparql: 'apiSparql',
|
|
32
|
+
File: 'file',
|
|
33
|
+
SesameDownload: 'sesameDownload',
|
|
34
|
+
Sissvoc: 'sissvoc',
|
|
35
|
+
WebPage: 'webPage'
|
|
36
|
+
};
|
|
37
|
+
exports.OwnedVocabularyStatusEnum = {
|
|
38
|
+
Published: 'published',
|
|
39
|
+
Draft: 'draft',
|
|
40
|
+
Deprecated: 'deprecated'
|
|
41
|
+
};
|
|
42
|
+
exports.RelatedEntityTypeEnum = {
|
|
43
|
+
Party: 'party',
|
|
44
|
+
Service: 'service',
|
|
45
|
+
Vocabulary: 'vocabulary'
|
|
46
|
+
};
|
|
47
|
+
exports.RelatedEntityIdentifierIdentifierTypeEnum = {
|
|
48
|
+
AuAnlPeau: 'auAnlPeau',
|
|
49
|
+
Doi: 'doi',
|
|
50
|
+
Handle: 'handle',
|
|
51
|
+
Infouri: 'infouri',
|
|
52
|
+
Isil: 'isil',
|
|
53
|
+
Isni: 'isni',
|
|
54
|
+
Local: 'local',
|
|
55
|
+
Orcid: 'orcid',
|
|
56
|
+
Purl: 'purl',
|
|
57
|
+
ResearcherId: 'researcherID',
|
|
58
|
+
Ror: 'ror',
|
|
59
|
+
Uri: 'uri',
|
|
60
|
+
Viaf: 'viaf'
|
|
61
|
+
};
|
|
62
|
+
exports.RelatedEntityRefRelationEnum = {
|
|
63
|
+
PublishedBy: 'publishedBy',
|
|
64
|
+
HasAuthor: 'hasAuthor',
|
|
65
|
+
HasContributor: 'hasContributor',
|
|
66
|
+
PointOfContact: 'pointOfContact',
|
|
67
|
+
ImplementedBy: 'implementedBy',
|
|
68
|
+
ConsumerOf: 'consumerOf',
|
|
69
|
+
IsFundedBy: 'isFundedBy',
|
|
70
|
+
HasAssociationWith: 'hasAssociationWith',
|
|
71
|
+
IsPresentedBy: 'isPresentedBy',
|
|
72
|
+
IsUsedBy: 'isUsedBy',
|
|
73
|
+
IsDerivedFrom: 'isDerivedFrom',
|
|
74
|
+
Enriches: 'enriches',
|
|
75
|
+
IsPartOf: 'isPartOf'
|
|
76
|
+
};
|
|
77
|
+
exports.RelatedVocabularyStatusEnum = {
|
|
78
|
+
Published: 'published',
|
|
79
|
+
Draft: 'draft',
|
|
80
|
+
Deprecated: 'deprecated'
|
|
81
|
+
};
|
|
82
|
+
exports.RelatedVocabularyRefRelationEnum = {
|
|
83
|
+
HasAssociationWith: 'hasAssociationWith',
|
|
84
|
+
IsDerivedFrom: 'isDerivedFrom',
|
|
85
|
+
Enriches: 'enriches',
|
|
86
|
+
IsPartOf: 'isPartOf'
|
|
87
|
+
};
|
|
88
|
+
exports.ReverseRelatedVocabularyRelatedEntityRelationEnum = {
|
|
89
|
+
PublishedBy: 'publishedBy',
|
|
90
|
+
HasAuthor: 'hasAuthor',
|
|
91
|
+
HasContributor: 'hasContributor',
|
|
92
|
+
PointOfContact: 'pointOfContact',
|
|
93
|
+
ImplementedBy: 'implementedBy',
|
|
94
|
+
ConsumerOf: 'consumerOf',
|
|
95
|
+
IsFundedBy: 'isFundedBy',
|
|
96
|
+
HasAssociationWith: 'hasAssociationWith',
|
|
97
|
+
IsPresentedBy: 'isPresentedBy',
|
|
98
|
+
IsUsedBy: 'isUsedBy',
|
|
99
|
+
IsDerivedFrom: 'isDerivedFrom',
|
|
100
|
+
Enriches: 'enriches',
|
|
101
|
+
IsPartOf: 'isPartOf'
|
|
102
|
+
};
|
|
103
|
+
exports.ReverseRelatedVocabularyRelatedVocabularyRelationEnum = {
|
|
104
|
+
HasAssociationWith: 'hasAssociationWith',
|
|
105
|
+
IsDerivedFrom: 'isDerivedFrom',
|
|
106
|
+
Enriches: 'enriches',
|
|
107
|
+
IsPartOf: 'isPartOf'
|
|
108
|
+
};
|
|
109
|
+
exports.RoleTypeIdEnum = {
|
|
110
|
+
RoleUser: 'ROLE_USER',
|
|
111
|
+
RoleOrganisational: 'ROLE_ORGANISATIONAL',
|
|
112
|
+
RoleFunctional: 'ROLE_FUNCTIONAL',
|
|
113
|
+
RoleDoiAppid: 'ROLE_DOI_APPID'
|
|
114
|
+
};
|
|
115
|
+
exports.SubscriptionNotificationModeEnum = {
|
|
116
|
+
Email: 'email'
|
|
117
|
+
};
|
|
118
|
+
exports.SubscriptionElementTypeEnum = {
|
|
119
|
+
System: 'system',
|
|
120
|
+
Owner: 'owner',
|
|
121
|
+
Vocabulary: 'vocabulary'
|
|
122
|
+
};
|
|
123
|
+
exports.SubtaskSubtaskProviderTypeEnum = {
|
|
124
|
+
Backup: 'backup',
|
|
125
|
+
Harvest: 'harvest',
|
|
126
|
+
Importer: 'importer',
|
|
127
|
+
Publish: 'publish',
|
|
128
|
+
Transform: 'transform'
|
|
129
|
+
};
|
|
130
|
+
exports.SubtaskOperationEnum = {
|
|
131
|
+
Insert: 'insert',
|
|
132
|
+
Delete: 'delete',
|
|
133
|
+
Perform: 'perform'
|
|
134
|
+
};
|
|
135
|
+
exports.SubtaskStatusEnum = {
|
|
136
|
+
New: 'new',
|
|
137
|
+
Partial: 'partial',
|
|
138
|
+
Success: 'success',
|
|
139
|
+
Error: 'error'
|
|
140
|
+
};
|
|
141
|
+
exports.SubtaskOutcomeStatusEnum = {
|
|
142
|
+
New: 'new',
|
|
143
|
+
Partial: 'partial',
|
|
144
|
+
Success: 'success',
|
|
145
|
+
Error: 'error'
|
|
146
|
+
};
|
|
147
|
+
exports.SubtaskOutcomeSubtaskProviderTypeEnum = {
|
|
148
|
+
Backup: 'backup',
|
|
149
|
+
Harvest: 'harvest',
|
|
150
|
+
Importer: 'importer',
|
|
151
|
+
Publish: 'publish',
|
|
152
|
+
Transform: 'transform'
|
|
153
|
+
};
|
|
154
|
+
exports.SubtaskOutcomeOperationEnum = {
|
|
155
|
+
Insert: 'insert',
|
|
156
|
+
Delete: 'delete',
|
|
157
|
+
Perform: 'perform'
|
|
158
|
+
};
|
|
159
|
+
exports.TaskStatusEnum = {
|
|
160
|
+
New: 'new',
|
|
161
|
+
Partial: 'partial',
|
|
162
|
+
Success: 'success',
|
|
163
|
+
Error: 'error'
|
|
164
|
+
};
|
|
165
|
+
exports.TaskOutcomeStatusEnum = {
|
|
166
|
+
New: 'new',
|
|
167
|
+
Partial: 'partial',
|
|
168
|
+
Success: 'success',
|
|
169
|
+
Error: 'error'
|
|
170
|
+
};
|
|
171
|
+
exports.UserInfoAuthenticationServiceIdEnum = {
|
|
172
|
+
AuthenticationBuiltIn: 'AUTHENTICATION_BUILT_IN',
|
|
173
|
+
AuthenticationLdap: 'AUTHENTICATION_LDAP',
|
|
174
|
+
AuthenticationShibboleth: 'AUTHENTICATION_SHIBBOLETH',
|
|
175
|
+
AuthenticationSocialFacebook: 'AUTHENTICATION_SOCIAL_FACEBOOK',
|
|
176
|
+
AuthenticationSocialGoogle: 'AUTHENTICATION_SOCIAL_GOOGLE',
|
|
177
|
+
AuthenticationSocialTwitter: 'AUTHENTICATION_SOCIAL_TWITTER'
|
|
178
|
+
};
|
|
179
|
+
exports.VersionBrowseFlagEnum = {
|
|
180
|
+
MaySortByNotation: 'maySortByNotation',
|
|
181
|
+
DefaultSortByNotation: 'defaultSortByNotation',
|
|
182
|
+
NotationAlpha: 'notationAlpha',
|
|
183
|
+
NotationFloat: 'notationFloat',
|
|
184
|
+
NotationDotted: 'notationDotted',
|
|
185
|
+
DefaultDisplayNotation: 'defaultDisplayNotation',
|
|
186
|
+
IncludeConceptSchemes: 'includeConceptSchemes',
|
|
187
|
+
IncludeCollections: 'includeCollections',
|
|
188
|
+
MayResolveResources: 'mayResolveResources'
|
|
189
|
+
};
|
|
190
|
+
exports.VersionStatusEnum = {
|
|
191
|
+
Current: 'current',
|
|
192
|
+
Superseded: 'superseded'
|
|
193
|
+
};
|
|
194
|
+
exports.VersionArtefactStatusEnum = {
|
|
195
|
+
Current: 'current',
|
|
196
|
+
Pending: 'pending'
|
|
197
|
+
};
|
|
198
|
+
exports.VersionArtefactTypeEnum = {
|
|
199
|
+
ConceptList: 'conceptList',
|
|
200
|
+
ConceptTree: 'conceptTree',
|
|
201
|
+
HarvestPoolparty: 'harvestPoolparty',
|
|
202
|
+
ResourceDocs: 'resourceDocs'
|
|
203
|
+
};
|
|
204
|
+
exports.VocabularyStatusEnum = {
|
|
205
|
+
Published: 'published',
|
|
206
|
+
Draft: 'draft',
|
|
207
|
+
Deprecated: 'deprecated'
|
|
208
|
+
};
|
|
209
|
+
/**
|
|
210
|
+
* AdminApi - axios parameter creator
|
|
211
|
+
*/
|
|
212
|
+
const AdminApiAxiosParamCreator = function (configuration) {
|
|
213
|
+
return {
|
|
214
|
+
/**
|
|
215
|
+
* This method is only available to administrator users.
|
|
216
|
+
* @summary Backup all PoolParty projects.
|
|
217
|
+
* @param {*} [options] Override http request option.
|
|
218
|
+
* @throws {RequiredError}
|
|
219
|
+
*/
|
|
220
|
+
backupAllPoolPartyProjects: async (options = {}) => {
|
|
221
|
+
const localVarPath = `/adminApi/backup/PoolParty`;
|
|
222
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
223
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
224
|
+
let baseOptions;
|
|
225
|
+
if (configuration) {
|
|
226
|
+
baseOptions = configuration.baseOptions;
|
|
227
|
+
}
|
|
228
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
229
|
+
const localVarHeaderParameter = {};
|
|
230
|
+
const localVarQueryParameter = {};
|
|
231
|
+
// authentication basicAuth required
|
|
232
|
+
// http basic authentication required
|
|
233
|
+
(0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
|
|
234
|
+
// authentication apiKeyAuth required
|
|
235
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "ands_authentication", configuration);
|
|
236
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
237
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
238
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
239
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
240
|
+
return {
|
|
241
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
242
|
+
options: localVarRequestOptions,
|
|
243
|
+
};
|
|
244
|
+
},
|
|
245
|
+
/**
|
|
246
|
+
* This method is only available to administrator users.
|
|
247
|
+
* @summary Backup one PoolParty project.
|
|
248
|
+
* @param {string} projectId
|
|
249
|
+
* @param {*} [options] Override http request option.
|
|
250
|
+
* @throws {RequiredError}
|
|
251
|
+
*/
|
|
252
|
+
backupPoolPartyProject: async (projectId, options = {}) => {
|
|
253
|
+
// verify required parameter 'projectId' is not null or undefined
|
|
254
|
+
(0, common_1.assertParamExists)('backupPoolPartyProject', 'projectId', projectId);
|
|
255
|
+
const localVarPath = `/adminApi/backup/PoolParty/{projectId}`
|
|
256
|
+
.replace(`{${"projectId"}}`, encodeURIComponent(String(projectId)));
|
|
257
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
258
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
259
|
+
let baseOptions;
|
|
260
|
+
if (configuration) {
|
|
261
|
+
baseOptions = configuration.baseOptions;
|
|
262
|
+
}
|
|
263
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
264
|
+
const localVarHeaderParameter = {};
|
|
265
|
+
const localVarQueryParameter = {};
|
|
266
|
+
// authentication basicAuth required
|
|
267
|
+
// http basic authentication required
|
|
268
|
+
(0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
|
|
269
|
+
// authentication apiKeyAuth required
|
|
270
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "ands_authentication", configuration);
|
|
271
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
272
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
273
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
274
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
275
|
+
return {
|
|
276
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
277
|
+
options: localVarRequestOptions,
|
|
278
|
+
};
|
|
279
|
+
},
|
|
280
|
+
/**
|
|
281
|
+
* This method is only available to administrator users.
|
|
282
|
+
* @summary Force a soft commit of pending changes to the Solr collections.
|
|
283
|
+
* @param {*} [options] Override http request option.
|
|
284
|
+
* @throws {RequiredError}
|
|
285
|
+
*/
|
|
286
|
+
commitSolr: async (options = {}) => {
|
|
287
|
+
const localVarPath = `/adminApi/solr/commit`;
|
|
288
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
289
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
290
|
+
let baseOptions;
|
|
291
|
+
if (configuration) {
|
|
292
|
+
baseOptions = configuration.baseOptions;
|
|
293
|
+
}
|
|
294
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
295
|
+
const localVarHeaderParameter = {};
|
|
296
|
+
const localVarQueryParameter = {};
|
|
297
|
+
// authentication basicAuth required
|
|
298
|
+
// http basic authentication required
|
|
299
|
+
(0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
|
|
300
|
+
// authentication apiKeyAuth required
|
|
301
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "ands_authentication", configuration);
|
|
302
|
+
localVarHeaderParameter['Accept'] = 'application/xml,application/json';
|
|
303
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
304
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
305
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
306
|
+
return {
|
|
307
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
308
|
+
options: localVarRequestOptions,
|
|
309
|
+
};
|
|
310
|
+
},
|
|
311
|
+
/**
|
|
312
|
+
* This method is only available to administrator users.
|
|
313
|
+
* @summary Generate email notifications.
|
|
314
|
+
* @param {string} [startDate] Start date/time of registry events to consider. Values are specified in UTC: required format YYYY-MM-DDTHH:MM:SS, e.g., 2017-10-26T13:00:00. If not specified, defaults to a week before the current date/time, and endDate is taken as the current date/time (irrespective of any value given for endDate).
|
|
315
|
+
* @param {string} [endDate] End date/time of registry events to consider. Values are specified in UTC: required format YYYY-MM-DDTHH:MM:SS, e.g., 2017-11-26T00:00:00. If not specified, defaults to the current date/time.
|
|
316
|
+
* @param {*} [options] Override http request option.
|
|
317
|
+
* @throws {RequiredError}
|
|
318
|
+
*/
|
|
319
|
+
generateNotificationEmails: async (startDate, endDate, options = {}) => {
|
|
320
|
+
const localVarPath = `/adminApi/notification/email`;
|
|
321
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
322
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
323
|
+
let baseOptions;
|
|
324
|
+
if (configuration) {
|
|
325
|
+
baseOptions = configuration.baseOptions;
|
|
326
|
+
}
|
|
327
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
328
|
+
const localVarHeaderParameter = {};
|
|
329
|
+
const localVarQueryParameter = {};
|
|
330
|
+
// authentication basicAuth required
|
|
331
|
+
// http basic authentication required
|
|
332
|
+
(0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
|
|
333
|
+
// authentication apiKeyAuth required
|
|
334
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "ands_authentication", configuration);
|
|
335
|
+
if (startDate !== undefined) {
|
|
336
|
+
localVarQueryParameter['startDate'] = startDate;
|
|
337
|
+
}
|
|
338
|
+
if (endDate !== undefined) {
|
|
339
|
+
localVarQueryParameter['endDate'] = endDate;
|
|
340
|
+
}
|
|
341
|
+
localVarHeaderParameter['Accept'] = 'application/xml,application/json';
|
|
342
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
343
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
344
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
345
|
+
return {
|
|
346
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
347
|
+
options: localVarRequestOptions,
|
|
348
|
+
};
|
|
349
|
+
},
|
|
350
|
+
/**
|
|
351
|
+
* This method is only available to administrator users.
|
|
352
|
+
* @summary Get a task.
|
|
353
|
+
* @param {number} taskId The ID of the task to get.
|
|
354
|
+
* @param {*} [options] Override http request option.
|
|
355
|
+
* @throws {RequiredError}
|
|
356
|
+
*/
|
|
357
|
+
getTask: async (taskId, options = {}) => {
|
|
358
|
+
// verify required parameter 'taskId' is not null or undefined
|
|
359
|
+
(0, common_1.assertParamExists)('getTask', 'taskId', taskId);
|
|
360
|
+
const localVarPath = `/adminApi/workflow/tasks/{taskId}`
|
|
361
|
+
.replace(`{${"taskId"}}`, encodeURIComponent(String(taskId)));
|
|
362
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
363
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
364
|
+
let baseOptions;
|
|
365
|
+
if (configuration) {
|
|
366
|
+
baseOptions = configuration.baseOptions;
|
|
367
|
+
}
|
|
368
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
369
|
+
const localVarHeaderParameter = {};
|
|
370
|
+
const localVarQueryParameter = {};
|
|
371
|
+
// authentication basicAuth required
|
|
372
|
+
// http basic authentication required
|
|
373
|
+
(0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
|
|
374
|
+
// authentication apiKeyAuth required
|
|
375
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "ands_authentication", configuration);
|
|
376
|
+
localVarHeaderParameter['Accept'] = 'application/xml,application/json';
|
|
377
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
378
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
379
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
380
|
+
return {
|
|
381
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
382
|
+
options: localVarRequestOptions,
|
|
383
|
+
};
|
|
384
|
+
},
|
|
385
|
+
/**
|
|
386
|
+
* This method is only available to administrator users.
|
|
387
|
+
* @summary Get all the current (published and deprecated) and draft vocabularies.
|
|
388
|
+
* @param {*} [options] Override http request option.
|
|
389
|
+
* @throws {RequiredError}
|
|
390
|
+
*/
|
|
391
|
+
getVocabulariesIncludingDraft: async (options = {}) => {
|
|
392
|
+
const localVarPath = `/adminApi/resource/vocabularies`;
|
|
393
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
394
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
395
|
+
let baseOptions;
|
|
396
|
+
if (configuration) {
|
|
397
|
+
baseOptions = configuration.baseOptions;
|
|
398
|
+
}
|
|
399
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
400
|
+
const localVarHeaderParameter = {};
|
|
401
|
+
const localVarQueryParameter = {};
|
|
402
|
+
// authentication basicAuth required
|
|
403
|
+
// http basic authentication required
|
|
404
|
+
(0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
|
|
405
|
+
// authentication apiKeyAuth required
|
|
406
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "ands_authentication", configuration);
|
|
407
|
+
localVarHeaderParameter['Accept'] = 'application/xml,application/json';
|
|
408
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
409
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
410
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
411
|
+
return {
|
|
412
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
413
|
+
options: localVarRequestOptions,
|
|
414
|
+
};
|
|
415
|
+
},
|
|
416
|
+
/**
|
|
417
|
+
* This method is only available to administrator users.
|
|
418
|
+
* @summary Force Solr indexing of all vocabularies.
|
|
419
|
+
* @param {*} [options] Override http request option.
|
|
420
|
+
* @throws {RequiredError}
|
|
421
|
+
*/
|
|
422
|
+
indexAll: async (options = {}) => {
|
|
423
|
+
const localVarPath = `/adminApi/solr/index`;
|
|
424
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
425
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
426
|
+
let baseOptions;
|
|
427
|
+
if (configuration) {
|
|
428
|
+
baseOptions = configuration.baseOptions;
|
|
429
|
+
}
|
|
430
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
431
|
+
const localVarHeaderParameter = {};
|
|
432
|
+
const localVarQueryParameter = {};
|
|
433
|
+
// authentication basicAuth required
|
|
434
|
+
// http basic authentication required
|
|
435
|
+
(0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
|
|
436
|
+
// authentication apiKeyAuth required
|
|
437
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "ands_authentication", configuration);
|
|
438
|
+
localVarHeaderParameter['Accept'] = 'application/xml,application/json';
|
|
439
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
440
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
441
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
442
|
+
return {
|
|
443
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
444
|
+
options: localVarRequestOptions,
|
|
445
|
+
};
|
|
446
|
+
},
|
|
447
|
+
/**
|
|
448
|
+
* This method is only available to administrator users.
|
|
449
|
+
* @summary Force Solr indexing of one vocabulary.
|
|
450
|
+
* @param {number} vocabularyId
|
|
451
|
+
* @param {*} [options] Override http request option.
|
|
452
|
+
* @throws {RequiredError}
|
|
453
|
+
*/
|
|
454
|
+
indexOne: async (vocabularyId, options = {}) => {
|
|
455
|
+
// verify required parameter 'vocabularyId' is not null or undefined
|
|
456
|
+
(0, common_1.assertParamExists)('indexOne', 'vocabularyId', vocabularyId);
|
|
457
|
+
const localVarPath = `/adminApi/solr/index/{vocabularyId}`
|
|
458
|
+
.replace(`{${"vocabularyId"}}`, encodeURIComponent(String(vocabularyId)));
|
|
459
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
460
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
461
|
+
let baseOptions;
|
|
462
|
+
if (configuration) {
|
|
463
|
+
baseOptions = configuration.baseOptions;
|
|
464
|
+
}
|
|
465
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
466
|
+
const localVarHeaderParameter = {};
|
|
467
|
+
const localVarQueryParameter = {};
|
|
468
|
+
// authentication basicAuth required
|
|
469
|
+
// http basic authentication required
|
|
470
|
+
(0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
|
|
471
|
+
// authentication apiKeyAuth required
|
|
472
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "ands_authentication", configuration);
|
|
473
|
+
localVarHeaderParameter['Accept'] = 'application/xml,application/json';
|
|
474
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
475
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
476
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
477
|
+
return {
|
|
478
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
479
|
+
options: localVarRequestOptions,
|
|
480
|
+
};
|
|
481
|
+
},
|
|
482
|
+
/**
|
|
483
|
+
* This method is only available to administrator users. The task must exist in the database. There must be a current instance of the vocabulary and version.
|
|
484
|
+
* @summary Run a task.
|
|
485
|
+
* @param {number} taskId The ID of the task to run.
|
|
486
|
+
* @param {*} [options] Override http request option.
|
|
487
|
+
* @throws {RequiredError}
|
|
488
|
+
*/
|
|
489
|
+
runTask: async (taskId, options = {}) => {
|
|
490
|
+
// verify required parameter 'taskId' is not null or undefined
|
|
491
|
+
(0, common_1.assertParamExists)('runTask', 'taskId', taskId);
|
|
492
|
+
const localVarPath = `/adminApi/workflow/tasks/{taskId}`
|
|
493
|
+
.replace(`{${"taskId"}}`, encodeURIComponent(String(taskId)));
|
|
494
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
495
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
496
|
+
let baseOptions;
|
|
497
|
+
if (configuration) {
|
|
498
|
+
baseOptions = configuration.baseOptions;
|
|
499
|
+
}
|
|
500
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
|
|
501
|
+
const localVarHeaderParameter = {};
|
|
502
|
+
const localVarQueryParameter = {};
|
|
503
|
+
// authentication basicAuth required
|
|
504
|
+
// http basic authentication required
|
|
505
|
+
(0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
|
|
506
|
+
// authentication apiKeyAuth required
|
|
507
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "ands_authentication", configuration);
|
|
508
|
+
localVarHeaderParameter['Accept'] = 'application/xml,application/json';
|
|
509
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
510
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
511
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
512
|
+
return {
|
|
513
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
514
|
+
options: localVarRequestOptions,
|
|
515
|
+
};
|
|
516
|
+
},
|
|
517
|
+
/**
|
|
518
|
+
* This method is only available to administrator users. The tasks must exist in the database. There must be a current instance of the vocabularies and versions.
|
|
519
|
+
* @summary Run a set of tasks for one vocabulary.
|
|
520
|
+
* @param {Array<number>} taskId The IDs of the tasks to run.
|
|
521
|
+
* @param {*} [options] Override http request option.
|
|
522
|
+
* @throws {RequiredError}
|
|
523
|
+
*/
|
|
524
|
+
runTaskSet: async (taskId, options = {}) => {
|
|
525
|
+
// verify required parameter 'taskId' is not null or undefined
|
|
526
|
+
(0, common_1.assertParamExists)('runTaskSet', 'taskId', taskId);
|
|
527
|
+
const localVarPath = `/adminApi/workflow/taskSet`;
|
|
528
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
529
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
530
|
+
let baseOptions;
|
|
531
|
+
if (configuration) {
|
|
532
|
+
baseOptions = configuration.baseOptions;
|
|
533
|
+
}
|
|
534
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
|
|
535
|
+
const localVarHeaderParameter = {};
|
|
536
|
+
const localVarQueryParameter = {};
|
|
537
|
+
// authentication basicAuth required
|
|
538
|
+
// http basic authentication required
|
|
539
|
+
(0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
|
|
540
|
+
// authentication apiKeyAuth required
|
|
541
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "ands_authentication", configuration);
|
|
542
|
+
if (taskId) {
|
|
543
|
+
localVarQueryParameter['taskId'] = taskId;
|
|
544
|
+
}
|
|
545
|
+
localVarHeaderParameter['Accept'] = 'application/xml,application/json';
|
|
546
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
547
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
548
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
549
|
+
return {
|
|
550
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
551
|
+
options: localVarRequestOptions,
|
|
552
|
+
};
|
|
553
|
+
},
|
|
554
|
+
};
|
|
555
|
+
};
|
|
556
|
+
exports.AdminApiAxiosParamCreator = AdminApiAxiosParamCreator;
|
|
557
|
+
/**
|
|
558
|
+
* AdminApi - functional programming interface
|
|
559
|
+
*/
|
|
560
|
+
const AdminApiFp = function (configuration) {
|
|
561
|
+
const localVarAxiosParamCreator = (0, exports.AdminApiAxiosParamCreator)(configuration);
|
|
562
|
+
return {
|
|
563
|
+
/**
|
|
564
|
+
* This method is only available to administrator users.
|
|
565
|
+
* @summary Backup all PoolParty projects.
|
|
566
|
+
* @param {*} [options] Override http request option.
|
|
567
|
+
* @throws {RequiredError}
|
|
568
|
+
*/
|
|
569
|
+
async backupAllPoolPartyProjects(options) {
|
|
570
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.backupAllPoolPartyProjects(options);
|
|
571
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
572
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['AdminApi.backupAllPoolPartyProjects']?.[localVarOperationServerIndex]?.url;
|
|
573
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
574
|
+
},
|
|
575
|
+
/**
|
|
576
|
+
* This method is only available to administrator users.
|
|
577
|
+
* @summary Backup one PoolParty project.
|
|
578
|
+
* @param {string} projectId
|
|
579
|
+
* @param {*} [options] Override http request option.
|
|
580
|
+
* @throws {RequiredError}
|
|
581
|
+
*/
|
|
582
|
+
async backupPoolPartyProject(projectId, options) {
|
|
583
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.backupPoolPartyProject(projectId, options);
|
|
584
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
585
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['AdminApi.backupPoolPartyProject']?.[localVarOperationServerIndex]?.url;
|
|
586
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
587
|
+
},
|
|
588
|
+
/**
|
|
589
|
+
* This method is only available to administrator users.
|
|
590
|
+
* @summary Force a soft commit of pending changes to the Solr collections.
|
|
591
|
+
* @param {*} [options] Override http request option.
|
|
592
|
+
* @throws {RequiredError}
|
|
593
|
+
*/
|
|
594
|
+
async commitSolr(options) {
|
|
595
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.commitSolr(options);
|
|
596
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
597
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['AdminApi.commitSolr']?.[localVarOperationServerIndex]?.url;
|
|
598
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
599
|
+
},
|
|
600
|
+
/**
|
|
601
|
+
* This method is only available to administrator users.
|
|
602
|
+
* @summary Generate email notifications.
|
|
603
|
+
* @param {string} [startDate] Start date/time of registry events to consider. Values are specified in UTC: required format YYYY-MM-DDTHH:MM:SS, e.g., 2017-10-26T13:00:00. If not specified, defaults to a week before the current date/time, and endDate is taken as the current date/time (irrespective of any value given for endDate).
|
|
604
|
+
* @param {string} [endDate] End date/time of registry events to consider. Values are specified in UTC: required format YYYY-MM-DDTHH:MM:SS, e.g., 2017-11-26T00:00:00. If not specified, defaults to the current date/time.
|
|
605
|
+
* @param {*} [options] Override http request option.
|
|
606
|
+
* @throws {RequiredError}
|
|
607
|
+
*/
|
|
608
|
+
async generateNotificationEmails(startDate, endDate, options) {
|
|
609
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.generateNotificationEmails(startDate, endDate, options);
|
|
610
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
611
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['AdminApi.generateNotificationEmails']?.[localVarOperationServerIndex]?.url;
|
|
612
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
613
|
+
},
|
|
614
|
+
/**
|
|
615
|
+
* This method is only available to administrator users.
|
|
616
|
+
* @summary Get a task.
|
|
617
|
+
* @param {number} taskId The ID of the task to get.
|
|
618
|
+
* @param {*} [options] Override http request option.
|
|
619
|
+
* @throws {RequiredError}
|
|
620
|
+
*/
|
|
621
|
+
async getTask(taskId, options) {
|
|
622
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getTask(taskId, options);
|
|
623
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
624
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['AdminApi.getTask']?.[localVarOperationServerIndex]?.url;
|
|
625
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
626
|
+
},
|
|
627
|
+
/**
|
|
628
|
+
* This method is only available to administrator users.
|
|
629
|
+
* @summary Get all the current (published and deprecated) and draft vocabularies.
|
|
630
|
+
* @param {*} [options] Override http request option.
|
|
631
|
+
* @throws {RequiredError}
|
|
632
|
+
*/
|
|
633
|
+
async getVocabulariesIncludingDraft(options) {
|
|
634
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getVocabulariesIncludingDraft(options);
|
|
635
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
636
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['AdminApi.getVocabulariesIncludingDraft']?.[localVarOperationServerIndex]?.url;
|
|
637
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
638
|
+
},
|
|
639
|
+
/**
|
|
640
|
+
* This method is only available to administrator users.
|
|
641
|
+
* @summary Force Solr indexing of all vocabularies.
|
|
642
|
+
* @param {*} [options] Override http request option.
|
|
643
|
+
* @throws {RequiredError}
|
|
644
|
+
*/
|
|
645
|
+
async indexAll(options) {
|
|
646
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.indexAll(options);
|
|
647
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
648
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['AdminApi.indexAll']?.[localVarOperationServerIndex]?.url;
|
|
649
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
650
|
+
},
|
|
651
|
+
/**
|
|
652
|
+
* This method is only available to administrator users.
|
|
653
|
+
* @summary Force Solr indexing of one vocabulary.
|
|
654
|
+
* @param {number} vocabularyId
|
|
655
|
+
* @param {*} [options] Override http request option.
|
|
656
|
+
* @throws {RequiredError}
|
|
657
|
+
*/
|
|
658
|
+
async indexOne(vocabularyId, options) {
|
|
659
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.indexOne(vocabularyId, options);
|
|
660
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
661
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['AdminApi.indexOne']?.[localVarOperationServerIndex]?.url;
|
|
662
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
663
|
+
},
|
|
664
|
+
/**
|
|
665
|
+
* This method is only available to administrator users. The task must exist in the database. There must be a current instance of the vocabulary and version.
|
|
666
|
+
* @summary Run a task.
|
|
667
|
+
* @param {number} taskId The ID of the task to run.
|
|
668
|
+
* @param {*} [options] Override http request option.
|
|
669
|
+
* @throws {RequiredError}
|
|
670
|
+
*/
|
|
671
|
+
async runTask(taskId, options) {
|
|
672
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.runTask(taskId, options);
|
|
673
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
674
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['AdminApi.runTask']?.[localVarOperationServerIndex]?.url;
|
|
675
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
676
|
+
},
|
|
677
|
+
/**
|
|
678
|
+
* This method is only available to administrator users. The tasks must exist in the database. There must be a current instance of the vocabularies and versions.
|
|
679
|
+
* @summary Run a set of tasks for one vocabulary.
|
|
680
|
+
* @param {Array<number>} taskId The IDs of the tasks to run.
|
|
681
|
+
* @param {*} [options] Override http request option.
|
|
682
|
+
* @throws {RequiredError}
|
|
683
|
+
*/
|
|
684
|
+
async runTaskSet(taskId, options) {
|
|
685
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.runTaskSet(taskId, options);
|
|
686
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
687
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['AdminApi.runTaskSet']?.[localVarOperationServerIndex]?.url;
|
|
688
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
689
|
+
},
|
|
690
|
+
};
|
|
691
|
+
};
|
|
692
|
+
exports.AdminApiFp = AdminApiFp;
|
|
693
|
+
/**
|
|
694
|
+
* AdminApi - factory interface
|
|
695
|
+
*/
|
|
696
|
+
const AdminApiFactory = function (configuration, basePath, axios) {
|
|
697
|
+
const localVarFp = (0, exports.AdminApiFp)(configuration);
|
|
698
|
+
return {
|
|
699
|
+
/**
|
|
700
|
+
* This method is only available to administrator users.
|
|
701
|
+
* @summary Backup all PoolParty projects.
|
|
702
|
+
* @param {*} [options] Override http request option.
|
|
703
|
+
* @throws {RequiredError}
|
|
704
|
+
*/
|
|
705
|
+
backupAllPoolPartyProjects(options) {
|
|
706
|
+
return localVarFp.backupAllPoolPartyProjects(options).then((request) => request(axios, basePath));
|
|
707
|
+
},
|
|
708
|
+
/**
|
|
709
|
+
* This method is only available to administrator users.
|
|
710
|
+
* @summary Backup one PoolParty project.
|
|
711
|
+
* @param {string} projectId
|
|
712
|
+
* @param {*} [options] Override http request option.
|
|
713
|
+
* @throws {RequiredError}
|
|
714
|
+
*/
|
|
715
|
+
backupPoolPartyProject(projectId, options) {
|
|
716
|
+
return localVarFp.backupPoolPartyProject(projectId, options).then((request) => request(axios, basePath));
|
|
717
|
+
},
|
|
718
|
+
/**
|
|
719
|
+
* This method is only available to administrator users.
|
|
720
|
+
* @summary Force a soft commit of pending changes to the Solr collections.
|
|
721
|
+
* @param {*} [options] Override http request option.
|
|
722
|
+
* @throws {RequiredError}
|
|
723
|
+
*/
|
|
724
|
+
commitSolr(options) {
|
|
725
|
+
return localVarFp.commitSolr(options).then((request) => request(axios, basePath));
|
|
726
|
+
},
|
|
727
|
+
/**
|
|
728
|
+
* This method is only available to administrator users.
|
|
729
|
+
* @summary Generate email notifications.
|
|
730
|
+
* @param {string} [startDate] Start date/time of registry events to consider. Values are specified in UTC: required format YYYY-MM-DDTHH:MM:SS, e.g., 2017-10-26T13:00:00. If not specified, defaults to a week before the current date/time, and endDate is taken as the current date/time (irrespective of any value given for endDate).
|
|
731
|
+
* @param {string} [endDate] End date/time of registry events to consider. Values are specified in UTC: required format YYYY-MM-DDTHH:MM:SS, e.g., 2017-11-26T00:00:00. If not specified, defaults to the current date/time.
|
|
732
|
+
* @param {*} [options] Override http request option.
|
|
733
|
+
* @throws {RequiredError}
|
|
734
|
+
*/
|
|
735
|
+
generateNotificationEmails(startDate, endDate, options) {
|
|
736
|
+
return localVarFp.generateNotificationEmails(startDate, endDate, options).then((request) => request(axios, basePath));
|
|
737
|
+
},
|
|
738
|
+
/**
|
|
739
|
+
* This method is only available to administrator users.
|
|
740
|
+
* @summary Get a task.
|
|
741
|
+
* @param {number} taskId The ID of the task to get.
|
|
742
|
+
* @param {*} [options] Override http request option.
|
|
743
|
+
* @throws {RequiredError}
|
|
744
|
+
*/
|
|
745
|
+
getTask(taskId, options) {
|
|
746
|
+
return localVarFp.getTask(taskId, options).then((request) => request(axios, basePath));
|
|
747
|
+
},
|
|
748
|
+
/**
|
|
749
|
+
* This method is only available to administrator users.
|
|
750
|
+
* @summary Get all the current (published and deprecated) and draft vocabularies.
|
|
751
|
+
* @param {*} [options] Override http request option.
|
|
752
|
+
* @throws {RequiredError}
|
|
753
|
+
*/
|
|
754
|
+
getVocabulariesIncludingDraft(options) {
|
|
755
|
+
return localVarFp.getVocabulariesIncludingDraft(options).then((request) => request(axios, basePath));
|
|
756
|
+
},
|
|
757
|
+
/**
|
|
758
|
+
* This method is only available to administrator users.
|
|
759
|
+
* @summary Force Solr indexing of all vocabularies.
|
|
760
|
+
* @param {*} [options] Override http request option.
|
|
761
|
+
* @throws {RequiredError}
|
|
762
|
+
*/
|
|
763
|
+
indexAll(options) {
|
|
764
|
+
return localVarFp.indexAll(options).then((request) => request(axios, basePath));
|
|
765
|
+
},
|
|
766
|
+
/**
|
|
767
|
+
* This method is only available to administrator users.
|
|
768
|
+
* @summary Force Solr indexing of one vocabulary.
|
|
769
|
+
* @param {number} vocabularyId
|
|
770
|
+
* @param {*} [options] Override http request option.
|
|
771
|
+
* @throws {RequiredError}
|
|
772
|
+
*/
|
|
773
|
+
indexOne(vocabularyId, options) {
|
|
774
|
+
return localVarFp.indexOne(vocabularyId, options).then((request) => request(axios, basePath));
|
|
775
|
+
},
|
|
776
|
+
/**
|
|
777
|
+
* This method is only available to administrator users. The task must exist in the database. There must be a current instance of the vocabulary and version.
|
|
778
|
+
* @summary Run a task.
|
|
779
|
+
* @param {number} taskId The ID of the task to run.
|
|
780
|
+
* @param {*} [options] Override http request option.
|
|
781
|
+
* @throws {RequiredError}
|
|
782
|
+
*/
|
|
783
|
+
runTask(taskId, options) {
|
|
784
|
+
return localVarFp.runTask(taskId, options).then((request) => request(axios, basePath));
|
|
785
|
+
},
|
|
786
|
+
/**
|
|
787
|
+
* This method is only available to administrator users. The tasks must exist in the database. There must be a current instance of the vocabularies and versions.
|
|
788
|
+
* @summary Run a set of tasks for one vocabulary.
|
|
789
|
+
* @param {Array<number>} taskId The IDs of the tasks to run.
|
|
790
|
+
* @param {*} [options] Override http request option.
|
|
791
|
+
* @throws {RequiredError}
|
|
792
|
+
*/
|
|
793
|
+
runTaskSet(taskId, options) {
|
|
794
|
+
return localVarFp.runTaskSet(taskId, options).then((request) => request(axios, basePath));
|
|
795
|
+
},
|
|
796
|
+
};
|
|
797
|
+
};
|
|
798
|
+
exports.AdminApiFactory = AdminApiFactory;
|
|
799
|
+
/**
|
|
800
|
+
* AdminApi - object-oriented interface
|
|
801
|
+
*/
|
|
802
|
+
class AdminApi extends base_1.BaseAPI {
|
|
803
|
+
/**
|
|
804
|
+
* This method is only available to administrator users.
|
|
805
|
+
* @summary Backup all PoolParty projects.
|
|
806
|
+
* @param {*} [options] Override http request option.
|
|
807
|
+
* @throws {RequiredError}
|
|
808
|
+
*/
|
|
809
|
+
backupAllPoolPartyProjects(options) {
|
|
810
|
+
return (0, exports.AdminApiFp)(this.configuration).backupAllPoolPartyProjects(options).then((request) => request(this.axios, this.basePath));
|
|
811
|
+
}
|
|
812
|
+
/**
|
|
813
|
+
* This method is only available to administrator users.
|
|
814
|
+
* @summary Backup one PoolParty project.
|
|
815
|
+
* @param {string} projectId
|
|
816
|
+
* @param {*} [options] Override http request option.
|
|
817
|
+
* @throws {RequiredError}
|
|
818
|
+
*/
|
|
819
|
+
backupPoolPartyProject(projectId, options) {
|
|
820
|
+
return (0, exports.AdminApiFp)(this.configuration).backupPoolPartyProject(projectId, options).then((request) => request(this.axios, this.basePath));
|
|
821
|
+
}
|
|
822
|
+
/**
|
|
823
|
+
* This method is only available to administrator users.
|
|
824
|
+
* @summary Force a soft commit of pending changes to the Solr collections.
|
|
825
|
+
* @param {*} [options] Override http request option.
|
|
826
|
+
* @throws {RequiredError}
|
|
827
|
+
*/
|
|
828
|
+
commitSolr(options) {
|
|
829
|
+
return (0, exports.AdminApiFp)(this.configuration).commitSolr(options).then((request) => request(this.axios, this.basePath));
|
|
830
|
+
}
|
|
831
|
+
/**
|
|
832
|
+
* This method is only available to administrator users.
|
|
833
|
+
* @summary Generate email notifications.
|
|
834
|
+
* @param {string} [startDate] Start date/time of registry events to consider. Values are specified in UTC: required format YYYY-MM-DDTHH:MM:SS, e.g., 2017-10-26T13:00:00. If not specified, defaults to a week before the current date/time, and endDate is taken as the current date/time (irrespective of any value given for endDate).
|
|
835
|
+
* @param {string} [endDate] End date/time of registry events to consider. Values are specified in UTC: required format YYYY-MM-DDTHH:MM:SS, e.g., 2017-11-26T00:00:00. If not specified, defaults to the current date/time.
|
|
836
|
+
* @param {*} [options] Override http request option.
|
|
837
|
+
* @throws {RequiredError}
|
|
838
|
+
*/
|
|
839
|
+
generateNotificationEmails(startDate, endDate, options) {
|
|
840
|
+
return (0, exports.AdminApiFp)(this.configuration).generateNotificationEmails(startDate, endDate, options).then((request) => request(this.axios, this.basePath));
|
|
841
|
+
}
|
|
842
|
+
/**
|
|
843
|
+
* This method is only available to administrator users.
|
|
844
|
+
* @summary Get a task.
|
|
845
|
+
* @param {number} taskId The ID of the task to get.
|
|
846
|
+
* @param {*} [options] Override http request option.
|
|
847
|
+
* @throws {RequiredError}
|
|
848
|
+
*/
|
|
849
|
+
getTask(taskId, options) {
|
|
850
|
+
return (0, exports.AdminApiFp)(this.configuration).getTask(taskId, options).then((request) => request(this.axios, this.basePath));
|
|
851
|
+
}
|
|
852
|
+
/**
|
|
853
|
+
* This method is only available to administrator users.
|
|
854
|
+
* @summary Get all the current (published and deprecated) and draft vocabularies.
|
|
855
|
+
* @param {*} [options] Override http request option.
|
|
856
|
+
* @throws {RequiredError}
|
|
857
|
+
*/
|
|
858
|
+
getVocabulariesIncludingDraft(options) {
|
|
859
|
+
return (0, exports.AdminApiFp)(this.configuration).getVocabulariesIncludingDraft(options).then((request) => request(this.axios, this.basePath));
|
|
860
|
+
}
|
|
861
|
+
/**
|
|
862
|
+
* This method is only available to administrator users.
|
|
863
|
+
* @summary Force Solr indexing of all vocabularies.
|
|
864
|
+
* @param {*} [options] Override http request option.
|
|
865
|
+
* @throws {RequiredError}
|
|
866
|
+
*/
|
|
867
|
+
indexAll(options) {
|
|
868
|
+
return (0, exports.AdminApiFp)(this.configuration).indexAll(options).then((request) => request(this.axios, this.basePath));
|
|
869
|
+
}
|
|
870
|
+
/**
|
|
871
|
+
* This method is only available to administrator users.
|
|
872
|
+
* @summary Force Solr indexing of one vocabulary.
|
|
873
|
+
* @param {number} vocabularyId
|
|
874
|
+
* @param {*} [options] Override http request option.
|
|
875
|
+
* @throws {RequiredError}
|
|
876
|
+
*/
|
|
877
|
+
indexOne(vocabularyId, options) {
|
|
878
|
+
return (0, exports.AdminApiFp)(this.configuration).indexOne(vocabularyId, options).then((request) => request(this.axios, this.basePath));
|
|
879
|
+
}
|
|
880
|
+
/**
|
|
881
|
+
* This method is only available to administrator users. The task must exist in the database. There must be a current instance of the vocabulary and version.
|
|
882
|
+
* @summary Run a task.
|
|
883
|
+
* @param {number} taskId The ID of the task to run.
|
|
884
|
+
* @param {*} [options] Override http request option.
|
|
885
|
+
* @throws {RequiredError}
|
|
886
|
+
*/
|
|
887
|
+
runTask(taskId, options) {
|
|
888
|
+
return (0, exports.AdminApiFp)(this.configuration).runTask(taskId, options).then((request) => request(this.axios, this.basePath));
|
|
889
|
+
}
|
|
890
|
+
/**
|
|
891
|
+
* This method is only available to administrator users. The tasks must exist in the database. There must be a current instance of the vocabularies and versions.
|
|
892
|
+
* @summary Run a set of tasks for one vocabulary.
|
|
893
|
+
* @param {Array<number>} taskId The IDs of the tasks to run.
|
|
894
|
+
* @param {*} [options] Override http request option.
|
|
895
|
+
* @throws {RequiredError}
|
|
896
|
+
*/
|
|
897
|
+
runTaskSet(taskId, options) {
|
|
898
|
+
return (0, exports.AdminApiFp)(this.configuration).runTaskSet(taskId, options).then((request) => request(this.axios, this.basePath));
|
|
899
|
+
}
|
|
900
|
+
}
|
|
901
|
+
exports.AdminApi = AdminApi;
|
|
902
|
+
/**
|
|
903
|
+
* ResourcesApi - axios parameter creator
|
|
904
|
+
*/
|
|
905
|
+
const ResourcesApiAxiosParamCreator = function (configuration) {
|
|
906
|
+
return {
|
|
907
|
+
/**
|
|
908
|
+
*
|
|
909
|
+
* @summary Create a new related entity.
|
|
910
|
+
* @param {RelatedEntity} body The related entity to be added.
|
|
911
|
+
* @param {*} [options] Override http request option.
|
|
912
|
+
* @throws {RequiredError}
|
|
913
|
+
*/
|
|
914
|
+
createRelatedEntity: async (body, options = {}) => {
|
|
915
|
+
// verify required parameter 'body' is not null or undefined
|
|
916
|
+
(0, common_1.assertParamExists)('createRelatedEntity', 'body', body);
|
|
917
|
+
const localVarPath = `/api/resource/relatedEntities`;
|
|
918
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
919
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
920
|
+
let baseOptions;
|
|
921
|
+
if (configuration) {
|
|
922
|
+
baseOptions = configuration.baseOptions;
|
|
923
|
+
}
|
|
924
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
925
|
+
const localVarHeaderParameter = {};
|
|
926
|
+
const localVarQueryParameter = {};
|
|
927
|
+
// authentication basicAuth required
|
|
928
|
+
// http basic authentication required
|
|
929
|
+
(0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
|
|
930
|
+
// authentication apiKeyAuth required
|
|
931
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "ands_authentication", configuration);
|
|
932
|
+
localVarHeaderParameter['Content-Type'] = 'application/xml';
|
|
933
|
+
localVarHeaderParameter['Accept'] = 'application/xml,application/json';
|
|
934
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
935
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
936
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
937
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
|
|
938
|
+
return {
|
|
939
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
940
|
+
options: localVarRequestOptions,
|
|
941
|
+
};
|
|
942
|
+
},
|
|
943
|
+
/**
|
|
944
|
+
* The response contains the ID of the resulting upload in the integerValue field, and the sanitized filename in the stringValue field.
|
|
945
|
+
* @summary Upload a file.
|
|
946
|
+
* @param {string} owner The owner of the upload
|
|
947
|
+
* @param {string} format The type of the upload
|
|
948
|
+
* @param {File} file The file to upload
|
|
949
|
+
* @param {*} [options] Override http request option.
|
|
950
|
+
* @throws {RequiredError}
|
|
951
|
+
*/
|
|
952
|
+
createUpload: async (owner, format, file, options = {}) => {
|
|
953
|
+
// verify required parameter 'owner' is not null or undefined
|
|
954
|
+
(0, common_1.assertParamExists)('createUpload', 'owner', owner);
|
|
955
|
+
// verify required parameter 'format' is not null or undefined
|
|
956
|
+
(0, common_1.assertParamExists)('createUpload', 'format', format);
|
|
957
|
+
// verify required parameter 'file' is not null or undefined
|
|
958
|
+
(0, common_1.assertParamExists)('createUpload', 'file', file);
|
|
959
|
+
const localVarPath = `/api/resource/uploads`;
|
|
960
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
961
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
962
|
+
let baseOptions;
|
|
963
|
+
if (configuration) {
|
|
964
|
+
baseOptions = configuration.baseOptions;
|
|
965
|
+
}
|
|
966
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
967
|
+
const localVarHeaderParameter = {};
|
|
968
|
+
const localVarQueryParameter = {};
|
|
969
|
+
const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
|
|
970
|
+
// authentication basicAuth required
|
|
971
|
+
// http basic authentication required
|
|
972
|
+
(0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
|
|
973
|
+
// authentication apiKeyAuth required
|
|
974
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "ands_authentication", configuration);
|
|
975
|
+
if (owner !== undefined) {
|
|
976
|
+
localVarQueryParameter['owner'] = owner;
|
|
977
|
+
}
|
|
978
|
+
if (format !== undefined) {
|
|
979
|
+
localVarQueryParameter['format'] = format;
|
|
980
|
+
}
|
|
981
|
+
if (file !== undefined) {
|
|
982
|
+
localVarFormParams.append('file', file);
|
|
983
|
+
}
|
|
984
|
+
localVarHeaderParameter['Accept'] = 'application/xml,application/json';
|
|
985
|
+
const formHeaders = localVarFormParams.getHeaders?.();
|
|
986
|
+
if (formHeaders) {
|
|
987
|
+
Object.assign(localVarHeaderParameter, formHeaders);
|
|
988
|
+
}
|
|
989
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
990
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
991
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
992
|
+
localVarRequestOptions.data = localVarFormParams;
|
|
993
|
+
return {
|
|
994
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
995
|
+
options: localVarRequestOptions,
|
|
996
|
+
};
|
|
997
|
+
},
|
|
998
|
+
/**
|
|
999
|
+
*
|
|
1000
|
+
* @summary Create a new vocabulary.
|
|
1001
|
+
* @param {Vocabulary} body The vocabulary to be added.
|
|
1002
|
+
* @param {*} [options] Override http request option.
|
|
1003
|
+
* @throws {RequiredError}
|
|
1004
|
+
*/
|
|
1005
|
+
createVocabulary: async (body, options = {}) => {
|
|
1006
|
+
// verify required parameter 'body' is not null or undefined
|
|
1007
|
+
(0, common_1.assertParamExists)('createVocabulary', 'body', body);
|
|
1008
|
+
const localVarPath = `/api/resource/vocabularies`;
|
|
1009
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1010
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1011
|
+
let baseOptions;
|
|
1012
|
+
if (configuration) {
|
|
1013
|
+
baseOptions = configuration.baseOptions;
|
|
1014
|
+
}
|
|
1015
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
1016
|
+
const localVarHeaderParameter = {};
|
|
1017
|
+
const localVarQueryParameter = {};
|
|
1018
|
+
// authentication basicAuth required
|
|
1019
|
+
// http basic authentication required
|
|
1020
|
+
(0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
|
|
1021
|
+
// authentication apiKeyAuth required
|
|
1022
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "ands_authentication", configuration);
|
|
1023
|
+
localVarHeaderParameter['Content-Type'] = 'application/xml';
|
|
1024
|
+
localVarHeaderParameter['Accept'] = 'application/xml,application/json';
|
|
1025
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1026
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1027
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1028
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
|
|
1029
|
+
return {
|
|
1030
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1031
|
+
options: localVarRequestOptions,
|
|
1032
|
+
};
|
|
1033
|
+
},
|
|
1034
|
+
/**
|
|
1035
|
+
*
|
|
1036
|
+
* @summary Delete a related entity.
|
|
1037
|
+
* @param {number} relatedEntityId The ID of the related entity to be deleted.
|
|
1038
|
+
* @param {*} [options] Override http request option.
|
|
1039
|
+
* @throws {RequiredError}
|
|
1040
|
+
*/
|
|
1041
|
+
deleteRelatedEntity: async (relatedEntityId, options = {}) => {
|
|
1042
|
+
// verify required parameter 'relatedEntityId' is not null or undefined
|
|
1043
|
+
(0, common_1.assertParamExists)('deleteRelatedEntity', 'relatedEntityId', relatedEntityId);
|
|
1044
|
+
const localVarPath = `/api/resource/relatedEntities/{relatedEntityId}`
|
|
1045
|
+
.replace(`{${"relatedEntityId"}}`, encodeURIComponent(String(relatedEntityId)));
|
|
1046
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1047
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1048
|
+
let baseOptions;
|
|
1049
|
+
if (configuration) {
|
|
1050
|
+
baseOptions = configuration.baseOptions;
|
|
1051
|
+
}
|
|
1052
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
|
|
1053
|
+
const localVarHeaderParameter = {};
|
|
1054
|
+
const localVarQueryParameter = {};
|
|
1055
|
+
// authentication basicAuth required
|
|
1056
|
+
// http basic authentication required
|
|
1057
|
+
(0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
|
|
1058
|
+
// authentication apiKeyAuth required
|
|
1059
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "ands_authentication", configuration);
|
|
1060
|
+
localVarHeaderParameter['Accept'] = 'application/xml,application/json';
|
|
1061
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1062
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1063
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1064
|
+
return {
|
|
1065
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1066
|
+
options: localVarRequestOptions,
|
|
1067
|
+
};
|
|
1068
|
+
},
|
|
1069
|
+
/**
|
|
1070
|
+
*
|
|
1071
|
+
* @summary Delete a vocabulary.
|
|
1072
|
+
* @param {number} vocabularyId The ID of the vocabulary to be deleted.
|
|
1073
|
+
* @param {boolean} [deleteCurrent] Whether or not to delete the current version.
|
|
1074
|
+
* @param {boolean} [deleteDraft] Whether or not to delete the draft version.
|
|
1075
|
+
* @param {*} [options] Override http request option.
|
|
1076
|
+
* @throws {RequiredError}
|
|
1077
|
+
*/
|
|
1078
|
+
deleteVocabulary: async (vocabularyId, deleteCurrent, deleteDraft, options = {}) => {
|
|
1079
|
+
// verify required parameter 'vocabularyId' is not null or undefined
|
|
1080
|
+
(0, common_1.assertParamExists)('deleteVocabulary', 'vocabularyId', vocabularyId);
|
|
1081
|
+
const localVarPath = `/api/resource/vocabularies/{vocabularyId}`
|
|
1082
|
+
.replace(`{${"vocabularyId"}}`, encodeURIComponent(String(vocabularyId)));
|
|
1083
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1084
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1085
|
+
let baseOptions;
|
|
1086
|
+
if (configuration) {
|
|
1087
|
+
baseOptions = configuration.baseOptions;
|
|
1088
|
+
}
|
|
1089
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
|
|
1090
|
+
const localVarHeaderParameter = {};
|
|
1091
|
+
const localVarQueryParameter = {};
|
|
1092
|
+
// authentication basicAuth required
|
|
1093
|
+
// http basic authentication required
|
|
1094
|
+
(0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
|
|
1095
|
+
// authentication apiKeyAuth required
|
|
1096
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "ands_authentication", configuration);
|
|
1097
|
+
if (deleteCurrent !== undefined) {
|
|
1098
|
+
localVarQueryParameter['deleteCurrent'] = deleteCurrent;
|
|
1099
|
+
}
|
|
1100
|
+
if (deleteDraft !== undefined) {
|
|
1101
|
+
localVarQueryParameter['deleteDraft'] = deleteDraft;
|
|
1102
|
+
}
|
|
1103
|
+
localVarHeaderParameter['Accept'] = 'application/xml,application/json';
|
|
1104
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1105
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1106
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1107
|
+
return {
|
|
1108
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1109
|
+
options: localVarRequestOptions,
|
|
1110
|
+
};
|
|
1111
|
+
},
|
|
1112
|
+
/**
|
|
1113
|
+
* In this version of the download method, a download format is specified as a query parameter. The response will include a Content-Disposition header that specifies a full filename based on the underlying data; its extension may be different from the value of the format query parameter.
|
|
1114
|
+
* @summary Get a download.
|
|
1115
|
+
* @param {number} downloadId The Id of the download.
|
|
1116
|
+
* @param {string} [format] The format of the download. This must be a filename extension without the period, e.g., \"rdf\".
|
|
1117
|
+
* @param {*} [options] Override http request option.
|
|
1118
|
+
* @throws {RequiredError}
|
|
1119
|
+
*/
|
|
1120
|
+
download: async (downloadId, format, options = {}) => {
|
|
1121
|
+
// verify required parameter 'downloadId' is not null or undefined
|
|
1122
|
+
(0, common_1.assertParamExists)('download', 'downloadId', downloadId);
|
|
1123
|
+
const localVarPath = `/api/resource/downloads/{downloadId}`
|
|
1124
|
+
.replace(`{${"downloadId"}}`, encodeURIComponent(String(downloadId)));
|
|
1125
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1126
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1127
|
+
let baseOptions;
|
|
1128
|
+
if (configuration) {
|
|
1129
|
+
baseOptions = configuration.baseOptions;
|
|
1130
|
+
}
|
|
1131
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
1132
|
+
const localVarHeaderParameter = {};
|
|
1133
|
+
const localVarQueryParameter = {};
|
|
1134
|
+
if (format !== undefined) {
|
|
1135
|
+
localVarQueryParameter['format'] = format;
|
|
1136
|
+
}
|
|
1137
|
+
localVarHeaderParameter['Accept'] = '*/*';
|
|
1138
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1139
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1140
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1141
|
+
return {
|
|
1142
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1143
|
+
options: localVarRequestOptions,
|
|
1144
|
+
};
|
|
1145
|
+
},
|
|
1146
|
+
/**
|
|
1147
|
+
* In this version of the download method, the last component of the URL specifies a filename and an extension. The response will include a Content-Disposition header that specifies a filename and extension based on the underlying data; they may be different from the values specified.
|
|
1148
|
+
* @summary Get a download.
|
|
1149
|
+
* @param {number} downloadId The Id of the download.
|
|
1150
|
+
* @param {string} filename The filename of the download.
|
|
1151
|
+
* @param {string} extension The format of the download. This must be a filename extension without the period, e.g., \"rdf\".
|
|
1152
|
+
* @param {*} [options] Override http request option.
|
|
1153
|
+
* @throws {RequiredError}
|
|
1154
|
+
*/
|
|
1155
|
+
downloadWithFilename: async (downloadId, filename, extension, options = {}) => {
|
|
1156
|
+
// verify required parameter 'downloadId' is not null or undefined
|
|
1157
|
+
(0, common_1.assertParamExists)('downloadWithFilename', 'downloadId', downloadId);
|
|
1158
|
+
// verify required parameter 'filename' is not null or undefined
|
|
1159
|
+
(0, common_1.assertParamExists)('downloadWithFilename', 'filename', filename);
|
|
1160
|
+
// verify required parameter 'extension' is not null or undefined
|
|
1161
|
+
(0, common_1.assertParamExists)('downloadWithFilename', 'extension', extension);
|
|
1162
|
+
const localVarPath = `/api/resource/downloads/{downloadId}/{filename}.{extension}`
|
|
1163
|
+
.replace(`{${"downloadId"}}`, encodeURIComponent(String(downloadId)))
|
|
1164
|
+
.replace(`{${"filename"}}`, encodeURIComponent(String(filename)))
|
|
1165
|
+
.replace(`{${"extension"}}`, encodeURIComponent(String(extension)));
|
|
1166
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1167
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1168
|
+
let baseOptions;
|
|
1169
|
+
if (configuration) {
|
|
1170
|
+
baseOptions = configuration.baseOptions;
|
|
1171
|
+
}
|
|
1172
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
1173
|
+
const localVarHeaderParameter = {};
|
|
1174
|
+
const localVarQueryParameter = {};
|
|
1175
|
+
localVarHeaderParameter['Accept'] = '*/*';
|
|
1176
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1177
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1178
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1179
|
+
return {
|
|
1180
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1181
|
+
options: localVarRequestOptions,
|
|
1182
|
+
};
|
|
1183
|
+
},
|
|
1184
|
+
/**
|
|
1185
|
+
*
|
|
1186
|
+
* @summary Get the current access points of a version, by its version id.
|
|
1187
|
+
* @param {number} versionId The ID of the version from which to get the current access points.
|
|
1188
|
+
* @param {*} [options] Override http request option.
|
|
1189
|
+
* @throws {RequiredError}
|
|
1190
|
+
*/
|
|
1191
|
+
getAccessPointsForVersionById: async (versionId, options = {}) => {
|
|
1192
|
+
// verify required parameter 'versionId' is not null or undefined
|
|
1193
|
+
(0, common_1.assertParamExists)('getAccessPointsForVersionById', 'versionId', versionId);
|
|
1194
|
+
const localVarPath = `/api/resource/versions/{versionId}/accessPoints`
|
|
1195
|
+
.replace(`{${"versionId"}}`, encodeURIComponent(String(versionId)));
|
|
1196
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1197
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1198
|
+
let baseOptions;
|
|
1199
|
+
if (configuration) {
|
|
1200
|
+
baseOptions = configuration.baseOptions;
|
|
1201
|
+
}
|
|
1202
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
1203
|
+
const localVarHeaderParameter = {};
|
|
1204
|
+
const localVarQueryParameter = {};
|
|
1205
|
+
localVarHeaderParameter['Accept'] = 'application/xml,application/json';
|
|
1206
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1207
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1208
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1209
|
+
return {
|
|
1210
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1211
|
+
options: localVarRequestOptions,
|
|
1212
|
+
};
|
|
1213
|
+
},
|
|
1214
|
+
/**
|
|
1215
|
+
* The result list contains one element for each vocabulary owned by the caller. The status attribute will be \"draft\" if there is only a draft instance of the vocabulary; in this case, hasDraft will be true. Otherwise, status will be either \"published\" or \"deprecated\", and hasDraft will be true if there is also a draft instance.
|
|
1216
|
+
* @summary Get a list of vocabularies owned by the caller.
|
|
1217
|
+
* @param {*} [options] Override http request option.
|
|
1218
|
+
* @throws {RequiredError}
|
|
1219
|
+
*/
|
|
1220
|
+
getOwnedVocabularies: async (options = {}) => {
|
|
1221
|
+
const localVarPath = `/api/resource/ownedVocabularies`;
|
|
1222
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1223
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1224
|
+
let baseOptions;
|
|
1225
|
+
if (configuration) {
|
|
1226
|
+
baseOptions = configuration.baseOptions;
|
|
1227
|
+
}
|
|
1228
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
1229
|
+
const localVarHeaderParameter = {};
|
|
1230
|
+
const localVarQueryParameter = {};
|
|
1231
|
+
// authentication basicAuth required
|
|
1232
|
+
// http basic authentication required
|
|
1233
|
+
(0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
|
|
1234
|
+
// authentication apiKeyAuth required
|
|
1235
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "ands_authentication", configuration);
|
|
1236
|
+
localVarHeaderParameter['Accept'] = 'application/xml,application/json';
|
|
1237
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1238
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1239
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1240
|
+
return {
|
|
1241
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1242
|
+
options: localVarRequestOptions,
|
|
1243
|
+
};
|
|
1244
|
+
},
|
|
1245
|
+
/**
|
|
1246
|
+
*
|
|
1247
|
+
* @summary Get all current related entities, optionally, filtered by related entity type. Results do not include related entity identifiers.
|
|
1248
|
+
* @param {GetRelatedEntitiesRelatedEntityTypeEnum} [relatedEntityType] The type of the related entities to get.
|
|
1249
|
+
* @param {*} [options] Override http request option.
|
|
1250
|
+
* @throws {RequiredError}
|
|
1251
|
+
*/
|
|
1252
|
+
getRelatedEntities: async (relatedEntityType, options = {}) => {
|
|
1253
|
+
const localVarPath = `/api/resource/relatedEntities`;
|
|
1254
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1255
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1256
|
+
let baseOptions;
|
|
1257
|
+
if (configuration) {
|
|
1258
|
+
baseOptions = configuration.baseOptions;
|
|
1259
|
+
}
|
|
1260
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
1261
|
+
const localVarHeaderParameter = {};
|
|
1262
|
+
const localVarQueryParameter = {};
|
|
1263
|
+
if (relatedEntityType !== undefined) {
|
|
1264
|
+
localVarQueryParameter['relatedEntityType'] = relatedEntityType;
|
|
1265
|
+
}
|
|
1266
|
+
localVarHeaderParameter['Accept'] = 'application/xml,application/json';
|
|
1267
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1268
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1269
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1270
|
+
return {
|
|
1271
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1272
|
+
options: localVarRequestOptions,
|
|
1273
|
+
};
|
|
1274
|
+
},
|
|
1275
|
+
/**
|
|
1276
|
+
*
|
|
1277
|
+
* @summary Get the current related entities of a vocabulary, by its vocabulary id.
|
|
1278
|
+
* @param {number} vocabularyId The ID of the vocabulary from which to get the current related entities.
|
|
1279
|
+
* @param {*} [options] Override http request option.
|
|
1280
|
+
* @throws {RequiredError}
|
|
1281
|
+
*/
|
|
1282
|
+
getRelatedEntitiesForVocabularyById: async (vocabularyId, options = {}) => {
|
|
1283
|
+
// verify required parameter 'vocabularyId' is not null or undefined
|
|
1284
|
+
(0, common_1.assertParamExists)('getRelatedEntitiesForVocabularyById', 'vocabularyId', vocabularyId);
|
|
1285
|
+
const localVarPath = `/api/resource/vocabularies/{vocabularyId}/relatedEntities`
|
|
1286
|
+
.replace(`{${"vocabularyId"}}`, encodeURIComponent(String(vocabularyId)));
|
|
1287
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1288
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1289
|
+
let baseOptions;
|
|
1290
|
+
if (configuration) {
|
|
1291
|
+
baseOptions = configuration.baseOptions;
|
|
1292
|
+
}
|
|
1293
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
1294
|
+
const localVarHeaderParameter = {};
|
|
1295
|
+
const localVarQueryParameter = {};
|
|
1296
|
+
localVarHeaderParameter['Accept'] = 'application/xml,application/json';
|
|
1297
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1298
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1299
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1300
|
+
return {
|
|
1301
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1302
|
+
options: localVarRequestOptions,
|
|
1303
|
+
};
|
|
1304
|
+
},
|
|
1305
|
+
/**
|
|
1306
|
+
*
|
|
1307
|
+
* @summary Get a current related entity by its id.
|
|
1308
|
+
* @param {number} relatedEntityId The ID of the related entity to get.
|
|
1309
|
+
* @param {*} [options] Override http request option.
|
|
1310
|
+
* @throws {RequiredError}
|
|
1311
|
+
*/
|
|
1312
|
+
getRelatedEntityById: async (relatedEntityId, options = {}) => {
|
|
1313
|
+
// verify required parameter 'relatedEntityId' is not null or undefined
|
|
1314
|
+
(0, common_1.assertParamExists)('getRelatedEntityById', 'relatedEntityId', relatedEntityId);
|
|
1315
|
+
const localVarPath = `/api/resource/relatedEntities/{relatedEntityId}`
|
|
1316
|
+
.replace(`{${"relatedEntityId"}}`, encodeURIComponent(String(relatedEntityId)));
|
|
1317
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1318
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1319
|
+
let baseOptions;
|
|
1320
|
+
if (configuration) {
|
|
1321
|
+
baseOptions = configuration.baseOptions;
|
|
1322
|
+
}
|
|
1323
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
1324
|
+
const localVarHeaderParameter = {};
|
|
1325
|
+
const localVarQueryParameter = {};
|
|
1326
|
+
localVarHeaderParameter['Accept'] = 'application/xml,application/json';
|
|
1327
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1328
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1329
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1330
|
+
return {
|
|
1331
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1332
|
+
options: localVarRequestOptions,
|
|
1333
|
+
};
|
|
1334
|
+
},
|
|
1335
|
+
/**
|
|
1336
|
+
*
|
|
1337
|
+
* @summary Get the current concept tree of a version, by its version id.
|
|
1338
|
+
* @param {number} versionId The ID of the version from which to get the concept tree.
|
|
1339
|
+
* @param {*} [options] Override http request option.
|
|
1340
|
+
* @throws {RequiredError}
|
|
1341
|
+
*/
|
|
1342
|
+
getVersionArtefactConceptTree: async (versionId, options = {}) => {
|
|
1343
|
+
// verify required parameter 'versionId' is not null or undefined
|
|
1344
|
+
(0, common_1.assertParamExists)('getVersionArtefactConceptTree', 'versionId', versionId);
|
|
1345
|
+
const localVarPath = `/api/resource/versions/{versionId}/versionArtefacts/conceptTree`
|
|
1346
|
+
.replace(`{${"versionId"}}`, encodeURIComponent(String(versionId)));
|
|
1347
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1348
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1349
|
+
let baseOptions;
|
|
1350
|
+
if (configuration) {
|
|
1351
|
+
baseOptions = configuration.baseOptions;
|
|
1352
|
+
}
|
|
1353
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
1354
|
+
const localVarHeaderParameter = {};
|
|
1355
|
+
const localVarQueryParameter = {};
|
|
1356
|
+
localVarHeaderParameter['Accept'] = 'text/plain';
|
|
1357
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1358
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1359
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1360
|
+
return {
|
|
1361
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1362
|
+
options: localVarRequestOptions,
|
|
1363
|
+
};
|
|
1364
|
+
},
|
|
1365
|
+
/**
|
|
1366
|
+
*
|
|
1367
|
+
* @summary Get the current version artefacts of a version, by its version id. Results can be filtered by version artefact type.
|
|
1368
|
+
* @param {number} versionId The ID of the version from which to get the version artefacts.
|
|
1369
|
+
* @param {GetVersionArtefactsTypeEnum} [type] Version artefact type used to filter results.
|
|
1370
|
+
* @param {*} [options] Override http request option.
|
|
1371
|
+
* @throws {RequiredError}
|
|
1372
|
+
*/
|
|
1373
|
+
getVersionArtefacts: async (versionId, type, options = {}) => {
|
|
1374
|
+
// verify required parameter 'versionId' is not null or undefined
|
|
1375
|
+
(0, common_1.assertParamExists)('getVersionArtefacts', 'versionId', versionId);
|
|
1376
|
+
const localVarPath = `/api/resource/versions/{versionId}/versionArtefacts`
|
|
1377
|
+
.replace(`{${"versionId"}}`, encodeURIComponent(String(versionId)));
|
|
1378
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1379
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1380
|
+
let baseOptions;
|
|
1381
|
+
if (configuration) {
|
|
1382
|
+
baseOptions = configuration.baseOptions;
|
|
1383
|
+
}
|
|
1384
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
1385
|
+
const localVarHeaderParameter = {};
|
|
1386
|
+
const localVarQueryParameter = {};
|
|
1387
|
+
if (type !== undefined) {
|
|
1388
|
+
localVarQueryParameter['type'] = type;
|
|
1389
|
+
}
|
|
1390
|
+
localVarHeaderParameter['Accept'] = 'application/xml,application/json';
|
|
1391
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1392
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1393
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1394
|
+
return {
|
|
1395
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1396
|
+
options: localVarRequestOptions,
|
|
1397
|
+
};
|
|
1398
|
+
},
|
|
1399
|
+
/**
|
|
1400
|
+
*
|
|
1401
|
+
* @summary Get a current version by its id.
|
|
1402
|
+
* @param {number} versionId The ID of the version to get.
|
|
1403
|
+
* @param {*} [options] Override http request option.
|
|
1404
|
+
* @throws {RequiredError}
|
|
1405
|
+
*/
|
|
1406
|
+
getVersionById: async (versionId, options = {}) => {
|
|
1407
|
+
// verify required parameter 'versionId' is not null or undefined
|
|
1408
|
+
(0, common_1.assertParamExists)('getVersionById', 'versionId', versionId);
|
|
1409
|
+
const localVarPath = `/api/resource/versions/{versionId}`
|
|
1410
|
+
.replace(`{${"versionId"}}`, encodeURIComponent(String(versionId)));
|
|
1411
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1412
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1413
|
+
let baseOptions;
|
|
1414
|
+
if (configuration) {
|
|
1415
|
+
baseOptions = configuration.baseOptions;
|
|
1416
|
+
}
|
|
1417
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
1418
|
+
const localVarHeaderParameter = {};
|
|
1419
|
+
const localVarQueryParameter = {};
|
|
1420
|
+
localVarHeaderParameter['Accept'] = 'application/xml,application/json';
|
|
1421
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1422
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1423
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1424
|
+
return {
|
|
1425
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1426
|
+
options: localVarRequestOptions,
|
|
1427
|
+
};
|
|
1428
|
+
},
|
|
1429
|
+
/**
|
|
1430
|
+
*
|
|
1431
|
+
* @summary Get the current versions of a vocabulary, by its vocabulary id. The results are returned in reverse order of release date.
|
|
1432
|
+
* @param {number} vocabularyId The ID of the vocabulary from which to get the current versions.
|
|
1433
|
+
* @param {*} [options] Override http request option.
|
|
1434
|
+
* @throws {RequiredError}
|
|
1435
|
+
*/
|
|
1436
|
+
getVersionsForVocabularyById: async (vocabularyId, options = {}) => {
|
|
1437
|
+
// verify required parameter 'vocabularyId' is not null or undefined
|
|
1438
|
+
(0, common_1.assertParamExists)('getVersionsForVocabularyById', 'vocabularyId', vocabularyId);
|
|
1439
|
+
const localVarPath = `/api/resource/vocabularies/{vocabularyId}/versions`
|
|
1440
|
+
.replace(`{${"vocabularyId"}}`, encodeURIComponent(String(vocabularyId)));
|
|
1441
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1442
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1443
|
+
let baseOptions;
|
|
1444
|
+
if (configuration) {
|
|
1445
|
+
baseOptions = configuration.baseOptions;
|
|
1446
|
+
}
|
|
1447
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
1448
|
+
const localVarHeaderParameter = {};
|
|
1449
|
+
const localVarQueryParameter = {};
|
|
1450
|
+
localVarHeaderParameter['Accept'] = 'application/xml,application/json';
|
|
1451
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1452
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1453
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1454
|
+
return {
|
|
1455
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1456
|
+
options: localVarRequestOptions,
|
|
1457
|
+
};
|
|
1458
|
+
},
|
|
1459
|
+
/**
|
|
1460
|
+
*
|
|
1461
|
+
* @summary Get all the current vocabularies. This includes both published and deprecated vocabularies.
|
|
1462
|
+
* @param {*} [options] Override http request option.
|
|
1463
|
+
* @throws {RequiredError}
|
|
1464
|
+
*/
|
|
1465
|
+
getVocabularies: async (options = {}) => {
|
|
1466
|
+
const localVarPath = `/api/resource/vocabularies`;
|
|
1467
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1468
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1469
|
+
let baseOptions;
|
|
1470
|
+
if (configuration) {
|
|
1471
|
+
baseOptions = configuration.baseOptions;
|
|
1472
|
+
}
|
|
1473
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
1474
|
+
const localVarHeaderParameter = {};
|
|
1475
|
+
const localVarQueryParameter = {};
|
|
1476
|
+
localVarHeaderParameter['Accept'] = 'application/xml,application/json';
|
|
1477
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1478
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1479
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1480
|
+
return {
|
|
1481
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1482
|
+
options: localVarRequestOptions,
|
|
1483
|
+
};
|
|
1484
|
+
},
|
|
1485
|
+
/**
|
|
1486
|
+
*
|
|
1487
|
+
* @summary Get all current vocabularies related to a related entity, by the related entity\'s id.
|
|
1488
|
+
* @param {number} relatedEntityId The ID of the related entity for which to get the vocabularies related to it.
|
|
1489
|
+
* @param {*} [options] Override http request option.
|
|
1490
|
+
* @throws {RequiredError}
|
|
1491
|
+
*/
|
|
1492
|
+
getVocabulariesRelatedToRelatedEntityById: async (relatedEntityId, options = {}) => {
|
|
1493
|
+
// verify required parameter 'relatedEntityId' is not null or undefined
|
|
1494
|
+
(0, common_1.assertParamExists)('getVocabulariesRelatedToRelatedEntityById', 'relatedEntityId', relatedEntityId);
|
|
1495
|
+
const localVarPath = `/api/resource/relatedEntities/{relatedEntityId}/reverseRelatedVocabularies`
|
|
1496
|
+
.replace(`{${"relatedEntityId"}}`, encodeURIComponent(String(relatedEntityId)));
|
|
1497
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1498
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1499
|
+
let baseOptions;
|
|
1500
|
+
if (configuration) {
|
|
1501
|
+
baseOptions = configuration.baseOptions;
|
|
1502
|
+
}
|
|
1503
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
1504
|
+
const localVarHeaderParameter = {};
|
|
1505
|
+
const localVarQueryParameter = {};
|
|
1506
|
+
localVarHeaderParameter['Accept'] = 'application/xml,application/json';
|
|
1507
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1508
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1509
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1510
|
+
return {
|
|
1511
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1512
|
+
options: localVarRequestOptions,
|
|
1513
|
+
};
|
|
1514
|
+
},
|
|
1515
|
+
/**
|
|
1516
|
+
*
|
|
1517
|
+
* @summary Get all current vocabularies related to a vocabulary, by its vocabulary id.
|
|
1518
|
+
* @param {number} vocabularyId The ID of the vocabulary for which to get the vocabularies related to it.
|
|
1519
|
+
* @param {*} [options] Override http request option.
|
|
1520
|
+
* @throws {RequiredError}
|
|
1521
|
+
*/
|
|
1522
|
+
getVocabulariesRelatedToVocabularyById: async (vocabularyId, options = {}) => {
|
|
1523
|
+
// verify required parameter 'vocabularyId' is not null or undefined
|
|
1524
|
+
(0, common_1.assertParamExists)('getVocabulariesRelatedToVocabularyById', 'vocabularyId', vocabularyId);
|
|
1525
|
+
const localVarPath = `/api/resource/vocabularies/{vocabularyId}/reverseRelatedVocabularies`
|
|
1526
|
+
.replace(`{${"vocabularyId"}}`, encodeURIComponent(String(vocabularyId)));
|
|
1527
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1528
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1529
|
+
let baseOptions;
|
|
1530
|
+
if (configuration) {
|
|
1531
|
+
baseOptions = configuration.baseOptions;
|
|
1532
|
+
}
|
|
1533
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
1534
|
+
const localVarHeaderParameter = {};
|
|
1535
|
+
const localVarQueryParameter = {};
|
|
1536
|
+
localVarHeaderParameter['Accept'] = 'application/xml,application/json';
|
|
1537
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1538
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1539
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1540
|
+
return {
|
|
1541
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1542
|
+
options: localVarRequestOptions,
|
|
1543
|
+
};
|
|
1544
|
+
},
|
|
1545
|
+
/**
|
|
1546
|
+
*
|
|
1547
|
+
* @summary Get a current vocabulary by its id.
|
|
1548
|
+
* @param {number} vocabularyId The ID of the vocabulary to get.
|
|
1549
|
+
* @param {boolean} [includeVersions] Whether or not to include version elements. If enabled, versions are returned in reverse order of release date.
|
|
1550
|
+
* @param {boolean} [includeAccessPoints] Whether or not to include access points. Setting this to true forces includeVersions also to be true.
|
|
1551
|
+
* @param {boolean} [includeRelatedEntitiesAndVocabularies] Whether or not to include full details of related entities, and top-level details of related vocabularies. If false (the default), only references will be included.
|
|
1552
|
+
* @param {boolean} [includeLanguageList] Whether or not to include descriptions of the language tags.
|
|
1553
|
+
* @param {*} [options] Override http request option.
|
|
1554
|
+
* @throws {RequiredError}
|
|
1555
|
+
*/
|
|
1556
|
+
getVocabularyById: async (vocabularyId, includeVersions, includeAccessPoints, includeRelatedEntitiesAndVocabularies, includeLanguageList, options = {}) => {
|
|
1557
|
+
// verify required parameter 'vocabularyId' is not null or undefined
|
|
1558
|
+
(0, common_1.assertParamExists)('getVocabularyById', 'vocabularyId', vocabularyId);
|
|
1559
|
+
const localVarPath = `/api/resource/vocabularies/{vocabularyId}`
|
|
1560
|
+
.replace(`{${"vocabularyId"}}`, encodeURIComponent(String(vocabularyId)));
|
|
1561
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1562
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1563
|
+
let baseOptions;
|
|
1564
|
+
if (configuration) {
|
|
1565
|
+
baseOptions = configuration.baseOptions;
|
|
1566
|
+
}
|
|
1567
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
1568
|
+
const localVarHeaderParameter = {};
|
|
1569
|
+
const localVarQueryParameter = {};
|
|
1570
|
+
if (includeVersions !== undefined) {
|
|
1571
|
+
localVarQueryParameter['includeVersions'] = includeVersions;
|
|
1572
|
+
}
|
|
1573
|
+
if (includeAccessPoints !== undefined) {
|
|
1574
|
+
localVarQueryParameter['includeAccessPoints'] = includeAccessPoints;
|
|
1575
|
+
}
|
|
1576
|
+
if (includeRelatedEntitiesAndVocabularies !== undefined) {
|
|
1577
|
+
localVarQueryParameter['includeRelatedEntitiesAndVocabularies'] = includeRelatedEntitiesAndVocabularies;
|
|
1578
|
+
}
|
|
1579
|
+
if (includeLanguageList !== undefined) {
|
|
1580
|
+
localVarQueryParameter['includeLanguageList'] = includeLanguageList;
|
|
1581
|
+
}
|
|
1582
|
+
localVarHeaderParameter['Accept'] = 'application/xml,application/json';
|
|
1583
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1584
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1585
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1586
|
+
return {
|
|
1587
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1588
|
+
options: localVarRequestOptions,
|
|
1589
|
+
};
|
|
1590
|
+
},
|
|
1591
|
+
/**
|
|
1592
|
+
* Access points that have source=SYSTEM are stripped out.
|
|
1593
|
+
* @summary Get a vocabulary by its id, for editing.
|
|
1594
|
+
* @param {number} vocabularyId The ID of the vocabulary to get for editing.
|
|
1595
|
+
* @param {*} [options] Override http request option.
|
|
1596
|
+
* @throws {RequiredError}
|
|
1597
|
+
*/
|
|
1598
|
+
getVocabularyByIdEdit: async (vocabularyId, options = {}) => {
|
|
1599
|
+
// verify required parameter 'vocabularyId' is not null or undefined
|
|
1600
|
+
(0, common_1.assertParamExists)('getVocabularyByIdEdit', 'vocabularyId', vocabularyId);
|
|
1601
|
+
const localVarPath = `/api/resource/vocabularies/{vocabularyId}/edit`
|
|
1602
|
+
.replace(`{${"vocabularyId"}}`, encodeURIComponent(String(vocabularyId)));
|
|
1603
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1604
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1605
|
+
let baseOptions;
|
|
1606
|
+
if (configuration) {
|
|
1607
|
+
baseOptions = configuration.baseOptions;
|
|
1608
|
+
}
|
|
1609
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
1610
|
+
const localVarHeaderParameter = {};
|
|
1611
|
+
const localVarQueryParameter = {};
|
|
1612
|
+
// authentication basicAuth required
|
|
1613
|
+
// http basic authentication required
|
|
1614
|
+
(0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
|
|
1615
|
+
// authentication apiKeyAuth required
|
|
1616
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "ands_authentication", configuration);
|
|
1617
|
+
localVarHeaderParameter['Accept'] = 'application/xml,application/json';
|
|
1618
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1619
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1620
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1621
|
+
return {
|
|
1622
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1623
|
+
options: localVarRequestOptions,
|
|
1624
|
+
};
|
|
1625
|
+
},
|
|
1626
|
+
/**
|
|
1627
|
+
*
|
|
1628
|
+
* @summary Get a current vocabulary by its slug.
|
|
1629
|
+
* @param {string} slug The slug of the vocabulary to get.
|
|
1630
|
+
* @param {boolean} [includeVersions] Whether or not to include version elements. If enabled, versions are returned in reverse order of release date.
|
|
1631
|
+
* @param {boolean} [includeAccessPoints] Whether or not to include access points. Setting this to true forces includeVersions also to be true.
|
|
1632
|
+
* @param {boolean} [includeRelatedEntitiesAndVocabularies] Whether or not to include full details of related entities, and top-level details of related vocabularies. If false (the default), only references will be included.
|
|
1633
|
+
* @param {boolean} [includeLanguageList] Whether or not to include descriptions of the language tags.
|
|
1634
|
+
* @param {*} [options] Override http request option.
|
|
1635
|
+
* @throws {RequiredError}
|
|
1636
|
+
*/
|
|
1637
|
+
getVocabularyBySlug: async (slug, includeVersions, includeAccessPoints, includeRelatedEntitiesAndVocabularies, includeLanguageList, options = {}) => {
|
|
1638
|
+
// verify required parameter 'slug' is not null or undefined
|
|
1639
|
+
(0, common_1.assertParamExists)('getVocabularyBySlug', 'slug', slug);
|
|
1640
|
+
const localVarPath = `/api/resource/vocabulariesBySlug/{slug}`
|
|
1641
|
+
.replace(`{${"slug"}}`, encodeURIComponent(String(slug)));
|
|
1642
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1643
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1644
|
+
let baseOptions;
|
|
1645
|
+
if (configuration) {
|
|
1646
|
+
baseOptions = configuration.baseOptions;
|
|
1647
|
+
}
|
|
1648
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
1649
|
+
const localVarHeaderParameter = {};
|
|
1650
|
+
const localVarQueryParameter = {};
|
|
1651
|
+
if (includeVersions !== undefined) {
|
|
1652
|
+
localVarQueryParameter['includeVersions'] = includeVersions;
|
|
1653
|
+
}
|
|
1654
|
+
if (includeAccessPoints !== undefined) {
|
|
1655
|
+
localVarQueryParameter['includeAccessPoints'] = includeAccessPoints;
|
|
1656
|
+
}
|
|
1657
|
+
if (includeRelatedEntitiesAndVocabularies !== undefined) {
|
|
1658
|
+
localVarQueryParameter['includeRelatedEntitiesAndVocabularies'] = includeRelatedEntitiesAndVocabularies;
|
|
1659
|
+
}
|
|
1660
|
+
if (includeLanguageList !== undefined) {
|
|
1661
|
+
localVarQueryParameter['includeLanguageList'] = includeLanguageList;
|
|
1662
|
+
}
|
|
1663
|
+
localVarHeaderParameter['Accept'] = 'application/xml,application/json';
|
|
1664
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1665
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1666
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1667
|
+
return {
|
|
1668
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1669
|
+
options: localVarRequestOptions,
|
|
1670
|
+
};
|
|
1671
|
+
},
|
|
1672
|
+
/**
|
|
1673
|
+
* Returns true, if the version has a draft instance. Returns false, if there is no draft instance with that version id. The result is returned in the booleanValue property.
|
|
1674
|
+
* @summary Determine if a version has a draft instance.
|
|
1675
|
+
* @param {number} versionId The ID of the version to check.
|
|
1676
|
+
* @param {*} [options] Override http request option.
|
|
1677
|
+
* @throws {RequiredError}
|
|
1678
|
+
*/
|
|
1679
|
+
hasDraftVersionById: async (versionId, options = {}) => {
|
|
1680
|
+
// verify required parameter 'versionId' is not null or undefined
|
|
1681
|
+
(0, common_1.assertParamExists)('hasDraftVersionById', 'versionId', versionId);
|
|
1682
|
+
const localVarPath = `/api/resource/versions/{versionId}/hasDraft`
|
|
1683
|
+
.replace(`{${"versionId"}}`, encodeURIComponent(String(versionId)));
|
|
1684
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1685
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1686
|
+
let baseOptions;
|
|
1687
|
+
if (configuration) {
|
|
1688
|
+
baseOptions = configuration.baseOptions;
|
|
1689
|
+
}
|
|
1690
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
1691
|
+
const localVarHeaderParameter = {};
|
|
1692
|
+
const localVarQueryParameter = {};
|
|
1693
|
+
localVarHeaderParameter['Accept'] = 'application/xml,application/json';
|
|
1694
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1695
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1696
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1697
|
+
return {
|
|
1698
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1699
|
+
options: localVarRequestOptions,
|
|
1700
|
+
};
|
|
1701
|
+
},
|
|
1702
|
+
/**
|
|
1703
|
+
* Returns true, if the vocabulary has a draft instance, and the user is authorized to access it. Returns false in every other case, i.e., if there is no draft instance with that vocabulary id, or even if there is such a draft instance, but the user is not authorized to access it. The result is returned in the booleanValue property.
|
|
1704
|
+
* @summary Determine if a vocabulary has a draft instance.
|
|
1705
|
+
* @param {number} vocabularyId The ID of the vocabulary to check.
|
|
1706
|
+
* @param {*} [options] Override http request option.
|
|
1707
|
+
* @throws {RequiredError}
|
|
1708
|
+
*/
|
|
1709
|
+
hasDraftVocabularyById: async (vocabularyId, options = {}) => {
|
|
1710
|
+
// verify required parameter 'vocabularyId' is not null or undefined
|
|
1711
|
+
(0, common_1.assertParamExists)('hasDraftVocabularyById', 'vocabularyId', vocabularyId);
|
|
1712
|
+
const localVarPath = `/api/resource/vocabularies/{vocabularyId}/hasDraft`
|
|
1713
|
+
.replace(`{${"vocabularyId"}}`, encodeURIComponent(String(vocabularyId)));
|
|
1714
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1715
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1716
|
+
let baseOptions;
|
|
1717
|
+
if (configuration) {
|
|
1718
|
+
baseOptions = configuration.baseOptions;
|
|
1719
|
+
}
|
|
1720
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
1721
|
+
const localVarHeaderParameter = {};
|
|
1722
|
+
const localVarQueryParameter = {};
|
|
1723
|
+
// authentication basicAuth required
|
|
1724
|
+
// http basic authentication required
|
|
1725
|
+
(0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
|
|
1726
|
+
// authentication apiKeyAuth required
|
|
1727
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "ands_authentication", configuration);
|
|
1728
|
+
localVarHeaderParameter['Accept'] = 'application/xml,application/json';
|
|
1729
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1730
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1731
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1732
|
+
return {
|
|
1733
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1734
|
+
options: localVarRequestOptions,
|
|
1735
|
+
};
|
|
1736
|
+
},
|
|
1737
|
+
/**
|
|
1738
|
+
*
|
|
1739
|
+
* @summary Query if the user has authorization to modify a current vocabulary. A Boolean result will be returned.
|
|
1740
|
+
* @param {number} vocabularyId The ID of the vocabulary to check ownership.
|
|
1741
|
+
* @param {*} [options] Override http request option.
|
|
1742
|
+
* @throws {RequiredError}
|
|
1743
|
+
*/
|
|
1744
|
+
ownsVocabularyById: async (vocabularyId, options = {}) => {
|
|
1745
|
+
// verify required parameter 'vocabularyId' is not null or undefined
|
|
1746
|
+
(0, common_1.assertParamExists)('ownsVocabularyById', 'vocabularyId', vocabularyId);
|
|
1747
|
+
const localVarPath = `/api/resource/vocabularies/{vocabularyId}/owns`
|
|
1748
|
+
.replace(`{${"vocabularyId"}}`, encodeURIComponent(String(vocabularyId)));
|
|
1749
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1750
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1751
|
+
let baseOptions;
|
|
1752
|
+
if (configuration) {
|
|
1753
|
+
baseOptions = configuration.baseOptions;
|
|
1754
|
+
}
|
|
1755
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
1756
|
+
const localVarHeaderParameter = {};
|
|
1757
|
+
const localVarQueryParameter = {};
|
|
1758
|
+
// authentication basicAuth required
|
|
1759
|
+
// http basic authentication required
|
|
1760
|
+
(0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
|
|
1761
|
+
// authentication apiKeyAuth required
|
|
1762
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "ands_authentication", configuration);
|
|
1763
|
+
localVarHeaderParameter['Accept'] = 'application/xml,application/json';
|
|
1764
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1765
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1766
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1767
|
+
return {
|
|
1768
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1769
|
+
options: localVarRequestOptions,
|
|
1770
|
+
};
|
|
1771
|
+
},
|
|
1772
|
+
/**
|
|
1773
|
+
*
|
|
1774
|
+
* @summary Update a related entity.
|
|
1775
|
+
* @param {number} relatedEntityId The ID of the related entity to be updated.
|
|
1776
|
+
* @param {RelatedEntity} body The new value of the related entity.
|
|
1777
|
+
* @param {*} [options] Override http request option.
|
|
1778
|
+
* @throws {RequiredError}
|
|
1779
|
+
*/
|
|
1780
|
+
updateRelatedEntity: async (relatedEntityId, body, options = {}) => {
|
|
1781
|
+
// verify required parameter 'relatedEntityId' is not null or undefined
|
|
1782
|
+
(0, common_1.assertParamExists)('updateRelatedEntity', 'relatedEntityId', relatedEntityId);
|
|
1783
|
+
// verify required parameter 'body' is not null or undefined
|
|
1784
|
+
(0, common_1.assertParamExists)('updateRelatedEntity', 'body', body);
|
|
1785
|
+
const localVarPath = `/api/resource/relatedEntities/{relatedEntityId}`
|
|
1786
|
+
.replace(`{${"relatedEntityId"}}`, encodeURIComponent(String(relatedEntityId)));
|
|
1787
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1788
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1789
|
+
let baseOptions;
|
|
1790
|
+
if (configuration) {
|
|
1791
|
+
baseOptions = configuration.baseOptions;
|
|
1792
|
+
}
|
|
1793
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
|
|
1794
|
+
const localVarHeaderParameter = {};
|
|
1795
|
+
const localVarQueryParameter = {};
|
|
1796
|
+
// authentication basicAuth required
|
|
1797
|
+
// http basic authentication required
|
|
1798
|
+
(0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
|
|
1799
|
+
// authentication apiKeyAuth required
|
|
1800
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "ands_authentication", configuration);
|
|
1801
|
+
localVarHeaderParameter['Content-Type'] = 'application/xml';
|
|
1802
|
+
localVarHeaderParameter['Accept'] = 'application/xml,application/json';
|
|
1803
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1804
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1805
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1806
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
|
|
1807
|
+
return {
|
|
1808
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1809
|
+
options: localVarRequestOptions,
|
|
1810
|
+
};
|
|
1811
|
+
},
|
|
1812
|
+
/**
|
|
1813
|
+
*
|
|
1814
|
+
* @summary Update a vocabulary.
|
|
1815
|
+
* @param {number} vocabularyId The ID of the vocabulary to be updated.
|
|
1816
|
+
* @param {Vocabulary} body The vocabulary to be updated.
|
|
1817
|
+
* @param {*} [options] Override http request option.
|
|
1818
|
+
* @throws {RequiredError}
|
|
1819
|
+
*/
|
|
1820
|
+
updateVocabulary: async (vocabularyId, body, options = {}) => {
|
|
1821
|
+
// verify required parameter 'vocabularyId' is not null or undefined
|
|
1822
|
+
(0, common_1.assertParamExists)('updateVocabulary', 'vocabularyId', vocabularyId);
|
|
1823
|
+
// verify required parameter 'body' is not null or undefined
|
|
1824
|
+
(0, common_1.assertParamExists)('updateVocabulary', 'body', body);
|
|
1825
|
+
const localVarPath = `/api/resource/vocabularies/{vocabularyId}`
|
|
1826
|
+
.replace(`{${"vocabularyId"}}`, encodeURIComponent(String(vocabularyId)));
|
|
1827
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1828
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1829
|
+
let baseOptions;
|
|
1830
|
+
if (configuration) {
|
|
1831
|
+
baseOptions = configuration.baseOptions;
|
|
1832
|
+
}
|
|
1833
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
|
|
1834
|
+
const localVarHeaderParameter = {};
|
|
1835
|
+
const localVarQueryParameter = {};
|
|
1836
|
+
// authentication basicAuth required
|
|
1837
|
+
// http basic authentication required
|
|
1838
|
+
(0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
|
|
1839
|
+
// authentication apiKeyAuth required
|
|
1840
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "ands_authentication", configuration);
|
|
1841
|
+
localVarHeaderParameter['Content-Type'] = 'application/xml';
|
|
1842
|
+
localVarHeaderParameter['Accept'] = 'application/xml,application/json';
|
|
1843
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1844
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1845
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1846
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
|
|
1847
|
+
return {
|
|
1848
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1849
|
+
options: localVarRequestOptions,
|
|
1850
|
+
};
|
|
1851
|
+
},
|
|
1852
|
+
};
|
|
1853
|
+
};
|
|
1854
|
+
exports.ResourcesApiAxiosParamCreator = ResourcesApiAxiosParamCreator;
|
|
1855
|
+
/**
|
|
1856
|
+
* ResourcesApi - functional programming interface
|
|
1857
|
+
*/
|
|
1858
|
+
const ResourcesApiFp = function (configuration) {
|
|
1859
|
+
const localVarAxiosParamCreator = (0, exports.ResourcesApiAxiosParamCreator)(configuration);
|
|
1860
|
+
return {
|
|
1861
|
+
/**
|
|
1862
|
+
*
|
|
1863
|
+
* @summary Create a new related entity.
|
|
1864
|
+
* @param {RelatedEntity} body The related entity to be added.
|
|
1865
|
+
* @param {*} [options] Override http request option.
|
|
1866
|
+
* @throws {RequiredError}
|
|
1867
|
+
*/
|
|
1868
|
+
async createRelatedEntity(body, options) {
|
|
1869
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createRelatedEntity(body, options);
|
|
1870
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1871
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['ResourcesApi.createRelatedEntity']?.[localVarOperationServerIndex]?.url;
|
|
1872
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1873
|
+
},
|
|
1874
|
+
/**
|
|
1875
|
+
* The response contains the ID of the resulting upload in the integerValue field, and the sanitized filename in the stringValue field.
|
|
1876
|
+
* @summary Upload a file.
|
|
1877
|
+
* @param {string} owner The owner of the upload
|
|
1878
|
+
* @param {string} format The type of the upload
|
|
1879
|
+
* @param {File} file The file to upload
|
|
1880
|
+
* @param {*} [options] Override http request option.
|
|
1881
|
+
* @throws {RequiredError}
|
|
1882
|
+
*/
|
|
1883
|
+
async createUpload(owner, format, file, options) {
|
|
1884
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createUpload(owner, format, file, options);
|
|
1885
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1886
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['ResourcesApi.createUpload']?.[localVarOperationServerIndex]?.url;
|
|
1887
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1888
|
+
},
|
|
1889
|
+
/**
|
|
1890
|
+
*
|
|
1891
|
+
* @summary Create a new vocabulary.
|
|
1892
|
+
* @param {Vocabulary} body The vocabulary to be added.
|
|
1893
|
+
* @param {*} [options] Override http request option.
|
|
1894
|
+
* @throws {RequiredError}
|
|
1895
|
+
*/
|
|
1896
|
+
async createVocabulary(body, options) {
|
|
1897
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createVocabulary(body, options);
|
|
1898
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1899
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['ResourcesApi.createVocabulary']?.[localVarOperationServerIndex]?.url;
|
|
1900
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1901
|
+
},
|
|
1902
|
+
/**
|
|
1903
|
+
*
|
|
1904
|
+
* @summary Delete a related entity.
|
|
1905
|
+
* @param {number} relatedEntityId The ID of the related entity to be deleted.
|
|
1906
|
+
* @param {*} [options] Override http request option.
|
|
1907
|
+
* @throws {RequiredError}
|
|
1908
|
+
*/
|
|
1909
|
+
async deleteRelatedEntity(relatedEntityId, options) {
|
|
1910
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteRelatedEntity(relatedEntityId, options);
|
|
1911
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1912
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['ResourcesApi.deleteRelatedEntity']?.[localVarOperationServerIndex]?.url;
|
|
1913
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1914
|
+
},
|
|
1915
|
+
/**
|
|
1916
|
+
*
|
|
1917
|
+
* @summary Delete a vocabulary.
|
|
1918
|
+
* @param {number} vocabularyId The ID of the vocabulary to be deleted.
|
|
1919
|
+
* @param {boolean} [deleteCurrent] Whether or not to delete the current version.
|
|
1920
|
+
* @param {boolean} [deleteDraft] Whether or not to delete the draft version.
|
|
1921
|
+
* @param {*} [options] Override http request option.
|
|
1922
|
+
* @throws {RequiredError}
|
|
1923
|
+
*/
|
|
1924
|
+
async deleteVocabulary(vocabularyId, deleteCurrent, deleteDraft, options) {
|
|
1925
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteVocabulary(vocabularyId, deleteCurrent, deleteDraft, options);
|
|
1926
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1927
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['ResourcesApi.deleteVocabulary']?.[localVarOperationServerIndex]?.url;
|
|
1928
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1929
|
+
},
|
|
1930
|
+
/**
|
|
1931
|
+
* In this version of the download method, a download format is specified as a query parameter. The response will include a Content-Disposition header that specifies a full filename based on the underlying data; its extension may be different from the value of the format query parameter.
|
|
1932
|
+
* @summary Get a download.
|
|
1933
|
+
* @param {number} downloadId The Id of the download.
|
|
1934
|
+
* @param {string} [format] The format of the download. This must be a filename extension without the period, e.g., \"rdf\".
|
|
1935
|
+
* @param {*} [options] Override http request option.
|
|
1936
|
+
* @throws {RequiredError}
|
|
1937
|
+
*/
|
|
1938
|
+
async download(downloadId, format, options) {
|
|
1939
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.download(downloadId, format, options);
|
|
1940
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1941
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['ResourcesApi.download']?.[localVarOperationServerIndex]?.url;
|
|
1942
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1943
|
+
},
|
|
1944
|
+
/**
|
|
1945
|
+
* In this version of the download method, the last component of the URL specifies a filename and an extension. The response will include a Content-Disposition header that specifies a filename and extension based on the underlying data; they may be different from the values specified.
|
|
1946
|
+
* @summary Get a download.
|
|
1947
|
+
* @param {number} downloadId The Id of the download.
|
|
1948
|
+
* @param {string} filename The filename of the download.
|
|
1949
|
+
* @param {string} extension The format of the download. This must be a filename extension without the period, e.g., \"rdf\".
|
|
1950
|
+
* @param {*} [options] Override http request option.
|
|
1951
|
+
* @throws {RequiredError}
|
|
1952
|
+
*/
|
|
1953
|
+
async downloadWithFilename(downloadId, filename, extension, options) {
|
|
1954
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.downloadWithFilename(downloadId, filename, extension, options);
|
|
1955
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1956
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['ResourcesApi.downloadWithFilename']?.[localVarOperationServerIndex]?.url;
|
|
1957
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1958
|
+
},
|
|
1959
|
+
/**
|
|
1960
|
+
*
|
|
1961
|
+
* @summary Get the current access points of a version, by its version id.
|
|
1962
|
+
* @param {number} versionId The ID of the version from which to get the current access points.
|
|
1963
|
+
* @param {*} [options] Override http request option.
|
|
1964
|
+
* @throws {RequiredError}
|
|
1965
|
+
*/
|
|
1966
|
+
async getAccessPointsForVersionById(versionId, options) {
|
|
1967
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getAccessPointsForVersionById(versionId, options);
|
|
1968
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1969
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['ResourcesApi.getAccessPointsForVersionById']?.[localVarOperationServerIndex]?.url;
|
|
1970
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1971
|
+
},
|
|
1972
|
+
/**
|
|
1973
|
+
* The result list contains one element for each vocabulary owned by the caller. The status attribute will be \"draft\" if there is only a draft instance of the vocabulary; in this case, hasDraft will be true. Otherwise, status will be either \"published\" or \"deprecated\", and hasDraft will be true if there is also a draft instance.
|
|
1974
|
+
* @summary Get a list of vocabularies owned by the caller.
|
|
1975
|
+
* @param {*} [options] Override http request option.
|
|
1976
|
+
* @throws {RequiredError}
|
|
1977
|
+
*/
|
|
1978
|
+
async getOwnedVocabularies(options) {
|
|
1979
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getOwnedVocabularies(options);
|
|
1980
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1981
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['ResourcesApi.getOwnedVocabularies']?.[localVarOperationServerIndex]?.url;
|
|
1982
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1983
|
+
},
|
|
1984
|
+
/**
|
|
1985
|
+
*
|
|
1986
|
+
* @summary Get all current related entities, optionally, filtered by related entity type. Results do not include related entity identifiers.
|
|
1987
|
+
* @param {GetRelatedEntitiesRelatedEntityTypeEnum} [relatedEntityType] The type of the related entities to get.
|
|
1988
|
+
* @param {*} [options] Override http request option.
|
|
1989
|
+
* @throws {RequiredError}
|
|
1990
|
+
*/
|
|
1991
|
+
async getRelatedEntities(relatedEntityType, options) {
|
|
1992
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getRelatedEntities(relatedEntityType, options);
|
|
1993
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1994
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['ResourcesApi.getRelatedEntities']?.[localVarOperationServerIndex]?.url;
|
|
1995
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1996
|
+
},
|
|
1997
|
+
/**
|
|
1998
|
+
*
|
|
1999
|
+
* @summary Get the current related entities of a vocabulary, by its vocabulary id.
|
|
2000
|
+
* @param {number} vocabularyId The ID of the vocabulary from which to get the current related entities.
|
|
2001
|
+
* @param {*} [options] Override http request option.
|
|
2002
|
+
* @throws {RequiredError}
|
|
2003
|
+
*/
|
|
2004
|
+
async getRelatedEntitiesForVocabularyById(vocabularyId, options) {
|
|
2005
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getRelatedEntitiesForVocabularyById(vocabularyId, options);
|
|
2006
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2007
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['ResourcesApi.getRelatedEntitiesForVocabularyById']?.[localVarOperationServerIndex]?.url;
|
|
2008
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2009
|
+
},
|
|
2010
|
+
/**
|
|
2011
|
+
*
|
|
2012
|
+
* @summary Get a current related entity by its id.
|
|
2013
|
+
* @param {number} relatedEntityId The ID of the related entity to get.
|
|
2014
|
+
* @param {*} [options] Override http request option.
|
|
2015
|
+
* @throws {RequiredError}
|
|
2016
|
+
*/
|
|
2017
|
+
async getRelatedEntityById(relatedEntityId, options) {
|
|
2018
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getRelatedEntityById(relatedEntityId, options);
|
|
2019
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2020
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['ResourcesApi.getRelatedEntityById']?.[localVarOperationServerIndex]?.url;
|
|
2021
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2022
|
+
},
|
|
2023
|
+
/**
|
|
2024
|
+
*
|
|
2025
|
+
* @summary Get the current concept tree of a version, by its version id.
|
|
2026
|
+
* @param {number} versionId The ID of the version from which to get the concept tree.
|
|
2027
|
+
* @param {*} [options] Override http request option.
|
|
2028
|
+
* @throws {RequiredError}
|
|
2029
|
+
*/
|
|
2030
|
+
async getVersionArtefactConceptTree(versionId, options) {
|
|
2031
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getVersionArtefactConceptTree(versionId, options);
|
|
2032
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2033
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['ResourcesApi.getVersionArtefactConceptTree']?.[localVarOperationServerIndex]?.url;
|
|
2034
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2035
|
+
},
|
|
2036
|
+
/**
|
|
2037
|
+
*
|
|
2038
|
+
* @summary Get the current version artefacts of a version, by its version id. Results can be filtered by version artefact type.
|
|
2039
|
+
* @param {number} versionId The ID of the version from which to get the version artefacts.
|
|
2040
|
+
* @param {GetVersionArtefactsTypeEnum} [type] Version artefact type used to filter results.
|
|
2041
|
+
* @param {*} [options] Override http request option.
|
|
2042
|
+
* @throws {RequiredError}
|
|
2043
|
+
*/
|
|
2044
|
+
async getVersionArtefacts(versionId, type, options) {
|
|
2045
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getVersionArtefacts(versionId, type, options);
|
|
2046
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2047
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['ResourcesApi.getVersionArtefacts']?.[localVarOperationServerIndex]?.url;
|
|
2048
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2049
|
+
},
|
|
2050
|
+
/**
|
|
2051
|
+
*
|
|
2052
|
+
* @summary Get a current version by its id.
|
|
2053
|
+
* @param {number} versionId The ID of the version to get.
|
|
2054
|
+
* @param {*} [options] Override http request option.
|
|
2055
|
+
* @throws {RequiredError}
|
|
2056
|
+
*/
|
|
2057
|
+
async getVersionById(versionId, options) {
|
|
2058
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getVersionById(versionId, options);
|
|
2059
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2060
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['ResourcesApi.getVersionById']?.[localVarOperationServerIndex]?.url;
|
|
2061
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2062
|
+
},
|
|
2063
|
+
/**
|
|
2064
|
+
*
|
|
2065
|
+
* @summary Get the current versions of a vocabulary, by its vocabulary id. The results are returned in reverse order of release date.
|
|
2066
|
+
* @param {number} vocabularyId The ID of the vocabulary from which to get the current versions.
|
|
2067
|
+
* @param {*} [options] Override http request option.
|
|
2068
|
+
* @throws {RequiredError}
|
|
2069
|
+
*/
|
|
2070
|
+
async getVersionsForVocabularyById(vocabularyId, options) {
|
|
2071
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getVersionsForVocabularyById(vocabularyId, options);
|
|
2072
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2073
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['ResourcesApi.getVersionsForVocabularyById']?.[localVarOperationServerIndex]?.url;
|
|
2074
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2075
|
+
},
|
|
2076
|
+
/**
|
|
2077
|
+
*
|
|
2078
|
+
* @summary Get all the current vocabularies. This includes both published and deprecated vocabularies.
|
|
2079
|
+
* @param {*} [options] Override http request option.
|
|
2080
|
+
* @throws {RequiredError}
|
|
2081
|
+
*/
|
|
2082
|
+
async getVocabularies(options) {
|
|
2083
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getVocabularies(options);
|
|
2084
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2085
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['ResourcesApi.getVocabularies']?.[localVarOperationServerIndex]?.url;
|
|
2086
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2087
|
+
},
|
|
2088
|
+
/**
|
|
2089
|
+
*
|
|
2090
|
+
* @summary Get all current vocabularies related to a related entity, by the related entity\'s id.
|
|
2091
|
+
* @param {number} relatedEntityId The ID of the related entity for which to get the vocabularies related to it.
|
|
2092
|
+
* @param {*} [options] Override http request option.
|
|
2093
|
+
* @throws {RequiredError}
|
|
2094
|
+
*/
|
|
2095
|
+
async getVocabulariesRelatedToRelatedEntityById(relatedEntityId, options) {
|
|
2096
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getVocabulariesRelatedToRelatedEntityById(relatedEntityId, options);
|
|
2097
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2098
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['ResourcesApi.getVocabulariesRelatedToRelatedEntityById']?.[localVarOperationServerIndex]?.url;
|
|
2099
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2100
|
+
},
|
|
2101
|
+
/**
|
|
2102
|
+
*
|
|
2103
|
+
* @summary Get all current vocabularies related to a vocabulary, by its vocabulary id.
|
|
2104
|
+
* @param {number} vocabularyId The ID of the vocabulary for which to get the vocabularies related to it.
|
|
2105
|
+
* @param {*} [options] Override http request option.
|
|
2106
|
+
* @throws {RequiredError}
|
|
2107
|
+
*/
|
|
2108
|
+
async getVocabulariesRelatedToVocabularyById(vocabularyId, options) {
|
|
2109
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getVocabulariesRelatedToVocabularyById(vocabularyId, options);
|
|
2110
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2111
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['ResourcesApi.getVocabulariesRelatedToVocabularyById']?.[localVarOperationServerIndex]?.url;
|
|
2112
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2113
|
+
},
|
|
2114
|
+
/**
|
|
2115
|
+
*
|
|
2116
|
+
* @summary Get a current vocabulary by its id.
|
|
2117
|
+
* @param {number} vocabularyId The ID of the vocabulary to get.
|
|
2118
|
+
* @param {boolean} [includeVersions] Whether or not to include version elements. If enabled, versions are returned in reverse order of release date.
|
|
2119
|
+
* @param {boolean} [includeAccessPoints] Whether or not to include access points. Setting this to true forces includeVersions also to be true.
|
|
2120
|
+
* @param {boolean} [includeRelatedEntitiesAndVocabularies] Whether or not to include full details of related entities, and top-level details of related vocabularies. If false (the default), only references will be included.
|
|
2121
|
+
* @param {boolean} [includeLanguageList] Whether or not to include descriptions of the language tags.
|
|
2122
|
+
* @param {*} [options] Override http request option.
|
|
2123
|
+
* @throws {RequiredError}
|
|
2124
|
+
*/
|
|
2125
|
+
async getVocabularyById(vocabularyId, includeVersions, includeAccessPoints, includeRelatedEntitiesAndVocabularies, includeLanguageList, options) {
|
|
2126
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getVocabularyById(vocabularyId, includeVersions, includeAccessPoints, includeRelatedEntitiesAndVocabularies, includeLanguageList, options);
|
|
2127
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2128
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['ResourcesApi.getVocabularyById']?.[localVarOperationServerIndex]?.url;
|
|
2129
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2130
|
+
},
|
|
2131
|
+
/**
|
|
2132
|
+
* Access points that have source=SYSTEM are stripped out.
|
|
2133
|
+
* @summary Get a vocabulary by its id, for editing.
|
|
2134
|
+
* @param {number} vocabularyId The ID of the vocabulary to get for editing.
|
|
2135
|
+
* @param {*} [options] Override http request option.
|
|
2136
|
+
* @throws {RequiredError}
|
|
2137
|
+
*/
|
|
2138
|
+
async getVocabularyByIdEdit(vocabularyId, options) {
|
|
2139
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getVocabularyByIdEdit(vocabularyId, options);
|
|
2140
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2141
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['ResourcesApi.getVocabularyByIdEdit']?.[localVarOperationServerIndex]?.url;
|
|
2142
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2143
|
+
},
|
|
2144
|
+
/**
|
|
2145
|
+
*
|
|
2146
|
+
* @summary Get a current vocabulary by its slug.
|
|
2147
|
+
* @param {string} slug The slug of the vocabulary to get.
|
|
2148
|
+
* @param {boolean} [includeVersions] Whether or not to include version elements. If enabled, versions are returned in reverse order of release date.
|
|
2149
|
+
* @param {boolean} [includeAccessPoints] Whether or not to include access points. Setting this to true forces includeVersions also to be true.
|
|
2150
|
+
* @param {boolean} [includeRelatedEntitiesAndVocabularies] Whether or not to include full details of related entities, and top-level details of related vocabularies. If false (the default), only references will be included.
|
|
2151
|
+
* @param {boolean} [includeLanguageList] Whether or not to include descriptions of the language tags.
|
|
2152
|
+
* @param {*} [options] Override http request option.
|
|
2153
|
+
* @throws {RequiredError}
|
|
2154
|
+
*/
|
|
2155
|
+
async getVocabularyBySlug(slug, includeVersions, includeAccessPoints, includeRelatedEntitiesAndVocabularies, includeLanguageList, options) {
|
|
2156
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getVocabularyBySlug(slug, includeVersions, includeAccessPoints, includeRelatedEntitiesAndVocabularies, includeLanguageList, options);
|
|
2157
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2158
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['ResourcesApi.getVocabularyBySlug']?.[localVarOperationServerIndex]?.url;
|
|
2159
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2160
|
+
},
|
|
2161
|
+
/**
|
|
2162
|
+
* Returns true, if the version has a draft instance. Returns false, if there is no draft instance with that version id. The result is returned in the booleanValue property.
|
|
2163
|
+
* @summary Determine if a version has a draft instance.
|
|
2164
|
+
* @param {number} versionId The ID of the version to check.
|
|
2165
|
+
* @param {*} [options] Override http request option.
|
|
2166
|
+
* @throws {RequiredError}
|
|
2167
|
+
*/
|
|
2168
|
+
async hasDraftVersionById(versionId, options) {
|
|
2169
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.hasDraftVersionById(versionId, options);
|
|
2170
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2171
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['ResourcesApi.hasDraftVersionById']?.[localVarOperationServerIndex]?.url;
|
|
2172
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2173
|
+
},
|
|
2174
|
+
/**
|
|
2175
|
+
* Returns true, if the vocabulary has a draft instance, and the user is authorized to access it. Returns false in every other case, i.e., if there is no draft instance with that vocabulary id, or even if there is such a draft instance, but the user is not authorized to access it. The result is returned in the booleanValue property.
|
|
2176
|
+
* @summary Determine if a vocabulary has a draft instance.
|
|
2177
|
+
* @param {number} vocabularyId The ID of the vocabulary to check.
|
|
2178
|
+
* @param {*} [options] Override http request option.
|
|
2179
|
+
* @throws {RequiredError}
|
|
2180
|
+
*/
|
|
2181
|
+
async hasDraftVocabularyById(vocabularyId, options) {
|
|
2182
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.hasDraftVocabularyById(vocabularyId, options);
|
|
2183
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2184
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['ResourcesApi.hasDraftVocabularyById']?.[localVarOperationServerIndex]?.url;
|
|
2185
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2186
|
+
},
|
|
2187
|
+
/**
|
|
2188
|
+
*
|
|
2189
|
+
* @summary Query if the user has authorization to modify a current vocabulary. A Boolean result will be returned.
|
|
2190
|
+
* @param {number} vocabularyId The ID of the vocabulary to check ownership.
|
|
2191
|
+
* @param {*} [options] Override http request option.
|
|
2192
|
+
* @throws {RequiredError}
|
|
2193
|
+
*/
|
|
2194
|
+
async ownsVocabularyById(vocabularyId, options) {
|
|
2195
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.ownsVocabularyById(vocabularyId, options);
|
|
2196
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2197
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['ResourcesApi.ownsVocabularyById']?.[localVarOperationServerIndex]?.url;
|
|
2198
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2199
|
+
},
|
|
2200
|
+
/**
|
|
2201
|
+
*
|
|
2202
|
+
* @summary Update a related entity.
|
|
2203
|
+
* @param {number} relatedEntityId The ID of the related entity to be updated.
|
|
2204
|
+
* @param {RelatedEntity} body The new value of the related entity.
|
|
2205
|
+
* @param {*} [options] Override http request option.
|
|
2206
|
+
* @throws {RequiredError}
|
|
2207
|
+
*/
|
|
2208
|
+
async updateRelatedEntity(relatedEntityId, body, options) {
|
|
2209
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateRelatedEntity(relatedEntityId, body, options);
|
|
2210
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2211
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['ResourcesApi.updateRelatedEntity']?.[localVarOperationServerIndex]?.url;
|
|
2212
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2213
|
+
},
|
|
2214
|
+
/**
|
|
2215
|
+
*
|
|
2216
|
+
* @summary Update a vocabulary.
|
|
2217
|
+
* @param {number} vocabularyId The ID of the vocabulary to be updated.
|
|
2218
|
+
* @param {Vocabulary} body The vocabulary to be updated.
|
|
2219
|
+
* @param {*} [options] Override http request option.
|
|
2220
|
+
* @throws {RequiredError}
|
|
2221
|
+
*/
|
|
2222
|
+
async updateVocabulary(vocabularyId, body, options) {
|
|
2223
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateVocabulary(vocabularyId, body, options);
|
|
2224
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2225
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['ResourcesApi.updateVocabulary']?.[localVarOperationServerIndex]?.url;
|
|
2226
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2227
|
+
},
|
|
2228
|
+
};
|
|
2229
|
+
};
|
|
2230
|
+
exports.ResourcesApiFp = ResourcesApiFp;
|
|
2231
|
+
/**
|
|
2232
|
+
* ResourcesApi - factory interface
|
|
2233
|
+
*/
|
|
2234
|
+
const ResourcesApiFactory = function (configuration, basePath, axios) {
|
|
2235
|
+
const localVarFp = (0, exports.ResourcesApiFp)(configuration);
|
|
2236
|
+
return {
|
|
2237
|
+
/**
|
|
2238
|
+
*
|
|
2239
|
+
* @summary Create a new related entity.
|
|
2240
|
+
* @param {RelatedEntity} body The related entity to be added.
|
|
2241
|
+
* @param {*} [options] Override http request option.
|
|
2242
|
+
* @throws {RequiredError}
|
|
2243
|
+
*/
|
|
2244
|
+
createRelatedEntity(body, options) {
|
|
2245
|
+
return localVarFp.createRelatedEntity(body, options).then((request) => request(axios, basePath));
|
|
2246
|
+
},
|
|
2247
|
+
/**
|
|
2248
|
+
* The response contains the ID of the resulting upload in the integerValue field, and the sanitized filename in the stringValue field.
|
|
2249
|
+
* @summary Upload a file.
|
|
2250
|
+
* @param {string} owner The owner of the upload
|
|
2251
|
+
* @param {string} format The type of the upload
|
|
2252
|
+
* @param {File} file The file to upload
|
|
2253
|
+
* @param {*} [options] Override http request option.
|
|
2254
|
+
* @throws {RequiredError}
|
|
2255
|
+
*/
|
|
2256
|
+
createUpload(owner, format, file, options) {
|
|
2257
|
+
return localVarFp.createUpload(owner, format, file, options).then((request) => request(axios, basePath));
|
|
2258
|
+
},
|
|
2259
|
+
/**
|
|
2260
|
+
*
|
|
2261
|
+
* @summary Create a new vocabulary.
|
|
2262
|
+
* @param {Vocabulary} body The vocabulary to be added.
|
|
2263
|
+
* @param {*} [options] Override http request option.
|
|
2264
|
+
* @throws {RequiredError}
|
|
2265
|
+
*/
|
|
2266
|
+
createVocabulary(body, options) {
|
|
2267
|
+
return localVarFp.createVocabulary(body, options).then((request) => request(axios, basePath));
|
|
2268
|
+
},
|
|
2269
|
+
/**
|
|
2270
|
+
*
|
|
2271
|
+
* @summary Delete a related entity.
|
|
2272
|
+
* @param {number} relatedEntityId The ID of the related entity to be deleted.
|
|
2273
|
+
* @param {*} [options] Override http request option.
|
|
2274
|
+
* @throws {RequiredError}
|
|
2275
|
+
*/
|
|
2276
|
+
deleteRelatedEntity(relatedEntityId, options) {
|
|
2277
|
+
return localVarFp.deleteRelatedEntity(relatedEntityId, options).then((request) => request(axios, basePath));
|
|
2278
|
+
},
|
|
2279
|
+
/**
|
|
2280
|
+
*
|
|
2281
|
+
* @summary Delete a vocabulary.
|
|
2282
|
+
* @param {number} vocabularyId The ID of the vocabulary to be deleted.
|
|
2283
|
+
* @param {boolean} [deleteCurrent] Whether or not to delete the current version.
|
|
2284
|
+
* @param {boolean} [deleteDraft] Whether or not to delete the draft version.
|
|
2285
|
+
* @param {*} [options] Override http request option.
|
|
2286
|
+
* @throws {RequiredError}
|
|
2287
|
+
*/
|
|
2288
|
+
deleteVocabulary(vocabularyId, deleteCurrent, deleteDraft, options) {
|
|
2289
|
+
return localVarFp.deleteVocabulary(vocabularyId, deleteCurrent, deleteDraft, options).then((request) => request(axios, basePath));
|
|
2290
|
+
},
|
|
2291
|
+
/**
|
|
2292
|
+
* In this version of the download method, a download format is specified as a query parameter. The response will include a Content-Disposition header that specifies a full filename based on the underlying data; its extension may be different from the value of the format query parameter.
|
|
2293
|
+
* @summary Get a download.
|
|
2294
|
+
* @param {number} downloadId The Id of the download.
|
|
2295
|
+
* @param {string} [format] The format of the download. This must be a filename extension without the period, e.g., \"rdf\".
|
|
2296
|
+
* @param {*} [options] Override http request option.
|
|
2297
|
+
* @throws {RequiredError}
|
|
2298
|
+
*/
|
|
2299
|
+
download(downloadId, format, options) {
|
|
2300
|
+
return localVarFp.download(downloadId, format, options).then((request) => request(axios, basePath));
|
|
2301
|
+
},
|
|
2302
|
+
/**
|
|
2303
|
+
* In this version of the download method, the last component of the URL specifies a filename and an extension. The response will include a Content-Disposition header that specifies a filename and extension based on the underlying data; they may be different from the values specified.
|
|
2304
|
+
* @summary Get a download.
|
|
2305
|
+
* @param {number} downloadId The Id of the download.
|
|
2306
|
+
* @param {string} filename The filename of the download.
|
|
2307
|
+
* @param {string} extension The format of the download. This must be a filename extension without the period, e.g., \"rdf\".
|
|
2308
|
+
* @param {*} [options] Override http request option.
|
|
2309
|
+
* @throws {RequiredError}
|
|
2310
|
+
*/
|
|
2311
|
+
downloadWithFilename(downloadId, filename, extension, options) {
|
|
2312
|
+
return localVarFp.downloadWithFilename(downloadId, filename, extension, options).then((request) => request(axios, basePath));
|
|
2313
|
+
},
|
|
2314
|
+
/**
|
|
2315
|
+
*
|
|
2316
|
+
* @summary Get the current access points of a version, by its version id.
|
|
2317
|
+
* @param {number} versionId The ID of the version from which to get the current access points.
|
|
2318
|
+
* @param {*} [options] Override http request option.
|
|
2319
|
+
* @throws {RequiredError}
|
|
2320
|
+
*/
|
|
2321
|
+
getAccessPointsForVersionById(versionId, options) {
|
|
2322
|
+
return localVarFp.getAccessPointsForVersionById(versionId, options).then((request) => request(axios, basePath));
|
|
2323
|
+
},
|
|
2324
|
+
/**
|
|
2325
|
+
* The result list contains one element for each vocabulary owned by the caller. The status attribute will be \"draft\" if there is only a draft instance of the vocabulary; in this case, hasDraft will be true. Otherwise, status will be either \"published\" or \"deprecated\", and hasDraft will be true if there is also a draft instance.
|
|
2326
|
+
* @summary Get a list of vocabularies owned by the caller.
|
|
2327
|
+
* @param {*} [options] Override http request option.
|
|
2328
|
+
* @throws {RequiredError}
|
|
2329
|
+
*/
|
|
2330
|
+
getOwnedVocabularies(options) {
|
|
2331
|
+
return localVarFp.getOwnedVocabularies(options).then((request) => request(axios, basePath));
|
|
2332
|
+
},
|
|
2333
|
+
/**
|
|
2334
|
+
*
|
|
2335
|
+
* @summary Get all current related entities, optionally, filtered by related entity type. Results do not include related entity identifiers.
|
|
2336
|
+
* @param {GetRelatedEntitiesRelatedEntityTypeEnum} [relatedEntityType] The type of the related entities to get.
|
|
2337
|
+
* @param {*} [options] Override http request option.
|
|
2338
|
+
* @throws {RequiredError}
|
|
2339
|
+
*/
|
|
2340
|
+
getRelatedEntities(relatedEntityType, options) {
|
|
2341
|
+
return localVarFp.getRelatedEntities(relatedEntityType, options).then((request) => request(axios, basePath));
|
|
2342
|
+
},
|
|
2343
|
+
/**
|
|
2344
|
+
*
|
|
2345
|
+
* @summary Get the current related entities of a vocabulary, by its vocabulary id.
|
|
2346
|
+
* @param {number} vocabularyId The ID of the vocabulary from which to get the current related entities.
|
|
2347
|
+
* @param {*} [options] Override http request option.
|
|
2348
|
+
* @throws {RequiredError}
|
|
2349
|
+
*/
|
|
2350
|
+
getRelatedEntitiesForVocabularyById(vocabularyId, options) {
|
|
2351
|
+
return localVarFp.getRelatedEntitiesForVocabularyById(vocabularyId, options).then((request) => request(axios, basePath));
|
|
2352
|
+
},
|
|
2353
|
+
/**
|
|
2354
|
+
*
|
|
2355
|
+
* @summary Get a current related entity by its id.
|
|
2356
|
+
* @param {number} relatedEntityId The ID of the related entity to get.
|
|
2357
|
+
* @param {*} [options] Override http request option.
|
|
2358
|
+
* @throws {RequiredError}
|
|
2359
|
+
*/
|
|
2360
|
+
getRelatedEntityById(relatedEntityId, options) {
|
|
2361
|
+
return localVarFp.getRelatedEntityById(relatedEntityId, options).then((request) => request(axios, basePath));
|
|
2362
|
+
},
|
|
2363
|
+
/**
|
|
2364
|
+
*
|
|
2365
|
+
* @summary Get the current concept tree of a version, by its version id.
|
|
2366
|
+
* @param {number} versionId The ID of the version from which to get the concept tree.
|
|
2367
|
+
* @param {*} [options] Override http request option.
|
|
2368
|
+
* @throws {RequiredError}
|
|
2369
|
+
*/
|
|
2370
|
+
getVersionArtefactConceptTree(versionId, options) {
|
|
2371
|
+
return localVarFp.getVersionArtefactConceptTree(versionId, options).then((request) => request(axios, basePath));
|
|
2372
|
+
},
|
|
2373
|
+
/**
|
|
2374
|
+
*
|
|
2375
|
+
* @summary Get the current version artefacts of a version, by its version id. Results can be filtered by version artefact type.
|
|
2376
|
+
* @param {number} versionId The ID of the version from which to get the version artefacts.
|
|
2377
|
+
* @param {GetVersionArtefactsTypeEnum} [type] Version artefact type used to filter results.
|
|
2378
|
+
* @param {*} [options] Override http request option.
|
|
2379
|
+
* @throws {RequiredError}
|
|
2380
|
+
*/
|
|
2381
|
+
getVersionArtefacts(versionId, type, options) {
|
|
2382
|
+
return localVarFp.getVersionArtefacts(versionId, type, options).then((request) => request(axios, basePath));
|
|
2383
|
+
},
|
|
2384
|
+
/**
|
|
2385
|
+
*
|
|
2386
|
+
* @summary Get a current version by its id.
|
|
2387
|
+
* @param {number} versionId The ID of the version to get.
|
|
2388
|
+
* @param {*} [options] Override http request option.
|
|
2389
|
+
* @throws {RequiredError}
|
|
2390
|
+
*/
|
|
2391
|
+
getVersionById(versionId, options) {
|
|
2392
|
+
return localVarFp.getVersionById(versionId, options).then((request) => request(axios, basePath));
|
|
2393
|
+
},
|
|
2394
|
+
/**
|
|
2395
|
+
*
|
|
2396
|
+
* @summary Get the current versions of a vocabulary, by its vocabulary id. The results are returned in reverse order of release date.
|
|
2397
|
+
* @param {number} vocabularyId The ID of the vocabulary from which to get the current versions.
|
|
2398
|
+
* @param {*} [options] Override http request option.
|
|
2399
|
+
* @throws {RequiredError}
|
|
2400
|
+
*/
|
|
2401
|
+
getVersionsForVocabularyById(vocabularyId, options) {
|
|
2402
|
+
return localVarFp.getVersionsForVocabularyById(vocabularyId, options).then((request) => request(axios, basePath));
|
|
2403
|
+
},
|
|
2404
|
+
/**
|
|
2405
|
+
*
|
|
2406
|
+
* @summary Get all the current vocabularies. This includes both published and deprecated vocabularies.
|
|
2407
|
+
* @param {*} [options] Override http request option.
|
|
2408
|
+
* @throws {RequiredError}
|
|
2409
|
+
*/
|
|
2410
|
+
getVocabularies(options) {
|
|
2411
|
+
return localVarFp.getVocabularies(options).then((request) => request(axios, basePath));
|
|
2412
|
+
},
|
|
2413
|
+
/**
|
|
2414
|
+
*
|
|
2415
|
+
* @summary Get all current vocabularies related to a related entity, by the related entity\'s id.
|
|
2416
|
+
* @param {number} relatedEntityId The ID of the related entity for which to get the vocabularies related to it.
|
|
2417
|
+
* @param {*} [options] Override http request option.
|
|
2418
|
+
* @throws {RequiredError}
|
|
2419
|
+
*/
|
|
2420
|
+
getVocabulariesRelatedToRelatedEntityById(relatedEntityId, options) {
|
|
2421
|
+
return localVarFp.getVocabulariesRelatedToRelatedEntityById(relatedEntityId, options).then((request) => request(axios, basePath));
|
|
2422
|
+
},
|
|
2423
|
+
/**
|
|
2424
|
+
*
|
|
2425
|
+
* @summary Get all current vocabularies related to a vocabulary, by its vocabulary id.
|
|
2426
|
+
* @param {number} vocabularyId The ID of the vocabulary for which to get the vocabularies related to it.
|
|
2427
|
+
* @param {*} [options] Override http request option.
|
|
2428
|
+
* @throws {RequiredError}
|
|
2429
|
+
*/
|
|
2430
|
+
getVocabulariesRelatedToVocabularyById(vocabularyId, options) {
|
|
2431
|
+
return localVarFp.getVocabulariesRelatedToVocabularyById(vocabularyId, options).then((request) => request(axios, basePath));
|
|
2432
|
+
},
|
|
2433
|
+
/**
|
|
2434
|
+
*
|
|
2435
|
+
* @summary Get a current vocabulary by its id.
|
|
2436
|
+
* @param {number} vocabularyId The ID of the vocabulary to get.
|
|
2437
|
+
* @param {boolean} [includeVersions] Whether or not to include version elements. If enabled, versions are returned in reverse order of release date.
|
|
2438
|
+
* @param {boolean} [includeAccessPoints] Whether or not to include access points. Setting this to true forces includeVersions also to be true.
|
|
2439
|
+
* @param {boolean} [includeRelatedEntitiesAndVocabularies] Whether or not to include full details of related entities, and top-level details of related vocabularies. If false (the default), only references will be included.
|
|
2440
|
+
* @param {boolean} [includeLanguageList] Whether or not to include descriptions of the language tags.
|
|
2441
|
+
* @param {*} [options] Override http request option.
|
|
2442
|
+
* @throws {RequiredError}
|
|
2443
|
+
*/
|
|
2444
|
+
getVocabularyById(vocabularyId, includeVersions, includeAccessPoints, includeRelatedEntitiesAndVocabularies, includeLanguageList, options) {
|
|
2445
|
+
return localVarFp.getVocabularyById(vocabularyId, includeVersions, includeAccessPoints, includeRelatedEntitiesAndVocabularies, includeLanguageList, options).then((request) => request(axios, basePath));
|
|
2446
|
+
},
|
|
2447
|
+
/**
|
|
2448
|
+
* Access points that have source=SYSTEM are stripped out.
|
|
2449
|
+
* @summary Get a vocabulary by its id, for editing.
|
|
2450
|
+
* @param {number} vocabularyId The ID of the vocabulary to get for editing.
|
|
2451
|
+
* @param {*} [options] Override http request option.
|
|
2452
|
+
* @throws {RequiredError}
|
|
2453
|
+
*/
|
|
2454
|
+
getVocabularyByIdEdit(vocabularyId, options) {
|
|
2455
|
+
return localVarFp.getVocabularyByIdEdit(vocabularyId, options).then((request) => request(axios, basePath));
|
|
2456
|
+
},
|
|
2457
|
+
/**
|
|
2458
|
+
*
|
|
2459
|
+
* @summary Get a current vocabulary by its slug.
|
|
2460
|
+
* @param {string} slug The slug of the vocabulary to get.
|
|
2461
|
+
* @param {boolean} [includeVersions] Whether or not to include version elements. If enabled, versions are returned in reverse order of release date.
|
|
2462
|
+
* @param {boolean} [includeAccessPoints] Whether or not to include access points. Setting this to true forces includeVersions also to be true.
|
|
2463
|
+
* @param {boolean} [includeRelatedEntitiesAndVocabularies] Whether or not to include full details of related entities, and top-level details of related vocabularies. If false (the default), only references will be included.
|
|
2464
|
+
* @param {boolean} [includeLanguageList] Whether or not to include descriptions of the language tags.
|
|
2465
|
+
* @param {*} [options] Override http request option.
|
|
2466
|
+
* @throws {RequiredError}
|
|
2467
|
+
*/
|
|
2468
|
+
getVocabularyBySlug(slug, includeVersions, includeAccessPoints, includeRelatedEntitiesAndVocabularies, includeLanguageList, options) {
|
|
2469
|
+
return localVarFp.getVocabularyBySlug(slug, includeVersions, includeAccessPoints, includeRelatedEntitiesAndVocabularies, includeLanguageList, options).then((request) => request(axios, basePath));
|
|
2470
|
+
},
|
|
2471
|
+
/**
|
|
2472
|
+
* Returns true, if the version has a draft instance. Returns false, if there is no draft instance with that version id. The result is returned in the booleanValue property.
|
|
2473
|
+
* @summary Determine if a version has a draft instance.
|
|
2474
|
+
* @param {number} versionId The ID of the version to check.
|
|
2475
|
+
* @param {*} [options] Override http request option.
|
|
2476
|
+
* @throws {RequiredError}
|
|
2477
|
+
*/
|
|
2478
|
+
hasDraftVersionById(versionId, options) {
|
|
2479
|
+
return localVarFp.hasDraftVersionById(versionId, options).then((request) => request(axios, basePath));
|
|
2480
|
+
},
|
|
2481
|
+
/**
|
|
2482
|
+
* Returns true, if the vocabulary has a draft instance, and the user is authorized to access it. Returns false in every other case, i.e., if there is no draft instance with that vocabulary id, or even if there is such a draft instance, but the user is not authorized to access it. The result is returned in the booleanValue property.
|
|
2483
|
+
* @summary Determine if a vocabulary has a draft instance.
|
|
2484
|
+
* @param {number} vocabularyId The ID of the vocabulary to check.
|
|
2485
|
+
* @param {*} [options] Override http request option.
|
|
2486
|
+
* @throws {RequiredError}
|
|
2487
|
+
*/
|
|
2488
|
+
hasDraftVocabularyById(vocabularyId, options) {
|
|
2489
|
+
return localVarFp.hasDraftVocabularyById(vocabularyId, options).then((request) => request(axios, basePath));
|
|
2490
|
+
},
|
|
2491
|
+
/**
|
|
2492
|
+
*
|
|
2493
|
+
* @summary Query if the user has authorization to modify a current vocabulary. A Boolean result will be returned.
|
|
2494
|
+
* @param {number} vocabularyId The ID of the vocabulary to check ownership.
|
|
2495
|
+
* @param {*} [options] Override http request option.
|
|
2496
|
+
* @throws {RequiredError}
|
|
2497
|
+
*/
|
|
2498
|
+
ownsVocabularyById(vocabularyId, options) {
|
|
2499
|
+
return localVarFp.ownsVocabularyById(vocabularyId, options).then((request) => request(axios, basePath));
|
|
2500
|
+
},
|
|
2501
|
+
/**
|
|
2502
|
+
*
|
|
2503
|
+
* @summary Update a related entity.
|
|
2504
|
+
* @param {number} relatedEntityId The ID of the related entity to be updated.
|
|
2505
|
+
* @param {RelatedEntity} body The new value of the related entity.
|
|
2506
|
+
* @param {*} [options] Override http request option.
|
|
2507
|
+
* @throws {RequiredError}
|
|
2508
|
+
*/
|
|
2509
|
+
updateRelatedEntity(relatedEntityId, body, options) {
|
|
2510
|
+
return localVarFp.updateRelatedEntity(relatedEntityId, body, options).then((request) => request(axios, basePath));
|
|
2511
|
+
},
|
|
2512
|
+
/**
|
|
2513
|
+
*
|
|
2514
|
+
* @summary Update a vocabulary.
|
|
2515
|
+
* @param {number} vocabularyId The ID of the vocabulary to be updated.
|
|
2516
|
+
* @param {Vocabulary} body The vocabulary to be updated.
|
|
2517
|
+
* @param {*} [options] Override http request option.
|
|
2518
|
+
* @throws {RequiredError}
|
|
2519
|
+
*/
|
|
2520
|
+
updateVocabulary(vocabularyId, body, options) {
|
|
2521
|
+
return localVarFp.updateVocabulary(vocabularyId, body, options).then((request) => request(axios, basePath));
|
|
2522
|
+
},
|
|
2523
|
+
};
|
|
2524
|
+
};
|
|
2525
|
+
exports.ResourcesApiFactory = ResourcesApiFactory;
|
|
2526
|
+
/**
|
|
2527
|
+
* ResourcesApi - object-oriented interface
|
|
2528
|
+
*/
|
|
2529
|
+
class ResourcesApi extends base_1.BaseAPI {
|
|
2530
|
+
/**
|
|
2531
|
+
*
|
|
2532
|
+
* @summary Create a new related entity.
|
|
2533
|
+
* @param {RelatedEntity} body The related entity to be added.
|
|
2534
|
+
* @param {*} [options] Override http request option.
|
|
2535
|
+
* @throws {RequiredError}
|
|
2536
|
+
*/
|
|
2537
|
+
createRelatedEntity(body, options) {
|
|
2538
|
+
return (0, exports.ResourcesApiFp)(this.configuration).createRelatedEntity(body, options).then((request) => request(this.axios, this.basePath));
|
|
2539
|
+
}
|
|
2540
|
+
/**
|
|
2541
|
+
* The response contains the ID of the resulting upload in the integerValue field, and the sanitized filename in the stringValue field.
|
|
2542
|
+
* @summary Upload a file.
|
|
2543
|
+
* @param {string} owner The owner of the upload
|
|
2544
|
+
* @param {string} format The type of the upload
|
|
2545
|
+
* @param {File} file The file to upload
|
|
2546
|
+
* @param {*} [options] Override http request option.
|
|
2547
|
+
* @throws {RequiredError}
|
|
2548
|
+
*/
|
|
2549
|
+
createUpload(owner, format, file, options) {
|
|
2550
|
+
return (0, exports.ResourcesApiFp)(this.configuration).createUpload(owner, format, file, options).then((request) => request(this.axios, this.basePath));
|
|
2551
|
+
}
|
|
2552
|
+
/**
|
|
2553
|
+
*
|
|
2554
|
+
* @summary Create a new vocabulary.
|
|
2555
|
+
* @param {Vocabulary} body The vocabulary to be added.
|
|
2556
|
+
* @param {*} [options] Override http request option.
|
|
2557
|
+
* @throws {RequiredError}
|
|
2558
|
+
*/
|
|
2559
|
+
createVocabulary(body, options) {
|
|
2560
|
+
return (0, exports.ResourcesApiFp)(this.configuration).createVocabulary(body, options).then((request) => request(this.axios, this.basePath));
|
|
2561
|
+
}
|
|
2562
|
+
/**
|
|
2563
|
+
*
|
|
2564
|
+
* @summary Delete a related entity.
|
|
2565
|
+
* @param {number} relatedEntityId The ID of the related entity to be deleted.
|
|
2566
|
+
* @param {*} [options] Override http request option.
|
|
2567
|
+
* @throws {RequiredError}
|
|
2568
|
+
*/
|
|
2569
|
+
deleteRelatedEntity(relatedEntityId, options) {
|
|
2570
|
+
return (0, exports.ResourcesApiFp)(this.configuration).deleteRelatedEntity(relatedEntityId, options).then((request) => request(this.axios, this.basePath));
|
|
2571
|
+
}
|
|
2572
|
+
/**
|
|
2573
|
+
*
|
|
2574
|
+
* @summary Delete a vocabulary.
|
|
2575
|
+
* @param {number} vocabularyId The ID of the vocabulary to be deleted.
|
|
2576
|
+
* @param {boolean} [deleteCurrent] Whether or not to delete the current version.
|
|
2577
|
+
* @param {boolean} [deleteDraft] Whether or not to delete the draft version.
|
|
2578
|
+
* @param {*} [options] Override http request option.
|
|
2579
|
+
* @throws {RequiredError}
|
|
2580
|
+
*/
|
|
2581
|
+
deleteVocabulary(vocabularyId, deleteCurrent, deleteDraft, options) {
|
|
2582
|
+
return (0, exports.ResourcesApiFp)(this.configuration).deleteVocabulary(vocabularyId, deleteCurrent, deleteDraft, options).then((request) => request(this.axios, this.basePath));
|
|
2583
|
+
}
|
|
2584
|
+
/**
|
|
2585
|
+
* In this version of the download method, a download format is specified as a query parameter. The response will include a Content-Disposition header that specifies a full filename based on the underlying data; its extension may be different from the value of the format query parameter.
|
|
2586
|
+
* @summary Get a download.
|
|
2587
|
+
* @param {number} downloadId The Id of the download.
|
|
2588
|
+
* @param {string} [format] The format of the download. This must be a filename extension without the period, e.g., \"rdf\".
|
|
2589
|
+
* @param {*} [options] Override http request option.
|
|
2590
|
+
* @throws {RequiredError}
|
|
2591
|
+
*/
|
|
2592
|
+
download(downloadId, format, options) {
|
|
2593
|
+
return (0, exports.ResourcesApiFp)(this.configuration).download(downloadId, format, options).then((request) => request(this.axios, this.basePath));
|
|
2594
|
+
}
|
|
2595
|
+
/**
|
|
2596
|
+
* In this version of the download method, the last component of the URL specifies a filename and an extension. The response will include a Content-Disposition header that specifies a filename and extension based on the underlying data; they may be different from the values specified.
|
|
2597
|
+
* @summary Get a download.
|
|
2598
|
+
* @param {number} downloadId The Id of the download.
|
|
2599
|
+
* @param {string} filename The filename of the download.
|
|
2600
|
+
* @param {string} extension The format of the download. This must be a filename extension without the period, e.g., \"rdf\".
|
|
2601
|
+
* @param {*} [options] Override http request option.
|
|
2602
|
+
* @throws {RequiredError}
|
|
2603
|
+
*/
|
|
2604
|
+
downloadWithFilename(downloadId, filename, extension, options) {
|
|
2605
|
+
return (0, exports.ResourcesApiFp)(this.configuration).downloadWithFilename(downloadId, filename, extension, options).then((request) => request(this.axios, this.basePath));
|
|
2606
|
+
}
|
|
2607
|
+
/**
|
|
2608
|
+
*
|
|
2609
|
+
* @summary Get the current access points of a version, by its version id.
|
|
2610
|
+
* @param {number} versionId The ID of the version from which to get the current access points.
|
|
2611
|
+
* @param {*} [options] Override http request option.
|
|
2612
|
+
* @throws {RequiredError}
|
|
2613
|
+
*/
|
|
2614
|
+
getAccessPointsForVersionById(versionId, options) {
|
|
2615
|
+
return (0, exports.ResourcesApiFp)(this.configuration).getAccessPointsForVersionById(versionId, options).then((request) => request(this.axios, this.basePath));
|
|
2616
|
+
}
|
|
2617
|
+
/**
|
|
2618
|
+
* The result list contains one element for each vocabulary owned by the caller. The status attribute will be \"draft\" if there is only a draft instance of the vocabulary; in this case, hasDraft will be true. Otherwise, status will be either \"published\" or \"deprecated\", and hasDraft will be true if there is also a draft instance.
|
|
2619
|
+
* @summary Get a list of vocabularies owned by the caller.
|
|
2620
|
+
* @param {*} [options] Override http request option.
|
|
2621
|
+
* @throws {RequiredError}
|
|
2622
|
+
*/
|
|
2623
|
+
getOwnedVocabularies(options) {
|
|
2624
|
+
return (0, exports.ResourcesApiFp)(this.configuration).getOwnedVocabularies(options).then((request) => request(this.axios, this.basePath));
|
|
2625
|
+
}
|
|
2626
|
+
/**
|
|
2627
|
+
*
|
|
2628
|
+
* @summary Get all current related entities, optionally, filtered by related entity type. Results do not include related entity identifiers.
|
|
2629
|
+
* @param {GetRelatedEntitiesRelatedEntityTypeEnum} [relatedEntityType] The type of the related entities to get.
|
|
2630
|
+
* @param {*} [options] Override http request option.
|
|
2631
|
+
* @throws {RequiredError}
|
|
2632
|
+
*/
|
|
2633
|
+
getRelatedEntities(relatedEntityType, options) {
|
|
2634
|
+
return (0, exports.ResourcesApiFp)(this.configuration).getRelatedEntities(relatedEntityType, options).then((request) => request(this.axios, this.basePath));
|
|
2635
|
+
}
|
|
2636
|
+
/**
|
|
2637
|
+
*
|
|
2638
|
+
* @summary Get the current related entities of a vocabulary, by its vocabulary id.
|
|
2639
|
+
* @param {number} vocabularyId The ID of the vocabulary from which to get the current related entities.
|
|
2640
|
+
* @param {*} [options] Override http request option.
|
|
2641
|
+
* @throws {RequiredError}
|
|
2642
|
+
*/
|
|
2643
|
+
getRelatedEntitiesForVocabularyById(vocabularyId, options) {
|
|
2644
|
+
return (0, exports.ResourcesApiFp)(this.configuration).getRelatedEntitiesForVocabularyById(vocabularyId, options).then((request) => request(this.axios, this.basePath));
|
|
2645
|
+
}
|
|
2646
|
+
/**
|
|
2647
|
+
*
|
|
2648
|
+
* @summary Get a current related entity by its id.
|
|
2649
|
+
* @param {number} relatedEntityId The ID of the related entity to get.
|
|
2650
|
+
* @param {*} [options] Override http request option.
|
|
2651
|
+
* @throws {RequiredError}
|
|
2652
|
+
*/
|
|
2653
|
+
getRelatedEntityById(relatedEntityId, options) {
|
|
2654
|
+
return (0, exports.ResourcesApiFp)(this.configuration).getRelatedEntityById(relatedEntityId, options).then((request) => request(this.axios, this.basePath));
|
|
2655
|
+
}
|
|
2656
|
+
/**
|
|
2657
|
+
*
|
|
2658
|
+
* @summary Get the current concept tree of a version, by its version id.
|
|
2659
|
+
* @param {number} versionId The ID of the version from which to get the concept tree.
|
|
2660
|
+
* @param {*} [options] Override http request option.
|
|
2661
|
+
* @throws {RequiredError}
|
|
2662
|
+
*/
|
|
2663
|
+
getVersionArtefactConceptTree(versionId, options) {
|
|
2664
|
+
return (0, exports.ResourcesApiFp)(this.configuration).getVersionArtefactConceptTree(versionId, options).then((request) => request(this.axios, this.basePath));
|
|
2665
|
+
}
|
|
2666
|
+
/**
|
|
2667
|
+
*
|
|
2668
|
+
* @summary Get the current version artefacts of a version, by its version id. Results can be filtered by version artefact type.
|
|
2669
|
+
* @param {number} versionId The ID of the version from which to get the version artefacts.
|
|
2670
|
+
* @param {GetVersionArtefactsTypeEnum} [type] Version artefact type used to filter results.
|
|
2671
|
+
* @param {*} [options] Override http request option.
|
|
2672
|
+
* @throws {RequiredError}
|
|
2673
|
+
*/
|
|
2674
|
+
getVersionArtefacts(versionId, type, options) {
|
|
2675
|
+
return (0, exports.ResourcesApiFp)(this.configuration).getVersionArtefacts(versionId, type, options).then((request) => request(this.axios, this.basePath));
|
|
2676
|
+
}
|
|
2677
|
+
/**
|
|
2678
|
+
*
|
|
2679
|
+
* @summary Get a current version by its id.
|
|
2680
|
+
* @param {number} versionId The ID of the version to get.
|
|
2681
|
+
* @param {*} [options] Override http request option.
|
|
2682
|
+
* @throws {RequiredError}
|
|
2683
|
+
*/
|
|
2684
|
+
getVersionById(versionId, options) {
|
|
2685
|
+
return (0, exports.ResourcesApiFp)(this.configuration).getVersionById(versionId, options).then((request) => request(this.axios, this.basePath));
|
|
2686
|
+
}
|
|
2687
|
+
/**
|
|
2688
|
+
*
|
|
2689
|
+
* @summary Get the current versions of a vocabulary, by its vocabulary id. The results are returned in reverse order of release date.
|
|
2690
|
+
* @param {number} vocabularyId The ID of the vocabulary from which to get the current versions.
|
|
2691
|
+
* @param {*} [options] Override http request option.
|
|
2692
|
+
* @throws {RequiredError}
|
|
2693
|
+
*/
|
|
2694
|
+
getVersionsForVocabularyById(vocabularyId, options) {
|
|
2695
|
+
return (0, exports.ResourcesApiFp)(this.configuration).getVersionsForVocabularyById(vocabularyId, options).then((request) => request(this.axios, this.basePath));
|
|
2696
|
+
}
|
|
2697
|
+
/**
|
|
2698
|
+
*
|
|
2699
|
+
* @summary Get all the current vocabularies. This includes both published and deprecated vocabularies.
|
|
2700
|
+
* @param {*} [options] Override http request option.
|
|
2701
|
+
* @throws {RequiredError}
|
|
2702
|
+
*/
|
|
2703
|
+
getVocabularies(options) {
|
|
2704
|
+
return (0, exports.ResourcesApiFp)(this.configuration).getVocabularies(options).then((request) => request(this.axios, this.basePath));
|
|
2705
|
+
}
|
|
2706
|
+
/**
|
|
2707
|
+
*
|
|
2708
|
+
* @summary Get all current vocabularies related to a related entity, by the related entity\'s id.
|
|
2709
|
+
* @param {number} relatedEntityId The ID of the related entity for which to get the vocabularies related to it.
|
|
2710
|
+
* @param {*} [options] Override http request option.
|
|
2711
|
+
* @throws {RequiredError}
|
|
2712
|
+
*/
|
|
2713
|
+
getVocabulariesRelatedToRelatedEntityById(relatedEntityId, options) {
|
|
2714
|
+
return (0, exports.ResourcesApiFp)(this.configuration).getVocabulariesRelatedToRelatedEntityById(relatedEntityId, options).then((request) => request(this.axios, this.basePath));
|
|
2715
|
+
}
|
|
2716
|
+
/**
|
|
2717
|
+
*
|
|
2718
|
+
* @summary Get all current vocabularies related to a vocabulary, by its vocabulary id.
|
|
2719
|
+
* @param {number} vocabularyId The ID of the vocabulary for which to get the vocabularies related to it.
|
|
2720
|
+
* @param {*} [options] Override http request option.
|
|
2721
|
+
* @throws {RequiredError}
|
|
2722
|
+
*/
|
|
2723
|
+
getVocabulariesRelatedToVocabularyById(vocabularyId, options) {
|
|
2724
|
+
return (0, exports.ResourcesApiFp)(this.configuration).getVocabulariesRelatedToVocabularyById(vocabularyId, options).then((request) => request(this.axios, this.basePath));
|
|
2725
|
+
}
|
|
2726
|
+
/**
|
|
2727
|
+
*
|
|
2728
|
+
* @summary Get a current vocabulary by its id.
|
|
2729
|
+
* @param {number} vocabularyId The ID of the vocabulary to get.
|
|
2730
|
+
* @param {boolean} [includeVersions] Whether or not to include version elements. If enabled, versions are returned in reverse order of release date.
|
|
2731
|
+
* @param {boolean} [includeAccessPoints] Whether or not to include access points. Setting this to true forces includeVersions also to be true.
|
|
2732
|
+
* @param {boolean} [includeRelatedEntitiesAndVocabularies] Whether or not to include full details of related entities, and top-level details of related vocabularies. If false (the default), only references will be included.
|
|
2733
|
+
* @param {boolean} [includeLanguageList] Whether or not to include descriptions of the language tags.
|
|
2734
|
+
* @param {*} [options] Override http request option.
|
|
2735
|
+
* @throws {RequiredError}
|
|
2736
|
+
*/
|
|
2737
|
+
getVocabularyById(vocabularyId, includeVersions, includeAccessPoints, includeRelatedEntitiesAndVocabularies, includeLanguageList, options) {
|
|
2738
|
+
return (0, exports.ResourcesApiFp)(this.configuration).getVocabularyById(vocabularyId, includeVersions, includeAccessPoints, includeRelatedEntitiesAndVocabularies, includeLanguageList, options).then((request) => request(this.axios, this.basePath));
|
|
2739
|
+
}
|
|
2740
|
+
/**
|
|
2741
|
+
* Access points that have source=SYSTEM are stripped out.
|
|
2742
|
+
* @summary Get a vocabulary by its id, for editing.
|
|
2743
|
+
* @param {number} vocabularyId The ID of the vocabulary to get for editing.
|
|
2744
|
+
* @param {*} [options] Override http request option.
|
|
2745
|
+
* @throws {RequiredError}
|
|
2746
|
+
*/
|
|
2747
|
+
getVocabularyByIdEdit(vocabularyId, options) {
|
|
2748
|
+
return (0, exports.ResourcesApiFp)(this.configuration).getVocabularyByIdEdit(vocabularyId, options).then((request) => request(this.axios, this.basePath));
|
|
2749
|
+
}
|
|
2750
|
+
/**
|
|
2751
|
+
*
|
|
2752
|
+
* @summary Get a current vocabulary by its slug.
|
|
2753
|
+
* @param {string} slug The slug of the vocabulary to get.
|
|
2754
|
+
* @param {boolean} [includeVersions] Whether or not to include version elements. If enabled, versions are returned in reverse order of release date.
|
|
2755
|
+
* @param {boolean} [includeAccessPoints] Whether or not to include access points. Setting this to true forces includeVersions also to be true.
|
|
2756
|
+
* @param {boolean} [includeRelatedEntitiesAndVocabularies] Whether or not to include full details of related entities, and top-level details of related vocabularies. If false (the default), only references will be included.
|
|
2757
|
+
* @param {boolean} [includeLanguageList] Whether or not to include descriptions of the language tags.
|
|
2758
|
+
* @param {*} [options] Override http request option.
|
|
2759
|
+
* @throws {RequiredError}
|
|
2760
|
+
*/
|
|
2761
|
+
getVocabularyBySlug(slug, includeVersions, includeAccessPoints, includeRelatedEntitiesAndVocabularies, includeLanguageList, options) {
|
|
2762
|
+
return (0, exports.ResourcesApiFp)(this.configuration).getVocabularyBySlug(slug, includeVersions, includeAccessPoints, includeRelatedEntitiesAndVocabularies, includeLanguageList, options).then((request) => request(this.axios, this.basePath));
|
|
2763
|
+
}
|
|
2764
|
+
/**
|
|
2765
|
+
* Returns true, if the version has a draft instance. Returns false, if there is no draft instance with that version id. The result is returned in the booleanValue property.
|
|
2766
|
+
* @summary Determine if a version has a draft instance.
|
|
2767
|
+
* @param {number} versionId The ID of the version to check.
|
|
2768
|
+
* @param {*} [options] Override http request option.
|
|
2769
|
+
* @throws {RequiredError}
|
|
2770
|
+
*/
|
|
2771
|
+
hasDraftVersionById(versionId, options) {
|
|
2772
|
+
return (0, exports.ResourcesApiFp)(this.configuration).hasDraftVersionById(versionId, options).then((request) => request(this.axios, this.basePath));
|
|
2773
|
+
}
|
|
2774
|
+
/**
|
|
2775
|
+
* Returns true, if the vocabulary has a draft instance, and the user is authorized to access it. Returns false in every other case, i.e., if there is no draft instance with that vocabulary id, or even if there is such a draft instance, but the user is not authorized to access it. The result is returned in the booleanValue property.
|
|
2776
|
+
* @summary Determine if a vocabulary has a draft instance.
|
|
2777
|
+
* @param {number} vocabularyId The ID of the vocabulary to check.
|
|
2778
|
+
* @param {*} [options] Override http request option.
|
|
2779
|
+
* @throws {RequiredError}
|
|
2780
|
+
*/
|
|
2781
|
+
hasDraftVocabularyById(vocabularyId, options) {
|
|
2782
|
+
return (0, exports.ResourcesApiFp)(this.configuration).hasDraftVocabularyById(vocabularyId, options).then((request) => request(this.axios, this.basePath));
|
|
2783
|
+
}
|
|
2784
|
+
/**
|
|
2785
|
+
*
|
|
2786
|
+
* @summary Query if the user has authorization to modify a current vocabulary. A Boolean result will be returned.
|
|
2787
|
+
* @param {number} vocabularyId The ID of the vocabulary to check ownership.
|
|
2788
|
+
* @param {*} [options] Override http request option.
|
|
2789
|
+
* @throws {RequiredError}
|
|
2790
|
+
*/
|
|
2791
|
+
ownsVocabularyById(vocabularyId, options) {
|
|
2792
|
+
return (0, exports.ResourcesApiFp)(this.configuration).ownsVocabularyById(vocabularyId, options).then((request) => request(this.axios, this.basePath));
|
|
2793
|
+
}
|
|
2794
|
+
/**
|
|
2795
|
+
*
|
|
2796
|
+
* @summary Update a related entity.
|
|
2797
|
+
* @param {number} relatedEntityId The ID of the related entity to be updated.
|
|
2798
|
+
* @param {RelatedEntity} body The new value of the related entity.
|
|
2799
|
+
* @param {*} [options] Override http request option.
|
|
2800
|
+
* @throws {RequiredError}
|
|
2801
|
+
*/
|
|
2802
|
+
updateRelatedEntity(relatedEntityId, body, options) {
|
|
2803
|
+
return (0, exports.ResourcesApiFp)(this.configuration).updateRelatedEntity(relatedEntityId, body, options).then((request) => request(this.axios, this.basePath));
|
|
2804
|
+
}
|
|
2805
|
+
/**
|
|
2806
|
+
*
|
|
2807
|
+
* @summary Update a vocabulary.
|
|
2808
|
+
* @param {number} vocabularyId The ID of the vocabulary to be updated.
|
|
2809
|
+
* @param {Vocabulary} body The vocabulary to be updated.
|
|
2810
|
+
* @param {*} [options] Override http request option.
|
|
2811
|
+
* @throws {RequiredError}
|
|
2812
|
+
*/
|
|
2813
|
+
updateVocabulary(vocabularyId, body, options) {
|
|
2814
|
+
return (0, exports.ResourcesApiFp)(this.configuration).updateVocabulary(vocabularyId, body, options).then((request) => request(this.axios, this.basePath));
|
|
2815
|
+
}
|
|
2816
|
+
}
|
|
2817
|
+
exports.ResourcesApi = ResourcesApi;
|
|
2818
|
+
exports.GetRelatedEntitiesRelatedEntityTypeEnum = {
|
|
2819
|
+
Party: 'party',
|
|
2820
|
+
Service: 'service',
|
|
2821
|
+
Vocabulary: 'vocabulary'
|
|
2822
|
+
};
|
|
2823
|
+
exports.GetVersionArtefactsTypeEnum = {
|
|
2824
|
+
ConceptList: 'conceptList',
|
|
2825
|
+
ConceptTree: 'conceptTree',
|
|
2826
|
+
HarvestPoolparty: 'harvestPoolparty',
|
|
2827
|
+
ResourceDocs: 'resourceDocs'
|
|
2828
|
+
};
|
|
2829
|
+
/**
|
|
2830
|
+
* ServicesApi - axios parameter creator
|
|
2831
|
+
*/
|
|
2832
|
+
const ServicesApiAxiosParamCreator = function (configuration) {
|
|
2833
|
+
return {
|
|
2834
|
+
/**
|
|
2835
|
+
*
|
|
2836
|
+
* @summary Create an email subscription for an owner.
|
|
2837
|
+
* @param {string} owner Owner to subscribe to. Specify * to subscribe to notifications for all owners.
|
|
2838
|
+
* @param {string} emailAddress Subscriber email address
|
|
2839
|
+
* @param {*} [options] Override http request option.
|
|
2840
|
+
* @throws {RequiredError}
|
|
2841
|
+
*/
|
|
2842
|
+
createEmailSubscriptionOwner: async (owner, emailAddress, options = {}) => {
|
|
2843
|
+
// verify required parameter 'owner' is not null or undefined
|
|
2844
|
+
(0, common_1.assertParamExists)('createEmailSubscriptionOwner', 'owner', owner);
|
|
2845
|
+
// verify required parameter 'emailAddress' is not null or undefined
|
|
2846
|
+
(0, common_1.assertParamExists)('createEmailSubscriptionOwner', 'emailAddress', emailAddress);
|
|
2847
|
+
const localVarPath = `/api/services/subscriptions/email/owner/{owner}`
|
|
2848
|
+
.replace(`{${"owner"}}`, encodeURIComponent(String(owner)));
|
|
2849
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2850
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2851
|
+
let baseOptions;
|
|
2852
|
+
if (configuration) {
|
|
2853
|
+
baseOptions = configuration.baseOptions;
|
|
2854
|
+
}
|
|
2855
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
2856
|
+
const localVarHeaderParameter = {};
|
|
2857
|
+
const localVarQueryParameter = {};
|
|
2858
|
+
// authentication basicAuth required
|
|
2859
|
+
// http basic authentication required
|
|
2860
|
+
(0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
|
|
2861
|
+
// authentication apiKeyAuth required
|
|
2862
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "ands_authentication", configuration);
|
|
2863
|
+
if (emailAddress !== undefined) {
|
|
2864
|
+
localVarQueryParameter['emailAddress'] = emailAddress;
|
|
2865
|
+
}
|
|
2866
|
+
localVarHeaderParameter['Accept'] = 'application/xml,application/json';
|
|
2867
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2868
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2869
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
2870
|
+
return {
|
|
2871
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2872
|
+
options: localVarRequestOptions,
|
|
2873
|
+
};
|
|
2874
|
+
},
|
|
2875
|
+
/**
|
|
2876
|
+
*
|
|
2877
|
+
* @summary Create an email subscription for the system.
|
|
2878
|
+
* @param {string} emailAddress
|
|
2879
|
+
* @param {*} [options] Override http request option.
|
|
2880
|
+
* @throws {RequiredError}
|
|
2881
|
+
*/
|
|
2882
|
+
createEmailSubscriptionSystem: async (emailAddress, options = {}) => {
|
|
2883
|
+
// verify required parameter 'emailAddress' is not null or undefined
|
|
2884
|
+
(0, common_1.assertParamExists)('createEmailSubscriptionSystem', 'emailAddress', emailAddress);
|
|
2885
|
+
const localVarPath = `/api/services/subscriptions/email/system`;
|
|
2886
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2887
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2888
|
+
let baseOptions;
|
|
2889
|
+
if (configuration) {
|
|
2890
|
+
baseOptions = configuration.baseOptions;
|
|
2891
|
+
}
|
|
2892
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
2893
|
+
const localVarHeaderParameter = {};
|
|
2894
|
+
const localVarQueryParameter = {};
|
|
2895
|
+
// authentication basicAuth required
|
|
2896
|
+
// http basic authentication required
|
|
2897
|
+
(0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
|
|
2898
|
+
// authentication apiKeyAuth required
|
|
2899
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "ands_authentication", configuration);
|
|
2900
|
+
if (emailAddress !== undefined) {
|
|
2901
|
+
localVarQueryParameter['emailAddress'] = emailAddress;
|
|
2902
|
+
}
|
|
2903
|
+
localVarHeaderParameter['Accept'] = 'application/xml,application/json';
|
|
2904
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2905
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2906
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
2907
|
+
return {
|
|
2908
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2909
|
+
options: localVarRequestOptions,
|
|
2910
|
+
};
|
|
2911
|
+
},
|
|
2912
|
+
/**
|
|
2913
|
+
*
|
|
2914
|
+
* @summary Create an email subscription for a vocabulary.
|
|
2915
|
+
* @param {number} vocabularyId The ID of the vocabulary to be subscribed to.
|
|
2916
|
+
* @param {string} emailAddress Subscriber email address
|
|
2917
|
+
* @param {*} [options] Override http request option.
|
|
2918
|
+
* @throws {RequiredError}
|
|
2919
|
+
*/
|
|
2920
|
+
createEmailSubscriptionVocabulary: async (vocabularyId, emailAddress, options = {}) => {
|
|
2921
|
+
// verify required parameter 'vocabularyId' is not null or undefined
|
|
2922
|
+
(0, common_1.assertParamExists)('createEmailSubscriptionVocabulary', 'vocabularyId', vocabularyId);
|
|
2923
|
+
// verify required parameter 'emailAddress' is not null or undefined
|
|
2924
|
+
(0, common_1.assertParamExists)('createEmailSubscriptionVocabulary', 'emailAddress', emailAddress);
|
|
2925
|
+
const localVarPath = `/api/services/subscriptions/email/vocabularies/{vocabularyId}`
|
|
2926
|
+
.replace(`{${"vocabularyId"}}`, encodeURIComponent(String(vocabularyId)));
|
|
2927
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2928
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2929
|
+
let baseOptions;
|
|
2930
|
+
if (configuration) {
|
|
2931
|
+
baseOptions = configuration.baseOptions;
|
|
2932
|
+
}
|
|
2933
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
2934
|
+
const localVarHeaderParameter = {};
|
|
2935
|
+
const localVarQueryParameter = {};
|
|
2936
|
+
// authentication basicAuth required
|
|
2937
|
+
// http basic authentication required
|
|
2938
|
+
(0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
|
|
2939
|
+
// authentication apiKeyAuth required
|
|
2940
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "ands_authentication", configuration);
|
|
2941
|
+
if (emailAddress !== undefined) {
|
|
2942
|
+
localVarQueryParameter['emailAddress'] = emailAddress;
|
|
2943
|
+
}
|
|
2944
|
+
localVarHeaderParameter['Accept'] = 'application/xml,application/json';
|
|
2945
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2946
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2947
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
2948
|
+
return {
|
|
2949
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2950
|
+
options: localVarRequestOptions,
|
|
2951
|
+
};
|
|
2952
|
+
},
|
|
2953
|
+
/**
|
|
2954
|
+
*
|
|
2955
|
+
* @summary Delete all email subscriptions for a subscriber.
|
|
2956
|
+
* @param {string} token Subscriber authentication token
|
|
2957
|
+
* @param {*} [options] Override http request option.
|
|
2958
|
+
* @throws {RequiredError}
|
|
2959
|
+
*/
|
|
2960
|
+
deleteEmailSubscriptionAll: async (token, options = {}) => {
|
|
2961
|
+
// verify required parameter 'token' is not null or undefined
|
|
2962
|
+
(0, common_1.assertParamExists)('deleteEmailSubscriptionAll', 'token', token);
|
|
2963
|
+
const localVarPath = `/api/services/subscriptions/email/all`;
|
|
2964
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2965
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2966
|
+
let baseOptions;
|
|
2967
|
+
if (configuration) {
|
|
2968
|
+
baseOptions = configuration.baseOptions;
|
|
2969
|
+
}
|
|
2970
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
|
|
2971
|
+
const localVarHeaderParameter = {};
|
|
2972
|
+
const localVarQueryParameter = {};
|
|
2973
|
+
if (token !== undefined) {
|
|
2974
|
+
localVarQueryParameter['token'] = token;
|
|
2975
|
+
}
|
|
2976
|
+
localVarHeaderParameter['Accept'] = 'application/xml,application/json';
|
|
2977
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2978
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2979
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
2980
|
+
return {
|
|
2981
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2982
|
+
options: localVarRequestOptions,
|
|
2983
|
+
};
|
|
2984
|
+
},
|
|
2985
|
+
/**
|
|
2986
|
+
*
|
|
2987
|
+
* @summary Delete an email subscription for an owner.
|
|
2988
|
+
* @param {string} token Subscriber authentication token
|
|
2989
|
+
* @param {string} owner Owner to unsubscribe from. Specify * to remove a subscription to notifications for all owners (in which case, any other existing subscriptions to individual owners will remain).
|
|
2990
|
+
* @param {*} [options] Override http request option.
|
|
2991
|
+
* @throws {RequiredError}
|
|
2992
|
+
*/
|
|
2993
|
+
deleteEmailSubscriptionOwner: async (token, owner, options = {}) => {
|
|
2994
|
+
// verify required parameter 'token' is not null or undefined
|
|
2995
|
+
(0, common_1.assertParamExists)('deleteEmailSubscriptionOwner', 'token', token);
|
|
2996
|
+
// verify required parameter 'owner' is not null or undefined
|
|
2997
|
+
(0, common_1.assertParamExists)('deleteEmailSubscriptionOwner', 'owner', owner);
|
|
2998
|
+
const localVarPath = `/api/services/subscriptions/email/owner/{owner}`
|
|
2999
|
+
.replace(`{${"owner"}}`, encodeURIComponent(String(owner)));
|
|
3000
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3001
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3002
|
+
let baseOptions;
|
|
3003
|
+
if (configuration) {
|
|
3004
|
+
baseOptions = configuration.baseOptions;
|
|
3005
|
+
}
|
|
3006
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
|
|
3007
|
+
const localVarHeaderParameter = {};
|
|
3008
|
+
const localVarQueryParameter = {};
|
|
3009
|
+
if (token !== undefined) {
|
|
3010
|
+
localVarQueryParameter['token'] = token;
|
|
3011
|
+
}
|
|
3012
|
+
localVarHeaderParameter['Accept'] = 'application/xml,application/json';
|
|
3013
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3014
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3015
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
3016
|
+
return {
|
|
3017
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3018
|
+
options: localVarRequestOptions,
|
|
3019
|
+
};
|
|
3020
|
+
},
|
|
3021
|
+
/**
|
|
3022
|
+
*
|
|
3023
|
+
* @summary Delete an email subscription for the system.
|
|
3024
|
+
* @param {string} token Subscriber authentication token
|
|
3025
|
+
* @param {*} [options] Override http request option.
|
|
3026
|
+
* @throws {RequiredError}
|
|
3027
|
+
*/
|
|
3028
|
+
deleteEmailSubscriptionSystem: async (token, options = {}) => {
|
|
3029
|
+
// verify required parameter 'token' is not null or undefined
|
|
3030
|
+
(0, common_1.assertParamExists)('deleteEmailSubscriptionSystem', 'token', token);
|
|
3031
|
+
const localVarPath = `/api/services/subscriptions/email/system`;
|
|
3032
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3033
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3034
|
+
let baseOptions;
|
|
3035
|
+
if (configuration) {
|
|
3036
|
+
baseOptions = configuration.baseOptions;
|
|
3037
|
+
}
|
|
3038
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
|
|
3039
|
+
const localVarHeaderParameter = {};
|
|
3040
|
+
const localVarQueryParameter = {};
|
|
3041
|
+
if (token !== undefined) {
|
|
3042
|
+
localVarQueryParameter['token'] = token;
|
|
3043
|
+
}
|
|
3044
|
+
localVarHeaderParameter['Accept'] = 'application/xml,application/json';
|
|
3045
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3046
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3047
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
3048
|
+
return {
|
|
3049
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3050
|
+
options: localVarRequestOptions,
|
|
3051
|
+
};
|
|
3052
|
+
},
|
|
3053
|
+
/**
|
|
3054
|
+
*
|
|
3055
|
+
* @summary Delete an email subscription for a vocabulary.
|
|
3056
|
+
* @param {string} token Subscriber authentication token
|
|
3057
|
+
* @param {number} vocabularyId The ID of the vocabulary to be unsubscribed from.
|
|
3058
|
+
* @param {*} [options] Override http request option.
|
|
3059
|
+
* @throws {RequiredError}
|
|
3060
|
+
*/
|
|
3061
|
+
deleteEmailSubscriptionVocabulary: async (token, vocabularyId, options = {}) => {
|
|
3062
|
+
// verify required parameter 'token' is not null or undefined
|
|
3063
|
+
(0, common_1.assertParamExists)('deleteEmailSubscriptionVocabulary', 'token', token);
|
|
3064
|
+
// verify required parameter 'vocabularyId' is not null or undefined
|
|
3065
|
+
(0, common_1.assertParamExists)('deleteEmailSubscriptionVocabulary', 'vocabularyId', vocabularyId);
|
|
3066
|
+
const localVarPath = `/api/services/subscriptions/email/vocabularies/{vocabularyId}`
|
|
3067
|
+
.replace(`{${"vocabularyId"}}`, encodeURIComponent(String(vocabularyId)));
|
|
3068
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3069
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3070
|
+
let baseOptions;
|
|
3071
|
+
if (configuration) {
|
|
3072
|
+
baseOptions = configuration.baseOptions;
|
|
3073
|
+
}
|
|
3074
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
|
|
3075
|
+
const localVarHeaderParameter = {};
|
|
3076
|
+
const localVarQueryParameter = {};
|
|
3077
|
+
if (token !== undefined) {
|
|
3078
|
+
localVarQueryParameter['token'] = token;
|
|
3079
|
+
}
|
|
3080
|
+
localVarHeaderParameter['Accept'] = 'application/xml,application/json';
|
|
3081
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3082
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3083
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
3084
|
+
return {
|
|
3085
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3086
|
+
options: localVarRequestOptions,
|
|
3087
|
+
};
|
|
3088
|
+
},
|
|
3089
|
+
/**
|
|
3090
|
+
*
|
|
3091
|
+
* @summary Get the email subscriptions for a subscriber.
|
|
3092
|
+
* @param {string} token Subscriber authentication token
|
|
3093
|
+
* @param {*} [options] Override http request option.
|
|
3094
|
+
* @throws {RequiredError}
|
|
3095
|
+
*/
|
|
3096
|
+
getEmailSubscriptions: async (token, options = {}) => {
|
|
3097
|
+
// verify required parameter 'token' is not null or undefined
|
|
3098
|
+
(0, common_1.assertParamExists)('getEmailSubscriptions', 'token', token);
|
|
3099
|
+
const localVarPath = `/api/services/subscriptions/email`;
|
|
3100
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3101
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3102
|
+
let baseOptions;
|
|
3103
|
+
if (configuration) {
|
|
3104
|
+
baseOptions = configuration.baseOptions;
|
|
3105
|
+
}
|
|
3106
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
3107
|
+
const localVarHeaderParameter = {};
|
|
3108
|
+
const localVarQueryParameter = {};
|
|
3109
|
+
if (token !== undefined) {
|
|
3110
|
+
localVarQueryParameter['token'] = token;
|
|
3111
|
+
}
|
|
3112
|
+
localVarHeaderParameter['Accept'] = 'application/xml,application/json';
|
|
3113
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3114
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3115
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
3116
|
+
return {
|
|
3117
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3118
|
+
options: localVarRequestOptions,
|
|
3119
|
+
};
|
|
3120
|
+
},
|
|
3121
|
+
/**
|
|
3122
|
+
*
|
|
3123
|
+
* @summary Get the metadata for a PoolParty project.
|
|
3124
|
+
* @param {number} serverId The PoolParty server Id.
|
|
3125
|
+
* @param {string} projectId The PoolParty project Id.
|
|
3126
|
+
* @param {*} [options] Override http request option.
|
|
3127
|
+
* @throws {RequiredError}
|
|
3128
|
+
*/
|
|
3129
|
+
getPoolPartyProjectMetadata: async (serverId, projectId, options = {}) => {
|
|
3130
|
+
// verify required parameter 'serverId' is not null or undefined
|
|
3131
|
+
(0, common_1.assertParamExists)('getPoolPartyProjectMetadata', 'serverId', serverId);
|
|
3132
|
+
// verify required parameter 'projectId' is not null or undefined
|
|
3133
|
+
(0, common_1.assertParamExists)('getPoolPartyProjectMetadata', 'projectId', projectId);
|
|
3134
|
+
const localVarPath = `/api/services/PoolParty/{serverId}/{projectId}/metadata`
|
|
3135
|
+
.replace(`{${"serverId"}}`, encodeURIComponent(String(serverId)))
|
|
3136
|
+
.replace(`{${"projectId"}}`, encodeURIComponent(String(projectId)));
|
|
3137
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3138
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3139
|
+
let baseOptions;
|
|
3140
|
+
if (configuration) {
|
|
3141
|
+
baseOptions = configuration.baseOptions;
|
|
3142
|
+
}
|
|
3143
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
3144
|
+
const localVarHeaderParameter = {};
|
|
3145
|
+
const localVarQueryParameter = {};
|
|
3146
|
+
// authentication basicAuth required
|
|
3147
|
+
// http basic authentication required
|
|
3148
|
+
(0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
|
|
3149
|
+
// authentication apiKeyAuth required
|
|
3150
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "ands_authentication", configuration);
|
|
3151
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
3152
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3153
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3154
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
3155
|
+
return {
|
|
3156
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3157
|
+
options: localVarRequestOptions,
|
|
3158
|
+
};
|
|
3159
|
+
},
|
|
3160
|
+
/**
|
|
3161
|
+
*
|
|
3162
|
+
* @summary Get the list of PoolParty projects.
|
|
3163
|
+
* @param {number} serverId The PoolParty server Id.
|
|
3164
|
+
* @param {*} [options] Override http request option.
|
|
3165
|
+
* @throws {RequiredError}
|
|
3166
|
+
*/
|
|
3167
|
+
getPoolPartyProjects: async (serverId, options = {}) => {
|
|
3168
|
+
// verify required parameter 'serverId' is not null or undefined
|
|
3169
|
+
(0, common_1.assertParamExists)('getPoolPartyProjects', 'serverId', serverId);
|
|
3170
|
+
const localVarPath = `/api/services/PoolParty/{serverId}`
|
|
3171
|
+
.replace(`{${"serverId"}}`, encodeURIComponent(String(serverId)));
|
|
3172
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3173
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3174
|
+
let baseOptions;
|
|
3175
|
+
if (configuration) {
|
|
3176
|
+
baseOptions = configuration.baseOptions;
|
|
3177
|
+
}
|
|
3178
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
3179
|
+
const localVarHeaderParameter = {};
|
|
3180
|
+
const localVarQueryParameter = {};
|
|
3181
|
+
// authentication basicAuth required
|
|
3182
|
+
// http basic authentication required
|
|
3183
|
+
(0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
|
|
3184
|
+
// authentication apiKeyAuth required
|
|
3185
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "ands_authentication", configuration);
|
|
3186
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
3187
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3188
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3189
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
3190
|
+
return {
|
|
3191
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3192
|
+
options: localVarRequestOptions,
|
|
3193
|
+
};
|
|
3194
|
+
},
|
|
3195
|
+
/**
|
|
3196
|
+
*
|
|
3197
|
+
* @summary Get the user\'s profile data.
|
|
3198
|
+
* @param {*} [options] Override http request option.
|
|
3199
|
+
* @throws {RequiredError}
|
|
3200
|
+
*/
|
|
3201
|
+
getUserData: async (options = {}) => {
|
|
3202
|
+
const localVarPath = `/api/user/userData`;
|
|
3203
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3204
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3205
|
+
let baseOptions;
|
|
3206
|
+
if (configuration) {
|
|
3207
|
+
baseOptions = configuration.baseOptions;
|
|
3208
|
+
}
|
|
3209
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
3210
|
+
const localVarHeaderParameter = {};
|
|
3211
|
+
const localVarQueryParameter = {};
|
|
3212
|
+
// authentication basicAuth required
|
|
3213
|
+
// http basic authentication required
|
|
3214
|
+
(0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
|
|
3215
|
+
// authentication apiKeyAuth required
|
|
3216
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "ands_authentication", configuration);
|
|
3217
|
+
localVarHeaderParameter['Accept'] = 'application/xml,application/json';
|
|
3218
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3219
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3220
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
3221
|
+
return {
|
|
3222
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3223
|
+
options: localVarRequestOptions,
|
|
3224
|
+
};
|
|
3225
|
+
},
|
|
3226
|
+
/**
|
|
3227
|
+
* Because of standard web browser behaviour on receipt of redirects, it is not possible to use this method in the swagger-ui interface. On a successful redirect, you will either see no response, or the browser will follow the redirect.
|
|
3228
|
+
* @summary Perform a redirect.
|
|
3229
|
+
* @param {string} [mode] The mode of resolution. For now, only \"current\" is supported, and this is the default.
|
|
3230
|
+
* @param {string} [iri] The IRI to be resolved.
|
|
3231
|
+
* @param {string} [suffix] An optional suffix to be appended to the redirected URL.
|
|
3232
|
+
* @param {*} [options] Override http request option.
|
|
3233
|
+
* @throws {RequiredError}
|
|
3234
|
+
*/
|
|
3235
|
+
lookupIRI: async (mode, iri, suffix, options = {}) => {
|
|
3236
|
+
const localVarPath = `/api/services/resolve/lookupIRI`;
|
|
3237
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3238
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3239
|
+
let baseOptions;
|
|
3240
|
+
if (configuration) {
|
|
3241
|
+
baseOptions = configuration.baseOptions;
|
|
3242
|
+
}
|
|
3243
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
3244
|
+
const localVarHeaderParameter = {};
|
|
3245
|
+
const localVarQueryParameter = {};
|
|
3246
|
+
if (mode !== undefined) {
|
|
3247
|
+
localVarQueryParameter['mode'] = mode;
|
|
3248
|
+
}
|
|
3249
|
+
if (iri !== undefined) {
|
|
3250
|
+
localVarQueryParameter['iri'] = iri;
|
|
3251
|
+
}
|
|
3252
|
+
if (suffix !== undefined) {
|
|
3253
|
+
localVarQueryParameter['suffix'] = suffix;
|
|
3254
|
+
}
|
|
3255
|
+
localVarHeaderParameter['Accept'] = 'application/xml,application/json';
|
|
3256
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3257
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3258
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
3259
|
+
return {
|
|
3260
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3261
|
+
options: localVarRequestOptions,
|
|
3262
|
+
};
|
|
3263
|
+
},
|
|
3264
|
+
/**
|
|
3265
|
+
*
|
|
3266
|
+
* @summary Perform a search of vocabulary metadata.
|
|
3267
|
+
* @param {string} filtersJson Filters that define the search parameters. The filters are specified as a JSON object. Examples of keys/values supported: \\\'\\\"q\\\":\\\"query term\\\"\\\': query term; \\\'\\\"pp\\\":10\\\' number of results per page;\\\'\\\"p\\\":3\\\' page number of results; \\\'\\\"sort\\\":\\\"zToA\\\"\\\': sort order of results; \\\'\\\"widgetable\\\":true\\\': select only widgetable vocabularies. Facets are also specified with filters: e.g., \\\'\\\"publisher\\\":\\\"CSIRO\\\"\\\'. Supported facets: \\\"access\\\", \\\"format\\\", \\\"language\\\", \\\"licence\\\", \\\"publisher\\\", \\\"subject_labels\\\".
|
|
3268
|
+
* @param {*} [options] Override http request option.
|
|
3269
|
+
* @throws {RequiredError}
|
|
3270
|
+
*/
|
|
3271
|
+
search: async (filtersJson, options = {}) => {
|
|
3272
|
+
// verify required parameter 'filtersJson' is not null or undefined
|
|
3273
|
+
(0, common_1.assertParamExists)('search', 'filtersJson', filtersJson);
|
|
3274
|
+
const localVarPath = `/api/services/search`;
|
|
3275
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3276
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3277
|
+
let baseOptions;
|
|
3278
|
+
if (configuration) {
|
|
3279
|
+
baseOptions = configuration.baseOptions;
|
|
3280
|
+
}
|
|
3281
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
3282
|
+
const localVarHeaderParameter = {};
|
|
3283
|
+
const localVarQueryParameter = {};
|
|
3284
|
+
const localVarFormParams = new URLSearchParams();
|
|
3285
|
+
if (filtersJson !== undefined) {
|
|
3286
|
+
localVarFormParams.set('filtersJson', filtersJson);
|
|
3287
|
+
}
|
|
3288
|
+
localVarHeaderParameter['Content-Type'] = 'application/x-www-form-urlencoded';
|
|
3289
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
3290
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3291
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3292
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
3293
|
+
localVarRequestOptions.data = localVarFormParams.toString();
|
|
3294
|
+
return {
|
|
3295
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3296
|
+
options: localVarRequestOptions,
|
|
3297
|
+
};
|
|
3298
|
+
},
|
|
3299
|
+
/**
|
|
3300
|
+
*
|
|
3301
|
+
* @summary Perform a search of vocabulary resources.
|
|
3302
|
+
* @param {string} filtersJson Filters that define the search parameters. The filters are specified as a JSON object. Examples of keys/values supported: \\\'\\\"q\\\":\\\"query term\\\"\\\': query term; \\\'\\\"pp\\\":10\\\' number of results per page;\\\'\\\"p\\\":3\\\' page number of results; \\\'\\\"sort\\\":\\\"zToA\\\"\\\': sort order of results; \\\'\\\"collapse_expand\\\":false\\\' disable collapse/expand results with the same IRI; \\\'\\\"language\\\":\\\"[\\\"NONE\\\",\\\"en\\\"]\\\"\\\': limit to specified languages (to include results for all languages, don\\\'t specify a value for this filter). Facets are also specified with filters: e.g., \\\'\\\"publisher\\\":\\\"CSIRO\\\"\\\'. Supported facets: \\\"publisher\\\", \\\"rdf_type\\\", \\\"status\\\", \\\"subject_labels\\\".
|
|
3303
|
+
* @param {*} [options] Override http request option.
|
|
3304
|
+
* @throws {RequiredError}
|
|
3305
|
+
*/
|
|
3306
|
+
searchResources: async (filtersJson, options = {}) => {
|
|
3307
|
+
// verify required parameter 'filtersJson' is not null or undefined
|
|
3308
|
+
(0, common_1.assertParamExists)('searchResources', 'filtersJson', filtersJson);
|
|
3309
|
+
const localVarPath = `/api/services/search/resources`;
|
|
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 = { method: 'POST', ...baseOptions, ...options };
|
|
3317
|
+
const localVarHeaderParameter = {};
|
|
3318
|
+
const localVarQueryParameter = {};
|
|
3319
|
+
const localVarFormParams = new URLSearchParams();
|
|
3320
|
+
if (filtersJson !== undefined) {
|
|
3321
|
+
localVarFormParams.set('filtersJson', filtersJson);
|
|
3322
|
+
}
|
|
3323
|
+
localVarHeaderParameter['Content-Type'] = 'application/x-www-form-urlencoded';
|
|
3324
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
3325
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3326
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3327
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
3328
|
+
localVarRequestOptions.data = localVarFormParams.toString();
|
|
3329
|
+
return {
|
|
3330
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3331
|
+
options: localVarRequestOptions,
|
|
3332
|
+
};
|
|
3333
|
+
},
|
|
3334
|
+
};
|
|
3335
|
+
};
|
|
3336
|
+
exports.ServicesApiAxiosParamCreator = ServicesApiAxiosParamCreator;
|
|
3337
|
+
/**
|
|
3338
|
+
* ServicesApi - functional programming interface
|
|
3339
|
+
*/
|
|
3340
|
+
const ServicesApiFp = function (configuration) {
|
|
3341
|
+
const localVarAxiosParamCreator = (0, exports.ServicesApiAxiosParamCreator)(configuration);
|
|
3342
|
+
return {
|
|
3343
|
+
/**
|
|
3344
|
+
*
|
|
3345
|
+
* @summary Create an email subscription for an owner.
|
|
3346
|
+
* @param {string} owner Owner to subscribe to. Specify * to subscribe to notifications for all owners.
|
|
3347
|
+
* @param {string} emailAddress Subscriber email address
|
|
3348
|
+
* @param {*} [options] Override http request option.
|
|
3349
|
+
* @throws {RequiredError}
|
|
3350
|
+
*/
|
|
3351
|
+
async createEmailSubscriptionOwner(owner, emailAddress, options) {
|
|
3352
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createEmailSubscriptionOwner(owner, emailAddress, options);
|
|
3353
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3354
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['ServicesApi.createEmailSubscriptionOwner']?.[localVarOperationServerIndex]?.url;
|
|
3355
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3356
|
+
},
|
|
3357
|
+
/**
|
|
3358
|
+
*
|
|
3359
|
+
* @summary Create an email subscription for the system.
|
|
3360
|
+
* @param {string} emailAddress
|
|
3361
|
+
* @param {*} [options] Override http request option.
|
|
3362
|
+
* @throws {RequiredError}
|
|
3363
|
+
*/
|
|
3364
|
+
async createEmailSubscriptionSystem(emailAddress, options) {
|
|
3365
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createEmailSubscriptionSystem(emailAddress, options);
|
|
3366
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3367
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['ServicesApi.createEmailSubscriptionSystem']?.[localVarOperationServerIndex]?.url;
|
|
3368
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3369
|
+
},
|
|
3370
|
+
/**
|
|
3371
|
+
*
|
|
3372
|
+
* @summary Create an email subscription for a vocabulary.
|
|
3373
|
+
* @param {number} vocabularyId The ID of the vocabulary to be subscribed to.
|
|
3374
|
+
* @param {string} emailAddress Subscriber email address
|
|
3375
|
+
* @param {*} [options] Override http request option.
|
|
3376
|
+
* @throws {RequiredError}
|
|
3377
|
+
*/
|
|
3378
|
+
async createEmailSubscriptionVocabulary(vocabularyId, emailAddress, options) {
|
|
3379
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createEmailSubscriptionVocabulary(vocabularyId, emailAddress, options);
|
|
3380
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3381
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['ServicesApi.createEmailSubscriptionVocabulary']?.[localVarOperationServerIndex]?.url;
|
|
3382
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3383
|
+
},
|
|
3384
|
+
/**
|
|
3385
|
+
*
|
|
3386
|
+
* @summary Delete all email subscriptions for a subscriber.
|
|
3387
|
+
* @param {string} token Subscriber authentication token
|
|
3388
|
+
* @param {*} [options] Override http request option.
|
|
3389
|
+
* @throws {RequiredError}
|
|
3390
|
+
*/
|
|
3391
|
+
async deleteEmailSubscriptionAll(token, options) {
|
|
3392
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteEmailSubscriptionAll(token, options);
|
|
3393
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3394
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['ServicesApi.deleteEmailSubscriptionAll']?.[localVarOperationServerIndex]?.url;
|
|
3395
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3396
|
+
},
|
|
3397
|
+
/**
|
|
3398
|
+
*
|
|
3399
|
+
* @summary Delete an email subscription for an owner.
|
|
3400
|
+
* @param {string} token Subscriber authentication token
|
|
3401
|
+
* @param {string} owner Owner to unsubscribe from. Specify * to remove a subscription to notifications for all owners (in which case, any other existing subscriptions to individual owners will remain).
|
|
3402
|
+
* @param {*} [options] Override http request option.
|
|
3403
|
+
* @throws {RequiredError}
|
|
3404
|
+
*/
|
|
3405
|
+
async deleteEmailSubscriptionOwner(token, owner, options) {
|
|
3406
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteEmailSubscriptionOwner(token, owner, options);
|
|
3407
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3408
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['ServicesApi.deleteEmailSubscriptionOwner']?.[localVarOperationServerIndex]?.url;
|
|
3409
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3410
|
+
},
|
|
3411
|
+
/**
|
|
3412
|
+
*
|
|
3413
|
+
* @summary Delete an email subscription for the system.
|
|
3414
|
+
* @param {string} token Subscriber authentication token
|
|
3415
|
+
* @param {*} [options] Override http request option.
|
|
3416
|
+
* @throws {RequiredError}
|
|
3417
|
+
*/
|
|
3418
|
+
async deleteEmailSubscriptionSystem(token, options) {
|
|
3419
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteEmailSubscriptionSystem(token, options);
|
|
3420
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3421
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['ServicesApi.deleteEmailSubscriptionSystem']?.[localVarOperationServerIndex]?.url;
|
|
3422
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3423
|
+
},
|
|
3424
|
+
/**
|
|
3425
|
+
*
|
|
3426
|
+
* @summary Delete an email subscription for a vocabulary.
|
|
3427
|
+
* @param {string} token Subscriber authentication token
|
|
3428
|
+
* @param {number} vocabularyId The ID of the vocabulary to be unsubscribed from.
|
|
3429
|
+
* @param {*} [options] Override http request option.
|
|
3430
|
+
* @throws {RequiredError}
|
|
3431
|
+
*/
|
|
3432
|
+
async deleteEmailSubscriptionVocabulary(token, vocabularyId, options) {
|
|
3433
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteEmailSubscriptionVocabulary(token, vocabularyId, options);
|
|
3434
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3435
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['ServicesApi.deleteEmailSubscriptionVocabulary']?.[localVarOperationServerIndex]?.url;
|
|
3436
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3437
|
+
},
|
|
3438
|
+
/**
|
|
3439
|
+
*
|
|
3440
|
+
* @summary Get the email subscriptions for a subscriber.
|
|
3441
|
+
* @param {string} token Subscriber authentication token
|
|
3442
|
+
* @param {*} [options] Override http request option.
|
|
3443
|
+
* @throws {RequiredError}
|
|
3444
|
+
*/
|
|
3445
|
+
async getEmailSubscriptions(token, options) {
|
|
3446
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getEmailSubscriptions(token, options);
|
|
3447
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3448
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['ServicesApi.getEmailSubscriptions']?.[localVarOperationServerIndex]?.url;
|
|
3449
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3450
|
+
},
|
|
3451
|
+
/**
|
|
3452
|
+
*
|
|
3453
|
+
* @summary Get the metadata for a PoolParty project.
|
|
3454
|
+
* @param {number} serverId The PoolParty server Id.
|
|
3455
|
+
* @param {string} projectId The PoolParty project Id.
|
|
3456
|
+
* @param {*} [options] Override http request option.
|
|
3457
|
+
* @throws {RequiredError}
|
|
3458
|
+
*/
|
|
3459
|
+
async getPoolPartyProjectMetadata(serverId, projectId, options) {
|
|
3460
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getPoolPartyProjectMetadata(serverId, projectId, options);
|
|
3461
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3462
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['ServicesApi.getPoolPartyProjectMetadata']?.[localVarOperationServerIndex]?.url;
|
|
3463
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3464
|
+
},
|
|
3465
|
+
/**
|
|
3466
|
+
*
|
|
3467
|
+
* @summary Get the list of PoolParty projects.
|
|
3468
|
+
* @param {number} serverId The PoolParty server Id.
|
|
3469
|
+
* @param {*} [options] Override http request option.
|
|
3470
|
+
* @throws {RequiredError}
|
|
3471
|
+
*/
|
|
3472
|
+
async getPoolPartyProjects(serverId, options) {
|
|
3473
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getPoolPartyProjects(serverId, options);
|
|
3474
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3475
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['ServicesApi.getPoolPartyProjects']?.[localVarOperationServerIndex]?.url;
|
|
3476
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3477
|
+
},
|
|
3478
|
+
/**
|
|
3479
|
+
*
|
|
3480
|
+
* @summary Get the user\'s profile data.
|
|
3481
|
+
* @param {*} [options] Override http request option.
|
|
3482
|
+
* @throws {RequiredError}
|
|
3483
|
+
*/
|
|
3484
|
+
async getUserData(options) {
|
|
3485
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getUserData(options);
|
|
3486
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3487
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['ServicesApi.getUserData']?.[localVarOperationServerIndex]?.url;
|
|
3488
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3489
|
+
},
|
|
3490
|
+
/**
|
|
3491
|
+
* Because of standard web browser behaviour on receipt of redirects, it is not possible to use this method in the swagger-ui interface. On a successful redirect, you will either see no response, or the browser will follow the redirect.
|
|
3492
|
+
* @summary Perform a redirect.
|
|
3493
|
+
* @param {string} [mode] The mode of resolution. For now, only \"current\" is supported, and this is the default.
|
|
3494
|
+
* @param {string} [iri] The IRI to be resolved.
|
|
3495
|
+
* @param {string} [suffix] An optional suffix to be appended to the redirected URL.
|
|
3496
|
+
* @param {*} [options] Override http request option.
|
|
3497
|
+
* @throws {RequiredError}
|
|
3498
|
+
*/
|
|
3499
|
+
async lookupIRI(mode, iri, suffix, options) {
|
|
3500
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.lookupIRI(mode, iri, suffix, options);
|
|
3501
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3502
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['ServicesApi.lookupIRI']?.[localVarOperationServerIndex]?.url;
|
|
3503
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3504
|
+
},
|
|
3505
|
+
/**
|
|
3506
|
+
*
|
|
3507
|
+
* @summary Perform a search of vocabulary metadata.
|
|
3508
|
+
* @param {string} filtersJson Filters that define the search parameters. The filters are specified as a JSON object. Examples of keys/values supported: \\\'\\\"q\\\":\\\"query term\\\"\\\': query term; \\\'\\\"pp\\\":10\\\' number of results per page;\\\'\\\"p\\\":3\\\' page number of results; \\\'\\\"sort\\\":\\\"zToA\\\"\\\': sort order of results; \\\'\\\"widgetable\\\":true\\\': select only widgetable vocabularies. Facets are also specified with filters: e.g., \\\'\\\"publisher\\\":\\\"CSIRO\\\"\\\'. Supported facets: \\\"access\\\", \\\"format\\\", \\\"language\\\", \\\"licence\\\", \\\"publisher\\\", \\\"subject_labels\\\".
|
|
3509
|
+
* @param {*} [options] Override http request option.
|
|
3510
|
+
* @throws {RequiredError}
|
|
3511
|
+
*/
|
|
3512
|
+
async search(filtersJson, options) {
|
|
3513
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.search(filtersJson, options);
|
|
3514
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3515
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['ServicesApi.search']?.[localVarOperationServerIndex]?.url;
|
|
3516
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3517
|
+
},
|
|
3518
|
+
/**
|
|
3519
|
+
*
|
|
3520
|
+
* @summary Perform a search of vocabulary resources.
|
|
3521
|
+
* @param {string} filtersJson Filters that define the search parameters. The filters are specified as a JSON object. Examples of keys/values supported: \\\'\\\"q\\\":\\\"query term\\\"\\\': query term; \\\'\\\"pp\\\":10\\\' number of results per page;\\\'\\\"p\\\":3\\\' page number of results; \\\'\\\"sort\\\":\\\"zToA\\\"\\\': sort order of results; \\\'\\\"collapse_expand\\\":false\\\' disable collapse/expand results with the same IRI; \\\'\\\"language\\\":\\\"[\\\"NONE\\\",\\\"en\\\"]\\\"\\\': limit to specified languages (to include results for all languages, don\\\'t specify a value for this filter). Facets are also specified with filters: e.g., \\\'\\\"publisher\\\":\\\"CSIRO\\\"\\\'. Supported facets: \\\"publisher\\\", \\\"rdf_type\\\", \\\"status\\\", \\\"subject_labels\\\".
|
|
3522
|
+
* @param {*} [options] Override http request option.
|
|
3523
|
+
* @throws {RequiredError}
|
|
3524
|
+
*/
|
|
3525
|
+
async searchResources(filtersJson, options) {
|
|
3526
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.searchResources(filtersJson, options);
|
|
3527
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3528
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['ServicesApi.searchResources']?.[localVarOperationServerIndex]?.url;
|
|
3529
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3530
|
+
},
|
|
3531
|
+
};
|
|
3532
|
+
};
|
|
3533
|
+
exports.ServicesApiFp = ServicesApiFp;
|
|
3534
|
+
/**
|
|
3535
|
+
* ServicesApi - factory interface
|
|
3536
|
+
*/
|
|
3537
|
+
const ServicesApiFactory = function (configuration, basePath, axios) {
|
|
3538
|
+
const localVarFp = (0, exports.ServicesApiFp)(configuration);
|
|
3539
|
+
return {
|
|
3540
|
+
/**
|
|
3541
|
+
*
|
|
3542
|
+
* @summary Create an email subscription for an owner.
|
|
3543
|
+
* @param {string} owner Owner to subscribe to. Specify * to subscribe to notifications for all owners.
|
|
3544
|
+
* @param {string} emailAddress Subscriber email address
|
|
3545
|
+
* @param {*} [options] Override http request option.
|
|
3546
|
+
* @throws {RequiredError}
|
|
3547
|
+
*/
|
|
3548
|
+
createEmailSubscriptionOwner(owner, emailAddress, options) {
|
|
3549
|
+
return localVarFp.createEmailSubscriptionOwner(owner, emailAddress, options).then((request) => request(axios, basePath));
|
|
3550
|
+
},
|
|
3551
|
+
/**
|
|
3552
|
+
*
|
|
3553
|
+
* @summary Create an email subscription for the system.
|
|
3554
|
+
* @param {string} emailAddress
|
|
3555
|
+
* @param {*} [options] Override http request option.
|
|
3556
|
+
* @throws {RequiredError}
|
|
3557
|
+
*/
|
|
3558
|
+
createEmailSubscriptionSystem(emailAddress, options) {
|
|
3559
|
+
return localVarFp.createEmailSubscriptionSystem(emailAddress, options).then((request) => request(axios, basePath));
|
|
3560
|
+
},
|
|
3561
|
+
/**
|
|
3562
|
+
*
|
|
3563
|
+
* @summary Create an email subscription for a vocabulary.
|
|
3564
|
+
* @param {number} vocabularyId The ID of the vocabulary to be subscribed to.
|
|
3565
|
+
* @param {string} emailAddress Subscriber email address
|
|
3566
|
+
* @param {*} [options] Override http request option.
|
|
3567
|
+
* @throws {RequiredError}
|
|
3568
|
+
*/
|
|
3569
|
+
createEmailSubscriptionVocabulary(vocabularyId, emailAddress, options) {
|
|
3570
|
+
return localVarFp.createEmailSubscriptionVocabulary(vocabularyId, emailAddress, options).then((request) => request(axios, basePath));
|
|
3571
|
+
},
|
|
3572
|
+
/**
|
|
3573
|
+
*
|
|
3574
|
+
* @summary Delete all email subscriptions for a subscriber.
|
|
3575
|
+
* @param {string} token Subscriber authentication token
|
|
3576
|
+
* @param {*} [options] Override http request option.
|
|
3577
|
+
* @throws {RequiredError}
|
|
3578
|
+
*/
|
|
3579
|
+
deleteEmailSubscriptionAll(token, options) {
|
|
3580
|
+
return localVarFp.deleteEmailSubscriptionAll(token, options).then((request) => request(axios, basePath));
|
|
3581
|
+
},
|
|
3582
|
+
/**
|
|
3583
|
+
*
|
|
3584
|
+
* @summary Delete an email subscription for an owner.
|
|
3585
|
+
* @param {string} token Subscriber authentication token
|
|
3586
|
+
* @param {string} owner Owner to unsubscribe from. Specify * to remove a subscription to notifications for all owners (in which case, any other existing subscriptions to individual owners will remain).
|
|
3587
|
+
* @param {*} [options] Override http request option.
|
|
3588
|
+
* @throws {RequiredError}
|
|
3589
|
+
*/
|
|
3590
|
+
deleteEmailSubscriptionOwner(token, owner, options) {
|
|
3591
|
+
return localVarFp.deleteEmailSubscriptionOwner(token, owner, options).then((request) => request(axios, basePath));
|
|
3592
|
+
},
|
|
3593
|
+
/**
|
|
3594
|
+
*
|
|
3595
|
+
* @summary Delete an email subscription for the system.
|
|
3596
|
+
* @param {string} token Subscriber authentication token
|
|
3597
|
+
* @param {*} [options] Override http request option.
|
|
3598
|
+
* @throws {RequiredError}
|
|
3599
|
+
*/
|
|
3600
|
+
deleteEmailSubscriptionSystem(token, options) {
|
|
3601
|
+
return localVarFp.deleteEmailSubscriptionSystem(token, options).then((request) => request(axios, basePath));
|
|
3602
|
+
},
|
|
3603
|
+
/**
|
|
3604
|
+
*
|
|
3605
|
+
* @summary Delete an email subscription for a vocabulary.
|
|
3606
|
+
* @param {string} token Subscriber authentication token
|
|
3607
|
+
* @param {number} vocabularyId The ID of the vocabulary to be unsubscribed from.
|
|
3608
|
+
* @param {*} [options] Override http request option.
|
|
3609
|
+
* @throws {RequiredError}
|
|
3610
|
+
*/
|
|
3611
|
+
deleteEmailSubscriptionVocabulary(token, vocabularyId, options) {
|
|
3612
|
+
return localVarFp.deleteEmailSubscriptionVocabulary(token, vocabularyId, options).then((request) => request(axios, basePath));
|
|
3613
|
+
},
|
|
3614
|
+
/**
|
|
3615
|
+
*
|
|
3616
|
+
* @summary Get the email subscriptions for a subscriber.
|
|
3617
|
+
* @param {string} token Subscriber authentication token
|
|
3618
|
+
* @param {*} [options] Override http request option.
|
|
3619
|
+
* @throws {RequiredError}
|
|
3620
|
+
*/
|
|
3621
|
+
getEmailSubscriptions(token, options) {
|
|
3622
|
+
return localVarFp.getEmailSubscriptions(token, options).then((request) => request(axios, basePath));
|
|
3623
|
+
},
|
|
3624
|
+
/**
|
|
3625
|
+
*
|
|
3626
|
+
* @summary Get the metadata for a PoolParty project.
|
|
3627
|
+
* @param {number} serverId The PoolParty server Id.
|
|
3628
|
+
* @param {string} projectId The PoolParty project Id.
|
|
3629
|
+
* @param {*} [options] Override http request option.
|
|
3630
|
+
* @throws {RequiredError}
|
|
3631
|
+
*/
|
|
3632
|
+
getPoolPartyProjectMetadata(serverId, projectId, options) {
|
|
3633
|
+
return localVarFp.getPoolPartyProjectMetadata(serverId, projectId, options).then((request) => request(axios, basePath));
|
|
3634
|
+
},
|
|
3635
|
+
/**
|
|
3636
|
+
*
|
|
3637
|
+
* @summary Get the list of PoolParty projects.
|
|
3638
|
+
* @param {number} serverId The PoolParty server Id.
|
|
3639
|
+
* @param {*} [options] Override http request option.
|
|
3640
|
+
* @throws {RequiredError}
|
|
3641
|
+
*/
|
|
3642
|
+
getPoolPartyProjects(serverId, options) {
|
|
3643
|
+
return localVarFp.getPoolPartyProjects(serverId, options).then((request) => request(axios, basePath));
|
|
3644
|
+
},
|
|
3645
|
+
/**
|
|
3646
|
+
*
|
|
3647
|
+
* @summary Get the user\'s profile data.
|
|
3648
|
+
* @param {*} [options] Override http request option.
|
|
3649
|
+
* @throws {RequiredError}
|
|
3650
|
+
*/
|
|
3651
|
+
getUserData(options) {
|
|
3652
|
+
return localVarFp.getUserData(options).then((request) => request(axios, basePath));
|
|
3653
|
+
},
|
|
3654
|
+
/**
|
|
3655
|
+
* Because of standard web browser behaviour on receipt of redirects, it is not possible to use this method in the swagger-ui interface. On a successful redirect, you will either see no response, or the browser will follow the redirect.
|
|
3656
|
+
* @summary Perform a redirect.
|
|
3657
|
+
* @param {string} [mode] The mode of resolution. For now, only \"current\" is supported, and this is the default.
|
|
3658
|
+
* @param {string} [iri] The IRI to be resolved.
|
|
3659
|
+
* @param {string} [suffix] An optional suffix to be appended to the redirected URL.
|
|
3660
|
+
* @param {*} [options] Override http request option.
|
|
3661
|
+
* @throws {RequiredError}
|
|
3662
|
+
*/
|
|
3663
|
+
lookupIRI(mode, iri, suffix, options) {
|
|
3664
|
+
return localVarFp.lookupIRI(mode, iri, suffix, options).then((request) => request(axios, basePath));
|
|
3665
|
+
},
|
|
3666
|
+
/**
|
|
3667
|
+
*
|
|
3668
|
+
* @summary Perform a search of vocabulary metadata.
|
|
3669
|
+
* @param {string} filtersJson Filters that define the search parameters. The filters are specified as a JSON object. Examples of keys/values supported: \\\'\\\"q\\\":\\\"query term\\\"\\\': query term; \\\'\\\"pp\\\":10\\\' number of results per page;\\\'\\\"p\\\":3\\\' page number of results; \\\'\\\"sort\\\":\\\"zToA\\\"\\\': sort order of results; \\\'\\\"widgetable\\\":true\\\': select only widgetable vocabularies. Facets are also specified with filters: e.g., \\\'\\\"publisher\\\":\\\"CSIRO\\\"\\\'. Supported facets: \\\"access\\\", \\\"format\\\", \\\"language\\\", \\\"licence\\\", \\\"publisher\\\", \\\"subject_labels\\\".
|
|
3670
|
+
* @param {*} [options] Override http request option.
|
|
3671
|
+
* @throws {RequiredError}
|
|
3672
|
+
*/
|
|
3673
|
+
search(filtersJson, options) {
|
|
3674
|
+
return localVarFp.search(filtersJson, options).then((request) => request(axios, basePath));
|
|
3675
|
+
},
|
|
3676
|
+
/**
|
|
3677
|
+
*
|
|
3678
|
+
* @summary Perform a search of vocabulary resources.
|
|
3679
|
+
* @param {string} filtersJson Filters that define the search parameters. The filters are specified as a JSON object. Examples of keys/values supported: \\\'\\\"q\\\":\\\"query term\\\"\\\': query term; \\\'\\\"pp\\\":10\\\' number of results per page;\\\'\\\"p\\\":3\\\' page number of results; \\\'\\\"sort\\\":\\\"zToA\\\"\\\': sort order of results; \\\'\\\"collapse_expand\\\":false\\\' disable collapse/expand results with the same IRI; \\\'\\\"language\\\":\\\"[\\\"NONE\\\",\\\"en\\\"]\\\"\\\': limit to specified languages (to include results for all languages, don\\\'t specify a value for this filter). Facets are also specified with filters: e.g., \\\'\\\"publisher\\\":\\\"CSIRO\\\"\\\'. Supported facets: \\\"publisher\\\", \\\"rdf_type\\\", \\\"status\\\", \\\"subject_labels\\\".
|
|
3680
|
+
* @param {*} [options] Override http request option.
|
|
3681
|
+
* @throws {RequiredError}
|
|
3682
|
+
*/
|
|
3683
|
+
searchResources(filtersJson, options) {
|
|
3684
|
+
return localVarFp.searchResources(filtersJson, options).then((request) => request(axios, basePath));
|
|
3685
|
+
},
|
|
3686
|
+
};
|
|
3687
|
+
};
|
|
3688
|
+
exports.ServicesApiFactory = ServicesApiFactory;
|
|
3689
|
+
/**
|
|
3690
|
+
* ServicesApi - object-oriented interface
|
|
3691
|
+
*/
|
|
3692
|
+
class ServicesApi extends base_1.BaseAPI {
|
|
3693
|
+
/**
|
|
3694
|
+
*
|
|
3695
|
+
* @summary Create an email subscription for an owner.
|
|
3696
|
+
* @param {string} owner Owner to subscribe to. Specify * to subscribe to notifications for all owners.
|
|
3697
|
+
* @param {string} emailAddress Subscriber email address
|
|
3698
|
+
* @param {*} [options] Override http request option.
|
|
3699
|
+
* @throws {RequiredError}
|
|
3700
|
+
*/
|
|
3701
|
+
createEmailSubscriptionOwner(owner, emailAddress, options) {
|
|
3702
|
+
return (0, exports.ServicesApiFp)(this.configuration).createEmailSubscriptionOwner(owner, emailAddress, options).then((request) => request(this.axios, this.basePath));
|
|
3703
|
+
}
|
|
3704
|
+
/**
|
|
3705
|
+
*
|
|
3706
|
+
* @summary Create an email subscription for the system.
|
|
3707
|
+
* @param {string} emailAddress
|
|
3708
|
+
* @param {*} [options] Override http request option.
|
|
3709
|
+
* @throws {RequiredError}
|
|
3710
|
+
*/
|
|
3711
|
+
createEmailSubscriptionSystem(emailAddress, options) {
|
|
3712
|
+
return (0, exports.ServicesApiFp)(this.configuration).createEmailSubscriptionSystem(emailAddress, options).then((request) => request(this.axios, this.basePath));
|
|
3713
|
+
}
|
|
3714
|
+
/**
|
|
3715
|
+
*
|
|
3716
|
+
* @summary Create an email subscription for a vocabulary.
|
|
3717
|
+
* @param {number} vocabularyId The ID of the vocabulary to be subscribed to.
|
|
3718
|
+
* @param {string} emailAddress Subscriber email address
|
|
3719
|
+
* @param {*} [options] Override http request option.
|
|
3720
|
+
* @throws {RequiredError}
|
|
3721
|
+
*/
|
|
3722
|
+
createEmailSubscriptionVocabulary(vocabularyId, emailAddress, options) {
|
|
3723
|
+
return (0, exports.ServicesApiFp)(this.configuration).createEmailSubscriptionVocabulary(vocabularyId, emailAddress, options).then((request) => request(this.axios, this.basePath));
|
|
3724
|
+
}
|
|
3725
|
+
/**
|
|
3726
|
+
*
|
|
3727
|
+
* @summary Delete all email subscriptions for a subscriber.
|
|
3728
|
+
* @param {string} token Subscriber authentication token
|
|
3729
|
+
* @param {*} [options] Override http request option.
|
|
3730
|
+
* @throws {RequiredError}
|
|
3731
|
+
*/
|
|
3732
|
+
deleteEmailSubscriptionAll(token, options) {
|
|
3733
|
+
return (0, exports.ServicesApiFp)(this.configuration).deleteEmailSubscriptionAll(token, options).then((request) => request(this.axios, this.basePath));
|
|
3734
|
+
}
|
|
3735
|
+
/**
|
|
3736
|
+
*
|
|
3737
|
+
* @summary Delete an email subscription for an owner.
|
|
3738
|
+
* @param {string} token Subscriber authentication token
|
|
3739
|
+
* @param {string} owner Owner to unsubscribe from. Specify * to remove a subscription to notifications for all owners (in which case, any other existing subscriptions to individual owners will remain).
|
|
3740
|
+
* @param {*} [options] Override http request option.
|
|
3741
|
+
* @throws {RequiredError}
|
|
3742
|
+
*/
|
|
3743
|
+
deleteEmailSubscriptionOwner(token, owner, options) {
|
|
3744
|
+
return (0, exports.ServicesApiFp)(this.configuration).deleteEmailSubscriptionOwner(token, owner, options).then((request) => request(this.axios, this.basePath));
|
|
3745
|
+
}
|
|
3746
|
+
/**
|
|
3747
|
+
*
|
|
3748
|
+
* @summary Delete an email subscription for the system.
|
|
3749
|
+
* @param {string} token Subscriber authentication token
|
|
3750
|
+
* @param {*} [options] Override http request option.
|
|
3751
|
+
* @throws {RequiredError}
|
|
3752
|
+
*/
|
|
3753
|
+
deleteEmailSubscriptionSystem(token, options) {
|
|
3754
|
+
return (0, exports.ServicesApiFp)(this.configuration).deleteEmailSubscriptionSystem(token, options).then((request) => request(this.axios, this.basePath));
|
|
3755
|
+
}
|
|
3756
|
+
/**
|
|
3757
|
+
*
|
|
3758
|
+
* @summary Delete an email subscription for a vocabulary.
|
|
3759
|
+
* @param {string} token Subscriber authentication token
|
|
3760
|
+
* @param {number} vocabularyId The ID of the vocabulary to be unsubscribed from.
|
|
3761
|
+
* @param {*} [options] Override http request option.
|
|
3762
|
+
* @throws {RequiredError}
|
|
3763
|
+
*/
|
|
3764
|
+
deleteEmailSubscriptionVocabulary(token, vocabularyId, options) {
|
|
3765
|
+
return (0, exports.ServicesApiFp)(this.configuration).deleteEmailSubscriptionVocabulary(token, vocabularyId, options).then((request) => request(this.axios, this.basePath));
|
|
3766
|
+
}
|
|
3767
|
+
/**
|
|
3768
|
+
*
|
|
3769
|
+
* @summary Get the email subscriptions for a subscriber.
|
|
3770
|
+
* @param {string} token Subscriber authentication token
|
|
3771
|
+
* @param {*} [options] Override http request option.
|
|
3772
|
+
* @throws {RequiredError}
|
|
3773
|
+
*/
|
|
3774
|
+
getEmailSubscriptions(token, options) {
|
|
3775
|
+
return (0, exports.ServicesApiFp)(this.configuration).getEmailSubscriptions(token, options).then((request) => request(this.axios, this.basePath));
|
|
3776
|
+
}
|
|
3777
|
+
/**
|
|
3778
|
+
*
|
|
3779
|
+
* @summary Get the metadata for a PoolParty project.
|
|
3780
|
+
* @param {number} serverId The PoolParty server Id.
|
|
3781
|
+
* @param {string} projectId The PoolParty project Id.
|
|
3782
|
+
* @param {*} [options] Override http request option.
|
|
3783
|
+
* @throws {RequiredError}
|
|
3784
|
+
*/
|
|
3785
|
+
getPoolPartyProjectMetadata(serverId, projectId, options) {
|
|
3786
|
+
return (0, exports.ServicesApiFp)(this.configuration).getPoolPartyProjectMetadata(serverId, projectId, options).then((request) => request(this.axios, this.basePath));
|
|
3787
|
+
}
|
|
3788
|
+
/**
|
|
3789
|
+
*
|
|
3790
|
+
* @summary Get the list of PoolParty projects.
|
|
3791
|
+
* @param {number} serverId The PoolParty server Id.
|
|
3792
|
+
* @param {*} [options] Override http request option.
|
|
3793
|
+
* @throws {RequiredError}
|
|
3794
|
+
*/
|
|
3795
|
+
getPoolPartyProjects(serverId, options) {
|
|
3796
|
+
return (0, exports.ServicesApiFp)(this.configuration).getPoolPartyProjects(serverId, options).then((request) => request(this.axios, this.basePath));
|
|
3797
|
+
}
|
|
3798
|
+
/**
|
|
3799
|
+
*
|
|
3800
|
+
* @summary Get the user\'s profile data.
|
|
3801
|
+
* @param {*} [options] Override http request option.
|
|
3802
|
+
* @throws {RequiredError}
|
|
3803
|
+
*/
|
|
3804
|
+
getUserData(options) {
|
|
3805
|
+
return (0, exports.ServicesApiFp)(this.configuration).getUserData(options).then((request) => request(this.axios, this.basePath));
|
|
3806
|
+
}
|
|
3807
|
+
/**
|
|
3808
|
+
* Because of standard web browser behaviour on receipt of redirects, it is not possible to use this method in the swagger-ui interface. On a successful redirect, you will either see no response, or the browser will follow the redirect.
|
|
3809
|
+
* @summary Perform a redirect.
|
|
3810
|
+
* @param {string} [mode] The mode of resolution. For now, only \"current\" is supported, and this is the default.
|
|
3811
|
+
* @param {string} [iri] The IRI to be resolved.
|
|
3812
|
+
* @param {string} [suffix] An optional suffix to be appended to the redirected URL.
|
|
3813
|
+
* @param {*} [options] Override http request option.
|
|
3814
|
+
* @throws {RequiredError}
|
|
3815
|
+
*/
|
|
3816
|
+
lookupIRI(mode, iri, suffix, options) {
|
|
3817
|
+
return (0, exports.ServicesApiFp)(this.configuration).lookupIRI(mode, iri, suffix, options).then((request) => request(this.axios, this.basePath));
|
|
3818
|
+
}
|
|
3819
|
+
/**
|
|
3820
|
+
*
|
|
3821
|
+
* @summary Perform a search of vocabulary metadata.
|
|
3822
|
+
* @param {string} filtersJson Filters that define the search parameters. The filters are specified as a JSON object. Examples of keys/values supported: \\\'\\\"q\\\":\\\"query term\\\"\\\': query term; \\\'\\\"pp\\\":10\\\' number of results per page;\\\'\\\"p\\\":3\\\' page number of results; \\\'\\\"sort\\\":\\\"zToA\\\"\\\': sort order of results; \\\'\\\"widgetable\\\":true\\\': select only widgetable vocabularies. Facets are also specified with filters: e.g., \\\'\\\"publisher\\\":\\\"CSIRO\\\"\\\'. Supported facets: \\\"access\\\", \\\"format\\\", \\\"language\\\", \\\"licence\\\", \\\"publisher\\\", \\\"subject_labels\\\".
|
|
3823
|
+
* @param {*} [options] Override http request option.
|
|
3824
|
+
* @throws {RequiredError}
|
|
3825
|
+
*/
|
|
3826
|
+
search(filtersJson, options) {
|
|
3827
|
+
return (0, exports.ServicesApiFp)(this.configuration).search(filtersJson, options).then((request) => request(this.axios, this.basePath));
|
|
3828
|
+
}
|
|
3829
|
+
/**
|
|
3830
|
+
*
|
|
3831
|
+
* @summary Perform a search of vocabulary resources.
|
|
3832
|
+
* @param {string} filtersJson Filters that define the search parameters. The filters are specified as a JSON object. Examples of keys/values supported: \\\'\\\"q\\\":\\\"query term\\\"\\\': query term; \\\'\\\"pp\\\":10\\\' number of results per page;\\\'\\\"p\\\":3\\\' page number of results; \\\'\\\"sort\\\":\\\"zToA\\\"\\\': sort order of results; \\\'\\\"collapse_expand\\\":false\\\' disable collapse/expand results with the same IRI; \\\'\\\"language\\\":\\\"[\\\"NONE\\\",\\\"en\\\"]\\\"\\\': limit to specified languages (to include results for all languages, don\\\'t specify a value for this filter). Facets are also specified with filters: e.g., \\\'\\\"publisher\\\":\\\"CSIRO\\\"\\\'. Supported facets: \\\"publisher\\\", \\\"rdf_type\\\", \\\"status\\\", \\\"subject_labels\\\".
|
|
3833
|
+
* @param {*} [options] Override http request option.
|
|
3834
|
+
* @throws {RequiredError}
|
|
3835
|
+
*/
|
|
3836
|
+
searchResources(filtersJson, options) {
|
|
3837
|
+
return (0, exports.ServicesApiFp)(this.configuration).searchResources(filtersJson, options).then((request) => request(this.axios, this.basePath));
|
|
3838
|
+
}
|
|
3839
|
+
}
|
|
3840
|
+
exports.ServicesApi = ServicesApi;
|
|
3841
|
+
/**
|
|
3842
|
+
* UtilitiesApi - axios parameter creator
|
|
3843
|
+
*/
|
|
3844
|
+
const UtilitiesApiAxiosParamCreator = function (configuration) {
|
|
3845
|
+
return {
|
|
3846
|
+
/**
|
|
3847
|
+
*
|
|
3848
|
+
* @summary Generate a slug.
|
|
3849
|
+
* @param {string} input String from which the slug is generated.
|
|
3850
|
+
* @param {*} [options] Override http request option.
|
|
3851
|
+
* @throws {RequiredError}
|
|
3852
|
+
*/
|
|
3853
|
+
generateSlug: async (input, options = {}) => {
|
|
3854
|
+
// verify required parameter 'input' is not null or undefined
|
|
3855
|
+
(0, common_1.assertParamExists)('generateSlug', 'input', input);
|
|
3856
|
+
const localVarPath = `/api/utilities/generateSlug`;
|
|
3857
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3858
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3859
|
+
let baseOptions;
|
|
3860
|
+
if (configuration) {
|
|
3861
|
+
baseOptions = configuration.baseOptions;
|
|
3862
|
+
}
|
|
3863
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
3864
|
+
const localVarHeaderParameter = {};
|
|
3865
|
+
const localVarQueryParameter = {};
|
|
3866
|
+
if (input !== undefined) {
|
|
3867
|
+
localVarQueryParameter['input'] = input;
|
|
3868
|
+
}
|
|
3869
|
+
localVarHeaderParameter['Accept'] = 'application/xml,application/json';
|
|
3870
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3871
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3872
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
3873
|
+
return {
|
|
3874
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3875
|
+
options: localVarRequestOptions,
|
|
3876
|
+
};
|
|
3877
|
+
},
|
|
3878
|
+
/**
|
|
3879
|
+
* If the tag is valid, the response will contain the canonical form of the tag, andits full description. If the tag is invalid, the response will contain the errors generated during parsing.
|
|
3880
|
+
* @summary Parse a BCP 47 language tag.
|
|
3881
|
+
* @param {string} tag Language tag to be parsed.
|
|
3882
|
+
* @param {*} [options] Override http request option.
|
|
3883
|
+
* @throws {RequiredError}
|
|
3884
|
+
*/
|
|
3885
|
+
parseLanguageTag: async (tag, options = {}) => {
|
|
3886
|
+
// verify required parameter 'tag' is not null or undefined
|
|
3887
|
+
(0, common_1.assertParamExists)('parseLanguageTag', 'tag', tag);
|
|
3888
|
+
const localVarPath = `/api/utilities/languages/parseLanguageTag`;
|
|
3889
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3890
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3891
|
+
let baseOptions;
|
|
3892
|
+
if (configuration) {
|
|
3893
|
+
baseOptions = configuration.baseOptions;
|
|
3894
|
+
}
|
|
3895
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
3896
|
+
const localVarHeaderParameter = {};
|
|
3897
|
+
const localVarQueryParameter = {};
|
|
3898
|
+
if (tag !== undefined) {
|
|
3899
|
+
localVarQueryParameter['tag'] = tag;
|
|
3900
|
+
}
|
|
3901
|
+
localVarHeaderParameter['Accept'] = 'application/xml,application/json';
|
|
3902
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3903
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3904
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
3905
|
+
return {
|
|
3906
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3907
|
+
options: localVarRequestOptions,
|
|
3908
|
+
};
|
|
3909
|
+
},
|
|
3910
|
+
/**
|
|
3911
|
+
* The response contains a list element for every tag included in the input. For each invalid tag, the list element has no attributes.
|
|
3912
|
+
* @summary Parse several BCP 47 language tags.
|
|
3913
|
+
* @param {Array<string>} tags Language tags to be parsed.
|
|
3914
|
+
* @param {*} [options] Override http request option.
|
|
3915
|
+
* @throws {RequiredError}
|
|
3916
|
+
*/
|
|
3917
|
+
parseLanguageTags: async (tags, options = {}) => {
|
|
3918
|
+
// verify required parameter 'tags' is not null or undefined
|
|
3919
|
+
(0, common_1.assertParamExists)('parseLanguageTags', 'tags', tags);
|
|
3920
|
+
const localVarPath = `/api/utilities/languages/parseLanguageTags`;
|
|
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 = { method: 'GET', ...baseOptions, ...options };
|
|
3928
|
+
const localVarHeaderParameter = {};
|
|
3929
|
+
const localVarQueryParameter = {};
|
|
3930
|
+
if (tags) {
|
|
3931
|
+
localVarQueryParameter['tags'] = tags;
|
|
3932
|
+
}
|
|
3933
|
+
localVarHeaderParameter['Accept'] = 'application/xml,application/json';
|
|
3934
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3935
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3936
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
3937
|
+
return {
|
|
3938
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3939
|
+
options: localVarRequestOptions,
|
|
3940
|
+
};
|
|
3941
|
+
},
|
|
3942
|
+
};
|
|
3943
|
+
};
|
|
3944
|
+
exports.UtilitiesApiAxiosParamCreator = UtilitiesApiAxiosParamCreator;
|
|
3945
|
+
/**
|
|
3946
|
+
* UtilitiesApi - functional programming interface
|
|
3947
|
+
*/
|
|
3948
|
+
const UtilitiesApiFp = function (configuration) {
|
|
3949
|
+
const localVarAxiosParamCreator = (0, exports.UtilitiesApiAxiosParamCreator)(configuration);
|
|
3950
|
+
return {
|
|
3951
|
+
/**
|
|
3952
|
+
*
|
|
3953
|
+
* @summary Generate a slug.
|
|
3954
|
+
* @param {string} input String from which the slug is generated.
|
|
3955
|
+
* @param {*} [options] Override http request option.
|
|
3956
|
+
* @throws {RequiredError}
|
|
3957
|
+
*/
|
|
3958
|
+
async generateSlug(input, options) {
|
|
3959
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.generateSlug(input, options);
|
|
3960
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3961
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['UtilitiesApi.generateSlug']?.[localVarOperationServerIndex]?.url;
|
|
3962
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3963
|
+
},
|
|
3964
|
+
/**
|
|
3965
|
+
* If the tag is valid, the response will contain the canonical form of the tag, andits full description. If the tag is invalid, the response will contain the errors generated during parsing.
|
|
3966
|
+
* @summary Parse a BCP 47 language tag.
|
|
3967
|
+
* @param {string} tag Language tag to be parsed.
|
|
3968
|
+
* @param {*} [options] Override http request option.
|
|
3969
|
+
* @throws {RequiredError}
|
|
3970
|
+
*/
|
|
3971
|
+
async parseLanguageTag(tag, options) {
|
|
3972
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.parseLanguageTag(tag, options);
|
|
3973
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3974
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['UtilitiesApi.parseLanguageTag']?.[localVarOperationServerIndex]?.url;
|
|
3975
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3976
|
+
},
|
|
3977
|
+
/**
|
|
3978
|
+
* The response contains a list element for every tag included in the input. For each invalid tag, the list element has no attributes.
|
|
3979
|
+
* @summary Parse several BCP 47 language tags.
|
|
3980
|
+
* @param {Array<string>} tags Language tags to be parsed.
|
|
3981
|
+
* @param {*} [options] Override http request option.
|
|
3982
|
+
* @throws {RequiredError}
|
|
3983
|
+
*/
|
|
3984
|
+
async parseLanguageTags(tags, options) {
|
|
3985
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.parseLanguageTags(tags, options);
|
|
3986
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3987
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['UtilitiesApi.parseLanguageTags']?.[localVarOperationServerIndex]?.url;
|
|
3988
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3989
|
+
},
|
|
3990
|
+
};
|
|
3991
|
+
};
|
|
3992
|
+
exports.UtilitiesApiFp = UtilitiesApiFp;
|
|
3993
|
+
/**
|
|
3994
|
+
* UtilitiesApi - factory interface
|
|
3995
|
+
*/
|
|
3996
|
+
const UtilitiesApiFactory = function (configuration, basePath, axios) {
|
|
3997
|
+
const localVarFp = (0, exports.UtilitiesApiFp)(configuration);
|
|
3998
|
+
return {
|
|
3999
|
+
/**
|
|
4000
|
+
*
|
|
4001
|
+
* @summary Generate a slug.
|
|
4002
|
+
* @param {string} input String from which the slug is generated.
|
|
4003
|
+
* @param {*} [options] Override http request option.
|
|
4004
|
+
* @throws {RequiredError}
|
|
4005
|
+
*/
|
|
4006
|
+
generateSlug(input, options) {
|
|
4007
|
+
return localVarFp.generateSlug(input, options).then((request) => request(axios, basePath));
|
|
4008
|
+
},
|
|
4009
|
+
/**
|
|
4010
|
+
* If the tag is valid, the response will contain the canonical form of the tag, andits full description. If the tag is invalid, the response will contain the errors generated during parsing.
|
|
4011
|
+
* @summary Parse a BCP 47 language tag.
|
|
4012
|
+
* @param {string} tag Language tag to be parsed.
|
|
4013
|
+
* @param {*} [options] Override http request option.
|
|
4014
|
+
* @throws {RequiredError}
|
|
4015
|
+
*/
|
|
4016
|
+
parseLanguageTag(tag, options) {
|
|
4017
|
+
return localVarFp.parseLanguageTag(tag, options).then((request) => request(axios, basePath));
|
|
4018
|
+
},
|
|
4019
|
+
/**
|
|
4020
|
+
* The response contains a list element for every tag included in the input. For each invalid tag, the list element has no attributes.
|
|
4021
|
+
* @summary Parse several BCP 47 language tags.
|
|
4022
|
+
* @param {Array<string>} tags Language tags to be parsed.
|
|
4023
|
+
* @param {*} [options] Override http request option.
|
|
4024
|
+
* @throws {RequiredError}
|
|
4025
|
+
*/
|
|
4026
|
+
parseLanguageTags(tags, options) {
|
|
4027
|
+
return localVarFp.parseLanguageTags(tags, options).then((request) => request(axios, basePath));
|
|
4028
|
+
},
|
|
4029
|
+
};
|
|
4030
|
+
};
|
|
4031
|
+
exports.UtilitiesApiFactory = UtilitiesApiFactory;
|
|
4032
|
+
/**
|
|
4033
|
+
* UtilitiesApi - object-oriented interface
|
|
4034
|
+
*/
|
|
4035
|
+
class UtilitiesApi extends base_1.BaseAPI {
|
|
4036
|
+
/**
|
|
4037
|
+
*
|
|
4038
|
+
* @summary Generate a slug.
|
|
4039
|
+
* @param {string} input String from which the slug is generated.
|
|
4040
|
+
* @param {*} [options] Override http request option.
|
|
4041
|
+
* @throws {RequiredError}
|
|
4042
|
+
*/
|
|
4043
|
+
generateSlug(input, options) {
|
|
4044
|
+
return (0, exports.UtilitiesApiFp)(this.configuration).generateSlug(input, options).then((request) => request(this.axios, this.basePath));
|
|
4045
|
+
}
|
|
4046
|
+
/**
|
|
4047
|
+
* If the tag is valid, the response will contain the canonical form of the tag, andits full description. If the tag is invalid, the response will contain the errors generated during parsing.
|
|
4048
|
+
* @summary Parse a BCP 47 language tag.
|
|
4049
|
+
* @param {string} tag Language tag to be parsed.
|
|
4050
|
+
* @param {*} [options] Override http request option.
|
|
4051
|
+
* @throws {RequiredError}
|
|
4052
|
+
*/
|
|
4053
|
+
parseLanguageTag(tag, options) {
|
|
4054
|
+
return (0, exports.UtilitiesApiFp)(this.configuration).parseLanguageTag(tag, options).then((request) => request(this.axios, this.basePath));
|
|
4055
|
+
}
|
|
4056
|
+
/**
|
|
4057
|
+
* The response contains a list element for every tag included in the input. For each invalid tag, the list element has no attributes.
|
|
4058
|
+
* @summary Parse several BCP 47 language tags.
|
|
4059
|
+
* @param {Array<string>} tags Language tags to be parsed.
|
|
4060
|
+
* @param {*} [options] Override http request option.
|
|
4061
|
+
* @throws {RequiredError}
|
|
4062
|
+
*/
|
|
4063
|
+
parseLanguageTags(tags, options) {
|
|
4064
|
+
return (0, exports.UtilitiesApiFp)(this.configuration).parseLanguageTags(tags, options).then((request) => request(this.axios, this.basePath));
|
|
4065
|
+
}
|
|
4066
|
+
}
|
|
4067
|
+
exports.UtilitiesApi = UtilitiesApi;
|