/
constants.ts
71 lines (63 loc) · 2.22 KB
/
constants.ts
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
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*/
export const SCHEMA_WEBFILE_FOLDER_NAME = "web-files";
export enum schemaKey {
SINGLE_ENTITY_URL = "singleEntityURL",
MULTI_ENTITY_URL = "multiEntityURL",
SCHEMA_VERSION = "schema",
DATAVERSE_API_VERSION = "version",
DATA = "data",
API = "api",
}
export enum schemaEntityKey {
FILE_NAME_FIELD = "_primarynamefield",
FILE_ID_FIELD = "_primaryidfield",
FILE_FOLDER_NAME = "_foldername",
LANGUAGE_FIELD = "_languagefield",
ATTRIBUTES_EXTENSION = "_attributesExtension",
VSCODE_ENTITY_NAME = "_vscodeentityname",
DATAVERSE_ENTITY_NAME = "_dataverseenityname",
FETCH_QUERY_PARAMETERS = "_fetchQueryParameters",
MULTI_FILE_FETCH_QUERY_PARAMETERS = "_multiFileFetchQueryParameters",
MAPPING_ENTITY_ID = "_mappingEntityId",
MAPPING_ENTITY = "_mappingEntity",
MAPPING_ENTITY_FETCH_QUERY = "_mappingEntityFetchQuery",
EXPORT_TYPE = "_exporttype",
ATTRIBUTES = "_attributes",
}
export enum schemaEntityName {
WEBFILES = "webfiles",
WEBPAGES = "webpages",
WEBTEMPLATES = "webtemplates",
CONTENTSNIPPETS = "contentsnippet",
LISTS = "lists",
BASICFORMS = "basicforms",
ADVANCEDFORMS = "advancedforms",
ADVANCEDFORMSTEPS = "advancedformsteps",
}
export enum MultiFileSupportedEntityName {
WEBFILES = "webfiles",
WEBPAGES = "webpages",
WEBTEMPLATES = "webtemplates",
CONTENTSNIPPETS = "contentsnippet",
LISTS = "lists",
BASICFORMS = "basicforms",
ADVANCEDFORMS = "advancedforms",
}
// This decides the folder hierarchy a file being displayed in File explorer will follow.
// This value is also maintained in portalSchema entities definition as _exporttype
export enum folderExportType {
SubFolders = "SubFolders",
SingleFolder = "SingleFolder",
SingleFile = "SingleFile",
}
// Entity attributes that need to be saved in base64 encoding - example documentBody
export enum entityAttributesWithBase64Encoding {
documentbody = "documentbody",
filecontent = "filecontent",
}
export enum entityAttributeNeedMapping {
webformsteps = "content.webFormSteps"
}