# WirePivotResponse (@salmonui/data/json)

> The WirePivotResponse interface of @salmonui/data/json.

Canonical: https://salmonui.dev/docs/reference/data/json/WirePivotResponse

```ts
import type { WirePivotResponse } from '@salmonui/data/json';
```

Also exported from `@salmonui/data`.

Entry index: https://salmonui.dev/docs/reference/data/json (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/data/json.md).

## Reference

Kind: interface

```ts
interface WirePivotResponse {
    readonly v: 1;
    readonly id: string;
    readonly resultVersion?: string;
    readonly rowCount?: number;
    readonly columnCount?: number;
    readonly columnDepth?: number;
    readonly rowDepth?: number;
    readonly rowHeaders?: readonly WirePivotHeader[];
    readonly columnHeaders?: readonly WirePivotHeader[];
    readonly cells?: readonly (readonly (number | null)[])[];
    readonly kinds?: readonly string[];
    readonly fields?: readonly string[];
    readonly types?: readonly WireType[];
    readonly rows?: readonly WireTuple[];
    readonly dict?: Readonly<Record<string, readonly string[]>>;
    readonly total?: number;
    readonly error?: WireError;
}
```

Members (17):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `v` | `readonly v: 1;` |  |  |
| `id` | `readonly id: string;` |  |  |
| `resultVersion` | `readonly resultVersion?: string;` | optional | Opaque; changes when the model or the data change. |
| `rowCount` | `readonly rowCount?: number;` | optional | Leaf rows and columns of the full result. |
| `columnCount` | `readonly columnCount?: number;` | optional |  |
| `columnDepth` | `readonly columnDepth?: number;` | optional | Header row count of the column tree and level count of the row tree. |
| `rowDepth` | `readonly rowDepth?: number;` | optional |  |
| `rowHeaders` | `readonly rowHeaders?: readonly WirePivotHeader[];` | optional | The window's header nodes with their ancestors, depth-first. |
| `columnHeaders` | `readonly columnHeaders?: readonly WirePivotHeader[];` | optional |  |
| `cells` | `readonly cells?: readonly (readonly (number \| null)[])[];` | optional | `[row - window.rows[0]][column - window.columns[0]]`; formatted on the client. |
| `kinds` | `readonly kinds?: readonly string[];` | optional | Cell kinds parallel to `cells`, one character per cell (`0` value, `1` subtotal, `2` grand total); omitted when every cell is a value. |
| `fields` | `readonly fields?: readonly string[];` | optional |  |
| `types` | `readonly types?: readonly WireType[];` | optional |  |
| `rows` | `readonly rows?: readonly WireTuple[];` | optional |  |
| `dict` | `readonly dict?: Readonly<Record<string, readonly string[]>>;` | optional |  |
| `total` | `readonly total?: number;` | optional |  |
| `error` | `readonly error?: WireError;` | optional |  |
