Socket
Socket
Sign inDemoInstall

elastic-dsl-typescript

Package Overview
Dependencies
0
Maintainers
1
Versions
34
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.8.0 to 1.8.1

dist/Builders/index.d.ts

6

CHANGELOG.md

@@ -1,6 +0,6 @@

# [1.8.0](https://github.com/Blynskyniki/elastic-query-builder/compare/v1.7.0...v1.8.0) (2023-03-24)
## [1.8.1](https://github.com/Blynskyniki/elastic-query-builder/compare/v1.8.0...v1.8.1) (2023-05-23)
### Features
### Bug Fixes
* Function Score add script,gaus,linear,exp ([d94edb1](https://github.com/Blynskyniki/elastic-query-builder/commit/d94edb100bc00093e9a3de87f63f1598bc434d85))
* Исправлены импорты ([cad850b](https://github.com/Blynskyniki/elastic-query-builder/commit/cad850b38e3edef3c1706dfe493e4f935152d454))
import { AbstractBulder } from '../../Abstract/AbstractBuilder';
import { AggregationSchema } from './types';
export * from './types';
export declare class Aggregation<SCHEMA extends AggregationSchema> extends AbstractBulder {

@@ -4,0 +5,0 @@ private _data;

"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __exportStar = (this && this.__exportStar) || function(m, exports) {
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
};
var __rest = (this && this.__rest) || function (s, e) {

@@ -16,2 +30,3 @@ var t = {};

const AbstractBuilder_1 = require("../../Abstract/AbstractBuilder");
__exportStar(require("./types"), exports);
class Aggregation extends AbstractBuilder_1.AbstractBulder {

@@ -18,0 +33,0 @@ constructor() {

import { AbstractBulder } from '../../Abstract/AbstractBuilder';
import { BoolFields } from '../../Types';
import { BoolSchema } from './types';
export * from './types';
export declare class Bool<BASE_SCHEMA extends BoolSchema = BoolSchema> extends AbstractBulder {

@@ -5,0 +6,0 @@ private _query;

"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __exportStar = (this && this.__exportStar) || function(m, exports) {
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.Bool = void 0;
const AbstractBuilder_1 = require("../../Abstract/AbstractBuilder");
__exportStar(require("./types"), exports);
class Bool extends AbstractBuilder_1.AbstractBulder {

@@ -6,0 +21,0 @@ constructor() {

@@ -1,4 +0,4 @@

import { AggregationSchema } from '../Aggregation/types';
import { AbstractBulder } from '../../Abstract/AbstractBuilder';
import { AggregationSchema } from '../Aggregation';
import { Bool } from '../Bool';
import { AbstractBulder } from '../../Abstract/AbstractBuilder';
interface IFacet {

@@ -5,0 +5,0 @@ [key: string]: any;

import { AbstractBulder } from '../../Abstract/AbstractBuilder';
import { IFunctionScoreSchema } from './types';
export * from './types';
export declare class FunctionScore<BASE_SCHEMA extends IFunctionScoreSchema = IFunctionScoreSchema> extends AbstractBulder {

@@ -4,0 +5,0 @@ private _query;

"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __exportStar = (this && this.__exportStar) || function(m, exports) {
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.FunctionScore = void 0;
const AbstractBuilder_1 = require("../../Abstract/AbstractBuilder");
const Bool_1 = require("../../Builders/Bool");
const Bool_1 = require("../Bool");
__exportStar(require("./types"), exports);
class FunctionScore extends AbstractBuilder_1.AbstractBulder {

@@ -7,0 +22,0 @@ constructor() {

@@ -1,4 +0,3 @@

import { Bool } from 'Builders/Bool';
import { BoolSchema } from 'Builders/Bool/types';
import { Range } from 'Types';
import { Range } from '../../Types';
import { Bool, BoolSchema } from '../Bool';
export interface IScoreFunction {

@@ -5,0 +4,0 @@ filter: Record<'string', any>;

import { AbstractBulder } from '../../Abstract/AbstractBuilder';
import { NestedSchema } from './types';
export * from './types';
export declare class Nested extends AbstractBulder {

@@ -4,0 +5,0 @@ private readonly _query;

"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __exportStar = (this && this.__exportStar) || function(m, exports) {
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.Nested = void 0;
const AbstractBuilder_1 = require("../../Abstract/AbstractBuilder");
__exportStar(require("./types"), exports);
class Nested extends AbstractBuilder_1.AbstractBulder {

@@ -6,0 +21,0 @@ constructor(path) {

@@ -1,3 +0,4 @@

import { AbstractBulder } from '../..';
import { AbstractBulder } from '../../Abstract/AbstractBuilder';
import { TextSchema } from './types';
export * from './types';
export declare class TEXT<BASE_SCHEMA extends TextSchema> extends AbstractBulder {

@@ -4,0 +5,0 @@ private _query;

"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __exportStar = (this && this.__exportStar) || function(m, exports) {
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.TEXT = void 0;
const __1 = require("../..");
class TEXT extends __1.AbstractBulder {
const AbstractBuilder_1 = require("../../Abstract/AbstractBuilder");
__exportStar(require("./types"), exports);
class TEXT extends AbstractBuilder_1.AbstractBulder {
constructor() {

@@ -7,0 +22,0 @@ super(...arguments);

export * from './Query';
export * from './Query/types';
export * from './Abstract/Schema';
export * from './Abstract/AbstractBuilder';
export * from './Abstract/Schema';
export * from './Builders/Bool/index';
export * from './Builders/Bool/types';
export * from './Builders/ScriptFields/index';
export * from './Builders/Nested/index';
export * from './Builders/Nested/types';
export * from './Builders/Aggregation/index';
export * from './Builders/Aggregation/types';
export * from './Builders/Text/index';
export * from './Builders/Text/types';
export * from './Builders/EshopFacets';
export * from './Builders/FunctionScore/index';
export * from './Builders/FunctionScore/types';
export * from './Builders';
export * from './Types/index';
export * from './Types/QueryOptions';

@@ -19,26 +19,8 @@ "use strict";

__exportStar(require("./Query"), exports);
__exportStar(require("./Query/types"), exports);
// Abstract
__exportStar(require("./Abstract/Schema"), exports);
__exportStar(require("./Abstract/AbstractBuilder"), exports);
__exportStar(require("./Abstract/Schema"), exports);
// Bool
__exportStar(require("./Builders/Bool/index"), exports);
__exportStar(require("./Builders/Bool/types"), exports);
// ScriptFields
__exportStar(require("./Builders/ScriptFields/index"), exports);
// Nested
__exportStar(require("./Builders/Nested/index"), exports);
__exportStar(require("./Builders/Nested/types"), exports);
// Aggregation
__exportStar(require("./Builders/Aggregation/index"), exports);
__exportStar(require("./Builders/Aggregation/types"), exports);
// Text
__exportStar(require("./Builders/Text/index"), exports);
__exportStar(require("./Builders/Text/types"), exports);
// Eshop facets
__exportStar(require("./Builders/EshopFacets"), exports);
// FunctionScore
__exportStar(require("./Builders/FunctionScore/index"), exports);
__exportStar(require("./Builders/FunctionScore/types"), exports);
__exportStar(require("./Builders"), exports);
__exportStar(require("./Types/index"), exports);
__exportStar(require("./Types/QueryOptions"), exports);
import { AbstractBulder } from '../Abstract/AbstractBuilder';
import { Bool } from '../Builders/Bool';
import { BoolSchema } from '../Builders/Bool/types';
import { Bool, BoolSchema } from '../Builders';
import { RawQuery } from './types';
export * from './types';
/**

@@ -6,0 +6,0 @@ * @Class Query

"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __exportStar = (this && this.__exportStar) || function(m, exports) {
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.Query = void 0;
const AbstractBuilder_1 = require("../Abstract/AbstractBuilder");
const Bool_1 = require("../Builders/Bool");
const Builders_1 = require("../Builders");
__exportStar(require("./types"), exports);
/**

@@ -15,3 +30,3 @@ * @Class Query

this._query = {};
this._post_filter = new Bool_1.Bool();
this._post_filter = new Builders_1.Bool();
}

@@ -24,3 +39,3 @@ /**

if (this.isNotExistInQuery('bool')) {
this._query.bool = new Bool_1.Bool();
this._query.bool = new Builders_1.Bool();
}

@@ -27,0 +42,0 @@ return this._query.bool;

@@ -1,2 +0,1 @@

import { FunctionScore } from 'Builders/FunctionScore';
import { AggregationSchema, EshopFacets } from '..';

@@ -6,2 +5,3 @@ import { Aggregation } from '../Builders/Aggregation';

import { BoolSchema } from '../Builders/Bool/types';
import { FunctionScore } from '../Builders/FunctionScore';
import { Range, Sort } from '../Types';

@@ -8,0 +8,0 @@ /**

{
"name": "elastic-dsl-typescript",
"version": "1.8.0",
"version": "1.8.1",
"description": "Node.js ElasticSearch search query builder",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

@@ -0,1 +1,3 @@

[![NPM](https://nodei.co/npm/elastic-dsl-typescript.png)](https://nodei.co/npm/elastic-dsl-typescript/)
### Library for generating queries (Elastic DSL) in the typescript language.

@@ -2,0 +4,0 @@

@@ -12,3 +12,3 @@ {

"declaration": true,
"baseUrl": "./src",
"experimentalDecorators": true,

@@ -15,0 +15,0 @@ "esModuleInterop": true

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc