couchbase 4.2.10 → 4.2.11
Sign up to get free protection for your applications and to get access to all the features.
- package/deps/couchbase-cxx-client/CMakeLists.txt +1 -0
- package/deps/couchbase-cxx-client/cmake/ThirdPartyDependencies.cmake +2 -0
- package/deps/couchbase-cxx-client/core/bucket.cxx +25 -10
- package/deps/couchbase-cxx-client/core/bucket.hxx +1 -0
- package/deps/couchbase-cxx-client/core/cluster.cxx +29 -3
- package/deps/couchbase-cxx-client/core/impl/collection.cxx +2 -2
- package/deps/couchbase-cxx-client/core/impl/query_index_manager.cxx +6 -6
- package/deps/couchbase-cxx-client/core/io/http_session_manager.hxx +7 -1
- package/deps/couchbase-cxx-client/core/io/mcbp_command.hxx +10 -0
- package/deps/couchbase-cxx-client/core/io/mcbp_session.cxx +35 -1
- package/deps/couchbase-cxx-client/core/io/mcbp_session.hxx +2 -0
- package/deps/couchbase-cxx-client/core/management/design_document.hxx +1 -1
- package/deps/couchbase-cxx-client/core/meta/features.hxx +16 -1
- package/deps/couchbase-cxx-client/core/operations/document_lookup_in_all_replicas.hxx +1 -1
- package/deps/couchbase-cxx-client/core/operations/document_lookup_in_any_replica.hxx +1 -1
- package/deps/couchbase-cxx-client/core/operations/document_query.cxx +2 -2
- package/deps/couchbase-cxx-client/core/operations/document_search.cxx +10 -10
- package/deps/couchbase-cxx-client/core/operations/document_view.cxx +3 -0
- package/deps/couchbase-cxx-client/core/operations/document_view.hxx +1 -0
- package/deps/couchbase-cxx-client/core/operations/management/query_index_create.cxx +24 -13
- package/deps/couchbase-cxx-client/core/operations/management/query_index_create.hxx +1 -1
- package/deps/couchbase-cxx-client/core/origin.cxx +14 -0
- package/deps/couchbase-cxx-client/core/origin.hxx +6 -0
- package/deps/couchbase-cxx-client/core/protocol/status.cxx +2 -0
- package/deps/couchbase-cxx-client/core/protocol/status.hxx +1 -0
- package/deps/couchbase-cxx-client/core/range_scan_load_balancer.cxx +141 -0
- package/deps/couchbase-cxx-client/core/range_scan_load_balancer.hxx +64 -0
- package/deps/couchbase-cxx-client/core/range_scan_orchestrator.cxx +224 -336
- package/deps/couchbase-cxx-client/core/range_scan_orchestrator.hxx +5 -6
- package/deps/couchbase-cxx-client/core/range_scan_orchestrator_options.hxx +6 -4
- package/deps/couchbase-cxx-client/core/scan_result.hxx +1 -11
- package/deps/couchbase-cxx-client/core/topology/capabilities.hxx +70 -1
- package/deps/couchbase-cxx-client/core/topology/capabilities_fmt.hxx +30 -2
- package/deps/couchbase-cxx-client/core/topology/configuration.hxx +1 -34
- package/deps/couchbase-cxx-client/core/topology/configuration_fmt.hxx +2 -2
- package/deps/couchbase-cxx-client/core/topology/configuration_json.hxx +43 -20
- package/deps/couchbase-cxx-client/core/transactions/internal/exceptions_internal.hxx +5 -0
- package/deps/couchbase-cxx-client/couchbase/bucket.hxx +2 -2
- package/deps/couchbase-cxx-client/couchbase/cluster.hxx +1 -1
- package/deps/couchbase-cxx-client/couchbase/collection.hxx +1 -0
- package/deps/couchbase-cxx-client/couchbase/collection_query_index_manager.hxx +80 -11
- package/deps/couchbase-cxx-client/couchbase/error_context.hxx +1 -0
- package/deps/couchbase-cxx-client/couchbase/fmt/key_value_status_code.hxx +3 -1
- package/deps/couchbase-cxx-client/couchbase/get_links_analytics_options.hxx +2 -2
- package/deps/couchbase-cxx-client/couchbase/key_value_status_code.hxx +1 -0
- package/deps/couchbase-cxx-client/couchbase/query_index_manager.hxx +6 -8
- package/deps/couchbase-cxx-client/couchbase/scope.hxx +1 -1
- package/deps/couchbase-cxx-client/couchbase/search_options.hxx +2 -2
- package/deps/couchbase-cxx-client/couchbase/search_result.hxx +1 -1
- package/deps/couchbase-cxx-client/couchbase/subdocument_error_context.hxx +1 -0
- package/deps/couchbase-cxx-client/couchbase/transactions/transaction_options.hxx +1 -1
- package/deps/couchbase-cxx-client/couchbase-sdk-cxx-black-duck-manifest.yaml +1 -0
- package/dist/binding.d.ts +24 -2
- package/dist/bindingutilities.d.ts +11 -3
- package/dist/bindingutilities.js +33 -7
- package/dist/couchbase.d.ts +1 -0
- package/dist/couchbase.js +1 -0
- package/dist/queryindexmanager.d.ts +4 -4
- package/dist/queryindexmanager.js +7 -7
- package/dist/scope.d.ts +21 -0
- package/dist/scope.js +34 -0
- package/dist/scopesearchindexmanager.d.ts +116 -0
- package/dist/scopesearchindexmanager.js +406 -0
- package/dist/sdspecs.js +10 -9
- package/dist/sdutils.d.ts +1 -0
- package/dist/sdutils.js +4 -0
- package/dist/searchexecutor.d.ts +3 -1
- package/dist/searchexecutor.js +9 -2
- package/dist/searchindexmanager.d.ts +58 -3
- package/dist/searchindexmanager.js +188 -104
- package/dist/viewexecutor.js +13 -9
- package/dist/viewindexmanager.d.ts +70 -7
- package/dist/viewindexmanager.js +236 -103
- package/dist/viewtypes.d.ts +26 -0
- package/dist/viewtypes.js +17 -1
- package/package.json +7 -7
- package/src/constants.cpp +1 -0
- package/src/jstocbpp_autogen.hpp +89 -7
- package/deps/couchbase-cxx-client/core/scan_options.hxx +0 -44
package/package.json
CHANGED
@@ -54,7 +54,7 @@
|
|
54
54
|
"type": "git",
|
55
55
|
"url": "http://github.com/couchbase/couchnode.git"
|
56
56
|
},
|
57
|
-
"version": "4.2.
|
57
|
+
"version": "4.2.11",
|
58
58
|
"config": {
|
59
59
|
"native": false
|
60
60
|
},
|
@@ -79,12 +79,12 @@
|
|
79
79
|
]
|
80
80
|
},
|
81
81
|
"optionalDependencies": {
|
82
|
-
"@couchbase/couchbase-darwin-arm64-napi": "4.2.
|
83
|
-
"@couchbase/couchbase-darwin-x64-napi": "4.2.
|
84
|
-
"@couchbase/couchbase-linux-arm64-napi": "4.2.
|
85
|
-
"@couchbase/couchbase-linuxmusl-x64-napi": "4.2.
|
86
|
-
"@couchbase/couchbase-linux-x64-napi": "4.2.
|
87
|
-
"@couchbase/couchbase-win32-x64-napi": "4.2.
|
82
|
+
"@couchbase/couchbase-darwin-arm64-napi": "4.2.11",
|
83
|
+
"@couchbase/couchbase-darwin-x64-napi": "4.2.11",
|
84
|
+
"@couchbase/couchbase-linux-arm64-napi": "4.2.11",
|
85
|
+
"@couchbase/couchbase-linuxmusl-x64-napi": "4.2.11",
|
86
|
+
"@couchbase/couchbase-linux-x64-napi": "4.2.11",
|
87
|
+
"@couchbase/couchbase-win32-x64-napi": "4.2.11"
|
88
88
|
},
|
89
89
|
"files": [
|
90
90
|
"LICENSE",
|
package/src/constants.cpp
CHANGED
@@ -865,6 +865,7 @@ void Constants::InitAutogen(Napi::Env env, Napi::Object exports)
|
|
865
865
|
couchbase::key_value_status_code::opaque_no_match},
|
866
866
|
{"locked", couchbase::key_value_status_code::locked},
|
867
867
|
{"not_locked", couchbase::key_value_status_code::not_locked},
|
868
|
+
{"config_only", couchbase::key_value_status_code::config_only},
|
868
869
|
{"auth_stale", couchbase::key_value_status_code::auth_stale},
|
869
870
|
{"auth_error", couchbase::key_value_status_code::auth_error},
|
870
871
|
{"auth_continue",
|
package/src/jstocbpp_autogen.hpp
CHANGED
@@ -19,7 +19,6 @@
|
|
19
19
|
#include <core/operations/management/user.hxx>
|
20
20
|
#include <core/operations/management/view.hxx>
|
21
21
|
#include <core/range_scan_orchestrator_options.hxx>
|
22
|
-
#include <core/scan_options.hxx>
|
23
22
|
|
24
23
|
namespace couchnode
|
25
24
|
{
|
@@ -411,7 +410,7 @@ struct js_to_cbpp_t<couchbase::core::management::views::design_document> {
|
|
411
410
|
{
|
412
411
|
auto jsObj = jsVal.ToObject();
|
413
412
|
couchbase::core::management::views::design_document cppObj;
|
414
|
-
js_to_cbpp<std::string
|
413
|
+
js_to_cbpp<std::optional<std::string>>(cppObj.rev, jsObj.Get("rev"));
|
415
414
|
js_to_cbpp<std::string>(cppObj.name, jsObj.Get("name"));
|
416
415
|
js_to_cbpp<couchbase::core::design_document_namespace>(cppObj.ns,
|
417
416
|
jsObj.Get("ns"));
|
@@ -425,7 +424,8 @@ struct js_to_cbpp_t<couchbase::core::management::views::design_document> {
|
|
425
424
|
const couchbase::core::management::views::design_document &cppObj)
|
426
425
|
{
|
427
426
|
auto resObj = Napi::Object::New(env);
|
428
|
-
resObj.Set("rev",
|
427
|
+
resObj.Set("rev",
|
428
|
+
cbpp_to_js<std::optional<std::string>>(env, cppObj.rev));
|
429
429
|
resObj.Set("name", cbpp_to_js<std::string>(env, cppObj.name));
|
430
430
|
resObj.Set("ns", cbpp_to_js<couchbase::core::design_document_namespace>(
|
431
431
|
env, cppObj.ns));
|
@@ -3874,6 +3874,10 @@ struct js_to_cbpp_t<couchbase::core::operations::search_request> {
|
|
3874
3874
|
js_to_cbpp<std::string>(cppObj.index_name, jsObj.Get("index_name"));
|
3875
3875
|
js_to_cbpp<couchbase::core::json_string>(cppObj.query,
|
3876
3876
|
jsObj.Get("query"));
|
3877
|
+
js_to_cbpp<std::optional<std::string>>(cppObj.bucket_name,
|
3878
|
+
jsObj.Get("bucket_name"));
|
3879
|
+
js_to_cbpp<std::optional<std::string>>(cppObj.scope_name,
|
3880
|
+
jsObj.Get("scope_name"));
|
3877
3881
|
js_to_cbpp<std::optional<bool>>(cppObj.show_request,
|
3878
3882
|
jsObj.Get("show_request"));
|
3879
3883
|
js_to_cbpp<std::optional<couchbase::core::json_string>>(
|
@@ -3925,6 +3929,10 @@ struct js_to_cbpp_t<couchbase::core::operations::search_request> {
|
|
3925
3929
|
cbpp_to_js<std::string>(env, cppObj.index_name));
|
3926
3930
|
resObj.Set("query",
|
3927
3931
|
cbpp_to_js<couchbase::core::json_string>(env, cppObj.query));
|
3932
|
+
resObj.Set("bucket_name", cbpp_to_js<std::optional<std::string>>(
|
3933
|
+
env, cppObj.bucket_name));
|
3934
|
+
resObj.Set("scope_name", cbpp_to_js<std::optional<std::string>>(
|
3935
|
+
env, cppObj.scope_name));
|
3928
3936
|
resObj.Set("show_request",
|
3929
3937
|
cbpp_to_js<std::optional<bool>>(env, cppObj.show_request));
|
3930
3938
|
resObj.Set("vector_search",
|
@@ -4315,6 +4323,7 @@ struct js_to_cbpp_t<couchbase::core::operations::document_view_request> {
|
|
4315
4323
|
js_to_cbpp<bool>(cppObj.debug, jsObj.Get("debug"));
|
4316
4324
|
js_to_cbpp<std::map<std::string, std::string>>(cppObj.raw,
|
4317
4325
|
jsObj.Get("raw"));
|
4326
|
+
js_to_cbpp<std::optional<bool>>(cppObj.full_set, jsObj.Get("full_set"));
|
4318
4327
|
js_to_cbpp<std::optional<couchbase::core::view_sort_order>>(
|
4319
4328
|
cppObj.order, jsObj.Get("order"));
|
4320
4329
|
js_to_cbpp<std::optional<couchbase::core::view_on_error>>(
|
@@ -4371,6 +4380,8 @@ struct js_to_cbpp_t<couchbase::core::operations::document_view_request> {
|
|
4371
4380
|
resObj.Set("debug", cbpp_to_js<bool>(env, cppObj.debug));
|
4372
4381
|
resObj.Set("raw", cbpp_to_js<std::map<std::string, std::string>>(
|
4373
4382
|
env, cppObj.raw));
|
4383
|
+
resObj.Set("full_set",
|
4384
|
+
cbpp_to_js<std::optional<bool>>(env, cppObj.full_set));
|
4374
4385
|
resObj.Set("order",
|
4375
4386
|
cbpp_to_js<std::optional<couchbase::core::view_sort_order>>(
|
4376
4387
|
env, cppObj.order));
|
@@ -5807,6 +5818,10 @@ struct js_to_cbpp_t<
|
|
5807
5818
|
auto jsObj = jsVal.ToObject();
|
5808
5819
|
couchbase::core::operations::management::search_index_get_all_request
|
5809
5820
|
cppObj;
|
5821
|
+
js_to_cbpp<std::optional<std::string>>(cppObj.bucket_name,
|
5822
|
+
jsObj.Get("bucket_name"));
|
5823
|
+
js_to_cbpp<std::optional<std::string>>(cppObj.scope_name,
|
5824
|
+
jsObj.Get("scope_name"));
|
5810
5825
|
js_to_cbpp<std::optional<std::string>>(cppObj.client_context_id,
|
5811
5826
|
jsObj.Get("client_context_id"));
|
5812
5827
|
js_to_cbpp<std::optional<std::chrono::milliseconds>>(
|
@@ -5818,6 +5833,10 @@ struct js_to_cbpp_t<
|
|
5818
5833
|
search_index_get_all_request &cppObj)
|
5819
5834
|
{
|
5820
5835
|
auto resObj = Napi::Object::New(env);
|
5836
|
+
resObj.Set("bucket_name", cbpp_to_js<std::optional<std::string>>(
|
5837
|
+
env, cppObj.bucket_name));
|
5838
|
+
resObj.Set("scope_name", cbpp_to_js<std::optional<std::string>>(
|
5839
|
+
env, cppObj.scope_name));
|
5821
5840
|
resObj.Set("client_context_id", cbpp_to_js<std::optional<std::string>>(
|
5822
5841
|
env, cppObj.client_context_id));
|
5823
5842
|
resObj.Set("timeout",
|
@@ -5869,6 +5888,10 @@ struct js_to_cbpp_t<couchbase::core::operations::management::
|
|
5869
5888
|
js_to_cbpp<std::string>(cppObj.index_name, jsObj.Get("index_name"));
|
5870
5889
|
js_to_cbpp<std::string>(cppObj.encoded_document,
|
5871
5890
|
jsObj.Get("encoded_document"));
|
5891
|
+
js_to_cbpp<std::optional<std::string>>(cppObj.bucket_name,
|
5892
|
+
jsObj.Get("bucket_name"));
|
5893
|
+
js_to_cbpp<std::optional<std::string>>(cppObj.scope_name,
|
5894
|
+
jsObj.Get("scope_name"));
|
5872
5895
|
js_to_cbpp<std::optional<std::string>>(cppObj.client_context_id,
|
5873
5896
|
jsObj.Get("client_context_id"));
|
5874
5897
|
js_to_cbpp<std::optional<std::chrono::milliseconds>>(
|
@@ -5884,6 +5907,10 @@ struct js_to_cbpp_t<couchbase::core::operations::management::
|
|
5884
5907
|
cbpp_to_js<std::string>(env, cppObj.index_name));
|
5885
5908
|
resObj.Set("encoded_document",
|
5886
5909
|
cbpp_to_js<std::string>(env, cppObj.encoded_document));
|
5910
|
+
resObj.Set("bucket_name", cbpp_to_js<std::optional<std::string>>(
|
5911
|
+
env, cppObj.bucket_name));
|
5912
|
+
resObj.Set("scope_name", cbpp_to_js<std::optional<std::string>>(
|
5913
|
+
env, cppObj.scope_name));
|
5887
5914
|
resObj.Set("client_context_id", cbpp_to_js<std::optional<std::string>>(
|
5888
5915
|
env, cppObj.client_context_id));
|
5889
5916
|
resObj.Set("timeout",
|
@@ -6292,8 +6319,7 @@ struct js_to_cbpp_t<
|
|
6292
6319
|
js_to_cbpp<std::string>(cppObj.collection_name,
|
6293
6320
|
jsObj.Get("collection_name"));
|
6294
6321
|
js_to_cbpp<std::string>(cppObj.index_name, jsObj.Get("index_name"));
|
6295
|
-
js_to_cbpp<std::vector<std::string>>(cppObj.
|
6296
|
-
jsObj.Get("fields"));
|
6322
|
+
js_to_cbpp<std::vector<std::string>>(cppObj.keys, jsObj.Get("keys"));
|
6297
6323
|
js_to_cbpp<couchbase::core::query_context>(cppObj.query_ctx,
|
6298
6324
|
jsObj.Get("query_ctx"));
|
6299
6325
|
js_to_cbpp<bool>(cppObj.is_primary, jsObj.Get("is_primary"));
|
@@ -6323,8 +6349,8 @@ struct js_to_cbpp_t<
|
|
6323
6349
|
cbpp_to_js<std::string>(env, cppObj.collection_name));
|
6324
6350
|
resObj.Set("index_name",
|
6325
6351
|
cbpp_to_js<std::string>(env, cppObj.index_name));
|
6326
|
-
resObj.Set("
|
6327
|
-
cbpp_to_js<std::vector<std::string>>(env, cppObj.
|
6352
|
+
resObj.Set("keys",
|
6353
|
+
cbpp_to_js<std::vector<std::string>>(env, cppObj.keys));
|
6328
6354
|
resObj.Set("query_ctx", cbpp_to_js<couchbase::core::query_context>(
|
6329
6355
|
env, cppObj.query_ctx));
|
6330
6356
|
resObj.Set("is_primary", cbpp_to_js<bool>(env, cppObj.is_primary));
|
@@ -6388,6 +6414,10 @@ struct js_to_cbpp_t<
|
|
6388
6414
|
cppObj;
|
6389
6415
|
js_to_cbpp<couchbase::core::management::search::index>(
|
6390
6416
|
cppObj.index, jsObj.Get("index"));
|
6417
|
+
js_to_cbpp<std::optional<std::string>>(cppObj.bucket_name,
|
6418
|
+
jsObj.Get("bucket_name"));
|
6419
|
+
js_to_cbpp<std::optional<std::string>>(cppObj.scope_name,
|
6420
|
+
jsObj.Get("scope_name"));
|
6391
6421
|
js_to_cbpp<std::optional<std::string>>(cppObj.client_context_id,
|
6392
6422
|
jsObj.Get("client_context_id"));
|
6393
6423
|
js_to_cbpp<std::optional<std::chrono::milliseconds>>(
|
@@ -6402,6 +6432,10 @@ struct js_to_cbpp_t<
|
|
6402
6432
|
resObj.Set("index",
|
6403
6433
|
cbpp_to_js<couchbase::core::management::search::index>(
|
6404
6434
|
env, cppObj.index));
|
6435
|
+
resObj.Set("bucket_name", cbpp_to_js<std::optional<std::string>>(
|
6436
|
+
env, cppObj.bucket_name));
|
6437
|
+
resObj.Set("scope_name", cbpp_to_js<std::optional<std::string>>(
|
6438
|
+
env, cppObj.scope_name));
|
6405
6439
|
resObj.Set("client_context_id", cbpp_to_js<std::optional<std::string>>(
|
6406
6440
|
env, cppObj.client_context_id));
|
6407
6441
|
resObj.Set("timeout",
|
@@ -8618,6 +8652,10 @@ struct js_to_cbpp_t<
|
|
8618
8652
|
couchbase::core::operations::management::search_index_drop_request
|
8619
8653
|
cppObj;
|
8620
8654
|
js_to_cbpp<std::string>(cppObj.index_name, jsObj.Get("index_name"));
|
8655
|
+
js_to_cbpp<std::optional<std::string>>(cppObj.bucket_name,
|
8656
|
+
jsObj.Get("bucket_name"));
|
8657
|
+
js_to_cbpp<std::optional<std::string>>(cppObj.scope_name,
|
8658
|
+
jsObj.Get("scope_name"));
|
8621
8659
|
js_to_cbpp<std::optional<std::string>>(cppObj.client_context_id,
|
8622
8660
|
jsObj.Get("client_context_id"));
|
8623
8661
|
js_to_cbpp<std::optional<std::chrono::milliseconds>>(
|
@@ -8632,6 +8670,10 @@ struct js_to_cbpp_t<
|
|
8632
8670
|
auto resObj = Napi::Object::New(env);
|
8633
8671
|
resObj.Set("index_name",
|
8634
8672
|
cbpp_to_js<std::string>(env, cppObj.index_name));
|
8673
|
+
resObj.Set("bucket_name", cbpp_to_js<std::optional<std::string>>(
|
8674
|
+
env, cppObj.bucket_name));
|
8675
|
+
resObj.Set("scope_name", cbpp_to_js<std::optional<std::string>>(
|
8676
|
+
env, cppObj.scope_name));
|
8635
8677
|
resObj.Set("client_context_id", cbpp_to_js<std::optional<std::string>>(
|
8636
8678
|
env, cppObj.client_context_id));
|
8637
8679
|
resObj.Set("timeout",
|
@@ -8680,6 +8722,10 @@ struct js_to_cbpp_t<couchbase::core::operations::management::
|
|
8680
8722
|
search_index_control_plan_freeze_request cppObj;
|
8681
8723
|
js_to_cbpp<std::string>(cppObj.index_name, jsObj.Get("index_name"));
|
8682
8724
|
js_to_cbpp<bool>(cppObj.freeze, jsObj.Get("freeze"));
|
8725
|
+
js_to_cbpp<std::optional<std::string>>(cppObj.bucket_name,
|
8726
|
+
jsObj.Get("bucket_name"));
|
8727
|
+
js_to_cbpp<std::optional<std::string>>(cppObj.scope_name,
|
8728
|
+
jsObj.Get("scope_name"));
|
8683
8729
|
js_to_cbpp<std::optional<std::string>>(cppObj.client_context_id,
|
8684
8730
|
jsObj.Get("client_context_id"));
|
8685
8731
|
js_to_cbpp<std::optional<std::chrono::milliseconds>>(
|
@@ -8694,6 +8740,10 @@ struct js_to_cbpp_t<couchbase::core::operations::management::
|
|
8694
8740
|
resObj.Set("index_name",
|
8695
8741
|
cbpp_to_js<std::string>(env, cppObj.index_name));
|
8696
8742
|
resObj.Set("freeze", cbpp_to_js<bool>(env, cppObj.freeze));
|
8743
|
+
resObj.Set("bucket_name", cbpp_to_js<std::optional<std::string>>(
|
8744
|
+
env, cppObj.bucket_name));
|
8745
|
+
resObj.Set("scope_name", cbpp_to_js<std::optional<std::string>>(
|
8746
|
+
env, cppObj.scope_name));
|
8697
8747
|
resObj.Set("client_context_id", cbpp_to_js<std::optional<std::string>>(
|
8698
8748
|
env, cppObj.client_context_id));
|
8699
8749
|
resObj.Set("timeout",
|
@@ -8928,6 +8978,10 @@ struct js_to_cbpp_t<couchbase::core::operations::management::
|
|
8928
8978
|
search_index_control_query_request cppObj;
|
8929
8979
|
js_to_cbpp<std::string>(cppObj.index_name, jsObj.Get("index_name"));
|
8930
8980
|
js_to_cbpp<bool>(cppObj.allow, jsObj.Get("allow"));
|
8981
|
+
js_to_cbpp<std::optional<std::string>>(cppObj.bucket_name,
|
8982
|
+
jsObj.Get("bucket_name"));
|
8983
|
+
js_to_cbpp<std::optional<std::string>>(cppObj.scope_name,
|
8984
|
+
jsObj.Get("scope_name"));
|
8931
8985
|
js_to_cbpp<std::optional<std::string>>(cppObj.client_context_id,
|
8932
8986
|
jsObj.Get("client_context_id"));
|
8933
8987
|
js_to_cbpp<std::optional<std::chrono::milliseconds>>(
|
@@ -8942,6 +8996,10 @@ struct js_to_cbpp_t<couchbase::core::operations::management::
|
|
8942
8996
|
resObj.Set("index_name",
|
8943
8997
|
cbpp_to_js<std::string>(env, cppObj.index_name));
|
8944
8998
|
resObj.Set("allow", cbpp_to_js<bool>(env, cppObj.allow));
|
8999
|
+
resObj.Set("bucket_name", cbpp_to_js<std::optional<std::string>>(
|
9000
|
+
env, cppObj.bucket_name));
|
9001
|
+
resObj.Set("scope_name", cbpp_to_js<std::optional<std::string>>(
|
9002
|
+
env, cppObj.scope_name));
|
8945
9003
|
resObj.Set("client_context_id", cbpp_to_js<std::optional<std::string>>(
|
8946
9004
|
env, cppObj.client_context_id));
|
8947
9005
|
resObj.Set("timeout",
|
@@ -9319,6 +9377,10 @@ struct js_to_cbpp_t<couchbase::core::operations::management::
|
|
9319
9377
|
search_index_control_ingest_request cppObj;
|
9320
9378
|
js_to_cbpp<std::string>(cppObj.index_name, jsObj.Get("index_name"));
|
9321
9379
|
js_to_cbpp<bool>(cppObj.pause, jsObj.Get("pause"));
|
9380
|
+
js_to_cbpp<std::optional<std::string>>(cppObj.bucket_name,
|
9381
|
+
jsObj.Get("bucket_name"));
|
9382
|
+
js_to_cbpp<std::optional<std::string>>(cppObj.scope_name,
|
9383
|
+
jsObj.Get("scope_name"));
|
9322
9384
|
js_to_cbpp<std::optional<std::string>>(cppObj.client_context_id,
|
9323
9385
|
jsObj.Get("client_context_id"));
|
9324
9386
|
js_to_cbpp<std::optional<std::chrono::milliseconds>>(
|
@@ -9333,6 +9395,10 @@ struct js_to_cbpp_t<couchbase::core::operations::management::
|
|
9333
9395
|
resObj.Set("index_name",
|
9334
9396
|
cbpp_to_js<std::string>(env, cppObj.index_name));
|
9335
9397
|
resObj.Set("pause", cbpp_to_js<bool>(env, cppObj.pause));
|
9398
|
+
resObj.Set("bucket_name", cbpp_to_js<std::optional<std::string>>(
|
9399
|
+
env, cppObj.bucket_name));
|
9400
|
+
resObj.Set("scope_name", cbpp_to_js<std::optional<std::string>>(
|
9401
|
+
env, cppObj.scope_name));
|
9336
9402
|
resObj.Set("client_context_id", cbpp_to_js<std::optional<std::string>>(
|
9337
9403
|
env, cppObj.client_context_id));
|
9338
9404
|
resObj.Set("timeout",
|
@@ -9766,6 +9832,10 @@ struct js_to_cbpp_t<
|
|
9766
9832
|
couchbase::core::operations::management::search_index_get_request
|
9767
9833
|
cppObj;
|
9768
9834
|
js_to_cbpp<std::string>(cppObj.index_name, jsObj.Get("index_name"));
|
9835
|
+
js_to_cbpp<std::optional<std::string>>(cppObj.bucket_name,
|
9836
|
+
jsObj.Get("bucket_name"));
|
9837
|
+
js_to_cbpp<std::optional<std::string>>(cppObj.scope_name,
|
9838
|
+
jsObj.Get("scope_name"));
|
9769
9839
|
js_to_cbpp<std::optional<std::string>>(cppObj.client_context_id,
|
9770
9840
|
jsObj.Get("client_context_id"));
|
9771
9841
|
js_to_cbpp<std::optional<std::chrono::milliseconds>>(
|
@@ -9780,6 +9850,10 @@ struct js_to_cbpp_t<
|
|
9780
9850
|
auto resObj = Napi::Object::New(env);
|
9781
9851
|
resObj.Set("index_name",
|
9782
9852
|
cbpp_to_js<std::string>(env, cppObj.index_name));
|
9853
|
+
resObj.Set("bucket_name", cbpp_to_js<std::optional<std::string>>(
|
9854
|
+
env, cppObj.bucket_name));
|
9855
|
+
resObj.Set("scope_name", cbpp_to_js<std::optional<std::string>>(
|
9856
|
+
env, cppObj.scope_name));
|
9783
9857
|
resObj.Set("client_context_id", cbpp_to_js<std::optional<std::string>>(
|
9784
9858
|
env, cppObj.client_context_id));
|
9785
9859
|
resObj.Set("timeout",
|
@@ -10073,6 +10147,10 @@ struct js_to_cbpp_t<couchbase::core::operations::management::
|
|
10073
10147
|
couchbase::core::operations::management::
|
10074
10148
|
search_index_get_documents_count_request cppObj;
|
10075
10149
|
js_to_cbpp<std::string>(cppObj.index_name, jsObj.Get("index_name"));
|
10150
|
+
js_to_cbpp<std::optional<std::string>>(cppObj.bucket_name,
|
10151
|
+
jsObj.Get("bucket_name"));
|
10152
|
+
js_to_cbpp<std::optional<std::string>>(cppObj.scope_name,
|
10153
|
+
jsObj.Get("scope_name"));
|
10076
10154
|
js_to_cbpp<std::optional<std::string>>(cppObj.client_context_id,
|
10077
10155
|
jsObj.Get("client_context_id"));
|
10078
10156
|
js_to_cbpp<std::optional<std::chrono::milliseconds>>(
|
@@ -10086,6 +10164,10 @@ struct js_to_cbpp_t<couchbase::core::operations::management::
|
|
10086
10164
|
auto resObj = Napi::Object::New(env);
|
10087
10165
|
resObj.Set("index_name",
|
10088
10166
|
cbpp_to_js<std::string>(env, cppObj.index_name));
|
10167
|
+
resObj.Set("bucket_name", cbpp_to_js<std::optional<std::string>>(
|
10168
|
+
env, cppObj.bucket_name));
|
10169
|
+
resObj.Set("scope_name", cbpp_to_js<std::optional<std::string>>(
|
10170
|
+
env, cppObj.scope_name));
|
10089
10171
|
resObj.Set("client_context_id", cbpp_to_js<std::optional<std::string>>(
|
10090
10172
|
env, cppObj.client_context_id));
|
10091
10173
|
resObj.Set("timeout",
|
@@ -1,44 +0,0 @@
|
|
1
|
-
/* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
|
2
|
-
/*
|
3
|
-
* Copyright 2022-Present Couchbase, Inc.
|
4
|
-
*
|
5
|
-
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
|
6
|
-
* except in compliance with the License. You may obtain a copy of the License at
|
7
|
-
*
|
8
|
-
* https://www.apache.org/licenses/LICENSE-2.0
|
9
|
-
*
|
10
|
-
* Unless required by applicable law or agreed to in writing, software distributed under
|
11
|
-
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
|
12
|
-
* ANY KIND, either express or implied. See the License for the specific language governing
|
13
|
-
* permissions and limitations under the License.
|
14
|
-
*/
|
15
|
-
|
16
|
-
#pragma once
|
17
|
-
|
18
|
-
#include "range_scan_options.hxx"
|
19
|
-
|
20
|
-
#include <couchbase/mutation_token.hxx>
|
21
|
-
#include <couchbase/retry_strategy.hxx>
|
22
|
-
|
23
|
-
#include <cinttypes>
|
24
|
-
#include <memory>
|
25
|
-
#include <optional>
|
26
|
-
#include <system_error>
|
27
|
-
#include <variant>
|
28
|
-
#include <vector>
|
29
|
-
|
30
|
-
namespace couchbase
|
31
|
-
{
|
32
|
-
class retry_strategy;
|
33
|
-
namespace tracing
|
34
|
-
{
|
35
|
-
class request_span;
|
36
|
-
} // namespace tracing
|
37
|
-
} // namespace couchbase
|
38
|
-
|
39
|
-
namespace couchbase::core
|
40
|
-
{
|
41
|
-
struct mutation_state {
|
42
|
-
std::vector<couchbase::mutation_token> tokens;
|
43
|
-
};
|
44
|
-
} // namespace couchbase::core
|