a2a272fed4
Add crud actions ( #8500 )
...
Adding update / delete / find actions
Update and delete are not really different than creation.
Find uses the same logique as for graphql filters.
Expected formats are:
Filter
```
{
"and": [
{
"name": {
"eq": "salut"
}
},
{
"employees": {
"eq": "0"
}
}
]
}
```
Order
`[ { "name": 'AscNullsFirst' } ]`
2024-11-15 10:10:00 +01:00
a799370483
Aggregated queries #1 ( #8345 )
...
First step of https://github.com/twentyhq/twenty/issues/6868
Adds min.., max.. queries for DATETIME fields
adds min.., max.., avg.., sum.. queries for NUMBER fields
(count distinct operation and composite fields such as CURRENCY handling
will be dealt with in a future PR)
<img width="1422" alt="Capture d’écran 2024-11-06 à 15 48 46"
src="https://github.com/user-attachments/assets/4bcdece0-ad3e-4536-9720-fe4044a36719 ">
---------
Co-authored-by: Charles Bochet <charles@twenty.com >
Co-authored-by: Weiko <corentin@twenty.com >
2024-11-14 18:05:05 +01:00
faeea2b887
Create record action ( #8460 )
...
- Add create record action
- Migrate all step name => action in a common folder
- Separate types
2024-11-13 15:21:40 +01:00
354ee86cb9
8311 serverless function functions can be executed with any input ( #8380 )
...
- remove ts-morph
- update inputSchema shape

https://github.com/user-attachments/assets/913cd305-9e7c-48da-b20f-c974a8ac7cea
## TODO
- have inputTypes to match the inputSchema type (string, number,
boolean, etc...), only string for now
- handle required/optional inputs
- handle case when inputSchema changes, fix data reset when switching
function
2024-11-08 16:15:27 +00:00
117e502e80
Clean available fields in variable dropdown ( #8371 )
...
As title
We do not want relations yet in picker
2024-11-06 16:54:23 +01:00
be8141ce5e
Infer function input in workflow step ( #8308 )
...
- add `inputSchema` column in serverless function. This is an array of
parameters, with their name and type
- on serverless function id update, get the `inputSchema` + store empty
settings in step
- from step settings, build the form
TODO in next PR:
- use field type to decide what kind of form should be printed
- have a strategy to handle object as input
https://github.com/user-attachments/assets/ed96f919-24b5-4baf-a051-31f76f45e575
2024-11-05 14:57:06 +01:00
695991881f
6071 return only updated fields of records in zapier update trigger ( #8193 )
...
- move webhook triggers into `entity-events-to-db.listener.ts`
- refactor event management
- add a `@OnDatabaseEvent` decorator to manage database events
- add updatedFields in updated events
- update openApi webhooks docs
- update zapier integration
2024-11-04 17:44:36 +01:00
409def8431
Fix manual trigger output schema ( #8150 )
...
- add schema for manual trigger
- split into sub functions
- handle case with no variables
2024-10-28 17:42:09 +00:00
1aa961dedf
101 featch available variables from previous steps ( #8062 )
...
- add outputSchema in workflow step settings
- use outputSchemas to compute step available variables
https://github.com/user-attachments/assets/6b851d8e-625c-49ff-b29c-074cd86cbfee
2024-10-28 11:25:29 +00:00