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:
Riqwan Thamir
2023-07-27 16:42:26 +02:00
committed by GitHub
parent c85d479e52
commit 107ae23a3f
15 changed files with 25 additions and 15 deletions
+1
View File
@@ -0,0 +1 @@
export const SoftDeletableFilterKey = "softDeletable"
+1
View File
@@ -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> = {},
+3
View File
@@ -0,0 +1,3 @@
export const indexTypes = {
PRODUCTS: "products",
}
+2
View File
@@ -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",
]