@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
|
@@ -329,7 +329,7 @@ export declare class DashboardGroupApi extends BaseAPI {
|
|
|
329
329
|
* @throws {RequiredError}
|
|
330
330
|
* @memberof DashboardGroupApi
|
|
331
331
|
*/
|
|
332
|
-
createDashboardGroup(requestParameters: DashboardGroupApiCreateDashboardGroupRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateDashboardGroupResponseClass, any, {}>>;
|
|
332
|
+
createDashboardGroup(requestParameters: DashboardGroupApiCreateDashboardGroupRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateDashboardGroupResponseClass, any, {}, any>>;
|
|
333
333
|
/**
|
|
334
334
|
* undefined **Required Permissions** \"pbm-management.dashboard-groups.delete\"
|
|
335
335
|
* @param {DashboardGroupApiDeleteDashboardGroupRequest} requestParameters Request parameters.
|
|
@@ -337,7 +337,7 @@ export declare class DashboardGroupApi extends BaseAPI {
|
|
|
337
337
|
* @throws {RequiredError}
|
|
338
338
|
* @memberof DashboardGroupApi
|
|
339
339
|
*/
|
|
340
|
-
deleteDashboardGroup(requestParameters: DashboardGroupApiDeleteDashboardGroupRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<DeleteResponseClass, any, {}>>;
|
|
340
|
+
deleteDashboardGroup(requestParameters: DashboardGroupApiDeleteDashboardGroupRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<DeleteResponseClass, any, {}, any>>;
|
|
341
341
|
/**
|
|
342
342
|
* undefined **Required Permissions** \"pbm-management.dashboard-groups.view\"
|
|
343
343
|
* @param {DashboardGroupApiGetDashboardGroupRequest} requestParameters Request parameters.
|
|
@@ -345,7 +345,7 @@ export declare class DashboardGroupApi extends BaseAPI {
|
|
|
345
345
|
* @throws {RequiredError}
|
|
346
346
|
* @memberof DashboardGroupApi
|
|
347
347
|
*/
|
|
348
|
-
getDashboardGroup(requestParameters: DashboardGroupApiGetDashboardGroupRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetDashboardGroupResponseClass, any, {}>>;
|
|
348
|
+
getDashboardGroup(requestParameters: DashboardGroupApiGetDashboardGroupRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetDashboardGroupResponseClass, any, {}, any>>;
|
|
349
349
|
/**
|
|
350
350
|
* undefined **Required Permissions** \"pbm-management.dashboard-groups.view\"
|
|
351
351
|
* @param {DashboardGroupApiListDashboardGroupsRequest} requestParameters Request parameters.
|
|
@@ -353,7 +353,7 @@ export declare class DashboardGroupApi extends BaseAPI {
|
|
|
353
353
|
* @throws {RequiredError}
|
|
354
354
|
* @memberof DashboardGroupApi
|
|
355
355
|
*/
|
|
356
|
-
listDashboardGroups(requestParameters?: DashboardGroupApiListDashboardGroupsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListDashboardGroupsResponseClass, any, {}>>;
|
|
356
|
+
listDashboardGroups(requestParameters?: DashboardGroupApiListDashboardGroupsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListDashboardGroupsResponseClass, any, {}, any>>;
|
|
357
357
|
/**
|
|
358
358
|
* undefined **Required Permissions** \"pbm-management.dashboard-groups.update\"
|
|
359
359
|
* @param {DashboardGroupApiUpdateDashboardGroupRequest} requestParameters Request parameters.
|
|
@@ -361,5 +361,5 @@ export declare class DashboardGroupApi extends BaseAPI {
|
|
|
361
361
|
* @throws {RequiredError}
|
|
362
362
|
* @memberof DashboardGroupApi
|
|
363
363
|
*/
|
|
364
|
-
updateDashboardGroup(requestParameters: DashboardGroupApiUpdateDashboardGroupRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UpdateDashboardGroupResponseClass, any, {}>>;
|
|
364
|
+
updateDashboardGroup(requestParameters: DashboardGroupApiUpdateDashboardGroupRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UpdateDashboardGroupResponseClass, any, {}, any>>;
|
|
365
365
|
}
|
|
@@ -102,9 +102,10 @@ var DashboardGroupApiAxiosParamCreator = function (configuration) {
|
|
|
102
102
|
createDashboardGroup: function (createDashboardGroupRequestDto, authorization, options) {
|
|
103
103
|
if (options === void 0) { options = {}; }
|
|
104
104
|
return __awaiter(_this, void 0, void 0, function () {
|
|
105
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
106
|
-
|
|
107
|
-
|
|
105
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
106
|
+
var _a;
|
|
107
|
+
return __generator(this, function (_b) {
|
|
108
|
+
switch (_b.label) {
|
|
108
109
|
case 0:
|
|
109
110
|
// verify required parameter 'createDashboardGroupRequestDto' is not null or undefined
|
|
110
111
|
(0, common_1.assertParamExists)('createDashboardGroup', 'createDashboardGroupRequestDto', createDashboardGroupRequestDto);
|
|
@@ -119,13 +120,19 @@ var DashboardGroupApiAxiosParamCreator = function (configuration) {
|
|
|
119
120
|
localVarQueryParameter = {};
|
|
120
121
|
// authentication bearer required
|
|
121
122
|
// http bearer authentication required
|
|
122
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
123
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
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
|
+
];
|
|
123
127
|
case 1:
|
|
124
128
|
// authentication bearer required
|
|
125
129
|
// http bearer authentication required
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
130
|
+
_b.sent();
|
|
131
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
132
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
133
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
134
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
135
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
129
136
|
}
|
|
130
137
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
131
138
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -150,9 +157,10 @@ var DashboardGroupApiAxiosParamCreator = function (configuration) {
|
|
|
150
157
|
deleteDashboardGroup: function (code, authorization, options) {
|
|
151
158
|
if (options === void 0) { options = {}; }
|
|
152
159
|
return __awaiter(_this, void 0, void 0, function () {
|
|
153
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
154
|
-
|
|
155
|
-
|
|
160
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
161
|
+
var _a;
|
|
162
|
+
return __generator(this, function (_b) {
|
|
163
|
+
switch (_b.label) {
|
|
156
164
|
case 0:
|
|
157
165
|
// verify required parameter 'code' is not null or undefined
|
|
158
166
|
(0, common_1.assertParamExists)('deleteDashboardGroup', 'code', code);
|
|
@@ -168,13 +176,19 @@ var DashboardGroupApiAxiosParamCreator = function (configuration) {
|
|
|
168
176
|
localVarQueryParameter = {};
|
|
169
177
|
// authentication bearer required
|
|
170
178
|
// http bearer authentication required
|
|
171
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
179
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
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
|
+
];
|
|
172
183
|
case 1:
|
|
173
184
|
// authentication bearer required
|
|
174
185
|
// http bearer authentication required
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
186
|
+
_b.sent();
|
|
187
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
188
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
189
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
190
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
191
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
178
192
|
}
|
|
179
193
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
180
194
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -197,9 +211,10 @@ var DashboardGroupApiAxiosParamCreator = function (configuration) {
|
|
|
197
211
|
getDashboardGroup: function (code, authorization, options) {
|
|
198
212
|
if (options === void 0) { options = {}; }
|
|
199
213
|
return __awaiter(_this, void 0, void 0, function () {
|
|
200
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
201
|
-
|
|
202
|
-
|
|
214
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
215
|
+
var _a;
|
|
216
|
+
return __generator(this, function (_b) {
|
|
217
|
+
switch (_b.label) {
|
|
203
218
|
case 0:
|
|
204
219
|
// verify required parameter 'code' is not null or undefined
|
|
205
220
|
(0, common_1.assertParamExists)('getDashboardGroup', 'code', code);
|
|
@@ -215,13 +230,19 @@ var DashboardGroupApiAxiosParamCreator = function (configuration) {
|
|
|
215
230
|
localVarQueryParameter = {};
|
|
216
231
|
// authentication bearer required
|
|
217
232
|
// http bearer authentication required
|
|
218
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
233
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
234
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
235
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
236
|
+
];
|
|
219
237
|
case 1:
|
|
220
238
|
// authentication bearer required
|
|
221
239
|
// http bearer authentication required
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
240
|
+
_b.sent();
|
|
241
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
242
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
243
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
244
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
245
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
225
246
|
}
|
|
226
247
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
227
248
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -250,9 +271,10 @@ var DashboardGroupApiAxiosParamCreator = function (configuration) {
|
|
|
250
271
|
listDashboardGroups: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
251
272
|
if (options === void 0) { options = {}; }
|
|
252
273
|
return __awaiter(_this, void 0, void 0, function () {
|
|
253
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
254
|
-
|
|
255
|
-
|
|
274
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
275
|
+
var _a;
|
|
276
|
+
return __generator(this, function (_b) {
|
|
277
|
+
switch (_b.label) {
|
|
256
278
|
case 0:
|
|
257
279
|
localVarPath = "/tenantservice/v1/dashboards-groups";
|
|
258
280
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -269,7 +291,7 @@ var DashboardGroupApiAxiosParamCreator = function (configuration) {
|
|
|
269
291
|
case 1:
|
|
270
292
|
// authentication bearer required
|
|
271
293
|
// http bearer authentication required
|
|
272
|
-
|
|
294
|
+
_b.sent();
|
|
273
295
|
if (pageSize !== undefined) {
|
|
274
296
|
localVarQueryParameter['pageSize'] = pageSize;
|
|
275
297
|
}
|
|
@@ -291,8 +313,11 @@ var DashboardGroupApiAxiosParamCreator = function (configuration) {
|
|
|
291
313
|
if (filters !== undefined) {
|
|
292
314
|
localVarQueryParameter['filters'] = filters;
|
|
293
315
|
}
|
|
294
|
-
|
|
295
|
-
|
|
316
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
317
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
318
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
319
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
320
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
296
321
|
}
|
|
297
322
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
298
323
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -316,9 +341,10 @@ var DashboardGroupApiAxiosParamCreator = function (configuration) {
|
|
|
316
341
|
updateDashboardGroup: function (code, updateDashboardGroupRequestDto, authorization, options) {
|
|
317
342
|
if (options === void 0) { options = {}; }
|
|
318
343
|
return __awaiter(_this, void 0, void 0, function () {
|
|
319
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
320
|
-
|
|
321
|
-
|
|
344
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
345
|
+
var _a;
|
|
346
|
+
return __generator(this, function (_b) {
|
|
347
|
+
switch (_b.label) {
|
|
322
348
|
case 0:
|
|
323
349
|
// verify required parameter 'code' is not null or undefined
|
|
324
350
|
(0, common_1.assertParamExists)('updateDashboardGroup', 'code', code);
|
|
@@ -336,13 +362,19 @@ var DashboardGroupApiAxiosParamCreator = function (configuration) {
|
|
|
336
362
|
localVarQueryParameter = {};
|
|
337
363
|
// authentication bearer required
|
|
338
364
|
// http bearer authentication required
|
|
339
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
365
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
366
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
367
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
368
|
+
];
|
|
340
369
|
case 1:
|
|
341
370
|
// authentication bearer required
|
|
342
371
|
// http bearer authentication required
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
372
|
+
_b.sent();
|
|
373
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
374
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
375
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
376
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
377
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
346
378
|
}
|
|
347
379
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
348
380
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -564,7 +596,7 @@ var DashboardGroupApi = /** @class */ (function (_super) {
|
|
|
564
596
|
*/
|
|
565
597
|
DashboardGroupApi.prototype.createDashboardGroup = function (requestParameters, options) {
|
|
566
598
|
var _this = this;
|
|
567
|
-
return (0, exports.DashboardGroupApiFp)(this.configuration).createDashboardGroup(requestParameters.createDashboardGroupRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
599
|
+
return (0, exports.DashboardGroupApiFp)(this.configuration).createDashboardGroup(requestParameters.createDashboardGroupRequestDto, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
568
600
|
};
|
|
569
601
|
/**
|
|
570
602
|
* undefined **Required Permissions** \"pbm-management.dashboard-groups.delete\"
|
|
@@ -575,7 +607,7 @@ var DashboardGroupApi = /** @class */ (function (_super) {
|
|
|
575
607
|
*/
|
|
576
608
|
DashboardGroupApi.prototype.deleteDashboardGroup = function (requestParameters, options) {
|
|
577
609
|
var _this = this;
|
|
578
|
-
return (0, exports.DashboardGroupApiFp)(this.configuration).deleteDashboardGroup(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
610
|
+
return (0, exports.DashboardGroupApiFp)(this.configuration).deleteDashboardGroup(requestParameters.code, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
579
611
|
};
|
|
580
612
|
/**
|
|
581
613
|
* undefined **Required Permissions** \"pbm-management.dashboard-groups.view\"
|
|
@@ -586,7 +618,7 @@ var DashboardGroupApi = /** @class */ (function (_super) {
|
|
|
586
618
|
*/
|
|
587
619
|
DashboardGroupApi.prototype.getDashboardGroup = function (requestParameters, options) {
|
|
588
620
|
var _this = this;
|
|
589
|
-
return (0, exports.DashboardGroupApiFp)(this.configuration).getDashboardGroup(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
621
|
+
return (0, exports.DashboardGroupApiFp)(this.configuration).getDashboardGroup(requestParameters.code, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
590
622
|
};
|
|
591
623
|
/**
|
|
592
624
|
* undefined **Required Permissions** \"pbm-management.dashboard-groups.view\"
|
|
@@ -598,7 +630,7 @@ var DashboardGroupApi = /** @class */ (function (_super) {
|
|
|
598
630
|
DashboardGroupApi.prototype.listDashboardGroups = function (requestParameters, options) {
|
|
599
631
|
var _this = this;
|
|
600
632
|
if (requestParameters === void 0) { requestParameters = {}; }
|
|
601
|
-
return (0, exports.DashboardGroupApiFp)(this.configuration).listDashboardGroups(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
633
|
+
return (0, exports.DashboardGroupApiFp)(this.configuration).listDashboardGroups(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
602
634
|
};
|
|
603
635
|
/**
|
|
604
636
|
* undefined **Required Permissions** \"pbm-management.dashboard-groups.update\"
|
|
@@ -609,7 +641,7 @@ var DashboardGroupApi = /** @class */ (function (_super) {
|
|
|
609
641
|
*/
|
|
610
642
|
DashboardGroupApi.prototype.updateDashboardGroup = function (requestParameters, options) {
|
|
611
643
|
var _this = this;
|
|
612
|
-
return (0, exports.DashboardGroupApiFp)(this.configuration).updateDashboardGroup(requestParameters.code, requestParameters.updateDashboardGroupRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
644
|
+
return (0, exports.DashboardGroupApiFp)(this.configuration).updateDashboardGroup(requestParameters.code, requestParameters.updateDashboardGroupRequestDto, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
613
645
|
};
|
|
614
646
|
return DashboardGroupApi;
|
|
615
647
|
}(base_1.BaseAPI));
|
|
@@ -307,7 +307,7 @@ export declare class DataReportApi extends BaseAPI {
|
|
|
307
307
|
* @throws {RequiredError}
|
|
308
308
|
* @memberof DataReportApi
|
|
309
309
|
*/
|
|
310
|
-
createDataReport(requestParameters: DataReportApiCreateDataReportRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateDataReportResponseClass, any, {}>>;
|
|
310
|
+
createDataReport(requestParameters: DataReportApiCreateDataReportRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateDataReportResponseClass, any, {}, any>>;
|
|
311
311
|
/**
|
|
312
312
|
* Retrieves the details of the data-report that was previously created. Supply the unique data-report code that was returned when you created it and Emil Api will return the corresponding data-report information. **Required Permissions** \"tenant-management.datareports.view\"
|
|
313
313
|
* @summary Retrieve the data-report
|
|
@@ -316,7 +316,7 @@ export declare class DataReportApi extends BaseAPI {
|
|
|
316
316
|
* @throws {RequiredError}
|
|
317
317
|
* @memberof DataReportApi
|
|
318
318
|
*/
|
|
319
|
-
getDataReport(requestParameters: DataReportApiGetDataReportRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetDataReportResponseClass, any, {}>>;
|
|
319
|
+
getDataReport(requestParameters: DataReportApiGetDataReportRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetDataReportResponseClass, any, {}, any>>;
|
|
320
320
|
/**
|
|
321
321
|
* Returns a list of data-reports you have previously created. The data-reports are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"tenant-management.datareports.view\"
|
|
322
322
|
* @summary List data-reports
|
|
@@ -325,7 +325,7 @@ export declare class DataReportApi extends BaseAPI {
|
|
|
325
325
|
* @throws {RequiredError}
|
|
326
326
|
* @memberof DataReportApi
|
|
327
327
|
*/
|
|
328
|
-
listDataReports(requestParameters?: DataReportApiListDataReportsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListDataReportsResponseClass, any, {}>>;
|
|
328
|
+
listDataReports(requestParameters?: DataReportApiListDataReportsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListDataReportsResponseClass, any, {}, any>>;
|
|
329
329
|
/**
|
|
330
330
|
* Updates the specified data-report by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"tenant-management.datareports.update\"
|
|
331
331
|
* @summary Update the data-report
|
|
@@ -334,5 +334,5 @@ export declare class DataReportApi extends BaseAPI {
|
|
|
334
334
|
* @throws {RequiredError}
|
|
335
335
|
* @memberof DataReportApi
|
|
336
336
|
*/
|
|
337
|
-
updateDataReport(requestParameters: DataReportApiUpdateDataReportRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UpdateDataReportResponseClass, any, {}>>;
|
|
337
|
+
updateDataReport(requestParameters: DataReportApiUpdateDataReportRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UpdateDataReportResponseClass, any, {}, any>>;
|
|
338
338
|
}
|
|
@@ -103,9 +103,10 @@ var DataReportApiAxiosParamCreator = function (configuration) {
|
|
|
103
103
|
createDataReport: function (createDataReportRequestDto, authorization, options) {
|
|
104
104
|
if (options === void 0) { options = {}; }
|
|
105
105
|
return __awaiter(_this, void 0, void 0, function () {
|
|
106
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
107
|
-
|
|
108
|
-
|
|
106
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
107
|
+
var _a;
|
|
108
|
+
return __generator(this, function (_b) {
|
|
109
|
+
switch (_b.label) {
|
|
109
110
|
case 0:
|
|
110
111
|
// verify required parameter 'createDataReportRequestDto' is not null or undefined
|
|
111
112
|
(0, common_1.assertParamExists)('createDataReport', 'createDataReportRequestDto', createDataReportRequestDto);
|
|
@@ -120,13 +121,19 @@ var DataReportApiAxiosParamCreator = function (configuration) {
|
|
|
120
121
|
localVarQueryParameter = {};
|
|
121
122
|
// authentication bearer required
|
|
122
123
|
// http bearer authentication required
|
|
123
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
124
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
125
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
126
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
127
|
+
];
|
|
124
128
|
case 1:
|
|
125
129
|
// authentication bearer required
|
|
126
130
|
// http bearer authentication required
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
131
|
+
_b.sent();
|
|
132
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
133
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
134
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
135
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
136
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
130
137
|
}
|
|
131
138
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
132
139
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -153,9 +160,10 @@ var DataReportApiAxiosParamCreator = function (configuration) {
|
|
|
153
160
|
getDataReport: function (code, authorization, expand, options) {
|
|
154
161
|
if (options === void 0) { options = {}; }
|
|
155
162
|
return __awaiter(_this, void 0, void 0, function () {
|
|
156
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
157
|
-
|
|
158
|
-
|
|
163
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
164
|
+
var _a;
|
|
165
|
+
return __generator(this, function (_b) {
|
|
166
|
+
switch (_b.label) {
|
|
159
167
|
case 0:
|
|
160
168
|
// verify required parameter 'code' is not null or undefined
|
|
161
169
|
(0, common_1.assertParamExists)('getDataReport', 'code', code);
|
|
@@ -175,12 +183,15 @@ var DataReportApiAxiosParamCreator = function (configuration) {
|
|
|
175
183
|
case 1:
|
|
176
184
|
// authentication bearer required
|
|
177
185
|
// http bearer authentication required
|
|
178
|
-
|
|
186
|
+
_b.sent();
|
|
179
187
|
if (expand !== undefined) {
|
|
180
188
|
localVarQueryParameter['expand'] = expand;
|
|
181
189
|
}
|
|
182
|
-
|
|
183
|
-
|
|
190
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
191
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
192
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
193
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
194
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
184
195
|
}
|
|
185
196
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
186
197
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -210,9 +221,10 @@ var DataReportApiAxiosParamCreator = function (configuration) {
|
|
|
210
221
|
listDataReports: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
211
222
|
if (options === void 0) { options = {}; }
|
|
212
223
|
return __awaiter(_this, void 0, void 0, function () {
|
|
213
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
214
|
-
|
|
215
|
-
|
|
224
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
225
|
+
var _a;
|
|
226
|
+
return __generator(this, function (_b) {
|
|
227
|
+
switch (_b.label) {
|
|
216
228
|
case 0:
|
|
217
229
|
localVarPath = "/tenantservice/v1/data-reports";
|
|
218
230
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -229,7 +241,7 @@ var DataReportApiAxiosParamCreator = function (configuration) {
|
|
|
229
241
|
case 1:
|
|
230
242
|
// authentication bearer required
|
|
231
243
|
// http bearer authentication required
|
|
232
|
-
|
|
244
|
+
_b.sent();
|
|
233
245
|
if (pageSize !== undefined) {
|
|
234
246
|
localVarQueryParameter['pageSize'] = pageSize;
|
|
235
247
|
}
|
|
@@ -251,8 +263,11 @@ var DataReportApiAxiosParamCreator = function (configuration) {
|
|
|
251
263
|
if (filters !== undefined) {
|
|
252
264
|
localVarQueryParameter['filters'] = filters;
|
|
253
265
|
}
|
|
254
|
-
|
|
255
|
-
|
|
266
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
267
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
268
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
269
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
270
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
256
271
|
}
|
|
257
272
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
258
273
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -277,9 +292,10 @@ var DataReportApiAxiosParamCreator = function (configuration) {
|
|
|
277
292
|
updateDataReport: function (code, updateDataReportRequestDto, authorization, options) {
|
|
278
293
|
if (options === void 0) { options = {}; }
|
|
279
294
|
return __awaiter(_this, void 0, void 0, function () {
|
|
280
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
281
|
-
|
|
282
|
-
|
|
295
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
296
|
+
var _a;
|
|
297
|
+
return __generator(this, function (_b) {
|
|
298
|
+
switch (_b.label) {
|
|
283
299
|
case 0:
|
|
284
300
|
// verify required parameter 'code' is not null or undefined
|
|
285
301
|
(0, common_1.assertParamExists)('updateDataReport', 'code', code);
|
|
@@ -297,13 +313,19 @@ var DataReportApiAxiosParamCreator = function (configuration) {
|
|
|
297
313
|
localVarQueryParameter = {};
|
|
298
314
|
// authentication bearer required
|
|
299
315
|
// http bearer authentication required
|
|
300
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
316
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
317
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
318
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
319
|
+
];
|
|
301
320
|
case 1:
|
|
302
321
|
// authentication bearer required
|
|
303
322
|
// http bearer authentication required
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
323
|
+
_b.sent();
|
|
324
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
325
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
326
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
327
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
328
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
307
329
|
}
|
|
308
330
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
309
331
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -506,7 +528,7 @@ var DataReportApi = /** @class */ (function (_super) {
|
|
|
506
528
|
*/
|
|
507
529
|
DataReportApi.prototype.createDataReport = function (requestParameters, options) {
|
|
508
530
|
var _this = this;
|
|
509
|
-
return (0, exports.DataReportApiFp)(this.configuration).createDataReport(requestParameters.createDataReportRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
531
|
+
return (0, exports.DataReportApiFp)(this.configuration).createDataReport(requestParameters.createDataReportRequestDto, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
510
532
|
};
|
|
511
533
|
/**
|
|
512
534
|
* Retrieves the details of the data-report that was previously created. Supply the unique data-report code that was returned when you created it and Emil Api will return the corresponding data-report information. **Required Permissions** \"tenant-management.datareports.view\"
|
|
@@ -518,7 +540,7 @@ var DataReportApi = /** @class */ (function (_super) {
|
|
|
518
540
|
*/
|
|
519
541
|
DataReportApi.prototype.getDataReport = function (requestParameters, options) {
|
|
520
542
|
var _this = this;
|
|
521
|
-
return (0, exports.DataReportApiFp)(this.configuration).getDataReport(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
543
|
+
return (0, exports.DataReportApiFp)(this.configuration).getDataReport(requestParameters.code, requestParameters.authorization, requestParameters.expand, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
522
544
|
};
|
|
523
545
|
/**
|
|
524
546
|
* Returns a list of data-reports you have previously created. The data-reports are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"tenant-management.datareports.view\"
|
|
@@ -531,7 +553,7 @@ var DataReportApi = /** @class */ (function (_super) {
|
|
|
531
553
|
DataReportApi.prototype.listDataReports = function (requestParameters, options) {
|
|
532
554
|
var _this = this;
|
|
533
555
|
if (requestParameters === void 0) { requestParameters = {}; }
|
|
534
|
-
return (0, exports.DataReportApiFp)(this.configuration).listDataReports(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
556
|
+
return (0, exports.DataReportApiFp)(this.configuration).listDataReports(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
535
557
|
};
|
|
536
558
|
/**
|
|
537
559
|
* Updates the specified data-report by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"tenant-management.datareports.update\"
|
|
@@ -543,7 +565,7 @@ var DataReportApi = /** @class */ (function (_super) {
|
|
|
543
565
|
*/
|
|
544
566
|
DataReportApi.prototype.updateDataReport = function (requestParameters, options) {
|
|
545
567
|
var _this = this;
|
|
546
|
-
return (0, exports.DataReportApiFp)(this.configuration).updateDataReport(requestParameters.code, requestParameters.updateDataReportRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
568
|
+
return (0, exports.DataReportApiFp)(this.configuration).updateDataReport(requestParameters.code, requestParameters.updateDataReportRequestDto, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
547
569
|
};
|
|
548
570
|
return DataReportApi;
|
|
549
571
|
}(base_1.BaseAPI));
|
|
@@ -89,5 +89,5 @@ export declare class DataReportExecutorApi extends BaseAPI {
|
|
|
89
89
|
* @throws {RequiredError}
|
|
90
90
|
* @memberof DataReportExecutorApi
|
|
91
91
|
*/
|
|
92
|
-
runDataReport(requestParameters: DataReportExecutorApiRunDataReportRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<RunDataReportResponseClass, any, {}>>;
|
|
92
|
+
runDataReport(requestParameters: DataReportExecutorApiRunDataReportRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<RunDataReportResponseClass, any, {}, any>>;
|
|
93
93
|
}
|
|
@@ -102,9 +102,10 @@ var DataReportExecutorApiAxiosParamCreator = function (configuration) {
|
|
|
102
102
|
runDataReport: function (runDataReportRequestDto, authorization, options) {
|
|
103
103
|
if (options === void 0) { options = {}; }
|
|
104
104
|
return __awaiter(_this, void 0, void 0, function () {
|
|
105
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
106
|
-
|
|
107
|
-
|
|
105
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
106
|
+
var _a;
|
|
107
|
+
return __generator(this, function (_b) {
|
|
108
|
+
switch (_b.label) {
|
|
108
109
|
case 0:
|
|
109
110
|
// verify required parameter 'runDataReportRequestDto' is not null or undefined
|
|
110
111
|
(0, common_1.assertParamExists)('runDataReport', 'runDataReportRequestDto', runDataReportRequestDto);
|
|
@@ -119,13 +120,19 @@ var DataReportExecutorApiAxiosParamCreator = function (configuration) {
|
|
|
119
120
|
localVarQueryParameter = {};
|
|
120
121
|
// authentication bearer required
|
|
121
122
|
// http bearer authentication required
|
|
122
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
123
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
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
|
+
];
|
|
123
127
|
case 1:
|
|
124
128
|
// authentication bearer required
|
|
125
129
|
// http bearer authentication required
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
130
|
+
_b.sent();
|
|
131
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
132
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
133
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
134
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
135
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
129
136
|
}
|
|
130
137
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
131
138
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -213,7 +220,7 @@ var DataReportExecutorApi = /** @class */ (function (_super) {
|
|
|
213
220
|
*/
|
|
214
221
|
DataReportExecutorApi.prototype.runDataReport = function (requestParameters, options) {
|
|
215
222
|
var _this = this;
|
|
216
|
-
return (0, exports.DataReportExecutorApiFp)(this.configuration).runDataReport(requestParameters.runDataReportRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
223
|
+
return (0, exports.DataReportExecutorApiFp)(this.configuration).runDataReport(requestParameters.runDataReportRequestDto, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
217
224
|
};
|
|
218
225
|
return DataReportExecutorApi;
|
|
219
226
|
}(base_1.BaseAPI));
|
|
@@ -92,5 +92,5 @@ export declare class DeleteOrganizationInvitationsApi extends BaseAPI {
|
|
|
92
92
|
* @throws {RequiredError}
|
|
93
93
|
* @memberof DeleteOrganizationInvitationsApi
|
|
94
94
|
*/
|
|
95
|
-
deleteOrgInvitation(requestParameters: DeleteOrganizationInvitationsApiDeleteOrgInvitationRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<DeleteResponseClass, any, {}>>;
|
|
95
|
+
deleteOrgInvitation(requestParameters: DeleteOrganizationInvitationsApiDeleteOrgInvitationRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<DeleteResponseClass, any, {}, any>>;
|
|
96
96
|
}
|