@emilgroup/tenant-sdk 1.33.0 → 1.33.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 +1 -0
- package/README.md +2 -2
- package/api/settings-api.ts +103 -0
- package/dist/api/settings-api.d.ts +53 -0
- package/dist/api/settings-api.js +89 -0
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/dist/models/set-setting-request-dto.d.ts +4 -10
- package/dist/models/set-tenant-setting-response-class.d.ts +36 -0
- package/dist/models/set-tenant-setting-response-class.js +15 -0
- package/models/index.ts +1 -0
- package/models/set-setting-request-dto.ts +4 -10
- package/models/set-tenant-setting-response-class.ts +42 -0
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -104,6 +104,7 @@ models/role-class.ts
|
|
|
104
104
|
models/run-data-report-request-dto.ts
|
|
105
105
|
models/run-data-report-response-class.ts
|
|
106
106
|
models/set-setting-request-dto.ts
|
|
107
|
+
models/set-tenant-setting-response-class.ts
|
|
107
108
|
models/subscription-class.ts
|
|
108
109
|
models/tenant-admin-user-dto.ts
|
|
109
110
|
models/tenant-settings-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.33.
|
|
20
|
+
npm install @emilgroup/tenant-sdk@1.33.1-beta.1 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/tenant-sdk@1.33.
|
|
24
|
+
yarn add @emilgroup/tenant-sdk@1.33.1-beta.1
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `UsersApi`.
|
package/api/settings-api.ts
CHANGED
|
@@ -22,6 +22,10 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
|
|
|
22
22
|
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
|
|
23
23
|
// @ts-ignore
|
|
24
24
|
import { GetSettingsResponseClass } from '../models';
|
|
25
|
+
// @ts-ignore
|
|
26
|
+
import { SetSettingRequestDto } from '../models';
|
|
27
|
+
// @ts-ignore
|
|
28
|
+
import { SetTenantSettingResponseClass } from '../models';
|
|
25
29
|
/**
|
|
26
30
|
* SettingsApi - axios parameter creator
|
|
27
31
|
* @export
|
|
@@ -71,6 +75,52 @@ export const SettingsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
71
75
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
72
76
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
73
77
|
|
|
78
|
+
return {
|
|
79
|
+
url: toPathString(localVarUrlObj),
|
|
80
|
+
options: localVarRequestOptions,
|
|
81
|
+
};
|
|
82
|
+
},
|
|
83
|
+
/**
|
|
84
|
+
* undefined **Required Permissions** \"tenant-management.tenants.update\"
|
|
85
|
+
* @param {SetSettingRequestDto} setSettingRequestDto
|
|
86
|
+
* @param {string} [authorization] Bearer Token
|
|
87
|
+
* @param {*} [options] Override http request option.
|
|
88
|
+
* @throws {RequiredError}
|
|
89
|
+
*/
|
|
90
|
+
setTenantSetting: async (setSettingRequestDto: SetSettingRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
91
|
+
// verify required parameter 'setSettingRequestDto' is not null or undefined
|
|
92
|
+
assertParamExists('setTenantSetting', 'setSettingRequestDto', setSettingRequestDto)
|
|
93
|
+
const localVarPath = `/tenantservice/v1/settings/tenant`;
|
|
94
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
95
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
96
|
+
let baseOptions;
|
|
97
|
+
let baseAccessToken;
|
|
98
|
+
if (configuration) {
|
|
99
|
+
baseOptions = configuration.baseOptions;
|
|
100
|
+
baseAccessToken = configuration.accessToken;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
104
|
+
const localVarHeaderParameter = {} as any;
|
|
105
|
+
const localVarQueryParameter = {} as any;
|
|
106
|
+
|
|
107
|
+
// authentication bearer required
|
|
108
|
+
// http bearer authentication required
|
|
109
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
110
|
+
|
|
111
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
112
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
118
|
+
|
|
119
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
120
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
121
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
122
|
+
localVarRequestOptions.data = serializeDataIfNeeded(setSettingRequestDto, localVarRequestOptions, configuration)
|
|
123
|
+
|
|
74
124
|
return {
|
|
75
125
|
url: toPathString(localVarUrlObj),
|
|
76
126
|
options: localVarRequestOptions,
|
|
@@ -98,6 +148,17 @@ export const SettingsApiFp = function(configuration?: Configuration) {
|
|
|
98
148
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getTenantSettings(keys, authorization, options);
|
|
99
149
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
100
150
|
},
|
|
151
|
+
/**
|
|
152
|
+
* undefined **Required Permissions** \"tenant-management.tenants.update\"
|
|
153
|
+
* @param {SetSettingRequestDto} setSettingRequestDto
|
|
154
|
+
* @param {string} [authorization] Bearer Token
|
|
155
|
+
* @param {*} [options] Override http request option.
|
|
156
|
+
* @throws {RequiredError}
|
|
157
|
+
*/
|
|
158
|
+
async setTenantSetting(setSettingRequestDto: SetSettingRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SetTenantSettingResponseClass>> {
|
|
159
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.setTenantSetting(setSettingRequestDto, authorization, options);
|
|
160
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
161
|
+
},
|
|
101
162
|
}
|
|
102
163
|
};
|
|
103
164
|
|
|
@@ -119,6 +180,16 @@ export const SettingsApiFactory = function (configuration?: Configuration, baseP
|
|
|
119
180
|
getTenantSettings(keys: string, authorization?: string, options?: any): AxiosPromise<GetSettingsResponseClass> {
|
|
120
181
|
return localVarFp.getTenantSettings(keys, authorization, options).then((request) => request(axios, basePath));
|
|
121
182
|
},
|
|
183
|
+
/**
|
|
184
|
+
* undefined **Required Permissions** \"tenant-management.tenants.update\"
|
|
185
|
+
* @param {SetSettingRequestDto} setSettingRequestDto
|
|
186
|
+
* @param {string} [authorization] Bearer Token
|
|
187
|
+
* @param {*} [options] Override http request option.
|
|
188
|
+
* @throws {RequiredError}
|
|
189
|
+
*/
|
|
190
|
+
setTenantSetting(setSettingRequestDto: SetSettingRequestDto, authorization?: string, options?: any): AxiosPromise<SetTenantSettingResponseClass> {
|
|
191
|
+
return localVarFp.setTenantSetting(setSettingRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
192
|
+
},
|
|
122
193
|
};
|
|
123
194
|
};
|
|
124
195
|
|
|
@@ -143,6 +214,27 @@ export interface SettingsApiGetTenantSettingsRequest {
|
|
|
143
214
|
readonly authorization?: string
|
|
144
215
|
}
|
|
145
216
|
|
|
217
|
+
/**
|
|
218
|
+
* Request parameters for setTenantSetting operation in SettingsApi.
|
|
219
|
+
* @export
|
|
220
|
+
* @interface SettingsApiSetTenantSettingRequest
|
|
221
|
+
*/
|
|
222
|
+
export interface SettingsApiSetTenantSettingRequest {
|
|
223
|
+
/**
|
|
224
|
+
*
|
|
225
|
+
* @type {SetSettingRequestDto}
|
|
226
|
+
* @memberof SettingsApiSetTenantSetting
|
|
227
|
+
*/
|
|
228
|
+
readonly setSettingRequestDto: SetSettingRequestDto
|
|
229
|
+
|
|
230
|
+
/**
|
|
231
|
+
* Bearer Token
|
|
232
|
+
* @type {string}
|
|
233
|
+
* @memberof SettingsApiSetTenantSetting
|
|
234
|
+
*/
|
|
235
|
+
readonly authorization?: string
|
|
236
|
+
}
|
|
237
|
+
|
|
146
238
|
/**
|
|
147
239
|
* SettingsApi - object-oriented interface
|
|
148
240
|
* @export
|
|
@@ -161,4 +253,15 @@ export class SettingsApi extends BaseAPI {
|
|
|
161
253
|
public getTenantSettings(requestParameters: SettingsApiGetTenantSettingsRequest, options?: AxiosRequestConfig) {
|
|
162
254
|
return SettingsApiFp(this.configuration).getTenantSettings(requestParameters.keys, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
163
255
|
}
|
|
256
|
+
|
|
257
|
+
/**
|
|
258
|
+
* undefined **Required Permissions** \"tenant-management.tenants.update\"
|
|
259
|
+
* @param {SettingsApiSetTenantSettingRequest} requestParameters Request parameters.
|
|
260
|
+
* @param {*} [options] Override http request option.
|
|
261
|
+
* @throws {RequiredError}
|
|
262
|
+
* @memberof SettingsApi
|
|
263
|
+
*/
|
|
264
|
+
public setTenantSetting(requestParameters: SettingsApiSetTenantSettingRequest, options?: AxiosRequestConfig) {
|
|
265
|
+
return SettingsApiFp(this.configuration).setTenantSetting(requestParameters.setSettingRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
266
|
+
}
|
|
164
267
|
}
|
|
@@ -13,6 +13,8 @@ import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
|
13
13
|
import { Configuration } from '../configuration';
|
|
14
14
|
import { RequestArgs, BaseAPI } from '../base';
|
|
15
15
|
import { GetSettingsResponseClass } from '../models';
|
|
16
|
+
import { SetSettingRequestDto } from '../models';
|
|
17
|
+
import { SetTenantSettingResponseClass } from '../models';
|
|
16
18
|
/**
|
|
17
19
|
* SettingsApi - axios parameter creator
|
|
18
20
|
* @export
|
|
@@ -27,6 +29,14 @@ export declare const SettingsApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
27
29
|
* @throws {RequiredError}
|
|
28
30
|
*/
|
|
29
31
|
getTenantSettings: (keys: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
32
|
+
/**
|
|
33
|
+
* undefined **Required Permissions** \"tenant-management.tenants.update\"
|
|
34
|
+
* @param {SetSettingRequestDto} setSettingRequestDto
|
|
35
|
+
* @param {string} [authorization] Bearer Token
|
|
36
|
+
* @param {*} [options] Override http request option.
|
|
37
|
+
* @throws {RequiredError}
|
|
38
|
+
*/
|
|
39
|
+
setTenantSetting: (setSettingRequestDto: SetSettingRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
30
40
|
};
|
|
31
41
|
/**
|
|
32
42
|
* SettingsApi - functional programming interface
|
|
@@ -42,6 +52,14 @@ export declare const SettingsApiFp: (configuration?: Configuration) => {
|
|
|
42
52
|
* @throws {RequiredError}
|
|
43
53
|
*/
|
|
44
54
|
getTenantSettings(keys: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetSettingsResponseClass>>;
|
|
55
|
+
/**
|
|
56
|
+
* undefined **Required Permissions** \"tenant-management.tenants.update\"
|
|
57
|
+
* @param {SetSettingRequestDto} setSettingRequestDto
|
|
58
|
+
* @param {string} [authorization] Bearer Token
|
|
59
|
+
* @param {*} [options] Override http request option.
|
|
60
|
+
* @throws {RequiredError}
|
|
61
|
+
*/
|
|
62
|
+
setTenantSetting(setSettingRequestDto: SetSettingRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SetTenantSettingResponseClass>>;
|
|
45
63
|
};
|
|
46
64
|
/**
|
|
47
65
|
* SettingsApi - factory interface
|
|
@@ -57,6 +75,14 @@ export declare const SettingsApiFactory: (configuration?: Configuration, basePat
|
|
|
57
75
|
* @throws {RequiredError}
|
|
58
76
|
*/
|
|
59
77
|
getTenantSettings(keys: string, authorization?: string, options?: any): AxiosPromise<GetSettingsResponseClass>;
|
|
78
|
+
/**
|
|
79
|
+
* undefined **Required Permissions** \"tenant-management.tenants.update\"
|
|
80
|
+
* @param {SetSettingRequestDto} setSettingRequestDto
|
|
81
|
+
* @param {string} [authorization] Bearer Token
|
|
82
|
+
* @param {*} [options] Override http request option.
|
|
83
|
+
* @throws {RequiredError}
|
|
84
|
+
*/
|
|
85
|
+
setTenantSetting(setSettingRequestDto: SetSettingRequestDto, authorization?: string, options?: any): AxiosPromise<SetTenantSettingResponseClass>;
|
|
60
86
|
};
|
|
61
87
|
/**
|
|
62
88
|
* Request parameters for getTenantSettings operation in SettingsApi.
|
|
@@ -77,6 +103,25 @@ export interface SettingsApiGetTenantSettingsRequest {
|
|
|
77
103
|
*/
|
|
78
104
|
readonly authorization?: string;
|
|
79
105
|
}
|
|
106
|
+
/**
|
|
107
|
+
* Request parameters for setTenantSetting operation in SettingsApi.
|
|
108
|
+
* @export
|
|
109
|
+
* @interface SettingsApiSetTenantSettingRequest
|
|
110
|
+
*/
|
|
111
|
+
export interface SettingsApiSetTenantSettingRequest {
|
|
112
|
+
/**
|
|
113
|
+
*
|
|
114
|
+
* @type {SetSettingRequestDto}
|
|
115
|
+
* @memberof SettingsApiSetTenantSetting
|
|
116
|
+
*/
|
|
117
|
+
readonly setSettingRequestDto: SetSettingRequestDto;
|
|
118
|
+
/**
|
|
119
|
+
* Bearer Token
|
|
120
|
+
* @type {string}
|
|
121
|
+
* @memberof SettingsApiSetTenantSetting
|
|
122
|
+
*/
|
|
123
|
+
readonly authorization?: string;
|
|
124
|
+
}
|
|
80
125
|
/**
|
|
81
126
|
* SettingsApi - object-oriented interface
|
|
82
127
|
* @export
|
|
@@ -93,4 +138,12 @@ export declare class SettingsApi extends BaseAPI {
|
|
|
93
138
|
* @memberof SettingsApi
|
|
94
139
|
*/
|
|
95
140
|
getTenantSettings(requestParameters: SettingsApiGetTenantSettingsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetSettingsResponseClass, any>>;
|
|
141
|
+
/**
|
|
142
|
+
* undefined **Required Permissions** \"tenant-management.tenants.update\"
|
|
143
|
+
* @param {SettingsApiSetTenantSettingRequest} requestParameters Request parameters.
|
|
144
|
+
* @param {*} [options] Override http request option.
|
|
145
|
+
* @throws {RequiredError}
|
|
146
|
+
* @memberof SettingsApi
|
|
147
|
+
*/
|
|
148
|
+
setTenantSetting(requestParameters: SettingsApiSetTenantSettingRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<SetTenantSettingResponseClass, any>>;
|
|
96
149
|
}
|
package/dist/api/settings-api.js
CHANGED
|
@@ -142,6 +142,54 @@ var SettingsApiAxiosParamCreator = function (configuration) {
|
|
|
142
142
|
});
|
|
143
143
|
});
|
|
144
144
|
},
|
|
145
|
+
/**
|
|
146
|
+
* undefined **Required Permissions** \"tenant-management.tenants.update\"
|
|
147
|
+
* @param {SetSettingRequestDto} setSettingRequestDto
|
|
148
|
+
* @param {string} [authorization] Bearer Token
|
|
149
|
+
* @param {*} [options] Override http request option.
|
|
150
|
+
* @throws {RequiredError}
|
|
151
|
+
*/
|
|
152
|
+
setTenantSetting: function (setSettingRequestDto, authorization, 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 'setSettingRequestDto' is not null or undefined
|
|
160
|
+
(0, common_1.assertParamExists)('setTenantSetting', 'setSettingRequestDto', setSettingRequestDto);
|
|
161
|
+
localVarPath = "/tenantservice/v1/settings/tenant";
|
|
162
|
+
localVarUrlObj = new 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
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
181
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
182
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
183
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
184
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(setSettingRequestDto, localVarRequestOptions, configuration);
|
|
185
|
+
return [2 /*return*/, {
|
|
186
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
187
|
+
options: localVarRequestOptions,
|
|
188
|
+
}];
|
|
189
|
+
}
|
|
190
|
+
});
|
|
191
|
+
});
|
|
192
|
+
},
|
|
145
193
|
};
|
|
146
194
|
};
|
|
147
195
|
exports.SettingsApiAxiosParamCreator = SettingsApiAxiosParamCreator;
|
|
@@ -173,6 +221,26 @@ var SettingsApiFp = function (configuration) {
|
|
|
173
221
|
});
|
|
174
222
|
});
|
|
175
223
|
},
|
|
224
|
+
/**
|
|
225
|
+
* undefined **Required Permissions** \"tenant-management.tenants.update\"
|
|
226
|
+
* @param {SetSettingRequestDto} setSettingRequestDto
|
|
227
|
+
* @param {string} [authorization] Bearer Token
|
|
228
|
+
* @param {*} [options] Override http request option.
|
|
229
|
+
* @throws {RequiredError}
|
|
230
|
+
*/
|
|
231
|
+
setTenantSetting: function (setSettingRequestDto, authorization, options) {
|
|
232
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
233
|
+
var localVarAxiosArgs;
|
|
234
|
+
return __generator(this, function (_a) {
|
|
235
|
+
switch (_a.label) {
|
|
236
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.setTenantSetting(setSettingRequestDto, authorization, options)];
|
|
237
|
+
case 1:
|
|
238
|
+
localVarAxiosArgs = _a.sent();
|
|
239
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
240
|
+
}
|
|
241
|
+
});
|
|
242
|
+
});
|
|
243
|
+
},
|
|
176
244
|
};
|
|
177
245
|
};
|
|
178
246
|
exports.SettingsApiFp = SettingsApiFp;
|
|
@@ -194,6 +262,16 @@ var SettingsApiFactory = function (configuration, basePath, axios) {
|
|
|
194
262
|
getTenantSettings: function (keys, authorization, options) {
|
|
195
263
|
return localVarFp.getTenantSettings(keys, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
196
264
|
},
|
|
265
|
+
/**
|
|
266
|
+
* undefined **Required Permissions** \"tenant-management.tenants.update\"
|
|
267
|
+
* @param {SetSettingRequestDto} setSettingRequestDto
|
|
268
|
+
* @param {string} [authorization] Bearer Token
|
|
269
|
+
* @param {*} [options] Override http request option.
|
|
270
|
+
* @throws {RequiredError}
|
|
271
|
+
*/
|
|
272
|
+
setTenantSetting: function (setSettingRequestDto, authorization, options) {
|
|
273
|
+
return localVarFp.setTenantSetting(setSettingRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
274
|
+
},
|
|
197
275
|
};
|
|
198
276
|
};
|
|
199
277
|
exports.SettingsApiFactory = SettingsApiFactory;
|
|
@@ -220,6 +298,17 @@ var SettingsApi = /** @class */ (function (_super) {
|
|
|
220
298
|
var _this = this;
|
|
221
299
|
return (0, exports.SettingsApiFp)(this.configuration).getTenantSettings(requestParameters.keys, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
222
300
|
};
|
|
301
|
+
/**
|
|
302
|
+
* undefined **Required Permissions** \"tenant-management.tenants.update\"
|
|
303
|
+
* @param {SettingsApiSetTenantSettingRequest} requestParameters Request parameters.
|
|
304
|
+
* @param {*} [options] Override http request option.
|
|
305
|
+
* @throws {RequiredError}
|
|
306
|
+
* @memberof SettingsApi
|
|
307
|
+
*/
|
|
308
|
+
SettingsApi.prototype.setTenantSetting = function (requestParameters, options) {
|
|
309
|
+
var _this = this;
|
|
310
|
+
return (0, exports.SettingsApiFp)(this.configuration).setTenantSetting(requestParameters.setSettingRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
311
|
+
};
|
|
223
312
|
return SettingsApi;
|
|
224
313
|
}(base_1.BaseAPI));
|
|
225
314
|
exports.SettingsApi = SettingsApi;
|
package/dist/models/index.d.ts
CHANGED
|
@@ -77,6 +77,7 @@ export * from './role-class';
|
|
|
77
77
|
export * from './run-data-report-request-dto';
|
|
78
78
|
export * from './run-data-report-response-class';
|
|
79
79
|
export * from './set-setting-request-dto';
|
|
80
|
+
export * from './set-tenant-setting-response-class';
|
|
80
81
|
export * from './subscription-class';
|
|
81
82
|
export * from './tenant-admin-user-dto';
|
|
82
83
|
export * from './tenant-settings-class';
|
package/dist/models/index.js
CHANGED
|
@@ -93,6 +93,7 @@ __exportStar(require("./role-class"), exports);
|
|
|
93
93
|
__exportStar(require("./run-data-report-request-dto"), exports);
|
|
94
94
|
__exportStar(require("./run-data-report-response-class"), exports);
|
|
95
95
|
__exportStar(require("./set-setting-request-dto"), exports);
|
|
96
|
+
__exportStar(require("./set-tenant-setting-response-class"), exports);
|
|
96
97
|
__exportStar(require("./subscription-class"), exports);
|
|
97
98
|
__exportStar(require("./tenant-admin-user-dto"), exports);
|
|
98
99
|
__exportStar(require("./tenant-settings-class"), exports);
|
|
@@ -16,21 +16,15 @@
|
|
|
16
16
|
*/
|
|
17
17
|
export interface SetSettingRequestDto {
|
|
18
18
|
/**
|
|
19
|
-
*
|
|
19
|
+
* Setting key.
|
|
20
20
|
* @type {string}
|
|
21
21
|
* @memberof SetSettingRequestDto
|
|
22
22
|
*/
|
|
23
23
|
'key': string;
|
|
24
24
|
/**
|
|
25
|
-
*
|
|
26
|
-
* @type {
|
|
27
|
-
* @memberof SetSettingRequestDto
|
|
28
|
-
*/
|
|
29
|
-
'value': string;
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {string}
|
|
25
|
+
* Setting value.
|
|
26
|
+
* @type {object}
|
|
33
27
|
* @memberof SetSettingRequestDto
|
|
34
28
|
*/
|
|
35
|
-
'
|
|
29
|
+
'value': object;
|
|
36
30
|
}
|
|
@@ -0,0 +1,36 @@
|
|
|
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 SetTenantSettingResponseClass
|
|
16
|
+
*/
|
|
17
|
+
export interface SetTenantSettingResponseClass {
|
|
18
|
+
/**
|
|
19
|
+
* Setting key.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof SetTenantSettingResponseClass
|
|
22
|
+
*/
|
|
23
|
+
'key': string;
|
|
24
|
+
/**
|
|
25
|
+
* Setting value.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof SetTenantSettingResponseClass
|
|
28
|
+
*/
|
|
29
|
+
'value': string;
|
|
30
|
+
/**
|
|
31
|
+
* Type indicates whether the setting applies to user or tenant.
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof SetTenantSettingResponseClass
|
|
34
|
+
*/
|
|
35
|
+
'type': string;
|
|
36
|
+
}
|
|
@@ -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
|
@@ -77,6 +77,7 @@ export * from './role-class';
|
|
|
77
77
|
export * from './run-data-report-request-dto';
|
|
78
78
|
export * from './run-data-report-response-class';
|
|
79
79
|
export * from './set-setting-request-dto';
|
|
80
|
+
export * from './set-tenant-setting-response-class';
|
|
80
81
|
export * from './subscription-class';
|
|
81
82
|
export * from './tenant-admin-user-dto';
|
|
82
83
|
export * from './tenant-settings-class';
|
|
@@ -21,22 +21,16 @@
|
|
|
21
21
|
*/
|
|
22
22
|
export interface SetSettingRequestDto {
|
|
23
23
|
/**
|
|
24
|
-
*
|
|
24
|
+
* Setting key.
|
|
25
25
|
* @type {string}
|
|
26
26
|
* @memberof SetSettingRequestDto
|
|
27
27
|
*/
|
|
28
28
|
'key': string;
|
|
29
29
|
/**
|
|
30
|
-
*
|
|
31
|
-
* @type {
|
|
32
|
-
* @memberof SetSettingRequestDto
|
|
33
|
-
*/
|
|
34
|
-
'value': string;
|
|
35
|
-
/**
|
|
36
|
-
*
|
|
37
|
-
* @type {string}
|
|
30
|
+
* Setting value.
|
|
31
|
+
* @type {object}
|
|
38
32
|
* @memberof SetSettingRequestDto
|
|
39
33
|
*/
|
|
40
|
-
'
|
|
34
|
+
'value': object;
|
|
41
35
|
}
|
|
42
36
|
|
|
@@ -0,0 +1,42 @@
|
|
|
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 SetTenantSettingResponseClass
|
|
21
|
+
*/
|
|
22
|
+
export interface SetTenantSettingResponseClass {
|
|
23
|
+
/**
|
|
24
|
+
* Setting key.
|
|
25
|
+
* @type {string}
|
|
26
|
+
* @memberof SetTenantSettingResponseClass
|
|
27
|
+
*/
|
|
28
|
+
'key': string;
|
|
29
|
+
/**
|
|
30
|
+
* Setting value.
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof SetTenantSettingResponseClass
|
|
33
|
+
*/
|
|
34
|
+
'value': string;
|
|
35
|
+
/**
|
|
36
|
+
* Type indicates whether the setting applies to user or tenant.
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof SetTenantSettingResponseClass
|
|
39
|
+
*/
|
|
40
|
+
'type': string;
|
|
41
|
+
}
|
|
42
|
+
|