@reltio/activity-log 1.4.1584 → 1.4.1586-mui5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.ts +1 -0
- package/package.json +38 -21
- package/public/bundle.js +128 -0
- package/public/bundle.js.LICENSE.txt +49 -0
- package/public/package.json +22 -0
- package/scripts/build/index.js +20 -0
- package/src/components/ProfileActivityLog/ProfileActivityLog.tsx +118 -0
- package/src/components/ProfileActivityLog/__tests__/ProfileActivityLog.test.tsx +98 -0
- package/src/components/ProfileActivityLog/__tests__/data/activities.data.ts +38 -0
- package/src/components/ProfileActivityLog/__tests__/data/store.data.ts +36 -0
- package/src/components/ProfileActivityLog/helpers.ts +8 -0
- package/src/components/ProfileActivityLog/styles.ts +37 -0
- package/src/components/ProfileActivityLogError/ProfileActivityLogError.tsx +34 -0
- package/src/components/ProfileActivityLogError/__tests__/ProfileActivityLogError.test.js +34 -0
- package/src/components/ProfileActivityLogError/icons/error.svg +113 -0
- package/src/components/ProfileActivityLogError/styles.ts +30 -0
- package/src/components/ProfileActivityLogLoader/ProfileActivityLogLoader.tsx +10 -0
- package/src/components/ProfileActivityLogLoader/__tests__/ProfileActivityLogLoader.test.tsx +12 -0
- package/src/components/ProfileActivityLogLoader/styles.ts +11 -0
- package/src/hooks/__tests__/useProfileActivitiesRequest.test.tsx +138 -0
- package/src/hooks/useProfileActivitiesRequest.ts +53 -0
- package/src/index.ts +1 -0
- package/src/views/index.tsx +44 -0
- package/stories/ProfileActivityLog.stories.js +15 -0
- package/stories/utils/mdmStore.js +72 -0
- package/stories/utils/responses.js +153 -0
- package/tsconfig.json +4 -0
- package/webpack.config.js +10 -0
- package/bundle.js +0 -2
- package/bundle.js.LICENSE.txt +0 -20
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import {makeStyles} from '@mui/styles';
|
|
2
|
+
|
|
3
|
+
type ErrorContainerProps = {
|
|
4
|
+
height?: number;
|
|
5
|
+
};
|
|
6
|
+
|
|
7
|
+
export const useStyles = makeStyles((theme) => ({
|
|
8
|
+
errorContainer: ({height}: ErrorContainerProps) => ({
|
|
9
|
+
height: height ? `${height}px` : 'auto',
|
|
10
|
+
display: 'flex',
|
|
11
|
+
flexDirection: 'column',
|
|
12
|
+
justifyContent: 'center',
|
|
13
|
+
alignItems: 'center',
|
|
14
|
+
color: 'rgba(0, 0, 0, 0.54)'
|
|
15
|
+
}),
|
|
16
|
+
errorIcon: {
|
|
17
|
+
height: '88px',
|
|
18
|
+
width: '88px',
|
|
19
|
+
marginBottom: '20px',
|
|
20
|
+
paddingTop: '36px'
|
|
21
|
+
},
|
|
22
|
+
refreshButton: {
|
|
23
|
+
color: theme.palette.primary.main,
|
|
24
|
+
marginTop: '10px'
|
|
25
|
+
},
|
|
26
|
+
refreshIcon: {
|
|
27
|
+
width: '24px',
|
|
28
|
+
height: '24px'
|
|
29
|
+
}
|
|
30
|
+
}));
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import LinearProgress from '@mui/material/LinearProgress';
|
|
3
|
+
import {useStyles} from './styles';
|
|
4
|
+
|
|
5
|
+
const ProfileActivityLogLoader = () => {
|
|
6
|
+
const styles = useStyles();
|
|
7
|
+
return <LinearProgress color="primary" className={styles.loader} />;
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
export default ProfileActivityLogLoader;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import {shallow} from 'enzyme';
|
|
3
|
+
|
|
4
|
+
import LinearProgress from '@mui/material/LinearProgress';
|
|
5
|
+
import ProfileActivityLogLoader from '../ProfileActivityLogLoader';
|
|
6
|
+
|
|
7
|
+
describe('DashboardLinearLoader', () => {
|
|
8
|
+
it('should render ProfileActivityLogLoader', () => {
|
|
9
|
+
const wrapper = shallow(<ProfileActivityLogLoader />);
|
|
10
|
+
expect(wrapper.find(LinearProgress)).toHaveLength(1);
|
|
11
|
+
});
|
|
12
|
+
});
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import {act} from 'react-dom/test-utils';
|
|
3
|
+
import {mount} from 'enzyme';
|
|
4
|
+
import moment from 'moment';
|
|
5
|
+
import * as mdmSdk from '@reltio/mdm-sdk';
|
|
6
|
+
import {useProfileActivitiesRequest} from '../useProfileActivitiesRequest';
|
|
7
|
+
|
|
8
|
+
jest.mock('@reltio/mdm-sdk', () => ({
|
|
9
|
+
...jest.requireActual<Record<string, unknown>>('@reltio/mdm-sdk'),
|
|
10
|
+
getProfileActivities: jest.fn(),
|
|
11
|
+
getProfileActivitiesTotal: jest.fn()
|
|
12
|
+
}));
|
|
13
|
+
|
|
14
|
+
describe('useProfileActivitiesRequest behavior', () => {
|
|
15
|
+
const getProfileActivitiesSpy = jest.spyOn(mdmSdk, 'getProfileActivities');
|
|
16
|
+
const getProfileActivitiesTotalSpy = jest.spyOn(mdmSdk, 'getProfileActivitiesTotal');
|
|
17
|
+
|
|
18
|
+
// eslint-disable-next-line react/prop-types
|
|
19
|
+
const TestComponent = ({filter, entityUri}) => {
|
|
20
|
+
const {state, data, total, reload} = useProfileActivitiesRequest({filter, offset: 0, max: 10, entityUri});
|
|
21
|
+
return state ? <div data-test={{state, data, reload, total}} /> : null;
|
|
22
|
+
};
|
|
23
|
+
const getHooksValues = (component) => component.find('TestComponent').childAt(0).prop('data-test');
|
|
24
|
+
|
|
25
|
+
const activities = [
|
|
26
|
+
{
|
|
27
|
+
uri: 'activities/6a7f-1247-7db88358',
|
|
28
|
+
user: 'testUSER',
|
|
29
|
+
label: 'PROFILE_UPDATED',
|
|
30
|
+
timestamp: 1622451175422,
|
|
31
|
+
items: [],
|
|
32
|
+
itemsTotal: 1
|
|
33
|
+
}
|
|
34
|
+
];
|
|
35
|
+
|
|
36
|
+
let resolveActivities, resolveTotal;
|
|
37
|
+
|
|
38
|
+
beforeAll(() => {
|
|
39
|
+
getProfileActivitiesSpy.mockImplementation(
|
|
40
|
+
() =>
|
|
41
|
+
new Promise((resolve) => {
|
|
42
|
+
resolveActivities = () => resolve(activities);
|
|
43
|
+
})
|
|
44
|
+
);
|
|
45
|
+
getProfileActivitiesTotalSpy.mockImplementation(
|
|
46
|
+
() =>
|
|
47
|
+
new Promise((resolve, reject) => {
|
|
48
|
+
resolveTotal = (shouldFail) => (shouldFail ? reject({error: 'error'}) : resolve({total: 10}));
|
|
49
|
+
})
|
|
50
|
+
);
|
|
51
|
+
});
|
|
52
|
+
|
|
53
|
+
afterEach(() => {
|
|
54
|
+
jest.clearAllMocks();
|
|
55
|
+
});
|
|
56
|
+
|
|
57
|
+
it('should send request and go through the normal state flow', async () => {
|
|
58
|
+
const filter = {
|
|
59
|
+
users: [],
|
|
60
|
+
activities: [],
|
|
61
|
+
dateRange: {
|
|
62
|
+
type: 'between',
|
|
63
|
+
period: [new Date(1234), new Date(5678)]
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
const component = mount(<TestComponent entityUri="123" filter={filter} />);
|
|
67
|
+
expect(getHooksValues(component).state).toBe('loading');
|
|
68
|
+
expect(getHooksValues(component).data).toEqual([]);
|
|
69
|
+
expect(getHooksValues(component).total).toEqual(0);
|
|
70
|
+
|
|
71
|
+
await act(async () => {
|
|
72
|
+
resolveActivities();
|
|
73
|
+
});
|
|
74
|
+
component.update();
|
|
75
|
+
expect(getHooksValues(component).state).toBe('loading');
|
|
76
|
+
expect(getHooksValues(component).data).toEqual([]);
|
|
77
|
+
expect(getHooksValues(component).total).toEqual(0);
|
|
78
|
+
|
|
79
|
+
await act(async () => {
|
|
80
|
+
resolveTotal();
|
|
81
|
+
});
|
|
82
|
+
component.update();
|
|
83
|
+
expect(getHooksValues(component).data).toEqual(activities);
|
|
84
|
+
expect(getHooksValues(component).total).toEqual(10);
|
|
85
|
+
|
|
86
|
+
const endDate = moment(filter.dateRange.period[1]).endOf('date').valueOf();
|
|
87
|
+
|
|
88
|
+
expect(getProfileActivitiesSpy).toBeCalledWith({
|
|
89
|
+
filter: `(range(timestamp, 1234, ${endDate})) and (not equals(user, 'collaboration-service'))`,
|
|
90
|
+
entityUri: '123',
|
|
91
|
+
offset: 0,
|
|
92
|
+
max: 10
|
|
93
|
+
});
|
|
94
|
+
expect(getProfileActivitiesTotalSpy).toBeCalledWith({
|
|
95
|
+
entityUri: '123',
|
|
96
|
+
filter: `(range(timestamp, 1234, ${endDate})) and (not equals(user, 'collaboration-service'))`
|
|
97
|
+
});
|
|
98
|
+
});
|
|
99
|
+
|
|
100
|
+
it('should go to error message in case of error', async () => {
|
|
101
|
+
const filter = {
|
|
102
|
+
users: [],
|
|
103
|
+
activities: [],
|
|
104
|
+
dateRange: {
|
|
105
|
+
type: 'between',
|
|
106
|
+
period: [new Date(1234), new Date(5678)]
|
|
107
|
+
}
|
|
108
|
+
};
|
|
109
|
+
const component = mount(<TestComponent entityUri="123" filter={filter} />);
|
|
110
|
+
|
|
111
|
+
await act(async () => {
|
|
112
|
+
resolveActivities();
|
|
113
|
+
});
|
|
114
|
+
|
|
115
|
+
await act(async () => {
|
|
116
|
+
resolveTotal(true);
|
|
117
|
+
});
|
|
118
|
+
component.update();
|
|
119
|
+
expect(getHooksValues(component).state).toBe('error');
|
|
120
|
+
expect(getHooksValues(component).data).toEqual([]);
|
|
121
|
+
expect(getHooksValues(component).total).toEqual(0);
|
|
122
|
+
});
|
|
123
|
+
|
|
124
|
+
it('should not send request if entity is not defined', () => {
|
|
125
|
+
const filter = {
|
|
126
|
+
users: [],
|
|
127
|
+
activities: [],
|
|
128
|
+
dateRange: {
|
|
129
|
+
type: 'between',
|
|
130
|
+
period: [new Date(1234), new Date(5678)]
|
|
131
|
+
}
|
|
132
|
+
};
|
|
133
|
+
const component = mount(<TestComponent entityUri={undefined} filter={filter} />);
|
|
134
|
+
expect(getHooksValues(component).state).not.toBe('loading');
|
|
135
|
+
expect(getHooksValues(component).data).toEqual([]);
|
|
136
|
+
expect(getHooksValues(component).total).toEqual(0);
|
|
137
|
+
});
|
|
138
|
+
});
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import {useCallback, useEffect, useState} from 'react';
|
|
2
|
+
import {andThen, otherwise, pipe} from 'ramda';
|
|
3
|
+
import {ActivitiesFilter, useProfileActivitiesLoader, useSafePromise, RequestStates} from '@reltio/components';
|
|
4
|
+
|
|
5
|
+
type Props = {
|
|
6
|
+
filter: ActivitiesFilter;
|
|
7
|
+
max: number;
|
|
8
|
+
offset: number;
|
|
9
|
+
entityUri: string;
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
export const useProfileActivitiesRequest = ({filter, max, offset, entityUri}: Props) => {
|
|
13
|
+
const [data, setData] = useState<unknown[]>([]);
|
|
14
|
+
const [total, setTotal] = useState(0);
|
|
15
|
+
const [requestState, setRequestState] = useState<RequestStates>(RequestStates.INIT);
|
|
16
|
+
const safePromise = useSafePromise();
|
|
17
|
+
|
|
18
|
+
const onError = (error) => {
|
|
19
|
+
console.error(error); // eslint-disable-line
|
|
20
|
+
setRequestState(RequestStates.ERROR);
|
|
21
|
+
setData([]);
|
|
22
|
+
setTotal(0);
|
|
23
|
+
};
|
|
24
|
+
const getActivities = useProfileActivitiesLoader({filter, max, offset, entityUri});
|
|
25
|
+
|
|
26
|
+
const loadData = useCallback(() => {
|
|
27
|
+
if (!entityUri) return;
|
|
28
|
+
|
|
29
|
+
setRequestState(RequestStates.LOADING);
|
|
30
|
+
const onRequestFinished = ({data, total}: {data: unknown[]; total: number}) => {
|
|
31
|
+
setRequestState(RequestStates.LOADED);
|
|
32
|
+
setData(data);
|
|
33
|
+
setTotal(total);
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
const getData = pipe(getActivities, safePromise, andThen(onRequestFinished), otherwise(onError));
|
|
37
|
+
getData();
|
|
38
|
+
}, [getActivities]); // eslint-disable-line
|
|
39
|
+
|
|
40
|
+
const refreshAction = () => {
|
|
41
|
+
try {
|
|
42
|
+
loadData();
|
|
43
|
+
} catch (e) {
|
|
44
|
+
onError(e);
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
useEffect(() => {
|
|
49
|
+
refreshAction();
|
|
50
|
+
}, [loadData]);
|
|
51
|
+
|
|
52
|
+
return {state: requestState, data, total, reload: refreshAction};
|
|
53
|
+
};
|
package/src/index.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {ProfileActivityLogView} from './views';
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import createGenerateClassName from '@mui/styles/createGenerateClassName';
|
|
3
|
+
import StylesProvider from '@mui/styles/StylesProvider';
|
|
4
|
+
import {LocalizationProvider} from '@mui/x-date-pickers/LocalizationProvider';
|
|
5
|
+
import {AdapterMoment} from '@mui/x-date-pickers/AdapterMoment';
|
|
6
|
+
import {ErrorPopup, ViewIdContext} from '@reltio/components';
|
|
7
|
+
import {Provider} from 'react-redux';
|
|
8
|
+
import ReactResizeDetector from 'react-resize-detector';
|
|
9
|
+
import {Store} from 'redux';
|
|
10
|
+
import ProfileActivityLog from '../components/ProfileActivityLog/ProfileActivityLog';
|
|
11
|
+
import {ActivityLogPerspectiveConfig} from '@reltio/mdm-sdk';
|
|
12
|
+
|
|
13
|
+
const generateClassName = createGenerateClassName({
|
|
14
|
+
productionPrefix: 'profileActivityLog',
|
|
15
|
+
disableGlobal: true,
|
|
16
|
+
seed: 'pAL'
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
type Props = {
|
|
20
|
+
config: ActivityLogPerspectiveConfig;
|
|
21
|
+
store: Store<unknown>;
|
|
22
|
+
onResize?: (width: number, height: number) => void;
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
const ProfileActivityLogView = ({config, store, onResize}: Props) => {
|
|
26
|
+
return (
|
|
27
|
+
<Provider store={store}>
|
|
28
|
+
<ViewIdContext.Provider value={config.id}>
|
|
29
|
+
<StylesProvider generateClassName={generateClassName}>
|
|
30
|
+
<LocalizationProvider dateAdapter={AdapterMoment}>
|
|
31
|
+
<ReactResizeDetector
|
|
32
|
+
handleHeight
|
|
33
|
+
onResize={(width, height) => onResize?.(Math.floor(width), Math.floor(height))}
|
|
34
|
+
/>
|
|
35
|
+
<ProfileActivityLog config={config} />
|
|
36
|
+
<ErrorPopup />
|
|
37
|
+
</LocalizationProvider>
|
|
38
|
+
</StylesProvider>
|
|
39
|
+
</ViewIdContext.Provider>
|
|
40
|
+
</Provider>
|
|
41
|
+
);
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
export {ProfileActivityLogView};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import {ThemeProvider, StyledEngineProvider, createTheme} from '@mui/material/styles';
|
|
2
|
+
import {setRequestProvider, theme} from '@reltio/mdm-sdk';
|
|
3
|
+
import {Provider} from 'react-redux';
|
|
4
|
+
import React from 'react';
|
|
5
|
+
import {storiesOf} from '@storybook/react';
|
|
6
|
+
|
|
7
|
+
const muiTheme = createTheme(theme);
|
|
8
|
+
|
|
9
|
+
const request = () => Promise.resolve({});
|
|
10
|
+
|
|
11
|
+
setRequestProvider(request);
|
|
12
|
+
|
|
13
|
+
// storiesOf('ProfileActivityLogView', module)
|
|
14
|
+
|
|
15
|
+
// });
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import mdm from '@reltio/mdm-module';
|
|
2
|
+
import {createStore} from 'redux-dynamic-modules';
|
|
3
|
+
|
|
4
|
+
const tenant = 'mZ87U4Ofxrv6WnS';
|
|
5
|
+
const initialState = {
|
|
6
|
+
metadata: {
|
|
7
|
+
[tenant]: {
|
|
8
|
+
entityTypes: [
|
|
9
|
+
{
|
|
10
|
+
uri: 'configuration/entityTypes/HCP',
|
|
11
|
+
label: 'HCP',
|
|
12
|
+
attributes: [
|
|
13
|
+
{
|
|
14
|
+
label: 'String',
|
|
15
|
+
name: 'CountryCode',
|
|
16
|
+
description: '',
|
|
17
|
+
type: 'String',
|
|
18
|
+
hidden: false,
|
|
19
|
+
faceted: true,
|
|
20
|
+
attributeOrdering: {orderType: 'ASC', orderingStrategy: 'LUD'},
|
|
21
|
+
uri: 'configuration/entityTypes/HCP/attributes/CountryCode',
|
|
22
|
+
dependentLookupCode: 'COUNTRY_CD',
|
|
23
|
+
lookupCode: 'COUNTRY_CD',
|
|
24
|
+
access: ['DELETE', 'READ', 'CREATE', 'UPDATE']
|
|
25
|
+
}
|
|
26
|
+
],
|
|
27
|
+
abstract: false,
|
|
28
|
+
businessCardAttributeURIs: []
|
|
29
|
+
}
|
|
30
|
+
]
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
tenant: {id: tenant},
|
|
34
|
+
profile: {
|
|
35
|
+
lookups: {},
|
|
36
|
+
modifiedEntities: {}
|
|
37
|
+
},
|
|
38
|
+
ui: {
|
|
39
|
+
numberFormat: {
|
|
40
|
+
thousandSeparator: ',',
|
|
41
|
+
decimalSeparator: '.',
|
|
42
|
+
prefix: '',
|
|
43
|
+
suffix: '',
|
|
44
|
+
decimalScale: null
|
|
45
|
+
},
|
|
46
|
+
attributePresentations: {},
|
|
47
|
+
paths: {
|
|
48
|
+
apiPath: 'https://tst-01.reltio.com/reltio',
|
|
49
|
+
imagePath: 'https://s3.amazonaws.com/reltio.images/api',
|
|
50
|
+
dtssPath: 'https://tst-01.reltio.com/dtss/',
|
|
51
|
+
workflowPath: 'https://tst-01-workflow.reltio.com/workflow-adapter',
|
|
52
|
+
workflowEnvironmentURL: 'https://tst-01.reltio.com',
|
|
53
|
+
uiPath: 'http://localhost:3000/ui/ms2/'
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
search: {
|
|
57
|
+
searchResults: [],
|
|
58
|
+
keyword: null,
|
|
59
|
+
searchOptions: {
|
|
60
|
+
searchByOv: false,
|
|
61
|
+
ovOnly: false
|
|
62
|
+
},
|
|
63
|
+
activityFilter: 'active',
|
|
64
|
+
globalFilter: {
|
|
65
|
+
query: "(containsWordStartingWith(attributes,'ttt')",
|
|
66
|
+
savedSearchesUris: ['savedSearches/7DlPB4Dt'],
|
|
67
|
+
isMuted: false
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
};
|
|
71
|
+
|
|
72
|
+
export default createStore({initialState}, mdm.getModule());
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
export const testData = [
|
|
2
|
+
{
|
|
3
|
+
uri: 'activities/156a1eda-4c2c-46e3-8550-118c500fb453',
|
|
4
|
+
user: 'marat.ahmetzyanov',
|
|
5
|
+
timestamp: 1620711408828,
|
|
6
|
+
items: [
|
|
7
|
+
{
|
|
8
|
+
id: '5C94p4Yp',
|
|
9
|
+
user: 'marat.ahmetzyanov',
|
|
10
|
+
method: 'POST',
|
|
11
|
+
url: '/reltio/api/uitest2/entities',
|
|
12
|
+
clientType: 'Reltio UI',
|
|
13
|
+
timestamp: 1620711408828,
|
|
14
|
+
objectUri: 'entities/1PN94HrW',
|
|
15
|
+
objectType: 'configuration/entityTypes/Product',
|
|
16
|
+
objectLabel: 'ONE',
|
|
17
|
+
data: {
|
|
18
|
+
mergeReason: 'Merge on the fly',
|
|
19
|
+
mergeType: 'ON_THE_FLY',
|
|
20
|
+
type: 'ENTITIES_MERGED_ON_THE_FLY',
|
|
21
|
+
crosswalks: 'configuration/sources/BRM;null;brm202105111036'
|
|
22
|
+
},
|
|
23
|
+
eventId: '1620711408828_0Cc3sWZ'
|
|
24
|
+
}
|
|
25
|
+
],
|
|
26
|
+
itemsTotal: 1
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
uri: 'activities/9449a5d7-1c72-4256-b26a-8b0e95c14899',
|
|
30
|
+
user: 'marat.ahmetzyanov',
|
|
31
|
+
label: '',
|
|
32
|
+
description: '',
|
|
33
|
+
timestamp: 1623154966758,
|
|
34
|
+
items: [
|
|
35
|
+
{
|
|
36
|
+
id: '30tEIJXx',
|
|
37
|
+
user: 'marat.ahmetzyanov',
|
|
38
|
+
method: 'POST',
|
|
39
|
+
url: '/reltio/api/uitest3/entities/1futW9kc/_unmerge',
|
|
40
|
+
clientType: 'Reltio UI',
|
|
41
|
+
timestamp: 1623154966758,
|
|
42
|
+
objectUri: 'entities/1futW9kc',
|
|
43
|
+
objectType: 'configuration/entityTypes/HCP',
|
|
44
|
+
objectLabel: 'HCP DT 1,',
|
|
45
|
+
data: {
|
|
46
|
+
'entities/2eIQy30G': 'HCP DT 2,',
|
|
47
|
+
newUri: 'entities/2eIQy30G',
|
|
48
|
+
type: 'ENTITIES_SPLITTED'
|
|
49
|
+
},
|
|
50
|
+
eventId: '1623154966758_02lA3ja'
|
|
51
|
+
}
|
|
52
|
+
],
|
|
53
|
+
itemsTotal: 1
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
uri: 'activities/8dcbdbce-80ac-4a2c-95f3-e75383fbd10e',
|
|
57
|
+
user: 'denis.tkachev',
|
|
58
|
+
label: '',
|
|
59
|
+
description: '',
|
|
60
|
+
timestamp: 1623153008977,
|
|
61
|
+
items: [
|
|
62
|
+
{
|
|
63
|
+
id: '3Ldt0Yi3',
|
|
64
|
+
user: 'denis.tkachev',
|
|
65
|
+
method: 'POST',
|
|
66
|
+
url: '/reltio/api/uitest3/entities/_same',
|
|
67
|
+
clientType: 'Reltio UI',
|
|
68
|
+
timestamp: 1623153008977,
|
|
69
|
+
objectUri: 'entities/17U7U95d',
|
|
70
|
+
objectType: 'configuration/entityTypes/HCP',
|
|
71
|
+
objectLabel: 'Potential match test,',
|
|
72
|
+
data: {
|
|
73
|
+
type: 'ENTITY_LOST_MERGE'
|
|
74
|
+
},
|
|
75
|
+
eventId: '1623153008977_037KnuB'
|
|
76
|
+
}
|
|
77
|
+
],
|
|
78
|
+
itemsTotal: 1
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
uri: 'activities/8dcbdbce-80ac-4a2c-95f3-e75383fbd10e',
|
|
82
|
+
user: 'denis.tkachev',
|
|
83
|
+
label: '',
|
|
84
|
+
description: '',
|
|
85
|
+
timestamp: 1623153008977,
|
|
86
|
+
items: [
|
|
87
|
+
{
|
|
88
|
+
id: '3Ldt0URn',
|
|
89
|
+
user: 'denis.tkachev',
|
|
90
|
+
method: 'POST',
|
|
91
|
+
url: '/reltio/api/uitest3/entities/_same',
|
|
92
|
+
clientType: 'Reltio UI',
|
|
93
|
+
timestamp: 1623153008977,
|
|
94
|
+
objectUri: 'entities/1BTrULsq',
|
|
95
|
+
objectType: 'configuration/entityTypes/HCP',
|
|
96
|
+
objectLabel: 'Long,',
|
|
97
|
+
data: {
|
|
98
|
+
mergeReason: 'Merge by hand',
|
|
99
|
+
mergeType: 'MANUAL',
|
|
100
|
+
potentialMatches: 'entities/17U7U95d',
|
|
101
|
+
'entities/17U7U95d': 'Potential match test,',
|
|
102
|
+
type: 'ENTITIES_MERGED_MANUALLY'
|
|
103
|
+
},
|
|
104
|
+
eventId: '1623153008977_03D3dbM'
|
|
105
|
+
}
|
|
106
|
+
],
|
|
107
|
+
itemsTotal: 1
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
uri: 'activities/264b7287-0160-495e-9d86-6c493a4290fb',
|
|
111
|
+
user: 'alan.khugaev',
|
|
112
|
+
timestamp: 1621498794398,
|
|
113
|
+
items: [
|
|
114
|
+
{
|
|
115
|
+
id: '8PLLhE33',
|
|
116
|
+
user: 'alan.khugaev',
|
|
117
|
+
method: 'POST',
|
|
118
|
+
url: '/reltio/api/alenat/entities/zuRDg1V/_notMatch',
|
|
119
|
+
clientType: 'Reltio UI',
|
|
120
|
+
timestamp: 1621498794398,
|
|
121
|
+
objectUri: 'entities/zuRDg1V',
|
|
122
|
+
objectType: 'configuration/entityTypes/HCP',
|
|
123
|
+
objectLabel: '- 123 - GbTpYiwgOfpsxRV Guneumo',
|
|
124
|
+
data: {
|
|
125
|
+
mergeType: 'MANUAL',
|
|
126
|
+
potentialMatches: 'entities/1HM8WlMC',
|
|
127
|
+
type: 'NOT_MATCHES_SET',
|
|
128
|
+
'entities/1HM8WlMC': '- NEW HCA for tags testing'
|
|
129
|
+
},
|
|
130
|
+
eventId: '1621498794398_029mzEp'
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
id: '8PLLhIJJ',
|
|
134
|
+
user: 'alan.khugaev',
|
|
135
|
+
method: 'POST',
|
|
136
|
+
url: '/reltio/api/alenat/entities/zuRDg1V/_notMatch',
|
|
137
|
+
clientType: 'Reltio UI',
|
|
138
|
+
timestamp: 1621498794398,
|
|
139
|
+
objectUri: 'entities/1HM8WlMC',
|
|
140
|
+
objectType: 'configuration/entityTypes/HCP',
|
|
141
|
+
objectLabel: '- NEW HCA for tags testing',
|
|
142
|
+
data: {
|
|
143
|
+
mergeType: 'MANUAL',
|
|
144
|
+
potentialMatches: 'entities/zuRDg1V',
|
|
145
|
+
type: 'NOT_MATCHES_SET',
|
|
146
|
+
'entities/zuRDg1V': '- 123 - GbTpYiwgOfpsxRV Guneumo'
|
|
147
|
+
},
|
|
148
|
+
eventId: '1621498794398_02DGzS4'
|
|
149
|
+
}
|
|
150
|
+
],
|
|
151
|
+
itemsTotal: 2
|
|
152
|
+
}
|
|
153
|
+
];
|
package/tsconfig.json
ADDED