Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.
 
 
 
 
 
 

302 рядки
6.7 KiB

  1. # Copyright © Magento, Inc. All rights reserved.
  2. # See COPYING.txt for license details.
  3. directive @doc(description: String="") on QUERY
  4. | MUTATION
  5. | FIELD
  6. | FRAGMENT_DEFINITION
  7. | FRAGMENT_SPREAD
  8. | INLINE_FRAGMENT
  9. | SCHEMA
  10. | SCALAR
  11. | OBJECT
  12. | FIELD_DEFINITION
  13. | ARGUMENT_DEFINITION
  14. | INTERFACE
  15. | UNION
  16. | ENUM
  17. | ENUM_VALUE
  18. | INPUT_OBJECT
  19. | INPUT_FIELD_DEFINITION
  20. directive @resolver(class: String="") on QUERY
  21. | MUTATION
  22. | FIELD
  23. | FRAGMENT_DEFINITION
  24. | FRAGMENT_SPREAD
  25. | INLINE_FRAGMENT
  26. | SCHEMA
  27. | SCALAR
  28. | OBJECT
  29. | FIELD_DEFINITION
  30. | ARGUMENT_DEFINITION
  31. | ENUM
  32. | ENUM_VALUE
  33. | INPUT_OBJECT
  34. | INPUT_FIELD_DEFINITION
  35. directive @typeResolver(class: String="") on UNION
  36. | INTERFACE
  37. | OBJECT
  38. directive @cache(cacheIdentity: String="" cacheable: Boolean=true) on QUERY
  39. type Query {
  40. }
  41. type Mutation {
  42. }
  43. input FilterTypeInput @doc(description: "Defines the comparison operators that can be used in a filter.") {
  44. eq: String @doc(description: "Equals.")
  45. finset: [String] @deprecated (reason: "We do not recommend storing comma separated values, therefore the `finset` filter is redundant.")
  46. from: String @doc(description: "From. Must be used with the `to` field.")
  47. gt: String @doc(description: "Greater than.")
  48. gteq: String @doc(description: "Greater than or equal to.")
  49. in: [String] @doc(description: "In. The value can contain a set of comma-separated values.")
  50. like: String @doc(description: "Like. The specified value can contain % (percent signs) to allow matching of 0 or more characters.")
  51. lt: String @doc(description: "Less than.")
  52. lteq: String @doc(description: "Less than or equal to.")
  53. moreq: String @doc(description: "More than or equal to.")
  54. neq: String @doc(description: "Not equal to.")
  55. notnull: String @doc(description: "Not null.")
  56. null: String @doc(description: "Is null.")
  57. to: String@doc(description: "To. Must be used with the `from` field.")
  58. nin: [String] @doc(description: "Not in. The value can contain a set of comma-separated values.")
  59. }
  60. input FilterEqualTypeInput @doc(description: "Defines a filter that matches the input exactly.") {
  61. in: [String] @doc(description: "Use this attribute to filter on an array of values. For example, to filter on category IDs 4, 5, and 6, specify a value of `[\"4\", \"5\", \"6\"]`.")
  62. eq: String @doc(description: "Use this attribute to exactly match the specified string. For example, to filter on a specific category ID, specify a value such as `5`.")
  63. }
  64. input FilterRangeTypeInput @doc(description: "Defines a filter that matches a range of values, such as prices or dates.") {
  65. from: String @doc(description: "Use this attribute to specify the lowest possible value in the range.")
  66. to: String @doc(description: "Use this attribute to specify the highest possible value in the range.")
  67. }
  68. input FilterMatchTypeInput @doc(description: "Defines a filter that performs a fuzzy search.") {
  69. match: String @doc(description: "Use this attribute to exactly match the specified string. For example, to filter on a specific SKU, specify a value such as `24-MB01`.")
  70. }
  71. input FilterStringTypeInput @doc(description: "Defines a filter for an input string.") {
  72. in: [String] @doc(description: "Filters items that are exactly the same as entries specified in an array of strings.")
  73. eq: String @doc(description: "Filters items that are exactly the same as the specified string.")
  74. match: String @doc(description: "Defines a filter that performs a fuzzy search using the specified string.")
  75. }
  76. type SearchResultPageInfo @doc(description: "Provides navigation for the query response.") {
  77. page_size: Int @doc(description: "The maximum number of items to return per page of results.")
  78. current_page: Int @doc(description: "The specific page to return.")
  79. total_pages: Int @doc(description: "The total number of pages in the response.")
  80. }
  81. enum SortEnum @doc(description: "Indicates whether to return results in ascending or descending order.") {
  82. ASC
  83. DESC
  84. }
  85. type ComplexTextValue {
  86. html: String! @doc(description: "Text that can contain HTML tags.")
  87. }
  88. type Money @doc(description: "Defines a monetary value, including a numeric value and a currency code.") {
  89. value: Float @doc(description: "A number expressing a monetary value.")
  90. currency: CurrencyEnum @doc(description: "A three-letter currency code, such as USD or EUR.")
  91. }
  92. enum CurrencyEnum @doc(description: "The list of available currency codes.") {
  93. AFN
  94. ALL
  95. AZN
  96. DZD
  97. AOA
  98. ARS
  99. AMD
  100. AWG
  101. AUD
  102. BSD
  103. BHD
  104. BDT
  105. BBD
  106. BYN
  107. BZD
  108. BMD
  109. BTN
  110. BOB
  111. BAM
  112. BWP
  113. BRL
  114. GBP
  115. BND
  116. BGN
  117. BUK
  118. BIF
  119. KHR
  120. CAD
  121. CVE
  122. CZK
  123. KYD
  124. GQE
  125. CLP
  126. CNY
  127. COP
  128. KMF
  129. CDF
  130. CRC
  131. HRK
  132. CUP
  133. DKK
  134. DJF
  135. DOP
  136. XCD
  137. EGP
  138. SVC
  139. ERN
  140. EEK
  141. ETB
  142. EUR
  143. FKP
  144. FJD
  145. GMD
  146. GEK
  147. GEL
  148. GHS
  149. GIP
  150. GTQ
  151. GNF
  152. GYD
  153. HTG
  154. HNL
  155. HKD
  156. HUF
  157. ISK
  158. INR
  159. IDR
  160. IRR
  161. IQD
  162. ILS
  163. JMD
  164. JPY
  165. JOD
  166. KZT
  167. KES
  168. KWD
  169. KGS
  170. LAK
  171. LVL
  172. LBP
  173. LSL
  174. LRD
  175. LYD
  176. LTL
  177. MOP
  178. MKD
  179. MGA
  180. MWK
  181. MYR
  182. MVR
  183. LSM
  184. MRO
  185. MUR
  186. MXN
  187. MDL
  188. MNT
  189. MAD
  190. MZN
  191. MMK
  192. NAD
  193. NPR
  194. ANG
  195. YTL
  196. NZD
  197. NIC
  198. NGN
  199. KPW
  200. NOK
  201. OMR
  202. PKR
  203. PAB
  204. PGK
  205. PYG
  206. PEN
  207. PHP
  208. PLN
  209. QAR
  210. RHD
  211. RON
  212. RUB
  213. RWF
  214. SHP
  215. STD
  216. SAR
  217. RSD
  218. SCR
  219. SLL
  220. SGD
  221. SKK
  222. SBD
  223. SOS
  224. ZAR
  225. KRW
  226. LKR
  227. SDG
  228. SRD
  229. SZL
  230. SEK
  231. CHF
  232. SYP
  233. TWD
  234. TJS
  235. TZS
  236. THB
  237. TOP
  238. TTD
  239. TND
  240. TMM
  241. USD
  242. UGX
  243. UAH
  244. AED
  245. UYU
  246. UZS
  247. VUV
  248. VEB
  249. VEF
  250. VND
  251. CHE
  252. CHW
  253. XOF
  254. WST
  255. YER
  256. ZMK
  257. ZWD
  258. TRY
  259. AZM
  260. ROL
  261. TRL
  262. XPF
  263. }
  264. input EnteredOptionInput @doc(description: "Defines a customer-entered option.") {
  265. uid: ID! @doc(description: "The unique ID for a `CustomizableOptionInterface` object, such as a `CustomizableFieldOption`, `CustomizableFileOption`, or `CustomizableAreaOption` object.")
  266. value: String! @doc(description: "Text the customer entered.")
  267. }
  268. enum BatchMutationStatus {
  269. SUCCESS
  270. FAILURE
  271. MIXED_RESULTS
  272. }
  273. interface ErrorInterface @typeResolver(class: "\\Magento\\GraphQl\\Model\\Mutation\\Resolver\\ErrorTypeResolver") {
  274. message: String! @doc(description: "The returned error message.")
  275. }
  276. type NoSuchEntityUidError implements ErrorInterface @doc(description: "Contains an error message when an invalid UID was specified.") {
  277. uid: ID! @doc(description: "The specified invalid unique ID of an object.")
  278. }
  279. type InternalError implements ErrorInterface @doc(description: "Contains an error message when an internal error occurred.") {
  280. }