Advertisement
Guest User

Untitled

a guest
Jul 29th, 2018
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 17.03 KB | None | 0 0
  1. {
  2.   "$schema": "http://json-schema.org/draft-06/schema#",
  3.   "properties": {
  4.     "Query": {
  5.       "type": "object",
  6.       "properties": {
  7.         "node": {
  8.           "type": "object",
  9.           "properties": {
  10.             "return": {},
  11.             "arguments": {
  12.               "type": "object",
  13.               "properties": {
  14.                 "id": {}
  15.               },
  16.               "required": [
  17.                 "id"
  18.               ]
  19.             }
  20.           },
  21.           "required": []
  22.         },
  23.         "address": {
  24.           "type": "object",
  25.           "properties": {
  26.             "return": {
  27.               "$ref": "#/definitions/Address"
  28.             },
  29.             "arguments": {
  30.               "type": "object",
  31.               "properties": {
  32.                 "id": {}
  33.               },
  34.               "required": []
  35.             }
  36.           },
  37.           "required": []
  38.         },
  39.         "addresses": {
  40.           "type": "object",
  41.           "properties": {
  42.             "return": {
  43.               "$ref": "#/definitions/AddressConnection"
  44.             },
  45.             "arguments": {
  46.               "type": "object",
  47.               "properties": {
  48.                 "first": {
  49.                   "type": "number"
  50.                 },
  51.                 "after": {
  52.                   "type": "string"
  53.                 }
  54.               },
  55.               "required": []
  56.             }
  57.           },
  58.           "required": []
  59.         },
  60.         "openingHour": {
  61.           "type": "object",
  62.           "properties": {
  63.             "return": {
  64.               "$ref": "#/definitions/OpeningHour"
  65.             },
  66.             "arguments": {
  67.               "type": "object",
  68.               "properties": {
  69.                 "id": {}
  70.               },
  71.               "required": []
  72.             }
  73.           },
  74.           "required": []
  75.         },
  76.         "openingHours": {
  77.           "type": "object",
  78.           "properties": {
  79.             "return": {
  80.               "$ref": "#/definitions/OpeningHourConnection"
  81.             },
  82.             "arguments": {
  83.               "type": "object",
  84.               "properties": {
  85.                 "first": {
  86.                   "type": "number"
  87.                 },
  88.                 "after": {
  89.                   "type": "string"
  90.                 }
  91.               },
  92.               "required": []
  93.             }
  94.           },
  95.           "required": []
  96.         },
  97.         "site": {
  98.           "type": "object",
  99.           "properties": {
  100.             "return": {
  101.               "$ref": "#/definitions/Site"
  102.             },
  103.             "arguments": {
  104.               "type": "object",
  105.               "properties": {
  106.                 "id": {}
  107.               },
  108.               "required": []
  109.             }
  110.           },
  111.           "required": []
  112.         },
  113.         "sites": {
  114.           "type": "object",
  115.           "properties": {
  116.             "return": {
  117.               "$ref": "#/definitions/SiteConnection"
  118.             },
  119.             "arguments": {
  120.               "type": "object",
  121.               "properties": {
  122.                 "first": {
  123.                   "type": "number"
  124.                 },
  125.                 "after": {
  126.                   "type": "string"
  127.                 }
  128.               },
  129.               "required": []
  130.             }
  131.           },
  132.           "required": []
  133.         }
  134.       },
  135.       "required": []
  136.     },
  137.     "Mutation": {
  138.       "type": "object",
  139.       "properties": {
  140.         "deleteAddress": {
  141.           "type": "object",
  142.           "properties": {
  143.             "return": {
  144.               "$ref": "#/definitions/deleteAddressPayload"
  145.             },
  146.             "arguments": {
  147.               "type": "object",
  148.               "properties": {
  149.                 "input": {
  150.                   "$ref": "#/definitions/deleteAddressInput"
  151.                 }
  152.               },
  153.               "required": []
  154.             }
  155.           },
  156.           "required": []
  157.         },
  158.         "updateAddress": {
  159.           "type": "object",
  160.           "properties": {
  161.             "return": {
  162.               "$ref": "#/definitions/updateAddressPayload"
  163.             },
  164.             "arguments": {
  165.               "type": "object",
  166.               "properties": {
  167.                 "input": {
  168.                   "$ref": "#/definitions/updateAddressInput"
  169.                 }
  170.               },
  171.               "required": []
  172.             }
  173.           },
  174.           "required": []
  175.         },
  176.         "createAddress": {
  177.           "type": "object",
  178.           "properties": {
  179.             "return": {
  180.               "$ref": "#/definitions/createAddressPayload"
  181.             },
  182.             "arguments": {
  183.               "type": "object",
  184.               "properties": {
  185.                 "input": {
  186.                   "$ref": "#/definitions/createAddressInput"
  187.                 }
  188.               },
  189.               "required": []
  190.             }
  191.           },
  192.           "required": []
  193.         },
  194.         "deleteOpeningHour": {
  195.           "type": "object",
  196.           "properties": {
  197.             "return": {
  198.               "$ref": "#/definitions/deleteOpeningHourPayload"
  199.             },
  200.             "arguments": {
  201.               "type": "object",
  202.               "properties": {
  203.                 "input": {
  204.                   "$ref": "#/definitions/deleteOpeningHourInput"
  205.                 }
  206.               },
  207.               "required": []
  208.             }
  209.           },
  210.           "required": []
  211.         },
  212.         "updateOpeningHour": {
  213.           "type": "object",
  214.           "properties": {
  215.             "return": {
  216.               "$ref": "#/definitions/updateOpeningHourPayload"
  217.             },
  218.             "arguments": {
  219.               "type": "object",
  220.               "properties": {
  221.                 "input": {
  222.                   "$ref": "#/definitions/updateOpeningHourInput"
  223.                 }
  224.               },
  225.               "required": []
  226.             }
  227.           },
  228.           "required": []
  229.         },
  230.         "createOpeningHour": {
  231.           "type": "object",
  232.           "properties": {
  233.             "return": {
  234.               "$ref": "#/definitions/createOpeningHourPayload"
  235.             },
  236.             "arguments": {
  237.               "type": "object",
  238.               "properties": {
  239.                 "input": {
  240.                   "$ref": "#/definitions/createOpeningHourInput"
  241.                 }
  242.               },
  243.               "required": []
  244.             }
  245.           },
  246.           "required": []
  247.         },
  248.         "deleteSite": {
  249.           "type": "object",
  250.           "properties": {
  251.             "return": {
  252.               "$ref": "#/definitions/deleteSitePayload"
  253.             },
  254.             "arguments": {
  255.               "type": "object",
  256.               "properties": {
  257.                 "input": {
  258.                   "$ref": "#/definitions/deleteSiteInput"
  259.                 }
  260.               },
  261.               "required": []
  262.             }
  263.           },
  264.           "required": []
  265.         },
  266.         "updateSite": {
  267.           "type": "object",
  268.           "properties": {
  269.             "return": {
  270.               "$ref": "#/definitions/updateSitePayload"
  271.             },
  272.             "arguments": {
  273.               "type": "object",
  274.               "properties": {
  275.                 "input": {
  276.                   "$ref": "#/definitions/updateSiteInput"
  277.                 }
  278.               },
  279.               "required": []
  280.             }
  281.           },
  282.           "required": []
  283.         },
  284.         "createSite": {
  285.           "type": "object",
  286.           "properties": {
  287.             "return": {
  288.               "$ref": "#/definitions/createSitePayload"
  289.             },
  290.             "arguments": {
  291.               "type": "object",
  292.               "properties": {
  293.                 "input": {
  294.                   "$ref": "#/definitions/createSiteInput"
  295.                 }
  296.               },
  297.               "required": []
  298.             }
  299.           },
  300.           "required": []
  301.         }
  302.       },
  303.       "required": []
  304.     }
  305.   },
  306.   "definitions": {
  307.     "Address": {
  308.       "type": "object",
  309.       "properties": {
  310.         "id": {},
  311.         "postalCode": {
  312.           "type": "string"
  313.         },
  314.         "streetAddress": {
  315.           "type": "string"
  316.         }
  317.       },
  318.       "required": [
  319.         "id"
  320.       ]
  321.     },
  322.     "AddressConnection": {
  323.       "type": "object",
  324.       "properties": {
  325.         "edges": {
  326.           "type": "array",
  327.           "items": {
  328.             "$ref": "#/definitions/AddressEdge"
  329.           }
  330.         },
  331.         "pageInfo": {
  332.           "$ref": "#/definitions/AddressPageInfo"
  333.         },
  334.         "totalCount": {
  335.           "type": "number"
  336.         }
  337.       },
  338.       "required": [
  339.         "pageInfo",
  340.         "totalCount"
  341.       ]
  342.     },
  343.     "AddressEdge": {
  344.       "type": "object",
  345.       "properties": {
  346.         "node": {
  347.           "$ref": "#/definitions/Address"
  348.         },
  349.         "cursor": {
  350.           "type": "string"
  351.         }
  352.       },
  353.       "required": [
  354.         "cursor"
  355.       ]
  356.     },
  357.     "AddressPageInfo": {
  358.       "type": "object",
  359.       "properties": {
  360.         "endCursor": {
  361.           "type": "string"
  362.         },
  363.         "hasNextPage": {
  364.           "type": "boolean"
  365.         }
  366.       },
  367.       "required": [
  368.         "hasNextPage"
  369.       ]
  370.     },
  371.     "OpeningHour": {
  372.       "type": "object",
  373.       "properties": {
  374.         "id": {},
  375.         "open": {
  376.           "type": "string"
  377.         },
  378.         "close": {
  379.           "type": "string"
  380.         },
  381.         "weekday": {
  382.           "type": "string"
  383.         }
  384.       },
  385.       "required": [
  386.         "id",
  387.         "open",
  388.         "close",
  389.         "weekday"
  390.       ]
  391.     },
  392.     "OpeningHourConnection": {
  393.       "type": "object",
  394.       "properties": {
  395.         "edges": {
  396.           "type": "array",
  397.           "items": {
  398.             "$ref": "#/definitions/OpeningHourEdge"
  399.           }
  400.         },
  401.         "pageInfo": {
  402.           "$ref": "#/definitions/OpeningHourPageInfo"
  403.         },
  404.         "totalCount": {
  405.           "type": "number"
  406.         }
  407.       },
  408.       "required": [
  409.         "pageInfo",
  410.         "totalCount"
  411.       ]
  412.     },
  413.     "OpeningHourEdge": {
  414.       "type": "object",
  415.       "properties": {
  416.         "node": {
  417.           "$ref": "#/definitions/OpeningHour"
  418.         },
  419.         "cursor": {
  420.           "type": "string"
  421.         }
  422.       },
  423.       "required": [
  424.         "cursor"
  425.       ]
  426.     },
  427.     "OpeningHourPageInfo": {
  428.       "type": "object",
  429.       "properties": {
  430.         "endCursor": {
  431.           "type": "string"
  432.         },
  433.         "hasNextPage": {
  434.           "type": "boolean"
  435.         }
  436.       },
  437.       "required": [
  438.         "hasNextPage"
  439.       ]
  440.     },
  441.     "Site": {
  442.       "type": "object",
  443.       "properties": {
  444.         "id": {},
  445.         "domain": {
  446.           "type": "string"
  447.         },
  448.         "address": {
  449.           "$ref": "#/definitions/Address"
  450.         },
  451.         "openingHours": {
  452.           "$ref": "#/definitions/OpeningHourConnection"
  453.         }
  454.       },
  455.       "required": [
  456.         "id",
  457.         "domain"
  458.       ]
  459.     },
  460.     "SiteConnection": {
  461.       "type": "object",
  462.       "properties": {
  463.         "edges": {
  464.           "type": "array",
  465.           "items": {
  466.             "$ref": "#/definitions/SiteEdge"
  467.           }
  468.         },
  469.         "pageInfo": {
  470.           "$ref": "#/definitions/SitePageInfo"
  471.         },
  472.         "totalCount": {
  473.           "type": "number"
  474.         }
  475.       },
  476.       "required": [
  477.         "pageInfo",
  478.         "totalCount"
  479.       ]
  480.     },
  481.     "SiteEdge": {
  482.       "type": "object",
  483.       "properties": {
  484.         "node": {
  485.           "$ref": "#/definitions/Site"
  486.         },
  487.         "cursor": {
  488.           "type": "string"
  489.         }
  490.       },
  491.       "required": [
  492.         "cursor"
  493.       ]
  494.     },
  495.     "SitePageInfo": {
  496.       "type": "object",
  497.       "properties": {
  498.         "endCursor": {
  499.           "type": "string"
  500.         },
  501.         "hasNextPage": {
  502.           "type": "boolean"
  503.         }
  504.       },
  505.       "required": [
  506.         "hasNextPage"
  507.       ]
  508.     },
  509.     "deleteAddressInput": {
  510.       "type": "object",
  511.       "properties": {
  512.         "id": {},
  513.         "clientMutationId": {
  514.           "type": "string"
  515.         }
  516.       },
  517.       "required": [
  518.         "id",
  519.         "clientMutationId"
  520.       ]
  521.     },
  522.     "deleteAddressPayload": {
  523.       "type": "object",
  524.       "properties": {
  525.         "id": {},
  526.         "clientMutationId": {
  527.           "type": "string"
  528.         }
  529.       },
  530.       "required": [
  531.         "id",
  532.         "clientMutationId"
  533.       ]
  534.     },
  535.     "updateAddressInput": {
  536.       "type": "object",
  537.       "properties": {
  538.         "id": {},
  539.         "clientMutationId": {
  540.           "type": "string"
  541.         }
  542.       },
  543.       "required": [
  544.         "id",
  545.         "clientMutationId"
  546.       ]
  547.     },
  548.     "updateAddressPayload": {
  549.       "type": "object",
  550.       "properties": {
  551.         "id": {},
  552.         "clientMutationId": {
  553.           "type": "string"
  554.         }
  555.       },
  556.       "required": [
  557.         "id",
  558.         "clientMutationId"
  559.       ]
  560.     },
  561.     "createAddressInput": {
  562.       "type": "object",
  563.       "properties": {
  564.         "clientMutationId": {
  565.           "type": "string"
  566.         }
  567.       },
  568.       "required": [
  569.         "clientMutationId"
  570.       ]
  571.     },
  572.     "createAddressPayload": {
  573.       "type": "object",
  574.       "properties": {
  575.         "id": {},
  576.         "clientMutationId": {
  577.           "type": "string"
  578.         }
  579.       },
  580.       "required": [
  581.         "id",
  582.         "clientMutationId"
  583.       ]
  584.     },
  585.     "deleteOpeningHourInput": {
  586.       "type": "object",
  587.       "properties": {
  588.         "id": {},
  589.         "clientMutationId": {
  590.           "type": "string"
  591.         }
  592.       },
  593.       "required": [
  594.         "id",
  595.         "clientMutationId"
  596.       ]
  597.     },
  598.     "deleteOpeningHourPayload": {
  599.       "type": "object",
  600.       "properties": {
  601.         "id": {},
  602.         "clientMutationId": {
  603.           "type": "string"
  604.         }
  605.       },
  606.       "required": [
  607.         "id",
  608.         "clientMutationId"
  609.       ]
  610.     },
  611.     "updateOpeningHourInput": {
  612.       "type": "object",
  613.       "properties": {
  614.         "id": {},
  615.         "clientMutationId": {
  616.           "type": "string"
  617.         }
  618.       },
  619.       "required": [
  620.         "id",
  621.         "clientMutationId"
  622.       ]
  623.     },
  624.     "updateOpeningHourPayload": {
  625.       "type": "object",
  626.       "properties": {
  627.         "id": {},
  628.         "clientMutationId": {
  629.           "type": "string"
  630.         }
  631.       },
  632.       "required": [
  633.         "id",
  634.         "clientMutationId"
  635.       ]
  636.     },
  637.     "createOpeningHourInput": {
  638.       "type": "object",
  639.       "properties": {
  640.         "clientMutationId": {
  641.           "type": "string"
  642.         }
  643.       },
  644.       "required": [
  645.         "clientMutationId"
  646.       ]
  647.     },
  648.     "createOpeningHourPayload": {
  649.       "type": "object",
  650.       "properties": {
  651.         "id": {},
  652.         "clientMutationId": {
  653.           "type": "string"
  654.         }
  655.       },
  656.       "required": [
  657.         "id",
  658.         "clientMutationId"
  659.       ]
  660.     },
  661.     "deleteSiteInput": {
  662.       "type": "object",
  663.       "properties": {
  664.         "id": {},
  665.         "clientMutationId": {
  666.           "type": "string"
  667.         }
  668.       },
  669.       "required": [
  670.         "id",
  671.         "clientMutationId"
  672.       ]
  673.     },
  674.     "deleteSitePayload": {
  675.       "type": "object",
  676.       "properties": {
  677.         "id": {},
  678.         "clientMutationId": {
  679.           "type": "string"
  680.         }
  681.       },
  682.       "required": [
  683.         "id",
  684.         "clientMutationId"
  685.       ]
  686.     },
  687.     "updateSiteInput": {
  688.       "type": "object",
  689.       "properties": {
  690.         "id": {},
  691.         "domain": {
  692.           "type": "string"
  693.         },
  694.         "openingHours": {
  695.           "type": "array",
  696.           "items": {
  697.             "type": "string"
  698.           }
  699.         },
  700.         "clientMutationId": {
  701.           "type": "string"
  702.         }
  703.       },
  704.       "required": [
  705.         "id",
  706.         "clientMutationId"
  707.       ]
  708.     },
  709.     "updateSitePayload": {
  710.       "type": "object",
  711.       "properties": {
  712.         "id": {},
  713.         "domain": {
  714.           "type": "string"
  715.         },
  716.         "openingHours": {
  717.           "$ref": "#/definitions/OpeningHourConnection"
  718.         },
  719.         "clientMutationId": {
  720.           "type": "string"
  721.         }
  722.       },
  723.       "required": [
  724.         "id",
  725.         "clientMutationId"
  726.       ]
  727.     },
  728.     "createSiteInput": {
  729.       "type": "object",
  730.       "properties": {
  731.         "domain": {
  732.           "type": "string"
  733.         },
  734.         "openingHours": {
  735.           "type": "array",
  736.           "items": {
  737.             "type": "string"
  738.           }
  739.         },
  740.         "clientMutationId": {
  741.           "type": "string"
  742.         }
  743.       },
  744.       "required": [
  745.         "domain",
  746.         "clientMutationId"
  747.       ]
  748.     },
  749.     "createSitePayload": {
  750.       "type": "object",
  751.       "properties": {
  752.         "id": {},
  753.         "domain": {
  754.           "type": "string"
  755.         },
  756.         "openingHours": {
  757.           "$ref": "#/definitions/OpeningHourConnection"
  758.         },
  759.         "clientMutationId": {
  760.           "type": "string"
  761.         }
  762.       },
  763.       "required": [
  764.         "id",
  765.         "domain",
  766.         "clientMutationId"
  767.       ]
  768.     }
  769.   }
  770. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement