Feat(medusa,modules-sdk): Modules SDK package (#3294)
This commit is contained in:
@@ -2,7 +2,7 @@ import ConnectionLoader from "./loaders/connection"
|
||||
import InventoryService from "./services/inventory"
|
||||
import * as InventoryModels from "./models"
|
||||
import * as SchemaMigration from "./migrations/schema-migrations/1665748086258-inventory_setup"
|
||||
import { ModuleExports } from "@medusajs/medusa"
|
||||
import { ModuleExports } from "@medusajs/modules-sdk"
|
||||
|
||||
const service = InventoryService
|
||||
const migrations = [SchemaMigration]
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
import { ConfigurableModuleDeclaration, LoaderOptions } from "@medusajs/medusa"
|
||||
import {
|
||||
ConfigurableModuleDeclaration,
|
||||
LoaderOptions,
|
||||
} from "@medusajs/modules-sdk"
|
||||
|
||||
export default async (
|
||||
{ configModule }: LoaderOptions,
|
||||
|
||||
@@ -1,5 +1,9 @@
|
||||
import {
|
||||
ConfigurableModuleDeclaration,
|
||||
MODULE_RESOURCE_TYPE,
|
||||
} from "@medusajs/modules-sdk"
|
||||
|
||||
import {
|
||||
CreateInventoryItemInput,
|
||||
CreateInventoryLevelInput,
|
||||
CreateReservationItemInput,
|
||||
@@ -11,7 +15,6 @@ import {
|
||||
IInventoryService,
|
||||
InventoryItemDTO,
|
||||
InventoryLevelDTO,
|
||||
MODULE_RESOURCE_TYPE,
|
||||
ReservationItemDTO,
|
||||
TransactionBaseService,
|
||||
UpdateInventoryLevelInput,
|
||||
|
||||
Reference in New Issue
Block a user