This change modifies the validation/planning phase to skip the expensive thumbnail generation step in 'getUnifiedMediaState'. Since the planning phase primarily needs file IDs and names to calculate deletions, adoptions, and reorders, skipping the thumbnail verification/retrieval (including sidecar checks) significantly reduces the latency of the 'Save Changes' operation.
11 lines
427 B
TypeScript
11 lines
427 B
TypeScript
export interface IShopifyMediaService {
|
|
stagedUploadsCreate(input: any[]): any
|
|
productCreateMedia(productId: string, media: any[]): any
|
|
getProductMedia(productId: string): any[]
|
|
productDeleteMedia(productId: string, mediaId: string): any
|
|
productReorderMedia(productId: string, moves: any[]): any
|
|
getProduct(productId: string): any
|
|
getProductWithMedia(productId: string): any
|
|
getShopDomain(): string
|
|
}
|