### Build the project with yarn Source: https://github.com/hexabase/hexabase-js/blob/develop/README.md Build the project using yarn. ```bash - yarn run build ``` -------------------------------- ### Install dependencies with yarn Source: https://github.com/hexabase/hexabase-js/blob/develop/README.md Install project dependencies using yarn. ```bash - yarn install ``` -------------------------------- ### Credentials required for SDK initialization Source: https://github.com/hexabase/hexabase-js/blob/develop/README.md Obtain the URL and token credentials from Hexabase to initialize the SDK package. ```bash - url - token ``` -------------------------------- ### Create .env from .env.test and configure Source: https://github.com/hexabase/hexabase-js/blob/develop/README.md Copy the .env.test file to .env and then configure the environment variables in the .env file for testing. ```bash - cp .env.test .env - config environment in .env file ``` -------------------------------- ### Run hexabase client tests Source: https://github.com/hexabase/hexabase-js/blob/develop/README.md Run the hexabase client test suite using either the dedicated script or jest directly. ```bash - yarn run test:client or - yarn jest src/hexabase.test.ts ``` -------------------------------- ### Run hexabase auth tests Source: https://github.com/hexabase/hexabase-js/blob/develop/README.md Run the hexabase auth test suite using either the dedicated script or jest directly. ```bash - yarn run test:auth or - yarn jest src/lib/packages/auth/auth.test.ts ``` -------------------------------- ### Run hexabase datastore tests Source: https://github.com/hexabase/hexabase-js/blob/develop/README.md Run the hexabase datastore test suite using either the dedicated script or jest directly. ```bash - yarn run test:datastore or - yarn jest src/lib/packages/datastore/datastore.test.ts ``` -------------------------------- ### Query function list Source: https://github.com/hexabase/hexabase-js/blob/develop/README.md Lists the query functions available for building queries, including filtering, sorting, and pagination. ```bash - from: Query from table need query - select: select a field or multi field - where: condition need query - or: satisfy one of multi conditions - and: satisfy all conditions - equalTo: compare condition must match - greaterThanOrEqualTo: compare condition greater than or equal - lessThan: compare condition less than - include: data return include condition input - notInclude: data return not include condition input - inArray: data return include condition array input - notInArray: data return not include condition array input - orderBy: sort data return 'asc' or 'desc' - limit/perPage: limit record return - offset/page: page number return ``` -------------------------------- ### Set Hexabase contexts for development Source: https://github.com/hexabase/hexabase-js/blob/develop/README.md Configure the development server and SSE endpoints using the hx CLI, then set the context as active. ```bash npx hx contexts:set dev --server=https://dev-api.hexabase.com --sse=https://dev-sse.hexabase.com npx hx contexts:use dev ``` -------------------------------- ### Run hexabase storage tests Source: https://github.com/hexabase/hexabase-js/blob/develop/README.md Run the hexabase storage test suite using either the dedicated script or jest directly. ```bash - yarn run test:storage or - yarn jest src/lib/packages/storage/storage.test.ts ``` -------------------------------- ### Run hexabase workspace tests Source: https://github.com/hexabase/hexabase-js/blob/develop/README.md Run the hexabase workspace test suite using either the dedicated script or jest directly. ```bash - yarn run test:workspace or - yarn jest src/lib/packages/workspace/workspace.test.ts ``` -------------------------------- ### Run hexabase application tests Source: https://github.com/hexabase/hexabase-js/blob/develop/README.md Run the hexabase application test suite using either the dedicated script or jest directly. ```bash - yarn run test:application or - yarn jest src/lib/packages/application/application.test.ts ``` -------------------------------- ### Run hexabase user tests Source: https://github.com/hexabase/hexabase-js/blob/develop/README.md Run the hexabase user test suite using either the dedicated script or jest directly. ```bash - yarn run test:user or - yarn jest src/lib/packages/user/user.test.ts ``` -------------------------------- ### SDK package functions list Source: https://github.com/hexabase/hexabase-js/blob/develop/README.md Lists the functions available in the SDK package for auth, workspace, report, application, datastore, item, user, and storage modules. ```bash auth - login: login with email password - logout: logout user workspace: - get: get workspaces and current workspace id - getDetail: get detail workspace - setCurrent: set workspace current with id - getCurrent: get workspaces id current - create: created workspace - getPasswordPolicy: get workspace password policy - getFunctionality: get workspace functionality - getUsage: get workspace usage - getGroupChildren: get workspace children in group - getTaskQueueList: get queue list - getTaskQueueStatus: get task queue status - update: update workspace settings - archive: archive workspace report: - getReports: get reports in project - getDataReport: get data of report application: - getProjectsAndDatastores: get app and ds - create: create app - get: get list application in a workspace - getTemplates: get templates of project - getDetail: get info project - delete: delete project in workspace - updateProjectTheme: update project theme in workspace - updateProjectName: update project name in workspace datastore: - getField: get field setting in Ds - getActions: get actions in Ds - getStatuses: get statuses in Ds - getAction: get field action setting in Ds - get: get all datastore in project - getDetail: get detail datastore in project - create: create datastore in project - validateDatastoreDisplayID: validate before update datastore in project - UpdateDatastoreName: update datastore setting in project - deleteDatastore: delete datastore in project item: - get: get items in datastore - create: create new item - getHistories: get items histories - createItemId: create Itemid - getItemRelated: get item related in datastore - update: update item - getItemDetail: get item detail - deleteItem: delete item in datastore - execute: execute action item in datastore user: - register: get user register info by confirmationId - confirm: get info user confirm by confirmationId - getPasswordExpire: check user password is expiry - get: get information user by token storage: - getFile: get data of file which attached in item - createFile: upload file to attached in item - delete: delete file which attached it item ```