@salesforce/lds-worker-api 1.321.0 → 1.322.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.
@@ -4265,7 +4265,7 @@ function withDefaultLuvio(callback) {
4265
4265
  }
4266
4266
  callbacks.push(callback);
4267
4267
  }
4268
- // version: 1.321.0-1fd3fba1c4
4268
+ // version: 1.322.0-6aa042602a
4269
4269
 
4270
4270
  // TODO [TD-0081508]: once that TD is fulfilled we can probably change this file
4271
4271
  function instrumentAdapter$1(createFunction, _metadata) {
@@ -5213,7 +5213,7 @@ function createGraphQLWireAdapterConstructor(luvio, adapter, metadata, astResolv
5213
5213
  const { apiFamily, name } = metadata;
5214
5214
  return createGraphQLWireAdapterConstructor$1(adapter, `${apiFamily}.${name}`, luvio, astResolver);
5215
5215
  }
5216
- // version: 1.321.0-1fd3fba1c4
5216
+ // version: 1.322.0-6aa042602a
5217
5217
 
5218
5218
  /**
5219
5219
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -5652,7 +5652,7 @@ const configurationForOneStoreEnabledAdapters$2 = {
5652
5652
  * @returns Luvio or one store wire adapter constructor.
5653
5653
  */
5654
5654
  function getLuvioOrOneStoreAdapter(luvioAdapter, oneStoreAdapter) {
5655
- return oneStoreAdapter !== null && oneStoreAdapter !== void 0 ? oneStoreAdapter : luvioAdapter;
5655
+ return oneStoreAdapter ?? luvioAdapter;
5656
5656
  }
5657
5657
  const getKeywordSearchResultsFactory$2 = new Configurable$2();
5658
5658
  const getListRecordsByNameFactory$2 = new Configurable$2();
@@ -14069,7 +14069,7 @@ function getRecordId18Array$1(value) {
14069
14069
  }
14070
14070
 
14071
14071
  const TTL$v = 900000;
14072
- const VERSION$14$2 = "4ba42e1fa0fb00cf78fce86082da41c9";
14072
+ const VERSION$14$2 = "12123f1aca1b5a48303b1d099f9f5629";
14073
14073
  const RepresentationType$M = 'RecordLayoutUserStateRepresentation';
14074
14074
  function keyBuilder$1U(luvio, config) {
14075
14075
  return keyPrefix$3 + '::' + RepresentationType$M + ':' + config.recordTypeId + ':' + config.apiName + ':' + config.layoutType + ':' + config.mode;
@@ -20270,11 +20270,11 @@ function validateAdapterConfig$N(untrustedConfig, _configPropertyNames) {
20270
20270
  if (config === null) {
20271
20271
  return null;
20272
20272
  }
20273
- // recordTypeId coercion is nuts: if `null` (but not undefined) then use MASTER record type id
20274
20273
  let recordTypeId = config.recordTypeId;
20275
20274
  if (recordTypeId === undefined) {
20276
20275
  // must check untrusted bc config has been coerced
20277
- if (untrustedConfig.recordTypeId !== null) {
20276
+ if (untrustedConfig.recordTypeId !== null &&
20277
+ untrustedConfig.recordTypeId !== undefined) {
20278
20278
  return null;
20279
20279
  }
20280
20280
  recordTypeId = MAIN_RECORD_TYPE_ID$1;
@@ -30576,8 +30576,7 @@ function getTypeCacheKeys$7$2(rootKeySet, luvio, input, fullPathFactory) {
30576
30576
  }
30577
30577
 
30578
30578
  function keyBuilder$8$2(luvio, params) {
30579
- var _a, _b, _c, _d, _e;
30580
- return keyPrefix$3 + '::LookupValuesRepresentation:(' + 'dependentFieldBindings:' + params.queryParams.dependentFieldBindings + ',' + 'page:' + params.queryParams.page + ',' + 'pageSize:' + params.queryParams.pageSize + ',' + 'q:' + params.queryParams.q + ',' + 'searchType:' + params.queryParams.searchType + ',' + 'sourceRecordId:' + params.queryParams.sourceRecordId + ',' + 'targetApiName:' + params.queryParams.targetApiName + ',' + 'fieldApiName:' + params.urlParams.fieldApiName + ',' + 'objectApiName:' + params.urlParams.objectApiName + ',' + (((_a = params.body.sourceRecord) === null || _a === void 0 ? void 0 : _a.allowSaveOnDuplicate) === undefined ? 'sourceRecord.allowSaveOnDuplicate' : 'sourceRecord.allowSaveOnDuplicate:' + ((_b = params.body.sourceRecord) === null || _b === void 0 ? void 0 : _b.allowSaveOnDuplicate)) + '::' + (((_c = params.body.sourceRecord) === null || _c === void 0 ? void 0 : _c.apiName) === undefined ? 'sourceRecord.apiName' : 'sourceRecord.apiName:' + ((_d = params.body.sourceRecord) === null || _d === void 0 ? void 0 : _d.apiName)) + '::' + stableJSONStringify$2((_e = params.body.sourceRecord) === null || _e === void 0 ? void 0 : _e.fields) + '::' + (params.body.orderBy === undefined ? undefined : ('[' + params.body.orderBy.map(element => 'orderBy.fieldApiName:' + element.fieldApiName + '::' + 'orderBy.isAscending:' + element.isAscending).join(',') + ']')) + ')';
30579
+ return keyPrefix$3 + '::LookupValuesRepresentation:(' + 'dependentFieldBindings:' + params.queryParams.dependentFieldBindings + ',' + 'page:' + params.queryParams.page + ',' + 'pageSize:' + params.queryParams.pageSize + ',' + 'q:' + params.queryParams.q + ',' + 'searchType:' + params.queryParams.searchType + ',' + 'sourceRecordId:' + params.queryParams.sourceRecordId + ',' + 'targetApiName:' + params.queryParams.targetApiName + ',' + 'fieldApiName:' + params.urlParams.fieldApiName + ',' + 'objectApiName:' + params.urlParams.objectApiName + ',' + (params.body.sourceRecord?.allowSaveOnDuplicate === undefined ? 'sourceRecord.allowSaveOnDuplicate' : 'sourceRecord.allowSaveOnDuplicate:' + params.body.sourceRecord?.allowSaveOnDuplicate) + '::' + (params.body.sourceRecord?.apiName === undefined ? 'sourceRecord.apiName' : 'sourceRecord.apiName:' + params.body.sourceRecord?.apiName) + '::' + stableJSONStringify$2(params.body.sourceRecord?.fields) + '::' + (params.body.orderBy === undefined ? undefined : ('[' + params.body.orderBy.map(element => 'orderBy.fieldApiName:' + element.fieldApiName + '::' + 'orderBy.isAscending:' + element.isAscending).join(',') + ']')) + ')';
30581
30580
  }
30582
30581
  function getResponseCacheKeys$7$1(storeKeyMap, luvio, resourceParams, response) {
30583
30582
  getTypeCacheKeys$7$2(storeKeyMap, luvio, response, () => keyBuilder$8$2(luvio, resourceParams));
@@ -33426,7 +33425,6 @@ const getSearchFilterMetadataMetadata = { apiFamily: keyPrefix$3, name: adapterN
33426
33425
  const getSearchFilterOptionsMetadata = { apiFamily: keyPrefix$3, name: adapterName$b$1, ttl: 30000 };
33427
33426
  const getSearchResultsMetadata = { apiFamily: keyPrefix$3, name: adapterName$9$1, ttl: 200 };
33428
33427
  function bindExportsTo$1(luvio) {
33429
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
33430
33428
  // LDS adapters
33431
33429
  const getActionOverrides_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getActionOverrides', getActionOverridesAdapterFactory), getActionOverridesMetadata);
33432
33430
  const getAllApps_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getAllApps', getAllAppsAdapterFactory), getAllAppsMetadata);
@@ -33435,7 +33433,7 @@ function bindExportsTo$1(luvio) {
33435
33433
  const getDuplicates_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getDuplicates', getDuplicatesAdapterFactory), getDuplicatesMetadata);
33436
33434
  const getFlexipageFormulaOverrides_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getFlexipageFormulaOverrides', getFlexipageFormulaOverridesAdapterFactory), getFlexipageFormulaOverridesMetadata);
33437
33435
  const getGlobalActions_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getGlobalActions', getGlobalActionsAdapterFactory), getGlobalActionsMetadata);
33438
- const getKeywordSearchResults_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getKeywordSearchResults', (_a = configurationForEnvironmentFactoryOverrides$2.getKeywordSearchResultsAdapterFactory()) !== null && _a !== void 0 ? _a : getKeywordSearchResultsAdapterFactory$1), getKeywordSearchResultsMetadata);
33436
+ const getKeywordSearchResults_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getKeywordSearchResults', configurationForEnvironmentFactoryOverrides$2.getKeywordSearchResultsAdapterFactory() ?? getKeywordSearchResultsAdapterFactory$1), getKeywordSearchResultsMetadata);
33439
33437
  const getLayout_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getLayout', getLayoutAdapterFactory), getLayoutMetadata);
33440
33438
  const getLayoutUserState_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getLayoutUserState', getLayoutUserStateAdapterFactory), getLayoutUserStateMetadata);
33441
33439
  const getListInfoByName_ldsAdapter = createInstrumentedAdapter(createLDSAdapterWithPrediction(createLDSAdapter(luvio, 'getListInfoByName', getListInfoByNameAdapterFactory), luvio, 'getListInfoByName'), getListInfoByNameMetadata);
@@ -33443,11 +33441,11 @@ function bindExportsTo$1(luvio) {
33443
33441
  const getListInfosByObjectName_ldsAdapter = createInstrumentedAdapter(createLDSAdapterWithPrediction(createLDSAdapter(luvio, 'getListInfosByObjectName', getListInfosByObjectNameAdapterFactory), luvio, 'getListInfosByObjectName'), getListInfosByObjectNameMetadata);
33444
33442
  const getListObjectInfo_ldsAdapter = createInstrumentedAdapter(createLDSAdapterWithPrediction(createLDSAdapter(luvio, 'getListObjectInfo', getListObjectInfoAdapterFactory), luvio, 'getListObjectInfo'), getListObjectInfoMetadata);
33445
33443
  const getListPreferences_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getListPreferences', getListPreferencesAdapterFactory), getListPreferencesMetadata);
33446
- const getListRecordsByName_ldsAdapter = createInstrumentedAdapter(createLDSAdapterWithPrediction(createLDSAdapter(luvio, 'getListRecordsByName', (_b = configurationForEnvironmentFactoryOverrides$2.getListRecordsByNameAdapterFactory()) !== null && _b !== void 0 ? _b : factory$a), luvio, 'getListRecordsByName'), getListRecordsByNameMetadata);
33447
- const getListUi_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getListUi', (_c = configurationForEnvironmentFactoryOverrides$2.getListUiAdapterFactory()) !== null && _c !== void 0 ? _c : factory$h), getListUiMetadata);
33444
+ const getListRecordsByName_ldsAdapter = createInstrumentedAdapter(createLDSAdapterWithPrediction(createLDSAdapter(luvio, 'getListRecordsByName', configurationForEnvironmentFactoryOverrides$2.getListRecordsByNameAdapterFactory() ?? factory$a), luvio, 'getListRecordsByName'), getListRecordsByNameMetadata);
33445
+ const getListUi_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getListUi', configurationForEnvironmentFactoryOverrides$2.getListUiAdapterFactory() ?? factory$h), getListUiMetadata);
33448
33446
  const getLookupActions_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getLookupActions', getLookupActionsAdapterFactory), getLookupActionsMetadata);
33449
33447
  const getLookupMetadata_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getLookupMetadata', getLookupMetadataAdapterFactory), getLookupMetadataMetadata);
33450
- const getLookupRecords_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getLookupRecords', (_d = configurationForEnvironmentFactoryOverrides$2.getLookupRecordsAdapterFactory()) !== null && _d !== void 0 ? _d : factory$9$1), getLookupRecordsMetadata);
33448
+ const getLookupRecords_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getLookupRecords', configurationForEnvironmentFactoryOverrides$2.getLookupRecordsAdapterFactory() ?? factory$9$1), getLookupRecordsMetadata);
33451
33449
  const getNavItems_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getNavItems', getNavItemsAdapterFactory), getNavItemsMetadata);
33452
33450
  const getObjectCreateActions_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getObjectCreateActions', getObjectCreateActionsAdapterFactory), getObjectCreateActionsMetadata);
33453
33451
  const getObjectInfo_ldsAdapter = createInstrumentedAdapter(createLDSAdapterWithPrediction(createLDSAdapter(luvio, 'getObjectInfo', getObjectInfoAdapterFactory), luvio, 'getObjectInfo'), getObjectInfoMetadata);
@@ -33455,18 +33453,18 @@ function bindExportsTo$1(luvio) {
33455
33453
  const getPathLayout_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getPathLayout', getPathLayoutAdapterFactory), getPathLayoutMetadata);
33456
33454
  const getPicklistValues_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getPicklistValues', getPicklistValuesAdapterFactory), getPicklistValuesMetadata);
33457
33455
  const getPicklistValuesByRecordType_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getPicklistValuesByRecordType', getPicklistValuesByRecordTypeAdapterFactory), getPicklistValuesByRecordTypeMetadata);
33458
- const getQuickActionDefaults_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getQuickActionDefaults', (_e = configurationForEnvironmentFactoryOverrides$2.getQuickActionDefaultsAdapterFactory()) !== null && _e !== void 0 ? _e : getQuickActionDefaultsAdapterFactory$1), getQuickActionDefaultsMetadata);
33456
+ const getQuickActionDefaults_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getQuickActionDefaults', configurationForEnvironmentFactoryOverrides$2.getQuickActionDefaultsAdapterFactory() ?? getQuickActionDefaultsAdapterFactory$1), getQuickActionDefaultsMetadata);
33459
33457
  const getQuickActionInfo_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getQuickActionInfo', getQuickActionInfoAdapterFactory), getQuickActionInfoMetadata);
33460
33458
  const getQuickActionLayout_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getQuickActionLayout', getQuickActionLayoutAdapterFactory), getQuickActionLayoutMetadata);
33461
- const getRecord_ldsAdapter = createInstrumentedAdapter(createLDSAdapterWithPrediction(createLDSAdapter(luvio, 'getRecord', (_f = configurationForEnvironmentFactoryOverrides$2.getRecordAdapterFactory()) !== null && _f !== void 0 ? _f : factory$f), luvio, 'getRecord'), getRecordMetadata);
33459
+ const getRecord_ldsAdapter = createInstrumentedAdapter(createLDSAdapterWithPrediction(createLDSAdapter(luvio, 'getRecord', configurationForEnvironmentFactoryOverrides$2.getRecordAdapterFactory() ?? factory$f), luvio, 'getRecord'), getRecordMetadata);
33462
33460
  const getRecordActions_ldsAdapter = createInstrumentedAdapter(createLDSAdapterWithPrediction(createLDSAdapter(luvio, 'getRecordActions', getRecordActionsAdapterFactory), luvio, 'getRecordActions'), getRecordActionsMetadata);
33463
33461
  const getRecordAvatars_ldsAdapter = createInstrumentedAdapter(createLDSAdapterWithPrediction(createLDSAdapter(luvio, 'getRecordAvatars', getRecordAvatarsAdapterFactory), luvio, 'getRecordAvatars'), getRecordAvatarsMetadata);
33464
- const getRecordCreateDefaults_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getRecordCreateDefaults', (_g = configurationForEnvironmentFactoryOverrides$2.getRecordCreateDefaultsAdapterFactory()) !== null && _g !== void 0 ? _g : factory$7$1), getRecordCreateDefaultsMetadata);
33462
+ const getRecordCreateDefaults_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getRecordCreateDefaults', configurationForEnvironmentFactoryOverrides$2.getRecordCreateDefaultsAdapterFactory() ?? factory$7$1), getRecordCreateDefaultsMetadata);
33465
33463
  const getRecordEditActions_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getRecordEditActions', getRecordEditActionsAdapterFactory), getRecordEditActionsMetadata);
33466
- const getRecordTemplateClone_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getRecordTemplateClone', (_h = configurationForEnvironmentFactoryOverrides$2.getRecordTemplateCloneAdapterFactory()) !== null && _h !== void 0 ? _h : factory$6$1), getRecordTemplateCloneMetadata);
33467
- const getRecordTemplateCreate_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getRecordTemplateCreate', (_j = configurationForEnvironmentFactoryOverrides$2.getRecordTemplateCreateAdapterFactory()) !== null && _j !== void 0 ? _j : factory$5$1), getRecordTemplateCreateMetadata);
33468
- const getRecordUi_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getRecordUi', (_k = configurationForEnvironmentFactoryOverrides$2.getRecordUiAdapterFactory()) !== null && _k !== void 0 ? _k : factory$g), getRecordUiMetadata);
33469
- const getRecords_ldsAdapter = createInstrumentedAdapter(createLDSAdapterWithPrediction(createLDSAdapter(luvio, 'getRecords', (_l = configurationForEnvironmentFactoryOverrides$2.getRecordsAdapterFactory()) !== null && _l !== void 0 ? _l : getRecordsAdapterFactory$1), luvio, 'getRecords'), getRecordsMetadata);
33464
+ const getRecordTemplateClone_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getRecordTemplateClone', configurationForEnvironmentFactoryOverrides$2.getRecordTemplateCloneAdapterFactory() ?? factory$6$1), getRecordTemplateCloneMetadata);
33465
+ const getRecordTemplateCreate_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getRecordTemplateCreate', configurationForEnvironmentFactoryOverrides$2.getRecordTemplateCreateAdapterFactory() ?? factory$5$1), getRecordTemplateCreateMetadata);
33466
+ const getRecordUi_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getRecordUi', configurationForEnvironmentFactoryOverrides$2.getRecordUiAdapterFactory() ?? factory$g), getRecordUiMetadata);
33467
+ const getRecords_ldsAdapter = createInstrumentedAdapter(createLDSAdapterWithPrediction(createLDSAdapter(luvio, 'getRecords', configurationForEnvironmentFactoryOverrides$2.getRecordsAdapterFactory() ?? getRecordsAdapterFactory$1), luvio, 'getRecords'), getRecordsMetadata);
33470
33468
  const getRelatedListActions_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getRelatedListActions', getRelatedListActionsAdapterFactory), getRelatedListActionsMetadata);
33471
33469
  const getRelatedListCount_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getRelatedListCount', getRelatedListCountAdapterFactory), getRelatedListCountMetadata);
33472
33470
  const getRelatedListInfo_ldsAdapter = createInstrumentedAdapter(createRelatedListAdapterWithPrediction(createLDSAdapter(luvio, 'getRelatedListInfo', getRelatedListInfoAdapterFactory), luvio, 'getRelatedListInfo'), getRelatedListInfoMetadata);
@@ -33474,14 +33472,14 @@ function bindExportsTo$1(luvio) {
33474
33472
  const getRelatedListPreferences_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getRelatedListPreferences', getRelatedListPreferencesAdapterFactory), getRelatedListPreferencesMetadata);
33475
33473
  const getRelatedListPreferencesBatch_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getRelatedListPreferencesBatch', getRelatedListPreferencesBatchAdapterFactory), getRelatedListPreferencesBatchMetadata);
33476
33474
  const getRelatedListRecordActions_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getRelatedListRecordActions', getRelatedListRecordActionsAdapterFactory), getRelatedListRecordActionsMetadata);
33477
- const getRelatedListRecords_ldsAdapter = createInstrumentedAdapter(createRelatedListAdapterWithPrediction(createLDSAdapter(luvio, 'getRelatedListRecords', (_m = configurationForEnvironmentFactoryOverrides$2.getRelatedListRecordsAdapterFactory()) !== null && _m !== void 0 ? _m : getRelatedListRecordsAdapterFactory$1), luvio, 'getRelatedListRecords'), getRelatedListRecordsMetadata);
33478
- const getRelatedListRecordsBatch_ldsAdapter = createInstrumentedAdapter(createRelatedListAdapterWithPrediction(createLDSAdapter(luvio, 'getRelatedListRecordsBatch', (_o = configurationForEnvironmentFactoryOverrides$2.getRelatedListRecordsBatchAdapterFactory()) !== null && _o !== void 0 ? _o : getRelatedListRecordsBatchAdapterFactory$1), luvio, 'getRelatedListRecordsBatch'), getRelatedListRecordsBatchMetadata);
33475
+ const getRelatedListRecords_ldsAdapter = createInstrumentedAdapter(createRelatedListAdapterWithPrediction(createLDSAdapter(luvio, 'getRelatedListRecords', configurationForEnvironmentFactoryOverrides$2.getRelatedListRecordsAdapterFactory() ?? getRelatedListRecordsAdapterFactory$1), luvio, 'getRelatedListRecords'), getRelatedListRecordsMetadata);
33476
+ const getRelatedListRecordsBatch_ldsAdapter = createInstrumentedAdapter(createRelatedListAdapterWithPrediction(createLDSAdapter(luvio, 'getRelatedListRecordsBatch', configurationForEnvironmentFactoryOverrides$2.getRelatedListRecordsBatchAdapterFactory() ?? getRelatedListRecordsBatchAdapterFactory$1), luvio, 'getRelatedListRecordsBatch'), getRelatedListRecordsBatchMetadata);
33479
33477
  const getRelatedListsActions_ldsAdapter = createInstrumentedAdapter(createRelatedListAdapterWithPrediction(createLDSAdapter(luvio, 'getRelatedListsActions', getRelatedListsActionsAdapterFactory), luvio, 'getRelatedListsActions'), getRelatedListsActionsMetadata);
33480
33478
  const getRelatedListsCount_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getRelatedListsCount', getRelatedListsCountAdapterFactory), getRelatedListsCountMetadata);
33481
33479
  const getRelatedListsInfo_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getRelatedListsInfo', getRelatedListsInfoAdapterFactory), getRelatedListsInfoMetadata);
33482
33480
  const getSearchFilterMetadata_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getSearchFilterMetadata', getSearchFilterMetadataAdapterFactory), getSearchFilterMetadataMetadata);
33483
33481
  const getSearchFilterOptions_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getSearchFilterOptions', getSearchFilterOptionsAdapterFactory), getSearchFilterOptionsMetadata);
33484
- const getSearchResults_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getSearchResults', (_p = configurationForEnvironmentFactoryOverrides$2.getSearchResultsAdapterFactory()) !== null && _p !== void 0 ? _p : getSearchResultsAdapterFactory$1), getSearchResultsMetadata);
33482
+ const getSearchResults_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getSearchResults', configurationForEnvironmentFactoryOverrides$2.getSearchResultsAdapterFactory() ?? getSearchResultsAdapterFactory$1), getSearchResultsMetadata);
33485
33483
  function unwrapSnapshotData(factory) {
33486
33484
  const adapter = factory(luvio);
33487
33485
  return (...config) => adapter(...config).then(snapshot => snapshot.data);
@@ -33784,7 +33782,7 @@ withDefaultLuvio((luvio) => {
33784
33782
  throttle(60, 60000, setupNotifyAllListRecordUpdateAvailable(luvio));
33785
33783
  throttle(60, 60000, setupNotifyAllListInfoSummaryUpdateAvailable(luvio));
33786
33784
  });
33787
- // version: 1.321.0-40847d67a8
33785
+ // version: 1.322.0-87f682c9f3
33788
33786
 
33789
33787
  var ldsIdempotencyWriteDisabled = {
33790
33788
  isOpen: function (e) {
@@ -47064,7 +47062,7 @@ class AsyncWorkerPool {
47064
47062
  try {
47065
47063
  cancelFn();
47066
47064
  }
47067
- catch (_a) {
47065
+ catch {
47068
47066
  success = false;
47069
47067
  }
47070
47068
  }
@@ -47076,7 +47074,7 @@ class AsyncWorkerPool {
47076
47074
  try {
47077
47075
  cancelFn();
47078
47076
  }
47079
- catch (_b) {
47077
+ catch {
47080
47078
  success = false;
47081
47079
  }
47082
47080
  }
@@ -47896,7 +47894,7 @@ class DurableDraftQueue {
47896
47894
  try {
47897
47895
  await this.startQueueSafe();
47898
47896
  }
47899
- catch (_a) {
47897
+ catch {
47900
47898
  // An error starting the queue should not bubble up from this method
47901
47899
  }
47902
47900
  }
@@ -51442,7 +51440,7 @@ function findMaxOffset$1(metadata) {
51442
51440
  return endOfList > 0 ? endOfList - 1 : 0; // Cursor based pagination in gql is off by one :)
51443
51441
  }
51444
51442
  // end is included in the above case.
51445
- return Object.values(metadata).reduce((acc, value) => Math.max(value !== null && value !== void 0 ? value : -1, acc), -1);
51443
+ return Object.values(metadata).reduce((acc, value) => Math.max(value ?? -1, acc), -1);
51446
51444
  }
51447
51445
  function getPageTokenAndOffset$1(paginationMetadata, token) {
51448
51446
  if (token === undefined) {
@@ -57694,7 +57692,8 @@ function validate$k(obj, path = 'SearchFilterInputRepresentation') {
57694
57692
  '")');
57695
57693
  }
57696
57694
  })();
57697
- if (obj_values_item_union0_error !== null) {
57695
+ // eslint-disable-next-line eqeqeq
57696
+ if (obj_values_item_union0_error != null) {
57698
57697
  obj_values_item_union0 = obj_values_item_union0_error.message;
57699
57698
  }
57700
57699
  let obj_values_item_union1 = null;
@@ -57707,7 +57706,8 @@ function validate$k(obj, path = 'SearchFilterInputRepresentation') {
57707
57706
  '")');
57708
57707
  }
57709
57708
  })();
57710
- if (obj_values_item_union1_error !== null) {
57709
+ // eslint-disable-next-line eqeqeq
57710
+ if (obj_values_item_union1_error != null) {
57711
57711
  obj_values_item_union1 = obj_values_item_union1_error.message;
57712
57712
  }
57713
57713
  let obj_values_item_union2 = null;
@@ -57720,7 +57720,8 @@ function validate$k(obj, path = 'SearchFilterInputRepresentation') {
57720
57720
  '")');
57721
57721
  }
57722
57722
  })();
57723
- if (obj_values_item_union2_error !== null) {
57723
+ // eslint-disable-next-line eqeqeq
57724
+ if (obj_values_item_union2_error != null) {
57724
57725
  obj_values_item_union2 = obj_values_item_union2_error.message;
57725
57726
  }
57726
57727
  if (obj_values_item_union0 && obj_values_item_union1 && obj_values_item_union2) {
@@ -58489,7 +58490,8 @@ function validate$7(obj, path = 'RecordInputRepresentation') {
58489
58490
  '")');
58490
58491
  }
58491
58492
  })();
58492
- if (obj_fields_prop_union0_error !== null) {
58493
+ // eslint-disable-next-line eqeqeq
58494
+ if (obj_fields_prop_union0_error != null) {
58493
58495
  obj_fields_prop_union0 = obj_fields_prop_union0_error.message;
58494
58496
  }
58495
58497
  let obj_fields_prop_union1 = null;
@@ -58502,7 +58504,8 @@ function validate$7(obj, path = 'RecordInputRepresentation') {
58502
58504
  '")');
58503
58505
  }
58504
58506
  })();
58505
- if (obj_fields_prop_union1_error !== null) {
58507
+ // eslint-disable-next-line eqeqeq
58508
+ if (obj_fields_prop_union1_error != null) {
58506
58509
  obj_fields_prop_union1 = obj_fields_prop_union1_error.message;
58507
58510
  }
58508
58511
  let obj_fields_prop_union2 = null;
@@ -58515,7 +58518,8 @@ function validate$7(obj, path = 'RecordInputRepresentation') {
58515
58518
  '")');
58516
58519
  }
58517
58520
  })();
58518
- if (obj_fields_prop_union2_error !== null) {
58521
+ // eslint-disable-next-line eqeqeq
58522
+ if (obj_fields_prop_union2_error != null) {
58519
58523
  obj_fields_prop_union2 = obj_fields_prop_union2_error.message;
58520
58524
  }
58521
58525
  let obj_fields_prop_union3 = null;
@@ -58528,7 +58532,8 @@ function validate$7(obj, path = 'RecordInputRepresentation') {
58528
58532
  '")');
58529
58533
  }
58530
58534
  })();
58531
- if (obj_fields_prop_union3_error !== null) {
58535
+ // eslint-disable-next-line eqeqeq
58536
+ if (obj_fields_prop_union3_error != null) {
58532
58537
  obj_fields_prop_union3 = obj_fields_prop_union3_error.message;
58533
58538
  }
58534
58539
  if (obj_fields_prop_union0 &&
@@ -67144,14 +67149,13 @@ function mergeData$E$1(existingData, newData) {
67144
67149
  };
67145
67150
  }
67146
67151
  function ingestPaginationMetadata$2$1(astNode, state, key, sink, existingData) {
67147
- var _a;
67148
67152
  const { data, luvio, store } = state;
67149
67153
  const { pageInfo: { hasNextPage, startCursor }, edges } = data;
67150
67154
  if (!hasGraphQLPaginationFields$1(data))
67151
67155
  return;
67152
67156
  const paginationKey = key + '__pagination';
67153
67157
  let existingPaginationMetadata = store.readEntry(paginationKey);
67154
- const afterArg = (_a = astNode.arguments) === null || _a === void 0 ? void 0 : _a.find(argument => { return argument.name.value === 'after'; });
67158
+ const afterArg = astNode.arguments?.find(argument => { return argument.name.value === 'after'; });
67155
67159
  const afterArgVal = evaluateArgumentValue$1(afterArg, 'StringValue', state.variables);
67156
67160
  const isPagedResponse = afterArgVal !== undefined &&
67157
67161
  existingPaginationMetadata !== undefined &&
@@ -72321,14 +72325,13 @@ function mergeData$j$1(existingData, newData) {
72321
72325
  };
72322
72326
  }
72323
72327
  function ingestPaginationMetadata$1$1(astNode, state, key, sink, existingData) {
72324
- var _a;
72325
72328
  const { data, luvio, store } = state;
72326
72329
  const { pageInfo: { hasNextPage, startCursor }, edges } = data;
72327
72330
  if (!hasGraphQLPaginationFields$1(data))
72328
72331
  return;
72329
72332
  const paginationKey = key + '__pagination';
72330
72333
  let existingPaginationMetadata = store.readEntry(paginationKey);
72331
- const afterArg = (_a = astNode.arguments) === null || _a === void 0 ? void 0 : _a.find(argument => { return argument.name.value === 'after'; });
72334
+ const afterArg = astNode.arguments?.find(argument => { return argument.name.value === 'after'; });
72332
72335
  const afterArgVal = evaluateArgumentValue$1(afterArg, 'StringValue', state.variables);
72333
72336
  const isPagedResponse = afterArgVal !== undefined &&
72334
72337
  existingPaginationMetadata !== undefined &&
@@ -76260,14 +76263,13 @@ function mergeData$3$1(existingData, newData) {
76260
76263
  };
76261
76264
  }
76262
76265
  function ingestPaginationMetadata$4(astNode, state, key, sink, existingData) {
76263
- var _a;
76264
76266
  const { data, luvio, store } = state;
76265
76267
  const { pageInfo: { hasNextPage, startCursor }, edges } = data;
76266
76268
  if (!hasGraphQLPaginationFields$1(data))
76267
76269
  return;
76268
76270
  const paginationKey = key + '__pagination';
76269
76271
  let existingPaginationMetadata = store.readEntry(paginationKey);
76270
- const afterArg = (_a = astNode.arguments) === null || _a === void 0 ? void 0 : _a.find(argument => { return argument.name.value === 'after'; });
76272
+ const afterArg = astNode.arguments?.find(argument => { return argument.name.value === 'after'; });
76271
76273
  const afterArgVal = evaluateArgumentValue$1(afterArg, 'StringValue', state.variables);
76272
76274
  const isPagedResponse = afterArgVal !== undefined &&
76273
76275
  existingPaginationMetadata !== undefined &&
@@ -77651,8 +77653,7 @@ function applyToSelection$4$1(selection, directive, variables) {
77651
77653
  }
77652
77654
 
77653
77655
  function applyToSelection$3$1(selection, directive, variables) {
77654
- var _a;
77655
- const ifArg = (_a = directive.arguments) === null || _a === void 0 ? void 0 : _a.find(argument => argument.name.value === "if");
77656
+ const ifArg = directive.arguments?.find(argument => argument.name.value === "if");
77656
77657
  if (ifArg && ifArg.value) {
77657
77658
  if (ifArg.value.kind === "BooleanValue") {
77658
77659
  return ifArg.value.value ? selection : undefined;
@@ -77665,8 +77666,7 @@ function applyToSelection$3$1(selection, directive, variables) {
77665
77666
  }
77666
77667
 
77667
77668
  function applyToSelection$2$1(selection, directive, variables) {
77668
- var _a;
77669
- const ifArg = (_a = directive.arguments) === null || _a === void 0 ? void 0 : _a.find(argument => argument.name.value === "if");
77669
+ const ifArg = directive.arguments?.find(argument => argument.name.value === "if");
77670
77670
  if (ifArg && ifArg.value) {
77671
77671
  if (ifArg.value.kind === "BooleanValue") {
77672
77672
  return ifArg.value.value ? undefined : selection;
@@ -77840,7 +77840,7 @@ function injectSelectionSet$1(selectionSetNode, queryTransformHelper, fragmentMa
77840
77840
  selections: queryTransformHelper.getMinimumSelections()
77841
77841
  };
77842
77842
  const mergedSelections = mergeSelectionSets$1(selectionSetNode, minimumSelectionSet);
77843
- mergedSelections === null || mergedSelections === void 0 ? void 0 : mergedSelections.selections.forEach(selection => {
77843
+ mergedSelections?.selections.forEach(selection => {
77844
77844
  if (selection.kind === 'Field') {
77845
77845
  const fieldType = queryTransformHelper.getFieldType(selection);
77846
77846
  const fieldTransformHelper = fieldType === undefined ? undefined : getQueryTransformerForType$1(fieldType.typename);
@@ -78416,13 +78416,12 @@ function evaluateArgumentValue$1(argumentNode, expectedKind, variables) {
78416
78416
  }
78417
78417
  // Shared export for getting the offset of the current page in the edges array
78418
78418
  function getArrayOffsetForPage$1(state, node, key) {
78419
- var _a;
78420
78419
  const { variables, data, store } = state;
78421
78420
  // if we have pagination metadata, see if we can locate either the start or
78422
78421
  // after cursor in it to determine the correct index to use for the fullPath
78423
78422
  const paginationKey = key + '__pagination';
78424
78423
  let existingPaginationMetadata = store.readEntry(paginationKey);
78425
- const afterArg = (_a = node.arguments) === null || _a === void 0 ? void 0 : _a.find(argument => { return argument.name.value === 'after'; });
78424
+ const afterArg = node.arguments?.find(argument => { return argument.name.value === 'after'; });
78426
78425
  const afterArgVal = evaluateArgumentValue$1(afterArg, 'StringValue', variables);
78427
78426
  if (existingPaginationMetadata !== undefined) {
78428
78427
  // if the starting cursor for current page exists in the existing metadata use that as offset
@@ -78552,8 +78551,7 @@ function augmentDefaultVariableValues$1(variableDefinitions, variables) {
78552
78551
  });
78553
78552
  }
78554
78553
  function selectCalculateSink$1(sink, field, buildSelectionForNodeFn, source, reader, variables, fragments, parentRecordId) {
78555
- var _a;
78556
- (_a = field.selectionSet) === null || _a === void 0 ? void 0 : _a.selections.forEach((sel) => {
78554
+ field.selectionSet?.selections.forEach((sel) => {
78557
78555
  const builtSelection = buildSelectionForNodeFn(source, reader, field, sel, variables, fragments, parentRecordId);
78558
78556
  if (builtSelection !== undefined) {
78559
78557
  deepMerge$1(sink, builtSelection);
@@ -78562,7 +78560,6 @@ function selectCalculateSink$1(sink, field, buildSelectionForNodeFn, source, rea
78562
78560
  return sink;
78563
78561
  }
78564
78562
  function selectTypeLinkWithPagination$1(resolvedLink, sel, fieldData, reader, key, sink, variables, fragments, selectFn) {
78565
- var _a, _b, _c, _d, _e;
78566
78563
  const source = resolvedLink.data.data;
78567
78564
  const parentRecordId = resolvedLink.recordId;
78568
78565
  const totalEdges = source.edges !== undefined ? source.edges.length : 0;
@@ -78572,10 +78569,10 @@ function selectTypeLinkWithPagination$1(resolvedLink, sel, fieldData, reader, ke
78572
78569
  reader.markMissing();
78573
78570
  return;
78574
78571
  }
78575
- const firstArg = (_a = sel.arguments) === null || _a === void 0 ? void 0 : _a.find(argument => { return argument.name.value === 'first'; });
78572
+ const firstArg = sel.arguments?.find(argument => { return argument.name.value === 'first'; });
78576
78573
  const firstArgVal = evaluateArgumentValue$1(firstArg, 'IntValue', variables);
78577
78574
  const pageSize = firstArgVal !== undefined ? firstArgVal : totalEdges;
78578
- const afterArg = (_b = sel.arguments) === null || _b === void 0 ? void 0 : _b.find(argument => { return argument.name.value === 'after'; });
78575
+ const afterArg = sel.arguments?.find(argument => { return argument.name.value === 'after'; });
78579
78576
  const afterArgVal = evaluateArgumentValue$1(afterArg, 'StringValue', variables);
78580
78577
  const paginationParams = {
78581
78578
  pageSize: parseInt(pageSize, 10),
@@ -78625,7 +78622,7 @@ function selectTypeLinkWithPagination$1(resolvedLink, sel, fieldData, reader, ke
78625
78622
  reader.markMissingLink(fieldData.__ref);
78626
78623
  reader.markMissing();
78627
78624
  // optimize pagination when "first" and "after" args are part of the variable
78628
- if (((_c = firstArg === null || firstArg === void 0 ? void 0 : firstArg.value) === null || _c === void 0 ? void 0 : _c.kind) === 'Variable' && ((_d = afterArg === null || afterArg === void 0 ? void 0 : afterArg.value) === null || _d === void 0 ? void 0 : _d.kind) === 'Variable') {
78625
+ if (firstArg?.value?.kind === 'Variable' && afterArg?.value?.kind === 'Variable') {
78629
78626
  optimizePagination$1(metadata, firstArg.value.name.value, afterArg.value.name.value, variables);
78630
78627
  }
78631
78628
  return;
@@ -78641,9 +78638,9 @@ function selectTypeLinkWithPagination$1(resolvedLink, sel, fieldData, reader, ke
78641
78638
  };
78642
78639
  reader.markSeenId(parentRecordId);
78643
78640
  const result = selectFn(sel, variables, fragments)(paginatedData, reader, parentRecordId);
78644
- const pageInfo = createPageInfo$1(result === null || result === void 0 ? void 0 : result.edges, startOffset, endOffset, maxOffset, metadata);
78641
+ const pageInfo = createPageInfo$1(result?.edges, startOffset, endOffset, maxOffset, metadata);
78645
78642
  if (pageInfo !== undefined) {
78646
- const selectedPageInfo = selectPageInfo$1((_e = sel.selectionSet) === null || _e === void 0 ? void 0 : _e.selections, fragments, pageInfo);
78643
+ const selectedPageInfo = selectPageInfo$1(sel.selectionSet?.selections, fragments, pageInfo);
78647
78644
  if (selectedPageInfo !== undefined) {
78648
78645
  reader.assignNonScalar(result, 'pageInfo', selectedPageInfo);
78649
78646
  }
@@ -78651,11 +78648,10 @@ function selectTypeLinkWithPagination$1(resolvedLink, sel, fieldData, reader, ke
78651
78648
  reader.assignNonScalar(sink, key, result);
78652
78649
  }
78653
78650
  function selectPageInfo$1(selections, fragments, pageInfo) {
78654
- var _a;
78655
78651
  const pageInfoSelection = getSelectionNode$1(selections, fragments, 'pageInfo');
78656
78652
  if (pageInfo === undefined || pageInfoSelection === undefined || pageInfoSelection.kind !== 'Field')
78657
78653
  return undefined;
78658
- const pageInfoSelections = (_a = pageInfoSelection.selectionSet) === null || _a === void 0 ? void 0 : _a.selections;
78654
+ const pageInfoSelections = pageInfoSelection.selectionSet?.selections;
78659
78655
  const selectedPageInfo = Object.assign({}, pageInfo);
78660
78656
  Object.keys(pageInfo).forEach((fieldName) => {
78661
78657
  if (getSelectionNode$1(pageInfoSelections, fragments, fieldName) === undefined) {
@@ -78674,7 +78670,7 @@ function getSelectionNode$1(selections, fragments, fieldName) {
78674
78670
  }
78675
78671
  else if (selection.kind === 'FragmentSpread') {
78676
78672
  const fragment = fragments[selection.name.value];
78677
- return getSelectionNode$1(fragment === null || fragment === void 0 ? void 0 : fragment.selectionSet.selections, fragments, fieldName);
78673
+ return getSelectionNode$1(fragment?.selectionSet.selections, fragments, fieldName);
78678
78674
  }
78679
78675
  else if (selection.kind === 'InlineFragment') {
78680
78676
  return getSelectionNode$1(selection.selectionSet.selections, fragments, fieldName);
@@ -86716,8 +86712,7 @@ const MAX_ID_CHUNK_LENGTH = 100;
86716
86712
  * @returns
86717
86713
  */
86718
86714
  function batchingGetRecordsAdapterFactory(luvio) {
86719
- var _a;
86720
- const getRecordsAdapter = ((_a = configurationForRestAdapters$2.getRecordsAdapterFactory()) !== null && _a !== void 0 ? _a : getRecordsAdapterFactory$1)(luvio);
86715
+ const getRecordsAdapter = (configurationForRestAdapters$2.getRecordsAdapterFactory() ?? getRecordsAdapterFactory$1)(luvio);
86721
86716
  const batchGetRecords = (config, requestContext) => {
86722
86717
  const seenRecords = new StoreKeySet();
86723
86718
  const chunks = chunkConfig(config);
@@ -86764,8 +86759,7 @@ function chunkConfig(config) {
86764
86759
 
86765
86760
  function getCanonicalIdFunction(luvio) {
86766
86761
  return (id) => {
86767
- var _a;
86768
- return ((_a = extractRecordIdFromStoreKey$1(luvio.storeGetCanonicalKey(RECORD_ID_PREFIX$1 + id))) !== null && _a !== void 0 ? _a : id);
86762
+ return (extractRecordIdFromStoreKey$1(luvio.storeGetCanonicalKey(RECORD_ID_PREFIX$1 + id)) ?? id);
86769
86763
  };
86770
86764
  }
86771
86765
 
@@ -87064,7 +87058,7 @@ function draftAwareGraphQLAdapterFactory(userId, objectInfoService, store, luvio
87064
87058
  data: queryInstrumentation,
87065
87059
  });
87066
87060
  }
87067
- catch (_a) {
87061
+ catch {
87068
87062
  // ignore errors instrumenting limits
87069
87063
  }
87070
87064
  try {
@@ -87085,18 +87079,15 @@ function draftAwareGraphQLAdapterFactory(userId, objectInfoService, store, luvio
87085
87079
  }
87086
87080
  catch (throwable) {
87087
87081
  const error = throwable;
87082
+ const message = error instanceof Error ? error.message : String(error);
87088
87083
  return {
87089
87084
  data: undefined,
87090
87085
  state: 'Error',
87091
87086
  error: {
87092
- status: 500,
87093
- statusText: 'SYNTHETIC_FIELD_INJECTION_ERROR',
87094
- body: {
87095
- message: error.message,
87087
+ errorType: 'adapterError',
87088
+ error: {
87089
+ message,
87096
87090
  },
87097
- errorType: 'fetchResponse',
87098
- headers: {},
87099
- ok: false,
87100
87091
  },
87101
87092
  };
87102
87093
  }
@@ -87137,19 +87128,16 @@ function draftAwareGraphQLAdapterFactory(userId, objectInfoService, store, luvio
87137
87128
  }
87138
87129
  catch (throwable) {
87139
87130
  const error = throwable;
87131
+ const message = error instanceof Error ? error.message : String(error);
87140
87132
  return {
87141
87133
  ...nonEvaluatedSnapshot,
87142
87134
  data: undefined,
87143
87135
  state: 'Error',
87144
87136
  error: {
87145
- status: 500,
87146
- statusText: 'LOCAL_EVALUATION_ERROR',
87147
- body: {
87148
- message: error.message,
87137
+ errorType: 'adapterError',
87138
+ error: {
87139
+ message,
87149
87140
  },
87150
- errorType: 'fetchResponse',
87151
- headers: {},
87152
- ok: false,
87153
87141
  },
87154
87142
  };
87155
87143
  }
@@ -89287,8 +89275,7 @@ class NimbusSqliteStore {
89287
89275
  };
89288
89276
  }
89289
89277
  getTable(segment) {
89290
- var _a;
89291
- return (_a = this.dataTableMap[segment]) !== null && _a !== void 0 ? _a : this.internalDataTable;
89278
+ return this.dataTableMap[segment] ?? this.internalDataTable;
89292
89279
  }
89293
89280
  idsToDeleteOperation(entryIds, segment) {
89294
89281
  const table = this.getTable(segment);
@@ -89927,10 +89914,9 @@ const DEFAULT_BATCH_SIZE = 500;
89927
89914
  const DEFAULT_CONCURRENCY = 6;
89928
89915
  class PrimingSession extends EventEmitter {
89929
89916
  constructor(config) {
89930
- var _a, _b;
89931
89917
  super();
89932
- this.batchSize = (_a = config.batchSize) !== null && _a !== void 0 ? _a : DEFAULT_BATCH_SIZE;
89933
- this.concurrency = (_b = config.concurrency) !== null && _b !== void 0 ? _b : DEFAULT_CONCURRENCY;
89918
+ this.batchSize = config.batchSize ?? DEFAULT_BATCH_SIZE;
89919
+ this.concurrency = config.concurrency ?? DEFAULT_CONCURRENCY;
89934
89920
  this.recordLoader = config.recordLoader;
89935
89921
  this.recordIngestor = config.recordIngestor;
89936
89922
  this.objectInfoLoader = config.objectInfoLoader;
@@ -90164,7 +90150,7 @@ class RecordIngestor {
90164
90150
  const ttlOverride = await luvio.storeGetTTLOverride(keyPrefix$3, RepresentationType$V);
90165
90151
  const metadata = {
90166
90152
  ingestionTimestamp,
90167
- expirationTimestamp: (ttlOverride !== null && ttlOverride !== void 0 ? ttlOverride : TTL$z) + ingestionTimestamp,
90153
+ expirationTimestamp: (ttlOverride ?? TTL$z) + ingestionTimestamp,
90168
90154
  namespace: keyPrefix$3,
90169
90155
  representationName: RepresentationType$V,
90170
90156
  metadataVersion: DURABLE_METADATA_VERSION,
@@ -91236,12 +91222,11 @@ function buildNetworkSnapshot$1$1(luvio, config, options) {
91236
91222
  const request = createResourceRequest$1$1(resourceParams);
91237
91223
  return luvio.dispatchResourceRequest(request, options)
91238
91224
  .then((response) => {
91239
- var _a, _b;
91240
- const graphqlErrors = (_a = response === null || response === void 0 ? void 0 : response.body) === null || _a === void 0 ? void 0 : _a.errors;
91225
+ const graphqlErrors = response?.body?.errors;
91241
91226
  if ((graphqlErrors || []).length === 0) {
91242
91227
  return response;
91243
91228
  }
91244
- return Promise.reject({ errorType: 'adapterError', error: (_b = response === null || response === void 0 ? void 0 : response.body) === null || _b === void 0 ? void 0 : _b.errors });
91229
+ return Promise.reject({ errorType: 'adapterError', error: response?.body?.errors });
91245
91230
  })
91246
91231
  .then((response) => {
91247
91232
  return luvio.handleSuccessResponse(() => onFetchResponseSuccess$1$1(luvio, config, resourceParams, response), () => {
@@ -92511,7 +92496,7 @@ register$1({
92511
92496
  id: '@salesforce/lds-network-adapter',
92512
92497
  instrument: instrument$2,
92513
92498
  });
92514
- // version: 1.321.0-1fd3fba1c4
92499
+ // version: 1.322.0-6aa042602a
92515
92500
 
92516
92501
  const { create: create$2, keys: keys$2 } = Object;
92517
92502
  const { stringify, parse } = JSON;
@@ -93097,7 +93082,7 @@ function createPageInfo(edges, startOffset, endOffset, maxOffset, metadata) {
93097
93082
  if (edges === undefined) {
93098
93083
  return undefined;
93099
93084
  }
93100
- const listIsIncomplete = ((metadata === null || metadata === void 0 ? void 0 : metadata.__END__) === undefined);
93085
+ const listIsIncomplete = (metadata?.__END__ === undefined);
93101
93086
  const hasNextPage = listIsIncomplete || (endOffset !== undefined && maxOffset !== undefined && (endOffset - 1 < maxOffset));
93102
93087
  const hasPreviousPage = startOffset !== undefined && startOffset > 0;
93103
93088
  let startCursor = null;
@@ -93133,7 +93118,7 @@ function findMaxOffset(metadata) {
93133
93118
  }
93134
93119
  // end is included in the above case.
93135
93120
  return Object.values(metadata)
93136
- .reduce((acc, value) => Math.max(value !== null && value !== void 0 ? value : -1, acc), -1);
93121
+ .reduce((acc, value) => Math.max(value ?? -1, acc), -1);
93137
93122
  }
93138
93123
  function getPageTokenAndOffset(paginationMetadata, token) {
93139
93124
  if (token === undefined) {
@@ -99543,14 +99528,13 @@ function mergeData$O(existingData, newData) {
99543
99528
  };
99544
99529
  }
99545
99530
  function ingestPaginationMetadata$3(astNode, state, key, sink, existingData) {
99546
- var _a;
99547
99531
  const { data, luvio, store } = state;
99548
99532
  const { pageInfo: { hasNextPage, startCursor }, edges } = data;
99549
99533
  if (!hasGraphQLPaginationFields(data))
99550
99534
  return;
99551
99535
  const paginationKey = key + '__pagination';
99552
99536
  let existingPaginationMetadata = store.readEntry(paginationKey);
99553
- const afterArg = (_a = astNode.arguments) === null || _a === void 0 ? void 0 : _a.find(argument => { return argument.name.value === 'after'; });
99537
+ const afterArg = astNode.arguments?.find(argument => { return argument.name.value === 'after'; });
99554
99538
  const afterArgVal = evaluateArgumentValue(afterArg, 'StringValue', state.variables);
99555
99539
  const isPagedResponse = afterArgVal !== undefined &&
99556
99540
  existingPaginationMetadata !== undefined &&
@@ -104800,14 +104784,13 @@ function mergeData$t(existingData, newData) {
104800
104784
  };
104801
104785
  }
104802
104786
  function ingestPaginationMetadata$2(astNode, state, key, sink, existingData) {
104803
- var _a;
104804
104787
  const { data, luvio, store } = state;
104805
104788
  const { pageInfo: { hasNextPage, startCursor }, edges } = data;
104806
104789
  if (!hasGraphQLPaginationFields(data))
104807
104790
  return;
104808
104791
  const paginationKey = key + '__pagination';
104809
104792
  let existingPaginationMetadata = store.readEntry(paginationKey);
104810
- const afterArg = (_a = astNode.arguments) === null || _a === void 0 ? void 0 : _a.find(argument => { return argument.name.value === 'after'; });
104793
+ const afterArg = astNode.arguments?.find(argument => { return argument.name.value === 'after'; });
104811
104794
  const afterArgVal = evaluateArgumentValue(afterArg, 'StringValue', state.variables);
104812
104795
  const isPagedResponse = afterArgVal !== undefined &&
104813
104796
  existingPaginationMetadata !== undefined &&
@@ -109709,14 +109692,13 @@ function mergeData$8(existingData, newData) {
109709
109692
  };
109710
109693
  }
109711
109694
  function ingestPaginationMetadata$1(astNode, state, key, sink, existingData) {
109712
- var _a;
109713
109695
  const { data, luvio, store } = state;
109714
109696
  const { pageInfo: { hasNextPage, startCursor }, edges } = data;
109715
109697
  if (!hasGraphQLPaginationFields(data))
109716
109698
  return;
109717
109699
  const paginationKey = key + '__pagination';
109718
109700
  let existingPaginationMetadata = store.readEntry(paginationKey);
109719
- const afterArg = (_a = astNode.arguments) === null || _a === void 0 ? void 0 : _a.find(argument => { return argument.name.value === 'after'; });
109701
+ const afterArg = astNode.arguments?.find(argument => { return argument.name.value === 'after'; });
109720
109702
  const afterArgVal = evaluateArgumentValue(afterArg, 'StringValue', state.variables);
109721
109703
  const isPagedResponse = afterArgVal !== undefined &&
109722
109704
  existingPaginationMetadata !== undefined &&
@@ -111059,14 +111041,13 @@ function mergeData$3(existingData, newData) {
111059
111041
  };
111060
111042
  }
111061
111043
  function ingestPaginationMetadata(astNode, state, key, sink, existingData) {
111062
- var _a;
111063
111044
  const { data, luvio, store } = state;
111064
111045
  const { pageInfo: { hasNextPage, startCursor }, edges } = data;
111065
111046
  if (!hasGraphQLPaginationFields(data))
111066
111047
  return;
111067
111048
  const paginationKey = key + '__pagination';
111068
111049
  let existingPaginationMetadata = store.readEntry(paginationKey);
111069
- const afterArg = (_a = astNode.arguments) === null || _a === void 0 ? void 0 : _a.find(argument => { return argument.name.value === 'after'; });
111050
+ const afterArg = astNode.arguments?.find(argument => { return argument.name.value === 'after'; });
111070
111051
  const afterArgVal = evaluateArgumentValue(afterArg, 'StringValue', state.variables);
111071
111052
  const isPagedResponse = afterArgVal !== undefined &&
111072
111053
  existingPaginationMetadata !== undefined &&
@@ -111307,6 +111288,23 @@ function getInContextFragmentType$d(fragment, fragmentMap) {
111307
111288
  return sharedGetFragmentType(fragment, fragmentMap);
111308
111289
  }
111309
111290
 
111291
+ function getFieldType$b(field) {
111292
+ switch (field.name.value) {
111293
+ case '__typename': {
111294
+ return {
111295
+ isArray: false,
111296
+ typename: 'String',
111297
+ };
111298
+ }
111299
+ default: {
111300
+ return {
111301
+ isArray: false,
111302
+ typename: 'Setup__SetupAggregateConnection',
111303
+ };
111304
+ }
111305
+ }
111306
+ }
111307
+
111310
111308
  const name$2 = 'Setup__SetupQueryAggregate';
111311
111309
  const VERSION$a = '0592284764c8e58016880e291b9ffb64';
111312
111310
  function keyBuilder$6(luvio, path, data) {
@@ -111424,24 +111422,6 @@ function getTypeCacheKeys$3(cacheKeySink, astNode, state) {
111424
111422
  }
111425
111423
  // Deal with mapped types' cache keys
111426
111424
  }
111427
- function getFieldType$b(field) {
111428
- switch (field.name.value) {
111429
- case '__typename': {
111430
- return {
111431
- isArray: false,
111432
- typename: 'String'
111433
- };
111434
- }
111435
- case 'recordQueryAggregate': {
111436
- return {
111437
- isArray: false,
111438
- typename: 'Setup__SetupAggregateConnection'
111439
- };
111440
- }
111441
- default:
111442
- return undefined;
111443
- }
111444
- }
111445
111425
  function ingestFieldByType$2(typename, parentKey, requestedField, sink, fieldKey, fieldData, state) {
111446
111426
  // TODO: add validation logic to only allow nullable fields to be null in the future
111447
111427
  if (fieldData === null) {
@@ -112479,8 +112459,7 @@ function applyToSelection$4(selection, directive, variables) {
112479
112459
  }
112480
112460
 
112481
112461
  function applyToSelection$3(selection, directive, variables) {
112482
- var _a;
112483
- const ifArg = (_a = directive.arguments) === null || _a === void 0 ? void 0 : _a.find(argument => argument.name.value === "if");
112462
+ const ifArg = directive.arguments?.find(argument => argument.name.value === "if");
112484
112463
  if (ifArg && ifArg.value) {
112485
112464
  if (ifArg.value.kind === "BooleanValue") {
112486
112465
  return ifArg.value.value ? selection : undefined;
@@ -112493,8 +112472,7 @@ function applyToSelection$3(selection, directive, variables) {
112493
112472
  }
112494
112473
 
112495
112474
  function applyToSelection$2(selection, directive, variables) {
112496
- var _a;
112497
- const ifArg = (_a = directive.arguments) === null || _a === void 0 ? void 0 : _a.find(argument => argument.name.value === "if");
112475
+ const ifArg = directive.arguments?.find(argument => argument.name.value === "if");
112498
112476
  if (ifArg && ifArg.value) {
112499
112477
  if (ifArg.value.kind === "BooleanValue") {
112500
112478
  return ifArg.value.value ? undefined : selection;
@@ -112668,7 +112646,7 @@ function injectSelectionSet(selectionSetNode, queryTransformHelper, fragmentMap)
112668
112646
  selections: queryTransformHelper.getMinimumSelections()
112669
112647
  };
112670
112648
  const mergedSelections = mergeSelectionSets(selectionSetNode, minimumSelectionSet);
112671
- mergedSelections === null || mergedSelections === void 0 ? void 0 : mergedSelections.selections.forEach(selection => {
112649
+ mergedSelections?.selections.forEach(selection => {
112672
112650
  if (selection.kind === 'Field') {
112673
112651
  const fieldType = queryTransformHelper.getFieldType(selection);
112674
112652
  const fieldTransformHelper = fieldType === undefined ? undefined : getQueryTransformerForType(fieldType.typename);
@@ -113305,13 +113283,12 @@ function evaluateArgumentValue(argumentNode, expectedKind, variables) {
113305
113283
  }
113306
113284
  // Shared export for getting the offset of the current page in the edges array
113307
113285
  function getArrayOffsetForPage(state, node, key) {
113308
- var _a;
113309
113286
  const { variables, data, store } = state;
113310
113287
  // if we have pagination metadata, see if we can locate either the start or
113311
113288
  // after cursor in it to determine the correct index to use for the fullPath
113312
113289
  const paginationKey = key + '__pagination';
113313
113290
  let existingPaginationMetadata = store.readEntry(paginationKey);
113314
- const afterArg = (_a = node.arguments) === null || _a === void 0 ? void 0 : _a.find(argument => { return argument.name.value === 'after'; });
113291
+ const afterArg = node.arguments?.find(argument => { return argument.name.value === 'after'; });
113315
113292
  const afterArgVal = evaluateArgumentValue(afterArg, 'StringValue', variables);
113316
113293
  if (existingPaginationMetadata !== undefined) {
113317
113294
  // if the starting cursor for current page exists in the existing metadata use that as offset
@@ -113441,8 +113418,7 @@ function augmentDefaultVariableValues(variableDefinitions, variables) {
113441
113418
  });
113442
113419
  }
113443
113420
  function selectCalculateSink(sink, field, buildSelectionForNodeFn, source, reader, variables, fragments, parentRecordId) {
113444
- var _a;
113445
- (_a = field.selectionSet) === null || _a === void 0 ? void 0 : _a.selections.forEach((sel) => {
113421
+ field.selectionSet?.selections.forEach((sel) => {
113446
113422
  const builtSelection = buildSelectionForNodeFn(source, reader, field, sel, variables, fragments, parentRecordId);
113447
113423
  if (builtSelection !== undefined) {
113448
113424
  deepMerge(sink, builtSelection);
@@ -113451,7 +113427,6 @@ function selectCalculateSink(sink, field, buildSelectionForNodeFn, source, reade
113451
113427
  return sink;
113452
113428
  }
113453
113429
  function selectTypeLinkWithPagination(resolvedLink, sel, fieldData, reader, key, sink, variables, fragments, selectFn) {
113454
- var _a, _b, _c, _d, _e;
113455
113430
  const source = resolvedLink.data.data;
113456
113431
  const parentRecordId = resolvedLink.recordId;
113457
113432
  const totalEdges = source.edges !== undefined ? source.edges.length : 0;
@@ -113461,10 +113436,10 @@ function selectTypeLinkWithPagination(resolvedLink, sel, fieldData, reader, key,
113461
113436
  reader.markMissing();
113462
113437
  return;
113463
113438
  }
113464
- const firstArg = (_a = sel.arguments) === null || _a === void 0 ? void 0 : _a.find(argument => { return argument.name.value === 'first'; });
113439
+ const firstArg = sel.arguments?.find(argument => { return argument.name.value === 'first'; });
113465
113440
  const firstArgVal = evaluateArgumentValue(firstArg, 'IntValue', variables);
113466
113441
  const pageSize = firstArgVal !== undefined ? firstArgVal : totalEdges;
113467
- const afterArg = (_b = sel.arguments) === null || _b === void 0 ? void 0 : _b.find(argument => { return argument.name.value === 'after'; });
113442
+ const afterArg = sel.arguments?.find(argument => { return argument.name.value === 'after'; });
113468
113443
  const afterArgVal = evaluateArgumentValue(afterArg, 'StringValue', variables);
113469
113444
  const paginationParams = {
113470
113445
  pageSize: parseInt(pageSize, 10),
@@ -113515,7 +113490,7 @@ function selectTypeLinkWithPagination(resolvedLink, sel, fieldData, reader, key,
113515
113490
  reader.markMissingLink(fieldData.__ref);
113516
113491
  reader.markMissing();
113517
113492
  // optimize pagination when "first" and "after" args are part of the variable
113518
- if (((_c = firstArg === null || firstArg === void 0 ? void 0 : firstArg.value) === null || _c === void 0 ? void 0 : _c.kind) === 'Variable' && ((_d = afterArg === null || afterArg === void 0 ? void 0 : afterArg.value) === null || _d === void 0 ? void 0 : _d.kind) === 'Variable') {
113493
+ if (firstArg?.value?.kind === 'Variable' && afterArg?.value?.kind === 'Variable') {
113519
113494
  optimizePagination(metadata, firstArg.value.name.value, afterArg.value.name.value, variables);
113520
113495
  }
113521
113496
  return;
@@ -113531,9 +113506,9 @@ function selectTypeLinkWithPagination(resolvedLink, sel, fieldData, reader, key,
113531
113506
  };
113532
113507
  reader.markSeenId(parentRecordId);
113533
113508
  const result = selectFn(sel, variables, fragments)(paginatedData, reader, parentRecordId);
113534
- const pageInfo = createPageInfo(result === null || result === void 0 ? void 0 : result.edges, startOffset, endOffset, maxOffset, metadata);
113509
+ const pageInfo = createPageInfo(result?.edges, startOffset, endOffset, maxOffset, metadata);
113535
113510
  if (pageInfo !== undefined) {
113536
- const selectedPageInfo = selectPageInfo((_e = sel.selectionSet) === null || _e === void 0 ? void 0 : _e.selections, fragments, pageInfo);
113511
+ const selectedPageInfo = selectPageInfo(sel.selectionSet?.selections, fragments, pageInfo);
113537
113512
  if (selectedPageInfo !== undefined) {
113538
113513
  reader.assignNonScalar(result, 'pageInfo', selectedPageInfo);
113539
113514
  }
@@ -113541,11 +113516,10 @@ function selectTypeLinkWithPagination(resolvedLink, sel, fieldData, reader, key,
113541
113516
  reader.assignNonScalar(sink, key, result);
113542
113517
  }
113543
113518
  function selectPageInfo(selections, fragments, pageInfo) {
113544
- var _a;
113545
113519
  const pageInfoSelection = getSelectionNode(selections, fragments, 'pageInfo');
113546
113520
  if (pageInfo === undefined || pageInfoSelection === undefined || pageInfoSelection.kind !== 'Field')
113547
113521
  return undefined;
113548
- const pageInfoSelections = (_a = pageInfoSelection.selectionSet) === null || _a === void 0 ? void 0 : _a.selections;
113522
+ const pageInfoSelections = pageInfoSelection.selectionSet?.selections;
113549
113523
  const selectedPageInfo = Object.assign({}, pageInfo);
113550
113524
  Object.keys(pageInfo).forEach((fieldName) => {
113551
113525
  if (getSelectionNode(pageInfoSelections, fragments, fieldName) === undefined) {
@@ -113564,7 +113538,7 @@ function getSelectionNode(selections, fragments, fieldName) {
113564
113538
  }
113565
113539
  else if (selection.kind === 'FragmentSpread') {
113566
113540
  const fragment = fragments[selection.name.value];
113567
- return getSelectionNode(fragment === null || fragment === void 0 ? void 0 : fragment.selectionSet.selections, fragments, fieldName);
113541
+ return getSelectionNode(fragment?.selectionSet.selections, fragments, fieldName);
113568
113542
  }
113569
113543
  else if (selection.kind === 'InlineFragment') {
113570
113544
  return getSelectionNode(selection.selectionSet.selections, fragments, fieldName);
@@ -113853,12 +113827,11 @@ function buildNetworkSnapshot$1(luvio, config, options) {
113853
113827
  const request = createResourceRequest$1(resourceParams);
113854
113828
  return luvio.dispatchResourceRequest(request, options)
113855
113829
  .then((response) => {
113856
- var _a, _b;
113857
- const graphqlErrors = (_a = response === null || response === void 0 ? void 0 : response.body) === null || _a === void 0 ? void 0 : _a.errors;
113830
+ const graphqlErrors = response?.body?.errors;
113858
113831
  if ((graphqlErrors || []).length === 0) {
113859
113832
  return response;
113860
113833
  }
113861
- return Promise.reject({ errorType: 'adapterError', error: (_b = response === null || response === void 0 ? void 0 : response.body) === null || _b === void 0 ? void 0 : _b.errors });
113834
+ return Promise.reject({ errorType: 'adapterError', error: response?.body?.errors });
113862
113835
  })
113863
113836
  .then((response) => {
113864
113837
  return luvio.handleSuccessResponse(() => onFetchResponseSuccess$1(luvio, config, resourceParams, response), () => {
@@ -115090,7 +115063,7 @@ register$1({
115090
115063
  configuration: { ...configurationForGraphQLAdapters$1 },
115091
115064
  instrument: instrument$1,
115092
115065
  });
115093
- // version: 1.321.0-40847d67a8
115066
+ // version: 1.322.0-87f682c9f3
115094
115067
 
115095
115068
  // On core the unstable adapters are re-exported with different names,
115096
115069
  // we want to match them here.
@@ -115242,7 +115215,7 @@ withDefaultLuvio((luvio) => {
115242
115215
  unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
115243
115216
  graphQLImperative = ldsAdapter;
115244
115217
  });
115245
- // version: 1.321.0-40847d67a8
115218
+ // version: 1.322.0-87f682c9f3
115246
115219
 
115247
115220
  var gqlApi = /*#__PURE__*/Object.freeze({
115248
115221
  __proto__: null,
@@ -115998,7 +115971,7 @@ const callbacks$1 = [];
115998
115971
  function register(r) {
115999
115972
  callbacks$1.forEach((callback) => callback(r));
116000
115973
  }
116001
- // version: 1.321.0-1fd3fba1c4
115974
+ // version: 1.322.0-6aa042602a
116002
115975
 
116003
115976
  /**
116004
115977
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -117061,4 +117034,4 @@ const { luvio } = getRuntime();
117061
117034
  setDefaultLuvio({ luvio });
117062
117035
 
117063
117036
  export { createPrimingSession, draftManager, draftQueue, evictCacheRecordsByIds, evictExpiredCacheEntries, executeAdapter, executeMutatingAdapter, getImperativeAdapterNames, invokeAdapter, invokeAdapterWithDraftToMerge, invokeAdapterWithDraftToReplace, invokeAdapterWithMetadata, nimbusDraftQueue, registerReportObserver, setMetadataTTL, setUiApiRecordTTL, stopEviction, subscribeToAdapter };
117064
- // version: 1.321.0-1fd3fba1c4
117037
+ // version: 1.322.0-6aa042602a