fix(utils, types, medusa-plugin-meilisearch, medusa-plugin-algolia): move SoftDeletableFilterKey, variantKeys, indexTypes from types to utils (#4623)
* chore: move SoftDeletableKey from types to utils * chore: move variantkeys, indextypes
This commit is contained in:
@@ -0,0 +1 @@
|
||||
export const SoftDeletableFilterKey = "softDeletable"
|
||||
@@ -22,3 +22,4 @@ export * from "./stringify-circular"
|
||||
export * from "./to-kebab-case"
|
||||
export * from "./to-pascal-case"
|
||||
export * from "./wrap-handler"
|
||||
export * from "./dal"
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import { DAL, FindConfig, SoftDeletableFilterKey } from "@medusajs/types"
|
||||
import { deduplicate, isObject } from "../common"
|
||||
import { DAL, FindConfig } from "@medusajs/types"
|
||||
|
||||
import { deduplicate, isObject, SoftDeletableFilterKey } from "../common"
|
||||
|
||||
export function buildQuery<T = any, TDto = any>(
|
||||
filters: Record<string, any> = {},
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
export const indexTypes = {
|
||||
PRODUCTS: "products",
|
||||
}
|
||||
@@ -1,4 +1,6 @@
|
||||
export * from "./abstract-service"
|
||||
export * from "./is-search-service"
|
||||
export * from "./search-relations"
|
||||
export * from "./index-types"
|
||||
export * from "./variant-keys"
|
||||
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
export const variantKeys = [
|
||||
"sku",
|
||||
"title",
|
||||
"upc",
|
||||
"ean",
|
||||
"mid_code",
|
||||
"hs_code",
|
||||
"options",
|
||||
]
|
||||
Reference in New Issue
Block a user