schema.graphql 13 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294
  1. directive @goTag(
  2. key: String!
  3. value: String
  4. ) on INPUT_FIELD_DEFINITION | FIELD_DEFINITION
  5. directive @goField(
  6. forceResolver: Boolean,
  7. name: String
  8. ) on INPUT_FIELD_DEFINITION | FIELD_DEFINITION
  9. type Query {
  10. locations(
  11. after: String
  12. before: String
  13. first: Int
  14. last: Int
  15. near: GeoCoordinateInput
  16. reverse: Boolean = false
  17. sortKey: LocationSortKeys = ID
  18. ): LocationConnection!
  19. }
  20. type LocationConnection {
  21. # A list of edges.
  22. edges: [LocationEdge!]!
  23. # A list of the nodes contained in LocationEdge.
  24. nodes: [Location!]!
  25. # Information to aid in pagination.
  26. pageInfo: PageInfo!
  27. }
  28. type LocationEdge {
  29. # A cursor for use in pagination.
  30. cursor: String!
  31. # The item at the end of LocationEdge.
  32. node: Location!
  33. }
  34. input GeoCoordinateInput {
  35. # The coordinate's latitude value.
  36. latitude: Float!
  37. # The coordinate's longitude value.
  38. longitude: Float!
  39. }
  40. enum LocationSortKeys {
  41. # Sort by the `id` value.
  42. ID
  43. # Sort by the `name` value.
  44. NAME
  45. # Sort by the `city` value.
  46. CITY
  47. # Sort by the `distance` value.
  48. DISTANCE
  49. }
  50. # An object with an ID field to support global identification, in accordance with the
  51. # Relay specification.
  52. # This interface is used by the node
  53. # and nodes queries.
  54. interface Node {
  55. # A globally-unique identifier.
  56. id: ID!
  57. }
  58. # Returns information about pagination in a connection, in accordance with the Relay specification.
  59. type PageInfo {
  60. # The cursor corresponding to the last node in edges.
  61. endCursor: String
  62. # Whether there are more pages to fetch following the current page.
  63. hasNextPage: Boolean!
  64. # Whether there are any pages prior to the current page.
  65. hasPreviousPage: Boolean!
  66. # The cursor corresponding to the first node in edges.
  67. startCursor: String
  68. }
  69. # Represents a location where product inventory is held.
  70. type Location implements Node @key(fields: "id") {
  71. # The address of the location.
  72. address: LocationAddress!
  73. # A globally-unique identifier.
  74. id: ID!
  75. # The name of the location.
  76. name: String!
  77. }
  78. # Represents the address of a location.
  79. type LocationAddress {
  80. # The first line of the address for the location.
  81. address1: String
  82. # The second line of the address for the location.
  83. address2: String
  84. # The city of the location.
  85. city: String
  86. # The country of the location.
  87. country: String
  88. # The country code of the location.
  89. countryCode: String
  90. # A formatted version of the address for the location.
  91. formatted: [String!]!
  92. # The latitude coordinates of the location.
  93. latitude: Float
  94. # The longitude coordinates of the location.
  95. longitude: Float
  96. # The phone number of the location.
  97. phone: String
  98. # The province of the location.
  99. province: String
  100. # The code for the province, state, or district of the address of the location.
  101. provinceCode: String
  102. # The ZIP code of the location.
  103. zip: String
  104. }
  105. # ISO 639-1 language codes supported by Shopify.
  106. enum LanguageCode {
  107. # Afrikaans
  108. AF
  109. # Akan
  110. AK
  111. # Amharic
  112. AM
  113. # Arabic
  114. AR
  115. # Assamese
  116. AS
  117. # Azerbaijani
  118. AZ
  119. # Belarusian
  120. BE
  121. # Bulgarian
  122. BG
  123. # Bambara
  124. BM
  125. # Bangla
  126. BN
  127. # Tibetan
  128. BO
  129. # Breton
  130. BR
  131. # Bosnian
  132. BS
  133. # Catalan
  134. CA
  135. # Chechen
  136. CE
  137. # Czech
  138. CS
  139. # Church Slavic
  140. CU
  141. # Welsh
  142. CY
  143. # Danish
  144. DA
  145. # German
  146. DE
  147. # Dzongkha
  148. DZ
  149. # Ewe
  150. EE
  151. # Greek
  152. EL
  153. # English
  154. EN
  155. # Esperanto
  156. EO
  157. # Spanish
  158. ES
  159. # Estonian
  160. ET
  161. # Basque
  162. EU
  163. # Persian
  164. FA
  165. # Fulah
  166. FF
  167. # Finnish
  168. FI
  169. # Faroese
  170. FO
  171. # French
  172. FR
  173. # Western Frisian
  174. FY
  175. # Irish
  176. GA
  177. # Scottish Gaelic
  178. GD
  179. # Galician
  180. GL
  181. # Gujarati
  182. GU
  183. # Manx
  184. GV
  185. # Hausa
  186. HA
  187. # Hebrew
  188. HE
  189. # Hindi
  190. HI
  191. # Croatian
  192. HR
  193. # Hungarian
  194. HU
  195. # Armenian
  196. HY
  197. # Interlingua
  198. IA
  199. # Indonesian
  200. ID
  201. # Igbo
  202. IG
  203. # Sichuan Yi
  204. II
  205. # Icelandic
  206. IS
  207. # Italian
  208. IT
  209. # Japanese
  210. JA
  211. # Javanese
  212. JV
  213. # Georgian.
  214. KA
  215. # Kikuyu.
  216. KI
  217. # Kazakh.
  218. KK
  219. # Kalaallisut.
  220. KL
  221. # Khmer.
  222. KM
  223. # Kannada.
  224. KN
  225. # Korean.
  226. KO
  227. # Kashmiri.
  228. KS
  229. # Kurdish.
  230. KU
  231. # Cornish.
  232. KW
  233. # Kyrgyz.
  234. KY
  235. # Luxembourgish.
  236. LB
  237. # Ganda.
  238. LG
  239. # Lingala.
  240. LN
  241. # Lao.
  242. LO
  243. # Lithuanian.
  244. LT
  245. # Luba-Katanga.
  246. LU
  247. # Latvian.
  248. LV
  249. # Malagasy.
  250. MG
  251. # Māori.
  252. MI
  253. # Macedonian.
  254. MK
  255. # Malayalam.
  256. ML
  257. # Mongolian.
  258. MN
  259. # Marathi.
  260. MR
  261. # Malay.
  262. MS
  263. # Maltese.
  264. MT
  265. # Burmese.
  266. MY
  267. # Norwegian (Bokmål).
  268. NB
  269. # North Ndebele.
  270. ND
  271. # Nepali.
  272. NE
  273. # Dutch.
  274. NL
  275. # Norwegian Nynorsk.
  276. NN
  277. # Norwegian.
  278. NO
  279. # Oromo.
  280. OM
  281. # Odia.
  282. OR
  283. # Ossetic.
  284. OS
  285. # Punjabi.
  286. PA
  287. # Polish.
  288. PL
  289. # Pashto.
  290. PS
  291. # Portuguese (Brazil).
  292. PT_BR
  293. # Portuguese (Portugal).
  294. PT_PT
  295. QU
  296. # Quechua.
  297. # Romansh.
  298. RM
  299. # Rundi.
  300. RN
  301. # Romanian.
  302. RO
  303. # Russian.
  304. RU
  305. # Kinyarwanda.
  306. RW
  307. # Sindhi.
  308. SD
  309. # Northern Sami.
  310. SE
  311. # Sango.
  312. SG
  313. # Sinhala.
  314. SI
  315. # Slovak.
  316. SK
  317. # Slovenian.
  318. SL
  319. # Shona.
  320. SN
  321. # Somali.
  322. SO
  323. # Albanian.
  324. SQ
  325. # Serbian.
  326. SR
  327. # Sundanese.
  328. SU
  329. # Swedish.
  330. SV
  331. # Swahili.
  332. SW
  333. # Tamil.
  334. TA
  335. # Telugu.
  336. TE
  337. # Tajik.
  338. TG
  339. # Thai.
  340. TH
  341. # Tigrinya.
  342. TI
  343. # Turkmen.
  344. TK
  345. # Tongan.
  346. TO
  347. # Turkish.
  348. TR
  349. # Tatar.
  350. TT
  351. # Uyghur.
  352. UG
  353. # Ukrainian.
  354. UK
  355. # Urdu.
  356. UR
  357. # Uzbek.
  358. UZ
  359. # Vietnamese.
  360. VI
  361. # Wolof.
  362. WO
  363. # Xhosa.
  364. XH
  365. # Yiddish.
  366. YI
  367. # Yoruba.
  368. YO
  369. # Chinese (Simplified).
  370. ZH_CN
  371. # Chinese (Traditional).
  372. ZH_TW
  373. # Zulu.
  374. ZU
  375. # Chinese.
  376. ZH
  377. # Portuguese.
  378. PT
  379. # Volapük.
  380. VO
  381. }
  382. # The code designating a country/region, which generally follows ISO 3166-1 alpha-2 guidelines.
  383. # If a territory doesn't have a country code value in the CountryCode enum, then it might be considered a subdivision
  384. # of another country. For example, the territories associated with Spain are represented by the country code ES,
  385. # and the territories associated with the United States of America are represented by the country code US.
  386. enum CountryCode {
  387. # Afghanistan.
  388. AF
  389. # Åland Islands.
  390. AX
  391. # Albania.
  392. AL
  393. # Algeria.
  394. DZ
  395. # Andorra.
  396. AD
  397. # Angola.
  398. AO
  399. # Anguilla.
  400. AI
  401. # Antigua & Barbuda.
  402. AG
  403. # Argentina.
  404. AR
  405. # Armenia.
  406. AM
  407. # Aruba.
  408. AW
  409. # Ascension Island.
  410. AC
  411. # Australia.
  412. AU
  413. # Austria.
  414. AT
  415. # Azerbaijan.
  416. AZ
  417. # Bahamas.
  418. BS
  419. # Bahrain.
  420. BH
  421. # Bangladesh.
  422. BD
  423. # Barbados.
  424. BB
  425. # Belarus.
  426. BY
  427. # Belgium.
  428. BE
  429. # Belize.
  430. BZ
  431. # Benin.
  432. BJ
  433. # Bermuda.
  434. BM
  435. # Bhutan.
  436. BT
  437. # Bolivia.
  438. BO
  439. # Bosnia & Herzegovina.
  440. BA
  441. # Botswana.
  442. BW
  443. # Bouvet Island.
  444. BV
  445. # Brazil.
  446. BR
  447. # British Indian Ocean Territory.
  448. IO
  449. # Brunei.
  450. BN
  451. # Bulgaria.
  452. BG
  453. # Burkina Faso.
  454. BF
  455. # Burundi.
  456. BI
  457. # Cambodia.
  458. KH
  459. # Canada.
  460. CA
  461. # Cape Verde.
  462. CV
  463. # Caribbean Netherlands.
  464. BQ
  465. # Cayman Islands.
  466. KY
  467. # Central African Republic.
  468. CF
  469. # Chad.
  470. TD
  471. # Chile.
  472. CL
  473. # China.
  474. CN
  475. # Christmas Island.
  476. CX
  477. # Cocos (Keeling) Islands.
  478. CC
  479. # Colombia.
  480. CO
  481. # Comoros.
  482. KM
  483. # Congo - Brazzaville.
  484. CG
  485. # Congo - Kinshasa.
  486. CD
  487. # Cook Islands.
  488. CK
  489. # Costa Rica.
  490. CR
  491. # Croatia.
  492. HR
  493. # Cuba.
  494. CU
  495. # Curaçao.
  496. CW
  497. # Cyprus.
  498. CY
  499. # Czechia.
  500. CZ
  501. # Côte d’Ivoire.
  502. CI
  503. # Denmark.
  504. DK
  505. # Djibouti.
  506. DJ
  507. # Dominica.
  508. DM
  509. # Dominican Republic.
  510. DO
  511. # Ecuador.
  512. EC
  513. # Egypt.
  514. EG
  515. # El Salvador.
  516. SV
  517. # Equatorial Guinea.
  518. GQ
  519. # Eritrea.
  520. ER
  521. # Estonia.
  522. EE
  523. # Eswatini.
  524. SZ
  525. # Ethiopia.
  526. ET
  527. # Falkland Islands.
  528. FK
  529. # Faroe Islands.
  530. FO
  531. # Fiji.
  532. FJ
  533. # Finland.
  534. FI
  535. # France.
  536. FR
  537. # French Guiana.
  538. GF
  539. # French Polynesia.
  540. PF
  541. # French Southern Territories.
  542. TF
  543. # Gabon.
  544. GA
  545. # Gambia.
  546. GM
  547. # Georgia.
  548. GE
  549. # Germany.
  550. DE
  551. # Ghana.
  552. GH
  553. # Gibraltar.
  554. GI
  555. # Greece.
  556. GR
  557. # Greenland.
  558. GL
  559. # Grenada.
  560. GD
  561. # Guadeloupe.
  562. GP
  563. # Guatemala.
  564. GT
  565. # Guernsey.
  566. GG
  567. # Guinea.
  568. GN
  569. # Guinea-Bissau.
  570. GW
  571. # Guyana.
  572. GY
  573. # Haiti.
  574. HT
  575. # Heard & McDonald Islands.
  576. HM
  577. # Vatican City.
  578. VA
  579. # Honduras.
  580. HN
  581. # Hong Kong SAR.
  582. HK
  583. # Hungary.
  584. HU
  585. # Iceland.
  586. IS
  587. # India.
  588. IN
  589. # Indonesia.
  590. ID
  591. # Iran.
  592. IR
  593. # Iraq.
  594. IQ
  595. # Ireland.
  596. IE
  597. # Isle of Man.
  598. IM
  599. # Israel.
  600. IL
  601. # Italy.
  602. IT
  603. # Jamaica.
  604. JM
  605. # Japan.
  606. JP
  607. # Jersey.
  608. JE
  609. # Jordan.
  610. JO
  611. # Kazakhstan.
  612. KZ
  613. # Kenya.
  614. KE
  615. # Kiribati.
  616. KI
  617. # North Korea.
  618. KP
  619. # Kosovo.
  620. XK
  621. # Kuwait.
  622. KW
  623. # Kyrgyzstan.
  624. KG
  625. # Laos.
  626. LA
  627. # Latvia.
  628. LV
  629. # Lebanon.
  630. LB
  631. # Lesotho.
  632. LS
  633. # Liberia.
  634. LR
  635. # Libya.
  636. LY
  637. # Liechtenstein.
  638. LI
  639. # Lithuania.
  640. LT
  641. # Luxembourg.
  642. LU
  643. # Macao SAR.
  644. MO
  645. # Madagascar.
  646. MG
  647. # Malawi.
  648. MW
  649. # Malaysia.
  650. MY
  651. # Maldives.
  652. MV
  653. # Mali.
  654. ML
  655. # Malta.
  656. MT
  657. # Martinique.
  658. MQ
  659. # Mauritania.
  660. MR
  661. # Mauritius.
  662. MU
  663. # Mayotte.
  664. YT
  665. # Mexico.
  666. MX
  667. # Moldova.
  668. MD
  669. # Monaco.
  670. MC
  671. # Mongolia.
  672. MN
  673. # Montenegro.
  674. ME
  675. # Montserrat.
  676. MS
  677. # Morocco.
  678. MA
  679. # Mozambique.
  680. MZ
  681. # Myanmar (Burma).
  682. MM
  683. # Namibia.
  684. NA
  685. # Nauru.
  686. NR
  687. # Nepal.
  688. NP
  689. # Netherlands.
  690. NL
  691. # Netherlands Antilles.
  692. AN
  693. # New Caledonia.
  694. NC
  695. # New Zealand.
  696. NZ
  697. # Nicaragua.
  698. NI
  699. # Niger.
  700. NE
  701. # Nigeria.
  702. NG
  703. # Niue.
  704. NU
  705. # Norfolk Island.
  706. NF
  707. # North Macedonia.
  708. MK
  709. # Norway.
  710. NO
  711. # Oman.
  712. OM
  713. # Pakistan.
  714. PK
  715. # Palestinian Territories.
  716. PS
  717. # Panama.
  718. PA
  719. # Papua New Guinea.
  720. PG
  721. # Paraguay.
  722. PY
  723. # Peru.
  724. PE
  725. # Philippines.
  726. PH
  727. # Pitcairn Islands.
  728. PN
  729. # Poland.
  730. PL
  731. # Portugal.
  732. PT
  733. # Qatar.
  734. QA
  735. # Cameroon.
  736. CM
  737. # Réunion.
  738. RE
  739. # Romania.
  740. RO
  741. # Russia.
  742. RU
  743. # Rwanda.
  744. RW
  745. # St. Barthélemy.
  746. BL
  747. # St. Helena.
  748. SH
  749. # St. Kitts & Nevis.
  750. KN
  751. # St. Lucia.
  752. LC
  753. # St. Martin.
  754. MF
  755. # St. Pierre & Miquelon.
  756. PM
  757. # Samoa.
  758. WS
  759. # San Marino.
  760. SM
  761. # São Tomé & Príncipe.
  762. ST
  763. # Saudi Arabia.
  764. SA
  765. # Senegal.
  766. SN
  767. # Serbia.
  768. RS
  769. # Seychelles.
  770. SC
  771. # Sierra Leone.
  772. SL
  773. # Singapore.
  774. SG
  775. # Sint Maarten.
  776. SX
  777. # Slovakia.
  778. SK
  779. # Slovenia.
  780. SI
  781. # Solomon Islands.
  782. SB
  783. # Somalia.
  784. SO
  785. # South Africa.
  786. ZA
  787. # South Georgia & South Sandwich Islands.
  788. GS
  789. # South Korea.
  790. KR
  791. # South Sudan.
  792. SS
  793. # Spain.
  794. ES
  795. # Sri Lanka.
  796. LK
  797. # St. Vincent & Grenadines.
  798. VC
  799. # Sudan.
  800. SD
  801. # Suriname.
  802. SR
  803. # Svalbard & Jan Mayen.
  804. SJ
  805. # Sweden.
  806. SE
  807. # Switzerland.
  808. CH
  809. # Syria.
  810. SY
  811. # Taiwan.
  812. TW
  813. # Tajikistan.
  814. TJ
  815. # Tanzania.
  816. TZ
  817. # Thailand.
  818. TH
  819. # Timor-Leste.
  820. TL
  821. # Togo.
  822. TG
  823. # Tokelau.
  824. TK
  825. # Tonga.
  826. TO
  827. # Trinidad & Tobago.
  828. TT
  829. # Tristan da Cunha.
  830. TA
  831. # Tunisia.
  832. TN
  833. # Turkey.
  834. TR
  835. # Turkmenistan.
  836. TM
  837. # Turks & Caicos Islands.
  838. TC
  839. # Tuvalu.
  840. TV
  841. # Uganda.
  842. UG
  843. # Ukraine.
  844. UA
  845. # United Arab Emirates.
  846. AE
  847. # United Kingdom.
  848. GB
  849. # United States.
  850. US
  851. # U.S. Outlying Islands.
  852. UM
  853. # Uruguay.
  854. UY
  855. # Uzbekistan.
  856. UZ
  857. # Vanuatu.
  858. VU
  859. # Venezuela.
  860. VE
  861. # Vietnam.
  862. VN
  863. # British Virgin Islands.
  864. VG
  865. # Wallis & Futuna.
  866. WF
  867. # Western Sahara.
  868. EH
  869. # Yemen.
  870. YE
  871. # Zambia.
  872. ZM
  873. # Zimbabwe.
  874. ZW
  875. # Unknown Region.
  876. ZZ
  877. }