@researchdatabox/raido-openapi-generated-node 0.0.3 → 5.0.0-RC2

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.
Files changed (54) hide show
  1. package/dist/api.d.ts +1679 -0
  2. package/dist/api.js +701 -16
  3. package/dist/base.d.ts +55 -0
  4. package/dist/base.js +69 -0
  5. package/dist/common.d.ts +65 -0
  6. package/dist/common.js +144 -0
  7. package/dist/configuration.d.ts +83 -0
  8. package/dist/configuration.js +92 -0
  9. package/dist/{model/alternateUrl.js → index.d.ts} +2 -18
  10. package/dist/index.js +32 -0
  11. package/package.json +11 -6
  12. package/dist/api/apis.js +0 -35
  13. package/dist/api/raidApi.js +0 -452
  14. package/dist/api/servicePointApi.js +0 -350
  15. package/dist/model/access.js +0 -44
  16. package/dist/model/accessStatement.js +0 -35
  17. package/dist/model/accessType.js +0 -35
  18. package/dist/model/alternateIdentifier.js +0 -35
  19. package/dist/model/closedRaid.js +0 -35
  20. package/dist/model/contributor.js +0 -59
  21. package/dist/model/contributorPosition.js +0 -47
  22. package/dist/model/contributorRole.js +0 -35
  23. package/dist/model/description.js +0 -41
  24. package/dist/model/descriptionType.js +0 -35
  25. package/dist/model/failureResponse.js +0 -53
  26. package/dist/model/id.js +0 -80
  27. package/dist/model/language.js +0 -35
  28. package/dist/model/modelDate.js +0 -38
  29. package/dist/model/models.js +0 -334
  30. package/dist/model/organisation.js +0 -41
  31. package/dist/model/organisationRole.js +0 -47
  32. package/dist/model/owner.js +0 -47
  33. package/dist/model/raidChange.js +0 -53
  34. package/dist/model/raidCreateRequest.js +0 -107
  35. package/dist/model/raidDto.js +0 -107
  36. package/dist/model/raidUpdateRequest.js +0 -107
  37. package/dist/model/registrationAgency.js +0 -38
  38. package/dist/model/relatedObject.js +0 -47
  39. package/dist/model/relatedObjectCategory.js +0 -35
  40. package/dist/model/relatedObjectType.js +0 -35
  41. package/dist/model/relatedRaid.js +0 -35
  42. package/dist/model/relatedRaidType.js +0 -35
  43. package/dist/model/servicePoint.js +0 -92
  44. package/dist/model/servicePointCreateRequest.js +0 -104
  45. package/dist/model/servicePointUpdateRequest.js +0 -113
  46. package/dist/model/spatialCoverage.js +0 -41
  47. package/dist/model/spatialCoveragePlace.js +0 -35
  48. package/dist/model/subject.js +0 -41
  49. package/dist/model/subjectKeyword.js +0 -35
  50. package/dist/model/title.js +0 -53
  51. package/dist/model/titleType.js +0 -35
  52. package/dist/model/traditionalKnowledgeLabel.js +0 -35
  53. package/dist/model/validationFailure.js +0 -41
  54. package/dist/model/validationFailureResponse.js +0 -59
