Skip to main content

ArtifactVersion

@forge/monorepo


@forge/monorepo / backend/src / ArtifactVersion

Type Alias: ArtifactVersion

ArtifactVersion = object

Defined in: backend/src/persistence/index.ts:924

One version's content, by reference — AC-5.

contentRef points into BlobStore, which stores JSON, which is what markdown-and-structured-content is once it is a value. The row holds no content: an artifact is the thing a user exports, so it grows without limit, and a table row is the wrong place for something unbounded — the same reasoning that kept file bytes out of files in #129.

Properties

artifactId

readonly artifactId: ArtifactId

Defined in: backend/src/persistence/index.ts:926


byteSize

readonly byteSize: number

Defined in: backend/src/persistence/index.ts:930


checksum?

readonly optional checksum?: string

Defined in: backend/src/persistence/index.ts:931


contentRef

readonly contentRef: BlobRef

Defined in: backend/src/persistence/index.ts:929


createdAt

readonly createdAt: string

Defined in: backend/src/persistence/index.ts:934


createdBy

readonly createdBy: PrincipalId

Defined in: backend/src/persistence/index.ts:933


id

readonly id: ArtifactVersionId

Defined in: backend/src/persistence/index.ts:925


provenance

readonly provenance: ArtifactProvenance

Defined in: backend/src/persistence/index.ts:932


version

readonly version: number

Defined in: backend/src/persistence/index.ts:928

1-based and contiguous. A gap would make "the previous version" ambiguous.