4994a9c3a9
Api docs remove Relations from Post & Patch ( #5817 )
...
* Remove relations where they cannot be used
* Removed duplicated schema for findMany
* Reuse schema for Relation variant to reduce size of sent json object
closes #5778
---------
Co-authored-by: Félix Malfait <felix.malfait@gmail.com >
Co-authored-by: martmull <martmull@hotmail.fr >
2024-06-11 15:31:48 +02:00
5c15fcd249
5805 typing issue in rest api ( #5818 )
...
Fixed types for:
- uuid
- email
- datetime
- date
- number
- currency.amountMicros
- select
- multiSelect
## Before

## After

2024-06-11 14:54:02 +02:00
fdf10f17e2
4655 batch endpoints on the rest api ( #5411 )
...
- add POST rest/batch/<OBJECT> endpoint
- rearrange rest api code with Twenty quality standard
- unify REST API error format
- Added PATCH verb to update objects
- In openapi schema, we replaced PUT with PATCH verb to comply with REST
standard
- fix openApi schema to match the REST api
### Batch Create

### Replace PUT by PATCH in open Api

### Error format unification



2024-05-16 14:15:49 +02:00
05a90d6153
Constant api version ( #5248 )
...
closes #5206
2024-05-02 14:21:19 +02:00
8853226d17
feat: add Links field type ( #5176 )
...
Closes #5113
---------
Co-authored-by: Lucas Bordeau <bordeau.lucas@gmail.com >
2024-05-01 11:56:14 +02:00
7211730570
New field type: DATE ( #4876 )
...
### Description
New field type: DATE
### Refs
https://github.com/twentyhq/twenty/issues/4377
### Demo
https://jam.dev/c/d0b59883-593c-4ca3-966b-c12d5d2e1c32
Fixes #4377
---------
Co-authored-by: gitstart-twenty <gitstart-twenty@users.noreply.github.com >
Co-authored-by: v1b3m <vibenjamin6@gmail.com >
Co-authored-by: Toledodev <rafael.toledo@engenharia.ufjf.br >
Co-authored-by: Lucas Bordeau <bordeau.lucas@gmail.com >
2024-04-11 17:29:29 +02:00
584d90ec89
Create new field type JSON ( #4729 )
...
### Description
Create new field type JSON
### Refs
https://github.com/twentyhq/twenty/issues/3900
### Demo
https://github.com/twentyhq/twenty/assets/140154534/9ebdf4d4-f332-4940-b9d8-d9cf91935b67
Fixes #3900
---------
Co-authored-by: gitstart-twenty <gitstart-twenty@users.noreply.github.com >
Co-authored-by: v1b3m <vibenjamin6@gmail.com >
Co-authored-by: Lucas Bordeau <bordeau.lucas@gmail.com >
Co-authored-by: Marie Stoppa <marie.stoppa@essec.edu >
2024-04-11 11:41:36 +02:00
01991fe717
4902 bug fix fix api filter for enum ( #4909 )
...
- Handle NUMERIC, SELECT, PROBABILITY, RATING FieldMetadataTypes
Those filters now works:
- http://localhost:3000/rest/opportunities?filter=stage[eq]:MEETING
-
http://localhost:3000/rest/opportunities?filter=stage[in]:[MEETING,NEW]
When providing wrong enum values, the following error messages are
returned:
- http://localhost:3000/rest/opportunities?filter=stage[eq]:MEETINGG
> BadRequestException: 'filter' enum value 'MEETINGG' not available in
'stage' enum. Available enum values are ['NEW', 'SCREENING', 'MEETING',
'PROPOSAL', 'CUSTOMER']
-
http://localhost:3000/rest/opportunities?filter=stage[in]:[MEETING,NEWW]
> BadRequestException: 'filter' enum value 'NEWW' not available in
'stage' enum. Available enum values are ['NEW', 'SCREENING', 'MEETING',
'PROPOSAL', 'CUSTOMER']
2024-04-10 18:54:55 +02:00
5019b5febc
feat: drop target column map ( #4670 )
...
This PR is dropping the column `targetColumnMap` of fieldMetadata
entities.
The goal of this column was to properly map field to their respecting
column in the table.
We decide to drop it and instead compute the column name on the fly when
we need it, as it's more easier to support.
Some parts of the code has been refactored to try making implementation
of composite type more easier to understand and maintain.
Fix #3760
---------
Co-authored-by: Charles Bochet <charles@twenty.com >
2024-04-08 16:00:28 +02:00
3171d0c87b
feat: address composite field ( #4492 )
...
Added new Address field input type.
---------
Co-authored-by: Lucas Bordeau <bordeau.lucas@gmail.com >
2024-03-28 16:50:38 +01:00
d4eb75abff
Add isRemote field on object metadata ( #4668 )
...
Add isRemote field
Co-authored-by: Thomas Trompette <thomast@twenty.com >
2024-03-26 16:49:18 +01:00
d876b40056
Logs show page ( #4611 )
...
* Being implementing events on the frontend
* Rename JSON to RAW JSON
* Fix handling of json field on frontend
* Log user id
* Add frontend tests
* Update packages/twenty-server/src/engine/api/graphql/workspace-query-runner/jobs/save-event-to-db.job.ts
Co-authored-by: Weiko <corentin@twenty.com >
* Move db calls to a dedicated repository
* Add server-side tests
---------
Co-authored-by: Weiko <corentin@twenty.com >
2024-03-22 14:01:16 +01:00
e5c1309e8c
feat: wip server folder structure ( #4573 )
...
* feat: wip server folder structure
* fix: merge
* fix: wrong merge
* fix: remove unused file
* fix: comment
* fix: lint
* fix: merge
* fix: remove console.log
* fix: metadata graphql arguments broken
2024-03-20 16:23:46 +01:00