@kwiz/common 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (310) hide show
  1. package/LICENSE +21 -0
  2. package/dist/_dependencies.d.ts +1 -0
  3. package/dist/_dependencies.js +8 -0
  4. package/dist/_dependencies.js.map +1 -0
  5. package/dist/helpers/Guid.d.ts +119 -0
  6. package/dist/helpers/Guid.js +183 -0
  7. package/dist/helpers/Guid.js.map +1 -0
  8. package/dist/helpers/_dependencies.d.ts +2 -0
  9. package/dist/helpers/_dependencies.js +21 -0
  10. package/dist/helpers/_dependencies.js.map +1 -0
  11. package/dist/helpers/base64.d.ts +8 -0
  12. package/dist/helpers/base64.js +178 -0
  13. package/dist/helpers/base64.js.map +1 -0
  14. package/dist/helpers/browser.d.ts +144 -0
  15. package/dist/helpers/browser.js +1200 -0
  16. package/dist/helpers/browser.js.map +1 -0
  17. package/dist/helpers/browserinfo.d.ts +23 -0
  18. package/dist/helpers/browserinfo.js +215 -0
  19. package/dist/helpers/browserinfo.js.map +1 -0
  20. package/dist/helpers/collections.base.d.ts +128 -0
  21. package/dist/helpers/collections.base.js +430 -0
  22. package/dist/helpers/collections.base.js.map +1 -0
  23. package/dist/helpers/collections.d.ts +18 -0
  24. package/dist/helpers/collections.js +99 -0
  25. package/dist/helpers/collections.js.map +1 -0
  26. package/dist/helpers/color.d.ts +11 -0
  27. package/dist/helpers/color.js +57 -0
  28. package/dist/helpers/color.js.map +1 -0
  29. package/dist/helpers/cookies.d.ts +6 -0
  30. package/dist/helpers/cookies.js +56 -0
  31. package/dist/helpers/cookies.js.map +1 -0
  32. package/dist/helpers/date.d.ts +43 -0
  33. package/dist/helpers/date.js +158 -0
  34. package/dist/helpers/date.js.map +1 -0
  35. package/dist/helpers/debug.d.ts +33 -0
  36. package/dist/helpers/debug.js +177 -0
  37. package/dist/helpers/debug.js.map +1 -0
  38. package/dist/helpers/emails.d.ts +2 -0
  39. package/dist/helpers/emails.js +10 -0
  40. package/dist/helpers/emails.js.map +1 -0
  41. package/dist/helpers/eval.d.ts +1 -0
  42. package/dist/helpers/eval.js +10 -0
  43. package/dist/helpers/eval.js.map +1 -0
  44. package/dist/helpers/file.d.ts +11 -0
  45. package/dist/helpers/file.js +55 -0
  46. package/dist/helpers/file.js.map +1 -0
  47. package/dist/helpers/flatted.d.ts +20 -0
  48. package/dist/helpers/flatted.js +135 -0
  49. package/dist/helpers/flatted.js.map +1 -0
  50. package/dist/helpers/functions.d.ts +4 -0
  51. package/dist/helpers/functions.js +17 -0
  52. package/dist/helpers/functions.js.map +1 -0
  53. package/dist/helpers/graph/calendar.types.d.ts +3 -0
  54. package/dist/helpers/graph/calendar.types.js +15 -0
  55. package/dist/helpers/graph/calendar.types.js.map +1 -0
  56. package/dist/helpers/http.d.ts +25 -0
  57. package/dist/helpers/http.js +70 -0
  58. package/dist/helpers/http.js.map +1 -0
  59. package/dist/helpers/images.d.ts +16 -0
  60. package/dist/helpers/images.js +21 -0
  61. package/dist/helpers/images.js.map +1 -0
  62. package/dist/helpers/index.d.ts +29 -0
  63. package/dist/helpers/index.js +46 -0
  64. package/dist/helpers/index.js.map +1 -0
  65. package/dist/helpers/json.d.ts +3 -0
  66. package/dist/helpers/json.js +44 -0
  67. package/dist/helpers/json.js.map +1 -0
  68. package/dist/helpers/md5.d.ts +5 -0
  69. package/dist/helpers/md5.js +172 -0
  70. package/dist/helpers/md5.js.map +1 -0
  71. package/dist/helpers/objects.d.ts +49 -0
  72. package/dist/helpers/objects.js +271 -0
  73. package/dist/helpers/objects.js.map +1 -0
  74. package/dist/helpers/promises.d.ts +14 -0
  75. package/dist/helpers/promises.js +112 -0
  76. package/dist/helpers/promises.js.map +1 -0
  77. package/dist/helpers/random.d.ts +2 -0
  78. package/dist/helpers/random.js +32 -0
  79. package/dist/helpers/random.js.map +1 -0
  80. package/dist/helpers/scheduler/scheduler.d.ts +39 -0
  81. package/dist/helpers/scheduler/scheduler.js +109 -0
  82. package/dist/helpers/scheduler/scheduler.js.map +1 -0
  83. package/dist/helpers/sharepoint.d.ts +112 -0
  84. package/dist/helpers/sharepoint.js +629 -0
  85. package/dist/helpers/sharepoint.js.map +1 -0
  86. package/dist/helpers/strings.d.ts +56 -0
  87. package/dist/helpers/strings.js +282 -0
  88. package/dist/helpers/strings.js.map +1 -0
  89. package/dist/helpers/typecheckers.d.ts +56 -0
  90. package/dist/helpers/typecheckers.js +274 -0
  91. package/dist/helpers/typecheckers.js.map +1 -0
  92. package/dist/helpers/url.d.ts +46 -0
  93. package/dist/helpers/url.js +199 -0
  94. package/dist/helpers/url.js.map +1 -0
  95. package/dist/helpers/urlhelper.d.ts +16 -0
  96. package/dist/helpers/urlhelper.js +96 -0
  97. package/dist/helpers/urlhelper.js.map +1 -0
  98. package/dist/index.d.ts +15 -0
  99. package/dist/index.js +37 -0
  100. package/dist/index.js.map +1 -0
  101. package/dist/types/common.types.d.ts +19 -0
  102. package/dist/types/common.types.js +4 -0
  103. package/dist/types/common.types.js.map +1 -0
  104. package/dist/types/flatted.types.d.ts +49 -0
  105. package/dist/types/flatted.types.js +3 -0
  106. package/dist/types/flatted.types.js.map +1 -0
  107. package/dist/types/globals.types.d.ts +6 -0
  108. package/dist/types/globals.types.js +3 -0
  109. package/dist/types/globals.types.js.map +1 -0
  110. package/dist/types/graph/calendar.types.d.ts +79 -0
  111. package/dist/types/graph/calendar.types.js +3 -0
  112. package/dist/types/graph/calendar.types.js.map +1 -0
  113. package/dist/types/graph/index.d.ts +1 -0
  114. package/dist/types/graph/index.js +18 -0
  115. package/dist/types/graph/index.js.map +1 -0
  116. package/dist/types/index.d.ts +11 -0
  117. package/dist/types/index.js +28 -0
  118. package/dist/types/index.js.map +1 -0
  119. package/dist/types/knownscript.types.d.ts +22 -0
  120. package/dist/types/knownscript.types.js +3 -0
  121. package/dist/types/knownscript.types.js.map +1 -0
  122. package/dist/types/libs/datajs.types.d.ts +29 -0
  123. package/dist/types/libs/datajs.types.js +3 -0
  124. package/dist/types/libs/datajs.types.js.map +1 -0
  125. package/dist/types/libs/ics.types.d.ts +29 -0
  126. package/dist/types/libs/ics.types.js +3 -0
  127. package/dist/types/libs/ics.types.js.map +1 -0
  128. package/dist/types/libs/index.d.ts +3 -0
  129. package/dist/types/libs/index.js +20 -0
  130. package/dist/types/libs/index.js.map +1 -0
  131. package/dist/types/libs/msal.types.d.ts +33 -0
  132. package/dist/types/libs/msal.types.js +63 -0
  133. package/dist/types/libs/msal.types.js.map +1 -0
  134. package/dist/types/locales.d.ts +122 -0
  135. package/dist/types/locales.js +1 -0
  136. package/dist/types/locales.js.map +1 -0
  137. package/dist/types/localstoragecache.types.d.ts +8 -0
  138. package/dist/types/localstoragecache.types.js +3 -0
  139. package/dist/types/localstoragecache.types.js.map +1 -0
  140. package/dist/types/moment.d.ts +6 -0
  141. package/dist/types/moment.js +1 -0
  142. package/dist/types/moment.js.map +1 -0
  143. package/dist/types/regex.types.d.ts +14 -0
  144. package/dist/types/regex.types.js +3 -0
  145. package/dist/types/regex.types.js.map +1 -0
  146. package/dist/types/rest.types.d.ts +81 -0
  147. package/dist/types/rest.types.js +24 -0
  148. package/dist/types/rest.types.js.map +1 -0
  149. package/dist/types/sharepoint.types.d.ts +1432 -0
  150. package/dist/types/sharepoint.types.js +629 -0
  151. package/dist/types/sharepoint.types.js.map +1 -0
  152. package/dist/types/sharepoint.utils.types.d.ts +246 -0
  153. package/dist/types/sharepoint.utils.types.js +26 -0
  154. package/dist/types/sharepoint.utils.types.js.map +1 -0
  155. package/dist/utils/_dependencies.d.ts +3 -0
  156. package/dist/utils/_dependencies.js +24 -0
  157. package/dist/utils/_dependencies.js.map +1 -0
  158. package/dist/utils/base64.d.ts +2 -0
  159. package/dist/utils/base64.js +41 -0
  160. package/dist/utils/base64.js.map +1 -0
  161. package/dist/utils/consolelogger.d.ts +73 -0
  162. package/dist/utils/consolelogger.js +281 -0
  163. package/dist/utils/consolelogger.js.map +1 -0
  164. package/dist/utils/date.d.ts +10 -0
  165. package/dist/utils/date.js +30 -0
  166. package/dist/utils/date.js.map +1 -0
  167. package/dist/utils/emails.d.ts +2 -0
  168. package/dist/utils/emails.js +24 -0
  169. package/dist/utils/emails.js.map +1 -0
  170. package/dist/utils/index.d.ts +13 -0
  171. package/dist/utils/index.js +31 -0
  172. package/dist/utils/index.js.map +1 -0
  173. package/dist/utils/knownscript.d.ts +99 -0
  174. package/dist/utils/knownscript.js +261 -0
  175. package/dist/utils/knownscript.js.map +1 -0
  176. package/dist/utils/localstoragecache.d.ts +19 -0
  177. package/dist/utils/localstoragecache.js +372 -0
  178. package/dist/utils/localstoragecache.js.map +1 -0
  179. package/dist/utils/rest.d.ts +17 -0
  180. package/dist/utils/rest.js +402 -0
  181. package/dist/utils/rest.js.map +1 -0
  182. package/dist/utils/script.d.ts +33 -0
  183. package/dist/utils/script.js +169 -0
  184. package/dist/utils/script.js.map +1 -0
  185. package/dist/utils/sharepoint.rest/common.d.ts +32 -0
  186. package/dist/utils/sharepoint.rest/common.js +146 -0
  187. package/dist/utils/sharepoint.rest/common.js.map +1 -0
  188. package/dist/utils/sharepoint.rest/date.d.ts +2 -0
  189. package/dist/utils/sharepoint.rest/date.js +57 -0
  190. package/dist/utils/sharepoint.rest/date.js.map +1 -0
  191. package/dist/utils/sharepoint.rest/file.folder.d.ts +58 -0
  192. package/dist/utils/sharepoint.rest/file.folder.js +305 -0
  193. package/dist/utils/sharepoint.rest/file.folder.js.map +1 -0
  194. package/dist/utils/sharepoint.rest/index.d.ts +11 -0
  195. package/dist/utils/sharepoint.rest/index.js +28 -0
  196. package/dist/utils/sharepoint.rest/index.js.map +1 -0
  197. package/dist/utils/sharepoint.rest/item.d.ts +81 -0
  198. package/dist/utils/sharepoint.rest/item.js +444 -0
  199. package/dist/utils/sharepoint.rest/item.js.map +1 -0
  200. package/dist/utils/sharepoint.rest/list.d.ts +228 -0
  201. package/dist/utils/sharepoint.rest/list.js +868 -0
  202. package/dist/utils/sharepoint.rest/list.js.map +1 -0
  203. package/dist/utils/sharepoint.rest/listutils/GetListItemsByCaml.d.ts +19 -0
  204. package/dist/utils/sharepoint.rest/listutils/GetListItemsByCaml.js +629 -0
  205. package/dist/utils/sharepoint.rest/listutils/GetListItemsByCaml.js.map +1 -0
  206. package/dist/utils/sharepoint.rest/listutils/GetListItemsById.d.ts +14 -0
  207. package/dist/utils/sharepoint.rest/listutils/GetListItemsById.js +222 -0
  208. package/dist/utils/sharepoint.rest/listutils/GetListItemsById.js.map +1 -0
  209. package/dist/utils/sharepoint.rest/listutils/common.d.ts +3 -0
  210. package/dist/utils/sharepoint.rest/listutils/common.js +198 -0
  211. package/dist/utils/sharepoint.rest/listutils/common.js.map +1 -0
  212. package/dist/utils/sharepoint.rest/user-search.d.ts +76 -0
  213. package/dist/utils/sharepoint.rest/user-search.js +239 -0
  214. package/dist/utils/sharepoint.rest/user-search.js.map +1 -0
  215. package/dist/utils/sharepoint.rest/user.d.ts +71 -0
  216. package/dist/utils/sharepoint.rest/user.js +404 -0
  217. package/dist/utils/sharepoint.rest/user.js.map +1 -0
  218. package/dist/utils/sharepoint.rest/web.d.ts +107 -0
  219. package/dist/utils/sharepoint.rest/web.js +929 -0
  220. package/dist/utils/sharepoint.rest/web.js.map +1 -0
  221. package/dist/utils/sod.d.ts +29 -0
  222. package/dist/utils/sod.js +177 -0
  223. package/dist/utils/sod.js.map +1 -0
  224. package/package.json +60 -0
  225. package/readme.md +13 -0
  226. package/src/_dependencies.ts +2 -0
  227. package/src/helpers/Guid.ts +182 -0
  228. package/src/helpers/_dependencies.ts +3 -0
  229. package/src/helpers/base64.ts +174 -0
  230. package/src/helpers/browser.test.js +9 -0
  231. package/src/helpers/browser.ts +1299 -0
  232. package/src/helpers/browserinfo.ts +293 -0
  233. package/src/helpers/collections.base.test.js +26 -0
  234. package/src/helpers/collections.base.ts +439 -0
  235. package/src/helpers/collections.ts +108 -0
  236. package/src/helpers/color.ts +55 -0
  237. package/src/helpers/cookies.ts +55 -0
  238. package/src/helpers/date.test.js +97 -0
  239. package/src/helpers/date.ts +163 -0
  240. package/src/helpers/debug.ts +187 -0
  241. package/src/helpers/emails.ts +7 -0
  242. package/src/helpers/eval.ts +5 -0
  243. package/src/helpers/file.test.js +51 -0
  244. package/src/helpers/file.ts +59 -0
  245. package/src/helpers/flatted.ts +150 -0
  246. package/src/helpers/functions.ts +17 -0
  247. package/src/helpers/graph/calendar.types.ts +11 -0
  248. package/src/helpers/http.ts +70 -0
  249. package/src/helpers/images.ts +23 -0
  250. package/src/helpers/index.ts +29 -0
  251. package/src/helpers/json.ts +39 -0
  252. package/src/helpers/md5.ts +190 -0
  253. package/src/helpers/objects.test.js +27 -0
  254. package/src/helpers/objects.ts +256 -0
  255. package/src/helpers/promises.test.js +18 -0
  256. package/src/helpers/promises.ts +102 -0
  257. package/src/helpers/random.ts +27 -0
  258. package/src/helpers/scheduler/scheduler.test.js +104 -0
  259. package/src/helpers/scheduler/scheduler.ts +132 -0
  260. package/src/helpers/sharepoint.ts +681 -0
  261. package/src/helpers/strings.test.js +43 -0
  262. package/src/helpers/strings.ts +288 -0
  263. package/src/helpers/typecheckers.test.js +35 -0
  264. package/src/helpers/typecheckers.ts +263 -0
  265. package/src/helpers/url.test.js +18 -0
  266. package/src/helpers/url.ts +202 -0
  267. package/src/helpers/urlhelper.ts +104 -0
  268. package/src/index.ts +24 -0
  269. package/src/types/common.types.ts +16 -0
  270. package/src/types/flatted.types.ts +60 -0
  271. package/src/types/globals.types.ts +7 -0
  272. package/src/types/graph/calendar.types.ts +81 -0
  273. package/src/types/graph/index.ts +1 -0
  274. package/src/types/index.ts +12 -0
  275. package/src/types/knownscript.types.ts +19 -0
  276. package/src/types/libs/datajs.types.ts +29 -0
  277. package/src/types/libs/ics.types.ts +31 -0
  278. package/src/types/libs/index.ts +4 -0
  279. package/src/types/libs/msal.types.ts +79 -0
  280. package/src/types/locales.ts +125 -0
  281. package/src/types/localstoragecache.types.ts +9 -0
  282. package/src/types/moment.ts +7 -0
  283. package/src/types/regex.types.ts +17 -0
  284. package/src/types/rest.types.ts +94 -0
  285. package/src/types/sharepoint.types.ts +1413 -0
  286. package/src/types/sharepoint.utils.types.ts +246 -0
  287. package/src/utils/_dependencies.ts +4 -0
  288. package/src/utils/base64.ts +27 -0
  289. package/src/utils/consolelogger.ts +315 -0
  290. package/src/utils/date.ts +36 -0
  291. package/src/utils/emails.ts +25 -0
  292. package/src/utils/index.ts +13 -0
  293. package/src/utils/knownscript.ts +280 -0
  294. package/src/utils/localstoragecache.ts +419 -0
  295. package/src/utils/rest.ts +465 -0
  296. package/src/utils/script.ts +168 -0
  297. package/src/utils/sharepoint.rest/common.ts +149 -0
  298. package/src/utils/sharepoint.rest/date.ts +61 -0
  299. package/src/utils/sharepoint.rest/file.folder.ts +368 -0
  300. package/src/utils/sharepoint.rest/index.ts +11 -0
  301. package/src/utils/sharepoint.rest/item.ts +456 -0
  302. package/src/utils/sharepoint.rest/list.ts +1144 -0
  303. package/src/utils/sharepoint.rest/listutils/GetListItemsByCaml.ts +750 -0
  304. package/src/utils/sharepoint.rest/listutils/GetListItemsById.ts +265 -0
  305. package/src/utils/sharepoint.rest/listutils/common.ts +202 -0
  306. package/src/utils/sharepoint.rest/user-search.ts +254 -0
  307. package/src/utils/sharepoint.rest/user.ts +447 -0
  308. package/src/utils/sharepoint.rest/web.ts +1031 -0
  309. package/src/utils/sod.ts +193 -0
  310. package/tsconfig.json +21 -0
