use separate JsQueryItemType enum instead of included in struct