@salesforce/lds-worker-api 1.139.0 → 1.139.2
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.
|
@@ -758,4 +758,4 @@ if (process.env.NODE_ENV !== 'production') {
|
|
|
758
758
|
}
|
|
759
759
|
|
|
760
760
|
export { createPrimingSession, draftManager, draftQueue, executeAdapter, executeMutatingAdapter, getImperativeAdapterNames, invokeAdapter, invokeAdapterWithDraftToReplace, invokeAdapterWithMetadata, nimbusDraftQueue, setMetadataTTL, setUiApiRecordTTL, subscribeToAdapter };
|
|
761
|
-
// version: 1.139.
|
|
761
|
+
// version: 1.139.2-3a6e84c50
|
|
@@ -3797,7 +3797,7 @@ function withDefaultLuvio(callback) {
|
|
|
3797
3797
|
}
|
|
3798
3798
|
callbacks.push(callback);
|
|
3799
3799
|
}
|
|
3800
|
-
// version: 1.139.
|
|
3800
|
+
// version: 1.139.2-3a6e84c50
|
|
3801
3801
|
|
|
3802
3802
|
// TODO [TD-0081508]: once that TD is fulfilled we can probably change this file
|
|
3803
3803
|
function instrumentAdapter$1(createFunction, _metadata) {
|
|
@@ -15221,7 +15221,7 @@ function parseAndVisit(source) {
|
|
|
15221
15221
|
updateReferenceMapWithKnownKey(ast, luvioDocumentNode);
|
|
15222
15222
|
return luvioDocumentNode;
|
|
15223
15223
|
}
|
|
15224
|
-
// version: 1.139.
|
|
15224
|
+
// version: 1.139.2-3a6e84c50
|
|
15225
15225
|
|
|
15226
15226
|
function unwrap(data) {
|
|
15227
15227
|
// The lwc-luvio bindings import a function from lwc called "unwrap".
|
|
@@ -16134,7 +16134,7 @@ function createGraphQLWireAdapterConstructor(luvio, adapter, metadata, astResolv
|
|
|
16134
16134
|
const { apiFamily, name } = metadata;
|
|
16135
16135
|
return createGraphQLWireAdapterConstructor$1(adapter, `${apiFamily}.${name}`, luvio, astResolver);
|
|
16136
16136
|
}
|
|
16137
|
-
// version: 1.139.
|
|
16137
|
+
// version: 1.139.2-3a6e84c50
|
|
16138
16138
|
|
|
16139
16139
|
/**
|
|
16140
16140
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -43910,7 +43910,7 @@ withDefaultLuvio((luvio) => {
|
|
|
43910
43910
|
dropFunction: instrumentation$2.notifyRecordUpdateAvailableDropped,
|
|
43911
43911
|
});
|
|
43912
43912
|
});
|
|
43913
|
-
// version: 1.139.
|
|
43913
|
+
// version: 1.139.2-6b03da38d
|
|
43914
43914
|
|
|
43915
43915
|
var caseSensitiveUserId = '005B0000000GR4OIAW';
|
|
43916
43916
|
|
|
@@ -46990,7 +46990,11 @@ function operatorWithValue(operator, valueNode, objectInfoDataType) {
|
|
|
46990
46990
|
}
|
|
46991
46991
|
if (objectInfoDataType === 'Double') {
|
|
46992
46992
|
if (isScalarOperatorType(operator)) {
|
|
46993
|
-
|
|
46993
|
+
// allow a float/double value to be passed
|
|
46994
|
+
// also allow an integer to be passed to a double, but not a double to an integer
|
|
46995
|
+
const isFloatOrInt = is(valueNode, 'FloatValue') ||
|
|
46996
|
+
is(valueNode, 'IntValue');
|
|
46997
|
+
return isFloatOrInt
|
|
46994
46998
|
? success({
|
|
46995
46999
|
type: 'DoubleOperator',
|
|
46996
47000
|
operator,
|
|
@@ -55839,14 +55843,24 @@ function makeRecordDenormalizingDurableStore(luvio, durableStore, getStoreRecord
|
|
|
55839
55843
|
const filteredEntryIds = [];
|
|
55840
55844
|
// map of records to avoid requesting duplicate record keys when requesting both records and fields
|
|
55841
55845
|
const recordEntries = {};
|
|
55846
|
+
const recordViewEntries = {};
|
|
55842
55847
|
for (let i = 0, len = entriesLength; i < len; i++) {
|
|
55843
55848
|
const id = entries[i];
|
|
55844
55849
|
const recordId = extractRecordIdFromStoreKey(id);
|
|
55845
55850
|
if (recordId !== undefined) {
|
|
55846
|
-
if (
|
|
55847
|
-
|
|
55848
|
-
|
|
55849
|
-
|
|
55851
|
+
if (id.startsWith(RECORD_VIEW_ENTITY_ID_PREFIX)) {
|
|
55852
|
+
if (recordViewEntries[recordId] === undefined) {
|
|
55853
|
+
const key = getDenormalizedKey(id, recordId, luvio);
|
|
55854
|
+
recordViewEntries[recordId] = true;
|
|
55855
|
+
filteredEntryIds.push(key);
|
|
55856
|
+
}
|
|
55857
|
+
}
|
|
55858
|
+
else {
|
|
55859
|
+
if (recordEntries[recordId] === undefined) {
|
|
55860
|
+
const key = getDenormalizedKey(id, recordId, luvio);
|
|
55861
|
+
recordEntries[recordId] = true;
|
|
55862
|
+
filteredEntryIds.push(key);
|
|
55863
|
+
}
|
|
55850
55864
|
}
|
|
55851
55865
|
}
|
|
55852
55866
|
else {
|
|
@@ -55880,6 +55894,7 @@ function makeRecordDenormalizingDurableStore(luvio, durableStore, getStoreRecord
|
|
|
55880
55894
|
const putEntries = create$2$1(null);
|
|
55881
55895
|
const keys$1 = keys$2$1(entries);
|
|
55882
55896
|
const putRecords = {};
|
|
55897
|
+
const putRecordViews = {};
|
|
55883
55898
|
const storeRecords = getStoreRecords !== undefined ? getStoreRecords() : {};
|
|
55884
55899
|
const storeMetadata = getStoreMetadata !== undefined ? getStoreMetadata() : {};
|
|
55885
55900
|
for (let i = 0, len = keys$1.length; i < len; i++) {
|
|
@@ -55888,10 +55903,18 @@ function makeRecordDenormalizingDurableStore(luvio, durableStore, getStoreRecord
|
|
|
55888
55903
|
const recordId = extractRecordIdFromStoreKey(key);
|
|
55889
55904
|
// do not put normalized field values
|
|
55890
55905
|
if (recordId !== undefined) {
|
|
55891
|
-
const
|
|
55892
|
-
if (
|
|
55893
|
-
|
|
55906
|
+
const isRecordView = key.startsWith(RECORD_VIEW_ENTITY_ID_PREFIX);
|
|
55907
|
+
if (isRecordView) {
|
|
55908
|
+
if (putRecordViews[recordId] === true) {
|
|
55909
|
+
continue;
|
|
55910
|
+
}
|
|
55894
55911
|
}
|
|
55912
|
+
else {
|
|
55913
|
+
if (putRecords[recordId] === true) {
|
|
55914
|
+
continue;
|
|
55915
|
+
}
|
|
55916
|
+
}
|
|
55917
|
+
const recordKey = getDenormalizedKey(key, recordId, luvio);
|
|
55895
55918
|
const recordEntries = entries;
|
|
55896
55919
|
const entry = recordEntries[recordKey];
|
|
55897
55920
|
let record = entry && entry.data;
|
|
@@ -55903,7 +55926,12 @@ function makeRecordDenormalizingDurableStore(luvio, durableStore, getStoreRecord
|
|
|
55903
55926
|
continue;
|
|
55904
55927
|
}
|
|
55905
55928
|
}
|
|
55906
|
-
|
|
55929
|
+
if (isRecordView) {
|
|
55930
|
+
putRecordViews[recordId] = true;
|
|
55931
|
+
}
|
|
55932
|
+
else {
|
|
55933
|
+
putRecords[recordId] = true;
|
|
55934
|
+
}
|
|
55907
55935
|
if (isStoreRecordError(record)) {
|
|
55908
55936
|
putEntries[recordKey] = value;
|
|
55909
55937
|
continue;
|
|
@@ -59663,7 +59691,7 @@ register({
|
|
|
59663
59691
|
id: '@salesforce/lds-network-adapter',
|
|
59664
59692
|
instrument: instrument$1,
|
|
59665
59693
|
});
|
|
59666
|
-
// version: 1.139.
|
|
59694
|
+
// version: 1.139.2-3a6e84c50
|
|
59667
59695
|
|
|
59668
59696
|
const { create: create$2, keys: keys$2 } = Object;
|
|
59669
59697
|
const { stringify: stringify$1, parse: parse$1 } = JSON;
|
|
@@ -80494,7 +80522,7 @@ register({
|
|
|
80494
80522
|
configuration: { ...configurationForGraphQLAdapters },
|
|
80495
80523
|
instrument,
|
|
80496
80524
|
});
|
|
80497
|
-
// version: 1.139.
|
|
80525
|
+
// version: 1.139.2-6b03da38d
|
|
80498
80526
|
|
|
80499
80527
|
// On core the unstable adapters are re-exported with different names,
|
|
80500
80528
|
|
|
@@ -82726,7 +82754,7 @@ withDefaultLuvio((luvio) => {
|
|
|
82726
82754
|
unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
|
|
82727
82755
|
graphQLImperative = ldsAdapter;
|
|
82728
82756
|
});
|
|
82729
|
-
// version: 1.139.
|
|
82757
|
+
// version: 1.139.2-6b03da38d
|
|
82730
82758
|
|
|
82731
82759
|
var gqlApi = /*#__PURE__*/Object.freeze({
|
|
82732
82760
|
__proto__: null,
|
|
@@ -83415,4 +83443,4 @@ const { luvio } = getRuntime();
|
|
|
83415
83443
|
setDefaultLuvio({ luvio });
|
|
83416
83444
|
|
|
83417
83445
|
export { createPrimingSession, draftManager, draftQueue, executeAdapter, executeMutatingAdapter, getImperativeAdapterNames, invokeAdapter, invokeAdapterWithDraftToReplace, invokeAdapterWithMetadata, nimbusDraftQueue, registerReportObserver, setMetadataTTL, setUiApiRecordTTL, subscribeToAdapter };
|
|
83418
|
-
// version: 1.139.
|
|
83446
|
+
// version: 1.139.2-3a6e84c50
|
|
@@ -3803,7 +3803,7 @@
|
|
|
3803
3803
|
}
|
|
3804
3804
|
callbacks.push(callback);
|
|
3805
3805
|
}
|
|
3806
|
-
// version: 1.139.
|
|
3806
|
+
// version: 1.139.2-3a6e84c50
|
|
3807
3807
|
|
|
3808
3808
|
// TODO [TD-0081508]: once that TD is fulfilled we can probably change this file
|
|
3809
3809
|
function instrumentAdapter$1(createFunction, _metadata) {
|
|
@@ -15227,7 +15227,7 @@
|
|
|
15227
15227
|
updateReferenceMapWithKnownKey(ast, luvioDocumentNode);
|
|
15228
15228
|
return luvioDocumentNode;
|
|
15229
15229
|
}
|
|
15230
|
-
// version: 1.139.
|
|
15230
|
+
// version: 1.139.2-3a6e84c50
|
|
15231
15231
|
|
|
15232
15232
|
function unwrap(data) {
|
|
15233
15233
|
// The lwc-luvio bindings import a function from lwc called "unwrap".
|
|
@@ -16140,7 +16140,7 @@
|
|
|
16140
16140
|
const { apiFamily, name } = metadata;
|
|
16141
16141
|
return createGraphQLWireAdapterConstructor$1(adapter, `${apiFamily}.${name}`, luvio, astResolver);
|
|
16142
16142
|
}
|
|
16143
|
-
// version: 1.139.
|
|
16143
|
+
// version: 1.139.2-3a6e84c50
|
|
16144
16144
|
|
|
16145
16145
|
/**
|
|
16146
16146
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -43916,7 +43916,7 @@
|
|
|
43916
43916
|
dropFunction: instrumentation$2.notifyRecordUpdateAvailableDropped,
|
|
43917
43917
|
});
|
|
43918
43918
|
});
|
|
43919
|
-
// version: 1.139.
|
|
43919
|
+
// version: 1.139.2-6b03da38d
|
|
43920
43920
|
|
|
43921
43921
|
var caseSensitiveUserId = '005B0000000GR4OIAW';
|
|
43922
43922
|
|
|
@@ -46996,7 +46996,11 @@
|
|
|
46996
46996
|
}
|
|
46997
46997
|
if (objectInfoDataType === 'Double') {
|
|
46998
46998
|
if (isScalarOperatorType(operator)) {
|
|
46999
|
-
|
|
46999
|
+
// allow a float/double value to be passed
|
|
47000
|
+
// also allow an integer to be passed to a double, but not a double to an integer
|
|
47001
|
+
const isFloatOrInt = is(valueNode, 'FloatValue') ||
|
|
47002
|
+
is(valueNode, 'IntValue');
|
|
47003
|
+
return isFloatOrInt
|
|
47000
47004
|
? success({
|
|
47001
47005
|
type: 'DoubleOperator',
|
|
47002
47006
|
operator,
|
|
@@ -55845,14 +55849,24 @@
|
|
|
55845
55849
|
const filteredEntryIds = [];
|
|
55846
55850
|
// map of records to avoid requesting duplicate record keys when requesting both records and fields
|
|
55847
55851
|
const recordEntries = {};
|
|
55852
|
+
const recordViewEntries = {};
|
|
55848
55853
|
for (let i = 0, len = entriesLength; i < len; i++) {
|
|
55849
55854
|
const id = entries[i];
|
|
55850
55855
|
const recordId = extractRecordIdFromStoreKey(id);
|
|
55851
55856
|
if (recordId !== undefined) {
|
|
55852
|
-
if (
|
|
55853
|
-
|
|
55854
|
-
|
|
55855
|
-
|
|
55857
|
+
if (id.startsWith(RECORD_VIEW_ENTITY_ID_PREFIX)) {
|
|
55858
|
+
if (recordViewEntries[recordId] === undefined) {
|
|
55859
|
+
const key = getDenormalizedKey(id, recordId, luvio);
|
|
55860
|
+
recordViewEntries[recordId] = true;
|
|
55861
|
+
filteredEntryIds.push(key);
|
|
55862
|
+
}
|
|
55863
|
+
}
|
|
55864
|
+
else {
|
|
55865
|
+
if (recordEntries[recordId] === undefined) {
|
|
55866
|
+
const key = getDenormalizedKey(id, recordId, luvio);
|
|
55867
|
+
recordEntries[recordId] = true;
|
|
55868
|
+
filteredEntryIds.push(key);
|
|
55869
|
+
}
|
|
55856
55870
|
}
|
|
55857
55871
|
}
|
|
55858
55872
|
else {
|
|
@@ -55886,6 +55900,7 @@
|
|
|
55886
55900
|
const putEntries = create$2$1(null);
|
|
55887
55901
|
const keys$1 = keys$2$1(entries);
|
|
55888
55902
|
const putRecords = {};
|
|
55903
|
+
const putRecordViews = {};
|
|
55889
55904
|
const storeRecords = getStoreRecords !== undefined ? getStoreRecords() : {};
|
|
55890
55905
|
const storeMetadata = getStoreMetadata !== undefined ? getStoreMetadata() : {};
|
|
55891
55906
|
for (let i = 0, len = keys$1.length; i < len; i++) {
|
|
@@ -55894,10 +55909,18 @@
|
|
|
55894
55909
|
const recordId = extractRecordIdFromStoreKey(key);
|
|
55895
55910
|
// do not put normalized field values
|
|
55896
55911
|
if (recordId !== undefined) {
|
|
55897
|
-
const
|
|
55898
|
-
if (
|
|
55899
|
-
|
|
55912
|
+
const isRecordView = key.startsWith(RECORD_VIEW_ENTITY_ID_PREFIX);
|
|
55913
|
+
if (isRecordView) {
|
|
55914
|
+
if (putRecordViews[recordId] === true) {
|
|
55915
|
+
continue;
|
|
55916
|
+
}
|
|
55900
55917
|
}
|
|
55918
|
+
else {
|
|
55919
|
+
if (putRecords[recordId] === true) {
|
|
55920
|
+
continue;
|
|
55921
|
+
}
|
|
55922
|
+
}
|
|
55923
|
+
const recordKey = getDenormalizedKey(key, recordId, luvio);
|
|
55901
55924
|
const recordEntries = entries;
|
|
55902
55925
|
const entry = recordEntries[recordKey];
|
|
55903
55926
|
let record = entry && entry.data;
|
|
@@ -55909,7 +55932,12 @@
|
|
|
55909
55932
|
continue;
|
|
55910
55933
|
}
|
|
55911
55934
|
}
|
|
55912
|
-
|
|
55935
|
+
if (isRecordView) {
|
|
55936
|
+
putRecordViews[recordId] = true;
|
|
55937
|
+
}
|
|
55938
|
+
else {
|
|
55939
|
+
putRecords[recordId] = true;
|
|
55940
|
+
}
|
|
55913
55941
|
if (isStoreRecordError(record)) {
|
|
55914
55942
|
putEntries[recordKey] = value;
|
|
55915
55943
|
continue;
|
|
@@ -59669,7 +59697,7 @@
|
|
|
59669
59697
|
id: '@salesforce/lds-network-adapter',
|
|
59670
59698
|
instrument: instrument$1,
|
|
59671
59699
|
});
|
|
59672
|
-
// version: 1.139.
|
|
59700
|
+
// version: 1.139.2-3a6e84c50
|
|
59673
59701
|
|
|
59674
59702
|
const { create: create$2, keys: keys$2 } = Object;
|
|
59675
59703
|
const { stringify: stringify$1, parse: parse$1 } = JSON;
|
|
@@ -80500,7 +80528,7 @@
|
|
|
80500
80528
|
configuration: { ...configurationForGraphQLAdapters },
|
|
80501
80529
|
instrument,
|
|
80502
80530
|
});
|
|
80503
|
-
// version: 1.139.
|
|
80531
|
+
// version: 1.139.2-6b03da38d
|
|
80504
80532
|
|
|
80505
80533
|
// On core the unstable adapters are re-exported with different names,
|
|
80506
80534
|
|
|
@@ -82732,7 +82760,7 @@
|
|
|
82732
82760
|
unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
|
|
82733
82761
|
graphQLImperative = ldsAdapter;
|
|
82734
82762
|
});
|
|
82735
|
-
// version: 1.139.
|
|
82763
|
+
// version: 1.139.2-6b03da38d
|
|
82736
82764
|
|
|
82737
82765
|
var gqlApi = /*#__PURE__*/Object.freeze({
|
|
82738
82766
|
__proto__: null,
|
|
@@ -83438,4 +83466,4 @@
|
|
|
83438
83466
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
83439
83467
|
|
|
83440
83468
|
}));
|
|
83441
|
-
// version: 1.139.
|
|
83469
|
+
// version: 1.139.2-3a6e84c50
|