@sudobility/whisperly_types
v1.0.34
Published
TypeScript types for Whisperly API - Localization SaaS platform
Downloads
392
Maintainers
Readme
@sudobility/whisperly_types
Shared TypeScript type definitions for the Whisperly localization SaaS platform.
Installation
bun add @sudobility/whisperly_typesUsage
import {
Project,
TranslationRequest,
TranslationResponse,
successResponse,
errorResponse,
} from "@sudobility/whisperly_types";
const response = successResponse({ translations: { es: ["Hola"] } });Types
Entity Types
User, UserSettings, Project, Dictionary, DictionaryEntry, UsageRecord
Request Types
ProjectCreateRequest, ProjectUpdateRequest, DictionaryCreateRequest, TranslationRequest
Response Types
ProjectResponse, ProjectListResponse, TranslationApiResponse, AnalyticsApiResponse, DictionarySearchApiResponse
Response Helpers
successResponse<T>(data)-- wrap data inBaseResponse<T>errorResponse(error)-- create error response
Development
bun run build # Dual CJS + ESM build
bun run test:run # Run tests once
bun run verify # All checks + buildRelated Packages
whisperly_client-- API client SDKwhisperly_lib-- Business logic with Zustand storeswhisperly_api-- Backend API serverwhisperly_app-- Web application
License
BUSL-1.1
