Skip to content
Sheetwrite

@sheetwrite/core

SavedQuerySourcetype

Report a problem

On this page

Where a saved query reads its data. The host's fetch callback resolves sourceId to bytes or batches and applies any credentials itself. A locator is a public, credential-free address such as an https URL; it never holds tokens, signed parameters or passwords.

Variants 3

{
readonly kind: "csv";
readonly sourceId: string;
readonly locator?: string;
readonly columns: readonly QueryColumnSpec[];
readonly delimiter?: number;
readonly headers?: boolean;
readonly emptyIsNull?: boolean;
}
{
readonly kind: "json";
readonly sourceId: string;
readonly locator?: string;
readonly columns: readonly QueryColumnSpec[];
readonly path?: readonly string[];
}
{
readonly kind: "host";
readonly sourceId: string;
readonly columns: readonly QueryColumnSpec[];
}

Declaration

View full TypeScript declaration
export type SavedQuerySource =
| {
readonly kind: "csv";
readonly sourceId: string;
readonly locator?: string;
readonly columns: readonly QueryColumnSpec[];
readonly delimiter?: number;
readonly headers?: boolean;
readonly emptyIsNull?: boolean;
}
| {
readonly kind: "json";
readonly sourceId: string;
readonly locator?: string;
readonly columns: readonly QueryColumnSpec[];
readonly path?: readonly string[];
}
| {
readonly kind: "host";
readonly sourceId: string;
readonly columns: readonly QueryColumnSpec[];
};

Referenced by

Public exports naming SavedQuerySource