@dcupl/common 0.0.72-beta.2 → 0.0.72
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/lib-cjs/getFacetEntries.d.ts +2 -2
- package/dist/lib-cjs/getFacetEntries.js +6 -6
- package/dist/lib-cjs/getFacetEntries.js.map +1 -1
- package/dist/lib-cjs/tsconfig-cjs.tsbuildinfo +1 -1
- package/dist/lib-cjs/types/filter.types.d.ts +2 -0
- package/dist/lib-cjs/types/internal.types.d.ts +3 -0
- package/dist/lib-cjs/types/list.types.d.ts +11 -0
- package/dist/lib-cjs/types/model.types.d.ts +11 -0
- package/dist/lib-cjs/types/model.types.js +3 -0
- package/dist/lib-cjs/types/model.types.js.map +1 -1
- package/dist/lib-esm/getFacetEntries.d.ts +2 -2
- package/dist/lib-esm/getFacetEntries.js +6 -6
- package/dist/lib-esm/getFacetEntries.js.map +1 -1
- package/dist/lib-esm/tsconfig.tsbuildinfo +1 -1
- package/dist/lib-esm/types/filter.types.d.ts +2 -0
- package/dist/lib-esm/types/internal.types.d.ts +3 -0
- package/dist/lib-esm/types/list.types.d.ts +11 -0
- package/dist/lib-esm/types/model.types.d.ts +11 -0
- package/dist/lib-esm/types/model.types.js +2 -1
- package/dist/lib-esm/types/model.types.js.map +1 -1
- package/package.json +1 -1
|
@@ -50,6 +50,8 @@ export declare type FilterEntryDateRange = {
|
|
|
50
50
|
max: Date;
|
|
51
51
|
};
|
|
52
52
|
export declare type FilterItemType = 'reference' | 'number' | 'text' | 'date';
|
|
53
|
+
export declare type FilterItemPropertyType = 'number' | 'text' | 'date';
|
|
54
|
+
export declare type FilterItemReferenceType = 'reference';
|
|
53
55
|
export declare type FilterItemBase = {
|
|
54
56
|
key: string;
|
|
55
57
|
attributeKey: string;
|
|
@@ -1,2 +1,5 @@
|
|
|
1
|
+
import { ListItem } from './data.types';
|
|
1
2
|
export declare type InverseIndexReferenceMap = Map<string, InverseIndexValuesMap>;
|
|
2
3
|
export declare type InverseIndexValuesMap = Map<string, string[]>;
|
|
4
|
+
export declare type InverseIndexDataMap = Map<string, InverseIndexDataValuesMap>;
|
|
5
|
+
export declare type InverseIndexDataValuesMap = Map<string, ListItem>;
|
|
@@ -33,6 +33,17 @@ export declare type DcuplListOptions<ModelNames extends string = string> = {
|
|
|
33
33
|
listItemKeys?: string[];
|
|
34
34
|
empty?: boolean;
|
|
35
35
|
};
|
|
36
|
+
export declare type DcuplRangeOptions = {
|
|
37
|
+
propertyKey: string;
|
|
38
|
+
filterKey?: string;
|
|
39
|
+
};
|
|
40
|
+
export declare type DcuplFacetOptions = {
|
|
41
|
+
attributeKey: string;
|
|
42
|
+
filterKey?: string;
|
|
43
|
+
count?: number;
|
|
44
|
+
excludeZeros?: boolean;
|
|
45
|
+
calculateFacets?: boolean;
|
|
46
|
+
};
|
|
36
47
|
export declare type ListMetadata = {
|
|
37
48
|
key: string;
|
|
38
49
|
currentSize: number;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { RawItem } from '.';
|
|
2
2
|
export declare type PropertyType = 'string' | 'int' | 'float' | 'json' | 'date' | 'any' | 'Array<string>' | 'Array<int>' | 'Array<float>' | 'Array<date>';
|
|
3
|
+
export declare const NumberPropertyTypes: PropertyType[];
|
|
4
|
+
export declare const DatePropertyTypes: PropertyType[];
|
|
3
5
|
/**
|
|
4
6
|
* must be singleValued or multiValued
|
|
5
7
|
* singleValued contains only one key to an object
|
|
@@ -14,6 +16,11 @@ export declare type PropertyType = 'string' | 'int' | 'float' | 'json' | 'date'
|
|
|
14
16
|
*/
|
|
15
17
|
export declare type ReferenceType = 'singleValued' | 'multiValued';
|
|
16
18
|
export declare type AttributeType = PropertyType | ReferenceType;
|
|
19
|
+
export declare type ModelMetadata = {
|
|
20
|
+
name: string;
|
|
21
|
+
description?: string;
|
|
22
|
+
[key: string]: any;
|
|
23
|
+
};
|
|
17
24
|
export declare type FilterComparisonType = 'equal' | 'equalIgnoreCase' | 'contains' | 'containsIgnoreCase' | 'containsIgnoreCaseAndWhitespace';
|
|
18
25
|
/**
|
|
19
26
|
* A property is a quality or characteristic belonging an object.
|
|
@@ -36,6 +43,7 @@ declare type PropertyBase = {
|
|
|
36
43
|
remoteProperty: string;
|
|
37
44
|
separator?: string;
|
|
38
45
|
};
|
|
46
|
+
meta?: ModelMetadata;
|
|
39
47
|
};
|
|
40
48
|
export declare type PropertyInt = PropertyBase & {
|
|
41
49
|
type: 'int' | 'Array<int>';
|
|
@@ -126,6 +134,7 @@ export declare type ReferenceBase = {
|
|
|
126
134
|
filter?: boolean | ReferenceFilterDefinition;
|
|
127
135
|
validity?: ReferenceValidity;
|
|
128
136
|
aggregate?: boolean;
|
|
137
|
+
meta?: ModelMetadata;
|
|
129
138
|
};
|
|
130
139
|
export declare type AggregatedReference = ReferenceBase & {
|
|
131
140
|
aggregate: true;
|
|
@@ -224,6 +233,7 @@ export declare type ModelDefinition<ModelNames extends string = string> = {
|
|
|
224
233
|
autoGenerateKey?: boolean;
|
|
225
234
|
keyProperty?: string;
|
|
226
235
|
valueMappings?: ValueMappingConfig[];
|
|
236
|
+
meta?: ModelMetadata;
|
|
227
237
|
};
|
|
228
238
|
export declare type DcuplViewType = 'section';
|
|
229
239
|
/**
|
|
@@ -251,6 +261,7 @@ export declare type ViewDefinition = {
|
|
|
251
261
|
*/
|
|
252
262
|
primaryAttribute: string;
|
|
253
263
|
aggregates: string[];
|
|
264
|
+
meta?: ModelMetadata;
|
|
254
265
|
};
|
|
255
266
|
/**
|
|
256
267
|
* Container for ModelDescriptions & Views
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model.types.js","sourceRoot":"","sources":["../../../src/types/model.types.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"model.types.js","sourceRoot":"","sources":["../../../src/types/model.types.ts"],"names":[],"mappings":"AAcA,MAAM,CAAC,IAAM,mBAAmB,GAAmB,CAAC,KAAK,EAAE,OAAO,EAAE,YAAY,EAAE,cAAc,CAAC,CAAC;AAClG,MAAM,CAAC,IAAM,iBAAiB,GAAmB,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC"}
|