2.0.14 • Published 13 days ago

@hexabase/hexabase-js v2.0.14

Weekly downloads
-
License
MIT
Repository
github
Last release
13 days ago

Hexabase-sdk

Development

Set env

npx hx contexts:set dev --server=https://dev-api.hexabase.com --sse=https://dev-sse.hexabase.com
npx hx contexts:use dev

- Started:

  • Install:
      - yarn install
  • Building:
      - yarn run build
  • create file .env from .env.test then Config file testing at .env:
      - cp .env.test .env
      - config environment in .env file
  • Run test hexabase client:
      - yarn run test:client
      or
      - yarn jest src/hexabase.test.ts
  • Run test hexabase application:
      - yarn run test:application
      or
      - yarn jest src/lib/packages/application/application.test.ts
  • Run test hexabase auth:
      - yarn run test:auth
      or
      - yarn jest src/lib/packages/auth/auth.test.ts
  • Run test hexabase user:
      - yarn run test:user
      or
      - yarn jest src/lib/packages/user/user.test.ts
  • Run test hexabase workspace:
      - yarn run test:workspace
      or
      - yarn jest src/lib/packages/workspace/workspace.test.ts
  • Run test hexabase datastore:
      - yarn run test:datastore
      or
      - yarn jest src/lib/packages/datastore/datastore.test.ts
  • Run test hexabase storage:
      - yarn run test:storage
      or
      - yarn jest src/lib/packages/storage/storage.test.ts

- Initialize for SDK Package

- Requirement:

  • credentials must obtain from hexabase:
      - url
      - token

functions created:

  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

- Query function

  - 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
2.0.14

13 days ago

2.0.13

1 month ago

2.0.12

1 month ago

2.0.11

3 months ago

2.0.10

5 months ago

2.0.9

5 months ago

2.0.3

7 months ago

2.0.2

7 months ago

2.0.5

7 months ago

2.0.4

7 months ago

2.0.6

6 months ago

2.0.1

8 months ago

2.0.0

9 months ago

1.1.1

1 year ago

1.1.0

2 years ago

1.0.18

2 years ago

1.0.17

2 years ago

1.0.16

2 years ago

1.0.15

2 years ago

1.0.14

2 years ago

1.0.12

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.11

2 years ago

1.0.13

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.0

2 years ago