@emilgroup/tenant-sdk-node 1.33.1-beta.8 → 1.34.1-beta.15

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.
Files changed (81) hide show
  1. package/.openapi-generator/FILES +18 -0
  2. package/README.md +2 -2
  3. package/api/invitation-controller-rest-api.ts +561 -0
  4. package/api/invite-users-api.ts +12 -12
  5. package/api/settings-api.ts +304 -0
  6. package/api/user-controller-rest-api.ts +1413 -0
  7. package/api/user-group-api.ts +1090 -0
  8. package/api/users-api.ts +12 -12
  9. package/api.ts +6 -0
  10. package/base.ts +1 -0
  11. package/dist/api/invitation-controller-rest-api.d.ts +315 -0
  12. package/dist/api/invitation-controller-rest-api.js +538 -0
  13. package/dist/api/invite-users-api.d.ts +12 -12
  14. package/dist/api/invite-users-api.js +10 -10
  15. package/dist/api/settings-api.d.ts +156 -0
  16. package/dist/api/settings-api.js +268 -0
  17. package/dist/api/user-controller-rest-api.d.ts +777 -0
  18. package/dist/api/user-controller-rest-api.js +1227 -0
  19. package/dist/api/user-group-api.d.ts +603 -0
  20. package/dist/api/user-group-api.js +940 -0
  21. package/dist/api/users-api.d.ts +12 -12
  22. package/dist/api/users-api.js +10 -10
  23. package/dist/api.d.ts +3 -0
  24. package/dist/api.js +3 -0
  25. package/dist/base.d.ts +2 -1
  26. package/dist/base.js +1 -0
  27. package/dist/models/add-users-to-group-request-dto.d.ts +24 -0
  28. package/dist/models/add-users-to-group-request-dto.js +15 -0
  29. package/dist/models/add-users-to-group-response-class.d.ts +25 -0
  30. package/dist/models/add-users-to-group-response-class.js +15 -0
  31. package/dist/models/create-user-group-request-dto.d.ts +36 -0
  32. package/dist/models/create-user-group-request-dto.js +15 -0
  33. package/dist/models/create-user-group-response-class.d.ts +25 -0
  34. package/dist/models/create-user-group-response-class.js +15 -0
  35. package/dist/models/get-settings-response-class.d.ts +5 -3
  36. package/dist/models/get-user-group-response-class.d.ts +25 -0
  37. package/dist/models/get-user-group-response-class.js +15 -0
  38. package/dist/models/index.d.ts +15 -0
  39. package/dist/models/index.js +15 -0
  40. package/dist/models/list-user-group-members-response-class.d.ts +43 -0
  41. package/dist/models/list-user-group-members-response-class.js +15 -0
  42. package/dist/models/list-user-groups-response-class.d.ts +43 -0
  43. package/dist/models/list-user-groups-response-class.js +15 -0
  44. package/dist/models/remove-users-from-group-request-dto.d.ts +24 -0
  45. package/dist/models/remove-users-from-group-request-dto.js +15 -0
  46. package/dist/models/set-setting-grpc-request-dto.d.ts +42 -0
  47. package/dist/models/set-setting-grpc-request-dto.js +15 -0
  48. package/dist/models/set-setting-request-dto.d.ts +6 -6
  49. package/dist/models/set-tenant-setting-response-class.d.ts +36 -0
  50. package/dist/models/set-tenant-setting-response-class.js +15 -0
  51. package/dist/models/set-user-setting-response-class.d.ts +36 -0
  52. package/dist/models/set-user-setting-response-class.js +15 -0
  53. package/dist/models/tenant-settings-class.d.ts +6 -0
  54. package/dist/models/update-user-group-request-dto.d.ts +36 -0
  55. package/dist/models/update-user-group-request-dto.js +15 -0
  56. package/dist/models/update-user-group-response-class.d.ts +25 -0
  57. package/dist/models/update-user-group-response-class.js +15 -0
  58. package/dist/models/user-group-class.d.ts +72 -0
  59. package/dist/models/user-group-class.js +15 -0
  60. package/dist/models/user-group-member-class.d.ts +42 -0
  61. package/dist/models/user-group-member-class.js +15 -0
  62. package/models/add-users-to-group-request-dto.ts +30 -0
  63. package/models/add-users-to-group-response-class.ts +31 -0
  64. package/models/create-user-group-request-dto.ts +42 -0
  65. package/models/create-user-group-response-class.ts +31 -0
  66. package/models/get-settings-response-class.ts +3 -3
  67. package/models/get-user-group-response-class.ts +31 -0
  68. package/models/index.ts +15 -0
  69. package/models/list-user-group-members-response-class.ts +49 -0
  70. package/models/list-user-groups-response-class.ts +49 -0
  71. package/models/remove-users-from-group-request-dto.ts +30 -0
  72. package/models/set-setting-grpc-request-dto.ts +48 -0
  73. package/models/set-setting-request-dto.ts +6 -6
  74. package/models/set-tenant-setting-response-class.ts +42 -0
  75. package/models/set-user-setting-response-class.ts +42 -0
  76. package/models/tenant-settings-class.ts +6 -0
  77. package/models/update-user-group-request-dto.ts +42 -0
  78. package/models/update-user-group-response-class.ts +31 -0
  79. package/models/user-group-class.ts +78 -0
  80. package/models/user-group-member-class.ts +48 -0
  81. package/package.json +2 -2
