chore: add version and deprecated tags to import routes and methods (#12829)
This commit is contained in:
1 parent
e3a7af4331
commit
94920c3f6d
3 files changed
+8
No files matched your search
@@ -172,6 +172,8 @@ export class Product {
|
|||||||
* [Confirm Product Import](https://docs.medusajs.com/api/admin#products_postproductsimporttransaction_idconfirm)
|
* [Confirm Product Import](https://docs.medusajs.com/api/admin#products_postproductsimporttransaction_idconfirm)
|
||||||
* API route.
|
* API route.
|
||||||
*
|
*
|
||||||
|
* @version 2.8.5
|
||||||
|
*
|
||||||
* @param transactionId - The ID of the transaction of the created product import. This is returned
|
* @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.
|
* by the API route used to create the product import.
|
||||||
* @param query - Query parameters to pass in the request.
|
* @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 { Modules, TransactionHandlerType } from "@medusajs/framework/utils"
|
||||||
import { StepResponse } from "@medusajs/framework/workflows-sdk"
|
import { StepResponse } from "@medusajs/framework/workflows-sdk"
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @deprecated use `POST /admin/products/imports/:transaction_id/confirm` instead.
|
||||||
|
*/
|
||||||
export const POST = async (
|
export const POST = async (
|
||||||
req: AuthenticatedMedusaRequest,
|
req: AuthenticatedMedusaRequest,
|
||||||
res: MedusaResponse
|
res: MedusaResponse
|
||||||
|
|||||||
@@ -6,6 +6,9 @@ import { HttpTypes } from "@medusajs/framework/types"
|
|||||||
import { MedusaError } from "@medusajs/framework/utils"
|
import { MedusaError } from "@medusajs/framework/utils"
|
||||||
import { importProductsWorkflow } from "@medusajs/core-flows"
|
import { importProductsWorkflow } from "@medusajs/core-flows"
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @deprecated use `POST /admin/products/imports` instead.
|
||||||
|
*/
|
||||||
export const POST = async (
|
export const POST = async (
|
||||||
req: AuthenticatedMedusaRequest<HttpTypes.AdminImportProductRequest>,
|
req: AuthenticatedMedusaRequest<HttpTypes.AdminImportProductRequest>,
|
||||||
res: MedusaResponse<HttpTypes.AdminImportProductResponse>
|
res: MedusaResponse<HttpTypes.AdminImportProductResponse>
|
||||||
|
|||||||
Reference in new issue
Block a user