@salesforce/lds-worker-api 1.288.0 → 1.289.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.
|
@@ -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.
|
|
1077
|
+
// version: 1.289.0-5ba45a0a4
|
|
@@ -4190,7 +4190,7 @@ function withDefaultLuvio(callback) {
|
|
|
4190
4190
|
}
|
|
4191
4191
|
callbacks.push(callback);
|
|
4192
4192
|
}
|
|
4193
|
-
// version: 1.
|
|
4193
|
+
// version: 1.289.0-5ba45a0a4
|
|
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.
|
|
15701
|
+
// version: 1.289.0-5ba45a0a4
|
|
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.
|
|
16626
|
+
// version: 1.289.0-5ba45a0a4
|
|
16627
16627
|
|
|
16628
16628
|
/**
|
|
16629
16629
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -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.
|
|
44187
|
+
// version: 1.289.0-72256e363
|
|
44188
44188
|
|
|
44189
44189
|
var ldsIdempotencyWriteDisabled = {
|
|
44190
44190
|
isOpen: function (e) {
|
|
@@ -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
|
}
|
|
@@ -61798,7 +61800,6 @@ class RecordLoaderGraphQL {
|
|
|
61798
61800
|
}, {});
|
|
61799
61801
|
fields['Id'] = { value: id, displayValue: null };
|
|
61800
61802
|
fields['RecordTypeId'] = { value: recordTypeId, displayValue: null };
|
|
61801
|
-
const links = this.generateFieldLinks(id, [...requestedFields, 'Id', 'RecordTypeId']);
|
|
61802
61803
|
return {
|
|
61803
61804
|
apiName: node[`${requiredPrefix}ApiName`],
|
|
61804
61805
|
childRelationships: {},
|
|
@@ -61820,18 +61821,9 @@ class RecordLoaderGraphQL {
|
|
|
61820
61821
|
: null,
|
|
61821
61822
|
weakEtag: node[`${requiredPrefix}WeakEtag`],
|
|
61822
61823
|
fields,
|
|
61823
|
-
links,
|
|
61824
|
+
links: {},
|
|
61824
61825
|
};
|
|
61825
61826
|
}
|
|
61826
|
-
generateFieldLinks(id, fields) {
|
|
61827
|
-
const links = {};
|
|
61828
|
-
for (const field of fields) {
|
|
61829
|
-
links[field] = {
|
|
61830
|
-
__ref: `UiApi::RecordRepresentation:${id}__fields__${field}`,
|
|
61831
|
-
};
|
|
61832
|
-
}
|
|
61833
|
-
return links;
|
|
61834
|
-
}
|
|
61835
61827
|
}
|
|
61836
61828
|
|
|
61837
61829
|
class RecordIngestor {
|
|
@@ -62425,7 +62417,7 @@ register$1({
|
|
|
62425
62417
|
id: '@salesforce/lds-network-adapter',
|
|
62426
62418
|
instrument: instrument$2,
|
|
62427
62419
|
});
|
|
62428
|
-
// version: 1.
|
|
62420
|
+
// version: 1.289.0-5ba45a0a4
|
|
62429
62421
|
|
|
62430
62422
|
const { create: create$3, keys: keys$3 } = Object;
|
|
62431
62423
|
const { stringify: stringify$1, parse: parse$1 } = JSON;
|
|
@@ -78827,6 +78819,29 @@ function getInContextFragmentType$d(fragment, fragmentMap) {
|
|
|
78827
78819
|
return sharedGetFragmentType(fragment, fragmentMap);
|
|
78828
78820
|
}
|
|
78829
78821
|
|
|
78822
|
+
function getFieldType$b(field) {
|
|
78823
|
+
const fieldName = field.name.value;
|
|
78824
|
+
switch (fieldName) {
|
|
78825
|
+
case '__typename': {
|
|
78826
|
+
return {
|
|
78827
|
+
isArray: false,
|
|
78828
|
+
typename: 'String',
|
|
78829
|
+
};
|
|
78830
|
+
}
|
|
78831
|
+
/*
|
|
78832
|
+
Probably should use metaschema like the RecordQuery graphql-artifact,
|
|
78833
|
+
but this type only has one generic type possible. Also, the most likely scenario for future schema additions,
|
|
78834
|
+
is UISDK adding the the parent of this type, Setup__Setup. Therefore, we will just default to SetupConnection so that
|
|
78835
|
+
query authors don't need to use metaschema when there's no real decision point in this type.
|
|
78836
|
+
*/
|
|
78837
|
+
default:
|
|
78838
|
+
return {
|
|
78839
|
+
isArray: false,
|
|
78840
|
+
typename: 'Setup__SetupConnection',
|
|
78841
|
+
};
|
|
78842
|
+
}
|
|
78843
|
+
}
|
|
78844
|
+
|
|
78830
78845
|
const name$2 = 'Setup__SetupQuery';
|
|
78831
78846
|
const VERSION$a = 'b89cccb5fa5e458d89dc1137af3e5469';
|
|
78832
78847
|
function keyBuilder$6(luvio, path, data) {
|
|
@@ -78944,24 +78959,6 @@ function getTypeCacheKeys$3(cacheKeySink, astNode, state) {
|
|
|
78944
78959
|
}
|
|
78945
78960
|
// Deal with mapped types' cache keys
|
|
78946
78961
|
}
|
|
78947
|
-
function getFieldType$b(field) {
|
|
78948
|
-
switch (field.name.value) {
|
|
78949
|
-
case '__typename': {
|
|
78950
|
-
return {
|
|
78951
|
-
isArray: false,
|
|
78952
|
-
typename: 'String'
|
|
78953
|
-
};
|
|
78954
|
-
}
|
|
78955
|
-
case 'recordQuery': {
|
|
78956
|
-
return {
|
|
78957
|
-
isArray: false,
|
|
78958
|
-
typename: 'Setup__SetupConnection'
|
|
78959
|
-
};
|
|
78960
|
-
}
|
|
78961
|
-
default:
|
|
78962
|
-
return undefined;
|
|
78963
|
-
}
|
|
78964
|
-
}
|
|
78965
78962
|
function ingestFieldByType$2(typename, parentKey, requestedField, sink, fieldKey, fieldData, state) {
|
|
78966
78963
|
// TODO: add validation logic to only allow nullable fields to be null in the future
|
|
78967
78964
|
if (fieldData === null) {
|
|
@@ -82484,7 +82481,7 @@ register$1({
|
|
|
82484
82481
|
configuration: { ...configurationForGraphQLAdapters$1 },
|
|
82485
82482
|
instrument: instrument$1,
|
|
82486
82483
|
});
|
|
82487
|
-
// version: 1.
|
|
82484
|
+
// version: 1.289.0-72256e363
|
|
82488
82485
|
|
|
82489
82486
|
// On core the unstable adapters are re-exported with different names,
|
|
82490
82487
|
// we want to match them here.
|
|
@@ -84740,7 +84737,7 @@ withDefaultLuvio((luvio) => {
|
|
|
84740
84737
|
unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
|
|
84741
84738
|
graphQLImperative = ldsAdapter;
|
|
84742
84739
|
});
|
|
84743
|
-
// version: 1.
|
|
84740
|
+
// version: 1.289.0-72256e363
|
|
84744
84741
|
|
|
84745
84742
|
var gqlApi = /*#__PURE__*/Object.freeze({
|
|
84746
84743
|
__proto__: null,
|
|
@@ -85478,7 +85475,7 @@ const callbacks$1 = [];
|
|
|
85478
85475
|
function register(r) {
|
|
85479
85476
|
callbacks$1.forEach((callback) => callback(r));
|
|
85480
85477
|
}
|
|
85481
|
-
// version: 1.
|
|
85478
|
+
// version: 1.289.0-5ba45a0a4
|
|
85482
85479
|
|
|
85483
85480
|
/**
|
|
85484
85481
|
* Returns true if the value acts like a Promise, i.e. has a "then" function,
|
|
@@ -90440,4 +90437,4 @@ const { luvio } = getRuntime();
|
|
|
90440
90437
|
setDefaultLuvio({ luvio });
|
|
90441
90438
|
|
|
90442
90439
|
export { createPrimingSession, draftManager, draftQueue, evictCacheRecordsByIds, evictExpiredCacheEntries, executeAdapter, executeMutatingAdapter, getImperativeAdapterNames, invokeAdapter, invokeAdapterWithDraftToMerge, invokeAdapterWithDraftToReplace, invokeAdapterWithMetadata, nimbusDraftQueue, registerReportObserver, setMetadataTTL, setUiApiRecordTTL, stopEviction, subscribeToAdapter };
|
|
90443
|
-
// version: 1.
|
|
90440
|
+
// version: 1.289.0-5ba45a0a4
|
|
@@ -4196,7 +4196,7 @@
|
|
|
4196
4196
|
}
|
|
4197
4197
|
callbacks.push(callback);
|
|
4198
4198
|
}
|
|
4199
|
-
// version: 1.
|
|
4199
|
+
// version: 1.289.0-5ba45a0a4
|
|
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.
|
|
15707
|
+
// version: 1.289.0-5ba45a0a4
|
|
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.
|
|
16632
|
+
// version: 1.289.0-5ba45a0a4
|
|
16633
16633
|
|
|
16634
16634
|
/**
|
|
16635
16635
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -44190,7 +44190,7 @@
|
|
|
44190
44190
|
throttle(60, 60000, setupNotifyAllListRecordUpdateAvailable(luvio));
|
|
44191
44191
|
throttle(60, 60000, setupNotifyAllListInfoSummaryUpdateAvailable(luvio));
|
|
44192
44192
|
});
|
|
44193
|
-
// version: 1.
|
|
44193
|
+
// version: 1.289.0-72256e363
|
|
44194
44194
|
|
|
44195
44195
|
var ldsIdempotencyWriteDisabled = {
|
|
44196
44196
|
isOpen: function (e) {
|
|
@@ -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
|
}
|
|
@@ -61804,7 +61806,6 @@
|
|
|
61804
61806
|
}, {});
|
|
61805
61807
|
fields['Id'] = { value: id, displayValue: null };
|
|
61806
61808
|
fields['RecordTypeId'] = { value: recordTypeId, displayValue: null };
|
|
61807
|
-
const links = this.generateFieldLinks(id, [...requestedFields, 'Id', 'RecordTypeId']);
|
|
61808
61809
|
return {
|
|
61809
61810
|
apiName: node[`${requiredPrefix}ApiName`],
|
|
61810
61811
|
childRelationships: {},
|
|
@@ -61826,18 +61827,9 @@
|
|
|
61826
61827
|
: null,
|
|
61827
61828
|
weakEtag: node[`${requiredPrefix}WeakEtag`],
|
|
61828
61829
|
fields,
|
|
61829
|
-
links,
|
|
61830
|
+
links: {},
|
|
61830
61831
|
};
|
|
61831
61832
|
}
|
|
61832
|
-
generateFieldLinks(id, fields) {
|
|
61833
|
-
const links = {};
|
|
61834
|
-
for (const field of fields) {
|
|
61835
|
-
links[field] = {
|
|
61836
|
-
__ref: `UiApi::RecordRepresentation:${id}__fields__${field}`,
|
|
61837
|
-
};
|
|
61838
|
-
}
|
|
61839
|
-
return links;
|
|
61840
|
-
}
|
|
61841
61833
|
}
|
|
61842
61834
|
|
|
61843
61835
|
class RecordIngestor {
|
|
@@ -62431,7 +62423,7 @@
|
|
|
62431
62423
|
id: '@salesforce/lds-network-adapter',
|
|
62432
62424
|
instrument: instrument$2,
|
|
62433
62425
|
});
|
|
62434
|
-
// version: 1.
|
|
62426
|
+
// version: 1.289.0-5ba45a0a4
|
|
62435
62427
|
|
|
62436
62428
|
const { create: create$3, keys: keys$3 } = Object;
|
|
62437
62429
|
const { stringify: stringify$1, parse: parse$1 } = JSON;
|
|
@@ -78833,6 +78825,29 @@
|
|
|
78833
78825
|
return sharedGetFragmentType(fragment, fragmentMap);
|
|
78834
78826
|
}
|
|
78835
78827
|
|
|
78828
|
+
function getFieldType$b(field) {
|
|
78829
|
+
const fieldName = field.name.value;
|
|
78830
|
+
switch (fieldName) {
|
|
78831
|
+
case '__typename': {
|
|
78832
|
+
return {
|
|
78833
|
+
isArray: false,
|
|
78834
|
+
typename: 'String',
|
|
78835
|
+
};
|
|
78836
|
+
}
|
|
78837
|
+
/*
|
|
78838
|
+
Probably should use metaschema like the RecordQuery graphql-artifact,
|
|
78839
|
+
but this type only has one generic type possible. Also, the most likely scenario for future schema additions,
|
|
78840
|
+
is UISDK adding the the parent of this type, Setup__Setup. Therefore, we will just default to SetupConnection so that
|
|
78841
|
+
query authors don't need to use metaschema when there's no real decision point in this type.
|
|
78842
|
+
*/
|
|
78843
|
+
default:
|
|
78844
|
+
return {
|
|
78845
|
+
isArray: false,
|
|
78846
|
+
typename: 'Setup__SetupConnection',
|
|
78847
|
+
};
|
|
78848
|
+
}
|
|
78849
|
+
}
|
|
78850
|
+
|
|
78836
78851
|
const name$2 = 'Setup__SetupQuery';
|
|
78837
78852
|
const VERSION$a = 'b89cccb5fa5e458d89dc1137af3e5469';
|
|
78838
78853
|
function keyBuilder$6(luvio, path, data) {
|
|
@@ -78950,24 +78965,6 @@
|
|
|
78950
78965
|
}
|
|
78951
78966
|
// Deal with mapped types' cache keys
|
|
78952
78967
|
}
|
|
78953
|
-
function getFieldType$b(field) {
|
|
78954
|
-
switch (field.name.value) {
|
|
78955
|
-
case '__typename': {
|
|
78956
|
-
return {
|
|
78957
|
-
isArray: false,
|
|
78958
|
-
typename: 'String'
|
|
78959
|
-
};
|
|
78960
|
-
}
|
|
78961
|
-
case 'recordQuery': {
|
|
78962
|
-
return {
|
|
78963
|
-
isArray: false,
|
|
78964
|
-
typename: 'Setup__SetupConnection'
|
|
78965
|
-
};
|
|
78966
|
-
}
|
|
78967
|
-
default:
|
|
78968
|
-
return undefined;
|
|
78969
|
-
}
|
|
78970
|
-
}
|
|
78971
78968
|
function ingestFieldByType$2(typename, parentKey, requestedField, sink, fieldKey, fieldData, state) {
|
|
78972
78969
|
// TODO: add validation logic to only allow nullable fields to be null in the future
|
|
78973
78970
|
if (fieldData === null) {
|
|
@@ -82490,7 +82487,7 @@
|
|
|
82490
82487
|
configuration: { ...configurationForGraphQLAdapters$1 },
|
|
82491
82488
|
instrument: instrument$1,
|
|
82492
82489
|
});
|
|
82493
|
-
// version: 1.
|
|
82490
|
+
// version: 1.289.0-72256e363
|
|
82494
82491
|
|
|
82495
82492
|
// On core the unstable adapters are re-exported with different names,
|
|
82496
82493
|
// we want to match them here.
|
|
@@ -84746,7 +84743,7 @@
|
|
|
84746
84743
|
unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
|
|
84747
84744
|
graphQLImperative = ldsAdapter;
|
|
84748
84745
|
});
|
|
84749
|
-
// version: 1.
|
|
84746
|
+
// version: 1.289.0-72256e363
|
|
84750
84747
|
|
|
84751
84748
|
var gqlApi = /*#__PURE__*/Object.freeze({
|
|
84752
84749
|
__proto__: null,
|
|
@@ -85484,7 +85481,7 @@
|
|
|
85484
85481
|
function register(r) {
|
|
85485
85482
|
callbacks$1.forEach((callback) => callback(r));
|
|
85486
85483
|
}
|
|
85487
|
-
// version: 1.
|
|
85484
|
+
// version: 1.289.0-5ba45a0a4
|
|
85488
85485
|
|
|
85489
85486
|
/**
|
|
85490
85487
|
* Returns true if the value acts like a Promise, i.e. has a "then" function,
|
|
@@ -90465,4 +90462,4 @@
|
|
|
90465
90462
|
exports.subscribeToAdapter = subscribeToAdapter;
|
|
90466
90463
|
|
|
90467
90464
|
}));
|
|
90468
|
-
// version: 1.
|
|
90465
|
+
// version: 1.289.0-5ba45a0a4
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-worker-api",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.289.0",
|
|
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.
|
|
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-priming": "^1.
|
|
45
|
-
"@salesforce/lds-runtime-mobile": "^1.
|
|
46
|
-
"@salesforce/nimbus-plugin-lds": "^1.
|
|
38
|
+
"@salesforce/lds-adapters-graphql": "^1.289.0",
|
|
39
|
+
"@salesforce/lds-adapters-uiapi": "^1.289.0",
|
|
40
|
+
"@salesforce/lds-default-luvio": "^1.289.0",
|
|
41
|
+
"@salesforce/lds-drafts": "^1.289.0",
|
|
42
|
+
"@salesforce/lds-graphql-parser": "^1.289.0",
|
|
43
|
+
"@salesforce/lds-luvio-engine": "^1.289.0",
|
|
44
|
+
"@salesforce/lds-priming": "^1.289.0",
|
|
45
|
+
"@salesforce/lds-runtime-mobile": "^1.289.0",
|
|
46
|
+
"@salesforce/nimbus-plugin-lds": "^1.289.0",
|
|
47
47
|
"ajv": "^8.11.0",
|
|
48
48
|
"glob": "^7.1.5",
|
|
49
49
|
"nimbus-types": "^2.0.0-alpha1",
|