couchbase 4.2.10 → 4.2.11-rc.1
Sign up to get free protection for your applications and to get access to all the features.
- package/deps/couchbase-cxx-client/core/bucket.cxx +23 -8
- 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 +24 -1
- package/deps/couchbase-cxx-client/core/io/mcbp_session.hxx +1 -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/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/collection_query_index_manager.hxx +80 -11
- package/deps/couchbase-cxx-client/couchbase/fmt/key_value_status_code.hxx +3 -1
- 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/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 -6
package/src/jstocbpp_autogen.hpp
CHANGED
@@ -411,7 +411,7 @@ struct js_to_cbpp_t<couchbase::core::management::views::design_document> {
|
|
411
411
|
{
|
412
412
|
auto jsObj = jsVal.ToObject();
|
413
413
|
couchbase::core::management::views::design_document cppObj;
|
414
|
-
js_to_cbpp<std::string
|
414
|
+
js_to_cbpp<std::optional<std::string>>(cppObj.rev, jsObj.Get("rev"));
|
415
415
|
js_to_cbpp<std::string>(cppObj.name, jsObj.Get("name"));
|
416
416
|
js_to_cbpp<couchbase::core::design_document_namespace>(cppObj.ns,
|
417
417
|
jsObj.Get("ns"));
|
@@ -425,7 +425,8 @@ struct js_to_cbpp_t<couchbase::core::management::views::design_document> {
|
|
425
425
|
const couchbase::core::management::views::design_document &cppObj)
|
426
426
|
{
|
427
427
|
auto resObj = Napi::Object::New(env);
|
428
|
-
resObj.Set("rev",
|
428
|
+
resObj.Set("rev",
|
429
|
+
cbpp_to_js<std::optional<std::string>>(env, cppObj.rev));
|
429
430
|
resObj.Set("name", cbpp_to_js<std::string>(env, cppObj.name));
|
430
431
|
resObj.Set("ns", cbpp_to_js<couchbase::core::design_document_namespace>(
|
431
432
|
env, cppObj.ns));
|
@@ -3874,6 +3875,10 @@ struct js_to_cbpp_t<couchbase::core::operations::search_request> {
|
|
3874
3875
|
js_to_cbpp<std::string>(cppObj.index_name, jsObj.Get("index_name"));
|
3875
3876
|
js_to_cbpp<couchbase::core::json_string>(cppObj.query,
|
3876
3877
|
jsObj.Get("query"));
|
3878
|
+
js_to_cbpp<std::optional<std::string>>(cppObj.bucket_name,
|
3879
|
+
jsObj.Get("bucket_name"));
|
3880
|
+
js_to_cbpp<std::optional<std::string>>(cppObj.scope_name,
|
3881
|
+
jsObj.Get("scope_name"));
|
3877
3882
|
js_to_cbpp<std::optional<bool>>(cppObj.show_request,
|
3878
3883
|
jsObj.Get("show_request"));
|
3879
3884
|
js_to_cbpp<std::optional<couchbase::core::json_string>>(
|
@@ -3925,6 +3930,10 @@ struct js_to_cbpp_t<couchbase::core::operations::search_request> {
|
|
3925
3930
|
cbpp_to_js<std::string>(env, cppObj.index_name));
|
3926
3931
|
resObj.Set("query",
|
3927
3932
|
cbpp_to_js<couchbase::core::json_string>(env, cppObj.query));
|
3933
|
+
resObj.Set("bucket_name", cbpp_to_js<std::optional<std::string>>(
|
3934
|
+
env, cppObj.bucket_name));
|
3935
|
+
resObj.Set("scope_name", cbpp_to_js<std::optional<std::string>>(
|
3936
|
+
env, cppObj.scope_name));
|
3928
3937
|
resObj.Set("show_request",
|
3929
3938
|
cbpp_to_js<std::optional<bool>>(env, cppObj.show_request));
|
3930
3939
|
resObj.Set("vector_search",
|
@@ -4315,6 +4324,7 @@ struct js_to_cbpp_t<couchbase::core::operations::document_view_request> {
|
|
4315
4324
|
js_to_cbpp<bool>(cppObj.debug, jsObj.Get("debug"));
|
4316
4325
|
js_to_cbpp<std::map<std::string, std::string>>(cppObj.raw,
|
4317
4326
|
jsObj.Get("raw"));
|
4327
|
+
js_to_cbpp<std::optional<bool>>(cppObj.full_set, jsObj.Get("full_set"));
|
4318
4328
|
js_to_cbpp<std::optional<couchbase::core::view_sort_order>>(
|
4319
4329
|
cppObj.order, jsObj.Get("order"));
|
4320
4330
|
js_to_cbpp<std::optional<couchbase::core::view_on_error>>(
|
@@ -4371,6 +4381,8 @@ struct js_to_cbpp_t<couchbase::core::operations::document_view_request> {
|
|
4371
4381
|
resObj.Set("debug", cbpp_to_js<bool>(env, cppObj.debug));
|
4372
4382
|
resObj.Set("raw", cbpp_to_js<std::map<std::string, std::string>>(
|
4373
4383
|
env, cppObj.raw));
|
4384
|
+
resObj.Set("full_set",
|
4385
|
+
cbpp_to_js<std::optional<bool>>(env, cppObj.full_set));
|
4374
4386
|
resObj.Set("order",
|
4375
4387
|
cbpp_to_js<std::optional<couchbase::core::view_sort_order>>(
|
4376
4388
|
env, cppObj.order));
|
@@ -5807,6 +5819,10 @@ struct js_to_cbpp_t<
|
|
5807
5819
|
auto jsObj = jsVal.ToObject();
|
5808
5820
|
couchbase::core::operations::management::search_index_get_all_request
|
5809
5821
|
cppObj;
|
5822
|
+
js_to_cbpp<std::optional<std::string>>(cppObj.bucket_name,
|
5823
|
+
jsObj.Get("bucket_name"));
|
5824
|
+
js_to_cbpp<std::optional<std::string>>(cppObj.scope_name,
|
5825
|
+
jsObj.Get("scope_name"));
|
5810
5826
|
js_to_cbpp<std::optional<std::string>>(cppObj.client_context_id,
|
5811
5827
|
jsObj.Get("client_context_id"));
|
5812
5828
|
js_to_cbpp<std::optional<std::chrono::milliseconds>>(
|
@@ -5818,6 +5834,10 @@ struct js_to_cbpp_t<
|
|
5818
5834
|
search_index_get_all_request &cppObj)
|
5819
5835
|
{
|
5820
5836
|
auto resObj = Napi::Object::New(env);
|
5837
|
+
resObj.Set("bucket_name", cbpp_to_js<std::optional<std::string>>(
|
5838
|
+
env, cppObj.bucket_name));
|
5839
|
+
resObj.Set("scope_name", cbpp_to_js<std::optional<std::string>>(
|
5840
|
+
env, cppObj.scope_name));
|
5821
5841
|
resObj.Set("client_context_id", cbpp_to_js<std::optional<std::string>>(
|
5822
5842
|
env, cppObj.client_context_id));
|
5823
5843
|
resObj.Set("timeout",
|
@@ -5869,6 +5889,10 @@ struct js_to_cbpp_t<couchbase::core::operations::management::
|
|
5869
5889
|
js_to_cbpp<std::string>(cppObj.index_name, jsObj.Get("index_name"));
|
5870
5890
|
js_to_cbpp<std::string>(cppObj.encoded_document,
|
5871
5891
|
jsObj.Get("encoded_document"));
|
5892
|
+
js_to_cbpp<std::optional<std::string>>(cppObj.bucket_name,
|
5893
|
+
jsObj.Get("bucket_name"));
|
5894
|
+
js_to_cbpp<std::optional<std::string>>(cppObj.scope_name,
|
5895
|
+
jsObj.Get("scope_name"));
|
5872
5896
|
js_to_cbpp<std::optional<std::string>>(cppObj.client_context_id,
|
5873
5897
|
jsObj.Get("client_context_id"));
|
5874
5898
|
js_to_cbpp<std::optional<std::chrono::milliseconds>>(
|
@@ -5884,6 +5908,10 @@ struct js_to_cbpp_t<couchbase::core::operations::management::
|
|
5884
5908
|
cbpp_to_js<std::string>(env, cppObj.index_name));
|
5885
5909
|
resObj.Set("encoded_document",
|
5886
5910
|
cbpp_to_js<std::string>(env, cppObj.encoded_document));
|
5911
|
+
resObj.Set("bucket_name", cbpp_to_js<std::optional<std::string>>(
|
5912
|
+
env, cppObj.bucket_name));
|
5913
|
+
resObj.Set("scope_name", cbpp_to_js<std::optional<std::string>>(
|
5914
|
+
env, cppObj.scope_name));
|
5887
5915
|
resObj.Set("client_context_id", cbpp_to_js<std::optional<std::string>>(
|
5888
5916
|
env, cppObj.client_context_id));
|
5889
5917
|
resObj.Set("timeout",
|
@@ -6292,8 +6320,7 @@ struct js_to_cbpp_t<
|
|
6292
6320
|
js_to_cbpp<std::string>(cppObj.collection_name,
|
6293
6321
|
jsObj.Get("collection_name"));
|
6294
6322
|
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"));
|
6323
|
+
js_to_cbpp<std::vector<std::string>>(cppObj.keys, jsObj.Get("keys"));
|
6297
6324
|
js_to_cbpp<couchbase::core::query_context>(cppObj.query_ctx,
|
6298
6325
|
jsObj.Get("query_ctx"));
|
6299
6326
|
js_to_cbpp<bool>(cppObj.is_primary, jsObj.Get("is_primary"));
|
@@ -6323,8 +6350,8 @@ struct js_to_cbpp_t<
|
|
6323
6350
|
cbpp_to_js<std::string>(env, cppObj.collection_name));
|
6324
6351
|
resObj.Set("index_name",
|
6325
6352
|
cbpp_to_js<std::string>(env, cppObj.index_name));
|
6326
|
-
resObj.Set("
|
6327
|
-
cbpp_to_js<std::vector<std::string>>(env, cppObj.
|
6353
|
+
resObj.Set("keys",
|
6354
|
+
cbpp_to_js<std::vector<std::string>>(env, cppObj.keys));
|
6328
6355
|
resObj.Set("query_ctx", cbpp_to_js<couchbase::core::query_context>(
|
6329
6356
|
env, cppObj.query_ctx));
|
6330
6357
|
resObj.Set("is_primary", cbpp_to_js<bool>(env, cppObj.is_primary));
|
@@ -6388,6 +6415,10 @@ struct js_to_cbpp_t<
|
|
6388
6415
|
cppObj;
|
6389
6416
|
js_to_cbpp<couchbase::core::management::search::index>(
|
6390
6417
|
cppObj.index, jsObj.Get("index"));
|
6418
|
+
js_to_cbpp<std::optional<std::string>>(cppObj.bucket_name,
|
6419
|
+
jsObj.Get("bucket_name"));
|
6420
|
+
js_to_cbpp<std::optional<std::string>>(cppObj.scope_name,
|
6421
|
+
jsObj.Get("scope_name"));
|
6391
6422
|
js_to_cbpp<std::optional<std::string>>(cppObj.client_context_id,
|
6392
6423
|
jsObj.Get("client_context_id"));
|
6393
6424
|
js_to_cbpp<std::optional<std::chrono::milliseconds>>(
|
@@ -6402,6 +6433,10 @@ struct js_to_cbpp_t<
|
|
6402
6433
|
resObj.Set("index",
|
6403
6434
|
cbpp_to_js<couchbase::core::management::search::index>(
|
6404
6435
|
env, cppObj.index));
|
6436
|
+
resObj.Set("bucket_name", cbpp_to_js<std::optional<std::string>>(
|
6437
|
+
env, cppObj.bucket_name));
|
6438
|
+
resObj.Set("scope_name", cbpp_to_js<std::optional<std::string>>(
|
6439
|
+
env, cppObj.scope_name));
|
6405
6440
|
resObj.Set("client_context_id", cbpp_to_js<std::optional<std::string>>(
|
6406
6441
|
env, cppObj.client_context_id));
|
6407
6442
|
resObj.Set("timeout",
|
@@ -8618,6 +8653,10 @@ struct js_to_cbpp_t<
|
|
8618
8653
|
couchbase::core::operations::management::search_index_drop_request
|
8619
8654
|
cppObj;
|
8620
8655
|
js_to_cbpp<std::string>(cppObj.index_name, jsObj.Get("index_name"));
|
8656
|
+
js_to_cbpp<std::optional<std::string>>(cppObj.bucket_name,
|
8657
|
+
jsObj.Get("bucket_name"));
|
8658
|
+
js_to_cbpp<std::optional<std::string>>(cppObj.scope_name,
|
8659
|
+
jsObj.Get("scope_name"));
|
8621
8660
|
js_to_cbpp<std::optional<std::string>>(cppObj.client_context_id,
|
8622
8661
|
jsObj.Get("client_context_id"));
|
8623
8662
|
js_to_cbpp<std::optional<std::chrono::milliseconds>>(
|
@@ -8632,6 +8671,10 @@ struct js_to_cbpp_t<
|
|
8632
8671
|
auto resObj = Napi::Object::New(env);
|
8633
8672
|
resObj.Set("index_name",
|
8634
8673
|
cbpp_to_js<std::string>(env, cppObj.index_name));
|
8674
|
+
resObj.Set("bucket_name", cbpp_to_js<std::optional<std::string>>(
|
8675
|
+
env, cppObj.bucket_name));
|
8676
|
+
resObj.Set("scope_name", cbpp_to_js<std::optional<std::string>>(
|
8677
|
+
env, cppObj.scope_name));
|
8635
8678
|
resObj.Set("client_context_id", cbpp_to_js<std::optional<std::string>>(
|
8636
8679
|
env, cppObj.client_context_id));
|
8637
8680
|
resObj.Set("timeout",
|
@@ -8680,6 +8723,10 @@ struct js_to_cbpp_t<couchbase::core::operations::management::
|
|
8680
8723
|
search_index_control_plan_freeze_request cppObj;
|
8681
8724
|
js_to_cbpp<std::string>(cppObj.index_name, jsObj.Get("index_name"));
|
8682
8725
|
js_to_cbpp<bool>(cppObj.freeze, jsObj.Get("freeze"));
|
8726
|
+
js_to_cbpp<std::optional<std::string>>(cppObj.bucket_name,
|
8727
|
+
jsObj.Get("bucket_name"));
|
8728
|
+
js_to_cbpp<std::optional<std::string>>(cppObj.scope_name,
|
8729
|
+
jsObj.Get("scope_name"));
|
8683
8730
|
js_to_cbpp<std::optional<std::string>>(cppObj.client_context_id,
|
8684
8731
|
jsObj.Get("client_context_id"));
|
8685
8732
|
js_to_cbpp<std::optional<std::chrono::milliseconds>>(
|
@@ -8694,6 +8741,10 @@ struct js_to_cbpp_t<couchbase::core::operations::management::
|
|
8694
8741
|
resObj.Set("index_name",
|
8695
8742
|
cbpp_to_js<std::string>(env, cppObj.index_name));
|
8696
8743
|
resObj.Set("freeze", cbpp_to_js<bool>(env, cppObj.freeze));
|
8744
|
+
resObj.Set("bucket_name", cbpp_to_js<std::optional<std::string>>(
|
8745
|
+
env, cppObj.bucket_name));
|
8746
|
+
resObj.Set("scope_name", cbpp_to_js<std::optional<std::string>>(
|
8747
|
+
env, cppObj.scope_name));
|
8697
8748
|
resObj.Set("client_context_id", cbpp_to_js<std::optional<std::string>>(
|
8698
8749
|
env, cppObj.client_context_id));
|
8699
8750
|
resObj.Set("timeout",
|
@@ -8928,6 +8979,10 @@ struct js_to_cbpp_t<couchbase::core::operations::management::
|
|
8928
8979
|
search_index_control_query_request cppObj;
|
8929
8980
|
js_to_cbpp<std::string>(cppObj.index_name, jsObj.Get("index_name"));
|
8930
8981
|
js_to_cbpp<bool>(cppObj.allow, jsObj.Get("allow"));
|
8982
|
+
js_to_cbpp<std::optional<std::string>>(cppObj.bucket_name,
|
8983
|
+
jsObj.Get("bucket_name"));
|
8984
|
+
js_to_cbpp<std::optional<std::string>>(cppObj.scope_name,
|
8985
|
+
jsObj.Get("scope_name"));
|
8931
8986
|
js_to_cbpp<std::optional<std::string>>(cppObj.client_context_id,
|
8932
8987
|
jsObj.Get("client_context_id"));
|
8933
8988
|
js_to_cbpp<std::optional<std::chrono::milliseconds>>(
|
@@ -8942,6 +8997,10 @@ struct js_to_cbpp_t<couchbase::core::operations::management::
|
|
8942
8997
|
resObj.Set("index_name",
|
8943
8998
|
cbpp_to_js<std::string>(env, cppObj.index_name));
|
8944
8999
|
resObj.Set("allow", cbpp_to_js<bool>(env, cppObj.allow));
|
9000
|
+
resObj.Set("bucket_name", cbpp_to_js<std::optional<std::string>>(
|
9001
|
+
env, cppObj.bucket_name));
|
9002
|
+
resObj.Set("scope_name", cbpp_to_js<std::optional<std::string>>(
|
9003
|
+
env, cppObj.scope_name));
|
8945
9004
|
resObj.Set("client_context_id", cbpp_to_js<std::optional<std::string>>(
|
8946
9005
|
env, cppObj.client_context_id));
|
8947
9006
|
resObj.Set("timeout",
|
@@ -9319,6 +9378,10 @@ struct js_to_cbpp_t<couchbase::core::operations::management::
|
|
9319
9378
|
search_index_control_ingest_request cppObj;
|
9320
9379
|
js_to_cbpp<std::string>(cppObj.index_name, jsObj.Get("index_name"));
|
9321
9380
|
js_to_cbpp<bool>(cppObj.pause, jsObj.Get("pause"));
|
9381
|
+
js_to_cbpp<std::optional<std::string>>(cppObj.bucket_name,
|
9382
|
+
jsObj.Get("bucket_name"));
|
9383
|
+
js_to_cbpp<std::optional<std::string>>(cppObj.scope_name,
|
9384
|
+
jsObj.Get("scope_name"));
|
9322
9385
|
js_to_cbpp<std::optional<std::string>>(cppObj.client_context_id,
|
9323
9386
|
jsObj.Get("client_context_id"));
|
9324
9387
|
js_to_cbpp<std::optional<std::chrono::milliseconds>>(
|
@@ -9333,6 +9396,10 @@ struct js_to_cbpp_t<couchbase::core::operations::management::
|
|
9333
9396
|
resObj.Set("index_name",
|
9334
9397
|
cbpp_to_js<std::string>(env, cppObj.index_name));
|
9335
9398
|
resObj.Set("pause", cbpp_to_js<bool>(env, cppObj.pause));
|
9399
|
+
resObj.Set("bucket_name", cbpp_to_js<std::optional<std::string>>(
|
9400
|
+
env, cppObj.bucket_name));
|
9401
|
+
resObj.Set("scope_name", cbpp_to_js<std::optional<std::string>>(
|
9402
|
+
env, cppObj.scope_name));
|
9336
9403
|
resObj.Set("client_context_id", cbpp_to_js<std::optional<std::string>>(
|
9337
9404
|
env, cppObj.client_context_id));
|
9338
9405
|
resObj.Set("timeout",
|
@@ -9766,6 +9833,10 @@ struct js_to_cbpp_t<
|
|
9766
9833
|
couchbase::core::operations::management::search_index_get_request
|
9767
9834
|
cppObj;
|
9768
9835
|
js_to_cbpp<std::string>(cppObj.index_name, jsObj.Get("index_name"));
|
9836
|
+
js_to_cbpp<std::optional<std::string>>(cppObj.bucket_name,
|
9837
|
+
jsObj.Get("bucket_name"));
|
9838
|
+
js_to_cbpp<std::optional<std::string>>(cppObj.scope_name,
|
9839
|
+
jsObj.Get("scope_name"));
|
9769
9840
|
js_to_cbpp<std::optional<std::string>>(cppObj.client_context_id,
|
9770
9841
|
jsObj.Get("client_context_id"));
|
9771
9842
|
js_to_cbpp<std::optional<std::chrono::milliseconds>>(
|
@@ -9780,6 +9851,10 @@ struct js_to_cbpp_t<
|
|
9780
9851
|
auto resObj = Napi::Object::New(env);
|
9781
9852
|
resObj.Set("index_name",
|
9782
9853
|
cbpp_to_js<std::string>(env, cppObj.index_name));
|
9854
|
+
resObj.Set("bucket_name", cbpp_to_js<std::optional<std::string>>(
|
9855
|
+
env, cppObj.bucket_name));
|
9856
|
+
resObj.Set("scope_name", cbpp_to_js<std::optional<std::string>>(
|
9857
|
+
env, cppObj.scope_name));
|
9783
9858
|
resObj.Set("client_context_id", cbpp_to_js<std::optional<std::string>>(
|
9784
9859
|
env, cppObj.client_context_id));
|
9785
9860
|
resObj.Set("timeout",
|
@@ -10073,6 +10148,10 @@ struct js_to_cbpp_t<couchbase::core::operations::management::
|
|
10073
10148
|
couchbase::core::operations::management::
|
10074
10149
|
search_index_get_documents_count_request cppObj;
|
10075
10150
|
js_to_cbpp<std::string>(cppObj.index_name, jsObj.Get("index_name"));
|
10151
|
+
js_to_cbpp<std::optional<std::string>>(cppObj.bucket_name,
|
10152
|
+
jsObj.Get("bucket_name"));
|
10153
|
+
js_to_cbpp<std::optional<std::string>>(cppObj.scope_name,
|
10154
|
+
jsObj.Get("scope_name"));
|
10076
10155
|
js_to_cbpp<std::optional<std::string>>(cppObj.client_context_id,
|
10077
10156
|
jsObj.Get("client_context_id"));
|
10078
10157
|
js_to_cbpp<std::optional<std::chrono::milliseconds>>(
|
@@ -10086,6 +10165,10 @@ struct js_to_cbpp_t<couchbase::core::operations::management::
|
|
10086
10165
|
auto resObj = Napi::Object::New(env);
|
10087
10166
|
resObj.Set("index_name",
|
10088
10167
|
cbpp_to_js<std::string>(env, cppObj.index_name));
|
10168
|
+
resObj.Set("bucket_name", cbpp_to_js<std::optional<std::string>>(
|
10169
|
+
env, cppObj.bucket_name));
|
10170
|
+
resObj.Set("scope_name", cbpp_to_js<std::optional<std::string>>(
|
10171
|
+
env, cppObj.scope_name));
|
10089
10172
|
resObj.Set("client_context_id", cbpp_to_js<std::optional<std::string>>(
|
10090
10173
|
env, cppObj.client_context_id));
|
10091
10174
|
resObj.Set("timeout",
|