updates
This commit is contained in:
parent
8aa34d0848
commit
8782c08bf9
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "datasquirel",
|
"name": "datasquirel",
|
||||||
"version": "1.1.9",
|
"version": "1.1.10",
|
||||||
"description": "Cloud-based SQL data management tool",
|
"description": "Cloud-based SQL data management tool",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
@ -12,17 +12,30 @@ const https = require("https");
|
|||||||
/** ****************************************************************************** */
|
/** ****************************************************************************** */
|
||||||
/** ****************************************************************************** */
|
/** ****************************************************************************** */
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @typedef {Object} FunctionReturn
|
||||||
|
* @property {boolean} success - Did the function run successfully?
|
||||||
|
* @property {{
|
||||||
|
* urlPath: string,
|
||||||
|
* urlThumbnailPath: string
|
||||||
|
* }} payload - Payload containing the url for the image and its thumbnail
|
||||||
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ==============================================================================
|
* ==============================================================================
|
||||||
* Main Function
|
* Main Function
|
||||||
* ==============================================================================
|
* ==============================================================================
|
||||||
* @param {String} key - API Key
|
* @param {Object} params - API Key
|
||||||
* @param {Object} payload - Image Data Eg. {
|
* @param {String} params.key - API Key
|
||||||
imageData: imageBase64,
|
* @param {{
|
||||||
imageName: `cast_cord_user_${newUser.payload.insertId}`,
|
* imageData: string,
|
||||||
mimeType: "jpg",
|
* imageName: string,
|
||||||
thumbnailSize: 120,
|
* mimeType: [string],
|
||||||
}
|
* thumbnailSize: [number],
|
||||||
|
* folder: [string],
|
||||||
|
* }} params.payload - Image Data Eg.
|
||||||
|
*
|
||||||
|
* @returns { Promise<FunctionReturn> } - Return Object
|
||||||
*/
|
*/
|
||||||
module.exports = async function ({ key, payload }) {
|
module.exports = async function ({ key, payload }) {
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user