SHARE
TWEET

Untitled

a guest Aug 24th, 2019 75 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import { Product } from "./product.model";
  2. import { Offer } from "./offer.model";
  3. import { Store } from "./store.model";
  4. import { Money } from "./money.model";
  5. import { Geolocation } from "./geolocation.model";
  6.  
  7. export interface Hit {
  8.   _id: string
  9.   name: string
  10.   categoryName: string
  11.   subCategoryName: string
  12.   imageUrl: string
  13.   merchantUID: string
  14.   offer: Offer
  15.   price: Money
  16.   hasOffer: boolean
  17.   description: string
  18.   store: Store
  19.   _geoloc: Geolocation
  20.   ObjectID: string
  21. }
  22. export interface SearchResult {
  23.   hits?: Hit[],
  24.   hitsPerPage?: number,
  25.   indexUsed?: string,
  26.   page?: number,
  27.   query?: string
  28. }
  29.  
  30. export interface SearchParameters {
  31.   query?: string,
  32.   filters?: string,
  33.   page?: number
  34. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top