From 9ed54756d28eb21d7673b3f643f4dd194a026a0a Mon Sep 17 00:00:00 2001 From: dr-vortex Date: Mon, 12 Feb 2024 14:55:17 +0000 Subject: [PATCH] deploy: be4fab136a795a6d4f8351c282d6cb52f4cb6787 --- enums/Access.html | 4 ++-- enums/AccountType.html | 10 +++++----- functions/auth.html | 2 +- functions/checkAccountAttribute.html | 2 +- functions/createAccount.html | 2 +- functions/deleteAccount.html | 2 +- functions/disable.html | 2 +- functions/enable.html | 2 +- functions/getAccount.html | 2 +- functions/getAccountNum.html | 2 +- functions/getAccountRole.html | 2 +- functions/getAccounts.html | 2 +- functions/getAllAccounts.html | 2 +- functions/isValidAccountAttribute.html | 2 +- functions/login.html | 2 +- functions/logout.html | 2 +- functions/metadata-1.html | 2 +- functions/request.html | 2 +- functions/stripAccountInfo.html | 2 +- functions/update.html | 2 +- interfaces/Account.html | 22 +++++++++++----------- interfaces/AccountResult.html | 4 ++-- interfaces/FullAccount.html | 22 +++++++++++----------- interfaces/FullAccountResult.html | 4 ++-- interfaces/Metadata.html | 6 +++--- interfaces/Response.html | 10 +++++----- types/UniqueAccountKey.html | 2 +- variables/accountAttributes.html | 2 +- variables/accountRoles.html | 2 +- variables/config.html | 2 +- variables/uniqueAccountAttributes.html | 2 +- 31 files changed, 64 insertions(+), 64 deletions(-) diff --git a/enums/Access.html b/enums/Access.html index f3709c3..f75fb63 100644 --- a/enums/Access.html +++ b/enums/Access.html @@ -1,5 +1,5 @@ Access | @blankstorm/api - v0.5.4

Enumeration Access

Access level for information

-

Enumeration Members

Enumeration Members

Enumeration Members

PRIVATE: 0
PROTECTED: 1
PUBLIC: 2

Generated using TypeDoc

\ No newline at end of file +

Enumeration Members

PRIVATE: 0
PROTECTED: 1
PUBLIC: 2

Generated using TypeDoc

\ No newline at end of file diff --git a/enums/AccountType.html b/enums/AccountType.html index 7caddec..6346373 100644 --- a/enums/AccountType.html +++ b/enums/AccountType.html @@ -1,5 +1,5 @@ AccountType | @blankstorm/api - v0.5.4

Enumeration AccountType

The account's level of access and status

-

Enumeration Members

Enumeration Members

Enumeration Members

ACCOUNT: 0

Standard accounts

-
ADMIN: 3

Alias for ADMINISTRATOR

-
ADMINISTRATOR: 3
DEV: 2

Alias for DEVELOPER

-
DEVELOPER: 2
MOD: 1

Alias for MODERATOR

-
MODERATOR: 1
OWNER: 4

Generated using TypeDoc

\ No newline at end of file +
ADMIN: 3

Alias for ADMINISTRATOR

+
ADMINISTRATOR: 3
DEV: 2

Alias for DEVELOPER

+
DEVELOPER: 2
MOD: 1

Alias for MODERATOR

+
MODERATOR: 1
OWNER: 4

Generated using TypeDoc

\ No newline at end of file diff --git a/functions/auth.html b/functions/auth.html index 74a4823..f104537 100644 --- a/functions/auth.html +++ b/functions/auth.html @@ -1,3 +1,3 @@ auth | @blankstorm/api - v0.5.4

Function auth

  • Sets the authenication token

    Parameters

    • token: string

      the new token

      -

    Returns void

Generated using TypeDoc

\ No newline at end of file +

Returns void

Generated using TypeDoc

