Skip to content
This repository has been archived by the owner on Jan 18, 2021. It is now read-only.

Commit

Permalink
added new folder().upload() method and options (Issue #18)
Browse files Browse the repository at this point in the history
  • Loading branch information
gitbrent committed Dec 11, 2018
1 parent ed9c849 commit ddd7576
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion dist/sprestlib.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ declare namespace sprLib {

interface FileCheckInOptions {
comment?: string;
type?: 'major' | 'minor' | 'overwrite';
type?: 'major' | 'minor' | 'overwrite';
}
interface FileInfoOptions {
version?: number;
Expand All @@ -51,6 +51,12 @@ declare namespace sprLib {
}
function file(fileName: string): IFile;

interface FolderUploadOptions {
name: string;
data: object;
requestDigest?: string;
overwrite?: boolean;
}
interface IFolder {
add(folderName: string): Promise<object>;
delete(): Promise<boolean>;
Expand All @@ -59,6 +65,7 @@ declare namespace sprLib {
info(): Promise<object>;
perms(): Promise<object[]>;
recycle(): Promise<boolean>;
upload(options: FolderUploadOptions): Promise<object>;
}
function folder(folderName: string): IFolder;

Expand Down

0 comments on commit ddd7576

Please sign in to comment.