@researchdatabox/raido-openapi-generated-node 0.0.2 → 5.0.0-RC1

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 (114) hide show
  1. package/dist/api.d.ts +1679 -0
  2. package/dist/api.js +701 -16
  3. package/dist/base.d.ts +55 -0
  4. package/dist/base.js +69 -0
  5. package/dist/common.d.ts +65 -0
  6. package/dist/common.js +144 -0
  7. package/dist/configuration.d.ts +83 -0
  8. package/dist/configuration.js +92 -0
  9. package/dist/{model/accessType.js → index.d.ts} +3 -9
  10. package/dist/index.js +32 -0
  11. package/package.json +12 -7
  12. package/dist/api/adminExperimentalApi.js +0 -1092
  13. package/dist/api/apis.js +0 -41
  14. package/dist/api/basicRaidExperimentalApi.js +0 -561
  15. package/dist/api/publicExperimentalApi.js +0 -264
  16. package/dist/api/raidoStableV1Api.js +0 -369
  17. package/dist/api/unapprovedExperimentalApi.js +0 -147
  18. package/dist/model/access.js +0 -44
  19. package/dist/model/accessBlock.js +0 -35
  20. package/dist/model/accessStatement.js +0 -35
  21. package/dist/model/accessTypeWithSchemaUri.js +0 -35
  22. package/dist/model/alternateIdentifier.js +0 -35
  23. package/dist/model/alternateIdentifierBlock.js +0 -35
  24. package/dist/model/alternateUrl.js +0 -29
  25. package/dist/model/alternateUrlBlock.js +0 -29
  26. package/dist/model/apiKey.js +0 -74
  27. package/dist/model/appUser.js +0 -83
  28. package/dist/model/appUserExtraV1.js +0 -44
  29. package/dist/model/authzRequestExtraV1.js +0 -104
  30. package/dist/model/authzRequestStatus.js +0 -20
  31. package/dist/model/closedRaid.js +0 -35
  32. package/dist/model/contributor.js +0 -59
  33. package/dist/model/contributorBlock.js +0 -47
  34. package/dist/model/contributorIdentifierSchemeType.js +0 -18
  35. package/dist/model/contributorPosition.js +0 -47
  36. package/dist/model/contributorPositionRaidMetadataSchemaType.js +0 -22
  37. package/dist/model/contributorPositionSchemeType.js +0 -18
  38. package/dist/model/contributorPositionWithSchemaUri.js +0 -47
  39. package/dist/model/contributorRole.js +0 -35
  40. package/dist/model/contributorRoleCreditNisoOrgType.js +0 -31
  41. package/dist/model/contributorRoleSchemeType.js +0 -18
  42. package/dist/model/contributorRoleWithSchemaUri.js +0 -35
  43. package/dist/model/datesBlock.js +0 -35
  44. package/dist/model/description.js +0 -41
  45. package/dist/model/descriptionBlock.js +0 -35
  46. package/dist/model/descriptionType.js +0 -19
  47. package/dist/model/descriptionTypeWithSchemaUri.js +0 -35
  48. package/dist/model/failureResponse.js +0 -53
  49. package/dist/model/generateApiTokenRequest.js +0 -29
  50. package/dist/model/generateApiTokenResponse.js +0 -35
  51. package/dist/model/id.js +0 -89
  52. package/dist/model/idBlock.js +0 -95
  53. package/dist/model/language.js +0 -35
  54. package/dist/model/legacyMetadataSchemaV1.js +0 -68
  55. package/dist/model/migrateLegacyRaidRequest.js +0 -35
  56. package/dist/model/migrateLegacyRaidRequestMintRequest.js +0 -41
  57. package/dist/model/mintRaidoSchemaV1Request.js +0 -38
  58. package/dist/model/mintRaidoSchemaV1RequestMintRequest.js +0 -32
  59. package/dist/model/mintResponse.js +0 -41
  60. package/dist/model/modelDate.js +0 -38
  61. package/dist/model/models.js +0 -506
  62. package/dist/model/organisation.js +0 -41
  63. package/dist/model/organisationBlock.js +0 -41
  64. package/dist/model/organisationIdentifierSchemeType.js +0 -18
  65. package/dist/model/organisationRole.js +0 -47
  66. package/dist/model/organisationRoleSchemeType.js +0 -18
  67. package/dist/model/organisationRoleType.js +0 -22
  68. package/dist/model/organisationRoleWithSchemaUri.js +0 -47
  69. package/dist/model/owner.js +0 -47
  70. package/dist/model/publicClosedMetadataSchemaV1.js +0 -41
  71. package/dist/model/publicRaidMetadataSchemaV1.js +0 -116
  72. package/dist/model/publicReadRaidMetadataResponseV1.js +0 -116
  73. package/dist/model/publicReadRaidResponseV3.js +0 -56
  74. package/dist/model/publicServicePoint.js +0 -38
  75. package/dist/model/raidCreateRequest.js +0 -107
  76. package/dist/model/raidDto.js +0 -107
  77. package/dist/model/raidListItemV2.js +0 -53
  78. package/dist/model/raidListItemV3.js +0 -53
  79. package/dist/model/raidListRequestV2.js +0 -35
  80. package/dist/model/raidUpdateRequest.js +0 -107
  81. package/dist/model/raidoMetadataSchemaV1.js +0 -116
  82. package/dist/model/raidoMetadataSchemaV2.js +0 -116
  83. package/dist/model/raidoMetaschema.js +0 -22
  84. package/dist/model/raidoMetaschemaV2.js +0 -23
  85. package/dist/model/readRaidResponseV2.js +0 -71
  86. package/dist/model/readRaidV2Request.js +0 -29
  87. package/dist/model/registrationAgency.js +0 -38
  88. package/dist/model/relatedObject.js +0 -47
  89. package/dist/model/relatedObjectBlock.js +0 -53
  90. package/dist/model/relatedObjectCategory.js +0 -35
  91. package/dist/model/relatedObjectType.js +0 -35
  92. package/dist/model/relatedRaid.js +0 -35
  93. package/dist/model/relatedRaidBlock.js +0 -41
  94. package/dist/model/relatedRaidType.js +0 -35
  95. package/dist/model/servicePoint.js +0 -74
  96. package/dist/model/spatialCoverage.js +0 -47
  97. package/dist/model/spatialCoverageBlock.js +0 -41
  98. package/dist/model/subject.js +0 -41
  99. package/dist/model/subjectBlock.js +0 -41
  100. package/dist/model/subjectKeyword.js +0 -35
  101. package/dist/model/title.js +0 -53
  102. package/dist/model/titleBlock.js +0 -47
  103. package/dist/model/titleType.js +0 -19
  104. package/dist/model/titleTypeWithSchemaUri.js +0 -35
  105. package/dist/model/traditionalKnowledgeLabel.js +0 -35
  106. package/dist/model/traditionalKnowledgeLabelBlock.js +0 -29
  107. package/dist/model/updateAuthzRequest.js +0 -35
  108. package/dist/model/updateAuthzRequestStatus.js +0 -47
  109. package/dist/model/updateAuthzResponse.js +0 -35
  110. package/dist/model/updateRaidoSchemaV1Request.js +0 -29
  111. package/dist/model/updateRaidoSchemaV2Request.js +0 -29
  112. package/dist/model/validationFailure.js +0 -41
  113. package/dist/model/validationFailureResponse.js +0 -59
  114. package/dist/model/versionResult.js +0 -47
