Anchorage API reference
    Preparing search index...

    Interface FencedScheduleMutationCapability

    Epoch activation can race a waiting request, so this contract applies before activation.

    interface FencedScheduleMutationCapability {
        database: SignalDatabase & Required<Pick<SignalDatabase, "batch">>;
        createOwnedSchedule(
            schedule: AuthorizedSchedule,
            owner: ResourceOwner,
            maxSchedules: number,
            context: MutationEpochContext,
        ): Promise<Schedule | null>;
        deleteOwnedSchedule(
            id: string,
            context: MutationEpochContext,
        ): Promise<"pending" | "deleted">;
        observeScheduleMutation(
            id: string,
            operation: "resume" | "pause",
            context: MutationEpochContext,
        ): Promise<Schedule | null>;
        pauseSchedule(id: string, context: MutationEpochContext): Promise<Schedule>;
        resumeSchedule(
            id: string,
            mutation: ScheduleResumeMutation,
            context: MutationEpochContext,
        ): Promise<Schedule>;
        updateSchedule(
            id: string,
            patch: ScheduleUpdate,
            context: MutationEpochContext,
        ): Promise<Schedule>;
    }
    Index

    Properties

    database: SignalDatabase & Required<Pick<SignalDatabase, "batch">>

    Methods