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.1.7 to 1.1.8

9

Builders/EshopFacets/index.d.ts

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

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

@@ -9,6 +10,6 @@ active: object;

declare type InactiveFacet = Record<'filter' | 'aggs', object>;
export declare class EshopFacets {
export declare class EshopFacets extends AbstractBulder {
private _facets;
setupInactiveFacets(filter: Bool): void;
addInactiveFacet<Type extends keyof AggregationSchema>(facetType: FacetType, aggType: Type, name: string, d: AggregationSchema[Type]): this;
add<Type extends keyof AggregationSchema>(facetType: FacetType, aggType: Type, name: string, d: AggregationSchema[Type]): this;
addCustom(facetType: FacetType, name: string, cutsomAgg: object): void;

@@ -15,0 +16,0 @@ build(): object;

@@ -14,4 +14,6 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
class EshopFacets {
const AbstractBuilder_1 = require("Abstract/AbstractBuilder");
class EshopFacets extends AbstractBuilder_1.AbstractBulder {
constructor() {
super(...arguments);
this._facets = {

@@ -28,3 +30,3 @@ active: {},

}
addInactiveFacet(facetType, aggType, name, d) {
add(facetType, aggType, name, d) {
const _a = d.params, { filter, subAgg } = _a, all = __rest(_a, ["filter", "subAgg"]);

@@ -31,0 +33,0 @@ let sub = {};

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

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

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

[`${name}_filtered`]: {
[aggType]: { ...all, ...((d.opts as object) || {}) },
[aggType]: {...all, ...((d.opts as object) || {})},
...sub,

@@ -31,3 +31,3 @@ },

this._data[name] = {
[aggType]: { ...all, ...((d.opts as object) || {}) },
[aggType]: {...all, ...((d.opts as object) || {})},
...sub,

@@ -42,3 +42,2 @@ };

public build(): object {

@@ -45,0 +44,0 @@ return this._data;

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

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

@@ -8,6 +9,8 @@ interface IFacet {

}
type FacetType = keyof IFacet;
type InactiveFacet = Record<'filter' | 'aggs', object>;
export class EshopFacets {
export class EshopFacets extends AbstractBulder {
private _facets: IFacet = {

@@ -25,3 +28,3 @@ active: {},

public addInactiveFacet<Type extends keyof AggregationSchema>(
public add<Type extends keyof AggregationSchema>(
facetType: FacetType,

@@ -28,0 +31,0 @@ aggType: Type,

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