@@ -1,350 +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. 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
- 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.ServicePointApi = exports.ServicePointApiApiKeys = 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://api.prod.raid.org.au';
23
- // ===============================================
24
- // This file is autogenerated - Please do not edit
25
- // ===============================================
26
- var ServicePointApiApiKeys;
27
- (function (ServicePointApiApiKeys) {
28
- })(ServicePointApiApiKeys = exports.ServicePointApiApiKeys || (exports.ServicePointApiApiKeys = {}));
29
- class ServicePointApi {
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[ServicePointApiApiKeys[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
- * @param servicePointCreateRequest
80
- */
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/';
150
- let localVarQueryParameters = {};
151
- let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
152
- const produces = ['application/json'];
153
- // give precedence to 'application/json'
154
- if (produces.indexOf('application/json') >= 0) {
155
- localVarHeaderParams.Accept = 'application/json';
156
- }
157
- else {
158
- localVarHeaderParams.Accept = produces.join(',');
159
- }
160
- let localVarFormParams = {};
161
- Object.assign(localVarHeaderParams, options.headers);
162
- let localVarUseFormData = false;
163
- let localVarRequestOptions = {
164
- method: 'GET',
165
- qs: localVarQueryParameters,
166
- headers: localVarHeaderParams,
167
- uri: localVarPath,
168
- useQuerystring: this._useQuerystring,
169
- json: true,
170
- };
171
- let authenticationPromise = Promise.resolve();
172
- if (this.authentications.bearerAuth.accessToken) {
173
- authenticationPromise = authenticationPromise.then(() => this.authentications.bearerAuth.applyToRequest(localVarRequestOptions));
174
- }
175
- authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
176
- let interceptorPromise = authenticationPromise;
177
- for (const interceptor of this.interceptors) {
178
- interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
179
- }
180
- return interceptorPromise.then(() => {
181
- if (Object.keys(localVarFormParams).length) {
182
- if (localVarUseFormData) {
183
- localVarRequestOptions.formData = localVarFormParams;
184
- }
185
- else {
186
- localVarRequestOptions.form = localVarFormParams;
187
- }
188
- }
189
- return new Promise((resolve, reject) => {
190
- (0, request_1.default)(localVarRequestOptions, (error, response, body) => {
191
- if (error) {
192
- reject(error);
193
- }
194
- else {
195
- if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
196
- body = models_1.ObjectSerializer.deserialize(body, "Array<ServicePoint>");
197
- resolve({ response: response, body: body });
198
- }
199
- else {
200
- reject(new apis_1.HttpError(response, body, response.statusCode));
201
- }
202
- }
203
- });
204
- });
205
- });
206
- }
207
- /**
208
- *
209
- * @param id The id of the service point
210
- */
211
- async findServicePointById(id, options = { headers: {} }) {
212
- const localVarPath = this.basePath + '/service-point/{id}'
213
- .replace('{' + 'id' + '}', encodeURIComponent(String(id)));
214
- let localVarQueryParameters = {};
215
- let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
216
- const produces = ['application/json'];
217
- // give precedence to 'application/json'
218
- if (produces.indexOf('application/json') >= 0) {
219
- localVarHeaderParams.Accept = 'application/json';
220
- }
221
- else {
222
- localVarHeaderParams.Accept = produces.join(',');
223
- }
224
- let localVarFormParams = {};
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.');
228
- }
229
- Object.assign(localVarHeaderParams, options.headers);
230
- let localVarUseFormData = false;
231
- let localVarRequestOptions = {
232
- method: 'GET',
233
- qs: localVarQueryParameters,
234
- headers: localVarHeaderParams,
235
- uri: localVarPath,
236
- useQuerystring: this._useQuerystring,
237
- json: true,
238
- };
239
- let authenticationPromise = Promise.resolve();
240
- if (this.authentications.bearerAuth.accessToken) {
241
- authenticationPromise = authenticationPromise.then(() => this.authentications.bearerAuth.applyToRequest(localVarRequestOptions));
242
- }
243
- authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
244
- let interceptorPromise = authenticationPromise;
245
- for (const interceptor of this.interceptors) {
246
- interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
247
- }
248
- return interceptorPromise.then(() => {
249
- if (Object.keys(localVarFormParams).length) {
250
- if (localVarUseFormData) {
251
- localVarRequestOptions.formData = localVarFormParams;
252
- }
253
- else {
254
- localVarRequestOptions.form = localVarFormParams;
255
- }
256
- }
257
- return new Promise((resolve, reject) => {
258
- (0, request_1.default)(localVarRequestOptions, (error, response, body) => {
259
- if (error) {
260
- reject(error);
261
- }
262
- else {
263
- if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
264
- body = models_1.ObjectSerializer.deserialize(body, "ServicePoint");
265
- resolve({ response: response, body: body });
266
- }
267
- else {
268
- reject(new apis_1.HttpError(response, body, response.statusCode));
269
- }
270
- }
271
- });
272
- });
273
- });
274
- }
275
- /**
276
- *
277
- * @param id The id of the service point
278
- * @param servicePointUpdateRequest
279
- */
280
- async updateServicePoint(id, servicePointUpdateRequest, options = { headers: {} }) {
281
- const localVarPath = this.basePath + '/service-point/{id}'
282
- .replace('{' + 'id' + '}', encodeURIComponent(String(id)));
283
- let localVarQueryParameters = {};
284
- let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
285
- const produces = ['application/json'];
286
- // give precedence to 'application/json'
287
- if (produces.indexOf('application/json') >= 0) {
288
- localVarHeaderParams.Accept = 'application/json';
289
- }
290
- else {
291
- localVarHeaderParams.Accept = produces.join(',');
292
- }
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
- }
302
- Object.assign(localVarHeaderParams, options.headers);
303
- let localVarUseFormData = false;
304
- let localVarRequestOptions = {
305
- method: 'PUT',
306
- qs: localVarQueryParameters,
307
- headers: localVarHeaderParams,
308
- uri: localVarPath,
309
- useQuerystring: this._useQuerystring,
310
- json: true,
311
- body: models_1.ObjectSerializer.serialize(servicePointUpdateRequest, "ServicePointUpdateRequest")
312
- };
313
- let authenticationPromise = Promise.resolve();
314
- if (this.authentications.bearerAuth.accessToken) {
315
- authenticationPromise = authenticationPromise.then(() => this.authentications.bearerAuth.applyToRequest(localVarRequestOptions));
316
- }
317
- authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
318
- let interceptorPromise = authenticationPromise;
319
- for (const interceptor of this.interceptors) {
320
- interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
321
- }
322
- return interceptorPromise.then(() => {
323
- if (Object.keys(localVarFormParams).length) {
324
- if (localVarUseFormData) {
325
- localVarRequestOptions.formData = localVarFormParams;
326
- }
327
- else {
328
- localVarRequestOptions.form = localVarFormParams;
329
- }
330
- }
331
- return new Promise((resolve, reject) => {
332
- (0, request_1.default)(localVarRequestOptions, (error, response, body) => {
333
- if (error) {
334
- reject(error);
335
- }
336
- else {
337
- if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
338
- body = models_1.ObjectSerializer.deserialize(body, "ServicePoint");
339
- resolve({ response: response, body: body });
340
- }
341
- else {
342
- reject(new apis_1.HttpError(response, body, response.statusCode));
343
- }
344
- }
345
- });
346
- });
347
- });
348
- }
349
- }
350
- exports.ServicePointApi = ServicePointApi;
@@ -1,44 +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. 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;
@@ -1,35 +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. 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;
@@ -1,35 +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. 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.AccessType = void 0;
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,35 +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. 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.AlternateIdentifier = void 0;
15
- class AlternateIdentifier {
16
- 'id';
17
- 'type';
18
- static discriminator = undefined;
19
- static attributeTypeMap = [
20
- {
21
- "name": "id",
22
- "baseName": "id",
23
- "type": "string"
24
- },
25
- {
26
- "name": "type",
27
- "baseName": "type",
28
- "type": "string"
29
- }
30
- ];
31
- static getAttributeTypeMap() {
32
- return AlternateIdentifier.attributeTypeMap;
33
- }
34
- }
35
- exports.AlternateIdentifier = AlternateIdentifier;
@@ -1,35 +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. 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,59 +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. 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.Contributor = void 0;
15
- class Contributor {
16
- 'id';
17
- 'schemaUri';
18
- 'position';
19
- 'role';
20
- 'leader';
21
- 'contact';
22
- static discriminator = undefined;
23
- static attributeTypeMap = [
24
- {
25
- "name": "id",
26
- "baseName": "id",
27
- "type": "string"
28
- },
29
- {
30
- "name": "schemaUri",
31
- "baseName": "schemaUri",
32
- "type": "string"
33
- },
34
- {
35
- "name": "position",
36
- "baseName": "position",
37
- "type": "Array<ContributorPosition>"
38
- },
39
- {
40
- "name": "role",
41
- "baseName": "role",
42
- "type": "Array<ContributorRole>"
43
- },
44
- {
45
- "name": "leader",
46
- "baseName": "leader",
47
- "type": "boolean"
48
- },
49
- {
50
- "name": "contact",
51
- "baseName": "contact",
52
- "type": "boolean"
53
- }
54
- ];
55
- static getAttributeTypeMap() {
56
- return Contributor.attributeTypeMap;
57
- }
58
- }
59
- exports.Contributor = Contributor;
@@ -1,47 +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. 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.ContributorPosition = void 0;
15
- class ContributorPosition {
16
- 'schemaUri';
17
- 'id';
18
- 'startDate';
19
- 'endDate';
20
- static discriminator = undefined;
21
- static attributeTypeMap = [
22
- {
23
- "name": "schemaUri",
24
- "baseName": "schemaUri",
25
- "type": "string"
26
- },
27
- {
28
- "name": "id",
29
- "baseName": "id",
30
- "type": "string"
31
- },
32
- {
33
- "name": "startDate",
34
- "baseName": "startDate",
35
- "type": "string"
36
- },
37
- {
38
- "name": "endDate",
39
- "baseName": "endDate",
40
- "type": "string"
41
- }
42
- ];
43
- static getAttributeTypeMap() {
44
- return ContributorPosition.attributeTypeMap;
45
- }
46
- }
47
- exports.ContributorPosition = ContributorPosition;