@@ -1,41 +0,0 @@
1
- "use strict";
2
- /**
3
- * RAID v2 API
4
- * This file is where all the endpoint paths are defined, it\'s the \"top level\' of the OpenAPI definition that links all the different files together. The `3.0` in the filename refers to this file being based on OpenAPI 3.0 as opposed to OpenAPI 3.1, which the tooling doesn\'t support yet. The `2.0.0` in the version field refers to the fact that there\'s already a `1.0.0` used for the legacy RAiD application (not used in this project, see ../idl-raid-v1). Note that swagger ui doesn\'t currently work with our spec, see https://github.com/swagger-api/swagger-ui/issues/7724 But the spec works fine with openapi-generator tooling.
5
- *
6
- * The version of the OpenAPI document: 2.0.0
7
- * Contact: contact@raid.org
8
- *
9
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
10
- * https://openapi-generator.tech
11
- * Do not edit the class manually.
12
- */
13
- Object.defineProperty(exports, "__esModule", { value: true });
14
- exports.MintResponse = void 0;
15
- class MintResponse {
16
- 'success';
17
- 'raid';
18
- 'failures';
19
- static discriminator = undefined;
20
- static attributeTypeMap = [
21
- {
22
- "name": "success",
23
- "baseName": "success",
24
- "type": "boolean"
25
- },
26
- {
27
- "name": "raid",
28
- "baseName": "raid",
29
- "type": "ReadRaidResponseV2"
30
- },
31
- {
32
- "name": "failures",
33
- "baseName": "failures",
34
- "type": "Array<ValidationFailure>"
35
- }
36
- ];
37
- static getAttributeTypeMap() {
38
- return MintResponse.attributeTypeMap;
39
- }
40
- }
41
- exports.MintResponse = MintResponse;
@@ -1,38 +0,0 @@
1
- "use strict";
2
- /**
3
- * RAID v2 API
4
- * This file is where all the endpoint paths are defined, it\'s the \"top level\' of the OpenAPI definition that links all the different files together. The `3.0` in the filename refers to this file being based on OpenAPI 3.0 as opposed to OpenAPI 3.1, which the tooling doesn\'t support yet. The `2.0.0` in the version field refers to the fact that there\'s already a `1.0.0` used for the legacy RAiD application (not used in this project, see ../idl-raid-v1). Note that swagger ui doesn\'t currently work with our spec, see https://github.com/swagger-api/swagger-ui/issues/7724 But the spec works fine with openapi-generator tooling.
5
- *
6
- * The version of the OpenAPI document: 2.0.0
7
- * Contact: contact@raid.org
8
- *
9
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
10
- * https://openapi-generator.tech
11
- * Do not edit the class manually.
12
- */
13
- Object.defineProperty(exports, "__esModule", { value: true });
14
- exports.ModelDate = void 0;
15
- /**
16
- * Metadata schema block containing the start and end date of the RAiD.
17
- */
18
- class ModelDate {
19
- 'startDate';
20
- 'endDate';
21
- static discriminator = undefined;
22
- static attributeTypeMap = [
23
- {
24
- "name": "startDate",
25
- "baseName": "startDate",
26
- "type": "string"
27
- },
28
- {
29
- "name": "endDate",
30
- "baseName": "endDate",
31
- "type": "string"
32
- }
33
- ];
34
- static getAttributeTypeMap() {
35
- return ModelDate.attributeTypeMap;
36
- }
37
- }
38
- exports.ModelDate = ModelDate;
@@ -1,506 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.VoidAuth = exports.OAuth = exports.ApiKeyAuth = exports.HttpBearerAuth = exports.HttpBasicAuth = exports.ObjectSerializer = void 0;
18
- __exportStar(require("./access"), exports);
19
- __exportStar(require("./accessBlock"), exports);
20
- __exportStar(require("./accessStatement"), exports);
21
- __exportStar(require("./accessType"), exports);
22
- __exportStar(require("./accessTypeWithSchemaUri"), exports);
23
- __exportStar(require("./alternateIdentifier"), exports);
24
- __exportStar(require("./alternateIdentifierBlock"), exports);
25
- __exportStar(require("./alternateUrl"), exports);
26
- __exportStar(require("./alternateUrlBlock"), exports);
27
- __exportStar(require("./apiKey"), exports);
28
- __exportStar(require("./appUser"), exports);
29
- __exportStar(require("./appUserExtraV1"), exports);
30
- __exportStar(require("./authzRequestExtraV1"), exports);
31
- __exportStar(require("./authzRequestStatus"), exports);
32
- __exportStar(require("./closedRaid"), exports);
33
- __exportStar(require("./contributor"), exports);
34
- __exportStar(require("./contributorBlock"), exports);
35
- __exportStar(require("./contributorIdentifierSchemeType"), exports);
36
- __exportStar(require("./contributorPosition"), exports);
37
- __exportStar(require("./contributorPositionRaidMetadataSchemaType"), exports);
38
- __exportStar(require("./contributorPositionSchemeType"), exports);
39
- __exportStar(require("./contributorPositionWithSchemaUri"), exports);
40
- __exportStar(require("./contributorRole"), exports);
41
- __exportStar(require("./contributorRoleCreditNisoOrgType"), exports);
42
- __exportStar(require("./contributorRoleSchemeType"), exports);
43
- __exportStar(require("./contributorRoleWithSchemaUri"), exports);
44
- __exportStar(require("./datesBlock"), exports);
45
- __exportStar(require("./description"), exports);
46
- __exportStar(require("./descriptionBlock"), exports);
47
- __exportStar(require("./descriptionType"), exports);
48
- __exportStar(require("./descriptionTypeWithSchemaUri"), exports);
49
- __exportStar(require("./failureResponse"), exports);
50
- __exportStar(require("./generateApiTokenRequest"), exports);
51
- __exportStar(require("./generateApiTokenResponse"), exports);
52
- __exportStar(require("./id"), exports);
53
- __exportStar(require("./idBlock"), exports);
54
- __exportStar(require("./language"), exports);
55
- __exportStar(require("./legacyMetadataSchemaV1"), exports);
56
- __exportStar(require("./migrateLegacyRaidRequest"), exports);
57
- __exportStar(require("./migrateLegacyRaidRequestMintRequest"), exports);
58
- __exportStar(require("./mintRaidoSchemaV1Request"), exports);
59
- __exportStar(require("./mintRaidoSchemaV1RequestMintRequest"), exports);
60
- __exportStar(require("./mintResponse"), exports);
61
- __exportStar(require("./modelDate"), exports);
62
- __exportStar(require("./organisation"), exports);
63
- __exportStar(require("./organisationBlock"), exports);
64
- __exportStar(require("./organisationIdentifierSchemeType"), exports);
65
- __exportStar(require("./organisationRole"), exports);
66
- __exportStar(require("./organisationRoleSchemeType"), exports);
67
- __exportStar(require("./organisationRoleType"), exports);
68
- __exportStar(require("./organisationRoleWithSchemaUri"), exports);
69
- __exportStar(require("./owner"), exports);
70
- __exportStar(require("./publicClosedMetadataSchemaV1"), exports);
71
- __exportStar(require("./publicRaidMetadataSchemaV1"), exports);
72
- __exportStar(require("./publicReadRaidMetadataResponseV1"), exports);
73
- __exportStar(require("./publicReadRaidResponseV3"), exports);
74
- __exportStar(require("./publicServicePoint"), exports);
75
- __exportStar(require("./raidCreateRequest"), exports);
76
- __exportStar(require("./raidDto"), exports);
77
- __exportStar(require("./raidListItemV2"), exports);
78
- __exportStar(require("./raidListItemV3"), exports);
79
- __exportStar(require("./raidListRequestV2"), exports);
80
- __exportStar(require("./raidUpdateRequest"), exports);
81
- __exportStar(require("./raidoMetadataSchemaV1"), exports);
82
- __exportStar(require("./raidoMetadataSchemaV2"), exports);
83
- __exportStar(require("./raidoMetaschema"), exports);
84
- __exportStar(require("./raidoMetaschemaV2"), exports);
85
- __exportStar(require("./readRaidResponseV2"), exports);
86
- __exportStar(require("./readRaidV2Request"), exports);
87
- __exportStar(require("./registrationAgency"), exports);
88
- __exportStar(require("./relatedObject"), exports);
89
- __exportStar(require("./relatedObjectBlock"), exports);
90
- __exportStar(require("./relatedObjectCategory"), exports);
91
- __exportStar(require("./relatedObjectType"), exports);
92
- __exportStar(require("./relatedRaid"), exports);
93
- __exportStar(require("./relatedRaidBlock"), exports);
94
- __exportStar(require("./relatedRaidType"), exports);
95
- __exportStar(require("./servicePoint"), exports);
96
- __exportStar(require("./spatialCoverage"), exports);
97
- __exportStar(require("./spatialCoverageBlock"), exports);
98
- __exportStar(require("./subject"), exports);
99
- __exportStar(require("./subjectBlock"), exports);
100
- __exportStar(require("./subjectKeyword"), exports);
101
- __exportStar(require("./title"), exports);
102
- __exportStar(require("./titleBlock"), exports);
103
- __exportStar(require("./titleType"), exports);
104
- __exportStar(require("./titleTypeWithSchemaUri"), exports);
105
- __exportStar(require("./traditionalKnowledgeLabel"), exports);
106
- __exportStar(require("./traditionalKnowledgeLabelBlock"), exports);
107
- __exportStar(require("./updateAuthzRequest"), exports);
108
- __exportStar(require("./updateAuthzRequestStatus"), exports);
109
- __exportStar(require("./updateAuthzResponse"), exports);
110
- __exportStar(require("./updateRaidoSchemaV1Request"), exports);
111
- __exportStar(require("./updateRaidoSchemaV2Request"), exports);
112
- __exportStar(require("./validationFailure"), exports);
113
- __exportStar(require("./validationFailureResponse"), exports);
114
- __exportStar(require("./versionResult"), exports);
115
- const access_1 = require("./access");
116
- const accessBlock_1 = require("./accessBlock");
117
- const accessStatement_1 = require("./accessStatement");
118
- const accessType_1 = require("./accessType");
119
- const accessTypeWithSchemaUri_1 = require("./accessTypeWithSchemaUri");
120
- const alternateIdentifier_1 = require("./alternateIdentifier");
121
- const alternateIdentifierBlock_1 = require("./alternateIdentifierBlock");
122
- const alternateUrl_1 = require("./alternateUrl");
123
- const alternateUrlBlock_1 = require("./alternateUrlBlock");
124
- const apiKey_1 = require("./apiKey");
125
- const appUser_1 = require("./appUser");
126
- const appUserExtraV1_1 = require("./appUserExtraV1");
127
- const authzRequestExtraV1_1 = require("./authzRequestExtraV1");
128
- const authzRequestStatus_1 = require("./authzRequestStatus");
129
- const closedRaid_1 = require("./closedRaid");
130
- const contributor_1 = require("./contributor");
131
- const contributorBlock_1 = require("./contributorBlock");
132
- const contributorIdentifierSchemeType_1 = require("./contributorIdentifierSchemeType");
133
- const contributorPosition_1 = require("./contributorPosition");
134
- const contributorPositionRaidMetadataSchemaType_1 = require("./contributorPositionRaidMetadataSchemaType");
135
- const contributorPositionSchemeType_1 = require("./contributorPositionSchemeType");
136
- const contributorPositionWithSchemaUri_1 = require("./contributorPositionWithSchemaUri");
137
- const contributorRole_1 = require("./contributorRole");
138
- const contributorRoleCreditNisoOrgType_1 = require("./contributorRoleCreditNisoOrgType");
139
- const contributorRoleSchemeType_1 = require("./contributorRoleSchemeType");
140
- const contributorRoleWithSchemaUri_1 = require("./contributorRoleWithSchemaUri");
141
- const datesBlock_1 = require("./datesBlock");
142
- const description_1 = require("./description");
143
- const descriptionBlock_1 = require("./descriptionBlock");
144
- const descriptionType_1 = require("./descriptionType");
145
- const descriptionTypeWithSchemaUri_1 = require("./descriptionTypeWithSchemaUri");
146
- const failureResponse_1 = require("./failureResponse");
147
- const generateApiTokenRequest_1 = require("./generateApiTokenRequest");
148
- const generateApiTokenResponse_1 = require("./generateApiTokenResponse");
149
- const id_1 = require("./id");
150
- const idBlock_1 = require("./idBlock");
151
- const language_1 = require("./language");
152
- const legacyMetadataSchemaV1_1 = require("./legacyMetadataSchemaV1");
153
- const migrateLegacyRaidRequest_1 = require("./migrateLegacyRaidRequest");
154
- const migrateLegacyRaidRequestMintRequest_1 = require("./migrateLegacyRaidRequestMintRequest");
155
- const mintRaidoSchemaV1Request_1 = require("./mintRaidoSchemaV1Request");
156
- const mintRaidoSchemaV1RequestMintRequest_1 = require("./mintRaidoSchemaV1RequestMintRequest");
157
- const mintResponse_1 = require("./mintResponse");
158
- const modelDate_1 = require("./modelDate");
159
- const organisation_1 = require("./organisation");
160
- const organisationBlock_1 = require("./organisationBlock");
161
- const organisationIdentifierSchemeType_1 = require("./organisationIdentifierSchemeType");
162
- const organisationRole_1 = require("./organisationRole");
163
- const organisationRoleSchemeType_1 = require("./organisationRoleSchemeType");
164
- const organisationRoleType_1 = require("./organisationRoleType");
165
- const organisationRoleWithSchemaUri_1 = require("./organisationRoleWithSchemaUri");
166
- const owner_1 = require("./owner");
167
- const publicClosedMetadataSchemaV1_1 = require("./publicClosedMetadataSchemaV1");
168
- const publicRaidMetadataSchemaV1_1 = require("./publicRaidMetadataSchemaV1");
169
- const publicReadRaidMetadataResponseV1_1 = require("./publicReadRaidMetadataResponseV1");
170
- const publicReadRaidResponseV3_1 = require("./publicReadRaidResponseV3");
171
- const publicServicePoint_1 = require("./publicServicePoint");
172
- const raidCreateRequest_1 = require("./raidCreateRequest");
173
- const raidDto_1 = require("./raidDto");
174
- const raidListItemV2_1 = require("./raidListItemV2");
175
- const raidListItemV3_1 = require("./raidListItemV3");
176
- const raidListRequestV2_1 = require("./raidListRequestV2");
177
- const raidUpdateRequest_1 = require("./raidUpdateRequest");
178
- const raidoMetadataSchemaV1_1 = require("./raidoMetadataSchemaV1");
179
- const raidoMetadataSchemaV2_1 = require("./raidoMetadataSchemaV2");
180
- const raidoMetaschema_1 = require("./raidoMetaschema");
181
- const raidoMetaschemaV2_1 = require("./raidoMetaschemaV2");
182
- const readRaidResponseV2_1 = require("./readRaidResponseV2");
183
- const readRaidV2Request_1 = require("./readRaidV2Request");
184
- const registrationAgency_1 = require("./registrationAgency");
185
- const relatedObject_1 = require("./relatedObject");
186
- const relatedObjectBlock_1 = require("./relatedObjectBlock");
187
- const relatedObjectCategory_1 = require("./relatedObjectCategory");
188
- const relatedObjectType_1 = require("./relatedObjectType");
189
- const relatedRaid_1 = require("./relatedRaid");
190
- const relatedRaidBlock_1 = require("./relatedRaidBlock");
191
- const relatedRaidType_1 = require("./relatedRaidType");
192
- const servicePoint_1 = require("./servicePoint");
193
- const spatialCoverage_1 = require("./spatialCoverage");
194
- const spatialCoverageBlock_1 = require("./spatialCoverageBlock");
195
- const subject_1 = require("./subject");
196
- const subjectBlock_1 = require("./subjectBlock");
197
- const subjectKeyword_1 = require("./subjectKeyword");
198
- const title_1 = require("./title");
199
- const titleBlock_1 = require("./titleBlock");
200
- const titleType_1 = require("./titleType");
201
- const titleTypeWithSchemaUri_1 = require("./titleTypeWithSchemaUri");
202
- const traditionalKnowledgeLabel_1 = require("./traditionalKnowledgeLabel");
203
- const traditionalKnowledgeLabelBlock_1 = require("./traditionalKnowledgeLabelBlock");
204
- const updateAuthzRequest_1 = require("./updateAuthzRequest");
205
- const updateAuthzRequestStatus_1 = require("./updateAuthzRequestStatus");
206
- const updateAuthzResponse_1 = require("./updateAuthzResponse");
207
- const updateRaidoSchemaV1Request_1 = require("./updateRaidoSchemaV1Request");
208
- const updateRaidoSchemaV2Request_1 = require("./updateRaidoSchemaV2Request");
209
- const validationFailure_1 = require("./validationFailure");
210
- const validationFailureResponse_1 = require("./validationFailureResponse");
211
- const versionResult_1 = require("./versionResult");
212
- /* tslint:disable:no-unused-variable */
213
- let primitives = [
214
- "string",
215
- "boolean",
216
- "double",
217
- "integer",
218
- "long",
219
- "float",
220
- "number",
221
- "any"
222
- ];
223
- let enumsMap = {
224
- "AccessType": accessType_1.AccessType,
225
- "AuthzRequestStatus": authzRequestStatus_1.AuthzRequestStatus,
226
- "ContributorIdentifierSchemeType": contributorIdentifierSchemeType_1.ContributorIdentifierSchemeType,
227
- "ContributorPositionRaidMetadataSchemaType": contributorPositionRaidMetadataSchemaType_1.ContributorPositionRaidMetadataSchemaType,
228
- "ContributorPositionSchemeType": contributorPositionSchemeType_1.ContributorPositionSchemeType,
229
- "ContributorRoleCreditNisoOrgType": contributorRoleCreditNisoOrgType_1.ContributorRoleCreditNisoOrgType,
230
- "ContributorRoleSchemeType": contributorRoleSchemeType_1.ContributorRoleSchemeType,
231
- "DescriptionType": descriptionType_1.DescriptionType,
232
- "OrganisationIdentifierSchemeType": organisationIdentifierSchemeType_1.OrganisationIdentifierSchemeType,
233
- "OrganisationRoleSchemeType": organisationRoleSchemeType_1.OrganisationRoleSchemeType,
234
- "OrganisationRoleType": organisationRoleType_1.OrganisationRoleType,
235
- "RaidoMetaschema": raidoMetaschema_1.RaidoMetaschema,
236
- "RaidoMetaschemaV2": raidoMetaschemaV2_1.RaidoMetaschemaV2,
237
- "TitleType": titleType_1.TitleType,
238
- };
239
- let typeMap = {
240
- "Access": access_1.Access,
241
- "AccessBlock": accessBlock_1.AccessBlock,
242
- "AccessStatement": accessStatement_1.AccessStatement,
243
- "AccessTypeWithSchemaUri": accessTypeWithSchemaUri_1.AccessTypeWithSchemaUri,
244
- "AlternateIdentifier": alternateIdentifier_1.AlternateIdentifier,
245
- "AlternateIdentifierBlock": alternateIdentifierBlock_1.AlternateIdentifierBlock,
246
- "AlternateUrl": alternateUrl_1.AlternateUrl,
247
- "AlternateUrlBlock": alternateUrlBlock_1.AlternateUrlBlock,
248
- "ApiKey": apiKey_1.ApiKey,
249
- "AppUser": appUser_1.AppUser,
250
- "AppUserExtraV1": appUserExtraV1_1.AppUserExtraV1,
251
- "AuthzRequestExtraV1": authzRequestExtraV1_1.AuthzRequestExtraV1,
252
- "ClosedRaid": closedRaid_1.ClosedRaid,
253
- "Contributor": contributor_1.Contributor,
254
- "ContributorBlock": contributorBlock_1.ContributorBlock,
255
- "ContributorPosition": contributorPosition_1.ContributorPosition,
256
- "ContributorPositionWithSchemaUri": contributorPositionWithSchemaUri_1.ContributorPositionWithSchemaUri,
257
- "ContributorRole": contributorRole_1.ContributorRole,
258
- "ContributorRoleWithSchemaUri": contributorRoleWithSchemaUri_1.ContributorRoleWithSchemaUri,
259
- "DatesBlock": datesBlock_1.DatesBlock,
260
- "Description": description_1.Description,
261
- "DescriptionBlock": descriptionBlock_1.DescriptionBlock,
262
- "DescriptionTypeWithSchemaUri": descriptionTypeWithSchemaUri_1.DescriptionTypeWithSchemaUri,
263
- "FailureResponse": failureResponse_1.FailureResponse,
264
- "GenerateApiTokenRequest": generateApiTokenRequest_1.GenerateApiTokenRequest,
265
- "GenerateApiTokenResponse": generateApiTokenResponse_1.GenerateApiTokenResponse,
266
- "Id": id_1.Id,
267
- "IdBlock": idBlock_1.IdBlock,
268
- "Language": language_1.Language,
269
- "LegacyMetadataSchemaV1": legacyMetadataSchemaV1_1.LegacyMetadataSchemaV1,
270
- "MigrateLegacyRaidRequest": migrateLegacyRaidRequest_1.MigrateLegacyRaidRequest,
271
- "MigrateLegacyRaidRequestMintRequest": migrateLegacyRaidRequestMintRequest_1.MigrateLegacyRaidRequestMintRequest,
272
- "MintRaidoSchemaV1Request": mintRaidoSchemaV1Request_1.MintRaidoSchemaV1Request,
273
- "MintRaidoSchemaV1RequestMintRequest": mintRaidoSchemaV1RequestMintRequest_1.MintRaidoSchemaV1RequestMintRequest,
274
- "MintResponse": mintResponse_1.MintResponse,
275
- "ModelDate": modelDate_1.ModelDate,
276
- "Organisation": organisation_1.Organisation,
277
- "OrganisationBlock": organisationBlock_1.OrganisationBlock,
278
- "OrganisationRole": organisationRole_1.OrganisationRole,
279
- "OrganisationRoleWithSchemaUri": organisationRoleWithSchemaUri_1.OrganisationRoleWithSchemaUri,
280
- "Owner": owner_1.Owner,
281
- "PublicClosedMetadataSchemaV1": publicClosedMetadataSchemaV1_1.PublicClosedMetadataSchemaV1,
282
- "PublicRaidMetadataSchemaV1": publicRaidMetadataSchemaV1_1.PublicRaidMetadataSchemaV1,
283
- "PublicReadRaidMetadataResponseV1": publicReadRaidMetadataResponseV1_1.PublicReadRaidMetadataResponseV1,
284
- "PublicReadRaidResponseV3": publicReadRaidResponseV3_1.PublicReadRaidResponseV3,
285
- "PublicServicePoint": publicServicePoint_1.PublicServicePoint,
286
- "RaidCreateRequest": raidCreateRequest_1.RaidCreateRequest,
287
- "RaidDto": raidDto_1.RaidDto,
288
- "RaidListItemV2": raidListItemV2_1.RaidListItemV2,
289
- "RaidListItemV3": raidListItemV3_1.RaidListItemV3,
290
- "RaidListRequestV2": raidListRequestV2_1.RaidListRequestV2,
291
- "RaidUpdateRequest": raidUpdateRequest_1.RaidUpdateRequest,
292
- "RaidoMetadataSchemaV1": raidoMetadataSchemaV1_1.RaidoMetadataSchemaV1,
293
- "RaidoMetadataSchemaV2": raidoMetadataSchemaV2_1.RaidoMetadataSchemaV2,
294
- "ReadRaidResponseV2": readRaidResponseV2_1.ReadRaidResponseV2,
295
- "ReadRaidV2Request": readRaidV2Request_1.ReadRaidV2Request,
296
- "RegistrationAgency": registrationAgency_1.RegistrationAgency,
297
- "RelatedObject": relatedObject_1.RelatedObject,
298
- "RelatedObjectBlock": relatedObjectBlock_1.RelatedObjectBlock,
299
- "RelatedObjectCategory": relatedObjectCategory_1.RelatedObjectCategory,
300
- "RelatedObjectType": relatedObjectType_1.RelatedObjectType,
301
- "RelatedRaid": relatedRaid_1.RelatedRaid,
302
- "RelatedRaidBlock": relatedRaidBlock_1.RelatedRaidBlock,
303
- "RelatedRaidType": relatedRaidType_1.RelatedRaidType,
304
- "ServicePoint": servicePoint_1.ServicePoint,
305
- "SpatialCoverage": spatialCoverage_1.SpatialCoverage,
306
- "SpatialCoverageBlock": spatialCoverageBlock_1.SpatialCoverageBlock,
307
- "Subject": subject_1.Subject,
308
- "SubjectBlock": subjectBlock_1.SubjectBlock,
309
- "SubjectKeyword": subjectKeyword_1.SubjectKeyword,
310
- "Title": title_1.Title,
311
- "TitleBlock": titleBlock_1.TitleBlock,
312
- "TitleTypeWithSchemaUri": titleTypeWithSchemaUri_1.TitleTypeWithSchemaUri,
313
- "TraditionalKnowledgeLabel": traditionalKnowledgeLabel_1.TraditionalKnowledgeLabel,
314
- "TraditionalKnowledgeLabelBlock": traditionalKnowledgeLabelBlock_1.TraditionalKnowledgeLabelBlock,
315
- "UpdateAuthzRequest": updateAuthzRequest_1.UpdateAuthzRequest,
316
- "UpdateAuthzRequestStatus": updateAuthzRequestStatus_1.UpdateAuthzRequestStatus,
317
- "UpdateAuthzResponse": updateAuthzResponse_1.UpdateAuthzResponse,
318
- "UpdateRaidoSchemaV1Request": updateRaidoSchemaV1Request_1.UpdateRaidoSchemaV1Request,
319
- "UpdateRaidoSchemaV2Request": updateRaidoSchemaV2Request_1.UpdateRaidoSchemaV2Request,
320
- "ValidationFailure": validationFailure_1.ValidationFailure,
321
- "ValidationFailureResponse": validationFailureResponse_1.ValidationFailureResponse,
322
- "VersionResult": versionResult_1.VersionResult,
323
- };
324
- class ObjectSerializer {
325
- static findCorrectType(data, expectedType) {
326
- if (data == undefined) {
327
- return expectedType;
328
- }
329
- else if (primitives.indexOf(expectedType.toLowerCase()) !== -1) {
330
- return expectedType;
331
- }
332
- else if (expectedType === "Date") {
333
- return expectedType;
334
- }
335
- else {
336
- if (enumsMap[expectedType]) {
337
- return expectedType;
338
- }
339
- if (!typeMap[expectedType]) {
340
- return expectedType; // w/e we don't know the type
341
- }
342
- // Check the discriminator
343
- let discriminatorProperty = typeMap[expectedType].discriminator;
344
- if (discriminatorProperty == null) {
345
- return expectedType; // the type does not have a discriminator. use it.
346
- }
347
- else {
348
- if (data[discriminatorProperty]) {
349
- var discriminatorType = data[discriminatorProperty];
350
- if (typeMap[discriminatorType]) {
351
- return discriminatorType; // use the type given in the discriminator
352
- }
353
- else {
354
- return expectedType; // discriminator did not map to a type
355
- }
356
- }
357
- else {
358
- return expectedType; // discriminator was not present (or an empty string)
359
- }
360
- }
361
- }
362
- }
363
- static serialize(data, type) {
364
- if (data == undefined) {
365
- return data;
366
- }
367
- else if (primitives.indexOf(type.toLowerCase()) !== -1) {
368
- return data;
369
- }
370
- else if (type.lastIndexOf("Array<", 0) === 0) { // string.startsWith pre es6
371
- let subType = type.replace("Array<", ""); // Array<Type> => Type>
372
- subType = subType.substring(0, subType.length - 1); // Type> => Type
373
- let transformedData = [];
374
- for (let index = 0; index < data.length; index++) {
375
- let datum = data[index];
376
- transformedData.push(ObjectSerializer.serialize(datum, subType));
377
- }
378
- return transformedData;
379
- }
380
- else if (type === "Date") {
381
- return data.toISOString();
382
- }
383
- else {
384
- if (enumsMap[type]) {
385
- return data;
386
- }
387
- if (!typeMap[type]) { // in case we dont know the type
388
- return data;
389
- }
390
- // Get the actual type of this object
391
- type = this.findCorrectType(data, type);
392
- // get the map for the correct type.
393
- let attributeTypes = typeMap[type].getAttributeTypeMap();
394
- let instance = {};
395
- for (let index = 0; index < attributeTypes.length; index++) {
396
- let attributeType = attributeTypes[index];
397
- instance[attributeType.baseName] = ObjectSerializer.serialize(data[attributeType.name], attributeType.type);
398
- }
399
- return instance;
400
- }
401
- }
402
- static deserialize(data, type) {
403
- // polymorphism may change the actual type.
404
- type = ObjectSerializer.findCorrectType(data, type);
405
- if (data == undefined) {
406
- return data;
407
- }
408
- else if (primitives.indexOf(type.toLowerCase()) !== -1) {
409
- return data;
410
- }
411
- else if (type.lastIndexOf("Array<", 0) === 0) { // string.startsWith pre es6
412
- let subType = type.replace("Array<", ""); // Array<Type> => Type>
413
- subType = subType.substring(0, subType.length - 1); // Type> => Type
414
- let transformedData = [];
415
- for (let index = 0; index < data.length; index++) {
416
- let datum = data[index];
417
- transformedData.push(ObjectSerializer.deserialize(datum, subType));
418
- }
419
- return transformedData;
420
- }
421
- else if (type === "Date") {
422
- return new Date(data);
423
- }
424
- else {
425
- if (enumsMap[type]) { // is Enum
426
- return data;
427
- }
428
- if (!typeMap[type]) { // dont know the type
429
- return data;
430
- }
431
- let instance = new typeMap[type]();
432
- let attributeTypes = typeMap[type].getAttributeTypeMap();
433
- for (let index = 0; index < attributeTypes.length; index++) {
434
- let attributeType = attributeTypes[index];
435
- instance[attributeType.name] = ObjectSerializer.deserialize(data[attributeType.baseName], attributeType.type);
436
- }
437
- return instance;
438
- }
439
- }
440
- }
441
- exports.ObjectSerializer = ObjectSerializer;
442
- class HttpBasicAuth {
443
- username = '';
444
- password = '';
445
- applyToRequest(requestOptions) {
446
- requestOptions.auth = {
447
- username: this.username, password: this.password
448
- };
449
- }
450
- }
451
- exports.HttpBasicAuth = HttpBasicAuth;
452
- class HttpBearerAuth {
453
- accessToken = '';
454
- applyToRequest(requestOptions) {
455
- if (requestOptions && requestOptions.headers) {
456
- const accessToken = typeof this.accessToken === 'function'
457
- ? this.accessToken()
458
- : this.accessToken;
459
- requestOptions.headers["Authorization"] = "Bearer " + accessToken;
460
- }
461
- }
462
- }
463
- exports.HttpBearerAuth = HttpBearerAuth;
464
- class ApiKeyAuth {
465
- location;
466
- paramName;
467
- apiKey = '';
468
- constructor(location, paramName) {
469
- this.location = location;
470
- this.paramName = paramName;
471
- }
472
- applyToRequest(requestOptions) {
473
- if (this.location == "query") {
474
- requestOptions.qs[this.paramName] = this.apiKey;
475
- }
476
- else if (this.location == "header" && requestOptions && requestOptions.headers) {
477
- requestOptions.headers[this.paramName] = this.apiKey;
478
- }
479
- else if (this.location == 'cookie' && requestOptions && requestOptions.headers) {
480
- if (requestOptions.headers['Cookie']) {
481
- requestOptions.headers['Cookie'] += '; ' + this.paramName + '=' + encodeURIComponent(this.apiKey);
482
- }
483
- else {
484
- requestOptions.headers['Cookie'] = this.paramName + '=' + encodeURIComponent(this.apiKey);
485
- }
486
- }
487
- }
488
- }
489
- exports.ApiKeyAuth = ApiKeyAuth;
490
- class OAuth {
491
- accessToken = '';
492
- applyToRequest(requestOptions) {
493
- if (requestOptions && requestOptions.headers) {
494
- requestOptions.headers["Authorization"] = "Bearer " + this.accessToken;
495
- }
496
- }
497
- }
498
- exports.OAuth = OAuth;
499
- class VoidAuth {
500
- username = '';
501
- password = '';
502
- applyToRequest(_) {
503
- // Do nothing
504
- }
505
- }
506
- exports.VoidAuth = VoidAuth;
@@ -1,41 +0,0 @@
1
- "use strict";
2
- /**
3
- * RAID v2 API
4
- * This file is where all the endpoint paths are defined, it\'s the \"top level\' of the OpenAPI definition that links all the different files together. The `3.0` in the filename refers to this file being based on OpenAPI 3.0 as opposed to OpenAPI 3.1, which the tooling doesn\'t support yet. The `2.0.0` in the version field refers to the fact that there\'s already a `1.0.0` used for the legacy RAiD application (not used in this project, see ../idl-raid-v1). Note that swagger ui doesn\'t currently work with our spec, see https://github.com/swagger-api/swagger-ui/issues/7724 But the spec works fine with openapi-generator tooling.
5
- *
6
- * The version of the OpenAPI document: 2.0.0
7
- * Contact: contact@raid.org
8
- *
9
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
10
- * https://openapi-generator.tech
11
- * Do not edit the class manually.
12
- */
13
- Object.defineProperty(exports, "__esModule", { value: true });
14
- exports.Organisation = void 0;
15
- class Organisation {
16
- 'id';
17
- 'schemaUri';
18
- 'role';
19
- static discriminator = undefined;
20
- static attributeTypeMap = [
21
- {
22
- "name": "id",
23
- "baseName": "id",
24
- "type": "string"
25
- },
26
- {
27
- "name": "schemaUri",
28
- "baseName": "schemaUri",
29
- "type": "string"
30
- },
31
- {
32
- "name": "role",
33
- "baseName": "role",
34
- "type": "Array<OrganisationRoleWithSchemaUri>"
35
- }
36
- ];
37
- static getAttributeTypeMap() {
38
- return Organisation.attributeTypeMap;
39
- }
40
- }
41
- exports.Organisation = Organisation;
@@ -1,41 +0,0 @@
1
- "use strict";
2
- /**
3
- * RAID v2 API
4
- * This file is where all the endpoint paths are defined, it\'s the \"top level\' of the OpenAPI definition that links all the different files together. The `3.0` in the filename refers to this file being based on OpenAPI 3.0 as opposed to OpenAPI 3.1, which the tooling doesn\'t support yet. The `2.0.0` in the version field refers to the fact that there\'s already a `1.0.0` used for the legacy RAiD application (not used in this project, see ../idl-raid-v1). Note that swagger ui doesn\'t currently work with our spec, see https://github.com/swagger-api/swagger-ui/issues/7724 But the spec works fine with openapi-generator tooling.
5
- *
6
- * The version of the OpenAPI document: 2.0.0
7
- * Contact: contact@raid.org
8
- *
9
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
10
- * https://openapi-generator.tech
11
- * Do not edit the class manually.
12
- */
13
- Object.defineProperty(exports, "__esModule", { value: true });
14
- exports.OrganisationBlock = void 0;
15
- class OrganisationBlock {
16
- 'id';
17
- 'identifierSchemeUri';
18
- 'roles';
19
- static discriminator = undefined;
20
- static attributeTypeMap = [
21
- {
22
- "name": "id",
23
- "baseName": "id",
24
- "type": "string"
25
- },
26
- {
27
- "name": "identifierSchemeUri",
28
- "baseName": "identifierSchemeUri",
29
- "type": "OrganisationIdentifierSchemeType"
30
- },
31
- {
32
- "name": "roles",
33
- "baseName": "roles",
34
- "type": "Array<OrganisationRole>"
35
- }
36
- ];
37
- static getAttributeTypeMap() {
38
- return OrganisationBlock.attributeTypeMap;
39
- }
40
- }
41
- exports.OrganisationBlock = OrganisationBlock;