@commercetools/sync-actions
Version:
Build API update actions for the commercetools platform.
26 lines (25 loc) • 1.6 kB
TypeScript
import { Customer, Delta, SyncActionConfig, UpdateAction } from '../utils/types';
export declare const baseActionsList: Array<UpdateAction>;
export declare const setDefaultBaseActionsList: Array<UpdateAction>;
export declare const referenceActionsList: Array<UpdateAction>;
export declare const authenticationModeActionsList: Array<UpdateAction>;
/**
* SYNC FUNCTIONS
*/
export declare function actionsMapBase<T extends Customer>(diff: Delta, oldObj: T, newObj: T, config?: SyncActionConfig): {
[x: string]: any;
action: string;
}[];
export declare function actionsMapSetDefaultBase<T extends Customer>(diff: Delta, oldObj: T, newObj: T, config?: SyncActionConfig): {
[x: string]: any;
action: string;
}[];
export declare function actionsMapReferences<T extends Customer>(diff: Delta, oldObj: T, newObj: T): {
action: string;
}[];
export declare function actionsMapAddresses<T extends Customer>(diff: Delta, oldObj: T, newObj: T): UpdateAction[];
export declare function actionsMapAddBillingAddresses<T extends Customer>(diff: Delta, oldObj: T, newObj: T): UpdateAction[];
export declare function actionsMapRemoveBillingAddresses<T extends Customer>(diff: Delta, oldObj: T, newObj: T): UpdateAction[];
export declare function actionsMapAddShippingAddresses<T extends Customer>(diff: Delta, oldObj: T, newObj: T): UpdateAction[];
export declare function actionsMapRemoveShippingAddresses<T extends Customer>(diff: Delta, oldObj: T, newObj: T): UpdateAction[];
export declare function actionsMapAuthenticationModes<T extends Customer>(diff: Delta, oldObj: T, newObj: T): any;