1 | import { __decorate } from "tslib";
|
2 | import { _SPCollection, spInvokableFactory, SPQueryable, _SPInstance, } from "../spqueryable.js";
|
3 | import { defaultPath } from "../decorators.js";
|
4 | import { spPost } from "../operations.js";
|
5 |
|
6 |
|
7 |
|
8 |
|
9 | export class _RecycleBinItem extends _SPInstance {
|
10 | |
11 |
|
12 |
|
13 |
|
14 | delete() {
|
15 | return spPost(SPQueryable(this, "DeleteObject"));
|
16 | }
|
17 | |
18 |
|
19 |
|
20 |
|
21 | moveToSecondStage() {
|
22 | return spPost(SPQueryable(this, "MoveToSecondStage"));
|
23 | }
|
24 | |
25 |
|
26 |
|
27 |
|
28 | restore() {
|
29 | return spPost(SPQueryable(this, "Restore"));
|
30 | }
|
31 | }
|
32 | export const RecycleBinItem = spInvokableFactory(_RecycleBinItem);
|
33 |
|
34 |
|
35 |
|
36 |
|
37 | let _RecycleBin = class _RecycleBin extends _SPCollection {
|
38 | |
39 |
|
40 |
|
41 |
|
42 |
|
43 | getById(id) {
|
44 | return RecycleBinItem(this).concat(`('${id}')`);
|
45 | }
|
46 | |
47 |
|
48 |
|
49 |
|
50 | deleteAll() {
|
51 | return spPost(SPQueryable(this, "DeleteAll"));
|
52 | }
|
53 | |
54 |
|
55 |
|
56 |
|
57 | deleteAllSecondStageItems() {
|
58 | return spPost(SPQueryable(this, "DeleteAllSecondStageItems"));
|
59 | }
|
60 | |
61 |
|
62 |
|
63 |
|
64 | moveAllToSecondStage() {
|
65 | return spPost(SPQueryable(this, "MoveAllToSecondStage"));
|
66 | }
|
67 | |
68 |
|
69 |
|
70 |
|
71 | restoreAll() {
|
72 | return spPost(SPQueryable(this, "RestoreAll"));
|
73 | }
|
74 | };
|
75 | _RecycleBin = __decorate([
|
76 | defaultPath("RecycleBin")
|
77 | ], _RecycleBin);
|
78 | export { _RecycleBin };
|
79 | export const RecycleBin = spInvokableFactory(_RecycleBin);
|
80 |
|
\ | No newline at end of file |