From 5f05b553a1f667ce6586e1828e2e4ae0839d08fd Mon Sep 17 00:00:00 2001 From: Alexander Kras'ko <0m3r.mail@gmail.com> Date: Fri, 31 Dec 2021 10:55:06 +0200 Subject: [PATCH] Add graphql StoreConfig extended config data --- etc/graphql/di.xml | 27 +++++++++++++++++++++++++++ etc/schema.graphqls | 15 +++++++++++++++ 2 files changed, 42 insertions(+) create mode 100644 etc/graphql/di.xml diff --git a/etc/graphql/di.xml b/etc/graphql/di.xml new file mode 100644 index 0000000..c461560 --- /dev/null +++ b/etc/graphql/di.xml @@ -0,0 +1,27 @@ + + + + + + + testimonials/general/approve + + + testimonials/general/allow_guest_submit + + testimonials/list/items_per_page + testimonials/list/image_width + testimonials/list/image_height + testimonials/list/show_email + + + testimonials/form/enable_company + testimonials/form/enable_website + testimonials/form/enable_twitter + testimonials/form/enable_facebook + testimonials/form/rating_required + testimonials/form/sent_message + + + + diff --git a/etc/schema.graphqls b/etc/schema.graphqls index 2c8985f..17a7bda 100644 --- a/etc/schema.graphqls +++ b/etc/schema.graphqls @@ -44,3 +44,18 @@ type Mutation { twitter: String ): TestimonialInterface @resolver(class: "\\Swissup\\Testimonials\\Model\\Resolver\\CreateTestimonial") @doc(description:"Create testimonial") } + +type StoreConfig { + testimonials_general_approve : Int @doc(description: "Extended Config Data - testimonials/general/approve") + testimonials_general_allowGuestSubmit : Int @doc(description: "Extended Config Data - testimonials/general/allow_guest_submit") + testimonials_list_itemsPerPage : Int @doc(description: "Extended Config Data - testimonials/list/items_per_page") + testimonials_list_imageWidth : Int @doc(description: "Extended Config Data - testimonials/list/image_width") + testimonials_list_imageHeight : Int @doc(description: "Extended Config Data - testimonials/list/image_height") + testimonials_list_showEmail : Int @doc(description: "Extended Config Data - testimonials/list/show_email") + testimonials_form_enableCompany : Int @doc(description: "Extended Config Data - testimonials/form/enable_company") + testimonials_form_enableWebsite : Int @doc(description: "Extended Config Data - testimonials/form/enable_website") + testimonials_form_enableTwitter : Int @doc(description: "Extended Config Data - testimonials/form/enable_twitter") + testimonials_form_enableFacebook : Int @doc(description: "Extended Config Data - testimonials/form/enable_facebook") + testimonials_form_ratingRequired : Int @doc(description: "Extended Config Data - testimonials/form/rating_required") + testimonials_form_sentMessage : String @doc(description: "Extended Config Data - testimonials/form/sent_message") +}