feat: delete shipping options (#6993)
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
/**
|
||||
* The fields returned in the response of a DELETE request.
|
||||
*/
|
||||
export type DeleteResponse = {
|
||||
/**
|
||||
* The ID of the item that was deleted.
|
||||
*/
|
||||
id: string
|
||||
|
||||
/**
|
||||
* The type of the item that was deleted.
|
||||
*/
|
||||
object: string
|
||||
|
||||
/**
|
||||
* Whether the item was deleted successfully.
|
||||
*/
|
||||
deleted: boolean
|
||||
}
|
||||
@@ -1 +1,2 @@
|
||||
export * from "./paginated-response"
|
||||
export * from "./deleted-response"
|
||||
|
||||
@@ -5,6 +5,7 @@ import { AdminShippingOptionRuleResponse } from "./shipping-option-rule"
|
||||
import { AdminShippingProfileResponse } from "./shipping-profile"
|
||||
import { AdminFulfillmentProviderResponse } from "./fulfillment-provider"
|
||||
import { AdminPriceSetPriceResponse } from "../../pricing"
|
||||
import { DeleteResponse, PaginatedResponse } from "../../common"
|
||||
|
||||
/**
|
||||
* @experimental
|
||||
@@ -34,5 +35,17 @@ interface AdminShippingOptionResponse {
|
||||
* @experimental
|
||||
*/
|
||||
export interface AdminShippingOptionRetrieveResponse {
|
||||
shipping_option: AdminShippingOptionResponse[]
|
||||
shipping_option: AdminShippingOptionResponse
|
||||
}
|
||||
|
||||
/**
|
||||
* @experimental
|
||||
*/
|
||||
export interface AdminShippingOptionListResponse extends PaginatedResponse {
|
||||
shipping_options: AdminShippingOptionResponse[]
|
||||
}
|
||||
|
||||
/**
|
||||
* @experimental
|
||||
*/
|
||||
export interface AdminShippingOptionDeleteResponse extends DeleteResponse {}
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
export interface DeleteShippingOptionsWorkflowInput {
|
||||
ids: string[]
|
||||
}
|
||||
@@ -1,4 +1,5 @@
|
||||
export * from "./create-shipping-options"
|
||||
export * from "./service-zones"
|
||||
export * from "./delete-shipping-options"
|
||||
export * from "./shipping-profiles"
|
||||
export * from "./update-shipping-options"
|
||||
|
||||
Reference in New Issue
Block a user