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

    Type Alias FilePreviewData

    FilePreviewData:
        | {
            header: string[];
            kind: "csv";
            rows: string[][];
            totalRows: number
            | null;
            truncated: { columns: boolean; text: boolean };
        }
        | { complete: boolean; kind: "text"; text: string }
        | { kind: "xlsx"; sheets: XlsxSheetPreview[]; totalSheets: number }
        | { kind: "tooLarge" }
        | { kind: "binary" }

    Type Declaration

    • {
          header: string[];
          kind: "csv";
          rows: string[][];
          totalRows: number | null;
          truncated: { columns: boolean; text: boolean };
      }
      • header: string[]
      • kind: "csv"
      • rows: string[][]
      • totalRows: number | null

        Every data row in the file, or null when the preview read only part of it.

      • truncated: { columns: boolean; text: boolean }

        Whether columns or text past the preview's limits exist; rows are totalRows.

    • { complete: boolean; kind: "text"; text: string }
    • { kind: "xlsx"; sheets: XlsxSheetPreview[]; totalSheets: number }
      • kind: "xlsx"
      • sheets: XlsxSheetPreview[]
      • totalSheets: number

        Every sheet in the workbook, shown or not.

    • { kind: "tooLarge" }

      A workbook over a preview's byte budget, which it does not parse.

    • { kind: "binary" }