"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getModel = getModel;
const arcgis_rest_portal_1 = require("@esri/arcgis-rest-portal");
/**
 * Gets the full item/data model for an item id
 * @param {string} id
 * @param {Object} requestOptions
 */
function getModel(id, requestOptions) {
    return Promise.all([
        (0, arcgis_rest_portal_1.getItem)(id, requestOptions),
        (0, arcgis_rest_portal_1.getItemData)(id, requestOptions),
    ]).then((result) => {
        // shape this into a model
        return {
            item: result[0],
            data: result[1],
        };
    });
}
//# sourceMappingURL=getModel.js.map