* 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>
14 lines
303 B
TypeScript
14 lines
303 B
TypeScript
import { defineJoinerConfig, Modules } from "@medusajs/utils"
|
|
|
|
export const joinerConfig = defineJoinerConfig(Modules.CUSTOMER, {
|
|
alias: [
|
|
{
|
|
name: ["customer_address", "customer_addresses"],
|
|
args: {
|
|
entity: "Address",
|
|
methodSuffix: "Addresses",
|
|
},
|
|
},
|
|
],
|
|
})
|