@emilgroup/tenant-sdk 1.27.1-beta.0 → 1.29.1-beta.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 +2 -0
- package/README.md +2 -2
- package/api/custom-schema-api.ts +16 -16
- package/api/dashboard-api.ts +226 -24
- package/api/dashboard-group-api.ts +20 -20
- package/api/data-report-api.ts +16 -16
- package/api/data-report-executor-api.ts +4 -4
- package/api/delete-organization-invitations-api.ts +4 -4
- package/api/invite-organizations-api.ts +4 -4
- package/api/invite-users-api.ts +16 -16
- package/api/list-organization-invitations-api.ts +4 -4
- package/api/organizations-api.ts +12 -12
- package/api/re-invite-an-organization-api.ts +4 -4
- package/api/roles-api.ts +4 -4
- package/api/settings-api.ts +4 -4
- package/api/users-api.ts +28 -28
- package/common.ts +2 -2
- package/configuration.ts +9 -0
- package/dist/api/custom-schema-api.d.ts +16 -16
- package/dist/api/custom-schema-api.js +16 -16
- package/dist/api/dashboard-api.d.ts +128 -24
- package/dist/api/dashboard-api.js +202 -24
- package/dist/api/dashboard-group-api.d.ts +20 -20
- package/dist/api/dashboard-group-api.js +20 -20
- package/dist/api/data-report-api.d.ts +16 -16
- package/dist/api/data-report-api.js +16 -16
- package/dist/api/data-report-executor-api.d.ts +4 -4
- package/dist/api/data-report-executor-api.js +4 -4
- package/dist/api/delete-organization-invitations-api.d.ts +4 -4
- package/dist/api/delete-organization-invitations-api.js +4 -4
- package/dist/api/invite-organizations-api.d.ts +4 -4
- package/dist/api/invite-organizations-api.js +4 -4
- package/dist/api/invite-users-api.d.ts +16 -16
- package/dist/api/invite-users-api.js +16 -16
- package/dist/api/list-organization-invitations-api.d.ts +4 -4
- package/dist/api/list-organization-invitations-api.js +4 -4
- package/dist/api/organizations-api.d.ts +12 -12
- package/dist/api/organizations-api.js +12 -12
- package/dist/api/re-invite-an-organization-api.d.ts +4 -4
- package/dist/api/re-invite-an-organization-api.js +4 -4
- package/dist/api/roles-api.d.ts +4 -4
- package/dist/api/roles-api.js +4 -4
- package/dist/api/settings-api.d.ts +4 -4
- package/dist/api/settings-api.js +4 -4
- package/dist/api/users-api.d.ts +28 -28
- package/dist/api/users-api.js +28 -28
- package/dist/common.js +2 -2
- package/dist/configuration.d.ts +6 -0
- package/dist/configuration.js +8 -0
- package/dist/models/index.d.ts +2 -0
- package/dist/models/index.js +2 -0
- package/dist/models/publish-dashboard-request-dto.d.ts +34 -0
- package/dist/models/publish-dashboard-request-dto.js +19 -0
- package/dist/models/revert-analysis-request-dto.d.ts +34 -0
- package/dist/models/revert-analysis-request-dto.js +19 -0
- package/models/index.ts +2 -0
- package/models/publish-dashboard-request-dto.ts +43 -0
- package/models/revert-analysis-request-dto.ts +43 -0
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -86,7 +86,9 @@ models/org-invitation-class.ts
|
|
|
86
86
|
models/org-invitation-response-class.ts
|
|
87
87
|
models/organization-class.ts
|
|
88
88
|
models/permission-class.ts
|
|
89
|
+
models/publish-dashboard-request-dto.ts
|
|
89
90
|
models/re-invite-org-request-dto.ts
|
|
91
|
+
models/revert-analysis-request-dto.ts
|
|
90
92
|
models/role-class.ts
|
|
91
93
|
models/run-data-report-request-dto.ts
|
|
92
94
|
models/run-data-report-response-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.29.1-beta.0 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/tenant-sdk@1.
|
|
24
|
+
yarn add @emilgroup/tenant-sdk@1.29.1-beta.0
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `UsersApi`.
|
package/api/custom-schema-api.ts
CHANGED
|
@@ -39,7 +39,7 @@ import { UpdateCustomSchemaResponseClass } from '../models';
|
|
|
39
39
|
export const CustomSchemaApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
40
40
|
return {
|
|
41
41
|
/**
|
|
42
|
-
* This will create an custom schema for tenant in the database. Custom schema are extra fields that tenant added to his entity and we need to validate this fields using the created schema.
|
|
42
|
+
* This will create an custom schema for tenant in the database. Custom schema are extra fields that tenant added to his entity and we need to validate this fields using the created schema. **Required Permissions** \"tenant-management.custom-schemas.create\"
|
|
43
43
|
* @summary Create the custom-schema
|
|
44
44
|
* @param {CreateCustomSchemaRequestDto} createCustomSchemaRequestDto
|
|
45
45
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -86,7 +86,7 @@ export const CustomSchemaApiAxiosParamCreator = function (configuration?: Config
|
|
|
86
86
|
};
|
|
87
87
|
},
|
|
88
88
|
/**
|
|
89
|
-
* Retrieves the details of the custom-schema that was previously created. Supply the unique custom-schema code that was returned when you created it and Emil Api will return the corresponding custom-schema information.
|
|
89
|
+
* Retrieves the details of the custom-schema that was previously created. Supply the unique custom-schema code that was returned when you created it and Emil Api will return the corresponding custom-schema information. **Required Permissions** \"tenant-management.custom-schemas.view\"
|
|
90
90
|
* @summary Retrieve the custom-schema
|
|
91
91
|
* @param {string} code Unique identifier for the object.
|
|
92
92
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -136,7 +136,7 @@ export const CustomSchemaApiAxiosParamCreator = function (configuration?: Config
|
|
|
136
136
|
};
|
|
137
137
|
},
|
|
138
138
|
/**
|
|
139
|
-
* Returns a list of custom-schemas you have previously created. The custom-schemas are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
139
|
+
* Returns a list of custom-schemas you have previously created. The custom-schemas are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"tenant-management.custom-schemas.view\"
|
|
140
140
|
* @summary List custom-schemas
|
|
141
141
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
142
142
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
@@ -212,7 +212,7 @@ export const CustomSchemaApiAxiosParamCreator = function (configuration?: Config
|
|
|
212
212
|
};
|
|
213
213
|
},
|
|
214
214
|
/**
|
|
215
|
-
* Updates the specified custom-schema by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
215
|
+
* Updates the specified custom-schema by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"tenant-management.custom-schemas.update\"
|
|
216
216
|
* @summary Update the custom-schema
|
|
217
217
|
* @param {string} code
|
|
218
218
|
* @param {UpdateCustomSchemaRequestDto} updateCustomSchemaRequestDto
|
|
@@ -273,7 +273,7 @@ export const CustomSchemaApiFp = function(configuration?: Configuration) {
|
|
|
273
273
|
const localVarAxiosParamCreator = CustomSchemaApiAxiosParamCreator(configuration)
|
|
274
274
|
return {
|
|
275
275
|
/**
|
|
276
|
-
* This will create an custom schema for tenant in the database. Custom schema are extra fields that tenant added to his entity and we need to validate this fields using the created schema.
|
|
276
|
+
* This will create an custom schema for tenant in the database. Custom schema are extra fields that tenant added to his entity and we need to validate this fields using the created schema. **Required Permissions** \"tenant-management.custom-schemas.create\"
|
|
277
277
|
* @summary Create the custom-schema
|
|
278
278
|
* @param {CreateCustomSchemaRequestDto} createCustomSchemaRequestDto
|
|
279
279
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -285,7 +285,7 @@ export const CustomSchemaApiFp = function(configuration?: Configuration) {
|
|
|
285
285
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
286
286
|
},
|
|
287
287
|
/**
|
|
288
|
-
* Retrieves the details of the custom-schema that was previously created. Supply the unique custom-schema code that was returned when you created it and Emil Api will return the corresponding custom-schema information.
|
|
288
|
+
* Retrieves the details of the custom-schema that was previously created. Supply the unique custom-schema code that was returned when you created it and Emil Api will return the corresponding custom-schema information. **Required Permissions** \"tenant-management.custom-schemas.view\"
|
|
289
289
|
* @summary Retrieve the custom-schema
|
|
290
290
|
* @param {string} code Unique identifier for the object.
|
|
291
291
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -298,7 +298,7 @@ export const CustomSchemaApiFp = function(configuration?: Configuration) {
|
|
|
298
298
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
299
299
|
},
|
|
300
300
|
/**
|
|
301
|
-
* Returns a list of custom-schemas you have previously created. The custom-schemas are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
301
|
+
* Returns a list of custom-schemas you have previously created. The custom-schemas are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"tenant-management.custom-schemas.view\"
|
|
302
302
|
* @summary List custom-schemas
|
|
303
303
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
304
304
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
@@ -316,7 +316,7 @@ export const CustomSchemaApiFp = function(configuration?: Configuration) {
|
|
|
316
316
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
317
317
|
},
|
|
318
318
|
/**
|
|
319
|
-
* Updates the specified custom-schema by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
319
|
+
* Updates the specified custom-schema by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"tenant-management.custom-schemas.update\"
|
|
320
320
|
* @summary Update the custom-schema
|
|
321
321
|
* @param {string} code
|
|
322
322
|
* @param {UpdateCustomSchemaRequestDto} updateCustomSchemaRequestDto
|
|
@@ -339,7 +339,7 @@ export const CustomSchemaApiFactory = function (configuration?: Configuration, b
|
|
|
339
339
|
const localVarFp = CustomSchemaApiFp(configuration)
|
|
340
340
|
return {
|
|
341
341
|
/**
|
|
342
|
-
* This will create an custom schema for tenant in the database. Custom schema are extra fields that tenant added to his entity and we need to validate this fields using the created schema.
|
|
342
|
+
* This will create an custom schema for tenant in the database. Custom schema are extra fields that tenant added to his entity and we need to validate this fields using the created schema. **Required Permissions** \"tenant-management.custom-schemas.create\"
|
|
343
343
|
* @summary Create the custom-schema
|
|
344
344
|
* @param {CreateCustomSchemaRequestDto} createCustomSchemaRequestDto
|
|
345
345
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -350,7 +350,7 @@ export const CustomSchemaApiFactory = function (configuration?: Configuration, b
|
|
|
350
350
|
return localVarFp.createCustomSchema(createCustomSchemaRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
351
351
|
},
|
|
352
352
|
/**
|
|
353
|
-
* Retrieves the details of the custom-schema that was previously created. Supply the unique custom-schema code that was returned when you created it and Emil Api will return the corresponding custom-schema information.
|
|
353
|
+
* Retrieves the details of the custom-schema that was previously created. Supply the unique custom-schema code that was returned when you created it and Emil Api will return the corresponding custom-schema information. **Required Permissions** \"tenant-management.custom-schemas.view\"
|
|
354
354
|
* @summary Retrieve the custom-schema
|
|
355
355
|
* @param {string} code Unique identifier for the object.
|
|
356
356
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -362,7 +362,7 @@ export const CustomSchemaApiFactory = function (configuration?: Configuration, b
|
|
|
362
362
|
return localVarFp.getCustomSchema(code, authorization, expand, options).then((request) => request(axios, basePath));
|
|
363
363
|
},
|
|
364
364
|
/**
|
|
365
|
-
* Returns a list of custom-schemas you have previously created. The custom-schemas are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
365
|
+
* Returns a list of custom-schemas you have previously created. The custom-schemas are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"tenant-management.custom-schemas.view\"
|
|
366
366
|
* @summary List custom-schemas
|
|
367
367
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
368
368
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
@@ -379,7 +379,7 @@ export const CustomSchemaApiFactory = function (configuration?: Configuration, b
|
|
|
379
379
|
return localVarFp.listCustomSchemas(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
380
380
|
},
|
|
381
381
|
/**
|
|
382
|
-
* Updates the specified custom-schema by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
382
|
+
* Updates the specified custom-schema by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"tenant-management.custom-schemas.update\"
|
|
383
383
|
* @summary Update the custom-schema
|
|
384
384
|
* @param {string} code
|
|
385
385
|
* @param {UpdateCustomSchemaRequestDto} updateCustomSchemaRequestDto
|
|
@@ -541,7 +541,7 @@ export interface CustomSchemaApiUpdateCustomSchemaRequest {
|
|
|
541
541
|
*/
|
|
542
542
|
export class CustomSchemaApi extends BaseAPI {
|
|
543
543
|
/**
|
|
544
|
-
* This will create an custom schema for tenant in the database. Custom schema are extra fields that tenant added to his entity and we need to validate this fields using the created schema.
|
|
544
|
+
* This will create an custom schema for tenant in the database. Custom schema are extra fields that tenant added to his entity and we need to validate this fields using the created schema. **Required Permissions** \"tenant-management.custom-schemas.create\"
|
|
545
545
|
* @summary Create the custom-schema
|
|
546
546
|
* @param {CustomSchemaApiCreateCustomSchemaRequest} requestParameters Request parameters.
|
|
547
547
|
* @param {*} [options] Override http request option.
|
|
@@ -553,7 +553,7 @@ export class CustomSchemaApi extends BaseAPI {
|
|
|
553
553
|
}
|
|
554
554
|
|
|
555
555
|
/**
|
|
556
|
-
* Retrieves the details of the custom-schema that was previously created. Supply the unique custom-schema code that was returned when you created it and Emil Api will return the corresponding custom-schema information.
|
|
556
|
+
* Retrieves the details of the custom-schema that was previously created. Supply the unique custom-schema code that was returned when you created it and Emil Api will return the corresponding custom-schema information. **Required Permissions** \"tenant-management.custom-schemas.view\"
|
|
557
557
|
* @summary Retrieve the custom-schema
|
|
558
558
|
* @param {CustomSchemaApiGetCustomSchemaRequest} requestParameters Request parameters.
|
|
559
559
|
* @param {*} [options] Override http request option.
|
|
@@ -565,7 +565,7 @@ export class CustomSchemaApi extends BaseAPI {
|
|
|
565
565
|
}
|
|
566
566
|
|
|
567
567
|
/**
|
|
568
|
-
* Returns a list of custom-schemas you have previously created. The custom-schemas are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
568
|
+
* Returns a list of custom-schemas you have previously created. The custom-schemas are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"tenant-management.custom-schemas.view\"
|
|
569
569
|
* @summary List custom-schemas
|
|
570
570
|
* @param {CustomSchemaApiListCustomSchemasRequest} requestParameters Request parameters.
|
|
571
571
|
* @param {*} [options] Override http request option.
|
|
@@ -577,7 +577,7 @@ export class CustomSchemaApi extends BaseAPI {
|
|
|
577
577
|
}
|
|
578
578
|
|
|
579
579
|
/**
|
|
580
|
-
* Updates the specified custom-schema by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
580
|
+
* Updates the specified custom-schema by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"tenant-management.custom-schemas.update\"
|
|
581
581
|
* @summary Update the custom-schema
|
|
582
582
|
* @param {CustomSchemaApiUpdateCustomSchemaRequest} requestParameters Request parameters.
|
|
583
583
|
* @param {*} [options] Override http request option.
|
package/api/dashboard-api.ts
CHANGED
|
@@ -33,6 +33,10 @@ import { GetEmbeddedUrlResponseClass } from '../models';
|
|
|
33
33
|
// @ts-ignore
|
|
34
34
|
import { ListDashboardsResponseClass } from '../models';
|
|
35
35
|
// @ts-ignore
|
|
36
|
+
import { PublishDashboardRequestDto } from '../models';
|
|
37
|
+
// @ts-ignore
|
|
38
|
+
import { RevertAnalysisRequestDto } from '../models';
|
|
39
|
+
// @ts-ignore
|
|
36
40
|
import { UpdateDashboardRequestDto } from '../models';
|
|
37
41
|
// @ts-ignore
|
|
38
42
|
import { UpdateDashboardResponseClass } from '../models';
|
|
@@ -43,7 +47,7 @@ import { UpdateDashboardResponseClass } from '../models';
|
|
|
43
47
|
export const DashboardApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
44
48
|
return {
|
|
45
49
|
/**
|
|
46
|
-
*
|
|
50
|
+
* undefined **Required Permissions** \"pbm-management.dashboards.create\"
|
|
47
51
|
* @param {CreateDashboardRequestDto} createDashboardRequestDto
|
|
48
52
|
* @param {string} [authorization] Bearer Token
|
|
49
53
|
* @param {*} [options] Override http request option.
|
|
@@ -89,7 +93,7 @@ export const DashboardApiAxiosParamCreator = function (configuration?: Configura
|
|
|
89
93
|
};
|
|
90
94
|
},
|
|
91
95
|
/**
|
|
92
|
-
*
|
|
96
|
+
* undefined **Required Permissions** \"pbm-management.dashboards.delete\"
|
|
93
97
|
* @param {string} code
|
|
94
98
|
* @param {string} [authorization] Bearer Token
|
|
95
99
|
* @param {*} [options] Override http request option.
|
|
@@ -133,7 +137,7 @@ export const DashboardApiAxiosParamCreator = function (configuration?: Configura
|
|
|
133
137
|
};
|
|
134
138
|
},
|
|
135
139
|
/**
|
|
136
|
-
*
|
|
140
|
+
* undefined **Required Permissions** \"pbm-management.dashboards.view\"
|
|
137
141
|
* @param {string} code
|
|
138
142
|
* @param {string} [authorization] Bearer Token
|
|
139
143
|
* @param {*} [options] Override http request option.
|
|
@@ -177,7 +181,7 @@ export const DashboardApiAxiosParamCreator = function (configuration?: Configura
|
|
|
177
181
|
};
|
|
178
182
|
},
|
|
179
183
|
/**
|
|
180
|
-
*
|
|
184
|
+
* undefined **Required Permissions** \"pbm-management.dashboards.view\"
|
|
181
185
|
* @param {string} providerDashboardId
|
|
182
186
|
* @param {string} [authorization] Bearer Token
|
|
183
187
|
* @param {*} [options] Override http request option.
|
|
@@ -221,7 +225,7 @@ export const DashboardApiAxiosParamCreator = function (configuration?: Configura
|
|
|
221
225
|
};
|
|
222
226
|
},
|
|
223
227
|
/**
|
|
224
|
-
*
|
|
228
|
+
* undefined **Required Permissions** \"pbm-management.dashboards.view\"
|
|
225
229
|
* @param {string} [authorization] Bearer Token
|
|
226
230
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
227
231
|
* @param {any} [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.
|
|
@@ -296,7 +300,99 @@ export const DashboardApiAxiosParamCreator = function (configuration?: Configura
|
|
|
296
300
|
};
|
|
297
301
|
},
|
|
298
302
|
/**
|
|
299
|
-
*
|
|
303
|
+
* undefined **Required Permissions** \"pbm-management.dashboards.update\"
|
|
304
|
+
* @param {PublishDashboardRequestDto} publishDashboardRequestDto
|
|
305
|
+
* @param {string} [authorization] Bearer Token
|
|
306
|
+
* @param {*} [options] Override http request option.
|
|
307
|
+
* @throws {RequiredError}
|
|
308
|
+
*/
|
|
309
|
+
publishDashboard: async (publishDashboardRequestDto: PublishDashboardRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
310
|
+
// verify required parameter 'publishDashboardRequestDto' is not null or undefined
|
|
311
|
+
assertParamExists('publishDashboard', 'publishDashboardRequestDto', publishDashboardRequestDto)
|
|
312
|
+
const localVarPath = `/tenantservice/v1/dashboards/publish-dashboard`;
|
|
313
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
314
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
315
|
+
let baseOptions;
|
|
316
|
+
let baseAccessToken;
|
|
317
|
+
if (configuration) {
|
|
318
|
+
baseOptions = configuration.baseOptions;
|
|
319
|
+
baseAccessToken = configuration.accessToken;
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
323
|
+
const localVarHeaderParameter = {} as any;
|
|
324
|
+
const localVarQueryParameter = {} as any;
|
|
325
|
+
|
|
326
|
+
// authentication bearer required
|
|
327
|
+
// http bearer authentication required
|
|
328
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
329
|
+
|
|
330
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
331
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
|
|
335
|
+
|
|
336
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
337
|
+
|
|
338
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
339
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
340
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
341
|
+
localVarRequestOptions.data = serializeDataIfNeeded(publishDashboardRequestDto, localVarRequestOptions, configuration)
|
|
342
|
+
|
|
343
|
+
return {
|
|
344
|
+
url: toPathString(localVarUrlObj),
|
|
345
|
+
options: localVarRequestOptions,
|
|
346
|
+
};
|
|
347
|
+
},
|
|
348
|
+
/**
|
|
349
|
+
* undefined **Required Permissions** \"pbm-management.dashboards.update\"
|
|
350
|
+
* @param {RevertAnalysisRequestDto} revertAnalysisRequestDto
|
|
351
|
+
* @param {string} [authorization] Bearer Token
|
|
352
|
+
* @param {*} [options] Override http request option.
|
|
353
|
+
* @throws {RequiredError}
|
|
354
|
+
*/
|
|
355
|
+
revertAnalysis: async (revertAnalysisRequestDto: RevertAnalysisRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
356
|
+
// verify required parameter 'revertAnalysisRequestDto' is not null or undefined
|
|
357
|
+
assertParamExists('revertAnalysis', 'revertAnalysisRequestDto', revertAnalysisRequestDto)
|
|
358
|
+
const localVarPath = `/tenantservice/v1/dashboards/revert-analysis`;
|
|
359
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
360
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
361
|
+
let baseOptions;
|
|
362
|
+
let baseAccessToken;
|
|
363
|
+
if (configuration) {
|
|
364
|
+
baseOptions = configuration.baseOptions;
|
|
365
|
+
baseAccessToken = configuration.accessToken;
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
369
|
+
const localVarHeaderParameter = {} as any;
|
|
370
|
+
const localVarQueryParameter = {} as any;
|
|
371
|
+
|
|
372
|
+
// authentication bearer required
|
|
373
|
+
// http bearer authentication required
|
|
374
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
375
|
+
|
|
376
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
377
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
|
|
381
|
+
|
|
382
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
383
|
+
|
|
384
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
385
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
386
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
387
|
+
localVarRequestOptions.data = serializeDataIfNeeded(revertAnalysisRequestDto, localVarRequestOptions, configuration)
|
|
388
|
+
|
|
389
|
+
return {
|
|
390
|
+
url: toPathString(localVarUrlObj),
|
|
391
|
+
options: localVarRequestOptions,
|
|
392
|
+
};
|
|
393
|
+
},
|
|
394
|
+
/**
|
|
395
|
+
* undefined **Required Permissions** \"pbm-management.dashboards.update\"
|
|
300
396
|
* @param {string} code
|
|
301
397
|
* @param {UpdateDashboardRequestDto} updateDashboardRequestDto
|
|
302
398
|
* @param {string} [authorization] Bearer Token
|
|
@@ -356,7 +452,7 @@ export const DashboardApiFp = function(configuration?: Configuration) {
|
|
|
356
452
|
const localVarAxiosParamCreator = DashboardApiAxiosParamCreator(configuration)
|
|
357
453
|
return {
|
|
358
454
|
/**
|
|
359
|
-
*
|
|
455
|
+
* undefined **Required Permissions** \"pbm-management.dashboards.create\"
|
|
360
456
|
* @param {CreateDashboardRequestDto} createDashboardRequestDto
|
|
361
457
|
* @param {string} [authorization] Bearer Token
|
|
362
458
|
* @param {*} [options] Override http request option.
|
|
@@ -367,7 +463,7 @@ export const DashboardApiFp = function(configuration?: Configuration) {
|
|
|
367
463
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
368
464
|
},
|
|
369
465
|
/**
|
|
370
|
-
*
|
|
466
|
+
* undefined **Required Permissions** \"pbm-management.dashboards.delete\"
|
|
371
467
|
* @param {string} code
|
|
372
468
|
* @param {string} [authorization] Bearer Token
|
|
373
469
|
* @param {*} [options] Override http request option.
|
|
@@ -378,7 +474,7 @@ export const DashboardApiFp = function(configuration?: Configuration) {
|
|
|
378
474
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
379
475
|
},
|
|
380
476
|
/**
|
|
381
|
-
*
|
|
477
|
+
* undefined **Required Permissions** \"pbm-management.dashboards.view\"
|
|
382
478
|
* @param {string} code
|
|
383
479
|
* @param {string} [authorization] Bearer Token
|
|
384
480
|
* @param {*} [options] Override http request option.
|
|
@@ -389,7 +485,7 @@ export const DashboardApiFp = function(configuration?: Configuration) {
|
|
|
389
485
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
390
486
|
},
|
|
391
487
|
/**
|
|
392
|
-
*
|
|
488
|
+
* undefined **Required Permissions** \"pbm-management.dashboards.view\"
|
|
393
489
|
* @param {string} providerDashboardId
|
|
394
490
|
* @param {string} [authorization] Bearer Token
|
|
395
491
|
* @param {*} [options] Override http request option.
|
|
@@ -400,7 +496,7 @@ export const DashboardApiFp = function(configuration?: Configuration) {
|
|
|
400
496
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
401
497
|
},
|
|
402
498
|
/**
|
|
403
|
-
*
|
|
499
|
+
* undefined **Required Permissions** \"pbm-management.dashboards.view\"
|
|
404
500
|
* @param {string} [authorization] Bearer Token
|
|
405
501
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
406
502
|
* @param {any} [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.
|
|
@@ -417,7 +513,29 @@ export const DashboardApiFp = function(configuration?: Configuration) {
|
|
|
417
513
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
418
514
|
},
|
|
419
515
|
/**
|
|
420
|
-
*
|
|
516
|
+
* undefined **Required Permissions** \"pbm-management.dashboards.update\"
|
|
517
|
+
* @param {PublishDashboardRequestDto} publishDashboardRequestDto
|
|
518
|
+
* @param {string} [authorization] Bearer Token
|
|
519
|
+
* @param {*} [options] Override http request option.
|
|
520
|
+
* @throws {RequiredError}
|
|
521
|
+
*/
|
|
522
|
+
async publishDashboard(publishDashboardRequestDto: PublishDashboardRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
523
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.publishDashboard(publishDashboardRequestDto, authorization, options);
|
|
524
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
525
|
+
},
|
|
526
|
+
/**
|
|
527
|
+
* undefined **Required Permissions** \"pbm-management.dashboards.update\"
|
|
528
|
+
* @param {RevertAnalysisRequestDto} revertAnalysisRequestDto
|
|
529
|
+
* @param {string} [authorization] Bearer Token
|
|
530
|
+
* @param {*} [options] Override http request option.
|
|
531
|
+
* @throws {RequiredError}
|
|
532
|
+
*/
|
|
533
|
+
async revertAnalysis(revertAnalysisRequestDto: RevertAnalysisRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
534
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.revertAnalysis(revertAnalysisRequestDto, authorization, options);
|
|
535
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
536
|
+
},
|
|
537
|
+
/**
|
|
538
|
+
* undefined **Required Permissions** \"pbm-management.dashboards.update\"
|
|
421
539
|
* @param {string} code
|
|
422
540
|
* @param {UpdateDashboardRequestDto} updateDashboardRequestDto
|
|
423
541
|
* @param {string} [authorization] Bearer Token
|
|
@@ -439,7 +557,7 @@ export const DashboardApiFactory = function (configuration?: Configuration, base
|
|
|
439
557
|
const localVarFp = DashboardApiFp(configuration)
|
|
440
558
|
return {
|
|
441
559
|
/**
|
|
442
|
-
*
|
|
560
|
+
* undefined **Required Permissions** \"pbm-management.dashboards.create\"
|
|
443
561
|
* @param {CreateDashboardRequestDto} createDashboardRequestDto
|
|
444
562
|
* @param {string} [authorization] Bearer Token
|
|
445
563
|
* @param {*} [options] Override http request option.
|
|
@@ -449,7 +567,7 @@ export const DashboardApiFactory = function (configuration?: Configuration, base
|
|
|
449
567
|
return localVarFp.createDashboard(createDashboardRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
450
568
|
},
|
|
451
569
|
/**
|
|
452
|
-
*
|
|
570
|
+
* undefined **Required Permissions** \"pbm-management.dashboards.delete\"
|
|
453
571
|
* @param {string} code
|
|
454
572
|
* @param {string} [authorization] Bearer Token
|
|
455
573
|
* @param {*} [options] Override http request option.
|
|
@@ -459,7 +577,7 @@ export const DashboardApiFactory = function (configuration?: Configuration, base
|
|
|
459
577
|
return localVarFp.deleteDashboard(code, authorization, options).then((request) => request(axios, basePath));
|
|
460
578
|
},
|
|
461
579
|
/**
|
|
462
|
-
*
|
|
580
|
+
* undefined **Required Permissions** \"pbm-management.dashboards.view\"
|
|
463
581
|
* @param {string} code
|
|
464
582
|
* @param {string} [authorization] Bearer Token
|
|
465
583
|
* @param {*} [options] Override http request option.
|
|
@@ -469,7 +587,7 @@ export const DashboardApiFactory = function (configuration?: Configuration, base
|
|
|
469
587
|
return localVarFp.getDashboard(code, authorization, options).then((request) => request(axios, basePath));
|
|
470
588
|
},
|
|
471
589
|
/**
|
|
472
|
-
*
|
|
590
|
+
* undefined **Required Permissions** \"pbm-management.dashboards.view\"
|
|
473
591
|
* @param {string} providerDashboardId
|
|
474
592
|
* @param {string} [authorization] Bearer Token
|
|
475
593
|
* @param {*} [options] Override http request option.
|
|
@@ -479,7 +597,7 @@ export const DashboardApiFactory = function (configuration?: Configuration, base
|
|
|
479
597
|
return localVarFp.getEmbeddedUrl(providerDashboardId, authorization, options).then((request) => request(axios, basePath));
|
|
480
598
|
},
|
|
481
599
|
/**
|
|
482
|
-
*
|
|
600
|
+
* undefined **Required Permissions** \"pbm-management.dashboards.view\"
|
|
483
601
|
* @param {string} [authorization] Bearer Token
|
|
484
602
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
485
603
|
* @param {any} [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.
|
|
@@ -495,7 +613,27 @@ export const DashboardApiFactory = function (configuration?: Configuration, base
|
|
|
495
613
|
return localVarFp.listDashboards(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
496
614
|
},
|
|
497
615
|
/**
|
|
498
|
-
*
|
|
616
|
+
* undefined **Required Permissions** \"pbm-management.dashboards.update\"
|
|
617
|
+
* @param {PublishDashboardRequestDto} publishDashboardRequestDto
|
|
618
|
+
* @param {string} [authorization] Bearer Token
|
|
619
|
+
* @param {*} [options] Override http request option.
|
|
620
|
+
* @throws {RequiredError}
|
|
621
|
+
*/
|
|
622
|
+
publishDashboard(publishDashboardRequestDto: PublishDashboardRequestDto, authorization?: string, options?: any): AxiosPromise<void> {
|
|
623
|
+
return localVarFp.publishDashboard(publishDashboardRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
624
|
+
},
|
|
625
|
+
/**
|
|
626
|
+
* undefined **Required Permissions** \"pbm-management.dashboards.update\"
|
|
627
|
+
* @param {RevertAnalysisRequestDto} revertAnalysisRequestDto
|
|
628
|
+
* @param {string} [authorization] Bearer Token
|
|
629
|
+
* @param {*} [options] Override http request option.
|
|
630
|
+
* @throws {RequiredError}
|
|
631
|
+
*/
|
|
632
|
+
revertAnalysis(revertAnalysisRequestDto: RevertAnalysisRequestDto, authorization?: string, options?: any): AxiosPromise<void> {
|
|
633
|
+
return localVarFp.revertAnalysis(revertAnalysisRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
634
|
+
},
|
|
635
|
+
/**
|
|
636
|
+
* undefined **Required Permissions** \"pbm-management.dashboards.update\"
|
|
499
637
|
* @param {string} code
|
|
500
638
|
* @param {UpdateDashboardRequestDto} updateDashboardRequestDto
|
|
501
639
|
* @param {string} [authorization] Bearer Token
|
|
@@ -655,6 +793,48 @@ export interface DashboardApiListDashboardsRequest {
|
|
|
655
793
|
readonly filters?: any
|
|
656
794
|
}
|
|
657
795
|
|
|
796
|
+
/**
|
|
797
|
+
* Request parameters for publishDashboard operation in DashboardApi.
|
|
798
|
+
* @export
|
|
799
|
+
* @interface DashboardApiPublishDashboardRequest
|
|
800
|
+
*/
|
|
801
|
+
export interface DashboardApiPublishDashboardRequest {
|
|
802
|
+
/**
|
|
803
|
+
*
|
|
804
|
+
* @type {PublishDashboardRequestDto}
|
|
805
|
+
* @memberof DashboardApiPublishDashboard
|
|
806
|
+
*/
|
|
807
|
+
readonly publishDashboardRequestDto: PublishDashboardRequestDto
|
|
808
|
+
|
|
809
|
+
/**
|
|
810
|
+
* Bearer Token
|
|
811
|
+
* @type {string}
|
|
812
|
+
* @memberof DashboardApiPublishDashboard
|
|
813
|
+
*/
|
|
814
|
+
readonly authorization?: string
|
|
815
|
+
}
|
|
816
|
+
|
|
817
|
+
/**
|
|
818
|
+
* Request parameters for revertAnalysis operation in DashboardApi.
|
|
819
|
+
* @export
|
|
820
|
+
* @interface DashboardApiRevertAnalysisRequest
|
|
821
|
+
*/
|
|
822
|
+
export interface DashboardApiRevertAnalysisRequest {
|
|
823
|
+
/**
|
|
824
|
+
*
|
|
825
|
+
* @type {RevertAnalysisRequestDto}
|
|
826
|
+
* @memberof DashboardApiRevertAnalysis
|
|
827
|
+
*/
|
|
828
|
+
readonly revertAnalysisRequestDto: RevertAnalysisRequestDto
|
|
829
|
+
|
|
830
|
+
/**
|
|
831
|
+
* Bearer Token
|
|
832
|
+
* @type {string}
|
|
833
|
+
* @memberof DashboardApiRevertAnalysis
|
|
834
|
+
*/
|
|
835
|
+
readonly authorization?: string
|
|
836
|
+
}
|
|
837
|
+
|
|
658
838
|
/**
|
|
659
839
|
* Request parameters for updateDashboard operation in DashboardApi.
|
|
660
840
|
* @export
|
|
@@ -691,7 +871,7 @@ export interface DashboardApiUpdateDashboardRequest {
|
|
|
691
871
|
*/
|
|
692
872
|
export class DashboardApi extends BaseAPI {
|
|
693
873
|
/**
|
|
694
|
-
*
|
|
874
|
+
* undefined **Required Permissions** \"pbm-management.dashboards.create\"
|
|
695
875
|
* @param {DashboardApiCreateDashboardRequest} requestParameters Request parameters.
|
|
696
876
|
* @param {*} [options] Override http request option.
|
|
697
877
|
* @throws {RequiredError}
|
|
@@ -702,7 +882,7 @@ export class DashboardApi extends BaseAPI {
|
|
|
702
882
|
}
|
|
703
883
|
|
|
704
884
|
/**
|
|
705
|
-
*
|
|
885
|
+
* undefined **Required Permissions** \"pbm-management.dashboards.delete\"
|
|
706
886
|
* @param {DashboardApiDeleteDashboardRequest} requestParameters Request parameters.
|
|
707
887
|
* @param {*} [options] Override http request option.
|
|
708
888
|
* @throws {RequiredError}
|
|
@@ -713,7 +893,7 @@ export class DashboardApi extends BaseAPI {
|
|
|
713
893
|
}
|
|
714
894
|
|
|
715
895
|
/**
|
|
716
|
-
*
|
|
896
|
+
* undefined **Required Permissions** \"pbm-management.dashboards.view\"
|
|
717
897
|
* @param {DashboardApiGetDashboardRequest} requestParameters Request parameters.
|
|
718
898
|
* @param {*} [options] Override http request option.
|
|
719
899
|
* @throws {RequiredError}
|
|
@@ -724,7 +904,7 @@ export class DashboardApi extends BaseAPI {
|
|
|
724
904
|
}
|
|
725
905
|
|
|
726
906
|
/**
|
|
727
|
-
*
|
|
907
|
+
* undefined **Required Permissions** \"pbm-management.dashboards.view\"
|
|
728
908
|
* @param {DashboardApiGetEmbeddedUrlRequest} requestParameters Request parameters.
|
|
729
909
|
* @param {*} [options] Override http request option.
|
|
730
910
|
* @throws {RequiredError}
|
|
@@ -735,7 +915,7 @@ export class DashboardApi extends BaseAPI {
|
|
|
735
915
|
}
|
|
736
916
|
|
|
737
917
|
/**
|
|
738
|
-
*
|
|
918
|
+
* undefined **Required Permissions** \"pbm-management.dashboards.view\"
|
|
739
919
|
* @param {DashboardApiListDashboardsRequest} requestParameters Request parameters.
|
|
740
920
|
* @param {*} [options] Override http request option.
|
|
741
921
|
* @throws {RequiredError}
|
|
@@ -746,7 +926,29 @@ export class DashboardApi extends BaseAPI {
|
|
|
746
926
|
}
|
|
747
927
|
|
|
748
928
|
/**
|
|
749
|
-
*
|
|
929
|
+
* undefined **Required Permissions** \"pbm-management.dashboards.update\"
|
|
930
|
+
* @param {DashboardApiPublishDashboardRequest} requestParameters Request parameters.
|
|
931
|
+
* @param {*} [options] Override http request option.
|
|
932
|
+
* @throws {RequiredError}
|
|
933
|
+
* @memberof DashboardApi
|
|
934
|
+
*/
|
|
935
|
+
public publishDashboard(requestParameters: DashboardApiPublishDashboardRequest, options?: AxiosRequestConfig) {
|
|
936
|
+
return DashboardApiFp(this.configuration).publishDashboard(requestParameters.publishDashboardRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
937
|
+
}
|
|
938
|
+
|
|
939
|
+
/**
|
|
940
|
+
* undefined **Required Permissions** \"pbm-management.dashboards.update\"
|
|
941
|
+
* @param {DashboardApiRevertAnalysisRequest} requestParameters Request parameters.
|
|
942
|
+
* @param {*} [options] Override http request option.
|
|
943
|
+
* @throws {RequiredError}
|
|
944
|
+
* @memberof DashboardApi
|
|
945
|
+
*/
|
|
946
|
+
public revertAnalysis(requestParameters: DashboardApiRevertAnalysisRequest, options?: AxiosRequestConfig) {
|
|
947
|
+
return DashboardApiFp(this.configuration).revertAnalysis(requestParameters.revertAnalysisRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
948
|
+
}
|
|
949
|
+
|
|
950
|
+
/**
|
|
951
|
+
* undefined **Required Permissions** \"pbm-management.dashboards.update\"
|
|
750
952
|
* @param {DashboardApiUpdateDashboardRequest} requestParameters Request parameters.
|
|
751
953
|
* @param {*} [options] Override http request option.
|
|
752
954
|
* @throws {RequiredError}
|