Update seed links format

This commit is contained in:
Charles Bochet 2024-07-23 14:48:26 +02:00
parent 6c34ef9a14
commit 2cc0597ee4
9 changed files with 614 additions and 612 deletions

View File

@ -22,8 +22,8 @@ export const seedCalendarEvents = async (
'location',
'iCalUID',
'conferenceSolution',
'conferenceLinkLabel',
'conferenceLinkUrl',
'conferenceLinkPrimaryLinkLabel',
'conferenceLinkPrimaryLinkUrl',
'recurringEventExternalId',
])
.orIgnore()
@ -41,8 +41,8 @@ export const seedCalendarEvents = async (
location: 'Seattle',
iCalUID: 'event1@calendar.com',
conferenceSolution: 'Zoom',
conferenceLinkLabel: 'https://zoom.us/j/1234567890',
conferenceLinkUrl: 'https://zoom.us/j/1234567890',
conferenceLinkPrimaryLinkLabel: 'https://zoom.us/j/1234567890',
conferenceLinkPrimaryLinkUrl: 'https://zoom.us/j/1234567890',
recurringEventExternalId: 'recurring1',
},
])

View File

@ -21,7 +21,7 @@ export const DUPLICATE_CRITERIA_COLLECTION: RecordDuplicateCriteria[] = [
},
{
objectName: 'person',
columnNames: ['linkedinLinkUrl'],
columnNames: ['linkedinLinkPrimaryLinkUrl'],
},
{
objectName: 'person',

View File

@ -28,7 +28,8 @@ export class IntelligenceService {
}
return {
linkedinLinkUrl: `https://linkedin.com/` + enrichedCompany.data.handle,
linkedinLinkPrimaryLinkUrl:
`https://linkedin.com/` + enrichedCompany.data.handle,
};
}

View File

@ -1,3 +1,3 @@
export interface CompanyInteface {
linkedinLinkUrl?: string;
linkedinLinkPrimaryLinkUrl?: string;
}

View File

@ -5,11 +5,11 @@ import { v4 as uuidv4 } from 'uuid';
import { Record as IRecord } from 'src/engine/api/graphql/workspace-query-builder/interfaces/record.interface';
import { ObjectMetadataInterface } from 'src/engine/metadata-modules/field-metadata/interfaces/object-metadata.interface';
import { isWorkEmail } from 'src/utils/is-work-email';
import { stringifyWithoutKeyQuote } from 'src/engine/api/graphql/workspace-query-builder/utils/stringify-without-key-quote.util';
import { WorkspaceQueryRunnerService } from 'src/engine/api/graphql/workspace-query-runner/workspace-query-runner.service';
import { IntelligenceService } from 'src/engine/core-modules/quick-actions/intelligence.service';
import { capitalize } from 'src/utils/capitalize';
import { isWorkEmail } from 'src/utils/is-work-email';
@Injectable()
export class QuickActionsService {
@ -138,7 +138,7 @@ export class QuickActionsService {
id
domainName
createdAt
linkedinLinkUrl
linkedinLinkPrimaryLinkUrl
}
}
}

View File

@ -14,7 +14,7 @@ export const companyPrefillDemoData = async (
'domainName',
'addressAddressCity',
'employees',
'linkedinLinkUrl',
'linkedinLinkPrimaryLinkUrl',
'position',
])
.orIgnore()

View File

@ -46,6 +46,7 @@ export const opportunityPrefillDemoData = async (
.insert()
.into(`${schemaName}.${tableName}`, [
'id',
'name',
'amountAmountMicros',
'amountCurrencyCode',
'closeDate',

View File

@ -15,7 +15,7 @@ export const personPrefillDemoData = async (
nameFirstName: person.firstName,
nameLastName: person.lastName,
email: person.email,
linkedinLinkUrl: person.linkedinUrl,
linkedinLinkPrimaryLinkUrl: person.linkedinUrl,
jobTitle: person.jobTitle,
city: person.city,
avatarUrl: person.avatarUrl,
@ -30,7 +30,7 @@ export const personPrefillDemoData = async (
'nameFirstName',
'nameLastName',
'email',
'linkedinLinkUrl',
'linkedinLinkPrimaryLinkUrl',
'jobTitle',
'city',
'avatarUrl',