jmap-kit
    Preparing search index...

    Type Alias EmailImportResponseInvocationArgs

    type EmailImportResponseInvocationArgs = {
        accountId: Id;
        created:
            | Record<Id, Pick<EmailObject, "id" | "blobId" | "threadId" | "size">>
            | null;
        newState: string;
        notCreated:
            | Record<
                Id,
                SetError<
                    "create",
                    "invalidEmail",
                    { existingId: Id; type: "alreadyExists" },
                >,
            >
            | null;
        oldState: string | null;
    }
    Index

    Properties

    accountId: Id

    The id of the account used for this call.

    created:
        | Record<Id, Pick<EmailObject, "id" | "blobId" | "threadId" | "size">>
        | null

    A map of the creation id to an object containing the id, blobId, threadId, and size properties for each successfully imported Email, or null if none.

    newState: string

    The state string that will now be returned by Email/get on this account.

    notCreated:
        | Record<
            Id,
            SetError<
                "create",
                "invalidEmail",
                { existingId: Id; type: "alreadyExists" },
            >,
        >
        | null

    A map of the creation id to a SetError object for each Email that failed to be created, or null if all successful. The possible errors are defined above.

    oldState: string | null

    The state string that would have been returned by Email/get on this account before making the requested changes, or null if the server doesn’t know what the previous state string was.