@emilgroup/tenant-sdk-node 1.28.0 → 1.28.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.
Files changed (68) hide show
  1. package/.openapi-generator/FILES +3 -0
  2. package/README.md +2 -2
  3. package/api/custom-schema-api.ts +16 -16
  4. package/api/dashboard-api.ts +226 -24
  5. package/api/dashboard-group-api.ts +20 -20
  6. package/api/data-report-api.ts +16 -16
  7. package/api/data-report-executor-api.ts +4 -4
  8. package/api/delete-organization-invitations-api.ts +4 -4
  9. package/api/invite-organizations-api.ts +4 -4
  10. package/api/invite-users-api.ts +16 -16
  11. package/api/list-organization-invitations-api.ts +4 -4
  12. package/api/organizations-api.ts +12 -12
  13. package/api/re-invite-an-organization-api.ts +4 -4
  14. package/api/roles-api.ts +4 -4
  15. package/api/settings-api.ts +4 -4
  16. package/api/users-api.ts +28 -28
  17. package/base.ts +1 -1
  18. package/common.ts +2 -2
  19. package/configuration.ts +9 -0
  20. package/dist/api/custom-schema-api.d.ts +16 -16
  21. package/dist/api/custom-schema-api.js +16 -16
  22. package/dist/api/dashboard-api.d.ts +128 -24
  23. package/dist/api/dashboard-api.js +202 -24
  24. package/dist/api/dashboard-group-api.d.ts +20 -20
  25. package/dist/api/dashboard-group-api.js +20 -20
  26. package/dist/api/data-report-api.d.ts +16 -16
  27. package/dist/api/data-report-api.js +16 -16
  28. package/dist/api/data-report-executor-api.d.ts +4 -4
  29. package/dist/api/data-report-executor-api.js +4 -4
  30. package/dist/api/delete-organization-invitations-api.d.ts +4 -4
  31. package/dist/api/delete-organization-invitations-api.js +4 -4
  32. package/dist/api/invite-organizations-api.d.ts +4 -4
  33. package/dist/api/invite-organizations-api.js +4 -4
  34. package/dist/api/invite-users-api.d.ts +16 -16
  35. package/dist/api/invite-users-api.js +16 -16
  36. package/dist/api/list-organization-invitations-api.d.ts +4 -4
  37. package/dist/api/list-organization-invitations-api.js +4 -4
  38. package/dist/api/organizations-api.d.ts +12 -12
  39. package/dist/api/organizations-api.js +12 -12
  40. package/dist/api/re-invite-an-organization-api.d.ts +4 -4
  41. package/dist/api/re-invite-an-organization-api.js +4 -4
  42. package/dist/api/roles-api.d.ts +4 -4
  43. package/dist/api/roles-api.js +4 -4
  44. package/dist/api/settings-api.d.ts +4 -4
  45. package/dist/api/settings-api.js +4 -4
  46. package/dist/api/users-api.d.ts +28 -28
  47. package/dist/api/users-api.js +28 -28
  48. package/dist/base.js +1 -1
  49. package/dist/common.js +2 -2
  50. package/dist/configuration.d.ts +6 -0
  51. package/dist/configuration.js +8 -0
  52. package/dist/models/create-tenant-db-config-request-dto.d.ts +30 -0
  53. package/dist/models/create-tenant-db-config-request-dto.js +15 -0
  54. package/dist/models/index.d.ts +3 -0
  55. package/dist/models/index.js +3 -0
  56. package/dist/models/invite-class.d.ts +12 -12
  57. package/dist/models/publish-dashboard-request-dto.d.ts +34 -0
  58. package/dist/models/publish-dashboard-request-dto.js +19 -0
  59. package/dist/models/revert-analysis-request-dto.d.ts +34 -0
  60. package/dist/models/revert-analysis-request-dto.js +19 -0
  61. package/dist/models/user-class.d.ts +8 -8
  62. package/models/create-tenant-db-config-request-dto.ts +36 -0
  63. package/models/index.ts +3 -0
  64. package/models/invite-class.ts +12 -12
  65. package/models/publish-dashboard-request-dto.ts +43 -0
  66. package/models/revert-analysis-request-dto.ts +43 -0
  67. package/models/user-class.ts +8 -8
  68. package/package.json +1 -1
