* feat: refactor module joiner config and links generation * improve typings * WIP * WIP * WIP * rename type file * create link config * finish typings and add utils * improve links * WIP typings * finalize ExportModule utils * finalize ExportModule utils * fix: dml tests * improve and fixes * simplify typings with id changes * add toJSON * multiple fixes and entity builder fixes * fix currency searchable * fix tests * medusa service refactoring * cleanup * cleanup and fixes * make module name optional * renaming --------- Co-authored-by: Harminder Virk <virk.officials@gmail.com>
17 lines
440 B
TypeScript
17 lines
440 B
TypeScript
import { defineJoinerConfig, Modules } from "@medusajs/utils"
|
|
import {
|
|
Fulfillment,
|
|
FulfillmentSet,
|
|
ShippingOption,
|
|
ShippingOptionRule,
|
|
} from "@models"
|
|
|
|
export const joinerConfig = defineJoinerConfig(Modules.FULFILLMENT, {
|
|
linkableKeys: {
|
|
fulfillment_id: Fulfillment.name,
|
|
fulfillment_set_id: FulfillmentSet.name,
|
|
shipping_option_id: ShippingOption.name,
|
|
shipping_option_rule_id: ShippingOptionRule.name,
|
|
},
|
|
})
|