facet.api.graphql 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. type Query {
  2. facets(options: FacetListOptions): FacetList!
  3. facet(id: ID!): Facet
  4. }
  5. type Mutation {
  6. "Create a new Facet"
  7. createFacet(input: CreateFacetInput!): Facet!
  8. "Update an existing Facet"
  9. updateFacet(input: UpdateFacetInput!): Facet!
  10. "Delete an existing Facet"
  11. deleteFacet(id: ID!, force: Boolean): DeletionResponse!
  12. "Create one or more FacetValues"
  13. createFacetValues(input: [CreateFacetValueInput!]!): [FacetValue!]!
  14. "Update one or more FacetValues"
  15. updateFacetValues(input: [UpdateFacetValueInput!]!): [FacetValue!]!
  16. "Delete one or more FacetValues"
  17. deleteFacetValues(ids: [ID!]!, force: Boolean): [DeletionResponse!]!
  18. }
  19. type Facet implements Node {
  20. isPrivate: Boolean!
  21. }
  22. # generated by generateListOptions function
  23. input FacetListOptions
  24. input FacetTranslationInput {
  25. id: ID
  26. languageCode: LanguageCode!
  27. name: String
  28. }
  29. input CreateFacetInput {
  30. code: String!
  31. isPrivate: Boolean!
  32. translations: [FacetTranslationInput!]!
  33. values: [CreateFacetValueWithFacetInput!]
  34. }
  35. input UpdateFacetInput {
  36. id: ID!
  37. isPrivate: Boolean
  38. code: String
  39. translations: [FacetTranslationInput!]
  40. }
  41. input FacetValueTranslationInput {
  42. id: ID
  43. languageCode: LanguageCode!
  44. name: String
  45. }
  46. input CreateFacetValueWithFacetInput {
  47. code: String!
  48. translations: [FacetValueTranslationInput!]!
  49. }
  50. input CreateFacetValueInput {
  51. facetId: ID!
  52. code: String!
  53. translations: [FacetValueTranslationInput!]!
  54. }
  55. input UpdateFacetValueInput {
  56. id: ID!
  57. code: String
  58. translations: [FacetValueTranslationInput!]
  59. }