datasquirel/client/index.js

56 lines
2.1 KiB
JavaScript
Raw Normal View History

2023-05-23 13:25:02 +00:00
/**
* ==============================================================================
* Imports
* ==============================================================================
*/
2023-05-23 15:26:05 +00:00
const imageInputFileToBase64 = require("./media/imageInputFileToBase64");
const imageInputToBase64 = require("./media/imageInputToBase64");
2023-05-24 06:46:12 +00:00
const inputFileToBase64 = require("./media/inputFileToBase64");
2023-06-24 07:34:39 +00:00
const loginWithGoogle = require("./auth/loginWithGoogle");
2023-06-24 08:42:22 +00:00
const getAccessToken = require("./auth/google/getAccessToken");
2023-05-23 13:25:02 +00:00
/** ****************************************************************************** */
/** ****************************************************************************** */
/** ****************************************************************************** */
/** ****************************************************************************** */
/** ****************************************************************************** */
/** ****************************************************************************** */
/**
* ==============================================================================
* Media Functions Object
* ==============================================================================
*/
const media = {
imageInputToBase64: imageInputToBase64,
imageInputFileToBase64: imageInputFileToBase64,
2023-05-24 06:46:12 +00:00
inputFileToBase64: inputFileToBase64,
2023-05-23 13:25:02 +00:00
};
2023-06-24 07:34:39 +00:00
/**
* ==============================================================================
* Media Functions Object
* ==============================================================================
*/
const auth = {
2023-06-24 08:42:22 +00:00
google: {
getAccessToken: getAccessToken,
},
2023-06-24 07:34:39 +00:00
};
2023-05-23 13:25:02 +00:00
/**
* ==============================================================================
* Main Export
* ==============================================================================
*/
const datasquirelClient = {
media: media,
2023-06-24 07:34:39 +00:00
auth: auth,
2023-05-23 13:25:02 +00:00
};
2023-05-23 15:19:23 +00:00
module.exports = datasquirelClient;
2023-05-23 13:25:02 +00:00
/** ********************************************** */
/** ********************************************** */
/** ********************************************** */