UNPKG

@sethub/sdk

Version:

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

69 lines (68 loc) 1.98 kB
import type { SetHubProtocols } from '../../../common/types/common'; import type { HttpClientProtocols } from '../../../http/protocols/client.protocols'; import type { Invitation, InvitationRole, InvitationStatus } from './invitation'; type ListProjectInvitationsFailure = { code: 'internal'; message: string; }; export declare namespace ListProjectInvitations { type SortBy = 'email' | 'role' | 'status' | 'invited_by_member' | 'created_at'; type OrderBy = 'asc' | 'desc'; type Input = { projectSlug: string; page?: number; size?: number; sortBy?: SortBy; orderBy?: OrderBy; }; type Options = Pick<HttpClientProtocols.PostOptions, 'abortSignal'>; type APIResponse = { metadata: { page: number; pages: number; size: number; sort_by: SortBy; order_by: OrderBy; total_count: number; }; items: { id: string; email: string; role: InvitationRole; status: InvitationStatus; is_expired: boolean; created_at: Date; invited_by_member: { id: string; user: { id: string; name: string; email: string; }; }; }[]; }; type APIQueryParams = { page?: number; size?: number; sort_by?: SortBy; order_by?: OrderBy; }; type Metadata = { page: number; pages: number; size: number; sortBy: SortBy; orderBy: OrderBy; totalCount: number; }; type Success = { metadata: Metadata; items: Invitation[]; }; type ErrorCodes = 'internal'; type Failure = ListProjectInvitationsFailure; type Output = APIResponse | Failure; type Response = SetHubProtocols.Response<Success, Failure>; } export {};