@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
@@ -244,16 +244,16 @@ var InviteUsersApiAxiosParamCreator = function (configuration) {
244
244
  });
245
245
  },
246
246
  /**
247
- * 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\"
247
+ * 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\"
248
248
  * @summary List invited users
249
249
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
250
250
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
251
251
  * @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.
252
- * @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>
252
+ * @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>
253
253
  * @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
254
254
  * @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>
255
255
  * @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>
256
- * @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>
256
+ * @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>
257
257
  * @param {*} [options] Override http request option.
258
258
  * @throws {RequiredError}
259
259
  */
@@ -389,16 +389,16 @@ var InviteUsersApiFp = function (configuration) {
389
389
  });
390
390
  },
391
391
  /**
392
- * 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\"
392
+ * 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\"
393
393
  * @summary List invited users
394
394
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
395
395
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
396
396
  * @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.
397
- * @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>
397
+ * @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>
398
398
  * @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
399
399
  * @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>
400
400
  * @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>
401
- * @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>
401
+ * @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>
402
402
  * @param {*} [options] Override http request option.
403
403
  * @throws {RequiredError}
404
404
  */
@@ -459,16 +459,16 @@ var InviteUsersApiFactory = function (configuration, basePath, axios) {
459
459
  return localVarFp.inviteUsers(inviteUsersRequestDtoRest, authorization, options).then(function (request) { return request(axios, basePath); });
460
460
  },
461
461
  /**
462
- * 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\"
462
+ * 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\"
463
463
  * @summary List invited users
464
464
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
465
465
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
466
466
  * @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.
467
- * @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>
467
+ * @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>
468
468
  * @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
469
469
  * @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>
470
470
  * @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>
471
- * @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>
471
+ * @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>
472
472
  * @param {*} [options] Override http request option.
473
473
  * @throws {RequiredError}
474
474
  */
