1 | import { Enums } from "../extensibility";
|
2 | export declare module SharePoint {
|
3 | interface ISharePointContextInfo {
|
4 | alertsEnabled: boolean;
|
5 | allowSilverlightPrompt: string;
|
6 | clientServerTimeDelta: number;
|
7 | crossDomainPhotosEnabled: boolean;
|
8 | currentCultureName: string;
|
9 | currentLanguage: number;
|
10 | currentUICultureName: string;
|
11 | isAppWeb: boolean;
|
12 | layoutsUrl: string;
|
13 | pageItemId: number;
|
14 | pageListId: string;
|
15 | pagePersonalizationScope: number;
|
16 | serverRequestPath: string;
|
17 | siteAbsoluteUrl: string;
|
18 | siteClientTag: string;
|
19 | siteServerRelativeUrl: string;
|
20 | systemUserKey: string;
|
21 | tenantAppVersion: string;
|
22 | updateFormDigestPageLoaded: Date;
|
23 | userId: number;
|
24 | userLoginName: string;
|
25 | webAbsoluteUrl: string;
|
26 | webLanguage: number;
|
27 | webLogoUrl: string;
|
28 | webPermMasks: Object;
|
29 | webServerRelativeUrl: string;
|
30 | webTemplate: string;
|
31 | webTitle: string;
|
32 | webUIVersion: number;
|
33 | }
|
34 | interface ISharePointNewFile {
|
35 | newFileUrl: string;
|
36 | isFolder: boolean;
|
37 | newFileSize: number;
|
38 | newFileIcon: string;
|
39 | }
|
40 | interface ITaxonomyPickerOptions {
|
41 | isCreateTermInSuggestion: boolean;
|
42 | isMulti?: boolean;
|
43 | isReadOnly?: boolean;
|
44 | allowFillIn?: boolean;
|
45 | termSetId?: string;
|
46 | useHashtags?: boolean;
|
47 | useKeyword?: boolean;
|
48 | maxSuggestions?: number;
|
49 | lcid?: number;
|
50 | language?: string;
|
51 | filterTermId?: string;
|
52 | levelToShowTerms?: number;
|
53 | useTermSetasRootNode?: boolean;
|
54 | }
|
55 | interface ITaxonomyPickerValue {
|
56 | Id: string;
|
57 | Name: string;
|
58 | }
|
59 | interface ITaxonomyFieldValue {
|
60 | label?: string;
|
61 | termGuid?: string;
|
62 | typeId?: string;
|
63 | wssId?: number;
|
64 | }
|
65 | interface IUserPickerValue {
|
66 | }
|
67 | interface IUserFieldValue {
|
68 | email?: string;
|
69 | typeId?: string;
|
70 | lookupId?: number;
|
71 | lookupValue?: string;
|
72 | key?: string;
|
73 | }
|
74 | interface IPeoplePickerPrincipal {
|
75 | key: string;
|
76 | description?: string;
|
77 | displayText: string;
|
78 | entityType?: string;
|
79 | providerDisplayName?: string;
|
80 | providerName?: string;
|
81 | isResolved?: boolean;
|
82 | entityData?: any;
|
83 | multipleMatches?: any;
|
84 | tooltip?: string;
|
85 | canNotRemove?: boolean;
|
86 | }
|
87 | interface IPeoplePickerUserEntity {
|
88 | Title: string;
|
89 | MobilePhone: string;
|
90 | Department: string;
|
91 | Email: string;
|
92 | }
|
93 | interface IPeoplePickerGroupEntity {
|
94 | SPGroupID: string;
|
95 | AccountName: string;
|
96 | PrincipalType: string;
|
97 | }
|
98 | interface IWebAssociatedGroups {
|
99 | owners: Array<IPeoplePickerPrincipal>;
|
100 | members: Array<IPeoplePickerPrincipal>;
|
101 | visitors: Array<IPeoplePickerPrincipal>;
|
102 | }
|
103 | interface IWebAssociatedGroup {
|
104 | id?: number;
|
105 | title?: string;
|
106 | users?: Array<IPeoplePickerPrincipal>;
|
107 | canCurrentUserViewMembership?: boolean;
|
108 | canCurrentUserManageGroup?: boolean;
|
109 | canCurrentUserEditMembership?: boolean;
|
110 | isMultiple?: boolean;
|
111 | groupNotExist?: boolean;
|
112 | role?: Enums.WebAssociatedGroupRole;
|
113 | }
|
114 | interface IUser {
|
115 | loginName?: string;
|
116 | displayName?: string;
|
117 | userId: number;
|
118 | photoUrl: string;
|
119 | }
|
120 | interface IGroup {
|
121 | id?: number;
|
122 | title?: string;
|
123 | loginName?: string;
|
124 | }
|
125 | interface IListIdentifier {
|
126 | id?: string;
|
127 | title: string;
|
128 | listUrl: string;
|
129 | webUrl: string;
|
130 | rootFolderUrl?: string;
|
131 | }
|
132 | }
|