materio_extension.base.graphqls 3.8 KB

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