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 authored and GitHub committed 2023-07-27 16:42:26 +02:00
1 parent c85d479e52
commit 107ae23a3f
15 files changed
+25 -15

No files matched your search

@@ -105,9 +105,9 @@ class MeiliSearchService extends SearchUtils.AbstractSearchService {
}
switch (type) {
case SearchTypes.indexTypes.PRODUCTS:
case SearchUtils.indexTypes.PRODUCTS:
const productsTransformer =
this.config_.settings?.[SearchTypes.indexTypes.PRODUCTS]
this.config_.settings?.[SearchUtils.indexTypes.PRODUCTS]
?.transformer ?? transformProduct
return documents.map(productsTransformer)
@@ -1,4 +1,4 @@
import { variantKeys } from "@medusajs/types"
import { variantKeys } from "@medusajs/utils"
const prefix = `variant`