"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.getUploadURL = getUploadURL;
exports.default = void 0;

var _api = _interopRequireDefault(require("../api"));

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

/**
 * 
 * @format
 */

/**
 * Internal dependencies
 */
async function getUploadURL(organizationId, appId, objectBaseName) {
  const {
    apiFetch
  } = await (0, _api.default)();
  return apiFetch('/upload/signed-url', {
    method: 'POST',
    body: {
      path: `/${objectBaseName}`
    }
  });
}

var _default = {
  getUploadURL
};
exports.default = _default;