@salesforce/lds-adapters-industries-epc 1.134.7 → 1.134.8

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.
Files changed (25) hide show
  1. package/dist/es/es2018/industries-epc.js +9 -155
  2. package/dist/es/es2018/types/src/generated/adapters/adapter-utils.d.ts +1 -7
  3. package/dist/es/es2018/types/src/generated/types/AttributeCategoryOutputRepresentation.d.ts +0 -1
  4. package/dist/es/es2018/types/src/generated/types/AttributeDefinitionOutputRepresentation.d.ts +0 -1
  5. package/dist/es/es2018/types/src/generated/types/AttributePicklistOutputRepresentation.d.ts +0 -1
  6. package/dist/es/es2018/types/src/generated/types/AttributePicklistValueOutputRepresentation.d.ts +0 -1
  7. package/dist/es/es2018/types/src/generated/types/DeactivateInputRepresentation.d.ts +0 -1
  8. package/dist/es/es2018/types/src/generated/types/DeactivateInputRepresentationWrapper.d.ts +0 -1
  9. package/dist/es/es2018/types/src/generated/types/ErrorOutputRepresentation.d.ts +0 -1
  10. package/dist/es/es2018/types/src/generated/types/PriceOutputRepresentation.d.ts +0 -1
  11. package/dist/es/es2018/types/src/generated/types/PricingModelOutputRepresentation.d.ts +0 -1
  12. package/dist/es/es2018/types/src/generated/types/ProductAttributeDefinitionInputRepresentation.d.ts +0 -1
  13. package/dist/es/es2018/types/src/generated/types/ProductAttributeDefinitionListInputRepresentation.d.ts +0 -1
  14. package/dist/es/es2018/types/src/generated/types/ProductAttributeDefinitionListInputRepresentationWrapper.d.ts +0 -1
  15. package/dist/es/es2018/types/src/generated/types/ProductAttributeDefinitionListRepresentation.d.ts +0 -1
  16. package/dist/es/es2018/types/src/generated/types/ProductAttributeDefinitionRepresentation.d.ts +0 -1
  17. package/dist/es/es2018/types/src/generated/types/ProductFlowConnectRepresentation.d.ts +0 -1
  18. package/dist/es/es2018/types/src/generated/types/ProductFlowOutputRepresentation.d.ts +0 -1
  19. package/dist/es/es2018/types/src/generated/types/ProductOutputRepresentation.d.ts +0 -1
  20. package/dist/es/es2018/types/src/generated/types/QuantityInfo.d.ts +0 -1
  21. package/dist/es/es2018/types/src/generated/types/RecordIdMapOutputRepresentation.d.ts +0 -1
  22. package/dist/es/es2018/types/src/generated/types/Status.d.ts +0 -1
  23. package/dist/es/es2018/types/src/generated/types/type-utils.d.ts +1 -8
  24. package/package.json +1 -1
  25. package/sfdc/index.js +10 -156
@@ -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, freeze: ObjectFreeze$1, create: ObjectCreate$1 } = Object;
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$1(config).some(key => !supported.includes(key))) {
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 = 'epc';
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$f(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$f(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$f(value[keys[i]]);
70
- }
71
- }
72
- ObjectFreeze(value);
73
- }
74
55
  function createLink(ref) {
75
56
  return {
76
57
  __ref: serializeStructuredKey(ref),
@@ -140,11 +121,6 @@ function validate$f(obj, path = 'ErrorOutputRepresentation') {
140
121
  })();
141
122
  return v_error === undefined ? null : v_error;
142
123
  }
143
- function deepFreeze$e(input) {
144
- const input_details = input.details;
145
- ObjectFreeze(input_details);
146
- ObjectFreeze(input);
147
- }
148
124
 
149
125
  const TTL$3 = 6000;
150
126
  const VERSION$3 = "67abdeaa299bae24f468fd2e78cd1e1e";
@@ -203,15 +179,6 @@ function equals$3(existing, incoming) {
203
179
  }
204
180
  return true;
205
181
  }
206
- function deepFreeze$d(input) {
207
- const input_errors = input.errors;
208
- for (let i = 0; i < input_errors.length; i++) {
209
- const input_errors_item = input_errors[i];
210
- deepFreeze$e(input_errors_item);
211
- }
212
- ObjectFreeze(input_errors);
213
- ObjectFreeze(input);
214
- }
215
182
  const ingest$3 = function RecordIdMapOutputRepresentationIngest(input, path, luvio, store, timestamp) {
216
183
  if (process.env.NODE_ENV !== 'production') {
217
184
  const validateError = validate$e(input);
@@ -228,7 +195,6 @@ const ingest$3 = function RecordIdMapOutputRepresentationIngest(input, path, luv
228
195
  propertyName: path.propertyName,
229
196
  ttl: ttlToUse
230
197
  });
231
- deepFreeze$d(input);
232
198
  if (existingRecord === undefined || equals$3(existingRecord, incomingRecord) === false) {
233
199
  luvio.storePublish(key, incomingRecord);
234
200
  }
@@ -275,6 +241,7 @@ function ingestSuccess$3(luvio, resourceParams, response) {
275
241
  throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
276
242
  }
277
243
  }
244
+ deepFreeze(snapshot.data);
278
245
  return snapshot;
279
246
  }
280
247
  function createResourceRequest$3(config) {
@@ -338,7 +305,7 @@ function buildNetworkSnapshot$3(luvio, config, options) {
338
305
  return luvio.storeBroadcast().then(() => snapshot);
339
306
  }, () => getResponseCacheKeys$3(luvio, resourceParams, response.body));
340
307
  }, (response) => {
341
- deepFreeze$f(response);
308
+ deepFreeze(response);
342
309
  throw response;
343
310
  });
344
311
  }
@@ -396,9 +363,6 @@ function validate$c(obj, path = 'ProductAttributeDefinitionRepresentation') {
396
363
  })();
