cluedin-widget
Version:
This project contains all the pages needed for browsing entities and searching them. The aim is to replace the CluedIn.Webapp project with this one when all the pages ( including the Admin page ) will be ported to REACT.
135 lines (134 loc) • 4.27 kB
JavaScript
import formatHelper from './../format';
module.exports = {
important: [
{
either: [
{
display: 'Name',
value: 'property-sharepoint.listitem.LinkFilename'
},
{
display: 'Name',
value: 'property-OriginalFilename'
},
{
display: 'Name',
value: 'property-DropBox Files'
}
]
},
{
display: 'Probability',
key: 'probability',
value: 'property-sale.probability'
},
{
display: 'Expected Revenue',
key: 'revenue',
value: 'property-salesforce.Opportunity.ExpectedRevenue'
},
{
display: 'Amount',
key: 'amount',
value: 'property-salesforce.Opportunity.Amount'
},
{
display: 'Stage Name',
key: 'stage',
value: 'property-salesforce.Opportunity.StageName'
},
{
display: 'Type',
key: 'type',
value: 'property-salesforce.Opportunity.Type'
}
],
all: [
{
either: [
{
display: 'Size',
value: 'property-bytes',
format: formatHelper.bytesToSize
}, {
display: 'Size',
value: 'property-size',
}
]
}, {
either: [
{
display: 'Created at',
value: 'property-CreatedDateRaw',
format: formatHelper.formatDate
}, {
display: 'Created at',
value: 'property-clientMTime',
format: formatHelper.formatDate
}, {
display: 'Created at',
value: 'property-clientMTimeDate',
format: formatHelper.formatDate
}
]
}, {
display: 'Last Modified By',
value: 'property-LastModifyingUserName'
}, {
either: [{
display: 'Modified at',
value: 'property-sharepoint.listitem.Modified',
format: formatHelper.formatDate
}, {
display: 'Last Modified at',
value: 'property-ModifiedDateRaw',
format: formatHelper.formatDate
}, {
display: 'Last Modified at',
value: 'property-modifiedDate',
format: formatHelper.formatDate
}, {
display: 'Last Modified at',
value: 'property-modified',
format: formatHelper.formatDate
}]
}, {
either: [{
display: 'File Type',
value: 'property-sharepoint.listitem.DocIcon'
}, {
display: 'File Type',
value: 'property-slack.file.FileType',
contentType: true
}, {
display: 'File Type',
value: 'property-FileExtension'
}, {
display: 'File Type',
value: 'property-extension'
}]
}, {
display: 'Hosting Mode',
value: 'property-slack.file.Mode'
}, {
display: 'Number Of Stars',
value: 'property-slack.file.NumStars'
}, {
display: 'Is Editable',
value: 'property-slack.file.Editable',
format: formatHelper.YesOrNo
}, {
display: 'Number Lines',
value: 'property-slack.file.Lines'
}, {
display: 'Icon Link',
value: 'property-IconLink'
}, {
display: 'Alternate Link',
value: 'property-AlternateLink'
}, {
display: 'Download Url',
value: 'property-DownloadUrl'
}
]
};