-
Notifications
You must be signed in to change notification settings - Fork 23
/
consts.go
109 lines (88 loc) · 2.95 KB
/
consts.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
package api
import (
"github.com/alcionai/corso/src/internal/common/keys"
)
// Well knwon Folder Names
// Mail Definitions: https://docs.microsoft.com/en-us/graph/api/resources/mailfolder?view=graph-rest-1.0
const (
DefaultCalendar = "Calendar"
DefaultContacts = "Contacts"
MailInbox = "Inbox"
MsgFolderRoot = "msgfolderroot"
// Kiota JSON invalid JSON error message.
invalidJSON = "invalid json type"
)
// ************** Lists starts *****************
const (
AttachmentsColumnName = "Attachments"
EditColumnName = "Edit"
ContentTypeColumnName = "ContentType"
CreatedColumnName = "Created"
ModifiedColumnName = "Modified"
AuthorLookupIDColumnName = "AuthorLookupId"
EditorLookupIDColumnName = "EditorLookupId"
AppAuthorLookupIDColumnName = "AppAuthorLookupId"
TitleColumnName = "Title"
ContentTypeColumnDisplayName = "Content Type"
AddressKey = "address"
CoordinatesKey = "coordinates"
DisplayNameKey = "displayName"
LocationURIKey = "locationUri"
UniqueIDKey = "uniqueId"
// entries that are nested within a second layer
CityKey = "city"
CountryKey = "countryOrRegion"
PostalCodeKey = "postalCode"
StateKey = "state"
StreetKey = "street"
LatitudeKey = "latitude"
LongitudeKey = "longitude"
CountryOrRegionFN = "CountryOrRegion"
StateFN = "State"
CityFN = "City"
PostalCodeFN = "PostalCode"
StreetFN = "Street"
GeoLocFN = "GeoLoc"
DispNameFN = "DispName"
HyperlinkDescriptionKey = "Description"
HyperlinkURLKey = "Url"
LookupIDKey = "LookupId"
LookupValueKey = "LookupValue"
PersonEmailKey = "Email"
MetadataLabelKey = "Label"
MetadataTermGUIDKey = "TermGuid"
MetadataWssIDKey = "WssId"
LinkTitleFieldNamePart = "LinkTitle"
ChildCountFieldNamePart = "ChildCount"
LookupIDFieldNamePart = "LookupId"
ODataTypeFieldNamePart = "@odata.type"
ODataTypeFieldNameStringVal = "Collection(Edm.String)"
ODataTypeFieldNameIntVal = "Collection(Edm.Int32)"
ReadOnlyOrHiddenFieldNamePrefix = "_"
DescoratorFieldNamePrefix = "@"
WebTemplateExtensionsListTemplate = "webTemplateExtensionsList"
// This issue https://github.com/alcionai/corso/issues/4932
// tracks to backup/restore supportability of `documentLibrary` templated lists
DocumentLibraryListTemplate = "documentLibrary"
SharingLinksListTemplate = "sharingLinks"
AccessRequestsListTemplate = "accessRequest"
)
var addressFieldNames = []string{
AddressKey,
CoordinatesKey,
DisplayNameKey,
LocationURIKey,
UniqueIDKey,
}
var legacyColumns = keys.Set{
AttachmentsColumnName: {},
EditColumnName: {},
ContentTypeColumnDisplayName: {},
}
var SkipListTemplates = keys.Set{
WebTemplateExtensionsListTemplate: {},
DocumentLibraryListTemplate: {},
SharingLinksListTemplate: {},
AccessRequestsListTemplate: {},
}
// ************** Lists ends *****************