@acceleratxr/core_sdk / PersonaStatDefinition

Class: PersonaStatDefinition#

The PersonaStatDefinition describes a single statistic that an persona can have.

REQUIRES: Persona Services

author Jean-Philippe Steinmetz info@acceleratxr.com

Hierarchy#

Index#

Constructors#

Properties#

Accessors#

Constructors#

constructor#

+ new PersonaStatDefinition(other?: any): PersonaStatDefinition

Overrides EntityBase.constructor

Defined in src/models/PersonaStatDefinition.ts:64

Parameters:#

Name

Type

other?

any

Returns: PersonaStatDefinition

Properties#

dateCreated#

dateCreated: Date = new Date()

Inherited from EntityBase.dateCreated

Defined in src/EntityBase.ts:18

The date and time that the object was created.


dateModified#

dateModified: Date = new Date()

Inherited from EntityBase.dateModified

Defined in src/EntityBase.ts:23

The date and time that the object was last modified.


default#

default: string = “”

Defined in src/models/PersonaStatDefinition.ts:57


max#

max: string = “”

Defined in src/models/PersonaStatDefinition.ts:47

The maximum possible value that can be used.


min#

min: string = “”

Defined in src/models/PersonaStatDefinition.ts:42

The minimum possible value that can be used.


name#

name: string = “”

Defined in src/models/PersonaStatDefinition.ts:26

The unique name of the statistic.


productUid#

productUid: string | undefined = undefined

Defined in src/models/PersonaStatDefinition.ts:64

The uid of the product that this definition is associated with.

REQUIRES: Persona Services.


type#

type: Type = Type.NUMBER

Defined in src/models/PersonaStatDefinition.ts:37

The data type describing how the statistic’s value is stored.

Possible values are

  • "boolean"

  • "number"

  • "object"

  • "string"


uid#

uid: string = uuid.v4()

Inherited from EntityBase.uid

Defined in src/EntityBase.ts:13

The universally unique identifier of the object.


values#

values: string = “”

Defined in src/models/PersonaStatDefinition.ts:52

A list of all possible values that can be used.


version#

version: number = 0

Inherited from EntityBase.version

Defined in src/EntityBase.ts:28

The optimistic locking version of the object.

Accessors#

ClassName#

Staticget ClassName(): string

Defined in src/models/PersonaStatDefinition.ts:21

Returns: string