@granular-software/sdk 0.4.39 → 0.4.41
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/agent-evals.js +4 -1
- package/dist/agent-evals.js.map +1 -1
- package/dist/agent-evals.mjs +4 -1
- package/dist/agent-evals.mjs.map +1 -1
- package/dist/cli/index.js +4 -1
- package/dist/index.js +4 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -11705,6 +11705,9 @@ var filterByMetamodelPackage = defineMetamodelPackage({
|
|
|
11705
11705
|
propertyFields: [`filter_by { scalar_type operators }`]
|
|
11706
11706
|
},
|
|
11707
11707
|
readPropertySummary(rawProperty) {
|
|
11708
|
+
if (rawProperty.filterBy === false || rawProperty.filter_by_disabled === true) {
|
|
11709
|
+
return { filterBy: false };
|
|
11710
|
+
}
|
|
11708
11711
|
const operators = Array.isArray(rawProperty.filter_by?.operators) ? rawProperty.filter_by.operators.filter(
|
|
11709
11712
|
(value) => typeof value === "string" && value.length > 0
|
|
11710
11713
|
) : [];
|
|
@@ -11717,7 +11720,7 @@ var filterByMetamodelPackage = defineMetamodelPackage({
|
|
|
11717
11720
|
},
|
|
11718
11721
|
domain: {
|
|
11719
11722
|
applyToPropertyIR(propertyIR, propertySummary) {
|
|
11720
|
-
const operators = propertySummary.filterBy
|
|
11723
|
+
const operators = propertySummary.filterBy && typeof propertySummary.filterBy === "object" ? propertySummary.filterBy.operators || [] : [];
|
|
11721
11724
|
if (operators.length === 0) return propertyIR;
|
|
11722
11725
|
return {
|
|
11723
11726
|
...propertyIR,
|