@salesforce/lds-adapters-cdp-semantic-engine 1.380.0-dev2 → 1.380.0-dev22
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/es/es2018/cdp-semantic-engine.js +5 -1
- package/dist/es/es2018/types/src/generated/adapters/executeSemanticQuery.d.ts +3 -1
- package/dist/es/es2018/types/src/generated/resources/postSemanticEngineGateway.d.ts +3 -1
- package/dist/es/es2018/types/src/generated/resources/postSemanticEngineGatewayNonInteractive.d.ts +3 -1
- package/dist/es/es2018/types/src/generated/types/SemanticQueryRequest.d.ts +9 -3
- package/package.json +3 -3
- package/sfdc/index.js +6 -2
- package/src/raml/api.raml +9 -0
|
@@ -216,9 +216,11 @@ const executeSemanticQuery_ConfigPropertyMetadata = [
|
|
|
216
216
|
generateParamConfigMetadata('dataspace', true, 2 /* Body */, 0 /* String */),
|
|
217
217
|
generateParamConfigMetadata('groupId', false, 2 /* Body */, 0 /* String */),
|
|
218
218
|
generateParamConfigMetadata('semanticModel', false, 2 /* Body */, 4 /* Unsupported */),
|
|
219
|
+
generateParamConfigMetadata('semanticModelApiName', false, 2 /* Body */, 0 /* String */),
|
|
219
220
|
generateParamConfigMetadata('semanticModelId', false, 2 /* Body */, 0 /* String */),
|
|
220
221
|
generateParamConfigMetadata('source', true, 2 /* Body */, 0 /* String */),
|
|
221
|
-
generateParamConfigMetadata('structuredSemanticQuery',
|
|
222
|
+
generateParamConfigMetadata('structuredSemanticQuery', false, 2 /* Body */, 4 /* Unsupported */),
|
|
223
|
+
generateParamConfigMetadata('structuredMetricQuery', false, 2 /* Body */, 4 /* Unsupported */),
|
|
222
224
|
];
|
|
223
225
|
const executeSemanticQuery_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, executeSemanticQuery_ConfigPropertyMetadata);
|
|
224
226
|
const createResourceParams = /*#__PURE__*/ createResourceParams$1(executeSemanticQuery_ConfigPropertyMetadata);
|
|
@@ -244,6 +246,8 @@ function typeCheckConfig(untrustedConfig) {
|
|
|
244
246
|
config.semanticModel = untrustedConfig_semanticModel;
|
|
245
247
|
const untrustedConfig_structuredSemanticQuery = untrustedConfig.structuredSemanticQuery;
|
|
246
248
|
config.structuredSemanticQuery = untrustedConfig_structuredSemanticQuery;
|
|
249
|
+
const untrustedConfig_structuredMetricQuery = untrustedConfig.structuredMetricQuery;
|
|
250
|
+
config.structuredMetricQuery = untrustedConfig_structuredMetricQuery;
|
|
247
251
|
return config;
|
|
248
252
|
}
|
|
249
253
|
function validateAdapterConfig(untrustedConfig, configPropertyNames) {
|
|
@@ -13,9 +13,11 @@ export interface ExecuteSemanticQueryConfig {
|
|
|
13
13
|
dataspace: string;
|
|
14
14
|
groupId?: string;
|
|
15
15
|
semanticModel?: unknown;
|
|
16
|
+
semanticModelApiName?: string;
|
|
16
17
|
semanticModelId?: string;
|
|
17
18
|
source: string;
|
|
18
|
-
structuredSemanticQuery
|
|
19
|
+
structuredSemanticQuery?: unknown;
|
|
20
|
+
structuredMetricQuery?: unknown;
|
|
19
21
|
}
|
|
20
22
|
export declare const createResourceParams: (config: ExecuteSemanticQueryConfig) => resources_postSemanticEngineGateway_ResourceRequestConfig;
|
|
21
23
|
export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<ExecuteSemanticQueryConfig>): adapter$45$utils_Untrusted<ExecuteSemanticQueryConfig>;
|
|
@@ -9,9 +9,11 @@ export interface ResourceRequestConfig {
|
|
|
9
9
|
dataspace: string;
|
|
10
10
|
groupId?: string;
|
|
11
11
|
semanticModel?: unknown;
|
|
12
|
+
semanticModelApiName?: string;
|
|
12
13
|
semanticModelId?: string;
|
|
13
14
|
source: string;
|
|
14
|
-
structuredSemanticQuery
|
|
15
|
+
structuredSemanticQuery?: unknown;
|
|
16
|
+
structuredMetricQuery?: unknown;
|
|
15
17
|
};
|
|
16
18
|
}
|
|
17
19
|
export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
|
package/dist/es/es2018/types/src/generated/resources/postSemanticEngineGatewayNonInteractive.d.ts
CHANGED
|
@@ -9,9 +9,11 @@ export interface ResourceRequestConfig {
|
|
|
9
9
|
dataspace: string;
|
|
10
10
|
groupId?: string;
|
|
11
11
|
semanticModel?: unknown;
|
|
12
|
+
semanticModelApiName?: string;
|
|
12
13
|
semanticModelId?: string;
|
|
13
14
|
source: string;
|
|
14
|
-
structuredSemanticQuery
|
|
15
|
+
structuredSemanticQuery?: unknown;
|
|
16
|
+
structuredMetricQuery?: unknown;
|
|
15
17
|
};
|
|
16
18
|
}
|
|
17
19
|
export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, BaseFragment as $64$luvio_engine_BaseFragment, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
|
|
2
|
-
export declare const VERSION = "
|
|
2
|
+
export declare const VERSION = "acb5b60258259e37c4257bf2ce4340f7";
|
|
3
3
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
4
4
|
export declare const RepresentationType: string;
|
|
5
5
|
export declare function normalize(input: SemanticQueryRequest, existing: SemanticQueryRequestNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): SemanticQueryRequestNormalized;
|
|
@@ -26,12 +26,16 @@ export interface SemanticQueryRequestNormalized {
|
|
|
26
26
|
groupId?: string;
|
|
27
27
|
/** Set SemanticModel */
|
|
28
28
|
semanticModel?: unknown;
|
|
29
|
+
/** Set semanticModelApiName */
|
|
30
|
+
semanticModelApiName?: string;
|
|
29
31
|
/** Set SemanticModelId */
|
|
30
32
|
semanticModelId?: string;
|
|
31
33
|
/** source */
|
|
32
34
|
source: string;
|
|
35
|
+
/** structuredMetricQuery */
|
|
36
|
+
structuredMetricQuery?: unknown;
|
|
33
37
|
/** structuredSemanticQuery */
|
|
34
|
-
structuredSemanticQuery
|
|
38
|
+
structuredSemanticQuery?: unknown;
|
|
35
39
|
}
|
|
36
40
|
/**
|
|
37
41
|
* Input representation for creating Semantic Query
|
|
@@ -47,7 +51,9 @@ export interface SemanticQueryRequest {
|
|
|
47
51
|
dataspace: string;
|
|
48
52
|
groupId?: string;
|
|
49
53
|
semanticModel?: unknown;
|
|
54
|
+
semanticModelApiName?: string;
|
|
50
55
|
semanticModelId?: string;
|
|
51
56
|
source: string;
|
|
52
|
-
|
|
57
|
+
structuredMetricQuery?: unknown;
|
|
58
|
+
structuredSemanticQuery?: unknown;
|
|
53
59
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-adapters-cdp-semantic-engine",
|
|
3
|
-
"version": "1.380.0-
|
|
3
|
+
"version": "1.380.0-dev22",
|
|
4
4
|
"description": "Execution of Semantic Queries via Semantic Layer",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "dist/es/es2018/cdp-semantic-engine.js",
|
|
@@ -40,10 +40,10 @@
|
|
|
40
40
|
"test:unit": "jest"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@salesforce/lds-bindings": "^1.380.0-
|
|
43
|
+
"@salesforce/lds-bindings": "^1.380.0-dev22"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@salesforce/lds-compiler-plugins": "^1.380.0-
|
|
46
|
+
"@salesforce/lds-compiler-plugins": "^1.380.0-dev22"
|
|
47
47
|
},
|
|
48
48
|
"nx": {
|
|
49
49
|
"targets": {
|
package/sfdc/index.js
CHANGED
|
@@ -225,9 +225,11 @@ const executeSemanticQuery_ConfigPropertyMetadata = [
|
|
|
225
225
|
generateParamConfigMetadata('dataspace', true, 2 /* Body */, 0 /* String */),
|
|
226
226
|
generateParamConfigMetadata('groupId', false, 2 /* Body */, 0 /* String */),
|
|
227
227
|
generateParamConfigMetadata('semanticModel', false, 2 /* Body */, 4 /* Unsupported */),
|
|
228
|
+
generateParamConfigMetadata('semanticModelApiName', false, 2 /* Body */, 0 /* String */),
|
|
228
229
|
generateParamConfigMetadata('semanticModelId', false, 2 /* Body */, 0 /* String */),
|
|
229
230
|
generateParamConfigMetadata('source', true, 2 /* Body */, 0 /* String */),
|
|
230
|
-
generateParamConfigMetadata('structuredSemanticQuery',
|
|
231
|
+
generateParamConfigMetadata('structuredSemanticQuery', false, 2 /* Body */, 4 /* Unsupported */),
|
|
232
|
+
generateParamConfigMetadata('structuredMetricQuery', false, 2 /* Body */, 4 /* Unsupported */),
|
|
231
233
|
];
|
|
232
234
|
const executeSemanticQuery_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, executeSemanticQuery_ConfigPropertyMetadata);
|
|
233
235
|
const createResourceParams = /*#__PURE__*/ createResourceParams$1(executeSemanticQuery_ConfigPropertyMetadata);
|
|
@@ -253,6 +255,8 @@ function typeCheckConfig(untrustedConfig) {
|
|
|
253
255
|
config.semanticModel = untrustedConfig_semanticModel;
|
|
254
256
|
const untrustedConfig_structuredSemanticQuery = untrustedConfig.structuredSemanticQuery;
|
|
255
257
|
config.structuredSemanticQuery = untrustedConfig_structuredSemanticQuery;
|
|
258
|
+
const untrustedConfig_structuredMetricQuery = untrustedConfig.structuredMetricQuery;
|
|
259
|
+
config.structuredMetricQuery = untrustedConfig_structuredMetricQuery;
|
|
256
260
|
return config;
|
|
257
261
|
}
|
|
258
262
|
function validateAdapterConfig(untrustedConfig, configPropertyNames) {
|
|
@@ -316,4 +320,4 @@ withDefaultLuvio((luvio) => {
|
|
|
316
320
|
});
|
|
317
321
|
|
|
318
322
|
export { executeSemanticQuery };
|
|
319
|
-
// version: 1.380.0-
|
|
323
|
+
// version: 1.380.0-dev22-411853e059
|
package/src/raml/api.raml
CHANGED
|
@@ -89,6 +89,10 @@ types:
|
|
|
89
89
|
description: Set SemanticModel
|
|
90
90
|
type: any # TODO hand-rolled (changed from object with no properties)
|
|
91
91
|
required: false # TODO hand-rolled (required: false)
|
|
92
|
+
semanticModelApiName:
|
|
93
|
+
description: Set semanticModelApiName
|
|
94
|
+
type: string
|
|
95
|
+
required: false # TODO hand-rolled (required: false)
|
|
92
96
|
semanticModelId:
|
|
93
97
|
description: Set SemanticModelId
|
|
94
98
|
type: string
|
|
@@ -99,6 +103,11 @@ types:
|
|
|
99
103
|
structuredSemanticQuery:
|
|
100
104
|
description: structuredSemanticQuery
|
|
101
105
|
type: any # TODO hand-rolled (changed from object with no properties)
|
|
106
|
+
required: false
|
|
107
|
+
structuredMetricQuery:
|
|
108
|
+
description: structuredMetricQuery
|
|
109
|
+
type: any
|
|
110
|
+
required: false
|
|
102
111
|
SemanticQueryResponse:
|
|
103
112
|
description: Represents Semantic Engine query output
|
|
104
113
|
type: object
|