import { Observable } from 'rxjs/Observable' ; import { SDKFetch } from '../../SDKFetch' ; import { ProjectSchema } from '../../schemas/Project' ; import { UrlPagingQuery } from '../../utils/internalTypes' ; export type GetPersonalProjectsQueryParams = { isArchived : boolean ; isStar : boolean ; [ key ] : any ; } ; export interface GetPersonalProjectsUrlQuery extends Partial < GetPersonalProjectsQueryParams > , UrlPagingQuery { } export function getPersonalProjects ( this , query ) { return this . get < ProjectSchema [ ] > ( 'projects/personal' , query ) ; } SDKFetch . prototype . getPersonalProjects = getPersonalProjects ; declare module '../../SDKFetch' { interface SDKFetch { getPersonalProjects : typeof getPersonalProjects ; } }