/** * Insert file to a document * * @param {string} id The ID of the document to insert * @param {string} entity The entity of the document to insert * @param {string} field Document file field name * @param {object} file Parsed file * * @module masterdata * * @example * const { json } = await insertDocument({ * entity: 'CF', * data: { * email: 'johh@doe.com', * ... * }, * }); * * const response = await uploadFile({ * id: json.DocumentId, * entity: 'CF', * file: myFile, * field: 'file', * }); * * @return {promise} */ declare const uploadFile: ({ id, entity, file, field, auth, accountName, }: IUploadFileArgs) => Promise; export default uploadFile;