Interface CaseModel

Model used for any kind of customs case.

interface CaseModel {
    aggregated?: AggregatedCaseDataModel;
    createdAt?: Date;
    createdBy?: {
        displayName?: string;
        id?: string;
    };
    customerId?: string;
    customerName?: string;
    documents?: DigicustDocumentModel[];
    environment?: Environment;
    errors?: ErrorModel[];
    executionStrategy?: ExecutionStrategy;
    extractedAt?: Date;
    finishedAt?: Date;
    flags?: {
        [key: string]: string;
    };
    id?: string;
    isPseudonymized?: boolean;
    modifiedBy?: {
        date?: Date;
        displayName?: string;
        id?: string;
    };
    module?: ModuleType;
    moduleCategory?: ModuleCategory;
    moduleId?: string;
    mrnNumber?: Meta<string>;
    procedureMode?: ProcedureMode;
    processing?: ProcessingModel;
    projectId?: string;
    projectName?: string;
    reference?: string;
    startedAt?: Date;
    statistics?: {
        dailyCaseCount?: number;
    };
    status?: Meta<CaseStatus>;
    totalItemsLength?: number;
    uploadedFiles?: UploadedFileModel[];
}

Properties

Aggregated case data

createdAt?: Date

Timestamp when the case was first uploaded

createdBy?: {
    displayName?: string;
    id?: string;
}

Type declaration

  • Optional displayName?: string
  • Optional id?: string
customerId?: string
customerName?: string
documents?: DigicustDocumentModel[]

Customs documents (e.g. invoices, waybills, ...) Each item could only exist in condensed form

environment?: Environment
errors?: ErrorModel[]

Case level errors (property level errors are stored in property)

executionStrategy?: ExecutionStrategy

Information on how the case needs to be processed

extractedAt?: Date

Timestamp when the case finished extraction in rossum/dexter

finishedAt?: Date

Timestamp when case processing finished

flags?: {
    [key: string]: string;
}

custom flags

Type declaration

  • [key: string]: string
id?: string
isPseudonymized?: boolean
modifiedBy?: {
    date?: Date;
    displayName?: string;
    id?: string;
}

Type declaration

  • Optional date?: Date
  • Optional displayName?: string
  • Optional id?: string
module?: ModuleType
moduleCategory?: ModuleCategory
moduleId?: string
mrnNumber?: Meta<string>
procedureMode?: ProcedureMode

Case Type

processing?: ProcessingModel
projectId?: string
projectName?: string
reference?: string
startedAt?: Date

Timestamp when normalization started, case retriggered

statistics?: {
    dailyCaseCount?: number;
}

Type declaration

  • Optional dailyCaseCount?: number

    gives information of this being the # case of today. Basically counts previously cases of customer and project today and adds +1

status?: Meta<CaseStatus>
totalItemsLength?: number
uploadedFiles?: UploadedFileModel[]

Original, uploaded files