chore: Update modules deps (#9286)
This commit is contained in:
committed by
GitHub
parent
11d8264062
commit
e096feb7d5
@@ -1,5 +1,5 @@
|
||||
import { CreateOrderDTO, IOrderModuleService } from "@medusajs/types"
|
||||
import { Modules } from "@medusajs/utils"
|
||||
import { CreateOrderDTO, IOrderModuleService } from "@medusajs/framework/types"
|
||||
import { Modules } from "@medusajs/framework/utils"
|
||||
import { moduleIntegrationTestRunner } from "medusa-test-utils"
|
||||
|
||||
jest.setTimeout(100000)
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { IOrderModuleService } from "@medusajs/types"
|
||||
import { Module, Modules } from "@medusajs/utils"
|
||||
import { IOrderModuleService } from "@medusajs/framework/types"
|
||||
import { Module, Modules } from "@medusajs/framework/utils"
|
||||
import { OrderModuleService } from "@services"
|
||||
import { moduleIntegrationTestRunner } from "medusa-test-utils"
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { CreateOrderDTO, IOrderModuleService } from "@medusajs/types"
|
||||
import { ClaimType, Modules } from "@medusajs/utils"
|
||||
import { CreateOrderDTO, IOrderModuleService } from "@medusajs/framework/types"
|
||||
import { ClaimType, Modules } from "@medusajs/framework/utils"
|
||||
import { SuiteOptions, moduleIntegrationTestRunner } from "medusa-test-utils"
|
||||
|
||||
jest.setTimeout(100000)
|
||||
|
||||
@@ -3,8 +3,8 @@ import {
|
||||
CreateOrderChangeDTO,
|
||||
CreateOrderDTO,
|
||||
IOrderModuleService,
|
||||
} from "@medusajs/types"
|
||||
import { BigNumber, ChangeActionType, Modules } from "@medusajs/utils"
|
||||
} from "@medusajs/framework/types"
|
||||
import { BigNumber, ChangeActionType, Modules } from "@medusajs/framework/utils"
|
||||
import { moduleIntegrationTestRunner } from "medusa-test-utils"
|
||||
|
||||
jest.setTimeout(100000)
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { CreateOrderDTO, IOrderModuleService } from "@medusajs/types"
|
||||
import { Modules } from "@medusajs/utils"
|
||||
import { CreateOrderDTO, IOrderModuleService } from "@medusajs/framework/types"
|
||||
import { Modules } from "@medusajs/framework/utils"
|
||||
import { SuiteOptions, moduleIntegrationTestRunner } from "medusa-test-utils"
|
||||
|
||||
jest.setTimeout(100000)
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import {
|
||||
CreateOrderLineItemTaxLineDTO,
|
||||
IOrderModuleService,
|
||||
} from "@medusajs/types"
|
||||
import { Modules, OrderStatus } from "@medusajs/utils"
|
||||
} from "@medusajs/framework/types"
|
||||
import { Modules, OrderStatus } from "@medusajs/framework/utils"
|
||||
import { moduleIntegrationTestRunner } from "medusa-test-utils"
|
||||
|
||||
jest.setTimeout(100000)
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { CreateOrderDTO, IOrderModuleService } from "@medusajs/types"
|
||||
import { Modules } from "@medusajs/utils"
|
||||
import { CreateOrderDTO, IOrderModuleService } from "@medusajs/framework/types"
|
||||
import { Modules } from "@medusajs/framework/utils"
|
||||
import { moduleIntegrationTestRunner } from "medusa-test-utils"
|
||||
|
||||
jest.setTimeout(1000000)
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { IOrderModuleService } from "@medusajs/types"
|
||||
import { Modules } from "@medusajs/utils"
|
||||
import { IOrderModuleService } from "@medusajs/framework/types"
|
||||
import { Modules } from "@medusajs/framework/utils"
|
||||
import { moduleIntegrationTestRunner } from "medusa-test-utils"
|
||||
|
||||
jest.setTimeout(100000)
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { defineMikroOrmCliConfig, Modules } from "@medusajs/utils"
|
||||
import { defineMikroOrmCliConfig, Modules } from "@medusajs/framework/utils"
|
||||
import * as entities from "./src/models"
|
||||
|
||||
export default defineMikroOrmCliConfig(Modules.ORDER, {
|
||||
|
||||
@@ -37,7 +37,7 @@
|
||||
"orm:cache:clear": " MIKRO_ORM_CLI=./mikro-orm.config.dev.ts mikro-orm cache:clear"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@medusajs/types": "^1.11.16",
|
||||
"@medusajs/framework": "^0.0.1",
|
||||
"@mikro-orm/cli": "5.9.7",
|
||||
"cross-env": "^5.2.1",
|
||||
"jest": "^29.7.0",
|
||||
@@ -47,10 +47,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,4 +1,4 @@
|
||||
import { Module, Modules } from "@medusajs/utils"
|
||||
import { Module, Modules } from "@medusajs/framework/utils"
|
||||
import { OrderModuleService } from "@services"
|
||||
|
||||
export default Module(Modules.ORDER, {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { defineJoinerConfig, Modules } from "@medusajs/utils"
|
||||
import { defineJoinerConfig, Modules } from "@medusajs/framework/utils"
|
||||
import {
|
||||
Order,
|
||||
OrderAddress,
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { generatePostgresAlterColummnIfExistStatement } from "@medusajs/utils"
|
||||
import { generatePostgresAlterColummnIfExistStatement } from "@medusajs/framework/utils"
|
||||
import { Migration } from "@mikro-orm/migrations"
|
||||
|
||||
export class Migration20240219102530 extends Migration {
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import { DAL } from "@medusajs/types"
|
||||
import { DAL } from "@medusajs/framework/types"
|
||||
import {
|
||||
createPsqlIndexStatementHelper,
|
||||
generateEntityId,
|
||||
} from "@medusajs/utils"
|
||||
} from "@medusajs/framework/utils"
|
||||
import {
|
||||
BeforeCreate,
|
||||
Entity,
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { BigNumberRawValue, DAL } from "@medusajs/types"
|
||||
import { BigNumber, MikroOrmBigNumberProperty } from "@medusajs/utils"
|
||||
import { BigNumberRawValue, DAL } from "@medusajs/framework/types"
|
||||
import { BigNumber, MikroOrmBigNumberProperty } from "@medusajs/framework/utils"
|
||||
import { OptionalProps, PrimaryKey, Property } from "@mikro-orm/core"
|
||||
|
||||
type OptionalAdjustmentLineProps = DAL.ModelDateColumns
|
||||
|
||||
@@ -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,10 +1,10 @@
|
||||
import { BigNumberRawValue, DAL } from "@medusajs/types"
|
||||
import { BigNumberRawValue, DAL } from "@medusajs/framework/types"
|
||||
import {
|
||||
ClaimReason,
|
||||
MikroOrmBigNumberProperty,
|
||||
createPsqlIndexStatementHelper,
|
||||
generateEntityId,
|
||||
} from "@medusajs/utils"
|
||||
} from "@medusajs/framework/utils"
|
||||
import {
|
||||
BeforeCreate,
|
||||
Cascade,
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { BigNumberRawValue, DAL } from "@medusajs/types"
|
||||
import { BigNumberRawValue, DAL } from "@medusajs/framework/types"
|
||||
import {
|
||||
BigNumber,
|
||||
ClaimType,
|
||||
@@ -6,7 +6,7 @@ import {
|
||||
MikroOrmBigNumberProperty,
|
||||
createPsqlIndexStatementHelper,
|
||||
generateEntityId,
|
||||
} from "@medusajs/utils"
|
||||
} from "@medusajs/framework/utils"
|
||||
import {
|
||||
BeforeCreate,
|
||||
Cascade,
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import { BigNumberRawValue, DAL } from "@medusajs/types"
|
||||
import { BigNumberRawValue, DAL } from "@medusajs/framework/types"
|
||||
import {
|
||||
MikroOrmBigNumberProperty,
|
||||
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,7 +1,7 @@
|
||||
import {
|
||||
createPsqlIndexStatementHelper,
|
||||
generateEntityId,
|
||||
} from "@medusajs/utils"
|
||||
} from "@medusajs/framework/utils"
|
||||
import { BeforeCreate, Entity, ManyToOne, OnInit, Rel } from "@mikro-orm/core"
|
||||
import AdjustmentLine from "./adjustment-line"
|
||||
import OrderLineItem from "./line-item"
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import {
|
||||
createPsqlIndexStatementHelper,
|
||||
generateEntityId,
|
||||
} from "@medusajs/utils"
|
||||
} from "@medusajs/framework/utils"
|
||||
import {
|
||||
BeforeCreate,
|
||||
Cascade,
|
||||
|
||||
@@ -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,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,
|
||||
Entity,
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
import { DAL } from "@medusajs/types"
|
||||
import { DAL } from "@medusajs/framework/types"
|
||||
import {
|
||||
createPsqlIndexStatementHelper,
|
||||
DALUtils,
|
||||
generateEntityId,
|
||||
OrderChangeStatus,
|
||||
} from "@medusajs/utils"
|
||||
} from "@medusajs/framework/utils"
|
||||
import {
|
||||
BeforeCreate,
|
||||
Cascade,
|
||||
@@ -20,7 +20,7 @@ import {
|
||||
Property,
|
||||
Rel,
|
||||
} from "@mikro-orm/core"
|
||||
import { } from "@types"
|
||||
import {} from "@types"
|
||||
import OrderClaim from "./claim"
|
||||
import OrderExchange from "./exchange"
|
||||
import Order from "./order"
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
import { BigNumberRawValue, DAL } from "@medusajs/types"
|
||||
import { BigNumberRawValue, DAL } from "@medusajs/framework/types"
|
||||
import {
|
||||
BigNumber,
|
||||
MikroOrmBigNumberProperty,
|
||||
createPsqlIndexStatementHelper,
|
||||
generateEntityId,
|
||||
} from "@medusajs/utils"
|
||||
} from "@medusajs/framework/utils"
|
||||
import {
|
||||
BeforeCreate,
|
||||
Entity,
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import { DAL } from "@medusajs/types"
|
||||
import { DAL } from "@medusajs/framework/types"
|
||||
import {
|
||||
createPsqlIndexStatementHelper,
|
||||
generateEntityId,
|
||||
} from "@medusajs/utils"
|
||||
} from "@medusajs/framework/utils"
|
||||
import {
|
||||
BeforeCreate,
|
||||
Entity,
|
||||
|
||||
@@ -2,7 +2,7 @@ import {
|
||||
BigNumber,
|
||||
createPsqlIndexStatementHelper,
|
||||
generateEntityId,
|
||||
} from "@medusajs/utils"
|
||||
} from "@medusajs/framework/utils"
|
||||
import {
|
||||
BeforeCreate,
|
||||
Entity,
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import { DAL } from "@medusajs/types"
|
||||
import { DAL } from "@medusajs/framework/types"
|
||||
import {
|
||||
OrderStatus,
|
||||
createPsqlIndexStatementHelper,
|
||||
generateEntityId,
|
||||
} from "@medusajs/utils"
|
||||
} from "@medusajs/framework/utils"
|
||||
import {
|
||||
BeforeCreate,
|
||||
Cascade,
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import { BigNumberRawValue, DAL } from "@medusajs/types"
|
||||
import { BigNumberRawValue, DAL } from "@medusajs/framework/types"
|
||||
import {
|
||||
MikroOrmBigNumberProperty,
|
||||
createPsqlIndexStatementHelper,
|
||||
generateEntityId,
|
||||
} from "@medusajs/utils"
|
||||
} from "@medusajs/framework/utils"
|
||||
import {
|
||||
BeforeCreate,
|
||||
Entity,
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
import { DAL } from "@medusajs/types"
|
||||
import { DAL } from "@medusajs/framework/types"
|
||||
import {
|
||||
DALUtils,
|
||||
Searchable,
|
||||
createPsqlIndexStatementHelper,
|
||||
generateEntityId,
|
||||
} from "@medusajs/utils"
|
||||
} from "@medusajs/framework/utils"
|
||||
import {
|
||||
BeforeCreate,
|
||||
Cascade,
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { BigNumberRawValue, DAL } from "@medusajs/types"
|
||||
import { BigNumberRawValue, DAL } from "@medusajs/framework/types"
|
||||
import {
|
||||
BigNumber,
|
||||
DALUtils,
|
||||
@@ -6,7 +6,7 @@ import {
|
||||
ReturnStatus,
|
||||
createPsqlIndexStatementHelper,
|
||||
generateEntityId,
|
||||
} from "@medusajs/utils"
|
||||
} from "@medusajs/framework/utils"
|
||||
import {
|
||||
BeforeCreate,
|
||||
Cascade,
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import {
|
||||
createPsqlIndexStatementHelper,
|
||||
generateEntityId,
|
||||
} from "@medusajs/utils"
|
||||
} from "@medusajs/framework/utils"
|
||||
import { BeforeCreate, Entity, ManyToOne, OnInit, Rel } from "@mikro-orm/core"
|
||||
import AdjustmentLine from "./adjustment-line"
|
||||
import OrderShippingMethod from "./shipping-method"
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import {
|
||||
createPsqlIndexStatementHelper,
|
||||
generateEntityId,
|
||||
} from "@medusajs/utils"
|
||||
} from "@medusajs/framework/utils"
|
||||
import { BeforeCreate, Entity, ManyToOne, OnInit, Rel } from "@mikro-orm/core"
|
||||
import OrderShippingMethod from "./shipping-method"
|
||||
import TaxLine from "./tax-line"
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import { BigNumberRawValue } from "@medusajs/types"
|
||||
import { BigNumberRawValue } from "@medusajs/framework/types"
|
||||
import {
|
||||
BigNumber,
|
||||
createPsqlIndexStatementHelper,
|
||||
DALUtils,
|
||||
generateEntityId,
|
||||
MikroOrmBigNumberProperty,
|
||||
} from "@medusajs/utils"
|
||||
} from "@medusajs/framework/utils"
|
||||
import {
|
||||
BeforeCreate,
|
||||
Cascade,
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { BigNumberRawValue } from "@medusajs/types"
|
||||
import { BigNumber, MikroOrmBigNumberProperty } from "@medusajs/utils"
|
||||
import { BigNumberRawValue } from "@medusajs/framework/types"
|
||||
import { BigNumber, MikroOrmBigNumberProperty } from "@medusajs/framework/utils"
|
||||
import { PrimaryKey, Property } from "@mikro-orm/core"
|
||||
|
||||
/**
|
||||
|
||||
@@ -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,
|
||||
Entity,
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { DALUtils } from "@medusajs/utils"
|
||||
import { DALUtils } from "@medusajs/framework/utils"
|
||||
import { OrderClaim } from "@models"
|
||||
import { setFindMethods } from "../utils/base-repository-find"
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { DALUtils } from "@medusajs/utils"
|
||||
import { DALUtils } from "@medusajs/framework/utils"
|
||||
import { OrderExchange } from "@models"
|
||||
import { setFindMethods } from "../utils/base-repository-find"
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
export { MikroOrmBaseRepository as BaseRepository } from "@medusajs/utils"
|
||||
export { MikroOrmBaseRepository as BaseRepository } from "@medusajs/framework/utils"
|
||||
export { OrderClaimRepository } from "./claim"
|
||||
export { OrderRepository } from "./order"
|
||||
export { ReturnRepository } from "./return"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { DALUtils } from "@medusajs/utils"
|
||||
import { DALUtils } from "@medusajs/framework/utils"
|
||||
import { Order } from "@models"
|
||||
import { setFindMethods } from "../utils/base-repository-find"
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { DALUtils } from "@medusajs/utils"
|
||||
import { DALUtils } from "@medusajs/framework/utils"
|
||||
import { Return } from "@models"
|
||||
import { setFindMethods } from "../utils/base-repository-find"
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { ChangeActionType } from "@medusajs/utils"
|
||||
import { ChangeActionType } from "@medusajs/framework/utils"
|
||||
import { OrderChangeEvent } from "../../../../types"
|
||||
import { calculateOrderChange } from "../../../../utils"
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { ChangeActionType } from "@medusajs/utils"
|
||||
import { ChangeActionType } from "@medusajs/framework/utils"
|
||||
import { OrderChangeEvent } from "../../../../types"
|
||||
import { calculateOrderChange } from "../../../../utils"
|
||||
|
||||
|
||||
@@ -3,8 +3,8 @@ import {
|
||||
CreateOrderChangeActionDTO,
|
||||
OrderClaimDTO,
|
||||
OrderTypes,
|
||||
} from "@medusajs/types"
|
||||
import { ChangeActionType, promiseAll } from "@medusajs/utils"
|
||||
} from "@medusajs/framework/types"
|
||||
import { ChangeActionType, promiseAll } from "@medusajs/framework/utils"
|
||||
|
||||
async function createOrderChange(
|
||||
service,
|
||||
|
||||
@@ -3,8 +3,8 @@ import {
|
||||
CreateOrderChangeActionDTO,
|
||||
OrderExchangeDTO,
|
||||
OrderTypes,
|
||||
} from "@medusajs/types"
|
||||
import { ChangeActionType, promiseAll } from "@medusajs/utils"
|
||||
} from "@medusajs/framework/types"
|
||||
import { ChangeActionType, promiseAll } from "@medusajs/framework/utils"
|
||||
|
||||
async function createOrderChange(
|
||||
service,
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { Context, OrderTypes } from "@medusajs/types"
|
||||
import { ChangeActionType } from "@medusajs/utils"
|
||||
import { Context, OrderTypes } from "@medusajs/framework/types"
|
||||
import { ChangeActionType } from "@medusajs/framework/utils"
|
||||
|
||||
export async function cancelFulfillment(
|
||||
this: any,
|
||||
|
||||
@@ -3,8 +3,8 @@ import {
|
||||
CreateOrderChangeActionDTO,
|
||||
OrderTypes,
|
||||
ReturnDTO,
|
||||
} from "@medusajs/types"
|
||||
import { ChangeActionType, promiseAll } from "@medusajs/utils"
|
||||
} from "@medusajs/framework/types"
|
||||
import { ChangeActionType, promiseAll } from "@medusajs/framework/utils"
|
||||
|
||||
async function createOrderChange(
|
||||
service,
|
||||
|
||||
@@ -2,7 +2,7 @@ import {
|
||||
Context,
|
||||
CreateOrderChangeActionDTO,
|
||||
OrderTypes,
|
||||
} from "@medusajs/types"
|
||||
} from "@medusajs/framework/types"
|
||||
import {
|
||||
ChangeActionType,
|
||||
ClaimType,
|
||||
@@ -11,7 +11,7 @@ import {
|
||||
getShippingMethodsTotals,
|
||||
isString,
|
||||
promiseAll,
|
||||
} from "@medusajs/utils"
|
||||
} from "@medusajs/framework/utils"
|
||||
import { OrderClaim, OrderClaimItem, Return, ReturnItem } from "@models"
|
||||
|
||||
function createClaimAndReturnEntities(em, data, order) {
|
||||
|
||||
@@ -2,7 +2,7 @@ import {
|
||||
Context,
|
||||
CreateOrderChangeActionDTO,
|
||||
OrderTypes,
|
||||
} from "@medusajs/types"
|
||||
} from "@medusajs/framework/types"
|
||||
import {
|
||||
ChangeActionType,
|
||||
OrderChangeType,
|
||||
@@ -10,7 +10,7 @@ import {
|
||||
getShippingMethodsTotals,
|
||||
isString,
|
||||
promiseAll,
|
||||
} from "@medusajs/utils"
|
||||
} from "@medusajs/framework/utils"
|
||||
import { OrderExchange, OrderExchangeItem, Return, ReturnItem } from "@models"
|
||||
|
||||
function createExchangeAndReturnEntities(em, data, order) {
|
||||
|
||||
@@ -2,7 +2,7 @@ import {
|
||||
Context,
|
||||
CreateOrderChangeActionDTO,
|
||||
OrderTypes,
|
||||
} from "@medusajs/types"
|
||||
} from "@medusajs/framework/types"
|
||||
import {
|
||||
ChangeActionType,
|
||||
OrderChangeType,
|
||||
@@ -11,7 +11,7 @@ import {
|
||||
isDefined,
|
||||
isString,
|
||||
promiseAll,
|
||||
} from "@medusajs/utils"
|
||||
} from "@medusajs/framework/utils"
|
||||
import { Return, ReturnItem } from "@models"
|
||||
|
||||
function createReturnReference(em, data, order) {
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import { Context, OrderTypes } from "@medusajs/types"
|
||||
import { Context, OrderTypes } from "@medusajs/framework/types"
|
||||
import {
|
||||
ChangeActionType,
|
||||
MathBN,
|
||||
OrderChangeType,
|
||||
ReturnStatus,
|
||||
promiseAll,
|
||||
} from "@medusajs/utils"
|
||||
} from "@medusajs/framework/utils"
|
||||
|
||||
function createReturnItems(data) {
|
||||
return data.items.map((item) => ({
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { Context, OrderTypes } from "@medusajs/types"
|
||||
import { ChangeActionType } from "@medusajs/utils"
|
||||
import { Context, OrderTypes } from "@medusajs/framework/types"
|
||||
import { ChangeActionType } from "@medusajs/framework/utils"
|
||||
|
||||
export async function registerDelivery(
|
||||
this: any,
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { Context, OrderTypes } from "@medusajs/types"
|
||||
import { ChangeActionType } from "@medusajs/utils"
|
||||
import { Context, OrderTypes } from "@medusajs/framework/types"
|
||||
import { ChangeActionType } from "@medusajs/framework/utils"
|
||||
|
||||
export async function registerFulfillment(
|
||||
this: any,
|
||||
|
||||
@@ -2,8 +2,8 @@ import {
|
||||
Context,
|
||||
CreateOrderChangeActionDTO,
|
||||
OrderTypes,
|
||||
} from "@medusajs/types"
|
||||
import { ChangeActionType } from "@medusajs/utils"
|
||||
} from "@medusajs/framework/types"
|
||||
import { ChangeActionType } from "@medusajs/framework/utils"
|
||||
|
||||
export async function registerShipment(
|
||||
this: any,
|
||||
|
||||
@@ -16,7 +16,7 @@ import {
|
||||
SoftDeleteReturn,
|
||||
UpdateOrderItemWithSelectorDTO,
|
||||
UpdateOrderReturnReasonDTO,
|
||||
} from "@medusajs/types"
|
||||
} from "@medusajs/framework/types"
|
||||
import {
|
||||
BigNumber,
|
||||
createRawPropertiesFromBigNumber,
|
||||
@@ -36,7 +36,7 @@ import {
|
||||
OrderStatus,
|
||||
promiseAll,
|
||||
transformPropertiesToBigNumber,
|
||||
} from "@medusajs/utils"
|
||||
} from "@medusajs/framework/utils"
|
||||
import {
|
||||
Order,
|
||||
OrderAddress,
|
||||
|
||||
@@ -4,13 +4,13 @@ import {
|
||||
FindConfig,
|
||||
OrderTypes,
|
||||
RepositoryService,
|
||||
} from "@medusajs/types"
|
||||
} from "@medusajs/framework/types"
|
||||
import {
|
||||
InjectManager,
|
||||
MedusaContext,
|
||||
MedusaError,
|
||||
ModulesSdkUtils,
|
||||
} from "@medusajs/utils"
|
||||
} from "@medusajs/framework/utils"
|
||||
import { Order } from "@models"
|
||||
|
||||
type InjectedDependencies = {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { OrderTypes } from "@medusajs/types"
|
||||
import { OrderTypes } from "@medusajs/framework/types"
|
||||
|
||||
export type UpsertOrderAddressDTO = OrderTypes.UpsertOrderAddressDTO
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { IEventBusModuleService, Logger } from "@medusajs/types"
|
||||
import { IEventBusModuleService, Logger } from "@medusajs/framework/types"
|
||||
|
||||
export * from "./address"
|
||||
export * from "./line-item"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { OrderTypes } from "@medusajs/types"
|
||||
import { OrderTypes } from "@medusajs/framework/types"
|
||||
|
||||
export type CreateOrderLineItemAdjustmentDTO =
|
||||
OrderTypes.CreateOrderLineItemAdjustmentDTO
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { BigNumberInput } from "@medusajs/types"
|
||||
import { BigNumberInput } from "@medusajs/framework/types"
|
||||
|
||||
interface PartialUpsertOrderLineItemDTO {
|
||||
subtitle?: string
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
import { OrderTypes } from "@medusajs/types"
|
||||
import { OrderTypes } from "@medusajs/framework/types"
|
||||
|
||||
export interface CreateOrderChangeDTO extends OrderTypes.CreateOrderChangeDTO {}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { BigNumberInput } from "@medusajs/types"
|
||||
import { BigNumberInput } from "@medusajs/framework/types"
|
||||
|
||||
export interface PartialUpsertOrderItemDTO {
|
||||
order_id?: string
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { OrderStatus } from "@medusajs/utils"
|
||||
import { OrderStatus } from "@medusajs/framework/utils"
|
||||
|
||||
export interface CreateOrderDTO {
|
||||
region_id?: string
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { UpdateOrderReturnReasonDTO } from "@medusajs/types"
|
||||
import { UpdateOrderReturnReasonDTO } from "@medusajs/framework/types"
|
||||
|
||||
export type UpdateReturnReasonDTO = UpdateOrderReturnReasonDTO & {
|
||||
id: string
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { OrderTypes } from "@medusajs/types"
|
||||
import { OrderTypes } from "@medusajs/framework/types"
|
||||
|
||||
export type CreateOrderShippingMethodAdjustmentDTO =
|
||||
OrderTypes.CreateOrderShippingMethodAdjustmentDTO
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { BigNumberInput } from "@medusajs/types"
|
||||
import { BigNumberInput } from "@medusajs/framework/types"
|
||||
|
||||
export interface CreateOrderShippingMethodDTO {
|
||||
name: string
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { OrderTypes } from "@medusajs/types"
|
||||
import { OrderTypes } from "@medusajs/framework/types"
|
||||
|
||||
export type CreateOrderTaxLineDTO = OrderTypes.CreateOrderTaxLineDTO
|
||||
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
import { OrderTypes } from "@medusajs/types"
|
||||
import { OrderTypes } from "@medusajs/framework/types"
|
||||
|
||||
export type OrderTransactionDTO = OrderTypes.OrderTransactionDTO
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { BigNumberInput } from "@medusajs/types"
|
||||
import { BigNumberInput } from "@medusajs/framework/types"
|
||||
|
||||
export type VirtualOrder = {
|
||||
id: string
|
||||
|
||||
@@ -1,4 +1,8 @@
|
||||
import { ChangeActionType, MathBN, MedusaError } from "@medusajs/utils"
|
||||
import {
|
||||
ChangeActionType,
|
||||
MathBN,
|
||||
MedusaError,
|
||||
} from "@medusajs/framework/utils"
|
||||
import { OrderChangeProcessing } from "../calculate-order-change"
|
||||
import { setActionReference } from "../set-action-reference"
|
||||
|
||||
|
||||
@@ -1,4 +1,8 @@
|
||||
import { ChangeActionType, MathBN, MedusaError } from "@medusajs/utils"
|
||||
import {
|
||||
ChangeActionType,
|
||||
MathBN,
|
||||
MedusaError,
|
||||
} from "@medusajs/framework/utils"
|
||||
import { OrderChangeProcessing } from "../calculate-order-change"
|
||||
import { setActionReference } from "../set-action-reference"
|
||||
|
||||
|
||||
@@ -1,4 +1,8 @@
|
||||
import { ChangeActionType, MathBN, MedusaError } from "@medusajs/utils"
|
||||
import {
|
||||
ChangeActionType,
|
||||
MathBN,
|
||||
MedusaError,
|
||||
} from "@medusajs/framework/utils"
|
||||
import { OrderChangeProcessing } from "../calculate-order-change"
|
||||
import { setActionReference } from "../set-action-reference"
|
||||
|
||||
|
||||
@@ -1,4 +1,8 @@
|
||||
import { ChangeActionType, MathBN, MedusaError } from "@medusajs/utils"
|
||||
import {
|
||||
ChangeActionType,
|
||||
MathBN,
|
||||
MedusaError,
|
||||
} from "@medusajs/framework/utils"
|
||||
import { OrderChangeProcessing } from "../calculate-order-change"
|
||||
import { setActionReference } from "../set-action-reference"
|
||||
|
||||
|
||||
@@ -1,4 +1,8 @@
|
||||
import { ChangeActionType, MathBN, MedusaError } from "@medusajs/utils"
|
||||
import {
|
||||
ChangeActionType,
|
||||
MathBN,
|
||||
MedusaError,
|
||||
} from "@medusajs/framework/utils"
|
||||
import { VirtualOrder } from "@types"
|
||||
import { OrderChangeProcessing } from "../calculate-order-change"
|
||||
import { setActionReference } from "../set-action-reference"
|
||||
|
||||
@@ -1,4 +1,8 @@
|
||||
import { ChangeActionType, MathBN, MedusaError } from "@medusajs/utils"
|
||||
import {
|
||||
ChangeActionType,
|
||||
MathBN,
|
||||
MedusaError,
|
||||
} from "@medusajs/framework/utils"
|
||||
import { OrderChangeProcessing } from "../calculate-order-change"
|
||||
import { setActionReference } from "../set-action-reference"
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ import {
|
||||
ChangeActionType,
|
||||
MathBN,
|
||||
MedusaError,
|
||||
} from "@medusajs/utils"
|
||||
} from "@medusajs/framework/utils"
|
||||
import { OrderChangeProcessing } from "../calculate-order-change"
|
||||
import { setActionReference } from "../set-action-reference"
|
||||
|
||||
|
||||
@@ -1,4 +1,8 @@
|
||||
import { ChangeActionType, MathBN, MedusaError } from "@medusajs/utils"
|
||||
import {
|
||||
ChangeActionType,
|
||||
MathBN,
|
||||
MedusaError,
|
||||
} from "@medusajs/framework/utils"
|
||||
import { OrderChangeProcessing } from "../calculate-order-change"
|
||||
import { setActionReference } from "../set-action-reference"
|
||||
|
||||
|
||||
@@ -1,4 +1,8 @@
|
||||
import { ChangeActionType, MathBN, MedusaError } from "@medusajs/utils"
|
||||
import {
|
||||
ChangeActionType,
|
||||
MathBN,
|
||||
MedusaError,
|
||||
} from "@medusajs/framework/utils"
|
||||
import { OrderChangeProcessing } from "../calculate-order-change"
|
||||
import { setActionReference } from "../set-action-reference"
|
||||
|
||||
|
||||
@@ -1,4 +1,8 @@
|
||||
import { ChangeActionType, MathBN, MedusaError } from "@medusajs/utils"
|
||||
import {
|
||||
ChangeActionType,
|
||||
MathBN,
|
||||
MedusaError,
|
||||
} from "@medusajs/framework/utils"
|
||||
import { OrderChangeProcessing } from "../calculate-order-change"
|
||||
import { setActionReference } from "../set-action-reference"
|
||||
|
||||
|
||||
@@ -1,4 +1,8 @@
|
||||
import { ChangeActionType, MathBN, MedusaError } from "@medusajs/utils"
|
||||
import {
|
||||
ChangeActionType,
|
||||
MathBN,
|
||||
MedusaError,
|
||||
} from "@medusajs/framework/utils"
|
||||
import { OrderChangeProcessing } from "../calculate-order-change"
|
||||
import { setActionReference } from "../set-action-reference"
|
||||
|
||||
|
||||
@@ -1,4 +1,8 @@
|
||||
import { ChangeActionType, MathBN, MedusaError } from "@medusajs/utils"
|
||||
import {
|
||||
ChangeActionType,
|
||||
MathBN,
|
||||
MedusaError,
|
||||
} from "@medusajs/framework/utils"
|
||||
import { OrderChangeProcessing } from "../calculate-order-change"
|
||||
import { setActionReference } from "../set-action-reference"
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { ChangeActionType, MedusaError } from "@medusajs/utils"
|
||||
import { ChangeActionType, MedusaError } from "@medusajs/framework/utils"
|
||||
import { OrderChangeProcessing } from "../calculate-order-change"
|
||||
import { setActionReference } from "../set-action-reference"
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { ChangeActionType, MedusaError } from "@medusajs/utils"
|
||||
import { ChangeActionType, MedusaError } from "@medusajs/framework/utils"
|
||||
import { OrderChangeProcessing } from "../calculate-order-change"
|
||||
|
||||
OrderChangeProcessing.registerActionType(ChangeActionType.SHIPPING_REMOVE, {
|
||||
|
||||
@@ -1,4 +1,8 @@
|
||||
import { ChangeActionType, MathBN, MedusaError } from "@medusajs/utils"
|
||||
import {
|
||||
ChangeActionType,
|
||||
MathBN,
|
||||
MedusaError,
|
||||
} from "@medusajs/framework/utils"
|
||||
import { OrderChangeProcessing } from "../calculate-order-change"
|
||||
import { setActionReference } from "../set-action-reference"
|
||||
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
import { OrderChangeActionDTO } from "@medusajs/types"
|
||||
import { OrderChangeActionDTO } from "@medusajs/framework/types"
|
||||
import {
|
||||
ChangeActionType,
|
||||
MathBN,
|
||||
createRawPropertiesFromBigNumber,
|
||||
isDefined,
|
||||
} from "@medusajs/utils"
|
||||
} from "@medusajs/framework/utils"
|
||||
import { OrderItem, OrderShippingMethod } from "@models"
|
||||
import { calculateOrderChange } from "./calculate-order-change"
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Constructor, Context, DAL } from "@medusajs/types"
|
||||
import { Constructor, Context, DAL } from "@medusajs/framework/types"
|
||||
import { LoadStrategy } from "@mikro-orm/core"
|
||||
import { Order, OrderClaim } from "@models"
|
||||
import { mapRepositoryToOrderModel } from "."
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
import { BigNumberInput, OrderSummaryDTO } from "@medusajs/types"
|
||||
import { BigNumberInput, OrderSummaryDTO } from "@medusajs/framework/types"
|
||||
import {
|
||||
BigNumber,
|
||||
MathBN,
|
||||
isPresent,
|
||||
transformPropertiesToBigNumber,
|
||||
} from "@medusajs/utils"
|
||||
} from "@medusajs/framework/utils"
|
||||
import {
|
||||
ActionTypeDefinition,
|
||||
EVENT_STATUS,
|
||||
|
||||
@@ -4,7 +4,7 @@ import {
|
||||
deduplicate,
|
||||
isDefined,
|
||||
isObject,
|
||||
} from "@medusajs/utils"
|
||||
} from "@medusajs/framework/utils"
|
||||
|
||||
// Reshape the order object to match the OrderDTO
|
||||
// This function is used to format the order object before returning to the main module methods
|
||||
|
||||
Reference in New Issue
Block a user