397
364
  return v_error === undefined ? null : v_error;
398
365
  }
399
- function deepFreeze$c(input) {
400
- ObjectFreeze(input);
401
- }
402
366
 
403
367
  const TTL$2 = 6000;
404
368
  const VERSION$2 = "e67d3c8569b9667eac98cc1a9840041c";
@@ -457,15 +421,6 @@ function equals$2(existing, incoming) {
457
421
  }
458
422
  return true;
459
423
  }
460
- function deepFreeze$b(input) {
461
- const input_data = input.data;
462
- for (let i = 0; i < input_data.length; i++) {
463
- const input_data_item = input_data[i];
464
- deepFreeze$c(input_data_item);
465
- }
466
- ObjectFreeze(input_data);
467
- ObjectFreeze(input);
468
- }
469
424
  const ingest$2 = function ProductAttributeDefinitionListRepresentationIngest(input, path, luvio, store, timestamp) {
470
425
  if (process.env.NODE_ENV !== 'production') {
471
426
  const validateError = validate$b(input);
@@ -482,7 +437,6 @@ const ingest$2 = function ProductAttributeDefinitionListRepresentationIngest(inp
482
437
  propertyName: path.propertyName,
483
438
  ttl: ttlToUse
484
439
  });
485
- deepFreeze$b(input);
486
440
  if (existingRecord === undefined || equals$2(existingRecord, incomingRecord) === false) {
487
441
  luvio.storePublish(key, incomingRecord);
488
442
  }
@@ -529,6 +483,7 @@ function ingestSuccess$2(luvio, resourceParams, response) {
529
483
  throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
530
484
  }
531
485
  }
486
+ deepFreeze(snapshot.data);
532
487
  return snapshot;
533
488
  }
534
489
  function createResourceRequest$2(config) {
@@ -592,7 +547,7 @@ function buildNetworkSnapshot$2(luvio, config, options) {
592
547
  return luvio.storeBroadcast().then(() => snapshot);
593
548
  }, () => getResponseCacheKeys$2(luvio, resourceParams, response.body));
594
549
  }, (response) => {
595
- deepFreeze$f(response);
550
+ deepFreeze(response);
596
551
  throw response;
597
552
  });
598
553
  }
@@ -622,9 +577,6 @@ function validate$a(obj, path = 'ProductFlowConnectRepresentation') {
622
577
  })();
623
578
  return v_error === undefined ? null : v_error;
624
579
  }
625
- function deepFreeze$a(input) {
626
- ObjectFreeze(input);
627
- }
628
580
 
629
581
  function validate$9(obj, path = 'Status') {
630
582
  const v_error = (() => {
@@ -644,9 +596,6 @@ function validate$9(obj, path = 'Status') {
644
596
  })();
645
597
  return v_error === undefined ? null : v_error;
646
598
  }
647
- function deepFreeze$9(input) {
648
- ObjectFreeze(input);
649
- }
650
599
 
651
600
  const TTL$1 = 6000;
652
601
  const VERSION$1 = "a75aed3c640fb969c24561ef4f8cb169";
@@ -703,17 +652,6 @@ function equals$1(existing, incoming) {
703
652
  }
704
653
  return true;
705
654
  }
706
- function deepFreeze$8(input) {
707
- const input_productFlow = input.productFlow;
708
- if (input_productFlow !== undefined) {
709
- deepFreeze$a(input_productFlow);
710
- }
711
- const input_status = input.status;
712
- if (input_status !== undefined) {
713
- deepFreeze$9(input_status);
714
- }
715
- ObjectFreeze(input);
716
- }
717
655
  const ingest$1 = function ProductFlowOutputRepresentationIngest(input, path, luvio, store, timestamp) {
718
656
  if (process.env.NODE_ENV !== 'production') {
719
657
  const validateError = validate$8(input);
@@ -730,7 +668,6 @@ const ingest$1 = function ProductFlowOutputRepresentationIngest(input, path, luv
730
668
  propertyName: path.propertyName,
731
669
  ttl: ttlToUse
732
670
  });
733
- deepFreeze$8(input);
734
671
  if (existingRecord === undefined || equals$1(existingRecord, incomingRecord) === false) {
735
672
  luvio.storePublish(key, incomingRecord);
736
673
  }
@@ -780,6 +717,7 @@ function ingestSuccess$1(luvio, resourceParams, response, snapshotRefresh) {
780
717
  throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
781
718
  }
782
719
  }
720
+ deepFreeze(snapshot.data);
783
721
  return snapshot;
784
722
  }
785
723
  function ingestError$1(luvio, params, error, snapshotRefresh) {
@@ -1001,9 +939,6 @@ function validate$7(obj, path = 'AttributePicklistValueOutputRepresentation') {
1001
939
  })();
1002
940
  return v_error === undefined ? null : v_error;
1003
941
  }
1004
- function deepFreeze$7(input) {
1005
- ObjectFreeze(input);
1006
- }
1007
942
 
