UNPKG

@commercetools/sync-actions

Version:

Build API update actions for the commercetools platform.

11 lines (10 loc) 452 B
import { AttributeGroup, Delta, SyncActionConfig, UpdateAction } from '../utils/types'; export declare const baseActionsList: { action: string; key: string; }[]; export declare function actionsMapBase<T>(diff: Delta, oldObj: T, newObj: T, config?: SyncActionConfig): { [x: string]: any; action: string; }[]; export declare function actionsMapAttributes<T extends AttributeGroup>(diff: Delta, oldObj: T, newObj: T): Array<UpdateAction>;