materio_extension.base.graphqls 3.4 KB

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