diff --git a/src/types/api.types.ts b/src/types/api.types.ts index b982ec22..574991fc 100644 --- a/src/types/api.types.ts +++ b/src/types/api.types.ts @@ -466,6 +466,8 @@ export interface components { values: { [key: string]: string | number | null; }; + /** Row Id */ + row_id?: string | null; }; /** DatasetContent */ DatasetContent: { @@ -580,13 +582,15 @@ export interface components { }; /** DatasetDeleteRow */ DatasetDeleteRow: { + /** Index */ + index?: number | null; + /** Row Id */ + row_id?: string | null; /** * @description discriminator enum property added by openapi-typescript * @enum {string} */ edit_type: 'delete_row'; - /** Index */ - index: number; }; /** * DatasetFormat @@ -713,6 +717,11 @@ export interface components { }; /** DatasetRow */ DatasetRow: { + /** + * Row Id + * Format: uuid4 + */ + row_id: string; /** Index */ index: number; /** Values */ @@ -739,13 +748,15 @@ export interface components { }; /** DatasetUpdateRow */ DatasetUpdateRow: { + /** Index */ + index?: number | null; + /** Row Id */ + row_id?: string | null; /** * @description discriminator enum property added by openapi-typescript * @enum {string} */ edit_type: 'update_row'; - /** Index */ - index: number; /** Values */ values: { [key: string]: string | number | null; diff --git a/tests/utils/datasets.test.ts b/tests/utils/datasets.test.ts index c65bc806..8e406a14 100644 --- a/tests/utils/datasets.test.ts +++ b/tests/utils/datasets.test.ts @@ -5,6 +5,7 @@ import { commonHandlers, TEST_HOST } from '../common'; import { Dataset, DatasetContent, + DatasetRow, ListDatasetResponse } from '../../src/api-client'; @@ -20,8 +21,9 @@ const EXAMPLE_DATASET: Dataset = { current_version_index: 1 }; -const EXAMPLE_DATASET_ROW = { +const EXAMPLE_DATASET_ROW: DatasetRow = { index: 0, + row_id: 'ae4dcadf-a0a2-475e-91e4-7bd03fdf5de8', values: ['John', 'Doe'] };