* 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
451 B
TypeScript
17 lines
451 B
TypeScript
import { defineJoinerConfig, Modules } from "@medusajs/utils"
|
|
import {
|
|
Payment,
|
|
PaymentCollection,
|
|
PaymentProvider,
|
|
PaymentSession,
|
|
} from "@models"
|
|
|
|
export const joinerConfig = defineJoinerConfig(Modules.PAYMENT, {
|
|
models: [Payment, PaymentCollection, PaymentProvider, PaymentSession],
|
|
linkableKeys: {
|
|
payment_id: Payment.name,
|
|
payment_collection_id: PaymentCollection.name,
|
|
payment_provider_id: PaymentProvider.name,
|
|
},
|
|
})
|