feat: Add batch method to collection and clean up some batch implementations (#7102)
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
export type LinkMethodRequest = {
|
||||
add?: string[]
|
||||
remove?: string[]
|
||||
}
|
||||
|
||||
export type BatchMethodRequest<TCreate extends any, TUpdate extends any> = {
|
||||
create?: TCreate[]
|
||||
update?: TUpdate[]
|
||||
|
||||
@@ -1 +1,2 @@
|
||||
export * from "./stock-locations"
|
||||
export * from "./products"
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
export * from "./mutations"
|
||||
@@ -0,0 +1,5 @@
|
||||
import { LinkMethodRequest } from "../../common"
|
||||
|
||||
export interface BatchLinkProductsToCollectionDTO extends LinkMethodRequest {
|
||||
id: string
|
||||
}
|
||||
Reference in New Issue
Block a user