UNPKG

@sethub/sdk

Version:

<div align="center"> <h1> SetHub SDK </h1>

54 lines (53 loc) 1.44 kB
import type { SetHubProtocols } from '../../../common/types/common'; import type { HttpClientProtocols } from '../../../http/protocols/client.protocols'; import type { Activity } from './activity'; type ListProjectActivityFailure = { code: 'internal'; message: string; }; export declare namespace ListProjectActivity { type Input = { projectSlug: string; page?: number; size?: number; }; type Options = Pick<HttpClientProtocols.PostOptions, 'abortSignal'>; type APIResponse = { metadata: { page: number; pages: number; size: number; total_count: number; }; items: { id: string; action: string; created_at: string; user: { id: string; name: string; }; metadata: any; }[]; }; type APIQueryParams = { page?: number; size?: number; }; type Metadata = { page: number; pages: number; size: number; totalCount: number; }; type ProjectActivity = Activity; type Success = { metadata: Metadata; items: ProjectActivity[]; }; type ErrorCodes = 'internal'; type Failure = ListProjectActivityFailure; type Output = APIResponse | Failure; type Response = SetHubProtocols.Response<Success, Failure>; } export {};