@cparra/apexdocs 3.7.0 → 3.7.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/cli/generate.js
CHANGED
package/dist/index.js
CHANGED
|
@@ -1942,12 +1942,19 @@ function toPickListValues(customField) {
|
|
|
1942
1942
|
const valueSetDefinition = valueSet.valueSetDefinition;
|
|
1943
1943
|
if ("value" in valueSetDefinition) {
|
|
1944
1944
|
const pickListValues = valueSetDefinition.value;
|
|
1945
|
-
|
|
1945
|
+
if (isArrayOfValues(pickListValues)) {
|
|
1946
|
+
return pickListValues.filter((each) => "fullName" in each).map((current) => current.fullName);
|
|
1947
|
+
} else {
|
|
1948
|
+
return [pickListValues.fullName];
|
|
1949
|
+
}
|
|
1946
1950
|
}
|
|
1947
1951
|
}
|
|
1948
1952
|
}
|
|
1949
1953
|
return void 0;
|
|
1950
1954
|
}
|
|
1955
|
+
function isArrayOfValues(value) {
|
|
1956
|
+
return Array.isArray(value);
|
|
1957
|
+
}
|
|
1951
1958
|
|
|
1952
1959
|
var __defProp$b = Object.defineProperty;
|
|
1953
1960
|
var __defProps$b = Object.defineProperties;
|