Skip to main content

Class: ArchivedChange

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

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:46

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:68

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:73

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:63

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:78

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:58

The original change name.

Returns

string


schemaName

Get Signature

get schemaName(): string

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

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:93

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:83

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

Returns

readonly string[]


workspaces

Get Signature

get workspaces(): readonly string[]

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

Workspaces derived from specIds at runtime.

Returns

readonly string[]