@@ -0,0 +1,1432 @@
1
+ /** types for known OOB SharePoint objects - do not import */
2
+ export interface IFieldJsonSchema {
3
+ Attributes: {
4
+ ID?: string;
5
+ Name?: string;
6
+ StaticName?: string;
7
+ [key: string]: string;
8
+ };
9
+ Customizations: {
10
+ [PropertyName: string]: string;
11
+ };
12
+ }
13
+ export interface IFieldJsonSchemaLookup extends IFieldJsonSchema {
14
+ Attributes: {
15
+ Mult?: "TRUE" | "FALSE";
16
+ WebId?: string;
17
+ List?: string;
18
+ ShowField?: string;
19
+ };
20
+ }
21
+ export declare enum PageType {
22
+ Invalid = -1,
23
+ DefaultView = 0,
24
+ NormalView = 1,
25
+ DialogView = 2,
26
+ View = 3,
27
+ DisplayForm = 4,
28
+ DisplayFormDialog = 5,
29
+ EditForm = 6,
30
+ EditFormDialog = 7,
31
+ NewForm = 8,
32
+ NewFormDialog = 9,
33
+ SolutionForm = 10,
34
+ PAGE_MAXITEMS = 11
35
+ }
36
+ export interface IContentTypeInfo {
37
+ Description: string;
38
+ DisplayFormTemplateName: string;
39
+ DisplayFormUrl: string;
40
+ DocumentTemplate: string;
41
+ DocumentTemplateUrl: string;
42
+ EditFormTemplateName: string;
43
+ EditFormUrl: string;
44
+ Group: string;
45
+ Hidden: boolean;
46
+ Id: {
47
+ StringValue: string;
48
+ };
49
+ JSLink: string;
50
+ MobileDisplayFormUrl: string;
51
+ MobileEditFormUrl: string;
52
+ MobileNewFormUrl: string;
53
+ Name: string;
54
+ NewFormTemplateName: string;
55
+ NewFormUrl: string;
56
+ ReadOnly: boolean;
57
+ SchemaXml: string;
58
+ Scope: string;
59
+ Sealed: boolean;
60
+ StringId: string;
61
+ }
62
+ export declare enum ChoiceFieldFormatType {
63
+ Dropdown = 0,
64
+ RadioButtons = 1
65
+ }
66
+ export interface IFieldInfo {
67
+ DefaultFormula: string | null;
68
+ DefaultValue: string | null;
69
+ Description: string;
70
+ EnforceUniqueValues: boolean;
71
+ FieldTypeKind: FieldTypes;
72
+ Group: string;
73
+ Hidden: boolean;
74
+ Id: string;
75
+ Indexed: boolean;
76
+ InternalName: string;
77
+ JSLink: string;
78
+ ReadOnlyField: boolean;
79
+ Required: boolean;
80
+ SchemaXml: string;
81
+ StaticName: string;
82
+ Title: string;
83
+ TypeAsString: string | FieldTypeAsString;
84
+ ClientSideComponentProperties?: string;
85
+ ClientSideComponentId?: string;
86
+ }
87
+ export declare enum DateTimeFieldFormatType {
88
+ DateOnly = 0,
89
+ DateTime = 1
90
+ }
91
+ export declare enum DateTimeFieldFriendlyFormatType {
92
+ Unspecified = 0,
93
+ Disabled = 1,
94
+ Relative = 2
95
+ }
96
+ export declare enum UrlFieldFormatType {
97
+ Hyperlink = 0,
98
+ Image = 1
99
+ }
100
+ export declare enum FieldTypes {
101
+ Invalid = 0,
102
+ Integer = 1,
103
+ Text = 2,
104
+ Note = 3,
105
+ DateTime = 4,
106
+ Counter = 5,
107
+ Choice = 6,
108
+ Lookup = 7,
109
+ Boolean = 8,
110
+ Number = 9,
111
+ Currency = 10,
112
+ URL = 11,
113
+ Computed = 12,
114
+ Threading = 13,
115
+ Guid = 14,
116
+ MultiChoice = 15,
117
+ GridChoice = 16,
118
+ Calculated = 17,
119
+ File = 18,
120
+ Attachments = 19,
121
+ User = 20,
122
+ Recurrence = 21,
123
+ CrossProjectLink = 22,
124
+ ModStat = 23,
125
+ Error = 24,
126
+ ContentTypeId = 25,
127
+ PageSeparator = 26,
128
+ ThreadIndex = 27,
129
+ WorkflowStatus = 28,
130
+ AllDayEvent = 29,
131
+ WorkflowEventType = 30,
132
+ Geolocation = 31
133
+ }
134
+ export declare enum ListTemplateTypes {
135
+ AccessRequest = 160,
136
+ AdminTasks = 1200,
137
+ Agenda = 201,
138
+ Announcements = 104,
139
+ AppDataCatalog = 125,
140
+ CallTrack = 404,
141
+ Categories = 303,
142
+ Circulation = 405,
143
+ Comments = 302,
144
+ Contacts = 105,
145
+ CustomGrid = 120,
146
+ DataConnectionLibrary = 130,
147
+ DataSources = 110,
148
+ Decision = 204,
149
+ DesignCatalog = 124,
150
+ DeveloperSiteDraftApps = 1230,
151
+ DiscussionBoard = 108,
152
+ DocumentLibrary = 101,
153
+ Events = 106,
154
+ ExternalList = 600,
155
+ Facility = 402,
156
+ GanttTasks = 150,
157
+ GenericList = 100,
158
+ HealthReports = 1221,
159
+ HealthRules = 1220,
160
+ HelpLibrary = 151,
161
+ Holidays = 421,
162
+ HomePageLibrary = 212,
163
+ IMEDic = 499,
164
+ InvalidType = -1,
165
+ IssueTracking = 1100,
166
+ Links = 103,
167
+ ListTemplateCatalog = 114,
168
+ MaintenanceLogs = 175,
169
+ MasterPageCatalog = 116,
170
+ MeetingObjective = 207,
171
+ Meetings = 200,
172
+ MeetingUser = 202,
173
+ MySiteDocumentLibrary = 700,
174
+ NoCodePublic = 122,
175
+ NoCodeWorkflows = 117,
176
+ NoListTemplate = 0,
177
+ PictureLibrary = 109,
178
+ Posts = 301,
179
+ SolutionCatalog = 121,
180
+ Survey = 102,
181
+ Tasks = 107,
182
+ TasksWithTimelineAndHierarchy = 171,
183
+ TextBox = 210,
184
+ ThemeCatalog = 123,
185
+ ThingsToBring = 211,
186
+ Timecard = 420,
187
+ UserInformation = 112,
188
+ WebPageLibrary = 119,
189
+ WebPartCatalog = 113,
190
+ WebTemplateCatalog = 111,
191
+ Whereabouts = 403,
192
+ WorkflowHistory = 140,
193
+ WorkflowProcess = 118,
194
+ XMLForm = 115
195
+ }
196
+ export declare enum BaseTypes {
197
+ DiscussionBoard = 3,
198
+ DocumentLibrary = 1,
199
+ GenericList = 0,
200
+ Issue = 5,
201
+ Survey = 4,
202
+ UnspecifiedBaseType = -1,
203
+ Unused = 2
204
+ }
205
+ export interface ISiteUserProps {
206
+ /**
207
+ * Contains Site user email
208
+ *
209
+ */
210
+ Email: string;
211
+ /**
212
+ * Contains Site user Id
213
+ *
214
+ */
215
+ Id: number;
216
+ /**
217
+ * Site user IsHiddenInUI
218
+ *
219
+ */
220
+ IsHiddenInUI: boolean;
221
+ /**
222
+ * Site user IsShareByEmailGuestUser
223
+ *
224
+ */
225
+ IsShareByEmailGuestUser: boolean;
226
+ /**
227
+ * Describes if Site user Is Site Admin
228
+ *
229
+ */
230
+ IsSiteAdmin: boolean;
231
+ /**
232
+ * Site user LoginName
233
+ *
234
+ */
235
+ LoginName: string;
236
+ /**
237
+ * Site user Principal type
238
+ *
239
+ */
240
+ PrincipalType: number | PrincipalType;
241
+ /**
242
+ * Site user Title
243
+ *
244
+ */
245
+ Title: string;
246
+ }
247
+ export interface ISiteUserInfo extends ISiteUserProps {
248
+ Expiration: string;
249
+ IsEmailAuthenticationGuestUser: boolean;
250
+ UserId: {
251
+ NameId: string;
252
+ NameIdIssuer: string;
253
+ };
254
+ UserPrincipalName: string | null;
255
+ }
256
+ export interface IAttachmentInfo {
257
+ FileName: string;
258
+ FileNameAsPath: {
259
+ DecodedUrl: string;
260
+ };
261
+ ServerRelativePath: {
262
+ DecodedUrl: string;
263
+ };
264
+ ServerRelativeUrl: string;
265
+ }
266
+ export interface IWebInfo {
267
+ AlternateCssUrl: string;
268
+ AppInstanceId: string;
269
+ ClassicWelcomePage: string | null;
270
+ Configuration: number;
271
+ Created: string;
272
+ CurrentChangeToken: {
273
+ StringValue: string;
274
+ };
275
+ CustomMasterUrl: string;
276
+ Description: string;
277
+ DesignPackageId: string;
278
+ DocumentLibraryCalloutOfficeWebAppPreviewersDisabled: boolean;
279
+ EnableMinimalDownload: boolean;
280
+ FooterEmphasis: number;
281
+ FooterEnabled: boolean;
282
+ FooterLayout: number;
283
+ HeaderEmphasis: number;
284
+ HeaderLayout: number;
285
+ HorizontalQuickLaunch: boolean;
286
+ Id: string;
287
+ IsHomepageModernized: boolean;
288
+ IsMultilingual: boolean;
289
+ IsRevertHomepageLinkHidden: boolean;
290
+ Language: number;
291
+ LastItemModifiedDate: string;
292
+ LastItemUserModifiedDate: string;
293
+ MasterUrl: string;
294
+ MegaMenuEnabled: boolean;
295
+ NavAudienceTargetingEnabled: boolean;
296
+ NoCrawl: boolean;
297
+ ObjectCacheEnabled: boolean;
298
+ OverwriteTranslationsOnChange: boolean;
299
+ QuickLaunchEnabled: boolean;
300
+ RecycleBinEnabled: boolean;
301
+ ResourcePath: {
302
+ DecodedUrl: string;
303
+ };
304
+ SearchScope: number;
305
+ ServerRelativeUrl: string;
306
+ SiteLogoUrl: string | null;
307
+ SyndicationEnabled: boolean;
308
+ TenantAdminMembersCanShare: number;
309
+ Title: string;
310
+ TreeViewEnabled: boolean;
311
+ UIVersion: number;
312
+ UIVersionConfigurationEnabled: boolean;
313
+ Url: string;
314
+ /**STS, APP, WIKI, MPS, APPCATALOG, DEV, PWA, PWS, SPS, GROUP or other... */
315
+ WebTemplate: "STS" | "APP" | "WIKI" | "MPS" | "APPCATALOG" | "DEV" | "PWA" | "PWS" | "SPS" | "GROUP" | string;
316
+ WelcomePage: string;
317
+ }
318
+ export interface ISiteGroupInfo {
319
+ AllowMembersEditMembership: boolean;
320
+ AllowRequestToJoinLeave: boolean;
321
+ AutoAcceptRequestToJoinLeave: boolean;
322
+ Description: string;
323
+ Id: number;
324
+ IsHiddenInUI: boolean;
325
+ LoginName: string;
326
+ OnlyAllowMembersViewMembership: boolean;
327
+ OwnerTitle: string;
328
+ PrincipalType: number;
329
+ RequestToJoinLeaveEmailSetting: string | null;
330
+ Title: string;
331
+ }
332
+ export interface IContentTypeInfo {
333
+ Description: string;
334
+ DisplayFormTemplateName: string;
335
+ DisplayFormUrl: string;
336
+ DocumentTemplate: string;
337
+ DocumentTemplateUrl: string;
338
+ EditFormTemplateName: string;
339
+ EditFormUrl: string;
340
+ Group: string;
341
+ Hidden: boolean;
342
+ Id: {
343
+ StringValue: string;
344
+ };
345
+ JSLink: string;
346
+ MobileDisplayFormUrl: string;
347
+ MobileEditFormUrl: string;
348
+ MobileNewFormUrl: string;
349
+ Name: string;
350
+ NewFormTemplateName: string;
351
+ NewFormUrl: string;
352
+ ReadOnly: boolean;
353
+ SchemaXml: string;
354
+ Scope: string;
355
+ Sealed: boolean;
356
+ StringId: string;
357
+ }
358
+ export declare enum ViewScope {
359
+ DefaultValue = 0,
360
+ Recursive = 1,
361
+ RecursiveAll = 2,
362
+ FilesOnly = 3
363
+ }
364
+ export interface IViewInfo {
365
+ EditorModified: boolean;
366
+ Formats: string | null;
367
+ Hidden: boolean;
368
+ HtmlSchemaXml: string;
369
+ Id: string;
370
+ ImageUrl: string;
371
+ IncludeRootFolder: boolean;
372
+ JSLink: string;
373
+ ListViewXml: string;
374
+ Method: string | null;
375
+ MobileDefaultView: boolean;
376
+ MobileView: boolean;
377
+ ModerationType: string | null;
378
+ NewDocumentTemplates: string;
379
+ OrderedView: boolean;
380
+ Paged: boolean;
381
+ PersonalView: boolean;
382
+ ReadOnlyView: boolean;
383
+ RequiresClientIntegration: boolean;
384
+ RowLimit: number;
385
+ Scope: ViewScope;
386
+ ServerRelativePath: {
387
+ DecodedUrl: string;
388
+ };
389
+ ServerRelativeUrl: string;
390
+ StyleId: string | null;
391
+ TabularView: boolean;
392
+ Threaded: boolean;
393
+ Title: string;
394
+ Toolbar: string;
395
+ ToolbarTemplateName: string | null;
396
+ ViewData: string | null;
397
+ ViewJoins: string | null;
398
+ ViewProjectedFields: {
399
+ SchemaXml: string;
400
+ } | null;
401
+ ViewQuery: string;
402
+ ViewType: string;
403
+ VisualizationInfo: any | null;
404
+ DefaultView?: boolean;
405
+ }
406
+ export interface ICamlQuery {
407
+ /**
408
+ * Gets or sets a value that indicates whether the query returns dates in Coordinated Universal Time (UTC) format.
409
+ */
410
+ DatesInUtc?: boolean;
411
+ /**
412
+ * Gets or sets a value that specifies the server relative URL of a list folder from which results will be returned.
413
+ */
414
+ FolderServerRelativeUrl?: string;
415
+ /**
416
+ * Gets or sets a value that specifies the information required to get the next page of data for the list view.
417
+ */
418
+ ListItemCollectionPosition?: IListItemCollectionPosition;
419
+ /**
420
+ * Gets or sets value that specifies the XML schema that defines the list view.
421
+ */
422
+ ViewXml?: string;
423
+ }
424
+ /**
425
+ * Specifies the information required to get the next page of data for a list view.
426
+ */
427
+ export interface IListItemCollectionPosition {
428
+ /**
429
+ * Gets or sets a value that specifies information, as name-value pairs, required to get the next page of data for a list view.
430
+ */
431
+ PagingInfo: string;
432
+ }
433
+ export interface IListInfo {
434
+ AllowContentTypes: boolean;
435
+ AllowDeletion: boolean;
436
+ BaseTemplate: ListTemplateTypes;
437
+ BaseType: BaseTypes;
438
+ BrowserFileHandling: any;
439
+ ContentTypes: any[];
440
+ ContentTypesEnabled: boolean;
441
+ CrawlNonDefaultViews: boolean;
442
+ CreatablesInfo: any;
443
+ Created: string;
444
+ CurrentChangeToken: any;
445
+ CustomActionElements: any[];
446
+ DataSource: any;
447
+ DefaultContentApprovalWorkflowId: string;
448
+ DefaultDisplayFormUrl: string;
449
+ DefaultEditFormUrl: string;
450
+ DefaultNewFormUrl: string;
451
+ DefaultView: any;
452
+ DefaultViewPath: any;
453
+ DefaultViewUrl: string;
454
+ Description: string;
455
+ DescriptionResource: any;
456
+ Direction: string;
457
+ DocumentTemplateUrl: string;
458
+ DraftVersionVisibility: any;
459
+ EffectiveBasePermissions: IBasePermissions;
460
+ EffectiveBasePermissionsForUI: IBasePermissions;
461
+ EnableAssignToEmail: boolean;
462
+ EnableAttachments: boolean;
463
+ EnableFolderCreation: boolean;
464
+ EnableMinorVersions: boolean;
465
+ EnableModeration: boolean;
466
+ EnableRequestSignOff: boolean;
467
+ EnableVersioning: boolean;
468
+ EntityTypeName: string;
469
+ EventReceivers: any[];
470
+ ExcludeFromOfflineClient: boolean;
471
+ ExemptFromBlockDownloadOfNonViewableFiles: boolean;
472
+ Fields: Partial<IFieldInfo>[];
473
+ FileSavePostProcessingEnabled: boolean;
474
+ ForceCheckout: boolean;
475
+ Forms: IFormInfo[];
476
+ HasExternalDataSource: boolean;
477
+ Hidden: boolean;
478
+ Id: string;
479
+ ImagePath: {
480
+ DecodedUrl: string;
481
+ };
482
+ ImageUrl: string;
483
+ InformationRightsManagementSettings: any[];
484
+ IrmEnabled: boolean;
485
+ IrmExpire: boolean;
486
+ IrmReject: boolean;
487
+ IsApplicationList: boolean;
488
+ IsCatalog: boolean;
489
+ IsPrivate: boolean;
490
+ IsSiteAssetsLibrary: boolean;
491
+ IsSystemList: boolean;
492
+ ItemCount: number;
493
+ LastItemDeletedDate: string;
494
+ LastItemModifiedDate: string;
495
+ LastItemUserModifiedDate: string;
496
+ ListExperienceOptions: number;
497
+ ListItemEntityTypeFullName: string;
498
+ MajorVersionLimit: number;
499
+ MajorWithMinorVersionsLimit: number;
500
+ MultipleDataList: boolean;
501
+ NoCrawl: boolean;
502
+ OnQuickLaunch: boolean;
503
+ ParentWebPath: {
504
+ DecodedUrl: string;
505
+ };
506
+ ParentWebUrl: string;
507
+ ParserDisabled: boolean;
508
+ ReadSecurity: number;
509
+ RootFolder: IFolderInfo;
510
+ SchemaXml: string;
511
+ ServerTemplateCanCreateFolders: boolean;
512
+ TemplateFeatureId: string;
513
+ Title: string;
514
+ UserCustomActions: IUserCustomActionInfo[];
515
+ ValidationFormula: string;
516
+ ValidationMessage: string;
517
+ Views: IViewInfo[];
518
+ WorkflowAssociations: any[];
519
+ WriteSecurity: number;
520
+ }
521
+ export interface IBasePermissions {
522
+ Low: number;
523
+ High: number;
524
+ }
525
+ export interface IFormInfo {
526
+ FormType: PageType;
527
+ Id: string;
528
+ ResourcePath: {
529
+ DecodedUrl: string;
530
+ };
531
+ DecodedUrl: string;
532
+ ServerRelativeUrl: string;
533
+ }
534
+ export interface IFolderBasicInfo {
535
+ Name: string;
536
+ ServerRelativeUrl: string;
537
+ }
538
+ export interface IFolderInfo extends IFolderBasicInfo {
539
+ readonly "odata.id": string;
540
+ Exists: boolean;
541
+ IsWOPIEnabled: boolean;
542
+ ItemCount: number;
543
+ ProgID: string | null;
544
+ TimeCreated: string;
545
+ TimeLastModified: string;
546
+ UniqueId: string;
547
+ WelcomePage: string;
548
+ }
549
+ export declare enum UserCustomActionRegistrationType {
550
+ None = 0,
551
+ List = 1,
552
+ ContentType = 2,
553
+ ProgId = 3,
554
+ FileType = 4
555
+ }
556
+ export declare enum UserCustomActionScope {
557
+ Unknown = 0,
558
+ Site = 2,
559
+ Web = 3,
560
+ List = 4
561
+ }
562
+ export interface IUserCustomActionInfo {
563
+ CommandUIExtension: string;
564
+ Description: string;
565
+ Group: string;
566
+ Id: string;
567
+ ImageUrl: string;
568
+ Location: string;
569
+ Name: string;
570
+ RegistrationId: string;
571
+ RegistrationType: UserCustomActionRegistrationType;
572
+ Rights: IBasePermissions;
573
+ Scope: UserCustomActionScope;
574
+ ScriptBlock: string;
575
+ ScriptSrc: string;
576
+ Sequence: number;
577
+ Title: string;
578
+ Url: string;
579
+ VersionOfUserCustomAction: string;
580
+ }
581
+ /**
582
+ * Specifies the type of a principal. Use $PrincipalType when isolatedModules is true
583
+ */
584
+ export declare const enum PrincipalType {
585
+ /**
586
+ * Enumeration whose value specifies no principal type.
587
+ */
588
+ None = 0,
589
+ /**
590
+ * Enumeration whose value specifies a user as the principal type.
591
+ */
592
+ User = 1,
593
+ /**
594
+ * Enumeration whose value specifies a distribution list as the principal type.
595
+ */
596
+ DistributionList = 2,
597
+ /**
598
+ * Enumeration whose value specifies a security group as the principal type.
599
+ */
600
+ SecurityGroup = 4,
601
+ /**
602
+ * Enumeration whose value specifies a group as the principal type.
603
+ */
604
+ SharePointGroup = 8,
605
+ /**
606
+ * Enumeration whose value specifies all principal types.
607
+ */
608
+ All = 15
609
+ }
610
+ /** PrincipalType enum values for projects that can't use enums (when isolatedModules is true) */
611
+ export declare const $PrincipalType: {
612
+ /**
613
+ * Enumeration whose value specifies no principal type.
614
+ */
615
+ None: PrincipalType;
616
+ /**
617
+ * Enumeration whose value specifies a user as the principal type.
618
+ */
619
+ User: PrincipalType;
620
+ /**
621
+ * Enumeration whose value specifies a distribution list as the principal type.
622
+ */
623
+ DistributionList: PrincipalType;
624
+ /**
625
+ * Enumeration whose value specifies a security group as the principal type.
626
+ */
627
+ SecurityGroup: PrincipalType;
628
+ /**
629
+ * Enumeration whose value specifies a group as the principal type.
630
+ */
631
+ SharePointGroup: PrincipalType;
632
+ /**
633
+ * Enumeration whose value specifies all principal types.
634
+ */
635
+ All: PrincipalType;
636
+ };
637
+ export declare enum SPBasePermissionKind {
638
+ /**
639
+ * Has no permissions on the Site. Not available through the user interface.
640
+ */
641
+ EmptyMask = 0,
642
+ /**
643
+ * View items in lists, documents in document libraries, and Web discussion comments.
644
+ */
645
+ ViewListItems = 1,
646
+ /**
647
+ * Add items to lists, documents to document libraries, and Web discussion comments.
648
+ */
649
+ AddListItems = 2,
650
+ /**
651
+ * Edit items in lists, edit documents in document libraries, edit Web discussion comments
652
+ * in documents, and customize Web Part Pages in document libraries.
653
+ */
654
+ EditListItems = 3,
655
+ /**
656
+ * Delete items from a list, documents from a document library, and Web discussion
657
+ * comments in documents.
658
+ */
659
+ DeleteListItems = 4,
660
+ /**
661
+ * Approve a minor version of a list item or document.
662
+ */
663
+ ApproveItems = 5,
664
+ /**
665
+ * View the source of documents with server-side file handlers.
666
+ */
667
+ OpenItems = 6,
668
+ /**
669
+ * View past versions of a list item or document.
670
+ */
671
+ ViewVersions = 7,
672
+ /**
673
+ * Delete past versions of a list item or document.
674
+ */
675
+ DeleteVersions = 8,
676
+ /**
677
+ * Discard or check in a document which is checked out to another user.
678
+ */
679
+ CancelCheckout = 9,
680
+ /**
681
+ * Create, change, and delete personal views of lists.
682
+ */
683
+ ManagePersonalViews = 10,
684
+ /**
685
+ * Create and delete lists, add or remove columns in a list, and add or remove public views of a list.
686
+ */
687
+ ManageLists = 12,
688
+ /**
689
+ * View forms, views, and application pages, and enumerate lists.
690
+ */
691
+ ViewFormPages = 13,
692
+ /**
693
+ * Make content of a list or document library retrieveable for anonymous users through SharePoint search.
694
+ * The list permissions in the site do not change.
695
+ */
696
+ AnonymousSearchAccessList = 14,
697
+ /**
698
+ * Allow users to open a Site, list, or folder to access items inside that container.
699
+ */
700
+ Open = 17,
701
+ /**
702
+ * View pages in a Site.
703
+ */
704
+ ViewPages = 18,
705
+ /**
706
+ * Add, change, or delete HTML pages or Web Part Pages, and edit the Site using
707
+ * a Windows SharePoint Services compatible editor.
708
+ */
709
+ AddAndCustomizePages = 19,
710
+ /**
711
+ * Apply a theme or borders to the entire Site.
712
+ */
713
+ ApplyThemeAndBorder = 20,
714
+ /**
715
+ * Apply a style sheet (.css file) to the Site.
716
+ */
717
+ ApplyStyleSheets = 21,
718
+ /**
719
+ * View reports on Site usage.
720
+ */
721
+ ViewUsageData = 22,
722
+ /**
723
+ * Create a Site using Self-Service Site Creation.
724
+ */
725
+ CreateSSCSite = 23,
726
+ /**
727
+ * Create subsites such as team sites, Meeting Workspace sites, and Document Workspace sites.
728
+ */
729
+ ManageSubwebs = 24,
730
+ /**
731
+ * Create a group of users that can be used anywhere within the site collection.
732
+ */
733
+ CreateGroups = 25,
734
+ /**
735
+ * Create and change permission levels on the Site and assign permissions to users
736
+ * and groups.
737
+ */
738
+ ManagePermissions = 26,
739
+ /**
740
+ * Enumerate files and folders in a Site using Microsoft Office SharePoint Designer
741
+ * and WebDAV interfaces.
742
+ */
743
+ BrowseDirectories = 27,
744
+ /**
745
+ * View information about users of the Site.
746
+ */
747
+ BrowseUserInfo = 28,
748
+ /**
749
+ * Add or remove personal Web Parts on a Web Part Page.
750
+ */
751
+ AddDelPrivateWebParts = 29,
752
+ /**
753
+ * Update Web Parts to display personalized information.
754
+ */
755
+ UpdatePersonalWebParts = 30,
756
+ /**
757
+ * Grant the ability to perform all administration tasks for the Site as well as
758
+ * manage content, activate, deactivate, or edit properties of Site scoped Features
759
+ * through the object model or through the user interface (UI). When granted on the
760
+ * root Site of a Site Collection, activate, deactivate, or edit properties of
761
+ * site collection scoped Features through the object model. To browse to the Site
762
+ * Collection Features page and activate or deactivate Site Collection scoped Features
763
+ * through the UI, you must be a Site Collection administrator.
764
+ */
765
+ ManageWeb = 31,
766
+ /**
767
+ * Content of lists and document libraries in the Web site will be retrieveable for anonymous users through
768
+ * SharePoint search if the list or document library has AnonymousSearchAccessList set.
769
+ */
770
+ AnonymousSearchAccessWebLists = 32,
771
+ /**
772
+ * Use features that launch client applications. Otherwise, users must work on documents
773
+ * locally and upload changes.
774
+ */
775
+ UseClientIntegration = 37,
776
+ /**
777
+ * Use SOAP, WebDAV, or Microsoft Office SharePoint Designer interfaces to access the Site.
778
+ */
779
+ UseRemoteAPIs = 38,
780
+ /**
781
+ * Manage alerts for all users of the Site.
782
+ */
783
+ ManageAlerts = 39,
784
+ /**
785
+ * Create e-mail alerts.
786
+ */
787
+ CreateAlerts = 40,
788
+ /**
789
+ * Allows a user to change his or her user information, such as adding a picture.
790
+ */
791
+ EditMyUserInfo = 41,
792
+ /**
793
+ * Enumerate permissions on Site, list, folder, document, or list item.
794
+ */
795
+ EnumeratePermissions = 63,
796
+ /**
797
+ * Has all permissions on the Site. Not available through the user interface.
798
+ */
799
+ FullMask = 65
800
+ }
801
+ export declare const SPBasePermissionMask: {
802
+ EmptyMask: {
803
+ High: number;
804
+ Low: number;
805
+ };
806
+ ViewListItems: {
807
+ High: number;
808
+ Low: number;
809
+ };
810
+ AddListItems: {
811
+ High: number;
812
+ Low: number;
813
+ };
814
+ EditListItems: {
815
+ High: number;
816
+ Low: number;
817
+ };
818
+ DeleteListItems: {
819
+ High: number;
820
+ Low: number;
821
+ };
822
+ ApproveItems: {
823
+ High: number;
824
+ Low: number;
825
+ };
826
+ OpenItems: {
827
+ High: number;
828
+ Low: number;
829
+ };
830
+ ViewVersions: {
831
+ High: number;
832
+ Low: number;
833
+ };
834
+ DeleteVersions: {
835
+ High: number;
836
+ Low: number;
837
+ };
838
+ CancelCheckout: {
839
+ High: number;
840
+ Low: number;
841
+ };
842
+ ManagePersonalViews: {
843
+ High: number;
844
+ Low: number;
845
+ };
846
+ ManageLists: {
847
+ High: number;
848
+ Low: number;
849
+ };
850
+ ViewFormPages: {
851
+ High: number;
852
+ Low: number;
853
+ };
854
+ Open: {
855
+ High: number;
856
+ Low: number;
857
+ };
858
+ ViewPages: {
859
+ High: number;
860
+ Low: number;
861
+ };
862
+ LayoutsPage: {
863
+ High: number;
864
+ Low: number;
865
+ };
866
+ AddAndCustomizePages: {
867
+ High: number;
868
+ Low: number;
869
+ };
870
+ ApplyThemeAndBorder: {
871
+ High: number;
872
+ Low: number;
873
+ };
874
+ ApplyStyleSheets: {
875
+ High: number;
876
+ Low: number;
877
+ };
878
+ ViewUsageData: {
879
+ High: number;
880
+ Low: number;
881
+ };
882
+ CreateSSCSite: {
883
+ High: number;
884
+ Low: number;
885
+ };
886
+ ManageSubwebs: {
887
+ High: number;
888
+ Low: number;
889
+ };
890
+ CreateGroups: {
891
+ High: number;
892
+ Low: number;
893
+ };
894
+ ManagePermissions: {
895
+ High: number;
896
+ Low: number;
897
+ };
898
+ BrowseDirectories: {
899
+ High: number;
900
+ Low: number;
901
+ };
902
+ BrowserUserInfo: {
903
+ High: number;
904
+ Low: number;
905
+ };
906
+ AddDelPrivateWebParts: {
907
+ High: number;
908
+ Low: number;
909
+ };
910
+ UpdatePersonalWebParts: {
911
+ High: number;
912
+ Low: number;
913
+ };
914
+ ManageWeb: {
915
+ High: number;
916
+ Low: number;
917
+ };
918
+ UseClientIntegration: {
919
+ High: number;
920
+ Low: number;
921
+ };
922
+ UseRemoteAPIs: {
923
+ High: number;
924
+ Low: number;
925
+ };
926
+ ManageAlerts: {
927
+ High: number;
928
+ Low: number;
929
+ };
930
+ CreateAlerts: {
931
+ High: number;
932
+ Low: number;
933
+ };
934
+ EditMyUserInfo: {
935
+ High: number;
936
+ Low: number;
937
+ };
938
+ EnumeratePermissions: {
939
+ High: number;
940
+ Low: number;
941
+ };
942
+ FullMask: {
943
+ High: number;
944
+ Low: number;
945
+ };
946
+ };
947
+ export declare enum PersonSelectionMode {
948
+ Users = 0,
949
+ UsersAndGroups = 1
950
+ }
951
+ export declare enum ItemFormDialogResult {
952
+ Closed = 0,
953
+ Created = 1,
954
+ Saved = 2
955
+ }
956
+ export declare enum FileSystemObjectTypes {
957
+ ListItemOrFile = 0,
958
+ Folder = 1
959
+ }
960
+ export declare enum SPFileSystemObjectType {
961
+ invalid = 0,
962
+ file = 1,
963
+ folder = 2,
964
+ web = 3
965
+ }
966
+ export interface ISpfxBaseComponentContext {
967
+ pageContext: {
968
+ user: {
969
+ email: string;
970
+ };
971
+ list: {
972
+ title: string;
973
+ id: {
974
+ toString: () => string;
975
+ };
976
+ };
977
+ web: {
978
+ serverRelativeUrl: string;
979
+ absoluteUrl: string;
980
+ language: number;
981
+ id: {
982
+ toString: () => string;
983
+ };
984
+ };
985
+ cultureInfo: {
986
+ currentCultureName: string;
987
+ currentUICultureName: string;
988
+ isRightToLeft: boolean;
989
+ };
990
+ };
991
+ spHttpClient: {
992
+ post: (url: string, configuration: any, postOptions: {
993
+ body?: BodyInit;
994
+ headers?: HeadersInit;
995
+ }) => Promise<{
996
+ json: () => Promise<any>;
997
+ }>;
998
+ get: (url: string, configuration: any, postOptions: {
999
+ body?: BodyInit;
1000
+ headers?: HeadersInit;
1001
+ }) => Promise<{
1002
+ json: () => Promise<any>;
1003
+ }>;
1004
+ };
1005
+ }
1006
+ export interface ISettingsFormContext {
1007
+ webUrl: string;
1008
+ /** if we are configuring a specific list, this will have the list ID */
1009
+ listId?: string;
1010
+ /** context as we get it from the SPFx control */
1011
+ spfx: ISpfxBaseComponentContext;
1012
+ }
1013
+ export declare enum MissingOptionsType {
1014
+ /** No missing options */
1015
+ None = 0,
1016
+ /** Optional missing options, can render and load them later */
1017
+ MissingOptional = 1,
1018
+ /** Required missing options, cannot render until these options are loaded */
1019
+ MissingRequired = 2
1020
+ }
1021
+ export interface IItemFormContext {
1022
+ pageType: PageType;
1023
+ /** specify web ID, in case of working on a different web */
1024
+ webId?: string;
1025
+ listId: string;
1026
+ itemId?: number;
1027
+ /** optional, additional items to update */
1028
+ otherItems?: number[];
1029
+ /** optional, content type ID for a new item */
1030
+ contentTypeId?: string;
1031
+ /** optional, root folder to save the new item in */
1032
+ rootFolder?: string;
1033
+ context: ISpfxBaseComponentContext;
1034
+ /** optional, if a custom action was clicked */
1035
+ isInfoPane?: boolean;
1036
+ /** optional, form is open in side panel */
1037
+ isSidePanel?: boolean;
1038
+ actionId?: string;
1039
+ }
1040
+ /** Calculated - a calculated column created by the user. Computed - a system column, such as content type, edit menu, select column */
1041
+ export type FieldTypeAsString = "Text" | "Note" | "Choice" | "MultiChoice" | "Boolean" | "DateTime" | "User" | "UserMulti" | "Lookup" | "LookupMulti" | "URL" | "Number" | "Currency" | "TaxonomyFieldType" | "TaxonomyFieldTypeMulti" | "Attachments" | "File" | "Calculated" | "Counter" | "Computed" | "Geolocation" | "Recurrence" | "CrossProjectLink" | "AllDayEvent" | "Integer" |
1042
+ /** OutcomeChoice from workflow task outcome modified PercentComplete and Stauts fields */
1043
+ "OutcomeChoice" |
1044
+ /** Thumbnail is an image field, see issue 7553 */
1045
+ "Thumbnail";
1046
+ export interface IFieldInfoEX extends IFieldInfo {
1047
+ TypeAsString: FieldTypeAsString;
1048
+ SchemaJson: IFieldJsonSchema;
1049
+ OutputTypeAsString: FieldTypeAsString;
1050
+ }
1051
+ export interface IFieldInfoExHash {
1052
+ [InternalName: string]: IFieldInfoEX;
1053
+ }
1054
+ export interface IFieldContentType extends IFieldInfoEX {
1055
+ Options: IContentTypeInfo[];
1056
+ }
1057
+ export interface IFieldNoteInfo extends IFieldInfoEX {
1058
+ RichText: boolean;
1059
+ NumberOfLines: number;
1060
+ AppendOnly: boolean;
1061
+ }
1062
+ export interface IFieldUrlInfo extends IFieldInfoEX {
1063
+ DisplayFormat: UrlFieldFormatType;
1064
+ }
1065
+ export interface IFieldLookupInfo extends IFieldInfoEX {
1066
+ AllowMultipleValues: boolean;
1067
+ LookupField: string;
1068
+ LookupList: string;
1069
+ LookupWebId: string;
1070
+ }
1071
+ export interface IFieldUserInfo extends IFieldInfoEX {
1072
+ AllowMultipleValues: boolean;
1073
+ Presence: boolean;
1074
+ SelectionMode: PersonSelectionMode;
1075
+ SelectionGroup: number;
1076
+ }
1077
+ export interface IFieldDateTimeInfo extends IFieldInfoEX {
1078
+ DisplayFormat: DateTimeFieldFormatType;
1079
+ FriendlyDisplayFormat: DateTimeFieldFriendlyFormatType;
1080
+ }
1081
+ export interface IFieldTaxonomyInfo extends IFieldLookupInfo {
1082
+ CreateValuesInEditForm: boolean;
1083
+ IsAnchorValid: boolean;
1084
+ IsKeyword: boolean;
1085
+ IsPathRendered: boolean;
1086
+ IsTermSetValid: boolean;
1087
+ Open: boolean;
1088
+ SspId: string;
1089
+ TermSetId: string;
1090
+ AnchorId: string;
1091
+ /** The hidden text field id used to update multi value.
1092
+ * Warning: Issue 7585 do not use this.
1093
+ * Instead use UpdateMultiTaxonomyValue endpoint
1094
+ */
1095
+ TextField: string;
1096
+ UserCreated: boolean;
1097
+ /** The hidden text field internal name used to update multi value.
1098
+ * Warning: Issue 7585 do not use this.
1099
+ * Instead use UpdateMultiTaxonomyValue endpoint
1100
+ */
1101
+ HiddenMultiValueFieldName: string;
1102
+ }
1103
+ export interface IFieldNumberInfo extends IFieldInfoEX {
1104
+ /** number of decimals to show. -1 for automatic. */
1105
+ DisplayFormat: number;
1106
+ ShowAsPercentage: boolean;
1107
+ MinimumValue: number;
1108
+ MaximumValue: number;
1109
+ }
1110
+ export interface IFieldCurrencyInfo extends IFieldNumberInfo {
1111
+ CurrencyLocaleId: number;
1112
+ }
1113
+ export interface IFieldChoiceInfo extends IFieldInfoEX {
1114
+ Choices: string[];
1115
+ FillInChoice: boolean;
1116
+ EditFormat: ChoiceFieldFormatType;
1117
+ }
1118
+ export interface IFieldCalculatedInfo extends IFieldInfoEX {
1119
+ OutputType: FieldTypes.Boolean | FieldTypes.Currency | FieldTypes.DateTime | FieldTypes.Number | FieldTypes.Text;
1120
+ DateFormat?: DateTimeFieldFormatType;
1121
+ ShowAsPercentage?: boolean;
1122
+ }
1123
+ export type UrlValueType = {
1124
+ Url: string;
1125
+ Description?: string;
1126
+ };
1127
+ export type TaxonomyValueType = {
1128
+ Label?: string;
1129
+ TermGuid?: string;
1130
+ WssId: number;
1131
+ };
1132
+ export type ThumbnailValueType = {
1133
+ type?: "thumbnail";
1134
+ fileName: string;
1135
+ fieldName?: string;
1136
+ serverUrl: string;
1137
+ serverRelativeUrl: string;
1138
+ id: string;
1139
+ };
1140
+ export declare enum RoleType {
1141
+ none = 0,
1142
+ guest = 1,
1143
+ reader = 2,
1144
+ contributor = 3,
1145
+ webDesigner = 4,
1146
+ administrator = 5,
1147
+ editor = 6
1148
+ }
1149
+ export declare enum SPEventReceiverTypes {
1150
+ invalidReceiver = -1,
1151
+ itemAdding = 1,
1152
+ itemUpdating = 2,
1153
+ itemDeleting = 3,
1154
+ itemCheckingIn = 4,
1155
+ itemCheckingOut = 5,
1156
+ itemUncheckingOut = 6,
1157
+ itemAttachmentAdding = 7,
1158
+ itemAttachmentDeleting = 8,
1159
+ itemFileMoving = 9,
1160
+ itemVersionDeleting = 11,
1161
+ fieldAdding = 101,
1162
+ fieldUpdating = 102,
1163
+ fieldDeleting = 103,
1164
+ listAdding = 104,
1165
+ listDeleting = 105,
1166
+ siteDeleting = 201,
1167
+ webDeleting = 202,
1168
+ webMoving = 203,
1169
+ webAdding = 204,
1170
+ siteMovingFromGeoLocation = 206,
1171
+ groupAdding = 301,
1172
+ groupUpdating = 302,
1173
+ groupDeleting = 303,
1174
+ groupUserAdding = 304,
1175
+ groupUserDeleting = 305,
1176
+ roleDefinitionAdding = 306,
1177
+ roleDefinitionUpdating = 307,
1178
+ roleDefinitionDeleting = 308,
1179
+ roleAssignmentAdding = 309,
1180
+ roleAssignmentDeleting = 310,
1181
+ inheritanceBreaking = 311,
1182
+ inheritanceResetting = 312,
1183
+ workflowStarting = 501,
1184
+ itemAdded = 10001,
1185
+ itemUpdated = 10002,
1186
+ itemDeleted = 10003,
1187
+ itemCheckedIn = 10004,
1188
+ itemCheckedOut = 10005,
1189
+ itemUncheckedOut = 10006,
1190
+ itemAttachmentAdded = 10007,
1191
+ itemAttachmentDeleted = 10008,
1192
+ itemFileMoved = 10009,
1193
+ itemFileConverted = 10010,
1194
+ itemVersionDeleted = 10011,
1195
+ fieldAdded = 10101,
1196
+ fieldUpdated = 10102,
1197
+ fieldDeleted = 10103,
1198
+ listAdded = 10104,
1199
+ listDeleted = 10105,
1200
+ siteDeleted = 10201,
1201
+ webDeleted = 10202,
1202
+ webRestored = 10205,
1203
+ webMoved = 10203,
1204
+ webProvisioned = 10204,
1205
+ groupAdded = 10301,
1206
+ groupUpdated = 10302,
1207
+ groupDeleted = 10303,
1208
+ groupUserAdded = 10304,
1209
+ groupUserDeleted = 10305,
1210
+ roleDefinitionAdded = 10306,
1211
+ roleDefinitionUpdated = 10307,
1212
+ roleDefinitionDeleted = 10308,
1213
+ roleAssignmentAdded = 10309,
1214
+ roleAssignmentDeleted = 10310,
1215
+ inheritanceBroken = 10311,
1216
+ inheritanceReset = 10312,
1217
+ workflowStarted = 10501,
1218
+ workflowPostponed = 10502,
1219
+ workflowCompleted = 10503,
1220
+ entityInstanceAdded = 10601,
1221
+ entityInstanceUpdated = 10602,
1222
+ entityInstanceDeleted = 10603,
1223
+ appInstalled = 10701,
1224
+ appUpgraded = 10702,
1225
+ appUninstalling = 10703,
1226
+ emailReceived = 20000,
1227
+ contextEvent = 32766
1228
+ }
1229
+ export interface ISPEventReceiver {
1230
+ EventType: SPEventReceiverTypes;
1231
+ ReceiverAssembly: string;
1232
+ ReceiverClass: string;
1233
+ ReceiverId: string;
1234
+ ReceiverName: string;
1235
+ ReceiverUrl: string;
1236
+ SequenceNumber: number;
1237
+ Synchronization: number;
1238
+ }
1239
+ export interface IContextWebInformation {
1240
+ FormDigestTimeoutSeconds: number;
1241
+ FormDigestValue: string;
1242
+ LibraryVersion: string;
1243
+ SiteFullUrl: string;
1244
+ WebFullUrl: string;
1245
+ }
1246
+ export declare enum SPFxDisplayMode {
1247
+ Read = 1,
1248
+ Edit = 2
1249
+ }
1250
+ /** SharePoint calendar list item EventType */
1251
+ export declare enum SPCalendarEventType {
1252
+ SingleEvent = 0,
1253
+ RecurringEvent = 1,
1254
+ /** A recurrence instance that was deleted */
1255
+ RecurrenceDeleted = 3,
1256
+ /** A recurrence instance that was modified */
1257
+ RecurrenceException = 4
1258
+ }
1259
+ export declare enum SPDateTimeDisplayFormat {
1260
+ DateOnly = 0,
1261
+ DateTime = 1,
1262
+ TimeOnly = 2
1263
+ }
1264
+ export declare enum SPDateTimeCalendarType {
1265
+ None = 0,
1266
+ Gregorian = 1,
1267
+ Japan = 2,
1268
+ Taiwan = 3,
1269
+ Korea = 4,
1270
+ Hijri = 5,
1271
+ Thai = 6,
1272
+ Hebrew = 7,
1273
+ GregorianMEFrench = 8,
1274
+ GregorianArabic = 9,
1275
+ GregorianXLITEnglish = 10,
1276
+ GregorianXLITFrench = 11,
1277
+ KoreaJapanLunar = 12,
1278
+ ChineseLunar = 13,
1279
+ SakaEra = 14,
1280
+ UmAlQura = 15
1281
+ }
1282
+ export declare enum SPJsGridEditMode {
1283
+ ReadOnly = 0,// 0,
1284
+ ReadWrite = 1,// 1,
1285
+ ReadOnlyDefer = 2,// 2,
1286
+ ReadWriteDefer = 3,// 3,
1287
+ Defer = 4
1288
+ }
1289
+ export interface ISPJsGridControl {
1290
+ GetColumns(optPaneId?: string): {
1291
+ /** Column title */
1292
+ name: string;
1293
+ /** Column identifier */
1294
+ columnKey: string;
1295
+ /** this is used when you need to make some of the cells in the column readonly, but at the same time keep others editable */
1296
+ fnGetCellEditMode: (record: any, fieldKey: string) => SPJsGridEditMode;
1297
+ }[];
1298
+ /** Hide the specified column from grid */
1299
+ HideColumn(columnKey: string): void;
1300
+ /** Show a previously hidden column at a specified position.
1301
+ If atIdx is not defined, column will be shown at it's previous position. */
1302
+ ShowColumn(columnKey: string, atIdx?: number): void;
1303
+ }
1304
+ export declare enum UserProfileBuiltinProperty {
1305
+ Department = "Department",
1306
+ DisplayName = "DisplayName",
1307
+ Email = "Email",
1308
+ FirstName = "FirstName",
1309
+ HireDate = "HireDate",
1310
+ JobTitle = "JobTitle",
1311
+ Manager = "Manager",
1312
+ MobilePhone = "MobilePhone",
1313
+ Office = "Office",
1314
+ Phone = "Phone",
1315
+ WorkEmail = "WorkEmail",
1316
+ WorkPhone = "WorkPhone"
1317
+ }
1318
+ export declare enum BuiltInFields {
1319
+ Attachments = "Attachments",
1320
+ AttachmentFiles = "AttachmentFiles"
1321
+ }
1322
+ export type AttachmentFilesRESTValue = {
1323
+ results: {
1324
+ FileName: string;
1325
+ ServerRelativeUrl: string;
1326
+ }[];
1327
+ };
1328
+ interface _spPageContextInfo {
1329
+ alertsEnabled: boolean;
1330
+ allowSilverlightPrompt: string;
1331
+ blockDownloadsExperienceEnabled: boolean;
1332
+ canUserCreateMicrosoftForm: boolean;
1333
+ cdnPrefix: string;
1334
+ clientServerTimeDelta: number;
1335
+ CorrelationId: string;
1336
+ crossDomainPhotosEnabled: boolean;
1337
+ currentCultureName: string;
1338
+ currentLanguage: number;
1339
+ currentUICultureName: string;
1340
+ disableAppViews: boolean;
1341
+ disableFlows: boolean;
1342
+ env: string;
1343
+ farmLabel: string;
1344
+ formDigestValue: string;
1345
+ formDigestTimeoutSeconds: number;
1346
+ groupColor: string;
1347
+ groupHasHomepage: boolean;
1348
+ groupId: string;
1349
+ guestsEnabled: boolean;
1350
+ hasManageWebPermissions: boolean;
1351
+ isAnonymousGuestUser: boolean;
1352
+ isAppWeb: boolean;
1353
+ isExternalGuestUser: boolean;
1354
+ isNoScriptEnabled: boolean;
1355
+ isSiteAdmin: boolean;
1356
+ isSPO: boolean;
1357
+ isTenantDevSite: boolean;
1358
+ isWebWelcomePage: boolean;
1359
+ layoutsUrl: string;
1360
+ listBaseTemplate: number;
1361
+ listId: string;
1362
+ listPermsMask: {
1363
+ High: number;
1364
+ Low: number;
1365
+ };
1366
+ listTitle: string;
1367
+ listUrl: string;
1368
+ maximumFileSize: number;
1369
+ openInClient: boolean;
1370
+ pageListId: string;
1371
+ pageItemId: number;
1372
+ pagePermsMask: {
1373
+ High: number;
1374
+ Low: number;
1375
+ };
1376
+ pagePersonalizationScope: string;
1377
+ PreviewFeaturesEnabled: boolean;
1378
+ preferUserTimeZone: boolean;
1379
+ ProfileUrl: string;
1380
+ PublishingFeatureOn: boolean;
1381
+ RecycleBinItemCount: number;
1382
+ serverRedirectedUrl: string;
1383
+ serverRequestPath: string;
1384
+ serverTime: string;
1385
+ siteAbsoluteUrl: string;
1386
+ siteClassification: string;
1387
+ siteClientTag: string;
1388
+ siteColor: string;
1389
+ siteId: string;
1390
+ sitePagesEnabled: boolean;
1391
+ siteServerRelativeUrl: string;
1392
+ siteSubscriptionId: string;
1393
+ supportPoundStorePath: boolean;
1394
+ supportPercentStorePath: boolean;
1395
+ systemUserKey: string;
1396
+ tenantAppVersion: string;
1397
+ themeCacheToken: string;
1398
+ themedCssFolderUrl: string;
1399
+ themedImageFileNames: string;
1400
+ updateFormDigestPageLoaded: string;
1401
+ userDisplayName: string;
1402
+ userEmail: string;
1403
+ userId: number;
1404
+ userLoginName: string;
1405
+ userPrincipalName: string;
1406
+ viewOnlyExperienceEnabled: boolean;
1407
+ viewId: string;
1408
+ webAbsoluteUrl: string;
1409
+ webDescription: string;
1410
+ webId: string;
1411
+ webLanguage: number;
1412
+ webLogoUrl: string;
1413
+ webPermMasks: {
1414
+ High: number;
1415
+ Low: number;
1416
+ };
1417
+ webServerRelativeUrl: string;
1418
+ webTemplate: string;
1419
+ webTitle: string;
1420
+ webUIVersion: number;
1421
+ }
1422
+ declare global {
1423
+ var _spPageContextInfo: _spPageContextInfo;
1424
+ }
1425
+ export declare enum SPClientControlMode {
1426
+ Invalid = 0,
1427
+ DisplayForm = 1,
1428
+ EditForm = 2,
1429
+ NewForm = 3,
1430
+ View = 4
1431
+ }
1432
+ export {};