chore: add version and deprecated tags to import routes and methods (#12829)
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user