OBJECT

RootQueryType

link GraphQL Schema definition

  • type RootQueryType {
  • # List of codes
  • #
  • # Arguments
  • # id: Verification Code ID
  • # code: Verification Code (string)
  • code(id: Int, code: String): [Code]
  • # Get count of comments by filter
  • #
  • # Arguments
  • # id: Comment ID
  • # idp: Primary Key (ID) of parent comment
  • # user_id: User ID
  • # created_from: Unix timestamp the start time of the period in
  • # which the comment was created
  • # created_to: Unix timestamp the end time of the period in which
  • # the comment was created
  • # status: Status of comments, can be separated by a comma
  • # thing: Key of base Thing which comment, e.g. product or post
  • # thing_id: ID of Thing item which comment
  • # files_count: Count of file attachments in comment
  • # all_children_of: ID of parent comment (for all nested levels)
  • commentCount(
  • id: Int,
  • idp: Int,
  • user_id: Int,
  • created_from: Float,
  • created_to: Float,
  • status: String,
  • thing: String,
  • thing_id: String,
  • files_count: Int,
  • all_children_of: Int
  • ): Int
  • # Get list of comments
  • #
  • # Arguments
  • # id: Comment ID
  • # idp: Primary Key (ID) of parent comment
  • # user_id: User ID
  • # created_from: Unix timestamp the start time of the period in
  • # which the comment was created
  • # created_to: Unix timestamp the end time of the period in which
  • # the comment was created
  • # status: Status of comments, can be separated by a comma
  • # thing: Key of base Thing which comment, e.g. product or post
  • # thing_id: ID of Thing item which comment
  • # files_count: Count of file attachments in comment
  • # all_children_of: ID of parent comment (for all nested levels)
  • # from: Offset for list (for pagination)
  • # limit: Max count comments in result (for pagination)
  • comment(
  • id: Int,
  • idp: Int,
  • user_id: Int,
  • created_from: Float,
  • created_to: Float,
  • status: String,
  • thing: String,
  • thing_id: String,
  • files_count: Int,
  • all_children_of: Int,
  • from: Int,
  • limit: Int
  • ): [Comment]
  • # Get list of extended columns on Thing
  • #
  • # Arguments
  • # thing: Key of base Thing e.g. product or user
  • extendedColumns(thing: String): [ExtendedColumns]
  • # Get count files by filters
  • #
  • # Arguments
  • # id: File ID
  • # cdn_file_id: File ID on CDN
  • # size: Size of file in Bytes
  • # is_public: Is the file available via http without access token
  • # type: Type of file: currently supported file & image
  • # filename: Original filename with which the file was uploaded
  • # created_from: Unix timestamp the start time of the period in
  • # which the file was created
  • # created_to: Unix timestamp the end time of the period in which
  • # the file was created
  • # md5: MD5 hash of file content
  • fileCount(
  • id: Int,
  • cdn_file_id: Int,
  • size: Int,
  • is_public: Int,
  • type: String,
  • filename: String,
  • created_from: Float,
  • created_to: Float,
  • md5: String
  • ): Int
  • # Get list of files
  • #
  • # Arguments
  • # id: File ID
  • # cdn_file_id: File ID on CDN
  • # size: Size of file in Bytes
  • # is_public: Is the file available via http without access token
  • # type: Type of file: currently supported file & image
  • # filename: Original filename with which the file was uploaded
  • # created_from: Unix timestamp the start time of the period in
  • # which the file was created
  • # created_to: Unix timestamp the end time of the period in which
  • # the file was created
  • # md5: MD5 hash of file content
  • # from: Offset for list (for pagination)
  • # limit: Max count files in result (for pagination)
  • file(
  • id: Int,
  • cdn_file_id: Int,
  • size: Int,
  • is_public: Int,
  • type: String,
  • filename: String,
  • created_from: Float,
  • created_to: Float,
  • md5: String,
  • from: Int,
  • limit: Int
  • ): [File]
  • # List of FileGroups
  • #
  • # Arguments
  • # id: FileGroup ID
  • # module: Module key, e.g. shop or comment
  • # thing: Base Thing key, e.g. product/images
  • # thing_id: Base Thing ID
  • fileGroup(id: Int, module: String, thing: String, thing_id: String): [FileGroup]
  • # File in FileGroup
  • #
  • # Arguments
  • # id: ID of link File to FileGroup
  • fileGroupFile(id: Int!): FileGroupFile
  • # Convert amount to another currency
  • #
  • # Arguments
  • # from: Current currency code
  • # to: New currency code
  • # sum: Amount in current (old) currency
  • # precision: Number of fractional signs
  • currencyConvert(from: String!, to: String!, sum: Float!, precision: Int): Float
  • # Get list of currencies
  • #
  • # Arguments
  • # id: Currency ID
  • # code: Currency code
  • # is_active: Flag Currency active or not
  • # is_main: Flag Currency main or not
  • currency(id: Int, code: String, is_active: Boolean, is_main: Boolean): [Currency]
  • # Get list of Merchants by filter
  • #
  • # Arguments
  • # id: Merchant ID
  • # is_active: Merchant is active or not
  • # is_test: Merchant for tests or not
  • # processing: Processing key
  • merchant(id: Int, is_active: Boolean, is_test: Boolean, processing: String): [Merchant]
  • # Get count of payments by filter
  • #
  • # Arguments
  • # id: Payment ID
  • # user_id: User ID
  • # status: Payment status
  • # merchant_id: Merchant ID
  • # item_id: Any ID which will help identify the payment
  • # type: Payment type
  • # trancode: Payment state code on processing
  • # processing: Processing key
  • # amount_total: Total amount of payment
  • # currency_id: Currency ID
  • paymentCount(
  • id: Int,
  • user_id: Int,
  • status: String,
  • merchant_id: Int,
  • item_id: Int,
  • type: String,
  • trancode: String,
  • processing: String,
  • amount_total: Float,
  • currency_id: Int
  • ): Int
  • # Get list of payments by filter
  • #
  • # Arguments
  • # id: Payment ID
  • # user_id: User ID
  • # status: Payment status
  • # merchant_id: Merchant ID
  • # item_id: Any ID which will help identify the payment
  • # type: Payment type
  • # trancode: Payment state code on processing
  • # processing: Processing key
  • # amount_total: Total amount of payment
  • # currency_id: Currency ID
  • # from: Offset for list (for pagination)
  • # limit: Max count payments in result (for pagination)
  • payment(
  • id: Int,
  • user_id: Int,
  • status: String,
  • merchant_id: Int,
  • item_id: Int,
  • type: String,
  • trancode: String,
  • processing: String,
  • amount_total: Float,
  • currency_id: Int,
  • from: Int,
  • limit: Int
  • ): [Payment]
  • # Getting rules how to direct user for processing
  • #
  • # Arguments
  • # payment_id: Payment ID
  • paymentGetForm(payment_id: Int!): PaymentForm
  • # Get list of payment's services by filter
  • #
  • # Arguments
  • # id: Service ID
  • # payment_id: Payment ID
  • # user_id: User ID
  • # amount: Service amount
  • paymentService(id: Int, payment_id: Int, user_id: Int, amount: Float): [PaymentService]
  • # Get list of wallets by filter
  • #
  • # Arguments
  • # id: Wallet ID
  • # user_id: User ID
  • # currency_id: Currency ID
  • # currency_code: Currency code, e.g usd or eur
  • wallet(id: Int, user_id: Int, currency_id: Int, currency_code: Int): [Wallet]
  • # Get count of wallet transactions by filter
  • #
  • # Arguments
  • # id: Transaction ID
  • # user_id: User ID
  • # wallet_id: Wallet ID
  • # currency_id: Currency ID
  • # sum: Transaction amount
  • walletTransactionCount(
  • id: Int,
  • user_id: Int,
  • wallet_id: Int,
  • currency_id: Int,
  • sum: Float
  • ): Int
  • # Get list of wallet transactions by filter
  • #
  • # Arguments
  • # id: Transaction ID
  • # user_id: User ID
  • # wallet_id: Wallet ID
  • # currency_id: Currency ID
  • # sum: Transaction amount
  • # from: Offset for list (for pagination)
  • # limit: Max count transactions in result (for pagination)
  • walletTransaction(
  • id: Int,
  • user_id: Int,
  • wallet_id: Int,
  • currency_id: Int,
  • sum: Float,
  • from: Int,
  • limit: Int
  • ): [WalletTransaction]
  • # Get list of posts
  • #
  • # Arguments
  • # id: Post ID
  • # lang: Requested lang for multilang fields
  • post(id: Int, lang: String): [Post]
  • # Getting a list of logged visits with UTM tags
  • #
  • # Arguments
  • # id: Primary Key (log ID)
  • # user_id: User ID
  • # 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»
  • utmSearch(
  • id: Int,
  • user_id: Int,
  • visitor_id: Int,
  • utm_source: String,
  • utm_medium: String,
  • utm_campaign: String,
  • utm_term: String,
  • utm_content: String
  • ): [Utm]
  • # Count SMS by filter
  • #
  • # Arguments
  • # id: Primary Key
  • # to: Recipient phone number in international format
  • # status: Current status of SMS
  • # created_from: Unix timestamp the start time of the period in
  • # which the sms was added
  • # created_to: Unix timestamp the end time of the period in which
  • # the sms was added
  • # processing: Key of processing (sms gate)
  • smsCount(
  • id: Int,
  • to: String,
  • status: String,
  • created_from: Float,
  • created_to: Float,
  • processing: String
  • ): Int
  • # Get list of SMS by filter
  • #
  • # Arguments
  • # id: Primary Key
  • # to: Recipient phone number in international format
  • # status: Current status of SMS
  • # created_from: Unix timestamp the start time of the period in
  • # which the sms was added
  • # created_to: Unix timestamp the end time of the period in which
  • # the sms was added
  • # processing: Key of processing (sms gate)
  • # from: Offset for list (for pagination)
  • # limit: Max count sms in result (for pagination)
  • sms(
  • id: Int,
  • to: String,
  • status: String,
  • created_from: Float,
  • created_to: Float,
  • processing: String,
  • from: Int,
  • limit: Int
  • ): [Sms]
  • # Get list of aliases
  • #
  • # Arguments
  • # id: Alias ID
  • # page_id: StaticPage ID
  • # url: URL on site
  • # from: Offset for list (for pagination)
  • # limit: Max count aliases in result (for pagination)
  • staticPageAlias(id: Int, page_id: Int, url: String, from: Int, limit: Int): [StaticPageAlias]
  • # Count of StaticPage by filter
  • #
  • # Arguments
  • # id: StaticPage ID
  • # idp: ID of parent StaticPage
  • # thing: Key of Base Thing, page by default
  • staticPageCount(id: Int, idp: Int, thing: String): Int
  • # Get list of StaticPage by filter
  • #
  • # Arguments
  • # id: StaticPage ID
  • # idp: ID of parent StaticPage
  • # thing: Key of Base Thing, page by default
  • # path: Path (part of URL)
  • # lang: Lang key for multilang fields
  • # with_parents: Need include parents in result or no
  • # from: Offset for list (for pagination)
  • # limit: Max count pages in result (for pagination)
  • staticPage(
  • id: Int,
  • idp: Int,
  • thing: String,
  • path: String,
  • lang: String,
  • with_parents: Boolean,
  • from: Int,
  • limit: Int
  • ): [StaticPage]
  • # Get list of 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
  • # key: Key of field, e.g. title or description, part of Primary
  • # Key
  • staticPageLang(
  • thing: String!,
  • thing_id: String!,
  • lang: String,
  • key: String
  • ): [StaticPageLang]
  • # Get count users by filter
  • #
  • # Arguments
  • # id: User ID
  • # login: User login
  • # email: User email
  • userCount(id: Int, login: String, email: Email): Int
  • # Get list of users by filter
  • #
  • # Arguments
  • # id: User ID
  • # login: User login
  • # email: User email
  • # from: Offset for list (for pagination)
  • # limit: Max count users in result (for pagination)
  • user(id: Int, login: String, email: Email, from: Int, limit: Int): [User]
  • # Check user login & password
  • #
  • # Arguments
  • # login: User login
  • # password: User password
  • # is_hash: If true, field password contain hash of password from
  • # database. If false (by default) password contain raw password from user
  • # is_user_action: Is real user login from html form? For logging.
  • # Default value is false
  • userLogin(
  • login: String!,
  • password: String!,
  • is_hash: Boolean,
  • is_user_action: Boolean
  • ): User
  • # Get UserAccount data by user ID in third system
  • #
  • # Arguments
  • # provider: Key of oauth provider, e.g. google or facebook
  • # oauth_uid: User ID in third system
  • userAccountsByProviderId(
  • provider: String!,
  • oauth_uid: String!
  • ): UserAccounts
  • # Get list of UserAccount
  • #
  • # Arguments
  • # user_id: User ID
  • userAccounts(user_id: Int): [UserAccounts]
  • # Get list of UserAgents. ID is used if specified, then user_agent_string, but not
  • # both
  • #
  • # Arguments
  • # id: UserAgent ID
  • # user_agent_string: UserAgent raw string
  • userAgent(id: Int, user_agent_string: String): [UserAgent]
  • # Get list of Visitors
  • #
  • # Arguments
  • # id: Visitor ID
  • # user_id: User ID
  • # cookie_value: Visitor unique string
  • visitor(id: Int, user_id: Int, cookie_value: String): [Visitor]
  • }

link Require by

This element is not required by anyone