diff --git a/price.ts b/price.ts index 4f85c8d..e5ec9eb 100644 --- a/price.ts +++ b/price.ts @@ -7,6 +7,8 @@ import { export interface PriceQuery { paginacion?: Paginacion; + filter?: string; + SKUCode?: string; } export interface Price { @@ -28,6 +30,12 @@ export async function getPrices( ): Promise { let searchParams = new URLSearchParams(); paginacionToSearchParams(options.paginacion, searchParams); + if (options.filter) { + searchParams.set("filter", options.filter); + } + if (options.SKUCode) { + searchParams.set("SKUCode", options.SKUCode); + } const res = await fetch( `${HOST}/api/Aperture/Price?${searchParams.toString()}`, {