This repository was archived by the owner on Jul 15, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathSearchResponse.ts
More file actions
70 lines (64 loc) · 1.41 KB
/
SearchResponse.ts
File metadata and controls
70 lines (64 loc) · 1.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
import ErrorResponse from "./ErrorResponse";
export default interface SearchResponse {
response: {
ack: String,
data: {
boxes: Box[],
totalRecords: Number,
maxPrice: Number,
facets: Facet[]
},
error: ErrorResponse
}
}
interface Box {
boxId: String,
masterBoxId: String,
boxName: String,
isMasterBox: 0 | 1,
categoryId: Number,
categoryName: String,
categoryFriendlyName: String,
superCatId: Number,
superCatName: String,
superCatFriendlyName: String,
imageUrls: {
large: String,
medium: String,
small: String,
masterBoxLarge: String,
masterBoxMedium: String,
masterBoxSmall: String
},
cannotBuy: 0 | 1,
isNewBox: 0 | 1,
sellPrice: Number,
cashPrice: Number,
exchangePrice: Number,
boxRating: Number,
outOfStock: 0 | 1,
outOfEcomStock: 0 | 1,
ecomQuantityOnHand: Number
}
export interface Facet {
superCatName: AttributeCount[],
categoryFriendlyName: AttributeCount[],
manufacturerName: AttributeCount[],
networkName: AttributeCount[],
attributeInfo: FacetAttributeInfo[],
attributeStructureInfo: any
}
export interface AttributeCount {
name: String,
id: Number,
count: Number
}
export interface FacetAttributeInfo {
attributeId: Number,
attributeFriendlyName: String,
attributeValuesInfo: FaceAttributeValueInfo[]
}
export interface FaceAttributeValueInfo {
attributeValue: Number,
count: Number
}