@gokiteam/uac
TypeScript icon, indicating that this package has built-in type declarations

0.3.79 • Public • Published

Goki Universal API Consumer

Universal API consumer for the Goki web service.

Goal

The goal of this project is to provide an easy to use and powerful interface for working with the Goki web service.

Requirements

Installation

To install Goki UAC using NPM run the following command:

$ npm i @gokiteam/uac

or

$ yarn add @gokiteam/uac

Services

  • accountTransactions,
  • apiKeys
  • auth
  • automations
  • balances
  • boards
  • common
  • conversations
  • hostels
  • icCards
  • integrations
  • invoices
  • mails
  • messages
  • notes
  • payouts
  • reservations
  • search
  • settings
  • shoutouts
  • spaces
  • subscriptions
  • travelers
  • dataReports
  • staffs
  • gateways
  • images
  • locks
  • members
  • payableItems
  • payments
  • permissionGroups
  • reservationKeyChains
  • todos

Usage

  1. Import Goki UAC in your code.

    • ES6:

      import { api } from '@gokiteam/uac';

      alternatively you can import only the services you need:

      import spaces from '@gokiteam/uac/dist/io/spaces';
  2. Call any of the functions provided by the different services in Goki UAC.

  • react-query for get data from API
const { data, refetch, isLoading, isFetching, isSuccess } =
  api.spaces.useGetSpaces(params);
  • POST, PATCH and Delete methods is implemented based on the services
const newConfigs = { roomSortType: 'name' };
api.staff.updateMySettings({ uiConfigs: newConfigs });

Todo

  • [ ] use react-query mutation for updating and creating on services (improve performance a lot)

Readme

Keywords

none

Package Sidebar

Install

npm i @gokiteam/uac

Weekly Downloads

13

Version

0.3.79

License

MIT

Unpacked Size

847 kB

Total Files

234

Last publish

Collaborators

  • hassan.goki
  • a.dehnavi
  • miladadli_goki
  • saeed.goki
  • rgmax