API reference: @salmonui/data/json
WireWriteResponseinterface
import type { WireWriteResponse } from '@salmonui/data/json';Also exported from @salmonui/data.
interface WireWriteResponse {
readonly v: 1;
readonly id: string;
readonly fields?: readonly string[];
readonly ok?: readonly {
readonly key: Json;
readonly index?: number;
readonly version?: string;
readonly row?: WireTuple;
}[];
readonly errors?: readonly {
readonly key?: Json;
readonly index?: number;
readonly field?: string;
readonly code: string;
readonly message: string;
}[];
readonly conflicts?: readonly {
readonly key: Json;
readonly server: WireTuple;
readonly version?: string;
}[];
readonly total?: number;
readonly error?: WireError;
}
| Name | Signature | Description |
|---|---|---|
v | readonly v: 1; | |
id | readonly id: string; | |
fieldsoptional | readonly fields?: readonly string[]; | Header for the tuples echoed in |
okoptional | readonly ok?: readonly {
readonly key: Json;
readonly index?: number;
readonly version?: string;
readonly row?: WireTuple;
}[]; | Applied rows. |
errorsoptional | readonly errors?: readonly {
readonly key?: Json;
readonly index?: number;
readonly field?: string;
readonly code: string;
readonly message: string;
}[]; | |
conflictsoptional | readonly conflicts?: readonly {
readonly key: Json;
readonly server: WireTuple;
readonly version?: string;
}[]; | |
totaloptional | readonly total?: number; | |
erroroptional | readonly error?: WireError; |