зеркало из https://github.com/microsoft/CDM.git
932 строки
32 KiB
JSON
932 строки
32 KiB
JSON
{
|
|
"jsonSchemaSemanticVersion": "1.0.0",
|
|
"imports": [
|
|
{
|
|
"corpusPath": "_allImports.1.2.cdm.json"
|
|
}
|
|
],
|
|
"definitions": [
|
|
{
|
|
"entityName": "LinkedInActivity",
|
|
"extendsEntity": "CdsStandard",
|
|
"exhibitsTraits": [
|
|
{
|
|
"traitReference": "is.localized.displayedAs",
|
|
"arguments": [
|
|
{
|
|
"entityReference": {
|
|
"entityShape": "localizedTable",
|
|
"constantValues": [
|
|
[
|
|
"en",
|
|
"LinkedIn activity"
|
|
]
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"traitReference": "is.CDM.entityVersion",
|
|
"arguments": [
|
|
{
|
|
"name": "versionNumber",
|
|
"value": "1.1"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"hasAttributes": [
|
|
{
|
|
"attributeGroupReference": {
|
|
"attributeGroupName": "attributesAddedAtThisScope",
|
|
"members": [
|
|
{
|
|
"name": "actionStatus",
|
|
"purpose": "hasA",
|
|
"dataType": "string",
|
|
"appliedTraits": [
|
|
{
|
|
"traitReference": "is.CDS.sourceNamed",
|
|
"arguments": [
|
|
"msdyncrm_action_status"
|
|
]
|
|
},
|
|
{
|
|
"traitReference": "is.constrained",
|
|
"arguments": [
|
|
{
|
|
"name": "maximumLength",
|
|
"value": "100"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"traitReference": "is.requiredAtLevel",
|
|
"arguments": [
|
|
{
|
|
"name": "level",
|
|
"value": "none"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"traitReference": "is.localized.displayedAs",
|
|
"arguments": [
|
|
{
|
|
"entityReference": {
|
|
"entityShape": "localizedTable",
|
|
"constantValues": [
|
|
[
|
|
"en",
|
|
"Action Status"
|
|
]
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"traitReference": "is.localized.describedAs",
|
|
"arguments": [
|
|
{
|
|
"entityReference": {
|
|
"entityShape": "localizedTable",
|
|
"constantValues": [
|
|
[
|
|
"en",
|
|
"The status of Marketing Activity creation"
|
|
]
|
|
]
|
|
}
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"isNullable": true,
|
|
"sourceName": "msdyncrm_action_status",
|
|
"displayName": "Action Status",
|
|
"description": "The status of Marketing Activity creation",
|
|
"maximumLength": 100
|
|
},
|
|
{
|
|
"name": "activityadditionalparams",
|
|
"purpose": "hasA",
|
|
"dataType": "string",
|
|
"appliedTraits": [
|
|
{
|
|
"traitReference": "is.CDS.sourceNamed",
|
|
"arguments": [
|
|
"msdyncrm_activityadditionalparams"
|
|
]
|
|
},
|
|
{
|
|
"traitReference": "is.constrained",
|
|
"arguments": [
|
|
{
|
|
"name": "maximumLength",
|
|
"value": "1048576"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"traitReference": "is.requiredAtLevel",
|
|
"arguments": [
|
|
{
|
|
"name": "level",
|
|
"value": "none"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"traitReference": "is.localized.displayedAs",
|
|
"arguments": [
|
|
{
|
|
"entityReference": {
|
|
"entityShape": "localizedTable",
|
|
"constantValues": [
|
|
[
|
|
"en",
|
|
"JSON Payload"
|
|
]
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"traitReference": "is.localized.describedAs",
|
|
"arguments": [
|
|
{
|
|
"entityReference": {
|
|
"entityShape": "localizedTable",
|
|
"constantValues": [
|
|
[
|
|
"en",
|
|
""
|
|
]
|
|
]
|
|
}
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"isNullable": true,
|
|
"sourceName": "msdyncrm_activityadditionalparams",
|
|
"displayName": "JSON Payload",
|
|
"description": "",
|
|
"maximumLength": 1048576
|
|
},
|
|
{
|
|
"name": "actualdurationminutes",
|
|
"purpose": "hasA",
|
|
"dataType": "integer",
|
|
"appliedTraits": [
|
|
{
|
|
"traitReference": "is.CDS.sourceNamed",
|
|
"arguments": [
|
|
"msdyncrm_actualdurationminutes"
|
|
]
|
|
},
|
|
{
|
|
"traitReference": "is.constrained",
|
|
"arguments": [
|
|
{
|
|
"name": "minimumValue",
|
|
"value": "0"
|
|
},
|
|
{
|
|
"name": "maximumValue",
|
|
"value": "2147483647"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"traitReference": "is.requiredAtLevel",
|
|
"arguments": [
|
|
{
|
|
"name": "level",
|
|
"value": "none"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"traitReference": "is.localized.displayedAs",
|
|
"arguments": [
|
|
{
|
|
"entityReference": {
|
|
"entityShape": "localizedTable",
|
|
"constantValues": [
|
|
[
|
|
"en",
|
|
"Actual duration (min)"
|
|
]
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"traitReference": "is.localized.describedAs",
|
|
"arguments": [
|
|
{
|
|
"entityReference": {
|
|
"entityShape": "localizedTable",
|
|
"constantValues": [
|
|
[
|
|
"en",
|
|
""
|
|
]
|
|
]
|
|
}
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"isNullable": true,
|
|
"sourceName": "msdyncrm_actualdurationminutes",
|
|
"displayName": "Actual duration (min)",
|
|
"description": "",
|
|
"maximumValue": "2147483647",
|
|
"minimumValue": "0"
|
|
},
|
|
{
|
|
"name": "actualEnd",
|
|
"purpose": "hasA",
|
|
"dataType": "dateTime",
|
|
"appliedTraits": [
|
|
{
|
|
"traitReference": "is.CDS.sourceNamed",
|
|
"arguments": [
|
|
"msdyncrm_actualend"
|
|
]
|
|
},
|
|
{
|
|
"traitReference": "is.requiredAtLevel",
|
|
"arguments": [
|
|
{
|
|
"name": "level",
|
|
"value": "none"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"traitReference": "is.localized.displayedAs",
|
|
"arguments": [
|
|
{
|
|
"entityReference": {
|
|
"entityShape": "localizedTable",
|
|
"constantValues": [
|
|
[
|
|
"en",
|
|
"Actual end"
|
|
]
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"traitReference": "is.localized.describedAs",
|
|
"arguments": [
|
|
{
|
|
"entityReference": {
|
|
"entityShape": "localizedTable",
|
|
"constantValues": [
|
|
[
|
|
"en",
|
|
""
|
|
]
|
|
]
|
|
}
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"isNullable": true,
|
|
"sourceName": "msdyncrm_actualend",
|
|
"displayName": "Actual end",
|
|
"description": ""
|
|
},
|
|
{
|
|
"name": "actualStart",
|
|
"purpose": "hasA",
|
|
"dataType": "dateTime",
|
|
"appliedTraits": [
|
|
{
|
|
"traitReference": "is.CDS.sourceNamed",
|
|
"arguments": [
|
|
"msdyncrm_actualstart"
|
|
]
|
|
},
|
|
{
|
|
"traitReference": "is.requiredAtLevel",
|
|
"arguments": [
|
|
{
|
|
"name": "level",
|
|
"value": "none"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"traitReference": "is.localized.displayedAs",
|
|
"arguments": [
|
|
{
|
|
"entityReference": {
|
|
"entityShape": "localizedTable",
|
|
"constantValues": [
|
|
[
|
|
"en",
|
|
"Actual start"
|
|
]
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"traitReference": "is.localized.describedAs",
|
|
"arguments": [
|
|
{
|
|
"entityReference": {
|
|
"entityShape": "localizedTable",
|
|
"constantValues": [
|
|
[
|
|
"en",
|
|
""
|
|
]
|
|
]
|
|
}
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"isNullable": true,
|
|
"sourceName": "msdyncrm_actualstart",
|
|
"displayName": "Actual start",
|
|
"description": ""
|
|
},
|
|
{
|
|
"name": "description",
|
|
"purpose": "hasA",
|
|
"dataType": "string",
|
|
"appliedTraits": [
|
|
{
|
|
"traitReference": "is.CDS.sourceNamed",
|
|
"arguments": [
|
|
"msdyncrm_description"
|
|
]
|
|
},
|
|
{
|
|
"traitReference": "is.constrained",
|
|
"arguments": [
|
|
{
|
|
"name": "maximumLength",
|
|
"value": "2000"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"traitReference": "is.requiredAtLevel",
|
|
"arguments": [
|
|
{
|
|
"name": "level",
|
|
"value": "none"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"traitReference": "is.localized.displayedAs",
|
|
"arguments": [
|
|
{
|
|
"entityReference": {
|
|
"entityShape": "localizedTable",
|
|
"constantValues": [
|
|
[
|
|
"en",
|
|
"Description"
|
|
]
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"traitReference": "is.localized.describedAs",
|
|
"arguments": [
|
|
{
|
|
"entityReference": {
|
|
"entityShape": "localizedTable",
|
|
"constantValues": [
|
|
[
|
|
"en",
|
|
""
|
|
]
|
|
]
|
|
}
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"isNullable": true,
|
|
"sourceName": "msdyncrm_description",
|
|
"displayName": "Description",
|
|
"description": "",
|
|
"maximumLength": 2000
|
|
},
|
|
{
|
|
"name": "durationmillisecond",
|
|
"purpose": "hasA",
|
|
"dataType": "integer",
|
|
"appliedTraits": [
|
|
{
|
|
"traitReference": "is.CDS.sourceNamed",
|
|
"arguments": [
|
|
"msdyncrm_durationmillisecond"
|
|
]
|
|
},
|
|
{
|
|
"traitReference": "is.constrained",
|
|
"arguments": [
|
|
{
|
|
"name": "minimumValue",
|
|
"value": "-2147483648"
|
|
},
|
|
{
|
|
"name": "maximumValue",
|
|
"value": "2147483647"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"traitReference": "is.requiredAtLevel",
|
|
"arguments": [
|
|
{
|
|
"name": "level",
|
|
"value": "none"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"traitReference": "is.localized.displayedAs",
|
|
"arguments": [
|
|
{
|
|
"entityReference": {
|
|
"entityShape": "localizedTable",
|
|
"constantValues": [
|
|
[
|
|
"en",
|
|
"Duration (milliseconds)"
|
|
]
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"traitReference": "is.localized.describedAs",
|
|
"arguments": [
|
|
{
|
|
"entityReference": {
|
|
"entityShape": "localizedTable",
|
|
"constantValues": [
|
|
[
|
|
"en",
|
|
""
|
|
]
|
|
]
|
|
}
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"isNullable": true,
|
|
"sourceName": "msdyncrm_durationmillisecond",
|
|
"displayName": "Duration (milliseconds)",
|
|
"description": "",
|
|
"maximumValue": "2147483647",
|
|
"minimumValue": "-2147483648"
|
|
},
|
|
{
|
|
"name": "errorMessage",
|
|
"purpose": "hasA",
|
|
"dataType": "string",
|
|
"appliedTraits": [
|
|
{
|
|
"traitReference": "is.CDS.sourceNamed",
|
|
"arguments": [
|
|
"msdyncrm_error_message"
|
|
]
|
|
},
|
|
{
|
|
"traitReference": "is.constrained",
|
|
"arguments": [
|
|
{
|
|
"name": "maximumLength",
|
|
"value": "2000"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"traitReference": "is.requiredAtLevel",
|
|
"arguments": [
|
|
{
|
|
"name": "level",
|
|
"value": "none"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"traitReference": "is.localized.displayedAs",
|
|
"arguments": [
|
|
{
|
|
"entityReference": {
|
|
"entityShape": "localizedTable",
|
|
"constantValues": [
|
|
[
|
|
"en",
|
|
"Error message"
|
|
]
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"traitReference": "is.localized.describedAs",
|
|
"arguments": [
|
|
{
|
|
"entityReference": {
|
|
"entityShape": "localizedTable",
|
|
"constantValues": [
|
|
[
|
|
"en",
|
|
""
|
|
]
|
|
]
|
|
}
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"isNullable": true,
|
|
"sourceName": "msdyncrm_error_message",
|
|
"displayName": "Error message",
|
|
"description": "",
|
|
"maximumLength": 2000
|
|
},
|
|
{
|
|
"name": "linkedInActivityId",
|
|
"purpose": "identifiedBy",
|
|
"dataType": "entityId",
|
|
"appliedTraits": [
|
|
{
|
|
"traitReference": "is.CDS.sourceNamed",
|
|
"arguments": [
|
|
"msdyncrm_linkedinactivityId"
|
|
]
|
|
},
|
|
{
|
|
"traitReference": "is.requiredAtLevel",
|
|
"arguments": [
|
|
{
|
|
"name": "level",
|
|
"value": "systemrequired"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"traitReference": "is.localized.displayedAs",
|
|
"arguments": [
|
|
{
|
|
"entityReference": {
|
|
"entityShape": "localizedTable",
|
|
"constantValues": [
|
|
[
|
|
"en",
|
|
"LinkedIn Activity"
|
|
]
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"traitReference": "is.localized.describedAs",
|
|
"arguments": [
|
|
{
|
|
"entityReference": {
|
|
"entityShape": "localizedTable",
|
|
"constantValues": [
|
|
[
|
|
"en",
|
|
"Unique identifier for entity instances"
|
|
]
|
|
]
|
|
}
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"sourceName": "msdyncrm_linkedinactivityid",
|
|
"displayName": "LinkedIn Activity",
|
|
"description": "Unique identifier for entity instances"
|
|
},
|
|
{
|
|
"name": "name",
|
|
"purpose": "hasA",
|
|
"dataType": "name",
|
|
"appliedTraits": [
|
|
{
|
|
"traitReference": "is.CDS.sourceNamed",
|
|
"arguments": [
|
|
"msdyncrm_name"
|
|
]
|
|
},
|
|
{
|
|
"traitReference": "is.constrained",
|
|
"arguments": [
|
|
{
|
|
"name": "maximumLength",
|
|
"value": "100"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"traitReference": "is.requiredAtLevel",
|
|
"arguments": [
|
|
{
|
|
"name": "level",
|
|
"value": "required"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"traitReference": "is.localized.displayedAs",
|
|
"arguments": [
|
|
{
|
|
"entityReference": {
|
|
"entityShape": "localizedTable",
|
|
"constantValues": [
|
|
[
|
|
"en",
|
|
"Name"
|
|
]
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"traitReference": "is.localized.describedAs",
|
|
"arguments": [
|
|
{
|
|
"entityReference": {
|
|
"entityShape": "localizedTable",
|
|
"constantValues": [
|
|
[
|
|
"en",
|
|
"The name of the custom entity"
|
|
]
|
|
]
|
|
}
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"sourceName": "msdyncrm_name",
|
|
"displayName": "Name",
|
|
"description": "The name of the custom entity",
|
|
"maximumLength": 100
|
|
},
|
|
{
|
|
"name": "stateCode",
|
|
"purpose": "representsStateWith",
|
|
"dataType": {
|
|
"dataTypeReference": "listLookup",
|
|
"appliedTraits": [
|
|
{
|
|
"traitReference": "does.haveDefault",
|
|
"arguments": [
|
|
{
|
|
"entityReference": {
|
|
"explanation": "The constantValues below correspond to the attributes of the 'listLookupValues' entityShape which are: {languageTag, displayText, attributeValue, displayOrder}",
|
|
"entityShape": "listLookupValues",
|
|
"constantValues": [
|
|
[
|
|
"en",
|
|
"Active",
|
|
"0",
|
|
"0"
|
|
],
|
|
[
|
|
"en",
|
|
"Inactive",
|
|
"1",
|
|
"1"
|
|
]
|
|
]
|
|
}
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"appliedTraits": [
|
|
{
|
|
"traitReference": "is.CDS.sourceNamed",
|
|
"arguments": [
|
|
"statecode"
|
|
]
|
|
},
|
|
{
|
|
"traitReference": "is.requiredAtLevel",
|
|
"arguments": [
|
|
{
|
|
"name": "level",
|
|
"value": "systemrequired"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"traitReference": "is.localized.displayedAs",
|
|
"arguments": [
|
|
{
|
|
"entityReference": {
|
|
"entityShape": "localizedTable",
|
|
"constantValues": [
|
|
[
|
|
"en",
|
|
"Status"
|
|
]
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"traitReference": "is.localized.describedAs",
|
|
"arguments": [
|
|
{
|
|
"entityReference": {
|
|
"entityShape": "localizedTable",
|
|
"constantValues": [
|
|
[
|
|
"en",
|
|
"Status of the LinkedIn Activity"
|
|
]
|
|
]
|
|
}
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"sourceName": "statecode",
|
|
"displayName": "Status",
|
|
"description": "Status of the LinkedIn Activity",
|
|
"resolutionGuidance": {
|
|
"addSupportingAttribute": {
|
|
"explanation": "This attribute 'stateCode_display' is added to the 'LinkedInActivity' entity to provide the localized display text for the value of the listLookup attribute 'stateCode'",
|
|
"name": "stateCode_display",
|
|
"purpose": "hasA",
|
|
"dataType": "localizedDisplayText",
|
|
"isReadOnly": true
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "statusCode",
|
|
"purpose": {
|
|
"purposeReference": "representsCorrelatedStatusWith",
|
|
"appliedTraits": [
|
|
{
|
|
"traitReference": "is.correlatedWith",
|
|
"arguments": [
|
|
"stateCode"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"dataType": {
|
|
"dataTypeReference": "listLookup",
|
|
"appliedTraits": [
|
|
{
|
|
"traitReference": "does.haveDefault",
|
|
"arguments": [
|
|
{
|
|
"entityReference": {
|
|
"explanation": "The constantValues below correspond to the attributes of the 'listLookupCorrelatedValues' entityShape which are: {languageTag, displayText, attributeValue, displayOrder, correlatedValue}",
|
|
"entityShape": "listLookupCorrelatedValues",
|
|
"constantValues": [
|
|
[
|
|
"en",
|
|
"Active",
|
|
"1",
|
|
"0",
|
|
"0"
|
|
],
|
|
[
|
|
"en",
|
|
"Inactive",
|
|
"2",
|
|
"1",
|
|
"1"
|
|
]
|
|
]
|
|
}
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"appliedTraits": [
|
|
{
|
|
"traitReference": "is.CDS.sourceNamed",
|
|
"arguments": [
|
|
"statuscode"
|
|
]
|
|
},
|
|
{
|
|
"traitReference": "is.requiredAtLevel",
|
|
"arguments": [
|
|
{
|
|
"name": "level",
|
|
"value": "none"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"traitReference": "is.localized.displayedAs",
|
|
"arguments": [
|
|
{
|
|
"entityReference": {
|
|
"entityShape": "localizedTable",
|
|
"constantValues": [
|
|
[
|
|
"en",
|
|
"Status Reason"
|
|
]
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"traitReference": "is.localized.describedAs",
|
|
"arguments": [
|
|
{
|
|
"entityReference": {
|
|
"entityShape": "localizedTable",
|
|
"constantValues": [
|
|
[
|
|
"en",
|
|
"Reason for the status of the LinkedIn Activity"
|
|
]
|
|
]
|
|
}
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"isNullable": true,
|
|
"sourceName": "statuscode",
|
|
"displayName": "Status Reason",
|
|
"description": "Reason for the status of the LinkedIn Activity",
|
|
"resolutionGuidance": {
|
|
"addSupportingAttribute": {
|
|
"explanation": "This attribute 'statusCode_display' is added to the 'LinkedInActivity' entity to provide the localized display text for the value of the listLookup attribute 'statusCode'",
|
|
"name": "statusCode_display",
|
|
"purpose": "hasA",
|
|
"dataType": "localizedDisplayText",
|
|
"isReadOnly": true,
|
|
"isNullable": true
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"exhibitsTraits": [
|
|
{
|
|
"traitReference": "is.CDM.attributeGroup",
|
|
"arguments": [
|
|
{
|
|
"entityReference": {
|
|
"entityShape": "attributeGroupSet",
|
|
"constantValues": [
|
|
[
|
|
"/Marketing/LinkedInLeadGen/LinkedInActivity.1.1.cdm.json/LinkedInActivity/hasAttributes/attributesAddedAtThisScope"
|
|
]
|
|
]
|
|
}
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"sourceName": "msdyncrm_linkedinactivity",
|
|
"displayName": "LinkedIn activity"
|
|
}
|
|
],
|
|
"documentVersion": "1.1"
|
|
} |