\ No newline at end of file diff --git a/functions/checkAccountAttribute.html b/functions/checkAccountAttribute.html index 730c565..e3b2a11 100644 --- a/functions/checkAccountAttribute.html +++ b/functions/checkAccountAttribute.html @@ -1,4 +1,4 @@ checkAccountAttribute | @blankstorm/api - v0.5.4

Function checkAccountAttribute

  • Checks if value is a valid key

    Type Parameters

    Parameters

    Returns void

Generated using TypeDoc

\ No newline at end of file +

Returns void

Generated using TypeDoc

\ No newline at end of file diff --git a/functions/createAccount.html b/functions/createAccount.html index 3ad386e..bf8320a 100644 --- a/functions/createAccount.html +++ b/functions/createAccount.html @@ -3,4 +3,4 @@
  • username: string

    the account's username

  • password: string

    the account's password

  • Returns Promise<Account>

    The created account's data

    -

    Generated using TypeDoc

    \ No newline at end of file +

    Generated using TypeDoc

    \ No newline at end of file diff --git a/functions/deleteAccount.html b/functions/deleteAccount.html index 7e873ea..5143dc4 100644 --- a/functions/deleteAccount.html +++ b/functions/deleteAccount.html @@ -1,3 +1,3 @@ deleteAccount | @blankstorm/api - v0.5.4

    Function deleteAccount

    • Deletes an account (Requires authenication)

      Parameters

      • id: string

        the ID of the account to delete

        -
      • Optional reason: string

      Returns Promise<void>

    Generated using TypeDoc

    \ No newline at end of file +
  • Optional reason: string
  • Returns Promise<void>

    Generated using TypeDoc

    \ No newline at end of file diff --git a/functions/disable.html b/functions/disable.html index 97364d9..0a5371a 100644 --- a/functions/disable.html +++ b/functions/disable.html @@ -2,4 +2,4 @@

    Parameters

    Returns Promise<boolean>

    True when successful

    -

    Generated using TypeDoc

    \ No newline at end of file +

    Generated using TypeDoc

    \ No newline at end of file diff --git a/functions/enable.html b/functions/enable.html index 0307d81..5e8e525 100644 --- a/functions/enable.html +++ b/functions/enable.html @@ -2,4 +2,4 @@

    Parameters

    Returns Promise<boolean>

    True when successful

    -

    Generated using TypeDoc

    \ No newline at end of file +

    Generated using TypeDoc

    \ No newline at end of file diff --git a/functions/getAccount.html b/functions/getAccount.html index 3c554de..f65e9f8 100644 --- a/functions/getAccount.html +++ b/functions/getAccount.html @@ -2,4 +2,4 @@

    Parameters

    Returns Promise<Account>

    The account's data

    -
  • Parameters

    Returns Promise<Account>

  • Generated using TypeDoc

    \ No newline at end of file +
  • Parameters

    Returns Promise<Account>

  • Generated using TypeDoc

    \ No newline at end of file diff --git a/functions/getAccountNum.html b/functions/getAccountNum.html index 1fdf9c3..89a1a82 100644 --- a/functions/getAccountNum.html +++ b/functions/getAccountNum.html @@ -1,2 +1,2 @@ getAccountNum | @blankstorm/api - v0.5.4

    Function getAccountNum

    Generated using TypeDoc

    \ No newline at end of file +

    Returns Promise<number>

    Generated using TypeDoc

    \ No newline at end of file diff --git a/functions/getAccountRole.html b/functions/getAccountRole.html index ee5717b..102f999 100644 --- a/functions/getAccountRole.html +++ b/functions/getAccountRole.html @@ -2,4 +2,4 @@

    Parameters

    Returns string

    the role

    -

    Generated using TypeDoc

    \ No newline at end of file +

    Generated using TypeDoc

    \ No newline at end of file diff --git a/functions/getAccounts.html b/functions/getAccounts.html index 41b8875..c7b6b68 100644 --- a/functions/getAccounts.html +++ b/functions/getAccounts.html @@ -2,4 +2,4 @@

    Parameters

    Returns Promise<Account[]>

    The accounts

    -

    Generated using TypeDoc

    \ No newline at end of file +

    Generated using TypeDoc

    \ No newline at end of file diff --git a/functions/getAllAccounts.html b/functions/getAllAccounts.html index 986100d..228ae55 100644 --- a/functions/getAllAccounts.html +++ b/functions/getAllAccounts.html @@ -1,3 +1,3 @@ getAllAccounts | @blankstorm/api - v0.5.4

    Function getAllAccounts

    • Gets info about all account (Requires authorization: Mod)

      Parameters

      • offset: number = 0
      • limit: number = 1000

      Returns Promise<Account[]>

      The accounts

      -

    Generated using TypeDoc

    \ No newline at end of file +

    Generated using TypeDoc

    \ No newline at end of file diff --git a/functions/isValidAccountAttribute.html b/functions/isValidAccountAttribute.html index 8457304..2087534 100644 --- a/functions/isValidAccountAttribute.html +++ b/functions/isValidAccountAttribute.html @@ -2,4 +2,4 @@

    Type Parameters

    Parameters

    Returns boolean

    whether the value is valid

    -

    Generated using TypeDoc

    \ No newline at end of file +

    Generated using TypeDoc

    \ No newline at end of file diff --git a/functions/login.html b/functions/login.html index a678fd0..44551d1 100644 --- a/functions/login.html +++ b/functions/login.html @@ -2,4 +2,4 @@

    Parameters

    Returns Promise<Account & {
        token: string;
    }>

    The logged in account's data (includes the token)

    -

    Generated using TypeDoc

    \ No newline at end of file +

    Generated using TypeDoc

    \ No newline at end of file diff --git a/functions/logout.html b/functions/logout.html index 22ba7de..c7723b1 100644 --- a/functions/logout.html +++ b/functions/logout.html @@ -2,4 +2,4 @@

    Parameters

    Returns Promise<boolean>

    True when successful

    -

    Generated using TypeDoc

    \ No newline at end of file +

    Generated using TypeDoc

    \ No newline at end of file diff --git a/functions/metadata-1.html b/functions/metadata-1.html index 636df59..2566c4f 100644 --- a/functions/metadata-1.html +++ b/functions/metadata-1.html @@ -1,2 +1,2 @@ metadata | @blankstorm/api - v0.5.4

    Function metadata

    Generated using TypeDoc

    \ No newline at end of file +

    Returns Promise<Metadata>

    Generated using TypeDoc

    \ No newline at end of file diff --git a/functions/request.html b/functions/request.html index 19592bf..0f417fd 100644 --- a/functions/request.html +++ b/functions/request.html @@ -3,4 +3,4 @@
  • endpoint: string

    The API endpoint to send the request to

  • data: object = {}

    The data to include in the request

  • Returns Promise<R>

    a Promise which resolves to the result of the response

    -

    Generated using TypeDoc

    \ No newline at end of file +

    Generated using TypeDoc

    \ No newline at end of file diff --git a/functions/stripAccountInfo.html b/functions/stripAccountInfo.html index 4e46476..4be5591 100644 --- a/functions/stripAccountInfo.html +++ b/functions/stripAccountInfo.html @@ -1,4 +1,4 @@ stripAccountInfo | @blankstorm/api - v0.5.4

    Function stripAccountInfo

    • Strips private information (e.g. email, password hash, etc.) from an account

      Parameters

      • account: Account

        the account to strip info from

      • access: Access = Access.PUBLIC

      Returns Account

      a new object without the stripped info

      -

    Generated using TypeDoc

    \ No newline at end of file +

    Generated using TypeDoc

    \ No newline at end of file diff --git a/functions/update.html b/functions/update.html index db19823..d9a40f8 100644 --- a/functions/update.html +++ b/functions/update.html @@ -4,4 +4,4 @@
  • value: FullAccount[K]

    the new value

  • Optional reason: string

    the reason for the change

  • Returns Promise<Account>

    the updated account data

    -

    Generated using TypeDoc

    \ No newline at end of file +

    Generated using TypeDoc

    \ No newline at end of file diff --git a/interfaces/Account.html b/interfaces/Account.html index 1b744b8..8194458 100644 --- a/interfaces/Account.html +++ b/interfaces/Account.html @@ -1,5 +1,5 @@ Account | @blankstorm/api - v0.5.4

    Interface Account

    Represents an account

    -
    interface Account {
        created: Date;
        email?: string;
        id: string;
        is_disabled: boolean;
        lastchange: Date;
        password?: string;
        session?: string;
        token?: string;
        type: AccountType;
        username: string;
    }

    Hierarchy (view full)

    Properties

    interface Account {
        created: Date;
        email?: string;
        id: string;
        is_disabled: boolean;
        lastchange: Date;
        password?: string;
        session?: string;
        token?: string;
        type: AccountType;
        username: string;
    }

    Hierarchy (view full)

    Properties

    created email? id is_disabled @@ -10,14 +10,14 @@ type username

    Properties

    created: Date

    When the account was created

    -
    email?: string

    The email of the account

    -
    id: string

    The ID of the account

    -
    is_disabled: boolean

    If the account is currently disabled

    -
    lastchange: Date

    The last time the account's username was changed

    -
    password?: string

    The account's password hash.

    +
    email?: string

    The email of the account

    +
    id: string

    The ID of the account

    +
    is_disabled: boolean

    If the account is currently disabled

    +
    lastchange: Date

    The last time the account's username was changed

    +
    password?: string

    The account's password hash.

    This is never sent by the server, it is only here for code convience when updating the password.

    -
    session?: string

    The session token of the account

    -
    token?: string

    The login token of the account

    -

    The type of the account

    -
    username: string

    The username of the account

    -

    Generated using TypeDoc

    \ No newline at end of file +
    session?: string

    The session token of the account

    +
    token?: string

    The login token of the account

    +

    The type of the account

    +
    username: string

    The username of the account

    +

    Generated using TypeDoc

    \ No newline at end of file diff --git a/interfaces/AccountResult.html b/interfaces/AccountResult.html index 2f0f53e..8c5a575 100644 --- a/interfaces/AccountResult.html +++ b/interfaces/AccountResult.html @@ -1,6 +1,6 @@ AccountResult | @blankstorm/api - v0.5.4

    Interface AccountResult

    The result object of a response representing an account

    See

    Account

    -
    interface AccountResult {
        created: string;
        email?: string;
        id: string;
        is_disabled: boolean;
        lastchange: string;
        session?: string;
        token?: string;
        type: AccountType;
        username: string;
    }

    Hierarchy (view full)

    Properties

    interface AccountResult {
        created: string;
        email?: string;
        id: string;
        is_disabled: boolean;
        lastchange: string;
        session?: string;
        token?: string;
        type: AccountType;
        username: string;
    }

    Hierarchy (view full)

    Properties

    Properties

    created: string
    email?: string
    id: string
    is_disabled: boolean
    lastchange: string
    session?: string
    token?: string
    username: string

    Generated using TypeDoc

    \ No newline at end of file +

    Properties

    created: string
    email?: string
    id: string
    is_disabled: boolean
    lastchange: string
    session?: string
    token?: string
    username: string

    Generated using TypeDoc

    \ No newline at end of file diff --git a/interfaces/FullAccount.html b/interfaces/FullAccount.html index 41b4ec7..c06ccfc 100644 --- a/interfaces/FullAccount.html +++ b/interfaces/FullAccount.html @@ -1,5 +1,5 @@ FullAccount | @blankstorm/api - v0.5.4

    Interface FullAccount

    Represents an account with all data (i.e. sensitive information must be included)

    -
    interface FullAccount {
        created: Date;
        email: string;
        id: string;
        is_disabled: boolean;
        lastchange: Date;
        password?: string;
        session: string;
        token: string;
        type: AccountType;
        username: string;
    }

    Hierarchy (view full)

    Properties

    interface FullAccount {
        created: Date;
        email: string;
        id: string;
        is_disabled: boolean;
        lastchange: Date;
        password?: string;
        session: string;
        token: string;
        type: AccountType;
        username: string;
    }

    Hierarchy (view full)

    Properties

    created email id is_disabled @@ -10,14 +10,14 @@ type username

    Properties

    created: Date

    When the account was created

    -
    email: string

    The email of the account

    -
    id: string

    The ID of the account

    -
    is_disabled: boolean

    If the account is currently disabled

    -
    lastchange: Date

    The last time the account's username was changed

    -
    password?: string

    The account's password hash.

    +
    email: string

    The email of the account

    +
    id: string

    The ID of the account

    +
    is_disabled: boolean

    If the account is currently disabled

    +
    lastchange: Date

    The last time the account's username was changed

    +
    password?: string

    The account's password hash.

    This is never sent by the server, it is only here for code convience when updating the password.

    -
    session: string

    The session token of the account

    -
    token: string

    The login token of the account

    -

    The type of the account

    -
    username: string

    The username of the account

    -

    Generated using TypeDoc

    \ No newline at end of file +
    session: string

    The session token of the account

    +
    token: string

    The login token of the account

    +

    The type of the account

    +
    username: string

    The username of the account

    +

    Generated using TypeDoc

    \ No newline at end of file diff --git a/interfaces/FullAccountResult.html b/interfaces/FullAccountResult.html index 1f68fef..276f787 100644 --- a/interfaces/FullAccountResult.html +++ b/interfaces/FullAccountResult.html @@ -1,6 +1,6 @@ FullAccountResult | @blankstorm/api - v0.5.4

    Interface FullAccountResult

    The result object of a response representing an account with all data

    See

    FullAccount

    -
    interface FullAccountResult {
        created: string;
        email: string;
        id: string;
        is_disabled: boolean;
        lastchange: string;
        session: string;
        token: string;
        type: AccountType;
        username: string;
    }

    Hierarchy (view full)

    Properties

    interface FullAccountResult {
        created: string;
        email: string;
        id: string;
        is_disabled: boolean;
        lastchange: string;
        session: string;
        token: string;
        type: AccountType;
        username: string;
    }

    Hierarchy (view full)

    Properties

    Properties

    created: string
    email: string
    id: string
    is_disabled: boolean
    lastchange: string
    session: string
    token: string
    username: string

    Generated using TypeDoc

    \ No newline at end of file +

    Properties

    created: string
    email: string
    id: string
    is_disabled: boolean
    lastchange: string
    session: string
    token: string
    username: string

    Generated using TypeDoc

    \ No newline at end of file diff --git a/interfaces/Metadata.html b/interfaces/Metadata.html index f53cacb..509af10 100644 --- a/interfaces/Metadata.html +++ b/interfaces/Metadata.html @@ -1,5 +1,5 @@ -Metadata | @blankstorm/api - v0.5.4

    Interface Metadata

    interface Metadata {
        debug: boolean;
        version: string;
    }

    Properties

    debug +Metadata | @blankstorm/api - v0.5.4

    Interface Metadata

    interface Metadata {
        debug: boolean;
        version: string;
    }

    Properties

    Properties

    debug: boolean

    Whether the API has debug features enabled

    -
    version: string

    Current API version

    -

    Generated using TypeDoc

    \ No newline at end of file +
    version: string

    Current API version

    +

    Generated using TypeDoc

    \ No newline at end of file diff --git a/interfaces/Response.html b/interfaces/Response.html index 7dd7d69..e98db58 100644 --- a/interfaces/Response.html +++ b/interfaces/Response.html @@ -1,11 +1,11 @@ Response | @blankstorm/api - v0.5.4

    Interface Response<Result>

    A response to an API request

    -
    interface Response<Result> {
        error: boolean;
        result: Result;
        status: number;
        statusText: string;
    }

    Type Parameters

    • Result

    Properties

    interface Response<Result> {
        error: boolean;
        result: Result;
        status: number;
        statusText: string;
    }

    Type Parameters

    • Result

    Properties

    error: boolean

    Whether the request failed (true) or not (false)

    -
    result: Result

    The result of the request.

    +
    result: Result

    The result of the request.

    Remarks

    If the request fails, result will contain the error message

    -
    status: number

    The HTTP status of the response

    -
    statusText: string

    The HTTP status' text

    -

    Generated using TypeDoc

    \ No newline at end of file +
    status: number

    The HTTP status of the response

    +
    statusText: string

    The HTTP status' text

    +

    Generated using TypeDoc

    \ No newline at end of file diff --git a/types/UniqueAccountKey.html b/types/UniqueAccountKey.html index 45a863f..21d438d 100644 --- a/types/UniqueAccountKey.html +++ b/types/UniqueAccountKey.html @@ -1 +1 @@ -UniqueAccountKey | @blankstorm/api - v0.5.4

    Type alias UniqueAccountKey

    UniqueAccountKey: "id" | "email" | "username" | "token" | "session"

    Generated using TypeDoc

    \ No newline at end of file +UniqueAccountKey | @blankstorm/api - v0.5.4

    Type alias UniqueAccountKey

    UniqueAccountKey: "id" | "email" | "username" | "token" | "session"

    Generated using TypeDoc

    \ No newline at end of file diff --git a/variables/accountAttributes.html b/variables/accountAttributes.html index 290b9ca..a35e16e 100644 --- a/variables/accountAttributes.html +++ b/variables/accountAttributes.html @@ -1 +1 @@ -accountAttributes | @blankstorm/api - v0.5.4

    Variable accountAttributesConst

    accountAttributes: string[] = ...

    Generated using TypeDoc

    \ No newline at end of file +accountAttributes | @blankstorm/api - v0.5.4

    Variable accountAttributesConst

    accountAttributes: string[] = ...

    Generated using TypeDoc

    \ No newline at end of file diff --git a/variables/accountRoles.html b/variables/accountRoles.html index 25fee95..e1500f6 100644 --- a/variables/accountRoles.html +++ b/variables/accountRoles.html @@ -1,2 +1,2 @@ accountRoles | @blankstorm/api - v0.5.4

    Variable accountRolesConst

    accountRoles: {
        [key in AccountType]: string
    } & string[] = ...

    The roles of account types

    -

    Generated using TypeDoc

    \ No newline at end of file +

    Generated using TypeDoc

    \ No newline at end of file diff --git a/variables/config.html b/variables/config.html index 52f3250..2b00521 100644 --- a/variables/config.html +++ b/variables/config.html @@ -1,3 +1,3 @@ config | @blankstorm/api - v0.5.4

    Variable configConst

    config: {
        throw_errors: boolean;
        url: string;
    } = ...

    Type declaration

    • throw_errors: boolean

      Whether to throw an error on erroneous responses

    • url: string

      The base API URL

      -

    Generated using TypeDoc

    \ No newline at end of file +

    Generated using TypeDoc

    \ No newline at end of file diff --git a/variables/uniqueAccountAttributes.html b/variables/uniqueAccountAttributes.html index 8c4e775..f2cb966 100644 --- a/variables/uniqueAccountAttributes.html +++ b/variables/uniqueAccountAttributes.html @@ -1 +1 @@ -uniqueAccountAttributes | @blankstorm/api - v0.5.4

    Variable uniqueAccountAttributesConst

    uniqueAccountAttributes: string[] = ...

    Generated using TypeDoc

    \ No newline at end of file +uniqueAccountAttributes | @blankstorm/api - v0.5.4

    Variable uniqueAccountAttributesConst

    uniqueAccountAttributes: string[] = ...

    Generated using TypeDoc

    \ No newline at end of file