@salesforce/lds-ads-bridge 1.230.0 → 1.232.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.
@@ -474,7 +474,7 @@ const callbacks$1 = [];
474
474
  function register(r) {
475
475
  callbacks$1.forEach((callback) => callback(r));
476
476
  }
477
- // version: 1.230.0-3f2f215ea
477
+ // version: 1.232.0-968cf099f
478
478
 
479
479
  /**
480
480
  * Returns true if the value acts like a Promise, i.e. has a "then" function,
@@ -5744,7 +5744,7 @@ function toSortedStringArray(value) {
5744
5744
  return undefined;
5745
5745
  }
5746
5746
 
5747
- const VERSION$2j = "d1e589a127fb1060c89070cdb6f500b2";
5747
+ const VERSION$2k = "d1e589a127fb1060c89070cdb6f500b2";
5748
5748
  function validate$1C(obj, path = 'RecordTypeInfoRepresentation') {
5749
5749
  const v_error = (() => {
5750
5750
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -5778,10 +5778,10 @@ function validate$1C(obj, path = 'RecordTypeInfoRepresentation') {
5778
5778
  })();
5779
5779
  return v_error === undefined ? null : v_error;
5780
5780
  }
5781
- const select$2R = function RecordTypeInfoRepresentationSelect() {
5781
+ const select$2S = function RecordTypeInfoRepresentationSelect() {
5782
5782
  return {
5783
5783
  kind: 'Fragment',
5784
- version: VERSION$2j,
5784
+ version: VERSION$2k,
5785
5785
  private: [],
5786
5786
  selections: [
5787
5787
  {
@@ -5836,7 +5836,7 @@ function equals$10(existing, incoming) {
5836
5836
  return true;
5837
5837
  }
5838
5838
 
5839
- const VERSION$2i = "195d918987a35f45e1aa4dce9a11d8c5";
5839
+ const VERSION$2j = "195d918987a35f45e1aa4dce9a11d8c5";
5840
5840
  function validate$1B(obj, path = 'FieldValueRepresentation') {
5841
5841
  const v_error = (() => {
5842
5842
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -5928,10 +5928,10 @@ function validate$1B(obj, path = 'FieldValueRepresentation') {
5928
5928
  return v_error === undefined ? null : v_error;
5929
5929
  }
5930
5930
  const RepresentationType$V = 'FieldValueRepresentation';
5931
- const select$2Q = function FieldValueRepresentationSelect() {
5931
+ const select$2R = function FieldValueRepresentationSelect() {
5932
5932
  return {
5933
5933
  kind: 'Fragment',
5934
- version: VERSION$2i,
5934
+ version: VERSION$2j,
5935
5935
  private: [],
5936
5936
  selections: [
5937
5937
  {
@@ -5942,7 +5942,7 @@ const select$2Q = function FieldValueRepresentationSelect() {
5942
5942
  name: 'value',
5943
5943
  kind: 'Link',
5944
5944
  nullable: true,
5945
- fragment: select$2O()
5945
+ fragment: select$2P()
5946
5946
  }
5947
5947
  ]
5948
5948
  };
@@ -6005,7 +6005,7 @@ const getTypeCacheKeys$1V = (rootKeySet, luvio, input, _fullPathFactory) => {
6005
6005
  };
6006
6006
 
6007
6007
  const TTL$C = 120000;
6008
- const VERSION$2h = "79cb5ac9f44542f683d00245fdfe500d";
6008
+ const VERSION$2i = "79cb5ac9f44542f683d00245fdfe500d";
6009
6009
  function validate$1A(obj, path = 'RecordCollectionRepresentation') {
6010
6010
  const v_error = (() => {
6011
6011
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -6186,10 +6186,10 @@ function normalize$M(input, existing, path, luvio, store, timestamp) {
6186
6186
  }
6187
6187
  return input;
6188
6188
  }
6189
- const select$2P = function RecordCollectionRepresentationSelect() {
6189
+ const select$2Q = function RecordCollectionRepresentationSelect() {
6190
6190
  return {
6191
6191
  kind: 'Fragment',
6192
- version: VERSION$2h,
6192
+ version: VERSION$2i,
6193
6193
  private: [],
6194
6194
  selections: [
6195
6195
  {
@@ -6224,7 +6224,7 @@ const select$2P = function RecordCollectionRepresentationSelect() {
6224
6224
  name: 'records',
6225
6225
  kind: 'Link',
6226
6226
  plural: true,
6227
- fragment: select$2O()
6227
+ fragment: select$2P()
6228
6228
  }
6229
6229
  ]
6230
6230
  };
@@ -6286,7 +6286,7 @@ const ingest$1R = function RecordCollectionRepresentationIngest(input, path, luv
6286
6286
  }
6287
6287
  const key = path.fullPath;
6288
6288
  const ttlToUse = TTL$C;
6289
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$M, "UiApi", VERSION$2h, RepresentationType$U, equals$_);
6289
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$M, "UiApi", VERSION$2i, RepresentationType$U, equals$_);
6290
6290
  return createLink$1(key);
6291
6291
  };
6292
6292
  function getTypeCacheKeys$1U(rootKeySet, luvio, input, fullPathFactory) {
@@ -6314,7 +6314,7 @@ const keyBuilderFromType$z = function RecordRepresentationKeyBuilderFromType(luv
6314
6314
  };
6315
6315
 
6316
6316
  const TTL$B = 30000;
6317
- const VERSION$2g = "98c5b18512e48ca8d28727549507e4ba";
6317
+ const VERSION$2h = "98c5b18512e48ca8d28727549507e4ba";
6318
6318
  function validate$1z(obj, path = 'RecordRepresentation') {
6319
6319
  const v_error = (() => {
6320
6320
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -6557,11 +6557,11 @@ function dynamicNormalize$5(ingestParams) {
6557
6557
  return input;
6558
6558
  };
6559
6559
  }
6560
- const select$2O = function RecordRepresentationSelect() {
6561
- const { selections: RecordTypeInfoRepresentation__selections, opaque: RecordTypeInfoRepresentation__opaque, } = select$2R();
6560
+ const select$2P = function RecordRepresentationSelect() {
6561
+ const { selections: RecordTypeInfoRepresentation__selections, opaque: RecordTypeInfoRepresentation__opaque, } = select$2S();
6562
6562
  return {
6563
6563
  kind: 'Fragment',
6564
- version: VERSION$2g,
6564
+ version: VERSION$2h,
6565
6565
  private: [
6566
6566
  'eTag',
6567
6567
  'weakEtag'
@@ -6575,13 +6575,13 @@ const select$2O = function RecordRepresentationSelect() {
6575
6575
  name: 'childRelationships',
6576
6576
  kind: 'Link',
6577
6577
  map: true,
6578
- fragment: select$2P()
6578
+ fragment: select$2Q()
6579
6579
  },
6580
6580
  {
6581
6581
  name: 'fields',
6582
6582
  kind: 'Link',
6583
6583
  map: true,
6584
- fragment: select$2Q()
6584
+ fragment: select$2R()
6585
6585
  },
6586
6586
  {
6587
6587
  name: 'id',
@@ -6617,18 +6617,18 @@ const dynamicSelect$8 = function dynamicRecordRepresentationSelect(params) {
6617
6617
  name: 'childRelationships',
6618
6618
  kind: 'Link',
6619
6619
  map: true,
6620
- fragment: select$2P()
6620
+ fragment: select$2Q()
6621
6621
  } : params.childRelationships;
6622
6622
  const fieldsPathSelection = params.fields === undefined ? {
6623
6623
  name: 'fields',
6624
6624
  kind: 'Link',
6625
6625
  map: true,
6626
- fragment: select$2Q()
6626
+ fragment: select$2R()
6627
6627
  } : params.fields;
6628
- const { selections: RecordTypeInfoRepresentation__selections, opaque: RecordTypeInfoRepresentation__opaque, } = select$2R();
6628
+ const { selections: RecordTypeInfoRepresentation__selections, opaque: RecordTypeInfoRepresentation__opaque, } = select$2S();
6629
6629
  return {
6630
6630
  kind: 'Fragment',
6631
- version: VERSION$2g,
6631
+ version: VERSION$2h,
6632
6632
  private: [
6633
6633
  'eTag',
6634
6634
  'weakEtag'
@@ -8107,7 +8107,7 @@ function createPathSelection(propertyName, fieldDefinition) {
8107
8107
  kind: 'Fragment',
8108
8108
  private: ['eTag', 'weakEtag'],
8109
8109
  selections: createRecordSelection(childFieldDefinition),
8110
- version: VERSION$2g,
8110
+ version: VERSION$2h,
8111
8111
  },
8112
8112
  };
8113
8113
  }
@@ -8117,7 +8117,7 @@ function createPathSelection(propertyName, fieldDefinition) {
8117
8117
  required: childFieldDefinition.optional === true ? false : undefined,
8118
8118
  fragment: {
8119
8119
  kind: 'Fragment',
8120
- version: VERSION$2i,
8120
+ version: VERSION$2j,
8121
8121
  private: [],
8122
8122
  selections: [DISPLAY_VALUE_SELECTION, fieldValueSelection],
8123
8123
  },
@@ -8880,7 +8880,7 @@ const createRecordIngest = (fieldsTrie, optionalFieldsTrie, recordConflictMap) =
8880
8880
  ttl: TTL$B,
8881
8881
  representationName: RepresentationType$T,
8882
8882
  namespace: keyPrefix,
8883
- version: VERSION$2g,
8883
+ version: VERSION$2h,
8884
8884
  });
8885
8885
  return createLink$1(key);
8886
8886
  };
@@ -8919,7 +8919,7 @@ function fulfill(existing, incoming) {
8919
8919
  const batchRequestWithSingleRequest = isSingleBatchRecordRequest(existingUrlParams) &&
8920
8920
  isSingleRecordRequest(urlParams) &&
8921
8921
  incomingUrlRecords[0] === existingUrlRecords[0];
8922
- if (!batchRequestWithSingleRequest) {
8922
+ if (!batchRequestWithSingleRequest || isRestrictedPathCondition(existingPath, path)) {
8923
8923
  return false;
8924
8924
  }
8925
8925
  }
@@ -8962,6 +8962,12 @@ function isSingleBatchRecordRequest(urlParams) {
8962
8962
  function isSingleRecordRequest(urlParams) {
8963
8963
  return hasOwnProperty$1.call(urlParams, 'recordId');
8964
8964
  }
8965
+ function isRestrictedPathCondition(existingPath, path) {
8966
+ // should not dedupe getRecordUi and getRecord as both of their representation is different
8967
+ // records call cannot digest response of getRecordUi
8968
+ return ((existingPath.includes('/record-ui') && path.includes('/records')) ||
8969
+ (existingPath.includes('/records') && path.includes('/record-ui')));
8970
+ }
8965
8971
 
8966
8972
  const createResourceRequest$16 = function getUiApiRecordsByRecordIdCreateResourceRequest(config) {
8967
8973
  return {
@@ -8981,7 +8987,7 @@ function getResponseCacheKeys$Z(storeKeyMap, luvio, resourceParams, response) {
8981
8987
  function createResourceRequest$15(config) {
8982
8988
  const headers = {};
8983
8989
  return {
8984
- baseUri: '/services/data/v59.0',
8990
+ baseUri: '/services/data/v60.0',
8985
8991
  basePath: '/ui-api/records/' + config.urlParams.recordId + '',
8986
8992
  method: 'get',
8987
8993
  body: null,
@@ -9012,7 +9018,7 @@ function buildRecordSelector(luvio, recordId, fields, optionalFields) {
9012
9018
  kind: 'Fragment',
9013
9019
  private: ['eTag', 'weakEtag'],
9014
9020
  selections: buildSelectionFromFields(fields, optionalFields),
9015
- version: VERSION$2g,
9021
+ version: VERSION$2h,
9016
9022
  },
9017
9023
  variables: {},
9018
9024
  };
@@ -9097,7 +9103,7 @@ function isSingleBatchRecordResponse(response) {
9097
9103
  response.results.length === 1);
9098
9104
  }
9099
9105
 
9100
- const VERSION$2f = "98cce53b8d13b1883d001bbdaab24383";
9106
+ const VERSION$2g = "98cce53b8d13b1883d001bbdaab24383";
9101
9107
 
9102
9108
  const nonCachedErrors$7 = ObjectCreate$1(null);
9103
9109
  function ingestSuccessChildResourceParams$6(luvio, childResourceParamsArray, childEnvelopes, serverRequestCount = 0) {
@@ -9198,7 +9204,7 @@ function selectChildResourceParams$7(luvio, childResources, resourceParams) {
9198
9204
  node: {
9199
9205
  kind: 'Fragment',
9200
9206
  private: [],
9201
- version: VERSION$2f,
9207
+ version: VERSION$2g,
9202
9208
  },
9203
9209
  variables: {},
9204
9210
  });
@@ -9356,7 +9362,7 @@ function ingestError$K(luvio, params, error, snapshotRefresh) {
9356
9362
  function createResourceRequest$14(config) {
9357
9363
  const headers = {};
9358
9364
  return {
9359
- baseUri: '/services/data/v59.0',
9365
+ baseUri: '/services/data/v60.0',
9360
9366
  basePath: '/ui-api/records/batch/' + config.urlParams.recordIds + '',
9361
9367
  method: 'get',
9362
9368
  body: null,
@@ -9625,6 +9631,27 @@ ObjectCreate$1(null);
9625
9631
 
9626
9632
  ObjectCreate$1(null);
9627
9633
 
9634
+ const VERSION$1O = "8d2032474fb4fabdf5cf4042be9042d9";
9635
+ const select$1$ = function WorkStepPicklistValueAttributeRepresentationSelect() {
9636
+ const { selections: AbstractPicklistValueAttributesRepresentationSelections } = select$1X();
9637
+ return {
9638
+ kind: 'Fragment',
9639
+ version: VERSION$1O,
9640
+ private: [],
9641
+ selections: [
9642
+ ...AbstractPicklistValueAttributesRepresentationSelections,
9643
+ {
9644
+ name: 'sortOrder',
9645
+ kind: 'Scalar'
9646
+ },
9647
+ {
9648
+ name: 'statusCode',
9649
+ kind: 'Scalar'
9650
+ }
9651
+ ]
9652
+ };
9653
+ };
9654
+
9628
9655
  const VERSION$1N = "53893a219bc0888951863f2c44317cac";
9629
9656
  const select$1_ = function LeadStatusPicklistValueAttributesRepresentationSelect() {
9630
9657
  const { selections: AbstractPicklistValueAttributesRepresentationSelections } = select$1X();
@@ -9690,12 +9717,14 @@ const select$1Y = function OpportunityStagePicklistValueAttributesRepresentation
9690
9717
 
9691
9718
  var DiscriminatorValues$3;
9692
9719
  (function (DiscriminatorValues) {
9720
+ DiscriminatorValues["WorkStepStatus"] = "WorkStepStatus";
9693
9721
  DiscriminatorValues["LeadStatus"] = "LeadStatus";
9694
9722
  DiscriminatorValues["CaseStatus"] = "CaseStatus";
9695
9723
  DiscriminatorValues["OpportunityStage"] = "OpportunityStage";
9696
9724
  })(DiscriminatorValues$3 || (DiscriminatorValues$3 = {}));
9697
9725
  const VERSION$1K = "bd523b2343366edfc25a2dbee2c4e986";
9698
9726
  const selectChildren$3 = function AbstractPicklistValueAttributesRepresentationSelectChildren() {
9727
+ const workStepPicklistValueAttributeRepresentationSelections = select$1$();
9699
9728
  const leadStatusPicklistValueAttributesRepresentationSelections = select$1_();
9700
9729
  const caseStatusPicklistValueAttributesRepresentationSelections = select$1Z();
9701
9730
  const opportunityStagePicklistValueAttributesRepresentationSelections = select$1Y();
@@ -9704,6 +9733,7 @@ const selectChildren$3 = function AbstractPicklistValueAttributesRepresentationS
9704
9733
  union: true,
9705
9734
  discriminator: 'picklistAtrributesValueType',
9706
9735
  unionSelections: {
9736
+ [DiscriminatorValues$3.WorkStepStatus]: workStepPicklistValueAttributeRepresentationSelections,
9707
9737
  [DiscriminatorValues$3.LeadStatus]: leadStatusPicklistValueAttributesRepresentationSelections,
9708
9738
  [DiscriminatorValues$3.CaseStatus]: caseStatusPicklistValueAttributesRepresentationSelections,
9709
9739
  [DiscriminatorValues$3.OpportunityStage]: opportunityStagePicklistValueAttributesRepresentationSelections
package/dist/adsBridge.js CHANGED
@@ -375,4 +375,4 @@ function withAdsBridge(callback) {
375
375
  }
376
376
 
377
377
  export { instrument, withAdsBridge };
378
- // version: 1.230.0-3f2f215ea
378
+ // version: 1.232.0-968cf099f
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-ads-bridge",
3
- "version": "1.230.0",
3
+ "version": "1.232.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",