@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
|
|
@@ -13,19 +13,19 @@
|
|
|
13
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
14
|
exports.ContributorRole = void 0;
|
|
15
15
|
class ContributorRole {
|
|
16
|
-
'
|
|
17
|
-
'
|
|
16
|
+
'schemaUri';
|
|
17
|
+
'id';
|
|
18
18
|
static discriminator = undefined;
|
|
19
19
|
static attributeTypeMap = [
|
|
20
20
|
{
|
|
21
|
-
"name": "
|
|
22
|
-
"baseName": "
|
|
23
|
-
"type": "
|
|
21
|
+
"name": "schemaUri",
|
|
22
|
+
"baseName": "schemaUri",
|
|
23
|
+
"type": "string"
|
|
24
24
|
},
|
|
25
25
|
{
|
|
26
|
-
"name": "
|
|
27
|
-
"baseName": "
|
|
28
|
-
"type": "
|
|
26
|
+
"name": "id",
|
|
27
|
+
"baseName": "id",
|
|
28
|
+
"type": "string"
|
|
29
29
|
}
|
|
30
30
|
];
|
|
31
31
|
static getAttributeTypeMap() {
|
|
@@ -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. 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.Description = void 0;
|
|
15
|
+
class Description {
|
|
16
|
+
'text';
|
|
17
|
+
'type';
|
|
18
|
+
'language';
|
|
19
|
+
static discriminator = undefined;
|
|
20
|
+
static attributeTypeMap = [
|
|
21
|
+
{
|
|
22
|
+
"name": "text",
|
|
23
|
+
"baseName": "text",
|
|
24
|
+
"type": "string"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"name": "type",
|
|
28
|
+
"baseName": "type",
|
|
29
|
+
"type": "DescriptionType"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"name": "language",
|
|
33
|
+
"baseName": "language",
|
|
34
|
+
"type": "Language"
|
|
35
|
+
}
|
|
36
|
+
];
|
|
37
|
+
static getAttributeTypeMap() {
|
|
38
|
+
return Description.attributeTypeMap;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
exports.Description = Description;
|
|
@@ -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.DescriptionType = void 0;
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
15
|
+
class DescriptionType {
|
|
16
|
+
'id';
|
|
17
|
+
'schemaUri';
|
|
18
|
+
static discriminator = undefined;
|
|
19
|
+
static attributeTypeMap = [
|
|
20
|
+
{
|
|
21
|
+
"name": "id",
|
|
22
|
+
"baseName": "id",
|
|
23
|
+
"type": "string"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"name": "schemaUri",
|
|
27
|
+
"baseName": "schemaUri",
|
|
28
|
+
"type": "string"
|
|
29
|
+
}
|
|
30
|
+
];
|
|
31
|
+
static getAttributeTypeMap() {
|
|
32
|
+
return DescriptionType.attributeTypeMap;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
exports.DescriptionType = DescriptionType;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
3
|
* RAID v2 API
|
|
4
|
-
* This file is where all the endpoint paths are defined, it\'s the \"top level\' of the OpenAPI definition that links all the different files together. The `3.0` in the filename refers to this file being based on OpenAPI 3.0 as opposed to OpenAPI 3.1, which the tooling doesn\'t support yet. The `2.0.0` in the version field refers to the fact that there\'s already a `1.0.0` used for the legacy RAiD application
|
|
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,34 +11,43 @@
|
|
|
11
11
|
* Do not edit the class manually.
|
|
12
12
|
*/
|
|
13
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
-
exports.
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
class UpdateAuthzRequestStatus {
|
|
19
|
-
'authzRequestId';
|
|
14
|
+
exports.FailureResponse = void 0;
|
|
15
|
+
class FailureResponse {
|
|
16
|
+
'type';
|
|
17
|
+
'title';
|
|
20
18
|
'status';
|
|
21
|
-
'
|
|
19
|
+
'detail';
|
|
20
|
+
'instance';
|
|
22
21
|
static discriminator = undefined;
|
|
23
22
|
static attributeTypeMap = [
|
|
24
23
|
{
|
|
25
|
-
"name": "
|
|
26
|
-
"baseName": "
|
|
27
|
-
"type": "
|
|
24
|
+
"name": "type",
|
|
25
|
+
"baseName": "type",
|
|
26
|
+
"type": "string"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"name": "title",
|
|
30
|
+
"baseName": "title",
|
|
31
|
+
"type": "string"
|
|
28
32
|
},
|
|
29
33
|
{
|
|
30
34
|
"name": "status",
|
|
31
35
|
"baseName": "status",
|
|
32
|
-
"type": "
|
|
36
|
+
"type": "number"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"name": "detail",
|
|
40
|
+
"baseName": "detail",
|
|
41
|
+
"type": "string"
|
|
33
42
|
},
|
|
34
43
|
{
|
|
35
|
-
"name": "
|
|
36
|
-
"baseName": "
|
|
44
|
+
"name": "instance",
|
|
45
|
+
"baseName": "instance",
|
|
37
46
|
"type": "string"
|
|
38
47
|
}
|
|
39
48
|
];
|
|
40
49
|
static getAttributeTypeMap() {
|
|
41
|
-
return
|
|
50
|
+
return FailureResponse.attributeTypeMap;
|
|
42
51
|
}
|
|
43
52
|
}
|
|
44
|
-
exports.
|
|
53
|
+
exports.FailureResponse = FailureResponse;
|
package/dist/model/id.js
ADDED
|
@@ -0,0 +1,80 @@
|
|
|
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.Id = void 0;
|
|
15
|
+
class Id {
|
|
16
|
+
/**
|
|
17
|
+
* The identifier of the raid, e.g. https://raid.org.au/102.100.100/zzz
|
|
18
|
+
*/
|
|
19
|
+
'id';
|
|
20
|
+
/**
|
|
21
|
+
* The URI of the Identifier scheme. For example, https://raid.org
|
|
22
|
+
*/
|
|
23
|
+
'schemaUri';
|
|
24
|
+
'registrationAgency';
|
|
25
|
+
'owner';
|
|
26
|
+
/**
|
|
27
|
+
* The URL for the raid via the minting raid agency system, e.g https://raid.org.au/10378.1/1695863
|
|
28
|
+
*/
|
|
29
|
+
'raidAgencyUrl';
|
|
30
|
+
/**
|
|
31
|
+
* The license under which the RAiD Metadata Record associated with this Identifier has been issued.
|
|
32
|
+
*/
|
|
33
|
+
'license';
|
|
34
|
+
/**
|
|
35
|
+
* The version of the resource. Read-only. Increments automatically on update.
|
|
36
|
+
*/
|
|
37
|
+
'version';
|
|
38
|
+
static discriminator = undefined;
|
|
39
|
+
static attributeTypeMap = [
|
|
40
|
+
{
|
|
41
|
+
"name": "id",
|
|
42
|
+
"baseName": "id",
|
|
43
|
+
"type": "string"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"name": "schemaUri",
|
|
47
|
+
"baseName": "schemaUri",
|
|
48
|
+
"type": "string"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"name": "registrationAgency",
|
|
52
|
+
"baseName": "registrationAgency",
|
|
53
|
+
"type": "RegistrationAgency"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"name": "owner",
|
|
57
|
+
"baseName": "owner",
|
|
58
|
+
"type": "Owner"
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"name": "raidAgencyUrl",
|
|
62
|
+
"baseName": "raidAgencyUrl",
|
|
63
|
+
"type": "string"
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"name": "license",
|
|
67
|
+
"baseName": "license",
|
|
68
|
+
"type": "string"
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"name": "version",
|
|
72
|
+
"baseName": "version",
|
|
73
|
+
"type": "number"
|
|
74
|
+
}
|
|
75
|
+
];
|
|
76
|
+
static getAttributeTypeMap() {
|
|
77
|
+
return Id.attributeTypeMap;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
exports.Id = Id;
|
|
@@ -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,28 +11,25 @@
|
|
|
11
11
|
* Do not edit the class manually.
|
|
12
12
|
*/
|
|
13
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
-
exports.
|
|
15
|
-
|
|
16
|
-
* data that non-authn users can see (do not leak email)
|
|
17
|
-
*/
|
|
18
|
-
class PublicServicePoint {
|
|
14
|
+
exports.Language = void 0;
|
|
15
|
+
class Language {
|
|
19
16
|
'id';
|
|
20
|
-
'
|
|
17
|
+
'schemaUri';
|
|
21
18
|
static discriminator = undefined;
|
|
22
19
|
static attributeTypeMap = [
|
|
23
20
|
{
|
|
24
21
|
"name": "id",
|
|
25
22
|
"baseName": "id",
|
|
26
|
-
"type": "
|
|
23
|
+
"type": "string"
|
|
27
24
|
},
|
|
28
25
|
{
|
|
29
|
-
"name": "
|
|
30
|
-
"baseName": "
|
|
26
|
+
"name": "schemaUri",
|
|
27
|
+
"baseName": "schemaUri",
|
|
31
28
|
"type": "string"
|
|
32
29
|
}
|
|
33
30
|
];
|
|
34
31
|
static getAttributeTypeMap() {
|
|
35
|
-
return
|
|
32
|
+
return Language.attributeTypeMap;
|
|
36
33
|
}
|
|
37
34
|
}
|
|
38
|
-
exports.
|
|
35
|
+
exports.Language = Language;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
3
|
* RAID v2 API
|
|
4
|
-
* This file is where all the endpoint paths are defined, it\'s the \"top level\' of the OpenAPI definition that links all the different files together. The `3.0` in the filename refers to this file being based on OpenAPI 3.0 as opposed to OpenAPI 3.1, which the tooling doesn\'t support yet. The `2.0.0` in the version field refers to the fact that there\'s already a `1.0.0` used for the legacy RAiD application
|
|
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,8 +11,11 @@
|
|
|
11
11
|
* Do not edit the class manually.
|
|
12
12
|
*/
|
|
13
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
-
exports.
|
|
15
|
-
|
|
14
|
+
exports.ModelDate = void 0;
|
|
15
|
+
/**
|
|
16
|
+
* Metadata schema block containing the start and end date of the RAiD.
|
|
17
|
+
*/
|
|
18
|
+
class ModelDate {
|
|
16
19
|
'startDate';
|
|
17
20
|
'endDate';
|
|
18
21
|
static discriminator = undefined;
|
|
@@ -29,7 +32,7 @@ class DatesBlock {
|
|
|
29
32
|
}
|
|
30
33
|
];
|
|
31
34
|
static getAttributeTypeMap() {
|
|
32
|
-
return
|
|
35
|
+
return ModelDate.attributeTypeMap;
|
|
33
36
|
}
|
|
34
37
|
}
|
|
35
|
-
exports.
|
|
38
|
+
exports.ModelDate = ModelDate;
|
package/dist/model/models.js
CHANGED
|
@@ -15,112 +15,86 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
exports.VoidAuth = exports.OAuth = exports.ApiKeyAuth = exports.HttpBearerAuth = exports.HttpBasicAuth = exports.ObjectSerializer = void 0;
|
|
18
|
-
__exportStar(require("./
|
|
18
|
+
__exportStar(require("./access"), exports);
|
|
19
|
+
__exportStar(require("./accessStatement"), exports);
|
|
19
20
|
__exportStar(require("./accessType"), exports);
|
|
20
|
-
__exportStar(require("./
|
|
21
|
-
__exportStar(require("./
|
|
22
|
-
__exportStar(require("./
|
|
23
|
-
__exportStar(require("./
|
|
24
|
-
__exportStar(require("./authzRequestExtraV1"), exports);
|
|
25
|
-
__exportStar(require("./authzRequestStatus"), exports);
|
|
26
|
-
__exportStar(require("./contributorBlock"), exports);
|
|
27
|
-
__exportStar(require("./contributorIdentifierSchemeType"), exports);
|
|
21
|
+
__exportStar(require("./alternateIdentifier"), exports);
|
|
22
|
+
__exportStar(require("./alternateUrl"), exports);
|
|
23
|
+
__exportStar(require("./closedRaid"), exports);
|
|
24
|
+
__exportStar(require("./contributor"), exports);
|
|
28
25
|
__exportStar(require("./contributorPosition"), exports);
|
|
29
|
-
__exportStar(require("./contributorPositionRaidMetadataSchemaType"), exports);
|
|
30
|
-
__exportStar(require("./contributorPositionSchemeType"), exports);
|
|
31
26
|
__exportStar(require("./contributorRole"), exports);
|
|
32
|
-
__exportStar(require("./
|
|
33
|
-
__exportStar(require("./contributorRoleSchemeType"), exports);
|
|
34
|
-
__exportStar(require("./datesBlock"), exports);
|
|
35
|
-
__exportStar(require("./descriptionBlock"), exports);
|
|
27
|
+
__exportStar(require("./description"), exports);
|
|
36
28
|
__exportStar(require("./descriptionType"), exports);
|
|
37
|
-
__exportStar(require("./
|
|
38
|
-
__exportStar(require("./
|
|
39
|
-
__exportStar(require("./
|
|
40
|
-
__exportStar(require("./
|
|
41
|
-
__exportStar(require("./
|
|
42
|
-
__exportStar(require("./migrateLegacyRaidRequestMintRequest"), exports);
|
|
43
|
-
__exportStar(require("./mintRaidoSchemaV1Request"), exports);
|
|
44
|
-
__exportStar(require("./mintRaidoSchemaV1RequestMintRequest"), exports);
|
|
45
|
-
__exportStar(require("./mintResponse"), exports);
|
|
46
|
-
__exportStar(require("./organisationBlock"), exports);
|
|
47
|
-
__exportStar(require("./organisationIdentifierSchemeType"), exports);
|
|
29
|
+
__exportStar(require("./failureResponse"), exports);
|
|
30
|
+
__exportStar(require("./id"), exports);
|
|
31
|
+
__exportStar(require("./language"), exports);
|
|
32
|
+
__exportStar(require("./modelDate"), exports);
|
|
33
|
+
__exportStar(require("./organisation"), exports);
|
|
48
34
|
__exportStar(require("./organisationRole"), exports);
|
|
49
|
-
__exportStar(require("./
|
|
50
|
-
__exportStar(require("./
|
|
51
|
-
__exportStar(require("./
|
|
52
|
-
__exportStar(require("./
|
|
53
|
-
__exportStar(require("./
|
|
54
|
-
__exportStar(require("./
|
|
55
|
-
__exportStar(require("./
|
|
56
|
-
__exportStar(require("./
|
|
57
|
-
__exportStar(require("./
|
|
58
|
-
__exportStar(require("./
|
|
59
|
-
__exportStar(require("./
|
|
60
|
-
__exportStar(require("./readRaidResponseV2"), exports);
|
|
61
|
-
__exportStar(require("./readRaidV2Request"), exports);
|
|
35
|
+
__exportStar(require("./owner"), exports);
|
|
36
|
+
__exportStar(require("./raidChange"), exports);
|
|
37
|
+
__exportStar(require("./raidCreateRequest"), exports);
|
|
38
|
+
__exportStar(require("./raidDto"), exports);
|
|
39
|
+
__exportStar(require("./raidUpdateRequest"), exports);
|
|
40
|
+
__exportStar(require("./registrationAgency"), exports);
|
|
41
|
+
__exportStar(require("./relatedObject"), exports);
|
|
42
|
+
__exportStar(require("./relatedObjectCategory"), exports);
|
|
43
|
+
__exportStar(require("./relatedObjectType"), exports);
|
|
44
|
+
__exportStar(require("./relatedRaid"), exports);
|
|
45
|
+
__exportStar(require("./relatedRaidType"), exports);
|
|
62
46
|
__exportStar(require("./servicePoint"), exports);
|
|
63
|
-
__exportStar(require("./
|
|
47
|
+
__exportStar(require("./servicePointCreateRequest"), exports);
|
|
48
|
+
__exportStar(require("./servicePointUpdateRequest"), exports);
|
|
49
|
+
__exportStar(require("./spatialCoverage"), exports);
|
|
50
|
+
__exportStar(require("./spatialCoveragePlace"), exports);
|
|
51
|
+
__exportStar(require("./subject"), exports);
|
|
52
|
+
__exportStar(require("./subjectKeyword"), exports);
|
|
53
|
+
__exportStar(require("./title"), exports);
|
|
64
54
|
__exportStar(require("./titleType"), exports);
|
|
65
|
-
__exportStar(require("./
|
|
66
|
-
__exportStar(require("./updateAuthzRequestStatus"), exports);
|
|
67
|
-
__exportStar(require("./updateAuthzResponse"), exports);
|
|
68
|
-
__exportStar(require("./updateRaidoSchemaV1Request"), exports);
|
|
55
|
+
__exportStar(require("./traditionalKnowledgeLabel"), exports);
|
|
69
56
|
__exportStar(require("./validationFailure"), exports);
|
|
70
|
-
__exportStar(require("./
|
|
71
|
-
const
|
|
57
|
+
__exportStar(require("./validationFailureResponse"), exports);
|
|
58
|
+
const access_1 = require("./access");
|
|
59
|
+
const accessStatement_1 = require("./accessStatement");
|
|
72
60
|
const accessType_1 = require("./accessType");
|
|
73
|
-
const
|
|
74
|
-
const
|
|
75
|
-
const
|
|
76
|
-
const
|
|
77
|
-
const authzRequestExtraV1_1 = require("./authzRequestExtraV1");
|
|
78
|
-
const authzRequestStatus_1 = require("./authzRequestStatus");
|
|
79
|
-
const contributorBlock_1 = require("./contributorBlock");
|
|
80
|
-
const contributorIdentifierSchemeType_1 = require("./contributorIdentifierSchemeType");
|
|
61
|
+
const alternateIdentifier_1 = require("./alternateIdentifier");
|
|
62
|
+
const alternateUrl_1 = require("./alternateUrl");
|
|
63
|
+
const closedRaid_1 = require("./closedRaid");
|
|
64
|
+
const contributor_1 = require("./contributor");
|
|
81
65
|
const contributorPosition_1 = require("./contributorPosition");
|
|
82
|
-
const contributorPositionRaidMetadataSchemaType_1 = require("./contributorPositionRaidMetadataSchemaType");
|
|
83
|
-
const contributorPositionSchemeType_1 = require("./contributorPositionSchemeType");
|
|
84
66
|
const contributorRole_1 = require("./contributorRole");
|
|
85
|
-
const
|
|
86
|
-
const contributorRoleSchemeType_1 = require("./contributorRoleSchemeType");
|
|
87
|
-
const datesBlock_1 = require("./datesBlock");
|
|
88
|
-
const descriptionBlock_1 = require("./descriptionBlock");
|
|
67
|
+
const description_1 = require("./description");
|
|
89
68
|
const descriptionType_1 = require("./descriptionType");
|
|
90
|
-
const
|
|
91
|
-
const
|
|
92
|
-
const
|
|
93
|
-
const
|
|
94
|
-
const
|
|
95
|
-
const migrateLegacyRaidRequestMintRequest_1 = require("./migrateLegacyRaidRequestMintRequest");
|
|
96
|
-
const mintRaidoSchemaV1Request_1 = require("./mintRaidoSchemaV1Request");
|
|
97
|
-
const mintRaidoSchemaV1RequestMintRequest_1 = require("./mintRaidoSchemaV1RequestMintRequest");
|
|
98
|
-
const mintResponse_1 = require("./mintResponse");
|
|
99
|
-
const organisationBlock_1 = require("./organisationBlock");
|
|
100
|
-
const organisationIdentifierSchemeType_1 = require("./organisationIdentifierSchemeType");
|
|
69
|
+
const failureResponse_1 = require("./failureResponse");
|
|
70
|
+
const id_1 = require("./id");
|
|
71
|
+
const language_1 = require("./language");
|
|
72
|
+
const modelDate_1 = require("./modelDate");
|
|
73
|
+
const organisation_1 = require("./organisation");
|
|
101
74
|
const organisationRole_1 = require("./organisationRole");
|
|
102
|
-
const
|
|
103
|
-
const
|
|
104
|
-
const
|
|
105
|
-
const
|
|
106
|
-
const
|
|
107
|
-
const
|
|
108
|
-
const
|
|
109
|
-
const
|
|
110
|
-
const
|
|
111
|
-
const
|
|
112
|
-
const
|
|
113
|
-
const readRaidResponseV2_1 = require("./readRaidResponseV2");
|
|
114
|
-
const readRaidV2Request_1 = require("./readRaidV2Request");
|
|
75
|
+
const owner_1 = require("./owner");
|
|
76
|
+
const raidChange_1 = require("./raidChange");
|
|
77
|
+
const raidCreateRequest_1 = require("./raidCreateRequest");
|
|
78
|
+
const raidDto_1 = require("./raidDto");
|
|
79
|
+
const raidUpdateRequest_1 = require("./raidUpdateRequest");
|
|
80
|
+
const registrationAgency_1 = require("./registrationAgency");
|
|
81
|
+
const relatedObject_1 = require("./relatedObject");
|
|
82
|
+
const relatedObjectCategory_1 = require("./relatedObjectCategory");
|
|
83
|
+
const relatedObjectType_1 = require("./relatedObjectType");
|
|
84
|
+
const relatedRaid_1 = require("./relatedRaid");
|
|
85
|
+
const relatedRaidType_1 = require("./relatedRaidType");
|
|
115
86
|
const servicePoint_1 = require("./servicePoint");
|
|
116
|
-
const
|
|
87
|
+
const servicePointCreateRequest_1 = require("./servicePointCreateRequest");
|
|
88
|
+
const servicePointUpdateRequest_1 = require("./servicePointUpdateRequest");
|
|
89
|
+
const spatialCoverage_1 = require("./spatialCoverage");
|
|
90
|
+
const spatialCoveragePlace_1 = require("./spatialCoveragePlace");
|
|
91
|
+
const subject_1 = require("./subject");
|
|
92
|
+
const subjectKeyword_1 = require("./subjectKeyword");
|
|
93
|
+
const title_1 = require("./title");
|
|
117
94
|
const titleType_1 = require("./titleType");
|
|
118
|
-
const
|
|
119
|
-
const updateAuthzRequestStatus_1 = require("./updateAuthzRequestStatus");
|
|
120
|
-
const updateAuthzResponse_1 = require("./updateAuthzResponse");
|
|
121
|
-
const updateRaidoSchemaV1Request_1 = require("./updateRaidoSchemaV1Request");
|
|
95
|
+
const traditionalKnowledgeLabel_1 = require("./traditionalKnowledgeLabel");
|
|
122
96
|
const validationFailure_1 = require("./validationFailure");
|
|
123
|
-
const
|
|
97
|
+
const validationFailureResponse_1 = require("./validationFailureResponse");
|
|
124
98
|
/* tslint:disable:no-unused-variable */
|
|
125
99
|
let primitives = [
|
|
126
100
|
"string",
|
|
@@ -132,62 +106,48 @@ let primitives = [
|
|
|
132
106
|
"number",
|
|
133
107
|
"any"
|
|
134
108
|
];
|
|
135
|
-
let enumsMap = {
|
|
136
|
-
"AccessType": accessType_1.AccessType,
|
|
137
|
-
"AuthzRequestStatus": authzRequestStatus_1.AuthzRequestStatus,
|
|
138
|
-
"ContributorIdentifierSchemeType": contributorIdentifierSchemeType_1.ContributorIdentifierSchemeType,
|
|
139
|
-
"ContributorPositionRaidMetadataSchemaType": contributorPositionRaidMetadataSchemaType_1.ContributorPositionRaidMetadataSchemaType,
|
|
140
|
-
"ContributorPositionSchemeType": contributorPositionSchemeType_1.ContributorPositionSchemeType,
|
|
141
|
-
"ContributorRoleCreditNisoOrgType": contributorRoleCreditNisoOrgType_1.ContributorRoleCreditNisoOrgType,
|
|
142
|
-
"ContributorRoleSchemeType": contributorRoleSchemeType_1.ContributorRoleSchemeType,
|
|
143
|
-
"DescriptionType": descriptionType_1.DescriptionType,
|
|
144
|
-
"OrganisationIdentifierSchemeType": organisationIdentifierSchemeType_1.OrganisationIdentifierSchemeType,
|
|
145
|
-
"OrganisationRoleSchemeType": organisationRoleSchemeType_1.OrganisationRoleSchemeType,
|
|
146
|
-
"OrganisationRoleType": organisationRoleType_1.OrganisationRoleType,
|
|
147
|
-
"RaidoMetaschema": raidoMetaschema_1.RaidoMetaschema,
|
|
148
|
-
"TitleType": titleType_1.TitleType,
|
|
149
|
-
};
|
|
109
|
+
let enumsMap = {};
|
|
150
110
|
let typeMap = {
|
|
151
|
-
"
|
|
152
|
-
"
|
|
153
|
-
"
|
|
154
|
-
"
|
|
155
|
-
"
|
|
156
|
-
"
|
|
157
|
-
"
|
|
111
|
+
"Access": access_1.Access,
|
|
112
|
+
"AccessStatement": accessStatement_1.AccessStatement,
|
|
113
|
+
"AccessType": accessType_1.AccessType,
|
|
114
|
+
"AlternateIdentifier": alternateIdentifier_1.AlternateIdentifier,
|
|
115
|
+
"AlternateUrl": alternateUrl_1.AlternateUrl,
|
|
116
|
+
"ClosedRaid": closedRaid_1.ClosedRaid,
|
|
117
|
+
"Contributor": contributor_1.Contributor,
|
|
158
118
|
"ContributorPosition": contributorPosition_1.ContributorPosition,
|
|
159
119
|
"ContributorRole": contributorRole_1.ContributorRole,
|
|
160
|
-
"
|
|
161
|
-
"
|
|
162
|
-
"
|
|
163
|
-
"
|
|
164
|
-
"
|
|
165
|
-
"
|
|
166
|
-
"
|
|
167
|
-
"MigrateLegacyRaidRequestMintRequest": migrateLegacyRaidRequestMintRequest_1.MigrateLegacyRaidRequestMintRequest,
|
|
168
|
-
"MintRaidoSchemaV1Request": mintRaidoSchemaV1Request_1.MintRaidoSchemaV1Request,
|
|
169
|
-
"MintRaidoSchemaV1RequestMintRequest": mintRaidoSchemaV1RequestMintRequest_1.MintRaidoSchemaV1RequestMintRequest,
|
|
170
|
-
"MintResponse": mintResponse_1.MintResponse,
|
|
171
|
-
"OrganisationBlock": organisationBlock_1.OrganisationBlock,
|
|
120
|
+
"Description": description_1.Description,
|
|
121
|
+
"DescriptionType": descriptionType_1.DescriptionType,
|
|
122
|
+
"FailureResponse": failureResponse_1.FailureResponse,
|
|
123
|
+
"Id": id_1.Id,
|
|
124
|
+
"Language": language_1.Language,
|
|
125
|
+
"ModelDate": modelDate_1.ModelDate,
|
|
126
|
+
"Organisation": organisation_1.Organisation,
|
|
172
127
|
"OrganisationRole": organisationRole_1.OrganisationRole,
|
|
173
|
-
"
|
|
174
|
-
"
|
|
175
|
-
"
|
|
176
|
-
"
|
|
177
|
-
"
|
|
178
|
-
"
|
|
179
|
-
"
|
|
180
|
-
"
|
|
181
|
-
"
|
|
182
|
-
"
|
|
128
|
+
"Owner": owner_1.Owner,
|
|
129
|
+
"RaidChange": raidChange_1.RaidChange,
|
|
130
|
+
"RaidCreateRequest": raidCreateRequest_1.RaidCreateRequest,
|
|
131
|
+
"RaidDto": raidDto_1.RaidDto,
|
|
132
|
+
"RaidUpdateRequest": raidUpdateRequest_1.RaidUpdateRequest,
|
|
133
|
+
"RegistrationAgency": registrationAgency_1.RegistrationAgency,
|
|
134
|
+
"RelatedObject": relatedObject_1.RelatedObject,
|
|
135
|
+
"RelatedObjectCategory": relatedObjectCategory_1.RelatedObjectCategory,
|
|
136
|
+
"RelatedObjectType": relatedObjectType_1.RelatedObjectType,
|
|
137
|
+
"RelatedRaid": relatedRaid_1.RelatedRaid,
|
|
138
|
+
"RelatedRaidType": relatedRaidType_1.RelatedRaidType,
|
|
183
139
|
"ServicePoint": servicePoint_1.ServicePoint,
|
|
184
|
-
"
|
|
185
|
-
"
|
|
186
|
-
"
|
|
187
|
-
"
|
|
188
|
-
"
|
|
140
|
+
"ServicePointCreateRequest": servicePointCreateRequest_1.ServicePointCreateRequest,
|
|
141
|
+
"ServicePointUpdateRequest": servicePointUpdateRequest_1.ServicePointUpdateRequest,
|
|
142
|
+
"SpatialCoverage": spatialCoverage_1.SpatialCoverage,
|
|
143
|
+
"SpatialCoveragePlace": spatialCoveragePlace_1.SpatialCoveragePlace,
|
|
144
|
+
"Subject": subject_1.Subject,
|
|
145
|
+
"SubjectKeyword": subjectKeyword_1.SubjectKeyword,
|
|
146
|
+
"Title": title_1.Title,
|
|
147
|
+
"TitleType": titleType_1.TitleType,
|
|
148
|
+
"TraditionalKnowledgeLabel": traditionalKnowledgeLabel_1.TraditionalKnowledgeLabel,
|
|
189
149
|
"ValidationFailure": validationFailure_1.ValidationFailure,
|
|
190
|
-
"
|
|
150
|
+
"ValidationFailureResponse": validationFailureResponse_1.ValidationFailureResponse,
|
|
191
151
|
};
|
|
192
152
|
class ObjectSerializer {
|
|
193
153
|
static findCorrectType(data, expectedType) {
|