Skip to main content

Project

Represents a project

Extends

Constructors

new Project()

new Project(dart): Project

Parameters

ParameterType
dartany

Returns

Project

Overrides

Entity . constructor

Source

src/entities.ts:355

Properties

PropertyModifierTypeInherited from
dartpublicanyEntity.dart
optionspublicany-

Accessors

author

get author(): User

Who created entity *

Returns

User

Source

src/entities.ts:125


children

get children(): Entity[]

Returns

Entity[]

Source

src/entities.ts:418


createdOn

get createdOn(): Dayjs

Time when entity was created *

Returns

Dayjs

Source

src/entities.ts:116


description

get description(): string

Project description

Returns

string

Source

src/entities.ts:382


entityType

get entityType(): string

Entity type name *

Returns

string

Source

src/entities.ts:128


friendlyName

get friendlyName(): string

Entity friendly name

set friendlyName(x): void

Parameters

ParameterType
xstring

Returns

string

Source

src/entities.ts:102


id

get id(): string

Entity ID (GUID)

set id(x): void

Parameters

ParameterType
xstring

Returns

string

Source

src/entities.ts:94


isDashboard

get isDashboard(): boolean

Returns

boolean

Source

src/entities.ts:396


isDirty

get isDirty(): boolean

Project changes flag

Returns

boolean

Source

src/entities.ts:387


isEmpty

get isEmpty(): boolean

Project is empty flag

Returns

boolean

Source

src/entities.ts:392


isLocal

get isLocal(): string

Returns

string

Source

src/entities.ts:377


isOnServer

get isOnServer(): string

Returns

string

Source

src/entities.ts:373


isPackage

get isPackage(): boolean

Returns

boolean

Source

src/entities.ts:400


get links(): Entity[]

Returns

Entity[]

Source

src/entities.ts:414


name

get name(): string

Entity short name

set name(x): void

Parameters

ParameterType
xstring

Returns

string

Source

src/entities.ts:106


nqName

get nqName(): string

Entity full-qualified name

Returns

string

Source

src/entities.ts:110


path

get path(): string

Entity path

Returns

string

Source

src/entities.ts:369


pictureUrl

get pictureUrl(): string

Returns

string

Source

src/entities.ts:365


updatedOn

get updatedOn(): null | Dayjs

Time when entity was updated *

Returns

null | Dayjs

Source

src/entities.ts:119

Methods

addChild()

addChild(entity): void

Parameters

ParameterType
entityDataFrame | Entity

Returns

void

Source

src/entities.ts:428


addLink(entity): void

Parameters

ParameterType
entityDataFrame | Entity

Returns

void

Source

src/entities.ts:422


getProperties()

getProperties(): Promise<object>

Gets entity properties

Returns

Promise<object>

Inherited from

Entity . getProperties

Source

src/entities.ts:131


hasTag()

hasTag(tag): boolean

Parameters

ParameterType
tagstring

Returns

boolean

Inherited from

Entity . hasTag

Source

src/entities.ts:143


newId()

newId(): void

Generates new id for this entity.

Returns

void

Inherited from

Entity . newId

Source

src/entities.ts:98


open()

open(options?): Promise <Project>

Opens the project in workspace

Parameters

ParameterType
options?ProjectOpenOptions

Returns

Promise <Project>

Source

src/entities.ts:409


removeChild()

removeChild(entity): void

Parameters

ParameterType
entityEntity

Returns

void

Source

src/entities.ts:438


removeLink(entity): void

Parameters

ParameterType
entityEntity

Returns

void

Source

src/entities.ts:434


setProperties()

setProperties(props): Promise<any>

Sets entity properties

Parameters

ParameterType
propsobject

Returns

Promise<any>

Inherited from

Entity . setProperties

Source

src/entities.ts:136


tag()

tag(tag): boolean

Adds a specified tag

Parameters

ParameterType
tagstring

Returns

boolean

Inherited from

Entity . tag

Source

src/entities.ts:146


toMarkup()

toMarkup(): string

Returns

string

Source

src/entities.ts:404


toString()

toString(): string

Returns a string representing the object

Returns

string

Inherited from

Entity . toString

Source

src/entities.ts:141


unTag()

unTag(tag): boolean

Removes a specified tag

Parameters

ParameterType
tagstring

Returns

boolean

Inherited from

Entity . unTag

Source

src/entities.ts:149


create()

static create(): Project

Returns

Project

Source

src/entities.ts:363