Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

elastic-dsl-typescript

Package Overview
Dependencies
Maintainers
1
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

elastic-dsl-typescript - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

2

Builders/Bool/index.d.ts
import { AbstractBulder } from '../../Abstract/AbstractBuilder';
import { BoolFields } from '../../Types';
import { BoolSchema } from './types';
export declare class Bool<BASE_SCHEMA extends BoolSchema> extends AbstractBulder {
export declare class Bool<BASE_SCHEMA extends BoolSchema = BoolSchema> extends AbstractBulder {
private _query;

@@ -6,0 +6,0 @@ private checkField;

import { Schema } from '../../Abstract/Schema';
import { Range } from '../../Types';
import { Boost, Fuzziness, MaxExpansions, PrefixLength, Relation, TimeZone, Transpositions, Rewrite } from '../../Types/QueryOptions';
import { Boost, Fuzziness, MaxExpansions, PrefixLength, Relation, TimeZone, Transpositions, Rewrite, Analyzer, AutoGenerateSynonymsPhraseQuery, FuzzyTranspositions, Lenient, Operator, MinimumShouldMatch, ZeroTermsQuery } from '../../Types/QueryOptions';
/**

@@ -32,6 +32,16 @@ * Base Boool builder filters shema

};
match: {
field: string;
params: {
/**
* (Required) Text, number, boolean value or date you wish to find in the provided <field>.
*/
query: string | number | boolean;
};
opts?: Analyzer | AutoGenerateSynonymsPhraseQuery | Fuzziness | MaxExpansions | PrefixLength | FuzzyTranspositions | Lenient | Operator | MinimumShouldMatch | ZeroTermsQuery;
};
term: {
field: string;
params: {
value: string;
value: string | number | boolean;
};

@@ -43,3 +53,3 @@ opts?: Boost;

params: {
value: string[];
value: string[] | number[] | boolean[];
};

@@ -46,0 +56,0 @@ opts?: Boost;

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

@@ -5,0 +5,0 @@ "main": "./",

@@ -7,3 +7,3 @@ import { AbstractBulder } from '../../Abstract/AbstractBuilder';

export class Bool<BASE_SCHEMA extends BoolSchema> extends AbstractBulder {
export class Bool<BASE_SCHEMA extends BoolSchema= BoolSchema> extends AbstractBulder {
private _query: BoolQueryData = {};

@@ -10,0 +10,0 @@

@@ -11,3 +11,10 @@ import { Schema } from '../../Abstract/Schema';

Transpositions,
Rewrite
Rewrite,
Analyzer,
AutoGenerateSynonymsPhraseQuery,
FuzzyTranspositions,
Lenient,
Operator,
MinimumShouldMatch,
ZeroTermsQuery,
} from '../../Types/QueryOptions';

@@ -43,6 +50,26 @@

};
match: {
field: string;
params: {
/**
* (Required) Text, number, boolean value or date you wish to find in the provided <field>.
*/
query: string | number | boolean;
};
opts?:
| Analyzer
| AutoGenerateSynonymsPhraseQuery
| Fuzziness
| MaxExpansions
| PrefixLength
| FuzzyTranspositions
| Lenient
| Operator
| MinimumShouldMatch
| ZeroTermsQuery;
};
term: {
field: string;
params: {
value: string;
value: string | number | boolean;
};

@@ -54,3 +81,3 @@ opts?: Boost;

params: {
value: string[];
value: string[] | number[] | boolean[];
};

@@ -57,0 +84,0 @@ opts?: Boost;

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc