Advertisement
Guest User

Untitled

a guest
Jul 29th, 2018
80
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.         "site": {
  24.           "type": "object",
  25.           "properties": {
  26.             "return": {
  27.               "$ref": "#/definitions/Site"
  28.             },
  29.             "arguments": {
  30.               "type": "object",
  31.               "properties": {
  32.                 "id": {}
  33.               },
  34.               "required": []
  35.             }
  36.           },
  37.           "required": []
  38.         },
  39.         "sites": {
  40.           "type": "object",
  41.           "properties": {
  42.             "return": {
  43.               "$ref": "#/definitions/SiteConnection"
  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.         "address": {
  98.           "type": "object",
  99.           "properties": {
  100.             "return": {
  101.               "$ref": "#/definitions/Address"
  102.             },
  103.             "arguments": {
  104.               "type": "object",
  105.               "properties": {
  106.                 "id": {}
  107.               },
  108.               "required": []
  109.             }
  110.           },
  111.           "required": []
  112.         },
  113.         "addresses": {
  114.           "type": "object",
  115.           "properties": {
  116.             "return": {
  117.               "$ref": "#/definitions/AddressConnection"
  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.         "deleteSite": {
  141.           "type": "object",
  142.           "properties": {
  143.             "return": {
  144.               "$ref": "#/definitions/deleteSitePayload"
  145.             },
  146.             "arguments": {
  147.               "type": "object",
  148.               "properties": {
  149.                 "input": {
  150.                   "$ref": "#/definitions/deleteSiteInput"
  151.                 }
  152.               },
  153.               "required": []
  154.             }
  155.           },
  156.           "required": []
  157.         },
  158.         "updateSite": {
  159.           "type": "object",
  160.           "properties": {
  161.             "return": {
  162.               "$ref": "#/definitions/updateSitePayload"
  163.             },
  164.             "arguments": {
  165.               "type": "object",
  166.               "properties": {
  167.                 "input": {
  168.                   "$ref": "#/definitions/updateSiteInput"
  169.                 }
  170.               },
  171.               "required": []
  172.             }
  173.           },
  174.           "required": []
  175.         },
  176.         "createSite": {
  177.           "type": "object",
  178.           "properties": {
  179.             "return": {
  180.               "$ref": "#/definitions/createSitePayload"
  181.             },
  182.             "arguments": {
  183.               "type": "object",
  184.               "properties": {
  185.                 "input": {
  186.                   "$ref": "#/definitions/createSiteInput"
  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.         "deleteAddress": {
  249.           "type": "object",
  250.           "properties": {
  251.             "return": {
  252.               "$ref": "#/definitions/deleteAddressPayload"
  253.             },
  254.             "arguments": {
  255.               "type": "object",
  256.               "properties": {
  257.                 "input": {
  258.                   "$ref": "#/definitions/deleteAddressInput"
  259.                 }
  260.               },
  261.               "required": []
  262.             }
  263.           },
  264.           "required": []
  265.         },
  266.         "updateAddress": {
  267.           "type": "object",
  268.           "properties": {
  269.             "return": {
  270.               "$ref": "#/definitions/updateAddressPayload"
  271.             },
  272.             "arguments": {
  273.               "type": "object",
  274.               "properties": {
  275.                 "input": {
  276.                   "$ref": "#/definitions/updateAddressInput"
  277.                 }
  278.               },
  279.               "required": []
  280.             }
  281.           },
  282.           "required": []
  283.         },
  284.         "createAddress": {
  285.           "type": "object",
  286.           "properties": {
  287.             "return": {
  288.               "$ref": "#/definitions/createAddressPayload"
  289.             },
  290.             "arguments": {
  291.               "type": "object",
  292.               "properties": {
  293.                 "input": {
  294.                   "$ref": "#/definitions/createAddressInput"
  295.                 }
  296.               },
  297.               "required": []
  298.             }
  299.           },
  300.           "required": []
  301.         }
  302.       },
  303.       "required": []
  304.     }
  305.   },
  306.   "definitions": {
  307.     "Site": {
  308.       "type": "object",
  309.       "properties": {
  310.         "id": {},
  311.         "domain": {
  312.           "type": "string"
  313.         },
  314.         "address": {
  315.           "$ref": "#/definitions/Address"
  316.         },
  317.         "openingHours": {
  318.           "$ref": "#/definitions/OpeningHourConnection"
  319.         }
  320.       },
  321.       "required": [
  322.         "id",
  323.         "domain"
  324.       ]
  325.     },
  326.     "Address": {
  327.       "type": "object",
  328.       "properties": {
  329.         "id": {},
  330.         "postalCode": {
  331.           "type": "string"
  332.         },
  333.         "streetAddress": {
  334.           "type": "string"
  335.         }
  336.       },
  337.       "required": [
  338.         "id"
  339.       ]
  340.     },
  341.     "OpeningHourConnection": {
  342.       "type": "object",
  343.       "properties": {
  344.         "edges": {
  345.           "type": "array",
  346.           "items": {
  347.             "$ref": "#/definitions/OpeningHourEdge"
  348.           }
  349.         },
  350.         "pageInfo": {
  351.           "$ref": "#/definitions/OpeningHourPageInfo"
  352.         },
  353.         "totalCount": {
  354.           "type": "number"
  355.         }
  356.       },
  357.       "required": [
  358.         "pageInfo",
  359.         "totalCount"
  360.       ]
  361.     },
  362.     "OpeningHourEdge": {
  363.       "type": "object",
  364.       "properties": {
  365.         "node": {
  366.           "$ref": "#/definitions/OpeningHour"
  367.         },
  368.         "cursor": {
  369.           "type": "string"
  370.         }
  371.       },
  372.       "required": [
  373.         "cursor"
  374.       ]
  375.     },
  376.     "OpeningHour": {
  377.       "type": "object",
  378.       "properties": {
  379.         "id": {},
  380.         "open": {
  381.           "type": "string"
  382.         },
  383.         "close": {
  384.           "type": "string"
  385.         },
  386.         "weekday": {
  387.           "type": "string"
  388.         }
  389.       },
  390.       "required": [
  391.         "id",
  392.         "open",
  393.         "close",
  394.         "weekday"
  395.       ]
  396.     },
  397.     "OpeningHourPageInfo": {
  398.       "type": "object",
  399.       "properties": {
  400.         "endCursor": {
  401.           "type": "string"
  402.         },
  403.         "hasNextPage": {
  404.           "type": "boolean"
  405.         }
  406.       },
  407.       "required": [
  408.         "hasNextPage"
  409.       ]
  410.     },
  411.     "SiteConnection": {
  412.       "type": "object",
  413.       "properties": {
  414.         "edges": {
  415.           "type": "array",
  416.           "items": {
  417.             "$ref": "#/definitions/SiteEdge"
  418.           }
  419.         },
  420.         "pageInfo": {
  421.           "$ref": "#/definitions/SitePageInfo"
  422.         },
  423.         "totalCount": {
  424.           "type": "number"
  425.         }
  426.       },
  427.       "required": [
  428.         "pageInfo",
  429.         "totalCount"
  430.       ]
  431.     },
  432.     "SiteEdge": {
  433.       "type": "object",
  434.       "properties": {
  435.         "node": {
  436.           "$ref": "#/definitions/Site"
  437.         },
  438.         "cursor": {
  439.           "type": "string"
  440.         }
  441.       },
  442.       "required": [
  443.         "cursor"
  444.       ]
  445.     },
  446.     "SitePageInfo": {
  447.       "type": "object",
  448.       "properties": {
  449.         "endCursor": {
  450.           "type": "string"
  451.         },
  452.         "hasNextPage": {
  453.           "type": "boolean"
  454.         }
  455.       },
  456.       "required": [
  457.         "hasNextPage"
  458.       ]
  459.     },
  460.     "AddressConnection": {
  461.       "type": "object",
  462.       "properties": {
  463.         "edges": {
  464.           "type": "array",
  465.           "items": {
  466.             "$ref": "#/definitions/AddressEdge"
  467.           }
  468.         },
  469.         "pageInfo": {
  470.           "$ref": "#/definitions/AddressPageInfo"
  471.         },
  472.         "totalCount": {
  473.           "type": "number"
  474.         }
  475.       },
  476.       "required": [
  477.         "pageInfo",
  478.         "totalCount"
  479.       ]
  480.     },
  481.     "AddressEdge": {
  482.       "type": "object",
  483.       "properties": {
  484.         "node": {
  485.           "$ref": "#/definitions/Address"
  486.         },
  487.         "cursor": {
  488.           "type": "string"
  489.         }
  490.       },
  491.       "required": [
  492.         "cursor"
  493.       ]
  494.     },
  495.     "AddressPageInfo": {
  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.     "deleteSiteInput": {
  510.       "type": "object",
  511.       "properties": {
  512.         "id": {},
  513.         "clientMutationId": {
  514.           "type": "string"
  515.         }
  516.       },
  517.       "required": [
  518.         "id",
  519.         "clientMutationId"
  520.       ]
  521.     },
  522.     "deleteSitePayload": {
  523.       "type": "object",
  524.       "properties": {
  525.         "id": {},
  526.         "clientMutationId": {
  527.           "type": "string"
  528.         }
  529.       },
  530.       "required": [
  531.         "id",
  532.         "clientMutationId"
  533.       ]
  534.     },
  535.     "updateSiteInput": {
  536.       "type": "object",
  537.       "properties": {
  538.         "id": {},
  539.         "domain": {
  540.           "type": "string"
  541.         },
  542.         "openingHours": {
  543.           "type": "array",
  544.           "items": {
  545.             "type": "string"
  546.           }
  547.         },
  548.         "clientMutationId": {
  549.           "type": "string"
  550.         }
  551.       },
  552.       "required": [
  553.         "id",
  554.         "clientMutationId"
  555.       ]
  556.     },
  557.     "updateSitePayload": {
  558.       "type": "object",
  559.       "properties": {
  560.         "id": {},
  561.         "domain": {
  562.           "type": "string"
  563.         },
  564.         "openingHours": {
  565.           "$ref": "#/definitions/OpeningHourConnection"
  566.         },
  567.         "clientMutationId": {
  568.           "type": "string"
  569.         }
  570.       },
  571.       "required": [
  572.         "id",
  573.         "clientMutationId"
  574.       ]
  575.     },
  576.     "createSiteInput": {
  577.       "type": "object",
  578.       "properties": {
  579.         "domain": {
  580.           "type": "string"
  581.         },
  582.         "openingHours": {
  583.           "type": "array",
  584.           "items": {
  585.             "type": "string"
  586.           }
  587.         },
  588.         "clientMutationId": {
  589.           "type": "string"
  590.         }
  591.       },
  592.       "required": [
  593.         "domain",
  594.         "clientMutationId"
  595.       ]
  596.     },
  597.     "createSitePayload": {
  598.       "type": "object",
  599.       "properties": {
  600.         "id": {},
  601.         "domain": {
  602.           "type": "string"
  603.         },
  604.         "openingHours": {
  605.           "$ref": "#/definitions/OpeningHourConnection"
  606.         },
  607.         "clientMutationId": {
  608.           "type": "string"
  609.         }
  610.       },
  611.       "required": [
  612.         "id",
  613.         "domain",
  614.         "clientMutationId"
  615.       ]
  616.     },
  617.     "deleteOpeningHourInput": {
  618.       "type": "object",
  619.       "properties": {
  620.         "id": {},
  621.         "clientMutationId": {
  622.           "type": "string"
  623.         }
  624.       },
  625.       "required": [
  626.         "id",
  627.         "clientMutationId"
  628.       ]
  629.     },
  630.     "deleteOpeningHourPayload": {
  631.       "type": "object",
  632.       "properties": {
  633.         "id": {},
  634.         "clientMutationId": {
  635.           "type": "string"
  636.         }
  637.       },
  638.       "required": [
  639.         "id",
  640.         "clientMutationId"
  641.       ]
  642.     },
  643.     "updateOpeningHourInput": {
  644.       "type": "object",
  645.       "properties": {
  646.         "id": {},
  647.         "clientMutationId": {
  648.           "type": "string"
  649.         }
  650.       },
  651.       "required": [
  652.         "id",
  653.         "clientMutationId"
  654.       ]
  655.     },
  656.     "updateOpeningHourPayload": {
  657.       "type": "object",
  658.       "properties": {
  659.         "id": {},
  660.         "clientMutationId": {
  661.           "type": "string"
  662.         }
  663.       },
  664.       "required": [
  665.         "id",
  666.         "clientMutationId"
  667.       ]
  668.     },
  669.     "createOpeningHourInput": {
  670.       "type": "object",
  671.       "properties": {
  672.         "clientMutationId": {
  673.           "type": "string"
  674.         }
  675.       },
  676.       "required": [
  677.         "clientMutationId"
  678.       ]
  679.     },
  680.     "createOpeningHourPayload": {
  681.       "type": "object",
  682.       "properties": {
  683.         "id": {},
  684.         "clientMutationId": {
  685.           "type": "string"
  686.         }
  687.       },
  688.       "required": [
  689.         "id",
  690.         "clientMutationId"
  691.       ]
  692.     },
  693.     "deleteAddressInput": {
  694.       "type": "object",
  695.       "properties": {
  696.         "id": {},
  697.         "clientMutationId": {
  698.           "type": "string"
  699.         }
  700.       },
  701.       "required": [
  702.         "id",
  703.         "clientMutationId"
  704.       ]
  705.     },
  706.     "deleteAddressPayload": {
  707.       "type": "object",
  708.       "properties": {
  709.         "id": {},
  710.         "clientMutationId": {
  711.           "type": "string"
  712.         }
  713.       },
  714.       "required": [
  715.         "id",
  716.         "clientMutationId"
  717.       ]
  718.     },
  719.     "updateAddressInput": {
  720.       "type": "object",
  721.       "properties": {
  722.         "id": {},
  723.         "clientMutationId": {
  724.           "type": "string"
  725.         }
  726.       },
  727.       "required": [
  728.         "id",
  729.         "clientMutationId"
  730.       ]
  731.     },
  732.     "updateAddressPayload": {
  733.       "type": "object",
  734.       "properties": {
  735.         "id": {},
  736.         "clientMutationId": {
  737.           "type": "string"
  738.         }
  739.       },
  740.       "required": [
  741.         "id",
  742.         "clientMutationId"
  743.       ]
  744.     },
  745.     "createAddressInput": {
  746.       "type": "object",
  747.       "properties": {
  748.         "clientMutationId": {
  749.           "type": "string"
  750.         }
  751.       },
  752.       "required": [
  753.         "clientMutationId"
  754.       ]
  755.     },
  756.     "createAddressPayload": {
  757.       "type": "object",
  758.       "properties": {
  759.         "id": {},
  760.         "clientMutationId": {
  761.           "type": "string"
  762.         }
  763.       },
  764.       "required": [
  765.         "id",
  766.         "clientMutationId"
  767.       ]
  768.     }
  769.   }
  770. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement