CMS / foldkit-cms-drizzle

ImportItem

interface · packages/cms-drizzle/src/index.ts:212

interface ImportItem<P> {
  readonly type: string
  readonly values: unknown
  readonly as: P
  readonly at?: Date | undefined
  readonly entry?: string | undefined
}

One import: content published already, such as a site's first pages or what another CMS held. as is whom it is imported as (an editor, so the create handler writes the row); a runner that imports many fixes as once and varies the rest. at is when it was published (default now); entry names the entry (default a new id) — name it where another import points at it, and import what is pointed at first.

Members

ImportItem.type

property · packages/cms-drizzle/src/index.ts:213

readonly type: string

ImportItem.values

property · packages/cms-drizzle/src/index.ts:214

readonly values: unknown

ImportItem.as

property · packages/cms-drizzle/src/index.ts:215

readonly as: P

ImportItem.at

property · packages/cms-drizzle/src/index.ts:216

readonly at?: Date | undefined

ImportItem.entry

property · packages/cms-drizzle/src/index.ts:217

readonly entry?: string | undefined