From 36c3ec3753d7b278e09114acde356efd35031c2c Mon Sep 17 00:00:00 2001 From: Brian Kuzma Date: Wed, 18 Dec 2024 14:44:11 +0100 Subject: [PATCH] fix: use correct type for aggregate query --- packages/alpha/src/__tests__/api/simulatorModelsApi.spec.ts | 3 +++ packages/alpha/src/types.ts | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/alpha/src/__tests__/api/simulatorModelsApi.spec.ts b/packages/alpha/src/__tests__/api/simulatorModelsApi.spec.ts index 1aec36b80ae..c3e7fc9d874 100644 --- a/packages/alpha/src/__tests__/api/simulatorModelsApi.spec.ts +++ b/packages/alpha/src/__tests__/api/simulatorModelsApi.spec.ts @@ -56,6 +56,9 @@ describeIf('simulator models api', () => { test('aggregate models', async () => { const aggregateResponse = await client.simulators.aggregateModels({ + filter: { + simulatorExternalIds: [simulatorExternalId], + }, aggregate: 'count', }); diff --git a/packages/alpha/src/types.ts b/packages/alpha/src/types.ts index 9633c5f8b7f..fb201fbca93 100644 --- a/packages/alpha/src/types.ts +++ b/packages/alpha/src/types.ts @@ -342,7 +342,7 @@ export interface SimulatorModelAggregateQuery { /** * Filter on models with strict matching. */ - filter?: SimulatorModelFilterQuery; + filter?: SimulatorModelFilter; aggregate: 'count'; }