@salesforce/lds-worker-api 1.287.0-dev1 → 1.287.0-dev3

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.
@@ -1074,4 +1074,4 @@ if (process.env.NODE_ENV !== 'production') {
1074
1074
  }
1075
1075
 
1076
1076
  export { createPrimingSession, draftManager, draftQueue, evictCacheRecordsByIds, evictExpiredCacheEntries, executeAdapter, executeMutatingAdapter, getImperativeAdapterNames, invokeAdapter, invokeAdapterWithDraftToMerge, invokeAdapterWithDraftToReplace, invokeAdapterWithMetadata, nimbusDraftQueue, setMetadataTTL, setUiApiRecordTTL, stopEviction, subscribeToAdapter };
1077
- // version: 1.287.0-dev1-26543bf66
1077
+ // version: 1.287.0-dev3-63d7e5c23
@@ -4190,7 +4190,7 @@ function withDefaultLuvio(callback) {
4190
4190
  }
4191
4191
  callbacks.push(callback);
4192
4192
  }
4193
- // version: 1.287.0-dev1-26543bf66
4193
+ // version: 1.287.0-dev3-63d7e5c23
4194
4194
 
4195
4195
  // TODO [TD-0081508]: once that TD is fulfilled we can probably change this file
4196
4196
  function instrumentAdapter$1(createFunction, _metadata) {
@@ -15698,7 +15698,7 @@ function gql(literals, ...subs) {
15698
15698
  }
15699
15699
  return superResult;
15700
15700
  }
15701
- // version: 1.287.0-dev1-26543bf66
15701
+ // version: 1.287.0-dev3-63d7e5c23
15702
15702
 
15703
15703
  function unwrap(data) {
15704
15704
  // The lwc-luvio bindings import a function from lwc called "unwrap".
@@ -16623,7 +16623,7 @@ function createGraphQLWireAdapterConstructor(luvio, adapter, metadata, astResolv
16623
16623
  const { apiFamily, name } = metadata;
16624
16624
  return createGraphQLWireAdapterConstructor$1(adapter, `${apiFamily}.${name}`, luvio, astResolver);
16625
16625
  }
16626
- // version: 1.287.0-dev1-26543bf66
16626
+ // version: 1.287.0-dev3-63d7e5c23
16627
16627
 
16628
16628
  /**
16629
16629
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -16844,6 +16844,10 @@ let oneStoreGetObjectInfoAdapter$2 = undefined;
16844
16844
  * One store enabled Get Object Infos adapter
16845
16845
  */
16846
16846
  let oneStoreGetObjectInfosAdapter$2 = undefined;
16847
+ /**
16848
+ * Determines when to include PDL strategies for Related Lists
16849
+ */
16850
+ let relatedListsPredictionsEnabled$2 = false;
16847
16851
  /**
16848
16852
  * Defines the configuration API and is exposed internally as well as externally.
16849
16853
  * Configuration for one store enabled REST adapters only.
@@ -16928,6 +16932,12 @@ const configurationForRestAdapters$2 = {
16928
16932
  getDraftAwareCreateContentDocumentAndVersionAdapter: function () {
16929
16933
  return draftAwareCreateContentDocumentAndVersionAdapter$2;
16930
16934
  },
16935
+ setRelatedListsPredictionsEnabled: function (f) {
16936
+ relatedListsPredictionsEnabled$2 = f;
16937
+ },
16938
+ areRelatedListsPredictionsEnabled: function () {
16939
+ return relatedListsPredictionsEnabled$2 === true;
16940
+ },
16931
16941
  // createContentVersion
16932
16942
  setDraftAwareCreateContentVersionAdapter: function (adapter) {
16933
16943
  draftAwareCreateContentVersionAdapter$2 = adapter;
@@ -17044,6 +17054,16 @@ function createLDSAdapterWithPrediction(adapter, luvio, name) {
17044
17054
  return result;
17045
17055
  };
17046
17056
  }
17057
+ function createRelatedListAdapterWithPrediction(adapter, luvio, name) {
17058
+ if (configurationForRestAdapters$2.areRelatedListsPredictionsEnabled() /* gate is open */) {
17059
+ return createLDSAdapterWithPrediction(adapter, luvio, name);
17060
+ }
17061
+ else {
17062
+ return (config, requestContext) => {
17063
+ return adapter(config, requestContext);
17064
+ };
17065
+ }
17066
+ }
17047
17067
 
