@researchdatabox/raido-openapi-generated-node 0.0.1 → 0.0.2

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 (106) hide show
  1. package/README.md +1 -1
  2. package/dist/api/adminExperimentalApi.js +35 -35
  3. package/dist/api/apis.js +5 -3
  4. package/dist/api/basicRaidExperimentalApi.js +152 -14
  5. package/dist/api/publicExperimentalApi.js +5 -5
  6. package/dist/api/raidoStableV1Api.js +369 -0
  7. package/dist/api/{unauthzExperimentalApi.js → unapprovedExperimentalApi.js} +17 -17
  8. package/dist/model/access.js +44 -0
  9. package/dist/model/accessBlock.js +1 -1
  10. package/dist/model/accessStatement.js +35 -0
  11. package/dist/model/accessType.js +1 -1
  12. package/dist/model/accessTypeWithSchemaUri.js +35 -0
  13. package/dist/model/alternateIdentifier.js +35 -0
  14. package/dist/model/alternateIdentifierBlock.js +35 -0
  15. package/dist/model/alternateUrl.js +29 -0
  16. package/dist/model/alternateUrlBlock.js +1 -1
  17. package/dist/model/apiKey.js +1 -1
  18. package/dist/model/appUser.js +1 -1
  19. package/dist/model/appUserExtraV1.js +1 -1
  20. package/dist/model/authzRequestExtraV1.js +1 -1
  21. package/dist/model/authzRequestStatus.js +1 -1
  22. package/dist/model/closedRaid.js +35 -0
  23. package/dist/model/contributor.js +59 -0
  24. package/dist/model/contributorBlock.js +1 -1
  25. package/dist/model/contributorIdentifierSchemeType.js +1 -1
  26. package/dist/model/contributorPosition.js +1 -1
  27. package/dist/model/contributorPositionRaidMetadataSchemaType.js +1 -1
  28. package/dist/model/contributorPositionSchemeType.js +1 -1
  29. package/dist/model/contributorPositionWithSchemaUri.js +47 -0
  30. package/dist/model/contributorRole.js +1 -1
  31. package/dist/model/contributorRoleCreditNisoOrgType.js +1 -1
  32. package/dist/model/contributorRoleSchemeType.js +1 -1
  33. package/dist/model/contributorRoleWithSchemaUri.js +35 -0
  34. package/dist/model/datesBlock.js +1 -1
  35. package/dist/model/description.js +41 -0
  36. package/dist/model/descriptionBlock.js +1 -1
  37. package/dist/model/descriptionType.js +1 -1
  38. package/dist/model/descriptionTypeWithSchemaUri.js +35 -0
  39. package/dist/model/failureResponse.js +53 -0
  40. package/dist/model/generateApiTokenRequest.js +1 -1
  41. package/dist/model/generateApiTokenResponse.js +1 -1
  42. package/dist/model/id.js +89 -0
  43. package/dist/model/idBlock.js +41 -11
  44. package/dist/model/language.js +35 -0
  45. package/dist/model/legacyMetadataSchemaV1.js +1 -1
  46. package/dist/model/migrateLegacyRaidRequest.js +1 -1
  47. package/dist/model/migrateLegacyRaidRequestMintRequest.js +1 -1
  48. package/dist/model/mintRaidoSchemaV1Request.js +1 -1
  49. package/dist/model/mintRaidoSchemaV1RequestMintRequest.js +1 -1
  50. package/dist/model/mintResponse.js +1 -1
  51. package/dist/model/modelDate.js +38 -0
  52. package/dist/model/models.js +132 -0
  53. package/dist/model/organisation.js +41 -0
  54. package/dist/model/organisationBlock.js +1 -1
  55. package/dist/model/organisationIdentifierSchemeType.js +1 -1
  56. package/dist/model/organisationRole.js +1 -1
  57. package/dist/model/organisationRoleSchemeType.js +1 -1
  58. package/dist/model/organisationRoleType.js +1 -1
  59. package/dist/model/organisationRoleWithSchemaUri.js +47 -0
  60. package/dist/model/owner.js +47 -0
  61. package/dist/model/publicClosedMetadataSchemaV1.js +1 -1
  62. package/dist/model/publicRaidMetadataSchemaV1.js +37 -1
  63. package/dist/model/publicReadRaidMetadataResponseV1.js +37 -1
  64. package/dist/model/publicReadRaidResponseV3.js +1 -1
  65. package/dist/model/publicServicePoint.js +1 -1
  66. package/dist/model/raidCreateRequest.js +107 -0
  67. package/dist/model/raidDto.js +107 -0
  68. package/dist/model/raidListItemV2.js +1 -1
  69. package/dist/model/raidListItemV3.js +53 -0
  70. package/dist/model/raidListRequestV2.js +1 -1
  71. package/dist/model/raidUpdateRequest.js +107 -0
  72. package/dist/model/raidoMetadataSchemaV1.js +37 -1
  73. package/dist/model/raidoMetadataSchemaV2.js +116 -0
  74. package/dist/model/raidoMetaschema.js +1 -1
  75. package/dist/model/raidoMetaschemaV2.js +23 -0
  76. package/dist/model/readRaidResponseV2.js +1 -1
  77. package/dist/model/readRaidV2Request.js +1 -1
  78. package/dist/model/registrationAgency.js +38 -0
  79. package/dist/model/relatedObject.js +47 -0
  80. package/dist/model/relatedObjectBlock.js +53 -0
  81. package/dist/model/relatedObjectCategory.js +35 -0
  82. package/dist/model/relatedObjectType.js +35 -0
  83. package/dist/model/relatedRaid.js +35 -0
  84. package/dist/model/relatedRaidBlock.js +41 -0
  85. package/dist/model/relatedRaidType.js +35 -0
  86. package/dist/model/servicePoint.js +13 -1
  87. package/dist/model/spatialCoverage.js +47 -0
  88. package/dist/model/spatialCoverageBlock.js +41 -0
  89. package/dist/model/subject.js +41 -0
  90. package/dist/model/subjectBlock.js +41 -0
  91. package/dist/model/subjectKeyword.js +35 -0
  92. package/dist/model/title.js +53 -0
  93. package/dist/model/titleBlock.js +1 -1
  94. package/dist/model/titleType.js +1 -1
  95. package/dist/model/titleTypeWithSchemaUri.js +35 -0
  96. package/dist/model/traditionalKnowledgeLabel.js +35 -0
  97. package/dist/model/traditionalKnowledgeLabelBlock.js +29 -0
  98. package/dist/model/updateAuthzRequest.js +1 -4
  99. package/dist/model/updateAuthzRequestStatus.js +4 -1
  100. package/dist/model/updateAuthzResponse.js +7 -1
  101. package/dist/model/updateRaidoSchemaV1Request.js +1 -1
  102. package/dist/model/updateRaidoSchemaV2Request.js +29 -0
  103. package/dist/model/validationFailure.js +1 -1
  104. package/dist/model/validationFailureResponse.js +59 -0
  105. package/dist/model/versionResult.js +1 -1
  106. package/package.json +3 -3
