@emilgroup/tenant-sdk 1.31.1-beta.2 → 1.31.1-beta.3
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 +2 -0
- package/README.md +2 -2
- package/api/dashboard-api.ts +103 -0
- package/api/invite-users-api.ts +4 -4
- package/api/organization-migration-api.ts +113 -8
- package/dist/api/dashboard-api.d.ts +56 -0
- package/dist/api/dashboard-api.js +92 -0
- package/dist/api/invite-users-api.d.ts +4 -4
- package/dist/api/invite-users-api.js +3 -3
- package/dist/api/organization-migration-api.d.ts +64 -8
- package/dist/api/organization-migration-api.js +101 -8
- package/dist/models/create-organization-migration-request-dto.d.ts +6 -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/duplicate-dashboard-response-class.d.ts +25 -0
- package/dist/models/duplicate-dashboard-response-class.js +15 -0
- package/dist/models/index.d.ts +2 -0
- package/dist/models/index.js +2 -0
- package/models/create-organization-migration-request-dto.ts +6 -0
- package/models/create-resources-migration-request-dto.ts +42 -0
- package/models/duplicate-dashboard-response-class.ts +31 -0
- package/models/index.ts +2 -0
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -40,6 +40,7 @@ models/create-data-report-request-dto.ts
|
|
|
40
40
|
models/create-data-report-response-class.ts
|
|
41
41
|
models/create-organization-migration-request-dto.ts
|
|
42
42
|
models/create-organization-migration-response-class.ts
|
|
43
|
+
models/create-resources-migration-request-dto.ts
|
|
43
44
|
models/create-tenant-request-dto.ts
|
|
44
45
|
models/custom-field-dto.ts
|
|
45
46
|
models/custom-schema-class.ts
|
|
@@ -54,6 +55,7 @@ models/dbconfig-dto.ts
|
|
|
54
55
|
models/delete-response-class.ts
|
|
55
56
|
models/disable-users-request-dto.ts
|
|
56
57
|
models/disable-users-response-class.ts
|
|
58
|
+
models/duplicate-dashboard-response-class.ts
|
|
57
59
|
models/enable-users-request-dto.ts
|
|
58
60
|
models/enable-users-response-class.ts
|
|
59
61
|
models/format-tenant-settings-class.ts
|
package/README.md
CHANGED
|
@@ -17,11 +17,11 @@ Although this package can be used in both TypeScript and JavaScript, it is inten
|
|
|
17
17
|
Navigate to the folder of your consuming project and run one of the following commands:
|
|
18
18
|
|
|
19
19
|
```
|
|
20
|
-
npm install @emilgroup/tenant-sdk@1.31.1-beta.
|
|
20
|
+
npm install @emilgroup/tenant-sdk@1.31.1-beta.3 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/tenant-sdk@1.31.1-beta.
|
|
24
|
+
yarn add @emilgroup/tenant-sdk@1.31.1-beta.3
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `UsersApi`.
|
package/api/dashboard-api.ts
CHANGED
|
@@ -31,6 +31,8 @@ import { CreateDashboardV2ResponseClass } from '../models';
|
|
|
31
31
|
// @ts-ignore
|
|
32
32
|
import { DeleteResponseClass } from '../models';
|
|
33
33
|
// @ts-ignore
|
|
34
|
+
import { DuplicateDashboardResponseClass } from '../models';
|
|
35
|
+
// @ts-ignore
|
|
34
36
|
import { GetDashboardResponseClass } from '../models';
|
|
35
37
|
// @ts-ignore
|
|
36
38
|
import { GetEmbeddedUrlResponseClass } from '../models';
|
|
@@ -181,6 +183,51 @@ export const DashboardApiAxiosParamCreator = function (configuration?: Configura
|
|
|
181
183
|
|
|
182
184
|
|
|
183
185
|
|
|
186
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
187
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
188
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
189
|
+
|
|
190
|
+
return {
|
|
191
|
+
url: toPathString(localVarUrlObj),
|
|
192
|
+
options: localVarRequestOptions,
|
|
193
|
+
};
|
|
194
|
+
},
|
|
195
|
+
/**
|
|
196
|
+
* Creates a copy of the specified dashboard with all its configurations and settings. **Required Permissions** \"reporting.dashboards.create\"
|
|
197
|
+
* @summary Creates a duplicate of an existing dashboard
|
|
198
|
+
* @param {string} code
|
|
199
|
+
* @param {string} [authorization] Bearer Token
|
|
200
|
+
* @param {*} [options] Override http request option.
|
|
201
|
+
* @throws {RequiredError}
|
|
202
|
+
*/
|
|
203
|
+
duplicateDashboard: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
204
|
+
// verify required parameter 'code' is not null or undefined
|
|
205
|
+
assertParamExists('duplicateDashboard', 'code', code)
|
|
206
|
+
const localVarPath = `/tenantservice/v1/dashboards/{code}/duplicate`
|
|
207
|
+
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
208
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
209
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
210
|
+
let baseOptions;
|
|
211
|
+
let baseAccessToken;
|
|
212
|
+
if (configuration) {
|
|
213
|
+
baseOptions = configuration.baseOptions;
|
|
214
|
+
baseAccessToken = configuration.accessToken;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
218
|
+
const localVarHeaderParameter = {} as any;
|
|
219
|
+
const localVarQueryParameter = {} as any;
|
|
220
|
+
|
|
221
|
+
// authentication bearer required
|
|
222
|
+
// http bearer authentication required
|
|
223
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
224
|
+
|
|
225
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
226
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
|
|
230
|
+
|
|
184
231
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
185
232
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
186
233
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -593,6 +640,18 @@ export const DashboardApiFp = function(configuration?: Configuration) {
|
|
|
593
640
|
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteDashboard(code, authorization, options);
|
|
594
641
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
595
642
|
},
|
|
643
|
+
/**
|
|
644
|
+
* Creates a copy of the specified dashboard with all its configurations and settings. **Required Permissions** \"reporting.dashboards.create\"
|
|
645
|
+
* @summary Creates a duplicate of an existing dashboard
|
|
646
|
+
* @param {string} code
|
|
647
|
+
* @param {string} [authorization] Bearer Token
|
|
648
|
+
* @param {*} [options] Override http request option.
|
|
649
|
+
* @throws {RequiredError}
|
|
650
|
+
*/
|
|
651
|
+
async duplicateDashboard(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DuplicateDashboardResponseClass>> {
|
|
652
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.duplicateDashboard(code, authorization, options);
|
|
653
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
654
|
+
},
|
|
596
655
|
/**
|
|
597
656
|
* Creates a secure embedded URL that allows dashboard analysis and editing within external applications. **Required Permissions** \"reporting.dashboards.update\"
|
|
598
657
|
* @summary Generates an embedded URL for dashboard editing
|
|
@@ -728,6 +787,17 @@ export const DashboardApiFactory = function (configuration?: Configuration, base
|
|
|
728
787
|
deleteDashboard(code: string, authorization?: string, options?: any): AxiosPromise<DeleteResponseClass> {
|
|
729
788
|
return localVarFp.deleteDashboard(code, authorization, options).then((request) => request(axios, basePath));
|
|
730
789
|
},
|
|
790
|
+
/**
|
|
791
|
+
* Creates a copy of the specified dashboard with all its configurations and settings. **Required Permissions** \"reporting.dashboards.create\"
|
|
792
|
+
* @summary Creates a duplicate of an existing dashboard
|
|
793
|
+
* @param {string} code
|
|
794
|
+
* @param {string} [authorization] Bearer Token
|
|
795
|
+
* @param {*} [options] Override http request option.
|
|
796
|
+
* @throws {RequiredError}
|
|
797
|
+
*/
|
|
798
|
+
duplicateDashboard(code: string, authorization?: string, options?: any): AxiosPromise<DuplicateDashboardResponseClass> {
|
|
799
|
+
return localVarFp.duplicateDashboard(code, authorization, options).then((request) => request(axios, basePath));
|
|
800
|
+
},
|
|
731
801
|
/**
|
|
732
802
|
* Creates a secure embedded URL that allows dashboard analysis and editing within external applications. **Required Permissions** \"reporting.dashboards.update\"
|
|
733
803
|
* @summary Generates an embedded URL for dashboard editing
|
|
@@ -878,6 +948,27 @@ export interface DashboardApiDeleteDashboardRequest {
|
|
|
878
948
|
readonly authorization?: string
|
|
879
949
|
}
|
|
880
950
|
|
|
951
|
+
/**
|
|
952
|
+
* Request parameters for duplicateDashboard operation in DashboardApi.
|
|
953
|
+
* @export
|
|
954
|
+
* @interface DashboardApiDuplicateDashboardRequest
|
|
955
|
+
*/
|
|
956
|
+
export interface DashboardApiDuplicateDashboardRequest {
|
|
957
|
+
/**
|
|
958
|
+
*
|
|
959
|
+
* @type {string}
|
|
960
|
+
* @memberof DashboardApiDuplicateDashboard
|
|
961
|
+
*/
|
|
962
|
+
readonly code: string
|
|
963
|
+
|
|
964
|
+
/**
|
|
965
|
+
* Bearer Token
|
|
966
|
+
* @type {string}
|
|
967
|
+
* @memberof DashboardApiDuplicateDashboard
|
|
968
|
+
*/
|
|
969
|
+
readonly authorization?: string
|
|
970
|
+
}
|
|
971
|
+
|
|
881
972
|
/**
|
|
882
973
|
* Request parameters for getAnalysisEmbeddedUrl operation in DashboardApi.
|
|
883
974
|
* @export
|
|
@@ -1118,6 +1209,18 @@ export class DashboardApi extends BaseAPI {
|
|
|
1118
1209
|
return DashboardApiFp(this.configuration).deleteDashboard(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1119
1210
|
}
|
|
1120
1211
|
|
|
1212
|
+
/**
|
|
1213
|
+
* Creates a copy of the specified dashboard with all its configurations and settings. **Required Permissions** \"reporting.dashboards.create\"
|
|
1214
|
+
* @summary Creates a duplicate of an existing dashboard
|
|
1215
|
+
* @param {DashboardApiDuplicateDashboardRequest} requestParameters Request parameters.
|
|
1216
|
+
* @param {*} [options] Override http request option.
|
|
1217
|
+
* @throws {RequiredError}
|
|
1218
|
+
* @memberof DashboardApi
|
|
1219
|
+
*/
|
|
1220
|
+
public duplicateDashboard(requestParameters: DashboardApiDuplicateDashboardRequest, options?: AxiosRequestConfig) {
|
|
1221
|
+
return DashboardApiFp(this.configuration).duplicateDashboard(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1222
|
+
}
|
|
1223
|
+
|
|
1121
1224
|
/**
|
|
1122
1225
|
* Creates a secure embedded URL that allows dashboard analysis and editing within external applications. **Required Permissions** \"reporting.dashboards.update\"
|
|
1123
1226
|
* @summary Generates an embedded URL for dashboard editing
|
package/api/invite-users-api.ts
CHANGED
|
@@ -189,7 +189,7 @@ export const InviteUsersApiAxiosParamCreator = function (configuration?: Configu
|
|
|
189
189
|
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
190
190
|
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, email, token, organizationId, ern, partnerCode</i>
|
|
191
191
|
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
192
|
-
* @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, expiresOn</i>
|
|
192
|
+
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, email, expiresOn</i>
|
|
193
193
|
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: organizations<i>
|
|
194
194
|
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, email, token, organizationId, ern, partnerCode</i>
|
|
195
195
|
* @param {*} [options] Override http request option.
|
|
@@ -311,7 +311,7 @@ export const InviteUsersApiFp = function(configuration?: Configuration) {
|
|
|
311
311
|
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
312
312
|
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, email, token, organizationId, ern, partnerCode</i>
|
|
313
313
|
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
314
|
-
* @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, expiresOn</i>
|
|
314
|
+
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, email, expiresOn</i>
|
|
315
315
|
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: organizations<i>
|
|
316
316
|
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, email, token, organizationId, ern, partnerCode</i>
|
|
317
317
|
* @param {*} [options] Override http request option.
|
|
@@ -372,7 +372,7 @@ export const InviteUsersApiFactory = function (configuration?: Configuration, ba
|
|
|
372
372
|
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
373
373
|
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, email, token, organizationId, ern, partnerCode</i>
|
|
374
374
|
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
375
|
-
* @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, expiresOn</i>
|
|
375
|
+
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, email, expiresOn</i>
|
|
376
376
|
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: organizations<i>
|
|
377
377
|
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, email, token, organizationId, ern, partnerCode</i>
|
|
378
378
|
* @param {*} [options] Override http request option.
|
|
@@ -489,7 +489,7 @@ export interface InviteUsersApiListInvitesRequest {
|
|
|
489
489
|
readonly search?: string
|
|
490
490
|
|
|
491
491
|
/**
|
|
492
|
-
* 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, expiresOn</i>
|
|
492
|
+
* Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, email, expiresOn</i>
|
|
493
493
|
* @type {string}
|
|
494
494
|
* @memberof InviteUsersApiListInvites
|
|
495
495
|
*/
|
|
@@ -25,6 +25,8 @@ import { CreateOrganizationMigrationRequestDto } from '../models';
|
|
|
25
25
|
// @ts-ignore
|
|
26
26
|
import { CreateOrganizationMigrationResponseClass } from '../models';
|
|
27
27
|
// @ts-ignore
|
|
28
|
+
import { CreateResourcesMigrationRequestDto } from '../models';
|
|
29
|
+
// @ts-ignore
|
|
28
30
|
import { GetOrganizationMigrationResponseClass } from '../models';
|
|
29
31
|
// @ts-ignore
|
|
30
32
|
import { ListOrganizationMigrationsResponseClass } from '../models';
|
|
@@ -39,8 +41,8 @@ import { RevertOrganizationMigrationResponseClass } from '../models';
|
|
|
39
41
|
export const OrganizationMigrationApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
40
42
|
return {
|
|
41
43
|
/**
|
|
42
|
-
* Creates a new organization migration. **Required Permissions** \"tenant-management.organizations.create\"
|
|
43
|
-
* @summary Create organization migration
|
|
44
|
+
* Creates a new organization migration to move all resources including the sub organizations. **Required Permissions** \"tenant-management.organizations.create\"
|
|
45
|
+
* @summary Create organization migration to move all resources including the sub organizations
|
|
44
46
|
* @param {CreateOrganizationMigrationRequestDto} createOrganizationMigrationRequestDto
|
|
45
47
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
46
48
|
* @param {*} [options] Override http request option.
|
|
@@ -85,6 +87,53 @@ export const OrganizationMigrationApiAxiosParamCreator = function (configuration
|
|
|
85
87
|
options: localVarRequestOptions,
|
|
86
88
|
};
|
|
87
89
|
},
|
|
90
|
+
/**
|
|
91
|
+
* Creates a new organization migration to move only source organization\'s resources to target organization. It does not move organization and users. **Required Permissions** \"tenant-management.organizations.create\"
|
|
92
|
+
* @summary Create organization migration to move only resources excluding sub organizations
|
|
93
|
+
* @param {CreateResourcesMigrationRequestDto} createResourcesMigrationRequestDto
|
|
94
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
95
|
+
* @param {*} [options] Override http request option.
|
|
96
|
+
* @throws {RequiredError}
|
|
97
|
+
*/
|
|
98
|
+
createResourcesMigration: async (createResourcesMigrationRequestDto: CreateResourcesMigrationRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
99
|
+
// verify required parameter 'createResourcesMigrationRequestDto' is not null or undefined
|
|
100
|
+
assertParamExists('createResourcesMigration', 'createResourcesMigrationRequestDto', createResourcesMigrationRequestDto)
|
|
101
|
+
const localVarPath = `/tenantservice/v1/organization-migrations/resources`;
|
|
102
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
103
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
104
|
+
let baseOptions;
|
|
105
|
+
let baseAccessToken;
|
|
106
|
+
if (configuration) {
|
|
107
|
+
baseOptions = configuration.baseOptions;
|
|
108
|
+
baseAccessToken = configuration.accessToken;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
112
|
+
const localVarHeaderParameter = {} as any;
|
|
113
|
+
const localVarQueryParameter = {} as any;
|
|
114
|
+
|
|
115
|
+
// authentication bearer required
|
|
116
|
+
// http bearer authentication required
|
|
117
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
118
|
+
|
|
119
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
120
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
126
|
+
|
|
127
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
128
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
129
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
130
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createResourcesMigrationRequestDto, localVarRequestOptions, configuration)
|
|
131
|
+
|
|
132
|
+
return {
|
|
133
|
+
url: toPathString(localVarUrlObj),
|
|
134
|
+
options: localVarRequestOptions,
|
|
135
|
+
};
|
|
136
|
+
},
|
|
88
137
|
/**
|
|
89
138
|
* Retrieves an organization migration by its code. **Required Permissions** \"tenant-management.organizations.view\"
|
|
90
139
|
* @summary Get organization migration
|
|
@@ -266,8 +315,8 @@ export const OrganizationMigrationApiFp = function(configuration?: Configuration
|
|
|
266
315
|
const localVarAxiosParamCreator = OrganizationMigrationApiAxiosParamCreator(configuration)
|
|
267
316
|
return {
|
|
268
317
|
/**
|
|
269
|
-
* Creates a new organization migration. **Required Permissions** \"tenant-management.organizations.create\"
|
|
270
|
-
* @summary Create organization migration
|
|
318
|
+
* Creates a new organization migration to move all resources including the sub organizations. **Required Permissions** \"tenant-management.organizations.create\"
|
|
319
|
+
* @summary Create organization migration to move all resources including the sub organizations
|
|
271
320
|
* @param {CreateOrganizationMigrationRequestDto} createOrganizationMigrationRequestDto
|
|
272
321
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
273
322
|
* @param {*} [options] Override http request option.
|
|
@@ -277,6 +326,18 @@ export const OrganizationMigrationApiFp = function(configuration?: Configuration
|
|
|
277
326
|
const localVarAxiosArgs = await localVarAxiosParamCreator.createOrganizationMigration(createOrganizationMigrationRequestDto, authorization, options);
|
|
278
327
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
279
328
|
},
|
|
329
|
+
/**
|
|
330
|
+
* Creates a new organization migration to move only source organization\'s resources to target organization. It does not move organization and users. **Required Permissions** \"tenant-management.organizations.create\"
|
|
331
|
+
* @summary Create organization migration to move only resources excluding sub organizations
|
|
332
|
+
* @param {CreateResourcesMigrationRequestDto} createResourcesMigrationRequestDto
|
|
333
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
334
|
+
* @param {*} [options] Override http request option.
|
|
335
|
+
* @throws {RequiredError}
|
|
336
|
+
*/
|
|
337
|
+
async createResourcesMigration(createResourcesMigrationRequestDto: CreateResourcesMigrationRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateOrganizationMigrationResponseClass>> {
|
|
338
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createResourcesMigration(createResourcesMigrationRequestDto, authorization, options);
|
|
339
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
340
|
+
},
|
|
280
341
|
/**
|
|
281
342
|
* Retrieves an organization migration by its code. **Required Permissions** \"tenant-management.organizations.view\"
|
|
282
343
|
* @summary Get organization migration
|
|
@@ -331,8 +392,8 @@ export const OrganizationMigrationApiFactory = function (configuration?: Configu
|
|
|
331
392
|
const localVarFp = OrganizationMigrationApiFp(configuration)
|
|
332
393
|
return {
|
|
333
394
|
/**
|
|
334
|
-
* Creates a new organization migration. **Required Permissions** \"tenant-management.organizations.create\"
|
|
335
|
-
* @summary Create organization migration
|
|
395
|
+
* Creates a new organization migration to move all resources including the sub organizations. **Required Permissions** \"tenant-management.organizations.create\"
|
|
396
|
+
* @summary Create organization migration to move all resources including the sub organizations
|
|
336
397
|
* @param {CreateOrganizationMigrationRequestDto} createOrganizationMigrationRequestDto
|
|
337
398
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
338
399
|
* @param {*} [options] Override http request option.
|
|
@@ -341,6 +402,17 @@ export const OrganizationMigrationApiFactory = function (configuration?: Configu
|
|
|
341
402
|
createOrganizationMigration(createOrganizationMigrationRequestDto: CreateOrganizationMigrationRequestDto, authorization?: string, options?: any): AxiosPromise<CreateOrganizationMigrationResponseClass> {
|
|
342
403
|
return localVarFp.createOrganizationMigration(createOrganizationMigrationRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
343
404
|
},
|
|
405
|
+
/**
|
|
406
|
+
* Creates a new organization migration to move only source organization\'s resources to target organization. It does not move organization and users. **Required Permissions** \"tenant-management.organizations.create\"
|
|
407
|
+
* @summary Create organization migration to move only resources excluding sub organizations
|
|
408
|
+
* @param {CreateResourcesMigrationRequestDto} createResourcesMigrationRequestDto
|
|
409
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
410
|
+
* @param {*} [options] Override http request option.
|
|
411
|
+
* @throws {RequiredError}
|
|
412
|
+
*/
|
|
413
|
+
createResourcesMigration(createResourcesMigrationRequestDto: CreateResourcesMigrationRequestDto, authorization?: string, options?: any): AxiosPromise<CreateOrganizationMigrationResponseClass> {
|
|
414
|
+
return localVarFp.createResourcesMigration(createResourcesMigrationRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
415
|
+
},
|
|
344
416
|
/**
|
|
345
417
|
* Retrieves an organization migration by its code. **Required Permissions** \"tenant-management.organizations.view\"
|
|
346
418
|
* @summary Get organization migration
|
|
@@ -405,6 +477,27 @@ export interface OrganizationMigrationApiCreateOrganizationMigrationRequest {
|
|
|
405
477
|
readonly authorization?: string
|
|
406
478
|
}
|
|
407
479
|
|
|
480
|
+
/**
|
|
481
|
+
* Request parameters for createResourcesMigration operation in OrganizationMigrationApi.
|
|
482
|
+
* @export
|
|
483
|
+
* @interface OrganizationMigrationApiCreateResourcesMigrationRequest
|
|
484
|
+
*/
|
|
485
|
+
export interface OrganizationMigrationApiCreateResourcesMigrationRequest {
|
|
486
|
+
/**
|
|
487
|
+
*
|
|
488
|
+
* @type {CreateResourcesMigrationRequestDto}
|
|
489
|
+
* @memberof OrganizationMigrationApiCreateResourcesMigration
|
|
490
|
+
*/
|
|
491
|
+
readonly createResourcesMigrationRequestDto: CreateResourcesMigrationRequestDto
|
|
492
|
+
|
|
493
|
+
/**
|
|
494
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
495
|
+
* @type {string}
|
|
496
|
+
* @memberof OrganizationMigrationApiCreateResourcesMigration
|
|
497
|
+
*/
|
|
498
|
+
readonly authorization?: string
|
|
499
|
+
}
|
|
500
|
+
|
|
408
501
|
/**
|
|
409
502
|
* Request parameters for getOrganizationMigration operation in OrganizationMigrationApi.
|
|
410
503
|
* @export
|
|
@@ -525,8 +618,8 @@ export interface OrganizationMigrationApiRevertOrganizationMigrationRequest {
|
|
|
525
618
|
*/
|
|
526
619
|
export class OrganizationMigrationApi extends BaseAPI {
|
|
527
620
|
/**
|
|
528
|
-
* Creates a new organization migration. **Required Permissions** \"tenant-management.organizations.create\"
|
|
529
|
-
* @summary Create organization migration
|
|
621
|
+
* Creates a new organization migration to move all resources including the sub organizations. **Required Permissions** \"tenant-management.organizations.create\"
|
|
622
|
+
* @summary Create organization migration to move all resources including the sub organizations
|
|
530
623
|
* @param {OrganizationMigrationApiCreateOrganizationMigrationRequest} requestParameters Request parameters.
|
|
531
624
|
* @param {*} [options] Override http request option.
|
|
532
625
|
* @throws {RequiredError}
|
|
@@ -536,6 +629,18 @@ export class OrganizationMigrationApi extends BaseAPI {
|
|
|
536
629
|
return OrganizationMigrationApiFp(this.configuration).createOrganizationMigration(requestParameters.createOrganizationMigrationRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
537
630
|
}
|
|
538
631
|
|
|
632
|
+
/**
|
|
633
|
+
* Creates a new organization migration to move only source organization\'s resources to target organization. It does not move organization and users. **Required Permissions** \"tenant-management.organizations.create\"
|
|
634
|
+
* @summary Create organization migration to move only resources excluding sub organizations
|
|
635
|
+
* @param {OrganizationMigrationApiCreateResourcesMigrationRequest} requestParameters Request parameters.
|
|
636
|
+
* @param {*} [options] Override http request option.
|
|
637
|
+
* @throws {RequiredError}
|
|
638
|
+
* @memberof OrganizationMigrationApi
|
|
639
|
+
*/
|
|
640
|
+
public createResourcesMigration(requestParameters: OrganizationMigrationApiCreateResourcesMigrationRequest, options?: AxiosRequestConfig) {
|
|
641
|
+
return OrganizationMigrationApiFp(this.configuration).createResourcesMigration(requestParameters.createResourcesMigrationRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
642
|
+
}
|
|
643
|
+
|
|
539
644
|
/**
|
|
540
645
|
* Retrieves an organization migration by its code. **Required Permissions** \"tenant-management.organizations.view\"
|
|
541
646
|
* @summary Get organization migration
|
|
@@ -17,6 +17,7 @@ import { CreateDashboardResponseClass } from '../models';
|
|
|
17
17
|
import { CreateDashboardV2RequestDto } from '../models';
|
|
18
18
|
import { CreateDashboardV2ResponseClass } from '../models';
|
|
19
19
|
import { DeleteResponseClass } from '../models';
|
|
20
|
+
import { DuplicateDashboardResponseClass } from '../models';
|
|
20
21
|
import { GetDashboardResponseClass } from '../models';
|
|
21
22
|
import { GetEmbeddedUrlResponseClass } from '../models';
|
|
22
23
|
import { ListDashboardsResponseClass } from '../models';
|
|
@@ -57,6 +58,15 @@ export declare const DashboardApiAxiosParamCreator: (configuration?: Configurati
|
|
|
57
58
|
* @throws {RequiredError}
|
|
58
59
|
*/
|
|
59
60
|
deleteDashboard: (code: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
61
|
+
/**
|
|
62
|
+
* Creates a copy of the specified dashboard with all its configurations and settings. **Required Permissions** \"reporting.dashboards.create\"
|
|
63
|
+
* @summary Creates a duplicate of an existing dashboard
|
|
64
|
+
* @param {string} code
|
|
65
|
+
* @param {string} [authorization] Bearer Token
|
|
66
|
+
* @param {*} [options] Override http request option.
|
|
67
|
+
* @throws {RequiredError}
|
|
68
|
+
*/
|
|
69
|
+
duplicateDashboard: (code: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
60
70
|
/**
|
|
61
71
|
* Creates a secure embedded URL that allows dashboard analysis and editing within external applications. **Required Permissions** \"reporting.dashboards.update\"
|
|
62
72
|
* @summary Generates an embedded URL for dashboard editing
|
|
@@ -161,6 +171,15 @@ export declare const DashboardApiFp: (configuration?: Configuration) => {
|
|
|
161
171
|
* @throws {RequiredError}
|
|
162
172
|
*/
|
|
163
173
|
deleteDashboard(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeleteResponseClass>>;
|
|
174
|
+
/**
|
|
175
|
+
* Creates a copy of the specified dashboard with all its configurations and settings. **Required Permissions** \"reporting.dashboards.create\"
|
|
176
|
+
* @summary Creates a duplicate of an existing dashboard
|
|
177
|
+
* @param {string} code
|
|
178
|
+
* @param {string} [authorization] Bearer Token
|
|
179
|
+
* @param {*} [options] Override http request option.
|
|
180
|
+
* @throws {RequiredError}
|
|
181
|
+
*/
|
|
182
|
+
duplicateDashboard(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DuplicateDashboardResponseClass>>;
|
|
164
183
|
/**
|
|
165
184
|
* Creates a secure embedded URL that allows dashboard analysis and editing within external applications. **Required Permissions** \"reporting.dashboards.update\"
|
|
166
185
|
* @summary Generates an embedded URL for dashboard editing
|
|
@@ -265,6 +284,15 @@ export declare const DashboardApiFactory: (configuration?: Configuration, basePa
|
|
|
265
284
|
* @throws {RequiredError}
|
|
266
285
|
*/
|
|
267
286
|
deleteDashboard(code: string, authorization?: string, options?: any): AxiosPromise<DeleteResponseClass>;
|
|
287
|
+
/**
|
|
288
|
+
* Creates a copy of the specified dashboard with all its configurations and settings. **Required Permissions** \"reporting.dashboards.create\"
|
|
289
|
+
* @summary Creates a duplicate of an existing dashboard
|
|
290
|
+
* @param {string} code
|
|
291
|
+
* @param {string} [authorization] Bearer Token
|
|
292
|
+
* @param {*} [options] Override http request option.
|
|
293
|
+
* @throws {RequiredError}
|
|
294
|
+
*/
|
|
295
|
+
duplicateDashboard(code: string, authorization?: string, options?: any): AxiosPromise<DuplicateDashboardResponseClass>;
|
|
268
296
|
/**
|
|
269
297
|
* Creates a secure embedded URL that allows dashboard analysis and editing within external applications. **Required Permissions** \"reporting.dashboards.update\"
|
|
270
298
|
* @summary Generates an embedded URL for dashboard editing
|
|
@@ -393,6 +421,25 @@ export interface DashboardApiDeleteDashboardRequest {
|
|
|
393
421
|
*/
|
|
394
422
|
readonly authorization?: string;
|
|
395
423
|
}
|
|
424
|
+
/**
|
|
425
|
+
* Request parameters for duplicateDashboard operation in DashboardApi.
|
|
426
|
+
* @export
|
|
427
|
+
* @interface DashboardApiDuplicateDashboardRequest
|
|
428
|
+
*/
|
|
429
|
+
export interface DashboardApiDuplicateDashboardRequest {
|
|
430
|
+
/**
|
|
431
|
+
*
|
|
432
|
+
* @type {string}
|
|
433
|
+
* @memberof DashboardApiDuplicateDashboard
|
|
434
|
+
*/
|
|
435
|
+
readonly code: string;
|
|
436
|
+
/**
|
|
437
|
+
* Bearer Token
|
|
438
|
+
* @type {string}
|
|
439
|
+
* @memberof DashboardApiDuplicateDashboard
|
|
440
|
+
*/
|
|
441
|
+
readonly authorization?: string;
|
|
442
|
+
}
|
|
396
443
|
/**
|
|
397
444
|
* Request parameters for getAnalysisEmbeddedUrl operation in DashboardApi.
|
|
398
445
|
* @export
|
|
@@ -603,6 +650,15 @@ export declare class DashboardApi extends BaseAPI {
|
|
|
603
650
|
* @memberof DashboardApi
|
|
604
651
|
*/
|
|
605
652
|
deleteDashboard(requestParameters: DashboardApiDeleteDashboardRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<DeleteResponseClass, any>>;
|
|
653
|
+
/**
|
|
654
|
+
* Creates a copy of the specified dashboard with all its configurations and settings. **Required Permissions** \"reporting.dashboards.create\"
|
|
655
|
+
* @summary Creates a duplicate of an existing dashboard
|
|
656
|
+
* @param {DashboardApiDuplicateDashboardRequest} requestParameters Request parameters.
|
|
657
|
+
* @param {*} [options] Override http request option.
|
|
658
|
+
* @throws {RequiredError}
|
|
659
|
+
* @memberof DashboardApi
|
|
660
|
+
*/
|
|
661
|
+
duplicateDashboard(requestParameters: DashboardApiDuplicateDashboardRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<DuplicateDashboardResponseClass, any>>;
|
|
606
662
|
/**
|
|
607
663
|
* Creates a secure embedded URL that allows dashboard analysis and editing within external applications. **Required Permissions** \"reporting.dashboards.update\"
|
|
608
664
|
* @summary Generates an embedded URL for dashboard editing
|
|
@@ -239,6 +239,54 @@ var DashboardApiAxiosParamCreator = function (configuration) {
|
|
|
239
239
|
});
|
|
240
240
|
});
|
|
241
241
|
},
|
|
242
|
+
/**
|
|
243
|
+
* Creates a copy of the specified dashboard with all its configurations and settings. **Required Permissions** \"reporting.dashboards.create\"
|
|
244
|
+
* @summary Creates a duplicate of an existing dashboard
|
|
245
|
+
* @param {string} code
|
|
246
|
+
* @param {string} [authorization] Bearer Token
|
|
247
|
+
* @param {*} [options] Override http request option.
|
|
248
|
+
* @throws {RequiredError}
|
|
249
|
+
*/
|
|
250
|
+
duplicateDashboard: function (code, authorization, options) {
|
|
251
|
+
if (options === void 0) { options = {}; }
|
|
252
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
253
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
254
|
+
return __generator(this, function (_a) {
|
|
255
|
+
switch (_a.label) {
|
|
256
|
+
case 0:
|
|
257
|
+
// verify required parameter 'code' is not null or undefined
|
|
258
|
+
(0, common_1.assertParamExists)('duplicateDashboard', 'code', code);
|
|
259
|
+
localVarPath = "/tenantservice/v1/dashboards/{code}/duplicate"
|
|
260
|
+
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
261
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
262
|
+
if (configuration) {
|
|
263
|
+
baseOptions = configuration.baseOptions;
|
|
264
|
+
baseAccessToken = configuration.accessToken;
|
|
265
|
+
}
|
|
266
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
267
|
+
localVarHeaderParameter = {};
|
|
268
|
+
localVarQueryParameter = {};
|
|
269
|
+
// authentication bearer required
|
|
270
|
+
// http bearer authentication required
|
|
271
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
272
|
+
case 1:
|
|
273
|
+
// authentication bearer required
|
|
274
|
+
// http bearer authentication required
|
|
275
|
+
_a.sent();
|
|
276
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
277
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
278
|
+
}
|
|
279
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
280
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
281
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
282
|
+
return [2 /*return*/, {
|
|
283
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
284
|
+
options: localVarRequestOptions,
|
|
285
|
+
}];
|
|
286
|
+
}
|
|
287
|
+
});
|
|
288
|
+
});
|
|
289
|
+
},
|
|
242
290
|
/**
|
|
243
291
|
* Creates a secure embedded URL that allows dashboard analysis and editing within external applications. **Required Permissions** \"reporting.dashboards.update\"
|
|
244
292
|
* @summary Generates an embedded URL for dashboard editing
|
|
@@ -680,6 +728,27 @@ var DashboardApiFp = function (configuration) {
|
|
|
680
728
|
});
|
|
681
729
|
});
|
|
682
730
|
},
|
|
731
|
+
/**
|
|
732
|
+
* Creates a copy of the specified dashboard with all its configurations and settings. **Required Permissions** \"reporting.dashboards.create\"
|
|
733
|
+
* @summary Creates a duplicate of an existing dashboard
|
|
734
|
+
* @param {string} code
|
|
735
|
+
* @param {string} [authorization] Bearer Token
|
|
736
|
+
* @param {*} [options] Override http request option.
|
|
737
|
+
* @throws {RequiredError}
|
|
738
|
+
*/
|
|
739
|
+
duplicateDashboard: function (code, authorization, options) {
|
|
740
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
741
|
+
var localVarAxiosArgs;
|
|
742
|
+
return __generator(this, function (_a) {
|
|
743
|
+
switch (_a.label) {
|
|
744
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.duplicateDashboard(code, authorization, options)];
|
|
745
|
+
case 1:
|
|
746
|
+
localVarAxiosArgs = _a.sent();
|
|
747
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
748
|
+
}
|
|
749
|
+
});
|
|
750
|
+
});
|
|
751
|
+
},
|
|
683
752
|
/**
|
|
684
753
|
* Creates a secure embedded URL that allows dashboard analysis and editing within external applications. **Required Permissions** \"reporting.dashboards.update\"
|
|
685
754
|
* @summary Generates an embedded URL for dashboard editing
|
|
@@ -878,6 +947,17 @@ var DashboardApiFactory = function (configuration, basePath, axios) {
|
|
|
878
947
|
deleteDashboard: function (code, authorization, options) {
|
|
879
948
|
return localVarFp.deleteDashboard(code, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
880
949
|
},
|
|
950
|
+
/**
|
|
951
|
+
* Creates a copy of the specified dashboard with all its configurations and settings. **Required Permissions** \"reporting.dashboards.create\"
|
|
952
|
+
* @summary Creates a duplicate of an existing dashboard
|
|
953
|
+
* @param {string} code
|
|
954
|
+
* @param {string} [authorization] Bearer Token
|
|
955
|
+
* @param {*} [options] Override http request option.
|
|
956
|
+
* @throws {RequiredError}
|
|
957
|
+
*/
|
|
958
|
+
duplicateDashboard: function (code, authorization, options) {
|
|
959
|
+
return localVarFp.duplicateDashboard(code, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
960
|
+
},
|
|
881
961
|
/**
|
|
882
962
|
* Creates a secure embedded URL that allows dashboard analysis and editing within external applications. **Required Permissions** \"reporting.dashboards.update\"
|
|
883
963
|
* @summary Generates an embedded URL for dashboard editing
|
|
@@ -1013,6 +1093,18 @@ var DashboardApi = /** @class */ (function (_super) {
|
|
|
1013
1093
|
var _this = this;
|
|
1014
1094
|
return (0, exports.DashboardApiFp)(this.configuration).deleteDashboard(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1015
1095
|
};
|
|
1096
|
+
/**
|
|
1097
|
+
* Creates a copy of the specified dashboard with all its configurations and settings. **Required Permissions** \"reporting.dashboards.create\"
|
|
1098
|
+
* @summary Creates a duplicate of an existing dashboard
|
|
1099
|
+
* @param {DashboardApiDuplicateDashboardRequest} requestParameters Request parameters.
|
|
1100
|
+
* @param {*} [options] Override http request option.
|
|
1101
|
+
* @throws {RequiredError}
|
|
1102
|
+
* @memberof DashboardApi
|
|
1103
|
+
*/
|
|
1104
|
+
DashboardApi.prototype.duplicateDashboard = function (requestParameters, options) {
|
|
1105
|
+
var _this = this;
|
|
1106
|
+
return (0, exports.DashboardApiFp)(this.configuration).duplicateDashboard(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1107
|
+
};
|
|
1016
1108
|
/**
|
|
1017
1109
|
* Creates a secure embedded URL that allows dashboard analysis and editing within external applications. **Required Permissions** \"reporting.dashboards.update\"
|
|
1018
1110
|
* @summary Generates an embedded URL for dashboard editing
|