materio_extension.base.graphqls 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214
  1. scalar Violation
  2. interface NodeInterface {
  3. id: Int!
  4. path: String!
  5. }
  6. type Materiau implements NodeInterface {
  7. id: Int!
  8. uuid: String!
  9. title: String!
  10. path: String!
  11. author: String
  12. body: String
  13. short_description: String
  14. linked_materials: [Materiau]
  15. linked_articles: [Article]
  16. images: [Image]
  17. videos: [VideoLink]
  18. tags: [Tag]
  19. thesaurus: [Thesaurus]
  20. memo: String
  21. attachments: [Filefield]
  22. distributor: [Company]
  23. manufacturer: [Company]
  24. # famille: String
  25. # index: Int
  26. reference: String
  27. samples: [Sample]
  28. }
  29. type Article implements NodeInterface {
  30. id: Int!
  31. uuid: String!
  32. title: String!
  33. path: String!
  34. author: String
  35. body: String
  36. linked_materials: [Materiau]
  37. images: [Image]
  38. videos: [VideoLink]
  39. source: Link
  40. showroom: Showroom
  41. tags: [Tag]
  42. thesaurus: [Thesaurus]
  43. date: Date
  44. memo: String
  45. }
  46. type Thematique implements NodeInterface {
  47. id: Int!
  48. uuid: String!
  49. title: String!
  50. path: String!
  51. author: String
  52. body: String
  53. linked_materials: [Materiau]
  54. images: [Image]
  55. tags: [Tag]
  56. memo: String
  57. }
  58. type SearchResult {
  59. id: Int!
  60. uuid: String!
  61. title: String!
  62. bundle: String!
  63. path: String!
  64. short_description: String
  65. images: [Image]
  66. visuels: [Image]
  67. reference: String
  68. }
  69. type Product {
  70. id: Int!
  71. uuid: String!
  72. title: String
  73. bundle: String
  74. body: String
  75. path: String
  76. variations: [Variation]
  77. }
  78. type Variation {
  79. id: Int!
  80. uuid: String!
  81. title: String
  82. description: String
  83. subscription_type: String
  84. sku: String
  85. price: Price
  86. product_id: Int
  87. # list_price
  88. # billing_schedule
  89. # license_expiration
  90. # license_type
  91. # field_multiple
  92. }
  93. type Price {
  94. value: Int
  95. currency: String
  96. }
  97. type Sample {
  98. showroom: Showroom
  99. location: String
  100. }
  101. type Filefield {
  102. file: File!
  103. description: String
  104. }
  105. type File {
  106. fid: String!
  107. uuid: String!
  108. filename: String!
  109. filemime: String!
  110. filesize: String!
  111. url: String!
  112. }
  113. type Link {
  114. url: String
  115. title: String
  116. }
  117. type Showroom {
  118. id: Int!
  119. uuid: String!
  120. name: String!
  121. images: [Image]
  122. email: String
  123. address: Address
  124. phone: String
  125. }
  126. type Company {
  127. id: Int!
  128. uuid: String!
  129. name: String!
  130. description: String
  131. attachments: [Filefield]
  132. memo: String
  133. note: Int
  134. website: Link
  135. departement: String
  136. email: String
  137. address: Address
  138. phone: String
  139. infos: String
  140. }
  141. type Tag {
  142. id: Int!
  143. uuid: String!
  144. name: String!
  145. }
  146. type Thesaurus {
  147. id: Int!
  148. uuid: String!
  149. name: String!
  150. }
  151. type Address {
  152. langcode: String
  153. country_code: String
  154. administrative_area: String
  155. locality: String
  156. dependent_locality: String
  157. postal_code: String
  158. sorting_code: String
  159. address_line1: String
  160. address_line2: String
  161. organization: String
  162. given_name: String
  163. additional_name: String
  164. family_name: String
  165. }
  166. type Date {
  167. start: String
  168. end: String
  169. }
  170. type VideoLink {
  171. url: String
  172. }
  173. type Image {
  174. id: Int!
  175. url: String!
  176. alt: String
  177. style_minicard: ImageStyle
  178. style_minicard_url: String
  179. style_cardmedium: ImageStyle
  180. style_cardmedium_url: String
  181. style_cardfull: ImageStyle
  182. style_cardfull_url: String
  183. style_articlecardmedium: ImageStyle
  184. style_articlecardmedium_url: String
  185. style_hd: ImageStyle
  186. style_hd_url: String
  187. }
  188. type ImageStyle {
  189. width: Int
  190. height: Int
  191. url: String
  192. }