@cfxlabsinc/b2b-services
    Preparing search index...

    Operator-facing control plane for report Temporal schedules, backing the admin-dashboard Reports surface. The dashboard is the sole master of these schedules: the temporal-worker no longer upserts them, so create / edit / pause / trigger here are authoritative and survive worker deploys.

    Modeled on CacheBusterService: it wraps an infra client (Temporal, not Valkey), and a missing schedule is returned as data (status: "not_scheduled") rather than thrown, because "this report has no schedule yet" is a state the page must render, not a crash. Genuine non-functional faults (Temporal unreachable, gRPC error) still throw.

    Index

    Constructors

    Methods

    • Trigger a single immediate run, overriding the overlap policy for this one action so a manual run is never silently dropped by a SKIP policy. Returns REPORT_SCHEDULE_NOT_FOUND (not a throw) when the schedule is missing, so the UI can steer the operator to create it first.

      Parameters

      • scheduleId: string

      Returns Promise<
          | { ok: true; value: { scheduleId: string } }
          | { error: ServiceError; ok: false },
      >