@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.
Files changed (78) hide show
  1. package/README.md +1 -1
  2. package/dist/api/apis.js +5 -9
  3. package/dist/api/{basicRaidExperimentalApi.js → raidApi.js} +98 -69
  4. package/dist/api/{publicExperimentalApi.js → servicePointApi.js} +115 -29
  5. package/dist/model/access.js +44 -0
  6. package/dist/model/accessStatement.js +35 -0
  7. package/dist/model/accessType.js +22 -6
  8. package/dist/model/{descriptionBlock.js → alternateIdentifier.js} +9 -9
  9. package/dist/model/{alternateUrlBlock.js → alternateUrl.js} +5 -5
  10. package/dist/model/closedRaid.js +35 -0
  11. package/dist/model/{apiKey.js → contributor.js} +21 -36
  12. package/dist/model/contributorPosition.js +9 -9
  13. package/dist/model/contributorRole.js +9 -9
  14. package/dist/model/description.js +41 -0
  15. package/dist/model/descriptionType.js +22 -6
  16. package/dist/model/{updateAuthzRequestStatus.js → failureResponse.js} +25 -16
  17. package/dist/model/id.js +80 -0
  18. package/dist/model/{publicServicePoint.js → language.js} +9 -12
  19. package/dist/model/{datesBlock.js → modelDate.js} +8 -5
  20. package/dist/model/models.js +100 -140
  21. package/dist/model/{organisationBlock.js → organisation.js} +12 -12
  22. package/dist/model/organisationRole.js +9 -9
  23. package/dist/model/{appUserExtraV1.js → owner.js} +20 -17
  24. package/dist/model/{raidListItemV2.js → raidChange.js} +21 -21
  25. package/dist/model/raidCreateRequest.js +107 -0
  26. package/dist/model/raidDto.js +107 -0
  27. package/dist/model/raidUpdateRequest.js +107 -0
  28. package/dist/model/registrationAgency.js +38 -0
  29. package/dist/model/relatedObject.js +47 -0
  30. package/dist/model/{publicClosedMetadataSchemaV1.js → relatedObjectCategory.js} +10 -16
  31. package/dist/model/relatedObjectType.js +35 -0
  32. package/dist/model/{accessBlock.js → relatedRaid.js} +12 -12
  33. package/dist/model/relatedRaidType.js +35 -0
  34. package/dist/model/servicePoint.js +31 -1
  35. package/dist/model/servicePointCreateRequest.js +104 -0
  36. package/dist/model/servicePointUpdateRequest.js +113 -0
  37. package/dist/model/{contributorBlock.js → spatialCoverage.js} +13 -19
  38. package/dist/model/spatialCoveragePlace.js +35 -0
  39. package/dist/model/subject.js +41 -0
  40. package/dist/model/{generateApiTokenResponse.js → subjectKeyword.js} +13 -13
  41. package/dist/model/{titleBlock.js → title.js} +14 -8
  42. package/dist/model/titleType.js +22 -6
  43. package/dist/model/traditionalKnowledgeLabel.js +35 -0
  44. package/dist/model/validationFailure.js +1 -1
  45. package/dist/model/{readRaidResponseV2.js → validationFailureResponse.js} +26 -38
  46. package/package.json +3 -3
  47. package/dist/api/adminExperimentalApi.js +0 -1092
  48. package/dist/api/unauthzExperimentalApi.js +0 -147
  49. package/dist/model/appUser.js +0 -83
  50. package/dist/model/authzRequestExtraV1.js +0 -104
  51. package/dist/model/authzRequestStatus.js +0 -20
  52. package/dist/model/contributorIdentifierSchemeType.js +0 -18
  53. package/dist/model/contributorPositionRaidMetadataSchemaType.js +0 -22
  54. package/dist/model/contributorPositionSchemeType.js +0 -18
  55. package/dist/model/contributorRoleCreditNisoOrgType.js +0 -31
  56. package/dist/model/contributorRoleSchemeType.js +0 -18
  57. package/dist/model/generateApiTokenRequest.js +0 -29
  58. package/dist/model/idBlock.js +0 -65
  59. package/dist/model/legacyMetadataSchemaV1.js +0 -68
  60. package/dist/model/migrateLegacyRaidRequest.js +0 -35
  61. package/dist/model/migrateLegacyRaidRequestMintRequest.js +0 -41
  62. package/dist/model/mintRaidoSchemaV1Request.js +0 -38
  63. package/dist/model/mintRaidoSchemaV1RequestMintRequest.js +0 -32
  64. package/dist/model/mintResponse.js +0 -41
  65. package/dist/model/organisationIdentifierSchemeType.js +0 -18
  66. package/dist/model/organisationRoleSchemeType.js +0 -18
  67. package/dist/model/organisationRoleType.js +0 -22
  68. package/dist/model/publicRaidMetadataSchemaV1.js +0 -80
  69. package/dist/model/publicReadRaidMetadataResponseV1.js +0 -80
  70. package/dist/model/publicReadRaidResponseV3.js +0 -56
  71. package/dist/model/raidListRequestV2.js +0 -35
  72. package/dist/model/raidoMetadataSchemaV1.js +0 -80
  73. package/dist/model/raidoMetaschema.js +0 -22
  74. package/dist/model/readRaidV2Request.js +0 -29
  75. package/dist/model/updateAuthzRequest.js +0 -38
  76. package/dist/model/updateAuthzResponse.js +0 -29
  77. package/dist/model/updateRaidoSchemaV1Request.js +0 -29
  78. 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 (not this project).
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.PublicExperimentalApi = exports.PublicExperimentalApiApiKeys = void 0;
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://demo.raido-infra.com';
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 PublicExperimentalApiApiKeys;
27
- (function (PublicExperimentalApiApiKeys) {
28
- })(PublicExperimentalApiApiKeys = exports.PublicExperimentalApiApiKeys || (exports.PublicExperimentalApiApiKeys = {}));
29
- class PublicExperimentalApi {
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
- 'BearerAuth': new models_2.HttpBearerAuth(),
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[PublicExperimentalApiApiKeys[key]].apiKey = value;
69
+ this.authentications[ServicePointApiApiKeys[key]].apiKey = value;
70
70
  }
