"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getUserChangesNewEntity = exports.getChangesWithBooleanPrimitiveValue = exports.getUserChangesSubnestedEmpty = exports.getUserChangesRejectSubnestedRelationAttributes = exports.getUserChangesRejectSubnestedAttributes = exports.getUserChanges = exports.getEntitiesOrRelations = exports.getChanges = void 0;
var mdm_sdk_1 = require("@reltio/mdm-sdk");
var getChanges = function () { return ({
    'entities/entityUri1': [
        {
            id: '0IEmjjX',
            type: mdm_sdk_1.DCRTypes.UPDATE_ATTRIBUTE,
            createdTime: 1762297960487,
            createdBy: 'ivan.kositsin',
            objectType: 'configuration/entityTypes/HCP',
            attributePath: 'NestedAttr/2BNyTheu/Int/2BNyTlvA',
            oldValue: {
                value: '1234'
            },
            newValue: {
                value: '4321'
            },
            crosswalk: {
                type: 'configuration/sources/Reltio',
                value: 'entityUri1',
                dataProvider: true
            },
            newPinOrIgnoreValue: false,
            attributeType: 'configuration/entityTypes/HCP/attributes/NestedAttr/attributes/Int'
        },
        {
            id: '0SBmZIW',
            type: mdm_sdk_1.DCRTypes.UPDATE_ATTRIBUTE,
            createdTime: 1761922840650,
            createdBy: 'ivan.kositsin',
            objectType: 'configuration/entityTypes/HCP',
            attributePath: 'FirstName/2QHFlPPP',
            oldValue: {
                value: 'Oldfirstname'
            },
            newValue: {
                value: 'Newfirstname'
            },
            crosswalk: {
                type: 'configuration/sources/Reltio',
                value: 'entityUri1',
                dataProvider: true
            },
            newPinOrIgnoreValue: false,
            attributeType: 'configuration/entityTypes/HCP/attributes/FirstName'
        },
        {
            id: '0SBmdYm',
            type: mdm_sdk_1.DCRTypes.DELETE_ATTRIBUTE,
            createdTime: 1761922840650,
            createdBy: 'ivan.kositsin',
            objectType: 'configuration/entityTypes/HCP',
            attributePath: 'Boolean/2DEYFcfk',
            oldValue: {
                value: 'false'
            },
            newValue: {
                value: 'false'
            },
            crosswalk: {
                type: 'configuration/sources/Reltio',
                value: '0Q4Djk0',
                dataProvider: true
            },
            newPinOrIgnoreValue: false,
            attributeType: 'configuration/entityTypes/HCP/attributes/Boolean'
        },
        {
            id: '0SBmhp2',
            type: mdm_sdk_1.DCRTypes.DELETE_ATTRIBUTE,
            createdTime: 1761922840650,
            createdBy: 'ivan.kositsin',
            objectType: 'configuration/entityTypes/HCP',
            attributePath: 'Specialities/21aeo3RN',
            oldValue: {
                value: {
                    SpecialityStatus: [
                        {
                            value: 'ACTIVE'
                        }
                    ],
                    PrimarySpecialityInd: [
                        {
                            value: 'false'
                        }
                    ]
                }
            },
            newValue: {
                value: {
                    SpecialityStatus: [
                        {
                            value: 'ACTIVE'
                        }
                    ],
                    PrimarySpecialityInd: [
                        {
                            value: 'false'
                        }
                    ]
                }
            },
            crosswalk: {
                type: 'configuration/sources/Reltio',
                value: '0Q4Djk0'
            },
            newPinOrIgnoreValue: false,
            attributeType: 'configuration/entityTypes/HCP/attributes/Specialities'
        },
        {
            id: '0SBn7Oa',
            type: mdm_sdk_1.DCRTypes.INSERT_ATTRIBUTE,
            createdTime: 1761922840650,
            createdBy: 'ivan.kositsin',
            objectType: 'configuration/entityTypes/HCP',
            attributePath: 'Specialities',
            newValue: {
                value: {
                    RelLastUpdateNested: [
                        {
                            value: '2025-10-16T01:00:00.000+0000'
                        }
                    ],
                    PrimarySpecialityInd: [
                        {
                            value: 'true'
                        }
                    ]
                }
            },
            crosswalk: {
                type: 'configuration/sources/Reltio',
                value: 'entityUri1'
            },
            newPinOrIgnoreValue: false,
            attributeType: 'configuration/entityTypes/HCP/attributes/Specialities'
        },
        {
            id: '0SBmubo',
            refObjectURI: 'relations/0HfPK9G',
            type: mdm_sdk_1.DCRTypes.INSERT_ATTRIBUTE,
            createdTime: 1761922840650,
            createdBy: 'ivan.kositsin',
            objectType: 'configuration/entityTypes/HCP',
            attributePath: 'InternalPostCode',
            newValue: {
                value: '2345'
            },
            crosswalk: {
                type: 'configuration/sources/Reltio',
                value: '0HfPK9G',
                dataProvider: true
            },
            newPinOrIgnoreValue: false,
            attributeType: 'configuration/relationTypes/HasAddress/attributes/InternalPostCode',
            refAttributeType: 'configuration/entityTypes/HCP/attributes/Address/attributes/InternalPostCode'
        },
        {
            id: '0SBmqLY',
            refObjectURI: 'relations/0HfPK9G',
            type: mdm_sdk_1.DCRTypes.DELETE_ATTRIBUTE,
            createdTime: 1761922840650,
            createdBy: 'ivan.kositsin',
            objectType: 'configuration/entityTypes/HCP',
            attributePath: 'InternalPostCode/2GMCNw4E',
            oldValue: {
                value: '345'
            },
            newValue: {
                value: '345'
            },
            crosswalk: {
                type: 'configuration/sources/Reltio',
                value: '0HfPK9G',
                dataProvider: true
            },
            newPinOrIgnoreValue: false,
            attributeType: 'configuration/relationTypes/HasAddress/attributes/InternalPostCode',
            refAttributeType: 'configuration/entityTypes/HCP/attributes/Address/attributes/InternalPostCode'
        },
        {
            id: '0SBmys4',
            type: mdm_sdk_1.DCRTypes.INSERT_ATTRIBUTE,
            createdTime: 1761922840650,
            createdBy: 'ivan.kositsin',
            objectType: 'configuration/entityTypes/HCP',
            attributePath: 'Boolean',
            newValue: {
                value: 'true'
            },
            crosswalk: {
                type: 'configuration/sources/Reltio',
                value: 'entityUri1',
                dataProvider: true
            },
            newPinOrIgnoreValue: false,
            attributeType: 'configuration/entityTypes/HCP/attributes/Boolean'
        }
    ],
    'relations/0pSTmm8': [
        {
            id: '0MCLpVw',
            type: mdm_sdk_1.DCRTypes.CREATE_RELATIONSHIP,
            createdTime: 1760522159435,
            createdBy: 'ivan.kositsin',
            objectType: 'configuration/relationTypes/HCPtoHCA',
            newValue: {
                uri: 'relations/0pSTmm8',
                type: 'configuration/relationTypes/HCPtoHCA',
                attributes: {
                    NestedAttr: [
                        {
                            value: {
                                SubAttr: [
                                    {
                                        value: 'SubAttrValue'
                                    }
                                ]
                            }
                        }
                    ]
                },
                crosswalks: [
                    {
                        type: 'configuration/sources/Reltio',
                        value: '0pSTmm8',
                        dataProvider: true
                    }
                ],
                startObject: {
                    objectURI: 'entities/entityUri1'
                },
                endObject: {
                    objectURI: 'entities/1xSJGMU'
                }
            }
        }
    ],
    'entities/entityUri2': [
        {
            id: '0IEiwoe',
            type: mdm_sdk_1.DCRTypes.CREATE_ENTITY,
            createdTime: 1760522158678,
            createdBy: 'ivan.kositsin',
            objectType: 'configuration/entityTypes/HCO',
            newValue: {
                uri: 'entities/1P2V7EO',
                type: 'configuration/entityTypes/HCO',
                attributes: {
                    Name: [
                        {
                            value: 'test'
                        }
                    ],
                    ContactInfo: [
                        {
                            value: {
                                Email: [
                                    {
                                        value: 'test@example.com'
                                    }
                                ]
                            }
                        }
                    ]
                },
                isFavorite: false,
                crosswalks: [
                    {
                        type: 'configuration/sources/Reltio',
                        value: '1P2V7EO',
                        dataProvider: true
                    }
                ],
                analyticsAttributes: {}
            }
        }
    ]
}); };
exports.getChanges = getChanges;
var getEntitiesOrRelations = function () { return ({
    'entities/entityUri1': {
        uri: 'entities/entityUri1',
        type: 'configuration/entityTypes/HCP',
        createdBy: 'ivan.kositsin',
        createdTime: 1744023930390,
        updatedBy: 'ivan.kositsin',
        updatedTime: 1761826606973,
        startDate: 1761001200000,
        attributes: {
            FirstName: [
                {
                    type: 'configuration/entityTypes/HCP/attributes/FirstName',
                    ov: true,
                    value: 'someValue',
                    uri: 'entities/entityUri1/attributes/FirstName/2QHFlPPP'
                }
            ],
            Boolean: [
                {
                    type: 'configuration/entityTypes/HCP/attributes/Boolean',
                    ov: true,
                    value: 'false',
                    uri: 'entities/entityUri1/attributes/Boolean/2DEYFcfk'
                }
            ],
            Specialities: [
                {
                    label: '- Статус: ACTI - Индикатор: false',
                    value: {
                        SpecialityStatus: [
                            {
                                type: 'configuration/entityTypes/HCP/attributes/Specialities/attributes/SpecialityStatus',
                                ov: true,
                                value: 'ACTI',
                                uri: 'entities/entityUri1/attributes/Specialities/21aeo3RN/SpecialityStatus/21aeo7hd'
                            }
                        ],
                        PrimarySpecialityInd: [
                            {
                                type: 'configuration/entityTypes/HCP/attributes/Specialities/attributes/PrimarySpecialityInd',
                                ov: true,
                                value: 'false',
                                uri: 'entities/entityUri1/attributes/Specialities/21aeo3RN/PrimarySpecialityInd/21aeoBxt'
                            }
                        ]
                    },
                    ov: true,
                    uri: 'entities/entityUri1/attributes/Specialities/21aeo3RN'
                }
            ],
            Prefix: [
                {
                    type: 'configuration/entityTypes/HCP/attributes/Prefix',
                    ov: true,
                    value: 'a',
                    uri: 'entities/entityUri1/attributes/Prefix/21aeoGE9'
                }
            ],
            NestedAttr: [
                {
                    value: {
                        Int: [
                            {
                                type: 'configuration/entityTypes/HCP/attributes/NestedAttr/attributes/Int',
                                ov: true,
                                value: '42',
                                uri: 'entities/entityUri1/attributes/NestedAttr/2BNyTheu/Int/2BNyTlvA'
                            }
                        ]
                    },
                    ov: true,
                    uri: 'entities/entityUri1/attributes/NestedAttr/2BNyTheu'
                }
            ],
            Address: [
                {
                    label: 'Have a rest',
                    relationshipLabel: '',
                    value: {
                        InternalPostCode: [
                            {
                                type: 'configuration/relationTypes/HasAddress/attributes/InternalPostCode',
                                ov: true,
                                value: '222',
                                uri: 'entities/entityUri1/attributes/Address/0HfPK9G/InternalPostCode/2GMCNw4E'
                            }
                        ]
                    },
                    ov: true,
                    uri: 'entities/entityUri1/attributes/Address/0HfPK9G',
                    refEntity: {
                        type: 'configuration/entityTypes/Location',
                        crosswalks: [],
                        objectURI: 'entities/0DIuojy'
                    },
                    refRelation: {
                        type: 'configuration/relationTypes/HasAddress',
                        crosswalks: [
                            {
                                uri: 'entities/entityUri1/crosswalks/0HfPK9G.2GMCOPu2',
                                type: 'configuration/sources/Reltio',
                                value: '0HfPK9G',
                                createDate: '2025-09-30T16:05:35.290Z',
                                updateDate: '2025-09-30T16:05:35.290Z',
                                attributeURIs: [
                                    'entities/entityUri1/attributes/Address/0HfPK9G/InternalPostCode/2GMCNw4E',
                                    'entities/entityUri1/attributes/Address/0HfPK9G'
                                ]
                            }
                        ],
                        startRefPinned: false,
                        endRefPinned: false,
                        startRefIgnored: false,
                        endRefIgnored: false,
                        objectURI: 'relations/0HfPK9G'
                    }
                }
            ]
        },
        roles: [],
        crosswalks: [],
        analyticsAttributes: {},
        tags: [],
        label: '',
        secondaryLabel: ''
    },
    'relations/0HfPK9G': {
        uri: 'relations/0HfPK9G',
        type: 'configuration/relationTypes/HasAddress',
        attributes: {
            InternalPostCode: [
                {
                    type: 'configuration/relationTypes/HasAddress/attributes/InternalPostCode',
                    ov: true,
                    value: '222',
                    uri: 'entities/entityUri1/attributes/Address/0HfPK9G/InternalPostCode/2GMCNw4E'
                }
            ]
        }
    }
}); };
exports.getEntitiesOrRelations = getEntitiesOrRelations;
var getUserChanges = function () { return [
    {
        lineId: 'entityUri1/0SBmys4/newValue',
        data: {
            isRejected: true
        }
    },
    {
        lineId: 'entityUri1/0SBmZIW/newValue',
        data: {
            value: {
                value: ''
            }
        }
    },
    {
        lineId: 'entityUri1/0SBn7Oa/newValue/value/PrimarySpecialityInd/0',
        data: {
            isRejected: true
        }
    },
    {
        lineId: 'entityUri1/0SBmubo/newValue',
        data: {
            isRejected: true
        }
    }
]; };
exports.getUserChanges = getUserChanges;
var getUserChangesRejectSubnestedAttributes = function () { return [
    {
        lineId: 'entityUri1/0SBn7Oa/newValue/value/PrimarySpecialityInd/0',
        data: {
            isRejected: true
        }
    },
    {
        lineId: 'entityUri1/0SBn7Oa/newValue/value/RelLastUpdateNested/0',
        data: {
            isRejected: true
        }
    }
]; };
exports.getUserChangesRejectSubnestedAttributes = getUserChangesRejectSubnestedAttributes;
var getUserChangesRejectSubnestedRelationAttributes = function () { return [
    {
        lineId: '0pSTmm8/0MCLpVw/newValue/attributes/NestedAttr/0/value/SubAttr/0',
        data: {
            isRejected: true
        }
    }
]; };
exports.getUserChangesRejectSubnestedRelationAttributes = getUserChangesRejectSubnestedRelationAttributes;
var getUserChangesSubnestedEmpty = function () { return [
    {
        lineId: 'entityUri1/0IEmjjX/newValue',
        data: {
            value: {
                value: ''
            }
        }
    }
]; };
exports.getUserChangesSubnestedEmpty = getUserChangesSubnestedEmpty;
var getChangesWithBooleanPrimitiveValue = function () { return ({
    'entities/entityUri1': [
        {
            id: '0SBn7Oa',
            type: mdm_sdk_1.DCRTypes.INSERT_ATTRIBUTE,
            createdTime: 1761922840650,
            createdBy: 'ivan.kositsin',
            objectType: 'configuration/entityTypes/HCP',
            attributePath: 'Specialities',
            newValue: {
                value: {
                    SpecialityStatus: [
                        {
                            value: 'ACTIVE'
                        }
                    ],
                    PrimarySpecialityInd: [
                        {
                            value: false
                        }
                    ]
                }
            },
            crosswalk: {
                type: 'configuration/sources/Reltio',
                value: 'entityUri1'
            },
            newPinOrIgnoreValue: false,
            attributeType: 'configuration/entityTypes/HCP/attributes/Specialities'
        }
    ]
}); };
exports.getChangesWithBooleanPrimitiveValue = getChangesWithBooleanPrimitiveValue;
var getUserChangesNewEntity = function () { return [
    {
        lineId: 'entityUri2/0IEiwoe/newValue/attributes/Name/0',
        data: {
            value: {
                value: ''
            }
        }
    },
    {
        lineId: 'entityUri2/0IEiwoe/newValue/attributes/ContactInfo/0/value/Email/0',
        data: {
            value: {
                value: ''
            }
        }
    }
]; };
exports.getUserChangesNewEntity = getUserChangesNewEntity;
