UNPKG

9.68 kBTypeScriptView Raw
1import { AnalyticsScanConsistency, AnalyticsStatus } from './analyticstypes';
2import { CppAnalyticsResponseAnalyticsStatus, CppAnalyticsScanConsistency, CppDesignDocumentNamespace, CppDiagEndpointState, CppDiagPingState, CppDurabilityLevel, CppError, CppManagementClusterBucketCompression, CppManagementClusterBucketConflictResolution, CppManagementClusterBucketEvictionPolicy, CppManagementClusterBucketStorageBackend, CppManagementClusterBucketType, CppManagementEventingFunctionBucketAccess, CppManagementEventingFunctionDcpBoundary, CppManagementEventingFunctionDeploymentStatus, CppManagementEventingFunctionLanguageCompatibility, CppManagementEventingFunctionLogLevel, CppManagementEventingFunctionProcessingStatus, CppManagementEventingFunctionStatus, CppMutationState, CppPersistTo, CppPrefixScan, CppQueryProfile, CppQueryScanConsistency, CppRangeScan, CppReplicateTo, CppSamplingScan, CppSearchHighlightStyle, CppSearchScanConsistency, CppServiceType, CppStoreSemantics, CppTransactionKeyspace, CppTxnExternalException, CppTxnOpException, CppVectorQueryCombination, CppViewScanConsistency, CppViewSortOrder } from './binding';
3import { BucketType, CompressionMode, ConflictResolutionType, EvictionPolicy, StorageBackend } from './bucketmanager';
4import { EndpointState, PingState } from './diagnosticstypes';
5import { ErrorContext } from './errorcontexts';
6import { DurabilityLevel, ServiceType, StoreSemantics } from './generaltypes';
7import { MutationState } from './mutationstate';
8import { QueryProfileMode, QueryScanConsistency } from './querytypes';
9import { PrefixScan, RangeScan, SamplingScan } from './rangeScan';
10import { HighlightStyle, SearchScanConsistency } from './searchtypes';
11import { TransactionKeyspace } from './transactions';
12import { VectorQueryCombination } from './vectorsearch';
13import { DesignDocumentNamespace, ViewOrdering, ViewScanConsistency } from './viewtypes';
14import { EventingFunctionBucketAccess, EventingFunctionDcpBoundary, EventingFunctionDeploymentStatus, EventingFunctionLanguageCompatibility, EventingFunctionLogLevel, EventingFunctionProcessingStatus, EventingFunctionStatus } from './eventingfunctionmanager';
15/**
16 * @internal
17 */
18export declare function durabilityToCpp(mode: DurabilityLevel | string | undefined): CppDurabilityLevel;
19/**
20 * @internal
21 */
22export declare function durabilityFromCpp(mode: CppDurabilityLevel | undefined): DurabilityLevel | undefined;
23/**
24 * @internal
25 */
26export declare function persistToToCpp(persistTo: number | undefined): CppPersistTo;
27/**
28 * @internal
29 */
30export declare function replicateToToCpp(replicateTo: number | undefined): CppReplicateTo;
31/**
32 * @internal
33 */
34export declare function storeSemanticToCpp(mode: StoreSemantics | undefined): CppStoreSemantics;
35/**
36 * @internal
37 */
38export declare function viewScanConsistencyToCpp(mode: ViewScanConsistency | undefined): CppViewScanConsistency | undefined;
39/**
40 * @internal
41 */
42export declare function viewOrderingToCpp(ordering: ViewOrdering | undefined): CppViewSortOrder | undefined;
43/**
44 * @internal
45 */
46export declare function queryScanConsistencyToCpp(mode: QueryScanConsistency | undefined): CppQueryScanConsistency | undefined;
47/**
48 * @internal
49 */
50export declare function queryScanConsistencyFromCpp(mode: CppQueryScanConsistency | undefined): QueryScanConsistency | undefined;
51/**
52 * @internal
53 */
54export declare function queryProfileToCpp(mode: QueryProfileMode | undefined): CppQueryProfile;
55/**
56 * @internal
57 */
58export declare function analyticsScanConsistencyToCpp(mode: AnalyticsScanConsistency | undefined): CppAnalyticsScanConsistency;
59/**
60 * @internal
61 */
62export declare function analyticsStatusFromCpp(status: CppAnalyticsResponseAnalyticsStatus): AnalyticsStatus;
63/**
64 * @internal
65 */
66export declare function searchScanConsistencyToCpp(mode: SearchScanConsistency | undefined): CppSearchScanConsistency;
67/**
68 * @internal
69 */
70export declare function searchHighlightStyleToCpp(mode: HighlightStyle | undefined): CppSearchHighlightStyle | undefined;
71/**
72 * @internal
73 */
74export declare function mutationStateToCpp(state: MutationState | undefined): CppMutationState;
75/**
76 * @internal
77 */
78export declare function serviceTypeToCpp(service: ServiceType): CppServiceType;
79/**
80 * @internal
81 */
82export declare function serviceTypeFromCpp(service: CppServiceType): ServiceType;
83/**
84 * @internal
85 */
86export declare function endpointStateFromCpp(service: CppDiagEndpointState): EndpointState;
87/**
88 * @internal
89 */
90export declare function txnExternalExceptionStringFromCpp(cause: CppTxnExternalException): string;
91/**
92 * @internal
93 */
94export declare function txnOpExeptionFromCpp(err: CppTxnOpException | null, ctx: ErrorContext | null): Error | null;
95/**
96 * @internal
97 */
98export declare function pingStateFromCpp(service: CppDiagPingState): PingState;
99/**
100 * @internal
101 */
102export declare function contextFromCpp(err: CppError | null): ErrorContext | null;
103/**
104 * @internal
105 */
106export declare function errorFromCpp(err: CppError | null): Error | null;
107/**
108 * @internal
109 */
110export declare function scanTypeToCpp(scanType: RangeScan | SamplingScan | PrefixScan): CppRangeScan | CppSamplingScan | CppPrefixScan;
111/**
112 * @internal
113 */
114export declare function bucketTypeToCpp(type: BucketType | string | undefined): CppManagementClusterBucketType;
115/**
116 * @internal
117 */
118export declare function bucketTypeFromCpp(type: CppManagementClusterBucketType): BucketType | undefined;
119/**
120 * @internal
121 */
122export declare function bucketCompressionModeToCpp(mode: CompressionMode | string | undefined): CppManagementClusterBucketCompression;
123/**
124 * @internal
125 */
126export declare function bucketCompressionModeFromCpp(mode: CppManagementClusterBucketCompression): CompressionMode | undefined;
127/**
128 * @internal
129 */
130export declare function bucketEvictionPolicyToCpp(policy: EvictionPolicy | string | undefined): CppManagementClusterBucketEvictionPolicy;
131/**
132 * @internal
133 */
134export declare function bucketEvictionPolicyFromCpp(policy: CppManagementClusterBucketEvictionPolicy): EvictionPolicy | undefined;
135/**
136 * @internal
137 */
138export declare function bucketStorageBackendToCpp(backend: StorageBackend | string | undefined): CppManagementClusterBucketStorageBackend;
139/**
140 * @internal
141 */
142export declare function bucketStorageBackendFromCpp(backend: CppManagementClusterBucketStorageBackend): StorageBackend | undefined;
143/**
144 * @internal
145 */
146export declare function bucketConflictResolutionTypeToCpp(type: ConflictResolutionType | string | undefined): CppManagementClusterBucketConflictResolution;
147/**
148 * @internal
149 */
150export declare function bucketConflictResolutionTypeFromCpp(type: CppManagementClusterBucketConflictResolution): ConflictResolutionType | undefined;
151/**
152 * @internal
153 */
154export declare function vectorQueryCombinationToCpp(combination: VectorQueryCombination | undefined): CppVectorQueryCombination;
155/**
156 * @internal
157 */
158export declare function designDocumentNamespaceFromCpp(namespace: CppDesignDocumentNamespace): DesignDocumentNamespace;
159/**
160 * @internal
161 */
162export declare function designDocumentNamespaceToCpp(namespace: DesignDocumentNamespace): CppDesignDocumentNamespace;
163/**
164 * @internal
165 */
166export declare function transactionKeyspaceToCpp(keyspace?: TransactionKeyspace): CppTransactionKeyspace | undefined;
167/**
168 * @internal
169 */
170export declare function eventingBucketBindingAccessToCpp(access: EventingFunctionBucketAccess): CppManagementEventingFunctionBucketAccess;
171/**
172 * @internal
173 */
174export declare function eventingBucketBindingAccessFromCpp(access: CppManagementEventingFunctionBucketAccess): EventingFunctionBucketAccess;
175/**
176 * @internal
177 */
178export declare function eventingFunctionDcpBoundaryToCpp(boundary: EventingFunctionDcpBoundary | undefined): CppManagementEventingFunctionDcpBoundary | undefined;
179/**
180 * @internal
181 */
182export declare function eventingFunctionDcpBoundaryFromCpp(boundary: CppManagementEventingFunctionDcpBoundary | undefined): EventingFunctionDcpBoundary | undefined;
183/**
184 * @internal
185 */
186export declare function eventingFunctionDeploymentStatusToCpp(status: EventingFunctionDeploymentStatus | undefined): CppManagementEventingFunctionDeploymentStatus | undefined;
187/**
188 * @internal
189 */
190export declare function eventingFunctionDeploymentStatusFromCpp(status: CppManagementEventingFunctionDeploymentStatus | undefined): EventingFunctionDeploymentStatus | undefined;
191/**
192 * @internal
193 */
194export declare function eventingFunctionProcessingStatusToCpp(status: EventingFunctionProcessingStatus | undefined): CppManagementEventingFunctionProcessingStatus | undefined;
195/**
196 * @internal
197 */
198export declare function eventingFunctionProcessingStatusFromCpp(status: CppManagementEventingFunctionProcessingStatus | undefined): EventingFunctionProcessingStatus | undefined;
199/**
200 * @internal
201 */
202export declare function eventingFunctionLogLevelToCpp(level: EventingFunctionLogLevel | undefined): CppManagementEventingFunctionLogLevel | undefined;
203/**
204 * @internal
205 */
206export declare function eventingFunctionLogLevelFromCpp(level: CppManagementEventingFunctionLogLevel | undefined): EventingFunctionLogLevel | undefined;
207/**
208 * @internal
209 */
210export declare function eventingFunctionLanguageCompatibilityToCpp(compatibility: EventingFunctionLanguageCompatibility | undefined): CppManagementEventingFunctionLanguageCompatibility | undefined;
211/**
212 * @internal
213 */
214export declare function eventingFunctionLanguageCompatibilityFromCpp(compatibility: CppManagementEventingFunctionLanguageCompatibility | undefined): EventingFunctionLanguageCompatibility | undefined;
215/**
216 * @internal
217 */
218export declare function eventingFunctionStatusFromCpp(status: CppManagementEventingFunctionStatus): EventingFunctionStatus;