From 0993b9e6c3dd58f15a11e2ef28ae87b920ce8794 Mon Sep 17 00:00:00 2001 From: Stig Ofstad Date: Wed, 15 May 2024 13:28:36 +0200 Subject: [PATCH] chore: update generated API --- .../AccessControl/ACLOwnerPanel.tsx | 2 +- .../components/AccessControl/ACLSelect.tsx | 4 +- .../AccessControl/ACLUserRolesPanel.tsx | 2 +- .../AccessControlListComponent.tsx | 2 +- packages/dm-core/src/hooks/useDataSources.tsx | 9 +- .../api/configs/gen/.openapi-generator/FILES | 2 +- .../src/services/api/configs/gen/api.ts | 2 +- .../api/configs/gen/api/access-control-api.ts | 2 +- .../api/configs/gen/api/attribute-api.ts | 2 +- .../services/api/configs/gen/api/blob-api.ts | 2 +- .../api/configs/gen/api/blueprint-api.ts | 12 +- .../api/configs/gen/api/datasource-api.ts | 2 +- .../api/configs/gen/api/default-api.ts | 126 +++++++++++++++--- .../api/configs/gen/api/document-api.ts | 2 +- .../api/configs/gen/api/entity-api.ts | 12 +- .../api/configs/gen/api/export-api.ts | 2 +- .../services/api/configs/gen/api/file-api.ts | 2 +- .../api/configs/gen/api/health-check-api.ts | 2 +- .../api/configs/gen/api/lookup-table-api.ts | 96 ++++++++++++- .../services/api/configs/gen/api/meta-api.ts | 2 +- .../gen/api/personal-access-token-api.ts | 2 +- .../api/configs/gen/api/search-api.ts | 12 +- .../api/configs/gen/api/whoami-api.ts | 2 +- .../src/services/api/configs/gen/base.ts | 2 +- .../src/services/api/configs/gen/common.ts | 2 +- .../services/api/configs/gen/configuration.ts | 2 +- .../src/services/api/configs/gen/index.ts | 2 +- .../configs/gen/models/access-control-list.ts | 2 +- .../api/configs/gen/models/access-level.ts | 10 +- .../gen/models/data-source-information.ts | 6 +- .../configs/gen/models/data-source-request.ts | 2 +- .../api/configs/gen/models/dependency.ts | 2 +- .../services/api/configs/gen/models/entity.ts | 2 +- .../api/configs/gen/models/error-response.ts | 2 +- .../gen/models/export-meta-response.ts | 2 +- .../gen/models/get-attribute-response.ts | 2 +- .../gen/models/get-blueprint-response.ts | 2 +- .../services/api/configs/gen/models/index.ts | 2 +- .../configs/gen/models/initialuirecipes.ts | 93 +++++++++++++ .../services/api/configs/gen/models/lookup.ts | 14 +- .../api/configs/gen/models/patdata.ts | 4 +- .../configs/gen/models/recipe-attribute.ts | 14 +- .../services/api/configs/gen/models/recipe.ts | 8 +- .../api/configs/gen/models/repository.ts | 36 ++--- .../configs/gen/models/storage-attribute.ts | 2 +- .../configs/gen/models/storage-data-types.ts | 4 +- .../api/configs/gen/models/storage-recipe.ts | 2 +- 47 files changed, 397 insertions(+), 125 deletions(-) create mode 100644 packages/dm-core/src/services/api/configs/gen/models/initialuirecipes.ts diff --git a/packages/dm-core/src/components/AccessControl/ACLOwnerPanel.tsx b/packages/dm-core/src/components/AccessControl/ACLOwnerPanel.tsx index 46227d3ec..03bcdf7c1 100644 --- a/packages/dm-core/src/components/AccessControl/ACLOwnerPanel.tsx +++ b/packages/dm-core/src/components/AccessControl/ACLOwnerPanel.tsx @@ -27,7 +27,7 @@ export const ACLOwnerPanel = ({
Others: handleChange({ others: newValue }) } diff --git a/packages/dm-core/src/components/AccessControl/ACLSelect.tsx b/packages/dm-core/src/components/AccessControl/ACLSelect.tsx index 3802152ce..697f9d8d3 100644 --- a/packages/dm-core/src/components/AccessControl/ACLSelect.tsx +++ b/packages/dm-core/src/components/AccessControl/ACLSelect.tsx @@ -14,7 +14,9 @@ export const ACLSelect = ({ width={'120px'} value={value} onChange={(event: React.ChangeEvent) => { - handleChange(AccessLevel[event.target.value as AccessLevel]) + handleChange( + AccessLevel[event.target.value as keyof typeof AccessLevel] + ) }} > {Object.keys(AccessLevel).map((accessLevelKey) => ( diff --git a/packages/dm-core/src/components/AccessControl/ACLUserRolesPanel.tsx b/packages/dm-core/src/components/AccessControl/ACLUserRolesPanel.tsx index b21a13b37..6c2205a8c 100644 --- a/packages/dm-core/src/components/AccessControl/ACLUserRolesPanel.tsx +++ b/packages/dm-core/src/components/AccessControl/ACLUserRolesPanel.tsx @@ -51,7 +51,7 @@ export const ACLUserRolesPanel = ({