UNPKG

sfcc-cip-analytics-client

Version:

SFCC Commerce Intelligence Platform Analytics Client

31 lines (30 loc) 830 B
/** * Normalized Avatica response types with guaranteed JavaScript number types. * These override the generated protobuf types to provide cleaner APIs. */ import { ISignature } from './protocol'; export interface NormalizedFrame { done: boolean; offset: number; rows: any[]; } export interface NormalizedResultSetResponse { connectionId?: string; statementId?: number; ownStatement?: boolean; signature?: ISignature; firstFrame?: NormalizedFrame; updateCount?: number; metadata?: any; } export interface NormalizedExecuteResponse { results?: NormalizedResultSetResponse[]; missingStatement?: boolean; metadata?: any; } export interface NormalizedFetchResponse { frame?: NormalizedFrame; missingStatement?: boolean; missingResults?: boolean; metadata?: any; }