@@ -0,0 +1,369 @@
1
+ "use strict";
2
+ /**
3
+ * RAID v2 API
4
+ * This file is where all the endpoint paths are defined, it\'s the \"top level\' of the OpenAPI definition that links all the different files together. The `3.0` in the filename refers to this file being based on OpenAPI 3.0 as opposed to OpenAPI 3.1, which the tooling doesn\'t support yet. The `2.0.0` in the version field refers to the fact that there\'s already a `1.0.0` used for the legacy RAiD application (not 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.
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.RaidoStableV1Api = exports.RaidoStableV1ApiApiKeys = 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 RaidoStableV1ApiApiKeys;
27
+ (function (RaidoStableV1ApiApiKeys) {
28
+ })(RaidoStableV1ApiApiKeys = exports.RaidoStableV1ApiApiKeys || (exports.RaidoStableV1ApiApiKeys = {}));
29
+ class RaidoStableV1Api {
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[RaidoStableV1ApiApiKeys[key]].apiKey = value;
70
+ }
71
+ set accessToken(accessToken) {
72
+ this.authentications.bearerAuth.accessToken = accessToken;
73
+ }
74
+ addInterceptor(interceptor) {
75
+ this.interceptors.push(interceptor);
76
+ }
77
+ /**
78
+ *
79
+ * @summary mint a raid
80
+ * @param raidCreateRequest
81
+ */
82
+ async createRaidV1(raidCreateRequest, options = { headers: {} }) {
83
+ const localVarPath = this.basePath + '/raid';
84
+ let localVarQueryParameters = {};
85
+ let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
86
+ const produces = ['application/json'];
87
+ // give precedence to 'application/json'
88
+ if (produces.indexOf('application/json') >= 0) {
89
+ localVarHeaderParams.Accept = 'application/json';
90
+ }
91
+ else {
92
+ localVarHeaderParams.Accept = produces.join(',');
93
+ }
94
+ let localVarFormParams = {};
95
+ // verify required parameter '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.');
98
+ }
99
+ Object.assign(localVarHeaderParams, options.headers);
100
+ let localVarUseFormData = false;
101
+ let localVarRequestOptions = {
102
+ method: 'POST',
103
+ qs: localVarQueryParameters,
104
+ headers: localVarHeaderParams,
105
+ uri: localVarPath,
106
+ useQuerystring: this._useQuerystring,
107
+ json: true,
108
+ body: models_1.ObjectSerializer.serialize(raidCreateRequest, "RaidCreateRequest")
109
+ };
110
+ let authenticationPromise = Promise.resolve();
111
+ if (this.authentications.bearerAuth.accessToken) {
112
+ authenticationPromise = authenticationPromise.then(() => this.authentications.bearerAuth.applyToRequest(localVarRequestOptions));
113
+ }
114
+ authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
115
+ let interceptorPromise = authenticationPromise;
116
+ for (const interceptor of this.interceptors) {
117
+ interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
118
+ }
119
+ return interceptorPromise.then(() => {
120
+ if (Object.keys(localVarFormParams).length) {
121
+ if (localVarUseFormData) {
122
+ localVarRequestOptions.formData = localVarFormParams;
123
+ }
124
+ else {
125
+ localVarRequestOptions.form = localVarFormParams;
126
+ }
127
+ }
128
+ return new Promise((resolve, reject) => {
129
+ (0, request_1.default)(localVarRequestOptions, (error, response, body) => {
130
+ if (error) {
131
+ reject(error);
132
+ }
133
+ else {
134
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
135
+ body = models_1.ObjectSerializer.deserialize(body, "RaidDto");
136
+ resolve({ response: response, body: body });
137
+ }
138
+ else {
139
+ reject(new apis_1.HttpError(response, body, response.statusCode));
140
+ }
141
+ }
142
+ });
143
+ });
144
+ });
145
+ }
146
+ /**
147
+ *
148
+ * @summary list raids
149
+ * @param servicePointId
150
+ */
151
+ async listRaidsV1(servicePointId, options = { headers: {} }) {
152
+ const localVarPath = this.basePath + '/raid';
153
+ let localVarQueryParameters = {};
154
+ let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
155
+ const produces = ['application/json'];
156
+ // give precedence to 'application/json'
157
+ if (produces.indexOf('application/json') >= 0) {
158
+ localVarHeaderParams.Accept = 'application/json';
159
+ }
160
+ else {
161
+ localVarHeaderParams.Accept = produces.join(',');
162
+ }
163
+ let localVarFormParams = {};
164
+ if (servicePointId !== undefined) {
165
+ localVarQueryParameters['servicePointId'] = models_1.ObjectSerializer.serialize(servicePointId, "number");
166
+ }
167
+ Object.assign(localVarHeaderParams, options.headers);
168
+ let localVarUseFormData = false;
169
+ let localVarRequestOptions = {
170
+ method: 'GET',
171
+ qs: localVarQueryParameters,
172
+ headers: localVarHeaderParams,
173
+ uri: localVarPath,
174
+ useQuerystring: this._useQuerystring,
175
+ json: true,
176
+ };
177
+ let authenticationPromise = Promise.resolve();
178
+ if (this.authentications.bearerAuth.accessToken) {
179
+ authenticationPromise = authenticationPromise.then(() => this.authentications.bearerAuth.applyToRequest(localVarRequestOptions));
180
+ }
181
+ authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
182
+ let interceptorPromise = authenticationPromise;
183
+ for (const interceptor of this.interceptors) {
184
+ interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
185
+ }
186
+ return interceptorPromise.then(() => {
187
+ if (Object.keys(localVarFormParams).length) {
188
+ if (localVarUseFormData) {
189
+ localVarRequestOptions.formData = localVarFormParams;
190
+ }
191
+ else {
192
+ localVarRequestOptions.form = localVarFormParams;
193
+ }
194
+ }
195
+ return new Promise((resolve, reject) => {
196
+ (0, request_1.default)(localVarRequestOptions, (error, response, body) => {
197
+ if (error) {
198
+ reject(error);
199
+ }
200
+ else {
201
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
202
+ body = models_1.ObjectSerializer.deserialize(body, "Array<RaidDto>");
203
+ resolve({ response: response, body: body });
204
+ }
205
+ else {
206
+ reject(new apis_1.HttpError(response, body, response.statusCode));
207
+ }
208
+ }
209
+ });
210
+ });
211
+ });
212
+ }
213
+ /**
214
+ *
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
218
+ */
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)));
223
+ let localVarQueryParameters = {};
224
+ let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
225
+ const produces = ['application/json'];
226
+ // give precedence to 'application/json'
227
+ if (produces.indexOf('application/json') >= 0) {
228
+ localVarHeaderParams.Accept = 'application/json';
229
+ }
230
+ else {
231
+ localVarHeaderParams.Accept = produces.join(',');
232
+ }
233
+ 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.');
241
+ }
242
+ Object.assign(localVarHeaderParams, options.headers);
243
+ let localVarUseFormData = false;
244
+ let localVarRequestOptions = {
245
+ method: 'GET',
246
+ qs: localVarQueryParameters,
247
+ headers: localVarHeaderParams,
248
+ uri: localVarPath,
249
+ useQuerystring: this._useQuerystring,
250
+ json: true,
251
+ };
252
+ let authenticationPromise = Promise.resolve();
253
+ if (this.authentications.bearerAuth.accessToken) {
254
+ authenticationPromise = authenticationPromise.then(() => this.authentications.bearerAuth.applyToRequest(localVarRequestOptions));
255
+ }
256
+ authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
257
+ let interceptorPromise = authenticationPromise;
258
+ for (const interceptor of this.interceptors) {
259
+ interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
260
+ }
261
+ return interceptorPromise.then(() => {
262
+ if (Object.keys(localVarFormParams).length) {
263
+ if (localVarUseFormData) {
264
+ localVarRequestOptions.formData = localVarFormParams;
265
+ }
266
+ else {
267
+ localVarRequestOptions.form = localVarFormParams;
268
+ }
269
+ }
270
+ return new Promise((resolve, reject) => {
271
+ (0, request_1.default)(localVarRequestOptions, (error, response, body) => {
272
+ if (error) {
273
+ reject(error);
274
+ }
275
+ else {
276
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
277
+ body = models_1.ObjectSerializer.deserialize(body, "RaidDto");
278
+ resolve({ response: response, body: body });
279
+ }
280
+ else {
281
+ reject(new apis_1.HttpError(response, body, response.statusCode));
282
+ }
283
+ }
284
+ });
285
+ });
286
+ });
287
+ }
288
+ /**
289
+ *
290
+ * @param prefix Prefix of the raid handle
291
+ * @param suffix Suffix of the raid handle
292
+ * @param raidUpdateRequest
293
+ */
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)));
298
+ let localVarQueryParameters = {};
299
+ let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
300
+ const produces = ['application/json'];
301
+ // give precedence to 'application/json'
302
+ if (produces.indexOf('application/json') >= 0) {
303
+ localVarHeaderParams.Accept = 'application/json';
304
+ }
305
+ else {
306
+ localVarHeaderParams.Accept = produces.join(',');
307
+ }
308
+ 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.');
316
+ }
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.');
320
+ }
321
+ Object.assign(localVarHeaderParams, options.headers);
322
+ let localVarUseFormData = false;
323
+ let localVarRequestOptions = {
324
+ method: 'PUT',
325
+ qs: localVarQueryParameters,
326
+ headers: localVarHeaderParams,
327
+ uri: localVarPath,
328
+ useQuerystring: this._useQuerystring,
329
+ json: true,
330
+ body: models_1.ObjectSerializer.serialize(raidUpdateRequest, "RaidUpdateRequest")
331
+ };
332
+ let authenticationPromise = Promise.resolve();
333
+ if (this.authentications.bearerAuth.accessToken) {
334
+ authenticationPromise = authenticationPromise.then(() => this.authentications.bearerAuth.applyToRequest(localVarRequestOptions));
335
+ }
336
+ authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
337
+ let interceptorPromise = authenticationPromise;
338
+ for (const interceptor of this.interceptors) {
339
+ interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
340
+ }
341
+ return interceptorPromise.then(() => {
342
+ if (Object.keys(localVarFormParams).length) {
343
+ if (localVarUseFormData) {
344
+ localVarRequestOptions.formData = localVarFormParams;
345
+ }
346
+ else {
347
+ localVarRequestOptions.form = localVarFormParams;
348
+ }
349
+ }
350
+ return new Promise((resolve, reject) => {
351
+ (0, request_1.default)(localVarRequestOptions, (error, response, body) => {
352
+ if (error) {
353
+ reject(error);
354
+ }
355
+ else {
356
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
357
+ body = models_1.ObjectSerializer.deserialize(body, "RaidDto");
358
+ resolve({ response: response, body: body });
359
+ }
360
+ else {
361
+ reject(new apis_1.HttpError(response, body, response.statusCode));
362
+ }
363
+ }
364
+ });
365
+ });
366
+ });
367
+ }
368
+ }
369
+ exports.RaidoStableV1Api = RaidoStableV1Api;
@@ -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 (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.
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.UnauthzExperimentalApi = exports.UnauthzExperimentalApiApiKeys = void 0;
17
+ exports.UnapprovedExperimentalApi = exports.UnapprovedExperimentalApiApiKeys = 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 UnauthzExperimentalApiApiKeys;
27
- (function (UnauthzExperimentalApiApiKeys) {
28
- })(UnauthzExperimentalApiApiKeys = exports.UnauthzExperimentalApiApiKeys || (exports.UnauthzExperimentalApiApiKeys = {}));
29
- class UnauthzExperimentalApi {
26
+ var UnapprovedExperimentalApiApiKeys;
27
+ (function (UnapprovedExperimentalApiApiKeys) {
28
+ })(UnapprovedExperimentalApiApiKeys = exports.UnapprovedExperimentalApiApiKeys || (exports.UnapprovedExperimentalApiApiKeys = {}));
29
+ class UnapprovedExperimentalApi {
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,21 +66,21 @@ class UnauthzExperimentalApi {
66
66
  this.authentications.default = auth;
67
67
  }
68
68
  setApiKey(key, value) {
69
- this.authentications[UnauthzExperimentalApiApiKeys[key]].apiKey = value;
69
+ this.authentications[UnapprovedExperimentalApiApiKeys[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 create or update an authz request
79
+ * @summary create or update an authz-request
80
80
  * @param updateAuthzRequest
81
81
  */
82
- async updateRequestAuthz(updateAuthzRequest, options = { headers: {} }) {
83
- const localVarPath = this.basePath + '/v2/public/request-authz/v1';
82
+ async updateAuthzRequest(updateAuthzRequest, options = { headers: {} }) {
83
+ const localVarPath = this.basePath + '/v2/public/authz-request/v1';
84
84
  let localVarQueryParameters = {};
85
85
  let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
86
86
  const produces = ['application/json'];
@@ -94,7 +94,7 @@ class UnauthzExperimentalApi {
94
94
  let localVarFormParams = {};
95
95
  // verify required parameter 'updateAuthzRequest' is not null or undefined
96
96
  if (updateAuthzRequest === null || updateAuthzRequest === undefined) {
97
- throw new Error('Required parameter updateAuthzRequest was null or undefined when calling updateRequestAuthz.');
97
+ throw new Error('Required parameter updateAuthzRequest was null or undefined when calling updateAuthzRequest.');
98
98
  }
99
99
  Object.assign(localVarHeaderParams, options.headers);
100
100
  let localVarUseFormData = false;
@@ -108,8 +108,8 @@ class UnauthzExperimentalApi {
108
108
  body: models_1.ObjectSerializer.serialize(updateAuthzRequest, "UpdateAuthzRequest")
109
109
  };
110
110
  let authenticationPromise = Promise.resolve();
111
- if (this.authentications.BearerAuth.accessToken) {
112
- authenticationPromise = authenticationPromise.then(() => this.authentications.BearerAuth.applyToRequest(localVarRequestOptions));
111
+ if (this.authentications.bearerAuth.accessToken) {
112
+ authenticationPromise = authenticationPromise.then(() => this.authentications.bearerAuth.applyToRequest(localVarRequestOptions));
113
113
  }
114
114
  authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
115
115
  let interceptorPromise = authenticationPromise;
@@ -144,4 +144,4 @@ class UnauthzExperimentalApi {
144
144
  });
145
145
  }
146
146
  }
147
- exports.UnauthzExperimentalApi = UnauthzExperimentalApi;
147
+ exports.UnapprovedExperimentalApi = UnapprovedExperimentalApi;
@@ -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 (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.
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
+ 'accessStatement';
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": "AccessTypeWithSchemaUri"
28
+ },
29
+ {
30
+ "name": "accessStatement",
31
+ "baseName": "accessStatement",
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,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 (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.
5
5
  *
6
6
  * The version of the OpenAPI document: 2.0.0
7
7
  * Contact: contact@raid.org
@@ -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 (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.
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 (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.
5
5
  *
6
6
  * The version of the OpenAPI document: 2.0.0
7
7
  * Contact: contact@raid.org
@@ -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 (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.
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.AccessTypeWithSchemaUri = void 0;
15
+ class AccessTypeWithSchemaUri {
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 AccessTypeWithSchemaUri.attributeTypeMap;
33
+ }
34
+ }
35
+ exports.AccessTypeWithSchemaUri = AccessTypeWithSchemaUri;
@@ -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 (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.
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;