@@ -186,16 +186,16 @@ export const InviteUsersApiAxiosParamCreator = function (configuration?: Configu
186
186
  };
187
187
  },
188
188
  /**
189
- * Returns a list of invited users you have previously created. The invited users are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"tenant-management.users.view\"
189
+ * Returns a list of invited users you have previously created. The invited users are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"tenant-management.users.view\"
190
190
  * @summary List invited users
191
191
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
192
192
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
193
193
  * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
194
- * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, email, token, organizationId, ern, partnerCode</i>
194
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, email, token, organizationId, ern, partnerCode</i>
195
195
  * @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
196
196
  * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, email, expiresOn</i>
197
197
  * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: organizations<i>
198
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, email, token, organizationId, ern, partnerCode</i>
198
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, email, token, organizationId, ern, partnerCode</i>
199
199
  * @param {*} [options] Override http request option.
200
200
  * @throws {RequiredError}
201
201
  */
@@ -308,16 +308,16 @@ export const InviteUsersApiFp = function(configuration?: Configuration) {
308
308
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
309
309
  },
310
310
  /**
311
- * Returns a list of invited users you have previously created. The invited users are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"tenant-management.users.view\"
311
+ * Returns a list of invited users you have previously created. The invited users are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"tenant-management.users.view\"
312
312
  * @summary List invited users
313
313
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
314
314
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
315
315
  * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
316
- * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, email, token, organizationId, ern, partnerCode</i>
316
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, email, token, organizationId, ern, partnerCode</i>
317
317
  * @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
318
318
  * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, email, expiresOn</i>
319
319
  * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: organizations<i>
320
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, email, token, organizationId, ern, partnerCode</i>
320
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, email, token, organizationId, ern, partnerCode</i>
321
321
  * @param {*} [options] Override http request option.
322
322
  * @throws {RequiredError}
323
323
  */
@@ -369,16 +369,16 @@ export const InviteUsersApiFactory = function (configuration?: Configuration, ba
369
369
  return localVarFp.inviteUsers(inviteUsersRequestDtoRest, authorization, options).then((request) => request(axios, basePath));
370
370
  },
371
371
  /**
372
- * Returns a list of invited users you have previously created. The invited users are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"tenant-management.users.view\"
372
+ * Returns a list of invited users you have previously created. The invited users are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"tenant-management.users.view\"
373
373
  * @summary List invited users
374
374
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
375
375
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
376
376
  * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
377
- * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, email, token, organizationId, ern, partnerCode</i>
377
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, email, token, organizationId, ern, partnerCode</i>
378
378
  * @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
379
379
  * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, email, expiresOn</i>
380
380
  * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: organizations<i>
381
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, email, token, organizationId, ern, partnerCode</i>
381
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, email, token, organizationId, ern, partnerCode</i>
382
382
  * @param {*} [options] Override http request option.
383
383
  * @throws {RequiredError}
384
384
  */
