@emilgroup/tenant-sdk 1.31.1-beta.3 → 1.32.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 +0 -3
- package/README.md +2 -2
- package/api/dashboard-api.ts +46 -296
- package/base.ts +6 -1
- package/dist/api/dashboard-api.d.ts +42 -195
- package/dist/api/dashboard-api.js +44 -269
- package/dist/base.js +5 -1
- package/dist/models/create-organization-migration-request-dto.d.ts +0 -6
- package/dist/models/index.d.ts +0 -3
- package/dist/models/index.js +0 -3
- package/models/create-organization-migration-request-dto.ts +0 -6
- package/models/index.ts +0 -3
- package/package.json +1 -1
- package/dist/models/create-dashboard-v2-request-dto.d.ts +0 -36
- package/dist/models/create-dashboard-v2-request-dto.js +0 -15
- package/dist/models/create-dashboard-v2-response-class.d.ts +0 -25
- package/dist/models/create-dashboard-v2-response-class.js +0 -15
- package/dist/models/duplicate-dashboard-response-class.d.ts +0 -25
- package/dist/models/duplicate-dashboard-response-class.js +0 -15
- package/models/create-dashboard-v2-request-dto.ts +0 -42
- package/models/create-dashboard-v2-response-class.ts +0 -31
- package/models/duplicate-dashboard-response-class.ts +0 -31
package/.openapi-generator/FILES
CHANGED
|
@@ -34,8 +34,6 @@ models/create-dashboard-group-request-dto.ts
|
|
|
34
34
|
models/create-dashboard-group-response-class.ts
|
|
35
35
|
models/create-dashboard-request-dto.ts
|
|
36
36
|
models/create-dashboard-response-class.ts
|
|
37
|
-
models/create-dashboard-v2-request-dto.ts
|
|
38
|
-
models/create-dashboard-v2-response-class.ts
|
|
39
37
|
models/create-data-report-request-dto.ts
|
|
40
38
|
models/create-data-report-response-class.ts
|
|
41
39
|
models/create-organization-migration-request-dto.ts
|
|
@@ -55,7 +53,6 @@ models/dbconfig-dto.ts
|
|
|
55
53
|
models/delete-response-class.ts
|
|
56
54
|
models/disable-users-request-dto.ts
|
|
57
55
|
models/disable-users-response-class.ts
|
|
58
|
-
models/duplicate-dashboard-response-class.ts
|
|
59
56
|
models/enable-users-request-dto.ts
|
|
60
57
|
models/enable-users-response-class.ts
|
|
61
58
|
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.
|
|
20
|
+
npm install @emilgroup/tenant-sdk@1.32.0 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/tenant-sdk@1.
|
|
24
|
+
yarn add @emilgroup/tenant-sdk@1.32.0
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `UsersApi`.
|
package/api/dashboard-api.ts
CHANGED
|
@@ -25,14 +25,8 @@ import { CreateDashboardRequestDto } from '../models';
|
|
|
25
25
|
// @ts-ignore
|
|
26
26
|
import { CreateDashboardResponseClass } from '../models';
|
|
27
27
|
// @ts-ignore
|
|
28
|
-
import { CreateDashboardV2RequestDto } from '../models';
|
|
29
|
-
// @ts-ignore
|
|
30
|
-
import { CreateDashboardV2ResponseClass } from '../models';
|
|
31
|
-
// @ts-ignore
|
|
32
28
|
import { DeleteResponseClass } from '../models';
|
|
33
29
|
// @ts-ignore
|
|
34
|
-
import { DuplicateDashboardResponseClass } from '../models';
|
|
35
|
-
// @ts-ignore
|
|
36
30
|
import { GetDashboardResponseClass } from '../models';
|
|
37
31
|
// @ts-ignore
|
|
38
32
|
import { GetEmbeddedUrlResponseClass } from '../models';
|
|
@@ -53,65 +47,16 @@ import { UpdateDashboardResponseClass } from '../models';
|
|
|
53
47
|
export const DashboardApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
54
48
|
return {
|
|
55
49
|
/**
|
|
56
|
-
*
|
|
57
|
-
* @summary Creates a new dashboard
|
|
58
|
-
* @param {CreateDashboardV2RequestDto} createDashboardV2RequestDto
|
|
59
|
-
* @param {string} [authorization] Bearer Token
|
|
60
|
-
* @param {*} [options] Override http request option.
|
|
61
|
-
* @throws {RequiredError}
|
|
62
|
-
*/
|
|
63
|
-
createDashboard: async (createDashboardV2RequestDto: CreateDashboardV2RequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
64
|
-
// verify required parameter 'createDashboardV2RequestDto' is not null or undefined
|
|
65
|
-
assertParamExists('createDashboard', 'createDashboardV2RequestDto', createDashboardV2RequestDto)
|
|
66
|
-
const localVarPath = `/tenantservice/v1/dashboards`;
|
|
67
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
68
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
69
|
-
let baseOptions;
|
|
70
|
-
let baseAccessToken;
|
|
71
|
-
if (configuration) {
|
|
72
|
-
baseOptions = configuration.baseOptions;
|
|
73
|
-
baseAccessToken = configuration.accessToken;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
77
|
-
const localVarHeaderParameter = {} as any;
|
|
78
|
-
const localVarQueryParameter = {} as any;
|
|
79
|
-
|
|
80
|
-
// authentication bearer required
|
|
81
|
-
// http bearer authentication required
|
|
82
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
83
|
-
|
|
84
|
-
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
85
|
-
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
91
|
-
|
|
92
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
93
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
94
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
95
|
-
localVarRequestOptions.data = serializeDataIfNeeded(createDashboardV2RequestDto, localVarRequestOptions, configuration)
|
|
96
|
-
|
|
97
|
-
return {
|
|
98
|
-
url: toPathString(localVarUrlObj),
|
|
99
|
-
options: localVarRequestOptions,
|
|
100
|
-
};
|
|
101
|
-
},
|
|
102
|
-
/**
|
|
103
|
-
* Creates a new dashboard from a preconfigured analysis id and dashboard id. Use POST /tenantservice/v1/dashboards instead. **Required Permissions** \"reporting.dashboards.create\"
|
|
104
|
-
* @summary Creates a new dashboard (DEPRECATED)
|
|
50
|
+
* undefined **Required Permissions** \"reporting.dashboards.create\"
|
|
105
51
|
* @param {CreateDashboardRequestDto} createDashboardRequestDto
|
|
106
52
|
* @param {string} [authorization] Bearer Token
|
|
107
53
|
* @param {*} [options] Override http request option.
|
|
108
|
-
* @deprecated
|
|
109
54
|
* @throws {RequiredError}
|
|
110
55
|
*/
|
|
111
|
-
|
|
56
|
+
createDashboard: async (createDashboardRequestDto: CreateDashboardRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
112
57
|
// verify required parameter 'createDashboardRequestDto' is not null or undefined
|
|
113
|
-
assertParamExists('
|
|
114
|
-
const localVarPath = `/tenantservice/v1/dashboards
|
|
58
|
+
assertParamExists('createDashboard', 'createDashboardRequestDto', createDashboardRequestDto)
|
|
59
|
+
const localVarPath = `/tenantservice/v1/dashboards`;
|
|
115
60
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
116
61
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
117
62
|
let baseOptions;
|
|
@@ -148,8 +93,7 @@ export const DashboardApiAxiosParamCreator = function (configuration?: Configura
|
|
|
148
93
|
};
|
|
149
94
|
},
|
|
150
95
|
/**
|
|
151
|
-
*
|
|
152
|
-
* @summary Deletes an existing dashboard
|
|
96
|
+
* undefined **Required Permissions** \"reporting.dashboards.delete\"
|
|
153
97
|
* @param {string} code
|
|
154
98
|
* @param {string} [authorization] Bearer Token
|
|
155
99
|
* @param {*} [options] Override http request option.
|
|
@@ -193,53 +137,7 @@ export const DashboardApiAxiosParamCreator = function (configuration?: Configura
|
|
|
193
137
|
};
|
|
194
138
|
},
|
|
195
139
|
/**
|
|
196
|
-
*
|
|
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
|
-
|
|
231
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
232
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
233
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
234
|
-
|
|
235
|
-
return {
|
|
236
|
-
url: toPathString(localVarUrlObj),
|
|
237
|
-
options: localVarRequestOptions,
|
|
238
|
-
};
|
|
239
|
-
},
|
|
240
|
-
/**
|
|
241
|
-
* Creates a secure embedded URL that allows dashboard analysis and editing within external applications. **Required Permissions** \"reporting.dashboards.update\"
|
|
242
|
-
* @summary Generates an embedded URL for dashboard editing
|
|
140
|
+
* undefined **Required Permissions** \"reporting.dashboards.update\"
|
|
243
141
|
* @param {string} providerDashboardId
|
|
244
142
|
* @param {string} [authorization] Bearer Token
|
|
245
143
|
* @param {*} [options] Override http request option.
|
|
@@ -283,8 +181,7 @@ export const DashboardApiAxiosParamCreator = function (configuration?: Configura
|
|
|
283
181
|
};
|
|
284
182
|
},
|
|
285
183
|
/**
|
|
286
|
-
*
|
|
287
|
-
* @summary Retrieves a specific dashboard
|
|
184
|
+
* undefined **Required Permissions** \"reporting.dashboards.view\"
|
|
288
185
|
* @param {string} code
|
|
289
186
|
* @param {string} [authorization] Bearer Token
|
|
290
187
|
* @param {*} [options] Override http request option.
|
|
@@ -328,8 +225,7 @@ export const DashboardApiAxiosParamCreator = function (configuration?: Configura
|
|
|
328
225
|
};
|
|
329
226
|
},
|
|
330
227
|
/**
|
|
331
|
-
*
|
|
332
|
-
* @summary Generates an embedded URL for dashboard viewing
|
|
228
|
+
* undefined **Required Permissions** \"reporting.dashboards.view\"
|
|
333
229
|
* @param {string} providerDashboardId
|
|
334
230
|
* @param {string} [authorization] Bearer Token
|
|
335
231
|
* @param {*} [options] Override http request option.
|
|
@@ -373,8 +269,7 @@ export const DashboardApiAxiosParamCreator = function (configuration?: Configura
|
|
|
373
269
|
};
|
|
374
270
|
},
|
|
375
271
|
/**
|
|
376
|
-
*
|
|
377
|
-
* @summary Retrieves a list of dashboards
|
|
272
|
+
* undefined **Required Permissions** \"reporting.dashboards.view\"
|
|
378
273
|
* @param {string} [authorization] Bearer Token
|
|
379
274
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
380
275
|
* @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.
|
|
@@ -449,8 +344,7 @@ export const DashboardApiAxiosParamCreator = function (configuration?: Configura
|
|
|
449
344
|
};
|
|
450
345
|
},
|
|
451
346
|
/**
|
|
452
|
-
*
|
|
453
|
-
* @summary Publishes a dashboard for general access
|
|
347
|
+
* undefined **Required Permissions** \"reporting.dashboards.update\"
|
|
454
348
|
* @param {PublishDashboardRequestDto} publishDashboardRequestDto
|
|
455
349
|
* @param {string} [authorization] Bearer Token
|
|
456
350
|
* @param {*} [options] Override http request option.
|
|
@@ -496,8 +390,7 @@ export const DashboardApiAxiosParamCreator = function (configuration?: Configura
|
|
|
496
390
|
};
|
|
497
391
|
},
|
|
498
392
|
/**
|
|
499
|
-
*
|
|
500
|
-
* @summary Reverts dashboard analysis to previous state
|
|
393
|
+
* undefined **Required Permissions** \"reporting.dashboards.update\"
|
|
501
394
|
* @param {RevertAnalysisRequestDto} revertAnalysisRequestDto
|
|
502
395
|
* @param {string} [authorization] Bearer Token
|
|
503
396
|
* @param {*} [options] Override http request option.
|
|
@@ -543,8 +436,7 @@ export const DashboardApiAxiosParamCreator = function (configuration?: Configura
|
|
|
543
436
|
};
|
|
544
437
|
},
|
|
545
438
|
/**
|
|
546
|
-
*
|
|
547
|
-
* @summary Updates an existing dashboard
|
|
439
|
+
* undefined **Required Permissions** \"reporting.dashboards.update\"
|
|
548
440
|
* @param {string} code
|
|
549
441
|
* @param {UpdateDashboardRequestDto} updateDashboardRequestDto
|
|
550
442
|
* @param {string} [authorization] Bearer Token
|
|
@@ -604,33 +496,18 @@ export const DashboardApiFp = function(configuration?: Configuration) {
|
|
|
604
496
|
const localVarAxiosParamCreator = DashboardApiAxiosParamCreator(configuration)
|
|
605
497
|
return {
|
|
606
498
|
/**
|
|
607
|
-
*
|
|
608
|
-
* @summary Creates a new dashboard
|
|
609
|
-
* @param {CreateDashboardV2RequestDto} createDashboardV2RequestDto
|
|
610
|
-
* @param {string} [authorization] Bearer Token
|
|
611
|
-
* @param {*} [options] Override http request option.
|
|
612
|
-
* @throws {RequiredError}
|
|
613
|
-
*/
|
|
614
|
-
async createDashboard(createDashboardV2RequestDto: CreateDashboardV2RequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateDashboardV2ResponseClass>> {
|
|
615
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.createDashboard(createDashboardV2RequestDto, authorization, options);
|
|
616
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
617
|
-
},
|
|
618
|
-
/**
|
|
619
|
-
* Creates a new dashboard from a preconfigured analysis id and dashboard id. Use POST /tenantservice/v1/dashboards instead. **Required Permissions** \"reporting.dashboards.create\"
|
|
620
|
-
* @summary Creates a new dashboard (DEPRECATED)
|
|
499
|
+
* undefined **Required Permissions** \"reporting.dashboards.create\"
|
|
621
500
|
* @param {CreateDashboardRequestDto} createDashboardRequestDto
|
|
622
501
|
* @param {string} [authorization] Bearer Token
|
|
623
502
|
* @param {*} [options] Override http request option.
|
|
624
|
-
* @deprecated
|
|
625
503
|
* @throws {RequiredError}
|
|
626
504
|
*/
|
|
627
|
-
async
|
|
628
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
505
|
+
async createDashboard(createDashboardRequestDto: CreateDashboardRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateDashboardResponseClass>> {
|
|
506
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createDashboard(createDashboardRequestDto, authorization, options);
|
|
629
507
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
630
508
|
},
|
|
631
509
|
/**
|
|
632
|
-
*
|
|
633
|
-
* @summary Deletes an existing dashboard
|
|
510
|
+
* undefined **Required Permissions** \"reporting.dashboards.delete\"
|
|
634
511
|
* @param {string} code
|
|
635
512
|
* @param {string} [authorization] Bearer Token
|
|
636
513
|
* @param {*} [options] Override http request option.
|
|
@@ -641,20 +518,7 @@ export const DashboardApiFp = function(configuration?: Configuration) {
|
|
|
641
518
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
642
519
|
},
|
|
643
520
|
/**
|
|
644
|
-
*
|
|
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
|
-
},
|
|
655
|
-
/**
|
|
656
|
-
* Creates a secure embedded URL that allows dashboard analysis and editing within external applications. **Required Permissions** \"reporting.dashboards.update\"
|
|
657
|
-
* @summary Generates an embedded URL for dashboard editing
|
|
521
|
+
* undefined **Required Permissions** \"reporting.dashboards.update\"
|
|
658
522
|
* @param {string} providerDashboardId
|
|
659
523
|
* @param {string} [authorization] Bearer Token
|
|
660
524
|
* @param {*} [options] Override http request option.
|
|
@@ -665,8 +529,7 @@ export const DashboardApiFp = function(configuration?: Configuration) {
|
|
|
665
529
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
666
530
|
},
|
|
667
531
|
/**
|
|
668
|
-
*
|
|
669
|
-
* @summary Retrieves a specific dashboard
|
|
532
|
+
* undefined **Required Permissions** \"reporting.dashboards.view\"
|
|
670
533
|
* @param {string} code
|
|
671
534
|
* @param {string} [authorization] Bearer Token
|
|
672
535
|
* @param {*} [options] Override http request option.
|
|
@@ -677,8 +540,7 @@ export const DashboardApiFp = function(configuration?: Configuration) {
|
|
|
677
540
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
678
541
|
},
|
|
679
542
|
/**
|
|
680
|
-
*
|
|
681
|
-
* @summary Generates an embedded URL for dashboard viewing
|
|
543
|
+
* undefined **Required Permissions** \"reporting.dashboards.view\"
|
|
682
544
|
* @param {string} providerDashboardId
|
|
683
545
|
* @param {string} [authorization] Bearer Token
|
|
684
546
|
* @param {*} [options] Override http request option.
|
|
@@ -689,8 +551,7 @@ export const DashboardApiFp = function(configuration?: Configuration) {
|
|
|
689
551
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
690
552
|
},
|
|
691
553
|
/**
|
|
692
|
-
*
|
|
693
|
-
* @summary Retrieves a list of dashboards
|
|
554
|
+
* undefined **Required Permissions** \"reporting.dashboards.view\"
|
|
694
555
|
* @param {string} [authorization] Bearer Token
|
|
695
556
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
696
557
|
* @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.
|
|
@@ -707,8 +568,7 @@ export const DashboardApiFp = function(configuration?: Configuration) {
|
|
|
707
568
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
708
569
|
},
|
|
709
570
|
/**
|
|
710
|
-
*
|
|
711
|
-
* @summary Publishes a dashboard for general access
|
|
571
|
+
* undefined **Required Permissions** \"reporting.dashboards.update\"
|
|
712
572
|
* @param {PublishDashboardRequestDto} publishDashboardRequestDto
|
|
713
573
|
* @param {string} [authorization] Bearer Token
|
|
714
574
|
* @param {*} [options] Override http request option.
|
|
@@ -719,8 +579,7 @@ export const DashboardApiFp = function(configuration?: Configuration) {
|
|
|
719
579
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
720
580
|
},
|
|
721
581
|
/**
|
|
722
|
-
*
|
|
723
|
-
* @summary Reverts dashboard analysis to previous state
|
|
582
|
+
* undefined **Required Permissions** \"reporting.dashboards.update\"
|
|
724
583
|
* @param {RevertAnalysisRequestDto} revertAnalysisRequestDto
|
|
725
584
|
* @param {string} [authorization] Bearer Token
|
|
726
585
|
* @param {*} [options] Override http request option.
|
|
@@ -731,8 +590,7 @@ export const DashboardApiFp = function(configuration?: Configuration) {
|
|
|
731
590
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
732
591
|
},
|
|
733
592
|
/**
|
|
734
|
-
*
|
|
735
|
-
* @summary Updates an existing dashboard
|
|
593
|
+
* undefined **Required Permissions** \"reporting.dashboards.update\"
|
|
736
594
|
* @param {string} code
|
|
737
595
|
* @param {UpdateDashboardRequestDto} updateDashboardRequestDto
|
|
738
596
|
* @param {string} [authorization] Bearer Token
|
|
@@ -754,31 +612,17 @@ export const DashboardApiFactory = function (configuration?: Configuration, base
|
|
|
754
612
|
const localVarFp = DashboardApiFp(configuration)
|
|
755
613
|
return {
|
|
756
614
|
/**
|
|
757
|
-
*
|
|
758
|
-
* @summary Creates a new dashboard
|
|
759
|
-
* @param {CreateDashboardV2RequestDto} createDashboardV2RequestDto
|
|
760
|
-
* @param {string} [authorization] Bearer Token
|
|
761
|
-
* @param {*} [options] Override http request option.
|
|
762
|
-
* @throws {RequiredError}
|
|
763
|
-
*/
|
|
764
|
-
createDashboard(createDashboardV2RequestDto: CreateDashboardV2RequestDto, authorization?: string, options?: any): AxiosPromise<CreateDashboardV2ResponseClass> {
|
|
765
|
-
return localVarFp.createDashboard(createDashboardV2RequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
766
|
-
},
|
|
767
|
-
/**
|
|
768
|
-
* Creates a new dashboard from a preconfigured analysis id and dashboard id. Use POST /tenantservice/v1/dashboards instead. **Required Permissions** \"reporting.dashboards.create\"
|
|
769
|
-
* @summary Creates a new dashboard (DEPRECATED)
|
|
615
|
+
* undefined **Required Permissions** \"reporting.dashboards.create\"
|
|
770
616
|
* @param {CreateDashboardRequestDto} createDashboardRequestDto
|
|
771
617
|
* @param {string} [authorization] Bearer Token
|
|
772
618
|
* @param {*} [options] Override http request option.
|
|
773
|
-
* @deprecated
|
|
774
619
|
* @throws {RequiredError}
|
|
775
620
|
*/
|
|
776
|
-
|
|
777
|
-
return localVarFp.
|
|
621
|
+
createDashboard(createDashboardRequestDto: CreateDashboardRequestDto, authorization?: string, options?: any): AxiosPromise<CreateDashboardResponseClass> {
|
|
622
|
+
return localVarFp.createDashboard(createDashboardRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
778
623
|
},
|
|
779
624
|
/**
|
|
780
|
-
*
|
|
781
|
-
* @summary Deletes an existing dashboard
|
|
625
|
+
* undefined **Required Permissions** \"reporting.dashboards.delete\"
|
|
782
626
|
* @param {string} code
|
|
783
627
|
* @param {string} [authorization] Bearer Token
|
|
784
628
|
* @param {*} [options] Override http request option.
|
|
@@ -788,19 +632,7 @@ export const DashboardApiFactory = function (configuration?: Configuration, base
|
|
|
788
632
|
return localVarFp.deleteDashboard(code, authorization, options).then((request) => request(axios, basePath));
|
|
789
633
|
},
|
|
790
634
|
/**
|
|
791
|
-
*
|
|
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
|
-
},
|
|
801
|
-
/**
|
|
802
|
-
* Creates a secure embedded URL that allows dashboard analysis and editing within external applications. **Required Permissions** \"reporting.dashboards.update\"
|
|
803
|
-
* @summary Generates an embedded URL for dashboard editing
|
|
635
|
+
* undefined **Required Permissions** \"reporting.dashboards.update\"
|
|
804
636
|
* @param {string} providerDashboardId
|
|
805
637
|
* @param {string} [authorization] Bearer Token
|
|
806
638
|
* @param {*} [options] Override http request option.
|
|
@@ -810,8 +642,7 @@ export const DashboardApiFactory = function (configuration?: Configuration, base
|
|
|
810
642
|
return localVarFp.getAnalysisEmbeddedUrl(providerDashboardId, authorization, options).then((request) => request(axios, basePath));
|
|
811
643
|
},
|
|
812
644
|
/**
|
|
813
|
-
*
|
|
814
|
-
* @summary Retrieves a specific dashboard
|
|
645
|
+
* undefined **Required Permissions** \"reporting.dashboards.view\"
|
|
815
646
|
* @param {string} code
|
|
816
647
|
* @param {string} [authorization] Bearer Token
|
|
817
648
|
* @param {*} [options] Override http request option.
|
|
@@ -821,8 +652,7 @@ export const DashboardApiFactory = function (configuration?: Configuration, base
|
|
|
821
652
|
return localVarFp.getDashboard(code, authorization, options).then((request) => request(axios, basePath));
|
|
822
653
|
},
|
|
823
654
|
/**
|
|
824
|
-
*
|
|
825
|
-
* @summary Generates an embedded URL for dashboard viewing
|
|
655
|
+
* undefined **Required Permissions** \"reporting.dashboards.view\"
|
|
826
656
|
* @param {string} providerDashboardId
|
|
827
657
|
* @param {string} [authorization] Bearer Token
|
|
828
658
|
* @param {*} [options] Override http request option.
|
|
@@ -832,8 +662,7 @@ export const DashboardApiFactory = function (configuration?: Configuration, base
|
|
|
832
662
|
return localVarFp.getDashboardEmbeddedUrl(providerDashboardId, authorization, options).then((request) => request(axios, basePath));
|
|
833
663
|
},
|
|
834
664
|
/**
|
|
835
|
-
*
|
|
836
|
-
* @summary Retrieves a list of dashboards
|
|
665
|
+
* undefined **Required Permissions** \"reporting.dashboards.view\"
|
|
837
666
|
* @param {string} [authorization] Bearer Token
|
|
838
667
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
839
668
|
* @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.
|
|
@@ -849,8 +678,7 @@ export const DashboardApiFactory = function (configuration?: Configuration, base
|
|
|
849
678
|
return localVarFp.listDashboards(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
850
679
|
},
|
|
851
680
|
/**
|
|
852
|
-
*
|
|
853
|
-
* @summary Publishes a dashboard for general access
|
|
681
|
+
* undefined **Required Permissions** \"reporting.dashboards.update\"
|
|
854
682
|
* @param {PublishDashboardRequestDto} publishDashboardRequestDto
|
|
855
683
|
* @param {string} [authorization] Bearer Token
|
|
856
684
|
* @param {*} [options] Override http request option.
|
|
@@ -860,8 +688,7 @@ export const DashboardApiFactory = function (configuration?: Configuration, base
|
|
|
860
688
|
return localVarFp.publishDashboard(publishDashboardRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
861
689
|
},
|
|
862
690
|
/**
|
|
863
|
-
*
|
|
864
|
-
* @summary Reverts dashboard analysis to previous state
|
|
691
|
+
* undefined **Required Permissions** \"reporting.dashboards.update\"
|
|
865
692
|
* @param {RevertAnalysisRequestDto} revertAnalysisRequestDto
|
|
866
693
|
* @param {string} [authorization] Bearer Token
|
|
867
694
|
* @param {*} [options] Override http request option.
|
|
@@ -871,8 +698,7 @@ export const DashboardApiFactory = function (configuration?: Configuration, base
|
|
|
871
698
|
return localVarFp.revertAnalysis(revertAnalysisRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
872
699
|
},
|
|
873
700
|
/**
|
|
874
|
-
*
|
|
875
|
-
* @summary Updates an existing dashboard
|
|
701
|
+
* undefined **Required Permissions** \"reporting.dashboards.update\"
|
|
876
702
|
* @param {string} code
|
|
877
703
|
* @param {UpdateDashboardRequestDto} updateDashboardRequestDto
|
|
878
704
|
* @param {string} [authorization] Bearer Token
|
|
@@ -891,38 +717,17 @@ export const DashboardApiFactory = function (configuration?: Configuration, base
|
|
|
891
717
|
* @interface DashboardApiCreateDashboardRequest
|
|
892
718
|
*/
|
|
893
719
|
export interface DashboardApiCreateDashboardRequest {
|
|
894
|
-
/**
|
|
895
|
-
*
|
|
896
|
-
* @type {CreateDashboardV2RequestDto}
|
|
897
|
-
* @memberof DashboardApiCreateDashboard
|
|
898
|
-
*/
|
|
899
|
-
readonly createDashboardV2RequestDto: CreateDashboardV2RequestDto
|
|
900
|
-
|
|
901
|
-
/**
|
|
902
|
-
* Bearer Token
|
|
903
|
-
* @type {string}
|
|
904
|
-
* @memberof DashboardApiCreateDashboard
|
|
905
|
-
*/
|
|
906
|
-
readonly authorization?: string
|
|
907
|
-
}
|
|
908
|
-
|
|
909
|
-
/**
|
|
910
|
-
* Request parameters for createDashboardLegacy operation in DashboardApi.
|
|
911
|
-
* @export
|
|
912
|
-
* @interface DashboardApiCreateDashboardLegacyRequest
|
|
913
|
-
*/
|
|
914
|
-
export interface DashboardApiCreateDashboardLegacyRequest {
|
|
915
720
|
/**
|
|
916
721
|
*
|
|
917
722
|
* @type {CreateDashboardRequestDto}
|
|
918
|
-
* @memberof
|
|
723
|
+
* @memberof DashboardApiCreateDashboard
|
|
919
724
|
*/
|
|
920
725
|
readonly createDashboardRequestDto: CreateDashboardRequestDto
|
|
921
726
|
|
|
922
727
|
/**
|
|
923
728
|
* Bearer Token
|
|
924
729
|
* @type {string}
|
|
925
|
-
* @memberof
|
|
730
|
+
* @memberof DashboardApiCreateDashboard
|
|
926
731
|
*/
|
|
927
732
|
readonly authorization?: string
|
|
928
733
|
}
|
|
@@ -948,27 +753,6 @@ export interface DashboardApiDeleteDashboardRequest {
|
|
|
948
753
|
readonly authorization?: string
|
|
949
754
|
}
|
|
950
755
|
|
|
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
|
-
|
|
972
756
|
/**
|
|
973
757
|
* Request parameters for getAnalysisEmbeddedUrl operation in DashboardApi.
|
|
974
758
|
* @export
|
|
@@ -1173,33 +957,18 @@ export interface DashboardApiUpdateDashboardRequest {
|
|
|
1173
957
|
*/
|
|
1174
958
|
export class DashboardApi extends BaseAPI {
|
|
1175
959
|
/**
|
|
1176
|
-
*
|
|
1177
|
-
* @summary Creates a new dashboard
|
|
960
|
+
* undefined **Required Permissions** \"reporting.dashboards.create\"
|
|
1178
961
|
* @param {DashboardApiCreateDashboardRequest} requestParameters Request parameters.
|
|
1179
962
|
* @param {*} [options] Override http request option.
|
|
1180
963
|
* @throws {RequiredError}
|
|
1181
964
|
* @memberof DashboardApi
|
|
1182
965
|
*/
|
|
1183
966
|
public createDashboard(requestParameters: DashboardApiCreateDashboardRequest, options?: AxiosRequestConfig) {
|
|
1184
|
-
return DashboardApiFp(this.configuration).createDashboard(requestParameters.
|
|
1185
|
-
}
|
|
1186
|
-
|
|
1187
|
-
/**
|
|
1188
|
-
* Creates a new dashboard from a preconfigured analysis id and dashboard id. Use POST /tenantservice/v1/dashboards instead. **Required Permissions** \"reporting.dashboards.create\"
|
|
1189
|
-
* @summary Creates a new dashboard (DEPRECATED)
|
|
1190
|
-
* @param {DashboardApiCreateDashboardLegacyRequest} requestParameters Request parameters.
|
|
1191
|
-
* @param {*} [options] Override http request option.
|
|
1192
|
-
* @deprecated
|
|
1193
|
-
* @throws {RequiredError}
|
|
1194
|
-
* @memberof DashboardApi
|
|
1195
|
-
*/
|
|
1196
|
-
public createDashboardLegacy(requestParameters: DashboardApiCreateDashboardLegacyRequest, options?: AxiosRequestConfig) {
|
|
1197
|
-
return DashboardApiFp(this.configuration).createDashboardLegacy(requestParameters.createDashboardRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
967
|
+
return DashboardApiFp(this.configuration).createDashboard(requestParameters.createDashboardRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1198
968
|
}
|
|
1199
969
|
|
|
1200
970
|
/**
|
|
1201
|
-
*
|
|
1202
|
-
* @summary Deletes an existing dashboard
|
|
971
|
+
* undefined **Required Permissions** \"reporting.dashboards.delete\"
|
|
1203
972
|
* @param {DashboardApiDeleteDashboardRequest} requestParameters Request parameters.
|
|
1204
973
|
* @param {*} [options] Override http request option.
|
|
1205
974
|
* @throws {RequiredError}
|
|
@@ -1210,20 +979,7 @@ export class DashboardApi extends BaseAPI {
|
|
|
1210
979
|
}
|
|
1211
980
|
|
|
1212
981
|
/**
|
|
1213
|
-
*
|
|
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
|
-
|
|
1224
|
-
/**
|
|
1225
|
-
* Creates a secure embedded URL that allows dashboard analysis and editing within external applications. **Required Permissions** \"reporting.dashboards.update\"
|
|
1226
|
-
* @summary Generates an embedded URL for dashboard editing
|
|
982
|
+
* undefined **Required Permissions** \"reporting.dashboards.update\"
|
|
1227
983
|
* @param {DashboardApiGetAnalysisEmbeddedUrlRequest} requestParameters Request parameters.
|
|
1228
984
|
* @param {*} [options] Override http request option.
|
|
1229
985
|
* @throws {RequiredError}
|
|
@@ -1234,8 +990,7 @@ export class DashboardApi extends BaseAPI {
|
|
|
1234
990
|
}
|
|
1235
991
|
|
|
1236
992
|
/**
|
|
1237
|
-
*
|
|
1238
|
-
* @summary Retrieves a specific dashboard
|
|
993
|
+
* undefined **Required Permissions** \"reporting.dashboards.view\"
|
|
1239
994
|
* @param {DashboardApiGetDashboardRequest} requestParameters Request parameters.
|
|
1240
995
|
* @param {*} [options] Override http request option.
|
|
1241
996
|
* @throws {RequiredError}
|
|
@@ -1246,8 +1001,7 @@ export class DashboardApi extends BaseAPI {
|
|
|
1246
1001
|
}
|
|
1247
1002
|
|
|
1248
1003
|
/**
|
|
1249
|
-
*
|
|
1250
|
-
* @summary Generates an embedded URL for dashboard viewing
|
|
1004
|
+
* undefined **Required Permissions** \"reporting.dashboards.view\"
|
|
1251
1005
|
* @param {DashboardApiGetDashboardEmbeddedUrlRequest} requestParameters Request parameters.
|
|
1252
1006
|
* @param {*} [options] Override http request option.
|
|
1253
1007
|
* @throws {RequiredError}
|
|
@@ -1258,8 +1012,7 @@ export class DashboardApi extends BaseAPI {
|
|
|
1258
1012
|
}
|
|
1259
1013
|
|
|
1260
1014
|
/**
|
|
1261
|
-
*
|
|
1262
|
-
* @summary Retrieves a list of dashboards
|
|
1015
|
+
* undefined **Required Permissions** \"reporting.dashboards.view\"
|
|
1263
1016
|
* @param {DashboardApiListDashboardsRequest} requestParameters Request parameters.
|
|
1264
1017
|
* @param {*} [options] Override http request option.
|
|
1265
1018
|
* @throws {RequiredError}
|
|
@@ -1270,8 +1023,7 @@ export class DashboardApi extends BaseAPI {
|
|
|
1270
1023
|
}
|
|
1271
1024
|
|
|
1272
1025
|
/**
|
|
1273
|
-
*
|
|
1274
|
-
* @summary Publishes a dashboard for general access
|
|
1026
|
+
* undefined **Required Permissions** \"reporting.dashboards.update\"
|
|
1275
1027
|
* @param {DashboardApiPublishDashboardRequest} requestParameters Request parameters.
|
|
1276
1028
|
* @param {*} [options] Override http request option.
|
|
1277
1029
|
* @throws {RequiredError}
|
|
@@ -1282,8 +1034,7 @@ export class DashboardApi extends BaseAPI {
|
|
|
1282
1034
|
}
|
|
1283
1035
|
|
|
1284
1036
|
/**
|
|
1285
|
-
*
|
|
1286
|
-
* @summary Reverts dashboard analysis to previous state
|
|
1037
|
+
* undefined **Required Permissions** \"reporting.dashboards.update\"
|
|
1287
1038
|
* @param {DashboardApiRevertAnalysisRequest} requestParameters Request parameters.
|
|
1288
1039
|
* @param {*} [options] Override http request option.
|
|
1289
1040
|
* @throws {RequiredError}
|
|
@@ -1294,8 +1045,7 @@ export class DashboardApi extends BaseAPI {
|
|
|
1294
1045
|
}
|
|
1295
1046
|
|
|
1296
1047
|
/**
|
|
1297
|
-
*
|
|
1298
|
-
* @summary Updates an existing dashboard
|
|
1048
|
+
* undefined **Required Permissions** \"reporting.dashboards.update\"
|
|
1299
1049
|
* @param {DashboardApiUpdateDashboardRequest} requestParameters Request parameters.
|
|
1300
1050
|
* @param {*} [options] Override http request option.
|
|
1301
1051
|
* @throws {RequiredError}
|