feat: Add create location fulfillment set flow + API (#6945)

This commit is contained in:
Oli Juhl authored and GitHub committed 2024-04-05 19:27:38 +02:00
1 parent 01487970b2
commit 626aa09497
18 files changed
+291 -10

No files matched your search

+1
View File
@@ -1 +1,2 @@
export * from "./stock-locations"
export * from "./fulfillment"
@@ -0,0 +1,30 @@
import { AdminFulfillmentSetResponse } from "../fulfillment"
export type AdminStockLocationAddressResponse = {
id?: string
address_1: string
address_2?: string | null
company?: string | null
country_code: string
city?: string | null
phone?: string | null
postal_code?: string | null
province?: string | null
metadata?: Record<string, unknown> | null
created_at: string | Date
updated_at: string | Date
deleted_at: string | Date | null
}
export interface AdminStockLocationResponse {
id: string
name: string
metadata: Record<string, unknown> | null
address_id: string
address?: AdminStockLocationAddressResponse
created_at: string | Date
updated_at: string | Date
deleted_at: string | Date | null
fulfillment_sets?: AdminFulfillmentSetResponse[]
}
@@ -0,0 +1 @@
export * from "./common"
+4 -3
View File
@@ -5,12 +5,15 @@ export * from "./bundles"
export * from "./cache"
export * from "./cart"
export * from "./common"
export * from "./currency"
export * from "./customer"
export * from "./dal"
export * from "./event-bus"
export * from "./feature-flag"
export * from "./file"
export * from "./file-service"
export * from "./fulfillment"
export * from "./http"
export * from "./inventory"
export * from "./joiner"
export * from "./link-modules"
@@ -34,6 +37,4 @@ export * from "./totals"
export * from "./transaction-base"
export * from "./user"
export * from "./workflow"
export * from "./currency"
export * from "./http"
export * from "./file"
export * from "./workflows"
+1
View File
@@ -0,0 +1 @@
export * from "./stock-locations"
@@ -0,0 +1 @@
export * from "./mutations"
@@ -0,0 +1,7 @@
export interface CreateLocationFulfillmentSetWorkflowInputDTO {
location_id: string
fulfillment_set_data: {
name: string
type: string
}
}