chore: Update modules deps (#9286)

This commit is contained in:
Adrien de Peretti
2024-09-26 11:14:35 +05:30
committed by GitHub
parent 11d8264062
commit e096feb7d5
518 changed files with 1115 additions and 957 deletions
@@ -1,4 +1,4 @@
import { CreateCartDTO } from "@medusajs/types"
import { CreateCartDTO } from "@medusajs/framework/types"
import { SqlEntityManager } from "@mikro-orm/postgresql"
import { Cart } from "../../../src/models"
import { defaultCartsData } from "./data"
@@ -1,5 +1,5 @@
import { ICartModuleService } from "@medusajs/types"
import { BigNumber, Module, Modules } from "@medusajs/utils"
import { ICartModuleService } from "@medusajs/framework/types"
import { BigNumber, Module, Modules } from "@medusajs/framework/utils"
import { CheckConstraintViolationException } from "@mikro-orm/core"
import { CartModuleService } from "@services"
import { moduleIntegrationTestRunner } from "medusa-test-utils"
@@ -1,5 +1,5 @@
import * as entities from "./src/models"
import { defineMikroOrmCliConfig, Modules } from "@medusajs/utils"
import { defineMikroOrmCliConfig, Modules } from "@medusajs/framework/utils"
export default defineMikroOrmCliConfig(Modules.CART, {
entities: Object.values(entities),
+1 -4
View File
@@ -37,7 +37,6 @@
"orm:cache:clear": " MIKRO_ORM_CLI=./mikro-orm.config.dev.ts mikro-orm cache:clear"
},
"devDependencies": {
"@medusajs/types": "^1.11.16",
"@mikro-orm/cli": "5.9.7",
"cross-env": "^5.2.1",
"jest": "^29.7.0",
@@ -47,10 +46,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 -1
View File
@@ -1,5 +1,5 @@
import { CartModuleService } from "./services"
import { Module, Modules } from "@medusajs/utils"
import { Module, Modules } from "@medusajs/framework/utils"
export default Module(Modules.CART, {
service: CartModuleService,
+2 -2
View File
@@ -1,9 +1,9 @@
import { DAL } from "@medusajs/types"
import { DAL } from "@medusajs/framework/types"
import {
DALUtils,
createPsqlIndexStatementHelper,
generateEntityId,
} from "@medusajs/utils"
} from "@medusajs/framework/utils"
import {
BeforeCreate,
Entity,
@@ -1,5 +1,5 @@
import { DAL } from "@medusajs/types"
import { BigNumber, MikroOrmBigNumberProperty } from "@medusajs/utils"
import { DAL } from "@medusajs/framework/types"
import { BigNumber, MikroOrmBigNumberProperty } from "@medusajs/framework/utils"
import { OptionalProps, PrimaryKey, Property } from "@mikro-orm/core"
type OptionalAdjustmentLineProps = DAL.SoftDeletableModelDateColumns
+2 -2
View File
@@ -1,9 +1,9 @@
import { DAL } from "@medusajs/types"
import { DAL } from "@medusajs/framework/types"
import {
DALUtils,
createPsqlIndexStatementHelper,
generateEntityId,
} from "@medusajs/utils"
} from "@medusajs/framework/utils"
import {
BeforeCreate,
Cascade,
@@ -2,7 +2,7 @@ import {
DALUtils,
createPsqlIndexStatementHelper,
generateEntityId,
} from "@medusajs/utils"
} from "@medusajs/framework/utils"
import {
BeforeCreate,
Check,
@@ -2,7 +2,7 @@ import {
DALUtils,
createPsqlIndexStatementHelper,
generateEntityId,
} from "@medusajs/utils"
} from "@medusajs/framework/utils"
import {
BeforeCreate,
Entity,
@@ -1,11 +1,11 @@
import { BigNumberRawValue, DAL } from "@medusajs/types"
import { BigNumberRawValue, DAL } from "@medusajs/framework/types"
import {
BigNumber,
DALUtils,
MikroOrmBigNumberProperty,
createPsqlIndexStatementHelper,
generateEntityId,
} from "@medusajs/utils"
} from "@medusajs/framework/utils"
import {
BeforeCreate,
Cascade,
@@ -2,7 +2,7 @@ import {
DALUtils,
createPsqlIndexStatementHelper,
generateEntityId,
} from "@medusajs/utils"
} from "@medusajs/framework/utils"
import {
BeforeCreate,
Entity,
@@ -2,7 +2,7 @@ import {
DALUtils,
createPsqlIndexStatementHelper,
generateEntityId,
} from "@medusajs/utils"
} from "@medusajs/framework/utils"
import {
BeforeCreate,
Entity,
@@ -1,11 +1,11 @@
import { BigNumberRawValue, DAL } from "@medusajs/types"
import { BigNumberRawValue, DAL } from "@medusajs/framework/types"
import {
BigNumber,
DALUtils,
MikroOrmBigNumberProperty,
createPsqlIndexStatementHelper,
generateEntityId,
} from "@medusajs/utils"
} from "@medusajs/framework/utils"
import {
BeforeCreate,
Cascade,
+1 -1
View File
@@ -1,4 +1,4 @@
import { DAL } from "@medusajs/types"
import { DAL } from "@medusajs/framework/types"
import { OptionalProps, PrimaryKey, Property } from "@mikro-orm/core"
type OptionalTaxLineProps = DAL.SoftDeletableModelDateColumns
@@ -7,7 +7,7 @@ import {
ICartModuleService,
InternalModuleDeclaration,
ModulesSdkTypes,
} from "@medusajs/types"
} from "@medusajs/framework/types"
import {
createRawPropertiesFromBigNumber,
decorateCartTotals,
@@ -19,7 +19,7 @@ import {
MedusaContext,
MedusaError,
ModulesSdkUtils,
} from "@medusajs/utils"
} from "@medusajs/framework/utils"
import {
Address,
Cart,
+1 -1
View File
@@ -1,4 +1,4 @@
import { Logger } from "@medusajs/types"
import { Logger } from "@medusajs/framework/types"
export * from "./address"
export * from "./cart"
@@ -1,4 +1,4 @@
import { BigNumberInput } from "@medusajs/types"
import { BigNumberInput } from "@medusajs/framework/types"
export interface CreateLineItemAdjustmentDTO {
item_id: string
+1 -1
View File
@@ -1,4 +1,4 @@
import { BigNumberInput } from "@medusajs/types"
import { BigNumberInput } from "@medusajs/framework/types"
interface PartialUpsertLineItemDTO {
subtitle?: string
@@ -1,4 +1,4 @@
import { BigNumberInput } from "@medusajs/types"
import { BigNumberInput } from "@medusajs/framework/types"
export interface CreateShippingMethodAdjustmentDTO {
shipping_method_id: string
@@ -1,4 +1,4 @@
import { BigNumberInput } from "@medusajs/types"
import { BigNumberInput } from "@medusajs/framework/types"
export interface CreateShippingMethodDTO {
name: string