@wix/sdk-types 1.13.22 → 1.13.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/browser/index.d.mts +11 -21
- package/build/index.d.mts +11 -21
- package/build/index.d.ts +11 -21
- package/internal/build/browser/index.d.mts +11 -21
- package/internal/build/index.d.mts +11 -21
- package/internal/build/index.d.ts +11 -21
- package/package.json +2 -2
|
@@ -643,7 +643,9 @@ interface DateHistogramAggregation {
|
|
|
643
643
|
/**
|
|
644
644
|
* Nested aggregation item
|
|
645
645
|
*/
|
|
646
|
-
type NestedAggregationItem<Spec extends SearchSpec> =
|
|
646
|
+
type NestedAggregationItem<Spec extends SearchSpec> = BaseAggregationWithoutType<Spec> & {
|
|
647
|
+
type?: NonNestedAggregationType;
|
|
648
|
+
};
|
|
647
649
|
/**
|
|
648
650
|
* Nested aggregation configuration
|
|
649
651
|
*/
|
|
@@ -660,34 +662,22 @@ type AggregatableFields<Spec extends SearchSpec> = Spec extends {
|
|
|
660
662
|
/**
|
|
661
663
|
* Base aggregation type that can be used for both top-level and nested aggregations
|
|
662
664
|
*/
|
|
663
|
-
type
|
|
665
|
+
type NonNestedAggregationType = 'DATE_HISTOGRAM' | 'RANGE' | 'SCALAR' | 'VALUE';
|
|
666
|
+
type AggregationTypeWithNested = 'NESTED' | NonNestedAggregationType;
|
|
667
|
+
type BaseAggregationWithoutType<Spec extends SearchSpec> = {
|
|
664
668
|
name?: string | null;
|
|
665
669
|
fieldPath?: AggregatableFields<Spec>;
|
|
666
|
-
|
|
667
|
-
type?: 'VALUE';
|
|
668
|
-
value?: ValueAggregation;
|
|
669
|
-
} | {
|
|
670
|
-
type?: 'RANGE';
|
|
670
|
+
dateHistogram?: DateHistogramAggregation;
|
|
671
671
|
range?: RangeAggregation;
|
|
672
|
-
} | {
|
|
673
|
-
type?: 'SCALAR';
|
|
674
672
|
scalar?: ScalarAggregation;
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
dateHistogram?: DateHistogramAggregation;
|
|
678
|
-
});
|
|
673
|
+
value?: ValueAggregation;
|
|
674
|
+
};
|
|
679
675
|
/**
|
|
680
676
|
* Base aggregation interface
|
|
681
677
|
* @template Spec The search specification type
|
|
682
678
|
*/
|
|
683
|
-
type Aggregation<Spec extends SearchSpec> = {
|
|
684
|
-
type?:
|
|
685
|
-
name?: string | null;
|
|
686
|
-
fieldPath?: AggregatableFields<Spec>;
|
|
687
|
-
dateHistogram?: DateHistogramAggregation;
|
|
688
|
-
range?: RangeAggregation;
|
|
689
|
-
scalar?: ScalarAggregation;
|
|
690
|
-
value?: ValueAggregation;
|
|
679
|
+
type Aggregation<Spec extends SearchSpec> = BaseAggregationWithoutType<Spec> & {
|
|
680
|
+
type?: AggregationTypeWithNested;
|
|
691
681
|
nested?: NestedAggregation<Spec>;
|
|
692
682
|
};
|
|
693
683
|
|
package/build/index.d.mts
CHANGED
|
@@ -643,7 +643,9 @@ interface DateHistogramAggregation {
|
|
|
643
643
|
/**
|
|
644
644
|
* Nested aggregation item
|
|
645
645
|
*/
|
|
646
|
-
type NestedAggregationItem<Spec extends SearchSpec> =
|
|
646
|
+
type NestedAggregationItem<Spec extends SearchSpec> = BaseAggregationWithoutType<Spec> & {
|
|
647
|
+
type?: NonNestedAggregationType;
|
|
648
|
+
};
|
|
647
649
|
/**
|
|
648
650
|
* Nested aggregation configuration
|
|
649
651
|
*/
|
|
@@ -660,34 +662,22 @@ type AggregatableFields<Spec extends SearchSpec> = Spec extends {
|
|
|
660
662
|
/**
|
|
661
663
|
* Base aggregation type that can be used for both top-level and nested aggregations
|
|
662
664
|
*/
|
|
663
|
-
type
|
|
665
|
+
type NonNestedAggregationType = 'DATE_HISTOGRAM' | 'RANGE' | 'SCALAR' | 'VALUE';
|
|
666
|
+
type AggregationTypeWithNested = 'NESTED' | NonNestedAggregationType;
|
|
667
|
+
type BaseAggregationWithoutType<Spec extends SearchSpec> = {
|
|
664
668
|
name?: string | null;
|
|
665
669
|
fieldPath?: AggregatableFields<Spec>;
|
|
666
|
-
|
|
667
|
-
type?: 'VALUE';
|
|
668
|
-
value?: ValueAggregation;
|
|
669
|
-
} | {
|
|
670
|
-
type?: 'RANGE';
|
|
670
|
+
dateHistogram?: DateHistogramAggregation;
|
|
671
671
|
range?: RangeAggregation;
|
|
672
|
-
} | {
|
|
673
|
-
type?: 'SCALAR';
|
|
674
672
|
scalar?: ScalarAggregation;
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
dateHistogram?: DateHistogramAggregation;
|
|
678
|
-
});
|
|
673
|
+
value?: ValueAggregation;
|
|
674
|
+
};
|
|
679
675
|
/**
|
|
680
676
|
* Base aggregation interface
|
|
681
677
|
* @template Spec The search specification type
|
|
682
678
|
*/
|
|
683
|
-
type Aggregation<Spec extends SearchSpec> = {
|
|
684
|
-
type?:
|
|
685
|
-
name?: string | null;
|
|
686
|
-
fieldPath?: AggregatableFields<Spec>;
|
|
687
|
-
dateHistogram?: DateHistogramAggregation;
|
|
688
|
-
range?: RangeAggregation;
|
|
689
|
-
scalar?: ScalarAggregation;
|
|
690
|
-
value?: ValueAggregation;
|
|
679
|
+
type Aggregation<Spec extends SearchSpec> = BaseAggregationWithoutType<Spec> & {
|
|
680
|
+
type?: AggregationTypeWithNested;
|
|
691
681
|
nested?: NestedAggregation<Spec>;
|
|
692
682
|
};
|
|
693
683
|
|
package/build/index.d.ts
CHANGED
|
@@ -643,7 +643,9 @@ interface DateHistogramAggregation {
|
|
|
643
643
|
/**
|
|
644
644
|
* Nested aggregation item
|
|
645
645
|
*/
|
|
646
|
-
type NestedAggregationItem<Spec extends SearchSpec> =
|
|
646
|
+
type NestedAggregationItem<Spec extends SearchSpec> = BaseAggregationWithoutType<Spec> & {
|
|
647
|
+
type?: NonNestedAggregationType;
|
|
648
|
+
};
|
|
647
649
|
/**
|
|
648
650
|
* Nested aggregation configuration
|
|
649
651
|
*/
|
|
@@ -660,34 +662,22 @@ type AggregatableFields<Spec extends SearchSpec> = Spec extends {
|
|
|
660
662
|
/**
|
|
661
663
|
* Base aggregation type that can be used for both top-level and nested aggregations
|
|
662
664
|
*/
|
|
663
|
-
type
|
|
665
|
+
type NonNestedAggregationType = 'DATE_HISTOGRAM' | 'RANGE' | 'SCALAR' | 'VALUE';
|
|
666
|
+
type AggregationTypeWithNested = 'NESTED' | NonNestedAggregationType;
|
|
667
|
+
type BaseAggregationWithoutType<Spec extends SearchSpec> = {
|
|
664
668
|
name?: string | null;
|
|
665
669
|
fieldPath?: AggregatableFields<Spec>;
|
|
666
|
-
|
|
667
|
-
type?: 'VALUE';
|
|
668
|
-
value?: ValueAggregation;
|
|
669
|
-
} | {
|
|
670
|
-
type?: 'RANGE';
|
|
670
|
+
dateHistogram?: DateHistogramAggregation;
|
|
671
671
|
range?: RangeAggregation;
|
|
672
|
-
} | {
|
|
673
|
-
type?: 'SCALAR';
|
|
674
672
|
scalar?: ScalarAggregation;
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
dateHistogram?: DateHistogramAggregation;
|
|
678
|
-
});
|
|
673
|
+
value?: ValueAggregation;
|
|
674
|
+
};
|
|
679
675
|
/**
|
|
680
676
|
* Base aggregation interface
|
|
681
677
|
* @template Spec The search specification type
|
|
682
678
|
*/
|
|
683
|
-
type Aggregation<Spec extends SearchSpec> = {
|
|
684
|
-
type?:
|
|
685
|
-
name?: string | null;
|
|
686
|
-
fieldPath?: AggregatableFields<Spec>;
|
|
687
|
-
dateHistogram?: DateHistogramAggregation;
|
|
688
|
-
range?: RangeAggregation;
|
|
689
|
-
scalar?: ScalarAggregation;
|
|
690
|
-
value?: ValueAggregation;
|
|
679
|
+
type Aggregation<Spec extends SearchSpec> = BaseAggregationWithoutType<Spec> & {
|
|
680
|
+
type?: AggregationTypeWithNested;
|
|
691
681
|
nested?: NestedAggregation<Spec>;
|
|
692
682
|
};
|
|
693
683
|
|
|
@@ -706,7 +706,9 @@ interface DateHistogramAggregation {
|
|
|
706
706
|
/**
|
|
707
707
|
* Nested aggregation item
|
|
708
708
|
*/
|
|
709
|
-
type NestedAggregationItem<Spec extends SearchSpec> =
|
|
709
|
+
type NestedAggregationItem<Spec extends SearchSpec> = BaseAggregationWithoutType<Spec> & {
|
|
710
|
+
type?: NonNestedAggregationType;
|
|
711
|
+
};
|
|
710
712
|
/**
|
|
711
713
|
* Nested aggregation configuration
|
|
712
714
|
*/
|
|
@@ -723,34 +725,22 @@ type AggregatableFields<Spec extends SearchSpec> = Spec extends {
|
|
|
723
725
|
/**
|
|
724
726
|
* Base aggregation type that can be used for both top-level and nested aggregations
|
|
725
727
|
*/
|
|
726
|
-
type
|
|
728
|
+
type NonNestedAggregationType = 'DATE_HISTOGRAM' | 'RANGE' | 'SCALAR' | 'VALUE';
|
|
729
|
+
type AggregationTypeWithNested = 'NESTED' | NonNestedAggregationType;
|
|
730
|
+
type BaseAggregationWithoutType<Spec extends SearchSpec> = {
|
|
727
731
|
name?: string | null;
|
|
728
732
|
fieldPath?: AggregatableFields<Spec>;
|
|
729
|
-
|
|
730
|
-
type?: 'VALUE';
|
|
731
|
-
value?: ValueAggregation;
|
|
732
|
-
} | {
|
|
733
|
-
type?: 'RANGE';
|
|
733
|
+
dateHistogram?: DateHistogramAggregation;
|
|
734
734
|
range?: RangeAggregation;
|
|
735
|
-
} | {
|
|
736
|
-
type?: 'SCALAR';
|
|
737
735
|
scalar?: ScalarAggregation;
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
dateHistogram?: DateHistogramAggregation;
|
|
741
|
-
});
|
|
736
|
+
value?: ValueAggregation;
|
|
737
|
+
};
|
|
742
738
|
/**
|
|
743
739
|
* Base aggregation interface
|
|
744
740
|
* @template Spec The search specification type
|
|
745
741
|
*/
|
|
746
|
-
type Aggregation<Spec extends SearchSpec> = {
|
|
747
|
-
type?:
|
|
748
|
-
name?: string | null;
|
|
749
|
-
fieldPath?: AggregatableFields<Spec>;
|
|
750
|
-
dateHistogram?: DateHistogramAggregation;
|
|
751
|
-
range?: RangeAggregation;
|
|
752
|
-
scalar?: ScalarAggregation;
|
|
753
|
-
value?: ValueAggregation;
|
|
742
|
+
type Aggregation<Spec extends SearchSpec> = BaseAggregationWithoutType<Spec> & {
|
|
743
|
+
type?: AggregationTypeWithNested;
|
|
754
744
|
nested?: NestedAggregation<Spec>;
|
|
755
745
|
};
|
|
756
746
|
|
|
@@ -706,7 +706,9 @@ interface DateHistogramAggregation {
|
|
|
706
706
|
/**
|
|
707
707
|
* Nested aggregation item
|
|
708
708
|
*/
|
|
709
|
-
type NestedAggregationItem<Spec extends SearchSpec> =
|
|
709
|
+
type NestedAggregationItem<Spec extends SearchSpec> = BaseAggregationWithoutType<Spec> & {
|
|
710
|
+
type?: NonNestedAggregationType;
|
|
711
|
+
};
|
|
710
712
|
/**
|
|
711
713
|
* Nested aggregation configuration
|
|
712
714
|
*/
|
|
@@ -723,34 +725,22 @@ type AggregatableFields<Spec extends SearchSpec> = Spec extends {
|
|
|
723
725
|
/**
|
|
724
726
|
* Base aggregation type that can be used for both top-level and nested aggregations
|
|
725
727
|
*/
|
|
726
|
-
type
|
|
728
|
+
type NonNestedAggregationType = 'DATE_HISTOGRAM' | 'RANGE' | 'SCALAR' | 'VALUE';
|
|
729
|
+
type AggregationTypeWithNested = 'NESTED' | NonNestedAggregationType;
|
|
730
|
+
type BaseAggregationWithoutType<Spec extends SearchSpec> = {
|
|
727
731
|
name?: string | null;
|
|
728
732
|
fieldPath?: AggregatableFields<Spec>;
|
|
729
|
-
|
|
730
|
-
type?: 'VALUE';
|
|
731
|
-
value?: ValueAggregation;
|
|
732
|
-
} | {
|
|
733
|
-
type?: 'RANGE';
|
|
733
|
+
dateHistogram?: DateHistogramAggregation;
|
|
734
734
|
range?: RangeAggregation;
|
|
735
|
-
} | {
|
|
736
|
-
type?: 'SCALAR';
|
|
737
735
|
scalar?: ScalarAggregation;
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
dateHistogram?: DateHistogramAggregation;
|
|
741
|
-
});
|
|
736
|
+
value?: ValueAggregation;
|
|
737
|
+
};
|
|
742
738
|
/**
|
|
743
739
|
* Base aggregation interface
|
|
744
740
|
* @template Spec The search specification type
|
|
745
741
|
*/
|
|
746
|
-
type Aggregation<Spec extends SearchSpec> = {
|
|
747
|
-
type?:
|
|
748
|
-
name?: string | null;
|
|
749
|
-
fieldPath?: AggregatableFields<Spec>;
|
|
750
|
-
dateHistogram?: DateHistogramAggregation;
|
|
751
|
-
range?: RangeAggregation;
|
|
752
|
-
scalar?: ScalarAggregation;
|
|
753
|
-
value?: ValueAggregation;
|
|
742
|
+
type Aggregation<Spec extends SearchSpec> = BaseAggregationWithoutType<Spec> & {
|
|
743
|
+
type?: AggregationTypeWithNested;
|
|
754
744
|
nested?: NestedAggregation<Spec>;
|
|
755
745
|
};
|
|
756
746
|
|
|
@@ -706,7 +706,9 @@ interface DateHistogramAggregation {
|
|
|
706
706
|
/**
|
|
707
707
|
* Nested aggregation item
|
|
708
708
|
*/
|
|
709
|
-
type NestedAggregationItem<Spec extends SearchSpec> =
|
|
709
|
+
type NestedAggregationItem<Spec extends SearchSpec> = BaseAggregationWithoutType<Spec> & {
|
|
710
|
+
type?: NonNestedAggregationType;
|
|
711
|
+
};
|
|
710
712
|
/**
|
|
711
713
|
* Nested aggregation configuration
|
|
712
714
|
*/
|
|
@@ -723,34 +725,22 @@ type AggregatableFields<Spec extends SearchSpec> = Spec extends {
|
|
|
723
725
|
/**
|
|
724
726
|
* Base aggregation type that can be used for both top-level and nested aggregations
|
|
725
727
|
*/
|
|
726
|
-
type
|
|
728
|
+
type NonNestedAggregationType = 'DATE_HISTOGRAM' | 'RANGE' | 'SCALAR' | 'VALUE';
|
|
729
|
+
type AggregationTypeWithNested = 'NESTED' | NonNestedAggregationType;
|
|
730
|
+
type BaseAggregationWithoutType<Spec extends SearchSpec> = {
|
|
727
731
|
name?: string | null;
|
|
728
732
|
fieldPath?: AggregatableFields<Spec>;
|
|
729
|
-
|
|
730
|
-
type?: 'VALUE';
|
|
731
|
-
value?: ValueAggregation;
|
|
732
|
-
} | {
|
|
733
|
-
type?: 'RANGE';
|
|
733
|
+
dateHistogram?: DateHistogramAggregation;
|
|
734
734
|
range?: RangeAggregation;
|
|
735
|
-
} | {
|
|
736
|
-
type?: 'SCALAR';
|
|
737
735
|
scalar?: ScalarAggregation;
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
dateHistogram?: DateHistogramAggregation;
|
|
741
|
-
});
|
|
736
|
+
value?: ValueAggregation;
|
|
737
|
+
};
|
|
742
738
|
/**
|
|
743
739
|
* Base aggregation interface
|
|
744
740
|
* @template Spec The search specification type
|
|
745
741
|
*/
|
|
746
|
-
type Aggregation<Spec extends SearchSpec> = {
|
|
747
|
-
type?:
|
|
748
|
-
name?: string | null;
|
|
749
|
-
fieldPath?: AggregatableFields<Spec>;
|
|
750
|
-
dateHistogram?: DateHistogramAggregation;
|
|
751
|
-
range?: RangeAggregation;
|
|
752
|
-
scalar?: ScalarAggregation;
|
|
753
|
-
value?: ValueAggregation;
|
|
742
|
+
type Aggregation<Spec extends SearchSpec> = BaseAggregationWithoutType<Spec> & {
|
|
743
|
+
type?: AggregationTypeWithNested;
|
|
754
744
|
nested?: NestedAggregation<Spec>;
|
|
755
745
|
};
|
|
756
746
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/sdk-types",
|
|
3
|
-
"version": "1.13.
|
|
3
|
+
"version": "1.13.23",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Ronny Ringel",
|
|
@@ -61,5 +61,5 @@
|
|
|
61
61
|
"wallaby": {
|
|
62
62
|
"autoDetect": true
|
|
63
63
|
},
|
|
64
|
-
"falconPackageHash": "
|
|
64
|
+
"falconPackageHash": "90941886512ea0dcd74afea2c2fb42ed9c105d602dacab71dc8f38bf"
|
|
65
65
|
}
|