@@ -526,7 +526,7 @@ var InviteUsersApi = /** @class */ (function (_super) {
526
526
  return (0, exports.InviteUsersApiFp)(this.configuration).inviteUsers(requestParameters.inviteUsersRequestDtoRest, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
527
527
  };
528
528
  /**
529
- * 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\"
529
+ * 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\"
530
530
  * @summary List invited users
531
531
  * @param {InviteUsersApiListInvitesRequest} requestParameters Request parameters.
532
532
  * @param {*} [options] Override http request option.
@@ -13,6 +13,9 @@ 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';
18
+ import { SetUserSettingResponseClass } from '../models';
16
19
  /**
17
20
  * SettingsApi - axios parameter creator
18
21
  * @export
@@ -27,6 +30,30 @@ export declare const SettingsApiAxiosParamCreator: (configuration?: Configuratio
27
30
  * @throws {RequiredError}
28
31
  */
29
32
  getTenantSettings: (keys: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
33
+ /**
34
+ * undefined **Required Permissions** \"tenant-management.tenants.view\"
35
+ * @param {string} keys
36
+ * @param {string} [authorization] Bearer Token
37
+ * @param {*} [options] Override http request option.
38
+ * @throws {RequiredError}
39
+ */
40
+ getUserSettings: (keys: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
41
+ /**
42
+ * undefined **Required Permissions** \"tenant-management.tenants.update\"
43
+ * @param {SetSettingRequestDto} setSettingRequestDto
44
+ * @param {string} [authorization] Bearer Token
45
+ * @param {*} [options] Override http request option.
46
+ * @throws {RequiredError}
47
+ */
48
+ setTenantSetting: (setSettingRequestDto: SetSettingRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
49
+ /**
50
+ * undefined **Required Permissions** \"tenant-management.tenants.update\"
51
+ * @param {SetSettingRequestDto} setSettingRequestDto
52
+ * @param {string} [authorization] Bearer Token
53
+ * @param {*} [options] Override http request option.
54
+ * @throws {RequiredError}
55
+ */
56
+ setUserSetting: (setSettingRequestDto: SetSettingRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
30
57
  };
31
58
  /**
32
59
  * SettingsApi - functional programming interface
@@ -42,6 +69,30 @@ export declare const SettingsApiFp: (configuration?: Configuration) => {
42
69
  * @throws {RequiredError}
43
70
  */
44
71
  getTenantSettings(keys: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetSettingsResponseClass>>;
72
+ /**
73
+ * undefined **Required Permissions** \"tenant-management.tenants.view\"
74
+ * @param {string} keys
75
+ * @param {string} [authorization] Bearer Token
76
+ * @param {*} [options] Override http request option.
77
+ * @throws {RequiredError}
78
+ */
79
+ getUserSettings(keys: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetSettingsResponseClass>>;
80
+ /**
81
+ * undefined **Required Permissions** \"tenant-management.tenants.update\"
82
+ * @param {SetSettingRequestDto} setSettingRequestDto
83
+ * @param {string} [authorization] Bearer Token
84
+ * @param {*} [options] Override http request option.
85
+ * @throws {RequiredError}
86
+ */
87
+ setTenantSetting(setSettingRequestDto: SetSettingRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SetTenantSettingResponseClass>>;
88
+ /**
89
+ * undefined **Required Permissions** \"tenant-management.tenants.update\"
90
+ * @param {SetSettingRequestDto} setSettingRequestDto
91
+ * @param {string} [authorization] Bearer Token
92
+ * @param {*} [options] Override http request option.
93
+ * @throws {RequiredError}
94
+ */
95
+ setUserSetting(setSettingRequestDto: SetSettingRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SetUserSettingResponseClass>>;
45
96
  };
46
97
  /**
47
98
  * SettingsApi - factory interface
@@ -57,6 +108,30 @@ export declare const SettingsApiFactory: (configuration?: Configuration, basePat
57
108
  * @throws {RequiredError}
58
109
  */
59
110
  getTenantSettings(keys: string, authorization?: string, options?: any): AxiosPromise<GetSettingsResponseClass>;
111
+ /**
112
+ * undefined **Required Permissions** \"tenant-management.tenants.view\"
113
+ * @param {string} keys
114
+ * @param {string} [authorization] Bearer Token
115
+ * @param {*} [options] Override http request option.
116
+ * @throws {RequiredError}
117
+ */
118
+ getUserSettings(keys: string, authorization?: string, options?: any): AxiosPromise<GetSettingsResponseClass>;
119
+ /**
120
+ * undefined **Required Permissions** \"tenant-management.tenants.update\"
121
+ * @param {SetSettingRequestDto} setSettingRequestDto
122
+ * @param {string} [authorization] Bearer Token
123
+ * @param {*} [options] Override http request option.
124
+ * @throws {RequiredError}
125
+ */
126
+ setTenantSetting(setSettingRequestDto: SetSettingRequestDto, authorization?: string, options?: any): AxiosPromise<SetTenantSettingResponseClass>;
127
+ /**
128
+ * undefined **Required Permissions** \"tenant-management.tenants.update\"
129
+ * @param {SetSettingRequestDto} setSettingRequestDto
130
+ * @param {string} [authorization] Bearer Token
131
+ * @param {*} [options] Override http request option.
132
+ * @throws {RequiredError}
133
+ */
134
+ setUserSetting(setSettingRequestDto: SetSettingRequestDto, authorization?: string, options?: any): AxiosPromise<SetUserSettingResponseClass>;
60
135
  };
61
136
  /**
62
137
  * Request parameters for getTenantSettings operation in SettingsApi.
@@ -77,6 +152,63 @@ export interface SettingsApiGetTenantSettingsRequest {
77
152
  */
78
153
  readonly authorization?: string;
79
154
  }
155
+ /**
156
+ * Request parameters for getUserSettings operation in SettingsApi.
157
+ * @export
158
+ * @interface SettingsApiGetUserSettingsRequest
159
+ */
160
+ export interface SettingsApiGetUserSettingsRequest {
161
+ /**
162
+ *
163
+ * @type {string}
164
+ * @memberof SettingsApiGetUserSettings
165
+ */
166
+ readonly keys: string;
167
+ /**
168
+ * Bearer Token
169
+ * @type {string}
170
+ * @memberof SettingsApiGetUserSettings
171
+ */
172
+ readonly authorization?: string;
173
+ }
174
+ /**
175
+ * Request parameters for setTenantSetting operation in SettingsApi.
176
+ * @export
177
+ * @interface SettingsApiSetTenantSettingRequest
178
+ */
179
+ export interface SettingsApiSetTenantSettingRequest {
180
+ /**
181
+ *
182
+ * @type {SetSettingRequestDto}
183
+ * @memberof SettingsApiSetTenantSetting
184
+ */
185
+ readonly setSettingRequestDto: SetSettingRequestDto;
186
+ /**
187
+ * Bearer Token
188
+ * @type {string}
189
+ * @memberof SettingsApiSetTenantSetting
190
+ */
191
+ readonly authorization?: string;
192
+ }
193
+ /**
194
+ * Request parameters for setUserSetting operation in SettingsApi.
195
+ * @export
196
+ * @interface SettingsApiSetUserSettingRequest
197
+ */
198
+ export interface SettingsApiSetUserSettingRequest {
199
+ /**
200
+ *
201
+ * @type {SetSettingRequestDto}
202
+ * @memberof SettingsApiSetUserSetting
203
+ */
204
+ readonly setSettingRequestDto: SetSettingRequestDto;
205
+ /**
206
+ * Bearer Token
207
+ * @type {string}
208
+ * @memberof SettingsApiSetUserSetting
209
+ */
210
+ readonly authorization?: string;
211
+ }
80
212
  /**
81
213
  * SettingsApi - object-oriented interface
82
214
  * @export
@@ -93,4 +225,28 @@ export declare class SettingsApi extends BaseAPI {
93
225
  * @memberof SettingsApi
94
226
  */
95
227
  getTenantSettings(requestParameters: SettingsApiGetTenantSettingsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetSettingsResponseClass, any, {}>>;
228
+ /**
229
+ * undefined **Required Permissions** \"tenant-management.tenants.view\"
230
+ * @param {SettingsApiGetUserSettingsRequest} requestParameters Request parameters.
231
+ * @param {*} [options] Override http request option.
232
+ * @throws {RequiredError}
233
+ * @memberof SettingsApi
234
+ */
235
+ getUserSettings(requestParameters: SettingsApiGetUserSettingsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetSettingsResponseClass, any, {}>>;
236
+ /**
237
+ * undefined **Required Permissions** \"tenant-management.tenants.update\"
238
+ * @param {SettingsApiSetTenantSettingRequest} requestParameters Request parameters.
239
+ * @param {*} [options] Override http request option.
240
+ * @throws {RequiredError}
241
+ * @memberof SettingsApi
242
+ */
243
+ setTenantSetting(requestParameters: SettingsApiSetTenantSettingRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<SetTenantSettingResponseClass, any, {}>>;
244
+ /**
245
+ * undefined **Required Permissions** \"tenant-management.tenants.update\"
246
+ * @param {SettingsApiSetUserSettingRequest} requestParameters Request parameters.
247
+ * @param {*} [options] Override http request option.
248
+ * @throws {RequiredError}
249
+ * @memberof SettingsApi
250
+ */
251
+ setUserSetting(requestParameters: SettingsApiSetUserSettingRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<SetUserSettingResponseClass, any, {}>>;
96
252
  }
@@ -146,6 +146,151 @@ var SettingsApiAxiosParamCreator = function (configuration) {
146
146
  });
147
147
  });
148
148
  },
149
+ /**
150
+ * undefined **Required Permissions** \"tenant-management.tenants.view\"
151
+ * @param {string} keys
152
+ * @param {string} [authorization] Bearer Token
153
+ * @param {*} [options] Override http request option.
154
+ * @throws {RequiredError}
155
+ */
156
+ getUserSettings: function (keys, 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 'keys' is not null or undefined
164
+ (0, common_1.assertParamExists)('getUserSettings', 'keys', keys);
165
+ localVarPath = "/tenantservice/v1/settings/user";
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: 'GET' }, 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 (keys !== undefined) {
182
+ localVarQueryParameter['keys'] = keys;
183
+ }
184
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
185
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
186
+ }
187
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
188
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
189
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
190
+ return [2 /*return*/, {
191
+ url: (0, common_1.toPathString)(localVarUrlObj),
192
+ options: localVarRequestOptions,
193
+ }];
194
+ }
195
+ });
196
+ });
197
+ },
198
+ /**
199
+ * undefined **Required Permissions** \"tenant-management.tenants.update\"
200
+ * @param {SetSettingRequestDto} setSettingRequestDto
201
+ * @param {string} [authorization] Bearer Token
202
+ * @param {*} [options] Override http request option.
203
+ * @throws {RequiredError}
204
+ */
205
+ setTenantSetting: function (setSettingRequestDto, authorization, options) {
206
+ if (options === void 0) { options = {}; }
207
+ return __awaiter(_this, void 0, void 0, function () {
208
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
209
+ return __generator(this, function (_a) {
210
+ switch (_a.label) {
211
+ case 0:
212
+ // verify required parameter 'setSettingRequestDto' is not null or undefined
213
+ (0, common_1.assertParamExists)('setTenantSetting', 'setSettingRequestDto', setSettingRequestDto);
214
+ localVarPath = "/tenantservice/v1/settings/tenant";
215
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
216
+ if (configuration) {
217
+ baseOptions = configuration.baseOptions;
218
+ baseAccessToken = configuration.accessToken;
219
+ }
220
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
221
+ localVarHeaderParameter = {};
222
+ localVarQueryParameter = {};
223
+ // authentication bearer required
224
+ // http bearer authentication required
225
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
226
+ case 1:
227
+ // authentication bearer required
228
+ // http bearer authentication required
229
+ _a.sent();
230
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
231
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
232
+ }
233
+ localVarHeaderParameter['Content-Type'] = 'application/json';
234
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
235
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
236
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
237
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(setSettingRequestDto, localVarRequestOptions, configuration);
238
+ return [2 /*return*/, {
239
+ url: (0, common_1.toPathString)(localVarUrlObj),
240
+ options: localVarRequestOptions,
241
+ }];
242
+ }
243
+ });
244
+ });
245
+ },
246
+ /**
247
+ * undefined **Required Permissions** \"tenant-management.tenants.update\"
248
+ * @param {SetSettingRequestDto} setSettingRequestDto
249
+ * @param {string} [authorization] Bearer Token
250
+ * @param {*} [options] Override http request option.
251
+ * @throws {RequiredError}
252
+ */
253
+ setUserSetting: function (setSettingRequestDto, authorization, options) {
254
+ if (options === void 0) { options = {}; }
255
+ return __awaiter(_this, void 0, void 0, function () {
256
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
257
+ return __generator(this, function (_a) {
258
+ switch (_a.label) {
259
+ case 0:
260
+ // verify required parameter 'setSettingRequestDto' is not null or undefined
261
+ (0, common_1.assertParamExists)('setUserSetting', 'setSettingRequestDto', setSettingRequestDto);
262
+ localVarPath = "/tenantservice/v1/settings/user";
263
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
264
+ if (configuration) {
265
+ baseOptions = configuration.baseOptions;
266
+ baseAccessToken = configuration.accessToken;
267
+ }
268
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
269
+ localVarHeaderParameter = {};
270
+ localVarQueryParameter = {};
271
+ // authentication bearer required
272
+ // http bearer authentication required
273
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
274
+ case 1:
275
+ // authentication bearer required
276
+ // http bearer authentication required
277
+ _a.sent();
278
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
279
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
280
+ }
281
+ localVarHeaderParameter['Content-Type'] = 'application/json';
282
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
283
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
284
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
285
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(setSettingRequestDto, localVarRequestOptions, configuration);
286
+ return [2 /*return*/, {
287
+ url: (0, common_1.toPathString)(localVarUrlObj),
288
+ options: localVarRequestOptions,
289
+ }];
290
+ }
291
+ });
292
+ });
293
+ },
149
294
  };
