@oneblink/apps-react
    Preparing search index...

    Type Alias LocalFormSubmissionDraft

    LocalFormSubmissionDraft: Omit<FormSubmissionDraft, "id" | "versions"> & {
        isPublic?: boolean;
        versions: FormSubmissionDraftVersion[] | undefined;
    } & (
        | { downloadStatus: "PENDING"
        | "DOWNLOADING"
        | "NOT_AVAILABLE" }
        | { downloadError: string; downloadStatus: "ERROR" }
        | { downloadStatus: "SUCCESS"; draftSubmission: DraftSubmission }
    )

    Type Declaration

    • OptionalisPublic?: boolean

      true if the draft was created by a public user (not logged in).

    • versions: FormSubmissionDraftVersion[] | undefined

      The versions of the draft data. undefined if it has not been uploaded remotely yet.

    • { downloadStatus: "PENDING" | "DOWNLOADING" | "NOT_AVAILABLE" }
    • { downloadError: string; downloadStatus: "ERROR" }
    • { downloadStatus: "SUCCESS"; draftSubmission: DraftSubmission }