@salesforce/lds-adapters-industries-explainability 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.
- package/dist/es/es2018/industries-explainability.js +21 -45
- package/dist/es/es2018/types/src/generated/adapters/adapter-utils.d.ts +1 -1
- package/dist/es/es2018/types/src/generated/adapters/getExplainabilityActionLogs.d.ts +1 -1
- package/dist/es/es2018/types/src/generated/adapters/storeExplainabilityActionLog.d.ts +1 -1
- package/package.json +1 -1
- package/sfdc/index.js +22 -46
|
@@ -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$2, StoreKeyMap, createResourceParams as createResourceParams$2 } from '@luvio/engine';
|
|
8
8
|
|
|
9
9
|
const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
|
|
10
10
|
const { keys: ObjectKeys, create: ObjectCreate } = 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
|
}
|
|
@@ -272,48 +275,28 @@ function createResourceRequest$1(config) {
|
|
|
272
275
|
|
|
273
276
|
const adapterName$1 = 'getExplainabilityActionLogs';
|
|
274
277
|
const getExplainabilityActionLogs_ConfigPropertyMetadata = [
|
|
275
|
-
generateParamConfigMetadata('actionContextCode', false),
|
|
276
|
-
generateParamConfigMetadata('applicationSubType', false),
|
|
277
|
-
generateParamConfigMetadata('applicationType', false),
|
|
278
|
-
generateParamConfigMetadata('createdAfter', false),
|
|
279
|
-
generateParamConfigMetadata('createdBefore', false),
|
|
280
|
-
generateParamConfigMetadata('pageSize', false),
|
|
281
|
-
generateParamConfigMetadata('processType', false),
|
|
282
|
-
generateParamConfigMetadata('queryMore', false),
|
|
283
|
-
generateParamConfigMetadata('primaryFilter', false),
|
|
284
|
-
generateParamConfigMetadata('secondaryFilter', false),
|
|
285
|
-
generateParamConfigMetadata('additionalFilter', false),
|
|
286
|
-
generateParamConfigMetadata('sortDirection', false),
|
|
278
|
+
generateParamConfigMetadata('actionContextCode', false, 1 /* QueryParameter */, 0 /* String */),
|
|
279
|
+
generateParamConfigMetadata('applicationSubType', false, 1 /* QueryParameter */, 0 /* String */),
|
|
280
|
+
generateParamConfigMetadata('applicationType', false, 1 /* QueryParameter */, 0 /* String */),
|
|
281
|
+
generateParamConfigMetadata('createdAfter', false, 1 /* QueryParameter */, 0 /* String */),
|
|
282
|
+
generateParamConfigMetadata('createdBefore', false, 1 /* QueryParameter */, 0 /* String */),
|
|
283
|
+
generateParamConfigMetadata('pageSize', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
284
|
+
generateParamConfigMetadata('processType', false, 1 /* QueryParameter */, 0 /* String */),
|
|
285
|
+
generateParamConfigMetadata('queryMore', false, 1 /* QueryParameter */, 0 /* String */),
|
|
286
|
+
generateParamConfigMetadata('primaryFilter', false, 1 /* QueryParameter */, 0 /* String */),
|
|
287
|
+
generateParamConfigMetadata('secondaryFilter', false, 1 /* QueryParameter */, 0 /* String */),
|
|
288
|
+
generateParamConfigMetadata('additionalFilter', false, 1 /* QueryParameter */, 0 /* String */),
|
|
289
|
+
generateParamConfigMetadata('sortDirection', false, 1 /* QueryParameter */, 0 /* String */),
|
|
287
290
|
];
|
|
288
291
|
const getExplainabilityActionLogs_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, getExplainabilityActionLogs_ConfigPropertyMetadata);
|
|
289
|
-
|
|
290
|
-
const resourceParams = {
|
|
291
|
-
queryParams: {
|
|
292
|
-
actionContextCode: config.actionContextCode, applicationSubType: config.applicationSubType, applicationType: config.applicationType, createdAfter: config.createdAfter, createdBefore: config.createdBefore, pageSize: config.pageSize, processType: config.processType, queryMore: config.queryMore, primaryFilter: config.primaryFilter, secondaryFilter: config.secondaryFilter, additionalFilter: config.additionalFilter, sortDirection: config.sortDirection
|
|
293
|
-
}
|
|
294
|
-
};
|
|
295
|
-
return resourceParams;
|
|
296
|
-
}
|
|
292
|
+
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$2(getExplainabilityActionLogs_ConfigPropertyMetadata);
|
|
297
293
|
function keyBuilder$1(luvio, config) {
|
|
298
294
|
const resourceParams = createResourceParams$1(config);
|
|
299
295
|
return keyBuilder$2(luvio, resourceParams);
|
|
300
296
|
}
|
|
301
297
|
function typeCheckConfig$1(untrustedConfig) {
|
|
302
298
|
const config = {};
|
|
303
|
-
|
|
304
|
-
actionContextCode: 0 /* String */,
|
|
305
|
-
applicationSubType: 0 /* String */,
|
|
306
|
-
applicationType: 0 /* String */,
|
|
307
|
-
createdAfter: 0 /* String */,
|
|
308
|
-
createdBefore: 0 /* String */,
|
|
309
|
-
pageSize: 3 /* Integer */,
|
|
310
|
-
processType: 0 /* String */,
|
|
311
|
-
queryMore: 0 /* String */,
|
|
312
|
-
primaryFilter: 0 /* String */,
|
|
313
|
-
secondaryFilter: 0 /* String */,
|
|
314
|
-
additionalFilter: 0 /* String */,
|
|
315
|
-
sortDirection: 0 /* String */,
|
|
316
|
-
});
|
|
299
|
+
typeCheckConfig$2(untrustedConfig, config, getExplainabilityActionLogs_ConfigPropertyMetadata);
|
|
317
300
|
return config;
|
|
318
301
|
}
|
|
319
302
|
function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
|
|
@@ -561,17 +544,10 @@ function createResourceRequest(config) {
|
|
|
561
544
|
|
|
562
545
|
const adapterName = 'storeExplainabilityActionLog';
|
|
563
546
|
const storeExplainabilityActionLog_ConfigPropertyMetadata = [
|
|
564
|
-
generateParamConfigMetadata('explainabilityActionLogDefinition', true),
|
|
547
|
+
generateParamConfigMetadata('explainabilityActionLogDefinition', true, 2 /* Body */, 4 /* Unsupported */),
|
|
565
548
|
];
|
|
566
549
|
const storeExplainabilityActionLog_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, storeExplainabilityActionLog_ConfigPropertyMetadata);
|
|
567
|
-
|
|
568
|
-
const resourceParams = {
|
|
569
|
-
body: {
|
|
570
|
-
explainabilityActionLogDefinition: config.explainabilityActionLogDefinition
|
|
571
|
-
}
|
|
572
|
-
};
|
|
573
|
-
return resourceParams;
|
|
574
|
-
}
|
|
550
|
+
const createResourceParams = /*#__PURE__*/ createResourceParams$2(storeExplainabilityActionLog_ConfigPropertyMetadata);
|
|
575
551
|
function typeCheckConfig(untrustedConfig) {
|
|
576
552
|
const config = {};
|
|
577
553
|
const untrustedConfig_explainabilityActionLogDefinition = untrustedConfig.explainabilityActionLogDefinition;
|
|
@@ -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 = "explainability";
|
|
@@ -19,7 +19,7 @@ export interface GetExplainabilityActionLogsConfig {
|
|
|
19
19
|
additionalFilter?: string;
|
|
20
20
|
sortDirection?: string;
|
|
21
21
|
}
|
|
22
|
-
export declare
|
|
22
|
+
export declare const createResourceParams: (config: GetExplainabilityActionLogsConfig) => resources_getConnectDecisionExplainerActionLogs_ResourceRequestConfig;
|
|
23
23
|
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: GetExplainabilityActionLogsConfig): string;
|
|
24
24
|
export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, config: GetExplainabilityActionLogsConfig): $64$luvio_engine_NormalizedKeyMetadata;
|
|
25
25
|
export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<GetExplainabilityActionLogsConfig>): adapter$45$utils_Untrusted<GetExplainabilityActionLogsConfig>;
|
|
@@ -9,7 +9,7 @@ export declare const storeExplainabilityActionLog_ConfigPropertyNames: adapter$4
|
|
|
9
9
|
export interface StoreExplainabilityActionLogConfig {
|
|
10
10
|
explainabilityActionLogDefinition: types_ExplainabilityActionLogInputRepresentation_ExplainabilityActionLogInputRepresentation;
|
|
11
11
|
}
|
|
12
|
-
export declare
|
|
12
|
+
export declare const createResourceParams: (config: StoreExplainabilityActionLogConfig) => resources_postConnectDecisionExplainerActionLogs_ResourceRequestConfig;
|
|
13
13
|
export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<StoreExplainabilityActionLogConfig>): adapter$45$utils_Untrusted<StoreExplainabilityActionLogConfig>;
|
|
14
14
|
export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): StoreExplainabilityActionLogConfig | null;
|
|
15
15
|
export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: StoreExplainabilityActionLogConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<import("@luvio/engine").FulfilledSnapshot<types_ExplainabilityActionLogCreateRepresentation_ExplainabilityActionLogCreateRepresentation, {}> | import("@luvio/engine").StaleSnapshot<types_ExplainabilityActionLogCreateRepresentation_ExplainabilityActionLogCreateRepresentation, {}> | import("@luvio/engine").PendingSnapshot<types_ExplainabilityActionLogCreateRepresentation_ExplainabilityActionLogCreateRepresentation, any>>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-adapters-industries-explainability",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.216.0",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
5
5
|
"description": "API to fetch and post centralised explainability related meta data and transactional data",
|
|
6
6
|
"main": "dist/es/es2018/industries-explainability.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$2, StoreKeyMap, createResourceParams as createResourceParams$2 } from 'force/luvioEngine';
|
|
18
18
|
|
|
19
19
|
const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
|
|
20
20
|
const { keys: ObjectKeys, create: ObjectCreate } = 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
|
}
|
|
@@ -282,48 +285,28 @@ function createResourceRequest$1(config) {
|
|
|
282
285
|
|
|
283
286
|
const adapterName$1 = 'getExplainabilityActionLogs';
|
|
284
287
|
const getExplainabilityActionLogs_ConfigPropertyMetadata = [
|
|
285
|
-
generateParamConfigMetadata('actionContextCode', false),
|
|
286
|
-
generateParamConfigMetadata('applicationSubType', false),
|
|
287
|
-
generateParamConfigMetadata('applicationType', false),
|
|
288
|
-
generateParamConfigMetadata('createdAfter', false),
|
|
289
|
-
generateParamConfigMetadata('createdBefore', false),
|
|
290
|
-
generateParamConfigMetadata('pageSize', false),
|
|
291
|
-
generateParamConfigMetadata('processType', false),
|
|
292
|
-
generateParamConfigMetadata('queryMore', false),
|
|
293
|
-
generateParamConfigMetadata('primaryFilter', false),
|
|
294
|
-
generateParamConfigMetadata('secondaryFilter', false),
|
|
295
|
-
generateParamConfigMetadata('additionalFilter', false),
|
|
296
|
-
generateParamConfigMetadata('sortDirection', false),
|
|
288
|
+
generateParamConfigMetadata('actionContextCode', false, 1 /* QueryParameter */, 0 /* String */),
|
|
289
|
+
generateParamConfigMetadata('applicationSubType', false, 1 /* QueryParameter */, 0 /* String */),
|
|
290
|
+
generateParamConfigMetadata('applicationType', false, 1 /* QueryParameter */, 0 /* String */),
|
|
291
|
+
generateParamConfigMetadata('createdAfter', false, 1 /* QueryParameter */, 0 /* String */),
|
|
292
|
+
generateParamConfigMetadata('createdBefore', false, 1 /* QueryParameter */, 0 /* String */),
|
|
293
|
+
generateParamConfigMetadata('pageSize', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
294
|
+
generateParamConfigMetadata('processType', false, 1 /* QueryParameter */, 0 /* String */),
|
|
295
|
+
generateParamConfigMetadata('queryMore', false, 1 /* QueryParameter */, 0 /* String */),
|
|
296
|
+
generateParamConfigMetadata('primaryFilter', false, 1 /* QueryParameter */, 0 /* String */),
|
|
297
|
+
generateParamConfigMetadata('secondaryFilter', false, 1 /* QueryParameter */, 0 /* String */),
|
|
298
|
+
generateParamConfigMetadata('additionalFilter', false, 1 /* QueryParameter */, 0 /* String */),
|
|
299
|
+
generateParamConfigMetadata('sortDirection', false, 1 /* QueryParameter */, 0 /* String */),
|
|
297
300
|
];
|
|
298
301
|
const getExplainabilityActionLogs_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, getExplainabilityActionLogs_ConfigPropertyMetadata);
|
|
299
|
-
|
|
300
|
-
const resourceParams = {
|
|
301
|
-
queryParams: {
|
|
302
|
-
actionContextCode: config.actionContextCode, applicationSubType: config.applicationSubType, applicationType: config.applicationType, createdAfter: config.createdAfter, createdBefore: config.createdBefore, pageSize: config.pageSize, processType: config.processType, queryMore: config.queryMore, primaryFilter: config.primaryFilter, secondaryFilter: config.secondaryFilter, additionalFilter: config.additionalFilter, sortDirection: config.sortDirection
|
|
303
|
-
}
|
|
304
|
-
};
|
|
305
|
-
return resourceParams;
|
|
306
|
-
}
|
|
302
|
+
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$2(getExplainabilityActionLogs_ConfigPropertyMetadata);
|
|
307
303
|
function keyBuilder$1(luvio, config) {
|
|
308
304
|
const resourceParams = createResourceParams$1(config);
|
|
309
305
|
return keyBuilder$2(luvio, resourceParams);
|
|
310
306
|
}
|
|
311
307
|
function typeCheckConfig$1(untrustedConfig) {
|
|
312
308
|
const config = {};
|
|
313
|
-
|
|
314
|
-
actionContextCode: 0 /* String */,
|
|
315
|
-
applicationSubType: 0 /* String */,
|
|
316
|
-
applicationType: 0 /* String */,
|
|
317
|
-
createdAfter: 0 /* String */,
|
|
318
|
-
createdBefore: 0 /* String */,
|
|
319
|
-
pageSize: 3 /* Integer */,
|
|
320
|
-
processType: 0 /* String */,
|
|
321
|
-
queryMore: 0 /* String */,
|
|
322
|
-
primaryFilter: 0 /* String */,
|
|
323
|
-
secondaryFilter: 0 /* String */,
|
|
324
|
-
additionalFilter: 0 /* String */,
|
|
325
|
-
sortDirection: 0 /* String */,
|
|
326
|
-
});
|
|
309
|
+
typeCheckConfig$2(untrustedConfig, config, getExplainabilityActionLogs_ConfigPropertyMetadata);
|
|
327
310
|
return config;
|
|
328
311
|
}
|
|
329
312
|
function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
|
|
@@ -571,17 +554,10 @@ function createResourceRequest(config) {
|
|
|
571
554
|
|
|
572
555
|
const adapterName = 'storeExplainabilityActionLog';
|
|
573
556
|
const storeExplainabilityActionLog_ConfigPropertyMetadata = [
|
|
574
|
-
generateParamConfigMetadata('explainabilityActionLogDefinition', true),
|
|
557
|
+
generateParamConfigMetadata('explainabilityActionLogDefinition', true, 2 /* Body */, 4 /* Unsupported */),
|
|
575
558
|
];
|
|
576
559
|
const storeExplainabilityActionLog_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, storeExplainabilityActionLog_ConfigPropertyMetadata);
|
|
577
|
-
|
|
578
|
-
const resourceParams = {
|
|
579
|
-
body: {
|
|
580
|
-
explainabilityActionLogDefinition: config.explainabilityActionLogDefinition
|
|
581
|
-
}
|
|
582
|
-
};
|
|
583
|
-
return resourceParams;
|
|
584
|
-
}
|
|
560
|
+
const createResourceParams = /*#__PURE__*/ createResourceParams$2(storeExplainabilityActionLog_ConfigPropertyMetadata);
|
|
585
561
|
function typeCheckConfig(untrustedConfig) {
|
|
586
562
|
const config = {};
|
|
587
563
|
const untrustedConfig_explainabilityActionLogDefinition = untrustedConfig.explainabilityActionLogDefinition;
|
|
@@ -662,4 +638,4 @@ withDefaultLuvio((luvio) => {
|
|
|
662
638
|
});
|
|
663
639
|
|
|
664
640
|
export { getExplainabilityActionLogs, getExplainabilityActionLogs_imperative, storeExplainabilityActionLog };
|
|
665
|
-
// version: 1.
|
|
641
|
+
// version: 1.216.0-1d57d45fe
|