export const fieldWithArcadeXRegex=/expression\/([\w-]+)/i;export const fieldWithRelationshipRegex=/relationships\/([\w-]+)\/(\w+)/i;export function isNumericFieldType(e){return"small-integer"===e||"big-integer"===e||"single"===e||"integer"===e||"double"===e||"long"===e}export function isFieldSearchable(e){return"oid"!==e}export function getArcadeExpressionFromField(e){if(null==e)return;if(-1===e.toLowerCase().indexOf("expression/"))return;const i=e.match(fieldWithArcadeXRegex);return null!=i?.[1]?i[1]:void 0}export function isArcadeExpressionField(e){return null!=getArcadeExpressionFromField(e)}export function getRelationshipFromField(e){if(null==e)return[void 0,void 0];if(-1===e.toLowerCase().indexOf("relationships/"))return[void 0,void 0];const i=e.match(fieldWithRelationshipRegex);return null==i?.[1]||null==i?.[2]?[void 0,void 0]:[i[1],i[2]]}export function isRelationshipField(e){return null!=getRelationshipFromField(e)[0]}