npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@ifabit/api-types

v1.0.0

Published

IFABIT API Types

Downloads

2

Readme

Types for IFABIT API


export type ApiKey = {
  id: string;
  uid: string;
  label: string;
  public: string;
  private: string;
  extras: any;
  createdAt: Date;
};

export type Customer = {
  id: string;
  type: CustomerType;
  firstName: string;
  lastName: string;
  email: string;
  phone: string | null;
  extras: any | null;
  emailVerified: boolean;
  phoneVerified: boolean;
  identityVerified: boolean;
  uid: string;
  createdAt: Date;
  updatedAt: Date;
};

export type Wallet = {
  id: string;
  label: string | null;
  type: WalletType;
  currency: WalletCurrency;
  balance: number;
  uid: string;
  createdAt: Date;
  updatedAt: Date;
};

export type WalletOperation = {
  id: string;
  walletId: string;
  amount: number;
  label: string;
  createdAt: Date;
};

export type WalletTransfer = {
  id: string;
  label: string | null;
  currency: WalletCurrency;
  sent: number;
  received: number;
  tax: number;
  system: number;
  commission: number;
  pricing: any;
  senderName: string | null;
  receiverName: string | null;
  senderId: string;
  receiverId: string;
  senderHistoryId: string;
  receiverHistoryId: string;
  createdAt: Date;
};

export type TransferCommission = {
  id: string;
  amount: number;
  currency: string;
  walletId: string;
  transferId: string;
  createdAt: Date;
};

export type Invoice = {
  id: string;
  projectId: string | null;
  payeeId: string;
  payerId: string;
  amount: number;
  currency: string;
  payeeWalletId: string;
  label: string;
  extras: any | null;
  status: InvoiceStatus;
  transferId: string | null;
  createdAt: Date;
  updatedAt: Date | null;
  paidAt: Date | null;
  cancelledAt: Date | null;
};

export type Currency = {
  id: string;
  label: string;
  currency: string;
  floatingPoints: number;
  marketAlias: string;
  minAmount: number;
  maxAmount: number | null;
  buyEnabled: boolean;
  sellEnabled: boolean;
  sell: any;
  buy: any;
  feesIn: any | null;
  feesOut: any | null;
  sourceAddress: string | null;
  addressRegex: string;
  addressPrefix: string;
  provider: string;
  providerInternalCode: string | null;
  directPayment: boolean;
  type: string;
  logo: string | null;
  createdAt: Date;
  updatedAt: Date;
};

export type Exchange = {
  id: string;
  uid: string;
  from: any;
  to: any;
  amountSent: number;
  amountToReceive: number;
  appliedRate: any;
  senderAddress: string | null;
  receiverAddress: string;
  status: ExchangeStatus;
  createdAt: Date;
  updatedAt: Date;
  confirmedAt: Date | null;
  completedAt: Date | null;
  cancelledAt: Date | null;
};

export type ExchangeTransaction = {
  id: string;
  exchangeId: string;
  type: ExchangeTransactionType;
  txnId: string;
  amount: number;
  currency: string;
  address: string | null;
  extras: any | null;
  status: ExchangeTransactionStatus;
  createdAt: Date;
  updatedAt: Date;
  completedAt: Date | null;
  cancelledAt: Date | null;
};

export type Business = {
  id: string;
  label: string;
  website: string;
  country: string;
  ifu: string;
  rccm: string | null;
  uid: string;
  verified: boolean;
  createdAt: Date;
  updatedAt: Date | null;
};

export enum UserPoolStatus {
  ACTIVE = "active",
  DISABLED = "disabled",
}


export enum CustomerType {
  BASIC = "basic",
  PARTNER = "partner",
}

export enum WalletType {
  BASIC = "basic",
  BUSINESS = "business",
}


export enum WalletCurrency {
  IFAXOF = "IFAXOF",
  IFAUSD = "IFAUSD",
}

export enum InvoiceStatus {
  PENDING = "PENDING",
  PAID = "PAID",
  CANCELLED = "CANCELLED",
}

export enum ExchangeStatus {
  WAITING = "WAITING",
  CANCELLED = "CANCELLED",
  CONFIRMED = "CONFIRMED",
  PENDING = "PENDING",
  COMPLETED = "COMPLETED",
}

export enum ExchangeTransactionType {
  IN = "IN",
  OUT = "OUT",
}

export enum ExchangeTransactionStatus {
  PENDING = "PENDING",
  COMPLETED = "COMPLETED",
  CANCELLED = "CANCELLED",
}


export enum ValidationStatus {
  ACCEPTED = "accepted",
  PENDING = "pending",
  REJECTED = "rejected",
}

export type Project = {
  id: string;
  uid: string;
  businessId: string | null;
  label: string;
  website: string | null;
  wallet: string | null;
  webhook: string;
  secret: string;
  keyPairId: string;
  status: ProjectStatus;
  createdAt: Date;
  updatedAt: Date | null;
}

export enum ProjectStatus {
  TEST = "TEST",
  LIVE = "LIVE",
}

export type WebPaymentRequest = {
  id: string
  projectId: string
  label: string
  amount: number
  currency: string
  extras: any
  invoiceId: string | null
  createdAt: Date
  updatedAt: Date | null
}