Connect - Relation on FE Importer (#13213)

Done : 
- Relation connect on FE Importer
- Remove templating on SpreadsheetMatchedColumn type
- Remove useless files on import
- Remove AvailableFieldsForImport type + Update SpreadsheetImportField
type and SpreadsheetImportFieldOption


To test : 
- Try import opportunities on Apple wk 
[using this
file](https://github.com/user-attachments/files/21233720/Test.import.-.opportunities-sample.csv)


closes : https://github.com/twentyhq/core-team-issues/issues/1090
This commit is contained in:
Etienne
2025-07-18 21:43:16 +02:00
committed by GitHub
parent ae04cc9e6c
commit cc71394863
90 changed files with 1615 additions and 1195 deletions

View File

@ -29,11 +29,11 @@ describe('relation connect in workspace createOne/createMany resolvers (e2e)',
data: [
{
id: TEST_COMPANY_1_ID,
domainName: { primaryLinkUrl: 'company1.com' },
domainName: { primaryLinkUrl: 'https://company1.com' },
},
{
id: TEST_COMPANY_2_ID,
domainName: { primaryLinkUrl: 'company2.com' },
domainName: { primaryLinkUrl: 'https://company2.com' },
},
],
});
@ -58,7 +58,7 @@ describe('relation connect in workspace createOne/createMany resolvers (e2e)',
id: TEST_PERSON_1_ID,
company: {
connect: {
where: { domainName: { primaryLinkUrl: 'company1.com' } },
where: { domainName: { primaryLinkUrl: 'https://company1.com' } },
},
},
},
@ -81,7 +81,7 @@ describe('relation connect in workspace createOne/createMany resolvers (e2e)',
id: TEST_PERSON_1_ID,
company: {
connect: {
where: { domainName: { primaryLinkUrl: 'company1.com' } },
where: { domainName: { primaryLinkUrl: 'https://company1.com' } },
},
},
},
@ -89,7 +89,7 @@ describe('relation connect in workspace createOne/createMany resolvers (e2e)',
id: TEST_PERSON_2_ID,
company: {
connect: {
where: { domainName: { primaryLinkUrl: 'company2.com' } },
where: { domainName: { primaryLinkUrl: 'https://company2.com' } },
},
},
},
@ -152,7 +152,7 @@ describe('relation connect in workspace createOne/createMany resolvers (e2e)',
expect(response.body.errors).toBeDefined();
expect(response.body.errors[0].message).toBe(
'Expected 1 record to connect to company, but found 0.',
'Expected 1 record to connect to company, but found 0 with conditions: [["domainNamePrimaryLinkUrl","not-existing-company"]].',
);
expect(response.body.errors[0].extensions.code).toBe(
ErrorCode.BAD_USER_INPUT,