@salesforce/lds-worker-api 1.273.0 → 1.273.1
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.
- package/dist/sfdc/es/ldsWorkerApi.js +1 -1
- package/dist/standalone/es/lds-worker-api.js +13 -14
- package/dist/standalone/umd/lds-worker-api.js +13 -14
- package/package.json +10 -10
- package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/graphQL/snapshotdata/adapter-forward-assignedtome.adapter-snapshot.result.json +7 -7
- package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/graphQL/snapshotdata/assignedtome.adapter-snapshot.result.json +7 -7
|
@@ -1034,4 +1034,4 @@ if (process.env.NODE_ENV !== 'production') {
|
|
|
1034
1034
|
}
|
|
1035
1035
|
|
|
1036
1036
|
export { createPrimingSession, draftManager, draftQueue, evictCacheRecordsByIds, evictExpiredCacheEntries, executeAdapter, executeMutatingAdapter, getImperativeAdapterNames, invokeAdapter, invokeAdapterWithDraftToReplace, invokeAdapterWithMetadata, nimbusDraftQueue, setMetadataTTL, setUiApiRecordTTL, stopEviction, subscribeToAdapter };
|
|
1037
|
-
// version: 1.273.
|
|
1037
|
+
// version: 1.273.1-37fe48f59
|
|
@@ -4144,7 +4144,7 @@ function withDefaultLuvio(callback) {
|
|
|
4144
4144
|
}
|
|
4145
4145
|
callbacks.push(callback);
|
|
4146
4146
|
}
|
|
4147
|
-
// version: 1.273.
|
|
4147
|
+
// version: 1.273.1-37fe48f59
|
|
4148
4148
|
|
|
4149
4149
|
// TODO [TD-0081508]: once that TD is fulfilled we can probably change this file
|
|
4150
4150
|
function instrumentAdapter$1(createFunction, _metadata) {
|
|
@@ -15652,7 +15652,7 @@ function gql(literals, ...subs) {
|
|
|
15652
15652
|
}
|
|
15653
15653
|
return superResult;
|
|
15654
15654
|
}
|
|
15655
|
-
// version: 1.273.
|
|
15655
|
+
// version: 1.273.1-37fe48f59
|
|
15656
15656
|
|
|
15657
15657
|
function unwrap(data) {
|
|
15658
15658
|
// The lwc-luvio bindings import a function from lwc called "unwrap".
|
|
@@ -16577,7 +16577,7 @@ function createGraphQLWireAdapterConstructor(luvio, adapter, metadata, astResolv
|
|
|
16577
16577
|
const { apiFamily, name } = metadata;
|
|
16578
16578
|
return createGraphQLWireAdapterConstructor$1(adapter, `${apiFamily}.${name}`, luvio, astResolver);
|
|
16579
16579
|
}
|
|
16580
|
-
// version: 1.273.
|
|
16580
|
+
// version: 1.273.1-37fe48f59
|
|
16581
16581
|
|
|
16582
16582
|
/**
|
|
16583
16583
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -24817,10 +24817,11 @@ function getNameField(objectInfo, fieldApiName) {
|
|
|
24817
24817
|
// ObjectInfoRep.ReferenceToInfoRep[].nameFields[]:
|
|
24818
24818
|
// 1. If any of the arrays are empty returns `Name`
|
|
24819
24819
|
// 2. If `Name` is found in any array position then returns it
|
|
24820
|
-
//
|
|
24820
|
+
// 3. If the field has more than 1 references(polymorphic), return `Name`
|
|
24821
|
+
// 4. Else returns ObjectInfoRep.ReferenceToInfoRep[0].nameFields[0]
|
|
24821
24822
|
// Rationale for this is unclear and needs clarification.
|
|
24822
24823
|
const referenceToInfos = objectInfo.fields[fieldApiName].referenceToInfos;
|
|
24823
|
-
if (referenceToInfos.length
|
|
24824
|
+
if (referenceToInfos.length !== 1) {
|
|
24824
24825
|
return FIELD_NAME;
|
|
24825
24826
|
}
|
|
24826
24827
|
const firstReferenceNameFields = referenceToInfos[0].nameFields;
|
|
@@ -43176,7 +43177,7 @@ withDefaultLuvio((luvio) => {
|
|
|
43176
43177
|
throttle(60, 60000, createLDSAdapter(luvio, 'notifyListRecordCollectionUpdateAvailable', notifyUpdateAvailableFactory$3));
|
|
43177
43178
|
throttle(60, 60000, createLDSAdapter(luvio, 'notifyQuickActionDefaultsUpdateAvailable', notifyUpdateAvailableFactory));
|
|
43178
43179
|
});
|
|
43179
|
-
// version: 1.273.
|
|
43180
|
+
// version: 1.273.1-e93c18811
|
|
43180
43181
|
|
|
43181
43182
|
var ldsIdempotencyWriteDisabled = {
|
|
43182
43183
|
isOpen: function (e) {
|
|
@@ -51645,7 +51646,7 @@ function buildQuery(config) {
|
|
|
51645
51646
|
SELECT "${config.alias}".data
|
|
51646
51647
|
FROM lds_data "${config.alias}" ${joins.sql}
|
|
51647
51648
|
WHERE "${config.alias}".key like 'UiApi::RecordRepresentation:%'
|
|
51648
|
-
AND json_extract("${config.alias}".data, '${JSON_EXTRACT_PATH_INGESTION_APINAME}') =
|
|
51649
|
+
AND json_extract("${config.alias}".data, '${JSON_EXTRACT_PATH_INGESTION_APINAME}') = '${config.alias}'
|
|
51649
51650
|
${staleRecordsSql}
|
|
51650
51651
|
${predicates.sql}
|
|
51651
51652
|
${orderBy.sql}
|
|
@@ -51657,8 +51658,6 @@ function buildQuery(config) {
|
|
|
51657
51658
|
const bindings = [
|
|
51658
51659
|
// bindings from predicates on joins
|
|
51659
51660
|
...joins.bindings,
|
|
51660
|
-
// the api name for the main record type
|
|
51661
|
-
config.alias,
|
|
51662
51661
|
...(excludeStaleRecordsGate.isOpen({ fallback: false }) ? [config.ingestionTimestamp] : []),
|
|
51663
51662
|
// where clause and parent scope bindings
|
|
51664
51663
|
...predicates.bindings,
|
|
@@ -61108,7 +61107,7 @@ register$1({
|
|
|
61108
61107
|
id: '@salesforce/lds-network-adapter',
|
|
61109
61108
|
instrument: instrument$2,
|
|
61110
61109
|
});
|
|
61111
|
-
// version: 1.273.
|
|
61110
|
+
// version: 1.273.1-37fe48f59
|
|
61112
61111
|
|
|
61113
61112
|
const { create: create$3, keys: keys$3 } = Object;
|
|
61114
61113
|
const { stringify: stringify$1, parse: parse$1 } = JSON;
|
|
@@ -79503,7 +79502,7 @@ register$1({
|
|
|
79503
79502
|
configuration: { ...configurationForGraphQLAdapters$1 },
|
|
79504
79503
|
instrument: instrument$1,
|
|
79505
79504
|
});
|
|
79506
|
-
// version: 1.273.
|
|
79505
|
+
// version: 1.273.1-e93c18811
|
|
79507
79506
|
|
|
79508
79507
|
// On core the unstable adapters are re-exported with different names,
|
|
79509
79508
|
// we want to match them here.
|
|
@@ -81757,7 +81756,7 @@ withDefaultLuvio((luvio) => {
|
|
|
81757
81756
|
unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
|
|
81758
81757
|
graphQLImperative = ldsAdapter;
|
|
81759
81758
|
});
|
|
81760
|
-
// version: 1.273.
|
|
81759
|
+
// version: 1.273.1-e93c18811
|
|
81761
81760
|
|
|
81762
81761
|
var gqlApi = /*#__PURE__*/Object.freeze({
|
|
81763
81762
|
__proto__: null,
|
|
@@ -82455,7 +82454,7 @@ const callbacks$1 = [];
|
|
|
82455
82454
|
function register(r) {
|
|
82456
82455
|
callbacks$1.forEach((callback) => callback(r));
|
|
82457
82456
|
}
|
|
82458
|
-
// version: 1.273.
|
|
82457
|
+
// version: 1.273.1-37fe48f59
|
|
82459
82458
|
|
|
82460
82459
|
/**
|
|
82461
82460
|
* Returns true if the value acts like a Promise, i.e. has a "then" function,
|
|
@@ -87360,4 +87359,4 @@ const { luvio } = getRuntime();
|
|
|
87360
87359
|
setDefaultLuvio({ luvio });
|
|
87361
87360
|
|
|
87362
87361
|
export { createPrimingSession, draftManager, draftQueue, evictCacheRecordsByIds, evictExpiredCacheEntries, executeAdapter, executeMutatingAdapter, getImperativeAdapterNames, invokeAdapter, invokeAdapterWithDraftToReplace, invokeAdapterWithMetadata, nimbusDraftQueue, registerReportObserver, setMetadataTTL, setUiApiRecordTTL, stopEviction, subscribeToAdapter };
|
|
87363
|
-
// version: 1.273.
|
|
87362
|
+
// version: 1.273.1-37fe48f59
|
|
@@ -4150,7 +4150,7 @@
|
|
|
4150
4150
|
}
|
|
4151
4151
|
callbacks.push(callback);
|
|
4152
4152
|
}
|
|
4153
|
-
// version: 1.273.
|
|
4153
|
+
// version: 1.273.1-37fe48f59
|
|
4154
4154
|
|
|
4155
4155
|
// TODO [TD-0081508]: once that TD is fulfilled we can probably change this file
|
|
4156
4156
|
function instrumentAdapter$1(createFunction, _metadata) {
|
|
@@ -15658,7 +15658,7 @@
|
|
|
15658
15658
|
}
|
|
15659
15659
|
return superResult;
|
|
15660
15660
|
}
|
|
15661
|
-
// version: 1.273.
|
|
15661
|
+
// version: 1.273.1-37fe48f59
|
|
15662
15662
|
|
|
15663
15663
|
function unwrap(data) {
|
|
15664
15664
|
// The lwc-luvio bindings import a function from lwc called "unwrap".
|
|
@@ -16583,7 +16583,7 @@
|
|
|
16583
16583
|
const { apiFamily, name } = metadata;
|
|
16584
16584
|
return createGraphQLWireAdapterConstructor$1(adapter, `${apiFamily}.${name}`, luvio, astResolver);
|
|
16585
16585
|
}
|
|
16586
|
-
// version: 1.273.
|
|
16586
|
+
// version: 1.273.1-37fe48f59
|
|
16587
16587
|
|
|
16588
16588
|
/**
|
|
16589
16589
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -24823,10 +24823,11 @@
|
|
|
24823
24823
|
// ObjectInfoRep.ReferenceToInfoRep[].nameFields[]:
|
|
24824
24824
|
// 1. If any of the arrays are empty returns `Name`
|
|
24825
24825
|
// 2. If `Name` is found in any array position then returns it
|
|
24826
|
-
//
|
|
24826
|
+
// 3. If the field has more than 1 references(polymorphic), return `Name`
|
|
24827
|
+
// 4. Else returns ObjectInfoRep.ReferenceToInfoRep[0].nameFields[0]
|
|
24827
24828
|
// Rationale for this is unclear and needs clarification.
|
|
24828
24829
|
const referenceToInfos = objectInfo.fields[fieldApiName].referenceToInfos;
|
|
24829
|
-
if (referenceToInfos.length
|
|
24830
|
+
if (referenceToInfos.length !== 1) {
|
|
24830
24831
|
return FIELD_NAME;
|
|
24831
24832
|
}
|
|
24832
24833
|
const firstReferenceNameFields = referenceToInfos[0].nameFields;
|
|
@@ -43182,7 +43183,7 @@
|
|
|
43182
43183
|
throttle(60, 60000, createLDSAdapter(luvio, 'notifyListRecordCollectionUpdateAvailable', notifyUpdateAvailableFactory$3));
|
|
43183
43184
|
throttle(60, 60000, createLDSAdapter(luvio, 'notifyQuickActionDefaultsUpdateAvailable', notifyUpdateAvailableFactory));
|
|
43184
43185
|
});
|
|
43185
|
-
// version: 1.273.
|
|
43186
|
+
// version: 1.273.1-e93c18811
|
|
43186
43187
|
|
|
43187
43188
|
var ldsIdempotencyWriteDisabled = {
|
|
43188
43189
|
isOpen: function (e) {
|
|
@@ -51651,7 +51652,7 @@
|
|
|
51651
51652
|
SELECT "${config.alias}".data
|
|
51652
51653
|
FROM lds_data "${config.alias}" ${joins.sql}
|
|
51653
51654
|
WHERE "${config.alias}".key like 'UiApi::RecordRepresentation:%'
|
|
51654
|
-
AND json_extract("${config.alias}".data, '${JSON_EXTRACT_PATH_INGESTION_APINAME}') =
|
|
51655
|
+
AND json_extract("${config.alias}".data, '${JSON_EXTRACT_PATH_INGESTION_APINAME}') = '${config.alias}'
|
|
51655
51656
|
${staleRecordsSql}
|
|
51656
51657
|
${predicates.sql}
|
|
51657
51658
|
${orderBy.sql}
|
|
@@ -51663,8 +51664,6 @@
|
|
|
51663
51664
|
const bindings = [
|
|
51664
51665
|
// bindings from predicates on joins
|
|
51665
51666
|
...joins.bindings,
|
|
51666
|
-
// the api name for the main record type
|
|
51667
|
-
config.alias,
|
|
51668
51667
|
...(excludeStaleRecordsGate.isOpen({ fallback: false }) ? [config.ingestionTimestamp] : []),
|
|
51669
51668
|
// where clause and parent scope bindings
|
|
51670
51669
|
...predicates.bindings,
|
|
@@ -61114,7 +61113,7 @@
|
|
|
61114
61113
|
id: '@salesforce/lds-network-adapter',
|
|
61115
61114
|
instrument: instrument$2,
|
|
61116
61115
|
});
|
|
61117
|
-
// version: 1.273.
|
|
61116
|
+
// version: 1.273.1-37fe48f59
|
|
61118
61117
|
|
|
61119
61118
|
const { create: create$3, keys: keys$3 } = Object;
|
|
61120
61119
|
const { stringify: stringify$1, parse: parse$1 } = JSON;
|
|
@@ -79509,7 +79508,7 @@
|
|
|
79509
79508
|
configuration: { ...configurationForGraphQLAdapters$1 },
|
|
79510
79509
|
instrument: instrument$1,
|
|
79511
79510
|
});
|
|
79512
|
-
// version: 1.273.
|
|
79511
|
+
// version: 1.273.1-e93c18811
|
|
79513
79512
|
|
|
79514
79513
|
// On core the unstable adapters are re-exported with different names,
|
|
79515
79514
|
// we want to match them here.
|
|
@@ -81763,7 +81762,7 @@
|
|
|
81763
81762
|
unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
|
|
81764
81763
|
graphQLImperative = ldsAdapter;
|
|
81765
81764
|
});
|
|
81766
|
-
// version: 1.273.
|
|
81765
|
+
// version: 1.273.1-e93c18811
|
|
81767
81766
|
|
|
81768
81767
|
var gqlApi = /*#__PURE__*/Object.freeze({
|
|
81769
81768
|
__proto__: null,
|
|
@@ -82461,7 +82460,7 @@
|
|
|
82461
82460
|
function register(r) {
|
|
82462
82461
|
callbacks$1.forEach((callback) => callback(r));
|
|
82463
82462
|
}
|
|
82464
|
-
// version: 1.273.
|
|
82463
|
+
// version: 1.273.1-37fe48f59
|
|
82465
82464
|
|
|
82466
82465
|
/**
|
|
82467
82466
|
* Returns true if the value acts like a Promise, i.e. has a "then" function,
|
|
@@ -87384,4 +87383,4 @@
|
|
|
87384
87383
|
exports.subscribeToAdapter = subscribeToAdapter;
|
|
87385
87384
|
|
|
87386
87385
|
}));
|
|
87387
|
-
// version: 1.273.
|
|
87386
|
+
// version: 1.273.1-37fe48f59
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-worker-api",
|
|
3
|
-
"version": "1.273.
|
|
3
|
+
"version": "1.273.1",
|
|
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.273.
|
|
39
|
-
"@salesforce/lds-adapters-uiapi": "^1.273.
|
|
40
|
-
"@salesforce/lds-default-luvio": "^1.273.
|
|
41
|
-
"@salesforce/lds-drafts": "^1.273.
|
|
42
|
-
"@salesforce/lds-graphql-parser": "^1.273.
|
|
43
|
-
"@salesforce/lds-luvio-engine": "^1.273.
|
|
44
|
-
"@salesforce/lds-priming": "^1.273.
|
|
45
|
-
"@salesforce/lds-runtime-mobile": "^1.273.
|
|
46
|
-
"@salesforce/nimbus-plugin-lds": "^1.273.
|
|
38
|
+
"@salesforce/lds-adapters-graphql": "^1.273.1",
|
|
39
|
+
"@salesforce/lds-adapters-uiapi": "^1.273.1",
|
|
40
|
+
"@salesforce/lds-default-luvio": "^1.273.1",
|
|
41
|
+
"@salesforce/lds-drafts": "^1.273.1",
|
|
42
|
+
"@salesforce/lds-graphql-parser": "^1.273.1",
|
|
43
|
+
"@salesforce/lds-luvio-engine": "^1.273.1",
|
|
44
|
+
"@salesforce/lds-priming": "^1.273.1",
|
|
45
|
+
"@salesforce/lds-runtime-mobile": "^1.273.1",
|
|
46
|
+
"@salesforce/nimbus-plugin-lds": "^1.273.1",
|
|
47
47
|
"ajv": "^8.11.0",
|
|
48
48
|
"glob": "^7.1.5",
|
|
49
49
|
"nimbus-types": "^2.0.0-alpha1",
|
|
@@ -12,19 +12,19 @@
|
|
|
12
12
|
"edges": [
|
|
13
13
|
{
|
|
14
14
|
"node": {
|
|
15
|
-
"Id": "
|
|
15
|
+
"Id": "03rx0000002rCJ0AAM",
|
|
16
16
|
"_drafts": null
|
|
17
17
|
}
|
|
18
18
|
},
|
|
19
19
|
{
|
|
20
20
|
"node": {
|
|
21
|
-
"Id": "
|
|
21
|
+
"Id": "03rx0000002rCG6AAM",
|
|
22
22
|
"_drafts": null
|
|
23
23
|
}
|
|
24
24
|
},
|
|
25
25
|
{
|
|
26
26
|
"node": {
|
|
27
|
-
"Id": "
|
|
27
|
+
"Id": "03rx0000002rGYxAAM",
|
|
28
28
|
"_drafts": null
|
|
29
29
|
}
|
|
30
30
|
},
|
|
@@ -36,25 +36,25 @@
|
|
|
36
36
|
},
|
|
37
37
|
{
|
|
38
38
|
"node": {
|
|
39
|
-
"Id": "
|
|
39
|
+
"Id": "03rx0000002rGW3AAM",
|
|
40
40
|
"_drafts": null
|
|
41
41
|
}
|
|
42
42
|
},
|
|
43
43
|
{
|
|
44
44
|
"node": {
|
|
45
|
-
"Id": "
|
|
45
|
+
"Id": "03rx0000002rGT9AAM",
|
|
46
46
|
"_drafts": null
|
|
47
47
|
}
|
|
48
48
|
},
|
|
49
49
|
{
|
|
50
50
|
"node": {
|
|
51
|
-
"Id": "
|
|
51
|
+
"Id": "03rx0000002rCDCAA2",
|
|
52
52
|
"_drafts": null
|
|
53
53
|
}
|
|
54
54
|
},
|
|
55
55
|
{
|
|
56
56
|
"node": {
|
|
57
|
-
"Id": "
|
|
57
|
+
"Id": "03rx0000002rCLuAAM",
|
|
58
58
|
"_drafts": null
|
|
59
59
|
}
|
|
60
60
|
}
|
|
@@ -11,19 +11,19 @@
|
|
|
11
11
|
"edges": [
|
|
12
12
|
{
|
|
13
13
|
"node": {
|
|
14
|
-
"Id": "
|
|
14
|
+
"Id": "03rx0000002rCJ0AAM",
|
|
15
15
|
"_drafts": null
|
|
16
16
|
}
|
|
17
17
|
},
|
|
18
18
|
{
|
|
19
19
|
"node": {
|
|
20
|
-
"Id": "
|
|
20
|
+
"Id": "03rx0000002rCG6AAM",
|
|
21
21
|
"_drafts": null
|
|
22
22
|
}
|
|
23
23
|
},
|
|
24
24
|
{
|
|
25
25
|
"node": {
|
|
26
|
-
"Id": "
|
|
26
|
+
"Id": "03rx0000002rGYxAAM",
|
|
27
27
|
"_drafts": null
|
|
28
28
|
}
|
|
29
29
|
},
|
|
@@ -35,25 +35,25 @@
|
|
|
35
35
|
},
|
|
36
36
|
{
|
|
37
37
|
"node": {
|
|
38
|
-
"Id": "
|
|
38
|
+
"Id": "03rx0000002rGW3AAM",
|
|
39
39
|
"_drafts": null
|
|
40
40
|
}
|
|
41
41
|
},
|
|
42
42
|
{
|
|
43
43
|
"node": {
|
|
44
|
-
"Id": "
|
|
44
|
+
"Id": "03rx0000002rGT9AAM",
|
|
45
45
|
"_drafts": null
|
|
46
46
|
}
|
|
47
47
|
},
|
|
48
48
|
{
|
|
49
49
|
"node": {
|
|
50
|
-
"Id": "
|
|
50
|
+
"Id": "03rx0000002rCDCAA2",
|
|
51
51
|
"_drafts": null
|
|
52
52
|
}
|
|
53
53
|
},
|
|
54
54
|
{
|
|
55
55
|
"node": {
|
|
56
|
-
"Id": "
|
|
56
|
+
"Id": "03rx0000002rCLuAAM",
|
|
57
57
|
"_drafts": null
|
|
58
58
|
}
|
|
59
59
|
}
|