Skip to content

Commit

Permalink
fix: use correct type for aggregate query
Browse files Browse the repository at this point in the history
  • Loading branch information
bkuzma committed Dec 18, 2024
1 parent 662062a commit 36c3ec3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions packages/alpha/src/__tests__/api/simulatorModelsApi.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ describeIf('simulator models api', () => {

test('aggregate models', async () => {
const aggregateResponse = await client.simulators.aggregateModels({
filter: {
simulatorExternalIds: [simulatorExternalId],
},
aggregate: 'count',
});

Expand Down
2 changes: 1 addition & 1 deletion packages/alpha/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ export interface SimulatorModelAggregateQuery {
/**
* Filter on models with strict matching.
*/
filter?: SimulatorModelFilterQuery;
filter?: SimulatorModelFilter;
aggregate: 'count';
}

Expand Down

0 comments on commit 36c3ec3

Please sign in to comment.