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>
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
export interface Record {
|
||||
export interface ObjectRecord {
|
||||
id: string;
|
||||
[key: string]: any;
|
||||
createdAt: string;
|
||||
@ -6,8 +6,8 @@ export interface Record {
|
||||
deletedAt: string | null;
|
||||
}
|
||||
|
||||
export type RecordFilter = {
|
||||
[Property in keyof Record]: any;
|
||||
export type ObjectRecordFilter = {
|
||||
[Property in keyof ObjectRecord]: any;
|
||||
};
|
||||
|
||||
export enum OrderByDirection {
|
||||
@ -17,11 +17,11 @@ export enum OrderByDirection {
|
||||
DescNullsLast = 'DescNullsLast',
|
||||
}
|
||||
|
||||
export type RecordOrderBy = Array<{
|
||||
[Property in keyof Record]?: OrderByDirection;
|
||||
export type ObjectRecordOrderBy = Array<{
|
||||
[Property in keyof ObjectRecord]?: OrderByDirection;
|
||||
}>;
|
||||
|
||||
export interface RecordDuplicateCriteria {
|
||||
export interface ObjectRecordDuplicateCriteria {
|
||||
objectName: string;
|
||||
columnNames: string[];
|
||||
}
|
||||
Reference in New Issue
Block a user