@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,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
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
|
|
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. Note that swagger ui doesn\'t currently work with our spec, see https://github.com/swagger-api/swagger-ui/issues/7724 But the spec works fine with openapi-generator tooling.
|
|
5
5
|
*
|
|
6
6
|
* The version of the OpenAPI document: 2.0.0
|
|
7
7
|
* Contact: contact@raid.org
|
|
@@ -14,25 +14,25 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
14
14
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.
|
|
17
|
+
exports.ServicePointApi = exports.ServicePointApiApiKeys = void 0;
|
|
18
18
|
const request_1 = __importDefault(require("request"));
|
|
19
19
|
const models_1 = require("../model/models");
|
|
20
20
|
const models_2 = require("../model/models");
|
|
21
21
|
const apis_1 = require("./apis");
|
|
22
|
-
let defaultBasePath = 'https://
|
|
22
|
+
let defaultBasePath = 'https://api.prod.raid.org.au';
|
|
23
23
|
// ===============================================
|
|
24
24
|
// This file is autogenerated - Please do not edit
|
|
25
25
|
// ===============================================
|
|
26
|
-
var
|
|
27
|
-
(function (
|
|
28
|
-
})(
|
|
29
|
-
class
|
|
26
|
+
var ServicePointApiApiKeys;
|
|
27
|
+
(function (ServicePointApiApiKeys) {
|
|
28
|
+
})(ServicePointApiApiKeys = exports.ServicePointApiApiKeys || (exports.ServicePointApiApiKeys = {}));
|
|
29
|
+
class ServicePointApi {
|
|
30
30
|
_basePath = defaultBasePath;
|
|
31
31
|
_defaultHeaders = {};
|
|
32
32
|
_useQuerystring = false;
|
|
33
33
|
authentications = {
|
|
34
34
|
'default': new models_1.VoidAuth(),
|
|
35
|
-
'
|
|
35
|
+
'bearerAuth': new models_2.HttpBearerAuth(),
|
|
36
36
|
};
|
|
37
37
|
interceptors = [];
|
|
38
38
|
constructor(basePathOrUsername, password, basePath) {
|
|
@@ -66,20 +66,87 @@ class PublicExperimentalApi {
|
|
|
66
66
|
this.authentications.default = auth;
|
|
67
67
|
}
|
|
68
68
|
setApiKey(key, value) {
|
|
69
|
-
this.authentications[
|
|
69
|
+
this.authentications[ServicePointApiApiKeys[key]].apiKey = value;
|
|
70
70
|
}
|
|
71
71
|
set accessToken(accessToken) {
|
|
72
|
-
this.authentications.
|
|
72
|
+
this.authentications.bearerAuth.accessToken = accessToken;
|
|
73
73
|
}
|
|
74
74
|
addInterceptor(interceptor) {
|
|
75
75
|
this.interceptors.push(interceptor);
|
|
76
76
|
}
|
|
77
77
|
/**
|
|
78
78
|
*
|
|
79
|
-
* @
|
|
79
|
+
* @param servicePointCreateRequest
|
|
80
80
|
*/
|
|
81
|
-
async
|
|
82
|
-
const localVarPath = this.basePath + '/
|
|
81
|
+
async createServicePoint(servicePointCreateRequest, options = { headers: {} }) {
|
|
82
|
+
const localVarPath = this.basePath + '/service-point/';
|
|
83
|
+
let localVarQueryParameters = {};
|
|
84
|
+
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
85
|
+
const produces = ['application/json'];
|
|
86
|
+
// give precedence to 'application/json'
|
|
87
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
88
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
89
|
+
}
|
|
90
|
+
else {
|
|
91
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
92
|
+
}
|
|
93
|
+
let localVarFormParams = {};
|
|
94
|
+
// verify required parameter 'servicePointCreateRequest' is not null or undefined
|
|
95
|
+
if (servicePointCreateRequest === null || servicePointCreateRequest === undefined) {
|
|
96
|
+
throw new Error('Required parameter servicePointCreateRequest was null or undefined when calling createServicePoint.');
|
|
97
|
+
}
|
|
98
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
99
|
+
let localVarUseFormData = false;
|
|
100
|
+
let localVarRequestOptions = {
|
|
101
|
+
method: 'POST',
|
|
102
|
+
qs: localVarQueryParameters,
|
|
103
|
+
headers: localVarHeaderParams,
|
|
104
|
+
uri: localVarPath,
|
|
105
|
+
useQuerystring: this._useQuerystring,
|
|
106
|
+
json: true,
|
|
107
|
+
body: models_1.ObjectSerializer.serialize(servicePointCreateRequest, "ServicePointCreateRequest")
|
|
108
|
+
};
|
|
109
|
+
let authenticationPromise = Promise.resolve();
|
|
110
|
+
if (this.authentications.bearerAuth.accessToken) {
|
|
111
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.bearerAuth.applyToRequest(localVarRequestOptions));
|
|
112
|
+
}
|
|
113
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
114
|
+
let interceptorPromise = authenticationPromise;
|
|
115
|
+
for (const interceptor of this.interceptors) {
|
|
116
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
117
|
+
}
|
|
118
|
+
return interceptorPromise.then(() => {
|
|
119
|
+
if (Object.keys(localVarFormParams).length) {
|
|
120
|
+
if (localVarUseFormData) {
|
|
121
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
122
|
+
}
|
|
123
|
+
else {
|
|
124
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
return new Promise((resolve, reject) => {
|
|
128
|
+
(0, request_1.default)(localVarRequestOptions, (error, response, body) => {
|
|
129
|
+
if (error) {
|
|
130
|
+
reject(error);
|
|
131
|
+
}
|
|
132
|
+
else {
|
|
133
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
134
|
+
body = models_1.ObjectSerializer.deserialize(body, "ServicePoint");
|
|
135
|
+
resolve({ response: response, body: body });
|
|
136
|
+
}
|
|
137
|
+
else {
|
|
138
|
+
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
});
|
|
142
|
+
});
|
|
143
|
+
});
|
|
144
|
+
}
|
|
145
|
+
/**
|
|
146
|
+
*
|
|
147
|
+
*/
|
|
148
|
+
async findAllServicePoints(options = { headers: {} }) {
|
|
149
|
+
const localVarPath = this.basePath + '/service-point/';
|
|
83
150
|
let localVarQueryParameters = {};
|
|
84
151
|
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
85
152
|
const produces = ['application/json'];
|
|
@@ -102,6 +169,9 @@ class PublicExperimentalApi {
|
|
|
102
169
|
json: true,
|
|
103
170
|
};
|
|
104
171
|
let authenticationPromise = Promise.resolve();
|
|
172
|
+
if (this.authentications.bearerAuth.accessToken) {
|
|
173
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.bearerAuth.applyToRequest(localVarRequestOptions));
|
|
174
|
+
}
|
|
105
175
|
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
106
176
|
let interceptorPromise = authenticationPromise;
|
|
107
177
|
for (const interceptor of this.interceptors) {
|
|
@@ -123,7 +193,7 @@ class PublicExperimentalApi {
|
|
|
123
193
|
}
|
|
124
194
|
else {
|
|
125
195
|
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
126
|
-
body = models_1.ObjectSerializer.deserialize(body, "Array<
|
|
196
|
+
body = models_1.ObjectSerializer.deserialize(body, "Array<ServicePoint>");
|
|
127
197
|
resolve({ response: response, body: body });
|
|
128
198
|
}
|
|
129
199
|
else {
|
|
@@ -136,12 +206,11 @@ class PublicExperimentalApi {
|
|
|
136
206
|
}
|
|
137
207
|
/**
|
|
138
208
|
*
|
|
139
|
-
* @
|
|
140
|
-
* @param handle handle
|
|
209
|
+
* @param id The id of the service point
|
|
141
210
|
*/
|
|
142
|
-
async
|
|
143
|
-
const localVarPath = this.basePath + '/
|
|
144
|
-
.replace('{' + '
|
|
211
|
+
async findServicePointById(id, options = { headers: {} }) {
|
|
212
|
+
const localVarPath = this.basePath + '/service-point/{id}'
|
|
213
|
+
.replace('{' + 'id' + '}', encodeURIComponent(String(id)));
|
|
145
214
|
let localVarQueryParameters = {};
|
|
146
215
|
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
147
216
|
const produces = ['application/json'];
|
|
@@ -153,9 +222,9 @@ class PublicExperimentalApi {
|
|
|
153
222
|
localVarHeaderParams.Accept = produces.join(',');
|
|
154
223
|
}
|
|
155
224
|
let localVarFormParams = {};
|
|
156
|
-
// verify required parameter '
|
|
157
|
-
if (
|
|
158
|
-
throw new Error('Required parameter
|
|
225
|
+
// verify required parameter 'id' is not null or undefined
|
|
226
|
+
if (id === null || id === undefined) {
|
|
227
|
+
throw new Error('Required parameter id was null or undefined when calling findServicePointById.');
|
|
159
228
|
}
|
|
160
229
|
Object.assign(localVarHeaderParams, options.headers);
|
|
161
230
|
let localVarUseFormData = false;
|
|
@@ -168,6 +237,9 @@ class PublicExperimentalApi {
|
|
|
168
237
|
json: true,
|
|
169
238
|
};
|
|
170
239
|
let authenticationPromise = Promise.resolve();
|
|
240
|
+
if (this.authentications.bearerAuth.accessToken) {
|
|
241
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.bearerAuth.applyToRequest(localVarRequestOptions));
|
|
242
|
+
}
|
|
171
243
|
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
172
244
|
let interceptorPromise = authenticationPromise;
|
|
173
245
|
for (const interceptor of this.interceptors) {
|
|
@@ -189,7 +261,7 @@ class PublicExperimentalApi {
|
|
|
189
261
|
}
|
|
190
262
|
else {
|
|
191
263
|
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
192
|
-
body = models_1.ObjectSerializer.deserialize(body, "
|
|
264
|
+
body = models_1.ObjectSerializer.deserialize(body, "ServicePoint");
|
|
193
265
|
resolve({ response: response, body: body });
|
|
194
266
|
}
|
|
195
267
|
else {
|
|
@@ -202,10 +274,12 @@ class PublicExperimentalApi {
|
|
|
202
274
|
}
|
|
203
275
|
/**
|
|
204
276
|
*
|
|
205
|
-
* @
|
|
277
|
+
* @param id The id of the service point
|
|
278
|
+
* @param servicePointUpdateRequest
|
|
206
279
|
*/
|
|
207
|
-
async
|
|
208
|
-
const localVarPath = this.basePath + '/
|
|
280
|
+
async updateServicePoint(id, servicePointUpdateRequest, options = { headers: {} }) {
|
|
281
|
+
const localVarPath = this.basePath + '/service-point/{id}'
|
|
282
|
+
.replace('{' + 'id' + '}', encodeURIComponent(String(id)));
|
|
209
283
|
let localVarQueryParameters = {};
|
|
210
284
|
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
211
285
|
const produces = ['application/json'];
|
|
@@ -217,17 +291,29 @@ class PublicExperimentalApi {
|
|
|
217
291
|
localVarHeaderParams.Accept = produces.join(',');
|
|
218
292
|
}
|
|
219
293
|
let localVarFormParams = {};
|
|
294
|
+
// verify required parameter 'id' is not null or undefined
|
|
295
|
+
if (id === null || id === undefined) {
|
|
296
|
+
throw new Error('Required parameter id was null or undefined when calling updateServicePoint.');
|
|
297
|
+
}
|
|
298
|
+
// verify required parameter 'servicePointUpdateRequest' is not null or undefined
|
|
299
|
+
if (servicePointUpdateRequest === null || servicePointUpdateRequest === undefined) {
|
|
300
|
+
throw new Error('Required parameter servicePointUpdateRequest was null or undefined when calling updateServicePoint.');
|
|
301
|
+
}
|
|
220
302
|
Object.assign(localVarHeaderParams, options.headers);
|
|
221
303
|
let localVarUseFormData = false;
|
|
222
304
|
let localVarRequestOptions = {
|
|
223
|
-
method: '
|
|
305
|
+
method: 'PUT',
|
|
224
306
|
qs: localVarQueryParameters,
|
|
225
307
|
headers: localVarHeaderParams,
|
|
226
308
|
uri: localVarPath,
|
|
227
309
|
useQuerystring: this._useQuerystring,
|
|
228
310
|
json: true,
|
|
311
|
+
body: models_1.ObjectSerializer.serialize(servicePointUpdateRequest, "ServicePointUpdateRequest")
|
|
229
312
|
};
|
|
230
313
|
let authenticationPromise = Promise.resolve();
|
|
314
|
+
if (this.authentications.bearerAuth.accessToken) {
|
|
315
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.bearerAuth.applyToRequest(localVarRequestOptions));
|
|
316
|
+
}
|
|
231
317
|
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
232
318
|
let interceptorPromise = authenticationPromise;
|
|
233
319
|
for (const interceptor of this.interceptors) {
|
|
@@ -249,7 +335,7 @@ class PublicExperimentalApi {
|
|
|
249
335
|
}
|
|
250
336
|
else {
|
|
251
337
|
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
252
|
-
body = models_1.ObjectSerializer.deserialize(body, "
|
|
338
|
+
body = models_1.ObjectSerializer.deserialize(body, "ServicePoint");
|
|
253
339
|
resolve({ response: response, body: body });
|
|
254
340
|
}
|
|
255
341
|
else {
|
|
@@ -261,4 +347,4 @@ class PublicExperimentalApi {
|
|
|
261
347
|
});
|
|
262
348
|
}
|
|
263
349
|
}
|
|
264
|
-
exports.
|
|
350
|
+
exports.ServicePointApi = ServicePointApi;
|
|
@@ -0,0 +1,44 @@
|
|
|
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. Note that swagger ui doesn\'t currently work with our spec, see https://github.com/swagger-api/swagger-ui/issues/7724 But the spec works fine with openapi-generator tooling.
|
|
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.Access = void 0;
|
|
15
|
+
class Access {
|
|
16
|
+
'type';
|
|
17
|
+
'statement';
|
|
18
|
+
/**
|
|
19
|
+
* Date the embargo on access to the RAiD ends. Year
|
|
20
|
+
*/
|
|
21
|
+
'embargoExpiry';
|
|
22
|
+
static discriminator = undefined;
|
|
23
|
+
static attributeTypeMap = [
|
|
24
|
+
{
|
|
25
|
+
"name": "type",
|
|
26
|
+
"baseName": "type",
|
|
27
|
+
"type": "AccessType"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"name": "statement",
|
|
31
|
+
"baseName": "statement",
|
|
32
|
+
"type": "AccessStatement"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"name": "embargoExpiry",
|
|
36
|
+
"baseName": "embargoExpiry",
|
|
37
|
+
"type": "string"
|
|
38
|
+
}
|
|
39
|
+
];
|
|
40
|
+
static getAttributeTypeMap() {
|
|
41
|
+
return Access.attributeTypeMap;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
exports.Access = Access;
|
|
@@ -0,0 +1,35 @@
|
|
|
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. Note that swagger ui doesn\'t currently work with our spec, see https://github.com/swagger-api/swagger-ui/issues/7724 But the spec works fine with openapi-generator tooling.
|
|
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.AccessStatement = void 0;
|
|
15
|
+
class AccessStatement {
|
|
16
|
+
'text';
|
|
17
|
+
'language';
|
|
18
|
+
static discriminator = undefined;
|
|
19
|
+
static attributeTypeMap = [
|
|
20
|
+
{
|
|
21
|
+
"name": "text",
|
|
22
|
+
"baseName": "text",
|
|
23
|
+
"type": "string"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"name": "language",
|
|
27
|
+
"baseName": "language",
|
|
28
|
+
"type": "Language"
|
|
29
|
+
}
|
|
30
|
+
];
|
|
31
|
+
static getAttributeTypeMap() {
|
|
32
|
+
return AccessStatement.attributeTypeMap;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
exports.AccessStatement = AccessStatement;
|
package/dist/model/accessType.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
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
|
|
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. Note that swagger ui doesn\'t currently work with our spec, see https://github.com/swagger-api/swagger-ui/issues/7724 But the spec works fine with openapi-generator tooling.
|
|
5
5
|
*
|
|
6
6
|
* The version of the OpenAPI document: 2.0.0
|
|
7
7
|
* Contact: contact@raid.org
|
|
@@ -12,8 +12,24 @@
|
|
|
12
12
|
*/
|
|
13
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
14
|
exports.AccessType = void 0;
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
15
|
+
class AccessType {
|
|
16
|
+
'id';
|
|
17
|
+
'schemaUri';
|
|
18
|
+
static discriminator = undefined;
|
|
19
|
+
static attributeTypeMap = [
|
|
20
|
+
{
|
|
21
|
+
"name": "id",
|
|
22
|
+
"baseName": "id",
|
|
23
|
+
"type": "string"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"name": "schemaUri",
|
|
27
|
+
"baseName": "schemaUri",
|
|
28
|
+
"type": "string"
|
|
29
|
+
}
|
|
30
|
+
];
|
|
31
|
+
static getAttributeTypeMap() {
|
|
32
|
+
return AccessType.attributeTypeMap;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
exports.AccessType = AccessType;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
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
|
|
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. Note that swagger ui doesn\'t currently work with our spec, see https://github.com/swagger-api/swagger-ui/issues/7724 But the spec works fine with openapi-generator tooling.
|
|
5
5
|
*
|
|
6
6
|
* The version of the OpenAPI document: 2.0.0
|
|
7
7
|
* Contact: contact@raid.org
|
|
@@ -11,25 +11,25 @@
|
|
|
11
11
|
* Do not edit the class manually.
|
|
12
12
|
*/
|
|
13
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
-
exports.
|
|
15
|
-
class
|
|
16
|
-
'
|
|
14
|
+
exports.AlternateIdentifier = void 0;
|
|
15
|
+
class AlternateIdentifier {
|
|
16
|
+
'id';
|
|
17
17
|
'type';
|
|
18
18
|
static discriminator = undefined;
|
|
19
19
|
static attributeTypeMap = [
|
|
20
20
|
{
|
|
21
|
-
"name": "
|
|
22
|
-
"baseName": "
|
|
21
|
+
"name": "id",
|
|
22
|
+
"baseName": "id",
|
|
23
23
|
"type": "string"
|
|
24
24
|
},
|
|
25
25
|
{
|
|
26
26
|
"name": "type",
|
|
27
27
|
"baseName": "type",
|
|
28
|
-
"type": "
|
|
28
|
+
"type": "string"
|
|
29
29
|
}
|
|
30
30
|
];
|
|
31
31
|
static getAttributeTypeMap() {
|
|
32
|
-
return
|
|
32
|
+
return AlternateIdentifier.attributeTypeMap;
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
|
-
exports.
|
|
35
|
+
exports.AlternateIdentifier = AlternateIdentifier;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
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
|
|
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. Note that swagger ui doesn\'t currently work with our spec, see https://github.com/swagger-api/swagger-ui/issues/7724 But the spec works fine with openapi-generator tooling.
|
|
5
5
|
*
|
|
6
6
|
* The version of the OpenAPI document: 2.0.0
|
|
7
7
|
* Contact: contact@raid.org
|
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
* Do not edit the class manually.
|
|
12
12
|
*/
|
|
13
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
-
exports.
|
|
15
|
-
class
|
|
14
|
+
exports.AlternateUrl = void 0;
|
|
15
|
+
class AlternateUrl {
|
|
16
16
|
'url';
|
|
17
17
|
static discriminator = undefined;
|
|
18
18
|
static attributeTypeMap = [
|
|
@@ -23,7 +23,7 @@ class AlternateUrlBlock {
|
|
|
23
23
|
}
|
|
24
24
|
];
|
|
25
25
|
static getAttributeTypeMap() {
|
|
26
|
-
return
|
|
26
|
+
return AlternateUrl.attributeTypeMap;
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
|
-
exports.
|
|
29
|
+
exports.AlternateUrl = AlternateUrl;
|
|
@@ -0,0 +1,35 @@
|
|
|
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. Note that swagger ui doesn\'t currently work with our spec, see https://github.com/swagger-api/swagger-ui/issues/7724 But the spec works fine with openapi-generator tooling.
|
|
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.ClosedRaid = void 0;
|
|
15
|
+
class ClosedRaid {
|
|
16
|
+
'identifier';
|
|
17
|
+
'access';
|
|
18
|
+
static discriminator = undefined;
|
|
19
|
+
static attributeTypeMap = [
|
|
20
|
+
{
|
|
21
|
+
"name": "identifier",
|
|
22
|
+
"baseName": "identifier",
|
|
23
|
+
"type": "Id"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"name": "access",
|
|
27
|
+
"baseName": "access",
|
|
28
|
+
"type": "Access"
|
|
29
|
+
}
|
|
30
|
+
];
|
|
31
|
+
static getAttributeTypeMap() {
|
|
32
|
+
return ClosedRaid.attributeTypeMap;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
exports.ClosedRaid = ClosedRaid;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
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
|
|
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. Note that swagger ui doesn\'t currently work with our spec, see https://github.com/swagger-api/swagger-ui/issues/7724 But the spec works fine with openapi-generator tooling.
|
|
5
5
|
*
|
|
6
6
|
* The version of the OpenAPI document: 2.0.0
|
|
7
7
|
* Contact: contact@raid.org
|
|
@@ -11,64 +11,49 @@
|
|
|
11
11
|
* Do not edit the class manually.
|
|
12
12
|
*/
|
|
13
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
-
exports.
|
|
15
|
-
|
|
16
|
-
* It\'s really an \"AppUser\", but modelling like this makes the API clearer and the client easier to write.
|
|
17
|
-
*/
|
|
18
|
-
class ApiKey {
|
|
14
|
+
exports.Contributor = void 0;
|
|
15
|
+
class Contributor {
|
|
19
16
|
'id';
|
|
20
|
-
'
|
|
21
|
-
'
|
|
22
|
-
'idProvider';
|
|
17
|
+
'schemaUri';
|
|
18
|
+
'position';
|
|
23
19
|
'role';
|
|
24
|
-
'
|
|
25
|
-
'
|
|
26
|
-
'dateCreated';
|
|
20
|
+
'leader';
|
|
21
|
+
'contact';
|
|
27
22
|
static discriminator = undefined;
|
|
28
23
|
static attributeTypeMap = [
|
|
29
24
|
{
|
|
30
25
|
"name": "id",
|
|
31
26
|
"baseName": "id",
|
|
32
|
-
"type": "
|
|
33
|
-
},
|
|
34
|
-
{
|
|
35
|
-
"name": "servicePointId",
|
|
36
|
-
"baseName": "servicePointId",
|
|
37
|
-
"type": "number"
|
|
27
|
+
"type": "string"
|
|
38
28
|
},
|
|
39
29
|
{
|
|
40
|
-
"name": "
|
|
41
|
-
"baseName": "
|
|
30
|
+
"name": "schemaUri",
|
|
31
|
+
"baseName": "schemaUri",
|
|
42
32
|
"type": "string"
|
|
43
33
|
},
|
|
44
34
|
{
|
|
45
|
-
"name": "
|
|
46
|
-
"baseName": "
|
|
47
|
-
"type": "
|
|
35
|
+
"name": "position",
|
|
36
|
+
"baseName": "position",
|
|
37
|
+
"type": "Array<ContributorPosition>"
|
|
48
38
|
},
|
|
49
39
|
{
|
|
50
40
|
"name": "role",
|
|
51
41
|
"baseName": "role",
|
|
52
|
-
"type": "
|
|
42
|
+
"type": "Array<ContributorRole>"
|
|
53
43
|
},
|
|
54
44
|
{
|
|
55
|
-
"name": "
|
|
56
|
-
"baseName": "
|
|
45
|
+
"name": "leader",
|
|
46
|
+
"baseName": "leader",
|
|
57
47
|
"type": "boolean"
|
|
58
48
|
},
|
|
59
49
|
{
|
|
60
|
-
"name": "
|
|
61
|
-
"baseName": "
|
|
62
|
-
"type": "
|
|
63
|
-
},
|
|
64
|
-
{
|
|
65
|
-
"name": "dateCreated",
|
|
66
|
-
"baseName": "dateCreated",
|
|
67
|
-
"type": "Date"
|
|
50
|
+
"name": "contact",
|
|
51
|
+
"baseName": "contact",
|
|
52
|
+
"type": "boolean"
|
|
68
53
|
}
|
|
69
54
|
];
|
|
70
55
|
static getAttributeTypeMap() {
|
|
71
|
-
return
|
|
56
|
+
return Contributor.attributeTypeMap;
|
|
72
57
|
}
|
|
73
58
|
}
|
|
74
|
-
exports.
|
|
59
|
+
exports.Contributor = Contributor;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
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
|
|
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. Note that swagger ui doesn\'t currently work with our spec, see https://github.com/swagger-api/swagger-ui/issues/7724 But the spec works fine with openapi-generator tooling.
|
|
5
5
|
*
|
|
6
6
|
* The version of the OpenAPI document: 2.0.0
|
|
7
7
|
* Contact: contact@raid.org
|
|
@@ -13,21 +13,21 @@
|
|
|
13
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
14
|
exports.ContributorPosition = void 0;
|
|
15
15
|
class ContributorPosition {
|
|
16
|
-
'
|
|
17
|
-
'
|
|
16
|
+
'schemaUri';
|
|
17
|
+
'id';
|
|
18
18
|
'startDate';
|
|
19
19
|
'endDate';
|
|
20
20
|
static discriminator = undefined;
|
|
21
21
|
static attributeTypeMap = [
|
|
22
22
|
{
|
|
23
|
-
"name": "
|
|
24
|
-
"baseName": "
|
|
25
|
-
"type": "
|
|
23
|
+
"name": "schemaUri",
|
|
24
|
+
"baseName": "schemaUri",
|
|
25
|
+
"type": "string"
|
|
26
26
|
},
|
|
27
27
|
{
|
|
28
|
-
"name": "
|
|
29
|
-
"baseName": "
|
|
30
|
-
"type": "
|
|
28
|
+
"name": "id",
|
|
29
|
+
"baseName": "id",
|
|
30
|
+
"type": "string"
|
|
31
31
|
},
|
|
32
32
|
{
|
|
33
33
|
"name": "startDate",
|