Fix mocks for unlogged users (#6376)
This commit is contained in:
@ -7,8 +7,9 @@ export const query = gql`
|
||||
createPeople(data: $data, upsert: $upsert) {
|
||||
__typename
|
||||
xLink {
|
||||
label
|
||||
url
|
||||
primaryLinkUrl
|
||||
primaryLinkLabel
|
||||
secondaryLinks
|
||||
}
|
||||
id
|
||||
createdAt
|
||||
@ -21,8 +22,9 @@ export const query = gql`
|
||||
}
|
||||
phone
|
||||
linkedinLink {
|
||||
label
|
||||
url
|
||||
primaryLinkUrl
|
||||
primaryLinkLabel
|
||||
secondaryLinks
|
||||
}
|
||||
updatedAt
|
||||
avatarUrl
|
||||
@ -44,8 +46,9 @@ export const variables = { data };
|
||||
export const responseData = {
|
||||
__typeName: '',
|
||||
xLink: {
|
||||
label: '',
|
||||
url: '',
|
||||
primaryLinkUrl: '',
|
||||
primaryLinkLabel: '',
|
||||
secondaryLinks: null,
|
||||
},
|
||||
createdAt: '',
|
||||
city: '',
|
||||
@ -57,8 +60,9 @@ export const responseData = {
|
||||
},
|
||||
phone: '',
|
||||
linkedinLink: {
|
||||
label: '',
|
||||
url: '',
|
||||
primaryLinkUrl: '',
|
||||
primaryLinkLabel: '',
|
||||
secondaryLinks: null,
|
||||
},
|
||||
updatedAt: '',
|
||||
avatarUrl: '',
|
||||
|
||||
@ -5,8 +5,9 @@ export const query = gql`
|
||||
createPerson(data: $input) {
|
||||
__typename
|
||||
xLink {
|
||||
label
|
||||
url
|
||||
primaryLinkUrl
|
||||
primaryLinkLabel
|
||||
secondaryLinks
|
||||
}
|
||||
id
|
||||
createdAt
|
||||
@ -19,8 +20,9 @@ export const query = gql`
|
||||
}
|
||||
phone
|
||||
linkedinLink {
|
||||
label
|
||||
url
|
||||
primaryLinkUrl
|
||||
primaryLinkLabel
|
||||
secondaryLinks
|
||||
}
|
||||
updatedAt
|
||||
avatarUrl
|
||||
@ -34,8 +36,9 @@ export const responseData = {
|
||||
edges: [],
|
||||
},
|
||||
xLink: {
|
||||
label: '',
|
||||
url: '',
|
||||
primaryLinkUrl: '',
|
||||
primaryLinkLabel: '',
|
||||
secondaryLinks: null,
|
||||
},
|
||||
pointOfContactForOpportunities: {
|
||||
edges: [],
|
||||
@ -62,8 +65,9 @@ export const responseData = {
|
||||
},
|
||||
phone: '',
|
||||
linkedinLink: {
|
||||
label: '',
|
||||
url: '',
|
||||
primaryLinkUrl: '',
|
||||
primaryLinkLabel: '',
|
||||
secondaryLinks: null,
|
||||
},
|
||||
updatedAt: '',
|
||||
avatarUrl: '',
|
||||
|
||||
@ -7,8 +7,9 @@ export const query = gql`
|
||||
executeQuickActionOnPerson(id: $idToExecuteQuickActionOn) {
|
||||
__typename
|
||||
xLink {
|
||||
label
|
||||
url
|
||||
primaryLinkUrl
|
||||
primaryLinkLabel
|
||||
secondaryLinks
|
||||
}
|
||||
id
|
||||
createdAt
|
||||
@ -21,8 +22,9 @@ export const query = gql`
|
||||
}
|
||||
phone
|
||||
linkedinLink {
|
||||
label
|
||||
url
|
||||
primaryLinkUrl
|
||||
primaryLinkLabel
|
||||
secondaryLinks
|
||||
}
|
||||
updatedAt
|
||||
avatarUrl
|
||||
|
||||
@ -10,8 +10,9 @@ export const query = gql`
|
||||
node {
|
||||
__typename
|
||||
xLink {
|
||||
label
|
||||
url
|
||||
primaryLinkUrl
|
||||
primaryLinkLabel
|
||||
secondaryLinks
|
||||
}
|
||||
id
|
||||
createdAt
|
||||
@ -24,8 +25,9 @@ export const query = gql`
|
||||
}
|
||||
phone
|
||||
linkedinLink {
|
||||
label
|
||||
url
|
||||
primaryLinkUrl
|
||||
primaryLinkLabel
|
||||
secondaryLinks
|
||||
}
|
||||
updatedAt
|
||||
avatarUrl
|
||||
|
||||
@ -38,8 +38,8 @@ export const query = gql`
|
||||
}
|
||||
}
|
||||
xLink {
|
||||
label
|
||||
url
|
||||
primaryLinkLabel
|
||||
primaryLinkUrl
|
||||
}
|
||||
id
|
||||
pointOfContactForOpportunities {
|
||||
@ -67,12 +67,12 @@ export const query = gql`
|
||||
__typename
|
||||
id
|
||||
xLink {
|
||||
label
|
||||
url
|
||||
primaryLinkLabel
|
||||
primaryLinkUrl
|
||||
}
|
||||
linkedinLink {
|
||||
label
|
||||
url
|
||||
primaryLinkLabel
|
||||
primaryLinkUrl
|
||||
}
|
||||
domainName
|
||||
annualRecurringRevenue {
|
||||
@ -152,8 +152,8 @@ export const query = gql`
|
||||
}
|
||||
phone
|
||||
linkedinLink {
|
||||
label
|
||||
url
|
||||
primaryLinkLabel
|
||||
primaryLinkUrl
|
||||
}
|
||||
updatedAt
|
||||
avatarUrl
|
||||
|
||||
@ -7,8 +7,9 @@ export const query = gql`
|
||||
person(filter: { id: { eq: $objectRecordId } }) {
|
||||
__typename
|
||||
xLink {
|
||||
label
|
||||
url
|
||||
primaryLinkUrl
|
||||
primaryLinkLabel
|
||||
secondaryLinks
|
||||
}
|
||||
id
|
||||
createdAt
|
||||
@ -21,8 +22,9 @@ export const query = gql`
|
||||
}
|
||||
phone
|
||||
linkedinLink {
|
||||
label
|
||||
url
|
||||
primaryLinkUrl
|
||||
primaryLinkLabel
|
||||
secondaryLinks
|
||||
}
|
||||
updatedAt
|
||||
avatarUrl
|
||||
|
||||
@ -5,8 +5,9 @@ export const query = gql`
|
||||
updatePerson(id: $idToUpdate, data: $input) {
|
||||
__typename
|
||||
xLink {
|
||||
label
|
||||
url
|
||||
primaryLinkUrl
|
||||
primaryLinkLabel
|
||||
secondaryLinks
|
||||
}
|
||||
id
|
||||
createdAt
|
||||
@ -19,8 +20,9 @@ export const query = gql`
|
||||
}
|
||||
phone
|
||||
linkedinLink {
|
||||
label
|
||||
url
|
||||
primaryLinkUrl
|
||||
primaryLinkLabel
|
||||
secondaryLinks
|
||||
}
|
||||
updatedAt
|
||||
avatarUrl
|
||||
@ -32,8 +34,9 @@ export const query = gql`
|
||||
const basePerson = {
|
||||
id: '36abbb63-34ed-4a16-89f5-f549ac55d0f9',
|
||||
xLink: {
|
||||
label: '',
|
||||
url: '',
|
||||
primaryLinkUrl: '',
|
||||
primaryLinkLabel: '',
|
||||
secondaryLinks: null,
|
||||
},
|
||||
createdAt: '',
|
||||
city: '',
|
||||
@ -45,8 +48,9 @@ const basePerson = {
|
||||
},
|
||||
phone: '',
|
||||
linkedinLink: {
|
||||
label: '',
|
||||
url: '',
|
||||
primaryLinkUrl: '',
|
||||
primaryLinkLabel: '',
|
||||
secondaryLinks: null,
|
||||
},
|
||||
updatedAt: '',
|
||||
avatarUrl: '',
|
||||
|
||||
@ -9,8 +9,9 @@ const expectedQueryTemplate = `
|
||||
createPeople(data: $data, upsert: $upsert) {
|
||||
__typename
|
||||
xLink {
|
||||
label
|
||||
url
|
||||
primaryLinkUrl
|
||||
primaryLinkLabel
|
||||
secondaryLinks
|
||||
}
|
||||
id
|
||||
createdAt
|
||||
@ -23,8 +24,9 @@ const expectedQueryTemplate = `
|
||||
}
|
||||
phone
|
||||
linkedinLink {
|
||||
label
|
||||
url
|
||||
primaryLinkUrl
|
||||
primaryLinkLabel
|
||||
secondaryLinks
|
||||
}
|
||||
updatedAt
|
||||
avatarUrl
|
||||
|
||||
@ -9,8 +9,9 @@ const expectedQueryTemplate = `
|
||||
createPerson(data: $input) {
|
||||
__typename
|
||||
xLink {
|
||||
label
|
||||
url
|
||||
primaryLinkUrl
|
||||
primaryLinkLabel
|
||||
secondaryLinks
|
||||
}
|
||||
id
|
||||
createdAt
|
||||
@ -23,8 +24,9 @@ const expectedQueryTemplate = `
|
||||
}
|
||||
phone
|
||||
linkedinLink {
|
||||
label
|
||||
url
|
||||
primaryLinkUrl
|
||||
primaryLinkLabel
|
||||
secondaryLinks
|
||||
}
|
||||
updatedAt
|
||||
avatarUrl
|
||||
|
||||
@ -9,8 +9,9 @@ const expectedQueryTemplate = `
|
||||
executeQuickActionOnPerson(id: $idToExecuteQuickActionOn) {
|
||||
__typename
|
||||
xLink {
|
||||
label
|
||||
url
|
||||
primaryLinkUrl
|
||||
primaryLinkLabel
|
||||
secondaryLinks
|
||||
}
|
||||
id
|
||||
createdAt
|
||||
@ -23,8 +24,9 @@ const expectedQueryTemplate = `
|
||||
}
|
||||
phone
|
||||
linkedinLink {
|
||||
label
|
||||
url
|
||||
primaryLinkUrl
|
||||
primaryLinkLabel
|
||||
secondaryLinks
|
||||
}
|
||||
updatedAt
|
||||
avatarUrl
|
||||
|
||||
@ -11,8 +11,9 @@ const expectedQueryTemplate = `
|
||||
node {
|
||||
__typename
|
||||
xLink {
|
||||
label
|
||||
url
|
||||
primaryLinkUrl
|
||||
primaryLinkLabel
|
||||
secondaryLinks
|
||||
}
|
||||
id
|
||||
createdAt
|
||||
@ -25,8 +26,9 @@ const expectedQueryTemplate = `
|
||||
}
|
||||
phone
|
||||
linkedinLink {
|
||||
label
|
||||
url
|
||||
primaryLinkUrl
|
||||
primaryLinkLabel
|
||||
secondaryLinks
|
||||
}
|
||||
updatedAt
|
||||
avatarUrl
|
||||
|
||||
@ -11,8 +11,9 @@ const expectedQueryTemplate = `
|
||||
node {
|
||||
__typename
|
||||
xLink {
|
||||
label
|
||||
url
|
||||
primaryLinkUrl
|
||||
primaryLinkLabel
|
||||
secondaryLinks
|
||||
}
|
||||
id
|
||||
createdAt
|
||||
@ -25,8 +26,9 @@ const expectedQueryTemplate = `
|
||||
}
|
||||
phone
|
||||
linkedinLink {
|
||||
label
|
||||
url
|
||||
primaryLinkUrl
|
||||
primaryLinkLabel
|
||||
secondaryLinks
|
||||
}
|
||||
updatedAt
|
||||
avatarUrl
|
||||
|
||||
@ -9,8 +9,9 @@ query FindOnePerson($objectRecordId: ID!) {
|
||||
person(filter: { id: { eq: $objectRecordId } }) {
|
||||
__typename
|
||||
xLink {
|
||||
label
|
||||
url
|
||||
primaryLinkUrl
|
||||
primaryLinkLabel
|
||||
secondaryLinks
|
||||
}
|
||||
id
|
||||
createdAt
|
||||
@ -23,8 +24,9 @@ query FindOnePerson($objectRecordId: ID!) {
|
||||
}
|
||||
phone
|
||||
linkedinLink {
|
||||
label
|
||||
url
|
||||
primaryLinkUrl
|
||||
primaryLinkLabel
|
||||
secondaryLinks
|
||||
}
|
||||
updatedAt
|
||||
avatarUrl
|
||||
|
||||
@ -9,8 +9,9 @@ mutation UpdateOnePerson($idToUpdate: ID!, $input: PersonUpdateInput!) {
|
||||
updatePerson(id: $idToUpdate, data: $input) {
|
||||
__typename
|
||||
xLink {
|
||||
label
|
||||
url
|
||||
primaryLinkUrl
|
||||
primaryLinkLabel
|
||||
secondaryLinks
|
||||
}
|
||||
id
|
||||
createdAt
|
||||
@ -23,8 +24,9 @@ mutation UpdateOnePerson($idToUpdate: ID!, $input: PersonUpdateInput!) {
|
||||
}
|
||||
phone
|
||||
linkedinLink {
|
||||
label
|
||||
url
|
||||
primaryLinkUrl
|
||||
primaryLinkLabel
|
||||
secondaryLinks
|
||||
}
|
||||
updatedAt
|
||||
avatarUrl
|
||||
|
||||
@ -64,7 +64,7 @@ export const linkFieldDefinition: FieldDefinition<FieldLinkMetadata> = {
|
||||
label: 'LinkedIn URL',
|
||||
iconName: 'url',
|
||||
type: FieldMetadataType.Link,
|
||||
defaultValue: { label: '', url: '' },
|
||||
defaultValue: { url: '', label: '' },
|
||||
metadata: {
|
||||
fieldName: 'linkedInURL',
|
||||
placeHolder: 'https://linkedin.com/user',
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
import { ReactNode } from 'react';
|
||||
import { gql } from '@apollo/client';
|
||||
import { MockedProvider, MockedResponse } from '@apollo/client/testing';
|
||||
import { act, renderHook, waitFor } from '@testing-library/react';
|
||||
import { ReactNode } from 'react';
|
||||
import { RecoilRoot, useRecoilValue } from 'recoil';
|
||||
|
||||
import { CoreObjectNameSingular } from '@/object-metadata/types/CoreObjectNameSingular';
|
||||
@ -25,8 +25,9 @@ const query = gql`
|
||||
updatePerson(id: $idToUpdate, data: $input) {
|
||||
__typename
|
||||
xLink {
|
||||
label
|
||||
url
|
||||
primaryLinkUrl
|
||||
primaryLinkLabel
|
||||
secondaryLinks
|
||||
}
|
||||
id
|
||||
createdAt
|
||||
@ -39,8 +40,9 @@ const query = gql`
|
||||
}
|
||||
phone
|
||||
linkedinLink {
|
||||
label
|
||||
url
|
||||
primaryLinkUrl
|
||||
primaryLinkLabel
|
||||
secondaryLinks
|
||||
}
|
||||
updatedAt
|
||||
avatarUrl
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
import { ReactNode } from 'react';
|
||||
import { gql } from '@apollo/client';
|
||||
import { MockedProvider, MockedResponse } from '@apollo/client/testing';
|
||||
import { act, renderHook, waitFor } from '@testing-library/react';
|
||||
import { ReactNode } from 'react';
|
||||
import { RecoilRoot } from 'recoil';
|
||||
|
||||
import { CoreObjectNameSingular } from '@/object-metadata/types/CoreObjectNameSingular';
|
||||
@ -27,12 +27,14 @@ const mocks: MockedResponse[] = [
|
||||
updateCompany(id: $idToUpdate, data: $input) {
|
||||
__typename
|
||||
xLink {
|
||||
label
|
||||
url
|
||||
primaryLinkUrl
|
||||
primaryLinkLabel
|
||||
secondaryLinks
|
||||
}
|
||||
linkedinLink {
|
||||
label
|
||||
url
|
||||
primaryLinkUrl
|
||||
primaryLinkLabel
|
||||
secondaryLinks
|
||||
}
|
||||
domainName
|
||||
annualRecurringRevenue {
|
||||
|
||||
@ -6,8 +6,8 @@ export const fieldValue = [
|
||||
domainName: 'google.com',
|
||||
xLink: {
|
||||
__typename: 'Link',
|
||||
label: '',
|
||||
url: '',
|
||||
primaryLinkLabel: '',
|
||||
primaryLinkUrl: '',
|
||||
},
|
||||
name: 'Google',
|
||||
annualRecurringRevenue: {
|
||||
@ -25,8 +25,8 @@ export const fieldValue = [
|
||||
updatedAt: '2024-05-01T13:16:29.046Z',
|
||||
linkedinLink: {
|
||||
__typename: 'Link',
|
||||
label: '',
|
||||
url: '',
|
||||
primaryLinkLabel: '',
|
||||
primaryLinkUrl: '',
|
||||
},
|
||||
},
|
||||
{
|
||||
@ -34,8 +34,8 @@ export const fieldValue = [
|
||||
domainName: 'airbnb.com',
|
||||
xLink: {
|
||||
__typename: 'Link',
|
||||
label: '',
|
||||
url: '',
|
||||
primaryLinkLabel: '',
|
||||
primaryLinkUrl: '',
|
||||
},
|
||||
name: 'Airbnb',
|
||||
annualRecurringRevenue: {
|
||||
@ -53,8 +53,8 @@ export const fieldValue = [
|
||||
updatedAt: '2024-05-01T13:16:29.046Z',
|
||||
linkedinLink: {
|
||||
__typename: 'Link',
|
||||
label: '',
|
||||
url: '',
|
||||
primaryLinkLabel: '',
|
||||
primaryLinkUrl: '',
|
||||
},
|
||||
},
|
||||
];
|
||||
@ -72,8 +72,8 @@ export const otherPersonMock = {
|
||||
domainName: 'google.com',
|
||||
xLink: {
|
||||
__typename: 'Link',
|
||||
label: '',
|
||||
url: '',
|
||||
primaryLinkLabel: '',
|
||||
primaryLinkUrl: '',
|
||||
},
|
||||
name: 'Google',
|
||||
annualRecurringRevenue: {
|
||||
@ -91,8 +91,8 @@ export const otherPersonMock = {
|
||||
updatedAt: '2024-05-01T13:16:29.046Z',
|
||||
linkedinLink: {
|
||||
__typename: 'Link',
|
||||
label: '',
|
||||
url: '',
|
||||
primaryLinkLabel: '',
|
||||
primaryLinkUrl: '',
|
||||
},
|
||||
},
|
||||
id: 'd3e70589-c449-4e64-8268-065640fdaff0',
|
||||
@ -100,13 +100,13 @@ export const otherPersonMock = {
|
||||
phone: '+33744332211',
|
||||
linkedinLink: {
|
||||
__typename: 'Link',
|
||||
label: '',
|
||||
url: '',
|
||||
primaryLinkLabel: '',
|
||||
primaryLinkUrl: '',
|
||||
},
|
||||
xLink: {
|
||||
__typename: 'Link',
|
||||
label: '',
|
||||
url: '',
|
||||
primaryLinkLabel: '',
|
||||
primaryLinkUrl: '',
|
||||
},
|
||||
tEst: '',
|
||||
position: 14,
|
||||
@ -128,8 +128,8 @@ export const relationFromManyFieldDisplayMock = {
|
||||
domainName: 'google.com',
|
||||
xLink: {
|
||||
__typename: 'Link',
|
||||
label: '',
|
||||
url: '',
|
||||
primaryLinkLabel: '',
|
||||
primaryLinkUrl: '',
|
||||
},
|
||||
name: 'Google',
|
||||
annualRecurringRevenue: {
|
||||
@ -147,8 +147,8 @@ export const relationFromManyFieldDisplayMock = {
|
||||
updatedAt: '2024-05-01T13:16:29.046Z',
|
||||
linkedinLink: {
|
||||
__typename: 'Link',
|
||||
label: '',
|
||||
url: '',
|
||||
primaryLinkLabel: '',
|
||||
primaryLinkUrl: '',
|
||||
},
|
||||
},
|
||||
id: '20202020-2d40-4e49-8df4-9c6a049191df',
|
||||
@ -156,13 +156,13 @@ export const relationFromManyFieldDisplayMock = {
|
||||
phone: '+33788901235',
|
||||
linkedinLink: {
|
||||
__typename: 'Link',
|
||||
label: '',
|
||||
url: '',
|
||||
primaryLinkLabel: '',
|
||||
primaryLinkUrl: '',
|
||||
},
|
||||
xLink: {
|
||||
__typename: 'Link',
|
||||
label: '',
|
||||
url: '',
|
||||
primaryLinkLabel: '',
|
||||
primaryLinkUrl: '',
|
||||
},
|
||||
tEst: '',
|
||||
position: 15,
|
||||
@ -172,8 +172,8 @@ export const relationFromManyFieldDisplayMock = {
|
||||
domainName: 'microsoft.com',
|
||||
xLink: {
|
||||
__typename: 'Link',
|
||||
label: '',
|
||||
url: '',
|
||||
primaryLinkLabel: '',
|
||||
primaryLinkUrl: '',
|
||||
},
|
||||
name: 'Microsoft',
|
||||
annualRecurringRevenue: {
|
||||
@ -191,13 +191,13 @@ export const relationFromManyFieldDisplayMock = {
|
||||
updatedAt: '2024-05-01T13:16:29.046Z',
|
||||
linkedinLink: {
|
||||
__typename: 'Link',
|
||||
label: '',
|
||||
url: '',
|
||||
primaryLinkLabel: '',
|
||||
primaryLinkUrl: '',
|
||||
},
|
||||
},
|
||||
fieldDefinition: {
|
||||
fieldMetadataId: '4e79f0b7-d100-4e89-a07b-315a710b8059',
|
||||
label: 'Company',
|
||||
primaryLinkLabel: 'Company',
|
||||
metadata: {
|
||||
fieldName: 'company',
|
||||
placeHolder: 'Company',
|
||||
|
||||
@ -7,8 +7,8 @@ export const mockPerformance = {
|
||||
dataSourceId: '0fd9fd54-0e8d-4f78-911c-76b33436a768',
|
||||
nameSingular: 'person',
|
||||
namePlural: 'people',
|
||||
labelSingular: 'Person',
|
||||
labelPlural: 'People',
|
||||
primaryLinkLabelSingular: 'Person',
|
||||
primaryLinkLabelPlural: 'People',
|
||||
description: 'A person',
|
||||
icon: 'IconUser',
|
||||
isCustom: false,
|
||||
@ -17,7 +17,7 @@ export const mockPerformance = {
|
||||
isSystem: false,
|
||||
createdAt: '2024-05-16T10:54:27.788Z',
|
||||
updatedAt: '2024-05-16T10:54:27.788Z',
|
||||
labelIdentifierFieldMetadataId: null,
|
||||
primaryLinkLabelIdentifierFieldMetadataId: null,
|
||||
imageIdentifierFieldMetadataId: null,
|
||||
fields: [
|
||||
{
|
||||
@ -25,7 +25,7 @@ export const mockPerformance = {
|
||||
id: '9058056e-36b3-4a3f-9037-f0bca9744296',
|
||||
type: 'RELATION',
|
||||
name: 'company',
|
||||
label: 'Company',
|
||||
primaryLinkLabel: 'Company',
|
||||
description: 'Contact’s company',
|
||||
icon: 'IconBuildingSkyscraper',
|
||||
isCustom: false,
|
||||
@ -85,7 +85,7 @@ export const mockPerformance = {
|
||||
id: 'bd504d22-ecae-4228-8729-5c770a174336',
|
||||
type: 'TEXT',
|
||||
name: 'avatarUrl',
|
||||
label: 'Avatar',
|
||||
primaryLinkLabel: 'Avatar',
|
||||
description: 'Contact’s avatar',
|
||||
icon: 'IconFileUpload',
|
||||
isCustom: false,
|
||||
@ -105,7 +105,7 @@ export const mockPerformance = {
|
||||
id: '21238919-5d92-402e-8124-367948ef86e6',
|
||||
type: 'TEXT',
|
||||
name: 'city',
|
||||
label: 'City',
|
||||
primaryLinkLabel: 'City',
|
||||
description: 'Contact’s city',
|
||||
icon: 'IconMap',
|
||||
isCustom: false,
|
||||
@ -125,7 +125,7 @@ export const mockPerformance = {
|
||||
id: '78edf4bb-c6a6-449e-b9db-20a575b97d5e',
|
||||
type: 'RELATION',
|
||||
name: 'activityTargets',
|
||||
label: 'Activities',
|
||||
primaryLinkLabel: 'Activities',
|
||||
description: 'Activities tied to the contact',
|
||||
icon: 'IconCheckbox',
|
||||
isCustom: false,
|
||||
@ -185,7 +185,7 @@ export const mockPerformance = {
|
||||
id: '4128b168-1439-441e-bb6a-223fa1276642',
|
||||
type: 'RELATION',
|
||||
name: 'pointOfContactForOpportunities',
|
||||
label: 'POC for Opportunities',
|
||||
primaryLinkLabel: 'POC for Opportunities',
|
||||
description: 'Point of Contact for Opportunities',
|
||||
icon: 'IconTargetArrow',
|
||||
isCustom: false,
|
||||
@ -245,7 +245,7 @@ export const mockPerformance = {
|
||||
id: '3db3a6ac-a960-42bd-8375-59ab6c4837d6',
|
||||
type: 'RELATION',
|
||||
name: 'calendarEventParticipants',
|
||||
label: 'Calendar Event Participants',
|
||||
primaryLinkLabel: 'Calendar Event Participants',
|
||||
description: 'Calendar Event Participants',
|
||||
icon: 'IconCalendar',
|
||||
isCustom: false,
|
||||
@ -305,7 +305,7 @@ export const mockPerformance = {
|
||||
id: 'f0a290ac-fa74-48da-a77f-db221cb0206a',
|
||||
type: 'DATE_TIME',
|
||||
name: 'createdAt',
|
||||
label: 'Creation date',
|
||||
primaryLinkLabel: 'Creation date',
|
||||
description: 'Creation date',
|
||||
icon: 'IconCalendar',
|
||||
isCustom: false,
|
||||
@ -325,7 +325,7 @@ export const mockPerformance = {
|
||||
id: 'b96e0e45-278c-44b6-a601-30ba24592dd6',
|
||||
type: 'RELATION',
|
||||
name: 'favorites',
|
||||
label: 'Favorites',
|
||||
primaryLinkLabel: 'Favorites',
|
||||
description: 'Favorites linked to the contact',
|
||||
icon: 'IconHeart',
|
||||
isCustom: false,
|
||||
@ -385,7 +385,7 @@ export const mockPerformance = {
|
||||
id: '430af81e-2a8c-4ce2-9969-c0f0e91818bb',
|
||||
type: 'LINK',
|
||||
name: 'linkedinLink',
|
||||
label: 'Linkedin',
|
||||
primaryLinkLabel: 'Linkedin',
|
||||
description: 'Contact’s Linkedin account',
|
||||
icon: 'IconBrandLinkedin',
|
||||
isCustom: false,
|
||||
@ -397,8 +397,8 @@ export const mockPerformance = {
|
||||
fromRelationMetadata: null,
|
||||
toRelationMetadata: null,
|
||||
defaultValue: {
|
||||
url: "''",
|
||||
label: "''",
|
||||
primaryLinkUrl: "''",
|
||||
primaryLinkLabel: "''",
|
||||
},
|
||||
options: null,
|
||||
relationDefinition: null,
|
||||
@ -408,7 +408,7 @@ export const mockPerformance = {
|
||||
id: 'c885c3d9-63e2-4c0d-b7d6-ee9e867eb1f6',
|
||||
type: 'RELATION',
|
||||
name: 'attachments',
|
||||
label: 'Attachments',
|
||||
primaryLinkLabel: 'Attachments',
|
||||
description: 'Attachments linked to the contact.',
|
||||
icon: 'IconFileImport',
|
||||
isCustom: false,
|
||||
@ -468,7 +468,7 @@ export const mockPerformance = {
|
||||
id: 'cc63e38f-56d6-495e-a545-edf101e400cf',
|
||||
type: 'TEXT',
|
||||
name: 'phone',
|
||||
label: 'Phone',
|
||||
primaryLinkLabel: 'Phone',
|
||||
description: 'Contact’s phone number',
|
||||
icon: 'IconPhone',
|
||||
isCustom: false,
|
||||
@ -488,7 +488,7 @@ export const mockPerformance = {
|
||||
id: '0084a5f7-cb57-4cd5-8b14-93ab51c21f45',
|
||||
type: 'POSITION',
|
||||
name: 'position',
|
||||
label: 'Position',
|
||||
primaryLinkLabel: 'Position',
|
||||
description: 'Person record Position',
|
||||
icon: 'IconHierarchy2',
|
||||
isCustom: false,
|
||||
@ -508,7 +508,7 @@ export const mockPerformance = {
|
||||
id: 'ca54aa1d-1ecb-486c-99ea-b8240871a0da',
|
||||
type: 'EMAIL',
|
||||
name: 'email',
|
||||
label: 'Email',
|
||||
primaryLinkLabel: 'Email',
|
||||
description: 'Contact’s Email',
|
||||
icon: 'IconMail',
|
||||
isCustom: false,
|
||||
@ -528,7 +528,7 @@ export const mockPerformance = {
|
||||
id: '54561a8e-b918-471b-a363-5a77f49cd348',
|
||||
type: 'TEXT',
|
||||
name: 'jobTitle',
|
||||
label: 'Job Title',
|
||||
primaryLinkLabel: 'Job Title',
|
||||
description: 'Contact’s job title',
|
||||
icon: 'IconBriefcase',
|
||||
isCustom: false,
|
||||
@ -548,7 +548,7 @@ export const mockPerformance = {
|
||||
id: '4e844d31-f117-443c-8754-8cb63e963ecc',
|
||||
type: 'DATE_TIME',
|
||||
name: 'updatedAt',
|
||||
label: 'Update date',
|
||||
primaryLinkLabel: 'Update date',
|
||||
description: 'Update date',
|
||||
icon: 'IconCalendar',
|
||||
isCustom: false,
|
||||
@ -568,7 +568,7 @@ export const mockPerformance = {
|
||||
id: '4ddd38df-d9a3-4889-a39f-1e336cd8113c',
|
||||
type: 'UUID',
|
||||
name: 'companyId',
|
||||
label: 'Company id (foreign key)',
|
||||
primaryLinkLabel: 'Company id (foreign key)',
|
||||
description: 'Contact’s company id foreign key',
|
||||
icon: 'IconBuildingSkyscraper',
|
||||
isCustom: false,
|
||||
@ -588,7 +588,7 @@ export const mockPerformance = {
|
||||
id: 'e6922ecb-7a3a-4520-b001-bbf95fc33197',
|
||||
type: 'RELATION',
|
||||
name: 'timelineActivities',
|
||||
label: 'Events',
|
||||
primaryLinkLabel: 'Events',
|
||||
description: 'Events linked to the company',
|
||||
icon: 'IconTimelineEvent',
|
||||
isCustom: false,
|
||||
@ -648,7 +648,7 @@ export const mockPerformance = {
|
||||
id: '07a8a574-ed28-4015-b456-c01ff3050e2b',
|
||||
type: 'FULL_NAME',
|
||||
name: 'name',
|
||||
label: 'Name',
|
||||
primaryLinkLabel: 'Name',
|
||||
description: 'Contact’s name',
|
||||
icon: 'IconUser',
|
||||
isCustom: false,
|
||||
@ -671,7 +671,7 @@ export const mockPerformance = {
|
||||
id: 'c470144b-6692-47cb-a28f-04610d9d641c',
|
||||
type: 'LINK',
|
||||
name: 'xLink',
|
||||
label: 'X',
|
||||
primaryLinkLabel: 'X',
|
||||
description: 'Contact’s X/Twitter account',
|
||||
icon: 'IconBrandX',
|
||||
isCustom: false,
|
||||
@ -683,8 +683,8 @@ export const mockPerformance = {
|
||||
fromRelationMetadata: null,
|
||||
toRelationMetadata: null,
|
||||
defaultValue: {
|
||||
url: "''",
|
||||
label: "''",
|
||||
primaryLinkUrl: "''",
|
||||
primaryLinkLabel: "''",
|
||||
},
|
||||
options: null,
|
||||
relationDefinition: null,
|
||||
@ -694,7 +694,7 @@ export const mockPerformance = {
|
||||
id: 'c692aa2c-e88e-4aff-b77e-b9ebf26509e3',
|
||||
type: 'RELATION',
|
||||
name: 'messageParticipants',
|
||||
label: 'Message Participants',
|
||||
primaryLinkLabel: 'Message Participants',
|
||||
description: 'Message Participants',
|
||||
icon: 'IconUserCircle',
|
||||
isCustom: false,
|
||||
@ -754,7 +754,7 @@ export const mockPerformance = {
|
||||
id: '66d33eae-71be-49fa-ad7a-3e10ac53dfba',
|
||||
type: 'UUID',
|
||||
name: 'id',
|
||||
label: 'Id',
|
||||
primaryLinkLabel: 'Id',
|
||||
description: 'Id',
|
||||
icon: 'Icon123',
|
||||
isCustom: false,
|
||||
@ -789,8 +789,8 @@ export const mockPerformance = {
|
||||
domainName: 'google.com',
|
||||
xLink: {
|
||||
__typename: 'Link',
|
||||
label: '',
|
||||
url: '',
|
||||
primaryLinkLabel: '',
|
||||
primaryLinkUrl: '',
|
||||
},
|
||||
name: 'Google',
|
||||
annualRecurringRevenue: {
|
||||
@ -810,8 +810,8 @@ export const mockPerformance = {
|
||||
updatedAt: '2024-05-01T13:16:29.046Z',
|
||||
linkedinLink: {
|
||||
__typename: 'Link',
|
||||
label: '',
|
||||
url: '',
|
||||
primaryLinkLabel: '',
|
||||
primaryLinkUrl: '',
|
||||
},
|
||||
},
|
||||
id: '20202020-2d40-4e49-8df4-9c6a049191df',
|
||||
@ -819,13 +819,13 @@ export const mockPerformance = {
|
||||
phone: '+33788901235',
|
||||
linkedinLink: {
|
||||
__typename: 'Link',
|
||||
label: '',
|
||||
url: '',
|
||||
primaryLinkLabel: '',
|
||||
primaryLinkUrl: '',
|
||||
},
|
||||
xLink: {
|
||||
__typename: 'Link',
|
||||
label: '',
|
||||
url: '',
|
||||
primaryLinkLabel: '',
|
||||
primaryLinkUrl: '',
|
||||
},
|
||||
tEst: '',
|
||||
position: 15,
|
||||
@ -835,8 +835,8 @@ export const mockPerformance = {
|
||||
domainName: 'microsoft.com',
|
||||
xLink: {
|
||||
__typename: 'Link',
|
||||
label: '',
|
||||
url: '',
|
||||
primaryLinkLabel: '',
|
||||
primaryLinkUrl: '',
|
||||
},
|
||||
name: 'Microsoft',
|
||||
annualRecurringRevenue: {
|
||||
@ -854,13 +854,13 @@ export const mockPerformance = {
|
||||
updatedAt: '2024-05-01T13:16:29.046Z',
|
||||
linkedinLink: {
|
||||
__typename: 'Link',
|
||||
label: '',
|
||||
url: '',
|
||||
primaryLinkLabel: '',
|
||||
primaryLinkUrl: '',
|
||||
},
|
||||
},
|
||||
fieldDefinition: {
|
||||
fieldMetadataId: '4e79f0b7-d100-4e89-a07b-315a710b8059',
|
||||
label: 'Company',
|
||||
primaryLinkLabel: 'Company',
|
||||
metadata: {
|
||||
fieldName: 'company',
|
||||
placeHolder: 'Company',
|
||||
@ -885,7 +885,7 @@ export const mockPerformance = {
|
||||
visibleTableColumns: [
|
||||
{
|
||||
fieldMetadataId: '07a8a574-ed28-4015-b456-c01ff3050e2b',
|
||||
label: 'Name',
|
||||
primaryLinkLabel: 'Name',
|
||||
metadata: {
|
||||
fieldName: 'name',
|
||||
placeHolder: 'Name',
|
||||
@ -910,7 +910,7 @@ export const mockPerformance = {
|
||||
},
|
||||
{
|
||||
fieldMetadataId: 'ca54aa1d-1ecb-486c-99ea-b8240871a0da',
|
||||
label: 'Email',
|
||||
primaryLinkLabel: 'Email',
|
||||
metadata: {
|
||||
fieldName: 'email',
|
||||
placeHolder: 'Email',
|
||||
@ -932,7 +932,7 @@ export const mockPerformance = {
|
||||
},
|
||||
{
|
||||
fieldMetadataId: '9058056e-36b3-4a3f-9037-f0bca9744296',
|
||||
label: 'Company',
|
||||
primaryLinkLabel: 'Company',
|
||||
metadata: {
|
||||
fieldName: 'company',
|
||||
placeHolder: 'Company',
|
||||
@ -956,7 +956,7 @@ export const mockPerformance = {
|
||||
},
|
||||
{
|
||||
fieldMetadataId: 'cc63e38f-56d6-495e-a545-edf101e400cf',
|
||||
label: 'Phone',
|
||||
primaryLinkLabel: 'Phone',
|
||||
metadata: {
|
||||
fieldName: 'phone',
|
||||
placeHolder: 'Phone',
|
||||
@ -978,7 +978,7 @@ export const mockPerformance = {
|
||||
},
|
||||
{
|
||||
fieldMetadataId: 'f0a290ac-fa74-48da-a77f-db221cb0206a',
|
||||
label: 'Creation date',
|
||||
primaryLinkLabel: 'Creation date',
|
||||
metadata: {
|
||||
fieldName: 'createdAt',
|
||||
placeHolder: 'Creation date',
|
||||
@ -1000,7 +1000,7 @@ export const mockPerformance = {
|
||||
},
|
||||
{
|
||||
fieldMetadataId: '21238919-5d92-402e-8124-367948ef86e6',
|
||||
label: 'City',
|
||||
primaryLinkLabel: 'City',
|
||||
metadata: {
|
||||
fieldName: 'city',
|
||||
placeHolder: 'City',
|
||||
@ -1022,7 +1022,7 @@ export const mockPerformance = {
|
||||
},
|
||||
{
|
||||
fieldMetadataId: '54561a8e-b918-471b-a363-5a77f49cd348',
|
||||
label: 'Job Title',
|
||||
primaryLinkLabel: 'Job Title',
|
||||
metadata: {
|
||||
fieldName: 'jobTitle',
|
||||
placeHolder: 'Job Title',
|
||||
@ -1044,7 +1044,7 @@ export const mockPerformance = {
|
||||
},
|
||||
{
|
||||
fieldMetadataId: '430af81e-2a8c-4ce2-9969-c0f0e91818bb',
|
||||
label: 'Linkedin',
|
||||
primaryLinkLabel: 'Linkedin',
|
||||
metadata: {
|
||||
fieldName: 'linkedinLink',
|
||||
placeHolder: 'Linkedin',
|
||||
@ -1063,13 +1063,13 @@ export const mockPerformance = {
|
||||
isSortable: false,
|
||||
isFilterable: true,
|
||||
defaultValue: {
|
||||
url: "''",
|
||||
label: "''",
|
||||
primaryLinkUrl: "''",
|
||||
primaryLinkLabel: "''",
|
||||
},
|
||||
},
|
||||
{
|
||||
fieldMetadataId: 'c470144b-6692-47cb-a28f-04610d9d641c',
|
||||
label: 'X',
|
||||
primaryLinkLabel: 'X',
|
||||
metadata: {
|
||||
fieldName: 'xLink',
|
||||
placeHolder: 'X',
|
||||
@ -1088,8 +1088,8 @@ export const mockPerformance = {
|
||||
isSortable: false,
|
||||
isFilterable: true,
|
||||
defaultValue: {
|
||||
url: "''",
|
||||
label: "''",
|
||||
primaryLinkUrl: "''",
|
||||
primaryLinkLabel: "''",
|
||||
},
|
||||
},
|
||||
],
|
||||
|
||||
@ -27,12 +27,14 @@ const companyMocks = [
|
||||
createCompanies(data: $data, upsert: $upsert) {
|
||||
__typename
|
||||
xLink {
|
||||
label
|
||||
url
|
||||
primaryLinkUrl
|
||||
primaryLinkLabel
|
||||
secondaryLinks
|
||||
}
|
||||
linkedinLink {
|
||||
label
|
||||
url
|
||||
primaryLinkUrl
|
||||
primaryLinkLabel
|
||||
secondaryLinks
|
||||
}
|
||||
domainName
|
||||
annualRecurringRevenue {
|
||||
|
||||
Reference in New Issue
Block a user