150
295
  };
151
296
  exports.SettingsApiAxiosParamCreator = SettingsApiAxiosParamCreator;
@@ -177,6 +322,66 @@ var SettingsApiFp = function (configuration) {
177
322
  });
178
323
  });
179
324
  },
325
+ /**
326
+ * undefined **Required Permissions** \"tenant-management.tenants.view\"
327
+ * @param {string} keys
328
+ * @param {string} [authorization] Bearer Token
329
+ * @param {*} [options] Override http request option.
330
+ * @throws {RequiredError}
331
+ */
332
+ getUserSettings: function (keys, authorization, options) {
333
+ return __awaiter(this, void 0, void 0, function () {
334
+ var localVarAxiosArgs;
335
+ return __generator(this, function (_a) {
336
+ switch (_a.label) {
337
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getUserSettings(keys, authorization, options)];
338
+ case 1:
339
+ localVarAxiosArgs = _a.sent();
340
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
341
+ }
342
+ });
343
+ });
344
+ },
345
+ /**
346
+ * undefined **Required Permissions** \"tenant-management.tenants.update\"
347
+ * @param {SetSettingRequestDto} setSettingRequestDto
348
+ * @param {string} [authorization] Bearer Token
349
+ * @param {*} [options] Override http request option.
350
+ * @throws {RequiredError}
351
+ */
352
+ setTenantSetting: function (setSettingRequestDto, authorization, options) {
353
+ return __awaiter(this, void 0, void 0, function () {
354
+ var localVarAxiosArgs;
355
+ return __generator(this, function (_a) {
356
+ switch (_a.label) {
357
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.setTenantSetting(setSettingRequestDto, authorization, options)];
358
+ case 1:
359
+ localVarAxiosArgs = _a.sent();
360
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
361
+ }
362
+ });
363
+ });
364
+ },
365
+ /**
366
+ * undefined **Required Permissions** \"tenant-management.tenants.update\"
367
+ * @param {SetSettingRequestDto} setSettingRequestDto
368
+ * @param {string} [authorization] Bearer Token
369
+ * @param {*} [options] Override http request option.
370
+ * @throws {RequiredError}
371
+ */
372
+ setUserSetting: function (setSettingRequestDto, authorization, options) {
373
+ return __awaiter(this, void 0, void 0, function () {
374
+ var localVarAxiosArgs;
375
+ return __generator(this, function (_a) {
376
+ switch (_a.label) {
377
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.setUserSetting(setSettingRequestDto, authorization, options)];
378
+ case 1:
379
+ localVarAxiosArgs = _a.sent();
380
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
381
+ }
382
+ });
383
+ });
384
+ },
180
385
  };
