Skip to content

Commit eb6494f

Browse files
Update API Types (#82)
Co-authored-by: Jonah Eisen <jonah@galileo.ai>
1 parent 75db3f9 commit eb6494f

File tree

2 files changed

+18
-5
lines changed

2 files changed

+18
-5
lines changed

src/types/api.types.ts

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -466,6 +466,8 @@ export interface components {
466466
values: {
467467
[key: string]: string | number | null;
468468
};
469+
/** Row Id */
470+
row_id?: string | null;
469471
};
470472
/** DatasetContent */
471473
DatasetContent: {
@@ -580,13 +582,15 @@ export interface components {
580582
};
581583
/** DatasetDeleteRow */
582584
DatasetDeleteRow: {
585+
/** Index */
586+
index?: number | null;
587+
/** Row Id */
588+
row_id?: string | null;
583589
/**
584590
* @description discriminator enum property added by openapi-typescript
585591
* @enum {string}
586592
*/
587593
edit_type: 'delete_row';
588-
/** Index */
589-
index: number;
590594
};
591595
/**
592596
* DatasetFormat
@@ -713,6 +717,11 @@ export interface components {
713717
};
714718
/** DatasetRow */
715719
DatasetRow: {
720+
/**
721+
* Row Id
722+
* Format: uuid4
723+
*/
724+
row_id: string;
716725
/** Index */
717726
index: number;
718727
/** Values */
@@ -739,13 +748,15 @@ export interface components {
739748
};
740749
/** DatasetUpdateRow */
741750
DatasetUpdateRow: {
751+
/** Index */
752+
index?: number | null;
753+
/** Row Id */
754+
row_id?: string | null;
742755
/**
743756
* @description discriminator enum property added by openapi-typescript
744757
* @enum {string}
745758
*/
746759
edit_type: 'update_row';
747-
/** Index */
748-
index: number;
749760
/** Values */
750761
values: {
751762
[key: string]: string | number | null;

tests/utils/datasets.test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { commonHandlers, TEST_HOST } from '../common';
55
import {
66
Dataset,
77
DatasetContent,
8+
DatasetRow,
89
ListDatasetResponse
910
} from '../../src/api-client';
1011

@@ -20,8 +21,9 @@ const EXAMPLE_DATASET: Dataset = {
2021
current_version_index: 1
2122
};
2223

23-
const EXAMPLE_DATASET_ROW = {
24+
const EXAMPLE_DATASET_ROW: DatasetRow = {
2425
index: 0,
26+
row_id: 'ae4dcadf-a0a2-475e-91e4-7bd03fdf5de8',
2527
values: ['John', 'Doe']
2628
};
2729

0 commit comments

Comments
 (0)