@emilgroup/tenant-sdk-node 1.32.1-beta.0 → 1.32.1-beta.2
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-node@1.32.1-beta.
|
|
20
|
+
npm install @emilgroup/tenant-sdk-node@1.32.1-beta.2 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/tenant-sdk-node@1.32.1-beta.
|
|
24
|
+
yarn add @emilgroup/tenant-sdk-node@1.32.1-beta.2
|
|
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
|
// URLSearchParams not necessarily used
|
|
26
30
|
// @ts-ignore
|
|
27
31
|
import { URL, URLSearchParams } from 'url';
|
|
@@ -75,6 +79,52 @@ export const SettingsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
75
79
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
76
80
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
77
81
|
|
|
82
|
+
return {
|
|
83
|
+
url: toPathString(localVarUrlObj),
|
|
84
|
+
options: localVarRequestOptions,
|
|
85
|
+
};
|
|
86
|
+
},
|
|
87
|
+
/**
|
|
88
|
+
* undefined **Required Permissions** \"tenant-management.tenants.update\"
|
|
89
|
+
* @param {SetSettingRequestDto} setSettingRequestDto
|
|
90
|
+
* @param {string} [authorization] Bearer Token
|
|
91
|
+
* @param {*} [options] Override http request option.
|
|
92
|
+
* @throws {RequiredError}
|
|
93
|
+
*/
|
|
94
|
+
setTenantSetting: async (setSettingRequestDto: SetSettingRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
95
|
+
// verify required parameter 'setSettingRequestDto' is not null or undefined
|
|
96
|
+
assertParamExists('setTenantSetting', 'setSettingRequestDto', setSettingRequestDto)
|
|
97
|
+
const localVarPath = `/tenantservice/v1/settings/tenant`;
|
|
98
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
99
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
100
|
+
let baseOptions;
|
|
101
|
+
let baseAccessToken;
|
|
102
|
+
if (configuration) {
|
|
103
|
+
baseOptions = configuration.baseOptions;
|
|
104
|
+
baseAccessToken = configuration.accessToken;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
108
|
+
const localVarHeaderParameter = {} as any;
|
|
109
|
+
const localVarQueryParameter = {} as any;
|
|
110
|
+
|
|
111
|
+
// authentication bearer required
|
|
112
|
+
// http bearer authentication required
|
|
113
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
114
|
+
|
|
115
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
116
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
122
|
+
|
|
123
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
124
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
125
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
126
|
+
localVarRequestOptions.data = serializeDataIfNeeded(setSettingRequestDto, localVarRequestOptions, configuration)
|
|
127
|
+
|
|
78
128
|
return {
|
|
79
129
|
url: toPathString(localVarUrlObj),
|
|
80
130
|
options: localVarRequestOptions,
|
|
@@ -102,6 +152,17 @@ export const SettingsApiFp = function(configuration?: Configuration) {
|
|
|
102
152
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getTenantSettings(keys, authorization, options);
|
|
103
153
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
104
154
|
},
|
|
155
|
+
/**
|
|
156
|
+
* undefined **Required Permissions** \"tenant-management.tenants.update\"
|
|
157
|
+
* @param {SetSettingRequestDto} setSettingRequestDto
|
|
158
|
+
* @param {string} [authorization] Bearer Token
|
|
159
|
+
* @param {*} [options] Override http request option.
|
|
160
|
+
* @throws {RequiredError}
|
|
161
|
+
*/
|
|
162
|
+
async setTenantSetting(setSettingRequestDto: SetSettingRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SetTenantSettingResponseClass>> {
|
|
163
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.setTenantSetting(setSettingRequestDto, authorization, options);
|
|
164
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
165
|
+
},
|
|
105
166
|
}
|
|
106
167
|
};
|
|
107
168
|
|
|
@@ -123,6 +184,16 @@ export const SettingsApiFactory = function (configuration?: Configuration, baseP
|
|
|
123
184
|
getTenantSettings(keys: string, authorization?: string, options?: any): AxiosPromise<GetSettingsResponseClass> {
|
|
124
185
|
return localVarFp.getTenantSettings(keys, authorization, options).then((request) => request(axios, basePath));
|
|
125
186
|
},
|
|
187
|
+
/**
|
|
188
|
+
* undefined **Required Permissions** \"tenant-management.tenants.update\"
|
|
189
|
+
* @param {SetSettingRequestDto} setSettingRequestDto
|
|
190
|
+
* @param {string} [authorization] Bearer Token
|
|
191
|
+
* @param {*} [options] Override http request option.
|
|
192
|
+
* @throws {RequiredError}
|
|
193
|
+
*/
|
|
194
|
+
setTenantSetting(setSettingRequestDto: SetSettingRequestDto, authorization?: string, options?: any): AxiosPromise<SetTenantSettingResponseClass> {
|
|
195
|
+
return localVarFp.setTenantSetting(setSettingRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
196
|
+
},
|
|
126
197
|
};
|
|
127
198
|
};
|
|
128
199
|
|
|
@@ -147,6 +218,27 @@ export interface SettingsApiGetTenantSettingsRequest {
|
|
|
147
218
|
readonly authorization?: string
|
|
148
219
|
}
|
|
149
220
|
|
|
221
|
+
/**
|
|
222
|
+
* Request parameters for setTenantSetting operation in SettingsApi.
|
|
223
|
+
* @export
|
|
224
|
+
* @interface SettingsApiSetTenantSettingRequest
|
|
225
|
+
*/
|
|
226
|
+
export interface SettingsApiSetTenantSettingRequest {
|
|
227
|
+
/**
|
|
228
|
+
*
|
|
229
|
+
* @type {SetSettingRequestDto}
|
|
230
|
+
* @memberof SettingsApiSetTenantSetting
|
|
231
|
+
*/
|
|
232
|
+
readonly setSettingRequestDto: SetSettingRequestDto
|
|
233
|
+
|
|
234
|
+
/**
|
|
235
|
+
* Bearer Token
|
|
236
|
+
* @type {string}
|
|
237
|
+
* @memberof SettingsApiSetTenantSetting
|
|
238
|
+
*/
|
|
239
|
+
readonly authorization?: string
|
|
240
|
+
}
|
|
241
|
+
|
|
150
242
|
/**
|
|
151
243
|
* SettingsApi - object-oriented interface
|
|
152
244
|
* @export
|
|
@@ -165,4 +257,15 @@ export class SettingsApi extends BaseAPI {
|
|
|
165
257
|
public getTenantSettings(requestParameters: SettingsApiGetTenantSettingsRequest, options?: AxiosRequestConfig) {
|
|
166
258
|
return SettingsApiFp(this.configuration).getTenantSettings(requestParameters.keys, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
167
259
|
}
|
|
260
|
+
|
|
261
|
+
/**
|
|
262
|
+
* undefined **Required Permissions** \"tenant-management.tenants.update\"
|
|
263
|
+
* @param {SettingsApiSetTenantSettingRequest} requestParameters Request parameters.
|
|
264
|
+
* @param {*} [options] Override http request option.
|
|
265
|
+
* @throws {RequiredError}
|
|
266
|
+
* @memberof SettingsApi
|
|
267
|
+
*/
|
|
268
|
+
public setTenantSetting(requestParameters: SettingsApiSetTenantSettingRequest, options?: AxiosRequestConfig) {
|
|
269
|
+
return SettingsApiFp(this.configuration).setTenantSetting(requestParameters.setSettingRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
270
|
+
}
|
|
168
271
|
}
|
|
@@ -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
|
@@ -146,6 +146,54 @@ var SettingsApiAxiosParamCreator = function (configuration) {
|
|
|
146
146
|
});
|
|
147
147
|
});
|
|
148
148
|
},
|
|
149
|
+
/**
|
|
150
|
+
* undefined **Required Permissions** \"tenant-management.tenants.update\"
|
|
151
|
+
* @param {SetSettingRequestDto} setSettingRequestDto
|
|
152
|
+
* @param {string} [authorization] Bearer Token
|
|
153
|
+
* @param {*} [options] Override http request option.
|
|
154
|
+
* @throws {RequiredError}
|
|
155
|
+
*/
|
|
156
|
+
setTenantSetting: function (setSettingRequestDto, authorization, options) {
|
|
157
|
+
if (options === void 0) { options = {}; }
|
|
158
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
159
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
160
|
+
return __generator(this, function (_a) {
|
|
161
|
+
switch (_a.label) {
|
|
162
|
+
case 0:
|
|
163
|
+
// verify required parameter 'setSettingRequestDto' is not null or undefined
|
|
164
|
+
(0, common_1.assertParamExists)('setTenantSetting', 'setSettingRequestDto', setSettingRequestDto);
|
|
165
|
+
localVarPath = "/tenantservice/v1/settings/tenant";
|
|
166
|
+
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
167
|
+
if (configuration) {
|
|
168
|
+
baseOptions = configuration.baseOptions;
|
|
169
|
+
baseAccessToken = configuration.accessToken;
|
|
170
|
+
}
|
|
171
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
172
|
+
localVarHeaderParameter = {};
|
|
173
|
+
localVarQueryParameter = {};
|
|
174
|
+
// authentication bearer required
|
|
175
|
+
// http bearer authentication required
|
|
176
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
177
|
+
case 1:
|
|
178
|
+
// authentication bearer required
|
|
179
|
+
// http bearer authentication required
|
|
180
|
+
_a.sent();
|
|
181
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
182
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
183
|
+
}
|
|
184
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
185
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
186
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
187
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
188
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(setSettingRequestDto, localVarRequestOptions, configuration);
|
|
189
|
+
return [2 /*return*/, {
|
|
190
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
191
|
+
options: localVarRequestOptions,
|
|
192
|
+
}];
|
|
193
|
+
}
|
|
194
|
+
});
|
|
195
|
+
});
|
|
196
|
+
},
|
|
149
197
|
};
|
|
150
198
|
};
|
|
151
199
|
exports.SettingsApiAxiosParamCreator = SettingsApiAxiosParamCreator;
|
|
@@ -177,6 +225,26 @@ var SettingsApiFp = function (configuration) {
|
|
|
177
225
|
});
|
|
178
226
|
});
|
|
179
227
|
},
|
|
228
|
+
/**
|
|
229
|
+
* undefined **Required Permissions** \"tenant-management.tenants.update\"
|
|
230
|
+
* @param {SetSettingRequestDto} setSettingRequestDto
|
|
231
|
+
* @param {string} [authorization] Bearer Token
|
|
232
|
+
* @param {*} [options] Override http request option.
|
|
233
|
+
* @throws {RequiredError}
|
|
234
|
+
*/
|
|
235
|
+
setTenantSetting: function (setSettingRequestDto, authorization, options) {
|
|
236
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
237
|
+
var localVarAxiosArgs;
|
|
238
|
+
return __generator(this, function (_a) {
|
|
239
|
+
switch (_a.label) {
|
|
240
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.setTenantSetting(setSettingRequestDto, authorization, options)];
|
|
241
|
+
case 1:
|
|
242
|
+
localVarAxiosArgs = _a.sent();
|
|
243
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
244
|
+
}
|
|
245
|
+
});
|
|
246
|
+
});
|
|
247
|
+
},
|
|
180
248
|
};
|
|
181
249
|
};
|
|
182
250
|
exports.SettingsApiFp = SettingsApiFp;
|
|
@@ -198,6 +266,16 @@ var SettingsApiFactory = function (configuration, basePath, axios) {
|
|
|
198
266
|
getTenantSettings: function (keys, authorization, options) {
|
|
199
267
|
return localVarFp.getTenantSettings(keys, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
200
268
|
},
|
|
269
|
+
/**
|
|
270
|
+
* undefined **Required Permissions** \"tenant-management.tenants.update\"
|
|
271
|
+
* @param {SetSettingRequestDto} setSettingRequestDto
|
|
272
|
+
* @param {string} [authorization] Bearer Token
|
|
273
|
+
* @param {*} [options] Override http request option.
|
|
274
|
+
* @throws {RequiredError}
|
|
275
|
+
*/
|
|
276
|
+
setTenantSetting: function (setSettingRequestDto, authorization, options) {
|
|
277
|
+
return localVarFp.setTenantSetting(setSettingRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
278
|
+
},
|
|
201
279
|
};
|
|
202
280
|
};
|
|
203
281
|
exports.SettingsApiFactory = SettingsApiFactory;
|
|
@@ -224,6 +302,17 @@ var SettingsApi = /** @class */ (function (_super) {
|
|
|
224
302
|
var _this = this;
|
|
225
303
|
return (0, exports.SettingsApiFp)(this.configuration).getTenantSettings(requestParameters.keys, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
226
304
|
};
|
|
305
|
+
/**
|
|
306
|
+
* undefined **Required Permissions** \"tenant-management.tenants.update\"
|
|
307
|
+
* @param {SettingsApiSetTenantSettingRequest} requestParameters Request parameters.
|
|
308
|
+
* @param {*} [options] Override http request option.
|
|
309
|
+
* @throws {RequiredError}
|
|
310
|
+
* @memberof SettingsApi
|
|
311
|
+
*/
|
|
312
|
+
SettingsApi.prototype.setTenantSetting = function (requestParameters, options) {
|
|
313
|
+
var _this = this;
|
|
314
|
+
return (0, exports.SettingsApiFp)(this.configuration).setTenantSetting(requestParameters.setSettingRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
315
|
+
};
|
|
227
316
|
return SettingsApi;
|
|
228
317
|
}(base_1.BaseAPI));
|
|
229
318
|
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
|
+
|