@salesforce/lds-worker-api 1.335.0 → 1.336.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.
|
@@ -1119,4 +1119,4 @@ if (process.env.NODE_ENV !== 'production') {
|
|
|
1119
1119
|
}
|
|
1120
1120
|
|
|
1121
1121
|
export { createPrimingSession, draftManager, draftQueue, evictCacheRecordsByIds, evictExpiredCacheEntries, executeAdapter, executeMutatingAdapter, getImperativeAdapterNames, invokeAdapter, invokeAdapterWithDraftToMerge, invokeAdapterWithDraftToReplace, invokeAdapterWithMetadata, nimbusDraftQueue, setMetadataTTL, setUiApiRecordTTL, stopEviction, subscribeToAdapter };
|
|
1122
|
-
// version: 1.
|
|
1122
|
+
// version: 1.336.0-7d2c781c74
|
|
@@ -4265,7 +4265,7 @@ function withDefaultLuvio(callback) {
|
|
|
4265
4265
|
}
|
|
4266
4266
|
callbacks.push(callback);
|
|
4267
4267
|
}
|
|
4268
|
-
// version: 1.
|
|
4268
|
+
// version: 1.336.0-7d2c781c74
|
|
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.
|
|
5216
|
+
// version: 1.336.0-7d2c781c74
|
|
5217
5217
|
|
|
5218
5218
|
/**
|
|
5219
5219
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -5379,6 +5379,10 @@ let oneStoreGetObjectInfosAdapter$3 = undefined;
|
|
|
5379
5379
|
* Determines when to include PDL strategies for Related Lists
|
|
5380
5380
|
*/
|
|
5381
5381
|
let relatedListsPredictionsEnabled$3 = false;
|
|
5382
|
+
/**
|
|
5383
|
+
* Determines whether to include additional PDL strategies for Related Lists
|
|
5384
|
+
*/
|
|
5385
|
+
let relatedListsPlusPredictionsEnabled$3 = false;
|
|
5382
5386
|
/**
|
|
5383
5387
|
* Defines the configuration API and is exposed internally as well as externally.
|
|
5384
5388
|
* Configuration for one store enabled REST adapters only.
|
|
@@ -5478,6 +5482,12 @@ const configurationForEnvironmentFactoryOverrides$3 = {
|
|
|
5478
5482
|
areRelatedListsPredictionsEnabled: function () {
|
|
5479
5483
|
return relatedListsPredictionsEnabled$3 === true;
|
|
5480
5484
|
},
|
|
5485
|
+
setRelatedListsPlusPredictionsEnabled: function (f) {
|
|
5486
|
+
relatedListsPlusPredictionsEnabled$3 = f;
|
|
5487
|
+
},
|
|
5488
|
+
areRelatedListsPlusPredictionsEnabled: function () {
|
|
5489
|
+
return relatedListsPlusPredictionsEnabled$3 === true;
|
|
5490
|
+
},
|
|
5481
5491
|
// createRecord
|
|
5482
5492
|
getDraftAwareCreateRecordAdapter: configurableCreateRecordAdapter$3.getAdapter,
|
|
5483
5493
|
setDraftAwareCreateRecordAdapter: configurableCreateRecordAdapter$3.setAdapter,
|
|
@@ -5627,6 +5637,10 @@ let oneStoreGetObjectInfosAdapter$2 = undefined;
|
|
|
5627
5637
|
* Determines when to include PDL strategies for Related Lists
|
|
5628
5638
|
*/
|
|
5629
5639
|
let relatedListsPredictionsEnabled$2 = false;
|
|
5640
|
+
/**
|
|
5641
|
+
* Determines whether to include additional PDL strategies for Related Lists
|
|
5642
|
+
*/
|
|
5643
|
+
let relatedListsPlusPredictionsEnabled$2 = false;
|
|
5630
5644
|
/**
|
|
5631
5645
|
* Defines the configuration API and is exposed internally as well as externally.
|
|
5632
5646
|
* Configuration for one store enabled REST adapters only.
|
|
@@ -5735,6 +5749,12 @@ const configurationForRestAdapters$2 = {
|
|
|
5735
5749
|
areRelatedListsPredictionsEnabled: function () {
|
|
5736
5750
|
return relatedListsPredictionsEnabled$2 === true;
|
|
5737
5751
|
},
|
|
5752
|
+
setRelatedListsPlusPredictionsEnabled: function (f) {
|
|
5753
|
+
relatedListsPlusPredictionsEnabled$2 = f;
|
|
5754
|
+
},
|
|
5755
|
+
areRelatedListsPlusPredictionsEnabled: function () {
|
|
5756
|
+
return relatedListsPlusPredictionsEnabled$2 === true;
|
|
5757
|
+
},
|
|
5738
5758
|
// createRecord
|
|
5739
5759
|
getDraftAwareCreateRecordAdapter: configurableCreateRecordAdapter$2.getAdapter,
|
|
5740
5760
|
setDraftAwareCreateRecordAdapter: configurableCreateRecordAdapter$2.setAdapter,
|
|
@@ -5870,6 +5890,16 @@ function createRelatedListAdapterWithPrediction(adapter, luvio, name) {
|
|
|
5870
5890
|
};
|
|
5871
5891
|
}
|
|
5872
5892
|
}
|
|
5893
|
+
function createRelatedListPlusAdapterWithPrediction(adapter, luvio, name) {
|
|
5894
|
+
if (configurationForRestAdapters$2.areRelatedListsPlusPredictionsEnabled() /* gate is open */) {
|
|
5895
|
+
return createLDSAdapterWithPrediction(adapter, luvio, name);
|
|
5896
|
+
}
|
|
5897
|
+
else {
|
|
5898
|
+
return (config, requestContext) => {
|
|
5899
|
+
return adapter(config, requestContext);
|
|
5900
|
+
};
|
|
5901
|
+
}
|
|
5902
|
+
}
|
|
5873
5903
|
|
|
5874
5904
|
const { hasOwnProperty: ObjectPrototypeHasOwnProperty$3 } = Object.prototype;
|
|
5875
5905
|
const { keys: ObjectKeys$1$3, create: ObjectCreate$1$3 } = Object;
|
|
@@ -33544,7 +33574,7 @@ function bindExportsTo$1(luvio) {
|
|
|
33544
33574
|
const getRelatedListRecordsBatch_ldsAdapter = createInstrumentedAdapter(createRelatedListAdapterWithPrediction(createLDSAdapter(luvio, 'getRelatedListRecordsBatch', configurationForEnvironmentFactoryOverrides$2.getRelatedListRecordsBatchAdapterFactory() ?? getRelatedListRecordsBatchAdapterFactory$1), luvio, 'getRelatedListRecordsBatch'), getRelatedListRecordsBatchMetadata);
|
|
33545
33575
|
const getRelatedListsActions_ldsAdapter = createInstrumentedAdapter(createRelatedListAdapterWithPrediction(createLDSAdapter(luvio, 'getRelatedListsActions', getRelatedListsActionsAdapterFactory), luvio, 'getRelatedListsActions'), getRelatedListsActionsMetadata);
|
|
33546
33576
|
const getRelatedListsCount_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getRelatedListsCount', getRelatedListsCountAdapterFactory), getRelatedListsCountMetadata);
|
|
33547
|
-
const getRelatedListsInfo_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getRelatedListsInfo', getRelatedListsInfoAdapterFactory), getRelatedListsInfoMetadata);
|
|
33577
|
+
const getRelatedListsInfo_ldsAdapter = createInstrumentedAdapter(createRelatedListPlusAdapterWithPrediction(createLDSAdapter(luvio, 'getRelatedListsInfo', getRelatedListsInfoAdapterFactory), luvio, 'getRelatedListsInfo'), getRelatedListsInfoMetadata);
|
|
33548
33578
|
const getSearchFilterMetadata_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getSearchFilterMetadata', getSearchFilterMetadataAdapterFactory), getSearchFilterMetadataMetadata);
|
|
33549
33579
|
const getSearchFilterOptions_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getSearchFilterOptions', getSearchFilterOptionsAdapterFactory), getSearchFilterOptionsMetadata);
|
|
33550
33580
|
const getSearchResults_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getSearchResults', configurationForEnvironmentFactoryOverrides$2.getSearchResultsAdapterFactory() ?? getSearchResultsAdapterFactory$1), getSearchResultsMetadata);
|
|
@@ -33850,7 +33880,16 @@ withDefaultLuvio((luvio) => {
|
|
|
33850
33880
|
throttle(60, 60000, setupNotifyAllListRecordUpdateAvailable(luvio));
|
|
33851
33881
|
throttle(60, 60000, setupNotifyAllListInfoSummaryUpdateAvailable(luvio));
|
|
33852
33882
|
});
|
|
33853
|
-
// version: 1.
|
|
33883
|
+
// version: 1.336.0-1b35a3afd9
|
|
33884
|
+
|
|
33885
|
+
var graphqlRecordTypeIdFixGate = {
|
|
33886
|
+
isOpen: function (e) {
|
|
33887
|
+
return e.fallback;
|
|
33888
|
+
},
|
|
33889
|
+
hasError: function () {
|
|
33890
|
+
return !0;
|
|
33891
|
+
},
|
|
33892
|
+
};
|
|
33854
33893
|
|
|
33855
33894
|
/**
|
|
33856
33895
|
* Returns true if the value acts like a Promise, i.e. has a "then" function,
|
|
@@ -65842,13 +65881,27 @@ function convertGraphQLToRaml$1(astNode, state) {
|
|
|
65842
65881
|
? getRequestedFieldsForType$1(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$H$1)
|
|
65843
65882
|
: new Map();
|
|
65844
65883
|
const { fieldsBag, trie } = createFieldsBagAndTrie$1(data, requestedFields, state);
|
|
65884
|
+
const recordTypeId = data.ldsRecordTypeId === null ? null : data.ldsRecordTypeId.value;
|
|
65885
|
+
if (graphqlRecordTypeIdFixGate.isOpen({ fallback: false }) &&
|
|
65886
|
+
recordTypeId &&
|
|
65887
|
+
recordTypeId !== MAIN_RECORD_TYPE_ID) {
|
|
65888
|
+
const fieldName = 'RecordTypeId';
|
|
65889
|
+
fieldsBag[fieldName] = {
|
|
65890
|
+
value: recordTypeId,
|
|
65891
|
+
displayValue: null,
|
|
65892
|
+
};
|
|
65893
|
+
trie.children[fieldName] = {
|
|
65894
|
+
name: fieldName,
|
|
65895
|
+
children: {},
|
|
65896
|
+
};
|
|
65897
|
+
}
|
|
65845
65898
|
const recordRepresentation = {
|
|
65846
65899
|
apiName: data.ApiName,
|
|
65847
65900
|
eTag: '',
|
|
65848
65901
|
lastModifiedById: data.LastModifiedById.value,
|
|
65849
65902
|
lastModifiedDate: data.LastModifiedDate.value,
|
|
65850
65903
|
systemModstamp: data.SystemModstamp.value,
|
|
65851
|
-
recordTypeId:
|
|
65904
|
+
recordTypeId: recordTypeId,
|
|
65852
65905
|
recordTypeInfo: null,
|
|
65853
65906
|
childRelationships: {},
|
|
65854
65907
|
id: data.Id,
|
|
@@ -87792,7 +87845,7 @@ function buildLdsResponse(response) {
|
|
|
87792
87845
|
|
|
87793
87846
|
// so eslint doesn't complain about nimbus
|
|
87794
87847
|
/* global __nimbus */
|
|
87795
|
-
const tasker = idleDetector.declareNotifierTaskMulti('NimbusNetworkAdapter');
|
|
87848
|
+
const tasker$1 = idleDetector.declareNotifierTaskMulti('NimbusNetworkAdapter');
|
|
87796
87849
|
const NimbusNetworkAdapter = (request, resourceRequestContext) => {
|
|
87797
87850
|
return new Promise((resolve, reject) => {
|
|
87798
87851
|
try {
|
|
@@ -87814,7 +87867,7 @@ const NimbusNetworkAdapter = (request, resourceRequestContext) => {
|
|
|
87814
87867
|
// fails to parse the request), and call reject
|
|
87815
87868
|
reject(error);
|
|
87816
87869
|
}
|
|
87817
|
-
}).finally(() => tasker.done());
|
|
87870
|
+
}).finally(() => tasker$1.done());
|
|
87818
87871
|
};
|
|
87819
87872
|
|
|
87820
87873
|
/**
|
|
@@ -89335,6 +89388,7 @@ class LdsInternalDataTable {
|
|
|
89335
89388
|
}
|
|
89336
89389
|
}
|
|
89337
89390
|
|
|
89391
|
+
const tasker = idleDetector.declareNotifierTaskMulti('NimbusSqliteStore');
|
|
89338
89392
|
class NimbusSqliteStore {
|
|
89339
89393
|
constructor(plugin, additionalTableMap = {}) {
|
|
89340
89394
|
this.plugin = plugin;
|
|
@@ -89354,20 +89408,26 @@ class NimbusSqliteStore {
|
|
|
89354
89408
|
}, (error) => {
|
|
89355
89409
|
reject(error);
|
|
89356
89410
|
});
|
|
89357
|
-
});
|
|
89411
|
+
}).finally(() => tasker.done());
|
|
89358
89412
|
}
|
|
89359
89413
|
batchQuery(queries) {
|
|
89360
89414
|
const promises = queries.map((q) => this.query(q.sql, q.params));
|
|
89361
|
-
return Promise.all(promises);
|
|
89415
|
+
return Promise.all(promises).finally(() => tasker.done());
|
|
89362
89416
|
}
|
|
89363
89417
|
async getEntries(entryIds, segment) {
|
|
89364
|
-
return this.getTable(segment)
|
|
89418
|
+
return this.getTable(segment)
|
|
89419
|
+
.getByKeys(entryIds, segment)
|
|
89420
|
+
.finally(() => tasker.done());
|
|
89365
89421
|
}
|
|
89366
89422
|
async getMetadata(entryIds, segment) {
|
|
89367
|
-
return this.getTable(segment)
|
|
89423
|
+
return this.getTable(segment)
|
|
89424
|
+
.getMetadataByKeys(entryIds, segment)
|
|
89425
|
+
.finally(() => tasker.done());
|
|
89368
89426
|
}
|
|
89369
89427
|
getAllEntries(segment) {
|
|
89370
|
-
return this.getTable(segment)
|
|
89428
|
+
return this.getTable(segment)
|
|
89429
|
+
.getAll(segment)
|
|
89430
|
+
.finally(() => tasker.done());
|
|
89371
89431
|
}
|
|
89372
89432
|
setEntries(entries, segment) {
|
|
89373
89433
|
if (keys$1$1(entries).length === 0) {
|
|
@@ -89472,7 +89532,7 @@ class NimbusSqliteStore {
|
|
|
89472
89532
|
resolve();
|
|
89473
89533
|
}
|
|
89474
89534
|
});
|
|
89475
|
-
});
|
|
89535
|
+
}).finally(() => tasker.done());
|
|
89476
89536
|
}
|
|
89477
89537
|
}
|
|
89478
89538
|
|
|
@@ -92009,7 +92069,7 @@ class SideEffectService {
|
|
|
92009
92069
|
const objectInfo = await this.ensureObjectInfo(apiName);
|
|
92010
92070
|
const recordFields = {};
|
|
92011
92071
|
for (const fieldName of keys$3(fields)) {
|
|
92012
|
-
const draftField = fields[fieldName];
|
|
92072
|
+
const draftField = fields[fieldName] ?? null;
|
|
92013
92073
|
recordFields[fieldName] = { value: draftField, displayValue: null };
|
|
92014
92074
|
const fieldInfo = objectInfo.fields[fieldName];
|
|
92015
92075
|
if (fieldInfo) {
|
|
@@ -92672,7 +92732,7 @@ register$1({
|
|
|
92672
92732
|
id: '@salesforce/lds-network-adapter',
|
|
92673
92733
|
instrument: instrument$2,
|
|
92674
92734
|
});
|
|
92675
|
-
// version: 1.
|
|
92735
|
+
// version: 1.336.0-7d2c781c74
|
|
92676
92736
|
|
|
92677
92737
|
const { create: create$2, keys: keys$2 } = Object;
|
|
92678
92738
|
const { stringify, parse } = JSON;
|
|
@@ -114098,6 +114158,10 @@ let oneStoreGetObjectInfosAdapter$1 = undefined;
|
|
|
114098
114158
|
* Determines when to include PDL strategies for Related Lists
|
|
114099
114159
|
*/
|
|
114100
114160
|
let relatedListsPredictionsEnabled$1 = false;
|
|
114161
|
+
/**
|
|
114162
|
+
* Determines whether to include additional PDL strategies for Related Lists
|
|
114163
|
+
*/
|
|
114164
|
+
let relatedListsPlusPredictionsEnabled$1 = false;
|
|
114101
114165
|
/**
|
|
114102
114166
|
* Defines the configuration API and is exposed internally as well as externally.
|
|
114103
114167
|
* Configuration for one store enabled REST adapters only.
|
|
@@ -114197,6 +114261,12 @@ const configurationForRestAdapters$1 = {
|
|
|
114197
114261
|
areRelatedListsPredictionsEnabled: function () {
|
|
114198
114262
|
return relatedListsPredictionsEnabled$1 === true;
|
|
114199
114263
|
},
|
|
114264
|
+
setRelatedListsPlusPredictionsEnabled: function (f) {
|
|
114265
|
+
relatedListsPlusPredictionsEnabled$1 = f;
|
|
114266
|
+
},
|
|
114267
|
+
areRelatedListsPlusPredictionsEnabled: function () {
|
|
114268
|
+
return relatedListsPlusPredictionsEnabled$1 === true;
|
|
114269
|
+
},
|
|
114200
114270
|
// createRecord
|
|
114201
114271
|
getDraftAwareCreateRecordAdapter: configurableCreateRecordAdapter$1.getAdapter,
|
|
114202
114272
|
setDraftAwareCreateRecordAdapter: configurableCreateRecordAdapter$1.setAdapter,
|
|
@@ -115239,7 +115309,7 @@ register$1({
|
|
|
115239
115309
|
configuration: { ...configurationForGraphQLAdapters$1 },
|
|
115240
115310
|
instrument: instrument$1,
|
|
115241
115311
|
});
|
|
115242
|
-
// version: 1.
|
|
115312
|
+
// version: 1.336.0-1b35a3afd9
|
|
115243
115313
|
|
|
115244
115314
|
// On core the unstable adapters are re-exported with different names,
|
|
115245
115315
|
// we want to match them here.
|
|
@@ -115391,7 +115461,7 @@ withDefaultLuvio((luvio) => {
|
|
|
115391
115461
|
unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
|
|
115392
115462
|
graphQLImperative = ldsAdapter;
|
|
115393
115463
|
});
|
|
115394
|
-
// version: 1.
|
|
115464
|
+
// version: 1.336.0-1b35a3afd9
|
|
115395
115465
|
|
|
115396
115466
|
var gqlApi = /*#__PURE__*/Object.freeze({
|
|
115397
115467
|
__proto__: null,
|
|
@@ -116174,7 +116244,7 @@ const callbacks$1 = [];
|
|
|
116174
116244
|
function register(r) {
|
|
116175
116245
|
callbacks$1.forEach((callback) => callback(r));
|
|
116176
116246
|
}
|
|
116177
|
-
// version: 1.
|
|
116247
|
+
// version: 1.336.0-7d2c781c74
|
|
116178
116248
|
|
|
116179
116249
|
/**
|
|
116180
116250
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -116244,6 +116314,10 @@ let oneStoreGetObjectInfosAdapter = undefined;
|
|
|
116244
116314
|
* Determines when to include PDL strategies for Related Lists
|
|
116245
116315
|
*/
|
|
116246
116316
|
let relatedListsPredictionsEnabled = false;
|
|
116317
|
+
/**
|
|
116318
|
+
* Determines whether to include additional PDL strategies for Related Lists
|
|
116319
|
+
*/
|
|
116320
|
+
let relatedListsPlusPredictionsEnabled = false;
|
|
116247
116321
|
/**
|
|
116248
116322
|
* Defines the configuration API and is exposed internally as well as externally.
|
|
116249
116323
|
* Configuration for one store enabled REST adapters only.
|
|
@@ -116343,6 +116417,12 @@ const configurationForRestAdapters = {
|
|
|
116343
116417
|
areRelatedListsPredictionsEnabled: function () {
|
|
116344
116418
|
return relatedListsPredictionsEnabled === true;
|
|
116345
116419
|
},
|
|
116420
|
+
setRelatedListsPlusPredictionsEnabled: function (f) {
|
|
116421
|
+
relatedListsPlusPredictionsEnabled = f;
|
|
116422
|
+
},
|
|
116423
|
+
areRelatedListsPlusPredictionsEnabled: function () {
|
|
116424
|
+
return relatedListsPlusPredictionsEnabled === true;
|
|
116425
|
+
},
|
|
116346
116426
|
// createRecord
|
|
116347
116427
|
getDraftAwareCreateRecordAdapter: configurableCreateRecordAdapter.getAdapter,
|
|
116348
116428
|
setDraftAwareCreateRecordAdapter: configurableCreateRecordAdapter.setAdapter,
|
|
@@ -117237,4 +117317,4 @@ const { luvio } = getRuntime();
|
|
|
117237
117317
|
setDefaultLuvio({ luvio });
|
|
117238
117318
|
|
|
117239
117319
|
export { createPrimingSession, draftManager, draftQueue, evictCacheRecordsByIds, evictExpiredCacheEntries, executeAdapter, executeMutatingAdapter, getImperativeAdapterNames, invokeAdapter, invokeAdapterWithDraftToMerge, invokeAdapterWithDraftToReplace, invokeAdapterWithMetadata, nimbusDraftQueue, registerReportObserver, setMetadataTTL, setUiApiRecordTTL, stopEviction, subscribeToAdapter };
|
|
117240
|
-
// version: 1.
|
|
117320
|
+
// version: 1.336.0-7d2c781c74
|
|
@@ -4271,7 +4271,7 @@
|
|
|
4271
4271
|
}
|
|
4272
4272
|
callbacks.push(callback);
|
|
4273
4273
|
}
|
|
4274
|
-
// version: 1.
|
|
4274
|
+
// version: 1.336.0-7d2c781c74
|
|
4275
4275
|
|
|
4276
4276
|
// TODO [TD-0081508]: once that TD is fulfilled we can probably change this file
|
|
4277
4277
|
function instrumentAdapter$1(createFunction, _metadata) {
|
|
@@ -5219,7 +5219,7 @@
|
|
|
5219
5219
|
const { apiFamily, name } = metadata;
|
|
5220
5220
|
return createGraphQLWireAdapterConstructor$1(adapter, `${apiFamily}.${name}`, luvio, astResolver);
|
|
5221
5221
|
}
|
|
5222
|
-
// version: 1.
|
|
5222
|
+
// version: 1.336.0-7d2c781c74
|
|
5223
5223
|
|
|
5224
5224
|
/**
|
|
5225
5225
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -5385,6 +5385,10 @@
|
|
|
5385
5385
|
* Determines when to include PDL strategies for Related Lists
|
|
5386
5386
|
*/
|
|
5387
5387
|
let relatedListsPredictionsEnabled$3 = false;
|
|
5388
|
+
/**
|
|
5389
|
+
* Determines whether to include additional PDL strategies for Related Lists
|
|
5390
|
+
*/
|
|
5391
|
+
let relatedListsPlusPredictionsEnabled$3 = false;
|
|
5388
5392
|
/**
|
|
5389
5393
|
* Defines the configuration API and is exposed internally as well as externally.
|
|
5390
5394
|
* Configuration for one store enabled REST adapters only.
|
|
@@ -5484,6 +5488,12 @@
|
|
|
5484
5488
|
areRelatedListsPredictionsEnabled: function () {
|
|
5485
5489
|
return relatedListsPredictionsEnabled$3 === true;
|
|
5486
5490
|
},
|
|
5491
|
+
setRelatedListsPlusPredictionsEnabled: function (f) {
|
|
5492
|
+
relatedListsPlusPredictionsEnabled$3 = f;
|
|
5493
|
+
},
|
|
5494
|
+
areRelatedListsPlusPredictionsEnabled: function () {
|
|
5495
|
+
return relatedListsPlusPredictionsEnabled$3 === true;
|
|
5496
|
+
},
|
|
5487
5497
|
// createRecord
|
|
5488
5498
|
getDraftAwareCreateRecordAdapter: configurableCreateRecordAdapter$3.getAdapter,
|
|
5489
5499
|
setDraftAwareCreateRecordAdapter: configurableCreateRecordAdapter$3.setAdapter,
|
|
@@ -5633,6 +5643,10 @@
|
|
|
5633
5643
|
* Determines when to include PDL strategies for Related Lists
|
|
5634
5644
|
*/
|
|
5635
5645
|
let relatedListsPredictionsEnabled$2 = false;
|
|
5646
|
+
/**
|
|
5647
|
+
* Determines whether to include additional PDL strategies for Related Lists
|
|
5648
|
+
*/
|
|
5649
|
+
let relatedListsPlusPredictionsEnabled$2 = false;
|
|
5636
5650
|
/**
|
|
5637
5651
|
* Defines the configuration API and is exposed internally as well as externally.
|
|
5638
5652
|
* Configuration for one store enabled REST adapters only.
|
|
@@ -5741,6 +5755,12 @@
|
|
|
5741
5755
|
areRelatedListsPredictionsEnabled: function () {
|
|
5742
5756
|
return relatedListsPredictionsEnabled$2 === true;
|
|
5743
5757
|
},
|
|
5758
|
+
setRelatedListsPlusPredictionsEnabled: function (f) {
|
|
5759
|
+
relatedListsPlusPredictionsEnabled$2 = f;
|
|
5760
|
+
},
|
|
5761
|
+
areRelatedListsPlusPredictionsEnabled: function () {
|
|
5762
|
+
return relatedListsPlusPredictionsEnabled$2 === true;
|
|
5763
|
+
},
|
|
5744
5764
|
// createRecord
|
|
5745
5765
|
getDraftAwareCreateRecordAdapter: configurableCreateRecordAdapter$2.getAdapter,
|
|
5746
5766
|
setDraftAwareCreateRecordAdapter: configurableCreateRecordAdapter$2.setAdapter,
|
|
@@ -5876,6 +5896,16 @@
|
|
|
5876
5896
|
};
|
|
5877
5897
|
}
|
|
5878
5898
|
}
|
|
5899
|
+
function createRelatedListPlusAdapterWithPrediction(adapter, luvio, name) {
|
|
5900
|
+
if (configurationForRestAdapters$2.areRelatedListsPlusPredictionsEnabled() /* gate is open */) {
|
|
5901
|
+
return createLDSAdapterWithPrediction(adapter, luvio, name);
|
|
5902
|
+
}
|
|
5903
|
+
else {
|
|
5904
|
+
return (config, requestContext) => {
|
|
5905
|
+
return adapter(config, requestContext);
|
|
5906
|
+
};
|
|
5907
|
+
}
|
|
5908
|
+
}
|
|
5879
5909
|
|
|
5880
5910
|
const { hasOwnProperty: ObjectPrototypeHasOwnProperty$3 } = Object.prototype;
|
|
5881
5911
|
const { keys: ObjectKeys$1$3, create: ObjectCreate$1$3 } = Object;
|
|
@@ -33550,7 +33580,7 @@
|
|
|
33550
33580
|
const getRelatedListRecordsBatch_ldsAdapter = createInstrumentedAdapter(createRelatedListAdapterWithPrediction(createLDSAdapter(luvio, 'getRelatedListRecordsBatch', configurationForEnvironmentFactoryOverrides$2.getRelatedListRecordsBatchAdapterFactory() ?? getRelatedListRecordsBatchAdapterFactory$1), luvio, 'getRelatedListRecordsBatch'), getRelatedListRecordsBatchMetadata);
|
|
33551
33581
|
const getRelatedListsActions_ldsAdapter = createInstrumentedAdapter(createRelatedListAdapterWithPrediction(createLDSAdapter(luvio, 'getRelatedListsActions', getRelatedListsActionsAdapterFactory), luvio, 'getRelatedListsActions'), getRelatedListsActionsMetadata);
|
|
33552
33582
|
const getRelatedListsCount_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getRelatedListsCount', getRelatedListsCountAdapterFactory), getRelatedListsCountMetadata);
|
|
33553
|
-
const getRelatedListsInfo_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getRelatedListsInfo', getRelatedListsInfoAdapterFactory), getRelatedListsInfoMetadata);
|
|
33583
|
+
const getRelatedListsInfo_ldsAdapter = createInstrumentedAdapter(createRelatedListPlusAdapterWithPrediction(createLDSAdapter(luvio, 'getRelatedListsInfo', getRelatedListsInfoAdapterFactory), luvio, 'getRelatedListsInfo'), getRelatedListsInfoMetadata);
|
|
33554
33584
|
const getSearchFilterMetadata_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getSearchFilterMetadata', getSearchFilterMetadataAdapterFactory), getSearchFilterMetadataMetadata);
|
|
33555
33585
|
const getSearchFilterOptions_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getSearchFilterOptions', getSearchFilterOptionsAdapterFactory), getSearchFilterOptionsMetadata);
|
|
33556
33586
|
const getSearchResults_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getSearchResults', configurationForEnvironmentFactoryOverrides$2.getSearchResultsAdapterFactory() ?? getSearchResultsAdapterFactory$1), getSearchResultsMetadata);
|
|
@@ -33856,7 +33886,16 @@
|
|
|
33856
33886
|
throttle(60, 60000, setupNotifyAllListRecordUpdateAvailable(luvio));
|
|
33857
33887
|
throttle(60, 60000, setupNotifyAllListInfoSummaryUpdateAvailable(luvio));
|
|
33858
33888
|
});
|
|
33859
|
-
// version: 1.
|
|
33889
|
+
// version: 1.336.0-1b35a3afd9
|
|
33890
|
+
|
|
33891
|
+
var graphqlRecordTypeIdFixGate = {
|
|
33892
|
+
isOpen: function (e) {
|
|
33893
|
+
return e.fallback;
|
|
33894
|
+
},
|
|
33895
|
+
hasError: function () {
|
|
33896
|
+
return !0;
|
|
33897
|
+
},
|
|
33898
|
+
};
|
|
33860
33899
|
|
|
33861
33900
|
/**
|
|
33862
33901
|
* Returns true if the value acts like a Promise, i.e. has a "then" function,
|
|
@@ -65848,13 +65887,27 @@
|
|
|
65848
65887
|
? getRequestedFieldsForType$1(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$H$1)
|
|
65849
65888
|
: new Map();
|
|
65850
65889
|
const { fieldsBag, trie } = createFieldsBagAndTrie$1(data, requestedFields, state);
|
|
65890
|
+
const recordTypeId = data.ldsRecordTypeId === null ? null : data.ldsRecordTypeId.value;
|
|
65891
|
+
if (graphqlRecordTypeIdFixGate.isOpen({ fallback: false }) &&
|
|
65892
|
+
recordTypeId &&
|
|
65893
|
+
recordTypeId !== MAIN_RECORD_TYPE_ID) {
|
|
65894
|
+
const fieldName = 'RecordTypeId';
|
|
65895
|
+
fieldsBag[fieldName] = {
|
|
65896
|
+
value: recordTypeId,
|
|
65897
|
+
displayValue: null,
|
|
65898
|
+
};
|
|
65899
|
+
trie.children[fieldName] = {
|
|
65900
|
+
name: fieldName,
|
|
65901
|
+
children: {},
|
|
65902
|
+
};
|
|
65903
|
+
}
|
|
65851
65904
|
const recordRepresentation = {
|
|
65852
65905
|
apiName: data.ApiName,
|
|
65853
65906
|
eTag: '',
|
|
65854
65907
|
lastModifiedById: data.LastModifiedById.value,
|
|
65855
65908
|
lastModifiedDate: data.LastModifiedDate.value,
|
|
65856
65909
|
systemModstamp: data.SystemModstamp.value,
|
|
65857
|
-
recordTypeId:
|
|
65910
|
+
recordTypeId: recordTypeId,
|
|
65858
65911
|
recordTypeInfo: null,
|
|
65859
65912
|
childRelationships: {},
|
|
65860
65913
|
id: data.Id,
|
|
@@ -87798,7 +87851,7 @@
|
|
|
87798
87851
|
|
|
87799
87852
|
// so eslint doesn't complain about nimbus
|
|
87800
87853
|
/* global __nimbus */
|
|
87801
|
-
const tasker = idleDetector.declareNotifierTaskMulti('NimbusNetworkAdapter');
|
|
87854
|
+
const tasker$1 = idleDetector.declareNotifierTaskMulti('NimbusNetworkAdapter');
|
|
87802
87855
|
const NimbusNetworkAdapter = (request, resourceRequestContext) => {
|
|
87803
87856
|
return new Promise((resolve, reject) => {
|
|
87804
87857
|
try {
|
|
@@ -87820,7 +87873,7 @@
|
|
|
87820
87873
|
// fails to parse the request), and call reject
|
|
87821
87874
|
reject(error);
|
|
87822
87875
|
}
|
|
87823
|
-
}).finally(() => tasker.done());
|
|
87876
|
+
}).finally(() => tasker$1.done());
|
|
87824
87877
|
};
|
|
87825
87878
|
|
|
87826
87879
|
/**
|
|
@@ -89341,6 +89394,7 @@
|
|
|
89341
89394
|
}
|
|
89342
89395
|
}
|
|
89343
89396
|
|
|
89397
|
+
const tasker = idleDetector.declareNotifierTaskMulti('NimbusSqliteStore');
|
|
89344
89398
|
class NimbusSqliteStore {
|
|
89345
89399
|
constructor(plugin, additionalTableMap = {}) {
|
|
89346
89400
|
this.plugin = plugin;
|
|
@@ -89360,20 +89414,26 @@
|
|
|
89360
89414
|
}, (error) => {
|
|
89361
89415
|
reject(error);
|
|
89362
89416
|
});
|
|
89363
|
-
});
|
|
89417
|
+
}).finally(() => tasker.done());
|
|
89364
89418
|
}
|
|
89365
89419
|
batchQuery(queries) {
|
|
89366
89420
|
const promises = queries.map((q) => this.query(q.sql, q.params));
|
|
89367
|
-
return Promise.all(promises);
|
|
89421
|
+
return Promise.all(promises).finally(() => tasker.done());
|
|
89368
89422
|
}
|
|
89369
89423
|
async getEntries(entryIds, segment) {
|
|
89370
|
-
return this.getTable(segment)
|
|
89424
|
+
return this.getTable(segment)
|
|
89425
|
+
.getByKeys(entryIds, segment)
|
|
89426
|
+
.finally(() => tasker.done());
|
|
89371
89427
|
}
|
|
89372
89428
|
async getMetadata(entryIds, segment) {
|
|
89373
|
-
return this.getTable(segment)
|
|
89429
|
+
return this.getTable(segment)
|
|
89430
|
+
.getMetadataByKeys(entryIds, segment)
|
|
89431
|
+
.finally(() => tasker.done());
|
|
89374
89432
|
}
|
|
89375
89433
|
getAllEntries(segment) {
|
|
89376
|
-
return this.getTable(segment)
|
|
89434
|
+
return this.getTable(segment)
|
|
89435
|
+
.getAll(segment)
|
|
89436
|
+
.finally(() => tasker.done());
|
|
89377
89437
|
}
|
|
89378
89438
|
setEntries(entries, segment) {
|
|
89379
89439
|
if (keys$1$1(entries).length === 0) {
|
|
@@ -89478,7 +89538,7 @@
|
|
|
89478
89538
|
resolve();
|
|
89479
89539
|
}
|
|
89480
89540
|
});
|
|
89481
|
-
});
|
|
89541
|
+
}).finally(() => tasker.done());
|
|
89482
89542
|
}
|
|
89483
89543
|
}
|
|
89484
89544
|
|
|
@@ -92015,7 +92075,7 @@
|
|
|
92015
92075
|
const objectInfo = await this.ensureObjectInfo(apiName);
|
|
92016
92076
|
const recordFields = {};
|
|
92017
92077
|
for (const fieldName of keys$3(fields)) {
|
|
92018
|
-
const draftField = fields[fieldName];
|
|
92078
|
+
const draftField = fields[fieldName] ?? null;
|
|
92019
92079
|
recordFields[fieldName] = { value: draftField, displayValue: null };
|
|
92020
92080
|
const fieldInfo = objectInfo.fields[fieldName];
|
|
92021
92081
|
if (fieldInfo) {
|
|
@@ -92678,7 +92738,7 @@
|
|
|
92678
92738
|
id: '@salesforce/lds-network-adapter',
|
|
92679
92739
|
instrument: instrument$2,
|
|
92680
92740
|
});
|
|
92681
|
-
// version: 1.
|
|
92741
|
+
// version: 1.336.0-7d2c781c74
|
|
92682
92742
|
|
|
92683
92743
|
const { create: create$2, keys: keys$2 } = Object;
|
|
92684
92744
|
const { stringify, parse } = JSON;
|
|
@@ -114104,6 +114164,10 @@
|
|
|
114104
114164
|
* Determines when to include PDL strategies for Related Lists
|
|
114105
114165
|
*/
|
|
114106
114166
|
let relatedListsPredictionsEnabled$1 = false;
|
|
114167
|
+
/**
|
|
114168
|
+
* Determines whether to include additional PDL strategies for Related Lists
|
|
114169
|
+
*/
|
|
114170
|
+
let relatedListsPlusPredictionsEnabled$1 = false;
|
|
114107
114171
|
/**
|
|
114108
114172
|
* Defines the configuration API and is exposed internally as well as externally.
|
|
114109
114173
|
* Configuration for one store enabled REST adapters only.
|
|
@@ -114203,6 +114267,12 @@
|
|
|
114203
114267
|
areRelatedListsPredictionsEnabled: function () {
|
|
114204
114268
|
return relatedListsPredictionsEnabled$1 === true;
|
|
114205
114269
|
},
|
|
114270
|
+
setRelatedListsPlusPredictionsEnabled: function (f) {
|
|
114271
|
+
relatedListsPlusPredictionsEnabled$1 = f;
|
|
114272
|
+
},
|
|
114273
|
+
areRelatedListsPlusPredictionsEnabled: function () {
|
|
114274
|
+
return relatedListsPlusPredictionsEnabled$1 === true;
|
|
114275
|
+
},
|
|
114206
114276
|
// createRecord
|
|
114207
114277
|
getDraftAwareCreateRecordAdapter: configurableCreateRecordAdapter$1.getAdapter,
|
|
114208
114278
|
setDraftAwareCreateRecordAdapter: configurableCreateRecordAdapter$1.setAdapter,
|
|
@@ -115245,7 +115315,7 @@
|
|
|
115245
115315
|
configuration: { ...configurationForGraphQLAdapters$1 },
|
|
115246
115316
|
instrument: instrument$1,
|
|
115247
115317
|
});
|
|
115248
|
-
// version: 1.
|
|
115318
|
+
// version: 1.336.0-1b35a3afd9
|
|
115249
115319
|
|
|
115250
115320
|
// On core the unstable adapters are re-exported with different names,
|
|
115251
115321
|
// we want to match them here.
|
|
@@ -115397,7 +115467,7 @@
|
|
|
115397
115467
|
unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
|
|
115398
115468
|
graphQLImperative = ldsAdapter;
|
|
115399
115469
|
});
|
|
115400
|
-
// version: 1.
|
|
115470
|
+
// version: 1.336.0-1b35a3afd9
|
|
115401
115471
|
|
|
115402
115472
|
var gqlApi = /*#__PURE__*/Object.freeze({
|
|
115403
115473
|
__proto__: null,
|
|
@@ -116180,7 +116250,7 @@
|
|
|
116180
116250
|
function register(r) {
|
|
116181
116251
|
callbacks$1.forEach((callback) => callback(r));
|
|
116182
116252
|
}
|
|
116183
|
-
// version: 1.
|
|
116253
|
+
// version: 1.336.0-7d2c781c74
|
|
116184
116254
|
|
|
116185
116255
|
/**
|
|
116186
116256
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -116250,6 +116320,10 @@
|
|
|
116250
116320
|
* Determines when to include PDL strategies for Related Lists
|
|
116251
116321
|
*/
|
|
116252
116322
|
let relatedListsPredictionsEnabled = false;
|
|
116323
|
+
/**
|
|
116324
|
+
* Determines whether to include additional PDL strategies for Related Lists
|
|
116325
|
+
*/
|
|
116326
|
+
let relatedListsPlusPredictionsEnabled = false;
|
|
116253
116327
|
/**
|
|
116254
116328
|
* Defines the configuration API and is exposed internally as well as externally.
|
|
116255
116329
|
* Configuration for one store enabled REST adapters only.
|
|
@@ -116349,6 +116423,12 @@
|
|
|
116349
116423
|
areRelatedListsPredictionsEnabled: function () {
|
|
116350
116424
|
return relatedListsPredictionsEnabled === true;
|
|
116351
116425
|
},
|
|
116426
|
+
setRelatedListsPlusPredictionsEnabled: function (f) {
|
|
116427
|
+
relatedListsPlusPredictionsEnabled = f;
|
|
116428
|
+
},
|
|
116429
|
+
areRelatedListsPlusPredictionsEnabled: function () {
|
|
116430
|
+
return relatedListsPlusPredictionsEnabled === true;
|
|
116431
|
+
},
|
|
116352
116432
|
// createRecord
|
|
116353
116433
|
getDraftAwareCreateRecordAdapter: configurableCreateRecordAdapter.getAdapter,
|
|
116354
116434
|
setDraftAwareCreateRecordAdapter: configurableCreateRecordAdapter.setAdapter,
|
|
@@ -117262,4 +117342,4 @@
|
|
|
117262
117342
|
exports.subscribeToAdapter = subscribeToAdapter;
|
|
117263
117343
|
|
|
117264
117344
|
}));
|
|
117265
|
-
// version: 1.
|
|
117345
|
+
// version: 1.336.0-7d2c781c74
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-worker-api",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.336.0",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
5
5
|
"description": "",
|
|
6
6
|
"main": "dist/standalone/es/lds-worker-api.js",
|
|
@@ -35,14 +35,14 @@
|
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@oat-sa/rollup-plugin-wildcard-external": "^1.0.0",
|
|
38
|
-
"@salesforce/lds-adapters-graphql": "^1.
|
|
39
|
-
"@salesforce/lds-adapters-uiapi": "^1.
|
|
40
|
-
"@salesforce/lds-default-luvio": "^1.
|
|
41
|
-
"@salesforce/lds-drafts": "^1.
|
|
42
|
-
"@salesforce/lds-graphql-parser": "^1.
|
|
43
|
-
"@salesforce/lds-luvio-engine": "^1.
|
|
44
|
-
"@salesforce/lds-runtime-mobile": "^1.
|
|
45
|
-
"@salesforce/nimbus-plugin-lds": "^1.
|
|
38
|
+
"@salesforce/lds-adapters-graphql": "^1.336.0",
|
|
39
|
+
"@salesforce/lds-adapters-uiapi": "^1.336.0",
|
|
40
|
+
"@salesforce/lds-default-luvio": "^1.336.0",
|
|
41
|
+
"@salesforce/lds-drafts": "^1.336.0",
|
|
42
|
+
"@salesforce/lds-graphql-parser": "^1.336.0",
|
|
43
|
+
"@salesforce/lds-luvio-engine": "^1.336.0",
|
|
44
|
+
"@salesforce/lds-runtime-mobile": "^1.336.0",
|
|
45
|
+
"@salesforce/nimbus-plugin-lds": "^1.336.0",
|
|
46
46
|
"ajv": "^8.11.0",
|
|
47
47
|
"glob": "^7.1.5",
|
|
48
48
|
"nimbus-types": "^2.0.0-alpha1",
|