import type { DataGridProps } from '../types'; import type { DataGridMockProps } from './index'; const mockData: DataGridProps['tableData'] = { page: 1, totalPages: 685, totalRecords: 17115, data: [ { action: 'Block', destinationIp: '54.93.254.236', eventTime: '2021-12-21T07:46:36.413Z', privateIp: '10.100.102.7', urlCategory: 'Category', userEmail: 'andrej.serotin@mock.com', userName: 'Andrej Serotin', originalFullURL: 'ps13.pndsn.com/v2/subscribe/sub-c-0e078d3e-1d09-11e8-a183-761142583d66/ed1b9df06b82cba23437bf0bdcede16b/0/?heartbeat=300&tt=16400727659104220&tr=12&uuid=612f293bf0bf52006944528b:JIRA&pnsdk=PubNub-JS-Web/4.29.5&l_time=277&auth=08192059-7361-4045-8348-48ea5b14c5d9', webRuleName: 'SWGEvents', objectId: '61c1dd5dc1c66956f56a6130', _id: '61c1dd5dc1c66956f56a6130' }, { action: 'Block', destinationIp: '54.93.254.236', eventTime: '2021-12-21T07:46:36.411Z', privateIp: '10.100.102.7', urlCategory: 'Cat1, Cat2', userEmail: 'brandon.prust@mock.com', userName: 'Brandon Prust', originalFullURL: 'ps6.pndsn.com/v2/subscribe/sub-c-0e078d3e-1d09-11e8-a183-761142583d66/ed1b9df06b82cba23437bf0bdcede16b/0/?heartbeat=300&tt=16400727659104220&tr=12&uuid=612f293bf0bf52006944528b:JIRA&pnsdk=PubNub-JS-Web/4.29.5&l_time=281&auth=08192059-7361-4045-8348-48ea5b14c5d9', webRuleName: 'SWGEvents', objectId: '61c1dd5dc1c66956f56a612e', _id: '61c1dd5dc1c66956f56a612e' }, { action: 'Warn', destinationIp: '54.93.254.236', eventTime: '2021-12-21T07:46:36.409Z', privateIp: '10.100.102.7', urlCategory: 'Misc', userName: 'Ziv SWGandLOGS', userEmail: 'ziv@test.com', originalFullURL: 'ps9.pndsn.com/v2/subscribe/sub-c-0e078d3e-1d09-11e8-a183-761142583d66/ed1b9df06b82cba23437bf0bdcede16b/0/?heartbeat=300&tt=16400727659104220&tr=12&uuid=612f293bf0bf52006944528b:JIRA&pnsdk=PubNub-JS-Web/4.29.5&l_time=279&auth=08192059-7361-4045-8348-48ea5b14c5d9', webRuleName: 'SWGEvents', webRuleLink: 'https://www.example.com', objectId: '61c1dd5dc1c66956f56a612f', _id: '61c1dd5dc1c66956f56a612f' }, { action: 'Block', destinationIp: '54.93.254.236', eventTime: '2021-12-21T07:46:35.951Z', privateIp: '10.100.102.7', urlCategory: 'Other', userEmail: 'andrej.serotin@mock.com', userName: 'Andrej Serotin', originalFullURL: 'ps13.pndsn.com/v2/subscribe/sub-c-0e078d3e-1d09-11e8-a183-761142583d66/ed1b9df06b82cba23437bf0bdcede16b/0/?heartbeat=300&tt=16400727659104220&tr=12&uuid=612f293bf0bf52006944528b:JIRA&pnsdk=PubNub-JS-Web/4.29.5&l_time=277&auth=08192059-7361-4045-8348-48ea5b14c5d9', webRuleName: 'SWGEvents', objectId: '61c1dd5dc1c66956f56a612c', _id: '61c1dd5dc1c66956f56a612c' }, { action: 'Block', destinationIp: '54.93.254.236', eventTime: '2021-12-21T07:46:35.949Z', privateIp: '10.100.102.7', urlCategory: 'Social Media', userEmail: 'brandon.prust@mock.com', userName: 'Brandon Prust', originalFullURL: 'ps6.pndsn.com/v2/subscribe/sub-c-0e078d3e-1d09-11e8-a183-761142583d66/ed1b9df06b82cba23437bf0bdcede16b/0/?heartbeat=300&tt=16400727659104220&tr=12&uuid=612f293bf0bf52006944528b:JIRA&pnsdk=PubNub-JS-Web/4.29.5&l_time=281&auth=08192059-7361-4045-8348-48ea5b14c5d9', webRuleName: 'SWGEvents', objectId: '61c1dd5dc1c66956f56a612b', _id: '61c1dd5dc1c66956f56a612b' }, { action: 'Warn', destinationIp: '54.93.254.236', eventTime: '2021-12-21T07:46:35.947Z', privateIp: '10.100.102.7', urlCategory: 'PubNub', userName: 'Ziv SWGandLOGS', userEmail: 'ziv@test.com', originalFullURL: 'ps9.pndsn.com/v2/subscribe/sub-c-0e078d3e-1d09-11e8-a183-761142583d66/ed1b9df06b82cba23437bf0bdcede16b/0/?heartbeat=300&tt=16400727659104220&tr=12&uuid=612f293bf0bf52006944528b:JIRA&pnsdk=PubNub-JS-Web/4.29.5&l_time=279&auth=08192059-7361-4045-8348-48ea5b14c5d9', webRuleName: 'SWGEvents', objectId: '61c1dd5dc1c66956f56a612d', _id: '61c1dd5dc1c66956f56a612d' }, { action: 'Block', destinationIp: '54.93.254.236', eventTime: '2021-12-21T07:46:06.578Z', privateIp: '10.100.102.7', urlCategory: 'Cat2, Cat3, Cat4', userEmail: 'brandon.prust@mock.com', userName: 'Brandon Prust', originalFullURL: 'ps6.pndsn.com/v2/subscribe/sub-c-0e078d3e-1d09-11e8-a183-761142583d66/ed1b9df06b82cba23437bf0bdcede16b/0/?heartbeat=300&tt=16400727659104220&tr=12&uuid=612f293bf0bf52006944528b:JIRA&pnsdk=PubNub-JS-Web/4.29.5&l_time=282&auth=08192059-7361-4045-8348-48ea5b14c5d9', webRuleName: 'SWGEvents', objectId: '61c1dd5dc1c66956f56a612a', _id: '61c1dd5dc1c66956f56a612a' }, { action: 'Block', destinationIp: '54.93.254.236', eventTime: '2021-12-21T07:46:06.273Z', privateIp: '10.100.102.7', urlCategory: 'Web Storage', userEmail: 'andrej.serotin@mock.com', userName: 'Andrej Serotin', originalFullURL: 'ps13.pndsn.com/v2/subscribe/sub-c-0e078d3e-1d09-11e8-a183-761142583d66/ed1b9df06b82cba23437bf0bdcede16b/0/?heartbeat=300&tt=16400727659104220&tr=12&uuid=612f293bf0bf52006944528b:JIRA&pnsdk=PubNub-JS-Web/4.29.5&l_time=268&auth=08192059-7361-4045-8348-48ea5b14c5d9', webRuleName: 'SWGEvents', objectId: '61c1dd5dc1c66956f56a6126', _id: '61c1dd5dc1c66956f56a6126' }, { action: 'Warn', destinationIp: '54.93.254.236', eventTime: '2021-12-21T07:46:06.270Z', privateIp: '10.100.102.7', urlCategory: 'Cloud Service', userName: 'Ziv SWGandLOGS', userEmail: 'ziv@test.com', originalFullURL: 'ps9.pndsn.com/v2/subscribe/sub-c-0e078d3e-1d09-11e8-a183-761142583d66/ed1b9df06b82cba23437bf0bdcede16b/0/?heartbeat=300&tt=16400727659104220&tr=12&uuid=612f293bf0bf52006944528b:JIRA&pnsdk=PubNub-JS-Web/4.29.5&l_time=273&auth=08192059-7361-4045-8348-48ea5b14c5d9', webRuleName: 'SWGEvents', objectId: '61c1dd5dc1c66956f56a6127', _id: '61c1dd5dc1c66956f56a6127' }, { action: 'Block', destinationIp: '54.93.254.236', eventTime: '2021-12-21T07:45:44.399Z', privateIp: '10.100.102.7', urlCategory: 'PubNub', userEmail: 'brandon.prust@mock.com', userName: 'Brandon Prust', originalFullURL: 'ps6.pndsn.com/time/0/?uuid=612f293bf0bf52006944528b:JIRA&pnsdk=PubNub-JS-Web/4.29.5', webRuleName: 'SWGEvents', objectId: '61c1dd5dc1c66956f56a6129', _id: '61c1dd5dc1c66956f56a6129' }, { action: 'Block', destinationIp: '54.93.254.236', eventTime: '2021-12-21T07:45:44.397Z', privateIp: '10.100.102.7', urlCategory: 'PubNub', userEmail: 'andrej.serotin@mock.com', userName: 'Andrej Serotin', originalFullURL: 'ps13.pndsn.com/time/0/?uuid=612f293bf0bf52006944528b:JIRA&pnsdk=PubNub-JS-Web/4.29.5', webRuleName: 'SWGEvents', objectId: '61c1dd5dc1c66956f56a6128', _id: '61c1dd5dc1c66956f56a6128' }, { action: 'Block', destinationIp: '54.93.254.236', eventTime: '2021-12-21T07:45:44.053Z', privateIp: '10.100.102.7', urlCategory: 'PubNub', userEmail: 'brandon.prust@mock.com', userName: 'Brandon Prust', originalFullURL: 'ps6.pndsn.com/time/0/?uuid=612f293bf0bf52006944528b:JIRA&pnsdk=PubNub-JS-Web/4.29.5', webRuleName: 'SWGEvents', objectId: '61c1dd5dc1c66956f56a6124', _id: '61c1dd5dc1c66956f56a6124' }, { action: 'Block', destinationIp: '54.93.254.236', eventTime: '2021-12-21T07:45:44.051Z', privateIp: '10.100.102.7', urlCategory: 'PubNub', userEmail: 'andrej.serotin@mock.com', userName: 'Andrej Serotin', originalFullURL: 'ps13.pndsn.com/time/0/?uuid=612f293bf0bf52006944528b:JIRA&pnsdk=PubNub-JS-Web/4.29.5', webRuleName: 'SWGEvents', objectId: '61c1dd5dc1c66956f56a6125', _id: '61c1dd5dc1c66956f56a6125' }, { action: 'Warn', destinationIp: '54.93.254.236', eventTime: '2021-12-21T07:45:43.841Z', privateIp: '10.100.102.7', urlCategory: 'PubNub', userName: 'Ziv SWGandLOGS', userEmail: 'ziv@test.com', originalFullURL: 'ps9.pndsn.com/time/0/?uuid=612f293bf0bf52006944528b:JIRA&pnsdk=PubNub-JS-Web/4.29.5', webRuleName: 'SWGEvents', objectId: '61c1dd5dc1c66956f56a6121', _id: '61c1dd5dc1c66956f56a6121' }, { action: 'Warn', destinationIp: '54.93.254.236', eventTime: '2021-12-21T07:45:40.925Z', privateIp: '10.100.102.7', urlCategory: 'PubNub', userName: 'Ziv SWGandLOGS', userEmail: 'ziv@test.com', originalFullURL: 'ps9.pndsn.com/v2/subscribe/sub-c-0e078d3e-1d09-11e8-a183-761142583d66/ed1b9df06b82cba23437bf0bdcede16b/0/?heartbeat=300&tt=16400727402686750&tr=12&uuid=612f293bf0bf52006944528b:JIRA&pnsdk=PubNub-JS-Web/4.29.5&auth=08192059-7361-4045-8348-48ea5b14c5d9', webRuleName: 'SWGEvents', objectId: '61c1dd5dc1c66956f56a6120', _id: '61c1dd5dc1c66956f56a6120' }, { action: 'Block', destinationIp: '54.93.254.236', eventTime: '2021-12-21T07:45:40.636Z', privateIp: '10.100.102.7', urlCategory: 'PubNub', userEmail: 'brandon.prust@mock.com', userName: 'Brandon Prust', originalFullURL: 'ps6.pndsn.com/v2/subscribe/sub-c-0e078d3e-1d09-11e8-a183-761142583d66/ed1b9df06b82cba23437bf0bdcede16b/0/?heartbeat=300&tt=16400727402686750&tr=12&uuid=612f293bf0bf52006944528b:JIRA&pnsdk=PubNub-JS-Web/4.29.5&auth=08192059-7361-4045-8348-48ea5b14c5d9', webRuleName: 'SWGEvents', objectId: '61c1dd5dc1c66956f56a6123', _id: '61c1dd5dc1c66956f56a6123' }, { action: 'Block', destinationIp: '54.93.254.236', eventTime: '2021-12-21T07:45:40.633Z', privateIp: '10.100.102.7', urlCategory: 'Cat1, Cat5', userEmail: 'andrej.serotin@mock.com', userName: 'Andrej Serotin', originalFullURL: 'ps13.pndsn.com/v2/subscribe/sub-c-0e078d3e-1d09-11e8-a183-761142583d66/ed1b9df06b82cba23437bf0bdcede16b/0/?heartbeat=300&tt=16400727402686750&tr=12&uuid=612f293bf0bf52006944528b:JIRA&pnsdk=PubNub-JS-Web/4.29.5&auth=08192059-7361-4045-8348-48ea5b14c5d9', webRuleName: 'SWGEvents', objectId: '61c1dd5dc1c66956f56a6122', _id: '61c1dd5dc1c66956f56a6122' }, { action: 'Block', destinationIp: '3.126.86.58', eventTime: '2021-12-20T07:29:34.995Z', privateIp: '10.253.0.2', userEmail: 'anthony.davidoff@test.com', userName: 'Anthony Davidoff', originalFullURL: 'euce1-103.sentinelone.net/api/v1.6/notification/keep-alive-ext/?id=A90FE1FF-8790-4576-B8EE-39812B98747D', webRuleName: 'SWGEvents', objectId: '61c1dd5dc1c66956f56a611e', _id: '61c1dd5dc1c66956f56a611e' }, { action: 'Block', destinationIp: '142.251.39.99', eventTime: '2021-12-20T07:29:34.946Z', privateIp: '10.253.0.2', userEmail: 'emile.smith@mock.com', userName: 'Emile Smith', originalFullURL: 'ssl.gstatic.com/docs/common/cleardot.gif/?zx=xp6jrg41shos', webRuleName: 'SWGEvents', objectId: '61c1dd5dc1c66956f56a611d', _id: '61c1dd5dc1c66956f56a611d' }, { action: 'Block', destinationIp: '142.251.39.99', eventTime: '2021-12-20T07:29:32.969Z', privateIp: '10.253.0.2', userEmail: 'emile.smith@mock.com', userName: 'Emile Smith', originalFullURL: 'ssl.gstatic.com/docs/common/cleardot.gif/?zx=wa6jzc2mmrh9', webRuleName: 'SWGEvents', objectId: '61c1dd5dc1c66956f56a611f', _id: '61c1dd5dc1c66956f56a611f' }, { action: 'Block', destinationIp: '34.237.73.95', eventTime: '2021-12-20T07:29:29.379Z', privateIp: '10.253.0.2', userEmail: 'rod.hernandez@mock.com', userName: 'Rodriguez Hernandez', originalFullURL: 'nexus-websocket-a.intercom.io/pubsub/5-bMQeRFZxevFlf_jAvS2RDoqa-3HwXaynsSSaizFThe8K-6aS7Vv0DsNVPBmtJf3hy3bqTU46FOv-cdhw-UMh9-W7eO2Zkki23bb1/?X-Nexus-New-Client=true&X-Nexus-Version=0.8.5&user_role=undefined', webRuleName: 'SWGEvents', objectId: '61c1dd5dc1c66956f56a611b', _id: '61c1dd5dc1c66956f56a611b' }, { action: 'Block', destinationIp: '17.137.170.34', eventTime: '2021-12-20T07:29:23.182Z', privateIp: '10.253.0.2', userEmail: 'olivia.wilde@mock.com', userName: 'Olivia Wilde', iconSrc: 'https://upload.wikimedia.org/wikipedia/commons/thumb/3/37/OliviaWildeRestSDCCJuly10.jpg/198px-OliviaWildeRestSDCCJuly10.jpg', originalFullURL: 'radarsubmissions.apple.com/submit', webRuleName: 'SWGEvents', objectId: '61c1dd5dc1c66956f56a6119', _id: '61c1dd5dc1c66956f56a6119' }, { action: 'Block', destinationIp: '142.251.39.99', eventTime: '2021-12-20T07:29:22.784Z', privateIp: '10.253.0.2', userEmail: 'emile.smith@mock.com', userName: 'Emile Smith', originalFullURL: 'ssl.gstatic.com/docs/common/cleardot.gif/?zx=t98qtkas8afa', webRuleName: 'SWGEvents', objectId: '61c1dd5dc1c66956f56a6118', _id: '61c1dd5dc1c66956f56a6118' }, { action: 'Block', destinationIp: '142.251.39.99', eventTime: '2021-12-20T07:29:22.781Z', privateIp: '10.253.0.2', userEmail: 'emile.smith@mock.com', userName: 'Emile Smith', originalFullURL: 'ssl.gstatic.com/docs/common/cleardot.gif/?zx=fet2aqcp0as', webRuleName: 'SWGEvents', objectId: '61c1dd5dc1c66956f56a611a', _id: '61c1dd5dc1c66956f56a611a' }, { action: 'Block', destinationIp: '23.44.244.229', eventTime: '2021-12-20T07:29:19.148Z', privateIp: '10.100.102.7', userEmail: 'olivia.wilde@mock.com', userName: 'Olivia Wilde', iconSrc: 'https://upload.wikimedia.org/wikipedia/commons/thumb/3/37/OliviaWildeRestSDCCJuly10.jpg/198px-OliviaWildeRestSDCCJuly10.jpg', originalFullURL: 'mesu.apple.com/assets/macos/com_apple_MobileAsset_TimeZoneUpdate/com_apple_MobileAsset_TimeZoneUpdate.xml', webRuleName: 'SWGEvents', objectId: '61c1dd5dc1c66956f56a611c', _id: '61c1dd5dc1c66956f56a611c' }, { action: 'Block', destinationIp: '23.44.244.229', eventTime: '2021-12-20T07:29:15.445Z', privateIp: '10.100.102.7', userEmail: 'olivia.wilde@mock.com', userName: 'Olivia Wilde', iconSrc: 'https://upload.wikimedia.org/wikipedia/commons/thumb/3/37/OliviaWildeRestSDCCJuly10.jpg/198px-OliviaWildeRestSDCCJuly10.jpg', originalFullURL: 'mesu.apple.com/assets/macos/com_apple_MobileAsset_DeviceCheck/com_apple_MobileAsset_DeviceCheck.xml', webRuleName: 'SWGEvents', objectId: '61c1dd5dc1c66956f56a6117', _id: '61c1dd5dc1c66956f56a6117' }, { action: 'Block', destinationIp: '92.123.201.129', eventTime: '2021-12-20T07:29:14.680Z', privateIp: '10.100.102.7', userName: 'Ziv SWGandLOGS', userEmail: 'ziv@test.com', originalFullURL: 'configuration.ls.apple.com/config/defaults/?os=macos&os_version=12.0.1&hardware=MacBookPro15,2', webRuleName: 'SWGEvents', objectId: '61c1dd5dc1c66956f56a610b', _id: '61c1dd5dc1c66956f56a610b' }, { action: 'Block', destinationIp: '3.230.200.20', eventTime: '2021-12-20T07:29:14.036Z', privateIp: '10.100.102.7', userEmail: 'olivia.wilde@mock.com', userName: 'Olivia Wilde', iconSrc: 'https://upload.wikimedia.org/wikipedia/commons/thumb/3/37/OliviaWildeRestSDCCJuly10.jpg/198px-OliviaWildeRestSDCCJuly10.jpg', originalFullURL: 'apple.mdm.jumpcloud.com/command', webRuleName: 'SWGEvents', objectId: '61c1dd5dc1c66956f56a6116', _id: '61c1dd5dc1c66956f56a6116' }, { action: 'Block', destinationIp: '18.156.205.85', eventTime: '2021-12-20T07:29:13.612Z', privateIp: '10.100.102.7', userEmail: 'rod.hernandez@mock.com', userName: 'Rodriguez Hernandez', originalFullURL: 'api.smoot.apple.com/bag/?cc=IL&esl=en&key=kakapo4145&locale=en_IL', webRuleName: 'SWGEvents', objectId: '61c1dd5dc1c66956f56a6115', _id: '61c1dd5dc1c66956f56a6115' }, { action: 'Block', destinationIp: '18.156.205.85', eventTime: '2021-12-20T07:29:13.376Z', privateIp: '10.100.102.7', userEmail: 'rod.hernandez@mock.com', userName: 'Rodriguez Hernandez', originalFullURL: 'api.smoot.apple.com/bag/?cc=IL&esl=en&key=kakapo4145&locale=en_IL', webRuleName: 'SWGEvents', objectId: '61c1dd5dc1c66956f56a610c', _id: '61c1dd5dc1c66956f56a610c' }, { action: 'Block', destinationIp: '35.175.80.186', eventTime: '2021-12-20T07:29:12.828Z', privateIp: '10.100.102.7', userEmail: 'anthony.davidoff@test.com', userName: 'Anthony Davidoff', originalFullURL: 'datapipeline.logitech.io/ping', webRuleName: 'SWGEvents', objectId: '61c1dd5dc1c66956f56a6112', _id: '61c1dd5dc1c66956f56a6112' } ] }; const mockTableConfig: DataGridProps['tableConfig'] = [ { isSortable: false, pinnable: false, field: 'eventTime', title: 'Date', show: true, width: 180, fieldsToExport: ['eventTime'] }, { isSortable: true, field: 'userName', title: 'Member', show: true, width: 240, fieldsToExport: ['userName'], withEmailIcon: false, withUserIcon: true, avatarTooltipText: 'Member' }, { isSortable: true, field: 'originalFullURL', title: 'URL', show: true, width: 200, fieldsToExport: ['originalFullURL'] }, { isSortable: true, field: 'action', title: 'Action', show: true, width: 150, fieldsToExport: ['action'], indicatorColors: { warn: '#FFC955', block: '#FD596F' } }, { isSortable: true, field: 'urlCategory', title: 'Web Category', show: true, width: 200, fieldsToExport: ['urlCategory'] }, { isSortable: true, field: 'webRule', title: 'Web Rule Name', show: true, width: 200, fieldsToExport: ['webRuleName'] }, { isSortable: true, field: 'privateIp', title: 'Source IP', show: true, width: 150, fieldsToExport: ['privateIp'], withEmailIcon: false, withUserIcon: true }, { field: 'destinationIp', isSortable: true, title: 'Destination IP', show: true, width: 150, fieldsToExport: ['userName'] } ]; mockData.data.forEach(item => { if (item.webRuleName) { item.webRule = { text: item.webRuleName, link: item.webRuleLink, tooltipText: item.webRuleLink ? 'View Web Filter Rule' : 'Deleted Rule' }; } }); const mockWebActivity: DataGridMockProps = { title1: 'Web Activities', tableConfig: mockTableConfig, tableData: mockData }; export { mockWebActivity };