Hyperlinkv0.8.0-beta.28

CustomQueueHyperlink

CustomQueueHyperlink.customQueueEntryconstsrc/CustomQueueHyperlink.ts:112
<Sch extends Schema.Top>(itemSchema: Sch): Schema.Struct<{
  readonly item: Sch
  readonly entryId: Schema.String
  readonly key: Schema.optional<Schema.String>
  readonly priority: Schema.Literals<readonly ["high", "normal", "low"]>
  readonly level: Schema.optional<Schema.Number>
  readonly attempts: Schema.Number
  readonly timestamps: Schema.Struct<{
    readonly enqueuedAt: Schema.DateTimeUtc
    readonly startedAt: Schema.optionalKey<Schema.DateTimeUtc>
    readonly completedAt: Schema.optionalKey<Schema.DateTimeUtc>
    readonly interruptedAt: Schema.optionalKey<Schema.DateTimeUtc>
  }>
  readonly batchId: Schema.optional<Schema.String>
  readonly releaseId: Schema.optional<Schema.String>
  readonly sourceHyperlinkId: Schema.optional<Schema.String>
  readonly attributes: Schema.optional<
    Schema.$Record<Schema.String, Schema.Unknown>
  >
}>

Custom queue entry on the wire — like queueEntry plus optional numeric level.

wire schemasqueueEntry
export const customQueueEntry = <Sch extends Schema.Top>(
  itemSchema: Sch,
) =>
  Schema.Struct({
    item: itemSchema,
    entryId: Schema.String,
    key: Schema.optional(Schema.String),
    priority: queuePriority,
    level: Schema.optional(Schema.Number),
    attempts: Schema.Number,
    timestamps: queueEntryTimestamps,
    batchId: Schema.optional(Schema.String),
    releaseId: Schema.optional(Schema.String),
    sourceHyperlinkId: Schema.optional(Schema.String),
    attributes: Schema.optional(queueEntryAttributes),
  });
Referenced by 1 symbols