@@ -479,7 +479,7 @@ export interface InviteUsersApiListInvitesRequest {
479
479
  readonly pageToken?: string
480
480
 
481
481
  /**
482
- * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, email, token, organizationId, ern, partnerCode</i>
482
+ * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, email, token, organizationId, ern, partnerCode</i>
483
483
  * @type {string}
484
484
  * @memberof InviteUsersApiListInvites
485
485
  */
@@ -507,7 +507,7 @@ export interface InviteUsersApiListInvitesRequest {
507
507
  readonly expand?: string
508
508
 
509
509
  /**
510
- * Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, email, token, organizationId, ern, partnerCode</i>
510
+ * Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, email, token, organizationId, ern, partnerCode</i>
511
511
  * @type {string}
512
512
  * @memberof InviteUsersApiListInvites
513
513
  */
@@ -558,7 +558,7 @@ export class InviteUsersApi extends BaseAPI {
558
558
  }
559
559
 
560
560
  /**
561
- * Returns a list of invited users you have previously created. The invited users are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"tenant-management.users.view\"
561
+ * Returns a list of invited users you have previously created. The invited users are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"tenant-management.users.view\"
562
562
  * @summary List invited users
563
563
  * @param {InviteUsersApiListInvitesRequest} requestParameters Request parameters.
564
564
  * @param {*} [options] Override http request option.
@@ -22,6 +22,12 @@ 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';
29
+ // @ts-ignore
30
+ import { SetUserSettingResponseClass } from '../models';
25
31
  // URLSearchParams not necessarily used
26
32
  // @ts-ignore
27
33
  import { URL, URLSearchParams } from 'url';
@@ -75,6 +81,145 @@ export const SettingsApiAxiosParamCreator = function (configuration?: Configurat
75
81
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
76
82
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
77
83
 
84
+ return {
85
+ url: toPathString(localVarUrlObj),
86
+ options: localVarRequestOptions,
87
+ };
88
+ },
89
+ /**
90
+ * undefined **Required Permissions** \"tenant-management.tenants.view\"
91
+ * @param {string} keys
92
+ * @param {string} [authorization] Bearer Token
93
+ * @param {*} [options] Override http request option.
94
+ * @throws {RequiredError}
95
+ */
96
+ getUserSettings: async (keys: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
97
+ // verify required parameter 'keys' is not null or undefined
98
+ assertParamExists('getUserSettings', 'keys', keys)
99
+ const localVarPath = `/tenantservice/v1/settings/user`;
100
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
101
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
102
+ let baseOptions;
103
+ let baseAccessToken;
104
+ if (configuration) {
105
+ baseOptions = configuration.baseOptions;
106
+ baseAccessToken = configuration.accessToken;
107
+ }
108
+
109
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
110
+ const localVarHeaderParameter = {} as any;
111
+ const localVarQueryParameter = {} as any;
112
+
113
+ // authentication bearer required
114
+ // http bearer authentication required
115
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
116
+
117
+ if (keys !== undefined) {
118
+ localVarQueryParameter['keys'] = keys;
119
+ }
120
+
121
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
122
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
123
+ }
124
+
125
+
126
+
127
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
128
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
129
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
130
+
131
+ return {
132
+ url: toPathString(localVarUrlObj),
133
+ options: localVarRequestOptions,
134
+ };
135
+ },
136
+ /**
137
+ * undefined **Required Permissions** \"tenant-management.tenants.update\"
138
+ * @param {SetSettingRequestDto} setSettingRequestDto
139
+ * @param {string} [authorization] Bearer Token
140
+ * @param {*} [options] Override http request option.
141
+ * @throws {RequiredError}
142
+ */
143
+ setTenantSetting: async (setSettingRequestDto: SetSettingRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
144
+ // verify required parameter 'setSettingRequestDto' is not null or undefined
145
+ assertParamExists('setTenantSetting', 'setSettingRequestDto', setSettingRequestDto)
146
+ const localVarPath = `/tenantservice/v1/settings/tenant`;
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: 'POST', ...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(setSettingRequestDto, localVarRequestOptions, configuration)
176
+
177
+ return {
178
+ url: toPathString(localVarUrlObj),
179
+ options: localVarRequestOptions,
180
+ };
181
+ },
182
+ /**
183
+ * undefined **Required Permissions** \"tenant-management.tenants.update\"
184
+ * @param {SetSettingRequestDto} setSettingRequestDto
185
+ * @param {string} [authorization] Bearer Token
186
+ * @param {*} [options] Override http request option.
187
+ * @throws {RequiredError}
188
+ */
189
+ setUserSetting: async (setSettingRequestDto: SetSettingRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
190
+ // verify required parameter 'setSettingRequestDto' is not null or undefined
191
+ assertParamExists('setUserSetting', 'setSettingRequestDto', setSettingRequestDto)
192
+ const localVarPath = `/tenantservice/v1/settings/user`;
193
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
194
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
195
+ let baseOptions;
196
+ let baseAccessToken;
197
+ if (configuration) {
198
+ baseOptions = configuration.baseOptions;
199
+ baseAccessToken = configuration.accessToken;
200
+ }
201
+
202
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
203
+ const localVarHeaderParameter = {} as any;
204
+ const localVarQueryParameter = {} as any;
205
+
206
+ // authentication bearer required
207
+ // http bearer authentication required
208
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
209
+
210
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
211
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
212
+ }
213
+
214
+
215
+
216
+ localVarHeaderParameter['Content-Type'] = 'application/json';
217
+
218
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
219
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
220
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
221
+ localVarRequestOptions.data = serializeDataIfNeeded(setSettingRequestDto, localVarRequestOptions, configuration)
222
+
78
223
  return {
79
224
  url: toPathString(localVarUrlObj),
80
225
  options: localVarRequestOptions,
@@ -102,6 +247,39 @@ export const SettingsApiFp = function(configuration?: Configuration) {
102
247
  const localVarAxiosArgs = await localVarAxiosParamCreator.getTenantSettings(keys, authorization, options);
103
248
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
104
249
  },
250
+ /**
251
+ * undefined **Required Permissions** \"tenant-management.tenants.view\"
252
+ * @param {string} keys
253
+ * @param {string} [authorization] Bearer Token
254
+ * @param {*} [options] Override http request option.
255
+ * @throws {RequiredError}
256
+ */
257
+ async getUserSettings(keys: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetSettingsResponseClass>> {
258
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getUserSettings(keys, authorization, options);
259
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
260
+ },
261
+ /**
262
+ * undefined **Required Permissions** \"tenant-management.tenants.update\"
263
+ * @param {SetSettingRequestDto} setSettingRequestDto
264
+ * @param {string} [authorization] Bearer Token
265
+ * @param {*} [options] Override http request option.
266
+ * @throws {RequiredError}
267
+ */
268
+ async setTenantSetting(setSettingRequestDto: SetSettingRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SetTenantSettingResponseClass>> {
269
+ const localVarAxiosArgs = await localVarAxiosParamCreator.setTenantSetting(setSettingRequestDto, authorization, options);
270
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
271
+ },
272
+ /**
273
+ * undefined **Required Permissions** \"tenant-management.tenants.update\"
274
+ * @param {SetSettingRequestDto} setSettingRequestDto
275
+ * @param {string} [authorization] Bearer Token
276
+ * @param {*} [options] Override http request option.
277
+ * @throws {RequiredError}
278
+ */
279
+ async setUserSetting(setSettingRequestDto: SetSettingRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SetUserSettingResponseClass>> {
280
+ const localVarAxiosArgs = await localVarAxiosParamCreator.setUserSetting(setSettingRequestDto, authorization, options);
281
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
282
+ },
105
283
  }
106
284
  };
107
285
 
@@ -123,6 +301,36 @@ export const SettingsApiFactory = function (configuration?: Configuration, baseP
123
301
  getTenantSettings(keys: string, authorization?: string, options?: any): AxiosPromise<GetSettingsResponseClass> {
124
302
  return localVarFp.getTenantSettings(keys, authorization, options).then((request) => request(axios, basePath));
125
303
  },
304
+ /**
305
+ * undefined **Required Permissions** \"tenant-management.tenants.view\"
306
+ * @param {string} keys
307
+ * @param {string} [authorization] Bearer Token
308
+ * @param {*} [options] Override http request option.
309
+ * @throws {RequiredError}
310
+ */
311
+ getUserSettings(keys: string, authorization?: string, options?: any): AxiosPromise<GetSettingsResponseClass> {
312
+ return localVarFp.getUserSettings(keys, authorization, options).then((request) => request(axios, basePath));
313
+ },
314
+ /**
315
+ * undefined **Required Permissions** \"tenant-management.tenants.update\"
316
+ * @param {SetSettingRequestDto} setSettingRequestDto
317
+ * @param {string} [authorization] Bearer Token
318
+ * @param {*} [options] Override http request option.
319
+ * @throws {RequiredError}
320
+ */
321
+ setTenantSetting(setSettingRequestDto: SetSettingRequestDto, authorization?: string, options?: any): AxiosPromise<SetTenantSettingResponseClass> {
322
+ return localVarFp.setTenantSetting(setSettingRequestDto, authorization, options).then((request) => request(axios, basePath));
323
+ },
324
+ /**
325
+ * undefined **Required Permissions** \"tenant-management.tenants.update\"
326
+ * @param {SetSettingRequestDto} setSettingRequestDto
327
+ * @param {string} [authorization] Bearer Token
328
+ * @param {*} [options] Override http request option.
329
+ * @throws {RequiredError}
330
+ */
331
+ setUserSetting(setSettingRequestDto: SetSettingRequestDto, authorization?: string, options?: any): AxiosPromise<SetUserSettingResponseClass> {
332
+ return localVarFp.setUserSetting(setSettingRequestDto, authorization, options).then((request) => request(axios, basePath));
333
+ },
126
334
  };
127
335
  };
128
336
 
@@ -147,6 +355,69 @@ export interface SettingsApiGetTenantSettingsRequest {
147
355
  readonly authorization?: string
148
356
  }
149
357
 
358
+ /**
359
+ * Request parameters for getUserSettings operation in SettingsApi.
360
+ * @export
361
+ * @interface SettingsApiGetUserSettingsRequest
362
+ */
363
+ export interface SettingsApiGetUserSettingsRequest {
364
+ /**
365
+ *
366
+ * @type {string}
367
+ * @memberof SettingsApiGetUserSettings
368
+ */
369
+ readonly keys: string
370
+
371
+ /**
372
+ * Bearer Token
373
+ * @type {string}
374
+ * @memberof SettingsApiGetUserSettings
375
+ */
376
+ readonly authorization?: string
377
+ }
378
+
379
+ /**
380
+ * Request parameters for setTenantSetting operation in SettingsApi.
381
+ * @export
382
+ * @interface SettingsApiSetTenantSettingRequest
383
+ */
384
+ export interface SettingsApiSetTenantSettingRequest {
385
+ /**
386
+ *
387
+ * @type {SetSettingRequestDto}
388
+ * @memberof SettingsApiSetTenantSetting
389
+ */
390
+ readonly setSettingRequestDto: SetSettingRequestDto
391
+
392
+ /**
393
+ * Bearer Token
394
+ * @type {string}
395
+ * @memberof SettingsApiSetTenantSetting
396
+ */
397
+ readonly authorization?: string
398
+ }
399
+
400
+ /**
401
+ * Request parameters for setUserSetting operation in SettingsApi.
402
+ * @export
403
+ * @interface SettingsApiSetUserSettingRequest
404
+ */
405
+ export interface SettingsApiSetUserSettingRequest {
406
+ /**
407
+ *
408
+ * @type {SetSettingRequestDto}
409
+ * @memberof SettingsApiSetUserSetting
410
+ */
411
+ readonly setSettingRequestDto: SetSettingRequestDto
412
+
413
+ /**
414
+ * Bearer Token
415
+ * @type {string}
416
+ * @memberof SettingsApiSetUserSetting
417
+ */
418
+ readonly authorization?: string
419
+ }
420
+
150
421
  /**
151
422
  * SettingsApi - object-oriented interface
152
423
  * @export
@@ -165,4 +436,37 @@ export class SettingsApi extends BaseAPI {
165
436
  public getTenantSettings(requestParameters: SettingsApiGetTenantSettingsRequest, options?: AxiosRequestConfig) {
166
437
  return SettingsApiFp(this.configuration).getTenantSettings(requestParameters.keys, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
167
438
  }
439
+
440
+ /**
441
+ * undefined **Required Permissions** \"tenant-management.tenants.view\"
442
+ * @param {SettingsApiGetUserSettingsRequest} requestParameters Request parameters.
443
+ * @param {*} [options] Override http request option.
444
+ * @throws {RequiredError}
445
+ * @memberof SettingsApi
446
+ */
447
+ public getUserSettings(requestParameters: SettingsApiGetUserSettingsRequest, options?: AxiosRequestConfig) {
448
+ return SettingsApiFp(this.configuration).getUserSettings(requestParameters.keys, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
449
+ }
450
+
451
+ /**
452
+ * undefined **Required Permissions** \"tenant-management.tenants.update\"
453
+ * @param {SettingsApiSetTenantSettingRequest} requestParameters Request parameters.
454
+ * @param {*} [options] Override http request option.
455
+ * @throws {RequiredError}
456
+ * @memberof SettingsApi
457
+ */
458
+ public setTenantSetting(requestParameters: SettingsApiSetTenantSettingRequest, options?: AxiosRequestConfig) {
459
+ return SettingsApiFp(this.configuration).setTenantSetting(requestParameters.setSettingRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
460
+ }
461
+
462
+ /**
463
+ * undefined **Required Permissions** \"tenant-management.tenants.update\"
464
+ * @param {SettingsApiSetUserSettingRequest} requestParameters Request parameters.
465
+ * @param {*} [options] Override http request option.
466
+ * @throws {RequiredError}
467
+ * @memberof SettingsApi
468
+ */
469
+ public setUserSetting(requestParameters: SettingsApiSetUserSettingRequest, options?: AxiosRequestConfig) {
470
+ return SettingsApiFp(this.configuration).setUserSetting(requestParameters.setSettingRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
471
+ }
168
472
  }