@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
package/README.md CHANGED
@@ -1,3 +1,3 @@
1
1
  Generate using `npm run generate`
2
2
 
3
- Currently manually deployed to NPM registry.
3
+ Currently manually deployed to the NPM registry.
@@ -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
@@ -19,7 +19,7 @@ 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
  // ===============================================
@@ -32,7 +32,7 @@ class AdminExperimentalApi {
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) {
@@ -69,7 +69,7 @@ class AdminExperimentalApi {
69
69
  this.authentications[AdminExperimentalApiApiKeys[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);
@@ -108,8 +108,8 @@ class AdminExperimentalApi {
108
108
  body: models_1.ObjectSerializer.serialize(generateApiTokenRequest, "GenerateApiTokenRequest")
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;
@@ -177,8 +177,8 @@ class AdminExperimentalApi {
177
177
  json: true,
178
178
  };
179
179
  let authenticationPromise = Promise.resolve();
180
- if (this.authentications.BearerAuth.accessToken) {
181
- authenticationPromise = authenticationPromise.then(() => this.authentications.BearerAuth.applyToRequest(localVarRequestOptions));
180
+ if (this.authentications.bearerAuth.accessToken) {
181
+ authenticationPromise = authenticationPromise.then(() => this.authentications.bearerAuth.applyToRequest(localVarRequestOptions));
182
182
  }
183
183
  authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
184
184
  let interceptorPromise = authenticationPromise;
@@ -246,8 +246,8 @@ class AdminExperimentalApi {
246
246
  json: true,
247
247
  };
248
248
  let authenticationPromise = Promise.resolve();
249
- if (this.authentications.BearerAuth.accessToken) {
250
- authenticationPromise = authenticationPromise.then(() => this.authentications.BearerAuth.applyToRequest(localVarRequestOptions));
249
+ if (this.authentications.bearerAuth.accessToken) {
250
+ authenticationPromise = authenticationPromise.then(() => this.authentications.bearerAuth.applyToRequest(localVarRequestOptions));
251
251
  }
252
252
  authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
253
253
  let interceptorPromise = authenticationPromise;
@@ -309,8 +309,8 @@ class AdminExperimentalApi {
309
309
  json: true,
310
310
  };
311
311
  let authenticationPromise = Promise.resolve();
312
- if (this.authentications.BearerAuth.accessToken) {
313
- authenticationPromise = authenticationPromise.then(() => this.authentications.BearerAuth.applyToRequest(localVarRequestOptions));
312
+ if (this.authentications.bearerAuth.accessToken) {
313
+ authenticationPromise = authenticationPromise.then(() => this.authentications.bearerAuth.applyToRequest(localVarRequestOptions));
314
314
  }
315
315
  authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
316
316
  let interceptorPromise = authenticationPromise;
@@ -345,7 +345,7 @@ class AdminExperimentalApi {
345
345
  });
346
346
  }
347
347
  /**
348
- *
348
+ * Returns both enabled and disabled service-points. Returns up to MAX_EXPERIMENTAL_RECORDS results.
349
349
  * @summary list service point data that authorized users can see
350
350
  */
351
351
  async listServicePoint(options = { headers: {} }) {
@@ -372,8 +372,8 @@ class AdminExperimentalApi {
372
372
  json: true,
373
373
  };
374
374
  let authenticationPromise = Promise.resolve();
375
- if (this.authentications.BearerAuth.accessToken) {
376
- authenticationPromise = authenticationPromise.then(() => this.authentications.BearerAuth.applyToRequest(localVarRequestOptions));
375
+ if (this.authentications.bearerAuth.accessToken) {
376
+ authenticationPromise = authenticationPromise.then(() => this.authentications.bearerAuth.applyToRequest(localVarRequestOptions));
377
377
  }
378
378
  authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
379
379
  let interceptorPromise = authenticationPromise;
@@ -441,8 +441,8 @@ class AdminExperimentalApi {
441
441
  body: models_1.ObjectSerializer.serialize(migrateLegacyRaidRequest, "MigrateLegacyRaidRequest")
442
442
  };
443
443
  let authenticationPromise = Promise.resolve();
444
- if (this.authentications.BearerAuth.accessToken) {
445
- authenticationPromise = authenticationPromise.then(() => this.authentications.BearerAuth.applyToRequest(localVarRequestOptions));
444
+ if (this.authentications.bearerAuth.accessToken) {
445
+ authenticationPromise = authenticationPromise.then(() => this.authentications.bearerAuth.applyToRequest(localVarRequestOptions));
446
446
  }
447
447
  authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
448
448
  let interceptorPromise = authenticationPromise;
@@ -510,8 +510,8 @@ class AdminExperimentalApi {
510
510
  json: true,
511
511
  };
512
512
  let authenticationPromise = Promise.resolve();
513
- if (this.authentications.BearerAuth.accessToken) {
514
- authenticationPromise = authenticationPromise.then(() => this.authentications.BearerAuth.applyToRequest(localVarRequestOptions));
513
+ if (this.authentications.bearerAuth.accessToken) {
514
+ authenticationPromise = authenticationPromise.then(() => this.authentications.bearerAuth.applyToRequest(localVarRequestOptions));
515
515
  }
516
516
  authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
517
517
  let interceptorPromise = authenticationPromise;
@@ -579,8 +579,8 @@ class AdminExperimentalApi {
579
579
  json: true,
580
580
  };
581
581
  let authenticationPromise = Promise.resolve();
582
- if (this.authentications.BearerAuth.accessToken) {
583
- authenticationPromise = authenticationPromise.then(() => this.authentications.BearerAuth.applyToRequest(localVarRequestOptions));
582
+ if (this.authentications.bearerAuth.accessToken) {
583
+ authenticationPromise = authenticationPromise.then(() => this.authentications.bearerAuth.applyToRequest(localVarRequestOptions));
584
584
  }
585
585
  authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
586
586
  let interceptorPromise = authenticationPromise;
@@ -648,8 +648,8 @@ class AdminExperimentalApi {
648
648
  json: true,
649
649
  };
650
650
  let authenticationPromise = Promise.resolve();
651
- if (this.authentications.BearerAuth.accessToken) {
652
- authenticationPromise = authenticationPromise.then(() => this.authentications.BearerAuth.applyToRequest(localVarRequestOptions));
651
+ if (this.authentications.bearerAuth.accessToken) {
652
+ authenticationPromise = authenticationPromise.then(() => this.authentications.bearerAuth.applyToRequest(localVarRequestOptions));
653
653
  }
654
654
  authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
655
655
  let interceptorPromise = authenticationPromise;
@@ -717,8 +717,8 @@ class AdminExperimentalApi {
717
717
  json: true,
718
718
  };
719
719
  let authenticationPromise = Promise.resolve();
720
- if (this.authentications.BearerAuth.accessToken) {
721
- authenticationPromise = authenticationPromise.then(() => this.authentications.BearerAuth.applyToRequest(localVarRequestOptions));
720
+ if (this.authentications.bearerAuth.accessToken) {
721
+ authenticationPromise = authenticationPromise.then(() => this.authentications.bearerAuth.applyToRequest(localVarRequestOptions));
722
722
  }
723
723
  authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
724
724
  let interceptorPromise = authenticationPromise;
@@ -786,8 +786,8 @@ class AdminExperimentalApi {
786
786
  json: true,
787
787
  };
788
788
  let authenticationPromise = Promise.resolve();
789
- if (this.authentications.BearerAuth.accessToken) {
790
- authenticationPromise = authenticationPromise.then(() => this.authentications.BearerAuth.applyToRequest(localVarRequestOptions));
789
+ if (this.authentications.bearerAuth.accessToken) {
790
+ authenticationPromise = authenticationPromise.then(() => this.authentications.bearerAuth.applyToRequest(localVarRequestOptions));
791
791
  }
792
792
  authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
793
793
  let interceptorPromise = authenticationPromise;
@@ -855,8 +855,8 @@ class AdminExperimentalApi {
855
855
  body: models_1.ObjectSerializer.serialize(apiKey, "ApiKey")
856
856
  };
857
857
  let authenticationPromise = Promise.resolve();
858
- if (this.authentications.BearerAuth.accessToken) {
859
- authenticationPromise = authenticationPromise.then(() => this.authentications.BearerAuth.applyToRequest(localVarRequestOptions));
858
+ if (this.authentications.bearerAuth.accessToken) {
859
+ authenticationPromise = authenticationPromise.then(() => this.authentications.bearerAuth.applyToRequest(localVarRequestOptions));
860
860
  }
861
861
  authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
862
862
  let interceptorPromise = authenticationPromise;
@@ -924,8 +924,8 @@ class AdminExperimentalApi {
924
924
  body: models_1.ObjectSerializer.serialize(appUser, "AppUser")
925
925
  };
926
926
  let authenticationPromise = Promise.resolve();
927
- if (this.authentications.BearerAuth.accessToken) {
928
- authenticationPromise = authenticationPromise.then(() => this.authentications.BearerAuth.applyToRequest(localVarRequestOptions));
927
+ if (this.authentications.bearerAuth.accessToken) {
928
+ authenticationPromise = authenticationPromise.then(() => this.authentications.bearerAuth.applyToRequest(localVarRequestOptions));
929
929
  }
930
930
  authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
931
931
  let interceptorPromise = authenticationPromise;
@@ -985,8 +985,8 @@ class AdminExperimentalApi {
985
985
  body: models_1.ObjectSerializer.serialize(updateAuthzRequestStatus, "UpdateAuthzRequestStatus")
986
986
  };
987
987
  let authenticationPromise = Promise.resolve();
988
- if (this.authentications.BearerAuth.accessToken) {
989
- authenticationPromise = authenticationPromise.then(() => this.authentications.BearerAuth.applyToRequest(localVarRequestOptions));
988
+ if (this.authentications.bearerAuth.accessToken) {
989
+ authenticationPromise = authenticationPromise.then(() => this.authentications.bearerAuth.applyToRequest(localVarRequestOptions));
990
990
  }
991
991
  authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
992
992
  let interceptorPromise = authenticationPromise;
@@ -1053,8 +1053,8 @@ class AdminExperimentalApi {
1053
1053
  body: models_1.ObjectSerializer.serialize(servicePoint, "ServicePoint")
1054
1054
  };
1055
1055
  let authenticationPromise = Promise.resolve();
1056
- if (this.authentications.BearerAuth.accessToken) {
1057
- authenticationPromise = authenticationPromise.then(() => this.authentications.BearerAuth.applyToRequest(localVarRequestOptions));
1056
+ if (this.authentications.bearerAuth.accessToken) {
1057
+ authenticationPromise = authenticationPromise.then(() => this.authentications.bearerAuth.applyToRequest(localVarRequestOptions));
1058
1058
  }
1059
1059
  authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
1060
1060
  let interceptorPromise = authenticationPromise;
package/dist/api/apis.js CHANGED
@@ -21,8 +21,10 @@ __exportStar(require("./basicRaidExperimentalApi"), exports);
21
21
  const basicRaidExperimentalApi_1 = require("./basicRaidExperimentalApi");
22
22
  __exportStar(require("./publicExperimentalApi"), exports);
23
23
  const publicExperimentalApi_1 = require("./publicExperimentalApi");
24
- __exportStar(require("./unauthzExperimentalApi"), exports);
25
- const unauthzExperimentalApi_1 = require("./unauthzExperimentalApi");
24
+ __exportStar(require("./raidoStableV1Api"), exports);
25
+ const raidoStableV1Api_1 = require("./raidoStableV1Api");
26
+ __exportStar(require("./unapprovedExperimentalApi"), exports);
27
+ const unapprovedExperimentalApi_1 = require("./unapprovedExperimentalApi");
26
28
  class HttpError extends Error {
27
29
  response;
28
30
  body;
@@ -36,4 +38,4 @@ class HttpError extends Error {
36
38
  }
37
39
  }
38
40
  exports.HttpError = HttpError;
39
- exports.APIS = [adminExperimentalApi_1.AdminExperimentalApi, basicRaidExperimentalApi_1.BasicRaidExperimentalApi, publicExperimentalApi_1.PublicExperimentalApi, unauthzExperimentalApi_1.UnauthzExperimentalApi];
41
+ exports.APIS = [adminExperimentalApi_1.AdminExperimentalApi, basicRaidExperimentalApi_1.BasicRaidExperimentalApi, publicExperimentalApi_1.PublicExperimentalApi, raidoStableV1Api_1.RaidoStableV1Api, unapprovedExperimentalApi_1.UnapprovedExperimentalApi];
@@ -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
@@ -19,7 +19,7 @@ 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
  // ===============================================
@@ -32,7 +32,7 @@ class BasicRaidExperimentalApi {
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) {
@@ -69,7 +69,7 @@ class BasicRaidExperimentalApi {
69
69
  this.authentications[BasicRaidExperimentalApiApiKeys[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);
@@ -108,8 +108,8 @@ class BasicRaidExperimentalApi {
108
108
  body: models_1.ObjectSerializer.serialize(raidListRequestV2, "RaidListRequestV2")
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;
@@ -143,6 +143,75 @@ class BasicRaidExperimentalApi {
143
143
  });
144
144
  });
145
145
  }
146
+ /**
147
+ *
148
+ * @summary list raids
149
+ * @param raidListRequestV2
150
+ */
151
+ async listRaidV3(raidListRequestV2, options = { headers: {} }) {
152
+ const localVarPath = this.basePath + '/v2/experimental/list-raid/v3';
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
+ // verify required parameter 'raidListRequestV2' is not null or undefined
165
+ if (raidListRequestV2 === null || raidListRequestV2 === undefined) {
166
+ throw new Error('Required parameter raidListRequestV2 was null or undefined when calling listRaidV3.');
167
+ }
168
+ Object.assign(localVarHeaderParams, options.headers);
169
+ let localVarUseFormData = false;
170
+ let localVarRequestOptions = {
171
+ method: 'POST',
172
+ qs: localVarQueryParameters,
173
+ headers: localVarHeaderParams,
174
+ uri: localVarPath,
175
+ useQuerystring: this._useQuerystring,
176
+ json: true,
177
+ body: models_1.ObjectSerializer.serialize(raidListRequestV2, "RaidListRequestV2")
178
+ };
179
+ let authenticationPromise = Promise.resolve();
180
+ if (this.authentications.bearerAuth.accessToken) {
181
+ authenticationPromise = authenticationPromise.then(() => this.authentications.bearerAuth.applyToRequest(localVarRequestOptions));
182
+ }
183
+ authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
184
+ let interceptorPromise = authenticationPromise;
185
+ for (const interceptor of this.interceptors) {
186
+ interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
187
+ }
188
+ return interceptorPromise.then(() => {
189
+ if (Object.keys(localVarFormParams).length) {
190
+ if (localVarUseFormData) {
191
+ localVarRequestOptions.formData = localVarFormParams;
192
+ }
193
+ else {
194
+ localVarRequestOptions.form = localVarFormParams;
195
+ }
196
+ }
197
+ return new Promise((resolve, reject) => {
198
+ (0, request_1.default)(localVarRequestOptions, (error, response, body) => {
199
+ if (error) {
200
+ reject(error);
201
+ }
202
+ else {
203
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
204
+ body = models_1.ObjectSerializer.deserialize(body, "Array<RaidListItemV3>");
205
+ resolve({ response: response, body: body });
206
+ }
207
+ else {
208
+ reject(new apis_1.HttpError(response, body, response.statusCode));
209
+ }
210
+ }
211
+ });
212
+ });
213
+ });
214
+ }
146
215
  /**
147
216
  *
148
217
  * @summary mint a raido-metadata-schema-v1 raid
@@ -177,8 +246,8 @@ class BasicRaidExperimentalApi {
177
246
  body: models_1.ObjectSerializer.serialize(mintRaidoSchemaV1Request, "MintRaidoSchemaV1Request")
178
247
  };
179
248
  let authenticationPromise = Promise.resolve();
180
- if (this.authentications.BearerAuth.accessToken) {
181
- authenticationPromise = authenticationPromise.then(() => this.authentications.BearerAuth.applyToRequest(localVarRequestOptions));
249
+ if (this.authentications.bearerAuth.accessToken) {
250
+ authenticationPromise = authenticationPromise.then(() => this.authentications.bearerAuth.applyToRequest(localVarRequestOptions));
182
251
  }
183
252
  authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
184
253
  let interceptorPromise = authenticationPromise;
@@ -246,8 +315,8 @@ class BasicRaidExperimentalApi {
246
315
  body: models_1.ObjectSerializer.serialize(readRaidV2Request, "ReadRaidV2Request")
247
316
  };
248
317
  let authenticationPromise = Promise.resolve();
249
- if (this.authentications.BearerAuth.accessToken) {
250
- authenticationPromise = authenticationPromise.then(() => this.authentications.BearerAuth.applyToRequest(localVarRequestOptions));
318
+ if (this.authentications.bearerAuth.accessToken) {
319
+ authenticationPromise = authenticationPromise.then(() => this.authentications.bearerAuth.applyToRequest(localVarRequestOptions));
251
320
  }
252
321
  authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
253
322
  let interceptorPromise = authenticationPromise;
@@ -315,8 +384,77 @@ class BasicRaidExperimentalApi {
315
384
  body: models_1.ObjectSerializer.serialize(updateRaidoSchemaV1Request, "UpdateRaidoSchemaV1Request")
316
385
  };
317
386
  let authenticationPromise = Promise.resolve();
318
- if (this.authentications.BearerAuth.accessToken) {
319
- authenticationPromise = authenticationPromise.then(() => this.authentications.BearerAuth.applyToRequest(localVarRequestOptions));
387
+ if (this.authentications.bearerAuth.accessToken) {
388
+ authenticationPromise = authenticationPromise.then(() => this.authentications.bearerAuth.applyToRequest(localVarRequestOptions));
389
+ }
390
+ authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
391
+ let interceptorPromise = authenticationPromise;
392
+ for (const interceptor of this.interceptors) {
393
+ interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
394
+ }
395
+ return interceptorPromise.then(() => {
396
+ if (Object.keys(localVarFormParams).length) {
397
+ if (localVarUseFormData) {
398
+ localVarRequestOptions.formData = localVarFormParams;
399
+ }
400
+ else {
401
+ localVarRequestOptions.form = localVarFormParams;
402
+ }
403
+ }
404
+ return new Promise((resolve, reject) => {
405
+ (0, request_1.default)(localVarRequestOptions, (error, response, body) => {
406
+ if (error) {
407
+ reject(error);
408
+ }
409
+ else {
410
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
411
+ body = models_1.ObjectSerializer.deserialize(body, "MintResponse");
412
+ resolve({ response: response, body: body });
413
+ }
414
+ else {
415
+ reject(new apis_1.HttpError(response, body, response.statusCode));
416
+ }
417
+ }
418
+ });
419
+ });
420
+ });
421
+ }
422
+ /**
423
+ *
424
+ * @summary update a raido-metadata-schema-v2 raid
425
+ * @param updateRaidoSchemaV2Request
426
+ */
427
+ async updateRaidoSchemaV2(updateRaidoSchemaV2Request, options = { headers: {} }) {
428
+ const localVarPath = this.basePath + '/v2/experimental/update-raido-schema/v2';
429
+ let localVarQueryParameters = {};
430
+ let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
431
+ const produces = ['application/json'];
432
+ // give precedence to 'application/json'
433
+ if (produces.indexOf('application/json') >= 0) {
434
+ localVarHeaderParams.Accept = 'application/json';
435
+ }
436
+ else {
437
+ localVarHeaderParams.Accept = produces.join(',');
438
+ }
439
+ let localVarFormParams = {};
440
+ // verify required parameter 'updateRaidoSchemaV2Request' is not null or undefined
441
+ if (updateRaidoSchemaV2Request === null || updateRaidoSchemaV2Request === undefined) {
442
+ throw new Error('Required parameter updateRaidoSchemaV2Request was null or undefined when calling updateRaidoSchemaV2.');
443
+ }
444
+ Object.assign(localVarHeaderParams, options.headers);
445
+ let localVarUseFormData = false;
446
+ let localVarRequestOptions = {
447
+ method: 'POST',
448
+ qs: localVarQueryParameters,
449
+ headers: localVarHeaderParams,
450
+ uri: localVarPath,
451
+ useQuerystring: this._useQuerystring,
452
+ json: true,
453
+ body: models_1.ObjectSerializer.serialize(updateRaidoSchemaV2Request, "UpdateRaidoSchemaV2Request")
454
+ };
455
+ let authenticationPromise = Promise.resolve();
456
+ if (this.authentications.bearerAuth.accessToken) {
457
+ authenticationPromise = authenticationPromise.then(() => this.authentications.bearerAuth.applyToRequest(localVarRequestOptions));
320
458
  }
321
459
  authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
322
460
  let interceptorPromise = authenticationPromise;
@@ -384,8 +522,8 @@ class BasicRaidExperimentalApi {
384
522
  body: models_1.ObjectSerializer.serialize(updateRaidoSchemaV1Request, "UpdateRaidoSchemaV1Request")
385
523
  };
386
524
  let authenticationPromise = Promise.resolve();
387
- if (this.authentications.BearerAuth.accessToken) {
388
- authenticationPromise = authenticationPromise.then(() => this.authentications.BearerAuth.applyToRequest(localVarRequestOptions));
525
+ if (this.authentications.bearerAuth.accessToken) {
526
+ authenticationPromise = authenticationPromise.then(() => this.authentications.bearerAuth.applyToRequest(localVarRequestOptions));
389
527
  }
390
528
  authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
391
529
  let interceptorPromise = authenticationPromise;
@@ -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
@@ -19,7 +19,7 @@ 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
  // ===============================================
@@ -32,7 +32,7 @@ class PublicExperimentalApi {
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) {
@@ -69,13 +69,13 @@ class PublicExperimentalApi {
69
69
  this.authentications[PublicExperimentalApiApiKeys[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
+ * Returns only enabled service-points - intended for use on the authz-request page. Note that it is not paginated nor does it have a limit on the number of records it returns. May need to be refactored to something more scalable in future, if we ever have a lot of service-points.
79
79
  * @summary list service point data that un-authn users can see
80
80
  */
81
81
  async publicListServicePoint(options = { headers: {} }) {