open-index/open-npm huggingface dataset:
npm package: @oneorigininc/cloud-messaging-toolkit
Description: A reusable utility for publishing messages to cloud messaging services.
Author: Anup Kumar
Latest version: 1.0.2

# SNS Messaging Toolkit

This wrapper provides a abstract function to publish a message to AWS SNS topic with very minimal configuration. All you have to do is - install this package and import the function publishToSNS() in your file and pass the required parameters. You can refer the example below to learn more about the configuration.

## Table of Contents

- [Getting Started](#getting-started)
- [Payload Format](#event-payload-format)
- [Test Cases](#test-cases)
- [Publish message to the topic](#publish-message-to-the-topic)

## Getting Started

These instructions will help you set up the project on your local machine for development and testing purposes.

### Prerequisites

1. **Node.js** (version 14 or later)
2. **AWS SD** with **BigQuery** and **BigQuery Storage API** enabled
3. **AWS Account** with **SNS** access (for deployment)

### Installation

1. Run command:
   ```bash
   npm i @oneorigininc/cloud-messaging-toolkit
   ```

## Payload Format

The following is an example payload for big qeury. It contains the necessary product_id, bqConfig, awsConfig and data fields that must be included to insert data successfully into BigQuery.

```javascript
const params = {
  bqConfig: {
    project_id: "pass-big-qeury-project-id",
    dataset_id: "pass-big-qeury-dataset-id",
    table_id: "pass-big-qeury-table-id",
  },
  payload: {
    product_id: "your-product-id",
    data: [
      {
        "anydata that you want to insert into BigQuery",
      },
    ],
  },
  awsConfig: {
    subject: "Write your subject ",
    topicArn: "pass-your-sns-topic-arn:aws:",
    messageGroupId: "pass-id",
    region: "pass-your-aws-topic-region",
  },
};
```

## Test Cases

Run the test cases using below command:

```bash
npm run test
```

## Use it in your project

```javascript
const {publishToSNS} = require('@oneorigininc/cloud-messaging-toolkit')
const params = {
  bqConfig: {
    project_id: "pass-big-qeury-project-id",
    dataset_id: "pass-big-qeury-dataset-id",
    table_id: "pass-big-qeury-table-id",
  },
  payload: {
    product_id: "your-product-id",
    data: [
      {
        "anydata that you want to insert into BigQuery",
      },
    ],
  },
  awsConfig: {
    subject: "Write your subject ",
    topicArn: "pass-your-sns-topic-arn:aws:",
    messageGroupId: "pass-id",
    region: "pass-your-aws-topic-region",
  },
}

publishToSNS(params);
```
npm package: @oneos-js/template-compiler
Description: Weex template compiler for Vue 2.0
Author: Evan You
Latest version: 2.4.2-weex.3

# weex-template-compiler

> This package is auto-generated. For pull requests please see [src/platforms/weex/entry-compiler.js](https://github.com/vuejs/vue/tree/dev/src/platforms/weex/entry-compiler.js).
npm package: @onepark/react-native-component-code-push-update-button
Description: ## Installation
Author: onepark
Latest version: 1.0.1

# Text

## Installation

```bash
yarn add @onepark/react-native-component-code-push-update-button
```

## Usage

Props:
- `appStoreName`: string
- `style`: style of the container
- `checkStyle`: style of the "Check update" phrase
- `infoStyle`: style of the version number and description phrase
npm package: @onepark/react-native-component-google-signin
Description: ## Installation ```bash yarn add @onepark/react-native-component-google-signin ```
Author: Alban Depretz
Latest version: 1.0.1

# Google SignIn Button

## Installation
```bash
yarn add @onepark/react-native-component-google-signin
```


## Props

### Functional

#### `googleSignInConfig`
   > Configurations passed to GoogleSignIn
#### `onAuthSuccess`
   > Callback when Google auth succeeds (Receives data from Google API such as name, email, photo...etc)
#### `onAuthFailure`
   > Callback when Google auth fails (Receives an error object)

### Style

#### `buttonStyle`
#### `textStyle`
#### `text`
#### `activityIndicatorColor`
#### `LogoSource`
#### `logoStyle`
#### `ActivityIndicatorComponent`
#### `TouchableComponent`
#### `TextComponent`
npm package: @onepark/react-native-component-map-clustering
Description: ## Installation
Author: Alban Depretz
Latest version: 1.1.2

# Map with clustering

## Installation

```bash
yarn add @onepark/react-native-component-map-clustering
```

**Dependencies:**

* [react-native-maps](https://github.com/react-community/react-native-maps) > 0.21

## Usage

### Children

⚠ For each custom marker, add the following props:

* id
* coordinate : { longitude, latitude }

### Ref

##### Ref methods from react-native-maps such as animateToRegion()

##### Extra methods

| Method           | Type                                                               |  Note                                     |
| ---------------- | ------------------------------------------------------------------ | ----------------------------------------- |
| `zoomOnMarker`   | `({latitude, longitude}, { top, bottom, right, left }) => void`    | Zoom on a marker & place it on the screen. `left`, `right`, `top`, `bottom` are in between 0 & 1. They represent out far to the right, left, top, or bottom to place the marker.  |


### Props

#### Props from the [react-native-maps API](https://github.com/react-community/react-native-maps/blob/master/docs/mapview.md)

#### Other props

| Prop             | Type                      | Default                         | Note                                                |
| ---------------- | ------------------------- | ------------------------------- | --------------------------------------------------- |
| `clustering`     | `boolean`                 | False                           | (Optional) When true enables clustering of Markers. |
| `renderCluster`  | `(Cluster) => React.Node` | Renders default clusters on Map | (Optional) Render your custom clusters.             |
| `onPressCluster` | `(Cluster) => void`       | onPress not handled             | (Optional) Handle onPress on default clusters.      |
| `setRef`         | `(React ref) => void      |                                 | (Optional) Get the MapView ref                      |

### Types

```
type Cluster {
  properties : {
    cluster: Boolean
    cluster_id: Number
    point_count: Number
    point_count_abbreviated: String
  }
  geometry: {
    coordinates: [(longitude), (latitude)]
  }
}
```
npm package: @onepark/react-native-component-password-strength-indicator
Description: ## Installation
Author: onepark
Latest version: 1.0.1

# PasswordStrengthIndicator

## Installation

```bash
yarn add @onepark/react-native-component-password-strength-indicator @onepark/react-native-component-progress-bar
```

## Usage

This component uses `@onepark/react-native-component-progress-bar` as a default ProgressBar.
You can customize the ProgressBar component with the prop `ProgressBarComponent`.

See [Storybook](../../stories/PasswordStrengthIndicator.stories.js).
npm package: @onepark/react-native-component-text-input
Description: ## Installation
Author: onepark
Latest version: 1.0.5

# TextInput

## Installation

```bash
yarn add @onepark/react-native-component-text-input
```

## Usage

See [Storybook](../../stories/TextInput.stories.js).

It is recommended to use this package in conjunction with `react-native-paper` for a great, animated design.
npm package: @onepay-payment-sdk/server
Description: server payment sdk for onepay payment gateway
Author: Devoscape
Latest version: 0.0.3

<p align="center">
   <img alt="Onepay logo" src="https://www.onepay.lk/assets/Images/Onepay-PG-Logo.png" width=300 >
  </a>
</p>

<h1 align="center">OnePay-SDK</h1>

A lightweight Node.js SDK to integrate payment gateway functionalities with zero dependencies and full TypeScript support.

This package provides various payment-related utilities such as generating payment URLs and other utility functions to assist with your payment gateway integration. Callback validation functionality is planned for a future release.

## Features

- **Lightweight**: Focused purely on generating payment links.
- **Zero dependencies**: The package has no external dependencies.
- **TypeScript support**: Built-in TypeScript types for a seamless experience.
- **Flexible payment URL generation**: Easily generate payment URLs with custom parameters.
- **Callback validation (coming soon)**: Planned functionality to validate incoming callback data from the payment gateway.
- **Error handling**: Catch and handle errors effectively during payment processing.

## Installation

To install the package, run the following command:

```bash
npm install @onepay-payment-sdk/server
```

## Usage

- Require "@onepay-payment-sdk/server" in your file

  ```js
  const { Onepay } = require("@onepay-payment-sdk/server");
  ```

- Create onepay config option, with parameters.

  ```js
  const onepay = new Onepay({
    appId: "Enter APP ID from merchant admin panel",
    salt: "Enter SALT value from merchant admin panel",
    token: "Enter APP TOKEN from merchant admin panel",
  });
  ```

- Create a payment request to generate transaction information and url

  ```js
  const paymentDetails = onepay.generatePaymentParams({
    amount: 100,
    email: "onepay@example.com",
    firstName: "john",
    lastName: "doe",
    phone: "+94701234567",
    reference: "581231123121311231",
    transactionRedirectUrl: "http://localhost:3000/checkout",
  });

  const response = await onepay.createPaymentRequest(data);

  console.log(response.data.gateway.redirect_url);
  ```

## Configuration Parameters

| Parameter | Description                                            | Type     | Required |
| --------- | ------------------------------------------------------ | -------- | -------- |
| `appId`   | The APP ID provided by the merchant's admin panel.     | `string` | `Yes`    |
| `salt`    | The SALT value provided by the merchant's admin panel. | `string` | `Yes`    |
| `token`   | The APP TOKEN provided by the merchant's admin panel.  | `string` | `Yes`    |

## License

This package is licensed under the MIT License. See [LICENSE](/LICENSE) for more information.
npm package: @onephrase/commons
Description: Utility functions used accross multiple JS libraries.
Author: Oxford Harrison
Latest version: 0.5.3

# Commons

<!-- BADGES/ -->

<span class="badge-npmversion"><a href="https://npmjs.org/package/@web-native-js/observables" title="View this project on NPM"><img src="https://img.shields.io/npm/v/@web-native-js/observables.svg" alt="NPM version" /></a></span>
<span class="badge-npmdownloads"><a href="https://npmjs.org/package/@web-native-js/observables" title="View this project on NPM"><img src="https://img.shields.io/npm/dm/@web-native-js/observables.svg" alt="NPM downloads" /></a></span>
<span class="badge-patreon"><a href="https://patreon.com/ox_harris" title="Donate to this project using Patreon"><img src="https://img.shields.io/badge/patreon-donate-yellow.svg" alt="Patreon donate button" /></a></span>

<!-- /BADGES -->


Natural resources (utilities) used accross WebNative modules.

## Documentation
[The Commons Official Guide](https://docs.web-native.dev/commons/)

## Issues
To report bugs or request features, please submit an issue to this repository.

## License
MIT.