From 8692555516a2fcc180c0d6d0f1db2b80b022cdd0 Mon Sep 17 00:00:00 2001 From: snoop Date: Wed, 16 Aug 2017 16:38:57 +0900 Subject: [PATCH] sensor setup item --- src/ts/@overflow/app/config/index.ts | 5 + .../@overflow/meta/react/CrawlerSelector.tsx | 3 +- .../@overflow/meta/react/SensorItemTree.tsx | 24 ++- .../meta/react/components/CrawlerSelector.tsx | 2 + .../meta/react/components/SensorItemTree.tsx | 203 ++++++++++-------- .../meta/redux/action/sensor_item_read_all.ts | 54 ++--- .../action/sensor_item_read_all_by_sensor.ts | 10 + .../redux/action/sensor_item_type_read_all.ts | 10 + .../redux/reducer/sensor_item_read_all.ts | 28 +++ .../reducer/sensor_item_read_all_by_sensor.ts | 28 +++ .../reducer/sensor_item_type_read_all.ts | 28 +++ .../meta/redux/state/SensorItemReadAll.ts | 5 +- .../redux/state/SensorItemReadAllBySensor.ts | 14 ++ .../meta/redux/state/SensorItemTypeReadAll.ts | 14 ++ 14 files changed, 310 insertions(+), 118 deletions(-) create mode 100644 src/ts/@overflow/meta/redux/action/sensor_item_read_all_by_sensor.ts create mode 100644 src/ts/@overflow/meta/redux/action/sensor_item_type_read_all.ts create mode 100644 src/ts/@overflow/meta/redux/reducer/sensor_item_read_all.ts create mode 100644 src/ts/@overflow/meta/redux/reducer/sensor_item_read_all_by_sensor.ts create mode 100644 src/ts/@overflow/meta/redux/reducer/sensor_item_type_read_all.ts create mode 100644 src/ts/@overflow/meta/redux/state/SensorItemReadAllBySensor.ts create mode 100644 src/ts/@overflow/meta/redux/state/SensorItemTypeReadAll.ts diff --git a/src/ts/@overflow/app/config/index.ts b/src/ts/@overflow/app/config/index.ts index e9e491e..8d00eb9 100644 --- a/src/ts/@overflow/app/config/index.ts +++ b/src/ts/@overflow/app/config/index.ts @@ -24,6 +24,9 @@ import readHostReducer from '@overflow/infra/redux/reducer/host_read'; import CrawlerReadAllByTargetReducer from '@overflow/meta/redux/reducer/crawler_read_all_by_target'; import CrawlerAuthInputsReducer from '@overflow/meta/redux/reducer/crawler_auth_inputs'; +import MetaSensorItemReadAllReducer from '@overflow/meta/redux/reducer/sensor_item_read_all'; +import MetaSensorItemTypeReadAllReducer from '@overflow/meta/redux/reducer/sensor_item_type_read_all'; + import AsyncRequest from '@overflow/app/redux/saga/AsyncRequest'; // Container Configuration @@ -74,6 +77,8 @@ const reduxConfig: ReduxConfig = { readHostReducer, CrawlerReadAllByTargetReducer, CrawlerAuthInputsReducer, + MetaSensorItemReadAllReducer, + MetaSensorItemTypeReadAllReducer, ], sagaWatchers: [ AsyncRequest, diff --git a/src/ts/@overflow/meta/react/CrawlerSelector.tsx b/src/ts/@overflow/meta/react/CrawlerSelector.tsx index 8c6d90a..8260ac1 100644 --- a/src/ts/@overflow/meta/react/CrawlerSelector.tsx +++ b/src/ts/@overflow/meta/react/CrawlerSelector.tsx @@ -20,10 +20,11 @@ import * as asyncRequestActions from '@overflow/commons/redux/action/asyncReques // FIXME::.... -export function mapStateToProps(state: any): CrawlerSelectorStateProps { +export function mapStateToProps(state: any, props: any): CrawlerSelectorStateProps { return { metaCralwerList: state.MetaCrawlerList, metaCrawlerInputItemList:state.MetaCrawlerInputItemList, + onSelectCrawlerId: props.onSelectCrawlerId, }; } diff --git a/src/ts/@overflow/meta/react/SensorItemTree.tsx b/src/ts/@overflow/meta/react/SensorItemTree.tsx index 5b20f4f..5d8ecbd 100644 --- a/src/ts/@overflow/meta/react/SensorItemTree.tsx +++ b/src/ts/@overflow/meta/react/SensorItemTree.tsx @@ -6,18 +6,34 @@ import { } from './components/SensorItemTree'; import State from '../redux/state/SensorItemReadAll'; -import * as SensorItemReadAllActions from '../redux/action/sensor_item_read_all'; +import * as SensorItemReadAllByActions from '../redux/action/sensor_item_read_all'; +import * as SensorItemReadAllBySensorActions from '../redux/action/sensor_item_read_all_by_sensor'; +import * as SensorItemTypeReadAllActions from '../redux/action/sensor_item_type_read_all'; +import * as asyncRequestActions from '@overflow/commons/redux/action/asyncRequest'; -export function mapStateToProps(state: any): SensorItemTreeStateProps { +import Sensor from '@overflow/sensor/api/model/Sensor'; + + +export function mapStateToProps(state: any, props: any): SensorItemTreeStateProps { return { - + crawlerId: props.crawlerId, + metaSensorItemTypeList: state.MetaSensorItemTypeList, + sensorItemList: state.SensorItemList, + metaSensorItemList: state.MetaSensorItemList, }; } export function mapDispatchToProps(dispatch: Dispatch): SensorItemTreeDispatchProps { return { onReadAll: () => { - dispatch(SensorItemReadAllActions.request()); + dispatch(asyncRequestActions.request('MetaSensorItemService', 'readAll', SensorItemReadAllByActions.REQUEST)); + }, + onReadAllBySensor: (sensor: Sensor) => { + dispatch(asyncRequestActions.request('SensorItemService', 'readAllBySensor', + SensorItemReadAllBySensorActions.REQUEST, JSON.stringify(sensor))); + }, + onSensorItemTypeReadAll: () => { + dispatch(asyncRequestActions.request('MetaSensorItemTypeService', 'readAll', SensorItemTypeReadAllActions.REQUEST)); }, }; } diff --git a/src/ts/@overflow/meta/react/components/CrawlerSelector.tsx b/src/ts/@overflow/meta/react/components/CrawlerSelector.tsx index 29cae30..58f890a 100644 --- a/src/ts/@overflow/meta/react/components/CrawlerSelector.tsx +++ b/src/ts/@overflow/meta/react/components/CrawlerSelector.tsx @@ -15,11 +15,13 @@ export interface CrawlerSelectorStateProps { metaCralwerList?: MetaCrawler[]; targetId?: number; metaCrawlerInputItemList?: MetaCrawlerInputItem[]; + onSelectCrawlerId?(id: number): void; } export interface CrawlerSelectorDispatchProps { onCrawlerReadAllByTarget?(target: Target): void; onCrawlerReadAllByMetaCrawler?(crawler: MetaCrawler): void; + } export type CrawlerSelectorProps = CrawlerSelectorStateProps & CrawlerSelectorDispatchProps; diff --git a/src/ts/@overflow/meta/react/components/SensorItemTree.tsx b/src/ts/@overflow/meta/react/components/SensorItemTree.tsx index 79205f5..2edcd86 100644 --- a/src/ts/@overflow/meta/react/components/SensorItemTree.tsx +++ b/src/ts/@overflow/meta/react/components/SensorItemTree.tsx @@ -17,13 +17,22 @@ import { import MetaSensorItemType from '../../api/model/MetaSensorItemType'; import MetaSensorItem from '../../api/model/MetaSensorItem'; +import Sensor from '@overflow/sensor/api/model/Sensor'; +import SensorItem from '@overflow/sensor/api/model/SensorItem'; + import * as Utils from '@overflow/commons/util/Utils'; export interface SensorItemTreeStateProps { + crawlerId?: number; + sensorItemList?: SensorItem[]; + metaSensorItemTypeList?: MetaSensorItemType[]; + metaSensorItemList?: MetaSensorItem[]; } export interface SensorItemTreeDispatchProps { + onReadAllBySensor?(sensor: Sensor): void; + onSensorItemTypeReadAll?(): void; onReadAll?(): void; } @@ -58,8 +67,10 @@ export class SensorItemTree extends React.Component { @@ -83,7 +102,7 @@ export class SensorItemTree extends React.Component - Category + Category {this.state.categoryState[key] ? this.ViewSensorItem(data.metaSensorItemList, key) : ''} , @@ -112,7 +131,7 @@ export class SensorItemTree extends React.Component, checkProps: CheckboxProps) => { this.onItemCheckCBox(parentKey, checkProps, item); }} /> - Sensor Item + Sensor Item , @@ -137,8 +156,12 @@ export class SensorItemTree extends React.Component { - let sensorItem: MetaSensorItem = data; + if(this.itemMap.size > 0) { + return; + } + + for(let si of this.props.metaSensorItemList) { + let sensorItem: MetaSensorItem = si; if (this.itemMap.has(sensorItem.itemType.id)) { this.itemMap.get(sensorItem.itemType.id).metaSensorItemList.push(sensorItem); @@ -149,7 +172,21 @@ export class SensorItemTree extends React.Component { + // let sensorItem: MetaSensorItem = data; + + // if (this.itemMap.has(sensorItem.itemType.id)) { + // this.itemMap.get(sensorItem.itemType.id).metaSensorItemList.push(sensorItem); + // } else { + // let item: TreeItem = { metaSensorItemList: null, metaSensorItemType: null }; + // item.metaSensorItemList = []; + // item.metaSensorItemList.push(sensorItem); + // item.metaSensorItemType = this.GetMetaSensorItemType(sensorItem.itemType.id); + // this.itemMap.set(sensorItem.itemType.id, item); + // } + // }); } private onItemClick = (parentKey: number, idx: number) => { @@ -207,93 +244,91 @@ export class SensorItemTree extends React.Component { - // let msit: MetaSensorItemType = data; + + // for (let i: number = 0; i < SensorTypeJsonData.length; ++i) { + // let msit: MetaSensorItemType = SensorTypeJsonData[i]; // if (msit.id === id) { // return msit; // } - // return null; - // }); - // return null; + // } + return null; } } -const SensorTypeJsonData: any = [ - { - 'id': 1, - 'create_date': '2017-06-26T10:49:39Z', - 'description': 'CPU blah blah blah', - 'name': 'CPU', - }, - { - 'id': 2, - 'create_date': '2017-06-26T10:49:39Z', - 'description': 'MEMORY blah blah blah', - 'name': 'MEMORY', - }, - { - 'id': 3, - 'create_date': '2017-06-26T10:49:39Z', - 'description': 'DISK blah blah blah', - 'name': 'DISK', - }, -]; +// const SensorTypeJsonData: any = [ +// { +// 'id': 1, +// 'create_date': '2017-06-26T10:49:39Z', +// 'description': 'CPU blah blah blah', +// 'name': 'CPU', +// }, +// { +// 'id': 2, +// 'create_date': '2017-06-26T10:49:39Z', +// 'description': 'MEMORY blah blah blah', +// 'name': 'MEMORY', +// }, +// { +// 'id': 3, +// 'create_date': '2017-06-26T10:49:39Z', +// 'description': 'DISK blah blah blah', +// 'name': 'DISK', +// }, +// ]; -const SensorJsonData = [{ - 'id': 1, - 'itemType': { - 'id': 1, - 'name': 'CPU', - 'description': 'CPU blah blah blah', - 'createDate': 1498474179690, - }, - 'key': 'cpu.usage', - 'name': 'CPU USAGE', - 'createDate': 1498475408269, -}, -{ - 'id': 2, - 'itemType': { - 'id': 1, - 'name': 'CPU', - 'description': 'CPU blah blah blah', - 'createDate': 1498474179690, - }, - 'key': 'cpu.free', - 'name': 'CPU FREE', - 'createDate': 1498475408361, -}, -{ - 'id': 3, - 'itemType': { - 'id': 2, - 'name': 'MEMORY', - 'description': 'MEMORY blah blah blah', - 'createDate': 1498474179811, - }, - 'key': 'mem.usage', - 'name': 'MEMORY USAGE', - 'createDate': 1498475408376, -}, -{ - 'id': 4, - 'itemType': { - 'id': 2, - 'name': 'MEMORY', - 'description': 'MEMORY blah blah blah', - 'createDate': 1498474179811, - }, - 'key': 'mem.free', - 'name': 'MEMORY FREE', - 'createDate': 1498475408394, -}]; +// const SensorJsonData = [{ +// 'id': 1, +// 'itemType': { +// 'id': 1, +// 'name': 'CPU', +// 'description': 'CPU blah blah blah', +// 'createDate': 1498474179690, +// }, +// 'key': 'cpu.usage', +// 'name': 'CPU USAGE', +// 'createDate': 1498475408269, +// }, +// { +// 'id': 2, +// 'itemType': { +// 'id': 1, +// 'name': 'CPU', +// 'description': 'CPU blah blah blah', +// 'createDate': 1498474179690, +// }, +// 'key': 'cpu.free', +// 'name': 'CPU FREE', +// 'createDate': 1498475408361, +// }, +// { +// 'id': 3, +// 'itemType': { +// 'id': 2, +// 'name': 'MEMORY', +// 'description': 'MEMORY blah blah blah', +// 'createDate': 1498474179811, +// }, +// 'key': 'mem.usage', +// 'name': 'MEMORY USAGE', +// 'createDate': 1498475408376, +// }, +// { +// 'id': 4, +// 'itemType': { +// 'id': 2, +// 'name': 'MEMORY', +// 'description': 'MEMORY blah blah blah', +// 'createDate': 1498474179811, +// }, +// 'key': 'mem.free', +// 'name': 'MEMORY FREE', +// 'createDate': 1498475408394, +// }]; export default SensorItemTree; diff --git a/src/ts/@overflow/meta/redux/action/sensor_item_read_all.ts b/src/ts/@overflow/meta/redux/action/sensor_item_read_all.ts index d57564a..2461289 100644 --- a/src/ts/@overflow/meta/redux/action/sensor_item_read_all.ts +++ b/src/ts/@overflow/meta/redux/action/sensor_item_read_all.ts @@ -6,39 +6,39 @@ import SensorItemReadAllPayload from '../payload/SensorItemReadAllPayload'; // Action Type export type REQUEST = '@overflow/meta_sensor_item/sensor_item_read_all/REQUEST'; -export type REQUEST_SUCCESS = '@overflow/meta_sensor_item/sensor_item_read_all/REQUEST_SUCCESS'; -export type REQUEST_FAILURE = '@overflow/meta_sensor_item/sensor_item_read_all/REQUEST_FAILURE'; +export type REQUEST_SUCCESS = '@overflow/meta_sensor_item/sensor_item_read_all/REQUEST/SUCCESS'; +export type REQUEST_FAILURE = '@overflow/meta_sensor_item/sensor_item_read_all/REQUEST/FAILURE'; export const REQUEST: REQUEST = '@overflow/meta_sensor_item/sensor_item_read_all/REQUEST'; -export const REQUEST_SUCCESS: REQUEST_SUCCESS = '@overflow/meta_sensor_item/sensor_item_read_all/REQUEST_SUCCESS'; -export const REQUEST_FAILURE: REQUEST_FAILURE = '@overflow/meta_sensor_item/sensor_item_read_all/REQUEST_FAILURE'; +export const REQUEST_SUCCESS: REQUEST_SUCCESS = '@overflow/meta_sensor_item/sensor_item_read_all/REQUEST/SUCCESS'; +export const REQUEST_FAILURE: REQUEST_FAILURE = '@overflow/meta_sensor_item/sensor_item_read_all/REQUEST/FAILURE'; -// Action Creater -export type request = () => Action; -export type requestSuccess = (metaSensorItemList: MetaSensorItem[]) => Action; -export type requestFailure = (error: Error) => Action; +// // Action Creater +// export type request = () => Action; +// export type requestSuccess = (metaSensorItemList: MetaSensorItem[]) => Action; +// export type requestFailure = (error: Error) => Action; -export const request: request = (): Action => { - return { - type: REQUEST, - payload: { +// export const request: request = (): Action => { +// return { +// type: REQUEST, +// payload: { - }, - }; -}; +// }, +// }; +// }; -export const requestSuccess: requestSuccess = (metaSensorItemList: MetaSensorItem[]): Action => { - return { - type: REQUEST_SUCCESS, - payload: metaSensorItemList, - }; -}; +// export const requestSuccess: requestSuccess = (metaSensorItemList: MetaSensorItem[]): Action => { +// return { +// type: REQUEST_SUCCESS, +// payload: metaSensorItemList, +// }; +// }; -export const requestFailure: requestFailure = (error: Error): Action => { - return { - type: REQUEST_FAILURE, - error: error, - }; -}; +// export const requestFailure: requestFailure = (error: Error): Action => { +// return { +// type: REQUEST_FAILURE, +// error: error, +// }; +// }; diff --git a/src/ts/@overflow/meta/redux/action/sensor_item_read_all_by_sensor.ts b/src/ts/@overflow/meta/redux/action/sensor_item_read_all_by_sensor.ts new file mode 100644 index 0000000..8ed1493 --- /dev/null +++ b/src/ts/@overflow/meta/redux/action/sensor_item_read_all_by_sensor.ts @@ -0,0 +1,10 @@ + + +// Action Type +export type REQUEST = '@overflow/meta_sensor_item/read_all_by_sensor/REQUEST'; +export type REQUEST_SUCCESS = '@overflow/meta_sensor_item/read_all_by_sensor/REQUEST/SUCCESS'; +export type REQUEST_FAILURE = '@overflow/meta_sensor_item/read_all_by_sensor/REQUEST/FAILURE'; + +export const REQUEST: REQUEST = '@overflow/meta_sensor_item/read_all_by_sensor/REQUEST'; +export const REQUEST_SUCCESS: REQUEST_SUCCESS = '@overflow/meta_sensor_item/read_all_by_sensor/REQUEST/SUCCESS'; +export const REQUEST_FAILURE: REQUEST_FAILURE = '@overflow/meta_sensor_item/read_all_by_sensor/REQUEST/FAILURE'; diff --git a/src/ts/@overflow/meta/redux/action/sensor_item_type_read_all.ts b/src/ts/@overflow/meta/redux/action/sensor_item_type_read_all.ts new file mode 100644 index 0000000..d020329 --- /dev/null +++ b/src/ts/@overflow/meta/redux/action/sensor_item_type_read_all.ts @@ -0,0 +1,10 @@ + + +// Action Type +export type REQUEST = '@overflow/meta_sensor_item_type/read_all/REQUEST'; +export type REQUEST_SUCCESS = '@overflow/meta_sensor_item_type/read_all/REQUEST/SUCCESS'; +export type REQUEST_FAILURE = '@overflow/meta_sensor_item_type/read_all/REQUEST/FAILURE'; + +export const REQUEST: REQUEST = '@overflow/meta_sensor_item_type/read_all/REQUEST'; +export const REQUEST_SUCCESS: REQUEST_SUCCESS = '@overflow/meta_sensor_item_type/read_all/REQUEST/SUCCESS'; +export const REQUEST_FAILURE: REQUEST_FAILURE = '@overflow/meta_sensor_item_type/read_all/REQUEST/FAILURE'; diff --git a/src/ts/@overflow/meta/redux/reducer/sensor_item_read_all.ts b/src/ts/@overflow/meta/redux/reducer/sensor_item_read_all.ts new file mode 100644 index 0000000..c821ff5 --- /dev/null +++ b/src/ts/@overflow/meta/redux/reducer/sensor_item_read_all.ts @@ -0,0 +1,28 @@ + +import Action from '@overflow/commons/redux/Action'; +import { ReducersMapObject } from 'redux'; +import SensorItem from '@overflow/sensor/api/model/SensorItem'; + +import * as SensorItemReadAllActions from '../action/sensor_item_read_all'; +import SensorItemReadAllState, { defaultState as SensorItemReadAllDefaultState } from '../state/SensorItemReadAll'; + +import MetaSensorItem from '../../api/model/MetaSensorItem'; + +const reducer: ReducersMapObject = { + [SensorItemReadAllActions.REQUEST_SUCCESS]: + (state: SensorItemReadAllState = SensorItemReadAllDefaultState, action: Action): + SensorItemReadAllState => { + console.log(action); + return { + ...state, + MetaSensorItemList: action.payload, + }; + }, + [SensorItemReadAllActions.REQUEST_FAILURE]: + (state: SensorItemReadAllState = SensorItemReadAllDefaultState, action: Action): + SensorItemReadAllState => { + return state; + }, +}; + +export default reducer; diff --git a/src/ts/@overflow/meta/redux/reducer/sensor_item_read_all_by_sensor.ts b/src/ts/@overflow/meta/redux/reducer/sensor_item_read_all_by_sensor.ts new file mode 100644 index 0000000..24b750d --- /dev/null +++ b/src/ts/@overflow/meta/redux/reducer/sensor_item_read_all_by_sensor.ts @@ -0,0 +1,28 @@ + +import Action from '@overflow/commons/redux/Action'; +import { ReducersMapObject } from 'redux'; +import SensorItem from '@overflow/sensor/api/model/SensorItem'; + +import * as SensorItemReadAllBySensorActions from '../action/sensor_item_read_all_by_sensor'; +import SensorItemReadAllBySensorState, { defaultState as SensorItemReadAllBySensorDefaultState } from '../state/SensorItemReadAllBySensor'; + +import MetaCrawler from '../../api/model/MetaCrawler'; + +const reducer: ReducersMapObject = { + [SensorItemReadAllBySensorActions.REQUEST_SUCCESS]: + (state: SensorItemReadAllBySensorState = SensorItemReadAllBySensorDefaultState, action: Action): + SensorItemReadAllBySensorState => { + console.log(action); + return { + ...state, + SensorItemList: action.payload, + }; + }, + [SensorItemReadAllBySensorActions.REQUEST_FAILURE]: + (state: SensorItemReadAllBySensorState = SensorItemReadAllBySensorDefaultState, action: Action): + SensorItemReadAllBySensorState => { + return state; + }, +}; + +export default reducer; diff --git a/src/ts/@overflow/meta/redux/reducer/sensor_item_type_read_all.ts b/src/ts/@overflow/meta/redux/reducer/sensor_item_type_read_all.ts new file mode 100644 index 0000000..32d468b --- /dev/null +++ b/src/ts/@overflow/meta/redux/reducer/sensor_item_type_read_all.ts @@ -0,0 +1,28 @@ + +import Action from '@overflow/commons/redux/Action'; +import { ReducersMapObject } from 'redux'; +import SensorItem from '@overflow/sensor/api/model/SensorItem'; + +import * as SensorItemTypeReadAllActions from '../action/sensor_item_type_read_all'; +import SensorItemTypeReadAllState, { defaultState as SensorItemTypeReadAllDefaultState } from '../state/SensorItemTypeReadAll'; + +import MetaSensorItemType from '../../api/model/MetaSensorItemType'; + +const reducer: ReducersMapObject = { + [SensorItemTypeReadAllActions.REQUEST_SUCCESS]: + (state: SensorItemTypeReadAllState = SensorItemTypeReadAllDefaultState, action: Action): + SensorItemTypeReadAllState => { + console.log(action); + return { + ...state, + MetaSensorItemTypeList: action.payload, + }; + }, + [SensorItemTypeReadAllActions.REQUEST_FAILURE]: + (state: SensorItemTypeReadAllState = SensorItemTypeReadAllDefaultState, action: Action): + SensorItemTypeReadAllState => { + return state; + }, +}; + +export default reducer; diff --git a/src/ts/@overflow/meta/redux/state/SensorItemReadAll.ts b/src/ts/@overflow/meta/redux/state/SensorItemReadAll.ts index b275d41..d2e2c30 100644 --- a/src/ts/@overflow/meta/redux/state/SensorItemReadAll.ts +++ b/src/ts/@overflow/meta/redux/state/SensorItemReadAll.ts @@ -1,11 +1,12 @@ +import MetaSensorItem from '../../api/model/MetaSensorItem'; export interface State { - readonly isGetSensorItemAll: boolean; + readonly MetaSensorItemList: MetaSensorItem[]; readonly error?: Error; } export const defaultState: State = { - isGetSensorItemAll: undefined, + MetaSensorItemList: undefined, error: undefined, }; diff --git a/src/ts/@overflow/meta/redux/state/SensorItemReadAllBySensor.ts b/src/ts/@overflow/meta/redux/state/SensorItemReadAllBySensor.ts new file mode 100644 index 0000000..10326d9 --- /dev/null +++ b/src/ts/@overflow/meta/redux/state/SensorItemReadAllBySensor.ts @@ -0,0 +1,14 @@ + +import SensorItem from '@overflow/sensor/api/model/SensorItem'; + +export interface State { + readonly SensorItemList: SensorItem[]; + readonly error?: Error; +} + +export const defaultState: State = { + SensorItemList: undefined, + error: undefined, +}; + +export default State; diff --git a/src/ts/@overflow/meta/redux/state/SensorItemTypeReadAll.ts b/src/ts/@overflow/meta/redux/state/SensorItemTypeReadAll.ts new file mode 100644 index 0000000..1683117 --- /dev/null +++ b/src/ts/@overflow/meta/redux/state/SensorItemTypeReadAll.ts @@ -0,0 +1,14 @@ + +import MetaSensorItemType from '../../api/model/MetaSensorItemType'; + +export interface State { + readonly MetaSensorItemTypeList: MetaSensorItemType[]; + readonly error?: Error; +} + +export const defaultState: State = { + MetaSensorItemTypeList: undefined, + error: undefined, +}; + +export default State;