@salesforce/lds-adapters-uiapi 1.266.0-dev2 → 1.266.0-dev21
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/es/es2018/types/src/generated/graphql/types/type-util.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/types/AppliedSearchFilterOutputRepresentation.d.ts +37 -0
- package/dist/es/es2018/types/src/generated/types/SearchAnswersResultRepresentation.d.ts +5 -1
- package/dist/es/es2018/types/src/generated/types/SearchFilterOutputRepresentation.d.ts +1 -4
- package/dist/es/es2018/types/src/main.d.ts +1 -0
- package/dist/es/es2018/types/src/primitives/FieldId/coerce.d.ts +2 -1
- package/dist/es/es2018/types/src/primitives/FieldIdArray/coerce.d.ts +4 -1
- package/dist/es/es2018/types/src/sfdc_rest.d.ts +1 -1
- package/dist/es/es2018/uiapi-records-service.js +551 -403
- package/package.json +7 -7
- package/sfdc/graphqlAdapters.js +210 -138
- package/sfdc/index.js +354 -272
- package/sfdc/uiapi-static-functions.js +6 -4
- package/src/raml/api.raml +23 -3
|
@@ -95,7 +95,7 @@ var TypeCheckShapes;
|
|
|
95
95
|
TypeCheckShapes[TypeCheckShapes["Integer"] = 3] = "Integer";
|
|
96
96
|
TypeCheckShapes[TypeCheckShapes["Unsupported"] = 4] = "Unsupported";
|
|
97
97
|
})(TypeCheckShapes || (TypeCheckShapes = {}));
|
|
98
|
-
// engine version: 0.154.
|
|
98
|
+
// engine version: 0.154.7-dev8-fca5df34
|
|
99
99
|
|
|
100
100
|
const { keys: ObjectKeys, create: ObjectCreate } = Object;
|
|
101
101
|
|
|
@@ -131,15 +131,17 @@ function splitQualifiedFieldApiName(fieldApiName) {
|
|
|
131
131
|
/**
|
|
132
132
|
* Returns the field API name, qualified with an object name if possible.
|
|
133
133
|
* @param value The value from which to get the qualified field API name.
|
|
134
|
+
* @param onlyQualifiedFieldNames - Whether or not this function should skip fieldApiName that do not include the delimiter '.'
|
|
134
135
|
* @return The qualified field API name.
|
|
135
136
|
*/
|
|
136
|
-
function getFieldApiName(value) {
|
|
137
|
+
function getFieldApiName(value, onlyQualifiedFieldNames = false) {
|
|
137
138
|
// Note: tightening validation logic changes behavior from userland getting
|
|
138
139
|
// a server-provided error to the adapter noop'ing. In 224 we decided to not
|
|
139
|
-
// change the behavior.
|
|
140
|
+
// change the behavior. In 250 we decided to add the 'onlyQualifiedFieldName' flag to tighten the logic
|
|
141
|
+
// optionally to avoid issues with persisted invalid field names.
|
|
140
142
|
if (isString(value)) {
|
|
141
143
|
const trimmed = value.trim();
|
|
142
|
-
if (trimmed.length > 0) {
|
|
144
|
+
if (trimmed.length > 0 && (onlyQualifiedFieldNames ? trimmed.indexOf('.') > -1 : true)) {
|
|
143
145
|
return trimmed;
|
|
144
146
|
}
|
|
145
147
|
}
|
package/src/raml/api.raml
CHANGED
|
@@ -340,6 +340,24 @@ types:
|
|
|
340
340
|
type: array
|
|
341
341
|
items:
|
|
342
342
|
type: NavItemRepresentation
|
|
343
|
+
AppliedSearchFilterOutputRepresentation:
|
|
344
|
+
description: Applied filter output response.
|
|
345
|
+
type: object
|
|
346
|
+
properties:
|
|
347
|
+
fieldPath:
|
|
348
|
+
description: Field path where we should apply the filter
|
|
349
|
+
type: string
|
|
350
|
+
label:
|
|
351
|
+
description: Label for the applied filter
|
|
352
|
+
type: string | nil
|
|
353
|
+
operator:
|
|
354
|
+
description: Operator for the filter
|
|
355
|
+
type: string
|
|
356
|
+
values:
|
|
357
|
+
description: Values applied for the filter
|
|
358
|
+
type: array
|
|
359
|
+
items:
|
|
360
|
+
type: string
|
|
343
361
|
AppsRepresentation:
|
|
344
362
|
description: A list of apps accessible for current user.
|
|
345
363
|
type: object
|
|
@@ -4067,6 +4085,11 @@ types:
|
|
|
4067
4085
|
answerType:
|
|
4068
4086
|
description: The type of search answer
|
|
4069
4087
|
type: string
|
|
4088
|
+
appliedFilters:
|
|
4089
|
+
description: The list of applied filters.
|
|
4090
|
+
type: array
|
|
4091
|
+
items:
|
|
4092
|
+
type: AppliedSearchFilterOutputRepresentation
|
|
4070
4093
|
passage:
|
|
4071
4094
|
description: The record’s snippet which includes the answer
|
|
4072
4095
|
type: string
|
|
@@ -4289,9 +4312,6 @@ types:
|
|
|
4289
4312
|
description: Search filter output response.
|
|
4290
4313
|
type: object
|
|
4291
4314
|
properties:
|
|
4292
|
-
label:
|
|
4293
|
-
description: Label for the filter
|
|
4294
|
-
type: string
|
|
4295
4315
|
fieldPath:
|
|
4296
4316
|
description: Field path where we should apply the filter
|
|
4297
4317
|
type: string
|