Feat(medusa,modules-sdk): Modules SDK package (#3294)
This commit is contained in:
1 parent
f3bf351d21
commit
ad7f56506f
37 files changed
+317
-160
No files matched your search
@@ -24,6 +24,9 @@
|
||||
"typeorm": "^0.3.11",
|
||||
"typescript": "^4.4.4"
|
||||
},
|
||||
"dependencies": {
|
||||
"@medusajs/modules-sdk": "*"
|
||||
},
|
||||
"scripts": {
|
||||
"watch": "tsc --build --watch",
|
||||
"prepare": "cross-env NODE_ENV=production yarn run build",
|
||||
|
||||
@@ -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