@salesforce/lds-adapters-industries-interesttagging 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 (22) hide show
  1. package/dist/es/es2018/industries-interesttagging.js +9 -51
  2. package/dist/es/es2018/types/src/generated/adapters/adapter-utils.d.ts +1 -7
  3. package/dist/es/es2018/types/src/generated/types/InterestTagAssignmentInputRepresentation.d.ts +0 -1
  4. package/dist/es/es2018/types/src/generated/types/InterestTagAssignmentOutputRepresentation.d.ts +0 -1
  5. package/dist/es/es2018/types/src/generated/types/InterestTagCreateCollectionOutputRepresentation.d.ts +0 -1
  6. package/dist/es/es2018/types/src/generated/types/InterestTagCreateInputListRepresentation.d.ts +0 -1
  7. package/dist/es/es2018/types/src/generated/types/InterestTagCreateInputRepresentation.d.ts +0 -1
  8. package/dist/es/es2018/types/src/generated/types/InterestTagCreateResult.d.ts +0 -1
  9. package/dist/es/es2018/types/src/generated/types/InterestTagListRepresentation.d.ts +0 -1
  10. package/dist/es/es2018/types/src/generated/types/InterestTagRepresentation.d.ts +0 -1
  11. package/dist/es/es2018/types/src/generated/types/InterestTagUpdateInputRepresentation.d.ts +0 -1
  12. package/dist/es/es2018/types/src/generated/types/InterestTagUpdateOutputRepresentation.d.ts +0 -1
  13. package/dist/es/es2018/types/src/generated/types/RecordsForTag.d.ts +0 -1
  14. package/dist/es/es2018/types/src/generated/types/TagCategoryListRepresentation.d.ts +0 -1
  15. package/dist/es/es2018/types/src/generated/types/TagCategoryRepresentation.d.ts +0 -1
  16. package/dist/es/es2018/types/src/generated/types/TagCategoryWithParentRepresentation.d.ts +0 -1
  17. package/dist/es/es2018/types/src/generated/types/TagRecordAssignment.d.ts +0 -1
  18. package/dist/es/es2018/types/src/generated/types/TagRecordAssignmentCollectionRepresentation.d.ts +0 -1
  19. package/dist/es/es2018/types/src/generated/types/TagsForRecord.d.ts +0 -1
  20. package/dist/es/es2018/types/src/generated/types/type-utils.d.ts +1 -8
  21. package/package.json +1 -1
  22. package/sfdc/index.js +10 -52
@@ -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,7 +50,6 @@ const snapshotRefreshOptions = {
50
50
  };
51
51
  const keyPrefix = 'interesttagging';
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
55
  function equalsArray(a, b, equalsItem) {
@@ -66,24 +65,6 @@ function equalsArray(a, b, equalsItem) {
66
65
  }
67
66
  return true;
68
67
  }
69
- function deepFreeze$4(value) {
70
- // No need to freeze primitives
71
- if (typeof value !== 'object' || value === null) {
72
- return;
73
- }
74
- if (ArrayIsArray(value)) {
75
- for (let i = 0, len = value.length; i < len; i += 1) {
76
- deepFreeze$4(value[i]);
77
- }
78
- }
79
- else {
80
- const keys = ObjectKeys(value);
81
- for (let i = 0, len = keys.length; i < len; i += 1) {
82
- deepFreeze$4(value[keys[i]]);
83
- }
84
- }
85
- ObjectFreeze(value);
86
- }
87
68
  function createLink(ref) {
88
69
  return {
89
70
  __ref: serializeStructuredKey(ref),
@@ -151,11 +132,6 @@ function equals$5(existing, incoming) {
151
132
  }
152
133
  return true;
153
134
  }
154
- function deepFreeze$3(input) {
155
- const input_errors = input.errors;
156
- ObjectFreeze(input_errors);
157
- ObjectFreeze(input);
158
- }
159
135
  const ingest$3 = function InterestTagAssignmentOutputRepresentationIngest(input, path, luvio, store, timestamp) {
160
136
  if (process.env.NODE_ENV !== 'production') {
161
137
  const validateError = validate$7(input);
@@ -172,7 +148,6 @@ const ingest$3 = function InterestTagAssignmentOutputRepresentationIngest(input,
172
148
  propertyName: path.propertyName,
173
149
  ttl: ttlToUse
174
150
  });
175
- deepFreeze$3(input);
176
151
  if (existingRecord === undefined || equals$5(existingRecord, incomingRecord) === false) {
177
152
  luvio.storePublish(key, incomingRecord);
178
153
  }
@@ -219,6 +194,7 @@ function ingestSuccess$4(luvio, resourceParams, response) {
219
194
  throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
220
195
  }
221
196
  }
197
+ deepFreeze(snapshot.data);
222
198
  return snapshot;
223
199
  }
224
200
  function createResourceRequest$4(config) {
@@ -321,7 +297,7 @@ function buildNetworkSnapshot$4(luvio, config, options) {
321
297
  return luvio.storeBroadcast().then(() => snapshot);
322
298
  }, () => getResponseCacheKeys$4(luvio, resourceParams, response.body));
323
299
  }, (response) => {
324
- deepFreeze$4(response);
300
+ deepFreeze(response);
325
301
  throw response;
326
302
  });
327
303
  }
@@ -359,9 +335,6 @@ function validate$6(obj, path = 'TagCategoryRepresentation') {
359
335
  })();
360
336
  return v_error === undefined ? null : v_error;
361
337
  }
362
- function deepFreeze$2(input) {
363
- ObjectFreeze(input);
364
- }
365
338
 
366
339
  function validate$5(obj, path = 'InterestTagRepresentation') {
367
340
  const v_error = (() => {
@@ -401,15 +374,6 @@ function validate$5(obj, path = 'InterestTagRepresentation') {
401
374
  })();
402
375
  return v_error === undefined ? null : v_error;
403
376
  }
404
- function deepFreeze$1(input) {
405
- const input_categories = input.categories;
406
- for (let i = 0; i < input_categories.length; i++) {
407
- const input_categories_item = input_categories[i];
408
- deepFreeze$2(input_categories_item);
409
- }
410
- ObjectFreeze(input_categories);
411
- ObjectFreeze(input);
412
- }
413
377
 
414
378
  const TTL = 10000;
415
379
  const VERSION$4 = "a7f32ea47ff9fb394c6f9e13003a5595";
@@ -454,15 +418,6 @@ function equals$4(existing, incoming) {
454
418
  }
455
419
  return true;
456
420
  }
457
- function deepFreeze(input) {
458
- const input_tags = input.tags;
459
- for (let i = 0; i < input_tags.length; i++) {
460
- const input_tags_item = input_tags[i];
461
- deepFreeze$1(input_tags_item);
462
- }
463
- ObjectFreeze(input_tags);
464
- ObjectFreeze(input);
465
- }
466
421
  const ingest$2 = function InterestTagListRepresentationIngest(input, path, luvio, store, timestamp) {
467
422
  if (process.env.NODE_ENV !== 'production') {
468
423
  const validateError = validate$4(input);
@@ -479,7 +434,6 @@ const ingest$2 = function InterestTagListRepresentationIngest(input, path, luvio
479
434
  propertyName: path.propertyName,
480
435
  ttl: ttlToUse
481
436
  });
482
- deepFreeze(input);
483
437
  if (existingRecord === undefined || equals$4(existingRecord, incomingRecord) === false) {
484
438
  luvio.storePublish(key, incomingRecord);
485
439
  }
@@ -529,6 +483,7 @@ function ingestSuccess$3(luvio, resourceParams, response, snapshotRefresh) {
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 ingestError$3(luvio, params, error, snapshotRefresh) {
@@ -884,6 +839,7 @@ function ingestSuccess$2(luvio, resourceParams, response, snapshotRefresh) {
884
839
  throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
885
840
  }
886
841
  }
842
+ deepFreeze(snapshot.data);
887
843
  return snapshot;
888
844
  }
889
845
  function ingestError$2(luvio, params, error, snapshotRefresh) {
@@ -1261,6 +1217,7 @@ function ingestSuccess$1(luvio, resourceParams, response, snapshotRefresh) {
1261
1217
  throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
1262
1218
  }
1263
1219
  }
1220
+ deepFreeze(snapshot.data);
1264
1221
  return snapshot;
1265
1222
  }
