chore: Update modules deps (#9286)
This commit is contained in:
committed by
GitHub
parent
11d8264062
commit
e096feb7d5
+2
-2
@@ -1,5 +1,5 @@
|
||||
import { IInventoryService, InventoryItemDTO } from "@medusajs/types"
|
||||
import { BigNumber, Module, Modules } from "@medusajs/utils"
|
||||
import { IInventoryService, InventoryItemDTO } from "@medusajs/framework/types"
|
||||
import { BigNumber, Module, Modules } from "@medusajs/framework/utils"
|
||||
import { moduleIntegrationTestRunner } from "medusa-test-utils"
|
||||
import { InventoryModuleService } from "../../src/services"
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import * as entities from "./src/models"
|
||||
|
||||
import { defineMikroOrmCliConfig, Modules } from "@medusajs/utils"
|
||||
import { defineMikroOrmCliConfig, Modules } from "@medusajs/framework/utils"
|
||||
|
||||
export default defineMikroOrmCliConfig(Modules.INVENTORY, {
|
||||
entities: Object.values(entities),
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
"author": "Medusa",
|
||||
"license": "MIT",
|
||||
"devDependencies": {
|
||||
"@medusajs/types": "^1.11.15",
|
||||
"@medusajs/framework": "^0.0.1",
|
||||
"@mikro-orm/cli": "5.9.7",
|
||||
"cross-env": "^5.2.1",
|
||||
"jest": "^29.7.0",
|
||||
@@ -33,10 +33,8 @@
|
||||
"tsc-alias": "^1.8.6",
|
||||
"typescript": "^5.6.2"
|
||||
},
|
||||
"dependencies": {
|
||||
"@medusajs/utils": "^1.11.9"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@medusajs/framework": "^0.0.1",
|
||||
"@mikro-orm/core": "5.9.7",
|
||||
"@mikro-orm/migrations": "5.9.7",
|
||||
"@mikro-orm/postgresql": "5.9.7",
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import InventoryModuleService from "./services/inventory-module"
|
||||
import { Module, Modules } from "@medusajs/utils"
|
||||
import { Module, Modules } from "@medusajs/framework/utils"
|
||||
|
||||
export default Module(Modules.INVENTORY, {
|
||||
service: InventoryModuleService,
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { defineJoinerConfig, Modules } from "@medusajs/utils"
|
||||
import { defineJoinerConfig, Modules } from "@medusajs/framework/utils"
|
||||
import { default as schema } from "./schema"
|
||||
|
||||
export const joinerConfig = defineJoinerConfig(Modules.INVENTORY, {
|
||||
|
||||
@@ -3,7 +3,7 @@ import {
|
||||
DALUtils,
|
||||
generateEntityId,
|
||||
Searchable,
|
||||
} from "@medusajs/utils"
|
||||
} from "@medusajs/framework/utils"
|
||||
import {
|
||||
BeforeCreate,
|
||||
Collection,
|
||||
@@ -18,7 +18,7 @@ import {
|
||||
Rel,
|
||||
} from "@mikro-orm/core"
|
||||
|
||||
import { DAL } from "@medusajs/types"
|
||||
import { DAL } from "@medusajs/framework/types"
|
||||
import { InventoryLevel } from "./inventory-level"
|
||||
import { ReservationItem } from "./reservation-item"
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { DALUtils, isDefined, MathBN } from "@medusajs/utils"
|
||||
import { DALUtils, isDefined, MathBN } from "@medusajs/framework/utils"
|
||||
import {
|
||||
BeforeCreate,
|
||||
Entity,
|
||||
@@ -11,13 +11,13 @@ import {
|
||||
Rel,
|
||||
} from "@mikro-orm/core"
|
||||
|
||||
import { BigNumberRawValue } from "@medusajs/types"
|
||||
import { BigNumberRawValue } from "@medusajs/framework/types"
|
||||
import {
|
||||
BigNumber,
|
||||
createPsqlIndexStatementHelper,
|
||||
generateEntityId,
|
||||
MikroOrmBigNumberProperty,
|
||||
} from "@medusajs/utils"
|
||||
} from "@medusajs/framework/utils"
|
||||
import { InventoryItem } from "./inventory-item"
|
||||
|
||||
const InventoryLevelDeletedAtIndex = createPsqlIndexStatementHelper({
|
||||
|
||||
@@ -9,14 +9,14 @@ import {
|
||||
Rel,
|
||||
} from "@mikro-orm/core"
|
||||
|
||||
import { BigNumberRawValue } from "@medusajs/types"
|
||||
import { BigNumberRawValue } from "@medusajs/framework/types"
|
||||
import {
|
||||
BigNumber,
|
||||
DALUtils,
|
||||
MikroOrmBigNumberProperty,
|
||||
createPsqlIndexStatementHelper,
|
||||
generateEntityId,
|
||||
} from "@medusajs/utils"
|
||||
} from "@medusajs/framework/utils"
|
||||
import { InventoryItem } from "./inventory-item"
|
||||
|
||||
const ReservationItemDeletedAtIndex = createPsqlIndexStatementHelper({
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
export * from "./inventory-level"
|
||||
export { MikroOrmBaseRepository as BaseRepository } from "@medusajs/utils"
|
||||
export { MikroOrmBaseRepository as BaseRepository } from "@medusajs/framework/utils"
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import { Context } from "@medusajs/types"
|
||||
import { Context } from "@medusajs/framework/types"
|
||||
import {
|
||||
BigNumber,
|
||||
MathBN,
|
||||
mikroOrmBaseRepositoryFactory,
|
||||
} from "@medusajs/utils"
|
||||
} from "@medusajs/framework/utils"
|
||||
import { SqlEntityManager } from "@mikro-orm/postgresql"
|
||||
import { InventoryLevel } from "@models"
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { Context } from "@medusajs/types"
|
||||
import { BigNumber, ModulesSdkUtils } from "@medusajs/utils"
|
||||
import { Context } from "@medusajs/framework/types"
|
||||
import { BigNumber, ModulesSdkUtils } from "@medusajs/framework/utils"
|
||||
|
||||
import { InventoryLevelRepository } from "@repositories"
|
||||
import { InventoryLevel } from "../models/inventory-level"
|
||||
|
||||
@@ -2,6 +2,7 @@ import {
|
||||
BigNumberInput,
|
||||
Context,
|
||||
DAL,
|
||||
IInventoryService,
|
||||
InternalModuleDeclaration,
|
||||
InventoryTypes,
|
||||
ModuleJoinerConfig,
|
||||
@@ -9,8 +10,7 @@ import {
|
||||
ReservationItemDTO,
|
||||
RestoreReturn,
|
||||
SoftDeleteReturn,
|
||||
} from "@medusajs/types"
|
||||
import { IInventoryService } from "@medusajs/types/dist/inventory"
|
||||
} from "@medusajs/framework/types"
|
||||
import {
|
||||
arrayDifference,
|
||||
BigNumber,
|
||||
@@ -26,7 +26,7 @@ import {
|
||||
MedusaError,
|
||||
MedusaService,
|
||||
partitionArray,
|
||||
} from "@medusajs/utils"
|
||||
} from "@medusajs/framework/utils"
|
||||
import { InventoryItem, InventoryLevel, ReservationItem } from "@models"
|
||||
import { joinerConfig } from "../joiner-config"
|
||||
import InventoryLevelService from "./inventory-level"
|
||||
|
||||
Reference in New Issue
Block a user