Skip to content

Instantly share code, notes, and snippets.

@4knort
4knort / req.js
Last active April 17, 2019 12:53
Request URL: https://api.utex.work/rest/grpc/com.unitedtraders.luna.utex.protocol.mobile.deposit.DepositService.createOnlinePayment
failureReturnUrl: "http://localhost:3000/wallets"
money: {currency: "USD", amount: 111}
paymentSystemId: 1
requestId: "c72b71ab-8fd5-44aa-85d0-22933604ca04"
successReturnUrl: "http://localhost:3000/wallets?wasDepositMade=true"
@4knort
4knort / req.js
Last active March 22, 2019 13:32
Request URL: https://utex-mobile-gateway.unitedtraders.work/rest/grpc/com.unitedtraders.luna.utex.protocol.mobile.MobileHistoryService.getCompletedTransactions
{
currency: "BTC"
dateTo: 1553183390274945300
limit: 50
typeItems: []
}
//response
items: [{type: "TRANSACTIONS_TYPE_BUY_TRADE",…}]
interface Themes {
[key:string]: {[key:string] : string}
}
const themes:Themes = {
blue: {
static: '#4687ed',
hover: '#589bfe',
active: '#1e4bb8',
color: '#fff'
export function getConfig() {
let overrideConfig;
try{
overrideConfig= JSON.parse('{###JSON_CONFIG###}')
} catch {
overrideConfig = {}
}
return {
const commonConfig = require('./common');
const merge = require('webpack-merge');
const webpack = require('webpack');
const path = require('path');
const SentryCliPlugin = require('@sentry/webpack-plugin');
const CleanWebpackPlugin = require('clean-webpack-plugin');
const CopyWebpackPlugin = require('copy-webpack-plugin');
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
const ReactSSRClientPlugin = require('react-server-renderer/client-plugin');
const babelLoader = require('./babel.loader');
operationName: null
query: "query($id: Float!){
investPosition(id: $id) {
id
ideaType
status
finishDateTime
idea {
name
logoUrl
@4knort
4knort / log
Last active November 8, 2018 09:57
Server is running, GraphQL Playground available at http://localhost:4000/graphql
[Axios Request] [2018-11-08 09:55:31] GET api/v1/ideaItems?page=0&sort=ideaDetails.listIndex%2Cdesc
[Axios Response] [2018-11-08 09:55:32] GET 200:OK https://investment.unitedtraders.work/api/v1/ideaItems?page=0&sort=ideaDetail
[Axios Request] [2018-11-08 09:55:35] GET api/v1/userOrderReport?page=0&sort=auditInfo.createdAt%2Cdesc
[Axios Request] [2018-11-08 09:55:35] GET api/v1/userPositions?page=0&sort=positionId%2Cdesc
[Axios Response] [2018-11-08 09:55:35] GET 200:OK https://investment.unitedtraders.work/api/v1/userOrderReport?page=0&sort=audi
[Axios Request] [2018-11-08 09:55:35] GET rest/investmentIdeas/97
[Axios Request] [2018-11-08 09:55:35] GET rest/investmentIdeas/60
operationName:null
query:"query ($id: ID!) {↵ item: flowLesson(id: $id) {↵ ...FlowLessonFields↵ __typename↵ }↵}↵↵fragment FlowLessonFields on Lesson {↵ id↵ priority↵ subject↵ description↵ recordUrl↵ date↵ deleted↵ __typename↵}↵"
variables:{id: "128"}
id:"128"
{data: {item: null}, errors: [,…]}
data:{item: null}
errors:[,…]
0:{message: "Cannot return null for non-nullable type: 'Int' within parent 'Lesson' (/item/priority)",…}
errorType:"DataFetchingException"
operationName:null
query:"mutation ($flowId: ID!, $priceId: ID!, $promoCode: String) {↵ purchaseCourse(input: {flowId: $flowId, priceId: $priceId, promoCode: $promoCode})↵}↵"
variables:{flowId: "35", priceId: "206"}
flowId:"35"
priceId:"206"
data:{purchaseCourse: false}
purchaseCourse:false
{operationName: null, variables: {flowId: 35, priceId: 41},…}
operationName:null
query:"mutation ($flowId: ID!, $priceId: ID!, $promoCode: String) {↵ purchaseCourse(input: {flowId: $flowId, priceId: $priceId, promoCode: $promoCode})↵}↵"
variables:{flowId: 35, priceId: 41}
flowId:35
priceId:41
errors:[{message: "Schema is not configured for mutations", category: "graphql",…}]
0:{message: "Schema is not configured for mutations", category: "graphql",…}
category:"graphql"