Skip to content

AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents

2.7 KB
Raw Blame
export type MoxieCredentials = {
  baseUrl: string;
  apiKey: string;
};

export type ContactCreateRequest = {
  first?: string;
  last?: string;
  email?: string;
  phone?: string;
  notes?: string;
  clientName?: string;
  defaultContact?: boolean;
  portalAccess?: boolean;
  invoiceContact?: boolean;
};

export type ClientListResponse = {
  id: string;
  name: string;
};

export type ProjectSearchResponse = {
  id: string;
  name: string;
  projectTypeId?: string;
  clientId?: string;
};

export type ProjectTaskStageListResponse = {
  id: string;
  label: string;
  hexColor: string;
  complete: boolean;
  clientApproval: boolean;
};

export type ProjectCreateRequest = {
  name: string;
  clientName: string;
  startDate?: string;
  dueDate?: string;
  portalAccess?: string;
  showTimeWorkedInPortal?: boolean;
  feeSchedule?: {
    feeType: string;
    amount?: number;
    estimateMax?: number;
    estimateMin?: number;
    taxable?: boolean;
  };
  templateName?: string;
  customValues?: Record<string, unknown>;
};

export type ClientCreateRequest = {
  name: string;
  clientType?: string;
  initials?: string;
  address1?: string;
  address2?: string;
  city?: string;
  locality?: string;
  postal?: string;
  country?: string;
  website?: string;
  phone?: string;
  color?: string;
  taxId?: string;
  leadSource?: string;
  archive?: boolean;
  payInstructions?: string;
  hourlyAmount?: number;
  roundingIncrement?: number;
  currency?: string;
  stripeClientId?: string;
  notes?: string;
};

export type TaskCreateRequest = {
  name: string;
  clientName?: string;
  projectName?: string;
  status?: string;
  description?: string;
  dueDate?: string;
  startDate?: string;
  priority?: number;
  tasks?: string[];
  assignedTo?: string[];
  customValues?: Record<string, unknown>;
};

export type MoxiePayment = {
  id?: string;
  referenceNumber?: string | null;
};

export type MoxieInvoiceMini = {
  id?: string;
  invoiceNumberFormatted?: string;
  payments?: MoxiePayment[];
};

export type MoxieSimpleAccount = {
  accountId?: number;
  accountName?: string;
};

export type MoxieStoredHook = {
  id: string | null;
  type: string;
  hookUrl: string;
};

export type MoxieContact = {
  id: string;
  firstName?: string | null;
  lastName?: string | null;
  email?: string | null;
  clientId?: string | null;
};

export type MoxieTaskMini = {
  id: string;
  name?: string;
  status?: string;
};

export type MoxieUserAccount = {
  user?: {
    userId?: number;
    firstName?: string | null;
    lastName?: string | null;
    email?: string | null;
  };
};

export type MoxieStage = {
  id: string;
  label: string;
};

export type MoxieEmailTemplateSummary = {
  id: string;
  name: string;
};