Fill out partNumbers json file with complete data for the x model
This commit is contained in:
3
index.js
3
index.js
@ -19,7 +19,8 @@ const optionDefinitions = [
|
|||||||
const options = commandLineArgs(optionDefinitions);
|
const options = commandLineArgs(optionDefinitions);
|
||||||
|
|
||||||
// Get part number for the specified device.
|
// Get part number for the specified device.
|
||||||
const partNumber = partNumbers[options.model][options.color][options.storage];
|
const partNumber =
|
||||||
|
partNumbers[options.model][options.carrier.toUpperCase()][options.color][options.storage];
|
||||||
|
|
||||||
// Construct the endpoint url with the options selected.
|
// Construct the endpoint url with the options selected.
|
||||||
const endpoint = `https://www.apple.com/shop/retail/pickup-message?pl=true&cppart=${options.carrier}/US&parts.0=${partNumber}&location=${options.zip}`;
|
const endpoint = `https://www.apple.com/shop/retail/pickup-message?pl=true&cppart=${options.carrier}/US&parts.0=${partNumber}&location=${options.zip}`;
|
||||||
|
@ -1,22 +1,44 @@
|
|||||||
{
|
{
|
||||||
"x": {
|
"x": {
|
||||||
"gray": {
|
"TMOBILE": {
|
||||||
"64": "",
|
"gray": {
|
||||||
"256": "MQAU2LL/A"
|
"64": "MQAQ2LL/A",
|
||||||
|
"256": "MQAU2LL/A"
|
||||||
|
},
|
||||||
|
"silver": {
|
||||||
|
"64": "MQAR2LL/A",
|
||||||
|
"256": "MQAV2LL/A"
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"silver": {
|
"ATT": {
|
||||||
"64": "",
|
"gray": {
|
||||||
"256": ""
|
"64": "MQAJ2LL/A",
|
||||||
}
|
"256": "MQAM2LL/A"
|
||||||
},
|
},
|
||||||
"8": {
|
"silver": {
|
||||||
"gray": {
|
"64": "MQAK2LL/A",
|
||||||
"64": "",
|
"256": "MQAN2LL/A"
|
||||||
"256": "MQ932LL/A"
|
}
|
||||||
},
|
},
|
||||||
"silver": {
|
"SPRINT": {
|
||||||
"64": "",
|
"gray": {
|
||||||
"256": ""
|
"64": "MQCR2LL/A",
|
||||||
|
"256": "MQCV2LL/A"
|
||||||
|
},
|
||||||
|
"silver": {
|
||||||
|
"64": "MQCT2LL/A",
|
||||||
|
"256": "MQCW2LL/A"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"VERIZON": {
|
||||||
|
"gray": {
|
||||||
|
"64": "MQCK2LL/A",
|
||||||
|
"256": "MQCN2LL/A"
|
||||||
|
},
|
||||||
|
"silver": {
|
||||||
|
"64": "MQCL2LL/A",
|
||||||
|
"256": "MQCP2LL/A"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user