Catalog npm
Back to packageRELEASE DETAILS

1.0.0

npm

3thix-typescript-sdk

[![NPM Version](https://img.shields.io/npm/v/3thix-typescript-sdk)](https://www.npmjs.com/package/3thix-typescript-sdk)

Published13 Dec 2024
Direct dependencies18
Transitive dependenciesNot calculated

README

Current package documentation

3thix typescript SDK

NPM Version

Installing

npm install 3thix-typescript-sdk
# OR
yarn add 3thix-typescript-sdk

Example

import Client from '3thix-typescript-sdk';

const client = Client("sandbox", "<your-api-key>")

async function openNewPayment() {
  try {
    const resp = await client.createOrderPayment("1.00", "USD")
    const paymentUrl = resp.getPaymentUrl()

    const win = window.open(paymentUrl, '', 'popup=true');
    if (!win) return;

    win.resizeTo(550, 800);
  } catch (err) {
    console.error(err)
  }
}

openNewPayment()

Interface

export interface SDK {
  invoiceGet(id: string): Promise<InvoiceGetResponse>;
  createOrderPayment(amount: string, currency: string): Promise<CreateOrderResponse>;
  createOrderPurchase(fulfillmentGameUserId: string, destinationCurrency: string, cart: Cart): Promise<CreateOrderResponse>;
  authorizeFulfillment(invoiceId: string): Promise<AuthorizeFulfillmentResponse>;
  getCampaigns(gameUserId: string): Promise<GetCampaignResponse>;
  syncUsersGame(req: SyncUsersReq): Promise<SyncUsersResponse>;
  createOrderFulfillment(amount: string, currency: string, rail: string, sourceAccountId: string, fulfillmentGameUserId: string): Promise<CreateOrderResponse>;
}

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Declared dependencies 18

Native requirements
18 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
axios
Environment
{
  "local_name": "axios",
  "alias": false,
  "peer_metadata": null
}
^1.7.3runtime
typescript
Environment
{
  "local_name": "typescript",
  "alias": false,
  "peer_metadata": null
}
^4.9.5runtime
@types/jest
Environment
{
  "local_name": "@types/jest",
  "alias": false,
  "peer_metadata": null
}
^27.5.2runtime
@types/node
Environment
{
  "local_name": "@types/node",
  "alias": false,
  "peer_metadata": null
}
^16.18.105runtime
eslint
Environment
{
  "local_name": "eslint",
  "alias": false,
  "peer_metadata": null
}
^8.50.0development
rollup
Environment
{
  "local_name": "rollup",
  "alias": false,
  "peer_metadata": null
}
^4.20.0development
prettier
Environment
{
  "local_name": "prettier",
  "alias": false,
  "peer_metadata": null
}
^3.0.3development
@rollup/plugin-json
Environment
{
  "local_name": "@rollup/plugin-json",
  "alias": false,
  "peer_metadata": null
}
^6.1.0development
rollup-plugin-terser
Environment
{
  "local_name": "rollup-plugin-terser",
  "alias": false,
  "peer_metadata": null
}
^7.0.2development
eslint-config-prettier
Environment
{
  "local_name": "eslint-config-prettier",
  "alias": false,
  "peer_metadata": null
}
^9.0.0development
eslint-plugin-prettier
Environment
{
  "local_name": "eslint-plugin-prettier",
  "alias": false,
  "peer_metadata": null
}
^5.0.0development
@rollup/plugin-commonjs
Environment
{
  "local_name": "@rollup/plugin-commonjs",
  "alias": false,
  "peer_metadata": null
}
^26.0.1development
@typescript-eslint/parser
Environment
{
  "local_name": "@typescript-eslint/parser",
  "alias": false,
  "peer_metadata": null
}
^6.7.3development
rollup-plugin-typescript2
Environment
{
  "local_name": "rollup-plugin-typescript2",
  "alias": false,
  "peer_metadata": null
}
^0.36.0development
@rollup/plugin-node-resolve
Environment
{
  "local_name": "@rollup/plugin-node-resolve",
  "alias": false,
  "peer_metadata": null
}
^15.2.3development
@typescript-eslint/eslint-plugin
Environment
{
  "local_name": "@typescript-eslint/eslint-plugin",
  "alias": false,
  "peer_metadata": null
}
^6.7.3development
eslint-plugin-simple-import-sort
Environment
{
  "local_name": "eslint-plugin-simple-import-sort",
  "alias": false,
  "peer_metadata": null
}
^10.0.0development
rollup-plugin-peer-deps-external
Environment
{
  "local_name": "rollup-plugin-peer-deps-external",
  "alias": false,
  "peer_metadata": null
}
^2.2.4development

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "shasum": "e4167392c9bf7da61a81aad1b4e36b99a21e8148",
  "tarball": "https://registry.npmjs.org/3thix-typescript-sdk/-/3thix-typescript-sdk-1.0.0.tgz",
  "fileCount": 6,
  "integrity": "sha512-19uNMXGVJeH+aH1sjTDtsBzBjKd3zd97FO+1LuNAOvuO9WX3W4QaEpw4dwc+cijYs1pSTKq/wviA5k1tjRDH6w==",
  "signatures": [
    {
      "sig": "MEYCIQCws2anMBty1/7C0jd83MvVUlDIz58+AZde0xdZvMl4fwIhAInVbArJS0c/ddabppJ/rNz0g+YcJcSPcZffB+rtr+ae",
      "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"
    }
  ],
  "unpackedSize": 408035
}

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 19:52 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:a743da8ebfbceff9f0790e2d42b298b2573b2f65d0bfdae8564d7e2209466de4

Other collected versions

View all collected versions →