feat: Admin Shipping Profiles API (#7019)
This commit is contained in:
@@ -1,7 +1,9 @@
|
||||
import { PaginatedResponse } from "../../../common"
|
||||
|
||||
/**
|
||||
* @experimental
|
||||
*/
|
||||
export interface AdminShippingProfileResponse {
|
||||
export interface ShippingProfileResponse {
|
||||
id: string
|
||||
name: string
|
||||
type: string
|
||||
@@ -10,3 +12,11 @@ export interface AdminShippingProfileResponse {
|
||||
updated_at: Date
|
||||
deleted_at: Date | null
|
||||
}
|
||||
|
||||
export interface AdminShippingProfileResponse {
|
||||
shipping_profile: ShippingProfileResponse
|
||||
}
|
||||
|
||||
export interface AdminShippingProfilesResponse extends PaginatedResponse {
|
||||
shipping_profiles: ShippingProfileResponse[]
|
||||
}
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
export * from "./create-shipping-options"
|
||||
export * from "./update-shipping-options"
|
||||
export * from "./service-zones"
|
||||
export * from "./shipping-profiles"
|
||||
export * from "./update-shipping-options"
|
||||
|
||||
@@ -0,0 +1,20 @@
|
||||
import { FilterableShippingProfileProps } from "../../fulfillment"
|
||||
|
||||
interface CreateShippingProfile {
|
||||
name: string
|
||||
type: string
|
||||
}
|
||||
|
||||
export interface CreateShippingProfilesWorkflowInput {
|
||||
data: CreateShippingProfile[]
|
||||
}
|
||||
|
||||
interface UpdateShippingProfile {
|
||||
name?: string
|
||||
type?: string
|
||||
}
|
||||
|
||||
export interface UpdateShippingProfilesWorkflowInput {
|
||||
selector: FilterableShippingProfileProps
|
||||
update: UpdateShippingProfile
|
||||
}
|
||||
Reference in New Issue
Block a user