daily pastebin goal
17%
SHARE
TWEET

Untitled

a guest Feb 22nd, 2019 65 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2.   public saveSuggestion = (sellerId: string, itemId: string, suggestion: Suggestion) =>
  3.     this.put<Suggestion>(`/${sellerId}/${itemId}`, suggestion)
  4.  
  5.   public getVersions = (sellerId: string, itemId: string) =>
  6.     this.get<Suggestion>(`/${sellerId}/${itemId}/versions`) // #
  7.  
  8.   public getSuggestionByVersion = (sellerId: string, itemId: string, version: string) =>
  9.     this.get<Suggestion>(`/${sellerId}/${itemId}/versions/${version}`)
  10.  
  11.   public getSuggestionsBySeller = (sellerId: string) =>
  12.     this.get<Suggestion>(`/?seller=${sellerId}`) // #
  13.  
  14.   public searchSuggestions = (term: string) =>
  15.     this.get<Suggestion>(`/?q=${term}`) // #
  16.  
  17.   public searchSuggestionsWithPaging = (term: string, from: string, to: string) =>
  18.     this.get<Suggestion>(`?q=${term}&_from=${from}&_to=${to}`) // #
  19.  
  20.   public searchSuggestionsBySeller = (term: string, sellerId: string) =>
  21.     this.get<Suggestion>(`/?q=${term}&seller=${sellerId}`) // #
  22.  
  23.   public searchSuggestionsByStatus = (status: SuggestionStatus) =>
  24.     this.get<Suggestion>(`/?status=${status}`) // #
  25.  
  26.   public searchSuggestionsByMatcher = (matcherId: string) =>
  27.     this.get<Suggestion>(`/?matcherid=${matcherId}`) // #
  28.  
  29.   public searchSuggestionsByMapping = (hasMapping: boolean) =>
  30.     this.get<Suggestion>(`/?hasmapping=${hasMapping}`) // #
  31.  
  32.   public deleteSuggestion = (sellerId: string, itemId: string) =>
  33.     this.delete<Suggestion>(`/${sellerId}/${itemId}`)
  34.  
  35.   public feed = () =>
  36.     this.get<Suggestion>(``)
  37.  
  38.   public feedWithNextToken = (token: string) =>
  39.     this.get<Suggestion>(`?_next=${token}`)
  40.  
  41.   public match = (sellerId: string, itemId: string, version: string, matcherId: string) =>
  42.     this.put<Suggestion>(`/${sellerId}/${itemId}/versions/${version}/matches/${matcherId}`)
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