-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #51 from comake/groupBySupport
Group by support
- Loading branch information
Showing
9 changed files
with
389 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"typescript.tsdk": "node_modules/typescript/lib" | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import { FindOptionsWhere } from "./FindOptionsTypes"; | ||
Check failure on line 1 in src/storage/GroupOptionTypes.ts GitHub Actions / lint
|
||
|
||
// Add these types at the top of the file | ||
export interface GroupByOptions { | ||
where?: FindOptionsWhere; | ||
groupBy?: string[]; | ||
dateRange?: { | ||
start: string; | ||
end: string; | ||
}; | ||
dateGrouping?: "month" | "day"; | ||
Check failure on line 11 in src/storage/GroupOptionTypes.ts GitHub Actions / lint
|
||
limit?: number; | ||
offset?: number; | ||
} | ||
|
||
export interface GroupResult { | ||
group: Record<string, string | number>; | ||
count: number; | ||
entityIds: string[]; | ||
} | ||
|
||
export interface GroupByResponse { | ||
results: GroupResult[]; | ||
meta: { | ||
totalCount: number; | ||
dateRange?: { | ||
start: string; | ||
end: string; | ||
}; | ||
groupings: string[]; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.