1008
943
  function validate$6(obj, path = 'AttributePicklistOutputRepresentation') {
1009
944
  const v_error = (() => {
@@ -1065,17 +1000,6 @@ function validate$6(obj, path = 'AttributePicklistOutputRepresentation') {
1065
1000
  })();
1066
1001
  return v_error === undefined ? null : v_error;
1067
1002
  }
1068
- function deepFreeze$6(input) {
1069
- const input_values = input.values;
1070
- if (input_values !== undefined) {
1071
- for (let i = 0; i < input_values.length; i++) {
1072
- const input_values_item = input_values[i];
1073
- deepFreeze$7(input_values_item);
1074
- }
1075
- ObjectFreeze(input_values);
1076
- }
1077
- ObjectFreeze(input);
1078
- }
1079
1003
 
1080
1004
  function validate$5(obj, path = 'AttributeDefinitionOutputRepresentation') {
1081
1005
  const v_error = (() => {
@@ -1214,13 +1138,6 @@ function validate$5(obj, path = 'AttributeDefinitionOutputRepresentation') {
1214
1138
  })();
1215
1139
  return v_error === undefined ? null : v_error;
1216
1140
  }
1217
- function deepFreeze$5(input) {
1218
- const input_picklist = input.picklist;
1219
- if (input_picklist !== undefined) {
1220
- deepFreeze$6(input_picklist);
1221
- }
1222
- ObjectFreeze(input);
1223
- }
1224
1141
 
1225
1142
  function validate$4(obj, path = 'AttributeCategoryOutputRepresentation') {
1226
1143
  const v_error = (() => {
@@ -1268,17 +1185,6 @@ function validate$4(obj, path = 'AttributeCategoryOutputRepresentation') {
1268
1185
  })();
1269
1186
  return v_error === undefined ? null : v_error;
1270
1187
  }
1271
- function deepFreeze$4(input) {
1272
- const input_attributes = input.attributes;
1273
- if (input_attributes !== undefined) {
1274
- for (let i = 0; i < input_attributes.length; i++) {
1275
- const input_attributes_item = input_attributes[i];
1276
- deepFreeze$5(input_attributes_item);
1277
- }
1278
- ObjectFreeze(input_attributes);
1279
- }
1280
- ObjectFreeze(input);
1281
- }
1282
1188
 
1283
1189
  function validate$3(obj, path = 'PricingModelOutputRepresentation') {
1284
1190
  const v_error = (() => {
@@ -1330,9 +1236,6 @@ function validate$3(obj, path = 'PricingModelOutputRepresentation') {
1330
1236
  })();
1331
1237
  return v_error === undefined ? null : v_error;
1332
1238
  }
1333
- function deepFreeze$3(input) {
1334
- ObjectFreeze(input);
1335
- }
1336
1239
 
1337
1240
  function validate$2(obj, path = 'PriceOutputRepresentation') {
1338
1241
  const v_error = (() => {
@@ -1387,13 +1290,6 @@ function validate$2(obj, path = 'PriceOutputRepresentation') {
1387
1290
  })();
1388
1291
  return v_error === undefined ? null : v_error;
1389
1292
  }
1390
- function deepFreeze$2(input) {
1391
- const input_pricingModel = input.pricingModel;
1392
- if (input_pricingModel !== undefined) {
1393
- deepFreeze$3(input_pricingModel);
1394
- }
1395
- ObjectFreeze(input);
1396
- }
1397
1293
 
1398
1294
  function validate$1(obj, path = 'QuantityInfo') {
1399
1295
  const v_error = (() => {
@@ -1412,9 +1308,6 @@ function validate$1(obj, path = 'QuantityInfo') {
1412
1308
  })();
1413
1309
  return v_error === undefined ? null : v_error;
1414
1310
  }
1415
- function deepFreeze$1(input) {
1416
- ObjectFreeze(input);
1417
- }
1418
1311
 
1419
1312
  const TTL = 6000;
1420
1313
  const VERSION = "59486918cad0cc20f8b6c12d84d03600";
@@ -1571,45 +1464,6 @@ function equals(existing, incoming) {
1571
1464
  }
1572
1465
  return true;
1573
1466
  }
1574
- function deepFreeze(input) {
1575
- const input_attributeCategory = input.attributeCategory;
1576
- if (input_attributeCategory !== undefined) {
1577
- for (let i = 0; i < input_attributeCategory.length; i++) {
1578
- const input_attributeCategory_item = input_attributeCategory[i];
1579
- deepFreeze$4(input_attributeCategory_item);
1580
- }
1581
- ObjectFreeze(input_attributeCategory);
1582
- }
1583
- const input_attributes = input.attributes;
1584
- if (input_attributes !== undefined) {
1585
- for (let i = 0; i < input_attributes.length; i++) {
1586
- const input_attributes_item = input_attributes[i];
1587
- deepFreeze$5(input_attributes_item);
1588
- }
1589
- ObjectFreeze(input_attributes);
1590
- }
1591
- const input_childProducts = input.childProducts;
1592
- if (input_childProducts !== undefined) {
1593
- for (let i = 0; i < input_childProducts.length; i++) {
1594
- const input_childProducts_item = input_childProducts[i];
1595
- deepFreeze(input_childProducts_item);
1596
- }
1597
- ObjectFreeze(input_childProducts);
1598
- }
1599
- const input_prices = input.prices;
1600
- if (input_prices !== undefined) {
1601
- for (let i = 0; i < input_prices.length; i++) {
1602
- const input_prices_item = input_prices[i];
1603
- deepFreeze$2(input_prices_item);
1604
- }
1605
- ObjectFreeze(input_prices);
1606
- }
1607
- const input_quantityInfo = input.quantityInfo;
1608
- if (input_quantityInfo !== undefined) {
1609
- deepFreeze$1(input_quantityInfo);
1610
- }
1611
- ObjectFreeze(input);
1612
- }
1613
1467
  const ingest = function ProductOutputRepresentationIngest(input, path, luvio, store, timestamp) {
1614
1468
  if (process.env.NODE_ENV !== 'production') {
1615
1469
  const validateError = validate(input);
@@ -1626,7 +1480,6 @@ const ingest = function ProductOutputRepresentationIngest(input, path, luvio, st
1626
1480
  propertyName: path.propertyName,
1627
1481
  ttl: ttlToUse
1628
1482
  });
1629
- deepFreeze(input);
1630
1483
  if (existingRecord === undefined || equals(existingRecord, incomingRecord) === false) {
1631
1484
  luvio.storePublish(key, incomingRecord);
1632
1485
  }
@@ -1676,6 +1529,7 @@ function ingestSuccess(luvio, resourceParams, response, snapshotRefresh) {
1676
1529
  throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
1677
1530
  }
1678
1531
  }
1532
+ deepFreeze(snapshot.data);
1679
1533
  return snapshot;
1680
1534
  }
1681
1535
  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 { ObjectFreeze, ObjectCreate, ObjectKeys };
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 {
@@ -6,7 +6,6 @@ export declare const RepresentationType: string;
6
6
  export declare function normalize(input: AttributeCategoryOutputRepresentation, existing: AttributeCategoryOutputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): AttributeCategoryOutputRepresentationNormalized;
7
7
  export declare const select: () => $64$luvio_engine_FragmentSelection;
8
8
  export declare function equals(existing: AttributeCategoryOutputRepresentationNormalized, incoming: AttributeCategoryOutputRepresentationNormalized): boolean;
9
- export declare function deepFreeze(input: AttributeCategoryOutputRepresentation): void;
10
9
  export declare const ingest: $64$luvio_engine_ResourceIngest;
11
10
  export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: AttributeCategoryOutputRepresentation, 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: AttributeDefinitionOutputRepresentation, existing: AttributeDefinitionOutputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): AttributeDefinitionOutputRepresentationNormalized;
7
7
  export declare const select: () => $64$luvio_engine_FragmentSelection;
8
8
  export declare function equals(existing: AttributeDefinitionOutputRepresentationNormalized, incoming: AttributeDefinitionOutputRepresentationNormalized): boolean;
9
- export declare function deepFreeze(input: AttributeDefinitionOutputRepresentation): void;
10
9
  export declare const ingest: $64$luvio_engine_ResourceIngest;
11
10
  export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: AttributeDefinitionOutputRepresentation, 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: AttributePicklistOutputRepresentation, existing: AttributePicklistOutputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): AttributePicklistOutputRepresentationNormalized;
7
7
  export declare const select: () => $64$luvio_engine_FragmentSelection;
8
8
  export declare function equals(existing: AttributePicklistOutputRepresentationNormalized, incoming: AttributePicklistOutputRepresentationNormalized): boolean;
9
- export declare function deepFreeze(input: AttributePicklistOutputRepresentation): void;
10
9
  export declare const ingest: $64$luvio_engine_ResourceIngest;
11
10
  export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: AttributePicklistOutputRepresentation, 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: AttributePicklistValueOutputRepresentation, existing: AttributePicklistValueOutputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): AttributePicklistValueOutputRepresentationNormalized;
6
6
  export declare const select: () => $64$luvio_engine_FragmentSelection;
7
7
  export declare function equals(existing: AttributePicklistValueOutputRepresentationNormalized, incoming: AttributePicklistValueOutputRepresentationNormalized): boolean;
8
- export declare function deepFreeze(input: AttributePicklistValueOutputRepresentation): void;
9
8
  export declare const ingest: $64$luvio_engine_ResourceIngest;
10
9
  export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: AttributePicklistValueOutputRepresentation, 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: DeactivateInputRepresentation, existing: DeactivateInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): DeactivateInputRepresentationNormalized;
6
6
  export declare const select: () => $64$luvio_engine_FragmentSelection;
7
7
  export declare function equals(existing: DeactivateInputRepresentationNormalized, incoming: DeactivateInputRepresentationNormalized): boolean;
8
- export declare function deepFreeze(input: DeactivateInputRepresentation): void;
9
8
  export declare const ingest: $64$luvio_engine_ResourceIngest;
10
9
  export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: DeactivateInputRepresentation, 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: DeactivateInputRepresentationWrapper, existing: DeactivateInputRepresentationWrapperNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): DeactivateInputRepresentationWrapperNormalized;
