@researchdatabox/raido-openapi-generated-node 0.0.2 → 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 (107) hide show
  1. package/dist/api/apis.js +5 -11
  2. package/dist/api/{basicRaidExperimentalApi.js → raidApi.js} +81 -190
  3. package/dist/api/{raidoStableV1Api.js → servicePointApi.js} +40 -59
  4. package/dist/model/access.js +5 -5
  5. package/dist/model/accessStatement.js +1 -1
  6. package/dist/model/accessType.js +22 -6
  7. package/dist/model/alternateIdentifier.js +1 -1
  8. package/dist/model/alternateUrl.js +1 -1
  9. package/dist/model/closedRaid.js +1 -1
  10. package/dist/model/contributor.js +3 -3
  11. package/dist/model/contributorPosition.js +9 -9
  12. package/dist/model/contributorRole.js +9 -9
  13. package/dist/model/description.js +2 -2
  14. package/dist/model/descriptionType.js +22 -6
  15. package/dist/model/failureResponse.js +1 -1
  16. package/dist/model/id.js +1 -10
  17. package/dist/model/language.js +1 -1
  18. package/dist/model/modelDate.js +1 -1
  19. package/dist/model/models.js +16 -188
  20. package/dist/model/organisation.js +2 -2
  21. package/dist/model/organisationRole.js +9 -9
  22. package/dist/model/owner.js +1 -1
  23. package/dist/model/{raidListItemV2.js → raidChange.js} +21 -21
  24. package/dist/model/raidCreateRequest.js +1 -1
  25. package/dist/model/raidDto.js +1 -1
  26. package/dist/model/raidUpdateRequest.js +1 -1
  27. package/dist/model/registrationAgency.js +1 -1
  28. package/dist/model/relatedObject.js +2 -2
  29. package/dist/model/relatedObjectCategory.js +1 -1
  30. package/dist/model/relatedObjectType.js +1 -1
  31. package/dist/model/relatedRaid.js +1 -1
  32. package/dist/model/relatedRaidType.js +1 -1
  33. package/dist/model/servicePoint.js +19 -1
  34. package/dist/model/servicePointCreateRequest.js +104 -0
  35. package/dist/model/servicePointUpdateRequest.js +113 -0
  36. package/dist/model/spatialCoverage.js +2 -8
  37. package/dist/model/{updateRaidoSchemaV2Request.js → spatialCoveragePlace.js} +15 -9
  38. package/dist/model/subject.js +1 -1
  39. package/dist/model/subjectKeyword.js +1 -1
  40. package/dist/model/title.js +2 -2
  41. package/dist/model/titleType.js +22 -6
  42. package/dist/model/traditionalKnowledgeLabel.js +1 -1
  43. package/dist/model/validationFailure.js +1 -1
  44. package/dist/model/validationFailureResponse.js +1 -1
  45. package/package.json +3 -3
  46. package/dist/api/adminExperimentalApi.js +0 -1092
  47. package/dist/api/publicExperimentalApi.js +0 -264
  48. package/dist/api/unapprovedExperimentalApi.js +0 -147
  49. package/dist/model/accessBlock.js +0 -35
  50. package/dist/model/accessTypeWithSchemaUri.js +0 -35
  51. package/dist/model/alternateIdentifierBlock.js +0 -35
  52. package/dist/model/alternateUrlBlock.js +0 -29
  53. package/dist/model/apiKey.js +0 -74
  54. package/dist/model/appUser.js +0 -83
  55. package/dist/model/appUserExtraV1.js +0 -44
  56. package/dist/model/authzRequestExtraV1.js +0 -104
  57. package/dist/model/authzRequestStatus.js +0 -20
  58. package/dist/model/contributorBlock.js +0 -47
  59. package/dist/model/contributorIdentifierSchemeType.js +0 -18
  60. package/dist/model/contributorPositionRaidMetadataSchemaType.js +0 -22
  61. package/dist/model/contributorPositionSchemeType.js +0 -18
  62. package/dist/model/contributorPositionWithSchemaUri.js +0 -47
  63. package/dist/model/contributorRoleCreditNisoOrgType.js +0 -31
  64. package/dist/model/contributorRoleSchemeType.js +0 -18
  65. package/dist/model/contributorRoleWithSchemaUri.js +0 -35
  66. package/dist/model/datesBlock.js +0 -35
  67. package/dist/model/descriptionBlock.js +0 -35
  68. package/dist/model/descriptionTypeWithSchemaUri.js +0 -35
  69. package/dist/model/generateApiTokenRequest.js +0 -29
  70. package/dist/model/generateApiTokenResponse.js +0 -35
  71. package/dist/model/idBlock.js +0 -95
  72. package/dist/model/legacyMetadataSchemaV1.js +0 -68
  73. package/dist/model/migrateLegacyRaidRequest.js +0 -35
  74. package/dist/model/migrateLegacyRaidRequestMintRequest.js +0 -41
  75. package/dist/model/mintRaidoSchemaV1Request.js +0 -38
  76. package/dist/model/mintRaidoSchemaV1RequestMintRequest.js +0 -32
  77. package/dist/model/mintResponse.js +0 -41
  78. package/dist/model/organisationBlock.js +0 -41
  79. package/dist/model/organisationIdentifierSchemeType.js +0 -18
  80. package/dist/model/organisationRoleSchemeType.js +0 -18
  81. package/dist/model/organisationRoleType.js +0 -22
  82. package/dist/model/organisationRoleWithSchemaUri.js +0 -47
  83. package/dist/model/publicClosedMetadataSchemaV1.js +0 -41
  84. package/dist/model/publicRaidMetadataSchemaV1.js +0 -116
  85. package/dist/model/publicReadRaidMetadataResponseV1.js +0 -116
  86. package/dist/model/publicReadRaidResponseV3.js +0 -56
  87. package/dist/model/publicServicePoint.js +0 -38
  88. package/dist/model/raidListItemV3.js +0 -53
  89. package/dist/model/raidListRequestV2.js +0 -35
  90. package/dist/model/raidoMetadataSchemaV1.js +0 -116
  91. package/dist/model/raidoMetadataSchemaV2.js +0 -116
  92. package/dist/model/raidoMetaschema.js +0 -22
  93. package/dist/model/raidoMetaschemaV2.js +0 -23
  94. package/dist/model/readRaidResponseV2.js +0 -71
  95. package/dist/model/readRaidV2Request.js +0 -29
  96. package/dist/model/relatedObjectBlock.js +0 -53
  97. package/dist/model/relatedRaidBlock.js +0 -41
  98. package/dist/model/spatialCoverageBlock.js +0 -41
  99. package/dist/model/subjectBlock.js +0 -41
  100. package/dist/model/titleBlock.js +0 -47
  101. package/dist/model/titleTypeWithSchemaUri.js +0 -35
  102. package/dist/model/traditionalKnowledgeLabelBlock.js +0 -29
  103. package/dist/model/updateAuthzRequest.js +0 -35
  104. package/dist/model/updateAuthzRequestStatus.js +0 -47
  105. package/dist/model/updateAuthzResponse.js +0 -35
  106. package/dist/model/updateRaidoSchemaV1Request.js +0 -29
  107. 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 used in this project, see ../idl-raid-v1). 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.
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,7 +14,7 @@ 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.RaidoStableV1Api = exports.RaidoStableV1ApiApiKeys = 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");
@@ -23,10 +23,10 @@ let defaultBasePath = 'https://api.prod.raid.org.au';
23
23
  // ===============================================