71
71
  set accessToken(accessToken) {
72
- this.authentications.BearerAuth.accessToken = accessToken;
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
- * @summary list service point data that un-authn users can see
79
+ * @param servicePointCreateRequest
80
80
  */
81
- async publicListServicePoint(options = { headers: {} }) {
82
- const localVarPath = this.basePath + '/v2/public/list-service-point/v1';
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<PublicServicePoint>");
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
- * @summary read raid data
140
- * @param handle handle
209
+ * @param id The id of the service point
141
210
  */
142
- async publicReadRaidV3(handle, options = { headers: {} }) {
143
- const localVarPath = this.basePath + '/v2/public/handle/v3/{handle}'
144
- .replace('{' + 'handle' + '}', encodeURIComponent(String(handle)));
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 'handle' is not null or undefined
157
- if (handle === null || handle === undefined) {
158
- throw new Error('Required parameter handle was null or undefined when calling publicReadRaidV3.');
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, "PublicReadRaidResponseV3");
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
- * @summary get info about server
277
+ * @param id The id of the service point
278
+ * @param servicePointUpdateRequest
206
279
  */
207
- async version(options = { headers: {} }) {
208
- const localVarPath = this.basePath + '/v2/public/version';
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: 'GET',
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, "VersionResult");
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.PublicExperimentalApi = PublicExperimentalApi;
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;
@@ -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 (not this project).
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
- var AccessType;
16
- (function (AccessType) {
17
- AccessType[AccessType["Open"] = 'Open'] = "Open";
18
- AccessType[AccessType["Closed"] = 'Closed'] = "Closed";
19
- })(AccessType = exports.AccessType || (exports.AccessType = {}));
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 (not this project).
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.DescriptionBlock = void 0;
15
- class DescriptionBlock {
16
- 'description';
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": "description",
22
- "baseName": "description",
21
+ "name": "id",
22
+ "baseName": "id",
23
23
  "type": "string"
24
24
  },
25
25
  {
26
26
  "name": "type",
27
27
  "baseName": "type",
28
- "type": "DescriptionType"
28
+ "type": "string"
29
29
  }
30
30
  ];
31
31
  static getAttributeTypeMap() {
32
- return DescriptionBlock.attributeTypeMap;
32
+ return AlternateIdentifier.attributeTypeMap;
33
33
  }
34
34
  }
35
- exports.DescriptionBlock = DescriptionBlock;
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 (not this project).
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.AlternateUrlBlock = void 0;
15
- class AlternateUrlBlock {
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 AlternateUrlBlock.attributeTypeMap;
26
+ return AlternateUrl.attributeTypeMap;
27
27
  }
28
28
  }
29
- exports.AlternateUrlBlock = AlternateUrlBlock;
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 (not this project).
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.ApiKey = void 0;
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
- 'servicePointId';
21
- 'subject';
22
- 'idProvider';
17
+ 'schemaUri';
18
+ 'position';
23
19
  'role';
24
- 'enabled';
25
- 'tokenCutoff';
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": "number"
33
- },
34
- {
35
- "name": "servicePointId",
36
- "baseName": "servicePointId",
37
- "type": "number"
27
+ "type": "string"
38
28
  },
39
29
  {
40
- "name": "subject",
41
- "baseName": "subject",
30
+ "name": "schemaUri",
31
+ "baseName": "schemaUri",
42
32
  "type": "string"
43
33
  },
44
34
  {
45
- "name": "idProvider",
46
- "baseName": "idProvider",
47
- "type": "string"
35
+ "name": "position",
36
+ "baseName": "position",
37
+ "type": "Array<ContributorPosition>"
48
38
  },
49
39
  {
50
40
  "name": "role",
51
41
  "baseName": "role",
52
- "type": "string"
42
+ "type": "Array<ContributorRole>"
53
43
  },
54
44
  {
55
- "name": "enabled",
56
- "baseName": "enabled",
45
+ "name": "leader",
46
+ "baseName": "leader",
57
47
  "type": "boolean"
58
48
  },
59
49
  {
60
- "name": "tokenCutoff",
61
- "baseName": "tokenCutoff",
62
- "type": "Date"
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 ApiKey.attributeTypeMap;
56
+ return Contributor.attributeTypeMap;
72
57
  }
73
58
  }
74
- exports.ApiKey = ApiKey;
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 (not this project).
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
- 'positionSchemaUri';
17
- 'position';
16
+ 'schemaUri';
17
+ 'id';
18
18
  'startDate';
19
19
  'endDate';
20
20
  static discriminator = undefined;
21
21
  static attributeTypeMap = [
22
22
  {
23
- "name": "positionSchemaUri",
24
- "baseName": "positionSchemaUri",
25
- "type": "ContributorPositionSchemeType"
23
+ "name": "schemaUri",
24
+ "baseName": "schemaUri",
25
+ "type": "string"
26
26
  },
27
27
  {
28
- "name": "position",
29
- "baseName": "position",
30
- "type": "ContributorPositionRaidMetadataSchemaType"
28
+ "name": "id",
29
+ "baseName": "id",
30
+ "type": "string"
31
31
  },
32
32
  {
33
33
  "name": "startDate",