fix(js-sdk, types): fixes types and deprecate duplicate methods (#11975)

This commit is contained in:
Shahed Nasser
2025-03-25 17:37:30 +02:00
committed by GitHub
parent 80e320e094
commit 0cc306bf56
4 changed files with 11 additions and 3 deletions

View File

@@ -0,0 +1,6 @@
---
"@medusajs/js-sdk": patch
"@medusajs/types": patch
---
fix(js-sdk, types): fixes types and deprecate duplicate methods

View File

@@ -397,7 +397,7 @@ export class Return {
async updateReturnShipping(
id: string,
actionId: string,
body: HttpTypes.AdminAddReturnShipping,
body: HttpTypes.AdminUpdateReturnShipping,
query?: HttpTypes.SelectParams,
headers?: ClientHeaders
) {

View File

@@ -239,6 +239,8 @@ export class SalesChannel {
* .then(({ sales_channel }) => {
* console.log(sales_channel)
* })
*
* @deprecated Use {@link batchProducts} instead
*/
async updateProducts(
id: string,
@@ -276,7 +278,7 @@ export class SalesChannel {
*/
async batchProducts(
id: string,
body: HttpTypes.AdminBatchLink,
body: HttpTypes.AdminUpdateSalesChannelProducts,
headers?: ClientHeaders
) {
return await this.client.fetch<HttpTypes.AdminSalesChannelResponse>(

View File

@@ -26,7 +26,7 @@ export type TransactionStepState =
| "skipped_failure"
| "timeout"
interface AdminWorkflowExecutionExecution {
export interface AdminWorkflowExecutionExecution {
/**
* The details of the workflow execution's steps.
* The key is the step's ID, and the value is the step's details.