chore: use framework sub paths everywhere (#9253)

This commit is contained in:
Adrien de Peretti
2024-09-26 16:38:38 +05:30
committed by GitHub
parent 48bea267dc
commit a8e19faf8d
417 changed files with 870 additions and 934 deletions
@@ -5,7 +5,7 @@ import {
} from "../../../../../types/routing"
import { StoreCreatePaymentSessionType } from "../../validators"
import { refetchPaymentCollection } from "../../helpers"
import { HttpTypes } from "@medusajs/types"
import { HttpTypes } from "@medusajs/framework/types"
export const POST = async (
req: AuthenticatedMedusaRequest<StoreCreatePaymentSessionType>,
@@ -1,4 +1,7 @@
import { MedusaContainer, PaymentCollectionDTO } from "@medusajs/types"
import {
MedusaContainer,
PaymentCollectionDTO,
} from "@medusajs/framework/types"
import { refetchEntity } from "../../utils/refetch-entity"
export const refetchPaymentCollection = async (
@@ -1,4 +1,4 @@
import { MiddlewareRoute } from "@medusajs/framework"
import { MiddlewareRoute } from "@medusajs/framework/http"
import { validateAndTransformBody } from "../../utils/validate-body"
import { validateAndTransformQuery } from "../../utils/validate-query"
import * as queryConfig from "./query-config"
@@ -2,12 +2,12 @@ import { createPaymentCollectionForCartWorkflow } from "@medusajs/core-flows"
import {
ContainerRegistrationKeys,
remoteQueryObjectFromString,
} from "@medusajs/utils"
} from "@medusajs/framework/utils"
import {
AuthenticatedMedusaRequest,
MedusaResponse,
} from "../../../types/routing"
import { HttpTypes } from "@medusajs/types"
import { HttpTypes } from "@medusajs/framework/types"
export const POST = async (
req: AuthenticatedMedusaRequest<HttpTypes.StoreCreatePaymentCollection>,