@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.
@@ -11708,6 +11708,9 @@ var filterByMetamodelPackage = defineMetamodelPackage({
11708
11708
  propertyFields: [`filter_by { scalar_type operators }`]
11709
11709
  },
11710
11710
  readPropertySummary(rawProperty) {
11711
+ if (rawProperty.filterBy === false || rawProperty.filter_by_disabled === true) {
11712
+ return { filterBy: false };
11713
+ }
11711
11714
  const operators = Array.isArray(rawProperty.filter_by?.operators) ? rawProperty.filter_by.operators.filter(
11712
11715
  (value) => typeof value === "string" && value.length > 0
11713
11716
  ) : [];
@@ -11720,7 +11723,7 @@ var filterByMetamodelPackage = defineMetamodelPackage({
11720
11723
  },
11721
11724
  domain: {
11722
11725
  applyToPropertyIR(propertyIR, propertySummary) {
11723
- const operators = propertySummary.filterBy?.operators || [];
11726
+ const operators = propertySummary.filterBy && typeof propertySummary.filterBy === "object" ? propertySummary.filterBy.operators || [] : [];
11724
11727
  if (operators.length === 0) return propertyIR;
11725
11728
  return {
11726
11729
  ...propertyIR,