Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "operationName": "CreateJob",
- "query": "mutation CreateJob($name: String, $phone: E164PhoneNumber, $notes: String, $service: ServiceCodeName!, $answer2: String!, $answer5: String!, $vehicle: String!, $model: String!, $year: Int, $color: String!, $address: String!, $lat: Float, $lng: Float, $locationType: LocationTypeName!) {\n createJob(input: {job: {customer: {name: $name, phone: $phone}, notes: {customer: \"Simulator Job 100\", internal: $notes}, service: {name: $service, symptom: \"Out of fuel\", answers: [{question: \"Customer with vehicle?\", answer: $answer2}, {question: \"What is the gasoline type?\", answer: \"Regular\"}, {question: \"Low clearance?\", answer: $answer5, extra: \"4 feet\"}]}, vehicle: {make: $vehicle, model: $model, year: $year, color: $color, license: \"W00T\", odometer: 1337, vin: \"1GNSKBE04DR265715\"}, location: {serviceLocation: {address: $address, lat: $lat, lng: $lng, locationType: $locationType}, dropoffLocation: {address: \"Firestone Complete Auto Care Northgate Shopping Center Revere, MA 02151\", lat: 42.425651, lng: -71.011085, locationType: \"Local Roadside\", googlePlaceId: \"ChIJQ7sZVARy44kRz-qSt9CZZgY\"}, pickupContact: {name: \"Picky McPickup\", phone: \"+18885551234\"}, dropoffContact: {name: \"Droppy McDropoff\", phone: \"+18888675309\"}}, texts: {sendLocation: false, sendEtaUpdates: true, sendDriverTracking: true, sendReview: true, sendTextsToPickup: false}}}) {\n __typename\n job {\n __typename\n id\n notes {\n __typename\n customer\n internal\n }\n service {\n __typename\n name\n symptom\n answers {\n __typename\n edges {\n __typename\n node {\n __typename\n question\n answer\n extra\n }\n }\n }\n }\n vehicle {\n __typename\n make\n model\n year\n color\n license\n odometer\n vin\n }\n location {\n __typename\n serviceLocation {\n __typename\n address\n lat\n lng\n locationType\n }\n dropoffLocation {\n __typename\n address\n lat\n lng\n locationType\n googlePlaceId\n }\n pickupContact {\n __typename\n name\n phone\n }\n dropoffContact {\n __typename\n name\n phone\n }\n }\n texts {\n __typename\n sendLocation\n sendEtaUpdates\n sendDriverTracking\n sendReview\n sendTextsToPickup\n }\n }\n }\n}",
- "variables": {
- "address": "301 Powell St, San Francisco, CA 94102, USA",
- "answer2": "No",
- "answer5": "No",
- "color": "blue",
- "lat": 37.787358900000001,
- "lng": -122.408227,
- "locationType": "Intersection",
- "model": "Rav4",
- "name": "Test Name",
- "notes": "Test Note",
- "phone": "88888888",
- "service": "Lock Out",
- "vehicle": "Toyota",
- "year": 2010
- }
- }
- {
- "data": {
- "createJob": {
- "__typename": "CreateJobPayload",
- "job": {
- "__typename": "Job",
- "id": "7Z3mS9zmo6p7mMwaKHsma3",
- "notes": {
- "__typename": "Notes",
- "customer": "Simulator Job 100",
- "internal": "Test Note"
- },
- "service": {
- "__typename": "JobService",
- "name": "Lock Out",
- "symptom": "Out of fuel",
- "answers": {
- "__typename": "QuestionResultConnection",
- "edges": [{
- "__typename": "QuestionResultEdge",
- "node": {
- "__typename": "QuestionResult",
- "question": "Customer with vehicle?",
- "answer": "No",
- "extra": null
- }
- }, {
- "__typename": "QuestionResultEdge",
- "node": {
- "__typename": "QuestionResult",
- "question": "What is the gasoline type?",
- "answer": "Regular",
- "extra": null
- }
- }, {
- "__typename": "QuestionResultEdge",
- "node": {
- "__typename": "QuestionResult",
- "question": "Low clearance?",
- "answer": "No",
- "extra": "4 feet"
- }
- }]
- }
- },
- "vehicle": {
- "__typename": "StrandedVehicle",
- "make": "Toyota",
- "model": "Rav4",
- "year": 2010,
- "color": "blue",
- "license": "W00T",
- "odometer": "1337",
- "vin": "1GNSKBE04DR265715"
- },
- "location": {
- "__typename": "JobLocation",
- "serviceLocation": {
- "__typename": "Location",
- "address": "301 Powell St, San Francisco, CA 94102",
- "lat": 37.7873589,
- "lng": -122.408227,
- "locationType": "Intersection"
- },
- "dropoffLocation": {
- "__typename": "Location",
- "address": "Firestone Complete Auto Care Northgate Shopping Center Revere, MA 02151",
- "lat": 42.425651,
- "lng": -71.011085,
- "locationType": "Local Roadside",
- "googlePlaceId": "ChIJQ7sZVARy44kRz-qSt9CZZgY"
- },
- "pickupContact": {
- "__typename": "Contact",
- "name": "Picky McPickup",
- "phone": "+18885551234"
- },
- "dropoffContact": {
- "__typename": "Contact",
- "name": "Droppy McDropoff",
- "phone": "+18888675309"
- }
- },
- "texts": {
- "__typename": "JobTexts",
- "sendLocation": false,
- "sendEtaUpdates": true,
- "sendDriverTracking": true,
- "sendReview": true,
- "sendTextsToPickup": false
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement