@emilgroup/tenant-sdk 1.42.1-beta.141 → 1.42.1-beta.142
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 +3 -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 +32 -12
- 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 +168 -21
- package/api/ssoid-pgroups-api.ts +48 -18
- package/api/user-controller-rest-api.ts +108 -49
- package/api/user-group-api.ts +64 -24
- package/api/users-api.ts +76 -37
- 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 +4 -4
- package/dist/api/invite-users-api.js +56 -31
- 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 +64 -7
- package/dist/api/ssoconnection-api.js +205 -56
- package/dist/api/ssoid-pgroups-api.d.ts +6 -6
- package/dist/api/ssoid-pgroups-api.js +86 -47
- package/dist/api/user-controller-rest-api.d.ts +31 -27
- package/dist/api/user-controller-rest-api.js +171 -99
- 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/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/create-sso-connection-request-dto.d.ts +1 -0
- package/dist/models/create-sso-connection-request-dto.js +2 -1
- package/dist/models/dbconfig-dto.d.ts +6 -0
- package/dist/models/delete-tenant-request-dto.d.ts +30 -0
- package/dist/models/delete-tenant-request-dto.js +15 -0
- package/dist/models/index.d.ts +3 -0
- package/dist/models/index.js +3 -0
- package/dist/models/sso-connection-class.d.ts +1 -0
- package/dist/models/sso-connection-class.js +2 -1
- package/dist/models/validate-sso-idp-url-request-dto.d.ts +35 -0
- package/dist/models/validate-sso-idp-url-request-dto.js +20 -0
- package/dist/models/validate-sso-idp-url-response-class.d.ts +24 -0
- package/dist/models/validate-sso-idp-url-response-class.js +15 -0
- package/models/create-sso-connection-request-dto.ts +2 -1
- package/models/dbconfig-dto.ts +6 -0
- package/models/delete-tenant-request-dto.ts +36 -0
- package/models/index.ts +3 -0
- package/models/sso-connection-class.ts +2 -1
- package/models/validate-sso-idp-url-request-dto.ts +44 -0
- package/models/validate-sso-idp-url-response-class.ts +30 -0
- package/package.json +2 -2
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
|
}
|