Skip to content

SeedItem

Describes one Item to seed, with every identifier resolved to an origin identifier from seedId.

The stored Item receives the Workspace-scoped form of id, as returned by workspaceSeedId for the same key, and keeps id as its origin identifier.

SystemWriteRuntimeInstance.seed

readonly id: string

The origin identifier of the Item, normally from seedId.

SeedItemRaw.id


readonly optional isArchived?: boolean

Whether to seed the Item archived.

false

SeedItemRaw.isArchived


readonly optional key?: string

The Item’s key relative to its parent.

undefined, giving the Item no key

SeedItemRaw.key


readonly optional parentId?: string

The origin identifier of the parent Item.

The Workspace Item

SeedItemRaw.parentId


readonly properties: Record<string, unknown>

Property values keyed by Property key.

SeedItemRaw.properties


readonly optional relations?: Partial<Record<string, string>>

Targets for the Template’s one-to-one and many-to-one Relations, keyed by Relation key, as origin identifiers.

undefined, creating no Relations

SeedItemRaw.relations


readonly optional state?: string | null

The state to seed the Item in.

The Template's default state

SeedItemRaw.state


readonly templatePrn: string

The PRN of the Template to create the Item from.

SeedItemRaw.templatePrn