181
386
  };
182
387
  exports.SettingsApiFp = SettingsApiFp;
@@ -198,6 +403,36 @@ var SettingsApiFactory = function (configuration, basePath, axios) {
198
403
  getTenantSettings: function (keys, authorization, options) {
199
404
  return localVarFp.getTenantSettings(keys, authorization, options).then(function (request) { return request(axios, basePath); });
200
405
  },
406
+ /**
407
+ * undefined **Required Permissions** \"tenant-management.tenants.view\"
408
+ * @param {string} keys
409
+ * @param {string} [authorization] Bearer Token
410
+ * @param {*} [options] Override http request option.
411
+ * @throws {RequiredError}
412
+ */
413
+ getUserSettings: function (keys, authorization, options) {
414
+ return localVarFp.getUserSettings(keys, authorization, options).then(function (request) { return request(axios, basePath); });
415
+ },
416
+ /**
417
+ * undefined **Required Permissions** \"tenant-management.tenants.update\"
418
+ * @param {SetSettingRequestDto} setSettingRequestDto
419
+ * @param {string} [authorization] Bearer Token
420
+ * @param {*} [options] Override http request option.
421
+ * @throws {RequiredError}
422
+ */
423
+ setTenantSetting: function (setSettingRequestDto, authorization, options) {
424
+ return localVarFp.setTenantSetting(setSettingRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
425
+ },
426
+ /**
427
+ * undefined **Required Permissions** \"tenant-management.tenants.update\"
428
+ * @param {SetSettingRequestDto} setSettingRequestDto
429
+ * @param {string} [authorization] Bearer Token
430
+ * @param {*} [options] Override http request option.
431
+ * @throws {RequiredError}
432
+ */
433
+ setUserSetting: function (setSettingRequestDto, authorization, options) {
434
+ return localVarFp.setUserSetting(setSettingRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
435
+ },
201
436
  };
202
437
  };
203
438
  exports.SettingsApiFactory = SettingsApiFactory;
@@ -224,6 +459,39 @@ var SettingsApi = /** @class */ (function (_super) {
224
459
  var _this = this;
225
460
  return (0, exports.SettingsApiFp)(this.configuration).getTenantSettings(requestParameters.keys, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
226
461
  };
462
+ /**
463
+ * undefined **Required Permissions** \"tenant-management.tenants.view\"
464
+ * @param {SettingsApiGetUserSettingsRequest} requestParameters Request parameters.
465
+ * @param {*} [options] Override http request option.
466
+ * @throws {RequiredError}
467
+ * @memberof SettingsApi
468
+ */
469
+ SettingsApi.prototype.getUserSettings = function (requestParameters, options) {
470
+ var _this = this;
471
+ return (0, exports.SettingsApiFp)(this.configuration).getUserSettings(requestParameters.keys, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
472
+ };
473
+ /**
474
+ * undefined **Required Permissions** \"tenant-management.tenants.update\"
475
+ * @param {SettingsApiSetTenantSettingRequest} requestParameters Request parameters.
476
+ * @param {*} [options] Override http request option.
477
+ * @throws {RequiredError}
478
+ * @memberof SettingsApi
479
+ */
480
+ SettingsApi.prototype.setTenantSetting = function (requestParameters, options) {
481
+ var _this = this;
482
+ return (0, exports.SettingsApiFp)(this.configuration).setTenantSetting(requestParameters.setSettingRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
483
+ };
484
+ /**
485
+ * undefined **Required Permissions** \"tenant-management.tenants.update\"
486
+ * @param {SettingsApiSetUserSettingRequest} requestParameters Request parameters.
487
+ * @param {*} [options] Override http request option.
488
+ * @throws {RequiredError}
489
+ * @memberof SettingsApi
490
+ */
491
+ SettingsApi.prototype.setUserSetting = function (requestParameters, options) {
492
+ var _this = this;
493
+ return (0, exports.SettingsApiFp)(this.configuration).setUserSetting(requestParameters.setSettingRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
494
+ };
227
495
  return SettingsApi;
228
496
  }(base_1.BaseAPI));
229
497
  exports.SettingsApi = SettingsApi;