7
7
  export declare const select: () => $64$luvio_engine_FragmentSelection;
8
8
  export declare function equals(existing: DeactivateInputRepresentationWrapperNormalized, incoming: DeactivateInputRepresentationWrapperNormalized): boolean;
9
- export declare function deepFreeze(input: DeactivateInputRepresentationWrapper): void;
10
9
  export declare const ingest: $64$luvio_engine_ResourceIngest;
11
10
  export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: DeactivateInputRepresentationWrapper, 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: ErrorOutputRepresentation, existing: ErrorOutputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ErrorOutputRepresentationNormalized;
6
6
  export declare const select: () => $64$luvio_engine_FragmentSelection;
7
7
  export declare function equals(existing: ErrorOutputRepresentationNormalized, incoming: ErrorOutputRepresentationNormalized): boolean;
8
- export declare function deepFreeze(input: ErrorOutputRepresentation): void;
9
8
  export declare const ingest: $64$luvio_engine_ResourceIngest;
10
9
  export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: ErrorOutputRepresentation, 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: PriceOutputRepresentation, existing: PriceOutputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): PriceOutputRepresentationNormalized;
7
7
  export declare const select: () => $64$luvio_engine_FragmentSelection;
8
8
  export declare function equals(existing: PriceOutputRepresentationNormalized, incoming: PriceOutputRepresentationNormalized): boolean;
9
- export declare function deepFreeze(input: PriceOutputRepresentation): void;
10
9
  export declare const ingest: $64$luvio_engine_ResourceIngest;
11
10
  export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: PriceOutputRepresentation, 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: PricingModelOutputRepresentation, existing: PricingModelOutputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): PricingModelOutputRepresentationNormalized;
6
6
  export declare const select: () => $64$luvio_engine_FragmentSelection;
7
7
  export declare function equals(existing: PricingModelOutputRepresentationNormalized, incoming: PricingModelOutputRepresentationNormalized): boolean;
8
- export declare function deepFreeze(input: PricingModelOutputRepresentation): void;
9
8
  export declare const ingest: $64$luvio_engine_ResourceIngest;
10
9
  export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: PricingModelOutputRepresentation, 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: ProductAttributeDefinitionInputRepresentation, existing: ProductAttributeDefinitionInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ProductAttributeDefinitionInputRepresentationNormalized;
