@emilgroup/auth-sdk 1.20.1-beta.0 → 1.20.1-beta.1
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 +2 -0
- package/README.md +2 -2
- package/api/default-api.ts +4 -4
- package/api/workspaces-api.ts +213 -0
- package/api.ts +2 -0
- package/dist/api/default-api.d.ts +4 -4
- package/dist/api/default-api.js +4 -4
- package/dist/api/workspaces-api.d.ts +117 -0
- package/dist/api/workspaces-api.js +292 -0
- package/dist/api.d.ts +1 -0
- package/dist/api.js +1 -0
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -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/user-class.d.ts +6 -0
- package/models/index.ts +1 -0
- package/models/switch-workspace-request-without-refresh-token-dto.ts +36 -0
- package/models/user-class.ts +6 -0
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -5,6 +5,7 @@ README.md
|
|
|
5
5
|
api.ts
|
|
6
6
|
api/authservice-api.ts
|
|
7
7
|
api/default-api.ts
|
|
8
|
+
api/workspaces-api.ts
|
|
8
9
|
base.ts
|
|
9
10
|
common.ts
|
|
10
11
|
configuration.ts
|
|
@@ -29,6 +30,7 @@ models/organization-class.ts
|
|
|
29
30
|
models/refresh-token-dto.ts
|
|
30
31
|
models/reset-password-request-dto.ts
|
|
31
32
|
models/role-class.ts
|
|
33
|
+
models/switch-workspace-request-without-refresh-token-dto.ts
|
|
32
34
|
models/user-class.ts
|
|
33
35
|
models/verify-org-invitation-request-dto.ts
|
|
34
36
|
models/verify-org-invitation-response-class.ts
|
package/README.md
CHANGED
|
@@ -17,11 +17,11 @@ Although this package can be used in both TypeScript and JavaScript, it is inten
|
|
|
17
17
|
Navigate to the folder of your consuming project and run one of the following commands:
|
|
18
18
|
|
|
19
19
|
```
|
|
20
|
-
npm install @emilgroup/auth-sdk@1.20.1-beta.
|
|
20
|
+
npm install @emilgroup/auth-sdk@1.20.1-beta.1 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/auth-sdk@1.20.1-beta.
|
|
24
|
+
yarn add @emilgroup/auth-sdk@1.20.1-beta.1
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import ``.
|
package/api/default-api.ts
CHANGED
|
@@ -31,7 +31,7 @@ import { InlineResponse503 } from '../models';
|
|
|
31
31
|
export const DefaultApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
32
32
|
return {
|
|
33
33
|
/**
|
|
34
|
-
* Returns the health status of the auth service.
|
|
34
|
+
* Returns the health status of the auth service. This endpoint is used to monitor the operational status of the auth service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
|
|
35
35
|
* @summary Health Check
|
|
36
36
|
* @param {*} [options] Override http request option.
|
|
37
37
|
* @throws {RequiredError}
|
|
@@ -73,7 +73,7 @@ export const DefaultApiFp = function(configuration?: Configuration) {
|
|
|
73
73
|
const localVarAxiosParamCreator = DefaultApiAxiosParamCreator(configuration)
|
|
74
74
|
return {
|
|
75
75
|
/**
|
|
76
|
-
* Returns the health status of the auth service.
|
|
76
|
+
* Returns the health status of the auth service. This endpoint is used to monitor the operational status of the auth service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
|
|
77
77
|
* @summary Health Check
|
|
78
78
|
* @param {*} [options] Override http request option.
|
|
79
79
|
* @throws {RequiredError}
|
|
@@ -93,7 +93,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa
|
|
|
93
93
|
const localVarFp = DefaultApiFp(configuration)
|
|
94
94
|
return {
|
|
95
95
|
/**
|
|
96
|
-
* Returns the health status of the auth service.
|
|
96
|
+
* Returns the health status of the auth service. This endpoint is used to monitor the operational status of the auth service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
|
|
97
97
|
* @summary Health Check
|
|
98
98
|
* @param {*} [options] Override http request option.
|
|
99
99
|
* @throws {RequiredError}
|
|
@@ -112,7 +112,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa
|
|
|
112
112
|
*/
|
|
113
113
|
export class DefaultApi extends BaseAPI {
|
|
114
114
|
/**
|
|
115
|
-
* Returns the health status of the auth service.
|
|
115
|
+
* Returns the health status of the auth service. This endpoint is used to monitor the operational status of the auth service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
|
|
116
116
|
* @summary Health Check
|
|
117
117
|
* @param {*} [options] Override http request option.
|
|
118
118
|
* @throws {RequiredError}
|
|
@@ -0,0 +1,213 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* EMIL AuthService
|
|
5
|
+
* The EMIL AuthService API description
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
* Contact: kontakt@emil.de
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
17
|
+
import { Configuration } from '../configuration';
|
|
18
|
+
// Some imports not used depending on template conditions
|
|
19
|
+
// @ts-ignore
|
|
20
|
+
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
|
|
21
|
+
// @ts-ignore
|
|
22
|
+
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
|
|
23
|
+
// @ts-ignore
|
|
24
|
+
import { SwitchWorkspaceRequestWithoutRefreshTokenDto } from '../models';
|
|
25
|
+
/**
|
|
26
|
+
* WorkspacesApi - axios parameter creator
|
|
27
|
+
* @export
|
|
28
|
+
*/
|
|
29
|
+
export const WorkspacesApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
30
|
+
return {
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @param {*} [options] Override http request option.
|
|
34
|
+
* @throws {RequiredError}
|
|
35
|
+
*/
|
|
36
|
+
listWorkspaces: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
37
|
+
const localVarPath = `/authservice/v1/workspaces`;
|
|
38
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
39
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
40
|
+
let baseOptions;
|
|
41
|
+
let baseAccessToken;
|
|
42
|
+
if (configuration) {
|
|
43
|
+
baseOptions = configuration.baseOptions;
|
|
44
|
+
baseAccessToken = configuration.accessToken;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
48
|
+
const localVarHeaderParameter = {} as any;
|
|
49
|
+
const localVarQueryParameter = {} as any;
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
54
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
55
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
56
|
+
|
|
57
|
+
return {
|
|
58
|
+
url: toPathString(localVarUrlObj),
|
|
59
|
+
options: localVarRequestOptions,
|
|
60
|
+
};
|
|
61
|
+
},
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
* @param {SwitchWorkspaceRequestWithoutRefreshTokenDto} switchWorkspaceRequestWithoutRefreshTokenDto
|
|
65
|
+
* @param {string} [cookie] HTTP only cookie that was sent during login
|
|
66
|
+
* @param {*} [options] Override http request option.
|
|
67
|
+
* @throws {RequiredError}
|
|
68
|
+
*/
|
|
69
|
+
switchWorkspace: async (switchWorkspaceRequestWithoutRefreshTokenDto: SwitchWorkspaceRequestWithoutRefreshTokenDto, cookie?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
70
|
+
// verify required parameter 'switchWorkspaceRequestWithoutRefreshTokenDto' is not null or undefined
|
|
71
|
+
assertParamExists('switchWorkspace', 'switchWorkspaceRequestWithoutRefreshTokenDto', switchWorkspaceRequestWithoutRefreshTokenDto)
|
|
72
|
+
const localVarPath = `/authservice/v1/workspaces/switch`;
|
|
73
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
74
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
75
|
+
let baseOptions;
|
|
76
|
+
let baseAccessToken;
|
|
77
|
+
if (configuration) {
|
|
78
|
+
baseOptions = configuration.baseOptions;
|
|
79
|
+
baseAccessToken = configuration.accessToken;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
83
|
+
const localVarHeaderParameter = {} as any;
|
|
84
|
+
const localVarQueryParameter = {} as any;
|
|
85
|
+
|
|
86
|
+
if (cookie !== undefined && cookie !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
87
|
+
localVarHeaderParameter['Cookie'] = String(cookie ? cookie : baseAccessToken);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
93
|
+
|
|
94
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
95
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
96
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
97
|
+
localVarRequestOptions.data = serializeDataIfNeeded(switchWorkspaceRequestWithoutRefreshTokenDto, localVarRequestOptions, configuration)
|
|
98
|
+
|
|
99
|
+
return {
|
|
100
|
+
url: toPathString(localVarUrlObj),
|
|
101
|
+
options: localVarRequestOptions,
|
|
102
|
+
};
|
|
103
|
+
},
|
|
104
|
+
}
|
|
105
|
+
};
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* WorkspacesApi - functional programming interface
|
|
109
|
+
* @export
|
|
110
|
+
*/
|
|
111
|
+
export const WorkspacesApiFp = function(configuration?: Configuration) {
|
|
112
|
+
const localVarAxiosParamCreator = WorkspacesApiAxiosParamCreator(configuration)
|
|
113
|
+
return {
|
|
114
|
+
/**
|
|
115
|
+
*
|
|
116
|
+
* @param {*} [options] Override http request option.
|
|
117
|
+
* @throws {RequiredError}
|
|
118
|
+
*/
|
|
119
|
+
async listWorkspaces(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
120
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listWorkspaces(options);
|
|
121
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
122
|
+
},
|
|
123
|
+
/**
|
|
124
|
+
*
|
|
125
|
+
* @param {SwitchWorkspaceRequestWithoutRefreshTokenDto} switchWorkspaceRequestWithoutRefreshTokenDto
|
|
126
|
+
* @param {string} [cookie] HTTP only cookie that was sent during login
|
|
127
|
+
* @param {*} [options] Override http request option.
|
|
128
|
+
* @throws {RequiredError}
|
|
129
|
+
*/
|
|
130
|
+
async switchWorkspace(switchWorkspaceRequestWithoutRefreshTokenDto: SwitchWorkspaceRequestWithoutRefreshTokenDto, cookie?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
|
|
131
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.switchWorkspace(switchWorkspaceRequestWithoutRefreshTokenDto, cookie, options);
|
|
132
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
133
|
+
},
|
|
134
|
+
}
|
|
135
|
+
};
|
|
136
|
+
|
|
137
|
+
/**
|
|
138
|
+
* WorkspacesApi - factory interface
|
|
139
|
+
* @export
|
|
140
|
+
*/
|
|
141
|
+
export const WorkspacesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
142
|
+
const localVarFp = WorkspacesApiFp(configuration)
|
|
143
|
+
return {
|
|
144
|
+
/**
|
|
145
|
+
*
|
|
146
|
+
* @param {*} [options] Override http request option.
|
|
147
|
+
* @throws {RequiredError}
|
|
148
|
+
*/
|
|
149
|
+
listWorkspaces(options?: any): AxiosPromise<void> {
|
|
150
|
+
return localVarFp.listWorkspaces(options).then((request) => request(axios, basePath));
|
|
151
|
+
},
|
|
152
|
+
/**
|
|
153
|
+
*
|
|
154
|
+
* @param {SwitchWorkspaceRequestWithoutRefreshTokenDto} switchWorkspaceRequestWithoutRefreshTokenDto
|
|
155
|
+
* @param {string} [cookie] HTTP only cookie that was sent during login
|
|
156
|
+
* @param {*} [options] Override http request option.
|
|
157
|
+
* @throws {RequiredError}
|
|
158
|
+
*/
|
|
159
|
+
switchWorkspace(switchWorkspaceRequestWithoutRefreshTokenDto: SwitchWorkspaceRequestWithoutRefreshTokenDto, cookie?: string, options?: any): AxiosPromise<object> {
|
|
160
|
+
return localVarFp.switchWorkspace(switchWorkspaceRequestWithoutRefreshTokenDto, cookie, options).then((request) => request(axios, basePath));
|
|
161
|
+
},
|
|
162
|
+
};
|
|
163
|
+
};
|
|
164
|
+
|
|
165
|
+
/**
|
|
166
|
+
* Request parameters for switchWorkspace operation in WorkspacesApi.
|
|
167
|
+
* @export
|
|
168
|
+
* @interface WorkspacesApiSwitchWorkspaceRequest
|
|
169
|
+
*/
|
|
170
|
+
export interface WorkspacesApiSwitchWorkspaceRequest {
|
|
171
|
+
/**
|
|
172
|
+
*
|
|
173
|
+
* @type {SwitchWorkspaceRequestWithoutRefreshTokenDto}
|
|
174
|
+
* @memberof WorkspacesApiSwitchWorkspace
|
|
175
|
+
*/
|
|
176
|
+
readonly switchWorkspaceRequestWithoutRefreshTokenDto: SwitchWorkspaceRequestWithoutRefreshTokenDto
|
|
177
|
+
|
|
178
|
+
/**
|
|
179
|
+
* HTTP only cookie that was sent during login
|
|
180
|
+
* @type {string}
|
|
181
|
+
* @memberof WorkspacesApiSwitchWorkspace
|
|
182
|
+
*/
|
|
183
|
+
readonly cookie?: string
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
/**
|
|
187
|
+
* WorkspacesApi - object-oriented interface
|
|
188
|
+
* @export
|
|
189
|
+
* @class WorkspacesApi
|
|
190
|
+
* @extends {BaseAPI}
|
|
191
|
+
*/
|
|
192
|
+
export class WorkspacesApi extends BaseAPI {
|
|
193
|
+
/**
|
|
194
|
+
*
|
|
195
|
+
* @param {*} [options] Override http request option.
|
|
196
|
+
* @throws {RequiredError}
|
|
197
|
+
* @memberof WorkspacesApi
|
|
198
|
+
*/
|
|
199
|
+
public listWorkspaces(options?: AxiosRequestConfig) {
|
|
200
|
+
return WorkspacesApiFp(this.configuration).listWorkspaces(options).then((request) => request(this.axios, this.basePath));
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
/**
|
|
204
|
+
*
|
|
205
|
+
* @param {WorkspacesApiSwitchWorkspaceRequest} requestParameters Request parameters.
|
|
206
|
+
* @param {*} [options] Override http request option.
|
|
207
|
+
* @throws {RequiredError}
|
|
208
|
+
* @memberof WorkspacesApi
|
|
209
|
+
*/
|
|
210
|
+
public switchWorkspace(requestParameters: WorkspacesApiSwitchWorkspaceRequest, options?: AxiosRequestConfig) {
|
|
211
|
+
return WorkspacesApiFp(this.configuration).switchWorkspace(requestParameters.switchWorkspaceRequestWithoutRefreshTokenDto, requestParameters.cookie, options).then((request) => request(this.axios, this.basePath));
|
|
212
|
+
}
|
|
213
|
+
}
|
package/api.ts
CHANGED
|
@@ -22,8 +22,10 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
|
|
|
22
22
|
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from './base';
|
|
23
23
|
import { AuthserviceApi } from './api';
|
|
24
24
|
import { DefaultApi } from './api';
|
|
25
|
+
import { WorkspacesApi } from './api';
|
|
25
26
|
|
|
26
27
|
|
|
27
28
|
export * from './api/authservice-api';
|
|
28
29
|
export * from './api/default-api';
|
|
30
|
+
export * from './api/workspaces-api';
|
|
29
31
|
|
|
@@ -19,7 +19,7 @@ import { InlineResponse200 } from '../models';
|
|
|
19
19
|
*/
|
|
20
20
|
export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
21
21
|
/**
|
|
22
|
-
* Returns the health status of the auth service.
|
|
22
|
+
* Returns the health status of the auth service. This endpoint is used to monitor the operational status of the auth service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
|
|
23
23
|
* @summary Health Check
|
|
24
24
|
* @param {*} [options] Override http request option.
|
|
25
25
|
* @throws {RequiredError}
|
|
@@ -32,7 +32,7 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
|
|
|
32
32
|
*/
|
|
33
33
|
export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
34
34
|
/**
|
|
35
|
-
* Returns the health status of the auth service.
|
|
35
|
+
* Returns the health status of the auth service. This endpoint is used to monitor the operational status of the auth service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
|
|
36
36
|
* @summary Health Check
|
|
37
37
|
* @param {*} [options] Override http request option.
|
|
38
38
|
* @throws {RequiredError}
|
|
@@ -45,7 +45,7 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
|
45
45
|
*/
|
|
46
46
|
export declare const DefaultApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
47
47
|
/**
|
|
48
|
-
* Returns the health status of the auth service.
|
|
48
|
+
* Returns the health status of the auth service. This endpoint is used to monitor the operational status of the auth service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
|
|
49
49
|
* @summary Health Check
|
|
50
50
|
* @param {*} [options] Override http request option.
|
|
51
51
|
* @throws {RequiredError}
|
|
@@ -60,7 +60,7 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
|
|
|
60
60
|
*/
|
|
61
61
|
export declare class DefaultApi extends BaseAPI {
|
|
62
62
|
/**
|
|
63
|
-
* Returns the health status of the auth service.
|
|
63
|
+
* Returns the health status of the auth service. This endpoint is used to monitor the operational status of the auth service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
|
|
64
64
|
* @summary Health Check
|
|
65
65
|
* @param {*} [options] Override http request option.
|
|
66
66
|
* @throws {RequiredError}
|
package/dist/api/default-api.js
CHANGED
|
@@ -102,7 +102,7 @@ var DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
102
102
|
var _this = this;
|
|
103
103
|
return {
|
|
104
104
|
/**
|
|
105
|
-
* Returns the health status of the auth service.
|
|
105
|
+
* Returns the health status of the auth service. This endpoint is used to monitor the operational status of the auth service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
|
|
106
106
|
* @summary Health Check
|
|
107
107
|
* @param {*} [options] Override http request option.
|
|
108
108
|
* @throws {RequiredError}
|
|
@@ -146,7 +146,7 @@ var DefaultApiFp = function (configuration) {
|
|
|
146
146
|
var localVarAxiosParamCreator = (0, exports.DefaultApiAxiosParamCreator)(configuration);
|
|
147
147
|
return {
|
|
148
148
|
/**
|
|
149
|
-
* Returns the health status of the auth service.
|
|
149
|
+
* Returns the health status of the auth service. This endpoint is used to monitor the operational status of the auth service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
|
|
150
150
|
* @summary Health Check
|
|
151
151
|
* @param {*} [options] Override http request option.
|
|
152
152
|
* @throws {RequiredError}
|
|
@@ -175,7 +175,7 @@ var DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
175
175
|
var localVarFp = (0, exports.DefaultApiFp)(configuration);
|
|
176
176
|
return {
|
|
177
177
|
/**
|
|
178
|
-
* Returns the health status of the auth service.
|
|
178
|
+
* Returns the health status of the auth service. This endpoint is used to monitor the operational status of the auth service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
|
|
179
179
|
* @summary Health Check
|
|
180
180
|
* @param {*} [options] Override http request option.
|
|
181
181
|
* @throws {RequiredError}
|
|
@@ -198,7 +198,7 @@ var DefaultApi = /** @class */ (function (_super) {
|
|
|
198
198
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
199
199
|
}
|
|
200
200
|
/**
|
|
201
|
-
* Returns the health status of the auth service.
|
|
201
|
+
* Returns the health status of the auth service. This endpoint is used to monitor the operational status of the auth service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
|
|
202
202
|
* @summary Health Check
|
|
203
203
|
* @param {*} [options] Override http request option.
|
|
204
204
|
* @throws {RequiredError}
|
|
@@ -0,0 +1,117 @@
|
|
|
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 { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
13
|
+
import { Configuration } from '../configuration';
|
|
14
|
+
import { RequestArgs, BaseAPI } from '../base';
|
|
15
|
+
import { SwitchWorkspaceRequestWithoutRefreshTokenDto } from '../models';
|
|
16
|
+
/**
|
|
17
|
+
* WorkspacesApi - axios parameter creator
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
export declare const WorkspacesApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
* @param {*} [options] Override http request option.
|
|
24
|
+
* @throws {RequiredError}
|
|
25
|
+
*/
|
|
26
|
+
listWorkspaces: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
27
|
+
/**
|
|
28
|
+
*
|
|
29
|
+
* @param {SwitchWorkspaceRequestWithoutRefreshTokenDto} switchWorkspaceRequestWithoutRefreshTokenDto
|
|
30
|
+
* @param {string} [cookie] HTTP only cookie that was sent during login
|
|
31
|
+
* @param {*} [options] Override http request option.
|
|
32
|
+
* @throws {RequiredError}
|
|
33
|
+
*/
|
|
34
|
+
switchWorkspace: (switchWorkspaceRequestWithoutRefreshTokenDto: SwitchWorkspaceRequestWithoutRefreshTokenDto, cookie?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
35
|
+
};
|
|
36
|
+
/**
|
|
37
|
+
* WorkspacesApi - functional programming interface
|
|
38
|
+
* @export
|
|
39
|
+
*/
|
|
40
|
+
export declare const WorkspacesApiFp: (configuration?: Configuration) => {
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @param {*} [options] Override http request option.
|
|
44
|
+
* @throws {RequiredError}
|
|
45
|
+
*/
|
|
46
|
+
listWorkspaces(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @param {SwitchWorkspaceRequestWithoutRefreshTokenDto} switchWorkspaceRequestWithoutRefreshTokenDto
|
|
50
|
+
* @param {string} [cookie] HTTP only cookie that was sent during login
|
|
51
|
+
* @param {*} [options] Override http request option.
|
|
52
|
+
* @throws {RequiredError}
|
|
53
|
+
*/
|
|
54
|
+
switchWorkspace(switchWorkspaceRequestWithoutRefreshTokenDto: SwitchWorkspaceRequestWithoutRefreshTokenDto, cookie?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>>;
|
|
55
|
+
};
|
|
56
|
+
/**
|
|
57
|
+
* WorkspacesApi - factory interface
|
|
58
|
+
* @export
|
|
59
|
+
*/
|
|
60
|
+
export declare const WorkspacesApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @param {*} [options] Override http request option.
|
|
64
|
+
* @throws {RequiredError}
|
|
65
|
+
*/
|
|
66
|
+
listWorkspaces(options?: any): AxiosPromise<void>;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @param {SwitchWorkspaceRequestWithoutRefreshTokenDto} switchWorkspaceRequestWithoutRefreshTokenDto
|
|
70
|
+
* @param {string} [cookie] HTTP only cookie that was sent during login
|
|
71
|
+
* @param {*} [options] Override http request option.
|
|
72
|
+
* @throws {RequiredError}
|
|
73
|
+
*/
|
|
74
|
+
switchWorkspace(switchWorkspaceRequestWithoutRefreshTokenDto: SwitchWorkspaceRequestWithoutRefreshTokenDto, cookie?: string, options?: any): AxiosPromise<object>;
|
|
75
|
+
};
|
|
76
|
+
/**
|
|
77
|
+
* Request parameters for switchWorkspace operation in WorkspacesApi.
|
|
78
|
+
* @export
|
|
79
|
+
* @interface WorkspacesApiSwitchWorkspaceRequest
|
|
80
|
+
*/
|
|
81
|
+
export interface WorkspacesApiSwitchWorkspaceRequest {
|
|
82
|
+
/**
|
|
83
|
+
*
|
|
84
|
+
* @type {SwitchWorkspaceRequestWithoutRefreshTokenDto}
|
|
85
|
+
* @memberof WorkspacesApiSwitchWorkspace
|
|
86
|
+
*/
|
|
87
|
+
readonly switchWorkspaceRequestWithoutRefreshTokenDto: SwitchWorkspaceRequestWithoutRefreshTokenDto;
|
|
88
|
+
/**
|
|
89
|
+
* HTTP only cookie that was sent during login
|
|
90
|
+
* @type {string}
|
|
91
|
+
* @memberof WorkspacesApiSwitchWorkspace
|
|
92
|
+
*/
|
|
93
|
+
readonly cookie?: string;
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* WorkspacesApi - object-oriented interface
|
|
97
|
+
* @export
|
|
98
|
+
* @class WorkspacesApi
|
|
99
|
+
* @extends {BaseAPI}
|
|
100
|
+
*/
|
|
101
|
+
export declare class WorkspacesApi extends BaseAPI {
|
|
102
|
+
/**
|
|
103
|
+
*
|
|
104
|
+
* @param {*} [options] Override http request option.
|
|
105
|
+
* @throws {RequiredError}
|
|
106
|
+
* @memberof WorkspacesApi
|
|
107
|
+
*/
|
|
108
|
+
listWorkspaces(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
109
|
+
/**
|
|
110
|
+
*
|
|
111
|
+
* @param {WorkspacesApiSwitchWorkspaceRequest} requestParameters Request parameters.
|
|
112
|
+
* @param {*} [options] Override http request option.
|
|
113
|
+
* @throws {RequiredError}
|
|
114
|
+
* @memberof WorkspacesApi
|
|
115
|
+
*/
|
|
116
|
+
switchWorkspace(requestParameters: WorkspacesApiSwitchWorkspaceRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any>>;
|
|
117
|
+
}
|
|
@@ -0,0 +1,292 @@
|
|
|
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 = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
52
|
+
return g.next = verb(0), g["throw"] = verb(1), g["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 __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
78
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
79
|
+
if (ar || !(i in from)) {
|
|
80
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
81
|
+
ar[i] = from[i];
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
85
|
+
};
|
|
86
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
87
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
88
|
+
};
|
|
89
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
90
|
+
exports.WorkspacesApi = exports.WorkspacesApiFactory = exports.WorkspacesApiFp = exports.WorkspacesApiAxiosParamCreator = void 0;
|
|
91
|
+
var axios_1 = __importDefault(require("axios"));
|
|
92
|
+
// Some imports not used depending on template conditions
|
|
93
|
+
// @ts-ignore
|
|
94
|
+
var common_1 = require("../common");
|
|
95
|
+
// @ts-ignore
|
|
96
|
+
var base_1 = require("../base");
|
|
97
|
+
/**
|
|
98
|
+
* WorkspacesApi - axios parameter creator
|
|
99
|
+
* @export
|
|
100
|
+
*/
|
|
101
|
+
var WorkspacesApiAxiosParamCreator = function (configuration) {
|
|
102
|
+
var _this = this;
|
|
103
|
+
return {
|
|
104
|
+
/**
|
|
105
|
+
*
|
|
106
|
+
* @param {*} [options] Override http request option.
|
|
107
|
+
* @throws {RequiredError}
|
|
108
|
+
*/
|
|
109
|
+
listWorkspaces: function () {
|
|
110
|
+
var args_1 = [];
|
|
111
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
112
|
+
args_1[_i] = arguments[_i];
|
|
113
|
+
}
|
|
114
|
+
return __awaiter(_this, __spreadArray([], args_1, true), void 0, function (options) {
|
|
115
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
116
|
+
if (options === void 0) { options = {}; }
|
|
117
|
+
return __generator(this, function (_a) {
|
|
118
|
+
localVarPath = "/authservice/v1/workspaces";
|
|
119
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
120
|
+
if (configuration) {
|
|
121
|
+
baseOptions = configuration.baseOptions;
|
|
122
|
+
baseAccessToken = configuration.accessToken;
|
|
123
|
+
}
|
|
124
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
125
|
+
localVarHeaderParameter = {};
|
|
126
|
+
localVarQueryParameter = {};
|
|
127
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
128
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
129
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
130
|
+
return [2 /*return*/, {
|
|
131
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
132
|
+
options: localVarRequestOptions,
|
|
133
|
+
}];
|
|
134
|
+
});
|
|
135
|
+
});
|
|
136
|
+
},
|
|
137
|
+
/**
|
|
138
|
+
*
|
|
139
|
+
* @param {SwitchWorkspaceRequestWithoutRefreshTokenDto} switchWorkspaceRequestWithoutRefreshTokenDto
|
|
140
|
+
* @param {string} [cookie] HTTP only cookie that was sent during login
|
|
141
|
+
* @param {*} [options] Override http request option.
|
|
142
|
+
* @throws {RequiredError}
|
|
143
|
+
*/
|
|
144
|
+
switchWorkspace: function (switchWorkspaceRequestWithoutRefreshTokenDto_1, cookie_1) {
|
|
145
|
+
var args_1 = [];
|
|
146
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
147
|
+
args_1[_i - 2] = arguments[_i];
|
|
148
|
+
}
|
|
149
|
+
return __awaiter(_this, __spreadArray([switchWorkspaceRequestWithoutRefreshTokenDto_1, cookie_1], args_1, true), void 0, function (switchWorkspaceRequestWithoutRefreshTokenDto, cookie, options) {
|
|
150
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
151
|
+
if (options === void 0) { options = {}; }
|
|
152
|
+
return __generator(this, function (_a) {
|
|
153
|
+
// verify required parameter 'switchWorkspaceRequestWithoutRefreshTokenDto' is not null or undefined
|
|
154
|
+
(0, common_1.assertParamExists)('switchWorkspace', 'switchWorkspaceRequestWithoutRefreshTokenDto', switchWorkspaceRequestWithoutRefreshTokenDto);
|
|
155
|
+
localVarPath = "/authservice/v1/workspaces/switch";
|
|
156
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
157
|
+
if (configuration) {
|
|
158
|
+
baseOptions = configuration.baseOptions;
|
|
159
|
+
baseAccessToken = configuration.accessToken;
|
|
160
|
+
}
|
|
161
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
162
|
+
localVarHeaderParameter = {};
|
|
163
|
+
localVarQueryParameter = {};
|
|
164
|
+
if (cookie !== undefined && cookie !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
165
|
+
localVarHeaderParameter['Cookie'] = String(cookie ? cookie : baseAccessToken);
|
|
166
|
+
}
|
|
167
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
168
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
169
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
170
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
171
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(switchWorkspaceRequestWithoutRefreshTokenDto, localVarRequestOptions, configuration);
|
|
172
|
+
return [2 /*return*/, {
|
|
173
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
174
|
+
options: localVarRequestOptions,
|
|
175
|
+
}];
|
|
176
|
+
});
|
|
177
|
+
});
|
|
178
|
+
},
|
|
179
|
+
};
|
|
180
|
+
};
|
|
181
|
+
exports.WorkspacesApiAxiosParamCreator = WorkspacesApiAxiosParamCreator;
|
|
182
|
+
/**
|
|
183
|
+
* WorkspacesApi - functional programming interface
|
|
184
|
+
* @export
|
|
185
|
+
*/
|
|
186
|
+
var WorkspacesApiFp = function (configuration) {
|
|
187
|
+
var localVarAxiosParamCreator = (0, exports.WorkspacesApiAxiosParamCreator)(configuration);
|
|
188
|
+
return {
|
|
189
|
+
/**
|
|
190
|
+
*
|
|
191
|
+
* @param {*} [options] Override http request option.
|
|
192
|
+
* @throws {RequiredError}
|
|
193
|
+
*/
|
|
194
|
+
listWorkspaces: function (options) {
|
|
195
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
196
|
+
var localVarAxiosArgs;
|
|
197
|
+
return __generator(this, function (_a) {
|
|
198
|
+
switch (_a.label) {
|
|
199
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listWorkspaces(options)];
|
|
200
|
+
case 1:
|
|
201
|
+
localVarAxiosArgs = _a.sent();
|
|
202
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
203
|
+
}
|
|
204
|
+
});
|
|
205
|
+
});
|
|
206
|
+
},
|
|
207
|
+
/**
|
|
208
|
+
*
|
|
209
|
+
* @param {SwitchWorkspaceRequestWithoutRefreshTokenDto} switchWorkspaceRequestWithoutRefreshTokenDto
|
|
210
|
+
* @param {string} [cookie] HTTP only cookie that was sent during login
|
|
211
|
+
* @param {*} [options] Override http request option.
|
|
212
|
+
* @throws {RequiredError}
|
|
213
|
+
*/
|
|
214
|
+
switchWorkspace: function (switchWorkspaceRequestWithoutRefreshTokenDto, cookie, options) {
|
|
215
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
216
|
+
var localVarAxiosArgs;
|
|
217
|
+
return __generator(this, function (_a) {
|
|
218
|
+
switch (_a.label) {
|
|
219
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.switchWorkspace(switchWorkspaceRequestWithoutRefreshTokenDto, cookie, options)];
|
|
220
|
+
case 1:
|
|
221
|
+
localVarAxiosArgs = _a.sent();
|
|
222
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
223
|
+
}
|
|
224
|
+
});
|
|
225
|
+
});
|
|
226
|
+
},
|
|
227
|
+
};
|
|
228
|
+
};
|
|
229
|
+
exports.WorkspacesApiFp = WorkspacesApiFp;
|
|
230
|
+
/**
|
|
231
|
+
* WorkspacesApi - factory interface
|
|
232
|
+
* @export
|
|
233
|
+
*/
|
|
234
|
+
var WorkspacesApiFactory = function (configuration, basePath, axios) {
|
|
235
|
+
var localVarFp = (0, exports.WorkspacesApiFp)(configuration);
|
|
236
|
+
return {
|
|
237
|
+
/**
|
|
238
|
+
*
|
|
239
|
+
* @param {*} [options] Override http request option.
|
|
240
|
+
* @throws {RequiredError}
|
|
241
|
+
*/
|
|
242
|
+
listWorkspaces: function (options) {
|
|
243
|
+
return localVarFp.listWorkspaces(options).then(function (request) { return request(axios, basePath); });
|
|
244
|
+
},
|
|
245
|
+
/**
|
|
246
|
+
*
|
|
247
|
+
* @param {SwitchWorkspaceRequestWithoutRefreshTokenDto} switchWorkspaceRequestWithoutRefreshTokenDto
|
|
248
|
+
* @param {string} [cookie] HTTP only cookie that was sent during login
|
|
249
|
+
* @param {*} [options] Override http request option.
|
|
250
|
+
* @throws {RequiredError}
|
|
251
|
+
*/
|
|
252
|
+
switchWorkspace: function (switchWorkspaceRequestWithoutRefreshTokenDto, cookie, options) {
|
|
253
|
+
return localVarFp.switchWorkspace(switchWorkspaceRequestWithoutRefreshTokenDto, cookie, options).then(function (request) { return request(axios, basePath); });
|
|
254
|
+
},
|
|
255
|
+
};
|
|
256
|
+
};
|
|
257
|
+
exports.WorkspacesApiFactory = WorkspacesApiFactory;
|
|
258
|
+
/**
|
|
259
|
+
* WorkspacesApi - object-oriented interface
|
|
260
|
+
* @export
|
|
261
|
+
* @class WorkspacesApi
|
|
262
|
+
* @extends {BaseAPI}
|
|
263
|
+
*/
|
|
264
|
+
var WorkspacesApi = /** @class */ (function (_super) {
|
|
265
|
+
__extends(WorkspacesApi, _super);
|
|
266
|
+
function WorkspacesApi() {
|
|
267
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
268
|
+
}
|
|
269
|
+
/**
|
|
270
|
+
*
|
|
271
|
+
* @param {*} [options] Override http request option.
|
|
272
|
+
* @throws {RequiredError}
|
|
273
|
+
* @memberof WorkspacesApi
|
|
274
|
+
*/
|
|
275
|
+
WorkspacesApi.prototype.listWorkspaces = function (options) {
|
|
276
|
+
var _this = this;
|
|
277
|
+
return (0, exports.WorkspacesApiFp)(this.configuration).listWorkspaces(options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
278
|
+
};
|
|
279
|
+
/**
|
|
280
|
+
*
|
|
281
|
+
* @param {WorkspacesApiSwitchWorkspaceRequest} requestParameters Request parameters.
|
|
282
|
+
* @param {*} [options] Override http request option.
|
|
283
|
+
* @throws {RequiredError}
|
|
284
|
+
* @memberof WorkspacesApi
|
|
285
|
+
*/
|
|
286
|
+
WorkspacesApi.prototype.switchWorkspace = function (requestParameters, options) {
|
|
287
|
+
var _this = this;
|
|
288
|
+
return (0, exports.WorkspacesApiFp)(this.configuration).switchWorkspace(requestParameters.switchWorkspaceRequestWithoutRefreshTokenDto, requestParameters.cookie, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
289
|
+
};
|
|
290
|
+
return WorkspacesApi;
|
|
291
|
+
}(base_1.BaseAPI));
|
|
292
|
+
exports.WorkspacesApi = WorkspacesApi;
|
package/dist/api.d.ts
CHANGED
package/dist/api.js
CHANGED
|
@@ -29,3 +29,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
29
29
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
30
30
|
__exportStar(require("./api/authservice-api"), exports);
|
|
31
31
|
__exportStar(require("./api/default-api"), exports);
|
|
32
|
+
__exportStar(require("./api/workspaces-api"), exports);
|
package/dist/models/index.d.ts
CHANGED
|
@@ -16,6 +16,7 @@ export * from './organization-class';
|
|
|
16
16
|
export * from './refresh-token-dto';
|
|
17
17
|
export * from './reset-password-request-dto';
|
|
18
18
|
export * from './role-class';
|
|
19
|
+
export * from './switch-workspace-request-without-refresh-token-dto';
|
|
19
20
|
export * from './user-class';
|
|
20
21
|
export * from './verify-org-invitation-request-dto';
|
|
21
22
|
export * from './verify-org-invitation-response-class';
|
package/dist/models/index.js
CHANGED
|
@@ -32,6 +32,7 @@ __exportStar(require("./organization-class"), exports);
|
|
|
32
32
|
__exportStar(require("./refresh-token-dto"), exports);
|
|
33
33
|
__exportStar(require("./reset-password-request-dto"), exports);
|
|
34
34
|
__exportStar(require("./role-class"), exports);
|
|
35
|
+
__exportStar(require("./switch-workspace-request-without-refresh-token-dto"), exports);
|
|
35
36
|
__exportStar(require("./user-class"), exports);
|
|
36
37
|
__exportStar(require("./verify-org-invitation-request-dto"), exports);
|
|
37
38
|
__exportStar(require("./verify-org-invitation-response-class"), exports);
|
|
@@ -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 });
|
package/models/index.ts
CHANGED
|
@@ -16,6 +16,7 @@ export * from './organization-class';
|
|
|
16
16
|
export * from './refresh-token-dto';
|
|
17
17
|
export * from './reset-password-request-dto';
|
|
18
18
|
export * from './role-class';
|
|
19
|
+
export * from './switch-workspace-request-without-refresh-token-dto';
|
|
19
20
|
export * from './user-class';
|
|
20
21
|
export * from './verify-org-invitation-request-dto';
|
|
21
22
|
export * from './verify-org-invitation-response-class';
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* EMIL AuthService
|
|
5
|
+
* The EMIL AuthService API description
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
* Contact: kontakt@emil.de
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
* @interface SwitchWorkspaceRequestWithoutRefreshTokenDto
|
|
21
|
+
*/
|
|
22
|
+
export interface SwitchWorkspaceRequestWithoutRefreshTokenDto {
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @type {string}
|
|
26
|
+
* @memberof SwitchWorkspaceRequestWithoutRefreshTokenDto
|
|
27
|
+
*/
|
|
28
|
+
'username': string;
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof SwitchWorkspaceRequestWithoutRefreshTokenDto
|
|
33
|
+
*/
|
|
34
|
+
'targetWorkspace': string;
|
|
35
|
+
}
|
|
36
|
+
|
package/models/user-class.ts
CHANGED