UNPKG

11.3 kBJavaScriptView Raw
1"use strict";
2var __importDefault = (this && this.__importDefault) || function (mod) {
3 return (mod && mod.__esModule) ? mod : { "default": mod };
4};
5Object.defineProperty(exports, "__esModule", { value: true });
6exports.CppTxnExternalException = exports.CppTxnFailureType = exports.CppVectorQueryCombination = exports.CppReadPreference = exports.CppReplicateTo = exports.CppPersistTo = exports.CppStoreSemantics = exports.CppImplSubdocOpcode = exports.CppKeyValueStatusCode = exports.CppErrcNetwork = exports.CppErrcFieldLevelEncryption = exports.CppErrcManagement = exports.CppErrcView = exports.CppErrcSearch = exports.CppErrcAnalytics = exports.CppErrcQuery = exports.CppErrcKeyValue = exports.CppErrcCommon = exports.CppDurabilityLevel = exports.CppAnalyticsResponseAnalyticsStatus = exports.CppViewSortOrder = exports.CppViewScanConsistency = exports.CppViewOnError = exports.CppServiceType = exports.CppSearchScanConsistency = exports.CppSearchHighlightStyle = exports.CppQueryScanConsistency = exports.CppQueryProfile = exports.CppDiagPingState = exports.CppDiagEndpointState = exports.CppDiagClusterState = exports.CppDesignDocumentNamespace = exports.CppAnalyticsScanConsistency = exports.CppProtocolSubdocOpcode = exports.CppRetryReason = exports.CppManagementRbacAuthDomain = exports.CppManagementEventingFunctionProcessingStatus = exports.CppManagementEventingFunctionDeploymentStatus = exports.CppManagementEventingFunctionStatus = exports.CppManagementEventingFunctionBucketAccess = exports.CppManagementEventingFunctionLogLevel = exports.CppManagementEventingFunctionLanguageCompatibility = exports.CppManagementEventingFunctionDcpBoundary = exports.CppManagementClusterBucketStorageBackend = exports.CppManagementClusterBucketConflictResolution = exports.CppManagementClusterBucketEvictionPolicy = exports.CppManagementClusterBucketCompression = exports.CppManagementClusterBucketType = exports.CppManagementAnalyticsCouchbaseLinkEncryptionLevel = exports.zeroCas = void 0;
7/*
8eslint
9jsdoc/require-jsdoc: off,
10@typescript-eslint/no-empty-interface: off
11*/
12const path_1 = __importDefault(require("path"));
13exports.zeroCas = 0;
14//#region Autogenerated Bindings
15var CppManagementAnalyticsCouchbaseLinkEncryptionLevel;
16(function (CppManagementAnalyticsCouchbaseLinkEncryptionLevel) {
17})(CppManagementAnalyticsCouchbaseLinkEncryptionLevel || (exports.CppManagementAnalyticsCouchbaseLinkEncryptionLevel = CppManagementAnalyticsCouchbaseLinkEncryptionLevel = {}));
18var CppManagementClusterBucketType;
19(function (CppManagementClusterBucketType) {
20})(CppManagementClusterBucketType || (exports.CppManagementClusterBucketType = CppManagementClusterBucketType = {}));
21var CppManagementClusterBucketCompression;
22(function (CppManagementClusterBucketCompression) {
23})(CppManagementClusterBucketCompression || (exports.CppManagementClusterBucketCompression = CppManagementClusterBucketCompression = {}));
24var CppManagementClusterBucketEvictionPolicy;
25(function (CppManagementClusterBucketEvictionPolicy) {
26})(CppManagementClusterBucketEvictionPolicy || (exports.CppManagementClusterBucketEvictionPolicy = CppManagementClusterBucketEvictionPolicy = {}));
27var CppManagementClusterBucketConflictResolution;
28(function (CppManagementClusterBucketConflictResolution) {
29})(CppManagementClusterBucketConflictResolution || (exports.CppManagementClusterBucketConflictResolution = CppManagementClusterBucketConflictResolution = {}));
30var CppManagementClusterBucketStorageBackend;
31(function (CppManagementClusterBucketStorageBackend) {
32})(CppManagementClusterBucketStorageBackend || (exports.CppManagementClusterBucketStorageBackend = CppManagementClusterBucketStorageBackend = {}));
33var CppManagementEventingFunctionDcpBoundary;
34(function (CppManagementEventingFunctionDcpBoundary) {
35})(CppManagementEventingFunctionDcpBoundary || (exports.CppManagementEventingFunctionDcpBoundary = CppManagementEventingFunctionDcpBoundary = {}));
36var CppManagementEventingFunctionLanguageCompatibility;
37(function (CppManagementEventingFunctionLanguageCompatibility) {
38})(CppManagementEventingFunctionLanguageCompatibility || (exports.CppManagementEventingFunctionLanguageCompatibility = CppManagementEventingFunctionLanguageCompatibility = {}));
39var CppManagementEventingFunctionLogLevel;
40(function (CppManagementEventingFunctionLogLevel) {
41})(CppManagementEventingFunctionLogLevel || (exports.CppManagementEventingFunctionLogLevel = CppManagementEventingFunctionLogLevel = {}));
42var CppManagementEventingFunctionBucketAccess;
43(function (CppManagementEventingFunctionBucketAccess) {
44})(CppManagementEventingFunctionBucketAccess || (exports.CppManagementEventingFunctionBucketAccess = CppManagementEventingFunctionBucketAccess = {}));
45var CppManagementEventingFunctionStatus;
46(function (CppManagementEventingFunctionStatus) {
47})(CppManagementEventingFunctionStatus || (exports.CppManagementEventingFunctionStatus = CppManagementEventingFunctionStatus = {}));
48var CppManagementEventingFunctionDeploymentStatus;
49(function (CppManagementEventingFunctionDeploymentStatus) {
50})(CppManagementEventingFunctionDeploymentStatus || (exports.CppManagementEventingFunctionDeploymentStatus = CppManagementEventingFunctionDeploymentStatus = {}));
51var CppManagementEventingFunctionProcessingStatus;
52(function (CppManagementEventingFunctionProcessingStatus) {
53})(CppManagementEventingFunctionProcessingStatus || (exports.CppManagementEventingFunctionProcessingStatus = CppManagementEventingFunctionProcessingStatus = {}));
54var CppManagementRbacAuthDomain;
55(function (CppManagementRbacAuthDomain) {
56})(CppManagementRbacAuthDomain || (exports.CppManagementRbacAuthDomain = CppManagementRbacAuthDomain = {}));
57var CppRetryReason;
58(function (CppRetryReason) {
59})(CppRetryReason || (exports.CppRetryReason = CppRetryReason = {}));
60var CppProtocolSubdocOpcode;
61(function (CppProtocolSubdocOpcode) {
62})(CppProtocolSubdocOpcode || (exports.CppProtocolSubdocOpcode = CppProtocolSubdocOpcode = {}));
63var CppAnalyticsScanConsistency;
64(function (CppAnalyticsScanConsistency) {
65})(CppAnalyticsScanConsistency || (exports.CppAnalyticsScanConsistency = CppAnalyticsScanConsistency = {}));
66var CppDesignDocumentNamespace;
67(function (CppDesignDocumentNamespace) {
68})(CppDesignDocumentNamespace || (exports.CppDesignDocumentNamespace = CppDesignDocumentNamespace = {}));
69var CppDiagClusterState;
70(function (CppDiagClusterState) {
71})(CppDiagClusterState || (exports.CppDiagClusterState = CppDiagClusterState = {}));
72var CppDiagEndpointState;
73(function (CppDiagEndpointState) {
74})(CppDiagEndpointState || (exports.CppDiagEndpointState = CppDiagEndpointState = {}));
75var CppDiagPingState;
76(function (CppDiagPingState) {
77})(CppDiagPingState || (exports.CppDiagPingState = CppDiagPingState = {}));
78var CppQueryProfile;
79(function (CppQueryProfile) {
80})(CppQueryProfile || (exports.CppQueryProfile = CppQueryProfile = {}));
81var CppQueryScanConsistency;
82(function (CppQueryScanConsistency) {
83})(CppQueryScanConsistency || (exports.CppQueryScanConsistency = CppQueryScanConsistency = {}));
84var CppSearchHighlightStyle;
85(function (CppSearchHighlightStyle) {
86})(CppSearchHighlightStyle || (exports.CppSearchHighlightStyle = CppSearchHighlightStyle = {}));
87var CppSearchScanConsistency;
88(function (CppSearchScanConsistency) {
89})(CppSearchScanConsistency || (exports.CppSearchScanConsistency = CppSearchScanConsistency = {}));
90var CppServiceType;
91(function (CppServiceType) {
92})(CppServiceType || (exports.CppServiceType = CppServiceType = {}));
93var CppViewOnError;
94(function (CppViewOnError) {
95})(CppViewOnError || (exports.CppViewOnError = CppViewOnError = {}));
96var CppViewScanConsistency;
97(function (CppViewScanConsistency) {
98})(CppViewScanConsistency || (exports.CppViewScanConsistency = CppViewScanConsistency = {}));
99var CppViewSortOrder;
100(function (CppViewSortOrder) {
101})(CppViewSortOrder || (exports.CppViewSortOrder = CppViewSortOrder = {}));
102var CppAnalyticsResponseAnalyticsStatus;
103(function (CppAnalyticsResponseAnalyticsStatus) {
104})(CppAnalyticsResponseAnalyticsStatus || (exports.CppAnalyticsResponseAnalyticsStatus = CppAnalyticsResponseAnalyticsStatus = {}));
105var CppDurabilityLevel;
106(function (CppDurabilityLevel) {
107})(CppDurabilityLevel || (exports.CppDurabilityLevel = CppDurabilityLevel = {}));
108var CppErrcCommon;
109(function (CppErrcCommon) {
110})(CppErrcCommon || (exports.CppErrcCommon = CppErrcCommon = {}));
111var CppErrcKeyValue;
112(function (CppErrcKeyValue) {
113})(CppErrcKeyValue || (exports.CppErrcKeyValue = CppErrcKeyValue = {}));
114var CppErrcQuery;
115(function (CppErrcQuery) {
116})(CppErrcQuery || (exports.CppErrcQuery = CppErrcQuery = {}));
117var CppErrcAnalytics;
118(function (CppErrcAnalytics) {
119})(CppErrcAnalytics || (exports.CppErrcAnalytics = CppErrcAnalytics = {}));
120var CppErrcSearch;
121(function (CppErrcSearch) {
122})(CppErrcSearch || (exports.CppErrcSearch = CppErrcSearch = {}));
123var CppErrcView;
124(function (CppErrcView) {
125})(CppErrcView || (exports.CppErrcView = CppErrcView = {}));
126var CppErrcManagement;
127(function (CppErrcManagement) {
128})(CppErrcManagement || (exports.CppErrcManagement = CppErrcManagement = {}));
129var CppErrcFieldLevelEncryption;
130(function (CppErrcFieldLevelEncryption) {
131})(CppErrcFieldLevelEncryption || (exports.CppErrcFieldLevelEncryption = CppErrcFieldLevelEncryption = {}));
132var CppErrcNetwork;
133(function (CppErrcNetwork) {
134})(CppErrcNetwork || (exports.CppErrcNetwork = CppErrcNetwork = {}));
135var CppKeyValueStatusCode;
136(function (CppKeyValueStatusCode) {
137})(CppKeyValueStatusCode || (exports.CppKeyValueStatusCode = CppKeyValueStatusCode = {}));
138var CppImplSubdocOpcode;
139(function (CppImplSubdocOpcode) {
140})(CppImplSubdocOpcode || (exports.CppImplSubdocOpcode = CppImplSubdocOpcode = {}));
141var CppStoreSemantics;
142(function (CppStoreSemantics) {
143})(CppStoreSemantics || (exports.CppStoreSemantics = CppStoreSemantics = {}));
144var CppPersistTo;
145(function (CppPersistTo) {
146})(CppPersistTo || (exports.CppPersistTo = CppPersistTo = {}));
147var CppReplicateTo;
148(function (CppReplicateTo) {
149})(CppReplicateTo || (exports.CppReplicateTo = CppReplicateTo = {}));
150var CppReadPreference;
151(function (CppReadPreference) {
152})(CppReadPreference || (exports.CppReadPreference = CppReadPreference = {}));
153var CppVectorQueryCombination;
154(function (CppVectorQueryCombination) {
155})(CppVectorQueryCombination || (exports.CppVectorQueryCombination = CppVectorQueryCombination = {}));
156var CppTxnFailureType;
157(function (CppTxnFailureType) {
158})(CppTxnFailureType || (exports.CppTxnFailureType = CppTxnFailureType = {}));
159var CppTxnExternalException;
160(function (CppTxnExternalException) {
161})(CppTxnExternalException || (exports.CppTxnExternalException = CppTxnExternalException = {}));
162// CN_PREBUILD_PATH_OVERRIDE is meant to help for webpack scenarios. Webpack's EnvironmentPlugin
163// can be used to set the path of the desired prebuild which will allow the node-loader package
164// to pull in the corresponding prebuild.
165const binding = process.env.CN_PREBUILD_PATH_OVERRIDE
166 ? // eslint-disable-next-line @typescript-eslint/no-var-requires
167 require(process.env.CN_PREBUILD_PATH_OVERRIDE)
168 : // eslint-disable-next-line @typescript-eslint/no-var-requires
169 require('../scripts/prebuilds').loadPrebuild(path_1.default.resolve(__dirname, '..'));
170exports.default = binding;