@emilgroup/tenant-sdk 1.42.1-beta.13 → 1.42.1-beta.131
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 +33 -0
- package/README.md +2 -2
- package/api/custom-schema-api.ts +32 -12
- package/api/dashboard-api.ts +96 -36
- package/api/dashboard-group-api.ts +40 -15
- package/api/data-report-api.ts +32 -12
- package/api/data-report-executor-api.ts +8 -3
- package/api/delete-organization-invitations-api.ts +8 -3
- package/api/health-check-api.ts +1 -1
- package/api/invitation-controller-rest-api.ts +32 -12
- package/api/invite-organizations-api.ts +8 -3
- package/api/invite-users-api.ts +40 -20
- package/api/list-organization-invitations-api.ts +8 -3
- package/api/organization-migration-api.ts +40 -15
- package/api/organizations-api.ts +24 -9
- package/api/re-invite-an-organization-api.ts +8 -3
- package/api/report-schedule-api.ts +40 -15
- package/api/report-schedule-logs-api.ts +8 -3
- package/api/roles-api.ts +8 -3
- package/api/settings-api.ts +32 -12
- package/api/ssoconnection-api.ts +824 -0
- package/api/ssoid-pgroups-api.ts +829 -0
- package/api/user-controller-rest-api.ts +116 -57
- package/api/user-group-api.ts +64 -24
- package/api/users-api.ts +76 -37
- package/api.ts +4 -0
- package/base.ts +239 -43
- package/common.ts +3 -2
- package/configuration.ts +20 -0
- package/dist/api/custom-schema-api.d.ts +4 -4
- package/dist/api/custom-schema-api.js +52 -30
- package/dist/api/dashboard-api.d.ts +12 -12
- package/dist/api/dashboard-api.js +176 -95
- package/dist/api/dashboard-group-api.d.ts +5 -5
- package/dist/api/dashboard-group-api.js +71 -39
- package/dist/api/data-report-api.d.ts +4 -4
- package/dist/api/data-report-api.js +52 -30
- package/dist/api/data-report-executor-api.d.ts +1 -1
- package/dist/api/data-report-executor-api.js +15 -8
- package/dist/api/delete-organization-invitations-api.d.ts +1 -1
- package/dist/api/delete-organization-invitations-api.js +15 -8
- package/dist/api/health-check-api.d.ts +1 -1
- package/dist/api/health-check-api.js +1 -1
- package/dist/api/invitation-controller-rest-api.d.ts +4 -4
- package/dist/api/invitation-controller-rest-api.js +56 -31
- package/dist/api/invite-organizations-api.d.ts +1 -1
- package/dist/api/invite-organizations-api.js +15 -8
- package/dist/api/invite-users-api.d.ts +12 -12
- package/dist/api/invite-users-api.js +62 -37
- package/dist/api/list-organization-invitations-api.d.ts +1 -1
- package/dist/api/list-organization-invitations-api.js +11 -7
- package/dist/api/organization-migration-api.d.ts +5 -5
- package/dist/api/organization-migration-api.js +67 -38
- package/dist/api/organizations-api.d.ts +3 -3
- package/dist/api/organizations-api.js +41 -23
- package/dist/api/re-invite-an-organization-api.d.ts +1 -1
- package/dist/api/re-invite-an-organization-api.js +15 -8
- package/dist/api/report-schedule-api.d.ts +5 -5
- package/dist/api/report-schedule-api.js +67 -38
- package/dist/api/report-schedule-logs-api.d.ts +1 -1
- package/dist/api/report-schedule-logs-api.js +11 -7
- package/dist/api/roles-api.d.ts +1 -1
- package/dist/api/roles-api.js +11 -7
- package/dist/api/settings-api.d.ts +4 -4
- package/dist/api/settings-api.js +52 -30
- package/dist/api/ssoconnection-api.d.ts +434 -0
- package/dist/api/ssoconnection-api.js +829 -0
- package/dist/api/ssoid-pgroups-api.d.ts +451 -0
- package/dist/api/ssoid-pgroups-api.js +774 -0
- package/dist/api/user-controller-rest-api.d.ts +39 -35
- package/dist/api/user-controller-rest-api.js +177 -105
- package/dist/api/user-group-api.d.ts +8 -8
- package/dist/api/user-group-api.js +112 -62
- package/dist/api/users-api.d.ts +27 -23
- package/dist/api/users-api.js +115 -68
- package/dist/api.d.ts +2 -0
- package/dist/api.js +2 -0
- package/dist/base.d.ts +26 -0
- package/dist/base.js +243 -60
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -0
- package/dist/configuration.d.ts +17 -0
- package/dist/configuration.js +2 -0
- package/dist/models/admin-initial-tenant-config-dto.d.ts +4 -2
- package/dist/models/create-admin-tenant-request-dto.d.ts +11 -0
- package/dist/models/create-admin-tenant-request-dto.js +5 -0
- package/dist/models/create-sso-connection-request-dto.d.ts +67 -0
- package/dist/models/create-sso-connection-request-dto.js +24 -0
- package/dist/models/create-sso-connection-response-class.d.ts +25 -0
- package/dist/models/create-sso-connection-response-class.js +15 -0
- package/dist/models/create-sso-idp-group-request-dto.d.ts +37 -0
- package/dist/models/create-sso-idp-group-request-dto.js +15 -0
- package/dist/models/create-sso-idp-group-response-class.d.ts +25 -0
- package/dist/models/create-sso-idp-group-response-class.js +15 -0
- package/dist/models/create-tenant-request-dto.d.ts +11 -0
- package/dist/models/create-tenant-request-dto.js +5 -0
- package/dist/models/custom-field-dto.d.ts +8 -4
- package/dist/models/delete-by-code-response-class.d.ts +24 -0
- package/dist/models/delete-by-code-response-class.js +15 -0
- package/dist/models/get-sso-connection-response-class.d.ts +25 -0
- package/dist/models/get-sso-connection-response-class.js +15 -0
- package/dist/models/get-sso-connection-setup-response-class.d.ts +25 -0
- package/dist/models/get-sso-connection-setup-response-class.js +15 -0
- package/dist/models/get-sso-idp-group-response-class.d.ts +25 -0
- package/dist/models/get-sso-idp-group-response-class.js +15 -0
- package/dist/models/index.d.ts +31 -0
- package/dist/models/index.js +31 -0
- package/dist/models/invite-class.d.ts +6 -0
- package/dist/models/list-sso-idp-groups-response-class.d.ts +43 -0
- package/dist/models/list-sso-idp-groups-response-class.js +15 -0
- package/dist/models/oidc-sso-details-input-dto.d.ts +42 -0
- package/dist/models/oidc-sso-details-input-dto.js +15 -0
- package/dist/models/oidc-sso-details-update-dto.d.ts +42 -0
- package/dist/models/oidc-sso-details-update-dto.js +15 -0
- package/dist/models/oidc-sso-setup-class.d.ts +37 -0
- package/dist/models/oidc-sso-setup-class.js +15 -0
- package/dist/models/org-invitation-class.d.ts +6 -0
- package/dist/models/role-class.d.ts +7 -0
- package/dist/models/role-source-class.d.ts +35 -0
- package/dist/models/role-source-class.js +20 -0
- package/dist/models/saml-sso-details-dto.d.ts +24 -0
- package/dist/models/saml-sso-details-dto.js +15 -0
- package/dist/models/saml-sso-setup-class.d.ts +37 -0
- package/dist/models/saml-sso-setup-class.js +15 -0
- package/dist/models/shared-oidc-sso-details-class.d.ts +42 -0
- package/dist/models/shared-oidc-sso-details-class.js +15 -0
- package/dist/models/shared-saml-sso-details-class.d.ts +24 -0
- package/dist/models/shared-saml-sso-details-class.js +15 -0
- package/dist/models/shared-sso-attribute-mapping-class.d.ts +30 -0
- package/dist/models/shared-sso-attribute-mapping-class.js +15 -0
- package/dist/models/sso-attribute-mapping-dto.d.ts +30 -0
- package/dist/models/sso-attribute-mapping-dto.js +15 -0
- package/dist/models/sso-attribute-mapping-template-class.d.ts +36 -0
- package/dist/models/sso-attribute-mapping-template-class.js +15 -0
- package/dist/models/sso-connection-class.d.ts +103 -0
- package/dist/models/sso-connection-class.js +24 -0
- package/dist/models/sso-connection-setup-class.d.ts +32 -0
- package/dist/models/sso-connection-setup-class.js +15 -0
- package/dist/models/sso-idp-group-class.d.ts +73 -0
- package/dist/models/sso-idp-group-class.js +15 -0
- package/dist/models/update-sso-connection-body-dto.d.ts +45 -0
- package/dist/models/update-sso-connection-body-dto.js +15 -0
- package/dist/models/update-sso-connection-response-class.d.ts +25 -0
- package/dist/models/update-sso-connection-response-class.js +15 -0
- package/dist/models/update-sso-connection-status-body-dto.d.ts +24 -0
- package/dist/models/update-sso-connection-status-body-dto.js +15 -0
- package/dist/models/update-sso-connection-status-response-class.d.ts +25 -0
- package/dist/models/update-sso-connection-status-response-class.js +15 -0
- package/dist/models/update-sso-idp-group-body-dto.d.ts +31 -0
- package/dist/models/update-sso-idp-group-body-dto.js +15 -0
- package/dist/models/update-sso-idp-group-response-class.d.ts +25 -0
- package/dist/models/update-sso-idp-group-response-class.js +15 -0
- package/dist/models/update-sso-idp-group-status-body-dto.d.ts +24 -0
- package/dist/models/update-sso-idp-group-status-body-dto.js +15 -0
- package/dist/models/update-sso-idp-group-status-response-class.d.ts +25 -0
- package/dist/models/update-sso-idp-group-status-response-class.js +15 -0
- package/dist/models/user-class.d.ts +7 -0
- package/models/admin-initial-tenant-config-dto.ts +2 -2
- package/models/create-admin-tenant-request-dto.ts +14 -0
- package/models/create-sso-connection-request-dto.ts +77 -0
- package/models/create-sso-connection-response-class.ts +31 -0
- package/models/create-sso-idp-group-request-dto.ts +43 -0
- package/models/create-sso-idp-group-response-class.ts +31 -0
- package/models/create-tenant-request-dto.ts +14 -0
- package/models/custom-field-dto.ts +4 -4
- package/models/delete-by-code-response-class.ts +30 -0
- package/models/get-sso-connection-response-class.ts +31 -0
- package/models/get-sso-connection-setup-response-class.ts +31 -0
- package/models/get-sso-idp-group-response-class.ts +31 -0
- package/models/index.ts +31 -0
- package/models/invite-class.ts +6 -0
- package/models/list-sso-idp-groups-response-class.ts +49 -0
- package/models/oidc-sso-details-input-dto.ts +48 -0
- package/models/oidc-sso-details-update-dto.ts +48 -0
- package/models/oidc-sso-setup-class.ts +43 -0
- package/models/org-invitation-class.ts +6 -0
- package/models/role-class.ts +7 -0
- package/models/role-source-class.ts +44 -0
- package/models/saml-sso-details-dto.ts +30 -0
- package/models/saml-sso-setup-class.ts +43 -0
- package/models/shared-oidc-sso-details-class.ts +48 -0
- package/models/shared-saml-sso-details-class.ts +30 -0
- package/models/shared-sso-attribute-mapping-class.ts +36 -0
- package/models/sso-attribute-mapping-dto.ts +36 -0
- package/models/sso-attribute-mapping-template-class.ts +42 -0
- package/models/sso-connection-class.ts +113 -0
- package/models/sso-connection-setup-class.ts +38 -0
- package/models/sso-idp-group-class.ts +79 -0
- package/models/update-sso-connection-body-dto.ts +51 -0
- package/models/update-sso-connection-response-class.ts +31 -0
- package/models/update-sso-connection-status-body-dto.ts +30 -0
- package/models/update-sso-connection-status-response-class.ts +31 -0
- package/models/update-sso-idp-group-body-dto.ts +37 -0
- package/models/update-sso-idp-group-response-class.ts +31 -0
- package/models/update-sso-idp-group-status-body-dto.ts +30 -0
- package/models/update-sso-idp-group-status-response-class.ts +31 -0
- package/models/user-class.ts +7 -0
- package/package.json +2 -2
|
@@ -103,9 +103,10 @@ var InviteUsersApiAxiosParamCreator = function (configuration) {
|
|
|
103
103
|
deleteInvites: function (batchDeleteRequestDto, authorization, options) {
|
|
104
104
|
if (options === void 0) { options = {}; }
|
|
105
105
|
return __awaiter(_this, void 0, void 0, function () {
|
|
106
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
107
|
-
|
|
108
|
-
|
|
106
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
107
|
+
var _a;
|
|
108
|
+
return __generator(this, function (_b) {
|
|
109
|
+
switch (_b.label) {
|
|
109
110
|
case 0:
|
|
110
111
|
// verify required parameter 'batchDeleteRequestDto' is not null or undefined
|
|
111
112
|
(0, common_1.assertParamExists)('deleteInvites', 'batchDeleteRequestDto', batchDeleteRequestDto);
|
|
@@ -120,13 +121,19 @@ var InviteUsersApiAxiosParamCreator = function (configuration) {
|
|
|
120
121
|
localVarQueryParameter = {};
|
|
121
122
|
// authentication bearer required
|
|
122
123
|
// http bearer authentication required
|
|
123
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
124
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
125
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
126
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
127
|
+
];
|
|
124
128
|
case 1:
|
|
125
129
|
// authentication bearer required
|
|
126
130
|
// http bearer authentication required
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
131
|
+
_b.sent();
|
|
132
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
133
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
134
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
135
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
136
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
130
137
|
}
|
|
131
138
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
132
139
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -152,9 +159,10 @@ var InviteUsersApiAxiosParamCreator = function (configuration) {
|
|
|
152
159
|
inviteUser: function (inviteUserRequestDtoRest, authorization, options) {
|
|
153
160
|
if (options === void 0) { options = {}; }
|
|
154
161
|
return __awaiter(_this, void 0, void 0, function () {
|
|
155
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
156
|
-
|
|
157
|
-
|
|
162
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
163
|
+
var _a;
|
|
164
|
+
return __generator(this, function (_b) {
|
|
165
|
+
switch (_b.label) {
|
|
158
166
|
case 0:
|
|
159
167
|
// verify required parameter 'inviteUserRequestDtoRest' is not null or undefined
|
|
160
168
|
(0, common_1.assertParamExists)('inviteUser', 'inviteUserRequestDtoRest', inviteUserRequestDtoRest);
|
|
@@ -169,13 +177,19 @@ var InviteUsersApiAxiosParamCreator = function (configuration) {
|
|
|
169
177
|
localVarQueryParameter = {};
|
|
170
178
|
// authentication bearer required
|
|
171
179
|
// http bearer authentication required
|
|
172
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
180
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
181
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
182
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
183
|
+
];
|
|
173
184
|
case 1:
|
|
174
185
|
// authentication bearer required
|
|
175
186
|
// http bearer authentication required
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
187
|
+
_b.sent();
|
|
188
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
189
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
190
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
191
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
192
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
179
193
|
}
|
|
180
194
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
181
195
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -201,9 +215,10 @@ var InviteUsersApiAxiosParamCreator = function (configuration) {
|
|
|
201
215
|
inviteUsers: function (inviteUsersRequestDtoRest, authorization, options) {
|
|
202
216
|
if (options === void 0) { options = {}; }
|
|
203
217
|
return __awaiter(_this, void 0, void 0, function () {
|
|
204
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
205
|
-
|
|
206
|
-
|
|
218
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
219
|
+
var _a;
|
|
220
|
+
return __generator(this, function (_b) {
|
|
221
|
+
switch (_b.label) {
|
|
207
222
|
case 0:
|
|
208
223
|
// verify required parameter 'inviteUsersRequestDtoRest' is not null or undefined
|
|
209
224
|
(0, common_1.assertParamExists)('inviteUsers', 'inviteUsersRequestDtoRest', inviteUsersRequestDtoRest);
|
|
@@ -218,13 +233,19 @@ var InviteUsersApiAxiosParamCreator = function (configuration) {
|
|
|
218
233
|
localVarQueryParameter = {};
|
|
219
234
|
// authentication bearer required
|
|
220
235
|
// http bearer authentication required
|
|
221
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
236
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
237
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
238
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
239
|
+
];
|
|
222
240
|
case 1:
|
|
223
241
|
// authentication bearer required
|
|
224
242
|
// http bearer authentication required
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
243
|
+
_b.sent();
|
|
244
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
245
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
246
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
247
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
248
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
228
249
|
}
|
|
229
250
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
230
251
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -245,20 +266,21 @@ var InviteUsersApiAxiosParamCreator = function (configuration) {
|
|
|
245
266
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
246
267
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
247
268
|
* @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.
|
|
248
|
-
* @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>
|
|
269
|
+
* @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, code, email, token, organizationId, ern, partnerCode</i>
|
|
249
270
|
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
250
271
|
* @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>
|
|
251
272
|
* @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>
|
|
252
|
-
* @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>
|
|
273
|
+
* @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, code, email, token, organizationId, ern, partnerCode</i>
|
|
253
274
|
* @param {*} [options] Override http request option.
|
|
254
275
|
* @throws {RequiredError}
|
|
255
276
|
*/
|
|
256
277
|
listInvites: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
257
278
|
if (options === void 0) { options = {}; }
|
|
258
279
|
return __awaiter(_this, void 0, void 0, function () {
|
|
259
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
260
|
-
|
|
261
|
-
|
|
280
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
281
|
+
var _a;
|
|
282
|
+
return __generator(this, function (_b) {
|
|
283
|
+
switch (_b.label) {
|
|
262
284
|
case 0:
|
|
263
285
|
localVarPath = "/tenantservice/v1/users/invites";
|
|
264
286
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -275,7 +297,7 @@ var InviteUsersApiAxiosParamCreator = function (configuration) {
|
|
|
275
297
|
case 1:
|
|
276
298
|
// authentication bearer required
|
|
277
299
|
// http bearer authentication required
|
|
278
|
-
|
|
300
|
+
_b.sent();
|
|
279
301
|
if (pageSize !== undefined) {
|
|
280
302
|
localVarQueryParameter['pageSize'] = pageSize;
|
|
281
303
|
}
|
|
@@ -297,8 +319,11 @@ var InviteUsersApiAxiosParamCreator = function (configuration) {
|
|
|
297
319
|
if (filters !== undefined) {
|
|
298
320
|
localVarQueryParameter['filters'] = filters;
|
|
299
321
|
}
|
|
300
|
-
|
|
301
|
-
|
|
322
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
323
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
324
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
325
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
326
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
302
327
|
}
|
|
303
328
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
304
329
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -390,11 +415,11 @@ var InviteUsersApiFp = function (configuration) {
|
|
|
390
415
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
391
416
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
392
417
|
* @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.
|
|
393
|
-
* @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>
|
|
418
|
+
* @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, code, email, token, organizationId, ern, partnerCode</i>
|
|
394
419
|
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
395
420
|
* @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>
|
|
396
421
|
* @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>
|
|
397
|
-
* @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>
|
|
422
|
+
* @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, code, email, token, organizationId, ern, partnerCode</i>
|
|
398
423
|
* @param {*} [options] Override http request option.
|
|
399
424
|
* @throws {RequiredError}
|
|
400
425
|
*/
|
|
@@ -460,11 +485,11 @@ var InviteUsersApiFactory = function (configuration, basePath, axios) {
|
|
|
460
485
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
461
486
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
462
487
|
* @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.
|
|
463
|
-
* @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>
|
|
488
|
+
* @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, code, email, token, organizationId, ern, partnerCode</i>
|
|
464
489
|
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
465
490
|
* @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>
|
|
466
491
|
* @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>
|
|
467
|
-
* @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>
|
|
492
|
+
* @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, code, email, token, organizationId, ern, partnerCode</i>
|
|
468
493
|
* @param {*} [options] Override http request option.
|
|
469
494
|
* @throws {RequiredError}
|
|
470
495
|
*/
|
|
@@ -495,7 +520,7 @@ var InviteUsersApi = /** @class */ (function (_super) {
|
|
|
495
520
|
*/
|
|
496
521
|
InviteUsersApi.prototype.deleteInvites = function (requestParameters, options) {
|
|
497
522
|
var _this = this;
|
|
498
|
-
return (0, exports.InviteUsersApiFp)(this.configuration).deleteInvites(requestParameters.batchDeleteRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
523
|
+
return (0, exports.InviteUsersApiFp)(this.configuration).deleteInvites(requestParameters.batchDeleteRequestDto, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
499
524
|
};
|
|
500
525
|
/**
|
|
501
526
|
* This send an email to invite a user with the specific role/roles. **Required Permissions** \"tenant-management.users.create\"
|
|
@@ -507,7 +532,7 @@ var InviteUsersApi = /** @class */ (function (_super) {
|
|
|
507
532
|
*/
|
|
508
533
|
InviteUsersApi.prototype.inviteUser = function (requestParameters, options) {
|
|
509
534
|
var _this = this;
|
|
510
|
-
return (0, exports.InviteUsersApiFp)(this.configuration).inviteUser(requestParameters.inviteUserRequestDtoRest, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
535
|
+
return (0, exports.InviteUsersApiFp)(this.configuration).inviteUser(requestParameters.inviteUserRequestDtoRest, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
511
536
|
};
|
|
512
537
|
/**
|
|
513
538
|
* This send bulk emails to invite users with the specific role/roles. **Required Permissions** \"tenant-management.users.create\"
|
|
@@ -519,7 +544,7 @@ var InviteUsersApi = /** @class */ (function (_super) {
|
|
|
519
544
|
*/
|
|
520
545
|
InviteUsersApi.prototype.inviteUsers = function (requestParameters, options) {
|
|
521
546
|
var _this = this;
|
|
522
|
-
return (0, exports.InviteUsersApiFp)(this.configuration).inviteUsers(requestParameters.inviteUsersRequestDtoRest, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
547
|
+
return (0, exports.InviteUsersApiFp)(this.configuration).inviteUsers(requestParameters.inviteUsersRequestDtoRest, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
523
548
|
};
|
|
524
549
|
/**
|
|
525
550
|
* 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\"
|
|
@@ -532,7 +557,7 @@ var InviteUsersApi = /** @class */ (function (_super) {
|
|
|
532
557
|
InviteUsersApi.prototype.listInvites = function (requestParameters, options) {
|
|
533
558
|
var _this = this;
|
|
534
559
|
if (requestParameters === void 0) { requestParameters = {}; }
|
|
535
|
-
return (0, exports.InviteUsersApiFp)(this.configuration).listInvites(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
560
|
+
return (0, exports.InviteUsersApiFp)(this.configuration).listInvites(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
536
561
|
};
|
|
537
562
|
return InviteUsersApi;
|
|
538
563
|
}(base_1.BaseAPI));
|
|
@@ -146,5 +146,5 @@ export declare class ListOrganizationInvitationsApi extends BaseAPI {
|
|
|
146
146
|
* @throws {RequiredError}
|
|
147
147
|
* @memberof ListOrganizationInvitationsApi
|
|
148
148
|
*/
|
|
149
|
-
listOrgInvitations(requestParameters?: ListOrganizationInvitationsApiListOrgInvitationsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListOrgInvitationsResponseClass, any, {}>>;
|
|
149
|
+
listOrgInvitations(requestParameters?: ListOrganizationInvitationsApiListOrgInvitationsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListOrgInvitationsResponseClass, any, {}, any>>;
|
|
150
150
|
}
|
|
@@ -109,9 +109,10 @@ var ListOrganizationInvitationsApiAxiosParamCreator = function (configuration) {
|
|
|
109
109
|
listOrgInvitations: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
110
110
|
if (options === void 0) { options = {}; }
|
|
111
111
|
return __awaiter(_this, void 0, void 0, function () {
|
|
112
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
113
|
-
|
|
114
|
-
|
|
112
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
113
|
+
var _a;
|
|
114
|
+
return __generator(this, function (_b) {
|
|
115
|
+
switch (_b.label) {
|
|
115
116
|
case 0:
|
|
116
117
|
localVarPath = "/tenantservice/v1/invitations/organizations";
|
|
117
118
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -128,7 +129,7 @@ var ListOrganizationInvitationsApiAxiosParamCreator = function (configuration) {
|
|
|
128
129
|
case 1:
|
|
129
130
|
// authentication bearer required
|
|
130
131
|
// http bearer authentication required
|
|
131
|
-
|
|
132
|
+
_b.sent();
|
|
132
133
|
if (pageSize !== undefined) {
|
|
133
134
|
localVarQueryParameter['pageSize'] = pageSize;
|
|
134
135
|
}
|
|
@@ -150,8 +151,11 @@ var ListOrganizationInvitationsApiAxiosParamCreator = function (configuration) {
|
|
|
150
151
|
if (filters !== undefined) {
|
|
151
152
|
localVarQueryParameter['filters'] = filters;
|
|
152
153
|
}
|
|
153
|
-
|
|
154
|
-
|
|
154
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
155
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
156
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
157
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
158
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
155
159
|
}
|
|
156
160
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
157
161
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -253,7 +257,7 @@ var ListOrganizationInvitationsApi = /** @class */ (function (_super) {
|
|
|
253
257
|
ListOrganizationInvitationsApi.prototype.listOrgInvitations = function (requestParameters, options) {
|
|
254
258
|
var _this = this;
|
|
255
259
|
if (requestParameters === void 0) { requestParameters = {}; }
|
|
256
|
-
return (0, exports.ListOrganizationInvitationsApiFp)(this.configuration).listOrgInvitations(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
260
|
+
return (0, exports.ListOrganizationInvitationsApiFp)(this.configuration).listOrgInvitations(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
257
261
|
};
|
|
258
262
|
return ListOrganizationInvitationsApi;
|
|
259
263
|
}(base_1.BaseAPI));
|
|
@@ -345,7 +345,7 @@ export declare class OrganizationMigrationApi extends BaseAPI {
|
|
|
345
345
|
* @throws {RequiredError}
|
|
346
346
|
* @memberof OrganizationMigrationApi
|
|
347
347
|
*/
|
|
348
|
-
createOrganizationMigration(requestParameters: OrganizationMigrationApiCreateOrganizationMigrationRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateOrganizationMigrationResponseClass, any, {}>>;
|
|
348
|
+
createOrganizationMigration(requestParameters: OrganizationMigrationApiCreateOrganizationMigrationRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateOrganizationMigrationResponseClass, any, {}, any>>;
|
|
349
349
|
/**
|
|
350
350
|
* Creates a new organization migration to move only source organization\'s resources to target organization. It does not move organization and users. **Required Permissions** \"tenant-management.organizations.create\"
|
|
351
351
|
* @summary Create organization migration to move only resources excluding sub organizations
|
|
@@ -354,7 +354,7 @@ export declare class OrganizationMigrationApi extends BaseAPI {
|
|
|
354
354
|
* @throws {RequiredError}
|
|
355
355
|
* @memberof OrganizationMigrationApi
|
|
356
356
|
*/
|
|
357
|
-
createResourcesMigration(requestParameters: OrganizationMigrationApiCreateResourcesMigrationRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateOrganizationMigrationResponseClass, any, {}>>;
|
|
357
|
+
createResourcesMigration(requestParameters: OrganizationMigrationApiCreateResourcesMigrationRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateOrganizationMigrationResponseClass, any, {}, any>>;
|
|
358
358
|
/**
|
|
359
359
|
* Retrieves an organization migration by its code. **Required Permissions** \"tenant-management.organizations.view\"
|
|
360
360
|
* @summary Get organization migration
|
|
@@ -363,7 +363,7 @@ export declare class OrganizationMigrationApi extends BaseAPI {
|
|
|
363
363
|
* @throws {RequiredError}
|
|
364
364
|
* @memberof OrganizationMigrationApi
|
|
365
365
|
*/
|
|
366
|
-
getOrganizationMigration(requestParameters: OrganizationMigrationApiGetOrganizationMigrationRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetOrganizationMigrationResponseClass, any, {}>>;
|
|
366
|
+
getOrganizationMigration(requestParameters: OrganizationMigrationApiGetOrganizationMigrationRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetOrganizationMigrationResponseClass, any, {}, any>>;
|
|
367
367
|
/**
|
|
368
368
|
* Retrieves a list of organization migrations **Required Permissions** \"tenant-management.organizations.view\"
|
|
369
369
|
* @summary List organization migrations
|
|
@@ -372,7 +372,7 @@ export declare class OrganizationMigrationApi extends BaseAPI {
|
|
|
372
372
|
* @throws {RequiredError}
|
|
373
373
|
* @memberof OrganizationMigrationApi
|
|
374
374
|
*/
|
|
375
|
-
listOrganizationMigrations(requestParameters?: OrganizationMigrationApiListOrganizationMigrationsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListOrganizationMigrationsResponseClass, any, {}>>;
|
|
375
|
+
listOrganizationMigrations(requestParameters?: OrganizationMigrationApiListOrganizationMigrationsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListOrganizationMigrationsResponseClass, any, {}, any>>;
|
|
376
376
|
/**
|
|
377
377
|
* Reverts an organization migration. **Required Permissions** \"tenant-management.organizations.update\"
|
|
378
378
|
* @summary Revert organization migration
|
|
@@ -381,5 +381,5 @@ export declare class OrganizationMigrationApi extends BaseAPI {
|
|
|
381
381
|
* @throws {RequiredError}
|
|
382
382
|
* @memberof OrganizationMigrationApi
|
|
383
383
|
*/
|
|
384
|
-
revertOrganizationMigration(requestParameters: OrganizationMigrationApiRevertOrganizationMigrationRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<RevertOrganizationMigrationResponseClass, any, {}>>;
|
|
384
|
+
revertOrganizationMigration(requestParameters: OrganizationMigrationApiRevertOrganizationMigrationRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<RevertOrganizationMigrationResponseClass, any, {}, any>>;
|
|
385
385
|
}
|
|
@@ -103,9 +103,10 @@ var OrganizationMigrationApiAxiosParamCreator = function (configuration) {
|
|
|
103
103
|
createOrganizationMigration: function (createOrganizationMigrationRequestDto, authorization, options) {
|
|
104
104
|
if (options === void 0) { options = {}; }
|
|
105
105
|
return __awaiter(_this, void 0, void 0, function () {
|
|
106
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
107
|
-
|
|
108
|
-
|
|
106
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
107
|
+
var _a;
|
|
108
|
+
return __generator(this, function (_b) {
|
|
109
|
+
switch (_b.label) {
|
|
109
110
|
case 0:
|
|
110
111
|
// verify required parameter 'createOrganizationMigrationRequestDto' is not null or undefined
|
|
111
112
|
(0, common_1.assertParamExists)('createOrganizationMigration', 'createOrganizationMigrationRequestDto', createOrganizationMigrationRequestDto);
|
|
@@ -120,13 +121,19 @@ var OrganizationMigrationApiAxiosParamCreator = function (configuration) {
|
|
|
120
121
|
localVarQueryParameter = {};
|
|
121
122
|
// authentication bearer required
|
|
122
123
|
// http bearer authentication required
|
|
123
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
124
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
125
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
126
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
127
|
+
];
|
|
124
128
|
case 1:
|
|
125
129
|
// authentication bearer required
|
|
126
130
|
// http bearer authentication required
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
131
|
+
_b.sent();
|
|
132
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
133
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
134
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
135
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
136
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
130
137
|
}
|
|
131
138
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
132
139
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -152,9 +159,10 @@ var OrganizationMigrationApiAxiosParamCreator = function (configuration) {
|
|
|
152
159
|
createResourcesMigration: function (createResourcesMigrationRequestDto, authorization, options) {
|
|
153
160
|
if (options === void 0) { options = {}; }
|
|
154
161
|
return __awaiter(_this, void 0, void 0, function () {
|
|
155
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
156
|
-
|
|
157
|
-
|
|
162
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
163
|
+
var _a;
|
|
164
|
+
return __generator(this, function (_b) {
|
|
165
|
+
switch (_b.label) {
|
|
158
166
|
case 0:
|
|
159
167
|
// verify required parameter 'createResourcesMigrationRequestDto' is not null or undefined
|
|
160
168
|
(0, common_1.assertParamExists)('createResourcesMigration', 'createResourcesMigrationRequestDto', createResourcesMigrationRequestDto);
|
|
@@ -169,13 +177,19 @@ var OrganizationMigrationApiAxiosParamCreator = function (configuration) {
|
|
|
169
177
|
localVarQueryParameter = {};
|
|
170
178
|
// authentication bearer required
|
|
171
179
|
// http bearer authentication required
|
|
172
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
180
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
181
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
182
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
183
|
+
];
|
|
173
184
|
case 1:
|
|
174
185
|
// authentication bearer required
|
|
175
186
|
// http bearer authentication required
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
187
|
+
_b.sent();
|
|
188
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
189
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
190
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
191
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
192
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
179
193
|
}
|
|
180
194
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
181
195
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -202,9 +216,10 @@ var OrganizationMigrationApiAxiosParamCreator = function (configuration) {
|
|
|
202
216
|
getOrganizationMigration: function (code, expand, authorization, options) {
|
|
203
217
|
if (options === void 0) { options = {}; }
|
|
204
218
|
return __awaiter(_this, void 0, void 0, function () {
|
|
205
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
206
|
-
|
|
207
|
-
|
|
219
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
220
|
+
var _a;
|
|
221
|
+
return __generator(this, function (_b) {
|
|
222
|
+
switch (_b.label) {
|
|
208
223
|
case 0:
|
|
209
224
|
// verify required parameter 'code' is not null or undefined
|
|
210
225
|
(0, common_1.assertParamExists)('getOrganizationMigration', 'code', code);
|
|
@@ -224,12 +239,15 @@ var OrganizationMigrationApiAxiosParamCreator = function (configuration) {
|
|
|
224
239
|
case 1:
|
|
225
240
|
// authentication bearer required
|
|
226
241
|
// http bearer authentication required
|
|
227
|
-
|
|
242
|
+
_b.sent();
|
|
228
243
|
if (expand !== undefined) {
|
|
229
244
|
localVarQueryParameter['expand'] = expand;
|
|
230
245
|
}
|
|
231
|
-
|
|
232
|
-
|
|
246
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
247
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
248
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
249
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
250
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
233
251
|
}
|
|
234
252
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
235
253
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -259,9 +277,10 @@ var OrganizationMigrationApiAxiosParamCreator = function (configuration) {
|
|
|
259
277
|
listOrganizationMigrations: function (pageSize, pageToken, filter, search, order, expand, filters, authorization, options) {
|
|
260
278
|
if (options === void 0) { options = {}; }
|
|
261
279
|
return __awaiter(_this, void 0, void 0, function () {
|
|
262
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
263
|
-
|
|
264
|
-
|
|
280
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
281
|
+
var _a;
|
|
282
|
+
return __generator(this, function (_b) {
|
|
283
|
+
switch (_b.label) {
|
|
265
284
|
case 0:
|
|
266
285
|
localVarPath = "/tenantservice/v1/organization-migrations";
|
|
267
286
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -278,7 +297,7 @@ var OrganizationMigrationApiAxiosParamCreator = function (configuration) {
|
|
|
278
297
|
case 1:
|
|
279
298
|
// authentication bearer required
|
|
280
299
|
// http bearer authentication required
|
|
281
|
-
|
|
300
|
+
_b.sent();
|
|
282
301
|
if (pageSize !== undefined) {
|
|
283
302
|
localVarQueryParameter['pageSize'] = pageSize;
|
|
284
303
|
}
|
|
@@ -300,8 +319,11 @@ var OrganizationMigrationApiAxiosParamCreator = function (configuration) {
|
|
|
300
319
|
if (filters !== undefined) {
|
|
301
320
|
localVarQueryParameter['filters'] = filters;
|
|
302
321
|
}
|
|
303
|
-
|
|
304
|
-
|
|
322
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
323
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
324
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
325
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
326
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
305
327
|
}
|
|
306
328
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
307
329
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -325,9 +347,10 @@ var OrganizationMigrationApiAxiosParamCreator = function (configuration) {
|
|
|
325
347
|
revertOrganizationMigration: function (revertOrganizationMigrationRequestDto, authorization, options) {
|
|
326
348
|
if (options === void 0) { options = {}; }
|
|
327
349
|
return __awaiter(_this, void 0, void 0, function () {
|
|
328
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
329
|
-
|
|
330
|
-
|
|
350
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
351
|
+
var _a;
|
|
352
|
+
return __generator(this, function (_b) {
|
|
353
|
+
switch (_b.label) {
|
|
331
354
|
case 0:
|
|
332
355
|
// verify required parameter 'revertOrganizationMigrationRequestDto' is not null or undefined
|
|
333
356
|
(0, common_1.assertParamExists)('revertOrganizationMigration', 'revertOrganizationMigrationRequestDto', revertOrganizationMigrationRequestDto);
|
|
@@ -342,13 +365,19 @@ var OrganizationMigrationApiAxiosParamCreator = function (configuration) {
|
|
|
342
365
|
localVarQueryParameter = {};
|
|
343
366
|
// authentication bearer required
|
|
344
367
|
// http bearer authentication required
|
|
345
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
368
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
369
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
370
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
371
|
+
];
|
|
346
372
|
case 1:
|
|
347
373
|
// authentication bearer required
|
|
348
374
|
// http bearer authentication required
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
375
|
+
_b.sent();
|
|
376
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
377
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
378
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
379
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
380
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
352
381
|
}
|
|
353
382
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
354
383
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -581,7 +610,7 @@ var OrganizationMigrationApi = /** @class */ (function (_super) {
|
|
|
581
610
|
*/
|
|
582
611
|
OrganizationMigrationApi.prototype.createOrganizationMigration = function (requestParameters, options) {
|
|
583
612
|
var _this = this;
|
|
584
|
-
return (0, exports.OrganizationMigrationApiFp)(this.configuration).createOrganizationMigration(requestParameters.createOrganizationMigrationRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
613
|
+
return (0, exports.OrganizationMigrationApiFp)(this.configuration).createOrganizationMigration(requestParameters.createOrganizationMigrationRequestDto, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
585
614
|
};
|
|
586
615
|
/**
|
|
587
616
|
* Creates a new organization migration to move only source organization\'s resources to target organization. It does not move organization and users. **Required Permissions** \"tenant-management.organizations.create\"
|
|
@@ -593,7 +622,7 @@ var OrganizationMigrationApi = /** @class */ (function (_super) {
|
|
|
593
622
|
*/
|
|
594
623
|
OrganizationMigrationApi.prototype.createResourcesMigration = function (requestParameters, options) {
|
|
595
624
|
var _this = this;
|
|
596
|
-
return (0, exports.OrganizationMigrationApiFp)(this.configuration).createResourcesMigration(requestParameters.createResourcesMigrationRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
625
|
+
return (0, exports.OrganizationMigrationApiFp)(this.configuration).createResourcesMigration(requestParameters.createResourcesMigrationRequestDto, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
597
626
|
};
|
|
598
627
|
/**
|
|
599
628
|
* Retrieves an organization migration by its code. **Required Permissions** \"tenant-management.organizations.view\"
|
|
@@ -605,7 +634,7 @@ var OrganizationMigrationApi = /** @class */ (function (_super) {
|
|
|
605
634
|
*/
|
|
606
635
|
OrganizationMigrationApi.prototype.getOrganizationMigration = function (requestParameters, options) {
|
|
607
636
|
var _this = this;
|
|
608
|
-
return (0, exports.OrganizationMigrationApiFp)(this.configuration).getOrganizationMigration(requestParameters.code, requestParameters.expand, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
637
|
+
return (0, exports.OrganizationMigrationApiFp)(this.configuration).getOrganizationMigration(requestParameters.code, requestParameters.expand, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
609
638
|
};
|
|
610
639
|
/**
|
|
611
640
|
* Retrieves a list of organization migrations **Required Permissions** \"tenant-management.organizations.view\"
|
|
@@ -618,7 +647,7 @@ var OrganizationMigrationApi = /** @class */ (function (_super) {
|
|
|
618
647
|
OrganizationMigrationApi.prototype.listOrganizationMigrations = function (requestParameters, options) {
|
|
619
648
|
var _this = this;
|
|
620
649
|
if (requestParameters === void 0) { requestParameters = {}; }
|
|
621
|
-
return (0, exports.OrganizationMigrationApiFp)(this.configuration).listOrganizationMigrations(requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
650
|
+
return (0, exports.OrganizationMigrationApiFp)(this.configuration).listOrganizationMigrations(requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
622
651
|
};
|
|
623
652
|
/**
|
|
624
653
|
* Reverts an organization migration. **Required Permissions** \"tenant-management.organizations.update\"
|
|
@@ -630,7 +659,7 @@ var OrganizationMigrationApi = /** @class */ (function (_super) {
|
|
|
630
659
|
*/
|
|
631
660
|
OrganizationMigrationApi.prototype.revertOrganizationMigration = function (requestParameters, options) {
|
|
632
661
|
var _this = this;
|
|
633
|
-
return (0, exports.OrganizationMigrationApiFp)(this.configuration).revertOrganizationMigration(requestParameters.revertOrganizationMigrationRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
662
|
+
return (0, exports.OrganizationMigrationApiFp)(this.configuration).revertOrganizationMigration(requestParameters.revertOrganizationMigrationRequestDto, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
634
663
|
};
|
|
635
664
|
return OrganizationMigrationApi;
|
|
636
665
|
}(base_1.BaseAPI));
|
|
@@ -250,7 +250,7 @@ export declare class OrganizationsApi extends BaseAPI {
|
|
|
250
250
|
* @throws {RequiredError}
|
|
251
251
|
* @memberof OrganizationsApi
|
|
252
252
|
*/
|
|
253
|
-
getOrganization(requestParameters: OrganizationsApiGetOrganizationRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetOrganizationResponseClass, any, {}>>;
|
|
253
|
+
getOrganization(requestParameters: OrganizationsApiGetOrganizationRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetOrganizationResponseClass, any, {}, any>>;
|
|
254
254
|
/**
|
|
255
255
|
* This will fetch list of organizations **Required Permissions** \"tenant-management.organizations.view\"
|
|
256
256
|
* @summary List organizations
|
|
@@ -259,7 +259,7 @@ export declare class OrganizationsApi extends BaseAPI {
|
|
|
259
259
|
* @throws {RequiredError}
|
|
260
260
|
* @memberof OrganizationsApi
|
|
261
261
|
*/
|
|
262
|
-
listOrganizations(requestParameters?: OrganizationsApiListOrganizationsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListOrganizationsResponseClass, any, {}>>;
|
|
262
|
+
listOrganizations(requestParameters?: OrganizationsApiListOrganizationsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListOrganizationsResponseClass, any, {}, any>>;
|
|
263
263
|
/**
|
|
264
264
|
* Update organization data **Required Permissions** \"tenant-management.organizations.update\"
|
|
265
265
|
* @summary Update the Organization
|
|
@@ -268,5 +268,5 @@ export declare class OrganizationsApi extends BaseAPI {
|
|
|
268
268
|
* @throws {RequiredError}
|
|
269
269
|
* @memberof OrganizationsApi
|
|
270
270
|
*/
|
|
271
|
-
updateOrganization(requestParameters: OrganizationsApiUpdateOrganizationRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UpdateOrganizationResponseClass, any, {}>>;
|
|
271
|
+
updateOrganization(requestParameters: OrganizationsApiUpdateOrganizationRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UpdateOrganizationResponseClass, any, {}, any>>;
|
|
272
272
|
}
|