Revert company address field type (#4737)

## Context
A new ADDRESS field type has been introduced and the company object has
been updated to use this new type however this introduced a few
regressions.
The good strategy would be to introduce a new field and rename the old
one.

This PR revert that change to fix the issue.
This commit is contained in:
Weiko
2024-04-02 11:11:14 +02:00
committed by GitHub
parent dc8ab5d95a
commit a3a15957f4
4 changed files with 616 additions and 602 deletions

View File

@ -29,6 +29,7 @@ export const seedCompanies = async (
'id',
'name',
'domainName',
'address',
'position',
])
.orIgnore()
@ -37,78 +38,91 @@ export const seedCompanies = async (
id: DEV_SEED_COMPANY_IDS.LINKEDIN,
name: 'Linkedin',
domainName: 'linkedin.com',
address: '',
position: 1,
},
{
id: DEV_SEED_COMPANY_IDS.FACEBOOK,
name: 'Facebook',
domainName: 'facebook.com',
address: '',
position: 2,
},
{
id: DEV_SEED_COMPANY_IDS.QONTO,
name: 'Qonto',
domainName: 'qonto.com',
address: '',
position: 3,
},
{
id: DEV_SEED_COMPANY_IDS.MICROSOFT,
name: 'Microsoft',
domainName: 'microsoft.com',
address: '',
position: 4,
},
{
id: DEV_SEED_COMPANY_IDS.AIRBNB,
name: 'Airbnb',
domainName: 'airbnb.com',
address: '',
position: 5,
},
{
id: DEV_SEED_COMPANY_IDS.GOOGLE,
name: 'Google',
domainName: 'google.com',
address: '',
position: 6,
},
{
id: DEV_SEED_COMPANY_IDS.NETFLIX,
name: 'Netflix',
domainName: 'netflix.com',
address: '',
position: 7,
},
{
id: DEV_SEED_COMPANY_IDS.LIBEO,
name: 'Libeo',
domainName: 'libeo.io',
address: '',
position: 8,
},
{
id: DEV_SEED_COMPANY_IDS.CLAAP,
name: 'Claap',
domainName: 'claap.io',
address: '',
position: 9,
},
{
id: DEV_SEED_COMPANY_IDS.HASURA,
name: 'Hasura',
domainName: 'hasura.io',
address: '',
position: 10,
},
{
id: DEV_SEED_COMPANY_IDS.WEWORK,
name: 'Wework',
domainName: 'wework.com',
address: '',
position: 11,
},
{
id: DEV_SEED_COMPANY_IDS.SAMSUNG,
name: 'Samsung',
domainName: 'samsung.com',
address: '',
position: 12,
},
{
id: DEV_SEED_COMPANY_IDS.ALGOLIA,
name: 'Algolia',
domainName: 'algolia.com',
address: '',
position: 13,
},
])

View File

@ -12,7 +12,7 @@ export const companyPrefillDemoData = async (
.into(`${schemaName}.company`, [
'name',
'domainName',
'addressAddressCity',
'address',
'employees',
'linkedinLinkUrl',
'position',

View File

@ -51,7 +51,7 @@ export class CompanyObjectMetadata extends BaseObjectMetadata {
@FieldMetadata({
standardId: companyStandardFieldIds.address,
type: FieldMetadataType.ADDRESS,
type: FieldMetadataType.TEXT,
label: 'Address',
description: 'The company address',
icon: 'IconMap',