elasticlink 0.4.0-beta → 0.4.1-beta
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/package.json +2 -2
- package/dist/__tests__/aggregation-builder.test.d.ts +0 -2
- package/dist/__tests__/aggregation-builder.test.d.ts.map +0 -1
- package/dist/__tests__/aggregation-builder.test.js +0 -622
- package/dist/__tests__/bulk.test.d.ts +0 -2
- package/dist/__tests__/bulk.test.d.ts.map +0 -1
- package/dist/__tests__/bulk.test.js +0 -679
- package/dist/__tests__/examples.test.d.ts +0 -2
- package/dist/__tests__/examples.test.d.ts.map +0 -1
- package/dist/__tests__/examples.test.js +0 -2123
- package/dist/__tests__/fixtures/finance.d.ts +0 -58
- package/dist/__tests__/fixtures/finance.d.ts.map +0 -1
- package/dist/__tests__/fixtures/finance.js +0 -73
- package/dist/__tests__/fixtures/legal.d.ts +0 -14
- package/dist/__tests__/fixtures/legal.d.ts.map +0 -1
- package/dist/__tests__/fixtures/legal.js +0 -27
- package/dist/__tests__/fixtures/real-estate.d.ts +0 -31
- package/dist/__tests__/fixtures/real-estate.d.ts.map +0 -1
- package/dist/__tests__/fixtures/real-estate.js +0 -39
- package/dist/__tests__/index-management.test.d.ts +0 -2
- package/dist/__tests__/index-management.test.d.ts.map +0 -1
- package/dist/__tests__/index-management.test.js +0 -1699
- package/dist/__tests__/integration/aggregation.integration.test.d.ts +0 -2
- package/dist/__tests__/integration/aggregation.integration.test.d.ts.map +0 -1
- package/dist/__tests__/integration/aggregation.integration.test.js +0 -188
- package/dist/__tests__/integration/bulk.integration.test.d.ts +0 -2
- package/dist/__tests__/integration/bulk.integration.test.d.ts.map +0 -1
- package/dist/__tests__/integration/bulk.integration.test.js +0 -90
- package/dist/__tests__/integration/fixtures/finance.d.ts +0 -37
- package/dist/__tests__/integration/fixtures/finance.d.ts.map +0 -1
- package/dist/__tests__/integration/fixtures/finance.js +0 -58
- package/dist/__tests__/integration/fixtures/legal.d.ts +0 -38
- package/dist/__tests__/integration/fixtures/legal.d.ts.map +0 -1
- package/dist/__tests__/integration/fixtures/legal.js +0 -65
- package/dist/__tests__/integration/fixtures/real-estate.d.ts +0 -17
- package/dist/__tests__/integration/fixtures/real-estate.d.ts.map +0 -1
- package/dist/__tests__/integration/fixtures/real-estate.js +0 -28
- package/dist/__tests__/integration/helpers.d.ts +0 -15
- package/dist/__tests__/integration/helpers.d.ts.map +0 -1
- package/dist/__tests__/integration/helpers.js +0 -21
- package/dist/__tests__/integration/index-management.integration.test.d.ts +0 -2
- package/dist/__tests__/integration/index-management.integration.test.d.ts.map +0 -1
- package/dist/__tests__/integration/index-management.integration.test.js +0 -67
- package/dist/__tests__/integration/multi-search.integration.test.d.ts +0 -2
- package/dist/__tests__/integration/multi-search.integration.test.d.ts.map +0 -1
- package/dist/__tests__/integration/multi-search.integration.test.js +0 -49
- package/dist/__tests__/integration/query.integration.test.d.ts +0 -2
- package/dist/__tests__/integration/query.integration.test.d.ts.map +0 -1
- package/dist/__tests__/integration/query.integration.test.js +0 -101
- package/dist/__tests__/integration/suggester.integration.test.d.ts +0 -2
- package/dist/__tests__/integration/suggester.integration.test.d.ts.map +0 -1
- package/dist/__tests__/integration/suggester.integration.test.js +0 -42
- package/dist/__tests__/multi-search.test.d.ts +0 -2
- package/dist/__tests__/multi-search.test.d.ts.map +0 -1
- package/dist/__tests__/multi-search.test.js +0 -325
- package/dist/__tests__/query-builder-extensions.test.d.ts +0 -2
- package/dist/__tests__/query-builder-extensions.test.d.ts.map +0 -1
- package/dist/__tests__/query-builder-extensions.test.js +0 -436
- package/dist/__tests__/query-builder.test.d.ts +0 -2
- package/dist/__tests__/query-builder.test.d.ts.map +0 -1
- package/dist/__tests__/query-builder.test.js +0 -5482
- package/dist/__tests__/settings-presets.test.d.ts +0 -2
- package/dist/__tests__/settings-presets.test.d.ts.map +0 -1
- package/dist/__tests__/settings-presets.test.js +0 -183
- package/dist/__tests__/suggester.test.d.ts +0 -2
- package/dist/__tests__/suggester.test.d.ts.map +0 -1
- package/dist/__tests__/suggester.test.js +0 -1006
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import type { Infer } from '../../index.js';
|
|
2
|
-
export declare const instrumentMappings: Readonly<{
|
|
3
|
-
_fieldTypes: {
|
|
4
|
-
isin: "keyword";
|
|
5
|
-
name: "text";
|
|
6
|
-
asset_class: "keyword";
|
|
7
|
-
market_cap: "long";
|
|
8
|
-
sector: "keyword";
|
|
9
|
-
tags: "keyword";
|
|
10
|
-
listed_date: "date";
|
|
11
|
-
credit_rating: "float";
|
|
12
|
-
};
|
|
13
|
-
properties: Record<string, import("../../index-management.types.js").FieldMapping>;
|
|
14
|
-
_mappingOptions?: import("../../mapping.types.js").MappingOptions;
|
|
15
|
-
}>;
|
|
16
|
-
export type Instrument = Infer<typeof instrumentMappings>;
|
|
17
|
-
export declare const instrumentWithEmbeddingMappings: Readonly<{
|
|
18
|
-
_fieldTypes: {
|
|
19
|
-
isin: "keyword";
|
|
20
|
-
name: "text";
|
|
21
|
-
asset_class: "keyword";
|
|
22
|
-
market_cap: "long";
|
|
23
|
-
sector: "keyword";
|
|
24
|
-
tags: "keyword";
|
|
25
|
-
listed_date: "date";
|
|
26
|
-
credit_rating: "float";
|
|
27
|
-
embedding: "dense_vector";
|
|
28
|
-
prospectus_url: "keyword";
|
|
29
|
-
address: "text";
|
|
30
|
-
list_price: "float";
|
|
31
|
-
property_class: "keyword";
|
|
32
|
-
description: "text";
|
|
33
|
-
};
|
|
34
|
-
properties: Record<string, import("../../index-management.types.js").FieldMapping>;
|
|
35
|
-
_mappingOptions?: import("../../mapping.types.js").MappingOptions;
|
|
36
|
-
}>;
|
|
37
|
-
export type InstrumentWithEmbedding = Infer<typeof instrumentWithEmbeddingMappings>;
|
|
38
|
-
export declare const scoredInstrumentMappings: Readonly<{
|
|
39
|
-
_fieldTypes: {
|
|
40
|
-
isin: "keyword";
|
|
41
|
-
name: "text";
|
|
42
|
-
asset_class: "keyword";
|
|
43
|
-
market_cap: "long";
|
|
44
|
-
sector: "keyword";
|
|
45
|
-
tags: "keyword";
|
|
46
|
-
listed_date: "date";
|
|
47
|
-
credit_rating: "float";
|
|
48
|
-
list_price: "float";
|
|
49
|
-
address: "text";
|
|
50
|
-
property_class: "keyword";
|
|
51
|
-
description: "text";
|
|
52
|
-
};
|
|
53
|
-
properties: Record<string, import("../../index-management.types.js").FieldMapping>;
|
|
54
|
-
_mappingOptions?: import("../../mapping.types.js").MappingOptions;
|
|
55
|
-
}>;
|
|
56
|
-
export type ScoredInstrument = Infer<typeof scoredInstrumentMappings>;
|
|
57
|
-
export declare const INSTRUMENTS: Instrument[];
|
|
58
|
-
//# sourceMappingURL=finance.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"finance.d.ts","sourceRoot":"","sources":["../../../src/__tests__/fixtures/finance.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAE5C,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;EAS7B,CAAC;AAEH,MAAM,MAAM,UAAU,GAAG,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAE1D,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;EAe1C,CAAC;AAEH,MAAM,MAAM,uBAAuB,GAAG,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAC;AAEpF,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;EAanC,CAAC;AAEH,MAAM,MAAM,gBAAgB,GAAG,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAEtE,eAAO,MAAM,WAAW,EAAE,UAAU,EA+BnC,CAAC"}
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
import { mappings, keyword, text, long, float, date, denseVector } from '../../index.js';
|
|
2
|
-
export const instrumentMappings = mappings({
|
|
3
|
-
isin: keyword(),
|
|
4
|
-
name: text(),
|
|
5
|
-
asset_class: keyword(),
|
|
6
|
-
market_cap: long(),
|
|
7
|
-
sector: keyword(),
|
|
8
|
-
tags: keyword(),
|
|
9
|
-
listed_date: date(),
|
|
10
|
-
credit_rating: float()
|
|
11
|
-
});
|
|
12
|
-
export const instrumentWithEmbeddingMappings = mappings({
|
|
13
|
-
isin: keyword(),
|
|
14
|
-
name: text(),
|
|
15
|
-
asset_class: keyword(),
|
|
16
|
-
market_cap: long(),
|
|
17
|
-
sector: keyword(),
|
|
18
|
-
tags: keyword(),
|
|
19
|
-
listed_date: date(),
|
|
20
|
-
credit_rating: float(),
|
|
21
|
-
embedding: denseVector({ dims: 384 }),
|
|
22
|
-
prospectus_url: keyword(),
|
|
23
|
-
address: text(),
|
|
24
|
-
list_price: float(),
|
|
25
|
-
property_class: keyword(),
|
|
26
|
-
description: text()
|
|
27
|
-
});
|
|
28
|
-
export const scoredInstrumentMappings = mappings({
|
|
29
|
-
isin: keyword(),
|
|
30
|
-
name: text(),
|
|
31
|
-
asset_class: keyword(),
|
|
32
|
-
market_cap: long(),
|
|
33
|
-
sector: keyword(),
|
|
34
|
-
tags: keyword(),
|
|
35
|
-
listed_date: date(),
|
|
36
|
-
credit_rating: float(),
|
|
37
|
-
list_price: float(),
|
|
38
|
-
address: text(),
|
|
39
|
-
property_class: keyword(),
|
|
40
|
-
description: text()
|
|
41
|
-
});
|
|
42
|
-
export const INSTRUMENTS = [
|
|
43
|
-
{
|
|
44
|
-
isin: 'US0378331005',
|
|
45
|
-
name: 'Apple Inc',
|
|
46
|
-
asset_class: 'equity',
|
|
47
|
-
market_cap: 3_100_000_000_000,
|
|
48
|
-
sector: 'technology',
|
|
49
|
-
tags: 'large-cap',
|
|
50
|
-
listed_date: '1980-12-12',
|
|
51
|
-
credit_rating: 4.8
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
isin: 'US38259P5089',
|
|
55
|
-
name: 'Alphabet Inc',
|
|
56
|
-
asset_class: 'equity',
|
|
57
|
-
market_cap: 1_900_000_000_000,
|
|
58
|
-
sector: 'technology',
|
|
59
|
-
tags: 'large-cap',
|
|
60
|
-
listed_date: '2004-08-19',
|
|
61
|
-
credit_rating: 4.6
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
isin: 'US4592001014',
|
|
65
|
-
name: 'IBM Corp',
|
|
66
|
-
asset_class: 'equity',
|
|
67
|
-
market_cap: 160_000_000_000,
|
|
68
|
-
sector: 'technology',
|
|
69
|
-
tags: 'dividend',
|
|
70
|
-
listed_date: '1916-01-01',
|
|
71
|
-
credit_rating: 3.9
|
|
72
|
-
}
|
|
73
|
-
];
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { Infer } from '../../index.js';
|
|
2
|
-
export declare const matterMappings: Readonly<{
|
|
3
|
-
_fieldTypes: {
|
|
4
|
-
matter_id: "keyword";
|
|
5
|
-
title: "text";
|
|
6
|
-
practice_area: "keyword";
|
|
7
|
-
billing_rate: "float";
|
|
8
|
-
};
|
|
9
|
-
properties: Record<string, import("../../index-management.types.js").FieldMapping>;
|
|
10
|
-
_mappingOptions?: import("../../mapping.types.js").MappingOptions;
|
|
11
|
-
}>;
|
|
12
|
-
export type Matter = Infer<typeof matterMappings>;
|
|
13
|
-
export declare const MATTERS: Matter[];
|
|
14
|
-
//# sourceMappingURL=legal.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"legal.d.ts","sourceRoot":"","sources":["../../../src/__tests__/fixtures/legal.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAE5C,eAAO,MAAM,cAAc;;;;;;;;;EAKzB,CAAC;AAEH,MAAM,MAAM,MAAM,GAAG,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAElD,eAAO,MAAM,OAAO,EAAE,MAAM,EAmB3B,CAAC"}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { mappings, keyword, text, float } from '../../index.js';
|
|
2
|
-
export const matterMappings = mappings({
|
|
3
|
-
matter_id: keyword(),
|
|
4
|
-
title: text(),
|
|
5
|
-
practice_area: keyword(),
|
|
6
|
-
billing_rate: float()
|
|
7
|
-
});
|
|
8
|
-
export const MATTERS = [
|
|
9
|
-
{
|
|
10
|
-
matter_id: 'M-1001',
|
|
11
|
-
title: 'Mergers & Acquisitions Advisory',
|
|
12
|
-
practice_area: 'corporate',
|
|
13
|
-
billing_rate: 850
|
|
14
|
-
},
|
|
15
|
-
{
|
|
16
|
-
matter_id: 'M-1002',
|
|
17
|
-
title: 'SEC Compliance Review',
|
|
18
|
-
practice_area: 'securities',
|
|
19
|
-
billing_rate: 725
|
|
20
|
-
},
|
|
21
|
-
{
|
|
22
|
-
matter_id: 'M-1003',
|
|
23
|
-
title: 'IP Portfolio Audit',
|
|
24
|
-
practice_area: 'intellectual-property',
|
|
25
|
-
billing_rate: 650
|
|
26
|
-
}
|
|
27
|
-
];
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import type { Infer } from '../../index.js';
|
|
2
|
-
export declare const listingMappings: Readonly<{
|
|
3
|
-
_fieldTypes: {
|
|
4
|
-
property_class: "keyword";
|
|
5
|
-
address: "text";
|
|
6
|
-
list_price: "float";
|
|
7
|
-
sqft: "long";
|
|
8
|
-
};
|
|
9
|
-
properties: Record<string, import("../../index-management.types.js").FieldMapping>;
|
|
10
|
-
_mappingOptions?: import("../../mapping.types.js").MappingOptions;
|
|
11
|
-
}>;
|
|
12
|
-
export type Listing = Infer<typeof listingMappings>;
|
|
13
|
-
export declare const listingDetailMappings: Readonly<{
|
|
14
|
-
_fieldTypes: {
|
|
15
|
-
property_class: "keyword";
|
|
16
|
-
address: "text";
|
|
17
|
-
list_price: "float";
|
|
18
|
-
sqft: "long";
|
|
19
|
-
location: "geo_point";
|
|
20
|
-
listed_date: "date";
|
|
21
|
-
embedding: "dense_vector";
|
|
22
|
-
title: "text";
|
|
23
|
-
description: "text";
|
|
24
|
-
cap_rate: "float";
|
|
25
|
-
};
|
|
26
|
-
properties: Record<string, import("../../index-management.types.js").FieldMapping>;
|
|
27
|
-
_mappingOptions?: import("../../mapping.types.js").MappingOptions;
|
|
28
|
-
}>;
|
|
29
|
-
export type ListingDetail = Infer<typeof listingDetailMappings>;
|
|
30
|
-
export declare const LISTINGS: Listing[];
|
|
31
|
-
//# sourceMappingURL=real-estate.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"real-estate.d.ts","sourceRoot":"","sources":["../../../src/__tests__/fixtures/real-estate.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAE5C,eAAO,MAAM,eAAe;;;;;;;;;EAK1B,CAAC;AAEH,MAAM,MAAM,OAAO,GAAG,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAEpD,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;EAWhC,CAAC;AAEH,MAAM,MAAM,aAAa,GAAG,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAEhE,eAAO,MAAM,QAAQ,EAAE,OAAO,EAmB7B,CAAC"}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { mappings, keyword, text, float, long, date, geoPoint, denseVector } from '../../index.js';
|
|
2
|
-
export const listingMappings = mappings({
|
|
3
|
-
property_class: keyword(),
|
|
4
|
-
address: text(),
|
|
5
|
-
list_price: float(),
|
|
6
|
-
sqft: long()
|
|
7
|
-
});
|
|
8
|
-
export const listingDetailMappings = mappings({
|
|
9
|
-
property_class: keyword(),
|
|
10
|
-
address: text(),
|
|
11
|
-
list_price: float(),
|
|
12
|
-
sqft: long(),
|
|
13
|
-
location: geoPoint(),
|
|
14
|
-
listed_date: date(),
|
|
15
|
-
embedding: denseVector({ dims: 384 }),
|
|
16
|
-
title: text(),
|
|
17
|
-
description: text(),
|
|
18
|
-
cap_rate: float()
|
|
19
|
-
});
|
|
20
|
-
export const LISTINGS = [
|
|
21
|
-
{
|
|
22
|
-
property_class: 'condo',
|
|
23
|
-
address: '200 Harbor View Dr',
|
|
24
|
-
list_price: 1_250_000,
|
|
25
|
-
sqft: 1100
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
property_class: 'co-op',
|
|
29
|
-
address: '845 Park Avenue',
|
|
30
|
-
list_price: 2_400_000,
|
|
31
|
-
sqft: 1850
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
property_class: 'townhouse',
|
|
35
|
-
address: '12 Park Terrace',
|
|
36
|
-
list_price: 3_100_000,
|
|
37
|
-
sqft: 2800
|
|
38
|
-
}
|
|
39
|
-
];
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index-management.test.d.ts","sourceRoot":"","sources":["../../src/__tests__/index-management.test.ts"],"names":[],"mappings":""}
|