lml-main
Version:
This is now a mono repository published into many standalone packages.
50 lines (49 loc) • 2.29 kB
TypeScript
import { Dispatch } from 'redux';
import { AppState } from '../../common/reducers';
import { Frequency } from '../../frequencies/data';
export declare const SET_PENDING_FREQUENCIES = "SET_PENDING_FREQUENCIES";
export declare const SET_PENDING_FREQUENCY_AUTO_ON = "SET_PENDING_FREQUENCY_AUTO_ON";
export declare const SET_PENDING_FREQUENCY_AUTO_ON_BATCH = "SET_PENDING_FREQUENCY_AUTO_ON_BATCH";
export declare const SET_PENDING_SERVICE_CENTRE_CODE = "SET_PENDING_SERVICE_CENTRE_CODE";
export declare const SET_PENDING_FREQUENCY_SELECTED = "SET_PENDING_FREQUENCY_SELECTED";
export declare const SET_ALL_PENDING_FREQUENCIES_IN_SERVICE_CENTRE_SELECTED = "SET_ALL_PENDING_FREQUENCIES_IN_SERVICE_CENTRE_SELECTED";
export interface SetPendingFrequenciesAction {
frequencies: {
[frequencyId: string]: boolean;
};
}
export interface SetPendingFrequencyAutoOnAction {
frequency: string;
counterpart: string;
autoIsOn: boolean;
}
export interface SetPendingFrequencyAutoOnBatchAction {
frequencies: {
[frequencyId: string]: boolean;
};
}
export interface SetPendingServiceCentreCodeAction {
code: string;
}
export interface SetPendingFrequencySelectedAction {
frequency: string;
counterpart: string;
selected: boolean;
}
export interface SetAllPendingFrequenciesInServiceCentreSelectedAction {
selected: boolean;
frequencies: Frequency[];
}
export declare const setPendingFrequencies: (frequencies: {
[frequencyId: string]: boolean;
}) => (dispatch: Dispatch<any>, getState: () => AppState) => void;
export declare const setPendingFrequencyAutoOn: (label: string, autoIsOn: boolean) => (dispatch: Dispatch<any>, getState: () => AppState) => void;
export declare const setPendingFrequencyAutoOnBatch: (frequencies: {
[frequencyId: string]: boolean;
}) => (dispatch: Dispatch<any>, getState: () => AppState) => void;
export declare const setPendingServiceCentreCode: (code: string) => {
type: string;
code: string;
};
export declare const setPendingFrequencySelected: (label: string, selected: boolean) => (dispatch: Dispatch<any>, getState: () => AppState) => void;
export declare const setAllPendingFrequenciesInServiceCentreSelected: (selected: boolean) => (dispatch: Dispatch<any>, getState: () => AppState) => void;