"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.createItem = createItem;
exports.updateItem = updateItem;
exports.commitItemUpload = commitItemUpload;
/* istanbul ignore file - these are just wrappers around rest-js functions -- @preserve */
// import functions that need to be wrapped and/or spied on
const arcgis_rest_portal_1 = require("@esri/arcgis-rest-portal");
const helpers_1 = require("./_internal/helpers");
// implement wrappers
/**
 * wrapper around @esri/arcgis-rest-portal's createItem
 * NOTE: this preserves 3.x behavior for saving item data
 * @param args
 * @returns
 */
function createItem(...args) {
    return (0, arcgis_rest_portal_1.createItem)((0, helpers_1.serializeItemParams)(args[0]));
}
/**
 * wrapper around @esri/arcgis-rest-portal's updateItem
 * NOTE: this preserves 3.x behavior for saving item data
 * @param args
 * @returns
 */
function updateItem(...args) {
    return (0, arcgis_rest_portal_1.updateItem)((0, helpers_1.serializeItemParams)(args[0]));
}
/**
 * wrapper around @esri/arcgis-rest-portal's commitItemUpload
 * NOTE: this preserves 3.x behavior for saving item data
 * @param args
 * @returns
 */
function commitItemUpload(...args) {
    return (0, arcgis_rest_portal_1.commitItemUpload)((0, helpers_1.serializeItemParams)(args[0]));
}
//# sourceMappingURL=wrappers.js.map