@salesforce/lds-adapters-cdp-semantic-engine 1.404.0-dev2 → 1.404.0-dev4
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 +4 -1
- package/dist/es/es2018/types/src/generated/adapters/executeSemanticQuery.d.ts +2 -1
- package/dist/es/es2018/types/src/generated/resources/postSemanticEngineGateway.d.ts +2 -1
- package/dist/es/es2018/types/src/generated/resources/postSemanticEngineGatewayNonInteractive.d.ts +2 -1
- package/dist/es/es2018/types/src/generated/types/SemanticQueryRequest.d.ts +6 -3
- package/package.json +3 -3
- package/sfdc/index.js +5 -2
- package/src/raml/api.raml +5 -0
|
@@ -219,7 +219,8 @@ const executeSemanticQuery_ConfigPropertyMetadata = [
|
|
|
219
219
|
generateParamConfigMetadata('semanticModelApiName', false, 2 /* Body */, 0 /* String */),
|
|
220
220
|
generateParamConfigMetadata('semanticModelId', false, 2 /* Body */, 0 /* String */),
|
|
221
221
|
generateParamConfigMetadata('source', true, 2 /* Body */, 0 /* String */),
|
|
222
|
-
generateParamConfigMetadata('structuredSemanticQuery',
|
|
222
|
+
generateParamConfigMetadata('structuredSemanticQuery', false, 2 /* Body */, 4 /* Unsupported */),
|
|
223
|
+
generateParamConfigMetadata('structuredMetricQuery', false, 2 /* Body */, 4 /* Unsupported */),
|
|
223
224
|
];
|
|
224
225
|
const executeSemanticQuery_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, executeSemanticQuery_ConfigPropertyMetadata);
|
|
225
226
|
const createResourceParams = /*#__PURE__*/ createResourceParams$1(executeSemanticQuery_ConfigPropertyMetadata);
|
|
@@ -245,6 +246,8 @@ function typeCheckConfig(untrustedConfig) {
|
|
|
245
246
|
config.semanticModel = untrustedConfig_semanticModel;
|
|
246
247
|
const untrustedConfig_structuredSemanticQuery = untrustedConfig.structuredSemanticQuery;
|
|
247
248
|
config.structuredSemanticQuery = untrustedConfig_structuredSemanticQuery;
|
|
249
|
+
const untrustedConfig_structuredMetricQuery = untrustedConfig.structuredMetricQuery;
|
|
250
|
+
config.structuredMetricQuery = untrustedConfig_structuredMetricQuery;
|
|
248
251
|
return config;
|
|
249
252
|
}
|
|
250
253
|
function validateAdapterConfig(untrustedConfig, configPropertyNames) {
|
|
@@ -16,7 +16,8 @@ export interface ExecuteSemanticQueryConfig {
|
|
|
16
16
|
semanticModelApiName?: string;
|
|
17
17
|
semanticModelId?: string;
|
|
18
18
|
source: string;
|
|
19
|
-
structuredSemanticQuery
|
|
19
|
+
structuredSemanticQuery?: unknown;
|
|
20
|
+
structuredMetricQuery?: unknown;
|
|
20
21
|
}
|
|
21
22
|
export declare const createResourceParams: (config: ExecuteSemanticQueryConfig) => resources_postSemanticEngineGateway_ResourceRequestConfig;
|
|
22
23
|
export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<ExecuteSemanticQueryConfig>): adapter$45$utils_Untrusted<ExecuteSemanticQueryConfig>;
|
|
@@ -12,7 +12,8 @@ export interface ResourceRequestConfig {
|
|
|
12
12
|
semanticModelApiName?: string;
|
|
13
13
|
semanticModelId?: string;
|
|
14
14
|
source: string;
|
|
15
|
-
structuredSemanticQuery
|
|
15
|
+
structuredSemanticQuery?: unknown;
|
|
16
|
+
structuredMetricQuery?: unknown;
|
|
16
17
|
};
|
|
17
18
|
}
|
|
18
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
|
@@ -12,7 +12,8 @@ export interface ResourceRequestConfig {
|
|
|
12
12
|
semanticModelApiName?: string;
|
|
13
13
|
semanticModelId?: string;
|
|
14
14
|
source: string;
|
|
15
|
-
structuredSemanticQuery
|
|
15
|
+
structuredSemanticQuery?: unknown;
|
|
16
|
+
structuredMetricQuery?: unknown;
|
|
16
17
|
};
|
|
17
18
|
}
|
|
18
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;
|
|
@@ -32,8 +32,10 @@ export interface SemanticQueryRequestNormalized {
|
|
|
32
32
|
semanticModelId?: string;
|
|
33
33
|
/** source */
|
|
34
34
|
source: string;
|
|
35
|
+
/** structuredMetricQuery */
|
|
36
|
+
structuredMetricQuery?: unknown;
|
|
35
37
|
/** structuredSemanticQuery */
|
|
36
|
-
structuredSemanticQuery
|
|
38
|
+
structuredSemanticQuery?: unknown;
|
|
37
39
|
}
|
|
38
40
|
/**
|
|
39
41
|
* Input representation for creating Semantic Query
|
|
@@ -52,5 +54,6 @@ export interface SemanticQueryRequest {
|
|
|
52
54
|
semanticModelApiName?: string;
|
|
53
55
|
semanticModelId?: string;
|
|
54
56
|
source: string;
|
|
55
|
-
|
|
57
|
+
structuredMetricQuery?: unknown;
|
|
58
|
+
structuredSemanticQuery?: unknown;
|
|
56
59
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-adapters-cdp-semantic-engine",
|
|
3
|
-
"version": "1.404.0-
|
|
3
|
+
"version": "1.404.0-dev4",
|
|
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.404.0-
|
|
43
|
+
"@salesforce/lds-bindings": "^1.404.0-dev4"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@salesforce/lds-compiler-plugins": "^1.404.0-
|
|
46
|
+
"@salesforce/lds-compiler-plugins": "^1.404.0-dev4"
|
|
47
47
|
},
|
|
48
48
|
"nx": {
|
|
49
49
|
"targets": {
|
package/sfdc/index.js
CHANGED
|
@@ -228,7 +228,8 @@ const executeSemanticQuery_ConfigPropertyMetadata = [
|
|
|
228
228
|
generateParamConfigMetadata('semanticModelApiName', false, 2 /* Body */, 0 /* String */),
|
|
229
229
|
generateParamConfigMetadata('semanticModelId', false, 2 /* Body */, 0 /* String */),
|
|
230
230
|
generateParamConfigMetadata('source', true, 2 /* Body */, 0 /* String */),
|
|
231
|
-
generateParamConfigMetadata('structuredSemanticQuery',
|
|
231
|
+
generateParamConfigMetadata('structuredSemanticQuery', false, 2 /* Body */, 4 /* Unsupported */),
|
|
232
|
+
generateParamConfigMetadata('structuredMetricQuery', false, 2 /* Body */, 4 /* Unsupported */),
|
|
232
233
|
];
|
|
233
234
|
const executeSemanticQuery_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, executeSemanticQuery_ConfigPropertyMetadata);
|
|
234
235
|
const createResourceParams = /*#__PURE__*/ createResourceParams$1(executeSemanticQuery_ConfigPropertyMetadata);
|
|
@@ -254,6 +255,8 @@ function typeCheckConfig(untrustedConfig) {
|
|
|
254
255
|
config.semanticModel = untrustedConfig_semanticModel;
|
|
255
256
|
const untrustedConfig_structuredSemanticQuery = untrustedConfig.structuredSemanticQuery;
|
|
256
257
|
config.structuredSemanticQuery = untrustedConfig_structuredSemanticQuery;
|
|
258
|
+
const untrustedConfig_structuredMetricQuery = untrustedConfig.structuredMetricQuery;
|
|
259
|
+
config.structuredMetricQuery = untrustedConfig_structuredMetricQuery;
|
|
257
260
|
return config;
|
|
258
261
|
}
|
|
259
262
|
function validateAdapterConfig(untrustedConfig, configPropertyNames) {
|
|
@@ -317,4 +320,4 @@ withDefaultLuvio((luvio) => {
|
|
|
317
320
|
});
|
|
318
321
|
|
|
319
322
|
export { executeSemanticQuery };
|
|
320
|
-
// version: 1.404.0-
|
|
323
|
+
// version: 1.404.0-dev4-42147f9daa
|
package/src/raml/api.raml
CHANGED
|
@@ -103,6 +103,11 @@ types:
|
|
|
103
103
|
structuredSemanticQuery:
|
|
104
104
|
description: structuredSemanticQuery
|
|
105
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
|
|
106
111
|
SemanticQueryResponse:
|
|
107
112
|
description: Represents Semantic Engine query output
|
|
108
113
|
type: object
|