UNPKG

planning-center-api

Version:

A TypeScript toolkit for building applications on top of the Planning Center API.

74 lines (73 loc) 1.96 kB
import { PlanningCenter } from "../client.js"; import { ApiResponse } from "../types.js"; export interface WorkflowCard { type: "WorkflowCard"; id: string; attributes: { snooze_until?: string | null; overdue?: boolean; stage?: string; calculated_due_at_in_days_ago?: number | null; sticky_assignment?: boolean | null; created_at?: string; updated_at?: string; completed_at?: string | null; flagged_for_notification_at?: string | null; removed_at?: string | null; moved_to_step_at?: string; }; relationships?: { assignee?: { data: { type: string; id: string; }; }; person?: { data: { type: string; id: string; }; }; workflow?: { data: { type: string; id: string; }; }; current_step?: { data: { type: string; id: string; }; }; }; links?: { self?: string; html?: string; }; } export declare class WorkflowCardResource { private client; private personId; constructor(client: PlanningCenter, personId: string); list(): Promise<ApiResponse<WorkflowCard[]>>; get(workflowCardId: string): Promise<ApiResponse<WorkflowCard>>; assignee(workflowCardId: string): WorkflowCardAssigneeResource; } export interface Assignee { type: "Person"; id: string; attributes: { first_name?: string; last_name?: string; [key: string]: any; }; } export declare class WorkflowCardAssigneeResource { private client; private personId; private workflowCardId; constructor(client: PlanningCenter, personId: string, workflowCardId: string); get(): Promise<ApiResponse<Assignee>>; }