Initial commit
This commit is contained in:
@@ -0,0 +1,78 @@
|
||||
{
|
||||
"fields": {
|
||||
"number": {
|
||||
"type": "autoincrement",
|
||||
"index": true,
|
||||
"dbType": "bigint"
|
||||
},
|
||||
"targetType": {
|
||||
"type": "varchar",
|
||||
"view": "views/action-history-record/fields/target-type",
|
||||
"translation": "Global.scopeNames"
|
||||
},
|
||||
"target": {
|
||||
"type": "linkParent",
|
||||
"view": "views/action-history-record/fields/target"
|
||||
},
|
||||
"data": {
|
||||
"type": "jsonObject"
|
||||
},
|
||||
"action": {
|
||||
"type": "enum",
|
||||
"options": ["read", "update", "create", "delete"]
|
||||
},
|
||||
"createdAt": {
|
||||
"type": "datetime",
|
||||
"hasSeconds": true
|
||||
},
|
||||
"user": {
|
||||
"type": "link",
|
||||
"view": "views/fields/user"
|
||||
},
|
||||
"userType": {
|
||||
"type": "foreign",
|
||||
"link": "user",
|
||||
"field": "type",
|
||||
"view": "views/fields/foreign-enum",
|
||||
"notStorable": true
|
||||
},
|
||||
"ipAddress": {
|
||||
"type": "varchar",
|
||||
"maxLength": 39
|
||||
},
|
||||
"authToken": {
|
||||
"type": "link"
|
||||
},
|
||||
"authLogRecord": {
|
||||
"type": "link"
|
||||
}
|
||||
},
|
||||
"links": {
|
||||
"user": {
|
||||
"type": "belongsTo",
|
||||
"entity": "User"
|
||||
},
|
||||
"target": {
|
||||
"type": "belongsToParent"
|
||||
},
|
||||
"authToken": {
|
||||
"type": "belongsTo",
|
||||
"entity": "AuthToken",
|
||||
"foreignName": "id",
|
||||
"foreign": "actionHistoryRecords"
|
||||
},
|
||||
"authLogRecord": {
|
||||
"type": "belongsTo",
|
||||
"entity": "AuthLogRecord",
|
||||
"foreignName": "id",
|
||||
"foreign": "actionHistoryRecords"
|
||||
}
|
||||
},
|
||||
"collection": {
|
||||
"orderBy": "number",
|
||||
"order": "desc",
|
||||
"textFilterFields": ["ipAddress", "userName"],
|
||||
"countDisabled": true
|
||||
},
|
||||
"hooksDisabled": true
|
||||
}
|
||||
@@ -0,0 +1,293 @@
|
||||
{
|
||||
"fields": {
|
||||
"name": {
|
||||
"type": "varchar",
|
||||
"required": true,
|
||||
"maxLength": 100
|
||||
},
|
||||
"code": {
|
||||
"type": "varchar",
|
||||
"required": true,
|
||||
"maxLength": 2,
|
||||
"tooltip": true,
|
||||
"pattern": "[A-Z]{2}",
|
||||
"sanitizerClassNameList": [
|
||||
"Espo\\Classes\\FieldSanitizers\\StringUpperCase"
|
||||
],
|
||||
"options": [
|
||||
"AF",
|
||||
"AX",
|
||||
"AL",
|
||||
"DZ",
|
||||
"AS",
|
||||
"AD",
|
||||
"AO",
|
||||
"AI",
|
||||
"AQ",
|
||||
"AG",
|
||||
"AR",
|
||||
"AM",
|
||||
"AW",
|
||||
"AU",
|
||||
"AT",
|
||||
"AZ",
|
||||
"BS",
|
||||
"BH",
|
||||
"BD",
|
||||
"BB",
|
||||
"BY",
|
||||
"BE",
|
||||
"BZ",
|
||||
"BJ",
|
||||
"BM",
|
||||
"BT",
|
||||
"BO",
|
||||
"BA",
|
||||
"BW",
|
||||
"BV",
|
||||
"BR",
|
||||
"IO",
|
||||
"BN",
|
||||
"BG",
|
||||
"BF",
|
||||
"BI",
|
||||
"KH",
|
||||
"CM",
|
||||
"CA",
|
||||
"CV",
|
||||
"KY",
|
||||
"CF",
|
||||
"TD",
|
||||
"CL",
|
||||
"CN",
|
||||
"CX",
|
||||
"CC",
|
||||
"CO",
|
||||
"KM",
|
||||
"CG",
|
||||
"CD",
|
||||
"CK",
|
||||
"CR",
|
||||
"CI",
|
||||
"HR",
|
||||
"CU",
|
||||
"CY",
|
||||
"CZ",
|
||||
"DK",
|
||||
"DJ",
|
||||
"DM",
|
||||
"DO",
|
||||
"EC",
|
||||
"EG",
|
||||
"SV",
|
||||
"GQ",
|
||||
"ER",
|
||||
"EE",
|
||||
"ET",
|
||||
"FK",
|
||||
"FO",
|
||||
"FJ",
|
||||
"FI",
|
||||
"FR",
|
||||
"GF",
|
||||
"PF",
|
||||
"TF",
|
||||
"GA",
|
||||
"GM",
|
||||
"GE",
|
||||
"DE",
|
||||
"GH",
|
||||
"GI",
|
||||
"GR",
|
||||
"GL",
|
||||
"GD",
|
||||
"GP",
|
||||
"GU",
|
||||
"GT",
|
||||
"GG",
|
||||
"GN",
|
||||
"GW",
|
||||
"GY",
|
||||
"HT",
|
||||
"HM",
|
||||
"VA",
|
||||
"HN",
|
||||
"HK",
|
||||
"HU",
|
||||
"IS",
|
||||
"IN",
|
||||
"ID",
|
||||
"IR",
|
||||
"IQ",
|
||||
"IE",
|
||||
"IM",
|
||||
"IL",
|
||||
"IT",
|
||||
"JM",
|
||||
"JP",
|
||||
"JE",
|
||||
"JO",
|
||||
"KZ",
|
||||
"KE",
|
||||
"KI",
|
||||
"KR",
|
||||
"KW",
|
||||
"KG",
|
||||
"LA",
|
||||
"LV",
|
||||
"LB",
|
||||
"LS",
|
||||
"LR",
|
||||
"LY",
|
||||
"LI",
|
||||
"LT",
|
||||
"LU",
|
||||
"MO",
|
||||
"MK",
|
||||
"MG",
|
||||
"MW",
|
||||
"MY",
|
||||
"MV",
|
||||
"ML",
|
||||
"MT",
|
||||
"MH",
|
||||
"MQ",
|
||||
"MR",
|
||||
"MU",
|
||||
"YT",
|
||||
"MX",
|
||||
"FM",
|
||||
"MD",
|
||||
"MC",
|
||||
"MN",
|
||||
"ME",
|
||||
"MS",
|
||||
"MA",
|
||||
"MZ",
|
||||
"MM",
|
||||
"NA",
|
||||
"NR",
|
||||
"NP",
|
||||
"NL",
|
||||
"AN",
|
||||
"NC",
|
||||
"NZ",
|
||||
"NI",
|
||||
"NE",
|
||||
"NG",
|
||||
"NU",
|
||||
"NF",
|
||||
"MP",
|
||||
"NO",
|
||||
"OM",
|
||||
"PK",
|
||||
"PW",
|
||||
"PS",
|
||||
"PA",
|
||||
"PG",
|
||||
"PY",
|
||||
"PE",
|
||||
"PH",
|
||||
"PN",
|
||||
"PL",
|
||||
"PT",
|
||||
"PR",
|
||||
"QA",
|
||||
"RE",
|
||||
"RO",
|
||||
"RU",
|
||||
"RW",
|
||||
"BL",
|
||||
"SH",
|
||||
"KN",
|
||||
"LC",
|
||||
"MF",
|
||||
"PM",
|
||||
"VC",
|
||||
"WS",
|
||||
"SM",
|
||||
"ST",
|
||||
"SA",
|
||||
"SN",
|
||||
"RS",
|
||||
"SC",
|
||||
"SL",
|
||||
"SG",
|
||||
"SK",
|
||||
"SI",
|
||||
"SB",
|
||||
"SO",
|
||||
"ZA",
|
||||
"GS",
|
||||
"ES",
|
||||
"LK",
|
||||
"SD",
|
||||
"SR",
|
||||
"SJ",
|
||||
"SZ",
|
||||
"SE",
|
||||
"CH",
|
||||
"SY",
|
||||
"TW",
|
||||
"TJ",
|
||||
"TZ",
|
||||
"TH",
|
||||
"TL",
|
||||
"TG",
|
||||
"TK",
|
||||
"TO",
|
||||
"TT",
|
||||
"TN",
|
||||
"TR",
|
||||
"TM",
|
||||
"TC",
|
||||
"TV",
|
||||
"UG",
|
||||
"UA",
|
||||
"AE",
|
||||
"GB",
|
||||
"US",
|
||||
"UM",
|
||||
"UY",
|
||||
"UZ",
|
||||
"VU",
|
||||
"VE",
|
||||
"VN",
|
||||
"VG",
|
||||
"VI",
|
||||
"WF",
|
||||
"EH",
|
||||
"YE",
|
||||
"ZM",
|
||||
"ZW"
|
||||
]
|
||||
},
|
||||
"isPreferred": {
|
||||
"type": "bool",
|
||||
"tooltip": true
|
||||
},
|
||||
"preferredName": {
|
||||
"type": "base",
|
||||
"notStorable": true,
|
||||
"utility": true
|
||||
}
|
||||
},
|
||||
"links": {},
|
||||
"collection": {
|
||||
"orderBy": "preferredName",
|
||||
"order": "asc",
|
||||
"textFilterFields": [
|
||||
"name",
|
||||
"code"
|
||||
]
|
||||
},
|
||||
"indexes": {
|
||||
"name": {
|
||||
"unique": true,
|
||||
"columns": [
|
||||
"name"
|
||||
]
|
||||
}
|
||||
},
|
||||
"noDeletedAttribute": true
|
||||
}
|
||||
@@ -0,0 +1,94 @@
|
||||
{
|
||||
"fields": {
|
||||
"number": {
|
||||
"type": "autoincrement",
|
||||
"dbType": "bigint"
|
||||
},
|
||||
"createdAt": {
|
||||
"type": "datetime",
|
||||
"readOnly": true
|
||||
},
|
||||
"message": {
|
||||
"type": "text",
|
||||
"readOnly": true,
|
||||
"orderDisabled": true
|
||||
},
|
||||
"level": {
|
||||
"type": "enum",
|
||||
"options": [
|
||||
"Debug",
|
||||
"Info",
|
||||
"Notice",
|
||||
"Warning",
|
||||
"Error",
|
||||
"Critical",
|
||||
"Alert",
|
||||
"Emergency"
|
||||
],
|
||||
"style": {
|
||||
"Info": "info",
|
||||
"Notice": "primary",
|
||||
"Warning": "warning",
|
||||
"Error": "danger",
|
||||
"Critical": "danger",
|
||||
"Alert": "danger",
|
||||
"Emergency": "danger"
|
||||
},
|
||||
"maxLength": 9,
|
||||
"readOnly": true,
|
||||
"index": true
|
||||
},
|
||||
"code": {
|
||||
"type": "int",
|
||||
"readOnly": true
|
||||
},
|
||||
"exceptionClass": {
|
||||
"type": "varchar",
|
||||
"maxLength": 512,
|
||||
"readOnly": true
|
||||
},
|
||||
"file": {
|
||||
"type": "varchar",
|
||||
"maxLength": 512,
|
||||
"readOnly": true
|
||||
},
|
||||
"line": {
|
||||
"type": "int",
|
||||
"readOnly": true
|
||||
},
|
||||
"requestMethod": {
|
||||
"type": "enum",
|
||||
"maxLength": 7,
|
||||
"options": [
|
||||
"GET",
|
||||
"POST",
|
||||
"PUT",
|
||||
"UPDATE",
|
||||
"DELETE",
|
||||
"PATCH",
|
||||
"HEAD",
|
||||
"OPTIONS",
|
||||
"TRACE"
|
||||
],
|
||||
"readOnly": true
|
||||
},
|
||||
"requestResourcePath": {
|
||||
"type": "varchar",
|
||||
"maxLength": 255,
|
||||
"readOnly": true
|
||||
},
|
||||
"requestUrl": {
|
||||
"type": "varchar",
|
||||
"maxLength": 512,
|
||||
"readOnly": true
|
||||
}
|
||||
},
|
||||
"links": {},
|
||||
"collection": {
|
||||
"orderBy": "number",
|
||||
"order": "desc",
|
||||
"textFilterFields": ["message"]
|
||||
},
|
||||
"indexes": {},
|
||||
"hooksDisabled": true
|
||||
}
|
||||
@@ -0,0 +1,61 @@
|
||||
{
|
||||
"fields": {
|
||||
"name": {
|
||||
"type": "varchar",
|
||||
"maxLength": 100,
|
||||
"required": true,
|
||||
"pattern": "[a-zA-Z]{1}[a-zA-Z0-9_]+",
|
||||
"index": true,
|
||||
"tooltip": true
|
||||
},
|
||||
"value": {
|
||||
"type": "text",
|
||||
"required": true,
|
||||
"view": "views/admin/app-secret/fields/value"
|
||||
},
|
||||
"description": {
|
||||
"type": "text"
|
||||
},
|
||||
"createdAt": {
|
||||
"type": "datetime",
|
||||
"readOnly": true
|
||||
},
|
||||
"modifiedAt": {
|
||||
"type": "datetime",
|
||||
"readOnly": true
|
||||
},
|
||||
"createdBy": {
|
||||
"type": "link",
|
||||
"readOnly": true
|
||||
},
|
||||
"modifiedBy": {
|
||||
"type": "link",
|
||||
"readOnly": true
|
||||
}
|
||||
},
|
||||
"links": {
|
||||
"createdBy": {
|
||||
"type": "belongsTo",
|
||||
"entity": "User"
|
||||
},
|
||||
"modifiedBy": {
|
||||
"type": "belongsTo",
|
||||
"entity": "User"
|
||||
}
|
||||
},
|
||||
"collection": {
|
||||
"orderBy": "name",
|
||||
"order": "asc",
|
||||
"textFilterFields": ["name"]
|
||||
},
|
||||
"indexes": {
|
||||
"nameDeleteId": {
|
||||
"type": "unique",
|
||||
"columns": [
|
||||
"name",
|
||||
"deleteId"
|
||||
]
|
||||
}
|
||||
},
|
||||
"deleteId": true
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
{
|
||||
"fields": {
|
||||
"value": {
|
||||
"type": "varchar",
|
||||
"required": true,
|
||||
"maxLength": 100
|
||||
},
|
||||
"entity": {
|
||||
"type": "linkParent"
|
||||
},
|
||||
"attribute": {
|
||||
"type": "varchar",
|
||||
"maxLength": 100
|
||||
}
|
||||
},
|
||||
"indexes": {
|
||||
"entityTypeValue": {
|
||||
"columns": ["entityType", "value"]
|
||||
},
|
||||
"entityValue": {
|
||||
"columns": ["entityType", "entityId", "value"]
|
||||
}
|
||||
},
|
||||
"hooksDisabled": true
|
||||
}
|
||||
115
application/Espo/Resources/metadata/entityDefs/Attachment.json
Normal file
115
application/Espo/Resources/metadata/entityDefs/Attachment.json
Normal file
@@ -0,0 +1,115 @@
|
||||
{
|
||||
"fields": {
|
||||
"name": {
|
||||
"type": "varchar",
|
||||
"required": true,
|
||||
"view": "views/attachment/fields/name",
|
||||
"maxLength": 255
|
||||
},
|
||||
"type": {
|
||||
"type": "varchar",
|
||||
"maxLength": 100
|
||||
},
|
||||
"size": {
|
||||
"type": "int",
|
||||
"dbType": "bigint",
|
||||
"min": 0
|
||||
},
|
||||
"parent": {
|
||||
"type": "linkParent",
|
||||
"view": "views/attachment/fields/parent"
|
||||
},
|
||||
"related": {
|
||||
"type": "linkParent",
|
||||
"noLoad": true,
|
||||
"view": "views/attachment/fields/parent",
|
||||
"validatorClassName": "Espo\\Classes\\FieldValidators\\Attachment\\Related"
|
||||
},
|
||||
"source": {
|
||||
"type": "link",
|
||||
"readOnly": true,
|
||||
"utility": true
|
||||
},
|
||||
"field": {
|
||||
"type": "varchar",
|
||||
"utility": true
|
||||
},
|
||||
"isBeingUploaded": {
|
||||
"type": "bool",
|
||||
"default": false
|
||||
},
|
||||
"createdAt": {
|
||||
"type": "datetime",
|
||||
"readOnly": true
|
||||
},
|
||||
"createdBy": {
|
||||
"type": "link",
|
||||
"readOnly": true
|
||||
},
|
||||
"modifiedAt": {
|
||||
"type": "datetime",
|
||||
"readOnly": true
|
||||
},
|
||||
"contents": {
|
||||
"type": "text",
|
||||
"notStorable": true,
|
||||
"sanitizerClassNameList": [],
|
||||
"sanitizerSuppressClassNameList": [
|
||||
"Espo\\Classes\\FieldSanitizers\\EmptyStringToNull"
|
||||
]
|
||||
},
|
||||
"role": {
|
||||
"type": "enum",
|
||||
"maxLength": 36,
|
||||
"options": [
|
||||
"Attachment",
|
||||
"Inline Attachment",
|
||||
"Import File",
|
||||
"Export File",
|
||||
"Mail Merge",
|
||||
"Mass Pdf"
|
||||
]
|
||||
},
|
||||
"storage": {
|
||||
"type": "varchar",
|
||||
"maxLength": 24,
|
||||
"default": null
|
||||
},
|
||||
"storageFilePath": {
|
||||
"type": "varchar",
|
||||
"maxLength": 260,
|
||||
"default": null
|
||||
},
|
||||
"global": {
|
||||
"type": "bool",
|
||||
"default": false
|
||||
}
|
||||
},
|
||||
"links": {
|
||||
"createdBy": {
|
||||
"type": "belongsTo",
|
||||
"entity": "User"
|
||||
},
|
||||
"parent": {
|
||||
"type": "belongsToParent",
|
||||
"foreign": "attachments"
|
||||
},
|
||||
"related": {
|
||||
"type": "belongsToParent"
|
||||
}
|
||||
},
|
||||
"collection": {
|
||||
"orderBy": "createdAt",
|
||||
"order": "desc",
|
||||
"textFilterFields": [
|
||||
"id",
|
||||
"name"
|
||||
]
|
||||
},
|
||||
"indexes": {
|
||||
"parent": {
|
||||
"columns": ["parentType", "parentId"]
|
||||
}
|
||||
},
|
||||
"sourceList": ["Document"]
|
||||
}
|
||||
@@ -0,0 +1,111 @@
|
||||
{
|
||||
"fields": {
|
||||
"username": {
|
||||
"type": "varchar",
|
||||
"readOnly": true,
|
||||
"maxLength": 100
|
||||
},
|
||||
"portal": {
|
||||
"type": "link",
|
||||
"readOnly": true
|
||||
},
|
||||
"user": {
|
||||
"type": "link",
|
||||
"readOnly": true
|
||||
},
|
||||
"authToken": {
|
||||
"type": "link",
|
||||
"readOnly": true
|
||||
},
|
||||
"ipAddress": {
|
||||
"type": "varchar",
|
||||
"maxLength": 45,
|
||||
"readOnly": true
|
||||
},
|
||||
"createdAt": {
|
||||
"type": "datetime",
|
||||
"readOnly": true,
|
||||
"hasSeconds": true
|
||||
},
|
||||
"isDenied": {
|
||||
"type": "bool",
|
||||
"readOnly": true
|
||||
},
|
||||
"denialReason": {
|
||||
"type": "enum",
|
||||
"options": [
|
||||
"",
|
||||
"CREDENTIALS",
|
||||
"INACTIVE_USER",
|
||||
"IS_PORTAL_USER",
|
||||
"IS_NOT_PORTAL_USER",
|
||||
"USER_IS_NOT_IN_PORTAL",
|
||||
"IS_SYSTEM_USER",
|
||||
"FORBIDDEN"
|
||||
],
|
||||
"readOnly": true
|
||||
},
|
||||
"requestTime": {
|
||||
"type": "float",
|
||||
"readOnly": true
|
||||
},
|
||||
"requestUrl": {
|
||||
"type": "varchar",
|
||||
"readOnly": true
|
||||
},
|
||||
"requestMethod": {
|
||||
"type": "varchar",
|
||||
"readOnly": true,
|
||||
"maxLength": 15
|
||||
},
|
||||
"authTokenIsActive": {
|
||||
"type": "foreign",
|
||||
"link": "authToken",
|
||||
"field": "isActive",
|
||||
"readOnly": true,
|
||||
"view": "views/fields/foreign-bool"
|
||||
},
|
||||
"authenticationMethod": {
|
||||
"type": "enum",
|
||||
"view": "views/admin/auth-log-record/fields/authentication-method",
|
||||
"translation": "Settings.options.authenticationMethod"
|
||||
}
|
||||
},
|
||||
"links": {
|
||||
"user": {
|
||||
"type": "belongsTo",
|
||||
"entity": "User"
|
||||
},
|
||||
"portal": {
|
||||
"type": "belongsTo",
|
||||
"entity": "Portal"
|
||||
},
|
||||
"authToken": {
|
||||
"type": "belongsTo",
|
||||
"entity": "AuthToken",
|
||||
"foreignName": "id"
|
||||
},
|
||||
"actionHistoryRecords": {
|
||||
"type": "hasMany",
|
||||
"entity": "ActionHistoryRecord",
|
||||
"foreign": "authLogRecord"
|
||||
}
|
||||
},
|
||||
"collection": {
|
||||
"orderBy": "requestTime",
|
||||
"order": "desc",
|
||||
"textFilterFields": ["ipAddress", "username"]
|
||||
},
|
||||
"indexes": {
|
||||
"ipAddress": {
|
||||
"columns": ["ipAddress"]
|
||||
},
|
||||
"ipAddressRequestTime": {
|
||||
"columns": ["ipAddress", "requestTime"]
|
||||
},
|
||||
"requestTime": {
|
||||
"columns": ["requestTime"]
|
||||
}
|
||||
},
|
||||
"hooksDisabled": true
|
||||
}
|
||||
@@ -0,0 +1,79 @@
|
||||
{
|
||||
"fields": {
|
||||
"token": {
|
||||
"type": "varchar",
|
||||
"maxLength": 36,
|
||||
"index": true,
|
||||
"readOnly": true
|
||||
},
|
||||
"hash": {
|
||||
"type": "varchar",
|
||||
"maxLength": 150,
|
||||
"index": true,
|
||||
"readOnly": true
|
||||
},
|
||||
"secret": {
|
||||
"type": "varchar",
|
||||
"maxLength": 36,
|
||||
"readOnly": true
|
||||
},
|
||||
"user": {
|
||||
"type": "link",
|
||||
"readOnly": true,
|
||||
"view": "views/fields/user"
|
||||
},
|
||||
"portal": {
|
||||
"type": "link",
|
||||
"readOnly": true
|
||||
},
|
||||
"ipAddress": {
|
||||
"type": "varchar",
|
||||
"maxLength": 45,
|
||||
"readOnly": true
|
||||
},
|
||||
"isActive": {
|
||||
"type": "bool",
|
||||
"default": true
|
||||
},
|
||||
"lastAccess": {
|
||||
"type": "datetime",
|
||||
"readOnly": true,
|
||||
"hasSeconds": true
|
||||
},
|
||||
"createdAt": {
|
||||
"type": "datetime",
|
||||
"readOnly": true,
|
||||
"hasSeconds": true
|
||||
},
|
||||
"modifiedAt": {
|
||||
"type": "datetime",
|
||||
"readOnly": true
|
||||
}
|
||||
},
|
||||
"links": {
|
||||
"user": {
|
||||
"type": "belongsTo",
|
||||
"entity": "User"
|
||||
},
|
||||
"portal": {
|
||||
"type": "belongsTo",
|
||||
"entity": "Portal"
|
||||
},
|
||||
"actionHistoryRecords": {
|
||||
"type": "hasMany",
|
||||
"entity": "ActionHistoryRecord",
|
||||
"foreign": "authToken"
|
||||
}
|
||||
},
|
||||
"collection": {
|
||||
"orderBy": "lastAccess",
|
||||
"order": "desc",
|
||||
"textFilterFields": ["ipAddress", "userName"]
|
||||
},
|
||||
"indexes": {
|
||||
"token": {
|
||||
"columns": ["token", "deleted"]
|
||||
}
|
||||
},
|
||||
"hooksDisabled": true
|
||||
}
|
||||
@@ -0,0 +1,89 @@
|
||||
{
|
||||
"fields": {
|
||||
"name": {
|
||||
"type": "varchar",
|
||||
"required": true
|
||||
},
|
||||
"method": {
|
||||
"type": "enum",
|
||||
"view": "views/authentication-provider/fields/method",
|
||||
"translation": "Settings.options.authenticationMethod",
|
||||
"required": true,
|
||||
"validatorClassNameMap": {
|
||||
"valid": "Espo\\Classes\\FieldValidators\\AuthenticationProvider\\MethodValid"
|
||||
}
|
||||
},
|
||||
"oidcAuthorizationRedirectUri": {
|
||||
"type": "varchar",
|
||||
"notStorable": true,
|
||||
"readOnly": true
|
||||
},
|
||||
"oidcClientId": {
|
||||
"type": "varchar"
|
||||
},
|
||||
"oidcClientSecret": {
|
||||
"type": "password"
|
||||
},
|
||||
"oidcAuthorizationEndpoint": {
|
||||
"type": "url",
|
||||
"strip": false
|
||||
},
|
||||
"oidcUserInfoEndpoint": {
|
||||
"type": "url",
|
||||
"strip": false
|
||||
},
|
||||
"oidcTokenEndpoint": {
|
||||
"type": "url",
|
||||
"strip": false
|
||||
},
|
||||
"oidcJwksEndpoint": {
|
||||
"type": "url",
|
||||
"strip": false
|
||||
},
|
||||
"oidcJwtSignatureAlgorithmList": {
|
||||
"type": "multiEnum",
|
||||
"optionsPath": "entityDefs.Settings.fields.oidcJwtSignatureAlgorithmList.options",
|
||||
"default": [
|
||||
"RS256"
|
||||
]
|
||||
},
|
||||
"oidcScopes": {
|
||||
"type": "multiEnum",
|
||||
"allowCustomOptions": true,
|
||||
"optionsPath": "entityDefs.Settings.fields.oidcScopes.options",
|
||||
"default": [
|
||||
"profile",
|
||||
"email",
|
||||
"phone"
|
||||
]
|
||||
},
|
||||
"oidcCreateUser": {
|
||||
"type": "bool",
|
||||
"tooltip": true
|
||||
},
|
||||
"oidcUsernameClaim": {
|
||||
"type": "varchar",
|
||||
"optionsPath": "entityDefs.Settings.fields.oidcUsernameClaim.options",
|
||||
"tooltip": true,
|
||||
"default": "sub"
|
||||
},
|
||||
"oidcSync": {
|
||||
"type": "bool",
|
||||
"tooltip": true
|
||||
},
|
||||
"oidcLogoutUrl": {
|
||||
"type": "varchar",
|
||||
"tooltip": true
|
||||
},
|
||||
"oidcAuthorizationPrompt": {
|
||||
"type": "enum",
|
||||
"options": [
|
||||
"none",
|
||||
"consent",
|
||||
"login",
|
||||
"select_account"
|
||||
],
|
||||
"maxLength": 14
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"fields": {
|
||||
"id": {
|
||||
"type": "id",
|
||||
"dbType": "integer",
|
||||
"autoincrement": true
|
||||
},
|
||||
"entityType": {
|
||||
"type": "varchar",
|
||||
"maxLength": 100,
|
||||
"index": true
|
||||
},
|
||||
"user": {
|
||||
"type": "link"
|
||||
}
|
||||
}
|
||||
}
|
||||
13
application/Espo/Resources/metadata/entityDefs/Currency.json
Normal file
13
application/Espo/Resources/metadata/entityDefs/Currency.json
Normal file
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"fields": {
|
||||
"id": {
|
||||
"type": "id",
|
||||
"maxLength": 3,
|
||||
"dbType": "string"
|
||||
},
|
||||
"rate": {
|
||||
"type": "float"
|
||||
}
|
||||
},
|
||||
"noDeletedAttribute": true
|
||||
}
|
||||
@@ -0,0 +1,49 @@
|
||||
{
|
||||
"fields": {
|
||||
"name": {
|
||||
"type": "varchar",
|
||||
"maxLength": 100,
|
||||
"required": true
|
||||
},
|
||||
"layout": {
|
||||
"type": "jsonArray",
|
||||
"view": "views/settings/fields/dashboard-layout",
|
||||
"inlineEditDisabled": true,
|
||||
"required": true
|
||||
},
|
||||
"dashletsOptions": {
|
||||
"type": "jsonObject",
|
||||
"disabled": true
|
||||
},
|
||||
"createdAt": {
|
||||
"type": "datetime",
|
||||
"readOnly": true
|
||||
},
|
||||
"modifiedAt": {
|
||||
"type": "datetime",
|
||||
"readOnly": true
|
||||
},
|
||||
"createdBy": {
|
||||
"type": "link",
|
||||
"readOnly": true
|
||||
},
|
||||
"modifiedBy": {
|
||||
"type": "link",
|
||||
"readOnly": true
|
||||
}
|
||||
},
|
||||
"links": {
|
||||
"createdBy": {
|
||||
"type": "belongsTo",
|
||||
"entity": "User"
|
||||
},
|
||||
"modifiedBy": {
|
||||
"type": "belongsTo",
|
||||
"entity": "User"
|
||||
}
|
||||
},
|
||||
"collection": {
|
||||
"orderBy": "name",
|
||||
"order": "asc"
|
||||
}
|
||||
}
|
||||
834
application/Espo/Resources/metadata/entityDefs/Email.json
Normal file
834
application/Espo/Resources/metadata/entityDefs/Email.json
Normal file
@@ -0,0 +1,834 @@
|
||||
{
|
||||
"fields": {
|
||||
"name": {
|
||||
"type": "varchar",
|
||||
"required": true,
|
||||
"layoutDefaultSidePanelDisabled": true,
|
||||
"massUpdateDisabled": true
|
||||
},
|
||||
"subject": {
|
||||
"type": "varchar",
|
||||
"required": true,
|
||||
"notStorable": true,
|
||||
"orderDisabled": true,
|
||||
"view": "views/email/fields/subject",
|
||||
"layoutAvailabilityList": [
|
||||
"list"
|
||||
],
|
||||
"directAccessDisabled": true,
|
||||
"directUpdateDisabled": true
|
||||
},
|
||||
"fromName": {
|
||||
"type": "varchar",
|
||||
"readOnly": true,
|
||||
"notStorable": true,
|
||||
"textFilterDisabled": true,
|
||||
"layoutFiltersDisabled": true,
|
||||
"customizationDisabled": true,
|
||||
"layoutDefaultSidePanelDisabled": true,
|
||||
"massUpdateDisabled": true
|
||||
},
|
||||
"fromAddress": {
|
||||
"type": "varchar",
|
||||
"readOnly": true,
|
||||
"notStorable": true,
|
||||
"orderDisabled": true,
|
||||
"textFilterDisabled": true,
|
||||
"layoutFiltersDisabled": true,
|
||||
"customizationDisabled": true,
|
||||
"layoutDefaultSidePanelDisabled": true,
|
||||
"massUpdateDisabled": true
|
||||
},
|
||||
"fromString": {
|
||||
"type": "varchar",
|
||||
"customizationDisabled": true,
|
||||
"layoutDefaultSidePanelDisabled": true,
|
||||
"massUpdateDisabled": true,
|
||||
"textFilterDisabled": true
|
||||
},
|
||||
"replyToString": {
|
||||
"type": "varchar",
|
||||
"customizationDisabled": true,
|
||||
"layoutDefaultSidePanelDisabled": true,
|
||||
"massUpdateDisabled": true,
|
||||
"textFilterDisabled": true
|
||||
},
|
||||
"replyToName": {
|
||||
"type": "varchar",
|
||||
"readOnly": true,
|
||||
"notStorable": true,
|
||||
"orderDisabled": true,
|
||||
"textFilterDisabled": true,
|
||||
"layoutFiltersDisabled": true,
|
||||
"customizationDisabled": true,
|
||||
"layoutDefaultSidePanelDisabled": true,
|
||||
"massUpdateDisabled": true
|
||||
},
|
||||
"replyToAddress": {
|
||||
"type": "varchar",
|
||||
"readOnly": true,
|
||||
"notStorable": true,
|
||||
"orderDisabled": true,
|
||||
"textFilterDisabled": true,
|
||||
"layoutFiltersDisabled": true,
|
||||
"customizationDisabled": true,
|
||||
"layoutDefaultSidePanelDisabled": true,
|
||||
"massUpdateDisabled": true
|
||||
},
|
||||
"addressNameMap": {
|
||||
"type": "jsonObject",
|
||||
"utility": true,
|
||||
"readOnly": true,
|
||||
"customizationDisabled": true
|
||||
},
|
||||
"from": {
|
||||
"type": "varchar",
|
||||
"notStorable": true,
|
||||
"orderDisabled": true,
|
||||
"required": true,
|
||||
"view": "views/email/fields/from-address-varchar",
|
||||
"textFilterDisabled": true,
|
||||
"customizationDisabled": true,
|
||||
"layoutAvailabilityList": [
|
||||
"detail",
|
||||
"filters"
|
||||
],
|
||||
"massUpdateDisabled": true,
|
||||
"loaderClassName": "Espo\\Classes\\FieldProcessing\\Email\\AddressLoader"
|
||||
},
|
||||
"to": {
|
||||
"type": "varchar",
|
||||
"notStorable": true,
|
||||
"orderDisabled": true,
|
||||
"required": true,
|
||||
"view": "views/email/fields/email-address-varchar",
|
||||
"validatorClassName": "Espo\\Classes\\FieldValidators\\Email\\EmailAddresses",
|
||||
"validatorClassNameList": [
|
||||
"Espo\\Classes\\FieldValidators\\Email\\Addresses\\Valid",
|
||||
"Espo\\Classes\\FieldValidators\\Email\\Addresses\\MaxCount"
|
||||
],
|
||||
"textFilterDisabled": true,
|
||||
"customizationDisabled": true,
|
||||
"layoutAvailabilityList": [
|
||||
"detail",
|
||||
"filters"
|
||||
],
|
||||
"massUpdateDisabled": true,
|
||||
"loaderClassName": "Espo\\Classes\\FieldProcessing\\Email\\AddressLoader"
|
||||
},
|
||||
"cc": {
|
||||
"type": "varchar",
|
||||
"notStorable": true,
|
||||
"orderDisabled": true,
|
||||
"view": "views/email/fields/email-address-varchar",
|
||||
"validatorClassNameList": [
|
||||
"Espo\\Classes\\FieldValidators\\Email\\Addresses\\Valid",
|
||||
"Espo\\Classes\\FieldValidators\\Email\\Addresses\\MaxCount"
|
||||
],
|
||||
"customizationDisabled": true,
|
||||
"textFilterDisabled": true,
|
||||
"layoutAvailabilityList": [
|
||||
"detail",
|
||||
"filters"
|
||||
],
|
||||
"massUpdateDisabled": true,
|
||||
"loaderClassName": "Espo\\Classes\\FieldProcessing\\Email\\AddressLoader"
|
||||
},
|
||||
"bcc": {
|
||||
"type": "varchar",
|
||||
"notStorable": true,
|
||||
"orderDisabled": true,
|
||||
"view": "views/email/fields/email-address-varchar",
|
||||
"validatorClassNameList": [
|
||||
"Espo\\Classes\\FieldValidators\\Email\\Addresses\\Valid",
|
||||
"Espo\\Classes\\FieldValidators\\Email\\Addresses\\MaxCount"
|
||||
],
|
||||
"customizationDisabled": true,
|
||||
"textFilterDisabled": true,
|
||||
"layoutAvailabilityList": [
|
||||
"detail"
|
||||
],
|
||||
"massUpdateDisabled": true,
|
||||
"loaderClassName": "Espo\\Classes\\FieldProcessing\\Email\\AddressLoader"
|
||||
},
|
||||
"replyTo": {
|
||||
"type": "varchar",
|
||||
"notStorable": true,
|
||||
"orderDisabled": true,
|
||||
"view": "views/email/fields/email-address-varchar",
|
||||
"textFilterDisabled": true,
|
||||
"customizationDisabled": true,
|
||||
"layoutAvailabilityList": [
|
||||
"detail"
|
||||
],
|
||||
"massUpdateDisabled": true,
|
||||
"loaderClassName": "Espo\\Classes\\FieldProcessing\\Email\\AddressLoader"
|
||||
},
|
||||
"personStringData": {
|
||||
"type": "varchar",
|
||||
"notStorable": true,
|
||||
"orderDisabled": true,
|
||||
"view": "views/email/fields/person-string-data",
|
||||
"layoutAvailabilityList": [
|
||||
"list"
|
||||
],
|
||||
"directAccessDisabled": true,
|
||||
"directUpdateDisabled": true,
|
||||
"customizationDisabled": true,
|
||||
"massUpdateDisabled": true
|
||||
},
|
||||
"isRead": {
|
||||
"type": "bool",
|
||||
"notStorable": true,
|
||||
"default": true,
|
||||
"readOnly": true,
|
||||
"customizationDisabled": true
|
||||
},
|
||||
"isNotRead": {
|
||||
"type": "bool",
|
||||
"notStorable": true,
|
||||
"layoutListDisabled": true,
|
||||
"layoutDetailDisabled": true,
|
||||
"layoutMassUpdateDisabled": true,
|
||||
"readOnly": true,
|
||||
"customizationDisabled": true
|
||||
},
|
||||
"isReplied": {
|
||||
"type": "bool",
|
||||
"readOnly": true,
|
||||
"customizationDisabled": true
|
||||
},
|
||||
"isNotReplied": {
|
||||
"type": "bool",
|
||||
"notStorable": true,
|
||||
"layoutListDisabled": true,
|
||||
"layoutDetailDisabled": true,
|
||||
"layoutMassUpdateDisabled": true,
|
||||
"readOnly": true,
|
||||
"customizationDisabled": true
|
||||
},
|
||||
"isImportant": {
|
||||
"type": "bool",
|
||||
"notStorable": true,
|
||||
"default": false,
|
||||
"customizationDisabled": true,
|
||||
"readOnly": true
|
||||
},
|
||||
"inTrash": {
|
||||
"type": "bool",
|
||||
"notStorable": true,
|
||||
"default": false,
|
||||
"customizationDisabled": true,
|
||||
"readOnly": true
|
||||
},
|
||||
"inArchive": {
|
||||
"type": "bool",
|
||||
"notStorable": true,
|
||||
"default": false,
|
||||
"customizationDisabled": true,
|
||||
"readOnly": true
|
||||
},
|
||||
"folderId": {
|
||||
"type": "varchar",
|
||||
"notStorable": true,
|
||||
"default": null,
|
||||
"textFilterDisabled": true,
|
||||
"customizationDisabled": true,
|
||||
"layoutAvailabilityList": [],
|
||||
"readOnly": true
|
||||
},
|
||||
"isUsers": {
|
||||
"type": "bool",
|
||||
"notStorable": true,
|
||||
"default": false,
|
||||
"customizationDisabled": true,
|
||||
"readOnly": true
|
||||
},
|
||||
"isUsersSent": {
|
||||
"type": "bool",
|
||||
"notStorable": true,
|
||||
"readOnly": true,
|
||||
"utility": true
|
||||
},
|
||||
"folder": {
|
||||
"type": "link",
|
||||
"notStorable": true,
|
||||
"orderDisabled": true,
|
||||
"readOnly": true,
|
||||
"entity": "EmailFolder",
|
||||
"customizationDisabled": true,
|
||||
"layoutAvailabilityList": []
|
||||
},
|
||||
"folderString": {
|
||||
"type": "link",
|
||||
"notStorable": true,
|
||||
"orderDisabled": true,
|
||||
"readOnly": true,
|
||||
"entity": "EmailFolder",
|
||||
"customizationDisabled": true,
|
||||
"view": "views/email/fields/folder-string",
|
||||
"layoutAvailabilityList": [
|
||||
"defaultSidePanel"
|
||||
]
|
||||
},
|
||||
"nameHash": {
|
||||
"type": "jsonObject",
|
||||
"notStorable": true,
|
||||
"orderDisabled": true,
|
||||
"readOnly": true,
|
||||
"utility": true,
|
||||
"customizationDisabled": true
|
||||
},
|
||||
"typeHash": {
|
||||
"type": "jsonObject",
|
||||
"notStorable": true,
|
||||
"readOnly": true,
|
||||
"utility": true,
|
||||
"customizationDisabled": true
|
||||
},
|
||||
"idHash": {
|
||||
"type": "jsonObject",
|
||||
"notStorable": true,
|
||||
"orderDisabled": true,
|
||||
"readOnly": true,
|
||||
"utility": true,
|
||||
"customizationDisabled": true
|
||||
},
|
||||
"messageId": {
|
||||
"type": "varchar",
|
||||
"maxLength": 255,
|
||||
"readOnly": true,
|
||||
"index": true,
|
||||
"textFilterDisabled": true,
|
||||
"customizationDisabled": true
|
||||
},
|
||||
"messageIdInternal": {
|
||||
"type": "varchar",
|
||||
"maxLength": 300,
|
||||
"readOnly": true,
|
||||
"textFilterDisabled": true,
|
||||
"customizationDisabled": true,
|
||||
"layoutAvailabilityList": []
|
||||
},
|
||||
"emailAddress": {
|
||||
"type": "varchar",
|
||||
"notStorable": true,
|
||||
"view": "views/email/fields/email-address",
|
||||
"customizationDisabled": true,
|
||||
"layoutDefaultSidePanelDisabled": true,
|
||||
"massUpdateDisabled": true
|
||||
},
|
||||
"fromEmailAddress": {
|
||||
"type": "link",
|
||||
"view": "views/email/fields/from-email-address",
|
||||
"textFilterDisabled": true,
|
||||
"customizationDisabled": true,
|
||||
"layoutAvailabilityList": [],
|
||||
"massUpdateDisabled": true,
|
||||
"readOnly": true
|
||||
},
|
||||
"toEmailAddresses": {
|
||||
"type": "linkMultiple",
|
||||
"customizationDisabled": true,
|
||||
"layoutAvailabilityList": [],
|
||||
"massUpdateDisabled": true,
|
||||
"readOnly": true
|
||||
},
|
||||
"ccEmailAddresses": {
|
||||
"type": "linkMultiple",
|
||||
"customizationDisabled": true,
|
||||
"layoutAvailabilityList": [],
|
||||
"massUpdateDisabled": true,
|
||||
"readOnly": true
|
||||
},
|
||||
"bccEmailAddresses": {
|
||||
"type": "linkMultiple",
|
||||
"customizationDisabled": true,
|
||||
"layoutAvailabilityList": [],
|
||||
"massUpdateDisabled": true,
|
||||
"readOnly": true
|
||||
},
|
||||
"replyToEmailAddresses": {
|
||||
"type": "linkMultiple",
|
||||
"customizationDisabled": true,
|
||||
"layoutAvailabilityList": [],
|
||||
"massUpdateDisabled": true,
|
||||
"readOnly": true
|
||||
},
|
||||
"bodyPlain": {
|
||||
"type": "text",
|
||||
"seeMoreDisabled": true,
|
||||
"customizationDisabled": true,
|
||||
"layoutDefaultSidePanelDisabled": true,
|
||||
"layoutMassUpdateDisabled": true,
|
||||
"massUpdateDisabled": true,
|
||||
"readOnly": true
|
||||
},
|
||||
"body": {
|
||||
"type": "wysiwyg",
|
||||
"view": "views/email/fields/body",
|
||||
"attachmentField": "attachments",
|
||||
"useIframe": true,
|
||||
"customizationDisabled": true,
|
||||
"layoutDefaultSidePanelDisabled": true,
|
||||
"layoutMassUpdateDisabled": true,
|
||||
"massUpdateDisabled": true
|
||||
},
|
||||
"isHtml": {
|
||||
"type": "bool",
|
||||
"default": true,
|
||||
"fieldManagerParamList": [
|
||||
"default",
|
||||
"tooltipText"
|
||||
],
|
||||
"inlineEditDisabled": true,
|
||||
"layoutDefaultSidePanelDisabled": true,
|
||||
"massUpdateDisabled": true
|
||||
},
|
||||
"status": {
|
||||
"type": "enum",
|
||||
"options": ["Draft", "Sending", "Sent", "Archived", "Failed"],
|
||||
"default": "Archived",
|
||||
"clientReadOnly": true,
|
||||
"style": {
|
||||
"Draft": "warning",
|
||||
"Failed": "danger",
|
||||
"Sending": "warning"
|
||||
},
|
||||
"customizationDisabled": true,
|
||||
"massUpdateDisabled": true
|
||||
},
|
||||
"attachments": {
|
||||
"type": "attachmentMultiple",
|
||||
"sourceList": ["Document"],
|
||||
"layoutDefaultSidePanelDisabled": true,
|
||||
"massUpdateDisabled": true
|
||||
},
|
||||
"hasAttachment": {
|
||||
"type": "bool",
|
||||
"readOnly": true,
|
||||
"customizationDisabled": true,
|
||||
"layoutDefaultSidePanelDisabled": true,
|
||||
"layoutDetailDisabled": true
|
||||
},
|
||||
"parent": {
|
||||
"type": "linkParent",
|
||||
"fieldManagerParamList": [
|
||||
"required",
|
||||
"entityList",
|
||||
"autocompleteOnEmpty",
|
||||
"audited",
|
||||
"tooltipText"
|
||||
]
|
||||
},
|
||||
"dateSent": {
|
||||
"type": "datetime",
|
||||
"customizationDisabled": true,
|
||||
"layoutDefaultSidePanelDisabled": true,
|
||||
"massUpdateDisabled": true,
|
||||
"view": "views/email/fields/date-sent"
|
||||
},
|
||||
"deliveryDate": {
|
||||
"type": "datetime",
|
||||
"readOnly": true,
|
||||
"customizationDisabled": true
|
||||
},
|
||||
"sendAt": {
|
||||
"type": "datetime",
|
||||
"customizationDisabled": true,
|
||||
"layoutAvailabilityList": [
|
||||
"filters",
|
||||
"list"
|
||||
],
|
||||
"validatorClassNameList": [
|
||||
"Espo\\Classes\\FieldValidators\\Email\\SendAt\\Future"
|
||||
]
|
||||
},
|
||||
"isAutoReply": {
|
||||
"type": "bool",
|
||||
"readOnly": true,
|
||||
"fieldManagerParamList": [],
|
||||
"layoutDefaultSidePanelDisabled": true,
|
||||
"layoutDetailDisabled": true
|
||||
},
|
||||
"createdAt": {
|
||||
"type": "datetime",
|
||||
"readOnly": true,
|
||||
"fieldManagerParamList": [
|
||||
"useNumericFormat"
|
||||
]
|
||||
},
|
||||
"modifiedAt": {
|
||||
"type": "datetime",
|
||||
"readOnly": true,
|
||||
"fieldManagerParamList": [
|
||||
"useNumericFormat"
|
||||
]
|
||||
},
|
||||
"createdBy": {
|
||||
"type": "link",
|
||||
"readOnly": true,
|
||||
"view": "views/fields/user",
|
||||
"customizationDisabled": true
|
||||
},
|
||||
"sentBy": {
|
||||
"type": "link",
|
||||
"readOnly": true,
|
||||
"noLoad": true,
|
||||
"customizationDisabled": true
|
||||
},
|
||||
"modifiedBy": {
|
||||
"type": "link",
|
||||
"readOnly": true,
|
||||
"view": "views/fields/user",
|
||||
"customizationDisabled": true
|
||||
},
|
||||
"assignedUser": {
|
||||
"type": "link",
|
||||
"required": false,
|
||||
"view": "views/fields/assigned-user",
|
||||
"massUpdateDisabled": true
|
||||
},
|
||||
"replied": {
|
||||
"type": "link",
|
||||
"noJoin": true,
|
||||
"view": "views/email/fields/replied",
|
||||
"customizationDisabled": true,
|
||||
"massUpdateDisabled": true
|
||||
},
|
||||
"replies": {
|
||||
"type": "linkMultiple",
|
||||
"readOnly": true,
|
||||
"orderBy": "dateSent",
|
||||
"view": "views/email/fields/replies",
|
||||
"customizationDisabled": true,
|
||||
"columns": {
|
||||
"status": "status"
|
||||
},
|
||||
"massUpdateDisabled": true
|
||||
},
|
||||
"isSystem": {
|
||||
"type": "bool",
|
||||
"default": false,
|
||||
"readOnly": true,
|
||||
"customizationDisabled": true,
|
||||
"massUpdateDisabled": true
|
||||
},
|
||||
"isJustSent": {
|
||||
"type": "bool",
|
||||
"default": false,
|
||||
"readOnly": true,
|
||||
"utility": true,
|
||||
"notStorable": true,
|
||||
"customizationDisabled": true,
|
||||
"massUpdateDisabled": true
|
||||
},
|
||||
"isBeingImported": {
|
||||
"type": "bool",
|
||||
"readOnly": true,
|
||||
"utility": true,
|
||||
"notStorable": true,
|
||||
"customizationDisabled": true,
|
||||
"massUpdateDisabled": true
|
||||
},
|
||||
"skipNotificationMap": {
|
||||
"type": "jsonObject",
|
||||
"utility": true,
|
||||
"readOnly": true,
|
||||
"notStorable": true
|
||||
},
|
||||
"teams": {
|
||||
"type": "linkMultiple",
|
||||
"view": "views/fields/teams"
|
||||
},
|
||||
"users": {
|
||||
"type": "linkMultiple",
|
||||
"noLoad": true,
|
||||
"layoutDetailDisabled": true,
|
||||
"layoutListDisabled": true,
|
||||
"readOnly": true,
|
||||
"columns": {
|
||||
"inTrash": "inTrash",
|
||||
"folderId": "folderId",
|
||||
"inArchive": "inArchive",
|
||||
"isRead": "isRead"
|
||||
},
|
||||
"customizationDisabled": true,
|
||||
"additionalAttributeList": ["columns"]
|
||||
},
|
||||
"assignedUsers": {
|
||||
"type": "linkMultiple",
|
||||
"layoutListDisabled": true,
|
||||
"readOnly": true,
|
||||
"customizationDisabled": true,
|
||||
"view": "views/fields/assigned-users"
|
||||
},
|
||||
"inboundEmails": {
|
||||
"type": "linkMultiple",
|
||||
"layoutDetailDisabled": true,
|
||||
"layoutListDisabled": true,
|
||||
"noLoad": true,
|
||||
"readOnly": true,
|
||||
"fieldManagerParamList": [
|
||||
"default"
|
||||
]
|
||||
},
|
||||
"emailAccounts": {
|
||||
"type": "linkMultiple",
|
||||
"layoutDetailDisabled": true,
|
||||
"layoutListDisabled": true,
|
||||
"noLoad": true,
|
||||
"readOnly": true,
|
||||
"fieldManagerParamList": [
|
||||
"default"
|
||||
]
|
||||
},
|
||||
"icsContents": {
|
||||
"type": "text",
|
||||
"readOnly": true,
|
||||
"layoutDetailDisabled": true,
|
||||
"layoutListDisabled": true,
|
||||
"layoutMassUpdateDisabled": true,
|
||||
"customizationDisabled": true,
|
||||
"layoutAvailabilityList": []
|
||||
},
|
||||
"icsEventData": {
|
||||
"type": "jsonObject",
|
||||
"readOnly": true,
|
||||
"directAccessDisabled": true,
|
||||
"notStorable": true,
|
||||
"customizationDisabled": true,
|
||||
"layoutAvailabilityList": []
|
||||
},
|
||||
"icsEventUid": {
|
||||
"type": "varchar",
|
||||
"maxLength": 255,
|
||||
"index": true,
|
||||
"readOnly": true,
|
||||
"customizationDisabled": true,
|
||||
"layoutAvailabilityList": []
|
||||
},
|
||||
"icsEventDateStart": {
|
||||
"type": "datetimeOptional",
|
||||
"readOnly": true,
|
||||
"notStorable": true,
|
||||
"customizationDisabled": true,
|
||||
"layoutAvailabilityList": []
|
||||
},
|
||||
"createEvent": {
|
||||
"type": "base",
|
||||
"utility": true,
|
||||
"notStorable": true,
|
||||
"view": "views/email/fields/create-event",
|
||||
"customizationDisabled": true,
|
||||
"massUpdateDisabled": true,
|
||||
"layoutAvailabilityList": []
|
||||
},
|
||||
"createdEvent": {
|
||||
"type": "linkParent",
|
||||
"readOnly": true,
|
||||
"view": "views/email/fields/created-event",
|
||||
"fieldManagerParamList": [
|
||||
"tooltipText"
|
||||
],
|
||||
"layoutAvailabilityList": []
|
||||
},
|
||||
"groupFolder": {
|
||||
"type": "link",
|
||||
"massUpdateDisabled": true,
|
||||
"readOnly": true,
|
||||
"fieldManagerParamList": [
|
||||
"audited"
|
||||
],
|
||||
"audited": true
|
||||
},
|
||||
"groupStatusFolder": {
|
||||
"type": "enum",
|
||||
"options": [
|
||||
"",
|
||||
"Archive",
|
||||
"Trash"
|
||||
],
|
||||
"maxLength": 7,
|
||||
"readOnly": true,
|
||||
"customizationDisabled": true,
|
||||
"index": true
|
||||
}
|
||||
},
|
||||
"links": {
|
||||
"createdBy": {
|
||||
"type": "belongsTo",
|
||||
"entity": "User"
|
||||
},
|
||||
"modifiedBy": {
|
||||
"type": "belongsTo",
|
||||
"entity": "User"
|
||||
},
|
||||
"assignedUser": {
|
||||
"type": "belongsTo",
|
||||
"entity": "User"
|
||||
},
|
||||
"teams": {
|
||||
"type": "hasMany",
|
||||
"entity": "Team",
|
||||
"relationName": "entityTeam"
|
||||
},
|
||||
"assignedUsers": {
|
||||
"type": "hasMany",
|
||||
"entity": "User",
|
||||
"relationName": "entityUser"
|
||||
},
|
||||
"users": {
|
||||
"type": "hasMany",
|
||||
"entity": "User",
|
||||
"foreign": "emails",
|
||||
"additionalColumns": {
|
||||
"isRead": {
|
||||
"type": "bool",
|
||||
"default": false
|
||||
},
|
||||
"isImportant": {
|
||||
"type": "bool",
|
||||
"default": false
|
||||
},
|
||||
"inTrash": {
|
||||
"type": "bool",
|
||||
"default": false
|
||||
},
|
||||
"inArchive": {
|
||||
"type": "bool",
|
||||
"default": false
|
||||
},
|
||||
"folderId": {
|
||||
"type": "foreignId",
|
||||
"default": null
|
||||
}
|
||||
}
|
||||
},
|
||||
"sentBy": {
|
||||
"type": "belongsTo",
|
||||
"entity": "User"
|
||||
},
|
||||
"attachments": {
|
||||
"type": "hasChildren",
|
||||
"entity": "Attachment",
|
||||
"foreign": "parent",
|
||||
"relationName": "attachments"
|
||||
},
|
||||
"parent": {
|
||||
"type": "belongsToParent",
|
||||
"entityList": [],
|
||||
"foreign": "emails"
|
||||
},
|
||||
"replied": {
|
||||
"type": "belongsTo",
|
||||
"entity": "Email",
|
||||
"foreign": "replies"
|
||||
},
|
||||
"replies": {
|
||||
"type": "hasMany",
|
||||
"entity": "Email",
|
||||
"foreign": "replied"
|
||||
},
|
||||
"fromEmailAddress": {
|
||||
"type": "belongsTo",
|
||||
"entity": "EmailAddress"
|
||||
},
|
||||
"toEmailAddresses": {
|
||||
"type": "hasMany",
|
||||
"entity": "EmailAddress",
|
||||
"relationName": "emailEmailAddress",
|
||||
"conditions": {
|
||||
"addressType": "to"
|
||||
},
|
||||
"additionalColumns": {
|
||||
"addressType": {
|
||||
"type": "varchar",
|
||||
"len": "4"
|
||||
}
|
||||
}
|
||||
},
|
||||
"ccEmailAddresses": {
|
||||
"type": "hasMany",
|
||||
"entity": "EmailAddress",
|
||||
"relationName": "emailEmailAddress",
|
||||
"conditions": {
|
||||
"addressType": "cc"
|
||||
},
|
||||
"additionalColumns": {
|
||||
"addressType": {
|
||||
"type": "varchar",
|
||||
"len": "4"
|
||||
}
|
||||
},
|
||||
"layoutDefaultSidePanelDisabled": true
|
||||
},
|
||||
"bccEmailAddresses": {
|
||||
"type": "hasMany",
|
||||
"entity": "EmailAddress",
|
||||
"relationName": "emailEmailAddress",
|
||||
"conditions": {
|
||||
"addressType": "bcc"
|
||||
},
|
||||
"additionalColumns": {
|
||||
"addressType": {
|
||||
"type": "varchar",
|
||||
"len": "4"
|
||||
}
|
||||
},
|
||||
"layoutDefaultSidePanelDisabled": true
|
||||
},
|
||||
"replyToEmailAddresses": {
|
||||
"type": "hasMany",
|
||||
"entity": "EmailAddress",
|
||||
"relationName": "emailEmailAddress",
|
||||
"conditions": {
|
||||
"addressType": "rto"
|
||||
},
|
||||
"additionalColumns": {
|
||||
"addressType": {
|
||||
"type": "varchar",
|
||||
"len": "4"
|
||||
}
|
||||
}
|
||||
},
|
||||
"inboundEmails": {
|
||||
"type": "hasMany",
|
||||
"entity": "InboundEmail",
|
||||
"foreign": "emails"
|
||||
},
|
||||
"emailAccounts": {
|
||||
"type": "hasMany",
|
||||
"entity": "EmailAccount",
|
||||
"foreign": "emails"
|
||||
},
|
||||
"createdEvent": {
|
||||
"type": "belongsToParent",
|
||||
"entityList": ["Meeting"]
|
||||
},
|
||||
"groupFolder": {
|
||||
"type": "belongsTo",
|
||||
"entity": "GroupEmailFolder",
|
||||
"foreign": "emails"
|
||||
}
|
||||
},
|
||||
"collection": {
|
||||
"orderBy": "dateSent",
|
||||
"order": "desc",
|
||||
"textFilterFields": ["name", "bodyPlain", "body"],
|
||||
"countDisabled": true,
|
||||
"fullTextSearch": true,
|
||||
"fullTextSearchOrderType": "original"
|
||||
},
|
||||
"indexes": {
|
||||
"createdById": {
|
||||
"columns": ["createdById"]
|
||||
},
|
||||
"dateSent": {
|
||||
"columns": ["dateSent", "deleted"]
|
||||
},
|
||||
"dateSentStatus": {
|
||||
"columns": ["dateSent", "status", "deleted"]
|
||||
}
|
||||
}
|
||||
}
|
||||
185
application/Espo/Resources/metadata/entityDefs/EmailAccount.json
Normal file
185
application/Espo/Resources/metadata/entityDefs/EmailAccount.json
Normal file
@@ -0,0 +1,185 @@
|
||||
{
|
||||
"fields": {
|
||||
"name": {
|
||||
"type": "varchar",
|
||||
"required": true,
|
||||
"pattern": "$noBadCharacters"
|
||||
},
|
||||
"emailAddress": {
|
||||
"type": "varchar",
|
||||
"required": true,
|
||||
"maxLength": 100,
|
||||
"tooltip": true,
|
||||
"view": "views/email-account/fields/email-address"
|
||||
},
|
||||
"status": {
|
||||
"type": "enum",
|
||||
"options": ["Active", "Inactive"],
|
||||
"style": {
|
||||
"Inactive": "info"
|
||||
},
|
||||
"default": "Active"
|
||||
},
|
||||
"host": {
|
||||
"type": "varchar"
|
||||
},
|
||||
"port": {
|
||||
"type": "int",
|
||||
"min": 0,
|
||||
"max": 65535,
|
||||
"default": 993,
|
||||
"disableFormatting": true
|
||||
},
|
||||
"security": {
|
||||
"type": "enum",
|
||||
"default": "SSL",
|
||||
"options": ["", "SSL", "TLS"]
|
||||
},
|
||||
"username": {
|
||||
"type": "varchar"
|
||||
},
|
||||
"password": {
|
||||
"type": "password"
|
||||
},
|
||||
"monitoredFolders": {
|
||||
"type": "array",
|
||||
"default": ["INBOX"],
|
||||
"view": "views/email-account/fields/folders",
|
||||
"displayAsList": true,
|
||||
"noEmptyString": true,
|
||||
"duplicateIgnore": true
|
||||
},
|
||||
"sentFolder": {
|
||||
"type": "varchar",
|
||||
"view": "views/email-account/fields/folder",
|
||||
"duplicateIgnore": true
|
||||
},
|
||||
"storeSentEmails": {
|
||||
"type": "bool",
|
||||
"tooltip": true
|
||||
},
|
||||
"keepFetchedEmailsUnread": {
|
||||
"type": "bool"
|
||||
},
|
||||
"fetchSince": {
|
||||
"type": "date",
|
||||
"validatorClassNameList": [
|
||||
"Espo\\Classes\\FieldValidators\\InboundEmail\\FetchSince\\Required"
|
||||
],
|
||||
"forceValidation": true
|
||||
},
|
||||
"fetchData": {
|
||||
"type": "jsonObject",
|
||||
"readOnly": true,
|
||||
"duplicateIgnore": true
|
||||
},
|
||||
"emailFolder": {
|
||||
"type": "link",
|
||||
"view": "views/email-account/fields/email-folder",
|
||||
"duplicateIgnore": true
|
||||
},
|
||||
"createdAt": {
|
||||
"type": "datetime",
|
||||
"readOnly": true
|
||||
},
|
||||
"modifiedAt": {
|
||||
"type": "datetime",
|
||||
"readOnly": true
|
||||
},
|
||||
"assignedUser": {
|
||||
"type": "link",
|
||||
"required": true,
|
||||
"view": "views/fields/assigned-user"
|
||||
},
|
||||
"connectedAt": {
|
||||
"type": "datetime",
|
||||
"readOnly": true
|
||||
},
|
||||
"useImap": {
|
||||
"type": "bool",
|
||||
"default": true
|
||||
},
|
||||
"useSmtp": {
|
||||
"type": "bool",
|
||||
"tooltip": true
|
||||
},
|
||||
"smtpHost": {
|
||||
"type": "varchar"
|
||||
},
|
||||
"smtpPort": {
|
||||
"type": "int",
|
||||
"min": 0,
|
||||
"max": 65535,
|
||||
"default": 587,
|
||||
"disableFormatting": true
|
||||
},
|
||||
"smtpAuth": {
|
||||
"type": "bool",
|
||||
"default": true
|
||||
},
|
||||
"smtpSecurity": {
|
||||
"type": "enum",
|
||||
"default": "TLS",
|
||||
"options": ["", "SSL", "TLS"]
|
||||
},
|
||||
"smtpUsername": {
|
||||
"type": "varchar"
|
||||
},
|
||||
"smtpPassword": {
|
||||
"type": "password"
|
||||
},
|
||||
"smtpAuthMechanism": {
|
||||
"type": "enum",
|
||||
"options": ["login", "crammd5", "plain"],
|
||||
"default": "login"
|
||||
},
|
||||
"imapHandler": {
|
||||
"type": "varchar",
|
||||
"readOnly": true
|
||||
},
|
||||
"smtpHandler": {
|
||||
"type": "varchar",
|
||||
"readOnly": true
|
||||
},
|
||||
"createdBy": {
|
||||
"type": "link",
|
||||
"readOnly": true
|
||||
},
|
||||
"modifiedBy": {
|
||||
"type": "link",
|
||||
"readOnly": true
|
||||
}
|
||||
},
|
||||
"links": {
|
||||
"assignedUser": {
|
||||
"type": "belongsTo",
|
||||
"entity": "User"
|
||||
},
|
||||
"createdBy": {
|
||||
"type": "belongsTo",
|
||||
"entity": "User"
|
||||
},
|
||||
"modifiedBy": {
|
||||
"type": "belongsTo",
|
||||
"entity": "User"
|
||||
},
|
||||
"filters": {
|
||||
"type": "hasChildren",
|
||||
"foreign": "parent",
|
||||
"entity": "EmailFilter"
|
||||
},
|
||||
"emails": {
|
||||
"type": "hasMany",
|
||||
"entity": "Email",
|
||||
"foreign": "emailAccounts"
|
||||
},
|
||||
"emailFolder": {
|
||||
"type": "belongsTo",
|
||||
"entity": "EmailFolder"
|
||||
}
|
||||
},
|
||||
"collection": {
|
||||
"orderBy": "name",
|
||||
"order": "asc"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
{
|
||||
"fields": {
|
||||
"name": {
|
||||
"type": "varchar",
|
||||
"required": true,
|
||||
"maxLength": 255
|
||||
},
|
||||
"lower": {
|
||||
"type": "varchar",
|
||||
"required": true,
|
||||
"index": true
|
||||
},
|
||||
"invalid": {
|
||||
"type": "bool"
|
||||
},
|
||||
"optOut": {
|
||||
"type": "bool"
|
||||
},
|
||||
"primary": {
|
||||
"type": "bool",
|
||||
"notStorable": true
|
||||
}
|
||||
},
|
||||
"links": {},
|
||||
"collection": {
|
||||
"orderBy": "name",
|
||||
"order": "asc"
|
||||
},
|
||||
"hooksDisabled": true
|
||||
}
|
||||
114
application/Espo/Resources/metadata/entityDefs/EmailFilter.json
Normal file
114
application/Espo/Resources/metadata/entityDefs/EmailFilter.json
Normal file
@@ -0,0 +1,114 @@
|
||||
{
|
||||
"fields": {
|
||||
"name": {
|
||||
"type": "varchar",
|
||||
"required": true,
|
||||
"maxLength": 100,
|
||||
"tooltip": true,
|
||||
"pattern": "$noBadCharacters"
|
||||
},
|
||||
"from": {
|
||||
"type": "varchar",
|
||||
"maxLength": 255,
|
||||
"tooltip": true
|
||||
},
|
||||
"to": {
|
||||
"type": "varchar",
|
||||
"maxLength": 255,
|
||||
"tooltip": true
|
||||
},
|
||||
"subject": {
|
||||
"type": "varchar",
|
||||
"maxLength": 255,
|
||||
"tooltip": true
|
||||
},
|
||||
"bodyContains": {
|
||||
"type": "array",
|
||||
"tooltip": true
|
||||
},
|
||||
"bodyContainsAll": {
|
||||
"type": "array",
|
||||
"tooltip": true
|
||||
},
|
||||
"isGlobal": {
|
||||
"type": "bool",
|
||||
"tooltip": true,
|
||||
"default": false,
|
||||
"readOnlyAfterCreate": true
|
||||
},
|
||||
"parent": {
|
||||
"type": "linkParent",
|
||||
"view": "views/email-filter/fields/parent",
|
||||
"readOnlyAfterCreate": true
|
||||
},
|
||||
"action": {
|
||||
"type": "enum",
|
||||
"default": "Skip",
|
||||
"options": [
|
||||
"Skip",
|
||||
"Move to Folder",
|
||||
"Move to Group Folder",
|
||||
"None"
|
||||
]
|
||||
},
|
||||
"emailFolder": {
|
||||
"type": "link",
|
||||
"view": "views/email-filter/fields/email-folder"
|
||||
},
|
||||
"groupEmailFolder": {
|
||||
"type": "link"
|
||||
},
|
||||
"markAsRead": {
|
||||
"type": "bool"
|
||||
},
|
||||
"skipNotification": {
|
||||
"type": "bool"
|
||||
},
|
||||
"createdAt": {
|
||||
"type": "datetime",
|
||||
"readOnly": true
|
||||
},
|
||||
"modifiedAt": {
|
||||
"type": "datetime",
|
||||
"readOnly": true
|
||||
},
|
||||
"createdBy": {
|
||||
"type": "link",
|
||||
"readOnly": true
|
||||
},
|
||||
"modifiedBy": {
|
||||
"type": "link",
|
||||
"readOnly": true
|
||||
}
|
||||
},
|
||||
"links": {
|
||||
"createdBy": {
|
||||
"type": "belongsTo",
|
||||
"entity": "User"
|
||||
},
|
||||
"modifiedBy": {
|
||||
"type": "belongsTo",
|
||||
"entity": "User"
|
||||
},
|
||||
"parent": {
|
||||
"type": "belongsToParent",
|
||||
"entityList": [
|
||||
"User",
|
||||
"EmailAccount",
|
||||
"InboundEmail"
|
||||
]
|
||||
},
|
||||
"emailFolder": {
|
||||
"type": "belongsTo",
|
||||
"entity": "EmailFolder"
|
||||
},
|
||||
"groupEmailFolder": {
|
||||
"type": "belongsTo",
|
||||
"entity": "GroupEmailFolder"
|
||||
}
|
||||
},
|
||||
"collection": {
|
||||
"orderBy": "createdAt",
|
||||
"order": "desc"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,54 @@
|
||||
{
|
||||
"fields": {
|
||||
"name": {
|
||||
"type": "varchar",
|
||||
"required": true,
|
||||
"maxLength": 64,
|
||||
"pattern": "$noBadCharacters"
|
||||
},
|
||||
"order": {
|
||||
"type": "int"
|
||||
},
|
||||
"assignedUser": {
|
||||
"type": "link",
|
||||
"readOnly": true
|
||||
},
|
||||
"skipNotifications": {
|
||||
"type": "bool"
|
||||
},
|
||||
"createdAt": {
|
||||
"type": "datetime",
|
||||
"readOnly": true
|
||||
},
|
||||
"modifiedAt": {
|
||||
"type": "datetime",
|
||||
"readOnly": true
|
||||
},
|
||||
"createdBy": {
|
||||
"type": "link",
|
||||
"readOnly": true
|
||||
},
|
||||
"modifiedBy": {
|
||||
"type": "link",
|
||||
"readOnly": true
|
||||
}
|
||||
},
|
||||
"links": {
|
||||
"createdBy": {
|
||||
"type": "belongsTo",
|
||||
"entity": "User"
|
||||
},
|
||||
"modifiedBy": {
|
||||
"type": "belongsTo",
|
||||
"entity": "User"
|
||||
},
|
||||
"assignedUser": {
|
||||
"type": "belongsTo",
|
||||
"entity": "User"
|
||||
}
|
||||
},
|
||||
"collection": {
|
||||
"orderBy": "order",
|
||||
"order": "asc"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,113 @@
|
||||
{
|
||||
"fields": {
|
||||
"name": {
|
||||
"type": "varchar",
|
||||
"required": true,
|
||||
"audited": true
|
||||
},
|
||||
"subject": {
|
||||
"type": "varchar",
|
||||
"audited": true
|
||||
},
|
||||
"body": {
|
||||
"type": "wysiwyg",
|
||||
"view": "views/email-template/fields/body",
|
||||
"useIframe": true,
|
||||
"attachmentField": "attachments",
|
||||
"audited": true
|
||||
},
|
||||
"isHtml": {
|
||||
"type": "bool",
|
||||
"default": true,
|
||||
"inlineEditDisabled": true,
|
||||
"audited": true
|
||||
},
|
||||
"status": {
|
||||
"type": "enum",
|
||||
"options": [
|
||||
"Active",
|
||||
"Inactive"
|
||||
],
|
||||
"default": "Active",
|
||||
"style": {
|
||||
"Inactive": "info"
|
||||
},
|
||||
"maxLength": 8,
|
||||
"audited": true
|
||||
},
|
||||
"oneOff": {
|
||||
"type": "bool",
|
||||
"default": false,
|
||||
"tooltip": true
|
||||
},
|
||||
"attachments": {
|
||||
"type": "attachmentMultiple",
|
||||
"audited": true
|
||||
},
|
||||
"category": {
|
||||
"type": "link",
|
||||
"view": "views/fields/link-category-tree"
|
||||
},
|
||||
"assignedUser": {
|
||||
"type": "link",
|
||||
"view": "views/fields/assigned-user"
|
||||
},
|
||||
"teams": {
|
||||
"type": "linkMultiple",
|
||||
"audited": true
|
||||
},
|
||||
"createdAt": {
|
||||
"type": "datetime",
|
||||
"readOnly": true
|
||||
},
|
||||
"modifiedAt": {
|
||||
"type": "datetime",
|
||||
"readOnly": true
|
||||
},
|
||||
"createdBy": {
|
||||
"type": "link",
|
||||
"readOnly": true,
|
||||
"view": "views/fields/user"
|
||||
},
|
||||
"modifiedBy": {
|
||||
"type": "link",
|
||||
"readOnly": true,
|
||||
"view": "views/fields/user"
|
||||
}
|
||||
},
|
||||
"links": {
|
||||
"attachments": {
|
||||
"type": "hasChildren",
|
||||
"entity": "Attachment",
|
||||
"foreign": "parent"
|
||||
},
|
||||
"category": {
|
||||
"type": "belongsTo",
|
||||
"foreign": "emailTemplates",
|
||||
"entity": "EmailTemplateCategory"
|
||||
},
|
||||
"teams": {
|
||||
"type": "hasMany",
|
||||
"entity": "Team",
|
||||
"relationName": "entityTeam"
|
||||
},
|
||||
"assignedUser": {
|
||||
"type": "belongsTo",
|
||||
"entity": "User"
|
||||
},
|
||||
"createdBy": {
|
||||
"type": "belongsTo",
|
||||
"entity": "User"
|
||||
},
|
||||
"modifiedBy": {
|
||||
"type": "belongsTo",
|
||||
"entity": "User"
|
||||
}
|
||||
},
|
||||
"collection": {
|
||||
"orderBy": "name",
|
||||
"order": "asc",
|
||||
"textFilterFields": ["name"]
|
||||
},
|
||||
"optimisticConcurrencyControl": true
|
||||
}
|
||||
@@ -0,0 +1,101 @@
|
||||
{
|
||||
"fields": {
|
||||
"name": {
|
||||
"type": "varchar",
|
||||
"required": true
|
||||
},
|
||||
"order": {
|
||||
"type": "int",
|
||||
"minValue": 1,
|
||||
"readOnly": true,
|
||||
"textFilterDisabled": true
|
||||
},
|
||||
"description": {
|
||||
"type": "text"
|
||||
},
|
||||
"createdAt": {
|
||||
"type": "datetime",
|
||||
"readOnly": true
|
||||
},
|
||||
"modifiedAt": {
|
||||
"type": "datetime",
|
||||
"readOnly": true
|
||||
},
|
||||
"createdBy": {
|
||||
"type": "link",
|
||||
"readOnly": true
|
||||
},
|
||||
"modifiedBy": {
|
||||
"type": "link",
|
||||
"readOnly": true
|
||||
},
|
||||
"teams": {
|
||||
"type": "linkMultiple"
|
||||
},
|
||||
"parent": {
|
||||
"type": "link",
|
||||
"view": "views/fields/link-category-tree"
|
||||
},
|
||||
"childList": {
|
||||
"type": "jsonArray",
|
||||
"notStorable": true
|
||||
}
|
||||
},
|
||||
"links": {
|
||||
"createdBy": {
|
||||
"type": "belongsTo",
|
||||
"entity": "User"
|
||||
},
|
||||
"modifiedBy": {
|
||||
"type": "belongsTo",
|
||||
"entity": "User"
|
||||
},
|
||||
"teams": {
|
||||
"type": "hasMany",
|
||||
"entity": "Team",
|
||||
"relationName": "entityTeam",
|
||||
"layoutRelationshipsDisabled": true
|
||||
},
|
||||
"parent": {
|
||||
"type": "belongsTo",
|
||||
"foreign": "children",
|
||||
"entity": "EmailTemplateCategory"
|
||||
},
|
||||
"children": {
|
||||
"type": "hasMany",
|
||||
"foreign": "parent",
|
||||
"entity": "EmailTemplateCategory",
|
||||
"readOnly": true
|
||||
},
|
||||
"emailTemplates": {
|
||||
"type": "hasMany",
|
||||
"foreign": "category",
|
||||
"entity": "EmailTemplate"
|
||||
}
|
||||
},
|
||||
"collection": {
|
||||
"orderBy": "parent",
|
||||
"order": "asc"
|
||||
},
|
||||
"additionalTables": {
|
||||
"EmailTemplateCategoryPath": {
|
||||
"attributes": {
|
||||
"id": {
|
||||
"type": "id",
|
||||
"dbType": "integer",
|
||||
"len": 11,
|
||||
"autoincrement": true
|
||||
},
|
||||
"ascendorId": {
|
||||
"type": "foreignId",
|
||||
"index": true
|
||||
},
|
||||
"descendorId" : {
|
||||
"type": "foreignId",
|
||||
"index": true
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"repositoryClassName": "Espo\\Core\\Repositories\\CategoryTree"
|
||||
}
|
||||
34
application/Espo/Resources/metadata/entityDefs/Export.json
Normal file
34
application/Espo/Resources/metadata/entityDefs/Export.json
Normal file
@@ -0,0 +1,34 @@
|
||||
{
|
||||
"fields": {
|
||||
"status": {
|
||||
"type": "enum",
|
||||
"options": ["Pending", "Running", "Success", "Failed"],
|
||||
"default": "Pending"
|
||||
},
|
||||
"params": {
|
||||
"type": "text"
|
||||
},
|
||||
"createdAt": {
|
||||
"type": "datetime",
|
||||
"readOnly": true
|
||||
},
|
||||
"createdBy": {
|
||||
"type": "link",
|
||||
"required": true
|
||||
},
|
||||
"notifyOnFinish": {
|
||||
"type": "bool",
|
||||
"default": false
|
||||
},
|
||||
"attachment": {
|
||||
"type": "link",
|
||||
"entity": "Attachment"
|
||||
}
|
||||
},
|
||||
"links": {
|
||||
"createdBy": {
|
||||
"type": "belongsTo",
|
||||
"entity": "User"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,60 @@
|
||||
{
|
||||
"fields": {
|
||||
"name": {
|
||||
"type": "varchar",
|
||||
"required": true
|
||||
},
|
||||
"version": {
|
||||
"type": "varchar",
|
||||
"required": true,
|
||||
"maxLength": 50
|
||||
},
|
||||
"fileList": {
|
||||
"type": "jsonArray"
|
||||
},
|
||||
"licenseStatus": {
|
||||
"type": "enum",
|
||||
"options": [
|
||||
"",
|
||||
"Valid",
|
||||
"Invalid",
|
||||
"Expired",
|
||||
"Soft-Expired"
|
||||
],
|
||||
"index": true,
|
||||
"maxLength": 36
|
||||
},
|
||||
"licenseStatusMessage": {
|
||||
"type": "varchar"
|
||||
},
|
||||
"description": {
|
||||
"type": "text"
|
||||
},
|
||||
"isInstalled": {
|
||||
"type": "bool",
|
||||
"default": false
|
||||
},
|
||||
"checkVersionUrl": {
|
||||
"type": "url"
|
||||
},
|
||||
"createdAt": {
|
||||
"type": "datetime",
|
||||
"readOnly": true
|
||||
},
|
||||
"createdBy": {
|
||||
"type": "link",
|
||||
"readOnly": true
|
||||
}
|
||||
},
|
||||
"links": {
|
||||
"createdBy": {
|
||||
"type": "belongsTo",
|
||||
"entity": "User"
|
||||
}
|
||||
},
|
||||
"collection": {
|
||||
"orderBy": "createdAt",
|
||||
"order": "desc"
|
||||
},
|
||||
"hooksDisabled": true
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
{
|
||||
"fields": {
|
||||
"id": {
|
||||
"type": "id",
|
||||
"dbType": "string",
|
||||
"maxLength": 64
|
||||
},
|
||||
"data": {
|
||||
"type": "jsonObject"
|
||||
},
|
||||
"enabled": {
|
||||
"type": "bool"
|
||||
},
|
||||
"isLocked": {
|
||||
"type": "bool"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,56 @@
|
||||
{
|
||||
"fields": {
|
||||
"name": {
|
||||
"type": "varchar",
|
||||
"required": true,
|
||||
"maxLength": 64,
|
||||
"pattern": "$noBadCharacters"
|
||||
},
|
||||
"order": {
|
||||
"type": "int"
|
||||
},
|
||||
"teams": {
|
||||
"type": "linkMultiple"
|
||||
},
|
||||
"createdAt": {
|
||||
"type": "datetime",
|
||||
"readOnly": true
|
||||
},
|
||||
"modifiedAt": {
|
||||
"type": "datetime",
|
||||
"readOnly": true
|
||||
},
|
||||
"createdBy": {
|
||||
"type": "link",
|
||||
"readOnly": true
|
||||
},
|
||||
"modifiedBy": {
|
||||
"type": "link",
|
||||
"readOnly": true
|
||||
}
|
||||
},
|
||||
"links": {
|
||||
"createdBy": {
|
||||
"type": "belongsTo",
|
||||
"entity": "User"
|
||||
},
|
||||
"modifiedBy": {
|
||||
"type": "belongsTo",
|
||||
"entity": "User"
|
||||
},
|
||||
"teams": {
|
||||
"type": "hasMany",
|
||||
"entity": "Team",
|
||||
"foreign": "groupEmailFolders"
|
||||
},
|
||||
"emails": {
|
||||
"type": "hasMany",
|
||||
"entity": "Email",
|
||||
"foreign": "groupFolder"
|
||||
}
|
||||
},
|
||||
"collection": {
|
||||
"orderBy": "order",
|
||||
"order": "asc"
|
||||
}
|
||||
}
|
||||
79
application/Espo/Resources/metadata/entityDefs/Import.json
Normal file
79
application/Espo/Resources/metadata/entityDefs/Import.json
Normal file
@@ -0,0 +1,79 @@
|
||||
{
|
||||
"fields": {
|
||||
"entityType": {
|
||||
"type": "enum",
|
||||
"translation": "Global.scopeNames",
|
||||
"required": true,
|
||||
"readOnly": true,
|
||||
"view": "views/fields/entity-type"
|
||||
},
|
||||
"status": {
|
||||
"type": "enum",
|
||||
"options": ["Standby", "Pending", "In Process", "Complete", "Failed"],
|
||||
"readOnly": true,
|
||||
"displayAsLabel": true,
|
||||
"labelType": "state",
|
||||
"style": {
|
||||
"Complete": "success",
|
||||
"Failed": "danger"
|
||||
}
|
||||
},
|
||||
"file": {
|
||||
"type": "file",
|
||||
"required": true,
|
||||
"readOnly": true
|
||||
},
|
||||
"importedCount": {
|
||||
"type": "int",
|
||||
"readOnly": true,
|
||||
"notStorable": true
|
||||
},
|
||||
"duplicateCount": {
|
||||
"type": "int",
|
||||
"readOnly": true,
|
||||
"notStorable": true
|
||||
},
|
||||
"updatedCount": {
|
||||
"type": "int",
|
||||
"readOnly": true,
|
||||
"notStorable": true
|
||||
},
|
||||
"lastIndex": {
|
||||
"type": "int",
|
||||
"readOnly": true
|
||||
},
|
||||
"params": {
|
||||
"type": "jsonObject",
|
||||
"readOnly": true
|
||||
},
|
||||
"attributeList": {
|
||||
"type": "jsonArray",
|
||||
"readOnly": true
|
||||
},
|
||||
"createdAt": {
|
||||
"type": "datetime",
|
||||
"readOnly": true
|
||||
},
|
||||
"createdBy": {
|
||||
"type": "link",
|
||||
"readOnly": true,
|
||||
"view": "views/fields/user"
|
||||
}
|
||||
},
|
||||
"links": {
|
||||
"createdBy": {
|
||||
"type": "belongsTo",
|
||||
"entity": "User"
|
||||
},
|
||||
"errors": {
|
||||
"type": "hasMany",
|
||||
"entity": "ImportError",
|
||||
"foreign": "import",
|
||||
"readOnly": true
|
||||
}
|
||||
},
|
||||
"collection": {
|
||||
"orderBy": "createdAt",
|
||||
"order": "desc"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"fields": {
|
||||
"file": {
|
||||
"type": "file"
|
||||
}
|
||||
},
|
||||
"skipRebuild": true
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
{
|
||||
"fields": {
|
||||
"id": {
|
||||
"type": "id",
|
||||
"dbType": "bigint",
|
||||
"autoincrement": true
|
||||
},
|
||||
"entity": {
|
||||
"type": "linkParent"
|
||||
},
|
||||
"import": {
|
||||
"type": "link"
|
||||
},
|
||||
"isImported": {
|
||||
"type": "bool"
|
||||
},
|
||||
"isUpdated": {
|
||||
"type": "bool"
|
||||
},
|
||||
"isDuplicate": {
|
||||
"type": "bool"
|
||||
}
|
||||
},
|
||||
"indexes": {
|
||||
"entityImport": {
|
||||
"columns": ["importId", "entityType"]
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,77 @@
|
||||
{
|
||||
"fields": {
|
||||
"import": {
|
||||
"type": "link",
|
||||
"readOnly": true
|
||||
},
|
||||
"entityType": {
|
||||
"type": "foreign",
|
||||
"link": "import",
|
||||
"field": "entityType"
|
||||
},
|
||||
"rowIndex": {
|
||||
"type": "int",
|
||||
"readOnly": true,
|
||||
"tooltip": true
|
||||
},
|
||||
"exportRowIndex": {
|
||||
"type": "int",
|
||||
"readOnly": true
|
||||
},
|
||||
"lineNumber": {
|
||||
"type": "int",
|
||||
"readOnly": true,
|
||||
"tooltip": true,
|
||||
"notStorable": true,
|
||||
"view": "views/import-error/fields/line-number"
|
||||
},
|
||||
"exportLineNumber": {
|
||||
"type": "int",
|
||||
"readOnly": true,
|
||||
"tooltip": true,
|
||||
"notStorable": true,
|
||||
"view": "views/import-error/fields/line-number"
|
||||
},
|
||||
"type": {
|
||||
"type": "enum",
|
||||
"options": [
|
||||
"",
|
||||
"Validation",
|
||||
"No-Access",
|
||||
"Not-Found",
|
||||
"Integrity-Constraint-Violation"
|
||||
],
|
||||
"readOnly": true
|
||||
},
|
||||
"validationFailures": {
|
||||
"type": "jsonArray",
|
||||
"readOnly": true,
|
||||
"view": "views/import-error/fields/validation-failures"
|
||||
},
|
||||
"row": {
|
||||
"type": "array",
|
||||
"readOnly": true,
|
||||
"displayAsList": true,
|
||||
"doNotStoreArrayValues": true
|
||||
}
|
||||
},
|
||||
"links": {
|
||||
"import": {
|
||||
"type": "belongsTo",
|
||||
"entity": "Import",
|
||||
"foreign": "errors",
|
||||
"foreignName": "id"
|
||||
}
|
||||
},
|
||||
"collection": {
|
||||
"orderBy": "rowIndex"
|
||||
},
|
||||
"indexes": {
|
||||
"rowIndex": {
|
||||
"columns": ["rowIndex"]
|
||||
},
|
||||
"importRowIndex": {
|
||||
"columns": ["importId", "rowIndex"]
|
||||
}
|
||||
}
|
||||
}
|
||||
264
application/Espo/Resources/metadata/entityDefs/InboundEmail.json
Normal file
264
application/Espo/Resources/metadata/entityDefs/InboundEmail.json
Normal file
@@ -0,0 +1,264 @@
|
||||
{
|
||||
"fields": {
|
||||
"name": {
|
||||
"type": "varchar",
|
||||
"required": true,
|
||||
"pattern": "$noBadCharacters",
|
||||
"view": "views/inbound-email/fields/name"
|
||||
},
|
||||
"emailAddress": {
|
||||
"type": "varchar",
|
||||
"required": true,
|
||||
"maxLength": 100,
|
||||
"view": "views/inbound-email/fields/email-address"
|
||||
},
|
||||
"status": {
|
||||
"type": "enum",
|
||||
"options": ["Active", "Inactive"],
|
||||
"style": {
|
||||
"Inactive": "info"
|
||||
},
|
||||
"default": "Active"
|
||||
},
|
||||
"host": {
|
||||
"type": "varchar"
|
||||
},
|
||||
"port": {
|
||||
"type": "int",
|
||||
"min": 0,
|
||||
"max": 65535,
|
||||
"default": 993,
|
||||
"disableFormatting": true
|
||||
},
|
||||
"security": {
|
||||
"type": "enum",
|
||||
"default": "SSL",
|
||||
"options": ["", "SSL", "TLS"]
|
||||
},
|
||||
"username": {
|
||||
"type": "varchar"
|
||||
},
|
||||
"password": {
|
||||
"type": "password"
|
||||
},
|
||||
"monitoredFolders": {
|
||||
"type": "array",
|
||||
"default": ["INBOX"],
|
||||
"view": "views/inbound-email/fields/folders",
|
||||
"displayAsList": true,
|
||||
"noEmptyString": true,
|
||||
"duplicateIgnore": true
|
||||
},
|
||||
"fetchSince": {
|
||||
"type": "date",
|
||||
"validatorClassNameList": [
|
||||
"Espo\\Classes\\FieldValidators\\InboundEmail\\FetchSince\\Required"
|
||||
],
|
||||
"forceValidation": true
|
||||
},
|
||||
"fetchData": {
|
||||
"type": "jsonObject",
|
||||
"readOnly": true,
|
||||
"duplicateIgnore": true
|
||||
},
|
||||
"assignToUser": {
|
||||
"type": "link",
|
||||
"tooltip": true
|
||||
},
|
||||
"team": {
|
||||
"type": "link",
|
||||
"tooltip": true
|
||||
},
|
||||
"teams": {
|
||||
"type": "linkMultiple",
|
||||
"tooltip": true
|
||||
},
|
||||
"addAllTeamUsers": {
|
||||
"type": "bool",
|
||||
"tooltip": true,
|
||||
"default": true
|
||||
},
|
||||
"isSystem": {
|
||||
"type": "bool",
|
||||
"notStorable": true,
|
||||
"readOnly": true,
|
||||
"directAccessDisabled": true,
|
||||
"tooltip": true
|
||||
},
|
||||
"sentFolder": {
|
||||
"type": "varchar",
|
||||
"view": "views/inbound-email/fields/folder",
|
||||
"duplicateIgnore": true
|
||||
},
|
||||
"storeSentEmails": {
|
||||
"type": "bool",
|
||||
"tooltip": true
|
||||
},
|
||||
"keepFetchedEmailsUnread": {
|
||||
"type": "bool"
|
||||
},
|
||||
"connectedAt": {
|
||||
"type": "datetime",
|
||||
"readOnly": true
|
||||
},
|
||||
"excludeFromReply": {
|
||||
"type": "bool",
|
||||
"tooltip": true
|
||||
},
|
||||
"useImap": {
|
||||
"type": "bool",
|
||||
"default": true
|
||||
},
|
||||
"useSmtp": {
|
||||
"type": "bool",
|
||||
"tooltip": true
|
||||
},
|
||||
"smtpIsShared": {
|
||||
"type": "bool",
|
||||
"tooltip": true
|
||||
},
|
||||
"smtpIsForMassEmail": {
|
||||
"type": "bool",
|
||||
"tooltip": true
|
||||
},
|
||||
"smtpHost": {
|
||||
"type": "varchar"
|
||||
},
|
||||
"smtpPort": {
|
||||
"type": "int",
|
||||
"min": 0,
|
||||
"max": 65535,
|
||||
"default": 587,
|
||||
"disableFormatting": true
|
||||
},
|
||||
"smtpAuth": {
|
||||
"type": "bool",
|
||||
"default": true
|
||||
},
|
||||
"smtpSecurity": {
|
||||
"type": "enum",
|
||||
"default": "TLS",
|
||||
"options": ["", "SSL", "TLS"]
|
||||
},
|
||||
"smtpUsername": {
|
||||
"type": "varchar"
|
||||
},
|
||||
"smtpPassword": {
|
||||
"type": "password"
|
||||
},
|
||||
"smtpAuthMechanism": {
|
||||
"type": "enum",
|
||||
"options": ["login", "crammd5", "plain"],
|
||||
"default": "login"
|
||||
},
|
||||
"createCase": {
|
||||
"type": "bool",
|
||||
"tooltip": true
|
||||
},
|
||||
"caseDistribution": {
|
||||
"type": "enum",
|
||||
"options": ["", "Direct-Assignment", "Round-Robin", "Least-Busy"],
|
||||
"default": "Direct-Assignment",
|
||||
"tooltip": true
|
||||
},
|
||||
"targetUserPosition": {
|
||||
"type": "enum",
|
||||
"view": "views/inbound-email/fields/target-user-position",
|
||||
"tooltip": true
|
||||
},
|
||||
"reply": {
|
||||
"type": "bool",
|
||||
"tooltip": true
|
||||
},
|
||||
"replyEmailTemplate": {
|
||||
"type": "link"
|
||||
},
|
||||
"replyFromAddress": {
|
||||
"type": "varchar"
|
||||
},
|
||||
"replyToAddress": {
|
||||
"type": "varchar",
|
||||
"view": "views/fields/email-address",
|
||||
"tooltip": true
|
||||
},
|
||||
"replyFromName": {
|
||||
"type": "varchar"
|
||||
},
|
||||
"fromName": {
|
||||
"type": "varchar"
|
||||
},
|
||||
"groupEmailFolder": {
|
||||
"type": "link",
|
||||
"tooltip": true
|
||||
},
|
||||
"imapHandler": {
|
||||
"type": "varchar",
|
||||
"readOnly": true
|
||||
},
|
||||
"smtpHandler": {
|
||||
"type": "varchar",
|
||||
"readOnly": true
|
||||
},
|
||||
"createdAt": {
|
||||
"type": "datetime",
|
||||
"readOnly": true
|
||||
},
|
||||
"modifiedAt": {
|
||||
"type": "datetime",
|
||||
"readOnly": true
|
||||
},
|
||||
"createdBy": {
|
||||
"type": "link",
|
||||
"readOnly": true
|
||||
},
|
||||
"modifiedBy": {
|
||||
"type": "link",
|
||||
"readOnly": true
|
||||
}
|
||||
},
|
||||
"links": {
|
||||
"createdBy": {
|
||||
"type": "belongsTo",
|
||||
"entity": "User"
|
||||
},
|
||||
"modifiedBy": {
|
||||
"type": "belongsTo",
|
||||
"entity": "User"
|
||||
},
|
||||
"teams": {
|
||||
"type": "hasMany",
|
||||
"entity": "Team",
|
||||
"foreign": "inboundEmails"
|
||||
},
|
||||
"assignToUser": {
|
||||
"type": "belongsTo",
|
||||
"entity": "User"
|
||||
},
|
||||
"team": {
|
||||
"type": "belongsTo",
|
||||
"entity": "Team"
|
||||
},
|
||||
"replyEmailTemplate": {
|
||||
"type": "belongsTo",
|
||||
"entity": "EmailTemplate"
|
||||
},
|
||||
"filters": {
|
||||
"type": "hasChildren",
|
||||
"foreign": "parent",
|
||||
"entity": "EmailFilter"
|
||||
},
|
||||
"emails": {
|
||||
"type": "hasMany",
|
||||
"entity": "Email",
|
||||
"foreign": "inboundEmails"
|
||||
},
|
||||
"groupEmailFolder": {
|
||||
"type": "belongsTo",
|
||||
"entity": "GroupEmailFolder"
|
||||
}
|
||||
},
|
||||
"collection": {
|
||||
"orderBy": "name",
|
||||
"order": "asc"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
{
|
||||
"fields": {
|
||||
"id": {
|
||||
"type": "id",
|
||||
"dbType": "string",
|
||||
"maxLength": 24
|
||||
},
|
||||
"data": {
|
||||
"type": "jsonObject"
|
||||
},
|
||||
"enabled": {
|
||||
"type": "bool"
|
||||
}
|
||||
}
|
||||
}
|
||||
138
application/Espo/Resources/metadata/entityDefs/Job.json
Normal file
138
application/Espo/Resources/metadata/entityDefs/Job.json
Normal file
@@ -0,0 +1,138 @@
|
||||
{
|
||||
"fields": {
|
||||
"name": {
|
||||
"type": "varchar",
|
||||
"required": true,
|
||||
"view": "views/admin/job/fields/name"
|
||||
},
|
||||
"status": {
|
||||
"type": "enum",
|
||||
"options": ["Pending", "Ready", "Running", "Success", "Failed"],
|
||||
"default": "Pending",
|
||||
"style": {
|
||||
"Success": "success",
|
||||
"Failed": "danger",
|
||||
"Running": "warning",
|
||||
"Ready": "warning"
|
||||
},
|
||||
"maxLength": 16
|
||||
},
|
||||
"executeTime": {
|
||||
"type": "datetime",
|
||||
"required": true,
|
||||
"hasSeconds": true
|
||||
},
|
||||
"number": {
|
||||
"type": "int",
|
||||
"index": true,
|
||||
"readOnly": true,
|
||||
"view": "views/fields/autoincrement",
|
||||
"dbType": "bigint",
|
||||
"unique": true,
|
||||
"autoincrement": true
|
||||
},
|
||||
"className": {
|
||||
"type": "varchar",
|
||||
"required": true,
|
||||
"maxLength": 255
|
||||
},
|
||||
"serviceName": {
|
||||
"type": "varchar",
|
||||
"required": true,
|
||||
"maxLength": 100
|
||||
},
|
||||
"methodName": {
|
||||
"type": "varchar",
|
||||
"maxLength": 100
|
||||
},
|
||||
"job": {
|
||||
"type": "varchar",
|
||||
"view": "views/scheduled-job/fields/job"
|
||||
},
|
||||
"data": {
|
||||
"type": "jsonObject"
|
||||
},
|
||||
"scheduledJob": {
|
||||
"type": "link"
|
||||
},
|
||||
"scheduledJobJob": {
|
||||
"type": "foreign",
|
||||
"link": "scheduledJob",
|
||||
"field": "job"
|
||||
},
|
||||
"queue": {
|
||||
"type": "varchar",
|
||||
"maxLength": 36,
|
||||
"default": null
|
||||
},
|
||||
"group": {
|
||||
"type": "varchar",
|
||||
"maxLength": 128,
|
||||
"default": null
|
||||
},
|
||||
"targetGroup": {
|
||||
"type": "varchar",
|
||||
"maxLength": 128,
|
||||
"default": null
|
||||
},
|
||||
"startedAt": {
|
||||
"type": "datetime",
|
||||
"hasSeconds": true
|
||||
},
|
||||
"executedAt": {
|
||||
"type": "datetime",
|
||||
"hasSeconds": true
|
||||
},
|
||||
"pid": {
|
||||
"type": "int"
|
||||
},
|
||||
"attempts": {
|
||||
"type": "int"
|
||||
},
|
||||
"targetId": {
|
||||
"type": "varchar",
|
||||
"maxLength": 48
|
||||
},
|
||||
"targetType": {
|
||||
"type": "varchar",
|
||||
"maxLength": 64
|
||||
},
|
||||
"failedAttempts": {
|
||||
"type": "int"
|
||||
},
|
||||
"createdAt": {
|
||||
"type": "datetime",
|
||||
"readOnly": true,
|
||||
"hasSeconds": true
|
||||
},
|
||||
"modifiedAt": {
|
||||
"type": "datetime",
|
||||
"readOnly": true,
|
||||
"hasSeconds": true
|
||||
}
|
||||
},
|
||||
"links": {
|
||||
"scheduledJob": {
|
||||
"type": "belongsTo",
|
||||
"entity": "ScheduledJob"
|
||||
}
|
||||
},
|
||||
"collection": {
|
||||
"orderBy": "number",
|
||||
"order": "desc",
|
||||
"textFilterFields": ["id", "name", "methodName", "serviceName"],
|
||||
"countDisabled": true
|
||||
},
|
||||
"indexes": {
|
||||
"executeTime": {
|
||||
"columns": ["status", "executeTime"]
|
||||
},
|
||||
"status": {
|
||||
"columns": ["status", "deleted"]
|
||||
},
|
||||
"statusScheduledJobId": {
|
||||
"columns": ["status", "scheduledJobId"]
|
||||
}
|
||||
},
|
||||
"hooksDisabled": true
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
{
|
||||
"fields": {
|
||||
"order": {
|
||||
"type": "int",
|
||||
"dbType": "smallint"
|
||||
},
|
||||
"entity": {
|
||||
"type": "linkParent"
|
||||
},
|
||||
"group": {
|
||||
"type": "varchar",
|
||||
"maxLength": 100
|
||||
},
|
||||
"user": {
|
||||
"type": "link"
|
||||
}
|
||||
},
|
||||
"links": {
|
||||
"entity": {
|
||||
"type": "belongsToParent"
|
||||
}
|
||||
},
|
||||
"indexes": {
|
||||
"entityUserId": {
|
||||
"columns": ["entityType", "entityId", "userId"]
|
||||
},
|
||||
"entityType": {
|
||||
"columns": ["entityType"]
|
||||
},
|
||||
"entityTypeUserId": {
|
||||
"columns": ["entityType", "userId"]
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
{
|
||||
"fields": {
|
||||
"name": {
|
||||
"type": "varchar"
|
||||
},
|
||||
"layoutSet": {
|
||||
"type": "link"
|
||||
},
|
||||
"data": {
|
||||
"type": "text"
|
||||
}
|
||||
},
|
||||
"links": {
|
||||
"layoutSet": {
|
||||
"type": "belongsTo",
|
||||
"entity": "LayoutSet",
|
||||
"foreign": "layoutRecords"
|
||||
}
|
||||
},
|
||||
"indexes": {
|
||||
"nameLayoutSetId": {
|
||||
"columns": ["name", "layoutSetId"]
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,43 @@
|
||||
{
|
||||
"fields": {
|
||||
"name": {
|
||||
"type": "varchar",
|
||||
"required": true,
|
||||
"maxLength": 100
|
||||
},
|
||||
"layoutList": {
|
||||
"type": "multiEnum",
|
||||
"displayAsList": true,
|
||||
"view": "views/layout-set/fields/layout-list"
|
||||
},
|
||||
"createdAt": {
|
||||
"type": "datetime",
|
||||
"readOnly": true
|
||||
},
|
||||
"modifiedAt": {
|
||||
"type": "datetime",
|
||||
"readOnly": true
|
||||
}
|
||||
},
|
||||
"links": {
|
||||
"layoutRecords": {
|
||||
"type": "hasMany",
|
||||
"entity": "LayoutRecord",
|
||||
"foreign": "layoutSet"
|
||||
},
|
||||
"teams": {
|
||||
"type": "hasMany",
|
||||
"entity": "Team",
|
||||
"foreign": "layoutSet"
|
||||
},
|
||||
"portals": {
|
||||
"type": "hasMany",
|
||||
"entity": "Portal",
|
||||
"foreign": "layoutSet"
|
||||
}
|
||||
},
|
||||
"collection": {
|
||||
"orderBy": "name",
|
||||
"order": "asc"
|
||||
}
|
||||
}
|
||||
274
application/Espo/Resources/metadata/entityDefs/LeadCapture.json
Normal file
274
application/Espo/Resources/metadata/entityDefs/LeadCapture.json
Normal file
@@ -0,0 +1,274 @@
|
||||
{
|
||||
"fields": {
|
||||
"name": {
|
||||
"type": "varchar",
|
||||
"maxLength": 100
|
||||
},
|
||||
"campaign": {
|
||||
"type": "link",
|
||||
"audited": true
|
||||
},
|
||||
"isActive": {
|
||||
"type": "bool",
|
||||
"default": true,
|
||||
"audited": true
|
||||
},
|
||||
"subscribeToTargetList": {
|
||||
"type": "bool",
|
||||
"default": true,
|
||||
"audited": true
|
||||
},
|
||||
"subscribeContactToTargetList": {
|
||||
"type": "bool",
|
||||
"default": true,
|
||||
"audited": true
|
||||
},
|
||||
"targetList": {
|
||||
"type": "link",
|
||||
"audited": true
|
||||
},
|
||||
"fieldList": {
|
||||
"type": "multiEnum",
|
||||
"default": ["firstName", "lastName", "emailAddress"],
|
||||
"view": "views/lead-capture/fields/field-list",
|
||||
"displayAsList": true,
|
||||
"required": true,
|
||||
"ignoreFieldList": [
|
||||
"targetList",
|
||||
"targetLists",
|
||||
"acceptanceStatus",
|
||||
"acceptanceStatusMeetings",
|
||||
"acceptanceStatusCalls",
|
||||
"campaign",
|
||||
"source",
|
||||
"teams",
|
||||
"createdOpportunity",
|
||||
"createdAccount",
|
||||
"createdContact",
|
||||
"emailAddressIsOptedOut",
|
||||
"emailAddressIsInvalid",
|
||||
"phoneNumberIsOptedOut",
|
||||
"phoneNumberIsInvalid",
|
||||
"opportunityAmountCurrency",
|
||||
"originalEmail"
|
||||
],
|
||||
"webFormFieldTypeList": [
|
||||
"varchar",
|
||||
"email",
|
||||
"phone",
|
||||
"text",
|
||||
"personName",
|
||||
"enum",
|
||||
"multiEnum",
|
||||
"array",
|
||||
"checklist",
|
||||
"int",
|
||||
"float",
|
||||
"currency",
|
||||
"date",
|
||||
"datetime",
|
||||
"bool",
|
||||
"url",
|
||||
"urlMultiple",
|
||||
"address"
|
||||
],
|
||||
"audited": true
|
||||
},
|
||||
"fieldParams": {
|
||||
"type": "jsonObject",
|
||||
"audited": true
|
||||
},
|
||||
"duplicateCheck": {
|
||||
"type": "bool",
|
||||
"default": true,
|
||||
"audited": true
|
||||
},
|
||||
"optInConfirmation": {
|
||||
"type": "bool",
|
||||
"audited": true
|
||||
},
|
||||
"optInConfirmationEmailTemplate": {
|
||||
"type": "link",
|
||||
"audited": true
|
||||
},
|
||||
"optInConfirmationLifetime": {
|
||||
"type": "int",
|
||||
"default": 48,
|
||||
"min": 1,
|
||||
"audited": true
|
||||
},
|
||||
"optInConfirmationSuccessMessage": {
|
||||
"type": "text",
|
||||
"tooltip": true,
|
||||
"audited": true
|
||||
},
|
||||
"createLeadBeforeOptInConfirmation": {
|
||||
"type": "bool",
|
||||
"audited": true
|
||||
},
|
||||
"skipOptInConfirmationIfSubscribed": {
|
||||
"type": "bool",
|
||||
"audited": true
|
||||
},
|
||||
"leadSource": {
|
||||
"type": "enum",
|
||||
"customizationOptionsDisabled": true,
|
||||
"optionsPath": "entityDefs.Lead.fields.source.options",
|
||||
"translation": "Lead.options.source",
|
||||
"default": "Web Site",
|
||||
"audited": true
|
||||
},
|
||||
"apiKey": {
|
||||
"type": "varchar",
|
||||
"maxLength": 36,
|
||||
"readOnly": true
|
||||
},
|
||||
"formId": {
|
||||
"type": "varchar",
|
||||
"maxLength": 17,
|
||||
"readOnly": true
|
||||
},
|
||||
"formEnabled": {
|
||||
"type": "bool",
|
||||
"audited": true
|
||||
},
|
||||
"formTitle": {
|
||||
"type": "varchar",
|
||||
"maxLength": 80
|
||||
},
|
||||
"formTheme": {
|
||||
"type": "enum",
|
||||
"maxLength": 64,
|
||||
"view": "views/lead-capture/fields/form-theme",
|
||||
"translation": "Global.themes"
|
||||
},
|
||||
"formText": {
|
||||
"type": "text",
|
||||
"tooltip": "optInConfirmationSuccessMessage"
|
||||
},
|
||||
"formSuccessText": {
|
||||
"type": "text",
|
||||
"tooltip": "optInConfirmationSuccessMessage"
|
||||
},
|
||||
"formSuccessRedirectUrl": {
|
||||
"type": "url",
|
||||
"audited": true
|
||||
},
|
||||
"formLanguage": {
|
||||
"type": "enum",
|
||||
"maxLength": 5,
|
||||
"view": "views/preferences/fields/language",
|
||||
"audited": true
|
||||
},
|
||||
"formFrameAncestors": {
|
||||
"type": "urlMultiple",
|
||||
"audited": true
|
||||
},
|
||||
"formCaptcha": {
|
||||
"type": "bool",
|
||||
"audited": true,
|
||||
"tooltip": true
|
||||
},
|
||||
"targetTeam": {
|
||||
"type": "link",
|
||||
"audited": true
|
||||
},
|
||||
"exampleRequestUrl": {
|
||||
"type": "varchar",
|
||||
"notStorable": true,
|
||||
"readOnly": true,
|
||||
"copyToClipboard": true
|
||||
},
|
||||
"exampleRequestMethod": {
|
||||
"type": "varchar",
|
||||
"notStorable": true,
|
||||
"readOnly": true
|
||||
},
|
||||
"exampleRequestPayload": {
|
||||
"type": "text",
|
||||
"notStorable": true,
|
||||
"readOnly": true,
|
||||
"seeMoreDisabled": true
|
||||
},
|
||||
"exampleRequestHeaders": {
|
||||
"type": "array",
|
||||
"notStorable": true,
|
||||
"readOnly": true
|
||||
},
|
||||
"formUrl": {
|
||||
"type": "url",
|
||||
"notStorable": true,
|
||||
"readOnly": true,
|
||||
"copyToClipboard": true
|
||||
},
|
||||
"inboundEmail": {
|
||||
"type": "link",
|
||||
"audited": true
|
||||
},
|
||||
"smtpAccount": {
|
||||
"type": "base",
|
||||
"notStorable": true,
|
||||
"view": "views/lead-capture/fields/smtp-account"
|
||||
},
|
||||
"phoneNumberCountry": {
|
||||
"type": "enum",
|
||||
"view": "views/lead-capture/fields/phone-number-country",
|
||||
"maxLength": 2
|
||||
},
|
||||
"createdAt": {
|
||||
"type": "datetime",
|
||||
"readOnly": true
|
||||
},
|
||||
"modifiedAt": {
|
||||
"type": "datetime",
|
||||
"readOnly": true
|
||||
},
|
||||
"createdBy": {
|
||||
"type": "link",
|
||||
"readOnly": true
|
||||
},
|
||||
"modifiedBy": {
|
||||
"type": "link",
|
||||
"readOnly": true
|
||||
}
|
||||
},
|
||||
"links": {
|
||||
"createdBy": {
|
||||
"type": "belongsTo",
|
||||
"entity": "User"
|
||||
},
|
||||
"modifiedBy": {
|
||||
"type": "belongsTo",
|
||||
"entity": "User"
|
||||
},
|
||||
"targetList": {
|
||||
"type": "belongsTo",
|
||||
"entity": "TargetList"
|
||||
},
|
||||
"campaign": {
|
||||
"type": "belongsTo",
|
||||
"entity": "Campaign"
|
||||
},
|
||||
"targetTeam": {
|
||||
"type": "belongsTo",
|
||||
"entity": "Team"
|
||||
},
|
||||
"inboundEmail": {
|
||||
"type": "belongsTo",
|
||||
"entity": "InboundEmail"
|
||||
},
|
||||
"optInConfirmationEmailTemplate": {
|
||||
"type": "belongsTo",
|
||||
"entity": "EmailTemplate"
|
||||
},
|
||||
"logRecords": {
|
||||
"type": "hasMany",
|
||||
"entity": "LeadCaptureLogRecord",
|
||||
"foreign": "leadCapture"
|
||||
}
|
||||
},
|
||||
"collection": {
|
||||
"orderBy": "name",
|
||||
"order": "asc"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,43 @@
|
||||
{
|
||||
"fields": {
|
||||
"number": {
|
||||
"type": "autoincrement",
|
||||
"index": true,
|
||||
"readOnly": true
|
||||
},
|
||||
"data": {
|
||||
"type": "jsonObject"
|
||||
},
|
||||
"isCreated": {
|
||||
"type": "bool"
|
||||
},
|
||||
"description": {
|
||||
"type": "text"
|
||||
},
|
||||
"createdAt": {
|
||||
"type": "datetime",
|
||||
"readOnly": true
|
||||
},
|
||||
"leadCapture": {
|
||||
"type": "link"
|
||||
},
|
||||
"target": {
|
||||
"type": "linkParent"
|
||||
}
|
||||
},
|
||||
"links": {
|
||||
"leadCapture": {
|
||||
"type": "belongsTo",
|
||||
"entity": "LeadCapture",
|
||||
"foreign": "logRecords"
|
||||
},
|
||||
"target": {
|
||||
"type": "belongsToParent",
|
||||
"entityList": ["Contact", "Lead"]
|
||||
}
|
||||
},
|
||||
"collection": {
|
||||
"orderBy": "number",
|
||||
"order": "desc"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,44 @@
|
||||
{
|
||||
"fields": {
|
||||
"entityType": {
|
||||
"type": "varchar",
|
||||
"required": true
|
||||
},
|
||||
"action": {
|
||||
"type": "varchar",
|
||||
"required": true
|
||||
},
|
||||
"status": {
|
||||
"type": "enum",
|
||||
"options": ["Pending", "Running", "Success", "Failed"],
|
||||
"default": "Pending"
|
||||
},
|
||||
"data": {
|
||||
"type": "jsonObject"
|
||||
},
|
||||
"params": {
|
||||
"type": "text"
|
||||
},
|
||||
"createdAt": {
|
||||
"type": "datetime",
|
||||
"readOnly": true
|
||||
},
|
||||
"createdBy": {
|
||||
"type": "link",
|
||||
"required": true
|
||||
},
|
||||
"processedCount": {
|
||||
"type": "int"
|
||||
},
|
||||
"notifyOnFinish": {
|
||||
"type": "bool",
|
||||
"default": false
|
||||
}
|
||||
},
|
||||
"links": {
|
||||
"createdBy": {
|
||||
"type": "belongsTo",
|
||||
"entity": "User"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
{
|
||||
"fields": {
|
||||
"entityType": {
|
||||
"type": "varchar",
|
||||
"index": true,
|
||||
"maxLength": 100
|
||||
},
|
||||
"fieldName": {
|
||||
"type": "varchar",
|
||||
"maxLength": 100
|
||||
},
|
||||
"value": {
|
||||
"type": "int",
|
||||
"default": 1
|
||||
}
|
||||
},
|
||||
"indexes": {
|
||||
"entityTypeFieldName": {
|
||||
"columns": ["entityType", "fieldName"]
|
||||
}
|
||||
},
|
||||
"hooksDisabled": true
|
||||
}
|
||||
262
application/Espo/Resources/metadata/entityDefs/Note.json
Normal file
262
application/Espo/Resources/metadata/entityDefs/Note.json
Normal file
@@ -0,0 +1,262 @@
|
||||
{
|
||||
"fields": {
|
||||
"post": {
|
||||
"type": "text",
|
||||
"rows": 100000,
|
||||
"view": "views/note/fields/post",
|
||||
"preview": true,
|
||||
"attachmentField": "attachments",
|
||||
"customizationDefaultDisabled": true,
|
||||
"customizationRequiredDisabled": true,
|
||||
"customizationInlineEditDisabledDisabled": true,
|
||||
"customizationTooltipTextDisabled": true,
|
||||
"customizationSeeMoreDisabledDisabled": true,
|
||||
"customizationRowsDisabled": true,
|
||||
"customizationDisplayRawTextDisabled": true,
|
||||
"customizationReadOnlyDisabled": true,
|
||||
"dynamicLogicDisabled": true
|
||||
},
|
||||
"data": {
|
||||
"type": "jsonObject",
|
||||
"readOnly": true,
|
||||
"customizationDisabled": true
|
||||
},
|
||||
"type": {
|
||||
"type": "enum",
|
||||
"readOnly": true,
|
||||
"view": "views/note/fields/type",
|
||||
"options": [
|
||||
"Post",
|
||||
"Create",
|
||||
"CreateRelated",
|
||||
"Update",
|
||||
"Assign",
|
||||
"Relate",
|
||||
"Unrelate",
|
||||
"EmailReceived",
|
||||
"EmailSent"
|
||||
],
|
||||
"maxLength": 24,
|
||||
"customizationDisabled": true,
|
||||
"default": "Post"
|
||||
},
|
||||
"targetType": {
|
||||
"type": "enum",
|
||||
"options": [
|
||||
"self",
|
||||
"all",
|
||||
"teams",
|
||||
"users",
|
||||
"portals"
|
||||
],
|
||||
"maxLength": 7,
|
||||
"customizationDisabled": true,
|
||||
"readOnlyAfterCreate": true
|
||||
},
|
||||
"parent": {
|
||||
"type": "linkParent",
|
||||
"customizationDisabled": true,
|
||||
"view": "views/note/fields/parent",
|
||||
"readOnlyAfterCreate": true
|
||||
},
|
||||
"related": {
|
||||
"type": "linkParent",
|
||||
"readOnly": true,
|
||||
"customizationDisabled": true,
|
||||
"view": "views/note/fields/related"
|
||||
},
|
||||
"attachments": {
|
||||
"type": "attachmentMultiple",
|
||||
"view": "views/stream/fields/attachment-multiple",
|
||||
"customizationRequiredDisabled": true,
|
||||
"customizationPreviewSizeDisabled": true,
|
||||
"customizationInlineEditDisabledDisabled": true,
|
||||
"customizationTooltipTextDisabled": true,
|
||||
"dynamicLogicDisabled": true
|
||||
},
|
||||
"number": {
|
||||
"type": "autoincrement",
|
||||
"index": true,
|
||||
"dbType": "bigint",
|
||||
"readOnly": true,
|
||||
"customizationDisabled": true
|
||||
},
|
||||
"teams": {
|
||||
"type": "linkMultiple",
|
||||
"noLoad": true,
|
||||
"customizationDisabled": true,
|
||||
"readOnlyAfterCreate": true
|
||||
},
|
||||
"portals": {
|
||||
"type": "linkMultiple",
|
||||
"noLoad": true,
|
||||
"customizationDisabled": true,
|
||||
"readOnlyAfterCreate": true
|
||||
},
|
||||
"users": {
|
||||
"type": "linkMultiple",
|
||||
"noLoad": true,
|
||||
"customizationDisabled": true,
|
||||
"readOnlyAfterCreate": true
|
||||
},
|
||||
"isGlobal": {
|
||||
"type": "bool",
|
||||
"customizationDisabled": true,
|
||||
"readOnlyAfterCreate": true
|
||||
},
|
||||
"createdByGender": {
|
||||
"type": "foreign",
|
||||
"link": "createdBy",
|
||||
"field": "gender",
|
||||
"customizationDisabled": true
|
||||
},
|
||||
"notifiedUserIdList": {
|
||||
"type": "jsonArray",
|
||||
"notStorable": true,
|
||||
"utility": true,
|
||||
"customizationDisabled": true,
|
||||
"readOnly": true
|
||||
},
|
||||
"isInternal": {
|
||||
"type": "bool",
|
||||
"customizationDisabled": true,
|
||||
"readOnlyAfterCreate": true
|
||||
},
|
||||
"isPinned": {
|
||||
"type": "bool",
|
||||
"customizationDisabled": true,
|
||||
"readOnly": true
|
||||
},
|
||||
"reactionCounts": {
|
||||
"type": "jsonObject",
|
||||
"notStorable": true,
|
||||
"readOnly": true,
|
||||
"customizationDisabled": true,
|
||||
"utility": true
|
||||
},
|
||||
"myReactions": {
|
||||
"type": "jsonArray",
|
||||
"notStorable": true,
|
||||
"readOnly": true,
|
||||
"customizationDisabled": true,
|
||||
"utility": true
|
||||
},
|
||||
"createdAt": {
|
||||
"type": "datetime",
|
||||
"readOnly": true,
|
||||
"customizationDisabled": true
|
||||
},
|
||||
"modifiedAt": {
|
||||
"type": "datetime",
|
||||
"readOnly": true,
|
||||
"customizationDisabled": true
|
||||
},
|
||||
"createdBy": {
|
||||
"type": "link",
|
||||
"readOnly": true,
|
||||
"customizationDisabled": true,
|
||||
"view": "views/fields/user"
|
||||
},
|
||||
"modifiedBy": {
|
||||
"type": "link",
|
||||
"readOnly": true,
|
||||
"customizationDisabled": true,
|
||||
"view": "views/fields/user"
|
||||
}
|
||||
},
|
||||
"links": {
|
||||
"createdBy": {
|
||||
"type": "belongsTo",
|
||||
"entity": "User"
|
||||
},
|
||||
"modifiedBy": {
|
||||
"type": "belongsTo",
|
||||
"entity": "User"
|
||||
},
|
||||
"attachments": {
|
||||
"type": "hasChildren",
|
||||
"entity": "Attachment",
|
||||
"relationName": "attachments",
|
||||
"foreign": "parent"
|
||||
},
|
||||
"parent": {
|
||||
"type": "belongsToParent",
|
||||
"foreign": "notes"
|
||||
},
|
||||
"superParent": {
|
||||
"type": "belongsToParent"
|
||||
},
|
||||
"related": {
|
||||
"type": "belongsToParent"
|
||||
},
|
||||
"teams": {
|
||||
"type": "hasMany",
|
||||
"entity": "Team",
|
||||
"foreign": "notes"
|
||||
},
|
||||
"portals": {
|
||||
"type": "hasMany",
|
||||
"entity": "Portal",
|
||||
"foreign": "notes"
|
||||
},
|
||||
"users": {
|
||||
"type": "hasMany",
|
||||
"entity": "User",
|
||||
"foreign": "notes"
|
||||
}
|
||||
},
|
||||
"collection": {
|
||||
"orderBy": "number",
|
||||
"order": "desc",
|
||||
"textFilterFields": ["post"],
|
||||
"fullTextSearch": true,
|
||||
"fullTextSearchOrderType": "original"
|
||||
},
|
||||
"statusStyles": {
|
||||
"Lead": {},
|
||||
"Case": {},
|
||||
"Opportunity": {},
|
||||
"Task": {}
|
||||
},
|
||||
"indexes": {
|
||||
"createdAt": {
|
||||
"type": "index",
|
||||
"columns": ["createdAt"]
|
||||
},
|
||||
"createdByNumber": {
|
||||
"columns": ["createdById", "number"]
|
||||
},
|
||||
"type": {
|
||||
"type": "index",
|
||||
"columns": ["type"]
|
||||
},
|
||||
"targetType": {
|
||||
"type": "index",
|
||||
"columns": ["targetType"]
|
||||
},
|
||||
"parentId": {
|
||||
"type": "index",
|
||||
"columns": ["parentId"]
|
||||
},
|
||||
"parentType": {
|
||||
"type": "index",
|
||||
"columns": ["parentType"]
|
||||
},
|
||||
"relatedId": {
|
||||
"type": "index",
|
||||
"columns": ["relatedId"]
|
||||
},
|
||||
"relatedType": {
|
||||
"type": "index",
|
||||
"columns": ["relatedType"]
|
||||
},
|
||||
"superParentType": {
|
||||
"type": "index",
|
||||
"columns": ["superParentType"]
|
||||
},
|
||||
"superParentId": {
|
||||
"type": "index",
|
||||
"columns": ["superParentId"]
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,96 @@
|
||||
{
|
||||
"fields": {
|
||||
"number": {
|
||||
"type": "autoincrement",
|
||||
"dbType": "bigint",
|
||||
"index": true
|
||||
},
|
||||
"data": {
|
||||
"type": "jsonObject"
|
||||
},
|
||||
"noteData": {
|
||||
"type": "jsonObject",
|
||||
"notStorable": true,
|
||||
"orderDisabled": true
|
||||
},
|
||||
"type": {
|
||||
"type": "varchar"
|
||||
},
|
||||
"read": {
|
||||
"type": "bool"
|
||||
},
|
||||
"emailIsProcessed": {
|
||||
"type": "bool"
|
||||
},
|
||||
"user": {
|
||||
"type": "link"
|
||||
},
|
||||
"createdAt": {
|
||||
"type": "datetime",
|
||||
"readOnly": true
|
||||
},
|
||||
"message": {
|
||||
"type": "text"
|
||||
},
|
||||
"related": {
|
||||
"type": "linkParent",
|
||||
"readOnly": true
|
||||
},
|
||||
"relatedParent": {
|
||||
"type": "linkParent",
|
||||
"readOnly": true
|
||||
},
|
||||
"actionId": {
|
||||
"type": "varchar",
|
||||
"maxLength": 36,
|
||||
"readOnly": true,
|
||||
"index": true
|
||||
},
|
||||
"groupedCount": {
|
||||
"type": "int",
|
||||
"notStorable": true,
|
||||
"readOnly": true,
|
||||
"utility": true
|
||||
},
|
||||
"createdBy": {
|
||||
"type": "link",
|
||||
"readOnly": true,
|
||||
"view": "views/fields/user"
|
||||
}
|
||||
},
|
||||
"links": {
|
||||
"createdBy": {
|
||||
"type": "belongsTo",
|
||||
"entity": "User",
|
||||
"noJoin": true
|
||||
},
|
||||
"user": {
|
||||
"type": "belongsTo",
|
||||
"entity": "User"
|
||||
},
|
||||
"related": {
|
||||
"type": "belongsToParent"
|
||||
},
|
||||
"relatedParent": {
|
||||
"type": "belongsToParent"
|
||||
}
|
||||
},
|
||||
"collection": {
|
||||
"orderBy": "number",
|
||||
"order": "desc"
|
||||
},
|
||||
"indexes": {
|
||||
"createdAt": {
|
||||
"type": "index",
|
||||
"columns": ["createdAt"]
|
||||
},
|
||||
"user": {
|
||||
"type": "index",
|
||||
"columns": ["userId", "number"]
|
||||
},
|
||||
"userIdReadRelatedParentType": {
|
||||
"type": "index",
|
||||
"columns": ["userId", "deleted", "read", "relatedParentType"]
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,91 @@
|
||||
{
|
||||
"fields": {
|
||||
"name": {
|
||||
"type": "varchar",
|
||||
"required": true,
|
||||
"maxLength": 100
|
||||
},
|
||||
"provider": {
|
||||
"type": "link",
|
||||
"required": true,
|
||||
"readOnlyAfterCreate": true
|
||||
},
|
||||
"user": {
|
||||
"type": "link",
|
||||
"readOnly": true
|
||||
},
|
||||
"hasAccessToken": {
|
||||
"type": "bool",
|
||||
"readOnly": true,
|
||||
"notStorable": true,
|
||||
"orderDisabled": true,
|
||||
"directAccessDisabled": true,
|
||||
"select": {
|
||||
"select": "IS_NOT_NULL:(accessToken)"
|
||||
}
|
||||
},
|
||||
"providerIsActive": {
|
||||
"type": "foreign",
|
||||
"link": "provider",
|
||||
"field": "isActive"
|
||||
},
|
||||
"data": {
|
||||
"type": "jsonObject",
|
||||
"notStorable": true,
|
||||
"directAccessDisabled": true,
|
||||
"readOnly": true
|
||||
},
|
||||
"accessToken": {
|
||||
"type": "password",
|
||||
"readOnly": true,
|
||||
"dbType": "text"
|
||||
},
|
||||
"refreshToken": {
|
||||
"type": "password",
|
||||
"readOnly": true,
|
||||
"dbType": "text"
|
||||
},
|
||||
"description": {
|
||||
"type": "text"
|
||||
},
|
||||
"expiresAt": {
|
||||
"type": "datetime",
|
||||
"readOnly": true
|
||||
},
|
||||
"createdAt": {
|
||||
"type": "datetime",
|
||||
"readOnly": true
|
||||
},
|
||||
"modifiedAt": {
|
||||
"type": "datetime",
|
||||
"readOnly": true
|
||||
},
|
||||
"createdBy": {
|
||||
"type": "link",
|
||||
"readOnly": true
|
||||
},
|
||||
"modifiedBy": {
|
||||
"type": "link",
|
||||
"readOnly": true
|
||||
}
|
||||
},
|
||||
"links": {
|
||||
"provider": {
|
||||
"type": "belongsTo",
|
||||
"entity": "OAuthProvider",
|
||||
"foreign": "accounts"
|
||||
},
|
||||
"user": {
|
||||
"type": "belongsTo",
|
||||
"entity": "User"
|
||||
},
|
||||
"createdBy": {
|
||||
"type": "belongsTo",
|
||||
"entity": "User"
|
||||
},
|
||||
"modifiedBy": {
|
||||
"type": "belongsTo",
|
||||
"entity": "User"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,104 @@
|
||||
{
|
||||
"fields": {
|
||||
"name": {
|
||||
"type": "varchar",
|
||||
"required": true,
|
||||
"maxLength": 100
|
||||
},
|
||||
"isActive": {
|
||||
"type": "bool",
|
||||
"default": true
|
||||
},
|
||||
"clientId": {
|
||||
"type": "varchar",
|
||||
"maxLength": 150
|
||||
},
|
||||
"clientSecret": {
|
||||
"type": "password",
|
||||
"maxLength": 512,
|
||||
"dbType": "text"
|
||||
},
|
||||
"authorizationEndpoint": {
|
||||
"type": "url",
|
||||
"maxLength": 512,
|
||||
"dbType": "text",
|
||||
"strip": false
|
||||
},
|
||||
"tokenEndpoint": {
|
||||
"type": "url",
|
||||
"maxLength": 512,
|
||||
"dbType": "text",
|
||||
"strip": false
|
||||
},
|
||||
"authorizationRedirectUri": {
|
||||
"type": "url",
|
||||
"notStorable": true,
|
||||
"readOnly": true,
|
||||
"copyToClipboard": true,
|
||||
"directAccessDisabled": true
|
||||
},
|
||||
"authorizationPrompt": {
|
||||
"type": "enum",
|
||||
"default": "none",
|
||||
"options": [
|
||||
"none",
|
||||
"consent",
|
||||
"login",
|
||||
"select_account"
|
||||
],
|
||||
"maxLength": 14
|
||||
},
|
||||
"scopes": {
|
||||
"type": "array",
|
||||
"noEmptyString": true,
|
||||
"allowCustomOptions": true,
|
||||
"storeArrayValues": false,
|
||||
"displayAsList": true,
|
||||
"maxItemLength": 255
|
||||
},
|
||||
"authorizationParams": {
|
||||
"type": "jsonObject",
|
||||
"view": "views/o-auth-provider/fields/authorization-params",
|
||||
"tooltip": true
|
||||
},
|
||||
"scopeSeparator": {
|
||||
"type": "varchar",
|
||||
"maxLength": 1
|
||||
},
|
||||
"description": {
|
||||
"type": "text"
|
||||
},
|
||||
"createdAt": {
|
||||
"type": "datetime",
|
||||
"readOnly": true
|
||||
},
|
||||
"modifiedAt": {
|
||||
"type": "datetime",
|
||||
"readOnly": true
|
||||
},
|
||||
"createdBy": {
|
||||
"type": "link",
|
||||
"readOnly": true
|
||||
},
|
||||
"modifiedBy": {
|
||||
"type": "link",
|
||||
"readOnly": true
|
||||
}
|
||||
},
|
||||
"links": {
|
||||
"accounts": {
|
||||
"type": "hasMany",
|
||||
"entity": "OAuthAccount",
|
||||
"foreign": "provider",
|
||||
"readOnly": true
|
||||
},
|
||||
"createdBy": {
|
||||
"type": "belongsTo",
|
||||
"entity": "User"
|
||||
},
|
||||
"modifiedBy": {
|
||||
"type": "belongsTo",
|
||||
"entity": "User"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
{
|
||||
"fields": {
|
||||
"requestId": {
|
||||
"type": "varchar",
|
||||
"maxLength": 64,
|
||||
"index": true
|
||||
},
|
||||
"user": {
|
||||
"type": "link",
|
||||
"readOnly": true,
|
||||
"index": true
|
||||
},
|
||||
"url": {
|
||||
"type": "url"
|
||||
},
|
||||
"createdAt": {
|
||||
"type": "datetime",
|
||||
"readOnly": true
|
||||
}
|
||||
},
|
||||
"links": {
|
||||
"user": {
|
||||
"type": "belongsTo",
|
||||
"entity": "User"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
{
|
||||
"fields": {
|
||||
"name": {
|
||||
"type": "varchar",
|
||||
"required": true,
|
||||
"maxLength": 36,
|
||||
"index": true
|
||||
},
|
||||
"type": {
|
||||
"type": "enum"
|
||||
},
|
||||
"numeric": {
|
||||
"type": "varchar",
|
||||
"maxLength": 36,
|
||||
"index": true
|
||||
},
|
||||
"invalid": {
|
||||
"type": "bool"
|
||||
},
|
||||
"optOut": {
|
||||
"type": "bool"
|
||||
},
|
||||
"primary": {
|
||||
"type": "bool",
|
||||
"notStorable": true
|
||||
}
|
||||
},
|
||||
"links": {},
|
||||
"collection": {
|
||||
"orderBy": "name",
|
||||
"order": "asc"
|
||||
},
|
||||
"hooksDisabled": true
|
||||
}
|
||||
177
application/Espo/Resources/metadata/entityDefs/Portal.json
Normal file
177
application/Espo/Resources/metadata/entityDefs/Portal.json
Normal file
@@ -0,0 +1,177 @@
|
||||
{
|
||||
"fields": {
|
||||
"name": {
|
||||
"type": "varchar",
|
||||
"maxLength": 100,
|
||||
"pattern": "$noBadCharacters"
|
||||
},
|
||||
"logo": {
|
||||
"type": "image"
|
||||
},
|
||||
"url": {
|
||||
"type": "url",
|
||||
"notStorable": true,
|
||||
"readOnly": true,
|
||||
"loaderClassName": "Espo\\Classes\\FieldProcessing\\Portal\\UrlLoader"
|
||||
},
|
||||
"customId": {
|
||||
"type": "varchar",
|
||||
"maxLength": 36,
|
||||
"view": "views/portal/fields/custom-id",
|
||||
"index": true
|
||||
},
|
||||
"isActive": {
|
||||
"type": "bool",
|
||||
"default": true
|
||||
},
|
||||
"isDefault": {
|
||||
"type": "bool",
|
||||
"default": false,
|
||||
"notStorable": true
|
||||
},
|
||||
"portalRoles": {
|
||||
"type": "linkMultiple"
|
||||
},
|
||||
"tabList": {
|
||||
"type": "array",
|
||||
"view": "views/portal/fields/tab-list",
|
||||
"validationList": [
|
||||
"array",
|
||||
"required"
|
||||
],
|
||||
"suppressValidationList": [
|
||||
"arrayOfString"
|
||||
],
|
||||
"doNotStoreArrayValues": true
|
||||
},
|
||||
"quickCreateList": {
|
||||
"type": "array",
|
||||
"translation": "Global.scopeNames",
|
||||
"view": "views/portal/fields/quick-create-list"
|
||||
},
|
||||
"applicationName": {
|
||||
"type": "varchar"
|
||||
},
|
||||
"companyLogo": {
|
||||
"type": "image"
|
||||
},
|
||||
"theme": {
|
||||
"type": "enum",
|
||||
"view": "views/preferences/fields/theme",
|
||||
"translation": "Global.themes"
|
||||
},
|
||||
"themeParams": {
|
||||
"type": "jsonObject"
|
||||
},
|
||||
"language": {
|
||||
"type": "enum",
|
||||
"view": "views/preferences/fields/language"
|
||||
},
|
||||
"timeZone": {
|
||||
"type": "enum",
|
||||
"view": "views/preferences/fields/time-zone"
|
||||
},
|
||||
"dateFormat": {
|
||||
"type": "enum",
|
||||
"view": "views/preferences/fields/date-format"
|
||||
},
|
||||
"timeFormat": {
|
||||
"type": "enum",
|
||||
"view": "views/preferences/fields/time-format"
|
||||
},
|
||||
"weekStart": {
|
||||
"type": "enumInt",
|
||||
"options": [0, 1, 2, 3, 4, 5, 6],
|
||||
"default": -1,
|
||||
"view": "views/preferences/fields/week-start"
|
||||
},
|
||||
"defaultCurrency": {
|
||||
"type": "enum",
|
||||
"view": "views/preferences/fields/default-currency"
|
||||
},
|
||||
"dashboardLayout": {
|
||||
"type": "jsonArray",
|
||||
"view": "views/settings/fields/dashboard-layout"
|
||||
},
|
||||
"dashletsOptions": {
|
||||
"type": "jsonObject",
|
||||
"utility": true
|
||||
},
|
||||
"customUrl": {
|
||||
"type": "url"
|
||||
},
|
||||
"layoutSet": {
|
||||
"type": "link",
|
||||
"tooltip": true
|
||||
},
|
||||
"authenticationProvider": {
|
||||
"type": "link"
|
||||
},
|
||||
"authTokenLifetime": {
|
||||
"type": "float",
|
||||
"min": 0,
|
||||
"tooltip": "Settings.authTokenMaxIdleTime"
|
||||
},
|
||||
"authTokenMaxIdleTime": {
|
||||
"type": "float",
|
||||
"min": 0,
|
||||
"tooltip": "Settings.authTokenMaxIdleTime"
|
||||
},
|
||||
"modifiedAt": {
|
||||
"type": "datetime",
|
||||
"readOnly": true
|
||||
},
|
||||
"modifiedBy": {
|
||||
"type": "link",
|
||||
"readOnly": true,
|
||||
"view": "views/fields/user"
|
||||
},
|
||||
"createdAt": {
|
||||
"type": "datetime",
|
||||
"readOnly": true
|
||||
},
|
||||
"createdBy": {
|
||||
"type": "link",
|
||||
"readOnly": true,
|
||||
"view": "views/fields/user"
|
||||
}
|
||||
},
|
||||
"links": {
|
||||
"createdBy": {
|
||||
"type": "belongsTo",
|
||||
"entity": "User"
|
||||
},
|
||||
"modifiedBy": {
|
||||
"type": "belongsTo",
|
||||
"entity": "User"
|
||||
},
|
||||
"users": {
|
||||
"type": "hasMany",
|
||||
"entity": "User",
|
||||
"foreign": "portals"
|
||||
},
|
||||
"portalRoles": {
|
||||
"type": "hasMany",
|
||||
"entity": "PortalRole",
|
||||
"foreign": "portals"
|
||||
},
|
||||
"notes": {
|
||||
"type": "hasMany",
|
||||
"entity": "Note",
|
||||
"foreign": "portals"
|
||||
},
|
||||
"layoutSet": {
|
||||
"type": "belongsTo",
|
||||
"entity": "LayoutSet",
|
||||
"foreign": "portals"
|
||||
},
|
||||
"authenticationProvider": {
|
||||
"type": "belongsTo",
|
||||
"entity": "AuthenticationProvider"
|
||||
}
|
||||
},
|
||||
"collection": {
|
||||
"orderBy": "name",
|
||||
"order": "asc"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,60 @@
|
||||
{
|
||||
"fields": {
|
||||
"name": {
|
||||
"maxLength": 150,
|
||||
"required": true,
|
||||
"type": "varchar",
|
||||
"pattern": "$noBadCharacters"
|
||||
},
|
||||
"data": {
|
||||
"type": "jsonObject",
|
||||
"audited": true
|
||||
},
|
||||
"fieldData": {
|
||||
"type": "jsonObject",
|
||||
"audited": true
|
||||
},
|
||||
"exportPermission": {
|
||||
"type": "enum",
|
||||
"options": ["not-set", "yes", "no"],
|
||||
"default": "not-set",
|
||||
"tooltip": "Role.exportPermission",
|
||||
"translation": "Role.options.levelList",
|
||||
"view": "views/role/fields/permission",
|
||||
"audited": true
|
||||
},
|
||||
"massUpdatePermission": {
|
||||
"type": "enum",
|
||||
"options": ["not-set", "yes", "no"],
|
||||
"default": "not-set",
|
||||
"tooltip": "Role.massUpdatePermission",
|
||||
"translation": "Role.options.levelList",
|
||||
"view": "views/role/fields/permission",
|
||||
"audited": true
|
||||
},
|
||||
"createdAt": {
|
||||
"type": "datetime",
|
||||
"readOnly": true
|
||||
},
|
||||
"modifiedAt": {
|
||||
"type": "datetime",
|
||||
"readOnly": true
|
||||
}
|
||||
},
|
||||
"links": {
|
||||
"users": {
|
||||
"type": "hasMany",
|
||||
"entity": "User",
|
||||
"foreign": "portalRoles"
|
||||
},
|
||||
"portals": {
|
||||
"type": "hasMany",
|
||||
"entity": "Portal",
|
||||
"foreign": "portalRoles"
|
||||
}
|
||||
},
|
||||
"collection": {
|
||||
"orderBy": "name",
|
||||
"order": "asc"
|
||||
}
|
||||
}
|
||||
241
application/Espo/Resources/metadata/entityDefs/Preferences.json
Normal file
241
application/Espo/Resources/metadata/entityDefs/Preferences.json
Normal file
@@ -0,0 +1,241 @@
|
||||
{
|
||||
"fields": {
|
||||
"timeZone": {
|
||||
"type": "enum",
|
||||
"view": "views/preferences/fields/time-zone"
|
||||
},
|
||||
"dateFormat": {
|
||||
"type": "enum",
|
||||
"view": "views/preferences/fields/date-format"
|
||||
},
|
||||
"timeFormat": {
|
||||
"type": "enum",
|
||||
"view": "views/preferences/fields/time-format"
|
||||
},
|
||||
"weekStart": {
|
||||
"type": "enumInt",
|
||||
"options": [0, 1, 2, 3, 4, 5, 6],
|
||||
"default": -1,
|
||||
"view": "views/preferences/fields/week-start"
|
||||
},
|
||||
"defaultCurrency": {
|
||||
"type": "enum",
|
||||
"view": "views/preferences/fields/default-currency"
|
||||
},
|
||||
"thousandSeparator": {
|
||||
"type": "varchar",
|
||||
"default": ",",
|
||||
"maxLength": 1,
|
||||
"view": "views/settings/fields/thousand-separator",
|
||||
"options": [
|
||||
".",
|
||||
",",
|
||||
"'"
|
||||
],
|
||||
"validatorClassNameList": [
|
||||
"Espo\\Classes\\FieldValidators\\Settings\\ThousandSeparator\\Valid"
|
||||
]
|
||||
},
|
||||
"decimalMark": {
|
||||
"type": "varchar",
|
||||
"default": ".",
|
||||
"required": true,
|
||||
"maxLength": 1,
|
||||
"options": [
|
||||
".",
|
||||
","
|
||||
]
|
||||
},
|
||||
"dashboardLayout": {
|
||||
"type": "jsonArray",
|
||||
"view": "views/settings/fields/dashboard-layout"
|
||||
},
|
||||
"dashletsOptions": {
|
||||
"type": "jsonObject"
|
||||
},
|
||||
"dashboardLocked": {
|
||||
"type": "bool"
|
||||
},
|
||||
"importParams": {
|
||||
"type": "jsonObject"
|
||||
},
|
||||
"sharedCalendarUserList": {
|
||||
"type": "jsonArray"
|
||||
},
|
||||
"calendarViewDataList": {
|
||||
"type": "jsonArray"
|
||||
},
|
||||
"presetFilters": {
|
||||
"type": "jsonObject"
|
||||
},
|
||||
"language": {
|
||||
"type": "enum",
|
||||
"view": "views/preferences/fields/language"
|
||||
},
|
||||
"exportDelimiter": {
|
||||
"type": "varchar",
|
||||
"default": ",",
|
||||
"required": true,
|
||||
"maxLength": 1,
|
||||
"options": [
|
||||
",",
|
||||
";",
|
||||
"\\t",
|
||||
"|"
|
||||
]
|
||||
},
|
||||
"receiveAssignmentEmailNotifications": {
|
||||
"type": "bool",
|
||||
"default": true
|
||||
},
|
||||
"receiveMentionEmailNotifications": {
|
||||
"type": "bool",
|
||||
"default": true
|
||||
},
|
||||
"receiveStreamEmailNotifications": {
|
||||
"type": "bool",
|
||||
"default": true
|
||||
},
|
||||
"assignmentNotificationsIgnoreEntityTypeList": {
|
||||
"type": "checklist",
|
||||
"translation": "Global.scopeNamesPlural",
|
||||
"view": "views/preferences/fields/assignment-notifications-ignore-entity-type-list",
|
||||
"default": []
|
||||
},
|
||||
"assignmentEmailNotificationsIgnoreEntityTypeList": {
|
||||
"type": "checklist",
|
||||
"translation": "Global.scopeNamesPlural",
|
||||
"view": "views/preferences/fields/assignment-email-notifications-ignore-entity-type-list"
|
||||
},
|
||||
"reactionNotifications": {
|
||||
"type": "bool",
|
||||
"default": true
|
||||
},
|
||||
"autoFollowEntityTypeList": {
|
||||
"type": "multiEnum",
|
||||
"view": "views/preferences/fields/auto-follow-entity-type-list",
|
||||
"translation": "Global.scopeNamesPlural",
|
||||
"notStorable": true,
|
||||
"tooltip": true
|
||||
},
|
||||
"signature": {
|
||||
"type": "wysiwyg",
|
||||
"view": "views/preferences/fields/signature"
|
||||
},
|
||||
"defaultReminders": {
|
||||
"type": "jsonArray",
|
||||
"view": "crm:views/meeting/fields/reminders",
|
||||
"default": [],
|
||||
"validatorClassNameList": [
|
||||
"Espo\\Modules\\Crm\\Classes\\FieldValidators\\Event\\Reminders\\Valid",
|
||||
"Espo\\Modules\\Crm\\Classes\\FieldValidators\\Event\\Reminders\\MaxCount"
|
||||
]
|
||||
},
|
||||
"defaultRemindersTask": {
|
||||
"type": "jsonArray",
|
||||
"view": "crm:views/meeting/fields/reminders",
|
||||
"default": [],
|
||||
"validatorClassNameList": [
|
||||
"Espo\\Modules\\Crm\\Classes\\FieldValidators\\Event\\Reminders\\Valid",
|
||||
"Espo\\Modules\\Crm\\Classes\\FieldValidators\\Event\\Reminders\\MaxCount"
|
||||
]
|
||||
},
|
||||
"theme": {
|
||||
"type": "enum",
|
||||
"view": "views/preferences/fields/theme",
|
||||
"translation": "Global.themes"
|
||||
},
|
||||
"themeParams": {
|
||||
"type": "jsonObject"
|
||||
},
|
||||
"pageContentWidth": {
|
||||
"type": "enum",
|
||||
"options": [
|
||||
"",
|
||||
"Wide"
|
||||
]
|
||||
},
|
||||
"useCustomTabList": {
|
||||
"type": "bool",
|
||||
"default": false
|
||||
},
|
||||
"addCustomTabs": {
|
||||
"type": "bool",
|
||||
"default": false,
|
||||
"tooltip": true
|
||||
},
|
||||
"tabList": {
|
||||
"type": "array",
|
||||
"view": "views/preferences/fields/tab-list",
|
||||
"validationList": [
|
||||
"array",
|
||||
"required"
|
||||
],
|
||||
"mandatoryValidationList": [
|
||||
"array"
|
||||
]
|
||||
},
|
||||
"emailReplyToAllByDefault": {
|
||||
"type": "bool",
|
||||
"default": true
|
||||
},
|
||||
"emailReplyForceHtml": {
|
||||
"type": "bool",
|
||||
"default": true
|
||||
},
|
||||
"isPortalUser": {
|
||||
"type": "bool",
|
||||
"notStorable": true
|
||||
},
|
||||
"doNotFillAssignedUserIfNotRequired": {
|
||||
"type": "bool",
|
||||
"tooltip": true,
|
||||
"default": true
|
||||
},
|
||||
"followEntityOnStreamPost": {
|
||||
"type": "bool",
|
||||
"default": true
|
||||
},
|
||||
"followCreatedEntities": {
|
||||
"type": "bool",
|
||||
"tooltip": true
|
||||
},
|
||||
"followCreatedEntityTypeList": {
|
||||
"type": "multiEnum",
|
||||
"view": "views/preferences/fields/auto-follow-entity-type-list",
|
||||
"translation": "Global.scopeNamesPlural",
|
||||
"default": [],
|
||||
"tooltip": true
|
||||
},
|
||||
"emailUseExternalClient": {
|
||||
"type": "bool",
|
||||
"default": false
|
||||
},
|
||||
"scopeColorsDisabled": {
|
||||
"type": "bool",
|
||||
"default": false
|
||||
},
|
||||
"tabColorsDisabled": {
|
||||
"type": "bool",
|
||||
"default": false
|
||||
},
|
||||
"textSearchStoringDisabled": {
|
||||
"type": "bool",
|
||||
"default": false
|
||||
},
|
||||
"calendarSlotDuration": {
|
||||
"type": "enumInt",
|
||||
"options": ["", 15, 30],
|
||||
"default": null,
|
||||
"view": "views/preferences/fields/calendar-slot-duration"
|
||||
},
|
||||
"calendarScrollHour": {
|
||||
"type": "enumInt",
|
||||
"options": ["", 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 14, 15],
|
||||
"default": null,
|
||||
"view": "views/preferences/fields/calendar-scroll-hour"
|
||||
}
|
||||
},
|
||||
"noDeletedAttribute": true,
|
||||
"modifierClassName": "Espo\\Core\\Utils\\Database\\Schema\\EntityDefsModifiers\\JsonData"
|
||||
}
|
||||
157
application/Espo/Resources/metadata/entityDefs/Role.json
Normal file
157
application/Espo/Resources/metadata/entityDefs/Role.json
Normal file
@@ -0,0 +1,157 @@
|
||||
{
|
||||
"fields": {
|
||||
"name": {
|
||||
"maxLength": 150,
|
||||
"required": true,
|
||||
"type": "varchar",
|
||||
"pattern": "$noBadCharacters"
|
||||
},
|
||||
"info": {
|
||||
"type": "base",
|
||||
"orderDisabled": true,
|
||||
"notStorable": true,
|
||||
"readOnly": true,
|
||||
"view": "views/role/fields/info"
|
||||
},
|
||||
"assignmentPermission": {
|
||||
"type": "enum",
|
||||
"options": ["not-set", "all", "team", "no"],
|
||||
"default": "not-set",
|
||||
"tooltip": true,
|
||||
"translation": "Role.options.levelList",
|
||||
"view": "views/role/fields/permission",
|
||||
"audited": true
|
||||
},
|
||||
"userPermission": {
|
||||
"type": "enum",
|
||||
"options": ["not-set", "all", "team", "no"],
|
||||
"default": "not-set",
|
||||
"tooltip": true,
|
||||
"translation": "Role.options.levelList",
|
||||
"view": "views/role/fields/permission",
|
||||
"audited": true
|
||||
},
|
||||
"messagePermission": {
|
||||
"type": "enum",
|
||||
"options": ["not-set", "all", "team", "no"],
|
||||
"default": "not-set",
|
||||
"tooltip": true,
|
||||
"translation": "Role.options.levelList",
|
||||
"view": "views/role/fields/permission",
|
||||
"audited": true
|
||||
},
|
||||
"portalPermission": {
|
||||
"type": "enum",
|
||||
"options": ["not-set", "yes", "no"],
|
||||
"default": "not-set",
|
||||
"tooltip": true,
|
||||
"translation": "Role.options.levelList",
|
||||
"view": "views/role/fields/permission",
|
||||
"audited": true
|
||||
},
|
||||
"groupEmailAccountPermission": {
|
||||
"type": "enum",
|
||||
"options": ["not-set", "all", "team", "no"],
|
||||
"default": "not-set",
|
||||
"tooltip": true,
|
||||
"translation": "Role.options.levelList",
|
||||
"view": "views/role/fields/permission",
|
||||
"audited": true
|
||||
},
|
||||
"exportPermission": {
|
||||
"type": "enum",
|
||||
"options": ["not-set", "yes", "no"],
|
||||
"default": "not-set",
|
||||
"tooltip": true,
|
||||
"translation": "Role.options.levelList",
|
||||
"view": "views/role/fields/permission",
|
||||
"audited": true
|
||||
},
|
||||
"massUpdatePermission": {
|
||||
"type": "enum",
|
||||
"options": ["not-set", "yes", "no"],
|
||||
"default": "not-set",
|
||||
"tooltip": true,
|
||||
"translation": "Role.options.levelList",
|
||||
"view": "views/role/fields/permission",
|
||||
"audited": true
|
||||
},
|
||||
"dataPrivacyPermission": {
|
||||
"type": "enum",
|
||||
"options": ["not-set", "yes", "no"],
|
||||
"default": "not-set",
|
||||
"tooltip": true,
|
||||
"translation": "Role.options.levelList",
|
||||
"view": "views/role/fields/permission",
|
||||
"audited": true
|
||||
},
|
||||
"followerManagementPermission": {
|
||||
"type": "enum",
|
||||
"options": ["not-set", "all", "team", "no"],
|
||||
"default": "not-set",
|
||||
"tooltip": true,
|
||||
"translation": "Role.options.levelList",
|
||||
"view": "views/role/fields/permission",
|
||||
"audited": true
|
||||
},
|
||||
"auditPermission": {
|
||||
"type": "enum",
|
||||
"options": ["not-set", "yes", "no"],
|
||||
"default": "not-set",
|
||||
"tooltip": true,
|
||||
"translation": "Role.options.levelList",
|
||||
"view": "views/role/fields/permission",
|
||||
"audited": true
|
||||
},
|
||||
"mentionPermission": {
|
||||
"type": "enum",
|
||||
"options": ["not-set", "all", "team", "no"],
|
||||
"default": "not-set",
|
||||
"tooltip": true,
|
||||
"translation": "Role.options.levelList",
|
||||
"view": "views/role/fields/permission",
|
||||
"audited": true
|
||||
},
|
||||
"userCalendarPermission": {
|
||||
"type": "enum",
|
||||
"options": ["not-set", "all", "team", "no"],
|
||||
"default": "not-set",
|
||||
"tooltip": true,
|
||||
"translation": "Role.options.levelList",
|
||||
"view": "views/role/fields/permission",
|
||||
"audited": true
|
||||
},
|
||||
"data": {
|
||||
"type": "jsonObject",
|
||||
"audited": true
|
||||
},
|
||||
"fieldData": {
|
||||
"type": "jsonObject",
|
||||
"audited": true
|
||||
},
|
||||
"createdAt": {
|
||||
"type": "datetime",
|
||||
"readOnly": true
|
||||
},
|
||||
"modifiedAt": {
|
||||
"type": "datetime",
|
||||
"readOnly": true
|
||||
}
|
||||
},
|
||||
"links": {
|
||||
"users": {
|
||||
"type": "hasMany",
|
||||
"entity": "User",
|
||||
"foreign": "roles"
|
||||
},
|
||||
"teams": {
|
||||
"type": "hasMany",
|
||||
"entity": "Team",
|
||||
"foreign": "roles"
|
||||
}
|
||||
},
|
||||
"collection": {
|
||||
"orderBy": "name",
|
||||
"order": "asc"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,87 @@
|
||||
{
|
||||
"fields": {
|
||||
"name": {
|
||||
"type": "varchar",
|
||||
"required": true
|
||||
},
|
||||
"job": {
|
||||
"type": "varchar",
|
||||
"required": true,
|
||||
"view": "views/scheduled-job/fields/job"
|
||||
},
|
||||
"status": {
|
||||
"type": "enum",
|
||||
"options": ["Active", "Inactive"],
|
||||
"default": "Active",
|
||||
"style": {
|
||||
"Inactive": "info"
|
||||
},
|
||||
"audited": true
|
||||
},
|
||||
"scheduling": {
|
||||
"type": "varchar",
|
||||
"required": true,
|
||||
"view": "views/scheduled-job/fields/scheduling",
|
||||
"tooltip": true,
|
||||
"audited": true,
|
||||
"validatorClassNameList": [
|
||||
"Espo\\Classes\\FieldValidators\\ScheduledJob\\Scheduling\\Valid"
|
||||
]
|
||||
},
|
||||
"lastRun": {
|
||||
"type": "datetime",
|
||||
"readOnly": true
|
||||
},
|
||||
"createdAt": {
|
||||
"type": "datetime",
|
||||
"readOnly": true
|
||||
},
|
||||
"modifiedAt": {
|
||||
"type": "datetime",
|
||||
"readOnly": true
|
||||
},
|
||||
"createdBy": {
|
||||
"type": "link",
|
||||
"readOnly": true
|
||||
},
|
||||
"modifiedBy": {
|
||||
"type": "link",
|
||||
"readOnly": true
|
||||
},
|
||||
"isInternal": {
|
||||
"type": "bool",
|
||||
"readOnly": true,
|
||||
"disabled": true,
|
||||
"default": false
|
||||
}
|
||||
},
|
||||
"links": {
|
||||
"createdBy": {
|
||||
"type": "belongsTo",
|
||||
"entity": "User"
|
||||
},
|
||||
"modifiedBy": {
|
||||
"type": "belongsTo",
|
||||
"entity": "User"
|
||||
},
|
||||
"log": {
|
||||
"type": "hasMany",
|
||||
"entity": "ScheduledJobLogRecord",
|
||||
"foreign": "scheduledJob"
|
||||
}
|
||||
},
|
||||
"collection": {
|
||||
"orderBy": "name",
|
||||
"order": "asc"
|
||||
},
|
||||
"jobSchedulingMap": {
|
||||
"CheckInboundEmails": "*/2 * * * *",
|
||||
"CheckEmailAccounts": "*/1 * * * *",
|
||||
"SendEmailReminders": "*/2 * * * *",
|
||||
"Cleanup": "1 1 * * 0",
|
||||
"AuthTokenControl": "*/6 * * * *",
|
||||
"SendEmailNotifications": "*/2 * * * *",
|
||||
"ProcessWebhookQueue": "*/2 * * * *",
|
||||
"SendScheduledEmails": "*/10 * * * *"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,49 @@
|
||||
{
|
||||
"fields": {
|
||||
"name": {
|
||||
"type": "varchar",
|
||||
"required": true,
|
||||
"readOnly": true
|
||||
},
|
||||
"status": {
|
||||
"type": "enum",
|
||||
"readOnly": true,
|
||||
"options": ["Success", "Failed"],
|
||||
"style": {
|
||||
"Success": "success",
|
||||
"Failed": "danger"
|
||||
}
|
||||
},
|
||||
"executionTime": {
|
||||
"type": "datetime",
|
||||
"readOnly": true,
|
||||
"hasSeconds": true
|
||||
},
|
||||
"createdAt": {
|
||||
"type": "datetime",
|
||||
"readOnly": true
|
||||
},
|
||||
"scheduledJob": {
|
||||
"type": "link"
|
||||
},
|
||||
"target": {
|
||||
"type": "linkParent"
|
||||
}
|
||||
},
|
||||
"links": {
|
||||
"scheduledJob": {
|
||||
"type": "belongsTo",
|
||||
"entity": "ScheduledJob"
|
||||
}
|
||||
},
|
||||
"collection": {
|
||||
"orderBy": "executionTime",
|
||||
"order": "desc"
|
||||
},
|
||||
"indexes": {
|
||||
"scheduledJobIdExecutionTime": {
|
||||
"type": "index",
|
||||
"columns": ["scheduledJobId", "executionTime"]
|
||||
}
|
||||
}
|
||||
}
|
||||
956
application/Espo/Resources/metadata/entityDefs/Settings.json
Normal file
956
application/Espo/Resources/metadata/entityDefs/Settings.json
Normal file
@@ -0,0 +1,956 @@
|
||||
{
|
||||
"skipRebuild": true,
|
||||
"fields": {
|
||||
"useCache": {
|
||||
"type": "bool",
|
||||
"default": true,
|
||||
"tooltip": true
|
||||
},
|
||||
"recordsPerPage": {
|
||||
"type": "int",
|
||||
"min": 1,
|
||||
"max": 200,
|
||||
"default": 20,
|
||||
"required": true,
|
||||
"tooltip": true
|
||||
},
|
||||
"recordsPerPageSmall": {
|
||||
"type": "int",
|
||||
"min": 1,
|
||||
"max": 100,
|
||||
"default": 5,
|
||||
"required": true,
|
||||
"tooltip": true
|
||||
},
|
||||
"recordsPerPageSelect": {
|
||||
"type": "int",
|
||||
"min": 1,
|
||||
"max": 100,
|
||||
"default": 10,
|
||||
"required": true,
|
||||
"tooltip": true
|
||||
},
|
||||
"recordsPerPageKanban": {
|
||||
"type": "int",
|
||||
"min": 1,
|
||||
"max": 100,
|
||||
"required": true,
|
||||
"tooltip": true
|
||||
},
|
||||
"timeZone": {
|
||||
"type": "enum",
|
||||
"default": "UTC",
|
||||
"options": [
|
||||
"UTC","Africa/Abidjan","Africa/Accra","Africa/Addis_Ababa","Africa/Algiers","Africa/Asmara",
|
||||
"Africa/Bamako","Africa/Bangui","Africa/Banjul","Africa/Bissau","Africa/Blantyre","Africa/Brazzaville",
|
||||
"Africa/Bujumbura","Africa/Cairo","Africa/Casablanca","Africa/Ceuta","Africa/Conakry","Africa/Dakar",
|
||||
"Africa/Dar_es_Salaam","Africa/Djibouti","Africa/Douala","Africa/El_Aaiun","Africa/Freetown",
|
||||
"Africa/Gaborone","Africa/Harare","Africa/Johannesburg","Africa/Juba","Africa/Kampala",
|
||||
"Africa/Khartoum","Africa/Kigali","Africa/Kinshasa","Africa/Lagos","Africa/Libreville",
|
||||
"Africa/Lome","Africa/Luanda","Africa/Lubumbashi","Africa/Lusaka","Africa/Malabo",
|
||||
"Africa/Maputo","Africa/Maseru","Africa/Mbabane","Africa/Mogadishu","Africa/Monrovia",
|
||||
"Africa/Nairobi","Africa/Ndjamena","Africa/Niamey","Africa/Nouakchott","Africa/Ouagadougou",
|
||||
"Africa/Porto-Novo","Africa/Sao_Tome","Africa/Tripoli","Africa/Tunis","Africa/Windhoek",
|
||||
"America/Adak","America/Anchorage","America/Anguilla","America/Antigua","America/Araguaina",
|
||||
"America/Argentina/Buenos_Aires","America/Argentina/Catamarca","America/Argentina/Cordoba",
|
||||
"America/Argentina/Jujuy","America/Argentina/La_Rioja","America/Argentina/Mendoza",
|
||||
"America/Argentina/Rio_Gallegos","America/Argentina/Salta","America/Argentina/San_Juan",
|
||||
"America/Argentina/San_Luis","America/Argentina/Tucuman","America/Argentina/Ushuaia",
|
||||
"America/Aruba","America/Asuncion","America/Atikokan","America/Bahia","America/Bahia_Banderas",
|
||||
"America/Barbados","America/Belem","America/Belize","America/Blanc-Sablon","America/Boa_Vista",
|
||||
"America/Bogota","America/Boise","America/Cambridge_Bay","America/Campo_Grande","America/Cancun",
|
||||
"America/Caracas","America/Cayenne","America/Cayman","America/Chicago","America/Chihuahua",
|
||||
"America/Costa_Rica","America/Creston","America/Cuiaba","America/Curacao","America/Danmarkshavn",
|
||||
"America/Dawson","America/Dawson_Creek","America/Denver","America/Detroit","America/Dominica",
|
||||
"America/Edmonton","America/Eirunepe","America/El_Salvador","America/Fortaleza","America/Glace_Bay",
|
||||
"America/Godthab","America/Goose_Bay","America/Grand_Turk","America/Grenada","America/Guadeloupe",
|
||||
"America/Guatemala","America/Guayaquil","America/Guyana","America/Halifax","America/Havana",
|
||||
"America/Hermosillo","America/Indiana/Indianapolis","America/Indiana/Knox","America/Indiana/Marengo",
|
||||
"America/Indiana/Petersburg","America/Indiana/Tell_City","America/Indiana/Vevay",
|
||||
"America/Indiana/Vincennes","America/Indiana/Winamac","America/Inuvik","America/Iqaluit",
|
||||
"America/Jamaica","America/Juneau","America/Kentucky/Louisville","America/Kentucky/Monticello",
|
||||
"America/Kralendijk","America/La_Paz","America/Lima","America/Los_Angeles","America/Lower_Princes",
|
||||
"America/Maceio","America/Managua","America/Manaus","America/Marigot","America/Martinique",
|
||||
"America/Matamoros","America/Mazatlan","America/Menominee","America/Merida","America/Metlakatla",
|
||||
"America/Mexico_City","America/Miquelon","America/Moncton","America/Monterrey","America/Montevideo",
|
||||
"America/Montserrat","America/Nassau","America/New_York","America/Nipigon","America/Nome",
|
||||
"America/Noronha","America/North_Dakota/Beulah","America/North_Dakota/Center",
|
||||
"America/North_Dakota/New_Salem","America/Ojinaga","America/Panama","America/Pangnirtung",
|
||||
"America/Paramaribo","America/Phoenix","America/Port-au-Prince","America/Port_of_Spain",
|
||||
"America/Porto_Velho","America/Puerto_Rico","America/Rainy_River","America/Rankin_Inlet",
|
||||
"America/Recife","America/Regina","America/Resolute","America/Rio_Branco","America/Santa_Isabel",
|
||||
"America/Santarem","America/Santiago","America/Santo_Domingo","America/Sao_Paulo",
|
||||
"America/Scoresbysund","America/Sitka","America/St_Barthelemy","America/St_Johns","America/St_Kitts",
|
||||
"America/St_Lucia","America/St_Thomas","America/St_Vincent","America/Swift_Current",
|
||||
"America/Tegucigalpa","America/Thule","America/Thunder_Bay","America/Tijuana","America/Toronto",
|
||||
"America/Tortola","America/Vancouver","America/Whitehorse","America/Winnipeg","America/Yakutat",
|
||||
"America/Yellowknife","Antarctica/Casey","Antarctica/Davis","Antarctica/DumontDUrville",
|
||||
"Antarctica/Macquarie","Antarctica/Mawson","Antarctica/McMurdo","Antarctica/Palmer",
|
||||
"Antarctica/Rothera","Antarctica/Syowa","Antarctica/Vostok","Arctic/Longyearbyen","Asia/Aden",
|
||||
"Asia/Almaty","Asia/Amman","Asia/Anadyr","Asia/Aqtau","Asia/Aqtobe","Asia/Ashgabat","Asia/Baghdad",
|
||||
"Asia/Bahrain","Asia/Baku","Asia/Bangkok","Asia/Beirut","Asia/Bishkek","Asia/Brunei","Asia/Choibalsan",
|
||||
"Asia/Chongqing","Asia/Colombo","Asia/Damascus","Asia/Dhaka","Asia/Dili","Asia/Dubai","Asia/Dushanbe",
|
||||
"Asia/Gaza","Asia/Harbin","Asia/Hebron","Asia/Ho_Chi_Minh","Asia/Hong_Kong","Asia/Hovd","Asia/Irkutsk",
|
||||
"Asia/Jakarta","Asia/Jayapura","Asia/Jerusalem","Asia/Kabul","Asia/Kamchatka","Asia/Karachi",
|
||||
"Asia/Kashgar","Asia/Kathmandu","Asia/Khandyga","Asia/Kolkata","Asia/Krasnoyarsk","Asia/Kuala_Lumpur",
|
||||
"Asia/Kuching","Asia/Kuwait","Asia/Macau","Asia/Magadan","Asia/Makassar","Asia/Manila","Asia/Muscat",
|
||||
"Asia/Nicosia","Asia/Novokuznetsk","Asia/Novosibirsk","Asia/Omsk","Asia/Oral","Asia/Phnom_Penh",
|
||||
"Asia/Pontianak","Asia/Pyongyang","Asia/Qatar","Asia/Qyzylorda","Asia/Rangoon","Asia/Riyadh",
|
||||
"Asia/Sakhalin","Asia/Samarkand","Asia/Seoul","Asia/Shanghai","Asia/Singapore","Asia/Taipei",
|
||||
"Asia/Tashkent","Asia/Tbilisi","Asia/Tehran","Asia/Thimphu","Asia/Tokyo","Asia/Ulaanbaatar",
|
||||
"Asia/Urumqi","Asia/Ust-Nera","Asia/Vientiane","Asia/Vladivostok","Asia/Yakutsk","Asia/Yekaterinburg",
|
||||
"Asia/Yerevan","Atlantic/Azores","Atlantic/Bermuda","Atlantic/Canary","Atlantic/Cape_Verde",
|
||||
"Atlantic/Faroe","Atlantic/Madeira","Atlantic/Reykjavik","Atlantic/South_Georgia","Atlantic/St_Helena",
|
||||
"Atlantic/Stanley","Australia/Adelaide","Australia/Brisbane","Australia/Broken_Hill","Australia/Currie",
|
||||
"Australia/Darwin","Australia/Eucla","Australia/Hobart","Australia/Lindeman","Australia/Lord_Howe",
|
||||
"Australia/Melbourne","Australia/Perth","Australia/Sydney","Europe/Amsterdam","Europe/Andorra",
|
||||
"Europe/Athens","Europe/Belgrade","Europe/Berlin","Europe/Bratislava","Europe/Brussels",
|
||||
"Europe/Bucharest","Europe/Budapest","Europe/Busingen","Europe/Chisinau","Europe/Copenhagen",
|
||||
"Europe/Dublin","Europe/Gibraltar","Europe/Guernsey","Europe/Helsinki","Europe/Isle_of_Man",
|
||||
"Europe/Istanbul","Europe/Jersey","Europe/Kaliningrad","Europe/Kyiv","Europe/Lisbon","Europe/Ljubljana",
|
||||
"Europe/London","Europe/Luxembourg","Europe/Madrid","Europe/Malta","Europe/Mariehamn","Europe/Minsk",
|
||||
"Europe/Monaco","Europe/Moscow","Europe/Oslo","Europe/Paris","Europe/Podgorica","Europe/Prague",
|
||||
"Europe/Riga","Europe/Rome","Europe/Samara","Europe/San_Marino","Europe/Sarajevo","Europe/Simferopol",
|
||||
"Europe/Skopje","Europe/Sofia","Europe/Stockholm","Europe/Tallinn","Europe/Tirane",
|
||||
"Europe/Vaduz","Europe/Vatican","Europe/Vienna","Europe/Vilnius","Europe/Volgograd","Europe/Warsaw",
|
||||
"Europe/Zagreb","Europe/Zurich","Indian/Antananarivo","Indian/Chagos",
|
||||
"Indian/Christmas","Indian/Cocos","Indian/Comoro","Indian/Kerguelen","Indian/Mahe","Indian/Maldives",
|
||||
"Indian/Mauritius","Indian/Mayotte","Indian/Reunion","Pacific/Apia","Pacific/Auckland",
|
||||
"Pacific/Chatham","Pacific/Chuuk","Pacific/Easter","Pacific/Efate","Pacific/Enderbury",
|
||||
"Pacific/Fakaofo","Pacific/Fiji","Pacific/Funafuti","Pacific/Galapagos","Pacific/Gambier",
|
||||
"Pacific/Guadalcanal","Pacific/Guam","Pacific/Honolulu","Pacific/Johnston","Pacific/Kiritimati",
|
||||
"Pacific/Kosrae","Pacific/Kwajalein","Pacific/Majuro","Pacific/Marquesas","Pacific/Midway",
|
||||
"Pacific/Nauru","Pacific/Niue","Pacific/Norfolk","Pacific/Noumea","Pacific/Pago_Pago","Pacific/Palau",
|
||||
"Pacific/Pitcairn","Pacific/Pohnpei","Pacific/Port_Moresby","Pacific/Rarotonga","Pacific/Saipan",
|
||||
"Pacific/Tahiti","Pacific/Tarawa","Pacific/Tongatapu","Pacific/Wake","Pacific/Wallis"
|
||||
],
|
||||
"view": "views/settings/fields/time-zone"
|
||||
},
|
||||
"dateFormat": {
|
||||
"type": "enum",
|
||||
"default": "DD.MM.YYYY",
|
||||
"view": "views/settings/fields/date-format"
|
||||
},
|
||||
"timeFormat": {
|
||||
"type": "enum",
|
||||
"default": "HH:mm",
|
||||
"view": "views/settings/fields/time-format"
|
||||
},
|
||||
"weekStart": {
|
||||
"type": "enumInt",
|
||||
"options": [0, 1, 2, 3, 4, 5, 6],
|
||||
"default": 0,
|
||||
"translation": "Global.lists.dayNames"
|
||||
},
|
||||
"fiscalYearShift": {
|
||||
"type": "enumInt",
|
||||
"default": 0,
|
||||
"view": "views/settings/fields/fiscal-year-shift"
|
||||
},
|
||||
"thousandSeparator": {
|
||||
"type": "varchar",
|
||||
"default": ",",
|
||||
"maxLength": 1,
|
||||
"view": "views/settings/fields/thousand-separator",
|
||||
"options": [
|
||||
".",
|
||||
",",
|
||||
"'"
|
||||
],
|
||||
"validatorClassNameList": [
|
||||
"Espo\\Classes\\FieldValidators\\Settings\\ThousandSeparator\\Valid"
|
||||
]
|
||||
},
|
||||
"decimalMark": {
|
||||
"type": "varchar",
|
||||
"default": ".",
|
||||
"required": true,
|
||||
"maxLength": 1,
|
||||
"options": [
|
||||
".",
|
||||
","
|
||||
]
|
||||
},
|
||||
"currencyList": {
|
||||
"type": "multiEnum",
|
||||
"default": ["USD", "EUR"],
|
||||
"required": true,
|
||||
"view": "views/settings/fields/currency-list",
|
||||
"tooltip": true
|
||||
},
|
||||
"defaultCurrency": {
|
||||
"type": "enum",
|
||||
"default": "USD",
|
||||
"required": true,
|
||||
"view": "views/settings/fields/default-currency"
|
||||
},
|
||||
"baseCurrency": {
|
||||
"type": "enum",
|
||||
"default": "USD",
|
||||
"required": true,
|
||||
"view": "views/settings/fields/default-currency"
|
||||
},
|
||||
"currencyRates": {
|
||||
"type": "base",
|
||||
"view": "views/settings/fields/currency-rates"
|
||||
},
|
||||
"outboundEmailIsShared": {
|
||||
"type": "bool",
|
||||
"default": false,
|
||||
"tooltip": true
|
||||
},
|
||||
"outboundEmailFromName": {
|
||||
"type": "varchar",
|
||||
"default": "EspoCRM"
|
||||
},
|
||||
"outboundEmailFromAddress": {
|
||||
"type": "varchar",
|
||||
"default": "crm@example.com",
|
||||
"tooltip": true,
|
||||
"view": "views/settings/fields/outbound-email-from-address"
|
||||
},
|
||||
"emailAddressLookupEntityTypeList": {
|
||||
"type": "multiEnum",
|
||||
"tooltip": true,
|
||||
"view": "views/settings/fields/email-address-lookup-entity-type-list"
|
||||
},
|
||||
"emailAddressSelectEntityTypeList": {
|
||||
"type": "multiEnum",
|
||||
"tooltip": true,
|
||||
"view": "views/settings/fields/email-address-lookup-entity-type-list"
|
||||
},
|
||||
"smtpServer": {
|
||||
"type": "varchar",
|
||||
"tooltip": true
|
||||
},
|
||||
"smtpPort": {
|
||||
"type": "int",
|
||||
"min": 0,
|
||||
"max": 65535,
|
||||
"default": 587
|
||||
},
|
||||
"smtpAuth": {
|
||||
"type": "bool"
|
||||
},
|
||||
"smtpSecurity": {
|
||||
"type": "enum",
|
||||
"default": "TLS",
|
||||
"options": ["", "SSL", "TLS"]
|
||||
},
|
||||
"smtpUsername": {
|
||||
"type": "varchar"
|
||||
},
|
||||
"smtpPassword": {
|
||||
"type": "password"
|
||||
},
|
||||
"tabList": {
|
||||
"type": "array",
|
||||
"view": "views/settings/fields/tab-list",
|
||||
"validationList": [
|
||||
"array",
|
||||
"required"
|
||||
],
|
||||
"mandatoryValidationList": [
|
||||
"array"
|
||||
]
|
||||
},
|
||||
"quickCreateList": {
|
||||
"type": "array",
|
||||
"translation": "Global.scopeNames",
|
||||
"view": "views/settings/fields/quick-create-list"
|
||||
},
|
||||
"language": {
|
||||
"type": "enum",
|
||||
"default": "en_US",
|
||||
"view": "views/settings/fields/language",
|
||||
"isSorted": true
|
||||
},
|
||||
"globalSearchEntityList": {
|
||||
"type": "multiEnum",
|
||||
"translation": "Global.scopeNames",
|
||||
"view": "views/settings/fields/global-search-entity-list",
|
||||
"tooltip": true
|
||||
},
|
||||
"exportDelimiter": {
|
||||
"type": "varchar",
|
||||
"default": ",",
|
||||
"required": true,
|
||||
"maxLength": 1
|
||||
},
|
||||
"companyLogo": {
|
||||
"type": "image"
|
||||
},
|
||||
"authenticationMethod": {
|
||||
"type": "enum",
|
||||
"default": "Espo",
|
||||
"view": "views/settings/fields/authentication-method"
|
||||
},
|
||||
"auth2FA": {
|
||||
"type": "bool"
|
||||
},
|
||||
"auth2FAMethodList": {
|
||||
"type": "multiEnum",
|
||||
"view": "views/settings/fields/auth-two-fa-method-list"
|
||||
},
|
||||
"auth2FAForced": {
|
||||
"type": "bool"
|
||||
},
|
||||
"auth2FAInPortal": {
|
||||
"type": "bool"
|
||||
},
|
||||
"passwordRecoveryDisabled": {
|
||||
"type": "bool"
|
||||
},
|
||||
"passwordRecoveryForAdminDisabled": {
|
||||
"type": "bool"
|
||||
},
|
||||
"passwordRecoveryForInternalUsersDisabled": {
|
||||
"type": "bool",
|
||||
"tooltip": true
|
||||
},
|
||||
"passwordRecoveryNoExposure": {
|
||||
"type": "bool",
|
||||
"tooltip": true
|
||||
},
|
||||
"passwordGenerateLength": {
|
||||
"type": "int",
|
||||
"min": 6,
|
||||
"max": 150,
|
||||
"required": true
|
||||
},
|
||||
"passwordStrengthLength": {
|
||||
"type": "int",
|
||||
"max": 150,
|
||||
"min": 1
|
||||
},
|
||||
"passwordStrengthLetterCount": {
|
||||
"type": "int",
|
||||
"max": 150,
|
||||
"min": 0
|
||||
},
|
||||
"passwordStrengthNumberCount": {
|
||||
"type": "int",
|
||||
"max": 150,
|
||||
"min": 0
|
||||
},
|
||||
"passwordStrengthSpecialCharacterCount": {
|
||||
"type": "int",
|
||||
"max": 50,
|
||||
"min": 0
|
||||
},
|
||||
"passwordStrengthBothCases": {
|
||||
"type": "bool"
|
||||
},
|
||||
"ldapHost": {
|
||||
"type": "varchar"
|
||||
},
|
||||
"ldapPort": {
|
||||
"type": "varchar",
|
||||
"default": 389
|
||||
},
|
||||
"ldapSecurity": {
|
||||
"type": "enum",
|
||||
"options": ["", "SSL", "TLS"]
|
||||
},
|
||||
"ldapAuth": {
|
||||
"type": "bool",
|
||||
"tooltip": true
|
||||
},
|
||||
"ldapUsername": {
|
||||
"type": "varchar",
|
||||
"tooltip": true
|
||||
},
|
||||
"ldapPassword": {
|
||||
"type": "password",
|
||||
"tooltip": true
|
||||
},
|
||||
"ldapBindRequiresDn": {
|
||||
"type": "bool",
|
||||
"tooltip": true
|
||||
},
|
||||
"ldapUserLoginFilter": {
|
||||
"type": "varchar",
|
||||
"tooltip": true
|
||||
},
|
||||
"ldapBaseDn": {
|
||||
"type": "varchar",
|
||||
"tooltip": true
|
||||
},
|
||||
"ldapAccountCanonicalForm": {
|
||||
"type": "enum",
|
||||
"options": ["Dn", "Username", "Backslash", "Principal"],
|
||||
"tooltip": true
|
||||
},
|
||||
"ldapAccountDomainName": {
|
||||
"type": "varchar",
|
||||
"tooltip": true
|
||||
},
|
||||
"ldapAccountDomainNameShort": {
|
||||
"type": "varchar",
|
||||
"tooltip": true
|
||||
},
|
||||
"ldapAccountFilterFormat": {
|
||||
"type": "varchar"
|
||||
},
|
||||
"ldapTryUsernameSplit": {
|
||||
"type": "bool",
|
||||
"tooltip": true
|
||||
},
|
||||
"ldapOptReferrals": {
|
||||
"type": "bool",
|
||||
"tooltip": true
|
||||
},
|
||||
"ldapPortalUserLdapAuth": {
|
||||
"type": "bool",
|
||||
"default": false,
|
||||
"tooltip": true
|
||||
},
|
||||
"ldapCreateEspoUser": {
|
||||
"type": "bool",
|
||||
"default": true,
|
||||
"tooltip": true
|
||||
},
|
||||
"ldapUserNameAttribute": {
|
||||
"type": "varchar",
|
||||
"tooltip": true
|
||||
},
|
||||
"ldapUserObjectClass": {
|
||||
"type": "varchar",
|
||||
"tooltip": true
|
||||
},
|
||||
"ldapUserFirstNameAttribute": {
|
||||
"type": "varchar",
|
||||
"tooltip": true
|
||||
},
|
||||
"ldapUserLastNameAttribute": {
|
||||
"type": "varchar",
|
||||
"tooltip": true
|
||||
},
|
||||
"ldapUserTitleAttribute": {
|
||||
"type": "varchar",
|
||||
"tooltip": true
|
||||
},
|
||||
"ldapUserEmailAddressAttribute": {
|
||||
"type": "varchar",
|
||||
"tooltip": true
|
||||
},
|
||||
"ldapUserPhoneNumberAttribute": {
|
||||
"type": "varchar",
|
||||
"tooltip": true
|
||||
},
|
||||
"ldapUserDefaultTeam": {
|
||||
"type": "link",
|
||||
"tooltip": true,
|
||||
"entity": "Team"
|
||||
},
|
||||
"ldapUserTeams": {
|
||||
"type": "linkMultiple",
|
||||
"tooltip": true,
|
||||
"entity": "Team"
|
||||
},
|
||||
"ldapPortalUserPortals": {
|
||||
"type": "linkMultiple",
|
||||
"tooltip": true,
|
||||
"entity": "Portal"
|
||||
},
|
||||
"ldapPortalUserRoles": {
|
||||
"type": "linkMultiple",
|
||||
"tooltip": true,
|
||||
"entity": "PortalRole"
|
||||
},
|
||||
"exportDisabled": {
|
||||
"type": "bool",
|
||||
"default": false,
|
||||
"tooltip": true
|
||||
},
|
||||
"emailNotificationsDelay": {
|
||||
"type": "int",
|
||||
"min": 0,
|
||||
"max": 18000,
|
||||
"tooltip": true
|
||||
},
|
||||
"assignmentEmailNotifications": {
|
||||
"type": "bool",
|
||||
"default": false
|
||||
},
|
||||
"assignmentEmailNotificationsEntityList": {
|
||||
"type": "multiEnum",
|
||||
"translation": "Global.scopeNamesPlural",
|
||||
"view": "views/settings/fields/assignment-email-notifications-entity-list"
|
||||
},
|
||||
"assignmentNotificationsEntityList": {
|
||||
"type": "multiEnum",
|
||||
"translation": "Global.scopeNamesPlural",
|
||||
"view": "views/settings/fields/assignment-notifications-entity-list"
|
||||
},
|
||||
"postEmailNotifications": {
|
||||
"type": "bool",
|
||||
"default": false
|
||||
},
|
||||
"updateEmailNotifications": {
|
||||
"type": "bool",
|
||||
"default": false
|
||||
},
|
||||
"mentionEmailNotifications": {
|
||||
"type": "bool",
|
||||
"default": false
|
||||
},
|
||||
"streamEmailNotifications": {
|
||||
"type": "bool",
|
||||
"default": false
|
||||
},
|
||||
"portalStreamEmailNotifications": {
|
||||
"type": "bool",
|
||||
"default": true
|
||||
},
|
||||
"streamEmailNotificationsEntityList": {
|
||||
"type": "multiEnum",
|
||||
"translation": "Global.scopeNamesPlural",
|
||||
"view": "views/settings/fields/stream-email-notifications-entity-list",
|
||||
"tooltip": true
|
||||
},
|
||||
"streamEmailNotificationsTypeList": {
|
||||
"type": "multiEnum",
|
||||
"options": ["Post", "Status", "EmailReceived"]
|
||||
},
|
||||
"streamEmailWithContentEntityTypeList": {
|
||||
"type": "multiEnum",
|
||||
"view": "views/settings/fields/stream-email-with-content-entity-type-list"
|
||||
},
|
||||
"newNotificationCountInTitle": {
|
||||
"type": "bool"
|
||||
},
|
||||
"b2cMode": {
|
||||
"type": "bool",
|
||||
"default": false,
|
||||
"tooltip": true
|
||||
},
|
||||
"avatarsDisabled": {
|
||||
"type": "bool",
|
||||
"default": false
|
||||
},
|
||||
"followCreatedEntities": {
|
||||
"type": "bool",
|
||||
"default": false,
|
||||
"tooltip": true
|
||||
},
|
||||
"adminPanelIframeUrl": {
|
||||
"type": "varchar"
|
||||
},
|
||||
"displayListViewRecordCount": {
|
||||
"type": "bool",
|
||||
"tooltip": true
|
||||
},
|
||||
"userThemesDisabled": {
|
||||
"type": "bool",
|
||||
"tooltip": true
|
||||
},
|
||||
"theme": {
|
||||
"type": "enum",
|
||||
"view": "views/settings/fields/theme",
|
||||
"translation": "Global.themes"
|
||||
},
|
||||
"themeParams": {
|
||||
"type": "jsonObject"
|
||||
},
|
||||
"attachmentUploadMaxSize": {
|
||||
"type": "float",
|
||||
"min": 0
|
||||
},
|
||||
"attachmentUploadChunkSize": {
|
||||
"type": "float",
|
||||
"min": 0
|
||||
},
|
||||
"emailMessageMaxSize": {
|
||||
"type": "float",
|
||||
"min": 0,
|
||||
"tooltip": true
|
||||
},
|
||||
"inboundEmailMaxPortionSize": {
|
||||
"type": "int",
|
||||
"min": 1,
|
||||
"max": 500
|
||||
},
|
||||
"personalEmailMaxPortionSize": {
|
||||
"type": "int",
|
||||
"min": 1,
|
||||
"max": 500
|
||||
},
|
||||
"maxEmailAccountCount": {
|
||||
"type": "int"
|
||||
},
|
||||
"massEmailMaxPerHourCount": {
|
||||
"type": "int",
|
||||
"min": 1,
|
||||
"required": true
|
||||
},
|
||||
"massEmailMaxPerBatchCount": {
|
||||
"type": "int",
|
||||
"min": 1
|
||||
},
|
||||
"massEmailVerp": {
|
||||
"type": "bool",
|
||||
"tooltip": true
|
||||
},
|
||||
"emailScheduledBatchCount": {
|
||||
"type": "int",
|
||||
"min": 1,
|
||||
"required": true
|
||||
},
|
||||
"authTokenLifetime": {
|
||||
"type": "float",
|
||||
"min": 0,
|
||||
"default": 0,
|
||||
"tooltip": true
|
||||
},
|
||||
"authTokenMaxIdleTime": {
|
||||
"type": "float",
|
||||
"min": 0,
|
||||
"default": 0,
|
||||
"tooltip": true
|
||||
},
|
||||
"authTokenPreventConcurrent": {
|
||||
"type": "bool",
|
||||
"tooltip": true
|
||||
},
|
||||
"dashboardLayout": {
|
||||
"type": "jsonArray",
|
||||
"view": "views/settings/fields/dashboard-layout"
|
||||
},
|
||||
"dashletsOptions": {
|
||||
"type": "jsonObject",
|
||||
"disabled": true
|
||||
},
|
||||
"siteUrl": {
|
||||
"type": "varchar",
|
||||
"tooltip": true
|
||||
},
|
||||
"applicationName": {
|
||||
"type": "varchar"
|
||||
},
|
||||
"readableDateFormatDisabled": {
|
||||
"type": "bool"
|
||||
},
|
||||
"addressFormat": {
|
||||
"type": "enumInt",
|
||||
"options": [1, 2, 3, 4]
|
||||
},
|
||||
"addressPreview": {
|
||||
"type": "address",
|
||||
"notStorable": true,
|
||||
"readOnly": true,
|
||||
"view": "views/settings/fields/address-preview"
|
||||
},
|
||||
"personNameFormat": {
|
||||
"type": "enum",
|
||||
"options": [
|
||||
"firstLast",
|
||||
"lastFirst",
|
||||
"firstMiddleLast",
|
||||
"lastFirstMiddle"
|
||||
]
|
||||
},
|
||||
"currencyFormat": {
|
||||
"type": "enumInt",
|
||||
"options": [1, 2, 3]
|
||||
},
|
||||
"currencyDecimalPlaces": {
|
||||
"type": "int",
|
||||
"tooltip": true,
|
||||
"min": 0,
|
||||
"max": 20
|
||||
},
|
||||
"notificationSoundsDisabled": {
|
||||
"type": "bool"
|
||||
},
|
||||
"calendarEntityList": {
|
||||
"type": "multiEnum",
|
||||
"view": "views/settings/fields/calendar-entity-list",
|
||||
"tooltip": true
|
||||
},
|
||||
"activitiesEntityList": {
|
||||
"type": "multiEnum",
|
||||
"view": "views/settings/fields/activities-entity-list",
|
||||
"tooltip": true
|
||||
},
|
||||
"historyEntityList": {
|
||||
"type": "multiEnum",
|
||||
"view": "views/settings/fields/history-entity-list",
|
||||
"tooltip": true
|
||||
},
|
||||
"busyRangesEntityList": {
|
||||
"type": "multiEnum",
|
||||
"tooltip": true,
|
||||
"view": "views/settings/fields/busy-ranges-entity-list"
|
||||
},
|
||||
"googleMapsApiKey": {
|
||||
"type": "varchar"
|
||||
},
|
||||
"massEmailDisableMandatoryOptOutLink": {
|
||||
"type": "bool"
|
||||
},
|
||||
"massEmailOpenTracking": {
|
||||
"type": "bool"
|
||||
},
|
||||
"aclAllowDeleteCreated": {
|
||||
"type": "bool",
|
||||
"tooltip": true
|
||||
},
|
||||
"lastViewedCount": {
|
||||
"type": "int",
|
||||
"min": 1,
|
||||
"max": 200,
|
||||
"default": 20,
|
||||
"required": true
|
||||
},
|
||||
"adminNotifications": {
|
||||
"type": "bool"
|
||||
},
|
||||
"adminNotificationsNewVersion": {
|
||||
"type": "bool"
|
||||
},
|
||||
"adminNotificationsNewExtensionVersion": {
|
||||
"type": "bool"
|
||||
},
|
||||
"textFilterUseContainsForVarchar": {
|
||||
"type": "bool",
|
||||
"tooltip": true
|
||||
},
|
||||
"phoneNumberNumericSearch": {
|
||||
"type": "bool"
|
||||
},
|
||||
"phoneNumberInternational": {
|
||||
"type": "bool"
|
||||
},
|
||||
"phoneNumberExtensions": {
|
||||
"type": "bool"
|
||||
},
|
||||
"phoneNumberPreferredCountryList": {
|
||||
"type": "multiEnum",
|
||||
"view": "views/settings/fields/phone-number-preferred-country-list"
|
||||
},
|
||||
"scopeColorsDisabled": {
|
||||
"type": "bool"
|
||||
},
|
||||
"tabColorsDisabled": {
|
||||
"type": "bool"
|
||||
},
|
||||
"tabIconsDisabled": {
|
||||
"type": "bool"
|
||||
},
|
||||
"emailAddressIsOptedOutByDefault": {
|
||||
"type": "bool",
|
||||
"tooltip": true
|
||||
},
|
||||
"outboundEmailBccAddress": {
|
||||
"type": "varchar",
|
||||
"view": "views/fields/email-address"
|
||||
},
|
||||
"cleanupDeletedRecords": {
|
||||
"type": "bool",
|
||||
"tooltip": true
|
||||
},
|
||||
"addressCityList": {
|
||||
"type": "multiEnum",
|
||||
"tooltip": true
|
||||
},
|
||||
"addressStateList": {
|
||||
"type": "multiEnum",
|
||||
"tooltip": true
|
||||
},
|
||||
"jobRunInParallel": {
|
||||
"type": "bool",
|
||||
"tooltip": true
|
||||
},
|
||||
"jobMaxPortion": {
|
||||
"type": "int",
|
||||
"tooltip": true
|
||||
},
|
||||
"jobPoolConcurrencyNumber": {
|
||||
"type": "int",
|
||||
"tooltip": true,
|
||||
"min": 1
|
||||
},
|
||||
"jobForceUtc": {
|
||||
"type": "bool",
|
||||
"tooltip": true
|
||||
},
|
||||
"daemonInterval": {
|
||||
"type": "int",
|
||||
"tooltip": true
|
||||
},
|
||||
"daemonMaxProcessNumber": {
|
||||
"type": "int",
|
||||
"tooltip": true,
|
||||
"min": 1
|
||||
},
|
||||
"daemonProcessTimeout": {
|
||||
"type": "int",
|
||||
"tooltip": true
|
||||
},
|
||||
"cronDisabled": {
|
||||
"type": "bool",
|
||||
"tooltip": true
|
||||
},
|
||||
"maintenanceMode": {
|
||||
"type": "bool",
|
||||
"tooltip": true
|
||||
},
|
||||
"useWebSocket": {
|
||||
"type": "bool",
|
||||
"tooltip": true
|
||||
},
|
||||
"awsS3Storage": {
|
||||
"type": "jsonObject"
|
||||
},
|
||||
"outboundSmsFromNumber": {
|
||||
"type": "varchar"
|
||||
},
|
||||
"smsProvider": {
|
||||
"type": "enum",
|
||||
"view": "views/settings/fields/sms-provider"
|
||||
},
|
||||
"workingTimeCalendar": {
|
||||
"type": "link",
|
||||
"tooltip": true,
|
||||
"entity": "WorkingTimeCalendar"
|
||||
},
|
||||
"oidcClientId": {
|
||||
"type": "varchar"
|
||||
},
|
||||
"oidcClientSecret": {
|
||||
"type": "password"
|
||||
},
|
||||
"oidcAuthorizationEndpoint": {
|
||||
"type": "url",
|
||||
"strip": false
|
||||
},
|
||||
"oidcUserInfoEndpoint": {
|
||||
"type": "url",
|
||||
"strip": false
|
||||
},
|
||||
"oidcTokenEndpoint": {
|
||||
"type": "url",
|
||||
"strip": false
|
||||
},
|
||||
"oidcJwksEndpoint": {
|
||||
"type": "url",
|
||||
"strip": false
|
||||
},
|
||||
"oidcJwtSignatureAlgorithmList": {
|
||||
"type": "multiEnum",
|
||||
"options": [
|
||||
"RS256",
|
||||
"RS384",
|
||||
"RS512",
|
||||
"HS256",
|
||||
"HS384",
|
||||
"HS512"
|
||||
]
|
||||
},
|
||||
"oidcScopes": {
|
||||
"type": "multiEnum",
|
||||
"allowCustomOptions": true,
|
||||
"options": [
|
||||
"profile",
|
||||
"email",
|
||||
"phone",
|
||||
"address"
|
||||
]
|
||||
},
|
||||
"oidcGroupClaim": {
|
||||
"type": "varchar",
|
||||
"tooltip": true
|
||||
},
|
||||
"oidcCreateUser": {
|
||||
"type": "bool",
|
||||
"tooltip": true
|
||||
},
|
||||
"oidcUsernameClaim": {
|
||||
"type": "varchar",
|
||||
"options": [
|
||||
"sub",
|
||||
"preferred_username",
|
||||
"email"
|
||||
],
|
||||
"tooltip": true
|
||||
},
|
||||
"oidcTeams": {
|
||||
"type": "linkMultiple",
|
||||
"entity": "Team",
|
||||
"additionalAttributeList": ["columns"],
|
||||
"view": "views/settings/fields/oidc-teams",
|
||||
"tooltip": true
|
||||
},
|
||||
"oidcSync": {
|
||||
"type": "bool",
|
||||
"tooltip": true
|
||||
},
|
||||
"oidcSyncTeams": {
|
||||
"type": "bool",
|
||||
"tooltip": true
|
||||
},
|
||||
"oidcFallback": {
|
||||
"type": "bool",
|
||||
"tooltip": true
|
||||
},
|
||||
"oidcAllowRegularUserFallback": {
|
||||
"type": "bool"
|
||||
},
|
||||
"oidcAllowAdminUser": {
|
||||
"type": "bool"
|
||||
},
|
||||
"oidcLogoutUrl": {
|
||||
"type": "varchar",
|
||||
"tooltip": true
|
||||
},
|
||||
"oidcAuthorizationPrompt": {
|
||||
"type": "enum",
|
||||
"options": [
|
||||
"none",
|
||||
"consent",
|
||||
"login",
|
||||
"select_account"
|
||||
]
|
||||
},
|
||||
"pdfEngine": {
|
||||
"type": "enum",
|
||||
"view": "views/settings/fields/pdf-engine"
|
||||
},
|
||||
"quickSearchFullTextAppendWildcard": {
|
||||
"type": "bool",
|
||||
"tooltip": true
|
||||
},
|
||||
"authIpAddressCheck": {
|
||||
"type": "bool"
|
||||
},
|
||||
"authIpAddressWhitelist": {
|
||||
"type": "array",
|
||||
"allowCustomOptions": true,
|
||||
"noEmptyString": true,
|
||||
"validatorClassNameList": [
|
||||
"Espo\\Classes\\FieldValidators\\Settings\\AuthIpAddressWhitelist\\Valid"
|
||||
],
|
||||
"tooltip": true
|
||||
},
|
||||
"authIpAddressCheckExcludedUsers": {
|
||||
"type": "linkMultiple",
|
||||
"entity": "User",
|
||||
"tooltip": true
|
||||
},
|
||||
"availableReactions": {
|
||||
"type": "array",
|
||||
"maxCount": 9,
|
||||
"view": "views/settings/fields/available-reactions",
|
||||
"validatorClassNameList": [
|
||||
"Espo\\Classes\\FieldValidators\\Settings\\AvailableReactions\\Valid"
|
||||
]
|
||||
},
|
||||
"baselineRole": {
|
||||
"type": "link",
|
||||
"entity": "Role",
|
||||
"tooltip": true,
|
||||
"view": "views/settings/fields/baseline-role"
|
||||
}
|
||||
}
|
||||
}
|
||||
147
application/Espo/Resources/metadata/entityDefs/Sms.json
Normal file
147
application/Espo/Resources/metadata/entityDefs/Sms.json
Normal file
@@ -0,0 +1,147 @@
|
||||
{
|
||||
"fields": {
|
||||
"from": {
|
||||
"type": "varchar",
|
||||
"notStorable": true,
|
||||
"required": true,
|
||||
"textFilterDisabled": true
|
||||
},
|
||||
"fromName": {
|
||||
"type": "varchar"
|
||||
},
|
||||
"to": {
|
||||
"type": "varchar",
|
||||
"notStorable": true,
|
||||
"required": true,
|
||||
"textFilterDisabled": true
|
||||
},
|
||||
"fromPhoneNumber": {
|
||||
"type": "link",
|
||||
"textFilterDisabled": true
|
||||
},
|
||||
"toPhoneNumbers": {
|
||||
"type": "linkMultiple"
|
||||
},
|
||||
"body": {
|
||||
"type": "text"
|
||||
},
|
||||
"status": {
|
||||
"type": "enum",
|
||||
"options": ["Draft", "Sending", "Sent", "Archived", "Failed"],
|
||||
"default": "Archived",
|
||||
"clientReadOnly": true,
|
||||
"style": {
|
||||
"Draft": "warning",
|
||||
"Failed": "danger",
|
||||
"Sending": "warning"
|
||||
}
|
||||
},
|
||||
"parent": {
|
||||
"type": "linkParent"
|
||||
},
|
||||
"dateSent": {
|
||||
"type": "datetime"
|
||||
},
|
||||
"createdAt": {
|
||||
"type": "datetime",
|
||||
"readOnly": true
|
||||
},
|
||||
"modifiedAt": {
|
||||
"type": "datetime",
|
||||
"readOnly": true
|
||||
},
|
||||
"createdBy": {
|
||||
"type": "link",
|
||||
"readOnly": true,
|
||||
"view": "views/fields/user"
|
||||
},
|
||||
"modifiedBy": {
|
||||
"type": "link",
|
||||
"readOnly": true,
|
||||
"view": "views/fields/user"
|
||||
},
|
||||
"replied": {
|
||||
"type": "link",
|
||||
"noJoin": true,
|
||||
"readOnly": true,
|
||||
"view": "views/email/fields/replied"
|
||||
},
|
||||
"replies": {
|
||||
"type": "linkMultiple",
|
||||
"readOnly": true,
|
||||
"orderBy": "dateSent",
|
||||
"view": "views/email/fields/replies"
|
||||
},
|
||||
"teams": {
|
||||
"type": "linkMultiple",
|
||||
"view": "views/fields/teams"
|
||||
}
|
||||
},
|
||||
"links": {
|
||||
"createdBy": {
|
||||
"type": "belongsTo",
|
||||
"entity": "User"
|
||||
},
|
||||
"modifiedBy": {
|
||||
"type": "belongsTo",
|
||||
"entity": "User"
|
||||
},
|
||||
"teams": {
|
||||
"type": "hasMany",
|
||||
"entity": "Team",
|
||||
"relationName": "entityTeam"
|
||||
},
|
||||
"parent": {
|
||||
"type": "belongsToParent",
|
||||
"entityList": [
|
||||
"Account",
|
||||
"Contact",
|
||||
"Lead",
|
||||
"Opportunity"
|
||||
],
|
||||
"foreign": "emails"
|
||||
},
|
||||
"replied": {
|
||||
"type": "belongsTo",
|
||||
"entity": "Sms",
|
||||
"foreign": "replies",
|
||||
"foreignName": "id"
|
||||
},
|
||||
"replies": {
|
||||
"type": "hasMany",
|
||||
"entity": "Sms",
|
||||
"foreign": "replied"
|
||||
},
|
||||
"fromPhoneNumber": {
|
||||
"type": "belongsTo",
|
||||
"entity": "PhoneNumber"
|
||||
},
|
||||
"toPhoneNumbers": {
|
||||
"type": "hasMany",
|
||||
"entity": "PhoneNumber",
|
||||
"relationName": "smsPhoneNumber",
|
||||
"conditions": {
|
||||
"addressType": "to"
|
||||
},
|
||||
"additionalColumns": {
|
||||
"addressType": {
|
||||
"type": "varchar",
|
||||
"len": "4"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"collection": {
|
||||
"orderBy": "dateSent",
|
||||
"order": "desc",
|
||||
"textFilterFields": ["name", "body"]
|
||||
},
|
||||
"indexes": {
|
||||
"dateSent": {
|
||||
"columns": ["dateSent", "deleted"]
|
||||
},
|
||||
"dateSentStatus": {
|
||||
"columns": ["dateSent", "status", "deleted"]
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
{
|
||||
"fields": {
|
||||
"id": {
|
||||
"type": "id",
|
||||
"dbType": "bigint",
|
||||
"autoincrement": true
|
||||
},
|
||||
"entity": {
|
||||
"type": "linkParent"
|
||||
},
|
||||
"user": {
|
||||
"type": "link"
|
||||
},
|
||||
"createdAt": {
|
||||
"type": "datetime"
|
||||
}
|
||||
},
|
||||
"indexes": {
|
||||
"userEntity": {
|
||||
"unique": true,
|
||||
"columns": ["userId", "entityId", "entityType"]
|
||||
},
|
||||
"userEntityType": {
|
||||
"columns": ["userId", "entityType"]
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
{
|
||||
"fields": {
|
||||
"id": {
|
||||
"type": "id",
|
||||
"dbType": "bigint",
|
||||
"autoincrement": true
|
||||
},
|
||||
"entity": {
|
||||
"type": "linkParent"
|
||||
},
|
||||
"user": {
|
||||
"type": "link"
|
||||
}
|
||||
},
|
||||
"indexes": {
|
||||
"userEntity": {
|
||||
"columns": ["userId", "entityId", "entityType"]
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"fields": {
|
||||
"id": {
|
||||
"type": "id",
|
||||
"dbType": "string",
|
||||
"maxLength": 1
|
||||
},
|
||||
"lastPasswordRecoveryDate": {
|
||||
"type": "datetime"
|
||||
}
|
||||
}
|
||||
}
|
||||
88
application/Espo/Resources/metadata/entityDefs/Team.json
Normal file
88
application/Espo/Resources/metadata/entityDefs/Team.json
Normal file
@@ -0,0 +1,88 @@
|
||||
{
|
||||
"fields": {
|
||||
"name": {
|
||||
"type": "varchar",
|
||||
"maxLength": 100,
|
||||
"pattern": "$noBadCharacters",
|
||||
"audited": true
|
||||
},
|
||||
"roles": {
|
||||
"type": "linkMultiple",
|
||||
"tooltip": true,
|
||||
"audited": true
|
||||
},
|
||||
"positionList": {
|
||||
"type": "array",
|
||||
"displayAsList": true,
|
||||
"tooltip": true,
|
||||
"audited": true
|
||||
},
|
||||
"userRole": {
|
||||
"type": "varchar",
|
||||
"notStorable": true,
|
||||
"utility": true
|
||||
},
|
||||
"layoutSet": {
|
||||
"type": "link",
|
||||
"tooltip": true,
|
||||
"audited": true
|
||||
},
|
||||
"workingTimeCalendar": {
|
||||
"type": "link",
|
||||
"tooltip": true,
|
||||
"audited": true
|
||||
},
|
||||
"createdAt": {
|
||||
"type": "datetime",
|
||||
"readOnly": true
|
||||
},
|
||||
"modifiedAt": {
|
||||
"type": "datetime",
|
||||
"readOnly": true
|
||||
}
|
||||
},
|
||||
"links": {
|
||||
"users": {
|
||||
"type": "hasMany",
|
||||
"entity": "User",
|
||||
"foreign": "teams",
|
||||
"columnAttributeMap": {
|
||||
"role": "userRole"
|
||||
}
|
||||
},
|
||||
"roles": {
|
||||
"type": "hasMany",
|
||||
"entity": "Role",
|
||||
"foreign": "teams"
|
||||
},
|
||||
"notes": {
|
||||
"type": "hasMany",
|
||||
"entity": "Note",
|
||||
"foreign": "teams"
|
||||
},
|
||||
"inboundEmails": {
|
||||
"type": "hasMany",
|
||||
"entity": "InboundEmail",
|
||||
"foreign": "teams"
|
||||
},
|
||||
"layoutSet": {
|
||||
"type": "belongsTo",
|
||||
"entity": "LayoutSet",
|
||||
"foreign": "teams"
|
||||
},
|
||||
"workingTimeCalendar": {
|
||||
"type": "belongsTo",
|
||||
"entity": "WorkingTimeCalendar",
|
||||
"foreign": "teams"
|
||||
},
|
||||
"groupEmailFolders": {
|
||||
"type": "hasMany",
|
||||
"entity": "GroupEmailFolder",
|
||||
"foreign": "teams"
|
||||
}
|
||||
},
|
||||
"collection": {
|
||||
"orderBy": "name",
|
||||
"order": "asc"
|
||||
}
|
||||
}
|
||||
145
application/Espo/Resources/metadata/entityDefs/Template.json
Normal file
145
application/Espo/Resources/metadata/entityDefs/Template.json
Normal file
@@ -0,0 +1,145 @@
|
||||
{
|
||||
"fields": {
|
||||
"name": {
|
||||
"type": "varchar",
|
||||
"required": true,
|
||||
"pattern": "$noBadCharacters"
|
||||
},
|
||||
"body": {
|
||||
"type": "wysiwyg",
|
||||
"view": "views/template/fields/body"
|
||||
},
|
||||
"header": {
|
||||
"type": "wysiwyg",
|
||||
"view": "views/template/fields/body"
|
||||
},
|
||||
"footer": {
|
||||
"type": "wysiwyg",
|
||||
"view": "views/template/fields/body",
|
||||
"tooltip": true
|
||||
},
|
||||
"entityType": {
|
||||
"type": "enum",
|
||||
"required": true,
|
||||
"translation": "Global.scopeNames",
|
||||
"view": "views/template/fields/entity-type"
|
||||
},
|
||||
"status": {
|
||||
"type": "enum",
|
||||
"options": [
|
||||
"Active",
|
||||
"Inactive"
|
||||
],
|
||||
"default": "Active",
|
||||
"style": {
|
||||
"Inactive": "info"
|
||||
},
|
||||
"maxLength": 8
|
||||
},
|
||||
"leftMargin": {
|
||||
"type": "float",
|
||||
"default": 10
|
||||
},
|
||||
"rightMargin": {
|
||||
"type": "float",
|
||||
"default": 10
|
||||
},
|
||||
"topMargin": {
|
||||
"type": "float",
|
||||
"default": 10
|
||||
},
|
||||
"bottomMargin": {
|
||||
"type": "float",
|
||||
"default": 20
|
||||
},
|
||||
"printFooter": {
|
||||
"type": "bool",
|
||||
"inlineEditDisabled": true
|
||||
},
|
||||
"printHeader": {
|
||||
"type": "bool",
|
||||
"inlineEditDisabled": true
|
||||
},
|
||||
"footerPosition": {
|
||||
"type": "float",
|
||||
"default": 10
|
||||
},
|
||||
"headerPosition": {
|
||||
"type": "float",
|
||||
"default": 0
|
||||
},
|
||||
"style": {
|
||||
"type": "text",
|
||||
"view": "views/template/fields/style"
|
||||
},
|
||||
"teams": {
|
||||
"type": "linkMultiple"
|
||||
},
|
||||
"createdAt": {
|
||||
"type": "datetime",
|
||||
"readOnly": true
|
||||
},
|
||||
"modifiedAt": {
|
||||
"type": "datetime",
|
||||
"readOnly": true
|
||||
},
|
||||
"createdBy": {
|
||||
"type": "link",
|
||||
"readOnly": true
|
||||
},
|
||||
"modifiedBy": {
|
||||
"type": "link",
|
||||
"readOnly": true
|
||||
},
|
||||
"variables": {
|
||||
"type": "base",
|
||||
"notStorable": true,
|
||||
"tooltip": true
|
||||
},
|
||||
"pageOrientation": {
|
||||
"type": "enum",
|
||||
"options": ["Portrait", "Landscape"],
|
||||
"default": "Portrait"
|
||||
},
|
||||
"pageFormat": {
|
||||
"type": "enum",
|
||||
"options": ["A3", "A4", "A5", "A6", "A7", "Custom"],
|
||||
"default": "A4"
|
||||
},
|
||||
"pageWidth": {
|
||||
"type": "float",
|
||||
"min": 1
|
||||
},
|
||||
"pageHeight": {
|
||||
"type": "float",
|
||||
"min": 1
|
||||
},
|
||||
"fontFace": {
|
||||
"type": "enum",
|
||||
"view": "views/template/fields/font-face"
|
||||
},
|
||||
"title": {
|
||||
"type": "varchar"
|
||||
}
|
||||
},
|
||||
"links": {
|
||||
"teams": {
|
||||
"type": "hasMany",
|
||||
"entity": "Team",
|
||||
"relationName": "entityTeam"
|
||||
},
|
||||
"createdBy": {
|
||||
"type": "belongsTo",
|
||||
"entity": "User"
|
||||
},
|
||||
"modifiedBy": {
|
||||
"type": "belongsTo",
|
||||
"entity": "User"
|
||||
}
|
||||
},
|
||||
"collection": {
|
||||
"orderBy": "name",
|
||||
"order": "asc"
|
||||
},
|
||||
"optimisticConcurrencyControl": true
|
||||
}
|
||||
@@ -0,0 +1,56 @@
|
||||
{
|
||||
"fields": {
|
||||
"code": {
|
||||
"type": "varchar",
|
||||
"maxLength": 100
|
||||
},
|
||||
"method": {
|
||||
"type": "varchar",
|
||||
"maxLength": 100
|
||||
},
|
||||
"attemptsLeft": {
|
||||
"type": "int"
|
||||
},
|
||||
"isActive": {
|
||||
"type": "bool",
|
||||
"default": true
|
||||
},
|
||||
"createdAt": {
|
||||
"type": "datetime",
|
||||
"readOnly": true
|
||||
}
|
||||
},
|
||||
"links": {
|
||||
"user": {
|
||||
"type": "belongsTo",
|
||||
"entity": "User"
|
||||
}
|
||||
},
|
||||
"indexes": {
|
||||
"createdAt": {
|
||||
"columns": [
|
||||
"createdAt"
|
||||
]
|
||||
},
|
||||
"userIdMethod": {
|
||||
"columns": [
|
||||
"userId",
|
||||
"method"
|
||||
]
|
||||
},
|
||||
"userIdMethodIsActive": {
|
||||
"columns": [
|
||||
"userId",
|
||||
"method",
|
||||
"isActive"
|
||||
]
|
||||
},
|
||||
"userIdMethodCreatedAt": {
|
||||
"columns": [
|
||||
"userId",
|
||||
"method",
|
||||
"createdAt"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
40
application/Espo/Resources/metadata/entityDefs/UniqueId.json
Normal file
40
application/Espo/Resources/metadata/entityDefs/UniqueId.json
Normal file
@@ -0,0 +1,40 @@
|
||||
{
|
||||
"fields": {
|
||||
"name": {
|
||||
"type": "varchar",
|
||||
"required": true,
|
||||
"index": true
|
||||
},
|
||||
"data": {
|
||||
"type": "jsonObject"
|
||||
},
|
||||
"createdAt": {
|
||||
"type": "datetime",
|
||||
"readOnly": true
|
||||
},
|
||||
"createdBy": {
|
||||
"type": "link",
|
||||
"readOnly": true
|
||||
},
|
||||
"terminateAt": {
|
||||
"type": "datetime"
|
||||
},
|
||||
"target": {
|
||||
"type": "linkParent"
|
||||
}
|
||||
},
|
||||
"links": {
|
||||
"createdBy": {
|
||||
"type": "belongsTo",
|
||||
"entity": "User"
|
||||
},
|
||||
"target": {
|
||||
"type": "belongsToParent"
|
||||
}
|
||||
},
|
||||
"collection": {
|
||||
"orderBy": "createdAt",
|
||||
"order": "desc"
|
||||
},
|
||||
"hooksDisabled": true
|
||||
}
|
||||
660
application/Espo/Resources/metadata/entityDefs/User.json
Normal file
660
application/Espo/Resources/metadata/entityDefs/User.json
Normal file
@@ -0,0 +1,660 @@
|
||||
{
|
||||
"fields": {
|
||||
"userName": {
|
||||
"type": "varchar",
|
||||
"maxLength": 50,
|
||||
"required": true,
|
||||
"view": "views/user/fields/user-name",
|
||||
"tooltip": true,
|
||||
"fieldManagerParamList": [
|
||||
"maxLength",
|
||||
"tooltipText",
|
||||
"inlineEditDisabled"
|
||||
],
|
||||
"index": true,
|
||||
"validatorClassNameList": [
|
||||
"Espo\\Classes\\FieldValidators\\User\\UserName\\Valid"
|
||||
]
|
||||
},
|
||||
"name": {
|
||||
"type": "personName",
|
||||
"view": "views/user/fields/name",
|
||||
"dependeeAttributeList": [
|
||||
"userName"
|
||||
],
|
||||
"dynamicLogicVisibleDisabled": true
|
||||
},
|
||||
"type": {
|
||||
"type": "enum",
|
||||
"options": [
|
||||
"regular",
|
||||
"admin",
|
||||
"portal",
|
||||
"system",
|
||||
"super-admin",
|
||||
"api"
|
||||
],
|
||||
"default": "regular",
|
||||
"maxLength": 24,
|
||||
"index": true,
|
||||
"inlineEditDisabled": true,
|
||||
"layoutDetailDisabled": true,
|
||||
"layoutMassUpdateDisabled": true,
|
||||
"fieldManagerParamList": [
|
||||
"tooltipText"
|
||||
]
|
||||
},
|
||||
"password": {
|
||||
"type": "password",
|
||||
"maxLength": 150,
|
||||
"internal": true,
|
||||
"utility": true,
|
||||
"directAccessDisabled": true,
|
||||
"fieldManagerParamList": [
|
||||
"tooltipText"
|
||||
],
|
||||
"orderDisabled": true
|
||||
},
|
||||
"passwordConfirm": {
|
||||
"type": "password",
|
||||
"maxLength": 150,
|
||||
"internal": true,
|
||||
"utility": true,
|
||||
"notStorable": true,
|
||||
"orderDisabled": true,
|
||||
"directAccessDisabled": true,
|
||||
"fieldManagerParamList": []
|
||||
},
|
||||
"authMethod": {
|
||||
"type": "enum",
|
||||
"options": ["", "ApiKey", "Hmac"],
|
||||
"maxLength": 24,
|
||||
"layoutMassUpdateDisabled": true,
|
||||
"layoutDetailDisabled": true,
|
||||
"layoutFiltersDisabled": true,
|
||||
"layoutListDisabled": true,
|
||||
"fieldManagerParamList": [
|
||||
"tooltipText"
|
||||
]
|
||||
},
|
||||
"apiKey": {
|
||||
"type": "varchar",
|
||||
"maxLength": 100,
|
||||
"readOnly": true,
|
||||
"layoutMassUpdateDisabled": true,
|
||||
"layoutDetailDisabled": true,
|
||||
"layoutFiltersDisabled": true,
|
||||
"layoutListDisabled": true,
|
||||
"fieldManagerParamList": [
|
||||
"tooltipText"
|
||||
],
|
||||
"copyToClipboard": true,
|
||||
"dynamicLogicVisibleDisabled": true,
|
||||
"orderDisabled": true
|
||||
},
|
||||
"secretKey": {
|
||||
"type": "varchar",
|
||||
"maxLength": 100,
|
||||
"readOnly": true,
|
||||
"notStorable": true,
|
||||
"orderDisabled": true,
|
||||
"layoutMassUpdateDisabled": true,
|
||||
"layoutDetailDisabled": true,
|
||||
"layoutFiltersDisabled": true,
|
||||
"layoutListDisabled": true,
|
||||
"fieldManagerParamList": [
|
||||
"tooltipText"
|
||||
],
|
||||
"copyToClipboard": true,
|
||||
"dynamicLogicVisibleDisabled": true
|
||||
},
|
||||
"salutationName": {
|
||||
"type": "enum",
|
||||
"options": ["", "Mr.", "Ms.", "Mrs.", "Dr."]
|
||||
},
|
||||
"firstName": {
|
||||
"type": "varchar",
|
||||
"maxLength": 100,
|
||||
"suppressValidationList": ["required"]
|
||||
},
|
||||
"lastName": {
|
||||
"type": "varchar",
|
||||
"maxLength": 100,
|
||||
"required": true,
|
||||
"suppressValidationList": ["required"]
|
||||
},
|
||||
"isActive": {
|
||||
"type": "bool",
|
||||
"layoutDetailDisabled": true,
|
||||
"tooltip": true,
|
||||
"default": true,
|
||||
"customizationAuditedDisabled": true,
|
||||
"audited": true
|
||||
},
|
||||
"title": {
|
||||
"type": "varchar",
|
||||
"maxLength": 100,
|
||||
"pattern": "$noBadCharacters",
|
||||
"customizationAuditedDisabled": true,
|
||||
"dynamicLogicVisibleDisabled": true
|
||||
},
|
||||
"position": {
|
||||
"type": "varchar",
|
||||
"maxLength": 100,
|
||||
"notStorable": true,
|
||||
"orderDisabled": true,
|
||||
"where": {
|
||||
"LIKE": {
|
||||
"whereClause": {
|
||||
"id=s": {
|
||||
"from": "TeamUser",
|
||||
"select": ["userId"],
|
||||
"whereClause": {
|
||||
"deleted": false,
|
||||
"role*": "{value}"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"NOT LIKE": {
|
||||
"whereClause": {
|
||||
"id!=s": {
|
||||
"from": "TeamUser",
|
||||
"select": ["userId"],
|
||||
"whereClause": {
|
||||
"deleted": false,
|
||||
"role*": "{value}"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"=": {
|
||||
"whereClause": {
|
||||
"id=s": {
|
||||
"from": "TeamUser",
|
||||
"select": ["userId"],
|
||||
"whereClause": {
|
||||
"deleted": false,
|
||||
"role": "{value}"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"<>": {
|
||||
"whereClause": {
|
||||
"id=!s": {
|
||||
"from": "TeamUser",
|
||||
"select": ["userId"],
|
||||
"whereClause": {
|
||||
"deleted": false,
|
||||
"role": "{value}"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"IS NULL": {
|
||||
"whereClause": {
|
||||
"NOT": {
|
||||
"EXISTS": {
|
||||
"from": "User",
|
||||
"fromAlias": "sq",
|
||||
"select": ["id"],
|
||||
"leftJoins": [
|
||||
[
|
||||
"teams",
|
||||
"m",
|
||||
{},
|
||||
{"onlyMiddle": true}
|
||||
]
|
||||
],
|
||||
"whereClause": {
|
||||
"m.role!=": null,
|
||||
"sq.id:": "user.id"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"IS NOT NULL": {
|
||||
"whereClause": {
|
||||
"EXISTS": {
|
||||
"from": "User",
|
||||
"fromAlias": "sq",
|
||||
"select": ["id"],
|
||||
"leftJoins": [
|
||||
[
|
||||
"teams",
|
||||
"m",
|
||||
{},
|
||||
{"onlyMiddle": true}
|
||||
]
|
||||
],
|
||||
"whereClause": {
|
||||
"m.role!=": null,
|
||||
"sq.id:": "user.id"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"directUpdateDisabled": true,
|
||||
"readOnly": true,
|
||||
"importDisabled": true,
|
||||
"exportDisabled": true,
|
||||
"layoutDetailDisabled": true,
|
||||
"layoutListDisabled": true,
|
||||
"textFilterDisabled": true,
|
||||
"fieldManagerParamList": [
|
||||
"tooltipText"
|
||||
]
|
||||
},
|
||||
"emailAddress": {
|
||||
"type": "email",
|
||||
"required": false,
|
||||
"layoutMassUpdateDisabled": true,
|
||||
"dynamicLogicVisibleDisabled": true
|
||||
},
|
||||
"phoneNumber": {
|
||||
"type": "phone",
|
||||
"typeList": ["Mobile", "Office", "Home", "Fax", "Other"],
|
||||
"defaultType": "Mobile",
|
||||
"dynamicLogicVisibleDisabled": true
|
||||
},
|
||||
"token": {
|
||||
"type": "varchar",
|
||||
"notStorable": true,
|
||||
"orderDisabled": true,
|
||||
"utility": true,
|
||||
"customizationDisabled": true
|
||||
},
|
||||
"authTokenId": {
|
||||
"type": "varchar",
|
||||
"notStorable": true,
|
||||
"orderDisabled": true,
|
||||
"utility": true,
|
||||
"customizationDisabled": true
|
||||
},
|
||||
"authLogRecordId": {
|
||||
"type": "varchar",
|
||||
"notStorable": true,
|
||||
"orderDisabled": true,
|
||||
"utility": true,
|
||||
"customizationDisabled": true
|
||||
},
|
||||
"ipAddress": {
|
||||
"type": "varchar",
|
||||
"notStorable": true,
|
||||
"orderDisabled": true,
|
||||
"utility": true,
|
||||
"customizationDisabled": true
|
||||
},
|
||||
"defaultTeam": {
|
||||
"type": "link",
|
||||
"layoutDetailDisabled": true,
|
||||
"tooltip": true,
|
||||
"customizationAuditedDisabled": true,
|
||||
"customizationAutocompleteOnEmptyDisabled": true,
|
||||
"validatorClassNameList": [
|
||||
"Espo\\Classes\\FieldValidators\\User\\DefaultTeam\\IsUserTeam"
|
||||
],
|
||||
"view": "views/user/fields/default-team",
|
||||
"dynamicLogicVisibleDisabled": true
|
||||
},
|
||||
"acceptanceStatus": {
|
||||
"type": "varchar",
|
||||
"notStorable": true,
|
||||
"orderDisabled": true,
|
||||
"exportDisabled": true,
|
||||
"utility": true,
|
||||
"fieldManagerParamList": []
|
||||
},
|
||||
"acceptanceStatusMeetings": {
|
||||
"type": "enum",
|
||||
"notStorable": true,
|
||||
"orderDisabled": true,
|
||||
"directUpdateDisabled": true,
|
||||
"layoutAvailabilityList": ["filters"],
|
||||
"importDisabled": true,
|
||||
"exportDisabled": true,
|
||||
"view": "crm:views/lead/fields/acceptance-status",
|
||||
"link": "meetings",
|
||||
"column": "status",
|
||||
"fieldManagerParamList": []
|
||||
},
|
||||
"acceptanceStatusCalls": {
|
||||
"type": "enum",
|
||||
"notStorable": true,
|
||||
"orderDisabled": true,
|
||||
"directUpdateDisabled": true,
|
||||
"layoutAvailabilityList": ["filters"],
|
||||
"importDisabled": true,
|
||||
"exportDisabled": true,
|
||||
"view": "crm:views/lead/fields/acceptance-status",
|
||||
"link": "calls",
|
||||
"column": "status",
|
||||
"fieldManagerParamList": []
|
||||
},
|
||||
"teamRole": {
|
||||
"type": "varchar",
|
||||
"notStorable": true,
|
||||
"orderDisabled": true,
|
||||
"utility": true,
|
||||
"fieldManagerParamList": []
|
||||
},
|
||||
"teams": {
|
||||
"type": "linkMultiple",
|
||||
"tooltip": true,
|
||||
"columns": {
|
||||
"role": "userRole"
|
||||
},
|
||||
"additionalAttributeList": ["columns"],
|
||||
"layoutDetailDisabled": true,
|
||||
"view": "views/user/fields/teams",
|
||||
"audited": true
|
||||
},
|
||||
"roles": {
|
||||
"type": "linkMultiple",
|
||||
"layoutDetailDisabled": true,
|
||||
"tooltip": true,
|
||||
"audited": true,
|
||||
"dynamicLogicVisibleDisabled": true
|
||||
},
|
||||
"portals": {
|
||||
"type": "linkMultiple",
|
||||
"layoutDetailDisabled": true,
|
||||
"layoutListDisabled": true,
|
||||
"tooltip": true,
|
||||
"audited": true,
|
||||
"dynamicLogicVisibleDisabled": true
|
||||
},
|
||||
"portalRoles": {
|
||||
"type": "linkMultiple",
|
||||
"layoutDetailDisabled": true,
|
||||
"tooltip": true,
|
||||
"audited": true,
|
||||
"dynamicLogicVisibleDisabled": true
|
||||
},
|
||||
"contact": {
|
||||
"type": "link",
|
||||
"layoutDetailDisabled": true,
|
||||
"view": "views/user/fields/contact",
|
||||
"fieldManagerParamList": [
|
||||
"inlineEditDisabled",
|
||||
"tooltipText"
|
||||
],
|
||||
"audited": true,
|
||||
"dynamicLogicVisibleDisabled": true
|
||||
},
|
||||
"accounts": {
|
||||
"type": "linkMultiple",
|
||||
"layoutDetailDisabled": true,
|
||||
"layoutListDisabled": true,
|
||||
"fieldManagerParamList": [
|
||||
"inlineEditDisabled",
|
||||
"tooltipText"
|
||||
],
|
||||
"audited": true,
|
||||
"dynamicLogicVisibleDisabled": true
|
||||
},
|
||||
"account": {
|
||||
"type": "link",
|
||||
"notStorable": true,
|
||||
"orderDisabled": true,
|
||||
"directAccessDisabled": true,
|
||||
"foreignAccessDisabled": true,
|
||||
"layoutDetailDisabled": true,
|
||||
"layoutListDisabled": true,
|
||||
"readOnly": true,
|
||||
"audited": true
|
||||
},
|
||||
"portal": {
|
||||
"type": "link",
|
||||
"notStorable": true,
|
||||
"orderDisabled": true,
|
||||
"readOnly": true,
|
||||
"customizationDisabled": true,
|
||||
"utility": true
|
||||
},
|
||||
"avatar": {
|
||||
"type": "image",
|
||||
"view": "views/user/fields/avatar",
|
||||
"layoutDetailDisabled": true,
|
||||
"previewSize": "small",
|
||||
"customizationAuditedDisabled": true,
|
||||
"defaultAttributes": {
|
||||
"avatarId": null
|
||||
},
|
||||
"layoutAvailabilityList": []
|
||||
},
|
||||
"avatarColor": {
|
||||
"type": "colorpicker",
|
||||
"dynamicLogicDisabled": true,
|
||||
"layoutAvailabilityList": []
|
||||
},
|
||||
"sendAccessInfo": {
|
||||
"type": "bool",
|
||||
"notStorable": true,
|
||||
"orderDisabled": true,
|
||||
"utility": true
|
||||
},
|
||||
"gender": {
|
||||
"type": "enum",
|
||||
"options": ["", "Male", "Female", "Neutral"],
|
||||
"dynamicLogicVisibleDisabled": true
|
||||
},
|
||||
"createdAt": {
|
||||
"type": "datetime",
|
||||
"readOnly": true,
|
||||
"fieldManagerParamList": [
|
||||
"useNumericFormat"
|
||||
]
|
||||
},
|
||||
"modifiedAt": {
|
||||
"type": "datetime",
|
||||
"readOnly": true,
|
||||
"fieldManagerParamList": [
|
||||
"useNumericFormat"
|
||||
]
|
||||
},
|
||||
"createdBy": {
|
||||
"type": "link",
|
||||
"readOnly": true,
|
||||
"view": "views/fields/user",
|
||||
"fieldManagerParamList": []
|
||||
},
|
||||
"dashboardTemplate": {
|
||||
"type": "link",
|
||||
"layoutDetailDisabled": true,
|
||||
"layoutListDisabled": true,
|
||||
"customizationAuditedDisabled": true
|
||||
},
|
||||
"workingTimeCalendar": {
|
||||
"type": "link",
|
||||
"layoutDetailDisabled": true,
|
||||
"layoutListDisabled": true,
|
||||
"customizationAuditedDisabled": true
|
||||
},
|
||||
"layoutSet": {
|
||||
"type": "link",
|
||||
"layoutDetailDisabled": true,
|
||||
"layoutListDisabled": true,
|
||||
"customizationAuditedDisabled": true,
|
||||
"tooltip": true
|
||||
},
|
||||
"auth2FA": {
|
||||
"type": "foreign",
|
||||
"link": "userData",
|
||||
"field": "auth2FA",
|
||||
"readOnly": true,
|
||||
"view": "views/fields/foreign-bool"
|
||||
},
|
||||
"userData": {
|
||||
"type": "linkOne",
|
||||
"utility": true,
|
||||
"customizationDisabled": true
|
||||
},
|
||||
"lastAccess": {
|
||||
"type": "datetime",
|
||||
"notStorable": true,
|
||||
"orderDisabled": true,
|
||||
"readOnly": true,
|
||||
"layoutListDisabled": true,
|
||||
"layoutFiltersDisabled": true,
|
||||
"layoutMassUpdateDisabled": true,
|
||||
"layoutDetailDisabled": true,
|
||||
"directAccessDisabled": true,
|
||||
"exportDisabled": true
|
||||
},
|
||||
"emailAddressList": {
|
||||
"type": "array",
|
||||
"utility": true,
|
||||
"notStorable": true,
|
||||
"readOnly": true
|
||||
},
|
||||
"userEmailAddressList": {
|
||||
"type": "array",
|
||||
"utility": true,
|
||||
"notStorable": true,
|
||||
"readOnly": true
|
||||
},
|
||||
"excludeFromReplyEmailAddressList": {
|
||||
"type": "array",
|
||||
"utility": true,
|
||||
"notStorable": true,
|
||||
"readOnly": true
|
||||
},
|
||||
"recordAccessLevels": {
|
||||
"type": "jsonObject",
|
||||
"utility": true,
|
||||
"notStorable": true,
|
||||
"readOnly": true
|
||||
}
|
||||
},
|
||||
"links": {
|
||||
"defaultTeam": {
|
||||
"type": "belongsTo",
|
||||
"entity": "Team"
|
||||
},
|
||||
"teams": {
|
||||
"type": "hasMany",
|
||||
"entity": "Team",
|
||||
"foreign": "users",
|
||||
"additionalColumns": {
|
||||
"role": {
|
||||
"type": "varchar",
|
||||
"len": 100
|
||||
}
|
||||
},
|
||||
"layoutRelationshipsDisabled": true,
|
||||
"columnAttributeMap": {
|
||||
"role": "teamRole"
|
||||
},
|
||||
"dynamicLogicVisibleDisabled": true
|
||||
},
|
||||
"createdBy": {
|
||||
"type": "belongsTo",
|
||||
"entity": "User"
|
||||
},
|
||||
"roles": {
|
||||
"type": "hasMany",
|
||||
"entity": "Role",
|
||||
"foreign": "users",
|
||||
"layoutRelationshipsDisabled": true
|
||||
},
|
||||
"portals": {
|
||||
"type": "hasMany",
|
||||
"entity": "Portal",
|
||||
"foreign": "users",
|
||||
"layoutRelationshipsDisabled": true
|
||||
},
|
||||
"portalRoles": {
|
||||
"type": "hasMany",
|
||||
"entity": "PortalRole",
|
||||
"foreign": "users",
|
||||
"layoutRelationshipsDisabled": true
|
||||
},
|
||||
"dashboardTemplate": {
|
||||
"type": "belongsTo",
|
||||
"entity": "DashboardTemplate"
|
||||
},
|
||||
"workingTimeCalendar": {
|
||||
"type": "belongsTo",
|
||||
"entity": "WorkingTimeCalendar",
|
||||
"noJoin": true
|
||||
},
|
||||
"workingTimeRanges": {
|
||||
"type": "hasMany",
|
||||
"foreign": "users",
|
||||
"entity": "WorkingTimeRange"
|
||||
},
|
||||
"layoutSet": {
|
||||
"type": "belongsTo",
|
||||
"entity": "LayoutSet",
|
||||
"noJoin": true
|
||||
},
|
||||
"userData": {
|
||||
"type": "hasOne",
|
||||
"entity": "UserData",
|
||||
"foreign": "user",
|
||||
"foreignName": "id"
|
||||
},
|
||||
"meetings": {
|
||||
"type": "hasMany",
|
||||
"entity": "Meeting",
|
||||
"foreign": "users",
|
||||
"columnAttributeMap": {
|
||||
"status": "acceptanceStatus"
|
||||
}
|
||||
},
|
||||
"calls": {
|
||||
"type": "hasMany",
|
||||
"entity": "Call",
|
||||
"foreign": "users",
|
||||
"columnAttributeMap": {
|
||||
"status": "acceptanceStatus"
|
||||
}
|
||||
},
|
||||
"emails": {
|
||||
"type": "hasMany",
|
||||
"entity": "Email",
|
||||
"foreign": "users"
|
||||
},
|
||||
"notes": {
|
||||
"type": "hasMany",
|
||||
"entity": "Note",
|
||||
"foreign": "users",
|
||||
"layoutRelationshipsDisabled": true
|
||||
},
|
||||
"contact": {
|
||||
"type": "belongsTo",
|
||||
"entity": "Contact",
|
||||
"foreign": "portalUser"
|
||||
},
|
||||
"accounts": {
|
||||
"type": "hasMany",
|
||||
"entity": "Account",
|
||||
"foreign": "portalUsers",
|
||||
"relationName": "AccountPortalUser"
|
||||
},
|
||||
"tasks": {
|
||||
"type": "hasMany",
|
||||
"entity": "Task",
|
||||
"foreign": "assignedUser"
|
||||
}
|
||||
},
|
||||
"collection": {
|
||||
"orderBy": "userName",
|
||||
"order": "asc",
|
||||
"textFilterFields": ["name", "userName", "emailAddress"]
|
||||
},
|
||||
"indexes": {
|
||||
"userNameDeleteId": {
|
||||
"type": "unique",
|
||||
"columns": [
|
||||
"userName",
|
||||
"deleteId"
|
||||
]
|
||||
}
|
||||
},
|
||||
"deleteId": true
|
||||
}
|
||||
23
application/Espo/Resources/metadata/entityDefs/UserData.json
Normal file
23
application/Espo/Resources/metadata/entityDefs/UserData.json
Normal file
@@ -0,0 +1,23 @@
|
||||
{
|
||||
"fields": {
|
||||
"auth2FA": {
|
||||
"type": "bool"
|
||||
},
|
||||
"auth2FAMethod": {
|
||||
"type": "enum"
|
||||
},
|
||||
"auth2FATotpSecret": {
|
||||
"type": "varchar",
|
||||
"maxLength": 32
|
||||
},
|
||||
"auth2FAEmailAddress": {
|
||||
"type": "varchar"
|
||||
}
|
||||
},
|
||||
"links": {
|
||||
"user": {
|
||||
"type": "belongsTo",
|
||||
"entity": "User"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
{
|
||||
"fields": {
|
||||
"type": {
|
||||
"type": "varchar",
|
||||
"maxLength": 10
|
||||
},
|
||||
"user": {
|
||||
"type": "link"
|
||||
},
|
||||
"parent": {
|
||||
"type": "linkParent"
|
||||
},
|
||||
"createdAt": {
|
||||
"type": "datetime"
|
||||
}
|
||||
},
|
||||
"links": {
|
||||
"user": {
|
||||
"type": "belongsTo",
|
||||
"entity": "User"
|
||||
},
|
||||
"parent": {
|
||||
"type": "belongsToParent",
|
||||
"entityList": ["Note"]
|
||||
}
|
||||
},
|
||||
"indexes": {
|
||||
"parentUserType": {
|
||||
"unique": true,
|
||||
"columns": [
|
||||
"parentId",
|
||||
"parentType",
|
||||
"userId",
|
||||
"type"
|
||||
]
|
||||
}
|
||||
},
|
||||
"noDeletedAttribute": true
|
||||
}
|
||||
108
application/Espo/Resources/metadata/entityDefs/Webhook.json
Normal file
108
application/Espo/Resources/metadata/entityDefs/Webhook.json
Normal file
@@ -0,0 +1,108 @@
|
||||
{
|
||||
"fields": {
|
||||
"event": {
|
||||
"type": "varchar",
|
||||
"maxLength": 100,
|
||||
"required": true,
|
||||
"view": "views/webhook/fields/event"
|
||||
},
|
||||
"url": {
|
||||
"type": "varchar",
|
||||
"maxLength": 512,
|
||||
"required": true,
|
||||
"copyToClipboard": true
|
||||
},
|
||||
"isActive": {
|
||||
"type": "bool",
|
||||
"default": true
|
||||
},
|
||||
"user": {
|
||||
"type": "link",
|
||||
"view": "views/webhook/fields/user"
|
||||
},
|
||||
"entityType": {
|
||||
"type": "varchar",
|
||||
"readOnly": true,
|
||||
"view": "views/fields/entity-type"
|
||||
},
|
||||
"type": {
|
||||
"type": "enum",
|
||||
"options": [
|
||||
"create",
|
||||
"update",
|
||||
"fieldUpdate",
|
||||
"delete"
|
||||
],
|
||||
"readOnly": true
|
||||
},
|
||||
"field": {
|
||||
"type": "varchar",
|
||||
"readOnly": true
|
||||
},
|
||||
"secretKey": {
|
||||
"type": "varchar",
|
||||
"maxLength": 100,
|
||||
"readOnly": true,
|
||||
"layoutMassUpdateDisabled": true,
|
||||
"layoutFiltersDisabled": true,
|
||||
"layoutListDisabled": true
|
||||
},
|
||||
"skipOwn": {
|
||||
"type": "bool",
|
||||
"tooltip": true
|
||||
},
|
||||
"createdAt": {
|
||||
"type": "datetime",
|
||||
"readOnly": true
|
||||
},
|
||||
"modifiedAt": {
|
||||
"type": "datetime",
|
||||
"readOnly": true
|
||||
},
|
||||
"createdBy": {
|
||||
"type": "link",
|
||||
"readOnly": true
|
||||
},
|
||||
"modifiedBy": {
|
||||
"type": "link",
|
||||
"readOnly": true
|
||||
}
|
||||
},
|
||||
"links": {
|
||||
"user": {
|
||||
"type": "belongsTo",
|
||||
"entity": "User"
|
||||
},
|
||||
"queueItems": {
|
||||
"type": "hasMany",
|
||||
"entity": "WebhookQueueItem",
|
||||
"foreign": "webhook",
|
||||
"readOnly": true
|
||||
},
|
||||
"createdBy": {
|
||||
"type": "belongsTo",
|
||||
"entity": "User"
|
||||
},
|
||||
"modifiedBy": {
|
||||
"type": "belongsTo",
|
||||
"entity": "User"
|
||||
}
|
||||
},
|
||||
"collection": {
|
||||
"orderBy": "createdAt",
|
||||
"order": "desc",
|
||||
"textFilterFields": ["event"]
|
||||
},
|
||||
"indexes": {
|
||||
"event": {
|
||||
"columns": ["event"]
|
||||
},
|
||||
"entityTypeType": {
|
||||
"columns": ["entityType", "type"]
|
||||
},
|
||||
"entityTypeField": {
|
||||
"columns": ["entityType", "field"]
|
||||
}
|
||||
},
|
||||
"hooksDisabled": true
|
||||
}
|
||||
@@ -0,0 +1,43 @@
|
||||
{
|
||||
"fields": {
|
||||
"number": {
|
||||
"type": "autoincrement",
|
||||
"dbType": "bigint"
|
||||
},
|
||||
"event": {
|
||||
"type": "varchar",
|
||||
"maxLength": 100,
|
||||
"required": true,
|
||||
"view": "views/webhook/fields/event"
|
||||
},
|
||||
"target": {
|
||||
"type": "linkParent"
|
||||
},
|
||||
"user": {
|
||||
"type": "link"
|
||||
},
|
||||
"data": {
|
||||
"type": "jsonObject"
|
||||
},
|
||||
"createdAt": {
|
||||
"type": "datetime",
|
||||
"readOnly": true
|
||||
},
|
||||
"isProcessed": {
|
||||
"type": "bool"
|
||||
}
|
||||
},
|
||||
"links": {
|
||||
"target": {
|
||||
"type": "belongsToParent"
|
||||
},
|
||||
"user": {
|
||||
"type": "belongsTo",
|
||||
"entity": "User"
|
||||
}
|
||||
},
|
||||
"collection": {
|
||||
"orderBy": "number",
|
||||
"order": "desc"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,63 @@
|
||||
{
|
||||
"fields": {
|
||||
"number": {
|
||||
"type": "autoincrement",
|
||||
"dbType": "bigint"
|
||||
},
|
||||
"event": {
|
||||
"type": "varchar",
|
||||
"maxLength": 100,
|
||||
"required": true,
|
||||
"view": "views/webhook/fields/event"
|
||||
},
|
||||
"webhook": {
|
||||
"type": "link"
|
||||
},
|
||||
"target": {
|
||||
"type": "linkParent"
|
||||
},
|
||||
"data": {
|
||||
"type": "jsonObject"
|
||||
},
|
||||
"createdAt": {
|
||||
"type": "datetime",
|
||||
"hasSeconds": true
|
||||
},
|
||||
"status": {
|
||||
"type": "enum",
|
||||
"options": ["Pending", "Success", "Failed"],
|
||||
"default": "Pending",
|
||||
"maxLength": 7,
|
||||
"style": {
|
||||
"Success": "success",
|
||||
"Failed": "danger"
|
||||
}
|
||||
},
|
||||
"processedAt": {
|
||||
"type": "datetime",
|
||||
"hasSeconds": true
|
||||
},
|
||||
"attempts": {
|
||||
"type": "int",
|
||||
"default": 0
|
||||
},
|
||||
"processAt": {
|
||||
"type": "datetime"
|
||||
}
|
||||
},
|
||||
"links": {
|
||||
"target": {
|
||||
"type": "belongsToParent"
|
||||
},
|
||||
"webhook": {
|
||||
"type": "belongsTo",
|
||||
"entity": "Webhook",
|
||||
"foreignName": "id",
|
||||
"foreign": "queueItems"
|
||||
}
|
||||
},
|
||||
"collection": {
|
||||
"orderBy": "number",
|
||||
"order": "desc"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,133 @@
|
||||
{
|
||||
"fields": {
|
||||
"name": {
|
||||
"type": "varchar",
|
||||
"required": true
|
||||
},
|
||||
"description": {
|
||||
"type": "text"
|
||||
},
|
||||
"timeZone": {
|
||||
"type": "enum",
|
||||
"default": "",
|
||||
"view": "views/preferences/fields/time-zone"
|
||||
},
|
||||
"timeRanges": {
|
||||
"type": "jsonArray",
|
||||
"default": [
|
||||
["9:00", "17:00"]
|
||||
],
|
||||
"view": "views/working-time-calendar/fields/time-ranges",
|
||||
"required": true
|
||||
},
|
||||
"weekday0": {
|
||||
"type": "bool",
|
||||
"default": false
|
||||
},
|
||||
"weekday1": {
|
||||
"type": "bool",
|
||||
"default": true
|
||||
},
|
||||
"weekday2": {
|
||||
"type": "bool",
|
||||
"default": true
|
||||
},
|
||||
"weekday3": {
|
||||
"type": "bool",
|
||||
"default": true
|
||||
},
|
||||
"weekday4": {
|
||||
"type": "bool",
|
||||
"default": true
|
||||
},
|
||||
"weekday5": {
|
||||
"type": "bool",
|
||||
"default": true
|
||||
},
|
||||
"weekday6": {
|
||||
"type": "bool",
|
||||
"default": false
|
||||
},
|
||||
"weekday0TimeRanges": {
|
||||
"type": "jsonArray",
|
||||
"default": null,
|
||||
"view": "views/working-time-calendar/fields/time-ranges"
|
||||
},
|
||||
"weekday1TimeRanges": {
|
||||
"type": "jsonArray",
|
||||
"default": null,
|
||||
"view": "views/working-time-calendar/fields/time-ranges"
|
||||
},
|
||||
"weekday2TimeRanges": {
|
||||
"type": "jsonArray",
|
||||
"default": null,
|
||||
"view": "views/working-time-calendar/fields/time-ranges"
|
||||
},
|
||||
"weekday3TimeRanges": {
|
||||
"type": "jsonArray",
|
||||
"default": null,
|
||||
"view": "views/working-time-calendar/fields/time-ranges"
|
||||
},
|
||||
"weekday4TimeRanges": {
|
||||
"type": "jsonArray",
|
||||
"default": null,
|
||||
"view": "views/working-time-calendar/fields/time-ranges"
|
||||
},
|
||||
"weekday5TimeRanges": {
|
||||
"type": "jsonArray",
|
||||
"default": null,
|
||||
"view": "views/working-time-calendar/fields/time-ranges"
|
||||
},
|
||||
"weekday6TimeRanges": {
|
||||
"type": "jsonArray",
|
||||
"default": null,
|
||||
"view": "views/working-time-calendar/fields/time-ranges"
|
||||
},
|
||||
"teams": {
|
||||
"type": "linkMultiple",
|
||||
"readOnly": true
|
||||
},
|
||||
"createdAt": {
|
||||
"type": "datetime",
|
||||
"readOnly": true
|
||||
},
|
||||
"modifiedAt": {
|
||||
"type": "datetime",
|
||||
"readOnly": true
|
||||
},
|
||||
"createdBy": {
|
||||
"type": "link",
|
||||
"readOnly": true
|
||||
},
|
||||
"modifiedBy": {
|
||||
"type": "link",
|
||||
"readOnly": true
|
||||
}
|
||||
},
|
||||
"links": {
|
||||
"ranges": {
|
||||
"type": "hasMany",
|
||||
"foreign": "calendars",
|
||||
"entity": "WorkingTimeRange"
|
||||
},
|
||||
"teams": {
|
||||
"type": "hasMany",
|
||||
"foreign": "workingTimeCalendar",
|
||||
"entity": "Team",
|
||||
"readOnly": true
|
||||
},
|
||||
"createdBy": {
|
||||
"type": "belongsTo",
|
||||
"entity": "User"
|
||||
},
|
||||
"modifiedBy": {
|
||||
"type": "belongsTo",
|
||||
"entity": "User"
|
||||
}
|
||||
},
|
||||
"collection": {
|
||||
"orderBy": "name",
|
||||
"order": "asc",
|
||||
"textFilterFields": ["name"]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,93 @@
|
||||
{
|
||||
"fields": {
|
||||
"timeRanges": {
|
||||
"type": "jsonArray",
|
||||
"default": null,
|
||||
"view": "views/working-time-calendar/fields/time-ranges"
|
||||
},
|
||||
"dateStart": {
|
||||
"type": "date",
|
||||
"required": true
|
||||
},
|
||||
"dateEnd": {
|
||||
"type": "date",
|
||||
"required": true,
|
||||
"view": "views/working-time-range/fields/date-end",
|
||||
"after": "dateStart",
|
||||
"afterOrEqual": true
|
||||
},
|
||||
"type": {
|
||||
"type": "enum",
|
||||
"options": [
|
||||
"Non-working",
|
||||
"Working"
|
||||
],
|
||||
"default": "Non-working",
|
||||
"index": true,
|
||||
"maxLength": 11
|
||||
},
|
||||
"name": {
|
||||
"type": "varchar"
|
||||
},
|
||||
"description": {
|
||||
"type": "text"
|
||||
},
|
||||
"calendars": {
|
||||
"type": "linkMultiple",
|
||||
"tooltip": true
|
||||
},
|
||||
"users": {
|
||||
"type": "linkMultiple",
|
||||
"view": "views/working-time-range/fields/users",
|
||||
"tooltip": true
|
||||
},
|
||||
"createdAt": {
|
||||
"type": "datetime",
|
||||
"readOnly": true
|
||||
},
|
||||
"modifiedAt": {
|
||||
"type": "datetime",
|
||||
"readOnly": true
|
||||
},
|
||||
"createdBy": {
|
||||
"type": "link",
|
||||
"readOnly": true
|
||||
},
|
||||
"modifiedBy": {
|
||||
"type": "link",
|
||||
"readOnly": true
|
||||
}
|
||||
},
|
||||
"links": {
|
||||
"calendars": {
|
||||
"type": "hasMany",
|
||||
"foreign": "ranges",
|
||||
"entity": "WorkingTimeCalendar"
|
||||
},
|
||||
"users": {
|
||||
"type": "hasMany",
|
||||
"foreign": "workingTimeRanges",
|
||||
"entity": "User"
|
||||
},
|
||||
"createdBy": {
|
||||
"type": "belongsTo",
|
||||
"entity": "User"
|
||||
},
|
||||
"modifiedBy": {
|
||||
"type": "belongsTo",
|
||||
"entity": "User"
|
||||
}
|
||||
},
|
||||
"collection": {
|
||||
"orderBy": "dateStart",
|
||||
"order": "desc"
|
||||
},
|
||||
"indexes": {
|
||||
"typeRange": {
|
||||
"columns": ["type", "dateStart", "dateEnd"]
|
||||
},
|
||||
"type": {
|
||||
"columns": ["type"]
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user