datahub/datahub-web/packages/data-portal/app/constants/dataset-classification.ts
Charlie Tran 843a6c5bbb
feat(frontend): update datahub-web client UI code (#1806)
* Releases updated version of datahub-web client UI code

* Fix typo in yarn lock

* Change yarn lock to match yarn registry directories

* Previous commit missed some paths

* Even more changes to yarnlock missing in previous commit

* Include codegen file for typings

* Add files to get parity for datahub-web and current OS datahub-midtier

* Add in typo fix from previous commit - change to proper license

* Implement proper OS fix for person entity picture url

* Workarounds for open source DH issues

* Fixes institutional memory api and removes unopensourced tabs for datasets

* Fixes search dataset deprecation and user search issue as a result of changes

* Remove internal only options in the avatar menu
2020-08-26 15:44:50 -07:00

45 lines
2.0 KiB
TypeScript

import { INachoDropdownOption } from '@nacho-ui/dropdown/types/nacho-dropdown';
/**
* List of string values for every dataset classifier
* @enum {string}
*/
export enum DatasetClassifiers {
CONNECTIONS_FOLLOWERS_FOLLOWING = 'Connections + Followers + Following',
PROFILE_DATA = 'Profile Data',
MESSAGING_DATA = 'Messaging Data (Metadata + Content)',
THIRD_PARTY_INTEGRATIONS = 'Third Party Integrations In Use',
ACTIVITY = 'Activity (Newsfeed Posts + Shares + Likes)',
SETTINGS = 'Settings (Mail Settings, All psettings values)',
JOB_APPLICATION_FLOW_DATA = 'Job Application Flow Data (Job Application + AWLI + Resumes + Application Answers)',
ENTERPRISE_PRODUCT_DATA = 'Enterprise Product Data',
ACCOUNT_STATUS = 'Account Status',
ADDRESS_BOOK_IMPORT_DATA = 'Address Book Import Data',
MICROSOFT_DATA = 'Data from Microsoft',
SUBSIDIARY_DATA = 'Data from companies LinkedIn acquired (Lynda, Slideshare, Connectifier, Bizo, etcetera)',
THIRD_PARTY_DATA = 'Data from other Third-party Integrations',
DEVICE_DATA = 'Device Data',
SEARCH_HISTORY = 'Search History',
COURSE_VIEWING_HISTORY = 'Course Viewing History',
WVMP = "Who's Viewed My Profile",
PROFILE_VIEWS_BY_ME = 'Profile Views (by me)',
ADVERTISING_DATA = 'Advertising related (LMS) Data',
USAGE_ERROR_CONNECTIVITY_DATA = 'Usage, Error Reporting, Connectivity Data',
OTHER_CLICKSTREAM_BROWSING_DATA = 'Other Clickstream Data + Browsing history',
EMPLOYEE_DATA = 'Employee Data'
}
/**
* Defines a type alias for a DatasetClassification interface, constrains the keys as attributes on DatasetClassifiers
* and specifies value types
*/
export type DatasetClassification = { [K in keyof typeof DatasetClassifiers]: boolean | void };
/**
* Describes the interface for a DatasetClassification option
* @interface IDatasetClassificationOption
* @extends {(INachoDropdownOption<boolean | void>)}
*/
export interface IDatasetClassificationOption extends INachoDropdownOption<boolean | void> {
classifier: keyof typeof DatasetClassifiers;
}