Skip to content

Commit

Permalink
addressing review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
NiranjanaBinoy committed Sep 16, 2024
1 parent 28e4eec commit 886abe4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,13 @@ import {
BaseController,
RestrictedControllerMessenger,
} from '@metamask/base-controller';
import { PublicInterface } from '@metamask/utils';
import type { DataDeletionService } from '../../services/data-deletion-service';
import { DeleteRegulationStatus } from '../../../../shared/constants/metametrics';

// Unique name for the controller
const controllerName = 'MetaMetricsDataDeletionController';

/**
* Get a type representing the public interface of the given type. The
* returned type will have all public properties, but will omit private
* properties.
*
* @template Interface - The interface to return a public representation of.
*/
type PublicInterface<Interface> = Pick<Interface, keyof Interface>;

/**
* Timestamp at which regulation response is returned.
*/
Expand Down
16 changes: 8 additions & 8 deletions shared/constants/metametrics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -855,12 +855,12 @@ export enum MetaMetricsContextProp {
* Mentioned here: https://docs.segmentapis.com/tag/Deletion-and-Suppression#operation/listRegulationsFromSource
*/
export enum DeleteRegulationStatus {
failed = 'FAILED',
finished = 'FINISHED',
initialized = 'INITIALIZED',
invalid = 'INVALID',
notSupported = 'NOT_SUPPORTED',
partialSuccess = 'PARTIAL_SUCCESS',
running = 'RUNNING',
unknown = 'UNKNOWN',
Failed = 'FAILED',
Finished = 'FINISHED',
Initialized = 'INITIALIZED',
Invalid = 'INVALID',
NotSupported = 'NOT_SUPPORTED',
PartialSuccess = 'PARTIAL_SUCCESS',
Running = 'RUNNING',
Unknown = 'UNKNOWN',
}

0 comments on commit 886abe4

Please sign in to comment.