datasquirel/client/index.js

42 lines
898 B
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 08:42:22 +00:00
const getAccessToken = require("./auth/google/getAccessToken");
2023-06-24 13:19:20 +00:00
const logout = require("./auth/logout");
2023-05-23 13:25:02 +00:00
2023-07-24 13:37:08 +00:00
////////////////////////////////////////
////////////////////////////////////////
////////////////////////////////////////
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
/**
2023-07-24 13:37:08 +00:00
* User Auth Object
2023-06-24 07:34:39 +00:00
*/
const auth = {
2023-06-24 08:42:22 +00:00
google: {
getAccessToken: getAccessToken,
},
2023-06-24 13:19:20 +00:00
logout: logout,
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;