@factorypure/client-helpers 1.1.29 → 1.2.0
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/index.js +4 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -480,7 +480,6 @@ export const ABSOLUTE_BLOCK_RULE_IDS = [
|
|
|
480
480
|
'duplicate',
|
|
481
481
|
'high_price_outlier',
|
|
482
482
|
'low_price_outlier',
|
|
483
|
-
'skip_sku',
|
|
484
483
|
];
|
|
485
484
|
/**
|
|
486
485
|
* Rule IDs that can be overridden when the matching-engine confidence is high enough.
|
|
@@ -496,6 +495,7 @@ export const CONFIDENCE_OVERRIDABLE_RULE_IDS = [
|
|
|
496
495
|
'competitor_exclusion',
|
|
497
496
|
'date_outlier',
|
|
498
497
|
'critical_spec_mismatch',
|
|
498
|
+
'skip_sku',
|
|
499
499
|
];
|
|
500
500
|
/**
|
|
501
501
|
* Evaluates whether a result should be surfaced given its filter state and matching confidence.
|
|
@@ -524,7 +524,6 @@ export function evaluateConfidenceOverride(filterResults, visibilityState, confi
|
|
|
524
524
|
return 'show_with_override';
|
|
525
525
|
return 'hide';
|
|
526
526
|
}
|
|
527
|
-
// const wattages = Array.from({ length: 41 }, (_, i) => (5000 + i * 500).toString())
|
|
528
527
|
// ===============================
|
|
529
528
|
// Filter Rule Registry
|
|
530
529
|
// ===============================
|
|
@@ -2283,7 +2282,9 @@ export function getShownResults(matchResult, sortedResults, minConfidence, sortD
|
|
|
2283
2282
|
shownResults.push(foundResult);
|
|
2284
2283
|
}
|
|
2285
2284
|
else if (foundResult &&
|
|
2286
|
-
foundResult.filter_results?.
|
|
2285
|
+
foundResult.filter_results?.some((fr) => fr?.metadata?.isOverride === true)
|
|
2286
|
+
// foundResult.filter_results?.map((fr: FilterResult) => fr.ruleId).includes('match_confirmation_override')
|
|
2287
|
+
) {
|
|
2287
2288
|
shownResults.push(foundResult);
|
|
2288
2289
|
}
|
|
2289
2290
|
});
|