import * as faker from "faker" ; import { LabelCompositeValue , LabelCompositeValueJSON , LabelDefinition , LabelDefinitionJSON } from "../../../presentation-common/LabelDefinition" ; internal export const createRandomLabelDefinitionJSON = ( ) : LabelDefinitionJSON => { return { displayValue : faker . random . word ( ) , rawValue : faker . random . word ( ) , typeName : "string" } ; } ; internal export const createRandomLabelDefinition = ( ) : LabelDefinition => { return LabelDefinition . fromJSON ( createRandomLabelDefinitionJSON ( ) ) ; } ; internal export const createRandomLabelCompositeValue = ( ) : LabelCompositeValue => { return { separator : faker . random . alphaNumeric ( 1 ) , values : [ createRandomLabelDefinition ( ) , createRandomLabelDefinition ( ) ] } ; } ; internal export const createRandomLabelCompositeValueJSON = ( ) : LabelCompositeValueJSON => { return { separator : faker . random . alphaNumeric ( 1 ) , values : [ createRandomLabelDefinitionJSON ( ) , createRandomLabelDefinitionJSON ( ) ] } ; } ;