UNPKG

couchbase

Version:

The official Couchbase Node.js Client Library.

95 lines (94 loc) 3.52 kB
import { AnalyticsScanConsistency, AnalyticsStatus } from './analyticstypes'; import { CppAnalyticsScanConsistency, CppAnalyticsResponseAnalyticsStatus, CppDurabilityLevel, CppDiagEndpointState, CppMutationState, CppDiagPingState, CppQueryProfile, CppQueryScanConsistency, CppSearchHighlightStyle, CppSearchScanConsistency, CppServiceType, CppStoreSemantics, CppTxnExternalException, CppViewScanConsistency, CppViewSortOrder, CppPersistTo, CppReplicateTo, CppTxnOpException } from './binding'; import { CppError } from './binding'; import { EndpointState, PingState } from './diagnosticstypes'; import { ErrorContext } from './errorcontexts'; import { DurabilityLevel, ServiceType, StoreSemantics } from './generaltypes'; import { MutationState } from './mutationstate'; import { QueryProfileMode, QueryScanConsistency } from './querytypes'; import { SearchScanConsistency, HighlightStyle } from './searchtypes'; import { ViewOrdering, ViewScanConsistency } from './viewtypes'; /** * @internal */ export declare function durabilityToCpp(mode: DurabilityLevel | undefined): CppDurabilityLevel; /** * @internal */ export declare function persistToToCpp(persistTo: number | undefined): CppPersistTo; /** * @internal */ export declare function replicateToToCpp(replicateTo: number | undefined): CppReplicateTo; /** * @internal */ export declare function storeSemanticToCpp(mode: StoreSemantics | undefined): CppStoreSemantics; /** * @internal */ export declare function viewScanConsistencyToCpp(mode: ViewScanConsistency | undefined): CppViewScanConsistency | undefined; /** * @internal */ export declare function viewOrderingToCpp(mode: ViewOrdering | undefined): CppViewSortOrder | undefined; /** * @internal */ export declare function queryScanConsistencyToCpp(mode: QueryScanConsistency | undefined): CppQueryScanConsistency | undefined; /** * @internal */ export declare function queryProfileToCpp(mode: QueryProfileMode | undefined): CppQueryProfile; /** * @internal */ export declare function analyticsScanConsistencyToCpp(mode: AnalyticsScanConsistency | undefined): CppAnalyticsScanConsistency; /** * @internal */ export declare function analyticsStatusFromCpp(status: CppAnalyticsResponseAnalyticsStatus): AnalyticsStatus; /** * @internal */ export declare function searchScanConsistencyToCpp(mode: SearchScanConsistency | undefined): CppSearchScanConsistency; /** * @internal */ export declare function searchHighlightStyleToCpp(mode: HighlightStyle | undefined): CppSearchHighlightStyle | undefined; /** * @internal */ export declare function mutationStateToCpp(state: MutationState | undefined): CppMutationState; /** * @internal */ export declare function serviceTypeToCpp(service: ServiceType): CppServiceType; /** * @internal */ export declare function serviceTypeFromCpp(service: CppServiceType): ServiceType; /** * @internal */ export declare function endpointStateFromCpp(service: CppDiagEndpointState): EndpointState; /** * @internal */ export declare function txnExternalExceptionStringFromCpp(cause: CppTxnExternalException): string; /** * @internal */ export declare function txnOpExeptionFromCpp(err: CppTxnOpException | null, ctx: ErrorContext | null): Error | null; /** * @internal */ export declare function pingStateFromCpp(service: CppDiagPingState): PingState; /** * @internal */ export declare function contextFromCpp(err: CppError | null): ErrorContext | null; /** * @internal */ export declare function errorFromCpp(err: CppError | null): Error | null;