Skip to content

Commit

Permalink
adds typings for account resources
Browse files Browse the repository at this point in the history
  • Loading branch information
simon-scherzinger committed Jan 24, 2017
1 parent 79691b7 commit db32ffe
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 0 deletions.
5 changes: 5 additions & 0 deletions typings/resource/AccountList.d.ts
@@ -0,0 +1,5 @@
import { ListResource } from './ListResource';

export declare class AccountList extends ListResource {
constructor(resource: any, traversal?: any);
}
37 changes: 37 additions & 0 deletions typings/resource/AccountResource.d.ts
@@ -0,0 +1,37 @@
import { Resource } from './Resource';

export declare class AccountResource extends Resource {
constructor(resource: any, traversal?: any);

getAccountID(): string;

getName(): string;

getEmail(): string;

getGroups(): Array<any>;

getLanguage(): string;

getState(): string;

getOpenID(): Array<any>;

getPermissions(): Array<string>;

getAllPermissions(): Array<string;

setLanguage(value: string): AccountResource;

setState(value: string): AccountResource;

setOpenID(value: Array<any>): AccountResource;

setPermissions(value: Array<string>): AccountResource;

addPermission(value: string): AccountResource;

hasPassword(): boolean;

hasPendingEmail(): boolean
}

0 comments on commit db32ffe

Please sign in to comment.