UNPKG

1.28 kBTypeScriptView Raw
1import { ISharingEmailData, ISharingResult, SharingRole } from "./types.js";
2import { RoleType } from "./types.js";
3/**
4 * Extend _Web
5 */
6declare module "../webs/types" {
7 interface _Web {
8 shareWith: (loginNames: string | string[], role?: SharingRole, emailData?: ISharingEmailData) => Promise<ISharingResult>;
9 shareObject: (url: string, loginNames: string | string[], role: SharingRole, emailData?: ISharingEmailData, group?: RoleType, propagateAcl?: boolean, includeAnonymousLinkInEmail?: boolean, useSimplifiedRoles?: boolean) => Promise<ISharingResult>;
10 shareObjectRaw(options: any): Promise<ISharingResult>;
11 unshareObject(url: string): Promise<ISharingResult>;
12 }
13 interface IWeb {
14 shareWith: (loginNames: string | string[], role?: SharingRole, emailData?: ISharingEmailData) => Promise<ISharingResult>;
15 shareObject: (url: string, loginNames: string | string[], role: SharingRole, emailData?: ISharingEmailData, group?: RoleType, propagateAcl?: boolean, includeAnonymousLinkInEmail?: boolean, useSimplifiedRoles?: boolean) => Promise<ISharingResult>;
16 shareObjectRaw(options: any): Promise<ISharingResult>;
17 unshareObject(url: string): Promise<ISharingResult>;
18 }
19}
20//# sourceMappingURL=web.d.ts.map
\No newline at end of file