UNPKG

@sethub/sdk

Version:

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

107 lines (106 loc) 3.33 kB
import type { SetHubProtocols } from '../../../common/types/common'; import type { HttpClientProtocols } from '../../../http/protocols/client.protocols'; import type { UpdateSet } from './update-set'; type ListProjectUpdateSetsFailure = { code: 'internal'; message: string; }; export declare namespace ListProjectUpdateSets { type Input = { projectSlug: string; page?: number; size?: number; sortBy?: 'name' | 'application' | 'batch' | 'created_at'; orderBy?: 'asc' | 'desc'; applicationId?: string; batchId?: string; assigneeMemberId?: string; promotedToQaAt?: Date; promotedToProdAt?: Date; search?: string; }; type APIResponse = { metadata: { page: number; pages: number; size: number; sort_by: 'name' | 'application' | 'batch' | 'created_at'; order_by: 'asc' | 'desc'; total_count: number; promoted_to_qa_at: string | null; promoted_to_prod_at: string | null; assignee_member_id: string | null; batch_id: string | null; application_id: string | null; search: string | null; }; items: { id: string; name: string; promoted_to_qa_at: string | null; promoted_to_prod_at: string | null; created_at: string; batch: { id: string; name: string; } | null; application: { id: string; name: string; } | null; assignee_member: { id: string; user: { id: string; name: string; email: string; }; }; created_by_member: { id: string; user: { id: string; name: string; email: string; }; }; }[]; }; type APIQueryParams = { page?: number; size?: number; sort_by?: 'name' | 'application' | 'batch' | 'created_at'; order_by?: 'asc' | 'desc'; promoted_to_qa_at?: string; promoted_to_prod_at?: string; application_id?: string; batch_id?: string; assignee_member_id?: string; search?: string; }; type Metadata = { page: number; pages: number; size: number; sortBy: 'name' | 'application' | 'batch' | 'created_at'; orderBy: 'asc' | 'desc'; totalCount: number; promotedToQaAt: Date | null; promotedToProdAt: Date | null; assigneeMemberId: string | null; batchId: string | null; applicationId: string | null; search: string | null; }; type ProjectUpdateSet = UpdateSet; type Options = Pick<HttpClientProtocols.PostOptions, 'abortSignal'>; type Success = { metadata: Metadata; items: ProjectUpdateSet[]; }; type ErrorCodes = 'internal'; type Failure = ListProjectUpdateSetsFailure; type Output = APIResponse | Failure; type Response = SetHubProtocols.Response<Success, Failure>; } export {};