多维表格
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

443 lines
12 KiB

import type { CSSProperties, FunctionalComponent, SVGAttributes } from 'nuxt/dist/app/compat/capi'
import { ClientType, IntegrationCategoryType, SyncDataType } from '~/lib/enums'
export interface IntegrationItemType {
title: string
icon: FunctionalComponent<SVGAttributes, {}, any, {}>
value: SyncDataType | ClientType
categories: IntegrationCategoryType[]
isAvailable?: boolean
iconStyle?: CSSProperties
isOssOnly?: boolean
}
export interface IntegrationCategoryItemType {
title: string
subtitle: string
value: IntegrationCategoryType
isAvailable?: boolean
teleEventName?: IntegrationCategoryType
}
export const integrationCategories: IntegrationCategoryItemType[] = [
{
title: 'labels.database',
subtitle: 'objects.integrationCategories.databaseSubtitle',
value: IntegrationCategoryType.DATABASE,
isAvailable: true,
},
{
title: 'objects.integrationCategories.ai',
subtitle: 'objects.integrationCategories.ai',
value: IntegrationCategoryType.AI,
},
{
title: 'objects.integrationCategories.communication',
subtitle: 'objects.integrationCategories.communicationSubtitle',
value: IntegrationCategoryType.COMMUNICATION,
},
{
title: 'objects.integrationCategories.spreadSheet',
subtitle: 'objects.integrationCategories.spreadSheetSubtitle',
value: IntegrationCategoryType.SPREAD_SHEET,
teleEventName: IntegrationCategoryType.OTHERS,
},
{
title: 'objects.integrationCategories.projectManagement',
subtitle: 'objects.integrationCategories.projectManagementSubtitle',
value: IntegrationCategoryType.PROJECT_MANAGEMENT,
},
{
title: 'objects.integrationCategories.ticketing',
subtitle: 'objects.integrationCategories.ticketingSubtitle',
value: IntegrationCategoryType.TICKETING,
},
{
title: 'objects.integrationCategories.crm',
subtitle: 'objects.integrationCategories.crmSubtitle',
value: IntegrationCategoryType.CRM,
},
{
title: 'objects.integrationCategories.marketing',
subtitle: 'objects.integrationCategories.marketingSubtitle',
value: IntegrationCategoryType.MARKETING,
},
{
title: 'objects.integrationCategories.ats',
subtitle: 'objects.integrationCategories.atsSubtitle',
value: IntegrationCategoryType.ATS,
},
{
title: 'objects.integrationCategories.development',
subtitle: 'objects.integrationCategories.developmentSubtitle',
value: IntegrationCategoryType.DEVELOPMENT,
},
{
title: 'objects.integrationCategories.finance',
subtitle: 'objects.integrationCategories.financeSubtitle',
value: IntegrationCategoryType.FINANCE,
},
{
title: 'labels.storage',
subtitle: 'objects.integrationCategories.storageSubtitle',
value: IntegrationCategoryType.STORAGE,
},
{
title: 'objects.integrationCategories.others',
subtitle: 'objects.integrationCategories.othersSubtitle',
value: IntegrationCategoryType.OTHERS,
},
]
export const allIntegrations: IntegrationItemType[] = [
// Database
{
title: 'objects.syncData.mysql',
value: ClientType.MYSQL,
icon: iconMap.mysql,
categories: [IntegrationCategoryType.DATABASE],
isAvailable: true,
iconStyle: {
width: '32px',
height: '32px',
},
},
{
title: 'objects.syncData.postgreSQL',
value: ClientType.PG,
icon: iconMap.postgreSql,
categories: [IntegrationCategoryType.DATABASE],
isAvailable: true,
},
{
title: 'objects.syncData.sqlite',
value: ClientType.SQLITE,
icon: iconMap.sqlServer,
categories: [IntegrationCategoryType.DATABASE],
isAvailable: true,
isOssOnly: true,
},
{
title: 'objects.syncData.snowflake',
value: ClientType.SNOWFLAKE,
icon: iconMap.snowflake,
categories: [IntegrationCategoryType.DATABASE],
},
{
title: 'objects.syncData.dataBricks',
value: ClientType.DATABRICKS,
icon: iconMap.dataBricks,
categories: [IntegrationCategoryType.DATABASE],
},
{
title: 'objects.syncData.mssqlServer',
value: ClientType.MSSQL,
icon: iconMap.mssqlServer,
categories: [IntegrationCategoryType.DATABASE],
},
{
title: 'objects.syncData.oracle',
value: SyncDataType.ORACLE,
icon: iconMap.oracle,
categories: [IntegrationCategoryType.DATABASE],
},
// AI
{
title: 'objects.syncData.openai',
value: SyncDataType.OPENAI,
icon: iconMap.openai,
categories: [IntegrationCategoryType.AI],
},
{
title: 'objects.syncData.claude',
value: SyncDataType.CLAUDE,
icon: iconMap.claude,
categories: [IntegrationCategoryType.AI],
},
{
title: 'objects.syncData.ollama',
value: SyncDataType.OLLAMA,
icon: iconMap.ollama,
categories: [IntegrationCategoryType.AI],
},
{
title: 'objects.syncData.groq',
value: SyncDataType.GROQ,
icon: iconMap.groq,
categories: [IntegrationCategoryType.AI],
},
// Communication
{
title: 'general.slack',
value: SyncDataType.SLACK,
icon: iconMap.slack,
categories: [IntegrationCategoryType.COMMUNICATION],
iconStyle: {
width: '32px',
height: '32px',
},
},
{
title: 'general.discord',
value: SyncDataType.DISCORD,
icon: iconMap.ncDiscord,
categories: [IntegrationCategoryType.COMMUNICATION],
iconStyle: {
width: '32px',
height: '32px',
},
},
{
title: 'general.twilio',
value: SyncDataType.TWILLO,
icon: iconMap.twilio,
categories: [IntegrationCategoryType.COMMUNICATION],
iconStyle: {
width: '32px',
height: '32px',
},
},
{
title: 'objects.syncData.microsoftOutlook',
value: SyncDataType.MICROSOFT_OUTLOOK,
icon: iconMap.microsoftOutlook,
categories: [IntegrationCategoryType.COMMUNICATION],
},
{
title: 'general.microsoftTeams',
value: SyncDataType.MICROSOFT_TEAMS,
icon: iconMap.microsoftTeams,
categories: [IntegrationCategoryType.COMMUNICATION],
iconStyle: {
width: '32px',
height: '32px',
},
},
{
title: 'objects.syncData.gmail',
value: SyncDataType.GMAIL,
icon: iconMap.gmail,
categories: [IntegrationCategoryType.COMMUNICATION],
},
{
title: 'objects.syncData.telegram',
value: SyncDataType.TELEGRAM,
icon: iconMap.telegram,
categories: [IntegrationCategoryType.COMMUNICATION],
},
{
title: 'objects.syncData.whatsapp',
value: SyncDataType.WHATSAPP,
icon: iconMap.whatsappSolid,
categories: [IntegrationCategoryType.COMMUNICATION],
iconStyle: {
width: '32px',
height: '32px',
},
},
// Project Management
{
title: 'objects.syncData.asana',
value: SyncDataType.ASANA,
icon: iconMap.asana,
categories: [IntegrationCategoryType.PROJECT_MANAGEMENT],
},
{
title: 'objects.syncData.jira',
value: SyncDataType.JIRA,
icon: iconMap.jira,
categories: [IntegrationCategoryType.PROJECT_MANAGEMENT, IntegrationCategoryType.TICKETING],
},
{
title: 'objects.syncData.miro',
value: SyncDataType.MIRO,
icon: iconMap.miro,
categories: [IntegrationCategoryType.PROJECT_MANAGEMENT],
},
{
title: 'objects.syncData.trello',
value: SyncDataType.TRELLO,
icon: iconMap.trello,
categories: [IntegrationCategoryType.PROJECT_MANAGEMENT],
},
// CRM
{
title: 'objects.syncData.salesforce',
value: SyncDataType.SALESFORCE,
icon: iconMap.salesforce,
categories: [IntegrationCategoryType.CRM],
},
{
title: 'objects.syncData.hubspot',
value: SyncDataType.HUBSPOT,
icon: iconMap.hubspot,
categories: [IntegrationCategoryType.CRM],
},
{
title: 'objects.syncData.pipedrive',
value: SyncDataType.PIPEDRIVE,
icon: iconMap.pipedrive,
categories: [IntegrationCategoryType.CRM],
},
{
title: 'objects.syncData.microsoftDynamics365',
value: SyncDataType.MICROSOFT_DYNAMICS_365,
icon: iconMap.microsoftDynamics365,
categories: [IntegrationCategoryType.CRM],
},
{
title: 'objects.syncData.zohoCrm',
value: SyncDataType.ZOHO_CRM,
icon: iconMap.zohoCrm,
categories: [IntegrationCategoryType.CRM],
},
// Marketing
{
title: 'objects.syncData.hubspot',
value: SyncDataType.HUBSPOT,
icon: iconMap.hubspot,
categories: [IntegrationCategoryType.MARKETING],
},
{
title: 'objects.syncData.mailchimp',
value: SyncDataType.MAILCHIMP,
icon: iconMap.mailchimp,
categories: [IntegrationCategoryType.MARKETING],
},
{
title: 'objects.syncData.surveyMonkey',
value: SyncDataType.SURVEYMONKEY,
icon: iconMap.surveyMonkey,
categories: [IntegrationCategoryType.MARKETING],
},
{
title: 'objects.syncData.typeform',
value: SyncDataType.TYPEFORM,
icon: iconMap.typeform,
categories: [IntegrationCategoryType.MARKETING],
},
// ATS
{
title: 'objects.syncData.workday',
value: SyncDataType.WORKDAY,
icon: iconMap.workday,
categories: [IntegrationCategoryType.ATS],
},
{
title: 'objects.syncData.greenhouse',
value: SyncDataType.GREENHOUSE,
icon: iconMap.greenhouse,
categories: [IntegrationCategoryType.ATS],
},
{
title: 'objects.syncData.lever',
value: SyncDataType.LEVER,
icon: iconMap.lever,
categories: [IntegrationCategoryType.ATS],
},
// Development
{
title: 'objects.syncData.bitbucket',
value: SyncDataType.BITBUCKET,
icon: iconMap.bitBucket,
categories: [IntegrationCategoryType.DEVELOPMENT],
},
{
title: 'objects.syncData.github',
value: SyncDataType.GITHUB,
icon: iconMap.githubSolid,
categories: [IntegrationCategoryType.DEVELOPMENT],
},
{
title: 'objects.syncData.gitlab',
value: SyncDataType.GITLAB,
icon: iconMap.gitlab,
categories: [IntegrationCategoryType.DEVELOPMENT],
},
// Finance
{
title: 'objects.syncData.stripe',
value: SyncDataType.STRIPE,
icon: iconMap.stripe,
categories: [IntegrationCategoryType.FINANCE],
},
{
title: 'objects.syncData.quickbooks',
value: SyncDataType.QUICKBOOKS,
icon: iconMap.quickbooks,
categories: [IntegrationCategoryType.FINANCE],
},
// Ticketing
{
title: 'objects.syncData.intercom',
value: SyncDataType.INTERCOM,
icon: iconMap.intercom,
categories: [IntegrationCategoryType.TICKETING],
},
{
title: 'objects.syncData.zendesk',
value: SyncDataType.ZENDESK,
icon: iconMap.zendesk,
categories: [IntegrationCategoryType.TICKETING],
},
// Storage
{ title: 'objects.syncData.box', value: SyncDataType.BOX, icon: iconMap.box, categories: [IntegrationCategoryType.STORAGE] },
{
title: 'objects.syncData.dropbox',
value: SyncDataType.DROPBOX,
icon: iconMap.dropbox,
categories: [IntegrationCategoryType.STORAGE],
},
{
title: 'objects.syncData.googleDrive',
value: SyncDataType.GOOGLE_DRIVE,
icon: iconMap.googleDrive,
categories: [IntegrationCategoryType.STORAGE],
},
Nc feat: header revamp (#9204) * fix(nc-gui): update topbar breadcrumb divider * feat(nc-gui): custom list component setup * fix(nc-gui): update reload view data tooltip * feat(nc-gui): custom list component * feat(nc-gui): add table list menu * fix(nc-gui): small changes * fix(nc-gui): add bases list dropdown * fix(nc-gui): show chevron icon in mobile view * feat(nc-gui): add view list dropdown in topbar * fix(nc-gui): auto scroll selected list option on open dropdown * feat(nc-gui): add typedocs for each fun from custom list component * chore(nc-gui): add typedocs for new functions * fix(nc-gui): view search issue on default view * fix(nc-gui): reset selected option hover state on search input * fix(nc-gui): font weight issue * fix(nc-gui): show reload data topbar option * fix(nc-gui): change view action menu position * fix(nc-gui): font weight issue * feat(nc-gui): create new table/view from topbar * fix(nc-gui): update other page headers * fix(nc-gui): project view header * fix(nc-gui): update admin panel workspaces page header * fix(nc-gui): admin panel base/workspace user page header * fix(nc-gui): admin panel scroll issue * fix(nc-gui): update project home page * fix(nc-gui): table list scroll issue * chore(nc-gui): lint * fix(nc-gui): reset breadcrumb btn hover state on open dropdown * fix(nc-gui): review changes * fix(nc-gui): use slash icon instead of text * fix(nc-gui): pr review changes * fix(nc-gui): details tab height issue * fix(nc-gui): add user account pages breadcrumb * fix(nc-gui): hide rename view option * fix(nc-gui): disable scrollIntoView on base rename * fix(nc-gui): on rename view select text * fix(nc-gui): user menu overflow issue if sidebar baselist is scrollable * feat(nc-gui): use virtual scrolling for NcList component * fix(nc-gui): reduce chevron icon opacity * chore(nc-gui): lint * fix(nc-gui): ai review changes * fix(nc-gui): view rename input focus issue * fix(nc-gui): topbar width issue * fix(nc-gui): udpate toolbar height * fix(nc-gui): update chevron icon from breadcrumb * fix(nc-gui): update breadcrumb icon size * fix(nc-gui): add min width for breadcrumb * fix(nc-gui): add topbar bottom border * fix(nc-gui): details tab heigth and alignment issue * fix(nc-gui): hide basename and show only icon * fix(nc-gui): update NcList component * fix(nc-gui): update admin panel header * fix(nc-gui): add header in account settings pages * fix(nc-gui): add account pages header oss * fix(nc-gui): udpate max width * chore(nc-gui): lint * fix(nc-gui(: reduce topbar top padding * fix(nc-gui): typo error * fix(nc-gui): review changes * fix(nc-gui): review changes * fix(nc-gui): slash icon conflict * fix(nc-gui): review changes * fix(nc-gui): remove chevron icon & add list wrapper div to control height * fix(nc-gui): ncList keyboard navigation issue * chore(nc-gui): lint
4 months ago
// Spreadsheet
{
title: 'objects.syncData.appleNumbers',
value: SyncDataType.APPLE_NUMBERS,
icon: iconMap.appleSolid,
categories: [IntegrationCategoryType.SPREAD_SHEET],
},
{
title: 'objects.syncData.microsoftExcel',
value: SyncDataType.MICROSOFT_EXCEL,
icon: iconMap.microsoftExcel,
categories: [IntegrationCategoryType.SPREAD_SHEET],
},
{
title: 'objects.syncData.googleSheets',
value: SyncDataType.GOOGLE_SHEETS,
icon: iconMap.googleSheet,
categories: [IntegrationCategoryType.SPREAD_SHEET],
},
// Others
// {
// title: 'objects.syncData.googleCalendar',
// value: SyncDataType.GOOGLE_CALENDAR,
// icon: iconMap.googleCalendar,
// categories: [IntegrationCategoryType.OTHERS],
// },
]
export const allIntegrationsMapByValue = allIntegrations.reduce((acc, curr) => {
acc[curr.value] = curr
return acc
}, {} as Record<string, IntegrationItemType>)