core-utils
    Preparing search index...

    Serializable TriggerBody for background job payloads. Recipients and actor use serializable types.

    interface SerializableTriggerBody {
        actor?: SerializableRecipientRequest;
        cancellationKey?: string;
        data?: Record<string, unknown>;
        recipients: SerializableRecipientRequest[];
        workplaceId?: string;
    }

    Hierarchy

    • Omit<TriggerBody, "recipients" | "actor">
      • SerializableTriggerBody
    Index

    Properties

    The trigger actor.

    cancellationKey?: string

    An optional key used to reference a specific trigger request when issuing a cancellation request. You must provide it while triggering in order to enable subsequent cancellation and it should be unique across trigger requests to avoid unintentional cancellations.

    data?: Record<string, unknown>

    An optional map of data to pass into the trigger execution. Limited to 1024 bytes for each string and 10MB overall.

    The recipients to trigger the workflow for.

    workplaceId?: string

    The associated workplace ID.