@salesforce/lwc-adapters-uiapi 1.368.0 → 1.370.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.
- package/dist/main.js +54 -4
- package/package.json +4 -4
package/dist/main.js
CHANGED
|
@@ -572,7 +572,7 @@ function createResourceParamsImpl(config, configMetadata) {
|
|
|
572
572
|
}
|
|
573
573
|
return resourceParams;
|
|
574
574
|
}
|
|
575
|
-
// engine version: 0.158.
|
|
575
|
+
// engine version: 0.158.7-bafe2646
|
|
576
576
|
|
|
577
577
|
/**
|
|
578
578
|
* Returns true if the value acts like a Promise, i.e. has a "then" function,
|
|
@@ -7469,6 +7469,14 @@ let oneStoreGetObjectInfoAdapter = undefined;
|
|
|
7469
7469
|
* One store enabled Get Object Infos adapter
|
|
7470
7470
|
*/
|
|
7471
7471
|
let oneStoreGetObjectInfosAdapter = undefined;
|
|
7472
|
+
/**
|
|
7473
|
+
* One store enabled GraphQL adapter
|
|
7474
|
+
*/
|
|
7475
|
+
let oneStoreGraphQLWireAdapter = undefined;
|
|
7476
|
+
/**
|
|
7477
|
+
* One store enabled GraphQL imperative query adapter
|
|
7478
|
+
*/
|
|
7479
|
+
let oneStoreGraphQLImperativeQueryAdapter = undefined;
|
|
7472
7480
|
/**
|
|
7473
7481
|
* Determines when to include PDL strategies for Related Lists
|
|
7474
7482
|
*/
|
|
@@ -7495,6 +7503,18 @@ const configurationForOneStoreEnabledAdapters = {
|
|
|
7495
7503
|
getGetObjectInfosAdapter: function () {
|
|
7496
7504
|
return oneStoreGetObjectInfosAdapter;
|
|
7497
7505
|
},
|
|
7506
|
+
setGraphQLWireAdapter: function (adapter) {
|
|
7507
|
+
oneStoreGraphQLWireAdapter = adapter;
|
|
7508
|
+
},
|
|
7509
|
+
getGraphQLWireAdapter: function () {
|
|
7510
|
+
return oneStoreGraphQLWireAdapter;
|
|
7511
|
+
},
|
|
7512
|
+
setGraphQLImperativeQueryAdapter: function (adapter) {
|
|
7513
|
+
oneStoreGraphQLImperativeQueryAdapter = adapter;
|
|
7514
|
+
},
|
|
7515
|
+
getGraphQLImperativeQueryAdapter: function () {
|
|
7516
|
+
return oneStoreGraphQLImperativeQueryAdapter;
|
|
7517
|
+
},
|
|
7498
7518
|
};
|
|
7499
7519
|
const getKeywordSearchResultsFactory = new Configurable();
|
|
7500
7520
|
const getListRecordsByNameFactory = new Configurable();
|
|
@@ -37435,12 +37455,19 @@ function equalsMetadata(existingMetadata, incomingMetadata) {
|
|
|
37435
37455
|
}
|
|
37436
37456
|
|
|
37437
37457
|
const TTL$g = 30000;
|
|
37438
|
-
const VERSION$1R = "
|
|
37458
|
+
const VERSION$1R = "ecedd058ac9cfc9b51de0f2c00276ce8";
|
|
37439
37459
|
function validate$E(obj, path = 'RelatedListRecordCollectionRepresentation') {
|
|
37440
37460
|
const v_error = (() => {
|
|
37441
37461
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
37442
37462
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
37443
37463
|
}
|
|
37464
|
+
if (obj.columnLabels !== undefined) {
|
|
37465
|
+
const obj_columnLabels = obj.columnLabels;
|
|
37466
|
+
const path_columnLabels = path + '.columnLabels';
|
|
37467
|
+
if (obj_columnLabels === undefined) {
|
|
37468
|
+
return new TypeError('Expected "defined" but received "' + typeof obj_columnLabels + '" (at "' + path_columnLabels + '")');
|
|
37469
|
+
}
|
|
37470
|
+
}
|
|
37444
37471
|
const obj_count = obj.count;
|
|
37445
37472
|
const path_count = path + '.count';
|
|
37446
37473
|
if (typeof obj_count !== 'number' || (typeof obj_count === 'number' && Math.floor(obj_count) !== obj_count)) {
|
|
@@ -37812,6 +37839,14 @@ const dynamicSelect$4 = function dynamicRelatedListRecordCollectionRepresentatio
|
|
|
37812
37839
|
reader.enterPath('count');
|
|
37813
37840
|
reader.readScalar('count', metadataProperties, sink);
|
|
37814
37841
|
reader.exitPath();
|
|
37842
|
+
reader.enterPath('columnLabels');
|
|
37843
|
+
reader.readObject('columnLabels', {
|
|
37844
|
+
name: 'columnLabels',
|
|
37845
|
+
kind: 'Object',
|
|
37846
|
+
// Any
|
|
37847
|
+
required: false
|
|
37848
|
+
}, source, sink);
|
|
37849
|
+
reader.exitPath();
|
|
37815
37850
|
reader.enterPath('fields');
|
|
37816
37851
|
reader.readScalarPlural('fields', source, sink, true);
|
|
37817
37852
|
reader.exitPath();
|
|
@@ -37854,6 +37889,19 @@ function equals$g(existing, incoming) {
|
|
|
37854
37889
|
if (!(existing_currentPageToken === incoming_currentPageToken)) {
|
|
37855
37890
|
return false;
|
|
37856
37891
|
}
|
|
37892
|
+
const existing_columnLabels = existing.columnLabels;
|
|
37893
|
+
const incoming_columnLabels = incoming.columnLabels;
|
|
37894
|
+
// if at least one of these optionals is defined
|
|
37895
|
+
if (existing_columnLabels !== undefined || incoming_columnLabels !== undefined) {
|
|
37896
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
37897
|
+
// not equal
|
|
37898
|
+
if (existing_columnLabels === undefined || incoming_columnLabels === undefined) {
|
|
37899
|
+
return false;
|
|
37900
|
+
}
|
|
37901
|
+
if (JSONStringify(incoming_columnLabels) !== JSONStringify(existing_columnLabels)) {
|
|
37902
|
+
return false;
|
|
37903
|
+
}
|
|
37904
|
+
}
|
|
37857
37905
|
const existing_currentPageUrl = existing.currentPageUrl;
|
|
37858
37906
|
const incoming_currentPageUrl = incoming.currentPageUrl;
|
|
37859
37907
|
if (!(existing_currentPageUrl === incoming_currentPageUrl)) {
|
|
@@ -38091,10 +38139,11 @@ function createPaginationParams(params) {
|
|
|
38091
38139
|
}
|
|
38092
38140
|
function keyBuilder$1$(luvio, params) {
|
|
38093
38141
|
return keyBuilder$20(luvio, {
|
|
38142
|
+
includeColumnLabels: params.body.includeColumnLabels || null,
|
|
38143
|
+
relatedListId: params.urlParams.relatedListId,
|
|
38094
38144
|
sortBy: params.body.sortBy || [],
|
|
38095
|
-
where: params.body.where || null,
|
|
38096
38145
|
parentRecordId: params.urlParams.parentRecordId,
|
|
38097
|
-
|
|
38146
|
+
where: params.body.where || null
|
|
38098
38147
|
});
|
|
38099
38148
|
}
|
|
38100
38149
|
function getResponseCacheKeys$j(storeKeyMap, luvio, resourceParams, response) {
|
|
@@ -38516,6 +38565,7 @@ const getRelatedListRecords_ConfigPropertyMetadata = [
|
|
|
38516
38565
|
generateParamConfigMetadata('parentRecordId', true, 0 /* UrlParameter */, 0 /* String */, false, getRecordId18),
|
|
38517
38566
|
generateParamConfigMetadata('relatedListId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
38518
38567
|
generateParamConfigMetadata('fields', false, 2 /* Body */, 0 /* String */, true),
|
|
38568
|
+
generateParamConfigMetadata('includeColumnLabels', false, 2 /* Body */, 1 /* Boolean */),
|
|
38519
38569
|
generateParamConfigMetadata('optionalFields', false, 2 /* Body */, 0 /* String */, true),
|
|
38520
38570
|
generateParamConfigMetadata('pageSize', false, 2 /* Body */, 3 /* Integer */),
|
|
38521
38571
|
generateParamConfigMetadata('pageToken', false, 2 /* Body */, 0 /* String */),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lwc-adapters-uiapi",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.370.0",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
5
5
|
"description": "UIAPI adapters with LWC bindings",
|
|
6
6
|
"module": "dist/main.js",
|
|
@@ -31,10 +31,10 @@
|
|
|
31
31
|
"clean": "rm -rf dist src/generated"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
|
-
"@salesforce/lds-adapters-uiapi": "^1.
|
|
34
|
+
"@salesforce/lds-adapters-uiapi": "^1.370.0"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@luvio/lwc-luvio": "0.158.
|
|
38
|
-
"@salesforce/lds-default-luvio": "^1.
|
|
37
|
+
"@luvio/lwc-luvio": "0.158.7",
|
|
38
|
+
"@salesforce/lds-default-luvio": "^1.370.0"
|
|
39
39
|
}
|
|
40
40
|
}
|