6
6
  export declare const select: () => $64$luvio_engine_FragmentSelection;
7
7
  export declare function equals(existing: ProductAttributeDefinitionInputRepresentationNormalized, incoming: ProductAttributeDefinitionInputRepresentationNormalized): boolean;
8
- export declare function deepFreeze(input: ProductAttributeDefinitionInputRepresentation): void;
9
8
  export declare const ingest: $64$luvio_engine_ResourceIngest;
10
9
  export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: ProductAttributeDefinitionInputRepresentation, 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: ProductAttributeDefinitionListInputRepresentation, existing: ProductAttributeDefinitionListInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ProductAttributeDefinitionListInputRepresentationNormalized;
6
6
  export declare const select: () => $64$luvio_engine_FragmentSelection;
7
7
  export declare function equals(existing: ProductAttributeDefinitionListInputRepresentationNormalized, incoming: ProductAttributeDefinitionListInputRepresentationNormalized): boolean;
8
- export declare function deepFreeze(input: ProductAttributeDefinitionListInputRepresentation): void;
9
8
  export declare const ingest: $64$luvio_engine_ResourceIngest;
10
9
  export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: ProductAttributeDefinitionListInputRepresentation, 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: ProductAttributeDefinitionListInputRepresentationWrapper, existing: ProductAttributeDefinitionListInputRepresentationWrapperNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ProductAttributeDefinitionListInputRepresentationWrapperNormalized;
7
7
  export declare const select: () => $64$luvio_engine_FragmentSelection;
8
8
  export declare function equals(existing: ProductAttributeDefinitionListInputRepresentationWrapperNormalized, incoming: ProductAttributeDefinitionListInputRepresentationWrapperNormalized): boolean;
9
- export declare function deepFreeze(input: ProductAttributeDefinitionListInputRepresentationWrapper): void;
10
9
  export declare const ingest: $64$luvio_engine_ResourceIngest;
11
10
  export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: ProductAttributeDefinitionListInputRepresentationWrapper, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): $64$luvio_engine_DurableStoreKeyMetadataMap;
