@salesforce/lds-adapters-industries-explainability 1.134.7 → 1.134.9
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 +6 -40
- package/dist/es/es2018/types/src/generated/adapters/adapter-utils.d.ts +1 -7
- package/dist/es/es2018/types/src/generated/types/ExplainabilityActionLogCreateRepresentation.d.ts +0 -1
- package/dist/es/es2018/types/src/generated/types/ExplainabilityActionLogDetailRepresentation.d.ts +0 -1
- package/dist/es/es2018/types/src/generated/types/ExplainabilityActionLogInputRepresentation.d.ts +0 -1
- package/dist/es/es2018/types/src/generated/types/ExplainabilityActionLogInputRepresentationWrapper.d.ts +0 -1
- package/dist/es/es2018/types/src/generated/types/ExplainabilityActionLogsRepresentation.d.ts +0 -1
- package/dist/es/es2018/types/src/generated/types/type-utils.d.ts +1 -8
- package/package.json +1 -1
- package/sfdc/index.js +7 -41
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
* For full license text, see the LICENSE.txt file
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import { serializeStructuredKey, StoreKeyMap } from '@luvio/engine';
|
|
7
|
+
import { serializeStructuredKey, StoreKeyMap, deepFreeze } from '@luvio/engine';
|
|
8
8
|
|
|
9
9
|
const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
|
|
10
|
-
const { keys: ObjectKeys
|
|
10
|
+
const { keys: ObjectKeys, create: ObjectCreate } = Object;
|
|
11
11
|
const { isArray: ArrayIsArray$1 } = Array;
|
|
12
12
|
/**
|
|
13
13
|
* Validates an adapter config is well-formed.
|
|
@@ -31,7 +31,7 @@ function validateConfig(config, adapter, oneOf) {
|
|
|
31
31
|
throw new TypeError(`adapter ${displayName} does not yet support ${unsupported.sort().join(', ')}`);
|
|
32
32
|
}
|
|
33
33
|
const supported = required.concat(optional);
|
|
34
|
-
if (ObjectKeys
|
|
34
|
+
if (ObjectKeys(config).some(key => !supported.includes(key))) {
|
|
35
35
|
throw new TypeError(`adapter ${displayName} configuration supports only ${supported.sort().join(', ')}`);
|
|
36
36
|
}
|
|
37
37
|
}
|
|
@@ -50,27 +50,8 @@ const snapshotRefreshOptions = {
|
|
|
50
50
|
};
|
|
51
51
|
const keyPrefix = 'explainability';
|
|
52
52
|
|
|
53
|
-
const { freeze: ObjectFreeze, keys: ObjectKeys, create: ObjectCreate, assign: ObjectAssign } = Object;
|
|
54
53
|
const { isArray: ArrayIsArray } = Array;
|
|
55
54
|
const { stringify: JSONStringify } = JSON;
|
|
56
|
-
function deepFreeze$3(value) {
|
|
57
|
-
// No need to freeze primitives
|
|
58
|
-
if (typeof value !== 'object' || value === null) {
|
|
59
|
-
return;
|
|
60
|
-
}
|
|
61
|
-
if (ArrayIsArray(value)) {
|
|
62
|
-
for (let i = 0, len = value.length; i < len; i += 1) {
|
|
63
|
-
deepFreeze$3(value[i]);
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
else {
|
|
67
|
-
const keys = ObjectKeys(value);
|
|
68
|
-
for (let i = 0, len = keys.length; i < len; i += 1) {
|
|
69
|
-
deepFreeze$3(value[keys[i]]);
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
ObjectFreeze(value);
|
|
73
|
-
}
|
|
74
55
|
function createLink(ref) {
|
|
75
56
|
return {
|
|
76
57
|
__ref: serializeStructuredKey(ref),
|
|
@@ -146,9 +127,6 @@ function validate$3(obj, path = 'ExplainabilityActionLogDetailRepresentation') {
|
|
|
146
127
|
})();
|
|
147
128
|
return v_error === undefined ? null : v_error;
|
|
148
129
|
}
|
|
149
|
-
function deepFreeze$2(input) {
|
|
150
|
-
ObjectFreeze(input);
|
|
151
|
-
}
|
|
152
130
|
|
|
153
131
|
const TTL$1 = 10000;
|
|
154
132
|
const VERSION$1 = "d0452c2b6e53e2a843a03bf30a275e18";
|
|
@@ -200,15 +178,6 @@ function equals$1(existing, incoming) {
|
|
|
200
178
|
}
|
|
201
179
|
return true;
|
|
202
180
|
}
|
|
203
|
-
function deepFreeze$1(input) {
|
|
204
|
-
const input_actionLogs = input.actionLogs;
|
|
205
|
-
for (let i = 0; i < input_actionLogs.length; i++) {
|
|
206
|
-
const input_actionLogs_item = input_actionLogs[i];
|
|
207
|
-
deepFreeze$2(input_actionLogs_item);
|
|
208
|
-
}
|
|
209
|
-
ObjectFreeze(input_actionLogs);
|
|
210
|
-
ObjectFreeze(input);
|
|
211
|
-
}
|
|
212
181
|
const ingest$1 = function ExplainabilityActionLogsRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
213
182
|
if (process.env.NODE_ENV !== 'production') {
|
|
214
183
|
const validateError = validate$2(input);
|
|
@@ -225,7 +194,6 @@ const ingest$1 = function ExplainabilityActionLogsRepresentationIngest(input, pa
|
|
|
225
194
|
propertyName: path.propertyName,
|
|
226
195
|
ttl: ttlToUse
|
|
227
196
|
});
|
|
228
|
-
deepFreeze$1(input);
|
|
229
197
|
if (existingRecord === undefined || equals$1(existingRecord, incomingRecord) === false) {
|
|
230
198
|
luvio.storePublish(key, incomingRecord);
|
|
231
199
|
}
|
|
@@ -275,6 +243,7 @@ function ingestSuccess$1(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
275
243
|
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
276
244
|
}
|
|
277
245
|
}
|
|
246
|
+
deepFreeze(snapshot.data);
|
|
278
247
|
return snapshot;
|
|
279
248
|
}
|
|
280
249
|
function ingestError(luvio, params, error, snapshotRefresh) {
|
|
@@ -568,9 +537,6 @@ function equals(existing, incoming) {
|
|
|
568
537
|
}
|
|
569
538
|
return true;
|
|
570
539
|
}
|
|
571
|
-
function deepFreeze(input) {
|
|
572
|
-
ObjectFreeze(input);
|
|
573
|
-
}
|
|
574
540
|
const ingest = function ExplainabilityActionLogCreateRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
575
541
|
if (process.env.NODE_ENV !== 'production') {
|
|
576
542
|
const validateError = validate(input);
|
|
@@ -587,7 +553,6 @@ const ingest = function ExplainabilityActionLogCreateRepresentationIngest(input,
|
|
|
587
553
|
propertyName: path.propertyName,
|
|
588
554
|
ttl: ttlToUse
|
|
589
555
|
});
|
|
590
|
-
deepFreeze(input);
|
|
591
556
|
if (existingRecord === undefined || equals(existingRecord, incomingRecord) === false) {
|
|
592
557
|
luvio.storePublish(key, incomingRecord);
|
|
593
558
|
}
|
|
@@ -634,6 +599,7 @@ function ingestSuccess(luvio, resourceParams, response) {
|
|
|
634
599
|
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
635
600
|
}
|
|
636
601
|
}
|
|
602
|
+
deepFreeze(snapshot.data);
|
|
637
603
|
return snapshot;
|
|
638
604
|
}
|
|
639
605
|
function createResourceRequest(config) {
|
|
@@ -697,7 +663,7 @@ function buildNetworkSnapshot(luvio, config, options) {
|
|
|
697
663
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
698
664
|
}, () => getResponseCacheKeys(luvio, resourceParams, response.body));
|
|
699
665
|
}, (response) => {
|
|
700
|
-
deepFreeze
|
|
666
|
+
deepFreeze(response);
|
|
701
667
|
throw response;
|
|
702
668
|
});
|
|
703
669
|
}
|
|
@@ -3,17 +3,11 @@ export declare const ObjectPrototypeHasOwnProperty: (v: PropertyKey) => boolean;
|
|
|
3
3
|
declare const ObjectKeys: {
|
|
4
4
|
(o: object): string[];
|
|
5
5
|
(o: {}): string[];
|
|
6
|
-
}, ObjectFreeze: {
|
|
7
|
-
<T extends Function>(f: T): T;
|
|
8
|
-
<T_1 extends {
|
|
9
|
-
[idx: string]: object | U | null | undefined;
|
|
10
|
-
}, U extends string | number | bigint | boolean | symbol>(o: T_1): Readonly<T_1>;
|
|
11
|
-
<T_2>(o: T_2): Readonly<T_2>;
|
|
12
6
|
}, ObjectCreate: {
|
|
13
7
|
(o: object | null): any;
|
|
14
8
|
(o: object | null, properties: PropertyDescriptorMap & ThisType<any>): any;
|
|
15
9
|
};
|
|
16
|
-
export {
|
|
10
|
+
export { ObjectCreate, ObjectKeys };
|
|
17
11
|
export declare const ArrayIsArray: (arg: any) => arg is any[];
|
|
18
12
|
export declare const ArrayPrototypePush: (...items: any[]) => number;
|
|
19
13
|
export interface AdapterValidationConfig {
|
package/dist/es/es2018/types/src/generated/types/ExplainabilityActionLogCreateRepresentation.d.ts
CHANGED
|
@@ -15,7 +15,6 @@ export declare function keyBuilderFromType_StructuredKey(luvio: $64$luvio_engine
|
|
|
15
15
|
export declare function normalize(input: ExplainabilityActionLogCreateRepresentation, existing: ExplainabilityActionLogCreateRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ExplainabilityActionLogCreateRepresentationNormalized;
|
|
16
16
|
export declare const select: () => $64$luvio_engine_BaseFragment;
|
|
17
17
|
export declare function equals(existing: ExplainabilityActionLogCreateRepresentationNormalized, incoming: ExplainabilityActionLogCreateRepresentationNormalized): boolean;
|
|
18
|
-
export declare function deepFreeze(input: ExplainabilityActionLogCreateRepresentation): void;
|
|
19
18
|
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
20
19
|
export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: ExplainabilityActionLogCreateRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): $64$luvio_engine_DurableStoreKeyMetadataMap;
|
|
21
20
|
/**
|
package/dist/es/es2018/types/src/generated/types/ExplainabilityActionLogDetailRepresentation.d.ts
CHANGED
|
@@ -5,7 +5,6 @@ export declare const RepresentationType: string;
|
|
|
5
5
|
export declare function normalize(input: ExplainabilityActionLogDetailRepresentation, existing: ExplainabilityActionLogDetailRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ExplainabilityActionLogDetailRepresentationNormalized;
|
|
6
6
|
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
7
7
|
export declare function equals(existing: ExplainabilityActionLogDetailRepresentationNormalized, incoming: ExplainabilityActionLogDetailRepresentationNormalized): boolean;
|
|
8
|
-
export declare function deepFreeze(input: ExplainabilityActionLogDetailRepresentation): void;
|
|
9
8
|
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
10
9
|
export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: ExplainabilityActionLogDetailRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): $64$luvio_engine_DurableStoreKeyMetadataMap;
|
|
11
10
|
/**
|
package/dist/es/es2018/types/src/generated/types/ExplainabilityActionLogInputRepresentation.d.ts
CHANGED
|
@@ -5,7 +5,6 @@ export declare const RepresentationType: string;
|
|
|
5
5
|
export declare function normalize(input: ExplainabilityActionLogInputRepresentation, existing: ExplainabilityActionLogInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ExplainabilityActionLogInputRepresentationNormalized;
|
|
6
6
|
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
7
7
|
export declare function equals(existing: ExplainabilityActionLogInputRepresentationNormalized, incoming: ExplainabilityActionLogInputRepresentationNormalized): boolean;
|
|
8
|
-
export declare function deepFreeze(input: ExplainabilityActionLogInputRepresentation): void;
|
|
9
8
|
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
10
9
|
export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: ExplainabilityActionLogInputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): $64$luvio_engine_DurableStoreKeyMetadataMap;
|
|
11
10
|
/**
|
|
@@ -6,7 +6,6 @@ export declare const RepresentationType: string;
|
|
|
6
6
|
export declare function normalize(input: ExplainabilityActionLogInputRepresentationWrapper, existing: ExplainabilityActionLogInputRepresentationWrapperNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ExplainabilityActionLogInputRepresentationWrapperNormalized;
|
|
7
7
|
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
8
8
|
export declare function equals(existing: ExplainabilityActionLogInputRepresentationWrapperNormalized, incoming: ExplainabilityActionLogInputRepresentationWrapperNormalized): boolean;
|
|
9
|
-
export declare function deepFreeze(input: ExplainabilityActionLogInputRepresentationWrapper): void;
|
|
10
9
|
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
11
10
|
export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: ExplainabilityActionLogInputRepresentationWrapper, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): $64$luvio_engine_DurableStoreKeyMetadataMap;
|
|
12
11
|
/**
|
package/dist/es/es2018/types/src/generated/types/ExplainabilityActionLogsRepresentation.d.ts
CHANGED
|
@@ -7,7 +7,6 @@ export declare const RepresentationType: string;
|
|
|
7
7
|
export declare function normalize(input: ExplainabilityActionLogsRepresentation, existing: ExplainabilityActionLogsRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ExplainabilityActionLogsRepresentationNormalized;
|
|
8
8
|
export declare const select: () => $64$luvio_engine_BaseFragment;
|
|
9
9
|
export declare function equals(existing: ExplainabilityActionLogsRepresentationNormalized, incoming: ExplainabilityActionLogsRepresentationNormalized): boolean;
|
|
10
|
-
export declare function deepFreeze(input: ExplainabilityActionLogsRepresentation): void;
|
|
11
10
|
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
12
11
|
export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: ExplainabilityActionLogsRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): $64$luvio_engine_DurableStoreKeyMetadataMap;
|
|
13
12
|
/**
|
|
@@ -1,11 +1,5 @@
|
|
|
1
1
|
import { NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
|
|
2
|
-
export declare const
|
|
3
|
-
<T extends Function>(f: T): T;
|
|
4
|
-
<T_1 extends {
|
|
5
|
-
[idx: string]: object | U | null | undefined;
|
|
6
|
-
}, U extends string | number | bigint | boolean | symbol>(o: T_1): Readonly<T_1>;
|
|
7
|
-
<T_2>(o: T_2): Readonly<T_2>;
|
|
8
|
-
}, ObjectKeys: {
|
|
2
|
+
export declare const ObjectKeys: {
|
|
9
3
|
(o: object): string[];
|
|
10
4
|
(o: {}): string[];
|
|
11
5
|
}, ObjectCreate: {
|
|
@@ -31,7 +25,6 @@ export declare function equalsArray<U, V extends U[]>(a: V, b: V, equalsItem: (i
|
|
|
31
25
|
export declare function equalsObject<U, V extends {
|
|
32
26
|
[key: string]: U;
|
|
33
27
|
}>(a: V, b: V, equalsProp: (propA: U, propB: U) => boolean | void): boolean;
|
|
34
|
-
export declare function deepFreeze(value: any): void;
|
|
35
28
|
export declare function createLink(ref: string | $64$luvio_engine_NormalizedKeyMetadata): {
|
|
36
29
|
__ref: string;
|
|
37
30
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-adapters-industries-explainability",
|
|
3
|
-
"version": "1.134.
|
|
3
|
+
"version": "1.134.9",
|
|
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,10 +14,10 @@
|
|
|
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, StoreKeyMap } from 'force/luvioEngine';
|
|
17
|
+
import { serializeStructuredKey, StoreKeyMap, deepFreeze } from 'force/luvioEngine';
|
|
18
18
|
|
|
19
19
|
const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
|
|
20
|
-
const { keys: ObjectKeys
|
|
20
|
+
const { keys: ObjectKeys, create: ObjectCreate } = Object;
|
|
21
21
|
const { isArray: ArrayIsArray$1 } = Array;
|
|
22
22
|
/**
|
|
23
23
|
* Validates an adapter config is well-formed.
|
|
@@ -41,7 +41,7 @@ function validateConfig(config, adapter, oneOf) {
|
|
|
41
41
|
throw new TypeError(`adapter ${displayName} does not yet support ${unsupported.sort().join(', ')}`);
|
|
42
42
|
}
|
|
43
43
|
const supported = required.concat(optional);
|
|
44
|
-
if (ObjectKeys
|
|
44
|
+
if (ObjectKeys(config).some(key => !supported.includes(key))) {
|
|
45
45
|
throw new TypeError(`adapter ${displayName} configuration supports only ${supported.sort().join(', ')}`);
|
|
46
46
|
}
|
|
47
47
|
}
|
|
@@ -60,27 +60,8 @@ const snapshotRefreshOptions = {
|
|
|
60
60
|
};
|
|
61
61
|
const keyPrefix = 'explainability';
|
|
62
62
|
|
|
63
|
-
const { freeze: ObjectFreeze, keys: ObjectKeys, create: ObjectCreate, assign: ObjectAssign } = Object;
|
|
64
63
|
const { isArray: ArrayIsArray } = Array;
|
|
65
64
|
const { stringify: JSONStringify } = JSON;
|
|
66
|
-
function deepFreeze$3(value) {
|
|
67
|
-
// No need to freeze primitives
|
|
68
|
-
if (typeof value !== 'object' || value === null) {
|
|
69
|
-
return;
|
|
70
|
-
}
|
|
71
|
-
if (ArrayIsArray(value)) {
|
|
72
|
-
for (let i = 0, len = value.length; i < len; i += 1) {
|
|
73
|
-
deepFreeze$3(value[i]);
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
else {
|
|
77
|
-
const keys = ObjectKeys(value);
|
|
78
|
-
for (let i = 0, len = keys.length; i < len; i += 1) {
|
|
79
|
-
deepFreeze$3(value[keys[i]]);
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
ObjectFreeze(value);
|
|
83
|
-
}
|
|
84
65
|
function createLink(ref) {
|
|
85
66
|
return {
|
|
86
67
|
__ref: serializeStructuredKey(ref),
|
|
@@ -156,9 +137,6 @@ function validate$3(obj, path = 'ExplainabilityActionLogDetailRepresentation') {
|
|
|
156
137
|
})();
|
|
157
138
|
return v_error === undefined ? null : v_error;
|
|
158
139
|
}
|
|
159
|
-
function deepFreeze$2(input) {
|
|
160
|
-
ObjectFreeze(input);
|
|
161
|
-
}
|
|
162
140
|
|
|
163
141
|
const TTL$1 = 10000;
|
|
164
142
|
const VERSION$1 = "d0452c2b6e53e2a843a03bf30a275e18";
|
|
@@ -210,15 +188,6 @@ function equals$1(existing, incoming) {
|
|
|
210
188
|
}
|
|
211
189
|
return true;
|
|
212
190
|
}
|
|
213
|
-
function deepFreeze$1(input) {
|
|
214
|
-
const input_actionLogs = input.actionLogs;
|
|
215
|
-
for (let i = 0; i < input_actionLogs.length; i++) {
|
|
216
|
-
const input_actionLogs_item = input_actionLogs[i];
|
|
217
|
-
deepFreeze$2(input_actionLogs_item);
|
|
218
|
-
}
|
|
219
|
-
ObjectFreeze(input_actionLogs);
|
|
220
|
-
ObjectFreeze(input);
|
|
221
|
-
}
|
|
222
191
|
const ingest$1 = function ExplainabilityActionLogsRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
223
192
|
if (process.env.NODE_ENV !== 'production') {
|
|
224
193
|
const validateError = validate$2(input);
|
|
@@ -235,7 +204,6 @@ const ingest$1 = function ExplainabilityActionLogsRepresentationIngest(input, pa
|
|
|
235
204
|
propertyName: path.propertyName,
|
|
236
205
|
ttl: ttlToUse
|
|
237
206
|
});
|
|
238
|
-
deepFreeze$1(input);
|
|
239
207
|
if (existingRecord === undefined || equals$1(existingRecord, incomingRecord) === false) {
|
|
240
208
|
luvio.storePublish(key, incomingRecord);
|
|
241
209
|
}
|
|
@@ -285,6 +253,7 @@ function ingestSuccess$1(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
285
253
|
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
286
254
|
}
|
|
287
255
|
}
|
|
256
|
+
deepFreeze(snapshot.data);
|
|
288
257
|
return snapshot;
|
|
289
258
|
}
|
|
290
259
|
function ingestError(luvio, params, error, snapshotRefresh) {
|
|
@@ -578,9 +547,6 @@ function equals(existing, incoming) {
|
|
|
578
547
|
}
|
|
579
548
|
return true;
|
|
580
549
|
}
|
|
581
|
-
function deepFreeze(input) {
|
|
582
|
-
ObjectFreeze(input);
|
|
583
|
-
}
|
|
584
550
|
const ingest = function ExplainabilityActionLogCreateRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
585
551
|
if (process.env.NODE_ENV !== 'production') {
|
|
586
552
|
const validateError = validate(input);
|
|
@@ -597,7 +563,6 @@ const ingest = function ExplainabilityActionLogCreateRepresentationIngest(input,
|
|
|
597
563
|
propertyName: path.propertyName,
|
|
598
564
|
ttl: ttlToUse
|
|
599
565
|
});
|
|
600
|
-
deepFreeze(input);
|
|
601
566
|
if (existingRecord === undefined || equals(existingRecord, incomingRecord) === false) {
|
|
602
567
|
luvio.storePublish(key, incomingRecord);
|
|
603
568
|
}
|
|
@@ -644,6 +609,7 @@ function ingestSuccess(luvio, resourceParams, response) {
|
|
|
644
609
|
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
645
610
|
}
|
|
646
611
|
}
|
|
612
|
+
deepFreeze(snapshot.data);
|
|
647
613
|
return snapshot;
|
|
648
614
|
}
|
|
649
615
|
function createResourceRequest(config) {
|
|
@@ -707,7 +673,7 @@ function buildNetworkSnapshot(luvio, config, options) {
|
|
|
707
673
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
708
674
|
}, () => getResponseCacheKeys(luvio, resourceParams, response.body));
|
|
709
675
|
}, (response) => {
|
|
710
|
-
deepFreeze
|
|
676
|
+
deepFreeze(response);
|
|
711
677
|
throw response;
|
|
712
678
|
});
|
|
713
679
|
}
|
|
@@ -751,4 +717,4 @@ withDefaultLuvio((luvio) => {
|
|
|
751
717
|
});
|
|
752
718
|
|
|
753
719
|
export { getExplainabilityActionLogs, getExplainabilityActionLogs_imperative, storeExplainabilityActionLog };
|
|
754
|
-
// version: 1.134.
|
|
720
|
+
// version: 1.134.9-fd822024c
|