Skip to main content

ExportServiceDeps

@forge/monorepo


@forge/monorepo / backend/src / ExportServiceDeps

Type Alias: ExportServiceDeps

ExportServiceDeps = object

Defined in: backend/src/export/index.ts:68

Properties

artifacts

readonly artifacts: ArtifactService

Defined in: backend/src/export/index.ts:69


clock?

readonly optional clock?: () => string

Defined in: backend/src/export/index.ts:74

Returns

string


content

readonly content: FileContentStore

Defined in: backend/src/export/index.ts:72


contentKey?

readonly optional contentKey?: () => string

Defined in: backend/src/export/index.ts:77

Returns

string


dispatcher?

readonly optional dispatcher?: ExportDispatcher

Defined in: backend/src/export/index.ts:73


documentDate?

readonly optional documentDate?: () => string

Defined in: backend/src/export/index.ts:85

The date stamped into a rendered PDF.

Defaults to a constant, not to now. AC-6 is byte-for-byte reproducibility, and a real timestamp makes it unachievable — every comparison would fail on a field nobody reads. A deployment that wants real dates in its PDFs sets this and gives up the guarantee knowingly.

Returns

string


exportId?

readonly optional exportId?: () => string

Defined in: backend/src/export/index.ts:75

Returns

string


exports

readonly exports: ArtifactExportStore

Defined in: backend/src/export/index.ts:70


fileId?

readonly optional fileId?: () => string

Defined in: backend/src/export/index.ts:76

Returns

string


files

readonly files: FileMetadataStore

Defined in: backend/src/export/index.ts:71


log?

readonly optional log?: (message, detail?) => void

Defined in: backend/src/export/index.ts:94

Parameters

message

string

detail?

Readonly<Record<string, unknown>>

Returns

void


maxExportBytes?

readonly optional maxExportBytes?: number

Defined in: backend/src/export/index.ts:93

The ceiling on a rendered export.

Injectable rather than a constant, for the reason UploadLimits is in #129: the real ceiling belongs to the storage bucket, and a limit here larger than the bucket's would refuse at the wrong moment with the wrong number. Defaults to MAX_EXPORT_BYTES.