2025-03-06 18:19:42 +05:30

224 lines
6.1 KiB
TypeScript

/*
* Copyright 2022 Collate.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
export enum EntityType {
TABLE = 'table',
TOPIC = 'topic',
CLASSIFICATION = 'classification',
DASHBOARD = 'dashboard',
PIPELINE = 'pipeline',
DATABASE = 'database',
DATABASE_SCHEMA = 'databaseSchema',
GLOSSARY = 'glossary',
GLOSSARY_TERM = 'glossaryTerm',
DATABASE_SERVICE = 'databaseService',
MESSAGING_SERVICE = 'messagingService',
METADATA_SERVICE = 'metadataService',
DASHBOARD_SERVICE = 'dashboardService',
PIPELINE_SERVICE = 'pipelineService',
MLMODEL_SERVICE = 'mlmodelService',
STORAGE_SERVICE = 'storageService',
SEARCH_SERVICE = 'searchService',
WEBHOOK = 'webhook',
MLMODEL = 'mlmodel',
TYPE = 'type',
TEAM = 'team',
USER = 'user',
BOT = 'bot',
ROLE = 'role',
POLICY = 'policy',
TEST_SUITE = 'testSuite',
TEST_CASE = 'testCase',
DATA_INSIGHT_CHART = 'dataInsightChart',
KPI = 'kpi',
ALERT = 'alert',
CONTAINER = 'container',
TAG = 'tag',
DASHBOARD_DATA_MODEL = 'dashboardDataModel',
SUBSCRIPTION = 'subscription',
CHART = 'chart',
DOMAIN = 'domain',
DATA_PRODUCT = 'dataProduct',
SAMPLE_DATA = 'sampleData',
STORED_PROCEDURE = 'storedProcedure',
SEARCH_INDEX = 'searchIndex',
APP_MARKET_PLACE_DEFINITION = 'appMarketPlaceDefinition',
APPLICATION = 'app',
PERSONA = 'persona',
DOC_STORE = 'docStore',
PAGE = 'Page',
knowledgePanels = 'KnowLedgePanels',
GOVERN = 'govern',
ALL = 'all',
CUSTOM_METRIC = 'customMetric',
INGESTION_PIPELINE = 'ingestionPipeline',
QUERY = 'query',
ENTITY_REPORT_DATA = 'entityReportData',
WEB_ANALYTIC_ENTITY_VIEW_REPORT_DATA = 'webAnalyticEntityViewReportData',
WEB_ANALYTIC_USER_ACTIVITY_REPORT_DATA = 'webAnalyticUserActivityReportData',
TEST_CASE_RESOLUTION_STATUS = 'test_case_resolution_status_search_index',
TEST_CASE_RESULT = 'test_case_result_search_index',
EVENT_SUBSCRIPTION = 'eventsubscription',
LINEAGE_EDGE = 'lineageEdge',
API_SERVICE = 'apiService',
API_COLLECTION = 'apiCollection',
API_ENDPOINT = 'apiEndpoint',
METRIC = 'metric',
}
export enum EntityLineageDirection {
TOP_BOTTOM = 'TB',
LEFT_RIGHT = 'LR',
}
export enum EntityLineageNodeType {
INPUT = 'input',
OUTPUT = 'output',
DEFAULT = 'default',
NOT_CONNECTED = 'not-connected',
LOAD_MORE = 'load-more',
}
export enum TabSpecificField {
SAMPLE_DATA = 'sampleData',
ACTIVITY_FEED = 'activity_feed',
TABLE_PROFILE = 'profile',
LINEAGE = 'lineage',
COLUMNS = 'columns',
USAGE_SUMMARY = 'usageSummary',
FOLLOWERS = 'followers',
JOINS = 'joins',
TAGS = 'tags',
STATE = 'state',
OWNERS = 'owners',
DATAMODEL = 'dataModel',
CHARTS = 'charts',
TASKS = 'tasks',
TABLE_QUERIES = 'tableQueries',
TESTS = 'tests',
PIPELINE_STATUS = 'pipelineStatus',
PIPELINE_STATUSES = 'pipelineStatuses',
DASHBOARD = 'dashboard',
TABLE_CONSTRAINTS = 'tableConstraints',
EXTENSION = 'extension',
EXECUTIONS = 'executions',
SCHEDULE_INTERVAL = 'scheduleInterval',
TESTSUITE = 'testSuite',
VIEW_DEFINITION = 'viewDefinition',
SCHEMA_DEFINITION = 'schemaDefinition',
FIELDS = 'fields',
VOTES = 'votes',
DOMAIN = 'domain',
DOMAINS = 'domains',
DATA_PRODUCTS = 'dataProducts',
REVIEWERS = 'reviewers',
PIPELINES = 'pipelines',
PROFILE = 'profile',
TEAMS = 'teams',
USERS = 'users',
ROLES = 'roles',
PERSONAS = 'personas',
ASSETS = 'assets',
EXPERTS = 'experts',
DEFAULT_PERSONA = 'defaultPersona',
USAGE_COUNT = 'usageCount',
PARENT = 'parent',
PARENTS = 'parents',
CHILDREN = 'children',
CUSTOM_METRICS = 'customMetrics',
TEST_CASE_RESULT = 'testCaseResult',
INCIDENT_ID = 'incidentId',
QUERY_USED_IN = 'queryUsedIn',
TEST_DEFINITION = 'testDefinition',
SUMMARY = 'summary',
RELATED_TERMS = 'relatedTerms',
FOLLOWS = 'follows',
OWNS = 'owns',
DATA_INSIGHT_CHART = 'dataInsightChart',
POLICIES = 'policies',
DEFAULT_ROLES = 'defaultRoles',
TERM_COUNT = 'termCount',
USER_COUNT = 'userCount',
CHILDREN_COUNT = 'childrenCount',
START_DATE = 'startDate',
END_DATE = 'endDate',
TARGET_DEFINITION = 'targetDefinition',
TARGET_VALUE = 'targetValue',
METRIC_TYPE = 'metricType',
CUSTOM_PROPERTIES = 'customProperties',
LOCATION = 'location',
RELATED_METRICS = 'relatedMetrics',
UI_CUSTOMIZATION = 'uiCustomization',
}
export enum FqnPart {
Service,
Database,
Schema,
Table,
Column,
NestedColumn,
Topic,
SearchIndexField,
TestCase,
ApiEndpoint,
}
export enum EntityTabs {
SCHEMA = 'schema',
ACTIVITY_FEED = 'activity_feed',
SAMPLE_DATA = 'sample_data',
TABLE_QUERIES = 'table_queries',
PROFILER = 'profiler',
LINEAGE = 'lineage',
DBT = 'dbt',
VIEW_DEFINITION = 'view_definition',
SCHEMA_DEFINITION = 'schema_definition',
CUSTOM_PROPERTIES = 'custom_properties',
MODEL = 'model',
FEATURES = 'features',
TASKS = 'tasks',
CONFIG = 'config',
DETAILS = 'details',
CHILDREN = 'children',
EXECUTIONS = 'executions',
TABLE = 'table',
TEST_CASES = 'test-cases',
PIPELINE = 'pipeline',
DATA_Model = 'data-model',
INGESTIONS = 'ingestions',
CONNECTION = 'connection',
SQL = 'sql',
FIELDS = 'fields',
SEARCH_INDEX_SETTINGS = 'search-index-settings',
STORED_PROCEDURE = 'stored_procedure',
CODE = 'code',
API_COLLECTION = 'apiCollection',
API_ENDPOINT = 'apiEndpoint',
OVERVIEW = 'overview',
INCIDENTS = 'incidents',
TERMS = 'terms',
GLOSSARY_TERMS = 'glossary_terms',
ASSETS = 'assets',
EXPRESSION = 'expression',
DASHBOARD = 'dashboard',
DOCUMENTATION = 'documentation',
DATA_PRODUCTS = 'data_products',
SUBDOMAINS = 'subdomains',
}
export enum EntityAction {
EXPORT = 'export',
IMPORT = 'import',
}