Skip to main content

Class: ArchivedChange

Defined in: packages/core/src/domain/entities/archived-change.ts:34

An immutable historical record of a change that has been archived.

Created during the archive operation and stored in the archive index. Once created, an ArchivedChange is never mutated.

Constructors

Constructor

new ArchivedChange(props): ArchivedChange

Defined in: packages/core/src/domain/entities/archived-change.ts:50

Creates a new ArchivedChange from the given properties.

Parameters

props

ArchivedChangeProps

ArchivedChange construction properties

Returns

ArchivedChange

Accessors

archivedAt

Get Signature

get archivedAt(): Date

Defined in: packages/core/src/domain/entities/archived-change.ts:78

Timestamp when the change was archived.

Returns

Date


archivedBy

Get Signature

get archivedBy(): ActorIdentity | undefined

Defined in: packages/core/src/domain/entities/archived-change.ts:83

Git identity of the actor who archived the change, or undefined if not recorded.

Returns

ActorIdentity | undefined


archivedName

Get Signature

get archivedName(): string

Defined in: packages/core/src/domain/entities/archived-change.ts:68

The name used for the archive directory.

Returns

string


artifacts

Get Signature

get artifacts(): readonly string[]

Defined in: packages/core/src/domain/entities/archived-change.ts:88

Artifact type IDs that were present when the change was archived.

Returns

readonly string[]


name

Get Signature

get name(): string

Defined in: packages/core/src/domain/entities/archived-change.ts:63

The original change name.

Returns

string


schemaName

Get Signature

get schemaName(): string

Defined in: packages/core/src/domain/entities/archived-change.ts:98

Name of the schema that governed the change.

Returns

string


schemaVersion

Get Signature

get schemaVersion(): number

Defined in: packages/core/src/domain/entities/archived-change.ts:103

Version of the schema that governed the change.

Returns

number


specIds

Get Signature

get specIds(): readonly string[]

Defined in: packages/core/src/domain/entities/archived-change.ts:93

Spec paths that were associated with the change at archive time.

Returns

readonly string[]


workspace

Get Signature

get workspace(): SpecPath

Defined in: packages/core/src/domain/entities/archived-change.ts:73

The workspace under which the change's specs lived.

Returns

SpecPath