feat(admin-next, inventory-next, medusa, types): Add admin reservations flow (#7080)
* add reservation endpoints * add changeset * initial * add reservations table * add edit-item modal * udpate inventory item attributes * manage locations skeleton * add combi batch endpoint * cleanup * fix manage locations * add adjust inventory * prep for pr * minor fixes to region domain and api (#7042) * initial reservation * init * update reservation * create reservation * polishing * minor fix * prep for pr * prep for pr * polishing * inventory items reservations * Update packages/admin-next/dashboard/src/v2-routes/reservations/reservation-list/components/reservation-list-table/reservation-list-table.tsx Co-authored-by: Frane Polić <16856471+fPolic@users.noreply.github.com> * fix feedback * rename to ispending --------- Co-authored-by: Kasper Fabricius Kristensen <45367945+kasperkristensen@users.noreply.github.com> Co-authored-by: Frane Polić <16856471+fPolic@users.noreply.github.com>
This commit is contained in:
co-authored by
Frane Polić
Kasper Fabricius Kristensen
parent
347aece924
commit
e4898fb00d
@@ -10,3 +10,5 @@ export * from "./promotion"
|
||||
export * from "./sales-channel"
|
||||
export * from "./stock-locations"
|
||||
export * from "./tax"
|
||||
export * from "./product-category"
|
||||
export * from "./reservation"
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
export * from "./reservation"
|
||||
@@ -0,0 +1,34 @@
|
||||
import { PaginatedResponse } from "../../../common"
|
||||
|
||||
/**
|
||||
* @experimental
|
||||
*/
|
||||
interface ReservationResponse {
|
||||
id: string
|
||||
line_item_id: string | null
|
||||
location_id: string
|
||||
quantity: string
|
||||
external_id: string | null
|
||||
description: string | null
|
||||
inventory_item_id: string
|
||||
inventory_item: Record<string, unknown> // TODO: add InventoryItemResponse
|
||||
metadata?: Record<string, unknown>
|
||||
created_by?: string | null
|
||||
deleted_at?: Date | string | null
|
||||
created_at?: Date | string
|
||||
updated_at?: Date | string
|
||||
}
|
||||
|
||||
/**
|
||||
* @experimental
|
||||
*/
|
||||
export interface AdminReservationResponse {
|
||||
reservation: ReservationResponse
|
||||
}
|
||||
|
||||
/**
|
||||
* @experimental
|
||||
*/
|
||||
export interface AdminReservationListResponse extends PaginatedResponse {
|
||||
reservations: ReservationResponse[]
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
export * from "./admin"
|
||||
Reference in New Issue
Block a user