@emilgroup/tenant-sdk 1.42.1-beta.23 → 1.42.1-beta.24
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/ssoconnection-api.ts +120 -0
- package/dist/api/ssoconnection-api.d.ts +66 -0
- package/dist/api/ssoconnection-api.js +99 -0
- package/dist/models/index.d.ts +2 -0
- package/dist/models/index.js +2 -0
- package/dist/models/update-sso-connection-status-body-dto.d.ts +24 -0
- package/dist/models/update-sso-connection-status-body-dto.js +15 -0
- package/dist/models/update-sso-connection-status-response-class.d.ts +25 -0
- package/dist/models/update-sso-connection-status-response-class.js +15 -0
- package/models/index.ts +2 -0
- package/models/update-sso-connection-status-body-dto.ts +30 -0
- package/models/update-sso-connection-status-response-class.ts +31 -0
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -163,6 +163,8 @@ models/update-organization-request-dto-rest.ts
|
|
|
163
163
|
models/update-organization-response-class.ts
|
|
164
164
|
models/update-report-schedule-request-dto.ts
|
|
165
165
|
models/update-report-schedule-response-class.ts
|
|
166
|
+
models/update-sso-connection-status-body-dto.ts
|
|
167
|
+
models/update-sso-connection-status-response-class.ts
|
|
166
168
|
models/update-user-group-request-dto.ts
|
|
167
169
|
models/update-user-group-response-class.ts
|
|
168
170
|
models/user-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/tenant-sdk@1.42.1-beta.
|
|
20
|
+
npm install @emilgroup/tenant-sdk@1.42.1-beta.24 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/tenant-sdk@1.42.1-beta.
|
|
24
|
+
yarn add @emilgroup/tenant-sdk@1.42.1-beta.24
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `UsersApi`.
|
package/api/ssoconnection-api.ts
CHANGED
|
@@ -26,6 +26,10 @@ import { CreateSsoConnectionRequestDto } from '../models';
|
|
|
26
26
|
import { CreateSsoConnectionResponseClass } from '../models';
|
|
27
27
|
// @ts-ignore
|
|
28
28
|
import { GetSsoConnectionResponseClass } from '../models';
|
|
29
|
+
// @ts-ignore
|
|
30
|
+
import { UpdateSsoConnectionStatusBodyDto } from '../models';
|
|
31
|
+
// @ts-ignore
|
|
32
|
+
import { UpdateSsoConnectionStatusResponseClass } from '../models';
|
|
29
33
|
/**
|
|
30
34
|
* SSOConnectionApi - axios parameter creator
|
|
31
35
|
* @export
|
|
@@ -119,6 +123,57 @@ export const SSOConnectionApiAxiosParamCreator = function (configuration?: Confi
|
|
|
119
123
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
120
124
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
121
125
|
|
|
126
|
+
return {
|
|
127
|
+
url: toPathString(localVarUrlObj),
|
|
128
|
+
options: localVarRequestOptions,
|
|
129
|
+
};
|
|
130
|
+
},
|
|
131
|
+
/**
|
|
132
|
+
* Activates and deactivates SSO connection status. **Required Permissions** \"tenant-management.settings.update\"
|
|
133
|
+
* @summary Switch the tenant\'s SSO connection on or off
|
|
134
|
+
* @param {string} code Connection code.
|
|
135
|
+
* @param {UpdateSsoConnectionStatusBodyDto} updateSsoConnectionStatusBodyDto
|
|
136
|
+
* @param {string} [authorization] Bearer Token
|
|
137
|
+
* @param {*} [options] Override http request option.
|
|
138
|
+
* @throws {RequiredError}
|
|
139
|
+
*/
|
|
140
|
+
updateSsoConnectionStatus: async (code: string, updateSsoConnectionStatusBodyDto: UpdateSsoConnectionStatusBodyDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
141
|
+
// verify required parameter 'code' is not null or undefined
|
|
142
|
+
assertParamExists('updateSsoConnectionStatus', 'code', code)
|
|
143
|
+
// verify required parameter 'updateSsoConnectionStatusBodyDto' is not null or undefined
|
|
144
|
+
assertParamExists('updateSsoConnectionStatus', 'updateSsoConnectionStatusBodyDto', updateSsoConnectionStatusBodyDto)
|
|
145
|
+
const localVarPath = `/tenantservice/v1/sso-connection/{code}`
|
|
146
|
+
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
147
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
148
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
149
|
+
let baseOptions;
|
|
150
|
+
let baseAccessToken;
|
|
151
|
+
if (configuration) {
|
|
152
|
+
baseOptions = configuration.baseOptions;
|
|
153
|
+
baseAccessToken = configuration.accessToken;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
|
|
157
|
+
const localVarHeaderParameter = {} as any;
|
|
158
|
+
const localVarQueryParameter = {} as any;
|
|
159
|
+
|
|
160
|
+
// authentication bearer required
|
|
161
|
+
// http bearer authentication required
|
|
162
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
163
|
+
|
|
164
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
165
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
|
|
170
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
171
|
+
|
|
172
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
173
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
174
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
175
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateSsoConnectionStatusBodyDto, localVarRequestOptions, configuration)
|
|
176
|
+
|
|
122
177
|
return {
|
|
123
178
|
url: toPathString(localVarUrlObj),
|
|
124
179
|
options: localVarRequestOptions,
|
|
@@ -158,6 +213,19 @@ export const SSOConnectionApiFp = function(configuration?: Configuration) {
|
|
|
158
213
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getSsoConnection(code, authorization, options);
|
|
159
214
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
160
215
|
},
|
|
216
|
+
/**
|
|
217
|
+
* Activates and deactivates SSO connection status. **Required Permissions** \"tenant-management.settings.update\"
|
|
218
|
+
* @summary Switch the tenant\'s SSO connection on or off
|
|
219
|
+
* @param {string} code Connection code.
|
|
220
|
+
* @param {UpdateSsoConnectionStatusBodyDto} updateSsoConnectionStatusBodyDto
|
|
221
|
+
* @param {string} [authorization] Bearer Token
|
|
222
|
+
* @param {*} [options] Override http request option.
|
|
223
|
+
* @throws {RequiredError}
|
|
224
|
+
*/
|
|
225
|
+
async updateSsoConnectionStatus(code: string, updateSsoConnectionStatusBodyDto: UpdateSsoConnectionStatusBodyDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateSsoConnectionStatusResponseClass>> {
|
|
226
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateSsoConnectionStatus(code, updateSsoConnectionStatusBodyDto, authorization, options);
|
|
227
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
228
|
+
},
|
|
161
229
|
}
|
|
162
230
|
};
|
|
163
231
|
|
|
@@ -190,6 +258,18 @@ export const SSOConnectionApiFactory = function (configuration?: Configuration,
|
|
|
190
258
|
getSsoConnection(code: string, authorization?: string, options?: any): AxiosPromise<GetSsoConnectionResponseClass> {
|
|
191
259
|
return localVarFp.getSsoConnection(code, authorization, options).then((request) => request(axios, basePath));
|
|
192
260
|
},
|
|
261
|
+
/**
|
|
262
|
+
* Activates and deactivates SSO connection status. **Required Permissions** \"tenant-management.settings.update\"
|
|
263
|
+
* @summary Switch the tenant\'s SSO connection on or off
|
|
264
|
+
* @param {string} code Connection code.
|
|
265
|
+
* @param {UpdateSsoConnectionStatusBodyDto} updateSsoConnectionStatusBodyDto
|
|
266
|
+
* @param {string} [authorization] Bearer Token
|
|
267
|
+
* @param {*} [options] Override http request option.
|
|
268
|
+
* @throws {RequiredError}
|
|
269
|
+
*/
|
|
270
|
+
updateSsoConnectionStatus(code: string, updateSsoConnectionStatusBodyDto: UpdateSsoConnectionStatusBodyDto, authorization?: string, options?: any): AxiosPromise<UpdateSsoConnectionStatusResponseClass> {
|
|
271
|
+
return localVarFp.updateSsoConnectionStatus(code, updateSsoConnectionStatusBodyDto, authorization, options).then((request) => request(axios, basePath));
|
|
272
|
+
},
|
|
193
273
|
};
|
|
194
274
|
};
|
|
195
275
|
|
|
@@ -235,6 +315,34 @@ export interface SSOConnectionApiGetSsoConnectionRequest {
|
|
|
235
315
|
readonly authorization?: string
|
|
236
316
|
}
|
|
237
317
|
|
|
318
|
+
/**
|
|
319
|
+
* Request parameters for updateSsoConnectionStatus operation in SSOConnectionApi.
|
|
320
|
+
* @export
|
|
321
|
+
* @interface SSOConnectionApiUpdateSsoConnectionStatusRequest
|
|
322
|
+
*/
|
|
323
|
+
export interface SSOConnectionApiUpdateSsoConnectionStatusRequest {
|
|
324
|
+
/**
|
|
325
|
+
* Connection code.
|
|
326
|
+
* @type {string}
|
|
327
|
+
* @memberof SSOConnectionApiUpdateSsoConnectionStatus
|
|
328
|
+
*/
|
|
329
|
+
readonly code: string
|
|
330
|
+
|
|
331
|
+
/**
|
|
332
|
+
*
|
|
333
|
+
* @type {UpdateSsoConnectionStatusBodyDto}
|
|
334
|
+
* @memberof SSOConnectionApiUpdateSsoConnectionStatus
|
|
335
|
+
*/
|
|
336
|
+
readonly updateSsoConnectionStatusBodyDto: UpdateSsoConnectionStatusBodyDto
|
|
337
|
+
|
|
338
|
+
/**
|
|
339
|
+
* Bearer Token
|
|
340
|
+
* @type {string}
|
|
341
|
+
* @memberof SSOConnectionApiUpdateSsoConnectionStatus
|
|
342
|
+
*/
|
|
343
|
+
readonly authorization?: string
|
|
344
|
+
}
|
|
345
|
+
|
|
238
346
|
/**
|
|
239
347
|
* SSOConnectionApi - object-oriented interface
|
|
240
348
|
* @export
|
|
@@ -265,4 +373,16 @@ export class SSOConnectionApi extends BaseAPI {
|
|
|
265
373
|
public getSsoConnection(requestParameters: SSOConnectionApiGetSsoConnectionRequest, options?: AxiosRequestConfig) {
|
|
266
374
|
return SSOConnectionApiFp(this.configuration).getSsoConnection(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
267
375
|
}
|
|
376
|
+
|
|
377
|
+
/**
|
|
378
|
+
* Activates and deactivates SSO connection status. **Required Permissions** \"tenant-management.settings.update\"
|
|
379
|
+
* @summary Switch the tenant\'s SSO connection on or off
|
|
380
|
+
* @param {SSOConnectionApiUpdateSsoConnectionStatusRequest} requestParameters Request parameters.
|
|
381
|
+
* @param {*} [options] Override http request option.
|
|
382
|
+
* @throws {RequiredError}
|
|
383
|
+
* @memberof SSOConnectionApi
|
|
384
|
+
*/
|
|
385
|
+
public updateSsoConnectionStatus(requestParameters: SSOConnectionApiUpdateSsoConnectionStatusRequest, options?: AxiosRequestConfig) {
|
|
386
|
+
return SSOConnectionApiFp(this.configuration).updateSsoConnectionStatus(requestParameters.code, requestParameters.updateSsoConnectionStatusBodyDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
387
|
+
}
|
|
268
388
|
}
|
|
@@ -15,6 +15,8 @@ import { RequestArgs, BaseAPI } from '../base';
|
|
|
15
15
|
import { CreateSsoConnectionRequestDto } from '../models';
|
|
16
16
|
import { CreateSsoConnectionResponseClass } from '../models';
|
|
17
17
|
import { GetSsoConnectionResponseClass } from '../models';
|
|
18
|
+
import { UpdateSsoConnectionStatusBodyDto } from '../models';
|
|
19
|
+
import { UpdateSsoConnectionStatusResponseClass } from '../models';
|
|
18
20
|
/**
|
|
19
21
|
* SSOConnectionApi - axios parameter creator
|
|
20
22
|
* @export
|
|
@@ -38,6 +40,16 @@ export declare const SSOConnectionApiAxiosParamCreator: (configuration?: Configu
|
|
|
38
40
|
* @throws {RequiredError}
|
|
39
41
|
*/
|
|
40
42
|
getSsoConnection: (code: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
43
|
+
/**
|
|
44
|
+
* Activates and deactivates SSO connection status. **Required Permissions** \"tenant-management.settings.update\"
|
|
45
|
+
* @summary Switch the tenant\'s SSO connection on or off
|
|
46
|
+
* @param {string} code Connection code.
|
|
47
|
+
* @param {UpdateSsoConnectionStatusBodyDto} updateSsoConnectionStatusBodyDto
|
|
48
|
+
* @param {string} [authorization] Bearer Token
|
|
49
|
+
* @param {*} [options] Override http request option.
|
|
50
|
+
* @throws {RequiredError}
|
|
51
|
+
*/
|
|
52
|
+
updateSsoConnectionStatus: (code: string, updateSsoConnectionStatusBodyDto: UpdateSsoConnectionStatusBodyDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
41
53
|
};
|
|
42
54
|
/**
|
|
43
55
|
* SSOConnectionApi - functional programming interface
|
|
@@ -62,6 +74,16 @@ export declare const SSOConnectionApiFp: (configuration?: Configuration) => {
|
|
|
62
74
|
* @throws {RequiredError}
|
|
63
75
|
*/
|
|
64
76
|
getSsoConnection(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetSsoConnectionResponseClass>>;
|
|
77
|
+
/**
|
|
78
|
+
* Activates and deactivates SSO connection status. **Required Permissions** \"tenant-management.settings.update\"
|
|
79
|
+
* @summary Switch the tenant\'s SSO connection on or off
|
|
80
|
+
* @param {string} code Connection code.
|
|
81
|
+
* @param {UpdateSsoConnectionStatusBodyDto} updateSsoConnectionStatusBodyDto
|
|
82
|
+
* @param {string} [authorization] Bearer Token
|
|
83
|
+
* @param {*} [options] Override http request option.
|
|
84
|
+
* @throws {RequiredError}
|
|
85
|
+
*/
|
|
86
|
+
updateSsoConnectionStatus(code: string, updateSsoConnectionStatusBodyDto: UpdateSsoConnectionStatusBodyDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateSsoConnectionStatusResponseClass>>;
|
|
65
87
|
};
|
|
66
88
|
/**
|
|
67
89
|
* SSOConnectionApi - factory interface
|
|
@@ -86,6 +108,16 @@ export declare const SSOConnectionApiFactory: (configuration?: Configuration, ba
|
|
|
86
108
|
* @throws {RequiredError}
|
|
87
109
|
*/
|
|
88
110
|
getSsoConnection(code: string, authorization?: string, options?: any): AxiosPromise<GetSsoConnectionResponseClass>;
|
|
111
|
+
/**
|
|
112
|
+
* Activates and deactivates SSO connection status. **Required Permissions** \"tenant-management.settings.update\"
|
|
113
|
+
* @summary Switch the tenant\'s SSO connection on or off
|
|
114
|
+
* @param {string} code Connection code.
|
|
115
|
+
* @param {UpdateSsoConnectionStatusBodyDto} updateSsoConnectionStatusBodyDto
|
|
116
|
+
* @param {string} [authorization] Bearer Token
|
|
117
|
+
* @param {*} [options] Override http request option.
|
|
118
|
+
* @throws {RequiredError}
|
|
119
|
+
*/
|
|
120
|
+
updateSsoConnectionStatus(code: string, updateSsoConnectionStatusBodyDto: UpdateSsoConnectionStatusBodyDto, authorization?: string, options?: any): AxiosPromise<UpdateSsoConnectionStatusResponseClass>;
|
|
89
121
|
};
|
|
90
122
|
/**
|
|
91
123
|
* Request parameters for createSsoConnection operation in SSOConnectionApi.
|
|
@@ -125,6 +157,31 @@ export interface SSOConnectionApiGetSsoConnectionRequest {
|
|
|
125
157
|
*/
|
|
126
158
|
readonly authorization?: string;
|
|
127
159
|
}
|
|
160
|
+
/**
|
|
161
|
+
* Request parameters for updateSsoConnectionStatus operation in SSOConnectionApi.
|
|
162
|
+
* @export
|
|
163
|
+
* @interface SSOConnectionApiUpdateSsoConnectionStatusRequest
|
|
164
|
+
*/
|
|
165
|
+
export interface SSOConnectionApiUpdateSsoConnectionStatusRequest {
|
|
166
|
+
/**
|
|
167
|
+
* Connection code.
|
|
168
|
+
* @type {string}
|
|
169
|
+
* @memberof SSOConnectionApiUpdateSsoConnectionStatus
|
|
170
|
+
*/
|
|
171
|
+
readonly code: string;
|
|
172
|
+
/**
|
|
173
|
+
*
|
|
174
|
+
* @type {UpdateSsoConnectionStatusBodyDto}
|
|
175
|
+
* @memberof SSOConnectionApiUpdateSsoConnectionStatus
|
|
176
|
+
*/
|
|
177
|
+
readonly updateSsoConnectionStatusBodyDto: UpdateSsoConnectionStatusBodyDto;
|
|
178
|
+
/**
|
|
179
|
+
* Bearer Token
|
|
180
|
+
* @type {string}
|
|
181
|
+
* @memberof SSOConnectionApiUpdateSsoConnectionStatus
|
|
182
|
+
*/
|
|
183
|
+
readonly authorization?: string;
|
|
184
|
+
}
|
|
128
185
|
/**
|
|
129
186
|
* SSOConnectionApi - object-oriented interface
|
|
130
187
|
* @export
|
|
@@ -150,4 +207,13 @@ export declare class SSOConnectionApi extends BaseAPI {
|
|
|
150
207
|
* @memberof SSOConnectionApi
|
|
151
208
|
*/
|
|
152
209
|
getSsoConnection(requestParameters: SSOConnectionApiGetSsoConnectionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetSsoConnectionResponseClass, any, {}>>;
|
|
210
|
+
/**
|
|
211
|
+
* Activates and deactivates SSO connection status. **Required Permissions** \"tenant-management.settings.update\"
|
|
212
|
+
* @summary Switch the tenant\'s SSO connection on or off
|
|
213
|
+
* @param {SSOConnectionApiUpdateSsoConnectionStatusRequest} requestParameters Request parameters.
|
|
214
|
+
* @param {*} [options] Override http request option.
|
|
215
|
+
* @throws {RequiredError}
|
|
216
|
+
* @memberof SSOConnectionApi
|
|
217
|
+
*/
|
|
218
|
+
updateSsoConnectionStatus(requestParameters: SSOConnectionApiUpdateSsoConnectionStatusRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UpdateSsoConnectionStatusResponseClass, any, {}>>;
|
|
153
219
|
}
|
|
@@ -189,6 +189,59 @@ var SSOConnectionApiAxiosParamCreator = function (configuration) {
|
|
|
189
189
|
});
|
|
190
190
|
});
|
|
191
191
|
},
|
|
192
|
+
/**
|
|
193
|
+
* Activates and deactivates SSO connection status. **Required Permissions** \"tenant-management.settings.update\"
|
|
194
|
+
* @summary Switch the tenant\'s SSO connection on or off
|
|
195
|
+
* @param {string} code Connection code.
|
|
196
|
+
* @param {UpdateSsoConnectionStatusBodyDto} updateSsoConnectionStatusBodyDto
|
|
197
|
+
* @param {string} [authorization] Bearer Token
|
|
198
|
+
* @param {*} [options] Override http request option.
|
|
199
|
+
* @throws {RequiredError}
|
|
200
|
+
*/
|
|
201
|
+
updateSsoConnectionStatus: function (code, updateSsoConnectionStatusBodyDto, authorization, options) {
|
|
202
|
+
if (options === void 0) { options = {}; }
|
|
203
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
204
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
205
|
+
return __generator(this, function (_a) {
|
|
206
|
+
switch (_a.label) {
|
|
207
|
+
case 0:
|
|
208
|
+
// verify required parameter 'code' is not null or undefined
|
|
209
|
+
(0, common_1.assertParamExists)('updateSsoConnectionStatus', 'code', code);
|
|
210
|
+
// verify required parameter 'updateSsoConnectionStatusBodyDto' is not null or undefined
|
|
211
|
+
(0, common_1.assertParamExists)('updateSsoConnectionStatus', 'updateSsoConnectionStatusBodyDto', updateSsoConnectionStatusBodyDto);
|
|
212
|
+
localVarPath = "/tenantservice/v1/sso-connection/{code}"
|
|
213
|
+
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
214
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
215
|
+
if (configuration) {
|
|
216
|
+
baseOptions = configuration.baseOptions;
|
|
217
|
+
baseAccessToken = configuration.accessToken;
|
|
218
|
+
}
|
|
219
|
+
localVarRequestOptions = __assign(__assign({ method: 'PATCH' }, baseOptions), options);
|
|
220
|
+
localVarHeaderParameter = {};
|
|
221
|
+
localVarQueryParameter = {};
|
|
222
|
+
// authentication bearer required
|
|
223
|
+
// http bearer authentication required
|
|
224
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
225
|
+
case 1:
|
|
226
|
+
// authentication bearer required
|
|
227
|
+
// http bearer authentication required
|
|
228
|
+
_a.sent();
|
|
229
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
230
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
231
|
+
}
|
|
232
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
233
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
234
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
235
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
236
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateSsoConnectionStatusBodyDto, localVarRequestOptions, configuration);
|
|
237
|
+
return [2 /*return*/, {
|
|
238
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
239
|
+
options: localVarRequestOptions,
|
|
240
|
+
}];
|
|
241
|
+
}
|
|
242
|
+
});
|
|
243
|
+
});
|
|
244
|
+
},
|
|
192
245
|
};
|
|
193
246
|
};
|
|
194
247
|
exports.SSOConnectionApiAxiosParamCreator = SSOConnectionApiAxiosParamCreator;
|
|
@@ -241,6 +294,28 @@ var SSOConnectionApiFp = function (configuration) {
|
|
|
241
294
|
});
|
|
242
295
|
});
|
|
243
296
|
},
|
|
297
|
+
/**
|
|
298
|
+
* Activates and deactivates SSO connection status. **Required Permissions** \"tenant-management.settings.update\"
|
|
299
|
+
* @summary Switch the tenant\'s SSO connection on or off
|
|
300
|
+
* @param {string} code Connection code.
|
|
301
|
+
* @param {UpdateSsoConnectionStatusBodyDto} updateSsoConnectionStatusBodyDto
|
|
302
|
+
* @param {string} [authorization] Bearer Token
|
|
303
|
+
* @param {*} [options] Override http request option.
|
|
304
|
+
* @throws {RequiredError}
|
|
305
|
+
*/
|
|
306
|
+
updateSsoConnectionStatus: function (code, updateSsoConnectionStatusBodyDto, authorization, options) {
|
|
307
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
308
|
+
var localVarAxiosArgs;
|
|
309
|
+
return __generator(this, function (_a) {
|
|
310
|
+
switch (_a.label) {
|
|
311
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateSsoConnectionStatus(code, updateSsoConnectionStatusBodyDto, authorization, options)];
|
|
312
|
+
case 1:
|
|
313
|
+
localVarAxiosArgs = _a.sent();
|
|
314
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
315
|
+
}
|
|
316
|
+
});
|
|
317
|
+
});
|
|
318
|
+
},
|
|
244
319
|
};
|
|
245
320
|
};
|
|
246
321
|
exports.SSOConnectionApiFp = SSOConnectionApiFp;
|
|
@@ -273,6 +348,18 @@ var SSOConnectionApiFactory = function (configuration, basePath, axios) {
|
|
|
273
348
|
getSsoConnection: function (code, authorization, options) {
|
|
274
349
|
return localVarFp.getSsoConnection(code, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
275
350
|
},
|
|
351
|
+
/**
|
|
352
|
+
* Activates and deactivates SSO connection status. **Required Permissions** \"tenant-management.settings.update\"
|
|
353
|
+
* @summary Switch the tenant\'s SSO connection on or off
|
|
354
|
+
* @param {string} code Connection code.
|
|
355
|
+
* @param {UpdateSsoConnectionStatusBodyDto} updateSsoConnectionStatusBodyDto
|
|
356
|
+
* @param {string} [authorization] Bearer Token
|
|
357
|
+
* @param {*} [options] Override http request option.
|
|
358
|
+
* @throws {RequiredError}
|
|
359
|
+
*/
|
|
360
|
+
updateSsoConnectionStatus: function (code, updateSsoConnectionStatusBodyDto, authorization, options) {
|
|
361
|
+
return localVarFp.updateSsoConnectionStatus(code, updateSsoConnectionStatusBodyDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
362
|
+
},
|
|
276
363
|
};
|
|
277
364
|
};
|
|
278
365
|
exports.SSOConnectionApiFactory = SSOConnectionApiFactory;
|
|
@@ -311,6 +398,18 @@ var SSOConnectionApi = /** @class */ (function (_super) {
|
|
|
311
398
|
var _this = this;
|
|
312
399
|
return (0, exports.SSOConnectionApiFp)(this.configuration).getSsoConnection(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
313
400
|
};
|
|
401
|
+
/**
|
|
402
|
+
* Activates and deactivates SSO connection status. **Required Permissions** \"tenant-management.settings.update\"
|
|
403
|
+
* @summary Switch the tenant\'s SSO connection on or off
|
|
404
|
+
* @param {SSOConnectionApiUpdateSsoConnectionStatusRequest} requestParameters Request parameters.
|
|
405
|
+
* @param {*} [options] Override http request option.
|
|
406
|
+
* @throws {RequiredError}
|
|
407
|
+
* @memberof SSOConnectionApi
|
|
408
|
+
*/
|
|
409
|
+
SSOConnectionApi.prototype.updateSsoConnectionStatus = function (requestParameters, options) {
|
|
410
|
+
var _this = this;
|
|
411
|
+
return (0, exports.SSOConnectionApiFp)(this.configuration).updateSsoConnectionStatus(requestParameters.code, requestParameters.updateSsoConnectionStatusBodyDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
412
|
+
};
|
|
314
413
|
return SSOConnectionApi;
|
|
315
414
|
}(base_1.BaseAPI));
|
|
316
415
|
exports.SSOConnectionApi = SSOConnectionApi;
|
package/dist/models/index.d.ts
CHANGED
|
@@ -130,6 +130,8 @@ export * from './update-organization-request-dto-rest';
|
|
|
130
130
|
export * from './update-organization-response-class';
|
|
131
131
|
export * from './update-report-schedule-request-dto';
|
|
132
132
|
export * from './update-report-schedule-response-class';
|
|
133
|
+
export * from './update-sso-connection-status-body-dto';
|
|
134
|
+
export * from './update-sso-connection-status-response-class';
|
|
133
135
|
export * from './update-user-group-request-dto';
|
|
134
136
|
export * from './update-user-group-response-class';
|
|
135
137
|
export * from './user-class';
|
package/dist/models/index.js
CHANGED
|
@@ -146,6 +146,8 @@ __exportStar(require("./update-organization-request-dto-rest"), exports);
|
|
|
146
146
|
__exportStar(require("./update-organization-response-class"), exports);
|
|
147
147
|
__exportStar(require("./update-report-schedule-request-dto"), exports);
|
|
148
148
|
__exportStar(require("./update-report-schedule-response-class"), exports);
|
|
149
|
+
__exportStar(require("./update-sso-connection-status-body-dto"), exports);
|
|
150
|
+
__exportStar(require("./update-sso-connection-status-response-class"), exports);
|
|
149
151
|
__exportStar(require("./update-user-group-request-dto"), exports);
|
|
150
152
|
__exportStar(require("./update-user-group-response-class"), exports);
|
|
151
153
|
__exportStar(require("./user-class"), exports);
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EMIL Tenant Service
|
|
3
|
+
* The EMIL TenantService 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 UpdateSsoConnectionStatusBodyDto
|
|
16
|
+
*/
|
|
17
|
+
export interface UpdateSsoConnectionStatusBodyDto {
|
|
18
|
+
/**
|
|
19
|
+
* Is SSO connection active.
|
|
20
|
+
* @type {boolean}
|
|
21
|
+
* @memberof UpdateSsoConnectionStatusBodyDto
|
|
22
|
+
*/
|
|
23
|
+
'isActive': boolean;
|
|
24
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* EMIL Tenant Service
|
|
6
|
+
* The EMIL TenantService 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,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EMIL Tenant Service
|
|
3
|
+
* The EMIL TenantService 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 { SsoConnectionClass } from './sso-connection-class';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface UpdateSsoConnectionStatusResponseClass
|
|
17
|
+
*/
|
|
18
|
+
export interface UpdateSsoConnectionStatusResponseClass {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {SsoConnectionClass}
|
|
22
|
+
* @memberof UpdateSsoConnectionStatusResponseClass
|
|
23
|
+
*/
|
|
24
|
+
'ssoConnection': SsoConnectionClass;
|
|
25
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* EMIL Tenant Service
|
|
6
|
+
* The EMIL TenantService 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
|
@@ -130,6 +130,8 @@ export * from './update-organization-request-dto-rest';
|
|
|
130
130
|
export * from './update-organization-response-class';
|
|
131
131
|
export * from './update-report-schedule-request-dto';
|
|
132
132
|
export * from './update-report-schedule-response-class';
|
|
133
|
+
export * from './update-sso-connection-status-body-dto';
|
|
134
|
+
export * from './update-sso-connection-status-response-class';
|
|
133
135
|
export * from './update-user-group-request-dto';
|
|
134
136
|
export * from './update-user-group-response-class';
|
|
135
137
|
export * from './user-class';
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* EMIL Tenant Service
|
|
5
|
+
* The EMIL TenantService 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 UpdateSsoConnectionStatusBodyDto
|
|
21
|
+
*/
|
|
22
|
+
export interface UpdateSsoConnectionStatusBodyDto {
|
|
23
|
+
/**
|
|
24
|
+
* Is SSO connection active.
|
|
25
|
+
* @type {boolean}
|
|
26
|
+
* @memberof UpdateSsoConnectionStatusBodyDto
|
|
27
|
+
*/
|
|
28
|
+
'isActive': boolean;
|
|
29
|
+
}
|
|
30
|
+
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* EMIL Tenant Service
|
|
5
|
+
* The EMIL TenantService 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 { SsoConnectionClass } from './sso-connection-class';
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @export
|
|
21
|
+
* @interface UpdateSsoConnectionStatusResponseClass
|
|
22
|
+
*/
|
|
23
|
+
export interface UpdateSsoConnectionStatusResponseClass {
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {SsoConnectionClass}
|
|
27
|
+
* @memberof UpdateSsoConnectionStatusResponseClass
|
|
28
|
+
*/
|
|
29
|
+
'ssoConnection': SsoConnectionClass;
|
|
30
|
+
}
|
|
31
|
+
|