promotion.api.graphql 756 B

1234567891011121314151617181920212223242526272829
  1. type Query {
  2. promotion(id: ID!): Promotion
  3. promotions(options: PromotionListOptions): PromotionList!
  4. adjustmentOperations: AdjustmentOperations!
  5. }
  6. type Mutation {
  7. createPromotion(input: CreatePromotionInput!): Promotion!
  8. updatePromotion(input: UpdatePromotionInput!): Promotion!
  9. deletePromotion(id: ID!): DeletionResponse!
  10. }
  11. # generated by generateListOptions function
  12. input PromotionListOptions
  13. input CreatePromotionInput {
  14. name: String!
  15. enabled: Boolean!
  16. conditions: [ConfigurableOperationInput!]!
  17. actions: [ConfigurableOperationInput!]!
  18. }
  19. input UpdatePromotionInput {
  20. id: ID!
  21. name: String
  22. enabled: Boolean
  23. conditions: [ConfigurableOperationInput!]
  24. actions: [ConfigurableOperationInput!]
  25. }