@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
|
@@ -68,8 +68,13 @@ export const DashboardGroupApiAxiosParamCreator = function (configuration?: Conf
|
|
|
68
68
|
// http bearer authentication required
|
|
69
69
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
70
70
|
|
|
71
|
-
|
|
72
|
-
|
|
71
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
72
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
73
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
74
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
75
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
76
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
77
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
73
78
|
}
|
|
74
79
|
|
|
75
80
|
|
|
@@ -115,8 +120,13 @@ export const DashboardGroupApiAxiosParamCreator = function (configuration?: Conf
|
|
|
115
120
|
// http bearer authentication required
|
|
116
121
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
117
122
|
|
|
118
|
-
|
|
119
|
-
|
|
123
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
124
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
125
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
126
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
127
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
128
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
129
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
120
130
|
}
|
|
121
131
|
|
|
122
132
|
|
|
@@ -159,8 +169,13 @@ export const DashboardGroupApiAxiosParamCreator = function (configuration?: Conf
|
|
|
159
169
|
// http bearer authentication required
|
|
160
170
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
161
171
|
|
|
162
|
-
|
|
163
|
-
|
|
172
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
173
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
174
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
175
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
176
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
177
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
178
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
164
179
|
}
|
|
165
180
|
|
|
166
181
|
|
|
@@ -234,8 +249,13 @@ export const DashboardGroupApiAxiosParamCreator = function (configuration?: Conf
|
|
|
234
249
|
localVarQueryParameter['filters'] = filters;
|
|
235
250
|
}
|
|
236
251
|
|
|
237
|
-
|
|
238
|
-
|
|
252
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
253
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
254
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
255
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
256
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
257
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
258
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
239
259
|
}
|
|
240
260
|
|
|
241
261
|
|
|
@@ -281,8 +301,13 @@ export const DashboardGroupApiAxiosParamCreator = function (configuration?: Conf
|
|
|
281
301
|
// http bearer authentication required
|
|
282
302
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
283
303
|
|
|
284
|
-
|
|
285
|
-
|
|
304
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
305
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
306
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
307
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
308
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
309
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
310
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
286
311
|
}
|
|
287
312
|
|
|
288
313
|
|
|
@@ -610,7 +635,7 @@ export class DashboardGroupApi extends BaseAPI {
|
|
|
610
635
|
* @memberof DashboardGroupApi
|
|
611
636
|
*/
|
|
612
637
|
public createDashboardGroup(requestParameters: DashboardGroupApiCreateDashboardGroupRequest, options?: AxiosRequestConfig) {
|
|
613
|
-
return DashboardGroupApiFp(this.configuration).createDashboardGroup(requestParameters.createDashboardGroupRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
638
|
+
return DashboardGroupApiFp(this.configuration).createDashboardGroup(requestParameters.createDashboardGroupRequestDto, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
614
639
|
}
|
|
615
640
|
|
|
616
641
|
/**
|
|
@@ -621,7 +646,7 @@ export class DashboardGroupApi extends BaseAPI {
|
|
|
621
646
|
* @memberof DashboardGroupApi
|
|
622
647
|
*/
|
|
623
648
|
public deleteDashboardGroup(requestParameters: DashboardGroupApiDeleteDashboardGroupRequest, options?: AxiosRequestConfig) {
|
|
624
|
-
return DashboardGroupApiFp(this.configuration).deleteDashboardGroup(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
649
|
+
return DashboardGroupApiFp(this.configuration).deleteDashboardGroup(requestParameters.code, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
625
650
|
}
|
|
626
651
|
|
|
627
652
|
/**
|
|
@@ -632,7 +657,7 @@ export class DashboardGroupApi extends BaseAPI {
|
|
|
632
657
|
* @memberof DashboardGroupApi
|
|
633
658
|
*/
|
|
634
659
|
public getDashboardGroup(requestParameters: DashboardGroupApiGetDashboardGroupRequest, options?: AxiosRequestConfig) {
|
|
635
|
-
return DashboardGroupApiFp(this.configuration).getDashboardGroup(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
660
|
+
return DashboardGroupApiFp(this.configuration).getDashboardGroup(requestParameters.code, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
636
661
|
}
|
|
637
662
|
|
|
638
663
|
/**
|
|
@@ -643,7 +668,7 @@ export class DashboardGroupApi extends BaseAPI {
|
|
|
643
668
|
* @memberof DashboardGroupApi
|
|
644
669
|
*/
|
|
645
670
|
public listDashboardGroups(requestParameters: DashboardGroupApiListDashboardGroupsRequest = {}, options?: AxiosRequestConfig) {
|
|
646
|
-
return DashboardGroupApiFp(this.configuration).listDashboardGroups(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
|
|
671
|
+
return DashboardGroupApiFp(this.configuration).listDashboardGroups(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));
|
|
647
672
|
}
|
|
648
673
|
|
|
649
674
|
/**
|
|
@@ -654,6 +679,6 @@ export class DashboardGroupApi extends BaseAPI {
|
|
|
654
679
|
* @memberof DashboardGroupApi
|
|
655
680
|
*/
|
|
656
681
|
public updateDashboardGroup(requestParameters: DashboardGroupApiUpdateDashboardGroupRequest, options?: AxiosRequestConfig) {
|
|
657
|
-
return DashboardGroupApiFp(this.configuration).updateDashboardGroup(requestParameters.code, requestParameters.updateDashboardGroupRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
682
|
+
return DashboardGroupApiFp(this.configuration).updateDashboardGroup(requestParameters.code, requestParameters.updateDashboardGroupRequestDto, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
658
683
|
}
|
|
659
684
|
}
|
package/api/data-report-api.ts
CHANGED
|
@@ -67,8 +67,13 @@ export const DataReportApiAxiosParamCreator = function (configuration?: Configur
|
|
|
67
67
|
// http bearer authentication required
|
|
68
68
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
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
|
|
|
@@ -120,8 +125,13 @@ export const DataReportApiAxiosParamCreator = function (configuration?: Configur
|
|
|
120
125
|
localVarQueryParameter['expand'] = expand;
|
|
121
126
|
}
|
|
122
127
|
|
|
123
|
-
|
|
124
|
-
|
|
128
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
129
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
130
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
131
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
132
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
133
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
134
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
125
135
|
}
|
|
126
136
|
|
|
127
137
|
|
|
@@ -196,8 +206,13 @@ export const DataReportApiAxiosParamCreator = function (configuration?: Configur
|
|
|
196
206
|
localVarQueryParameter['filters'] = filters;
|
|
197
207
|
}
|
|
198
208
|
|
|
199
|
-
|
|
200
|
-
|
|
209
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
210
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
211
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
212
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
213
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
214
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
215
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
201
216
|
}
|
|
202
217
|
|
|
203
218
|
|
|
@@ -244,8 +259,13 @@ export const DataReportApiAxiosParamCreator = function (configuration?: Configur
|
|
|
244
259
|
// http bearer authentication required
|
|
245
260
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
246
261
|
|
|
247
|
-
|
|
248
|
-
|
|
262
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
263
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
264
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
265
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
266
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
267
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
268
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
249
269
|
}
|
|
250
270
|
|
|
251
271
|
|
|
@@ -549,7 +569,7 @@ export class DataReportApi extends BaseAPI {
|
|
|
549
569
|
* @memberof DataReportApi
|
|
550
570
|
*/
|
|
551
571
|
public createDataReport(requestParameters: DataReportApiCreateDataReportRequest, options?: AxiosRequestConfig) {
|
|
552
|
-
return DataReportApiFp(this.configuration).createDataReport(requestParameters.createDataReportRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
572
|
+
return DataReportApiFp(this.configuration).createDataReport(requestParameters.createDataReportRequestDto, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
553
573
|
}
|
|
554
574
|
|
|
555
575
|
/**
|
|
@@ -561,7 +581,7 @@ export class DataReportApi extends BaseAPI {
|
|
|
561
581
|
* @memberof DataReportApi
|
|
562
582
|
*/
|
|
563
583
|
public getDataReport(requestParameters: DataReportApiGetDataReportRequest, options?: AxiosRequestConfig) {
|
|
564
|
-
return DataReportApiFp(this.configuration).getDataReport(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
|
|
584
|
+
return DataReportApiFp(this.configuration).getDataReport(requestParameters.code, requestParameters.authorization, requestParameters.expand, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
565
585
|
}
|
|
566
586
|
|
|
567
587
|
/**
|
|
@@ -573,7 +593,7 @@ export class DataReportApi extends BaseAPI {
|
|
|
573
593
|
* @memberof DataReportApi
|
|
574
594
|
*/
|
|
575
595
|
public listDataReports(requestParameters: DataReportApiListDataReportsRequest = {}, options?: AxiosRequestConfig) {
|
|
576
|
-
return DataReportApiFp(this.configuration).listDataReports(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
|
|
596
|
+
return DataReportApiFp(this.configuration).listDataReports(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));
|
|
577
597
|
}
|
|
578
598
|
|
|
579
599
|
/**
|
|
@@ -585,6 +605,6 @@ export class DataReportApi extends BaseAPI {
|
|
|
585
605
|
* @memberof DataReportApi
|
|
586
606
|
*/
|
|
587
607
|
public updateDataReport(requestParameters: DataReportApiUpdateDataReportRequest, options?: AxiosRequestConfig) {
|
|
588
|
-
return DataReportApiFp(this.configuration).updateDataReport(requestParameters.code, requestParameters.updateDataReportRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
608
|
+
return DataReportApiFp(this.configuration).updateDataReport(requestParameters.code, requestParameters.updateDataReportRequestDto, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
589
609
|
}
|
|
590
610
|
}
|
|
@@ -58,8 +58,13 @@ export const DataReportExecutorApiAxiosParamCreator = function (configuration?:
|
|
|
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 DataReportExecutorApi extends BaseAPI {
|
|
|
156
161
|
* @memberof DataReportExecutorApi
|
|
157
162
|
*/
|
|
158
163
|
public runDataReport(requestParameters: DataReportExecutorApiRunDataReportRequest, options?: AxiosRequestConfig) {
|
|
159
|
-
return DataReportExecutorApiFp(this.configuration).runDataReport(requestParameters.runDataReportRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
164
|
+
return DataReportExecutorApiFp(this.configuration).runDataReport(requestParameters.runDataReportRequestDto, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
160
165
|
}
|
|
161
166
|
}
|
|
@@ -58,8 +58,13 @@ export const DeleteOrganizationInvitationsApiAxiosParamCreator = function (confi
|
|
|
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 DeleteOrganizationInvitationsApi extends BaseAPI {
|
|
|
156
161
|
* @memberof DeleteOrganizationInvitationsApi
|
|
157
162
|
*/
|
|
158
163
|
public deleteOrgInvitation(requestParameters: DeleteOrganizationInvitationsApiDeleteOrgInvitationRequest, options?: AxiosRequestConfig) {
|
|
159
|
-
return DeleteOrganizationInvitationsApiFp(this.configuration).deleteOrgInvitation(requestParameters.id, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
164
|
+
return DeleteOrganizationInvitationsApiFp(this.configuration).deleteOrgInvitation(requestParameters.id, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
160
165
|
}
|
|
161
166
|
}
|
package/api/health-check-api.ts
CHANGED
|
@@ -119,6 +119,6 @@ export class HealthCheckApi extends BaseAPI {
|
|
|
119
119
|
* @memberof HealthCheckApi
|
|
120
120
|
*/
|
|
121
121
|
public check(options?: AxiosRequestConfig) {
|
|
122
|
-
return HealthCheckApiFp(this.configuration).check(options).then((request) => request(this.axios, this.basePath));
|
|
122
|
+
return HealthCheckApiFp(this.configuration).check(this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
123
123
|
}
|
|
124
124
|
}
|
|
@@ -66,8 +66,13 @@ export const InvitationControllerRestApiAxiosParamCreator = function (configurat
|
|
|
66
66
|
// http bearer authentication required
|
|
67
67
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
68
68
|
|
|
69
|
-
|
|
70
|
-
|
|
69
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
70
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
71
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
72
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
73
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
74
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
75
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
71
76
|
}
|
|
72
77
|
|
|
73
78
|
|
|
@@ -110,8 +115,13 @@ export const InvitationControllerRestApiAxiosParamCreator = function (configurat
|
|
|
110
115
|
// http bearer authentication required
|
|
111
116
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
112
117
|
|
|
113
|
-
|
|
114
|
-
|
|
118
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
119
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
120
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
121
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
122
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
123
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
124
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
115
125
|
}
|
|
116
126
|
|
|
117
127
|
|
|
@@ -189,8 +199,13 @@ export const InvitationControllerRestApiAxiosParamCreator = function (configurat
|
|
|
189
199
|
localVarQueryParameter['filters'] = filters;
|
|
190
200
|
}
|
|
191
201
|
|
|
192
|
-
|
|
193
|
-
|
|
202
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
203
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
204
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
205
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
206
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
207
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
208
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
194
209
|
}
|
|
195
210
|
|
|
196
211
|
|
|
@@ -232,8 +247,13 @@ export const InvitationControllerRestApiAxiosParamCreator = function (configurat
|
|
|
232
247
|
// http bearer authentication required
|
|
233
248
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
234
249
|
|
|
235
|
-
|
|
236
|
-
|
|
250
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
251
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
252
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
253
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
254
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
255
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
256
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
237
257
|
}
|
|
238
258
|
|
|
239
259
|
|
|
@@ -517,7 +537,7 @@ export class InvitationControllerRestApi extends BaseAPI {
|
|
|
517
537
|
* @memberof InvitationControllerRestApi
|
|
518
538
|
*/
|
|
519
539
|
public deleteOrgInvitation(requestParameters: InvitationControllerRestApiDeleteOrgInvitationRequest, options?: AxiosRequestConfig) {
|
|
520
|
-
return InvitationControllerRestApiFp(this.configuration).deleteOrgInvitation(requestParameters.id, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
540
|
+
return InvitationControllerRestApiFp(this.configuration).deleteOrgInvitation(requestParameters.id, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
521
541
|
}
|
|
522
542
|
|
|
523
543
|
/**
|
|
@@ -529,7 +549,7 @@ export class InvitationControllerRestApi extends BaseAPI {
|
|
|
529
549
|
* @memberof InvitationControllerRestApi
|
|
530
550
|
*/
|
|
531
551
|
public inviteOrg(requestParameters: InvitationControllerRestApiInviteOrgRequest, options?: AxiosRequestConfig) {
|
|
532
|
-
return InvitationControllerRestApiFp(this.configuration).inviteOrg(requestParameters.inviteOrgRequestDtoRest, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
552
|
+
return InvitationControllerRestApiFp(this.configuration).inviteOrg(requestParameters.inviteOrgRequestDtoRest, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
533
553
|
}
|
|
534
554
|
|
|
535
555
|
/**
|
|
@@ -541,7 +561,7 @@ export class InvitationControllerRestApi extends BaseAPI {
|
|
|
541
561
|
* @memberof InvitationControllerRestApi
|
|
542
562
|
*/
|
|
543
563
|
public listOrgInvitations(requestParameters: InvitationControllerRestApiListOrgInvitationsRequest = {}, options?: AxiosRequestConfig) {
|
|
544
|
-
return InvitationControllerRestApiFp(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));
|
|
564
|
+
return InvitationControllerRestApiFp(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));
|
|
545
565
|
}
|
|
546
566
|
|
|
547
567
|
/**
|
|
@@ -552,6 +572,6 @@ export class InvitationControllerRestApi extends BaseAPI {
|
|
|
552
572
|
* @memberof InvitationControllerRestApi
|
|
553
573
|
*/
|
|
554
574
|
public reInviteOrganization(requestParameters: InvitationControllerRestApiReInviteOrganizationRequest, options?: AxiosRequestConfig) {
|
|
555
|
-
return InvitationControllerRestApiFp(this.configuration).reInviteOrganization(requestParameters.reInviteOrgRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
575
|
+
return InvitationControllerRestApiFp(this.configuration).reInviteOrganization(requestParameters.reInviteOrgRequestDto, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
556
576
|
}
|
|
557
577
|
}
|
|
@@ -59,8 +59,13 @@ export const InviteOrganizationsApiAxiosParamCreator = function (configuration?:
|
|
|
59
59
|
// http bearer authentication required
|
|
60
60
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
61
61
|
|
|
62
|
-
|
|
63
|
-
|
|
62
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
63
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
64
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
65
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
66
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
67
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
68
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
64
69
|
}
|
|
65
70
|
|
|
66
71
|
|
|
@@ -160,6 +165,6 @@ export class InviteOrganizationsApi extends BaseAPI {
|
|
|
160
165
|
* @memberof InviteOrganizationsApi
|
|
161
166
|
*/
|
|
162
167
|
public inviteOrg(requestParameters: InviteOrganizationsApiInviteOrgRequest, options?: AxiosRequestConfig) {
|
|
163
|
-
return InviteOrganizationsApiFp(this.configuration).inviteOrg(requestParameters.inviteOrgRequestDtoRest, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
168
|
+
return InviteOrganizationsApiFp(this.configuration).inviteOrg(requestParameters.inviteOrgRequestDtoRest, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
164
169
|
}
|
|
165
170
|
}
|
package/api/invite-users-api.ts
CHANGED
|
@@ -69,8 +69,13 @@ export const InviteUsersApiAxiosParamCreator = function (configuration?: Configu
|
|
|
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 InviteUsersApiAxiosParamCreator = function (configuration?: Configu
|
|
|
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
|
|
|
@@ -163,8 +173,13 @@ export const InviteUsersApiAxiosParamCreator = function (configuration?: Configu
|
|
|
163
173
|
// http bearer authentication required
|
|
164
174
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
165
175
|
|
|
166
|
-
|
|
167
|
-
|
|
176
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
177
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
178
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
179
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
180
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
181
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
182
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
168
183
|
}
|
|
169
184
|
|
|
170
185
|
|
|
@@ -187,11 +202,11 @@ export const InviteUsersApiAxiosParamCreator = function (configuration?: Configu
|
|
|
187
202
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
188
203
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
189
204
|
* @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.
|
|
190
|
-
* @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>
|
|
205
|
+
* @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>
|
|
191
206
|
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
192
207
|
* @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>
|
|
193
208
|
* @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>
|
|
194
|
-
* @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>
|
|
209
|
+
* @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>
|
|
195
210
|
* @param {*} [options] Override http request option.
|
|
196
211
|
* @throws {RequiredError}
|
|
197
212
|
*/
|
|
@@ -242,8 +257,13 @@ export const InviteUsersApiAxiosParamCreator = function (configuration?: Configu
|
|
|
242
257
|
localVarQueryParameter['filters'] = filters;
|
|
243
258
|
}
|
|
244
259
|
|
|
245
|
-
|
|
246
|
-
|
|
260
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
261
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
262
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
263
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
264
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
265
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
266
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
247
267
|
}
|
|
248
268
|
|
|
249
269
|
|
|
@@ -309,11 +329,11 @@ export const InviteUsersApiFp = function(configuration?: Configuration) {
|
|
|
309
329
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
310
330
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
311
331
|
* @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.
|
|
312
|
-
* @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>
|
|
332
|
+
* @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>
|
|
313
333
|
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
314
334
|
* @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>
|
|
315
335
|
* @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>
|
|
316
|
-
* @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>
|
|
336
|
+
* @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>
|
|
317
337
|
* @param {*} [options] Override http request option.
|
|
318
338
|
* @throws {RequiredError}
|
|
319
339
|
*/
|
|
@@ -370,11 +390,11 @@ export const InviteUsersApiFactory = function (configuration?: Configuration, ba
|
|
|
370
390
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
371
391
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
372
392
|
* @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.
|
|
373
|
-
* @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>
|
|
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, code, email, token, organizationId, ern, partnerCode</i>
|
|
374
394
|
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
375
395
|
* @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>
|
|
376
396
|
* @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>
|
|
377
|
-
* @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>
|
|
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, code, email, token, organizationId, ern, partnerCode</i>
|
|
378
398
|
* @param {*} [options] Override http request option.
|
|
379
399
|
* @throws {RequiredError}
|
|
380
400
|
*/
|
|
@@ -475,7 +495,7 @@ export interface InviteUsersApiListInvitesRequest {
|
|
|
475
495
|
readonly pageToken?: string
|
|
476
496
|
|
|
477
497
|
/**
|
|
478
|
-
* 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>
|
|
498
|
+
* 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>
|
|
479
499
|
* @type {string}
|
|
480
500
|
* @memberof InviteUsersApiListInvites
|
|
481
501
|
*/
|
|
@@ -503,7 +523,7 @@ export interface InviteUsersApiListInvitesRequest {
|
|
|
503
523
|
readonly expand?: string
|
|
504
524
|
|
|
505
525
|
/**
|
|
506
|
-
* 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>
|
|
526
|
+
* 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>
|
|
507
527
|
* @type {string}
|
|
508
528
|
* @memberof InviteUsersApiListInvites
|
|
509
529
|
*/
|
|
@@ -526,7 +546,7 @@ export class InviteUsersApi extends BaseAPI {
|
|
|
526
546
|
* @memberof InviteUsersApi
|
|
527
547
|
*/
|
|
528
548
|
public deleteInvites(requestParameters: InviteUsersApiDeleteInvitesRequest, options?: AxiosRequestConfig) {
|
|
529
|
-
return InviteUsersApiFp(this.configuration).deleteInvites(requestParameters.batchDeleteRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
549
|
+
return InviteUsersApiFp(this.configuration).deleteInvites(requestParameters.batchDeleteRequestDto, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
530
550
|
}
|
|
531
551
|
|
|
532
552
|
/**
|
|
@@ -538,7 +558,7 @@ export class InviteUsersApi extends BaseAPI {
|
|
|
538
558
|
* @memberof InviteUsersApi
|
|
539
559
|
*/
|
|
540
560
|
public inviteUser(requestParameters: InviteUsersApiInviteUserRequest, options?: AxiosRequestConfig) {
|
|
541
|
-
return InviteUsersApiFp(this.configuration).inviteUser(requestParameters.inviteUserRequestDtoRest, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
561
|
+
return InviteUsersApiFp(this.configuration).inviteUser(requestParameters.inviteUserRequestDtoRest, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
542
562
|
}
|
|
543
563
|
|
|
544
564
|
/**
|
|
@@ -550,7 +570,7 @@ export class InviteUsersApi extends BaseAPI {
|
|
|
550
570
|
* @memberof InviteUsersApi
|
|
551
571
|
*/
|
|
552
572
|
public inviteUsers(requestParameters: InviteUsersApiInviteUsersRequest, options?: AxiosRequestConfig) {
|
|
553
|
-
return InviteUsersApiFp(this.configuration).inviteUsers(requestParameters.inviteUsersRequestDtoRest, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
573
|
+
return InviteUsersApiFp(this.configuration).inviteUsers(requestParameters.inviteUsersRequestDtoRest, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
554
574
|
}
|
|
555
575
|
|
|
556
576
|
/**
|
|
@@ -562,6 +582,6 @@ export class InviteUsersApi extends BaseAPI {
|
|
|
562
582
|
* @memberof InviteUsersApi
|
|
563
583
|
*/
|
|
564
584
|
public listInvites(requestParameters: InviteUsersApiListInvitesRequest = {}, options?: AxiosRequestConfig) {
|
|
565
|
-
return InviteUsersApiFp(this.configuration).listInvites(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
|
|
585
|
+
return InviteUsersApiFp(this.configuration).listInvites(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));
|
|
566
586
|
}
|
|
567
587
|
}
|