@@ -35,6 +35,7 @@ models/create-dashboard-request-dto.ts
35
35
  models/create-dashboard-response-class.ts
36
36
  models/create-data-report-request-dto.ts
37
37
  models/create-data-report-response-class.ts
38
+ models/create-tenant-db-config-request-dto.ts
38
39
  models/create-tenant-request-dto.ts
39
40
  models/custom-field-dto.ts
40
41
  models/custom-schema-class.ts
@@ -85,7 +86,9 @@ models/org-invitation-class.ts
85
86
  models/org-invitation-response-class.ts
86
87
  models/organization-class.ts
87
88
  models/permission-class.ts
89
+ models/publish-dashboard-request-dto.ts
88
90
  models/re-invite-org-request-dto.ts
91
+ models/revert-analysis-request-dto.ts
89
92
  models/role-class.ts
90
93
  models/run-data-report-request-dto.ts
91
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-node@1.28.0 --save
20
+ npm install @emilgroup/tenant-sdk-node@1.28.1-beta.0 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/tenant-sdk-node@1.28.0
24
+ yarn add @emilgroup/tenant-sdk-node@1.28.1-beta.0
25
25
  ```
26
26
 
27
27
  And then you can import `UsersApi`.
@@ -43,7 +43,7 @@ const FormData = require('form-data');
43
43
  export const CustomSchemaApiAxiosParamCreator = function (configuration?: Configuration) {
44
44
  return {
45
45
  /**
46
- * 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.
46
+ * 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\"
47
47
  * @summary Create the custom-schema
48
48
  * @param {CreateCustomSchemaRequestDto} createCustomSchemaRequestDto
49
49
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -90,7 +90,7 @@ export const CustomSchemaApiAxiosParamCreator = function (configuration?: Config
90
90
  };
91
91
  },
92
92
  /**
93
- * 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.
93
+ * 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\"
94
94
  * @summary Retrieve the custom-schema
95
95
  * @param {string} code Unique identifier for the object.
96
96
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -140,7 +140,7 @@ export const CustomSchemaApiAxiosParamCreator = function (configuration?: Config
140
140
  };
141
141
  },
142
142
  /**
143
- * 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.
143
+ * 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\"
144
144
  * @summary List custom-schemas
145
145
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
146
146
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
@@ -216,7 +216,7 @@ export const CustomSchemaApiAxiosParamCreator = function (configuration?: Config
216
216
  };
217
217
  },
218
218
  /**
219
- * Updates the specified custom-schema by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
219
+ * 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\"
220
220
  * @summary Update the custom-schema
221
221
  * @param {string} code
222
222
  * @param {UpdateCustomSchemaRequestDto} updateCustomSchemaRequestDto
@@ -277,7 +277,7 @@ export const CustomSchemaApiFp = function(configuration?: Configuration) {
277
277
  const localVarAxiosParamCreator = CustomSchemaApiAxiosParamCreator(configuration)
278
278
  return {
279
279
  /**
280
- * 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.
280
+ * 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\"
281
281
  * @summary Create the custom-schema
282
282
  * @param {CreateCustomSchemaRequestDto} createCustomSchemaRequestDto
283
283
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -289,7 +289,7 @@ export const CustomSchemaApiFp = function(configuration?: Configuration) {
289
289
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
290
290
  },
291
291
  /**
292
- * 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.
292
+ * 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\"
293
293
  * @summary Retrieve the custom-schema
294
294
  * @param {string} code Unique identifier for the object.
295
295
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -302,7 +302,7 @@ export const CustomSchemaApiFp = function(configuration?: Configuration) {
302
302
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
303
303
  },
304
304
  /**
305
- * 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.
305
+ * 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\"
306
306
  * @summary List custom-schemas
307
307
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
308
308
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
@@ -320,7 +320,7 @@ export const CustomSchemaApiFp = function(configuration?: Configuration) {
320
320
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
321
321
  },
322
322
  /**
323
- * Updates the specified custom-schema by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
323
+ * 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\"
324
324
  * @summary Update the custom-schema
325
325
  * @param {string} code
326
326
  * @param {UpdateCustomSchemaRequestDto} updateCustomSchemaRequestDto
@@ -343,7 +343,7 @@ export const CustomSchemaApiFactory = function (configuration?: Configuration, b
343
343
  const localVarFp = CustomSchemaApiFp(configuration)
344
344
  return {
345
345
  /**
346
- * 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.
346
+ * 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\"
347
347
  * @summary Create the custom-schema
348
348
  * @param {CreateCustomSchemaRequestDto} createCustomSchemaRequestDto
349
349
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -354,7 +354,7 @@ export const CustomSchemaApiFactory = function (configuration?: Configuration, b
354
354
  return localVarFp.createCustomSchema(createCustomSchemaRequestDto, authorization, options).then((request) => request(axios, basePath));
355
355
  },
356
356
  /**
357
- * 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.
357
+ * 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\"
358
358
  * @summary Retrieve the custom-schema
359
359
  * @param {string} code Unique identifier for the object.
360
360
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -366,7 +366,7 @@ export const CustomSchemaApiFactory = function (configuration?: Configuration, b
366
366
  return localVarFp.getCustomSchema(code, authorization, expand, options).then((request) => request(axios, basePath));
367
367
  },
368
368
  /**
369
- * 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.
369
+ * 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\"
370
370
  * @summary List custom-schemas
371
371
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
372
372
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
@@ -383,7 +383,7 @@ export const CustomSchemaApiFactory = function (configuration?: Configuration, b
383
383
  return localVarFp.listCustomSchemas(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
384
384
  },
385
385
  /**
386
- * Updates the specified custom-schema by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
386
+ * 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\"
387
387
  * @summary Update the custom-schema
388
388
  * @param {string} code
389
389
  * @param {UpdateCustomSchemaRequestDto} updateCustomSchemaRequestDto
@@ -545,7 +545,7 @@ export interface CustomSchemaApiUpdateCustomSchemaRequest {
545
545
  */
546
546
  export class CustomSchemaApi extends BaseAPI {
547
547
  /**
548
- * 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.
548
+ * 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\"
549
549
  * @summary Create the custom-schema
550
550
  * @param {CustomSchemaApiCreateCustomSchemaRequest} requestParameters Request parameters.
551
551
  * @param {*} [options] Override http request option.
@@ -557,7 +557,7 @@ export class CustomSchemaApi extends BaseAPI {
557
557
  }
558
558
 
559
559
  /**
560
- * 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.
560
+ * 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\"
561
561
  * @summary Retrieve the custom-schema
562
562
  * @param {CustomSchemaApiGetCustomSchemaRequest} requestParameters Request parameters.
563
563
  * @param {*} [options] Override http request option.
@@ -569,7 +569,7 @@ export class CustomSchemaApi extends BaseAPI {
569
569
  }
570
570
 
571
571
  /**
572
- * 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.
572
+ * 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\"
573
573
  * @summary List custom-schemas
574
574
  * @param {CustomSchemaApiListCustomSchemasRequest} requestParameters Request parameters.
575
575
  * @param {*} [options] Override http request option.
@@ -581,7 +581,7 @@ export class CustomSchemaApi extends BaseAPI {
581
581
  }
582
582
 
583
583
  /**
584
- * Updates the specified custom-schema by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
584
+ * 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\"
585
585
  * @summary Update the custom-schema
586
586
  * @param {CustomSchemaApiUpdateCustomSchemaRequest} requestParameters Request parameters.
587
587
  * @param {*} [options] Override http request option.
@@ -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';
@@ -47,7 +51,7 @@ const FormData = require('form-data');
47
51
  export const DashboardApiAxiosParamCreator = function (configuration?: Configuration) {
48
52
  return {
49
53
  /**
50
- *
54
+ * undefined **Required Permissions** \"pbm-management.dashboards.create\"
51
55
  * @param {CreateDashboardRequestDto} createDashboardRequestDto
52
56
  * @param {string} [authorization] Bearer Token
53
57
  * @param {*} [options] Override http request option.
@@ -93,7 +97,7 @@ export const DashboardApiAxiosParamCreator = function (configuration?: Configura
93
97
  };
94
98
  },
95
99
  /**
96
- *
100
+ * undefined **Required Permissions** \"pbm-management.dashboards.delete\"
97
101
  * @param {string} code
98
102
  * @param {string} [authorization] Bearer Token
99
103
  * @param {*} [options] Override http request option.
@@ -137,7 +141,7 @@ export const DashboardApiAxiosParamCreator = function (configuration?: Configura
137
141
  };
138
142
  },
139
143
  /**
140
- *
144
+ * undefined **Required Permissions** \"pbm-management.dashboards.view\"
141
145
  * @param {string} code
142
146
  * @param {string} [authorization] Bearer Token
143
147
  * @param {*} [options] Override http request option.
@@ -181,7 +185,7 @@ export const DashboardApiAxiosParamCreator = function (configuration?: Configura
181
185
  };
182
186
  },
183
187
  /**
184
- *
188
+ * undefined **Required Permissions** \"pbm-management.dashboards.view\"
185
189
  * @param {string} providerDashboardId
186
190
  * @param {string} [authorization] Bearer Token
187
191
  * @param {*} [options] Override http request option.
@@ -225,7 +229,7 @@ export const DashboardApiAxiosParamCreator = function (configuration?: Configura
225
229
  };
226
230
  },
227
231
  /**
228
- *
232
+ * undefined **Required Permissions** \"pbm-management.dashboards.view\"
229
233
  * @param {string} [authorization] Bearer Token
230
234
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
231
235
  * @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.
@@ -300,7 +304,99 @@ export const DashboardApiAxiosParamCreator = function (configuration?: Configura
300
304
  };
301
305
  },
302
306
  /**
303
- *
307
+ * undefined **Required Permissions** \"pbm-management.dashboards.update\"
308
+ * @param {PublishDashboardRequestDto} publishDashboardRequestDto
309
+ * @param {string} [authorization] Bearer Token
310
+ * @param {*} [options] Override http request option.
311
+ * @throws {RequiredError}
312
+ */
313
+ publishDashboard: async (publishDashboardRequestDto: PublishDashboardRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
314
+ // verify required parameter 'publishDashboardRequestDto' is not null or undefined
315
+ assertParamExists('publishDashboard', 'publishDashboardRequestDto', publishDashboardRequestDto)
316
+ const localVarPath = `/tenantservice/v1/dashboards/publish-dashboard`;
317
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
318
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
319
+ let baseOptions;
320
+ let baseAccessToken;
321
+ if (configuration) {
322
+ baseOptions = configuration.baseOptions;
323
+ baseAccessToken = configuration.accessToken;
324
+ }
325
+
326
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
327
+ const localVarHeaderParameter = {} as any;
328
+ const localVarQueryParameter = {} as any;
329
+
330
+ // authentication bearer required
331
+ // http bearer authentication required
332
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
333
+
334
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
335
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
336
+ }
337
+
338
+
339
+
340
+ localVarHeaderParameter['Content-Type'] = 'application/json';
341
+
342
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
343
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
344
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
345
+ localVarRequestOptions.data = serializeDataIfNeeded(publishDashboardRequestDto, localVarRequestOptions, configuration)
346
+
347
+ return {
348
+ url: toPathString(localVarUrlObj),
349
+ options: localVarRequestOptions,
350
+ };
351
+ },
352
+ /**
353
+ * undefined **Required Permissions** \"pbm-management.dashboards.update\"
354
+ * @param {RevertAnalysisRequestDto} revertAnalysisRequestDto
355
+ * @param {string} [authorization] Bearer Token
356
+ * @param {*} [options] Override http request option.
357
+ * @throws {RequiredError}
358
+ */
359
+ revertAnalysis: async (revertAnalysisRequestDto: RevertAnalysisRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
360
+ // verify required parameter 'revertAnalysisRequestDto' is not null or undefined
361
+ assertParamExists('revertAnalysis', 'revertAnalysisRequestDto', revertAnalysisRequestDto)
362
+ const localVarPath = `/tenantservice/v1/dashboards/revert-analysis`;
363
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
364
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
365
+ let baseOptions;
366
+ let baseAccessToken;
367
+ if (configuration) {
368
+ baseOptions = configuration.baseOptions;
369
+ baseAccessToken = configuration.accessToken;
370
+ }
371
+
372
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
373
+ const localVarHeaderParameter = {} as any;
374
+ const localVarQueryParameter = {} as any;
375
+
376
+ // authentication bearer required
377
+ // http bearer authentication required
378
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
379
+
380
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
381
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
382
+ }
383
+
384
+
385
+
386
+ localVarHeaderParameter['Content-Type'] = 'application/json';
387
+
388
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
389
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
390
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
391
+ localVarRequestOptions.data = serializeDataIfNeeded(revertAnalysisRequestDto, localVarRequestOptions, configuration)
392
+
393
+ return {
394
+ url: toPathString(localVarUrlObj),
395
+ options: localVarRequestOptions,
396
+ };
397
+ },
398
+ /**
399
+ * undefined **Required Permissions** \"pbm-management.dashboards.update\"
304
400
  * @param {string} code
305
401
  * @param {UpdateDashboardRequestDto} updateDashboardRequestDto
306
402
  * @param {string} [authorization] Bearer Token
@@ -360,7 +456,7 @@ export const DashboardApiFp = function(configuration?: Configuration) {
360
456
  const localVarAxiosParamCreator = DashboardApiAxiosParamCreator(configuration)
361
457
  return {
362
458
  /**
363
- *
459
+ * undefined **Required Permissions** \"pbm-management.dashboards.create\"
364
460
  * @param {CreateDashboardRequestDto} createDashboardRequestDto
365
461
  * @param {string} [authorization] Bearer Token
366
462
  * @param {*} [options] Override http request option.
@@ -371,7 +467,7 @@ export const DashboardApiFp = function(configuration?: Configuration) {
371
467
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
372
468
  },
373
469
  /**
374
- *
470
+ * undefined **Required Permissions** \"pbm-management.dashboards.delete\"
375
471
  * @param {string} code
376
472
  * @param {string} [authorization] Bearer Token
377
473
  * @param {*} [options] Override http request option.
@@ -382,7 +478,7 @@ export const DashboardApiFp = function(configuration?: Configuration) {
382
478
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
383
479
  },
384
480
  /**
385
- *
481
+ * undefined **Required Permissions** \"pbm-management.dashboards.view\"
386
482
  * @param {string} code
387
483
  * @param {string} [authorization] Bearer Token
388
484
  * @param {*} [options] Override http request option.
@@ -393,7 +489,7 @@ export const DashboardApiFp = function(configuration?: Configuration) {
393
489
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
394
490
  },
395
491
  /**
396
- *
492
+ * undefined **Required Permissions** \"pbm-management.dashboards.view\"
397
493
  * @param {string} providerDashboardId
398
494
  * @param {string} [authorization] Bearer Token
399
495
  * @param {*} [options] Override http request option.
@@ -404,7 +500,7 @@ export const DashboardApiFp = function(configuration?: Configuration) {
404
500
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
405
501
  },
406
502
  /**
407
- *
503
+ * undefined **Required Permissions** \"pbm-management.dashboards.view\"
408
504
  * @param {string} [authorization] Bearer Token
409
505
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
410
506
  * @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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
@@ -421,7 +517,29 @@ export const DashboardApiFp = function(configuration?: Configuration) {
421
517
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
422
518
  },
423
519
  /**
424
- *
520
+ * undefined **Required Permissions** \"pbm-management.dashboards.update\"
521
+ * @param {PublishDashboardRequestDto} publishDashboardRequestDto
522
+ * @param {string} [authorization] Bearer Token
523
+ * @param {*} [options] Override http request option.
524
+ * @throws {RequiredError}
525
+ */
526
+ async publishDashboard(publishDashboardRequestDto: PublishDashboardRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
527
+ const localVarAxiosArgs = await localVarAxiosParamCreator.publishDashboard(publishDashboardRequestDto, authorization, options);
528
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
529
+ },
530
+ /**
531
+ * undefined **Required Permissions** \"pbm-management.dashboards.update\"
532
+ * @param {RevertAnalysisRequestDto} revertAnalysisRequestDto
533
+ * @param {string} [authorization] Bearer Token
534
+ * @param {*} [options] Override http request option.
535
+ * @throws {RequiredError}
536
+ */
537
+ async revertAnalysis(revertAnalysisRequestDto: RevertAnalysisRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
538
+ const localVarAxiosArgs = await localVarAxiosParamCreator.revertAnalysis(revertAnalysisRequestDto, authorization, options);
539
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
540
+ },
541
+ /**
542
+ * undefined **Required Permissions** \"pbm-management.dashboards.update\"
425
543
  * @param {string} code
426
544
  * @param {UpdateDashboardRequestDto} updateDashboardRequestDto
427
545
  * @param {string} [authorization] Bearer Token
@@ -443,7 +561,7 @@ export const DashboardApiFactory = function (configuration?: Configuration, base
443
561
  const localVarFp = DashboardApiFp(configuration)
444
562
  return {
445
563
  /**
446
- *
564
+ * undefined **Required Permissions** \"pbm-management.dashboards.create\"
447
565
  * @param {CreateDashboardRequestDto} createDashboardRequestDto
448
566
  * @param {string} [authorization] Bearer Token
449
567
  * @param {*} [options] Override http request option.
@@ -453,7 +571,7 @@ export const DashboardApiFactory = function (configuration?: Configuration, base
453
571
  return localVarFp.createDashboard(createDashboardRequestDto, authorization, options).then((request) => request(axios, basePath));
454
572
  },
455
573
  /**
456
- *
574
+ * undefined **Required Permissions** \"pbm-management.dashboards.delete\"
457
575
  * @param {string} code
458
576
  * @param {string} [authorization] Bearer Token
459
577
  * @param {*} [options] Override http request option.
@@ -463,7 +581,7 @@ export const DashboardApiFactory = function (configuration?: Configuration, base
463
581
  return localVarFp.deleteDashboard(code, authorization, options).then((request) => request(axios, basePath));
464
582
  },
465
583
  /**
466
- *
584
+ * undefined **Required Permissions** \"pbm-management.dashboards.view\"
467
585
  * @param {string} code
468
586
  * @param {string} [authorization] Bearer Token
469
587
  * @param {*} [options] Override http request option.
@@ -473,7 +591,7 @@ export const DashboardApiFactory = function (configuration?: Configuration, base
473
591
  return localVarFp.getDashboard(code, authorization, options).then((request) => request(axios, basePath));
474
592
  },
475
593
  /**
476
- *
594
+ * undefined **Required Permissions** \"pbm-management.dashboards.view\"
477
595
  * @param {string} providerDashboardId
478
596
  * @param {string} [authorization] Bearer Token
479
597
  * @param {*} [options] Override http request option.
@@ -483,7 +601,7 @@ export const DashboardApiFactory = function (configuration?: Configuration, base
483
601
  return localVarFp.getEmbeddedUrl(providerDashboardId, authorization, options).then((request) => request(axios, basePath));
484
602
  },
485
603
  /**
486
- *
604
+ * undefined **Required Permissions** \"pbm-management.dashboards.view\"
487
605
  * @param {string} [authorization] Bearer Token
488
606
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
489
607
  * @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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
@@ -499,7 +617,27 @@ export const DashboardApiFactory = function (configuration?: Configuration, base
499
617
  return localVarFp.listDashboards(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
500
618
  },
501
619
  /**
502
- *
620
+ * undefined **Required Permissions** \"pbm-management.dashboards.update\"
621
+ * @param {PublishDashboardRequestDto} publishDashboardRequestDto
622
+ * @param {string} [authorization] Bearer Token
623
+ * @param {*} [options] Override http request option.
624
+ * @throws {RequiredError}
625
+ */
626
+ publishDashboard(publishDashboardRequestDto: PublishDashboardRequestDto, authorization?: string, options?: any): AxiosPromise<void> {
627
+ return localVarFp.publishDashboard(publishDashboardRequestDto, authorization, options).then((request) => request(axios, basePath));
628
+ },
629
+ /**
630
+ * undefined **Required Permissions** \"pbm-management.dashboards.update\"
631
+ * @param {RevertAnalysisRequestDto} revertAnalysisRequestDto
632
+ * @param {string} [authorization] Bearer Token
633
+ * @param {*} [options] Override http request option.
634
+ * @throws {RequiredError}
635
+ */
636
+ revertAnalysis(revertAnalysisRequestDto: RevertAnalysisRequestDto, authorization?: string, options?: any): AxiosPromise<void> {
637
+ return localVarFp.revertAnalysis(revertAnalysisRequestDto, authorization, options).then((request) => request(axios, basePath));
638
+ },
639
+ /**
640
+ * undefined **Required Permissions** \"pbm-management.dashboards.update\"
503
641
  * @param {string} code
504
642
  * @param {UpdateDashboardRequestDto} updateDashboardRequestDto
505
643
  * @param {string} [authorization] Bearer Token
@@ -659,6 +797,48 @@ export interface DashboardApiListDashboardsRequest {
659
797
  readonly filters?: any
660
798
  }
661
799
 
800
+ /**
801
+ * Request parameters for publishDashboard operation in DashboardApi.
802
+ * @export
803
+ * @interface DashboardApiPublishDashboardRequest
804
+ */
805
+ export interface DashboardApiPublishDashboardRequest {
806
+ /**
807
+ *
808
+ * @type {PublishDashboardRequestDto}
809
+ * @memberof DashboardApiPublishDashboard
810
+ */
811
+ readonly publishDashboardRequestDto: PublishDashboardRequestDto
812
+
813
+ /**
814
+ * Bearer Token
815
+ * @type {string}
816
+ * @memberof DashboardApiPublishDashboard
817
+ */
818
+ readonly authorization?: string
819
+ }
820
+
821
+ /**
822
+ * Request parameters for revertAnalysis operation in DashboardApi.
823
+ * @export
824
+ * @interface DashboardApiRevertAnalysisRequest
825
+ */
826
+ export interface DashboardApiRevertAnalysisRequest {
827
+ /**
828
+ *
829
+ * @type {RevertAnalysisRequestDto}
830
+ * @memberof DashboardApiRevertAnalysis
831
+ */
832
+ readonly revertAnalysisRequestDto: RevertAnalysisRequestDto
833
+
834
+ /**
835
+ * Bearer Token
836
+ * @type {string}
837
+ * @memberof DashboardApiRevertAnalysis
838
+ */
839
+ readonly authorization?: string
840
+ }
841
+
662
842
  /**
663
843
  * Request parameters for updateDashboard operation in DashboardApi.
664
844
  * @export
@@ -695,7 +875,7 @@ export interface DashboardApiUpdateDashboardRequest {
695
875
  */
696
876
  export class DashboardApi extends BaseAPI {
697
877
  /**
698
- *
878
+ * undefined **Required Permissions** \"pbm-management.dashboards.create\"
699
879
  * @param {DashboardApiCreateDashboardRequest} requestParameters Request parameters.
700
880
  * @param {*} [options] Override http request option.
701
881
  * @throws {RequiredError}
@@ -706,7 +886,7 @@ export class DashboardApi extends BaseAPI {
706
886
  }
707
887
 
708
888
  /**
709
- *
889
+ * undefined **Required Permissions** \"pbm-management.dashboards.delete\"
710
890
  * @param {DashboardApiDeleteDashboardRequest} requestParameters Request parameters.
711
891
  * @param {*} [options] Override http request option.
712
892
  * @throws {RequiredError}
@@ -717,7 +897,7 @@ export class DashboardApi extends BaseAPI {
717
897
  }
718
898
 
719
899
  /**
720
- *
900
+ * undefined **Required Permissions** \"pbm-management.dashboards.view\"
721
901
  * @param {DashboardApiGetDashboardRequest} requestParameters Request parameters.
722
902
  * @param {*} [options] Override http request option.
723
903
  * @throws {RequiredError}
@@ -728,7 +908,7 @@ export class DashboardApi extends BaseAPI {
728
908
  }
729
909
 
730
910
  /**
731
- *
911
+ * undefined **Required Permissions** \"pbm-management.dashboards.view\"
732
912
  * @param {DashboardApiGetEmbeddedUrlRequest} requestParameters Request parameters.
733
913
  * @param {*} [options] Override http request option.
734
914
  * @throws {RequiredError}
@@ -739,7 +919,7 @@ export class DashboardApi extends BaseAPI {
739
919
  }
740
920
 
741
921
  /**
742
- *
922
+ * undefined **Required Permissions** \"pbm-management.dashboards.view\"
743
923
  * @param {DashboardApiListDashboardsRequest} requestParameters Request parameters.
744
924
  * @param {*} [options] Override http request option.
745
925
  * @throws {RequiredError}
@@ -750,7 +930,29 @@ export class DashboardApi extends BaseAPI {
750
930
  }
751
931
 
752
932
  /**
753
- *
933
+ * undefined **Required Permissions** \"pbm-management.dashboards.update\"
934
+ * @param {DashboardApiPublishDashboardRequest} requestParameters Request parameters.
935
+ * @param {*} [options] Override http request option.
936
+ * @throws {RequiredError}
937
+ * @memberof DashboardApi
938
+ */
939
+ public publishDashboard(requestParameters: DashboardApiPublishDashboardRequest, options?: AxiosRequestConfig) {
940
+ return DashboardApiFp(this.configuration).publishDashboard(requestParameters.publishDashboardRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
941
+ }
942
+
943
+ /**
944
+ * undefined **Required Permissions** \"pbm-management.dashboards.update\"
945
+ * @param {DashboardApiRevertAnalysisRequest} requestParameters Request parameters.
946
+ * @param {*} [options] Override http request option.
947
+ * @throws {RequiredError}
948
+ * @memberof DashboardApi
949
+ */
950
+ public revertAnalysis(requestParameters: DashboardApiRevertAnalysisRequest, options?: AxiosRequestConfig) {
951
+ return DashboardApiFp(this.configuration).revertAnalysis(requestParameters.revertAnalysisRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
952
+ }
953
+
954
+ /**
955
+ * undefined **Required Permissions** \"pbm-management.dashboards.update\"
754
956
  * @param {DashboardApiUpdateDashboardRequest} requestParameters Request parameters.
755
957
  * @param {*} [options] Override http request option.
756
958
  * @throws {RequiredError}