Files
klz-cables.com/.pnpm-store/v10/files/fa/be5a7206e70cacbd644a58e72afcaeed5dc5be9cacb6042a508bdfcfd32e150e5488b576214aba28ee57bc1c65ee0bb318d1dd15ab96575af7caad83ad9b5f
Marc Mintel 5397309103
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
fix(products): fix breadcrumbs and product filtering (backport from main)
2026-02-24 16:04:21 +01:00

35 lines
1.2 KiB
Plaintext

export const getOperatorValueTypes = fieldType => {
return {
all: 'any',
contains: 'string',
equals: 'any',
/*
* exists:
* The expected value is boolean, but it's passed as a string ('true' or 'false').
* Need to additionally check if the value is strictly 'true' or 'false' as a string,
* rather than using a direct typeof comparison.
* This is handled as:
* validOperatorValue === 'boolean' && (value === 'true' || value === 'false')
*/
exists: 'boolean',
/*
* greater_than, greater_than_equal, less_than, less_than_equal:
* Used for number and date fields:
* - For date fields, the value is an object (e.g., Mon Feb 17 2025 12:00:00 GMT+0000).
* - For number fields, the value is a string representing the number.
*/
greater_than: fieldType === 'date' ? 'object' : 'string',
greater_than_equal: fieldType === 'date' ? 'object' : 'string',
in: 'any',
intersects: 'any',
less_than: fieldType === 'date' ? 'object' : 'string',
less_than_equal: fieldType === 'date' ? 'object' : 'string',
like: 'string',
near: 'any',
not_equals: 'any',
not_in: 'any',
not_like: 'string',
within: 'any'
};
};
//# sourceMappingURL=validOperators.js.map