fix(js-sdk, types): fixes types and deprecate duplicate methods (#11975)
This commit is contained in:
6
.changeset/gorgeous-wombats-arrive.md
Normal file
6
.changeset/gorgeous-wombats-arrive.md
Normal file
@@ -0,0 +1,6 @@
|
||||
---
|
||||
"@medusajs/js-sdk": patch
|
||||
"@medusajs/types": patch
|
||||
---
|
||||
|
||||
fix(js-sdk, types): fixes types and deprecate duplicate methods
|
||||
@@ -397,7 +397,7 @@ export class Return {
|
||||
async updateReturnShipping(
|
||||
id: string,
|
||||
actionId: string,
|
||||
body: HttpTypes.AdminAddReturnShipping,
|
||||
body: HttpTypes.AdminUpdateReturnShipping,
|
||||
query?: HttpTypes.SelectParams,
|
||||
headers?: ClientHeaders
|
||||
) {
|
||||
|
||||
@@ -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>(
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user