@sudobility/testomniac_types
v0.0.9
Published
TypeScript types for Starter API - template project
Readme
@sudobility/testomniac_types
Shared TypeScript type definitions and response helpers for the Testomniac AI-powered automated UI testing platform.
Installation
bun add @sudobility/testomniac_typesUsage
import {
History,
HistoryCreateRequest,
successResponse,
errorResponse,
} from "@sudobility/testomniac_types";
const request: HistoryCreateRequest = { datetime: new Date(), value: 42 };
const response = successResponse({ id: "abc", ...request });Types
| Type | Description |
|------|-------------|
| History | Core entity: id, user_id, datetime, value, timestamps |
| HistoryCreateRequest | { datetime, value } |
| HistoryUpdateRequest | { datetime?, value? } |
| HistoryTotalResponse | { total } |
Response Helpers
successResponse<T>(data)-- wrap data inBaseResponse<T>errorResponse(error)-- create error response
Re-exports from @sudobility/types
ApiResponse, BaseResponse, NetworkClient, Optional
Development
bun run build # Dual CJS + ESM build
bun test # Run tests
bun run verify # All checks + buildRelated Packages
testomniac_client-- API client SDKtestomniac_lib-- Business logic with Zustand storestestomniac_api-- Backend API servertestomniac_app-- Web apptestomniac_app_rn-- React Native apptestomniac_extension-- Chrome extension
License
BUSL-1.1
