@emilgroup/auth-sdk-node 1.17.2-beta.1 → 1.18.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/.openapi-generator/FILES +6 -1
- package/README.md +2 -2
- package/api/{default-api.ts → health-api.ts} +17 -17
- package/api/workspaces-api.ts +273 -0
- package/api.ts +4 -2
- package/dist/api/authservice-api.js +38 -95
- package/dist/api/health-api.d.ts +70 -0
- package/dist/api/{default-api.js → health-api.js} +31 -44
- package/dist/api/workspaces-api.d.ts +153 -0
- package/dist/api/workspaces-api.js +321 -0
- package/dist/api.d.ts +2 -1
- package/dist/api.js +2 -1
- package/dist/base.js +15 -25
- package/dist/common.d.ts +1 -1
- package/dist/common.js +2 -2
- package/dist/models/index.d.ts +4 -0
- package/dist/models/index.js +4 -0
- package/dist/models/list-workspaces-response-class.d.ts +25 -0
- package/dist/models/list-workspaces-response-class.js +15 -0
- package/dist/models/switch-workspace-request-without-refresh-token-dto.d.ts +30 -0
- package/dist/models/switch-workspace-request-without-refresh-token-dto.js +15 -0
- package/dist/models/switch-workspace-response-class.d.ts +24 -0
- package/dist/models/switch-workspace-response-class.js +15 -0
- package/dist/models/user-class.d.ts +6 -0
- package/dist/models/workspace-class.d.ts +48 -0
- package/dist/models/workspace-class.js +15 -0
- package/models/index.ts +4 -0
- package/models/list-workspaces-response-class.ts +31 -0
- package/models/switch-workspace-request-without-refresh-token-dto.ts +36 -0
- package/models/switch-workspace-response-class.ts +30 -0
- package/models/user-class.ts +6 -0
- package/models/workspace-class.ts +54 -0
- package/package.json +4 -4
- package/dist/api/default-api.d.ts +0 -70
|
@@ -0,0 +1,321 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* EMIL AuthService
|
|
6
|
+
* The EMIL AuthService API description
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
* Contact: kontakt@emil.de
|
|
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 __extends = (this && this.__extends) || (function () {
|
|
16
|
+
var extendStatics = function (d, b) {
|
|
17
|
+
extendStatics = Object.setPrototypeOf ||
|
|
18
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
19
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
20
|
+
return extendStatics(d, b);
|
|
21
|
+
};
|
|
22
|
+
return function (d, b) {
|
|
23
|
+
if (typeof b !== "function" && b !== null)
|
|
24
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
25
|
+
extendStatics(d, b);
|
|
26
|
+
function __() { this.constructor = d; }
|
|
27
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
28
|
+
};
|
|
29
|
+
})();
|
|
30
|
+
var __assign = (this && this.__assign) || function () {
|
|
31
|
+
__assign = Object.assign || function(t) {
|
|
32
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
33
|
+
s = arguments[i];
|
|
34
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
35
|
+
t[p] = s[p];
|
|
36
|
+
}
|
|
37
|
+
return t;
|
|
38
|
+
};
|
|
39
|
+
return __assign.apply(this, arguments);
|
|
40
|
+
};
|
|
41
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
42
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
43
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
44
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
45
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
46
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
47
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
48
|
+
});
|
|
49
|
+
};
|
|
50
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
51
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
52
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
53
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
54
|
+
function step(op) {
|
|
55
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
56
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
57
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
58
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
59
|
+
switch (op[0]) {
|
|
60
|
+
case 0: case 1: t = op; break;
|
|
61
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
62
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
63
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
64
|
+
default:
|
|
65
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
66
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
67
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
68
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
69
|
+
if (t[2]) _.ops.pop();
|
|
70
|
+
_.trys.pop(); continue;
|
|
71
|
+
}
|
|
72
|
+
op = body.call(thisArg, _);
|
|
73
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
74
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
75
|
+
}
|
|
76
|
+
};
|
|
77
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
78
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
79
|
+
};
|
|
80
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
81
|
+
exports.WorkspacesApi = exports.WorkspacesApiFactory = exports.WorkspacesApiFp = exports.WorkspacesApiAxiosParamCreator = void 0;
|
|
82
|
+
var axios_1 = __importDefault(require("axios"));
|
|
83
|
+
// Some imports not used depending on template conditions
|
|
84
|
+
// @ts-ignore
|
|
85
|
+
var common_1 = require("../common");
|
|
86
|
+
// @ts-ignore
|
|
87
|
+
var base_1 = require("../base");
|
|
88
|
+
// URLSearchParams not necessarily used
|
|
89
|
+
// @ts-ignore
|
|
90
|
+
var url_1 = require("url");
|
|
91
|
+
var FormData = require('form-data');
|
|
92
|
+
/**
|
|
93
|
+
* WorkspacesApi - axios parameter creator
|
|
94
|
+
* @export
|
|
95
|
+
*/
|
|
96
|
+
var WorkspacesApiAxiosParamCreator = function (configuration) {
|
|
97
|
+
var _this = this;
|
|
98
|
+
return {
|
|
99
|
+
/**
|
|
100
|
+
* Returns a list of workspaces you have access to. Note that this endpoint does not support sorting or pagination.
|
|
101
|
+
* @summary List workspaces
|
|
102
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
103
|
+
* @param {*} [options] Override http request option.
|
|
104
|
+
* @throws {RequiredError}
|
|
105
|
+
*/
|
|
106
|
+
listWorkspaces: function (authorization, options) {
|
|
107
|
+
if (options === void 0) { options = {}; }
|
|
108
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
109
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
110
|
+
return __generator(this, function (_a) {
|
|
111
|
+
switch (_a.label) {
|
|
112
|
+
case 0:
|
|
113
|
+
localVarPath = "/authservice/v1/workspaces";
|
|
114
|
+
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
115
|
+
if (configuration) {
|
|
116
|
+
baseOptions = configuration.baseOptions;
|
|
117
|
+
baseAccessToken = configuration.accessToken;
|
|
118
|
+
}
|
|
119
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
120
|
+
localVarHeaderParameter = {};
|
|
121
|
+
localVarQueryParameter = {};
|
|
122
|
+
// authentication bearer required
|
|
123
|
+
// http bearer authentication required
|
|
124
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
125
|
+
case 1:
|
|
126
|
+
// authentication bearer required
|
|
127
|
+
// http bearer authentication required
|
|
128
|
+
_a.sent();
|
|
129
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
130
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
131
|
+
}
|
|
132
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
133
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
134
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
135
|
+
return [2 /*return*/, {
|
|
136
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
137
|
+
options: localVarRequestOptions,
|
|
138
|
+
}];
|
|
139
|
+
}
|
|
140
|
+
});
|
|
141
|
+
});
|
|
142
|
+
},
|
|
143
|
+
/**
|
|
144
|
+
* Switch to a different workspace and get new access and refresh tokens.
|
|
145
|
+
* @summary Switch workspace
|
|
146
|
+
* @param {SwitchWorkspaceRequestWithoutRefreshTokenDto} switchWorkspaceRequestWithoutRefreshTokenDto
|
|
147
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
148
|
+
* @param {string} [cookie] HTTP only cookie that was sent during login
|
|
149
|
+
* @param {*} [options] Override http request option.
|
|
150
|
+
* @throws {RequiredError}
|
|
151
|
+
*/
|
|
152
|
+
switchWorkspace: function (switchWorkspaceRequestWithoutRefreshTokenDto, authorization, cookie, options) {
|
|
153
|
+
if (options === void 0) { options = {}; }
|
|
154
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
155
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
156
|
+
return __generator(this, function (_a) {
|
|
157
|
+
switch (_a.label) {
|
|
158
|
+
case 0:
|
|
159
|
+
// verify required parameter 'switchWorkspaceRequestWithoutRefreshTokenDto' is not null or undefined
|
|
160
|
+
(0, common_1.assertParamExists)('switchWorkspace', 'switchWorkspaceRequestWithoutRefreshTokenDto', switchWorkspaceRequestWithoutRefreshTokenDto);
|
|
161
|
+
localVarPath = "/authservice/v1/workspaces/switch";
|
|
162
|
+
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
163
|
+
if (configuration) {
|
|
164
|
+
baseOptions = configuration.baseOptions;
|
|
165
|
+
baseAccessToken = configuration.accessToken;
|
|
166
|
+
}
|
|
167
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
168
|
+
localVarHeaderParameter = {};
|
|
169
|
+
localVarQueryParameter = {};
|
|
170
|
+
// authentication bearer required
|
|
171
|
+
// http bearer authentication required
|
|
172
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
173
|
+
case 1:
|
|
174
|
+
// authentication bearer required
|
|
175
|
+
// http bearer authentication required
|
|
176
|
+
_a.sent();
|
|
177
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
178
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
179
|
+
}
|
|
180
|
+
if (cookie !== undefined && cookie !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
181
|
+
localVarHeaderParameter['Cookie'] = String(cookie ? cookie : baseAccessToken);
|
|
182
|
+
}
|
|
183
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
184
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
185
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
186
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
187
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(switchWorkspaceRequestWithoutRefreshTokenDto, localVarRequestOptions, configuration);
|
|
188
|
+
return [2 /*return*/, {
|
|
189
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
190
|
+
options: localVarRequestOptions,
|
|
191
|
+
}];
|
|
192
|
+
}
|
|
193
|
+
});
|
|
194
|
+
});
|
|
195
|
+
},
|
|
196
|
+
};
|
|
197
|
+
};
|
|
198
|
+
exports.WorkspacesApiAxiosParamCreator = WorkspacesApiAxiosParamCreator;
|
|
199
|
+
/**
|
|
200
|
+
* WorkspacesApi - functional programming interface
|
|
201
|
+
* @export
|
|
202
|
+
*/
|
|
203
|
+
var WorkspacesApiFp = function (configuration) {
|
|
204
|
+
var localVarAxiosParamCreator = (0, exports.WorkspacesApiAxiosParamCreator)(configuration);
|
|
205
|
+
return {
|
|
206
|
+
/**
|
|
207
|
+
* Returns a list of workspaces you have access to. Note that this endpoint does not support sorting or pagination.
|
|
208
|
+
* @summary List workspaces
|
|
209
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
210
|
+
* @param {*} [options] Override http request option.
|
|
211
|
+
* @throws {RequiredError}
|
|
212
|
+
*/
|
|
213
|
+
listWorkspaces: function (authorization, options) {
|
|
214
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
215
|
+
var localVarAxiosArgs;
|
|
216
|
+
return __generator(this, function (_a) {
|
|
217
|
+
switch (_a.label) {
|
|
218
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listWorkspaces(authorization, options)];
|
|
219
|
+
case 1:
|
|
220
|
+
localVarAxiosArgs = _a.sent();
|
|
221
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
222
|
+
}
|
|
223
|
+
});
|
|
224
|
+
});
|
|
225
|
+
},
|
|
226
|
+
/**
|
|
227
|
+
* Switch to a different workspace and get new access and refresh tokens.
|
|
228
|
+
* @summary Switch workspace
|
|
229
|
+
* @param {SwitchWorkspaceRequestWithoutRefreshTokenDto} switchWorkspaceRequestWithoutRefreshTokenDto
|
|
230
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
231
|
+
* @param {string} [cookie] HTTP only cookie that was sent during login
|
|
232
|
+
* @param {*} [options] Override http request option.
|
|
233
|
+
* @throws {RequiredError}
|
|
234
|
+
*/
|
|
235
|
+
switchWorkspace: function (switchWorkspaceRequestWithoutRefreshTokenDto, authorization, cookie, options) {
|
|
236
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
237
|
+
var localVarAxiosArgs;
|
|
238
|
+
return __generator(this, function (_a) {
|
|
239
|
+
switch (_a.label) {
|
|
240
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.switchWorkspace(switchWorkspaceRequestWithoutRefreshTokenDto, authorization, cookie, options)];
|
|
241
|
+
case 1:
|
|
242
|
+
localVarAxiosArgs = _a.sent();
|
|
243
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
244
|
+
}
|
|
245
|
+
});
|
|
246
|
+
});
|
|
247
|
+
},
|
|
248
|
+
};
|
|
249
|
+
};
|
|
250
|
+
exports.WorkspacesApiFp = WorkspacesApiFp;
|
|
251
|
+
/**
|
|
252
|
+
* WorkspacesApi - factory interface
|
|
253
|
+
* @export
|
|
254
|
+
*/
|
|
255
|
+
var WorkspacesApiFactory = function (configuration, basePath, axios) {
|
|
256
|
+
var localVarFp = (0, exports.WorkspacesApiFp)(configuration);
|
|
257
|
+
return {
|
|
258
|
+
/**
|
|
259
|
+
* Returns a list of workspaces you have access to. Note that this endpoint does not support sorting or pagination.
|
|
260
|
+
* @summary List workspaces
|
|
261
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
262
|
+
* @param {*} [options] Override http request option.
|
|
263
|
+
* @throws {RequiredError}
|
|
264
|
+
*/
|
|
265
|
+
listWorkspaces: function (authorization, options) {
|
|
266
|
+
return localVarFp.listWorkspaces(authorization, options).then(function (request) { return request(axios, basePath); });
|
|
267
|
+
},
|
|
268
|
+
/**
|
|
269
|
+
* Switch to a different workspace and get new access and refresh tokens.
|
|
270
|
+
* @summary Switch workspace
|
|
271
|
+
* @param {SwitchWorkspaceRequestWithoutRefreshTokenDto} switchWorkspaceRequestWithoutRefreshTokenDto
|
|
272
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
273
|
+
* @param {string} [cookie] HTTP only cookie that was sent during login
|
|
274
|
+
* @param {*} [options] Override http request option.
|
|
275
|
+
* @throws {RequiredError}
|
|
276
|
+
*/
|
|
277
|
+
switchWorkspace: function (switchWorkspaceRequestWithoutRefreshTokenDto, authorization, cookie, options) {
|
|
278
|
+
return localVarFp.switchWorkspace(switchWorkspaceRequestWithoutRefreshTokenDto, authorization, cookie, options).then(function (request) { return request(axios, basePath); });
|
|
279
|
+
},
|
|
280
|
+
};
|
|
281
|
+
};
|
|
282
|
+
exports.WorkspacesApiFactory = WorkspacesApiFactory;
|
|
283
|
+
/**
|
|
284
|
+
* WorkspacesApi - object-oriented interface
|
|
285
|
+
* @export
|
|
286
|
+
* @class WorkspacesApi
|
|
287
|
+
* @extends {BaseAPI}
|
|
288
|
+
*/
|
|
289
|
+
var WorkspacesApi = /** @class */ (function (_super) {
|
|
290
|
+
__extends(WorkspacesApi, _super);
|
|
291
|
+
function WorkspacesApi() {
|
|
292
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
293
|
+
}
|
|
294
|
+
/**
|
|
295
|
+
* Returns a list of workspaces you have access to. Note that this endpoint does not support sorting or pagination.
|
|
296
|
+
* @summary List workspaces
|
|
297
|
+
* @param {WorkspacesApiListWorkspacesRequest} requestParameters Request parameters.
|
|
298
|
+
* @param {*} [options] Override http request option.
|
|
299
|
+
* @throws {RequiredError}
|
|
300
|
+
* @memberof WorkspacesApi
|
|
301
|
+
*/
|
|
302
|
+
WorkspacesApi.prototype.listWorkspaces = function (requestParameters, options) {
|
|
303
|
+
var _this = this;
|
|
304
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
305
|
+
return (0, exports.WorkspacesApiFp)(this.configuration).listWorkspaces(requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
306
|
+
};
|
|
307
|
+
/**
|
|
308
|
+
* Switch to a different workspace and get new access and refresh tokens.
|
|
309
|
+
* @summary Switch workspace
|
|
310
|
+
* @param {WorkspacesApiSwitchWorkspaceRequest} requestParameters Request parameters.
|
|
311
|
+
* @param {*} [options] Override http request option.
|
|
312
|
+
* @throws {RequiredError}
|
|
313
|
+
* @memberof WorkspacesApi
|
|
314
|
+
*/
|
|
315
|
+
WorkspacesApi.prototype.switchWorkspace = function (requestParameters, options) {
|
|
316
|
+
var _this = this;
|
|
317
|
+
return (0, exports.WorkspacesApiFp)(this.configuration).switchWorkspace(requestParameters.switchWorkspaceRequestWithoutRefreshTokenDto, requestParameters.authorization, requestParameters.cookie, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
318
|
+
};
|
|
319
|
+
return WorkspacesApi;
|
|
320
|
+
}(base_1.BaseAPI));
|
|
321
|
+
exports.WorkspacesApi = WorkspacesApi;
|
package/dist/api.d.ts
CHANGED
package/dist/api.js
CHANGED
|
@@ -28,4 +28,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
28
28
|
};
|
|
29
29
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
30
30
|
__exportStar(require("./api/authservice-api"), exports);
|
|
31
|
-
__exportStar(require("./api/
|
|
31
|
+
__exportStar(require("./api/health-api"), exports);
|
|
32
|
+
__exportStar(require("./api/workspaces-api"), exports);
|
package/dist/base.js
CHANGED
|
@@ -54,23 +54,13 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
54
54
|
}) : function(o, v) {
|
|
55
55
|
o["default"] = v;
|
|
56
56
|
});
|
|
57
|
-
var __importStar = (this && this.__importStar) ||
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
return ownKeys(o);
|
|
65
|
-
};
|
|
66
|
-
return function (mod) {
|
|
67
|
-
if (mod && mod.__esModule) return mod;
|
|
68
|
-
var result = {};
|
|
69
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
70
|
-
__setModuleDefault(result, mod);
|
|
71
|
-
return result;
|
|
72
|
-
};
|
|
73
|
-
})();
|
|
57
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
58
|
+
if (mod && mod.__esModule) return mod;
|
|
59
|
+
var result = {};
|
|
60
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
61
|
+
__setModuleDefault(result, mod);
|
|
62
|
+
return result;
|
|
63
|
+
};
|
|
74
64
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
75
65
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
76
66
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -81,8 +71,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
81
71
|
});
|
|
82
72
|
};
|
|
83
73
|
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
84
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g
|
|
85
|
-
return g
|
|
74
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
75
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
86
76
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
87
77
|
function step(op) {
|
|
88
78
|
if (f) throw new TypeError("Generator is already executing.");
|
|
@@ -111,8 +101,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
111
101
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
112
102
|
};
|
|
113
103
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
114
|
-
exports.RequiredError = exports.BaseAPI = exports.Environment = exports.COLLECTION_FORMATS = exports.BASE_PATH = void 0;
|
|
115
|
-
exports.resetRetry = resetRetry;
|
|
104
|
+
exports.RequiredError = exports.BaseAPI = exports.resetRetry = exports.Environment = exports.COLLECTION_FORMATS = exports.BASE_PATH = void 0;
|
|
116
105
|
var configuration_1 = require("./configuration");
|
|
117
106
|
// Some imports not used depending on template conditions
|
|
118
107
|
// @ts-ignore
|
|
@@ -143,12 +132,13 @@ var Environment;
|
|
|
143
132
|
Environment["Staging"] = "https://apiv2-staging.emil.de";
|
|
144
133
|
Environment["Development"] = "https://apiv2-dev.emil.de";
|
|
145
134
|
Environment["ProductionZurich"] = "https://eu-central-2.apiv2.emil.de";
|
|
146
|
-
})(Environment
|
|
135
|
+
})(Environment = exports.Environment || (exports.Environment = {}));
|
|
147
136
|
var _retry_count = 0;
|
|
148
137
|
var _retry = null;
|
|
149
138
|
function resetRetry() {
|
|
150
139
|
_retry_count = 0;
|
|
151
140
|
}
|
|
141
|
+
exports.resetRetry = resetRetry;
|
|
152
142
|
var NETWORK_ERROR_MESSAGE = "Network Error";
|
|
153
143
|
/**
|
|
154
144
|
*
|
|
@@ -172,9 +162,9 @@ var BaseAPI = /** @class */ (function () {
|
|
|
172
162
|
}
|
|
173
163
|
this.attachInterceptor(axios);
|
|
174
164
|
}
|
|
175
|
-
BaseAPI.prototype.initialize = function () {
|
|
176
|
-
|
|
177
|
-
|
|
165
|
+
BaseAPI.prototype.initialize = function (env) {
|
|
166
|
+
if (env === void 0) { env = Environment.Production; }
|
|
167
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
178
168
|
return __generator(this, function (_a) {
|
|
179
169
|
switch (_a.label) {
|
|
180
170
|
case 0:
|
package/dist/common.d.ts
CHANGED
|
@@ -63,7 +63,7 @@ export declare const toPathString: (url: URL) => string;
|
|
|
63
63
|
*
|
|
64
64
|
* @export
|
|
65
65
|
*/
|
|
66
|
-
export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => <T = unknown, R = AxiosResponse<T>>(axios?: AxiosInstance, basePath?: string) => Promise<R>;
|
|
66
|
+
export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => <T = unknown, R = AxiosResponse<T, any>>(axios?: AxiosInstance, basePath?: string) => Promise<R>;
|
|
67
67
|
/**
|
|
68
68
|
* EMIL AuthService
|
|
69
69
|
* The EMIL AuthService API description
|
package/dist/common.js
CHANGED
|
@@ -33,8 +33,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
33
33
|
});
|
|
34
34
|
};
|
|
35
35
|
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
36
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g
|
|
37
|
-
return g
|
|
36
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
37
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
38
38
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
39
39
|
function step(op) {
|
|
40
40
|
if (f) throw new TypeError("Generator is already executing.");
|
package/dist/models/index.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ export * from './forgot-password-request-dto';
|
|
|
7
7
|
export * from './get-saml-login-link-request-dto';
|
|
8
8
|
export * from './inline-response200';
|
|
9
9
|
export * from './inline-response503';
|
|
10
|
+
export * from './list-workspaces-response-class';
|
|
10
11
|
export * from './login-by-saml-request-dto';
|
|
11
12
|
export * from './login-class';
|
|
12
13
|
export * from './login-request-dto';
|
|
@@ -16,6 +17,9 @@ export * from './organization-class';
|
|
|
16
17
|
export * from './refresh-token-dto';
|
|
17
18
|
export * from './reset-password-request-dto';
|
|
18
19
|
export * from './role-class';
|
|
20
|
+
export * from './switch-workspace-request-without-refresh-token-dto';
|
|
21
|
+
export * from './switch-workspace-response-class';
|
|
19
22
|
export * from './user-class';
|
|
20
23
|
export * from './verify-org-invitation-request-dto';
|
|
21
24
|
export * from './verify-org-invitation-response-class';
|
|
25
|
+
export * from './workspace-class';
|
package/dist/models/index.js
CHANGED
|
@@ -23,6 +23,7 @@ __exportStar(require("./forgot-password-request-dto"), exports);
|
|
|
23
23
|
__exportStar(require("./get-saml-login-link-request-dto"), exports);
|
|
24
24
|
__exportStar(require("./inline-response200"), exports);
|
|
25
25
|
__exportStar(require("./inline-response503"), exports);
|
|
26
|
+
__exportStar(require("./list-workspaces-response-class"), exports);
|
|
26
27
|
__exportStar(require("./login-by-saml-request-dto"), exports);
|
|
27
28
|
__exportStar(require("./login-class"), exports);
|
|
28
29
|
__exportStar(require("./login-request-dto"), exports);
|
|
@@ -32,6 +33,9 @@ __exportStar(require("./organization-class"), exports);
|
|
|
32
33
|
__exportStar(require("./refresh-token-dto"), exports);
|
|
33
34
|
__exportStar(require("./reset-password-request-dto"), exports);
|
|
34
35
|
__exportStar(require("./role-class"), exports);
|
|
36
|
+
__exportStar(require("./switch-workspace-request-without-refresh-token-dto"), exports);
|
|
37
|
+
__exportStar(require("./switch-workspace-response-class"), exports);
|
|
35
38
|
__exportStar(require("./user-class"), exports);
|
|
36
39
|
__exportStar(require("./verify-org-invitation-request-dto"), exports);
|
|
37
40
|
__exportStar(require("./verify-org-invitation-response-class"), exports);
|
|
41
|
+
__exportStar(require("./workspace-class"), exports);
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EMIL AuthService
|
|
3
|
+
* The EMIL AuthService API description
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
* Contact: kontakt@emil.de
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import { WorkspaceClass } from './workspace-class';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ListWorkspacesResponseClass
|
|
17
|
+
*/
|
|
18
|
+
export interface ListWorkspacesResponseClass {
|
|
19
|
+
/**
|
|
20
|
+
* The list of workspaces.
|
|
21
|
+
* @type {Array<WorkspaceClass>}
|
|
22
|
+
* @memberof ListWorkspacesResponseClass
|
|
23
|
+
*/
|
|
24
|
+
'workspaces': Array<WorkspaceClass>;
|
|
25
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* EMIL AuthService
|
|
6
|
+
* The EMIL AuthService API description
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
* Contact: kontakt@emil.de
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EMIL AuthService
|
|
3
|
+
* The EMIL AuthService API description
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
* Contact: kontakt@emil.de
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface SwitchWorkspaceRequestWithoutRefreshTokenDto
|
|
16
|
+
*/
|
|
17
|
+
export interface SwitchWorkspaceRequestWithoutRefreshTokenDto {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof SwitchWorkspaceRequestWithoutRefreshTokenDto
|
|
22
|
+
*/
|
|
23
|
+
'username': string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof SwitchWorkspaceRequestWithoutRefreshTokenDto
|
|
28
|
+
*/
|
|
29
|
+
'targetWorkspace': string;
|
|
30
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* EMIL AuthService
|
|
6
|
+
* The EMIL AuthService API description
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
* Contact: kontakt@emil.de
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EMIL AuthService
|
|
3
|
+
* The EMIL AuthService API description
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
* Contact: kontakt@emil.de
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface SwitchWorkspaceResponseClass
|
|
16
|
+
*/
|
|
17
|
+
export interface SwitchWorkspaceResponseClass {
|
|
18
|
+
/**
|
|
19
|
+
* Access token for API authentication
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof SwitchWorkspaceResponseClass
|
|
22
|
+
*/
|
|
23
|
+
'accessToken': string;
|
|
24
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* EMIL AuthService
|
|
6
|
+
* The EMIL AuthService API description
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
* Contact: kontakt@emil.de
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|