Skip to content

Conversation

Emerald-Z
Copy link
Contributor

Updating TS sdk to include dataSourceType in CREATE functionality.

Updated tests to match this change and all tests are passing.

@Emerald-Z Emerald-Z requested a review from a team as a code owner June 10, 2025 21:19
@Emerald-Z Emerald-Z requested review from lia-viam and stuqdog June 10, 2025 21:19
query: Uint8Array[] | Record<string, Date | JsonValue>[],
schedule: string
schedule: string,
dataSourceType?: string
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The type of dataSourceType should match this: https://github.com/viamrobotics/viam-typescript-sdk/blob/867c57aa402adf1f63bb94a23dd1a71112d5b71c/src/app/data-client.ts#L17C3-L17C24.
Here is how we use it for reference:

tabularDataSource?: TabularDataSource

@Emerald-Z Emerald-Z requested a review from vijayvuyyuru June 13, 2025 15:22
inputDataSourceType !== TabularDataSourceType.STANDARD &&
inputDataSourceType !== TabularDataSourceType.HOT_STORAGE
) {
throw new Error('Invalid data source type');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can remove this check since we have this logic on the app side already!

@Emerald-Z Emerald-Z requested a review from gloriacai01 June 16, 2025 17:25
@Emerald-Z Emerald-Z merged commit 8e9cba0 into viamrobotics:main Jun 16, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants