@salesforce/lds-adapters-analytics-wave-private 1.214.2 → 1.216.0
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.
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* For full license text, see the LICENSE.txt file
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$1,
|
|
7
|
+
import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$1, typeCheckConfig as typeCheckConfig$1, StoreKeyMap, createResourceParams as createResourceParams$1 } from '@luvio/engine';
|
|
8
8
|
|
|
9
9
|
const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
|
|
10
10
|
const { keys: ObjectKeys$1, create: ObjectCreate$1 } = Object;
|
|
@@ -48,10 +48,13 @@ const snapshotRefreshOptions = {
|
|
|
48
48
|
},
|
|
49
49
|
}
|
|
50
50
|
};
|
|
51
|
-
function generateParamConfigMetadata(name, required, coerceFn) {
|
|
51
|
+
function generateParamConfigMetadata(name, required, resourceType, typeCheckShape, isArrayShape = false, coerceFn) {
|
|
52
52
|
return {
|
|
53
53
|
name,
|
|
54
54
|
required,
|
|
55
|
+
resourceType,
|
|
56
|
+
typeCheckShape,
|
|
57
|
+
isArrayShape,
|
|
55
58
|
coerceFn,
|
|
56
59
|
};
|
|
57
60
|
}
|
|
@@ -216,26 +219,17 @@ function createResourceRequest(config) {
|
|
|
216
219
|
|
|
217
220
|
const adapterName = 'executeSoqlQueryPost';
|
|
218
221
|
const executeSoqlQueryPost_ConfigPropertyMetadata = [
|
|
219
|
-
generateParamConfigMetadata('query', true),
|
|
222
|
+
generateParamConfigMetadata('query', true, 2 /* Body */, 0 /* String */),
|
|
220
223
|
];
|
|
221
224
|
const executeSoqlQueryPost_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, executeSoqlQueryPost_ConfigPropertyMetadata);
|
|
222
|
-
|
|
223
|
-
const resourceParams = {
|
|
224
|
-
body: {
|
|
225
|
-
query: config.query
|
|
226
|
-
}
|
|
227
|
-
};
|
|
228
|
-
return resourceParams;
|
|
229
|
-
}
|
|
225
|
+
const createResourceParams = /*#__PURE__*/ createResourceParams$1(executeSoqlQueryPost_ConfigPropertyMetadata);
|
|
230
226
|
function keyBuilder(luvio, config) {
|
|
231
227
|
const resourceParams = createResourceParams(config);
|
|
232
228
|
return keyBuilder$1(luvio, resourceParams);
|
|
233
229
|
}
|
|
234
230
|
function typeCheckConfig(untrustedConfig) {
|
|
235
231
|
const config = {};
|
|
236
|
-
|
|
237
|
-
query: 0 /* String */,
|
|
238
|
-
});
|
|
232
|
+
typeCheckConfig$1(untrustedConfig, config, executeSoqlQueryPost_ConfigPropertyMetadata);
|
|
239
233
|
return config;
|
|
240
234
|
}
|
|
241
235
|
function validateAdapterConfig(untrustedConfig, configPropertyNames) {
|
|
@@ -57,6 +57,6 @@ export declare const snapshotRefreshOptions: {
|
|
|
57
57
|
export declare function stableJSONStringify(node: any): string | undefined;
|
|
58
58
|
export declare function getFetchResponseStatusText(status: number): string;
|
|
59
59
|
export declare function isUnfulfilledSnapshot<T, U>(snapshot: $64$luvio_engine_Snapshot<T, U>): snapshot is $64$luvio_engine_UnfulfilledSnapshot<T, U>;
|
|
60
|
-
export declare function generateParamConfigMetadata(name: string, required: boolean, coerceFn?: (v: unknown) => unknown): $64$luvio_engine_AdapterConfigMetadata;
|
|
60
|
+
export declare function generateParamConfigMetadata(name: string, required: boolean, resourceType: $64$luvio_engine_AdapterConfigMetadata['resourceType'], typeCheckShape: $64$luvio_engine_AdapterConfigMetadata['typeCheckShape'], isArrayShape?: boolean, coerceFn?: (v: unknown) => unknown): $64$luvio_engine_AdapterConfigMetadata;
|
|
61
61
|
export declare function buildAdapterValidationConfig(displayName: string, paramsMeta: $64$luvio_engine_AdapterConfigMetadata[]): AdapterValidationConfig;
|
|
62
62
|
export declare const keyPrefix = "WAVE";
|
|
@@ -8,7 +8,7 @@ export declare const executeSoqlQueryPost_ConfigPropertyNames: adapter$45$utils_
|
|
|
8
8
|
export interface ExecuteSoqlQueryPostConfig {
|
|
9
9
|
query: string;
|
|
10
10
|
}
|
|
11
|
-
export declare
|
|
11
|
+
export declare const createResourceParams: (config: ExecuteSoqlQueryPostConfig) => resources_postWaveSoql_ResourceRequestConfig;
|
|
12
12
|
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: ExecuteSoqlQueryPostConfig): string;
|
|
13
13
|
export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, config: ExecuteSoqlQueryPostConfig): $64$luvio_engine_NormalizedKeyMetadata;
|
|
14
14
|
export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<ExecuteSoqlQueryPostConfig>): adapter$45$utils_Untrusted<ExecuteSoqlQueryPostConfig>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-adapters-analytics-wave-private",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.216.0",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
5
5
|
"description": "The Einstein Analytics family of APIs that are not publically exposed",
|
|
6
6
|
"main": "dist/es/es2018/analytics-wave-private.js",
|
package/sfdc/index.js
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
/* proxy-compat-disable */
|
|
15
15
|
import { createInstrumentedAdapter, createLDSAdapter, createWireAdapterConstructor, createImperativeAdapter } from 'force/ldsBindings';
|
|
16
16
|
import { withDefaultLuvio } from 'force/ldsEngine';
|
|
17
|
-
import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$1,
|
|
17
|
+
import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$1, typeCheckConfig as typeCheckConfig$1, StoreKeyMap, createResourceParams as createResourceParams$1 } from 'force/luvioEngine';
|
|
18
18
|
|
|
19
19
|
const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
|
|
20
20
|
const { keys: ObjectKeys$1, create: ObjectCreate$1 } = Object;
|
|
@@ -58,10 +58,13 @@ const snapshotRefreshOptions = {
|
|
|
58
58
|
},
|
|
59
59
|
}
|
|
60
60
|
};
|
|
61
|
-
function generateParamConfigMetadata(name, required, coerceFn) {
|
|
61
|
+
function generateParamConfigMetadata(name, required, resourceType, typeCheckShape, isArrayShape = false, coerceFn) {
|
|
62
62
|
return {
|
|
63
63
|
name,
|
|
64
64
|
required,
|
|
65
|
+
resourceType,
|
|
66
|
+
typeCheckShape,
|
|
67
|
+
isArrayShape,
|
|
65
68
|
coerceFn,
|
|
66
69
|
};
|
|
67
70
|
}
|
|
@@ -226,26 +229,17 @@ function createResourceRequest(config) {
|
|
|
226
229
|
|
|
227
230
|
const adapterName = 'executeSoqlQueryPost';
|
|
228
231
|
const executeSoqlQueryPost_ConfigPropertyMetadata = [
|
|
229
|
-
generateParamConfigMetadata('query', true),
|
|
232
|
+
generateParamConfigMetadata('query', true, 2 /* Body */, 0 /* String */),
|
|
230
233
|
];
|
|
231
234
|
const executeSoqlQueryPost_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, executeSoqlQueryPost_ConfigPropertyMetadata);
|
|
232
|
-
|
|
233
|
-
const resourceParams = {
|
|
234
|
-
body: {
|
|
235
|
-
query: config.query
|
|
236
|
-
}
|
|
237
|
-
};
|
|
238
|
-
return resourceParams;
|
|
239
|
-
}
|
|
235
|
+
const createResourceParams = /*#__PURE__*/ createResourceParams$1(executeSoqlQueryPost_ConfigPropertyMetadata);
|
|
240
236
|
function keyBuilder(luvio, config) {
|
|
241
237
|
const resourceParams = createResourceParams(config);
|
|
242
238
|
return keyBuilder$1(luvio, resourceParams);
|
|
243
239
|
}
|
|
244
240
|
function typeCheckConfig(untrustedConfig) {
|
|
245
241
|
const config = {};
|
|
246
|
-
|
|
247
|
-
query: 0 /* String */,
|
|
248
|
-
});
|
|
242
|
+
typeCheckConfig$1(untrustedConfig, config, executeSoqlQueryPost_ConfigPropertyMetadata);
|
|
249
243
|
return config;
|
|
250
244
|
}
|
|
251
245
|
function validateAdapterConfig(untrustedConfig, configPropertyNames) {
|
|
@@ -341,4 +335,4 @@ withDefaultLuvio((luvio) => {
|
|
|
341
335
|
});
|
|
342
336
|
|
|
343
337
|
export { executeSoqlQueryPost, executeSoqlQueryPost_imperative };
|
|
344
|
-
// version: 1.
|
|
338
|
+
// version: 1.216.0-1d57d45fe
|