UNPKG

lml-main

Version:

This is now a mono repository published into many standalone packages.

34 lines (33 loc) 876 B
import { JobDelayModel } from '@lml/cosmo-ts-data'; export declare const SET_JOB_DELAY = "SET_JOB_DELAY"; export declare const SET_JOB_DELAY_BATCH = "SET_JOB_DELAY_BATCH"; /** * Set a single job's delays */ export interface SetJobDelayAction { type: 'SET_JOB_DELAY'; refId: string; delay: JobDelayModel; } /** * Set multiple delays simultaneously */ export interface SetJobDelayBatchAction { type: 'SET_JOB_DELAY_BATCH'; values: { [refId: string]: JobDelayModel; }; } export declare type JobDelayAction = SetJobDelayAction | SetJobDelayBatchAction; /** * @param refId * @param delay */ export declare const setJobDelay: (refId: string, delay: JobDelayModel) => SetJobDelayAction; /** * @param refId * @param values */ export declare const setJobDelayBatch: (values: { [refId: string]: JobDelayModel; }) => SetJobDelayBatchAction;