refactor: use core supplied mappings

This commit is contained in:
Wieland Schöbl
2021-09-03 15:17:15 +00:00
committed by Rainer Killinger
parent 614a1b1e9b
commit 43a89ec4f2
22 changed files with 1622 additions and 1762 deletions

View File

@@ -18,14 +18,16 @@ import {
ESAggTypeFilter,
ESNestedAggregation,
ESTermsFilter
} from '@openstapps/core-tools/lib/mappings/aggregation-definitions';
import { expect } from "chai";
} from '@openstapps/es-mapping-generator/src/types/aggregation';
import {expect} from "chai";
import {
BucketAggregation,
isBucketAggregation, isESAggMatchAllFilter, isESNestedAggregation, isESTermsFilter,
isNestedAggregation,
NestedAggregation
} from '../../../src/storage/elasticsearch/common';
isBucketAggregation,
isESTermsFilter,
isESAggMatchAllFilter,
isESNestedAggregation
} from '../../../lib/storage/elasticsearch/types/guards';
import {BucketAggregation, NestedAggregation} from '../../../src/storage/elasticsearch/types/elasticsearch';
describe('Common', function () {
const bucketAggregation: BucketAggregation = {buckets: []};