UNPKG

lml-main

Version:

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

50 lines (49 loc) 2.16 kB
import { Frequency, FrequencyRegionModel, FrequencyServiceCentre } from '../../frequencies/data'; export declare const GET_FREQUENCIES_DATA = "GET_FREQUENCIES_DATA"; export declare const SET_FREQUENCIES_DATA = "SET_FREQUENCIES_DATA"; export declare const SET_FREQUENCY_AUTO_IS_ON = "SET_FREQUENCY_AUTO_IS_ON"; export declare const SET_AUTO_ALLOCATION_GLOBAL = "SET_AUTO_ALLOCATION_GLOBAL"; export declare const SET_FREQUENCY_AUTO_ALLOCATION = "SET_FREQUENCY_AUTO_ALLOCATION"; export interface GetFrequenciesDataAction { type: 'GET_FREQUENCIES_DATA'; } export interface SetFrequenciesDataAction { type: 'SET_FREQUENCIES_DATA'; regions: { [refId: string]: FrequencyRegionModel; }; serviceCentres: { [refId: string]: FrequencyServiceCentre; }; frequencies: { [refId: string]: Frequency; }; autoAllocationGlobal: boolean; } export interface SetAutoAllocationGlobalAction { type: 'SET_AUTO_ALLOCATION_GLOBAL'; autoAllocationGlobal: boolean; } export interface SetFrequencyAutoIsOnAction { type: 'SET_FREQUENCY_AUTO_IS_ON'; label: string; counterpartLabel: string; autoIsOn: boolean; } export interface SetFrequencyAutoAllocationAction { type: 'SET_FREQUENCY_AUTO_ALLOCATION'; label: string; autoIsOn: boolean; } export declare type FrequenciesDataAction = SetFrequenciesDataAction | SetAutoAllocationGlobalAction | SetFrequencyAutoIsOnAction | SetFrequencyAutoAllocationAction; export declare const setFrequenciesData: (regions: any, serviceCentres: any, frequencies: any, autoAllocationGlobal: boolean) => { type: string; regions: any; serviceCentres: any; frequencies: any; autoAllocationGlobal: boolean; }; export declare const setFrequencyAutoIsOn: (label: string, counterpartLabel: string, autoIsOn: boolean) => SetFrequencyAutoIsOnAction; export declare const setAutoAllocationGlobal: (autoAllocationGlobal: boolean) => SetAutoAllocationGlobalAction; export declare const setFrequencyAutoAllocation: (label: string, autoIsOn: boolean) => SetFrequencyAutoAllocationAction; export declare const getFrequenciesData: GetFrequenciesDataAction;