feat: Admin Shipping Profiles API (#7019)

This commit is contained in:
Oli Juhl
2024-04-09 11:03:37 +02:00
committed by GitHub
parent fbc2959b37
commit dbddfc12ed
21 changed files with 520 additions and 400 deletions
@@ -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
}