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