Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@gokiteam/uac

Package Overview
Dependencies
Maintainers
5
Versions
151
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@gokiteam/uac

Universal Api Cunsumer for Goki Services

  • 0.3.79
  • latest
  • npm
  • Socket score

Version published
Maintainers
5
Created
Source

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

  • Any of the following JavaScript runtime environments: Node, Browser, etc.
  • Axios
  • react-query v4
  • Typescript

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)

FAQs

Package last updated on 17 Aug 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc