Skip to content

Instantly share code, notes, and snippets.

@oxyc
Last active February 24, 2022 16:13
Show Gist options
  • Save oxyc/821356725069fa08c4fea23a06c6be53 to your computer and use it in GitHub Desktop.
Save oxyc/821356725069fa08c4fea23a06c6be53 to your computer and use it in GitHub Desktop.
{
"datalists": {
"bcpg:ingLabelingList":[
// We need only this one, but seems there's no proper identifier besides the uuids
// Are the uuid same on all products?
{
"cm:name":"8ffa0582-acc2-4590-85b8-7e6cbad80caf",
"attributes":{
"bcpg:illValue_sv_SE":"ham, water, salt, socker 0,7%, stabiliseringsmedel 0,5%, kryddor 0,1%, mjölkpulver (<b>mjölk<\/b>) 0,08%, antioxidationsmedel 0,03%: E301 0,03%, konserveringsmedel 0,01%: E250 0,01%",
"bcpg:illValue":"ham, water, salt, sugar 0.7%, stabilizer 0.5%, spices 0.1%, <b>milk<\/b> powder 0.08%, antioxidant 0.03%: E301 0.03%, preservative 0.01%: E250 0.01%",
"bcpg:illManualValue_fi":" Kinkku (alkuperä Suomi), vesi, suola, stabilointiaineet (E450, E451), sokeri, mausteet (mustapippuri, valkopippuri, korianteri, sipuli, palsternakka), hapettumisenestoaine (E301), säilöntäaine (E250). ",
"bcpg:illValue_fr":"ham, water, salt, sucre 0,7%, stabilizer 0,5%, epices 0,1%, <b>lait<\/b> poudre 0,08%, antioxydant 0,03% : ascorbate de sodium, vitamine c 0,03%, conservateur 0,01% : nitrite de sodium 0,01%",
"bcpg:illManualValue_sv_SE":" Skinka (ursprung Finland), vatten, salt, stabiliseringsmedel (E450, E451), socker, kryddor (svartpeppar, vitpeppar, koriander, lök, palsternacka), antioxidationsmedel (E301), konserveringsmedel (E250). ",
"bcpg:illManualValue":"Pork ham (origin Finland), water, salt, stabilizers (E450, E451), sugar, spices (black peppar, whiter peppar, coriander, onion, parsnip), antioxidant (E301), preservative (E250).",
"bcpg:illManualValue_en":"Pork ham (origin Finland), water, salt, stabilizers (E450, E451), sugar, spices (black peppar, whiter peppar, coriander, onion, parsnip), antioxidant (E301), preservative (E250).",
"bcpg:illValue_en":"ham, water, salt, sugar 0.7%, stabilizer 0.5%, spices 0.1%, <b>milk<\/b> powder 0.08%, antioxidant 0.03%: E301 0.03%, preservative 0.01%: E250 0.01%",
"bcpg:illValue_fi":"kinkut, vesi, suola, sokeri 0,7%, stabilointiaineet 0,5%, mausteet 0,1%, maitojauhe (<b>maito<\/b>) 0,08%, hapettumisenestoaine 0,03%: E301 0,03%, säilöntäaine 0,01%: E250 0,01%",
},
"id":"e723286a-469c-4403-85bc-6705d2bcd139",
"type":"bcpg:ingLabelingList"
}
],
"bcpg:allergenList":[
// Are there translations of these?
{
"cm:name": "538f9ad6-a869-43fb-bdc7-2e3a7827098c",
"attributes": {
"bcpg:allergenListAllergen": {
"bcpg:charactName": "Egg and egg-based product",
"id": "cf9a5a9a-4b18-4838-8d9e-e3bd9096b6eb",
"type": "bcpg:allergen"
},
"bcpg:allergenListDecisionTree": "[]",
},
"id": "4fe7a11b-5455-4e8d-a2d8-7d351ae6b039",
"type": "bcpg:allergenList"
},
],
"bcpg:nutList":[
// Are there translations of these charactName labels?
{
"cm:name":"ENER-E14",
"attributes":{
"bcpg:nutListNut":{
"bcpg:charactName":"Energy kcal",
"id":"8a7aad9b-764f-46d9-a2da-ae27c1c05ba5",
},
"bcpg:nutListMethod":"Formulation",
"bcpg:nutListGroup":"Groupe 1",
"bcpg:nutListFormulatedMaxi":0,
"bcpg:nutListFormulatedValue":106.8,
"bcpg:nutListMethod_sv_SE":"Formulering",
"bcpg:nutListMethod_en":"Formulation",
"bcpg:nutListRoundedValue":"{\"min\":{\"EU\":0},\"max\":{\"EU\":0},\"gda\":{},\"v\":{\"EU\":107},\"vps\":{},\"vpc\":{},\"v2ps\":{},\"v2\":{},\"gdapc\":{}}",
"bcpg:nutListGroup_en":"Group 1",
"bcpg:nutListUnit":"kcal/100g",
"cm:name":"ENER-E14",
},
},
],
"bcpg:labelClaimList":[
// Are there translations of these charactName labels?
{
"cm:name":"4e481f6a-e636-404d-8f70-8b849c0022cb",
"attributes":{
"bcpg:lclClaimValue":"true",
"bcpg:lclLabelClaim":{
"bcpg:charactName":"BLUE SWAN",
"id":"aab152d3-1abf-4a67-a755-85465b98b7eb",
},
"cm:name":"4e481f6a-e636-404d-8f70-8b849c0022cb",
},
"id":"79d043ea-1071-4302-8571-0e65385b1c38",
"type":"bcpg:labelClaimList"
}
],
"attributes": {
"bcpg:code": "FP83", // <-- is it this one, or erpCode that's used in m3?
"bcpg:eanCode": "6409620362200",
"bcpg:eanCodeLevel2": "6409628308620", // <-- what's this, I guess we only need `bcpg:eanCode`?
"bcpg:erpCode": "10862", // <-- do we need this?
"bcpg:meatContentData": "{\"Porcines\":{\"proteinPerc\":21.33580505666398,\"fatPerc\":4.859745841340862,\"collagenPerc\":1.1594067864006454,\"qtyPerc\":81.70795985263167}}",
"bcpg:netWeight": 0.3,
"bcpg:numberOfServings_en": "",
"bcpg:numberOfServings_fi": "",
"bcpg:packagingDescription_en": "",
"bcpg:packagingDescription_fi": "",
"bcpg:preparationTips_en": "",
"bcpg:preparationTips_fi": "",
"bcpg:preparationTips_sv_SE": "",
"bcpg:productGeoOrigin": [
{
// Are there translations of these?
"bcpg:charactName": "Finland",
"id": "8be1e3cc-f5e2-4ba5-9d3f-c7d5a228fcaf",
}
],
"bcpg:productQty": 1,
"bcpg:servingSizeText_en": "",
"bcpg:servingSizeText_fi": "",
"bcpg:servingSizeUnit": "g",
"bcpg:storageConditionsRef": {
// We need this in multiple languages
"bcpg:charactName": "Store in a fridge between +2 - +6 °C",
"id": "5d661007-3c97-4eba-8b35-fdc03bfb0208",
},
"bcpg:useByDate": 24,
"cm:contains": [
{
"cm:name": "Images",
"attributes": {
"cm:contains": [
{
"cm:name": "product.jpg", // <-- we need the product image url/blob
}
]
},
"type": "cm:folder"
}
],
"cm:created": "2020-03-24T15:23:54.452Z",
"cm:description": "Snellman Sandwich ham in slices 300g",
"cm:description_en": "Snellman Sandwich ham in slices 300g",
"cm:description_fi": "Snellman Voileipäkinkku 300g",
"cm:description_sv_SE": "Snellman Smörgåsskinka 300g",
"cm:modified": "2022-02-16T05:51:04.786Z",
"cm:name": "10862 VOILEIPÄKINKKU 300G",
// We actually need a title without the weight in it, but I guess that's not available
"cm:title": "Sandwich ham 300g",
"cm:title_en": "Sandwich ham 300g",
"cm:title_fi": "Voileipäkinkku 300g",
"cm:title_sv_SE": "Smörgåsskinka 300g",
// Not sure if we need this, MUSH wants to display how many packages and the
// total weight of an order on the checkout, is that from this somehow?
"gs1:depth": 35,
"gs1:effectiveDate": "2013-03-03T22:00:00.000Z",
"gs1:height": 225,
"gs1:packagingTypeCode": "BX",
"gs1:packagingTypeCode_en": "Box",
"gs1:packagingTypeCode_fi": "Rasia",
"gs1:packagingTypeCode_sv_SE": "Låda/Box",
"gs1:startAvailabilityDateTime": "2013-03-03T22:00:00.000Z",
"gs1:weight": 0.321616,
"gs1:width": 126,
"snellman:consumerUsageInstructions_en": "",
"snellman:consumerUsageInstructions_fi": "",
"snellman:expDateManagement_en": "1-Vastaanottopvm",
"snellman:expDateManagement_fi": "1-Vastaanottopvm",
"snellman:expDateManagement_sv_SE": "1-Vastaanottopvm",
"snellman:healthClaimDescription_en": "",
"snellman:healthClaimDescription_fi": "",
"snellman:m3ManualGrossWeight": 0.32, // <-- what's this vs manualPrimaryGrossWeight? if we use g1s:weight we can skip this
"snellman:manualPrimaryGrossWeight": 0.32,
"snellman:preparationTypeCode": [
"READY_TO_EAT"
],
"snellman:servingSuggestion_en": "",
"snellman:servingSuggestion_fi": "",
"snellman:tradeItemMarketingMessage_en": "",
"snellman:tradeItemMarketingMessage_fi": ""
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment