UNPKG

@upv/ushi-shared

Version:

Shared DTOs, types, and utilities for the USHI platform (LMS, Trials, Social, Wallet).

24 lines (23 loc) 615 B
import type { APIGatewayProxyEventV2, APIGatewayProxyResultV2 } from 'aws-lambda'; /** * Extracted request context fields for logs or analytics */ export type UshiEventContext = { path: string | undefined; requestId: string | undefined; }; /** * Common response shape for success() helper */ export type UshiResponsePayload = { status: 'ok'; service: string; timestamp: string; region?: string; env?: string; requestId?: string; }; /** * Base handler type for USHI microservices */ export type UshiHandler = (event: APIGatewayProxyEventV2) => Promise<APIGatewayProxyResultV2>;