Advertisement
Guest User

Untitled

a guest
Dec 16th, 2019
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.47 KB | None | 0 0
  1. {
  2. "operationName": "CreateJob",
  3. "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}",
  4. "variables": {
  5. "address": "301 Powell St, San Francisco, CA 94102, USA",
  6. "answer2": "No",
  7. "answer5": "No",
  8. "color": "blue",
  9. "lat": 37.787358900000001,
  10. "lng": -122.408227,
  11. "locationType": "Intersection",
  12. "model": "Rav4",
  13. "name": "Test Name",
  14. "notes": "Test Note",
  15. "phone": "88888888",
  16. "service": "Lock Out",
  17. "vehicle": "Toyota",
  18. "year": 2010
  19. }
  20. }
  21.  
  22.  
  23.  
  24.  
  25.  
  26. {
  27. "data": {
  28. "createJob": {
  29. "__typename": "CreateJobPayload",
  30. "job": {
  31. "__typename": "Job",
  32. "id": "7Z3mS9zmo6p7mMwaKHsma3",
  33. "notes": {
  34. "__typename": "Notes",
  35. "customer": "Simulator Job 100",
  36. "internal": "Test Note"
  37. },
  38. "service": {
  39. "__typename": "JobService",
  40. "name": "Lock Out",
  41. "symptom": "Out of fuel",
  42. "answers": {
  43. "__typename": "QuestionResultConnection",
  44. "edges": [{
  45. "__typename": "QuestionResultEdge",
  46. "node": {
  47. "__typename": "QuestionResult",
  48. "question": "Customer with vehicle?",
  49. "answer": "No",
  50. "extra": null
  51. }
  52. }, {
  53. "__typename": "QuestionResultEdge",
  54. "node": {
  55. "__typename": "QuestionResult",
  56. "question": "What is the gasoline type?",
  57. "answer": "Regular",
  58. "extra": null
  59. }
  60. }, {
  61. "__typename": "QuestionResultEdge",
  62. "node": {
  63. "__typename": "QuestionResult",
  64. "question": "Low clearance?",
  65. "answer": "No",
  66. "extra": "4 feet"
  67. }
  68. }]
  69. }
  70. },
  71. "vehicle": {
  72. "__typename": "StrandedVehicle",
  73. "make": "Toyota",
  74. "model": "Rav4",
  75. "year": 2010,
  76. "color": "blue",
  77. "license": "W00T",
  78. "odometer": "1337",
  79. "vin": "1GNSKBE04DR265715"
  80. },
  81. "location": {
  82. "__typename": "JobLocation",
  83. "serviceLocation": {
  84. "__typename": "Location",
  85. "address": "301 Powell St, San Francisco, CA 94102",
  86. "lat": 37.7873589,
  87. "lng": -122.408227,
  88. "locationType": "Intersection"
  89. },
  90. "dropoffLocation": {
  91. "__typename": "Location",
  92. "address": "Firestone Complete Auto Care Northgate Shopping Center Revere, MA 02151",
  93. "lat": 42.425651,
  94. "lng": -71.011085,
  95. "locationType": "Local Roadside",
  96. "googlePlaceId": "ChIJQ7sZVARy44kRz-qSt9CZZgY"
  97. },
  98. "pickupContact": {
  99. "__typename": "Contact",
  100. "name": "Picky McPickup",
  101. "phone": "+18885551234"
  102. },
  103. "dropoffContact": {
  104. "__typename": "Contact",
  105. "name": "Droppy McDropoff",
  106. "phone": "+18888675309"
  107. }
  108. },
  109. "texts": {
  110. "__typename": "JobTexts",
  111. "sendLocation": false,
  112. "sendEtaUpdates": true,
  113. "sendDriverTracking": true,
  114. "sendReview": true,
  115. "sendTextsToPickup": false
  116. }
  117. }
  118. }
  119. }
  120. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement