@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
|
@@ -89,8 +89,13 @@ export const ListOrganizationInvitationsApiAxiosParamCreator = function (configu
|
|
|
89
89
|
localVarQueryParameter['filters'] = filters;
|
|
90
90
|
}
|
|
91
91
|
|
|
92
|
-
|
|
93
|
-
|
|
92
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
93
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
94
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
95
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
96
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
97
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
98
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
94
99
|
}
|
|
95
100
|
|
|
96
101
|
|
|
@@ -241,6 +246,6 @@ export class ListOrganizationInvitationsApi extends BaseAPI {
|
|
|
241
246
|
* @memberof ListOrganizationInvitationsApi
|
|
242
247
|
*/
|
|
243
248
|
public listOrgInvitations(requestParameters: ListOrganizationInvitationsApiListOrgInvitationsRequest = {}, options?: AxiosRequestConfig) {
|
|
244
|
-
return ListOrganizationInvitationsApiFp(this.configuration).listOrgInvitations(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
|
|
249
|
+
return ListOrganizationInvitationsApiFp(this.configuration).listOrgInvitations(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
245
250
|
}
|
|
246
251
|
}
|
|
@@ -69,8 +69,13 @@ export const OrganizationMigrationApiAxiosParamCreator = function (configuration
|
|
|
69
69
|
// http bearer authentication required
|
|
70
70
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
71
71
|
|
|
72
|
-
|
|
73
|
-
|
|
72
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
73
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
74
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
75
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
76
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
77
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
78
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
74
79
|
}
|
|
75
80
|
|
|
76
81
|
|
|
@@ -116,8 +121,13 @@ export const OrganizationMigrationApiAxiosParamCreator = function (configuration
|
|
|
116
121
|
// http bearer authentication required
|
|
117
122
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
118
123
|
|
|
119
|
-
|
|
120
|
-
|
|
124
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
125
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
126
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
127
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
128
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
129
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
130
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
121
131
|
}
|
|
122
132
|
|
|
123
133
|
|
|
@@ -169,8 +179,13 @@ export const OrganizationMigrationApiAxiosParamCreator = function (configuration
|
|
|
169
179
|
localVarQueryParameter['expand'] = expand;
|
|
170
180
|
}
|
|
171
181
|
|
|
172
|
-
|
|
173
|
-
|
|
182
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
183
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
184
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
185
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
186
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
187
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
188
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
174
189
|
}
|
|
175
190
|
|
|
176
191
|
|
|
@@ -245,8 +260,13 @@ export const OrganizationMigrationApiAxiosParamCreator = function (configuration
|
|
|
245
260
|
localVarQueryParameter['filters'] = filters;
|
|
246
261
|
}
|
|
247
262
|
|
|
248
|
-
|
|
249
|
-
|
|
263
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
264
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
265
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
266
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
267
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
268
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
269
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
250
270
|
}
|
|
251
271
|
|
|
252
272
|
|
|
@@ -289,8 +309,13 @@ export const OrganizationMigrationApiAxiosParamCreator = function (configuration
|
|
|
289
309
|
// http bearer authentication required
|
|
290
310
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
291
311
|
|
|
292
|
-
|
|
293
|
-
|
|
312
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
313
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
314
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
315
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
316
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
317
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
318
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
294
319
|
}
|
|
295
320
|
|
|
296
321
|
|
|
@@ -629,7 +654,7 @@ export class OrganizationMigrationApi extends BaseAPI {
|
|
|
629
654
|
* @memberof OrganizationMigrationApi
|
|
630
655
|
*/
|
|
631
656
|
public createOrganizationMigration(requestParameters: OrganizationMigrationApiCreateOrganizationMigrationRequest, options?: AxiosRequestConfig) {
|
|
632
|
-
return OrganizationMigrationApiFp(this.configuration).createOrganizationMigration(requestParameters.createOrganizationMigrationRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
657
|
+
return OrganizationMigrationApiFp(this.configuration).createOrganizationMigration(requestParameters.createOrganizationMigrationRequestDto, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
633
658
|
}
|
|
634
659
|
|
|
635
660
|
/**
|
|
@@ -641,7 +666,7 @@ export class OrganizationMigrationApi extends BaseAPI {
|
|
|
641
666
|
* @memberof OrganizationMigrationApi
|
|
642
667
|
*/
|
|
643
668
|
public createResourcesMigration(requestParameters: OrganizationMigrationApiCreateResourcesMigrationRequest, options?: AxiosRequestConfig) {
|
|
644
|
-
return OrganizationMigrationApiFp(this.configuration).createResourcesMigration(requestParameters.createResourcesMigrationRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
669
|
+
return OrganizationMigrationApiFp(this.configuration).createResourcesMigration(requestParameters.createResourcesMigrationRequestDto, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
645
670
|
}
|
|
646
671
|
|
|
647
672
|
/**
|
|
@@ -653,7 +678,7 @@ export class OrganizationMigrationApi extends BaseAPI {
|
|
|
653
678
|
* @memberof OrganizationMigrationApi
|
|
654
679
|
*/
|
|
655
680
|
public getOrganizationMigration(requestParameters: OrganizationMigrationApiGetOrganizationMigrationRequest, options?: AxiosRequestConfig) {
|
|
656
|
-
return OrganizationMigrationApiFp(this.configuration).getOrganizationMigration(requestParameters.code, requestParameters.expand, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
681
|
+
return OrganizationMigrationApiFp(this.configuration).getOrganizationMigration(requestParameters.code, requestParameters.expand, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
657
682
|
}
|
|
658
683
|
|
|
659
684
|
/**
|
|
@@ -665,7 +690,7 @@ export class OrganizationMigrationApi extends BaseAPI {
|
|
|
665
690
|
* @memberof OrganizationMigrationApi
|
|
666
691
|
*/
|
|
667
692
|
public listOrganizationMigrations(requestParameters: OrganizationMigrationApiListOrganizationMigrationsRequest = {}, options?: AxiosRequestConfig) {
|
|
668
|
-
return OrganizationMigrationApiFp(this.configuration).listOrganizationMigrations(requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
693
|
+
return OrganizationMigrationApiFp(this.configuration).listOrganizationMigrations(requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
669
694
|
}
|
|
670
695
|
|
|
671
696
|
/**
|
|
@@ -677,6 +702,6 @@ export class OrganizationMigrationApi extends BaseAPI {
|
|
|
677
702
|
* @memberof OrganizationMigrationApi
|
|
678
703
|
*/
|
|
679
704
|
public revertOrganizationMigration(requestParameters: OrganizationMigrationApiRevertOrganizationMigrationRequest, options?: AxiosRequestConfig) {
|
|
680
|
-
return OrganizationMigrationApiFp(this.configuration).revertOrganizationMigration(requestParameters.revertOrganizationMigrationRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
705
|
+
return OrganizationMigrationApiFp(this.configuration).revertOrganizationMigration(requestParameters.revertOrganizationMigrationRequestDto, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
681
706
|
}
|
|
682
707
|
}
|
package/api/organizations-api.ts
CHANGED
|
@@ -64,8 +64,13 @@ export const OrganizationsApiAxiosParamCreator = function (configuration?: Confi
|
|
|
64
64
|
// http bearer authentication required
|
|
65
65
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
66
66
|
|
|
67
|
-
|
|
68
|
-
|
|
67
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
68
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
69
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
70
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
71
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
72
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
73
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
69
74
|
}
|
|
70
75
|
|
|
71
76
|
|
|
@@ -140,8 +145,13 @@ export const OrganizationsApiAxiosParamCreator = function (configuration?: Confi
|
|
|
140
145
|
localVarQueryParameter['filters'] = filters;
|
|
141
146
|
}
|
|
142
147
|
|
|
143
|
-
|
|
144
|
-
|
|
148
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
149
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
150
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
151
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
152
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
153
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
154
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
145
155
|
}
|
|
146
156
|
|
|
147
157
|
|
|
@@ -188,8 +198,13 @@ export const OrganizationsApiAxiosParamCreator = function (configuration?: Confi
|
|
|
188
198
|
// http bearer authentication required
|
|
189
199
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
190
200
|
|
|
191
|
-
|
|
192
|
-
|
|
201
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
202
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
203
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
204
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
205
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
206
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
207
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
193
208
|
}
|
|
194
209
|
|
|
195
210
|
|
|
@@ -440,7 +455,7 @@ export class OrganizationsApi extends BaseAPI {
|
|
|
440
455
|
* @memberof OrganizationsApi
|
|
441
456
|
*/
|
|
442
457
|
public getOrganization(requestParameters: OrganizationsApiGetOrganizationRequest, options?: AxiosRequestConfig) {
|
|
443
|
-
return OrganizationsApiFp(this.configuration).getOrganization(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
458
|
+
return OrganizationsApiFp(this.configuration).getOrganization(requestParameters.code, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
444
459
|
}
|
|
445
460
|
|
|
446
461
|
/**
|
|
@@ -452,7 +467,7 @@ export class OrganizationsApi extends BaseAPI {
|
|
|
452
467
|
* @memberof OrganizationsApi
|
|
453
468
|
*/
|
|
454
469
|
public listOrganizations(requestParameters: OrganizationsApiListOrganizationsRequest = {}, options?: AxiosRequestConfig) {
|
|
455
|
-
return OrganizationsApiFp(this.configuration).listOrganizations(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
|
|
470
|
+
return OrganizationsApiFp(this.configuration).listOrganizations(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
456
471
|
}
|
|
457
472
|
|
|
458
473
|
/**
|
|
@@ -464,6 +479,6 @@ export class OrganizationsApi extends BaseAPI {
|
|
|
464
479
|
* @memberof OrganizationsApi
|
|
465
480
|
*/
|
|
466
481
|
public updateOrganization(requestParameters: OrganizationsApiUpdateOrganizationRequest, options?: AxiosRequestConfig) {
|
|
467
|
-
return OrganizationsApiFp(this.configuration).updateOrganization(requestParameters.code, requestParameters.updateOrganizationRequestDtoRest, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
482
|
+
return OrganizationsApiFp(this.configuration).updateOrganization(requestParameters.code, requestParameters.updateOrganizationRequestDtoRest, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
468
483
|
}
|
|
469
484
|
}
|
|
@@ -58,8 +58,13 @@ export const ReInviteAnOrganizationApiAxiosParamCreator = function (configuratio
|
|
|
58
58
|
// http bearer authentication required
|
|
59
59
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
60
60
|
|
|
61
|
-
|
|
62
|
-
|
|
61
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
62
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
63
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
64
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
65
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
66
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
67
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
63
68
|
}
|
|
64
69
|
|
|
65
70
|
|
|
@@ -156,6 +161,6 @@ export class ReInviteAnOrganizationApi extends BaseAPI {
|
|
|
156
161
|
* @memberof ReInviteAnOrganizationApi
|
|
157
162
|
*/
|
|
158
163
|
public reInviteOrganization(requestParameters: ReInviteAnOrganizationApiReInviteOrganizationRequest, options?: AxiosRequestConfig) {
|
|
159
|
-
return ReInviteAnOrganizationApiFp(this.configuration).reInviteOrganization(requestParameters.reInviteOrgRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
164
|
+
return ReInviteAnOrganizationApiFp(this.configuration).reInviteOrganization(requestParameters.reInviteOrgRequestDto, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
160
165
|
}
|
|
161
166
|
}
|
|
@@ -69,8 +69,13 @@ export const ReportScheduleApiAxiosParamCreator = function (configuration?: Conf
|
|
|
69
69
|
// http bearer authentication required
|
|
70
70
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
71
71
|
|
|
72
|
-
|
|
73
|
-
|
|
72
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
73
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
74
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
75
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
76
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
77
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
78
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
74
79
|
}
|
|
75
80
|
|
|
76
81
|
|
|
@@ -117,8 +122,13 @@ export const ReportScheduleApiAxiosParamCreator = function (configuration?: Conf
|
|
|
117
122
|
// http bearer authentication required
|
|
118
123
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
119
124
|
|
|
120
|
-
|
|
121
|
-
|
|
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
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
128
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
129
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
130
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
131
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
122
132
|
}
|
|
123
133
|
|
|
124
134
|
|
|
@@ -167,8 +177,13 @@ export const ReportScheduleApiAxiosParamCreator = function (configuration?: Conf
|
|
|
167
177
|
localVarQueryParameter['expand'] = expand;
|
|
168
178
|
}
|
|
169
179
|
|
|
170
|
-
|
|
171
|
-
|
|
180
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
181
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
182
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
183
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
184
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
185
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
186
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
172
187
|
}
|
|
173
188
|
|
|
174
189
|
|
|
@@ -243,8 +258,13 @@ export const ReportScheduleApiAxiosParamCreator = function (configuration?: Conf
|
|
|
243
258
|
localVarQueryParameter['filters'] = filters;
|
|
244
259
|
}
|
|
245
260
|
|
|
246
|
-
|
|
247
|
-
|
|
261
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
262
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
263
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
264
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
265
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
266
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
267
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
248
268
|
}
|
|
249
269
|
|
|
250
270
|
|
|
@@ -291,8 +311,13 @@ export const ReportScheduleApiAxiosParamCreator = function (configuration?: Conf
|
|
|
291
311
|
// http bearer authentication required
|
|
292
312
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
293
313
|
|
|
294
|
-
|
|
295
|
-
|
|
314
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
315
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
316
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
317
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
318
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
319
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
320
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
296
321
|
}
|
|
297
322
|
|
|
298
323
|
|
|
@@ -640,7 +665,7 @@ export class ReportScheduleApi extends BaseAPI {
|
|
|
640
665
|
* @memberof ReportScheduleApi
|
|
641
666
|
*/
|
|
642
667
|
public createReportSchedule(requestParameters: ReportScheduleApiCreateReportScheduleRequest, options?: AxiosRequestConfig) {
|
|
643
|
-
return ReportScheduleApiFp(this.configuration).createReportSchedule(requestParameters.createReportScheduleRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
668
|
+
return ReportScheduleApiFp(this.configuration).createReportSchedule(requestParameters.createReportScheduleRequestDto, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
644
669
|
}
|
|
645
670
|
|
|
646
671
|
/**
|
|
@@ -652,7 +677,7 @@ export class ReportScheduleApi extends BaseAPI {
|
|
|
652
677
|
* @memberof ReportScheduleApi
|
|
653
678
|
*/
|
|
654
679
|
public deleteReportSchedule(requestParameters: ReportScheduleApiDeleteReportScheduleRequest, options?: AxiosRequestConfig) {
|
|
655
|
-
return ReportScheduleApiFp(this.configuration).deleteReportSchedule(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
680
|
+
return ReportScheduleApiFp(this.configuration).deleteReportSchedule(requestParameters.code, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
656
681
|
}
|
|
657
682
|
|
|
658
683
|
/**
|
|
@@ -664,7 +689,7 @@ export class ReportScheduleApi extends BaseAPI {
|
|
|
664
689
|
* @memberof ReportScheduleApi
|
|
665
690
|
*/
|
|
666
691
|
public getReportSchedule(requestParameters: ReportScheduleApiGetReportScheduleRequest, options?: AxiosRequestConfig) {
|
|
667
|
-
return ReportScheduleApiFp(this.configuration).getReportSchedule(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
|
|
692
|
+
return ReportScheduleApiFp(this.configuration).getReportSchedule(requestParameters.code, requestParameters.authorization, requestParameters.expand, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
668
693
|
}
|
|
669
694
|
|
|
670
695
|
/**
|
|
@@ -676,7 +701,7 @@ export class ReportScheduleApi extends BaseAPI {
|
|
|
676
701
|
* @memberof ReportScheduleApi
|
|
677
702
|
*/
|
|
678
703
|
public listReportSchedules(requestParameters: ReportScheduleApiListReportSchedulesRequest = {}, options?: AxiosRequestConfig) {
|
|
679
|
-
return ReportScheduleApiFp(this.configuration).listReportSchedules(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
|
|
704
|
+
return ReportScheduleApiFp(this.configuration).listReportSchedules(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
680
705
|
}
|
|
681
706
|
|
|
682
707
|
/**
|
|
@@ -688,6 +713,6 @@ export class ReportScheduleApi extends BaseAPI {
|
|
|
688
713
|
* @memberof ReportScheduleApi
|
|
689
714
|
*/
|
|
690
715
|
public updateReportSchedule(requestParameters: ReportScheduleApiUpdateReportScheduleRequest, options?: AxiosRequestConfig) {
|
|
691
|
-
return ReportScheduleApiFp(this.configuration).updateReportSchedule(requestParameters.code, requestParameters.updateReportScheduleRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
716
|
+
return ReportScheduleApiFp(this.configuration).updateReportSchedule(requestParameters.code, requestParameters.updateReportScheduleRequestDto, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
692
717
|
}
|
|
693
718
|
}
|
|
@@ -89,8 +89,13 @@ export const ReportScheduleLogsApiAxiosParamCreator = function (configuration?:
|
|
|
89
89
|
localVarQueryParameter['filters'] = filters;
|
|
90
90
|
}
|
|
91
91
|
|
|
92
|
-
|
|
93
|
-
|
|
92
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
93
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
94
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
95
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
96
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
97
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
98
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
94
99
|
}
|
|
95
100
|
|
|
96
101
|
|
|
@@ -241,6 +246,6 @@ export class ReportScheduleLogsApi extends BaseAPI {
|
|
|
241
246
|
* @memberof ReportScheduleLogsApi
|
|
242
247
|
*/
|
|
243
248
|
public listReportScheduleLogs(requestParameters: ReportScheduleLogsApiListReportScheduleLogsRequest = {}, options?: AxiosRequestConfig) {
|
|
244
|
-
return ReportScheduleLogsApiFp(this.configuration).listReportScheduleLogs(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
|
|
249
|
+
return ReportScheduleLogsApiFp(this.configuration).listReportScheduleLogs(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
245
250
|
}
|
|
246
251
|
}
|
package/api/roles-api.ts
CHANGED
|
@@ -85,8 +85,13 @@ export const RolesApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
85
85
|
localVarQueryParameter['expand'] = expand;
|
|
86
86
|
}
|
|
87
87
|
|
|
88
|
-
|
|
89
|
-
|
|
88
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
89
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
90
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
91
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
92
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
93
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
94
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
90
95
|
}
|
|
91
96
|
|
|
92
97
|
|
|
@@ -231,6 +236,6 @@ export class RolesApi extends BaseAPI {
|
|
|
231
236
|
* @memberof RolesApi
|
|
232
237
|
*/
|
|
233
238
|
public listRoles(requestParameters: RolesApiListRolesRequest = {}, options?: AxiosRequestConfig) {
|
|
234
|
-
return RolesApiFp(this.configuration).listRoles(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
|
|
239
|
+
return RolesApiFp(this.configuration).listRoles(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
235
240
|
}
|
|
236
241
|
}
|
package/api/settings-api.ts
CHANGED
|
@@ -67,8 +67,13 @@ export const SettingsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
67
67
|
localVarQueryParameter['keys'] = keys;
|
|
68
68
|
}
|
|
69
69
|
|
|
70
|
-
|
|
71
|
-
|
|
70
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
71
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
72
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
73
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
74
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
75
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
76
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
72
77
|
}
|
|
73
78
|
|
|
74
79
|
|
|
@@ -114,8 +119,13 @@ export const SettingsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
114
119
|
localVarQueryParameter['keys'] = keys;
|
|
115
120
|
}
|
|
116
121
|
|
|
117
|
-
|
|
118
|
-
|
|
122
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
123
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
124
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
125
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
126
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
127
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
128
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
119
129
|
}
|
|
120
130
|
|
|
121
131
|
|
|
@@ -157,8 +167,13 @@ export const SettingsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
157
167
|
// http bearer authentication required
|
|
158
168
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
159
169
|
|
|
160
|
-
|
|
161
|
-
|
|
170
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
171
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
172
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
173
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
174
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
175
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
176
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
162
177
|
}
|
|
163
178
|
|
|
164
179
|
|
|
@@ -203,8 +218,13 @@ export const SettingsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
203
218
|
// http bearer authentication required
|
|
204
219
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
205
220
|
|
|
206
|
-
|
|
207
|
-
|
|
221
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
222
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
223
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
224
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
225
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
226
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
227
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
208
228
|
}
|
|
209
229
|
|
|
210
230
|
|
|
@@ -430,7 +450,7 @@ export class SettingsApi extends BaseAPI {
|
|
|
430
450
|
* @memberof SettingsApi
|
|
431
451
|
*/
|
|
432
452
|
public getTenantSettings(requestParameters: SettingsApiGetTenantSettingsRequest, options?: AxiosRequestConfig) {
|
|
433
|
-
return SettingsApiFp(this.configuration).getTenantSettings(requestParameters.keys, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
453
|
+
return SettingsApiFp(this.configuration).getTenantSettings(requestParameters.keys, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
434
454
|
}
|
|
435
455
|
|
|
436
456
|
/**
|
|
@@ -441,7 +461,7 @@ export class SettingsApi extends BaseAPI {
|
|
|
441
461
|
* @memberof SettingsApi
|
|
442
462
|
*/
|
|
443
463
|
public getUserSettings(requestParameters: SettingsApiGetUserSettingsRequest, options?: AxiosRequestConfig) {
|
|
444
|
-
return SettingsApiFp(this.configuration).getUserSettings(requestParameters.keys, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
464
|
+
return SettingsApiFp(this.configuration).getUserSettings(requestParameters.keys, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
445
465
|
}
|
|
446
466
|
|
|
447
467
|
/**
|
|
@@ -452,7 +472,7 @@ export class SettingsApi extends BaseAPI {
|
|
|
452
472
|
* @memberof SettingsApi
|
|
453
473
|
*/
|
|
454
474
|
public setTenantSetting(requestParameters: SettingsApiSetTenantSettingRequest, options?: AxiosRequestConfig) {
|
|
455
|
-
return SettingsApiFp(this.configuration).setTenantSetting(requestParameters.setSettingRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
475
|
+
return SettingsApiFp(this.configuration).setTenantSetting(requestParameters.setSettingRequestDto, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
456
476
|
}
|
|
457
477
|
|
|
458
478
|
/**
|
|
@@ -463,6 +483,6 @@ export class SettingsApi extends BaseAPI {
|
|
|
463
483
|
* @memberof SettingsApi
|
|
464
484
|
*/
|
|
465
485
|
public setUserSetting(requestParameters: SettingsApiSetUserSettingRequest, options?: AxiosRequestConfig) {
|
|
466
|
-
return SettingsApiFp(this.configuration).setUserSetting(requestParameters.setSettingRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
486
|
+
return SettingsApiFp(this.configuration).setUserSetting(requestParameters.setSettingRequestDto, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
467
487
|
}
|
|
468
488
|
}
|