UNPKG

2.07 kBTypeScriptView Raw
1import { _SPCollection, _SPInstance } from "../spqueryable.js";
2/**
3 * Describes a recycle bin item
4 *
5 */
6export declare class _RecycleBinItem extends _SPInstance<IRecycleBinItemObject> {
7 /**
8 * Delete's the Recycle Bin item
9 *
10 */
11 delete(): Promise<void>;
12 /**
13 * Moves Recycle Bin item to the Second-stage Recycle Bin
14 *
15 */
16 moveToSecondStage(): Promise<void>;
17 /**
18 * Restore the the Recycle Bin item
19 *
20 */
21 restore(): Promise<void>;
22}
23export interface IRecycleBinItem extends _RecycleBinItem {
24}
25export declare const RecycleBinItem: import("../spqueryable.js").ISPInvokableFactory<IRecycleBinItem>;
26/**
27 * Describes a collection of recycle bin items
28 *
29 */
30export declare class _RecycleBin extends _SPCollection<IRecycleBinItemObject[]> {
31 /**
32 * Gets a Recycle Bin Item by id
33 *
34 * @param id The string id of the recycle bin item
35 */
36 getById(id: string): IRecycleBinItem;
37 /**
38 * Delete's all items in the Recycle Bin
39 *
40 */
41 deleteAll(): Promise<void>;
42 /**
43 * Delete's all items in the Second-stage Recycle Bin
44 *
45 */
46 deleteAllSecondStageItems(): Promise<void>;
47 /**
48 * Moves all items in the Recycle Bin to the Second-stage Recycle Bin
49 *
50 */
51 moveAllToSecondStage(): Promise<void>;
52 /**
53 * Restore all items in the Recycle Bin
54 *
55 */
56 restoreAll(): Promise<void>;
57}
58export interface IRecycleBin extends _RecycleBin {
59}
60export declare const RecycleBin: import("../spqueryable.js").ISPInvokableFactory<IRecycleBin>;
61export interface IRecycleBinItemObject {
62 AuthorEmail: string;
63 AuthorName: string;
64 DeletedByEmail: string;
65 DeletedByName: string;
66 DeletedDate: string;
67 DeletedDateLocalFormatted: string;
68 DirName: string;
69 DirNamePath: {
70 DecodedUrl: string;
71 };
72 Id: string;
73 ItemState: number;
74 ItemType: number;
75 LeafName: string;
76 LeafNamePath: {
77 DecodedUrl: string;
78 };
79 Size: number;
80 Title: string;
81}
82//# sourceMappingURL=types.d.ts.map
\No newline at end of file