-
Notifications
You must be signed in to change notification settings - Fork 0
/
dataSchemas.js
211 lines (183 loc) · 5.97 KB
/
dataSchemas.js
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
export const assessments = [];
export const assessment = {
"assessment_status": 1,
"assessment_code": "",
"sale": null,
"captured_serial_number": null,
"captured_version_code":"",
"assessment_type":0, //inspector see values in django
"overall_electronic_status":null,
"overall_uptodate":null,
"components": [],
}
//NOT USED - CAREFULL
export const assessmentComponent = {
"component_type": {name:null, kind:0},
"model_component": null,
"title":null,
"small_desc":null,
"brand":null,
"status":null,
"img_url":null,
}
//NOT USED - CAREFULL
export const assessmentComponentPhysical ={
"component_type": {name:null, kind:1},
"small_desc":null,
"rank":null,
"overall_status":null,
"cracks_status":null,
"scratches_status":null,
"functional_status":null,
}
export const deviceStatusPresentation = {
components:[{
componentName:"CPU",
componentDesc:"Central Processing Unit",
},{
componentName:"RAM Memory",
componentDesc:"Volatile Memory",
},{
componentName:"Hard Disk",
componentDesc:"Hard Disk Drive",
},{
componentName:"Screen",
componentDesc:"Screen Size/Properties",
},{
componentName:"Network",
componentDesc:"Wi-fi and Ethernet",
},{
componentName:"Battery",
componentDesc:"Battery... that's it!",
}]
}
export const ActiveSaleItems=[
{title:"Date Created", field:"created"},
{title:"User", field:"user"},
{title:"Product Serial Number", field:"product"},
{title:"Pricing Type", field:["sale_price_type"], function:"pricingType"},
{title:"Pricing Value", field:["sale_price_type","lower_price", "higher_price"], function:"pricingValue"},
{title:"Expected Deal Close", field:["expected_buy_date"], function:"dateWDFormat"},
{title:"Expected Delivery Date", field:["expected_delivery_date"], function:"dateWDFormat"},
{title:"Delivery Type", field:"delivery_type"},
]
export const physicalStatusItems={
CoverCase:{
//% - //OK, SOME ISSUE, LARGE ISSUES, NOK + Photo
emailTitle:"cover",
componentName:"Cover Case",
questionName:"Scratches",
answerType:"dropDown",
},
BottomCase:{
//% - //OK, SOME ISSUE, LARGE ISSUES, NOK + Photo
emailTitle:"bottom",
componentName:"Bottom Case",
questionName:"Scratches",
answerType:"dropDown",
},
Keyboard:{
//% - //OK, SOME ISSUE, LARGE ISSUES, NOK + Photo
emailTitle:"keyboard",
componentName:"Keyboard Case",
questionName:"Scratches",
answerType:"dropDown",
},
Side:{
//% - //OK, SOME ISSUE, LARGE ISSUES, NOK + Photo
emailTitle:"side",
componentName:"Sides Case",
questionName:"Scratches",
answerType:"dropDown",
},
Screen:{
emailTitle:"screen",
componentName:"Screen Scratches",
questionName:"Scratches", //% - //OK, SOME ISSUE, LARGE ISSUES, NOK + Photo
answerType:"dropDown",
},
ScreenPixels:{
emailTitle:"pixels",
componentName:"Screen Status",
questionName:"Stains or Dead Lines", //number + Photo
answerType:"yesno",
},
Keyboard:{
//% - //OK, SOME ISSUE, LARGE ISSUES, NOK + comment
emailTitle:"keyboard",
componentName:"Keyboard",
questionName:"Keys Working",
answerType:"dropDown",
},
PowerAdapter:{ //OK, SOME ISSUE, LARGE ISSUES, NOK + comment
emailTitle:"power",
componentName:"Power Adapter",
questionName:"Working Status",
answerType:"dropDown",
},
USBPlugs:{ //OK, SOME ISSUE, LARGE ISSUES, NOK + comment
emailTitle:"usb",
componentName:"USB Plug",
questionName:"Working Status",
answerType:"dropDown",
},
FirewirePlugs:{ //OK, SOME ISSUE, LARGE ISSUES, NOK + comment
emailTitle:"firewire",
componentName:"Firewire Plug",
questionName:"Working Status",
answerType:"dropDown",
},
MiniDisplayPort:{ //OK, SOME ISSUE, LARGE ISSUES, NOK + comment
emailTitle:"minidisplay",
componentName:"miniDisplay Port",
questionName:"Working Status",
answerType:"dropDown",
},
Headphones:{ //OK, SOME ISSUE, LARGE ISSUES, NOK + comment
emailTitle:"headphones",
componentName:"Headphones",
questionName:"Working Status",
answerType:"dropDown",
},
TrackPad:{ //OK, SOME ISSUE, LARGE ISSUES, NOK + comment
emailTitle:"trackpad",
componentName:"Trackpad",
questionName:"Working Status",
answerType:"dropDown",
},
CDDVD:{ //OK, SOME ISSUE, LARGE ISSUES, NOK + comment
emailTitle:"cd",
componentName:"CD/DVD",
questionName:"Working Status",
answerType:"dropDown",
}
}
export const sale = {
"product":null,
"seller":null,
"active_flag":true,
"status": 0,
"sale_price_type":null,
"delivery_date":null,
"lower_price":null,
"higher_price":null,
"physical_components":[],
}
export const saleMessage = {
sale:null,
sender_type:0,
message_text:"",
client:null,
}
export const statusComments = [
{maxValue:25, text:"Not OK"},
{maxValue:50, text:"Have Issues"},
{maxValue:75, text:"Have Minor Issues"},
{maxValue:100, text:"OK"},
]
export const upToDateComments = [
{maxValue:25, text:"Old Device (More than 8 Years)"},
{maxValue:50, text:"Usable But Not Recent (more than 4 Years)"},
{maxValue:75, text:"Recent Device (up to 4 Years)"},
{maxValue:100, text:"Up to 2 Years Device"},
]