Skip to content

Instantly share code, notes, and snippets.

@NoiseEee
Created September 9, 2016 20:59
Show Gist options
  • Save NoiseEee/59c91836971e0af89aa8b9aeab72c836 to your computer and use it in GitHub Desktop.
Save NoiseEee/59c91836971e0af89aa8b9aeab72c836 to your computer and use it in GitHub Desktop.
{
data: {
type: "survey",
id: "158c8173-463d-494b-b94b-b1078a8b6aef",
attributes: {
id: "513376a8-3102-4254-bd46-3a47910b0b1e",
key: "513376a8-3102-4254-bd46-3a47910b0b1e",
name: "Daily Check-In",
isActive: 1,
instructions: null,
type: "admin"
},
relationships: {
survey-sections: {
data: [
{
type: "survey-section",
id: "02f392fe-7e7f-47ec-9be9-85af993d92f5"
},
{
type: "survey-section",
id: "28edde87-c52a-4a23-8e80-efe87ae95600"
},
{
type: "survey-section",
id: "df1ec345-81dd-4037-9b85-ae1a788f30b4"
},
{
type: "survey-section",
id: "a42e9b5c-7ef4-442f-9218-82d0a41587e6"
},
{
type: "survey-section",
id: "216fc21a-ca2f-4e3c-af18-5aa935db5437"
}
]
},
job: {
data: {
type: "job",
id: "bmthwr2qdj5h678t4wjh"
}
},
admin: {
data: {
type: "admin",
id: "soadhoh4ohf"
}
}
},
links: {
self: "http://api.debian-vm/siteTechCheckIn/surveys/158c8173-463d-494b-b94b-b1078a8b6aef"
}
},
included: [
{
type: "survey-section",
id: "02f392fe-7e7f-47ec-9be9-85af993d92f5",
attributes: {
name: "Job Timing",
text: null,
is-required: true,
display-order: 1
},
relationships: {
questions: {
data: [
{
type: "question",
id: "17625970-83e2-48ee-b82b-e483d4be61c2"
},
{
type: "question",
id: "0498d0ca-5ca0-4060-9904-867b463dfd88"
},
{
type: "question",
id: "94a7e93c-374e-4dcc-a5f7-a5a6978e0063"
},
{
type: "question",
id: "0460289c-2844-42d8-a691-2adeae601620"
},
{
type: "question",
id: "5f778031-89d1-4fa0-b837-4a544dc6a8ac"
}
]
}
},
links: {
self: "http://api.debian-vm/siteTechCheckIn/surveys/158c8173-463d-494b-b94b-b1078a8b6aef/surveySections/02f392fe-7e7f-47ec-9be9-85af993d92f5"
}
},
{
type: "question",
id: "17625970-83e2-48ee-b82b-e483d4be61c2",
attributes: {
name: "Did you attend this job today as scheduled?",
subtext: null,
answer-required: true,
allow-multiple-option-answers: false,
display-order: 1,
pre-answers-hint: null,
post-answers-hint: null,
placeholder: null,
answerInputType: "radio",
answerOptions: [
{
name: "Yes",
id: 27,
value: 27
},
{
name: "No",
id: 28,
value: 28
}
]
},
links: {
self: "http://api.debian-vm/siteTechCheckIn/surveys/158c8173-463d-494b-b94b-b1078a8b6aef/surveySections/158c8173-463d-494b-b94b-b1078a8b6aef/questions/17625970-83e2-48ee-b82b-e483d4be61c2"
}
},
{
type: "question",
id: "0498d0ca-5ca0-4060-9904-867b463dfd88",
attributes: {
name: "Approximately what time did you arrive on-site?",
subtext: null,
answer-required: true,
allow-multiple-option-answers: false,
display-order: 2,
pre-answers-hint: null,
post-answers-hint: null,
placeholder: null,
answerInputType: "time",
answerOptions: [
]
},
links: {
self: "http://api.debian-vm/siteTechCheckIn/surveys/158c8173-463d-494b-b94b-b1078a8b6aef/surveySections/158c8173-463d-494b-b94b-b1078a8b6aef/questions/0498d0ca-5ca0-4060-9904-867b463dfd88"
}
},
{
type: "question",
id: "94a7e93c-374e-4dcc-a5f7-a5a6978e0063",
attributes: {
name: "Approximately how many hours were you on-site?",
subtext: null,
answer-required: true,
allow-multiple-option-answers: true,
display-order: 3,
pre-answers-hint: null,
post-answers-hint: null,
placeholder: null,
answerInputType: "number",
answerOptions: [
]
},
links: {
self: "http://api.debian-vm/siteTechCheckIn/surveys/158c8173-463d-494b-b94b-b1078a8b6aef/surveySections/158c8173-463d-494b-b94b-b1078a8b6aef/questions/94a7e93c-374e-4dcc-a5f7-a5a6978e0063"
}
},
{
type: "question",
id: "0460289c-2844-42d8-a691-2adeae601620",
attributes: {
name: "Why not?",
subtext: null,
answer-required: true,
allow-multiple-option-answers: false,
display-order: 4,
pre-answers-hint: null,
post-answers-hint: null,
placeholder: "ie. My dog was sick",
answerInputType: "textarea",
answerOptions: [
]
},
links: {
self: "http://api.debian-vm/siteTechCheckIn/surveys/158c8173-463d-494b-b94b-b1078a8b6aef/surveySections/158c8173-463d-494b-b94b-b1078a8b6aef/questions/0460289c-2844-42d8-a691-2adeae601620"
}
},
{
type: "question",
id: "5f778031-89d1-4fa0-b837-4a544dc6a8ac",
attributes: {
name: "Did you inform the office?",
subtext: null,
answer-required: true,
allow-multiple-option-answers: false,
display-order: 5,
pre-answers-hint: null,
post-answers-hint: null,
placeholder: null,
answerInputType: "radio",
answerOptions: [
{
name: "Yes",
id: 27,
value: 27
},
{
name: "No",
id: 28,
value: 28
}
]
},
links: {
self: "http://api.debian-vm/siteTechCheckIn/surveys/158c8173-463d-494b-b94b-b1078a8b6aef/surveySections/158c8173-463d-494b-b94b-b1078a8b6aef/questions/5f778031-89d1-4fa0-b837-4a544dc6a8ac"
}
},
{
type: "survey-section",
id: "28edde87-c52a-4a23-8e80-efe87ae95600",
attributes: {
name: "Job Difficulty",
text: null,
is-required: true,
display-order: 2
},
relationships: {
questions: {
data: [
{
type: "question",
id: "9ca6f9c4-5d0d-41e1-be07-9ea56ffa541a"
},
{
type: "question",
id: "6de3d2d6-0dfb-4aad-bb81-6c56b4da4d44"
},
{
type: "question",
id: "6a977fd9-15af-460c-8496-beedeb873b1e"
},
{
type: "question",
id: "ac4b5f16-9b73-46e8-b617-360ee903d2a2"
}
]
}
},
links: {
self: "http://api.debian-vm/siteTechCheckIn/surveys/158c8173-463d-494b-b94b-b1078a8b6aef/surveySections/28edde87-c52a-4a23-8e80-efe87ae95600"
}
},
{
type: "question",
id: "9ca6f9c4-5d0d-41e1-be07-9ea56ffa541a",
attributes: {
name: "Curves & Angles",
subtext: null,
answer-required: true,
allow-multiple-option-answers: false,
display-order: 6,
pre-answers-hint: "Few Curves & Angles",
post-answers-hint: "Many Curves & Angles",
placeholder: null,
answerInputType: "radio",
answerOptions: [
{
name: "1",
id: 22,
value: 22
},
{
name: "2",
id: 23,
value: 23
},
{
name: "3",
id: 24,
value: 24
},
{
name: "4",
id: 25,
value: 25
},
{
name: "5",
id: 26,
value: 26
}
]
},
links: {
self: "http://api.debian-vm/siteTechCheckIn/surveys/158c8173-463d-494b-b94b-b1078a8b6aef/surveySections/158c8173-463d-494b-b94b-b1078a8b6aef/questions/9ca6f9c4-5d0d-41e1-be07-9ea56ffa541a"
}
},
{
type: "question",
id: "6de3d2d6-0dfb-4aad-bb81-6c56b4da4d44",
attributes: {
name: "Wall Density",
subtext: null,
answer-required: true,
allow-multiple-option-answers: false,
display-order: 7,
pre-answers-hint: "Few Walls",
post-answers-hint: "Many Walls",
placeholder: null,
answerInputType: "radio",
answerOptions: [
{
name: "1",
id: 22,
value: 22
},
{
name: "2",
id: 23,
value: 23
},
{
name: "3",
id: 24,
value: 24
},
{
name: "4",
id: 25,
value: 25
},
{
name: "5",
id: 26,
value: 26
}
]
},
links: {
self: "http://api.debian-vm/siteTechCheckIn/surveys/158c8173-463d-494b-b94b-b1078a8b6aef/surveySections/158c8173-463d-494b-b94b-b1078a8b6aef/questions/6de3d2d6-0dfb-4aad-bb81-6c56b4da4d44"
}
},
{
type: "question",
id: "6a977fd9-15af-460c-8496-beedeb873b1e",
attributes: {
name: "Level of Detail",
subtext: null,
answer-required: true,
allow-multiple-option-answers: false,
display-order: 8,
pre-answers-hint: "Low LOD",
post-answers-hint: "High LOD",
placeholder: null,
answerInputType: "radio",
answerOptions: [
{
name: "1",
id: 22,
value: 22
},
{
name: "2",
id: 23,
value: 23
},
{
name: "3",
id: 24,
value: 24
},
{
name: "4",
id: 25,
value: 25
},
{
name: "5",
id: 26,
value: 26
}
]
},
links: {
self: "http://api.debian-vm/siteTechCheckIn/surveys/158c8173-463d-494b-b94b-b1078a8b6aef/surveySections/158c8173-463d-494b-b94b-b1078a8b6aef/questions/6a977fd9-15af-460c-8496-beedeb873b1e"
}
},
{
type: "question",
id: "ac4b5f16-9b73-46e8-b617-360ee903d2a2",
attributes: {
name: "Building / Room Access",
subtext: null,
answer-required: true,
allow-multiple-option-answers: false,
display-order: 9,
pre-answers-hint: "Easy to Access",
post-answers-hint: "Hard to Access",
placeholder: null,
answerInputType: "radio",
answerOptions: [
{
name: "1",
id: 22,
value: 22
},
{
name: "2",
id: 23,
value: 23
},
{
name: "3",
id: 24,
value: 24
},
{
name: "4",
id: 25,
value: 25
},
{
name: "5",
id: 26,
value: 26
}
]
},
links: {
self: "http://api.debian-vm/siteTechCheckIn/surveys/158c8173-463d-494b-b94b-b1078a8b6aef/surveySections/158c8173-463d-494b-b94b-b1078a8b6aef/questions/ac4b5f16-9b73-46e8-b617-360ee903d2a2"
}
},
{
type: "survey-section",
id: "df1ec345-81dd-4037-9b85-ae1a788f30b4",
attributes: {
name: "Job Delays",
text: null,
is-required: true,
display-order: 3
},
relationships: {
questions: {
data: [
{
type: "question",
id: "73cf6eb1-a5ea-4e20-a763-e4f31f342d00"
},
{
type: "question",
id: "615613d1-bdca-4285-a1ea-026920e9092f"
},
{
type: "question",
id: "35821f23-7158-45ab-962f-f390d2bd0f6a"
},
{
type: "question",
id: "73ac35df-a96a-4c94-a903-655cb90998ab"
}
]
}
},
links: {
self: "http://api.debian-vm/siteTechCheckIn/surveys/158c8173-463d-494b-b94b-b1078a8b6aef/surveySections/df1ec345-81dd-4037-9b85-ae1a788f30b4"
}
},
{
type: "question",
id: "73cf6eb1-a5ea-4e20-a763-e4f31f342d00",
attributes: {
name: "Did you enounter any significant delays on the job?",
subtext: null,
answer-required: true,
allow-multiple-option-answers: false,
display-order: 10,
pre-answers-hint: null,
post-answers-hint: null,
placeholder: null,
answerInputType: "radio",
answerOptions: [
{
name: "Yes",
id: 27,
value: 27
},
{
name: "No",
id: 28,
value: 28
}
]
},
links: {
self: "http://api.debian-vm/siteTechCheckIn/surveys/158c8173-463d-494b-b94b-b1078a8b6aef/surveySections/158c8173-463d-494b-b94b-b1078a8b6aef/questions/73cf6eb1-a5ea-4e20-a763-e4f31f342d00"
}
},
{
type: "question",
id: "615613d1-bdca-4285-a1ea-026920e9092f",
attributes: {
name: "Why were you delayed?",
subtext: null,
answer-required: true,
allow-multiple-option-answers: true,
display-order: 11,
pre-answers-hint: null,
post-answers-hint: null,
placeholder: null,
answerInputType: "checkbox",
answerOptions: [
{
name: "The building address in the job order is inccorrect or misleading",
id: 1,
value: 1
},
{
name: "The job order did not contain adequate entry information",
id: 2,
value: 2
},
{
name: "At first I couldn't find the building, but I eventually found it",
id: 3,
value: 3
},
{
name: "Tenants weren't informed we were coming",
id: 4,
value: 4
},
{
name: "Tenants weren't cooperative",
id: 5,
value: 5
},
{
name: "My site contact was late",
id: 6,
value: 6
},
{
name: "My site contact didn't show up",
id: 7,
value: 7
},
{
name: "Security wouldn't let me in",
id: 8,
value: 8
},
{
name: "I had to do safety training/orientation",
id: 9,
value: 9
},
{
name: "Construction and/or other hazards prevented access",
id: 10,
value: 10
},
{
name: "Parts of the job site were inaccessible or impassable",
id: 11,
value: 11
},
{
name: "There was heavy traffic",
id: 12,
value: 12
},
{
name: "There was bad weather",
id: 13,
value: 13
},
{
name: "My car broke down",
id: 14,
value: 14
},
{
name: "My flight was delayed",
id: 15,
value: 15
},
{
name: "I missed my scheduled flight",
id: 16,
value: 16
},
{
name: "I had hardware and/or software problems",
id: 17,
value: 17
},
{
name: "My batteries ran out",
id: 18,
value: 18
},
{
name: "I was sick",
id: 19,
value: 19
},
{
name: "I had to attend to a personal/family matter",
id: 20,
value: 20
},
{
name: "Other",
id: 21,
value: 21
}
]
},
links: {
self: "http://api.debian-vm/siteTechCheckIn/surveys/158c8173-463d-494b-b94b-b1078a8b6aef/surveySections/158c8173-463d-494b-b94b-b1078a8b6aef/questions/615613d1-bdca-4285-a1ea-026920e9092f"
}
},
{
type: "question",
id: "35821f23-7158-45ab-962f-f390d2bd0f6a",
attributes: {
name: "Approximately how many hours were you delayed in total?",
subtext: null,
answer-required: true,
allow-multiple-option-answers: false,
display-order: 13,
pre-answers-hint: null,
post-answers-hint: null,
placeholder: null,
answerInputType: "number",
answerOptions: [
]
},
links: {
self: "http://api.debian-vm/siteTechCheckIn/surveys/158c8173-463d-494b-b94b-b1078a8b6aef/surveySections/158c8173-463d-494b-b94b-b1078a8b6aef/questions/35821f23-7158-45ab-962f-f390d2bd0f6a"
}
},
{
type: "question",
id: "73ac35df-a96a-4c94-a903-655cb90998ab",
attributes: {
name: " ",
subtext: null,
answer-required: true,
allow-multiple-option-answers: false,
display-order: 12,
pre-answers-hint: null,
post-answers-hint: null,
placeholder: "Please elaborate...",
answerInputType: "textarea",
answerOptions: [
]
},
links: {
self: "http://api.debian-vm/siteTechCheckIn/surveys/158c8173-463d-494b-b94b-b1078a8b6aef/surveySections/158c8173-463d-494b-b94b-b1078a8b6aef/questions/73ac35df-a96a-4c94-a903-655cb90998ab"
}
},
{
type: "survey-section",
id: "a42e9b5c-7ef4-442f-9218-82d0a41587e6",
attributes: {
name: "Equipment",
text: null,
is-required: true,
display-order: 4
},
relationships: {
questions: {
data: [
{
type: "question",
id: "b1cdaf90-4970-4566-9d55-eab7fd71d3f1"
},
{
type: "question",
id: "f808f8d0-7d36-4c57-b61c-b76f0cbafe46"
},
{
type: "question",
id: "ecd77e78-1087-4dde-81f6-4ecb54f7b814"
},
{
type: "question",
id: "feedd543-d143-4d23-a768-e9c84fde10dd"
}
]
}
},
links: {
self: "http://api.debian-vm/siteTechCheckIn/surveys/158c8173-463d-494b-b94b-b1078a8b6aef/surveySections/a42e9b5c-7ef4-442f-9218-82d0a41587e6"
}
},
{
type: "question",
id: "b1cdaf90-4970-4566-9d55-eab7fd71d3f1",
attributes: {
name: "What scanners do you currently have in your posession?",
subtext: null,
answer-required: true,
allow-multiple-option-answers: true,
display-order: 14,
pre-answers-hint: null,
post-answers-hint: null,
placeholder: null,
answerInputType: "checkbox",
answerOptions: [
]
},
links: {
self: "http://api.debian-vm/siteTechCheckIn/surveys/158c8173-463d-494b-b94b-b1078a8b6aef/surveySections/158c8173-463d-494b-b94b-b1078a8b6aef/questions/b1cdaf90-4970-4566-9d55-eab7fd71d3f1"
}
},
{
type: "question",
id: "f808f8d0-7d36-4c57-b61c-b76f0cbafe46",
attributes: {
name: "Did you use any laser scanners on this job today?",
subtext: null,
answer-required: true,
allow-multiple-option-answers: false,
display-order: 15,
pre-answers-hint: null,
post-answers-hint: null,
placeholder: null,
answerInputType: "radio",
answerOptions: [
{
name: "Yes",
id: 27,
value: 27
},
{
name: "No",
id: 28,
value: 28
}
]
},
links: {
self: "http://api.debian-vm/siteTechCheckIn/surveys/158c8173-463d-494b-b94b-b1078a8b6aef/surveySections/158c8173-463d-494b-b94b-b1078a8b6aef/questions/f808f8d0-7d36-4c57-b61c-b76f0cbafe46"
}
},
{
type: "question",
id: "ecd77e78-1087-4dde-81f6-4ecb54f7b814",
attributes: {
name: "Approximately how many scans did you take?",
subtext: null,
answer-required: true,
allow-multiple-option-answers: false,
display-order: 16,
pre-answers-hint: null,
post-answers-hint: null,
placeholder: null,
answerInputType: "number",
answerOptions: [
]
},
links: {
self: "http://api.debian-vm/siteTechCheckIn/surveys/158c8173-463d-494b-b94b-b1078a8b6aef/surveySections/158c8173-463d-494b-b94b-b1078a8b6aef/questions/ecd77e78-1087-4dde-81f6-4ecb54f7b814"
}
},
{
type: "question",
id: "feedd543-d143-4d23-a768-e9c84fde10dd",
attributes: {
name: "How are you delivering the scans to the office?",
subtext: null,
answer-required: true,
allow-multiple-option-answers: true,
display-order: 17,
pre-answers-hint: null,
post-answers-hint: null,
placeholder: null,
answerInputType: "checkbox",
answerOptions: [
{
name: "Uploading the scans here / to Planmine",
id: 34,
value: 34
},
{
name: "Uploading the scans to the xmeasures FTP",
id: 35,
value: 35
},
{
name: "Personally drop off scans on a drive",
id: 36,
value: 36
},
{
name: "Courier/mail scans on a drive",
id: 37,
value: 37
}
]
},
links: {
self: "http://api.debian-vm/siteTechCheckIn/surveys/158c8173-463d-494b-b94b-b1078a8b6aef/surveySections/158c8173-463d-494b-b94b-b1078a8b6aef/questions/feedd543-d143-4d23-a768-e9c84fde10dd"
}
},
{
type: "survey-section",
id: "216fc21a-ca2f-4e3c-af18-5aa935db5437",
attributes: {
name: "Scheduling",
text: null,
is-required: true,
display-order: 5
},
relationships: {
questions: {
data: [
{
type: "question",
id: "766d9db3-ec56-41a5-8323-f47ee924c76d"
}
]
}
},
links: {
self: "http://api.debian-vm/siteTechCheckIn/surveys/158c8173-463d-494b-b94b-b1078a8b6aef/surveySections/216fc21a-ca2f-4e3c-af18-5aa935db5437"
}
},
{
type: "question",
id: "766d9db3-ec56-41a5-8323-f47ee924c76d",
attributes: {
name: "Did you complete this job today?",
subtext: null,
answer-required: true,
allow-multiple-option-answers: false,
display-order: 18,
pre-answers-hint: null,
post-answers-hint: null,
placeholder: null,
answerInputType: "radio",
answerOptions: [
{
name: "Yes",
id: 27,
value: 27
},
{
name: "No",
id: 28,
value: 28
}
]
},
links: {
self: "http://api.debian-vm/siteTechCheckIn/surveys/158c8173-463d-494b-b94b-b1078a8b6aef/surveySections/158c8173-463d-494b-b94b-b1078a8b6aef/questions/766d9db3-ec56-41a5-8323-f47ee924c76d"
}
},
{
type: "job",
id: "mb880sgh5tc2zj3pn27y",
attributes: {
client: "Canderel",
contact: "Michael McCormick",
address: "3500 Steeles Avenue East",
full-address: "3500 Steeles Avenue East, Markham, ON, Canada",
job-number: "M-10974",
uploads-complete: false,
survey-complete: false
}
},
{
type: "job",
id: "bmthwr2qdj5h678t4wjh",
attributes: {
client: "Smart Centres",
contact: "Alanna DeMelo",
address: "9325 Yonge Street",
full-address: "9325 Yonge Street, Richmond Hill, ON, Canada",
job-number: "M-11397",
uploads-complete: false,
survey-complete: false
}
},
{
type: "admin",
id: "soadhoh4ohf",
attributes: {
first-name: "Joshua",
last-name: "Malinsky"
},
relationships: {
jobs: [
{
data: {
type: "job",
id: "mb880sgh5tc2zj3pn27y"
}
},
{
data: {
type: "job",
id: "bmthwr2qdj5h678t4wjh"
}
}
],
equipment-items: {
data: [
{
type: "equipment-item",
id: "eq2"
},
{
type: "equipment-item",
id: "eq3"
}
]
}
}
}
],
links: {
self: "http://api.debian-vm/siteTechCheckIn/surveys/158c8173-463d-494b-b94b-b1078a8b6aef"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment