@salesforce/lds-ads-bridge 1.343.0 → 1.345.0

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.
@@ -433,7 +433,7 @@ function createResourceParamsImpl(config, configMetadata) {
433
433
  }
434
434
  return resourceParams;
435
435
  }
436
- // engine version: 0.156.5-f5fd8c7a
436
+ // engine version: 0.156.6-042d5d87
437
437
 
438
438
  /**
439
439
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -481,7 +481,7 @@ const callbacks$1 = [];
481
481
  function register(r) {
482
482
  callbacks$1.forEach((callback) => callback(r));
483
483
  }
484
- // version: 1.343.0-f39f04aaf6
484
+ // version: 1.345.0-bbda369a7a
485
485
 
486
486
  /**
487
487
  * Returns true if the value acts like a Promise, i.e. has a "then" function,
@@ -5029,8 +5029,8 @@ function toSortedStringArray(value) {
5029
5029
  return undefined;
5030
5030
  }
5031
5031
 
5032
- const VERSION$2I = "d1e589a127fb1060c89070cdb6f500b2";
5033
- function validate$20(obj, path = 'RecordTypeInfoRepresentation') {
5032
+ const VERSION$2J = "d1e589a127fb1060c89070cdb6f500b2";
5033
+ function validate$21(obj, path = 'RecordTypeInfoRepresentation') {
5034
5034
  const v_error = (() => {
5035
5035
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
5036
5036
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -5063,10 +5063,10 @@ function validate$20(obj, path = 'RecordTypeInfoRepresentation') {
5063
5063
  })();
5064
5064
  return v_error === undefined ? null : v_error;
5065
5065
  }
5066
- const select$3n = function RecordTypeInfoRepresentationSelect() {
5066
+ const select$3o = function RecordTypeInfoRepresentationSelect() {
5067
5067
  return {
5068
5068
  kind: 'Fragment',
5069
- version: VERSION$2I,
5069
+ version: VERSION$2J,
5070
5070
  private: [],
5071
5071
  selections: [
5072
5072
  {
@@ -5092,7 +5092,7 @@ const select$3n = function RecordTypeInfoRepresentationSelect() {
5092
5092
  ]
5093
5093
  };
5094
5094
  };
5095
- function equals$1b(existing, incoming) {
5095
+ function equals$1c(existing, incoming) {
5096
5096
  const existing_available = existing.available;
5097
5097
  const incoming_available = incoming.available;
5098
5098
  if (!(existing_available === incoming_available)) {
@@ -5121,8 +5121,8 @@ function equals$1b(existing, incoming) {
5121
5121
  return true;
5122
5122
  }
5123
5123
 
5124
- const VERSION$2H = "195d918987a35f45e1aa4dce9a11d8c5";
5125
- function validate$1$(obj, path = 'FieldValueRepresentation') {
5124
+ const VERSION$2I = "195d918987a35f45e1aa4dce9a11d8c5";
5125
+ function validate$20(obj, path = 'FieldValueRepresentation') {
5126
5126
  const v_error = (() => {
5127
5127
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
5128
5128
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -5213,10 +5213,10 @@ function validate$1$(obj, path = 'FieldValueRepresentation') {
5213
5213
  return v_error === undefined ? null : v_error;
5214
5214
  }
5215
5215
  const RepresentationType$10 = 'FieldValueRepresentation';
5216
- const select$3m = function FieldValueRepresentationSelect() {
5216
+ const select$3n = function FieldValueRepresentationSelect() {
5217
5217
  return {
5218
5218
  kind: 'Fragment',
5219
- version: VERSION$2H,
5219
+ version: VERSION$2I,
5220
5220
  private: [],
5221
5221
  selections: [
5222
5222
  {
@@ -5227,12 +5227,12 @@ const select$3m = function FieldValueRepresentationSelect() {
5227
5227
  name: 'value',
5228
5228
  kind: 'Link',
5229
5229
  nullable: true,
5230
- fragment: select$3k()
5230
+ fragment: select$3l()
5231
5231
  }
5232
5232
  ]
5233
5233
  };
5234
5234
  };
5235
- function equals$1a(existing, incoming) {
5235
+ function equals$1b(existing, incoming) {
5236
5236
  const existing_displayValue = existing.displayValue;
5237
5237
  const incoming_displayValue = incoming.displayValue;
5238
5238
  if (!(existing_displayValue === incoming_displayValue)) {
@@ -5290,8 +5290,8 @@ const getTypeCacheKeys$2h = (rootKeySet, luvio, input, _fullPathFactory) => {
5290
5290
  };
5291
5291
 
5292
5292
  const TTL$G = 120000;
5293
- const VERSION$2G = "79cb5ac9f44542f683d00245fdfe500d";
5294
- function validate$1_(obj, path = 'RecordCollectionRepresentation') {
5293
+ const VERSION$2H = "79cb5ac9f44542f683d00245fdfe500d";
5294
+ function validate$1$(obj, path = 'RecordCollectionRepresentation') {
5295
5295
  const v_error = (() => {
5296
5296
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
5297
5297
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -5471,10 +5471,10 @@ function normalize$T(input, existing, path, luvio, store, timestamp) {
5471
5471
  }
5472
5472
  return input;
5473
5473
  }
5474
- const select$3l = function RecordCollectionRepresentationSelect() {
5474
+ const select$3m = function RecordCollectionRepresentationSelect() {
5475
5475
  return {
5476
5476
  kind: 'Fragment',
5477
- version: VERSION$2G,
5477
+ version: VERSION$2H,
5478
5478
  private: [],
5479
5479
  selections: [
5480
5480
  {
@@ -5509,12 +5509,12 @@ const select$3l = function RecordCollectionRepresentationSelect() {
5509
5509
  name: 'records',
5510
5510
  kind: 'Link',
5511
5511
  plural: true,
5512
- fragment: select$3k()
5512
+ fragment: select$3l()
5513
5513
  }
5514
5514
  ]
5515
5515
  };
5516
5516
  };
5517
- function equals$19(existing, incoming) {
5517
+ function equals$1a(existing, incoming) {
5518
5518
  const existing_count = existing.count;
5519
5519
  const incoming_count = incoming.count;
5520
5520
  if (!(existing_count === incoming_count)) {
@@ -5564,14 +5564,14 @@ function equals$19(existing, incoming) {
5564
5564
  }
5565
5565
  const ingest$2d = function RecordCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
5566
5566
  if (process.env.NODE_ENV !== 'production') {
5567
- const validateError = validate$1_(input);
5567
+ const validateError = validate$1$(input);
5568
5568
  if (validateError !== null) {
5569
5569
  throw validateError;
5570
5570
  }
5571
5571
  }
5572
5572
  const key = path.fullPath;
5573
5573
  const ttlToUse = TTL$G;
5574
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$T, "UiApi", VERSION$2G, RepresentationType$$, equals$19);
5574
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$T, "UiApi", VERSION$2H, RepresentationType$$, equals$1a);
5575
5575
  return createLink$1(key);
5576
5576
  };
5577
5577
  function getTypeCacheKeys$2g(rootKeySet, luvio, input, fullPathFactory) {
@@ -5599,8 +5599,8 @@ const keyBuilderFromType$E = function RecordRepresentationKeyBuilderFromType(luv
5599
5599
  };
5600
5600
 
5601
5601
  const TTL$F = 30000;
5602
- const VERSION$2F = "98c5b18512e48ca8d28727549507e4ba";
5603
- function validate$1Z(obj, path = 'RecordRepresentation') {
5602
+ const VERSION$2G = "98c5b18512e48ca8d28727549507e4ba";
5603
+ function validate$1_(obj, path = 'RecordRepresentation') {
5604
5604
  const v_error = (() => {
5605
5605
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
5606
5606
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -5730,7 +5730,7 @@ function validate$1Z(obj, path = 'RecordRepresentation') {
5730
5730
  const path_recordTypeInfo = path + '.recordTypeInfo';
5731
5731
  let obj_recordTypeInfo_union0 = null;
5732
5732
  const obj_recordTypeInfo_union0_error = (() => {
5733
- const referencepath_recordTypeInfoValidationError = validate$20(obj_recordTypeInfo, path_recordTypeInfo);
5733
+ const referencepath_recordTypeInfoValidationError = validate$21(obj_recordTypeInfo, path_recordTypeInfo);
5734
5734
  if (referencepath_recordTypeInfoValidationError !== null) {
5735
5735
  let message = 'Object doesn\'t match RecordTypeInfoRepresentation (at "' + path_recordTypeInfo + '")\n';
5736
5736
  message += referencepath_recordTypeInfoValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -5842,11 +5842,11 @@ function dynamicNormalize$5(ingestParams) {
5842
5842
  return input;
5843
5843
  };
5844
5844
  }
5845
- const select$3k = function RecordRepresentationSelect() {
5846
- const { selections: RecordTypeInfoRepresentation__selections, opaque: RecordTypeInfoRepresentation__opaque, } = select$3n();
5845
+ const select$3l = function RecordRepresentationSelect() {
5846
+ const { selections: RecordTypeInfoRepresentation__selections, opaque: RecordTypeInfoRepresentation__opaque, } = select$3o();
5847
5847
  return {
5848
5848
  kind: 'Fragment',
5849
- version: VERSION$2F,
5849
+ version: VERSION$2G,
5850
5850
  private: [
5851
5851
  'eTag',
5852
5852
  'weakEtag'
@@ -5860,13 +5860,13 @@ const select$3k = function RecordRepresentationSelect() {
5860
5860
  name: 'childRelationships',
5861
5861
  kind: 'Link',
5862
5862
  map: true,
5863
- fragment: select$3l()
5863
+ fragment: select$3m()
5864
5864
  },
5865
5865
  {
5866
5866
  name: 'fields',
5867
5867
  kind: 'Link',
5868
5868
  map: true,
5869
- fragment: select$3m()
5869
+ fragment: select$3n()
5870
5870
  },
5871
5871
  {
5872
5872
  name: 'id',
@@ -5902,18 +5902,18 @@ const dynamicSelect$8 = function dynamicRecordRepresentationSelect(params) {
5902
5902
  name: 'childRelationships',
5903
5903
  kind: 'Link',
5904
5904
  map: true,
5905
- fragment: select$3l()
5905
+ fragment: select$3m()
5906
5906
  } : params.childRelationships;
5907
5907
  const fieldsPathSelection = params.fields === undefined ? {
5908
5908
  name: 'fields',
5909
5909
  kind: 'Link',
5910
5910
  map: true,
5911
- fragment: select$3m()
5911
+ fragment: select$3n()
5912
5912
  } : params.fields;
5913
- const { selections: RecordTypeInfoRepresentation__selections, opaque: RecordTypeInfoRepresentation__opaque, } = select$3n();
5913
+ const { selections: RecordTypeInfoRepresentation__selections, opaque: RecordTypeInfoRepresentation__opaque, } = select$3o();
5914
5914
  return {
5915
5915
  kind: 'Fragment',
5916
- version: VERSION$2F,
5916
+ version: VERSION$2G,
5917
5917
  private: [
5918
5918
  'eTag',
5919
5919
  'weakEtag'
@@ -5954,7 +5954,7 @@ const dynamicSelect$8 = function dynamicRecordRepresentationSelect(params) {
5954
5954
  ]
5955
5955
  };
5956
5956
  };
5957
- function equals$18(existing, incoming) {
5957
+ function equals$19(existing, incoming) {
5958
5958
  const existing_weakEtag = existing.weakEtag;
5959
5959
  const incoming_weakEtag = incoming.weakEtag;
5960
5960
  if (!(existing_weakEtag === incoming_weakEtag)) {
@@ -6015,7 +6015,7 @@ function equals$18(existing, incoming) {
6015
6015
  if (!(existing_recordTypeInfo === incoming_recordTypeInfo
6016
6016
  || (existing_recordTypeInfo != null &&
6017
6017
  incoming_recordTypeInfo != null &&
6018
- equals$1b(existing_recordTypeInfo, incoming_recordTypeInfo)))) {
6018
+ equals$1c(existing_recordTypeInfo, incoming_recordTypeInfo)))) {
6019
6019
  return false;
6020
6020
  }
6021
6021
  const existing_systemModstamp = existing.systemModstamp;
@@ -7657,7 +7657,7 @@ function createPathSelection(propertyName, fieldDefinition) {
7657
7657
  kind: 'Fragment',
7658
7658
  private: ['eTag', 'weakEtag'],
7659
7659
  selections: createRecordSelection(childFieldDefinition),
7660
- version: VERSION$2F,
7660
+ version: VERSION$2G,
7661
7661
  },
7662
7662
  };
7663
7663
  }
@@ -7667,7 +7667,7 @@ function createPathSelection(propertyName, fieldDefinition) {
7667
7667
  required: childFieldDefinition.optional === true ? false : undefined,
7668
7668
  fragment: {
7669
7669
  kind: 'Fragment',
7670
- version: VERSION$2H,
7670
+ version: VERSION$2I,
7671
7671
  private: [],
7672
7672
  selections: [DISPLAY_VALUE_SELECTION, fieldValueSelection],
7673
7673
  },
@@ -8353,7 +8353,7 @@ function normalize$S(input, existing, path, luvio, store, timestamp, fieldsTrie,
8353
8353
  function makeIngest(fieldsTrie, optionalFieldsTrie, recordConflictMap) {
8354
8354
  return (input, path, luvio, store, timestamp) => {
8355
8355
  if (process.env.NODE_ENV !== 'production') {
8356
- const validateError = validate$1$(input);
8356
+ const validateError = validate$20(input);
8357
8357
  if (validateError !== null) {
8358
8358
  throw validateError;
8359
8359
  }
@@ -8368,7 +8368,7 @@ function makeIngest(fieldsTrie, optionalFieldsTrie, recordConflictMap) {
8368
8368
  // read again after children ingested in case of a circular ref
8369
8369
  existingRecord = store.readEntry(key);
8370
8370
  incomingRecord = merge$2(existingRecord, incomingRecord, luvio, path);
8371
- if (existingRecord === undefined || equals$1a(existingRecord, incomingRecord) === false) {
8371
+ if (existingRecord === undefined || equals$1b(existingRecord, incomingRecord) === false) {
8372
8372
  luvio.storePublish(key, incomingRecord);
8373
8373
  }
8374
8374
  return createLink$1(key);
@@ -8446,7 +8446,7 @@ const createRecordIngest = (fieldsTrie, optionalFieldsTrie, recordConflictMap) =
8446
8446
  const childNormalize = createChildRecordNormalize(fieldsTrie, optionalFieldsTrie, recordConflictMap);
8447
8447
  return (input, path, luvio, store, timestamp) => {
8448
8448
  if (process.env.NODE_ENV !== 'production') {
8449
- const validateError = validate$1Z(input);
8449
+ const validateError = validate$1_(input);
8450
8450
  if (validateError !== null) {
8451
8451
  throw validateError;
8452
8452
  }
@@ -8464,7 +8464,7 @@ const createRecordIngest = (fieldsTrie, optionalFieldsTrie, recordConflictMap) =
8464
8464
  existingRecord = store.readEntry(key);
8465
8465
  incomingRecord = merge$3(existingRecord, incomingRecord, luvio, path, recordConflictMap);
8466
8466
  if (existingRecord === undefined ||
8467
- equals$18(existingRecord, incomingRecord) === false ||
8467
+ equals$19(existingRecord, incomingRecord) === false ||
8468
8468
  // always publish if existing record has drafts
8469
8469
  existingRecord.drafts !==
8470
8470
  undefined) {
@@ -8474,7 +8474,7 @@ const createRecordIngest = (fieldsTrie, optionalFieldsTrie, recordConflictMap) =
8474
8474
  ttl: TTL$F,
8475
8475
  representationName: RepresentationType$_,
8476
8476
  namespace: keyPrefix,
8477
- version: VERSION$2F,
8477
+ version: VERSION$2G,
8478
8478
  ingestionTimestamp: timestamp,
8479
8479
  });
8480
8480
  return createLink$1(key);
@@ -8613,7 +8613,7 @@ function buildRecordSelector(luvio, recordId, fields, optionalFields) {
8613
8613
  kind: 'Fragment',
8614
8614
  private: ['eTag', 'weakEtag'],
8615
8615
  selections: buildSelectionFromFields(fields, optionalFields),
8616
- version: VERSION$2F,
8616
+ version: VERSION$2G,
8617
8617
  },
8618
8618
  variables: {},
8619
8619
  };
@@ -8700,7 +8700,7 @@ function isSingleBatchRecordResponse(response) {
8700
8700
  response.results.length === 1);
8701
8701
  }
8702
8702
 
8703
- const VERSION$2E = "98cce53b8d13b1883d001bbdaab24383";
8703
+ const VERSION$2F = "98cce53b8d13b1883d001bbdaab24383";
8704
8704
 
8705
8705
  const nonCachedErrors$8 = ObjectCreate$1(null);
8706
8706
  function ingestSuccessChildResourceParams$9(luvio, childResourceParamsArray, childEnvelopes, serverRequestCount = 0) {
@@ -8801,7 +8801,7 @@ function selectChildResourceParams$8(luvio, childResources, resourceParams) {
8801
8801
  node: {
8802
8802
  kind: 'Fragment',
8803
8803
  private: [],
8804
- version: VERSION$2E,
8804
+ version: VERSION$2F,
8805
8805
  },
8806
8806
  variables: {},
8807
8807
  });
package/dist/adsBridge.js CHANGED
@@ -435,4 +435,4 @@ function withAdsBridge(callback) {
435
435
  }
436
436
 
437
437
  export { instrument, withAdsBridge };
438
- // version: 1.343.0-f39f04aaf6
438
+ // version: 1.345.0-bbda369a7a
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-ads-bridge",
3
- "version": "1.343.0",
3
+ "version": "1.345.0",
4
4
  "license": "SEE LICENSE IN LICENSE.txt",
5
5
  "description": "Bridge to sync data between LDS and ADS",
6
6
  "main": "dist/adsBridge.js",
@@ -30,9 +30,9 @@
30
30
  "release:corejar": "yarn build && ../core-build/scripts/core.js --name=lds-ads-bridge"
31
31
  },
32
32
  "devDependencies": {
33
- "@salesforce/lds-adapters-uiapi": "^1.343.0",
34
- "@salesforce/lds-runtime-mobile": "^1.343.0",
35
- "@salesforce/lds-uiapi-record-utils-mobile": "^1.343.0"
33
+ "@salesforce/lds-adapters-uiapi": "^1.345.0",
34
+ "@salesforce/lds-runtime-mobile": "^1.345.0",
35
+ "@salesforce/lds-uiapi-record-utils-mobile": "^1.345.0"
36
36
  },
37
37
  "volta": {
38
38
  "extends": "../../package.json"