diff --git a/front/lib/swr/data_source_view_tables.ts b/front/lib/swr/data_source_view_tables.ts index c65435992d60e..5664fdc9ca162 100644 --- a/front/lib/swr/data_source_view_tables.ts +++ b/front/lib/swr/data_source_view_tables.ts @@ -1,9 +1,6 @@ import { useSendNotification } from "@dust-tt/sparkle"; import type { DataSourceViewType, LightWorkspaceType } from "@dust-tt/types"; -import type { - PatchDataSourceTableRequestBody, - PostDataSourceTableRequestBody, -} from "@dust-tt/types"; +import type { PatchDataSourceTableRequestBody } from "@dust-tt/types"; import { useMemo } from "react"; import type { Fetcher } from "swr"; @@ -15,7 +12,6 @@ import { } from "@app/lib/swr/swr"; import type { ListTablesResponseBody } from "@app/pages/api/w/[wId]/spaces/[spaceId]/data_source_views/[dsvId]/tables"; import type { GetDataSourceViewTableResponseBody } from "@app/pages/api/w/[wId]/spaces/[spaceId]/data_source_views/[dsvId]/tables/[tableId]"; -import type { PostTableResponseBody } from "@app/pages/api/w/[wId]/spaces/[spaceId]/data_sources/[dsId]/tables"; import type { PatchTableResponseBody } from "@app/pages/api/w/[wId]/spaces/[spaceId]/data_sources/[dsId]/tables/[tableId]"; export function useDataSourceViewTable({ diff --git a/types/src/front/api_handlers/public/data_sources.ts b/types/src/front/api_handlers/public/data_sources.ts index 515265aa072cb..7c5c4abf3a695 100644 --- a/types/src/front/api_handlers/public/data_sources.ts +++ b/types/src/front/api_handlers/public/data_sources.ts @@ -81,18 +81,6 @@ export type PatchDataSourceTableRequestBody = t.TypeOf< typeof PatchDataSourceTableRequestBodySchema >; -// Post and Patch require the same request body -export type PostDataSourceTableRequestBody = t.TypeOf< - typeof PatchDataSourceTableRequestBodySchema ->; - -export const PostDataSourceTableRequestBodySchema = t.intersection([ - PatchDataSourceTableRequestBodySchema, - t.type({ - csv: t.string, - }), -]); - export const UpsertTableFromCsvRequestSchema = t.intersection([ t.type({ name: t.string,