Documents (4)
Metadata (2)
Document Versions (2)
Content (1)
Document Types (4)
Document Links (3)
Constants (2)
▶
DocumentLifecycleState
enum (4 values)
#
'active'
'retained'
'pending_disposition'
'destroyed'
▶
RetentionTrigger
enum (4 values)
#
'case_closure'
'application_denial'
'document_date'
'submission_date'
Types (12)
▶
Document
13 fields
#
interface Document {
id: string
documentTypeId: string
title: string
documentDate?: string
lifecycleState: enum: "active", "retained", "pending_disposition", "destroyed"
legalHold: boolean
latestVersionId: string
retentionDeadline?: string
metadata?: object
dispositionApprovedBy?: string
dispositionApprovedAt?: string
createdAt: string
updatedAt: string
}
▶
DocumentUpdate
2 fields
#
interface DocumentUpdate {
title?: string
documentDate?: string
}
▶
DocumentList
5 fields
#
interface DocumentList {
items: array[object]
total: number
limit: number
offset: number
hasNext: boolean
}
▶
DocumentVersion
9 fields
#
interface DocumentVersion {
id: string
documentId: string
versionNumber: number
fileName: string
mimeType: string
sizeBytes: number
contentHash: string
uploadedById: string
createdAt: string
}
▶
DocumentType
7 fields
#
interface DocumentType {
id: string
name: string
retentionYears: number
retentionTrigger: enum: "case_closure", "application_denial", "document_date", "submission_date"
source: enum: "system", "user"
createdAt: string
updatedAt: string
}
▶
DocumentTypeCreate
3 fields
#
interface DocumentTypeCreate {
name: string
retentionYears: number
retentionTrigger: enum: "case_closure", "application_denial", "document_date", "submission_date"
}
▶
DocumentTypeList
5 fields
#
interface DocumentTypeList {
items: array[object]
total: number
limit: number
offset: number
hasNext: boolean
}
▶
DocumentLink
7 fields
#
interface DocumentLink {
id: string
documentId: string
subjectType: enum: "application", "case"
subjectId: string
linkedBy: string
closedAt?: string
createdAt: string
}
▶
DocumentLinkCreate
3 fields
#
interface DocumentLinkCreate {
documentId: string
subjectType: enum: "application", "case"
subjectId: string
}
▶
DocumentLinkList
5 fields
#
interface DocumentLinkList {
items: array[object]
total: number
limit: number
offset: number
hasNext: boolean
}
▶
DocumentTypeWritable
6 fields
#
interface DocumentTypeWritable {
id: string
name: string
retentionYears: number
retentionTrigger: enum: "case_closure", "application_denial", "document_date", "submission_date"
createdAt: string
updatedAt: string
}
▶
DocumentTypeListWritable
5 fields
#
interface DocumentTypeListWritable {
items: array[object]
total: number
limit: number
offset: number
hasNext: boolean
}