@@ -204,6 +204,7 @@ import { SignatureControllerInit } from './controllers/signature-controller';
204
204
import { GasFeeControllerInit } from './controllers/gas-fee-controller' ;
205
205
import I18n from '../../../locales/i18n' ;
206
206
import { Platform } from '@metamask/profile-sync-controller/sdk' ;
207
+ import { MetaMetrics as BackupAndSyncMetaMetrics } from '@metamask/profile-sync-controller' ;
207
208
import { isProductSafetyDappScanningEnabled } from '../../util/phishingDetection' ;
208
209
import { appMetadataControllerInit } from './controllers/app-metadata-controller' ;
209
210
import { InternalAccount } from '@metamask/keyring-internal-api' ;
@@ -1026,11 +1027,11 @@ export class Engine {
1026
1027
MetricsEventBuilder . createEventBuilder (
1027
1028
MetaMetricsEvents . PROFILE_ACTIVITY_UPDATED ,
1028
1029
)
1029
- . addProperties ( {
1030
- profile_id : profileId ,
1031
- feature_name : 'Contacts Sync' ,
1032
- action : 'Contacts Sync Contact Updated' ,
1033
- } )
1030
+ . addProperties (
1031
+ BackupAndSyncMetaMetrics . BackupAndSyncEventProperties . CONTACT_UPDATED (
1032
+ profileId ,
1033
+ ) ,
1034
+ )
1034
1035
. build ( ) ,
1035
1036
) ;
1036
1037
} ,
@@ -1039,11 +1040,11 @@ export class Engine {
1039
1040
MetricsEventBuilder . createEventBuilder (
1040
1041
MetaMetricsEvents . PROFILE_ACTIVITY_UPDATED ,
1041
1042
)
1042
- . addProperties ( {
1043
- profile_id : profileId ,
1044
- feature_name : 'Contacts Sync' ,
1045
- action : 'Contacts Sync Contact Deleted' ,
1046
- } )
1043
+ . addProperties (
1044
+ BackupAndSyncMetaMetrics . BackupAndSyncEventProperties . CONTACT_DELETED (
1045
+ profileId ,
1046
+ ) ,
1047
+ )
1047
1048
. build ( ) ,
1048
1049
) ;
1049
1050
} ,
@@ -1052,12 +1053,12 @@ export class Engine {
1052
1053
MetricsEventBuilder . createEventBuilder (
1053
1054
MetaMetricsEvents . PROFILE_ACTIVITY_UPDATED ,
1054
1055
)
1055
- . addProperties ( {
1056
- profile_id : profileId ,
1057
- feature_name : 'Contacts Sync' ,
1058
- action : 'Contacts Sync Erroneous Situation' ,
1059
- additional_description : situationMessage ,
1060
- } )
1056
+ . addProperties (
1057
+ BackupAndSyncMetaMetrics . BackupAndSyncEventProperties . CONTACT_SYNC_ERROR (
1058
+ profileId ,
1059
+ situationMessage ,
1060
+ ) ,
1061
+ )
1061
1062
. build ( ) ,
1062
1063
) ;
1063
1064
} ,
0 commit comments