@researchdatabox/raido-openapi-generated-node 0.0.1

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 (62) hide show
  1. package/README.md +3 -0
  2. package/dist/api/adminExperimentalApi.js +1092 -0
  3. package/dist/api/apis.js +39 -0
  4. package/dist/api/basicRaidExperimentalApi.js +423 -0
  5. package/dist/api/publicExperimentalApi.js +264 -0
  6. package/dist/api/unauthzExperimentalApi.js +147 -0
  7. package/dist/api.js +19 -0
  8. package/dist/model/accessBlock.js +35 -0
  9. package/dist/model/accessType.js +19 -0
  10. package/dist/model/alternateUrlBlock.js +29 -0
  11. package/dist/model/apiKey.js +74 -0
  12. package/dist/model/appUser.js +83 -0
  13. package/dist/model/appUserExtraV1.js +44 -0
  14. package/dist/model/authzRequestExtraV1.js +104 -0
  15. package/dist/model/authzRequestStatus.js +20 -0
  16. package/dist/model/contributorBlock.js +47 -0
  17. package/dist/model/contributorIdentifierSchemeType.js +18 -0
  18. package/dist/model/contributorPosition.js +47 -0
  19. package/dist/model/contributorPositionRaidMetadataSchemaType.js +22 -0
  20. package/dist/model/contributorPositionSchemeType.js +18 -0
  21. package/dist/model/contributorRole.js +35 -0
  22. package/dist/model/contributorRoleCreditNisoOrgType.js +31 -0
  23. package/dist/model/contributorRoleSchemeType.js +18 -0
  24. package/dist/model/datesBlock.js +35 -0
  25. package/dist/model/descriptionBlock.js +35 -0
  26. package/dist/model/descriptionType.js +19 -0
  27. package/dist/model/generateApiTokenRequest.js +29 -0
  28. package/dist/model/generateApiTokenResponse.js +35 -0
  29. package/dist/model/idBlock.js +65 -0
  30. package/dist/model/legacyMetadataSchemaV1.js +68 -0
  31. package/dist/model/migrateLegacyRaidRequest.js +35 -0
  32. package/dist/model/migrateLegacyRaidRequestMintRequest.js +41 -0
  33. package/dist/model/mintRaidoSchemaV1Request.js +38 -0
  34. package/dist/model/mintRaidoSchemaV1RequestMintRequest.js +32 -0
  35. package/dist/model/mintResponse.js +41 -0
  36. package/dist/model/models.js +374 -0
  37. package/dist/model/organisationBlock.js +41 -0
  38. package/dist/model/organisationIdentifierSchemeType.js +18 -0
  39. package/dist/model/organisationRole.js +47 -0
  40. package/dist/model/organisationRoleSchemeType.js +18 -0
  41. package/dist/model/organisationRoleType.js +22 -0
  42. package/dist/model/publicClosedMetadataSchemaV1.js +41 -0
  43. package/dist/model/publicRaidMetadataSchemaV1.js +80 -0
  44. package/dist/model/publicReadRaidMetadataResponseV1.js +80 -0
  45. package/dist/model/publicReadRaidResponseV3.js +56 -0
  46. package/dist/model/publicServicePoint.js +38 -0
  47. package/dist/model/raidListItemV2.js +53 -0
  48. package/dist/model/raidListRequestV2.js +35 -0
  49. package/dist/model/raidoMetadataSchemaV1.js +80 -0
  50. package/dist/model/raidoMetaschema.js +22 -0
  51. package/dist/model/readRaidResponseV2.js +71 -0
  52. package/dist/model/readRaidV2Request.js +29 -0
  53. package/dist/model/servicePoint.js +62 -0
  54. package/dist/model/titleBlock.js +47 -0
  55. package/dist/model/titleType.js +19 -0
  56. package/dist/model/updateAuthzRequest.js +38 -0
  57. package/dist/model/updateAuthzRequestStatus.js +44 -0
  58. package/dist/model/updateAuthzResponse.js +29 -0
  59. package/dist/model/updateRaidoSchemaV1Request.js +29 -0
  60. package/dist/model/validationFailure.js +41 -0
  61. package/dist/model/versionResult.js +47 -0
  62. package/package.json +24 -0
