Interface UploadJobInterface

Base entity interface for all platform resources

All entities in the Mosaia platform extend this interface to provide consistent base properties across all resource types. This ensures that all entities have common fields for identification, status, and integration capabilities.

const entity: BaseEntity = {
id: 'entity-123',
active: true,
external_id: 'external-system-id',
extensors: {
custom_field: 'custom_value'
}
};
interface UploadJobInterface {
    active?: boolean;
    external_id?: string;
    extensors?: { [key: string]: string };
    record_history?: RecordHistory;
    id?: string;
    drive: string;
    status: "PENDING" | "UPLOADING" | "COMPLETED" | "FAILED" | "CANCELLED";
    filename: string;
    original_filename?: string;
    s3_key?: string;
    size: number;
    mime_type: string;
    content_type_category?:
        | "IMAGE"
        | "VIDEO"
        | "AUDIO"
        | "DOCUMENT"
        | "ARCHIVE"
        | "CODE"
        | "DATA"
        | "OTHER";
    path?: string;
    file_type?: "FILE"
    | "FOLDER"
    | "SYMLINK";
    presigned_url?: string;
    presigned_url_expires_at: string | Date;
    etag?: string;
    s3_version_id?: string;
    started_at: string | Date;
    completed_at?: string | Date;
    error_summary?: string;
    failed_url?: string;
    status_url?: string;
    duration_ms?: number;
    formatted_duration?: string;
    formatted_size?: string;
    is_expired?: boolean;
}

Hierarchy (View Summary)

Properties

active?: boolean

Whether the entity is active

external_id?: string

External system identifier for integration with third-party systems

extensors?: { [key: string]: string }

Extended properties for custom integrations

record_history?: RecordHistory

Record history tracking information

id?: string

Unique identifier for the entity

drive: string
status: "PENDING" | "UPLOADING" | "COMPLETED" | "FAILED" | "CANCELLED"
filename: string
original_filename?: string
s3_key?: string
size: number
mime_type: string
content_type_category?:
    | "IMAGE"
    | "VIDEO"
    | "AUDIO"
    | "DOCUMENT"
    | "ARCHIVE"
    | "CODE"
    | "DATA"
    | "OTHER"
path?: string
file_type?: "FILE" | "FOLDER" | "SYMLINK"
presigned_url?: string
presigned_url_expires_at: string | Date
etag?: string
s3_version_id?: string
started_at: string | Date
completed_at?: string | Date
error_summary?: string
failed_url?: string
status_url?: string
duration_ms?: number
formatted_duration?: string
formatted_size?: string
is_expired?: boolean