quickbase-js - v3.2.1
    Preparing search index...

    Interface SchemaMethods<S, Dates>

    runQuery, runReport and upsert typed by a schema whose fields carry their types (see guides/schema-aliases.md): a schema table's name types the body and the result. Any other table (a table ID) takes the untyped forms.

    interface SchemaMethods<S, Dates extends boolean> {
        runQuery<
            T extends string,
            const Selected extends readonly FieldRef<S, T>[] = [],
        >(
            body: SchemaQueryBody<S, T, Selected>,
        ): PaginatedRequest<
            SchemaQueryResponse<QueryRecord<S, T, Selected, Dates>>,
        >;
        runQuery<From extends string>(
            body: RunQueryRequest & {
                from: From extends TableName<S> ? never : From;
            },
        ): PaginatedRequest<RunQueryResponse>;
        runReport<T extends string>(
            params: Omit<RunReportParams, "tableId"> & { tableId: T },
        ): PaginatedRequest<
            SchemaQueryResponse<Partial<SchemaRecord<S, T, Dates>>>,
        >;
        runReport<Table extends string>(
            params: RunReportParams & {
                tableId: Table extends TableName<S> ? never : Table;
            },
        ): PaginatedRequest<RunReportResponse>;
        upsert<T extends string>(
            body: SchemaUpsert<S, T>,
        ): PaginatedRequest<SchemaUpsertResponse<S, T>>;
        upsert<To extends string>(
            body: UpsertRequest & { to: To extends TableName<S> ? never : To },
        ): PaginatedRequest<UpsertResponse>;
    }

    Type Parameters

    • S
    • Dates extends boolean
    Index

    Methods