Node: Boards auflisten

Diese Node ruft alle verfügbaren Boards (inkl. Subboards und Spaltenschema) ab. Sie eignet sich, um IDs & Werte für weitere Nodes wie Projekt erstellen zu ermitteln.

Endpunkt

[GET] https://app.flow-office.eu/api/v1/board/list-boards

Beispiel (cURL)

bash
curl -X GET \
https://app.flow-office.eu/api/v1/board/list-boards \
-H 'Authorization: Bearer YOUR_TOKEN'

Output (vereinfachtes Schema)

Typescript
type TBoard = {
  boardId: number;
  name: string;
  subboards: Array<{ name: string; subboardId: number }>;
  columnSchema: Array<{
    columnKey: string;
    label: string;
    columnType: TColumnType | string;
    columnJSON?: string;
  }>;
};

type ListBoardsOutput = {
  boardGroups: Array<
    | { type: "board"; groupName: string; board: TBoard }
    | {
        type: "group";
        groupName: string;
        groupId: string;
        boards: Array<TBoard>;
      }
  >;
};

Column Types

Typescript
export const ZColumnType = z.enum([
  //mandatory columns
  "name",

  // regular columns
  "text",
  "number",
  "date",
  "checkbox",
  "interval",

  "phone",
  "email",
  "address",

  "rating-stars",
  "erneut-kontaktieren",
  "link",
  "personName",

  "zeitauswertung",

  "formel",

  // columns with options
  "status",
  "dokument",

  // project special columns
  "kunde",
  "teamMember",
  "aufgaben",
  "cloud",
  "lager",
])