UNPKG

@bexis2/bexis2-rpm-ui

Version:

Everything you need to build a Svelte project, powered by [`create-svelte`](https://github.com/sveltejs/kit/tree/master/packages/create-svelte).

145 lines (129 loc) 3.2 kB
import type { listItemType } from '@bexis2/bexis2-core-ui'; export interface DataStructureModel { id: number; title: string; description: string; linkedTo: number[]; } export interface DataStructureCreationModel { entityId: number; title: string; description: string; file: string; delimeter: number; decimal: number; textMarker: number; fileEncoding: number; delimeters: listItemType[]; decimals: listItemType[]; textMarkers: listItemType[]; encodings: listItemType[]; preview: string[]; total: number; skipped: number; markers: markerType[]; variables: VariableInstanceModel[]; missingValues: missingValueType[]; } export interface DataStructureEditModel { id: number; title: string; description: string; preview: string[]; variables: VariableInstanceModel[]; missingValues: missingValueType[]; } export interface missingValueType { id: number; displayName: string; description: string; } export interface markerType { type: string; row: number; cells: boolean[]; } class VariableModel { id: number; name: string; description: string; systemType: string; dataType: listItemType | undefined | ''; unit: unitListItemType | undefined | ''; missingValues: missingValueType[]; meanings: listItemType[]; constraints: listItemType[]; approved: boolean; inUse: boolean; public constructor() { this.id = 0; this.name = ''; this.description = ''; this.systemType = ''; this.dataType = undefined; //{id:0,text:"",group:""} this.unit = undefined; this.missingValues = []; this.meanings = []; this.constraints = []; this.approved = false; this.inUse = false; } } export class VariableTemplateModel extends VariableModel { public constructor() { super(); this.meanings = []; this.constraints = []; this.missingValues = []; } } export class VariableInstanceModel extends VariableModel { template: templateListItemType | undefined; isKey: boolean; isOptional: boolean; displayPattern: listItemType | undefined; possibleUnits: unitListItemType[]; possibleTemplates: templateListItemType[]; possibleDisplayPattern: listItemType[]; public constructor() { super(); this.meanings = []; this.constraints = []; this.missingValues = []; this.isOptional = false; this.template = undefined; this.isKey = false; this.displayPattern = undefined; this.possibleUnits = []; this.possibleTemplates = []; this.possibleDisplayPattern = []; } } export interface unitListItemType extends listItemType { dataTypes: string[]; } export interface templateListItemType extends listItemType { description: string; dataType: string; dataTypes: string[]; unit: string; units: string[]; meanings: string[]; constraints: string[]; } export interface meaningListItemType extends listItemType { constraints: string[]; links: meaningEntryItemType[]; } export interface meaningEntryItemType { label: string; prefix: string; releation: string; link: string; } export interface dwcExtention{ name:string, linkName:string, rowType:string, requiredFields:string[], }