24
24
  // This file is autogenerated - Please do not edit
25
25
  // ===============================================
26
- var RaidoStableV1ApiApiKeys;
27
- (function (RaidoStableV1ApiApiKeys) {
28
- })(RaidoStableV1ApiApiKeys = exports.RaidoStableV1ApiApiKeys || (exports.RaidoStableV1ApiApiKeys = {}));
29
- class RaidoStableV1Api {
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;
@@ -66,7 +66,7 @@ class RaidoStableV1Api {
66
66
  this.authentications.default = auth;
67
67
  }
68
68
  setApiKey(key, value) {
69
- this.authentications[RaidoStableV1ApiApiKeys[key]].apiKey = value;
69
+ this.authentications[ServicePointApiApiKeys[key]].apiKey = value;
70
70
  }
71
71
  set accessToken(accessToken) {
72
72
  this.authentications.bearerAuth.accessToken = accessToken;
@@ -76,11 +76,10 @@ class RaidoStableV1Api {
76
76
  }
77
77
  /**
78
78
  *
79
- * @summary mint a raid
80
- * @param raidCreateRequest
79
+ * @param servicePointCreateRequest
81
80
  */
82
- async createRaidV1(raidCreateRequest, options = { headers: {} }) {
83
- const localVarPath = this.basePath + '/raid';
81
+ async createServicePoint(servicePointCreateRequest, options = { headers: {} }) {
82
+ const localVarPath = this.basePath + '/service-point/';
84
83
  let localVarQueryParameters = {};
85
84
  let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
86
85
  const produces = ['application/json'];
@@ -92,9 +91,9 @@ class RaidoStableV1Api {
92
91
  localVarHeaderParams.Accept = produces.join(',');
93
92
  }
94
93
  let localVarFormParams = {};
95
- // verify required parameter 'raidCreateRequest' is not null or undefined
96
- if (raidCreateRequest === null || raidCreateRequest === undefined) {
97
- throw new Error('Required parameter raidCreateRequest was null or undefined when calling createRaidV1.');
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.');
98
97
  }
99
98
  Object.assign(localVarHeaderParams, options.headers);
100
99
  let localVarUseFormData = false;
@@ -105,7 +104,7 @@ class RaidoStableV1Api {
105
104
  uri: localVarPath,
106
105
  useQuerystring: this._useQuerystring,
107
106
  json: true,
108
- body: models_1.ObjectSerializer.serialize(raidCreateRequest, "RaidCreateRequest")
107
+ body: models_1.ObjectSerializer.serialize(servicePointCreateRequest, "ServicePointCreateRequest")
109
108
  };
110
109
  let authenticationPromise = Promise.resolve();
111
110
  if (this.authentications.bearerAuth.accessToken) {
@@ -132,7 +131,7 @@ class RaidoStableV1Api {
132
131
  }
133
132
  else {
134
133
  if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
135
- body = models_1.ObjectSerializer.deserialize(body, "RaidDto");
134
+ body = models_1.ObjectSerializer.deserialize(body, "ServicePoint");
136
135
  resolve({ response: response, body: body });
137
136
  }
138
137
  else {
@@ -145,11 +144,9 @@ class RaidoStableV1Api {
145
144
  }
146
145
  /**
147
146
  *
148
- * @summary list raids
149
- * @param servicePointId
150
147
  */
151
- async listRaidsV1(servicePointId, options = { headers: {} }) {
152
- const localVarPath = this.basePath + '/raid';
148
+ async findAllServicePoints(options = { headers: {} }) {
149
+ const localVarPath = this.basePath + '/service-point/';
153
150
  let localVarQueryParameters = {};
154
151
  let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
155
152
  const produces = ['application/json'];
@@ -161,9 +158,6 @@ class RaidoStableV1Api {
161
158
  localVarHeaderParams.Accept = produces.join(',');
162
159
  }
163
160
  let localVarFormParams = {};
164
- if (servicePointId !== undefined) {
165
- localVarQueryParameters['servicePointId'] = models_1.ObjectSerializer.serialize(servicePointId, "number");
166
- }
167
161
  Object.assign(localVarHeaderParams, options.headers);
168
162
  let localVarUseFormData = false;
169
163
  let localVarRequestOptions = {
@@ -199,7 +193,7 @@ class RaidoStableV1Api {
199
193
  }
200
194
  else {
201
195
  if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
202
- body = models_1.ObjectSerializer.deserialize(body, "Array<RaidDto>");
196
+ body = models_1.ObjectSerializer.deserialize(body, "Array<ServicePoint>");
203
197
  resolve({ response: response, body: body });
204
198
  }
205
199
  else {
@@ -212,14 +206,11 @@ class RaidoStableV1Api {
212
206
  }
213
207
  /**
214
208
  *
215
- * @summary read a raid, caller must be authorized
216
- * @param prefix Prefix of the raid handle
217
- * @param suffix Suffix of the raid handle
209
+ * @param id The id of the service point
218
210
  */
219
- async readRaidV1(prefix, suffix, options = { headers: {} }) {
220
- const localVarPath = this.basePath + '/raid/{prefix}/{suffix}'
221
- .replace('{' + 'prefix' + '}', encodeURIComponent(String(prefix)))
222
- .replace('{' + 'suffix' + '}', encodeURIComponent(String(suffix)));
211
+ async findServicePointById(id, options = { headers: {} }) {
212
+ const localVarPath = this.basePath + '/service-point/{id}'
213
+ .replace('{' + 'id' + '}', encodeURIComponent(String(id)));
223
214
  let localVarQueryParameters = {};
224
215
  let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
225
216
  const produces = ['application/json'];
@@ -231,13 +222,9 @@ class RaidoStableV1Api {
231
222
  localVarHeaderParams.Accept = produces.join(',');
232
223
  }
233
224
  let localVarFormParams = {};
234
- // verify required parameter 'prefix' is not null or undefined
235
- if (prefix === null || prefix === undefined) {
236
- throw new Error('Required parameter prefix was null or undefined when calling readRaidV1.');
237
- }
238
- // verify required parameter 'suffix' is not null or undefined
239
- if (suffix === null || suffix === undefined) {
240
- throw new Error('Required parameter suffix was null or undefined when calling readRaidV1.');
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.');
241
228
  }
242
229
  Object.assign(localVarHeaderParams, options.headers);
243
230
  let localVarUseFormData = false;
@@ -274,7 +261,7 @@ class RaidoStableV1Api {
274
261
  }
275
262
  else {
276
263
  if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
277
- body = models_1.ObjectSerializer.deserialize(body, "RaidDto");
264
+ body = models_1.ObjectSerializer.deserialize(body, "ServicePoint");
278
265
  resolve({ response: response, body: body });
279
266
  }
280
267
  else {
@@ -287,14 +274,12 @@ class RaidoStableV1Api {
287
274
  }
288
275
  /**
289
276
  *
290
- * @param prefix Prefix of the raid handle
291
- * @param suffix Suffix of the raid handle
292
- * @param raidUpdateRequest
277
+ * @param id The id of the service point
278
+ * @param servicePointUpdateRequest
293
279
  */
294
- async updateRaidV1(prefix, suffix, raidUpdateRequest, options = { headers: {} }) {
295
- const localVarPath = this.basePath + '/raid/{prefix}/{suffix}'
296
- .replace('{' + 'prefix' + '}', encodeURIComponent(String(prefix)))
297
- .replace('{' + 'suffix' + '}', encodeURIComponent(String(suffix)));
280
+ async updateServicePoint(id, servicePointUpdateRequest, options = { headers: {} }) {
281
+ const localVarPath = this.basePath + '/service-point/{id}'
282
+ .replace('{' + 'id' + '}', encodeURIComponent(String(id)));
298
283
  let localVarQueryParameters = {};
299
284
  let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
300
285
  const produces = ['application/json'];
@@ -306,17 +291,13 @@ class RaidoStableV1Api {
306
291
  localVarHeaderParams.Accept = produces.join(',');
307
292
  }
308
293
  let localVarFormParams = {};
309
- // verify required parameter 'prefix' is not null or undefined
310
- if (prefix === null || prefix === undefined) {
311
- throw new Error('Required parameter prefix was null or undefined when calling updateRaidV1.');
312
- }
313
- // verify required parameter 'suffix' is not null or undefined
314
- if (suffix === null || suffix === undefined) {
315
- throw new Error('Required parameter suffix was null or undefined when calling updateRaidV1.');
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.');
316
297
  }
317
- // verify required parameter 'raidUpdateRequest' is not null or undefined
318
- if (raidUpdateRequest === null || raidUpdateRequest === undefined) {
319
- throw new Error('Required parameter raidUpdateRequest was null or undefined when calling updateRaidV1.');
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.');
320
301
  }
321
302
  Object.assign(localVarHeaderParams, options.headers);
322
303
  let localVarUseFormData = false;
@@ -327,7 +308,7 @@ class RaidoStableV1Api {
327
308
  uri: localVarPath,
328
309
  useQuerystring: this._useQuerystring,
329
310
  json: true,
330
- body: models_1.ObjectSerializer.serialize(raidUpdateRequest, "RaidUpdateRequest")
311
+ body: models_1.ObjectSerializer.serialize(servicePointUpdateRequest, "ServicePointUpdateRequest")
331
312
  };
332
313
  let authenticationPromise = Promise.resolve();
333
314
  if (this.authentications.bearerAuth.accessToken) {
@@ -354,7 +335,7 @@ class RaidoStableV1Api {
354
335
  }
355
336
  else {
356
337
  if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
357
- body = models_1.ObjectSerializer.deserialize(body, "RaidDto");
338
+ body = models_1.ObjectSerializer.deserialize(body, "ServicePoint");
358
339
  resolve({ response: response, body: body });
359
340
  }
360
341
  else {
@@ -366,4 +347,4 @@ class RaidoStableV1Api {
366
347
  });
367
348
  }
368
349
  }
369
- exports.RaidoStableV1Api = RaidoStableV1Api;
350
+ exports.ServicePointApi = ServicePointApi;
@@ -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 used in this project, see ../idl-raid-v1). 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.
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,7 +14,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
14
14
  exports.Access = void 0;
15
15
  class Access {
16
16
  'type';
17
- 'accessStatement';
17
+ 'statement';
18
18
  /**
19
19
  * Date the embargo on access to the RAiD ends. Year
20
20
  */
@@ -24,11 +24,11 @@ class Access {
24
24
  {
25
25
  "name": "type",
26
26
  "baseName": "type",
27
- "type": "AccessTypeWithSchemaUri"
27
+ "type": "AccessType"
28
28
  },
29
29
  {
30
- "name": "accessStatement",
31
- "baseName": "accessStatement",
30
+ "name": "statement",
31
+ "baseName": "statement",
32
32
  "type": "AccessStatement"
33
33
  },
34
34
  {
@@ -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 used in this project, see ../idl-raid-v1). 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.
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
@@ -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 used in this project, see ../idl-raid-v1). 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.
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 used in this project, see ../idl-raid-v1). 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.
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
@@ -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 used in this project, see ../idl-raid-v1). 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.
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
@@ -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 used in this project, see ../idl-raid-v1). 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.
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
@@ -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 used in this project, see ../idl-raid-v1). 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.
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
@@ -34,12 +34,12 @@ class Contributor {
34
34
  {
35
35
  "name": "position",
36
36
  "baseName": "position",
37
- "type": "Array<ContributorPositionWithSchemaUri>"
37
+ "type": "Array<ContributorPosition>"
38
38
  },
39
39
  {
40
40
  "name": "role",
41
41
  "baseName": "role",
42
- "type": "Array<ContributorRoleWithSchemaUri>"
42
+ "type": "Array<ContributorRole>"
43
43
  },
44
44
  {
45
45
  "name": "leader",
@@ -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 used in this project, see ../idl-raid-v1). 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.
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",
@@ -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 used in this project, see ../idl-raid-v1). 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.
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,19 +13,19 @@
13
13
  Object.defineProperty(exports, "__esModule", { value: true });
14
14
  exports.ContributorRole = void 0;
15
15
  class ContributorRole {
16
- 'roleSchemeUri';
17
- 'role';
16
+ 'schemaUri';
17
+ 'id';
18
18
  static discriminator = undefined;
19
19
  static attributeTypeMap = [
20
20
  {
21
- "name": "roleSchemeUri",
22
- "baseName": "roleSchemeUri",
23
- "type": "ContributorRoleSchemeType"
21
+ "name": "schemaUri",
22
+ "baseName": "schemaUri",
23
+ "type": "string"
24
24
  },
25
25
  {
26
- "name": "role",
27
- "baseName": "role",
28
- "type": "ContributorRoleCreditNisoOrgType"
26
+ "name": "id",
27
+ "baseName": "id",
28
+ "type": "string"
29
29
  }
30
30
  ];
31
31
  static getAttributeTypeMap() {
@@ -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 used in this project, see ../idl-raid-v1). 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.
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
@@ -26,7 +26,7 @@ class Description {
26
26
  {
27
27
  "name": "type",
28
28
  "baseName": "type",
29
- "type": "DescriptionTypeWithSchemaUri"
29
+ "type": "DescriptionType"
30
30
  },
31
31
  {
32
32
  "name": "language",
@@ -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 used in this project, see ../idl-raid-v1). 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.
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.DescriptionType = void 0;
15
- var DescriptionType;
16
- (function (DescriptionType) {
17
- DescriptionType[DescriptionType["PrimaryDescription"] = 'Primary Description'] = "PrimaryDescription";
18
- DescriptionType[DescriptionType["AlternativeDescription"] = 'Alternative Description'] = "AlternativeDescription";
19
- })(DescriptionType = exports.DescriptionType || (exports.DescriptionType = {}));
15
+ class DescriptionType {
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 DescriptionType.attributeTypeMap;
33
+ }
34
+ }
35
+ exports.DescriptionType = DescriptionType;
@@ -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 used in this project, see ../idl-raid-v1). 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.
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
package/dist/model/id.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 (not used in this project, see ../idl-raid-v1). 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.
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
@@ -24,10 +24,6 @@ class Id {
24
24
  'registrationAgency';
25
25
  'owner';
26
26
  /**
27
- * The URL for the raid via the CNRI handle system, e.g https://hdl.handle.net/xxx.yyy/zzz
28
- */
29
- 'globalUrl';
30
- /**
31
27
  * The URL for the raid via the minting raid agency system, e.g https://raid.org.au/10378.1/1695863
32
28
  */
33
29
  'raidAgencyUrl';
@@ -61,11 +57,6 @@ class Id {
61
57
  "baseName": "owner",
62
58
  "type": "Owner"
63
59
  },
64
- {
65
- "name": "globalUrl",
66
- "baseName": "globalUrl",
67
- "type": "string"
68
- },
69
60
  {
70
61
  "name": "raidAgencyUrl",
71
62
  "baseName": "raidAgencyUrl",
@@ -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 used in this project, see ../idl-raid-v1). 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.
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
@@ -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 used in this project, see ../idl-raid-v1). 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.
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