Skip to content
This repository was archived by the owner on Jan 18, 2021. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
104 changes: 52 additions & 52 deletions dist/sprestlib.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,56 +4,56 @@
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

declare namespace sprLib {
const version: string;

function baseUrl(): string;
function baseUrl(baseUrl: string): void;

function nodeConfig(options: object): void;

function renewSecurityToken(): void;

/**
* SharePoint List/Library API.
*
* @see \`{@link https://gitbrent.github.io/SpRestLib/docs/api-list.html }\`
* @since 1.0
*/
class list {
constructor(listName: string);
constructor(listGuid: string);
constructor(options: object);

cols(): object[];
info(): object[];
perms(): object[];

items(options: object): object[];
create(options: object): object[];
update(options: object): object[];
delete(options: object): number;
recycle(options: object): number;
}

function rest(options: object): object[];

class site {
constructor(siteUrl?: string);

info(): object[];
lists(): object[];
subsites(): object[];
perms(): object[];
roles(): object[];
groups(): object[];
users(): object[];
}

class user {
constructor(options: object);

info(): object;
groups(): object[];
profile(arrProfileKeys: object): object;
}
const version: string;

function baseUrl(): string;
function baseUrl(baseUrl: string): void;

function nodeConfig(options: object): void;

function renewSecurityToken(): void;

/**
* SharePoint List/Library API.
*
* @see \`{@link https://gitbrent.github.io/SpRestLib/docs/api-list.html }\`
* @since 1.0
*/
class list {
constructor(listName: string);
constructor(listGuid: string);
constructor(options: object);

cols(): object[];
info(): object[];
perms(): object[];

items(options: object): Promise<object[]>;
create(options: object): Promise<object[]>;
update(options: object): Promise<object[]>;
delete(options: object): Promise<number>;
recycle(options: object): Promise<number>;
}

function rest(options: object): Promise<object[]>;

class site {
constructor(siteUrl?: string);

info(): object[];
lists(): object[];
subsites(): object[];
perms(): object[];
roles(): object[];
groups(): object[];
users(): object[];
}

class user {
constructor(options?: object);

info(): Promise<object>;
groups(): object[];
profile(arrProfileKeys: object): object;
}
}