materio_extension.base.graphqls 3.9 KB

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