{
    "rest": true,
    "allowMapping": true,
    "type": "noninventoryitem",
    "id": "noninventoryitem",
    "criteria": "item",
    "select": "LISTAGG(pricing.pricelevel, ', ') WITHIN GROUP (ORDER BY pricing.pricelevel) AS price_levels, LISTAGG(pricing.unitprice, ', ') WITHIN GROUP (ORDER BY pricing.pricelevel) AS unit_prices",
    "where": "WHERE item.itemType = 'NonInvtPart'",
    "inner": "LEFT JOIN pricing ON pricing.item = item.id",
    "group": "GROUP BY item.id, item.itemid, item.costEstimate, item.costEstimateType, item.deferredRevenueAccount, item.displayName, item.dontShowPrice, item.includeChildren, item.incomeAccount, item.isfulfillable, item.isInactive, item.itemType, item.maximumquantity, item.storeDescription, item.subsidiary, item.subtype",
    "keep": ["unit_prices", "price_levels"],
    "mapping": {
        "costestimate": "costEstimate",
        "costestimatetype": "costEstimateType",
        "deferredrevenueaccount": "deferredRevenueAccount",
        "displayname": "displayName",
        "dontshowprice": "dontShowPrice",
        "includechildren": "includeChildren",
        "incomeaccount": "incomeAccount",
        "isfulfillable": "isfulfillable",
        "isinactive": "isInactive",
        "itemtype": "itemType",
        "maximumquantity": "maximumquantity",
        "storedescription": "storeDescription",
        "subsidiary": "subsidiary",
        "subtype": "subtype",
        "title": "itemId"
    }
}
