mirror of
https://github.com/twentyhq/twenty.git
synced 2024-11-23 05:53:31 +03:00
Update seed links format
This commit is contained in:
parent
6c34ef9a14
commit
2cc0597ee4
@ -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',
|
||||
},
|
||||
])
|
||||
|
@ -21,7 +21,7 @@ export const DUPLICATE_CRITERIA_COLLECTION: RecordDuplicateCriteria[] = [
|
||||
},
|
||||
{
|
||||
objectName: 'person',
|
||||
columnNames: ['linkedinLinkUrl'],
|
||||
columnNames: ['linkedinLinkPrimaryLinkUrl'],
|
||||
},
|
||||
{
|
||||
objectName: 'person',
|
||||
|
@ -28,7 +28,8 @@ export class IntelligenceService {
|
||||
}
|
||||
|
||||
return {
|
||||
linkedinLinkUrl: `https://linkedin.com/` + enrichedCompany.data.handle,
|
||||
linkedinLinkPrimaryLinkUrl:
|
||||
`https://linkedin.com/` + enrichedCompany.data.handle,
|
||||
};
|
||||
}
|
||||
|
||||
|
@ -1,3 +1,3 @@
|
||||
export interface CompanyInteface {
|
||||
linkedinLinkUrl?: string;
|
||||
linkedinLinkPrimaryLinkUrl?: string;
|
||||
}
|
||||
|
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -14,7 +14,7 @@ export const companyPrefillDemoData = async (
|
||||
'domainName',
|
||||
'addressAddressCity',
|
||||
'employees',
|
||||
'linkedinLinkUrl',
|
||||
'linkedinLinkPrimaryLinkUrl',
|
||||
'position',
|
||||
])
|
||||
.orIgnore()
|
||||
|
@ -46,6 +46,7 @@ export const opportunityPrefillDemoData = async (
|
||||
.insert()
|
||||
.into(`${schemaName}.${tableName}`, [
|
||||
'id',
|
||||
'name',
|
||||
'amountAmountMicros',
|
||||
'amountCurrencyCode',
|
||||
'closeDate',
|
||||
|
@ -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',
|
||||
|
Loading…
Reference in New Issue
Block a user