12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273 |
- /**
- * Copyright (c) 2017 molio contributors, licensed under MIT, See LICENSE file for more info.
- *
- * @author Alexander Rose <alexander.rose@weirdbyte.de>
- */
- 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<typeof dic>
- export default dic
|