@salesforce/lds-runtime-mobile 1.128.1 → 1.129.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/main.js +16 -5
- package/package.json +1 -1
- package/sfdc/main.js +16 -5
package/dist/main.js
CHANGED
|
@@ -6872,9 +6872,18 @@ function filterToPredicates(where, recordType, alias, objectInfoMap, joins, draf
|
|
|
6872
6872
|
const makePredicate = fieldInfo.dataType === 'MultiPicklist'
|
|
6873
6873
|
? createMultiPicklistPredicate
|
|
6874
6874
|
: createSinglePredicate;
|
|
6875
|
-
|
|
6876
|
-
|
|
6877
|
-
|
|
6875
|
+
const predicate = makePredicate(idProcessingNeeded ? sanitizePredicateIDValue(value, draftFunctions) : value, operator, fieldInfo, alias);
|
|
6876
|
+
// for the case where we have a not equals predicate that's value is not null
|
|
6877
|
+
// we need to compound into an or statement to also inlcude the null values for that field
|
|
6878
|
+
if (operator === '!=' && typeof value === 'string') {
|
|
6879
|
+
// create a is null predicate
|
|
6880
|
+
const isNullPredicate = createSinglePredicate(null, '=', fieldInfo, alias);
|
|
6881
|
+
// compound the predicates into an or predicate
|
|
6882
|
+
predicates.push(transformCompoundPredicate('or', [predicate, isNullPredicate]));
|
|
6883
|
+
}
|
|
6884
|
+
else {
|
|
6885
|
+
predicates.push(predicate);
|
|
6886
|
+
}
|
|
6878
6887
|
}
|
|
6879
6888
|
}
|
|
6880
6889
|
}
|
|
@@ -12331,8 +12340,9 @@ function draftAwareGraphQLAdapterFactory(userId, objectInfoService, store, luvio
|
|
|
12331
12340
|
if (!rebuildResult.errors) {
|
|
12332
12341
|
rebuildResult = removeSyntheticFields(rebuildResult, config.query);
|
|
12333
12342
|
}
|
|
12343
|
+
// 'originalSnapshot' is the local eval snapshot subscribed. It is always in 'Fulfilled' state. This behavior would change once W-1273462(rebuild non-evaluated snapshot when the graphql local eval rebuild is triggered) is resolved.
|
|
12334
12344
|
return {
|
|
12335
|
-
...
|
|
12345
|
+
...originalSnapshot,
|
|
12336
12346
|
data: rebuildResult,
|
|
12337
12347
|
recordId,
|
|
12338
12348
|
seenRecords: createSeenRecords(seenRecordIds, nonEvaluatedSnapshot),
|
|
@@ -14864,6 +14874,7 @@ function formatDisplayValue(value, datatype) {
|
|
|
14864
14874
|
}
|
|
14865
14875
|
}
|
|
14866
14876
|
|
|
14877
|
+
//TODO: [W-12734162] - rebuild non-evaluated snapshot when graph rebuild is triggered. The dependency work on luvio needs to be done.
|
|
14867
14878
|
function makeEnvironmentGraphqlAware(environment) {
|
|
14868
14879
|
const rebuildSnapshot = function (snapshot, onRebuild) {
|
|
14869
14880
|
if (isStoreEvalSnapshot(snapshot)) {
|
|
@@ -15625,4 +15636,4 @@ register({
|
|
|
15625
15636
|
});
|
|
15626
15637
|
|
|
15627
15638
|
export { getRuntime, registerReportObserver, reportGraphqlQueryParseError };
|
|
15628
|
-
// version: 1.
|
|
15639
|
+
// version: 1.129.1-eb59a8867
|
package/package.json
CHANGED
package/sfdc/main.js
CHANGED
|
@@ -6872,9 +6872,18 @@ function filterToPredicates(where, recordType, alias, objectInfoMap, joins, draf
|
|
|
6872
6872
|
const makePredicate = fieldInfo.dataType === 'MultiPicklist'
|
|
6873
6873
|
? createMultiPicklistPredicate
|
|
6874
6874
|
: createSinglePredicate;
|
|
6875
|
-
|
|
6876
|
-
|
|
6877
|
-
|
|
6875
|
+
const predicate = makePredicate(idProcessingNeeded ? sanitizePredicateIDValue(value, draftFunctions) : value, operator, fieldInfo, alias);
|
|
6876
|
+
// for the case where we have a not equals predicate that's value is not null
|
|
6877
|
+
// we need to compound into an or statement to also inlcude the null values for that field
|
|
6878
|
+
if (operator === '!=' && typeof value === 'string') {
|
|
6879
|
+
// create a is null predicate
|
|
6880
|
+
const isNullPredicate = createSinglePredicate(null, '=', fieldInfo, alias);
|
|
6881
|
+
// compound the predicates into an or predicate
|
|
6882
|
+
predicates.push(transformCompoundPredicate('or', [predicate, isNullPredicate]));
|
|
6883
|
+
}
|
|
6884
|
+
else {
|
|
6885
|
+
predicates.push(predicate);
|
|
6886
|
+
}
|
|
6878
6887
|
}
|
|
6879
6888
|
}
|
|
6880
6889
|
}
|
|
@@ -12331,8 +12340,9 @@ function draftAwareGraphQLAdapterFactory(userId, objectInfoService, store, luvio
|
|
|
12331
12340
|
if (!rebuildResult.errors) {
|
|
12332
12341
|
rebuildResult = removeSyntheticFields(rebuildResult, config.query);
|
|
12333
12342
|
}
|
|
12343
|
+
// 'originalSnapshot' is the local eval snapshot subscribed. It is always in 'Fulfilled' state. This behavior would change once W-1273462(rebuild non-evaluated snapshot when the graphql local eval rebuild is triggered) is resolved.
|
|
12334
12344
|
return {
|
|
12335
|
-
...
|
|
12345
|
+
...originalSnapshot,
|
|
12336
12346
|
data: rebuildResult,
|
|
12337
12347
|
recordId,
|
|
12338
12348
|
seenRecords: createSeenRecords(seenRecordIds, nonEvaluatedSnapshot),
|
|
@@ -14864,6 +14874,7 @@ function formatDisplayValue(value, datatype) {
|
|
|
14864
14874
|
}
|
|
14865
14875
|
}
|
|
14866
14876
|
|
|
14877
|
+
//TODO: [W-12734162] - rebuild non-evaluated snapshot when graph rebuild is triggered. The dependency work on luvio needs to be done.
|
|
14867
14878
|
function makeEnvironmentGraphqlAware(environment) {
|
|
14868
14879
|
const rebuildSnapshot = function (snapshot, onRebuild) {
|
|
14869
14880
|
if (isStoreEvalSnapshot(snapshot)) {
|
|
@@ -15625,4 +15636,4 @@ register({
|
|
|
15625
15636
|
});
|
|
15626
15637
|
|
|
15627
15638
|
export { getRuntime, registerReportObserver, reportGraphqlQueryParseError };
|
|
15628
|
-
// version: 1.
|
|
15639
|
+
// version: 1.129.1-eb59a8867
|