1 | import { ReadableFile } from "../files/readable-file.js";
|
2 | import { IDeleteableWithETag, _SPCollection } from "../spqueryable.js";
|
3 | export declare class _Attachments extends _SPCollection<IAttachmentInfo[]> {
|
4 | |
5 |
|
6 |
|
7 |
|
8 |
|
9 | getByName(name: string): IAttachment;
|
10 | |
11 |
|
12 |
|
13 |
|
14 |
|
15 |
|
16 | add(name: string, content: string | Blob | ArrayBuffer): Promise<IAttachmentAddResult>;
|
17 | }
|
18 | export interface IAttachments extends _Attachments {
|
19 | }
|
20 | export declare const Attachments: import("../spqueryable.js").ISPInvokableFactory<IAttachments>;
|
21 | export declare class _Attachment extends ReadableFile<IAttachmentInfo> {
|
22 | delete: (this: import("../spqueryable.js").ISPQueryable<any>, eTag?: string) => Promise<void>;
|
23 | |
24 |
|
25 |
|
26 |
|
27 |
|
28 | setContent(body: string | ArrayBuffer | Blob): Promise<IAttachment>;
|
29 | |
30 |
|
31 |
|
32 |
|
33 |
|
34 | recycle(eTag?: string): Promise<void>;
|
35 | }
|
36 | export interface IAttachment extends _Attachment, IDeleteableWithETag {
|
37 | }
|
38 | export declare const Attachment: import("../spqueryable.js").ISPInvokableFactory<IAttachment>;
|
39 | export interface IAttachmentAddResult {
|
40 | file: IAttachment;
|
41 | data: IAttachmentFileInfo;
|
42 | }
|
43 | export interface IAttachmentFileInfo {
|
44 | name: string;
|
45 | content: string | Blob | ArrayBuffer;
|
46 | }
|
47 | export interface IAttachmentInfo {
|
48 | FileName: string;
|
49 | FileNameAsPath: {
|
50 | DecodedUrl: string;
|
51 | };
|
52 | ServerRelativePath: {
|
53 | DecodedUrl: string;
|
54 | };
|
55 | ServerRelativeUrl: string;
|
56 | }
|
57 |
|
\ | No newline at end of file |