@salesforce/lds-worker-api 1.287.0-dev4 → 1.287.0-dev6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1074,4 +1074,4 @@ if (process.env.NODE_ENV !== 'production') {
|
|
|
1074
1074
|
}
|
|
1075
1075
|
|
|
1076
1076
|
export { createPrimingSession, draftManager, draftQueue, evictCacheRecordsByIds, evictExpiredCacheEntries, executeAdapter, executeMutatingAdapter, getImperativeAdapterNames, invokeAdapter, invokeAdapterWithDraftToMerge, invokeAdapterWithDraftToReplace, invokeAdapterWithMetadata, nimbusDraftQueue, setMetadataTTL, setUiApiRecordTTL, stopEviction, subscribeToAdapter };
|
|
1077
|
-
// version: 1.287.0-
|
|
1077
|
+
// version: 1.287.0-dev6-7a58207df
|
|
@@ -2087,7 +2087,7 @@ const onlyIfCachedImplementation = function (args) {
|
|
|
2087
2087
|
headers: {},
|
|
2088
2088
|
ok: false,
|
|
2089
2089
|
status: HttpStatusCode$1.GatewayTimeout,
|
|
2090
|
-
statusText: '
|
|
2090
|
+
statusText: 'Data requested with only-if-cached policy and not found in the cache.',
|
|
2091
2091
|
errorType: 'fetchResponse',
|
|
2092
2092
|
}, refresh);
|
|
2093
2093
|
});
|
|
@@ -4062,7 +4062,7 @@ function createResourceParamsImpl(config, configMetadata) {
|
|
|
4062
4062
|
}
|
|
4063
4063
|
return resourceParams;
|
|
4064
4064
|
}
|
|
4065
|
-
// engine version: 0.154.
|
|
4065
|
+
// engine version: 0.154.17-dev1-b4f401c1
|
|
4066
4066
|
|
|
4067
4067
|
/**
|
|
4068
4068
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -4190,7 +4190,7 @@ function withDefaultLuvio(callback) {
|
|
|
4190
4190
|
}
|
|
4191
4191
|
callbacks.push(callback);
|
|
4192
4192
|
}
|
|
4193
|
-
// version: 1.287.0-
|
|
4193
|
+
// version: 1.287.0-dev6-7a58207df
|
|
4194
4194
|
|
|
4195
4195
|
// TODO [TD-0081508]: once that TD is fulfilled we can probably change this file
|
|
4196
4196
|
function instrumentAdapter$1(createFunction, _metadata) {
|
|
@@ -15698,7 +15698,7 @@ function gql(literals, ...subs) {
|
|
|
15698
15698
|
}
|
|
15699
15699
|
return superResult;
|
|
15700
15700
|
}
|
|
15701
|
-
// version: 1.287.0-
|
|
15701
|
+
// version: 1.287.0-dev6-7a58207df
|
|
15702
15702
|
|
|
15703
15703
|
function unwrap(data) {
|
|
15704
15704
|
// The lwc-luvio bindings import a function from lwc called "unwrap".
|
|
@@ -16623,7 +16623,7 @@ function createGraphQLWireAdapterConstructor(luvio, adapter, metadata, astResolv
|
|
|
16623
16623
|
const { apiFamily, name } = metadata;
|
|
16624
16624
|
return createGraphQLWireAdapterConstructor$1(adapter, `${apiFamily}.${name}`, luvio, astResolver);
|
|
16625
16625
|
}
|
|
16626
|
-
// version: 1.287.0-
|
|
16626
|
+
// version: 1.287.0-dev6-7a58207df
|
|
16627
16627
|
|
|
16628
16628
|
/**
|
|
16629
16629
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -16722,7 +16722,7 @@ var TypeCheckShapes;
|
|
|
16722
16722
|
TypeCheckShapes[TypeCheckShapes["Integer"] = 3] = "Integer";
|
|
16723
16723
|
TypeCheckShapes[TypeCheckShapes["Unsupported"] = 4] = "Unsupported";
|
|
16724
16724
|
})(TypeCheckShapes || (TypeCheckShapes = {}));
|
|
16725
|
-
// engine version: 0.154.
|
|
16725
|
+
// engine version: 0.154.17-dev1-b4f401c1
|
|
16726
16726
|
|
|
16727
16727
|
const { keys: ObjectKeys$3, create: ObjectCreate$3 } = Object;
|
|
16728
16728
|
|
|
@@ -44184,7 +44184,7 @@ withDefaultLuvio((luvio) => {
|
|
|
44184
44184
|
throttle(60, 60000, setupNotifyAllListRecordUpdateAvailable(luvio));
|
|
44185
44185
|
throttle(60, 60000, setupNotifyAllListInfoSummaryUpdateAvailable(luvio));
|
|
44186
44186
|
});
|
|
44187
|
-
// version: 1.287.0-
|
|
44187
|
+
// version: 1.287.0-dev6-cf36bd256
|
|
44188
44188
|
|
|
44189
44189
|
var ldsIdempotencyWriteDisabled = {
|
|
44190
44190
|
isOpen: function (e) {
|
|
@@ -45493,7 +45493,7 @@ function makeDurable(environment, { durableStore, instrumentation, useRevivingSt
|
|
|
45493
45493
|
// because we do not want some other code attempting to use the
|
|
45494
45494
|
// in-memory values before the durable store onChanged handler
|
|
45495
45495
|
// calls back and revives the values to in-memory
|
|
45496
|
-
environment.
|
|
45496
|
+
environment.storeDealloc(key);
|
|
45497
45497
|
};
|
|
45498
45498
|
const publishStoreMetadata = function (recordId, storeMetadata) {
|
|
45499
45499
|
validateNotDisposed();
|
|
@@ -56867,7 +56867,7 @@ function applyReferenceLinksToDraft(record, draftMetadata) {
|
|
|
56867
56867
|
const referencedRecord = referencedRecords.get(key);
|
|
56868
56868
|
recordFields[relationshipName] = {
|
|
56869
56869
|
displayValue: null,
|
|
56870
|
-
value: createLink$
|
|
56870
|
+
value: createLink$1$1(key),
|
|
56871
56871
|
};
|
|
56872
56872
|
// for custom objects, we select the 'Name' field
|
|
56873
56873
|
// otherwise we check the object info for name fields.
|
|
@@ -56895,7 +56895,7 @@ function applyReferenceLinksToDraft(record, draftMetadata) {
|
|
|
56895
56895
|
}
|
|
56896
56896
|
return { ...record, fields: recordFields };
|
|
56897
56897
|
}
|
|
56898
|
-
function createLink$
|
|
56898
|
+
function createLink$1$1(key) {
|
|
56899
56899
|
return { __ref: key };
|
|
56900
56900
|
}
|
|
56901
56901
|
function getReferenceInfoForKey(fieldName, field, luvio, objectInfo) {
|
|
@@ -56910,7 +56910,7 @@ function getReferenceInfoForKey(fieldName, field, luvio, objectInfo) {
|
|
|
56910
56910
|
referenceFieldName: relationshipName,
|
|
56911
56911
|
field: {
|
|
56912
56912
|
displayValue: null,
|
|
56913
|
-
value: createLink$
|
|
56913
|
+
value: createLink$1$1(key),
|
|
56914
56914
|
},
|
|
56915
56915
|
};
|
|
56916
56916
|
}
|
|
@@ -57373,6 +57373,9 @@ function isBackdatingFieldEditable(objectInfo, backdatingFieldName, attributeNam
|
|
|
57373
57373
|
!draftActionFieldNames.includes(backdatingFieldName));
|
|
57374
57374
|
}
|
|
57375
57375
|
|
|
57376
|
+
function createLink$2(key) {
|
|
57377
|
+
return { __ref: key };
|
|
57378
|
+
}
|
|
57376
57379
|
/**
|
|
57377
57380
|
* Records are stored in the durable store with scalar fields denormalized. This function takes that denoramlized
|
|
57378
57381
|
* durable store record representation and normalizes it back out into the format the the luvio store expects it
|
|
@@ -57383,26 +57386,25 @@ function isBackdatingFieldEditable(objectInfo, backdatingFieldName, attributeNam
|
|
|
57383
57386
|
function normalizeRecordFields(key, entry) {
|
|
57384
57387
|
const { data: record } = entry;
|
|
57385
57388
|
const { fields, links } = record;
|
|
57386
|
-
const
|
|
57389
|
+
const missingFieldLinks = keys$3$1(links);
|
|
57390
|
+
const fieldNames = keys$3$1(fields);
|
|
57387
57391
|
const normalizedFields = {};
|
|
57388
57392
|
const returnEntries = {};
|
|
57389
|
-
|
|
57390
|
-
|
|
57393
|
+
// restore fields
|
|
57394
|
+
for (let i = 0, len = fieldNames.length; i < len; i++) {
|
|
57395
|
+
const fieldName = fieldNames[i];
|
|
57391
57396
|
const field = fields[fieldName];
|
|
57397
|
+
const fieldKey = buildRecordFieldStoreKey(key, fieldName);
|
|
57398
|
+
returnEntries[fieldKey] = { data: field };
|
|
57399
|
+
normalizedFields[fieldName] = createLink$2(fieldKey);
|
|
57400
|
+
}
|
|
57401
|
+
// restore missing fields
|
|
57402
|
+
for (let i = 0, len = missingFieldLinks.length; i < len; i++) {
|
|
57403
|
+
const fieldName = missingFieldLinks[i];
|
|
57392
57404
|
const link = links[fieldName];
|
|
57393
|
-
// field is undefined for missing links
|
|
57394
|
-
if (field !== undefined) {
|
|
57395
|
-
const fieldKey = buildRecordFieldStoreKey(key, fieldName);
|
|
57396
|
-
returnEntries[fieldKey] = { data: field };
|
|
57397
|
-
}
|
|
57398
|
-
// we need to restore the undefined __ref node as it is
|
|
57399
|
-
// lost during serialization
|
|
57400
57405
|
if (link.isMissing === true) {
|
|
57401
57406
|
normalizedFields[fieldName] = { ...link, __ref: undefined };
|
|
57402
57407
|
}
|
|
57403
|
-
else {
|
|
57404
|
-
normalizedFields[fieldName] = link;
|
|
57405
|
-
}
|
|
57406
57408
|
}
|
|
57407
57409
|
returnEntries[key] = {
|
|
57408
57410
|
data: assign$3(record, { fields: normalizedFields }),
|
|
@@ -57464,7 +57466,7 @@ function buildDurableRecordRepresentation(normalizedRecord, records, pendingEntr
|
|
|
57464
57466
|
}
|
|
57465
57467
|
}
|
|
57466
57468
|
// we want to preserve fields that are missing nodes
|
|
57467
|
-
if (
|
|
57469
|
+
if (field.isMissing === true) {
|
|
57468
57470
|
links[fieldName] = field;
|
|
57469
57471
|
}
|
|
57470
57472
|
}
|
|
@@ -60119,9 +60121,11 @@ function enableObjectInfoCaching(env, ensureObjectInfoCached) {
|
|
|
60119
60121
|
let apiName = null;
|
|
60120
60122
|
let objectInfo;
|
|
60121
60123
|
if (dataIsRecord(key)) {
|
|
60124
|
+
incomingRecords.delete(key);
|
|
60122
60125
|
apiName = data.apiName;
|
|
60123
60126
|
}
|
|
60124
60127
|
else if (dataIsObjectInfo(key)) {
|
|
60128
|
+
incomingObjectInfos.delete(key);
|
|
60125
60129
|
apiName = data.apiName;
|
|
60126
60130
|
objectInfo = data;
|
|
60127
60131
|
}
|
|
@@ -61796,7 +61800,6 @@ class RecordLoaderGraphQL {
|
|
|
61796
61800
|
}, {});
|
|
61797
61801
|
fields['Id'] = { value: id, displayValue: null };
|
|
61798
61802
|
fields['RecordTypeId'] = { value: recordTypeId, displayValue: null };
|
|
61799
|
-
const links = this.generateFieldLinks(id, [...requestedFields, 'Id', 'RecordTypeId']);
|
|
61800
61803
|
return {
|
|
61801
61804
|
apiName: node[`${requiredPrefix}ApiName`],
|
|
61802
61805
|
childRelationships: {},
|
|
@@ -61818,18 +61821,9 @@ class RecordLoaderGraphQL {
|
|
|
61818
61821
|
: null,
|
|
61819
61822
|
weakEtag: node[`${requiredPrefix}WeakEtag`],
|
|
61820
61823
|
fields,
|
|
61821
|
-
links,
|
|
61824
|
+
links: {},
|
|
61822
61825
|
};
|
|
61823
61826
|
}
|
|
61824
|
-
generateFieldLinks(id, fields) {
|
|
61825
|
-
const links = {};
|
|
61826
|
-
for (const field of fields) {
|
|
61827
|
-
links[field] = {
|
|
61828
|
-
__ref: `UiApi::RecordRepresentation:${id}__fields__${field}`,
|
|
61829
|
-
};
|
|
61830
|
-
}
|
|
61831
|
-
return links;
|
|
61832
|
-
}
|
|
61833
61827
|
}
|
|
61834
61828
|
|
|
61835
61829
|
class RecordIngestor {
|
|
@@ -62423,7 +62417,7 @@ register$1({
|
|
|
62423
62417
|
id: '@salesforce/lds-network-adapter',
|
|
62424
62418
|
instrument: instrument$2,
|
|
62425
62419
|
});
|
|
62426
|
-
// version: 1.287.0-
|
|
62420
|
+
// version: 1.287.0-dev6-7a58207df
|
|
62427
62421
|
|
|
62428
62422
|
const { create: create$3, keys: keys$3 } = Object;
|
|
62429
62423
|
const { stringify: stringify$1, parse: parse$1 } = JSON;
|
|
@@ -82487,7 +82481,7 @@ register$1({
|
|
|
82487
82481
|
configuration: { ...configurationForGraphQLAdapters$1 },
|
|
82488
82482
|
instrument: instrument$1,
|
|
82489
82483
|
});
|
|
82490
|
-
// version: 1.287.0-
|
|
82484
|
+
// version: 1.287.0-dev6-cf36bd256
|
|
82491
82485
|
|
|
82492
82486
|
// On core the unstable adapters are re-exported with different names,
|
|
82493
82487
|
// we want to match them here.
|
|
@@ -84743,7 +84737,7 @@ withDefaultLuvio((luvio) => {
|
|
|
84743
84737
|
unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
|
|
84744
84738
|
graphQLImperative = ldsAdapter;
|
|
84745
84739
|
});
|
|
84746
|
-
// version: 1.287.0-
|
|
84740
|
+
// version: 1.287.0-dev6-cf36bd256
|
|
84747
84741
|
|
|
84748
84742
|
var gqlApi = /*#__PURE__*/Object.freeze({
|
|
84749
84743
|
__proto__: null,
|
|
@@ -85481,7 +85475,7 @@ const callbacks$1 = [];
|
|
|
85481
85475
|
function register(r) {
|
|
85482
85476
|
callbacks$1.forEach((callback) => callback(r));
|
|
85483
85477
|
}
|
|
85484
|
-
// version: 1.287.0-
|
|
85478
|
+
// version: 1.287.0-dev6-7a58207df
|
|
85485
85479
|
|
|
85486
85480
|
/**
|
|
85487
85481
|
* Returns true if the value acts like a Promise, i.e. has a "then" function,
|
|
@@ -90443,4 +90437,4 @@ const { luvio } = getRuntime();
|
|
|
90443
90437
|
setDefaultLuvio({ luvio });
|
|
90444
90438
|
|
|
90445
90439
|
export { createPrimingSession, draftManager, draftQueue, evictCacheRecordsByIds, evictExpiredCacheEntries, executeAdapter, executeMutatingAdapter, getImperativeAdapterNames, invokeAdapter, invokeAdapterWithDraftToMerge, invokeAdapterWithDraftToReplace, invokeAdapterWithMetadata, nimbusDraftQueue, registerReportObserver, setMetadataTTL, setUiApiRecordTTL, stopEviction, subscribeToAdapter };
|
|
90446
|
-
// version: 1.287.0-
|
|
90440
|
+
// version: 1.287.0-dev6-7a58207df
|
|
@@ -2093,7 +2093,7 @@
|
|
|
2093
2093
|
headers: {},
|
|
2094
2094
|
ok: false,
|
|
2095
2095
|
status: HttpStatusCode$1.GatewayTimeout,
|
|
2096
|
-
statusText: '
|
|
2096
|
+
statusText: 'Data requested with only-if-cached policy and not found in the cache.',
|
|
2097
2097
|
errorType: 'fetchResponse',
|
|
2098
2098
|
}, refresh);
|
|
2099
2099
|
});
|
|
@@ -4068,7 +4068,7 @@
|
|
|
4068
4068
|
}
|
|
4069
4069
|
return resourceParams;
|
|
4070
4070
|
}
|
|
4071
|
-
// engine version: 0.154.
|
|
4071
|
+
// engine version: 0.154.17-dev1-b4f401c1
|
|
4072
4072
|
|
|
4073
4073
|
/**
|
|
4074
4074
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -4196,7 +4196,7 @@
|
|
|
4196
4196
|
}
|
|
4197
4197
|
callbacks.push(callback);
|
|
4198
4198
|
}
|
|
4199
|
-
// version: 1.287.0-
|
|
4199
|
+
// version: 1.287.0-dev6-7a58207df
|
|
4200
4200
|
|
|
4201
4201
|
// TODO [TD-0081508]: once that TD is fulfilled we can probably change this file
|
|
4202
4202
|
function instrumentAdapter$1(createFunction, _metadata) {
|
|
@@ -15704,7 +15704,7 @@
|
|
|
15704
15704
|
}
|
|
15705
15705
|
return superResult;
|
|
15706
15706
|
}
|
|
15707
|
-
// version: 1.287.0-
|
|
15707
|
+
// version: 1.287.0-dev6-7a58207df
|
|
15708
15708
|
|
|
15709
15709
|
function unwrap(data) {
|
|
15710
15710
|
// The lwc-luvio bindings import a function from lwc called "unwrap".
|
|
@@ -16629,7 +16629,7 @@
|
|
|
16629
16629
|
const { apiFamily, name } = metadata;
|
|
16630
16630
|
return createGraphQLWireAdapterConstructor$1(adapter, `${apiFamily}.${name}`, luvio, astResolver);
|
|
16631
16631
|
}
|
|
16632
|
-
// version: 1.287.0-
|
|
16632
|
+
// version: 1.287.0-dev6-7a58207df
|
|
16633
16633
|
|
|
16634
16634
|
/**
|
|
16635
16635
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -16728,7 +16728,7 @@
|
|
|
16728
16728
|
TypeCheckShapes[TypeCheckShapes["Integer"] = 3] = "Integer";
|
|
16729
16729
|
TypeCheckShapes[TypeCheckShapes["Unsupported"] = 4] = "Unsupported";
|
|
16730
16730
|
})(TypeCheckShapes || (TypeCheckShapes = {}));
|
|
16731
|
-
// engine version: 0.154.
|
|
16731
|
+
// engine version: 0.154.17-dev1-b4f401c1
|
|
16732
16732
|
|
|
16733
16733
|
const { keys: ObjectKeys$3, create: ObjectCreate$3 } = Object;
|
|
16734
16734
|
|
|
@@ -44190,7 +44190,7 @@
|
|
|
44190
44190
|
throttle(60, 60000, setupNotifyAllListRecordUpdateAvailable(luvio));
|
|
44191
44191
|
throttle(60, 60000, setupNotifyAllListInfoSummaryUpdateAvailable(luvio));
|
|
44192
44192
|
});
|
|
44193
|
-
// version: 1.287.0-
|
|
44193
|
+
// version: 1.287.0-dev6-cf36bd256
|
|
44194
44194
|
|
|
44195
44195
|
var ldsIdempotencyWriteDisabled = {
|
|
44196
44196
|
isOpen: function (e) {
|
|
@@ -45499,7 +45499,7 @@
|
|
|
45499
45499
|
// because we do not want some other code attempting to use the
|
|
45500
45500
|
// in-memory values before the durable store onChanged handler
|
|
45501
45501
|
// calls back and revives the values to in-memory
|
|
45502
|
-
environment.
|
|
45502
|
+
environment.storeDealloc(key);
|
|
45503
45503
|
};
|
|
45504
45504
|
const publishStoreMetadata = function (recordId, storeMetadata) {
|
|
45505
45505
|
validateNotDisposed();
|
|
@@ -56873,7 +56873,7 @@
|
|
|
56873
56873
|
const referencedRecord = referencedRecords.get(key);
|
|
56874
56874
|
recordFields[relationshipName] = {
|
|
56875
56875
|
displayValue: null,
|
|
56876
|
-
value: createLink$
|
|
56876
|
+
value: createLink$1$1(key),
|
|
56877
56877
|
};
|
|
56878
56878
|
// for custom objects, we select the 'Name' field
|
|
56879
56879
|
// otherwise we check the object info for name fields.
|
|
@@ -56901,7 +56901,7 @@
|
|
|
56901
56901
|
}
|
|
56902
56902
|
return { ...record, fields: recordFields };
|
|
56903
56903
|
}
|
|
56904
|
-
function createLink$
|
|
56904
|
+
function createLink$1$1(key) {
|
|
56905
56905
|
return { __ref: key };
|
|
56906
56906
|
}
|
|
56907
56907
|
function getReferenceInfoForKey(fieldName, field, luvio, objectInfo) {
|
|
@@ -56916,7 +56916,7 @@
|
|
|
56916
56916
|
referenceFieldName: relationshipName,
|
|
56917
56917
|
field: {
|
|
56918
56918
|
displayValue: null,
|
|
56919
|
-
value: createLink$
|
|
56919
|
+
value: createLink$1$1(key),
|
|
56920
56920
|
},
|
|
56921
56921
|
};
|
|
56922
56922
|
}
|
|
@@ -57379,6 +57379,9 @@
|
|
|
57379
57379
|
!draftActionFieldNames.includes(backdatingFieldName));
|
|
57380
57380
|
}
|
|
57381
57381
|
|
|
57382
|
+
function createLink$2(key) {
|
|
57383
|
+
return { __ref: key };
|
|
57384
|
+
}
|
|
57382
57385
|
/**
|
|
57383
57386
|
* Records are stored in the durable store with scalar fields denormalized. This function takes that denoramlized
|
|
57384
57387
|
* durable store record representation and normalizes it back out into the format the the luvio store expects it
|
|
@@ -57389,26 +57392,25 @@
|
|
|
57389
57392
|
function normalizeRecordFields(key, entry) {
|
|
57390
57393
|
const { data: record } = entry;
|
|
57391
57394
|
const { fields, links } = record;
|
|
57392
|
-
const
|
|
57395
|
+
const missingFieldLinks = keys$3$1(links);
|
|
57396
|
+
const fieldNames = keys$3$1(fields);
|
|
57393
57397
|
const normalizedFields = {};
|
|
57394
57398
|
const returnEntries = {};
|
|
57395
|
-
|
|
57396
|
-
|
|
57399
|
+
// restore fields
|
|
57400
|
+
for (let i = 0, len = fieldNames.length; i < len; i++) {
|
|
57401
|
+
const fieldName = fieldNames[i];
|
|
57397
57402
|
const field = fields[fieldName];
|
|
57403
|
+
const fieldKey = buildRecordFieldStoreKey(key, fieldName);
|
|
57404
|
+
returnEntries[fieldKey] = { data: field };
|
|
57405
|
+
normalizedFields[fieldName] = createLink$2(fieldKey);
|
|
57406
|
+
}
|
|
57407
|
+
// restore missing fields
|
|
57408
|
+
for (let i = 0, len = missingFieldLinks.length; i < len; i++) {
|
|
57409
|
+
const fieldName = missingFieldLinks[i];
|
|
57398
57410
|
const link = links[fieldName];
|
|
57399
|
-
// field is undefined for missing links
|
|
57400
|
-
if (field !== undefined) {
|
|
57401
|
-
const fieldKey = buildRecordFieldStoreKey(key, fieldName);
|
|
57402
|
-
returnEntries[fieldKey] = { data: field };
|
|
57403
|
-
}
|
|
57404
|
-
// we need to restore the undefined __ref node as it is
|
|
57405
|
-
// lost during serialization
|
|
57406
57411
|
if (link.isMissing === true) {
|
|
57407
57412
|
normalizedFields[fieldName] = { ...link, __ref: undefined };
|
|
57408
57413
|
}
|
|
57409
|
-
else {
|
|
57410
|
-
normalizedFields[fieldName] = link;
|
|
57411
|
-
}
|
|
57412
57414
|
}
|
|
57413
57415
|
returnEntries[key] = {
|
|
57414
57416
|
data: assign$3(record, { fields: normalizedFields }),
|
|
@@ -57470,7 +57472,7 @@
|
|
|
57470
57472
|
}
|
|
57471
57473
|
}
|
|
57472
57474
|
// we want to preserve fields that are missing nodes
|
|
57473
|
-
if (
|
|
57475
|
+
if (field.isMissing === true) {
|
|
57474
57476
|
links[fieldName] = field;
|
|
57475
57477
|
}
|
|
57476
57478
|
}
|
|
@@ -60125,9 +60127,11 @@
|
|
|
60125
60127
|
let apiName = null;
|
|
60126
60128
|
let objectInfo;
|
|
60127
60129
|
if (dataIsRecord(key)) {
|
|
60130
|
+
incomingRecords.delete(key);
|
|
60128
60131
|
apiName = data.apiName;
|
|
60129
60132
|
}
|
|
60130
60133
|
else if (dataIsObjectInfo(key)) {
|
|
60134
|
+
incomingObjectInfos.delete(key);
|
|
60131
60135
|
apiName = data.apiName;
|
|
60132
60136
|
objectInfo = data;
|
|
60133
60137
|
}
|
|
@@ -61802,7 +61806,6 @@
|
|
|
61802
61806
|
}, {});
|
|
61803
61807
|
fields['Id'] = { value: id, displayValue: null };
|
|
61804
61808
|
fields['RecordTypeId'] = { value: recordTypeId, displayValue: null };
|
|
61805
|
-
const links = this.generateFieldLinks(id, [...requestedFields, 'Id', 'RecordTypeId']);
|
|
61806
61809
|
return {
|
|
61807
61810
|
apiName: node[`${requiredPrefix}ApiName`],
|
|
61808
61811
|
childRelationships: {},
|
|
@@ -61824,18 +61827,9 @@
|
|
|
61824
61827
|
: null,
|
|
61825
61828
|
weakEtag: node[`${requiredPrefix}WeakEtag`],
|
|
61826
61829
|
fields,
|
|
61827
|
-
links,
|
|
61830
|
+
links: {},
|
|
61828
61831
|
};
|
|
61829
61832
|
}
|
|
61830
|
-
generateFieldLinks(id, fields) {
|
|
61831
|
-
const links = {};
|
|
61832
|
-
for (const field of fields) {
|
|
61833
|
-
links[field] = {
|
|
61834
|
-
__ref: `UiApi::RecordRepresentation:${id}__fields__${field}`,
|
|
61835
|
-
};
|
|
61836
|
-
}
|
|
61837
|
-
return links;
|
|
61838
|
-
}
|
|
61839
61833
|
}
|
|
61840
61834
|
|
|
61841
61835
|
class RecordIngestor {
|
|
@@ -62429,7 +62423,7 @@
|
|
|
62429
62423
|
id: '@salesforce/lds-network-adapter',
|
|
62430
62424
|
instrument: instrument$2,
|
|
62431
62425
|
});
|
|
62432
|
-
// version: 1.287.0-
|
|
62426
|
+
// version: 1.287.0-dev6-7a58207df
|
|
62433
62427
|
|
|
62434
62428
|
const { create: create$3, keys: keys$3 } = Object;
|
|
62435
62429
|
const { stringify: stringify$1, parse: parse$1 } = JSON;
|
|
@@ -82493,7 +82487,7 @@
|
|
|
82493
82487
|
configuration: { ...configurationForGraphQLAdapters$1 },
|
|
82494
82488
|
instrument: instrument$1,
|
|
82495
82489
|
});
|
|
82496
|
-
// version: 1.287.0-
|
|
82490
|
+
// version: 1.287.0-dev6-cf36bd256
|
|
82497
82491
|
|
|
82498
82492
|
// On core the unstable adapters are re-exported with different names,
|
|
82499
82493
|
// we want to match them here.
|
|
@@ -84749,7 +84743,7 @@
|
|
|
84749
84743
|
unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
|
|
84750
84744
|
graphQLImperative = ldsAdapter;
|
|
84751
84745
|
});
|
|
84752
|
-
// version: 1.287.0-
|
|
84746
|
+
// version: 1.287.0-dev6-cf36bd256
|
|
84753
84747
|
|
|
84754
84748
|
var gqlApi = /*#__PURE__*/Object.freeze({
|
|
84755
84749
|
__proto__: null,
|
|
@@ -85487,7 +85481,7 @@
|
|
|
85487
85481
|
function register(r) {
|
|
85488
85482
|
callbacks$1.forEach((callback) => callback(r));
|
|
85489
85483
|
}
|
|
85490
|
-
// version: 1.287.0-
|
|
85484
|
+
// version: 1.287.0-dev6-7a58207df
|
|
85491
85485
|
|
|
85492
85486
|
/**
|
|
85493
85487
|
* Returns true if the value acts like a Promise, i.e. has a "then" function,
|
|
@@ -90468,4 +90462,4 @@
|
|
|
90468
90462
|
exports.subscribeToAdapter = subscribeToAdapter;
|
|
90469
90463
|
|
|
90470
90464
|
}));
|
|
90471
|
-
// version: 1.287.0-
|
|
90465
|
+
// version: 1.287.0-dev6-7a58207df
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-worker-api",
|
|
3
|
-
"version": "1.287.0-
|
|
3
|
+
"version": "1.287.0-dev6",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
5
5
|
"description": "",
|
|
6
6
|
"main": "dist/standalone/es/lds-worker-api.js",
|
|
@@ -35,15 +35,15 @@
|
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@oat-sa/rollup-plugin-wildcard-external": "^1.0.0",
|
|
38
|
-
"@salesforce/lds-adapters-graphql": "^1.287.0-
|
|
39
|
-
"@salesforce/lds-adapters-uiapi": "^1.287.0-
|
|
40
|
-
"@salesforce/lds-default-luvio": "^1.287.0-
|
|
41
|
-
"@salesforce/lds-drafts": "^1.287.0-
|
|
42
|
-
"@salesforce/lds-graphql-parser": "^1.287.0-
|
|
43
|
-
"@salesforce/lds-luvio-engine": "^1.287.0-
|
|
44
|
-
"@salesforce/lds-priming": "^1.287.0-
|
|
45
|
-
"@salesforce/lds-runtime-mobile": "^1.287.0-
|
|
46
|
-
"@salesforce/nimbus-plugin-lds": "^1.287.0-
|
|
38
|
+
"@salesforce/lds-adapters-graphql": "^1.287.0-dev6",
|
|
39
|
+
"@salesforce/lds-adapters-uiapi": "^1.287.0-dev6",
|
|
40
|
+
"@salesforce/lds-default-luvio": "^1.287.0-dev6",
|
|
41
|
+
"@salesforce/lds-drafts": "^1.287.0-dev6",
|
|
42
|
+
"@salesforce/lds-graphql-parser": "^1.287.0-dev6",
|
|
43
|
+
"@salesforce/lds-luvio-engine": "^1.287.0-dev6",
|
|
44
|
+
"@salesforce/lds-priming": "^1.287.0-dev6",
|
|
45
|
+
"@salesforce/lds-runtime-mobile": "^1.287.0-dev6",
|
|
46
|
+
"@salesforce/nimbus-plugin-lds": "^1.287.0-dev6",
|
|
47
47
|
"ajv": "^8.11.0",
|
|
48
48
|
"glob": "^7.1.5",
|
|
49
49
|
"nimbus-types": "^2.0.0-alpha1",
|