npm.io
0.0.47 • Published 2d ago

@sudobility/tapayoka_types

Licence
BUSL-1.1
Version
0.0.47
Deps
0
Size
51 kB
Vulns
0
Weekly
0

@sudobility/tapayoka_types

Shared TypeScript type definitions for the Tapayoka QR-to-device cashless payment system.

Installation

bun add @sudobility/tapayoka_types

Usage

import type {
  Device, Service, Order, Authorization,
  ServiceType, OrderStatus, DeviceStatus,
  BleDeviceChallenge, AuthorizationPayload,
} from '@sudobility/tapayoka_types';

Types

  • Enums: ServiceType (TRIGGER/FIXED/VARIABLE), OrderStatus, DeviceStatus, UserRole, LogDirection
  • Domain Models: Device (keyed by ETH wallet address), Service, Order, Authorization
  • BLE Protocol: BleDeviceChallenge, AuthorizationPayload, BleCommand, BleDeviceResponse, UUID constants
  • Request/Response: Buyer (verify, order, pay, authorize) and Vendor (device/service CRUD, QR, dashboard stats) types

Development

bun run build        # ESM + CJS dual build
bun run test         # Run Vitest
bun run typecheck    # TypeScript check
bun run lint         # ESLint
bun run verify       # Typecheck + lint + build
  • @sudobility/tapayoka_client -- React hooks for Tapayoka API
  • @sudobility/tapayoka_lib -- Business logic with Zustand stores
  • tapayoka_api -- Backend API server
  • tapayoka_buyer_app_rn / tapayoka_vendor_app -- Consumer apps

License

BUSL-1.1

Keywords