|
| 1 | +export function getTimeSteps(): { |
| 2 | + '1min': { |
| 3 | + key: string; |
| 4 | + tmi: string; |
| 5 | + seconds: number; |
| 6 | + }; |
| 7 | + '2min': { |
| 8 | + key: string; |
| 9 | + tmi: string; |
| 10 | + seconds: number; |
| 11 | + }; |
| 12 | + '5min': { |
| 13 | + key: string; |
| 14 | + tmi: string; |
| 15 | + seconds: number; |
| 16 | + }; |
| 17 | + '15min': { |
| 18 | + key: string; |
| 19 | + tmi: string; |
| 20 | + seconds: number; |
| 21 | + }; |
| 22 | + '30min': { |
| 23 | + key: string; |
| 24 | + tmi: string; |
| 25 | + seconds: number; |
| 26 | + }; |
| 27 | + '60min': { |
| 28 | + key: string; |
| 29 | + tmi: string; |
| 30 | + seconds: number; |
| 31 | + }; |
| 32 | + '0AQ': { |
| 33 | + key: string; |
| 34 | + tmi: string; |
| 35 | + seconds: number; |
| 36 | + }; |
| 37 | + '1day': { |
| 38 | + key: string; |
| 39 | + tmi: string; |
| 40 | + seconds: number; |
| 41 | + }; |
| 42 | +}; |
| 43 | +/** |
| 44 | + Worker - Generate Time Series Graph Data |
| 45 | +
|
| 46 | + This function workerizes the process of building the graphData object for TimeSeriesViewer state. |
| 47 | + This object is built using parsed series data from elsewhere in state by combining individual |
| 48 | + site/month/variable series into single site/variable series registered to the generated time |
| 49 | + series. |
| 50 | +
|
| 51 | + @param {Object} state - complete TimeSeriesViewer state |
| 52 | + @return {Object} graphData object to be applied to state |
| 53 | +*/ |
| 54 | +export default function generateTimeSeriesGraphData(payload?: {}): Object; |
| 55 | +export function getTestableItems(): { |
| 56 | + monthIsValidFormat?: undefined; |
| 57 | + monthToNumbers?: undefined; |
| 58 | + monthIsValid?: undefined; |
| 59 | + monthToTicker?: undefined; |
| 60 | + tickerIsValid?: undefined; |
| 61 | + tickerToMonth?: undefined; |
| 62 | + tickerToIso?: undefined; |
| 63 | + getNextMonth?: undefined; |
| 64 | +} | { |
| 65 | + monthIsValidFormat: typeof monthIsValidFormat; |
| 66 | + monthToNumbers: typeof monthToNumbers; |
| 67 | + monthIsValid: typeof monthIsValid; |
| 68 | + monthToTicker: typeof monthToTicker; |
| 69 | + tickerIsValid: typeof tickerIsValid; |
| 70 | + tickerToMonth: typeof tickerToMonth; |
| 71 | + tickerToIso: typeof tickerToIso; |
| 72 | + getNextMonth: typeof getNextMonth; |
| 73 | +}; |
| 74 | +declare function monthIsValidFormat(month: any): boolean; |
| 75 | +declare function monthToNumbers(month: any): { |
| 76 | + y: null; |
| 77 | + m: null; |
| 78 | +} | { |
| 79 | + y: number; |
| 80 | + m: number; |
| 81 | +}; |
| 82 | +declare function monthIsValid(month: any): boolean; |
| 83 | +declare function monthToTicker(month: any): number; |
| 84 | +declare function tickerIsValid(ticker: any): boolean; |
| 85 | +declare function tickerToMonth(ticker: any): string | null; |
| 86 | +declare function tickerToIso(ticker: any): string | null; |
| 87 | +declare function getNextMonth(month: any): string | null; |
| 88 | +export {}; |
0 commit comments