- People -
-- Data-in: Existing profiles will automatically be enriched with data - points - from HubSpot every 8 hours. - Data-out: To send data to HubSpot, use Automations or select - people manually. -
-- {{ getLabel(props.field as string) }} -
-- No matching properties -
-- The following attributes, auto-generated by LFX, are only mapped into HubSpot, - and won't be overwritten if their value is updated on your HubSpot account. -
-- Define which LFX core elements can be synced to or from HubSpot. -
-- Data-in: Existing profiles will automatically be enriched with data - points - from HubSpot every 8 hours. - Data-out: To send data to HubSpot, use Automations or select - people manually. -
-- Data-in: Existing organizations will automatically be enriched with - data points from HubSpot companies every 8 hours. - Data-out: To send organizations to HubSpot, use Automations or select - organizations manually. -
-- Select and map which attributes and properties to sync between LFX and HubSpot. -
-import emoji from 'node-emoji'; -import { CrowdIntegrations } from '@/integrations/integrations-config'; export default { name: 'AppActivityContent', @@ -175,13 +159,6 @@ export default { displayShowMore: false, }; }, - computed: { - platformConfig() { - return CrowdIntegrations.getConfig( - this.activity.platform, - ); - }, - }, mounted() { if (this.showMore) { if (this.$refs.body) { diff --git a/frontend/src/modules/activity/components/activity-item.vue b/frontend/src/modules/activity/components/activity-item.vue index f2506d83e8..e3a3140a80 100644 --- a/frontend/src/modules/activity/components/activity-item.vue +++ b/frontend/src/modules/activity/components/activity-item.vue @@ -137,7 +137,6 @@ - diff --git a/frontend/src/modules/conversation/components/conversation-details.vue b/frontend/src/modules/conversation/components/conversation-details.vue index 6c758aa0a7..f63f201ba7 100644 --- a/frontend/src/modules/conversation/components/conversation-details.vue +++ b/frontend/src/modules/conversation/components/conversation-details.vue @@ -157,7 +157,6 @@ - diff --git a/frontend/src/modules/conversation/components/conversation-item.vue b/frontend/src/modules/conversation/components/conversation-item.vue index 65dfaf64c6..bc87a8b0a6 100644 --- a/frontend/src/modules/conversation/components/conversation-item.vue +++ b/frontend/src/modules/conversation/components/conversation-item.vue @@ -101,7 +101,6 @@ diff --git a/frontend/src/modules/integration/components/integration-progress.vue b/frontend/src/modules/integration/components/integration-progress.vue index 32ea5fe807..0c9c88c822 100644 --- a/frontend/src/modules/integration/components/integration-progress.vue +++ b/frontend/src/modules/integration/components/integration-progress.vue @@ -36,7 +36,7 @@ import LfSpinner from '@/ui-kit/spinner/Spinner.vue'; import { IntegrationProgress, IntegrationProgressPart } from '@/modules/integration/types/IntegrationProgress'; import { computed } from 'vue'; -import { CrowdIntegrations } from '@/integrations/integrations-config'; +import { lfIntegrations } from '@/config/integrations'; const props = defineProps<{ progress: IntegrationProgress | null, @@ -55,7 +55,7 @@ const showProgress = computed(() => { if (!props.progress) { return false; } - return CrowdIntegrations.getConfig(props.progress.platform)?.showProgress || false; + return lfIntegrations[props.progress.platform]?.showProgress || false; }); const parts = computed(() => { diff --git a/frontend/src/modules/integration/helpers/integration-progress-notification.ts b/frontend/src/modules/integration/helpers/integration-progress-notification.ts index 9e23a3d0c0..b73fec5b67 100644 --- a/frontend/src/modules/integration/helpers/integration-progress-notification.ts +++ b/frontend/src/modules/integration/helpers/integration-progress-notification.ts @@ -2,10 +2,10 @@ import { createVNode, h } from 'vue'; import AppIntegrationProgress from '@/modules/integration/components/integration-progress.vue'; import AppIntegrationProgressWrapper from '@/modules/integration/components/integration-progress-wrapper.vue'; import { ElNotification } from 'element-plus'; -import { CrowdIntegrations } from '@/integrations/integrations-config'; +import { lfIntegrations } from '@/config/integrations'; export const showIntegrationProgressNotification = (platform, segmentId) => { - const label = CrowdIntegrations.getConfig(platform)?.name; + const label = lfIntegrations[platform]?.name; const defaultSlot = ({ progress }) => { const integrationProgress = (progress || []).find((p) => p.platform === platform); const text = h('p', { diff --git a/frontend/src/modules/integration/integration-store.js b/frontend/src/modules/integration/integration-store.js index d2e5693887..725978dba8 100644 --- a/frontend/src/modules/integration/integration-store.js +++ b/frontend/src/modules/integration/integration-store.js @@ -1,9 +1,9 @@ import { IntegrationService } from '@/modules/integration/integration-service'; import Errors from '@/shared/error/errors'; import { router } from '@/router'; -import { CrowdIntegrations } from '@/integrations/integrations-config'; import { isCurrentDateAfterGivenWorkingDays } from '@/utils/date'; import { showIntegrationProgressNotification } from '@/modules/integration/helpers/integration-progress-notification'; +import { lfIntegrations } from '@/config/integrations'; import Message from '../../shared/message/message'; export const ERROR_BANNER_WORKING_DAYS_DISPLAY = 3; @@ -32,23 +32,17 @@ export default { findByPlatform: (state, getters) => (platform) => getters.array.find((w) => w.platform === platform), list: (state) => Object.keys(state.byId).reduce((acc, key) => { - const integrationJsonData = CrowdIntegrations.getConfig( - state.byId[key].platform, - ); acc[key] = { ...state.byId[key], - ...integrationJsonData, + ...lfIntegrations[state.byId[key].platform], }; return acc; }, {}), listByPlatform: (state) => Object.keys(state.byId).reduce((acc, key) => { - const integrationJsonData = CrowdIntegrations.getConfig( - state.byId[key].platform, - ); acc[state.byId[key].platform] = { ...state.byId[key], - ...integrationJsonData, + ...lfIntegrations[state.byId[key].platform], }; return acc; }, {}), diff --git a/frontend/src/modules/lf/config/audit-logs/log-rendering/integrations-connect.ts b/frontend/src/modules/lf/config/audit-logs/log-rendering/integrations-connect.ts index c024dd4715..c318db1cf4 100644 --- a/frontend/src/modules/lf/config/audit-logs/log-rendering/integrations-connect.ts +++ b/frontend/src/modules/lf/config/audit-logs/log-rendering/integrations-connect.ts @@ -1,18 +1,18 @@ import { LogRenderingConfig } from '@/modules/lf/config/audit-logs/log-rendering/index'; -import { CrowdIntegrations } from '@/integrations/integrations-config'; +import { lfIdentities } from '@/config/identities'; const integrationsConnect: LogRenderingConfig = { label: 'Integration connected', changes: () => null, description: (log) => { - const integration = CrowdIntegrations.getConfig(log.newState?.platform || log.oldState?.platform); + const integration = lfIdentities[log.newState?.platform || log.oldState?.platform]; if (integration) { return `Integration: ${integration.name}`; } return ''; }, properties: (log) => { - const integration = CrowdIntegrations.getConfig(log.newState?.platform || log.oldState?.platform); + const integration = lfIdentities[log.newState?.platform || log.oldState?.platform]; if (integration) { return [{ label: 'Integration', diff --git a/frontend/src/modules/lf/config/audit-logs/log-rendering/integrations-reconnect.ts b/frontend/src/modules/lf/config/audit-logs/log-rendering/integrations-reconnect.ts index fe4a2a5201..15c15ec57b 100644 --- a/frontend/src/modules/lf/config/audit-logs/log-rendering/integrations-reconnect.ts +++ b/frontend/src/modules/lf/config/audit-logs/log-rendering/integrations-reconnect.ts @@ -1,18 +1,18 @@ import { LogRenderingConfig } from '@/modules/lf/config/audit-logs/log-rendering/index'; -import { CrowdIntegrations } from '@/integrations/integrations-config'; +import { lfIdentities } from '@/config/identities'; const integrationsReconnect: LogRenderingConfig = { label: 'Integration re-connected', changes: () => null, description: (log) => { - const integration = CrowdIntegrations.getConfig(log.newState?.platform || log.oldState?.platform); + const integration = lfIdentities[log.newState?.platform || log.oldState?.platform]; if (integration) { return `Integration: ${integration.name}`; } return ''; }, properties: (log) => { - const integration = CrowdIntegrations.getConfig(log.newState?.platform || log.oldState?.platform); + const integration = lfIdentities[log.newState?.platform || log.oldState?.platform]; if (integration) { return [{ label: 'Integration', diff --git a/frontend/src/modules/lf/config/audit-logs/log-rendering/members-edit-identities.ts b/frontend/src/modules/lf/config/audit-logs/log-rendering/members-edit-identities.ts index faeab19920..887410c466 100644 --- a/frontend/src/modules/lf/config/audit-logs/log-rendering/members-edit-identities.ts +++ b/frontend/src/modules/lf/config/audit-logs/log-rendering/members-edit-identities.ts @@ -1,5 +1,5 @@ import { LogRenderingConfig } from '@/modules/lf/config/audit-logs/log-rendering/index'; -import { CrowdIntegrations } from '@/integrations/integrations-config'; +import { lfIdentities } from '@/config/identities'; const membersEditIdentities: LogRenderingConfig = { label: 'Profile identities updated', @@ -11,7 +11,7 @@ const membersEditIdentities: LogRenderingConfig = { Object.keys(log.oldState).forEach((platform) => { log.oldState[platform].forEach((identity) => { if (!log.newState[platform] || log.newState[platform].length === 0 || !log.newState[platform].includes(identity)) { - removals.push(`${CrowdIntegrations.getConfig(platform)?.name || platform} username: ${identity}`); + removals.push(`${lfIdentities[platform]?.name || platform} username: ${identity}`); } }); }); @@ -20,7 +20,7 @@ const membersEditIdentities: LogRenderingConfig = { Object.keys(log.newState).forEach((platform) => { log.newState[platform].forEach((identity) => { if (!log.oldState[platform] || !log.oldState[platform].includes(identity)) { - additions.push(`${CrowdIntegrations.getConfig(platform)?.name || platform} username: ${identity}`); + additions.push(`${lfIdentities[platform]?.name || platform} username: ${identity}`); } }); }); diff --git a/frontend/src/modules/lf/config/audit-logs/log-rendering/organizations-edit-identities.ts b/frontend/src/modules/lf/config/audit-logs/log-rendering/organizations-edit-identities.ts index de68323805..79446358e7 100644 --- a/frontend/src/modules/lf/config/audit-logs/log-rendering/organizations-edit-identities.ts +++ b/frontend/src/modules/lf/config/audit-logs/log-rendering/organizations-edit-identities.ts @@ -1,5 +1,5 @@ import { LogRenderingConfig } from '@/modules/lf/config/audit-logs/log-rendering/index'; -import { CrowdIntegrations } from '@/integrations/integrations-config'; +import { lfIdentities } from '@/config/identities'; const organizationsEditIdentities: LogRenderingConfig = { label: 'Organization identities updated', @@ -27,8 +27,8 @@ const organizationsEditIdentities: LogRenderingConfig = { }); return { - additions: (additions || []).map((p) => `${CrowdIntegrations.getConfig(p.platform)?.name || p.platform}: ${p.name}`), - removals: (removals || []).map((p) => `${CrowdIntegrations.getConfig(p.platform)?.name || p.platform}: ${p.name}`), + additions: (additions || []).map((p) => `${lfIdentities[p.platform]?.name || p.platform}: ${p.name}`), + removals: (removals || []).map((p) => `${lfIdentities[p.platform]?.name || p.platform}: ${p.name}`), changes: [], }; }, diff --git a/frontend/src/modules/member/components/list/columns/member-list-emails.vue b/frontend/src/modules/member/components/list/columns/member-list-emails.vue index fabd492d5f..38df7fdf99 100644 --- a/frontend/src/modules/member/components/list/columns/member-list-emails.vue +++ b/frontend/src/modules/member/components/list/columns/member-list-emails.vue @@ -115,7 +115,7 @@ import { Member } from '@/modules/member/types/Member'; import { computed } from 'vue'; import useMemberIdentities from '@/shared/modules/identities/config/useMemberIdentities'; import memberOrder from '@/shared/modules/identities/config/identitiesOrder/member'; -import { CrowdIntegrations } from '@/integrations/integrations-config'; +import { lfIdentities } from '@/config/identities'; const props = defineProps<{ member: Member @@ -160,7 +160,7 @@ const getPlatformLabel = (platforms: string[]) => platforms if (platform === 'enrichment') { return 'Enrichment'; } - return CrowdIntegrations.getConfig(platform)?.name || platform; + return lfIdentities[platform]?.name || platform; }).join(', '); const trackEmailClick = () => { diff --git a/frontend/src/modules/member/components/member-dropdown-content.vue b/frontend/src/modules/member/components/member-dropdown-content.vue index 0c1c01ffec..3b99c6b514 100644 --- a/frontend/src/modules/member/components/member-dropdown-content.vue +++ b/frontend/src/modules/member/components/member-dropdown-content.vue @@ -61,40 +61,6 @@ Merge profile - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - props.member.attributes?.syncRemote?.hubspot || false, -// ); - -// const isHubspotConnected = computed(() => { -// const hubspot = CrowdIntegrations.getMappedConfig('hubspot', store); -// const enabledFor = hubspot.settings?.enabledFor || []; -// -// return ( -// hubspot.status === 'done' && enabledFor.includes(HubspotEntity.MEMBERS) -// ); -// }); -// -// const isHubspotDisabledForMember = computed( -// () => (props.member.identities || []).filter((i) => i.type === 'email').length === 0, -// ); - -// const isHubspotActionDisabled = computed(() => !isHubspotConnected.value || isHubspotDisabledForMember.value); - const isFindingGitHubDisabled = computed(() => ( !!props.member.username?.github )); diff --git a/frontend/src/modules/member/components/member-last-activity.vue b/frontend/src/modules/member/components/member-last-activity.vue index ad1a9b48ba..bc92d4d67f 100644 --- a/frontend/src/modules/member/components/member-last-activity.vue +++ b/frontend/src/modules/member/components/member-last-activity.vue @@ -25,8 +25,8 @@ diff --git a/frontend/src/modules/organization/components/edit/identity/organization-identity-add.vue b/frontend/src/modules/organization/components/edit/identity/organization-identity-add.vue index 7890a06493..dfd9ff3090 100644 --- a/frontend/src/modules/organization/components/edit/identity/organization-identity-add.vue +++ b/frontend/src/modules/organization/components/edit/identity/organization-identity-add.vue @@ -24,8 +24,8 @@ @@ -102,7 +102,6 @@ import { computed, reactive, ref } from 'vue'; import LfButton from '@/ui-kit/button/Button.vue'; import LfIconOld from '@/ui-kit/icon/IconOld.vue'; import LfInput from '@/ui-kit/input/Input.vue'; -import { CrowdIntegrations } from '@/integrations/integrations-config'; import Message from '@/shared/message/message'; import pluralize from 'pluralize'; import useVuelidate from '@vuelidate/core'; @@ -118,6 +117,7 @@ import { Platform } from '@/shared/modules/platform/types/Platform'; import LfOrganizationDetailsIdentityAddDropdown from '@/modules/organization/components/details/identity/organization-details-identity-add-dropdown.vue'; import { required } from '@vuelidate/validators'; +import { lfIdentities } from '@/config/identities'; const props = defineProps<{ modelValue: boolean, @@ -160,8 +160,6 @@ const isModalOpen = computed@@ -37,11 +37,11 @@ />
- {{ platform(identity.platform)?.orgUrlPrefix || platform(identity.platform)?.urlPrefix }} + {{ lfIdentities[identity.platform]?.organization?.urlPrefix }}
({ }, }); -const platform = (platform: string) => CrowdIntegrations.getConfig(platform); - const addIdentities = () => { sending.value = true; updateOrganization(props.organization.id, { diff --git a/frontend/src/modules/organization/components/edit/identity/organization-identity-edit.vue b/frontend/src/modules/organization/components/edit/identity/organization-identity-edit.vue index 31b8070659..23b84afc0e 100644 --- a/frontend/src/modules/organization/components/edit/identity/organization-identity-edit.vue +++ b/frontend/src/modules/organization/components/edit/identity/organization-identity-edit.vue @@ -28,11 +28,11 @@ />
- {{ platform?.orgUrlPrefix || platform?.urlPrefix }} + {{ platform?.organization?.urlPrefix }}
- {{ identity.prefix }} + {{ lfIdentities[identity.platform]?.organization?.urlPrefix }}