@emilgroup/tenant-sdk-node 1.29.1-beta.1 → 1.31.0
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 +9 -0
- package/README.md +2 -2
- package/api/invite-users-api.ts +4 -4
- package/api/organization-migration-api.ts +683 -0
- package/api/users-api.ts +4 -4
- package/api.ts +2 -0
- package/base.ts +45 -3
- package/dist/api/custom-schema-api.js +14 -39
- package/dist/api/dashboard-api.js +29 -74
- package/dist/api/dashboard-group-api.js +17 -46
- package/dist/api/data-report-api.js +14 -39
- package/dist/api/data-report-executor-api.js +5 -18
- package/dist/api/delete-organization-invitations-api.js +5 -18
- package/dist/api/health-check-api.js +5 -18
- package/dist/api/invite-organizations-api.js +5 -18
- package/dist/api/invite-users-api.d.ts +4 -4
- package/dist/api/invite-users-api.js +17 -42
- package/dist/api/list-organization-invitations-api.js +5 -18
- package/dist/api/organization-migration-api.d.ts +385 -0
- package/dist/api/organization-migration-api.js +639 -0
- package/dist/api/organizations-api.js +11 -32
- package/dist/api/re-invite-an-organization-api.js +5 -18
- package/dist/api/roles-api.js +5 -18
- package/dist/api/settings-api.js +5 -18
- package/dist/api/users-api.d.ts +4 -4
- package/dist/api/users-api.js +26 -63
- package/dist/api.d.ts +1 -0
- package/dist/api.js +1 -0
- package/dist/base.d.ts +11 -2
- package/dist/base.js +56 -27
- package/dist/common.d.ts +1 -1
- package/dist/common.js +2 -2
- package/dist/models/create-organization-migration-request-dto.d.ts +42 -0
- package/dist/models/create-organization-migration-request-dto.js +15 -0
- package/dist/models/create-organization-migration-response-class.d.ts +25 -0
- package/dist/models/create-organization-migration-response-class.js +15 -0
- package/dist/models/create-resources-migration-request-dto.d.ts +36 -0
- package/dist/models/create-resources-migration-request-dto.js +15 -0
- package/dist/models/get-organization-migration-response-class.d.ts +25 -0
- package/dist/models/get-organization-migration-response-class.js +15 -0
- package/dist/models/index.d.ts +8 -0
- package/dist/models/index.js +8 -0
- package/dist/models/link-user-with-partner-request-dto-rest.d.ts +6 -0
- package/dist/models/list-organization-migrations-response-class.d.ts +43 -0
- package/dist/models/list-organization-migrations-response-class.js +15 -0
- package/dist/models/org-invitation-class.d.ts +6 -0
- package/dist/models/organization-migration-class.d.ts +81 -0
- package/dist/models/organization-migration-class.js +24 -0
- package/dist/models/revert-organization-migration-request-dto.d.ts +30 -0
- package/dist/models/revert-organization-migration-request-dto.js +15 -0
- package/dist/models/revert-organization-migration-response-class.d.ts +25 -0
- package/dist/models/revert-organization-migration-response-class.js +15 -0
- package/models/create-organization-migration-request-dto.ts +48 -0
- package/models/create-organization-migration-response-class.ts +31 -0
- package/models/create-resources-migration-request-dto.ts +42 -0
- package/models/get-organization-migration-response-class.ts +31 -0
- package/models/index.ts +8 -0
- package/models/link-user-with-partner-request-dto-rest.ts +6 -0
- package/models/list-organization-migrations-response-class.ts +49 -0
- package/models/org-invitation-class.ts +6 -0
- package/models/organization-migration-class.ts +90 -0
- package/models/revert-organization-migration-request-dto.ts +36 -0
- package/models/revert-organization-migration-response-class.ts +31 -0
- package/package.json +4 -4
package/api/users-api.ts
CHANGED
|
@@ -350,7 +350,7 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
350
350
|
* @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.
|
|
351
351
|
* @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, sub, status, organizationId, ern, partnerCode</i>
|
|
352
352
|
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
353
|
-
* @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: email</i>
|
|
353
|
+
* @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</i>
|
|
354
354
|
* @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: subscriptions, organizations<i>
|
|
355
355
|
* @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, sub, status, organizationId, ern, partnerCode</i>
|
|
356
356
|
* @param {*} [options] Override http request option.
|
|
@@ -506,7 +506,7 @@ export const UsersApiFp = function(configuration?: Configuration) {
|
|
|
506
506
|
* @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.
|
|
507
507
|
* @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, sub, status, organizationId, ern, partnerCode</i>
|
|
508
508
|
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
509
|
-
* @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: email</i>
|
|
509
|
+
* @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</i>
|
|
510
510
|
* @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: subscriptions, organizations<i>
|
|
511
511
|
* @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, sub, status, organizationId, ern, partnerCode</i>
|
|
512
512
|
* @param {*} [options] Override http request option.
|
|
@@ -598,7 +598,7 @@ export const UsersApiFactory = function (configuration?: Configuration, basePath
|
|
|
598
598
|
* @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.
|
|
599
599
|
* @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, sub, status, organizationId, ern, partnerCode</i>
|
|
600
600
|
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
601
|
-
* @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: email</i>
|
|
601
|
+
* @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</i>
|
|
602
602
|
* @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: subscriptions, organizations<i>
|
|
603
603
|
* @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, sub, status, organizationId, ern, partnerCode</i>
|
|
604
604
|
* @param {*} [options] Override http request option.
|
|
@@ -799,7 +799,7 @@ export interface UsersApiListUsersRequest {
|
|
|
799
799
|
readonly search?: string
|
|
800
800
|
|
|
801
801
|
/**
|
|
802
|
-
* 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: email</i>
|
|
802
|
+
* 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</i>
|
|
803
803
|
* @type {string}
|
|
804
804
|
* @memberof UsersApiListUsers
|
|
805
805
|
*/
|
package/api.ts
CHANGED
|
@@ -34,6 +34,7 @@ import { HealthCheckApi } from './api';
|
|
|
34
34
|
import { InviteOrganizationsApi } from './api';
|
|
35
35
|
import { InviteUsersApi } from './api';
|
|
36
36
|
import { ListOrganizationInvitationsApi } from './api';
|
|
37
|
+
import { OrganizationMigrationApi } from './api';
|
|
37
38
|
import { OrganizationsApi } from './api';
|
|
38
39
|
import { ReInviteAnOrganizationApi } from './api';
|
|
39
40
|
import { RolesApi } from './api';
|
|
@@ -51,6 +52,7 @@ export * from './api/health-check-api';
|
|
|
51
52
|
export * from './api/invite-organizations-api';
|
|
52
53
|
export * from './api/invite-users-api';
|
|
53
54
|
export * from './api/list-organization-invitations-api';
|
|
55
|
+
export * from './api/organization-migration-api';
|
|
54
56
|
export * from './api/organizations-api';
|
|
55
57
|
export * from './api/re-invite-an-organization-api';
|
|
56
58
|
export * from './api/roles-api';
|
package/base.ts
CHANGED
|
@@ -44,6 +44,16 @@ export interface LoginClass {
|
|
|
44
44
|
permissions: string;
|
|
45
45
|
}
|
|
46
46
|
|
|
47
|
+
export interface SwitchWorkspaceRequest {
|
|
48
|
+
username: string;
|
|
49
|
+
targetWorkspace: string;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export interface SwitchWorkspaceResponseClass {
|
|
53
|
+
accessToken: string;
|
|
54
|
+
permissions: string;
|
|
55
|
+
}
|
|
56
|
+
|
|
47
57
|
export enum Environment {
|
|
48
58
|
Production = 'https://apiv2.emil.de',
|
|
49
59
|
Test = 'https://apiv2-test.emil.de',
|
|
@@ -94,13 +104,13 @@ export class BaseAPI {
|
|
|
94
104
|
this.attachInterceptor(axios);
|
|
95
105
|
}
|
|
96
106
|
|
|
97
|
-
async initialize(env: Environment = Environment.Production) {
|
|
107
|
+
async initialize(env: Environment = Environment.Production, targetWorkspace?: string) {
|
|
98
108
|
this.configuration.basePath = env;
|
|
99
109
|
|
|
100
110
|
await this.loadCredentials();
|
|
101
111
|
|
|
102
112
|
if (this.username) {
|
|
103
|
-
await this.authorize(this.username, this.password);
|
|
113
|
+
await this.authorize(this.username, this.password, targetWorkspace);
|
|
104
114
|
this.password = null; // to avoid keeping password loaded in memory.
|
|
105
115
|
}
|
|
106
116
|
}
|
|
@@ -150,7 +160,7 @@ export class BaseAPI {
|
|
|
150
160
|
this.configuration.basePath = env;
|
|
151
161
|
}
|
|
152
162
|
|
|
153
|
-
async authorize(username: string, password: string): Promise<void> {
|
|
163
|
+
async authorize(username: string, password: string, targetWorkspace?: string): Promise<void> {
|
|
154
164
|
const options: AxiosRequestConfig = {
|
|
155
165
|
method: 'POST',
|
|
156
166
|
url: `${this.configuration.basePath}/authservice/v1/login`,
|
|
@@ -170,6 +180,38 @@ export class BaseAPI {
|
|
|
170
180
|
|
|
171
181
|
const refreshToken = this.extractRefreshToken(response)
|
|
172
182
|
this.configuration.refreshToken = refreshToken;
|
|
183
|
+
|
|
184
|
+
// Switch workspace if provided
|
|
185
|
+
if (targetWorkspace) {
|
|
186
|
+
await this.switchWorkspace(targetWorkspace);
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
async switchWorkspace(targetWorkspace: string): Promise<void> {
|
|
191
|
+
const options: AxiosRequestConfig = {
|
|
192
|
+
method: 'POST',
|
|
193
|
+
url: `${this.configuration.basePath}/authservice/v1/workspaces/switch`,
|
|
194
|
+
headers: {
|
|
195
|
+
'Content-Type': 'application/json',
|
|
196
|
+
'Authorization': `Bearer ${this.configuration.accessToken}`,
|
|
197
|
+
'Cookie': this.configuration.refreshToken,
|
|
198
|
+
},
|
|
199
|
+
data: {
|
|
200
|
+
username: this.configuration.username,
|
|
201
|
+
targetWorkspace,
|
|
202
|
+
} as SwitchWorkspaceRequest,
|
|
203
|
+
withCredentials: true,
|
|
204
|
+
};
|
|
205
|
+
|
|
206
|
+
const response = await globalAxios.request<SwitchWorkspaceResponseClass>(options);
|
|
207
|
+
|
|
208
|
+
const { data: { accessToken } } = response;
|
|
209
|
+
this.configuration.accessToken = `Bearer ${accessToken}`;
|
|
210
|
+
|
|
211
|
+
const refreshToken = this.extractRefreshToken(response);
|
|
212
|
+
if (refreshToken) {
|
|
213
|
+
this.configuration.refreshToken = refreshToken;
|
|
214
|
+
}
|
|
173
215
|
}
|
|
174
216
|
|
|
175
217
|
async refreshTokenInternal(): Promise<string> {
|
|
@@ -48,8 +48,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
48
48
|
});
|
|
49
49
|
};
|
|
50
50
|
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
51
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g
|
|
52
|
-
return g
|
|
51
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
52
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
53
53
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
54
54
|
function step(op) {
|
|
55
55
|
if (f) throw new TypeError("Generator is already executing.");
|
|
@@ -74,15 +74,6 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
74
74
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
75
75
|
}
|
|
76
76
|
};
|
|
77
|
-
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
78
|
-
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
79
|
-
if (ar || !(i in from)) {
|
|
80
|
-
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
81
|
-
ar[i] = from[i];
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
|
85
|
-
};
|
|
86
77
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
87
78
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
88
79
|
};
|
|
@@ -113,14 +104,10 @@ var CustomSchemaApiAxiosParamCreator = function (configuration) {
|
|
|
113
104
|
* @param {*} [options] Override http request option.
|
|
114
105
|
* @throws {RequiredError}
|
|
115
106
|
*/
|
|
116
|
-
createCustomSchema: function (
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
args_1[_i - 2] = arguments[_i];
|
|
120
|
-
}
|
|
121
|
-
return __awaiter(_this, __spreadArray([createCustomSchemaRequestDto_1, authorization_1], args_1, true), void 0, function (createCustomSchemaRequestDto, authorization, options) {
|
|
107
|
+
createCustomSchema: function (createCustomSchemaRequestDto, authorization, options) {
|
|
108
|
+
if (options === void 0) { options = {}; }
|
|
109
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
122
110
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
123
|
-
if (options === void 0) { options = {}; }
|
|
124
111
|
return __generator(this, function (_a) {
|
|
125
112
|
switch (_a.label) {
|
|
126
113
|
case 0:
|
|
@@ -167,14 +154,10 @@ var CustomSchemaApiAxiosParamCreator = function (configuration) {
|
|
|
167
154
|
* @param {*} [options] Override http request option.
|
|
168
155
|
* @throws {RequiredError}
|
|
169
156
|
*/
|
|
170
|
-
getCustomSchema: function (
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
args_1[_i - 3] = arguments[_i];
|
|
174
|
-
}
|
|
175
|
-
return __awaiter(_this, __spreadArray([code_1, authorization_1, expand_1], args_1, true), void 0, function (code, authorization, expand, options) {
|
|
157
|
+
getCustomSchema: function (code, authorization, expand, options) {
|
|
158
|
+
if (options === void 0) { options = {}; }
|
|
159
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
176
160
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
177
|
-
if (options === void 0) { options = {}; }
|
|
178
161
|
return __generator(this, function (_a) {
|
|
179
162
|
switch (_a.label) {
|
|
180
163
|
case 0:
|
|
@@ -228,14 +211,10 @@ var CustomSchemaApiAxiosParamCreator = function (configuration) {
|
|
|
228
211
|
* @param {*} [options] Override http request option.
|
|
229
212
|
* @throws {RequiredError}
|
|
230
213
|
*/
|
|
231
|
-
listCustomSchemas: function (
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
args_1[_i - 8] = arguments[_i];
|
|
235
|
-
}
|
|
236
|
-
return __awaiter(_this, __spreadArray([authorization_1, pageSize_1, pageToken_1, filter_1, search_1, order_1, expand_1, filters_1], args_1, true), void 0, function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
214
|
+
listCustomSchemas: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
215
|
+
if (options === void 0) { options = {}; }
|
|
216
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
237
217
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
238
|
-
if (options === void 0) { options = {}; }
|
|
239
218
|
return __generator(this, function (_a) {
|
|
240
219
|
switch (_a.label) {
|
|
241
220
|
case 0:
|
|
@@ -299,14 +278,10 @@ var CustomSchemaApiAxiosParamCreator = function (configuration) {
|
|
|
299
278
|
* @param {*} [options] Override http request option.
|
|
300
279
|
* @throws {RequiredError}
|
|
301
280
|
*/
|
|
302
|
-
updateCustomSchema: function (
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
args_1[_i - 3] = arguments[_i];
|
|
306
|
-
}
|
|
307
|
-
return __awaiter(_this, __spreadArray([code_1, updateCustomSchemaRequestDto_1, authorization_1], args_1, true), void 0, function (code, updateCustomSchemaRequestDto, authorization, options) {
|
|
281
|
+
updateCustomSchema: function (code, updateCustomSchemaRequestDto, authorization, options) {
|
|
282
|
+
if (options === void 0) { options = {}; }
|
|
283
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
308
284
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
309
|
-
if (options === void 0) { options = {}; }
|
|
310
285
|
return __generator(this, function (_a) {
|
|
311
286
|
switch (_a.label) {
|
|
312
287
|
case 0:
|
|
@@ -48,8 +48,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
48
48
|
});
|
|
49
49
|
};
|
|
50
50
|
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
51
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g
|
|
52
|
-
return g
|
|
51
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
52
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
53
53
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
54
54
|
function step(op) {
|
|
55
55
|
if (f) throw new TypeError("Generator is already executing.");
|
|
@@ -74,15 +74,6 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
74
74
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
75
75
|
}
|
|
76
76
|
};
|
|
77
|
-
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
78
|
-
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
79
|
-
if (ar || !(i in from)) {
|
|
80
|
-
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
81
|
-
ar[i] = from[i];
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
|
85
|
-
};
|
|
86
77
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
87
78
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
88
79
|
};
|
|
@@ -112,14 +103,10 @@ var DashboardApiAxiosParamCreator = function (configuration) {
|
|
|
112
103
|
* @param {*} [options] Override http request option.
|
|
113
104
|
* @throws {RequiredError}
|
|
114
105
|
*/
|
|
115
|
-
createDashboard: function (
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
args_1[_i - 2] = arguments[_i];
|
|
119
|
-
}
|
|
120
|
-
return __awaiter(_this, __spreadArray([createDashboardRequestDto_1, authorization_1], args_1, true), void 0, function (createDashboardRequestDto, authorization, options) {
|
|
106
|
+
createDashboard: function (createDashboardRequestDto, authorization, options) {
|
|
107
|
+
if (options === void 0) { options = {}; }
|
|
108
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
121
109
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
122
|
-
if (options === void 0) { options = {}; }
|
|
123
110
|
return __generator(this, function (_a) {
|
|
124
111
|
switch (_a.label) {
|
|
125
112
|
case 0:
|
|
@@ -164,14 +151,10 @@ var DashboardApiAxiosParamCreator = function (configuration) {
|
|
|
164
151
|
* @param {*} [options] Override http request option.
|
|
165
152
|
* @throws {RequiredError}
|
|
166
153
|
*/
|
|
167
|
-
deleteDashboard: function (
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
args_1[_i - 2] = arguments[_i];
|
|
171
|
-
}
|
|
172
|
-
return __awaiter(_this, __spreadArray([code_1, authorization_1], args_1, true), void 0, function (code, authorization, options) {
|
|
154
|
+
deleteDashboard: function (code, authorization, options) {
|
|
155
|
+
if (options === void 0) { options = {}; }
|
|
156
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
173
157
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
174
|
-
if (options === void 0) { options = {}; }
|
|
175
158
|
return __generator(this, function (_a) {
|
|
176
159
|
switch (_a.label) {
|
|
177
160
|
case 0:
|
|
@@ -215,14 +198,10 @@ var DashboardApiAxiosParamCreator = function (configuration) {
|
|
|
215
198
|
* @param {*} [options] Override http request option.
|
|
216
199
|
* @throws {RequiredError}
|
|
217
200
|
*/
|
|
218
|
-
getAnalysisEmbeddedUrl: function (
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
args_1[_i - 2] = arguments[_i];
|
|
222
|
-
}
|
|
223
|
-
return __awaiter(_this, __spreadArray([providerDashboardId_1, authorization_1], args_1, true), void 0, function (providerDashboardId, authorization, options) {
|
|
201
|
+
getAnalysisEmbeddedUrl: function (providerDashboardId, authorization, options) {
|
|
202
|
+
if (options === void 0) { options = {}; }
|
|
203
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
224
204
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
225
|
-
if (options === void 0) { options = {}; }
|
|
226
205
|
return __generator(this, function (_a) {
|
|
227
206
|
switch (_a.label) {
|
|
228
207
|
case 0:
|
|
@@ -266,14 +245,10 @@ var DashboardApiAxiosParamCreator = function (configuration) {
|
|
|
266
245
|
* @param {*} [options] Override http request option.
|
|
267
246
|
* @throws {RequiredError}
|
|
268
247
|
*/
|
|
269
|
-
getDashboard: function (
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
args_1[_i - 2] = arguments[_i];
|
|
273
|
-
}
|
|
274
|
-
return __awaiter(_this, __spreadArray([code_1, authorization_1], args_1, true), void 0, function (code, authorization, options) {
|
|
248
|
+
getDashboard: function (code, authorization, options) {
|
|
249
|
+
if (options === void 0) { options = {}; }
|
|
250
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
275
251
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
276
|
-
if (options === void 0) { options = {}; }
|
|
277
252
|
return __generator(this, function (_a) {
|
|
278
253
|
switch (_a.label) {
|
|
279
254
|
case 0:
|
|
@@ -317,14 +292,10 @@ var DashboardApiAxiosParamCreator = function (configuration) {
|
|
|
317
292
|
* @param {*} [options] Override http request option.
|
|
318
293
|
* @throws {RequiredError}
|
|
319
294
|
*/
|
|
320
|
-
getDashboardEmbeddedUrl: function (
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
args_1[_i - 2] = arguments[_i];
|
|
324
|
-
}
|
|
325
|
-
return __awaiter(_this, __spreadArray([providerDashboardId_1, authorization_1], args_1, true), void 0, function (providerDashboardId, authorization, options) {
|
|
295
|
+
getDashboardEmbeddedUrl: function (providerDashboardId, authorization, options) {
|
|
296
|
+
if (options === void 0) { options = {}; }
|
|
297
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
326
298
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
327
|
-
if (options === void 0) { options = {}; }
|
|
328
299
|
return __generator(this, function (_a) {
|
|
329
300
|
switch (_a.label) {
|
|
330
301
|
case 0:
|
|
@@ -374,14 +345,10 @@ var DashboardApiAxiosParamCreator = function (configuration) {
|
|
|
374
345
|
* @param {*} [options] Override http request option.
|
|
375
346
|
* @throws {RequiredError}
|
|
376
347
|
*/
|
|
377
|
-
listDashboards: function (
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
args_1[_i - 8] = arguments[_i];
|
|
381
|
-
}
|
|
382
|
-
return __awaiter(_this, __spreadArray([authorization_1, pageSize_1, pageToken_1, filter_1, search_1, order_1, expand_1, filters_1], args_1, true), void 0, function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
348
|
+
listDashboards: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
349
|
+
if (options === void 0) { options = {}; }
|
|
350
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
383
351
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
384
|
-
if (options === void 0) { options = {}; }
|
|
385
352
|
return __generator(this, function (_a) {
|
|
386
353
|
switch (_a.label) {
|
|
387
354
|
case 0:
|
|
@@ -443,14 +410,10 @@ var DashboardApiAxiosParamCreator = function (configuration) {
|
|
|
443
410
|
* @param {*} [options] Override http request option.
|
|
444
411
|
* @throws {RequiredError}
|
|
445
412
|
*/
|
|
446
|
-
publishDashboard: function (
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
args_1[_i - 2] = arguments[_i];
|
|
450
|
-
}
|
|
451
|
-
return __awaiter(_this, __spreadArray([publishDashboardRequestDto_1, authorization_1], args_1, true), void 0, function (publishDashboardRequestDto, authorization, options) {
|
|
413
|
+
publishDashboard: function (publishDashboardRequestDto, authorization, options) {
|
|
414
|
+
if (options === void 0) { options = {}; }
|
|
415
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
452
416
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
453
|
-
if (options === void 0) { options = {}; }
|
|
454
417
|
return __generator(this, function (_a) {
|
|
455
418
|
switch (_a.label) {
|
|
456
419
|
case 0:
|
|
@@ -495,14 +458,10 @@ var DashboardApiAxiosParamCreator = function (configuration) {
|
|
|
495
458
|
* @param {*} [options] Override http request option.
|
|
496
459
|
* @throws {RequiredError}
|
|
497
460
|
*/
|
|
498
|
-
revertAnalysis: function (
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
args_1[_i - 2] = arguments[_i];
|
|
502
|
-
}
|
|
503
|
-
return __awaiter(_this, __spreadArray([revertAnalysisRequestDto_1, authorization_1], args_1, true), void 0, function (revertAnalysisRequestDto, authorization, options) {
|
|
461
|
+
revertAnalysis: function (revertAnalysisRequestDto, authorization, options) {
|
|
462
|
+
if (options === void 0) { options = {}; }
|
|
463
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
504
464
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
505
|
-
if (options === void 0) { options = {}; }
|
|
506
465
|
return __generator(this, function (_a) {
|
|
507
466
|
switch (_a.label) {
|
|
508
467
|
case 0:
|
|
@@ -548,14 +507,10 @@ var DashboardApiAxiosParamCreator = function (configuration) {
|
|
|
548
507
|
* @param {*} [options] Override http request option.
|
|
549
508
|
* @throws {RequiredError}
|
|
550
509
|
*/
|
|
551
|
-
updateDashboard: function (
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
args_1[_i - 3] = arguments[_i];
|
|
555
|
-
}
|
|
556
|
-
return __awaiter(_this, __spreadArray([code_1, updateDashboardRequestDto_1, authorization_1], args_1, true), void 0, function (code, updateDashboardRequestDto, authorization, options) {
|
|
510
|
+
updateDashboard: function (code, updateDashboardRequestDto, authorization, options) {
|
|
511
|
+
if (options === void 0) { options = {}; }
|
|
512
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
557
513
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
558
|
-
if (options === void 0) { options = {}; }
|
|
559
514
|
return __generator(this, function (_a) {
|
|
560
515
|
switch (_a.label) {
|
|
561
516
|
case 0:
|
|
@@ -48,8 +48,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
48
48
|
});
|
|
49
49
|
};
|
|
50
50
|
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
51
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g
|
|
52
|
-
return g
|
|
51
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
52
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
53
53
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
54
54
|
function step(op) {
|
|
55
55
|
if (f) throw new TypeError("Generator is already executing.");
|
|
@@ -74,15 +74,6 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
74
74
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
75
75
|
}
|
|
76
76
|
};
|
|
77
|
-
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
78
|
-
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
79
|
-
if (ar || !(i in from)) {
|
|
80
|
-
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
81
|
-
ar[i] = from[i];
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
|
85
|
-
};
|
|
86
77
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
87
78
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
88
79
|
};
|
|
@@ -112,14 +103,10 @@ var DashboardGroupApiAxiosParamCreator = function (configuration) {
|
|
|
112
103
|
* @param {*} [options] Override http request option.
|
|
113
104
|
* @throws {RequiredError}
|
|
114
105
|
*/
|
|
115
|
-
createDashboardGroup: function (
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
args_1[_i - 2] = arguments[_i];
|
|
119
|
-
}
|
|
120
|
-
return __awaiter(_this, __spreadArray([createDashboardGroupRequestDto_1, authorization_1], args_1, true), void 0, function (createDashboardGroupRequestDto, authorization, options) {
|
|
106
|
+
createDashboardGroup: function (createDashboardGroupRequestDto, authorization, options) {
|
|
107
|
+
if (options === void 0) { options = {}; }
|
|
108
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
121
109
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
122
|
-
if (options === void 0) { options = {}; }
|
|
123
110
|
return __generator(this, function (_a) {
|
|
124
111
|
switch (_a.label) {
|
|
125
112
|
case 0:
|
|
@@ -164,14 +151,10 @@ var DashboardGroupApiAxiosParamCreator = function (configuration) {
|
|
|
164
151
|
* @param {*} [options] Override http request option.
|
|
165
152
|
* @throws {RequiredError}
|
|
166
153
|
*/
|
|
167
|
-
deleteDashboardGroup: function (
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
args_1[_i - 2] = arguments[_i];
|
|
171
|
-
}
|
|
172
|
-
return __awaiter(_this, __spreadArray([code_1, authorization_1], args_1, true), void 0, function (code, authorization, options) {
|
|
154
|
+
deleteDashboardGroup: function (code, authorization, options) {
|
|
155
|
+
if (options === void 0) { options = {}; }
|
|
156
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
173
157
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
174
|
-
if (options === void 0) { options = {}; }
|
|
175
158
|
return __generator(this, function (_a) {
|
|
176
159
|
switch (_a.label) {
|
|
177
160
|
case 0:
|
|
@@ -215,14 +198,10 @@ var DashboardGroupApiAxiosParamCreator = function (configuration) {
|
|
|
215
198
|
* @param {*} [options] Override http request option.
|
|
216
199
|
* @throws {RequiredError}
|
|
217
200
|
*/
|
|
218
|
-
getDashboardGroup: function (
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
args_1[_i - 2] = arguments[_i];
|
|
222
|
-
}
|
|
223
|
-
return __awaiter(_this, __spreadArray([code_1, authorization_1], args_1, true), void 0, function (code, authorization, options) {
|
|
201
|
+
getDashboardGroup: function (code, authorization, options) {
|
|
202
|
+
if (options === void 0) { options = {}; }
|
|
203
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
224
204
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
225
|
-
if (options === void 0) { options = {}; }
|
|
226
205
|
return __generator(this, function (_a) {
|
|
227
206
|
switch (_a.label) {
|
|
228
207
|
case 0:
|
|
@@ -272,14 +251,10 @@ var DashboardGroupApiAxiosParamCreator = function (configuration) {
|
|
|
272
251
|
* @param {*} [options] Override http request option.
|
|
273
252
|
* @throws {RequiredError}
|
|
274
253
|
*/
|
|
275
|
-
listDashboardGroups: function (
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
args_1[_i - 8] = arguments[_i];
|
|
279
|
-
}
|
|
280
|
-
return __awaiter(_this, __spreadArray([authorization_1, pageSize_1, pageToken_1, filter_1, search_1, order_1, expand_1, filters_1], args_1, true), void 0, function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
254
|
+
listDashboardGroups: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
255
|
+
if (options === void 0) { options = {}; }
|
|
256
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
281
257
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
282
|
-
if (options === void 0) { options = {}; }
|
|
283
258
|
return __generator(this, function (_a) {
|
|
284
259
|
switch (_a.label) {
|
|
285
260
|
case 0:
|
|
@@ -342,14 +317,10 @@ var DashboardGroupApiAxiosParamCreator = function (configuration) {
|
|
|
342
317
|
* @param {*} [options] Override http request option.
|
|
343
318
|
* @throws {RequiredError}
|
|
344
319
|
*/
|
|
345
|
-
updateDashboardGroup: function (
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
args_1[_i - 3] = arguments[_i];
|
|
349
|
-
}
|
|
350
|
-
return __awaiter(_this, __spreadArray([code_1, updateDashboardGroupRequestDto_1, authorization_1], args_1, true), void 0, function (code, updateDashboardGroupRequestDto, authorization, options) {
|
|
320
|
+
updateDashboardGroup: function (code, updateDashboardGroupRequestDto, authorization, options) {
|
|
321
|
+
if (options === void 0) { options = {}; }
|
|
322
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
351
323
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
352
|
-
if (options === void 0) { options = {}; }
|
|
353
324
|
return __generator(this, function (_a) {
|
|
354
325
|
switch (_a.label) {
|
|
355
326
|
case 0:
|