interface.ts 566 B

12345678910111213141516171819202122232425
  1. import { Observable } from "rxjs"
  2. export interface Conditions {
  3. $regex?: string,
  4. $dateRange?: DateRange,
  5. [key: string]: string | Date | DateRange | string[]
  6. }
  7. export interface DateRange {
  8. startDate: string | Date,
  9. endDate: string | Date,
  10. column: string
  11. }
  12. export type StorageLocationType = 'File' | 'MongoDB'
  13. export interface StorageLocation {
  14. type: StorageLocationType,
  15. url: string
  16. }
  17. export interface ObservableStorage {
  18. type: "observable",
  19. ref: Observable<any>
  20. }
  21. export type Storage = ObservableStorage | StorageLocation