@dcupl/common 1.7.2 → 1.8.1
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/common.js +1 -0
- package/dist/lib-esm/analytics.controller.js +2 -2
- package/dist/lib-esm/analytics.controller.js.map +1 -1
- package/dist/lib-esm/cache.controller.js +3 -3
- package/dist/lib-esm/cache.controller.js.map +1 -1
- package/dist/lib-esm/changeDetection.js +1 -1
- package/dist/lib-esm/changeDetection.js.map +1 -1
- package/dist/lib-esm/dependency-graph.d.ts +18 -0
- package/dist/lib-esm/dependency-graph.js +252 -0
- package/dist/lib-esm/dependency-graph.js.map +1 -0
- package/dist/lib-esm/getAggregation.js +54 -24
- package/dist/lib-esm/getAggregation.js.map +1 -1
- package/dist/lib-esm/getFacets.js +1 -1
- package/dist/lib-esm/getFacets.js.map +1 -1
- package/dist/lib-esm/index.d.ts +2 -0
- package/dist/lib-esm/index.js +2 -0
- package/dist/lib-esm/index.js.map +1 -1
- package/dist/lib-esm/indices.controller.js +2 -2
- package/dist/lib-esm/indices.controller.js.map +1 -1
- package/dist/lib-esm/object-hash.d.ts +1 -0
- package/dist/lib-esm/object-hash.js +33 -0
- package/dist/lib-esm/object-hash.js.map +1 -0
- package/dist/lib-esm/query-builder.js +1 -1
- package/dist/lib-esm/query-builder.js.map +1 -1
- package/dist/lib-esm/queryData.js +7 -2
- package/dist/lib-esm/queryData.js.map +1 -1
- package/dist/lib-esm/template-parser.d.ts +6 -0
- package/dist/lib-esm/template-parser.js +21 -0
- package/dist/lib-esm/template-parser.js.map +1 -0
- package/dist/lib-esm/types/workflow/workflow.types.d.ts +27 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +6 -8
- package/dist/lib-cjs/analytics.controller.d.ts +0 -85
- package/dist/lib-cjs/analytics.controller.js +0 -121
- package/dist/lib-cjs/analytics.controller.js.map +0 -1
- package/dist/lib-cjs/cache.controller.d.ts +0 -11
- package/dist/lib-cjs/cache.controller.js +0 -46
- package/dist/lib-cjs/cache.controller.js.map +0 -1
- package/dist/lib-cjs/changeDetection.d.ts +0 -40
- package/dist/lib-cjs/changeDetection.js +0 -148
- package/dist/lib-cjs/changeDetection.js.map +0 -1
- package/dist/lib-cjs/computeSuggestions.d.ts +0 -3
- package/dist/lib-cjs/computeSuggestions.js +0 -79
- package/dist/lib-cjs/computeSuggestions.js.map +0 -1
- package/dist/lib-cjs/getAggregation.d.ts +0 -3
- package/dist/lib-cjs/getAggregation.js +0 -249
- package/dist/lib-cjs/getAggregation.js.map +0 -1
- package/dist/lib-cjs/getFacets.d.ts +0 -3
- package/dist/lib-cjs/getFacets.js +0 -138
- package/dist/lib-cjs/getFacets.js.map +0 -1
- package/dist/lib-cjs/helper.d.ts +0 -10
- package/dist/lib-cjs/helper.js +0 -100
- package/dist/lib-cjs/helper.js.map +0 -1
- package/dist/lib-cjs/index.d.ts +0 -16
- package/dist/lib-cjs/index.js +0 -33
- package/dist/lib-cjs/index.js.map +0 -1
- package/dist/lib-cjs/indices.controller.d.ts +0 -13
- package/dist/lib-cjs/indices.controller.js +0 -171
- package/dist/lib-cjs/indices.controller.js.map +0 -1
- package/dist/lib-cjs/performance.d.ts +0 -7
- package/dist/lib-cjs/performance.js +0 -36
- package/dist/lib-cjs/performance.js.map +0 -1
- package/dist/lib-cjs/pivot.d.ts +0 -28
- package/dist/lib-cjs/pivot.js +0 -292
- package/dist/lib-cjs/pivot.js.map +0 -1
- package/dist/lib-cjs/property-parser.d.ts +0 -5
- package/dist/lib-cjs/property-parser.js +0 -115
- package/dist/lib-cjs/property-parser.js.map +0 -1
- package/dist/lib-cjs/query-builder.d.ts +0 -27
- package/dist/lib-cjs/query-builder.js +0 -252
- package/dist/lib-cjs/query-builder.js.map +0 -1
- package/dist/lib-cjs/query.helper.d.ts +0 -6
- package/dist/lib-cjs/query.helper.js +0 -180
- package/dist/lib-cjs/query.helper.js.map +0 -1
- package/dist/lib-cjs/queryData.d.ts +0 -18
- package/dist/lib-cjs/queryData.js +0 -462
- package/dist/lib-cjs/queryData.js.map +0 -1
- package/dist/lib-cjs/script.controller.d.ts +0 -14
- package/dist/lib-cjs/script.controller.js +0 -82
- package/dist/lib-cjs/script.controller.js.map +0 -1
- package/dist/lib-cjs/types/aggregation.types.d.ts +0 -48
- package/dist/lib-cjs/types/aggregation.types.js +0 -3
- package/dist/lib-cjs/types/aggregation.types.js.map +0 -1
- package/dist/lib-cjs/types/api/file.types.d.ts +0 -36
- package/dist/lib-cjs/types/api/file.types.js +0 -3
- package/dist/lib-cjs/types/api/file.types.js.map +0 -1
- package/dist/lib-cjs/types/app-loader.types.d.ts +0 -219
- package/dist/lib-cjs/types/app-loader.types.js +0 -3
- package/dist/lib-cjs/types/app-loader.types.js.map +0 -1
- package/dist/lib-cjs/types/data.types.d.ts +0 -21
- package/dist/lib-cjs/types/data.types.js +0 -3
- package/dist/lib-cjs/types/data.types.js.map +0 -1
- package/dist/lib-cjs/types/dcupl.types.d.ts +0 -121
- package/dist/lib-cjs/types/dcupl.types.js +0 -3
- package/dist/lib-cjs/types/dcupl.types.js.map +0 -1
- package/dist/lib-cjs/types/facets.types.d.ts +0 -19
- package/dist/lib-cjs/types/facets.types.js +0 -3
- package/dist/lib-cjs/types/facets.types.js.map +0 -1
- package/dist/lib-cjs/types/filter.types.d.ts +0 -121
- package/dist/lib-cjs/types/filter.types.js +0 -3
- package/dist/lib-cjs/types/filter.types.js.map +0 -1
- package/dist/lib-cjs/types/group-by.types.d.ts +0 -13
- package/dist/lib-cjs/types/group-by.types.js +0 -3
- package/dist/lib-cjs/types/group-by.types.js.map +0 -1
- package/dist/lib-cjs/types/index.d.ts +0 -20
- package/dist/lib-cjs/types/index.js +0 -37
- package/dist/lib-cjs/types/index.js.map +0 -1
- package/dist/lib-cjs/types/internal.types.d.ts +0 -5
- package/dist/lib-cjs/types/internal.types.js +0 -3
- package/dist/lib-cjs/types/internal.types.js.map +0 -1
- package/dist/lib-cjs/types/list.types.d.ts +0 -49
- package/dist/lib-cjs/types/list.types.js +0 -3
- package/dist/lib-cjs/types/list.types.js.map +0 -1
- package/dist/lib-cjs/types/model.types.d.ts +0 -358
- package/dist/lib-cjs/types/model.types.js +0 -19
- package/dist/lib-cjs/types/model.types.js.map +0 -1
- package/dist/lib-cjs/types/projection.types.d.ts +0 -20
- package/dist/lib-cjs/types/projection.types.js +0 -3
- package/dist/lib-cjs/types/projection.types.js.map +0 -1
- package/dist/lib-cjs/types/quality.types.d.ts +0 -72
- package/dist/lib-cjs/types/quality.types.js +0 -3
- package/dist/lib-cjs/types/quality.types.js.map +0 -1
- package/dist/lib-cjs/types/query.types.d.ts +0 -80
- package/dist/lib-cjs/types/query.types.js +0 -15
- package/dist/lib-cjs/types/query.types.js.map +0 -1
- package/dist/lib-cjs/types/rest-api/rest-api.types.d.ts +0 -118
- package/dist/lib-cjs/types/rest-api/rest-api.types.js +0 -3
- package/dist/lib-cjs/types/rest-api/rest-api.types.js.map +0 -1
- package/dist/lib-cjs/types/runner/runner.types.d.ts +0 -22
- package/dist/lib-cjs/types/runner/runner.types.js +0 -3
- package/dist/lib-cjs/types/runner/runner.types.js.map +0 -1
- package/dist/lib-cjs/types/section.types.d.ts +0 -16
- package/dist/lib-cjs/types/section.types.js +0 -3
- package/dist/lib-cjs/types/section.types.js.map +0 -1
- package/dist/lib-cjs/types/suggestion.types.d.ts +0 -28
- package/dist/lib-cjs/types/suggestion.types.js +0 -3
- package/dist/lib-cjs/types/suggestion.types.js.map +0 -1
- package/dist/lib-cjs/types/testing.types.d.ts +0 -68
- package/dist/lib-cjs/types/testing.types.js +0 -3
- package/dist/lib-cjs/types/testing.types.js.map +0 -1
- package/dist/lib-cjs/types/workflow/workflow.types.d.ts +0 -341
- package/dist/lib-cjs/types/workflow/workflow.types.js +0 -3
- package/dist/lib-cjs/types/workflow/workflow.types.js.map +0 -1
- package/dist/tsconfig-cjs.tsbuildinfo +0 -1
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
export declare namespace ApiFiles {
|
|
2
|
-
/**
|
|
3
|
-
* FILES CHANGED EVENT
|
|
4
|
-
*/
|
|
5
|
-
type EventType = 'change' | 'rename';
|
|
6
|
-
type EventTriggerType = 'user' | 'dev-server';
|
|
7
|
-
type ChangedData = {
|
|
8
|
-
event: EventType;
|
|
9
|
-
path: string;
|
|
10
|
-
fileName?: string;
|
|
11
|
-
};
|
|
12
|
-
type ChangedEvent = {
|
|
13
|
-
data: ChangedData;
|
|
14
|
-
projectId: string;
|
|
15
|
-
triggerType: EventTriggerType;
|
|
16
|
-
triggerUid?: string;
|
|
17
|
-
};
|
|
18
|
-
type InternalEvent = {
|
|
19
|
-
data: ChangedEvent;
|
|
20
|
-
};
|
|
21
|
-
/**
|
|
22
|
-
* LIST FILES RESPONSE
|
|
23
|
-
*/
|
|
24
|
-
type TreeItemType = 'file' | 'dir' | 'other';
|
|
25
|
-
type FileTreeItem = {
|
|
26
|
-
path: string;
|
|
27
|
-
fullPath: string;
|
|
28
|
-
type: TreeItemType;
|
|
29
|
-
root: boolean;
|
|
30
|
-
children: FileTreeItem[];
|
|
31
|
-
};
|
|
32
|
-
type ListFilesResponse = {
|
|
33
|
-
list: string[];
|
|
34
|
-
nested: FileTreeItem[];
|
|
35
|
-
};
|
|
36
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"file.types.js","sourceRoot":"","sources":["../../../../src/types/api/file.types.ts"],"names":[],"mappings":""}
|
|
@@ -1,219 +0,0 @@
|
|
|
1
|
-
import { DataContainerType } from './';
|
|
2
|
-
export declare namespace AppLoaderConfiguration {
|
|
3
|
-
/**
|
|
4
|
-
* The base structure for configuration file contains all resources, evnironments and headers
|
|
5
|
-
* The process options define how this file is processed
|
|
6
|
-
*
|
|
7
|
-
* @defaultSnippets { "label": "Default Loader Configuration", "properties": ["applications:json:[{\"key\":\"default\", \"name\":\"My Application\"}]", "resources:json:[{\"url\":\"${baseUrl}/models/my-model.dcupl.json\", \"type\":\"model\"},{\"url\":\"${baseUrl}/data/some-data.json\", \"type\":\"data\", \"model\":\"MyModel\"}]"] }
|
|
8
|
-
*/
|
|
9
|
-
export type ProjectConfiguration = {
|
|
10
|
-
resources: Resource[];
|
|
11
|
-
environments?: Environment[];
|
|
12
|
-
applications?: ApplicationConfiguration[];
|
|
13
|
-
options?: Options;
|
|
14
|
-
};
|
|
15
|
-
type StringOrStringArray = (string | string[])[];
|
|
16
|
-
/**
|
|
17
|
-
* @defaultSnippets { "label": "Application", "properties": ["key", "name", "description", "resourceTags:array"] }
|
|
18
|
-
*/
|
|
19
|
-
export type ApplicationConfiguration = {
|
|
20
|
-
key: string;
|
|
21
|
-
name?: string;
|
|
22
|
-
description?: string;
|
|
23
|
-
resourceTags?: StringOrStringArray;
|
|
24
|
-
variables?: Variable[];
|
|
25
|
-
};
|
|
26
|
-
export type ProcessOptions = {
|
|
27
|
-
applicationKey?: string;
|
|
28
|
-
environmentKeys?: string[];
|
|
29
|
-
resourceTags?: StringOrStringArray;
|
|
30
|
-
variables?: Variable[];
|
|
31
|
-
options?: Options;
|
|
32
|
-
};
|
|
33
|
-
export type FetchOptions = {
|
|
34
|
-
/**
|
|
35
|
-
* The base URL to use for all resources
|
|
36
|
-
* If not set the baseUrl points to the draft version of the CDN
|
|
37
|
-
*/
|
|
38
|
-
baseUrl?: string;
|
|
39
|
-
/**
|
|
40
|
-
* The name of the loader file to use
|
|
41
|
-
* If not set the loader file is named 'dcupl.lc.json'
|
|
42
|
-
*/
|
|
43
|
-
loaderFileName?: string;
|
|
44
|
-
/**
|
|
45
|
-
* Custom Headers used for fetching the loader file
|
|
46
|
-
* For example authorization headers
|
|
47
|
-
*/
|
|
48
|
-
headers?: AppLoaderConfiguration.AppLoaderConfigHeader[];
|
|
49
|
-
/**
|
|
50
|
-
* If set to false the fetched config is not applied to the loader but only returned
|
|
51
|
-
*/
|
|
52
|
-
skipApply?: boolean;
|
|
53
|
-
};
|
|
54
|
-
export type Options = {
|
|
55
|
-
defaultDataContainerUpdateType?: DataContainerType;
|
|
56
|
-
csvParserOptions?: CsvParserOptions;
|
|
57
|
-
missingModelHandling?: {
|
|
58
|
-
autoGenerateProperties?: boolean;
|
|
59
|
-
};
|
|
60
|
-
};
|
|
61
|
-
export type CsvParserOptions = {
|
|
62
|
-
delimiter?: string;
|
|
63
|
-
quoteChar?: string;
|
|
64
|
-
escapeChar?: string;
|
|
65
|
-
};
|
|
66
|
-
export type TransformerType = 'rawFileTransformer' | 'parsedFileTransformer';
|
|
67
|
-
/**
|
|
68
|
-
* @defaultSnippets { "label": "Environment", "properties": ["key", "description", "variables:array", "headers:array", "queryParams:array"] }
|
|
69
|
-
*/
|
|
70
|
-
export type Environment = {
|
|
71
|
-
key: string;
|
|
72
|
-
description?: string;
|
|
73
|
-
variables?: Variable[];
|
|
74
|
-
headers?: HttpHeaderConfiguration[];
|
|
75
|
-
queryParams?: HttpQueryParamConfiguration[];
|
|
76
|
-
};
|
|
77
|
-
/**
|
|
78
|
-
* @defaultSnippets { "label": "Variable", "properties": ["key", "description", "value:string"] }
|
|
79
|
-
*/
|
|
80
|
-
export type Variable<T = string> = {
|
|
81
|
-
key: T;
|
|
82
|
-
description?: string;
|
|
83
|
-
value: string | undefined;
|
|
84
|
-
};
|
|
85
|
-
export type EnvironmentVariableAsObject = Record<string, any>;
|
|
86
|
-
/**
|
|
87
|
-
* @defaultSnippets { "label": "Query Parameter Configuration", "properties": ["key", "description", "value:string", "tags:array"] }
|
|
88
|
-
*/
|
|
89
|
-
export type HttpQueryParamConfiguration = {
|
|
90
|
-
key: string;
|
|
91
|
-
description?: string;
|
|
92
|
-
value: string;
|
|
93
|
-
tags?: string[];
|
|
94
|
-
condition?: {
|
|
95
|
-
applyIfVariableHasValue?: string;
|
|
96
|
-
};
|
|
97
|
-
};
|
|
98
|
-
/**
|
|
99
|
-
* @defaultSnippets { "label": "Header Configuration", "properties": ["key", "description", "value:string", "tags:array"] }
|
|
100
|
-
*/
|
|
101
|
-
export type HttpHeaderConfiguration = {
|
|
102
|
-
key: string;
|
|
103
|
-
description?: string;
|
|
104
|
-
value: string;
|
|
105
|
-
tags?: string[];
|
|
106
|
-
condition?: {
|
|
107
|
-
applyIfVariableHasValue?: string;
|
|
108
|
-
};
|
|
109
|
-
};
|
|
110
|
-
export type HttpHeaderAsObject = {
|
|
111
|
-
[key: string]: string;
|
|
112
|
-
};
|
|
113
|
-
type ResourceType = 'model' | 'data' | 'transformer' | 'operator' | 'script';
|
|
114
|
-
type ResourceBase = {
|
|
115
|
-
key?: string;
|
|
116
|
-
url: string;
|
|
117
|
-
type: ResourceType;
|
|
118
|
-
tags?: string[];
|
|
119
|
-
};
|
|
120
|
-
/**
|
|
121
|
-
* A model describes a real world object of your applicatoin like a customer, a product or a sales order.
|
|
122
|
-
*
|
|
123
|
-
* @defaultSnippets { "label": "Model", "properties": ["url:string:${baseUrl}/models/my-model.dcupl.json", "type:model", "tags:array"] }
|
|
124
|
-
*/
|
|
125
|
-
export type ModelResource = ResourceBase & {
|
|
126
|
-
type: 'model';
|
|
127
|
-
};
|
|
128
|
-
/**
|
|
129
|
-
* A data resource contains data for a model.
|
|
130
|
-
*
|
|
131
|
-
* @defaultSnippets { "label": "Data", "properties": ["url:string:${baseUrl}/data/my-data.json", "type:data", "model", "tags:array"] }
|
|
132
|
-
*/
|
|
133
|
-
export type DataResource = ResourceBase & {
|
|
134
|
-
type: 'data';
|
|
135
|
-
model: string;
|
|
136
|
-
options?: DataResourceOptions;
|
|
137
|
-
};
|
|
138
|
-
/**
|
|
139
|
-
* A transformer resource points to a javascript file that can be used to transform the data of a data resource.
|
|
140
|
-
*
|
|
141
|
-
* @defaultSnippets { "label": "Transformer", "properties": ["url:string:${baseUrl}/transformers/my-transformer.js", "type:transformer", "applyTo:array", "tags:array"] }
|
|
142
|
-
*/
|
|
143
|
-
export type TransformerResource = ResourceBase & {
|
|
144
|
-
type: 'transformer';
|
|
145
|
-
/**
|
|
146
|
-
* The tags the transformer applies to
|
|
147
|
-
*/
|
|
148
|
-
applyTo?: string[];
|
|
149
|
-
/**
|
|
150
|
-
* The transformer type
|
|
151
|
-
* rawFileTransformer: The transformer is applied to the raw file
|
|
152
|
-
* parsedFileTransformer: The transformer is applied to the parsed file
|
|
153
|
-
* default: rawFileTransformer
|
|
154
|
-
*/
|
|
155
|
-
transformerType?: TransformerType;
|
|
156
|
-
};
|
|
157
|
-
/**
|
|
158
|
-
* A script resource.
|
|
159
|
-
*
|
|
160
|
-
* @defaultSnippets { "label": "Query Operator", "properties": ["url:string:${baseUrl}/models/my-operator.js", "type:operator", "operator:my_operator", "tags:array"] }
|
|
161
|
-
*/
|
|
162
|
-
export type CustomScriptResource = ResourceBase & {
|
|
163
|
-
type: 'script';
|
|
164
|
-
/**
|
|
165
|
-
* The operator name that can be used in a query
|
|
166
|
-
*/
|
|
167
|
-
scriptKey: string;
|
|
168
|
-
};
|
|
169
|
-
/**
|
|
170
|
-
* A query operator resource points to a javascript file that defines a custom query operator.
|
|
171
|
-
*
|
|
172
|
-
* @defaultSnippets { "label": "Query Operator", "properties": ["url:string:${baseUrl}/models/my-operator.js", "type:operator", "operator:my_operator", "tags:array"] }
|
|
173
|
-
*/
|
|
174
|
-
export type CustomOperatorResource = ResourceBase & {
|
|
175
|
-
type: 'operator';
|
|
176
|
-
/**
|
|
177
|
-
* The operator name that can be used in a query
|
|
178
|
-
*/
|
|
179
|
-
operator: string;
|
|
180
|
-
};
|
|
181
|
-
export type DataResourceOptions = {
|
|
182
|
-
updateType?: DataContainerType;
|
|
183
|
-
autoGenerateProperties?: boolean;
|
|
184
|
-
autoGenerateKey?: boolean;
|
|
185
|
-
keyProperty?: string;
|
|
186
|
-
csvParserOptions?: CsvParserOptions;
|
|
187
|
-
};
|
|
188
|
-
export type Resource = ModelResource | DataResource | TransformerResource | CustomOperatorResource | CustomScriptResource;
|
|
189
|
-
export type AppLoaderConfigHeader = {
|
|
190
|
-
key: string;
|
|
191
|
-
value: string;
|
|
192
|
-
};
|
|
193
|
-
export {};
|
|
194
|
-
}
|
|
195
|
-
export type FilesApiStatusResponse = {
|
|
196
|
-
changedAt: number;
|
|
197
|
-
};
|
|
198
|
-
/**
|
|
199
|
-
* The input type is depending on the resource type (csv/json) and if it's a raw or parsed transformer
|
|
200
|
-
* Shuld return the transformed data
|
|
201
|
-
*/
|
|
202
|
-
export type AppLoaderTransformerFunction = (item: AppLoaderConfiguration.Resource, input: any) => any;
|
|
203
|
-
export declare namespace AppLoaderProgress {
|
|
204
|
-
type ResourceItem = AppLoaderConfiguration.Resource;
|
|
205
|
-
type ProgressItem = {
|
|
206
|
-
total: number;
|
|
207
|
-
processed: number;
|
|
208
|
-
remaining: number;
|
|
209
|
-
progress: number;
|
|
210
|
-
context: string;
|
|
211
|
-
currentItem: ResourceItem;
|
|
212
|
-
totalItems: ResourceItem[];
|
|
213
|
-
processedItems: ResourceItem[];
|
|
214
|
-
downloadedItems: ResourceItem[];
|
|
215
|
-
failedItems: ResourceItem[];
|
|
216
|
-
remainingItems: ResourceItem[];
|
|
217
|
-
};
|
|
218
|
-
type CallbackFunction = (item: ProgressItem) => void;
|
|
219
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"app-loader.types.js","sourceRoot":"","sources":["../../../src/types/app-loader.types.ts"],"names":[],"mappings":""}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
export type RawItem = any;
|
|
2
|
-
export type ListItem = {
|
|
3
|
-
key: string;
|
|
4
|
-
[id: string]: any;
|
|
5
|
-
};
|
|
6
|
-
export type DataContainer<ListType extends RawItem | ListItem = ListItem, ModelNames extends string = string> = {
|
|
7
|
-
model: ModelNames;
|
|
8
|
-
type?: DataContainerType;
|
|
9
|
-
data: ListType[];
|
|
10
|
-
keyProperty?: string;
|
|
11
|
-
autoGenerateKey?: boolean;
|
|
12
|
-
autoGenerateProperties?: boolean;
|
|
13
|
-
placeholderUid?: string;
|
|
14
|
-
};
|
|
15
|
-
export type DataContainerType = 'upsert' | 'update' | 'set' | 'remove';
|
|
16
|
-
export type ReferenceDataTypes<ListType extends ListItem = ListItem> = string | string[] | ListType | ListType[];
|
|
17
|
-
export type DataOptions<ModelNames extends string = string> = {
|
|
18
|
-
model: ModelNames;
|
|
19
|
-
keyProperty?: string;
|
|
20
|
-
autoGenerateKey?: boolean;
|
|
21
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"data.types.js","sourceRoot":"","sources":["../../../src/types/data.types.ts"],"names":[],"mappings":""}
|
|
@@ -1,121 +0,0 @@
|
|
|
1
|
-
import { DcuplUpdateMessage } from '../changeDetection';
|
|
2
|
-
import { PivotOptions } from '../pivot';
|
|
3
|
-
import { AggregationOptions } from './aggregation.types';
|
|
4
|
-
import { DcuplFacetOptions } from './facets.types';
|
|
5
|
-
import { DcuplGroupByOptions } from './group-by.types';
|
|
6
|
-
import { DcuplItemsOptions } from './list.types';
|
|
7
|
-
import { DcuplGlobalQueryOptions } from './query.types';
|
|
8
|
-
import { SuggestionOptions } from './suggestion.types';
|
|
9
|
-
export type DcuplInitOptions = {
|
|
10
|
-
config?: DcuplInitConfig;
|
|
11
|
-
/**
|
|
12
|
-
* deprecated - use config.quality instead
|
|
13
|
-
*/
|
|
14
|
-
errorTracking?: DcuplInitErrorTrackingConfig;
|
|
15
|
-
/**
|
|
16
|
-
* Enables/disables the model & data quality checks
|
|
17
|
-
*/
|
|
18
|
-
quality?: DcuplInitQualityConfig;
|
|
19
|
-
/**
|
|
20
|
-
* Fine tune performance settings
|
|
21
|
-
*/
|
|
22
|
-
performance?: DcuplInitPerformanceConfig;
|
|
23
|
-
analytics?: DcuplInitErrorAnalyticsConfig;
|
|
24
|
-
referenceMetadata?: DcuplInitReferenceMetadataConfig;
|
|
25
|
-
};
|
|
26
|
-
export type DcuplInitPerformanceConfig = {
|
|
27
|
-
/**
|
|
28
|
-
* Enable/disable internal API caching
|
|
29
|
-
*/
|
|
30
|
-
cache?: {
|
|
31
|
-
enabled: boolean;
|
|
32
|
-
};
|
|
33
|
-
/**
|
|
34
|
-
* Enable/disable usage of deep data clones
|
|
35
|
-
* This can be useful to avoid side effects when altering data inside your application
|
|
36
|
-
* If you are sure that you are not altering the data you can disable this feature to improve performance
|
|
37
|
-
*/
|
|
38
|
-
clone?: {
|
|
39
|
-
enabled: boolean;
|
|
40
|
-
};
|
|
41
|
-
};
|
|
42
|
-
export type DcuplInitQualityConfig = {
|
|
43
|
-
enabled: boolean;
|
|
44
|
-
};
|
|
45
|
-
export type DcuplInitErrorTrackingConfig = {
|
|
46
|
-
enabled: boolean;
|
|
47
|
-
};
|
|
48
|
-
export type DcuplInitErrorAnalyticsConfig = {
|
|
49
|
-
enabled: boolean;
|
|
50
|
-
};
|
|
51
|
-
export type DcuplInitReferenceMetadataConfig = {
|
|
52
|
-
enabled: boolean;
|
|
53
|
-
};
|
|
54
|
-
export type DcuplInitConfig = {
|
|
55
|
-
/**
|
|
56
|
-
* The project id optained from the dcupl console
|
|
57
|
-
*/
|
|
58
|
-
projectId?: string;
|
|
59
|
-
/**
|
|
60
|
-
* The read only API key optained from the dcupl console
|
|
61
|
-
*/
|
|
62
|
-
apiKey?: string;
|
|
63
|
-
/**
|
|
64
|
-
* The CDN version to use
|
|
65
|
-
* If not set the latest 'draft' version is used
|
|
66
|
-
*/
|
|
67
|
-
version?: string;
|
|
68
|
-
};
|
|
69
|
-
export type DcuplErrorResponse = {
|
|
70
|
-
name?: string;
|
|
71
|
-
message?: string;
|
|
72
|
-
type?: 'fatal' | 'minor';
|
|
73
|
-
};
|
|
74
|
-
export type DcuplMetrics = {
|
|
75
|
-
total?: number;
|
|
76
|
-
core?: number;
|
|
77
|
-
};
|
|
78
|
-
export interface DcuplFunction {
|
|
79
|
-
name: string;
|
|
80
|
-
args: Array<any>;
|
|
81
|
-
}
|
|
82
|
-
export type DcuplResponse<T> = {
|
|
83
|
-
id?: string;
|
|
84
|
-
func: DcuplFunction;
|
|
85
|
-
result?: T;
|
|
86
|
-
error?: DcuplErrorResponse;
|
|
87
|
-
metrics: DcuplMetrics;
|
|
88
|
-
};
|
|
89
|
-
export type DcuplGlobalItemsOptions<T> = DcuplItemsOptions<T> & {
|
|
90
|
-
modelKey: string;
|
|
91
|
-
};
|
|
92
|
-
export type CallbackFunction = (item: DcuplUpdateMessage) => void;
|
|
93
|
-
export type DcuplGlobalPivotOptions = {
|
|
94
|
-
modelKey: string;
|
|
95
|
-
options: PivotOptions;
|
|
96
|
-
query?: DcuplGlobalQueryOptions<any>;
|
|
97
|
-
};
|
|
98
|
-
export type DcuplGlobalAggregateOptions = {
|
|
99
|
-
modelKey: string;
|
|
100
|
-
options: AggregationOptions;
|
|
101
|
-
query?: DcuplGlobalQueryOptions<any>;
|
|
102
|
-
};
|
|
103
|
-
export type DcuplGlobalSuggestionOptions = {
|
|
104
|
-
modelKey: string;
|
|
105
|
-
options: SuggestionOptions;
|
|
106
|
-
query?: DcuplGlobalQueryOptions<any>;
|
|
107
|
-
};
|
|
108
|
-
export type DcuplGlobalGroupByOptions = {
|
|
109
|
-
modelKey: string;
|
|
110
|
-
options: DcuplGroupByOptions<any>;
|
|
111
|
-
query?: DcuplGlobalQueryOptions<any>;
|
|
112
|
-
};
|
|
113
|
-
export type DcuplGlobalFacetOptions = {
|
|
114
|
-
modelKey: string;
|
|
115
|
-
options: DcuplFacetOptions;
|
|
116
|
-
query?: DcuplGlobalQueryOptions<any>;
|
|
117
|
-
};
|
|
118
|
-
export type DcuplGlobalMetadataOptions = {
|
|
119
|
-
modelKey: string;
|
|
120
|
-
query?: DcuplGlobalQueryOptions<any>;
|
|
121
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dcupl.types.js","sourceRoot":"","sources":["../../../src/types/dcupl.types.ts"],"names":[],"mappings":""}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { ListItem } from './data.types';
|
|
2
|
-
export type DcuplFacetOptions = {
|
|
3
|
-
attribute: string;
|
|
4
|
-
count?: number;
|
|
5
|
-
excludeZeros?: boolean;
|
|
6
|
-
excludeUndefineds?: boolean;
|
|
7
|
-
excludeUnresolved?: boolean;
|
|
8
|
-
calculateResults?: boolean;
|
|
9
|
-
};
|
|
10
|
-
export type DcuplFacet = {
|
|
11
|
-
key: string;
|
|
12
|
-
enabled: boolean;
|
|
13
|
-
selected: boolean;
|
|
14
|
-
size: number;
|
|
15
|
-
value: boolean | string | null | undefined;
|
|
16
|
-
entry: ListItem;
|
|
17
|
-
resultKeys: string[];
|
|
18
|
-
children?: Array<DcuplFacet>;
|
|
19
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"facets.types.js","sourceRoot":"","sources":["../../../src/types/facets.types.ts"],"names":[],"mappings":""}
|
|
@@ -1,121 +0,0 @@
|
|
|
1
|
-
import { DcuplQueryGroup, ListItem } from '.';
|
|
2
|
-
import { CatalogApiOptions } from './list.types';
|
|
3
|
-
import { FilterComparisonType } from './model.types';
|
|
4
|
-
export type NumberConstraintOperators = {
|
|
5
|
-
gt?: number;
|
|
6
|
-
lt?: number;
|
|
7
|
-
gte?: number;
|
|
8
|
-
lte?: number;
|
|
9
|
-
eq?: number | number[] | null;
|
|
10
|
-
ne?: number | number[];
|
|
11
|
-
};
|
|
12
|
-
export type DateConstraintAccuracy = 'exact' | 'second' | 'minute' | 'hour' | 'day' | 'month' | 'year';
|
|
13
|
-
export type DateConstraintOperators = {
|
|
14
|
-
accuracy?: DateConstraintAccuracy;
|
|
15
|
-
gt?: Date;
|
|
16
|
-
lt?: Date;
|
|
17
|
-
gte?: Date;
|
|
18
|
-
lte?: Date;
|
|
19
|
-
eq?: Date | Date[] | null;
|
|
20
|
-
ne?: Date | Date[];
|
|
21
|
-
};
|
|
22
|
-
export type FilterEntryNumberRange = {
|
|
23
|
-
min: number;
|
|
24
|
-
max: number;
|
|
25
|
-
};
|
|
26
|
-
export type FilterEntryDateRange = {
|
|
27
|
-
min: Date;
|
|
28
|
-
max: Date;
|
|
29
|
-
};
|
|
30
|
-
export type FilterItemType = 'reference' | 'number' | 'text' | 'date' | 'boolean';
|
|
31
|
-
export type FilterItemPropertyType = 'number' | 'text' | 'date' | 'boolean';
|
|
32
|
-
export type FilterItemReferenceType = 'reference';
|
|
33
|
-
export type FilterItemBase = {
|
|
34
|
-
key: string;
|
|
35
|
-
attributeKey: string;
|
|
36
|
-
enabled: boolean;
|
|
37
|
-
type: FilterItemType;
|
|
38
|
-
selected: boolean;
|
|
39
|
-
text?: string;
|
|
40
|
-
range?: FilterItemNumberRangeValue | FilterItemDateRangeValue;
|
|
41
|
-
entries?: Array<FilterItemEntry>;
|
|
42
|
-
};
|
|
43
|
-
export type TextFilterItem = FilterItemBase & {
|
|
44
|
-
type: 'text';
|
|
45
|
-
comparisonType: FilterComparisonType;
|
|
46
|
-
text: string | undefined | null;
|
|
47
|
-
};
|
|
48
|
-
export type NumberFilterItem = FilterItemBase & {
|
|
49
|
-
type: 'number';
|
|
50
|
-
range: FilterItemNumberRangeValue;
|
|
51
|
-
};
|
|
52
|
-
export type DateFilterItem = FilterItemBase & {
|
|
53
|
-
type: 'date';
|
|
54
|
-
range: FilterItemDateRangeValue;
|
|
55
|
-
};
|
|
56
|
-
export type BooleanFilterItem = FilterItemBase & {
|
|
57
|
-
type: 'boolean';
|
|
58
|
-
entries: Array<FilterItemEntry>;
|
|
59
|
-
};
|
|
60
|
-
export type FilterItemNumberRangeValue = {
|
|
61
|
-
available: FilterEntryNumberRange;
|
|
62
|
-
initial: FilterEntryNumberRange;
|
|
63
|
-
relatedQuery: DcuplQueryGroup | undefined;
|
|
64
|
-
};
|
|
65
|
-
export type FilterItemDateRangeValue = {
|
|
66
|
-
available: FilterEntryDateRange;
|
|
67
|
-
initial: FilterEntryDateRange;
|
|
68
|
-
relatedQuery: DcuplQueryGroup | undefined;
|
|
69
|
-
};
|
|
70
|
-
export type ReferenceFilterItem = FilterItemBase & {
|
|
71
|
-
type: 'reference';
|
|
72
|
-
entries: Array<FilterItemEntry>;
|
|
73
|
-
};
|
|
74
|
-
export type PropertyFilterItem = TextFilterItem | NumberFilterItem | DateFilterItem | BooleanFilterItem;
|
|
75
|
-
export type FilterItem = PropertyFilterItem | ReferenceFilterItem;
|
|
76
|
-
export type FilterItemEntry = {
|
|
77
|
-
key: string;
|
|
78
|
-
enabled: boolean;
|
|
79
|
-
selected: boolean;
|
|
80
|
-
size: number;
|
|
81
|
-
value: boolean | string | null | undefined;
|
|
82
|
-
entry: ListItem;
|
|
83
|
-
resultKeys: string[];
|
|
84
|
-
children?: Array<FilterItemEntry>;
|
|
85
|
-
};
|
|
86
|
-
export type FilterMode = 'add' | 'set';
|
|
87
|
-
export type BaseFilterOptions = {
|
|
88
|
-
type: FilterType;
|
|
89
|
-
filterKey: string;
|
|
90
|
-
/**
|
|
91
|
-
* Decides if the new filter will extend or replace the current ones
|
|
92
|
-
* @default 'set'
|
|
93
|
-
*/
|
|
94
|
-
mode?: FilterMode;
|
|
95
|
-
} & CatalogApiOptions;
|
|
96
|
-
export type FilterType = 'text' | 'number' | 'reference' | 'date' | 'boolean';
|
|
97
|
-
type TextFilterOptionsFull = BaseFilterOptions & {
|
|
98
|
-
type: 'text';
|
|
99
|
-
text: string | undefined | null;
|
|
100
|
-
};
|
|
101
|
-
type NumberFilterOptionsFull = BaseFilterOptions & NumberConstraintOperators & {
|
|
102
|
-
type: 'number';
|
|
103
|
-
};
|
|
104
|
-
type DateFilterOptionsFull = BaseFilterOptions & DateConstraintOperators & {
|
|
105
|
-
type: 'date';
|
|
106
|
-
};
|
|
107
|
-
type ReferenceFilterOptionsFull = BaseFilterOptions & {
|
|
108
|
-
type: 'reference';
|
|
109
|
-
itemKeys: Array<string | undefined | null>;
|
|
110
|
-
};
|
|
111
|
-
type BooleanFilterOptionsFull = BaseFilterOptions & {
|
|
112
|
-
type: 'boolean';
|
|
113
|
-
value: boolean | undefined | null;
|
|
114
|
-
};
|
|
115
|
-
export type FilterOptions = TextFilterOptionsFull | NumberFilterOptionsFull | DateFilterOptionsFull | ReferenceFilterOptionsFull | BooleanFilterOptionsFull;
|
|
116
|
-
export type TextFilterOptions = Omit<TextFilterOptionsFull, 'type'>;
|
|
117
|
-
export type NumberFilterOptions = Omit<NumberFilterOptionsFull, 'type'>;
|
|
118
|
-
export type DateFilterOptions = Omit<DateFilterOptionsFull, 'type'>;
|
|
119
|
-
export type ReferenceFilterOptions = Omit<ReferenceFilterOptionsFull, 'type'>;
|
|
120
|
-
export type BooleanFilterOptions = Omit<BooleanFilterOptionsFull, 'type'>;
|
|
121
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"filter.types.js","sourceRoot":"","sources":["../../../src/types/filter.types.ts"],"names":[],"mappings":""}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { AggregationOptions } from './aggregation.types';
|
|
2
|
-
import { DcuplItemsOptions } from './list.types';
|
|
3
|
-
export type DcuplSectionItemOption<T> = DcuplItemsOptions<T> & {
|
|
4
|
-
key: string;
|
|
5
|
-
};
|
|
6
|
-
export type DcuplGroupByOptions<T> = DcuplItemsOptions<T> & {
|
|
7
|
-
attribute: string;
|
|
8
|
-
aggregates?: AggregationOptions[];
|
|
9
|
-
items?: DcuplSectionItemOption<T>[];
|
|
10
|
-
excludeZeros?: boolean;
|
|
11
|
-
excludeUndefineds?: boolean;
|
|
12
|
-
excludeUnresolved?: boolean;
|
|
13
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"group-by.types.js","sourceRoot":"","sources":["../../../src/types/group-by.types.ts"],"names":[],"mappings":""}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
export * from './aggregation.types';
|
|
2
|
-
export * from './app-loader.types';
|
|
3
|
-
export * from './data.types';
|
|
4
|
-
export * from './dcupl.types';
|
|
5
|
-
export * from './facets.types';
|
|
6
|
-
export * from './filter.types';
|
|
7
|
-
export * from './group-by.types';
|
|
8
|
-
export * from './internal.types';
|
|
9
|
-
export * from './list.types';
|
|
10
|
-
export * from './model.types';
|
|
11
|
-
export * from './projection.types';
|
|
12
|
-
export * from './quality.types';
|
|
13
|
-
export * from './query.types';
|
|
14
|
-
export * from './rest-api/rest-api.types';
|
|
15
|
-
export * from './runner/runner.types';
|
|
16
|
-
export * from './section.types';
|
|
17
|
-
export * from './suggestion.types';
|
|
18
|
-
export * from './testing.types';
|
|
19
|
-
export * from './workflow/workflow.types';
|
|
20
|
-
export * from './api/file.types';
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./aggregation.types"), exports);
|
|
18
|
-
__exportStar(require("./app-loader.types"), exports);
|
|
19
|
-
__exportStar(require("./data.types"), exports);
|
|
20
|
-
__exportStar(require("./dcupl.types"), exports);
|
|
21
|
-
__exportStar(require("./facets.types"), exports);
|
|
22
|
-
__exportStar(require("./filter.types"), exports);
|
|
23
|
-
__exportStar(require("./group-by.types"), exports);
|
|
24
|
-
__exportStar(require("./internal.types"), exports);
|
|
25
|
-
__exportStar(require("./list.types"), exports);
|
|
26
|
-
__exportStar(require("./model.types"), exports);
|
|
27
|
-
__exportStar(require("./projection.types"), exports);
|
|
28
|
-
__exportStar(require("./quality.types"), exports);
|
|
29
|
-
__exportStar(require("./query.types"), exports);
|
|
30
|
-
__exportStar(require("./rest-api/rest-api.types"), exports);
|
|
31
|
-
__exportStar(require("./runner/runner.types"), exports);
|
|
32
|
-
__exportStar(require("./section.types"), exports);
|
|
33
|
-
__exportStar(require("./suggestion.types"), exports);
|
|
34
|
-
__exportStar(require("./testing.types"), exports);
|
|
35
|
-
__exportStar(require("./workflow/workflow.types"), exports);
|
|
36
|
-
__exportStar(require("./api/file.types"), exports);
|
|
37
|
-
//# sourceMappingURL=index.js.map
|