1 | import { BaseRequestOptions, BaseService, PaginatedRequestOptions, Sudo } from '../infrastructure';
|
2 | import { EventOptions } from './Events';
|
3 | export interface UserSchema {
|
4 | id: number;
|
5 | name: string;
|
6 | username: string;
|
7 | state: string;
|
8 | avatar_url: string;
|
9 | web_url: string;
|
10 | }
|
11 | export interface UserDetailSchema extends UserSchema {
|
12 | created_at: Date;
|
13 | bio?: string;
|
14 | location?: string;
|
15 | public_email: string;
|
16 | skype: string;
|
17 | linkedin: string;
|
18 | twitter: string;
|
19 | website_url?: string;
|
20 | organization?: string;
|
21 | }
|
22 | export declare class Users extends BaseService {
|
23 | all(options?: PaginatedRequestOptions): Promise<import("../infrastructure").GetResponse>;
|
24 | activities(options?: Sudo): Promise<import("../infrastructure").GetResponse>;
|
25 | projects(userId: number, options?: Sudo): Promise<import("../infrastructure").GetResponse>;
|
26 | block(userId: number, options?: Sudo): Promise<object>;
|
27 | create(options?: BaseRequestOptions): Promise<object>;
|
28 | current(options?: Sudo): Promise<import("../infrastructure").GetResponse>;
|
29 | edit(userId: number, options?: BaseRequestOptions): Promise<object>;
|
30 | events(userId: number, options?: BaseRequestOptions & EventOptions): Promise<import("../infrastructure").GetResponse>;
|
31 | search(emailOrUsername: string, options?: Sudo): Promise<import("../infrastructure").GetResponse>;
|
32 | show(userId: number, options?: BaseRequestOptions): Promise<import("../infrastructure").GetResponse>;
|
33 | remove(userId: number, options?: Sudo): Promise<object>;
|
34 | unblock(userId: number, options?: Sudo): Promise<object>;
|
35 | }
|