lml-main
Version:
This is now a mono repository published into many standalone packages.
24 lines (23 loc) • 803 B
TypeScript
export declare const SET_SMART_MATCHES = "SET_SMART_MATCHES";
export declare const SET_SMART_MATCHES_BATCH = "SET_SMART_MATCHES_BATCH";
export interface SetSmartMatchesAction {
type: 'SET_SMART_MATCHES';
refId: string;
scrMatches: string[];
}
export interface SetSmartMatchesBatchAction {
type: 'SET_SMART_MATCHES_BATCH';
scrMatches: {
[refId: string]: string[];
};
}
export declare type JobSmartMatchesAction = SetSmartMatchesAction | SetSmartMatchesBatchAction;
export declare const setSmartMatches: (refId: string, scrMatches: string[]) => SetSmartMatchesAction;
/**
* Set a map of job id to smart matches in the state
*
* @param matches
*/
export declare const setSmartMatchesBatch: (scrMatches: {
[refId: string]: string[];
}) => SetSmartMatchesBatchAction;