@coscine/api-client 2.5.0 → 2.7.0
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/index.js +1467 -501
- package/dist/index.js.map +1 -1
- package/dist/index.umd.js +1472 -500
- package/dist/index.umd.js.map +1 -1
- package/dist/lib/Coscine.Api.ActivatedFeatures/index.js +5 -1
- package/dist/lib/Coscine.Api.ActivatedFeatures/index.js.map +1 -1
- package/dist/lib/Coscine.Api.Admin/api.js +1 -1
- package/dist/lib/Coscine.Api.Admin/base.js +1 -1
- package/dist/lib/Coscine.Api.Admin/common.js +1 -1
- package/dist/lib/Coscine.Api.Admin/configuration.js +1 -1
- package/dist/lib/Coscine.Api.Admin/index.js +6 -2
- package/dist/lib/Coscine.Api.Admin/index.js.map +1 -1
- package/dist/lib/Coscine.Api.Blob/api.js +1 -1
- package/dist/lib/Coscine.Api.Blob/base.js +1 -1
- package/dist/lib/Coscine.Api.Blob/common.js +1 -1
- package/dist/lib/Coscine.Api.Blob/configuration.js +1 -1
- package/dist/lib/Coscine.Api.Blob/index.js +6 -2
- package/dist/lib/Coscine.Api.Blob/index.js.map +1 -1
- package/dist/lib/Coscine.Api.Metadata/api.js +1 -1
- package/dist/lib/Coscine.Api.Metadata/base.js +1 -1
- package/dist/lib/Coscine.Api.Metadata/common.js +1 -1
- package/dist/lib/Coscine.Api.Metadata/configuration.js +1 -1
- package/dist/lib/Coscine.Api.Metadata/index.js +6 -2
- package/dist/lib/Coscine.Api.Metadata/index.js.map +1 -1
- package/dist/lib/Coscine.Api.Notices/api.js +5 -1
- package/dist/lib/Coscine.Api.Notices/api.js.map +1 -1
- package/dist/lib/Coscine.Api.Notices/base.js +1 -1
- package/dist/lib/Coscine.Api.Notices/common.js +1 -1
- package/dist/lib/Coscine.Api.Notices/configuration.js +1 -1
- package/dist/lib/Coscine.Api.Notices/index.js +6 -2
- package/dist/lib/Coscine.Api.Notices/index.js.map +1 -1
- package/dist/lib/Coscine.Api.Organization/index.js +5 -1
- package/dist/lib/Coscine.Api.Organization/index.js.map +1 -1
- package/dist/lib/Coscine.Api.Pid/api.js +1 -1
- package/dist/lib/Coscine.Api.Pid/base.js +2 -2
- package/dist/lib/Coscine.Api.Pid/common.js +1 -1
- package/dist/lib/Coscine.Api.Pid/configuration.js +1 -1
- package/dist/lib/Coscine.Api.Pid/index.js +6 -2
- package/dist/lib/Coscine.Api.Pid/index.js.map +1 -1
- package/dist/lib/Coscine.Api.Project/api.js +1 -1
- package/dist/lib/Coscine.Api.Project/api.js.map +1 -1
- package/dist/lib/Coscine.Api.Project/base.js +1 -1
- package/dist/lib/Coscine.Api.Project/common.js +1 -1
- package/dist/lib/Coscine.Api.Project/configuration.js +1 -1
- package/dist/lib/Coscine.Api.Project/index.js +6 -2
- package/dist/lib/Coscine.Api.Project/index.js.map +1 -1
- package/dist/lib/Coscine.Api.Resources/api.js +281 -2
- package/dist/lib/Coscine.Api.Resources/api.js.map +1 -1
- package/dist/lib/Coscine.Api.Resources/base.js +1 -1
- package/dist/lib/Coscine.Api.Resources/common.js +1 -1
- package/dist/lib/Coscine.Api.Resources/configuration.js +1 -1
- package/dist/lib/Coscine.Api.Resources/index.js +6 -2
- package/dist/lib/Coscine.Api.Resources/index.js.map +1 -1
- package/dist/lib/Coscine.Api.STS/api.js +802 -0
- package/dist/lib/Coscine.Api.STS/api.js.map +1 -0
- package/dist/lib/Coscine.Api.STS/base.js +65 -0
- package/dist/lib/Coscine.Api.STS/base.js.map +1 -0
- package/dist/lib/Coscine.Api.STS/common.js +153 -0
- package/dist/lib/Coscine.Api.STS/common.js.map +1 -0
- package/dist/lib/Coscine.Api.STS/configuration.js +43 -0
- package/dist/lib/Coscine.Api.STS/configuration.js.map +1 -0
- package/dist/lib/Coscine.Api.STS/index.js +32 -0
- package/dist/lib/Coscine.Api.STS/index.js.map +1 -0
- package/dist/lib/Coscine.Api.Search/api.js +5 -5
- package/dist/lib/Coscine.Api.Search/base.js +2 -2
- package/dist/lib/Coscine.Api.Search/common.js +1 -1
- package/dist/lib/Coscine.Api.Search/configuration.js +1 -1
- package/dist/lib/Coscine.Api.Search/index.js +6 -2
- package/dist/lib/Coscine.Api.Search/index.js.map +1 -1
- package/dist/lib/Coscine.Api.Token/index.js +5 -1
- package/dist/lib/Coscine.Api.Token/index.js.map +1 -1
- package/dist/lib/Coscine.Api.Tree/api.js +1 -1
- package/dist/lib/Coscine.Api.Tree/base.js +1 -1
- package/dist/lib/Coscine.Api.Tree/common.js +1 -1
- package/dist/lib/Coscine.Api.Tree/configuration.js +1 -1
- package/dist/lib/Coscine.Api.Tree/index.js +6 -2
- package/dist/lib/Coscine.Api.Tree/index.js.map +1 -1
- package/dist/lib/Coscine.Api.User/api.js +60 -2
- package/dist/lib/Coscine.Api.User/api.js.map +1 -1
- package/dist/lib/Coscine.Api.User/base.js +1 -1
- package/dist/lib/Coscine.Api.User/common.js +1 -1
- package/dist/lib/Coscine.Api.User/configuration.js +1 -1
- package/dist/lib/Coscine.Api.User/index.js +6 -2
- package/dist/lib/Coscine.Api.User/index.js.map +1 -1
- package/dist/lib/apis.js +31 -19
- package/dist/lib/apis.js.map +1 -1
- package/dist/lib/index.js +7 -1
- package/dist/lib/index.js.map +1 -1
- package/dist/types/Coscine.Api.Admin/api.d.ts +1 -1
- package/dist/types/Coscine.Api.Admin/base.d.ts +1 -1
- package/dist/types/Coscine.Api.Admin/common.d.ts +1 -1
- package/dist/types/Coscine.Api.Admin/configuration.d.ts +1 -1
- package/dist/types/Coscine.Api.Admin/index.d.ts +1 -1
- package/dist/types/Coscine.Api.Blob/api.d.ts +1 -1
- package/dist/types/Coscine.Api.Blob/base.d.ts +1 -1
- package/dist/types/Coscine.Api.Blob/common.d.ts +1 -1
- package/dist/types/Coscine.Api.Blob/configuration.d.ts +1 -1
- package/dist/types/Coscine.Api.Blob/index.d.ts +1 -1
- package/dist/types/Coscine.Api.Metadata/api.d.ts +1 -1
- package/dist/types/Coscine.Api.Metadata/base.d.ts +1 -1
- package/dist/types/Coscine.Api.Metadata/common.d.ts +1 -1
- package/dist/types/Coscine.Api.Metadata/configuration.d.ts +1 -1
- package/dist/types/Coscine.Api.Metadata/index.d.ts +1 -1
- package/dist/types/Coscine.Api.Notices/api.d.ts +5 -1
- package/dist/types/Coscine.Api.Notices/base.d.ts +1 -1
- package/dist/types/Coscine.Api.Notices/common.d.ts +1 -1
- package/dist/types/Coscine.Api.Notices/configuration.d.ts +1 -1
- package/dist/types/Coscine.Api.Notices/index.d.ts +1 -1
- package/dist/types/Coscine.Api.Pid/api.d.ts +1 -1
- package/dist/types/Coscine.Api.Pid/base.d.ts +1 -1
- package/dist/types/Coscine.Api.Pid/common.d.ts +1 -1
- package/dist/types/Coscine.Api.Pid/configuration.d.ts +1 -1
- package/dist/types/Coscine.Api.Pid/index.d.ts +1 -1
- package/dist/types/Coscine.Api.Project/api.d.ts +31 -1
- package/dist/types/Coscine.Api.Project/base.d.ts +1 -1
- package/dist/types/Coscine.Api.Project/common.d.ts +1 -1
- package/dist/types/Coscine.Api.Project/configuration.d.ts +1 -1
- package/dist/types/Coscine.Api.Project/index.d.ts +1 -1
- package/dist/types/Coscine.Api.Resources/api.d.ts +730 -2
- package/dist/types/Coscine.Api.Resources/base.d.ts +1 -1
- package/dist/types/Coscine.Api.Resources/common.d.ts +1 -1
- package/dist/types/Coscine.Api.Resources/configuration.d.ts +1 -1
- package/dist/types/Coscine.Api.Resources/index.d.ts +1 -1
- package/dist/types/Coscine.Api.STS/api.d.ts +465 -0
- package/dist/types/Coscine.Api.STS/base.d.ts +55 -0
- package/dist/types/Coscine.Api.STS/common.d.ts +65 -0
- package/dist/types/Coscine.Api.STS/configuration.d.ts +83 -0
- package/dist/types/Coscine.Api.STS/index.d.ts +13 -0
- package/dist/types/Coscine.Api.Search/api.d.ts +5 -5
- package/dist/types/Coscine.Api.Search/base.d.ts +1 -1
- package/dist/types/Coscine.Api.Search/common.d.ts +1 -1
- package/dist/types/Coscine.Api.Search/configuration.d.ts +1 -1
- package/dist/types/Coscine.Api.Search/index.d.ts +1 -1
- package/dist/types/Coscine.Api.Tree/api.d.ts +1 -1
- package/dist/types/Coscine.Api.Tree/base.d.ts +1 -1
- package/dist/types/Coscine.Api.Tree/common.d.ts +1 -1
- package/dist/types/Coscine.Api.Tree/configuration.d.ts +1 -1
- package/dist/types/Coscine.Api.Tree/index.d.ts +1 -1
- package/dist/types/Coscine.Api.User/api.d.ts +38 -9
- package/dist/types/Coscine.Api.User/base.d.ts +1 -1
- package/dist/types/Coscine.Api.User/common.d.ts +1 -1
- package/dist/types/Coscine.Api.User/configuration.d.ts +1 -1
- package/dist/types/Coscine.Api.User/index.d.ts +1 -1
- package/dist/types/apis.d.ts +27 -2
- package/dist/types/index.d.ts +54 -4
- package/package.json +4 -11
|
@@ -0,0 +1,802 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Coscine.Api.STS
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
16
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
17
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
18
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
19
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
20
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
21
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
22
|
+
});
|
|
23
|
+
};
|
|
24
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
25
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
26
|
+
};
|
|
27
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
|
+
exports.ShibbolethApi = exports.ShibbolethApiFactory = exports.ShibbolethApiFp = exports.ShibbolethApiAxiosParamCreator = exports.ORCiDApi = exports.ORCiDApiFactory = exports.ORCiDApiFp = exports.ORCiDApiAxiosParamCreator = exports.MergeApi = exports.MergeApiFactory = exports.MergeApiFp = exports.MergeApiAxiosParamCreator = exports.HomeApi = exports.HomeApiFactory = exports.HomeApiFp = exports.HomeApiAxiosParamCreator = exports.AccountApi = exports.AccountApiFactory = exports.AccountApiFp = exports.AccountApiAxiosParamCreator = void 0;
|
|
29
|
+
const axios_1 = __importDefault(require("axios"));
|
|
30
|
+
// Some imports not used depending on template conditions
|
|
31
|
+
// @ts-ignore
|
|
32
|
+
const common_1 = require("./common");
|
|
33
|
+
// @ts-ignore
|
|
34
|
+
const base_1 = require("./base");
|
|
35
|
+
/**
|
|
36
|
+
* AccountApi - axios parameter creator
|
|
37
|
+
* @export
|
|
38
|
+
*/
|
|
39
|
+
const AccountApiAxiosParamCreator = function (configuration) {
|
|
40
|
+
return {
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @summary Return relevant URLs for logging the user in
|
|
44
|
+
* @param {*} [options] Override http request option.
|
|
45
|
+
* @throws {RequiredError}
|
|
46
|
+
*/
|
|
47
|
+
accountGetLoginUrls: (options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
48
|
+
const localVarPath = `/Account/urls/login`;
|
|
49
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
50
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
51
|
+
let baseOptions;
|
|
52
|
+
if (configuration) {
|
|
53
|
+
baseOptions = configuration.baseOptions;
|
|
54
|
+
}
|
|
55
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
56
|
+
const localVarHeaderParameter = {};
|
|
57
|
+
const localVarQueryParameter = {};
|
|
58
|
+
// authentication JWT token required
|
|
59
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
60
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
|
|
61
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
62
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
63
|
+
return {
|
|
64
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
65
|
+
options: localVarRequestOptions,
|
|
66
|
+
};
|
|
67
|
+
}),
|
|
68
|
+
/**
|
|
69
|
+
*
|
|
70
|
+
* @summary Route for logging the user out of Coscine
|
|
71
|
+
* @param {*} [options] Override http request option.
|
|
72
|
+
* @throws {RequiredError}
|
|
73
|
+
*/
|
|
74
|
+
accountLogout: (options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
75
|
+
const localVarPath = `/Account/logout`;
|
|
76
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
77
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
78
|
+
let baseOptions;
|
|
79
|
+
if (configuration) {
|
|
80
|
+
baseOptions = configuration.baseOptions;
|
|
81
|
+
}
|
|
82
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
83
|
+
const localVarHeaderParameter = {};
|
|
84
|
+
const localVarQueryParameter = {};
|
|
85
|
+
// authentication JWT token required
|
|
86
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
87
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
|
|
88
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
89
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
90
|
+
return {
|
|
91
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
92
|
+
options: localVarRequestOptions,
|
|
93
|
+
};
|
|
94
|
+
}),
|
|
95
|
+
};
|
|
96
|
+
};
|
|
97
|
+
exports.AccountApiAxiosParamCreator = AccountApiAxiosParamCreator;
|
|
98
|
+
/**
|
|
99
|
+
* AccountApi - functional programming interface
|
|
100
|
+
* @export
|
|
101
|
+
*/
|
|
102
|
+
const AccountApiFp = function (configuration) {
|
|
103
|
+
const localVarAxiosParamCreator = (0, exports.AccountApiAxiosParamCreator)(configuration);
|
|
104
|
+
return {
|
|
105
|
+
/**
|
|
106
|
+
*
|
|
107
|
+
* @summary Return relevant URLs for logging the user in
|
|
108
|
+
* @param {*} [options] Override http request option.
|
|
109
|
+
* @throws {RequiredError}
|
|
110
|
+
*/
|
|
111
|
+
accountGetLoginUrls(options) {
|
|
112
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
113
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.accountGetLoginUrls(options);
|
|
114
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
115
|
+
});
|
|
116
|
+
},
|
|
117
|
+
/**
|
|
118
|
+
*
|
|
119
|
+
* @summary Route for logging the user out of Coscine
|
|
120
|
+
* @param {*} [options] Override http request option.
|
|
121
|
+
* @throws {RequiredError}
|
|
122
|
+
*/
|
|
123
|
+
accountLogout(options) {
|
|
124
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
125
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.accountLogout(options);
|
|
126
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
127
|
+
});
|
|
128
|
+
},
|
|
129
|
+
};
|
|
130
|
+
};
|
|
131
|
+
exports.AccountApiFp = AccountApiFp;
|
|
132
|
+
/**
|
|
133
|
+
* AccountApi - factory interface
|
|
134
|
+
* @export
|
|
135
|
+
*/
|
|
136
|
+
const AccountApiFactory = function (configuration, basePath, axios) {
|
|
137
|
+
const localVarFp = (0, exports.AccountApiFp)(configuration);
|
|
138
|
+
return {
|
|
139
|
+
/**
|
|
140
|
+
*
|
|
141
|
+
* @summary Return relevant URLs for logging the user in
|
|
142
|
+
* @param {*} [options] Override http request option.
|
|
143
|
+
* @throws {RequiredError}
|
|
144
|
+
*/
|
|
145
|
+
accountGetLoginUrls(options) {
|
|
146
|
+
return localVarFp.accountGetLoginUrls(options).then((request) => request(axios, basePath));
|
|
147
|
+
},
|
|
148
|
+
/**
|
|
149
|
+
*
|
|
150
|
+
* @summary Route for logging the user out of Coscine
|
|
151
|
+
* @param {*} [options] Override http request option.
|
|
152
|
+
* @throws {RequiredError}
|
|
153
|
+
*/
|
|
154
|
+
accountLogout(options) {
|
|
155
|
+
return localVarFp.accountLogout(options).then((request) => request(axios, basePath));
|
|
156
|
+
},
|
|
157
|
+
};
|
|
158
|
+
};
|
|
159
|
+
exports.AccountApiFactory = AccountApiFactory;
|
|
160
|
+
/**
|
|
161
|
+
* AccountApi - object-oriented interface
|
|
162
|
+
* @export
|
|
163
|
+
* @class AccountApi
|
|
164
|
+
* @extends {BaseAPI}
|
|
165
|
+
*/
|
|
166
|
+
class AccountApi extends base_1.BaseAPI {
|
|
167
|
+
/**
|
|
168
|
+
*
|
|
169
|
+
* @summary Return relevant URLs for logging the user in
|
|
170
|
+
* @param {*} [options] Override http request option.
|
|
171
|
+
* @throws {RequiredError}
|
|
172
|
+
* @memberof AccountApi
|
|
173
|
+
*/
|
|
174
|
+
accountGetLoginUrls(options) {
|
|
175
|
+
return (0, exports.AccountApiFp)(this.configuration).accountGetLoginUrls(options).then((request) => request(this.axios, this.basePath));
|
|
176
|
+
}
|
|
177
|
+
/**
|
|
178
|
+
*
|
|
179
|
+
* @summary Route for logging the user out of Coscine
|
|
180
|
+
* @param {*} [options] Override http request option.
|
|
181
|
+
* @throws {RequiredError}
|
|
182
|
+
* @memberof AccountApi
|
|
183
|
+
*/
|
|
184
|
+
accountLogout(options) {
|
|
185
|
+
return (0, exports.AccountApiFp)(this.configuration).accountLogout(options).then((request) => request(this.axios, this.basePath));
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
exports.AccountApi = AccountApi;
|
|
189
|
+
/**
|
|
190
|
+
* HomeApi - axios parameter creator
|
|
191
|
+
* @export
|
|
192
|
+
*/
|
|
193
|
+
const HomeApiAxiosParamCreator = function (configuration) {
|
|
194
|
+
return {
|
|
195
|
+
/**
|
|
196
|
+
*
|
|
197
|
+
* @summary The controller that the user is automatically entering when accesing the route .../coscine/api/Coscine.STS/
|
|
198
|
+
* @param {*} [options] Override http request option.
|
|
199
|
+
* @throws {RequiredError}
|
|
200
|
+
*/
|
|
201
|
+
homeIndex: (options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
202
|
+
const localVarPath = `/`;
|
|
203
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
204
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
205
|
+
let baseOptions;
|
|
206
|
+
if (configuration) {
|
|
207
|
+
baseOptions = configuration.baseOptions;
|
|
208
|
+
}
|
|
209
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
210
|
+
const localVarHeaderParameter = {};
|
|
211
|
+
const localVarQueryParameter = {};
|
|
212
|
+
// authentication JWT token required
|
|
213
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
214
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
|
|
215
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
216
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
217
|
+
return {
|
|
218
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
219
|
+
options: localVarRequestOptions,
|
|
220
|
+
};
|
|
221
|
+
}),
|
|
222
|
+
};
|
|
223
|
+
};
|
|
224
|
+
exports.HomeApiAxiosParamCreator = HomeApiAxiosParamCreator;
|
|
225
|
+
/**
|
|
226
|
+
* HomeApi - functional programming interface
|
|
227
|
+
* @export
|
|
228
|
+
*/
|
|
229
|
+
const HomeApiFp = function (configuration) {
|
|
230
|
+
const localVarAxiosParamCreator = (0, exports.HomeApiAxiosParamCreator)(configuration);
|
|
231
|
+
return {
|
|
232
|
+
/**
|
|
233
|
+
*
|
|
234
|
+
* @summary The controller that the user is automatically entering when accesing the route .../coscine/api/Coscine.STS/
|
|
235
|
+
* @param {*} [options] Override http request option.
|
|
236
|
+
* @throws {RequiredError}
|
|
237
|
+
*/
|
|
238
|
+
homeIndex(options) {
|
|
239
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
240
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.homeIndex(options);
|
|
241
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
242
|
+
});
|
|
243
|
+
},
|
|
244
|
+
};
|
|
245
|
+
};
|
|
246
|
+
exports.HomeApiFp = HomeApiFp;
|
|
247
|
+
/**
|
|
248
|
+
* HomeApi - factory interface
|
|
249
|
+
* @export
|
|
250
|
+
*/
|
|
251
|
+
const HomeApiFactory = function (configuration, basePath, axios) {
|
|
252
|
+
const localVarFp = (0, exports.HomeApiFp)(configuration);
|
|
253
|
+
return {
|
|
254
|
+
/**
|
|
255
|
+
*
|
|
256
|
+
* @summary The controller that the user is automatically entering when accesing the route .../coscine/api/Coscine.STS/
|
|
257
|
+
* @param {*} [options] Override http request option.
|
|
258
|
+
* @throws {RequiredError}
|
|
259
|
+
*/
|
|
260
|
+
homeIndex(options) {
|
|
261
|
+
return localVarFp.homeIndex(options).then((request) => request(axios, basePath));
|
|
262
|
+
},
|
|
263
|
+
};
|
|
264
|
+
};
|
|
265
|
+
exports.HomeApiFactory = HomeApiFactory;
|
|
266
|
+
/**
|
|
267
|
+
* HomeApi - object-oriented interface
|
|
268
|
+
* @export
|
|
269
|
+
* @class HomeApi
|
|
270
|
+
* @extends {BaseAPI}
|
|
271
|
+
*/
|
|
272
|
+
class HomeApi extends base_1.BaseAPI {
|
|
273
|
+
/**
|
|
274
|
+
*
|
|
275
|
+
* @summary The controller that the user is automatically entering when accesing the route .../coscine/api/Coscine.STS/
|
|
276
|
+
* @param {*} [options] Override http request option.
|
|
277
|
+
* @throws {RequiredError}
|
|
278
|
+
* @memberof HomeApi
|
|
279
|
+
*/
|
|
280
|
+
homeIndex(options) {
|
|
281
|
+
return (0, exports.HomeApiFp)(this.configuration).homeIndex(options).then((request) => request(this.axios, this.basePath));
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
exports.HomeApi = HomeApi;
|
|
285
|
+
/**
|
|
286
|
+
* MergeApi - axios parameter creator
|
|
287
|
+
* @export
|
|
288
|
+
*/
|
|
289
|
+
const MergeApiAxiosParamCreator = function (configuration) {
|
|
290
|
+
return {
|
|
291
|
+
/**
|
|
292
|
+
*
|
|
293
|
+
* @param {string} [returnUrl]
|
|
294
|
+
* @param {*} [options] Override http request option.
|
|
295
|
+
* @throws {RequiredError}
|
|
296
|
+
*/
|
|
297
|
+
mergeCallback: (returnUrl, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
298
|
+
const localVarPath = `/Merge/callback`;
|
|
299
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
300
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
301
|
+
let baseOptions;
|
|
302
|
+
if (configuration) {
|
|
303
|
+
baseOptions = configuration.baseOptions;
|
|
304
|
+
}
|
|
305
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
306
|
+
const localVarHeaderParameter = {};
|
|
307
|
+
const localVarQueryParameter = {};
|
|
308
|
+
// authentication JWT token required
|
|
309
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
310
|
+
if (returnUrl !== undefined) {
|
|
311
|
+
localVarQueryParameter['returnUrl'] = returnUrl;
|
|
312
|
+
}
|
|
313
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
|
|
314
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
315
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
316
|
+
return {
|
|
317
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
318
|
+
options: localVarRequestOptions,
|
|
319
|
+
};
|
|
320
|
+
}),
|
|
321
|
+
/**
|
|
322
|
+
*
|
|
323
|
+
* @param {string} [returnUrl]
|
|
324
|
+
* @param {*} [options] Override http request option.
|
|
325
|
+
* @throws {RequiredError}
|
|
326
|
+
*/
|
|
327
|
+
mergeLogin: (returnUrl, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
328
|
+
const localVarPath = `/Merge/login`;
|
|
329
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
330
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
331
|
+
let baseOptions;
|
|
332
|
+
if (configuration) {
|
|
333
|
+
baseOptions = configuration.baseOptions;
|
|
334
|
+
}
|
|
335
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
336
|
+
const localVarHeaderParameter = {};
|
|
337
|
+
const localVarQueryParameter = {};
|
|
338
|
+
// authentication JWT token required
|
|
339
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
340
|
+
if (returnUrl !== undefined) {
|
|
341
|
+
localVarQueryParameter['returnUrl'] = returnUrl;
|
|
342
|
+
}
|
|
343
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
|
|
344
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
345
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
346
|
+
return {
|
|
347
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
348
|
+
options: localVarRequestOptions,
|
|
349
|
+
};
|
|
350
|
+
}),
|
|
351
|
+
};
|
|
352
|
+
};
|
|
353
|
+
exports.MergeApiAxiosParamCreator = MergeApiAxiosParamCreator;
|
|
354
|
+
/**
|
|
355
|
+
* MergeApi - functional programming interface
|
|
356
|
+
* @export
|
|
357
|
+
*/
|
|
358
|
+
const MergeApiFp = function (configuration) {
|
|
359
|
+
const localVarAxiosParamCreator = (0, exports.MergeApiAxiosParamCreator)(configuration);
|
|
360
|
+
return {
|
|
361
|
+
/**
|
|
362
|
+
*
|
|
363
|
+
* @param {string} [returnUrl]
|
|
364
|
+
* @param {*} [options] Override http request option.
|
|
365
|
+
* @throws {RequiredError}
|
|
366
|
+
*/
|
|
367
|
+
mergeCallback(returnUrl, options) {
|
|
368
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
369
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.mergeCallback(returnUrl, options);
|
|
370
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
371
|
+
});
|
|
372
|
+
},
|
|
373
|
+
/**
|
|
374
|
+
*
|
|
375
|
+
* @param {string} [returnUrl]
|
|
376
|
+
* @param {*} [options] Override http request option.
|
|
377
|
+
* @throws {RequiredError}
|
|
378
|
+
*/
|
|
379
|
+
mergeLogin(returnUrl, options) {
|
|
380
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
381
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.mergeLogin(returnUrl, options);
|
|
382
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
383
|
+
});
|
|
384
|
+
},
|
|
385
|
+
};
|
|
386
|
+
};
|
|
387
|
+
exports.MergeApiFp = MergeApiFp;
|
|
388
|
+
/**
|
|
389
|
+
* MergeApi - factory interface
|
|
390
|
+
* @export
|
|
391
|
+
*/
|
|
392
|
+
const MergeApiFactory = function (configuration, basePath, axios) {
|
|
393
|
+
const localVarFp = (0, exports.MergeApiFp)(configuration);
|
|
394
|
+
return {
|
|
395
|
+
/**
|
|
396
|
+
*
|
|
397
|
+
* @param {string} [returnUrl]
|
|
398
|
+
* @param {*} [options] Override http request option.
|
|
399
|
+
* @throws {RequiredError}
|
|
400
|
+
*/
|
|
401
|
+
mergeCallback(returnUrl, options) {
|
|
402
|
+
return localVarFp.mergeCallback(returnUrl, options).then((request) => request(axios, basePath));
|
|
403
|
+
},
|
|
404
|
+
/**
|
|
405
|
+
*
|
|
406
|
+
* @param {string} [returnUrl]
|
|
407
|
+
* @param {*} [options] Override http request option.
|
|
408
|
+
* @throws {RequiredError}
|
|
409
|
+
*/
|
|
410
|
+
mergeLogin(returnUrl, options) {
|
|
411
|
+
return localVarFp.mergeLogin(returnUrl, options).then((request) => request(axios, basePath));
|
|
412
|
+
},
|
|
413
|
+
};
|
|
414
|
+
};
|
|
415
|
+
exports.MergeApiFactory = MergeApiFactory;
|
|
416
|
+
/**
|
|
417
|
+
* MergeApi - object-oriented interface
|
|
418
|
+
* @export
|
|
419
|
+
* @class MergeApi
|
|
420
|
+
* @extends {BaseAPI}
|
|
421
|
+
*/
|
|
422
|
+
class MergeApi extends base_1.BaseAPI {
|
|
423
|
+
/**
|
|
424
|
+
*
|
|
425
|
+
* @param {string} [returnUrl]
|
|
426
|
+
* @param {*} [options] Override http request option.
|
|
427
|
+
* @throws {RequiredError}
|
|
428
|
+
* @memberof MergeApi
|
|
429
|
+
*/
|
|
430
|
+
mergeCallback(returnUrl, options) {
|
|
431
|
+
return (0, exports.MergeApiFp)(this.configuration).mergeCallback(returnUrl, options).then((request) => request(this.axios, this.basePath));
|
|
432
|
+
}
|
|
433
|
+
/**
|
|
434
|
+
*
|
|
435
|
+
* @param {string} [returnUrl]
|
|
436
|
+
* @param {*} [options] Override http request option.
|
|
437
|
+
* @throws {RequiredError}
|
|
438
|
+
* @memberof MergeApi
|
|
439
|
+
*/
|
|
440
|
+
mergeLogin(returnUrl, options) {
|
|
441
|
+
return (0, exports.MergeApiFp)(this.configuration).mergeLogin(returnUrl, options).then((request) => request(this.axios, this.basePath));
|
|
442
|
+
}
|
|
443
|
+
}
|
|
444
|
+
exports.MergeApi = MergeApi;
|
|
445
|
+
/**
|
|
446
|
+
* ORCiDApi - axios parameter creator
|
|
447
|
+
* @export
|
|
448
|
+
*/
|
|
449
|
+
const ORCiDApiAxiosParamCreator = function (configuration) {
|
|
450
|
+
return {
|
|
451
|
+
/**
|
|
452
|
+
*
|
|
453
|
+
* @summary ORCiD Login Route
|
|
454
|
+
* @param {string} [returnUrl] URL to be redirected to
|
|
455
|
+
* @param {*} [options] Override http request option.
|
|
456
|
+
* @throws {RequiredError}
|
|
457
|
+
*/
|
|
458
|
+
oRCiDLoginGET: (returnUrl, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
459
|
+
const localVarPath = `/ORCiD/login`;
|
|
460
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
461
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
462
|
+
let baseOptions;
|
|
463
|
+
if (configuration) {
|
|
464
|
+
baseOptions = configuration.baseOptions;
|
|
465
|
+
}
|
|
466
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
467
|
+
const localVarHeaderParameter = {};
|
|
468
|
+
const localVarQueryParameter = {};
|
|
469
|
+
// authentication JWT token required
|
|
470
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
471
|
+
if (returnUrl !== undefined) {
|
|
472
|
+
localVarQueryParameter['returnUrl'] = returnUrl;
|
|
473
|
+
}
|
|
474
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
|
|
475
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
476
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
477
|
+
return {
|
|
478
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
479
|
+
options: localVarRequestOptions,
|
|
480
|
+
};
|
|
481
|
+
}),
|
|
482
|
+
/**
|
|
483
|
+
*
|
|
484
|
+
* @summary Execute ORCiD validation and login
|
|
485
|
+
* @param {string} [oRCiDJWT]
|
|
486
|
+
* @param {string} [returnUrl] URL to be redirected to
|
|
487
|
+
* @param {*} [options] Override http request option.
|
|
488
|
+
* @throws {RequiredError}
|
|
489
|
+
*/
|
|
490
|
+
oRCiDLoginPOST: (oRCiDJWT, returnUrl, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
491
|
+
const localVarPath = `/ORCiD/login`;
|
|
492
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
493
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
494
|
+
let baseOptions;
|
|
495
|
+
if (configuration) {
|
|
496
|
+
baseOptions = configuration.baseOptions;
|
|
497
|
+
}
|
|
498
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
499
|
+
const localVarHeaderParameter = {};
|
|
500
|
+
const localVarQueryParameter = {};
|
|
501
|
+
// authentication JWT token required
|
|
502
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
503
|
+
if (oRCiDJWT !== undefined) {
|
|
504
|
+
localVarQueryParameter['ORCiD_JWT'] = oRCiDJWT;
|
|
505
|
+
}
|
|
506
|
+
if (returnUrl !== undefined) {
|
|
507
|
+
localVarQueryParameter['returnUrl'] = returnUrl;
|
|
508
|
+
}
|
|
509
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
|
|
510
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
511
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
512
|
+
return {
|
|
513
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
514
|
+
options: localVarRequestOptions,
|
|
515
|
+
};
|
|
516
|
+
}),
|
|
517
|
+
};
|
|
518
|
+
};
|
|
519
|
+
exports.ORCiDApiAxiosParamCreator = ORCiDApiAxiosParamCreator;
|
|
520
|
+
/**
|
|
521
|
+
* ORCiDApi - functional programming interface
|
|
522
|
+
* @export
|
|
523
|
+
*/
|
|
524
|
+
const ORCiDApiFp = function (configuration) {
|
|
525
|
+
const localVarAxiosParamCreator = (0, exports.ORCiDApiAxiosParamCreator)(configuration);
|
|
526
|
+
return {
|
|
527
|
+
/**
|
|
528
|
+
*
|
|
529
|
+
* @summary ORCiD Login Route
|
|
530
|
+
* @param {string} [returnUrl] URL to be redirected to
|
|
531
|
+
* @param {*} [options] Override http request option.
|
|
532
|
+
* @throws {RequiredError}
|
|
533
|
+
*/
|
|
534
|
+
oRCiDLoginGET(returnUrl, options) {
|
|
535
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
536
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.oRCiDLoginGET(returnUrl, options);
|
|
537
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
538
|
+
});
|
|
539
|
+
},
|
|
540
|
+
/**
|
|
541
|
+
*
|
|
542
|
+
* @summary Execute ORCiD validation and login
|
|
543
|
+
* @param {string} [oRCiDJWT]
|
|
544
|
+
* @param {string} [returnUrl] URL to be redirected to
|
|
545
|
+
* @param {*} [options] Override http request option.
|
|
546
|
+
* @throws {RequiredError}
|
|
547
|
+
*/
|
|
548
|
+
oRCiDLoginPOST(oRCiDJWT, returnUrl, options) {
|
|
549
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
550
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.oRCiDLoginPOST(oRCiDJWT, returnUrl, options);
|
|
551
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
552
|
+
});
|
|
553
|
+
},
|
|
554
|
+
};
|
|
555
|
+
};
|
|
556
|
+
exports.ORCiDApiFp = ORCiDApiFp;
|
|
557
|
+
/**
|
|
558
|
+
* ORCiDApi - factory interface
|
|
559
|
+
* @export
|
|
560
|
+
*/
|
|
561
|
+
const ORCiDApiFactory = function (configuration, basePath, axios) {
|
|
562
|
+
const localVarFp = (0, exports.ORCiDApiFp)(configuration);
|
|
563
|
+
return {
|
|
564
|
+
/**
|
|
565
|
+
*
|
|
566
|
+
* @summary ORCiD Login Route
|
|
567
|
+
* @param {string} [returnUrl] URL to be redirected to
|
|
568
|
+
* @param {*} [options] Override http request option.
|
|
569
|
+
* @throws {RequiredError}
|
|
570
|
+
*/
|
|
571
|
+
oRCiDLoginGET(returnUrl, options) {
|
|
572
|
+
return localVarFp.oRCiDLoginGET(returnUrl, options).then((request) => request(axios, basePath));
|
|
573
|
+
},
|
|
574
|
+
/**
|
|
575
|
+
*
|
|
576
|
+
* @summary Execute ORCiD validation and login
|
|
577
|
+
* @param {string} [oRCiDJWT]
|
|
578
|
+
* @param {string} [returnUrl] URL to be redirected to
|
|
579
|
+
* @param {*} [options] Override http request option.
|
|
580
|
+
* @throws {RequiredError}
|
|
581
|
+
*/
|
|
582
|
+
oRCiDLoginPOST(oRCiDJWT, returnUrl, options) {
|
|
583
|
+
return localVarFp.oRCiDLoginPOST(oRCiDJWT, returnUrl, options).then((request) => request(axios, basePath));
|
|
584
|
+
},
|
|
585
|
+
};
|
|
586
|
+
};
|
|
587
|
+
exports.ORCiDApiFactory = ORCiDApiFactory;
|
|
588
|
+
/**
|
|
589
|
+
* ORCiDApi - object-oriented interface
|
|
590
|
+
* @export
|
|
591
|
+
* @class ORCiDApi
|
|
592
|
+
* @extends {BaseAPI}
|
|
593
|
+
*/
|
|
594
|
+
class ORCiDApi extends base_1.BaseAPI {
|
|
595
|
+
/**
|
|
596
|
+
*
|
|
597
|
+
* @summary ORCiD Login Route
|
|
598
|
+
* @param {string} [returnUrl] URL to be redirected to
|
|
599
|
+
* @param {*} [options] Override http request option.
|
|
600
|
+
* @throws {RequiredError}
|
|
601
|
+
* @memberof ORCiDApi
|
|
602
|
+
*/
|
|
603
|
+
oRCiDLoginGET(returnUrl, options) {
|
|
604
|
+
return (0, exports.ORCiDApiFp)(this.configuration).oRCiDLoginGET(returnUrl, options).then((request) => request(this.axios, this.basePath));
|
|
605
|
+
}
|
|
606
|
+
/**
|
|
607
|
+
*
|
|
608
|
+
* @summary Execute ORCiD validation and login
|
|
609
|
+
* @param {string} [oRCiDJWT]
|
|
610
|
+
* @param {string} [returnUrl] URL to be redirected to
|
|
611
|
+
* @param {*} [options] Override http request option.
|
|
612
|
+
* @throws {RequiredError}
|
|
613
|
+
* @memberof ORCiDApi
|
|
614
|
+
*/
|
|
615
|
+
oRCiDLoginPOST(oRCiDJWT, returnUrl, options) {
|
|
616
|
+
return (0, exports.ORCiDApiFp)(this.configuration).oRCiDLoginPOST(oRCiDJWT, returnUrl, options).then((request) => request(this.axios, this.basePath));
|
|
617
|
+
}
|
|
618
|
+
}
|
|
619
|
+
exports.ORCiDApi = ORCiDApi;
|
|
620
|
+
/**
|
|
621
|
+
* ShibbolethApi - axios parameter creator
|
|
622
|
+
* @export
|
|
623
|
+
*/
|
|
624
|
+
const ShibbolethApiAxiosParamCreator = function (configuration) {
|
|
625
|
+
return {
|
|
626
|
+
/**
|
|
627
|
+
*
|
|
628
|
+
* @summary Callback method to catch the login
|
|
629
|
+
* @param {string} [returnUrl] URL to be redirected to
|
|
630
|
+
* @param {string} [remoteError] Erros on remote login
|
|
631
|
+
* @param {*} [options] Override http request option.
|
|
632
|
+
* @throws {RequiredError}
|
|
633
|
+
*/
|
|
634
|
+
shibbolethCallback: (returnUrl, remoteError, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
635
|
+
const localVarPath = `/Shibboleth/callback`;
|
|
636
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
637
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
638
|
+
let baseOptions;
|
|
639
|
+
if (configuration) {
|
|
640
|
+
baseOptions = configuration.baseOptions;
|
|
641
|
+
}
|
|
642
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
643
|
+
const localVarHeaderParameter = {};
|
|
644
|
+
const localVarQueryParameter = {};
|
|
645
|
+
// authentication JWT token required
|
|
646
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
647
|
+
if (returnUrl !== undefined) {
|
|
648
|
+
localVarQueryParameter['returnUrl'] = returnUrl;
|
|
649
|
+
}
|
|
650
|
+
if (remoteError !== undefined) {
|
|
651
|
+
localVarQueryParameter['remoteError'] = remoteError;
|
|
652
|
+
}
|
|
653
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
|
|
654
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
655
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
656
|
+
return {
|
|
657
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
658
|
+
options: localVarRequestOptions,
|
|
659
|
+
};
|
|
660
|
+
}),
|
|
661
|
+
/**
|
|
662
|
+
*
|
|
663
|
+
* @summary This method is the central route for logging into an identity provider. On default, the user is redirected to the WAFY of the DFN-AAI. Setting the \"entityId\" parameter allows the application to redirect to a specific identity provider defined by DFN-AAI.
|
|
664
|
+
* @param {string} [returnUrl] URL to be redirected to
|
|
665
|
+
* @param {string} [entityId] Specific Identitiy Provider to be redirect to
|
|
666
|
+
* @param {*} [options] Override http request option.
|
|
667
|
+
* @throws {RequiredError}
|
|
668
|
+
*/
|
|
669
|
+
shibbolethLogin: (returnUrl, entityId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
670
|
+
const localVarPath = `/Shibboleth/login`;
|
|
671
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
672
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
673
|
+
let baseOptions;
|
|
674
|
+
if (configuration) {
|
|
675
|
+
baseOptions = configuration.baseOptions;
|
|
676
|
+
}
|
|
677
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
678
|
+
const localVarHeaderParameter = {};
|
|
679
|
+
const localVarQueryParameter = {};
|
|
680
|
+
// authentication JWT token required
|
|
681
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
682
|
+
if (returnUrl !== undefined) {
|
|
683
|
+
localVarQueryParameter['returnUrl'] = returnUrl;
|
|
684
|
+
}
|
|
685
|
+
if (entityId !== undefined) {
|
|
686
|
+
localVarQueryParameter['entityId'] = entityId;
|
|
687
|
+
}
|
|
688
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query);
|
|
689
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
690
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
691
|
+
return {
|
|
692
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
693
|
+
options: localVarRequestOptions,
|
|
694
|
+
};
|
|
695
|
+
}),
|
|
696
|
+
};
|
|
697
|
+
};
|
|
698
|
+
exports.ShibbolethApiAxiosParamCreator = ShibbolethApiAxiosParamCreator;
|
|
699
|
+
/**
|
|
700
|
+
* ShibbolethApi - functional programming interface
|
|
701
|
+
* @export
|
|
702
|
+
*/
|
|
703
|
+
const ShibbolethApiFp = function (configuration) {
|
|
704
|
+
const localVarAxiosParamCreator = (0, exports.ShibbolethApiAxiosParamCreator)(configuration);
|
|
705
|
+
return {
|
|
706
|
+
/**
|
|
707
|
+
*
|
|
708
|
+
* @summary Callback method to catch the login
|
|
709
|
+
* @param {string} [returnUrl] URL to be redirected to
|
|
710
|
+
* @param {string} [remoteError] Erros on remote login
|
|
711
|
+
* @param {*} [options] Override http request option.
|
|
712
|
+
* @throws {RequiredError}
|
|
713
|
+
*/
|
|
714
|
+
shibbolethCallback(returnUrl, remoteError, options) {
|
|
715
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
716
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.shibbolethCallback(returnUrl, remoteError, options);
|
|
717
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
718
|
+
});
|
|
719
|
+
},
|
|
720
|
+
/**
|
|
721
|
+
*
|
|
722
|
+
* @summary This method is the central route for logging into an identity provider. On default, the user is redirected to the WAFY of the DFN-AAI. Setting the \"entityId\" parameter allows the application to redirect to a specific identity provider defined by DFN-AAI.
|
|
723
|
+
* @param {string} [returnUrl] URL to be redirected to
|
|
724
|
+
* @param {string} [entityId] Specific Identitiy Provider to be redirect to
|
|
725
|
+
* @param {*} [options] Override http request option.
|
|
726
|
+
* @throws {RequiredError}
|
|
727
|
+
*/
|
|
728
|
+
shibbolethLogin(returnUrl, entityId, options) {
|
|
729
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
730
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.shibbolethLogin(returnUrl, entityId, options);
|
|
731
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
732
|
+
});
|
|
733
|
+
},
|
|
734
|
+
};
|
|
735
|
+
};
|
|
736
|
+
exports.ShibbolethApiFp = ShibbolethApiFp;
|
|
737
|
+
/**
|
|
738
|
+
* ShibbolethApi - factory interface
|
|
739
|
+
* @export
|
|
740
|
+
*/
|
|
741
|
+
const ShibbolethApiFactory = function (configuration, basePath, axios) {
|
|
742
|
+
const localVarFp = (0, exports.ShibbolethApiFp)(configuration);
|
|
743
|
+
return {
|
|
744
|
+
/**
|
|
745
|
+
*
|
|
746
|
+
* @summary Callback method to catch the login
|
|
747
|
+
* @param {string} [returnUrl] URL to be redirected to
|
|
748
|
+
* @param {string} [remoteError] Erros on remote login
|
|
749
|
+
* @param {*} [options] Override http request option.
|
|
750
|
+
* @throws {RequiredError}
|
|
751
|
+
*/
|
|
752
|
+
shibbolethCallback(returnUrl, remoteError, options) {
|
|
753
|
+
return localVarFp.shibbolethCallback(returnUrl, remoteError, options).then((request) => request(axios, basePath));
|
|
754
|
+
},
|
|
755
|
+
/**
|
|
756
|
+
*
|
|
757
|
+
* @summary This method is the central route for logging into an identity provider. On default, the user is redirected to the WAFY of the DFN-AAI. Setting the \"entityId\" parameter allows the application to redirect to a specific identity provider defined by DFN-AAI.
|
|
758
|
+
* @param {string} [returnUrl] URL to be redirected to
|
|
759
|
+
* @param {string} [entityId] Specific Identitiy Provider to be redirect to
|
|
760
|
+
* @param {*} [options] Override http request option.
|
|
761
|
+
* @throws {RequiredError}
|
|
762
|
+
*/
|
|
763
|
+
shibbolethLogin(returnUrl, entityId, options) {
|
|
764
|
+
return localVarFp.shibbolethLogin(returnUrl, entityId, options).then((request) => request(axios, basePath));
|
|
765
|
+
},
|
|
766
|
+
};
|
|
767
|
+
};
|
|
768
|
+
exports.ShibbolethApiFactory = ShibbolethApiFactory;
|
|
769
|
+
/**
|
|
770
|
+
* ShibbolethApi - object-oriented interface
|
|
771
|
+
* @export
|
|
772
|
+
* @class ShibbolethApi
|
|
773
|
+
* @extends {BaseAPI}
|
|
774
|
+
*/
|
|
775
|
+
class ShibbolethApi extends base_1.BaseAPI {
|
|
776
|
+
/**
|
|
777
|
+
*
|
|
778
|
+
* @summary Callback method to catch the login
|
|
779
|
+
* @param {string} [returnUrl] URL to be redirected to
|
|
780
|
+
* @param {string} [remoteError] Erros on remote login
|
|
781
|
+
* @param {*} [options] Override http request option.
|
|
782
|
+
* @throws {RequiredError}
|
|
783
|
+
* @memberof ShibbolethApi
|
|
784
|
+
*/
|
|
785
|
+
shibbolethCallback(returnUrl, remoteError, options) {
|
|
786
|
+
return (0, exports.ShibbolethApiFp)(this.configuration).shibbolethCallback(returnUrl, remoteError, options).then((request) => request(this.axios, this.basePath));
|
|
787
|
+
}
|
|
788
|
+
/**
|
|
789
|
+
*
|
|
790
|
+
* @summary This method is the central route for logging into an identity provider. On default, the user is redirected to the WAFY of the DFN-AAI. Setting the \"entityId\" parameter allows the application to redirect to a specific identity provider defined by DFN-AAI.
|
|
791
|
+
* @param {string} [returnUrl] URL to be redirected to
|
|
792
|
+
* @param {string} [entityId] Specific Identitiy Provider to be redirect to
|
|
793
|
+
* @param {*} [options] Override http request option.
|
|
794
|
+
* @throws {RequiredError}
|
|
795
|
+
* @memberof ShibbolethApi
|
|
796
|
+
*/
|
|
797
|
+
shibbolethLogin(returnUrl, entityId, options) {
|
|
798
|
+
return (0, exports.ShibbolethApiFp)(this.configuration).shibbolethLogin(returnUrl, entityId, options).then((request) => request(this.axios, this.basePath));
|
|
799
|
+
}
|
|
800
|
+
}
|
|
801
|
+
exports.ShibbolethApi = ShibbolethApi;
|
|
802
|
+
//# sourceMappingURL=api.js.map
|