materio_extension.base.graphqls 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218
  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. samples: [Sample]
  69. }
  70. type Product {
  71. id: Int!
  72. uuid: String!
  73. title: String
  74. bundle: String
  75. body: String
  76. price_description: String
  77. path: String
  78. variations: [Variation]
  79. }
  80. type Variation {
  81. id: Int!
  82. uuid: String!
  83. title: String
  84. description: String
  85. subscription_type: String
  86. sku: String
  87. price: Price
  88. product_id: Int
  89. # list_price
  90. # billing_schedule
  91. # license_expiration
  92. # license_type
  93. # field_multiple
  94. }
  95. type Price {
  96. value: Int
  97. currency: String
  98. }
  99. type Sample {
  100. showroom: Showroom
  101. location: String
  102. }
  103. type Filefield {
  104. file: File!
  105. description: String
  106. }
  107. type File {
  108. fid: String!
  109. uuid: String!
  110. filename: String!
  111. filemime: String!
  112. filesize: String!
  113. url: String!
  114. }
  115. type Link {
  116. url: String
  117. title: String
  118. }
  119. type Showroom {
  120. id: Int!
  121. uuid: String!
  122. name: String!
  123. images: [Image]
  124. email: String
  125. address: Address
  126. phone: String
  127. }
  128. type Company {
  129. id: Int!
  130. uuid: String!
  131. name: String!
  132. description: String
  133. attachments: [Filefield]
  134. memo: String
  135. note: Int
  136. website: Link
  137. departement: String
  138. email: String
  139. address: Address
  140. phone: String
  141. infos: String
  142. }
  143. type Tag {
  144. id: Int!
  145. uuid: String!
  146. name: String!
  147. }
  148. type Thesaurus {
  149. id: Int!
  150. uuid: String!
  151. name: String!
  152. }
  153. type Address {
  154. langcode: String
  155. country_code: String
  156. administrative_area: String
  157. locality: String
  158. dependent_locality: String
  159. postal_code: String
  160. sorting_code: String
  161. address_line1: String
  162. address_line2: String
  163. organization: String
  164. given_name: String
  165. additional_name: String
  166. family_name: String
  167. }
  168. type Date {
  169. start: String
  170. end: String
  171. }
  172. type VideoLink {
  173. url: String
  174. }
  175. type Image {
  176. id: Int!
  177. url: String!
  178. alt: String
  179. style_minicard: ImageStyle
  180. style_minicard_url: String
  181. style_linkedmaterialcard: ImageStyle
  182. style_linkedmaterialcard_url: String
  183. style_cardmedium: ImageStyle
  184. style_cardmedium_url: String
  185. style_cardfull: ImageStyle
  186. style_cardfull_url: String
  187. style_articlecardmedium: ImageStyle
  188. style_articlecardmedium_url: String
  189. style_hd: ImageStyle
  190. style_hd_url: String
  191. }
  192. type ImageStyle {
  193. width: Int
  194. height: Int
  195. url: String
  196. }