@researchdatabox/raido-openapi-generated-node 0.0.1 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/api/apis.js +5 -9
- package/dist/api/{basicRaidExperimentalApi.js → raidApi.js} +98 -69
- package/dist/api/{publicExperimentalApi.js → servicePointApi.js} +115 -29
- package/dist/model/access.js +44 -0
- package/dist/model/accessStatement.js +35 -0
- package/dist/model/accessType.js +22 -6
- package/dist/model/{descriptionBlock.js → alternateIdentifier.js} +9 -9
- package/dist/model/{alternateUrlBlock.js → alternateUrl.js} +5 -5
- package/dist/model/closedRaid.js +35 -0
- package/dist/model/{apiKey.js → contributor.js} +21 -36
- package/dist/model/contributorPosition.js +9 -9
- package/dist/model/contributorRole.js +9 -9
- package/dist/model/description.js +41 -0
- package/dist/model/descriptionType.js +22 -6
- package/dist/model/{updateAuthzRequestStatus.js → failureResponse.js} +25 -16
- package/dist/model/id.js +80 -0
- package/dist/model/{publicServicePoint.js → language.js} +9 -12
- package/dist/model/{datesBlock.js → modelDate.js} +8 -5
- package/dist/model/models.js +100 -140
- package/dist/model/{organisationBlock.js → organisation.js} +12 -12
- package/dist/model/organisationRole.js +9 -9
- package/dist/model/{appUserExtraV1.js → owner.js} +20 -17
- package/dist/model/{raidListItemV2.js → raidChange.js} +21 -21
- package/dist/model/raidCreateRequest.js +107 -0
- package/dist/model/raidDto.js +107 -0
- package/dist/model/raidUpdateRequest.js +107 -0
- package/dist/model/registrationAgency.js +38 -0
- package/dist/model/relatedObject.js +47 -0
- package/dist/model/{publicClosedMetadataSchemaV1.js → relatedObjectCategory.js} +10 -16
- package/dist/model/relatedObjectType.js +35 -0
- package/dist/model/{accessBlock.js → relatedRaid.js} +12 -12
- package/dist/model/relatedRaidType.js +35 -0
- package/dist/model/servicePoint.js +31 -1
- package/dist/model/servicePointCreateRequest.js +104 -0
- package/dist/model/servicePointUpdateRequest.js +113 -0
- package/dist/model/{contributorBlock.js → spatialCoverage.js} +13 -19
- package/dist/model/spatialCoveragePlace.js +35 -0
- package/dist/model/subject.js +41 -0
- package/dist/model/{generateApiTokenResponse.js → subjectKeyword.js} +13 -13
- package/dist/model/{titleBlock.js → title.js} +14 -8
- package/dist/model/titleType.js +22 -6
- package/dist/model/traditionalKnowledgeLabel.js +35 -0
- package/dist/model/validationFailure.js +1 -1
- package/dist/model/{readRaidResponseV2.js → validationFailureResponse.js} +26 -38
- package/package.json +3 -3
- package/dist/api/adminExperimentalApi.js +0 -1092
- package/dist/api/unauthzExperimentalApi.js +0 -147
- package/dist/model/appUser.js +0 -83
- package/dist/model/authzRequestExtraV1.js +0 -104
- package/dist/model/authzRequestStatus.js +0 -20
- package/dist/model/contributorIdentifierSchemeType.js +0 -18
- package/dist/model/contributorPositionRaidMetadataSchemaType.js +0 -22
- package/dist/model/contributorPositionSchemeType.js +0 -18
- package/dist/model/contributorRoleCreditNisoOrgType.js +0 -31
- package/dist/model/contributorRoleSchemeType.js +0 -18
- package/dist/model/generateApiTokenRequest.js +0 -29
- package/dist/model/idBlock.js +0 -65
- package/dist/model/legacyMetadataSchemaV1.js +0 -68
- package/dist/model/migrateLegacyRaidRequest.js +0 -35
- package/dist/model/migrateLegacyRaidRequestMintRequest.js +0 -41
- package/dist/model/mintRaidoSchemaV1Request.js +0 -38
- package/dist/model/mintRaidoSchemaV1RequestMintRequest.js +0 -32
- package/dist/model/mintResponse.js +0 -41
- package/dist/model/organisationIdentifierSchemeType.js +0 -18
- package/dist/model/organisationRoleSchemeType.js +0 -18
- package/dist/model/organisationRoleType.js +0 -22
- package/dist/model/publicRaidMetadataSchemaV1.js +0 -80
- package/dist/model/publicReadRaidMetadataResponseV1.js +0 -80
- package/dist/model/publicReadRaidResponseV3.js +0 -56
- package/dist/model/raidListRequestV2.js +0 -35
- package/dist/model/raidoMetadataSchemaV1.js +0 -80
- package/dist/model/raidoMetaschema.js +0 -22
- package/dist/model/readRaidV2Request.js +0 -29
- package/dist/model/updateAuthzRequest.js +0 -38
- package/dist/model/updateAuthzResponse.js +0 -29
- package/dist/model/updateRaidoSchemaV1Request.js +0 -29
- package/dist/model/versionResult.js +0 -47
|
@@ -1,147 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* RAID v2 API
|
|
4
|
-
* This file is where all the endpoint paths are defined, it\'s the \"top level\' of the OpenAPI definition that links all the different files together. The `3.0` in the filename refers to this file being based on OpenAPI 3.0 as opposed to OpenAPI 3.1, which the tooling doesn\'t support yet. The `2.0.0` in the version field refers to the fact that there\'s already a `1.0.0` used for the legacy RAiD application (not this project).
|
|
5
|
-
*
|
|
6
|
-
* The version of the OpenAPI document: 2.0.0
|
|
7
|
-
* Contact: contact@raid.org
|
|
8
|
-
*
|
|
9
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
10
|
-
* https://openapi-generator.tech
|
|
11
|
-
* Do not edit the class manually.
|
|
12
|
-
*/
|
|
13
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
14
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.UnauthzExperimentalApi = exports.UnauthzExperimentalApiApiKeys = void 0;
|
|
18
|
-
const request_1 = __importDefault(require("request"));
|
|
19
|
-
const models_1 = require("../model/models");
|
|
20
|
-
const models_2 = require("../model/models");
|
|
21
|
-
const apis_1 = require("./apis");
|
|
22
|
-
let defaultBasePath = 'https://demo.raido-infra.com';
|
|
23
|
-
// ===============================================
|
|
24
|
-
// This file is autogenerated - Please do not edit
|
|
25
|
-
// ===============================================
|
|
26
|
-
var UnauthzExperimentalApiApiKeys;
|
|
27
|
-
(function (UnauthzExperimentalApiApiKeys) {
|
|
28
|
-
})(UnauthzExperimentalApiApiKeys = exports.UnauthzExperimentalApiApiKeys || (exports.UnauthzExperimentalApiApiKeys = {}));
|
|
29
|
-
class UnauthzExperimentalApi {
|
|
30
|
-
_basePath = defaultBasePath;
|
|
31
|
-
_defaultHeaders = {};
|
|
32
|
-
_useQuerystring = false;
|
|
33
|
-
authentications = {
|
|
34
|
-
'default': new models_1.VoidAuth(),
|
|
35
|
-
'BearerAuth': new models_2.HttpBearerAuth(),
|
|
36
|
-
};
|
|
37
|
-
interceptors = [];
|
|
38
|
-
constructor(basePathOrUsername, password, basePath) {
|
|
39
|
-
if (password) {
|
|
40
|
-
if (basePath) {
|
|
41
|
-
this.basePath = basePath;
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
else {
|
|
45
|
-
if (basePathOrUsername) {
|
|
46
|
-
this.basePath = basePathOrUsername;
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
set useQuerystring(value) {
|
|
51
|
-
this._useQuerystring = value;
|
|
52
|
-
}
|
|
53
|
-
set basePath(basePath) {
|
|
54
|
-
this._basePath = basePath;
|
|
55
|
-
}
|
|
56
|
-
set defaultHeaders(defaultHeaders) {
|
|
57
|
-
this._defaultHeaders = defaultHeaders;
|
|
58
|
-
}
|
|
59
|
-
get defaultHeaders() {
|
|
60
|
-
return this._defaultHeaders;
|
|
61
|
-
}
|
|
62
|
-
get basePath() {
|
|
63
|
-
return this._basePath;
|
|
64
|
-
}
|
|
65
|
-
setDefaultAuthentication(auth) {
|
|
66
|
-
this.authentications.default = auth;
|
|
67
|
-
}
|
|
68
|
-
setApiKey(key, value) {
|
|
69
|
-
this.authentications[UnauthzExperimentalApiApiKeys[key]].apiKey = value;
|
|
70
|
-
}
|
|
71
|
-
set accessToken(accessToken) {
|
|
72
|
-
this.authentications.BearerAuth.accessToken = accessToken;
|
|
73
|
-
}
|
|
74
|
-
addInterceptor(interceptor) {
|
|
75
|
-
this.interceptors.push(interceptor);
|
|
76
|
-
}
|
|
77
|
-
/**
|
|
78
|
-
*
|
|
79
|
-
* @summary create or update an authz request
|
|
80
|
-
* @param updateAuthzRequest
|
|
81
|
-
*/
|
|
82
|
-
async updateRequestAuthz(updateAuthzRequest, options = { headers: {} }) {
|
|
83
|
-
const localVarPath = this.basePath + '/v2/public/request-authz/v1';
|
|
84
|
-
let localVarQueryParameters = {};
|
|
85
|
-
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
86
|
-
const produces = ['application/json'];
|
|
87
|
-
// give precedence to 'application/json'
|
|
88
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
89
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
90
|
-
}
|
|
91
|
-
else {
|
|
92
|
-
localVarHeaderParams.Accept = produces.join(',');
|
|
93
|
-
}
|
|
94
|
-
let localVarFormParams = {};
|
|
95
|
-
// verify required parameter 'updateAuthzRequest' is not null or undefined
|
|
96
|
-
if (updateAuthzRequest === null || updateAuthzRequest === undefined) {
|
|
97
|
-
throw new Error('Required parameter updateAuthzRequest was null or undefined when calling updateRequestAuthz.');
|
|
98
|
-
}
|
|
99
|
-
Object.assign(localVarHeaderParams, options.headers);
|
|
100
|
-
let localVarUseFormData = false;
|
|
101
|
-
let localVarRequestOptions = {
|
|
102
|
-
method: 'POST',
|
|
103
|
-
qs: localVarQueryParameters,
|
|
104
|
-
headers: localVarHeaderParams,
|
|
105
|
-
uri: localVarPath,
|
|
106
|
-
useQuerystring: this._useQuerystring,
|
|
107
|
-
json: true,
|
|
108
|
-
body: models_1.ObjectSerializer.serialize(updateAuthzRequest, "UpdateAuthzRequest")
|
|
109
|
-
};
|
|
110
|
-
let authenticationPromise = Promise.resolve();
|
|
111
|
-
if (this.authentications.BearerAuth.accessToken) {
|
|
112
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.BearerAuth.applyToRequest(localVarRequestOptions));
|
|
113
|
-
}
|
|
114
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
115
|
-
let interceptorPromise = authenticationPromise;
|
|
116
|
-
for (const interceptor of this.interceptors) {
|
|
117
|
-
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
118
|
-
}
|
|
119
|
-
return interceptorPromise.then(() => {
|
|
120
|
-
if (Object.keys(localVarFormParams).length) {
|
|
121
|
-
if (localVarUseFormData) {
|
|
122
|
-
localVarRequestOptions.formData = localVarFormParams;
|
|
123
|
-
}
|
|
124
|
-
else {
|
|
125
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
return new Promise((resolve, reject) => {
|
|
129
|
-
(0, request_1.default)(localVarRequestOptions, (error, response, body) => {
|
|
130
|
-
if (error) {
|
|
131
|
-
reject(error);
|
|
132
|
-
}
|
|
133
|
-
else {
|
|
134
|
-
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
135
|
-
body = models_1.ObjectSerializer.deserialize(body, "UpdateAuthzResponse");
|
|
136
|
-
resolve({ response: response, body: body });
|
|
137
|
-
}
|
|
138
|
-
else {
|
|
139
|
-
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
});
|
|
143
|
-
});
|
|
144
|
-
});
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
exports.UnauthzExperimentalApi = UnauthzExperimentalApi;
|
package/dist/model/appUser.js
DELETED
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* RAID v2 API
|
|
4
|
-
* This file is where all the endpoint paths are defined, it\'s the \"top level\' of the OpenAPI definition that links all the different files together. The `3.0` in the filename refers to this file being based on OpenAPI 3.0 as opposed to OpenAPI 3.1, which the tooling doesn\'t support yet. The `2.0.0` in the version field refers to the fact that there\'s already a `1.0.0` used for the legacy RAiD application (not this project).
|
|
5
|
-
*
|
|
6
|
-
* The version of the OpenAPI document: 2.0.0
|
|
7
|
-
* Contact: contact@raid.org
|
|
8
|
-
*
|
|
9
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
10
|
-
* https://openapi-generator.tech
|
|
11
|
-
* Do not edit the class manually.
|
|
12
|
-
*/
|
|
13
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
-
exports.AppUser = void 0;
|
|
15
|
-
class AppUser {
|
|
16
|
-
'id';
|
|
17
|
-
'servicePointId';
|
|
18
|
-
'email';
|
|
19
|
-
'clientId';
|
|
20
|
-
'subject';
|
|
21
|
-
'idProvider';
|
|
22
|
-
'role';
|
|
23
|
-
'enabled';
|
|
24
|
-
'tokenCutoff';
|
|
25
|
-
'dateCreated';
|
|
26
|
-
static discriminator = undefined;
|
|
27
|
-
static attributeTypeMap = [
|
|
28
|
-
{
|
|
29
|
-
"name": "id",
|
|
30
|
-
"baseName": "id",
|
|
31
|
-
"type": "number"
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
"name": "servicePointId",
|
|
35
|
-
"baseName": "servicePointId",
|
|
36
|
-
"type": "number"
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
"name": "email",
|
|
40
|
-
"baseName": "email",
|
|
41
|
-
"type": "string"
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
"name": "clientId",
|
|
45
|
-
"baseName": "clientId",
|
|
46
|
-
"type": "string"
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
"name": "subject",
|
|
50
|
-
"baseName": "subject",
|
|
51
|
-
"type": "string"
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
"name": "idProvider",
|
|
55
|
-
"baseName": "idProvider",
|
|
56
|
-
"type": "string"
|
|
57
|
-
},
|
|
58
|
-
{
|
|
59
|
-
"name": "role",
|
|
60
|
-
"baseName": "role",
|
|
61
|
-
"type": "string"
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
"name": "enabled",
|
|
65
|
-
"baseName": "enabled",
|
|
66
|
-
"type": "boolean"
|
|
67
|
-
},
|
|
68
|
-
{
|
|
69
|
-
"name": "tokenCutoff",
|
|
70
|
-
"baseName": "tokenCutoff",
|
|
71
|
-
"type": "Date"
|
|
72
|
-
},
|
|
73
|
-
{
|
|
74
|
-
"name": "dateCreated",
|
|
75
|
-
"baseName": "dateCreated",
|
|
76
|
-
"type": "Date"
|
|
77
|
-
}
|
|
78
|
-
];
|
|
79
|
-
static getAttributeTypeMap() {
|
|
80
|
-
return AppUser.attributeTypeMap;
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
exports.AppUser = AppUser;
|
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* RAID v2 API
|
|
4
|
-
* This file is where all the endpoint paths are defined, it\'s the \"top level\' of the OpenAPI definition that links all the different files together. The `3.0` in the filename refers to this file being based on OpenAPI 3.0 as opposed to OpenAPI 3.1, which the tooling doesn\'t support yet. The `2.0.0` in the version field refers to the fact that there\'s already a `1.0.0` used for the legacy RAiD application (not this project).
|
|
5
|
-
*
|
|
6
|
-
* The version of the OpenAPI document: 2.0.0
|
|
7
|
-
* Contact: contact@raid.org
|
|
8
|
-
*
|
|
9
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
10
|
-
* https://openapi-generator.tech
|
|
11
|
-
* Do not edit the class manually.
|
|
12
|
-
*/
|
|
13
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
-
exports.AuthzRequestExtraV1 = void 0;
|
|
15
|
-
/**
|
|
16
|
-
* authorization request with extra data
|
|
17
|
-
*/
|
|
18
|
-
class AuthzRequestExtraV1 {
|
|
19
|
-
'id';
|
|
20
|
-
'status';
|
|
21
|
-
'servicePointId';
|
|
22
|
-
'servicePointName';
|
|
23
|
-
'comments';
|
|
24
|
-
'email';
|
|
25
|
-
'clientId';
|
|
26
|
-
'idProvider';
|
|
27
|
-
'subject';
|
|
28
|
-
'respondingUserId';
|
|
29
|
-
'respondingUserEmail';
|
|
30
|
-
'dateRequested';
|
|
31
|
-
'dateResponded';
|
|
32
|
-
static discriminator = undefined;
|
|
33
|
-
static attributeTypeMap = [
|
|
34
|
-
{
|
|
35
|
-
"name": "id",
|
|
36
|
-
"baseName": "id",
|
|
37
|
-
"type": "number"
|
|
38
|
-
},
|
|
39
|
-
{
|
|
40
|
-
"name": "status",
|
|
41
|
-
"baseName": "status",
|
|
42
|
-
"type": "AuthzRequestStatus"
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
"name": "servicePointId",
|
|
46
|
-
"baseName": "servicePointId",
|
|
47
|
-
"type": "number"
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
"name": "servicePointName",
|
|
51
|
-
"baseName": "servicePointName",
|
|
52
|
-
"type": "string"
|
|
53
|
-
},
|
|
54
|
-
{
|
|
55
|
-
"name": "comments",
|
|
56
|
-
"baseName": "comments",
|
|
57
|
-
"type": "string"
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
"name": "email",
|
|
61
|
-
"baseName": "email",
|
|
62
|
-
"type": "string"
|
|
63
|
-
},
|
|
64
|
-
{
|
|
65
|
-
"name": "clientId",
|
|
66
|
-
"baseName": "clientId",
|
|
67
|
-
"type": "string"
|
|
68
|
-
},
|
|
69
|
-
{
|
|
70
|
-
"name": "idProvider",
|
|
71
|
-
"baseName": "idProvider",
|
|
72
|
-
"type": "string"
|
|
73
|
-
},
|
|
74
|
-
{
|
|
75
|
-
"name": "subject",
|
|
76
|
-
"baseName": "subject",
|
|
77
|
-
"type": "string"
|
|
78
|
-
},
|
|
79
|
-
{
|
|
80
|
-
"name": "respondingUserId",
|
|
81
|
-
"baseName": "respondingUserId",
|
|
82
|
-
"type": "number"
|
|
83
|
-
},
|
|
84
|
-
{
|
|
85
|
-
"name": "respondingUserEmail",
|
|
86
|
-
"baseName": "respondingUserEmail",
|
|
87
|
-
"type": "string"
|
|
88
|
-
},
|
|
89
|
-
{
|
|
90
|
-
"name": "dateRequested",
|
|
91
|
-
"baseName": "dateRequested",
|
|
92
|
-
"type": "Date"
|
|
93
|
-
},
|
|
94
|
-
{
|
|
95
|
-
"name": "dateResponded",
|
|
96
|
-
"baseName": "dateResponded",
|
|
97
|
-
"type": "Date"
|
|
98
|
-
}
|
|
99
|
-
];
|
|
100
|
-
static getAttributeTypeMap() {
|
|
101
|
-
return AuthzRequestExtraV1.attributeTypeMap;
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
exports.AuthzRequestExtraV1 = AuthzRequestExtraV1;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* RAID v2 API
|
|
4
|
-
* This file is where all the endpoint paths are defined, it\'s the \"top level\' of the OpenAPI definition that links all the different files together. The `3.0` in the filename refers to this file being based on OpenAPI 3.0 as opposed to OpenAPI 3.1, which the tooling doesn\'t support yet. The `2.0.0` in the version field refers to the fact that there\'s already a `1.0.0` used for the legacy RAiD application (not this project).
|
|
5
|
-
*
|
|
6
|
-
* The version of the OpenAPI document: 2.0.0
|
|
7
|
-
* Contact: contact@raid.org
|
|
8
|
-
*
|
|
9
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
10
|
-
* https://openapi-generator.tech
|
|
11
|
-
* Do not edit the class manually.
|
|
12
|
-
*/
|
|
13
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
-
exports.AuthzRequestStatus = void 0;
|
|
15
|
-
var AuthzRequestStatus;
|
|
16
|
-
(function (AuthzRequestStatus) {
|
|
17
|
-
AuthzRequestStatus[AuthzRequestStatus["Approved"] = 'APPROVED'] = "Approved";
|
|
18
|
-
AuthzRequestStatus[AuthzRequestStatus["Requested"] = 'REQUESTED'] = "Requested";
|
|
19
|
-
AuthzRequestStatus[AuthzRequestStatus["Rejected"] = 'REJECTED'] = "Rejected";
|
|
20
|
-
})(AuthzRequestStatus = exports.AuthzRequestStatus || (exports.AuthzRequestStatus = {}));
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* RAID v2 API
|
|
4
|
-
* This file is where all the endpoint paths are defined, it\'s the \"top level\' of the OpenAPI definition that links all the different files together. The `3.0` in the filename refers to this file being based on OpenAPI 3.0 as opposed to OpenAPI 3.1, which the tooling doesn\'t support yet. The `2.0.0` in the version field refers to the fact that there\'s already a `1.0.0` used for the legacy RAiD application (not this project).
|
|
5
|
-
*
|
|
6
|
-
* The version of the OpenAPI document: 2.0.0
|
|
7
|
-
* Contact: contact@raid.org
|
|
8
|
-
*
|
|
9
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
10
|
-
* https://openapi-generator.tech
|
|
11
|
-
* Do not edit the class manually.
|
|
12
|
-
*/
|
|
13
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
-
exports.ContributorIdentifierSchemeType = void 0;
|
|
15
|
-
var ContributorIdentifierSchemeType;
|
|
16
|
-
(function (ContributorIdentifierSchemeType) {
|
|
17
|
-
ContributorIdentifierSchemeType[ContributorIdentifierSchemeType["HttpsOrcidOrg"] = 'https://orcid.org/'] = "HttpsOrcidOrg";
|
|
18
|
-
})(ContributorIdentifierSchemeType = exports.ContributorIdentifierSchemeType || (exports.ContributorIdentifierSchemeType = {}));
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* RAID v2 API
|
|
4
|
-
* This file is where all the endpoint paths are defined, it\'s the \"top level\' of the OpenAPI definition that links all the different files together. The `3.0` in the filename refers to this file being based on OpenAPI 3.0 as opposed to OpenAPI 3.1, which the tooling doesn\'t support yet. The `2.0.0` in the version field refers to the fact that there\'s already a `1.0.0` used for the legacy RAiD application (not this project).
|
|
5
|
-
*
|
|
6
|
-
* The version of the OpenAPI document: 2.0.0
|
|
7
|
-
* Contact: contact@raid.org
|
|
8
|
-
*
|
|
9
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
10
|
-
* https://openapi-generator.tech
|
|
11
|
-
* Do not edit the class manually.
|
|
12
|
-
*/
|
|
13
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
-
exports.ContributorPositionRaidMetadataSchemaType = void 0;
|
|
15
|
-
var ContributorPositionRaidMetadataSchemaType;
|
|
16
|
-
(function (ContributorPositionRaidMetadataSchemaType) {
|
|
17
|
-
ContributorPositionRaidMetadataSchemaType[ContributorPositionRaidMetadataSchemaType["Leader"] = 'Leader'] = "Leader";
|
|
18
|
-
ContributorPositionRaidMetadataSchemaType[ContributorPositionRaidMetadataSchemaType["ContactPerson"] = 'Contact Person'] = "ContactPerson";
|
|
19
|
-
ContributorPositionRaidMetadataSchemaType[ContributorPositionRaidMetadataSchemaType["PrincipalInvestigator"] = 'Principal Investigator'] = "PrincipalInvestigator";
|
|
20
|
-
ContributorPositionRaidMetadataSchemaType[ContributorPositionRaidMetadataSchemaType["CoInvestigator"] = 'Co-Investigator'] = "CoInvestigator";
|
|
21
|
-
ContributorPositionRaidMetadataSchemaType[ContributorPositionRaidMetadataSchemaType["OtherParticipant"] = 'Other Participant'] = "OtherParticipant";
|
|
22
|
-
})(ContributorPositionRaidMetadataSchemaType = exports.ContributorPositionRaidMetadataSchemaType || (exports.ContributorPositionRaidMetadataSchemaType = {}));
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* RAID v2 API
|
|
4
|
-
* This file is where all the endpoint paths are defined, it\'s the \"top level\' of the OpenAPI definition that links all the different files together. The `3.0` in the filename refers to this file being based on OpenAPI 3.0 as opposed to OpenAPI 3.1, which the tooling doesn\'t support yet. The `2.0.0` in the version field refers to the fact that there\'s already a `1.0.0` used for the legacy RAiD application (not this project).
|
|
5
|
-
*
|
|
6
|
-
* The version of the OpenAPI document: 2.0.0
|
|
7
|
-
* Contact: contact@raid.org
|
|
8
|
-
*
|
|
9
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
10
|
-
* https://openapi-generator.tech
|
|
11
|
-
* Do not edit the class manually.
|
|
12
|
-
*/
|
|
13
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
-
exports.ContributorPositionSchemeType = void 0;
|
|
15
|
-
var ContributorPositionSchemeType;
|
|
16
|
-
(function (ContributorPositionSchemeType) {
|
|
17
|
-
ContributorPositionSchemeType[ContributorPositionSchemeType["HttpsRaidOrg"] = 'https://raid.org/'] = "HttpsRaidOrg";
|
|
18
|
-
})(ContributorPositionSchemeType = exports.ContributorPositionSchemeType || (exports.ContributorPositionSchemeType = {}));
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* RAID v2 API
|
|
4
|
-
* This file is where all the endpoint paths are defined, it\'s the \"top level\' of the OpenAPI definition that links all the different files together. The `3.0` in the filename refers to this file being based on OpenAPI 3.0 as opposed to OpenAPI 3.1, which the tooling doesn\'t support yet. The `2.0.0` in the version field refers to the fact that there\'s already a `1.0.0` used for the legacy RAiD application (not this project).
|
|
5
|
-
*
|
|
6
|
-
* The version of the OpenAPI document: 2.0.0
|
|
7
|
-
* Contact: contact@raid.org
|
|
8
|
-
*
|
|
9
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
10
|
-
* https://openapi-generator.tech
|
|
11
|
-
* Do not edit the class manually.
|
|
12
|
-
*/
|
|
13
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
-
exports.ContributorRoleCreditNisoOrgType = void 0;
|
|
15
|
-
var ContributorRoleCreditNisoOrgType;
|
|
16
|
-
(function (ContributorRoleCreditNisoOrgType) {
|
|
17
|
-
ContributorRoleCreditNisoOrgType[ContributorRoleCreditNisoOrgType["Conceptualization"] = 'conceptualization'] = "Conceptualization";
|
|
18
|
-
ContributorRoleCreditNisoOrgType[ContributorRoleCreditNisoOrgType["DataCuration"] = 'data-curation'] = "DataCuration";
|
|
19
|
-
ContributorRoleCreditNisoOrgType[ContributorRoleCreditNisoOrgType["FormalAnalysis"] = 'formal-analysis'] = "FormalAnalysis";
|
|
20
|
-
ContributorRoleCreditNisoOrgType[ContributorRoleCreditNisoOrgType["FundingAcquisition"] = 'funding-acquisition'] = "FundingAcquisition";
|
|
21
|
-
ContributorRoleCreditNisoOrgType[ContributorRoleCreditNisoOrgType["Investigation"] = 'investigation'] = "Investigation";
|
|
22
|
-
ContributorRoleCreditNisoOrgType[ContributorRoleCreditNisoOrgType["Methodology"] = 'methodology'] = "Methodology";
|
|
23
|
-
ContributorRoleCreditNisoOrgType[ContributorRoleCreditNisoOrgType["ProjectAdministration"] = 'project-administration'] = "ProjectAdministration";
|
|
24
|
-
ContributorRoleCreditNisoOrgType[ContributorRoleCreditNisoOrgType["Resources"] = 'resources'] = "Resources";
|
|
25
|
-
ContributorRoleCreditNisoOrgType[ContributorRoleCreditNisoOrgType["Software"] = 'software'] = "Software";
|
|
26
|
-
ContributorRoleCreditNisoOrgType[ContributorRoleCreditNisoOrgType["Supervision"] = 'supervision'] = "Supervision";
|
|
27
|
-
ContributorRoleCreditNisoOrgType[ContributorRoleCreditNisoOrgType["Validation"] = 'validation'] = "Validation";
|
|
28
|
-
ContributorRoleCreditNisoOrgType[ContributorRoleCreditNisoOrgType["Visualization"] = 'visualization'] = "Visualization";
|
|
29
|
-
ContributorRoleCreditNisoOrgType[ContributorRoleCreditNisoOrgType["WritingOriginalDraft"] = 'writing-original-draft'] = "WritingOriginalDraft";
|
|
30
|
-
ContributorRoleCreditNisoOrgType[ContributorRoleCreditNisoOrgType["WritingReviewEditing"] = 'writing-review-editing'] = "WritingReviewEditing";
|
|
31
|
-
})(ContributorRoleCreditNisoOrgType = exports.ContributorRoleCreditNisoOrgType || (exports.ContributorRoleCreditNisoOrgType = {}));
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* RAID v2 API
|
|
4
|
-
* This file is where all the endpoint paths are defined, it\'s the \"top level\' of the OpenAPI definition that links all the different files together. The `3.0` in the filename refers to this file being based on OpenAPI 3.0 as opposed to OpenAPI 3.1, which the tooling doesn\'t support yet. The `2.0.0` in the version field refers to the fact that there\'s already a `1.0.0` used for the legacy RAiD application (not this project).
|
|
5
|
-
*
|
|
6
|
-
* The version of the OpenAPI document: 2.0.0
|
|
7
|
-
* Contact: contact@raid.org
|
|
8
|
-
*
|
|
9
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
10
|
-
* https://openapi-generator.tech
|
|
11
|
-
* Do not edit the class manually.
|
|
12
|
-
*/
|
|
13
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
-
exports.ContributorRoleSchemeType = void 0;
|
|
15
|
-
var ContributorRoleSchemeType;
|
|
16
|
-
(function (ContributorRoleSchemeType) {
|
|
17
|
-
ContributorRoleSchemeType[ContributorRoleSchemeType["HttpsCreditNisoOrg"] = 'https://credit.niso.org/'] = "HttpsCreditNisoOrg";
|
|
18
|
-
})(ContributorRoleSchemeType = exports.ContributorRoleSchemeType || (exports.ContributorRoleSchemeType = {}));
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* RAID v2 API
|
|
4
|
-
* This file is where all the endpoint paths are defined, it\'s the \"top level\' of the OpenAPI definition that links all the different files together. The `3.0` in the filename refers to this file being based on OpenAPI 3.0 as opposed to OpenAPI 3.1, which the tooling doesn\'t support yet. The `2.0.0` in the version field refers to the fact that there\'s already a `1.0.0` used for the legacy RAiD application (not this project).
|
|
5
|
-
*
|
|
6
|
-
* The version of the OpenAPI document: 2.0.0
|
|
7
|
-
* Contact: contact@raid.org
|
|
8
|
-
*
|
|
9
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
10
|
-
* https://openapi-generator.tech
|
|
11
|
-
* Do not edit the class manually.
|
|
12
|
-
*/
|
|
13
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
-
exports.GenerateApiTokenRequest = void 0;
|
|
15
|
-
class GenerateApiTokenRequest {
|
|
16
|
-
'apiKeyId';
|
|
17
|
-
static discriminator = undefined;
|
|
18
|
-
static attributeTypeMap = [
|
|
19
|
-
{
|
|
20
|
-
"name": "apiKeyId",
|
|
21
|
-
"baseName": "apiKeyId",
|
|
22
|
-
"type": "number"
|
|
23
|
-
}
|
|
24
|
-
];
|
|
25
|
-
static getAttributeTypeMap() {
|
|
26
|
-
return GenerateApiTokenRequest.attributeTypeMap;
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
exports.GenerateApiTokenRequest = GenerateApiTokenRequest;
|
package/dist/model/idBlock.js
DELETED
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* RAID v2 API
|
|
4
|
-
* This file is where all the endpoint paths are defined, it\'s the \"top level\' of the OpenAPI definition that links all the different files together. The `3.0` in the filename refers to this file being based on OpenAPI 3.0 as opposed to OpenAPI 3.1, which the tooling doesn\'t support yet. The `2.0.0` in the version field refers to the fact that there\'s already a `1.0.0` used for the legacy RAiD application (not this project).
|
|
5
|
-
*
|
|
6
|
-
* The version of the OpenAPI document: 2.0.0
|
|
7
|
-
* Contact: contact@raid.org
|
|
8
|
-
*
|
|
9
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
10
|
-
* https://openapi-generator.tech
|
|
11
|
-
* Do not edit the class manually.
|
|
12
|
-
*/
|
|
13
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
-
exports.IdBlock = void 0;
|
|
15
|
-
class IdBlock {
|
|
16
|
-
/**
|
|
17
|
-
* The handle, e.g. xxx.yyy/zzz
|
|
18
|
-
*/
|
|
19
|
-
'identifier';
|
|
20
|
-
'identifierTypeUri';
|
|
21
|
-
/**
|
|
22
|
-
* The URL for the raid via the CNRI handle system, e.g https://hdl.handle.net/xxx.yyy/zzz
|
|
23
|
-
*/
|
|
24
|
-
'globalUrl';
|
|
25
|
-
/**
|
|
26
|
-
* The URL for the raid via the minting raid agency system, e.g https://demo.raido-infra.com/handle/10378.1/1695863
|
|
27
|
-
*/
|
|
28
|
-
'raidAgencyUrl';
|
|
29
|
-
/**
|
|
30
|
-
* Identifier of the raid agency system that controls the raid, e.g demo.raido-infra.com
|
|
31
|
-
*/
|
|
32
|
-
'raidAgencyIdentifier';
|
|
33
|
-
static discriminator = undefined;
|
|
34
|
-
static attributeTypeMap = [
|
|
35
|
-
{
|
|
36
|
-
"name": "identifier",
|
|
37
|
-
"baseName": "identifier",
|
|
38
|
-
"type": "string"
|
|
39
|
-
},
|
|
40
|
-
{
|
|
41
|
-
"name": "identifierTypeUri",
|
|
42
|
-
"baseName": "identifierTypeUri",
|
|
43
|
-
"type": "string"
|
|
44
|
-
},
|
|
45
|
-
{
|
|
46
|
-
"name": "globalUrl",
|
|
47
|
-
"baseName": "globalUrl",
|
|
48
|
-
"type": "string"
|
|
49
|
-
},
|
|
50
|
-
{
|
|
51
|
-
"name": "raidAgencyUrl",
|
|
52
|
-
"baseName": "raidAgencyUrl",
|
|
53
|
-
"type": "string"
|
|
54
|
-
},
|
|
55
|
-
{
|
|
56
|
-
"name": "raidAgencyIdentifier",
|
|
57
|
-
"baseName": "raidAgencyIdentifier",
|
|
58
|
-
"type": "string"
|
|
59
|
-
}
|
|
60
|
-
];
|
|
61
|
-
static getAttributeTypeMap() {
|
|
62
|
-
return IdBlock.attributeTypeMap;
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
exports.IdBlock = IdBlock;
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* RAID v2 API
|
|
4
|
-
* This file is where all the endpoint paths are defined, it\'s the \"top level\' of the OpenAPI definition that links all the different files together. The `3.0` in the filename refers to this file being based on OpenAPI 3.0 as opposed to OpenAPI 3.1, which the tooling doesn\'t support yet. The `2.0.0` in the version field refers to the fact that there\'s already a `1.0.0` used for the legacy RAiD application (not this project).
|
|
5
|
-
*
|
|
6
|
-
* The version of the OpenAPI document: 2.0.0
|
|
7
|
-
* Contact: contact@raid.org
|
|
8
|
-
*
|
|
9
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
10
|
-
* https://openapi-generator.tech
|
|
11
|
-
* Do not edit the class manually.
|
|
12
|
-
*/
|
|
13
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
-
exports.LegacyMetadataSchemaV1 = void 0;
|
|
15
|
-
/**
|
|
16
|
-
* This type is used for raid data imported from the legacy raid system (pre-raido) and for raid data still being minted via the (deprecated) V1 API. Started as a copy paste from RaidoMetadataSchemaV1; the structure could be simplified greatly, but then we\'d just have to have special logic for it, keeping it like this (especially, sharing the block types) makes it mostly structurally compatible with the original. See how it goes, if the structural similarity doesn\'t end up saving implementation effort, then it would make sense to simplify this.
|
|
17
|
-
*/
|
|
18
|
-
class LegacyMetadataSchemaV1 {
|
|
19
|
-
'metadataSchema';
|
|
20
|
-
'id';
|
|
21
|
-
'titles';
|
|
22
|
-
'dates';
|
|
23
|
-
'descriptions';
|
|
24
|
-
'access';
|
|
25
|
-
'alternateUrls';
|
|
26
|
-
static discriminator = undefined;
|
|
27
|
-
static attributeTypeMap = [
|
|
28
|
-
{
|
|
29
|
-
"name": "metadataSchema",
|
|
30
|
-
"baseName": "metadataSchema",
|
|
31
|
-
"type": "RaidoMetaschema"
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
"name": "id",
|
|
35
|
-
"baseName": "id",
|
|
36
|
-
"type": "IdBlock"
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
"name": "titles",
|
|
40
|
-
"baseName": "titles",
|
|
41
|
-
"type": "Array<TitleBlock>"
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
"name": "dates",
|
|
45
|
-
"baseName": "dates",
|
|
46
|
-
"type": "DatesBlock"
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
"name": "descriptions",
|
|
50
|
-
"baseName": "descriptions",
|
|
51
|
-
"type": "Array<DescriptionBlock>"
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
"name": "access",
|
|
55
|
-
"baseName": "access",
|
|
56
|
-
"type": "AccessBlock"
|
|
57
|
-
},
|
|
58
|
-
{
|
|
59
|
-
"name": "alternateUrls",
|
|
60
|
-
"baseName": "alternateUrls",
|
|
61
|
-
"type": "Array<AlternateUrlBlock>"
|
|
62
|
-
}
|
|
63
|
-
];
|
|
64
|
-
static getAttributeTypeMap() {
|
|
65
|
-
return LegacyMetadataSchemaV1.attributeTypeMap;
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
exports.LegacyMetadataSchemaV1 = LegacyMetadataSchemaV1;
|