-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Query parameters in all methods (#15)
- Loading branch information
1 parent
c014f82
commit 7cf8bbd
Showing
4 changed files
with
161 additions
and
8 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
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 |
---|---|---|
@@ -1,9 +1,13 @@ | ||
export type ParsedSpreadsheetCellValue = string | number | boolean | Date | object; | ||
export type ParsedSpreadsheetCellValue = string | number | boolean | Date; | ||
|
||
export type Query<T> = { | ||
[column in keyof T]?: ParsedSpreadsheetCellValue; | ||
filter?: { | ||
[column in keyof T]?: ParsedSpreadsheetCellValue | ParsedSpreadsheetCellValue[]; | ||
}; | ||
// paging?: PagingQuery; | ||
}; | ||
|
||
export type InQuery<T> = { | ||
[column in keyof T]?: ParsedSpreadsheetCellValue[]; | ||
}; | ||
// export type PagingQuery = { | ||
// from?: number; | ||
// to?: number; | ||
// }; |
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 |
---|---|---|
@@ -1,6 +1,7 @@ | ||
export * from './GoogleSpreadsheetsOrm'; | ||
export * from './Options'; | ||
export * from './Castings'; | ||
export * from './Query'; | ||
export { BaseModel } from './BaseModel'; | ||
export { MetricOperation } from './metrics/MetricOperation'; | ||
export { CacheProvider } from './cache/CacheProvider'; |
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