@researchdatabox/raido-openapi-generated-node 0.0.2 → 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/dist/api/apis.js +5 -11
- package/dist/api/{basicRaidExperimentalApi.js → raidApi.js} +81 -190
- package/dist/api/{raidoStableV1Api.js → servicePointApi.js} +40 -59
- package/dist/model/access.js +5 -5
- package/dist/model/accessStatement.js +1 -1
- package/dist/model/accessType.js +22 -6
- package/dist/model/alternateIdentifier.js +1 -1
- package/dist/model/alternateUrl.js +1 -1
- package/dist/model/closedRaid.js +1 -1
- package/dist/model/contributor.js +3 -3
- package/dist/model/contributorPosition.js +9 -9
- package/dist/model/contributorRole.js +9 -9
- package/dist/model/description.js +2 -2
- package/dist/model/descriptionType.js +22 -6
- package/dist/model/failureResponse.js +1 -1
- package/dist/model/id.js +1 -10
- package/dist/model/language.js +1 -1
- package/dist/model/modelDate.js +1 -1
- package/dist/model/models.js +16 -188
- package/dist/model/organisation.js +2 -2
- package/dist/model/organisationRole.js +9 -9
- package/dist/model/owner.js +1 -1
- package/dist/model/{raidListItemV2.js → raidChange.js} +21 -21
- package/dist/model/raidCreateRequest.js +1 -1
- package/dist/model/raidDto.js +1 -1
- package/dist/model/raidUpdateRequest.js +1 -1
- package/dist/model/registrationAgency.js +1 -1
- package/dist/model/relatedObject.js +2 -2
- package/dist/model/relatedObjectCategory.js +1 -1
- package/dist/model/relatedObjectType.js +1 -1
- package/dist/model/relatedRaid.js +1 -1
- package/dist/model/relatedRaidType.js +1 -1
- package/dist/model/servicePoint.js +19 -1
- package/dist/model/servicePointCreateRequest.js +104 -0
- package/dist/model/servicePointUpdateRequest.js +113 -0
- package/dist/model/spatialCoverage.js +2 -8
- package/dist/model/{updateRaidoSchemaV2Request.js → spatialCoveragePlace.js} +15 -9
- package/dist/model/subject.js +1 -1
- package/dist/model/subjectKeyword.js +1 -1
- package/dist/model/title.js +2 -2
- package/dist/model/titleType.js +22 -6
- package/dist/model/traditionalKnowledgeLabel.js +1 -1
- package/dist/model/validationFailure.js +1 -1
- package/dist/model/validationFailureResponse.js +1 -1
- package/package.json +3 -3
- package/dist/api/adminExperimentalApi.js +0 -1092
- package/dist/api/publicExperimentalApi.js +0 -264
- package/dist/api/unapprovedExperimentalApi.js +0 -147
- package/dist/model/accessBlock.js +0 -35
- package/dist/model/accessTypeWithSchemaUri.js +0 -35
- package/dist/model/alternateIdentifierBlock.js +0 -35
- package/dist/model/alternateUrlBlock.js +0 -29
- package/dist/model/apiKey.js +0 -74
- package/dist/model/appUser.js +0 -83
- package/dist/model/appUserExtraV1.js +0 -44
- package/dist/model/authzRequestExtraV1.js +0 -104
- package/dist/model/authzRequestStatus.js +0 -20
- package/dist/model/contributorBlock.js +0 -47
- package/dist/model/contributorIdentifierSchemeType.js +0 -18
- package/dist/model/contributorPositionRaidMetadataSchemaType.js +0 -22
- package/dist/model/contributorPositionSchemeType.js +0 -18
- package/dist/model/contributorPositionWithSchemaUri.js +0 -47
- package/dist/model/contributorRoleCreditNisoOrgType.js +0 -31
- package/dist/model/contributorRoleSchemeType.js +0 -18
- package/dist/model/contributorRoleWithSchemaUri.js +0 -35
- package/dist/model/datesBlock.js +0 -35
- package/dist/model/descriptionBlock.js +0 -35
- package/dist/model/descriptionTypeWithSchemaUri.js +0 -35
- package/dist/model/generateApiTokenRequest.js +0 -29
- package/dist/model/generateApiTokenResponse.js +0 -35
- package/dist/model/idBlock.js +0 -95
- 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/organisationBlock.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/organisationRoleWithSchemaUri.js +0 -47
- package/dist/model/publicClosedMetadataSchemaV1.js +0 -41
- package/dist/model/publicRaidMetadataSchemaV1.js +0 -116
- package/dist/model/publicReadRaidMetadataResponseV1.js +0 -116
- package/dist/model/publicReadRaidResponseV3.js +0 -56
- package/dist/model/publicServicePoint.js +0 -38
- package/dist/model/raidListItemV3.js +0 -53
- package/dist/model/raidListRequestV2.js +0 -35
- package/dist/model/raidoMetadataSchemaV1.js +0 -116
- package/dist/model/raidoMetadataSchemaV2.js +0 -116
- package/dist/model/raidoMetaschema.js +0 -22
- package/dist/model/raidoMetaschemaV2.js +0 -23
- package/dist/model/readRaidResponseV2.js +0 -71
- package/dist/model/readRaidV2Request.js +0 -29
- package/dist/model/relatedObjectBlock.js +0 -53
- package/dist/model/relatedRaidBlock.js +0 -41
- package/dist/model/spatialCoverageBlock.js +0 -41
- package/dist/model/subjectBlock.js +0 -41
- package/dist/model/titleBlock.js +0 -47
- package/dist/model/titleTypeWithSchemaUri.js +0 -35
- package/dist/model/traditionalKnowledgeLabelBlock.js +0 -29
- package/dist/model/updateAuthzRequest.js +0 -35
- package/dist/model/updateAuthzRequestStatus.js +0 -47
- package/dist/model/updateAuthzResponse.js +0 -35
- package/dist/model/updateRaidoSchemaV1Request.js +0 -29
- package/dist/model/versionResult.js +0 -47
|
@@ -1,264 +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
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
14
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.PublicExperimentalApi = exports.PublicExperimentalApiApiKeys = void 0;
|
|
18
|
-
const request_1 = __importDefault(require("request"));
|
|
19
|
-
const models_1 = require("../model/models");
|
|
20
|
-
const models_2 = require("../model/models");
|
|
21
|
-
const apis_1 = require("./apis");
|
|
22
|
-
let defaultBasePath = 'https://api.prod.raid.org.au';
|
|
23
|
-
// ===============================================
|
|
24
|
-
// This file is autogenerated - Please do not edit
|
|
25
|
-
// ===============================================
|
|
26
|
-
var PublicExperimentalApiApiKeys;
|
|
27
|
-
(function (PublicExperimentalApiApiKeys) {
|
|
28
|
-
})(PublicExperimentalApiApiKeys = exports.PublicExperimentalApiApiKeys || (exports.PublicExperimentalApiApiKeys = {}));
|
|
29
|
-
class PublicExperimentalApi {
|
|
30
|
-
_basePath = defaultBasePath;
|
|
31
|
-
_defaultHeaders = {};
|
|
32
|
-
_useQuerystring = false;
|
|
33
|
-
authentications = {
|
|
34
|
-
'default': new models_1.VoidAuth(),
|
|
35
|
-
'bearerAuth': new models_2.HttpBearerAuth(),
|
|
36
|
-
};
|
|
37
|
-
interceptors = [];
|
|
38
|
-
constructor(basePathOrUsername, password, basePath) {
|
|
39
|
-
if (password) {
|
|
40
|
-
if (basePath) {
|
|
41
|
-
this.basePath = basePath;
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
else {
|
|
45
|
-
if (basePathOrUsername) {
|
|
46
|
-
this.basePath = basePathOrUsername;
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
set useQuerystring(value) {
|
|
51
|
-
this._useQuerystring = value;
|
|
52
|
-
}
|
|
53
|
-
set basePath(basePath) {
|
|
54
|
-
this._basePath = basePath;
|
|
55
|
-
}
|
|
56
|
-
set defaultHeaders(defaultHeaders) {
|
|
57
|
-
this._defaultHeaders = defaultHeaders;
|
|
58
|
-
}
|
|
59
|
-
get defaultHeaders() {
|
|
60
|
-
return this._defaultHeaders;
|
|
61
|
-
}
|
|
62
|
-
get basePath() {
|
|
63
|
-
return this._basePath;
|
|
64
|
-
}
|
|
65
|
-
setDefaultAuthentication(auth) {
|
|
66
|
-
this.authentications.default = auth;
|
|
67
|
-
}
|
|
68
|
-
setApiKey(key, value) {
|
|
69
|
-
this.authentications[PublicExperimentalApiApiKeys[key]].apiKey = value;
|
|
70
|
-
}
|
|
71
|
-
set accessToken(accessToken) {
|
|
72
|
-
this.authentications.bearerAuth.accessToken = accessToken;
|
|
73
|
-
}
|
|
74
|
-
addInterceptor(interceptor) {
|
|
75
|
-
this.interceptors.push(interceptor);
|
|
76
|
-
}
|
|
77
|
-
/**
|
|
78
|
-
* Returns only enabled service-points - intended for use on the authz-request page. Note that it is not paginated nor does it have a limit on the number of records it returns. May need to be refactored to something more scalable in future, if we ever have a lot of service-points.
|
|
79
|
-
* @summary list service point data that un-authn users can see
|
|
80
|
-
*/
|
|
81
|
-
async publicListServicePoint(options = { headers: {} }) {
|
|
82
|
-
const localVarPath = this.basePath + '/v2/public/list-service-point/v1';
|
|
83
|
-
let localVarQueryParameters = {};
|
|
84
|
-
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
85
|
-
const produces = ['application/json'];
|
|
86
|
-
// give precedence to 'application/json'
|
|
87
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
88
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
89
|
-
}
|
|
90
|
-
else {
|
|
91
|
-
localVarHeaderParams.Accept = produces.join(',');
|
|
92
|
-
}
|
|
93
|
-
let localVarFormParams = {};
|
|
94
|
-
Object.assign(localVarHeaderParams, options.headers);
|
|
95
|
-
let localVarUseFormData = false;
|
|
96
|
-
let localVarRequestOptions = {
|
|
97
|
-
method: 'GET',
|
|
98
|
-
qs: localVarQueryParameters,
|
|
99
|
-
headers: localVarHeaderParams,
|
|
100
|
-
uri: localVarPath,
|
|
101
|
-
useQuerystring: this._useQuerystring,
|
|
102
|
-
json: true,
|
|
103
|
-
};
|
|
104
|
-
let authenticationPromise = Promise.resolve();
|
|
105
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
106
|
-
let interceptorPromise = authenticationPromise;
|
|
107
|
-
for (const interceptor of this.interceptors) {
|
|
108
|
-
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
109
|
-
}
|
|
110
|
-
return interceptorPromise.then(() => {
|
|
111
|
-
if (Object.keys(localVarFormParams).length) {
|
|
112
|
-
if (localVarUseFormData) {
|
|
113
|
-
localVarRequestOptions.formData = localVarFormParams;
|
|
114
|
-
}
|
|
115
|
-
else {
|
|
116
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
return new Promise((resolve, reject) => {
|
|
120
|
-
(0, request_1.default)(localVarRequestOptions, (error, response, body) => {
|
|
121
|
-
if (error) {
|
|
122
|
-
reject(error);
|
|
123
|
-
}
|
|
124
|
-
else {
|
|
125
|
-
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
126
|
-
body = models_1.ObjectSerializer.deserialize(body, "Array<PublicServicePoint>");
|
|
127
|
-
resolve({ response: response, body: body });
|
|
128
|
-
}
|
|
129
|
-
else {
|
|
130
|
-
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
});
|
|
134
|
-
});
|
|
135
|
-
});
|
|
136
|
-
}
|
|
137
|
-
/**
|
|
138
|
-
*
|
|
139
|
-
* @summary read raid data
|
|
140
|
-
* @param handle handle
|
|
141
|
-
*/
|
|
142
|
-
async publicReadRaidV3(handle, options = { headers: {} }) {
|
|
143
|
-
const localVarPath = this.basePath + '/v2/public/handle/v3/{handle}'
|
|
144
|
-
.replace('{' + 'handle' + '}', encodeURIComponent(String(handle)));
|
|
145
|
-
let localVarQueryParameters = {};
|
|
146
|
-
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
147
|
-
const produces = ['application/json'];
|
|
148
|
-
// give precedence to 'application/json'
|
|
149
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
150
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
151
|
-
}
|
|
152
|
-
else {
|
|
153
|
-
localVarHeaderParams.Accept = produces.join(',');
|
|
154
|
-
}
|
|
155
|
-
let localVarFormParams = {};
|
|
156
|
-
// verify required parameter 'handle' is not null or undefined
|
|
157
|
-
if (handle === null || handle === undefined) {
|
|
158
|
-
throw new Error('Required parameter handle was null or undefined when calling publicReadRaidV3.');
|
|
159
|
-
}
|
|
160
|
-
Object.assign(localVarHeaderParams, options.headers);
|
|
161
|
-
let localVarUseFormData = false;
|
|
162
|
-
let localVarRequestOptions = {
|
|
163
|
-
method: 'GET',
|
|
164
|
-
qs: localVarQueryParameters,
|
|
165
|
-
headers: localVarHeaderParams,
|
|
166
|
-
uri: localVarPath,
|
|
167
|
-
useQuerystring: this._useQuerystring,
|
|
168
|
-
json: true,
|
|
169
|
-
};
|
|
170
|
-
let authenticationPromise = Promise.resolve();
|
|
171
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
172
|
-
let interceptorPromise = authenticationPromise;
|
|
173
|
-
for (const interceptor of this.interceptors) {
|
|
174
|
-
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
175
|
-
}
|
|
176
|
-
return interceptorPromise.then(() => {
|
|
177
|
-
if (Object.keys(localVarFormParams).length) {
|
|
178
|
-
if (localVarUseFormData) {
|
|
179
|
-
localVarRequestOptions.formData = localVarFormParams;
|
|
180
|
-
}
|
|
181
|
-
else {
|
|
182
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
183
|
-
}
|
|
184
|
-
}
|
|
185
|
-
return new Promise((resolve, reject) => {
|
|
186
|
-
(0, request_1.default)(localVarRequestOptions, (error, response, body) => {
|
|
187
|
-
if (error) {
|
|
188
|
-
reject(error);
|
|
189
|
-
}
|
|
190
|
-
else {
|
|
191
|
-
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
192
|
-
body = models_1.ObjectSerializer.deserialize(body, "PublicReadRaidResponseV3");
|
|
193
|
-
resolve({ response: response, body: body });
|
|
194
|
-
}
|
|
195
|
-
else {
|
|
196
|
-
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
197
|
-
}
|
|
198
|
-
}
|
|
199
|
-
});
|
|
200
|
-
});
|
|
201
|
-
});
|
|
202
|
-
}
|
|
203
|
-
/**
|
|
204
|
-
*
|
|
205
|
-
* @summary get info about server
|
|
206
|
-
*/
|
|
207
|
-
async version(options = { headers: {} }) {
|
|
208
|
-
const localVarPath = this.basePath + '/v2/public/version';
|
|
209
|
-
let localVarQueryParameters = {};
|
|
210
|
-
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
211
|
-
const produces = ['application/json'];
|
|
212
|
-
// give precedence to 'application/json'
|
|
213
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
214
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
215
|
-
}
|
|
216
|
-
else {
|
|
217
|
-
localVarHeaderParams.Accept = produces.join(',');
|
|
218
|
-
}
|
|
219
|
-
let localVarFormParams = {};
|
|
220
|
-
Object.assign(localVarHeaderParams, options.headers);
|
|
221
|
-
let localVarUseFormData = false;
|
|
222
|
-
let localVarRequestOptions = {
|
|
223
|
-
method: 'GET',
|
|
224
|
-
qs: localVarQueryParameters,
|
|
225
|
-
headers: localVarHeaderParams,
|
|
226
|
-
uri: localVarPath,
|
|
227
|
-
useQuerystring: this._useQuerystring,
|
|
228
|
-
json: true,
|
|
229
|
-
};
|
|
230
|
-
let authenticationPromise = Promise.resolve();
|
|
231
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
232
|
-
let interceptorPromise = authenticationPromise;
|
|
233
|
-
for (const interceptor of this.interceptors) {
|
|
234
|
-
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
235
|
-
}
|
|
236
|
-
return interceptorPromise.then(() => {
|
|
237
|
-
if (Object.keys(localVarFormParams).length) {
|
|
238
|
-
if (localVarUseFormData) {
|
|
239
|
-
localVarRequestOptions.formData = localVarFormParams;
|
|
240
|
-
}
|
|
241
|
-
else {
|
|
242
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
243
|
-
}
|
|
244
|
-
}
|
|
245
|
-
return new Promise((resolve, reject) => {
|
|
246
|
-
(0, request_1.default)(localVarRequestOptions, (error, response, body) => {
|
|
247
|
-
if (error) {
|
|
248
|
-
reject(error);
|
|
249
|
-
}
|
|
250
|
-
else {
|
|
251
|
-
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
252
|
-
body = models_1.ObjectSerializer.deserialize(body, "VersionResult");
|
|
253
|
-
resolve({ response: response, body: body });
|
|
254
|
-
}
|
|
255
|
-
else {
|
|
256
|
-
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
257
|
-
}
|
|
258
|
-
}
|
|
259
|
-
});
|
|
260
|
-
});
|
|
261
|
-
});
|
|
262
|
-
}
|
|
263
|
-
}
|
|
264
|
-
exports.PublicExperimentalApi = PublicExperimentalApi;
|
|
@@ -1,147 +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
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
14
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.UnapprovedExperimentalApi = exports.UnapprovedExperimentalApiApiKeys = void 0;
|
|
18
|
-
const request_1 = __importDefault(require("request"));
|
|
19
|
-
const models_1 = require("../model/models");
|
|
20
|
-
const models_2 = require("../model/models");
|
|
21
|
-
const apis_1 = require("./apis");
|
|
22
|
-
let defaultBasePath = 'https://api.prod.raid.org.au';
|
|
23
|
-
// ===============================================
|
|
24
|
-
// This file is autogenerated - Please do not edit
|
|
25
|
-
// ===============================================
|
|
26
|
-
var UnapprovedExperimentalApiApiKeys;
|
|
27
|
-
(function (UnapprovedExperimentalApiApiKeys) {
|
|
28
|
-
})(UnapprovedExperimentalApiApiKeys = exports.UnapprovedExperimentalApiApiKeys || (exports.UnapprovedExperimentalApiApiKeys = {}));
|
|
29
|
-
class UnapprovedExperimentalApi {
|
|
30
|
-
_basePath = defaultBasePath;
|
|
31
|
-
_defaultHeaders = {};
|
|
32
|
-
_useQuerystring = false;
|
|
33
|
-
authentications = {
|
|
34
|
-
'default': new models_1.VoidAuth(),
|
|
35
|
-
'bearerAuth': new models_2.HttpBearerAuth(),
|
|
36
|
-
};
|
|
37
|
-
interceptors = [];
|
|
38
|
-
constructor(basePathOrUsername, password, basePath) {
|
|
39
|
-
if (password) {
|
|
40
|
-
if (basePath) {
|
|
41
|
-
this.basePath = basePath;
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
else {
|
|
45
|
-
if (basePathOrUsername) {
|
|
46
|
-
this.basePath = basePathOrUsername;
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
set useQuerystring(value) {
|
|
51
|
-
this._useQuerystring = value;
|
|
52
|
-
}
|
|
53
|
-
set basePath(basePath) {
|
|
54
|
-
this._basePath = basePath;
|
|
55
|
-
}
|
|
56
|
-
set defaultHeaders(defaultHeaders) {
|
|
57
|
-
this._defaultHeaders = defaultHeaders;
|
|
58
|
-
}
|
|
59
|
-
get defaultHeaders() {
|
|
60
|
-
return this._defaultHeaders;
|
|
61
|
-
}
|
|
62
|
-
get basePath() {
|
|
63
|
-
return this._basePath;
|
|
64
|
-
}
|
|
65
|
-
setDefaultAuthentication(auth) {
|
|
66
|
-
this.authentications.default = auth;
|
|
67
|
-
}
|
|
68
|
-
setApiKey(key, value) {
|
|
69
|
-
this.authentications[UnapprovedExperimentalApiApiKeys[key]].apiKey = value;
|
|
70
|
-
}
|
|
71
|
-
set accessToken(accessToken) {
|
|
72
|
-
this.authentications.bearerAuth.accessToken = accessToken;
|
|
73
|
-
}
|
|
74
|
-
addInterceptor(interceptor) {
|
|
75
|
-
this.interceptors.push(interceptor);
|
|
76
|
-
}
|
|
77
|
-
/**
|
|
78
|
-
*
|
|
79
|
-
* @summary create or update an authz-request
|
|
80
|
-
* @param updateAuthzRequest
|
|
81
|
-
*/
|
|
82
|
-
async updateAuthzRequest(updateAuthzRequest, options = { headers: {} }) {
|
|
83
|
-
const localVarPath = this.basePath + '/v2/public/authz-request/v1';
|
|
84
|
-
let localVarQueryParameters = {};
|
|
85
|
-
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
86
|
-
const produces = ['application/json'];
|
|
87
|
-
// give precedence to 'application/json'
|
|
88
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
89
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
90
|
-
}
|
|
91
|
-
else {
|
|
92
|
-
localVarHeaderParams.Accept = produces.join(',');
|
|
93
|
-
}
|
|
94
|
-
let localVarFormParams = {};
|
|
95
|
-
// verify required parameter 'updateAuthzRequest' is not null or undefined
|
|
96
|
-
if (updateAuthzRequest === null || updateAuthzRequest === undefined) {
|
|
97
|
-
throw new Error('Required parameter updateAuthzRequest was null or undefined when calling updateAuthzRequest.');
|
|
98
|
-
}
|
|
99
|
-
Object.assign(localVarHeaderParams, options.headers);
|
|
100
|
-
let localVarUseFormData = false;
|
|
101
|
-
let localVarRequestOptions = {
|
|
102
|
-
method: 'POST',
|
|
103
|
-
qs: localVarQueryParameters,
|
|
104
|
-
headers: localVarHeaderParams,
|
|
105
|
-
uri: localVarPath,
|
|
106
|
-
useQuerystring: this._useQuerystring,
|
|
107
|
-
json: true,
|
|
108
|
-
body: models_1.ObjectSerializer.serialize(updateAuthzRequest, "UpdateAuthzRequest")
|
|
109
|
-
};
|
|
110
|
-
let authenticationPromise = Promise.resolve();
|
|
111
|
-
if (this.authentications.bearerAuth.accessToken) {
|
|
112
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.bearerAuth.applyToRequest(localVarRequestOptions));
|
|
113
|
-
}
|
|
114
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
115
|
-
let interceptorPromise = authenticationPromise;
|
|
116
|
-
for (const interceptor of this.interceptors) {
|
|
117
|
-
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
118
|
-
}
|
|
119
|
-
return interceptorPromise.then(() => {
|
|
120
|
-
if (Object.keys(localVarFormParams).length) {
|
|
121
|
-
if (localVarUseFormData) {
|
|
122
|
-
localVarRequestOptions.formData = localVarFormParams;
|
|
123
|
-
}
|
|
124
|
-
else {
|
|
125
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
return new Promise((resolve, reject) => {
|
|
129
|
-
(0, request_1.default)(localVarRequestOptions, (error, response, body) => {
|
|
130
|
-
if (error) {
|
|
131
|
-
reject(error);
|
|
132
|
-
}
|
|
133
|
-
else {
|
|
134
|
-
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
135
|
-
body = models_1.ObjectSerializer.deserialize(body, "UpdateAuthzResponse");
|
|
136
|
-
resolve({ response: response, body: body });
|
|
137
|
-
}
|
|
138
|
-
else {
|
|
139
|
-
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
});
|
|
143
|
-
});
|
|
144
|
-
});
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
exports.UnapprovedExperimentalApi = UnapprovedExperimentalApi;
|
|
@@ -1,35 +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.AccessBlock = void 0;
|
|
15
|
-
class AccessBlock {
|
|
16
|
-
'type';
|
|
17
|
-
'accessStatement';
|
|
18
|
-
static discriminator = undefined;
|
|
19
|
-
static attributeTypeMap = [
|
|
20
|
-
{
|
|
21
|
-
"name": "type",
|
|
22
|
-
"baseName": "type",
|
|
23
|
-
"type": "AccessType"
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
"name": "accessStatement",
|
|
27
|
-
"baseName": "accessStatement",
|
|
28
|
-
"type": "string"
|
|
29
|
-
}
|
|
30
|
-
];
|
|
31
|
-
static getAttributeTypeMap() {
|
|
32
|
-
return AccessBlock.attributeTypeMap;
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
exports.AccessBlock = AccessBlock;
|
|
@@ -1,35 +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.AccessTypeWithSchemaUri = void 0;
|
|
15
|
-
class AccessTypeWithSchemaUri {
|
|
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 AccessTypeWithSchemaUri.attributeTypeMap;
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
exports.AccessTypeWithSchemaUri = AccessTypeWithSchemaUri;
|
|
@@ -1,35 +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.AlternateIdentifierBlock = void 0;
|
|
15
|
-
class AlternateIdentifierBlock {
|
|
16
|
-
'alternateIdentifier';
|
|
17
|
-
'alternateIdentifierType';
|
|
18
|
-
static discriminator = undefined;
|
|
19
|
-
static attributeTypeMap = [
|
|
20
|
-
{
|
|
21
|
-
"name": "alternateIdentifier",
|
|
22
|
-
"baseName": "alternateIdentifier",
|
|
23
|
-
"type": "string"
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
"name": "alternateIdentifierType",
|
|
27
|
-
"baseName": "alternateIdentifierType",
|
|
28
|
-
"type": "string"
|
|
29
|
-
}
|
|
30
|
-
];
|
|
31
|
-
static getAttributeTypeMap() {
|
|
32
|
-
return AlternateIdentifierBlock.attributeTypeMap;
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
exports.AlternateIdentifierBlock = AlternateIdentifierBlock;
|
|
@@ -1,29 +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.AlternateUrlBlock = void 0;
|
|
15
|
-
class AlternateUrlBlock {
|
|
16
|
-
'url';
|
|
17
|
-
static discriminator = undefined;
|
|
18
|
-
static attributeTypeMap = [
|
|
19
|
-
{
|
|
20
|
-
"name": "url",
|
|
21
|
-
"baseName": "url",
|
|
22
|
-
"type": "string"
|
|
23
|
-
}
|
|
24
|
-
];
|
|
25
|
-
static getAttributeTypeMap() {
|
|
26
|
-
return AlternateUrlBlock.attributeTypeMap;
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
exports.AlternateUrlBlock = AlternateUrlBlock;
|
package/dist/model/apiKey.js
DELETED
|
@@ -1,74 +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.ApiKey = void 0;
|
|
15
|
-
/**
|
|
16
|
-
* It\'s really an \"AppUser\", but modelling like this makes the API clearer and the client easier to write.
|
|
17
|
-
*/
|
|
18
|
-
class ApiKey {
|
|
19
|
-
'id';
|
|
20
|
-
'servicePointId';
|
|
21
|
-
'subject';
|
|
22
|
-
'idProvider';
|
|
23
|
-
'role';
|
|
24
|
-
'enabled';
|
|
25
|
-
'tokenCutoff';
|
|
26
|
-
'dateCreated';
|
|
27
|
-
static discriminator = undefined;
|
|
28
|
-
static attributeTypeMap = [
|
|
29
|
-
{
|
|
30
|
-
"name": "id",
|
|
31
|
-
"baseName": "id",
|
|
32
|
-
"type": "number"
|
|
33
|
-
},
|
|
34
|
-
{
|
|
35
|
-
"name": "servicePointId",
|
|
36
|
-
"baseName": "servicePointId",
|
|
37
|
-
"type": "number"
|
|
38
|
-
},
|
|
39
|
-
{
|
|
40
|
-
"name": "subject",
|
|
41
|
-
"baseName": "subject",
|
|
42
|
-
"type": "string"
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
"name": "idProvider",
|
|
46
|
-
"baseName": "idProvider",
|
|
47
|
-
"type": "string"
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
"name": "role",
|
|
51
|
-
"baseName": "role",
|
|
52
|
-
"type": "string"
|
|
53
|
-
},
|
|
54
|
-
{
|
|
55
|
-
"name": "enabled",
|
|
56
|
-
"baseName": "enabled",
|
|
57
|
-
"type": "boolean"
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
"name": "tokenCutoff",
|
|
61
|
-
"baseName": "tokenCutoff",
|
|
62
|
-
"type": "Date"
|
|
63
|
-
},
|
|
64
|
-
{
|
|
65
|
-
"name": "dateCreated",
|
|
66
|
-
"baseName": "dateCreated",
|
|
67
|
-
"type": "Date"
|
|
68
|
-
}
|
|
69
|
-
];
|
|
70
|
-
static getAttributeTypeMap() {
|
|
71
|
-
return ApiKey.attributeTypeMap;
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
exports.ApiKey = ApiKey;
|