Skip to content

Instantly share code, notes, and snippets.

@AndreAffonso
Created June 29, 2021 17:57
Show Gist options
  • Save AndreAffonso/7f75596b1fa07cfc3389efab9e036f9d to your computer and use it in GitHub Desktop.
Save AndreAffonso/7f75596b1fa07cfc3389efab9e036f9d to your computer and use it in GitHub Desktop.
vistorias com e sem instructions
{
"data": {
"id": "8f76c8b3-4140-46a8-aed2-e67df3bea028",
"type": "inspection_details",
"attributes": {
"id": "8f76c8b3-4140-46a8-aed2-e67df3bea028",
"state": "new",
"started_at": null,
"submitted_at": null,
"user_id": "abc3d534-4e49-43c7-9062-62be6aab7bdf",
"approved_at": null,
"rejected_at": null,
"created_at": "2021-06-10T16:49:33.813Z",
"updated_at": "2021-06-10T16:49:33.913Z",
"attempts": 0,
"max_attempts": 9999,
"steps_count": 5,
"linked_entity_type": "Coverage"
},
"relationships": {
"steps": {
"data": [{
"id": "f25af8e4-b2cf-487d-8b69-eb255cd92971",
"type": "step"
}, {
"id": "8469ce6d-645a-4b76-8592-6cb36049a2ce",
"type": "step"
}, {
"id": "96876727-01bf-424d-9c60-80e871cf8743",
"type": "step"
}, {
"id": "bbb7262e-9b44-4306-a4e9-1895947442c8",
"type": "step"
}, {
"id": "c89edb91-3bc9-4518-9104-5dcad00d01c2",
"type": "step"
}]
},
"notes": {
"data": []
}
},
"links": {
"self": "/admin/inspections/8f76c8b3-4140-46a8-aed2-e67df3bea028"
}
},
"included": [{
"id": "f25af8e4-b2cf-487d-8b69-eb255cd92971",
"type": "step",
"attributes": {
"id": "f25af8e4-b2cf-487d-8b69-eb255cd92971",
"state": "new",
"name": "Foto da frente do carro",
"tag": "carro_frente",
"created_at": "2021-06-10T16:49:33.825Z",
"updated_at": "2021-06-10T16:49:33.825Z",
"public_urls": [],
"attempts": 0
},
"relationships": {
"notes": {
"data": []
}
}
}, {
"id": "8469ce6d-645a-4b76-8592-6cb36049a2ce",
"type": "step",
"attributes": {
"id": "8469ce6d-645a-4b76-8592-6cb36049a2ce",
"state": "new",
"name": "Foto da lateral do passageiro",
"tag": "carro_lateral_passageiro",
"created_at": "2021-06-10T16:49:33.838Z",
"updated_at": "2021-06-10T16:49:33.838Z",
"public_urls": [],
"attempts": 0
},
"relationships": {
"notes": {
"data": []
}
}
}, {
"id": "96876727-01bf-424d-9c60-80e871cf8743",
"type": "step",
"attributes": {
"id": "96876727-01bf-424d-9c60-80e871cf8743",
"state": "new",
"name": "Foto da traseira do carro",
"tag": "carro_traseira",
"created_at": "2021-06-10T16:49:33.847Z",
"updated_at": "2021-06-10T16:49:33.847Z",
"public_urls": [],
"attempts": 0
},
"relationships": {
"notes": {
"data": []
}
}
}, {
"id": "bbb7262e-9b44-4306-a4e9-1895947442c8",
"type": "step",
"attributes": {
"id": "bbb7262e-9b44-4306-a4e9-1895947442c8",
"state": "new",
"name": "Foto da lateral do motorista",
"tag": "carro_lateral_motorista",
"created_at": "2021-06-10T16:49:33.870Z",
"updated_at": "2021-06-10T16:49:33.870Z",
"public_urls": [],
"attempts": 0
},
"relationships": {
"notes": {
"data": []
}
}
}, {
"id": "c89edb91-3bc9-4518-9104-5dcad00d01c2",
"type": "step",
"attributes": {
"id": "c89edb91-3bc9-4518-9104-5dcad00d01c2",
"state": "new",
"name": "Foto do chassi do carro",
"tag": "carro_chassi",
"created_at": "2021-06-10T16:49:33.900Z",
"updated_at": "2021-06-10T16:49:33.900Z",
"public_urls": [],
"attempts": 0
},
"relationships": {
"notes": {
"data": []
}
}
}]
}
{
"data": {
"id": "5df8f1f5-cb1a-4e5d-a1fa-6296bc7b61e0",
"type": "inspection",
"attributes": {
"id": "5df8f1f5-cb1a-4e5d-a1fa-6296bc7b61e0",
"state": "new",
"started_at": null,
"submitted_at": null,
"created_at": "2021-06-29T17:52:16.353Z",
"updated_at": "2021-06-29T17:52:16.456Z",
"attempts": 0,
"max_attempts": 9999,
"instructions": {
"title": "Precisamos de mais algumas fotos!",
"description": "Para ativar sua proteção de Perda total, precisamos que você envie algumas fotos do seu carro.",
"image": "https://pier-inspections-stag.s3-sa-east-1.amazonaws.com/assets/inspection_instructions.png",
"tips": [{
"icon": "https://pier-inspections-stag.s3-sa-east-1.amazonaws.com/assets/icone_carro.png",
"text": "Siga as instruções para tirar cada uma das fotos."
}, {
"icon": "https://pier-inspections-stag.s3-sa-east-1.amazonaws.com/assets/icone_relogio.png",
"text": "Tire as fotos em um local iluminado."
}, {
"icon": "https://pier-inspections-stag.s3-sa-east-1.amazonaws.com/assets/icone_lista.png",
"text": "Depois de terminar sua vistoria, a nossa análise leva até 48 horas."
}]
},
"steps_count": 5,
"linked_entity_type": "Coverage"
},
"relationships": {
"steps": {
"data": [{
"id": "3c2e0879-9d10-4468-a52e-578800e872e5",
"type": "step"
}, {
"id": "cdc0c8e2-452d-4606-a526-f1facc1007d8",
"type": "step"
}, {
"id": "1b85bc97-ebd3-488d-9f51-45e90b8d4842",
"type": "step"
}, {
"id": "2449db43-18d8-4f63-ab0d-cfc04a5a7c5d",
"type": "step"
}, {
"id": "8642e4d3-4a98-4da1-a36d-234d7072fc73",
"type": "step"
}]
},
"notes": {
"data": []
}
}
},
"included": [{
"id": "3c2e0879-9d10-4468-a52e-578800e872e5",
"type": "step",
"attributes": {
"id": "3c2e0879-9d10-4468-a52e-578800e872e5",
"state": "new",
"name": "Foto da frente do carro",
"tag": "carro_frente",
"created_at": "2021-06-29T17:52:16.366Z",
"updated_at": "2021-06-29T17:52:16.366Z",
"public_urls": [],
"attempts": 0
},
"relationships": {
"notes": {
"data": []
}
}
}, {
"id": "cdc0c8e2-452d-4606-a526-f1facc1007d8",
"type": "step",
"attributes": {
"id": "cdc0c8e2-452d-4606-a526-f1facc1007d8",
"state": "new",
"name": "Foto da lateral do passageiro",
"tag": "carro_lateral_passageiro",
"created_at": "2021-06-29T17:52:16.391Z",
"updated_at": "2021-06-29T17:52:16.391Z",
"public_urls": [],
"attempts": 0
},
"relationships": {
"notes": {
"data": []
}
}
}, {
"id": "1b85bc97-ebd3-488d-9f51-45e90b8d4842",
"type": "step",
"attributes": {
"id": "1b85bc97-ebd3-488d-9f51-45e90b8d4842",
"state": "new",
"name": "Foto da traseira do carro",
"tag": "carro_traseira",
"created_at": "2021-06-29T17:52:16.407Z",
"updated_at": "2021-06-29T17:52:16.407Z",
"public_urls": [],
"attempts": 0
},
"relationships": {
"notes": {
"data": []
}
}
}, {
"id": "2449db43-18d8-4f63-ab0d-cfc04a5a7c5d",
"type": "step",
"attributes": {
"id": "2449db43-18d8-4f63-ab0d-cfc04a5a7c5d",
"state": "new",
"name": "Foto da lateral do motorista",
"tag": "carro_lateral_motorista",
"created_at": "2021-06-29T17:52:16.422Z",
"updated_at": "2021-06-29T17:52:16.422Z",
"public_urls": [],
"attempts": 0
},
"relationships": {
"notes": {
"data": []
}
}
}, {
"id": "8642e4d3-4a98-4da1-a36d-234d7072fc73",
"type": "step",
"attributes": {
"id": "8642e4d3-4a98-4da1-a36d-234d7072fc73",
"state": "new",
"name": "Foto do chassi do carro",
"tag": "carro_chassi",
"created_at": "2021-06-29T17:52:16.438Z",
"updated_at": "2021-06-29T17:52:16.438Z",
"public_urls": [],
"attempts": 0
},
"relationships": {
"notes": {
"data": []
}
}
}]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment