* chore: make module loaders DML aware and auto generate joiner config * fixes and cleanup * improve dml entity check * add unit tests on load resources * cleanup deps * cleanup deps * cleanup Modules * finalise * fix modules-sdk jest * fix modules-sdk jest * fix import * fix import
14 lines
368 B
TypeScript
14 lines
368 B
TypeScript
import {
|
|
buildEntitiesNameToLinkableKeysMap,
|
|
defineJoinerConfig,
|
|
MapToConfig,
|
|
Modules,
|
|
} from "@medusajs/utils"
|
|
|
|
export const joinerConfig = defineJoinerConfig(Modules.NOTIFICATION, {
|
|
entityQueryingConfig: [{ name: "Notification" }],
|
|
})
|
|
|
|
export const entityNameToLinkableKeysMap: MapToConfig =
|
|
buildEntitiesNameToLinkableKeysMap(joinerConfig.linkableKeys)
|