GitHub

DaffProductRoutingConfig

import { DaffProductRoutingConfig } from '@daffodil/product/routing'

An interface for providing @daffodil/product/routing with necessary config values.

interface DaffProductRoutingConfig {
  transforms: Partial<Record<"appliedSortOption" | "appliedSortDirection" | "pageSize" | "currentPage" | "filterRequests", DaffCollectionRequestQueryParamTransform<DaffCollectionRequestValue>>>
  params: Partial<Record<"appliedSortOption" | "appliedSortDirection" | "pageSize" | "currentPage" | "filterRequests", string>>
}

Properties

transforms
Partial<Record<"appliedSortOption" | "appliedSortDirection" | "pageSize" | "currentPage" | "filterRequests", DaffCollectionRequestQueryParamTransform<DaffCollectionRequestValue>>>

The query params transforms for each product collection request field.

See DaffCollectionRequestQueryParamTransforms.

params
Partial<Record<"appliedSortOption" | "appliedSortDirection" | "pageSize" | "currentPage" | "filterRequests", string>>

The mapping of query param fields.

See DaffCollectionRequestQueryParams.