[3/n]: Migrate the PUT rest/* and PATCH rest/* to use TwentyORM (#10002)

# This PR

- Is addressing #3644 
- Migrates the PUT and PATCH rest/* endpoints to use twentyORM directly
- Adds integration tests
This commit is contained in:
P A C · 先生
2025-02-04 18:25:02 +02:00
committed by GitHub
parent 7dfb9dd77f
commit 5be22413c9
5 changed files with 144 additions and 5 deletions

View File

@ -0,0 +1,16 @@
import { PERSON_2_ID } from 'test/integration/constants/mock-person-ids.constants';
export const INITIAL_PERSON_DATA = {
id: PERSON_2_ID,
name: {
firstName: 'Testing',
lastName: 'User',
},
emails: {
primaryEmail: 'test8@user.com',
additionalEmails: ['user8@example.com'],
},
city: 'New York',
jobTitle: 'Manager',
companyId: '20202020-0713-40a5-8216-82802401d33e',
};