open-index/open-npm huggingface dataset:
npm package: @gokarla-io/client
Description: Karla API Client
Author: Karla
Latest version: 1.0.0

# Karla TypeScript client

This TypeScript client library provides a comprehensive and easy-to-use interface to Karla's APIs and other services.
Designed to help developers integrate and interact with Karla efficiently,
this client supports all major service features including merchant, campaign, voucher,
order and shipment management, data retrieval, and real-time updates.

See our [API Overview](https://docs.gokarla.io/docs/api/overview) for more details.

## Features

- **Authentication**: Handle API authentication seamlessly.
- **Data Retrieval**: Fetch data using simple asynchronous methods.
- **Webhooks**: Set up and manage webhooks.
- **Error Handling**: Robust error handling tailored for clarity and quick debugging.
- **Type Safety**: Full TypeScript support ensures type safety across all interactions.

## Installation

Install the package:

```sh
npm install @gokarla-io/client
# or
yarn add @gokarla-io/client
# or
pnpm add @gokarla-io/client
```

## Usage

Here's a quick example to get you started with the Karla TypeScript client.

This example demonstrates how to authenticate and fetch merchant data:

### Importing and Initializing the Client

```typescript
import { Karla } from "@gokarla-io/client";
import type { KarlaREST } from "@gokarla-io/client";

const { rest: apiClient } = Karla({
  auth: {
    username: process.env.KARLA_API_USERNAME,
    apiKey: process.env.KARLA_API_TOKEN,
  },
});
```

The REST interface is exposed under the `rest` attribute. More interfaces will be available in the future.

### Fetching data

```typescript
const { data } = await apiClient.GET("/v1/shops", {
  params: { query: { page: 1, per_page: 100 } },
});
```

## Configuration Options

This client library offers various configuration options to tailor the API client to your needs:

- baseUrl: Override the default API endpoint for testing or development purposes.
- headers: Customize headers sent with each request.

Example of setting configuration options:

```typescript
const karla = Karla({
  baseUrl: process.env.KARLA_API_URL,
  headers: {
    "Custom-Header": "value",
  },
});
```
npm package: @goki-lock/react-native-utils
Description: Goki lock react native utils
Author: Goki
Latest version: 0.1.4

# @goki-lock/react-native-utils

Check all requirements & make the app ready to do bluetooth communication

## Installation

```sh
yarn add @goki-lock/react-native-utils
```

## Usage

```typescript
import GokiLockUtils, {ErrorCodeType} from '@goki-lock/react-native-utils';
```

### Listen to bluetooth state changes

```typescript
const subscription = GokiLockUtils.addBluetoothStateListener((state) => {
  console.log(state);
})
```

### Check bluetooth state

```typescript
GokiLockUtils.getBluetoothState().then((state) => {
  console.log(state);
})
```

### request to enable bluetooth

```typescript
GokiLockUtils.requestToEnableBluetooth()
```

### open bluetooth settings

```typescript
GokiLockUtils.openBluetoothSettings()
```

### enable/disable bluetooth (Android only)

needs bluetooth admin permission

```typescript
GokiLockUtils.enableBluetooth()
GokiLockUtils.disableBluetooth()
```

### open location source settings (Android only)

```typescript
GokiLockUtils.openLocationSourceSettings()
```

### open app details settings (Android only)

```typescript
GokiLockUtils.openAppDetailsSettings()
```

### check location service is enabled

```typescript
GokiLockUtils.isLocationServiceEnabled().then((enabled) => {
  console.log(enabled);
})
```

### check all conditions

```typescript
GokiLockUtils.checkRequirements({
  openLocationSettings: true,
  openBluetoothSettings: true,
  fixLocation: true,
  fixBluetooth: true,
}).then(() => {

})
  .catch((error) => {
    // error.code = ErrorCodeType
    console.log(error);
  })
```

### related packages

most of native codes are based on following packages

- https://github.com/levelasquez/react-native-android-open-settings
- https://github.com/patlux/react-native-bluetooth-state-manager
npm package: @gokiteam/uac
Description: Universal Api Cunsumer for Goki Services
Author: Seraj Vahdati
Latest version: 0.3.79

# 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](https://github.com/axios/axios)
- [react-query v4](https://tanstack.com/query/v4/docs/react/overview)
- [Typescript](https://www.typescriptlang.org)

## Installation

To install Goki UAC using NPM run the following command:

```bash
$ npm i @gokiteam/uac
```

or

```bash
$ 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:

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

     alternatively you can import only the services you need:

     ```javascript
     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

```javascript
const { data, refetch, isLoading, isFetching, isSuccess } =
  api.spaces.useGetSpaces(params);
```

- POST, PATCH and Delete methods is implemented based on the services

```javascript
const newConfigs = { roomSortType: 'name' };
api.staff.updateMySettings({ uiConfigs: newConfigs });
```

## Todo

- [ ] use react-query mutation for updating and creating on services (improve performance a lot)
npm package: @gokiteam/uikit
Description: * `web` ## development after clone the project please run this command  ```bash yarn add  ``` or ```bash npm install ``` for run the dev server and see the results on the browser run  ```bash npm run storybook ``` or ```bash yarn storybook ``` ### Contrib
Latest version: 0.105.4

## Supported platforms
* `web`
## development
after clone the project please run this command 
```bash
yarn add 
```
or
```bash
npm install
```
for run the dev server and see the results on the browser run 
```bash
npm run storybook
```
or
```bash
yarn storybook
```
### Contributing
* all components exist `in src/components` folder you can add your own components and export it in `index.js`
* please check folder structure and use the same structure for new components,
* run `yarn buid:lib` to re-generate dist.
* run `yarn release` to build & publish on npm.

## How to use
make sure you have configured `.npmrc` & have `GOKI_NPM_TOKEN` in your environment variables.
- _in order to create an access token, open your gitlab profile & go to `Settings > Personal Access Tokens` & create a new token with `read registry` (or `api`) scope._
- _your account should have access to the backpack registry project_
```dotenv
# .npmrc
//gitlab.com/api/v4/projects/:_authToken="${GOKI_NPM_TOKEN}"
//gitlab.com/api/v4/projects/31892934/packages/npm/:_authToken="${GOKI_NPM_TOKEN}"
@backpack:registry=https://gitlab.com/api/v4/projects/31892934/packages/npm/
always-auth=true
```
and install the package:

```bash
yarn add @backpack/web-uikit
```
or 

```bash
npm install @backpack/web-uikit
```
### How to use it in your project

* import and use the  component you want in your react app also you can check the example app in [exmaple](./example)

```typescript jsx
import {Button} from '@backpack/web-uikit'

const icon = (
    <Button
        onClick={() => { }}
        disabled={false}
        loading={false}
        type="primary">
        Primary
    </Button>
)
```
## Publish Storybook
first you need to build the storybook, run 

```bash 
yarn build-storybook
```

use chromatic to publish the storybook
```bash
yarn chromatic
```

then you can see the result and share it in the [chromatic](https://www.chromatic.com/)
npm package: @gokraken/nuxt-ui
Description: GoKraken UI
Latest version: 1.0.33

<!--
Get your module up and running quickly.

Find and replace all on all files (CMD+SHIFT+F):
- Name: My Module
- Package name: my-module
- Description: My new Nuxt module
-->

# My Module

[![npm version][npm-version-src]][npm-version-href]
[![npm downloads][npm-downloads-src]][npm-downloads-href]
[![License][license-src]][license-href]
[![Nuxt][nuxt-src]][nuxt-href]

My new Nuxt module for doing amazing things.

- [✨ &nbsp;Release Notes](/CHANGELOG.md)
<!-- - [🏀 Online playground](https://stackblitz.com/github/your-org/my-module?file=playground%2Fapp.vue) -->
<!-- - [📖 &nbsp;Documentation](https://example.com) -->

## Features

<!-- Highlight some of the features your module provide here -->
- ⛰ &nbsp;Foo
- 🚠 &nbsp;Bar
- 🌲 &nbsp;Baz

## Quick Setup

1. Add `my-module` dependency to your project

```bash
# Using pnpm
pnpm add -D my-module

# Using yarn
yarn add --dev my-module

# Using npm
npm install --save-dev my-module
```

2. Add `my-module` to the `modules` section of `nuxt.config.ts`

```js
export default defineNuxtConfig({
  modules: [
    'my-module'
  ]
})
```

That's it! You can now use My Module in your Nuxt app ✨

## Development

```bash
# Install dependencies
npm install

# Generate type stubs
npm run dev:prepare

# Develop with the playground
npm run dev

# Build the playground
npm run dev:build

# Run ESLint
npm run lint

# Run Vitest
npm run test
npm run test:watch

# Release new version
npm run release
```

<!-- Badges -->
[npm-version-src]: https://img.shields.io/npm/v/my-module/latest.svg?style=flat&colorA=18181B&colorB=28CF8D
[npm-version-href]: https://npmjs.com/package/my-module

[npm-downloads-src]: https://img.shields.io/npm/dm/my-module.svg?style=flat&colorA=18181B&colorB=28CF8D
[npm-downloads-href]: https://npmjs.com/package/my-module

[license-src]: https://img.shields.io/npm/l/my-module.svg?style=flat&colorA=18181B&colorB=28CF8D
[license-href]: https://npmjs.com/package/my-module

[nuxt-src]: https://img.shields.io/badge/Nuxt-18181B?logo=nuxt.js
[nuxt-href]: https://nuxt.com
npm package: @gokraken/uikit
Description: GoKraken UIKit
Latest version: 1.0.15

<!--
Get your module up and running quickly.

Find and replace all on all files (CMD+SHIFT+F):
- Name: My Module
- Package name: my-module
- Description: My new Nuxt module
-->

# My Module

[![npm version][npm-version-src]][npm-version-href]
[![npm downloads][npm-downloads-src]][npm-downloads-href]
[![License][license-src]][license-href]
[![Nuxt][nuxt-src]][nuxt-href]

My new Nuxt module for doing amazing things.

- [✨ &nbsp;Release Notes](/CHANGELOG.md)
<!-- - [🏀 Online playground](https://stackblitz.com/github/your-org/my-module?file=playground%2Fapp.vue) -->
<!-- - [📖 &nbsp;Documentation](https://example.com) -->

## Features

<!-- Highlight some of the features your module provide here -->
- ⛰ &nbsp;Foo
- 🚠 &nbsp;Bar
- 🌲 &nbsp;Baz

## Quick Setup

Install the module to your Nuxt application with one command:

```bash
npx nuxi module add my-module
```

That's it! You can now use My Module in your Nuxt app ✨


## Contribution

<details>
  <summary>Local development</summary>
  
  ```bash
  # Install dependencies
  npm install
  
  # Generate type stubs
  npm run dev:prepare
  
  # Develop with the playground
  npm run dev
  
  # Build the playground
  npm run dev:build
  
  # Run ESLint
  npm run lint
  
  # Run Vitest
  npm run test
  npm run test:watch
  
  # Release new version
  npm run release
  ```

</details>


<!-- Badges -->
[npm-version-src]: https://img.shields.io/npm/v/my-module/latest.svg?style=flat&colorA=020420&colorB=00DC82
[npm-version-href]: https://npmjs.com/package/my-module

[npm-downloads-src]: https://img.shields.io/npm/dm/my-module.svg?style=flat&colorA=020420&colorB=00DC82
[npm-downloads-href]: https://npmjs.com/package/my-module

[license-src]: https://img.shields.io/npm/l/my-module.svg?style=flat&colorA=020420&colorB=00DC82
[license-href]: https://npmjs.com/package/my-module

[nuxt-src]: https://img.shields.io/badge/Nuxt-020420?logo=nuxt.js
[nuxt-href]: https://nuxt.com