@gen3/core 0.11.48 → 0.11.50
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/dist/cjs/index.js +9 -3
- package/dist/cjs/index.js.map +1 -1
- package/dist/dts/features/filters/types.d.ts +6 -0
- package/dist/dts/features/filters/types.d.ts.map +1 -1
- package/dist/dts/features/guppy/range.d.ts +25 -0
- package/dist/dts/features/guppy/range.d.ts.map +1 -0
- package/dist/dts/features/guppy/tests/range.unit.test.d.ts +2 -0
- package/dist/dts/features/guppy/tests/range.unit.test.d.ts.map +1 -0
- package/dist/dts/types/index.d.ts +2 -108
- package/dist/dts/types/index.d.ts.map +1 -1
- package/dist/dts/types/ranges.d.ts +11 -0
- package/dist/dts/types/ranges.d.ts.map +1 -0
- package/dist/dts/types/types.d.ts +109 -0
- package/dist/dts/types/types.d.ts.map +1 -0
- package/dist/esm/index.js +9 -4
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +19 -2
- package/package.json +2 -2
package/dist/cjs/index.js
CHANGED
|
@@ -880,6 +880,11 @@ const isFilterSet = (input)=>{
|
|
|
880
880
|
}
|
|
881
881
|
return true;
|
|
882
882
|
};
|
|
883
|
+
/**
|
|
884
|
+
* Type guard for Includes
|
|
885
|
+
* @param o - operator to check
|
|
886
|
+
* @category Filters
|
|
887
|
+
*/ const isIncludes = (o)=>o.operator === 'includes' || o.operator === 'in';
|
|
883
888
|
const isUnion = (value)=>{
|
|
884
889
|
return typeof value === 'object' && value !== null && value.operator === 'or' && Array.isArray(value.operands);
|
|
885
890
|
};
|
|
@@ -2443,7 +2448,7 @@ const explorerTags = guppyApi.enhanceEndpoints({
|
|
|
2443
2448
|
// this is to make it easier to work with in the table component
|
|
2444
2449
|
// currently only supports one level of nesting
|
|
2445
2450
|
// also puts original into subRows for dropdown viewing
|
|
2446
|
-
const tempResponse = response.data[`${args
|
|
2451
|
+
const tempResponse = response.data[`${args?.indexPrefix ?? ''}${args.type}`].map((item)=>{
|
|
2447
2452
|
const tempItem = item;
|
|
2448
2453
|
for(let i = 0; i < containsDotsUniqueBase.length; i++){
|
|
2449
2454
|
const basePart = containsDotsUniqueBase[i];
|
|
@@ -2468,7 +2473,7 @@ const explorerTags = guppyApi.enhanceEndpoints({
|
|
|
2468
2473
|
return {
|
|
2469
2474
|
data: {
|
|
2470
2475
|
_aggregation: response.data._aggregation,
|
|
2471
|
-
[`${args
|
|
2476
|
+
[`${args?.indexPrefix ?? ''}${args.type}`]: tempResponse
|
|
2472
2477
|
}
|
|
2473
2478
|
};
|
|
2474
2479
|
}
|
|
@@ -2607,7 +2612,7 @@ const explorerTags = guppyApi.enhanceEndpoints({
|
|
|
2607
2612
|
};
|
|
2608
2613
|
},
|
|
2609
2614
|
transformResponse: (response, _meta, args)=>{
|
|
2610
|
-
return response[`${args
|
|
2615
|
+
return response[`${args?.indexPrefix ?? ''}_mapping`];
|
|
2611
2616
|
}
|
|
2612
2617
|
}),
|
|
2613
2618
|
getSharedFieldsForIndex: builder.query({
|
|
@@ -6089,6 +6094,7 @@ exports.isHistogramDataArrayAnEnum = isHistogramDataArrayAnEnum;
|
|
|
6089
6094
|
exports.isHistogramDataCollection = isHistogramDataCollection;
|
|
6090
6095
|
exports.isHistogramRangeData = isHistogramRangeData;
|
|
6091
6096
|
exports.isHttpStatusError = isHttpStatusError;
|
|
6097
|
+
exports.isIncludes = isIncludes;
|
|
6092
6098
|
exports.isIndexedFilterSetEmpty = isIndexedFilterSetEmpty;
|
|
6093
6099
|
exports.isIntersection = isIntersection;
|
|
6094
6100
|
exports.isIntersectionOrUnion = isIntersectionOrUnion;
|