UNPKG

gads

Version:

An unofficial JS client library for the SOAP-based DFP Ads API

33 lines (32 loc) 1.14 kB
import { Statement } from './types/statement'; import { String_ValueMapEntry } from './types/string_ValueMapEntry'; import { Value } from './types/value'; export declare class StatementBuilder { protected _select?: string; protected _from?: string; protected _where?: string; protected _orderBy?: string; protected _limit: number; protected _offset: number; protected values: { [id: string]: Value; }; constructor(where?: string, values?: { [id: string]: Value; }, limit?: number, offset?: number); protected _buildValues(): String_ValueMapEntry[]; protected _buildQuery(): string; from(table: string): this; getLimit(): number | undefined; getOffset(): number; getValue(key: string): Value; increaseOffset(delta: number): number; limit(_limit?: number): this; offset(_offset?: number): this; orderBy(orderBy: string): this; protected static _removeKeyword(clause: string, keyword: string): string; select(columns: string): this; toStatement(): Statement; value(key: string, value: Value): this; where(_where: string): this; }