@salesforce/lds-adapters-industries-actionplan 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-actionplan.js +6 -118
- package/dist/es/es2018/types/src/generated/adapters/adapter-utils.d.ts +1 -7
- package/dist/es/es2018/types/src/generated/types/ActionPlanItemCollectionRepresentation.d.ts +0 -1
- package/dist/es/es2018/types/src/generated/types/ActionPlanItemDetailedRepresentation.d.ts +0 -1
- package/dist/es/es2018/types/src/generated/types/ActionPlanItemListRepresentation.d.ts +0 -1
- package/dist/es/es2018/types/src/generated/types/ActionPlanItemRepresentation.d.ts +0 -1
- package/dist/es/es2018/types/src/generated/types/ActionPlanItemTaskRepresentation.d.ts +0 -1
- package/dist/es/es2018/types/src/generated/types/ActionPlanItemsWrapperRepresentation.d.ts +0 -1
- package/dist/es/es2018/types/src/generated/types/ActionPlanListRepresentation.d.ts +0 -1
- package/dist/es/es2018/types/src/generated/types/ActionPlanRepresentation.d.ts +0 -1
- package/dist/es/es2018/types/src/generated/types/ActionPlanStatusInfoOutputRepresentation.d.ts +0 -1
- package/dist/es/es2018/types/src/generated/types/ActionPlansWrapperOutputRepresentation.d.ts +0 -1
- package/dist/es/es2018/types/src/generated/types/ComputedFieldsWrapperRepresentation.d.ts +0 -1
- package/dist/es/es2018/types/src/generated/types/FieldRepresentation.d.ts +0 -1
- package/dist/es/es2018/types/src/generated/types/TaskProgressRepresentation.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 -119
|
@@ -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$1,
|
|
10
|
+
const { keys: ObjectKeys$1, create: ObjectCreate$1 } = Object;
|
|
11
11
|
const { isArray: ArrayIsArray$1 } = Array;
|
|
12
12
|
/**
|
|
13
13
|
* Validates an adapter config is well-formed.
|
|
@@ -50,27 +50,9 @@ const snapshotRefreshOptions = {
|
|
|
50
50
|
};
|
|
51
51
|
const keyPrefix = 'ActionPlan';
|
|
52
52
|
|
|
53
|
-
const {
|
|
53
|
+
const { keys: ObjectKeys, create: ObjectCreate, assign: ObjectAssign } = Object;
|
|
54
54
|
const { isArray: ArrayIsArray } = Array;
|
|
55
55
|
const { stringify: JSONStringify } = JSON;
|
|
56
|
-
function deepFreeze$d(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$d(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$d(value[keys[i]]);
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
ObjectFreeze(value);
|
|
73
|
-
}
|
|
74
56
|
function createLink(ref) {
|
|
75
57
|
return {
|
|
76
58
|
__ref: serializeStructuredKey(ref),
|
|
@@ -109,9 +91,6 @@ function validate$c(obj, path = 'ActionPlanRepresentation') {
|
|
|
109
91
|
})();
|
|
110
92
|
return v_error === undefined ? null : v_error;
|
|
111
93
|
}
|
|
112
|
-
function deepFreeze$c(input) {
|
|
113
|
-
ObjectFreeze(input);
|
|
114
|
-
}
|
|
115
94
|
|
|
116
95
|
function validate$b(obj, path = 'ActionPlanListRepresentation') {
|
|
117
96
|
const v_error = (() => {
|
|
@@ -136,15 +115,6 @@ function validate$b(obj, path = 'ActionPlanListRepresentation') {
|
|
|
136
115
|
})();
|
|
137
116
|
return v_error === undefined ? null : v_error;
|
|
138
117
|
}
|
|
139
|
-
function deepFreeze$b(input) {
|
|
140
|
-
const input_records = input.records;
|
|
141
|
-
for (let i = 0; i < input_records.length; i++) {
|
|
142
|
-
const input_records_item = input_records[i];
|
|
143
|
-
deepFreeze$c(input_records_item);
|
|
144
|
-
}
|
|
145
|
-
ObjectFreeze(input_records);
|
|
146
|
-
ObjectFreeze(input);
|
|
147
|
-
}
|
|
148
118
|
|
|
149
119
|
const TTL$2 = 1000;
|
|
150
120
|
const VERSION$2 = "0ec040ec594b42ffdf6182e2b338e7ff";
|
|
@@ -182,11 +152,6 @@ function equals$2(existing, incoming) {
|
|
|
182
152
|
}
|
|
183
153
|
return true;
|
|
184
154
|
}
|
|
185
|
-
function deepFreeze$a(input) {
|
|
186
|
-
const input_actionPlan = input.actionPlan;
|
|
187
|
-
deepFreeze$b(input_actionPlan);
|
|
188
|
-
ObjectFreeze(input);
|
|
189
|
-
}
|
|
190
155
|
const ingest$2 = function ActionPlansWrapperOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
191
156
|
if (process.env.NODE_ENV !== 'production') {
|
|
192
157
|
const validateError = validate$a(input);
|
|
@@ -203,7 +168,6 @@ const ingest$2 = function ActionPlansWrapperOutputRepresentationIngest(input, pa
|
|
|
203
168
|
propertyName: path.propertyName,
|
|
204
169
|
ttl: ttlToUse
|
|
205
170
|
});
|
|
206
|
-
deepFreeze$a(input);
|
|
207
171
|
if (existingRecord === undefined || equals$2(existingRecord, incomingRecord) === false) {
|
|
208
172
|
luvio.storePublish(key, incomingRecord);
|
|
209
173
|
}
|
|
@@ -253,6 +217,7 @@ function ingestSuccess$2(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
253
217
|
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
254
218
|
}
|
|
255
219
|
}
|
|
220
|
+
deepFreeze(snapshot.data);
|
|
256
221
|
return snapshot;
|
|
257
222
|
}
|
|
258
223
|
function ingestError$2(luvio, params, error, snapshotRefresh) {
|
|
@@ -427,18 +392,6 @@ function validate$9(obj, path = 'ComputedFieldsWrapperRepresentation') {
|
|
|
427
392
|
})();
|
|
428
393
|
return v_error === undefined ? null : v_error;
|
|
429
394
|
}
|
|
430
|
-
function deepFreeze$9(input) {
|
|
431
|
-
const input_fields = input.fields;
|
|
432
|
-
const input_fields_keys = Object.keys(input_fields);
|
|
433
|
-
const input_fields_length = input_fields_keys.length;
|
|
434
|
-
for (let i = 0; i < input_fields_length; i++) {
|
|
435
|
-
const key = input_fields_keys[i];
|
|
436
|
-
const input_fields_prop = input_fields[key];
|
|
437
|
-
deepFreeze$d(input_fields_prop);
|
|
438
|
-
}
|
|
439
|
-
ObjectFreeze(input_fields);
|
|
440
|
-
ObjectFreeze(input);
|
|
441
|
-
}
|
|
442
395
|
|
|
443
396
|
function validate$8(obj, path = 'FieldRepresentation') {
|
|
444
397
|
const v_error = (() => {
|
|
@@ -468,9 +421,6 @@ function validate$8(obj, path = 'FieldRepresentation') {
|
|
|
468
421
|
})();
|
|
469
422
|
return v_error === undefined ? null : v_error;
|
|
470
423
|
}
|
|
471
|
-
function deepFreeze$8(input) {
|
|
472
|
-
ObjectFreeze(input);
|
|
473
|
-
}
|
|
474
424
|
|
|
475
425
|
function validate$7(obj, path = 'TaskProgressRepresentation') {
|
|
476
426
|
const v_error = (() => {
|
|
@@ -495,9 +445,6 @@ function validate$7(obj, path = 'TaskProgressRepresentation') {
|
|
|
495
445
|
})();
|
|
496
446
|
return v_error === undefined ? null : v_error;
|
|
497
447
|
}
|
|
498
|
-
function deepFreeze$7(input) {
|
|
499
|
-
ObjectFreeze(input);
|
|
500
|
-
}
|
|
501
448
|
|
|
502
449
|
function validate$6(obj, path = 'ActionPlanItemTaskRepresentation') {
|
|
503
450
|
const v_error = (() => {
|
|
@@ -549,25 +496,6 @@ function validate$6(obj, path = 'ActionPlanItemTaskRepresentation') {
|
|
|
549
496
|
})();
|
|
550
497
|
return v_error === undefined ? null : v_error;
|
|
551
498
|
}
|
|
552
|
-
function deepFreeze$6(input) {
|
|
553
|
-
const input_computedFields = input.computedFields;
|
|
554
|
-
if (input_computedFields !== undefined) {
|
|
555
|
-
deepFreeze$9(input_computedFields);
|
|
556
|
-
}
|
|
557
|
-
const input_fields = input.fields;
|
|
558
|
-
if (input_fields !== undefined) {
|
|
559
|
-
for (let i = 0; i < input_fields.length; i++) {
|
|
560
|
-
const input_fields_item = input_fields[i];
|
|
561
|
-
deepFreeze$8(input_fields_item);
|
|
562
|
-
}
|
|
563
|
-
ObjectFreeze(input_fields);
|
|
564
|
-
}
|
|
565
|
-
const input_progress = input.progress;
|
|
566
|
-
if (input_progress !== undefined) {
|
|
567
|
-
deepFreeze$7(input_progress);
|
|
568
|
-
}
|
|
569
|
-
ObjectFreeze(input);
|
|
570
|
-
}
|
|
571
499
|
|
|
572
500
|
function validate$5(obj, path = 'ActionPlanItemDetailedRepresentation') {
|
|
573
501
|
const v_error = (() => {
|
|
@@ -597,13 +525,6 @@ function validate$5(obj, path = 'ActionPlanItemDetailedRepresentation') {
|
|
|
597
525
|
})();
|
|
598
526
|
return v_error === undefined ? null : v_error;
|
|
599
527
|
}
|
|
600
|
-
function deepFreeze$5(input) {
|
|
601
|
-
const input_actionPlanItemTask = input.actionPlanItemTask;
|
|
602
|
-
if (input_actionPlanItemTask !== undefined) {
|
|
603
|
-
deepFreeze$6(input_actionPlanItemTask);
|
|
604
|
-
}
|
|
605
|
-
ObjectFreeze(input);
|
|
606
|
-
}
|
|
607
528
|
|
|
608
529
|
function validate$4(obj, path = 'ActionPlanItemCollectionRepresentation') {
|
|
609
530
|
const v_error = (() => {
|
|
@@ -628,15 +549,6 @@ function validate$4(obj, path = 'ActionPlanItemCollectionRepresentation') {
|
|
|
628
549
|
})();
|
|
629
550
|
return v_error === undefined ? null : v_error;
|
|
630
551
|
}
|
|
631
|
-
function deepFreeze$4(input) {
|
|
632
|
-
const input_records = input.records;
|
|
633
|
-
for (let i = 0; i < input_records.length; i++) {
|
|
634
|
-
const input_records_item = input_records[i];
|
|
635
|
-
deepFreeze$5(input_records_item);
|
|
636
|
-
}
|
|
637
|
-
ObjectFreeze(input_records);
|
|
638
|
-
ObjectFreeze(input);
|
|
639
|
-
}
|
|
640
552
|
|
|
641
553
|
const TTL$1 = 1000;
|
|
642
554
|
const VERSION$1 = "01f1998519e78c50e1b67804b6fcb652";
|
|
@@ -674,11 +586,6 @@ function equals$1(existing, incoming) {
|
|
|
674
586
|
}
|
|
675
587
|
return true;
|
|
676
588
|
}
|
|
677
|
-
function deepFreeze$3(input) {
|
|
678
|
-
const input_actionPlanItems = input.actionPlanItems;
|
|
679
|
-
deepFreeze$4(input_actionPlanItems);
|
|
680
|
-
ObjectFreeze(input);
|
|
681
|
-
}
|
|
682
589
|
const ingest$1 = function ActionPlanItemsWrapperRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
683
590
|
if (process.env.NODE_ENV !== 'production') {
|
|
684
591
|
const validateError = validate$3(input);
|
|
@@ -695,7 +602,6 @@ const ingest$1 = function ActionPlanItemsWrapperRepresentationIngest(input, path
|
|
|
695
602
|
propertyName: path.propertyName,
|
|
696
603
|
ttl: ttlToUse
|
|
697
604
|
});
|
|
698
|
-
deepFreeze$3(input);
|
|
699
605
|
if (existingRecord === undefined || equals$1(existingRecord, incomingRecord) === false) {
|
|
700
606
|
luvio.storePublish(key, incomingRecord);
|
|
701
607
|
}
|
|
@@ -745,6 +651,7 @@ function ingestSuccess$1(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
745
651
|
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
746
652
|
}
|
|
747
653
|
}
|
|
654
|
+
deepFreeze(snapshot.data);
|
|
748
655
|
return snapshot;
|
|
749
656
|
}
|
|
750
657
|
function ingestError$1(luvio, params, error, snapshotRefresh) {
|
|
@@ -901,9 +808,6 @@ function validate$2(obj, path = 'ActionPlanItemRepresentation') {
|
|
|
901
808
|
})();
|
|
902
809
|
return v_error === undefined ? null : v_error;
|
|
903
810
|
}
|
|
904
|
-
function deepFreeze$2(input) {
|
|
905
|
-
ObjectFreeze(input);
|
|
906
|
-
}
|
|
907
811
|
|
|
908
812
|
function validate$1(obj, path = 'ActionPlanItemListRepresentation') {
|
|
909
813
|
const v_error = (() => {
|
|
@@ -928,15 +832,6 @@ function validate$1(obj, path = 'ActionPlanItemListRepresentation') {
|
|
|
928
832
|
})();
|
|
929
833
|
return v_error === undefined ? null : v_error;
|
|
930
834
|
}
|
|
931
|
-
function deepFreeze$1(input) {
|
|
932
|
-
const input_records = input.records;
|
|
933
|
-
for (let i = 0; i < input_records.length; i++) {
|
|
934
|
-
const input_records_item = input_records[i];
|
|
935
|
-
deepFreeze$2(input_records_item);
|
|
936
|
-
}
|
|
937
|
-
ObjectFreeze(input_records);
|
|
938
|
-
ObjectFreeze(input);
|
|
939
|
-
}
|
|
940
835
|
|
|
941
836
|
const TTL = 1000;
|
|
942
837
|
const VERSION = "8d866f38a882381bbdafb2496aa6f6b8";
|
|
@@ -993,13 +888,6 @@ function equals(existing, incoming) {
|
|
|
993
888
|
}
|
|
994
889
|
return true;
|
|
995
890
|
}
|
|
996
|
-
function deepFreeze(input) {
|
|
997
|
-
const input_mandatoryItemsPending = input.mandatoryItemsPending;
|
|
998
|
-
if (input_mandatoryItemsPending !== undefined) {
|
|
999
|
-
deepFreeze$1(input_mandatoryItemsPending);
|
|
1000
|
-
}
|
|
1001
|
-
ObjectFreeze(input);
|
|
1002
|
-
}
|
|
1003
891
|
const ingest = function ActionPlanStatusInfoOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1004
892
|
if (process.env.NODE_ENV !== 'production') {
|
|
1005
893
|
const validateError = validate(input);
|
|
@@ -1016,7 +904,6 @@ const ingest = function ActionPlanStatusInfoOutputRepresentationIngest(input, pa
|
|
|
1016
904
|
propertyName: path.propertyName,
|
|
1017
905
|
ttl: ttlToUse
|
|
1018
906
|
});
|
|
1019
|
-
deepFreeze(input);
|
|
1020
907
|
if (existingRecord === undefined || equals(existingRecord, incomingRecord) === false) {
|
|
1021
908
|
luvio.storePublish(key, incomingRecord);
|
|
1022
909
|
}
|
|
@@ -1066,6 +953,7 @@ function ingestSuccess(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
1066
953
|
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
1067
954
|
}
|
|
1068
955
|
}
|
|
956
|
+
deepFreeze(snapshot.data);
|
|
1069
957
|
return snapshot;
|
|
1070
958
|
}
|
|
1071
959
|
function ingestError(luvio, params, error, snapshotRefresh) {
|
|
@@ -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/ActionPlanItemCollectionRepresentation.d.ts
CHANGED
|
@@ -6,7 +6,6 @@ export declare const RepresentationType: string;
|
|
|
6
6
|
export declare function normalize(input: ActionPlanItemCollectionRepresentation, existing: ActionPlanItemCollectionRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ActionPlanItemCollectionRepresentationNormalized;
|
|
7
7
|
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
8
8
|
export declare function equals(existing: ActionPlanItemCollectionRepresentationNormalized, incoming: ActionPlanItemCollectionRepresentationNormalized): boolean;
|
|
9
|
-
export declare function deepFreeze(input: ActionPlanItemCollectionRepresentation): void;
|
|
10
9
|
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
11
10
|
export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: ActionPlanItemCollectionRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): $64$luvio_engine_DurableStoreKeyMetadataMap;
|
|
12
11
|
/**
|
|
@@ -6,7 +6,6 @@ export declare const RepresentationType: string;
|
|
|
6
6
|
export declare function normalize(input: ActionPlanItemDetailedRepresentation, existing: ActionPlanItemDetailedRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ActionPlanItemDetailedRepresentationNormalized;
|
|
7
7
|
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
8
8
|
export declare function equals(existing: ActionPlanItemDetailedRepresentationNormalized, incoming: ActionPlanItemDetailedRepresentationNormalized): boolean;
|
|
9
|
-
export declare function deepFreeze(input: ActionPlanItemDetailedRepresentation): void;
|
|
10
9
|
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
11
10
|
export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: ActionPlanItemDetailedRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): $64$luvio_engine_DurableStoreKeyMetadataMap;
|
|
12
11
|
/**
|
|
@@ -6,7 +6,6 @@ export declare const RepresentationType: string;
|
|
|
6
6
|
export declare function normalize(input: ActionPlanItemListRepresentation, existing: ActionPlanItemListRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ActionPlanItemListRepresentationNormalized;
|
|
7
7
|
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
8
8
|
export declare function equals(existing: ActionPlanItemListRepresentationNormalized, incoming: ActionPlanItemListRepresentationNormalized): boolean;
|
|
9
|
-
export declare function deepFreeze(input: ActionPlanItemListRepresentation): void;
|
|
10
9
|
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
11
10
|
export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: ActionPlanItemListRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): $64$luvio_engine_DurableStoreKeyMetadataMap;
|
|
12
11
|
/**
|
|
@@ -5,7 +5,6 @@ export declare const RepresentationType: string;
|
|
|
5
5
|
export declare function normalize(input: ActionPlanItemRepresentation, existing: ActionPlanItemRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ActionPlanItemRepresentationNormalized;
|
|
6
6
|
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
7
7
|
export declare function equals(existing: ActionPlanItemRepresentationNormalized, incoming: ActionPlanItemRepresentationNormalized): boolean;
|
|
8
|
-
export declare function deepFreeze(input: ActionPlanItemRepresentation): void;
|
|
9
8
|
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
10
9
|
export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: ActionPlanItemRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): $64$luvio_engine_DurableStoreKeyMetadataMap;
|
|
11
10
|
/**
|
|
@@ -8,7 +8,6 @@ export declare const RepresentationType: string;
|
|
|
8
8
|
export declare function normalize(input: ActionPlanItemTaskRepresentation, existing: ActionPlanItemTaskRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ActionPlanItemTaskRepresentationNormalized;
|
|
9
9
|
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
10
10
|
export declare function equals(existing: ActionPlanItemTaskRepresentationNormalized, incoming: ActionPlanItemTaskRepresentationNormalized): boolean;
|
|
11
|
-
export declare function deepFreeze(input: ActionPlanItemTaskRepresentation): void;
|
|
12
11
|
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
13
12
|
export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: ActionPlanItemTaskRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): $64$luvio_engine_DurableStoreKeyMetadataMap;
|
|
14
13
|
/**
|
|
@@ -7,7 +7,6 @@ export declare const RepresentationType: string;
|
|
|
7
7
|
export declare function normalize(input: ActionPlanItemsWrapperRepresentation, existing: ActionPlanItemsWrapperRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ActionPlanItemsWrapperRepresentationNormalized;
|
|
8
8
|
export declare const select: () => $64$luvio_engine_BaseFragment;
|
|
9
9
|
export declare function equals(existing: ActionPlanItemsWrapperRepresentationNormalized, incoming: ActionPlanItemsWrapperRepresentationNormalized): boolean;
|
|
10
|
-
export declare function deepFreeze(input: ActionPlanItemsWrapperRepresentation): void;
|
|
11
10
|
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
12
11
|
export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: ActionPlanItemsWrapperRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): $64$luvio_engine_DurableStoreKeyMetadataMap;
|
|
13
12
|
/**
|
|
@@ -6,7 +6,6 @@ export declare const RepresentationType: string;
|
|
|
6
6
|
export declare function normalize(input: ActionPlanListRepresentation, existing: ActionPlanListRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ActionPlanListRepresentationNormalized;
|
|
7
7
|
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
8
8
|
export declare function equals(existing: ActionPlanListRepresentationNormalized, incoming: ActionPlanListRepresentationNormalized): boolean;
|
|
9
|
-
export declare function deepFreeze(input: ActionPlanListRepresentation): void;
|
|
10
9
|
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
11
10
|
export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: ActionPlanListRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): $64$luvio_engine_DurableStoreKeyMetadataMap;
|
|
12
11
|
/**
|
|
@@ -5,7 +5,6 @@ export declare const RepresentationType: string;
|
|
|
5
5
|
export declare function normalize(input: ActionPlanRepresentation, existing: ActionPlanRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ActionPlanRepresentationNormalized;
|
|
6
6
|
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
7
7
|
export declare function equals(existing: ActionPlanRepresentationNormalized, incoming: ActionPlanRepresentationNormalized): boolean;
|
|
8
|
-
export declare function deepFreeze(input: ActionPlanRepresentation): void;
|
|
9
8
|
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
10
9
|
export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: ActionPlanRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): $64$luvio_engine_DurableStoreKeyMetadataMap;
|
|
11
10
|
/**
|
package/dist/es/es2018/types/src/generated/types/ActionPlanStatusInfoOutputRepresentation.d.ts
CHANGED
|
@@ -7,7 +7,6 @@ export declare const RepresentationType: string;
|
|
|
7
7
|
export declare function normalize(input: ActionPlanStatusInfoOutputRepresentation, existing: ActionPlanStatusInfoOutputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ActionPlanStatusInfoOutputRepresentationNormalized;
|
|
8
8
|
export declare const select: () => $64$luvio_engine_BaseFragment;
|
|
9
9
|
export declare function equals(existing: ActionPlanStatusInfoOutputRepresentationNormalized, incoming: ActionPlanStatusInfoOutputRepresentationNormalized): boolean;
|
|
10
|
-
export declare function deepFreeze(input: ActionPlanStatusInfoOutputRepresentation): void;
|
|
11
10
|
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
12
11
|
export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: ActionPlanStatusInfoOutputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): $64$luvio_engine_DurableStoreKeyMetadataMap;
|
|
13
12
|
/**
|
package/dist/es/es2018/types/src/generated/types/ActionPlansWrapperOutputRepresentation.d.ts
CHANGED
|
@@ -7,7 +7,6 @@ export declare const RepresentationType: string;
|
|
|
7
7
|
export declare function normalize(input: ActionPlansWrapperOutputRepresentation, existing: ActionPlansWrapperOutputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ActionPlansWrapperOutputRepresentationNormalized;
|
|
8
8
|
export declare const select: () => $64$luvio_engine_BaseFragment;
|
|
9
9
|
export declare function equals(existing: ActionPlansWrapperOutputRepresentationNormalized, incoming: ActionPlansWrapperOutputRepresentationNormalized): boolean;
|
|
10
|
-
export declare function deepFreeze(input: ActionPlansWrapperOutputRepresentation): void;
|
|
11
10
|
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
12
11
|
export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: ActionPlansWrapperOutputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): $64$luvio_engine_DurableStoreKeyMetadataMap;
|
|
13
12
|
/**
|
|
@@ -5,7 +5,6 @@ export declare const RepresentationType: string;
|
|
|
5
5
|
export declare function normalize(input: ComputedFieldsWrapperRepresentation, existing: ComputedFieldsWrapperRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ComputedFieldsWrapperRepresentationNormalized;
|
|
6
6
|
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
7
7
|
export declare function equals(existing: ComputedFieldsWrapperRepresentationNormalized, incoming: ComputedFieldsWrapperRepresentationNormalized): boolean;
|
|
8
|
-
export declare function deepFreeze(input: ComputedFieldsWrapperRepresentation): void;
|
|
9
8
|
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
10
9
|
export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: ComputedFieldsWrapperRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): $64$luvio_engine_DurableStoreKeyMetadataMap;
|
|
11
10
|
/**
|
|
@@ -5,7 +5,6 @@ export declare const RepresentationType: string;
|
|
|
5
5
|
export declare function normalize(input: FieldRepresentation, existing: FieldRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): FieldRepresentationNormalized;
|
|
6
6
|
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
7
7
|
export declare function equals(existing: FieldRepresentationNormalized, incoming: FieldRepresentationNormalized): boolean;
|
|
8
|
-
export declare function deepFreeze(input: FieldRepresentation): void;
|
|
9
8
|
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
10
9
|
export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: FieldRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): $64$luvio_engine_DurableStoreKeyMetadataMap;
|
|
11
10
|
/**
|
|
@@ -5,7 +5,6 @@ export declare const RepresentationType: string;
|
|
|
5
5
|
export declare function normalize(input: TaskProgressRepresentation, existing: TaskProgressRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): TaskProgressRepresentationNormalized;
|
|
6
6
|
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
7
7
|
export declare function equals(existing: TaskProgressRepresentationNormalized, incoming: TaskProgressRepresentationNormalized): boolean;
|
|
8
|
-
export declare function deepFreeze(input: TaskProgressRepresentation): void;
|
|
9
8
|
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
10
9
|
export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: TaskProgressRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): $64$luvio_engine_DurableStoreKeyMetadataMap;
|
|
11
10
|
/**
|
|
@@ -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
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$1,
|
|
20
|
+
const { keys: ObjectKeys$1, create: ObjectCreate$1 } = Object;
|
|
21
21
|
const { isArray: ArrayIsArray$1 } = Array;
|
|
22
22
|
/**
|
|
23
23
|
* Validates an adapter config is well-formed.
|
|
@@ -60,27 +60,9 @@ const snapshotRefreshOptions = {
|
|
|
60
60
|
};
|
|
61
61
|
const keyPrefix = 'ActionPlan';
|
|
62
62
|
|
|
63
|
-
const {
|
|
63
|
+
const { keys: ObjectKeys, create: ObjectCreate, assign: ObjectAssign } = Object;
|
|
64
64
|
const { isArray: ArrayIsArray } = Array;
|
|
65
65
|
const { stringify: JSONStringify } = JSON;
|
|
66
|
-
function deepFreeze$d(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$d(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$d(value[keys[i]]);
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
ObjectFreeze(value);
|
|
83
|
-
}
|
|
84
66
|
function createLink(ref) {
|
|
85
67
|
return {
|
|
86
68
|
__ref: serializeStructuredKey(ref),
|
|
@@ -109,18 +91,6 @@ function validate$c(obj, path = 'ComputedFieldsWrapperRepresentation') {
|
|
|
109
91
|
})();
|
|
110
92
|
return v_error === undefined ? null : v_error;
|
|
111
93
|
}
|
|
112
|
-
function deepFreeze$c(input) {
|
|
113
|
-
const input_fields = input.fields;
|
|
114
|
-
const input_fields_keys = Object.keys(input_fields);
|
|
115
|
-
const input_fields_length = input_fields_keys.length;
|
|
116
|
-
for (let i = 0; i < input_fields_length; i++) {
|
|
117
|
-
const key = input_fields_keys[i];
|
|
118
|
-
const input_fields_prop = input_fields[key];
|
|
119
|
-
deepFreeze$d(input_fields_prop);
|
|
120
|
-
}
|
|
121
|
-
ObjectFreeze(input_fields);
|
|
122
|
-
ObjectFreeze(input);
|
|
123
|
-
}
|
|
124
94
|
|
|
125
95
|
function validate$b(obj, path = 'FieldRepresentation') {
|
|
126
96
|
const v_error = (() => {
|
|
@@ -150,9 +120,6 @@ function validate$b(obj, path = 'FieldRepresentation') {
|
|
|
150
120
|
})();
|
|
151
121
|
return v_error === undefined ? null : v_error;
|
|
152
122
|
}
|
|
153
|
-
function deepFreeze$b(input) {
|
|
154
|
-
ObjectFreeze(input);
|
|
155
|
-
}
|
|
156
123
|
|
|
157
124
|
function validate$a(obj, path = 'TaskProgressRepresentation') {
|
|
158
125
|
const v_error = (() => {
|
|
@@ -177,9 +144,6 @@ function validate$a(obj, path = 'TaskProgressRepresentation') {
|
|
|
177
144
|
})();
|
|
178
145
|
return v_error === undefined ? null : v_error;
|
|
179
146
|
}
|
|
180
|
-
function deepFreeze$a(input) {
|
|
181
|
-
ObjectFreeze(input);
|
|
182
|
-
}
|
|
183
147
|
|
|
184
148
|
function validate$9(obj, path = 'ActionPlanItemTaskRepresentation') {
|
|
185
149
|
const v_error = (() => {
|
|
@@ -231,25 +195,6 @@ function validate$9(obj, path = 'ActionPlanItemTaskRepresentation') {
|
|
|
231
195
|
})();
|
|
232
196
|
return v_error === undefined ? null : v_error;
|
|
233
197
|
}
|
|
234
|
-
function deepFreeze$9(input) {
|
|
235
|
-
const input_computedFields = input.computedFields;
|
|
236
|
-
if (input_computedFields !== undefined) {
|
|
237
|
-
deepFreeze$c(input_computedFields);
|
|
238
|
-
}
|
|
239
|
-
const input_fields = input.fields;
|
|
240
|
-
if (input_fields !== undefined) {
|
|
241
|
-
for (let i = 0; i < input_fields.length; i++) {
|
|
242
|
-
const input_fields_item = input_fields[i];
|
|
243
|
-
deepFreeze$b(input_fields_item);
|
|
244
|
-
}
|
|
245
|
-
ObjectFreeze(input_fields);
|
|
246
|
-
}
|
|
247
|
-
const input_progress = input.progress;
|
|
248
|
-
if (input_progress !== undefined) {
|
|
249
|
-
deepFreeze$a(input_progress);
|
|
250
|
-
}
|
|
251
|
-
ObjectFreeze(input);
|
|
252
|
-
}
|
|
253
198
|
|
|
254
199
|
function validate$8(obj, path = 'ActionPlanItemDetailedRepresentation') {
|
|
255
200
|
const v_error = (() => {
|
|
@@ -279,13 +224,6 @@ function validate$8(obj, path = 'ActionPlanItemDetailedRepresentation') {
|
|
|
279
224
|
})();
|
|
280
225
|
return v_error === undefined ? null : v_error;
|
|
281
226
|
}
|
|
282
|
-
function deepFreeze$8(input) {
|
|
283
|
-
const input_actionPlanItemTask = input.actionPlanItemTask;
|
|
284
|
-
if (input_actionPlanItemTask !== undefined) {
|
|
285
|
-
deepFreeze$9(input_actionPlanItemTask);
|
|
286
|
-
}
|
|
287
|
-
ObjectFreeze(input);
|
|
288
|
-
}
|
|
289
227
|
|
|
290
228
|
function validate$7(obj, path = 'ActionPlanItemCollectionRepresentation') {
|
|
291
229
|
const v_error = (() => {
|
|
@@ -310,15 +248,6 @@ function validate$7(obj, path = 'ActionPlanItemCollectionRepresentation') {
|
|
|
310
248
|
})();
|
|
311
249
|
return v_error === undefined ? null : v_error;
|
|
312
250
|
}
|
|
313
|
-
function deepFreeze$7(input) {
|
|
314
|
-
const input_records = input.records;
|
|
315
|
-
for (let i = 0; i < input_records.length; i++) {
|
|
316
|
-
const input_records_item = input_records[i];
|
|
317
|
-
deepFreeze$8(input_records_item);
|
|
318
|
-
}
|
|
319
|
-
ObjectFreeze(input_records);
|
|
320
|
-
ObjectFreeze(input);
|
|
321
|
-
}
|
|
322
251
|
|
|
323
252
|
const TTL$2 = 1000;
|
|
324
253
|
const VERSION$2 = "01f1998519e78c50e1b67804b6fcb652";
|
|
@@ -356,11 +285,6 @@ function equals$2(existing, incoming) {
|
|
|
356
285
|
}
|
|
357
286
|
return true;
|
|
358
287
|
}
|
|
359
|
-
function deepFreeze$6(input) {
|
|
360
|
-
const input_actionPlanItems = input.actionPlanItems;
|
|
361
|
-
deepFreeze$7(input_actionPlanItems);
|
|
362
|
-
ObjectFreeze(input);
|
|
363
|
-
}
|
|
364
288
|
const ingest$2 = function ActionPlanItemsWrapperRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
365
289
|
if (process.env.NODE_ENV !== 'production') {
|
|
366
290
|
const validateError = validate$6(input);
|
|
@@ -377,7 +301,6 @@ const ingest$2 = function ActionPlanItemsWrapperRepresentationIngest(input, path
|
|
|
377
301
|
propertyName: path.propertyName,
|
|
378
302
|
ttl: ttlToUse
|
|
379
303
|
});
|
|
380
|
-
deepFreeze$6(input);
|
|
381
304
|
if (existingRecord === undefined || equals$2(existingRecord, incomingRecord) === false) {
|
|
382
305
|
luvio.storePublish(key, incomingRecord);
|
|
383
306
|
}
|
|
@@ -427,6 +350,7 @@ function ingestSuccess$2(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
427
350
|
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
428
351
|
}
|
|
429
352
|
}
|
|
353
|
+
deepFreeze(snapshot.data);
|
|
430
354
|
return snapshot;
|
|
431
355
|
}
|
|
432
356
|
function ingestError$2(luvio, params, error, snapshotRefresh) {
|
|
@@ -583,9 +507,6 @@ function validate$5(obj, path = 'ActionPlanItemRepresentation') {
|
|
|
583
507
|
})();
|
|
584
508
|
return v_error === undefined ? null : v_error;
|
|
585
509
|
}
|
|
586
|
-
function deepFreeze$5(input) {
|
|
587
|
-
ObjectFreeze(input);
|
|
588
|
-
}
|
|
589
510
|
|
|
590
511
|
function validate$4(obj, path = 'ActionPlanItemListRepresentation') {
|
|
591
512
|
const v_error = (() => {
|
|
@@ -610,15 +531,6 @@ function validate$4(obj, path = 'ActionPlanItemListRepresentation') {
|
|
|
610
531
|
})();
|
|
611
532
|
return v_error === undefined ? null : v_error;
|
|
612
533
|
}
|
|
613
|
-
function deepFreeze$4(input) {
|
|
614
|
-
const input_records = input.records;
|
|
615
|
-
for (let i = 0; i < input_records.length; i++) {
|
|
616
|
-
const input_records_item = input_records[i];
|
|
617
|
-
deepFreeze$5(input_records_item);
|
|
618
|
-
}
|
|
619
|
-
ObjectFreeze(input_records);
|
|
620
|
-
ObjectFreeze(input);
|
|
621
|
-
}
|
|
622
534
|
|
|
623
535
|
const TTL$1 = 1000;
|
|
624
536
|
const VERSION$1 = "8d866f38a882381bbdafb2496aa6f6b8";
|
|
@@ -675,13 +587,6 @@ function equals$1(existing, incoming) {
|
|
|
675
587
|
}
|
|
676
588
|
return true;
|
|
677
589
|
}
|
|
678
|
-
function deepFreeze$3(input) {
|
|
679
|
-
const input_mandatoryItemsPending = input.mandatoryItemsPending;
|
|
680
|
-
if (input_mandatoryItemsPending !== undefined) {
|
|
681
|
-
deepFreeze$4(input_mandatoryItemsPending);
|
|
682
|
-
}
|
|
683
|
-
ObjectFreeze(input);
|
|
684
|
-
}
|
|
685
590
|
const ingest$1 = function ActionPlanStatusInfoOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
686
591
|
if (process.env.NODE_ENV !== 'production') {
|
|
687
592
|
const validateError = validate$3(input);
|
|
@@ -698,7 +603,6 @@ const ingest$1 = function ActionPlanStatusInfoOutputRepresentationIngest(input,
|
|
|
698
603
|
propertyName: path.propertyName,
|
|
699
604
|
ttl: ttlToUse
|
|
700
605
|
});
|
|
701
|
-
deepFreeze$3(input);
|
|
702
606
|
if (existingRecord === undefined || equals$1(existingRecord, incomingRecord) === false) {
|
|
703
607
|
luvio.storePublish(key, incomingRecord);
|
|
704
608
|
}
|
|
@@ -748,6 +652,7 @@ function ingestSuccess$1(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
748
652
|
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
749
653
|
}
|
|
750
654
|
}
|
|
655
|
+
deepFreeze(snapshot.data);
|
|
751
656
|
return snapshot;
|
|
752
657
|
}
|
|
753
658
|
function ingestError$1(luvio, params, error, snapshotRefresh) {
|
|
@@ -916,9 +821,6 @@ function validate$2(obj, path = 'ActionPlanRepresentation') {
|
|
|
916
821
|
})();
|
|
917
822
|
return v_error === undefined ? null : v_error;
|
|
918
823
|
}
|
|
919
|
-
function deepFreeze$2(input) {
|
|
920
|
-
ObjectFreeze(input);
|
|
921
|
-
}
|
|
922
824
|
|
|
923
825
|
function validate$1(obj, path = 'ActionPlanListRepresentation') {
|
|
924
826
|
const v_error = (() => {
|
|
@@ -943,15 +845,6 @@ function validate$1(obj, path = 'ActionPlanListRepresentation') {
|
|
|
943
845
|
})();
|
|
944
846
|
return v_error === undefined ? null : v_error;
|
|
945
847
|
}
|
|
946
|
-
function deepFreeze$1(input) {
|
|
947
|
-
const input_records = input.records;
|
|
948
|
-
for (let i = 0; i < input_records.length; i++) {
|
|
949
|
-
const input_records_item = input_records[i];
|
|
950
|
-
deepFreeze$2(input_records_item);
|
|
951
|
-
}
|
|
952
|
-
ObjectFreeze(input_records);
|
|
953
|
-
ObjectFreeze(input);
|
|
954
|
-
}
|
|
955
848
|
|
|
956
849
|
const TTL = 1000;
|
|
957
850
|
const VERSION = "0ec040ec594b42ffdf6182e2b338e7ff";
|
|
@@ -989,11 +882,6 @@ function equals(existing, incoming) {
|
|
|
989
882
|
}
|
|
990
883
|
return true;
|
|
991
884
|
}
|
|
992
|
-
function deepFreeze(input) {
|
|
993
|
-
const input_actionPlan = input.actionPlan;
|
|
994
|
-
deepFreeze$1(input_actionPlan);
|
|
995
|
-
ObjectFreeze(input);
|
|
996
|
-
}
|
|
997
885
|
const ingest = function ActionPlansWrapperOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
998
886
|
if (process.env.NODE_ENV !== 'production') {
|
|
999
887
|
const validateError = validate(input);
|
|
@@ -1010,7 +898,6 @@ const ingest = function ActionPlansWrapperOutputRepresentationIngest(input, path
|
|
|
1010
898
|
propertyName: path.propertyName,
|
|
1011
899
|
ttl: ttlToUse
|
|
1012
900
|
});
|
|
1013
|
-
deepFreeze(input);
|
|
1014
901
|
if (existingRecord === undefined || equals(existingRecord, incomingRecord) === false) {
|
|
1015
902
|
luvio.storePublish(key, incomingRecord);
|
|
1016
903
|
}
|
|
@@ -1060,6 +947,7 @@ function ingestSuccess(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
1060
947
|
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
1061
948
|
}
|
|
1062
949
|
}
|
|
950
|
+
deepFreeze(snapshot.data);
|
|
1063
951
|
return snapshot;
|
|
1064
952
|
}
|
|
1065
953
|
function ingestError(luvio, params, error, snapshotRefresh) {
|
|
@@ -1250,4 +1138,4 @@ withDefaultLuvio((luvio) => {
|
|
|
1250
1138
|
});
|
|
1251
1139
|
|
|
1252
1140
|
export { getActionPlanItems, getActionPlanItems_imperative, getActionPlanStatusInfo, getActionPlanStatusInfo_imperative, getActionPlans, getActionPlans_imperative };
|
|
1253
|
-
// version: 1.134.
|
|
1141
|
+
// version: 1.134.9-fd822024c
|