12
11
  /**
@@ -16,7 +16,6 @@ export declare function keyBuilderFromType_StructuredKey(luvio: $64$luvio_engine
16
16
  export declare function normalize(input: ProductAttributeDefinitionListRepresentation, existing: ProductAttributeDefinitionListRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ProductAttributeDefinitionListRepresentationNormalized;
17
17
  export declare const select: () => $64$luvio_engine_BaseFragment;
18
18
  export declare function equals(existing: ProductAttributeDefinitionListRepresentationNormalized, incoming: ProductAttributeDefinitionListRepresentationNormalized): boolean;
19
- export declare function deepFreeze(input: ProductAttributeDefinitionListRepresentation): void;
20
19
  export declare const ingest: $64$luvio_engine_ResourceIngest;
21
20
  export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: ProductAttributeDefinitionListRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): $64$luvio_engine_DurableStoreKeyMetadataMap;
22
21
  /**
@@ -5,7 +5,6 @@ export declare const RepresentationType: string;
5
5
  export declare function normalize(input: ProductAttributeDefinitionRepresentation, existing: ProductAttributeDefinitionRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ProductAttributeDefinitionRepresentationNormalized;
6
6
  export declare const select: () => $64$luvio_engine_FragmentSelection;
7
7
  export declare function equals(existing: ProductAttributeDefinitionRepresentationNormalized, incoming: ProductAttributeDefinitionRepresentationNormalized): boolean;
8
- export declare function deepFreeze(input: ProductAttributeDefinitionRepresentation): void;
9
8
  export declare const ingest: $64$luvio_engine_ResourceIngest;
10
9
  export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: ProductAttributeDefinitionRepresentation, 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: ProductFlowConnectRepresentation, existing: ProductFlowConnectRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ProductFlowConnectRepresentationNormalized;
6
6
  export declare const select: () => $64$luvio_engine_FragmentSelection;
7
7
  export declare function equals(existing: ProductFlowConnectRepresentationNormalized, incoming: ProductFlowConnectRepresentationNormalized): boolean;
8
- export declare function deepFreeze(input: ProductFlowConnectRepresentation): void;
9
8
  export declare const ingest: $64$luvio_engine_ResourceIngest;
10
9
  export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: ProductFlowConnectRepresentation, 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: ProductFlowOutputRepresentation, existing: ProductFlowOutputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ProductFlowOutputRepresentationNormalized;
9
9
  export declare const select: () => $64$luvio_engine_BaseFragment;
10
10
  export declare function equals(existing: ProductFlowOutputRepresentationNormalized, incoming: ProductFlowOutputRepresentationNormalized): boolean;
11
- export declare function deepFreeze(input: ProductFlowOutputRepresentation): void;
12
11
  export declare const ingest: $64$luvio_engine_ResourceIngest;
13
12
  export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: ProductFlowOutputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): $64$luvio_engine_DurableStoreKeyMetadataMap;
14
13
  /**
@@ -10,7 +10,6 @@ export declare const RepresentationType: string;
10
10
  export declare function normalize(input: ProductOutputRepresentation, existing: ProductOutputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ProductOutputRepresentationNormalized;
11
11
  export declare const select: () => $64$luvio_engine_BaseFragment;
12
12
  export declare function equals(existing: ProductOutputRepresentationNormalized, incoming: ProductOutputRepresentationNormalized): boolean;
13
- export declare function deepFreeze(input: ProductOutputRepresentation): void;
14
13
  export declare const ingest: $64$luvio_engine_ResourceIngest;
15
14
  export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: ProductOutputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): $64$luvio_engine_DurableStoreKeyMetadataMap;
16
15
  /**
@@ -5,7 +5,6 @@ export declare const RepresentationType: string;
5
5
  export declare function normalize(input: QuantityInfo, existing: QuantityInfoNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): QuantityInfoNormalized;
6
6
  export declare const select: () => $64$luvio_engine_FragmentSelection;
7
7
  export declare function equals(existing: QuantityInfoNormalized, incoming: QuantityInfoNormalized): boolean;
8
- export declare function deepFreeze(input: QuantityInfo): void;
9
8
  export declare const ingest: $64$luvio_engine_ResourceIngest;
10
9
  export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: QuantityInfo, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): $64$luvio_engine_DurableStoreKeyMetadataMap;
11
10
  /**
@@ -16,7 +16,6 @@ export declare function keyBuilderFromType_StructuredKey(luvio: $64$luvio_engine
16
16
  export declare function normalize(input: RecordIdMapOutputRepresentation, existing: RecordIdMapOutputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): RecordIdMapOutputRepresentationNormalized;
17
17
  export declare const select: () => $64$luvio_engine_BaseFragment;
18
18
  export declare function equals(existing: RecordIdMapOutputRepresentationNormalized, incoming: RecordIdMapOutputRepresentationNormalized): boolean;
19
- export declare function deepFreeze(input: RecordIdMapOutputRepresentation): void;
20
19
  export declare const ingest: $64$luvio_engine_ResourceIngest;
21
20
  export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: RecordIdMapOutputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): $64$luvio_engine_DurableStoreKeyMetadataMap;
22
21
  /**
@@ -5,7 +5,6 @@ export declare const RepresentationType: string;
5
5
  export declare function normalize(input: Status, existing: StatusNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): StatusNormalized;
6
6
  export declare const select: () => $64$luvio_engine_FragmentSelection;
7
7
  export declare function equals(existing: StatusNormalized, incoming: StatusNormalized): boolean;
8
- export declare function deepFreeze(input: Status): void;
9
8
  export declare const ingest: $64$luvio_engine_ResourceIngest;
10
9
  export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: Status, 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 ObjectFreeze: {
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-epc",
3
- "version": "1.134.7",
3
+ "version": "1.134.8",
4
4
  "license": "SEE LICENSE IN LICENSE.txt",
5
5
  "description": "APIs for EPCNext project",
6
6
  "main": "dist/es/es2018/industries-epc.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$1, freeze: ObjectFreeze$1, create: ObjectCreate$1 } = Object;
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$1(config).some(key => !supported.includes(key))) {
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 = 'epc';
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$f(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$f(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$f(value[keys[i]]);
80
- }
81
- }
82
- ObjectFreeze(value);
83
- }
84
65
  function createLink(ref) {
85
66
  return {
86
67
  __ref: serializeStructuredKey(ref),
@@ -130,9 +111,6 @@ function validate$f(obj, path = 'ProductAttributeDefinitionRepresentation') {
130
111
  })();
131
112
  return v_error === undefined ? null : v_error;
132
113
  }
133
- function deepFreeze$e(input) {
134
- ObjectFreeze(input);
135
- }
136
114
 
137
115
  const TTL$3 = 6000;
138
116
  const VERSION$3 = "e67d3c8569b9667eac98cc1a9840041c";
@@ -191,15 +169,6 @@ function equals$3(existing, incoming) {
191
169
  }
192
170
  return true;
193
171
  }
194
- function deepFreeze$d(input) {
195
- const input_data = input.data;
196
- for (let i = 0; i < input_data.length; i++) {
197
- const input_data_item = input_data[i];
198
- deepFreeze$e(input_data_item);
199
- }
200
- ObjectFreeze(input_data);
201
- ObjectFreeze(input);
202
- }
203
172
  const ingest$3 = function ProductAttributeDefinitionListRepresentationIngest(input, path, luvio, store, timestamp) {
204
173
  if (process.env.NODE_ENV !== 'production') {
205
174
  const validateError = validate$e(input);
@@ -216,7 +185,6 @@ const ingest$3 = function ProductAttributeDefinitionListRepresentationIngest(inp
216
185
  propertyName: path.propertyName,
217
186
  ttl: ttlToUse
218
187
  });
219
- deepFreeze$d(input);
220
188
  if (existingRecord === undefined || equals$3(existingRecord, incomingRecord) === false) {
221
189
  luvio.storePublish(key, incomingRecord);
222
190
  }
@@ -263,6 +231,7 @@ function ingestSuccess$3(luvio, resourceParams, response) {
263
231
  throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
264
232
  }
265
233
  }
234
+ deepFreeze(snapshot.data);
266
235
  return snapshot;
267
236
  }
268
237
  function createResourceRequest$3(config) {
@@ -326,7 +295,7 @@ function buildNetworkSnapshot$3(luvio, config, options) {
326
295
  return luvio.storeBroadcast().then(() => snapshot);
327
296
  }, () => getResponseCacheKeys$3(luvio, resourceParams, response.body));
328
297
  }, (response) => {
329
- deepFreeze$f(response);
298
+ deepFreeze(response);
330
299
  throw response;
331
300
  });
332
301
  }
@@ -404,11 +373,6 @@ function validate$c(obj, path = 'ErrorOutputRepresentation') {
404
373
  })();
405
374
  return v_error === undefined ? null : v_error;
406
375
  }
407
- function deepFreeze$c(input) {
408
- const input_details = input.details;
409
- ObjectFreeze(input_details);
410
- ObjectFreeze(input);
411
- }
412
376
 
413
377
  const TTL$2 = 6000;
414
378
  const VERSION$2 = "67abdeaa299bae24f468fd2e78cd1e1e";
@@ -467,15 +431,6 @@ function equals$2(existing, incoming) {
467
431
  }
468
432
  return true;
469
433
  }
470
- function deepFreeze$b(input) {
471
- const input_errors = input.errors;
472
- for (let i = 0; i < input_errors.length; i++) {
473
- const input_errors_item = input_errors[i];
474
- deepFreeze$c(input_errors_item);
475
- }
476
- ObjectFreeze(input_errors);
477
- ObjectFreeze(input);
478
- }
479
434
  const ingest$2 = function RecordIdMapOutputRepresentationIngest(input, path, luvio, store, timestamp) {
480
435
  if (process.env.NODE_ENV !== 'production') {
481
436
  const validateError = validate$b(input);
@@ -492,7 +447,6 @@ const ingest$2 = function RecordIdMapOutputRepresentationIngest(input, path, luv
492
447
  propertyName: path.propertyName,
493
448
  ttl: ttlToUse
494
449
  });
495
- deepFreeze$b(input);
496
450
  if (existingRecord === undefined || equals$2(existingRecord, incomingRecord) === false) {
497
451
  luvio.storePublish(key, incomingRecord);
498
452
  }
@@ -539,6 +493,7 @@ function ingestSuccess$2(luvio, resourceParams, response) {
539
493
  throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
540
494
  }
541
495
  }
496
+ deepFreeze(snapshot.data);
542
497
  return snapshot;
543
498
  }
544
499
  function createResourceRequest$2(config) {
@@ -602,7 +557,7 @@ function buildNetworkSnapshot$2(luvio, config, options) {
602
557
  return luvio.storeBroadcast().then(() => snapshot);
603
558
  }, () => getResponseCacheKeys$2(luvio, resourceParams, response.body));
604
559
  }, (response) => {
605
- deepFreeze$f(response);
560
+ deepFreeze(response);
606
561
  throw response;
607
562
  });
608
563
  }
@@ -695,9 +650,6 @@ function validate$a(obj, path = 'AttributePicklistValueOutputRepresentation') {
695
650
  })();
696
651
  return v_error === undefined ? null : v_error;
697
652
  }
698
- function deepFreeze$a(input) {
699
- ObjectFreeze(input);
700
- }
701
653
 
702
654
  function validate$9(obj, path = 'AttributePicklistOutputRepresentation') {
703
655
  const v_error = (() => {
@@ -759,17 +711,6 @@ function validate$9(obj, path = 'AttributePicklistOutputRepresentation') {
759
711
  })();
760
712
  return v_error === undefined ? null : v_error;
761
713
  }
762
- function deepFreeze$9(input) {
763
- const input_values = input.values;
764
- if (input_values !== undefined) {
765
- for (let i = 0; i < input_values.length; i++) {
766
- const input_values_item = input_values[i];
767
- deepFreeze$a(input_values_item);
768
- }
769
- ObjectFreeze(input_values);
770
- }
771
- ObjectFreeze(input);
772
- }
773
714
 
774
715
  function validate$8(obj, path = 'AttributeDefinitionOutputRepresentation') {
775
716
  const v_error = (() => {
@@ -908,13 +849,6 @@ function validate$8(obj, path = 'AttributeDefinitionOutputRepresentation') {
908
849
  })();
909
850
  return v_error === undefined ? null : v_error;
910
851
  }
911
- function deepFreeze$8(input) {
912
- const input_picklist = input.picklist;
913
- if (input_picklist !== undefined) {
914
- deepFreeze$9(input_picklist);
915
- }
916
- ObjectFreeze(input);
917
- }
918
852
 
919
853
  function validate$7(obj, path = 'AttributeCategoryOutputRepresentation') {
920
854
  const v_error = (() => {
@@ -962,17 +896,6 @@ function validate$7(obj, path = 'AttributeCategoryOutputRepresentation') {
962
896
  })();
963
897
  return v_error === undefined ? null : v_error;
964
898
  }
965
- function deepFreeze$7(input) {
966
- const input_attributes = input.attributes;
967
- if (input_attributes !== undefined) {
968
- for (let i = 0; i < input_attributes.length; i++) {
969
- const input_attributes_item = input_attributes[i];
970
- deepFreeze$8(input_attributes_item);
971
- }
972
- ObjectFreeze(input_attributes);
973
- }
974
- ObjectFreeze(input);
975
- }
976
899
 
977
900
  function validate$6(obj, path = 'PricingModelOutputRepresentation') {
978
901
  const v_error = (() => {
@@ -1024,9 +947,6 @@ function validate$6(obj, path = 'PricingModelOutputRepresentation') {
1024
947
  })();
1025
948
  return v_error === undefined ? null : v_error;
1026
949
  }
1027
- function deepFreeze$6(input) {
1028
- ObjectFreeze(input);
1029
- }
1030
950
 
1031
951
  function validate$5(obj, path = 'PriceOutputRepresentation') {
1032
952
  const v_error = (() => {
@@ -1081,13 +1001,6 @@ function validate$5(obj, path = 'PriceOutputRepresentation') {
1081
1001
  })();
1082
1002
  return v_error === undefined ? null : v_error;
1083
1003
  }
1084
- function deepFreeze$5(input) {
1085
- const input_pricingModel = input.pricingModel;
1086
- if (input_pricingModel !== undefined) {
1087
- deepFreeze$6(input_pricingModel);
1088
- }
1089
- ObjectFreeze(input);
1090
- }
1091
1004
 
1092
1005
  function validate$4(obj, path = 'QuantityInfo') {
1093
1006
  const v_error = (() => {
@@ -1106,9 +1019,6 @@ function validate$4(obj, path = 'QuantityInfo') {
1106
1019
  })();
1107
1020
  return v_error === undefined ? null : v_error;
1108
1021
  }
1109
- function deepFreeze$4(input) {
1110
- ObjectFreeze(input);
1111
- }
1112
1022
 
1113
1023
  const TTL$1 = 6000;
1114
1024
  const VERSION$1 = "59486918cad0cc20f8b6c12d84d03600";
@@ -1265,45 +1175,6 @@ function equals$1(existing, incoming) {
1265
1175
  }
1266
1176
  return true;
1267
1177
  }
1268
- function deepFreeze$3(input) {
1269
- const input_attributeCategory = input.attributeCategory;
1270
- if (input_attributeCategory !== undefined) {
1271
- for (let i = 0; i < input_attributeCategory.length; i++) {
1272
- const input_attributeCategory_item = input_attributeCategory[i];
1273
- deepFreeze$7(input_attributeCategory_item);
1274
- }
1275
- ObjectFreeze(input_attributeCategory);
1276
- }
1277
- const input_attributes = input.attributes;
1278
- if (input_attributes !== undefined) {
1279
- for (let i = 0; i < input_attributes.length; i++) {
1280
- const input_attributes_item = input_attributes[i];
1281
- deepFreeze$8(input_attributes_item);
1282
- }
1283
- ObjectFreeze(input_attributes);
1284
- }
1285
- const input_childProducts = input.childProducts;
1286
- if (input_childProducts !== undefined) {
1287
- for (let i = 0; i < input_childProducts.length; i++) {
1288
- const input_childProducts_item = input_childProducts[i];
1289
- deepFreeze$3(input_childProducts_item);
1290
- }
1291
- ObjectFreeze(input_childProducts);
1292
- }
1293
- const input_prices = input.prices;
1294
- if (input_prices !== undefined) {
1295
- for (let i = 0; i < input_prices.length; i++) {
1296
- const input_prices_item = input_prices[i];
1297
- deepFreeze$5(input_prices_item);
1298
- }
1299
- ObjectFreeze(input_prices);
1300
- }
1301
- const input_quantityInfo = input.quantityInfo;
1302
- if (input_quantityInfo !== undefined) {
1303
- deepFreeze$4(input_quantityInfo);
1304
- }
1305
- ObjectFreeze(input);
1306
- }
1307
1178
  const ingest$1 = function ProductOutputRepresentationIngest(input, path, luvio, store, timestamp) {
1308
1179
  if (process.env.NODE_ENV !== 'production') {
1309
1180
  const validateError = validate$3(input);
@@ -1320,7 +1191,6 @@ const ingest$1 = function ProductOutputRepresentationIngest(input, path, luvio,
1320
1191
  propertyName: path.propertyName,
1321
1192
  ttl: ttlToUse
1322
1193
  });
1323
- deepFreeze$3(input);
1324
1194
  if (existingRecord === undefined || equals$1(existingRecord, incomingRecord) === false) {
1325
1195
  luvio.storePublish(key, incomingRecord);
1326
1196
  }
@@ -1370,6 +1240,7 @@ function ingestSuccess$1(luvio, resourceParams, response, snapshotRefresh) {
1370
1240
  throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
1371
1241
  }
1372
1242
  }
1243
+ deepFreeze(snapshot.data);
1373
1244
  return snapshot;
1374
1245
  }
1375
1246
  function ingestError$1(luvio, params, error, snapshotRefresh) {
@@ -1532,9 +1403,6 @@ function validate$2(obj, path = 'ProductFlowConnectRepresentation') {
1532
1403
  })();
1533
1404
  return v_error === undefined ? null : v_error;
1534
1405
  }
1535
- function deepFreeze$2(input) {
1536
- ObjectFreeze(input);
1537
- }
1538
1406
 
1539
1407
  function validate$1(obj, path = 'Status') {
1540
1408
  const v_error = (() => {
@@ -1554,9 +1422,6 @@ function validate$1(obj, path = 'Status') {
1554
1422
  })();
1555
1423
  return v_error === undefined ? null : v_error;
1556
1424
  }
1557
- function deepFreeze$1(input) {
1558
- ObjectFreeze(input);
1559
- }
1560
1425
 
1561
1426
  const TTL = 6000;
1562
1427
  const VERSION = "a75aed3c640fb969c24561ef4f8cb169";
@@ -1613,17 +1478,6 @@ function equals(existing, incoming) {
1613
1478
  }
1614
1479
  return true;
1615
1480
  }
1616
- function deepFreeze(input) {
1617
- const input_productFlow = input.productFlow;
1618
- if (input_productFlow !== undefined) {
1619
- deepFreeze$2(input_productFlow);
1620
- }
1621
- const input_status = input.status;
1622
- if (input_status !== undefined) {
1623
- deepFreeze$1(input_status);
1624
- }
1625
- ObjectFreeze(input);
1626
- }
1627
1481
  const ingest = function ProductFlowOutputRepresentationIngest(input, path, luvio, store, timestamp) {
1628
1482
  if (process.env.NODE_ENV !== 'production') {
1629
1483
  const validateError = validate(input);
@@ -1640,7 +1494,6 @@ const ingest = function ProductFlowOutputRepresentationIngest(input, path, luvio
1640
1494
  propertyName: path.propertyName,
1641
1495
  ttl: ttlToUse
1642
1496
  });
1643
- deepFreeze(input);
1644
1497
  if (existingRecord === undefined || equals(existingRecord, incomingRecord) === false) {
1645
1498
  luvio.storePublish(key, incomingRecord);
1646
1499
  }
@@ -1690,6 +1543,7 @@ function ingestSuccess(luvio, resourceParams, response, snapshotRefresh) {
1690
1543
  throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
1691
1544
  }
1692
1545
  }
1546
+ deepFreeze(snapshot.data);
1693
1547
  return snapshot;
1694
1548
  }
1695
1549
  function ingestError(luvio, params, error, snapshotRefresh) {
@@ -1872,4 +1726,4 @@ withDefaultLuvio((luvio) => {
1872
1726
  });
1873
1727
 
1874
1728
  export { createProductAttributeDefinition, deactivate, getProductAttributesByProductId, getProductAttributesByProductId_imperative, getProductFlowByProductId, getProductFlowByProductId_imperative };
1875
- // version: 1.134.7-ed0df45ef
1729
+ // version: 1.134.8-c3d6d2cfc