OBJECT
RootMutationType
link GraphQL Schema definition
- type RootMutationType {
- # Add file on CDN
- #
- # Arguments
- # filename: Original filename
- # is_public: Is the file available via http without access token
- # file_type: Type of file: currently supported file & image
- # rule_key: Key of preset rules for file modifications
- # size: Size of file in Bytes. Size, md5 & sha256 help identify
- # duplicates, so file can be marked as uploaded without content transfe
- # md5: MD5 hash of file content. Size, md5 & sha256 help identify
- # duplicates, so file can be marked as uploaded without content transfe
- (
- String!, :
- Boolean!, :
- String, :
- String, :
- Int!, :
- String! :
- ): CdnFile
- # Delete file from CDN and all file data
- #
- # Arguments
- # file_id: File ID on CDN
- Int!): Boolean ( :
- # Add new code
- #
- # Arguments
- # type: Type of code
- # length: Minimal length of code (maybe larger)
- # user_id: User ID which will use the code
- # expires: Max lifetime of code in seconds
- # created_by_ip: Original user IP who initiated the code
- # created_by_user_agent_id: ID of UserAgent who initiated the
- # code
- (
- String!, :
- Int, :
- Int, :
- Float, :
- String, :
- Int :
- ): Code
- # Mark Code as used
- #
- # Arguments
- # id: Code ID
- # used_at_ip: Original IP who used the code
- # used_at_user_agent_id: ID of UserAgent who used the code
- Int!, : String, : Int): Boolean ( :
- # Verify Code: valid status, type, expires, etc
- #
- # Arguments
- # code: Verification Code from user
- # type: Type of code
- # user_id: User ID who trying use the code
- String!, : String!, : Int!): Code ( :
- # Post new Comment
- #
- # Arguments
- # idp: Primary Key (ID) of parent comment
- # user_id: User ID (author)
- # thing: Key of base Thing which comment, e.g. product or post
- # thing_id: ID of Thing item which comment
- # title: Title of comment
- # text: Text of comment
- # visitor_id: ID of Visitor who post the comment
- # user_agent_id: ID of UserAgent who post the comment
- # files_count: Count of file attachments in comment
- # ip: Original user IP who post the comment
- (
- Int, :
- Int!, :
- String!, :
- String!, :
- String!, :
- String!, :
- Int, :
- Int, :
- Int, :
- String :
- ): Int
- # Delete Comment by ID
- #
- # Arguments
- # id: Comment ID
- Int!): Boolean ( :
- # Add new Email
- #
- # Arguments
- # to_email: Recipient email
- # to_username: Recipient username
- # settings: Additional settings in JSON string
- # type: Letter type: raw_text|raw_html|html_template
- # template: Key of letter template if type = html_template
- # urgently: Urgency level. If true, the letter will go
- # immediately, otherwise the email will be sent via cronjob
- # min_sending_time: Unix timestamp for minimum sending date. For
- # for delayed sending
- # replace_data: Data for replacing macroses in html template
- # (JSON string)
- # raw_body: Raw letter for type = raw_text|raw_html
- (
- Email!, :
- String!, :
- String, :
- String, :
- String, :
- Boolean, :
- Float, :
- String, :
- String :
- ): Int
- # Add new Group of Files
- #
- # Arguments
- # module: Module key, e.g. shop or comment
- # thing: Base Thing key, e.g. product/images
- # thing_id: Base Thing ID
- String!, : String!, : String!): Int ( :
- # Add File to Group
- #
- # Arguments
- # file_id: File ID
- # group_id: FileGroup ID
- Int!, : Int!): Int ( :
- # Add File Parameter (or update existing)
- #
- # Arguments
- # file_id: File ID
- # param_name: Parameter name (key)
- # value: Parameter value
- (
- Int!, :
- String!, :
- String :
- ): Boolean
- # Remove File from Group
- #
- # Arguments
- # file_id: ID of link File to FileGroup
- Int!): Boolean ( :
- # Remove Parameter of File
- #
- # Arguments
- # file_id: File ID
- # param_name: Parameter name (key)
- Int!, : String!): Boolean ( :
- # Add new Currency
- #
- # Arguments
- # code: Currency code, e.g. usd or eur
- # sign: Currency simbol, e.g. $
- # course: Currency course for main site currency
- # precision: Number of fractional signs
- String!, : String!, : Float!, : Int): Currency ( :
- # Remove currency
- #
- # Arguments
- # id: Currency ID
- Int!): Boolean ( :
- # Update Currency data
- #
- # Arguments
- # id: Currency ID
- # code: Currency code
- # course: Currency course for main site currency
- # is_main: Flag Currency main or not (0|1)
- # is_active: Flag Currency active or not (0|1)
- # sign: Currency simbol, e.g. $
- # precision: Number of fractional signs
- (
- Int!, :
- String, :
- Float, :
- Int, :
- Int, :
- String, :
- Int :
- ): Currency
- # Add new Merchant
- #
- # Arguments
- # title: Merchant title
- # processing: Key of processing
- # data_base64: Merchant settings in JSON, then in base64
- # is_active: Merchant active (1) or not (0)
- # is_test: Merchant for tests (1) or not (0)
- # total_success_currency_id: Currency ID for stats
- (
- String!, :
- String!, :
- String!, :
- Int, :
- Int, :
- Int :
- ): Merchant
- # Remove Merchant
- #
- # Arguments
- # id: Merchant ID
- Int!): Boolean ( :
- # Update merchant data
- #
- # Arguments
- # id: ID of Merchant which is edited
- # title: New title
- # processing: New processing key
- # data_base64: New settings in JSON, then in base64
- # is_active: Merchant is active (1) or not (0)
- # is_test: Merchant for tests (1) or not (0)
- # total_success_currency_id: New currency ID for
- # total_success_amount
- (
- Int!, :
- String, :
- String, :
- String, :
- Int, :
- Int, :
- Int :
- ): Merchant
- # Add new Payment
- #
- # Arguments
- # data_json: JSON string with payment data
- String!): Int ( :
- # Add service in payment
- #
- # Arguments
- # payment_id: Payment ID
- # amount: Service amount
- # service_data: JSON string with any data about service
- (
- Int!, :
- Float!, :
- String! :
- ): Int
- # Set payment merchant
- #
- # Arguments
- # payment_id: Payment ID
- # merchant_id: Merchant ID
- Int!, : Int!): Boolean ( :
- # Add new wallet
- #
- # Arguments
- # user_id: User ID
- # currency_id: Currency ID
- Int!, : Int!): Wallet ( :
- # Money transfer between wallets
- #
- # Arguments
- # wallet_from: Sender's Wallet ID
- # wallet_to: Recipient's Wallet ID
- # sum: Amount of money
- # currency_from_id: Currency ID for amount (sum field)
- # comment: Comment for transfer
- # data: Additional data in JSON
- (
- Int!, :
- Int!, :
- Float!, :
- Int!, :
- String, :
- String :
- ): Boolean
- # Remove Post from database
- #
- # Arguments
- # id: Post ID
- Int!): Boolean ( :
- # Log view about visit URL with utm parameters
- #
- # Arguments
- # visitor_id: Visitor ID
- # utm_source: UTM parameter «source»
- # utm_medium: UTM parameter «medium»
- # utm_campaign: UTM parameter «campaign»
- # utm_term: UTM parameter «term»
- # utm_content: UTM parameter «content»
- (
- Int!, :
- String!, :
- String, :
- String, :
- String, :
- String :
- ): Boolean
- # Add new SMS
- #
- # Arguments
- # recipient: Recipient phone number in international format
- # raw_text: Raw sms text (with macroses)
- # replace_data: Data for replacing macroses in sms template (JSON
- # string)
- # delay: Minimum delay before sending in seconds
- # urgently: Urgency level. If true, the sms will go immediately,
- # otherwise the sms will be sent via cronjob
- # additional: JSON string (presumably) with any other data (for
- # user use)
- # alfaname: AlphaNumeric name of sender (if supported by sms
- # gate)
- # processing: Key of processing (sms gate)
- (
- String!, :
- String!, :
- String, :
- Float, :
- Boolean, :
- String, :
- String, :
- String :
- ): Int
- # Add new StaticPage. Return ID of new page
- #
- # Arguments
- # path: Path (part of URL) for new page on site
- # thing: Key of Base Thing, page by default
- String!, : String!): Int ( :
- # Add new alias for StaticPage. Return ID of new alias
- #
- # Arguments
- # page_id: StaticPage ID
- # url: URL for alias
- Int!, : String!): Int ( :
- # Remove alias for StaticPage
- #
- # Arguments
- # id: StaticPage Alias ID
- Int!): Boolean ( :
- # Remove StaticPage
- #
- # Arguments
- # id: StaticPage ID
- Int!): Boolean ( :
- # Remove MultiLang data
- #
- # Arguments
- # thing: Key of Base Thing, e.g. product or post, part of Primary
- # Key
- # thing_id: ID of Base Thing, part of Primary Key
- # lang: Lang, e.g. en or it, part of Primary Key
- # field: Key of field, e.g. title or description, part of Primary
- # Key
- (
- String!, :
- String!, :
- String, :
- String :
- ): Boolean
- # Set MultiLang data
- #
- # Arguments
- # thing: Key of Base Thing, e.g. product or post, part of Primary
- # Key
- # thing_id: ID of Base Thing, part of Primary Key
- # lang: Lang, e.g. en or it, part of Primary Key
- # field: Key of field, e.g. title or description, part of Primary
- # Key
- # value: New value of this field on this lang for this thing &
- # thing_id
- (
- String!, :
- String!, :
- String!, :
- String!, :
- String! :
- ): Boolean
- # Set View of StaticPage
- #
- # Arguments
- # id: StaticPage ID
- # ip: Original user IP who view the page
- # user_id: User ID who view the page
- # user_agent_id: ID of UserAgent who view the page
- # visitor_id: ID of Visitor who view the page
- (
- Int!, :
- String!, :
- Int!, :
- Int!, :
- Int :
- ): Boolean
- # Add new user (register action)
- #
- # Arguments
- # login: User login
- # password: Raw password
- # name: [Not documented]
- # lastname: [Not documented]
- # fathername: [Not documented]
- # score: [Not documented]
- # phones: [Not documented]
- # settings_use_two_factor_auth: [Not documented]
- # email: [Not documented]
- # phone: [Not documented]
- # sex: [Not documented]
- # verified_email: [Not documented]
- # broken_email: [Not documented]
- # birthday: [Not documented]
- # avatar: [Not documented]
- # last_login: [Not documented]
- # last_online: [Not documented]
- # need_change_password: [Not documented]
- (
- String, :
- String!, :
- String, :
- String, :
- String, :
- Float, :
- String, :
- Boolean, :
- String, :
- String, :
- String, :
- Boolean, :
- Boolean, :
- Float, :
- Int, :
- Float, :
- Float, :
- Int :
- ): User
- # Remove user (or just mark as deleted)
- #
- # Arguments
- # id: User ID
- # soft: If true (by default) user just will be marked as deleted
- Int!, : Boolean): Boolean ( :
- # Update user profile
- #
- # Arguments
- # id: User ID
- # password: New user raw password
- # login: New user login
- # name: [Not documented]
- # lastname: [Not documented]
- # fathername: [Not documented]
- # score: [Not documented]
- # phones: [Not documented]
- # settings_use_two_factor_auth: [Not documented]
- # email: [Not documented]
- # phone: [Not documented]
- # sex: [Not documented]
- # verified_email: [Not documented]
- # broken_email: [Not documented]
- # birthday: [Not documented]
- # avatar: [Not documented]
- # last_login: [Not documented]
- # last_online: [Not documented]
- # need_change_password: [Not documented]
- (
- Int!, :
- String, :
- String, :
- String, :
- String, :
- String, :
- Float, :
- String, :
- Boolean, :
- String, :
- String, :
- String, :
- Boolean, :
- Boolean, :
- Float, :
- Int, :
- Float, :
- Float, :
- Int :
- ): User
- # Link new user account in third system to user (oauth2 protocol)
- #
- # Arguments
- # user_id: User ID
- # oauth_provider: Key of oauth provider, e.g. google or facebook
- # oauth_uid: User ID in third system
- # username: User name in third system
- # userpic: http link to user avatar
- # screen_name: User field screen_name (display name)
- # email: User email
- # refresh_token: Refresh token (see oauth2 protocol)
- # raw_data: JSON string with raw data about user from third
- # system
- (
- Int!, :
- String!, :
- String!, :
- String!, :
- String, :
- String, :
- Email, :
- String, :
- String :
- ): UserAccounts
- # Remove user account
- #
- # Arguments
- # id: Primary Key
- Int!): Boolean ( :
- # Log views with this User-Agent string. ID is used if specified, then
- # user_agent_string, but not both
- #
- # Arguments
- # id: UserAgent ID
- # user_agent_string: UserAgent raw string
- Int, : String): UserAgent ( :
- # Add new Visitor
- #
- # Arguments
- # user_id: User ID
- Int): Visitor ( :
- # Remove Visitor
- #
- # Arguments
- # id: Visitor ID
- Int!): Boolean ( :
- # Update Visitor data
- #
- # Arguments
- # id: Visitor ID
- # user_id: new User ID
- # cookie_value: new Visitor unique string
- Int!, : Int, : String): Visitor ( :
- }
link Require by
This element is not required by anyone