# Mageplaza # # NOTICE OF LICENSE # # This source file is subject to the Mageplaza.com license that is # available through the world-wide-web at this URL: # https://www.mageplaza.com/LICENSE.txt # # DISCLAIMER # # Do not edit or add to this file if you wish to upgrade this extension to newer # version in the future. # # @category Mageplaza # @package Mageplaza_ProductAttachments # @copyright Copyright (c) Mageplaza (https://www.mageplaza.com/) # @license https://www.mageplaza.com/LICENSE.txt type Query { mpAttachmentsConfiguration ( storeId: Int @doc(description: "Get configuration for Store") ):mpAttachmentsConfigurationOutput @resolver(class: "Mageplaza\\ProductAttachments\\Model\\Resolver\\GetConfiguration") @doc(description: "Query to get configuration.") } interface ProductInterface { mp_attachments: [MpAttachments] @doc(description: "Mageplaza Product Attachments module adds attachments to products") @resolver(class: "Mageplaza\\ProductAttachments\\Model\\Resolver\\AttachmentsDataProvider") } type mpAttachmentsConfigurationOutput { general: MpGeneralValue @doc(description: "Get General value in configuration") default_value: MpDefaultValue @doc(description: "Get Default value in configuration") } type MpGeneralValue { is_enabled: Boolean @doc(description: "Is the Product Attachments module enabled") title: String @doc(description: "Attachments Title") show_on: String @doc(description: "Show on 1: Product Tab, 2: Under Add To Cart button, 3: Sidebar") display_file_size: Boolean @doc(description: "File Size") file_size_limit: String @doc(description: "File size limit") attached_order_email: Boolean @doc(description: "Allow attached files") groups: [GroupsOutput] @doc(description: "groups") manage_icon: [ManageIconOutput] @doc(description: "Manage icon") } type MpDefaultValue { store_view: String @doc(description: "Store view") customer_group: String @doc(description: "Customer Group") is_login: Boolean @doc(description: "Check Login") is_buyer: Boolean @doc(description: "Check Buyer") order_status: String @doc(description: "Order Status") customer_action: String @doc(description: "Customer Action 1: View Online, 2: Download") } type MpAttachments { file_label: String @doc(description: "The file label") file_name: String @doc(description: "The file name") file_icon: String @doc(description: "The icon url") url_file: String @doc(description: "The file url") note: String @doc(description: "Note") group: GroupsOutput @doc(description: "The group file") file_size: String @doc(description: "File Size") } type ManageIconOutput { value: String @doc(description: "Icon Value") file_type: String @doc(description: "File Type") file_icon: String @doc(description: "Patch File Icon url") } type GroupsOutput { value: String @doc(description: "Group Value") name: String @doc(description: "Group Name") position: String @doc(description: "Group Position") }