@@ -0,0 +1,71 @@
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 this project).
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.ReadRaidResponseV2 = void 0;
15
+ class ReadRaidResponseV2 {
16
+ 'handle';
17
+ 'servicePointId';
18
+ 'servicePointName';
19
+ 'primaryTitle';
20
+ 'startDate';
21
+ 'createDate';
22
+ 'url';
23
+ 'metadata';
24
+ static discriminator = undefined;
25
+ static attributeTypeMap = [
26
+ {
27
+ "name": "handle",
28
+ "baseName": "handle",
29
+ "type": "string"
30
+ },
31
+ {
32
+ "name": "servicePointId",
33
+ "baseName": "servicePointId",
34
+ "type": "number"
35
+ },
36
+ {
37
+ "name": "servicePointName",
38
+ "baseName": "servicePointName",
39
+ "type": "string"
40
+ },
41
+ {
42
+ "name": "primaryTitle",
43
+ "baseName": "primaryTitle",
44
+ "type": "string"
45
+ },
46
+ {
47
+ "name": "startDate",
48
+ "baseName": "startDate",
49
+ "type": "string"
50
+ },
51
+ {
52
+ "name": "createDate",
53
+ "baseName": "createDate",
54
+ "type": "Date"
55
+ },
56
+ {
57
+ "name": "url",
58
+ "baseName": "url",
59
+ "type": "string"
60
+ },
61
+ {
62
+ "name": "metadata",
63
+ "baseName": "metadata",
64
+ "type": "object"
65
+ }
66
+ ];
67
+ static getAttributeTypeMap() {
68
+ return ReadRaidResponseV2.attributeTypeMap;
69
+ }
70
+ }
71
+ exports.ReadRaidResponseV2 = ReadRaidResponseV2;
@@ -0,0 +1,29 @@
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 this project).
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.ReadRaidV2Request = void 0;
15
+ class ReadRaidV2Request {
16
+ 'handle';
17
+ static discriminator = undefined;
18
+ static attributeTypeMap = [
19
+ {
20
+ "name": "handle",
21
+ "baseName": "handle",
22
+ "type": "string"
23
+ }
24
+ ];
25
+ static getAttributeTypeMap() {
26
+ return ReadRaidV2Request.attributeTypeMap;
27
+ }
28
+ }
29
+ exports.ReadRaidV2Request = ReadRaidV2Request;
@@ -0,0 +1,62 @@
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 this project).
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.ServicePoint = void 0;
15
+ /**
16
+ * data that any member of service-point and operators can see
17
+ */
18
+ class ServicePoint {
19
+ 'id';
20
+ 'name';
21
+ 'searchContent';
22
+ 'techEmail';
23
+ 'adminEmail';
24
+ 'enabled';
25
+ static discriminator = undefined;
26
+ static attributeTypeMap = [
27
+ {
28
+ "name": "id",
29
+ "baseName": "id",
30
+ "type": "number"
31
+ },
32
+ {
33
+ "name": "name",
34
+ "baseName": "name",
35
+ "type": "string"
36
+ },
37
+ {
38
+ "name": "searchContent",
39
+ "baseName": "searchContent",
40
+ "type": "string"
41
+ },
42
+ {
43
+ "name": "techEmail",
44
+ "baseName": "techEmail",
45
+ "type": "string"
46
+ },
47
+ {
48
+ "name": "adminEmail",
49
+ "baseName": "adminEmail",
50
+ "type": "string"
51
+ },
52
+ {
53
+ "name": "enabled",
54
+ "baseName": "enabled",
55
+ "type": "boolean"
56
+ }
57
+ ];
58
+ static getAttributeTypeMap() {
59
+ return ServicePoint.attributeTypeMap;
60
+ }
61
+ }
62
+ exports.ServicePoint = ServicePoint;
@@ -0,0 +1,47 @@
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 this project).
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.TitleBlock = void 0;
15
+ class TitleBlock {
16
+ 'title';
17
+ 'type';
18
+ 'startDate';
19
+ 'endDate';
20
+ static discriminator = undefined;
21
+ static attributeTypeMap = [
22
+ {
23
+ "name": "title",
24
+ "baseName": "title",
25
+ "type": "string"
26
+ },
27
+ {
28
+ "name": "type",
29
+ "baseName": "type",
30
+ "type": "TitleType"
31
+ },
32
+ {
33
+ "name": "startDate",
34
+ "baseName": "startDate",
35
+ "type": "string"
36
+ },
37
+ {
38
+ "name": "endDate",
39
+ "baseName": "endDate",
40
+ "type": "string"
41
+ }
42
+ ];
43
+ static getAttributeTypeMap() {
44
+ return TitleBlock.attributeTypeMap;
45
+ }
46
+ }
47
+ exports.TitleBlock = TitleBlock;
@@ -0,0 +1,19 @@
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 this project).
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.TitleType = void 0;
15
+ var TitleType;
16
+ (function (TitleType) {
17
+ TitleType[TitleType["PrimaryTitle"] = 'Primary Title'] = "PrimaryTitle";
18
+ TitleType[TitleType["AlternativeTitle"] = 'Alternative Title'] = "AlternativeTitle";
19
+ })(TitleType = exports.TitleType || (exports.TitleType = {}));
@@ -0,0 +1,38 @@
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 this project).
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.UpdateAuthzRequest = void 0;
15
+ /**
16
+ * authorization request
17
+ */
18
+ class UpdateAuthzRequest {
19
+ 'servicePointId';
20
+ 'comments';
21
+ static discriminator = undefined;
22
+ static attributeTypeMap = [
23
+ {
24
+ "name": "servicePointId",
25
+ "baseName": "servicePointId",
26
+ "type": "number"
27
+ },
28
+ {
29
+ "name": "comments",
30
+ "baseName": "comments",
31
+ "type": "string"
32
+ }
33
+ ];
34
+ static getAttributeTypeMap() {
35
+ return UpdateAuthzRequest.attributeTypeMap;
36
+ }
37
+ }
38
+ exports.UpdateAuthzRequest = UpdateAuthzRequest;
@@ -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 this project).
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.UpdateAuthzRequestStatus = void 0;
15
+ /**
16
+ * approve/reject a request, role is not set if rejecting.
17
+ */
18
+ class UpdateAuthzRequestStatus {
19
+ 'authzRequestId';
20
+ 'status';
21
+ 'role';
22
+ static discriminator = undefined;
23
+ static attributeTypeMap = [
24
+ {
25
+ "name": "authzRequestId",
26
+ "baseName": "authzRequestId",
27
+ "type": "number"
28
+ },
29
+ {
30
+ "name": "status",
31
+ "baseName": "status",
32
+ "type": "AuthzRequestStatus"
33
+ },
34
+ {
35
+ "name": "role",
36
+ "baseName": "role",
37
+ "type": "string"
38
+ }
39
+ ];
40
+ static getAttributeTypeMap() {
41
+ return UpdateAuthzRequestStatus.attributeTypeMap;
42
+ }
43
+ }
44
+ exports.UpdateAuthzRequestStatus = UpdateAuthzRequestStatus;
@@ -0,0 +1,29 @@
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 this project).
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.UpdateAuthzResponse = void 0;
15
+ class UpdateAuthzResponse {
16
+ 'status';
17
+ static discriminator = undefined;
18
+ static attributeTypeMap = [
19
+ {
20
+ "name": "status",
21
+ "baseName": "status",
22
+ "type": "AuthzRequestStatus"
23
+ }
24
+ ];
25
+ static getAttributeTypeMap() {
26
+ return UpdateAuthzResponse.attributeTypeMap;
27
+ }
28
+ }
29
+ exports.UpdateAuthzResponse = UpdateAuthzResponse;
@@ -0,0 +1,29 @@
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 this project).
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.UpdateRaidoSchemaV1Request = void 0;
15
+ class UpdateRaidoSchemaV1Request {
16
+ 'metadata';
17
+ static discriminator = undefined;
18
+ static attributeTypeMap = [
19
+ {
20
+ "name": "metadata",
21
+ "baseName": "metadata",
22
+ "type": "RaidoMetadataSchemaV1"
23
+ }
24
+ ];
25
+ static getAttributeTypeMap() {
26
+ return UpdateRaidoSchemaV1Request.attributeTypeMap;
27
+ }
28
+ }
29
+ exports.UpdateRaidoSchemaV1Request = UpdateRaidoSchemaV1Request;
@@ -0,0 +1,41 @@
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 this project).
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.ValidationFailure = void 0;
15
+ class ValidationFailure {
16
+ 'fieldId';
17
+ 'errorType';
18
+ 'message';
19
+ static discriminator = undefined;
20
+ static attributeTypeMap = [
21
+ {
22
+ "name": "fieldId",
23
+ "baseName": "fieldId",
24
+ "type": "string"
25
+ },
26
+ {
27
+ "name": "errorType",
28
+ "baseName": "errorType",
29
+ "type": "string"
30
+ },
31
+ {
32
+ "name": "message",
33
+ "baseName": "message",
34
+ "type": "string"
35
+ }
36
+ ];
37
+ static getAttributeTypeMap() {
38
+ return ValidationFailure.attributeTypeMap;
39
+ }
40
+ }
41
+ exports.ValidationFailure = ValidationFailure;
@@ -0,0 +1,47 @@
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 this project).
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.VersionResult = void 0;
15
+ class VersionResult {
16
+ 'buildVersion';
17
+ 'buildCommitId';
18
+ 'buildDate';
19
+ 'startDate';
20
+ static discriminator = undefined;
21
+ static attributeTypeMap = [
22
+ {
23
+ "name": "buildVersion",
24
+ "baseName": "buildVersion",
25
+ "type": "string"
26
+ },
27
+ {
28
+ "name": "buildCommitId",
29
+ "baseName": "buildCommitId",
30
+ "type": "string"
31
+ },
32
+ {
33
+ "name": "buildDate",
34
+ "baseName": "buildDate",
35
+ "type": "string"
36
+ },
37
+ {
38
+ "name": "startDate",
39
+ "baseName": "startDate",
40
+ "type": "Date"
41
+ }
42
+ ];
43
+ static getAttributeTypeMap() {
44
+ return VersionResult.attributeTypeMap;
45
+ }
46
+ }
47
+ exports.VersionResult = VersionResult;
package/package.json ADDED
@@ -0,0 +1,24 @@
1
+ {
2
+ "name": "@researchdatabox/raido-openapi-generated-node",
3
+ "version": "0.0.1",
4
+ "description": "Convenience lib for the autogenerated client code using https://openapi-generator.tech",
5
+ "main": "dist/api.js",
6
+ "files": [
7
+ "/dist"
8
+ ],
9
+ "scripts": {
10
+ "test": "echo \"Error: no test specified\" && exit 1",
11
+ "pregenerate": "npm install @openapitools/openapi-generator-cli -g",
12
+ "generate": "openapi-generator-cli generate -i https://github.com/au-research/raido-v2/raw/main/api-svc/idl-raid-v2/src/raido-openapi-3.0.yaml -g typescript-node -o ./src; node_modules/.bin/tsc"
13
+ },
14
+ "author": "QCIF Engineering",
15
+ "license": "GPL-3.0",
16
+ "devDependencies": {
17
+ "@types/request": "^2.48.8",
18
+ "typescript": "^4.9.4"
19
+ },
20
+ "publishConfig": {
21
+ "access": "public",
22
+ "registry": "https://registry.npmjs.org/"
23
+ }
24
+ }