Update Types

This commit is contained in:
Benjamin Toby 2024-10-18 06:02:12 +01:00
parent 33283e7d0f
commit 2f93b6a311
5 changed files with 12 additions and 6 deletions

View File

@ -1,3 +1,5 @@
// @ts-check
/** /**
* @typedef {string} DSQL_DatabaseFullName - Database full name(slug) including datasquirel data => "datasquirel_user_7_new_database" * @typedef {string} DSQL_DatabaseFullName - Database full name(slug) including datasquirel data => "datasquirel_user_7_new_database"
*/ */

View File

@ -1,3 +1,5 @@
// @ts-check
/** /**
* @typedef {object} DSQL_MYSQL_SHOW_INDEXES_Type * @typedef {object} DSQL_MYSQL_SHOW_INDEXES_Type
* @property {string} Key_name - MYSQL Index Name * @property {string} Key_name - MYSQL Index Name
@ -44,5 +46,3 @@
* @property {number} active_clone - is Database active clone => 0 or 1 * @property {number} active_clone - is Database active clone => 0 or 1
* @property {string} active_clone_parent_db - Database parent db full name => eg. "datasquirel_user_7_wexculture" * @property {string} active_clone_parent_db - Database parent db full name => eg. "datasquirel_user_7_wexculture"
*/ */
////////////////////////////////////////

View File

@ -33,4 +33,6 @@
* @property {string} [msg] - Message * @property {string} [msg] - Message
* @property {string} [error] - Error Message * @property {string} [error] - Error Message
* @property {DSQL_TableSchemaType} [schema] - Error Message * @property {DSQL_TableSchemaType} [schema] - Error Message
*
* @exports GetReturn
*/ */

View File

@ -1,3 +1,5 @@
// @ts-check
/** /**
* @typedef {object} DATASQUIREL_LoggedInUser * @typedef {object} DATASQUIREL_LoggedInUser
* @property {number} [id] * @property {number} [id]
@ -41,7 +43,7 @@
/** /**
* @typedef {object} AuthenticatedUser * @typedef {object} AuthenticatedUser
* @property {boolean} success - Did the function run successfully? * @property {boolean} success - Did the function run successfully?
* @property {import("../types/user.td").DATASQUIREL_LoggedInUser | null} payload - Payload of the response * @property {DATASQUIREL_LoggedInUser | null} payload - Payload of the response
* @property {string} [msg] - An optional message * @property {string} [msg] - An optional message
* @property {number} [userId] - An optional message * @property {number} [userId] - An optional message
*/ */
@ -97,14 +99,14 @@
* social_id: [string], * social_id: [string],
* image: string, * image: string,
* image_thumbnail: string, * image_thumbnail: string,
* verification_status: [number=0], * verification_status: [number],
* }} payload - Payload * }} payload - Payload
*/ */
/** /**
* @typedef {object} ReauthUserFunctionReturn * @typedef {object} ReauthUserFunctionReturn
* @property {boolean} success - Did the function run successfully? * @property {boolean} success - Did the function run successfully?
* @property {import("../types/user.td").DATASQUIREL_LoggedInUser | null} payload - Payload * @property {DATASQUIREL_LoggedInUser | null} payload - Payload
* @property {string} [msg] - Response Message * @property {string} [msg] - Response Message
* @property {number} [userId] - user ID * @property {number} [userId] - user ID
* @property {string} [token] - new Token * @property {string} [token] - new Token

View File

@ -1,6 +1,6 @@
{ {
"name": "datasquirel", "name": "datasquirel",
"version": "2.1.4", "version": "2.1.5",
"description": "Cloud-based SQL data management tool", "description": "Cloud-based SQL data management tool",
"main": "index.js", "main": "index.js",
"bin": { "bin": {