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
  • cdnAddFile(
  • filename: String!,
  • is_public: Boolean!,
  • file_type: String,
  • rule_key: String,
  • size: Int!,
  • md5: String!
  • ): CdnFile
  • # Delete file from CDN and all file data
  • #
  • # Arguments
  • # file_id: File ID on CDN
  • cdnDeleteFile(file_id: 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
  • codeAdd(
  • type: String!,
  • length: Int,
  • user_id: Int,
  • expires: Float,
  • created_by_ip: String,
  • created_by_user_agent_id: 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
  • codeUnset(id: Int!, used_at_ip: String, used_at_user_agent_id: 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
  • codeVerify(code: String!, type: String!, user_id: 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
  • commentAdd(
  • idp: Int,
  • user_id: Int!,
  • thing: String!,
  • thing_id: String!,
  • title: String!,
  • text: String!,
  • visitor_id: Int,
  • user_agent_id: Int,
  • files_count: Int,
  • ip: String
  • ): Int
  • # Delete Comment by ID
  • #
  • # Arguments
  • # id: Comment ID
  • commentDelete(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
  • emailAdd(
  • to_email: Email!,
  • to_username: String!,
  • settings: String,
  • type: String,
  • template: String,
  • urgently: Boolean,
  • min_sending_time: Float,
  • replace_data: String,
  • raw_body: 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
  • fileGroupAdd(module: String!, thing: String!, thing_id: String!): Int
  • # Add File to Group
  • #
  • # Arguments
  • # file_id: File ID
  • # group_id: FileGroup ID
  • fileGroupAddFile(file_id: Int!, group_id: Int!): Int
  • # Add File Parameter (or update existing)
  • #
  • # Arguments
  • # file_id: File ID
  • # param_name: Parameter name (key)
  • # value: Parameter value
  • fileGroupAddParam(
  • file_id: Int!,
  • param_name: String!,
  • value: String
  • ): Boolean
  • # Remove File from Group
  • #
  • # Arguments
  • # file_id: ID of link File to FileGroup
  • fileGroupDeleteFile(file_id: Int!): Boolean
  • # Remove Parameter of File
  • #
  • # Arguments
  • # file_id: File ID
  • # param_name: Parameter name (key)
  • fileGroupRemoveParam(file_id: Int!, param_name: 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
  • currencyAdd(code: String!, sign: String!, course: Float!, precision: Int): Currency
  • # Remove currency
  • #
  • # Arguments
  • # id: Currency ID
  • currencyDelete(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
  • currencyUpdate(
  • id: Int!,
  • code: String,
  • course: Float,
  • is_main: Int,
  • is_active: Int,
  • sign: String,
  • precision: 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
  • merchantAdd(
  • title: String!,
  • processing: String!,
  • data_base64: String!,
  • is_active: Int,
  • is_test: Int,
  • total_success_currency_id: Int
  • ): Merchant
  • # Remove Merchant
  • #
  • # Arguments
  • # id: Merchant ID
  • merchantDelete(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
  • merchantUpdate(
  • id: Int!,
  • title: String,
  • processing: String,
  • data_base64: String,
  • is_active: Int,
  • is_test: Int,
  • total_success_currency_id: Int
  • ): Merchant
  • # Add new Payment
  • #
  • # Arguments
  • # data_json: JSON string with payment data
  • paymentAdd(data_json: String!): Int
  • # Add service in payment
  • #
  • # Arguments
  • # payment_id: Payment ID
  • # amount: Service amount
  • # service_data: JSON string with any data about service
  • paymentServiceAdd(
  • payment_id: Int!,
  • amount: Float!,
  • service_data: String!
  • ): Int
  • # Set payment merchant
  • #
  • # Arguments
  • # payment_id: Payment ID
  • # merchant_id: Merchant ID
  • paymentSetMerchant(payment_id: Int!, merchant_id: Int!): Boolean
  • # Add new wallet
  • #
  • # Arguments
  • # user_id: User ID
  • # currency_id: Currency ID
  • walletAdd(user_id: Int!, currency_id: 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
  • walletTransfer(
  • wallet_from: Int!,
  • wallet_to: Int!,
  • sum: Float!,
  • currency_from_id: Int!,
  • comment: String,
  • data: String
  • ): Boolean
  • # Remove Post from database
  • #
  • # Arguments
  • # id: Post ID
  • postDelete(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»
  • utmLogView(
  • visitor_id: Int!,
  • utm_source: String!,
  • utm_medium: String,
  • utm_campaign: String,
  • utm_term: String,
  • utm_content: 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)
  • smsAdd(
  • recipient: String!,
  • raw_text: String!,
  • replace_data: String,
  • delay: Float,
  • urgently: Boolean,
  • additional: String,
  • alfaname: String,
  • processing: 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
  • staticPageAdd(path: String!, thing: String!): Int
  • # Add new alias for StaticPage. Return ID of new alias
  • #
  • # Arguments
  • # page_id: StaticPage ID
  • # url: URL for alias
  • staticPageAliasAdd(page_id: Int!, url: String!): Int
  • # Remove alias for StaticPage
  • #
  • # Arguments
  • # id: StaticPage Alias ID
  • staticPageAliasDelete(id: Int!): Boolean
  • # Remove StaticPage
  • #
  • # Arguments
  • # id: StaticPage ID
  • staticPageDelete(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
  • staticPageLangDelete(
  • thing: String!,
  • thing_id: String!,
  • lang: String,
  • field: 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
  • staticPageLangSet(
  • thing: String!,
  • thing_id: String!,
  • lang: String!,
  • field: String!,
  • value: 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
  • staticPageLogView(
  • id: Int!,
  • ip: String!,
  • user_id: Int!,
  • user_agent_id: Int!,
  • visitor_id: 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]
  • userAdd(
  • login: String,
  • password: String!,
  • name: String,
  • lastname: String,
  • fathername: String,
  • score: Float,
  • phones: String,
  • settings_use_two_factor_auth: Boolean,
  • email: String,
  • phone: String,
  • sex: String,
  • verified_email: Boolean,
  • broken_email: Boolean,
  • birthday: Float,
  • avatar: Int,
  • last_login: Float,
  • last_online: Float,
  • need_change_password: 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
  • userDelete(id: Int!, soft: 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]
  • userUpdate(
  • id: Int!,
  • password: String,
  • login: String,
  • name: String,
  • lastname: String,
  • fathername: String,
  • score: Float,
  • phones: String,
  • settings_use_two_factor_auth: Boolean,
  • email: String,
  • phone: String,
  • sex: String,
  • verified_email: Boolean,
  • broken_email: Boolean,
  • birthday: Float,
  • avatar: Int,
  • last_login: Float,
  • last_online: Float,
  • need_change_password: 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
  • userAccountAdd(
  • user_id: Int!,
  • oauth_provider: String!,
  • oauth_uid: String!,
  • username: String!,
  • userpic: String,
  • screen_name: String,
  • email: Email,
  • refresh_token: String,
  • raw_data: String
  • ): UserAccounts
  • # Remove user account
  • #
  • # Arguments
  • # id: Primary Key
  • userAccountDelete(id: 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
  • userAgentView(id: Int, user_agent_string: String): UserAgent
  • # Add new Visitor
  • #
  • # Arguments
  • # user_id: User ID
  • visitorAdd(user_id: Int): Visitor
  • # Remove Visitor
  • #
  • # Arguments
  • # id: Visitor ID
  • visitorDelete(id: Int!): Boolean
  • # Update Visitor data
  • #
  • # Arguments
  • # id: Visitor ID
  • # user_id: new User ID
  • # cookie_value: new Visitor unique string
  • visitorUpdate(id: Int!, user_id: Int, cookie_value: String): Visitor
  • }

link Require by

This element is not required by anyone