1266
1223
  function ingestError$1(luvio, params, error, snapshotRefresh) {
@@ -1430,6 +1387,7 @@ function ingestSuccess(luvio, resourceParams, response, snapshotRefresh) {
1430
1387
  throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
1431
1388
  }
1432
1389
  }
1390
+ deepFreeze(snapshot.data);
1433
1391
  return snapshot;
1434
1392
  }
1435
1393
  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 {
@@ -5,7 +5,6 @@ export declare const RepresentationType: string;
5
5
  export declare function normalize(input: InterestTagAssignmentInputRepresentation, existing: InterestTagAssignmentInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): InterestTagAssignmentInputRepresentationNormalized;
6
6
  export declare const select: () => $64$luvio_engine_FragmentSelection;
7
7
  export declare function equals(existing: InterestTagAssignmentInputRepresentationNormalized, incoming: InterestTagAssignmentInputRepresentationNormalized): boolean;
8
- export declare function deepFreeze(input: InterestTagAssignmentInputRepresentation): void;
9
8
  export declare const ingest: $64$luvio_engine_ResourceIngest;
10
9
  export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: InterestTagAssignmentInputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): $64$luvio_engine_DurableStoreKeyMetadataMap;
11
10
  /**
@@ -17,7 +17,6 @@ export declare function keyBuilderFromType_StructuredKey(luvio: $64$luvio_engine
17
17
  export declare function normalize(input: InterestTagAssignmentOutputRepresentation, existing: InterestTagAssignmentOutputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): InterestTagAssignmentOutputRepresentationNormalized;
18
18
  export declare const select: () => $64$luvio_engine_BaseFragment;
19
19
  export declare function equals(existing: InterestTagAssignmentOutputRepresentationNormalized, incoming: InterestTagAssignmentOutputRepresentationNormalized): boolean;
20
- export declare function deepFreeze(input: InterestTagAssignmentOutputRepresentation): void;
21
20
  export declare const ingest: $64$luvio_engine_ResourceIngest;
22
21
  export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: InterestTagAssignmentOutputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): $64$luvio_engine_DurableStoreKeyMetadataMap;
23
22
  /**
@@ -6,7 +6,6 @@ export declare const RepresentationType: string;
6
6
  export declare function normalize(input: InterestTagCreateCollectionOutputRepresentation, existing: InterestTagCreateCollectionOutputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): InterestTagCreateCollectionOutputRepresentationNormalized;
7
7
  export declare const select: () => $64$luvio_engine_FragmentSelection;
8
8
  export declare function equals(existing: InterestTagCreateCollectionOutputRepresentationNormalized, incoming: InterestTagCreateCollectionOutputRepresentationNormalized): boolean;
9
- export declare function deepFreeze(input: InterestTagCreateCollectionOutputRepresentation): void;
10
9
  export declare const ingest: $64$luvio_engine_ResourceIngest;
11
10
  export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: InterestTagCreateCollectionOutputRepresentation, 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: InterestTagCreateInputListRepresentation, existing: InterestTagCreateInputListRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): InterestTagCreateInputListRepresentationNormalized;
6
6
  export declare const select: () => $64$luvio_engine_FragmentSelection;
7
7
  export declare function equals(existing: InterestTagCreateInputListRepresentationNormalized, incoming: InterestTagCreateInputListRepresentationNormalized): boolean;
8
- export declare function deepFreeze(input: InterestTagCreateInputListRepresentation): void;
9
8
  export declare const ingest: $64$luvio_engine_ResourceIngest;
10
9
  export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: InterestTagCreateInputListRepresentation, 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: InterestTagCreateInputRepresentation, existing: InterestTagCreateInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): InterestTagCreateInputRepresentationNormalized;
6
6
  export declare const select: () => $64$luvio_engine_FragmentSelection;
7
7
  export declare function equals(existing: InterestTagCreateInputRepresentationNormalized, incoming: InterestTagCreateInputRepresentationNormalized): boolean;
8
- export declare function deepFreeze(input: InterestTagCreateInputRepresentation): void;
9
8
  export declare const ingest: $64$luvio_engine_ResourceIngest;
10
9
  export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: InterestTagCreateInputRepresentation, 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: InterestTagCreateResult, existing: InterestTagCreateResultNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): InterestTagCreateResultNormalized;
6
6
  export declare const select: () => $64$luvio_engine_FragmentSelection;
7
7
  export declare function equals(existing: InterestTagCreateResultNormalized, incoming: InterestTagCreateResultNormalized): boolean;
8
- export declare function deepFreeze(input: InterestTagCreateResult): void;
9
8
  export declare const ingest: $64$luvio_engine_ResourceIngest;
10
9
  export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: InterestTagCreateResult, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): $64$luvio_engine_DurableStoreKeyMetadataMap;
11
10
  /**
@@ -7,7 +7,6 @@ export declare const RepresentationType: string;
7
7
  export declare function normalize(input: InterestTagListRepresentation, existing: InterestTagListRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): InterestTagListRepresentationNormalized;
8
8
  export declare const select: () => $64$luvio_engine_BaseFragment;
9
9
  export declare function equals(existing: InterestTagListRepresentationNormalized, incoming: InterestTagListRepresentationNormalized): boolean;
10
- export declare function deepFreeze(input: InterestTagListRepresentation): void;
11
10
  export declare const ingest: $64$luvio_engine_ResourceIngest;
12
11
  export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: InterestTagListRepresentation, 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: InterestTagRepresentation, existing: InterestTagRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): InterestTagRepresentationNormalized;
7
7
  export declare const select: () => $64$luvio_engine_FragmentSelection;
8
8
  export declare function equals(existing: InterestTagRepresentationNormalized, incoming: InterestTagRepresentationNormalized): boolean;
9
- export declare function deepFreeze(input: InterestTagRepresentation): void;
10
9
  export declare const ingest: $64$luvio_engine_ResourceIngest;
11
10
  export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: InterestTagRepresentation, 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: InterestTagUpdateInputRepresentation, existing: InterestTagUpdateInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): InterestTagUpdateInputRepresentationNormalized;
6
6
  export declare const select: () => $64$luvio_engine_FragmentSelection;
7
7
  export declare function equals(existing: InterestTagUpdateInputRepresentationNormalized, incoming: InterestTagUpdateInputRepresentationNormalized): boolean;
8
- export declare function deepFreeze(input: InterestTagUpdateInputRepresentation): void;
9
8
  export declare const ingest: $64$luvio_engine_ResourceIngest;
10
9
  export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: InterestTagUpdateInputRepresentation, 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: InterestTagUpdateOutputRepresentation, existing: InterestTagUpdateOutputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): InterestTagUpdateOutputRepresentationNormalized;
6
6
  export declare const select: () => $64$luvio_engine_FragmentSelection;
7
7
  export declare function equals(existing: InterestTagUpdateOutputRepresentationNormalized, incoming: InterestTagUpdateOutputRepresentationNormalized): boolean;
8
- export declare function deepFreeze(input: InterestTagUpdateOutputRepresentation): void;
9
8
  export declare const ingest: $64$luvio_engine_ResourceIngest;
10
9
  export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: InterestTagUpdateOutputRepresentation, 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: RecordsForTag, existing: RecordsForTagNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): RecordsForTagNormalized;
6
6
  export declare const select: () => $64$luvio_engine_FragmentSelection;
7
7
  export declare function equals(existing: RecordsForTagNormalized, incoming: RecordsForTagNormalized): boolean;
8
- export declare function deepFreeze(input: RecordsForTag): void;
9
8
  export declare const ingest: $64$luvio_engine_ResourceIngest;
10
9
  export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: RecordsForTag, 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: TagCategoryListRepresentation, existing: TagCategoryListRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): TagCategoryListRepresentationNormalized;
7
7
  export declare const select: () => $64$luvio_engine_FragmentSelection;
8
8
  export declare function equals(existing: TagCategoryListRepresentationNormalized, incoming: TagCategoryListRepresentationNormalized): boolean;
9
- export declare function deepFreeze(input: TagCategoryListRepresentation): void;
10
9
  export declare const ingest: $64$luvio_engine_ResourceIngest;
11
10
  export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: TagCategoryListRepresentation, 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: TagCategoryRepresentation, existing: TagCategoryRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): TagCategoryRepresentationNormalized;
6
6
  export declare const select: () => $64$luvio_engine_FragmentSelection;
7
7
  export declare function equals(existing: TagCategoryRepresentationNormalized, incoming: TagCategoryRepresentationNormalized): boolean;
8
- export declare function deepFreeze(input: TagCategoryRepresentation): void;
9
8
  export declare const ingest: $64$luvio_engine_ResourceIngest;
10
9
  export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: TagCategoryRepresentation, 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: TagCategoryWithParentRepresentation, existing: TagCategoryWithParentRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): TagCategoryWithParentRepresentationNormalized;
6
6
  export declare const select: () => $64$luvio_engine_FragmentSelection;
7
7
  export declare function equals(existing: TagCategoryWithParentRepresentationNormalized, incoming: TagCategoryWithParentRepresentationNormalized): boolean;
8
- export declare function deepFreeze(input: TagCategoryWithParentRepresentation): void;
9
8
  export declare const ingest: $64$luvio_engine_ResourceIngest;
10
9
  export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: TagCategoryWithParentRepresentation, 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: TagRecordAssignment, existing: TagRecordAssignmentNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): TagRecordAssignmentNormalized;
6
6
  export declare const select: () => $64$luvio_engine_FragmentSelection;
7
7
  export declare function equals(existing: TagRecordAssignmentNormalized, incoming: TagRecordAssignmentNormalized): boolean;
8
- export declare function deepFreeze(input: TagRecordAssignment): void;
9
8
  export declare const ingest: $64$luvio_engine_ResourceIngest;
10
9
  export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: TagRecordAssignment, 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: TagRecordAssignmentCollectionRepresentation, existing: TagRecordAssignmentCollectionRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): TagRecordAssignmentCollectionRepresentationNormalized;
7
7
  export declare const select: () => $64$luvio_engine_FragmentSelection;
8
8
  export declare function equals(existing: TagRecordAssignmentCollectionRepresentationNormalized, incoming: TagRecordAssignmentCollectionRepresentationNormalized): boolean;
9
- export declare function deepFreeze(input: TagRecordAssignmentCollectionRepresentation): void;
10
9
  export declare const ingest: $64$luvio_engine_ResourceIngest;
11
10
  export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: TagRecordAssignmentCollectionRepresentation, 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: TagsForRecord, existing: TagsForRecordNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): TagsForRecordNormalized;
6
6
  export declare const select: () => $64$luvio_engine_FragmentSelection;
7
7
  export declare function equals(existing: TagsForRecordNormalized, incoming: TagsForRecordNormalized): boolean;
8
- export declare function deepFreeze(input: TagsForRecord): void;
9
8
  export declare const ingest: $64$luvio_engine_ResourceIngest;
10
9
  export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: TagsForRecord, 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-interesttagging",
3
- "version": "1.134.7",
3
+ "version": "1.134.8",
4
4
  "license": "SEE LICENSE IN LICENSE.txt",
5
5
  "description": "Connect family for interest tags APIs",
6
6
  "main": "dist/es/es2018/industries-interesttagging.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,7 +60,6 @@ const snapshotRefreshOptions = {
60
60
  };
61
61
  const keyPrefix = 'interesttagging';
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
65
  function equalsArray(a, b, equalsItem) {
@@ -76,24 +75,6 @@ function equalsArray(a, b, equalsItem) {
76
75
  }
77
76
  return true;
78
77
  }
79
- function deepFreeze$4(value) {
80
- // No need to freeze primitives
81
- if (typeof value !== 'object' || value === null) {
82
- return;
83
- }
84
- if (ArrayIsArray(value)) {
85
- for (let i = 0, len = value.length; i < len; i += 1) {
86
- deepFreeze$4(value[i]);
87
- }
88
- }
89
- else {
90
- const keys = ObjectKeys(value);
91
- for (let i = 0, len = keys.length; i < len; i += 1) {
92
- deepFreeze$4(value[keys[i]]);
93
- }
94
- }
95
- ObjectFreeze(value);
96
- }
97
78
  function createLink(ref) {
98
79
  return {
99
80
  __ref: serializeStructuredKey(ref),
@@ -161,11 +142,6 @@ function equals$5(existing, incoming) {
161
142
  }
162
143
  return true;
163
144
  }
164
- function deepFreeze$3(input) {
165
- const input_errors = input.errors;
166
- ObjectFreeze(input_errors);
167
- ObjectFreeze(input);
168
- }
169
145
  const ingest$3 = function InterestTagAssignmentOutputRepresentationIngest(input, path, luvio, store, timestamp) {
170
146
  if (process.env.NODE_ENV !== 'production') {
171
147
  const validateError = validate$7(input);
@@ -182,7 +158,6 @@ const ingest$3 = function InterestTagAssignmentOutputRepresentationIngest(input,
182
158
  propertyName: path.propertyName,
183
159
  ttl: ttlToUse
184
160
  });
185
- deepFreeze$3(input);
186
161
  if (existingRecord === undefined || equals$5(existingRecord, incomingRecord) === false) {
187
162
  luvio.storePublish(key, incomingRecord);
188
163
  }
@@ -229,6 +204,7 @@ function ingestSuccess$4(luvio, resourceParams, response) {
229
204
  throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
230
205
  }
231
206
  }
207
+ deepFreeze(snapshot.data);
232
208
  return snapshot;
233
209
  }
234
210
  function createResourceRequest$4(config) {
@@ -331,7 +307,7 @@ function buildNetworkSnapshot$4(luvio, config, options) {
331
307
  return luvio.storeBroadcast().then(() => snapshot);
332
308
  }, () => getResponseCacheKeys$4(luvio, resourceParams, response.body));
333
309
  }, (response) => {
334
- deepFreeze$4(response);
310
+ deepFreeze(response);
335
311
  throw response;
336
312
  });
337
313
  }
@@ -546,6 +522,7 @@ function ingestSuccess$3(luvio, resourceParams, response, snapshotRefresh) {
546
522
  throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
547
523
  }
548
524
  }
525
+ deepFreeze(snapshot.data);
549
526
  return snapshot;
550
527
  }
551
528
  function ingestError$3(luvio, params, error, snapshotRefresh) {
@@ -923,6 +900,7 @@ function ingestSuccess$2(luvio, resourceParams, response, snapshotRefresh) {
923
900
  throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
924
901
  }
925
902
  }
903
+ deepFreeze(snapshot.data);
926
904
  return snapshot;
927
905
  }
928
906
  function ingestError$2(luvio, params, error, snapshotRefresh) {
@@ -1092,9 +1070,6 @@ function validate$2(obj, path = 'TagCategoryRepresentation') {
1092
1070
  })();
1093
1071
  return v_error === undefined ? null : v_error;
1094
1072
  }
1095
- function deepFreeze$2(input) {
1096
- ObjectFreeze(input);
1097
- }
1098
1073
 
1099
1074
  function validate$1(obj, path = 'InterestTagRepresentation') {
1100
1075
  const v_error = (() => {
@@ -1134,15 +1109,6 @@ function validate$1(obj, path = 'InterestTagRepresentation') {
1134
1109
  })();
1135
1110
  return v_error === undefined ? null : v_error;
1136
1111
  }
1137
- function deepFreeze$1(input) {
1138
- const input_categories = input.categories;
1139
- for (let i = 0; i < input_categories.length; i++) {
1140
- const input_categories_item = input_categories[i];
1141
- deepFreeze$2(input_categories_item);
1142
- }
1143
- ObjectFreeze(input_categories);
1144
- ObjectFreeze(input);
1145
- }
1146
1112
 
1147
1113
  const TTL = 10000;
1148
1114
  const VERSION = "a7f32ea47ff9fb394c6f9e13003a5595";
@@ -1187,15 +1153,6 @@ function equals(existing, incoming) {
1187
1153
  }
1188
1154
  return true;
1189
1155
  }
1190
- function deepFreeze(input) {
1191
- const input_tags = input.tags;
1192
- for (let i = 0; i < input_tags.length; i++) {
1193
- const input_tags_item = input_tags[i];
1194
- deepFreeze$1(input_tags_item);
1195
- }
1196
- ObjectFreeze(input_tags);
1197
- ObjectFreeze(input);
1198
- }
1199
1156
  const ingest = function InterestTagListRepresentationIngest(input, path, luvio, store, timestamp) {
1200
1157
  if (process.env.NODE_ENV !== 'production') {
1201
1158
  const validateError = validate(input);
@@ -1212,7 +1169,6 @@ const ingest = function InterestTagListRepresentationIngest(input, path, luvio,
1212
1169
  propertyName: path.propertyName,
1213
1170
  ttl: ttlToUse
1214
1171
  });
1215
- deepFreeze(input);
1216
1172
  if (existingRecord === undefined || equals(existingRecord, incomingRecord) === false) {
1217
1173
  luvio.storePublish(key, incomingRecord);
1218
1174
  }
@@ -1262,6 +1218,7 @@ function ingestSuccess$1(luvio, resourceParams, response, snapshotRefresh) {
1262
1218
  throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
1263
1219
  }
1264
1220
  }
1221
+ deepFreeze(snapshot.data);
1265
1222
  return snapshot;
1266
1223
  }
1267
1224
  function ingestError$1(luvio, params, error, snapshotRefresh) {
@@ -1437,6 +1394,7 @@ function ingestSuccess(luvio, resourceParams, response, snapshotRefresh) {
1437
1394
  throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
1438
1395
  }
1439
1396
  }
1397
+ deepFreeze(snapshot.data);
1440
1398
  return snapshot;
1441
1399
  }
1442
1400
  function ingestError(luvio, params, error, snapshotRefresh) {
@@ -1644,4 +1602,4 @@ withDefaultLuvio((luvio) => {
1644
1602
  });
1645
1603
 
1646
1604
  export { createInterestTagEntityAssignment, getInterestTagEntityAssignments, getInterestTagEntityAssignments_imperative, getTagCategoriesByTagId, getTagCategoriesByTagId_imperative, getTagsByCategoryId, getTagsByCategoryId_imperative, getTagsByRecordId, getTagsByRecordId_imperative };
1647
- // version: 1.134.7-ed0df45ef
1605
+ // version: 1.134.8-c3d6d2cfc