@enonic/js-utils
Advanced tools
Comparing version 0.19.0 to 0.20.0
var __defProp = Object.defineProperty; | ||
var __defProps = Object.defineProperties; | ||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor; | ||
var __getOwnPropDescs = Object.getOwnPropertyDescriptors; | ||
var __getOwnPropNames = Object.getOwnPropertyNames; | ||
@@ -19,2 +21,3 @@ var __getOwnPropSymbols = Object.getOwnPropertySymbols; | ||
}; | ||
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b)); | ||
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true }); | ||
@@ -72,2 +75,5 @@ var __objRest = (source, exclude) => { | ||
// src/value/isString.ts | ||
var isString = (value) => typeof value === "string" || value instanceof String; | ||
// src/value/isInt.ts | ||
@@ -84,2 +90,8 @@ function isInt(value) { | ||
// src/value/isUuidV4String.ts | ||
var REGEXP = /^[0-9a-f]{8}-[0-9a-f]{4}-[4][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i; | ||
function isUuidV4String(value) { | ||
return isString(value) ? REGEXP.test(value) : false; | ||
} | ||
// src/value/index.ts | ||
@@ -93,2 +105,18 @@ function isFunction(value) { | ||
// src/object/index.ts | ||
var { isArray } = Array; | ||
var { keys } = Object; | ||
function sortKeys(obj) { | ||
if (typeof obj !== "object" || isArray(obj)) { | ||
throw new Error("sortKeys"); | ||
} | ||
const newObject = {}; | ||
const sortedKeys = keys(obj).sort(); | ||
for (let i = 0, l = sortedKeys.length; i < l; i++) { | ||
const k = sortedKeys[i]; | ||
newObject[k] = obj[k]; | ||
} | ||
return newObject; | ||
} | ||
// src/storage/indexing/enonify.ts | ||
@@ -151,2 +179,13 @@ function enonify(unknown) { | ||
// src/mock/node/NodeNotFoundException.ts | ||
var NodeNotFoundException = class extends Error { | ||
constructor(message) { | ||
super(message); | ||
if (Error.captureStackTrace) { | ||
Error.captureStackTrace(this, NodeNotFoundException); | ||
} | ||
this.name = "com.enonic.xp.node.NodeNotFoundException"; | ||
} | ||
}; | ||
// src/mock/Branch.ts | ||
@@ -166,2 +205,5 @@ var DEFAULT_INDEX_CONFIG = { | ||
}; | ||
function isPathString(key) { | ||
return key.startsWith("/"); | ||
} | ||
var Branch = class { | ||
@@ -199,2 +241,5 @@ constructor({ | ||
}; | ||
this._pathIndex = { | ||
"": "00000000-0000-0000-0000-000000000000" | ||
}; | ||
this._repo = repo; | ||
@@ -214,7 +259,9 @@ this.log = this._repo.log; | ||
_name, | ||
_nodeType = "default" | ||
_nodeType = "default", | ||
_parentPath = "/" | ||
} = _b, rest = __objRest(_b, [ | ||
"_indexConfig", | ||
"_name", | ||
"_nodeType" | ||
"_nodeType", | ||
"_parentPath" | ||
]); | ||
@@ -226,2 +273,8 @@ const _id = this.generateId(); | ||
} | ||
if (!_parentPath.endsWith("/")) { | ||
_parentPath += "/"; | ||
} | ||
if (_parentPath !== "/" && this.existsNode(_parentPath)[0] !== _parentPath) { | ||
throw new NodeNotFoundException(`Cannot create node with name ${_name}, parent '${_parentPath}' not found`); | ||
} | ||
const _ts = Branch.generateInstantString(); | ||
@@ -231,2 +284,3 @@ if (this._nodes.hasOwnProperty(_id)) { | ||
} | ||
const _path = `${_parentPath}${_name}`; | ||
const node = __spreadValues({ | ||
@@ -237,2 +291,3 @@ _id, | ||
_nodeType, | ||
_path, | ||
_state: "DEFAULT", | ||
@@ -243,21 +298,85 @@ _ts, | ||
this._nodes[_id] = node; | ||
this._pathIndex[_path] = _id; | ||
return node; | ||
} | ||
existsNode(keys) { | ||
const existingKeys = forceArray(keys).map((k) => { | ||
if (this.getNode(k)) { | ||
return k; | ||
keyToId(key) { | ||
let maybeId = key; | ||
if (isPathString(key)) { | ||
const path = key.endsWith("/") ? key.substring(0, key.length - 1) : key; | ||
maybeId = this._pathIndex[path]; | ||
if (!maybeId) { | ||
this.log.debug(`Could not find id from path:${path}!`); | ||
return void 0; | ||
} | ||
return ""; | ||
} | ||
if (!isUuidV4String(maybeId)) { | ||
this.log.debug(`key not an id! key:${key}`); | ||
return void 0; | ||
} | ||
return maybeId; | ||
} | ||
existsNode(keys2) { | ||
const existingKeys = forceArray(keys2).map((k) => { | ||
const id = this.keyToId(k); | ||
if (!id) { | ||
return ""; | ||
} | ||
return this._nodes.hasOwnProperty(id) ? k : ""; | ||
}).filter((x) => x); | ||
return existingKeys; | ||
} | ||
getNode(...keys) { | ||
if (!keys.length) { | ||
deleteNode(keys2) { | ||
const keysArray = forceArray(keys2); | ||
const deletedKeys = []; | ||
for (let i = 0; i < keysArray.length; i++) { | ||
const key = keysArray[i]; | ||
let maybeNode; | ||
try { | ||
maybeNode = this.getNode(key); | ||
} catch (e) { | ||
} | ||
if (!maybeNode) { | ||
this.log.warning(`Node with key:'${key}' doesn't exist. Skipping delete.`); | ||
continue; | ||
} | ||
try { | ||
delete this._pathIndex[maybeNode._path]; | ||
delete this._nodes[maybeNode._id]; | ||
deletedKeys.push(key); | ||
} catch (e) { | ||
this.log.error(`Something went wrong when trying to delete node with key:'${key}'`); | ||
} | ||
} | ||
return deletedKeys; | ||
} | ||
getNode(...keys2) { | ||
if (!keys2.length) { | ||
return []; | ||
} | ||
const flattenedKeys = flatten(keys); | ||
const nodes = flattenedKeys.map((k) => this._nodes[k]); | ||
const flattenedKeys = flatten(keys2); | ||
const existingKeys = this.existsNode(flattenedKeys); | ||
const nodes = existingKeys.map((key) => { | ||
const id = this.keyToId(key); | ||
if (!id) { | ||
throw new Error(`Can't get id from key:${key}, even though exists???`); | ||
} | ||
return this._nodes[id]; | ||
}); | ||
return nodes.length > 1 ? nodes : nodes[0]; | ||
} | ||
getNodeActiveVersion({ | ||
key | ||
}) { | ||
const node = this.getNode(key); | ||
if (node) { | ||
return { | ||
versionId: node._versionKey, | ||
nodeId: node._id, | ||
nodePath: node._path, | ||
timestamp: node._ts | ||
}; | ||
} | ||
this.log.error(`No such node with key:'${key}`); | ||
return null; | ||
} | ||
modifyNode({ | ||
@@ -268,3 +387,15 @@ key, | ||
const node = this.getNode(key); | ||
return editor(node); | ||
if (!node) { | ||
throw new Error(`modify: Node with key:${key} not found!`); | ||
} | ||
const _id = node._id; | ||
const _name = node._name; | ||
const _path = node._path; | ||
const modifiedNode = sortKeys(__spreadProps(__spreadValues({}, editor(node)), { | ||
_id, | ||
_name, | ||
_path | ||
})); | ||
this._nodes[_id] = modifiedNode; | ||
return this._nodes[_id]; | ||
} | ||
@@ -271,0 +402,0 @@ query({ |
@@ -44,5 +44,13 @@ var __defProp = Object.defineProperty; | ||
} | ||
delete(keys) { | ||
return this._branch.deleteNode(keys); | ||
} | ||
get(...keys) { | ||
return this._branch.getNode(...keys); | ||
} | ||
getActiveVersion({ | ||
key | ||
}) { | ||
return this._branch.getNodeActiveVersion({ key }); | ||
} | ||
modify({ | ||
@@ -49,0 +57,0 @@ key, |
var __defProp = Object.defineProperty; | ||
var __defProps = Object.defineProperties; | ||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor; | ||
var __getOwnPropDescs = Object.getOwnPropertyDescriptors; | ||
var __getOwnPropNames = Object.getOwnPropertyNames; | ||
@@ -19,2 +21,3 @@ var __getOwnPropSymbols = Object.getOwnPropertySymbols; | ||
}; | ||
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b)); | ||
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true }); | ||
@@ -70,8 +73,16 @@ var __objRest = (source, exclude) => { | ||
} | ||
exists(keys) { | ||
return this._branch.existsNode(keys); | ||
exists(keys2) { | ||
return this._branch.existsNode(keys2); | ||
} | ||
get(...keys) { | ||
return this._branch.getNode(...keys); | ||
delete(keys2) { | ||
return this._branch.deleteNode(keys2); | ||
} | ||
get(...keys2) { | ||
return this._branch.getNode(...keys2); | ||
} | ||
getActiveVersion({ | ||
key | ||
}) { | ||
return this._branch.getNodeActiveVersion({ key }); | ||
} | ||
modify({ | ||
@@ -124,2 +135,5 @@ key, | ||
// src/value/isString.ts | ||
var isString = (value) => typeof value === "string" || value instanceof String; | ||
// src/value/isInt.ts | ||
@@ -136,2 +150,8 @@ function isInt(value) { | ||
// src/value/isUuidV4String.ts | ||
var REGEXP = /^[0-9a-f]{8}-[0-9a-f]{4}-[4][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i; | ||
function isUuidV4String(value) { | ||
return isString(value) ? REGEXP.test(value) : false; | ||
} | ||
// src/value/index.ts | ||
@@ -144,3 +164,22 @@ function isFunction(value) { | ||
} | ||
function toStr(value, replacer, space = 4) { | ||
return JSON.stringify(value, replacer, space); | ||
} | ||
// src/object/index.ts | ||
var { isArray } = Array; | ||
var { keys } = Object; | ||
function sortKeys(obj) { | ||
if (typeof obj !== "object" || isArray(obj)) { | ||
throw new Error("sortKeys"); | ||
} | ||
const newObject = {}; | ||
const sortedKeys = keys(obj).sort(); | ||
for (let i = 0, l = sortedKeys.length; i < l; i++) { | ||
const k = sortedKeys[i]; | ||
newObject[k] = obj[k]; | ||
} | ||
return newObject; | ||
} | ||
// src/storage/indexing/enonify.ts | ||
@@ -203,2 +242,13 @@ function enonify(unknown) { | ||
// src/mock/node/NodeNotFoundException.ts | ||
var NodeNotFoundException = class extends Error { | ||
constructor(message) { | ||
super(message); | ||
if (Error.captureStackTrace) { | ||
Error.captureStackTrace(this, NodeNotFoundException); | ||
} | ||
this.name = "com.enonic.xp.node.NodeNotFoundException"; | ||
} | ||
}; | ||
// src/mock/Branch.ts | ||
@@ -218,2 +268,5 @@ var DEFAULT_INDEX_CONFIG = { | ||
}; | ||
function isPathString(key) { | ||
return key.startsWith("/"); | ||
} | ||
var Branch = class { | ||
@@ -251,2 +304,5 @@ constructor({ | ||
}; | ||
this._pathIndex = { | ||
"": "00000000-0000-0000-0000-000000000000" | ||
}; | ||
this._repo = repo; | ||
@@ -266,7 +322,9 @@ this.log = this._repo.log; | ||
_name, | ||
_nodeType = "default" | ||
_nodeType = "default", | ||
_parentPath = "/" | ||
} = _b, rest = __objRest(_b, [ | ||
"_indexConfig", | ||
"_name", | ||
"_nodeType" | ||
"_nodeType", | ||
"_parentPath" | ||
]); | ||
@@ -278,2 +336,8 @@ const _id = this.generateId(); | ||
} | ||
if (!_parentPath.endsWith("/")) { | ||
_parentPath += "/"; | ||
} | ||
if (_parentPath !== "/" && this.existsNode(_parentPath)[0] !== _parentPath) { | ||
throw new NodeNotFoundException(`Cannot create node with name ${_name}, parent '${_parentPath}' not found`); | ||
} | ||
const _ts = Branch.generateInstantString(); | ||
@@ -283,2 +347,3 @@ if (this._nodes.hasOwnProperty(_id)) { | ||
} | ||
const _path = `${_parentPath}${_name}`; | ||
const node = __spreadValues({ | ||
@@ -289,2 +354,3 @@ _id, | ||
_nodeType, | ||
_path, | ||
_state: "DEFAULT", | ||
@@ -295,21 +361,85 @@ _ts, | ||
this._nodes[_id] = node; | ||
this._pathIndex[_path] = _id; | ||
return node; | ||
} | ||
existsNode(keys) { | ||
const existingKeys = forceArray(keys).map((k) => { | ||
if (this.getNode(k)) { | ||
return k; | ||
keyToId(key) { | ||
let maybeId = key; | ||
if (isPathString(key)) { | ||
const path = key.endsWith("/") ? key.substring(0, key.length - 1) : key; | ||
maybeId = this._pathIndex[path]; | ||
if (!maybeId) { | ||
this.log.debug(`Could not find id from path:${path}!`); | ||
return void 0; | ||
} | ||
return ""; | ||
} | ||
if (!isUuidV4String(maybeId)) { | ||
this.log.debug(`key not an id! key:${key}`); | ||
return void 0; | ||
} | ||
return maybeId; | ||
} | ||
existsNode(keys2) { | ||
const existingKeys = forceArray(keys2).map((k) => { | ||
const id = this.keyToId(k); | ||
if (!id) { | ||
return ""; | ||
} | ||
return this._nodes.hasOwnProperty(id) ? k : ""; | ||
}).filter((x) => x); | ||
return existingKeys; | ||
} | ||
getNode(...keys) { | ||
if (!keys.length) { | ||
deleteNode(keys2) { | ||
const keysArray = forceArray(keys2); | ||
const deletedKeys = []; | ||
for (let i = 0; i < keysArray.length; i++) { | ||
const key = keysArray[i]; | ||
let maybeNode; | ||
try { | ||
maybeNode = this.getNode(key); | ||
} catch (e) { | ||
} | ||
if (!maybeNode) { | ||
this.log.warning(`Node with key:'${key}' doesn't exist. Skipping delete.`); | ||
continue; | ||
} | ||
try { | ||
delete this._pathIndex[maybeNode._path]; | ||
delete this._nodes[maybeNode._id]; | ||
deletedKeys.push(key); | ||
} catch (e) { | ||
this.log.error(`Something went wrong when trying to delete node with key:'${key}'`); | ||
} | ||
} | ||
return deletedKeys; | ||
} | ||
getNode(...keys2) { | ||
if (!keys2.length) { | ||
return []; | ||
} | ||
const flattenedKeys = flatten(keys); | ||
const nodes = flattenedKeys.map((k) => this._nodes[k]); | ||
const flattenedKeys = flatten(keys2); | ||
const existingKeys = this.existsNode(flattenedKeys); | ||
const nodes = existingKeys.map((key) => { | ||
const id = this.keyToId(key); | ||
if (!id) { | ||
throw new Error(`Can't get id from key:${key}, even though exists???`); | ||
} | ||
return this._nodes[id]; | ||
}); | ||
return nodes.length > 1 ? nodes : nodes[0]; | ||
} | ||
getNodeActiveVersion({ | ||
key | ||
}) { | ||
const node = this.getNode(key); | ||
if (node) { | ||
return { | ||
versionId: node._versionKey, | ||
nodeId: node._id, | ||
nodePath: node._path, | ||
timestamp: node._ts | ||
}; | ||
} | ||
this.log.error(`No such node with key:'${key}`); | ||
return null; | ||
} | ||
modifyNode({ | ||
@@ -320,3 +450,15 @@ key, | ||
const node = this.getNode(key); | ||
return editor(node); | ||
if (!node) { | ||
throw new Error(`modify: Node with key:${key} not found!`); | ||
} | ||
const _id = node._id; | ||
const _name = node._name; | ||
const _path = node._path; | ||
const modifiedNode = sortKeys(__spreadProps(__spreadValues({}, editor(node)), { | ||
_id, | ||
_name, | ||
_path | ||
})); | ||
this._nodes[_id] = modifiedNode; | ||
return this._nodes[_id]; | ||
} | ||
@@ -381,2 +523,50 @@ query({ | ||
// src/mock/JavaBridge.ts | ||
var colorCodes = { | ||
reset: [0, 0], | ||
bold: [1, 22], | ||
dim: [2, 22], | ||
italic: [3, 23], | ||
underline: [4, 24], | ||
inverse: [7, 27], | ||
hidden: [8, 28], | ||
strikethrough: [9, 29], | ||
black: [30, 39], | ||
red: [31, 39], | ||
green: [32, 39], | ||
yellow: [33, 39], | ||
blue: [34, 39], | ||
magenta: [35, 39], | ||
cyan: [36, 39], | ||
white: [37, 39], | ||
grey: [90, 39], | ||
brightRed: [91, 39], | ||
brightGreen: [92, 39], | ||
brightYellow: [93, 39], | ||
brightBlue: [94, 39], | ||
brightMagenta: [95, 39], | ||
brightCyan: [96, 39], | ||
brightWhite: [97, 39], | ||
bgBlack: [40, 49], | ||
bgRed: [41, 49], | ||
bgGreen: [42, 49], | ||
bgYellow: [43, 49], | ||
bgBlue: [44, 49], | ||
bgMagenta: [45, 49], | ||
bgCyan: [46, 49], | ||
bgWhite: [47, 49], | ||
bgGray: [100, 49], | ||
bgGrey: [100, 49], | ||
bgBrightRed: [101, 49], | ||
bgBrightGreen: [102, 49], | ||
bgBrightYellow: [103, 49], | ||
bgBrightBlue: [104, 49], | ||
bgBrightMagenta: [105, 49], | ||
bgBrightCyan: [106, 49], | ||
bgBrightWhite: [107, 49] | ||
}; | ||
function colorize(colorKey, str) { | ||
const open = colorCodes[colorKey][0]; | ||
const close = colorCodes[colorKey][1]; | ||
return `[${open}m${str}[${close}m`; | ||
} | ||
var JavaBridge = class { | ||
@@ -389,13 +579,29 @@ constructor({ | ||
this.log = { | ||
debug: (...params) => { | ||
console.debug(...params); | ||
debug: (format, ...substs) => { | ||
if (substs.length) { | ||
console.debug(colorize("grey", `DEBUG ${format}`), ...substs.map((o) => toStr(o))); | ||
} else { | ||
console.debug(colorize("grey", `DEBUG ${format}`)); | ||
} | ||
}, | ||
error: (...params) => { | ||
console.error(...params); | ||
error: (format, ...substs) => { | ||
if (substs.length) { | ||
console.error(colorize("brightRed", `ERROR ${format}`), ...substs.map((o) => toStr(o))); | ||
} else { | ||
console.error(colorize("brightRed", `ERROR ${format}`)); | ||
} | ||
}, | ||
info: (...params) => { | ||
console.info(...params); | ||
info: (format, ...substs) => { | ||
if (substs.length) { | ||
console.info(colorize("white", `INFO ${format}`), ...substs.map((o) => toStr(o))); | ||
} else { | ||
console.info(colorize("white", `INFO ${format}`)); | ||
} | ||
}, | ||
warning: (...params) => { | ||
console.warn(...params); | ||
warning: (format, ...substs) => { | ||
if (substs.length) { | ||
console.warn(colorize("brightYellow", `WARN ${format}`), ...substs.map((o) => toStr(o))); | ||
} else { | ||
console.warn(colorize("brightYellow", `WARN ${format}`)); | ||
} | ||
} | ||
@@ -402,0 +608,0 @@ }; |
var __defProp = Object.defineProperty; | ||
var __defProps = Object.defineProperties; | ||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor; | ||
var __getOwnPropDescs = Object.getOwnPropertyDescriptors; | ||
var __getOwnPropNames = Object.getOwnPropertyNames; | ||
@@ -19,2 +21,3 @@ var __getOwnPropSymbols = Object.getOwnPropertySymbols; | ||
}; | ||
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b)); | ||
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true }); | ||
@@ -70,8 +73,16 @@ var __objRest = (source, exclude) => { | ||
} | ||
exists(keys) { | ||
return this._branch.existsNode(keys); | ||
exists(keys2) { | ||
return this._branch.existsNode(keys2); | ||
} | ||
get(...keys) { | ||
return this._branch.getNode(...keys); | ||
delete(keys2) { | ||
return this._branch.deleteNode(keys2); | ||
} | ||
get(...keys2) { | ||
return this._branch.getNode(...keys2); | ||
} | ||
getActiveVersion({ | ||
key | ||
}) { | ||
return this._branch.getNodeActiveVersion({ key }); | ||
} | ||
modify({ | ||
@@ -124,2 +135,5 @@ key, | ||
// src/value/isString.ts | ||
var isString = (value) => typeof value === "string" || value instanceof String; | ||
// src/value/isInt.ts | ||
@@ -136,2 +150,8 @@ function isInt(value) { | ||
// src/value/isUuidV4String.ts | ||
var REGEXP = /^[0-9a-f]{8}-[0-9a-f]{4}-[4][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i; | ||
function isUuidV4String(value) { | ||
return isString(value) ? REGEXP.test(value) : false; | ||
} | ||
// src/value/index.ts | ||
@@ -144,3 +164,22 @@ function isFunction(value) { | ||
} | ||
function toStr(value, replacer, space = 4) { | ||
return JSON.stringify(value, replacer, space); | ||
} | ||
// src/object/index.ts | ||
var { isArray } = Array; | ||
var { keys } = Object; | ||
function sortKeys(obj) { | ||
if (typeof obj !== "object" || isArray(obj)) { | ||
throw new Error("sortKeys"); | ||
} | ||
const newObject = {}; | ||
const sortedKeys = keys(obj).sort(); | ||
for (let i = 0, l = sortedKeys.length; i < l; i++) { | ||
const k = sortedKeys[i]; | ||
newObject[k] = obj[k]; | ||
} | ||
return newObject; | ||
} | ||
// src/storage/indexing/enonify.ts | ||
@@ -203,2 +242,13 @@ function enonify(unknown) { | ||
// src/mock/node/NodeNotFoundException.ts | ||
var NodeNotFoundException = class extends Error { | ||
constructor(message) { | ||
super(message); | ||
if (Error.captureStackTrace) { | ||
Error.captureStackTrace(this, NodeNotFoundException); | ||
} | ||
this.name = "com.enonic.xp.node.NodeNotFoundException"; | ||
} | ||
}; | ||
// src/mock/Branch.ts | ||
@@ -218,2 +268,5 @@ var DEFAULT_INDEX_CONFIG = { | ||
}; | ||
function isPathString(key) { | ||
return key.startsWith("/"); | ||
} | ||
var Branch = class { | ||
@@ -251,2 +304,5 @@ constructor({ | ||
}; | ||
this._pathIndex = { | ||
"": "00000000-0000-0000-0000-000000000000" | ||
}; | ||
this._repo = repo; | ||
@@ -266,7 +322,9 @@ this.log = this._repo.log; | ||
_name, | ||
_nodeType = "default" | ||
_nodeType = "default", | ||
_parentPath = "/" | ||
} = _b, rest = __objRest(_b, [ | ||
"_indexConfig", | ||
"_name", | ||
"_nodeType" | ||
"_nodeType", | ||
"_parentPath" | ||
]); | ||
@@ -278,2 +336,8 @@ const _id = this.generateId(); | ||
} | ||
if (!_parentPath.endsWith("/")) { | ||
_parentPath += "/"; | ||
} | ||
if (_parentPath !== "/" && this.existsNode(_parentPath)[0] !== _parentPath) { | ||
throw new NodeNotFoundException(`Cannot create node with name ${_name}, parent '${_parentPath}' not found`); | ||
} | ||
const _ts = Branch.generateInstantString(); | ||
@@ -283,2 +347,3 @@ if (this._nodes.hasOwnProperty(_id)) { | ||
} | ||
const _path = `${_parentPath}${_name}`; | ||
const node = __spreadValues({ | ||
@@ -289,2 +354,3 @@ _id, | ||
_nodeType, | ||
_path, | ||
_state: "DEFAULT", | ||
@@ -295,21 +361,85 @@ _ts, | ||
this._nodes[_id] = node; | ||
this._pathIndex[_path] = _id; | ||
return node; | ||
} | ||
existsNode(keys) { | ||
const existingKeys = forceArray(keys).map((k) => { | ||
if (this.getNode(k)) { | ||
return k; | ||
keyToId(key) { | ||
let maybeId = key; | ||
if (isPathString(key)) { | ||
const path = key.endsWith("/") ? key.substring(0, key.length - 1) : key; | ||
maybeId = this._pathIndex[path]; | ||
if (!maybeId) { | ||
this.log.debug(`Could not find id from path:${path}!`); | ||
return void 0; | ||
} | ||
return ""; | ||
} | ||
if (!isUuidV4String(maybeId)) { | ||
this.log.debug(`key not an id! key:${key}`); | ||
return void 0; | ||
} | ||
return maybeId; | ||
} | ||
existsNode(keys2) { | ||
const existingKeys = forceArray(keys2).map((k) => { | ||
const id = this.keyToId(k); | ||
if (!id) { | ||
return ""; | ||
} | ||
return this._nodes.hasOwnProperty(id) ? k : ""; | ||
}).filter((x) => x); | ||
return existingKeys; | ||
} | ||
getNode(...keys) { | ||
if (!keys.length) { | ||
deleteNode(keys2) { | ||
const keysArray = forceArray(keys2); | ||
const deletedKeys = []; | ||
for (let i = 0; i < keysArray.length; i++) { | ||
const key = keysArray[i]; | ||
let maybeNode; | ||
try { | ||
maybeNode = this.getNode(key); | ||
} catch (e) { | ||
} | ||
if (!maybeNode) { | ||
this.log.warning(`Node with key:'${key}' doesn't exist. Skipping delete.`); | ||
continue; | ||
} | ||
try { | ||
delete this._pathIndex[maybeNode._path]; | ||
delete this._nodes[maybeNode._id]; | ||
deletedKeys.push(key); | ||
} catch (e) { | ||
this.log.error(`Something went wrong when trying to delete node with key:'${key}'`); | ||
} | ||
} | ||
return deletedKeys; | ||
} | ||
getNode(...keys2) { | ||
if (!keys2.length) { | ||
return []; | ||
} | ||
const flattenedKeys = flatten(keys); | ||
const nodes = flattenedKeys.map((k) => this._nodes[k]); | ||
const flattenedKeys = flatten(keys2); | ||
const existingKeys = this.existsNode(flattenedKeys); | ||
const nodes = existingKeys.map((key) => { | ||
const id = this.keyToId(key); | ||
if (!id) { | ||
throw new Error(`Can't get id from key:${key}, even though exists???`); | ||
} | ||
return this._nodes[id]; | ||
}); | ||
return nodes.length > 1 ? nodes : nodes[0]; | ||
} | ||
getNodeActiveVersion({ | ||
key | ||
}) { | ||
const node = this.getNode(key); | ||
if (node) { | ||
return { | ||
versionId: node._versionKey, | ||
nodeId: node._id, | ||
nodePath: node._path, | ||
timestamp: node._ts | ||
}; | ||
} | ||
this.log.error(`No such node with key:'${key}`); | ||
return null; | ||
} | ||
modifyNode({ | ||
@@ -320,3 +450,15 @@ key, | ||
const node = this.getNode(key); | ||
return editor(node); | ||
if (!node) { | ||
throw new Error(`modify: Node with key:${key} not found!`); | ||
} | ||
const _id = node._id; | ||
const _name = node._name; | ||
const _path = node._path; | ||
const modifiedNode = sortKeys(__spreadProps(__spreadValues({}, editor(node)), { | ||
_id, | ||
_name, | ||
_path | ||
})); | ||
this._nodes[_id] = modifiedNode; | ||
return this._nodes[_id]; | ||
} | ||
@@ -381,2 +523,50 @@ query({ | ||
// src/mock/JavaBridge.ts | ||
var colorCodes = { | ||
reset: [0, 0], | ||
bold: [1, 22], | ||
dim: [2, 22], | ||
italic: [3, 23], | ||
underline: [4, 24], | ||
inverse: [7, 27], | ||
hidden: [8, 28], | ||
strikethrough: [9, 29], | ||
black: [30, 39], | ||
red: [31, 39], | ||
green: [32, 39], | ||
yellow: [33, 39], | ||
blue: [34, 39], | ||
magenta: [35, 39], | ||
cyan: [36, 39], | ||
white: [37, 39], | ||
grey: [90, 39], | ||
brightRed: [91, 39], | ||
brightGreen: [92, 39], | ||
brightYellow: [93, 39], | ||
brightBlue: [94, 39], | ||
brightMagenta: [95, 39], | ||
brightCyan: [96, 39], | ||
brightWhite: [97, 39], | ||
bgBlack: [40, 49], | ||
bgRed: [41, 49], | ||
bgGreen: [42, 49], | ||
bgYellow: [43, 49], | ||
bgBlue: [44, 49], | ||
bgMagenta: [45, 49], | ||
bgCyan: [46, 49], | ||
bgWhite: [47, 49], | ||
bgGray: [100, 49], | ||
bgGrey: [100, 49], | ||
bgBrightRed: [101, 49], | ||
bgBrightGreen: [102, 49], | ||
bgBrightYellow: [103, 49], | ||
bgBrightBlue: [104, 49], | ||
bgBrightMagenta: [105, 49], | ||
bgBrightCyan: [106, 49], | ||
bgBrightWhite: [107, 49] | ||
}; | ||
function colorize(colorKey, str) { | ||
const open = colorCodes[colorKey][0]; | ||
const close = colorCodes[colorKey][1]; | ||
return `[${open}m${str}[${close}m`; | ||
} | ||
var JavaBridge = class { | ||
@@ -389,13 +579,29 @@ constructor({ | ||
this.log = { | ||
debug: (...params) => { | ||
console.debug(...params); | ||
debug: (format, ...substs) => { | ||
if (substs.length) { | ||
console.debug(colorize("grey", `DEBUG ${format}`), ...substs.map((o) => toStr(o))); | ||
} else { | ||
console.debug(colorize("grey", `DEBUG ${format}`)); | ||
} | ||
}, | ||
error: (...params) => { | ||
console.error(...params); | ||
error: (format, ...substs) => { | ||
if (substs.length) { | ||
console.error(colorize("brightRed", `ERROR ${format}`), ...substs.map((o) => toStr(o))); | ||
} else { | ||
console.error(colorize("brightRed", `ERROR ${format}`)); | ||
} | ||
}, | ||
info: (...params) => { | ||
console.info(...params); | ||
info: (format, ...substs) => { | ||
if (substs.length) { | ||
console.info(colorize("white", `INFO ${format}`), ...substs.map((o) => toStr(o))); | ||
} else { | ||
console.info(colorize("white", `INFO ${format}`)); | ||
} | ||
}, | ||
warning: (...params) => { | ||
console.warn(...params); | ||
warning: (format, ...substs) => { | ||
if (substs.length) { | ||
console.warn(colorize("brightYellow", `WARN ${format}`), ...substs.map((o) => toStr(o))); | ||
} else { | ||
console.warn(colorize("brightYellow", `WARN ${format}`)); | ||
} | ||
} | ||
@@ -402,0 +608,0 @@ }; |
var __defProp = Object.defineProperty; | ||
var __defProps = Object.defineProperties; | ||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor; | ||
var __getOwnPropDescs = Object.getOwnPropertyDescriptors; | ||
var __getOwnPropNames = Object.getOwnPropertyNames; | ||
@@ -19,2 +21,3 @@ var __getOwnPropSymbols = Object.getOwnPropertySymbols; | ||
}; | ||
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b)); | ||
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true }); | ||
@@ -72,2 +75,5 @@ var __objRest = (source, exclude) => { | ||
// src/value/isString.ts | ||
var isString = (value) => typeof value === "string" || value instanceof String; | ||
// src/value/isInt.ts | ||
@@ -84,2 +90,8 @@ function isInt(value) { | ||
// src/value/isUuidV4String.ts | ||
var REGEXP = /^[0-9a-f]{8}-[0-9a-f]{4}-[4][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i; | ||
function isUuidV4String(value) { | ||
return isString(value) ? REGEXP.test(value) : false; | ||
} | ||
// src/value/index.ts | ||
@@ -93,2 +105,18 @@ function isFunction(value) { | ||
// src/object/index.ts | ||
var { isArray } = Array; | ||
var { keys } = Object; | ||
function sortKeys(obj) { | ||
if (typeof obj !== "object" || isArray(obj)) { | ||
throw new Error("sortKeys"); | ||
} | ||
const newObject = {}; | ||
const sortedKeys = keys(obj).sort(); | ||
for (let i = 0, l = sortedKeys.length; i < l; i++) { | ||
const k = sortedKeys[i]; | ||
newObject[k] = obj[k]; | ||
} | ||
return newObject; | ||
} | ||
// src/storage/indexing/enonify.ts | ||
@@ -151,2 +179,13 @@ function enonify(unknown) { | ||
// src/mock/node/NodeNotFoundException.ts | ||
var NodeNotFoundException = class extends Error { | ||
constructor(message) { | ||
super(message); | ||
if (Error.captureStackTrace) { | ||
Error.captureStackTrace(this, NodeNotFoundException); | ||
} | ||
this.name = "com.enonic.xp.node.NodeNotFoundException"; | ||
} | ||
}; | ||
// src/mock/Branch.ts | ||
@@ -166,2 +205,5 @@ var DEFAULT_INDEX_CONFIG = { | ||
}; | ||
function isPathString(key) { | ||
return key.startsWith("/"); | ||
} | ||
var Branch = class { | ||
@@ -199,2 +241,5 @@ constructor({ | ||
}; | ||
this._pathIndex = { | ||
"": "00000000-0000-0000-0000-000000000000" | ||
}; | ||
this._repo = repo; | ||
@@ -214,7 +259,9 @@ this.log = this._repo.log; | ||
_name, | ||
_nodeType = "default" | ||
_nodeType = "default", | ||
_parentPath = "/" | ||
} = _b, rest = __objRest(_b, [ | ||
"_indexConfig", | ||
"_name", | ||
"_nodeType" | ||
"_nodeType", | ||
"_parentPath" | ||
]); | ||
@@ -226,2 +273,8 @@ const _id = this.generateId(); | ||
} | ||
if (!_parentPath.endsWith("/")) { | ||
_parentPath += "/"; | ||
} | ||
if (_parentPath !== "/" && this.existsNode(_parentPath)[0] !== _parentPath) { | ||
throw new NodeNotFoundException(`Cannot create node with name ${_name}, parent '${_parentPath}' not found`); | ||
} | ||
const _ts = Branch.generateInstantString(); | ||
@@ -231,2 +284,3 @@ if (this._nodes.hasOwnProperty(_id)) { | ||
} | ||
const _path = `${_parentPath}${_name}`; | ||
const node = __spreadValues({ | ||
@@ -237,2 +291,3 @@ _id, | ||
_nodeType, | ||
_path, | ||
_state: "DEFAULT", | ||
@@ -243,21 +298,85 @@ _ts, | ||
this._nodes[_id] = node; | ||
this._pathIndex[_path] = _id; | ||
return node; | ||
} | ||
existsNode(keys) { | ||
const existingKeys = forceArray(keys).map((k) => { | ||
if (this.getNode(k)) { | ||
return k; | ||
keyToId(key) { | ||
let maybeId = key; | ||
if (isPathString(key)) { | ||
const path = key.endsWith("/") ? key.substring(0, key.length - 1) : key; | ||
maybeId = this._pathIndex[path]; | ||
if (!maybeId) { | ||
this.log.debug(`Could not find id from path:${path}!`); | ||
return void 0; | ||
} | ||
return ""; | ||
} | ||
if (!isUuidV4String(maybeId)) { | ||
this.log.debug(`key not an id! key:${key}`); | ||
return void 0; | ||
} | ||
return maybeId; | ||
} | ||
existsNode(keys2) { | ||
const existingKeys = forceArray(keys2).map((k) => { | ||
const id = this.keyToId(k); | ||
if (!id) { | ||
return ""; | ||
} | ||
return this._nodes.hasOwnProperty(id) ? k : ""; | ||
}).filter((x) => x); | ||
return existingKeys; | ||
} | ||
getNode(...keys) { | ||
if (!keys.length) { | ||
deleteNode(keys2) { | ||
const keysArray = forceArray(keys2); | ||
const deletedKeys = []; | ||
for (let i = 0; i < keysArray.length; i++) { | ||
const key = keysArray[i]; | ||
let maybeNode; | ||
try { | ||
maybeNode = this.getNode(key); | ||
} catch (e) { | ||
} | ||
if (!maybeNode) { | ||
this.log.warning(`Node with key:'${key}' doesn't exist. Skipping delete.`); | ||
continue; | ||
} | ||
try { | ||
delete this._pathIndex[maybeNode._path]; | ||
delete this._nodes[maybeNode._id]; | ||
deletedKeys.push(key); | ||
} catch (e) { | ||
this.log.error(`Something went wrong when trying to delete node with key:'${key}'`); | ||
} | ||
} | ||
return deletedKeys; | ||
} | ||
getNode(...keys2) { | ||
if (!keys2.length) { | ||
return []; | ||
} | ||
const flattenedKeys = flatten(keys); | ||
const nodes = flattenedKeys.map((k) => this._nodes[k]); | ||
const flattenedKeys = flatten(keys2); | ||
const existingKeys = this.existsNode(flattenedKeys); | ||
const nodes = existingKeys.map((key) => { | ||
const id = this.keyToId(key); | ||
if (!id) { | ||
throw new Error(`Can't get id from key:${key}, even though exists???`); | ||
} | ||
return this._nodes[id]; | ||
}); | ||
return nodes.length > 1 ? nodes : nodes[0]; | ||
} | ||
getNodeActiveVersion({ | ||
key | ||
}) { | ||
const node = this.getNode(key); | ||
if (node) { | ||
return { | ||
versionId: node._versionKey, | ||
nodeId: node._id, | ||
nodePath: node._path, | ||
timestamp: node._ts | ||
}; | ||
} | ||
this.log.error(`No such node with key:'${key}`); | ||
return null; | ||
} | ||
modifyNode({ | ||
@@ -268,3 +387,15 @@ key, | ||
const node = this.getNode(key); | ||
return editor(node); | ||
if (!node) { | ||
throw new Error(`modify: Node with key:${key} not found!`); | ||
} | ||
const _id = node._id; | ||
const _name = node._name; | ||
const _path = node._path; | ||
const modifiedNode = sortKeys(__spreadProps(__spreadValues({}, editor(node)), { | ||
_id, | ||
_name, | ||
_path | ||
})); | ||
this._nodes[_id] = modifiedNode; | ||
return this._nodes[_id]; | ||
} | ||
@@ -271,0 +402,0 @@ query({ |
@@ -1,1 +0,1 @@ | ||
window.searchData = {"kinds":{"32":"Variable","64":"Function"},"rows":[{"id":0,"kind":64,"name":"findIndex","url":"modules.html#findIndex","classes":"tsd-kind-function"},{"id":1,"kind":64,"name":"flatten","url":"modules.html#flatten","classes":"tsd-kind-function tsd-has-type-parameter"},{"id":2,"kind":64,"name":"forceArray","url":"modules.html#forceArray","classes":"tsd-kind-function tsd-has-type-parameter"},{"id":3,"kind":64,"name":"sortByProperty","url":"modules.html#sortByProperty","classes":"tsd-kind-function tsd-has-type-parameter"},{"id":4,"kind":64,"name":"hasOwnProperty","url":"modules.html#hasOwnProperty","classes":"tsd-kind-function tsd-has-type-parameter"},{"id":5,"kind":64,"name":"sortKeys","url":"modules.html#sortKeys","classes":"tsd-kind-function"},{"id":6,"kind":64,"name":"sortKeysRec","url":"modules.html#sortKeysRec","classes":"tsd-kind-function"},{"id":7,"kind":32,"name":"AGGREGATION_COUNT","url":"modules.html#AGGREGATION_COUNT","classes":"tsd-kind-variable"},{"id":8,"kind":32,"name":"AGGREGATION_DATE_HISTOGRAM","url":"modules.html#AGGREGATION_DATE_HISTOGRAM","classes":"tsd-kind-variable"},{"id":9,"kind":32,"name":"AGGREGATION_DATE_RANGE","url":"modules.html#AGGREGATION_DATE_RANGE","classes":"tsd-kind-variable"},{"id":10,"kind":32,"name":"AGGREGATION_GEO_DISTANCE","url":"modules.html#AGGREGATION_GEO_DISTANCE","classes":"tsd-kind-variable"},{"id":11,"kind":32,"name":"AGGREGATION_MAX","url":"modules.html#AGGREGATION_MAX","classes":"tsd-kind-variable"},{"id":12,"kind":32,"name":"AGGREGATION_MIN","url":"modules.html#AGGREGATION_MIN","classes":"tsd-kind-variable"},{"id":13,"kind":32,"name":"AGGREGATION_RANGE","url":"modules.html#AGGREGATION_RANGE","classes":"tsd-kind-variable"},{"id":14,"kind":32,"name":"AGGREGATION_STATS","url":"modules.html#AGGREGATION_STATS","classes":"tsd-kind-variable"},{"id":15,"kind":32,"name":"AGGREGATION_TERMS","url":"modules.html#AGGREGATION_TERMS","classes":"tsd-kind-variable"},{"id":16,"kind":32,"name":"FILTER_CLAUSE_MUST","url":"modules.html#FILTER_CLAUSE_MUST","classes":"tsd-kind-variable"},{"id":17,"kind":32,"name":"FILTER_CLAUSE_MUST_NOT","url":"modules.html#FILTER_CLAUSE_MUST_NOT","classes":"tsd-kind-variable"},{"id":18,"kind":32,"name":"FILTER_CLAUSE_SHOULD","url":"modules.html#FILTER_CLAUSE_SHOULD","classes":"tsd-kind-variable"},{"id":19,"kind":32,"name":"FILTER_CLAUSES","url":"modules.html#FILTER_CLAUSES","classes":"tsd-kind-variable"},{"id":20,"kind":32,"name":"INDEX_CONFIG_ENABLED","url":"modules.html#INDEX_CONFIG_ENABLED","classes":"tsd-kind-variable"},{"id":21,"kind":32,"name":"INDEX_CONFIG_ENABLED_DEFAULT","url":"modules.html#INDEX_CONFIG_ENABLED_DEFAULT","classes":"tsd-kind-variable"},{"id":22,"kind":32,"name":"INDEX_CONFIG_DECIDE_BY_TYPE","url":"modules.html#INDEX_CONFIG_DECIDE_BY_TYPE","classes":"tsd-kind-variable"},{"id":23,"kind":32,"name":"INDEX_CONFIG_DECIDE_BY_TYPE_DEFAULT","url":"modules.html#INDEX_CONFIG_DECIDE_BY_TYPE_DEFAULT","classes":"tsd-kind-variable"},{"id":24,"kind":32,"name":"INDEX_CONFIG_FULLTEXT","url":"modules.html#INDEX_CONFIG_FULLTEXT","classes":"tsd-kind-variable"},{"id":25,"kind":32,"name":"INDEX_CONFIG_FULLTEXT_DEFAULT","url":"modules.html#INDEX_CONFIG_FULLTEXT_DEFAULT","classes":"tsd-kind-variable"},{"id":26,"kind":32,"name":"INDEX_CONFIG_INCLUDE_IN_ALL_TEXT","url":"modules.html#INDEX_CONFIG_INCLUDE_IN_ALL_TEXT","classes":"tsd-kind-variable"},{"id":27,"kind":32,"name":"INDEX_CONFIG_INCLUDE_IN_ALL_TEXT_DEFAULT","url":"modules.html#INDEX_CONFIG_INCLUDE_IN_ALL_TEXT_DEFAULT","classes":"tsd-kind-variable"},{"id":28,"kind":32,"name":"INDEX_CONFIG_N_GRAM","url":"modules.html#INDEX_CONFIG_N_GRAM","classes":"tsd-kind-variable"},{"id":29,"kind":32,"name":"INDEX_CONFIG_N_GRAM_DEFAULT","url":"modules.html#INDEX_CONFIG_N_GRAM_DEFAULT","classes":"tsd-kind-variable"},{"id":30,"kind":32,"name":"INDEX_CONFIG_PATH","url":"modules.html#INDEX_CONFIG_PATH","classes":"tsd-kind-variable"},{"id":31,"kind":32,"name":"INDEX_CONFIG_PATH_DEFAULT","url":"modules.html#INDEX_CONFIG_PATH_DEFAULT","classes":"tsd-kind-variable"},{"id":32,"kind":32,"name":"INDEX_CONFIG_TEMPLATE_NONE","url":"modules.html#INDEX_CONFIG_TEMPLATE_NONE","classes":"tsd-kind-variable"},{"id":33,"kind":32,"name":"INDEX_CONFIG_TEMPLATE_BY_TYPE","url":"modules.html#INDEX_CONFIG_TEMPLATE_BY_TYPE","classes":"tsd-kind-variable"},{"id":34,"kind":32,"name":"INDEX_CONFIG_TEMPLATE_FULLTEXT","url":"modules.html#INDEX_CONFIG_TEMPLATE_FULLTEXT","classes":"tsd-kind-variable"},{"id":35,"kind":32,"name":"INDEX_CONFIG_TEMPLATE_PATH","url":"modules.html#INDEX_CONFIG_TEMPLATE_PATH","classes":"tsd-kind-variable"},{"id":36,"kind":32,"name":"INDEX_CONFIG_TEMPLATE_MINIMAL","url":"modules.html#INDEX_CONFIG_TEMPLATE_MINIMAL","classes":"tsd-kind-variable"},{"id":37,"kind":32,"name":"INDEX_CONFIG_TEMPLATES","url":"modules.html#INDEX_CONFIG_TEMPLATES","classes":"tsd-kind-variable"},{"id":38,"kind":32,"name":"QUERY_FUNCTION_FULLTEXT","url":"modules.html#QUERY_FUNCTION_FULLTEXT","classes":"tsd-kind-variable"},{"id":39,"kind":32,"name":"QUERY_FUNCTION_NGRAM","url":"modules.html#QUERY_FUNCTION_NGRAM","classes":"tsd-kind-variable"},{"id":40,"kind":32,"name":"QUERY_FUNCTION_PATH_MATCH","url":"modules.html#QUERY_FUNCTION_PATH_MATCH","classes":"tsd-kind-variable"},{"id":41,"kind":32,"name":"QUERY_FUNCTION_RANGE","url":"modules.html#QUERY_FUNCTION_RANGE","classes":"tsd-kind-variable"},{"id":42,"kind":32,"name":"QUERY_FUNCTION_STEMMED","url":"modules.html#QUERY_FUNCTION_STEMMED","classes":"tsd-kind-variable"},{"id":43,"kind":32,"name":"QUERY_OPERATOR_AND","url":"modules.html#QUERY_OPERATOR_AND","classes":"tsd-kind-variable"},{"id":44,"kind":32,"name":"QUERY_OPERATOR_OR","url":"modules.html#QUERY_OPERATOR_OR","classes":"tsd-kind-variable"},{"id":45,"kind":32,"name":"SORT_CREATED","url":"modules.html#SORT_CREATED","classes":"tsd-kind-variable"},{"id":46,"kind":32,"name":"SORT_DISPLAYNAME","url":"modules.html#SORT_DISPLAYNAME","classes":"tsd-kind-variable"},{"id":47,"kind":32,"name":"SORT_MANUAL","url":"modules.html#SORT_MANUAL","classes":"tsd-kind-variable"},{"id":48,"kind":32,"name":"SORT_MODIFIED","url":"modules.html#SORT_MODIFIED","classes":"tsd-kind-variable"},{"id":49,"kind":32,"name":"STEMMING_LANGUAGE_CODE_ARABIC","url":"modules.html#STEMMING_LANGUAGE_CODE_ARABIC","classes":"tsd-kind-variable"},{"id":50,"kind":32,"name":"STEMMING_LANGUAGE_CODE_BULGARIAN","url":"modules.html#STEMMING_LANGUAGE_CODE_BULGARIAN","classes":"tsd-kind-variable"},{"id":51,"kind":32,"name":"STEMMING_LANGUAGE_CODE_BENGALI","url":"modules.html#STEMMING_LANGUAGE_CODE_BENGALI","classes":"tsd-kind-variable"},{"id":52,"kind":32,"name":"STEMMING_LANGUAGE_CODE_CATALAN","url":"modules.html#STEMMING_LANGUAGE_CODE_CATALAN","classes":"tsd-kind-variable"},{"id":53,"kind":32,"name":"STEMMING_LANGUAGE_CODE_CZECH","url":"modules.html#STEMMING_LANGUAGE_CODE_CZECH","classes":"tsd-kind-variable"},{"id":54,"kind":32,"name":"STEMMING_LANGUAGE_CODE_DANISH","url":"modules.html#STEMMING_LANGUAGE_CODE_DANISH","classes":"tsd-kind-variable"},{"id":55,"kind":32,"name":"STEMMING_LANGUAGE_CODE_GERMAN","url":"modules.html#STEMMING_LANGUAGE_CODE_GERMAN","classes":"tsd-kind-variable"},{"id":56,"kind":32,"name":"STEMMING_LANGUAGE_CODE_GREEK","url":"modules.html#STEMMING_LANGUAGE_CODE_GREEK","classes":"tsd-kind-variable"},{"id":57,"kind":32,"name":"STEMMING_LANGUAGE_CODE_ENGLISH","url":"modules.html#STEMMING_LANGUAGE_CODE_ENGLISH","classes":"tsd-kind-variable"},{"id":58,"kind":32,"name":"STEMMING_LANGUAGE_CODE_BASQUE","url":"modules.html#STEMMING_LANGUAGE_CODE_BASQUE","classes":"tsd-kind-variable"},{"id":59,"kind":32,"name":"STEMMING_LANGUAGE_CODE_PERSIAN","url":"modules.html#STEMMING_LANGUAGE_CODE_PERSIAN","classes":"tsd-kind-variable"},{"id":60,"kind":32,"name":"STEMMING_LANGUAGE_CODE_FINNISH","url":"modules.html#STEMMING_LANGUAGE_CODE_FINNISH","classes":"tsd-kind-variable"},{"id":61,"kind":32,"name":"STEMMING_LANGUAGE_CODE_FRENCH","url":"modules.html#STEMMING_LANGUAGE_CODE_FRENCH","classes":"tsd-kind-variable"},{"id":62,"kind":32,"name":"STEMMING_LANGUAGE_CODE_IRISH","url":"modules.html#STEMMING_LANGUAGE_CODE_IRISH","classes":"tsd-kind-variable"},{"id":63,"kind":32,"name":"STEMMING_LANGUAGE_CODE_GALICIAN","url":"modules.html#STEMMING_LANGUAGE_CODE_GALICIAN","classes":"tsd-kind-variable"},{"id":64,"kind":32,"name":"STEMMING_LANGUAGE_CODE_HINDI","url":"modules.html#STEMMING_LANGUAGE_CODE_HINDI","classes":"tsd-kind-variable"},{"id":65,"kind":32,"name":"STEMMING_LANGUAGE_CODE_HUNGARIAN","url":"modules.html#STEMMING_LANGUAGE_CODE_HUNGARIAN","classes":"tsd-kind-variable"},{"id":66,"kind":32,"name":"STEMMING_LANGUAGE_CODE_ARMENIAN","url":"modules.html#STEMMING_LANGUAGE_CODE_ARMENIAN","classes":"tsd-kind-variable"},{"id":67,"kind":32,"name":"STEMMING_LANGUAGE_CODE_INDONESIAN","url":"modules.html#STEMMING_LANGUAGE_CODE_INDONESIAN","classes":"tsd-kind-variable"},{"id":68,"kind":32,"name":"STEMMING_LANGUAGE_CODE_ITALIAN","url":"modules.html#STEMMING_LANGUAGE_CODE_ITALIAN","classes":"tsd-kind-variable"},{"id":69,"kind":32,"name":"STEMMING_LANGUAGE_CODE_JAPANESE","url":"modules.html#STEMMING_LANGUAGE_CODE_JAPANESE","classes":"tsd-kind-variable"},{"id":70,"kind":32,"name":"STEMMING_LANGUAGE_CODE_KOREAN","url":"modules.html#STEMMING_LANGUAGE_CODE_KOREAN","classes":"tsd-kind-variable"},{"id":71,"kind":32,"name":"STEMMING_LANGUAGE_CODE_SORANI","url":"modules.html#STEMMING_LANGUAGE_CODE_SORANI","classes":"tsd-kind-variable"},{"id":72,"kind":32,"name":"STEMMING_LANGUAGE_CODE_LITHUANIAN","url":"modules.html#STEMMING_LANGUAGE_CODE_LITHUANIAN","classes":"tsd-kind-variable"},{"id":73,"kind":32,"name":"STEMMING_LANGUAGE_CODE_LATVIAN","url":"modules.html#STEMMING_LANGUAGE_CODE_LATVIAN","classes":"tsd-kind-variable"},{"id":74,"kind":32,"name":"STEMMING_LANGUAGE_CODE_DUTCH","url":"modules.html#STEMMING_LANGUAGE_CODE_DUTCH","classes":"tsd-kind-variable"},{"id":75,"kind":32,"name":"STEMMING_LANGUAGE_CODE_NORWEGIAN","url":"modules.html#STEMMING_LANGUAGE_CODE_NORWEGIAN","classes":"tsd-kind-variable"},{"id":76,"kind":32,"name":"STEMMING_LANGUAGE_CODE_PORTUGUESE","url":"modules.html#STEMMING_LANGUAGE_CODE_PORTUGUESE","classes":"tsd-kind-variable"},{"id":77,"kind":32,"name":"STEMMING_LANGUAGE_CODE_BRAZILIAN","url":"modules.html#STEMMING_LANGUAGE_CODE_BRAZILIAN","classes":"tsd-kind-variable"},{"id":78,"kind":32,"name":"STEMMING_LANGUAGE_CODE_ROMANIAN","url":"modules.html#STEMMING_LANGUAGE_CODE_ROMANIAN","classes":"tsd-kind-variable"},{"id":79,"kind":32,"name":"STEMMING_LANGUAGE_CODE_RUSSIAN","url":"modules.html#STEMMING_LANGUAGE_CODE_RUSSIAN","classes":"tsd-kind-variable"},{"id":80,"kind":32,"name":"STEMMING_LANGUAGE_CODE_SPANISH","url":"modules.html#STEMMING_LANGUAGE_CODE_SPANISH","classes":"tsd-kind-variable"},{"id":81,"kind":32,"name":"STEMMING_LANGUAGE_CODE_SWEDISH","url":"modules.html#STEMMING_LANGUAGE_CODE_SWEDISH","classes":"tsd-kind-variable"},{"id":82,"kind":32,"name":"STEMMING_LANGUAGE_CODE_TURKISH","url":"modules.html#STEMMING_LANGUAGE_CODE_TURKISH","classes":"tsd-kind-variable"},{"id":83,"kind":32,"name":"STEMMING_LANGUAGE_CODE_THAI","url":"modules.html#STEMMING_LANGUAGE_CODE_THAI","classes":"tsd-kind-variable"},{"id":84,"kind":32,"name":"STEMMING_LANGUAGE_CODE_CHINESE","url":"modules.html#STEMMING_LANGUAGE_CODE_CHINESE","classes":"tsd-kind-variable"},{"id":85,"kind":32,"name":"STEMMING_LANGUAGE_CODES","url":"modules.html#STEMMING_LANGUAGE_CODES","classes":"tsd-kind-variable"},{"id":86,"kind":32,"name":"STEMMING_LANGUAGES","url":"modules.html#STEMMING_LANGUAGES","classes":"tsd-kind-variable"},{"id":87,"kind":32,"name":"VALUE_TYPE_ANY","url":"modules.html#VALUE_TYPE_ANY","classes":"tsd-kind-variable"},{"id":88,"kind":32,"name":"VALUE_TYPE_BOOLEAN","url":"modules.html#VALUE_TYPE_BOOLEAN","classes":"tsd-kind-variable"},{"id":89,"kind":32,"name":"VALUE_TYPE_DOUBLE","url":"modules.html#VALUE_TYPE_DOUBLE","classes":"tsd-kind-variable"},{"id":90,"kind":32,"name":"VALUE_TYPE_GEO_POINT","url":"modules.html#VALUE_TYPE_GEO_POINT","classes":"tsd-kind-variable"},{"id":91,"kind":32,"name":"VALUE_TYPE_INSTANT","url":"modules.html#VALUE_TYPE_INSTANT","classes":"tsd-kind-variable"},{"id":92,"kind":32,"name":"VALUE_TYPE_LOCAL_DATE","url":"modules.html#VALUE_TYPE_LOCAL_DATE","classes":"tsd-kind-variable"},{"id":93,"kind":32,"name":"VALUE_TYPE_LOCAL_DATE_TIME","url":"modules.html#VALUE_TYPE_LOCAL_DATE_TIME","classes":"tsd-kind-variable"},{"id":94,"kind":32,"name":"VALUE_TYPE_LOCAL_TIME","url":"modules.html#VALUE_TYPE_LOCAL_TIME","classes":"tsd-kind-variable"},{"id":95,"kind":32,"name":"VALUE_TYPE_LONG","url":"modules.html#VALUE_TYPE_LONG","classes":"tsd-kind-variable"},{"id":96,"kind":32,"name":"VALUE_TYPE_REFERENCE","url":"modules.html#VALUE_TYPE_REFERENCE","classes":"tsd-kind-variable"},{"id":97,"kind":32,"name":"VALUE_TYPE_SET","url":"modules.html#VALUE_TYPE_SET","classes":"tsd-kind-variable"},{"id":98,"kind":32,"name":"VALUE_TYPE_STRING","url":"modules.html#VALUE_TYPE_STRING","classes":"tsd-kind-variable"},{"id":99,"kind":64,"name":"and","url":"modules.html#and","classes":"tsd-kind-function"},{"id":100,"kind":64,"name":"addQueryFilter","url":"modules.html#addQueryFilter","classes":"tsd-kind-function"},{"id":101,"kind":64,"name":"detectValueType","url":"modules.html#detectValueType","classes":"tsd-kind-function"},{"id":102,"kind":64,"name":"dirname","url":"modules.html#dirname","classes":"tsd-kind-function"},{"id":103,"kind":64,"name":"enonify","url":"modules.html#enonify","classes":"tsd-kind-function"},{"id":104,"kind":64,"name":"fulltext","url":"modules.html#fulltext","classes":"tsd-kind-function"},{"id":105,"kind":64,"name":"group","url":"modules.html#group","classes":"tsd-kind-function"},{"id":106,"kind":64,"name":"indexTemplateToConfig","url":"modules.html#indexTemplateToConfig","classes":"tsd-kind-function"},{"id":107,"kind":64,"name":"join","url":"modules.html#join","classes":"tsd-kind-function"},{"id":108,"kind":64,"name":"ngram","url":"modules.html#ngram","classes":"tsd-kind-function"},{"id":109,"kind":64,"name":"or","url":"modules.html#or","classes":"tsd-kind-function"},{"id":110,"kind":64,"name":"stemmed","url":"modules.html#stemmed","classes":"tsd-kind-function"},{"id":111,"kind":64,"name":"trimExt","url":"modules.html#trimExt","classes":"tsd-kind-function"},{"id":112,"kind":64,"name":"uniqueId","url":"modules.html#uniqueId","classes":"tsd-kind-function"},{"id":113,"kind":64,"name":"updateIndexConfigs","url":"modules.html#updateIndexConfigs","classes":"tsd-kind-function"},{"id":114,"kind":64,"name":"validateRepoId","url":"modules.html#validateRepoId","classes":"tsd-kind-function"},{"id":115,"kind":64,"name":"camelize","url":"modules.html#camelize","classes":"tsd-kind-function"},{"id":116,"kind":64,"name":"fold","url":"modules.html#fold","classes":"tsd-kind-function"},{"id":117,"kind":64,"name":"lpad","url":"modules.html#lpad","classes":"tsd-kind-function"},{"id":118,"kind":64,"name":"rpad","url":"modules.html#rpad","classes":"tsd-kind-function"},{"id":119,"kind":64,"name":"ucFirst","url":"modules.html#ucFirst","classes":"tsd-kind-function"},{"id":120,"kind":64,"name":"unStem","url":"modules.html#unStem","classes":"tsd-kind-function"},{"id":121,"kind":32,"name":"TASK_STATE_FAILED","url":"modules.html#TASK_STATE_FAILED","classes":"tsd-kind-variable"},{"id":122,"kind":32,"name":"TASK_STATE_FINISHED","url":"modules.html#TASK_STATE_FINISHED","classes":"tsd-kind-variable"},{"id":123,"kind":32,"name":"TASK_STATE_RUNNING","url":"modules.html#TASK_STATE_RUNNING","classes":"tsd-kind-variable"},{"id":124,"kind":32,"name":"TASK_STATE_WAITING","url":"modules.html#TASK_STATE_WAITING","classes":"tsd-kind-variable"},{"id":125,"kind":64,"name":"isBoolean","url":"modules.html#isBoolean","classes":"tsd-kind-function"},{"id":126,"kind":64,"name":"isDate","url":"modules.html#isDate","classes":"tsd-kind-function"},{"id":127,"kind":64,"name":"isDateString","url":"modules.html#isDateString","classes":"tsd-kind-function"},{"id":128,"kind":64,"name":"isFalse","url":"modules.html#isFalse","classes":"tsd-kind-function"},{"id":129,"kind":64,"name":"isFunction","url":"modules.html#isFunction","classes":"tsd-kind-function"},{"id":130,"kind":64,"name":"isGeoPoint","url":"modules.html#isGeoPoint","classes":"tsd-kind-function"},{"id":131,"kind":64,"name":"isGeoPointArray","url":"modules.html#isGeoPointArray","classes":"tsd-kind-function"},{"id":132,"kind":64,"name":"isGeoPointString","url":"modules.html#isGeoPointString","classes":"tsd-kind-function"},{"id":133,"kind":64,"name":"isInfinity","url":"modules.html#isInfinity","classes":"tsd-kind-function"},{"id":134,"kind":64,"name":"isInstantString","url":"modules.html#isInstantString","classes":"tsd-kind-function"},{"id":135,"kind":64,"name":"isInt","url":"modules.html#isInt","classes":"tsd-kind-function"},{"id":136,"kind":64,"name":"isInteger","url":"modules.html#isInteger","classes":"tsd-kind-function"},{"id":137,"kind":64,"name":"isLocalDateString","url":"modules.html#isLocalDateString","classes":"tsd-kind-function"},{"id":138,"kind":64,"name":"isLocalDateTimeString","url":"modules.html#isLocalDateTimeString","classes":"tsd-kind-function"},{"id":139,"kind":64,"name":"isNotFalse","url":"modules.html#isNotFalse","classes":"tsd-kind-function"},{"id":140,"kind":64,"name":"isNotSet","url":"modules.html#isNotSet","classes":"tsd-kind-function"},{"id":141,"kind":64,"name":"isNotTrue","url":"modules.html#isNotTrue","classes":"tsd-kind-function"},{"id":142,"kind":64,"name":"isNull","url":"modules.html#isNull","classes":"tsd-kind-function"},{"id":143,"kind":64,"name":"isNumber","url":"modules.html#isNumber","classes":"tsd-kind-function"},{"id":144,"kind":64,"name":"isObject","url":"modules.html#isObject","classes":"tsd-kind-function"},{"id":145,"kind":64,"name":"isPositiveInteger","url":"modules.html#isPositiveInteger","classes":"tsd-kind-function"},{"id":146,"kind":64,"name":"isSet","url":"modules.html#isSet","classes":"tsd-kind-function"},{"id":147,"kind":64,"name":"isString","url":"modules.html#isString","classes":"tsd-kind-function"},{"id":148,"kind":64,"name":"isTime","url":"modules.html#isTime","classes":"tsd-kind-function"},{"id":149,"kind":64,"name":"isTimeString","url":"modules.html#isTimeString","classes":"tsd-kind-function"},{"id":150,"kind":64,"name":"isTrue","url":"modules.html#isTrue","classes":"tsd-kind-function"},{"id":151,"kind":64,"name":"isUndefined","url":"modules.html#isUndefined","classes":"tsd-kind-function"},{"id":152,"kind":64,"name":"isUuidV4String","url":"modules.html#isUuidV4String","classes":"tsd-kind-function"},{"id":153,"kind":64,"name":"toStr","url":"modules.html#toStr","classes":"tsd-kind-function"},{"id":154,"kind":32,"name":"COLON_SIGN","url":"modules.html#COLON_SIGN","classes":"tsd-kind-variable"},{"id":155,"kind":32,"name":"DOT_SIGN","url":"modules.html#DOT_SIGN","classes":"tsd-kind-variable"},{"id":156,"kind":32,"name":"ELLIPSIS","url":"modules.html#ELLIPSIS","classes":"tsd-kind-variable"},{"id":157,"kind":32,"name":"RESPONSE_TYPE_JSON","url":"modules.html#RESPONSE_TYPE_JSON","classes":"tsd-kind-variable"},{"id":158,"kind":32,"name":"RESPONSE_TYPE_HTML","url":"modules.html#RESPONSE_TYPE_HTML","classes":"tsd-kind-variable"}],"index":{"version":"2.3.9","fields":["name","parent"],"fieldVectors":[["name/0",[0,46.697]],["parent/0",[]],["name/1",[1,46.697]],["parent/1",[]],["name/2",[2,46.697]],["parent/2",[]],["name/3",[3,46.697]],["parent/3",[]],["name/4",[4,46.697]],["parent/4",[]],["name/5",[5,46.697]],["parent/5",[]],["name/6",[6,46.697]],["parent/6",[]],["name/7",[7,46.697]],["parent/7",[]],["name/8",[8,46.697]],["parent/8",[]],["name/9",[9,46.697]],["parent/9",[]],["name/10",[10,46.697]],["parent/10",[]],["name/11",[11,46.697]],["parent/11",[]],["name/12",[12,46.697]],["parent/12",[]],["name/13",[13,46.697]],["parent/13",[]],["name/14",[14,46.697]],["parent/14",[]],["name/15",[15,46.697]],["parent/15",[]],["name/16",[16,46.697]],["parent/16",[]],["name/17",[17,46.697]],["parent/17",[]],["name/18",[18,46.697]],["parent/18",[]],["name/19",[19,46.697]],["parent/19",[]],["name/20",[20,46.697]],["parent/20",[]],["name/21",[21,46.697]],["parent/21",[]],["name/22",[22,46.697]],["parent/22",[]],["name/23",[23,46.697]],["parent/23",[]],["name/24",[24,46.697]],["parent/24",[]],["name/25",[25,46.697]],["parent/25",[]],["name/26",[26,46.697]],["parent/26",[]],["name/27",[27,46.697]],["parent/27",[]],["name/28",[28,46.697]],["parent/28",[]],["name/29",[29,46.697]],["parent/29",[]],["name/30",[30,46.697]],["parent/30",[]],["name/31",[31,46.697]],["parent/31",[]],["name/32",[32,46.697]],["parent/32",[]],["name/33",[33,46.697]],["parent/33",[]],["name/34",[34,46.697]],["parent/34",[]],["name/35",[35,46.697]],["parent/35",[]],["name/36",[36,46.697]],["parent/36",[]],["name/37",[37,46.697]],["parent/37",[]],["name/38",[38,46.697]],["parent/38",[]],["name/39",[39,46.697]],["parent/39",[]],["name/40",[40,46.697]],["parent/40",[]],["name/41",[41,46.697]],["parent/41",[]],["name/42",[42,46.697]],["parent/42",[]],["name/43",[43,46.697]],["parent/43",[]],["name/44",[44,46.697]],["parent/44",[]],["name/45",[45,46.697]],["parent/45",[]],["name/46",[46,46.697]],["parent/46",[]],["name/47",[47,46.697]],["parent/47",[]],["name/48",[48,46.697]],["parent/48",[]],["name/49",[49,46.697]],["parent/49",[]],["name/50",[50,46.697]],["parent/50",[]],["name/51",[51,46.697]],["parent/51",[]],["name/52",[52,46.697]],["parent/52",[]],["name/53",[53,46.697]],["parent/53",[]],["name/54",[54,46.697]],["parent/54",[]],["name/55",[55,46.697]],["parent/55",[]],["name/56",[56,46.697]],["parent/56",[]],["name/57",[57,46.697]],["parent/57",[]],["name/58",[58,46.697]],["parent/58",[]],["name/59",[59,46.697]],["parent/59",[]],["name/60",[60,46.697]],["parent/60",[]],["name/61",[61,46.697]],["parent/61",[]],["name/62",[62,46.697]],["parent/62",[]],["name/63",[63,46.697]],["parent/63",[]],["name/64",[64,46.697]],["parent/64",[]],["name/65",[65,46.697]],["parent/65",[]],["name/66",[66,46.697]],["parent/66",[]],["name/67",[67,46.697]],["parent/67",[]],["name/68",[68,46.697]],["parent/68",[]],["name/69",[69,46.697]],["parent/69",[]],["name/70",[70,46.697]],["parent/70",[]],["name/71",[71,46.697]],["parent/71",[]],["name/72",[72,46.697]],["parent/72",[]],["name/73",[73,46.697]],["parent/73",[]],["name/74",[74,46.697]],["parent/74",[]],["name/75",[75,46.697]],["parent/75",[]],["name/76",[76,46.697]],["parent/76",[]],["name/77",[77,46.697]],["parent/77",[]],["name/78",[78,46.697]],["parent/78",[]],["name/79",[79,46.697]],["parent/79",[]],["name/80",[80,46.697]],["parent/80",[]],["name/81",[81,46.697]],["parent/81",[]],["name/82",[82,46.697]],["parent/82",[]],["name/83",[83,46.697]],["parent/83",[]],["name/84",[84,46.697]],["parent/84",[]],["name/85",[85,46.697]],["parent/85",[]],["name/86",[86,46.697]],["parent/86",[]],["name/87",[87,46.697]],["parent/87",[]],["name/88",[88,46.697]],["parent/88",[]],["name/89",[89,46.697]],["parent/89",[]],["name/90",[90,46.697]],["parent/90",[]],["name/91",[91,46.697]],["parent/91",[]],["name/92",[92,46.697]],["parent/92",[]],["name/93",[93,46.697]],["parent/93",[]],["name/94",[94,46.697]],["parent/94",[]],["name/95",[95,46.697]],["parent/95",[]],["name/96",[96,46.697]],["parent/96",[]],["name/97",[97,46.697]],["parent/97",[]],["name/98",[98,46.697]],["parent/98",[]],["name/99",[99,46.697]],["parent/99",[]],["name/100",[100,46.697]],["parent/100",[]],["name/101",[101,46.697]],["parent/101",[]],["name/102",[102,46.697]],["parent/102",[]],["name/103",[103,46.697]],["parent/103",[]],["name/104",[104,46.697]],["parent/104",[]],["name/105",[105,46.697]],["parent/105",[]],["name/106",[106,46.697]],["parent/106",[]],["name/107",[107,46.697]],["parent/107",[]],["name/108",[108,46.697]],["parent/108",[]],["name/109",[109,46.697]],["parent/109",[]],["name/110",[110,46.697]],["parent/110",[]],["name/111",[111,46.697]],["parent/111",[]],["name/112",[112,46.697]],["parent/112",[]],["name/113",[113,46.697]],["parent/113",[]],["name/114",[114,46.697]],["parent/114",[]],["name/115",[115,46.697]],["parent/115",[]],["name/116",[116,46.697]],["parent/116",[]],["name/117",[117,46.697]],["parent/117",[]],["name/118",[118,46.697]],["parent/118",[]],["name/119",[119,46.697]],["parent/119",[]],["name/120",[120,46.697]],["parent/120",[]],["name/121",[121,46.697]],["parent/121",[]],["name/122",[122,46.697]],["parent/122",[]],["name/123",[123,46.697]],["parent/123",[]],["name/124",[124,46.697]],["parent/124",[]],["name/125",[125,46.697]],["parent/125",[]],["name/126",[126,46.697]],["parent/126",[]],["name/127",[127,46.697]],["parent/127",[]],["name/128",[128,46.697]],["parent/128",[]],["name/129",[129,46.697]],["parent/129",[]],["name/130",[130,46.697]],["parent/130",[]],["name/131",[131,46.697]],["parent/131",[]],["name/132",[132,46.697]],["parent/132",[]],["name/133",[133,46.697]],["parent/133",[]],["name/134",[134,46.697]],["parent/134",[]],["name/135",[135,46.697]],["parent/135",[]],["name/136",[136,46.697]],["parent/136",[]],["name/137",[137,46.697]],["parent/137",[]],["name/138",[138,46.697]],["parent/138",[]],["name/139",[139,46.697]],["parent/139",[]],["name/140",[140,46.697]],["parent/140",[]],["name/141",[141,46.697]],["parent/141",[]],["name/142",[142,46.697]],["parent/142",[]],["name/143",[143,46.697]],["parent/143",[]],["name/144",[144,46.697]],["parent/144",[]],["name/145",[145,46.697]],["parent/145",[]],["name/146",[146,46.697]],["parent/146",[]],["name/147",[147,46.697]],["parent/147",[]],["name/148",[148,46.697]],["parent/148",[]],["name/149",[149,46.697]],["parent/149",[]],["name/150",[150,46.697]],["parent/150",[]],["name/151",[151,46.697]],["parent/151",[]],["name/152",[152,46.697]],["parent/152",[]],["name/153",[153,46.697]],["parent/153",[]],["name/154",[154,46.697]],["parent/154",[]],["name/155",[155,46.697]],["parent/155",[]],["name/156",[156,46.697]],["parent/156",[]],["name/157",[157,46.697]],["parent/157",[]],["name/158",[158,46.697]],["parent/158",[]]],"invertedIndex":[["addqueryfilter",{"_index":100,"name":{"100":{}},"parent":{}}],["aggregation_count",{"_index":7,"name":{"7":{}},"parent":{}}],["aggregation_date_histogram",{"_index":8,"name":{"8":{}},"parent":{}}],["aggregation_date_range",{"_index":9,"name":{"9":{}},"parent":{}}],["aggregation_geo_distance",{"_index":10,"name":{"10":{}},"parent":{}}],["aggregation_max",{"_index":11,"name":{"11":{}},"parent":{}}],["aggregation_min",{"_index":12,"name":{"12":{}},"parent":{}}],["aggregation_range",{"_index":13,"name":{"13":{}},"parent":{}}],["aggregation_stats",{"_index":14,"name":{"14":{}},"parent":{}}],["aggregation_terms",{"_index":15,"name":{"15":{}},"parent":{}}],["and",{"_index":99,"name":{"99":{}},"parent":{}}],["camelize",{"_index":115,"name":{"115":{}},"parent":{}}],["colon_sign",{"_index":154,"name":{"154":{}},"parent":{}}],["detectvaluetype",{"_index":101,"name":{"101":{}},"parent":{}}],["dirname",{"_index":102,"name":{"102":{}},"parent":{}}],["dot_sign",{"_index":155,"name":{"155":{}},"parent":{}}],["ellipsis",{"_index":156,"name":{"156":{}},"parent":{}}],["enonify",{"_index":103,"name":{"103":{}},"parent":{}}],["filter_clause_must",{"_index":16,"name":{"16":{}},"parent":{}}],["filter_clause_must_not",{"_index":17,"name":{"17":{}},"parent":{}}],["filter_clause_should",{"_index":18,"name":{"18":{}},"parent":{}}],["filter_clauses",{"_index":19,"name":{"19":{}},"parent":{}}],["findindex",{"_index":0,"name":{"0":{}},"parent":{}}],["flatten",{"_index":1,"name":{"1":{}},"parent":{}}],["fold",{"_index":116,"name":{"116":{}},"parent":{}}],["forcearray",{"_index":2,"name":{"2":{}},"parent":{}}],["fulltext",{"_index":104,"name":{"104":{}},"parent":{}}],["group",{"_index":105,"name":{"105":{}},"parent":{}}],["hasownproperty",{"_index":4,"name":{"4":{}},"parent":{}}],["index_config_decide_by_type",{"_index":22,"name":{"22":{}},"parent":{}}],["index_config_decide_by_type_default",{"_index":23,"name":{"23":{}},"parent":{}}],["index_config_enabled",{"_index":20,"name":{"20":{}},"parent":{}}],["index_config_enabled_default",{"_index":21,"name":{"21":{}},"parent":{}}],["index_config_fulltext",{"_index":24,"name":{"24":{}},"parent":{}}],["index_config_fulltext_default",{"_index":25,"name":{"25":{}},"parent":{}}],["index_config_include_in_all_text",{"_index":26,"name":{"26":{}},"parent":{}}],["index_config_include_in_all_text_default",{"_index":27,"name":{"27":{}},"parent":{}}],["index_config_n_gram",{"_index":28,"name":{"28":{}},"parent":{}}],["index_config_n_gram_default",{"_index":29,"name":{"29":{}},"parent":{}}],["index_config_path",{"_index":30,"name":{"30":{}},"parent":{}}],["index_config_path_default",{"_index":31,"name":{"31":{}},"parent":{}}],["index_config_template_by_type",{"_index":33,"name":{"33":{}},"parent":{}}],["index_config_template_fulltext",{"_index":34,"name":{"34":{}},"parent":{}}],["index_config_template_minimal",{"_index":36,"name":{"36":{}},"parent":{}}],["index_config_template_none",{"_index":32,"name":{"32":{}},"parent":{}}],["index_config_template_path",{"_index":35,"name":{"35":{}},"parent":{}}],["index_config_templates",{"_index":37,"name":{"37":{}},"parent":{}}],["indextemplatetoconfig",{"_index":106,"name":{"106":{}},"parent":{}}],["isboolean",{"_index":125,"name":{"125":{}},"parent":{}}],["isdate",{"_index":126,"name":{"126":{}},"parent":{}}],["isdatestring",{"_index":127,"name":{"127":{}},"parent":{}}],["isfalse",{"_index":128,"name":{"128":{}},"parent":{}}],["isfunction",{"_index":129,"name":{"129":{}},"parent":{}}],["isgeopoint",{"_index":130,"name":{"130":{}},"parent":{}}],["isgeopointarray",{"_index":131,"name":{"131":{}},"parent":{}}],["isgeopointstring",{"_index":132,"name":{"132":{}},"parent":{}}],["isinfinity",{"_index":133,"name":{"133":{}},"parent":{}}],["isinstantstring",{"_index":134,"name":{"134":{}},"parent":{}}],["isint",{"_index":135,"name":{"135":{}},"parent":{}}],["isinteger",{"_index":136,"name":{"136":{}},"parent":{}}],["islocaldatestring",{"_index":137,"name":{"137":{}},"parent":{}}],["islocaldatetimestring",{"_index":138,"name":{"138":{}},"parent":{}}],["isnotfalse",{"_index":139,"name":{"139":{}},"parent":{}}],["isnotset",{"_index":140,"name":{"140":{}},"parent":{}}],["isnottrue",{"_index":141,"name":{"141":{}},"parent":{}}],["isnull",{"_index":142,"name":{"142":{}},"parent":{}}],["isnumber",{"_index":143,"name":{"143":{}},"parent":{}}],["isobject",{"_index":144,"name":{"144":{}},"parent":{}}],["ispositiveinteger",{"_index":145,"name":{"145":{}},"parent":{}}],["isset",{"_index":146,"name":{"146":{}},"parent":{}}],["isstring",{"_index":147,"name":{"147":{}},"parent":{}}],["istime",{"_index":148,"name":{"148":{}},"parent":{}}],["istimestring",{"_index":149,"name":{"149":{}},"parent":{}}],["istrue",{"_index":150,"name":{"150":{}},"parent":{}}],["isundefined",{"_index":151,"name":{"151":{}},"parent":{}}],["isuuidv4string",{"_index":152,"name":{"152":{}},"parent":{}}],["join",{"_index":107,"name":{"107":{}},"parent":{}}],["lpad",{"_index":117,"name":{"117":{}},"parent":{}}],["ngram",{"_index":108,"name":{"108":{}},"parent":{}}],["or",{"_index":109,"name":{"109":{}},"parent":{}}],["query_function_fulltext",{"_index":38,"name":{"38":{}},"parent":{}}],["query_function_ngram",{"_index":39,"name":{"39":{}},"parent":{}}],["query_function_path_match",{"_index":40,"name":{"40":{}},"parent":{}}],["query_function_range",{"_index":41,"name":{"41":{}},"parent":{}}],["query_function_stemmed",{"_index":42,"name":{"42":{}},"parent":{}}],["query_operator_and",{"_index":43,"name":{"43":{}},"parent":{}}],["query_operator_or",{"_index":44,"name":{"44":{}},"parent":{}}],["response_type_html",{"_index":158,"name":{"158":{}},"parent":{}}],["response_type_json",{"_index":157,"name":{"157":{}},"parent":{}}],["rpad",{"_index":118,"name":{"118":{}},"parent":{}}],["sort_created",{"_index":45,"name":{"45":{}},"parent":{}}],["sort_displayname",{"_index":46,"name":{"46":{}},"parent":{}}],["sort_manual",{"_index":47,"name":{"47":{}},"parent":{}}],["sort_modified",{"_index":48,"name":{"48":{}},"parent":{}}],["sortbyproperty",{"_index":3,"name":{"3":{}},"parent":{}}],["sortkeys",{"_index":5,"name":{"5":{}},"parent":{}}],["sortkeysrec",{"_index":6,"name":{"6":{}},"parent":{}}],["stemmed",{"_index":110,"name":{"110":{}},"parent":{}}],["stemming_language_code_arabic",{"_index":49,"name":{"49":{}},"parent":{}}],["stemming_language_code_armenian",{"_index":66,"name":{"66":{}},"parent":{}}],["stemming_language_code_basque",{"_index":58,"name":{"58":{}},"parent":{}}],["stemming_language_code_bengali",{"_index":51,"name":{"51":{}},"parent":{}}],["stemming_language_code_brazilian",{"_index":77,"name":{"77":{}},"parent":{}}],["stemming_language_code_bulgarian",{"_index":50,"name":{"50":{}},"parent":{}}],["stemming_language_code_catalan",{"_index":52,"name":{"52":{}},"parent":{}}],["stemming_language_code_chinese",{"_index":84,"name":{"84":{}},"parent":{}}],["stemming_language_code_czech",{"_index":53,"name":{"53":{}},"parent":{}}],["stemming_language_code_danish",{"_index":54,"name":{"54":{}},"parent":{}}],["stemming_language_code_dutch",{"_index":74,"name":{"74":{}},"parent":{}}],["stemming_language_code_english",{"_index":57,"name":{"57":{}},"parent":{}}],["stemming_language_code_finnish",{"_index":60,"name":{"60":{}},"parent":{}}],["stemming_language_code_french",{"_index":61,"name":{"61":{}},"parent":{}}],["stemming_language_code_galician",{"_index":63,"name":{"63":{}},"parent":{}}],["stemming_language_code_german",{"_index":55,"name":{"55":{}},"parent":{}}],["stemming_language_code_greek",{"_index":56,"name":{"56":{}},"parent":{}}],["stemming_language_code_hindi",{"_index":64,"name":{"64":{}},"parent":{}}],["stemming_language_code_hungarian",{"_index":65,"name":{"65":{}},"parent":{}}],["stemming_language_code_indonesian",{"_index":67,"name":{"67":{}},"parent":{}}],["stemming_language_code_irish",{"_index":62,"name":{"62":{}},"parent":{}}],["stemming_language_code_italian",{"_index":68,"name":{"68":{}},"parent":{}}],["stemming_language_code_japanese",{"_index":69,"name":{"69":{}},"parent":{}}],["stemming_language_code_korean",{"_index":70,"name":{"70":{}},"parent":{}}],["stemming_language_code_latvian",{"_index":73,"name":{"73":{}},"parent":{}}],["stemming_language_code_lithuanian",{"_index":72,"name":{"72":{}},"parent":{}}],["stemming_language_code_norwegian",{"_index":75,"name":{"75":{}},"parent":{}}],["stemming_language_code_persian",{"_index":59,"name":{"59":{}},"parent":{}}],["stemming_language_code_portuguese",{"_index":76,"name":{"76":{}},"parent":{}}],["stemming_language_code_romanian",{"_index":78,"name":{"78":{}},"parent":{}}],["stemming_language_code_russian",{"_index":79,"name":{"79":{}},"parent":{}}],["stemming_language_code_sorani",{"_index":71,"name":{"71":{}},"parent":{}}],["stemming_language_code_spanish",{"_index":80,"name":{"80":{}},"parent":{}}],["stemming_language_code_swedish",{"_index":81,"name":{"81":{}},"parent":{}}],["stemming_language_code_thai",{"_index":83,"name":{"83":{}},"parent":{}}],["stemming_language_code_turkish",{"_index":82,"name":{"82":{}},"parent":{}}],["stemming_language_codes",{"_index":85,"name":{"85":{}},"parent":{}}],["stemming_languages",{"_index":86,"name":{"86":{}},"parent":{}}],["task_state_failed",{"_index":121,"name":{"121":{}},"parent":{}}],["task_state_finished",{"_index":122,"name":{"122":{}},"parent":{}}],["task_state_running",{"_index":123,"name":{"123":{}},"parent":{}}],["task_state_waiting",{"_index":124,"name":{"124":{}},"parent":{}}],["tostr",{"_index":153,"name":{"153":{}},"parent":{}}],["trimext",{"_index":111,"name":{"111":{}},"parent":{}}],["ucfirst",{"_index":119,"name":{"119":{}},"parent":{}}],["uniqueid",{"_index":112,"name":{"112":{}},"parent":{}}],["unstem",{"_index":120,"name":{"120":{}},"parent":{}}],["updateindexconfigs",{"_index":113,"name":{"113":{}},"parent":{}}],["validaterepoid",{"_index":114,"name":{"114":{}},"parent":{}}],["value_type_any",{"_index":87,"name":{"87":{}},"parent":{}}],["value_type_boolean",{"_index":88,"name":{"88":{}},"parent":{}}],["value_type_double",{"_index":89,"name":{"89":{}},"parent":{}}],["value_type_geo_point",{"_index":90,"name":{"90":{}},"parent":{}}],["value_type_instant",{"_index":91,"name":{"91":{}},"parent":{}}],["value_type_local_date",{"_index":92,"name":{"92":{}},"parent":{}}],["value_type_local_date_time",{"_index":93,"name":{"93":{}},"parent":{}}],["value_type_local_time",{"_index":94,"name":{"94":{}},"parent":{}}],["value_type_long",{"_index":95,"name":{"95":{}},"parent":{}}],["value_type_reference",{"_index":96,"name":{"96":{}},"parent":{}}],["value_type_set",{"_index":97,"name":{"97":{}},"parent":{}}],["value_type_string",{"_index":98,"name":{"98":{}},"parent":{}}]],"pipeline":[]}} | ||
window.searchData = {"kinds":{"32":"Variable","64":"Function"},"rows":[{"id":0,"kind":64,"name":"findIndex","url":"modules.html#findIndex","classes":"tsd-kind-function"},{"id":1,"kind":64,"name":"flatten","url":"modules.html#flatten","classes":"tsd-kind-function tsd-has-type-parameter"},{"id":2,"kind":64,"name":"forceArray","url":"modules.html#forceArray","classes":"tsd-kind-function tsd-has-type-parameter"},{"id":3,"kind":64,"name":"sortByProperty","url":"modules.html#sortByProperty","classes":"tsd-kind-function tsd-has-type-parameter"},{"id":4,"kind":64,"name":"hasOwnProperty","url":"modules.html#hasOwnProperty","classes":"tsd-kind-function tsd-has-type-parameter"},{"id":5,"kind":64,"name":"sortKeys","url":"modules.html#sortKeys","classes":"tsd-kind-function tsd-has-type-parameter"},{"id":6,"kind":64,"name":"sortKeysRec","url":"modules.html#sortKeysRec","classes":"tsd-kind-function"},{"id":7,"kind":32,"name":"AGGREGATION_COUNT","url":"modules.html#AGGREGATION_COUNT","classes":"tsd-kind-variable"},{"id":8,"kind":32,"name":"AGGREGATION_DATE_HISTOGRAM","url":"modules.html#AGGREGATION_DATE_HISTOGRAM","classes":"tsd-kind-variable"},{"id":9,"kind":32,"name":"AGGREGATION_DATE_RANGE","url":"modules.html#AGGREGATION_DATE_RANGE","classes":"tsd-kind-variable"},{"id":10,"kind":32,"name":"AGGREGATION_GEO_DISTANCE","url":"modules.html#AGGREGATION_GEO_DISTANCE","classes":"tsd-kind-variable"},{"id":11,"kind":32,"name":"AGGREGATION_MAX","url":"modules.html#AGGREGATION_MAX","classes":"tsd-kind-variable"},{"id":12,"kind":32,"name":"AGGREGATION_MIN","url":"modules.html#AGGREGATION_MIN","classes":"tsd-kind-variable"},{"id":13,"kind":32,"name":"AGGREGATION_RANGE","url":"modules.html#AGGREGATION_RANGE","classes":"tsd-kind-variable"},{"id":14,"kind":32,"name":"AGGREGATION_STATS","url":"modules.html#AGGREGATION_STATS","classes":"tsd-kind-variable"},{"id":15,"kind":32,"name":"AGGREGATION_TERMS","url":"modules.html#AGGREGATION_TERMS","classes":"tsd-kind-variable"},{"id":16,"kind":32,"name":"FILTER_CLAUSE_MUST","url":"modules.html#FILTER_CLAUSE_MUST","classes":"tsd-kind-variable"},{"id":17,"kind":32,"name":"FILTER_CLAUSE_MUST_NOT","url":"modules.html#FILTER_CLAUSE_MUST_NOT","classes":"tsd-kind-variable"},{"id":18,"kind":32,"name":"FILTER_CLAUSE_SHOULD","url":"modules.html#FILTER_CLAUSE_SHOULD","classes":"tsd-kind-variable"},{"id":19,"kind":32,"name":"FILTER_CLAUSES","url":"modules.html#FILTER_CLAUSES","classes":"tsd-kind-variable"},{"id":20,"kind":32,"name":"INDEX_CONFIG_ENABLED","url":"modules.html#INDEX_CONFIG_ENABLED","classes":"tsd-kind-variable"},{"id":21,"kind":32,"name":"INDEX_CONFIG_ENABLED_DEFAULT","url":"modules.html#INDEX_CONFIG_ENABLED_DEFAULT","classes":"tsd-kind-variable"},{"id":22,"kind":32,"name":"INDEX_CONFIG_DECIDE_BY_TYPE","url":"modules.html#INDEX_CONFIG_DECIDE_BY_TYPE","classes":"tsd-kind-variable"},{"id":23,"kind":32,"name":"INDEX_CONFIG_DECIDE_BY_TYPE_DEFAULT","url":"modules.html#INDEX_CONFIG_DECIDE_BY_TYPE_DEFAULT","classes":"tsd-kind-variable"},{"id":24,"kind":32,"name":"INDEX_CONFIG_FULLTEXT","url":"modules.html#INDEX_CONFIG_FULLTEXT","classes":"tsd-kind-variable"},{"id":25,"kind":32,"name":"INDEX_CONFIG_FULLTEXT_DEFAULT","url":"modules.html#INDEX_CONFIG_FULLTEXT_DEFAULT","classes":"tsd-kind-variable"},{"id":26,"kind":32,"name":"INDEX_CONFIG_INCLUDE_IN_ALL_TEXT","url":"modules.html#INDEX_CONFIG_INCLUDE_IN_ALL_TEXT","classes":"tsd-kind-variable"},{"id":27,"kind":32,"name":"INDEX_CONFIG_INCLUDE_IN_ALL_TEXT_DEFAULT","url":"modules.html#INDEX_CONFIG_INCLUDE_IN_ALL_TEXT_DEFAULT","classes":"tsd-kind-variable"},{"id":28,"kind":32,"name":"INDEX_CONFIG_N_GRAM","url":"modules.html#INDEX_CONFIG_N_GRAM","classes":"tsd-kind-variable"},{"id":29,"kind":32,"name":"INDEX_CONFIG_N_GRAM_DEFAULT","url":"modules.html#INDEX_CONFIG_N_GRAM_DEFAULT","classes":"tsd-kind-variable"},{"id":30,"kind":32,"name":"INDEX_CONFIG_PATH","url":"modules.html#INDEX_CONFIG_PATH","classes":"tsd-kind-variable"},{"id":31,"kind":32,"name":"INDEX_CONFIG_PATH_DEFAULT","url":"modules.html#INDEX_CONFIG_PATH_DEFAULT","classes":"tsd-kind-variable"},{"id":32,"kind":32,"name":"INDEX_CONFIG_TEMPLATE_NONE","url":"modules.html#INDEX_CONFIG_TEMPLATE_NONE","classes":"tsd-kind-variable"},{"id":33,"kind":32,"name":"INDEX_CONFIG_TEMPLATE_BY_TYPE","url":"modules.html#INDEX_CONFIG_TEMPLATE_BY_TYPE","classes":"tsd-kind-variable"},{"id":34,"kind":32,"name":"INDEX_CONFIG_TEMPLATE_FULLTEXT","url":"modules.html#INDEX_CONFIG_TEMPLATE_FULLTEXT","classes":"tsd-kind-variable"},{"id":35,"kind":32,"name":"INDEX_CONFIG_TEMPLATE_PATH","url":"modules.html#INDEX_CONFIG_TEMPLATE_PATH","classes":"tsd-kind-variable"},{"id":36,"kind":32,"name":"INDEX_CONFIG_TEMPLATE_MINIMAL","url":"modules.html#INDEX_CONFIG_TEMPLATE_MINIMAL","classes":"tsd-kind-variable"},{"id":37,"kind":32,"name":"INDEX_CONFIG_TEMPLATES","url":"modules.html#INDEX_CONFIG_TEMPLATES","classes":"tsd-kind-variable"},{"id":38,"kind":32,"name":"QUERY_FUNCTION_FULLTEXT","url":"modules.html#QUERY_FUNCTION_FULLTEXT","classes":"tsd-kind-variable"},{"id":39,"kind":32,"name":"QUERY_FUNCTION_NGRAM","url":"modules.html#QUERY_FUNCTION_NGRAM","classes":"tsd-kind-variable"},{"id":40,"kind":32,"name":"QUERY_FUNCTION_PATH_MATCH","url":"modules.html#QUERY_FUNCTION_PATH_MATCH","classes":"tsd-kind-variable"},{"id":41,"kind":32,"name":"QUERY_FUNCTION_RANGE","url":"modules.html#QUERY_FUNCTION_RANGE","classes":"tsd-kind-variable"},{"id":42,"kind":32,"name":"QUERY_FUNCTION_STEMMED","url":"modules.html#QUERY_FUNCTION_STEMMED","classes":"tsd-kind-variable"},{"id":43,"kind":32,"name":"QUERY_OPERATOR_AND","url":"modules.html#QUERY_OPERATOR_AND","classes":"tsd-kind-variable"},{"id":44,"kind":32,"name":"QUERY_OPERATOR_OR","url":"modules.html#QUERY_OPERATOR_OR","classes":"tsd-kind-variable"},{"id":45,"kind":32,"name":"SORT_CREATED","url":"modules.html#SORT_CREATED","classes":"tsd-kind-variable"},{"id":46,"kind":32,"name":"SORT_DISPLAYNAME","url":"modules.html#SORT_DISPLAYNAME","classes":"tsd-kind-variable"},{"id":47,"kind":32,"name":"SORT_MANUAL","url":"modules.html#SORT_MANUAL","classes":"tsd-kind-variable"},{"id":48,"kind":32,"name":"SORT_MODIFIED","url":"modules.html#SORT_MODIFIED","classes":"tsd-kind-variable"},{"id":49,"kind":32,"name":"STEMMING_LANGUAGE_CODE_ARABIC","url":"modules.html#STEMMING_LANGUAGE_CODE_ARABIC","classes":"tsd-kind-variable"},{"id":50,"kind":32,"name":"STEMMING_LANGUAGE_CODE_BULGARIAN","url":"modules.html#STEMMING_LANGUAGE_CODE_BULGARIAN","classes":"tsd-kind-variable"},{"id":51,"kind":32,"name":"STEMMING_LANGUAGE_CODE_BENGALI","url":"modules.html#STEMMING_LANGUAGE_CODE_BENGALI","classes":"tsd-kind-variable"},{"id":52,"kind":32,"name":"STEMMING_LANGUAGE_CODE_CATALAN","url":"modules.html#STEMMING_LANGUAGE_CODE_CATALAN","classes":"tsd-kind-variable"},{"id":53,"kind":32,"name":"STEMMING_LANGUAGE_CODE_CZECH","url":"modules.html#STEMMING_LANGUAGE_CODE_CZECH","classes":"tsd-kind-variable"},{"id":54,"kind":32,"name":"STEMMING_LANGUAGE_CODE_DANISH","url":"modules.html#STEMMING_LANGUAGE_CODE_DANISH","classes":"tsd-kind-variable"},{"id":55,"kind":32,"name":"STEMMING_LANGUAGE_CODE_GERMAN","url":"modules.html#STEMMING_LANGUAGE_CODE_GERMAN","classes":"tsd-kind-variable"},{"id":56,"kind":32,"name":"STEMMING_LANGUAGE_CODE_GREEK","url":"modules.html#STEMMING_LANGUAGE_CODE_GREEK","classes":"tsd-kind-variable"},{"id":57,"kind":32,"name":"STEMMING_LANGUAGE_CODE_ENGLISH","url":"modules.html#STEMMING_LANGUAGE_CODE_ENGLISH","classes":"tsd-kind-variable"},{"id":58,"kind":32,"name":"STEMMING_LANGUAGE_CODE_BASQUE","url":"modules.html#STEMMING_LANGUAGE_CODE_BASQUE","classes":"tsd-kind-variable"},{"id":59,"kind":32,"name":"STEMMING_LANGUAGE_CODE_PERSIAN","url":"modules.html#STEMMING_LANGUAGE_CODE_PERSIAN","classes":"tsd-kind-variable"},{"id":60,"kind":32,"name":"STEMMING_LANGUAGE_CODE_FINNISH","url":"modules.html#STEMMING_LANGUAGE_CODE_FINNISH","classes":"tsd-kind-variable"},{"id":61,"kind":32,"name":"STEMMING_LANGUAGE_CODE_FRENCH","url":"modules.html#STEMMING_LANGUAGE_CODE_FRENCH","classes":"tsd-kind-variable"},{"id":62,"kind":32,"name":"STEMMING_LANGUAGE_CODE_IRISH","url":"modules.html#STEMMING_LANGUAGE_CODE_IRISH","classes":"tsd-kind-variable"},{"id":63,"kind":32,"name":"STEMMING_LANGUAGE_CODE_GALICIAN","url":"modules.html#STEMMING_LANGUAGE_CODE_GALICIAN","classes":"tsd-kind-variable"},{"id":64,"kind":32,"name":"STEMMING_LANGUAGE_CODE_HINDI","url":"modules.html#STEMMING_LANGUAGE_CODE_HINDI","classes":"tsd-kind-variable"},{"id":65,"kind":32,"name":"STEMMING_LANGUAGE_CODE_HUNGARIAN","url":"modules.html#STEMMING_LANGUAGE_CODE_HUNGARIAN","classes":"tsd-kind-variable"},{"id":66,"kind":32,"name":"STEMMING_LANGUAGE_CODE_ARMENIAN","url":"modules.html#STEMMING_LANGUAGE_CODE_ARMENIAN","classes":"tsd-kind-variable"},{"id":67,"kind":32,"name":"STEMMING_LANGUAGE_CODE_INDONESIAN","url":"modules.html#STEMMING_LANGUAGE_CODE_INDONESIAN","classes":"tsd-kind-variable"},{"id":68,"kind":32,"name":"STEMMING_LANGUAGE_CODE_ITALIAN","url":"modules.html#STEMMING_LANGUAGE_CODE_ITALIAN","classes":"tsd-kind-variable"},{"id":69,"kind":32,"name":"STEMMING_LANGUAGE_CODE_JAPANESE","url":"modules.html#STEMMING_LANGUAGE_CODE_JAPANESE","classes":"tsd-kind-variable"},{"id":70,"kind":32,"name":"STEMMING_LANGUAGE_CODE_KOREAN","url":"modules.html#STEMMING_LANGUAGE_CODE_KOREAN","classes":"tsd-kind-variable"},{"id":71,"kind":32,"name":"STEMMING_LANGUAGE_CODE_SORANI","url":"modules.html#STEMMING_LANGUAGE_CODE_SORANI","classes":"tsd-kind-variable"},{"id":72,"kind":32,"name":"STEMMING_LANGUAGE_CODE_LITHUANIAN","url":"modules.html#STEMMING_LANGUAGE_CODE_LITHUANIAN","classes":"tsd-kind-variable"},{"id":73,"kind":32,"name":"STEMMING_LANGUAGE_CODE_LATVIAN","url":"modules.html#STEMMING_LANGUAGE_CODE_LATVIAN","classes":"tsd-kind-variable"},{"id":74,"kind":32,"name":"STEMMING_LANGUAGE_CODE_DUTCH","url":"modules.html#STEMMING_LANGUAGE_CODE_DUTCH","classes":"tsd-kind-variable"},{"id":75,"kind":32,"name":"STEMMING_LANGUAGE_CODE_NORWEGIAN","url":"modules.html#STEMMING_LANGUAGE_CODE_NORWEGIAN","classes":"tsd-kind-variable"},{"id":76,"kind":32,"name":"STEMMING_LANGUAGE_CODE_PORTUGUESE","url":"modules.html#STEMMING_LANGUAGE_CODE_PORTUGUESE","classes":"tsd-kind-variable"},{"id":77,"kind":32,"name":"STEMMING_LANGUAGE_CODE_BRAZILIAN","url":"modules.html#STEMMING_LANGUAGE_CODE_BRAZILIAN","classes":"tsd-kind-variable"},{"id":78,"kind":32,"name":"STEMMING_LANGUAGE_CODE_ROMANIAN","url":"modules.html#STEMMING_LANGUAGE_CODE_ROMANIAN","classes":"tsd-kind-variable"},{"id":79,"kind":32,"name":"STEMMING_LANGUAGE_CODE_RUSSIAN","url":"modules.html#STEMMING_LANGUAGE_CODE_RUSSIAN","classes":"tsd-kind-variable"},{"id":80,"kind":32,"name":"STEMMING_LANGUAGE_CODE_SPANISH","url":"modules.html#STEMMING_LANGUAGE_CODE_SPANISH","classes":"tsd-kind-variable"},{"id":81,"kind":32,"name":"STEMMING_LANGUAGE_CODE_SWEDISH","url":"modules.html#STEMMING_LANGUAGE_CODE_SWEDISH","classes":"tsd-kind-variable"},{"id":82,"kind":32,"name":"STEMMING_LANGUAGE_CODE_TURKISH","url":"modules.html#STEMMING_LANGUAGE_CODE_TURKISH","classes":"tsd-kind-variable"},{"id":83,"kind":32,"name":"STEMMING_LANGUAGE_CODE_THAI","url":"modules.html#STEMMING_LANGUAGE_CODE_THAI","classes":"tsd-kind-variable"},{"id":84,"kind":32,"name":"STEMMING_LANGUAGE_CODE_CHINESE","url":"modules.html#STEMMING_LANGUAGE_CODE_CHINESE","classes":"tsd-kind-variable"},{"id":85,"kind":32,"name":"STEMMING_LANGUAGE_CODES","url":"modules.html#STEMMING_LANGUAGE_CODES","classes":"tsd-kind-variable"},{"id":86,"kind":32,"name":"STEMMING_LANGUAGES","url":"modules.html#STEMMING_LANGUAGES","classes":"tsd-kind-variable"},{"id":87,"kind":32,"name":"VALUE_TYPE_ANY","url":"modules.html#VALUE_TYPE_ANY","classes":"tsd-kind-variable"},{"id":88,"kind":32,"name":"VALUE_TYPE_BOOLEAN","url":"modules.html#VALUE_TYPE_BOOLEAN","classes":"tsd-kind-variable"},{"id":89,"kind":32,"name":"VALUE_TYPE_DOUBLE","url":"modules.html#VALUE_TYPE_DOUBLE","classes":"tsd-kind-variable"},{"id":90,"kind":32,"name":"VALUE_TYPE_GEO_POINT","url":"modules.html#VALUE_TYPE_GEO_POINT","classes":"tsd-kind-variable"},{"id":91,"kind":32,"name":"VALUE_TYPE_INSTANT","url":"modules.html#VALUE_TYPE_INSTANT","classes":"tsd-kind-variable"},{"id":92,"kind":32,"name":"VALUE_TYPE_LOCAL_DATE","url":"modules.html#VALUE_TYPE_LOCAL_DATE","classes":"tsd-kind-variable"},{"id":93,"kind":32,"name":"VALUE_TYPE_LOCAL_DATE_TIME","url":"modules.html#VALUE_TYPE_LOCAL_DATE_TIME","classes":"tsd-kind-variable"},{"id":94,"kind":32,"name":"VALUE_TYPE_LOCAL_TIME","url":"modules.html#VALUE_TYPE_LOCAL_TIME","classes":"tsd-kind-variable"},{"id":95,"kind":32,"name":"VALUE_TYPE_LONG","url":"modules.html#VALUE_TYPE_LONG","classes":"tsd-kind-variable"},{"id":96,"kind":32,"name":"VALUE_TYPE_REFERENCE","url":"modules.html#VALUE_TYPE_REFERENCE","classes":"tsd-kind-variable"},{"id":97,"kind":32,"name":"VALUE_TYPE_SET","url":"modules.html#VALUE_TYPE_SET","classes":"tsd-kind-variable"},{"id":98,"kind":32,"name":"VALUE_TYPE_STRING","url":"modules.html#VALUE_TYPE_STRING","classes":"tsd-kind-variable"},{"id":99,"kind":64,"name":"and","url":"modules.html#and","classes":"tsd-kind-function"},{"id":100,"kind":64,"name":"addQueryFilter","url":"modules.html#addQueryFilter","classes":"tsd-kind-function"},{"id":101,"kind":64,"name":"detectValueType","url":"modules.html#detectValueType","classes":"tsd-kind-function"},{"id":102,"kind":64,"name":"dirname","url":"modules.html#dirname","classes":"tsd-kind-function"},{"id":103,"kind":64,"name":"enonify","url":"modules.html#enonify","classes":"tsd-kind-function"},{"id":104,"kind":64,"name":"fulltext","url":"modules.html#fulltext","classes":"tsd-kind-function"},{"id":105,"kind":64,"name":"group","url":"modules.html#group","classes":"tsd-kind-function"},{"id":106,"kind":64,"name":"indexTemplateToConfig","url":"modules.html#indexTemplateToConfig","classes":"tsd-kind-function"},{"id":107,"kind":64,"name":"join","url":"modules.html#join","classes":"tsd-kind-function"},{"id":108,"kind":64,"name":"ngram","url":"modules.html#ngram","classes":"tsd-kind-function"},{"id":109,"kind":64,"name":"or","url":"modules.html#or","classes":"tsd-kind-function"},{"id":110,"kind":64,"name":"stemmed","url":"modules.html#stemmed","classes":"tsd-kind-function"},{"id":111,"kind":64,"name":"trimExt","url":"modules.html#trimExt","classes":"tsd-kind-function"},{"id":112,"kind":64,"name":"uniqueId","url":"modules.html#uniqueId","classes":"tsd-kind-function"},{"id":113,"kind":64,"name":"updateIndexConfigs","url":"modules.html#updateIndexConfigs","classes":"tsd-kind-function"},{"id":114,"kind":64,"name":"validateRepoId","url":"modules.html#validateRepoId","classes":"tsd-kind-function"},{"id":115,"kind":64,"name":"camelize","url":"modules.html#camelize","classes":"tsd-kind-function"},{"id":116,"kind":64,"name":"fold","url":"modules.html#fold","classes":"tsd-kind-function"},{"id":117,"kind":64,"name":"lpad","url":"modules.html#lpad","classes":"tsd-kind-function"},{"id":118,"kind":64,"name":"rpad","url":"modules.html#rpad","classes":"tsd-kind-function"},{"id":119,"kind":64,"name":"ucFirst","url":"modules.html#ucFirst","classes":"tsd-kind-function"},{"id":120,"kind":64,"name":"unStem","url":"modules.html#unStem","classes":"tsd-kind-function"},{"id":121,"kind":32,"name":"TASK_STATE_FAILED","url":"modules.html#TASK_STATE_FAILED","classes":"tsd-kind-variable"},{"id":122,"kind":32,"name":"TASK_STATE_FINISHED","url":"modules.html#TASK_STATE_FINISHED","classes":"tsd-kind-variable"},{"id":123,"kind":32,"name":"TASK_STATE_RUNNING","url":"modules.html#TASK_STATE_RUNNING","classes":"tsd-kind-variable"},{"id":124,"kind":32,"name":"TASK_STATE_WAITING","url":"modules.html#TASK_STATE_WAITING","classes":"tsd-kind-variable"},{"id":125,"kind":64,"name":"isBoolean","url":"modules.html#isBoolean","classes":"tsd-kind-function"},{"id":126,"kind":64,"name":"isDate","url":"modules.html#isDate","classes":"tsd-kind-function"},{"id":127,"kind":64,"name":"isDateString","url":"modules.html#isDateString","classes":"tsd-kind-function"},{"id":128,"kind":64,"name":"isFalse","url":"modules.html#isFalse","classes":"tsd-kind-function"},{"id":129,"kind":64,"name":"isFunction","url":"modules.html#isFunction","classes":"tsd-kind-function"},{"id":130,"kind":64,"name":"isGeoPoint","url":"modules.html#isGeoPoint","classes":"tsd-kind-function"},{"id":131,"kind":64,"name":"isGeoPointArray","url":"modules.html#isGeoPointArray","classes":"tsd-kind-function"},{"id":132,"kind":64,"name":"isGeoPointString","url":"modules.html#isGeoPointString","classes":"tsd-kind-function"},{"id":133,"kind":64,"name":"isInfinity","url":"modules.html#isInfinity","classes":"tsd-kind-function"},{"id":134,"kind":64,"name":"isInstantString","url":"modules.html#isInstantString","classes":"tsd-kind-function"},{"id":135,"kind":64,"name":"isInt","url":"modules.html#isInt","classes":"tsd-kind-function"},{"id":136,"kind":64,"name":"isInteger","url":"modules.html#isInteger","classes":"tsd-kind-function"},{"id":137,"kind":64,"name":"isLocalDateString","url":"modules.html#isLocalDateString","classes":"tsd-kind-function"},{"id":138,"kind":64,"name":"isLocalDateTimeString","url":"modules.html#isLocalDateTimeString","classes":"tsd-kind-function"},{"id":139,"kind":64,"name":"isNotFalse","url":"modules.html#isNotFalse","classes":"tsd-kind-function"},{"id":140,"kind":64,"name":"isNotSet","url":"modules.html#isNotSet","classes":"tsd-kind-function"},{"id":141,"kind":64,"name":"isNotTrue","url":"modules.html#isNotTrue","classes":"tsd-kind-function"},{"id":142,"kind":64,"name":"isNull","url":"modules.html#isNull","classes":"tsd-kind-function"},{"id":143,"kind":64,"name":"isNumber","url":"modules.html#isNumber","classes":"tsd-kind-function"},{"id":144,"kind":64,"name":"isObject","url":"modules.html#isObject","classes":"tsd-kind-function"},{"id":145,"kind":64,"name":"isPositiveInteger","url":"modules.html#isPositiveInteger","classes":"tsd-kind-function"},{"id":146,"kind":64,"name":"isSet","url":"modules.html#isSet","classes":"tsd-kind-function"},{"id":147,"kind":64,"name":"isString","url":"modules.html#isString","classes":"tsd-kind-function"},{"id":148,"kind":64,"name":"isTime","url":"modules.html#isTime","classes":"tsd-kind-function"},{"id":149,"kind":64,"name":"isTimeString","url":"modules.html#isTimeString","classes":"tsd-kind-function"},{"id":150,"kind":64,"name":"isTrue","url":"modules.html#isTrue","classes":"tsd-kind-function"},{"id":151,"kind":64,"name":"isUndefined","url":"modules.html#isUndefined","classes":"tsd-kind-function"},{"id":152,"kind":64,"name":"isUuidV4String","url":"modules.html#isUuidV4String","classes":"tsd-kind-function"},{"id":153,"kind":64,"name":"toStr","url":"modules.html#toStr","classes":"tsd-kind-function"},{"id":154,"kind":32,"name":"COLON_SIGN","url":"modules.html#COLON_SIGN","classes":"tsd-kind-variable"},{"id":155,"kind":32,"name":"DOT_SIGN","url":"modules.html#DOT_SIGN","classes":"tsd-kind-variable"},{"id":156,"kind":32,"name":"ELLIPSIS","url":"modules.html#ELLIPSIS","classes":"tsd-kind-variable"},{"id":157,"kind":32,"name":"RESPONSE_TYPE_JSON","url":"modules.html#RESPONSE_TYPE_JSON","classes":"tsd-kind-variable"},{"id":158,"kind":32,"name":"RESPONSE_TYPE_HTML","url":"modules.html#RESPONSE_TYPE_HTML","classes":"tsd-kind-variable"}],"index":{"version":"2.3.9","fields":["name","parent"],"fieldVectors":[["name/0",[0,46.697]],["parent/0",[]],["name/1",[1,46.697]],["parent/1",[]],["name/2",[2,46.697]],["parent/2",[]],["name/3",[3,46.697]],["parent/3",[]],["name/4",[4,46.697]],["parent/4",[]],["name/5",[5,46.697]],["parent/5",[]],["name/6",[6,46.697]],["parent/6",[]],["name/7",[7,46.697]],["parent/7",[]],["name/8",[8,46.697]],["parent/8",[]],["name/9",[9,46.697]],["parent/9",[]],["name/10",[10,46.697]],["parent/10",[]],["name/11",[11,46.697]],["parent/11",[]],["name/12",[12,46.697]],["parent/12",[]],["name/13",[13,46.697]],["parent/13",[]],["name/14",[14,46.697]],["parent/14",[]],["name/15",[15,46.697]],["parent/15",[]],["name/16",[16,46.697]],["parent/16",[]],["name/17",[17,46.697]],["parent/17",[]],["name/18",[18,46.697]],["parent/18",[]],["name/19",[19,46.697]],["parent/19",[]],["name/20",[20,46.697]],["parent/20",[]],["name/21",[21,46.697]],["parent/21",[]],["name/22",[22,46.697]],["parent/22",[]],["name/23",[23,46.697]],["parent/23",[]],["name/24",[24,46.697]],["parent/24",[]],["name/25",[25,46.697]],["parent/25",[]],["name/26",[26,46.697]],["parent/26",[]],["name/27",[27,46.697]],["parent/27",[]],["name/28",[28,46.697]],["parent/28",[]],["name/29",[29,46.697]],["parent/29",[]],["name/30",[30,46.697]],["parent/30",[]],["name/31",[31,46.697]],["parent/31",[]],["name/32",[32,46.697]],["parent/32",[]],["name/33",[33,46.697]],["parent/33",[]],["name/34",[34,46.697]],["parent/34",[]],["name/35",[35,46.697]],["parent/35",[]],["name/36",[36,46.697]],["parent/36",[]],["name/37",[37,46.697]],["parent/37",[]],["name/38",[38,46.697]],["parent/38",[]],["name/39",[39,46.697]],["parent/39",[]],["name/40",[40,46.697]],["parent/40",[]],["name/41",[41,46.697]],["parent/41",[]],["name/42",[42,46.697]],["parent/42",[]],["name/43",[43,46.697]],["parent/43",[]],["name/44",[44,46.697]],["parent/44",[]],["name/45",[45,46.697]],["parent/45",[]],["name/46",[46,46.697]],["parent/46",[]],["name/47",[47,46.697]],["parent/47",[]],["name/48",[48,46.697]],["parent/48",[]],["name/49",[49,46.697]],["parent/49",[]],["name/50",[50,46.697]],["parent/50",[]],["name/51",[51,46.697]],["parent/51",[]],["name/52",[52,46.697]],["parent/52",[]],["name/53",[53,46.697]],["parent/53",[]],["name/54",[54,46.697]],["parent/54",[]],["name/55",[55,46.697]],["parent/55",[]],["name/56",[56,46.697]],["parent/56",[]],["name/57",[57,46.697]],["parent/57",[]],["name/58",[58,46.697]],["parent/58",[]],["name/59",[59,46.697]],["parent/59",[]],["name/60",[60,46.697]],["parent/60",[]],["name/61",[61,46.697]],["parent/61",[]],["name/62",[62,46.697]],["parent/62",[]],["name/63",[63,46.697]],["parent/63",[]],["name/64",[64,46.697]],["parent/64",[]],["name/65",[65,46.697]],["parent/65",[]],["name/66",[66,46.697]],["parent/66",[]],["name/67",[67,46.697]],["parent/67",[]],["name/68",[68,46.697]],["parent/68",[]],["name/69",[69,46.697]],["parent/69",[]],["name/70",[70,46.697]],["parent/70",[]],["name/71",[71,46.697]],["parent/71",[]],["name/72",[72,46.697]],["parent/72",[]],["name/73",[73,46.697]],["parent/73",[]],["name/74",[74,46.697]],["parent/74",[]],["name/75",[75,46.697]],["parent/75",[]],["name/76",[76,46.697]],["parent/76",[]],["name/77",[77,46.697]],["parent/77",[]],["name/78",[78,46.697]],["parent/78",[]],["name/79",[79,46.697]],["parent/79",[]],["name/80",[80,46.697]],["parent/80",[]],["name/81",[81,46.697]],["parent/81",[]],["name/82",[82,46.697]],["parent/82",[]],["name/83",[83,46.697]],["parent/83",[]],["name/84",[84,46.697]],["parent/84",[]],["name/85",[85,46.697]],["parent/85",[]],["name/86",[86,46.697]],["parent/86",[]],["name/87",[87,46.697]],["parent/87",[]],["name/88",[88,46.697]],["parent/88",[]],["name/89",[89,46.697]],["parent/89",[]],["name/90",[90,46.697]],["parent/90",[]],["name/91",[91,46.697]],["parent/91",[]],["name/92",[92,46.697]],["parent/92",[]],["name/93",[93,46.697]],["parent/93",[]],["name/94",[94,46.697]],["parent/94",[]],["name/95",[95,46.697]],["parent/95",[]],["name/96",[96,46.697]],["parent/96",[]],["name/97",[97,46.697]],["parent/97",[]],["name/98",[98,46.697]],["parent/98",[]],["name/99",[99,46.697]],["parent/99",[]],["name/100",[100,46.697]],["parent/100",[]],["name/101",[101,46.697]],["parent/101",[]],["name/102",[102,46.697]],["parent/102",[]],["name/103",[103,46.697]],["parent/103",[]],["name/104",[104,46.697]],["parent/104",[]],["name/105",[105,46.697]],["parent/105",[]],["name/106",[106,46.697]],["parent/106",[]],["name/107",[107,46.697]],["parent/107",[]],["name/108",[108,46.697]],["parent/108",[]],["name/109",[109,46.697]],["parent/109",[]],["name/110",[110,46.697]],["parent/110",[]],["name/111",[111,46.697]],["parent/111",[]],["name/112",[112,46.697]],["parent/112",[]],["name/113",[113,46.697]],["parent/113",[]],["name/114",[114,46.697]],["parent/114",[]],["name/115",[115,46.697]],["parent/115",[]],["name/116",[116,46.697]],["parent/116",[]],["name/117",[117,46.697]],["parent/117",[]],["name/118",[118,46.697]],["parent/118",[]],["name/119",[119,46.697]],["parent/119",[]],["name/120",[120,46.697]],["parent/120",[]],["name/121",[121,46.697]],["parent/121",[]],["name/122",[122,46.697]],["parent/122",[]],["name/123",[123,46.697]],["parent/123",[]],["name/124",[124,46.697]],["parent/124",[]],["name/125",[125,46.697]],["parent/125",[]],["name/126",[126,46.697]],["parent/126",[]],["name/127",[127,46.697]],["parent/127",[]],["name/128",[128,46.697]],["parent/128",[]],["name/129",[129,46.697]],["parent/129",[]],["name/130",[130,46.697]],["parent/130",[]],["name/131",[131,46.697]],["parent/131",[]],["name/132",[132,46.697]],["parent/132",[]],["name/133",[133,46.697]],["parent/133",[]],["name/134",[134,46.697]],["parent/134",[]],["name/135",[135,46.697]],["parent/135",[]],["name/136",[136,46.697]],["parent/136",[]],["name/137",[137,46.697]],["parent/137",[]],["name/138",[138,46.697]],["parent/138",[]],["name/139",[139,46.697]],["parent/139",[]],["name/140",[140,46.697]],["parent/140",[]],["name/141",[141,46.697]],["parent/141",[]],["name/142",[142,46.697]],["parent/142",[]],["name/143",[143,46.697]],["parent/143",[]],["name/144",[144,46.697]],["parent/144",[]],["name/145",[145,46.697]],["parent/145",[]],["name/146",[146,46.697]],["parent/146",[]],["name/147",[147,46.697]],["parent/147",[]],["name/148",[148,46.697]],["parent/148",[]],["name/149",[149,46.697]],["parent/149",[]],["name/150",[150,46.697]],["parent/150",[]],["name/151",[151,46.697]],["parent/151",[]],["name/152",[152,46.697]],["parent/152",[]],["name/153",[153,46.697]],["parent/153",[]],["name/154",[154,46.697]],["parent/154",[]],["name/155",[155,46.697]],["parent/155",[]],["name/156",[156,46.697]],["parent/156",[]],["name/157",[157,46.697]],["parent/157",[]],["name/158",[158,46.697]],["parent/158",[]]],"invertedIndex":[["addqueryfilter",{"_index":100,"name":{"100":{}},"parent":{}}],["aggregation_count",{"_index":7,"name":{"7":{}},"parent":{}}],["aggregation_date_histogram",{"_index":8,"name":{"8":{}},"parent":{}}],["aggregation_date_range",{"_index":9,"name":{"9":{}},"parent":{}}],["aggregation_geo_distance",{"_index":10,"name":{"10":{}},"parent":{}}],["aggregation_max",{"_index":11,"name":{"11":{}},"parent":{}}],["aggregation_min",{"_index":12,"name":{"12":{}},"parent":{}}],["aggregation_range",{"_index":13,"name":{"13":{}},"parent":{}}],["aggregation_stats",{"_index":14,"name":{"14":{}},"parent":{}}],["aggregation_terms",{"_index":15,"name":{"15":{}},"parent":{}}],["and",{"_index":99,"name":{"99":{}},"parent":{}}],["camelize",{"_index":115,"name":{"115":{}},"parent":{}}],["colon_sign",{"_index":154,"name":{"154":{}},"parent":{}}],["detectvaluetype",{"_index":101,"name":{"101":{}},"parent":{}}],["dirname",{"_index":102,"name":{"102":{}},"parent":{}}],["dot_sign",{"_index":155,"name":{"155":{}},"parent":{}}],["ellipsis",{"_index":156,"name":{"156":{}},"parent":{}}],["enonify",{"_index":103,"name":{"103":{}},"parent":{}}],["filter_clause_must",{"_index":16,"name":{"16":{}},"parent":{}}],["filter_clause_must_not",{"_index":17,"name":{"17":{}},"parent":{}}],["filter_clause_should",{"_index":18,"name":{"18":{}},"parent":{}}],["filter_clauses",{"_index":19,"name":{"19":{}},"parent":{}}],["findindex",{"_index":0,"name":{"0":{}},"parent":{}}],["flatten",{"_index":1,"name":{"1":{}},"parent":{}}],["fold",{"_index":116,"name":{"116":{}},"parent":{}}],["forcearray",{"_index":2,"name":{"2":{}},"parent":{}}],["fulltext",{"_index":104,"name":{"104":{}},"parent":{}}],["group",{"_index":105,"name":{"105":{}},"parent":{}}],["hasownproperty",{"_index":4,"name":{"4":{}},"parent":{}}],["index_config_decide_by_type",{"_index":22,"name":{"22":{}},"parent":{}}],["index_config_decide_by_type_default",{"_index":23,"name":{"23":{}},"parent":{}}],["index_config_enabled",{"_index":20,"name":{"20":{}},"parent":{}}],["index_config_enabled_default",{"_index":21,"name":{"21":{}},"parent":{}}],["index_config_fulltext",{"_index":24,"name":{"24":{}},"parent":{}}],["index_config_fulltext_default",{"_index":25,"name":{"25":{}},"parent":{}}],["index_config_include_in_all_text",{"_index":26,"name":{"26":{}},"parent":{}}],["index_config_include_in_all_text_default",{"_index":27,"name":{"27":{}},"parent":{}}],["index_config_n_gram",{"_index":28,"name":{"28":{}},"parent":{}}],["index_config_n_gram_default",{"_index":29,"name":{"29":{}},"parent":{}}],["index_config_path",{"_index":30,"name":{"30":{}},"parent":{}}],["index_config_path_default",{"_index":31,"name":{"31":{}},"parent":{}}],["index_config_template_by_type",{"_index":33,"name":{"33":{}},"parent":{}}],["index_config_template_fulltext",{"_index":34,"name":{"34":{}},"parent":{}}],["index_config_template_minimal",{"_index":36,"name":{"36":{}},"parent":{}}],["index_config_template_none",{"_index":32,"name":{"32":{}},"parent":{}}],["index_config_template_path",{"_index":35,"name":{"35":{}},"parent":{}}],["index_config_templates",{"_index":37,"name":{"37":{}},"parent":{}}],["indextemplatetoconfig",{"_index":106,"name":{"106":{}},"parent":{}}],["isboolean",{"_index":125,"name":{"125":{}},"parent":{}}],["isdate",{"_index":126,"name":{"126":{}},"parent":{}}],["isdatestring",{"_index":127,"name":{"127":{}},"parent":{}}],["isfalse",{"_index":128,"name":{"128":{}},"parent":{}}],["isfunction",{"_index":129,"name":{"129":{}},"parent":{}}],["isgeopoint",{"_index":130,"name":{"130":{}},"parent":{}}],["isgeopointarray",{"_index":131,"name":{"131":{}},"parent":{}}],["isgeopointstring",{"_index":132,"name":{"132":{}},"parent":{}}],["isinfinity",{"_index":133,"name":{"133":{}},"parent":{}}],["isinstantstring",{"_index":134,"name":{"134":{}},"parent":{}}],["isint",{"_index":135,"name":{"135":{}},"parent":{}}],["isinteger",{"_index":136,"name":{"136":{}},"parent":{}}],["islocaldatestring",{"_index":137,"name":{"137":{}},"parent":{}}],["islocaldatetimestring",{"_index":138,"name":{"138":{}},"parent":{}}],["isnotfalse",{"_index":139,"name":{"139":{}},"parent":{}}],["isnotset",{"_index":140,"name":{"140":{}},"parent":{}}],["isnottrue",{"_index":141,"name":{"141":{}},"parent":{}}],["isnull",{"_index":142,"name":{"142":{}},"parent":{}}],["isnumber",{"_index":143,"name":{"143":{}},"parent":{}}],["isobject",{"_index":144,"name":{"144":{}},"parent":{}}],["ispositiveinteger",{"_index":145,"name":{"145":{}},"parent":{}}],["isset",{"_index":146,"name":{"146":{}},"parent":{}}],["isstring",{"_index":147,"name":{"147":{}},"parent":{}}],["istime",{"_index":148,"name":{"148":{}},"parent":{}}],["istimestring",{"_index":149,"name":{"149":{}},"parent":{}}],["istrue",{"_index":150,"name":{"150":{}},"parent":{}}],["isundefined",{"_index":151,"name":{"151":{}},"parent":{}}],["isuuidv4string",{"_index":152,"name":{"152":{}},"parent":{}}],["join",{"_index":107,"name":{"107":{}},"parent":{}}],["lpad",{"_index":117,"name":{"117":{}},"parent":{}}],["ngram",{"_index":108,"name":{"108":{}},"parent":{}}],["or",{"_index":109,"name":{"109":{}},"parent":{}}],["query_function_fulltext",{"_index":38,"name":{"38":{}},"parent":{}}],["query_function_ngram",{"_index":39,"name":{"39":{}},"parent":{}}],["query_function_path_match",{"_index":40,"name":{"40":{}},"parent":{}}],["query_function_range",{"_index":41,"name":{"41":{}},"parent":{}}],["query_function_stemmed",{"_index":42,"name":{"42":{}},"parent":{}}],["query_operator_and",{"_index":43,"name":{"43":{}},"parent":{}}],["query_operator_or",{"_index":44,"name":{"44":{}},"parent":{}}],["response_type_html",{"_index":158,"name":{"158":{}},"parent":{}}],["response_type_json",{"_index":157,"name":{"157":{}},"parent":{}}],["rpad",{"_index":118,"name":{"118":{}},"parent":{}}],["sort_created",{"_index":45,"name":{"45":{}},"parent":{}}],["sort_displayname",{"_index":46,"name":{"46":{}},"parent":{}}],["sort_manual",{"_index":47,"name":{"47":{}},"parent":{}}],["sort_modified",{"_index":48,"name":{"48":{}},"parent":{}}],["sortbyproperty",{"_index":3,"name":{"3":{}},"parent":{}}],["sortkeys",{"_index":5,"name":{"5":{}},"parent":{}}],["sortkeysrec",{"_index":6,"name":{"6":{}},"parent":{}}],["stemmed",{"_index":110,"name":{"110":{}},"parent":{}}],["stemming_language_code_arabic",{"_index":49,"name":{"49":{}},"parent":{}}],["stemming_language_code_armenian",{"_index":66,"name":{"66":{}},"parent":{}}],["stemming_language_code_basque",{"_index":58,"name":{"58":{}},"parent":{}}],["stemming_language_code_bengali",{"_index":51,"name":{"51":{}},"parent":{}}],["stemming_language_code_brazilian",{"_index":77,"name":{"77":{}},"parent":{}}],["stemming_language_code_bulgarian",{"_index":50,"name":{"50":{}},"parent":{}}],["stemming_language_code_catalan",{"_index":52,"name":{"52":{}},"parent":{}}],["stemming_language_code_chinese",{"_index":84,"name":{"84":{}},"parent":{}}],["stemming_language_code_czech",{"_index":53,"name":{"53":{}},"parent":{}}],["stemming_language_code_danish",{"_index":54,"name":{"54":{}},"parent":{}}],["stemming_language_code_dutch",{"_index":74,"name":{"74":{}},"parent":{}}],["stemming_language_code_english",{"_index":57,"name":{"57":{}},"parent":{}}],["stemming_language_code_finnish",{"_index":60,"name":{"60":{}},"parent":{}}],["stemming_language_code_french",{"_index":61,"name":{"61":{}},"parent":{}}],["stemming_language_code_galician",{"_index":63,"name":{"63":{}},"parent":{}}],["stemming_language_code_german",{"_index":55,"name":{"55":{}},"parent":{}}],["stemming_language_code_greek",{"_index":56,"name":{"56":{}},"parent":{}}],["stemming_language_code_hindi",{"_index":64,"name":{"64":{}},"parent":{}}],["stemming_language_code_hungarian",{"_index":65,"name":{"65":{}},"parent":{}}],["stemming_language_code_indonesian",{"_index":67,"name":{"67":{}},"parent":{}}],["stemming_language_code_irish",{"_index":62,"name":{"62":{}},"parent":{}}],["stemming_language_code_italian",{"_index":68,"name":{"68":{}},"parent":{}}],["stemming_language_code_japanese",{"_index":69,"name":{"69":{}},"parent":{}}],["stemming_language_code_korean",{"_index":70,"name":{"70":{}},"parent":{}}],["stemming_language_code_latvian",{"_index":73,"name":{"73":{}},"parent":{}}],["stemming_language_code_lithuanian",{"_index":72,"name":{"72":{}},"parent":{}}],["stemming_language_code_norwegian",{"_index":75,"name":{"75":{}},"parent":{}}],["stemming_language_code_persian",{"_index":59,"name":{"59":{}},"parent":{}}],["stemming_language_code_portuguese",{"_index":76,"name":{"76":{}},"parent":{}}],["stemming_language_code_romanian",{"_index":78,"name":{"78":{}},"parent":{}}],["stemming_language_code_russian",{"_index":79,"name":{"79":{}},"parent":{}}],["stemming_language_code_sorani",{"_index":71,"name":{"71":{}},"parent":{}}],["stemming_language_code_spanish",{"_index":80,"name":{"80":{}},"parent":{}}],["stemming_language_code_swedish",{"_index":81,"name":{"81":{}},"parent":{}}],["stemming_language_code_thai",{"_index":83,"name":{"83":{}},"parent":{}}],["stemming_language_code_turkish",{"_index":82,"name":{"82":{}},"parent":{}}],["stemming_language_codes",{"_index":85,"name":{"85":{}},"parent":{}}],["stemming_languages",{"_index":86,"name":{"86":{}},"parent":{}}],["task_state_failed",{"_index":121,"name":{"121":{}},"parent":{}}],["task_state_finished",{"_index":122,"name":{"122":{}},"parent":{}}],["task_state_running",{"_index":123,"name":{"123":{}},"parent":{}}],["task_state_waiting",{"_index":124,"name":{"124":{}},"parent":{}}],["tostr",{"_index":153,"name":{"153":{}},"parent":{}}],["trimext",{"_index":111,"name":{"111":{}},"parent":{}}],["ucfirst",{"_index":119,"name":{"119":{}},"parent":{}}],["uniqueid",{"_index":112,"name":{"112":{}},"parent":{}}],["unstem",{"_index":120,"name":{"120":{}},"parent":{}}],["updateindexconfigs",{"_index":113,"name":{"113":{}},"parent":{}}],["validaterepoid",{"_index":114,"name":{"114":{}},"parent":{}}],["value_type_any",{"_index":87,"name":{"87":{}},"parent":{}}],["value_type_boolean",{"_index":88,"name":{"88":{}},"parent":{}}],["value_type_double",{"_index":89,"name":{"89":{}},"parent":{}}],["value_type_geo_point",{"_index":90,"name":{"90":{}},"parent":{}}],["value_type_instant",{"_index":91,"name":{"91":{}},"parent":{}}],["value_type_local_date",{"_index":92,"name":{"92":{}},"parent":{}}],["value_type_local_date_time",{"_index":93,"name":{"93":{}},"parent":{}}],["value_type_local_time",{"_index":94,"name":{"94":{}},"parent":{}}],["value_type_long",{"_index":95,"name":{"95":{}},"parent":{}}],["value_type_reference",{"_index":96,"name":{"96":{}},"parent":{}}],["value_type_set",{"_index":97,"name":{"97":{}},"parent":{}}],["value_type_string",{"_index":98,"name":{"98":{}},"parent":{}}]],"pipeline":[]}} |
@@ -57,3 +57,3 @@ { | ||
}, | ||
"version": "0.19.0" | ||
"version": "0.20.0" | ||
} |
import type { Log } from './globals.d' | ||
import type { RepoNodeWithData } from './node/node.d'; | ||
import type { NodeCreateParams } from './node/create.d'; | ||
import type { | ||
GetActiveVersionParamObject, | ||
GetActiveVersionResponse | ||
} from './node/getActiveVersion.d' | ||
import type { NodeModifyParams } from './node/modify.d'; | ||
@@ -13,4 +17,7 @@ import type { NodeQueryParams } from './node/query'; | ||
forceArray, | ||
lpad | ||
isUuidV4String, | ||
lpad, | ||
sortKeys | ||
} from '../'; | ||
import {NodeNotFoundException} from './node/NodeNotFoundException'; | ||
@@ -22,2 +29,6 @@ | ||
interface PathIndex { | ||
[key :string] :string | ||
} | ||
const DEFAULT_INDEX_CONFIG = { | ||
@@ -37,2 +48,8 @@ default: { | ||
function isPathString(key :string) :boolean { | ||
return key.startsWith('/'); | ||
} | ||
export class Branch { | ||
@@ -71,2 +88,5 @@ static generateInstantString() { | ||
}; | ||
private _pathIndex :PathIndex = { | ||
'': '00000000-0000-0000-0000-000000000000' | ||
}; | ||
private _repo :Repo; | ||
@@ -99,3 +119,3 @@ readonly log :Log; | ||
_nodeType = 'default', | ||
//_parentPath, | ||
_parentPath = '/', | ||
//_permissions, | ||
@@ -112,2 +132,16 @@ //_state, // avoid it ending up in rest | ||
if (!_name) { _name = _id; } | ||
if(!_parentPath.endsWith('/')) { | ||
_parentPath += '/' | ||
} | ||
//this.log.debug('_parentPath:%s', _parentPath); | ||
//this.log.debug('this._pathIndex:%s', this._pathIndex); | ||
if ( | ||
_parentPath !== '/' && // The root node actually has no name nor path | ||
this.existsNode(_parentPath)[0] !== _parentPath | ||
) { | ||
throw new NodeNotFoundException(`Cannot create node with name ${_name}, parent '${_parentPath}' not found`); | ||
} | ||
const _ts = Branch.generateInstantString(); | ||
@@ -118,2 +152,3 @@ | ||
} | ||
const _path :string = `${_parentPath}${_name}`; // TODO use path.join? | ||
const node :RepoNodeWithData = { | ||
@@ -124,2 +159,3 @@ _id, | ||
_nodeType, | ||
_path, | ||
_state: 'DEFAULT', | ||
@@ -131,5 +167,28 @@ _ts, | ||
this._nodes[_id] = node; | ||
this._pathIndex[_path] = _id; | ||
//this.log.debug('this._pathIndex:%s', this._pathIndex); | ||
return node; | ||
} | ||
private keyToId(key :string) :string | undefined { | ||
let maybeId :string|undefined = key; | ||
if (isPathString(key)) { | ||
const path = key.endsWith('/') ? key.substring(0, key.length - 1) : key; | ||
//this.log.debug('path:%s', path); | ||
maybeId = this._pathIndex[path]; | ||
//this.log.debug('maybeId:%s', maybeId); | ||
if (!maybeId) { | ||
//throw new Error(`Could not find id from path:${path}!`); | ||
this.log.debug(`Could not find id from path:${path}!`); | ||
return undefined; | ||
} | ||
} | ||
if (!isUuidV4String(maybeId)) { | ||
this.log.debug(`key not an id! key:${key}`); | ||
//throw new TypeError(`key not an id nor path! key:${key}`); | ||
return undefined; | ||
} | ||
return maybeId; | ||
} | ||
existsNode(keys: string | Array<string>) :Array<string> { | ||
@@ -139,9 +198,7 @@ //this.log.debug('existsNode() keys:%s', keys); | ||
.map(k => { | ||
//this.log.debug("existsNode() k:'%s'", k); | ||
if (this.getNode(k)) { | ||
//this.log.debug("existsNode() k:'%s' exists", k); | ||
return k; | ||
const id = this.keyToId(k); | ||
if (!id) { | ||
return ''; | ||
} | ||
//this.log.debug("existsNode() k:'%s' does NOT exists", k); | ||
return ''; | ||
return this._nodes.hasOwnProperty(id) ? k : ''; | ||
}).filter(x => x); | ||
@@ -152,5 +209,30 @@ //this.log.debug("existsNode() keys:%s existingKeys:'%s'", keys, existingKeys); | ||
deleteNode(keys: string | Array<string>) :Array<string> { | ||
const keysArray = forceArray(keys); | ||
const deletedKeys = []; | ||
for (let i = 0; i < keysArray.length; i++) { | ||
const key :string = keysArray[i] as string; | ||
let maybeNode; | ||
try { | ||
maybeNode = this.getNode(key) as RepoNodeWithData; | ||
} catch (e) { | ||
// no-op | ||
} | ||
if (!maybeNode) { | ||
this.log.warning(`Node with key:'${key}' doesn't exist. Skipping delete.`); | ||
continue; | ||
} | ||
try { | ||
delete this._pathIndex[maybeNode._path]; | ||
delete this._nodes[maybeNode._id]; | ||
deletedKeys.push(key); | ||
} catch (e) { | ||
this.log.error(`Something went wrong when trying to delete node with key:'${key}'`); | ||
} | ||
} // for | ||
return deletedKeys; | ||
} | ||
getNode(...keys :string[]) :RepoNodeWithData | RepoNodeWithData[] { | ||
//this.log.debug('getNode() keys:%s', keys); | ||
// TODO support key as _path | ||
if (!keys.length) { | ||
@@ -160,3 +242,10 @@ return []; | ||
const flattenedKeys :string[] = flatten(keys) as string[]; | ||
const nodes :RepoNodeWithData[] = flattenedKeys.map(k => this._nodes[k]) as RepoNodeWithData[]; | ||
const existingKeys = this.existsNode(flattenedKeys); | ||
const nodes :RepoNodeWithData[] = existingKeys.map(key => { | ||
const id = this.keyToId(key); | ||
if (!id) { | ||
throw new Error(`Can't get id from key:${key}, even though exists???`); // This could happen if node deleted after exists called. | ||
} | ||
return this._nodes[id] as RepoNodeWithData; | ||
});//.filter(x => x as RepoNodeWithData); | ||
return nodes.length > 1 | ||
@@ -167,2 +256,18 @@ ? nodes //as RepoNodeWithData[] | ||
getNodeActiveVersion({ | ||
key | ||
} :GetActiveVersionParamObject) :GetActiveVersionResponse { | ||
const node :RepoNodeWithData | undefined = this.getNode(key) as (RepoNodeWithData | undefined); | ||
if (node) { | ||
return { | ||
versionId: node._versionKey, | ||
nodeId: node._id, | ||
nodePath: node._path, | ||
timestamp: node._ts | ||
}; | ||
} | ||
this.log.error(`No such node with key:'${key}`); | ||
return null; | ||
} | ||
modifyNode({ | ||
@@ -173,3 +278,16 @@ key, | ||
const node :RepoNodeWithData = this.getNode(key) as RepoNodeWithData; | ||
return editor(node); | ||
if (!node) { | ||
throw new Error(`modify: Node with key:${key} not found!`); | ||
} | ||
const _id = node._id; | ||
const _name = node._name; | ||
const _path = node._path; | ||
const modifiedNode :RepoNodeWithData = sortKeys({ | ||
...editor(node), | ||
_id, // Not allowed to change _id | ||
_name, // Not allowed to rename | ||
_path, // Not allowed to move | ||
} as RepoNodeWithData); | ||
this._nodes[_id] = modifiedNode; | ||
return this._nodes[_id] as RepoNodeWithData; | ||
} | ||
@@ -176,0 +294,0 @@ |
@@ -6,2 +6,6 @@ import type {Log} from './globals.d' | ||
import type { NodeCreateParams } from './node/create.d'; | ||
import type { | ||
GetActiveVersionParamObject, | ||
GetActiveVersionResponse | ||
} from './node/getActiveVersion.d' | ||
import type { NodeModifyParams } from './node/modify.d'; | ||
@@ -42,2 +46,6 @@ import type { NodeQueryParams } from './node/query'; | ||
delete(keys: string | Array<string>) :Array<string> { | ||
return this._branch.deleteNode(keys); | ||
} | ||
/*get(key :string) :RepoNodeWithData { | ||
@@ -53,2 +61,8 @@ return this._branch.getNode(key); | ||
getActiveVersion({ | ||
key | ||
} :GetActiveVersionParamObject) :GetActiveVersionResponse { | ||
return this._branch.getNodeActiveVersion({key}); | ||
} | ||
modify({ | ||
@@ -55,0 +69,0 @@ key, |
@@ -21,3 +21,5 @@ import type { | ||
import {toStr} from '..'; | ||
export interface Repos { | ||
@@ -27,3 +29,63 @@ [key :string] :Repo | ||
type ColorCode = Number[]; | ||
interface ColorCodes { | ||
[key :string] :ColorCode | ||
} | ||
const colorCodes :ColorCodes = { | ||
reset: [0, 0], | ||
bold: [1, 22], | ||
dim: [2, 22], | ||
italic: [3, 23], | ||
underline: [4, 24], | ||
inverse: [7, 27], | ||
hidden: [8, 28], | ||
strikethrough: [9, 29], | ||
black: [30, 39], | ||
red: [31, 39], | ||
green: [32, 39], | ||
yellow: [33, 39], | ||
blue: [34, 39], | ||
magenta: [35, 39], | ||
cyan: [36, 39], | ||
white: [37, 39], | ||
grey: [90, 39], | ||
brightRed: [91, 39], | ||
brightGreen: [92, 39], | ||
brightYellow: [93, 39], | ||
brightBlue: [94, 39], | ||
brightMagenta: [95, 39], | ||
brightCyan: [96, 39], | ||
brightWhite: [97, 39], | ||
bgBlack: [40, 49], | ||
bgRed: [41, 49], | ||
bgGreen: [42, 49], | ||
bgYellow: [43, 49], | ||
bgBlue: [44, 49], | ||
bgMagenta: [45, 49], | ||
bgCyan: [46, 49], | ||
bgWhite: [47, 49], | ||
bgGray: [100, 49], | ||
bgGrey: [100, 49], | ||
bgBrightRed: [101, 49], | ||
bgBrightGreen: [102, 49], | ||
bgBrightYellow: [103, 49], | ||
bgBrightBlue: [104, 49], | ||
bgBrightMagenta: [105, 49], | ||
bgBrightCyan: [106, 49], | ||
bgBrightWhite: [107, 49] | ||
}; | ||
function colorize(colorKey :string, str :string) :string { | ||
const open = (colorCodes[colorKey] as ColorCode)[0]; | ||
const close = (colorCodes[colorKey] as ColorCode)[1]; | ||
return `\u001b[${open}m${str}\u001b[${close}m`; | ||
} | ||
export class JavaBridge { | ||
@@ -33,6 +95,30 @@ private _repos :Repos = {}; | ||
readonly log :Log = { | ||
debug: (...params) => { console.debug(...params) }, | ||
error: (...params) => { console.error(...params) }, | ||
info: (...params) => { console.info(...params) }, | ||
warning: (...params) => { console.warn(...params) } | ||
debug: (format :string, ...substs :unknown[]) :void => { | ||
if (substs.length) { | ||
console.debug(colorize('grey',`DEBUG ${format}`), ...substs.map(o => toStr(o))); | ||
} else { | ||
console.debug(colorize('grey',`DEBUG ${format}`)); | ||
} | ||
}, | ||
error: (format :string, ...substs :unknown[]) :void => { | ||
if (substs.length) { | ||
console.error(colorize('brightRed',`ERROR ${format}`), ...substs.map(o => toStr(o))); | ||
} else { | ||
console.error(colorize('brightRed',`ERROR ${format}`)); | ||
} | ||
}, | ||
info: (format :string, ...substs :unknown[]) :void => { | ||
if (substs.length) { | ||
console.info(colorize('white',`INFO ${format}`), ...substs.map(o => toStr(o))); | ||
} else { | ||
console.info(colorize('white',`INFO ${format}`)); | ||
} | ||
}, | ||
warning: (format :string, ...substs :unknown[]) :void => { | ||
if (substs.length) { | ||
console.warn(colorize('brightYellow',`WARN ${format}`), ...substs.map(o => toStr(o))); | ||
} else { | ||
console.warn(colorize('brightYellow',`WARN ${format}`)); | ||
} | ||
} | ||
}; | ||
@@ -39,0 +125,0 @@ readonly repo :RepoLib = { |
@@ -9,2 +9,6 @@ import type { PrincipalKey } from '../auth'; | ||
//import type { NodeGetParams } from './get.d'; | ||
import type { | ||
GetActiveVersionParamObject, | ||
GetActiveVersionResponse | ||
} from './getActiveVersion.d' | ||
import type { NodeModifyParams } from './modify.d'; | ||
@@ -56,3 +60,3 @@ import type { NodeQueryParams } from './query'; | ||
*/ | ||
//delete(keys: string | ReadonlyArray<string>): ReadonlyArray<string>; | ||
delete(keys: string | Array<string>): Array<string>; | ||
@@ -109,3 +113,3 @@ /** | ||
*/ | ||
//getActiveVersion(params: GetActiveVersionParams): any; | ||
getActiveVersion(object: GetActiveVersionParamObject): GetActiveVersionResponse; | ||
@@ -112,0 +116,0 @@ /** |
@@ -12,3 +12,3 @@ export {hasOwnProperty} from './hasOwnProperty'; | ||
export function sortKeys(obj: LooseObject) :LooseObject { | ||
export function sortKeys<T extends LooseObject>(obj: T) :T { | ||
if (typeof obj !== 'object' || isArray(obj)) { | ||
@@ -23,3 +23,3 @@ throw new Error('sortKeys'); | ||
} | ||
return newObject; | ||
return newObject as T; | ||
} | ||
@@ -26,0 +26,0 @@ |
@@ -7,4 +7,4 @@ import {isString} from './isString'; | ||
export function isUuidV4String(value :unknown) :boolean { | ||
export function isUuidV4String(value :unknown) :value is string { | ||
return isString(value) ? REGEXP.test(value as string) : false; | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
1149688
233
31203