UNPKG

931 BTypeScriptView Raw
1import { ISharingEmailData, ISharingResult, SharingRole, ISharedFuncs } from "./types.js";
2declare module "../items/types" {
3 interface _Item extends ISharedFuncs {
4 shareWith(loginNames: string | string[], role?: SharingRole, requireSignin?: boolean, emailData?: ISharingEmailData): Promise<ISharingResult>;
5 }
6 interface IItem extends ISharedFuncs {
7 /**
8 * Shares this item with one or more users
9 *
10 * @param loginNames string or string[] of resolved login names to which this item will be shared
11 * @param role The role (View | Edit) applied to the share
12 * @param emailData Optional, if inlucded an email will be sent. Note subject currently has no effect.
13 */
14 shareWith(loginNames: string | string[], role?: SharingRole, requireSignin?: boolean, emailData?: ISharingEmailData): Promise<ISharingResult>;
15 }
16}
17//# sourceMappingURL=item.d.ts.map
\No newline at end of file