const result = await client.graphql.query<{
onetimeProducts: Array<{
id: string;
name: string;
prices: Record<string, { amount: number; taxCategory: string }>;
status: string;
}>;
onetimeProductsCount: number;
}>({
query: `query($storeId: String!) {
onetimeProducts(filter: { storeId: { eq: $storeId }, status: { eq: "active" } }, limit: 20) {
id name prices status
}
onetimeProductsCount(filter: { storeId: { eq: $storeId } })
}`,
variables: { storeId: "STO_3bVzrkD0FJjFdZNLk8Ualx" },
});