@azure/cosmos
Version:
Microsoft Azure Cosmos DB Service Node.js SDK for SQL API
58 lines • 1.42 kB
TypeScript
import { CosmosHeaders } from "../index";
export interface ErrorBody {
code: string;
message: string;
/**
* @hidden
*/
additionalErrorInfo?: PartitionedQueryExecutionInfo;
}
/**
* @hidden
*/
export interface PartitionedQueryExecutionInfo {
partitionedQueryExecutionInfoVersion: number;
queryInfo: QueryInfo;
queryRanges: QueryRange[];
}
/**
* @hidden
*/
export interface QueryRange {
min: string;
max: string;
isMinInclusive: boolean;
isMaxInclusive: boolean;
}
/**
* @hidden
*/
export interface QueryInfo {
top?: any;
orderBy?: any[];
orderByExpressions?: any[];
offset?: number;
limit?: number;
aggregates?: AggregateType[];
groupByExpressions?: GroupByExpressions;
groupByAliasToAggregateType: GroupByAliasToAggregateType;
rewrittenQuery?: any;
distinctType: string;
hasSelectValue: boolean;
}
export declare type GroupByExpressions = string[];
export declare type AggregateType = "Average" | "Count" | "Max" | "Min" | "Sum";
export interface GroupByAliasToAggregateType {
[key: string]: AggregateType;
}
export interface ErrorResponse extends Error {
code?: number;
substatus?: number;
body?: ErrorBody;
headers?: CosmosHeaders;
activityId?: string;
retryAfterInMs?: number;
retryAfterInMilliseconds?: number;
[key: string]: any;
}
//# sourceMappingURL=ErrorResponse.d.ts.map