Skip to content

Commit

Permalink
[Workplace Search] Add categories to source data for internal connect…
Browse files Browse the repository at this point in the history
  • Loading branch information
Byron Hulcher committed May 23, 2022
1 parent b59fb97 commit c993ff2
Show file tree
Hide file tree
Showing 2 changed files with 192 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -366,21 +366,90 @@ export const SOURCE_OBJ_TYPES = {
};

export const SOURCE_CATEGORIES = {
ACCOUNT_MANAGEMENT: i18n.translate(
'xpack.enterpriseSearch.workplaceSearch.sources.categories.accountManagement',
{
defaultMessage: 'Account management',
}
),
ATLASSIAN: i18n.translate('xpack.enterpriseSearch.workplaceSearch.sources.categories.atlassian', {
defaultMessage: 'Atlassian',
}),
BUG_TRACKING: i18n.translate(
'xpack.enterpriseSearch.workplaceSearch.sources.categories.bugTracking',
{
defaultMessage: 'Bug tracking',
}
),
CHAT: i18n.translate('xpack.enterpriseSearch.workplaceSearch.sources.categories.chat', {
defaultMessage: 'Chat',
}),
CLOUD: i18n.translate('xpack.enterpriseSearch.workplaceSearch.sources.categories.cloud', {
defaultMessage: 'Cloud',
}),
COMMUNICATIONS: i18n.translate(
'xpack.enterpriseSearch.workplaceSearch.sources.categories.communications',
CODE_REPOSITORY: i18n.translate(
'xpack.enterpriseSearch.workplaceSearch.sources.categories.codeRepository',
{
defaultMessage: 'Code repository',
}
),
COLLABORATION: i18n.translate(
'xpack.enterpriseSearch.workplaceSearch.sources.categories.collaboration',
{
defaultMessage: 'Collaboration',
}
),
COMMUNICATION: i18n.translate(
'xpack.enterpriseSearch.workplaceSearch.sources.categories.communication',
{
defaultMessage: 'Communication',
}
),
CRM: i18n.translate('xpack.enterpriseSearch.workplaceSearch.sources.categories.crm', {
defaultMessage: 'CRM',
}),
CUSTOMER_RELATIONSHIP_MANAGEMENT: i18n.translate(
'xpack.enterpriseSearch.workplaceSearch.sources.categories.customerRelationshipManagement',
{
defaultMessage: 'Customer relationship management',
}
),
CUSTOMER_SERVICE: i18n.translate(
'xpack.enterpriseSearch.workplaceSearch.sources.categories.customerService',
{
defaultMessage: 'Communications',
defaultMessage: 'Customer service',
}
),
EMAIL: i18n.translate('xpack.enterpriseSearch.workplaceSearch.sources.categories.email', {
defaultMessage: 'Email',
}),
FILE_SHARING: i18n.translate(
'xpack.enterpriseSearch.workplaceSearch.sources.categories.fileSharing',
{
defaultMessage: 'File Sharing',
defaultMessage: 'File sharing',
}
),
GOOGLE: i18n.translate('xpack.enterpriseSearch.workplaceSearch.sources.categories.google', {
defaultMessage: 'Google',
}),
GSUITE: i18n.translate('xpack.enterpriseSearch.workplaceSearch.sources.categories.gsuite', {
defaultMessage: 'GSuite',
}),
HELP: i18n.translate('xpack.enterpriseSearch.workplaceSearch.sources.categories.help', {
defaultMessage: 'Help',
}),
HELPDESK: i18n.translate('xpack.enterpriseSearch.workplaceSearch.sources.categories.helpdesk', {
defaultMessage: 'Helpdesk',
}),
INSTANT_MESSAGING: i18n.translate(
'xpack.enterpriseSearch.workplaceSearch.sources.categories.instantMessaging',
{
defaultMessage: 'Instant messaging',
}
),
INTRANET: i18n.translate('xpack.enterpriseSearch.workplaceSearch.sources.categories.intranet', {
defaultMessage: 'Intranet',
}),
MICROSOFT: i18n.translate('xpack.enterpriseSearch.workplaceSearch.sources.categories.microsoft', {
defaultMessage: 'Microsoft',
}),
Expand All @@ -393,9 +462,33 @@ export const SOURCE_CATEGORIES = {
defaultMessage: 'Productivity',
}
),
PROJECT_MANAGEMENT: i18n.translate(
'xpack.enterpriseSearch.workplaceSearch.sources.categories.projectManagement',
{
defaultMessage: 'Project management',
}
),
SOFTWARE: i18n.translate('xpack.enterpriseSearch.workplaceSearch.sources.categories.software', {
defaultMessage: 'Software',
}),
STORAGE: i18n.translate('xpack.enterpriseSearch.workplaceSearch.sources.categories.storage', {
defaultMessage: 'Storage',
}),
TICKETING: i18n.translate('xpack.enterpriseSearch.workplaceSearch.sources.categories.ticketing', {
defaultMessage: 'Ticketing',
}),
VERSION_CONTROL: i18n.translate(
'xpack.enterpriseSearch.workplaceSearch.sources.categories.versionControl',
{
defaultMessage: 'Version control',
}
),
WIKI: i18n.translate('xpack.enterpriseSearch.workplaceSearch.sources.categories.wiki', {
defaultMessage: 'Wiki',
}),
WORKFLOW: i18n.translate('xpack.enterpriseSearch.workplaceSearch.sources.categories.workflow', {
defaultMessage: 'Workflow',
}),
};

export const API_KEYS_TITLE = i18n.translate(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,11 @@ export const staticSourceData: SourceDataItem[] = [
{
name: SOURCE_NAMES.BOX,
serviceType: 'box',
categories: [
SOURCE_CATEGORIES.FILE_SHARING,
SOURCE_CATEGORIES.STORAGE,
SOURCE_CATEGORIES.CLOUD,
],
configuration: {
isPublicKey: false,
hasOauthRedirect: true,
Expand Down Expand Up @@ -69,6 +74,7 @@ export const staticSourceData: SourceDataItem[] = [
{
name: SOURCE_NAMES.CONFLUENCE,
serviceType: 'confluence_cloud',
categories: [SOURCE_CATEGORIES.WIKI, SOURCE_CATEGORIES.ATLASSIAN, SOURCE_CATEGORIES.INTRANET],
configuration: {
isPublicKey: false,
hasOauthRedirect: true,
Expand Down Expand Up @@ -103,6 +109,7 @@ export const staticSourceData: SourceDataItem[] = [
name: SOURCE_NAMES.CONFLUENCE_CONNECTOR_PACKAGE,
serviceType: 'external',
baseServiceType: 'confluence_cloud',
categories: [SOURCE_CATEGORIES.WIKI, SOURCE_CATEGORIES.ATLASSIAN, SOURCE_CATEGORIES.INTRANET],
configuration: {
isPublicKey: false,
hasOauthRedirect: true,
Expand Down Expand Up @@ -136,6 +143,7 @@ export const staticSourceData: SourceDataItem[] = [
{
name: SOURCE_NAMES.CONFLUENCE_SERVER,
serviceType: 'confluence_server',
categories: [SOURCE_CATEGORIES.WIKI, SOURCE_CATEGORIES.ATLASSIAN, SOURCE_CATEGORIES.INTRANET],
configuration: {
isPublicKey: true,
hasOauthRedirect: true,
Expand Down Expand Up @@ -166,6 +174,11 @@ export const staticSourceData: SourceDataItem[] = [
{
name: SOURCE_NAMES.DROPBOX,
serviceType: 'dropbox',
categories: [
SOURCE_CATEGORIES.FILE_SHARING,
SOURCE_CATEGORIES.STORAGE,
SOURCE_CATEGORIES.CLOUD,
],
configuration: {
isPublicKey: false,
hasOauthRedirect: true,
Expand Down Expand Up @@ -193,6 +206,11 @@ export const staticSourceData: SourceDataItem[] = [
{
name: SOURCE_NAMES.GITHUB,
serviceType: 'github',
categories: [
SOURCE_CATEGORIES.SOFTWARE,
SOURCE_CATEGORIES.VERSION_CONTROL,
SOURCE_CATEGORIES.CODE_REPOSITORY,
],
configuration: {
isPublicKey: false,
hasOauthRedirect: true,
Expand Down Expand Up @@ -227,6 +245,11 @@ export const staticSourceData: SourceDataItem[] = [
{
name: SOURCE_NAMES.GITHUB_ENTERPRISE,
serviceType: 'github_enterprise_server',
categories: [
SOURCE_CATEGORIES.SOFTWARE,
SOURCE_CATEGORIES.VERSION_CONTROL,
SOURCE_CATEGORIES.CODE_REPOSITORY,
],
configuration: {
isPublicKey: false,
hasOauthRedirect: true,
Expand Down Expand Up @@ -267,6 +290,11 @@ export const staticSourceData: SourceDataItem[] = [
{
name: SOURCE_NAMES.GMAIL,
serviceType: 'gmail',
categories: [
SOURCE_CATEGORIES.COMMUNICATION,
SOURCE_CATEGORIES.EMAIL,
SOURCE_CATEGORIES.GOOGLE,
],
configuration: {
isPublicKey: false,
hasOauthRedirect: true,
Expand All @@ -283,6 +311,13 @@ export const staticSourceData: SourceDataItem[] = [
{
name: SOURCE_NAMES.GOOGLE_DRIVE,
serviceType: 'google_drive',
categories: [
SOURCE_CATEGORIES.FILE_SHARING,
SOURCE_CATEGORIES.STORAGE,
SOURCE_CATEGORIES.CLOUD,
SOURCE_CATEGORIES.PRODUCTIVITY,
SOURCE_CATEGORIES.GSUITE,
],
configuration: {
isPublicKey: false,
hasOauthRedirect: true,
Expand Down Expand Up @@ -314,6 +349,12 @@ export const staticSourceData: SourceDataItem[] = [
{
name: SOURCE_NAMES.JIRA,
serviceType: 'jira_cloud',
categories: [
SOURCE_CATEGORIES.SOFTWARE,
SOURCE_CATEGORIES.BUG_TRACKING,
SOURCE_CATEGORIES.ATLASSIAN,
SOURCE_CATEGORIES.PROJECT_MANAGEMENT,
],
configuration: {
isPublicKey: false,
hasOauthRedirect: true,
Expand Down Expand Up @@ -348,6 +389,12 @@ export const staticSourceData: SourceDataItem[] = [
{
name: SOURCE_NAMES.JIRA_SERVER,
serviceType: 'jira_server',
categories: [
SOURCE_CATEGORIES.SOFTWARE,
SOURCE_CATEGORIES.BUG_TRACKING,
SOURCE_CATEGORIES.ATLASSIAN,
SOURCE_CATEGORIES.PROJECT_MANAGEMENT,
],
configuration: {
isPublicKey: true,
hasOauthRedirect: true,
Expand Down Expand Up @@ -396,6 +443,13 @@ export const staticSourceData: SourceDataItem[] = [
{
name: SOURCE_NAMES.ONEDRIVE,
serviceType: 'one_drive',
categories: [
SOURCE_CATEGORIES.FILE_SHARING,
SOURCE_CATEGORIES.CLOUD,
SOURCE_CATEGORIES.STORAGE,
SOURCE_CATEGORIES.MICROSOFT,
SOURCE_CATEGORIES.OFFICE_365,
],
configuration: {
isPublicKey: false,
hasOauthRedirect: true,
Expand Down Expand Up @@ -423,7 +477,7 @@ export const staticSourceData: SourceDataItem[] = [
{
name: SOURCE_NAMES.OUTLOOK,
categories: [
SOURCE_CATEGORIES.COMMUNICATIONS,
SOURCE_CATEGORIES.COMMUNICATION,
SOURCE_CATEGORIES.PRODUCTIVITY,
SOURCE_CATEGORIES.MICROSOFT,
],
Expand All @@ -442,6 +496,11 @@ export const staticSourceData: SourceDataItem[] = [
{
name: SOURCE_NAMES.SALESFORCE,
serviceType: 'salesforce',
categories: [
SOURCE_CATEGORIES.CRM,
SOURCE_CATEGORIES.CUSTOMER_RELATIONSHIP_MANAGEMENT,
SOURCE_CATEGORIES.ACCOUNT_MANAGEMENT,
],
configuration: {
isPublicKey: false,
hasOauthRedirect: true,
Expand Down Expand Up @@ -476,6 +535,11 @@ export const staticSourceData: SourceDataItem[] = [
{
name: SOURCE_NAMES.SALESFORCE_SANDBOX,
serviceType: 'salesforce_sandbox',
categories: [
SOURCE_CATEGORIES.CRM,
SOURCE_CATEGORIES.CUSTOMER_RELATIONSHIP_MANAGEMENT,
SOURCE_CATEGORIES.ACCOUNT_MANAGEMENT,
],
configuration: {
isPublicKey: false,
hasOauthRedirect: true,
Expand Down Expand Up @@ -510,6 +574,7 @@ export const staticSourceData: SourceDataItem[] = [
{
name: SOURCE_NAMES.SERVICENOW,
serviceType: 'service_now',
categories: [SOURCE_CATEGORIES.WORKFLOW],
configuration: {
isPublicKey: false,
hasOauthRedirect: false,
Expand Down Expand Up @@ -542,6 +607,13 @@ export const staticSourceData: SourceDataItem[] = [
{
name: SOURCE_NAMES.SHAREPOINT,
serviceType: 'share_point',
categories: [
SOURCE_CATEGORIES.FILE_SHARING,
SOURCE_CATEGORIES.STORAGE,
SOURCE_CATEGORIES.CLOUD,
SOURCE_CATEGORIES.MICROSOFT,
SOURCE_CATEGORIES.OFFICE_365,
],
configuration: {
isPublicKey: false,
hasOauthRedirect: true,
Expand Down Expand Up @@ -570,6 +642,13 @@ export const staticSourceData: SourceDataItem[] = [
name: SOURCE_NAMES.SHAREPOINT_CONNECTOR_PACKAGE,
serviceType: 'external',
baseServiceType: 'share_point',
categories: [
SOURCE_CATEGORIES.FILE_SHARING,
SOURCE_CATEGORIES.STORAGE,
SOURCE_CATEGORIES.CLOUD,
SOURCE_CATEGORIES.MICROSOFT,
SOURCE_CATEGORIES.OFFICE_365,
],
configuration: {
isPublicKey: false,
hasOauthRedirect: true,
Expand Down Expand Up @@ -619,6 +698,12 @@ export const staticSourceData: SourceDataItem[] = [
{
name: SOURCE_NAMES.SLACK,
serviceType: 'slack',
categories: [
SOURCE_CATEGORIES.COLLABORATION,
SOURCE_CATEGORIES.COMMUNICATION,
SOURCE_CATEGORIES.INSTANT_MESSAGING,
SOURCE_CATEGORIES.CHAT,
],
configuration: {
isPublicKey: false,
hasOauthRedirect: true,
Expand All @@ -639,7 +724,7 @@ export const staticSourceData: SourceDataItem[] = [
{
name: SOURCE_NAMES.TEAMS,
categories: [
SOURCE_CATEGORIES.COMMUNICATIONS,
SOURCE_CATEGORIES.COMMUNICATION,
SOURCE_CATEGORIES.PRODUCTIVITY,
SOURCE_CATEGORIES.MICROSOFT,
],
Expand All @@ -658,6 +743,13 @@ export const staticSourceData: SourceDataItem[] = [
{
name: SOURCE_NAMES.ZENDESK,
serviceType: 'zendesk',
categories: [
SOURCE_CATEGORIES.HELP,
SOURCE_CATEGORIES.CUSTOMER_SERVICE,
SOURCE_CATEGORIES.CUSTOMER_RELATIONSHIP_MANAGEMENT,
SOURCE_CATEGORIES.TICKETING,
SOURCE_CATEGORIES.HELPDESK,
],
configuration: {
isPublicKey: false,
hasOauthRedirect: true,
Expand All @@ -684,7 +776,7 @@ export const staticSourceData: SourceDataItem[] = [
},
{
name: SOURCE_NAMES.ZOOM,
categories: [SOURCE_CATEGORIES.COMMUNICATIONS, SOURCE_CATEGORIES.PRODUCTIVITY],
categories: [SOURCE_CATEGORIES.COMMUNICATION, SOURCE_CATEGORIES.PRODUCTIVITY],
serviceType: 'custom',
baseServiceType: 'zoom',
configuration: {
Expand Down

0 comments on commit c993ff2

Please sign in to comment.