feat: Add batch method to collection and clean up some batch implementations (#7102)

This commit is contained in:
Stevche Radevski
2024-04-22 08:36:22 +00:00
committed by GitHub
parent 0f5b015df0
commit 89143e1032
26 changed files with 425 additions and 123 deletions
+5
View File
@@ -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
View File
@@ -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
}