chore: add version and deprecated tags to import routes and methods (#12829)

This commit is contained in:
Shahed Nasser
2025-06-26 09:54:50 +03:00
committed by GitHub
parent e3a7af4331
commit 94920c3f6d
3 changed files with 8 additions and 0 deletions

View File

@@ -172,6 +172,8 @@ export class Product {
* [Confirm Product Import](https://docs.medusajs.com/api/admin#products_postproductsimporttransaction_idconfirm)
* API route.
*
* @version 2.8.5
*
* @param transactionId - The ID of the transaction of the created product import. This is returned
* by the API route used to create the product import.
* @param query - Query parameters to pass in the request.

View File

@@ -11,6 +11,9 @@ import { IWorkflowEngineService } from "@medusajs/framework/types"
import { Modules, TransactionHandlerType } from "@medusajs/framework/utils"
import { StepResponse } from "@medusajs/framework/workflows-sdk"
/**
* @deprecated use `POST /admin/products/imports/:transaction_id/confirm` instead.
*/
export const POST = async (
req: AuthenticatedMedusaRequest,
res: MedusaResponse

View File

@@ -6,6 +6,9 @@ import { HttpTypes } from "@medusajs/framework/types"
import { MedusaError } from "@medusajs/framework/utils"
import { importProductsWorkflow } from "@medusajs/core-flows"
/**
* @deprecated use `POST /admin/products/imports` instead.
*/
export const POST = async (
req: AuthenticatedMedusaRequest<HttpTypes.AdminImportProductRequest>,
res: MedusaResponse<HttpTypes.AdminImportProductResponse>