@salesforce/lds-adapters-industries-serviceprocess 1.170.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-serviceprocess.js +9 -7
- package/dist/es/es2018/types/src/generated/resources/getConnectServiceExcellenceServiceCatalogRequestLayoutDataCaseById.d.ts +2 -2
- package/dist/es/es2018/types/src/generated/types/AttributeRepresentation.d.ts +2 -2
- package/dist/es/es2018/types/src/generated/types/GenericObjectOutput.d.ts +2 -2
- package/dist/es/es2018/types/src/generated/types/ServiceProcessRequestLayoutDataRepresentation.d.ts +2 -2
- package/dist/es/es2018/types/src/generated/types/SvcCatalogItemGroupRepresentation.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$1, create: ObjectCreate$1 } = Object;
|
|
@@ -256,8 +256,7 @@ const ingest = function ServiceProcessRequestLayoutDataRepresentationIngest(inpu
|
|
|
256
256
|
}
|
|
257
257
|
return createLink(key);
|
|
258
258
|
};
|
|
259
|
-
function getTypeCacheKeys(luvio, input, fullPathFactory) {
|
|
260
|
-
const rootKeySet = new StoreKeyMap();
|
|
259
|
+
function getTypeCacheKeys(rootKeySet, luvio, input, fullPathFactory) {
|
|
261
260
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
262
261
|
const rootKey = fullPathFactory();
|
|
263
262
|
rootKeySet.set(rootKey, {
|
|
@@ -265,7 +264,6 @@ function getTypeCacheKeys(luvio, input, fullPathFactory) {
|
|
|
265
264
|
representationName: RepresentationType,
|
|
266
265
|
mergeable: false
|
|
267
266
|
});
|
|
268
|
-
return rootKeySet;
|
|
269
267
|
}
|
|
270
268
|
|
|
271
269
|
function select(luvio, params) {
|
|
@@ -274,8 +272,8 @@ function select(luvio, params) {
|
|
|
274
272
|
function keyBuilder$1(luvio, params) {
|
|
275
273
|
return keyPrefix + '::ServiceProcessRequestLayoutDataRepresentation:(' + 'Id:' + params.urlParams.Id + ')';
|
|
276
274
|
}
|
|
277
|
-
function getResponseCacheKeys(luvio, resourceParams, response) {
|
|
278
|
-
|
|
275
|
+
function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
|
|
276
|
+
getTypeCacheKeys(storeKeyMap, luvio, response, () => keyBuilder$1(luvio, resourceParams));
|
|
279
277
|
}
|
|
280
278
|
function ingestSuccess(luvio, resourceParams, response, snapshotRefresh) {
|
|
281
279
|
const { body } = response;
|
|
@@ -383,7 +381,11 @@ function buildNetworkSnapshot(luvio, config, options) {
|
|
|
383
381
|
const request = createResourceRequest(resourceParams);
|
|
384
382
|
return luvio.dispatchResourceRequest(request, options)
|
|
385
383
|
.then((response) => {
|
|
386
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess(luvio, config, resourceParams, response), () =>
|
|
384
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess(luvio, config, resourceParams, response), () => {
|
|
385
|
+
const cache = new StoreKeyMap();
|
|
386
|
+
getResponseCacheKeys(cache, luvio, resourceParams, response.body);
|
|
387
|
+
return cache;
|
|
388
|
+
});
|
|
387
389
|
}, (response) => {
|
|
388
390
|
return luvio.handleErrorResponse(() => onFetchResponseError(luvio, config, resourceParams, response));
|
|
389
391
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Luvio as $64$luvio_engine_Luvio, Fragment as $64$luvio_engine_Fragment, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata,
|
|
1
|
+
import { Luvio as $64$luvio_engine_Luvio, Fragment as $64$luvio_engine_Fragment, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, FetchResponse as $64$luvio_engine_FetchResponse, SnapshotRefresh as $64$luvio_engine_SnapshotRefresh, FulfilledSnapshot as $64$luvio_engine_FulfilledSnapshot, StaleSnapshot as $64$luvio_engine_StaleSnapshot, PendingSnapshot as $64$luvio_engine_PendingSnapshot, ErrorResponse as $64$luvio_engine_ErrorResponse, ErrorSnapshot as $64$luvio_engine_ErrorSnapshot, ResourceRequest as $64$luvio_engine_ResourceRequest } from '@luvio/engine';
|
|
2
2
|
import { ServiceProcessRequestLayoutDataRepresentation as types_ServiceProcessRequestLayoutDataRepresentation_ServiceProcessRequestLayoutDataRepresentation } from '../types/ServiceProcessRequestLayoutDataRepresentation';
|
|
3
3
|
export interface ResourceRequestConfig {
|
|
4
4
|
urlParams: {
|
|
@@ -8,7 +8,7 @@ export interface ResourceRequestConfig {
|
|
|
8
8
|
export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
|
|
9
9
|
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): string;
|
|
10
10
|
export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_NormalizedKeyMetadata;
|
|
11
|
-
export declare function getResponseCacheKeys(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_ServiceProcessRequestLayoutDataRepresentation_ServiceProcessRequestLayoutDataRepresentation):
|
|
11
|
+
export declare function getResponseCacheKeys(storeKeyMap: any, luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_ServiceProcessRequestLayoutDataRepresentation_ServiceProcessRequestLayoutDataRepresentation): void;
|
|
12
12
|
export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_ServiceProcessRequestLayoutDataRepresentation_ServiceProcessRequestLayoutDataRepresentation>, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_ServiceProcessRequestLayoutDataRepresentation_ServiceProcessRequestLayoutDataRepresentation>): $64$luvio_engine_FulfilledSnapshot<types_ServiceProcessRequestLayoutDataRepresentation_ServiceProcessRequestLayoutDataRepresentation, {}> | $64$luvio_engine_StaleSnapshot<types_ServiceProcessRequestLayoutDataRepresentation_ServiceProcessRequestLayoutDataRepresentation, {}> | $64$luvio_engine_PendingSnapshot<types_ServiceProcessRequestLayoutDataRepresentation_ServiceProcessRequestLayoutDataRepresentation, any>;
|
|
13
13
|
export declare function ingestError(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig, error: $64$luvio_engine_ErrorResponse, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_ServiceProcessRequestLayoutDataRepresentation_ServiceProcessRequestLayoutDataRepresentation>): $64$luvio_engine_ErrorSnapshot;
|
|
14
14
|
export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
|
|
@@ -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 = "10b841857be09fc35579a2967e4d8fae";
|
|
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: AttributeRepresentation, existing: Attr
|
|
|
6
6
|
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
7
7
|
export declare function equals(existing: AttributeRepresentationNormalized, incoming: AttributeRepresentationNormalized): boolean;
|
|
8
8
|
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
9
|
-
export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: AttributeRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata):
|
|
9
|
+
export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: AttributeRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
10
10
|
/**
|
|
11
11
|
* Service process attribute representation
|
|
12
12
|
*
|
|
@@ -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 = "1157c477435de6315d7bcb346341ac87";
|
|
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: GenericObjectOutput, existing: GenericO
|
|
|
6
6
|
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
7
7
|
export declare function equals(existing: GenericObjectOutputNormalized, incoming: GenericObjectOutputNormalized): boolean;
|
|
8
8
|
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
9
|
-
export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: GenericObjectOutput, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata):
|
|
9
|
+
export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: GenericObjectOutput, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
10
10
|
/**
|
|
11
11
|
* Generic attributes value object
|
|
12
12
|
*
|
package/dist/es/es2018/types/src/generated/types/ServiceProcessRequestLayoutDataRepresentation.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { GenericObjectOutput as GenericObjectOutput_GenericObjectOutput } from './GenericObjectOutput';
|
|
2
2
|
import { SvcCatalogItemGroupRepresentation as SvcCatalogItemGroupRepresentation_SvcCatalogItemGroupRepresentation } from './SvcCatalogItemGroupRepresentation';
|
|
3
|
-
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,
|
|
3
|
+
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';
|
|
4
4
|
export declare const TTL = 60000;
|
|
5
5
|
export declare const VERSION = "3c93758e60084dd8896588d82c17fbbe";
|
|
6
6
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
@@ -9,7 +9,7 @@ export declare function normalize(input: ServiceProcessRequestLayoutDataRepresen
|
|
|
9
9
|
export declare const select: () => $64$luvio_engine_BaseFragment;
|
|
10
10
|
export declare function equals(existing: ServiceProcessRequestLayoutDataRepresentationNormalized, incoming: ServiceProcessRequestLayoutDataRepresentationNormalized): boolean;
|
|
11
11
|
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
12
|
-
export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: ServiceProcessRequestLayoutDataRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata):
|
|
12
|
+
export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: ServiceProcessRequestLayoutDataRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
13
13
|
/**
|
|
14
14
|
* Service process layout data output representation
|
|
15
15
|
*
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AttributeRepresentation as AttributeRepresentation_AttributeRepresentation } from './AttributeRepresentation';
|
|
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 = "1fc0d88f4020d3f13b6a209245e775dd";
|
|
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: SvcCatalogItemGroupRepresentation, exis
|
|
|
7
7
|
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
8
8
|
export declare function equals(existing: SvcCatalogItemGroupRepresentationNormalized, incoming: SvcCatalogItemGroupRepresentationNormalized): boolean;
|
|
9
9
|
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
10
|
-
export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: SvcCatalogItemGroupRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata):
|
|
10
|
+
export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: SvcCatalogItemGroupRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
11
11
|
/**
|
|
12
12
|
* Service process group representation
|
|
13
13
|
*
|
package/package.json
CHANGED
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,
|
|
17
|
+
import { serializeStructuredKey, deepFreeze, StoreKeyMap } from 'force/luvioEngine';
|
|
18
18
|
|
|
19
19
|
const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
|
|
20
20
|
const { keys: ObjectKeys$1, create: ObjectCreate$1 } = Object;
|
|
@@ -266,8 +266,7 @@ const ingest = function ServiceProcessRequestLayoutDataRepresentationIngest(inpu
|
|
|
266
266
|
}
|
|
267
267
|
return createLink(key);
|
|
268
268
|
};
|
|
269
|
-
function getTypeCacheKeys(luvio, input, fullPathFactory) {
|
|
270
|
-
const rootKeySet = new StoreKeyMap();
|
|
269
|
+
function getTypeCacheKeys(rootKeySet, luvio, input, fullPathFactory) {
|
|
271
270
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
272
271
|
const rootKey = fullPathFactory();
|
|
273
272
|
rootKeySet.set(rootKey, {
|
|
@@ -275,7 +274,6 @@ function getTypeCacheKeys(luvio, input, fullPathFactory) {
|
|
|
275
274
|
representationName: RepresentationType,
|
|
276
275
|
mergeable: false
|
|
277
276
|
});
|
|
278
|
-
return rootKeySet;
|
|
279
277
|
}
|
|
280
278
|
|
|
281
279
|
function select(luvio, params) {
|
|
@@ -284,8 +282,8 @@ function select(luvio, params) {
|
|
|
284
282
|
function keyBuilder$1(luvio, params) {
|
|
285
283
|
return keyPrefix + '::ServiceProcessRequestLayoutDataRepresentation:(' + 'Id:' + params.urlParams.Id + ')';
|
|
286
284
|
}
|
|
287
|
-
function getResponseCacheKeys(luvio, resourceParams, response) {
|
|
288
|
-
|
|
285
|
+
function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
|
|
286
|
+
getTypeCacheKeys(storeKeyMap, luvio, response, () => keyBuilder$1(luvio, resourceParams));
|
|
289
287
|
}
|
|
290
288
|
function ingestSuccess(luvio, resourceParams, response, snapshotRefresh) {
|
|
291
289
|
const { body } = response;
|
|
@@ -393,7 +391,11 @@ function buildNetworkSnapshot(luvio, config, options) {
|
|
|
393
391
|
const request = createResourceRequest(resourceParams);
|
|
394
392
|
return luvio.dispatchResourceRequest(request, options)
|
|
395
393
|
.then((response) => {
|
|
396
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess(luvio, config, resourceParams, response), () =>
|
|
394
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess(luvio, config, resourceParams, response), () => {
|
|
395
|
+
const cache = new StoreKeyMap();
|
|
396
|
+
getResponseCacheKeys(cache, luvio, resourceParams, response.body);
|
|
397
|
+
return cache;
|
|
398
|
+
});
|
|
397
399
|
}, (response) => {
|
|
398
400
|
return luvio.handleErrorResponse(() => onFetchResponseError(luvio, config, resourceParams, response));
|
|
399
401
|
});
|
|
@@ -460,4 +462,4 @@ withDefaultLuvio((luvio) => {
|
|
|
460
462
|
});
|
|
461
463
|
|
|
462
464
|
export { getCaseServiceProcessLayoutData, getCaseServiceProcessLayoutData_imperative };
|
|
463
|
-
// version: 1.170.
|
|
465
|
+
// version: 1.170.1-5fb216cf1
|