2022-05-18 12:22:50 +05:30
|
|
|
/*
|
|
|
|
* Copyright 2021 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.
|
|
|
|
*/
|
|
|
|
|
2022-05-24 18:55:17 +05:30
|
|
|
import { uuid } from '../common/common';
|
|
|
|
|
2022-05-18 12:22:50 +05:30
|
|
|
export const MYDATA_SUMMARY_OPTIONS = {
|
|
|
|
tables: 'tables',
|
|
|
|
topics: 'topics',
|
|
|
|
dashboards: 'dashboards',
|
|
|
|
pipelines: 'pipelines',
|
|
|
|
service: 'service',
|
|
|
|
user: 'user',
|
|
|
|
terms: 'terms',
|
|
|
|
};
|
|
|
|
|
2022-05-22 10:36:43 +05:30
|
|
|
export const SEARCH_ENTITY_TABLE = {
|
|
|
|
table_1: { term: 'raw_customer', entity: MYDATA_SUMMARY_OPTIONS.tables },
|
|
|
|
table_2: { term: 'fact_session', entity: MYDATA_SUMMARY_OPTIONS.tables },
|
|
|
|
table_3: {
|
|
|
|
term: 'raw_product_catalog',
|
|
|
|
entity: MYDATA_SUMMARY_OPTIONS.tables,
|
|
|
|
},
|
|
|
|
};
|
|
|
|
|
|
|
|
export const SEARCH_ENTITY_TOPIC = {
|
|
|
|
topic_1: {
|
|
|
|
term: 'shop_products',
|
|
|
|
entity: MYDATA_SUMMARY_OPTIONS.topics,
|
2022-05-18 23:20:41 +05:30
|
|
|
},
|
2022-05-22 10:36:43 +05:30
|
|
|
topic_2: { term: 'orders', entity: MYDATA_SUMMARY_OPTIONS.topics },
|
|
|
|
};
|
|
|
|
|
|
|
|
export const SEARCH_ENTITY_DASHBOARD = {
|
|
|
|
dashboard_1: {
|
2022-06-13 22:43:22 +05:30
|
|
|
term: 'Slack Dashboard',
|
2022-05-18 23:20:41 +05:30
|
|
|
entity: MYDATA_SUMMARY_OPTIONS.dashboards,
|
|
|
|
},
|
2022-05-22 10:36:43 +05:30
|
|
|
dashboard_2: {
|
2022-05-18 23:20:41 +05:30
|
|
|
term: 'Unicode Test',
|
|
|
|
entity: MYDATA_SUMMARY_OPTIONS.dashboards,
|
|
|
|
},
|
2022-05-22 10:36:43 +05:30
|
|
|
};
|
|
|
|
|
|
|
|
export const SEARCH_ENTITY_PIPELINE = {
|
2022-07-05 18:03:08 +05:30
|
|
|
pipeline_1: {
|
2022-09-05 17:46:09 +05:30
|
|
|
term: 'Snowflake',
|
2022-07-05 18:03:08 +05:30
|
|
|
entity: MYDATA_SUMMARY_OPTIONS.pipelines,
|
|
|
|
},
|
2022-05-22 10:36:43 +05:30
|
|
|
pipeline_2: {
|
2022-09-05 17:46:09 +05:30
|
|
|
term: 'Hive',
|
2022-05-18 23:20:41 +05:30
|
|
|
entity: MYDATA_SUMMARY_OPTIONS.pipelines,
|
|
|
|
},
|
2022-05-22 10:36:43 +05:30
|
|
|
pipeline_3: {
|
2022-09-05 17:46:09 +05:30
|
|
|
term: 'Trino',
|
2022-05-22 10:36:43 +05:30
|
|
|
entity: MYDATA_SUMMARY_OPTIONS.pipelines,
|
2022-05-21 03:03:55 +05:30
|
|
|
},
|
2022-05-18 23:20:41 +05:30
|
|
|
};
|
|
|
|
|
2022-05-19 17:34:32 +05:30
|
|
|
export const DELETE_ENTITY = {
|
|
|
|
table: {
|
|
|
|
term: 'fact_line_item',
|
|
|
|
entity: MYDATA_SUMMARY_OPTIONS.tables,
|
|
|
|
},
|
|
|
|
topic: {
|
|
|
|
term: 'shop_updates',
|
|
|
|
entity: MYDATA_SUMMARY_OPTIONS.topics,
|
2022-09-06 00:03:34 +05:30
|
|
|
}
|
2022-05-19 17:34:32 +05:30
|
|
|
};
|
|
|
|
|
2022-05-18 12:22:50 +05:30
|
|
|
export const RECENT_SEARCH_TITLE = 'Recent Search Terms';
|
|
|
|
export const RECENT_VIEW_TITLE = 'Recent Views';
|
|
|
|
export const MY_DATA_TITLE = 'My Data';
|
|
|
|
export const FOLLOWING_TITLE = 'Following';
|
2022-05-18 23:20:41 +05:30
|
|
|
|
|
|
|
export const NO_SEARCHED_TERMS = 'No searched terms';
|
2022-05-19 17:34:32 +05:30
|
|
|
export const DELETE_TERM = 'DELETE';
|
2022-05-24 18:55:17 +05:30
|
|
|
|
|
|
|
export const TOTAL_SAMPLE_DATA_TEAMS_COUNT = 7;
|
|
|
|
export const TEAMS = {
|
|
|
|
Cloud_Infra: { name: 'Cloud_Infra', users: 15 },
|
|
|
|
Customer_Support: { name: 'Customer_Support', users: 20 },
|
|
|
|
Data_Platform: { name: 'Data_Platform', users: 16 },
|
|
|
|
};
|
|
|
|
|
|
|
|
export const NEW_TEAM = {
|
|
|
|
team_1: {
|
|
|
|
name: 'account',
|
|
|
|
display_name: 'Account',
|
|
|
|
description: 'Account department',
|
|
|
|
},
|
|
|
|
team_2: {
|
|
|
|
name: 'service',
|
|
|
|
display_name: 'Service',
|
|
|
|
description: 'Service department',
|
|
|
|
},
|
|
|
|
};
|
|
|
|
const id = uuid();
|
|
|
|
export const NEW_USER = {
|
|
|
|
email: `test_${id}@gmail.com`,
|
|
|
|
display_name: `Test user ${id}`,
|
|
|
|
description: 'Hello, I am test user',
|
|
|
|
};
|
|
|
|
|
|
|
|
export const NEW_ADMIN = {
|
|
|
|
email: `test_${id}@gmail.com`,
|
|
|
|
display_name: `Test admin ${id}`,
|
|
|
|
description: 'Hello, I am test admin',
|
|
|
|
};
|
2022-05-27 23:52:33 +05:30
|
|
|
|
|
|
|
export const NEW_TAG_CATEGORY = {
|
|
|
|
name: 'TestCategory',
|
|
|
|
description: 'This is the TestCategory',
|
|
|
|
};
|
|
|
|
export const NEW_TAG = {
|
|
|
|
name: 'test',
|
|
|
|
description: 'This is the Test tag',
|
|
|
|
};
|
2022-06-01 11:36:36 +05:30
|
|
|
|
|
|
|
export const NEW_GLOSSARY = {
|
|
|
|
name: 'Business Glossary',
|
|
|
|
description: 'This is the Business glossary',
|
|
|
|
};
|
|
|
|
export const NEW_GLOSSARY_TERMS = {
|
|
|
|
term_1: {
|
|
|
|
name: 'Purchase',
|
|
|
|
description: 'This is the Purchase',
|
|
|
|
synonyms: 'buy,collect,acquire',
|
|
|
|
},
|
|
|
|
term_2: {
|
|
|
|
name: 'Sales',
|
|
|
|
description: 'This is the Sales',
|
|
|
|
synonyms: 'give,disposal,deal',
|
|
|
|
},
|
|
|
|
};
|
2022-07-05 18:03:08 +05:30
|
|
|
|
|
|
|
export const service = {
|
|
|
|
name: 'Glue',
|
|
|
|
description: 'This is a Glue service',
|
|
|
|
newDescription: 'This is updated Glue service description',
|
|
|
|
Owner: 'Cloud_Infra',
|
|
|
|
};
|
2022-08-11 10:57:39 +05:30
|
|
|
|
|
|
|
export const SERVICE_TYPE = {
|
|
|
|
Database: 'Database',
|
|
|
|
Messaging: 'Messaging',
|
|
|
|
Dashboard: 'Dashboard',
|
|
|
|
Pipelines: 'Pipelines',
|
|
|
|
MLModels: 'ML Models',
|
|
|
|
};
|
2022-08-23 19:21:06 +05:30
|
|
|
|
|
|
|
export const ENTITIES = {
|
|
|
|
entity_table: {
|
|
|
|
name: 'table',
|
|
|
|
description: 'This is Table custom property',
|
|
|
|
integerValue: '45',
|
|
|
|
stringValue: 'This is string propery',
|
|
|
|
markdownValue: 'This is markdown value',
|
|
|
|
},
|
|
|
|
entity_topic: {
|
|
|
|
name: 'topic',
|
|
|
|
description: 'This is Topic custom property',
|
|
|
|
integerValue: '23',
|
|
|
|
stringValue: 'This is string propery',
|
|
|
|
markdownValue: 'This is markdown value',
|
|
|
|
},
|
|
|
|
entity_dashboard: {
|
|
|
|
name: 'dashboard',
|
|
|
|
description: 'This is Dashboard custom property',
|
|
|
|
integerValue: '14',
|
|
|
|
stringValue: 'This is string propery',
|
|
|
|
markdownValue: 'This is markdown value',
|
|
|
|
},
|
|
|
|
entity_pipeline: {
|
|
|
|
name: 'pipeline',
|
|
|
|
description: 'This is Pipeline custom property',
|
|
|
|
integerValue: '78',
|
|
|
|
stringValue: 'This is string propery',
|
|
|
|
markdownValue: 'This is markdown value',
|
|
|
|
},
|
|
|
|
|
|
|
|
};
|