17048
17068
  const { hasOwnProperty: ObjectPrototypeHasOwnProperty$2 } = Object.prototype;
17049
17069
  const { keys: ObjectKeys$1$2, create: ObjectCreate$1$2 } = Object;
@@ -43854,13 +43874,13 @@ function bindExportsTo$1(luvio) {
43854
43874
  const getRelatedListActions_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getRelatedListActions', getRelatedListActionsAdapterFactory), getRelatedListActionsMetadata);
43855
43875
  const getRelatedListCount_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getRelatedListCount', getRelatedListCountAdapterFactory), getRelatedListCountMetadata);
43856
43876
  const getRelatedListInfo_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getRelatedListInfo', getRelatedListInfoAdapterFactory), getRelatedListInfoMetadata);
43857
- const getRelatedListInfoBatch_ldsAdapter = createInstrumentedAdapter(createLDSAdapterWithPrediction(createLDSAdapter(luvio, 'getRelatedListInfoBatch', getRelatedListInfoBatchAdapterFactory), luvio, 'getRelatedListInfoBatch'), getRelatedListInfoBatchMetadata);
43877
+ const getRelatedListInfoBatch_ldsAdapter = createInstrumentedAdapter(createRelatedListAdapterWithPrediction(createLDSAdapter(luvio, 'getRelatedListInfoBatch', getRelatedListInfoBatchAdapterFactory), luvio, 'getRelatedListInfoBatch'), getRelatedListInfoBatchMetadata);
43858
43878
  const getRelatedListPreferences_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getRelatedListPreferences', getRelatedListPreferencesAdapterFactory), getRelatedListPreferencesMetadata);
43859
43879
  const getRelatedListPreferencesBatch_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getRelatedListPreferencesBatch', getRelatedListPreferencesBatchAdapterFactory), getRelatedListPreferencesBatchMetadata);
43860
43880
  const getRelatedListRecordActions_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getRelatedListRecordActions', getRelatedListRecordActionsAdapterFactory), getRelatedListRecordActionsMetadata);
43861
- const getRelatedListRecords_ldsAdapter = createInstrumentedAdapter(createLDSAdapterWithPrediction(createLDSAdapter(luvio, 'getRelatedListRecords', getRelatedListRecordsAdapterFactory), luvio, 'getRelatedListRecords'), getRelatedListRecordsMetadata);
43862
- const getRelatedListRecordsBatch_ldsAdapter = createInstrumentedAdapter(createLDSAdapterWithPrediction(createLDSAdapter(luvio, 'getRelatedListRecordsBatch', getRelatedListRecordsBatchAdapterFactory), luvio, 'getRelatedListRecordsBatch'), getRelatedListRecordsBatchMetadata);
43863
- const getRelatedListsActions_ldsAdapter = createInstrumentedAdapter(createLDSAdapterWithPrediction(createLDSAdapter(luvio, 'getRelatedListsActions', getRelatedListsActionsAdapterFactory), luvio, 'getRelatedListsActions'), getRelatedListsActionsMetadata);
43881
+ const getRelatedListRecords_ldsAdapter = createInstrumentedAdapter(createRelatedListAdapterWithPrediction(createLDSAdapter(luvio, 'getRelatedListRecords', getRelatedListRecordsAdapterFactory), luvio, 'getRelatedListRecords'), getRelatedListRecordsMetadata);
43882
+ const getRelatedListRecordsBatch_ldsAdapter = createInstrumentedAdapter(createRelatedListAdapterWithPrediction(createLDSAdapter(luvio, 'getRelatedListRecordsBatch', getRelatedListRecordsBatchAdapterFactory), luvio, 'getRelatedListRecordsBatch'), getRelatedListRecordsBatchMetadata);
43883
+ const getRelatedListsActions_ldsAdapter = createInstrumentedAdapter(createRelatedListAdapterWithPrediction(createLDSAdapter(luvio, 'getRelatedListsActions', getRelatedListsActionsAdapterFactory), luvio, 'getRelatedListsActions'), getRelatedListsActionsMetadata);
43864
43884
  const getRelatedListsCount_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getRelatedListsCount', getRelatedListsCountAdapterFactory), getRelatedListsCountMetadata);
43865
43885
  const getRelatedListsInfo_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getRelatedListsInfo', getRelatedListsInfoAdapterFactory), getRelatedListsInfoMetadata);
43866
43886
  const getSearchFilterMetadata_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getSearchFilterMetadata', getSearchFilterMetadataAdapterFactory), getSearchFilterMetadataMetadata);
@@ -44164,7 +44184,7 @@ withDefaultLuvio((luvio) => {
44164
44184
  throttle(60, 60000, setupNotifyAllListRecordUpdateAvailable(luvio));
44165
44185
  throttle(60, 60000, setupNotifyAllListInfoSummaryUpdateAvailable(luvio));
44166
44186
  });
44167
- // version: 1.287.0-dev1-bb4d690c6
44187
+ // version: 1.287.0-dev3-b1b8160d0
44168
44188
 
44169
44189
  var ldsIdempotencyWriteDisabled = {
44170
44190
  isOpen: function (e) {
@@ -62403,7 +62423,7 @@ register$1({
62403
62423
  id: '@salesforce/lds-network-adapter',
62404
62424
  instrument: instrument$2,
62405
62425
  });
62406
- // version: 1.287.0-dev1-26543bf66
62426
+ // version: 1.287.0-dev3-63d7e5c23
62407
62427
 
62408
62428
  const { create: create$3, keys: keys$3 } = Object;
62409
62429
  const { stringify: stringify$1, parse: parse$1 } = JSON;
@@ -78805,6 +78825,29 @@ function getInContextFragmentType$d(fragment, fragmentMap) {
78805
78825
  return sharedGetFragmentType(fragment, fragmentMap);
78806
78826
  }
78807
78827
 
78828
+ function getFieldType$b(field) {
78829
+ const fieldName = field.name.value;
78830
+ switch (fieldName) {
78831
+ case '__typename': {
78832
+ return {
78833
+ isArray: false,
78834
+ typename: 'String',
78835
+ };
78836
+ }
78837
+ /*
78838
+ Probably should use metaschema like the RecordQuery graphql-artifact,
78839
+ but this type only has one generic type possible. Also, the most likely scenario for future schema additions,
78840
+ is UISDK adding the the parent of this type, Setup__Setup. Therefore, we will just default to SetupConnection so that
78841
+ query authors don't need to use metaschema when there's no real decision point in this type.
78842
+ */
78843
+ default:
78844
+ return {
78845
+ isArray: false,
78846
+ typename: 'Setup__SetupConnection',
78847
+ };
78848
+ }
78849
+ }
78850
+
78808
78851
  const name$2 = 'Setup__SetupQuery';
78809
78852
  const VERSION$a = 'b89cccb5fa5e458d89dc1137af3e5469';
78810
78853
  function keyBuilder$6(luvio, path, data) {
@@ -78922,24 +78965,6 @@ function getTypeCacheKeys$3(cacheKeySink, astNode, state) {
78922
78965
  }
78923
78966
  // Deal with mapped types' cache keys
78924
78967
  }
78925
- function getFieldType$b(field) {
78926
- switch (field.name.value) {
78927
- case '__typename': {
78928
- return {
78929
- isArray: false,
78930
- typename: 'String'
78931
- };
78932
- }
78933
- case 'recordQuery': {
78934
- return {
78935
- isArray: false,
78936
- typename: 'Setup__SetupConnection'
78937
- };
78938
- }
78939
- default:
78940
- return undefined;
78941
- }
78942
- }
78943
78968
  function ingestFieldByType$2(typename, parentKey, requestedField, sink, fieldKey, fieldData, state) {
78944
78969
  // TODO: add validation logic to only allow nullable fields to be null in the future
78945
78970
  if (fieldData === null) {
@@ -81344,6 +81369,10 @@ let oneStoreGetObjectInfoAdapter$1 = undefined;
81344
81369
  * One store enabled Get Object Infos adapter
81345
81370
  */
81346
81371
  let oneStoreGetObjectInfosAdapter$1 = undefined;
81372
+ /**
81373
+ * Determines when to include PDL strategies for Related Lists
81374
+ */
81375
+ let relatedListsPredictionsEnabled$1 = false;
81347
81376
  /**
81348
81377
  * Defines the configuration API and is exposed internally as well as externally.
81349
81378
  * Configuration for one store enabled REST adapters only.
@@ -81419,6 +81448,12 @@ const configurationForRestAdapters$1 = {
81419
81448
  getDraftAwareCreateContentDocumentAndVersionAdapter: function () {
81420
81449
  return draftAwareCreateContentDocumentAndVersionAdapter$1;
81421
81450
  },
81451
+ setRelatedListsPredictionsEnabled: function (f) {
81452
+ relatedListsPredictionsEnabled$1 = f;
81453
+ },
81454
+ areRelatedListsPredictionsEnabled: function () {
81455
+ return relatedListsPredictionsEnabled$1 === true;
81456
+ },
81422
81457
  // createContentVersion
81423
81458
  setDraftAwareCreateContentVersionAdapter: function (adapter) {
81424
81459
  draftAwareCreateContentVersionAdapter$1 = adapter;
@@ -82452,7 +82487,7 @@ register$1({
82452
82487
  configuration: { ...configurationForGraphQLAdapters$1 },
82453
82488
  instrument: instrument$1,
82454
82489
  });
82455
- // version: 1.287.0-dev1-bb4d690c6
82490
+ // version: 1.287.0-dev3-b1b8160d0
82456
82491
 
82457
82492
  // On core the unstable adapters are re-exported with different names,
82458
82493
  // we want to match them here.
@@ -84708,7 +84743,7 @@ withDefaultLuvio((luvio) => {
84708
84743
  unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
84709
84744
  graphQLImperative = ldsAdapter;
84710
84745
  });
84711
- // version: 1.287.0-dev1-bb4d690c6
84746
+ // version: 1.287.0-dev3-b1b8160d0
84712
84747
 
84713
84748
  var gqlApi = /*#__PURE__*/Object.freeze({
84714
84749
  __proto__: null,
@@ -85446,7 +85481,7 @@ const callbacks$1 = [];
85446
85481
  function register(r) {
85447
85482
  callbacks$1.forEach((callback) => callback(r));
85448
85483
  }
85449
- // version: 1.287.0-dev1-26543bf66
85484
+ // version: 1.287.0-dev3-63d7e5c23
85450
85485
 
85451
85486
  /**
85452
85487
  * Returns true if the value acts like a Promise, i.e. has a "then" function,
@@ -89438,6 +89473,10 @@ let oneStoreGetObjectInfoAdapter = undefined;
89438
89473
  * One store enabled Get Object Infos adapter
89439
89474
  */
89440
89475
  let oneStoreGetObjectInfosAdapter = undefined;
89476
+ /**
89477
+ * Determines when to include PDL strategies for Related Lists
89478
+ */
89479
+ let relatedListsPredictionsEnabled = false;
89441
89480
  /**
89442
89481
  * Defines the configuration API and is exposed internally as well as externally.
89443
89482
  * Configuration for one store enabled REST adapters only.
@@ -89513,6 +89552,12 @@ const configurationForRestAdapters = {
89513
89552
  getDraftAwareCreateContentDocumentAndVersionAdapter: function () {
89514
89553
  return draftAwareCreateContentDocumentAndVersionAdapter;
89515
89554
  },
89555
+ setRelatedListsPredictionsEnabled: function (f) {
89556
+ relatedListsPredictionsEnabled = f;
89557
+ },
89558
+ areRelatedListsPredictionsEnabled: function () {
89559
+ return relatedListsPredictionsEnabled === true;
89560
+ },
89516
89561
  // createContentVersion
89517
89562
  setDraftAwareCreateContentVersionAdapter: function (adapter) {
89518
89563
  draftAwareCreateContentVersionAdapter = adapter;
@@ -90398,4 +90443,4 @@ const { luvio } = getRuntime();
90398
90443
  setDefaultLuvio({ luvio });
90399
90444
 
90400
90445
  export { createPrimingSession, draftManager, draftQueue, evictCacheRecordsByIds, evictExpiredCacheEntries, executeAdapter, executeMutatingAdapter, getImperativeAdapterNames, invokeAdapter, invokeAdapterWithDraftToMerge, invokeAdapterWithDraftToReplace, invokeAdapterWithMetadata, nimbusDraftQueue, registerReportObserver, setMetadataTTL, setUiApiRecordTTL, stopEviction, subscribeToAdapter };
90401
- // version: 1.287.0-dev1-26543bf66
90446
+ // version: 1.287.0-dev3-63d7e5c23
@@ -4196,7 +4196,7 @@
4196
4196
  }
4197
4197
  callbacks.push(callback);
4198
4198
  }
4199
- // version: 1.287.0-dev1-26543bf66
4199
+ // version: 1.287.0-dev3-63d7e5c23
4200
4200
 
4201
4201
  // TODO [TD-0081508]: once that TD is fulfilled we can probably change this file
4202
4202
  function instrumentAdapter$1(createFunction, _metadata) {
@@ -15704,7 +15704,7 @@
15704
15704
  }
15705
15705
  return superResult;
15706
15706
  }
15707
- // version: 1.287.0-dev1-26543bf66
15707
+ // version: 1.287.0-dev3-63d7e5c23
15708
15708
 
15709
15709
  function unwrap(data) {
15710
15710
  // The lwc-luvio bindings import a function from lwc called "unwrap".
@@ -16629,7 +16629,7 @@
16629
16629
  const { apiFamily, name } = metadata;
16630
16630
  return createGraphQLWireAdapterConstructor$1(adapter, `${apiFamily}.${name}`, luvio, astResolver);
16631
16631
  }
16632
- // version: 1.287.0-dev1-26543bf66
16632
+ // version: 1.287.0-dev3-63d7e5c23
16633
16633
 
16634
16634
  /**
16635
16635
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -16850,6 +16850,10 @@
16850
16850
  * One store enabled Get Object Infos adapter
16851
16851
  */
16852
16852
  let oneStoreGetObjectInfosAdapter$2 = undefined;
16853
+ /**
16854
+ * Determines when to include PDL strategies for Related Lists
16855
+ */
16856
+ let relatedListsPredictionsEnabled$2 = false;
16853
16857
  /**
16854
16858
  * Defines the configuration API and is exposed internally as well as externally.
16855
16859
  * Configuration for one store enabled REST adapters only.
@@ -16934,6 +16938,12 @@
16934
16938
  getDraftAwareCreateContentDocumentAndVersionAdapter: function () {
16935
16939
  return draftAwareCreateContentDocumentAndVersionAdapter$2;
16936
16940
  },
16941
+ setRelatedListsPredictionsEnabled: function (f) {
16942
+ relatedListsPredictionsEnabled$2 = f;
16943
+ },
16944
+ areRelatedListsPredictionsEnabled: function () {
16945
+ return relatedListsPredictionsEnabled$2 === true;
16946
+ },
16937
16947
  // createContentVersion
16938
16948
  setDraftAwareCreateContentVersionAdapter: function (adapter) {
16939
16949
  draftAwareCreateContentVersionAdapter$2 = adapter;
@@ -17050,6 +17060,16 @@
17050
17060
  return result;
17051
17061
  };
17052
17062
  }
17063
+ function createRelatedListAdapterWithPrediction(adapter, luvio, name) {
17064
+ if (configurationForRestAdapters$2.areRelatedListsPredictionsEnabled() /* gate is open */) {
17065
+ return createLDSAdapterWithPrediction(adapter, luvio, name);
17066
+ }
17067
+ else {
17068
+ return (config, requestContext) => {
17069
+ return adapter(config, requestContext);
17070
+ };
17071
+ }
17072
+ }
17053
17073
 
17054
17074
  const { hasOwnProperty: ObjectPrototypeHasOwnProperty$2 } = Object.prototype;
17055
17075
  const { keys: ObjectKeys$1$2, create: ObjectCreate$1$2 } = Object;
@@ -43860,13 +43880,13 @@
43860
43880
  const getRelatedListActions_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getRelatedListActions', getRelatedListActionsAdapterFactory), getRelatedListActionsMetadata);
43861
43881
  const getRelatedListCount_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getRelatedListCount', getRelatedListCountAdapterFactory), getRelatedListCountMetadata);
43862
43882
  const getRelatedListInfo_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getRelatedListInfo', getRelatedListInfoAdapterFactory), getRelatedListInfoMetadata);
43863
- const getRelatedListInfoBatch_ldsAdapter = createInstrumentedAdapter(createLDSAdapterWithPrediction(createLDSAdapter(luvio, 'getRelatedListInfoBatch', getRelatedListInfoBatchAdapterFactory), luvio, 'getRelatedListInfoBatch'), getRelatedListInfoBatchMetadata);
43883
+ const getRelatedListInfoBatch_ldsAdapter = createInstrumentedAdapter(createRelatedListAdapterWithPrediction(createLDSAdapter(luvio, 'getRelatedListInfoBatch', getRelatedListInfoBatchAdapterFactory), luvio, 'getRelatedListInfoBatch'), getRelatedListInfoBatchMetadata);
43864
43884
  const getRelatedListPreferences_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getRelatedListPreferences', getRelatedListPreferencesAdapterFactory), getRelatedListPreferencesMetadata);
43865
43885
  const getRelatedListPreferencesBatch_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getRelatedListPreferencesBatch', getRelatedListPreferencesBatchAdapterFactory), getRelatedListPreferencesBatchMetadata);
43866
43886
  const getRelatedListRecordActions_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getRelatedListRecordActions', getRelatedListRecordActionsAdapterFactory), getRelatedListRecordActionsMetadata);
43867
- const getRelatedListRecords_ldsAdapter = createInstrumentedAdapter(createLDSAdapterWithPrediction(createLDSAdapter(luvio, 'getRelatedListRecords', getRelatedListRecordsAdapterFactory), luvio, 'getRelatedListRecords'), getRelatedListRecordsMetadata);
43868
- const getRelatedListRecordsBatch_ldsAdapter = createInstrumentedAdapter(createLDSAdapterWithPrediction(createLDSAdapter(luvio, 'getRelatedListRecordsBatch', getRelatedListRecordsBatchAdapterFactory), luvio, 'getRelatedListRecordsBatch'), getRelatedListRecordsBatchMetadata);
43869
- const getRelatedListsActions_ldsAdapter = createInstrumentedAdapter(createLDSAdapterWithPrediction(createLDSAdapter(luvio, 'getRelatedListsActions', getRelatedListsActionsAdapterFactory), luvio, 'getRelatedListsActions'), getRelatedListsActionsMetadata);
43887
+ const getRelatedListRecords_ldsAdapter = createInstrumentedAdapter(createRelatedListAdapterWithPrediction(createLDSAdapter(luvio, 'getRelatedListRecords', getRelatedListRecordsAdapterFactory), luvio, 'getRelatedListRecords'), getRelatedListRecordsMetadata);
43888
+ const getRelatedListRecordsBatch_ldsAdapter = createInstrumentedAdapter(createRelatedListAdapterWithPrediction(createLDSAdapter(luvio, 'getRelatedListRecordsBatch', getRelatedListRecordsBatchAdapterFactory), luvio, 'getRelatedListRecordsBatch'), getRelatedListRecordsBatchMetadata);
43889
+ const getRelatedListsActions_ldsAdapter = createInstrumentedAdapter(createRelatedListAdapterWithPrediction(createLDSAdapter(luvio, 'getRelatedListsActions', getRelatedListsActionsAdapterFactory), luvio, 'getRelatedListsActions'), getRelatedListsActionsMetadata);
43870
43890
  const getRelatedListsCount_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getRelatedListsCount', getRelatedListsCountAdapterFactory), getRelatedListsCountMetadata);
43871
43891
  const getRelatedListsInfo_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getRelatedListsInfo', getRelatedListsInfoAdapterFactory), getRelatedListsInfoMetadata);
43872
43892
  const getSearchFilterMetadata_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getSearchFilterMetadata', getSearchFilterMetadataAdapterFactory), getSearchFilterMetadataMetadata);
@@ -44170,7 +44190,7 @@
44170
44190
  throttle(60, 60000, setupNotifyAllListRecordUpdateAvailable(luvio));
44171
44191
  throttle(60, 60000, setupNotifyAllListInfoSummaryUpdateAvailable(luvio));
44172
44192
  });
44173
- // version: 1.287.0-dev1-bb4d690c6
44193
+ // version: 1.287.0-dev3-b1b8160d0
44174
44194
 
44175
44195
  var ldsIdempotencyWriteDisabled = {
44176
44196
  isOpen: function (e) {
@@ -62409,7 +62429,7 @@
62409
62429
  id: '@salesforce/lds-network-adapter',
62410
62430
  instrument: instrument$2,
62411
62431
  });
62412
- // version: 1.287.0-dev1-26543bf66
62432
+ // version: 1.287.0-dev3-63d7e5c23
62413
62433
 
62414
62434
  const { create: create$3, keys: keys$3 } = Object;
62415
62435
  const { stringify: stringify$1, parse: parse$1 } = JSON;
@@ -78811,6 +78831,29 @@
78811
78831
  return sharedGetFragmentType(fragment, fragmentMap);
78812
78832
  }
78813
78833
 
78834
+ function getFieldType$b(field) {
78835
+ const fieldName = field.name.value;
78836
+ switch (fieldName) {
78837
+ case '__typename': {
78838
+ return {
78839
+ isArray: false,
78840
+ typename: 'String',
78841
+ };
78842
+ }
78843
+ /*
78844
+ Probably should use metaschema like the RecordQuery graphql-artifact,
78845
+ but this type only has one generic type possible. Also, the most likely scenario for future schema additions,
78846
+ is UISDK adding the the parent of this type, Setup__Setup. Therefore, we will just default to SetupConnection so that
78847
+ query authors don't need to use metaschema when there's no real decision point in this type.
78848
+ */
78849
+ default:
78850
+ return {
78851
+ isArray: false,
78852
+ typename: 'Setup__SetupConnection',
78853
+ };
78854
+ }
78855
+ }
78856
+
78814
78857
  const name$2 = 'Setup__SetupQuery';
78815
78858
  const VERSION$a = 'b89cccb5fa5e458d89dc1137af3e5469';
78816
78859
  function keyBuilder$6(luvio, path, data) {
@@ -78928,24 +78971,6 @@
78928
78971
  }
78929
78972
  // Deal with mapped types' cache keys
78930
78973
  }
78931
- function getFieldType$b(field) {
78932
- switch (field.name.value) {
78933
- case '__typename': {
78934
- return {
78935
- isArray: false,
78936
- typename: 'String'
78937
- };
78938
- }
78939
- case 'recordQuery': {
78940
- return {
78941
- isArray: false,
78942
- typename: 'Setup__SetupConnection'
78943
- };
78944
- }
78945
- default:
78946
- return undefined;
78947
- }
78948
- }
78949
78974
  function ingestFieldByType$2(typename, parentKey, requestedField, sink, fieldKey, fieldData, state) {
78950
78975
  // TODO: add validation logic to only allow nullable fields to be null in the future
78951
78976
  if (fieldData === null) {
@@ -81350,6 +81375,10 @@
81350
81375
  * One store enabled Get Object Infos adapter
81351
81376
  */
81352
81377
  let oneStoreGetObjectInfosAdapter$1 = undefined;
81378
+ /**
81379
+ * Determines when to include PDL strategies for Related Lists
81380
+ */
81381
+ let relatedListsPredictionsEnabled$1 = false;
81353
81382
  /**
81354
81383
  * Defines the configuration API and is exposed internally as well as externally.
81355
81384
  * Configuration for one store enabled REST adapters only.
@@ -81425,6 +81454,12 @@
81425
81454
  getDraftAwareCreateContentDocumentAndVersionAdapter: function () {
81426
81455
  return draftAwareCreateContentDocumentAndVersionAdapter$1;
81427
81456
  },
81457
+ setRelatedListsPredictionsEnabled: function (f) {
81458
+ relatedListsPredictionsEnabled$1 = f;
81459
+ },
81460
+ areRelatedListsPredictionsEnabled: function () {
81461
+ return relatedListsPredictionsEnabled$1 === true;
81462
+ },
81428
81463
  // createContentVersion
81429
81464
  setDraftAwareCreateContentVersionAdapter: function (adapter) {
81430
81465
  draftAwareCreateContentVersionAdapter$1 = adapter;
@@ -82458,7 +82493,7 @@
82458
82493
  configuration: { ...configurationForGraphQLAdapters$1 },
82459
82494
  instrument: instrument$1,
82460
82495
  });
82461
- // version: 1.287.0-dev1-bb4d690c6
82496
+ // version: 1.287.0-dev3-b1b8160d0
82462
82497
 
82463
82498
  // On core the unstable adapters are re-exported with different names,
82464
82499
  // we want to match them here.
@@ -84714,7 +84749,7 @@
84714
84749
  unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
84715
84750
  graphQLImperative = ldsAdapter;
84716
84751
  });
84717
- // version: 1.287.0-dev1-bb4d690c6
84752
+ // version: 1.287.0-dev3-b1b8160d0
84718
84753
 
84719
84754
  var gqlApi = /*#__PURE__*/Object.freeze({
84720
84755
  __proto__: null,
@@ -85452,7 +85487,7 @@
85452
85487
  function register(r) {
85453
85488
  callbacks$1.forEach((callback) => callback(r));
85454
85489
  }
85455
- // version: 1.287.0-dev1-26543bf66
85490
+ // version: 1.287.0-dev3-63d7e5c23
85456
85491
 
85457
85492
  /**
85458
85493
  * Returns true if the value acts like a Promise, i.e. has a "then" function,
@@ -89444,6 +89479,10 @@
89444
89479
  * One store enabled Get Object Infos adapter
89445
89480
  */
89446
89481
  let oneStoreGetObjectInfosAdapter = undefined;
89482
+ /**
89483
+ * Determines when to include PDL strategies for Related Lists
89484
+ */
89485
+ let relatedListsPredictionsEnabled = false;
89447
89486
  /**
89448
89487
  * Defines the configuration API and is exposed internally as well as externally.
89449
89488
  * Configuration for one store enabled REST adapters only.
@@ -89519,6 +89558,12 @@
89519
89558
  getDraftAwareCreateContentDocumentAndVersionAdapter: function () {
89520
89559
  return draftAwareCreateContentDocumentAndVersionAdapter;
89521
89560
  },
89561
+ setRelatedListsPredictionsEnabled: function (f) {
89562
+ relatedListsPredictionsEnabled = f;
89563
+ },
89564
+ areRelatedListsPredictionsEnabled: function () {
89565
+ return relatedListsPredictionsEnabled === true;
89566
+ },
89522
89567
  // createContentVersion
89523
89568
  setDraftAwareCreateContentVersionAdapter: function (adapter) {
89524
89569
  draftAwareCreateContentVersionAdapter = adapter;
@@ -90423,4 +90468,4 @@
90423
90468
  exports.subscribeToAdapter = subscribeToAdapter;
90424
90469
 
90425
90470
  }));
90426
- // version: 1.287.0-dev1-26543bf66
90471
+ // version: 1.287.0-dev3-63d7e5c23
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-worker-api",
3
- "version": "1.287.0-dev1",
3
+ "version": "1.287.0-dev3",
4
4
  "license": "SEE LICENSE IN LICENSE.txt",
5
5
  "description": "",
6
6
  "main": "dist/standalone/es/lds-worker-api.js",
@@ -35,15 +35,15 @@
35
35
  },
36
36
  "devDependencies": {
37
37
  "@oat-sa/rollup-plugin-wildcard-external": "^1.0.0",
38
- "@salesforce/lds-adapters-graphql": "^1.287.0-dev1",
39
- "@salesforce/lds-adapters-uiapi": "^1.287.0-dev1",
40
- "@salesforce/lds-default-luvio": "^1.287.0-dev1",
41
- "@salesforce/lds-drafts": "^1.287.0-dev1",
42
- "@salesforce/lds-graphql-parser": "^1.287.0-dev1",
43
- "@salesforce/lds-luvio-engine": "^1.287.0-dev1",
44
- "@salesforce/lds-priming": "^1.287.0-dev1",
45
- "@salesforce/lds-runtime-mobile": "^1.287.0-dev1",
46
- "@salesforce/nimbus-plugin-lds": "^1.287.0-dev1",
38
+ "@salesforce/lds-adapters-graphql": "^1.287.0-dev3",
39
+ "@salesforce/lds-adapters-uiapi": "^1.287.0-dev3",
40
+ "@salesforce/lds-default-luvio": "^1.287.0-dev3",
41
+ "@salesforce/lds-drafts": "^1.287.0-dev3",
42
+ "@salesforce/lds-graphql-parser": "^1.287.0-dev3",
43
+ "@salesforce/lds-luvio-engine": "^1.287.0-dev3",
44
+ "@salesforce/lds-priming": "^1.287.0-dev3",
45
+ "@salesforce/lds-runtime-mobile": "^1.287.0-dev3",
46
+ "@salesforce/nimbus-plugin-lds": "^1.287.0-dev3",
47
47
  "ajv": "^8.11.0",
48
48
  "glob": "^7.1.5",
49
49
  "nimbus-types": "^2.0.0-alpha1",