diff --git a/.github/workflows/linux-build.yml b/.github/workflows/linux-build.yml
index 6dfc78120..be2d119e4 100644
--- a/.github/workflows/linux-build.yml
+++ b/.github/workflows/linux-build.yml
@@ -23,9 +23,7 @@ jobs:
strategy:
matrix:
node-version: # See supported Node.js release schedule at https://nodejs.org/en/about/releases/
- - 16.x
- 18.x
- - 19.x
- 20.x
continue-on-error: true
steps:
diff --git a/.github/workflows/windows-build.yml b/.github/workflows/windows-build.yml
index 158aea8fb..fa37d6624 100644
--- a/.github/workflows/windows-build.yml
+++ b/.github/workflows/windows-build.yml
@@ -29,9 +29,7 @@ jobs:
strategy:
matrix:
node-version: # See supported Node.js release schedule at https://nodejs.org/en/about/releases/
- - 16.x
- 18.x
- - 19.x
- 20.x
continue-on-error: true
name: Node ${{ matrix.node-version }} tester
diff --git a/README.md b/README.md
index a1effea28..07d7ff7b7 100644
--- a/README.md
+++ b/README.md
@@ -11,7 +11,7 @@
The Aerospike Node.js client is a Node.js add-on module, written using V8.
-The client is compatible with Node.js 20 (LTS), 19, 18 (LTS), 16 (LTS).
+The client is compatible with Node.js 20 (Upcoming LTS) and 18 (LTS).
It supports the following operating systems:
- RHEL 8/9
- Debian 10 (x86_64 architecture only)
@@ -301,7 +301,7 @@ const Aerospike = require('aerospike')
Access the client API documentation at:
[https://docs.aerospike.com/apidocs/nodejs](https://docs.aerospike.com/apidocs/nodejs).
This documentation is built from the client's source using [JSDocs
-v3](http://usejsdoc.org/index.html) for every release.
+v4](https://www.npmjs.com/package/jsdoc) for every release.
The API docs also contain a few basic tutorials:
diff --git a/incompatible.md b/incompatible.md
index 7df8a90f9..0f3ace53c 100644
--- a/incompatible.md
+++ b/incompatible.md
@@ -1,6 +1,11 @@
# Backward Incompatible API Changes
All notable changes to this project will be documented in this file.
+## [5.8.0]
+
+### Client no longer supports Node.js version 19
+### Client no longer supports Node.js version 16
+
## [5.5.0]
### Client no longer supports Node.js version 14
diff --git a/jsdoc.json b/jsdoc.json
index fe9bd60c6..6b570d6be 100644
--- a/jsdoc.json
+++ b/jsdoc.json
@@ -24,10 +24,27 @@
"domain": "aerospike.com"
}
},
+ "docdash": {
+ "sectionOrder": [
+ "Modules",
+ "Classes",
+ "Events",
+ "Tutorials",
+ "Global"
+ ],"meta": {
+ "title": "Aerospike Node.js Client API Documentation",
+ "description": "Explore the comprehensive documentation for the Aerospike Node.js Client API, covering usage, configuration, and examples. Learn how to integrate Aerospike with your Node.js applications efficiently.",
+ "keyword": "Aerospike, Node.js, Client API, Documentation, Usage, Configuration, Examples, Integration"
+ }
+ },
"opts": {
"destination": "./build/apidocs",
- "template": "./node_modules/ink-docstrap/template",
+ "template": "./node_modules/docdash",
"readme": "./docs/overview.md",
- "tutorials" : "./docs/tutorials"
+ "tutorials" : "./docs/tutorials",
+ "recurse": true,
+ "verbose": true
}
+
+
}
\ No newline at end of file
diff --git a/lib/aerospike.js b/lib/aerospike.js
index 0e2414097..b5f0b230b 100644
--- a/lib/aerospike.js
+++ b/lib/aerospike.js
@@ -264,6 +264,14 @@ exports.Key = require('./key')
*/
exports.Record = require('./record')
+/**
+ * In the Aerospike database, each record (similar to a row in a relational database) stores
+ * data using one or more bins (like columns in a relational database).
+ *
+ * @summary {@link Bin} class
+ */
+exports.Bin = require('./bin')
+
// ========================================================================
// Enumerations
// ========================================================================
diff --git a/lib/bin.js b/lib/bin.js
new file mode 100644
index 000000000..2ba7e73f1
--- /dev/null
+++ b/lib/bin.js
@@ -0,0 +1,59 @@
+// *****************************************************************************
+// Copyright 2023 Aerospike, Inc.
+//
+// Licensed under the Apache License, Version 2.0 (the "License")
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+// *****************************************************************************
+
+'use strict'
+
+/**
+ * @class Bin
+ * @classdesc Aerospike Bin
+ *
+ * In the Aerospike database, each record (similar to a row in a relational database) stores
+ * data using one or more bins (like columns in a relational database). The major difference
+ * between bins and RDBMS columns is that you don't need to define a schema. Each record can
+ * have multiple bins. Bins accept the data types listed {@link https://docs.aerospike.com/apidocs/nodejs/#toc4__anchor|here}.
+ *
+ * For information about these data types and how bins support them, see {@link https://docs.aerospike.com/server/guide/data-types/scalar-data-types|this}.
+ *
+ * Although the bin for a given record or object must be typed, bins in different rows do not
+ * have to be the same type. There are some internal performance optimizations for single-bin namespaces.
+ *
+ * @summary Construct a new Aerospike Bin instance.
+ *
+ */
+class Bin {
+ /** @private */
+ constructor (name, value, mapOrder) {
+ /**
+ * Bin name.
+ *
+ * @member {String} Bin#name
+ */
+ this.name = name
+
+ /**
+ * Bin value.
+ *
+ * @member {Any} Bin#value
+ */
+ if (mapOrder === 1) {
+ this.value = new Map(Object.entries(value))
+ } else {
+ this.value = value
+ }
+ }
+}
+
+module.exports = Bin
diff --git a/lib/error.js b/lib/error.js
index b77b9a2d8..86ce7012f 100644
--- a/lib/error.js
+++ b/lib/error.js
@@ -19,11 +19,13 @@
const status = require('./status')
/**
- * Error raised by the client when execution of a database command fails. This
- * may be either due to an error status code returned by the server, or caused
- * by an error condition that occured on the client side.
+ *
*
* @extends Error
+ * @class AerospikeError
+ * @classdesc Error raised by the client when execution of a database command fails. This
+ * may be either due to an error status code returned by the server, or caused
+ * by an error condition that occured on the client side.
*
* @example
Expected output: "Error: 127.0.0.1:3000 Record does not exist in database. May be returned by read, or write with policy Aerospike.policy.exists.UPDATE [2]"
*
@@ -49,7 +51,6 @@ const status = require('./status')
* })
*/
class AerospikeError extends Error {
- /** @private */
constructor (message, command) {
super(message)
this.name = this.constructor.name
diff --git a/lib/exp.js b/lib/exp.js
index 44bd93ef6..b6a853719 100644
--- a/lib/exp.js
+++ b/lib/exp.js
@@ -208,6 +208,22 @@ exports.geo = _valueExp(exp.ops.VAL_GEO, 'value')
*/
exports.nil = () => [{ op: exp.ops.AS_VAL, value: null }]
+/**
+ * Create 'inf' value.
+ *
+ * @function
+ * @return {AerospikeExp}
+ */
+exports.inf = () => [{ op: exp.ops.AS_VAL, inf: null }]
+
+/**
+ * Create 'wildcard' value.
+ *
+ * @function
+ * @return {AerospikeExp}
+ */
+exports.wildcard = () => [{ op: exp.ops.AS_VAL, wildcard: null }]
+
const _val = _valueExp(exp.ops.AS_VAL, 'value')
/**
diff --git a/lib/exp_lists.js b/lib/exp_lists.js
index 94bc7b5c0..3dfd29f3d 100644
--- a/lib/exp_lists.js
+++ b/lib/exp_lists.js
@@ -450,9 +450,9 @@ module.exports = {
* @param {AerospikeExp} ctx Optional context path for nested CDT.
* @return {AerospikeExp} (list expression)
*/
- removeByValue: (bin, value, ctx = null) => [
+ removeByValue: (bin, value, ctx = null, returnType = lists.returnType.NONE) => [
..._listModify(ctx, null, lists.opcodes.REMOVE_ALL_BY_VALUE, 2, 0),
- ..._int(lists.RETURN_NONE),
+ ..._int(lists.returnType.NONE),
...value,
...bin
],
@@ -465,9 +465,9 @@ module.exports = {
* @param {AerospikeExp} ctx Optional context path for nested CDT.
* @return {AerospikeExp} (list expression)
*/
- removeByValueList: (bin, values, ctx = null) => [
+ removeByValueList: (bin, values, ctx = null, returnType = lists.returnType.NONE) => [
..._listModify(ctx, null, lists.opcodes.REMOVE_BY_VALUE_LIST, 2, 0),
- ..._int(lists.RETURN_NONE),
+ ..._int(lists.returnType.NONE),
...values,
...bin
],
@@ -483,9 +483,9 @@ module.exports = {
* @param {AerospikeExp} ctx Optional context path for nested CDT.
* @return {AerospikeExp} (list expression)
*/
- removeByValueRange: (bin, end, begin, ctx = null) => [
+ removeByValueRange: (bin, end, begin, ctx = null, returnType = lists.returnType.NONE) => [
..._listModify(ctx, null, lists.opcodes.REMOVE_BY_VALUE_INTERVAL, 3, 0),
- ..._int(lists.RETURN_NONE),
+ ..._int(lists.returnType.NONE),
...begin,
...end,
...bin
@@ -500,9 +500,9 @@ module.exports = {
* @param {AerospikeExp} ctx Optional context path for nested CDT.
* @return {AerospikeExp} (list expression)
*/
- removeByRelRankRangeToEnd: (bin, rank, value, ctx = null) => [
+ removeByRelRankRangeToEnd: (bin, rank, value, ctx = null, returnType = lists.returnType.NONE) => [
..._listModify(ctx, null, lists.opcodes.REMOVE_BY_VALUE_REL_RANK_RANGE, 3, 0),
- ..._int(lists.RETURN_NONE),
+ ..._int(lists.returnType.NONE),
...value,
...rank,
...bin
@@ -519,9 +519,9 @@ module.exports = {
* @param {AerospikeExp} ctx Optional context path for nested CDT.
* @return {AerospikeExp} (list expression)
*/
- removeByRelRankRange: (bin, count, rank, value, ctx = null) => [
+ removeByRelRankRange: (bin, count, rank, value, ctx = null, returnType = lists.returnType.NONE) => [
..._listModify(ctx, null, lists.opcodes.REMOVE_BY_VALUE_REL_RANK_RANGE, 4, 0),
- ..._int(lists.RETURN_NONE),
+ ..._int(lists.returnType.NONE),
...value,
...rank,
...count,
@@ -536,9 +536,9 @@ module.exports = {
* @param {AerospikeExp} ctx Optional context path for nested CDT.
* @return {AerospikeExp} (list expression)
*/
- removeByIndex: (bin, idx, ctx = null) => [
+ removeByIndex: (bin, idx, ctx = null, returnType = lists.returnType.NONE) => [
..._listModify(ctx, null, lists.opcodes.REMOVE_BY_INDEX, 2, 0),
- ..._int(lists.RETURN_NONE),
+ ..._int(lists.returnType.NONE),
...idx,
...bin
],
@@ -551,9 +551,9 @@ module.exports = {
* @param {AerospikeExp} ctx Optional context path for nested CDT.
* @return {AerospikeExp} (list expression)
*/
- removeByIndexRangeToEnd: (bin, idx, ctx = null) => [
+ removeByIndexRangeToEnd: (bin, idx, ctx = null, returnType = lists.returnType.NONE) => [
..._listModify(ctx, null, lists.opcodes.REMOVE_BY_INDEX_RANGE, 2, 0),
- ..._int(lists.RETURN_NONE),
+ ..._int(lists.returnType.NONE),
...idx,
...bin
],
@@ -567,9 +567,9 @@ module.exports = {
* @param {AerospikeExp} ctx Optional context path for nested CDT.
* @return {AerospikeExp} (list expression)
*/
- removeByIndexRange: (bin, count, idx, ctx = null) => [
+ removeByIndexRange: (bin, count, idx, ctx = null, returnType = lists.returnType.NONE) => [
..._listModify(ctx, null, lists.opcodes.REMOVE_BY_INDEX_RANGE, 3, 0),
- ..._int(lists.RETURN_NONE),
+ ..._int(lists.returnType.NONE),
...idx,
...count,
...bin
@@ -583,9 +583,9 @@ module.exports = {
* @param {AerospikeExp} ctx Optional context path for nested CDT.
* @return {AerospikeExp} (list expression)
*/
- removeByRank: (bin, rank, ctx = null) => [
+ removeByRank: (bin, rank, ctx = null, returnType = lists.returnType.NONE) => [
..._listModify(ctx, null, lists.opcodes.REMOVE_BY_RANK, 2, 0),
- ..._int(lists.RETURN_NONE),
+ ..._int(lists.returnType.NONE),
...rank,
...bin
],
@@ -598,9 +598,9 @@ module.exports = {
* @param {AerospikeExp} ctx Optional context path for nested CDT.
* @return {AerospikeExp} (list expression)
*/
- removeByRankRangeToEnd: (bin, rank, ctx = null) => [
+ removeByRankRangeToEnd: (bin, rank, ctx = null, returnType = lists.returnType.NONE) => [
..._listModify(ctx, null, lists.opcodes.REMOVE_BY_RANK_RANGE, 2, 0),
- ..._int(lists.RETURN_NONE),
+ ..._int(lists.returnType.NONE),
...rank,
...bin
],
@@ -614,9 +614,9 @@ module.exports = {
* @param {AerospikeExp} ctx Optional context path for nested CDT.
* @return {AerospikeExp} (list expression)
*/
- removeByRankRange: (bin, count, rank, ctx = null) => [
+ removeByRankRange: (bin, count, rank, ctx = null, returnType = lists.returnType.NONE) => [
..._listModify(ctx, null, lists.opcodes.REMOVE_BY_RANK_RANGE, 3, 0),
- ..._int(lists.RETURN_NONE),
+ ..._int(lists.returnType.NONE),
...rank,
...count,
...bin
diff --git a/lib/exp_maps.js b/lib/exp_maps.js
index 1976a9e4b..2b78002d5 100644
--- a/lib/exp_maps.js
+++ b/lib/exp_maps.js
@@ -145,12 +145,13 @@ module.exports = {
* @param {AerospikeExp} bin Map bin or map value expression.
* @param {AerospikeExp} key Key expression.
* @param {AerospikeExp} ctx Optional context path for nested CDT.
+ * @param {AerospikeExp} returnType Optional Return type. Valid values are returnType.NONE or returnType.INVERTED.
* @return {AerospikeExp} (map expression)
*/
- removeByKey: (bin, key, ctx = null) => [
+ removeByKey: (bin, key, ctx = null, returnType = maps.returnType.NONE) => [
..._mapModify(ctx, null, maps.opcodes.REMOVE_BY_KEY, 2, 0),
- ..._int(maps.RETURN_NONE),
+ ..._int(returnType),
...key,
...bin
],
@@ -161,12 +162,13 @@ module.exports = {
* @param {AerospikeExp} bin Map bin or map value expression.
* @param {AerospikeExp} keys List expression of keys to remove.
* @param {AerospikeExp} ctx Optional context path for nested CDT.
+ * @param {AerospikeExp} returnType Optional Return type. Valid values are returnType.NONE or returnType.INVERTED.
* @return {AerospikeExp} (map expression)
*
*/
- removeByKeyList: (bin, keys, ctx = null) => [
+ removeByKeyList: (bin, keys, ctx = null, returnType = maps.returnType.NONE) => [
..._mapModify(ctx, null, maps.opcodes.REMOVE_BY_KEY_LIST, 2, 0),
- ..._int(maps.RETURN_NONE),
+ ..._int(returnType),
...keys,
...bin
],
@@ -180,11 +182,12 @@ module.exports = {
* @param {AerospikeExp} end End value expression.
* @param {AerospikeExp} begin Begin value expression.
* @param {AerospikeExp} ctx Optional context path for nested CDT.
+ * @param {AerospikeExp} returnType Optional Return type. Valid values are returnType.NONE or returnType.INVERTED.
* @return {AerospikeExp} (map expression)
*/
- removeByKeyRange: (bin, end, begin, ctx = null) => [
+ removeByKeyRange: (bin, end, begin, ctx = null, returnType = maps.returnType.NONE) => [
..._mapModify(ctx, null, maps.opcodes.REMOVE_BY_KEY_INTERVAL, 3, 0),
- ..._int(maps.RETURN_NONE),
+ ..._int(returnType),
...begin,
...end,
...bin
@@ -197,11 +200,12 @@ module.exports = {
* @param {AerospikeExp} idx Index integer expression.
* @param {AerospikeExp} key Key expression.
* @param {AerospikeExp} ctx Optional context path for nested CDT.
+ * @param {AerospikeExp} returnType Optional Return type. Valid values are returnType.NONE or returnType.INVERTED.
* @return {AerospikeExp} (map expression)
*/
- removeByKeyRelIndexRangeToEnd: (bin, idx, key, ctx = null) => [
+ removeByKeyRelIndexRangeToEnd: (bin, idx, key, ctx = null, returnType = maps.returnType.NONE) => [
..._mapModify(ctx, null, maps.opcodes.REMOVE_BY_KEY_REL_INDEX_RANGE, 3, 0),
- ..._int(maps.RETURN_NONE),
+ ..._int(returnType),
...key,
...idx,
...bin
@@ -215,11 +219,12 @@ module.exports = {
* @param {AerospikeExp} idx Index integer expression.
* @param {AerospikeExp} key Key expression.
* @param {AerospikeExp} ctx Optional context path for nested CDT.
+ * @param {AerospikeExp} returnType Optional Return type. Valid values are returnType.NONE or returnType.INVERTED.
* @return {AerospikeExp} (map expression)
*/
- removeByKeyRelIndexRange: (bin, count, idx, key, ctx = null) => [
+ removeByKeyRelIndexRange: (bin, count, idx, key, ctx = null, returnType = maps.returnType.NONE) => [
..._mapModify(ctx, null, maps.opcodes.REMOVE_BY_KEY_REL_INDEX_RANGE, 4, 0),
- ..._int(maps.RETURN_NONE),
+ ..._int(returnType),
...key,
...idx,
...count,
@@ -232,11 +237,12 @@ module.exports = {
* @param {AerospikeExp} bin Map bin or map value expression.
* @param {AerospikeExp} value Value expression.
* @param {AerospikeExp} ctx Optional context path for nested CDT.
+ * @param {AerospikeExp} returnType Optional Return type. Valid values are returnType.NONE or returnType.INVERTED.
* @return {AerospikeExp} (map expression)
*/
- removeByValue: (bin, value, ctx = null) => [
+ removeByValue: (bin, value, ctx = null, returnType = maps.returnType.NONE) => [
..._mapModify(ctx, null, maps.opcodes.REMOVE_ALL_BY_VALUE, 2, 0),
- ..._int(maps.RETURN_NONE),
+ ..._int(returnType),
...value,
...bin
],
@@ -247,11 +253,12 @@ module.exports = {
* @param {AerospikeExp} bin Map bin or map value expression.
* @param {AerospikeExp} values Values list expression.
* @param {AerospikeExp} ctx Optional context path for nested CDT.
+ * @param {AerospikeExp} returnType Optional Return type. Valid values are returnType.NONE or returnType.INVERTED.
* @return {AerospikeExp} (map expression)
*/
- removeByValueList: (bin, values, ctx = null) => [
+ removeByValueList: (bin, values, ctx = null, returnType = maps.returnType.NONE) => [
..._mapModify(ctx, null, maps.opcodes.REMOVE_BY_VALUE_LIST, 2, 0),
- ..._int(maps.RETURN_NONE),
+ ..._int(returnType),
...values,
...bin
],
@@ -265,11 +272,12 @@ module.exports = {
* @param {AerospikeExp} end End value expression.
* @param {AerospikeExp} begin Begin value expression.
* @param {AerospikeExp} ctx Optional context path for nested CDT.
+ * @param {AerospikeExp} returnType Optional Return type. Valid values are returnType.NONE or returnType.INVERTED.
* @return {AerospikeExp} (map expression)
*/
- removeByValueRange: (bin, end, begin, ctx = null) => [
+ removeByValueRange: (bin, end, begin, ctx = null, returnType = maps.returnType.NONE) => [
..._mapModify(ctx, null, maps.opcodes.REMOVE_BY_VALUE_INTERVAL, 3, 0),
- ..._int(maps.RETURN_NONE),
+ ..._int(returnType),
...begin,
...end,
...bin
@@ -282,11 +290,12 @@ module.exports = {
* @param {AerospikeExp} rank Rank integer expression.
* @param {AerospikeExp} value Value expression.
* @param {AerospikeExp} ctx Optional context path for nested CDT.
+ * @param {AerospikeExp} returnType Optional Return type. Valid values are returnType.NONE or returnType.INVERTED.
* @return {AerospikeExp} (map expression)
*/
- removeByValueRelRankRangeToEnd: (bin, rank, value, ctx = null) => [
+ removeByValueRelRankRangeToEnd: (bin, rank, value, ctx = null, returnType = maps.returnType.NONE) => [
..._mapModify(ctx, null, maps.opcodes.REMOVE_BY_VALUE_REL_RANK_RANGE, 3, 0),
- ..._int(maps.RETURN_NONE),
+ ..._int(returnType),
...value,
...rank,
...bin
@@ -301,11 +310,12 @@ module.exports = {
* @param {AerospikeExp} rank Rank integer expression.
* @param {AerospikeExp} value Value expression.
* @param {AerospikeExp} ctx Optional context path for nested CDT.
+ * @param {AerospikeExp} returnType Optional Return type. Valid values are returnType.NONE or returnType.INVERTED.
* @return {AerospikeExp} (map expression)
*/
- removeByValueRelRankRange: (bin, count, rank, value, ctx = null) => [
+ removeByValueRelRankRange: (bin, count, rank, value, ctx = null, returnType = maps.returnType.NONE) => [
..._mapModify(ctx, null, maps.opcodes.REMOVE_BY_VALUE_REL_RANK_RANGE, 4, 0),
- ..._int(maps.RETURN_NONE),
+ ..._int(returnType),
...value,
...rank,
...count,
@@ -318,11 +328,12 @@ module.exports = {
* @param {AerospikeExp} bin Map bin or map value expression.
* @param {AerospikeExp} idx Index integer expression.
* @param {AerospikeExp} ctx Optional context path for nested CDT.
+ * @param {AerospikeExp} returnType Optional Return type. Valid values are returnType.NONE or returnType.INVERTED.
* @return {AerospikeExp} (map expression)
*/
- removeByIndex: (bin, idx, ctx = null) => [
+ removeByIndex: (bin, idx, ctx = null, returnType = maps.returnType.NONE) => [
..._mapModify(ctx, null, maps.opcodes.REMOVE_BY_INDEX, 2, 0),
- ..._int(maps.RETURN_NONE),
+ ..._int(returnType),
...idx,
...bin
],
@@ -333,11 +344,12 @@ module.exports = {
* @param {AerospikeExp} bin Map bin or map value expression.
* @param {AerospikeExp} idx Index integer expression.
* @param {AerospikeExp} ctx Optional context path for nested CDT.
+ * @param {AerospikeExp} returnType Optional Return type. Valid values are returnType.NONE or returnType.INVERTED.
* @return {AerospikeExp} (map expression)
*/
- removeByIndexRangeToEnd: (bin, idx, ctx = null) => [
+ removeByIndexRangeToEnd: (bin, idx, ctx = null, returnType = maps.returnType.NONE) => [
..._mapModify(ctx, null, maps.opcodes.REMOVE_BY_INDEX_RANGE, 2, 0),
- ..._int(maps.RETURN_NONE),
+ ..._int(returnType),
...idx,
...bin
],
@@ -349,11 +361,12 @@ module.exports = {
* @param {AerospikeExp} count Count integer expression.
* @param {AerospikeExp} idx Index integer expression.
* @param {AerospikeExp} ctx Optional context path for nested CDT.
+ * @param {AerospikeExp} returnType Optional Return type. Valid values are returnType.NONE or returnType.INVERTED.
* @return {AerospikeExp} (map expression)
*/
- removeByIndexRange: (bin, count, idx, ctx = null) => [
- ..._mapModify(ctx, null, maps.opcodes.PUT, 3, 0),
- ..._int(maps.RETURN_NONE),
+ removeByIndexRange: (bin, count, idx, ctx = null, returnType = maps.returnType.NONE) => [
+ ..._mapModify(ctx, null, maps.opcodes.REMOVE_BY_INDEX_RANGE, 3, 0),
+ ..._int(returnType),
...idx,
...count,
...bin
@@ -365,11 +378,12 @@ module.exports = {
* @param {AerospikeExp} bin Map bin or map value expression.
* @param {AerospikeExp} rank Rank integer expression.
* @param {AerospikeExp} ctx Optional context path for nested CDT.
+ * @param {AerospikeExp} returnType Optional Return type. Valid values are returnType.NONE or returnType.INVERTED.
* @return {AerospikeExp} (map expression)
*/
- removeByRank: (bin, rank, ctx = null) => [
+ removeByRank: (bin, rank, ctx = null, returnType = maps.returnType.NONE) => [
..._mapModify(ctx, null, maps.opcodes.REMOVE_BY_RANK, 2, 0),
- ..._int(maps.RETURN_NONE),
+ ..._int(returnType),
...rank,
...bin
],
@@ -380,11 +394,12 @@ module.exports = {
* @param {AerospikeExp} bin Map bin or map value expression.
* @param {AerospikeExp} rank Rank integer expression.
* @param {AerospikeExp} ctx Optional context path for nested CDT.
+ * @param {AerospikeExp} returnType Optional Return type. Valid values are returnType.NONE or returnType.INVERTED.
* @return {AerospikeExp} (map expression)
*/
- removeByRankRangeToEnd: (bin, rank, ctx = null) => [
+ removeByRankRangeToEnd: (bin, rank, ctx = null, returnType = maps.returnType.NONE) => [
..._mapModify(ctx, null, maps.opcodes.REMOVE_BY_RANK_RANGE, 2, 0),
- ..._int(maps.RETURN_NONE),
+ ..._int(returnType),
...rank,
...bin
],
@@ -396,11 +411,12 @@ module.exports = {
* @param {AerospikeExp} count Count integer expression.
* @param {AerospikeExp} rank Rank integer expression.
* @param {AerospikeExp} ctx Optional context path for nested CDT.
+ * @param {AerospikeExp} returnType Optional Return type. Valid values are returnType.NONE or returnType.INVERTED.
* @return {AerospikeExp} (map expression)
*/
- removeByRankRange: (bin, count, rank, ctx = null) => [
+ removeByRankRange: (bin, count, rank, ctx = null, returnType = maps.returnType.NONE) => [
..._mapModify(ctx, null, maps.opcodes.REMOVE_BY_RANK_RANGE, 3, 0),
- ..._int(maps.RETURN_NONE),
+ ..._int(returnType),
...rank,
...count,
...bin
@@ -476,7 +492,7 @@ module.exports = {
*/
getByKeyList: (bin, keys, returnType, ctx = null) => [
..._mapRead(exp.type.AUTO, returnType, true),
- ..._mapStart(ctx, maps.opcodes.GET_BY_KEY_INTERVAL, 2),
+ ..._mapStart(ctx, maps.opcodes.GET_BY_KEY_LIST, 2),
..._int(returnType),
...keys,
...bin
@@ -495,7 +511,7 @@ module.exports = {
*/
getByKeyRelIndexRangeToEnd: (bin, idx, key, returnType, ctx = null) => [
..._mapRead(exp.type.AUTO, returnType, true),
- ..._mapStart(ctx, maps.opcodes.GET_BY_KEY_INTERVAL, 3),
+ ..._mapStart(ctx, maps.opcodes.GET_BY_KEY_REL_INDEX_RANGE, 3),
..._int(returnType),
...key,
...idx,
@@ -577,7 +593,7 @@ module.exports = {
*/
getByValueList: (bin, values, returnType, ctx = null) => [
..._mapRead(exp.type.AUTO, returnType, true),
- ..._mapStart(ctx, maps.opcodes.GET_BY_VALUE_INTERVAL, 2),
+ ..._mapStart(ctx, maps.opcodes.GET_BY_VALUE_LIST, 2),
..._int(returnType),
...values,
...bin
diff --git a/package-lock.json b/package-lock.json
index 8434bedf3..42991f5e4 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "aerospike",
- "version": "5.6.0",
+ "version": "5.8.0",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "aerospike",
- "version": "5.6.0",
+ "version": "5.8.0",
"cpu": [
"x64",
"arm64"
@@ -35,6 +35,7 @@
"husky": "^7.0.4",
"mocha": "^9.2.2",
"mocha-clean": "^1.0.0",
+ "npm-run-all": "^4.1.5",
"nyc": "^15.1.0",
"p-throttle": "^3.1.0",
"semver": "^7.5.4",
@@ -69,12 +70,12 @@
}
},
"node_modules/@babel/code-frame": {
- "version": "7.22.10",
- "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.22.10.tgz",
- "integrity": "sha512-/KKIMG4UEL35WmI9OlvMhurwtytjvXoFcGNrOvyG9zIzA8YmPjVtIZUf7b05+TPO7G7/GEmLHDaoCgACHl9hhA==",
+ "version": "7.22.13",
+ "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.22.13.tgz",
+ "integrity": "sha512-XktuhWlJ5g+3TJXc5upd9Ks1HutSArik6jf2eAjYFyIOf4ej3RN+184cZbzDvbPnuTJIUhPKKJE3cIsYTiAT3w==",
"dev": true,
"dependencies": {
- "@babel/highlight": "^7.22.10",
+ "@babel/highlight": "^7.22.13",
"chalk": "^2.4.2"
},
"engines": {
@@ -82,34 +83,34 @@
}
},
"node_modules/@babel/compat-data": {
- "version": "7.22.9",
- "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.22.9.tgz",
- "integrity": "sha512-5UamI7xkUcJ3i9qVDS+KFDEK8/7oJ55/sJMB1Ge7IEapr7KfdfV/HErR+koZwOfd+SgtFKOKRhRakdg++DcJpQ==",
+ "version": "7.22.20",
+ "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.22.20.tgz",
+ "integrity": "sha512-BQYjKbpXjoXwFW5jGqiizJQQT/aC7pFm9Ok1OWssonuguICi264lbgMzRp2ZMmRSlfkX6DsWDDcsrctK8Rwfiw==",
"dev": true,
"engines": {
"node": ">=6.9.0"
}
},
"node_modules/@babel/core": {
- "version": "7.22.10",
- "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.22.10.tgz",
- "integrity": "sha512-fTmqbbUBAwCcre6zPzNngvsI0aNrPZe77AeqvDxWM9Nm+04RrJ3CAmGHA9f7lJQY6ZMhRztNemy4uslDxTX4Qw==",
+ "version": "7.23.0",
+ "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.23.0.tgz",
+ "integrity": "sha512-97z/ju/Jy1rZmDxybphrBuI+jtJjFVoz7Mr9yUQVVVi+DNZE333uFQeMOqcCIy1x3WYBIbWftUSLmbNXNT7qFQ==",
"dev": true,
"dependencies": {
"@ampproject/remapping": "^2.2.0",
- "@babel/code-frame": "^7.22.10",
- "@babel/generator": "^7.22.10",
- "@babel/helper-compilation-targets": "^7.22.10",
- "@babel/helper-module-transforms": "^7.22.9",
- "@babel/helpers": "^7.22.10",
- "@babel/parser": "^7.22.10",
- "@babel/template": "^7.22.5",
- "@babel/traverse": "^7.22.10",
- "@babel/types": "^7.22.10",
- "convert-source-map": "^1.7.0",
+ "@babel/code-frame": "^7.22.13",
+ "@babel/generator": "^7.23.0",
+ "@babel/helper-compilation-targets": "^7.22.15",
+ "@babel/helper-module-transforms": "^7.23.0",
+ "@babel/helpers": "^7.23.0",
+ "@babel/parser": "^7.23.0",
+ "@babel/template": "^7.22.15",
+ "@babel/traverse": "^7.23.0",
+ "@babel/types": "^7.23.0",
+ "convert-source-map": "^2.0.0",
"debug": "^4.1.0",
"gensync": "^1.0.0-beta.2",
- "json5": "^2.2.2",
+ "json5": "^2.2.3",
"semver": "^6.3.1"
},
"engines": {
@@ -120,6 +121,12 @@
"url": "https://opencollective.com/babel"
}
},
+ "node_modules/@babel/core/node_modules/convert-source-map": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz",
+ "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==",
+ "dev": true
+ },
"node_modules/@babel/core/node_modules/semver": {
"version": "6.3.1",
"resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz",
@@ -130,12 +137,12 @@
}
},
"node_modules/@babel/generator": {
- "version": "7.22.10",
- "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.22.10.tgz",
- "integrity": "sha512-79KIf7YiWjjdZ81JnLujDRApWtl7BxTqWD88+FFdQEIOG8LJ0etDOM7CXuIgGJa55sGOwZVwuEsaLEm0PJ5/+A==",
+ "version": "7.23.0",
+ "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.23.0.tgz",
+ "integrity": "sha512-lN85QRR+5IbYrMWM6Y4pE/noaQtg4pNiqeNGX60eqOfo6gtEj6uw/JagelB8vVztSd7R6M5n1+PQkDbHbBRU4g==",
"dev": true,
"dependencies": {
- "@babel/types": "^7.22.10",
+ "@babel/types": "^7.23.0",
"@jridgewell/gen-mapping": "^0.3.2",
"@jridgewell/trace-mapping": "^0.3.17",
"jsesc": "^2.5.1"
@@ -145,13 +152,13 @@
}
},
"node_modules/@babel/helper-compilation-targets": {
- "version": "7.22.10",
- "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.22.10.tgz",
- "integrity": "sha512-JMSwHD4J7SLod0idLq5PKgI+6g/hLD/iuWBq08ZX49xE14VpVEojJ5rHWptpirV2j020MvypRLAXAO50igCJ5Q==",
+ "version": "7.22.15",
+ "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.22.15.tgz",
+ "integrity": "sha512-y6EEzULok0Qvz8yyLkCvVX+02ic+By2UdOhylwUOvOn9dvYc9mKICJuuU1n1XBI02YWsNsnrY1kc6DVbjcXbtw==",
"dev": true,
"dependencies": {
"@babel/compat-data": "^7.22.9",
- "@babel/helper-validator-option": "^7.22.5",
+ "@babel/helper-validator-option": "^7.22.15",
"browserslist": "^4.21.9",
"lru-cache": "^5.1.1",
"semver": "^6.3.1"
@@ -185,22 +192,22 @@
"dev": true
},
"node_modules/@babel/helper-environment-visitor": {
- "version": "7.22.5",
- "resolved": "https://registry.npmjs.org/@babel/helper-environment-visitor/-/helper-environment-visitor-7.22.5.tgz",
- "integrity": "sha512-XGmhECfVA/5sAt+H+xpSg0mfrHq6FzNr9Oxh7PSEBBRUb/mL7Kz3NICXb194rCqAEdxkhPT1a88teizAFyvk8Q==",
+ "version": "7.22.20",
+ "resolved": "https://registry.npmjs.org/@babel/helper-environment-visitor/-/helper-environment-visitor-7.22.20.tgz",
+ "integrity": "sha512-zfedSIzFhat/gFhWfHtgWvlec0nqB9YEIVrpuwjruLlXfUSnA8cJB0miHKwqDnQ7d32aKo2xt88/xZptwxbfhA==",
"dev": true,
"engines": {
"node": ">=6.9.0"
}
},
"node_modules/@babel/helper-function-name": {
- "version": "7.22.5",
- "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.22.5.tgz",
- "integrity": "sha512-wtHSq6jMRE3uF2otvfuD3DIvVhOsSNshQl0Qrd7qC9oQJzHvOL4qQXlQn2916+CXGywIjpGuIkoyZRRxHPiNQQ==",
+ "version": "7.23.0",
+ "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.23.0.tgz",
+ "integrity": "sha512-OErEqsrxjZTJciZ4Oo+eoZqeW9UIiOcuYKRJA4ZAgV9myA+pOXhhmpfNCKjEH/auVfEYVFJ6y1Tc4r0eIApqiw==",
"dev": true,
"dependencies": {
- "@babel/template": "^7.22.5",
- "@babel/types": "^7.22.5"
+ "@babel/template": "^7.22.15",
+ "@babel/types": "^7.23.0"
},
"engines": {
"node": ">=6.9.0"
@@ -219,28 +226,28 @@
}
},
"node_modules/@babel/helper-module-imports": {
- "version": "7.22.5",
- "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.22.5.tgz",
- "integrity": "sha512-8Dl6+HD/cKifutF5qGd/8ZJi84QeAKh+CEe1sBzz8UayBBGg1dAIJrdHOcOM5b2MpzWL2yuotJTtGjETq0qjXg==",
+ "version": "7.22.15",
+ "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.22.15.tgz",
+ "integrity": "sha512-0pYVBnDKZO2fnSPCrgM/6WMc7eS20Fbok+0r88fp+YtWVLZrp4CkafFGIp+W0VKw4a22sgebPT99y+FDNMdP4w==",
"dev": true,
"dependencies": {
- "@babel/types": "^7.22.5"
+ "@babel/types": "^7.22.15"
},
"engines": {
"node": ">=6.9.0"
}
},
"node_modules/@babel/helper-module-transforms": {
- "version": "7.22.9",
- "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.22.9.tgz",
- "integrity": "sha512-t+WA2Xn5K+rTeGtC8jCsdAH52bjggG5TKRuRrAGNM/mjIbO4GxvlLMFOEz9wXY5I2XQ60PMFsAG2WIcG82dQMQ==",
+ "version": "7.23.0",
+ "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.23.0.tgz",
+ "integrity": "sha512-WhDWw1tdrlT0gMgUJSlX0IQvoO1eN279zrAUbVB+KpV2c3Tylz8+GnKOLllCS6Z/iZQEyVYxhZVUdPTqs2YYPw==",
"dev": true,
"dependencies": {
- "@babel/helper-environment-visitor": "^7.22.5",
- "@babel/helper-module-imports": "^7.22.5",
+ "@babel/helper-environment-visitor": "^7.22.20",
+ "@babel/helper-module-imports": "^7.22.15",
"@babel/helper-simple-access": "^7.22.5",
"@babel/helper-split-export-declaration": "^7.22.6",
- "@babel/helper-validator-identifier": "^7.22.5"
+ "@babel/helper-validator-identifier": "^7.22.20"
},
"engines": {
"node": ">=6.9.0"
@@ -283,44 +290,44 @@
}
},
"node_modules/@babel/helper-validator-identifier": {
- "version": "7.22.5",
- "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.22.5.tgz",
- "integrity": "sha512-aJXu+6lErq8ltp+JhkJUfk1MTGyuA4v7f3pA+BJ5HLfNC6nAQ0Cpi9uOquUj8Hehg0aUiHzWQbOVJGao6ztBAQ==",
+ "version": "7.22.20",
+ "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.22.20.tgz",
+ "integrity": "sha512-Y4OZ+ytlatR8AI+8KZfKuL5urKp7qey08ha31L8b3BwewJAoJamTzyvxPR/5D+KkdJCGPq/+8TukHBlY10FX9A==",
"dev": true,
"engines": {
"node": ">=6.9.0"
}
},
"node_modules/@babel/helper-validator-option": {
- "version": "7.22.5",
- "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.22.5.tgz",
- "integrity": "sha512-R3oB6xlIVKUnxNUxbmgq7pKjxpru24zlimpE8WK47fACIlM0II/Hm1RS8IaOI7NgCr6LNS+jl5l75m20npAziw==",
+ "version": "7.22.15",
+ "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.22.15.tgz",
+ "integrity": "sha512-bMn7RmyFjY/mdECUbgn9eoSY4vqvacUnS9i9vGAGttgFWesO6B4CYWA7XlpbWgBt71iv/hfbPlynohStqnu5hA==",
"dev": true,
"engines": {
"node": ">=6.9.0"
}
},
"node_modules/@babel/helpers": {
- "version": "7.22.10",
- "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.22.10.tgz",
- "integrity": "sha512-a41J4NW8HyZa1I1vAndrraTlPZ/eZoga2ZgS7fEr0tZJGVU4xqdE80CEm0CcNjha5EZ8fTBYLKHF0kqDUuAwQw==",
+ "version": "7.23.1",
+ "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.23.1.tgz",
+ "integrity": "sha512-chNpneuK18yW5Oxsr+t553UZzzAs3aZnFm4bxhebsNTeshrC95yA7l5yl7GBAG+JG1rF0F7zzD2EixK9mWSDoA==",
"dev": true,
"dependencies": {
- "@babel/template": "^7.22.5",
- "@babel/traverse": "^7.22.10",
- "@babel/types": "^7.22.10"
+ "@babel/template": "^7.22.15",
+ "@babel/traverse": "^7.23.0",
+ "@babel/types": "^7.23.0"
},
"engines": {
"node": ">=6.9.0"
}
},
"node_modules/@babel/highlight": {
- "version": "7.22.10",
- "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.22.10.tgz",
- "integrity": "sha512-78aUtVcT7MUscr0K5mIEnkwxPE0MaxkR5RxRwuHaQ+JuU5AmTPhY+do2mdzVTnIJJpyBglql2pehuBIWHug+WQ==",
+ "version": "7.22.20",
+ "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.22.20.tgz",
+ "integrity": "sha512-dkdMCN3py0+ksCgYmGG8jKeGA/8Tk+gJwSYYlFGxG5lmhfKNoAy004YpLxpS1W2J8m/EK2Ew+yOs9pVRwO89mg==",
"dev": true,
"dependencies": {
- "@babel/helper-validator-identifier": "^7.22.5",
+ "@babel/helper-validator-identifier": "^7.22.20",
"chalk": "^2.4.2",
"js-tokens": "^4.0.0"
},
@@ -329,9 +336,9 @@
}
},
"node_modules/@babel/parser": {
- "version": "7.22.10",
- "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.22.10.tgz",
- "integrity": "sha512-lNbdGsQb9ekfsnjFGhEiF4hfFqGgfOP3H3d27re3n+CGhNuTSUEQdfWk556sTLNTloczcdM5TYF2LhzmDQKyvQ==",
+ "version": "7.23.0",
+ "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.23.0.tgz",
+ "integrity": "sha512-vvPKKdMemU85V9WE/l5wZEmImpCtLqbnTvqDS2U1fJ96KrxoW7KrXhNsNCblQlg8Ck4b85yxdTyelsMUgFUXiw==",
"dev": true,
"bin": {
"parser": "bin/babel-parser.js"
@@ -341,33 +348,33 @@
}
},
"node_modules/@babel/template": {
- "version": "7.22.5",
- "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.22.5.tgz",
- "integrity": "sha512-X7yV7eiwAxdj9k94NEylvbVHLiVG1nvzCV2EAowhxLTwODV1jl9UzZ48leOC0sH7OnuHrIkllaBgneUykIcZaw==",
+ "version": "7.22.15",
+ "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.22.15.tgz",
+ "integrity": "sha512-QPErUVm4uyJa60rkI73qneDacvdvzxshT3kksGqlGWYdOTIUOwJ7RDUL8sGqslY1uXWSL6xMFKEXDS3ox2uF0w==",
"dev": true,
"dependencies": {
- "@babel/code-frame": "^7.22.5",
- "@babel/parser": "^7.22.5",
- "@babel/types": "^7.22.5"
+ "@babel/code-frame": "^7.22.13",
+ "@babel/parser": "^7.22.15",
+ "@babel/types": "^7.22.15"
},
"engines": {
"node": ">=6.9.0"
}
},
"node_modules/@babel/traverse": {
- "version": "7.22.10",
- "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.22.10.tgz",
- "integrity": "sha512-Q/urqV4pRByiNNpb/f5OSv28ZlGJiFiiTh+GAHktbIrkPhPbl90+uW6SmpoLyZqutrg9AEaEf3Q/ZBRHBXgxig==",
+ "version": "7.23.0",
+ "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.23.0.tgz",
+ "integrity": "sha512-t/QaEvyIoIkwzpiZ7aoSKK8kObQYeF7T2v+dazAYCb8SXtp58zEVkWW7zAnju8FNKNdr4ScAOEDmMItbyOmEYw==",
"dev": true,
"dependencies": {
- "@babel/code-frame": "^7.22.10",
- "@babel/generator": "^7.22.10",
- "@babel/helper-environment-visitor": "^7.22.5",
- "@babel/helper-function-name": "^7.22.5",
+ "@babel/code-frame": "^7.22.13",
+ "@babel/generator": "^7.23.0",
+ "@babel/helper-environment-visitor": "^7.22.20",
+ "@babel/helper-function-name": "^7.23.0",
"@babel/helper-hoist-variables": "^7.22.5",
"@babel/helper-split-export-declaration": "^7.22.6",
- "@babel/parser": "^7.22.10",
- "@babel/types": "^7.22.10",
+ "@babel/parser": "^7.23.0",
+ "@babel/types": "^7.23.0",
"debug": "^4.1.0",
"globals": "^11.1.0"
},
@@ -376,13 +383,13 @@
}
},
"node_modules/@babel/types": {
- "version": "7.22.10",
- "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.22.10.tgz",
- "integrity": "sha512-obaoigiLrlDZ7TUQln/8m4mSqIW2QFeOrCQc9r+xsaHGNoplVNYlRVpsfE8Vj35GEm2ZH4ZhrNYogs/3fj85kg==",
+ "version": "7.23.0",
+ "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.23.0.tgz",
+ "integrity": "sha512-0oIyUfKoI3mSqMvsxBdclDwxXKXAUA8v/apZbc+iSyARYou1o8ZGDxbUYyLFoW2arqS2jDGqJuZvv1d/io1axg==",
"dev": true,
"dependencies": {
"@babel/helper-string-parser": "^7.22.5",
- "@babel/helper-validator-identifier": "^7.22.5",
+ "@babel/helper-validator-identifier": "^7.22.20",
"to-fast-properties": "^2.0.0"
},
"engines": {
@@ -808,15 +815,15 @@
}
},
"node_modules/array-includes": {
- "version": "3.1.6",
- "resolved": "https://registry.npmjs.org/array-includes/-/array-includes-3.1.6.tgz",
- "integrity": "sha512-sgTbLvL6cNnw24FnbaDyjmvddQ2ML8arZsgaJhoABMoplz/4QRhtrYS+alr1BUM1Bwp6dhx8vVCBSLG+StwOFw==",
+ "version": "3.1.7",
+ "resolved": "https://registry.npmjs.org/array-includes/-/array-includes-3.1.7.tgz",
+ "integrity": "sha512-dlcsNBIiWhPkHdOEEKnehA+RNUWDc4UqFtnIXU4uuYDPtA4LDkr7qip2p0VvFAEXNDr0yWZ9PJyIRiGjRLQzwQ==",
"dev": true,
"dependencies": {
"call-bind": "^1.0.2",
- "define-properties": "^1.1.4",
- "es-abstract": "^1.20.4",
- "get-intrinsic": "^1.1.3",
+ "define-properties": "^1.2.0",
+ "es-abstract": "^1.22.1",
+ "get-intrinsic": "^1.2.1",
"is-string": "^1.0.7"
},
"engines": {
@@ -827,14 +834,14 @@
}
},
"node_modules/array.prototype.flat": {
- "version": "1.3.1",
- "resolved": "https://registry.npmjs.org/array.prototype.flat/-/array.prototype.flat-1.3.1.tgz",
- "integrity": "sha512-roTU0KWIOmJ4DRLmwKd19Otg0/mT3qPNt0Qb3GWW8iObuZXxrjB/pzn0R3hqpRSWg4HCwqx+0vwOnWnvlOyeIA==",
+ "version": "1.3.2",
+ "resolved": "https://registry.npmjs.org/array.prototype.flat/-/array.prototype.flat-1.3.2.tgz",
+ "integrity": "sha512-djYB+Zx2vLewY8RWlNCUdHjDXs2XOgm602S9E7P/UpHgfeHL00cRiIF+IN/G/aUJ7kGPb6yO/ErDI5V2s8iycA==",
"dev": true,
"dependencies": {
"call-bind": "^1.0.2",
- "define-properties": "^1.1.4",
- "es-abstract": "^1.20.4",
+ "define-properties": "^1.2.0",
+ "es-abstract": "^1.22.1",
"es-shim-unscopables": "^1.0.0"
},
"engines": {
@@ -845,14 +852,14 @@
}
},
"node_modules/array.prototype.flatmap": {
- "version": "1.3.1",
- "resolved": "https://registry.npmjs.org/array.prototype.flatmap/-/array.prototype.flatmap-1.3.1.tgz",
- "integrity": "sha512-8UGn9O1FDVvMNB0UlLv4voxRMze7+FpHyF5mSMRjWHUMlpoDViniy05870VlxhfgTnLbpuwTzvD76MTtWxB/mQ==",
+ "version": "1.3.2",
+ "resolved": "https://registry.npmjs.org/array.prototype.flatmap/-/array.prototype.flatmap-1.3.2.tgz",
+ "integrity": "sha512-Ewyx0c9PmpcsByhSW4r+9zDU7sGjFc86qf/kKtuSCRdhfbk0SNLLkaT5qvcHnRGgc5NP/ly/y+qkXkqONX54CQ==",
"dev": true,
"dependencies": {
"call-bind": "^1.0.2",
- "define-properties": "^1.1.4",
- "es-abstract": "^1.20.4",
+ "define-properties": "^1.2.0",
+ "es-abstract": "^1.22.1",
"es-shim-unscopables": "^1.0.0"
},
"engines": {
@@ -863,14 +870,15 @@
}
},
"node_modules/arraybuffer.prototype.slice": {
- "version": "1.0.1",
- "resolved": "https://registry.npmjs.org/arraybuffer.prototype.slice/-/arraybuffer.prototype.slice-1.0.1.tgz",
- "integrity": "sha512-09x0ZWFEjj4WD8PDbykUwo3t9arLn8NIzmmYEJFpYekOAQjpkGSyrQhNoRTcwwcFRu+ycWF78QZ63oWTqSjBcw==",
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/arraybuffer.prototype.slice/-/arraybuffer.prototype.slice-1.0.2.tgz",
+ "integrity": "sha512-yMBKppFur/fbHu9/6USUe03bZ4knMYiwFBcyiaXB8Go0qNehwX6inYPzK9U0NeQvGxKthcmHcaR8P5MStSRBAw==",
"dev": true,
"dependencies": {
"array-buffer-byte-length": "^1.0.0",
"call-bind": "^1.0.2",
"define-properties": "^1.2.0",
+ "es-abstract": "^1.22.1",
"get-intrinsic": "^1.2.1",
"is-array-buffer": "^3.0.2",
"is-shared-array-buffer": "^1.0.2"
@@ -962,9 +970,9 @@
"dev": true
},
"node_modules/browserslist": {
- "version": "4.21.10",
- "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.21.10.tgz",
- "integrity": "sha512-bipEBdZfVH5/pwrvqc+Ub0kUPVfGUhlKxbvfD+z1BDnPEO/X98ruXGA1WP5ASpAFKan7Qr6j736IacbZQuAlKQ==",
+ "version": "4.21.11",
+ "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.21.11.tgz",
+ "integrity": "sha512-xn1UXOKUz7DjdGlg9RrUr0GGiWzI97UQJnugHtH0OLDfJB7jMgoIkYvRIEO1l9EeEERVqeqLYOcFBW9ldjypbQ==",
"dev": true,
"funding": [
{
@@ -981,10 +989,10 @@
}
],
"dependencies": {
- "caniuse-lite": "^1.0.30001517",
- "electron-to-chromium": "^1.4.477",
+ "caniuse-lite": "^1.0.30001538",
+ "electron-to-chromium": "^1.4.526",
"node-releases": "^2.0.13",
- "update-browserslist-db": "^1.0.11"
+ "update-browserslist-db": "^1.0.13"
},
"bin": {
"browserslist": "cli.js"
@@ -1068,9 +1076,9 @@
}
},
"node_modules/caniuse-lite": {
- "version": "1.0.30001520",
- "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001520.tgz",
- "integrity": "sha512-tahF5O9EiiTzwTUqAeFjIZbn4Dnqxzz7ktrgGlMYNLH43Ul26IgTMH/zvL3DG0lZxBYnlT04axvInszUsZULdA==",
+ "version": "1.0.30001539",
+ "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001539.tgz",
+ "integrity": "sha512-hfS5tE8bnNiNvEOEkm8HElUHroYwlqMMENEzELymy77+tJ6m+gA2krtHl5hxJaj71OlpC2cHZbdSMX1/YEqEkA==",
"dev": true,
"funding": [
{
@@ -1088,9 +1096,9 @@
]
},
"node_modules/chai": {
- "version": "4.3.7",
- "resolved": "https://registry.npmjs.org/chai/-/chai-4.3.7.tgz",
- "integrity": "sha512-HLnAzZ2iupm25PlN0xFreAlBA5zaBSv3og0DdeGA4Ar6h6rJ3A0rolRUKJhSF2V10GZKDgWF/VmAEsNWjCRB+A==",
+ "version": "4.3.8",
+ "resolved": "https://registry.npmjs.org/chai/-/chai-4.3.8.tgz",
+ "integrity": "sha512-vX4YvVVtxlfSZ2VecZgFUTU5qPCYsobVI2O9FmwEXBhDigYGQA6jRXCycIs1yJnnWbZ6/+a2zNIF5DfVCcJBFQ==",
"dev": true,
"dependencies": {
"assertion-error": "^1.1.0",
@@ -1261,17 +1269,40 @@
"dev": true
},
"node_modules/cross-spawn": {
- "version": "7.0.3",
- "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz",
- "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==",
+ "version": "6.0.5",
+ "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-6.0.5.tgz",
+ "integrity": "sha512-eTVLrBSt7fjbDygz805pMnstIs2VTBNkRm0qxZd+M7A5XDdxVRWO5MxGBXZhjY4cqLYLdtrGqRf8mBPmzwSpWQ==",
"dev": true,
"dependencies": {
- "path-key": "^3.1.0",
- "shebang-command": "^2.0.0",
- "which": "^2.0.1"
+ "nice-try": "^1.0.4",
+ "path-key": "^2.0.1",
+ "semver": "^5.5.0",
+ "shebang-command": "^1.2.0",
+ "which": "^1.2.9"
},
"engines": {
- "node": ">= 8"
+ "node": ">=4.8"
+ }
+ },
+ "node_modules/cross-spawn/node_modules/semver": {
+ "version": "5.7.2",
+ "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.2.tgz",
+ "integrity": "sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g==",
+ "dev": true,
+ "bin": {
+ "semver": "bin/semver"
+ }
+ },
+ "node_modules/cross-spawn/node_modules/which": {
+ "version": "1.3.1",
+ "resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz",
+ "integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==",
+ "dev": true,
+ "dependencies": {
+ "isexe": "^2.0.0"
+ },
+ "bin": {
+ "which": "bin/which"
}
},
"node_modules/debug": {
@@ -1332,12 +1363,27 @@
"url": "https://github.com/sponsors/sindresorhus"
}
},
+ "node_modules/define-data-property": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/define-data-property/-/define-data-property-1.1.0.tgz",
+ "integrity": "sha512-UzGwzcjyv3OtAvolTj1GoyNYzfFR+iqbGjcnBEENZVCpM4/Ng1yhGNvS3lR/xDS74Tb2wGG9WzNSNIOS9UVb2g==",
+ "dev": true,
+ "dependencies": {
+ "get-intrinsic": "^1.2.1",
+ "gopd": "^1.0.1",
+ "has-property-descriptors": "^1.0.0"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
"node_modules/define-properties": {
- "version": "1.2.0",
- "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.2.0.tgz",
- "integrity": "sha512-xvqAVKGfT1+UAvPwKTVw/njhdQ8ZhXK4lI0bCIuCMrp2up9nPnaDftrLtmpTazqd1o+UY4zgzU+avtMbDP+ldA==",
+ "version": "1.2.1",
+ "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.2.1.tgz",
+ "integrity": "sha512-8QmQKqEASLd5nx0U1B1okLElbUuuttJ/AnYmRXbbbGDWh6uS208EjD4Xqq/I9wK7u0v6O08XhTWnt5XtEbR6Dg==",
"dev": true,
"dependencies": {
+ "define-data-property": "^1.0.1",
"has-property-descriptors": "^1.0.0",
"object-keys": "^1.1.1"
},
@@ -1392,9 +1438,9 @@
}
},
"node_modules/electron-to-chromium": {
- "version": "1.4.490",
- "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.490.tgz",
- "integrity": "sha512-6s7NVJz+sATdYnIwhdshx/N/9O6rvMxmhVoDSDFdj6iA45gHR8EQje70+RYsF4GeB+k0IeNSBnP7yG9ZXJFr7A==",
+ "version": "1.4.530",
+ "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.530.tgz",
+ "integrity": "sha512-rsJ9O8SCI4etS8TBsXuRfHa2eZReJhnGf5MHZd3Vo05PukWHKXhk3VQGbHHnDLa8nZz9woPCpLCMQpLGgkGNRA==",
"dev": true
},
"node_modules/emoji-regex": {
@@ -1447,18 +1493,18 @@
}
},
"node_modules/es-abstract": {
- "version": "1.22.1",
- "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.22.1.tgz",
- "integrity": "sha512-ioRRcXMO6OFyRpyzV3kE1IIBd4WG5/kltnzdxSCqoP8CMGs/Li+M1uF5o7lOkZVFjDs+NLesthnF66Pg/0q0Lw==",
+ "version": "1.22.2",
+ "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.22.2.tgz",
+ "integrity": "sha512-YoxfFcDmhjOgWPWsV13+2RNjq1F6UQnfs+8TftwNqtzlmFzEXvlUwdrNrYeaizfjQzRMxkZ6ElWMOJIFKdVqwA==",
"dev": true,
"dependencies": {
"array-buffer-byte-length": "^1.0.0",
- "arraybuffer.prototype.slice": "^1.0.1",
+ "arraybuffer.prototype.slice": "^1.0.2",
"available-typed-arrays": "^1.0.5",
"call-bind": "^1.0.2",
"es-set-tostringtag": "^2.0.1",
"es-to-primitive": "^1.2.1",
- "function.prototype.name": "^1.1.5",
+ "function.prototype.name": "^1.1.6",
"get-intrinsic": "^1.2.1",
"get-symbol-description": "^1.0.0",
"globalthis": "^1.0.3",
@@ -1474,23 +1520,23 @@
"is-regex": "^1.1.4",
"is-shared-array-buffer": "^1.0.2",
"is-string": "^1.0.7",
- "is-typed-array": "^1.1.10",
+ "is-typed-array": "^1.1.12",
"is-weakref": "^1.0.2",
"object-inspect": "^1.12.3",
"object-keys": "^1.1.1",
"object.assign": "^4.1.4",
- "regexp.prototype.flags": "^1.5.0",
- "safe-array-concat": "^1.0.0",
+ "regexp.prototype.flags": "^1.5.1",
+ "safe-array-concat": "^1.0.1",
"safe-regex-test": "^1.0.0",
- "string.prototype.trim": "^1.2.7",
- "string.prototype.trimend": "^1.0.6",
- "string.prototype.trimstart": "^1.0.6",
+ "string.prototype.trim": "^1.2.8",
+ "string.prototype.trimend": "^1.0.7",
+ "string.prototype.trimstart": "^1.0.7",
"typed-array-buffer": "^1.0.0",
"typed-array-byte-length": "^1.0.0",
"typed-array-byte-offset": "^1.0.0",
"typed-array-length": "^1.0.4",
"unbox-primitive": "^1.0.2",
- "which-typed-array": "^1.1.10"
+ "which-typed-array": "^1.1.11"
},
"engines": {
"node": ">= 0.4"
@@ -2065,6 +2111,20 @@
"integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
"dev": true
},
+ "node_modules/eslint/node_modules/cross-spawn": {
+ "version": "7.0.3",
+ "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz",
+ "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==",
+ "dev": true,
+ "dependencies": {
+ "path-key": "^3.1.0",
+ "shebang-command": "^2.0.0",
+ "which": "^2.0.1"
+ },
+ "engines": {
+ "node": ">= 8"
+ }
+ },
"node_modules/eslint/node_modules/globals": {
"version": "12.4.0",
"resolved": "https://registry.npmjs.org/globals/-/globals-12.4.0.tgz",
@@ -2089,6 +2149,36 @@
"node": ">=8"
}
},
+ "node_modules/eslint/node_modules/path-key": {
+ "version": "3.1.1",
+ "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz",
+ "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==",
+ "dev": true,
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/eslint/node_modules/shebang-command": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz",
+ "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==",
+ "dev": true,
+ "dependencies": {
+ "shebang-regex": "^3.0.0"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/eslint/node_modules/shebang-regex": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz",
+ "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==",
+ "dev": true,
+ "engines": {
+ "node": ">=8"
+ }
+ },
"node_modules/eslint/node_modules/supports-color": {
"version": "7.2.0",
"resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",
@@ -2284,22 +2374,23 @@
}
},
"node_modules/flat-cache": {
- "version": "3.0.4",
- "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-3.0.4.tgz",
- "integrity": "sha512-dm9s5Pw7Jc0GvMYbshN6zchCA9RgQlzzEZX3vylR9IqFfS8XciblUXOKfW6SiuJ0e13eDYZoZV5wdrev7P3Nwg==",
+ "version": "3.1.0",
+ "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-3.1.0.tgz",
+ "integrity": "sha512-OHx4Qwrrt0E4jEIcI5/Xb+f+QmJYNj2rrK8wiIdQOIrB9WrrJL8cjZvXdXuBTkkEwEqLycb5BeZDV1o2i9bTew==",
"dev": true,
"dependencies": {
- "flatted": "^3.1.0",
+ "flatted": "^3.2.7",
+ "keyv": "^4.5.3",
"rimraf": "^3.0.2"
},
"engines": {
- "node": "^10.12.0 || >=12.0.0"
+ "node": ">=12.0.0"
}
},
"node_modules/flatted": {
- "version": "3.2.7",
- "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.2.7.tgz",
- "integrity": "sha512-5nqDSxl8nn5BSNxyR3n4I6eDmbolI6WT+QqR547RwxQapgjQBmtktdP+HTBb/a/zLsbzERTONyUB5pefh5TtjQ==",
+ "version": "3.2.9",
+ "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.2.9.tgz",
+ "integrity": "sha512-36yxDn5H7OFZQla0/jFJmbIKTdZAQHngCedGxiMmpNfEZM0sdEeT+WczLQrjK6D7o2aiyLYDnkw0R3JK0Qv1RQ==",
"dev": true
},
"node_modules/for-each": {
@@ -2324,6 +2415,50 @@
"node": ">=8.0.0"
}
},
+ "node_modules/foreground-child/node_modules/cross-spawn": {
+ "version": "7.0.3",
+ "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz",
+ "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==",
+ "dev": true,
+ "dependencies": {
+ "path-key": "^3.1.0",
+ "shebang-command": "^2.0.0",
+ "which": "^2.0.1"
+ },
+ "engines": {
+ "node": ">= 8"
+ }
+ },
+ "node_modules/foreground-child/node_modules/path-key": {
+ "version": "3.1.1",
+ "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz",
+ "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==",
+ "dev": true,
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/foreground-child/node_modules/shebang-command": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz",
+ "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==",
+ "dev": true,
+ "dependencies": {
+ "shebang-regex": "^3.0.0"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/foreground-child/node_modules/shebang-regex": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz",
+ "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==",
+ "dev": true,
+ "engines": {
+ "node": ">=8"
+ }
+ },
"node_modules/fromentries": {
"version": "1.3.2",
"resolved": "https://registry.npmjs.org/fromentries/-/fromentries-1.3.2.tgz",
@@ -2361,9 +2496,9 @@
"integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw=="
},
"node_modules/fsevents": {
- "version": "2.3.2",
- "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz",
- "integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==",
+ "version": "2.3.3",
+ "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz",
+ "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==",
"dev": true,
"hasInstallScript": true,
"optional": true,
@@ -2381,15 +2516,15 @@
"dev": true
},
"node_modules/function.prototype.name": {
- "version": "1.1.5",
- "resolved": "https://registry.npmjs.org/function.prototype.name/-/function.prototype.name-1.1.5.tgz",
- "integrity": "sha512-uN7m/BzVKQnCUF/iW8jYea67v++2u7m5UgENbHRtdDVclOUP+FMPlCNdmk0h/ysGyo2tavMJEDqJAkJdRa1vMA==",
+ "version": "1.1.6",
+ "resolved": "https://registry.npmjs.org/function.prototype.name/-/function.prototype.name-1.1.6.tgz",
+ "integrity": "sha512-Z5kx79swU5P27WEayXM1tBi5Ze/lbIyiNgU3qyXUOf9b2rgXYyF9Dy9Cx+IQv/Lc8WCG6L82zwUPpSS9hGehIg==",
"dev": true,
"dependencies": {
"call-bind": "^1.0.2",
- "define-properties": "^1.1.3",
- "es-abstract": "^1.19.0",
- "functions-have-names": "^1.2.2"
+ "define-properties": "^1.2.0",
+ "es-abstract": "^1.22.1",
+ "functions-have-names": "^1.2.3"
},
"engines": {
"node": ">= 0.4"
@@ -2451,9 +2586,9 @@
}
},
"node_modules/get-func-name": {
- "version": "2.0.0",
- "resolved": "https://registry.npmjs.org/get-func-name/-/get-func-name-2.0.0.tgz",
- "integrity": "sha512-Hm0ixYtaSZ/V7C8FJrtZIuBBI+iSgL+1Aq82zSu8VQNB4S3Gk8e7Qs3VwBDJAhmRZcFqkl3tQu36g/Foh5I5ig==",
+ "version": "2.0.2",
+ "resolved": "https://registry.npmjs.org/get-func-name/-/get-func-name-2.0.2.tgz",
+ "integrity": "sha512-8vXOvuE167CtIc3OyItco7N/dpRtBbYOsPsXCz7X/PMnlGjYjSGuZJgM1Y7mmew7BKf9BqvLX2tnOVy1BBUsxQ==",
"dev": true,
"engines": {
"node": "*"
@@ -3252,6 +3387,20 @@
"node": ">=8"
}
},
+ "node_modules/istanbul-lib-processinfo/node_modules/cross-spawn": {
+ "version": "7.0.3",
+ "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz",
+ "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==",
+ "dev": true,
+ "dependencies": {
+ "path-key": "^3.1.0",
+ "shebang-command": "^2.0.0",
+ "which": "^2.0.1"
+ },
+ "engines": {
+ "node": ">= 8"
+ }
+ },
"node_modules/istanbul-lib-processinfo/node_modules/p-map": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/p-map/-/p-map-3.0.0.tgz",
@@ -3264,6 +3413,36 @@
"node": ">=8"
}
},
+ "node_modules/istanbul-lib-processinfo/node_modules/path-key": {
+ "version": "3.1.1",
+ "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz",
+ "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==",
+ "dev": true,
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/istanbul-lib-processinfo/node_modules/shebang-command": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz",
+ "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==",
+ "dev": true,
+ "dependencies": {
+ "shebang-regex": "^3.0.0"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/istanbul-lib-processinfo/node_modules/shebang-regex": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz",
+ "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==",
+ "dev": true,
+ "engines": {
+ "node": ">=8"
+ }
+ },
"node_modules/istanbul-lib-report": {
"version": "3.0.1",
"resolved": "https://registry.npmjs.org/istanbul-lib-report/-/istanbul-lib-report-3.0.1.tgz",
@@ -3372,6 +3551,12 @@
"node": ">=4"
}
},
+ "node_modules/json-buffer": {
+ "version": "3.0.1",
+ "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz",
+ "integrity": "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==",
+ "dev": true
+ },
"node_modules/json-parse-better-errors": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/json-parse-better-errors/-/json-parse-better-errors-1.0.2.tgz",
@@ -3417,6 +3602,15 @@
"node": ">=4.0"
}
},
+ "node_modules/keyv": {
+ "version": "4.5.3",
+ "resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.3.tgz",
+ "integrity": "sha512-QCiSav9WaX1PgETJ+SpNnx2PRRapJ/oRSXM4VO5OGYGSjrxbKPVFVhB3l2OCbLCk329N8qyAtsJjSjvVBWzEug==",
+ "dev": true,
+ "dependencies": {
+ "json-buffer": "3.0.1"
+ }
+ },
"node_modules/levn": {
"version": "0.4.1",
"resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz",
@@ -3653,6 +3847,15 @@
"node": ">= 10"
}
},
+ "node_modules/memorystream": {
+ "version": "0.3.1",
+ "resolved": "https://registry.npmjs.org/memorystream/-/memorystream-0.3.1.tgz",
+ "integrity": "sha512-S3UwM3yj5mtUSEfP41UZmt/0SCoVYUcU1rkXv+BQ5Ig8ndL4sPoJNBUJERafdPb5jjHJGuMgytgKvKIf58XNBw==",
+ "dev": true,
+ "engines": {
+ "node": ">= 0.10.0"
+ }
+ },
"node_modules/minimatch": {
"version": "3.1.2",
"resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz",
@@ -4005,9 +4208,9 @@
"integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w=="
},
"node_modules/nan": {
- "version": "2.17.0",
- "resolved": "https://registry.npmjs.org/nan/-/nan-2.17.0.tgz",
- "integrity": "sha512-2ZTgtl0nJsO0KQCjEpxcIr5D+Yv90plTitZt9JBfQvVJDS5seMl3FOvsh3+9CoYWXf/1l5OaZzzF6nDm4cagaQ=="
+ "version": "2.18.0",
+ "resolved": "https://registry.npmjs.org/nan/-/nan-2.18.0.tgz",
+ "integrity": "sha512-W7tfG7vMOGtD30sHoZSSc/JVYiyDPEyQVso/Zz+/uQd0B0L46gtC+pHha5FFMRpil6fm/AoEcRWyOVi4+E/f8w=="
},
"node_modules/nanoid": {
"version": "3.3.1",
@@ -4035,10 +4238,16 @@
"node": ">= 0.6"
}
},
+ "node_modules/nice-try": {
+ "version": "1.0.5",
+ "resolved": "https://registry.npmjs.org/nice-try/-/nice-try-1.0.5.tgz",
+ "integrity": "sha512-1nh45deeb5olNY7eX82BkPO7SSxR5SSYJiPTrTdFUVYwAl8CKMA5N9PjTYkHiRjisVcxcQ1HXdLhx2qxxJzLNQ==",
+ "dev": true
+ },
"node_modules/node-fetch": {
- "version": "2.6.12",
- "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.12.tgz",
- "integrity": "sha512-C/fGU2E8ToujUivIO0H+tpQ6HWo4eEmchoPIoXtxCrVghxdKq+QOHqEZW7tuP3KlV3bC8FRMO5nMCC7Zm1VP6g==",
+ "version": "2.7.0",
+ "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.7.0.tgz",
+ "integrity": "sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==",
"dependencies": {
"whatwg-url": "^5.0.0"
},
@@ -4183,6 +4392,31 @@
"node": ">=0.10.0"
}
},
+ "node_modules/npm-run-all": {
+ "version": "4.1.5",
+ "resolved": "https://registry.npmjs.org/npm-run-all/-/npm-run-all-4.1.5.tgz",
+ "integrity": "sha512-Oo82gJDAVcaMdi3nuoKFavkIHBRVqQ1qvMb+9LHk/cF4P6B2m8aP04hGf7oL6wZ9BuGwX1onlLhpuoofSyoQDQ==",
+ "dev": true,
+ "dependencies": {
+ "ansi-styles": "^3.2.1",
+ "chalk": "^2.4.1",
+ "cross-spawn": "^6.0.5",
+ "memorystream": "^0.3.1",
+ "minimatch": "^3.0.4",
+ "pidtree": "^0.3.0",
+ "read-pkg": "^3.0.0",
+ "shell-quote": "^1.6.1",
+ "string.prototype.padend": "^3.0.0"
+ },
+ "bin": {
+ "npm-run-all": "bin/npm-run-all/index.js",
+ "run-p": "bin/run-p/index.js",
+ "run-s": "bin/run-s/index.js"
+ },
+ "engines": {
+ "node": ">= 4"
+ }
+ },
"node_modules/npmlog": {
"version": "5.0.1",
"resolved": "https://registry.npmjs.org/npmlog/-/npmlog-5.0.1.tgz",
@@ -4344,28 +4578,28 @@
}
},
"node_modules/object.entries": {
- "version": "1.1.6",
- "resolved": "https://registry.npmjs.org/object.entries/-/object.entries-1.1.6.tgz",
- "integrity": "sha512-leTPzo4Zvg3pmbQ3rDK69Rl8GQvIqMWubrkxONG9/ojtFE2rD9fjMKfSI5BxW3osRH1m6VdzmqK8oAY9aT4x5w==",
+ "version": "1.1.7",
+ "resolved": "https://registry.npmjs.org/object.entries/-/object.entries-1.1.7.tgz",
+ "integrity": "sha512-jCBs/0plmPsOnrKAfFQXRG2NFjlhZgjjcBLSmTnEhU8U6vVTsVe8ANeQJCHTl3gSsI4J+0emOoCgoKlmQPMgmA==",
"dev": true,
"dependencies": {
"call-bind": "^1.0.2",
- "define-properties": "^1.1.4",
- "es-abstract": "^1.20.4"
+ "define-properties": "^1.2.0",
+ "es-abstract": "^1.22.1"
},
"engines": {
"node": ">= 0.4"
}
},
"node_modules/object.fromentries": {
- "version": "2.0.6",
- "resolved": "https://registry.npmjs.org/object.fromentries/-/object.fromentries-2.0.6.tgz",
- "integrity": "sha512-VciD13dswC4j1Xt5394WR4MzmAQmlgN72phd/riNp9vtD7tp4QQWJ0R4wvclXcafgcYK8veHRed2W6XeGBvcfg==",
+ "version": "2.0.7",
+ "resolved": "https://registry.npmjs.org/object.fromentries/-/object.fromentries-2.0.7.tgz",
+ "integrity": "sha512-UPbPHML6sL8PI/mOqPwsH4G6iyXcCGzLin8KvEPenOZN5lpCNBZZQ+V62vdjB1mQHrmqGQt5/OJzemUA+KJmEA==",
"dev": true,
"dependencies": {
"call-bind": "^1.0.2",
- "define-properties": "^1.1.4",
- "es-abstract": "^1.20.4"
+ "define-properties": "^1.2.0",
+ "es-abstract": "^1.22.1"
},
"engines": {
"node": ">= 0.4"
@@ -4375,27 +4609,27 @@
}
},
"node_modules/object.hasown": {
- "version": "1.1.2",
- "resolved": "https://registry.npmjs.org/object.hasown/-/object.hasown-1.1.2.tgz",
- "integrity": "sha512-B5UIT3J1W+WuWIU55h0mjlwaqxiE5vYENJXIXZ4VFe05pNYrkKuK0U/6aFcb0pKywYJh7IhfoqUfKVmrJJHZHw==",
+ "version": "1.1.3",
+ "resolved": "https://registry.npmjs.org/object.hasown/-/object.hasown-1.1.3.tgz",
+ "integrity": "sha512-fFI4VcYpRHvSLXxP7yiZOMAd331cPfd2p7PFDVbgUsYOfCT3tICVqXWngbjr4m49OvsBwUBQ6O2uQoJvy3RexA==",
"dev": true,
"dependencies": {
- "define-properties": "^1.1.4",
- "es-abstract": "^1.20.4"
+ "define-properties": "^1.2.0",
+ "es-abstract": "^1.22.1"
},
"funding": {
"url": "https://github.com/sponsors/ljharb"
}
},
"node_modules/object.values": {
- "version": "1.1.6",
- "resolved": "https://registry.npmjs.org/object.values/-/object.values-1.1.6.tgz",
- "integrity": "sha512-FVVTkD1vENCsAcwNs9k6jea2uHC/X0+JcjG8YA60FN5CMaJmG95wT9jek/xX9nornqGRrBkKtzuAu2wuHpKqvw==",
+ "version": "1.1.7",
+ "resolved": "https://registry.npmjs.org/object.values/-/object.values-1.1.7.tgz",
+ "integrity": "sha512-aU6xnDFYT3x17e/f0IiiwlGPTy2jzMySGfUB4fq6z7CV8l85CWHDk5ErhyhpfDHhrOMwGFhSQkhMGHaIotA6Ng==",
"dev": true,
"dependencies": {
"call-bind": "^1.0.2",
- "define-properties": "^1.1.4",
- "es-abstract": "^1.20.4"
+ "define-properties": "^1.2.0",
+ "es-abstract": "^1.22.1"
},
"engines": {
"node": ">= 0.4"
@@ -4549,12 +4783,12 @@
}
},
"node_modules/path-key": {
- "version": "3.1.1",
- "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz",
- "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==",
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/path-key/-/path-key-2.0.1.tgz",
+ "integrity": "sha512-fEHGKCSmUSDPv4uoj8AlD+joPlq3peND+HRYyxFz4KPw4z926S/b8rIuFs2FYJg3BwsxJf6A9/3eIdLaYC+9Dw==",
"dev": true,
"engines": {
- "node": ">=8"
+ "node": ">=4"
}
},
"node_modules/path-parse": {
@@ -4602,6 +4836,18 @@
"url": "https://github.com/sponsors/jonschlinkert"
}
},
+ "node_modules/pidtree": {
+ "version": "0.3.1",
+ "resolved": "https://registry.npmjs.org/pidtree/-/pidtree-0.3.1.tgz",
+ "integrity": "sha512-qQbW94hLHEqCg7nhby4yRC7G2+jYHY4Rguc2bjw7Uug4GIJuu1tvf2uHaZv5Q8zdt+WKJ6qK1FOI6amaWUo5FA==",
+ "dev": true,
+ "bin": {
+ "pidtree": "bin/pidtree.js"
+ },
+ "engines": {
+ "node": ">=0.10"
+ }
+ },
"node_modules/pify": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/pify/-/pify-3.0.0.tgz",
@@ -5073,14 +5319,14 @@
}
},
"node_modules/regexp.prototype.flags": {
- "version": "1.5.0",
- "resolved": "https://registry.npmjs.org/regexp.prototype.flags/-/regexp.prototype.flags-1.5.0.tgz",
- "integrity": "sha512-0SutC3pNudRKgquxGoRGIz946MZVHqbNfPjBdxeOhBrdgDKlRoXmYLQN9xRbrR09ZXWeGAdPuif7egofn6v5LA==",
+ "version": "1.5.1",
+ "resolved": "https://registry.npmjs.org/regexp.prototype.flags/-/regexp.prototype.flags-1.5.1.tgz",
+ "integrity": "sha512-sy6TXMN+hnP/wMy+ISxg3krXx7BAtWVO4UouuCN/ziM9UEne0euamVNafDfvC83bRNr95y0V5iijeDQFUNpvrg==",
"dev": true,
"dependencies": {
"call-bind": "^1.0.2",
"define-properties": "^1.2.0",
- "functions-have-names": "^1.2.3"
+ "set-function-name": "^2.0.0"
},
"engines": {
"node": ">= 0.4"
@@ -5138,9 +5384,9 @@
"dev": true
},
"node_modules/resolve": {
- "version": "1.22.4",
- "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.4.tgz",
- "integrity": "sha512-PXNdCiPqDqeUou+w1C2eTQbNfxKSuMxqTCuvlmmMsk1NWHL5fRrhY6Pl0qEYYc6+QqGClco1Qj8XnjPego4wfg==",
+ "version": "1.22.6",
+ "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.6.tgz",
+ "integrity": "sha512-njhxM7mV12JfufShqGy3Rz8j11RPdLy4xi15UurGJeoHLfJpVXKdh3ueuOqbYUcDZnffr6X739JBo5LzyahEsw==",
"dev": true,
"dependencies": {
"is-core-module": "^2.13.0",
@@ -5186,13 +5432,13 @@
}
},
"node_modules/safe-array-concat": {
- "version": "1.0.0",
- "resolved": "https://registry.npmjs.org/safe-array-concat/-/safe-array-concat-1.0.0.tgz",
- "integrity": "sha512-9dVEFruWIsnie89yym+xWTAYASdpw3CJV7Li/6zBewGf9z2i1j31rP6jnY0pHEO4QZh6N0K11bFjWmdR8UGdPQ==",
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/safe-array-concat/-/safe-array-concat-1.0.1.tgz",
+ "integrity": "sha512-6XbUAseYE2KtOuGueyeobCySj9L4+66Tn6KQMOPQJrAJEowYKW/YR/MGJZl7FdydUdaFu4LYyDZjxf4/Nmo23Q==",
"dev": true,
"dependencies": {
"call-bind": "^1.0.2",
- "get-intrinsic": "^1.2.0",
+ "get-intrinsic": "^1.2.1",
"has-symbols": "^1.0.3",
"isarray": "^2.0.5"
},
@@ -5276,25 +5522,48 @@
"resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz",
"integrity": "sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw=="
},
+ "node_modules/set-function-name": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/set-function-name/-/set-function-name-2.0.1.tgz",
+ "integrity": "sha512-tMNCiqYVkXIZgc2Hnoy2IvC/f8ezc5koaRFkCjrpWzGpCd3qbZXPzVy9MAZzK1ch/X0jvSkojys3oqJN0qCmdA==",
+ "dev": true,
+ "dependencies": {
+ "define-data-property": "^1.0.1",
+ "functions-have-names": "^1.2.3",
+ "has-property-descriptors": "^1.0.0"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
"node_modules/shebang-command": {
- "version": "2.0.0",
- "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz",
- "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==",
+ "version": "1.2.0",
+ "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-1.2.0.tgz",
+ "integrity": "sha512-EV3L1+UQWGor21OmnvojK36mhg+TyIKDh3iFBKBohr5xeXIhNBcx8oWdgkTEEQ+BEFFYdLRuqMfd5L84N1V5Vg==",
"dev": true,
"dependencies": {
- "shebang-regex": "^3.0.0"
+ "shebang-regex": "^1.0.0"
},
"engines": {
- "node": ">=8"
+ "node": ">=0.10.0"
}
},
"node_modules/shebang-regex": {
- "version": "3.0.0",
- "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz",
- "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==",
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-1.0.0.tgz",
+ "integrity": "sha512-wpoSFAxys6b2a2wHZ1XpDSgD7N9iVjg29Ph9uV/uaP9Ex/KXlkTZTeddxDPSYQpgvzKLGJke2UU0AzoGCjNIvQ==",
"dev": true,
"engines": {
- "node": ">=8"
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/shell-quote": {
+ "version": "1.8.1",
+ "resolved": "https://registry.npmjs.org/shell-quote/-/shell-quote-1.8.1.tgz",
+ "integrity": "sha512-6j1W9l1iAs/4xYBI1SYOVZyFcCis9b4KCLQ8fgAGG07QvzaRLVVRQvAy85yNmmZSjYjg4MWh4gNvlPujU/5LpA==",
+ "dev": true,
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
}
},
"node_modules/side-channel": {
@@ -5454,9 +5723,9 @@
}
},
"node_modules/spdx-license-ids": {
- "version": "3.0.13",
- "resolved": "https://registry.npmjs.org/spdx-license-ids/-/spdx-license-ids-3.0.13.tgz",
- "integrity": "sha512-XkD+zwiqXHikFZm4AX/7JSCXA98U5Db4AFd5XUg/+9UNtnH75+Z9KxtpYiJZx36mUDVOwH83pl7yvCer6ewM3w==",
+ "version": "3.0.15",
+ "resolved": "https://registry.npmjs.org/spdx-license-ids/-/spdx-license-ids-3.0.15.tgz",
+ "integrity": "sha512-lpT8hSQp9jAKp9mhtBU4Xjon8LPGBvLIuBiSVhMEtmLecTh2mO0tlqrAMp47tBXzMr13NJMQ2lf7RpQGLJ3HsQ==",
"dev": true
},
"node_modules/sprintf-js": {
@@ -5572,33 +5841,51 @@
}
},
"node_modules/string.prototype.matchall": {
- "version": "4.0.8",
- "resolved": "https://registry.npmjs.org/string.prototype.matchall/-/string.prototype.matchall-4.0.8.tgz",
- "integrity": "sha512-6zOCOcJ+RJAQshcTvXPHoxoQGONa3e/Lqx90wUA+wEzX78sg5Bo+1tQo4N0pohS0erG9qtCqJDjNCQBjeWVxyg==",
+ "version": "4.0.10",
+ "resolved": "https://registry.npmjs.org/string.prototype.matchall/-/string.prototype.matchall-4.0.10.tgz",
+ "integrity": "sha512-rGXbGmOEosIQi6Qva94HUjgPs9vKW+dkG7Y8Q5O2OYkWL6wFaTRZO8zM4mhP94uX55wgyrXzfS2aGtGzUL7EJQ==",
"dev": true,
"dependencies": {
"call-bind": "^1.0.2",
- "define-properties": "^1.1.4",
- "es-abstract": "^1.20.4",
- "get-intrinsic": "^1.1.3",
+ "define-properties": "^1.2.0",
+ "es-abstract": "^1.22.1",
+ "get-intrinsic": "^1.2.1",
"has-symbols": "^1.0.3",
- "internal-slot": "^1.0.3",
- "regexp.prototype.flags": "^1.4.3",
+ "internal-slot": "^1.0.5",
+ "regexp.prototype.flags": "^1.5.0",
+ "set-function-name": "^2.0.0",
"side-channel": "^1.0.4"
},
"funding": {
"url": "https://github.com/sponsors/ljharb"
}
},
+ "node_modules/string.prototype.padend": {
+ "version": "3.1.5",
+ "resolved": "https://registry.npmjs.org/string.prototype.padend/-/string.prototype.padend-3.1.5.tgz",
+ "integrity": "sha512-DOB27b/2UTTD+4myKUFh+/fXWcu/UDyASIXfg+7VzoCNNGOfWvoyU/x5pvVHr++ztyt/oSYI1BcWBBG/hmlNjA==",
+ "dev": true,
+ "dependencies": {
+ "call-bind": "^1.0.2",
+ "define-properties": "^1.2.0",
+ "es-abstract": "^1.22.1"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
"node_modules/string.prototype.trim": {
- "version": "1.2.7",
- "resolved": "https://registry.npmjs.org/string.prototype.trim/-/string.prototype.trim-1.2.7.tgz",
- "integrity": "sha512-p6TmeT1T3411M8Cgg9wBTMRtY2q9+PNy9EV1i2lIXUN/btt763oIfxwN3RR8VU6wHX8j/1CFy0L+YuThm6bgOg==",
+ "version": "1.2.8",
+ "resolved": "https://registry.npmjs.org/string.prototype.trim/-/string.prototype.trim-1.2.8.tgz",
+ "integrity": "sha512-lfjY4HcixfQXOfaqCvcBuOIapyaroTXhbkfJN3gcB1OtyupngWK4sEET9Knd0cXd28kTUqu/kHoV4HKSJdnjiQ==",
"dev": true,
"dependencies": {
"call-bind": "^1.0.2",
- "define-properties": "^1.1.4",
- "es-abstract": "^1.20.4"
+ "define-properties": "^1.2.0",
+ "es-abstract": "^1.22.1"
},
"engines": {
"node": ">= 0.4"
@@ -5608,28 +5895,28 @@
}
},
"node_modules/string.prototype.trimend": {
- "version": "1.0.6",
- "resolved": "https://registry.npmjs.org/string.prototype.trimend/-/string.prototype.trimend-1.0.6.tgz",
- "integrity": "sha512-JySq+4mrPf9EsDBEDYMOb/lM7XQLulwg5R/m1r0PXEFqrV0qHvl58sdTilSXtKOflCsK2E8jxf+GKC0T07RWwQ==",
+ "version": "1.0.7",
+ "resolved": "https://registry.npmjs.org/string.prototype.trimend/-/string.prototype.trimend-1.0.7.tgz",
+ "integrity": "sha512-Ni79DqeB72ZFq1uH/L6zJ+DKZTkOtPIHovb3YZHQViE+HDouuU4mBrLOLDn5Dde3RF8qw5qVETEjhu9locMLvA==",
"dev": true,
"dependencies": {
"call-bind": "^1.0.2",
- "define-properties": "^1.1.4",
- "es-abstract": "^1.20.4"
+ "define-properties": "^1.2.0",
+ "es-abstract": "^1.22.1"
},
"funding": {
"url": "https://github.com/sponsors/ljharb"
}
},
"node_modules/string.prototype.trimstart": {
- "version": "1.0.6",
- "resolved": "https://registry.npmjs.org/string.prototype.trimstart/-/string.prototype.trimstart-1.0.6.tgz",
- "integrity": "sha512-omqjMDaY92pbn5HOX7f9IccLA+U1tA9GvtU4JrodiXFfYB7jPzzHpRzpglLAjtUV6bB557zwClJezTqnAiYnQA==",
+ "version": "1.0.7",
+ "resolved": "https://registry.npmjs.org/string.prototype.trimstart/-/string.prototype.trimstart-1.0.7.tgz",
+ "integrity": "sha512-NGhtDFu3jCEm7B4Fy0DpLewdJQOZcQ0rGbwQ/+stjnrp2i+rlKeCvos9hOIeCmqwratM47OBxY7uFZzjxHXmrg==",
"dev": true,
"dependencies": {
"call-bind": "^1.0.2",
- "define-properties": "^1.1.4",
- "es-abstract": "^1.20.4"
+ "define-properties": "^1.2.0",
+ "es-abstract": "^1.22.1"
},
"funding": {
"url": "https://github.com/sponsors/ljharb"
@@ -5736,9 +6023,9 @@
"dev": true
},
"node_modules/tar": {
- "version": "6.1.15",
- "resolved": "https://registry.npmjs.org/tar/-/tar-6.1.15.tgz",
- "integrity": "sha512-/zKt9UyngnxIT/EAGYuxaMYgOIJiP81ab9ZfkILq4oNLPFX50qyYmu7jRj9qeXoxmJHjGlbH0+cm2uy1WCs10A==",
+ "version": "6.2.0",
+ "resolved": "https://registry.npmjs.org/tar/-/tar-6.2.0.tgz",
+ "integrity": "sha512-/Wo7DcT0u5HUV486xg675HtjNd3BXZ6xDbzsCUZPt5iw8bTQ63bP0Raut3mvro9u+CUyq7YQd8Cx55fsZXxqLQ==",
"dependencies": {
"chownr": "^2.0.0",
"fs-minipass": "^2.0.0",
@@ -6014,9 +6301,9 @@
}
},
"node_modules/update-browserslist-db": {
- "version": "1.0.11",
- "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.0.11.tgz",
- "integrity": "sha512-dCwEFf0/oT85M1fHBg4F0jtLwJrutGoHSQXCh7u4o2t1drG+c0a9Flnqww6XUKSfQMPpJBRjU8d4RXB09qtvaA==",
+ "version": "1.0.13",
+ "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.0.13.tgz",
+ "integrity": "sha512-xebP81SNcPuNpPP3uzeW1NYXxI3rxyJzF3pD6sH4jE7o/IX+WtSpwnVU+qIsDPyk0d3hmFQ7mjqc6AtV604hbg==",
"dev": true,
"funding": [
{
diff --git a/package.json b/package.json
index aae0ff7f6..ef73e0666 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "aerospike",
- "version": "5.7.0",
+ "version": "5.8.0",
"description": "Aerospike Client Library",
"keywords": [
"aerospike",
@@ -39,7 +39,8 @@
},
"scripts": {
"preinstall": "npm install @mapbox/node-pre-gyp",
- "install": "node-pre-gyp install --fallback-to-build",
+ "install": "npm run build",
+ "build": "node-pre-gyp install --fallback-to-build",
"test": "mocha",
"test-noserver": "GLOBAL_CLIENT=false mocha -g '#noserver'",
"lint": "standard",
@@ -50,7 +51,8 @@
"apidocs": "jsdoc -c jsdoc.json",
"cppcheck": "cppcheck --quiet --enable=warning,style -I src/include src/main/",
"valgrind": "valgrind node ./node_modules/mocha/bin/_mocha -R dot -g '#slow' -i",
- "prepare": "husky install"
+ "prepare": "husky install",
+ "removeExtraBinaries": "node ./scripts/prebuiltBinding.js"
},
"dependencies": {
"@mapbox/node-pre-gyp": "^1.0.11",
@@ -69,6 +71,7 @@
"husky": "^7.0.4",
"mocha": "^9.2.2",
"mocha-clean": "^1.0.0",
+ "npm-run-all": "^4.1.5",
"nyc": "^15.1.0",
"p-throttle": "^3.1.0",
"semver": "^7.5.4",
diff --git a/scripts/build-package.ps1 b/scripts/build-package.ps1
index ef3a881ca..f5ed6f579 100644
--- a/scripts/build-package.ps1
+++ b/scripts/build-package.ps1
@@ -33,9 +33,8 @@ function build_nodejs_client {
# cd D:\a\aerospike-client-nodejs\aerospike-client-nodejs
-build_nodejs_client v14.21.1
-build_nodejs_client v16.18.1
-build_nodejs_client v18.12.1
-# build_nodejs_client v19.1.0
+
+build_nodejs_client v18
+build_nodejs_client v20
nvm use v18.12.1
diff --git a/scripts/build-package.sh b/scripts/build-package.sh
index 1795ea88c..be1f434ee 100755
--- a/scripts/build-package.sh
+++ b/scripts/build-package.sh
@@ -53,9 +53,8 @@ perform_check
rm -rf ${AEROSPIKE_NODEJS_RELEASE_HOME}/node-*-${OS_FLAVOR}-*
-build_nodejs_client v16
+
build_nodejs_client v18
-build_nodejs_client v19
build_nodejs_client v20
nvm use v20
diff --git a/scripts/prebuiltBinding.js b/scripts/prebuiltBinding.js
index 5bd14e3b4..b025fbbf6 100644
--- a/scripts/prebuiltBinding.js
+++ b/scripts/prebuiltBinding.js
@@ -1,73 +1,54 @@
+const os = require('node:os')
const fs = require('fs')
const util = require('util')
const exec = util.promisify(require('child_process').exec)
const rename = util.promisify(fs.rename)
const rm = util.promisify(fs.rm)
-const dict = {
- Linux: 'linux',
- Darwin: 'darwin',
- arm64: 'arm64',
- x86_64: 'x64',
- aarch64: 'arm64'
-}
;(async function () {
- let output = await exec('uname -s')
- const os = output.stdout.trim()
- output = await exec('uname -m')
- const arch = output.stdout.trim()
- output = await exec('openssl version')
- const version = output.stdout
- const openssl = version.split(' ')[1].slice(0, 1)
- const deleteList = []
- if (dict[os] === 'linux') {
- deleteList.push('lib/binding/node-v115-darwin-arm64')
- deleteList.push('lib/binding/node-v111-darwin-arm64')
- deleteList.push('lib/binding/node-v108-darwin-arm64')
- deleteList.push('lib/binding/node-v93-darwin-arm64')
- deleteList.push('lib/binding/node-v115-darwin-x64')
- deleteList.push('lib/binding/node-v111-darwin-x64')
- deleteList.push('lib/binding/node-v108-darwin-x64')
- deleteList.push('lib/binding/node-v93-darwin-x64')
+ const platform = await os.platform()
- if (dict[arch] === 'arm64') {
- await rename('lib/binding/openssl@' + openssl + '/node-v115-linux-arm64', 'lib/binding/node-v115-linux-arm64')
- await rename('lib/binding/openssl@' + openssl + '/node-v111-linux-arm64', 'lib/binding/node-v111-linux-arm64')
- await rename('lib/binding/openssl@' + openssl + '/node-v108-linux-arm64', 'lib/binding/node-v108-linux-arm64')
- await rename('lib/binding/openssl@' + openssl + '/node-v93-linux-arm64', 'lib/binding/node-v93-linux-arm64')
+ const arch = await os.arch()
+
+ if (platform === 'darwin') {
+ rm('lib/binding/node-v115-win32-x64', { recursive: true, force: true })
+ rm('lib/binding/node-v108-win32-x64', { recursive: true, force: true })
+ if (arch === 'x64') {
+ rm('lib/binding/node-v115-darwin-arm64', { recursive: true, force: true })
+ rm('lib/binding/node-v108-darwin-arm64', { recursive: true, force: true })
} else {
- await rename('lib/binding/openssl@' + openssl + '/node-v115-linux-x64', 'lib/binding/node-v115-linux-x64')
- await rename('lib/binding/openssl@' + openssl + '/node-v111-linux-x64', 'lib/binding/node-v111-linux-x64')
- await rename('lib/binding/openssl@' + openssl + '/node-v108-linux-x64', 'lib/binding/node-v108-linux-x64')
- await rename('lib/binding/openssl@' + openssl + '/node-v93-linux-x64', 'lib/binding/node-v93-linux-x64')
+ rm('lib/binding/node-v115-darwin-x64', { recursive: true, force: true })
+ rm('lib/binding/node-v108-darwin-x64', { recursive: true, force: true })
}
await rm('lib/binding/openssl@3', { recursive: true, force: true })
await rm('lib/binding/openssl@1', { recursive: true, force: true })
- await rm(deleteList[0], { recursive: true, force: true })
- await rm(deleteList[1], { recursive: true, force: true })
- await rm(deleteList[2], { recursive: true, force: true })
- await rm(deleteList[3], { recursive: true, force: true })
- await rm(deleteList[4], { recursive: true, force: true })
- await rm(deleteList[5], { recursive: true, force: true })
- await rm(deleteList[6], { recursive: true, force: true })
- await rm(deleteList[7], { recursive: true, force: true })
+ } else if (platform === 'win32') {
+ rm('lib/binding/node-v115-darwin-arm64', { recursive: true, force: true })
+ rm('lib/binding/node-v108-darwin-arm64', { recursive: true, force: true })
+ rm('lib/binding/node-v115-darwin-x64', { recursive: true, force: true })
+ rm('lib/binding/node-v108-darwin-x64', { recursive: true, force: true })
+ await rm('lib/binding/openssl@3', { recursive: true, force: true })
+ await rm('lib/binding/openssl@1', { recursive: true, force: true })
} else {
- if (dict[arch] === 'arm64') {
- deleteList.push('lib/binding/node-v115-darwin-x64')
- deleteList.push('lib/binding/node-v111-darwin-x64')
- deleteList.push('lib/binding/node-v108-darwin-x64')
- deleteList.push('lib/binding/node-v93-darwin-x64')
+ rm('lib/binding/node-v115-win32-x64', { recursive: true, force: true })
+ rm('lib/binding/node-v108-win32-x64', { recursive: true, force: true })
+ rm('lib/binding/node-v115-darwin-arm64', { recursive: true, force: true })
+ rm('lib/binding/node-v108-darwin-arm64', { recursive: true, force: true })
+ rm('lib/binding/node-v115-darwin-x64', { recursive: true, force: true })
+ rm('lib/binding/node-v108-darwin-x64', { recursive: true, force: true })
+
+ const output = await exec('openssl version')
+ const version = output.stdout
+ const openssl = version.split(' ')[1].slice(0, 1)
+
+ if (arch === 'x64') {
+ await rename('lib/binding/openssl@' + openssl + '/node-v115-linux-x64', 'lib/binding/node-v115-linux-x64')
+ await rename('lib/binding/openssl@' + openssl + '/node-v108-linux-x64', 'lib/binding/node-v108-linux-x64')
} else {
- deleteList.push('lib/binding/node-v115-darwin-arm64')
- deleteList.push('lib/binding/node-v111-darwin-arm64')
- deleteList.push('lib/binding/node-v108-darwin-arm64')
- deleteList.push('lib/binding/node-v93-darwin-arm64')
+ await rename('lib/binding/openssl@' + openssl + '/node-v115-linux-arm64', 'lib/binding/node-v115-linux-arm64')
+ await rename('lib/binding/openssl@' + openssl + '/node-v108-linux-arm64', 'lib/binding/node-v108-linux-arm64')
}
await rm('lib/binding/openssl@3', { recursive: true, force: true })
await rm('lib/binding/openssl@1', { recursive: true, force: true })
- await rm(deleteList[0], { recursive: true, force: true })
- await rm(deleteList[1], { recursive: true, force: true })
- await rm(deleteList[2], { recursive: true, force: true })
- await rm(deleteList[3], { recursive: true, force: true })
}
})()
diff --git a/src/include/conversions.h b/src/include/conversions.h
index 582eafa7d..380f49502 100644
--- a/src/include/conversions.h
+++ b/src/include/conversions.h
@@ -73,6 +73,8 @@ int get_uint64_property(uint64_t *intp, v8::Local obj,
char const *prop, const LogInfo *log);
int get_uint32_property(uint32_t *intp, v8::Local obj,
char const *prop, const LogInfo *log);
+void get_inf_property(as_val **value, const LogInfo *log);
+void get_wildcard_property(as_val **value, const LogInfo *log);
int get_asval_property(as_val **value, v8::Local obj,
const char *prop, const LogInfo *log);
int get_string_property(char **strp, v8::Local obj,
@@ -177,6 +179,8 @@ int list_from_jsarray(as_list **list, v8::Local array,
const LogInfo *log);
int map_from_jsobject(as_map **map, v8::Local obj,
const LogInfo *log);
+int map_from_jsmap(as_map **map, v8::Local obj,
+ const LogInfo *log);
int asval_from_jsvalue(as_val **value, v8::Local v8value,
const LogInfo *log);
int string_from_jsarray(char*** roles, int roles_size, v8::Local role_array, const LogInfo *log);
diff --git a/src/main/expressions.cc b/src/main/expressions.cc
index d138d58bb..11626e96f 100644
--- a/src/main/expressions.cc
+++ b/src/main/expressions.cc
@@ -201,6 +201,16 @@ int convert_entry(Local entry_obj, as_exp_entry *entry,
return AS_NODE_PARAM_OK;
}
+ if (Nan::Has(entry_obj, Nan::New("inf").ToLocalChecked()).FromJust()) {
+ entry->v.val = NULL;
+ get_inf_property(&entry->v.val, log);
+ }
+
+ if (Nan::Has(entry_obj, Nan::New("wildcard").ToLocalChecked()).FromJust()) {
+ entry->v.val = NULL;
+ get_wildcard_property(&entry->v.val, log);
+ }
+
return rc;
}
diff --git a/src/main/map_operations.cc b/src/main/map_operations.cc
index eca3a24d3..ab244d5a9 100644
--- a/src/main/map_operations.cc
+++ b/src/main/map_operations.cc
@@ -157,7 +157,14 @@ bool add_map_put_items_op(as_operations *ops, const char *bin,
as_v8_error(log, "Type error: items property should be an Object");
return false;
}
- if (map_from_jsobject(&items, v8items.As(), log) !=
+ if(v8items->IsMap()){
+ if (map_from_jsmap(&items, v8items.As(), log) !=
+ AS_NODE_PARAM_OK) {
+ as_v8_error(log, "Type error: items property should be an Object");
+ return false;
+ }
+ }
+ else if (map_from_jsobject(&items, v8items.As(), log) !=
AS_NODE_PARAM_OK) {
as_v8_error(log, "Type error: items property should be an Object");
return false;
diff --git a/src/main/util/conversions.cc b/src/main/util/conversions.cc
index 0861ac92b..3ea176eea 100644
--- a/src/main/util/conversions.cc
+++ b/src/main/util/conversions.cc
@@ -37,8 +37,7 @@ extern "C" {
#include
#include
#include
-#include
-#include
+#include
#include
#include
#include
@@ -61,6 +60,7 @@ using namespace v8;
const char *DoubleType = "Double";
const char *GeoJSONType = "GeoJSON";
+const char *BinType = "Bin";
const int64_t MIN_SAFE_INTEGER = -1 * (std::pow(2, 53) - 1);
const int64_t MAX_SAFE_INTEGER = std::pow(2, 53) - 1;
@@ -420,6 +420,18 @@ int get_optional_bytes_property(uint8_t **bytes, int *size, bool *defined,
return AS_NODE_PARAM_OK;
}
+void get_inf_property(as_val **value, const LogInfo *log)
+{
+ Nan::HandleScope scope;
+ *value = (as_val *)&as_cmp_inf;
+}
+
+void get_wildcard_property(as_val **value, const LogInfo *log)
+{
+ Nan::HandleScope scope;
+ *value = (as_val *)&as_cmp_wildcard;
+}
+
int get_asval_property(as_val **value, Local obj, const char *prop,
const LogInfo *log)
{
@@ -620,19 +632,20 @@ as_val *asval_clone(const as_val *val, const LogInfo *log)
break;
}
case AS_MAP: {
- as_hashmap *map = (as_hashmap *)as_map_fromval(val);
+ as_orderedmap *map = (as_orderedmap *)as_map_fromval(val);
clone_val =
- as_map_toval((as_map *)as_hashmap_new(as_hashmap_size(map)));
- as_hashmap_iterator it;
- as_hashmap_iterator_init(&it, map);
- while (as_hashmap_iterator_has_next(&it)) {
- as_pair *pair = (as_pair *)as_hashmap_iterator_next(&it);
+ as_map_toval((as_map *)as_orderedmap_new(as_orderedmap_size(map)));
+ as_orderedmap_iterator it;
+ as_orderedmap_iterator_init(&it, map);
+ while (as_orderedmap_iterator_has_next(&it)) {
+ as_pair *pair = (as_pair *)as_orderedmap_iterator_next(&it);
as_val *orig_key = as_pair_1(pair);
as_val *orig_val = as_pair_2(pair);
as_val *clone_key = asval_clone(orig_key, log);
as_val *clone_mapval = asval_clone(orig_val, log);
- as_hashmap_set((as_hashmap *)clone_val, clone_key, clone_mapval);
+ as_orderedmap_set((as_orderedmap *)clone_val, clone_key, clone_mapval);
}
+ as_orderedmap_set_flags((as_orderedmap *)clone_val, map->_.flags);
as_v8_detail(log, "Cloning a map SUCCESS");
break;
}
@@ -860,12 +873,12 @@ Local val_to_jsvalue(as_val *val, const LogInfo *log)
}
case AS_MAP: {
Local jsobj = Nan::New();
- as_hashmap *map = (as_hashmap *)as_map_fromval(val);
- as_hashmap_iterator it;
- as_hashmap_iterator_init(&it, map);
+ as_orderedmap *map = (as_orderedmap *)as_map_fromval(val);
+ as_orderedmap_iterator it;
+ as_orderedmap_iterator_init(&it, map);
- while (as_hashmap_iterator_has_next(&it)) {
- as_pair *p = (as_pair *)as_hashmap_iterator_next(&it);
+ while (as_orderedmap_iterator_has_next(&it)) {
+ as_pair *p = (as_pair *)as_orderedmap_iterator_next(&it);
as_val *key = as_pair_1(p);
as_val *val = as_pair_2(p);
Nan::Set(jsobj, val_to_jsvalue(key, log), val_to_jsvalue(val, log));
@@ -1026,6 +1039,11 @@ bool is_geojson_value(Local value)
return instanceof (value, GeoJSONType);
}
+bool is_bin_value(Local value)
+{
+ return instanceof (value, BinType);
+}
+
char *geojson_as_string(Local value)
{
Local strval =
@@ -1081,6 +1099,31 @@ int map_from_jsobject(as_map **map, Local obj, const LogInfo *log)
return AS_NODE_PARAM_OK;
}
+int map_from_jsmap(as_map **map, Local obj, const LogInfo *log)
+{
+ const Local data = obj->AsArray();
+ const uint32_t capacity = data->Length();
+ as_v8_detail(log, "Creating new as_orderedmap with capacity %d", capacity);
+ as_orderedmap *orderedmap = as_orderedmap_new(capacity);
+ if (orderedmap == NULL) {
+ as_v8_error(log, "Map allocation failed");
+ Nan::ThrowError("Map allocation failed");
+ return AS_NODE_PARAM_ERR;
+ }
+ *map = (as_map *)orderedmap;
+
+ for (uint32_t i = 0; i < capacity; i = i + 2) {
+ const Local name = Nan::Get(data, i).ToLocalChecked();
+ const Local value = Nan::Get(data, i+1).ToLocalChecked();
+ as_val *val = NULL;
+ if (asval_from_jsvalue(&val, value, log) != AS_NODE_PARAM_OK) {
+ return AS_NODE_PARAM_ERR;
+ }
+ as_stringmap_set(*map, *Nan::Utf8String(name), val);
+ }
+ return AS_NODE_PARAM_OK;
+}
+
int asval_from_jsvalue(as_val **value, Local v8value, const LogInfo *log)
{
if (v8value->IsNull()) {
@@ -1145,6 +1188,12 @@ int asval_from_jsvalue(as_val **value, Local v8value, const LogInfo *log)
return AS_NODE_PARAM_ERR;
}
}
+ else if (v8value->IsMap()) {
+ if (map_from_jsmap((as_map **)value, v8value.As(), log) !=
+ AS_NODE_PARAM_OK) {
+ return AS_NODE_PARAM_ERR;
+ }
+ }
else if (is_geojson_value(v8value)) {
char *jsonstr = geojson_as_string(v8value);
*value = (as_val *)as_geojson_new(jsonstr, true);
@@ -1242,6 +1291,11 @@ int privileges_from_jsarray(as_privilege*** privileges, int privileges_size, Loc
int recordbins_from_jsobject(as_record *rec, Local obj,
const LogInfo *log)
{
+ if (is_bin_value(obj)) {
+ Local jsobj = Nan::New();
+ Nan::Set(jsobj, Nan::Get(obj, Nan::New("name").ToLocalChecked()).ToLocalChecked(), Nan::Get(obj, Nan::New("value").ToLocalChecked()).ToLocalChecked());
+ obj = jsobj;
+ }
const Local props = Nan::GetOwnPropertyNames(obj).ToLocalChecked();
const uint32_t count = props->Length();
as_record_init(rec, count);
@@ -1319,6 +1373,15 @@ int recordbins_from_jsobject(as_record *rec, Local obj,
as_record_set_list(rec, *n, list);
continue;
}
+ if (value->IsMap()) {
+ as_map *map;
+ if (map_from_jsmap(&map, value.As(), log) !=
+ AS_NODE_PARAM_OK) {
+ return AS_NODE_PARAM_ERR;
+ }
+ as_record_set_map(rec, *n, map);
+ continue;
+ }
if (value->IsObject()) {
as_map *map;
if (map_from_jsobject(&map, value.As(), log) !=
diff --git a/test/exp.js b/test/exp.js
index e606fb5b2..e00c30a55 100644
--- a/test/exp.js
+++ b/test/exp.js
@@ -22,6 +22,7 @@
const Aerospike = require('../lib/aerospike')
const exp = Aerospike.exp
const op = Aerospike.operations
+const maps = Aerospike.maps
const GeoJSON = Aerospike.GeoJSON
@@ -236,6 +237,33 @@ describe('Aerospike.exp', function () {
})
})
+ describe('nil', function () {
+ it('evaluates to true if any expression evaluates to true', async function () {
+ const key = await createRecord({ tags: { a: 'blue', b: 'green', c: 'yellow' } })
+
+ await testNoMatch(key, exp.eq(exp.maps.getByValueRange(exp.binMap('tags'), exp.str('green'), exp.nil(), maps.returnType.COUNT), exp.int(2)))
+ await testMatch(key, exp.eq(exp.maps.getByValueRange(exp.binMap('tags'), exp.str('green'), exp.nil(), maps.returnType.COUNT), exp.int(1)))
+ })
+ })
+
+ describe('inf', function () {
+ it('evaluates to true if any expression evaluates to true', async function () {
+ const key = await createRecord({ tags: { a: 'blue', b: 'green', c: 'yellow' } })
+
+ await testNoMatch(key, exp.eq(exp.maps.getByValueRange(exp.binMap('tags'), exp.inf(), exp.str('green'), maps.returnType.COUNT), exp.int(1)))
+ await testMatch(key, exp.eq(exp.maps.getByValueRange(exp.binMap('tags'), exp.inf(), exp.str('green'), maps.returnType.COUNT), exp.int(2)))
+ })
+ })
+
+ describe('wildcard', function () {
+ it('evaluates to true if any expression evaluates to true', async function () {
+ const key = await createRecord({ tags: { a: 'blue', b: 'green', c: 'yellow' } })
+
+ await testNoMatch(key, exp.eq(exp.maps.getByValueRange(exp.binMap('tags'), exp.inf(), exp.wildcard(), maps.returnType.COUNT), exp.int(2)))
+ await testMatch(key, exp.eq(exp.maps.getByValueRange(exp.binMap('tags'), exp.inf(), exp.wildcard(), maps.returnType.COUNT), exp.int(3)))
+ })
+ })
+
describe('arithmetic expressions', function () {
describe('int bin add expression', function () {
it('evaluates exp_read op to true if temp bin equals the sum of bin and given value', async function () {
diff --git a/test/exp_list.js b/test/exp_list.js
index 3d28ae5b3..dcc9d110f 100644
--- a/test/exp_list.js
+++ b/test/exp_list.js
@@ -84,6 +84,434 @@ describe('Aerospike.exp_operations', function () {
})
})
+ describe('clear', function () {
+ it('removes all items in a map', async function () {
+ const key = await createRecord({ tags: ['blue', 'green', 'yellow'] })
+
+ const ops = [
+ exp.operations.write('tags',
+ exp.lists.clear(
+ exp.binList('tags')),
+ 0),
+ op.read('tags')
+ ]
+ const result = await client.operate(key, ops, {})
+
+ expect(result.bins).to.eql({ tags: [] })
+ })
+
+ it('selects item identified by index inside nested map', async function () {
+ const key = await createRecord({ tags: ['blue', 'green', ['orange', 'pink', 'white', 'black']] })
+
+ const context = new Context().addListIndex(2)
+ const ops = [
+ exp.operations.write('tags',
+ exp.lists.clear(
+ exp.binList('tags'),
+ context),
+ 0),
+ op.read('tags')
+ ]
+ const result = await client.operate(key, ops, {})
+
+ expect(result.bins).to.eql({ tags: ['blue', 'green', []] })
+ })
+ })
+
+ describe('removeByValue', function () {
+ it('removes list item by value', async function () {
+ const key = await createRecord({ tags: ['blue', 'green', 'yellow'] })
+
+ const ops = [
+ exp.operations.write('tags',
+ exp.lists.removeByValue(
+ exp.binList('tags'),
+ exp.str('green')),
+ 0),
+ op.read('tags')
+ ]
+ const result = await client.operate(key, ops, {})
+
+ expect(result.bins).to.eql({ tags: ['blue', 'yellow'] })
+ })
+
+ it('removes list item by value in a cdt context', async function () {
+ const key = await createRecord({ tags: ['blue', 'green', ['orange', 'pink', 'white', 'black']] })
+ const context = new Context().addListIndex(2)
+ const ops = [
+ exp.operations.write('tags',
+ exp.lists.removeByValue(
+ exp.binList('tags'),
+ exp.str('white'),
+ context),
+ 0),
+ op.read('tags')
+ ]
+ const result = await client.operate(key, ops, {})
+
+ expect(result.bins).to.eql({ tags: ['blue', 'green', ['orange', 'pink', 'black']] })
+ })
+ })
+
+ describe('removeByValueList', function () {
+ it('removes list item by value list', async function () {
+ const key = await createRecord({ tags: ['blue', 'green', 'yellow'] })
+
+ const ops = [
+ exp.operations.write('tags',
+ exp.lists.removeByValueList(
+ exp.binList('tags'),
+ exp.list(['green', 'yellow'])),
+ 0),
+ op.read('tags')
+ ]
+ const result = await client.operate(key, ops, {})
+
+ expect(result.bins).to.eql({ tags: ['blue'] })
+ })
+
+ it('removes list item by value list in a cdt context', async function () {
+ const key = await createRecord({ tags: ['blue', 'green', ['orange', 'pink', 'white', 'black']] })
+ const context = new Context().addListIndex(2)
+ const ops = [
+ exp.operations.write('tags',
+ exp.lists.removeByValueList(
+ exp.binList('tags'),
+ exp.list(['orange', 'white']),
+ context),
+ 0),
+ op.read('tags')
+ ]
+ const result = await client.operate(key, ops, {})
+
+ expect(result.bins).to.eql({ tags: ['blue', 'green', ['pink', 'black']] })
+ })
+ })
+
+ describe('removeByValueRange', function () {
+ it('removes list item by value range', async function () {
+ const key = await createRecord({ tags: ['blue', 'green', 'yellow'] })
+
+ const ops = [
+ exp.operations.write('tags',
+ exp.lists.removeByValueRange(
+ exp.binList('tags'),
+ exp.str('green'),
+ exp.str('blue')),
+ 0),
+ op.read('tags')
+ ]
+ const result = await client.operate(key, ops, {})
+
+ expect(result.bins).to.eql({ tags: ['green', 'yellow'] })
+ })
+
+ it('removes list item by value range in a cdt context', async function () {
+ const key = await createRecord({ tags: ['blue', 'green', ['orange', 'pink', 'white', 'black']] })
+ const context = new Context().addListIndex(2)
+ const ops = [
+ exp.operations.write('tags',
+ exp.lists.removeByValueRange(
+ exp.binList('tags'),
+ exp.str('pink'),
+ exp.str('black'),
+ context),
+ 0),
+ op.read('tags')
+ ]
+ const result = await client.operate(key, ops, {})
+
+ expect(result.bins).to.eql({ tags: ['blue', 'green', ['pink', 'white']] })
+ })
+ })
+
+ describe('removeByRelRankRangeToEnd', function () {
+ it('removes list item by value relative rank range to end', async function () {
+ const key = await createRecord({ tags: ['blue', 'green', 'yellow'] })
+
+ const ops = [
+ exp.operations.write('tags',
+ exp.lists.removeByRelRankRangeToEnd(
+ exp.binList('tags'),
+ exp.int(1),
+ exp.str('blue')),
+ 0),
+ op.read('tags')
+ ]
+ const result = await client.operate(key, ops, {})
+
+ expect(result.bins).to.eql({ tags: ['blue'] })
+ })
+
+ it('removes list item by value relative rank range to end in a cdt context', async function () {
+ const key = await createRecord({ tags: ['blue', 'green', ['orange', 'pink', 'white', 'black']] })
+ const context = new Context().addListIndex(2)
+ const ops = [
+ exp.operations.write('tags',
+ exp.lists.removeByRelRankRangeToEnd(
+ exp.binList('tags'),
+ exp.int(1),
+ exp.str('orange'),
+ context),
+ 0),
+ op.read('tags')
+ ]
+ const result = await client.operate(key, ops, {})
+
+ expect(result.bins).to.eql({ tags: ['blue', 'green', ['orange', 'black']] })
+ })
+ })
+
+ describe('removeByRelRankRange', function () {
+ it('removes list item by value relative rank range', async function () {
+ const key = await createRecord({ tags: ['blue', 'green', 'yellow'] })
+
+ const ops = [
+ exp.operations.write('tags',
+ exp.lists.removeByRelRankRange(
+ exp.binList('tags'),
+ exp.int(1),
+ exp.int(-1),
+ exp.str('green')),
+ 0),
+ op.read('tags')
+ ]
+ const result = await client.operate(key, ops, {})
+
+ expect(result.bins).to.eql({ tags: ['green', 'yellow'] })
+ })
+
+ it('removes list item by value relative rank range in a cdt context', async function () {
+ const key = await createRecord({ tags: ['blue', 'green', ['orange', 'pink', 'white', 'black']] })
+ const context = new Context().addListIndex(2)
+ const ops = [
+ exp.operations.write('tags',
+ exp.lists.removeByRelRankRange(
+ exp.binList('tags'),
+ exp.int(1),
+ exp.int(-1),
+ exp.str('pink'),
+ context),
+ 0),
+ op.read('tags')
+ ]
+ const result = await client.operate(key, ops, {})
+
+ expect(result.bins).to.eql({ tags: ['blue', 'green', ['pink', 'white', 'black']] })
+ })
+ })
+
+ describe('removeByIndex', function () {
+ it('removes a list item by index', async function () {
+ const key = await createRecord({ tags: ['blue', 'green', 'yellow'] })
+ const ops = [
+ exp.operations.write('tags',
+ exp.lists.removeByIndex(
+ exp.binList('tags'),
+ exp.int(1)),
+ 0),
+ op.read('tags')
+ ]
+ const result = await client.operate(key, ops, {})
+ expect(result.bins).to.eql({ tags: ['blue', 'yellow'] })
+ })
+
+ it('removes a list item by index in a cdt context in a cdt context', async function () {
+ const key = await createRecord({ tags: ['blue', 'green', ['orange', 'pink', 'white', 'black']] })
+ const context = new Context().addListIndex(2)
+ const ops = [
+ exp.operations.write('tags',
+ exp.lists.removeByIndex(
+ exp.binList('tags'),
+ exp.int(1),
+ context),
+ 0),
+ op.read('tags')
+ ]
+ const result = await client.operate(key, ops, {})
+ expect(result.bins).to.eql({ tags: ['blue', 'green', ['orange', 'white', 'black']] })
+ })
+ })
+
+ describe('removeByIndexRangeToEnd', function () {
+ it('removes a list item by index range to end', async function () {
+ const key = await createRecord({ tags: ['blue', 'green', 'yellow'] })
+
+ const ops = [
+ exp.operations.write('tags',
+ exp.lists.removeByIndexRangeToEnd(
+ exp.binList('tags'),
+ exp.int(1)),
+ 0),
+ op.read('tags')
+ ]
+ const result = await client.operate(key, ops, {})
+
+ expect(result.bins).to.eql({ tags: ['blue'] })
+ })
+
+ it('removes a list item by index range to end in a cdt context in a cdt context', async function () {
+ const key = await createRecord({ tags: ['blue', 'green', ['orange', 'pink', 'white', 'black']] })
+ const context = new Context().addListIndex(2)
+ const ops = [
+ exp.operations.write('tags',
+ exp.lists.removeByIndexRangeToEnd(
+ exp.binList('tags'),
+ exp.int(1),
+ context),
+ 0),
+ op.read('tags')
+ ]
+ const result = await client.operate(key, ops, {})
+
+ expect(result.bins).to.eql({ tags: ['blue', 'green', ['orange']] })
+ })
+ })
+
+ describe('removeByIndexRange', function () {
+ it('removes a list item by index range', async function () {
+ const key = await createRecord({ tags: ['blue', 'green', 'yellow'] })
+
+ const ops = [
+ exp.operations.write('tags',
+ exp.lists.removeByIndexRange(
+ exp.binList('tags'),
+ exp.int(2),
+ exp.int(0)),
+ 0),
+ op.read('tags')
+ ]
+ const result = await client.operate(key, ops, {})
+
+ expect(result.bins).to.eql({ tags: ['yellow'] })
+ })
+
+ it('removes a list item by index range in a cdt context', async function () {
+ const key = await createRecord({ tags: ['blue', 'green', ['orange', 'pink', 'white', 'black']] })
+ const context = new Context().addListIndex(2)
+ const ops = [
+ exp.operations.write('tags',
+ exp.lists.removeByIndexRange(
+ exp.binList('tags'),
+ exp.int(2),
+ exp.int(0),
+ context),
+ 0),
+ op.read('tags')
+ ]
+ const result = await client.operate(key, ops, {})
+
+ expect(result.bins).to.eql({ tags: ['blue', 'green', ['white', 'black']] })
+ })
+ })
+
+ describe('removeByRank', function () {
+ it('removes a list item by rank', async function () {
+ const key = await createRecord({ tags: ['yellow', 'green', 'blue'] })
+
+ const ops = [
+ exp.operations.write('tags',
+ exp.lists.removeByRank(
+ exp.binList('tags'),
+ exp.int(2)),
+ 0),
+ op.read('tags')
+ ]
+ const result = await client.operate(key, ops, {})
+
+ expect(result.bins).to.eql({ tags: ['green', 'blue'] })
+ })
+
+ it('removes a list item by rank in a cdt context', async function () {
+ const key = await createRecord({ tags: ['blue', 'green', ['orange', 'pink', 'white', 'black']] })
+ const context = new Context().addListIndex(2)
+ const ops = [
+ exp.operations.write('tags',
+ exp.lists.removeByRank(
+ exp.binList('tags'),
+ exp.int(2),
+ context),
+ 0),
+ op.read('tags')
+ ]
+ const result = await client.operate(key, ops, {})
+
+ expect(result.bins).to.eql({ tags: ['blue', 'green', ['orange', 'white', 'black']] })
+ })
+ })
+
+ describe('removeByRankRangeToEnd', function () {
+ it('removes a list item by rank range to end', async function () {
+ const key = await createRecord({ tags: ['yellow', 'green', 'blue'] })
+
+ const ops = [
+ exp.operations.write('tags',
+ exp.lists.removeByRankRangeToEnd(
+ exp.binList('tags'),
+ exp.int(1)),
+ 0),
+ op.read('tags')
+ ]
+ const result = await client.operate(key, ops, {})
+
+ expect(result.bins).to.eql({ tags: ['blue'] })
+ })
+
+ it('removes a list item by rank range to end in a cdt context', async function () {
+ const key = await createRecord({ tags: ['blue', 'green', ['orange', 'pink', 'white', 'black']] })
+ const context = new Context().addListIndex(2)
+ const ops = [
+ exp.operations.write('tags',
+ exp.lists.removeByRankRangeToEnd(
+ exp.binList('tags'),
+ exp.int(1),
+ context),
+ 0),
+ op.read('tags')
+ ]
+ const result = await client.operate(key, ops, {})
+
+ expect(result.bins).to.eql({ tags: ['blue', 'green', ['black']] })
+ })
+ })
+
+ describe('removeByRankRange', function () {
+ it('removes a list item by rank range', async function () {
+ const key = await createRecord({ tags: ['yellow', 'green', 'blue'] })
+
+ const ops = [
+ exp.operations.write('tags',
+ exp.lists.removeByRankRange(
+ exp.binList('tags'),
+ exp.int(2),
+ exp.int(0)),
+ 0),
+ op.read('tags')
+ ]
+ const result = await client.operate(key, ops, {})
+
+ expect(result.bins).to.eql({ tags: ['yellow'] })
+ })
+
+ it('removes a list item by rank range in a cdt context', async function () {
+ const key = await createRecord({ tags: ['blue', 'green', ['orange', 'pink', 'white', 'black']] })
+ const context = new Context().addListIndex(2)
+ const ops = [
+ exp.operations.write('tags',
+ exp.lists.removeByRankRange(
+ exp.binList('tags'),
+ exp.int(2),
+ exp.int(0),
+ context),
+ 0),
+ op.read('tags')
+ ]
+ const result = await client.operate(key, ops, {})
+
+ expect(result.bins).to.eql({ tags: ['blue', 'green', ['pink', 'white']] })
+ })
+ })
+
describe('getByValue', function () {
it('matches the count of the matched list values', async function () {
const key = await createRecord({ tags: ['blue', 'green', 'yellow', 'green'] })
@@ -292,7 +720,7 @@ describe('Aerospike.exp_operations', function () {
op.read('list')
]
const result = await client.operate(key, ops, {})
- // console.log(result)
+
expect(result.bins.list).to.eql([2, 3, 4, 5])
expect(result.bins.ExpVar).to.eql([2, 3, 4, 5, 6])
})
@@ -307,7 +735,7 @@ describe('Aerospike.exp_operations', function () {
op.read('list')
]
const result = await client.operate(key, ops, {})
- // console.log(result)
+
expect(result.bins.list).to.eql([2, 3, 4, 5, [4]])
expect(result.bins.ExpVar).to.eql([2, 3, 4, 5, [4, 6]])
})
@@ -323,7 +751,7 @@ describe('Aerospike.exp_operations', function () {
op.read('list')
]
const result = await client.operate(key, ops, {})
- // console.log(result)
+
expect(result.bins.list).to.eql([2, 3, 4, 5])
expect(result.bins.ExpVar).to.eql([2, 3, 4, 5, 2, 3, 4, 5])
})
@@ -338,7 +766,7 @@ describe('Aerospike.exp_operations', function () {
op.read('list')
]
const result = await client.operate(key, ops, {})
- // console.log(result)
+
expect(result.bins.list).to.eql([2, 3, 4, 5, [80, 90, 100]])
expect(result.bins.ExpVar).to.eql([2, 3, 4, 5, [80, 90, 100, 2, 3, 4, 5, [80, 90, 100]]])
})
@@ -354,7 +782,7 @@ describe('Aerospike.exp_operations', function () {
op.read('list')
]
const result = await client.operate(key, ops, {})
- // console.log(result)
+
expect(result.bins.list).to.eql([2, 3, 4, 5])
expect(result.bins.ExpVar).to.eql([2, 3, 6, 4, 5])
})
@@ -369,7 +797,7 @@ describe('Aerospike.exp_operations', function () {
op.read('list')
]
const result = await client.operate(key, ops, {})
- // console.log(result)
+
expect(result.bins.list).to.eql([2, 3, 4, 5, [4, 1, 9]])
expect(result.bins.ExpVar).to.eql([2, 3, 4, 5, [4, 1, 7, 9]])
})
@@ -384,7 +812,7 @@ describe('Aerospike.exp_operations', function () {
op.read('list')
]
const result = await client.operate(key, ops, {})
- // console.log(result)
+
expect(result.bins.list).to.eql([2, 3, 4, 5])
expect(result.bins.ExpVar).to.eql([2, 2, 3, 4, 5, 3, 4, 5])
})
@@ -399,7 +827,7 @@ describe('Aerospike.exp_operations', function () {
op.read('list')
]
const result = await client.operate(key, ops, {})
- // console.log(result)
+
expect(result.bins.list).to.eql([2, 3, [9, 9]])
expect(result.bins.ExpVar).to.eql([2, 3, [9, 2, 3, [9, 9], 9]])
})
@@ -418,7 +846,7 @@ describe('Aerospike.exp_operations', function () {
op.read('list')
]
const result = await client.operate(key, ops, {})
- // console.log(result)
+
expect(result.bins.ExpVar).to.eql([5, 5, 4, 4, 3, 3, 2, 2])
expect(result.bins.list).to.eql([2, 2, 3, 4, 5, 3, 4, 5])
})
@@ -433,8 +861,7 @@ describe('Aerospike.exp_operations', function () {
op.read('list')
]
const result = await client.operate(key, ops, {})
- console.log(result.bins.ExpVar)
- // console.log(result)
+
expect(result.bins.ExpVar).to.eql([2, 3, 4, 5, [100, 9]])
expect(result.bins.list).to.eql([2, 3, 4, 5, [9, 100]])
})
diff --git a/test/exp_map.js b/test/exp_map.js
index 81f801709..5f69179d3 100644
--- a/test/exp_map.js
+++ b/test/exp_map.js
@@ -109,6 +109,967 @@ describe('Aerospike.exp_operations', function () {
})
})
+ describe('removeByKey', function () {
+ it('removes map item by key', async function () {
+ const key = await createRecord({ tags: { a: 'blue', b: 'green', c: 'yellow' } })
+
+ const ops = [
+ exp.operations.write('tags',
+ exp.maps.removeByKey(
+ exp.binMap('tags'),
+ exp.str('a')),
+ 0),
+ op.read('tags')
+ ]
+ const result = await client.operate(key, ops, {})
+
+ expect(result.bins).to.eql({ tags: { b: 'green', c: 'yellow' } })
+ })
+
+ it('removes map item by key in a cdt context', async function () {
+ const key = await createRecord({ tags: { a: 'blue', nested: { d: 'orange', e: 'pink', f: 'white', g: 'black' } } })
+ const context = new Context().addMapKey('nested')
+ const ops = [
+ exp.operations.write('tags',
+ exp.maps.removeByKey(
+ exp.binMap('tags'),
+ exp.str('e'),
+ context),
+ 0),
+ op.read('tags')
+ ]
+ const result = await client.operate(key, ops, {})
+
+ expect(result.bins).to.eql({ tags: { a: 'blue', nested: { d: 'orange', f: 'white', g: 'black' } } })
+ })
+ })
+
+ describe('removeByKeyList', function () {
+ it('removes map item by key list', async function () {
+ const key = await createRecord({ tags: { a: 'blue', b: 'green', c: 'yellow' } })
+
+ const ops = [
+ exp.operations.write('tags',
+ exp.maps.removeByKeyList(
+ exp.binMap('tags'),
+ exp.list(['a', 'b'])),
+ 0),
+ op.read('tags')
+ ]
+ const result = await client.operate(key, ops, {})
+
+ expect(result.bins).to.eql({ tags: { c: 'yellow' } })
+ })
+
+ it('removes map item by key list in a cdt context', async function () {
+ const key = await createRecord({ tags: { a: 'blue', nested: { d: 'orange', e: 'pink', f: 'white', g: 'black' } } })
+ const context = new Context().addMapKey('nested')
+ const ops = [
+ exp.operations.write('tags',
+ exp.maps.removeByKeyList(
+ exp.binMap('tags'),
+ exp.list(['d', 'e']),
+ context),
+ 0),
+ op.read('tags')
+ ]
+ const result = await client.operate(key, ops, {})
+
+ expect(result.bins).to.eql({ tags: { a: 'blue', nested: { f: 'white', g: 'black' } } })
+ })
+ })
+
+ describe('removeByKeyRange', function () {
+ it('removes map item by key range', async function () {
+ const key = await createRecord({ tags: { a: 'blue', b: 'green', c: 'yellow' } })
+
+ const ops = [
+ exp.operations.write('tags',
+ exp.maps.removeByKeyRange(
+ exp.binMap('tags'),
+ exp.str('c'),
+ exp.str('a')),
+ 0),
+ op.read('tags')
+ ]
+ const result = await client.operate(key, ops, {})
+
+ expect(result.bins).to.eql({ tags: { c: 'yellow' } })
+ })
+
+ it('removes map item by key range in a cdt context', async function () {
+ const key = await createRecord({ tags: { a: 'blue', nested: { d: 'orange', e: 'pink', f: 'white', g: 'black' } } })
+ const context = new Context().addMapKey('nested')
+ const ops = [
+ exp.operations.write('tags',
+ exp.maps.removeByKeyRange(
+ exp.binMap('tags'),
+ exp.str('h'),
+ exp.str('e'),
+ context),
+ 0),
+ op.read('tags')
+ ]
+ const result = await client.operate(key, ops, {})
+
+ expect(result.bins).to.eql({ tags: { a: 'blue', nested: { d: 'orange' } } })
+ })
+
+ it('removes inverted map item by key range', async function () {
+ const key = await createRecord({ tags: { a: 'blue', b: 'green', c: 'yellow' } })
+
+ const ops = [
+ exp.operations.write('tags',
+ exp.maps.removeByKeyRange(
+ exp.binMap('tags'),
+ exp.str('c'),
+ exp.str('a'),
+ null,
+ maps.returnType.INVERTED),
+ 0),
+ op.read('tags')
+ ]
+ const result = await client.operate(key, ops, {})
+
+ expect(result.bins).to.eql({ tags: { a: 'blue', b: 'green' } })
+ })
+
+ it('removes inverted map item by key range in a cdt context', async function () {
+ const key = await createRecord({ tags: { a: 'blue', nested: { d: 'orange', e: 'pink', f: 'white', g: 'black' } } })
+ const context = new Context().addMapKey('nested')
+ const ops = [
+ exp.operations.write('tags',
+ exp.maps.removeByKeyRange(
+ exp.binMap('tags'),
+ exp.str('h'),
+ exp.str('e'),
+ context,
+ maps.returnType.INVERTED),
+ 0),
+ op.read('tags')
+ ]
+ const result = await client.operate(key, ops, {})
+
+ expect(result.bins).to.eql({ tags: { a: 'blue', nested: { e: 'pink', f: 'white', g: 'black' } } })
+ })
+ })
+
+ describe('removeByKeyRelIndexRangeToEnd', function () {
+ it('removes map item by key relative index range to end', async function () {
+ const key = await createRecord({ tags: { a: 'blue', b: 'green', c: 'yellow' } })
+
+ const ops = [
+ exp.operations.write('tags',
+ exp.maps.removeByKeyRelIndexRangeToEnd(
+ exp.binMap('tags'),
+ exp.int(1),
+ exp.str('b')),
+ 0),
+ op.read('tags')
+ ]
+ const result = await client.operate(key, ops, {})
+
+ expect(result.bins).to.eql({ tags: { a: 'blue', b: 'green' } })
+ })
+
+ it('removes map item by key relative index range to end in a cdt context', async function () {
+ const key = await createRecord({ tags: { a: 'blue', nested: { d: 'orange', e: 'pink', f: 'white', g: 'black' } } })
+ const context = new Context().addMapKey('nested')
+ const ops = [
+ exp.operations.write('tags',
+ exp.maps.removeByKeyRelIndexRangeToEnd(
+ exp.binMap('tags'),
+ exp.int(1),
+ exp.str('e'),
+ context),
+ 0),
+ op.read('tags')
+ ]
+ const result = await client.operate(key, ops, {})
+
+ expect(result.bins).to.eql({ tags: { a: 'blue', nested: { d: 'orange', e: 'pink' } } })
+ })
+
+ it('removes inverted map item by key relative index range to end', async function () {
+ const key = await createRecord({ tags: { a: 'blue', b: 'green', c: 'yellow' } })
+
+ const ops = [
+ exp.operations.write('tags',
+ exp.maps.removeByKeyRelIndexRangeToEnd(
+ exp.binMap('tags'),
+ exp.int(1),
+ exp.str('b'),
+ null,
+ maps.returnType.INVERTED),
+ 0),
+ op.read('tags')
+ ]
+ const result = await client.operate(key, ops, {})
+
+ expect(result.bins).to.eql({ tags: { c: 'yellow' } })
+ })
+
+ it('removes inverted map item by key relative index range to end in a cdt context', async function () {
+ const key = await createRecord({ tags: { a: 'blue', nested: { d: 'orange', e: 'pink', f: 'white', g: 'black' } } })
+ const context = new Context().addMapKey('nested')
+ const ops = [
+ exp.operations.write('tags',
+ exp.maps.removeByKeyRelIndexRangeToEnd(
+ exp.binMap('tags'),
+ exp.int(1),
+ exp.str('e'),
+ context,
+ maps.returnType.INVERTED),
+ 0),
+ op.read('tags')
+ ]
+ const result = await client.operate(key, ops, {})
+
+ expect(result.bins).to.eql({ tags: { a: 'blue', nested: { f: 'white', g: 'black' } } })
+ })
+ })
+
+ describe('removeByKeyRelIndexRange', function () {
+ it('removes map item by key relative index range', async function () {
+ const key = await createRecord({ tags: { a: 'blue', b: 'green', c: 'yellow' } })
+
+ const ops = [
+ exp.operations.write('tags',
+ exp.maps.removeByKeyRelIndexRange(
+ exp.binMap('tags'),
+ exp.int(2),
+ exp.int(0),
+ exp.str('a')),
+ 0),
+ op.read('tags')
+ ]
+ const result = await client.operate(key, ops, {})
+
+ expect(result.bins).to.eql({ tags: { c: 'yellow' } })
+ })
+
+ it('removes map item by key relative index range in a cdt context', async function () {
+ const key = await createRecord({ tags: { a: 'blue', nested: { d: 'orange', e: 'pink', f: 'white', g: 'black' } } })
+ const context = new Context().addMapKey('nested')
+ const ops = [
+ exp.operations.write('tags',
+ exp.maps.removeByKeyRelIndexRange(
+ exp.binMap('tags'),
+ exp.int(2),
+ exp.int(0),
+ exp.str('d'),
+ context),
+ 0),
+ op.read('tags')
+ ]
+ const result = await client.operate(key, ops, {})
+
+ expect(result.bins).to.eql({ tags: { a: 'blue', nested: { f: 'white', g: 'black' } } })
+ })
+
+ it('removes inverted map item by key relative index range', async function () {
+ const key = await createRecord({ tags: { a: 'blue', b: 'green', c: 'yellow' } })
+
+ const ops = [
+ exp.operations.write('tags',
+ exp.maps.removeByKeyRelIndexRange(
+ exp.binMap('tags'),
+ exp.int(2),
+ exp.int(0),
+ exp.str('a'),
+ null,
+ maps.returnType.INVERTED),
+ 0),
+ op.read('tags')
+ ]
+ const result = await client.operate(key, ops, {})
+
+ expect(result.bins).to.eql({ tags: { a: 'blue', b: 'green' } })
+ })
+
+ it('removes inverted map item by key relative index range in a cdt context', async function () {
+ const key = await createRecord({ tags: { a: 'blue', nested: { d: 'orange', e: 'pink', f: 'white', g: 'black' } } })
+ const context = new Context().addMapKey('nested')
+ const ops = [
+ exp.operations.write('tags',
+ exp.maps.removeByKeyRelIndexRange(
+ exp.binMap('tags'),
+ exp.int(2),
+ exp.int(0),
+ exp.str('a'),
+ context,
+ maps.returnType.INVERTED),
+ 0),
+ op.read('tags')
+ ]
+ const result = await client.operate(key, ops, {})
+
+ expect(result.bins).to.eql({ tags: { a: 'blue', nested: { d: 'orange', e: 'pink' } } })
+ })
+ })
+
+ describe('removeByValue', function () {
+ it('removes map item by value', async function () {
+ const key = await createRecord({ tags: { a: 'blue', b: 'green', c: 'yellow' } })
+
+ const ops = [
+ exp.operations.write('tags',
+ exp.maps.removeByValue(
+ exp.binMap('tags'),
+ exp.str('green')),
+ 0),
+ op.read('tags')
+ ]
+ const result = await client.operate(key, ops, {})
+
+ expect(result.bins).to.eql({ tags: { a: 'blue', c: 'yellow' } })
+ })
+
+ it('removes map item by value in a cdt context', async function () {
+ const key = await createRecord({ tags: { a: 'blue', nested: { d: 'orange', e: 'pink', f: 'white', g: 'black' } } })
+ const context = new Context().addMapKey('nested')
+ const ops = [
+ exp.operations.write('tags',
+ exp.maps.removeByValue(
+ exp.binMap('tags'),
+ exp.str('white'),
+ context),
+ 0),
+ op.read('tags')
+ ]
+ const result = await client.operate(key, ops, {})
+
+ expect(result.bins).to.eql({ tags: { a: 'blue', nested: { d: 'orange', e: 'pink', g: 'black' } } })
+ })
+ })
+
+ describe('removeByValueList', function () {
+ it('removes map item by value list', async function () {
+ const key = await createRecord({ tags: { a: 'blue', b: 'green', c: 'yellow' } })
+
+ const ops = [
+ exp.operations.write('tags',
+ exp.maps.removeByValueList(
+ exp.binMap('tags'),
+ exp.list(['green', 'yellow'])),
+ 0),
+ op.read('tags')
+ ]
+ const result = await client.operate(key, ops, {})
+
+ expect(result.bins).to.eql({ tags: { a: 'blue' } })
+ })
+
+ it('removes map item by value list in a cdt context', async function () {
+ const key = await createRecord({ tags: { a: 'blue', nested: { d: 'orange', e: 'pink', f: 'white', g: 'black' } } })
+ const context = new Context().addMapKey('nested')
+ const ops = [
+ exp.operations.write('tags',
+ exp.maps.removeByValueList(
+ exp.binMap('tags'),
+ exp.list(['orange', 'white']),
+ context),
+ 0),
+ op.read('tags')
+ ]
+ const result = await client.operate(key, ops, {})
+
+ expect(result.bins).to.eql({ tags: { a: 'blue', nested: { e: 'pink', g: 'black' } } })
+ })
+ })
+
+ describe('removeByValueRange', function () {
+ it('removes map item by value range', async function () {
+ const key = await createRecord({ tags: { a: 'blue', b: 'green', c: 'yellow' } })
+
+ const ops = [
+ exp.operations.write('tags',
+ exp.maps.removeByValueRange(
+ exp.binMap('tags'),
+ exp.str('green'),
+ exp.str('blue')),
+ 0),
+ op.read('tags')
+ ]
+ const result = await client.operate(key, ops, {})
+
+ expect(result.bins).to.eql({ tags: { b: 'green', c: 'yellow' } })
+ })
+
+ it('removes map item by value range in a cdt context', async function () {
+ const key = await createRecord({ tags: { a: 'blue', nested: { d: 'orange', e: 'pink', f: 'white', g: 'black' } } })
+ const context = new Context().addMapKey('nested')
+ const ops = [
+ exp.operations.write('tags',
+ exp.maps.removeByValueRange(
+ exp.binMap('tags'),
+ exp.str('pink'),
+ exp.str('black'),
+ context),
+ 0),
+ op.read('tags')
+ ]
+ const result = await client.operate(key, ops, {})
+
+ expect(result.bins).to.eql({ tags: { a: 'blue', nested: { e: 'pink', f: 'white' } } })
+ })
+
+ it('removes inverted map item by value range', async function () {
+ const key = await createRecord({ tags: { a: 'blue', b: 'green', c: 'yellow' } })
+
+ const ops = [
+ exp.operations.write('tags',
+ exp.maps.removeByValueRange(
+ exp.binMap('tags'),
+ exp.str('green'),
+ exp.str('blue'),
+ null,
+ maps.returnType.INVERTED),
+ 0),
+ op.read('tags')
+ ]
+ const result = await client.operate(key, ops, {})
+
+ expect(result.bins).to.eql({ tags: { a: 'blue' } })
+ })
+
+ it('removes inverted map item by value range in a cdt context', async function () {
+ const key = await createRecord({ tags: { a: 'blue', nested: { d: 'orange', e: 'pink', f: 'white', g: 'black' } } })
+ const context = new Context().addMapKey('nested')
+ const ops = [
+ exp.operations.write('tags',
+ exp.maps.removeByValueRange(
+ exp.binMap('tags'),
+ exp.str('pink'),
+ exp.str('black'),
+ context,
+ maps.returnType.INVERTED),
+ 0),
+ op.read('tags')
+ ]
+ const result = await client.operate(key, ops, {})
+
+ expect(result.bins).to.eql({ tags: { a: 'blue', nested: { d: 'orange', g: 'black' } } })
+ })
+ })
+
+ describe('removeByValueRelRankRangeToEnd', function () {
+ it('removes map item by value relative rank range to end', async function () {
+ const key = await createRecord({ tags: { a: 'yellow', b: 'green', c: 'blue' } })
+
+ const ops = [
+ exp.operations.write('tags',
+ exp.maps.removeByValueRelRankRangeToEnd(
+ exp.binMap('tags'),
+ exp.int(1),
+ exp.str('blue')),
+ 0),
+ op.read('tags')
+ ]
+ const result = await client.operate(key, ops, {})
+
+ expect(result.bins).to.eql({ tags: { c: 'blue' } })
+ })
+
+ it('removes map item by value relative rank range to end in a cdt context', async function () {
+ const key = await createRecord({ tags: { a: 'blue', nested: { d: 'orange', e: 'pink', f: 'white', g: 'black' } } })
+ const context = new Context().addMapKey('nested')
+ const ops = [
+ exp.operations.write('tags',
+ exp.maps.removeByValueRelRankRangeToEnd(
+ exp.binMap('tags'),
+ exp.int(1),
+ exp.str('orange'),
+ context),
+ 0),
+ op.read('tags')
+ ]
+ const result = await client.operate(key, ops, {})
+
+ expect(result.bins).to.eql({ tags: { a: 'blue', nested: { d: 'orange', g: 'black' } } })
+ })
+
+ it('removes inverted map item by value relative rank range to end', async function () {
+ const key = await createRecord({ tags: { a: 'yellow', b: 'green', c: 'blue' } })
+
+ const ops = [
+ exp.operations.write('tags',
+ exp.maps.removeByValueRelRankRangeToEnd(
+ exp.binMap('tags'),
+ exp.int(1),
+ exp.str('blue'),
+ null,
+ maps.returnType.INVERTED),
+ 0),
+ op.read('tags')
+ ]
+ const result = await client.operate(key, ops, {})
+
+ expect(result.bins).to.eql({ tags: { a: 'yellow', b: 'green' } })
+ })
+
+ it('removes inverted map item by value relative rank range to end in a cdt context', async function () {
+ const key = await createRecord({ tags: { a: 'blue', nested: { d: 'orange', e: 'pink', f: 'white', g: 'black' } } })
+ const context = new Context().addMapKey('nested')
+ const ops = [
+ exp.operations.write('tags',
+ exp.maps.removeByValueRelRankRangeToEnd(
+ exp.binMap('tags'),
+ exp.int(1),
+ exp.str('black'),
+ context,
+ maps.returnType.INVERTED),
+ 0),
+ op.read('tags')
+ ]
+ const result = await client.operate(key, ops, {})
+
+ expect(result.bins).to.eql({ tags: { a: 'blue', nested: { d: 'orange', e: 'pink', f: 'white' } } })
+ })
+ })
+
+ describe('removeByValueRelRankRange', function () {
+ it('removes map item by value relative rank range', async function () {
+ const key = await createRecord({ tags: { a: 'yellow', b: 'green', c: 'blue' } })
+
+ const ops = [
+ exp.operations.write('tags',
+ exp.maps.removeByValueRelRankRange(
+ exp.binMap('tags'),
+ exp.int(1),
+ exp.int(-1),
+ exp.str('green')),
+ 0),
+ op.read('tags')
+ ]
+ const result = await client.operate(key, ops, {})
+
+ expect(result.bins).to.eql({ tags: { a: 'yellow', b: 'green' } })
+ })
+
+ it('removes map item by value relative rank range in a cdt context', async function () {
+ const key = await createRecord({ tags: { a: 'blue', nested: { d: 'orange', e: 'pink', f: 'white', g: 'black' } } })
+ const context = new Context().addMapKey('nested')
+ const ops = [
+ exp.operations.write('tags',
+ exp.maps.removeByValueRelRankRange(
+ exp.binMap('tags'),
+ exp.int(1),
+ exp.int(-1),
+ exp.str('pink'),
+ context),
+ 0),
+ op.read('tags')
+ ]
+ const result = await client.operate(key, ops, {})
+
+ expect(result.bins).to.eql({ tags: { a: 'blue', nested: { e: 'pink', f: 'white', g: 'black' } } })
+ })
+
+ it('removes inverted map item by value relative rank range', async function () {
+ const key = await createRecord({ tags: { a: 'yellow', b: 'green', c: 'blue' } })
+
+ const ops = [
+ exp.operations.write('tags',
+ exp.maps.removeByValueRelRankRange(
+ exp.binMap('tags'),
+ exp.int(1),
+ exp.int(-1),
+ exp.str('green'),
+ null,
+ maps.returnType.INVERTED),
+ 0),
+ op.read('tags')
+ ]
+ const result = await client.operate(key, ops, {})
+
+ expect(result.bins).to.eql({ tags: { c: 'blue' } })
+ })
+
+ it('removes inverted map item by value relative rank range in a cdt context', async function () {
+ const key = await createRecord({ tags: { a: 'blue', nested: { d: 'orange', e: 'pink', f: 'white', g: 'black' } } })
+ const context = new Context().addMapKey('nested')
+ const ops = [
+ exp.operations.write('tags',
+ exp.maps.removeByValueRelRankRange(
+ exp.binMap('tags'),
+ exp.int(1),
+ exp.int(-1),
+ exp.str('pink'),
+ context,
+ maps.returnType.INVERTED),
+ 0),
+ op.read('tags')
+ ]
+ const result = await client.operate(key, ops, {})
+
+ expect(result.bins).to.eql({ tags: { a: 'blue', nested: { d: 'orange' } } })
+ })
+ })
+
+ describe('removeByIndex', function () {
+ it('removes a map item by index', async function () {
+ const key = await createRecord({ tags: { a: 'blue', b: 'green', c: 'yellow' } })
+ const ops = [
+ exp.operations.write('tags',
+ exp.maps.removeByIndex(
+ exp.binMap('tags'),
+ exp.int(1)),
+ 0),
+ op.read('tags')
+ ]
+ let result = await client.operate(key, ops, {})
+ result = await client.get(key)
+ console.log(result)
+ expect(result.bins).to.eql({ tags: { a: 'blue', c: 'yellow' } })
+ })
+
+ it('removes a map item by index in a cdt context in a cdt context', async function () {
+ const key = await createRecord({ tags: { a: 'blue', nested: { d: 'orange', e: 'pink', f: 'white', g: 'black' } } })
+ const context = new Context().addMapKey('nested')
+ const ops = [
+ exp.operations.write('tags',
+ exp.maps.removeByIndex(
+ exp.binMap('tags'),
+ exp.int(1),
+ context),
+ 0),
+ op.read('tags')
+ ]
+ let result = await client.operate(key, ops, {})
+ result = await client.get(key)
+ console.log(result)
+ expect(result.bins).to.eql({ tags: { a: 'blue', nested: { d: 'orange', f: 'white', g: 'black' } } })
+ })
+ })
+
+ describe('removeByIndexRangeToEnd', function () {
+ it('removes a map item by index range to end', async function () {
+ const key = await createRecord({ tags: { a: 'blue', b: 'green', c: 'yellow' } })
+
+ const ops = [
+ exp.operations.write('tags',
+ exp.maps.removeByIndexRangeToEnd(
+ exp.binMap('tags'),
+ exp.int(1)),
+ 0),
+ op.read('tags')
+ ]
+ const result = await client.operate(key, ops, {})
+
+ expect(result.bins).to.eql({ tags: { a: 'blue' } })
+ })
+
+ it('removes a map item by index range to end in a cdt context in a cdt context', async function () {
+ const key = await createRecord({ tags: { a: 'blue', nested: { d: 'orange', e: 'pink', f: 'white', g: 'black' } } })
+ const context = new Context().addMapKey('nested')
+ const ops = [
+ exp.operations.write('tags',
+ exp.maps.removeByIndexRangeToEnd(
+ exp.binMap('tags'),
+ exp.int(1),
+ context),
+ 0),
+ op.read('tags')
+ ]
+ const result = await client.operate(key, ops, {})
+
+ expect(result.bins).to.eql({ tags: { a: 'blue', nested: { d: 'orange' } } })
+ })
+
+ it('removes an inverted map item by index range to end', async function () {
+ const key = await createRecord({ tags: { a: 'blue', b: 'green', c: 'yellow' } })
+
+ const ops = [
+ exp.operations.write('tags',
+ exp.maps.removeByIndexRangeToEnd(
+ exp.binMap('tags'),
+ exp.int(1),
+ null,
+ maps.returnType.INVERTED),
+ 0),
+ op.read('tags')
+ ]
+ const result = await client.operate(key, ops, {})
+
+ expect(result.bins).to.eql({ tags: { b: 'green', c: 'yellow' } })
+ })
+
+ it('removes an inverted map item by index range to end in a cdt context', async function () {
+ const key = await createRecord({ tags: { a: 'blue', nested: { d: 'orange', e: 'pink', f: 'white', g: 'black' } } })
+ const context = new Context().addMapKey('nested')
+ const ops = [
+ exp.operations.write('tags',
+ exp.maps.removeByIndexRangeToEnd(
+ exp.binMap('tags'),
+ exp.int(1),
+ context,
+ maps.returnType.INVERTED),
+ 0),
+ op.read('tags')
+ ]
+ const result = await client.operate(key, ops, {})
+
+ expect(result.bins).to.eql({ tags: { a: 'blue', nested: { e: 'pink', f: 'white', g: 'black' } } })
+ })
+ })
+
+ describe('removeByIndexRange', function () {
+ it('removes a map item by index range', async function () {
+ const key = await createRecord({ tags: { a: 'blue', b: 'green', c: 'yellow' } })
+
+ const ops = [
+ exp.operations.write('tags',
+ exp.maps.removeByIndexRange(
+ exp.binMap('tags'),
+ exp.int(2),
+ exp.int(0)),
+ 0),
+ op.read('tags')
+ ]
+ const result = await client.operate(key, ops, {})
+
+ expect(result.bins).to.eql({ tags: { c: 'yellow' } })
+ })
+
+ it('removes a map item by index range in a cdt context', async function () {
+ const key = await createRecord({ tags: { a: 'blue', nested: { d: 'orange', e: 'pink', f: 'white', g: 'black' } } })
+ const context = new Context().addMapKey('nested')
+ const ops = [
+ exp.operations.write('tags',
+ exp.maps.removeByIndexRange(
+ exp.binMap('tags'),
+ exp.int(2),
+ exp.int(0),
+ context),
+ 0),
+ op.read('tags')
+ ]
+ const result = await client.operate(key, ops, {})
+
+ expect(result.bins).to.eql({ tags: { a: 'blue', nested: { f: 'white', g: 'black' } } })
+ })
+
+ it('removes a inverted map item by index range', async function () {
+ const key = await createRecord({ tags: { a: 'blue', b: 'green', c: 'yellow' } })
+
+ const ops = [
+ exp.operations.write('tags',
+ exp.maps.removeByIndexRange(
+ exp.binMap('tags'),
+ exp.int(2),
+ exp.int(0),
+ null,
+ maps.returnType.INVERTED),
+ 0),
+ op.read('tags')
+ ]
+ const result = await client.operate(key, ops, {})
+
+ expect(result.bins).to.eql({ tags: { a: 'blue', b: 'green' } })
+ })
+
+ it('removes a inverted map item by index range in a cdt context', async function () {
+ const key = await createRecord({ tags: { a: 'blue', nested: { d: 'orange', e: 'pink', f: 'white', g: 'black' } } })
+ const context = new Context().addMapKey('nested')
+ const ops = [
+ exp.operations.write('tags',
+ exp.maps.removeByIndexRange(
+ exp.binMap('tags'),
+ exp.int(2),
+ exp.int(0),
+ context,
+ maps.returnType.INVERTED),
+ 0),
+ op.read('tags')
+ ]
+ const result = await client.operate(key, ops, {})
+
+ expect(result.bins).to.eql({ tags: { a: 'blue', nested: { d: 'orange', e: 'pink' } } })
+ })
+ })
+
+ describe('removeByRank', function () {
+ it('removes a map item by rank', async function () {
+ const key = await createRecord({ tags: { a: 'yellow', b: 'green', c: 'blue' } })
+
+ const ops = [
+ exp.operations.write('tags',
+ exp.maps.removeByRank(
+ exp.binMap('tags'),
+ exp.int(2)),
+ 0),
+ op.read('tags')
+ ]
+ const result = await client.operate(key, ops, {})
+
+ expect(result.bins).to.eql({ tags: { b: 'green', c: 'blue' } })
+ })
+
+ it('removes a map item by rank in a cdt context', async function () {
+ const key = await createRecord({ tags: { a: 'blue', nested: { d: 'orange', e: 'pink', f: 'white', g: 'black' } } })
+ const context = new Context().addMapKey('nested')
+ const ops = [
+ exp.operations.write('tags',
+ exp.maps.removeByRank(
+ exp.binMap('tags'),
+ exp.int(2),
+ context),
+ 0),
+ op.read('tags')
+ ]
+ const result = await client.operate(key, ops, {})
+
+ expect(result.bins).to.eql({ tags: { a: 'blue', nested: { d: 'orange', f: 'white', g: 'black' } } })
+ })
+ })
+
+ describe('removeByRankRangeToEnd', function () {
+ it('removes a map item by rank range to end', async function () {
+ const key = await createRecord({ tags: { a: 'yellow', b: 'green', c: 'blue' } })
+
+ const ops = [
+ exp.operations.write('tags',
+ exp.maps.removeByRankRangeToEnd(
+ exp.binMap('tags'),
+ exp.int(1)),
+ 0),
+ op.read('tags')
+ ]
+ const result = await client.operate(key, ops, {})
+
+ expect(result.bins).to.eql({ tags: { c: 'blue' } })
+ })
+
+ it('removes a map item by rank range to end in a cdt context', async function () {
+ const key = await createRecord({ tags: { a: 'blue', nested: { d: 'orange', e: 'pink', f: 'white', g: 'black' } } })
+ const context = new Context().addMapKey('nested')
+ const ops = [
+ exp.operations.write('tags',
+ exp.maps.removeByRankRangeToEnd(
+ exp.binMap('tags'),
+ exp.int(1),
+ context),
+ 0),
+ op.read('tags')
+ ]
+ const result = await client.operate(key, ops, {})
+
+ expect(result.bins).to.eql({ tags: { a: 'blue', nested: { g: 'black' } } })
+ })
+
+ it('removes an inverted map item by rank range to end', async function () {
+ const key = await createRecord({ tags: { a: 'yellow', b: 'green', c: 'blue' } })
+
+ const ops = [
+ exp.operations.write('tags',
+ exp.maps.removeByRankRangeToEnd(
+ exp.binMap('tags'),
+ exp.int(1),
+ null,
+ maps.returnType.INVERTED),
+ 0),
+ op.read('tags')
+ ]
+ const result = await client.operate(key, ops, {})
+
+ expect(result.bins).to.eql({ tags: { a: 'yellow', b: 'green' } })
+ })
+
+ it('removes an inverted map item by rank range to end in a cdt context', async function () {
+ const key = await createRecord({ tags: { a: 'blue', nested: { d: 'orange', e: 'pink', f: 'white', g: 'black' } } })
+ const context = new Context().addMapKey('nested')
+ const ops = [
+ exp.operations.write('tags',
+ exp.maps.removeByRankRangeToEnd(
+ exp.binMap('tags'),
+ exp.int(1),
+ context,
+ maps.returnType.INVERTED),
+ 0),
+ op.read('tags')
+ ]
+ const result = await client.operate(key, ops, {})
+
+ expect(result.bins).to.eql({ tags: { a: 'blue', nested: { d: 'orange', e: 'pink', f: 'white' } } })
+ })
+ })
+
+ describe('removeByRankRange', function () {
+ it('removes a map item by rank range', async function () {
+ const key = await createRecord({ tags: { a: 'yellow', b: 'green', c: 'blue' } })
+
+ const ops = [
+ exp.operations.write('tags',
+ exp.maps.removeByRankRange(
+ exp.binMap('tags'),
+ exp.int(2),
+ exp.int(0)),
+ 0),
+ op.read('tags')
+ ]
+ const result = await client.operate(key, ops, {})
+
+ expect(result.bins).to.eql({ tags: { a: 'yellow' } })
+ })
+
+ it('removes a map item by rank range in a cdt context', async function () {
+ const key = await createRecord({ tags: { a: 'blue', nested: { d: 'orange', e: 'pink', f: 'white', g: 'black' } } })
+ const context = new Context().addMapKey('nested')
+ const ops = [
+ exp.operations.write('tags',
+ exp.maps.removeByRankRange(
+ exp.binMap('tags'),
+ exp.int(2),
+ exp.int(0),
+ context),
+ 0),
+ op.read('tags')
+ ]
+ const result = await client.operate(key, ops, {})
+
+ expect(result.bins).to.eql({ tags: { a: 'blue', nested: { e: 'pink', f: 'white' } } })
+ })
+
+ it('removes an inverted map item by rank range', async function () {
+ const key = await createRecord({ tags: { a: 'yellow', b: 'green', c: 'blue' } })
+
+ const ops = [
+ exp.operations.write('tags',
+ exp.maps.removeByRankRange(
+ exp.binMap('tags'),
+ exp.int(2),
+ exp.int(0),
+ null,
+ maps.returnType.INVERTED),
+ 0),
+ op.read('tags')
+ ]
+ const result = await client.operate(key, ops, {})
+
+ expect(result.bins).to.eql({ tags: { b: 'green', c: 'blue' } })
+ })
+
+ it('removes an inverted map item by rank range in a cdt context', async function () {
+ const key = await createRecord({ tags: { a: 'blue', nested: { d: 'orange', e: 'pink', f: 'white', g: 'black' } } })
+ const context = new Context().addMapKey('nested')
+ const ops = [
+ exp.operations.write('tags',
+ exp.maps.removeByRankRange(
+ exp.binMap('tags'),
+ exp.int(2),
+ exp.int(0),
+ context,
+ maps.returnType.INVERTED),
+ 0),
+ op.read('tags')
+ ]
+ const result = await client.operate(key, ops, {})
+
+ expect(result.bins).to.eql({ tags: { a: 'blue', nested: { d: 'orange', g: 'black' } } })
+ })
+ })
+
describe('getByIndex', function () {
it('selects item identified by index', async function () {
const key = await createRecord({ tags: { a: 'blue', b: 'green', c: 'yellow' } })
@@ -264,6 +1225,21 @@ describe('Aerospike.exp_operations', function () {
})
})
+ describe('getByKeyList', function () {
+ it('matches the count of the matched map values', async function () {
+ const key = await createRecord({ tags: { a: 'blue', b: 'green', c: 'yellow' } })
+ await testNoMatch(key, exp.eq(exp.maps.getByKeyList(exp.binMap('tags'), exp.list(['a', 'b']), maps.returnType.COUNT), exp.int(1)))
+ await testMatch(key, exp.eq(exp.maps.getByKeyList(exp.binMap('tags'), exp.list(['a', 'b']), maps.returnType.COUNT), exp.int(2)))
+ })
+
+ it('matches the count of the matched map values of a nested map', async function () {
+ const key = await createRecord({ tags: { a: 'blue', b: 'green', c: 'yellow', nested: { d: 'orange', e: 'pink', f: 'white', g: 'black' } } })
+ const context = new Context().addMapKey('nested')
+ await testNoMatch(key, exp.eq(exp.maps.getByKeyList(exp.binMap('tags'), exp.list(['d', 'e']), maps.returnType.COUNT, context), exp.int(1)))
+ await testMatch(key, exp.eq(exp.maps.getByKeyList(exp.binMap('tags'), exp.list(['d', 'e']), maps.returnType.COUNT, context), exp.int(2)))
+ })
+ })
+
describe('getByKeyRange', function () {
it('matches the count of the matched map values', async function () {
const key = await createRecord({ tags: { a: 'blue', b: 'green', c: 'yellow' } })
@@ -293,7 +1269,7 @@ describe('Aerospike.exp_operations', function () {
await testMatch(key, exp.eq(exp.maps.getByKeyRelIndexRange(exp.binMap('tags'), exp.int(3), exp.int(0), exp.str('g'), maps.returnType.COUNT, context), exp.int(2)))
})
})
- /*
+
describe('getByKeyRelIndexRangeToEnd', function () {
it('matches the count of the matched map values', async function () {
const key = await createRecord({ tags: { a: 'blue', b: 'green', d: 'yellow' } })
@@ -304,11 +1280,11 @@ describe('Aerospike.exp_operations', function () {
it('matches the count of the matched map values of a nested map', async function () {
const key = await createRecord({ tags: { a: 'blue', b: 'green', c: 'yellow', nested: { d: 'orange', e: 'pink', g: 'white', h: 'black' } } })
const context = new Context().addMapKey('nested')
- await testNoMatch(key, exp.eq(exp.maps.getByKeyRelIndexRangeToEnd(exp.binMap('tags'), exp.int(0), exp.str('e'), maps.returnType.COUNT, context), exp.int(2)))
- await testMatch(key, exp.eq(exp.maps.getByKeyRelIndexRangeToEnd(exp.binMap('tags'), exp.int(0), exp.str('e'), maps.returnType.COUNT, context), exp.int(3)))
+ await testNoMatch(key, exp.eq(exp.maps.getByKeyRelIndexRangeToEnd(exp.binMap('tags'), exp.int(0), exp.str('e'), maps.returnType.COUNT, context), exp.int(2)))
+ await testMatch(key, exp.eq(exp.maps.getByKeyRelIndexRangeToEnd(exp.binMap('tags'), exp.int(0), exp.str('e'), maps.returnType.COUNT, context), exp.int(3)))
})
})
-*/
+
describe('getByRank', function () {
it('selects map item identified by rank', async function () {
const key = await createRecord({ tags: { a: 'blue', b: 'green', d: 5, c: 'yellow' } })
@@ -472,24 +1448,22 @@ describe('Aerospike.exp_operations', function () {
})
})
- /*
describe('getByValueList', function () {
it('matches the count of the matched values', async function () {
const key = await createRecord({ tags: { a: 'blue', b: 'green', c: 'yellow' } })
- await testNoMatch(key, exp.eq(exp.maps.getByValueList(exp.binMap('tags'), exp.list([exp.str('green'), exp.str('yellow')]), maps.returnType.COUNT), exp.int(3)))
- await testMatch(key, exp.eq(exp.maps.getByValueList(exp.binMap('tags'), exp.list([exp.str('green'), exp.str('yellow')]), maps.returnType.COUNT), exp.int(2)))
+ await testNoMatch(key, exp.eq(exp.maps.getByValueList(exp.binMap('tags'), exp.list(['green', 'yellow']), maps.returnType.COUNT), exp.int(3)))
+ await testMatch(key, exp.eq(exp.maps.getByValueList(exp.binMap('tags'), exp.list(['green', 'yellow']), maps.returnType.COUNT), exp.int(2)))
})
it('matches the count of the matched values', async function () {
const key = await createRecord({ tags: { a: 'blue', b: 'green', c: 'yellow', nested: { d: 'orange', e: 'pink', f: 'white', g: 'black' } } })
const context = new Context().addMapKey('nested')
- await testNoMatch(key, exp.eq(exp.maps.getByValueList(exp.binMap('tags'), exp.list([exp.str('orange'), exp.str('white')]), maps.returnType.COUNT, context), exp.int(3)))
- await testMatch(key, exp.eq(exp.maps.getByValueList(exp.binMap('tags'), exp.list([exp.str('orange'), exp.str('white')]), maps.returnType.COUNT, context), exp.int(2)))
+ await testNoMatch(key, exp.eq(exp.maps.getByValueList(exp.binMap('tags'), exp.list(['orange', 'white']), maps.returnType.COUNT, context), exp.int(3)))
+ await testMatch(key, exp.eq(exp.maps.getByValueList(exp.binMap('tags'), exp.list(['orange', 'white']), maps.returnType.COUNT, context), exp.int(2)))
})
})
-*/
describe('getByValueRange', function () {
it('matches the count of the matched range of map values', async function () {
diff --git a/test/maps.js b/test/maps.js
index 40f613a73..2455db4eb 100644
--- a/test/maps.js
+++ b/test/maps.js
@@ -253,6 +253,16 @@ describe('client.operate() - CDT Map operations', function () {
.then(cleanup())
})
+ it('adds each item from the Map class to the map and returns the size of the map', function () {
+ console.log(maps.putItems('map', new Map([['e', 150], ['d', 100], ['c', 99]])))
+ return initState()
+ .then(createRecord({ map: { a: 1, b: 2, c: 3 } }))
+ .then(operate(maps.putItems('map', new Map([['e', 150], ['d', 100], ['c', 99]]))))
+ .then(assertResultEql({ map: 5 }))
+ .then(assertRecordEql({ map: { a: 1, b: 2, c: 99, d: 100, e: 150 } }))
+ .then(cleanup())
+ })
+
context('with update-only flag', function () {
helper.skipUnlessVersion('>= 4.3.0', this)
diff --git a/test/put.js b/test/put.js
index 01ec814dd..3dab71b5c 100644
--- a/test/put.js
+++ b/test/put.js
@@ -240,11 +240,12 @@ describe('client.put()', function () {
putGetVerify(record, expected, done)
})
- it.skip('writes bin with Map value as map and reads it back', function (done) {
+ it('writes bin with Map value as map and reads it back as an ordered object', function (done) {
const record = {
- map: new Map([['a', 1], ['b', 'foo'], ['c', 1.23],
+ map: new Map([['g', [1, 2, 3]], ['h', { a: 1, b: 2 }], ['j', new Map([['b', 'foo'], ['a', 1]])],
['d', new Double(3.14)], ['e', Buffer.from('bar')], ['f', GeoJSON.Point(103.8, 1.283)],
- ['g', [1, 2, 3]], ['h', { a: 1, b: 2 }]])
+ ['a', 1], ['b', 'foo'], ['c', 1.23]]
+ )
}
const expected = {
map: {
@@ -255,7 +256,36 @@ describe('client.put()', function () {
e: Buffer.from('bar'),
f: '{"type":"Point","coordinates":[103.8,1.283]}',
g: [1, 2, 3],
- h: { a: 1, b: 2 }
+ h: { a: 1, b: 2 },
+ j: { a: 1, b: 'foo' }
+ }
+ }
+ putGetVerify(record, expected, done)
+ })
+
+ it('writes bin with the Bin class and reads it back as an object', function (done) {
+ const record = new Aerospike.Bin('map', {
+ g: [1, 2, 3],
+ h: { a: 1, b: 2 },
+ j: new Map([['b', 'foo'], ['a', 1]]),
+ e: Buffer.from('bar'),
+ f: '{"type":"Point","coordinates":[103.8,1.283]}',
+ a: 1,
+ b: 'foo',
+ c: 1.23,
+ d: 3.14
+ })
+ const expected = {
+ map: {
+ a: 1,
+ b: 'foo',
+ c: 1.23,
+ d: 3.14,
+ e: Buffer.from('bar'),
+ f: '{"type":"Point","coordinates":[103.8,1.283]}',
+ g: [1, 2, 3],
+ h: { a: 1, b: 2 },
+ j: { a: 1, b: 'foo' }
}
}
putGetVerify(record, expected, done)
diff --git a/tsconfig.json b/tsconfig.json
index 8684691ad..9cb2ada86 100644
--- a/tsconfig.json
+++ b/tsconfig.json
@@ -10,6 +10,9 @@
"es2020",
"dom"
],
+ "allowJs": true,
+ "declaration": true,
+ "emitDeclarationOnly": true,
"removeComments": true,
"alwaysStrict": true,
"pretty": false,
@@ -25,4 +28,4 @@
"skipLibCheck": true,
"baseUrl": ".",
}
-}
+}
\ No newline at end of file
diff --git a/typings/autoIndex.d.ts b/typings/autoIndex.d.ts
deleted file mode 100644
index 3fc72ccea..000000000
--- a/typings/autoIndex.d.ts
+++ /dev/null
@@ -1,1709 +0,0 @@
-declare module 'aerospike/aerospike' {
- export var filter: typeof import("aerospike/filter");
- export var exp: typeof import("aerospike/exp");
- export namespace regex {
- const BASIC: number;
- const EXTENDED: number;
- const ICASE: number;
- const NEWLINE: number;
- }
- export type regex = number;
- export var info: typeof import("aerospike/info");
- export var lists: typeof import("aerospike/lists");
- export var hll: typeof import("aerospike/hll");
- export var maps: typeof import("aerospike/maps");
- export namespace cdt {
- const Context: typeof import("aerospike/cdt_context");
- }
- export var bitwise: typeof import("aerospike/bitwise");
- export var operations: typeof import("aerospike/operations");
- export var policy: typeof import("aerospike/policy");
- export var BasePolicy: typeof import("aerospike/policies/base_policy");
- export var ApplyPolicy: typeof import("aerospike/policies/apply_policy");
- export var BatchPolicy: typeof import("aerospike/policies/batch_policy");
- export var OperatePolicy: typeof import("aerospike/policies/operate_policy");
- export var QueryPolicy: typeof import("aerospike/policies/query_policy");
- export var ReadPolicy: typeof import("aerospike/policies/read_policy");
- export var RemovePolicy: typeof import("aerospike/policies/remove_policy");
- export var ScanPolicy: typeof import("aerospike/policies/scan_policy");
- export var WritePolicy: typeof import("aerospike/policies/write_policy");
- export var BatchApplyPolicy: typeof import("aerospike/policies/batch_apply_policy");
- export var BatchReadPolicy: typeof import("aerospike/policies/batch_read_policy");
- export var BatchRemovePolicy: typeof import("aerospike/policies/batch_remove_policy");
- export var BatchWritePolicy: typeof import("aerospike/policies/batch_write_policy");
- export var CommandQueuePolicy: typeof import("aerospike/policies/command_queue_policy");
- export var InfoPolicy: typeof import("aerospike/policies/info_policy");
- export var ListPolicy: typeof import("aerospike/policies/list_policy");
- export var MapPolicy: typeof import("aerospike/policies/map_policy");
- export var status: typeof import("aerospike/status");
- export var features: typeof import("aerospike/features");
- export { AerospikeError };
- export var Client: typeof import("aerospike/client");
- export var Config: typeof import("aerospike/config");
- export var Double: typeof import("aerospike/double");
- export var GeoJSON: typeof import("aerospike/geojson");
- export var Key: typeof import("aerospike/key");
- export var Record: typeof import("aerospike/record");
- export type auth = number;
- export type language = number;
- export type log = number;
- export type ttl = number;
- export type jobStatus = number;
- export type indexDataType = number;
- export type indexType = number;
- export var print: typeof import("aerospike/utils").print;
- export var releaseEventLoop: typeof EventLoop.releaseEventLoop;
- export function client(config?: any): import("aerospike/client");
- export function connect(config?: any, callback?: connectCallback | undefined): Promise | null;
- export function setDefaultLogging(logInfo: any): void;
- export function setupGlobalCommandQueue(policy: CommandQueuePolicy): void;
- export var batchType: {
- BATCH_READ: any;
- BATCH_WRITE: any;
- BATCH_APPLY: any;
- BATCH_REMOVE: any;
- };
- import AerospikeError = require("./error");
- import EventLoop = require("./event_loop");
-
-}
-declare module 'aerospike/batch_type' {
- export const BATCH_READ: any;
- export const BATCH_WRITE: any;
- export const BATCH_APPLY: any;
- export const BATCH_REMOVE: any;
-
-}
-declare module 'aerospike/bigint' {
- export var BigInt: any;
- export var bigIntSupported: boolean;
- export function isInt64(value: any): boolean;
-
-}
-declare module 'aerospike/bitwise' {
- export function resize(bin: string, size: number, flags?: number | undefined): BitwiseOperation;
- export function insert(bin: string, byteOffset: any, value: Buffer): BitwiseOperation;
- export function remove(bin: string, byteOffset: number, byteSize: number): BitwiseOperation;
- export function set(bin: string, bitOffset: number, bitSize: number, value: number | Buffer): BitwiseOperation;
- export function or(bin: string, bitOffset: number, bitSize: number, value: Buffer): BitwiseOperation;
- export function xor(bin: string, bitOffset: number, bitSize: number, value: Buffer): BitwiseOperation;
- export function and(bin: string, bitOffset: number, bitSize: number, value: Buffer): BitwiseOperation;
- export function not(bin: string, bitOffset: number, bitSize: number): BitwiseOperation;
- export function lshift(bin: string, bitOffset: number, bitSize: number, shift: number): BitwiseOperation;
- export function rshift(bin: string, bitOffset: number, bitSize: number, shift: number): BitwiseOperation;
- export function add(bin: string, bitOffset: number, bitSize: number, value: number, sign: boolean): OverflowableBitwiseOp;
- export function subtract(bin: string, bitOffset: number, bitSize: number, value: number, sign: boolean): OverflowableBitwiseOp;
- export function get(bin: string, bitOffset: number, bitSize: number): BitwiseOperation;
- export function getInt(bin: string, bitOffset: number, bitSize: number, sign: boolean): BitwiseOperation;
- export function lscan(bin: string, bitOffset: number, bitSize: number, value: boolean): BitwiseOperation;
- export function rscan(bin: string, bitOffset: number, bitSize: number, value: boolean): BitwiseOperation;
- class BitwiseOperation extends Operation {
- withPolicy(policy: BitwisePolicy): BitwiseOperation;
- policy: any;
- }
- class OverflowableBitwiseOp extends BitwiseOperation {
- overflowAction: any;
- onOverflow(action: number): OverflowableBitwiseOp;
- }
- import Operation_1 = require("./operations");
- import Operation = Operation_1.Operation;
- export {};
-
-}
-declare module 'aerospike/cdt_context' {
- export = CdtContext;
- class CdtContext {
- static getContextType(ctx: CdtContext, type: number): number;
- items: any[];
- addListIndex(index: number): CdtContext;
- addListIndexCreate(index: number, order: number, pad: boolean): CdtContext;
- addListRank(rank: number): CdtContext;
- addListValue(value: any): CdtContext;
- addMapIndex(index: number): CdtContext;
- addMapRank(rank: number): CdtContext;
- addMapKey(key: any): CdtContext;
- addMapKeyCreate(key: any, order: number): CdtContext;
- addMapValue(value: any): CdtContext;
- private add;
- }
-
-}
-declare module 'aerospike/client' {
- export = Client;
- function Client(config: Config): void;
- class Client {
- constructor(config: Config);
- config: Config;
- private as_client;
- private connected;
- captureStackTraces: boolean;
- private asExec;
- getNodes(): Array<{
- name: string;
- address: string;
- }>;
- addSeedHost(hostname: string, port?: number | undefined): void;
- removeSeedHost(hostname: string, port?: number | undefined): void;
- batchExists(keys: Key[], policy?: any, callback?: batchRecordsCallback | undefined): Promise | null;
- batchGet(keys: Key[], policy?: any, callback?: batchRecordsCallback | undefined): Promise | null;
- batchRead(records: {
- type: number;
- key: Key;
- bins?: string[];
- readAllBins?: boolean;
- }, policy?: any, callback?: batchRecordsCallback | undefined): Promise | null;
- batchWrite(records: {
- type: number;
- key: Key;
- }, policy?: any, callback?: batchRecordsCallback | undefined): Promise | null;
- batchApply(records: {
- type: number;
- key: Key;
- }, udf: object[], batchPolicy?: any, batchApplyPolicy?: any, callback?: batchRecordsCallback | undefined): Promise | null;
- batchRemove(records: {
- type: number;
- key: Key;
- }, batchPolicy?: any, batchRemovePolicy?: any, callback?: batchRecordsCallback | undefined): Promise | null;
- batchSelect(keys: Key[], bins: string[], policy?: any, callback?: batchRecordsCallback | undefined): Promise | null;
- close(releaseEventLoop?: boolean | undefined): void;
- connect(callback?: connectCallback | undefined): Promise | null;
- createIndex(options: {
- ns: string;
- set: string;
- bin: string;
- index: string;
- type?: any;
- datatype: any;
- }, policy?: any, callback?: jobCallback | undefined): Promise | null;
- createIntegerIndex(options: {
- ns: string;
- set: string;
- bin: string;
- index: string;
- type?: any;
- }, policy?: any, callback?: jobCallback | undefined): Promise | null;
- createStringIndex(options: {
- ns: string;
- set: string;
- bin: string;
- index: string;
- type?: any;
- }, policy?: any, callback?: jobCallback | undefined): Promise | null;
- createGeo2DSphereIndex(options: {
- ns: string;
- set: string;
- bin: string;
- index: string;
- type?: any;
- }, policy?: any, callback?: jobCallback | undefined): Promise | null;
- apply(key: Key, udfArgs: {
- module: string;
- funcname: string;
- args: Array<(number | string)>;
- }, policy?: any, callback?: valueCallback | undefined): Promise | null;
- exists(key: Key, policy?: any, callback?: valueCallback | undefined): Promise | null;
- get(key: Key, policy?: any, callback?: recordCallback | undefined): Promise | null;
- indexRemove(namespace: string, index: string, policy?: any, callback?: doneCallback | undefined): Promise | null;
- info(request: string | null, host: {
- addr: string;
- port?: number | undefined;
- }, policy?: any, callback?: infoCallback | undefined): any;
- infoAny(request?: string | undefined, policy?: any, callback?: infoCallback | undefined): any;
- infoAll(request?: string | undefined, policy?: any, callback?: infoCallback | undefined): any;
- infoNode(request: string | null, node: {
- name: string;
- }, policy?: any, callback?: infoCallback | undefined): any;
- isConnected(checkTenderErrors?: boolean | undefined): boolean;
- operate(key: Key, operations: any, metadata?: any, policy?: any, callback?: recordCallback | undefined): any;
- incr: any;
- put(key: Key, bins: object, meta?: object, policy?: any, callback?: writeCallback | undefined): any;
- query(ns: string, set: string, options?: object): Query;
- remove(key: Key, policy?: any, callback?: writeCallback | undefined): any;
- scan(ns: string, set: string, options?: object): Scan;
- select(key: Key, bins: string[], policy?: any, callback?: recordCallback | undefined): any;
- truncate(ns: string, set: string, beforeNanos: any, policy?: any, callback?: doneCallback | undefined): any;
- udfRegister(udfPath: any, udfType?: number | undefined, policy?: any, callback?: jobCallback | undefined): any;
- stats(): ClientStats;
- udfRemove(udfModule: string, policy?: any, callback?: jobCallback | undefined): any;
- updateLogging(logConfig: any): void;
- }
- import Config = require("./config");
- import Query = require("./query");
- import Scan = require("./scan");
-
-}
-declare module 'aerospike/commands/batch_command' {
- function _exports(asCommand: any): {
- new (): {
- convertResult(results: any): any;
- };
- };
- export = _exports;
-
-}
-declare module 'aerospike/commands/command' {
- const _exports: Class;
- export = _exports;
-
-}
-declare module 'aerospike/commands/connect_command' {
- function _exports(asCommand: any): {
- new (client: any, callback: any): {
- ensureConnected: boolean;
- };
- };
- export = _exports;
-
-}
-declare module 'aerospike/commands/exists_command' {
- function _exports(asCommand: any): {
- new (): {
- convertResponse(error: any): any[];
- };
- };
- export = _exports;
-
-}
-declare module 'aerospike/commands/index' {
- class ApplyCommand {
- }
- const BatchExistsCommand_base: {
- new (): {
- convertResult(results: any): any;
- };
- };
- class BatchExistsCommand extends BatchExistsCommand_base {
- }
- const BatchGetCommand_base: {
- new (): {
- convertResult(results: any): any;
- };
- };
- class BatchGetCommand extends BatchGetCommand_base {
- }
- const BatchReadCommand_base: {
- new (): {
- convertResult(results: any): any;
- };
- };
- class BatchReadCommand extends BatchReadCommand_base {
- }
- const BatchWriteCommand_base: {
- new (): {
- convertResult(results: any): any;
- };
- };
- class BatchWriteCommand extends BatchWriteCommand_base {
- }
- const BatchApplyCommand_base: {
- new (): {
- convertResult(results: any): any;
- };
- };
- class BatchApplyCommand extends BatchApplyCommand_base {
- }
- const BatchRemoveCommand_base: {
- new (): {
- convertResult(results: any): any;
- };
- };
- class BatchRemoveCommand extends BatchRemoveCommand_base {
- }
- const BatchSelectCommand_base: {
- new (): {
- convertResult(results: any): any;
- };
- };
- class BatchSelectCommand extends BatchSelectCommand_base {
- }
- const ConnectCommand_base: {
- new (client: any, callback: any): {
- ensureConnected: boolean;
- };
- };
- class ConnectCommand extends ConnectCommand_base {
- }
- const ExistsCommand_base: {
- new (): {
- convertResponse(error: any): any[];
- };
- };
- class ExistsCommand extends ExistsCommand_base {
- }
- const GetCommand_base: {
- new (client: any, key: any, args: any, callback: any): {
- key: any;
- convertResult(bins: any, metadata: any): any;
- };
- };
- class GetCommand extends GetCommand_base {
- }
- class IndexCreateCommand {
- }
- class IndexRemoveCommand {
- }
- class InfoAnyCommand {
- }
- class InfoForeachCommand {
- }
- class InfoHostCommand {
- }
- class InfoNodeCommand {
- }
- class JobInfoCommand {
- }
- const OperateCommand_base: {
- new (client: any, key: any, args: any, callback: any): {
- key: any;
- convertResult(bins: any, metadata: any): any;
- };
- };
- class OperateCommand extends OperateCommand_base {
- }
- const PutCommand_base: {
- new (client: any, key: any, args: any, callback: any): {
- key: any;
- convertResult(): any;
- };
- };
- class PutCommand extends PutCommand_base {
- }
- const QueryCommand_base: {
- new (stream: any, args: any): {
- stream: any;
- callback(error: any, record: any): boolean;
- convertResult(bins: any, meta: any, asKey: any): any;
- };
- };
- class QueryCommand extends QueryCommand_base {
- }
- class QueryApplyCommand {
- }
- const QueryBackgroundCommand_base: {
- new (client: any, ns: any, set: any, queryObj: any, policy: any, queryID: any, callback: any): {
- client: any;
- queryID: any;
- queryObj: any;
- convertResult(): import("aerospike/job");
- };
- };
- class QueryBackgroundCommand extends QueryBackgroundCommand_base {
- }
- const QueryOperateCommand_base: {
- new (client: any, ns: any, set: any, queryObj: any, policy: any, queryID: any, callback: any): {
- client: any;
- queryID: any;
- queryObj: any;
- convertResult(): import("aerospike/job");
- };
- };
- class QueryOperateCommand extends QueryOperateCommand_base {
- }
- const QueryForeachCommand_base: {
- new (stream: any, args: any): {
- stream: any;
- callback(error: any, record: any): boolean;
- convertResult(bins: any, meta: any, asKey: any): any;
- };
- };
- class QueryForeachCommand extends QueryForeachCommand_base {
- }
- const RemoveCommand_base: {
- new (client: any, key: any, args: any, callback: any): {
- key: any;
- convertResult(): any;
- };
- };
- class RemoveCommand extends RemoveCommand_base {
- }
- const ScanCommand_base: {
- new (stream: any, args: any): {
- stream: any;
- callback(error: any, record: any): boolean;
- convertResult(bins: any, meta: any, asKey: any): any;
- };
- };
- class ScanCommand extends ScanCommand_base {
- }
- const ScanBackgroundCommand_base: {
- new (client: any, ns: any, set: any, queryObj: any, policy: any, queryID: any, callback: any): {
- client: any;
- queryID: any;
- queryObj: any;
- convertResult(): import("aerospike/job");
- };
- };
- class ScanBackgroundCommand extends ScanBackgroundCommand_base {
- }
- const ScanOperateCommand_base: {
- new (client: any, ns: any, set: any, queryObj: any, policy: any, queryID: any, callback: any): {
- client: any;
- queryID: any;
- queryObj: any;
- convertResult(): import("aerospike/job");
- };
- };
- class ScanOperateCommand extends ScanOperateCommand_base {
- }
- const SelectCommand_base: {
- new (client: any, key: any, args: any, callback: any): {
- key: any;
- convertResult(bins: any, metadata: any): any;
- };
- };
- class SelectCommand extends SelectCommand_base {
- }
- class TruncateCommand {
- }
- class UdfRegisterCommand {
- }
- class UdfRemoveCommand {
- }
- export { ApplyCommand as Apply, BatchExistsCommand as BatchExists, BatchGetCommand as BatchGet, BatchReadCommand as BatchRead, BatchWriteCommand as BatchWrite, BatchApplyCommand as BatchApply, BatchRemoveCommand as BatchRemove, BatchSelectCommand as BatchSelect, ConnectCommand as Connect, ExistsCommand as Exists, GetCommand as Get, IndexCreateCommand as IndexCreate, IndexRemoveCommand as IndexRemove, InfoAnyCommand as InfoAny, InfoForeachCommand as InfoForeach, InfoHostCommand as InfoHost, InfoNodeCommand as InfoNode, JobInfoCommand as JobInfo, OperateCommand as Operate, PutCommand as Put, QueryCommand as Query, QueryApplyCommand as QueryApply, QueryBackgroundCommand as QueryBackground, QueryOperateCommand as QueryOperate, QueryForeachCommand as QueryForeach, RemoveCommand as Remove, ScanCommand as Scan, ScanBackgroundCommand as ScanBackground, ScanOperateCommand as ScanOperate, SelectCommand as Select, TruncateCommand as Truncate, UdfRegisterCommand as UdfRegister, UdfRemoveCommand as UdfRemove };
-
-}
-declare module 'aerospike/commands/query_background_command' {
- function _exports(asCommand: any): {
- new (client: any, ns: any, set: any, queryObj: any, policy: any, queryID: any, callback: any): {
- client: any;
- queryID: any;
- queryObj: any;
- convertResult(): Job;
- };
- };
- export = _exports;
- import Job = require("../job");
-
-}
-declare module 'aerospike/commands/read_record_command' {
- function _exports(asCommand: any): {
- new (client: any, key: any, args: any, callback: any): {
- key: any;
- convertResult(bins: any, metadata: any): any;
- };
- };
- export = _exports;
-
-}
-declare module 'aerospike/commands/stream_command' {
- function _exports(asCommand: any): {
- new (stream: any, args: any): {
- stream: any;
- callback(error: any, record: any): boolean;
- convertResult(bins: any, meta: any, asKey: any): any;
- };
- };
- export = _exports;
-
-}
-declare module 'aerospike/commands/write_record_command' {
- function _exports(asCommand: any): {
- new (client: any, key: any, args: any, callback: any): {
- key: any;
- convertResult(): any;
- };
- };
- export = _exports;
-
-}
-declare module 'aerospike/config' {
- export = Config;
- class Config {
- constructor(config?: any);
- user: any;
- password: any;
- authMode: any;
- clusterName: string;
- port: any;
- tls: any;
- hosts: (Host[] | string);
- policies: Policies;
- log: any;
- connTimeoutMs: any;
- loginTimeoutMs: any;
- maxSocketIdle: any;
- tenderInterval: any;
- maxConnsPerNode: any;
- minConnsPerNode: any;
- modlua: any;
- sharedMemory: any;
- useAlternateAccessAddress: boolean;
- rackAware: boolean;
- rackId: any;
- setDefaultPolicies(policies: any): void;
- private [inspect];
- }
- const inspect: unique symbol;
-
-}
-declare module 'aerospike/double' {
- export = Double;
- function Double(value: number): void;
- class Double {
- constructor(value: number);
- Double: number;
- value(): number;
- }
-
-}
-declare module 'aerospike/error' {
- export = AerospikeError;
- class AerospikeError extends Error {
- private static fromASError;
- private static copyASErrorProperties;
- private static formatMessage;
- private constructor();
- code: number;
- command: any | null;
- func: string | null;
- file: string | null;
- line: number | null;
- inDoubt: boolean;
- private setStackTrace;
- isServerError(): boolean;
- get client(): any;
- }
-
-}
-declare module 'aerospike/event_loop' {
- export function releaseEventLoop(): void;
- export function registerASEventLoop(): void;
- export function referenceEventLoop(): void;
- export function unreferenceEventLoop(): void;
- export function setCommandQueuePolicy(policy: any): void;
-
-}
-declare module 'aerospike/exp' {
- export function bool(value: any): {
- [x: number]: any;
- op: any;
- }[];
- export function int(value: any): {
- [x: number]: any;
- op: any;
- }[];
- export function uint(value: any): {
- [x: number]: any;
- op: any;
- }[];
- export function float(value: any): {
- [x: number]: any;
- op: any;
- }[];
- export function str(value: any): {
- [x: number]: any;
- op: any;
- }[];
- export function bytes(value: any, size: any): {
- [x: number]: any;
- op: any;
- }[];
- export function geo(value: any): {
- [x: number]: any;
- op: any;
- }[];
- export function nil(): {
- op: any;
- value: null;
- }[];
- export function keyInt(): {
- [x: number]: any;
- op: any;
- }[];
- export function keyStr(): {
- [x: number]: any;
- op: any;
- }[];
- export function keyBlob(): {
- [x: number]: any;
- op: any;
- }[];
- export function keyExist(): AerospikeExp;
- export function binBool(binName: any): {
- [x: number]: any;
- op: any;
- }[];
- export function binInt(binName: any): {
- [x: number]: any;
- op: any;
- }[];
- export function binFloat(binName: any): {
- [x: number]: any;
- op: any;
- }[];
- export function binStr(binName: any): {
- [x: number]: any;
- op: any;
- }[];
- export function binBlob(binName: any): {
- [x: number]: any;
- op: any;
- }[];
- export function binGeo(binName: any): {
- [x: number]: any;
- op: any;
- }[];
- export function binList(binName: any): {
- [x: number]: any;
- op: any;
- }[];
- export function binMap(binName: any): {
- [x: number]: any;
- op: any;
- }[];
- export function binHll(binName: any): {
- [x: number]: any;
- op: any;
- }[];
- export function binType(binName: any): ({
- op: any;
- strVal: any;
- } | {
- op: any;
- count: number;
- })[];
- export function binExists(binName: string): boolean;
- export function setName(): {
- op: any;
- count: number;
- }[];
- export function deviceSize(): {
- op: any;
- count: number;
- }[];
- export function lastUpdate(): {
- op: any;
- count: number;
- }[];
- export function sinceUpdate(): {
- op: any;
- count: number;
- }[];
- export function voidTime(): {
- op: any;
- count: number;
- }[];
- export function ttl(): {
- op: any;
- count: number;
- }[];
- export function isTombstone(): {
- op: any;
- count: number;
- }[];
- export function memorySize(): {
- op: any;
- count: number;
- }[];
- export function digestModulo(): {
- op: any;
- count: number;
- }[];
- export function eq(left: any, right: any): {
- op: any;
- count: number;
- }[];
- export function ne(left: any, right: any): {
- op: any;
- count: number;
- }[];
- export function gt(left: any, right: any): {
- op: any;
- count: number;
- }[];
- export function ge(left: any, right: any): {
- op: any;
- count: number;
- }[];
- export function lt(left: any, right: any): {
- op: any;
- count: number;
- }[];
- export function le(left: any, right: any): {
- op: any;
- count: number;
- }[];
- export function cmpRegex(options: number, regex: string, cmpStr: AerospikeExp): AerospikeExp;
- export function cmpGeo(left: any, right: any): {
- op: any;
- count: number;
- }[];
- export function not(expr: AerospikeExp): AerospikeExp;
- export function and(...expr: any[]): never[];
- export function or(...expr: any[]): never[];
- export function exclusive(...expr: any[]): never[];
- export function add(...expr: any[]): never[];
- export function sub(...expr: any[]): never[];
- export function mul(...expr: any[]): never[];
- export function div(...expr: any[]): never[];
- export function pow(...params: any[]): any[];
- export function log(...params: any[]): any[];
- export function mod(...params: any[]): any[];
- export function abs(...params: any[]): any[];
- export function floor(...params: any[]): any[];
- export function ceil(...params: any[]): any[];
- export function toInt(...params: any[]): any[];
- export function toFloat(...params: any[]): any[];
- export function intAnd(...expr: any[]): never[];
- export function intOr(...expr: any[]): never[];
- export function intXor(...expr: any[]): never[];
- export function intNot(...params: any[]): any[];
- export function intLshift(...params: any[]): any[];
- export function intRshift(...params: any[]): any[];
- export function intArshift(...params: any[]): any[];
- export function intCount(...params: any[]): any[];
- export function intLscan(...params: any[]): any[];
- export function intRscan(...params: any[]): any[];
- export function min(...expr: any[]): never[];
- export function max(...expr: any[]): never[];
- export function cond(...expr: any[]): never[];
- function _let(...expr: any[]): never[];
- export function def(varName: string, expr: AerospikeExp): AerospikeExp;
- function _var(varName: string): AerospikeExp;
- export var lists: {
- size: (bin: any, ctx?: any) => any;
- getByValue: (bin: any, value: any, returnType: any, ctx?: any) => any;
- getByValueRange: (bin: any, begin: any, end: any, returnType: any, ctx?: any) => any;
- getByValueList: (bin: any, value: any, returnType: any, ctx?: any) => any;
- getByRelRankRangeToEnd: (bin: any, value: any, rank: any, returnType: any, ctx?: any) => any;
- getByRelRankRange: (bin: any, value: any, rank: any, count: any, returnType: any, ctx?: any) => any;
- getByIndex: (bin: any, index: any, valueType: any, returnType: any, ctx?: any) => any;
- getByIndexRangeToEnd: (bin: any, index: any, returnType: any, ctx?: any) => any;
- getByIndexRange: (bin: any, index: any, count: any, returnType: any, ctx?: any) => any;
- getByRank: (bin: any, rank: any, valueType: any, returnType: any, ctx?: any) => any;
- getByRankRangeToEnd: (bin: any, rank: any, returnType: any, ctx?: any) => any;
- getByRankRange: (bin: any, rank: any, count: any, returnType: any, ctx?: any) => any;
- append: (bin: any, value: any, policy?: any, ctx?: any) => any;
- appendItems: (bin: any, value: any, policy?: any, ctx?: any) => any;
- insert: (bin: any, value: any, idx: any, policy?: any, ctx?: any) => any;
- insertItems: (bin: any, value: any, idx: any, policy?: any, ctx?: any) => any;
- increment: (bin: any, value: any, idx: any, policy?: any, ctx?: any) => any;
- set: (bin: any, value: any, idx: any, policy?: any, ctx?: any) => any;
- clear: (bin: any, ctx?: any) => any;
- sort: (bin: any, order: number, ctx?: any) => any;
- removeByValue: (bin: any, value: any, ctx?: any) => any;
- removeByValueList: (bin: any, values: any, ctx?: any) => any;
- removeByValueRange: (bin: any, end: any, begin: any, ctx?: any) => any;
- removeByRelRankRangeToEnd: (bin: any, rank: any, value: any, ctx?: any) => any;
- removeByRelRankRange: (bin: any, count: any, rank: any, value: any, ctx?: any) => any;
- removeByIndex: (bin: any, idx: any, ctx?: any) => any;
- removeByIndexRangeToEnd: (bin: any, idx: any, ctx?: any) => any;
- removeByIndexRange: (bin: any, count: any, idx: any, ctx?: any) => any;
- removeByRank: (bin: any, rank: any, ctx?: any) => any;
- removeByRankRangeToEnd: (bin: any, rank: any, ctx?: any) => any;
- removeByRankRange: (bin: any, count: any, rank: any, ctx?: any) => any;
- };
- export var maps: {
- put: (bin: any, value: any, key: any, policy?: any, ctx?: any) => any;
- putItems: (bin: any, map: any, policy?: any, ctx?: any) => any;
- increment: (bin: any, value: any, key: any, policy?: any, ctx?: any) => any;
- clear: (bin: any, ctx?: any) => any;
- removeByKey: (bin: any, key: any, ctx?: any) => any;
- removeByKeyList: (bin: any, keys: any, ctx?: any) => any;
- removeByKeyRange: (bin: any, end: any, begin: any, ctx?: any) => any;
- removeByKeyRelIndexRangeToEnd: (bin: any, idx: any, key: any, ctx?: any) => any;
- removeByKeyRelIndexRange: (bin: any, count: any, idx: any, key: any, ctx?: any) => any;
- removeByValue: (bin: any, value: any, ctx?: any) => any;
- removeByValueList: (bin: any, values: any, ctx?: any) => any;
- removeByValueRange: (bin: any, end: any, begin: any, ctx?: any) => any;
- removeByValueRelRankRangeToEnd: (bin: any, rank: any, value: any, ctx?: any) => any;
- removeByValueRelRankRange: (bin: any, count: any, rank: any, value: any, key: any, ctx?: any) => any;
- removeByIndex: (bin: any, idx: any, ctx?: any) => any;
- removeByIndexRangeToEnd: (bin: any, idx: any, ctx?: any) => any;
- removeByIndexRange: (bin: any, count: any, idx: any, ctx?: any) => any;
- removeByRank: (bin: any, rank: any, ctx?: any) => any;
- removeByRankRangeToEnd: (bin: any, rank: any, ctx?: any) => any;
- removeByRankRange: (bin: any, count: any, rank: any, ctx?: any) => any;
- size: (bin: any, ctx?: any) => any;
- getByKey: (bin: any, key: any, valueType: any, returnType: any, ctx?: any) => any;
- getByKeyRange: (bin: any, end: any, begin: any, returnType: any, ctx?: any) => any;
- getByKeyList: (bin: any, keys: any, returnType: any, ctx?: any) => any;
- getByKeyRelIndexRangeToEnd: (bin: any, idx: any, key: any, returnType: any, ctx?: any) => any;
- getByKeyRelIndexRange: (bin: any, count: any, idx: any, key: any, returnType: any, ctx?: any) => any;
- getByValue: (bin: any, value: any, returnType: any, ctx?: any) => any;
- getByValueRange: (bin: any, end: any, begin: any, returnType: any, ctx?: any) => any;
- getByValueList: (bin: any, values: any, returnType: any, ctx?: any) => any;
- getByValueRelRankRangeToEnd: (bin: any, rank: any, value: any, returnType: any, ctx?: any) => any;
- getByValueRelRankRange: (bin: any, count: any, rank: any, value: any, returnType: any, ctx?: any) => any;
- getByIndex: (bin: any, idx: any, valueType: any, returnType: any, ctx?: any) => any;
- getByIndexRangeToEnd: (bin: any, idx: any, returnType: any, ctx?: any) => any;
- getByIndexRange: (bin: any, count: any, idx: any, returnType: any, ctx?: any) => any;
- getByRank: (bin: any, rank: any, valueType: any, returnType: any, ctx?: any) => any;
- getByRankRangeToEnd: (bin: any, rank: any, returnType: any, ctx?: any) => any;
- getByRankRange: (bin: any, count: any, rank: any, returnType: any, ctx?: any) => any;
- };
- export var bit: {
- reSize: (bin: any, flags: number, byteSize: number, policy?: any) => any;
- insert: (bin: any, value: any, byteOffset: any, policy?: any) => any;
- remove: (bin: any, byteSize: number, byteOffset: any, policy?: any) => any;
- set: (bin: any, value: any, bitSize: any, bitOffset: any, policy?: any) => any;
- or: (bin: any, value: any, bitSize: any, bitOffset: any, policy?: any) => any;
- xor: (bin: any, value: any, bitSize: any, bitOffset: any, policy?: any) => any;
- and: (bin: any, value: any, bitSize: any, bitOffset: any, policy?: any) => any;
- not: (bin: any, bitSize: any, bitOffset: any, policy?: any) => any;
- lShift: (bin: any, shift: number, bitSize: any, bitOffset: any, policy?: any) => any;
- rShift: (bin: any, shift: number, bitSize: any, bitOffset: any, policy?: any) => any;
- add: (bin: any, action: number, value: any, bitSize: any, bitOffset: any, policy?: any) => any;
- subtract: (bin: any, action: number, value: any, bitSize: any, bitOffset: any, policy?: any) => any;
- setInt: (bin: any, value: any, bitSize: any, bitOffset: any, policy?: any) => any;
- get: (bin: any, bitSize: any, bitOffset: any) => any;
- count: (bin: any, bitSize: any, bitOffset: any) => number;
- lScan: (bin: any, value: any, bitSize: any, bitOffset: any) => number;
- rScan: (bin: any, value: any, bitSize: any, bitOffset: any) => number;
- getInt: (bin: any, sign: boolean, bitSize: any, bitOffset: any) => any;
- };
- export var hll: {
- initMH: (bin: any, mhBitCount: number, indexBitCount: number, policy?: any) => any;
- init: (bin: any, indexBitCount: number, policy?: any) => any;
- addMH: (bin: any, mhBitCount: number, indexBitCount: number, list: any, policy?: any) => any;
- add: (bin: any, indexBitCount: number, list: any, policy?: any) => any;
- update: (bin: any, list: any, policy?: any) => any;
- getCount: (bin: any) => any;
- getUnion: (bin: any, list: any) => any;
- getUnionCount: (bin: any, list: any) => any;
- getIntersectCount: (bin: any, list: any) => any;
- getSimilarity: (bin: any, list: any) => any[];
- describe: (bin: any) => any;
- mayContain: (bin: any, list: any) => any;
- };
- function _val(value: any): {
- [x: number]: any;
- op: any;
- }[];
- export { _val as list, _val as map, _let as let, _var as var };
-
-}
-declare module 'aerospike/exp_bit' {
- export function reSize(bin: any, flags: number, byteSize: number, policy?: any): any;
- export function insert(bin: any, value: any, byteOffset: any, policy?: any): any;
- export function remove(bin: any, byteSize: number, byteOffset: any, policy?: any): any;
- export function set(bin: any, value: any, bitSize: any, bitOffset: any, policy?: any): any;
- export function or(bin: any, value: any, bitSize: any, bitOffset: any, policy?: any): any;
- export function xor(bin: any, value: any, bitSize: any, bitOffset: any, policy?: any): any;
- export function and(bin: any, value: any, bitSize: any, bitOffset: any, policy?: any): any;
- export function not(bin: any, bitSize: any, bitOffset: any, policy?: any): any;
- export function lShift(bin: any, shift: number, bitSize: any, bitOffset: any, policy?: any): any;
- export function rShift(bin: any, shift: number, bitSize: any, bitOffset: any, policy?: any): any;
- export function add(bin: any, action: number, value: any, bitSize: any, bitOffset: any, policy?: any): any;
- export function subtract(bin: any, action: number, value: any, bitSize: any, bitOffset: any, policy?: any): any;
- export function setInt(bin: any, value: any, bitSize: any, bitOffset: any, policy?: any): any;
- export function get(bin: any, bitSize: any, bitOffset: any): any;
- export function count(bin: any, bitSize: any, bitOffset: any): number;
- export function lScan(bin: any, value: any, bitSize: any, bitOffset: any): number;
- export function rScan(bin: any, value: any, bitSize: any, bitOffset: any): number;
- export function getInt(bin: any, sign: boolean, bitSize: any, bitOffset: any): any;
-
-}
-declare module 'aerospike/exp_hll' {
- export function initMH(bin: any, mhBitCount: number, indexBitCount: number, policy?: any): any;
- export function init(bin: any, indexBitCount: number, policy?: any): any;
- export function addMH(bin: any, mhBitCount: number, indexBitCount: number, list: any, policy?: any): any;
- export function add(bin: any, indexBitCount: number, list: any, policy?: any): any;
- export function update(bin: any, list: any, policy?: any): any;
- export function getCount(bin: any): any;
- export function getUnion(bin: any, list: any): any;
- export function getUnionCount(bin: any, list: any): any;
- export function getIntersectCount(bin: any, list: any): any;
- export function getSimilarity(bin: any, list: any): any[];
- export function describe(bin: any): any;
- export function mayContain(bin: any, list: any): any;
-
-}
-declare module 'aerospike/exp_lists' {
- export function size(bin: any, ctx?: any): any;
- export function getByValue(bin: any, value: any, returnType: any, ctx?: any): any;
- export function getByValueRange(bin: any, begin: any, end: any, returnType: any, ctx?: any): any;
- export function getByValueList(bin: any, value: any, returnType: any, ctx?: any): any;
- export function getByRelRankRangeToEnd(bin: any, value: any, rank: any, returnType: any, ctx?: any): any;
- export function getByRelRankRange(bin: any, value: any, rank: any, count: any, returnType: any, ctx?: any): any;
- export function getByIndex(bin: any, index: any, valueType: any, returnType: any, ctx?: any): any;
- export function getByIndexRangeToEnd(bin: any, index: any, returnType: any, ctx?: any): any;
- export function getByIndexRange(bin: any, index: any, count: any, returnType: any, ctx?: any): any;
- export function getByRank(bin: any, rank: any, valueType: any, returnType: any, ctx?: any): any;
- export function getByRankRangeToEnd(bin: any, rank: any, returnType: any, ctx?: any): any;
- export function getByRankRange(bin: any, rank: any, count: any, returnType: any, ctx?: any): any;
- export function append(bin: any, value: any, policy?: any, ctx?: any): any;
- export function appendItems(bin: any, value: any, policy?: any, ctx?: any): any;
- export function insert(bin: any, value: any, idx: any, policy?: any, ctx?: any): any;
- export function insertItems(bin: any, value: any, idx: any, policy?: any, ctx?: any): any;
- export function increment(bin: any, value: any, idx: any, policy?: any, ctx?: any): any;
- export function set(bin: any, value: any, idx: any, policy?: any, ctx?: any): any;
- export function clear(bin: any, ctx?: any): any;
- export function sort(bin: any, order: number, ctx?: any): any;
- export function removeByValue(bin: any, value: any, ctx?: any): any;
- export function removeByValueList(bin: any, values: any, ctx?: any): any;
- export function removeByValueRange(bin: any, end: any, begin: any, ctx?: any): any;
- export function removeByRelRankRangeToEnd(bin: any, rank: any, value: any, ctx?: any): any;
- export function removeByRelRankRange(bin: any, count: any, rank: any, value: any, ctx?: any): any;
- export function removeByIndex(bin: any, idx: any, ctx?: any): any;
- export function removeByIndexRangeToEnd(bin: any, idx: any, ctx?: any): any;
- export function removeByIndexRange(bin: any, count: any, idx: any, ctx?: any): any;
- export function removeByRank(bin: any, rank: any, ctx?: any): any;
- export function removeByRankRangeToEnd(bin: any, rank: any, ctx?: any): any;
- export function removeByRankRange(bin: any, count: any, rank: any, ctx?: any): any;
-
-}
-declare module 'aerospike/exp_maps' {
- export function put(bin: any, value: any, key: any, policy?: any, ctx?: any): any;
- export function putItems(bin: any, map: any, policy?: any, ctx?: any): any;
- export function increment(bin: any, value: any, key: any, policy?: any, ctx?: any): any;
- export function clear(bin: any, ctx?: any): any;
- export function removeByKey(bin: any, key: any, ctx?: any): any;
- export function removeByKeyList(bin: any, keys: any, ctx?: any): any;
- export function removeByKeyRange(bin: any, end: any, begin: any, ctx?: any): any;
- export function removeByKeyRelIndexRangeToEnd(bin: any, idx: any, key: any, ctx?: any): any;
- export function removeByKeyRelIndexRange(bin: any, count: any, idx: any, key: any, ctx?: any): any;
- export function removeByValue(bin: any, value: any, ctx?: any): any;
- export function removeByValueList(bin: any, values: any, ctx?: any): any;
- export function removeByValueRange(bin: any, end: any, begin: any, ctx?: any): any;
- export function removeByValueRelRankRangeToEnd(bin: any, rank: any, value: any, ctx?: any): any;
- export function removeByValueRelRankRange(bin: any, count: any, rank: any, value: any, key: any, ctx?: any): any;
- export function removeByIndex(bin: any, idx: any, ctx?: any): any;
- export function removeByIndexRangeToEnd(bin: any, idx: any, ctx?: any): any;
- export function removeByIndexRange(bin: any, count: any, idx: any, ctx?: any): any;
- export function removeByRank(bin: any, rank: any, ctx?: any): any;
- export function removeByRankRangeToEnd(bin: any, rank: any, ctx?: any): any;
- export function removeByRankRange(bin: any, count: any, rank: any, ctx?: any): any;
- export function size(bin: any, ctx?: any): any;
- export function getByKey(bin: any, key: any, valueType: any, returnType: any, ctx?: any): any;
- export function getByKeyRange(bin: any, end: any, begin: any, returnType: any, ctx?: any): any;
- export function getByKeyList(bin: any, keys: any, returnType: any, ctx?: any): any;
- export function getByKeyRelIndexRangeToEnd(bin: any, idx: any, key: any, returnType: any, ctx?: any): any;
- export function getByKeyRelIndexRange(bin: any, count: any, idx: any, key: any, returnType: any, ctx?: any): any;
- export function getByValue(bin: any, value: any, returnType: any, ctx?: any): any;
- export function getByValueRange(bin: any, end: any, begin: any, returnType: any, ctx?: any): any;
- export function getByValueList(bin: any, values: any, returnType: any, ctx?: any): any;
- export function getByValueRelRankRangeToEnd(bin: any, rank: any, value: any, returnType: any, ctx?: any): any;
- export function getByValueRelRankRange(bin: any, count: any, rank: any, value: any, returnType: any, ctx?: any): any;
- export function getByIndex(bin: any, idx: any, valueType: any, returnType: any, ctx?: any): any;
- export function getByIndexRangeToEnd(bin: any, idx: any, returnType: any, ctx?: any): any;
- export function getByIndexRange(bin: any, count: any, idx: any, returnType: any, ctx?: any): any;
- export function getByRank(bin: any, rank: any, valueType: any, returnType: any, ctx?: any): any;
- export function getByRankRangeToEnd(bin: any, rank: any, returnType: any, ctx?: any): any;
- export function getByRankRange(bin: any, count: any, rank: any, returnType: any, ctx?: any): any;
-
-}
-declare module 'aerospike/exp_operations' {
- export function read(bin: string, exp: any, flags: any): Operation;
- export function write(bin: string, exp: any, flags: any): Operation;
- export class ExpOperation {
- constructor(op: any, bin: any, exp: any, flags: any, props: any);
- op: any;
- bin: any;
- exp: any;
- flags: any;
- }
-
-}
-declare module 'aerospike/features' {
- export var CDT_MAP: string;
- export var CDT_LIST: string;
- export var BLOB_BITS: string;
-
-}
-declare module 'aerospike/filter' {
- export function range(bin: string, min: number, max: number, indexType?: number | undefined): any;
- export function equal(bin: string, value: string): any;
- export function contains(bin: string, value: (string | number), indexType: number): any;
- export function geoWithinGeoJSONRegion(bin: string, value: GeoJSON, indexType?: number | undefined): any;
- export function geoContainsGeoJSONPoint(bin: string, value: GeoJSON, indexType?: number | undefined): any;
- export function geoWithinRadius(bin: string, lon: any, lat: number, radius: number, indexType?: number | undefined): any;
- export function geoContainsPoint(bin: string, lon: any, lat: number, indexType?: number | undefined): any;
- export class SindexFilterPredicate {
- constructor(predicate: any, bin: any, dataType: any, indexType: any, props: any);
- predicate: any;
- bin: any;
- datatype: any;
- type: any;
- }
- import GeoJSON = require("./geojson");
-
-}
-declare module 'aerospike/geojson' {
- export = GeoJSON;
- function GeoJSON(json: any): GeoJSON;
- class GeoJSON {
- constructor(json: any);
- str: string | undefined;
- toJSON(): any;
- toString(): string;
- value(): any;
- }
- namespace GeoJSON {
- function Point(lng: number, lat: number): GeoJSON;
- function Polygon(...args: number[][]): GeoJSON;
- function Circle(lng: number, lat: number, radius: number): GeoJSON;
- }
-
-}
-declare module 'aerospike/hll' {
- export function init(bin: string, indexBits: number, minhashBits?: number | undefined): any;
- export function add(bin: string, list: any[], indexBits?: number | undefined, minhashBits?: number | undefined): any;
- export function setUnion(bin: string, list: any[]): any;
- export function refreshCount(bin: string): any;
- export function fold(bin: string, indexBits: number): any;
- export function getCount(bin: string): any;
- export function getUnion(bin: string, list: any[]): any;
- export function getUnionCount(bin: string, list: any[]): any;
- export function getIntersectCount(bin: string, list: any[]): any;
- export function getSimilarity(bin: string, list: any[]): any;
- export function describe(bin: string): any;
-
-}
-declare module 'aerospike/index_job' {
- export = IndexJob;
- function IndexJob(client: any, namespace: any, indexName: any): void;
- class IndexJob {
- constructor(client: any, namespace: any, indexName: any);
- client: any;
- namespace: any;
- indexName: any;
- private hasCompleted;
- private info;
- }
-
-}
-declare module 'aerospike/info' {
- export function parse(info: string): any;
- export const separators: {
- bins: (string | typeof splitBins)[];
- 'bins/*': (typeof splitBins)[];
- 'namespace/*': string[];
- service: string[];
- sindex: string[];
- 'sindex/*': string[];
- 'sindex/*/**': string[];
- 'udf-list': string[];
- 'get-dc-config': string[];
- sets: string[];
- 'sets/*': string[];
- 'sets/*/**': (string | typeof chop)[];
- };
- function splitBins(str: any): {
- stats: {};
- names: any[];
- };
- function chop(str: any): any;
- export {};
-
-}
-declare module 'aerospike/job' {
- export = Job;
- function Job(client: any, jobID: any, module: any): void;
- class Job {
- constructor(client: any, jobID: any, module: any);
- client: any;
- jobID: any;
- module: any;
- private hasCompleted;
- private checkStatus;
- info(policy: any, callback?: JobinfoCallback | undefined): Promise | null;
- wait(pollInterval?: number | undefined, callback?: JobdoneCallback | undefined): Promise | null;
- waitUntilDone: any;
- }
- namespace Job {
- function safeRandomJobID(): number;
- function pollUntilDone(statusFunction: any, pollInterval: any): Promise;
- }
-
-}
-declare module 'aerospike/key' {
- export = Key;
- function Key(ns: string, set: string, key: (string | number | Buffer), digest?: string | undefined): void;
- class Key {
- constructor(ns: string, set: string, key: (string | number | Buffer), digest?: string | undefined);
- ns: string;
- set: string;
- key: any;
- digest: string | null;
- equals(other: any): any;
- }
- namespace Key {
- function fromASKey(keyObj: any): Key | null;
- }
-
-}
-declare module 'aerospike/lists' {
- export function setOrder(bin: string, order: number): any;
- export function sort(bin: string, flags: number): any;
- export function append(bin: string, value: any, policy?: any): any;
- export function appendItems(bin: string, list: Array, policy?: any): any;
- export function insert(bin: string, index: number, value: any, policy?: any): any;
- export function insertItems(bin: string, index: number, list: Array, policy: any): any;
- export function pop(bin: string, index: number): any;
- export function popRange(bin: string, index: number, count?: number | undefined): any;
- export function remove(bin: string, index: number): any;
- export function removeRange(bin: string, index: number, count?: number | undefined): any;
- export function removeByIndex(bin: string, index: number, returnType?: number | undefined): any;
- export function removeByIndexRange(bin: string, index: number, count?: number | undefined, returnType?: number | undefined): any;
- export function removeByValue(bin: string, value: any, returnType?: number | undefined): any;
- export function removeByValueList(bin: string, values: Array, returnType?: number | undefined): any;
- export function removeByValueRange(bin: string, begin: any | null, end: any | null, returnType?: number | undefined): any;
- export function removeByValueRelRankRange(bin: string, value: any, rank: number, count?: number | undefined, returnType?: number | undefined): any;
- export function removeByRank(bin: string, rank: number, returnType?: number | undefined): any;
- export function removeByRankRange(bin: string, rank: any, count?: number | undefined, returnType?: number | undefined): any;
- export function clear(bin: string): any;
- export function set(bin: string, index: number, value: any, policy?: any): any;
- export function trim(bin: string, index: number, count: number): any;
- export function get(bin: string, index: number): any;
- export function getRange(bin: string, index: number, count?: number | undefined): any;
- export function getByIndex(bin: string, index: number, returnType?: number | undefined): any;
- export function getByIndexRange(bin: string, index: number, count?: number | undefined, returnType?: number | undefined): any;
- export function getByValue(bin: string, value: any, returnType?: number | undefined): any;
- export function getByValueList(bin: string, values: Array, returnType?: number | undefined): any;
- export function getByValueRange(bin: string, begin: any | null, end: any | null, returnType?: number | undefined): any;
- export function getByValueRelRankRange(bin: string, value: any, rank: number, count?: number | undefined, returnType?: number | undefined): any;
- export function getByRank(bin: string, rank: number, returnType?: number | undefined): any;
- export function getByRankRange(bin: string, rank: any, count?: number | undefined, returnType?: number | undefined): any;
- export function increment(bin: string, index: number, value?: number | undefined, policy?: any): any;
- export function size(bin: string): any;
-
-}
-declare module 'aerospike/maps' {
- export function setPolicy(bin: string, policy: MapPolicy): any;
- export function put(bin: string, key: any, value: any, policy?: any): any;
- export function putItems(bin: string, items: object, policy?: any): any;
- export function increment(bin: string, key: any, incr: number, policy?: any): any;
- export function decrement(bin: string, key: any, decr: number, policy?: any): any;
- export function clear(bin: string): any;
- export function removeByKey(bin: string, key: any, returnType?: number | undefined): any;
- export function removeByKeyList(bin: string, keys: Array, returnType?: number | undefined): any;
- export function removeByKeyRange(bin: string, begin: any | null, end: any | null, returnType?: number | undefined): any;
- export function removeByKeyRelIndexRange(bin: string, key: any, index: number, count?: number | undefined, returnType?: number | undefined): any;
- export function removeByValue(bin: string, value: any, returnType?: number | undefined): any;
- export function removeByValueList(bin: string, values: Array, returnType?: number | undefined): any;
- export function removeByValueRange(bin: string, begin: any | null, end: any | null, returnType?: number | undefined): any;
- export function removeByValueRelRankRange(bin: string, value: any, rank: number, count?: number | undefined, returnType?: number | undefined): any;
- export function removeByIndex(bin: string, index: number, returnType?: number | undefined): any;
- export function removeByIndexRange(bin: string, index: number, count?: number | undefined, returnType?: number | undefined): any;
- export function removeByRank(bin: string, rank: number, returnType?: number | undefined): any;
- export function removeByRankRange(bin: string, rank: any, count?: number | undefined, returnType?: number | undefined): any;
- export function size(bin: string): any;
- export function getByKey(bin: string, key: any, returnType?: number | undefined): any;
- export function getByKeyRange(bin: string, begin: any | null, end: any | null, returnType?: number | undefined): any;
- export function getByKeyRelIndexRange(bin: string, key: any, index: number, count?: number | undefined, returnType?: number | undefined): any;
- export function getByValue(bin: string, value: any, returnType?: number | undefined): any;
- export function getByValueRange(bin: string, begin: any | null, end: any | null, returnType?: number | undefined): any;
- export function getByValueRelRankRange(bin: string, value: any, rank: number, count?: number | undefined, returnType?: number | undefined): any;
- export function getByIndex(bin: string, index: number, returnType?: number | undefined): any;
- export function getByIndexRange(bin: string, index: number, count?: number | undefined, returnType?: number | undefined): any;
- export function getByRank(bin: string, rank: number, returnType?: number | undefined): any;
- export function getByRankRange(bin: string, rank: any, count: number, returnType?: number | undefined): any;
-
-}
-declare module 'aerospike/operations' {
- export function read(bin: string): Operation;
- export function write(bin: string, value: any): Operation;
- export function add(bin: string, value: (number | any)): Operation;
- export function incr(bin: any, value: any): Operation;
- export function append(bin: string, value: (string | Buffer)): Operation;
- export function prepend(bin: string, value: (string | Buffer)): Operation;
- export function touch(ttl?: number | undefined): Operation;
- function _delete(): Operation;
- export class Operation {
- constructor(op: any, bin: any, props: any);
- op: any;
- bin: any;
- }
- export { _delete as delete };
-
-}
-declare module 'aerospike/policies/apply_policy' {
- export = ApplyPolicy;
- class ApplyPolicy extends BasePolicy {
- key: number;
- commitLevel: number;
- ttl: number;
- durableDelete: boolean;
- }
- import BasePolicy = require("./base_policy");
-
-}
-declare module 'aerospike/policies/base_policy' {
- export = BasePolicy;
- class BasePolicy {
- constructor(props: any);
- socketTimeout: number;
- totalTimeout: number;
- maxRetries: number;
- filterExpression: any;
- compress: boolean;
- }
-
-}
-declare module 'aerospike/policies/batch_apply_policy' {
- export = BatchApplyPolicy;
- class BatchApplyPolicy {
- constructor(props?: any);
- filterExpression: any;
- key: number;
- commitLevel: number;
- ttl: number;
- durableDelete: boolean;
- }
-
-}
-declare module 'aerospike/policies/batch_policy' {
- export = BatchPolicy;
- class BatchPolicy extends BasePolicy {
- replica: number;
- readModeAP: number;
- readModeSC: number;
- concurrent: boolean;
- allowInline: boolean;
- allowInlineSSD: boolean;
- respondAllKeys: boolean;
- sendSetName: boolean;
- deserialize: boolean;
- }
- import BasePolicy = require("./base_policy");
-
-}
-declare module 'aerospike/policies/batch_read_policy' {
- export = BatchReadPolicy;
- class BatchReadPolicy {
- constructor(props?: any);
- filterExpression: any;
- readModeAP: number;
- readModeSC: number;
- }
-
-}
-declare module 'aerospike/policies/batch_remove_policy' {
- export = BatchRemovePolicy;
- class BatchRemovePolicy {
- constructor(props?: any);
- filterExpression: any;
- key: number;
- commitLevel: number;
- gen: number;
- generation: number;
- durableDelete: boolean;
- }
-
-}
-declare module 'aerospike/policies/batch_write_policy' {
- export = BatchWritePolicy;
- class BatchWritePolicy {
- constructor(props?: any);
- filterExpression: any;
- key: number;
- commitLevel: number;
- gen: number;
- exists: number;
- durableDelete: boolean;
- }
-
-}
-declare module 'aerospike/policies/bitwise_policy' {
- export = BitwisePolicy;
- class BitwisePolicy {
- constructor(props?: any);
- writeFlags: number;
- }
-
-}
-declare module 'aerospike/policies/command_queue_policy' {
- export = CommandQueuePolicy;
- class CommandQueuePolicy {
- constructor(props?: {
- maxCommandsInProcess?: number | undefined;
- maxCommandsInQueue?: number | undefined;
- queueInitialCapacity?: number | undefined;
- } | undefined);
- maxCommandsInProcess: number;
- maxCommandsInQueue: number;
- queueInitialCapacity: number;
- }
-
-}
-declare module 'aerospike/policies/hll_policy' {
- export = HLLPolicy;
- class HLLPolicy {
- constructor(props?: any);
- writeFlags: number;
- }
-
-}
-declare module 'aerospike/policies/info_policy' {
- export = InfoPolicy;
- class InfoPolicy {
- constructor(props?: any);
- timeout: number;
- sendAsIs: boolean;
- checkBounds: boolean;
- }
-
-}
-declare module 'aerospike/policies/list_policy' {
- export = ListPolicy;
- class ListPolicy {
- constructor(props?: any);
- order: number;
- writeFlags: number;
- }
-
-}
-declare module 'aerospike/policies/map_policy' {
- export = MapPolicy;
- class MapPolicy {
- constructor(props?: any);
- order: number;
- writeMode: number;
- writeFlags: number;
- }
-
-}
-declare module 'aerospike/policies/operate_policy' {
- export = OperatePolicy;
- class OperatePolicy extends BasePolicy {
- key: number;
- gen: number;
- exists: number;
- replica: number;
- commitLevel: number;
- deserialize: boolean;
- durableDelete: boolean;
- readModeAP: number;
- readModeSC: number;
- }
- import BasePolicy = require("./base_policy");
-
-}
-declare module 'aerospike/policies/query_policy' {
- export = QueryPolicy;
- class QueryPolicy extends BasePolicy {
- deserialize: boolean;
- failOnClusterChange: boolean;
- infoTimeout: number;
- }
- import BasePolicy = require("./base_policy");
-
-}
-declare module 'aerospike/policies/read_policy' {
- export = ReadPolicy;
- class ReadPolicy extends BasePolicy {
- key: number;
- replica: number;
- readModeAP: number;
- readModeSC: number;
- deserialize: boolean;
- }
- import BasePolicy = require("./base_policy");
-
-}
-declare module 'aerospike/policies/remove_policy' {
- export = RemovePolicy;
- class RemovePolicy extends BasePolicy {
- generation: number;
- key: number;
- gen: number;
- commitLevel: number;
- durableDelete: boolean;
- }
- import BasePolicy = require("./base_policy");
-
-}
-declare module 'aerospike/policies/scan_policy' {
- export = ScanPolicy;
- class ScanPolicy extends BasePolicy {
- durableDelete: boolean;
- recordsPerSecond: number;
- maxRecords: number;
- }
- import BasePolicy = require("./base_policy");
-
-}
-declare module 'aerospike/policies/write_policy' {
- export = WritePolicy;
- class WritePolicy extends BasePolicy {
- compressionThreshold: number;
- key: number;
- gen: number;
- exists: number;
- commitLevel: number;
- durableDelete: boolean;
- }
- import BasePolicy = require("./base_policy");
-
-}
-declare module 'aerospike/policy' {
- export function createPolicy(type: any, values: any): CommandQueuePolicy | BasePolicy | BatchApplyPolicy | BatchReadPolicy | BatchRemovePolicy | BatchWritePolicy | HLLPolicy | InfoPolicy | undefined;
- import BasePolicy = require("./policies/base_policy");
- import ApplyPolicy = require("./policies/apply_policy");
- import OperatePolicy = require("./policies/operate_policy");
- import QueryPolicy = require("./policies/query_policy");
- import ReadPolicy = require("./policies/read_policy");
- import RemovePolicy = require("./policies/remove_policy");
- import ScanPolicy = require("./policies/scan_policy");
- import WritePolicy = require("./policies/write_policy");
- import BatchPolicy = require("./policies/batch_policy");
- import BatchApplyPolicy = require("./policies/batch_apply_policy");
- import BatchReadPolicy = require("./policies/batch_read_policy");
- import BatchRemovePolicy = require("./policies/batch_remove_policy");
- import BatchWritePolicy = require("./policies/batch_write_policy");
- import CommandQueuePolicy = require("./policies/command_queue_policy");
- import HLLPolicy = require("./policies/hll_policy");
- import InfoPolicy = require("./policies/info_policy");
- import ListPolicy = require("./policies/list_policy");
- import MapPolicy = require("./policies/map_policy");
- export { BasePolicy, ApplyPolicy, OperatePolicy, QueryPolicy, ReadPolicy, RemovePolicy, ScanPolicy, WritePolicy, BatchPolicy, BatchApplyPolicy, BatchReadPolicy, BatchRemovePolicy, BatchWritePolicy, CommandQueuePolicy, HLLPolicy, InfoPolicy, ListPolicy, MapPolicy };
-
-}
-declare module 'aerospike/query' {
- export = Query;
- function Query(client: Client, ns: string, set: string, options?: {
- filters?: any[] | undefined;
- select?: string[] | undefined;
- nobins?: boolean | undefined;
- } | undefined): void;
- class Query {
- constructor(client: Client, ns: string, set: string, options?: {
- filters?: any[] | undefined;
- select?: string[] | undefined;
- nobins?: boolean | undefined;
- } | undefined);
- client: Client;
- ns: string;
- set: string;
- filters: any[];
- selected: string[] | undefined;
- nobins: boolean | undefined;
- udf: any;
- private pfEnabled;
- select(...args: string[]): void;
- where(predicate: any): void;
- setSindexFilter(sindexFilter: any): void;
- setUdf(udfModule: string, udfFunction: string, udfArgs?: any[] | undefined): void;
- partitions(begin: number, count: number, digest: string): void;
- partFilter: {
- begin: number;
- count: number;
- digest: string;
- } | undefined;
- foreach(policy?: any, dataCb?: recordCallback | undefined, errorCb?: errorCallback | undefined, endCb?: doneCallback | undefined): RecordStream;
- results(policy?: any): Promise;
- apply(udfModule: string, udfFunction: string, udfArgs?: any[] | undefined, policy?: any, callback?: QueryaggregationResultCallback | undefined): Promise | null;
- background(udfModule: string, udfFunction: string, udfArgs?: any[] | undefined, policy?: any, queryID?: number | undefined, callback?: jobCallback | undefined): Promise | null;
- operate(operations: any, policy?: any, queryID?: number | undefined, callback?: jobCallback | undefined): Promise | null;
- ops: any;
- }
- import RecordStream = require("./record_stream");
-
-}
-declare module 'aerospike/record' {
- export = Record;
- class Record {
- private constructor();
- key: any;
- bins: any;
- ttl: any;
- gen: any;
- type: any;
- policy: any;
- readAllBins: any;
- ops: any;
- udf: any;
- }
-
-}
-declare module 'aerospike/record_stream' {
- export = RecordStream;
- function RecordStream(client: any): void;
- class RecordStream {
- constructor(client: any);
- aborted: boolean;
- client: any;
- writable: boolean;
- readable: boolean;
- _read(): void;
- abort(): void;
- }
-
-}
-declare module 'aerospike/scan' {
- export = Scan;
- function Scan(client: Client, ns: string, set: string, options?: {
- select?: string[] | undefined;
- nobins?: boolean | undefined;
- concurrent?: boolean | undefined;
- } | undefined): void;
- class Scan {
- constructor(client: Client, ns: string, set: string, options?: {
- select?: string[] | undefined;
- nobins?: boolean | undefined;
- concurrent?: boolean | undefined;
- } | undefined);
- client: Client;
- ns: string;
- set: string;
- selected: string[] | undefined;
- nobins: boolean | undefined;
- concurrent: boolean | undefined;
- private pfEnabled;
- select(...args: string[]): void;
- partitions(begin: number, count: number, digest: string): void;
- partFilter: {
- begin: number;
- count: number;
- digest: string;
- } | undefined;
- background(udfModule: string, udfFunction: string, udfArgs?: any[] | undefined, policy?: any, scanID?: number | undefined, callback?: jobCallback | undefined): Promise | null;
- udf: {
- module: string;
- funcname: string;
- args: any[] | undefined;
- } | undefined;
- operate(operations: any, policy?: any, scanID?: number | undefined, callback?: jobCallback | undefined): Promise | null;
- ops: any;
- foreach(policy?: any, dataCb?: recordCallback | undefined, errorCb?: errorCallback | undefined, endCb?: doneCallback | undefined): RecordStream;
- }
- import RecordStream = require("./record_stream");
-
-}
-declare module 'aerospike/status' {
- export var BATCH_FAILED: any;
- export var ERR_ASYNC_QUEUE_FULL: any;
- export var ERR_CONNECTION: any;
- export var ERR_INVALID_NODE: any;
- export var ERR_NO_MORE_CONNECTIONS: any;
- export var ERR_ASYNC_CONNECTION: any;
- export var ERR_CLIENT_ABORT: any;
- export var ERR_INVALID_HOST: any;
- export var NO_MORE_RECORDS: any;
- export var ERR_PARAM: any;
- export var ERR_CLIENT: any;
- export var OK: any;
- export var ERR_SERVER: any;
- export var ERR_RECORD_NOT_FOUND: any;
- export var ERR_RECORD_GENERATION: any;
- export var ERR_REQUEST_INVALID: any;
- export var ERR_RECORD_EXISTS: any;
- export var ERR_BIN_EXISTS: any;
- export var ERR_CLUSTER_CHANGE: any;
- export var ERR_SERVER_FULL: any;
- export var ERR_TIMEOUT: any;
- export var ERR_ALWAYS_FORBIDDEN: any;
- export var ERR_CLUSTER: any;
- export var ERR_BIN_INCOMPATIBLE_TYPE: any;
- export var ERR_RECORD_TOO_BIG: any;
- export var ERR_RECORD_BUSY: any;
- export var ERR_SCAN_ABORTED: any;
- export var ERR_UNSUPPORTED_FEATURE: any;
- export var ERR_BIN_NOT_FOUND: any;
- export var ERR_DEVICE_OVERLOAD: any;
- export var ERR_RECORD_KEY_MISMATCH: any;
- export var ERR_NAMESPACE_NOT_FOUND: any;
- export var ERR_BIN_NAME: any;
- export var ERR_FAIL_FORBIDDEN: any;
- export var ERR_FAIL_ELEMENT_NOT_FOUND: any;
- export var ERR_FAIL_ELEMENT_EXISTS: any;
- export var ERR_ENTERPRISE_ONLY: any;
- export var ERR_FAIL_ENTERPRISE_ONLY: any;
- export var ERR_OP_NOT_APPLICABLE: any;
- export var FILTERED_OUT: any;
- export var LOST_CONFLICT: any;
- export var QUERY_END: any;
- export var SECURITY_NOT_SUPPORTED: any;
- export var SECURITY_NOT_ENABLED: any;
- export var SECURITY_SCHEME_NOT_SUPPORTED: any;
- export var INVALID_COMMAND: any;
- export var INVALID_FIELD: any;
- export var ILLEGAL_STATE: any;
- export var INVALID_USER: any;
- export var USER_ALREADY_EXISTS: any;
- export var INVALID_PASSWORD: any;
- export var EXPIRED_PASSWORD: any;
- export var FORBIDDEN_PASSWORD: any;
- export var INVALID_CREDENTIAL: any;
- export var INVALID_ROLE: any;
- export var ROLE_ALREADY_EXISTS: any;
- export var INVALID_PRIVILEGE: any;
- export var NOT_AUTHENTICATED: any;
- export var ROLE_VIOLATION: any;
- export var ERR_UDF: any;
- export var ERR_BATCH_DISABLED: any;
- export var ERR_BATCH_MAX_REQUESTS_EXCEEDED: any;
- export var ERR_BATCH_QUEUES_FULL: any;
- export var ERR_GEO_INVALID_GEOJSON: any;
- export var ERR_INDEX_FOUND: any;
- export var ERR_INDEX_NOT_FOUND: any;
- export var ERR_INDEX_OOM: any;
- export var ERR_INDEX_NOT_READABLE: any;
- export var ERR_INDEX: any;
- export var ERR_INDEX_NAME_MAXLEN: any;
- export var ERR_INDEX_MAXCOUNT: any;
- export var ERR_QUERY_ABORTED: any;
- export var ERR_QUERY_QUEUE_FULL: any;
- export var ERR_QUERY_TIMEOUT: any;
- export var ERR_QUERY: any;
- export var ERR_UDF_NOT_FOUND: any;
- export var ERR_LUA_FILE_NOT_FOUND: any;
- export function getMessage(code: any): string;
-
-}
-declare module 'aerospike/typedefs' {
- type Host = object;
- type ClientStats = any;
- type doneCallback = () => any;
- type errorCallback = () => any;
- type recordCallback = () => any;
- type valueCallback = () => any;
- type writeCallback = () => any;
- type batchRecordsCallback = () => any;
- type connectCallback = () => any;
- type infoCallback = () => any;
- type infoAllCallback = () => any;
- type jobCallback = () => any;
- type JobdoneCallback = () => any;
- type JobinfoCallback = () => any;
- type QueryaggregationResultCallback = () => any;
- type AerospikeExp = object;
- type Policies = {
- apply: ApplyPolicy;
- batch: BatchPolicy;
- info: InfoPolicy;
- operate: OperatePolicy;
- read: ReadPolicy;
- remove: RemovePolicy;
- scan: ScanPolicy;
- query: QueryPolicy;
- write: WritePolicy;
- map: MapPolicy;
- list: ListPolicy;
- commandQueue: CommandQueuePolicy;
- };
- type Operation = object;
- type RecordObject = object;
-
-}
-declare module 'aerospike/udf_job' {
- export = UdfJob;
- function UdfJob(client: any, udfModule: any, command: any): void;
- class UdfJob {
- constructor(client: any, udfModule: any, command: any);
- client: any;
- udfModule: any;
- command: any;
- private hasCompleted;
- private info;
- }
- namespace UdfJob {
- const REGISTER: string;
- const UNREGISTER: string;
- }
-
-}
-declare module 'aerospike/utils' {
- export function parseHostString(hostString: any): {
- addr: any;
- tlsname: any;
- port: number;
- };
- export function print(err: any, result: any): void;
-
-}
-declare module 'aerospike' {
- import main = require('aerospike/index');
- export = main;
-}
\ No newline at end of file
diff --git a/typings/index.d.ts b/typings/index.d.ts
index 6a195a1c0..f5371c15c 100644
--- a/typings/index.d.ts
+++ b/typings/index.d.ts
@@ -1,1515 +1,1754 @@
-declare module "status" {
- export const ERR_INVALID_NODE: any;
- export const ERR_NO_MORE_CONNECTIONS: any;
- export const ERR_ASYNC_CONNECTION: any;
- export const ERR_CLIENT_ABORT: any;
- export const ERR_INVALID_HOST: any;
- export const NO_MORE_RECORDS: any;
- export const ERR_PARAM: any;
- export const ERR_CLIENT: any;
- export const OK: any;
- export const ERR_SERVER: any;
- export const ERR_RECORD_NOT_FOUND: any;
- export const ERR_RECORD_GENERATION: any;
- export const ERR_REQUEST_INVALID: any;
- export const ERR_RECORD_EXISTS: any;
- export const ERR_BIN_EXISTS: any;
- export const ERR_CLUSTER_CHANGE: any;
- export const ERR_SERVER_FULL: any;
- export const ERR_TIMEOUT: any;
- export const ERR_ALWAYS_FORBIDDEN: any;
- export const ERR_CLUSTER: any;
- export const ERR_BIN_INCOMPATIBLE_TYPE: any;
- export const ERR_RECORD_TOO_BIG: any;
- export const ERR_RECORD_BUSY: any;
- export const ERR_SCAN_ABORTED: any;
- export const ERR_UNSUPPORTED_FEATURE: any;
- export const ERR_BIN_NOT_FOUND: any;
- export const ERR_DEVICE_OVERLOAD: any;
- export const ERR_RECORD_KEY_MISMATCH: any;
- export const ERR_NAMESPACE_NOT_FOUND: any;
- export const ERR_BIN_NAME: any;
- export const ERR_FAIL_FORBIDDEN: any;
- export const ERR_FAIL_ELEMENT_NOT_FOUND: any;
- export const ERR_FAIL_ELEMENT_EXISTS: any;
- export const ERR_ENTERPRISE_ONLY: any;
- export const ERR_FAIL_ENTERPRISE_ONLY: any;
- export const ERR_OP_NOT_APPLICABLE: any;
- export const FILTERED_OUT: any;
- export const LOST_CONFLICT: any;
- export const QUERY_END: any;
- export const SECURITY_NOT_SUPPORTED: any;
- export const SECURITY_NOT_ENABLED: any;
- export const SECURITY_SCHEME_NOT_SUPPORTED: any;
- export const INVALID_COMMAND: any;
- export const INVALID_FIELD: any;
- export const ILLEGAL_STATE: any;
- export const INVALID_USER: any;
- export const USER_ALREADY_EXISTS: any;
- export const INVALID_PASSWORD: any;
- export const EXPIRED_PASSWORD: any;
- export const FORBIDDEN_PASSWORD: any;
- export const INVALID_CREDENTIAL: any;
- export const INVALID_ROLE: any;
- export const ROLE_ALREADY_EXISTS: any;
- export const INVALID_PRIVILEGE: any;
- export const NOT_AUTHENTICATED: any;
- export const ROLE_VIOLATION: any;
- export const ERR_UDF: any;
- export const ERR_BATCH_DISABLED: any;
- export const ERR_BATCH_MAX_REQUESTS_EXCEEDED: any;
- export const ERR_BATCH_QUEUES_FULL: any;
- export const ERR_GEO_INVALID_GEOJSON: any;
- export const ERR_INDEX_FOUND: any;
- export const ERR_INDEX_NOT_FOUND: any;
- export const ERR_INDEX_OOM: any;
- export const ERR_INDEX_NOT_READABLE: any;
- export const ERR_INDEX: any;
- export const ERR_INDEX_NAME_MAXLEN: any;
- export const ERR_INDEX_MAXCOUNT: any;
- export const ERR_QUERY_ABORTED: any;
- export const ERR_QUERY_QUEUE_FULL: any;
- export const ERR_QUERY_TIMEOUT: any;
- export const ERR_QUERY: any;
- export const ERR_UDF_NOT_FOUND: any;
- export const ERR_LUA_FILE_NOT_FOUND: any;
- export function getMessage(code: any): string;
-}
-declare module "error" {
- export = AerospikeError;
- class AerospikeError extends Error {
- private static fromASError;
- private static copyASErrorProperties;
- private static formatMessage;
- private constructor();
- code: number;
- command: any | null;
- func: string | null;
- file: string | null;
- line: number | null;
- inDoubt: boolean;
- private setStackTrace;
- isServerError(): boolean;
- get client(): any;
- }
-}
-declare module "policies/command_queue_policy" {
- export = CommandQueuePolicy;
- class CommandQueuePolicy {
- constructor(props?: {
- maxCommandsInProcess?: number | undefined;
- maxCommandsInQueue?: number | undefined;
- queueInitialCapacity?: number | undefined;
- } | undefined);
- maxCommandsInProcess: number;
- maxCommandsInQueue: number;
- queueInitialCapacity: number;
- }
-}
-declare module "event_loop" {
- export function releaseEventLoop(): void;
- export function registerASEventLoop(): void;
- export function referenceEventLoop(): void;
- export function unreferenceEventLoop(): void;
- export function setCommandQueuePolicy(policy: any): void;
-}
-declare module "geojson" {
- export = GeoJSON;
- function GeoJSON(json: any): GeoJSON;
- class GeoJSON {
- constructor(json: any);
- str: string | undefined;
- toJSON(): any;
- toString(): string;
- value(): any;
- }
- namespace GeoJSON {
- function Point(lng: number, lat: number): GeoJSON;
- function Polygon(...args: number[][]): GeoJSON;
- function Circle(lng: number, lat: number, radius: number): GeoJSON;
- }
-}
-declare module "filter" {
- export function range(bin: string, min: number, max: number, indexType?: number | undefined): any;
- export function equal(bin: string, value: string): any;
- export function contains(bin: string, value: (string | number), indexType: number): any;
- export function geoWithinGeoJSONRegion(bin: string, value: GeoJSON, indexType?: number | undefined): any;
- export function geoContainsGeoJSONPoint(bin: string, value: GeoJSON, indexType?: number | undefined): any;
- export function geoWithinRadius(bin: string, lon: any, lat: number, radius: number, indexType?: number | undefined): any;
- export function geoContainsPoint(bin: string, lon: any, lat: number, indexType?: number | undefined): any;
- export class SindexFilterPredicate {
- constructor(predicate: any, bin: any, dataType: any, indexType: any, props: any);
- predicate: any;
- bin: any;
- datatype: any;
- type: any;
- }
- import GeoJSON = require("geojson");
-}
-declare module "cdt_context" {
- export = CdtContext;
- class CdtContext {
- static getContextType(ctx: CdtContext, type: number): number;
- items: any[];
- addListIndex(index: number): CdtContext;
- addListRank(rank: number): CdtContext;
- addListValue(value: any): CdtContext;
- addMapIndex(index: number): CdtContext;
- addMapRank(rank: number): CdtContext;
- addMapKey(key: any): CdtContext;
- addMapValue(value: any): CdtContext;
- private add;
- }
-}
-declare module "exp" {
- export function bool(value: any): {
- [x: number]: any;
- op: any;
- }[];
- export function int(value: any): {
- [x: number]: any;
- op: any;
- }[];
- export function uint(value: any): {
- [x: number]: any;
- op: any;
- }[];
- export function float(value: any): {
- [x: number]: any;
- op: any;
- }[];
- export function str(value: any): {
- [x: number]: any;
- op: any;
- }[];
- export function bytes(value: any, size: any): {
- [x: number]: any;
- op: any;
- }[];
- export function geo(value: any): {
- [x: number]: any;
- op: any;
- }[];
- export function nil(): {
- op: any;
- value: null;
- }[];
- export function keyInt(): {
- [x: number]: any;
- op: any;
- }[];
- export function keyStr(): {
- [x: number]: any;
- op: any;
- }[];
- export function keyBlob(): {
- [x: number]: any;
- op: any;
- }[];
- export function keyExist(): AerospikeExp;
- export function binBool(binName: any): {
- [x: number]: any;
- op: any;
- }[];
- export function binInt(binName: any): {
- [x: number]: any;
- op: any;
- }[];
- export function binFloat(binName: any): {
- [x: number]: any;
- op: any;
- }[];
- export function binStr(binName: any): {
- [x: number]: any;
- op: any;
- }[];
- export function binBlob(binName: any): {
- [x: number]: any;
- op: any;
- }[];
- export function binGeo(binName: any): {
- [x: number]: any;
- op: any;
- }[];
- export function binList(binName: any): {
- [x: number]: any;
- op: any;
- }[];
- export function binMap(binName: any): {
- [x: number]: any;
- op: any;
- }[];
- export function binHll(binName: any): {
- [x: number]: any;
- op: any;
- }[];
- export function binType(binName: any): ({
- op: any;
- strVal: any;
- } | {
- op: any;
- count: number;
- })[];
- export function binExists(binName: string): boolean;
- export function setName(): {
- op: any;
- count: number;
- }[];
- export function deviceSize(): {
- op: any;
- count: number;
- }[];
- export function lastUpdate(): {
- op: any;
- count: number;
- }[];
- export function sinceUpdate(): {
- op: any;
- count: number;
- }[];
- export function voidTime(): {
- op: any;
- count: number;
- }[];
- export function ttl(): {
- op: any;
- count: number;
- }[];
- export function isTombstone(): {
- op: any;
- count: number;
- }[];
- export function memorySize(): {
- op: any;
- count: number;
- }[];
- export function digestModulo(): {
- op: any;
- count: number;
- }[];
- export function eq(left: any, right: any): {
- op: any;
- count: number;
- }[];
- export function ne(left: any, right: any): {
- op: any;
- count: number;
- }[];
- export function gt(left: any, right: any): {
- op: any;
- count: number;
- }[];
- export function ge(left: any, right: any): {
- op: any;
- count: number;
- }[];
- export function lt(left: any, right: any): {
- op: any;
- count: number;
- }[];
- export function le(left: any, right: any): {
- op: any;
- count: number;
- }[];
- export function cmpRegex(options: number, regex: string, cmpStr: AerospikeExp): AerospikeExp;
- export function cmpGeo(left: any, right: any): {
- op: any;
- count: number;
- }[];
- export function not(expr: AerospikeExp): AerospikeExp;
- export function and(...expr: any[]): never[];
- export function or(...expr: any[]): never[];
- export function exclusive(...expr: any[]): never[];
- export function add(...expr: any[]): never[];
- export function sub(...expr: any[]): never[];
- export function mul(...expr: any[]): never[];
- export function div(...expr: any[]): never[];
- export function pow(...params: any[]): any[];
- export function log(...params: any[]): any[];
- export function mod(...params: any[]): any[];
- export function abs(...params: any[]): any[];
- export function floor(...params: any[]): any[];
- export function ceil(...params: any[]): any[];
- export function toInt(...params: any[]): any[];
- export function toFloat(...params: any[]): any[];
- export function intAnd(...expr: any[]): never[];
- export function intOr(...expr: any[]): never[];
- export function intXor(...expr: any[]): never[];
- export function intNot(...params: any[]): any[];
- export function intLshift(...params: any[]): any[];
- export function intRshift(...params: any[]): any[];
- export function intArshift(...params: any[]): any[];
- export function intCount(...params: any[]): any[];
- export function intLscan(...params: any[]): any[];
- export function intRscan(...params: any[]): any[];
- export function min(...expr: any[]): never[];
- export function max(...expr: any[]): never[];
- export function cond(...expr: any[]): never[];
- function _let(...expr: any[]): never[];
- export function def(varName: string, expr: AerospikeExp): AerospikeExp;
- function _var(varName: string): AerospikeExp;
- export namespace lists {
- function size(bin: any, ctx?: any): any;
- function getByValue(bin: any, value: any, returnType: any, ctx?: any): any;
- function getByValueRange(bin: any, begin: any, end: any, returnType: any, ctx?: any): any;
- function getByValueList(bin: any, value: any, returnType: any, ctx?: any): any;
- function getByRelRankRangeToEnd(bin: any, value: any, rank: any, returnType: any, ctx?: any): any;
- function getByRelRankRange(bin: any, value: any, rank: any, count: any, returnType: any, ctx?: any): any;
- function getByIndex(bin: any, index: any, valueType: any, returnType: any, ctx?: any): any;
- function getByIndexRangeToEnd(bin: any, index: any, returnType: any, ctx?: any): any;
- function getByIndexRange(bin: any, index: any, count: any, returnType: any, ctx?: any): any;
- function getByRank(bin: any, rank: any, valueType: any, returnType: any, ctx?: any): any;
- function getByRankRangeToEnd(bin: any, rank: any, returnType: any, ctx?: any): any;
- function getByRankRange(bin: any, rank: any, count: any, returnType: any, ctx?: any): any;
- function append(bin: any, value: any, policy?: any, ctx?: any): any;
- function appendItems(bin: any, value: any, policy?: any, ctx?: any): any;
- function insert(bin: any, value: any, idx: any, policy?: any, ctx?: any): any;
- function insertItems(bin: any, value: any, idx: any, policy?: any, ctx?: any): any;
- function increment(bin: any, value: any, idx: any, policy?: any, ctx?: any): any;
- function set(bin: any, value: any, idx: any, policy?: any, ctx?: any): any;
- function clear(bin: any, ctx?: any): any;
- function sort(bin: any, order: number, ctx?: any): any;
- function removeByValue(bin: any, value: any, ctx?: any): any;
- function removeByValueList(bin: any, values: any, ctx?: any): any;
- function removeByValueRange(bin: any, end: any, begin: any, ctx?: any): any;
- function removeByRelRankRangeToEnd(bin: any, rank: any, value: any, ctx?: any): any;
- function removeByRelRankRange(bin: any, count: any, rank: any, value: any, ctx?: any): any;
- function removeByIndex(bin: any, idx: any, ctx?: any): any;
- function removeByIndexRangeToEnd(bin: any, idx: any, ctx?: any): any;
- function removeByIndexRange(bin: any, count: any, idx: any, ctx?: any): any;
- function removeByRank(bin: any, rank: any, ctx?: any): any;
- function removeByRankRangeToEnd(bin: any, rank: any, ctx?: any): any;
- function removeByRankRange(bin: any, count: any, rank: any, ctx?: any): any;
- }
- export namespace maps {
- export function put(bin: any, value: any, key: any, policy?: any, ctx?: any): any;
- export function putItems(bin: any, map: any, policy?: any, ctx?: any): any;
- export function increment_1(bin: any, value: any, key: any, policy?: any, ctx?: any): any;
- export { increment_1 as increment };
- export function clear_1(bin: any, ctx?: any): any;
- export { clear_1 as clear };
- export function removeByKey(bin: any, key: any, ctx?: any): any;
- export function removeByKeyList(bin: any, keys: any, ctx?: any): any;
- export function removeByKeyRange(bin: any, end: any, begin: any, ctx?: any): any;
- export function removeByKeyRelIndexRangeToEnd(bin: any, idx: any, key: any, ctx?: any): any;
- export function removeByKeyRelIndexRange(bin: any, count: any, idx: any, key: any, ctx?: any): any;
- export function removeByValue_1(bin: any, value: any, ctx?: any): any;
- export { removeByValue_1 as removeByValue };
- export function removeByValueList_1(bin: any, values: any, ctx?: any): any;
- export { removeByValueList_1 as removeByValueList };
- export function removeByValueRange_1(bin: any, end: any, begin: any, ctx?: any): any;
- export { removeByValueRange_1 as removeByValueRange };
- export function removeByValueRelRankRangeToEnd(bin: any, rank: any, value: any, ctx?: any): any;
- export function removeByValueRelRankRange(bin: any, count: any, rank: any, value: any, key: any, ctx?: any): any;
- export function removeByIndex_1(bin: any, idx: any, ctx?: any): any;
- export { removeByIndex_1 as removeByIndex };
- export function removeByIndexRangeToEnd_1(bin: any, idx: any, ctx?: any): any;
- export { removeByIndexRangeToEnd_1 as removeByIndexRangeToEnd };
- export function removeByIndexRange_1(bin: any, count: any, idx: any, ctx?: any): any;
- export { removeByIndexRange_1 as removeByIndexRange };
- export function removeByRank_1(bin: any, rank: any, ctx?: any): any;
- export { removeByRank_1 as removeByRank };
- export function removeByRankRangeToEnd_1(bin: any, rank: any, ctx?: any): any;
- export { removeByRankRangeToEnd_1 as removeByRankRangeToEnd };
- export function removeByRankRange_1(bin: any, count: any, rank: any, ctx?: any): any;
- export { removeByRankRange_1 as removeByRankRange };
- export function size_1(bin: any, ctx?: any): any;
- export { size_1 as size };
- export function getByKey(bin: any, key: any, valueType: any, returnType: any, ctx?: any): any;
- export function getByKeyRange(bin: any, end: any, begin: any, returnType: any, ctx?: any): any;
- export function getByKeyList(bin: any, keys: any, returnType: any, ctx?: any): any;
- export function getByKeyRelIndexRangeToEnd(bin: any, idx: any, key: any, returnType: any, ctx?: any): any;
- export function getByKeyRelIndexRange(bin: any, count: any, idx: any, key: any, returnType: any, ctx?: any): any;
- export function getByValue_1(bin: any, value: any, returnType: any, ctx?: any): any;
- export { getByValue_1 as getByValue };
- export function getByValueRange_1(bin: any, end: any, begin: any, returnType: any, ctx?: any): any;
- export { getByValueRange_1 as getByValueRange };
- export function getByValueList_1(bin: any, values: any, returnType: any, ctx?: any): any;
- export { getByValueList_1 as getByValueList };
- export function getByValueRelRankRangeToEnd(bin: any, rank: any, value: any, returnType: any, ctx?: any): any;
- export function getByValueRelRankRange(bin: any, count: any, rank: any, value: any, returnType: any, ctx?: any): any;
- export function getByIndex_1(bin: any, idx: any, valueType: any, returnType: any, ctx?: any): any;
- export { getByIndex_1 as getByIndex };
- export function getByIndexRangeToEnd_1(bin: any, idx: any, returnType: any, ctx?: any): any;
- export { getByIndexRangeToEnd_1 as getByIndexRangeToEnd };
- export function getByIndexRange_1(bin: any, count: any, idx: any, returnType: any, ctx?: any): any;
- export { getByIndexRange_1 as getByIndexRange };
- export function getByRank_1(bin: any, rank: any, valueType: any, returnType: any, ctx?: any): any;
- export { getByRank_1 as getByRank };
- export function getByRankRangeToEnd_1(bin: any, rank: any, returnType: any, ctx?: any): any;
- export { getByRankRangeToEnd_1 as getByRankRangeToEnd };
- export function getByRankRange_1(bin: any, count: any, rank: any, returnType: any, ctx?: any): any;
- export { getByRankRange_1 as getByRankRange };
- }
- export namespace bit {
- export function reSize(bin: any, flags: number, byteSize: number, policy?: any): any;
- export function insert_1(bin: any, value: any, byteOffset: any, policy?: any): any;
- export { insert_1 as insert };
- export function remove(bin: any, byteSize: number, byteOffset: any, policy?: any): any;
- export function set_1(bin: any, value: any, bitSize: any, bitOffset: any, policy?: any): any;
- export { set_1 as set };
- export function or(bin: any, value: any, bitSize: any, bitOffset: any, policy?: any): any;
- export function xor(bin: any, value: any, bitSize: any, bitOffset: any, policy?: any): any;
- export function and(bin: any, value: any, bitSize: any, bitOffset: any, policy?: any): any;
- export function not(bin: any, bitSize: any, bitOffset: any, policy?: any): any;
- export function lShift(bin: any, shift: number, bitSize: any, bitOffset: any, policy?: any): any;
- export function rShift(bin: any, shift: number, bitSize: any, bitOffset: any, policy?: any): any;
- export function add(bin: any, action: number, value: any, bitSize: any, bitOffset: any, policy?: any): any;
- export function subtract(bin: any, action: number, value: any, bitSize: any, bitOffset: any, policy?: any): any;
- export function setInt(bin: any, value: any, bitSize: any, bitOffset: any, policy?: any): any;
- export function get(bin: any, bitSize: any, bitOffset: any): any;
- export function count(bin: any, bitSize: any, bitOffset: any): number;
- export function lScan(bin: any, value: any, bitSize: any, bitOffset: any): number;
- export function rScan(bin: any, value: any, bitSize: any, bitOffset: any): number;
- export function getInt(bin: any, sign: boolean, bitSize: any, bitOffset: any): any;
- }
- export namespace hll {
- export function initMH(bin: any, mhBitCount: number, indexBitCount: number, policy?: any): any;
- export function init(bin: any, indexBitCount: number, policy?: any): any;
- export function addMH(bin: any, mhBitCount: number, indexBitCount: number, list: any, policy?: any): any;
- export function add_1(bin: any, indexBitCount: number, list: any, policy?: any): any;
- export { add_1 as add };
- export function update(bin: any, list: any, policy?: any): any;
- export function getCount(bin: any): any;
- export function getUnion(bin: any, list: any): any;
- export function getUnionCount(bin: any, list: any): any;
- export function getIntersectCount(bin: any, list: any): any;
- export function getSimilarity(bin: any, list: any): any[];
- export function describe(bin: any): any;
- export function mayContain(bin: any, list: any): any;
- }
- function _val(value: any): {
- [x: number]: any;
- op: any;
- }[];
- export { _val as list, _val as map, _let as let, _var as var };
-}
-declare module "info" {
- export function parse(info: string): any;
- export const separators: {
- bins: (string | typeof splitBins)[];
- 'bins/*': (typeof splitBins)[];
- 'namespace/*': string[];
- service: string[];
- sindex: string[];
- 'sindex/*': string[];
- 'sindex/*/**': string[];
- 'udf-list': string[];
- 'get-dc-config': string[];
- sets: string[];
- 'sets/*': string[];
- 'sets/*/**': (string | typeof chop)[];
- };
- function splitBins(str: any): {
- stats: {};
- names: any[];
- };
- function chop(str: any): any;
- export {};
-}
-declare module "operations" {
- export function read(bin: string): Operation;
- export function write(bin: string, value: any): Operation;
- export function add(bin: string, value: (number | any)): Operation;
- export function incr(bin: any, value: any): any;
- export function append(bin: string, value: (string | Buffer)): Operation;
- export function prepend(bin: string, value: (string | Buffer)): Operation;
- export function touch(ttl?: number | undefined): Operation;
- function _delete(): Operation;
- export class Operation {
- protected constructor();
- op: any;
- bin: any;
- }
- export { _delete as delete };
-}
-declare module "lists" {
- export function setOrder(bin: string, order: number): any;
- export function sort(bin: string, flags: number): any;
- export function append(bin: string, value: any, policy?: any): any;
- export function appendItems(bin: string, list: Array, policy?: any): any;
- export function insert(bin: string, index: number, value: any, policy?: any): any;
- export function insertItems(bin: string, index: number, list: Array, policy: any): any;
- export function pop(bin: string, index: number): any;
- export function popRange(bin: string, index: number, count?: number | undefined): any;
- export function remove(bin: string, index: number): any;
- export function removeRange(bin: string, index: number, count?: number | undefined): any;
- export function removeByIndex(bin: string, index: number, returnType?: number | undefined): any;
- export function removeByIndexRange(bin: string, index: number, count?: number | undefined, returnType?: number | undefined): any;
- export function removeByValue(bin: string, value: any, returnType?: number | undefined): any;
- export function removeByValueList(bin: string, values: Array, returnType?: number | undefined): any;
- export function removeByValueRange(bin: string, begin: any | null, end: any | null, returnType?: number | undefined): any;
- export function removeByValueRelRankRange(bin: string, value: any, rank: number, count?: number | undefined, returnType?: number | undefined): any;
- export function removeByRank(bin: string, rank: number, returnType?: number | undefined): any;
- export function removeByRankRange(bin: string, rank: any, count?: number | undefined, returnType?: number | undefined): any;
- export function clear(bin: string): any;
- export function set(bin: string, index: number, value: any, policy?: any): any;
- export function trim(bin: string, index: number, count: number): any;
- export function get(bin: string, index: number): any;
- export function getRange(bin: string, index: number, count?: number | undefined): any;
- export function getByIndex(bin: string, index: number, returnType?: number | undefined): any;
- export function getByIndexRange(bin: string, index: number, count?: number | undefined, returnType?: number | undefined): any;
- export function getByValue(bin: string, value: any, returnType?: number | undefined): any;
- export function getByValueList(bin: string, values: Array, returnType?: number | undefined): any;
- export function getByValueRange(bin: string, begin: any | null, end: any | null, returnType?: number | undefined): any;
- export function getByValueRelRankRange(bin: string, value: any, rank: number, count?: number | undefined, returnType?: number | undefined): any;
- export function getByRank(bin: string, rank: number, returnType?: number | undefined): any;
- export function getByRankRange(bin: string, rank: any, count?: number | undefined, returnType?: number | undefined): any;
- export function increment(bin: string, index: number, value?: number | undefined, policy?: any): any;
- export function size(bin: string): any;
-}
-declare module "hll" {
- export function init(bin: string, indexBits: number, minhashBits?: number | undefined): any;
- export function add(bin: string, list: any[], indexBits?: number | undefined, minhashBits?: number | undefined): any;
- export function setUnion(bin: string, list: any[]): any;
- export function refreshCount(bin: string): any;
- export function fold(bin: string, indexBits: number): any;
- export function getCount(bin: string): any;
- export function getUnion(bin: string, list: any[]): any;
- export function getUnionCount(bin: string, list: any[]): any;
- export function getIntersectCount(bin: string, list: any[]): any;
- export function getSimilarity(bin: string, list: any[]): any;
- export function describe(bin: string): any;
-}
-declare module "maps" {
- export function setPolicy(bin: string, policy: MapPolicy): any;
- export function put(bin: string, key: any, value: any, policy?: MapPolicy): any;
- export function putItems(bin: string, items: object, policy?: MapPolicy): any;
- export function increment(bin: string, key: any, incr: number, policy?: MapPolicy): any;
- export function decrement(bin: string, key: any, decr: number, policy?: MapPolicy): any;
- export function clear(bin: string): any;
- export function removeByKey(bin: string, key: any, returnType?: number | undefined): any;
- export function removeByKeyList(bin: string, keys: Array, returnType?: number | undefined): any;
- export function removeByKeyRange(bin: string, begin: any | null, end: any | null, returnType?: number | undefined): any;
- export function removeByKeyRelIndexRange(bin: string, key: any, index: number, count?: number | undefined, returnType?: number | undefined): any;
- export function removeByValue(bin: string, value: any, returnType?: number | undefined): any;
- export function removeByValueList(bin: string, values: Array, returnType?: number | undefined): any;
- export function removeByValueRange(bin: string, begin: any | null, end: any | null, returnType?: number | undefined): any;
- export function removeByValueRelRankRange(bin: string, value: any, rank: number, count?: number | undefined, returnType?: number | undefined): any;
- export function removeByIndex(bin: string, index: number, returnType?: number | undefined): any;
- export function removeByIndexRange(bin: string, index: number, count?: number | undefined, returnType?: number | undefined): any;
- export function removeByRank(bin: string, rank: number, returnType?: number | undefined): any;
- export function removeByRankRange(bin: string, rank: any, count?: number | undefined, returnType?: number | undefined): any;
- export function size(bin: string): any;
- export function getByKey(bin: string, key: any, returnType?: number | undefined): any;
- export function getByKeyRange(bin: string, begin: any | null, end: any | null, returnType?: number | undefined): any;
- export function getByKeyRelIndexRange(bin: string, key: any, index: number, count?: number | undefined, returnType?: number | undefined): any;
- export function getByValue(bin: string, value: any, returnType?: number | undefined): any;
- export function getByValueRange(bin: string, begin: any | null, end: any | null, returnType?: number | undefined): any;
- export function getByValueRelRankRange(bin: string, value: any, rank: number, count?: number | undefined, returnType?: number | undefined): any;
- export function getByIndex(bin: string, index: number, returnType?: number | undefined): any;
- export function getByIndexRange(bin: string, index: number, count?: number | undefined, returnType?: number | undefined): any;
- export function getByRank(bin: string, rank: number, returnType?: number | undefined): any;
- export function getByRankRange(bin: string, rank: any, count: number, returnType?: number | undefined): any;
-}
-declare module "bitwise" {
- export function resize(bin: string, size: number, flags?: number | undefined): BitwiseOperation;
- export function insert(bin: string, byteOffset: any, value: Buffer): BitwiseOperation;
- export function remove(bin: string, byteOffset: number, byteSize: number): BitwiseOperation;
- export function set(bin: string, bitOffset: number, bitSize: number, value: number | Buffer): BitwiseOperation;
- export function or(bin: string, bitOffset: number, bitSize: number, value: Buffer): BitwiseOperation;
- export function xor(bin: string, bitOffset: number, bitSize: number, value: Buffer): BitwiseOperation;
- export function and(bin: string, bitOffset: number, bitSize: number, value: Buffer): BitwiseOperation;
- export function not(bin: string, bitOffset: number, bitSize: number): BitwiseOperation;
- export function lshift(bin: string, bitOffset: number, bitSize: number, shift: number): BitwiseOperation;
- export function rshift(bin: string, bitOffset: number, bitSize: number, shift: number): BitwiseOperation;
- export function add(bin: string, bitOffset: number, bitSize: number, value: number, sign: boolean): OverflowableBitwiseOp;
- export function subtract(bin: string, bitOffset: number, bitSize: number, value: number, sign: boolean): OverflowableBitwiseOp;
- export function get(bin: string, bitOffset: number, bitSize: number): BitwiseOperation;
- export function getInt(bin: string, bitOffset: number, bitSize: number, sign: boolean): BitwiseOperation;
- export function lscan(bin: string, bitOffset: number, bitSize: number, value: boolean): BitwiseOperation;
- export function rscan(bin: string, bitOffset: number, bitSize: number, value: boolean): BitwiseOperation;
- class BitwiseOperation extends Operation {
- withPolicy(policy: BitwisePolicy): BitwiseOperation;
- policy: any;
- }
- class OverflowableBitwiseOp extends BitwiseOperation {
- overflowAction: any;
- onOverflow(action: number): OverflowableBitwiseOp;
- }
- import Operation_1 = require("operations");
- import Operation = Operation_1.Operation;
- export {};
-}
-declare module "exp_operations" {
- export function read(bin: string, exp: any, flags: any): Operation;
- export function write(bin: string, exp: any, flags: any): Operation;
- export class ExpOperation {
- protected constructor();
- op: any;
- bin: any;
- exp: any;
- flags: any;
- }
-}
-declare module "policies/base_policy" {
- export = BasePolicy;
- class BasePolicy {
- constructor(props: any);
- socketTimeout: number;
- totalTimeout: number;
- maxRetries: number;
- filterExpression: any;
- compress: boolean;
- }
-}
-declare module "policies/apply_policy" {
- export = ApplyPolicy;
- class ApplyPolicy extends BasePolicy {
- key: number;
- commitLevel: number;
- ttl: number;
- durableDelete: boolean;
- }
- import BasePolicy = require("policies/base_policy");
-}
-declare module "policies/operate_policy" {
- export = OperatePolicy;
- class OperatePolicy extends BasePolicy {
- key: number;
- gen: number;
- exists: number;
- replica: number;
- commitLevel: number;
- deserialize: boolean;
- durableDelete: boolean;
- readModeAP: number;
- readModeSC: number;
- }
- import BasePolicy = require("policies/base_policy");
-}
-declare module "policies/query_policy" {
- export = QueryPolicy;
- class QueryPolicy extends BasePolicy {
- deserialize: boolean;
- failOnClusterChange: boolean;
- infoTimeout: number;
- }
- import BasePolicy = require("policies/base_policy");
-}
-declare module "policies/read_policy" {
- export = ReadPolicy;
- class ReadPolicy extends BasePolicy {
- key: number;
- replica: number;
- readModeAP: number;
- readModeSC: number;
- deserialize: boolean;
- }
- import BasePolicy = require("policies/base_policy");
-}
-declare module "policies/remove_policy" {
- export = RemovePolicy;
- class RemovePolicy extends BasePolicy {
- generation: number;
- key: number;
- gen: number;
- commitLevel: number;
- durableDelete: boolean;
- }
- import BasePolicy = require("policies/base_policy");
-}
-declare module "policies/scan_policy" {
- export = ScanPolicy;
- class ScanPolicy extends BasePolicy {
- durableDelete: boolean;
- recordsPerSecond: number;
- maxRecords: number;
- }
- import BasePolicy = require("policies/base_policy");
-}
-declare module "policies/write_policy" {
- export = WritePolicy;
- class WritePolicy extends BasePolicy {
- compressionThreshold: number;
- key: number;
- gen: number;
- exists: number;
- commitLevel: number;
- durableDelete: boolean;
- }
- import BasePolicy = require("policies/base_policy");
-}
-declare module "policies/batch_policy" {
- export = BatchPolicy;
- class BatchPolicy extends BasePolicy {
- replica: number;
- readModeAP: number;
- readModeSC: number;
- concurrent: boolean;
- allowInline: boolean;
- allowInlineSSD: boolean;
- respondAllKeys: boolean;
- sendSetName: boolean;
- deserialize: boolean;
- }
- import BasePolicy = require("policies/base_policy");
-}
-declare module "policies/batch_apply_policy" {
- export = BatchApplyPolicy;
- class BatchApplyPolicy {
- constructor(props?: any);
- filterExpression: any;
- key: number;
- commitLevel: number;
- ttl: number;
- durableDelete: boolean;
- }
-}
-declare module "policies/batch_read_policy" {
- export = BatchReadPolicy;
- class BatchReadPolicy {
- constructor(props?: any);
- filterExpression: any;
- readModeAP: number;
- readModeSC: number;
- }
-}
-declare module "policies/batch_remove_policy" {
- export = BatchRemovePolicy;
- class BatchRemovePolicy {
- constructor(props?: any);
- filterExpression: any;
- key: number;
- commitLevel: number;
- gen: number;
- generation: number;
- durableDelete: boolean;
- }
-}
-declare module "policies/batch_write_policy" {
- export = BatchWritePolicy;
- class BatchWritePolicy {
- constructor(props?: any);
- filterExpression: any;
- key: number;
- commitLevel: number;
- gen: number;
- exists: number;
- durableDelete: boolean;
- }
-}
-declare module "policies/hll_policy" {
- export = HLLPolicy;
- class HLLPolicy {
- constructor(props?: any);
- writeFlags: number;
- }
-}
-declare module "policies/info_policy" {
- export = InfoPolicy;
- class InfoPolicy {
- constructor(props?: any);
- timeout: number;
- sendAsIs: boolean;
- checkBounds: boolean;
- }
-}
-declare module "policies/list_policy" {
- export = ListPolicy;
- class ListPolicy {
- constructor(props?: any);
- order: number;
- writeFlags: number;
- }
-}
-declare module "policies/map_policy" {
- export = MapPolicy;
- class MapPolicy {
- constructor(props?: any);
- order: number;
- writeMode: number;
- writeFlags: number;
- }
-}
-declare module "policy" {
- export function createPolicy(type: any, values: any): CommandQueuePolicy | BasePolicy | BatchApplyPolicy | BatchReadPolicy | BatchRemovePolicy | BatchWritePolicy | HLLPolicy | InfoPolicy | undefined;
- import BasePolicy = require("policies/base_policy");
- import ApplyPolicy = require("policies/apply_policy");
- import OperatePolicy = require("policies/operate_policy");
- import QueryPolicy = require("policies/query_policy");
- import ReadPolicy = require("policies/read_policy");
- import RemovePolicy = require("policies/remove_policy");
- import ScanPolicy = require("policies/scan_policy");
- import WritePolicy = require("policies/write_policy");
- import BatchPolicy = require("policies/batch_policy");
- import BatchApplyPolicy = require("policies/batch_apply_policy");
- import BatchReadPolicy = require("policies/batch_read_policy");
- import BatchRemovePolicy = require("policies/batch_remove_policy");
- import BatchWritePolicy = require("policies/batch_write_policy");
- import CommandQueuePolicy = require("policies/command_queue_policy");
- import HLLPolicy = require("policies/hll_policy");
- import InfoPolicy = require("policies/info_policy");
- import ListPolicy = require("policies/list_policy");
- import MapPolicy = require("policies/map_policy");
- export { BasePolicy, ApplyPolicy, OperatePolicy, QueryPolicy, ReadPolicy, RemovePolicy, ScanPolicy, WritePolicy, BatchPolicy, BatchApplyPolicy, BatchReadPolicy, BatchRemovePolicy, BatchWritePolicy, CommandQueuePolicy, HLLPolicy, InfoPolicy, ListPolicy, MapPolicy };
-}
-declare module "features" {
- export const CDT_MAP: "cdt-map";
- export const CDT_LIST: "cdt-list";
- export const BLOB_BITS: "blob-bits";
-}
-declare module "commands/command" {
- const _exports: Class;
- export = _exports;
-}
-declare module "record" {
- export = Record;
- class Record {
- private constructor();
- key: any;
- bins: any;
- ttl: any;
- gen: any;
- type: any;
- policy: any;
- readAllBins: any;
- ops: any;
- udf: any;
- }
-}
-declare module "commands/batch_command" {
- function _exports(asCommand: any): {
- new (): {
- convertResult(results: any): any;
- };
- };
- export = _exports;
-}
-declare module "commands/connect_command" {
- function _exports(asCommand: any): {
- new (client: any, callback: any): {
- ensureConnected: boolean;
- };
- };
- export = _exports;
-}
-declare module "commands/exists_command" {
- function _exports(asCommand: any): {
- new (): {
- convertResponse(error: any): any[];
- };
- };
- export = _exports;
-}
-declare module "commands/read_record_command" {
- function _exports(asCommand: any): {
- new (client: any, key: any, args: any, callback: any): {
- key: any;
- convertResult(bins: any, metadata: any): any;
- };
- };
- export = _exports;
-}
-declare module "bigint" {
- export const BigInt: BigIntConstructor;
- export const bigIntSupported: true;
- export function isInt64(value: any): boolean;
-}
-declare module "key" {
- export = Key;
- function Key(ns: string, set: string, key: (string | number | Buffer), digest?: string | undefined): void;
- class Key {
- constructor(ns: string, set: string, key: (string | number | Buffer), digest?: string | undefined);
- ns: string;
- set: string;
- key: string | number | Buffer;
- digest: string | null;
- equals(other: any): any;
- }
- namespace Key {
- function fromASKey(keyObj: any): Key | null;
- }
-}
-declare module "commands/stream_command" {
- function _exports(asCommand: any): {
- new (stream: any, args: any): {
- stream: any;
- callback(error: any, record: any): boolean;
- convertResult(bins: any, meta: any, asKey: any): any;
- };
- };
- export = _exports;
-}
-declare module "commands/write_record_command" {
- function _exports(asCommand: any): {
- new (client: any, key: any, args: any, callback: any): {
- key: any;
- convertResult(): any;
- };
- };
- export = _exports;
-}
-declare module "job" {
- export = Job;
- function Job(client: any, jobID: any, module: any): void;
- class Job {
- constructor(client: any, jobID: any, module: any);
- client: any;
- jobID: any;
- module: any;
- private hasCompleted;
- private checkStatus;
- info(policy: any, callback?: JobinfoCallback | undefined): Promise | null;
- wait(pollInterval?: number | undefined, callback?: JobdoneCallback | undefined): Promise | null;
- waitUntilDone: any;
- }
- namespace Job {
- function safeRandomJobID(): number;
- function pollUntilDone(statusFunction: any, pollInterval: any): Promise;
- }
-}
-declare module "commands/query_background_command" {
- function _exports(asCommand: any): {
- new (client: any, ns: any, set: any, queryObj: any, policy: any, queryID: any, callback: any): {
- client: any;
- queryID: any;
- queryObj: any;
- convertResult(): Job;
- };
- };
- export = _exports;
- import Job = require("job");
-}
-declare module "commands/index" {
- class ApplyCommand {
- }
- const BatchExistsCommand_base: {
- new (): {
- convertResult(results: any): any;
- };
- };
- class BatchExistsCommand extends BatchExistsCommand_base {
- }
- const BatchGetCommand_base: {
- new (): {
- convertResult(results: any): any;
- };
- };
- class BatchGetCommand extends BatchGetCommand_base {
- }
- const BatchReadCommand_base: {
- new (): {
- convertResult(results: any): any;
- };
- };
- class BatchReadCommand extends BatchReadCommand_base {
- }
- const BatchWriteCommand_base: {
- new (): {
- convertResult(results: any): any;
- };
- };
- class BatchWriteCommand extends BatchWriteCommand_base {
- }
- const BatchApplyCommand_base: {
- new (): {
- convertResult(results: any): any;
- };
- };
- class BatchApplyCommand extends BatchApplyCommand_base {
- }
- const BatchRemoveCommand_base: {
- new (): {
- convertResult(results: any): any;
- };
- };
- class BatchRemoveCommand extends BatchRemoveCommand_base {
- }
- const BatchSelectCommand_base: {
- new (): {
- convertResult(results: any): any;
- };
- };
- class BatchSelectCommand extends BatchSelectCommand_base {
- }
- const ConnectCommand_base: {
- new (client: any, callback: any): {
- ensureConnected: boolean;
- };
- };
- class ConnectCommand extends ConnectCommand_base {
- }
- const ExistsCommand_base: {
- new (): {
- convertResponse(error: any): any[];
- };
- };
- class ExistsCommand extends ExistsCommand_base {
- }
- const GetCommand_base: {
- new (client: any, key: any, args: any, callback: any): {
- key: any;
- convertResult(bins: any, metadata: any): any;
- };
- };
- class GetCommand extends GetCommand_base {
- }
- class IndexCreateCommand {
- }
- class IndexRemoveCommand {
- }
- class InfoAnyCommand {
- }
- class InfoForeachCommand {
- }
- class InfoHostCommand {
- }
- class InfoNodeCommand {
- }
- class JobInfoCommand {
- }
- const OperateCommand_base: {
- new (client: any, key: any, args: any, callback: any): {
- key: any;
- convertResult(bins: any, metadata: any): any;
- };
- };
- class OperateCommand extends OperateCommand_base {
- }
- const PutCommand_base: {
- new (client: any, key: any, args: any, callback: any): {
- key: any;
- convertResult(): any;
- };
- };
- class PutCommand extends PutCommand_base {
- }
- const QueryCommand_base: {
- new (stream: any, args: any): {
- stream: any;
- callback(error: any, record: any): boolean;
- convertResult(bins: any, meta: any, asKey: any): any;
- };
- };
- class QueryCommand extends QueryCommand_base {
- }
- class QueryApplyCommand {
- }
- const QueryBackgroundCommand_base: {
- new (client: any, ns: any, set: any, queryObj: any, policy: any, queryID: any, callback: any): {
- client: any;
- queryID: any;
- queryObj: any;
- convertResult(): import("job");
- };
- };
- class QueryBackgroundCommand extends QueryBackgroundCommand_base {
- }
- const QueryOperateCommand_base: {
- new (client: any, ns: any, set: any, queryObj: any, policy: any, queryID: any, callback: any): {
- client: any;
- queryID: any;
- queryObj: any;
- convertResult(): import("job");
- };
- };
- class QueryOperateCommand extends QueryOperateCommand_base {
- }
- const QueryForeachCommand_base: {
- new (stream: any, args: any): {
- stream: any;
- callback(error: any, record: any): boolean;
- convertResult(bins: any, meta: any, asKey: any): any;
- };
- };
- class QueryForeachCommand extends QueryForeachCommand_base {
- }
- const RemoveCommand_base: {
- new (client: any, key: any, args: any, callback: any): {
- key: any;
- convertResult(): any;
- };
- };
- class RemoveCommand extends RemoveCommand_base {
- }
- const ScanCommand_base: {
- new (stream: any, args: any): {
- stream: any;
- callback(error: any, record: any): boolean;
- convertResult(bins: any, meta: any, asKey: any): any;
- };
- };
- class ScanCommand extends ScanCommand_base {
- }
- const ScanBackgroundCommand_base: {
- new (client: any, ns: any, set: any, queryObj: any, policy: any, queryID: any, callback: any): {
- client: any;
- queryID: any;
- queryObj: any;
- convertResult(): import("job");
- };
- };
- class ScanBackgroundCommand extends ScanBackgroundCommand_base {
- }
- const ScanOperateCommand_base: {
- new (client: any, ns: any, set: any, queryObj: any, policy: any, queryID: any, callback: any): {
- client: any;
- queryID: any;
- queryObj: any;
- convertResult(): import("job");
- };
- };
- class ScanOperateCommand extends ScanOperateCommand_base {
- }
- const SelectCommand_base: {
- new (client: any, key: any, args: any, callback: any): {
- key: any;
- convertResult(bins: any, metadata: any): any;
- };
- };
- class SelectCommand extends SelectCommand_base {
- }
- class TruncateCommand {
- }
- class UdfRegisterCommand {
- }
- class UdfRemoveCommand {
- }
- export { ApplyCommand as Apply, BatchExistsCommand as BatchExists, BatchGetCommand as BatchGet, BatchReadCommand as BatchRead, BatchWriteCommand as BatchWrite, BatchApplyCommand as BatchApply, BatchRemoveCommand as BatchRemove, BatchSelectCommand as BatchSelect, ConnectCommand as Connect, ExistsCommand as Exists, GetCommand as Get, IndexCreateCommand as IndexCreate, IndexRemoveCommand as IndexRemove, InfoAnyCommand as InfoAny, InfoForeachCommand as InfoForeach, InfoHostCommand as InfoHost, InfoNodeCommand as InfoNode, JobInfoCommand as JobInfo, OperateCommand as Operate, PutCommand as Put, QueryCommand as Query, QueryApplyCommand as QueryApply, QueryBackgroundCommand as QueryBackground, QueryOperateCommand as QueryOperate, QueryForeachCommand as QueryForeach, RemoveCommand as Remove, ScanCommand as Scan, ScanBackgroundCommand as ScanBackground, ScanOperateCommand as ScanOperate, SelectCommand as Select, TruncateCommand as Truncate, UdfRegisterCommand as UdfRegister, UdfRemoveCommand as UdfRemove };
-}
-declare module "config" {
- export = Config;
- class Config {
- constructor(config?: any);
- user: any;
- password: any;
- authMode: any;
- clusterName: string;
- port: any;
- tls: any;
- hosts: (Host[] | string);
- policies: Policies;
- log: any;
- connTimeoutMs: any;
- loginTimeoutMs: any;
- maxSocketIdle: any;
- tenderInterval: any;
- maxConnsPerNode: any;
- minConnsPerNode: any;
- modlua: any;
- sharedMemory: any;
- useAlternateAccessAddress: boolean;
- rackAware: boolean;
- rackId: any;
- setDefaultPolicies(policies: any): void;
- private [inspect];
- }
- const inspect: unique symbol;
-}
-declare module "index_job" {
- export = IndexJob;
- function IndexJob(client: any, namespace: any, indexName: any): void;
- class IndexJob {
- constructor(client: any, namespace: any, indexName: any);
- client: any;
- namespace: any;
- indexName: any;
- private hasCompleted;
- private info;
- }
-}
-declare module "record_stream" {
- export = RecordStream;
- function RecordStream(client: any): void;
- class RecordStream {
- constructor(client: any);
- aborted: boolean;
- client: any;
- writable: boolean;
- readable: boolean;
- _read(): void;
- abort(): void;
- }
-}
-declare module "query" {
- export = Query;
- function Query(client: Client, ns: string, set: string, options?: {
- filters?: any[] | undefined;
- select?: string[] | undefined;
- nobins?: boolean | undefined;
- } | undefined): void;
- class Query {
- constructor(client: Client, ns: string, set: string, options?: {
- filters?: any[] | undefined;
- select?: string[] | undefined;
- nobins?: boolean | undefined;
- } | undefined);
- client: any;
- ns: string;
- set: string;
- filters: any[];
- selected: string[] | undefined;
- nobins: boolean | undefined;
- udf: any;
- private pfEnabled;
- select(...args: string[]): void;
- where(predicate: any): void;
- setSindexFilter(sindexFilter: any): void;
- setUdf(udfModule: string, udfFunction: string, udfArgs?: any[] | undefined): void;
- partitions(begin: number, count: number, digest: string): void;
- partFilter: {
- begin: number;
- count: number;
- digest: string;
- } | undefined;
- foreach(policy?: QueryPolicy, dataCb?: recordCallback | undefined, errorCb?: errorCallback | undefined, endCb?: doneCallback | undefined): RecordStream;
- results(policy?: QueryPolicy): Promise;
- apply(udfModule: string, udfFunction: string, udfArgs?: any[] | undefined, policy?: QueryPolicy, callback?: QueryaggregationResultCallback | undefined): Promise | null;
- background(udfModule: string, udfFunction: string, udfArgs?: any[] | undefined, policy?: WritePolicy, queryID?: number | undefined, callback?: jobCallback | undefined): Promise | null;
- operate(operations: any, policy?: QueryPolicy, queryID?: number | undefined, callback?: jobCallback | undefined): Promise | null;
- ops: any;
- }
- import RecordStream = require("record_stream");
-}
-declare module "scan" {
- export = Scan;
- function Scan(client: Client, ns: string, set: string, options?: {
- select?: string[] | undefined;
- nobins?: boolean | undefined;
- concurrent?: boolean | undefined;
- } | undefined): void;
- class Scan {
- constructor(client: Client, ns: string, set: string, options?: {
- select?: string[] | undefined;
- nobins?: boolean | undefined;
- concurrent?: boolean | undefined;
- } | undefined);
- client: any;
- ns: string;
- set: string;
- selected: string[] | undefined;
- nobins: boolean | undefined;
- concurrent: boolean | undefined;
- private pfEnabled;
- select(...args: string[]): void;
- partitions(begin: number, count: number, digest: string): void;
- partFilter: {
- begin: number;
- count: number;
- digest: string;
- } | undefined;
- background(udfModule: string, udfFunction: string, udfArgs?: any[] | undefined, policy?: ScanPolicy, scanID?: number | undefined, callback?: jobCallback | undefined): Promise | null;
- udf: {
- module: string;
- funcname: string;
- args: any[] | undefined;
- } | undefined;
- operate(operations: any, policy?: ScanPolicy, scanID?: number | undefined, callback?: jobCallback | undefined): Promise | null;
- ops: any;
- foreach(policy?: ScanPolicy, dataCb?: recordCallback | undefined, errorCb?: errorCallback | undefined, endCb?: doneCallback | undefined): RecordStream;
- }
- import RecordStream = require("record_stream");
-}
-declare module "udf_job" {
- export = UdfJob;
- function UdfJob(client: any, udfModule: any, command: any): void;
- class UdfJob {
- constructor(client: any, udfModule: any, command: any);
- client: any;
- udfModule: any;
- command: any;
- private hasCompleted;
- private info;
- }
- namespace UdfJob {
- const REGISTER: string;
- const UNREGISTER: string;
- }
-}
-declare module "utils" {
- export function parseHostString(hostString: any): {
- addr: any;
- tlsname: any;
- port: number;
- };
- export function print(err: any, result: any): void;
-}
-declare module "client" {
- export = Client;
- function Client(config: Config): void;
- class Client {
- constructor(config: Config);
- config: Config;
- private as_client;
- private connected;
- captureStackTraces: boolean;
- private asExec;
- getNodes(): Array<{
- name: string;
- address: string;
- }>;
- addSeedHost(hostname: string, port?: number | undefined): void;
- removeSeedHost(hostname: string, port?: number | undefined): void;
- batchExists(keys: Key[], policy?: BatchPolicy, callback?: batchRecordsCallback | undefined): Promise | null;
- batchGet(keys: Key[], policy?: BatchPolicy, callback?: batchRecordsCallback | undefined): Promise | null;
- batchRead(records: {
- type: number;
- key: Key;
- bins?: string[];
- readAllBins?: boolean;
- }, policy?: BatchPolicy, callback?: batchRecordsCallback | undefined): Promise | null;
- batchWrite(records: {
- type: number;
- key: Key;
- }, policy?: BatchPolicy, callback?: batchRecordsCallback | undefined): Promise | null;
- batchApply(records: {
- type: number;
- key: Key;
- }, udf: object[], batchPolicy?: BatchPolicy, batchApplyPolicy?: any, callback?: batchRecordsCallback | undefined): Promise | null;
- batchRemove(records: {
- type: number;
- key: Key;
- }, batchPolicy?: BatchPolicy, batchRemovePolicy?: any, callback?: batchRecordsCallback | undefined): Promise | null;
- batchSelect(keys: Key[], bins: string[], policy?: BatchPolicy, callback?: batchRecordsCallback | undefined): Promise | null;
- close(releaseEventLoop?: boolean | undefined): void;
- connect(callback?: connectCallback | undefined): Promise | null;
- createIndex(options: {
- ns: string;
- set: string;
- bin: string;
- index: string;
- type?: any;
- datatype: any;
- }, policy?: InfoPolicy, callback?: jobCallback | undefined): Promise | null;
- createIntegerIndex(options: {
- ns: string;
- set: string;
- bin: string;
- index: string;
- type?: any;
- }, policy?: InfoPolicy, callback?: jobCallback | undefined): Promise | null;
- createStringIndex(options: {
- ns: string;
- set: string;
- bin: string;
- index: string;
- type?: any;
- }, policy?: InfoPolicy, callback?: jobCallback | undefined): Promise | null;
- createGeo2DSphereIndex(options: {
- ns: string;
- set: string;
- bin: string;
- index: string;
- type?: any;
- }, policy?: InfoPolicy, callback?: jobCallback | undefined): Promise | null;
- apply(key: Key, udfArgs: {
- module: string;
- funcname: string;
- args: Array<(number | string)>;
- }, policy?: ApplyPolicy, callback?: valueCallback | undefined): Promise | null;
- exists(key: Key, policy?: ReadPolicy, callback?: valueCallback | undefined): Promise | null;
- get(key: Key, policy?: ReadPolicy, callback?: recordCallback | undefined): Promise | null;
- indexRemove(namespace: string, index: string, policy?: InfoPolicy, callback?: doneCallback | undefined): Promise | null;
- info(request: string | null, host: {
- addr: string;
- port?: number | undefined;
- }, policy?: InfoPolicy, callback?: infoCallback | undefined): any;
- infoAny(request?: string | undefined, policy?: InfoPolicy, callback?: infoCallback | undefined): any;
- infoAll(request?: string | undefined, policy?: InfoPolicy, callback?: infoCallback | undefined): any;
- infoNode(request: string | null, node: {
- name: string;
- }, policy?: InfoPolicy, callback?: infoCallback | undefined): any;
- isConnected(checkTenderErrors?: boolean | undefined): boolean;
- operate(key: Key, operations: any, metadata?: any, policy?: OperatePolicy, callback?: recordCallback | undefined): any;
- incr: any;
- put(key: Key, bins: object, meta?: object, policy?: WritePolicy, callback?: writeCallback | undefined): any;
- query(ns: string, set: string, options?: object): Query;
- remove(key: Key, policy?: RemovePolicy, callback?: writeCallback | undefined): any;
- scan(ns: string, set: string, options?: object): Scan;
- select(key: Key, bins: string[], policy?: ReadPolicy, callback?: recordCallback | undefined): any;
- truncate(ns: string, set: string, beforeNanos: any, policy?: InfoPolicy, callback?: doneCallback | undefined): any;
- udfRegister(udfPath: any, udfType?: number | undefined, policy?: InfoPolicy, callback?: jobCallback | undefined): any;
- stats(): ClientStats;
- udfRemove(udfModule: string, policy?: InfoPolicy, callback?: jobCallback | undefined): any;
- updateLogging(logConfig: any): void;
- }
- import Config = require("config");
- import Query = require("query");
- import Scan = require("scan");
-}
-declare module "double" {
- export = Double;
- function Double(value: number): void;
- class Double {
- constructor(value: number);
- Double: number;
- value(): number;
- }
-}
-declare module "batch_type" {
- export const BATCH_READ: any;
- export const BATCH_WRITE: any;
- export const BATCH_APPLY: any;
- export const BATCH_REMOVE: any;
-}
-declare module "aerospike" {
- export const filter: typeof import("filter");
- export const exp: typeof import("exp");
- export namespace regex {
- const BASIC: number;
- const EXTENDED: number;
- const ICASE: number;
- const NEWLINE: number;
- }
- export type regex = number;
- export const info: typeof import("info");
- export const lists: typeof import("lists");
- export const hll: typeof import("hll");
- export const maps: typeof import("maps");
- export namespace cdt {
- const Context: typeof import("cdt_context");
- }
- export const bitwise: typeof import("bitwise");
- export const operations: typeof import("operations");
- export const policy: typeof import("policy");
- export const BasePolicy: typeof import("policies/base_policy");
- export const ApplyPolicy: typeof import("policies/apply_policy");
- export const BatchPolicy: typeof import("policies/batch_policy");
- export const OperatePolicy: typeof import("policies/operate_policy");
- export const QueryPolicy: typeof import("policies/query_policy");
- export const ReadPolicy: typeof import("policies/read_policy");
- export const RemovePolicy: typeof import("policies/remove_policy");
- export const ScanPolicy: typeof import("policies/scan_policy");
- export const WritePolicy: typeof import("policies/write_policy");
- export const BatchApplyPolicy: typeof import("policies/batch_apply_policy");
- export const BatchReadPolicy: typeof import("policies/batch_read_policy");
- export const BatchRemovePolicy: typeof import("policies/batch_remove_policy");
- export const BatchWritePolicy: typeof import("policies/batch_write_policy");
- export const CommandQueuePolicy: typeof import("policies/command_queue_policy");
- export const InfoPolicy: typeof import("policies/info_policy");
- export const ListPolicy: typeof import("policies/list_policy");
- export const MapPolicy: typeof import("policies/map_policy");
- export const status: typeof import("status");
- export const features: typeof import("features");
- export { AerospikeError };
- export const Client: typeof import("client");
- export const Config: typeof import("config");
- export const Double: typeof import("double");
- export const GeoJSON: typeof import("geojson");
- export const Key: typeof import("key");
- export const Record: typeof import("record");
- export type auth = number;
- export type language = number;
- export type log = number;
- export type ttl = number;
- export type jobStatus = number;
- export type indexDataType = number;
- export type indexType = number;
- export const print: typeof import("utils").print;
- export const releaseEventLoop: typeof EventLoop.releaseEventLoop;
- export function client(config?: any): import("client");
- export function connect(config?: any, callback?: connectCallback | undefined): Promise | null;
- export function setDefaultLogging(logInfo: any): void;
- export function setupGlobalCommandQueue(policy: CommandQueuePolicy): void;
- export const batchType: {
- BATCH_READ: any;
- BATCH_WRITE: any;
- BATCH_APPLY: any;
- BATCH_REMOVE: any;
- };
- import AerospikeError = require("error");
- import EventLoop = require("event_loop");
+declare module 'admin' {
+ export const User: typeof import("user");
+ export const Privilege: typeof import("privilege");
+ export const Role: typeof import("role");
+
+}
+declare module 'aerospike' {
+ export const filter: typeof import("filter");
+ export const exp: typeof import("exp");
+ export namespace regex {
+ const BASIC: number;
+ const EXTENDED: number;
+ const ICASE: number;
+ const NEWLINE: number;
+ }
+ export type regex = number;
+ export const info: typeof import("info");
+ export const admin: typeof import("admin");
+ export const lists: typeof import("lists");
+ export const hll: typeof import("hll");
+ export const maps: typeof import("maps");
+ export namespace cdt {
+ const Context: typeof import("cdt_context");
+ }
+ export const bitwise: typeof import("bitwise");
+ export const operations: typeof import("operations");
+ export const policy: typeof import("policy");
+ export const BasePolicy: typeof import("policies/base_policy");
+ export const ApplyPolicy: typeof import("policies/apply_policy");
+ export const BatchPolicy: typeof import("policies/batch_policy");
+ export const OperatePolicy: typeof import("policies/operate_policy");
+ export const QueryPolicy: typeof import("policies/query_policy");
+ export const ReadPolicy: typeof import("policies/read_policy");
+ export const RemovePolicy: typeof import("policies/remove_policy");
+ export const ScanPolicy: typeof import("policies/scan_policy");
+ export const WritePolicy: typeof import("policies/write_policy");
+ export const BatchApplyPolicy: typeof import("policies/batch_apply_policy");
+ export const BatchReadPolicy: typeof import("policies/batch_read_policy");
+ export const BatchRemovePolicy: typeof import("policies/batch_remove_policy");
+ export const BatchWritePolicy: typeof import("policies/batch_write_policy");
+ export const CommandQueuePolicy: typeof import("policies/command_queue_policy");
+ export const InfoPolicy: typeof import("policies/info_policy");
+ export const ListPolicy: typeof import("policies/list_policy");
+ export const MapPolicy: typeof import("policies/map_policy");
+ export const AdminPolicy: typeof import("policies/admin_policy");
+ export const status: typeof import("status");
+ export const features: typeof import("features");
+ export { AerospikeError };
+ export const Client: typeof import("client");
+ export const Config: typeof import("config");
+ export const Double: typeof import("double");
+ export const GeoJSON: typeof import("geojson");
+ export const Key: typeof import("key");
+ export const Record: typeof import("record");
+ export const Bin: typeof import("bin");
+ export type auth = number;
+ export type language = number;
+ export type log = number;
+ export type ttl = number;
+ export type jobStatus = number;
+ export type indexDataType = number;
+ export type indexType = number;
+ export const print: typeof import("utils").print;
+ export const releaseEventLoop: typeof EventLoop.releaseEventLoop;
+ export function client(config?: any): import("client");
+ export function connect(config?: any, callback?: connectCallback | undefined): Promise | null;
+ export function setDefaultLogging(logInfo: any): void;
+ export function setupGlobalCommandQueue(policy: CommandQueuePolicy): void;
+ export const batchType: {
+ BATCH_READ: any;
+ BATCH_WRITE: any;
+ BATCH_APPLY: any;
+ BATCH_REMOVE: any;
+ };
+ export const privilegeCode: {
+ USER_ADMIN: any;
+ SYS_ADMIN: any;
+ DATA_ADMIN: any;
+ UDF_ADMIN: any;
+ SINDEX_ADMIN: any;
+ READ: any;
+ READ_WRITE: any;
+ READ_WRITE_UDF: any;
+ WRITE: any;
+ TRUNCATE: any;
+ };
+ import AerospikeError = require("error");
+ import EventLoop = require("event_loop");
+}
+declare module 'batch_type' {
+ export const BATCH_READ: any;
+ export const BATCH_WRITE: any;
+ export const BATCH_APPLY: any;
+ export const BATCH_REMOVE: any;
+}
+declare module 'bigint' {
+ export const BigInt: BigIntConstructor;
+ export const bigIntSupported: true;
+ export function isInt64(value: any): boolean;
+}
+declare module 'bin' {
+ export = Bin;
+ class Bin {
+ private constructor();
+ name: any;
+ value: any;
+ }
+}
+declare module 'bitwise' {
+ export function resize(bin: string, size: number, flags?: number | undefined): BitwiseOperation;
+ export function insert(bin: string, byteOffset: any, value: Buffer): BitwiseOperation;
+ export function remove(bin: string, byteOffset: number, byteSize: number): BitwiseOperation;
+ export function set(bin: string, bitOffset: number, bitSize: number, value: number | Buffer): BitwiseOperation;
+ export function or(bin: string, bitOffset: number, bitSize: number, value: Buffer): BitwiseOperation;
+ export function xor(bin: string, bitOffset: number, bitSize: number, value: Buffer): BitwiseOperation;
+ export function and(bin: string, bitOffset: number, bitSize: number, value: Buffer): BitwiseOperation;
+ export function not(bin: string, bitOffset: number, bitSize: number): BitwiseOperation;
+ export function lshift(bin: string, bitOffset: number, bitSize: number, shift: number): BitwiseOperation;
+ export function rshift(bin: string, bitOffset: number, bitSize: number, shift: number): BitwiseOperation;
+ export function add(bin: string, bitOffset: number, bitSize: number, value: number, sign: boolean): OverflowableBitwiseOp;
+ export function subtract(bin: string, bitOffset: number, bitSize: number, value: number, sign: boolean): OverflowableBitwiseOp;
+ export function get(bin: string, bitOffset: number, bitSize: number): BitwiseOperation;
+ export function getInt(bin: string, bitOffset: number, bitSize: number, sign: boolean): BitwiseOperation;
+ export function lscan(bin: string, bitOffset: number, bitSize: number, value: boolean): BitwiseOperation;
+ export function rscan(bin: string, bitOffset: number, bitSize: number, value: boolean): BitwiseOperation;
+ class BitwiseOperation extends Operation {
+ withPolicy(policy: BitwisePolicy): BitwiseOperation;
+ policy: any;
+ }
+ class OverflowableBitwiseOp extends BitwiseOperation {
+ overflowAction: any;
+ onOverflow(action: number): OverflowableBitwiseOp;
+ }
+ import Operation_1 = require("operations");
+ import Operation = Operation_1.Operation;
+ export {};
+}
+declare module 'cdt_context' {
+ export = CdtContext;
+ class CdtContext {
+ static getContextType(ctx: CdtContext, type: number): number;
+ items: any[];
+ addListIndex(index: number): CdtContext;
+ addListIndexCreate(index: number, order: number, pad: boolean): CdtContext;
+ addListRank(rank: number): CdtContext;
+ addListValue(value: any): CdtContext;
+ addMapIndex(index: number): CdtContext;
+ addMapRank(rank: number): CdtContext;
+ addMapKey(key: any): CdtContext;
+ addMapKeyCreate(key: any, order: number): CdtContext;
+ addMapValue(value: any): CdtContext;
+ private add;
+ }
+}
+declare module 'client' {
+ export = Client;
+ function Client(config: Config): void;
+ class Client {
+ constructor(config: Config);
+ config: Config;
+ private as_client;
+ private connected;
+ captureStackTraces: boolean;
+ private asExec;
+ getNodes(): Array<{
+ name: string;
+ address: string;
+ }>;
+ contextToBase64(context: any): string;
+ contextFromBase64(serializedContext: string): CdtContext;
+ changePassword(user: string, password: string, policy: any): void;
+ createUser(user: string, password: string, roles: Array, policy: any): void;
+ createRole(roleName: string, privileges: Array, policy: any, whitelist: Array, readQuota: number, writeQuota: number): void;
+ dropRole(roleName: string, policy: any): void;
+ dropUser(user: string, policy: any): void;
+ grantPrivileges(roleName: string, privileges: Array, policy: any): void;
+ grantRoles(user: string, roles: Array, policy: any): void;
+ queryRole(roleName: string, policy: any): Role;
+ queryRoles(policy: any): Array;
+ queryUser(user: string, policy: any): User;
+ queryUsers(policy: any): Array;
+ revokePrivileges(roleName: string, privileges: Array, policy: any): void;
+ revokeRoles(user: string, roles: Array, policy: any): void;
+ setQuotas(roleName: string, readQuota: number, writeQuota: number, policy: any): void;
+ setWhitelist(roleName: string, whitelist: Array, policy: any): void;
+ addSeedHost(hostname: string, port?: number | undefined): void;
+ removeSeedHost(hostname: string, port?: number | undefined): void;
+ batchExists(keys: Key[], policy?: BatchPolicy, callback?: batchRecordsCallback | undefined): Promise | null;
+ batchGet(keys: Key[], policy?: BatchPolicy, callback?: batchRecordsCallback | undefined): Promise | null;
+ batchRead(records: {
+ type: number;
+ key: Key;
+ bins?: string[];
+ readAllBins?: boolean;
+ ops?: any[];
+ }, policy?: BatchPolicy, callback?: batchRecordsCallback | undefined): Promise | null;
+ batchWrite(records: {
+ type: number;
+ key: Key;
+ }, policy?: BatchPolicy, callback?: batchRecordsCallback | undefined): Promise | null;
+ batchApply(records: {
+ type: number;
+ key: Key;
+ }, udf: object[], batchPolicy?: BatchPolicy, batchApplyPolicy?: any, callback?: batchRecordsCallback | undefined): Promise | null;
+ batchRemove(records: {
+ type: number;
+ key: Key;
+ }, batchPolicy?: BatchPolicy, batchRemovePolicy?: any, callback?: batchRecordsCallback | undefined): Promise | null;
+ batchSelect(keys: Key[], bins: string[], policy?: BatchPolicy, callback?: batchRecordsCallback | undefined): Promise | null;
+ close(releaseEventLoop?: boolean | undefined): void;
+ connect(callback?: connectCallback | undefined): Promise | null;
+ createIndex(options: {
+ ns: string;
+ set: string;
+ bin: string;
+ index: string;
+ type?: any;
+ datatype: any;
+ context: any;
+ }, policy?: InfoPolicy, callback?: jobCallback | undefined): Promise | null;
+ createIntegerIndex(options: {
+ ns: string;
+ set: string;
+ bin: string;
+ index: string;
+ type?: any;
+ }, policy?: InfoPolicy, callback?: jobCallback | undefined): Promise | null;
+ createStringIndex(options: {
+ ns: string;
+ set: string;
+ bin: string;
+ index: string;
+ type?: any;
+ }, policy?: InfoPolicy, callback?: jobCallback | undefined): Promise | null;
+ createGeo2DSphereIndex(options: {
+ ns: string;
+ set: string;
+ bin: string;
+ index: string;
+ type?: any;
+ }, policy?: InfoPolicy, callback?: jobCallback | undefined): Promise | null;
+ apply(key: Key, udfArgs: {
+ module: string;
+ funcname: string;
+ args: Array<(number | string)>;
+ }, policy?: ApplyPolicy, callback?: valueCallback | undefined): Promise | null;
+ exists(key: Key, policy?: ReadPolicy, callback?: valueCallback | undefined): Promise | null;
+ get(key: Key, policy?: ReadPolicy, callback?: recordCallback | undefined): Promise | null;
+ indexRemove(namespace: string, index: string, policy?: InfoPolicy, callback?: doneCallback | undefined): Promise | null;
+ info(request: string | null, host: {
+ addr: string;
+ port?: number | undefined;
+ }, policy?: InfoPolicy, callback?: infoCallback | undefined): any;
+ infoAny(request?: string | undefined, policy?: InfoPolicy, callback?: infoCallback | undefined): any;
+ infoAll(request?: string | undefined, policy?: InfoPolicy, callback?: infoCallback | undefined): any;
+ infoNode(request: string | null, node: {
+ name: string;
+ }, policy?: InfoPolicy, callback?: infoCallback | undefined): any;
+ isConnected(checkTenderErrors?: boolean | undefined): boolean;
+ operate(key: Key, operations: any, metadata?: any, policy?: OperatePolicy, callback?: recordCallback | undefined): any;
+ incr: any;
+ put(key: Key, bins: object, meta?: object, policy?: WritePolicy, callback?: writeCallback | undefined): any;
+ query(ns: string, set: string, options?: object): Query;
+ remove(key: Key, policy?: RemovePolicy, callback?: writeCallback | undefined): any;
+ scan(ns: string, set: string, options?: object): Scan;
+ select(key: Key, bins: string[], policy?: ReadPolicy, callback?: recordCallback | undefined): any;
+ truncate(ns: string, set: string, beforeNanos: any, policy?: InfoPolicy, callback?: doneCallback | undefined): any;
+ udfRegister(udfPath: any, udfType?: number | undefined, policy?: InfoPolicy, callback?: jobCallback | undefined): any;
+ stats(): ClientStats;
+ udfRemove(udfModule: string, policy?: InfoPolicy, callback?: jobCallback | undefined): any;
+ updateLogging(logConfig: any): void;
+ }
+ import Config = require("config");
+ import Query = require("query");
+ import Scan = require("scan");
+}
+declare module 'commands/batch_command' {
+ function _exports(asCommand: any): {
+ new (): {
+ convertResult(results: any): any;
+ };
+ };
+ export = _exports;
+}
+declare module 'commands/command' {
+ const _exports: Class;
+ export = _exports;
+}
+declare module 'commands/connect_command' {
+ function _exports(asCommand: any): {
+ new (client: any, callback: any): {
+ ensureConnected: boolean;
+ };
+ };
+ export = _exports;
+}
+declare module 'commands/exists_command' {
+ function _exports(asCommand: any): {
+ new (): {
+ convertResponse(error: any): any[];
+ };
+ };
+ export = _exports;
+}
+declare module 'commands/index' {
+ class ApplyCommand {
+ }
+ const BatchExistsCommand_base: {
+ new (): {
+ convertResult(results: any): any;
+ };
+ };
+ class BatchExistsCommand extends BatchExistsCommand_base {
+ }
+ const BatchGetCommand_base: {
+ new (): {
+ convertResult(results: any): any;
+ };
+ };
+ class BatchGetCommand extends BatchGetCommand_base {
+ }
+ const BatchReadCommand_base: {
+ new (): {
+ convertResult(results: any): any;
+ };
+ };
+ class BatchReadCommand extends BatchReadCommand_base {
+ }
+ const BatchWriteCommand_base: {
+ new (): {
+ convertResult(results: any): any;
+ };
+ };
+ class BatchWriteCommand extends BatchWriteCommand_base {
+ }
+ const BatchApplyCommand_base: {
+ new (): {
+ convertResult(results: any): any;
+ };
+ };
+ class BatchApplyCommand extends BatchApplyCommand_base {
+ }
+ const BatchRemoveCommand_base: {
+ new (): {
+ convertResult(results: any): any;
+ };
+ };
+ class BatchRemoveCommand extends BatchRemoveCommand_base {
+ }
+ const BatchSelectCommand_base: {
+ new (): {
+ convertResult(results: any): any;
+ };
+ };
+ class BatchSelectCommand extends BatchSelectCommand_base {
+ }
+ class ChangePasswordCommand {
+ }
+ const ConnectCommand_base: {
+ new (client: any, callback: any): {
+ ensureConnected: boolean;
+ };
+ };
+ class ConnectCommand extends ConnectCommand_base {
+ }
+ const ExistsCommand_base: {
+ new (): {
+ convertResponse(error: any): any[];
+ };
+ };
+ class ExistsCommand extends ExistsCommand_base {
+ }
+ const GetCommand_base: {
+ new (client: any, key: any, args: any, callback: any): {
+ key: any;
+ convertResult(bins: any, metadata: any): any;
+ };
+ };
+ class GetCommand extends GetCommand_base {
+ }
+ class IndexCreateCommand {
+ }
+ class IndexRemoveCommand {
+ }
+ class InfoAnyCommand {
+ }
+ class InfoForeachCommand {
+ }
+ class InfoHostCommand {
+ }
+ class InfoNodeCommand {
+ }
+ class JobInfoCommand {
+ }
+ const OperateCommand_base: {
+ new (client: any, key: any, args: any, callback: any): {
+ key: any;
+ convertResult(bins: any, metadata: any): any;
+ };
+ };
+ class OperateCommand extends OperateCommand_base {
+ }
+ class PrivilegeGrantCommand {
+ }
+ class PrivilegeRevokeCommand {
+ }
+ const PutCommand_base: {
+ new (client: any, key: any, args: any, callback: any): {
+ key: any;
+ convertResult(): any;
+ };
+ };
+ class PutCommand extends PutCommand_base {
+ }
+ const QueryCommand_base: {
+ new (stream: any, args: any): {
+ stream: any;
+ callback(error: any, record: any): boolean;
+ convertResult(bins: any, meta: any, asKey: any): any;
+ };
+ };
+ class QueryCommand extends QueryCommand_base {
+ }
+ const QueryPagesCommand_base: {
+ new (stream: any, args: any): {
+ stream: any;
+ callback(error: any, record: any): boolean;
+ convertResult(bins: any, meta: any, asKey: any): any;
+ };
+ };
+ class QueryPagesCommand extends QueryPagesCommand_base {
+ }
+ class QueryApplyCommand {
+ }
+ const QueryBackgroundCommand_base: {
+ new (client: any, ns: any, set: any, queryObj: any, policy: any, queryID: any, callback: any): {
+ client: any;
+ queryID: any;
+ queryObj: any;
+ convertResult(): import("job");
+ };
+ };
+ class QueryBackgroundCommand extends QueryBackgroundCommand_base {
+ }
+ const QueryOperateCommand_base: {
+ new (client: any, ns: any, set: any, queryObj: any, policy: any, queryID: any, callback: any): {
+ client: any;
+ queryID: any;
+ queryObj: any;
+ convertResult(): import("job");
+ };
+ };
+ class QueryOperateCommand extends QueryOperateCommand_base {
+ }
+ const QueryForeachCommand_base: {
+ new (stream: any, args: any): {
+ stream: any;
+ callback(error: any, record: any): boolean;
+ convertResult(bins: any, meta: any, asKey: any): any;
+ };
+ };
+ class QueryForeachCommand extends QueryForeachCommand_base {
+ }
+ class QueryRoleCommand {
+ }
+ class QueryRolesCommand {
+ }
+ class QueryUserCommand {
+ }
+ class QueryUsersCommand {
+ }
+ const RemoveCommand_base: {
+ new (client: any, key: any, args: any, callback: any): {
+ key: any;
+ convertResult(): any;
+ };
+ };
+ class RemoveCommand extends RemoveCommand_base {
+ }
+ class RoleCreateCommand {
+ }
+ class RoleDropCommand {
+ }
+ class RoleGrantCommand {
+ }
+ class RoleRevokeCommand {
+ }
+ class RoleSetWhitelistCommand {
+ }
+ class RoleSetQuotasCommand {
+ }
+ const ScanCommand_base: {
+ new (stream: any, args: any): {
+ stream: any;
+ callback(error: any, record: any): boolean;
+ convertResult(bins: any, meta: any, asKey: any): any;
+ };
+ };
+ class ScanCommand extends ScanCommand_base {
+ }
+ const ScanPagesCommand_base: {
+ new (stream: any, args: any): {
+ stream: any;
+ callback(error: any, record: any): boolean;
+ convertResult(bins: any, meta: any, asKey: any): any;
+ };
+ };
+ class ScanPagesCommand extends ScanPagesCommand_base {
+ }
+ const ScanBackgroundCommand_base: {
+ new (client: any, ns: any, set: any, queryObj: any, policy: any, queryID: any, callback: any): {
+ client: any;
+ queryID: any;
+ queryObj: any;
+ convertResult(): import("job");
+ };
+ };
+ class ScanBackgroundCommand extends ScanBackgroundCommand_base {
+ }
+ const ScanOperateCommand_base: {
+ new (client: any, ns: any, set: any, queryObj: any, policy: any, queryID: any, callback: any): {
+ client: any;
+ queryID: any;
+ queryObj: any;
+ convertResult(): import("job");
+ };
+ };
+ class ScanOperateCommand extends ScanOperateCommand_base {
+ }
+ const SelectCommand_base: {
+ new (client: any, key: any, args: any, callback: any): {
+ key: any;
+ convertResult(bins: any, metadata: any): any;
+ };
+ };
+ class SelectCommand extends SelectCommand_base {
+ }
+ class TruncateCommand {
+ }
+ class UdfRegisterCommand {
+ }
+ class UdfRemoveCommand {
+ }
+ class UserCreateCommand {
+ }
+ class UserDropCommand {
+ }
+ export { ApplyCommand as Apply, BatchExistsCommand as BatchExists, BatchGetCommand as BatchGet, BatchReadCommand as BatchRead, BatchWriteCommand as BatchWrite, BatchApplyCommand as BatchApply, BatchRemoveCommand as BatchRemove, BatchSelectCommand as BatchSelect, ChangePasswordCommand as ChangePassword, ConnectCommand as Connect, ExistsCommand as Exists, GetCommand as Get, IndexCreateCommand as IndexCreate, IndexRemoveCommand as IndexRemove, InfoAnyCommand as InfoAny, InfoForeachCommand as InfoForeach, InfoHostCommand as InfoHost, InfoNodeCommand as InfoNode, JobInfoCommand as JobInfo, OperateCommand as Operate, PrivilegeGrantCommand as PrivilegeGrant, PrivilegeRevokeCommand as PrivilegeRevoke, PutCommand as Put, QueryCommand as Query, QueryPagesCommand as QueryPages, QueryApplyCommand as QueryApply, QueryBackgroundCommand as QueryBackground, QueryOperateCommand as QueryOperate, QueryForeachCommand as QueryForeach, QueryRoleCommand as QueryRole, QueryRolesCommand as QueryRoles, QueryUserCommand as QueryUser, QueryUsersCommand as QueryUsers, RemoveCommand as Remove, RoleCreateCommand as RoleCreate, RoleDropCommand as RoleDrop, RoleGrantCommand as RoleGrant, RoleRevokeCommand as RoleRevoke, RoleSetWhitelistCommand as RoleSetWhitelist, RoleSetQuotasCommand as RoleSetQuotas, ScanCommand as Scan, ScanPagesCommand as ScanPages, ScanBackgroundCommand as ScanBackground, ScanOperateCommand as ScanOperate, SelectCommand as Select, TruncateCommand as Truncate, UdfRegisterCommand as UdfRegister, UdfRemoveCommand as UdfRemove, UserCreateCommand as UserCreate, UserDropCommand as UserDrop };
+}
+declare module 'commands/query_background_command' {
+ function _exports(asCommand: any): {
+ new (client: any, ns: any, set: any, queryObj: any, policy: any, queryID: any, callback: any): {
+ client: any;
+ queryID: any;
+ queryObj: any;
+ convertResult(): Job;
+ };
+ };
+ export = _exports;
+ import Job = require(".job");
+}
+declare module 'commands/read_record_command' {
+ function _exports(asCommand: any): {
+ new (client: any, key: any, args: any, callback: any): {
+ key: any;
+ convertResult(bins: any, metadata: any): any;
+ };
+ };
+ export = _exports;
+}
+declare module 'commands/stream_command' {
+ function _exports(asCommand: any): {
+ new (stream: any, args: any): {
+ stream: any;
+ callback(error: any, record: any): boolean;
+ convertResult(bins: any, meta: any, asKey: any): any;
+ };
+ };
+ export = _exports;
+}
+declare module 'commands/write_record_command' {
+ function _exports(asCommand: any): {
+ new (client: any, key: any, args: any, callback: any): {
+ key: any;
+ convertResult(): any;
+ };
+ };
+ export = _exports;
+}
+declare module 'config' {
+ export = Config;
+ class Config {
+ constructor(config?: any);
+ user: any;
+ password: any;
+ authMode: any;
+ clusterName: string;
+ port: any;
+ tls: any;
+ hosts: (Host[] | string);
+ policies: Policies;
+ log: any;
+ connTimeoutMs: any;
+ loginTimeoutMs: any;
+ maxSocketIdle: any;
+ tenderInterval: any;
+ maxConnsPerNode: any;
+ minConnsPerNode: any;
+ modlua: any;
+ sharedMemory: any;
+ useAlternateAccessAddress: boolean;
+ rackAware: boolean;
+ rackId: any;
+ setDefaultPolicies(policies: any): void;
+ private [inspect];
+ }
+ const inspect: unique symbol;
+}
+declare module 'double' {
+ export = Double;
+ function Double(value: number): void;
+ class Double {
+ constructor(value: number);
+ Double: number;
+ value(): number;
+ }
+}
+declare module 'error' {
+ export = AerospikeError;
+ class AerospikeError extends Error {
+ private static fromASError;
+ private static copyASErrorProperties;
+ private static formatMessage;
+ private constructor();
+ code: number;
+ command: any | null;
+ func: string | null;
+ file: string | null;
+ line: number | null;
+ inDoubt: boolean;
+ private setStackTrace;
+ isServerError(): boolean;
+ get client(): any;
+ }
+}
+declare module 'event_loop' {
+ export function releaseEventLoop(): void;
+ export function registerASEventLoop(): void;
+ export function referenceEventLoop(): void;
+ export function unreferenceEventLoop(): void;
+ export function setCommandQueuePolicy(policy: any): void;
+}
+declare module 'exp' {
+ export function bool(value: any): {
+ [x: number]: any;
+ op: any;
+ }[];
+ export function int(value: any): {
+ [x: number]: any;
+ op: any;
+ }[];
+ export function uint(value: any): {
+ [x: number]: any;
+ op: any;
+ }[];
+ export function float(value: any): {
+ [x: number]: any;
+ op: any;
+ }[];
+ export function str(value: any): {
+ [x: number]: any;
+ op: any;
+ }[];
+ export function bytes(value: any, size: any): {
+ [x: number]: any;
+ op: any;
+ }[];
+ export function geo(value: any): {
+ [x: number]: any;
+ op: any;
+ }[];
+ export function nil(): {
+ op: any;
+ value: null;
+ }[];
+ export function inf(): {
+ op: any;
+ value: null;
+ }[];
+ export function wildcard(): {
+ op: any;
+ value: null;
+ }[];
+ export function keyInt(): {
+ [x: number]: any;
+ op: any;
+ }[];
+ export function keyStr(): {
+ [x: number]: any;
+ op: any;
+ }[];
+ export function keyBlob(): {
+ [x: number]: any;
+ op: any;
+ }[];
+ export function keyExist(): AerospikeExp;
+ export function binBool(binName: any): {
+ [x: number]: any;
+ op: any;
+ }[];
+ export function binInt(binName: any): {
+ [x: number]: any;
+ op: any;
+ }[];
+ export function binFloat(binName: any): {
+ [x: number]: any;
+ op: any;
+ }[];
+ export function binStr(binName: any): {
+ [x: number]: any;
+ op: any;
+ }[];
+ export function binBlob(binName: any): {
+ [x: number]: any;
+ op: any;
+ }[];
+ export function binGeo(binName: any): {
+ [x: number]: any;
+ op: any;
+ }[];
+ export function binList(binName: any): {
+ [x: number]: any;
+ op: any;
+ }[];
+ export function binMap(binName: any): {
+ [x: number]: any;
+ op: any;
+ }[];
+ export function binHll(binName: any): {
+ [x: number]: any;
+ op: any;
+ }[];
+ export function binType(binName: any): ({
+ op: any;
+ strVal: any;
+ } | {
+ op: any;
+ count: number;
+ })[];
+ export function binExists(binName: string): boolean;
+ export function setName(): {
+ op: any;
+ count: number;
+ }[];
+ export function deviceSize(): {
+ op: any;
+ count: number;
+ }[];
+ export function lastUpdate(): {
+ op: any;
+ count: number;
+ }[];
+ export function sinceUpdate(): {
+ op: any;
+ count: number;
+ }[];
+ export function voidTime(): {
+ op: any;
+ count: number;
+ }[];
+ export function ttl(): {
+ op: any;
+ count: number;
+ }[];
+ export function isTombstone(): {
+ op: any;
+ count: number;
+ }[];
+ export function memorySize(): {
+ op: any;
+ count: number;
+ }[];
+ export function digestModulo(): {
+ op: any;
+ count: number;
+ }[];
+ export function eq(left: any, right: any): {
+ op: any;
+ count: number;
+ }[];
+ export function ne(left: any, right: any): {
+ op: any;
+ count: number;
+ }[];
+ export function gt(left: any, right: any): {
+ op: any;
+ count: number;
+ }[];
+ export function ge(left: any, right: any): {
+ op: any;
+ count: number;
+ }[];
+ export function lt(left: any, right: any): {
+ op: any;
+ count: number;
+ }[];
+ export function le(left: any, right: any): {
+ op: any;
+ count: number;
+ }[];
+ export function cmpRegex(options: number, regex: string, cmpStr: AerospikeExp): AerospikeExp;
+ export function cmpGeo(left: any, right: any): {
+ op: any;
+ count: number;
+ }[];
+ export function not(expr: AerospikeExp): AerospikeExp;
+ export function and(...expr: any[]): never[];
+ export function or(...expr: any[]): never[];
+ export function exclusive(...expr: any[]): never[];
+ export function add(...expr: any[]): never[];
+ export function sub(...expr: any[]): never[];
+ export function mul(...expr: any[]): never[];
+ export function div(...expr: any[]): never[];
+ export function pow(...params: any[]): any[];
+ export function log(...params: any[]): any[];
+ export function mod(...params: any[]): any[];
+ export function abs(...params: any[]): any[];
+ export function floor(...params: any[]): any[];
+ export function ceil(...params: any[]): any[];
+ export function toInt(...params: any[]): any[];
+ export function toFloat(...params: any[]): any[];
+ export function intAnd(...expr: any[]): never[];
+ export function intOr(...expr: any[]): never[];
+ export function intXor(...expr: any[]): never[];
+ export function intNot(...params: any[]): any[];
+ export function intLshift(...params: any[]): any[];
+ export function intRshift(...params: any[]): any[];
+ export function intArshift(...params: any[]): any[];
+ export function intCount(...params: any[]): any[];
+ export function intLscan(...params: any[]): any[];
+ export function intRscan(...params: any[]): any[];
+ export function min(...expr: any[]): never[];
+ export function max(...expr: any[]): never[];
+ export function cond(...expr: any[]): never[];
+ function _let(...expr: any[]): never[];
+ export function def(varName: string, expr: AerospikeExp): AerospikeExp;
+ function _var(varName: string): AerospikeExp;
+ export const lists: {
+ size: (bin: any, ctx?: any) => any;
+ getByValue: (bin: any, value: any, returnType: any, ctx?: any) => any;
+ getByValueRange: (bin: any, begin: any, end: any, returnType: any, ctx?: any) => any;
+ getByValueList: (bin: any, value: any, returnType: any, ctx?: any) => any;
+ getByRelRankRangeToEnd: (bin: any, value: any, rank: any, returnType: any, ctx?: any) => any;
+ getByRelRankRange: (bin: any, value: any, rank: any, count: any, returnType: any, ctx?: any) => any;
+ getByIndex: (bin: any, index: any, valueType: any, returnType: any, ctx?: any) => any;
+ getByIndexRangeToEnd: (bin: any, index: any, returnType: any, ctx?: any) => any;
+ getByIndexRange: (bin: any, index: any, count: any, returnType: any, ctx?: any) => any;
+ getByRank: (bin: any, rank: any, valueType: any, returnType: any, ctx?: any) => any;
+ getByRankRangeToEnd: (bin: any, rank: any, returnType: any, ctx?: any) => any;
+ getByRankRange: (bin: any, rank: any, count: any, returnType: any, ctx?: any) => any;
+ append: (bin: any, value: any, policy?: any, ctx?: any) => any;
+ appendItems: (bin: any, value: any, policy?: any, ctx?: any) => any;
+ insert: (bin: any, value: any, idx: any, policy?: any, ctx?: any) => any;
+ insertItems: (bin: any, value: any, idx: any, policy?: any, ctx?: any) => any;
+ increment: (bin: any, value: any, idx: any, policy?: any, ctx?: any) => any;
+ set: (bin: any, value: any, idx: any, policy?: any, ctx?: any) => any;
+ clear: (bin: any, ctx?: any) => any;
+ sort: (bin: any, order: number, ctx?: any) => any;
+ removeByValue: (bin: any, value: any, ctx?: any, returnType?: any) => any;
+ removeByValueList: (bin: any, values: any, ctx?: any, returnType?: any) => any;
+ removeByValueRange: (bin: any, end: any, begin: any, ctx?: any, returnType?: any) => any;
+ removeByRelRankRangeToEnd: (bin: any, rank: any, value: any, ctx?: any, returnType?: any) => any;
+ removeByRelRankRange: (bin: any, count: any, rank: any, value: any, ctx?: any, returnType?: any) => any;
+ removeByIndex: (bin: any, idx: any, ctx?: any, returnType?: any) => any;
+ removeByIndexRangeToEnd: (bin: any, idx: any, ctx?: any, returnType?: any) => any;
+ removeByIndexRange: (bin: any, count: any, idx: any, ctx?: any, returnType?: any) => any;
+ removeByRank: (bin: any, rank: any, ctx?: any, returnType?: any) => any;
+ removeByRankRangeToEnd: (bin: any, rank: any, ctx?: any, returnType?: any) => any;
+ removeByRankRange: (bin: any, count: any, rank: any, ctx?: any, returnType?: any) => any;
+ };
+ export const maps: {
+ put: (bin: any, value: any, key: any, policy?: any, ctx?: any) => any;
+ putItems: (bin: any, map: any, policy?: any, ctx?: any) => any;
+ increment: (bin: any, value: any, key: any, policy?: any, ctx?: any) => any;
+ clear: (bin: any, ctx?: any) => any;
+ removeByKey: (bin: any, key: any, ctx?: any, returnType?: any) => any;
+ removeByKeyList: (bin: any, keys: any, ctx?: any, returnType?: any) => any;
+ removeByKeyRange: (bin: any, end: any, begin: any, ctx?: any, returnType?: any) => any;
+ removeByKeyRelIndexRangeToEnd: (bin: any, idx: any, key: any, ctx?: any, returnType?: any) => any;
+ removeByKeyRelIndexRange: (bin: any, count: any, idx: any, key: any, ctx?: any, returnType?: any) => any;
+ removeByValue: (bin: any, value: any, ctx?: any, returnType?: any) => any;
+ removeByValueList: (bin: any, values: any, ctx?: any, returnType?: any) => any;
+ removeByValueRange: (bin: any, end: any, begin: any, ctx?: any, returnType?: any) => any;
+ removeByValueRelRankRangeToEnd: (bin: any, rank: any, value: any, ctx?: any, returnType?: any) => any;
+ removeByValueRelRankRange: (bin: any, count: any, rank: any, value: any, ctx?: any, returnType?: any) => any;
+ removeByIndex: (bin: any, idx: any, ctx?: any, returnType?: any) => any;
+ removeByIndexRangeToEnd: (bin: any, idx: any, ctx?: any, returnType?: any) => any;
+ removeByIndexRange: (bin: any, count: any, idx: any, ctx?: any, returnType?: any) => any;
+ removeByRank: (bin: any, rank: any, ctx?: any, returnType?: any) => any;
+ removeByRankRangeToEnd: (bin: any, rank: any, ctx?: any, returnType?: any) => any;
+ removeByRankRange: (bin: any, count: any, rank: any, ctx?: any, returnType?: any) => any;
+ size: (bin: any, ctx?: any) => any;
+ getByKey: (bin: any, key: any, valueType: any, returnType: any, ctx?: any) => any;
+ getByKeyRange: (bin: any, end: any, begin: any, returnType: any, ctx?: any) => any;
+ getByKeyList: (bin: any, keys: any, returnType: any, ctx?: any) => any;
+ getByKeyRelIndexRangeToEnd: (bin: any, idx: any, key: any, returnType: any, ctx?: any) => any;
+ getByKeyRelIndexRange: (bin: any, count: any, idx: any, key: any, returnType: any, ctx?: any) => any;
+ getByValue: (bin: any, value: any, returnType: any, ctx?: any) => any;
+ getByValueRange: (bin: any, end: any, begin: any, returnType: any, ctx?: any) => any;
+ getByValueList: (bin: any, values: any, returnType: any, ctx?: any) => any;
+ getByValueRelRankRangeToEnd: (bin: any, rank: any, value: any, returnType: any, ctx?: any) => any;
+ getByValueRelRankRange: (bin: any, count: any, rank: any, value: any, returnType: any, ctx?: any) => any;
+ getByIndex: (bin: any, idx: any, valueType: any, returnType: any, ctx?: any) => any;
+ getByIndexRangeToEnd: (bin: any, idx: any, returnType: any, ctx?: any) => any;
+ getByIndexRange: (bin: any, count: any, idx: any, returnType: any, ctx?: any) => any;
+ getByRank: (bin: any, rank: any, valueType: any, returnType: any, ctx?: any) => any;
+ getByRankRangeToEnd: (bin: any, rank: any, returnType: any, ctx?: any) => any;
+ getByRankRange: (bin: any, count: any, rank: any, returnType: any, ctx?: any) => any;
+ };
+ export const bit: {
+ reSize: (bin: any, flags: number, byteSize: number, policy?: any) => any;
+ insert: (bin: any, value: any, byteOffset: any, policy?: any) => any;
+ remove: (bin: any, byteSize: number, byteOffset: any, policy?: any) => any;
+ set: (bin: any, value: any, bitSize: any, bitOffset: any, policy?: any) => any;
+ or: (bin: any, value: any, bitSize: any, bitOffset: any, policy?: any) => any;
+ xor: (bin: any, value: any, bitSize: any, bitOffset: any, policy?: any) => any;
+ and: (bin: any, value: any, bitSize: any, bitOffset: any, policy?: any) => any;
+ not: (bin: any, bitSize: any, bitOffset: any, policy?: any) => any;
+ lShift: (bin: any, shift: number, bitSize: any, bitOffset: any, policy?: any) => any;
+ rShift: (bin: any, shift: number, bitSize: any, bitOffset: any, policy?: any) => any;
+ add: (bin: any, action: number, value: any, bitSize: any, bitOffset: any, policy?: any) => any;
+ subtract: (bin: any, action: number, value: any, bitSize: any, bitOffset: any, policy?: any) => any;
+ setInt: (bin: any, value: any, bitSize: any, bitOffset: any, policy?: any) => any;
+ get: (bin: any, bitSize: any, bitOffset: any) => any;
+ count: (bin: any, bitSize: any, bitOffset: any) => number;
+ lScan: (bin: any, value: any, bitSize: any, bitOffset: any) => number;
+ rScan: (bin: any, value: any, bitSize: any, bitOffset: any) => number;
+ getInt: (bin: any, sign: boolean, bitSize: any, bitOffset: any) => any;
+ };
+ export const hll: {
+ initMH: (bin: any, mhBitCount: number, indexBitCount: number, policy?: any) => any;
+ init: (bin: any, indexBitCount: number, policy?: any) => any;
+ addMH: (bin: any, mhBitCount: number, indexBitCount: number, list: any, policy?: any) => any;
+ add: (bin: any, indexBitCount: number, list: any, policy?: any) => any;
+ update: (bin: any, list: any, policy?: any) => any;
+ getCount: (bin: any) => any;
+ getUnion: (bin: any, list: any) => any;
+ getUnionCount: (bin: any, list: any) => any;
+ getIntersectCount: (bin: any, list: any) => any;
+ getSimilarity: (bin: any, list: any) => any[];
+ describe: (bin: any) => any;
+ mayContain: (bin: any, list: any) => any;
+ };
+ function _val(value: any): {
+ [x: number]: any;
+ op: any;
+ }[];
+ export { _val as list, _val as map, _let as let, _var as var };
+}
+declare module 'exp_bit' {
+ export function reSize(bin: any, flags: number, byteSize: number, policy?: any): any;
+ export function insert(bin: any, value: any, byteOffset: any, policy?: any): any;
+ export function remove(bin: any, byteSize: number, byteOffset: any, policy?: any): any;
+ export function set(bin: any, value: any, bitSize: any, bitOffset: any, policy?: any): any;
+ export function or(bin: any, value: any, bitSize: any, bitOffset: any, policy?: any): any;
+ export function xor(bin: any, value: any, bitSize: any, bitOffset: any, policy?: any): any;
+ export function and(bin: any, value: any, bitSize: any, bitOffset: any, policy?: any): any;
+ export function not(bin: any, bitSize: any, bitOffset: any, policy?: any): any;
+ export function lShift(bin: any, shift: number, bitSize: any, bitOffset: any, policy?: any): any;
+ export function rShift(bin: any, shift: number, bitSize: any, bitOffset: any, policy?: any): any;
+ export function add(bin: any, action: number, value: any, bitSize: any, bitOffset: any, policy?: any): any;
+ export function subtract(bin: any, action: number, value: any, bitSize: any, bitOffset: any, policy?: any): any;
+ export function setInt(bin: any, value: any, bitSize: any, bitOffset: any, policy?: any): any;
+ export function get(bin: any, bitSize: any, bitOffset: any): any;
+ export function count(bin: any, bitSize: any, bitOffset: any): number;
+ export function lScan(bin: any, value: any, bitSize: any, bitOffset: any): number;
+ export function rScan(bin: any, value: any, bitSize: any, bitOffset: any): number;
+ export function getInt(bin: any, sign: boolean, bitSize: any, bitOffset: any): any;
+}
+declare module 'exp_hll' {
+ export function initMH(bin: any, mhBitCount: number, indexBitCount: number, policy?: any): any;
+ export function init(bin: any, indexBitCount: number, policy?: any): any;
+ export function addMH(bin: any, mhBitCount: number, indexBitCount: number, list: any, policy?: any): any;
+ export function add(bin: any, indexBitCount: number, list: any, policy?: any): any;
+ export function update(bin: any, list: any, policy?: any): any;
+ export function getCount(bin: any): any;
+ export function getUnion(bin: any, list: any): any;
+ export function getUnionCount(bin: any, list: any): any;
+ export function getIntersectCount(bin: any, list: any): any;
+ export function getSimilarity(bin: any, list: any): any[];
+ export function describe(bin: any): any;
+ export function mayContain(bin: any, list: any): any;
+}
+declare module 'exp_lists' {
+ export function size(bin: any, ctx?: any): any;
+ export function getByValue(bin: any, value: any, returnType: any, ctx?: any): any;
+ export function getByValueRange(bin: any, begin: any, end: any, returnType: any, ctx?: any): any;
+ export function getByValueList(bin: any, value: any, returnType: any, ctx?: any): any;
+ export function getByRelRankRangeToEnd(bin: any, value: any, rank: any, returnType: any, ctx?: any): any;
+ export function getByRelRankRange(bin: any, value: any, rank: any, count: any, returnType: any, ctx?: any): any;
+ export function getByIndex(bin: any, index: any, valueType: any, returnType: any, ctx?: any): any;
+ export function getByIndexRangeToEnd(bin: any, index: any, returnType: any, ctx?: any): any;
+ export function getByIndexRange(bin: any, index: any, count: any, returnType: any, ctx?: any): any;
+ export function getByRank(bin: any, rank: any, valueType: any, returnType: any, ctx?: any): any;
+ export function getByRankRangeToEnd(bin: any, rank: any, returnType: any, ctx?: any): any;
+ export function getByRankRange(bin: any, rank: any, count: any, returnType: any, ctx?: any): any;
+ export function append(bin: any, value: any, policy?: any, ctx?: any): any;
+ export function appendItems(bin: any, value: any, policy?: any, ctx?: any): any;
+ export function insert(bin: any, value: any, idx: any, policy?: any, ctx?: any): any;
+ export function insertItems(bin: any, value: any, idx: any, policy?: any, ctx?: any): any;
+ export function increment(bin: any, value: any, idx: any, policy?: any, ctx?: any): any;
+ export function set(bin: any, value: any, idx: any, policy?: any, ctx?: any): any;
+ export function clear(bin: any, ctx?: any): any;
+ export function sort(bin: any, order: number, ctx?: any): any;
+ export function removeByValue(bin: any, value: any, ctx?: any, returnType?: any): any;
+ export function removeByValueList(bin: any, values: any, ctx?: any, returnType?: any): any;
+ export function removeByValueRange(bin: any, end: any, begin: any, ctx?: any, returnType?: any): any;
+ export function removeByRelRankRangeToEnd(bin: any, rank: any, value: any, ctx?: any, returnType?: any): any;
+ export function removeByRelRankRange(bin: any, count: any, rank: any, value: any, ctx?: any, returnType?: any): any;
+ export function removeByIndex(bin: any, idx: any, ctx?: any, returnType?: any): any;
+ export function removeByIndexRangeToEnd(bin: any, idx: any, ctx?: any, returnType?: any): any;
+ export function removeByIndexRange(bin: any, count: any, idx: any, ctx?: any, returnType?: any): any;
+ export function removeByRank(bin: any, rank: any, ctx?: any, returnType?: any): any;
+ export function removeByRankRangeToEnd(bin: any, rank: any, ctx?: any, returnType?: any): any;
+ export function removeByRankRange(bin: any, count: any, rank: any, ctx?: any, returnType?: any): any;
+}
+declare module 'exp_maps' {
+ export function put(bin: any, value: any, key: any, policy?: any, ctx?: any): any;
+ export function putItems(bin: any, map: any, policy?: any, ctx?: any): any;
+ export function increment(bin: any, value: any, key: any, policy?: any, ctx?: any): any;
+ export function clear(bin: any, ctx?: any): any;
+ export function removeByKey(bin: any, key: any, ctx?: any, returnType?: any): any;
+ export function removeByKeyList(bin: any, keys: any, ctx?: any, returnType?: any): any;
+ export function removeByKeyRange(bin: any, end: any, begin: any, ctx?: any, returnType?: any): any;
+ export function removeByKeyRelIndexRangeToEnd(bin: any, idx: any, key: any, ctx?: any, returnType?: any): any;
+ export function removeByKeyRelIndexRange(bin: any, count: any, idx: any, key: any, ctx?: any, returnType?: any): any;
+ export function removeByValue(bin: any, value: any, ctx?: any, returnType?: any): any;
+ export function removeByValueList(bin: any, values: any, ctx?: any, returnType?: any): any;
+ export function removeByValueRange(bin: any, end: any, begin: any, ctx?: any, returnType?: any): any;
+ export function removeByValueRelRankRangeToEnd(bin: any, rank: any, value: any, ctx?: any, returnType?: any): any;
+ export function removeByValueRelRankRange(bin: any, count: any, rank: any, value: any, ctx?: any, returnType?: any): any;
+ export function removeByIndex(bin: any, idx: any, ctx?: any, returnType?: any): any;
+ export function removeByIndexRangeToEnd(bin: any, idx: any, ctx?: any, returnType?: any): any;
+ export function removeByIndexRange(bin: any, count: any, idx: any, ctx?: any, returnType?: any): any;
+ export function removeByRank(bin: any, rank: any, ctx?: any, returnType?: any): any;
+ export function removeByRankRangeToEnd(bin: any, rank: any, ctx?: any, returnType?: any): any;
+ export function removeByRankRange(bin: any, count: any, rank: any, ctx?: any, returnType?: any): any;
+ export function size(bin: any, ctx?: any): any;
+ export function getByKey(bin: any, key: any, valueType: any, returnType: any, ctx?: any): any;
+ export function getByKeyRange(bin: any, end: any, begin: any, returnType: any, ctx?: any): any;
+ export function getByKeyList(bin: any, keys: any, returnType: any, ctx?: any): any;
+ export function getByKeyRelIndexRangeToEnd(bin: any, idx: any, key: any, returnType: any, ctx?: any): any;
+ export function getByKeyRelIndexRange(bin: any, count: any, idx: any, key: any, returnType: any, ctx?: any): any;
+ export function getByValue(bin: any, value: any, returnType: any, ctx?: any): any;
+ export function getByValueRange(bin: any, end: any, begin: any, returnType: any, ctx?: any): any;
+ export function getByValueList(bin: any, values: any, returnType: any, ctx?: any): any;
+ export function getByValueRelRankRangeToEnd(bin: any, rank: any, value: any, returnType: any, ctx?: any): any;
+ export function getByValueRelRankRange(bin: any, count: any, rank: any, value: any, returnType: any, ctx?: any): any;
+ export function getByIndex(bin: any, idx: any, valueType: any, returnType: any, ctx?: any): any;
+ export function getByIndexRangeToEnd(bin: any, idx: any, returnType: any, ctx?: any): any;
+ export function getByIndexRange(bin: any, count: any, idx: any, returnType: any, ctx?: any): any;
+ export function getByRank(bin: any, rank: any, valueType: any, returnType: any, ctx?: any): any;
+ export function getByRankRangeToEnd(bin: any, rank: any, returnType: any, ctx?: any): any;
+ export function getByRankRange(bin: any, count: any, rank: any, returnType: any, ctx?: any): any;
+}
+declare module 'exp_operations' {
+ export function read(bin: string, exp: any, flags: any): Operation;
+ export function write(bin: string, exp: any, flags: any): Operation;
+ export class ExpOperation {
+ protected constructor();
+ op: any;
+ bin: any;
+ exp: any;
+ flags: any;
+ }
+}
+declare module 'features' {
+ export const CDT_MAP: "cdt-map";
+ export const CDT_LIST: "cdt-list";
+ export const BLOB_BITS: "blob-bits";
+}
+declare module 'filter' {
+ export function range(bin: string, min: number, max: number, indexType?: number | undefined, context?: any): any;
+ export function equal(bin: string, value: string): any;
+ export function contains(bin: string, value: (string | number), indexType: number, context?: any): any;
+ export function geoWithinGeoJSONRegion(bin: string, value: GeoJSON, indexType?: number | undefined, context?: any): any;
+ export function geoContainsGeoJSONPoint(bin: string, value: GeoJSON, indexType?: number | undefined, context?: any): any;
+ export function geoWithinRadius(bin: string, lon: any, lat: number, radius: number, indexType?: number | undefined, context?: any): any;
+ export function geoContainsPoint(bin: string, lon: any, lat: number, indexType?: number | undefined, context?: any): any;
+ export class SindexFilterPredicate {
+ constructor(predicate: any, bin: any, dataType: any, indexType: any, context: any, props: any);
+ predicate: any;
+ bin: any;
+ datatype: any;
+ type: any;
+ context: any;
+ }
+ import GeoJSON = require("geojson");
+}
+declare module 'geojson' {
+ export = GeoJSON;
+ function GeoJSON(json: any): GeoJSON;
+ class GeoJSON {
+ constructor(json: any);
+ str: string | undefined;
+ toJSON(): any;
+ toString(): string;
+ value(): any;
+ }
+ namespace GeoJSON {
+ function Point(lng: number, lat: number): GeoJSON;
+ function Polygon(...args: number[][]): GeoJSON;
+ function Circle(lng: number, lat: number, radius: number): GeoJSON;
+ }
+}
+declare module 'hll' {
+ export function init(bin: string, indexBits: number, minhashBits?: number | undefined): any;
+ export function add(bin: string, list: any[], indexBits?: number | undefined, minhashBits?: number | undefined): any;
+ export function setUnion(bin: string, list: any[]): any;
+ export function refreshCount(bin: string): any;
+ export function fold(bin: string, indexBits: number): any;
+ export function getCount(bin: string): any;
+ export function getUnion(bin: string, list: any[]): any;
+ export function getUnionCount(bin: string, list: any[]): any;
+ export function getIntersectCount(bin: string, list: any[]): any;
+ export function getSimilarity(bin: string, list: any[]): any;
+ export function describe(bin: string): any;
+}
+declare module 'index_job' {
+ export = IndexJob;
+ function IndexJob(client: any, namespace: any, indexName: any): void;
+ class IndexJob {
+ constructor(client: any, namespace: any, indexName: any);
+ client: any;
+ namespace: any;
+ indexName: any;
+ private hasCompleted;
+ private info;
+ }
+}
+declare module 'info' {
+ export function parse(info: string): any;
+ export const separators: {
+ bins: (string | typeof splitBins)[];
+ 'bins/*': (typeof splitBins)[];
+ 'namespace/*': string[];
+ service: string[];
+ sindex: string[];
+ 'sindex/*': string[];
+ 'sindex/*/**': string[];
+ 'udf-list': string[];
+ 'get-dc-config': string[];
+ sets: string[];
+ 'sets/*': string[];
+ 'sets/*/**': (string | typeof chop)[];
+ };
+ function splitBins(str: any): {
+ stats: {};
+ names: any[];
+ };
+ function chop(str: any): any;
+ export {};
+}
+declare module 'job' {
+ export = Job;
+ function Job(client: any, jobID: any, module: any): void;
+ class Job {
+ constructor(client: any, jobID: any, module: any);
+ client: any;
+ jobID: any;
+ module: any;
+ private hasCompleted;
+ private checkStatus;
+ info(policy: any, callback?: JobinfoCallback | undefined): Promise | null;
+ wait(pollInterval?: number | undefined, callback?: JobdoneCallback | undefined): Promise | null;
+ waitUntilDone: any;
+ }
+ namespace Job {
+ function safeRandomJobID(): number;
+ function pollUntilDone(statusFunction: any, pollInterval: any): Promise;
+ }
+}
+declare module 'key' {
+ export = Key;
+ function Key(ns: string, set: string, key: (string | number | Buffer), digest?: string | undefined): void;
+ class Key {
+ constructor(ns: string, set: string, key: (string | number | Buffer), digest?: string | undefined);
+ ns: string;
+ set: string;
+ key: string | number | Buffer;
+ digest: string | null;
+ equals(other: any): any;
+ }
+ namespace Key {
+ function fromASKey(keyObj: any): Key | null;
+ }
+}
+declare module 'lists' {
+ export function setOrder(bin: string, order: number): any;
+ export function sort(bin: string, flags: number): any;
+ export function append(bin: string, value: any, policy?: any): any;
+ export function appendItems(bin: string, list: Array, policy?: any): any;
+ export function insert(bin: string, index: number, value: any, policy?: any): any;
+ export function insertItems(bin: string, index: number, list: Array, policy: any): any;
+ export function pop(bin: string, index: number): any;
+ export function popRange(bin: string, index: number, count?: number | undefined): any;
+ export function remove(bin: string, index: number): any;
+ export function removeRange(bin: string, index: number, count?: number | undefined): any;
+ export function removeByIndex(bin: string, index: number, returnType?: number | undefined): any;
+ export function removeByIndexRange(bin: string, index: number, count?: number | undefined, returnType?: number | undefined): any;
+ export function removeByValue(bin: string, value: any, returnType?: number | undefined): any;
+ export function removeByValueList(bin: string, values: Array, returnType?: number | undefined): any;
+ export function removeByValueRange(bin: string, begin: any | null, end: any | null, returnType?: number | undefined): any;
+ export function removeByValueRelRankRange(bin: string, value: any, rank: number, count?: number | undefined, returnType?: number | undefined): any;
+ export function removeByRank(bin: string, rank: number, returnType?: number | undefined): any;
+ export function removeByRankRange(bin: string, rank: any, count?: number | undefined, returnType?: number | undefined): any;
+ export function clear(bin: string): any;
+ export function set(bin: string, index: number, value: any, policy?: any): any;
+ export function trim(bin: string, index: number, count: number): any;
+ export function get(bin: string, index: number): any;
+ export function getRange(bin: string, index: number, count?: number | undefined): any;
+ export function getByIndex(bin: string, index: number, returnType?: number | undefined): any;
+ export function getByIndexRange(bin: string, index: number, count?: number | undefined, returnType?: number | undefined): any;
+ export function getByValue(bin: string, value: any, returnType?: number | undefined): any;
+ export function getByValueList(bin: string, values: Array, returnType?: number | undefined): any;
+ export function getByValueRange(bin: string, begin: any | null, end: any | null, returnType?: number | undefined): any;
+ export function getByValueRelRankRange(bin: string, value: any, rank: number, count?: number | undefined, returnType?: number | undefined): any;
+ export function getByRank(bin: string, rank: number, returnType?: number | undefined): any;
+ export function getByRankRange(bin: string, rank: any, count?: number | undefined, returnType?: number | undefined): any;
+ export function increment(bin: string, index: number, value?: number | undefined, policy?: any): any;
+ export function size(bin: string): any;
+}
+declare module 'maps' {
+ export function setPolicy(bin: string, policy: MapPolicy): any;
+ export function put(bin: string, key: any, value: any, policy?: MapPolicy): any;
+ export function putItems(bin: string, items: object, policy?: MapPolicy): any;
+ export function increment(bin: string, key: any, incr: number, policy?: MapPolicy): any;
+ export function decrement(bin: string, key: any, decr: number, policy?: MapPolicy): any;
+ export function clear(bin: string): any;
+ export function removeByKey(bin: string, key: any, returnType?: number | undefined): any;
+ export function removeByKeyList(bin: string, keys: Array, returnType?: number | undefined): any;
+ export function removeByKeyRange(bin: string, begin: any | null, end: any | null, returnType?: number | undefined): any;
+ export function removeByKeyRelIndexRange(bin: string, key: any, index: number, count?: number | undefined, returnType?: number | undefined): any;
+ export function removeByValue(bin: string, value: any, returnType?: number | undefined): any;
+ export function removeByValueList(bin: string, values: Array, returnType?: number | undefined): any;
+ export function removeByValueRange(bin: string, begin: any | null, end: any | null, returnType?: number | undefined): any;
+ export function removeByValueRelRankRange(bin: string, value: any, rank: number, count?: number | undefined, returnType?: number | undefined): any;
+ export function removeByIndex(bin: string, index: number, returnType?: number | undefined): any;
+ export function removeByIndexRange(bin: string, index: number, count?: number | undefined, returnType?: number | undefined): any;
+ export function removeByRank(bin: string, rank: number, returnType?: number | undefined): any;
+ export function removeByRankRange(bin: string, rank: any, count?: number | undefined, returnType?: number | undefined): any;
+ export function size(bin: string): any;
+ export function getByKey(bin: string, key: any, returnType?: number | undefined): any;
+ export function getByKeyList(bin: string, keys: any, returnType?: number | undefined): any;
+ export function getByKeyRange(bin: string, begin: any | null, end: any | null, returnType?: number | undefined): any;
+ export function getByKeyRelIndexRange(bin: string, key: any, index: number, count?: number | undefined, returnType?: number | undefined): any;
+ export function getByValue(bin: string, value: any, returnType?: number | undefined): any;
+ export function getByValueList(bin: string, values: any, returnType?: number | undefined): any;
+ export function getByValueRange(bin: string, begin: any | null, end: any | null, returnType?: number | undefined): any;
+ export function getByValueRelRankRange(bin: string, value: any, rank: number, count?: number | undefined, returnType?: number | undefined): any;
+ export function getByIndex(bin: string, index: number, returnType?: number | undefined): any;
+ export function getByIndexRange(bin: string, index: number, count?: number | undefined, returnType?: number | undefined): any;
+ export function getByRank(bin: string, rank: number, returnType?: number | undefined): any;
+ export function getByRankRange(bin: string, rank: any, count: number, returnType?: number | undefined): any;
+}
+declare module 'operations' {
+ export function read(bin: string): Operation;
+ export function write(bin: string, value: any): Operation;
+ export function add(bin: string, value: (number | any)): Operation;
+ export function incr(bin: any, value: any): Operation;
+ export function append(bin: string, value: (string | Buffer)): Operation;
+ export function prepend(bin: string, value: (string | Buffer)): Operation;
+ export function touch(ttl?: number | undefined): Operation;
+ function _delete(): Operation;
+ export class Operation {
+ protected constructor();
+ op: any;
+ bin: any;
+ }
+ export { _delete as delete };
+}
+declare module 'policies/admin_policy' {
+ export = AdminPolicy;
+ class AdminPolicy {
+ constructor(props?: any);
+ timeout: number;
+ }
+}
+declare module 'policies/apply_policy' {
+ export = ApplyPolicy;
+ class ApplyPolicy extends BasePolicy {
+ key: number;
+ commitLevel: number;
+ ttl: number;
+ durableDelete: boolean;
+ }
+ import BasePolicy = require("policies/base_policy");
+}
+declare module 'policies/base_policy' {
+ export = BasePolicy;
+ class BasePolicy {
+ constructor(props: any);
+ socketTimeout: number;
+ totalTimeout: number;
+ maxRetries: number;
+ filterExpression: any;
+ compress: boolean;
+ }
+}
+declare module 'policies/batch_apply_policy' {
+ export = BatchApplyPolicy;
+ class BatchApplyPolicy {
+ constructor(props?: any);
+ filterExpression: any;
+ key: number;
+ commitLevel: number;
+ ttl: number;
+ durableDelete: boolean;
+ }
+}
+declare module 'policies/batch_policy' {
+ export = BatchPolicy;
+ class BatchPolicy extends BasePolicy {
+ replica: number;
+ readModeAP: number;
+ readModeSC: number;
+ concurrent: boolean;
+ allowInline: boolean;
+ allowInlineSSD: boolean;
+ respondAllKeys: boolean;
+ sendSetName: boolean;
+ deserialize: boolean;
+ }
+ import BasePolicy = require("policies/base_policy");
+}
+declare module 'policies/batch_read_policy' {
+ export = BatchReadPolicy;
+ class BatchReadPolicy {
+ constructor(props?: any);
+ filterExpression: any;
+ readModeAP: number;
+ readModeSC: number;
+ }
+}
+declare module 'policies/batch_remove_policy' {
+ export = BatchRemovePolicy;
+ class BatchRemovePolicy {
+ constructor(props?: any);
+ filterExpression: any;
+ key: number;
+ commitLevel: number;
+ gen: number;
+ generation: number;
+ durableDelete: boolean;
+ }
+}
+declare module 'policies/batch_write_policy' {
+ export = BatchWritePolicy;
+ class BatchWritePolicy {
+ constructor(props?: any);
+ filterExpression: any;
+ key: number;
+ commitLevel: number;
+ gen: number;
+ exists: number;
+ durableDelete: boolean;
+ }
+}
+declare module 'policies/bitwise_policy' {
+ export = BitwisePolicy;
+ class BitwisePolicy {
+ constructor(props?: any);
+ writeFlags: number;
+ }
+}
+declare module 'policies/command_queue_policy' {
+ export = CommandQueuePolicy;
+ class CommandQueuePolicy {
+ constructor(props?: {
+ maxCommandsInProcess?: number | undefined;
+ maxCommandsInQueue?: number | undefined;
+ queueInitialCapacity?: number | undefined;
+ } | undefined);
+ maxCommandsInProcess: number;
+ maxCommandsInQueue: number;
+ queueInitialCapacity: number;
+ }
+}
+declare module 'policies/hll_policy' {
+ export = HLLPolicy;
+ class HLLPolicy {
+ constructor(props?: any);
+ writeFlags: number;
+ }
+}
+declare module 'policies/info_policy' {
+ export = InfoPolicy;
+ class InfoPolicy {
+ constructor(props?: any);
+ timeout: number;
+ sendAsIs: boolean;
+ checkBounds: boolean;
+ }
+}
+declare module 'policies/list_policy' {
+ export = ListPolicy;
+ class ListPolicy {
+ constructor(props?: any);
+ order: number;
+ writeFlags: number;
+ }
+}
+declare module 'policies/map_policy' {
+ export = MapPolicy;
+ class MapPolicy {
+ constructor(props?: any);
+ order: number;
+ writeMode: number;
+ writeFlags: number;
+ }
+}
+declare module 'policies/operate_policy' {
+ export = OperatePolicy;
+ class OperatePolicy extends BasePolicy {
+ key: number;
+ gen: number;
+ exists: number;
+ replica: number;
+ commitLevel: number;
+ deserialize: boolean;
+ durableDelete: boolean;
+ readModeAP: number;
+ readModeSC: number;
+ }
+ import BasePolicy = require("policies/base_policy");
+}
+declare module 'policies/query_policy' {
+ export = QueryPolicy;
+ class QueryPolicy extends BasePolicy {
+ replica: number;
+ deserialize: boolean;
+ failOnClusterChange: boolean;
+ infoTimeout: number;
+ }
+ import BasePolicy = require("policies/base_policy");
+}
+declare module 'policies/read_policy' {
+ export = ReadPolicy;
+ class ReadPolicy extends BasePolicy {
+ key: number;
+ replica: number;
+ readModeAP: number;
+ readModeSC: number;
+ deserialize: boolean;
+ }
+ import BasePolicy = require("policies/base_policy");
+}
+declare module 'policies/remove_policy' {
+ export = RemovePolicy;
+ class RemovePolicy extends BasePolicy {
+ generation: number;
+ key: number;
+ gen: number;
+ commitLevel: number;
+ durableDelete: boolean;
+ }
+ import BasePolicy = require("policies/base_policy");
+}
+declare module 'policies/scan_policy' {
+ export = ScanPolicy;
+ class ScanPolicy extends BasePolicy {
+ replica: number;
+ durableDelete: boolean;
+ recordsPerSecond: number;
+ maxRecords: number;
+ }
+ import BasePolicy = require("policies/base_policy");
+}
+declare module 'policies/write_policy' {
+ export = WritePolicy;
+ class WritePolicy extends BasePolicy {
+ compressionThreshold: number;
+ key: number;
+ gen: number;
+ exists: number;
+ commitLevel: number;
+ durableDelete: boolean;
+ }
+ import BasePolicy = require("policies/base_policy");
+}
+declare module 'policy' {
+ export function createPolicy(type: any, values: any): CommandQueuePolicy | BasePolicy | BatchApplyPolicy | BatchReadPolicy | BatchRemovePolicy | BatchWritePolicy | HLLPolicy | InfoPolicy | AdminPolicy | undefined;
+ import BasePolicy = require("policies/base_policy");
+ import ApplyPolicy = require("policies/apply_policy");
+ import OperatePolicy = require("policies/operate_policy");
+ import QueryPolicy = require("policies/query_policy");
+ import ReadPolicy = require("policies/read_policy");
+ import RemovePolicy = require("policies/remove_policy");
+ import ScanPolicy = require("policies/scan_policy");
+ import WritePolicy = require("policies/write_policy");
+ import BatchPolicy = require("policies/batch_policy");
+ import BatchApplyPolicy = require("policies/batch_apply_policy");
+ import BatchReadPolicy = require("policies/batch_read_policy");
+ import BatchRemovePolicy = require("policies/batch_remove_policy");
+ import BatchWritePolicy = require("policies/batch_write_policy");
+ import CommandQueuePolicy = require("policies/command_queue_policy");
+ import HLLPolicy = require("policies/hll_policy");
+ import InfoPolicy = require("policies/info_policy");
+ import AdminPolicy = require("policies/admin_policy");
+ import ListPolicy = require("policies/list_policy");
+ import MapPolicy = require("policies/map_policy");
+ export { BasePolicy, ApplyPolicy, OperatePolicy, QueryPolicy, ReadPolicy, RemovePolicy, ScanPolicy, WritePolicy, BatchPolicy, BatchApplyPolicy, BatchReadPolicy, BatchRemovePolicy, BatchWritePolicy, CommandQueuePolicy, HLLPolicy, InfoPolicy, AdminPolicy, ListPolicy, MapPolicy };
+}
+declare module 'privilege' {
+ export = Privilege;
+ function Privilege(code: any, options: any): void;
+ class Privilege {
+ constructor(code: any, options: any);
+ code: any;
+ namespace: any;
+ set: any;
+ }
+}
+declare module 'privilege_code' {
+ export const USER_ADMIN: any;
+ export const SYS_ADMIN: any;
+ export const DATA_ADMIN: any;
+ export const UDF_ADMIN: any;
+ export const SINDEX_ADMIN: any;
+ export const READ: any;
+ export const READ_WRITE: any;
+ export const READ_WRITE_UDF: any;
+ export const WRITE: any;
+ export const TRUNCATE: any;
+}
+declare module 'query' {
+ export = Query;
+ function Query(client: Client, ns: string, set: string, options?: {
+ filters?: any[] | undefined;
+ select?: string[] | undefined;
+ nobins?: boolean | undefined;
+ ttl?: number | undefined;
+ } | undefined): void;
+ class Query {
+ constructor(client: Client, ns: string, set: string, options?: {
+ filters?: any[] | undefined;
+ select?: string[] | undefined;
+ nobins?: boolean | undefined;
+ ttl?: number | undefined;
+ } | undefined);
+ client: Client;
+ ns: string;
+ set: string;
+ filters: any[];
+ selected: string[] | undefined;
+ nobins: boolean | undefined;
+ udf: any;
+ private pfEnabled;
+ paginate: boolean;
+ maxRecords: number;
+ queryState: any;
+ ttl: number | undefined;
+ nextPage(state: object[]): void;
+ hasNextPage(): boolean;
+ select(...args: string[]): void;
+ where(indexFilter: any): void;
+ setSindexFilter(sindexFilter: any): void;
+ setUdf(udfModule: string, udfFunction: string, udfArgs?: any[] | undefined): void;
+ partitions(begin: number, count: number, digest: string): void;
+ partFilter: {
+ begin: number;
+ count: number;
+ digest: string;
+ } | undefined;
+ foreach(policy?: QueryPolicy, dataCb?: recordCallback | undefined, errorCb?: errorCallback | undefined, endCb?: doneCallback | undefined): RecordStream;
+ results(policy?: QueryPolicy): Promise;
+ apply(udfModule: string, udfFunction: string, udfArgs?: any[] | undefined, policy?: QueryPolicy, callback?: QueryaggregationResultCallback | undefined): Promise | null;
+ background(udfModule: string, udfFunction: string, udfArgs?: any[] | undefined, policy?: WritePolicy, queryID?: number | undefined, callback?: jobCallback | undefined): Promise | null;
+ operate(operations: any, policy?: QueryPolicy, queryID?: number | undefined, callback?: jobCallback | undefined): Promise | null;
+ ops: any;
+ }
+ import RecordStream = require("record_stream");
+}
+declare module 'record' {
+ export = Record;
+ class Record {
+ private constructor();
+ key: any;
+ bins: any;
+ ttl: any;
+ gen: any;
+ type: any;
+ policy: any;
+ readAllBins: any;
+ ops: any;
+ udf: any;
+ }
+}
+declare module 'record_stream' {
+ export = RecordStream;
+ function RecordStream(client: any): void;
+ class RecordStream {
+ constructor(client: any);
+ aborted: boolean;
+ client: any;
+ writable: boolean;
+ readable: boolean;
+ _read(): void;
+ abort(): void;
+ }
+}
+declare module 'role' {
+ export = Role;
+ function Role(options: any): void;
+ class Role {
+ constructor(options: any);
+ name: any;
+ readQuota: any;
+ writeQuota: any;
+ whitelist: any;
+ privileges: any;
+ }
+}
+declare module 'scan' {
+ export = Scan;
+ function Scan(client: Client, ns: string, set: string, options?: {
+ select?: string[] | undefined;
+ nobins?: boolean | undefined;
+ concurrent?: boolean | undefined;
+ ttl?: number | undefined;
+ } | undefined): void;
+ class Scan {
+ constructor(client: Client, ns: string, set: string, options?: {
+ select?: string[] | undefined;
+ nobins?: boolean | undefined;
+ concurrent?: boolean | undefined;
+ ttl?: number | undefined;
+ } | undefined);
+ client: Client;
+ ns: string;
+ set: string;
+ selected: string[] | undefined;
+ nobins: boolean | undefined;
+ concurrent: boolean | undefined;
+ private pfEnabled;
+ paginate: boolean;
+ scanState: any;
+ ttl: number | undefined;
+ nextPage(state: object[]): void;
+ hasNextPage(): boolean;
+ select(...args: string[]): void;
+ partitions(begin: number, count: number, digest: string): void;
+ partFilter: {
+ begin: number;
+ count: number;
+ digest: string;
+ } | undefined;
+ background(udfModule: string, udfFunction: string, udfArgs?: any[] | undefined, policy?: ScanPolicy, scanID?: number | undefined, callback?: jobCallback | undefined): Promise | null;
+ udf: {
+ module: string;
+ funcname: string;
+ args: any[] | undefined;
+ } | undefined;
+ operate(operations: any, policy?: ScanPolicy, scanID?: number | undefined, callback?: jobCallback | undefined): Promise | null;
+ ops: any;
+ foreach(policy?: ScanPolicy, dataCb?: recordCallback | undefined, errorCb?: errorCallback | undefined, endCb?: doneCallback | undefined): RecordStream;
+ results(policy?: ScanPolicy): Promise;
+ }
+ import RecordStream = require("record_stream");
+}
+declare module 'status' {
+ export const ERR_ASYNC_QUEUE_FULL: any;
+ export const ERR_CONNECTION: any;
+ export const ERR_INVALID_NODE: any;
+ export const ERR_NO_MORE_CONNECTIONS: any;
+ export const ERR_ASYNC_CONNECTION: any;
+ export const ERR_CLIENT_ABORT: any;
+ export const ERR_INVALID_HOST: any;
+ export const NO_MORE_RECORDS: any;
+ export const ERR_PARAM: any;
+ export const ERR_CLIENT: any;
+ export const OK: any;
+ export const ERR_SERVER: any;
+ export const ERR_RECORD_NOT_FOUND: any;
+ export const ERR_RECORD_GENERATION: any;
+ export const ERR_REQUEST_INVALID: any;
+ export const ERR_RECORD_EXISTS: any;
+ export const ERR_BIN_EXISTS: any;
+ export const ERR_CLUSTER_CHANGE: any;
+ export const ERR_SERVER_FULL: any;
+ export const ERR_TIMEOUT: any;
+ export const ERR_ALWAYS_FORBIDDEN: any;
+ export const ERR_CLUSTER: any;
+ export const ERR_BIN_INCOMPATIBLE_TYPE: any;
+ export const ERR_RECORD_TOO_BIG: any;
+ export const ERR_RECORD_BUSY: any;
+ export const ERR_SCAN_ABORTED: any;
+ export const ERR_UNSUPPORTED_FEATURE: any;
+ export const ERR_BIN_NOT_FOUND: any;
+ export const ERR_DEVICE_OVERLOAD: any;
+ export const ERR_RECORD_KEY_MISMATCH: any;
+ export const ERR_NAMESPACE_NOT_FOUND: any;
+ export const ERR_BIN_NAME: any;
+ export const ERR_FAIL_FORBIDDEN: any;
+ export const ERR_FAIL_ELEMENT_NOT_FOUND: any;
+ export const ERR_FAIL_ELEMENT_EXISTS: any;
+ export const ERR_ENTERPRISE_ONLY: any;
+ export const ERR_FAIL_ENTERPRISE_ONLY: any;
+ export const ERR_OP_NOT_APPLICABLE: any;
+ export const FILTERED_OUT: any;
+ export const LOST_CONFLICT: any;
+ export const QUERY_END: any;
+ export const SECURITY_NOT_SUPPORTED: any;
+ export const SECURITY_NOT_ENABLED: any;
+ export const SECURITY_SCHEME_NOT_SUPPORTED: any;
+ export const INVALID_COMMAND: any;
+ export const INVALID_FIELD: any;
+ export const ILLEGAL_STATE: any;
+ export const INVALID_USER: any;
+ export const USER_ALREADY_EXISTS: any;
+ export const INVALID_PASSWORD: any;
+ export const EXPIRED_PASSWORD: any;
+ export const FORBIDDEN_PASSWORD: any;
+ export const INVALID_CREDENTIAL: any;
+ export const INVALID_ROLE: any;
+ export const ROLE_ALREADY_EXISTS: any;
+ export const INVALID_PRIVILEGE: any;
+ export const INVALID_WHITELIST: any;
+ export const QUOTAS_NOT_ENABLED: any;
+ export const INVALID_QUOTA: any;
+ export const NOT_AUTHENTICATED: any;
+ export const ROLE_VIOLATION: any;
+ export const ERR_UDF: any;
+ export const ERR_BATCH_DISABLED: any;
+ export const ERR_BATCH_MAX_REQUESTS_EXCEEDED: any;
+ export const ERR_BATCH_QUEUES_FULL: any;
+ export const ERR_GEO_INVALID_GEOJSON: any;
+ export const ERR_INDEX_FOUND: any;
+ export const ERR_INDEX_NOT_FOUND: any;
+ export const ERR_INDEX_OOM: any;
+ export const ERR_INDEX_NOT_READABLE: any;
+ export const ERR_INDEX: any;
+ export const ERR_INDEX_NAME_MAXLEN: any;
+ export const ERR_INDEX_MAXCOUNT: any;
+ export const ERR_QUERY_ABORTED: any;
+ export const ERR_QUERY_QUEUE_FULL: any;
+ export const ERR_QUERY_TIMEOUT: any;
+ export const ERR_QUERY: any;
+ export const ERR_UDF_NOT_FOUND: any;
+ export const ERR_LUA_FILE_NOT_FOUND: any;
+ export function getMessage(code: any): string;
}
type Host = object;
type ClientStats = any;
@@ -1549,15 +1788,52 @@ type Policies = {
scan: ScanPolicy;
query: QueryPolicy;
write: WritePolicy;
+ map: MapPolicy;
+ list: ListPolicy;
+ commandQueue: CommandQueuePolicy;
};
type Operation = object;
type Client = object;
type Key = object;
type RecordObject = object;
-declare module "policies/bitwise_policy" {
- export = BitwisePolicy;
- class BitwisePolicy {
- constructor(props?: any);
- writeFlags: number;
- }
+type Privilege = object;
+type Role = object;
+type User = object;
+type role = object;
+type CdtContext = object
+declare module 'udf_job' {
+ export = UdfJob;
+ function UdfJob(client: any, udfModule: any, command: any): void;
+ class UdfJob {
+ constructor(client: any, udfModule: any, command: any);
+ client: any;
+ udfModule: any;
+ command: any;
+ private hasCompleted;
+ private info;
+ }
+ namespace UdfJob {
+ const REGISTER: string;
+ const UNREGISTER: string;
+ }
+}
+declare module 'user' {
+ export = User;
+ function User(options: any): void;
+ class User {
+ constructor(options: any);
+ connsInUse: any;
+ name: any;
+ readInfo: any;
+ writeInfo: any;
+ roles: any;
+ }
+}
+declare module 'utils' {
+ export function parseHostString(hostString: any): {
+ addr: any;
+ tlsname: any;
+ port: number;
+ };
+ export function print(err: any, result: any): void;
}
\ No newline at end of file