@researchdatabox/raido-openapi-generated-node 0.0.1 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/api/apis.js +5 -9
- package/dist/api/{basicRaidExperimentalApi.js → raidApi.js} +98 -69
- package/dist/api/{publicExperimentalApi.js → servicePointApi.js} +115 -29
- package/dist/model/access.js +44 -0
- package/dist/model/accessStatement.js +35 -0
- package/dist/model/accessType.js +22 -6
- package/dist/model/{descriptionBlock.js → alternateIdentifier.js} +9 -9
- package/dist/model/{alternateUrlBlock.js → alternateUrl.js} +5 -5
- package/dist/model/closedRaid.js +35 -0
- package/dist/model/{apiKey.js → contributor.js} +21 -36
- package/dist/model/contributorPosition.js +9 -9
- package/dist/model/contributorRole.js +9 -9
- package/dist/model/description.js +41 -0
- package/dist/model/descriptionType.js +22 -6
- package/dist/model/{updateAuthzRequestStatus.js → failureResponse.js} +25 -16
- package/dist/model/id.js +80 -0
- package/dist/model/{publicServicePoint.js → language.js} +9 -12
- package/dist/model/{datesBlock.js → modelDate.js} +8 -5
- package/dist/model/models.js +100 -140
- package/dist/model/{organisationBlock.js → organisation.js} +12 -12
- package/dist/model/organisationRole.js +9 -9
- package/dist/model/{appUserExtraV1.js → owner.js} +20 -17
- package/dist/model/{raidListItemV2.js → raidChange.js} +21 -21
- package/dist/model/raidCreateRequest.js +107 -0
- package/dist/model/raidDto.js +107 -0
- package/dist/model/raidUpdateRequest.js +107 -0
- package/dist/model/registrationAgency.js +38 -0
- package/dist/model/relatedObject.js +47 -0
- package/dist/model/{publicClosedMetadataSchemaV1.js → relatedObjectCategory.js} +10 -16
- package/dist/model/relatedObjectType.js +35 -0
- package/dist/model/{accessBlock.js → relatedRaid.js} +12 -12
- package/dist/model/relatedRaidType.js +35 -0
- package/dist/model/servicePoint.js +31 -1
- package/dist/model/servicePointCreateRequest.js +104 -0
- package/dist/model/servicePointUpdateRequest.js +113 -0
- package/dist/model/{contributorBlock.js → spatialCoverage.js} +13 -19
- package/dist/model/spatialCoveragePlace.js +35 -0
- package/dist/model/subject.js +41 -0
- package/dist/model/{generateApiTokenResponse.js → subjectKeyword.js} +13 -13
- package/dist/model/{titleBlock.js → title.js} +14 -8
- package/dist/model/titleType.js +22 -6
- package/dist/model/traditionalKnowledgeLabel.js +35 -0
- package/dist/model/validationFailure.js +1 -1
- package/dist/model/{readRaidResponseV2.js → validationFailureResponse.js} +26 -38
- package/package.json +3 -3
- package/dist/api/adminExperimentalApi.js +0 -1092
- package/dist/api/unauthzExperimentalApi.js +0 -147
- package/dist/model/appUser.js +0 -83
- package/dist/model/authzRequestExtraV1.js +0 -104
- package/dist/model/authzRequestStatus.js +0 -20
- package/dist/model/contributorIdentifierSchemeType.js +0 -18
- package/dist/model/contributorPositionRaidMetadataSchemaType.js +0 -22
- package/dist/model/contributorPositionSchemeType.js +0 -18
- package/dist/model/contributorRoleCreditNisoOrgType.js +0 -31
- package/dist/model/contributorRoleSchemeType.js +0 -18
- package/dist/model/generateApiTokenRequest.js +0 -29
- package/dist/model/idBlock.js +0 -65
- package/dist/model/legacyMetadataSchemaV1.js +0 -68
- package/dist/model/migrateLegacyRaidRequest.js +0 -35
- package/dist/model/migrateLegacyRaidRequestMintRequest.js +0 -41
- package/dist/model/mintRaidoSchemaV1Request.js +0 -38
- package/dist/model/mintRaidoSchemaV1RequestMintRequest.js +0 -32
- package/dist/model/mintResponse.js +0 -41
- package/dist/model/organisationIdentifierSchemeType.js +0 -18
- package/dist/model/organisationRoleSchemeType.js +0 -18
- package/dist/model/organisationRoleType.js +0 -22
- package/dist/model/publicRaidMetadataSchemaV1.js +0 -80
- package/dist/model/publicReadRaidMetadataResponseV1.js +0 -80
- package/dist/model/publicReadRaidResponseV3.js +0 -56
- package/dist/model/raidListRequestV2.js +0 -35
- package/dist/model/raidoMetadataSchemaV1.js +0 -80
- package/dist/model/raidoMetaschema.js +0 -22
- package/dist/model/readRaidV2Request.js +0 -29
- package/dist/model/updateAuthzRequest.js +0 -38
- package/dist/model/updateAuthzResponse.js +0 -29
- package/dist/model/updateRaidoSchemaV1Request.js +0 -29
- package/dist/model/versionResult.js +0 -47
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
3
|
* RAID v2 API
|
|
4
|
-
* This file is where all the endpoint paths are defined, it\'s the \"top level\' of the OpenAPI definition that links all the different files together. The `3.0` in the filename refers to this file being based on OpenAPI 3.0 as opposed to OpenAPI 3.1, which the tooling doesn\'t support yet. The `2.0.0` in the version field refers to the fact that there\'s already a `1.0.0` used for the legacy RAiD application
|
|
4
|
+
* This file is where all the endpoint paths are defined, it\'s the \"top level\' of the OpenAPI definition that links all the different files together. The `3.0` in the filename refers to this file being based on OpenAPI 3.0 as opposed to OpenAPI 3.1, which the tooling doesn\'t support yet. The `2.0.0` in the version field refers to the fact that there\'s already a `1.0.0` used for the legacy RAiD application. Note that swagger ui doesn\'t currently work with our spec, see https://github.com/swagger-api/swagger-ui/issues/7724 But the spec works fine with openapi-generator tooling.
|
|
5
5
|
*
|
|
6
6
|
* The version of the OpenAPI document: 2.0.0
|
|
7
7
|
* Contact: contact@raid.org
|
|
@@ -11,17 +11,18 @@
|
|
|
11
11
|
* Do not edit the class manually.
|
|
12
12
|
*/
|
|
13
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
-
exports.
|
|
15
|
-
class
|
|
16
|
-
'
|
|
14
|
+
exports.Title = void 0;
|
|
15
|
+
class Title {
|
|
16
|
+
'text';
|
|
17
17
|
'type';
|
|
18
18
|
'startDate';
|
|
19
19
|
'endDate';
|
|
20
|
+
'language';
|
|
20
21
|
static discriminator = undefined;
|
|
21
22
|
static attributeTypeMap = [
|
|
22
23
|
{
|
|
23
|
-
"name": "
|
|
24
|
-
"baseName": "
|
|
24
|
+
"name": "text",
|
|
25
|
+
"baseName": "text",
|
|
25
26
|
"type": "string"
|
|
26
27
|
},
|
|
27
28
|
{
|
|
@@ -38,10 +39,15 @@ class TitleBlock {
|
|
|
38
39
|
"name": "endDate",
|
|
39
40
|
"baseName": "endDate",
|
|
40
41
|
"type": "string"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"name": "language",
|
|
45
|
+
"baseName": "language",
|
|
46
|
+
"type": "Language"
|
|
41
47
|
}
|
|
42
48
|
];
|
|
43
49
|
static getAttributeTypeMap() {
|
|
44
|
-
return
|
|
50
|
+
return Title.attributeTypeMap;
|
|
45
51
|
}
|
|
46
52
|
}
|
|
47
|
-
exports.
|
|
53
|
+
exports.Title = Title;
|
package/dist/model/titleType.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
3
|
* RAID v2 API
|
|
4
|
-
* This file is where all the endpoint paths are defined, it\'s the \"top level\' of the OpenAPI definition that links all the different files together. The `3.0` in the filename refers to this file being based on OpenAPI 3.0 as opposed to OpenAPI 3.1, which the tooling doesn\'t support yet. The `2.0.0` in the version field refers to the fact that there\'s already a `1.0.0` used for the legacy RAiD application
|
|
4
|
+
* This file is where all the endpoint paths are defined, it\'s the \"top level\' of the OpenAPI definition that links all the different files together. The `3.0` in the filename refers to this file being based on OpenAPI 3.0 as opposed to OpenAPI 3.1, which the tooling doesn\'t support yet. The `2.0.0` in the version field refers to the fact that there\'s already a `1.0.0` used for the legacy RAiD application. Note that swagger ui doesn\'t currently work with our spec, see https://github.com/swagger-api/swagger-ui/issues/7724 But the spec works fine with openapi-generator tooling.
|
|
5
5
|
*
|
|
6
6
|
* The version of the OpenAPI document: 2.0.0
|
|
7
7
|
* Contact: contact@raid.org
|
|
@@ -12,8 +12,24 @@
|
|
|
12
12
|
*/
|
|
13
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
14
|
exports.TitleType = void 0;
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
15
|
+
class TitleType {
|
|
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 TitleType.attributeTypeMap;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
exports.TitleType = TitleType;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* RAID v2 API
|
|
4
|
+
* This file is where all the endpoint paths are defined, it\'s the \"top level\' of the OpenAPI definition that links all the different files together. The `3.0` in the filename refers to this file being based on OpenAPI 3.0 as opposed to OpenAPI 3.1, which the tooling doesn\'t support yet. The `2.0.0` in the version field refers to the fact that there\'s already a `1.0.0` used for the legacy RAiD application. Note that swagger ui doesn\'t currently work with our spec, see https://github.com/swagger-api/swagger-ui/issues/7724 But the spec works fine with openapi-generator tooling.
|
|
5
|
+
*
|
|
6
|
+
* The version of the OpenAPI document: 2.0.0
|
|
7
|
+
* Contact: contact@raid.org
|
|
8
|
+
*
|
|
9
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
10
|
+
* https://openapi-generator.tech
|
|
11
|
+
* Do not edit the class manually.
|
|
12
|
+
*/
|
|
13
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
+
exports.TraditionalKnowledgeLabel = void 0;
|
|
15
|
+
class TraditionalKnowledgeLabel {
|
|
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 TraditionalKnowledgeLabel.attributeTypeMap;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
exports.TraditionalKnowledgeLabel = TraditionalKnowledgeLabel;
|
|
@@ -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
|
|
4
|
+
* This file is where all the endpoint paths are defined, it\'s the \"top level\' of the OpenAPI definition that links all the different files together. The `3.0` in the filename refers to this file being based on OpenAPI 3.0 as opposed to OpenAPI 3.1, which the tooling doesn\'t support yet. The `2.0.0` in the version field refers to the fact that there\'s already a `1.0.0` used for the legacy RAiD application. Note that swagger ui doesn\'t currently work with our spec, see https://github.com/swagger-api/swagger-ui/issues/7724 But the spec works fine with openapi-generator tooling.
|
|
5
5
|
*
|
|
6
6
|
* The version of the OpenAPI document: 2.0.0
|
|
7
7
|
* Contact: contact@raid.org
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
3
|
* RAID v2 API
|
|
4
|
-
* This file is where all the endpoint paths are defined, it\'s the \"top level\' of the OpenAPI definition that links all the different files together. The `3.0` in the filename refers to this file being based on OpenAPI 3.0 as opposed to OpenAPI 3.1, which the tooling doesn\'t support yet. The `2.0.0` in the version field refers to the fact that there\'s already a `1.0.0` used for the legacy RAiD application
|
|
4
|
+
* This file is where all the endpoint paths are defined, it\'s the \"top level\' of the OpenAPI definition that links all the different files together. The `3.0` in the filename refers to this file being based on OpenAPI 3.0 as opposed to OpenAPI 3.1, which the tooling doesn\'t support yet. The `2.0.0` in the version field refers to the fact that there\'s already a `1.0.0` used for the legacy RAiD application. Note that swagger ui doesn\'t currently work with our spec, see https://github.com/swagger-api/swagger-ui/issues/7724 But the spec works fine with openapi-generator tooling.
|
|
5
5
|
*
|
|
6
6
|
* The version of the OpenAPI document: 2.0.0
|
|
7
7
|
* Contact: contact@raid.org
|
|
@@ -11,61 +11,49 @@
|
|
|
11
11
|
* Do not edit the class manually.
|
|
12
12
|
*/
|
|
13
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
-
exports.
|
|
15
|
-
class
|
|
16
|
-
'
|
|
17
|
-
'
|
|
18
|
-
'
|
|
19
|
-
'
|
|
20
|
-
'
|
|
21
|
-
'
|
|
22
|
-
'url';
|
|
23
|
-
'metadata';
|
|
14
|
+
exports.ValidationFailureResponse = void 0;
|
|
15
|
+
class ValidationFailureResponse {
|
|
16
|
+
'failures';
|
|
17
|
+
'type';
|
|
18
|
+
'title';
|
|
19
|
+
'status';
|
|
20
|
+
'detail';
|
|
21
|
+
'instance';
|
|
24
22
|
static discriminator = undefined;
|
|
25
23
|
static attributeTypeMap = [
|
|
26
24
|
{
|
|
27
|
-
"name": "
|
|
28
|
-
"baseName": "
|
|
29
|
-
"type": "
|
|
25
|
+
"name": "failures",
|
|
26
|
+
"baseName": "failures",
|
|
27
|
+
"type": "Array<ValidationFailure>"
|
|
30
28
|
},
|
|
31
29
|
{
|
|
32
|
-
"name": "
|
|
33
|
-
"baseName": "
|
|
34
|
-
"type": "number"
|
|
35
|
-
},
|
|
36
|
-
{
|
|
37
|
-
"name": "servicePointName",
|
|
38
|
-
"baseName": "servicePointName",
|
|
30
|
+
"name": "type",
|
|
31
|
+
"baseName": "type",
|
|
39
32
|
"type": "string"
|
|
40
33
|
},
|
|
41
34
|
{
|
|
42
|
-
"name": "
|
|
43
|
-
"baseName": "
|
|
35
|
+
"name": "title",
|
|
36
|
+
"baseName": "title",
|
|
44
37
|
"type": "string"
|
|
45
38
|
},
|
|
46
39
|
{
|
|
47
|
-
"name": "
|
|
48
|
-
"baseName": "
|
|
49
|
-
"type": "
|
|
50
|
-
},
|
|
51
|
-
{
|
|
52
|
-
"name": "createDate",
|
|
53
|
-
"baseName": "createDate",
|
|
54
|
-
"type": "Date"
|
|
40
|
+
"name": "status",
|
|
41
|
+
"baseName": "status",
|
|
42
|
+
"type": "number"
|
|
55
43
|
},
|
|
56
44
|
{
|
|
57
|
-
"name": "
|
|
58
|
-
"baseName": "
|
|
45
|
+
"name": "detail",
|
|
46
|
+
"baseName": "detail",
|
|
59
47
|
"type": "string"
|
|
60
48
|
},
|
|
61
49
|
{
|
|
62
|
-
"name": "
|
|
63
|
-
"baseName": "
|
|
64
|
-
"type": "
|
|
50
|
+
"name": "instance",
|
|
51
|
+
"baseName": "instance",
|
|
52
|
+
"type": "string"
|
|
65
53
|
}
|
|
66
54
|
];
|
|
67
55
|
static getAttributeTypeMap() {
|
|
68
|
-
return
|
|
56
|
+
return ValidationFailureResponse.attributeTypeMap;
|
|
69
57
|
}
|
|
70
58
|
}
|
|
71
|
-
exports.
|
|
59
|
+
exports.ValidationFailureResponse = ValidationFailureResponse;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@researchdatabox/raido-openapi-generated-node",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"description": "Convenience lib for the autogenerated client code using https://openapi-generator.tech",
|
|
3
|
+
"version": "0.0.3",
|
|
4
|
+
"description": "Convenience lib for the autogenerated client code using https://openapi-generator.tech with https://github.com/au-research/raido/blob/735df6f752f2e1ece7656d05b830b591dc259d03/api-svc/idl-raid-v2/src/raido-openapi-3.0.yaml ",
|
|
5
5
|
"main": "dist/api.js",
|
|
6
6
|
"files": [
|
|
7
7
|
"/dist"
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"scripts": {
|
|
10
10
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
11
11
|
"pregenerate": "npm install @openapitools/openapi-generator-cli -g",
|
|
12
|
-
"generate": "openapi-generator-cli generate -i https://
|
|
12
|
+
"generate": "openapi-generator-cli generate -i https://raw.githubusercontent.com/au-research/raido/735df6f752f2e1ece7656d05b830b591dc259d03/api-svc/idl-raid-v2/src/raido-openapi-3.0.yaml -g typescript-node -o ./src; node_modules/.bin/tsc"
|
|
13
13
|
},
|
|
14
14
|
"author": "QCIF Engineering",
|
|
15
15
|
"license": "GPL-3.0",
|