sfcc-cip-analytics-client
Version:
SFCC Commerce Intelligence Platform Analytics Client
16 lines (15 loc) • 447 B
TypeScript
export interface DateRange {
startDate: Date;
endDate: Date;
}
export interface QueryResult<T = any> {
data: T[];
totalRows: number;
}
export declare function formatDateForSQL(date: Date): string;
/**
* Apache calcite does not seem to like trailing semicolons in SQL queries
* @param sql The SQL string to clean
* @returns Cleaned SQL string with normalized whitespace
*/
export declare function cleanSQL(sql: string): string;