/** * Copyright (c) 2017 molio contributors, licensed under MIT, See LICENSE file for more info. * * @author Alexander Rose */ import { Field, Block } from '../schema' const str = Field.str() const float = Field.float() const datablock = { id: str, description: str } const dictionary = { title: str, datablock_id: str, version: str } const dictionary_history = { version: str, update: str, revision: str } const sub_category = { id: str, description: str } const category_group_list = { id: str, parent_id: str, description: str } const item_type_list = { code: str, primitive_code: str, construct: str, detail: str } const item_units_list = { code: str, detail: str } const item_units_conversion = { from_code: str, to_code: str, operator: str, factor: float } // TODO save frame dic schema const dic = { datablock, dictionary, dictionary_history, sub_category, category_group_list, item_type_list, item_units_list, item_units_conversion } type dic = Block.Instance export default dic