feat(dashboard,icons,types,js-sdk): add providers to location UI (#8328)
This commit is contained in:
1 parent
b539c6d5bb
commit
c976361f22
22 files changed
+616
-103
No files matched your search
@@ -105,4 +105,19 @@ export class StockLocation {
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
async updateFulfillmentProviders(
|
||||
id: string,
|
||||
body: HttpTypes.AdminBatchLink,
|
||||
headers?: ClientHeaders
|
||||
) {
|
||||
return await this.client.fetch<HttpTypes.AdminStockLocationResponse>(
|
||||
`/admin/stock-locations/${id}/fulfillment-providers`,
|
||||
{
|
||||
method: "POST",
|
||||
headers,
|
||||
body,
|
||||
}
|
||||
)
|
||||
}
|
||||
}
|
||||
@@ -7,3 +7,8 @@ export interface FindParams extends SelectParams {
|
||||
offset?: number
|
||||
order?: string
|
||||
}
|
||||
|
||||
export interface AdminBatchLink {
|
||||
add?: string[]
|
||||
remove?: string[]
|
||||
}
|
||||
@@ -4,4 +4,5 @@ export interface AdminFulfillmentProviderListParams extends FindParams {
|
||||
id?: string | string[]
|
||||
q?: string
|
||||
is_enabled?: boolean
|
||||
stock_location_id?: string | string[]
|
||||
}
|
||||
@@ -1,3 +1,4 @@
|
||||
import { AdminFulfillmentProvider } from "../../fulfillment-provider"
|
||||
import { AdminFulfillmentSet } from "../../fulfillment-set"
|
||||
import { AdminSalesChannel } from "../../sales-channel"
|
||||
|
||||
@@ -19,5 +20,6 @@ export interface AdminStockLocation {
|
||||
address_id: string
|
||||
address?: AdminStockLocationAddress
|
||||
sales_channels?: AdminSalesChannel[]
|
||||
fulfillment_providers?: AdminFulfillmentProvider[]
|
||||
fulfillment_sets?: AdminFulfillmentSet[]
|
||||
}
|
||||
Reference in new issue
Block a user