chore: Update modules deps (#9286)
This commit is contained in:
committed by
GitHub
parent
11d8264062
commit
e096feb7d5
@@ -1,5 +1,5 @@
|
||||
import { IndexModuleService } from "@services"
|
||||
import { Module, Modules } from "@medusajs/utils"
|
||||
import { Module, Modules } from "@medusajs/framework/utils"
|
||||
import containerLoader from "./loaders/index"
|
||||
|
||||
export default Module(Modules.INDEX, {
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import { asClass, asValue } from "awilix"
|
||||
import { PostgresProvider } from "../services/postgres-provider"
|
||||
import { MikroOrmBaseRepository as BaseRepository } from "@medusajs/utils"
|
||||
import { MikroOrmBaseRepository as BaseRepository } from "@medusajs/framework/utils"
|
||||
import { IndexModuleService } from "@services"
|
||||
import { LoaderOptions } from "@medusajs/types"
|
||||
import { LoaderOptions } from "@medusajs/framework/types"
|
||||
|
||||
export default async ({ container, options }: LoaderOptions): Promise<void> => {
|
||||
container.register({
|
||||
|
||||
@@ -4,12 +4,12 @@ import {
|
||||
IndexTypes,
|
||||
InternalModuleDeclaration,
|
||||
RemoteQueryFunction,
|
||||
} from "@medusajs/types"
|
||||
} from "@medusajs/framework/types"
|
||||
import {
|
||||
ContainerRegistrationKeys,
|
||||
MikroOrmBaseRepository as BaseRepository,
|
||||
Modules,
|
||||
} from "@medusajs/utils"
|
||||
} from "@medusajs/framework/utils"
|
||||
import { schemaObjectRepresentationPropertiesToOmit } from "@types"
|
||||
import { buildSchemaObjectRepresentation } from "../utils/build-config"
|
||||
import { defaultSchema } from "../utils/default-schema"
|
||||
|
||||
@@ -4,7 +4,7 @@ import {
|
||||
IndexTypes,
|
||||
RemoteQueryFunction,
|
||||
Subscriber,
|
||||
} from "@medusajs/types"
|
||||
} from "@medusajs/framework/types"
|
||||
import {
|
||||
ContainerRegistrationKeys,
|
||||
InjectManager,
|
||||
@@ -12,7 +12,7 @@ import {
|
||||
isDefined,
|
||||
MedusaContext,
|
||||
MikroOrmBaseRepository as BaseRepository,
|
||||
} from "@medusajs/utils"
|
||||
} from "@medusajs/framework/utils"
|
||||
import { EntityManager, SqlEntityManager } from "@mikro-orm/postgresql"
|
||||
import { IndexData, IndexRelation } from "@models"
|
||||
import { createPartitions, QueryBuilder } from "../utils"
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
import { makeExecutableSchema } from "@graphql-tools/schema"
|
||||
import { MedusaModule } from "@medusajs/modules-sdk"
|
||||
import { MedusaModule } from "@medusajs/framework/modules-sdk"
|
||||
import {
|
||||
IndexTypes,
|
||||
JoinerServiceConfigAlias,
|
||||
ModuleJoinerConfig,
|
||||
ModuleJoinerRelationship,
|
||||
} from "@medusajs/types"
|
||||
import { CommonEvents, GraphQLUtils } from "@medusajs/utils"
|
||||
} from "@medusajs/framework/types"
|
||||
import { CommonEvents, GraphQLUtils } from "@medusajs/framework/utils"
|
||||
import { schemaObjectRepresentationPropertiesToOmit } from "@types"
|
||||
|
||||
export const CustomDirectives = {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { SqlEntityManager } from "@mikro-orm/postgresql"
|
||||
import { schemaObjectRepresentationPropertiesToOmit } from "@types"
|
||||
import { IndexTypes } from "@medusajs/types"
|
||||
import { IndexTypes } from "@medusajs/framework/types"
|
||||
|
||||
export async function createPartitions(
|
||||
schemaObjectRepresentation: IndexTypes.SchemaObjectRepresentation,
|
||||
|
||||
@@ -1,9 +1,10 @@
|
||||
import { join } from "path"
|
||||
import { CustomDirectives, makeSchemaExecutable } from "./build-config"
|
||||
import { MedusaModule } from "@medusajs/framework/modules-sdk"
|
||||
import {
|
||||
MedusaModule,
|
||||
} from "@medusajs/modules-sdk"
|
||||
import { FileSystem, gqlSchemaToTypes as ModulesSdkGqlSchemaToTypes, } from "@medusajs/utils"
|
||||
FileSystem,
|
||||
gqlSchemaToTypes as ModulesSdkGqlSchemaToTypes,
|
||||
} from "@medusajs/framework/utils"
|
||||
import * as process from "process"
|
||||
|
||||
export async function gqlSchemaToTypes(schema: string) {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { objectFromStringPath } from "@medusajs/utils"
|
||||
import { objectFromStringPath } from "@medusajs/framework/utils"
|
||||
|
||||
export function normalizeFieldsSelection(fields: string[]) {
|
||||
const normalizedFields = fields.map((field) => field.replace(/\.\*/g, ""))
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { isObject, isString } from "@medusajs/utils"
|
||||
import { IndexTypes } from "@medusajs/types"
|
||||
import { isObject, isString } from "@medusajs/framework/utils"
|
||||
import { IndexTypes } from "@medusajs/framework/types"
|
||||
import { GraphQLList } from "graphql"
|
||||
import { Knex } from "knex"
|
||||
import { OrderBy, QueryFormat, QueryOptions, Select } from "@types"
|
||||
|
||||
Reference in New Issue
Block a user