@salesforce/lds-adapters-industries-featurevalidation 1.169.0 → 1.170.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/es/es2018/industries-featurevalidation.js +9 -7
- package/dist/es/es2018/types/src/generated/resources/postConnectIndustriesFeatureValidation.d.ts +2 -2
- package/dist/es/es2018/types/src/generated/types/FeatureValidationFieldValuesRepresentation.d.ts +2 -2
- package/dist/es/es2018/types/src/generated/types/FeatureValidationInputDetailsRepresentation.d.ts +2 -2
- package/dist/es/es2018/types/src/generated/types/FeatureValidationInputRepresentation.d.ts +2 -2
- package/dist/es/es2018/types/src/generated/types/FeatureValidationOutputDetailsRepresentation.d.ts +2 -2
- package/dist/es/es2018/types/src/generated/types/FeatureValidationOutputRepresentation.d.ts +1 -1
- package/dist/es/es2018/types/src/generated/types/FeatureValidationWrapperInputRepresentation.d.ts +2 -2
- package/package.json +1 -1
- package/sfdc/index.js +10 -8
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* For full license text, see the LICENSE.txt file
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import { serializeStructuredKey,
|
|
7
|
+
import { serializeStructuredKey, deepFreeze, StoreKeyMap } from '@luvio/engine';
|
|
8
8
|
|
|
9
9
|
const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
|
|
10
10
|
const { keys: ObjectKeys, create: ObjectCreate } = Object;
|
|
@@ -399,8 +399,7 @@ const ingest = function FeatureValidationOutputRepresentationIngest(input, path,
|
|
|
399
399
|
}
|
|
400
400
|
return createLink(key);
|
|
401
401
|
};
|
|
402
|
-
function getTypeCacheKeys(luvio, input, fullPathFactory) {
|
|
403
|
-
const rootKeySet = new StoreKeyMap();
|
|
402
|
+
function getTypeCacheKeys(rootKeySet, luvio, input, fullPathFactory) {
|
|
404
403
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
405
404
|
const rootKey = keyBuilderFromType(luvio, input);
|
|
406
405
|
rootKeySet.set(rootKey, {
|
|
@@ -408,14 +407,13 @@ function getTypeCacheKeys(luvio, input, fullPathFactory) {
|
|
|
408
407
|
representationName: RepresentationType,
|
|
409
408
|
mergeable: false
|
|
410
409
|
});
|
|
411
|
-
return rootKeySet;
|
|
412
410
|
}
|
|
413
411
|
|
|
414
412
|
function select(luvio, params) {
|
|
415
413
|
return select$1();
|
|
416
414
|
}
|
|
417
|
-
function getResponseCacheKeys(luvio, resourceParams, response) {
|
|
418
|
-
|
|
415
|
+
function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
|
|
416
|
+
getTypeCacheKeys(storeKeyMap, luvio, response);
|
|
419
417
|
}
|
|
420
418
|
function ingestSuccess(luvio, resourceParams, response) {
|
|
421
419
|
const { body } = response;
|
|
@@ -493,7 +491,11 @@ function buildNetworkSnapshot(luvio, config, options) {
|
|
|
493
491
|
return luvio.handleSuccessResponse(() => {
|
|
494
492
|
const snapshot = ingestSuccess(luvio, resourceParams, response);
|
|
495
493
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
496
|
-
}, () =>
|
|
494
|
+
}, () => {
|
|
495
|
+
const cache = new StoreKeyMap();
|
|
496
|
+
getResponseCacheKeys(cache, luvio, resourceParams, response.body);
|
|
497
|
+
return cache;
|
|
498
|
+
});
|
|
497
499
|
}, (response) => {
|
|
498
500
|
deepFreeze(response);
|
|
499
501
|
throw response;
|
package/dist/es/es2018/types/src/generated/resources/postConnectIndustriesFeatureValidation.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FeatureValidationInputRepresentation as types_FeatureValidationInputRepresentation_FeatureValidationInputRepresentation } from '../types/FeatureValidationInputRepresentation';
|
|
2
|
-
import { Luvio as $64$luvio_engine_Luvio, Fragment as $64$luvio_engine_Fragment,
|
|
2
|
+
import { Luvio as $64$luvio_engine_Luvio, Fragment as $64$luvio_engine_Fragment, FetchResponse as $64$luvio_engine_FetchResponse, FulfilledSnapshot as $64$luvio_engine_FulfilledSnapshot, StaleSnapshot as $64$luvio_engine_StaleSnapshot, PendingSnapshot as $64$luvio_engine_PendingSnapshot, ResourceRequest as $64$luvio_engine_ResourceRequest } from '@luvio/engine';
|
|
3
3
|
import { FeatureValidationOutputRepresentation as types_FeatureValidationOutputRepresentation_FeatureValidationOutputRepresentation } from '../types/FeatureValidationOutputRepresentation';
|
|
4
4
|
export interface ResourceRequestConfig {
|
|
5
5
|
body: {
|
|
@@ -7,7 +7,7 @@ export interface ResourceRequestConfig {
|
|
|
7
7
|
};
|
|
8
8
|
}
|
|
9
9
|
export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
|
|
10
|
-
export declare function getResponseCacheKeys(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_FeatureValidationOutputRepresentation_FeatureValidationOutputRepresentation):
|
|
10
|
+
export declare function getResponseCacheKeys(storeKeyMap: any, luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_FeatureValidationOutputRepresentation_FeatureValidationOutputRepresentation): void;
|
|
11
11
|
export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_FeatureValidationOutputRepresentation_FeatureValidationOutputRepresentation>): $64$luvio_engine_FulfilledSnapshot<types_FeatureValidationOutputRepresentation_FeatureValidationOutputRepresentation, {}> | $64$luvio_engine_StaleSnapshot<types_FeatureValidationOutputRepresentation_FeatureValidationOutputRepresentation, {}> | $64$luvio_engine_PendingSnapshot<types_FeatureValidationOutputRepresentation_FeatureValidationOutputRepresentation, any>;
|
|
12
12
|
export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
|
|
13
13
|
export default createResourceRequest;
|
package/dist/es/es2018/types/src/generated/types/FeatureValidationFieldValuesRepresentation.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest,
|
|
1
|
+
import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
|
|
2
2
|
export declare const VERSION = "631aec0cb3216fffb314c3734733f29b";
|
|
3
3
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
4
4
|
export declare const RepresentationType: string;
|
|
@@ -6,7 +6,7 @@ export declare function normalize(input: FeatureValidationFieldValuesRepresentat
|
|
|
6
6
|
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
7
7
|
export declare function equals(existing: FeatureValidationFieldValuesRepresentationNormalized, incoming: FeatureValidationFieldValuesRepresentationNormalized): boolean;
|
|
8
8
|
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
9
|
-
export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: FeatureValidationFieldValuesRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata):
|
|
9
|
+
export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: FeatureValidationFieldValuesRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
10
10
|
/**
|
|
11
11
|
* Select fields that were validated as part of use-case implementation.
|
|
12
12
|
*
|
package/dist/es/es2018/types/src/generated/types/FeatureValidationInputDetailsRepresentation.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest,
|
|
1
|
+
import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
|
|
2
2
|
export declare const VERSION = "c44e6bb91e9174cdf2f457aab34ebcf4";
|
|
3
3
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
4
4
|
export declare const RepresentationType: string;
|
|
@@ -6,7 +6,7 @@ export declare function normalize(input: FeatureValidationInputDetailsRepresenta
|
|
|
6
6
|
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
7
7
|
export declare function equals(existing: FeatureValidationInputDetailsRepresentationNormalized, incoming: FeatureValidationInputDetailsRepresentationNormalized): boolean;
|
|
8
8
|
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
9
|
-
export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: FeatureValidationInputDetailsRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata):
|
|
9
|
+
export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: FeatureValidationInputDetailsRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
10
10
|
/**
|
|
11
11
|
* Holds BPO recordUsage and bpo recordId. example: {"recordUsage": "Facility",
|
|
12
12
|
"bpoRecordId": "0bSxx0000000005EAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest,
|
|
1
|
+
import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
|
|
2
2
|
export declare const VERSION = "48d9d6d93a46779d56d7eae66a5f2333";
|
|
3
3
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
4
4
|
export declare const RepresentationType: string;
|
|
@@ -6,7 +6,7 @@ export declare function normalize(input: FeatureValidationInputRepresentation, e
|
|
|
6
6
|
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
7
7
|
export declare function equals(existing: FeatureValidationInputRepresentationNormalized, incoming: FeatureValidationInputRepresentationNormalized): boolean;
|
|
8
8
|
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
9
|
-
export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: FeatureValidationInputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata):
|
|
9
|
+
export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: FeatureValidationInputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
10
10
|
/**
|
|
11
11
|
* Feature validation input
|
|
12
12
|
*
|
package/dist/es/es2018/types/src/generated/types/FeatureValidationOutputDetailsRepresentation.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FeatureValidationFieldValuesRepresentation as FeatureValidationFieldValuesRepresentation_FeatureValidationFieldValuesRepresentation } from './FeatureValidationFieldValuesRepresentation';
|
|
2
|
-
import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest,
|
|
2
|
+
import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
|
|
3
3
|
export declare const VERSION = "b2421cf8b77991983bf69e64a9fa0236";
|
|
4
4
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
5
5
|
export declare const RepresentationType: string;
|
|
@@ -7,7 +7,7 @@ export declare function normalize(input: FeatureValidationOutputDetailsRepresent
|
|
|
7
7
|
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
8
8
|
export declare function equals(existing: FeatureValidationOutputDetailsRepresentationNormalized, incoming: FeatureValidationOutputDetailsRepresentationNormalized): boolean;
|
|
9
9
|
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
10
|
-
export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: FeatureValidationOutputDetailsRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata):
|
|
10
|
+
export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: FeatureValidationOutputDetailsRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
11
11
|
/**
|
|
12
12
|
* Holds BPO name, bpoRecordId, select fields from the bpo and related error message.
|
|
13
13
|
*
|
|
@@ -17,7 +17,7 @@ export declare function normalize(input: FeatureValidationOutputRepresentation,
|
|
|
17
17
|
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
18
18
|
export declare function equals(existing: FeatureValidationOutputRepresentationNormalized, incoming: FeatureValidationOutputRepresentationNormalized): boolean;
|
|
19
19
|
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
20
|
-
export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: FeatureValidationOutputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata):
|
|
20
|
+
export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: FeatureValidationOutputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
21
21
|
/**
|
|
22
22
|
* FeatureValidation output.
|
|
23
23
|
*
|
package/dist/es/es2018/types/src/generated/types/FeatureValidationWrapperInputRepresentation.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FeatureValidationInputRepresentation as FeatureValidationInputRepresentation_FeatureValidationInputRepresentation } from './FeatureValidationInputRepresentation';
|
|
2
|
-
import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest,
|
|
2
|
+
import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
|
|
3
3
|
export declare const VERSION = "4207845dfb88c988fe5cc9446004b714";
|
|
4
4
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
5
5
|
export declare const RepresentationType: string;
|
|
@@ -7,7 +7,7 @@ export declare function normalize(input: FeatureValidationWrapperInputRepresenta
|
|
|
7
7
|
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
8
8
|
export declare function equals(existing: FeatureValidationWrapperInputRepresentationNormalized, incoming: FeatureValidationWrapperInputRepresentationNormalized): boolean;
|
|
9
9
|
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
10
|
-
export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: FeatureValidationWrapperInputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata):
|
|
10
|
+
export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: FeatureValidationWrapperInputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
11
11
|
/**
|
|
12
12
|
* wrapper of FeatureValidationInputRepresentation
|
|
13
13
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-adapters-industries-featurevalidation",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.170.1",
|
|
4
4
|
"description": "Feature validation tool to debug setup issues.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "dist/umd/es2018/industries-featurevalidation.js",
|
package/sfdc/index.js
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
*/
|
|
14
14
|
/* proxy-compat-disable */
|
|
15
15
|
import { withDefaultLuvio } from 'force/ldsEngine';
|
|
16
|
-
import { serializeStructuredKey,
|
|
16
|
+
import { serializeStructuredKey, deepFreeze, StoreKeyMap } from 'force/luvioEngine';
|
|
17
17
|
|
|
18
18
|
const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
|
|
19
19
|
const { keys: ObjectKeys, create: ObjectCreate } = Object;
|
|
@@ -408,8 +408,7 @@ const ingest = function FeatureValidationOutputRepresentationIngest(input, path,
|
|
|
408
408
|
}
|
|
409
409
|
return createLink(key);
|
|
410
410
|
};
|
|
411
|
-
function getTypeCacheKeys(luvio, input, fullPathFactory) {
|
|
412
|
-
const rootKeySet = new StoreKeyMap();
|
|
411
|
+
function getTypeCacheKeys(rootKeySet, luvio, input, fullPathFactory) {
|
|
413
412
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
414
413
|
const rootKey = keyBuilderFromType(luvio, input);
|
|
415
414
|
rootKeySet.set(rootKey, {
|
|
@@ -417,14 +416,13 @@ function getTypeCacheKeys(luvio, input, fullPathFactory) {
|
|
|
417
416
|
representationName: RepresentationType,
|
|
418
417
|
mergeable: false
|
|
419
418
|
});
|
|
420
|
-
return rootKeySet;
|
|
421
419
|
}
|
|
422
420
|
|
|
423
421
|
function select(luvio, params) {
|
|
424
422
|
return select$1();
|
|
425
423
|
}
|
|
426
|
-
function getResponseCacheKeys(luvio, resourceParams, response) {
|
|
427
|
-
|
|
424
|
+
function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
|
|
425
|
+
getTypeCacheKeys(storeKeyMap, luvio, response);
|
|
428
426
|
}
|
|
429
427
|
function ingestSuccess(luvio, resourceParams, response) {
|
|
430
428
|
const { body } = response;
|
|
@@ -502,7 +500,11 @@ function buildNetworkSnapshot(luvio, config, options) {
|
|
|
502
500
|
return luvio.handleSuccessResponse(() => {
|
|
503
501
|
const snapshot = ingestSuccess(luvio, resourceParams, response);
|
|
504
502
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
505
|
-
}, () =>
|
|
503
|
+
}, () => {
|
|
504
|
+
const cache = new StoreKeyMap();
|
|
505
|
+
getResponseCacheKeys(cache, luvio, resourceParams, response.body);
|
|
506
|
+
return cache;
|
|
507
|
+
});
|
|
506
508
|
}, (response) => {
|
|
507
509
|
deepFreeze(response);
|
|
508
510
|
throw response;
|
|
@@ -537,4 +539,4 @@ withDefaultLuvio((luvio) => {
|
|
|
537
539
|
});
|
|
538
540
|
|
|
539
541
|
export { featureValidation };
|
|
540
|
-
// version: 1.
|
|
542
|
+
// version: 1.170.1-5fb216cf1
|