diff --git a/package-lock.json b/package-lock.json index 481d703f..75657be6 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "matters-oss", - "version": "0.28.0", + "version": "0.28.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "matters-oss", - "version": "0.28.0", + "version": "0.28.1", "dependencies": { "@ant-design/icons": "^4.2.1", "@babel/core": "7.10.5", @@ -9482,13 +9482,11 @@ }, "node_modules/chokidar/node_modules/fsevents/node_modules/abbrev": { "version": "1.1.1", - "extraneous": true, "inBundle": true, "license": "ISC" }, "node_modules/chokidar/node_modules/fsevents/node_modules/ansi-regex": { "version": "2.1.1", - "extraneous": true, "inBundle": true, "license": "MIT", "engines": { @@ -9497,13 +9495,11 @@ }, "node_modules/chokidar/node_modules/fsevents/node_modules/aproba": { "version": "1.2.0", - "extraneous": true, "inBundle": true, "license": "ISC" }, "node_modules/chokidar/node_modules/fsevents/node_modules/are-we-there-yet": { "version": "1.1.5", - "extraneous": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -9513,13 +9509,11 @@ }, "node_modules/chokidar/node_modules/fsevents/node_modules/balanced-match": { "version": "1.0.0", - "extraneous": true, "inBundle": true, "license": "MIT" }, "node_modules/chokidar/node_modules/fsevents/node_modules/brace-expansion": { "version": "1.1.11", - "extraneous": true, "inBundle": true, "license": "MIT", "dependencies": { @@ -9529,13 +9523,11 @@ }, "node_modules/chokidar/node_modules/fsevents/node_modules/chownr": { "version": "1.1.3", - "extraneous": true, "inBundle": true, "license": "ISC" }, "node_modules/chokidar/node_modules/fsevents/node_modules/code-point-at": { "version": "1.1.0", - "extraneous": true, "inBundle": true, "license": "MIT", "engines": { @@ -9544,25 +9536,21 @@ }, "node_modules/chokidar/node_modules/fsevents/node_modules/concat-map": { "version": "0.0.1", - "extraneous": true, "inBundle": true, "license": "MIT" }, "node_modules/chokidar/node_modules/fsevents/node_modules/console-control-strings": { "version": "1.1.0", - "extraneous": true, "inBundle": true, "license": "ISC" }, "node_modules/chokidar/node_modules/fsevents/node_modules/core-util-is": { "version": "1.0.2", - "extraneous": true, "inBundle": true, "license": "MIT" }, "node_modules/chokidar/node_modules/fsevents/node_modules/debug": { "version": "3.2.6", - "extraneous": true, "inBundle": true, "license": "MIT", "dependencies": { @@ -9571,7 +9559,6 @@ }, "node_modules/chokidar/node_modules/fsevents/node_modules/deep-extend": { "version": "0.6.0", - "extraneous": true, "inBundle": true, "license": "MIT", "engines": { @@ -9580,13 +9567,11 @@ }, "node_modules/chokidar/node_modules/fsevents/node_modules/delegates": { "version": "1.0.0", - "extraneous": true, "inBundle": true, "license": "MIT" }, "node_modules/chokidar/node_modules/fsevents/node_modules/detect-libc": { "version": "1.0.3", - "extraneous": true, "inBundle": true, "license": "Apache-2.0", "bin": { @@ -9598,7 +9583,6 @@ }, "node_modules/chokidar/node_modules/fsevents/node_modules/fs-minipass": { "version": "1.2.7", - "extraneous": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -9607,13 +9591,11 @@ }, "node_modules/chokidar/node_modules/fsevents/node_modules/fs.realpath": { "version": "1.0.0", - "extraneous": true, "inBundle": true, "license": "ISC" }, "node_modules/chokidar/node_modules/fsevents/node_modules/gauge": { "version": "2.7.4", - "extraneous": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -9629,7 +9611,6 @@ }, "node_modules/chokidar/node_modules/fsevents/node_modules/glob": { "version": "7.1.6", - "extraneous": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -9649,13 +9630,11 @@ }, "node_modules/chokidar/node_modules/fsevents/node_modules/has-unicode": { "version": "2.0.1", - "extraneous": true, "inBundle": true, "license": "ISC" }, "node_modules/chokidar/node_modules/fsevents/node_modules/iconv-lite": { "version": "0.4.24", - "extraneous": true, "inBundle": true, "license": "MIT", "dependencies": { @@ -9667,7 +9646,6 @@ }, "node_modules/chokidar/node_modules/fsevents/node_modules/ignore-walk": { "version": "3.0.3", - "extraneous": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -9676,7 +9654,6 @@ }, "node_modules/chokidar/node_modules/fsevents/node_modules/inflight": { "version": "1.0.6", - "extraneous": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -9686,13 +9663,11 @@ }, "node_modules/chokidar/node_modules/fsevents/node_modules/inherits": { "version": "2.0.4", - "extraneous": true, "inBundle": true, "license": "ISC" }, "node_modules/chokidar/node_modules/fsevents/node_modules/ini": { "version": "1.3.5", - "extraneous": true, "inBundle": true, "license": "ISC", "engines": { @@ -9701,7 +9676,6 @@ }, "node_modules/chokidar/node_modules/fsevents/node_modules/is-fullwidth-code-point": { "version": "1.0.0", - "extraneous": true, "inBundle": true, "license": "MIT", "dependencies": { @@ -9713,13 +9687,11 @@ }, "node_modules/chokidar/node_modules/fsevents/node_modules/isarray": { "version": "1.0.0", - "extraneous": true, "inBundle": true, "license": "MIT" }, "node_modules/chokidar/node_modules/fsevents/node_modules/minimatch": { "version": "3.0.4", - "extraneous": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -9731,13 +9703,11 @@ }, "node_modules/chokidar/node_modules/fsevents/node_modules/minimist": { "version": "0.0.8", - "extraneous": true, "inBundle": true, "license": "MIT" }, "node_modules/chokidar/node_modules/fsevents/node_modules/minipass": { "version": "2.9.0", - "extraneous": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -9747,7 +9717,6 @@ }, "node_modules/chokidar/node_modules/fsevents/node_modules/minizlib": { "version": "1.3.3", - "extraneous": true, "inBundle": true, "license": "MIT", "dependencies": { @@ -9756,7 +9725,6 @@ }, "node_modules/chokidar/node_modules/fsevents/node_modules/mkdirp": { "version": "0.5.1", - "extraneous": true, "inBundle": true, "license": "MIT", "dependencies": { @@ -9768,13 +9736,11 @@ }, "node_modules/chokidar/node_modules/fsevents/node_modules/ms": { "version": "2.1.2", - "extraneous": true, "inBundle": true, "license": "MIT" }, "node_modules/chokidar/node_modules/fsevents/node_modules/needle": { "version": "2.4.0", - "extraneous": true, "inBundle": true, "license": "MIT", "dependencies": { @@ -9791,7 +9757,6 @@ }, "node_modules/chokidar/node_modules/fsevents/node_modules/node-pre-gyp": { "version": "0.14.0", - "extraneous": true, "inBundle": true, "license": "BSD-3-Clause", "dependencies": { @@ -9812,7 +9777,6 @@ }, "node_modules/chokidar/node_modules/fsevents/node_modules/nopt": { "version": "4.0.1", - "extraneous": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -9825,7 +9789,6 @@ }, "node_modules/chokidar/node_modules/fsevents/node_modules/npm-bundled": { "version": "1.1.1", - "extraneous": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -9834,13 +9797,11 @@ }, "node_modules/chokidar/node_modules/fsevents/node_modules/npm-normalize-package-bin": { "version": "1.0.1", - "extraneous": true, "inBundle": true, "license": "ISC" }, "node_modules/chokidar/node_modules/fsevents/node_modules/npm-packlist": { "version": "1.4.7", - "extraneous": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -9850,7 +9811,6 @@ }, "node_modules/chokidar/node_modules/fsevents/node_modules/npmlog": { "version": "4.1.2", - "extraneous": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -9862,7 +9822,6 @@ }, "node_modules/chokidar/node_modules/fsevents/node_modules/number-is-nan": { "version": "1.0.1", - "extraneous": true, "inBundle": true, "license": "MIT", "engines": { @@ -9871,7 +9830,6 @@ }, "node_modules/chokidar/node_modules/fsevents/node_modules/object-assign": { "version": "4.1.1", - "extraneous": true, "inBundle": true, "license": "MIT", "engines": { @@ -9880,7 +9838,6 @@ }, "node_modules/chokidar/node_modules/fsevents/node_modules/once": { "version": "1.4.0", - "extraneous": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -9889,7 +9846,6 @@ }, "node_modules/chokidar/node_modules/fsevents/node_modules/os-homedir": { "version": "1.0.2", - "extraneous": true, "inBundle": true, "license": "MIT", "engines": { @@ -9898,7 +9854,6 @@ }, "node_modules/chokidar/node_modules/fsevents/node_modules/os-tmpdir": { "version": "1.0.2", - "extraneous": true, "inBundle": true, "license": "MIT", "engines": { @@ -9907,7 +9862,6 @@ }, "node_modules/chokidar/node_modules/fsevents/node_modules/osenv": { "version": "0.1.5", - "extraneous": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -9917,7 +9871,6 @@ }, "node_modules/chokidar/node_modules/fsevents/node_modules/path-is-absolute": { "version": "1.0.1", - "extraneous": true, "inBundle": true, "license": "MIT", "engines": { @@ -9926,13 +9879,11 @@ }, "node_modules/chokidar/node_modules/fsevents/node_modules/process-nextick-args": { "version": "2.0.1", - "extraneous": true, "inBundle": true, "license": "MIT" }, "node_modules/chokidar/node_modules/fsevents/node_modules/rc": { "version": "1.2.8", - "extraneous": true, "inBundle": true, "license": "(BSD-2-Clause OR MIT OR Apache-2.0)", "dependencies": { @@ -9947,13 +9898,11 @@ }, "node_modules/chokidar/node_modules/fsevents/node_modules/rc/node_modules/minimist": { "version": "1.2.0", - "extraneous": true, "inBundle": true, "license": "MIT" }, "node_modules/chokidar/node_modules/fsevents/node_modules/readable-stream": { "version": "2.3.6", - "extraneous": true, "inBundle": true, "license": "MIT", "dependencies": { @@ -9968,7 +9917,6 @@ }, "node_modules/chokidar/node_modules/fsevents/node_modules/rimraf": { "version": "2.7.1", - "extraneous": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -9980,25 +9928,21 @@ }, "node_modules/chokidar/node_modules/fsevents/node_modules/safe-buffer": { "version": "5.1.2", - "extraneous": true, "inBundle": true, "license": "MIT" }, "node_modules/chokidar/node_modules/fsevents/node_modules/safer-buffer": { "version": "2.1.2", - "extraneous": true, "inBundle": true, "license": "MIT" }, "node_modules/chokidar/node_modules/fsevents/node_modules/sax": { "version": "1.2.4", - "extraneous": true, "inBundle": true, "license": "ISC" }, "node_modules/chokidar/node_modules/fsevents/node_modules/semver": { "version": "5.7.1", - "extraneous": true, "inBundle": true, "license": "ISC", "bin": { @@ -10007,19 +9951,16 @@ }, "node_modules/chokidar/node_modules/fsevents/node_modules/set-blocking": { "version": "2.0.0", - "extraneous": true, "inBundle": true, "license": "ISC" }, "node_modules/chokidar/node_modules/fsevents/node_modules/signal-exit": { "version": "3.0.2", - "extraneous": true, "inBundle": true, "license": "ISC" }, "node_modules/chokidar/node_modules/fsevents/node_modules/string_decoder": { "version": "1.1.1", - "extraneous": true, "inBundle": true, "license": "MIT", "dependencies": { @@ -10028,7 +9969,6 @@ }, "node_modules/chokidar/node_modules/fsevents/node_modules/string-width": { "version": "1.0.2", - "extraneous": true, "inBundle": true, "license": "MIT", "dependencies": { @@ -10042,7 +9982,6 @@ }, "node_modules/chokidar/node_modules/fsevents/node_modules/strip-ansi": { "version": "3.0.1", - "extraneous": true, "inBundle": true, "license": "MIT", "dependencies": { @@ -10054,7 +9993,6 @@ }, "node_modules/chokidar/node_modules/fsevents/node_modules/strip-json-comments": { "version": "2.0.1", - "extraneous": true, "inBundle": true, "license": "MIT", "engines": { @@ -10063,7 +10001,6 @@ }, "node_modules/chokidar/node_modules/fsevents/node_modules/tar": { "version": "4.4.13", - "extraneous": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -10081,13 +10018,11 @@ }, "node_modules/chokidar/node_modules/fsevents/node_modules/util-deprecate": { "version": "1.0.2", - "extraneous": true, "inBundle": true, "license": "MIT" }, "node_modules/chokidar/node_modules/fsevents/node_modules/wide-align": { "version": "1.1.3", - "extraneous": true, "inBundle": true, "license": "ISC", "dependencies": { @@ -10096,13 +10031,11 @@ }, "node_modules/chokidar/node_modules/fsevents/node_modules/wrappy": { "version": "1.0.2", - "extraneous": true, "inBundle": true, "license": "ISC" }, "node_modules/chokidar/node_modules/fsevents/node_modules/yallist": { "version": "3.1.1", - "extraneous": true, "inBundle": true, "license": "ISC" }, @@ -37949,23 +37882,19 @@ "dependencies": { "abbrev": { "version": "1.1.1", - "bundled": true, - "extraneous": true + "bundled": true }, "ansi-regex": { "version": "2.1.1", - "bundled": true, - "extraneous": true + "bundled": true }, "aproba": { "version": "1.2.0", - "bundled": true, - "extraneous": true + "bundled": true }, "are-we-there-yet": { "version": "1.1.5", "bundled": true, - "extraneous": true, "requires": { "delegates": "^1.0.0", "readable-stream": "^2.0.6" @@ -37973,13 +37902,11 @@ }, "balanced-match": { "version": "1.0.0", - "bundled": true, - "extraneous": true + "bundled": true }, "brace-expansion": { "version": "1.1.11", "bundled": true, - "extraneous": true, "requires": { "balanced-match": "^1.0.0", "concat-map": "0.0.1" @@ -37987,69 +37914,57 @@ }, "chownr": { "version": "1.1.3", - "bundled": true, - "extraneous": true + "bundled": true }, "code-point-at": { "version": "1.1.0", - "bundled": true, - "extraneous": true + "bundled": true }, "concat-map": { "version": "0.0.1", - "bundled": true, - "extraneous": true + "bundled": true }, "console-control-strings": { "version": "1.1.0", - "bundled": true, - "extraneous": true + "bundled": true }, "core-util-is": { "version": "1.0.2", - "bundled": true, - "extraneous": true + "bundled": true }, "debug": { "version": "3.2.6", "bundled": true, - "extraneous": true, "requires": { "ms": "^2.1.1" } }, "deep-extend": { "version": "0.6.0", - "bundled": true, - "extraneous": true + "bundled": true }, "delegates": { "version": "1.0.0", - "bundled": true, - "extraneous": true + "bundled": true }, "detect-libc": { "version": "1.0.3", - "bundled": true, - "extraneous": true + "bundled": true }, "fs-minipass": { "version": "1.2.7", "bundled": true, - "extraneous": true, "requires": { "minipass": "^2.6.0" } }, "fs.realpath": { "version": "1.0.0", - "bundled": true, - "extraneous": true + "bundled": true }, "gauge": { "version": "2.7.4", "bundled": true, - "extraneous": true, "requires": { "aproba": "^1.0.3", "console-control-strings": "^1.0.0", @@ -38064,7 +37979,6 @@ "glob": { "version": "7.1.6", "bundled": true, - "extraneous": true, "requires": { "fs.realpath": "^1.0.0", "inflight": "^1.0.4", @@ -38076,13 +37990,11 @@ }, "has-unicode": { "version": "2.0.1", - "bundled": true, - "extraneous": true + "bundled": true }, "iconv-lite": { "version": "0.4.24", "bundled": true, - "extraneous": true, "requires": { "safer-buffer": ">= 2.1.2 < 3" } @@ -38090,7 +38002,6 @@ "ignore-walk": { "version": "3.0.3", "bundled": true, - "extraneous": true, "requires": { "minimatch": "^3.0.4" } @@ -38098,7 +38009,6 @@ "inflight": { "version": "1.0.6", "bundled": true, - "extraneous": true, "requires": { "once": "^1.3.0", "wrappy": "1" @@ -38106,44 +38016,37 @@ }, "inherits": { "version": "2.0.4", - "bundled": true, - "extraneous": true + "bundled": true }, "ini": { "version": "1.3.5", - "bundled": true, - "extraneous": true + "bundled": true }, "is-fullwidth-code-point": { "version": "1.0.0", "bundled": true, - "extraneous": true, "requires": { "number-is-nan": "^1.0.0" } }, "isarray": { "version": "1.0.0", - "bundled": true, - "extraneous": true + "bundled": true }, "minimatch": { "version": "3.0.4", "bundled": true, - "extraneous": true, "requires": { "brace-expansion": "^1.1.7" } }, "minimist": { "version": "0.0.8", - "bundled": true, - "extraneous": true + "bundled": true }, "minipass": { "version": "2.9.0", "bundled": true, - "extraneous": true, "requires": { "safe-buffer": "^5.1.2", "yallist": "^3.0.0" @@ -38152,7 +38055,6 @@ "minizlib": { "version": "1.3.3", "bundled": true, - "extraneous": true, "requires": { "minipass": "^2.9.0" } @@ -38160,20 +38062,17 @@ "mkdirp": { "version": "0.5.1", "bundled": true, - "extraneous": true, "requires": { "minimist": "0.0.8" } }, "ms": { "version": "2.1.2", - "bundled": true, - "extraneous": true + "bundled": true }, "needle": { "version": "2.4.0", "bundled": true, - "extraneous": true, "requires": { "debug": "^3.2.6", "iconv-lite": "^0.4.4", @@ -38183,7 +38082,6 @@ "node-pre-gyp": { "version": "0.14.0", "bundled": true, - "extraneous": true, "requires": { "detect-libc": "^1.0.2", "mkdirp": "^0.5.1", @@ -38200,7 +38098,6 @@ "nopt": { "version": "4.0.1", "bundled": true, - "extraneous": true, "requires": { "abbrev": "1", "osenv": "^0.1.4" @@ -38209,20 +38106,17 @@ "npm-bundled": { "version": "1.1.1", "bundled": true, - "extraneous": true, "requires": { "npm-normalize-package-bin": "^1.0.1" } }, "npm-normalize-package-bin": { "version": "1.0.1", - "bundled": true, - "extraneous": true + "bundled": true }, "npm-packlist": { "version": "1.4.7", "bundled": true, - "extraneous": true, "requires": { "ignore-walk": "^3.0.1", "npm-bundled": "^1.0.1" @@ -38231,7 +38125,6 @@ "npmlog": { "version": "4.1.2", "bundled": true, - "extraneous": true, "requires": { "are-we-there-yet": "~1.1.2", "console-control-strings": "~1.1.0", @@ -38241,36 +38134,30 @@ }, "number-is-nan": { "version": "1.0.1", - "bundled": true, - "extraneous": true + "bundled": true }, "object-assign": { "version": "4.1.1", - "bundled": true, - "extraneous": true + "bundled": true }, "once": { "version": "1.4.0", "bundled": true, - "extraneous": true, "requires": { "wrappy": "1" } }, "os-homedir": { "version": "1.0.2", - "bundled": true, - "extraneous": true + "bundled": true }, "os-tmpdir": { "version": "1.0.2", - "bundled": true, - "extraneous": true + "bundled": true }, "osenv": { "version": "0.1.5", "bundled": true, - "extraneous": true, "requires": { "os-homedir": "^1.0.0", "os-tmpdir": "^1.0.0" @@ -38278,18 +38165,15 @@ }, "path-is-absolute": { "version": "1.0.1", - "bundled": true, - "extraneous": true + "bundled": true }, "process-nextick-args": { "version": "2.0.1", - "bundled": true, - "extraneous": true + "bundled": true }, "rc": { "version": "1.2.8", "bundled": true, - "extraneous": true, "requires": { "deep-extend": "^0.6.0", "ini": "~1.3.0", @@ -38299,15 +38183,13 @@ "dependencies": { "minimist": { "version": "1.2.0", - "bundled": true, - "extraneous": true + "bundled": true } } }, "readable-stream": { "version": "2.3.6", "bundled": true, - "extraneous": true, "requires": { "core-util-is": "~1.0.0", "inherits": "~2.0.3", @@ -38321,45 +38203,37 @@ "rimraf": { "version": "2.7.1", "bundled": true, - "extraneous": true, "requires": { "glob": "^7.1.3" } }, "safe-buffer": { "version": "5.1.2", - "bundled": true, - "extraneous": true + "bundled": true }, "safer-buffer": { "version": "2.1.2", - "bundled": true, - "extraneous": true + "bundled": true }, "sax": { "version": "1.2.4", - "bundled": true, - "extraneous": true + "bundled": true }, "semver": { "version": "5.7.1", - "bundled": true, - "extraneous": true + "bundled": true }, "set-blocking": { "version": "2.0.0", - "bundled": true, - "extraneous": true + "bundled": true }, "signal-exit": { "version": "3.0.2", - "bundled": true, - "extraneous": true + "bundled": true }, "string_decoder": { "version": "1.1.1", "bundled": true, - "extraneous": true, "requires": { "safe-buffer": "~5.1.0" } @@ -38367,7 +38241,6 @@ "string-width": { "version": "1.0.2", "bundled": true, - "extraneous": true, "requires": { "code-point-at": "^1.0.0", "is-fullwidth-code-point": "^1.0.0", @@ -38377,20 +38250,17 @@ "strip-ansi": { "version": "3.0.1", "bundled": true, - "extraneous": true, "requires": { "ansi-regex": "^2.0.0" } }, "strip-json-comments": { "version": "2.0.1", - "bundled": true, - "extraneous": true + "bundled": true }, "tar": { "version": "4.4.13", "bundled": true, - "extraneous": true, "requires": { "chownr": "^1.1.1", "fs-minipass": "^1.2.5", @@ -38403,26 +38273,22 @@ }, "util-deprecate": { "version": "1.0.2", - "bundled": true, - "extraneous": true + "bundled": true }, "wide-align": { "version": "1.1.3", "bundled": true, - "extraneous": true, "requires": { "string-width": "^1.0.2 || 2" } }, "wrappy": { "version": "1.0.2", - "bundled": true, - "extraneous": true + "bundled": true }, "yallist": { "version": "3.1.1", - "bundled": true, - "extraneous": true + "bundled": true } } }, diff --git a/src/components/Comment/DigestList/index.tsx b/src/components/Comment/DigestList/index.tsx index fce3935e..7d1b1ce6 100644 --- a/src/components/Comment/DigestList/index.tsx +++ b/src/components/Comment/DigestList/index.tsx @@ -1,6 +1,5 @@ import * as React from 'react' import { Table, Switch } from 'antd' -import _get from 'lodash/get' import _compact from 'lodash/compact' import DateTime from '../../DateTime' @@ -47,7 +46,9 @@ class CommentDigestList extends React.Component< } private _renderStateCell(_: any, record: CommentDigest): React.ReactNode { - return + return ( + + ) } _onSelectChange = ( diff --git a/src/components/Comment/SetState/index.tsx b/src/components/Comment/SetState/index.tsx index 74b7e500..21c2231d 100644 --- a/src/components/Comment/SetState/index.tsx +++ b/src/components/Comment/SetState/index.tsx @@ -28,7 +28,7 @@ const COMMENT_STATES: { class SetState extends React.Component { state: Readonly = { - commentState: this.props.state, + commentState: this.props.commentState, loading: false, error: null, } @@ -41,7 +41,7 @@ class SetState extends React.Component { } this.setState({ commentState: value }, () => { - if (this.props.state !== value) { + if (this.props.commentState !== value) { this.preConfirm() } }) @@ -89,7 +89,9 @@ class SetState extends React.Component {
修改後,評論狀態將從   - {this.props.state && } + {this.props.commentState && ( + + )} 改為   {this.state.commentState && ( @@ -107,7 +109,7 @@ class SetState extends React.Component { } private revertChange = () => { - this.setState({ commentState: this.props.state }) + this.setState({ commentState: this.props.commentState }) } public render() { diff --git a/src/components/Comment/SetState/withSetState.ts b/src/components/Comment/SetState/withSetState.ts index 60cf16fe..a683565a 100644 --- a/src/components/Comment/SetState/withSetState.ts +++ b/src/components/Comment/SetState/withSetState.ts @@ -21,7 +21,7 @@ export type CommentState = 'active' | 'archived' | 'banned' | 'collapsed' type InputProps = { ids: string[] - state?: CommentState + commentState?: CommentState disabled?: boolean onSuccess?: () => void } diff --git a/src/components/Layout/Sider/index.tsx b/src/components/Layout/Sider/index.tsx index 2a0f45b0..e736d72f 100644 --- a/src/components/Layout/Sider/index.tsx +++ b/src/components/Layout/Sider/index.tsx @@ -98,7 +98,15 @@ export const Sider: React.FC = ({ location }) => { 評論}> - 評論清單 + + {PAGE_TITLE[PATH.COMMENT_DETAIL]} + + + + + 報告}> + + {PAGE_TITLE[PATH.REPORT_LIST]} diff --git a/src/constants/route.ts b/src/constants/route.ts index 68391b88..532a113e 100644 --- a/src/constants/route.ts +++ b/src/constants/route.ts @@ -20,6 +20,8 @@ export const PATH = { COMMENT_LIST: '/comments', COMMENT_DETAIL: '/comments/:id', + REPORT_LIST: '/reports', + OAUTH_CLIENT_LIST: '/oauth-clients', OAUTH_CLIENT_DETAIL: '/oauth-clients/:id', @@ -60,6 +62,8 @@ export const PAGE_TITLE = { [PATH.COMMENT_LIST]: '評論清單', [PATH.COMMENT_DETAIL]: '評論詳情', + [PATH.REPORT_LIST]: '報告清單', + [PATH.OAUTH_CLIENT_LIST]: 'OAuth Client 清單', [PATH.OAUTH_CLIENT_DETAIL]: 'OAuth Client 詳情', diff --git a/src/definitions/index.d.ts b/src/definitions/index.d.ts index 1967fd0a..ab957177 100644 --- a/src/definitions/index.d.ts +++ b/src/definitions/index.d.ts @@ -144,7 +144,7 @@ export type ArticleDetail = ArticleDigest & { */ export type CommentDigest = { id: string - state: GQLCommentState + commentState: GQLCommentState createdAt: Date node: ArticleDigest content: string @@ -156,6 +156,17 @@ export type CommentDigest = { export type CommentDetail = CommentDigest +/** + * Report + */ +export type ReportDigest = { + id: string + reporter: UserDigest + target: ArticleDigest | CommentDigest + reason: string + createdAt: Date +} + /** * Pagination */ diff --git a/src/definitions/schema.d.ts b/src/definitions/schema.d.ts index 9b0b0b8b..9093cab7 100644 --- a/src/definitions/schema.d.ts +++ b/src/definitions/schema.d.ts @@ -1,13950 +1,9118 @@ -import { Context } from './index' -/* tslint:disable */ -/* eslint-disable */ -import { GraphQLResolveInfo, GraphQLScalarType } from 'graphql' +import { + GraphQLResolveInfo, + GraphQLScalarType, + GraphQLScalarTypeConfig, +} from 'graphql' +import { + User as UserModel, + Wallet as WalletModel, + OAuthClientDB as OAuthClientDBModel, +} from './user' +import { Tag as TagModel } from './tag' +import { Collection as CollectionModel } from './collection' +import { Comment as CommentModel } from './comment' +import { Draft as DraftModel } from './draft' +import { + Circle as CircleModel, + CircleInvitation as CircleInvitationModel, + CircleMember as CircleMemberModel, +} from './circle' +import { + CirclePrice as CirclePriceModel, + Transaction as TransactionModel, + Context, +} from './index' +import { PayoutAccount as PayoutAccountModel } from './payment' +import { Asset as AssetModel } from './asset' +import { NoticeItem as NoticeItemModel } from './notification' +import { Appreciation as AppreciationModel } from './appreciation' +import { Topic as TopicModel } from './topic' +import { Report as ReportModel } from './report' +export type Maybe = T | null +export type InputMaybe = T | undefined +export type Exact = { + [K in keyof T]: T[K] +} +export type MakeOptional = Omit & + { + [SubKey in K]?: Maybe + } +export type MakeMaybe = Omit & + { + [SubKey in K]: Maybe + } +export type MakeEmpty< + T extends { [key: string]: unknown }, + K extends keyof T +> = { [_ in K]?: never } +export type Incremental = + | T + | { + [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never + } +export type Omit = Pick> +export type RequireFields = Omit & + { + [P in K]-?: NonNullable + } +/** All built-in and custom scalars, mapped to their actual values */ +export type Scalars = { + ID: { input: string; output: string } + String: { input: string; output: string } + Boolean: { input: boolean; output: boolean } + Int: { input: number; output: number } + Float: { input: number; output: number } + DateTime: { input: any; output: any } + Upload: { input: any; output: any } +} + +export type GQLAddArticlesTagsInput = { + articles?: InputMaybe> + id: Scalars['ID']['input'] + selected?: InputMaybe +} + +export type GQLAddCollectionsArticlesInput = { + articles: Array + collections: Array +} + +export type GQLAddCreditInput = { + amount: Scalars['Float']['input'] +} + +export type GQLAddCreditResult = { + __typename?: 'AddCreditResult' + /** The client secret of this PaymentIntent. */ + client_secret: Scalars['String']['output'] + transaction: GQLTransaction +} + +export type GQLAnnouncement = { + __typename?: 'Announcement' + content?: Maybe + cover?: Maybe + createdAt: Scalars['DateTime']['output'] + expiredAt?: Maybe + id: Scalars['ID']['output'] + link?: Maybe + order: Scalars['Int']['output'] + title?: Maybe + translations?: Maybe> + type: GQLAnnouncementType + updatedAt: Scalars['DateTime']['output'] + visible: Scalars['Boolean']['output'] +} + +export type GQLAnnouncementType = 'community' | 'product' | 'seminar' + +export type GQLAnnouncementsInput = { + id?: InputMaybe + visible?: InputMaybe +} + +export type GQLAppreciateArticleInput = { + amount: Scalars['Int']['input'] + id: Scalars['ID']['input'] + superLike?: InputMaybe + token?: InputMaybe +} + +export type GQLAppreciation = { + __typename?: 'Appreciation' + amount: Scalars['Int']['output'] + content: Scalars['String']['output'] + /** Timestamp of appreciation. */ + createdAt: Scalars['DateTime']['output'] + purpose: GQLAppreciationPurpose + /** Recipient of appreciation. */ + recipient: GQLUser + /** Sender of appreciation. */ + sender?: Maybe + /** Object that appreciation is meant for. */ + target?: Maybe +} + +export type GQLAppreciationConnection = GQLConnection & { + __typename?: 'AppreciationConnection' + edges?: Maybe> + pageInfo: GQLPageInfo + totalCount: Scalars['Int']['output'] +} + +export type GQLAppreciationEdge = { + __typename?: 'AppreciationEdge' + cursor: Scalars['String']['output'] + node: GQLAppreciation +} + +export type GQLAppreciationPurpose = + | 'appreciate' + | 'appreciateComment' + | 'appreciateSubsidy' + | 'firstPost' + | 'invitationAccepted' + | 'joinByInvitation' + | 'joinByTask' + | 'systemSubsidy' + /** - * This file is auto-generated by graphql-schema-typescript - * Please note that any changes in this file may be overwritten + * This type contains metadata, content, hash and related data of an article. If you + * want information about article's comments. Please check Comment type. */ +export type GQLArticle = GQLNode & + GQLPinnableWork & { + __typename?: 'Article' + /** Access related fields on circle */ + access: GQLArticleAccess + /** Number represents how many times per user can appreciate this article. */ + appreciateLeft: Scalars['Int']['output'] + /** Limit the nuhmber of appreciate per user. */ + appreciateLimit: Scalars['Int']['output'] + /** Appreciations history of this article. */ + appreciationsReceived: GQLAppreciationConnection + /** Total number of appreciations recieved of this article. */ + appreciationsReceivedTotal: Scalars['Int']['output'] + /** List of assets are belonged to this article (Only the author can access currently). */ + assets: Array + /** Author of this article. */ + author: GQLUser + /** Available translation languages. */ + availableTranslations?: Maybe> + /** whether readers can comment */ + canComment: Scalars['Boolean']['output'] + /** This value determines if current viewer can SuperLike or not. */ + canSuperLike: Scalars['Boolean']['output'] + /** List of articles which added this article into their collections. */ + collectedBy: GQLArticleConnection + /** List of articles added into this article' collection. */ + collection: GQLArticleConnection + /** The counting number of comments. */ + commentCount: Scalars['Int']['output'] + /** List of comments of this article. */ + comments: GQLCommentConnection + /** Content (HTML) of this article. */ + content: Scalars['String']['output'] + /** Different foramts of content. */ + contents: GQLArticleContents + /** Article cover's link. */ + cover?: Maybe + /** Time of this article was created. */ + createdAt: Scalars['DateTime']['output'] + /** IPFS hash of this article. */ + dataHash: Scalars['String']['output'] + /** Total number of donation recieved of this article. */ + donationCount: Scalars['Int']['output'] + /** Donations of this article, grouped by sender */ + donations: GQLArticleDonationConnection + /** + * Drafts linked to this article. + * @deprecated Use Article.newestUnpublishedDraft or Article.newestPublishedDraft instead + */ + drafts?: Maybe> + /** List of featured comments of this article. */ + featuredComments: GQLCommentConnection + /** This value determines if current viewer has appreciated or not. */ + hasAppreciate: Scalars['Boolean']['output'] + /** Unique ID of this article */ + id: Scalars['ID']['output'] + /** the iscnId if published to ISCN */ + iscnId?: Maybe + /** Original language of content */ + language?: Maybe + /** License Type */ + license: GQLArticleLicenseType + /** Media hash, composed of cid encoding, of this article. */ + mediaHash: Scalars['String']['output'] + /** Newest published draft linked to this article. */ + newestPublishedDraft: GQLDraft + /** Newest unpublished draft linked to this article. */ + newestUnpublishedDraft?: Maybe + oss: GQLArticleOss + /** The number determines how many comments can be set as pinned comment. */ + pinCommentLeft: Scalars['Int']['output'] + /** The number determines how many pinned comments can be set. */ + pinCommentLimit: Scalars['Int']['output'] + pinned: Scalars['Boolean']['output'] + /** List of pinned comments. */ + pinnedComments?: Maybe> + /** Cumulative reading time in seconds */ + readTime: Scalars['Float']['output'] + /** Total number of readers of this article. */ + readerCount: Scalars['Int']['output'] + /** Related articles to this article. */ + relatedArticles: GQLArticleConnection + /** Donation-related articles to this article. */ + relatedDonationArticles: GQLArticleConnection + remark?: Maybe + /** creator message after support */ + replyToDonator?: Maybe + /** creator message asking for support */ + requestForDonation?: Maybe + /** The counting number of this article. */ + responseCount: Scalars['Int']['output'] + /** List of responses of a article. */ + responses: GQLResponseConnection + /** Time of this article was revised. */ + revisedAt?: Maybe + /** Revision Count */ + revisionCount: Scalars['Int']['output'] + /** whether content is marked as sensitive by admin */ + sensitiveByAdmin: Scalars['Boolean']['output'] + /** whether content is marked as sensitive by author */ + sensitiveByAuthor: Scalars['Boolean']['output'] + /** Slugified article title. */ + slug: Scalars['String']['output'] + /** State of this article. */ + state: GQLArticleState + /** + * This value determines if this article is an author selected article or not. + * @deprecated Use pinned instead + */ + sticky: Scalars['Boolean']['output'] + /** This value determines if current Viewer has subscribed of not. */ + subscribed: Scalars['Boolean']['output'] + /** Subscribers of this article. */ + subscribers: GQLUserConnection + /** A short summary for this article. */ + summary: Scalars['String']['output'] + /** This value determines if the summary is customized or not. */ + summaryCustomized: Scalars['Boolean']['output'] + /** Tags attached to this article. */ + tags?: Maybe> + /** Article title. */ + title: Scalars['String']['output'] + /** The number represents how popular is this article. */ + topicScore?: Maybe + /** Transactions history of this article. */ + transactionsReceivedBy: GQLUserConnection + /** Translation of article title and content. */ + translation?: Maybe + /** Word count of this article. */ + wordCount?: Maybe + } -/******************************* - * * - * TYPE DEFS * - * * - *******************************/ -export interface GQLQuery { - article?: GQLArticle - circle?: GQLCircle - node?: GQLNode - nodes?: Array - frequentSearch?: Array - search: GQLSearchResultConnection - official: GQLOfficial - oss: GQLOSS - viewer?: GQLUser - user?: GQLUser - exchangeRates?: Array - oauthClient?: GQLOAuthClient +/** + * This type contains metadata, content, hash and related data of an article. If you + * want information about article's comments. Please check Comment type. + */ +export type GQLArticleAppreciationsReceivedArgs = { + input: GQLConnectionArgs } -export interface GQLArticleInput { - mediaHash: string +/** + * This type contains metadata, content, hash and related data of an article. If you + * want information about article's comments. Please check Comment type. + */ +export type GQLArticleCollectedByArgs = { + input: GQLConnectionArgs } /** * This type contains metadata, content, hash and related data of an article. If you * want information about article's comments. Please check Comment type. */ -export interface GQLArticle extends GQLNode { - /** - * Unique ID of this article - */ - id: string +export type GQLArticleCollectionArgs = { + input: GQLConnectionArgs +} - /** - * The number represents how popular is this article. - */ - topicScore?: number +/** + * This type contains metadata, content, hash and related data of an article. If you + * want information about article's comments. Please check Comment type. + */ +export type GQLArticleCommentsArgs = { + input: GQLCommentsInput +} - /** - * Slugified article title. - */ - slug: string +/** + * This type contains metadata, content, hash and related data of an article. If you + * want information about article's comments. Please check Comment type. + */ +export type GQLArticleDonationsArgs = { + input: GQLConnectionArgs +} - /** - * Time of this article was created. - */ - createdAt: GQLDateTime +/** + * This type contains metadata, content, hash and related data of an article. If you + * want information about article's comments. Please check Comment type. + */ +export type GQLArticleFeaturedCommentsArgs = { + input: GQLFeaturedCommentsInput +} - /** - * Time of this article was revised. - */ - revisedAt?: GQLDateTime +/** + * This type contains metadata, content, hash and related data of an article. If you + * want information about article's comments. Please check Comment type. + */ +export type GQLArticleRelatedArticlesArgs = { + input: GQLConnectionArgs +} - /** - * State of this article. - */ - state: GQLArticleState +/** + * This type contains metadata, content, hash and related data of an article. If you + * want information about article's comments. Please check Comment type. + */ +export type GQLArticleRelatedDonationArticlesArgs = { + input: GQLRelatedDonationArticlesInput +} - /** - * Author of this article. - */ - author: GQLUser +/** + * This type contains metadata, content, hash and related data of an article. If you + * want information about article's comments. Please check Comment type. + */ +export type GQLArticleResponsesArgs = { + input: GQLResponsesInput +} - /** - * Article title. - */ - title: string +/** + * This type contains metadata, content, hash and related data of an article. If you + * want information about article's comments. Please check Comment type. + */ +export type GQLArticleSubscribersArgs = { + input: GQLConnectionArgs +} - /** - * Article cover's link. - */ - cover?: string +/** + * This type contains metadata, content, hash and related data of an article. If you + * want information about article's comments. Please check Comment type. + */ +export type GQLArticleTransactionsReceivedByArgs = { + input: GQLTransactionsReceivedByArgs +} - /** - * List of assets are belonged to this article (Only the author can access currently). - */ - assets: Array +/** + * This type contains metadata, content, hash and related data of an article. If you + * want information about article's comments. Please check Comment type. + */ +export type GQLArticleTranslationArgs = { + input?: InputMaybe +} - /** - * A short summary for this article. - */ - summary: string +export type GQLArticleAccess = { + __typename?: 'ArticleAccess' + circle?: Maybe + secret?: Maybe + type: GQLArticleAccessType +} - /** - * This value determines if the summary is customized or not. - */ - summaryCustomized: boolean +/** Enums for types of article access */ +export type GQLArticleAccessType = 'paywall' | 'public' - /** - * Tags attached to this article. - */ - tags?: Array +export type GQLArticleArticleNotice = GQLNotice & { + __typename?: 'ArticleArticleNotice' + /** List of notice actors. */ + actors?: Maybe> + article: GQLArticle + /** Time of this notice was created. */ + createdAt: Scalars['DateTime']['output'] + /** Unique ID of this notice. */ + id: Scalars['ID']['output'] + target: GQLArticle + type: GQLArticleArticleNoticeType + /** The value determines if the notice is unread or not. */ + unread: Scalars['Boolean']['output'] +} - /** - * Word count of this article. - */ - wordCount?: number +export type GQLArticleArticleNoticeType = 'ArticleNewCollected' - /** - * IPFS hash of this article. - */ - dataHash: string +export type GQLArticleConnection = GQLConnection & { + __typename?: 'ArticleConnection' + edges?: Maybe> + pageInfo: GQLPageInfo + totalCount: Scalars['Int']['output'] +} - /** - * Media hash, composed of cid encoding, of this article. - */ - mediaHash: string +export type GQLArticleContents = { + __typename?: 'ArticleContents' + /** HTML content of this article. */ + html: Scalars['String']['output'] + /** Markdown content of this article. */ + markdown: Scalars['String']['output'] +} - /** - * Content of this article. - */ - content: string +export type GQLArticleDonation = { + __typename?: 'ArticleDonation' + id: Scalars['ID']['output'] + sender?: Maybe +} - /** - * Original language of content - */ - language?: string +export type GQLArticleDonationConnection = { + __typename?: 'ArticleDonationConnection' + edges?: Maybe> + pageInfo: GQLPageInfo + totalCount: Scalars['Int']['output'] +} - /** - * List of articles which added this article into their collections. - */ - collectedBy: GQLArticleConnection +export type GQLArticleDonationEdge = { + __typename?: 'ArticleDonationEdge' + cursor: Scalars['String']['output'] + node: GQLArticleDonation +} - /** - * List of articles added into this article' collection. - */ - collection: GQLArticleConnection +export type GQLArticleEdge = { + __typename?: 'ArticleEdge' + cursor: Scalars['String']['output'] + node: GQLArticle +} - /** - * Related articles to this article. - */ - relatedArticles: GQLArticleConnection +export type GQLArticleInput = { + mediaHash: Scalars['String']['input'] +} - /** - * Donation-related articles to this article. - */ - relatedDonationArticles: GQLArticleConnection +/** Enums for types of article license */ +export type GQLArticleLicenseType = + | 'arr' + | 'cc_0' + | 'cc_by_nc_nd_2' + | 'cc_by_nc_nd_4' - /** - * Appreciations history of this article. - */ - appreciationsReceived: GQLAppreciationConnection +export type GQLArticleNotice = GQLNotice & { + __typename?: 'ArticleNotice' + /** List of notice actors. */ + actors?: Maybe> + /** Time of this notice was created. */ + createdAt: Scalars['DateTime']['output'] + /** Unique ID of this notice. */ + id: Scalars['ID']['output'] + target: GQLArticle + type: GQLArticleNoticeType + /** The value determines if the notice is unread or not. */ + unread: Scalars['Boolean']['output'] +} + +export type GQLArticleNoticeType = + | 'ArticleMentionedYou' + | 'ArticleNewAppreciation' + | 'ArticleNewSubscriber' + | 'ArticlePublished' + | 'CircleNewArticle' + | 'RevisedArticleNotPublished' + | 'RevisedArticlePublished' + +export type GQLArticleOss = { + __typename?: 'ArticleOSS' + boost: Scalars['Float']['output'] + inRecommendHottest: Scalars['Boolean']['output'] + inRecommendIcymi: Scalars['Boolean']['output'] + inRecommendNewest: Scalars['Boolean']['output'] + score: Scalars['Float']['output'] +} + +export type GQLArticleRecommendationActivity = { + __typename?: 'ArticleRecommendationActivity' + /** Recommended articles */ + nodes?: Maybe> + /** The source type of recommendation */ + source?: Maybe +} + +export type GQLArticleRecommendationActivitySource = + | 'ReadArticlesTags' + | 'UserDonation' + +/** Enums for an article state. */ +export type GQLArticleState = 'active' | 'archived' | 'banned' + +export type GQLArticleTranslation = { + __typename?: 'ArticleTranslation' + content?: Maybe + language?: Maybe + summary?: Maybe + title?: Maybe +} + +/** This type contains type, link and related data of an asset. */ +export type GQLAsset = { + __typename?: 'Asset' + /** Time of this asset was created. */ + createdAt: Scalars['DateTime']['output'] + draft?: Maybe + /** Unique ID of this Asset. */ + id: Scalars['ID']['output'] + /** Link of this asset. */ + path: Scalars['String']['output'] + /** Types of this asset. */ + type: GQLAssetType + uploadURL?: Maybe +} + +/** Enums for asset types. */ +export type GQLAssetType = + | 'announcementCover' + | 'avatar' + | 'circleAvatar' + | 'circleCover' + | 'collectionCover' + | 'cover' + | 'embed' + | 'embedaudio' + | 'oauthClientAvatar' + | 'profileCover' + | 'tagCover' + | 'topicCover' + +export type GQLAuthResult = { + __typename?: 'AuthResult' + auth: Scalars['Boolean']['output'] + token?: Maybe + type: GQLAuthResultType + user?: Maybe +} - /** - * Total number of appreciations recieved of this article. - */ - appreciationsReceivedTotal: number +export type GQLAuthResultType = 'LinkAccount' | 'Login' | 'Signup' - /** - * Subscribers of this article. - */ - subscribers: GQLUserConnection +export type GQLAuthorsType = 'active' | 'appreciated' | 'default' | 'trendy' - /** - * Limit the nuhmber of appreciate per user. - */ - appreciateLimit: number +export type GQLBadge = { + __typename?: 'Badge' + type: GQLBadgeType +} - /** - * Number represents how many times per user can appreciate this article. - */ - appreciateLeft: number +export type GQLBadgeType = + | 'architect' + | 'golden_motor' + | 'nomad1' + | 'nomad2' + | 'nomad3' + | 'nomad4' + | 'seed' - /** - * This value determines if current viewer has appreciated or not. - */ - hasAppreciate: boolean +export type GQLBadgedUsersInput = { + after?: InputMaybe + first?: InputMaybe + type?: InputMaybe +} - /** - * This value determines if current viewer can SuperLike or not. - */ - canSuperLike: boolean +export type GQLBalance = { + __typename?: 'Balance' + HKD: Scalars['Float']['output'] +} - /** - * This value determines if current Viewer has subscribed of not. - */ - subscribed: boolean +export type GQLBlockchainTransaction = { + __typename?: 'BlockchainTransaction' + chain: GQLChain + txHash: Scalars['String']['output'] +} + +export type GQLBlockedSearchKeyword = { + __typename?: 'BlockedSearchKeyword' + /** Time of this search keyword was created. */ + createdAt: Scalars['DateTime']['output'] + /** Unique ID of bloked search keyword. */ + id: Scalars['ID']['output'] + /** Types of this search keyword. */ + searchKey: Scalars['String']['output'] +} + +export type GQLBoostTypes = 'Article' | 'Tag' | 'User' + +export type GQLCacheControlScope = 'PRIVATE' | 'PUBLIC' + +export type GQLChain = 'Polygon' + +export type GQLChangeEmailInput = { + newEmail: Scalars['String']['input'] + newEmailCodeId: Scalars['ID']['input'] + oldEmail: Scalars['String']['input'] + oldEmailCodeId: Scalars['ID']['input'] +} + +/** This type contains metadata, content and related data of Chapter type, which is a container for Article type. A Chapter belong to a Topic. */ +export type GQLChapter = GQLNode & { + __typename?: 'Chapter' + /** Number articles included in this chapter. */ + articleCount: Scalars['Int']['output'] + /** Articles included in this Chapter */ + articles?: Maybe> + /** Description of this chapter. */ + description?: Maybe + /** Unique id of this chapter. */ + id: Scalars['ID']['output'] + /** Title of this chapter. */ + title: Scalars['String']['output'] + /** The topic that this Chapter belongs to. */ + topic: GQLTopic +} +export type GQLCircle = GQLNode & { + __typename?: 'Circle' + /** Analytics dashboard. */ + analytics: GQLCircleAnalytics /** - * This value determines if this article is an author selected article or not. + * Circle avatar's link. + * @deprecated No longer in use */ - sticky: boolean - + avatar?: Maybe + /** Comments broadcasted by Circle owner. */ + broadcast: GQLCommentConnection /** - * Translation of article title and content. + * Circle cover's link. + * @deprecated No longer in use */ - translation?: GQLArticleTranslation - + cover?: Maybe /** - * Available translation languages. + * Created time. + * @deprecated No longer in use */ - availableTranslations?: Array - + createdAt: Scalars['DateTime']['output'] + /** A short description of this Circle. */ + description?: Maybe + /** Comments made by Circle member. */ + discussion: GQLCommentConnection + /** Discussion (include replies) count of this circle. */ + discussionCount: Scalars['Int']['output'] + /** Discussion (exclude replies) count of this circle. */ + discussionThreadCount: Scalars['Int']['output'] /** - * Transactions history of this article. + * Human readable name of this Circle. + * @deprecated No longer in use */ - transactionsReceivedBy: GQLUserConnection - + displayName: Scalars['String']['output'] /** - * Cumulative reading time in seconds + * List of Circle follower. + * @deprecated No longer in use */ - readTime: number - + followers: GQLUserConnection + /** Unique ID. */ + id: Scalars['ID']['output'] + /** Invitation used by current viewer. */ + invitedBy?: Maybe + /** Invitations belonged to this Circle. */ + invites: GQLInvites /** - * Drafts linked to this article. - * @deprecated Use Article.newestUnpublishedDraft or Article.newestPublishedDraft instead + * This value determines if current viewer is following Circle or not. + * @deprecated No longer in use */ - drafts?: Array - + isFollower: Scalars['Boolean']['output'] /** - * Newest unpublished draft linked to this article. + * This value determines if current viewer is Member or not. + * @deprecated No longer in use */ - newestUnpublishedDraft?: GQLDraft - + isMember: Scalars['Boolean']['output'] /** - * Newest published draft linked to this article. + * List of Circle member. + * @deprecated No longer in use */ - newestPublishedDraft: GQLDraft - + members: GQLMemberConnection /** - * Revision Count + * Slugified name of this Circle. + * @deprecated No longer in use */ - revisionCount: number - + name: Scalars['String']['output'] + /** Circle owner. */ + owner: GQLUser + /** Pinned comments broadcasted by Circle owner. */ + pinnedBroadcast?: Maybe> + /** Prices offered by this Circle. */ + prices?: Maybe> /** - * Access related fields on circle + * State of this Circle. + * @deprecated No longer in use */ - access: GQLArticleAccess - + state: GQLCircleState /** - * License Type + * Updated time. + * @deprecated No longer in use */ - license: GQLArticleLicenseType - + updatedAt: Scalars['DateTime']['output'] /** - * creator message asking for support + * List of works belong to this Circle. + * @deprecated No longer in use */ - requestForDonation?: string + works: GQLArticleConnection +} - /** - * creator message after support - */ - replyToDonator?: string +export type GQLCircleBroadcastArgs = { + input: GQLCommentsInput +} - /** - * the iscnId if published to ISCN - */ - iscnId?: string +export type GQLCircleDiscussionArgs = { + input: GQLCommentsInput +} - /** - * whether readers can comment - */ - canComment: boolean +export type GQLCircleFollowersArgs = { + input: GQLConnectionArgs +} - /** - * ############# - * OSS # - * ############# - */ - oss: GQLArticleOSS - remark?: string - - /** - * The counting number of comments. - */ - commentCount: number - - /** - * The number determines how many pinned comments can be set. - */ - pinCommentLimit: number +export type GQLCircleMembersArgs = { + input: GQLConnectionArgs +} - /** - * The number determines how many comments can be set as pinned comment. - */ - pinCommentLeft: number +export type GQLCircleWorksArgs = { + input: GQLConnectionArgs +} - /** - * List of pinned comments. - */ - pinnedComments?: Array +export type GQLCircleAnalytics = { + __typename?: 'CircleAnalytics' + content: GQLCircleContentAnalytics + follower: GQLCircleFollowerAnalytics + income: GQLCircleIncomeAnalytics + subscriber: GQLCircleSubscriberAnalytics +} - /** - * List of featured comments of this article. - */ - featuredComments: GQLCommentConnection +export type GQLCircleConnection = GQLConnection & { + __typename?: 'CircleConnection' + edges?: Maybe> + pageInfo: GQLPageInfo + totalCount: Scalars['Int']['output'] +} - /** - * List of comments of this article. - */ - comments: GQLCommentConnection +export type GQLCircleContentAnalytics = { + __typename?: 'CircleContentAnalytics' + paywall?: Maybe> + public?: Maybe> +} - /** - * The counting number of this article. - */ - responseCount: number +export type GQLCircleContentAnalyticsDatum = { + __typename?: 'CircleContentAnalyticsDatum' + node: GQLArticle + readCount: Scalars['Int']['output'] +} - /** - * List of responses of a article. - */ - responses: GQLResponseConnection +export type GQLCircleEdge = { + __typename?: 'CircleEdge' + cursor: Scalars['String']['output'] + node: GQLCircle } -export interface GQLNode { - id: string +export type GQLCircleFollowerAnalytics = { + __typename?: 'CircleFollowerAnalytics' + /** current follower count */ + current: Scalars['Int']['output'] + /** the percentage of follower count in reader count of circle articles */ + followerPercentage: Scalars['Float']['output'] + /** subscriber count history of last 4 months */ + history: Array } -/** Use this to resolve interface type Node */ -export type GQLPossibleNodeTypeNames = - | 'Article' - | 'User' - | 'Tag' - | 'Comment' - | 'Circle' - | 'Topic' - | 'Chapter' - | 'Draft' - -export interface GQLNodeNameMap { - Node: GQLNode - Article: GQLArticle - User: GQLUser - Tag: GQLTag - Comment: GQLComment - Circle: GQLCircle - Topic: GQLTopic - Chapter: GQLChapter - Draft: GQLDraft +export type GQLCircleIncomeAnalytics = { + __typename?: 'CircleIncomeAnalytics' + /** income history of last 4 months */ + history: Array + /** income of next month */ + nextMonth: Scalars['Float']['output'] + /** income of this month */ + thisMonth: Scalars['Float']['output'] + /** total income of all time */ + total: Scalars['Float']['output'] +} + +export type GQLCircleInput = { + /** Slugified name of a Circle. */ + name: Scalars['String']['input'] +} + +export type GQLCircleNotice = GQLNotice & { + __typename?: 'CircleNotice' + /** List of notice actors. */ + actors?: Maybe> + /** Optional discussion/broadcast comments for bundled notices */ + comments?: Maybe> + /** Time of this notice was created. */ + createdAt: Scalars['DateTime']['output'] + /** Unique ID of this notice. */ + id: Scalars['ID']['output'] + /** Optional mention comments for bundled notices */ + mentions?: Maybe> + /** Optional discussion/broadcast replies for bundled notices */ + replies?: Maybe> + target: GQLCircle + type: GQLCircleNoticeType + /** The value determines if the notice is unread or not. */ + unread: Scalars['Boolean']['output'] } -/** - * A date-time string at UTC, such as 2007-12-03T10:15:30Z, compliant with the - * `date-time` format outlined in section 5.6 of the RFC 3339 profile of the ISO - * 8601 standard for representation of dates and times using the Gregorian calendar. - */ -export type GQLDateTime = any +export type GQLCircleNoticeType = + | 'CircleInvitation' + | 'CircleNewBroadcastComments' + | 'CircleNewDiscussionComments' + | 'CircleNewFollower' + | 'CircleNewSubscriber' + | 'CircleNewUnsubscriber' -/** - * Enums for an article state. - */ -export const enum GQLArticleState { - active = 'active', - archived = 'archived', - banned = 'banned', +export type GQLCircleRecommendationActivity = { + __typename?: 'CircleRecommendationActivity' + /** Recommended circles */ + nodes?: Maybe> + /** The source type of recommendation */ + source?: Maybe } -export interface GQLUser extends GQLNode { - /** - * Global id of an user. - */ - id: string - - /** - * Global unique user name of a user. - */ - userName?: string +export type GQLCircleRecommendationActivitySource = 'UserSubscription' - /** - * Display name on user profile, can be duplicated. - */ - displayName?: string +export type GQLCircleState = 'active' | 'archived' - /** - * LikerID of LikeCoin, being used by LikeCoin OAuth - */ - likerId?: string +export type GQLCircleSubscriberAnalytics = { + __typename?: 'CircleSubscriberAnalytics' + /** current invitee count */ + currentInvitee: Scalars['Int']['output'] + /** current subscriber count */ + currentSubscriber: Scalars['Int']['output'] + /** invitee count history of last 4 months */ + inviteeHistory: Array + /** subscriber count history of last 4 months */ + subscriberHistory: Array +} - /** - * Liker info of current user - */ - liker: GQLLiker +export type GQLClaimLogbooksInput = { + ethAddress: Scalars['String']['input'] + /** nonce from generateSigningMessage */ + nonce: Scalars['String']['input'] + /** sign'ed by wallet */ + signature: Scalars['String']['input'] + /** the message being sign'ed, including nonce */ + signedMessage: Scalars['String']['input'] +} - /** - * URL for user avatar. - */ - avatar?: string +export type GQLClaimLogbooksResult = { + __typename?: 'ClaimLogbooksResult' + ids?: Maybe> + txHash: Scalars['String']['output'] +} - /** - * User information. - */ - info: GQLUserInfo +export type GQLClearReadHistoryInput = { + id?: InputMaybe +} - /** - * User settings. - */ - settings: GQLUserSettings +export type GQLCollection = GQLNode & + GQLPinnableWork & { + __typename?: 'Collection' + articles: GQLArticleConnection + author: GQLUser + /** Check if the collection contains the article */ + contains: Scalars['Boolean']['output'] + cover?: Maybe + description?: Maybe + id: Scalars['ID']['output'] + pinned: Scalars['Boolean']['output'] + title: Scalars['String']['output'] + updatedAt: Scalars['DateTime']['output'] + } - /** - * Article recommendations for current user. - */ - recommendation: GQLRecommendation +export type GQLCollectionArticlesArgs = { + input: GQLCollectionArticlesInput +} - /** - * Articles authored by current user. - */ - articles: GQLArticleConnection +export type GQLCollectionContainsArgs = { + input: GQLNodeInput +} - /** - * Topics created by current user. - */ - topics: GQLTopicConnection +export type GQLCollectionArticlesInput = { + after?: InputMaybe + first?: InputMaybe + reversed?: InputMaybe +} - /** - * Tags by by usage order of current user. - */ - tags: GQLTagConnection +export type GQLCollectionConnection = GQLConnection & { + __typename?: 'CollectionConnection' + edges?: Maybe> + pageInfo: GQLPageInfo + totalCount: Scalars['Int']['output'] +} - /** - * Tags owned and maintained by current user. - */ - maintainedTags: GQLTagConnection +export type GQLCollectionEdge = { + __typename?: 'CollectionEdge' + cursor: Scalars['String']['output'] + node: GQLCollection +} +/** This type contains content, author, descendant comments and related data of a comment. */ +export type GQLComment = GQLNode & { + __typename?: 'Comment' + /** Author of this comment. */ + author: GQLUser + /** Descendant comments of this comment. */ + comments: GQLCommentConnection + /** Content of this comment. */ + content?: Maybe + /** Time of this comment was created. */ + createdAt: Scalars['DateTime']['output'] /** - * Tags pinned by current user. + * The counting number of downvotes. + * @deprecated No longer in use in querying */ - pinnedTags: GQLTagConnection + downvotes: Scalars['Int']['output'] + /** This value determines this comment is from article donator or not. */ + fromDonator: Scalars['Boolean']['output'] + /** Unique ID of this comment. */ + id: Scalars['ID']['output'] + /** The value determines current user's vote. */ + myVote?: Maybe + /** Current comment belongs to which Node. */ + node: GQLNode + /** Parent comment of this comment. */ + parentComment?: Maybe + /** This value determines this comment is pinned or not. */ + pinned: Scalars['Boolean']['output'] + remark?: Maybe + /** A Comment that this comment replied to. */ + replyTo?: Maybe + /** State of this comment. */ + state: GQLCommentState + type: GQLCommentType + /** The counting number of upvotes. */ + upvotes: Scalars['Int']['output'] +} - /** - * Drafts authored by current user. - */ - drafts: GQLDraftConnection +/** This type contains content, author, descendant comments and related data of a comment. */ +export type GQLCommentCommentsArgs = { + input: GQLCommentCommentsInput +} - /** - * Articles current user commented on - */ - commentedArticles: GQLArticleConnection +export type GQLCommentCommentNotice = GQLNotice & { + __typename?: 'CommentCommentNotice' + /** List of notice actors. */ + actors?: Maybe> + comment: GQLComment + /** Time of this notice was created. */ + createdAt: Scalars['DateTime']['output'] + /** Unique ID of this notice. */ + id: Scalars['ID']['output'] + target: GQLComment + type: GQLCommentCommentNoticeType + /** The value determines if the notice is unread or not. */ + unread: Scalars['Boolean']['output'] +} - /** - * Artilces current user subscribed to. - */ - subscriptions: GQLArticleConnection +export type GQLCommentCommentNoticeType = 'CommentNewReply' - /** - * Record of user activity, only accessable by current user. - */ - activity: GQLUserActivity +export type GQLCommentCommentsInput = { + after?: InputMaybe + author?: InputMaybe + first?: InputMaybe + sort?: InputMaybe +} - /** - * Followers of this user. - */ - followers: GQLUserConnection +export type GQLCommentConnection = GQLConnection & { + __typename?: 'CommentConnection' + edges?: Maybe> + pageInfo: GQLPageInfo + totalCount: Scalars['Int']['output'] +} - /** - * Following contents of this user. - */ - following: GQLFollowing +export type GQLCommentEdge = { + __typename?: 'CommentEdge' + cursor: Scalars['String']['output'] + node: GQLComment +} - /** - * Whether current user is following viewer. - */ - isFollower: boolean +export type GQLCommentInput = { + articleId?: InputMaybe + circleId?: InputMaybe + content: Scalars['String']['input'] + mentions?: InputMaybe> + parentId?: InputMaybe + replyTo?: InputMaybe + type: GQLCommentType +} - /** - * Whether viewer is following current user. - */ - isFollowee: boolean +export type GQLCommentNotice = GQLNotice & { + __typename?: 'CommentNotice' + /** List of notice actors. */ + actors?: Maybe> + /** Time of this notice was created. */ + createdAt: Scalars['DateTime']['output'] + /** Unique ID of this notice. */ + id: Scalars['ID']['output'] + target: GQLComment + type: GQLCommentNoticeType + /** The value determines if the notice is unread or not. */ + unread: Scalars['Boolean']['output'] +} - /** - * Users that blocked by current user. - */ - blockList: GQLUserConnection +export type GQLCommentNoticeType = + | 'ArticleNewComment' + | 'CircleNewBroadcast' + | 'CommentMentionedYou' + | 'CommentPinned' + | 'SubscribedArticleNewComment' - /** - * Whether current user is blocking viewer. - */ - isBlocking: boolean +/** Enums for sorting comments by time. */ +export type GQLCommentSort = 'newest' | 'oldest' - /** - * Whether current user is blocked by viewer. - */ - isBlocked: boolean +/** Enums for comment state. */ +export type GQLCommentState = 'active' | 'archived' | 'banned' | 'collapsed' - /** - * user data analytics, only accessable by current user. - */ - analytics: GQLUserAnalytics +export type GQLCommentType = 'article' | 'circleBroadcast' | 'circleDiscussion' - /** - * Status of current user. - */ - status?: GQLUserStatus +export type GQLCommentsFilter = { + author?: InputMaybe + parentComment?: InputMaybe + state?: InputMaybe +} - /** - * ############# - * OSS # - * ############# - */ - oss: GQLUserOSS - remark?: string +export type GQLCommentsInput = { + after?: InputMaybe + before?: InputMaybe + filter?: InputMaybe + first?: InputMaybe + includeAfter?: InputMaybe + includeBefore?: InputMaybe + sort?: InputMaybe +} - /** - * Circles belong to current user. - */ - ownCircles?: Array +export type GQLConfirmVerificationCodeInput = { + code: Scalars['String']['input'] + email: Scalars['String']['input'] + type: GQLVerificationCodeType +} - /** - * Circles whiches user has subscribed. - */ - subscribedCircles: GQLCircleConnection - notices: GQLNoticeConnection +export type GQLConnectStripeAccountInput = { + country: GQLStripeAccountCountry +} - /** - * User Wallet - */ - wallet: GQLWallet +export type GQLConnectStripeAccountResult = { + __typename?: 'ConnectStripeAccountResult' + redirectUrl: Scalars['String']['output'] +} - /** - * Payment pointer that resolves to Open Payments endpoints - */ - paymentPointer?: string +export type GQLConnection = { + pageInfo: GQLPageInfo + totalCount: Scalars['Int']['output'] } -export interface GQLLiker { - /** - * Liker ID of LikeCoin - */ - likerId?: string +export type GQLConnectionArgs = { + after?: InputMaybe + filter?: InputMaybe + first?: InputMaybe + oss?: InputMaybe +} - /** - * Whether liker is a civic liker - */ - civicLiker: boolean +export type GQLCryptoWallet = { + __typename?: 'CryptoWallet' + address: Scalars['String']['output'] + /** does this address own any Travelogger NFTs? this value is cached at most 1day, and refreshed at next `nfts` query */ + hasNFTs: Scalars['Boolean']['output'] + id: Scalars['ID']['output'] + /** NFT assets owned by this wallet address */ + nfts?: Maybe> +} - /** - * Total LIKE left in wallet. - */ - total: number +export type GQLCryptoWalletSignaturePurpose = + | 'airdrop' + | 'connect' + | 'login' + | 'signup' - /** - * Rate of LikeCoin/USD - * @deprecated No longer in use - */ - rateUSD?: number +export type GQLDeleteAnnouncementsInput = { + ids?: InputMaybe> } -export interface GQLUserInfo { - /** - * Timestamp of registration. - */ - createdAt?: GQLDateTime - - /** - * Is user name editable. - */ - userNameEditable: boolean +export type GQLDeleteArticlesTagsInput = { + articles?: InputMaybe> + id: Scalars['ID']['input'] +} - /** - * User desciption. - */ - description?: string +export type GQLDeleteCollectionArticlesInput = { + articles: Array + collection: Scalars['ID']['input'] +} - /** - * the ipnsKey (`ipfs.io/ipns//...`) for feed.json / rss.xml / index - */ - ipnsKey?: string +export type GQLDeleteCollectionsInput = { + ids: Array +} - /** - * User email. - */ - email?: GQLemail_String_format_email +export type GQLDeleteCommentInput = { + id: Scalars['ID']['input'] +} - /** - * User badges. - */ - badges?: Array +export type GQLDeleteDraftInput = { + id: Scalars['ID']['input'] +} - /** - * Timestamp of user agreement. - */ - agreeOn?: GQLDateTime +export type GQLDeleteTagsInput = { + ids: Array +} - /** - * Cover of profile page. - */ - profileCover?: string +export type GQLDeleteTopicsInput = { + ids: Array +} - /** - * Type of group. - */ - group: GQLUserGroup +export type GQLDirectImageUploadInput = { + draft?: InputMaybe + entityId?: InputMaybe + entityType: GQLEntityType + mime?: InputMaybe + type: GQLAssetType + url?: InputMaybe +} - /** - * Login address - */ - ethAddress?: string - isWalletAuth: boolean +/** This type contains content, collections, assets and related data of a draft. */ +export type GQLDraft = GQLNode & { + __typename?: 'Draft' + /** Access related fields on circle */ + access: GQLDraftAccess + /** Published article */ + article?: Maybe + /** List of assets are belonged to this draft. */ + assets: Array + /** whether readers can comment */ + canComment: Scalars['Boolean']['output'] + /** Collection list of this draft. */ + collection: GQLArticleConnection + /** Content (HTML) of this draft. */ + content?: Maybe + /** Draft's cover link. */ + cover?: Maybe + /** Time of this draft was created. */ + createdAt: Scalars['DateTime']['output'] + /** Unique ID of this draft. */ + id: Scalars['ID']['output'] + /** whether publish to ISCN */ + iscnPublish?: Maybe + /** License Type */ + license: GQLArticleLicenseType + /** Media hash, composed of cid encoding, of this draft. */ + mediaHash?: Maybe + /** State of draft during publihsing. */ + publishState: GQLPublishState + /** creator message after support */ + replyToDonator?: Maybe + /** creator message asking for support */ + requestForDonation?: Maybe + /** whether content is marked as sensitive by author */ + sensitiveByAuthor: Scalars['Boolean']['output'] + /** Slugified draft title. */ + slug: Scalars['String']['output'] + /** Summary of this draft. */ + summary?: Maybe + /** This value determines if the summary is customized or not. */ + summaryCustomized: Scalars['Boolean']['output'] + /** Tags are attached to this draft. */ + tags?: Maybe> + /** Draft title. */ + title?: Maybe + /** Last time of this draft was upadted. */ + updatedAt: Scalars['DateTime']['output'] + /** The counting number of words in this draft. */ + wordCount: Scalars['Int']['output'] +} + +/** This type contains content, collections, assets and related data of a draft. */ +export type GQLDraftCollectionArgs = { + input: GQLConnectionArgs +} - /** - * Connected wallet. - */ - cryptoWallet?: GQLCryptoWallet +export type GQLDraftAccess = { + __typename?: 'DraftAccess' + circle?: Maybe + type: GQLArticleAccessType +} - /** - * saved tags for showing on profile page, API allows up to 100, front-end lock'ed at lower limit - */ - featuredTags?: Array +export type GQLDraftConnection = GQLConnection & { + __typename?: 'DraftConnection' + edges?: Maybe> + pageInfo: GQLPageInfo + totalCount: Scalars['Int']['output'] } -export type GQLemail_String_format_email = any +export type GQLDraftEdge = { + __typename?: 'DraftEdge' + cursor: Scalars['String']['output'] + node: GQLDraft +} -export interface GQLBadge { - type: GQLBadgeType +export type GQLEditArticleInput = { + accessType?: InputMaybe + /** whether readers can comment */ + canComment?: InputMaybe + circle?: InputMaybe + collection?: InputMaybe> + content?: InputMaybe + cover?: InputMaybe + id: Scalars['ID']['input'] + /** whether publish to ISCN */ + iscnPublish?: InputMaybe + license?: InputMaybe + pinned?: InputMaybe + replyToDonator?: InputMaybe + requestForDonation?: InputMaybe + sensitive?: InputMaybe + state?: InputMaybe + /** deprecated, use pinned instead */ + sticky?: InputMaybe + summary?: InputMaybe + tags?: InputMaybe> +} + +export type GQLEmailLoginInput = { + email: Scalars['String']['input'] + /** used in register */ + language?: InputMaybe + passwordOrCode: Scalars['String']['input'] + referralCode?: InputMaybe +} + +export type GQLEntityType = + | 'announcement' + | 'article' + | 'circle' + | 'collection' + | 'draft' + | 'tag' + | 'topic' + | 'user' + +export type GQLExchangeRate = { + __typename?: 'ExchangeRate' + from: GQLTransactionCurrency + rate: Scalars['Float']['output'] + to: GQLQuoteCurrency + /** Last updated time from currency convertor APIs */ + updatedAt: Scalars['DateTime']['output'] } -export const enum GQLBadgeType { - seed = 'seed', - golden_motor = 'golden_motor', - architect = 'architect', +export type GQLExchangeRatesInput = { + from?: InputMaybe + to?: InputMaybe } -export const enum GQLUserGroup { - a = 'a', - b = 'b', +export type GQLFeature = { + __typename?: 'Feature' + enabled: Scalars['Boolean']['output'] + name: GQLFeatureName } -export interface GQLCryptoWallet { - id: string - address: string +export type GQLFeatureFlag = 'admin' | 'off' | 'on' | 'seeding' - /** - * does this address own any Travelogger NFTs? this value is cached at most 1day, and refreshed at next `nfts` query - */ - hasNFTs: boolean +export type GQLFeatureName = + | 'add_credit' + | 'circle_interact' + | 'circle_management' + | 'fingerprint' + | 'payment' + | 'payout' + | 'tag_adoption' + | 'verify_appreciate' - /** - * NFT assets owned by this wallet address - */ - nfts?: Array +export type GQLFeaturedCommentsInput = { + after?: InputMaybe + first?: InputMaybe + sort?: InputMaybe } -/** - * NFT Asset - */ -export interface GQLNFTAsset { - id: string - name: string - description?: string - imageUrl: string - imagePreviewUrl?: string +export type GQLFeaturedTagsInput = { + /** tagIds */ + ids: Array +} - /** - * imageOriginalUrl: String! - */ - contractAddress: string - collectionName: string +export type GQLFilterInput = { + /** Used in RecommendInput */ + followed?: InputMaybe + inRangeEnd?: InputMaybe + inRangeStart?: InputMaybe + /** Used in User.topics */ + public?: InputMaybe + /** index of list, min: 0, max: 49 */ + random?: InputMaybe + /** Used in User Articles filter, by tags or by time range, or both */ + tagIds?: InputMaybe> } -/** - * This type contains content, count and related data of an article tag. - */ -export interface GQLTag extends GQLNode { - /** - * Unique id of this tag. - */ - id: string +export type GQLFollowing = { + __typename?: 'Following' + circles: GQLCircleConnection + tags: GQLTagConnection + users: GQLUserConnection +} - /** - * Content of this tag. - */ - content: string - - /** - * List of how many articles were attached with this tag. - */ - articles: GQLArticleConnection - - /** - * This value determines if this article is selected by this tag or not. - */ - selected: boolean - - /** - * Time of this tag was created. - */ - createdAt: GQLDateTime - - /** - * Tag's cover link. - */ - cover?: string - - /** - * Description of this tag. - */ - description?: string - - /** - * Editors of this tag. - */ - editors?: Array - - /** - * Creator of this tag. - */ - creator?: GQLUser - - /** - * Owner of this tag. - */ - owner?: GQLUser - - /** - * This value determines if current viewer is following or not. - */ - isFollower?: boolean - - /** - * This value determines if the tag is pinned by current viewer. - */ - isPinned?: boolean +export type GQLFollowingCirclesArgs = { + input: GQLConnectionArgs +} - /** - * Followers of this tag. - */ - followers: GQLUserConnection +export type GQLFollowingTagsArgs = { + input: GQLConnectionArgs +} - /** - * Participants of this tag. - */ - participants: GQLUserConnection +export type GQLFollowingUsersArgs = { + input: GQLConnectionArgs +} - /** - * Tags recommended based on relations to current tag. - */ - recommended: GQLTagConnection +export type GQLFollowingActivity = + | GQLArticleRecommendationActivity + | GQLCircleRecommendationActivity + | GQLUserAddArticleTagActivity + | GQLUserBroadcastCircleActivity + | GQLUserCreateCircleActivity + | GQLUserPublishArticleActivity + | GQLUserRecommendationActivity - /** - * This value determines if it is official. - */ - isOfficial?: boolean +export type GQLFollowingActivityConnection = GQLConnection & { + __typename?: 'FollowingActivityConnection' + edges?: Maybe> + pageInfo: GQLPageInfo + totalCount: Scalars['Int']['output'] +} - /** - * Counts of this tag. - */ - numArticles: number - numAuthors: number +export type GQLFollowingActivityEdge = { + __typename?: 'FollowingActivityEdge' + cursor: Scalars['String']['output'] + node: GQLFollowingActivity +} - /** - * ############# - * OSS # - * ############# - */ - oss: GQLTagOSS - remark?: string - deleted: boolean +export type GQLFrequentSearchInput = { + first?: InputMaybe + key?: InputMaybe } -export interface GQLTagArticlesInput { - after?: string - first?: GQLfirst_Int_min_0 - oss?: boolean - selected?: boolean - sortBy?: GQLTagArticlesSortBy +export type GQLGenerateSigningMessageInput = { + address: Scalars['String']['input'] + purpose?: InputMaybe } -export type GQLfirst_Int_min_0 = any +export type GQLGrantType = 'authorization_code' | 'refresh_token' -export const enum GQLTagArticlesSortBy { - byHottestDesc = 'byHottestDesc', - byCreatedAtDesc = 'byCreatedAtDesc', +export type GQLInvitation = { + __typename?: 'Invitation' + /** Accepted time. */ + acceptedAt?: Maybe + /** Invitation of current Circle. */ + circle: GQLCircle + /** Created time. */ + createdAt: Scalars['DateTime']['output'] + /** Free period of this invitation. */ + freePeriod: Scalars['Int']['output'] + /** Unique ID. */ + id: Scalars['ID']['output'] + /** Target person of this invitation. */ + invitee: GQLInvitee + /** Creator of this invitation. */ + inviter: GQLUser + /** Sent time. */ + sentAt: Scalars['DateTime']['output'] + /** Determine it's specific state. */ + state: GQLInvitationState } -export interface GQLArticleConnection extends GQLConnection { - totalCount: number +export type GQLInvitationConnection = GQLConnection & { + __typename?: 'InvitationConnection' + edges?: Maybe> pageInfo: GQLPageInfo - edges?: Array + totalCount: Scalars['Int']['output'] } -export interface GQLConnection { - totalCount: number - pageInfo: GQLPageInfo +export type GQLInvitationEdge = { + __typename?: 'InvitationEdge' + cursor: Scalars['String']['output'] + node: GQLInvitation } -/** Use this to resolve interface type Connection */ -export type GQLPossibleConnectionTypeNames = - | 'ArticleConnection' - | 'UserConnection' - | 'TagConnection' - | 'FollowingActivityConnection' - | 'CommentConnection' - | 'MemberConnection' - | 'InvitationConnection' - | 'CircleConnection' - | 'TopicConnection' - | 'DraftConnection' - | 'ReadHistoryConnection' - | 'RecentSearchConnection' - | 'AppreciationConnection' - | 'TopDonatorConnection' - | 'NoticeConnection' - | 'TransactionConnection' - | 'ResponseConnection' - | 'SearchResultConnection' - | 'OAuthClientConnection' - | 'SkippedListItemsConnection' - -export interface GQLConnectionNameMap { - Connection: GQLConnection - ArticleConnection: GQLArticleConnection - UserConnection: GQLUserConnection - TagConnection: GQLTagConnection - FollowingActivityConnection: GQLFollowingActivityConnection - CommentConnection: GQLCommentConnection - MemberConnection: GQLMemberConnection - InvitationConnection: GQLInvitationConnection - CircleConnection: GQLCircleConnection - TopicConnection: GQLTopicConnection - DraftConnection: GQLDraftConnection - ReadHistoryConnection: GQLReadHistoryConnection - RecentSearchConnection: GQLRecentSearchConnection - AppreciationConnection: GQLAppreciationConnection - TopDonatorConnection: GQLTopDonatorConnection - NoticeConnection: GQLNoticeConnection - TransactionConnection: GQLTransactionConnection - ResponseConnection: GQLResponseConnection - SearchResultConnection: GQLSearchResultConnection - OAuthClientConnection: GQLOAuthClientConnection - SkippedListItemsConnection: GQLSkippedListItemsConnection -} +export type GQLInvitationState = + | 'accepted' + | 'pending' + | 'transfer_failed' + | 'transfer_succeeded' -export interface GQLPageInfo { - startCursor?: string - endCursor?: string - hasNextPage: boolean - hasPreviousPage: boolean +export type GQLInviteCircleInput = { + circleId: Scalars['ID']['input'] + freePeriod: Scalars['Int']['input'] + invitees: Array } -export interface GQLArticleEdge { - cursor: string - node: GQLArticle +export type GQLInviteCircleInvitee = { + email?: InputMaybe + id?: InputMaybe } -export interface GQLTagSelectedInput { - id?: string - mediaHash?: string -} +export type GQLInvitee = GQLPerson | GQLUser -export interface GQLTagEditorsInput { - excludeAdmin?: boolean - excludeOwner?: boolean +export type GQLInvites = { + __typename?: 'Invites' + /** Accepted invitation list */ + accepted: GQLInvitationConnection + /** Pending invitation list */ + pending: GQLInvitationConnection } -export interface GQLConnectionArgs { - after?: string - first?: GQLfirst_Int_min_0 - oss?: boolean - filter?: GQLFilterInput +export type GQLInvitesAcceptedArgs = { + input: GQLConnectionArgs } -export interface GQLFilterInput { - /** - * index of list, min: 0, max: 49 - */ - random?: GQLrandom_Int_min_0_max_49 +export type GQLInvitesPendingArgs = { + input: GQLConnectionArgs +} - /** - * Used in RecommendInput - */ - followed?: boolean +export type GQLKeywordInput = { + keyword: Scalars['String']['input'] +} - /** - * Used in User.topics - */ - public?: boolean +export type GQLKeywordsInput = { + keywords?: InputMaybe> +} +export type GQLLiker = { + __typename?: 'Liker' + /** Whether liker is a civic liker */ + civicLiker: Scalars['Boolean']['output'] + /** Liker ID of LikeCoin */ + likerId?: Maybe /** - * Used in User Articles filter, by tags or by time range, or both + * Rate of LikeCoin/USD + * @deprecated No longer in use */ - tagIds?: Array - inRangeStart?: GQLDateTime - inRangeEnd?: GQLDateTime + rateUSD?: Maybe + /** Total LIKE left in wallet. */ + total: Scalars['Float']['output'] } -export type GQLrandom_Int_min_0_max_49 = any - -export interface GQLUserConnection extends GQLConnection { - totalCount: number - pageInfo: GQLPageInfo - edges?: Array +export type GQLLogRecordInput = { + type: GQLLogRecordTypes } -export interface GQLUserEdge { - cursor: string - node: GQLUser +export type GQLLogRecordTypes = + | 'ReadFolloweeArticles' + | 'ReadFollowingFeed' + | 'ReadResponseInfoPopUp' + +export type GQLMember = { + __typename?: 'Member' + /** Price chosen by user when joining a Circle. */ + price: GQLPrice + /** User who join to a Circle. */ + user: GQLUser } -export interface GQLTagConnection extends GQLConnection { - totalCount: number +export type GQLMemberConnection = GQLConnection & { + __typename?: 'MemberConnection' + edges?: Maybe> pageInfo: GQLPageInfo - edges?: Array + totalCount: Scalars['Int']['output'] } -export interface GQLTagEdge { - cursor: string - node: GQLTag +export type GQLMemberEdge = { + __typename?: 'MemberEdge' + cursor: Scalars['String']['output'] + node: GQLMember } -export interface GQLTagOSS { - boost: number - score: number - selected: boolean +export type GQLMergeTagsInput = { + content: Scalars['String']['input'] + ids: Array } -export interface GQLUserSettings { - /** - * User language setting. - */ - language: GQLUserLanguage - - /** - * User currency preference. - */ - currency: GQLQuoteCurrency - - /** - * Notification settings. - */ - notification?: GQLNotificationSetting +export type GQLMigrationInput = { + files: Array> + type?: InputMaybe } -export const enum GQLUserLanguage { - en = 'en', - zh_hans = 'zh_hans', - zh_hant = 'zh_hant', -} +export type GQLMigrationType = 'medium' -export const enum GQLQuoteCurrency { - TWD = 'TWD', - HKD = 'HKD', - USD = 'USD', +export type GQLMonthlyDatum = { + __typename?: 'MonthlyDatum' + date: Scalars['DateTime']['output'] + value: Scalars['Float']['output'] } -export interface GQLNotificationSetting { - enable: boolean - email: boolean - mention: boolean - userNewFollower: boolean - articleNewComment: boolean - articleNewAppreciation: boolean - articleNewSubscription: boolean - articleNewCollected: boolean - articleSubscribedNewComment: boolean - articleCommentPinned: boolean - +export type GQLMutation = { + __typename?: 'Mutation' + /** Add one tag to articles. */ + addArticlesTags: GQLTag + /** Add blocked search keyword to blocked_search_word db */ + addBlockedSearchKeyword: GQLBlockedSearchKeyword + /** Add articles to the begining of the collections. */ + addCollectionsArticles: Array + /** Add Credit to User Wallet */ + addCredit: GQLAddCreditResult + /** Add a social login to current user. */ + addSocialLogin: GQLUser + /** Add a wallet login to current user. */ + addWalletLogin: GQLUser + /** Appreciate an article. */ + appreciateArticle: GQLArticle /** - * for circle owners + * Change user email. + * @deprecated use 'setEmail' instead */ - circleNewSubscriber: boolean - circleNewFollower: boolean - circleNewUnsubscriber: boolean - circleMemberNewBroadcastReply: boolean - circleMemberNewDiscussion: boolean - circleMemberNewDiscussionReply: boolean - + changeEmail: GQLUser + /** Let Traveloggers owner claims a Logbook, returns transaction hash */ + claimLogbooks: GQLClaimLogbooksResult + /** Clear read history for user. */ + clearReadHistory: GQLUser + /** Clear search history for user. */ + clearSearchHistory?: Maybe + /** Confirm verification code from email. */ + confirmVerificationCode: Scalars['ID']['output'] + /** Create Stripe Connect account for Payout */ + connectStripeAccount: GQLConnectStripeAccountResult + deleteAnnouncements: Scalars['Boolean']['output'] + /** Delete one tag from articles */ + deleteArticlesTags: GQLTag + /** Delete blocked search keywords from search_history db */ + deleteBlockedSearchKeywords?: Maybe + /** Remove articles from the collection. */ + deleteCollectionArticles: GQLCollection + deleteCollections: Scalars['Boolean']['output'] + /** Remove a comment. */ + deleteComment: GQLComment + /** Remove a draft. */ + deleteDraft?: Maybe + deleteTags?: Maybe + /** Delete topics */ + deleteTopics: Scalars['Boolean']['output'] + directImageUpload: GQLAsset + /** Edit an article. */ + editArticle: GQLArticle + emailLogin: GQLAuthResult /** - * for circle members & followers + * Generate or claim a Liker ID through LikeCoin + * @deprecated No longer in use */ - inCircleNewArticle: boolean - inCircleNewBroadcast: boolean - inCircleNewBroadcastReply: boolean - inCircleNewDiscussion: boolean - inCircleNewDiscussionReply: boolean -} - -export interface GQLRecommendation { + generateLikerId: GQLUser + /** Get signing message. */ + generateSigningMessage: GQLSigningMessageResult + /** Invite others to join circle */ + invite?: Maybe> + /** Add specific user behavior record. */ + logRecord?: Maybe + /** Mark all received notices as read. */ + markAllNoticesAsRead?: Maybe + mergeTags: GQLTag + /** Migrate articles from other service provider. */ + migration?: Maybe + /** Pay to another user or article */ + payTo: GQLPayToResult + /** Payout to user */ + payout: GQLTransaction + /** Pin a comment. */ + pinComment: GQLComment + /** Publish an article onto IPFS. */ + publishArticle: GQLDraft + putAnnouncement: GQLAnnouncement + /** Create a Chapter when no id is given, update fields when id is given. Throw error if no id & no title, or no id & no topic. */ + putChapter: GQLChapter + /** Create or update a Circle. */ + putCircle: GQLCircle /** - * Activities based on user's following, sort by creation time. + * Add or remove Circle's articles + * @deprecated No longer in use */ - following: GQLFollowingActivityConnection - + putCircleArticles: GQLCircle + putCollection: GQLCollection + /** Publish or update a comment. */ + putComment: GQLComment + /** Create or update a draft. */ + putDraft: GQLDraft + /** update tags for showing on profile page */ + putFeaturedTags?: Maybe> + /** Create or Update an OAuth Client, used in OSS. */ + putOAuthClient?: Maybe + putRemark?: Maybe + putRestrictedUsers: Array + putSkippedListItem?: Maybe> + /** Create or update tag. */ + putTag: GQLTag + /** Create a Topic when no id is given, update fields when id is given. Throw error if no id & no title. */ + putTopic: GQLTopic + /** Read an article. */ + readArticle: GQLArticle + /** Update state of a user, used in OSS. */ + refreshIPNSFeed: GQLUser + /** Remove a social login from current user. */ + removeSocialLogin: GQLUser + /** Remove a wallet login from current user. */ + removeWalletLogin: GQLUser + renameTag: GQLTag + /** Reorder articles in the collection. */ + reorderCollectionArticles: GQLCollection + /** Reset Liker ID */ + resetLikerId: GQLUser + /** Reset user or payment password. */ + resetPassword?: Maybe /** - * Articles recommended based on recently read article tags. - * @deprecated Merged into following + * Reset crypto wallet. + * @deprecated use 'removeWalletLogin' instead */ - readTagsArticles: GQLArticleConnection - + resetWallet: GQLUser + /** Send verification code for email. */ + sendVerificationCode?: Maybe + setBoost: GQLNode + /** Set user currency preference. */ + setCurrency: GQLUser + /** Set user email. */ + setEmail: GQLUser + setFeature: GQLFeature + /** Set user email login password. */ + setPassword: GQLUser + /** Set user name. */ + setUserName: GQLUser + /** Upload a single file. */ + singleFileUpload: GQLAsset + /** Login/Signup via social accounts. */ + socialLogin: GQLAuthResult + /** Sort topics */ + sortTopics: Array + /** Submit inappropriate content report */ + submitReport: GQLReport + /** Subscribe a Circle. */ + subscribeCircle: GQLSubscribeCircleResult + toggleArticleRecommend: GQLArticle + /** Block or Unblock a given user. */ + toggleBlockUser: GQLUser /** - * Global articles sort by publish time. + * Follow or unfollow a Circle. + * @deprecated No longer in use */ - newest: GQLArticleConnection - + toggleFollowCircle: GQLCircle + /** Follow or unfollow tag. */ + toggleFollowTag: GQLTag + /** Follow or Unfollow current user. */ + toggleFollowUser: GQLUser + /** Pin or Unpin a comment. */ + togglePinComment: GQLComment + /** pin or unpin tag. */ + togglePinTag: GQLTag + toggleSeedingUsers: Array> + /** Subscribe or Unsubscribe article */ + toggleSubscribeArticle: GQLArticle + toggleTagRecommend: GQLTag + toggleUsersBadge: Array> + unbindLikerId: GQLUser + /** Unpin a comment. */ + unpinComment: GQLComment + /** Unsubscribe a Circle. */ + unsubscribeCircle: GQLCircle + /** Unvote a comment. */ + unvoteComment: GQLComment + updateArticleSensitive: GQLArticle + updateArticleState: GQLArticle + /** Update articles' tag. */ + updateArticlesTags: GQLTag + /** Update a comments' state. */ + updateCommentsState: Array + /** Update user notification settings. */ + updateNotificationSetting: GQLUser + /** Update member, permission and othters of a tag. */ + updateTagSetting: GQLTag + /** Update referralCode of a user, used in OSS. */ + updateUserExtra: GQLUser + /** Update user information. */ + updateUserInfo: GQLUser + /** Update state of a user, used in OSS. */ + updateUserRole: GQLUser + /** Update state of a user, used in OSS. */ + updateUserState?: Maybe> /** - * Global articles sort by latest activity time. + * Login user. + * @deprecated use 'emailLogin' instead */ - hottest: GQLArticleConnection - + userLogin: GQLAuthResult + /** Logout user. */ + userLogout: Scalars['Boolean']['output'] /** - * 'In case you missed it' recommendation. + * Register user, can only be used on matters.{town,news} website. + * @deprecated use 'emailLogin' instead */ - icymi: GQLArticleConnection + userRegister: GQLAuthResult + /** Verify user email. */ + verifyEmail: GQLAuthResult + /** Upvote or downvote a comment. */ + voteComment: GQLComment + /** Login/Signup via a wallet. */ + walletLogin: GQLAuthResult +} - /** - * Global tag list, sort by activities in recent 14 days. - */ - tags: GQLTagConnection +export type GQLMutationAddArticlesTagsArgs = { + input: GQLAddArticlesTagsInput +} - /** - * Hottest tag list - */ - hottestTags: GQLTagConnection +export type GQLMutationAddBlockedSearchKeywordArgs = { + input: GQLKeywordInput +} - /** - * Selected tag list - */ - selectedTags: GQLTagConnection +export type GQLMutationAddCollectionsArticlesArgs = { + input: GQLAddCollectionsArticlesInput +} - /** - * Global user list, sort by activities in recent 6 month. - */ - authors: GQLUserConnection +export type GQLMutationAddCreditArgs = { + input: GQLAddCreditInput +} - /** - * Global circles sort by created time. - */ - newestCircles: GQLCircleConnection +export type GQLMutationAddSocialLoginArgs = { + input: GQLSocialLoginInput +} - /** - * Global circles sort by latest activity time. - */ - hottestCircles: GQLCircleConnection +export type GQLMutationAddWalletLoginArgs = { + input: GQLWalletLoginInput } -export interface GQLFollowingActivityConnection extends GQLConnection { - totalCount: number - pageInfo: GQLPageInfo - edges?: Array +export type GQLMutationAppreciateArticleArgs = { + input: GQLAppreciateArticleInput } -export interface GQLFollowingActivityEdge { - cursor: string - node: GQLFollowingActivity +export type GQLMutationChangeEmailArgs = { + input: GQLChangeEmailInput } -export type GQLFollowingActivity = - | GQLUserPublishArticleActivity - | GQLUserAddArticleTagActivity - | GQLUserBroadcastCircleActivity - | GQLUserCreateCircleActivity - | GQLUserRecommendationActivity - | GQLArticleRecommendationActivity - | GQLCircleRecommendationActivity +export type GQLMutationClaimLogbooksArgs = { + input: GQLClaimLogbooksInput +} -/** Use this to resolve union type FollowingActivity */ -export type GQLPossibleFollowingActivityTypeNames = - | 'UserPublishArticleActivity' - | 'UserAddArticleTagActivity' - | 'UserBroadcastCircleActivity' - | 'UserCreateCircleActivity' - | 'UserRecommendationActivity' - | 'ArticleRecommendationActivity' - | 'CircleRecommendationActivity' - -export interface GQLFollowingActivityNameMap { - FollowingActivity: GQLFollowingActivity - UserPublishArticleActivity: GQLUserPublishArticleActivity - UserAddArticleTagActivity: GQLUserAddArticleTagActivity - UserBroadcastCircleActivity: GQLUserBroadcastCircleActivity - UserCreateCircleActivity: GQLUserCreateCircleActivity - UserRecommendationActivity: GQLUserRecommendationActivity - ArticleRecommendationActivity: GQLArticleRecommendationActivity - CircleRecommendationActivity: GQLCircleRecommendationActivity -} - -export interface GQLUserPublishArticleActivity { - actor: GQLUser - createdAt: GQLDateTime +export type GQLMutationClearReadHistoryArgs = { + input: GQLClearReadHistoryInput +} - /** - * Article published by actor - */ - node: GQLArticle +export type GQLMutationConfirmVerificationCodeArgs = { + input: GQLConfirmVerificationCodeInput } -export interface GQLUserAddArticleTagActivity { - actor: GQLUser - createdAt: GQLDateTime +export type GQLMutationConnectStripeAccountArgs = { + input: GQLConnectStripeAccountInput +} - /** - * Article added to tag - */ - node: GQLArticle +export type GQLMutationDeleteAnnouncementsArgs = { + input: GQLDeleteAnnouncementsInput +} - /** - * Tag added by article - */ - target: GQLTag +export type GQLMutationDeleteArticlesTagsArgs = { + input: GQLDeleteArticlesTagsInput } -export interface GQLUserBroadcastCircleActivity { - actor: GQLUser - createdAt: GQLDateTime +export type GQLMutationDeleteBlockedSearchKeywordsArgs = { + input: GQLKeywordsInput +} - /** - * Comment broadcast by actor - */ - node: GQLComment +export type GQLMutationDeleteCollectionArticlesArgs = { + input: GQLDeleteCollectionArticlesInput +} - /** - * Circle that comment belongs to - */ - target: GQLCircle +export type GQLMutationDeleteCollectionsArgs = { + input: GQLDeleteCollectionsInput } -/** - * This type contains content, author, descendant comments and related data of a comment. - */ -export interface GQLComment extends GQLNode { - /** - * Unique ID of this comment. - */ - id: string +export type GQLMutationDeleteCommentArgs = { + input: GQLDeleteCommentInput +} - /** - * State of this comment. - */ - state: GQLCommentState - type: GQLCommentType +export type GQLMutationDeleteDraftArgs = { + input: GQLDeleteDraftInput +} - /** - * Time of this comment was created. - */ - createdAt: GQLDateTime +export type GQLMutationDeleteTagsArgs = { + input: GQLDeleteTagsInput +} - /** - * Content of this comment. - */ - content?: string +export type GQLMutationDeleteTopicsArgs = { + input: GQLDeleteTopicsInput +} - /** - * Author of this comment. - */ - author: GQLUser +export type GQLMutationDirectImageUploadArgs = { + input: GQLDirectImageUploadInput +} - /** - * This value determines this comment is pinned or not. - */ - pinned: boolean +export type GQLMutationEditArticleArgs = { + input: GQLEditArticleInput +} - /** - * This value determines this comment is from article donator or not. - */ - fromDonator: boolean +export type GQLMutationEmailLoginArgs = { + input: GQLEmailLoginInput +} - /** - * The counting number of upvotes. - */ - upvotes: number +export type GQLMutationGenerateSigningMessageArgs = { + input: GQLGenerateSigningMessageInput +} - /** - * The counting number of downvotes. - * @deprecated No longer in use in querying - */ - downvotes: number +export type GQLMutationInviteArgs = { + input: GQLInviteCircleInput +} - /** - * The value determines current user's vote. - */ - myVote?: GQLVote +export type GQLMutationLogRecordArgs = { + input: GQLLogRecordInput +} - /** - * Descendant comments of this comment. - */ - comments: GQLCommentConnection +export type GQLMutationMergeTagsArgs = { + input: GQLMergeTagsInput +} - /** - * Parent comment of this comment. - */ - parentComment?: GQLComment +export type GQLMutationMigrationArgs = { + input: GQLMigrationInput +} - /** - * A Comment that this comment replied to. - */ - replyTo?: GQLComment - remark?: string +export type GQLMutationPayToArgs = { + input: GQLPayToInput +} - /** - * Current comment belongs to which Node. - */ - node: GQLNode +export type GQLMutationPayoutArgs = { + input: GQLPayoutInput } -/** - * Enums for comment state. - */ -export const enum GQLCommentState { - active = 'active', - archived = 'archived', - banned = 'banned', - collapsed = 'collapsed', +export type GQLMutationPinCommentArgs = { + input: GQLPinCommentInput } -export const enum GQLCommentType { - article = 'article', - circleDiscussion = 'circleDiscussion', - circleBroadcast = 'circleBroadcast', +export type GQLMutationPublishArticleArgs = { + input: GQLPublishArticleInput } -/** - * Enums for vote types. - */ -export const enum GQLVote { - up = 'up', - down = 'down', +export type GQLMutationPutAnnouncementArgs = { + input: GQLPutAnnouncementInput } -export interface GQLCommentCommentsInput { - author?: string - sort?: GQLCommentSort - after?: string - first?: GQLfirst_Int_min_0 +export type GQLMutationPutChapterArgs = { + input: GQLPutChapterInput } -/** - * Enums for sorting comments by time. - */ -export const enum GQLCommentSort { - oldest = 'oldest', - newest = 'newest', +export type GQLMutationPutCircleArgs = { + input: GQLPutCircleInput } -export interface GQLCommentConnection extends GQLConnection { - totalCount: number - pageInfo: GQLPageInfo - edges?: Array +export type GQLMutationPutCircleArticlesArgs = { + input: GQLPutCircleArticlesInput } -export interface GQLCommentEdge { - cursor: string - node: GQLComment +export type GQLMutationPutCollectionArgs = { + input: GQLPutCollectionInput } -export interface GQLCircle extends GQLNode { - /** - * Unique ID. - */ - id: string +export type GQLMutationPutCommentArgs = { + input: GQLPutCommentInput +} - /** - * Circle avatar's link. - * @deprecated No longer in use - */ - avatar?: string +export type GQLMutationPutDraftArgs = { + input: GQLPutDraftInput +} - /** - * Circle cover's link. - * @deprecated No longer in use - */ - cover?: string +export type GQLMutationPutFeaturedTagsArgs = { + input: GQLFeaturedTagsInput +} - /** - * Slugified name of this Circle. - * @deprecated No longer in use - */ - name: string +export type GQLMutationPutOAuthClientArgs = { + input: GQLPutOAuthClientInput +} - /** - * Human readable name of this Circle. - * @deprecated No longer in use - */ - displayName: string +export type GQLMutationPutRemarkArgs = { + input: GQLPutRemarkInput +} - /** - * A short description of this Circle. - */ - description?: string +export type GQLMutationPutRestrictedUsersArgs = { + input: GQLPutRestrictedUsersInput +} - /** - * Prices offered by this Circle. - */ - prices?: Array +export type GQLMutationPutSkippedListItemArgs = { + input: GQLPutSkippedListItemInput +} - /** - * Circle owner. - */ - owner: GQLUser +export type GQLMutationPutTagArgs = { + input: GQLPutTagInput +} - /** - * List of Circle member. - * @deprecated No longer in use - */ - members: GQLMemberConnection +export type GQLMutationPutTopicArgs = { + input: GQLPutTopicInput +} - /** - * List of Circle follower. - * @deprecated No longer in use - */ - followers: GQLUserConnection +export type GQLMutationReadArticleArgs = { + input: GQLReadArticleInput +} - /** - * List of works belong to this Circle. - * @deprecated No longer in use - */ - works: GQLArticleConnection +export type GQLMutationRefreshIpnsFeedArgs = { + input: GQLRefreshIpnsFeedInput +} - /** - * State of this Circle. - * @deprecated No longer in use - */ - state: GQLCircleState +export type GQLMutationRemoveSocialLoginArgs = { + input: GQLRemoveSocialLoginInput +} - /** - * Created time. - * @deprecated No longer in use - */ - createdAt: GQLDateTime +export type GQLMutationRenameTagArgs = { + input: GQLRenameTagInput +} - /** - * Updated time. - * @deprecated No longer in use - */ - updatedAt: GQLDateTime +export type GQLMutationReorderCollectionArticlesArgs = { + input: GQLReorderCollectionArticlesInput +} - /** - * This value determines if current viewer is following Circle or not. - * @deprecated No longer in use - */ - isFollower: boolean +export type GQLMutationResetLikerIdArgs = { + input: GQLResetLikerIdInput +} - /** - * This value determines if current viewer is Member or not. - * @deprecated No longer in use - */ - isMember: boolean +export type GQLMutationResetPasswordArgs = { + input: GQLResetPasswordInput +} - /** - * Invitations belonged to this Circle. - */ - invites: GQLInvites +export type GQLMutationResetWalletArgs = { + input: GQLResetWalletInput +} - /** - * Invitation used by current viewer. - */ - invitedBy?: GQLInvitation +export type GQLMutationSendVerificationCodeArgs = { + input: GQLSendVerificationCodeInput +} - /** - * Analytics dashboard. - */ - analytics: GQLCircleAnalytics +export type GQLMutationSetBoostArgs = { + input: GQLSetBoostInput +} - /** - * Comments broadcasted by Circle owner. - */ - broadcast: GQLCommentConnection +export type GQLMutationSetCurrencyArgs = { + input: GQLSetCurrencyInput +} - /** - * Pinned comments broadcasted by Circle owner. - */ - pinnedBroadcast?: Array +export type GQLMutationSetEmailArgs = { + input: GQLSetEmailInput +} - /** - * Comments made by Circle member. - */ - discussion: GQLCommentConnection +export type GQLMutationSetFeatureArgs = { + input: GQLSetFeatureInput +} - /** - * Discussion (exclude replies) count of this circle. - */ - discussionThreadCount: number +export type GQLMutationSetPasswordArgs = { + input: GQLSetPasswordInput +} - /** - * Discussion (include replies) count of this circle. - */ - discussionCount: number +export type GQLMutationSetUserNameArgs = { + input: GQLSetUserNameInput } -export interface GQLPrice { - /** - * Unique ID. - */ - id: string +export type GQLMutationSingleFileUploadArgs = { + input: GQLSingleFileUploadInput +} - /** - * Amount of Price. - */ - amount: number +export type GQLMutationSocialLoginArgs = { + input: GQLSocialLoginInput +} - /** - * Current Price belongs to whcih Circle. - */ - circle: GQLCircle +export type GQLMutationSortTopicsArgs = { + input: GQLSortTopicsInput +} - /** - * Currency of Price. - */ - currency: GQLTransactionCurrency +export type GQLMutationSubmitReportArgs = { + input: GQLSubmitReportInput +} - /** - * State of Price. - */ - state: GQLPriceState +export type GQLMutationSubscribeCircleArgs = { + input: GQLSubscribeCircleInput +} - /** - * Created time. - * @deprecated No longer in use - */ - createdAt: GQLDateTime +export type GQLMutationToggleArticleRecommendArgs = { + input: GQLToggleRecommendInput +} - /** - * Updated time. - * @deprecated No longer in use - */ - updatedAt: GQLDateTime +export type GQLMutationToggleBlockUserArgs = { + input: GQLToggleItemInput } -export const enum GQLTransactionCurrency { - HKD = 'HKD', - LIKE = 'LIKE', - USDT = 'USDT', +export type GQLMutationToggleFollowCircleArgs = { + input: GQLToggleItemInput } -export const enum GQLPriceState { - active = 'active', - archived = 'archived', +export type GQLMutationToggleFollowTagArgs = { + input: GQLToggleItemInput } -export interface GQLMemberConnection extends GQLConnection { - totalCount: number - pageInfo: GQLPageInfo - edges?: Array +export type GQLMutationToggleFollowUserArgs = { + input: GQLToggleItemInput } -export interface GQLMemberEdge { - cursor: string - node: GQLMember +export type GQLMutationTogglePinCommentArgs = { + input: GQLToggleItemInput } -export interface GQLMember { - /** - * User who join to a Circle. - */ - user: GQLUser - - /** - * Price chosen by user when joining a Circle. - */ - price: GQLPrice +export type GQLMutationTogglePinTagArgs = { + input: GQLToggleItemInput } -export const enum GQLCircleState { - active = 'active', - archived = 'archived', +export type GQLMutationToggleSeedingUsersArgs = { + input: GQLToggleSeedingUsersInput } -export interface GQLInvites { - /** - * Accepted invitation list - */ - accepted: GQLInvitationConnection - - /** - * Pending invitation list - */ - pending: GQLInvitationConnection +export type GQLMutationToggleSubscribeArticleArgs = { + input: GQLToggleItemInput } -export interface GQLInvitationConnection extends GQLConnection { - totalCount: number - pageInfo: GQLPageInfo - edges?: Array +export type GQLMutationToggleTagRecommendArgs = { + input: GQLToggleRecommendInput } -export interface GQLInvitationEdge { - cursor: string - node: GQLInvitation +export type GQLMutationToggleUsersBadgeArgs = { + input: GQLToggleUsersBadgeInput } -export interface GQLInvitation { - /** - * Unique ID. - */ - id: string - - /** - * Target person of this invitation. - */ - invitee: GQLInvitee +export type GQLMutationUnbindLikerIdArgs = { + input: GQLUnbindLikerIdInput +} - /** - * Creator of this invitation. - */ - inviter: GQLUser +export type GQLMutationUnpinCommentArgs = { + input: GQLUnpinCommentInput +} - /** - * Invitation of current Circle. - */ - circle: GQLCircle +export type GQLMutationUnsubscribeCircleArgs = { + input: GQLUnsubscribeCircleInput +} - /** - * Free period of this invitation. - */ - freePeriod: number +export type GQLMutationUnvoteCommentArgs = { + input: GQLUnvoteCommentInput +} - /** - * Created time. - */ - createdAt: GQLDateTime +export type GQLMutationUpdateArticleSensitiveArgs = { + input: GQLUpdateArticleSensitiveInput +} - /** - * Sent time. - */ - sentAt: GQLDateTime +export type GQLMutationUpdateArticleStateArgs = { + input: GQLUpdateArticleStateInput +} - /** - * Accepted time. - */ - acceptedAt?: GQLDateTime +export type GQLMutationUpdateArticlesTagsArgs = { + input: GQLUpdateArticlesTagsInput +} - /** - * Determine it's specific state. - */ - state: GQLInvitationState +export type GQLMutationUpdateCommentsStateArgs = { + input: GQLUpdateCommentsStateInput } -export type GQLInvitee = GQLPerson | GQLUser +export type GQLMutationUpdateNotificationSettingArgs = { + input: GQLUpdateNotificationSettingInput +} -/** Use this to resolve union type Invitee */ -export type GQLPossibleInviteeTypeNames = 'Person' | 'User' +export type GQLMutationUpdateTagSettingArgs = { + input: GQLUpdateTagSettingInput +} -export interface GQLInviteeNameMap { - Invitee: GQLInvitee - Person: GQLPerson - User: GQLUser +export type GQLMutationUpdateUserExtraArgs = { + input: GQLUpdateUserExtraInput } -export interface GQLPerson { - email: GQLemail_String_NotNull_format_email +export type GQLMutationUpdateUserInfoArgs = { + input: GQLUpdateUserInfoInput } -export type GQLemail_String_NotNull_format_email = any +export type GQLMutationUpdateUserRoleArgs = { + input: GQLUpdateUserRoleInput +} -export const enum GQLInvitationState { - accepted = 'accepted', - pending = 'pending', - transfer_succeeded = 'transfer_succeeded', - transfer_failed = 'transfer_failed', +export type GQLMutationUpdateUserStateArgs = { + input: GQLUpdateUserStateInput } -export interface GQLCircleAnalytics { - income: GQLCircleIncomeAnalytics - subscriber: GQLCircleSubscriberAnalytics - follower: GQLCircleFollowerAnalytics - content: GQLCircleContentAnalytics +export type GQLMutationUserLoginArgs = { + input: GQLUserLoginInput } -export interface GQLCircleIncomeAnalytics { - /** - * income history of last 4 months - */ - history: Array +export type GQLMutationUserRegisterArgs = { + input: GQLUserRegisterInput +} - /** - * total income of all time - */ - total: number +export type GQLMutationVerifyEmailArgs = { + input: GQLVerifyEmailInput +} - /** - * income of this month - */ - thisMonth: number +export type GQLMutationVoteCommentArgs = { + input: GQLVoteCommentInput +} - /** - * income of next month - */ - nextMonth: number +export type GQLMutationWalletLoginArgs = { + input: GQLWalletLoginInput } -export interface GQLMonthlyDatum { - value: number - date: GQLDateTime +/** NFT Asset */ +export type GQLNftAsset = { + __typename?: 'NFTAsset' + collectionName: Scalars['String']['output'] + /** imageOriginalUrl: String! */ + contractAddress: Scalars['String']['output'] + description?: Maybe + id: Scalars['ID']['output'] + imagePreviewUrl?: Maybe + imageUrl: Scalars['String']['output'] + name: Scalars['String']['output'] } -export interface GQLCircleSubscriberAnalytics { - /** - * subscriber count history of last 4 months - */ - subscriberHistory: Array +export type GQLNode = { + id: Scalars['ID']['output'] +} - /** - * invitee count history of last 4 months - */ - inviteeHistory: Array +export type GQLNodeInput = { + id: Scalars['ID']['input'] +} - /** - * current subscriber count - */ - currentSubscriber: number +export type GQLNodesInput = { + ids: Array +} - /** - * current invitee count - */ - currentInvitee: number +/** This interface contains common fields of a notice. */ +export type GQLNotice = { + /** Time of this notice was created. */ + createdAt: Scalars['DateTime']['output'] + /** Unique ID of this notice. */ + id: Scalars['ID']['output'] + /** The value determines if the notice is unread or not. */ + unread: Scalars['Boolean']['output'] } -export interface GQLCircleFollowerAnalytics { - /** - * subscriber count history of last 4 months - */ - history: Array +export type GQLNoticeConnection = GQLConnection & { + __typename?: 'NoticeConnection' + edges?: Maybe> + pageInfo: GQLPageInfo + totalCount: Scalars['Int']['output'] +} - /** - * current follower count - */ - current: number +export type GQLNoticeEdge = { + __typename?: 'NoticeEdge' + cursor: Scalars['String']['output'] + node: GQLNotice +} - /** - * the percentage of follower count in reader count of circle articles - */ - followerPercentage: number +export type GQLNotificationSetting = { + __typename?: 'NotificationSetting' + articleCommentPinned: Scalars['Boolean']['output'] + articleNewAppreciation: Scalars['Boolean']['output'] + articleNewCollected: Scalars['Boolean']['output'] + articleNewComment: Scalars['Boolean']['output'] + articleNewSubscription: Scalars['Boolean']['output'] + circleMemberNewBroadcastReply: Scalars['Boolean']['output'] + circleMemberNewDiscussion: Scalars['Boolean']['output'] + circleMemberNewDiscussionReply: Scalars['Boolean']['output'] + circleNewFollower: Scalars['Boolean']['output'] + /** for circle owners */ + circleNewSubscriber: Scalars['Boolean']['output'] + circleNewUnsubscriber: Scalars['Boolean']['output'] + email: Scalars['Boolean']['output'] + /** for circle members & followers */ + inCircleNewArticle: Scalars['Boolean']['output'] + inCircleNewBroadcast: Scalars['Boolean']['output'] + inCircleNewBroadcastReply: Scalars['Boolean']['output'] + inCircleNewDiscussion: Scalars['Boolean']['output'] + inCircleNewDiscussionReply: Scalars['Boolean']['output'] + mention: Scalars['Boolean']['output'] + userNewFollower: Scalars['Boolean']['output'] +} + +export type GQLNotificationSettingType = + | 'articleCommentPinned' + | 'articleNewAppreciation' + | 'articleNewCollected' + | 'articleNewComment' + | 'articleNewSubscription' + | 'circleMemberBroadcast' + | 'circleMemberNewBroadcastReply' + | 'circleMemberNewDiscussion' + | 'circleMemberNewDiscussionReply' + | 'circleNewDiscussion' + | 'circleNewFollower' + /** for circle owners */ + | 'circleNewSubscriber' + | 'circleNewUnsubscriber' + | 'email' + /** for circle members */ + | 'inCircleNewArticle' + | 'inCircleNewBroadcast' + | 'inCircleNewBroadcastReply' + | 'inCircleNewDiscussion' + | 'inCircleNewDiscussionReply' + | 'mention' + | 'userNewFollower' + +export type GQLOAuthClient = { + __typename?: 'OAuthClient' + /** URL for oauth client's avatar. */ + avatar?: Maybe + /** Creation Date */ + createdAt: Scalars['DateTime']['output'] + /** App Description */ + description?: Maybe + /** Grant Types */ + grantTypes?: Maybe> + /** Unique Client ID of this OAuth Client. */ + id: Scalars['ID']['output'] + /** App name */ + name: Scalars['String']['output'] + /** Redirect URIs */ + redirectURIs?: Maybe> + /** Scopes */ + scope?: Maybe> + /** Client secret */ + secret: Scalars['String']['output'] + /** Linked Developer Account */ + user?: Maybe + /** URL for oauth client's official website */ + website?: Maybe +} + +export type GQLOAuthClientConnection = GQLConnection & { + __typename?: 'OAuthClientConnection' + edges?: Maybe> + pageInfo: GQLPageInfo + totalCount: Scalars['Int']['output'] } -export interface GQLCircleContentAnalytics { - public?: Array - paywall?: Array +export type GQLOAuthClientEdge = { + __typename?: 'OAuthClientEdge' + cursor: Scalars['String']['output'] + node: GQLOAuthClient } -export interface GQLCircleContentAnalyticsDatum { - node: GQLArticle - readCount: number +export type GQLOAuthClientInput = { + id: Scalars['ID']['input'] } -export interface GQLCommentsInput { - sort?: GQLCommentSort - after?: string - before?: string - includeAfter?: boolean - includeBefore?: boolean - first?: GQLfirst_Int_min_0 - filter?: GQLCommentsFilter +export type GQLOss = { + __typename?: 'OSS' + articles: GQLArticleConnection + badgedUsers: GQLUserConnection + comments: GQLCommentConnection + oauthClients: GQLOAuthClientConnection + reports: GQLReportConnection + restrictedUsers: GQLUserConnection + seedingUsers: GQLUserConnection + skippedListItems: GQLSkippedListItemsConnection + tags: GQLTagConnection + users: GQLUserConnection } -export interface GQLCommentsFilter { - parentComment?: string - state?: GQLCommentState - author?: string +export type GQLOssArticlesArgs = { + input: GQLConnectionArgs } -export interface GQLUserCreateCircleActivity { - actor: GQLUser - createdAt: GQLDateTime +export type GQLOssBadgedUsersArgs = { + input: GQLBadgedUsersInput +} - /** - * Circle created by actor - */ - node: GQLCircle +export type GQLOssCommentsArgs = { + input: GQLConnectionArgs } -export interface GQLUserRecommendationActivity { - /** - * The source type of recommendation - */ - source?: GQLUserRecommendationActivitySource +export type GQLOssOauthClientsArgs = { + input: GQLConnectionArgs +} - /** - * Recommended users - */ - nodes?: Array +export type GQLOssReportsArgs = { + input: GQLConnectionArgs } -export const enum GQLUserRecommendationActivitySource { - UserFollowing = 'UserFollowing', +export type GQLOssRestrictedUsersArgs = { + input: GQLConnectionArgs } -export interface GQLArticleRecommendationActivity { - /** - * The source type of recommendation - */ - source?: GQLArticleRecommendationActivitySource +export type GQLOssSeedingUsersArgs = { + input: GQLConnectionArgs +} - /** - * Recommended articles - */ - nodes?: Array +export type GQLOssSkippedListItemsArgs = { + input: GQLSkippedListItemsInput } -export const enum GQLArticleRecommendationActivitySource { - UserDonation = 'UserDonation', - ReadArticlesTags = 'ReadArticlesTags', +export type GQLOssTagsArgs = { + input: GQLTagsInput } -export interface GQLCircleRecommendationActivity { - /** - * The source type of recommendation - */ - source?: GQLCircleRecommendationActivitySource +export type GQLOssUsersArgs = { + input: GQLConnectionArgs +} - /** - * Recommended circles - */ - nodes?: Array +export type GQLOauth1CredentialInput = { + oauthToken: Scalars['String']['input'] + oauthVerifier: Scalars['String']['input'] } -export const enum GQLCircleRecommendationActivitySource { - UserSubscription = 'UserSubscription', +/** This type contains system-wise info and settings. */ +export type GQLOfficial = { + __typename?: 'Official' + /** Announcements */ + announcements?: Maybe> + /** Feature flag */ + features: Array } -export interface GQLRecommendInput { - after?: string - first?: GQLfirst_Int_min_0 - oss?: boolean - filter?: GQLFilterInput - type?: GQLAuthorsType +/** This type contains system-wise info and settings. */ +export type GQLOfficialAnnouncementsArgs = { + input: GQLAnnouncementsInput } -export const enum GQLAuthorsType { - active = 'active', - appreciated = 'appreciated', - default = 'default', - trendy = 'trendy', +/** The notice type contains info about official announcement. */ +export type GQLOfficialAnnouncementNotice = GQLNotice & { + __typename?: 'OfficialAnnouncementNotice' + /** Time of this notice was created. */ + createdAt: Scalars['DateTime']['output'] + /** Unique ID of this notice. */ + id: Scalars['ID']['output'] + /** The link to a specific page if provided. */ + link?: Maybe + /** The message content. */ + message: Scalars['String']['output'] + /** The value determines if the notice is unread or not. */ + unread: Scalars['Boolean']['output'] +} + +export type GQLPageInfo = { + __typename?: 'PageInfo' + endCursor?: Maybe + hasNextPage: Scalars['Boolean']['output'] + hasPreviousPage: Scalars['Boolean']['output'] + startCursor?: Maybe +} + +export type GQLPayToInput = { + amount: Scalars['Float']['input'] + /** for ERC20/native token payment */ + chain?: InputMaybe + currency: GQLTransactionCurrency + /** for HKD payment */ + password?: InputMaybe + purpose: GQLTransactionPurpose + recipientId: Scalars['ID']['input'] + targetId?: InputMaybe + txHash?: InputMaybe } -export interface GQLCircleConnection extends GQLConnection { - totalCount: number - pageInfo: GQLPageInfo - edges?: Array +export type GQLPayToResult = { + __typename?: 'PayToResult' + /** Only available when paying with LIKE. */ + redirectUrl?: Maybe + transaction: GQLTransaction } -export interface GQLCircleEdge { - cursor: string - node: GQLCircle +export type GQLPayoutInput = { + amount: Scalars['Float']['input'] + password: Scalars['String']['input'] } -export interface GQLTopicInput { - after?: string - first?: GQLfirst_Int_min_0 - filter?: GQLFilterInput +export type GQLPerson = { + __typename?: 'Person' + email: Scalars['String']['output'] } -export interface GQLTopicConnection extends GQLConnection { - totalCount: number - pageInfo: GQLPageInfo - edges?: Array +export type GQLPinCommentInput = { + id: Scalars['ID']['input'] } -export interface GQLTopicEdge { - cursor: string - node: GQLTopic +export type GQLPinnableWork = { + cover?: Maybe + id: Scalars['ID']['output'] + pinned: Scalars['Boolean']['output'] + title: Scalars['String']['output'] } -/** - * This type contains metadata, content and related data of a topic, which is a container for Article and Chapter types. - */ -export interface GQLTopic extends GQLNode { +export type GQLPrice = { + __typename?: 'Price' + /** Amount of Price. */ + amount: Scalars['Float']['output'] + /** Current Price belongs to whcih Circle. */ + circle: GQLCircle /** - * Unique id of this topic. + * Created time. + * @deprecated No longer in use */ - id: string - + createdAt: Scalars['DateTime']['output'] + /** Currency of Price. */ + currency: GQLTransactionCurrency + /** Unique ID. */ + id: Scalars['ID']['output'] + /** State of Price. */ + state: GQLPriceState /** - * Title of this topic. + * Updated time. + * @deprecated No longer in use */ - title: string + updatedAt: Scalars['DateTime']['output'] +} - /** - * Cover of this topic. - */ - cover?: string +export type GQLPriceState = 'active' | 'archived' - /** - * Description of this topic. - */ - description?: string +export type GQLPublishArticleInput = { + id: Scalars['ID']['input'] + /** whether publish to ISCN */ + iscnPublish?: InputMaybe +} - /** - * Number of chapters included in this topic. - */ - chapterCount: number +/** Enums for publishing state. */ +export type GQLPublishState = 'error' | 'pending' | 'published' | 'unpublished' - /** - * Number articles included in this topic. - */ - articleCount: number +export type GQLPutAnnouncementInput = { + content?: InputMaybe + cover?: InputMaybe + expiredAt?: InputMaybe + id?: InputMaybe + link?: InputMaybe + order?: InputMaybe + title?: InputMaybe + translations?: InputMaybe> + type?: InputMaybe + visible?: InputMaybe +} - /** - * List of chapters included in this topic. - */ - chapters?: Array +export type GQLPutChapterInput = { + articles?: InputMaybe> + description?: InputMaybe + id?: InputMaybe + title?: InputMaybe + topic?: InputMaybe +} - /** - * List of articles included in this topic. - */ - articles?: Array +export type GQLPutCircleArticlesInput = { + /** Access Type, `public` or `paywall` only. */ + accessType: GQLArticleAccessType + /** Article Ids */ + articles?: InputMaybe> + /** Circle ID */ + id: Scalars['ID']['input'] + license?: InputMaybe + /** Action Type */ + type: GQLPutCircleArticlesType +} - /** - * Author of this topic. - */ - author: GQLUser +export type GQLPutCircleArticlesType = 'add' | 'remove' - /** - * Whether this topic is public or not. - */ - public: boolean +export type GQLPutCircleInput = { + /** Circle's subscription fee. */ + amount?: InputMaybe + /** Unique ID of a Circle's avatar. */ + avatar?: InputMaybe + /** Unique ID of a Circle's cover. */ + cover?: InputMaybe + /** A short description of this Circle. */ + description?: InputMaybe + /** Human readable name of this Circle. */ + displayName?: InputMaybe + /** Unique ID. */ + id?: InputMaybe + /** Slugified name of a Circle. */ + name?: InputMaybe +} - /** - * Latest published article on this topic - */ - latestArticle?: GQLArticle +export type GQLPutCollectionInput = { + cover?: InputMaybe + description?: InputMaybe + id?: InputMaybe + pinned?: InputMaybe + title?: InputMaybe } -/** - * This type contains metadata, content and related data of Chapter type, which is - * a container for Article type. A Chapter belong to a Topic. - */ -export interface GQLChapter extends GQLNode { - /** - * Unique id of this chapter. - */ - id: string +export type GQLPutCommentInput = { + comment: GQLCommentInput + id?: InputMaybe +} + +export type GQLPutDraftInput = { + accessType?: InputMaybe + /** whether readers can comment */ + canComment?: InputMaybe + circle?: InputMaybe + collection?: InputMaybe>> + content?: InputMaybe + cover?: InputMaybe + id?: InputMaybe + /** whether publish to ISCN */ + iscnPublish?: InputMaybe + license?: InputMaybe + replyToDonator?: InputMaybe + requestForDonation?: InputMaybe + sensitive?: InputMaybe + summary?: InputMaybe + tags?: InputMaybe> + title?: InputMaybe +} + +export type GQLPutOAuthClientInput = { + avatar?: InputMaybe + description?: InputMaybe + grantTypes?: InputMaybe> + id?: InputMaybe + name?: InputMaybe + redirectURIs?: InputMaybe> + scope?: InputMaybe> + secret?: InputMaybe + user?: InputMaybe + website?: InputMaybe +} + +export type GQLPutRemarkInput = { + id: Scalars['ID']['input'] + remark: Scalars['String']['input'] + type: GQLRemarkTypes +} - /** - * Title of this chapter. - */ - title: string +export type GQLPutRestrictedUsersInput = { + ids: Array + restrictions: Array +} - /** - * Description of this chapter. - */ - description?: string +export type GQLPutSkippedListItemInput = { + archived?: InputMaybe + id?: InputMaybe + type?: InputMaybe + value?: InputMaybe +} + +export type GQLPutTagInput = { + content?: InputMaybe + cover?: InputMaybe + description?: InputMaybe + id?: InputMaybe +} + +export type GQLPutTopicInput = { + articles?: InputMaybe> + chapters?: InputMaybe> + cover?: InputMaybe + description?: InputMaybe + id?: InputMaybe + public?: InputMaybe + title?: InputMaybe +} + +export type GQLQuery = { + __typename?: 'Query' + article?: Maybe + circle?: Maybe + exchangeRates?: Maybe> + frequentSearch?: Maybe> + node?: Maybe + nodes?: Maybe> + oauthClient?: Maybe + oauthRequestToken?: Maybe + official: GQLOfficial + oss: GQLOss + search: GQLSearchResultConnection + user?: Maybe + viewer?: Maybe +} - /** - * Number articles included in this chapter. - */ - articleCount: number +export type GQLQueryArticleArgs = { + input: GQLArticleInput +} - /** - * Articles included in this Chapter - */ - articles?: Array +export type GQLQueryCircleArgs = { + input: GQLCircleInput +} - /** - * The topic that this Chapter belongs to. - */ - topic: GQLTopic +export type GQLQueryExchangeRatesArgs = { + input?: InputMaybe } -export interface GQLDraftConnection extends GQLConnection { - totalCount: number - pageInfo: GQLPageInfo - edges?: Array +export type GQLQueryFrequentSearchArgs = { + input: GQLFrequentSearchInput } -export interface GQLDraftEdge { - cursor: string - node: GQLDraft +export type GQLQueryNodeArgs = { + input: GQLNodeInput } -/** - * This type contains content, collections, assets and related data of a draft. - */ -export interface GQLDraft extends GQLNode { - /** - * Unique ID of this draft. - */ - id: string +export type GQLQueryNodesArgs = { + input: GQLNodesInput +} - /** - * Media hash, composed of cid encoding, of this draft. - */ - mediaHash?: string +export type GQLQueryOauthClientArgs = { + input: GQLOAuthClientInput +} - /** - * Draft title. - */ - title?: string +export type GQLQuerySearchArgs = { + input: GQLSearchInput +} - /** - * Slugified draft title. - */ - slug: string +export type GQLQueryUserArgs = { + input: GQLUserInput +} - /** - * Summary of this draft. - */ - summary?: string +export type GQLQuoteCurrency = 'HKD' | 'TWD' | 'USD' - /** - * This value determines if the summary is customized or not. - */ - summaryCustomized: boolean +export type GQLReadArticleInput = { + id: Scalars['ID']['input'] +} - /** - * Content of this draft. - */ - content?: string +export type GQLReadHistory = { + __typename?: 'ReadHistory' + article: GQLArticle + readAt: Scalars['DateTime']['output'] +} - /** - * Time of this draft was created. - */ - createdAt: GQLDateTime +export type GQLReadHistoryConnection = GQLConnection & { + __typename?: 'ReadHistoryConnection' + edges?: Maybe> + pageInfo: GQLPageInfo + totalCount: Scalars['Int']['output'] +} - /** - * Last time of this draft was upadted. - */ - updatedAt: GQLDateTime +export type GQLReadHistoryEdge = { + __typename?: 'ReadHistoryEdge' + cursor: Scalars['String']['output'] + node: GQLReadHistory +} - /** - * The counting number of words in this draft. - */ - wordCount: number +export type GQLRecentSearchConnection = GQLConnection & { + __typename?: 'RecentSearchConnection' + edges?: Maybe> + pageInfo: GQLPageInfo + totalCount: Scalars['Int']['output'] +} - /** - * Tags are attached to this draft. - */ - tags?: Array +export type GQLRecentSearchEdge = { + __typename?: 'RecentSearchEdge' + cursor: Scalars['String']['output'] + node: Scalars['String']['output'] +} - /** - * Draft's cover link. - */ - cover?: string +export type GQLRecommendInput = { + after?: InputMaybe + filter?: InputMaybe + first?: InputMaybe + oss?: InputMaybe + type?: InputMaybe +} - /** - * State of draft during publihsing. - */ - publishState: GQLPublishState +/** Enums for types of recommend articles. */ +export type GQLRecommendTypes = 'hottest' | 'icymi' | 'newest' +export type GQLRecommendation = { + __typename?: 'Recommendation' + /** Global user list, sort by activities in recent 6 month. */ + authors: GQLUserConnection + /** Activities based on user's following, sort by creation time. */ + following: GQLFollowingActivityConnection + /** Global articles sort by latest activity time. */ + hottest: GQLArticleConnection + /** Global circles sort by latest activity time. */ + hottestCircles: GQLCircleConnection + /** Hottest tag list */ + hottestTags: GQLTagConnection + /** 'In case you missed it' recommendation. */ + icymi: GQLArticleConnection + /** Global articles sort by publish time. */ + newest: GQLArticleConnection + /** Global circles sort by created time. */ + newestCircles: GQLCircleConnection /** - * List of assets are belonged to this draft. + * Articles recommended based on recently read article tags. + * @deprecated Merged into following */ - assets: Array + readTagsArticles: GQLArticleConnection + /** Selected tag list */ + selectedTags: GQLTagConnection + /** Global tag list, sort by activities in recent 14 days. */ + tags: GQLTagConnection +} - /** - * Published article - */ - article?: GQLArticle +export type GQLRecommendationAuthorsArgs = { + input: GQLRecommendInput +} - /** - * Collection list of this draft. - */ - collection: GQLArticleConnection +export type GQLRecommendationFollowingArgs = { + input: GQLConnectionArgs +} - /** - * Access related fields on circle - */ - access: GQLDraftAccess +export type GQLRecommendationHottestArgs = { + input: GQLConnectionArgs +} - /** - * License Type - */ - license: GQLArticleLicenseType +export type GQLRecommendationHottestCirclesArgs = { + input: GQLConnectionArgs +} - /** - * creator message asking for support - */ - requestForDonation?: string +export type GQLRecommendationHottestTagsArgs = { + input: GQLRecommendInput +} - /** - * creator message after support - */ - replyToDonator?: string +export type GQLRecommendationIcymiArgs = { + input: GQLConnectionArgs +} - /** - * whether publish to ISCN - */ - iscnPublish?: boolean +export type GQLRecommendationNewestArgs = { + input: GQLConnectionArgs +} - /** - * whether readers can comment - */ - canComment: boolean +export type GQLRecommendationNewestCirclesArgs = { + input: GQLConnectionArgs } -/** - * Enums for publishing state. - */ -export const enum GQLPublishState { - unpublished = 'unpublished', - pending = 'pending', - error = 'error', - published = 'published', +export type GQLRecommendationReadTagsArticlesArgs = { + input: GQLConnectionArgs } -/** - * This type contains type, link and related data of an asset. - */ -export interface GQLAsset { - /** - * Unique ID of this Asset. - */ - id: string +export type GQLRecommendationSelectedTagsArgs = { + input: GQLRecommendInput +} - /** - * Types of this asset. - */ - type: GQLAssetType +export type GQLRecommendationTagsArgs = { + input: GQLRecommendInput +} - /** - * Link of this asset. - */ - path: string +export type GQLRefreshIpnsFeedInput = { + /** refresh how many recent articles, default to 50 */ + numArticles?: InputMaybe + userName: Scalars['String']['input'] +} - /** - * Time of this asset was created. - */ - createdAt: GQLDateTime +export type GQLRelatedDonationArticlesInput = { + after?: InputMaybe + first?: InputMaybe + oss?: InputMaybe + /** index of article list, min: 0, max: 49 */ + random?: InputMaybe } -/** - * Enums for asset types. - */ -export const enum GQLAssetType { - avatar = 'avatar', - cover = 'cover', - embed = 'embed', - embedaudio = 'embedaudio', - profileCover = 'profileCover', - oauthClientAvatar = 'oauthClientAvatar', - tagCover = 'tagCover', - circleAvatar = 'circleAvatar', - circleCover = 'circleCover', - announcementCover = 'announcementCover', - topicCover = 'topicCover', +export type GQLRemarkTypes = + | 'Article' + | 'Comment' + | 'Feedback' + | 'Report' + | 'Tag' + | 'User' - /** - * img-cached - */ - imgCached = 'imgCached', +export type GQLRemoveSocialLoginInput = { + type: GQLSocialAccountType } -export interface GQLDraftAccess { - type: GQLArticleAccessType - circle?: GQLCircle +export type GQLRenameTagInput = { + content: Scalars['String']['input'] + id: Scalars['ID']['input'] } -/** - * Enums for types of article access - */ -export const enum GQLArticleAccessType { - public = 'public', - paywall = 'paywall', +export type GQLReorderCollectionArticlesInput = { + collection: Scalars['ID']['input'] + moves: Array } -/** - * Enums for types of article license - */ -export const enum GQLArticleLicenseType { - cc_0 = 'cc_0', - cc_by_nc_nd_2 = 'cc_by_nc_nd_2', - arr = 'arr', +export type GQLReorderMoveInput = { + item: Scalars['ID']['input'] + /** The new position move to. To move item to the beginning of the list, set to 0. To the end of the list, set to the length of the list - 1. */ + newPosition: Scalars['Int']['input'] } -export interface GQLUserActivity { - /** - * User reading history. - */ - history: GQLReadHistoryConnection - - /** - * User search history. - */ - recentSearches: GQLRecentSearchConnection +export type GQLReport = GQLNode & { + __typename?: 'Report' + createdAt: Scalars['DateTime']['output'] + id: Scalars['ID']['output'] + reason: GQLReportReason + reporter: GQLUser + target: GQLResponse +} - /** - * Appreciations current user gave. - */ - appreciationsSent: GQLAppreciationConnection +export type GQLReportConnection = GQLConnection & { + __typename?: 'ReportConnection' + edges?: Maybe> + pageInfo: GQLPageInfo + totalCount: Scalars['Int']['output'] +} - /** - * Total number of appreciation current user gave. - */ - appreciationsSentTotal: number +export type GQLReportEdge = { + __typename?: 'ReportEdge' + cursor: Scalars['String']['output'] + node: GQLReport +} - /** - * Appreciations current user received. - */ - appreciationsReceived: GQLAppreciationConnection +export type GQLReportReason = + | 'discrimination_insult_hatred' + | 'illegal_advertising' + | 'other' + | 'pornography_involving_minors' + | 'tort' - /** - * Total number of appreciation current user received. - */ - appreciationsReceivedTotal: number +export type GQLResetLikerIdInput = { + id: Scalars['ID']['input'] } -export interface GQLReadHistoryConnection extends GQLConnection { - totalCount: number - pageInfo: GQLPageInfo - edges?: Array +export type GQLResetPasswordInput = { + codeId: Scalars['ID']['input'] + password: Scalars['String']['input'] + type?: InputMaybe } -export interface GQLReadHistoryEdge { - cursor: string - node: GQLReadHistory -} +export type GQLResetPasswordType = 'account' | 'payment' -export interface GQLReadHistory { - article: GQLArticle - readAt: GQLDateTime +export type GQLResetWalletInput = { + id: Scalars['ID']['input'] } -export interface GQLRecentSearchConnection extends GQLConnection { - totalCount: number +export type GQLResponse = GQLArticle | GQLComment + +export type GQLResponseConnection = GQLConnection & { + __typename?: 'ResponseConnection' + edges?: Maybe> pageInfo: GQLPageInfo - edges?: Array + totalCount: Scalars['Int']['output'] } -export interface GQLRecentSearchEdge { - cursor: string - node: string +export type GQLResponseEdge = { + __typename?: 'ResponseEdge' + cursor: Scalars['String']['output'] + node: GQLResponse } -export interface GQLAppreciationConnection extends GQLConnection { - totalCount: number - pageInfo: GQLPageInfo - edges?: Array +/** Enums for sorting responses. */ +export type GQLResponseSort = 'newest' | 'oldest' + +export type GQLResponsesInput = { + after?: InputMaybe + articleOnly?: InputMaybe + before?: InputMaybe + first?: InputMaybe + includeAfter?: InputMaybe + includeBefore?: InputMaybe + sort?: InputMaybe +} + +/** Enums for user roles. */ +export type GQLRole = 'admin' | 'user' | 'vistor' + +export type GQLSearchApiVersion = 'v20230301' | 'v20230601' + +export type GQLSearchExclude = 'blocked' + +export type GQLSearchFilter = { + authorId?: InputMaybe +} + +export type GQLSearchInput = { + after?: InputMaybe + /** deprecated, make no effect */ + coefficients?: InputMaybe + /** specific condition for rule data out */ + exclude?: InputMaybe + /** extra query filter for searching */ + filter?: InputMaybe + first?: InputMaybe + /** should include tags used by author */ + includeAuthorTags?: InputMaybe + /** search keyword */ + key: Scalars['String']['input'] + oss?: InputMaybe + quicksearch?: InputMaybe + /** whether this search operation should be recorded in search history */ + record?: InputMaybe + /** types of search target */ + type: GQLSearchTypes + /** use the api version; default to use latest stable version is v20230301 */ + version?: InputMaybe } -export interface GQLAppreciationEdge { - cursor: string - node: GQLAppreciation +export type GQLSearchResultConnection = GQLConnection & { + __typename?: 'SearchResultConnection' + edges?: Maybe> + pageInfo: GQLPageInfo + totalCount: Scalars['Int']['output'] } -export interface GQLAppreciation { - amount: number - purpose: GQLAppreciationPurpose - content: string +export type GQLSearchResultEdge = { + __typename?: 'SearchResultEdge' + cursor: Scalars['String']['output'] + node: GQLNode +} - /** - * Timestamp of appreciation. - */ - createdAt: GQLDateTime +export type GQLSearchTypes = 'Article' | 'Tag' | 'User' +export type GQLSendVerificationCodeInput = { + email: Scalars['String']['input'] + /** email content language */ + language?: InputMaybe /** - * Recipient of appreciation. + * Redirect URL embedded in the verification email, + * use code instead if not provided. */ - recipient: GQLUser + redirectUrl?: InputMaybe + token?: InputMaybe + type: GQLVerificationCodeType +} - /** - * Sender of appreciation. - */ - sender?: GQLUser +export type GQLSetBoostInput = { + boost: Scalars['Float']['input'] + id: Scalars['ID']['input'] + type: GQLBoostTypes +} - /** - * Object that appreciation is meant for. - */ - target?: GQLArticle +export type GQLSetCurrencyInput = { + currency?: InputMaybe } -export const enum GQLAppreciationPurpose { - appreciate = 'appreciate', - appreciateComment = 'appreciateComment', - appreciateSubsidy = 'appreciateSubsidy', - invitationAccepted = 'invitationAccepted', - joinByInvitation = 'joinByInvitation', - joinByTask = 'joinByTask', - firstPost = 'firstPost', - systemSubsidy = 'systemSubsidy', +export type GQLSetEmailInput = { + email: Scalars['String']['input'] } -export interface GQLFollowing { - circles: GQLCircleConnection - tags: GQLTagConnection - users: GQLUserConnection +export type GQLSetFeatureInput = { + flag: GQLFeatureFlag + name: GQLFeatureName } -export interface GQLUserAnalytics { - /** - * Top donators of current user. - */ - topDonators: GQLTopDonatorConnection +export type GQLSetPasswordInput = { + password: Scalars['String']['input'] } -export interface GQLTopDonatorInput { - after?: string - first?: number - filter?: GQLTopDonatorFilter +export type GQLSetUserNameInput = { + userName: Scalars['String']['input'] } -export interface GQLTopDonatorFilter { - inRangeStart?: GQLDateTime - inRangeEnd?: GQLDateTime +export type GQLSigningMessagePurpose = + | 'airdrop' + | 'claimLogbook' + | 'connect' + | 'login' + | 'signup' + +export type GQLSigningMessageResult = { + __typename?: 'SigningMessageResult' + createdAt: Scalars['DateTime']['output'] + expiredAt: Scalars['DateTime']['output'] + nonce: Scalars['String']['output'] + purpose: GQLSigningMessagePurpose + signingMessage: Scalars['String']['output'] } -export interface GQLTopDonatorConnection extends GQLConnection { - totalCount: number - pageInfo: GQLPageInfo - edges?: Array +export type GQLSingleFileUploadInput = { + draft?: InputMaybe + entityId?: InputMaybe + entityType: GQLEntityType + file?: InputMaybe + type: GQLAssetType + url?: InputMaybe } -export interface GQLTopDonatorEdge { - cursor: string - node: GQLUser - donationCount: number +export type GQLSkippedListItem = { + __typename?: 'SkippedListItem' + archived: Scalars['Boolean']['output'] + createdAt: Scalars['DateTime']['output'] + id: Scalars['ID']['output'] + type: GQLSkippedListItemType + updatedAt: Scalars['DateTime']['output'] + uuid: Scalars['ID']['output'] + value: Scalars['String']['output'] } -export interface GQLUserStatus { - /** - * User state. - */ - state: GQLUserState +export type GQLSkippedListItemEdge = { + __typename?: 'SkippedListItemEdge' + cursor: Scalars['String']['output'] + node?: Maybe +} - /** - * User role and access level. - */ - role: GQLUserRole +export type GQLSkippedListItemType = 'agent_hash' | 'domain' | 'email' - /** - * Number of articles published by user - */ - articleCount: number +export type GQLSkippedListItemsConnection = GQLConnection & { + __typename?: 'SkippedListItemsConnection' + edges?: Maybe> + pageInfo: GQLPageInfo + totalCount: Scalars['Int']['output'] +} + +export type GQLSkippedListItemsInput = { + after?: InputMaybe + first?: InputMaybe + type?: InputMaybe +} + +export type GQLSocialAccount = { + __typename?: 'SocialAccount' + email?: Maybe + type: GQLSocialAccountType + userName?: Maybe +} + +export type GQLSocialAccountType = 'Facebook' | 'Google' | 'Twitter' + +export type GQLSocialLoginInput = { + authorizationCode?: InputMaybe + /** OAuth2 PKCE code_verifier for Facebook and Twitter */ + codeVerifier?: InputMaybe + /** used in register */ + language?: InputMaybe + /** OIDC nonce for Google */ + nonce?: InputMaybe + /** oauth token/verifier in OAuth1.0a for Twitter */ + oauth1Credential?: InputMaybe + referralCode?: InputMaybe + type: GQLSocialAccountType +} + +export type GQLSortTopicsInput = { + ids: Array +} + +export type GQLStripeAccount = { + __typename?: 'StripeAccount' + id: Scalars['ID']['output'] + loginUrl: Scalars['String']['output'] +} + +export type GQLStripeAccountCountry = + | 'Australia' + | 'Austria' + | 'Belgium' + | 'Bulgaria' + | 'Canada' + | 'Cyprus' + | 'Denmark' + | 'Estonia' + | 'Finland' + | 'France' + | 'Germany' + | 'Greece' + | 'HongKong' + | 'Ireland' + | 'Italy' + | 'Latvia' + | 'Lithuania' + | 'Luxembourg' + | 'Malta' + | 'Netherlands' + | 'NewZealand' + | 'Norway' + | 'Poland' + | 'Portugal' + | 'Romania' + | 'Singapore' + | 'Slovakia' + | 'Slovenia' + | 'Spain' + | 'Sweden' + | 'UnitedKingdom' + | 'UnitedStates' + +export type GQLSubmitReportInput = { + reason: GQLReportReason + targetId: Scalars['ID']['input'] +} + +export type GQLSubscribeCircleInput = { + /** Unique ID. */ + id: Scalars['ID']['input'] + /** Wallet password. */ + password?: InputMaybe +} + +export type GQLSubscribeCircleResult = { + __typename?: 'SubscribeCircleResult' + circle: GQLCircle + /** client secret for SetupIntent. */ + client_secret?: Maybe +} - /** - * Number of comments posted by user. - */ - commentCount: number +/** This type contains content, count and related data of an article tag. */ +export type GQLTag = GQLNode & { + __typename?: 'Tag' + /** List of how many articles were attached with this tag. */ + articles: GQLArticleConnection + /** Content of this tag. */ + content: Scalars['String']['output'] + /** Tag's cover link. */ + cover?: Maybe + /** Time of this tag was created. */ + createdAt: Scalars['DateTime']['output'] + /** Creator of this tag. */ + creator?: Maybe + deleted: Scalars['Boolean']['output'] + /** Description of this tag. */ + description?: Maybe + /** Editors of this tag. */ + editors?: Maybe> + /** Followers of this tag. */ + followers: GQLUserConnection + /** Unique id of this tag. */ + id: Scalars['ID']['output'] + /** This value determines if current viewer is following or not. */ + isFollower?: Maybe + /** This value determines if it is official. */ + isOfficial?: Maybe + /** This value determines if the tag is pinned by current viewer. */ + isPinned?: Maybe + /** Counts of this tag. */ + numArticles: Scalars['Int']['output'] + numAuthors: Scalars['Int']['output'] + oss: GQLTagOss + /** Owner of this tag. */ + owner?: Maybe + /** Participants of this tag. */ + participants: GQLUserConnection + /** Tags recommended based on relations to current tag. */ + recommended: GQLTagConnection + remark?: Maybe + /** This value determines if this article is selected by this tag or not. */ + selected: Scalars['Boolean']['output'] +} - /** - * Number of unread notices. - */ - unreadNoticeCount: number +/** This type contains content, count and related data of an article tag. */ +export type GQLTagArticlesArgs = { + input: GQLTagArticlesInput +} - /** - * Whether there are unread activities from following. - */ - unreadFollowing: boolean +/** This type contains content, count and related data of an article tag. */ +export type GQLTagEditorsArgs = { + input?: InputMaybe +} - /** - * Number of total written words. - */ - totalWordCount: number +/** This type contains content, count and related data of an article tag. */ +export type GQLTagFollowersArgs = { + input: GQLConnectionArgs +} - /** - * Whether user already set payment password. - */ - hasPaymentPassword: boolean +/** This type contains content, count and related data of an article tag. */ +export type GQLTagParticipantsArgs = { + input: GQLConnectionArgs +} - /** - * Number of articles donated by user - */ - donatedArticleCount: number +/** This type contains content, count and related data of an article tag. */ +export type GQLTagRecommendedArgs = { + input: GQLConnectionArgs +} - /** - * Number of times of donations received by user - */ - receivedDonationCount: number +/** This type contains content, count and related data of an article tag. */ +export type GQLTagSelectedArgs = { + input: GQLTagSelectedInput } -export const enum GQLUserState { - active = 'active', - onboarding = 'onboarding', - banned = 'banned', - archived = 'archived', - frozen = 'frozen', +export type GQLTagArticlesInput = { + after?: InputMaybe + first?: InputMaybe + oss?: InputMaybe + selected?: InputMaybe + sortBy?: InputMaybe } -export const enum GQLUserRole { - user = 'user', - admin = 'admin', +export type GQLTagArticlesSortBy = 'byCreatedAtDesc' | 'byHottestDesc' + +export type GQLTagConnection = GQLConnection & { + __typename?: 'TagConnection' + edges?: Maybe> + pageInfo: GQLPageInfo + totalCount: Scalars['Int']['output'] } -export interface GQLUserOSS { - boost: number - score: number - restrictions: Array +export type GQLTagEdge = { + __typename?: 'TagEdge' + cursor: Scalars['String']['output'] + node: GQLTag } -export interface GQLUserRestriction { - type: GQLUserRestrictionType - createdAt: GQLDateTime +export type GQLTagEditorsInput = { + excludeAdmin?: InputMaybe + excludeOwner?: InputMaybe } -export const enum GQLUserRestrictionType { - articleHottest = 'articleHottest', - articleNewest = 'articleNewest', +export type GQLTagOss = { + __typename?: 'TagOSS' + boost: Scalars['Float']['output'] + score: Scalars['Float']['output'] + selected: Scalars['Boolean']['output'] } -export interface GQLNoticeConnection extends GQLConnection { - totalCount: number - pageInfo: GQLPageInfo - edges?: Array +export type GQLTagSelectedInput = { + id?: InputMaybe + mediaHash?: InputMaybe } -export interface GQLNoticeEdge { - cursor: string - node: GQLNotice +export type GQLTagsInput = { + after?: InputMaybe + first?: InputMaybe + sort?: InputMaybe } -/** - * This interface contains common fields of a notice. - */ -export interface GQLNotice { - /** - * Unique ID of this notice. - */ - id: string +/** Enums for sorting tags. */ +export type GQLTagsSort = 'hottest' | 'newest' | 'oldest' - /** - * The value determines if the notice is unread or not. - */ - unread: boolean +export type GQLToggleCircleMemberInput = { + /** Toggle value. */ + enabled: Scalars['Boolean']['input'] + /** Unique ID. */ + id: Scalars['ID']['input'] + /** Unique ID of target user. */ + targetId: Scalars['ID']['input'] +} - /** - * Time of this notice was created. - */ - createdAt: GQLDateTime -} - -/** Use this to resolve interface type Notice */ -export type GQLPossibleNoticeTypeNames = - | 'ArticleArticleNotice' - | 'ArticleNotice' - | 'ArticleTagNotice' - | 'CircleNotice' - | 'CommentCommentNotice' - | 'CommentNotice' - | 'CryptoNotice' - | 'OfficialAnnouncementNotice' - | 'TagNotice' - | 'TransactionNotice' - | 'UserNotice' - -export interface GQLNoticeNameMap { - Notice: GQLNotice - ArticleArticleNotice: GQLArticleArticleNotice - ArticleNotice: GQLArticleNotice - ArticleTagNotice: GQLArticleTagNotice - CircleNotice: GQLCircleNotice - CommentCommentNotice: GQLCommentCommentNotice - CommentNotice: GQLCommentNotice - CryptoNotice: GQLCryptoNotice - OfficialAnnouncementNotice: GQLOfficialAnnouncementNotice - TagNotice: GQLTagNotice - TransactionNotice: GQLTransactionNotice - UserNotice: GQLUserNotice -} - -export interface GQLWallet { - balance: GQLBalance - transactions: GQLTransactionConnection +/** Common input to toggle single item for `toggleXXX` mutations */ +export type GQLToggleItemInput = { + enabled?: InputMaybe + id: Scalars['ID']['input'] +} - /** - * Account of Stripe Connect to manage payout - */ - stripeAccount?: GQLStripeAccount +export type GQLToggleRecommendInput = { + enabled: Scalars['Boolean']['input'] + id: Scalars['ID']['input'] + type?: InputMaybe +} - /** - * URL of Stripe Dashboard to manage subscription invoice and payment method - */ - customerPortal?: string +export type GQLToggleSeedingUsersInput = { + enabled: Scalars['Boolean']['input'] + ids?: InputMaybe> +} - /** - * The last four digits of the card. - */ - cardLast4?: string +export type GQLToggleUsersBadgeInput = { + enabled: Scalars['Boolean']['input'] + ids?: InputMaybe> + type: GQLBadgeType } -export interface GQLBalance { - HKD: number +export type GQLTopDonatorConnection = GQLConnection & { + __typename?: 'TopDonatorConnection' + edges?: Maybe> + pageInfo: GQLPageInfo + totalCount: Scalars['Int']['output'] } -export interface GQLTransactionsArgs { - after?: string - first?: GQLfirst_Int_min_0 +export type GQLTopDonatorEdge = { + __typename?: 'TopDonatorEdge' + cursor: Scalars['String']['output'] + donationCount: Scalars['Int']['output'] + node: GQLUser +} - /** - * deprecated, use TransactionsFilter.id instead. - */ - id?: string +export type GQLTopDonatorFilter = { + inRangeEnd?: InputMaybe + inRangeStart?: InputMaybe +} - /** - * deprecated, use TransactionsFilter.states instead. - */ - states?: Array - filter?: GQLTransactionsFilter +export type GQLTopDonatorInput = { + after?: InputMaybe + filter?: InputMaybe + first?: InputMaybe +} + +/** This type contains metadata, content and related data of a topic, which is a container for Article and Chapter types. */ +export type GQLTopic = GQLNode & { + __typename?: 'Topic' + /** Number articles included in this topic. */ + articleCount: Scalars['Int']['output'] + /** List of articles included in this topic. */ + articles?: Maybe> + /** Author of this topic. */ + author: GQLUser + /** Number of chapters included in this topic. */ + chapterCount: Scalars['Int']['output'] + /** List of chapters included in this topic. */ + chapters?: Maybe> + /** Cover of this topic. */ + cover?: Maybe + /** Description of this topic. */ + description?: Maybe + /** Unique id of this topic. */ + id: Scalars['ID']['output'] + /** Latest published article on this topic */ + latestArticle?: Maybe + /** Whether this topic is public or not. */ + public: Scalars['Boolean']['output'] + /** Title of this topic. */ + title: Scalars['String']['output'] +} + +export type GQLTopicConnection = GQLConnection & { + __typename?: 'TopicConnection' + edges?: Maybe> + pageInfo: GQLPageInfo + totalCount: Scalars['Int']['output'] } -export const enum GQLTransactionState { - pending = 'pending', - succeeded = 'succeeded', - failed = 'failed', - canceled = 'canceled', +export type GQLTopicEdge = { + __typename?: 'TopicEdge' + cursor: Scalars['String']['output'] + node: GQLTopic } -export interface GQLTransactionsFilter { - id?: string - states?: Array - currency?: GQLTransactionCurrency - purpose?: GQLTransactionPurpose +export type GQLTopicInput = { + after?: InputMaybe + filter?: InputMaybe + first?: InputMaybe } -export const enum GQLTransactionPurpose { - donation = 'donation', - addCredit = 'addCredit', - refund = 'refund', - payout = 'payout', - subscriptionSplit = 'subscriptionSplit', +export type GQLTransaction = { + __typename?: 'Transaction' + amount: Scalars['Float']['output'] + /** blockchain transaction info of ERC20/native token payment transaction */ + blockchainTx?: Maybe + /** Timestamp of transaction. */ + createdAt: Scalars['DateTime']['output'] + currency: GQLTransactionCurrency + fee: Scalars['Float']['output'] + id: Scalars['ID']['output'] + /** Message for end user, including reason of failure. */ + message?: Maybe + purpose: GQLTransactionPurpose + /** Recipient of transaction. */ + recipient?: Maybe + /** Sender of transaction. */ + sender?: Maybe + state: GQLTransactionState + /** Related target article or transaction. */ + target?: Maybe } -export interface GQLTransactionConnection extends GQLConnection { - totalCount: number +export type GQLTransactionConnection = GQLConnection & { + __typename?: 'TransactionConnection' + edges?: Maybe> pageInfo: GQLPageInfo - edges?: Array + totalCount: Scalars['Int']['output'] } -export interface GQLTransactionEdge { - cursor: string +export type GQLTransactionCurrency = 'HKD' | 'LIKE' | 'USDT' + +export type GQLTransactionEdge = { + __typename?: 'TransactionEdge' + cursor: Scalars['String']['output'] node: GQLTransaction } -export interface GQLTransaction { - id: string - state: GQLTransactionState - purpose: GQLTransactionPurpose - amount: number - fee: number - currency: GQLTransactionCurrency - - /** - * Timestamp of transaction. - */ - createdAt: GQLDateTime - - /** - * Recipient of transaction. - */ - recipient?: GQLUser - - /** - * Sender of transaction. - */ - sender?: GQLUser +export type GQLTransactionNotice = GQLNotice & { + __typename?: 'TransactionNotice' + /** List of notice actors. */ + actors?: Maybe> + /** Time of this notice was created. */ + createdAt: Scalars['DateTime']['output'] + /** Unique ID of this notice. */ + id: Scalars['ID']['output'] + target: GQLTransaction + type: GQLTransactionNoticeType + /** The value determines if the notice is unread or not. */ + unread: Scalars['Boolean']['output'] +} - /** - * Related target article or transaction. - */ - target?: GQLTransactionTarget +export type GQLTransactionNoticeType = 'PaymentReceivedDonation' - /** - * Message for end user, including reason of failure. - */ - message?: string +export type GQLTransactionPurpose = + | 'addCredit' + | 'dispute' + | 'donation' + | 'payout' + | 'payoutReversal' + | 'refund' + | 'subscriptionSplit' - /** - * blockchain transaction info of USDT payment transaction - */ - blockchainTx?: GQLBlockchainTransaction -} +export type GQLTransactionState = + | 'canceled' + | 'failed' + | 'pending' + | 'succeeded' export type GQLTransactionTarget = GQLArticle | GQLCircle | GQLTransaction -/** Use this to resolve union type TransactionTarget */ -export type GQLPossibleTransactionTargetTypeNames = - | 'Article' - | 'Circle' - | 'Transaction' - -export interface GQLTransactionTargetNameMap { - TransactionTarget: GQLTransactionTarget - Article: GQLArticle - Circle: GQLCircle - Transaction: GQLTransaction +export type GQLTransactionsArgs = { + after?: InputMaybe + filter?: InputMaybe + first?: InputMaybe + /** deprecated, use TransactionsFilter.id instead. */ + id?: InputMaybe + /** deprecated, use TransactionsFilter.states instead. */ + states?: InputMaybe> } -export interface GQLBlockchainTransaction { - chain: GQLChain - txHash: string +export type GQLTransactionsFilter = { + currency?: InputMaybe + id?: InputMaybe + purpose?: InputMaybe + states?: InputMaybe> } -export const enum GQLChain { - Polygon = 'Polygon', +export type GQLTransactionsReceivedByArgs = { + after?: InputMaybe + first?: InputMaybe + purpose: GQLTransactionPurpose + senderId?: InputMaybe } -export interface GQLStripeAccount { - id: string - loginUrl: string +export type GQLTranslatedAnnouncement = { + __typename?: 'TranslatedAnnouncement' + content?: Maybe + cover?: Maybe + language: GQLUserLanguage + link?: Maybe + title?: Maybe } -export interface GQLRelatedDonationArticlesInput { - after?: string - first?: GQLfirst_Int_min_0 - oss?: boolean - - /** - * index of article list, min: 0, max: 49 - */ - random?: GQLrandom_Int_min_0_max_49 +export type GQLTranslatedAnnouncementInput = { + content?: InputMaybe + cover?: InputMaybe + language: GQLUserLanguage + link?: InputMaybe + title?: InputMaybe } -export interface GQLTranslationArgs { +export type GQLTranslationArgs = { language: GQLUserLanguage } -export interface GQLArticleTranslation { - title?: string - content?: string - summary?: string - language?: string +export type GQLUnbindLikerIdInput = { + id: Scalars['ID']['input'] + likerId: Scalars['String']['input'] } -export interface GQLTransactionsReceivedByArgs { - after?: string - first?: GQLfirst_Int_min_0 - purpose: GQLTransactionPurpose - senderId?: string +export type GQLUnpinCommentInput = { + id: Scalars['ID']['input'] } -export interface GQLArticleAccess { - type: GQLArticleAccessType - secret?: string - circle?: GQLCircle +export type GQLUnsubscribeCircleInput = { + /** Unique ID. */ + id: Scalars['ID']['input'] } -export interface GQLArticleOSS { - boost: number - score: number - inRecommendIcymi: boolean - inRecommendHottest: boolean - inRecommendNewest: boolean +export type GQLUnvoteCommentInput = { + id: Scalars['ID']['input'] } -export interface GQLFeaturedCommentsInput { - sort?: GQLCommentSort - after?: string - first?: GQLfirst_Int_min_0 +export type GQLUpdateArticleSensitiveInput = { + id: Scalars['ID']['input'] + sensitive: Scalars['Boolean']['input'] } -export interface GQLResponsesInput { - sort?: GQLResponseSort - after?: string - before?: string - includeAfter?: boolean - includeBefore?: boolean - first?: GQLfirst_Int_min_0 - articleOnly?: boolean +export type GQLUpdateArticleStateInput = { + id: Scalars['ID']['input'] + state: GQLArticleState } -/** - * Enums for sorting responses. - */ -export const enum GQLResponseSort { - oldest = 'oldest', - newest = 'newest', +export type GQLUpdateArticlesTagsInput = { + articles?: InputMaybe> + id: Scalars['ID']['input'] + isSelected: Scalars['Boolean']['input'] } -export interface GQLResponseConnection extends GQLConnection { - totalCount: number - pageInfo: GQLPageInfo - edges?: Array +export type GQLUpdateCommentsStateInput = { + ids: Array + state: GQLCommentState } -export interface GQLResponseEdge { - cursor: string - node: GQLResponse +export type GQLUpdateNotificationSettingInput = { + enabled: Scalars['Boolean']['input'] + type: GQLNotificationSettingType } -export type GQLResponse = GQLArticle | GQLComment +export type GQLUpdateTagSettingInput = { + editors?: InputMaybe> + id: Scalars['ID']['input'] + type: GQLUpdateTagSettingType +} -/** Use this to resolve union type Response */ -export type GQLPossibleResponseTypeNames = 'Article' | 'Comment' +export type GQLUpdateTagSettingType = + | 'add_editor' + | 'adopt' + | 'leave' + | 'leave_editor' + | 'remove_editor' -export interface GQLResponseNameMap { - Response: GQLResponse - Article: GQLArticle - Comment: GQLComment +export type GQLUpdateUserExtraInput = { + id: Scalars['ID']['input'] + referralCode?: InputMaybe } -export interface GQLCircleInput { - /** - * Slugified name of a Circle. - */ - name: string +export type GQLUpdateUserInfoInput = { + agreeOn?: InputMaybe + avatar?: InputMaybe + description?: InputMaybe + displayName?: InputMaybe + language?: InputMaybe + paymentPassword?: InputMaybe + paymentPointer?: InputMaybe + profileCover?: InputMaybe + referralCode?: InputMaybe + /** @deprecated use 'setUserName' instead */ + userName?: InputMaybe } -export interface GQLNodeInput { - id: string +export type GQLUpdateUserRoleInput = { + id: Scalars['ID']['input'] + role: GQLUserRole } -export interface GQLNodesInput { - ids: Array +export type GQLUpdateUserStateInput = { + banDays?: InputMaybe + emails?: InputMaybe> + id?: InputMaybe + password?: InputMaybe + state: GQLUserState } -export interface GQLFrequentSearchInput { - key?: string - first?: GQLfirst_Int_min_0 +export type GQLUser = GQLNode & { + __typename?: 'User' + /** Record of user activity, only accessable by current user. */ + activity: GQLUserActivity + /** user data analytics, only accessable by current user. */ + analytics: GQLUserAnalytics + /** Articles authored by current user. */ + articles: GQLArticleConnection + /** URL for user avatar. */ + avatar?: Maybe + /** Users that blocked by current user. */ + blockList: GQLUserConnection + /** collections authored by current user. */ + collections: GQLCollectionConnection + /** Articles current user commented on */ + commentedArticles: GQLArticleConnection + /** Display name on user profile, can be duplicated. */ + displayName?: Maybe + /** Drafts authored by current user. */ + drafts: GQLDraftConnection + /** Followers of this user. */ + followers: GQLUserConnection + /** Following contents of this user. */ + following: GQLFollowing + /** Global id of an user. */ + id: Scalars['ID']['output'] + /** User information. */ + info: GQLUserInfo + /** Whether current user is blocked by viewer. */ + isBlocked: Scalars['Boolean']['output'] + /** Whether current user is blocking viewer. */ + isBlocking: Scalars['Boolean']['output'] + /** Whether viewer is following current user. */ + isFollowee: Scalars['Boolean']['output'] + /** Whether current user is following viewer. */ + isFollower: Scalars['Boolean']['output'] + /** user latest articles or collections */ + latestWorks: Array + /** Liker info of current user */ + liker: GQLLiker + /** LikerID of LikeCoin, being used by LikeCoin OAuth */ + likerId?: Maybe + /** Tags owned and maintained by current user. */ + maintainedTags: GQLTagConnection + notices: GQLNoticeConnection + oss: GQLUserOss + /** Circles belong to current user. */ + ownCircles?: Maybe> + /** Payment pointer that resolves to Open Payments endpoints */ + paymentPointer?: Maybe + /** Tags pinned by current user. */ + pinnedTags: GQLTagConnection + /** user pinned articles or collections */ + pinnedWorks: Array + /** Article recommendations for current user. */ + recommendation: GQLRecommendation + remark?: Maybe + /** User settings. */ + settings: GQLUserSettings + /** Status of current user. */ + status?: Maybe + /** Circles whiches user has subscribed. */ + subscribedCircles: GQLCircleConnection + /** Artilces current user subscribed to. */ + subscriptions: GQLArticleConnection + /** Tags by by usage order of current user. */ + tags: GQLTagConnection + /** Topics created by current user. */ + topics: GQLTopicConnection + /** Global unique user name of a user. */ + userName?: Maybe + /** User Wallet */ + wallet: GQLWallet } -export interface GQLSearchInput { - /** - * search keyword - */ - key: string - - /** - * types of search target - */ - type: GQLSearchTypes - after?: string - first?: GQLfirst_Int_min_0 - - /** - * extra query filter for searching - */ - filter?: GQLSearchFilter - - /** - * specific condition for rule data out - */ - exclude?: GQLSearchExclude - - /** - * should include tags used by author - */ - includeAuthorTags?: boolean - - /** - * whether this search operation should be recorded in search history - */ - record?: boolean - oss?: boolean - - /** - * use the api version; omit to use latest version - */ - version?: GQLSearchAPIVersion - coefficients?: string - quicksearch?: boolean +export type GQLUserArticlesArgs = { + input: GQLUserArticlesInput } -export const enum GQLSearchTypes { - Article = 'Article', - User = 'User', - Tag = 'Tag', +export type GQLUserBlockListArgs = { + input: GQLConnectionArgs } -export interface GQLSearchFilter { - authorId?: string +export type GQLUserCollectionsArgs = { + input: GQLConnectionArgs } -export const enum GQLSearchExclude { - blocked = 'blocked', +export type GQLUserCommentedArticlesArgs = { + input: GQLConnectionArgs } -export const enum GQLSearchAPIVersion { - v20230301 = 'v20230301', - v20221212 = 'v20221212', - v20221212prior = 'v20221212prior', +export type GQLUserDraftsArgs = { + input: GQLConnectionArgs } -export interface GQLSearchResultConnection extends GQLConnection { - totalCount: number - pageInfo: GQLPageInfo - edges?: Array +export type GQLUserFollowersArgs = { + input: GQLConnectionArgs } -export interface GQLSearchResultEdge { - cursor: string - node: GQLNode +export type GQLUserMaintainedTagsArgs = { + input: GQLConnectionArgs } -/** - * This type contains system-wise info and settings. - */ -export interface GQLOfficial { - /** - * Feature flag - */ - features: Array - - /** - * Announcements - */ - announcements?: Array +export type GQLUserNoticesArgs = { + input: GQLConnectionArgs } -export interface GQLFeature { - name: GQLFeatureName - enabled: boolean +export type GQLUserPinnedTagsArgs = { + input: GQLConnectionArgs } -export const enum GQLFeatureName { - add_credit = 'add_credit', - payment = 'payment', - payout = 'payout', - verify_appreciate = 'verify_appreciate', - fingerprint = 'fingerprint', - tag_adoption = 'tag_adoption', - circle_management = 'circle_management', - circle_interact = 'circle_interact', +export type GQLUserSubscribedCirclesArgs = { + input: GQLConnectionArgs } -export interface GQLAnnouncementsInput { - id?: string - visible?: boolean +export type GQLUserSubscriptionsArgs = { + input: GQLConnectionArgs } -export interface GQLAnnouncement { - id: string - title?: string - cover?: string - content?: string - link?: string - type: GQLAnnouncementType - visible: boolean - order: number - createdAt: GQLDateTime - updatedAt: GQLDateTime - translations?: Array +export type GQLUserTagsArgs = { + input: GQLConnectionArgs } -export const enum GQLAnnouncementType { - community = 'community', - product = 'product', - seminar = 'seminar', +export type GQLUserTopicsArgs = { + input: GQLTopicInput } -export interface GQLTranslatedAnnouncement { - language: GQLUserLanguage - title?: string - cover?: string - content?: string - link?: GQLlink_String_format_uri +export type GQLUserActivity = { + __typename?: 'UserActivity' + /** Appreciations current user received. */ + appreciationsReceived: GQLAppreciationConnection + /** Total number of appreciation current user received. */ + appreciationsReceivedTotal: Scalars['Int']['output'] + /** Appreciations current user gave. */ + appreciationsSent: GQLAppreciationConnection + /** Total number of appreciation current user gave. */ + appreciationsSentTotal: Scalars['Int']['output'] + /** User reading history. */ + history: GQLReadHistoryConnection + /** User search history. */ + recentSearches: GQLRecentSearchConnection } -export type GQLlink_String_format_uri = any - -export interface GQLOSS { - users: GQLUserConnection - comments: GQLCommentConnection - articles: GQLArticleConnection - tags: GQLTagConnection - oauthClients: GQLOAuthClientConnection - skippedListItems: GQLSkippedListItemsConnection - seedingUsers: GQLUserConnection - badgedUsers: GQLUserConnection - restrictedUsers: GQLUserConnection +export type GQLUserActivityAppreciationsReceivedArgs = { + input: GQLConnectionArgs } -export interface GQLTagsInput { - after?: string - first?: GQLfirst_Int_min_0 - sort?: GQLTagsSort +export type GQLUserActivityAppreciationsSentArgs = { + input: GQLConnectionArgs } -/** - * Enums for sorting tags. - */ -export const enum GQLTagsSort { - newest = 'newest', - oldest = 'oldest', - hottest = 'hottest', +export type GQLUserActivityHistoryArgs = { + input: GQLConnectionArgs } -export interface GQLOAuthClientConnection extends GQLConnection { - totalCount: number - pageInfo: GQLPageInfo - edges?: Array +export type GQLUserActivityRecentSearchesArgs = { + input: GQLConnectionArgs } -export interface GQLOAuthClientEdge { - cursor: string - node: GQLOAuthClient +export type GQLUserAddArticleTagActivity = { + __typename?: 'UserAddArticleTagActivity' + actor: GQLUser + createdAt: Scalars['DateTime']['output'] + /** Article added to tag */ + node: GQLArticle + /** Tag added by article */ + target: GQLTag } -export interface GQLOAuthClient { - /** - * Unique Client ID of this OAuth Client. - */ - id: string - - /** - * App name - */ - name: string - - /** - * App Description - */ - description?: string - - /** - * URL for oauth client's official website - */ - website?: string - - /** - * Scopes - */ - scope?: Array - - /** - * URL for oauth client's avatar. - */ - avatar?: string - - /** - * Client secret - */ - secret: string - - /** - * Redirect URIs - */ - redirectURIs?: Array - - /** - * Grant Types - */ - grantTypes?: Array - - /** - * Linked Developer Account - */ - user?: GQLUser - - /** - * Creation Date - */ - createdAt: GQLDateTime +export type GQLUserAnalytics = { + __typename?: 'UserAnalytics' + /** Top donators of current user. */ + topDonators: GQLTopDonatorConnection } -export const enum GQLGrantType { - authorization_code = 'authorization_code', - refresh_token = 'refresh_token', +export type GQLUserAnalyticsTopDonatorsArgs = { + input: GQLTopDonatorInput } -export interface GQLSkippedListItemsInput { - after?: string - first?: GQLfirst_Int_min_0 - type?: GQLSkippedListItemType +export type GQLUserArticlesFilter = { + state?: InputMaybe } -export const enum GQLSkippedListItemType { - agent_hash = 'agent_hash', - email = 'email', - domain = 'domain', +export type GQLUserArticlesInput = { + after?: InputMaybe + filter?: InputMaybe + first?: InputMaybe + sort?: InputMaybe } -export interface GQLSkippedListItemsConnection extends GQLConnection { - totalCount: number - pageInfo: GQLPageInfo - edges?: Array -} +export type GQLUserArticlesSort = + | 'mostAppreciations' + | 'mostComments' + | 'mostDonations' + | 'mostReaders' + | 'newest' -export interface GQLSkippedListItemEdge { - cursor: string - node?: GQLSkippedListItem +export type GQLUserBroadcastCircleActivity = { + __typename?: 'UserBroadcastCircleActivity' + actor: GQLUser + createdAt: Scalars['DateTime']['output'] + /** Comment broadcast by actor */ + node: GQLComment + /** Circle that comment belongs to */ + target: GQLCircle } -export interface GQLSkippedListItem { - id: string - uuid: string - type: GQLSkippedListItemType - value: string - archived: boolean - createdAt: GQLDateTime - updatedAt: GQLDateTime +export type GQLUserConnection = GQLConnection & { + __typename?: 'UserConnection' + edges?: Maybe> + pageInfo: GQLPageInfo + totalCount: Scalars['Int']['output'] } -export interface GQLBadgedUsersInput { - after?: string - first?: GQLfirst_Int_min_0 - type?: GQLBadgeType +export type GQLUserCreateCircleActivity = { + __typename?: 'UserCreateCircleActivity' + actor: GQLUser + createdAt: Scalars['DateTime']['output'] + /** Circle created by actor */ + node: GQLCircle } -export interface GQLUserInput { - userName?: string - ethAddress?: string +export type GQLUserEdge = { + __typename?: 'UserEdge' + cursor: Scalars['String']['output'] + node: GQLUser } -export interface GQLExchangeRatesInput { - from?: GQLTransactionCurrency - to?: GQLQuoteCurrency +export type GQLUserGroup = 'a' | 'b' + +export type GQLUserInfo = { + __typename?: 'UserInfo' + /** Timestamp of user agreement. */ + agreeOn?: Maybe + /** User badges. */ + badges?: Maybe> + /** Timestamp of registration. */ + createdAt?: Maybe + /** Connected wallet. */ + cryptoWallet?: Maybe + /** User desciption. */ + description?: Maybe + /** User email. */ + email?: Maybe + /** Weather user email is verified. */ + emailVerified: Scalars['Boolean']['output'] + /** Login address */ + ethAddress?: Maybe + /** saved tags for showing on profile page, API allows up to 100, front-end lock'ed at lower limit */ + featuredTags?: Maybe> + /** Type of group. */ + group: GQLUserGroup + /** the ipnsKey (`ipfs.io/ipns//...`) for feed.json / rss.xml / index */ + ipnsKey?: Maybe + isWalletAuth: Scalars['Boolean']['output'] + /** Cover of profile page. */ + profileCover?: Maybe + /** User connected social accounts. */ + socialAccounts: Array + /** Is user name editable. */ + userNameEditable: Scalars['Boolean']['output'] +} + +export type GQLUserInfoFields = + | 'agreeOn' + | 'avatar' + | 'description' + | 'displayName' + | 'email' + +export type GQLUserInput = { + ethAddress?: InputMaybe + userName?: InputMaybe + /** used for case insensitive username search */ + userNameCaseIgnore?: InputMaybe +} + +export type GQLUserLanguage = 'en' | 'zh_hans' | 'zh_hant' + +export type GQLUserLoginInput = { + email: Scalars['String']['input'] + password: Scalars['String']['input'] +} + +export type GQLUserNotice = GQLNotice & { + __typename?: 'UserNotice' + /** List of notice actors. */ + actors?: Maybe> + /** Time of this notice was created. */ + createdAt: Scalars['DateTime']['output'] + /** Unique ID of this notice. */ + id: Scalars['ID']['output'] + target: GQLUser + type: GQLUserNoticeType + /** The value determines if the notice is unread or not. */ + unread: Scalars['Boolean']['output'] } -export interface GQLExchangeRate { - from: GQLTransactionCurrency - to: GQLQuoteCurrency - rate: number +export type GQLUserNoticeType = 'UserNewFollower' - /** - * Last updated time from currency convertor APIs - */ - updatedAt: GQLDateTime +export type GQLUserOss = { + __typename?: 'UserOSS' + boost: Scalars['Float']['output'] + restrictions: Array + score: Scalars['Float']['output'] } -export interface GQLOAuthClientInput { - id: string +export type GQLUserPublishArticleActivity = { + __typename?: 'UserPublishArticleActivity' + actor: GQLUser + createdAt: Scalars['DateTime']['output'] + /** Article published by actor */ + node: GQLArticle } -export interface GQLMutation { - /** - * Publish an article onto IPFS. - */ - publishArticle: GQLDraft - - /** - * Edit an article. - */ - editArticle: GQLArticle - - /** - * Subscribe or Unsubscribe article - */ - toggleSubscribeArticle: GQLArticle - - /** - * Appreciate an article. - */ - appreciateArticle: GQLArticle - - /** - * Read an article. - */ - readArticle: GQLArticle +export type GQLUserRecommendationActivity = { + __typename?: 'UserRecommendationActivity' + /** Recommended users */ + nodes?: Maybe> + /** The source type of recommendation */ + source?: Maybe +} - /** - * Create a Topic when no id is given, update fields when id is given. Throw error if no id & no title. - */ - putTopic: GQLTopic +export type GQLUserRecommendationActivitySource = 'UserFollowing' - /** - * Create a Chapter when no id is given, update fields when id is given. Throw - * error if no id & no title, or no id & no topic. - */ - putChapter: GQLChapter +export type GQLUserRegisterInput = { + codeId: Scalars['ID']['input'] + description?: InputMaybe + displayName: Scalars['String']['input'] + email: Scalars['String']['input'] + password: Scalars['String']['input'] + referralCode?: InputMaybe + userName?: InputMaybe +} - /** - * Delete topics - */ - deleteTopics: boolean +export type GQLUserRestriction = { + __typename?: 'UserRestriction' + createdAt: Scalars['DateTime']['output'] + type: GQLUserRestrictionType +} - /** - * Sort topics - */ - sortTopics: Array +export type GQLUserRestrictionType = 'articleHottest' | 'articleNewest' - /** - * Follow or unfollow tag. - */ - toggleFollowTag: GQLTag +export type GQLUserRole = 'admin' | 'user' - /** - * pin or unpin tag. - */ - togglePinTag: GQLTag +export type GQLUserSettings = { + __typename?: 'UserSettings' + /** User currency preference. */ + currency: GQLQuoteCurrency + /** User language setting. */ + language: GQLUserLanguage + /** Notification settings. */ + notification?: Maybe +} + +export type GQLUserState = 'active' | 'archived' | 'banned' | 'frozen' + +export type GQLUserStatus = { + __typename?: 'UserStatus' + /** Number of articles published by user */ + articleCount: Scalars['Int']['output'] + /** Number of chances for the user to change email in a nature day. Reset in UTC+8 0:00 */ + changeEmailTimesLeft: Scalars['Int']['output'] + /** Number of comments posted by user. */ + commentCount: Scalars['Int']['output'] + /** Number of articles donated by user */ + donatedArticleCount: Scalars['Int']['output'] + /** Weather login password is set for email login. */ + hasEmailLoginPassword: Scalars['Boolean']['output'] + /** Whether user already set payment password. */ + hasPaymentPassword: Scalars['Boolean']['output'] + /** Number of times of donations received by user */ + receivedDonationCount: Scalars['Int']['output'] + /** User role and access level. */ + role: GQLUserRole + /** User state. */ + state: GQLUserState + /** Number of referred user registration count (in Digital Nomad Campaign). */ + totalReferredCount: Scalars['Int']['output'] + /** Number of total written words. */ + totalWordCount: Scalars['Int']['output'] + /** Whether there are unread activities from following. */ + unreadFollowing: Scalars['Boolean']['output'] + /** Number of unread notices. */ + unreadNoticeCount: Scalars['Int']['output'] +} + +export type GQLVerificationCodeType = + | 'email_otp' + | 'email_reset' + | 'email_reset_confirm' + | 'email_verify' + | 'password_reset' + | 'payment_password_reset' + | 'register' + +export type GQLVerifyEmailInput = { + code: Scalars['String']['input'] + email: Scalars['String']['input'] +} + +/** Enums for vote types. */ +export type GQLVote = 'down' | 'up' + +export type GQLVoteCommentInput = { + id: Scalars['ID']['input'] + vote: GQLVote +} - /** - * Create or update tag. - */ - putTag: GQLTag +export type GQLWallet = { + __typename?: 'Wallet' + balance: GQLBalance + /** The last four digits of the card. */ + cardLast4?: Maybe + /** URL of Stripe Dashboard to manage subscription invoice and payment method */ + customerPortal?: Maybe + /** Account of Stripe Connect to manage payout */ + stripeAccount?: Maybe + transactions: GQLTransactionConnection +} - /** - * Update member, permission and othters of a tag. - */ - updateTagSetting: GQLTag +export type GQLWalletTransactionsArgs = { + input: GQLTransactionsArgs +} +export type GQLWalletLoginInput = { /** - * Add one tag to articles. + * email verification code, required for wallet register + * @deprecated No longer in use */ - addArticlesTags: GQLTag - + codeId?: InputMaybe /** - * Update articles' tag. + * required for wallet register + * @deprecated No longer in use */ - updateArticlesTags: GQLTag + email?: InputMaybe + ethAddress: Scalars['String']['input'] + /** used in register */ + language?: InputMaybe + /** nonce from generateSigningMessage */ + nonce: Scalars['String']['input'] + referralCode?: InputMaybe + /** sign'ed by wallet */ + signature: Scalars['String']['input'] + /** the message being sign'ed, including nonce */ + signedMessage: Scalars['String']['input'] +} + +export type WithIndex = TObject & Record +export type ResolversObject = WithIndex + +export type ResolverTypeWrapper = Promise | T + +export type Resolver< + TResult, + TParent = {}, + TContext = {}, + TArgs = {} +> = ResolverFn + +export type ResolverFn = ( + parent: TParent, + args: TArgs, + context: TContext, + info: GraphQLResolveInfo +) => Promise | TResult + +export type SubscriptionSubscribeFn = ( + parent: TParent, + args: TArgs, + context: TContext, + info: GraphQLResolveInfo +) => AsyncIterable | Promise> + +export type SubscriptionResolveFn = ( + parent: TParent, + args: TArgs, + context: TContext, + info: GraphQLResolveInfo +) => TResult | Promise + +export interface SubscriptionSubscriberObject< + TResult, + TKey extends string, + TParent, + TContext, + TArgs +> { + subscribe: SubscriptionSubscribeFn< + { [key in TKey]: TResult }, + TParent, + TContext, + TArgs + > + resolve?: SubscriptionResolveFn< + TResult, + { [key in TKey]: TResult }, + TContext, + TArgs + > +} - /** - * Delete one tag from articles - */ - deleteArticlesTags: GQLTag - - /** - * ############# - * OSS # - * ############# - */ - toggleArticleRecommend: GQLArticle - updateArticleState: GQLArticle - toggleTagRecommend: GQLTag - deleteTags?: boolean - renameTag: GQLTag - mergeTags: GQLTag - - /** - * Create or update a Circle. - */ - putCircle: GQLCircle - - /** - * Follow or unfollow a Circle. - * @deprecated No longer in use - */ - toggleFollowCircle: GQLCircle - - /** - * Subscribe a Circle. - */ - subscribeCircle: GQLSubscribeCircleResult - - /** - * Unsubscribe a Circle. - */ - unsubscribeCircle: GQLCircle - - /** - * Add or remove Circle's articles - * @deprecated No longer in use - */ - putCircleArticles: GQLCircle - - /** - * Invite others to join circle - */ - invite?: Array - - /** - * Publish or update a comment. - */ - putComment: GQLComment - - /** - * Remove a comment. - */ - deleteComment: GQLComment - - /** - * Pin or Unpin a comment. - */ - togglePinComment: GQLComment - - /** - * Upvote or downvote a comment. - */ - voteComment: GQLComment - - /** - * Unvote a comment. - */ - unvoteComment: GQLComment - - /** - * Update a comments' state. - */ - updateCommentsState: Array - - /** - * Pin a comment. - */ - pinComment: GQLComment - - /** - * Unpin a comment. - */ - unpinComment: GQLComment - - /** - * Create or update a draft. - */ - putDraft: GQLDraft - - /** - * Remove a draft. - */ - deleteDraft?: boolean - - /** - * Mark all received notices as read. - */ - markAllNoticesAsRead?: boolean - - /** - * Upload a single file. - */ - singleFileUpload: GQLAsset - - /** - * Add specific user behavior record. - */ - logRecord?: boolean - - /** - * Add blocked search keyword to blocked_search_word db - */ - addBlockedSearchKeyword: GQLBlockedSearchKeyword - - /** - * Delete blocked search keywords from search_history db - */ - deleteBlockedSearchKeywords?: boolean - - /** - * ############# - * OSS # - * ############# - */ - setBoost: GQLNode - putRemark?: string - putSkippedListItem?: Array - setFeature: GQLFeature - toggleSeedingUsers: Array - putAnnouncement: GQLAnnouncement - deleteAnnouncements: boolean - putRestrictedUsers: Array - - /** - * Send verification code for email. - */ - sendVerificationCode?: boolean - - /** - * Confirm verification code from email. - */ - confirmVerificationCode: string - - /** - * Reset user or payment password. - */ - resetPassword?: boolean - - /** - * Change user email. - */ - changeEmail: GQLUser - - /** - * Set user currency preference. - */ - setCurrency: GQLUser - - /** - * Register user, can only be used on matters.news website. - */ - userRegister: GQLAuthResult - - /** - * Login user. - */ - userLogin: GQLAuthResult - - /** - * Get signing message. - */ - generateSigningMessage: GQLSigningMessageResult - - /** - * Login/Signup via a wallet. - */ - walletLogin: GQLAuthResult - - /** - * Reset crypto wallet. - */ - resetWallet: GQLUser - - /** - * Logout user. - */ - userLogout: boolean - - /** - * Generate or claim a Liker ID through LikeCoin - */ - generateLikerId: GQLUser - - /** - * Reset Liker ID - */ - resetLikerId: GQLUser - - /** - * Update user information. - */ - updateUserInfo: GQLUser - - /** - * Update user notification settings. - */ - updateNotificationSetting: GQLUser - - /** - * Follow or Unfollow current user. - */ - toggleFollowUser: GQLUser - - /** - * Block or Unblock a given user. - */ - toggleBlockUser: GQLUser - - /** - * Clear read history for user. - */ - clearReadHistory?: boolean - - /** - * Clear search history for user. - */ - clearSearchHistory?: boolean - - /** - * Migrate articles from other service provider. - */ - migration?: boolean - - /** - * Let Traveloggers owner claims a Logbook, returns transaction hash - */ - claimLogbooks: GQLClaimLogbooksResult - - /** - * update tags for showing on profile page - */ - putFeaturedTags?: Array - - /** - * Update state of a user, used in OSS. - */ - updateUserState?: Array - - /** - * Update state of a user, used in OSS. - */ - updateUserRole: GQLUser - - /** - * Update state of a user, used in OSS. - */ - refreshIPNSFeed: GQLUser - toggleUsersBadge: Array - unbindLikerId: GQLUser - - /** - * Add Credit to User Wallet - */ - addCredit: GQLAddCreditResult - - /** - * Pay to another user or article - */ - payTo: GQLPayToResult - - /** - * Payout to user - */ - payout: GQLTransaction - - /** - * Create Stripe Connect account for Payout - */ - connectStripeAccount: GQLConnectStripeAccountResult - - /** - * Create or Update an OAuth Client, used in OSS. - */ - putOAuthClient?: GQLOAuthClient -} - -export interface GQLPublishArticleInput { - id: string - - /** - * whether publish to ISCN - */ - iscnPublish?: boolean -} - -export interface GQLEditArticleInput { - id: string - state?: GQLArticleState - sticky?: boolean - summary?: string - tags?: Array - content?: string - cover?: string - collection?: Array - circle?: string - accessType?: GQLArticleAccessType - license?: GQLArticleLicenseType - requestForDonation?: GQLrequestForDonation_String_maxLength_140 - replyToDonator?: GQLreplyToDonator_String_maxLength_140 - - /** - * whether publish to ISCN - */ - iscnPublish?: boolean - - /** - * whether readers can comment - */ - canComment?: boolean -} - -export type GQLrequestForDonation_String_maxLength_140 = any - -export type GQLreplyToDonator_String_maxLength_140 = any - -/** - * Common input to toggle single item for `toggleXXX` mutations - */ -export interface GQLToggleItemInput { - id: string - enabled?: boolean -} - -export interface GQLAppreciateArticleInput { - id: string - amount: GQLamount_Int_NotNull_min_1 - token?: string - superLike?: boolean -} - -export type GQLamount_Int_NotNull_min_1 = any - -export interface GQLReadArticleInput { - id: string -} - -export interface GQLPutTopicInput { - id?: string - title?: string - description?: string - cover?: string - public?: boolean - articles?: Array - chapters?: Array -} - -export interface GQLPutChapterInput { - id?: string - title?: string - description?: string - topic?: string - articles?: Array -} - -export interface GQLDeleteTopicsInput { - ids: Array -} - -export interface GQLSortTopicsInput { - ids: Array -} - -export interface GQLPutTagInput { - id?: string - content?: string - cover?: string - description?: string -} - -export interface GQLUpdateTagSettingInput { - id: string - type: GQLUpdateTagSettingType - editors?: Array -} - -export const enum GQLUpdateTagSettingType { - adopt = 'adopt', - leave = 'leave', - add_editor = 'add_editor', - remove_editor = 'remove_editor', - leave_editor = 'leave_editor', -} - -export interface GQLAddArticlesTagsInput { - id: string - articles?: Array - selected?: boolean -} - -export interface GQLUpdateArticlesTagsInput { - id: string - articles?: Array - isSelected: boolean -} - -export interface GQLDeleteArticlesTagsInput { - id: string - articles?: Array -} - -export interface GQLToggleRecommendInput { - id: string - enabled: boolean - type?: GQLRecommendTypes -} - -/** - * Enums for types of recommend articles. - */ -export const enum GQLRecommendTypes { - icymi = 'icymi', - hottest = 'hottest', - newest = 'newest', -} - -export interface GQLUpdateArticleStateInput { - id: string - state: GQLArticleState -} - -export interface GQLDeleteTagsInput { - ids: Array -} - -export interface GQLRenameTagInput { - id: string - content: string -} - -export interface GQLMergeTagsInput { - ids: Array - content: string -} - -export interface GQLPutCircleInput { - /** - * Unique ID. - */ - id?: string - - /** - * Unique ID of a Circle's avatar. - */ - avatar?: string - - /** - * Unique ID of a Circle's cover. - */ - cover?: string - - /** - * Slugified name of a Circle. - */ - name?: string - - /** - * Human readable name of this Circle. - */ - displayName?: string - - /** - * A short description of this Circle. - */ - description?: string - - /** - * Circle's subscription fee. - */ - amount?: GQLamount_Float_exclusiveMin_0 -} - -export type GQLamount_Float_exclusiveMin_0 = any - -export interface GQLSubscribeCircleInput { - /** - * Unique ID. - */ - id: string - - /** - * Wallet password. - */ - password?: string -} - -export interface GQLSubscribeCircleResult { - circle: GQLCircle - - /** - * client secret for SetupIntent. - */ - client_secret?: string -} - -export interface GQLUnsubscribeCircleInput { - /** - * Unique ID. - */ - id: string -} - -export interface GQLPutCircleArticlesInput { - /** - * Circle ID - */ - id: string - - /** - * Article Ids - */ - articles?: Array - - /** - * Action Type - */ - type: GQLPutCircleArticlesType - - /** - * Access Type, `public` or `paywall` only. - */ - accessType: GQLArticleAccessType - license?: GQLArticleLicenseType -} - -export const enum GQLPutCircleArticlesType { - add = 'add', - remove = 'remove', -} - -export interface GQLInviteCircleInput { - invitees: Array - freePeriod: GQLfreePeriod_Int_NotNull_exclusiveMin_0 - circleId: string -} - -export interface GQLInviteCircleInvitee { - id?: string - email?: string -} - -export type GQLfreePeriod_Int_NotNull_exclusiveMin_0 = any - -export interface GQLPutCommentInput { - comment: GQLCommentInput - - /** - * edit comment if id is provided - */ - id?: string -} - -export interface GQLCommentInput { - content: string - replyTo?: string - parentId?: string - mentions?: Array - type: GQLCommentType - - /** - * one of the following ids is required - */ - articleId?: string - circleId?: string -} - -export interface GQLDeleteCommentInput { - id: string -} - -export interface GQLVoteCommentInput { - vote: GQLVote - id: string -} - -export interface GQLUnvoteCommentInput { - id: string -} - -export interface GQLUpdateCommentsStateInput { - ids: Array - state: GQLCommentState -} - -export interface GQLPinCommentInput { - id: string -} - -export interface GQLUnpinCommentInput { - id: string -} - -export interface GQLPutDraftInput { - id?: string - title?: string - summary?: string - content?: string - tags?: Array - cover?: string - collection?: Array - circle?: string - accessType?: GQLArticleAccessType - license?: GQLArticleLicenseType - requestForDonation?: GQLrequestForDonation_String_maxLength_140 - replyToDonator?: GQLreplyToDonator_String_maxLength_140 - - /** - * whether publish to ISCN - */ - iscnPublish?: boolean - - /** - * whether readers can comment - */ - canComment?: boolean -} - -export interface GQLDeleteDraftInput { - id: string -} - -export interface GQLSingleFileUploadInput { - type: GQLAssetType - file?: GQLUpload - url?: GQLurl_String_format_uri - entityType: GQLEntityType - entityId?: string -} - -export type GQLUpload = any - -export type GQLurl_String_format_uri = any - -export const enum GQLEntityType { - article = 'article', - draft = 'draft', - tag = 'tag', - user = 'user', - circle = 'circle', - announcement = 'announcement', - topic = 'topic', -} - -export interface GQLLogRecordInput { - type: GQLLogRecordTypes -} - -export const enum GQLLogRecordTypes { - ReadFolloweeArticles = 'ReadFolloweeArticles', - ReadFollowingFeed = 'ReadFollowingFeed', - ReadResponseInfoPopUp = 'ReadResponseInfoPopUp', -} - -export interface GQLKeywordInput { - keyword: string -} - -export interface GQLBlockedSearchKeyword { - /** - * Unique ID of bloked search keyword. - */ - id: string - - /** - * Types of this search keyword. - */ - searchKey: string - - /** - * Time of this search keyword was created. - */ - createdAt: GQLDateTime -} - -export interface GQLKeywordsInput { - keywords?: Array -} - -export interface GQLSetBoostInput { - id: string - boost: GQLboost_Float_NotNull_min_0 - type: GQLBoostTypes -} - -export type GQLboost_Float_NotNull_min_0 = any - -export const enum GQLBoostTypes { - Article = 'Article', - User = 'User', - Tag = 'Tag', -} - -export interface GQLPutRemarkInput { - id: string - remark: string - type: GQLRemarkTypes -} - -export const enum GQLRemarkTypes { - Article = 'Article', - User = 'User', - Tag = 'Tag', - Comment = 'Comment', - Report = 'Report', - Feedback = 'Feedback', -} - -export interface GQLPutSkippedListItemInput { - id?: string - type?: GQLSkippedListItemType - value?: string - archived?: boolean -} - -export interface GQLSetFeatureInput { - name: GQLFeatureName - flag: GQLFeatureFlag -} - -export const enum GQLFeatureFlag { - on = 'on', - off = 'off', - admin = 'admin', - seeding = 'seeding', -} - -export interface GQLToggleSeedingUsersInput { - ids?: Array - enabled: boolean -} - -export interface GQLPutAnnouncementInput { - id?: string - title?: string - cover?: string - content?: string - link?: GQLlink_String_format_uri - type?: GQLAnnouncementType - visible?: boolean - order?: number - translations?: Array -} - -export interface GQLTranslatedAnnouncementInput { - language: GQLUserLanguage - title?: string - cover?: string - content?: string - link?: GQLlink_String_format_uri -} - -export interface GQLDeleteAnnouncementsInput { - ids?: Array -} - -export interface GQLPutRestrictedUsersInput { - ids: Array - restrictions: Array -} - -export interface GQLSendVerificationCodeInput { - email: GQLemail_String_NotNull_format_email - type: GQLVerificationCodeType - token?: string - - /** - * Redirect URL embedded in the verification email, - * use code instead if not provided. - */ - redirectUrl?: GQLredirectUrl_String_format_uri -} - -export const enum GQLVerificationCodeType { - register = 'register', - email_reset = 'email_reset', - email_reset_confirm = 'email_reset_confirm', - password_reset = 'password_reset', - payment_password_reset = 'payment_password_reset', -} - -export type GQLredirectUrl_String_format_uri = any - -export interface GQLConfirmVerificationCodeInput { - email: GQLemail_String_NotNull_format_email - type: GQLVerificationCodeType - code: string -} - -export interface GQLResetPasswordInput { - password: string - codeId: string - type?: GQLResetPasswordType -} - -export const enum GQLResetPasswordType { - account = 'account', - payment = 'payment', -} - -export interface GQLChangeEmailInput { - oldEmail: GQLoldEmail_String_NotNull_format_email - oldEmailCodeId: string - newEmail: GQLnewEmail_String_NotNull_format_email - newEmailCodeId: string -} - -export type GQLoldEmail_String_NotNull_format_email = any - -export type GQLnewEmail_String_NotNull_format_email = any - -export interface GQLSetCurrencyInput { - currency?: GQLQuoteCurrency -} - -export interface GQLUserRegisterInput { - email: GQLemail_String_NotNull_format_email - userName?: string - displayName: string - password: string - description?: string - codeId: string -} - -export interface GQLAuthResult { - auth: boolean - token?: string - type: GQLAuthResultType - user?: GQLUser -} - -export const enum GQLAuthResultType { - Login = 'Login', - Signup = 'Signup', - LinkAccount = 'LinkAccount', -} - -export interface GQLUserLoginInput { - email: GQLemail_String_NotNull_format_email - password: string -} - -export interface GQLGenerateSigningMessageInput { - address: string - purpose?: GQLSigningMessagePurpose -} - -export const enum GQLSigningMessagePurpose { - airdrop = 'airdrop', - connect = 'connect', - signup = 'signup', - login = 'login', - claimLogbook = 'claimLogbook', -} - -export interface GQLSigningMessageResult { - nonce: string - purpose: GQLSigningMessagePurpose - signingMessage: string - createdAt: GQLDateTime - expiredAt: GQLDateTime -} - -export interface GQLWalletLoginInput { - ethAddress: string - - /** - * the message being sign'ed, including nonce - */ - signedMessage: string - - /** - * sign'ed by wallet - */ - signature: string - - /** - * nonce from generateSigningMessage - */ - nonce: string - - /** - * required for wallet register - */ - email?: GQLemail_String_format_email - - /** - * email verification code, required for wallet register - */ - codeId?: string -} - -export interface GQLResetWalletInput { - id: string -} - -export interface GQLResetLikerIdInput { - id: string -} - -export interface GQLUpdateUserInfoInput { - displayName?: string - userName?: string - avatar?: string - description?: string - language?: GQLUserLanguage - agreeOn?: boolean - profileCover?: string - paymentPassword?: string - paymentPointer?: string -} - -export interface GQLUpdateNotificationSettingInput { - type: GQLNotificationSettingType - enabled: boolean -} - -export const enum GQLNotificationSettingType { - enable = 'enable', - email = 'email', - mention = 'mention', - userNewFollower = 'userNewFollower', - articleNewComment = 'articleNewComment', - articleNewAppreciation = 'articleNewAppreciation', - articleNewSubscription = 'articleNewSubscription', - articleNewCollected = 'articleNewCollected', - articleSubscribedNewComment = 'articleSubscribedNewComment', - articleCommentPinned = 'articleCommentPinned', - - /** - * for circle owners - */ - circleNewSubscriber = 'circleNewSubscriber', - circleNewFollower = 'circleNewFollower', - circleNewUnsubscriber = 'circleNewUnsubscriber', - circleNewDiscussion = 'circleNewDiscussion', - circleMemberBroadcast = 'circleMemberBroadcast', - circleMemberNewDiscussion = 'circleMemberNewDiscussion', - circleMemberNewDiscussionReply = 'circleMemberNewDiscussionReply', - circleMemberNewBroadcastReply = 'circleMemberNewBroadcastReply', - - /** - * for circle members - */ - inCircleNewArticle = 'inCircleNewArticle', - inCircleNewBroadcast = 'inCircleNewBroadcast', - inCircleNewBroadcastReply = 'inCircleNewBroadcastReply', - inCircleNewDiscussion = 'inCircleNewDiscussion', - inCircleNewDiscussionReply = 'inCircleNewDiscussionReply', -} - -export interface GQLClearReadHistoryInput { - id: string -} - -export interface GQLMigrationInput { - type?: GQLMigrationType - files: Array -} - -export const enum GQLMigrationType { - medium = 'medium', -} - -export interface GQLClaimLogbooksInput { - ethAddress: string - - /** - * the message being sign'ed, including nonce - */ - signedMessage: string - - /** - * sign'ed by wallet - */ - signature: string - - /** - * nonce from generateSigningMessage - */ - nonce: string -} - -export interface GQLClaimLogbooksResult { - /** - * claimed token ids - */ - ids?: Array - - /** - * transaction hash - */ - txHash: string -} - -export interface GQLFeaturedTagsInput { - /** - * tagIds - */ - ids: Array -} - -export interface GQLUpdateUserStateInput { - id?: string - emails?: Array - state: GQLUserState - banDays?: GQLbanDays_Int_exclusiveMin_0 - password?: string -} - -export type GQLbanDays_Int_exclusiveMin_0 = any - -export interface GQLUpdateUserRoleInput { - id: string - role: GQLUserRole -} - -export interface GQLRefreshIPNSFeedInput { - userName: string - - /** - * refresh how many recent articles, default to 50 - */ - numArticles?: number -} - -export interface GQLToggleUsersBadgeInput { - ids?: Array - type: GQLBadgeType - enabled: boolean -} - -export interface GQLUnbindLikerIdInput { - id: string - likerId: string -} - -/** - * Add Credit - */ -export interface GQLAddCreditInput { - amount: GQLamount_Float_NotNull_exclusiveMin_0 -} - -export type GQLamount_Float_NotNull_exclusiveMin_0 = any - -export interface GQLAddCreditResult { - transaction: GQLTransaction - - /** - * The client secret of this PaymentIntent. - */ - client_secret: string -} - -export interface GQLPayToInput { - amount: GQLamount_Float_NotNull_exclusiveMin_0 - currency: GQLTransactionCurrency - purpose: GQLTransactionPurpose - recipientId: string - targetId?: string - - /** - * for HKD payment - */ - password?: string - - /** - * for USDT payment - */ - chain?: GQLChain - txHash?: string -} - -export interface GQLPayToResult { - transaction: GQLTransaction - - /** - * Only available when paying with LIKE. - */ - redirectUrl?: string -} - -export interface GQLPayoutInput { - amount: GQLamount_Float_NotNull_exclusiveMin_0 - password: string -} - -/** - * Stripe Account - */ -export interface GQLConnectStripeAccountInput { - country: GQLStripeAccountCountry -} - -export const enum GQLStripeAccountCountry { - Australia = 'Australia', - Austria = 'Austria', - Belgium = 'Belgium', - Bulgaria = 'Bulgaria', - Canada = 'Canada', - Cyprus = 'Cyprus', - Denmark = 'Denmark', - Estonia = 'Estonia', - Finland = 'Finland', - France = 'France', - Germany = 'Germany', - Greece = 'Greece', - HongKong = 'HongKong', - Ireland = 'Ireland', - Italy = 'Italy', - Latvia = 'Latvia', - Lithuania = 'Lithuania', - Luxembourg = 'Luxembourg', - Malta = 'Malta', - Netherlands = 'Netherlands', - NewZealand = 'NewZealand', - Norway = 'Norway', - Poland = 'Poland', - Portugal = 'Portugal', - Romania = 'Romania', - Singapore = 'Singapore', - Slovakia = 'Slovakia', - Slovenia = 'Slovenia', - Spain = 'Spain', - Sweden = 'Sweden', - UnitedKingdom = 'UnitedKingdom', - UnitedStates = 'UnitedStates', -} - -export interface GQLConnectStripeAccountResult { - redirectUrl: string -} - -export interface GQLPutOAuthClientInput { - id?: string - name?: string - description?: string - website?: GQLwebsite_String_format_uri - scope?: Array - avatar?: string - secret?: string - redirectURIs?: Array - grantTypes?: Array - user?: string -} - -export type GQLwebsite_String_format_uri = any - -export interface GQLArticleArticleNotice extends GQLNotice { - /** - * Unique ID of this notice. - */ - id: string - - /** - * The value determines if the notice is unread or not. - */ - unread: boolean - - /** - * Time of this notice was created. - */ - createdAt: GQLDateTime - - /** - * List of notice actors. - */ - actors?: Array - type: GQLArticleArticleNoticeType - target: GQLArticle - article: GQLArticle -} - -export const enum GQLArticleArticleNoticeType { - ArticleNewCollected = 'ArticleNewCollected', -} - -/** - * ################################ - * # - * Article # - * # - * ################################ - */ -export interface GQLArticleNotice extends GQLNotice { - /** - * Unique ID of this notice. - */ - id: string - - /** - * The value determines if the notice is unread or not. - */ - unread: boolean - - /** - * Time of this notice was created. - */ - createdAt: GQLDateTime - - /** - * List of notice actors. - */ - actors?: Array - type: GQLArticleNoticeType - target: GQLArticle -} - -export const enum GQLArticleNoticeType { - ArticlePublished = 'ArticlePublished', - ArticleMentionedYou = 'ArticleMentionedYou', - ArticleNewSubscriber = 'ArticleNewSubscriber', - ArticleNewAppreciation = 'ArticleNewAppreciation', - RevisedArticlePublished = 'RevisedArticlePublished', - RevisedArticleNotPublished = 'RevisedArticleNotPublished', - CircleNewArticle = 'CircleNewArticle', -} - -/** - * ################################ - * # - * Tag # - * # - * ################################ - */ -export interface GQLArticleTagNotice extends GQLNotice { - /** - * Unique ID of this notice. - */ - id: string - - /** - * The value determines if the notice is unread or not. - */ - unread: boolean - - /** - * Time of this notice was created. - */ - createdAt: GQLDateTime - - /** - * List of notice actors. - */ - actors?: Array - type: GQLArticleTagNoticeType - target: GQLArticle - tag: GQLTag -} - -export const enum GQLArticleTagNoticeType { - ArticleTagAdded = 'ArticleTagAdded', - ArticleTagRemoved = 'ArticleTagRemoved', - - /** - * - * @deprecated No longer in use - */ - ArticleTagUnselected = 'ArticleTagUnselected', -} - -/** - * ################### - * Directives # - * ################### - */ -export const enum GQLCacheControlScope { - PUBLIC = 'PUBLIC', - PRIVATE = 'PRIVATE', -} - -/** - * ################################ - * # - * Circle # - * # - * ################################ - */ -export interface GQLCircleNotice extends GQLNotice { - /** - * Unique ID of this notice. - */ - id: string - - /** - * The value determines if the notice is unread or not. - */ - unread: boolean - - /** - * Time of this notice was created. - */ - createdAt: GQLDateTime - - /** - * List of notice actors. - */ - actors?: Array - type: GQLCircleNoticeType - target: GQLCircle - - /** - * Optional discussion/broadcast comments for bundled notices - */ - comments?: Array - - /** - * Optional discussion/broadcast replies for bundled notices - */ - replies?: Array - - /** - * Optional mention comments for bundled notices - */ - mentions?: Array -} - -export const enum GQLCircleNoticeType { - CircleInvitation = 'CircleInvitation', - CircleNewSubscriber = 'CircleNewSubscriber', - CircleNewFollower = 'CircleNewFollower', - CircleNewUnsubscriber = 'CircleNewUnsubscriber', - CircleNewBroadcastComments = 'CircleNewBroadcastComments', - CircleNewDiscussionComments = 'CircleNewDiscussionComments', -} - -export interface GQLCommentCommentNotice extends GQLNotice { - /** - * Unique ID of this notice. - */ - id: string - - /** - * The value determines if the notice is unread or not. - */ - unread: boolean - - /** - * Time of this notice was created. - */ - createdAt: GQLDateTime - - /** - * List of notice actors. - */ - actors?: Array - type: GQLCommentCommentNoticeType - target: GQLComment - comment: GQLComment -} - -export const enum GQLCommentCommentNoticeType { - CommentNewReply = 'CommentNewReply', -} - -/** - * ################################ - * # - * Comment # - * # - * ################################ - */ -export interface GQLCommentNotice extends GQLNotice { - /** - * Unique ID of this notice. - */ - id: string - - /** - * The value determines if the notice is unread or not. - */ - unread: boolean - - /** - * Time of this notice was created. - */ - createdAt: GQLDateTime - - /** - * List of notice actors. - */ - actors?: Array - type: GQLCommentNoticeType - target: GQLComment -} - -export const enum GQLCommentNoticeType { - CommentPinned = 'CommentPinned', - CommentMentionedYou = 'CommentMentionedYou', - ArticleNewComment = 'ArticleNewComment', - SubscribedArticleNewComment = 'SubscribedArticleNewComment', - CircleNewBroadcast = 'CircleNewBroadcast', -} - -export interface GQLCostComplexity { - min?: number - max?: number -} - -/** - * ################################ - * # - * Crypto # - * # - * ################################ - */ -export interface GQLCryptoNotice extends GQLNotice { - /** - * Unique ID of this notice. - */ - id: string - - /** - * The value determines if the notice is unread or not. - */ - unread: boolean - - /** - * Time of this notice was created. - */ - createdAt: GQLDateTime - - /** - * List of notice actors. - */ - actors?: Array - type: GQLCryptoNoticeType - target: GQLCryptoWallet -} - -export const enum GQLCryptoNoticeType { - CryptoWalletAirdrop = 'CryptoWalletAirdrop', - CryptoWalletConnected = 'CryptoWalletConnected', -} - -export const enum GQLCryptoWalletSignaturePurpose { - airdrop = 'airdrop', - connect = 'connect', - signup = 'signup', - login = 'login', -} - -/** - * The notice type contains info about official announcement. - */ -export interface GQLOfficialAnnouncementNotice extends GQLNotice { - /** - * Unique ID of this notice. - */ - id: string - - /** - * The value determines if the notice is unread or not. - */ - unread: boolean - - /** - * Time of this notice was created. - */ - createdAt: GQLDateTime - - /** - * The message content. - */ - message: string - - /** - * The link to a specific page if provided. - */ - link?: string -} - -/** - * Enums for user roles. - */ -export const enum GQLRole { - vistor = 'vistor', - user = 'user', - admin = 'admin', -} - -export interface GQLTagNotice extends GQLNotice { - /** - * Unique ID of this notice. - */ - id: string - - /** - * The value determines if the notice is unread or not. - */ - unread: boolean - - /** - * Time of this notice was created. - */ - createdAt: GQLDateTime - - /** - * List of notice actors. - */ - actors?: Array - type: GQLTagNoticeType - target: GQLTag -} - -export const enum GQLTagNoticeType { - TagAdoption = 'TagAdoption', - TagLeave = 'TagLeave', - TagAddEditor = 'TagAddEditor', - TagLeaveEditor = 'TagLeaveEditor', -} - -export interface GQLToggleCircleMemberInput { - /** - * Unique ID. - */ - id: string - - /** - * Toggle value. - */ - enabled: boolean - - /** - * Unique ID of target user. - */ - targetId: string -} - -/** - * ################################ - * # - * Transaction # - * # - * ################################ - */ -export interface GQLTransactionNotice extends GQLNotice { - /** - * Unique ID of this notice. - */ - id: string - - /** - * The value determines if the notice is unread or not. - */ - unread: boolean - - /** - * Time of this notice was created. - */ - createdAt: GQLDateTime - - /** - * List of notice actors. - */ - actors?: Array - type: GQLTransactionNoticeType - target: GQLTransaction -} - -export const enum GQLTransactionNoticeType { - PaymentReceivedDonation = 'PaymentReceivedDonation', -} - -export const enum GQLUserInfoFields { - displayName = 'displayName', - avatar = 'avatar', - description = 'description', - email = 'email', - agreeOn = 'agreeOn', -} - -/** - * ################################ - * # - * User # - * # - * ################################ - */ -export interface GQLUserNotice extends GQLNotice { - /** - * Unique ID of this notice. - */ - id: string - - /** - * The value determines if the notice is unread or not. - */ - unread: boolean - - /** - * Time of this notice was created. - */ - createdAt: GQLDateTime - - /** - * List of notice actors. - */ - actors?: Array - type: GQLUserNoticeType - target: GQLUser -} - -export const enum GQLUserNoticeType { - UserNewFollower = 'UserNewFollower', -} - -export interface GQLVerifyEmailInput { - codeId: string -} - -/********************************* - * * - * TYPE RESOLVERS * - * * - *********************************/ -/** - * This interface define the shape of your resolver - * Note that this type is designed to be compatible with graphql-tools resolvers - * However, you can still use other generated interfaces to make your resolver type-safed - */ -export interface GQLResolver { - Query?: GQLQueryTypeResolver - Article?: GQLArticleTypeResolver - Node?: { - __resolveType: GQLNodeTypeResolver - } - - DateTime?: GraphQLScalarType - User?: GQLUserTypeResolver - Liker?: GQLLikerTypeResolver - UserInfo?: GQLUserInfoTypeResolver - email_String_format_email?: GraphQLScalarType - Badge?: GQLBadgeTypeResolver - CryptoWallet?: GQLCryptoWalletTypeResolver - NFTAsset?: GQLNFTAssetTypeResolver - Tag?: GQLTagTypeResolver - first_Int_min_0?: GraphQLScalarType - ArticleConnection?: GQLArticleConnectionTypeResolver - Connection?: { - __resolveType: GQLConnectionTypeResolver - } - - PageInfo?: GQLPageInfoTypeResolver - ArticleEdge?: GQLArticleEdgeTypeResolver - random_Int_min_0_max_49?: GraphQLScalarType - UserConnection?: GQLUserConnectionTypeResolver - UserEdge?: GQLUserEdgeTypeResolver - TagConnection?: GQLTagConnectionTypeResolver - TagEdge?: GQLTagEdgeTypeResolver - TagOSS?: GQLTagOSSTypeResolver - UserSettings?: GQLUserSettingsTypeResolver - NotificationSetting?: GQLNotificationSettingTypeResolver - Recommendation?: GQLRecommendationTypeResolver - FollowingActivityConnection?: GQLFollowingActivityConnectionTypeResolver - FollowingActivityEdge?: GQLFollowingActivityEdgeTypeResolver - FollowingActivity?: { - __resolveType: GQLFollowingActivityTypeResolver - } - - UserPublishArticleActivity?: GQLUserPublishArticleActivityTypeResolver - UserAddArticleTagActivity?: GQLUserAddArticleTagActivityTypeResolver - UserBroadcastCircleActivity?: GQLUserBroadcastCircleActivityTypeResolver - Comment?: GQLCommentTypeResolver - CommentConnection?: GQLCommentConnectionTypeResolver - CommentEdge?: GQLCommentEdgeTypeResolver - Circle?: GQLCircleTypeResolver - Price?: GQLPriceTypeResolver - MemberConnection?: GQLMemberConnectionTypeResolver - MemberEdge?: GQLMemberEdgeTypeResolver - Member?: GQLMemberTypeResolver - Invites?: GQLInvitesTypeResolver - InvitationConnection?: GQLInvitationConnectionTypeResolver - InvitationEdge?: GQLInvitationEdgeTypeResolver - Invitation?: GQLInvitationTypeResolver - Invitee?: { - __resolveType: GQLInviteeTypeResolver - } - - Person?: GQLPersonTypeResolver - email_String_NotNull_format_email?: GraphQLScalarType - CircleAnalytics?: GQLCircleAnalyticsTypeResolver - CircleIncomeAnalytics?: GQLCircleIncomeAnalyticsTypeResolver - MonthlyDatum?: GQLMonthlyDatumTypeResolver - CircleSubscriberAnalytics?: GQLCircleSubscriberAnalyticsTypeResolver - CircleFollowerAnalytics?: GQLCircleFollowerAnalyticsTypeResolver - CircleContentAnalytics?: GQLCircleContentAnalyticsTypeResolver - CircleContentAnalyticsDatum?: GQLCircleContentAnalyticsDatumTypeResolver - UserCreateCircleActivity?: GQLUserCreateCircleActivityTypeResolver - UserRecommendationActivity?: GQLUserRecommendationActivityTypeResolver - ArticleRecommendationActivity?: GQLArticleRecommendationActivityTypeResolver - CircleRecommendationActivity?: GQLCircleRecommendationActivityTypeResolver - CircleConnection?: GQLCircleConnectionTypeResolver - CircleEdge?: GQLCircleEdgeTypeResolver - TopicConnection?: GQLTopicConnectionTypeResolver - TopicEdge?: GQLTopicEdgeTypeResolver - Topic?: GQLTopicTypeResolver - Chapter?: GQLChapterTypeResolver - DraftConnection?: GQLDraftConnectionTypeResolver - DraftEdge?: GQLDraftEdgeTypeResolver - Draft?: GQLDraftTypeResolver - Asset?: GQLAssetTypeResolver - DraftAccess?: GQLDraftAccessTypeResolver - UserActivity?: GQLUserActivityTypeResolver - ReadHistoryConnection?: GQLReadHistoryConnectionTypeResolver - ReadHistoryEdge?: GQLReadHistoryEdgeTypeResolver - ReadHistory?: GQLReadHistoryTypeResolver - RecentSearchConnection?: GQLRecentSearchConnectionTypeResolver - RecentSearchEdge?: GQLRecentSearchEdgeTypeResolver - AppreciationConnection?: GQLAppreciationConnectionTypeResolver - AppreciationEdge?: GQLAppreciationEdgeTypeResolver - Appreciation?: GQLAppreciationTypeResolver - Following?: GQLFollowingTypeResolver - UserAnalytics?: GQLUserAnalyticsTypeResolver - TopDonatorConnection?: GQLTopDonatorConnectionTypeResolver - TopDonatorEdge?: GQLTopDonatorEdgeTypeResolver - UserStatus?: GQLUserStatusTypeResolver - UserOSS?: GQLUserOSSTypeResolver - UserRestriction?: GQLUserRestrictionTypeResolver - NoticeConnection?: GQLNoticeConnectionTypeResolver - NoticeEdge?: GQLNoticeEdgeTypeResolver - Notice?: { - __resolveType: GQLNoticeTypeResolver - } - - Wallet?: GQLWalletTypeResolver - Balance?: GQLBalanceTypeResolver - TransactionConnection?: GQLTransactionConnectionTypeResolver - TransactionEdge?: GQLTransactionEdgeTypeResolver - Transaction?: GQLTransactionTypeResolver - TransactionTarget?: { - __resolveType: GQLTransactionTargetTypeResolver - } - - BlockchainTransaction?: GQLBlockchainTransactionTypeResolver - StripeAccount?: GQLStripeAccountTypeResolver - ArticleTranslation?: GQLArticleTranslationTypeResolver - ArticleAccess?: GQLArticleAccessTypeResolver - ArticleOSS?: GQLArticleOSSTypeResolver - ResponseConnection?: GQLResponseConnectionTypeResolver - ResponseEdge?: GQLResponseEdgeTypeResolver - Response?: { - __resolveType: GQLResponseTypeResolver - } - - SearchResultConnection?: GQLSearchResultConnectionTypeResolver - SearchResultEdge?: GQLSearchResultEdgeTypeResolver - Official?: GQLOfficialTypeResolver - Feature?: GQLFeatureTypeResolver - Announcement?: GQLAnnouncementTypeResolver - TranslatedAnnouncement?: GQLTranslatedAnnouncementTypeResolver - link_String_format_uri?: GraphQLScalarType - OSS?: GQLOSSTypeResolver - OAuthClientConnection?: GQLOAuthClientConnectionTypeResolver - OAuthClientEdge?: GQLOAuthClientEdgeTypeResolver - OAuthClient?: GQLOAuthClientTypeResolver - SkippedListItemsConnection?: GQLSkippedListItemsConnectionTypeResolver - SkippedListItemEdge?: GQLSkippedListItemEdgeTypeResolver - SkippedListItem?: GQLSkippedListItemTypeResolver - ExchangeRate?: GQLExchangeRateTypeResolver - Mutation?: GQLMutationTypeResolver - requestForDonation_String_maxLength_140?: GraphQLScalarType - replyToDonator_String_maxLength_140?: GraphQLScalarType - amount_Int_NotNull_min_1?: GraphQLScalarType - amount_Float_exclusiveMin_0?: GraphQLScalarType - SubscribeCircleResult?: GQLSubscribeCircleResultTypeResolver - freePeriod_Int_NotNull_exclusiveMin_0?: GraphQLScalarType - Upload?: GraphQLScalarType - url_String_format_uri?: GraphQLScalarType - BlockedSearchKeyword?: GQLBlockedSearchKeywordTypeResolver - boost_Float_NotNull_min_0?: GraphQLScalarType - redirectUrl_String_format_uri?: GraphQLScalarType - oldEmail_String_NotNull_format_email?: GraphQLScalarType - newEmail_String_NotNull_format_email?: GraphQLScalarType - AuthResult?: GQLAuthResultTypeResolver - SigningMessageResult?: GQLSigningMessageResultTypeResolver - ClaimLogbooksResult?: GQLClaimLogbooksResultTypeResolver - banDays_Int_exclusiveMin_0?: GraphQLScalarType - amount_Float_NotNull_exclusiveMin_0?: GraphQLScalarType - AddCreditResult?: GQLAddCreditResultTypeResolver - PayToResult?: GQLPayToResultTypeResolver - ConnectStripeAccountResult?: GQLConnectStripeAccountResultTypeResolver - website_String_format_uri?: GraphQLScalarType - ArticleArticleNotice?: GQLArticleArticleNoticeTypeResolver - ArticleNotice?: GQLArticleNoticeTypeResolver - ArticleTagNotice?: GQLArticleTagNoticeTypeResolver - CircleNotice?: GQLCircleNoticeTypeResolver - CommentCommentNotice?: GQLCommentCommentNoticeTypeResolver - CommentNotice?: GQLCommentNoticeTypeResolver - CryptoNotice?: GQLCryptoNoticeTypeResolver - OfficialAnnouncementNotice?: GQLOfficialAnnouncementNoticeTypeResolver - TagNotice?: GQLTagNoticeTypeResolver - TransactionNotice?: GQLTransactionNoticeTypeResolver - UserNotice?: GQLUserNoticeTypeResolver -} -export interface GQLQueryTypeResolver { - article?: QueryToArticleResolver - circle?: QueryToCircleResolver - node?: QueryToNodeResolver - nodes?: QueryToNodesResolver - frequentSearch?: QueryToFrequentSearchResolver - search?: QueryToSearchResolver - official?: QueryToOfficialResolver - oss?: QueryToOssResolver - viewer?: QueryToViewerResolver - user?: QueryToUserResolver - exchangeRates?: QueryToExchangeRatesResolver - oauthClient?: QueryToOauthClientResolver -} - -export interface QueryToArticleArgs { - input: GQLArticleInput -} -export interface QueryToArticleResolver { - ( - parent: TParent, - args: QueryToArticleArgs, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface QueryToCircleArgs { - input: GQLCircleInput -} -export interface QueryToCircleResolver { - ( - parent: TParent, - args: QueryToCircleArgs, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface QueryToNodeArgs { - input: GQLNodeInput -} -export interface QueryToNodeResolver { - ( - parent: TParent, - args: QueryToNodeArgs, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface QueryToNodesArgs { - input: GQLNodesInput -} -export interface QueryToNodesResolver { - ( - parent: TParent, - args: QueryToNodesArgs, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface QueryToFrequentSearchArgs { - input: GQLFrequentSearchInput -} -export interface QueryToFrequentSearchResolver { - ( - parent: TParent, - args: QueryToFrequentSearchArgs, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface QueryToSearchArgs { - input: GQLSearchInput -} -export interface QueryToSearchResolver { - ( - parent: TParent, - args: QueryToSearchArgs, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface QueryToOfficialResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface QueryToOssResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface QueryToViewerResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface QueryToUserArgs { - input: GQLUserInput -} -export interface QueryToUserResolver { - ( - parent: TParent, - args: QueryToUserArgs, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface QueryToExchangeRatesArgs { - input?: GQLExchangeRatesInput -} -export interface QueryToExchangeRatesResolver { - ( - parent: TParent, - args: QueryToExchangeRatesArgs, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface QueryToOauthClientArgs { - input: GQLOAuthClientInput -} -export interface QueryToOauthClientResolver { - ( - parent: TParent, - args: QueryToOauthClientArgs, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface GQLArticleTypeResolver { - id?: ArticleToIdResolver - topicScore?: ArticleToTopicScoreResolver - slug?: ArticleToSlugResolver - createdAt?: ArticleToCreatedAtResolver - revisedAt?: ArticleToRevisedAtResolver - state?: ArticleToStateResolver - author?: ArticleToAuthorResolver - title?: ArticleToTitleResolver - cover?: ArticleToCoverResolver - assets?: ArticleToAssetsResolver - summary?: ArticleToSummaryResolver - summaryCustomized?: ArticleToSummaryCustomizedResolver - tags?: ArticleToTagsResolver - wordCount?: ArticleToWordCountResolver - dataHash?: ArticleToDataHashResolver - mediaHash?: ArticleToMediaHashResolver - content?: ArticleToContentResolver - language?: ArticleToLanguageResolver - collectedBy?: ArticleToCollectedByResolver - collection?: ArticleToCollectionResolver - relatedArticles?: ArticleToRelatedArticlesResolver - relatedDonationArticles?: ArticleToRelatedDonationArticlesResolver - appreciationsReceived?: ArticleToAppreciationsReceivedResolver - appreciationsReceivedTotal?: ArticleToAppreciationsReceivedTotalResolver< - TParent - > - subscribers?: ArticleToSubscribersResolver - appreciateLimit?: ArticleToAppreciateLimitResolver - appreciateLeft?: ArticleToAppreciateLeftResolver - hasAppreciate?: ArticleToHasAppreciateResolver - canSuperLike?: ArticleToCanSuperLikeResolver - subscribed?: ArticleToSubscribedResolver - sticky?: ArticleToStickyResolver - translation?: ArticleToTranslationResolver - availableTranslations?: ArticleToAvailableTranslationsResolver - transactionsReceivedBy?: ArticleToTransactionsReceivedByResolver - readTime?: ArticleToReadTimeResolver - drafts?: ArticleToDraftsResolver - newestUnpublishedDraft?: ArticleToNewestUnpublishedDraftResolver - newestPublishedDraft?: ArticleToNewestPublishedDraftResolver - revisionCount?: ArticleToRevisionCountResolver - access?: ArticleToAccessResolver - license?: ArticleToLicenseResolver - requestForDonation?: ArticleToRequestForDonationResolver - replyToDonator?: ArticleToReplyToDonatorResolver - iscnId?: ArticleToIscnIdResolver - canComment?: ArticleToCanCommentResolver - oss?: ArticleToOssResolver - remark?: ArticleToRemarkResolver - commentCount?: ArticleToCommentCountResolver - pinCommentLimit?: ArticleToPinCommentLimitResolver - pinCommentLeft?: ArticleToPinCommentLeftResolver - pinnedComments?: ArticleToPinnedCommentsResolver - featuredComments?: ArticleToFeaturedCommentsResolver - comments?: ArticleToCommentsResolver - responseCount?: ArticleToResponseCountResolver - responses?: ArticleToResponsesResolver -} - -export interface ArticleToIdResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface ArticleToTopicScoreResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface ArticleToSlugResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface ArticleToCreatedAtResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface ArticleToRevisedAtResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface ArticleToStateResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface ArticleToAuthorResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface ArticleToTitleResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface ArticleToCoverResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface ArticleToAssetsResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface ArticleToSummaryResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface ArticleToSummaryCustomizedResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface ArticleToTagsResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface ArticleToWordCountResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface ArticleToDataHashResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface ArticleToMediaHashResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface ArticleToContentResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface ArticleToLanguageResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface ArticleToCollectedByArgs { - input: GQLConnectionArgs -} -export interface ArticleToCollectedByResolver { - ( - parent: TParent, - args: ArticleToCollectedByArgs, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface ArticleToCollectionArgs { - input: GQLConnectionArgs -} -export interface ArticleToCollectionResolver { - ( - parent: TParent, - args: ArticleToCollectionArgs, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface ArticleToRelatedArticlesArgs { - input: GQLConnectionArgs -} -export interface ArticleToRelatedArticlesResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: ArticleToRelatedArticlesArgs, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface ArticleToRelatedDonationArticlesArgs { - input: GQLRelatedDonationArticlesInput -} -export interface ArticleToRelatedDonationArticlesResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: ArticleToRelatedDonationArticlesArgs, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface ArticleToAppreciationsReceivedArgs { - input: GQLConnectionArgs -} -export interface ArticleToAppreciationsReceivedResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: ArticleToAppreciationsReceivedArgs, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface ArticleToAppreciationsReceivedTotalResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface ArticleToSubscribersArgs { - input: GQLConnectionArgs -} -export interface ArticleToSubscribersResolver { - ( - parent: TParent, - args: ArticleToSubscribersArgs, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface ArticleToAppreciateLimitResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface ArticleToAppreciateLeftResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface ArticleToHasAppreciateResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface ArticleToCanSuperLikeResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface ArticleToSubscribedResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface ArticleToStickyResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface ArticleToTranslationArgs { - input?: GQLTranslationArgs -} -export interface ArticleToTranslationResolver { - ( - parent: TParent, - args: ArticleToTranslationArgs, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface ArticleToAvailableTranslationsResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface ArticleToTransactionsReceivedByArgs { - input: GQLTransactionsReceivedByArgs -} -export interface ArticleToTransactionsReceivedByResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: ArticleToTransactionsReceivedByArgs, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface ArticleToReadTimeResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface ArticleToDraftsResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface ArticleToNewestUnpublishedDraftResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface ArticleToNewestPublishedDraftResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface ArticleToRevisionCountResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface ArticleToAccessResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface ArticleToLicenseResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface ArticleToRequestForDonationResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface ArticleToReplyToDonatorResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface ArticleToIscnIdResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface ArticleToCanCommentResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface ArticleToOssResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface ArticleToRemarkResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface ArticleToCommentCountResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface ArticleToPinCommentLimitResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface ArticleToPinCommentLeftResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface ArticleToPinnedCommentsResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface ArticleToFeaturedCommentsArgs { - input: GQLFeaturedCommentsInput -} -export interface ArticleToFeaturedCommentsResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: ArticleToFeaturedCommentsArgs, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface ArticleToCommentsArgs { - input: GQLCommentsInput -} -export interface ArticleToCommentsResolver { - ( - parent: TParent, - args: ArticleToCommentsArgs, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface ArticleToResponseCountResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface ArticleToResponsesArgs { - input: GQLResponsesInput -} -export interface ArticleToResponsesResolver { - ( - parent: TParent, - args: ArticleToResponsesArgs, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface GQLNodeTypeResolver { - (parent: TParent, context: Context, info: GraphQLResolveInfo): - | 'Article' - | 'User' - | 'Tag' - | 'Comment' - | 'Circle' - | 'Topic' - | 'Chapter' - | 'Draft' - | Promise< - | 'Article' - | 'User' - | 'Tag' - | 'Comment' - | 'Circle' - | 'Topic' - | 'Chapter' - | 'Draft' - > -} -export interface GQLUserTypeResolver { - id?: UserToIdResolver - userName?: UserToUserNameResolver - displayName?: UserToDisplayNameResolver - likerId?: UserToLikerIdResolver - liker?: UserToLikerResolver - avatar?: UserToAvatarResolver - info?: UserToInfoResolver - settings?: UserToSettingsResolver - recommendation?: UserToRecommendationResolver - articles?: UserToArticlesResolver - topics?: UserToTopicsResolver - tags?: UserToTagsResolver - maintainedTags?: UserToMaintainedTagsResolver - pinnedTags?: UserToPinnedTagsResolver - drafts?: UserToDraftsResolver - commentedArticles?: UserToCommentedArticlesResolver - subscriptions?: UserToSubscriptionsResolver - activity?: UserToActivityResolver - followers?: UserToFollowersResolver - following?: UserToFollowingResolver - isFollower?: UserToIsFollowerResolver - isFollowee?: UserToIsFolloweeResolver - blockList?: UserToBlockListResolver - isBlocking?: UserToIsBlockingResolver - isBlocked?: UserToIsBlockedResolver - analytics?: UserToAnalyticsResolver - status?: UserToStatusResolver - oss?: UserToOssResolver - remark?: UserToRemarkResolver - ownCircles?: UserToOwnCirclesResolver - subscribedCircles?: UserToSubscribedCirclesResolver - notices?: UserToNoticesResolver - wallet?: UserToWalletResolver - paymentPointer?: UserToPaymentPointerResolver -} - -export interface UserToIdResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface UserToUserNameResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface UserToDisplayNameResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface UserToLikerIdResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface UserToLikerResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface UserToAvatarResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface UserToInfoResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface UserToSettingsResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface UserToRecommendationResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface UserToArticlesArgs { - input: GQLConnectionArgs -} -export interface UserToArticlesResolver { - ( - parent: TParent, - args: UserToArticlesArgs, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface UserToTopicsArgs { - input: GQLTopicInput -} -export interface UserToTopicsResolver { - ( - parent: TParent, - args: UserToTopicsArgs, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface UserToTagsArgs { - input: GQLConnectionArgs -} -export interface UserToTagsResolver { - ( - parent: TParent, - args: UserToTagsArgs, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface UserToMaintainedTagsArgs { - input: GQLConnectionArgs -} -export interface UserToMaintainedTagsResolver { - ( - parent: TParent, - args: UserToMaintainedTagsArgs, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface UserToPinnedTagsArgs { - input: GQLConnectionArgs -} -export interface UserToPinnedTagsResolver { - ( - parent: TParent, - args: UserToPinnedTagsArgs, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface UserToDraftsArgs { - input: GQLConnectionArgs -} -export interface UserToDraftsResolver { - ( - parent: TParent, - args: UserToDraftsArgs, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface UserToCommentedArticlesArgs { - input: GQLConnectionArgs -} -export interface UserToCommentedArticlesResolver { - ( - parent: TParent, - args: UserToCommentedArticlesArgs, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface UserToSubscriptionsArgs { - input: GQLConnectionArgs -} -export interface UserToSubscriptionsResolver { - ( - parent: TParent, - args: UserToSubscriptionsArgs, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface UserToActivityResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface UserToFollowersArgs { - input: GQLConnectionArgs -} -export interface UserToFollowersResolver { - ( - parent: TParent, - args: UserToFollowersArgs, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface UserToFollowingResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface UserToIsFollowerResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface UserToIsFolloweeResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface UserToBlockListArgs { - input: GQLConnectionArgs -} -export interface UserToBlockListResolver { - ( - parent: TParent, - args: UserToBlockListArgs, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface UserToIsBlockingResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface UserToIsBlockedResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface UserToAnalyticsResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface UserToStatusResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface UserToOssResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface UserToRemarkResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface UserToOwnCirclesResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface UserToSubscribedCirclesArgs { - input: GQLConnectionArgs -} -export interface UserToSubscribedCirclesResolver { - ( - parent: TParent, - args: UserToSubscribedCirclesArgs, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface UserToNoticesArgs { - input: GQLConnectionArgs -} -export interface UserToNoticesResolver { - ( - parent: TParent, - args: UserToNoticesArgs, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface UserToWalletResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface UserToPaymentPointerResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface GQLLikerTypeResolver { - likerId?: LikerToLikerIdResolver - civicLiker?: LikerToCivicLikerResolver - total?: LikerToTotalResolver - rateUSD?: LikerToRateUSDResolver -} - -export interface LikerToLikerIdResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface LikerToCivicLikerResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface LikerToTotalResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface LikerToRateUSDResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface GQLUserInfoTypeResolver { - createdAt?: UserInfoToCreatedAtResolver - userNameEditable?: UserInfoToUserNameEditableResolver - description?: UserInfoToDescriptionResolver - ipnsKey?: UserInfoToIpnsKeyResolver - email?: UserInfoToEmailResolver - badges?: UserInfoToBadgesResolver - agreeOn?: UserInfoToAgreeOnResolver - profileCover?: UserInfoToProfileCoverResolver - group?: UserInfoToGroupResolver - ethAddress?: UserInfoToEthAddressResolver - isWalletAuth?: UserInfoToIsWalletAuthResolver - cryptoWallet?: UserInfoToCryptoWalletResolver - featuredTags?: UserInfoToFeaturedTagsResolver -} - -export interface UserInfoToCreatedAtResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface UserInfoToUserNameEditableResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface UserInfoToDescriptionResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface UserInfoToIpnsKeyResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface UserInfoToEmailResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface UserInfoToBadgesResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface UserInfoToAgreeOnResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface UserInfoToProfileCoverResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface UserInfoToGroupResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface UserInfoToEthAddressResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface UserInfoToIsWalletAuthResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface UserInfoToCryptoWalletResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface UserInfoToFeaturedTagsResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface GQLBadgeTypeResolver { - type?: BadgeToTypeResolver -} - -export interface BadgeToTypeResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface GQLCryptoWalletTypeResolver { - id?: CryptoWalletToIdResolver - address?: CryptoWalletToAddressResolver - hasNFTs?: CryptoWalletToHasNFTsResolver - nfts?: CryptoWalletToNftsResolver -} - -export interface CryptoWalletToIdResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface CryptoWalletToAddressResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface CryptoWalletToHasNFTsResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface CryptoWalletToNftsResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface GQLNFTAssetTypeResolver { - id?: NFTAssetToIdResolver - name?: NFTAssetToNameResolver - description?: NFTAssetToDescriptionResolver - imageUrl?: NFTAssetToImageUrlResolver - imagePreviewUrl?: NFTAssetToImagePreviewUrlResolver - contractAddress?: NFTAssetToContractAddressResolver - collectionName?: NFTAssetToCollectionNameResolver -} - -export interface NFTAssetToIdResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface NFTAssetToNameResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface NFTAssetToDescriptionResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface NFTAssetToImageUrlResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface NFTAssetToImagePreviewUrlResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface NFTAssetToContractAddressResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface NFTAssetToCollectionNameResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface GQLTagTypeResolver { - id?: TagToIdResolver - content?: TagToContentResolver - articles?: TagToArticlesResolver - selected?: TagToSelectedResolver - createdAt?: TagToCreatedAtResolver - cover?: TagToCoverResolver - description?: TagToDescriptionResolver - editors?: TagToEditorsResolver - creator?: TagToCreatorResolver - owner?: TagToOwnerResolver - isFollower?: TagToIsFollowerResolver - isPinned?: TagToIsPinnedResolver - followers?: TagToFollowersResolver - participants?: TagToParticipantsResolver - recommended?: TagToRecommendedResolver - isOfficial?: TagToIsOfficialResolver - numArticles?: TagToNumArticlesResolver - numAuthors?: TagToNumAuthorsResolver - oss?: TagToOssResolver - remark?: TagToRemarkResolver - deleted?: TagToDeletedResolver -} - -export interface TagToIdResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface TagToContentResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface TagToArticlesArgs { - input: GQLTagArticlesInput -} -export interface TagToArticlesResolver { - ( - parent: TParent, - args: TagToArticlesArgs, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface TagToSelectedArgs { - input: GQLTagSelectedInput -} -export interface TagToSelectedResolver { - ( - parent: TParent, - args: TagToSelectedArgs, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface TagToCreatedAtResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface TagToCoverResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface TagToDescriptionResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface TagToEditorsArgs { - input?: GQLTagEditorsInput -} -export interface TagToEditorsResolver { - ( - parent: TParent, - args: TagToEditorsArgs, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface TagToCreatorResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface TagToOwnerResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface TagToIsFollowerResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface TagToIsPinnedResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface TagToFollowersArgs { - input: GQLConnectionArgs -} -export interface TagToFollowersResolver { - ( - parent: TParent, - args: TagToFollowersArgs, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface TagToParticipantsArgs { - input: GQLConnectionArgs -} -export interface TagToParticipantsResolver { - ( - parent: TParent, - args: TagToParticipantsArgs, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface TagToRecommendedArgs { - input: GQLConnectionArgs -} -export interface TagToRecommendedResolver { - ( - parent: TParent, - args: TagToRecommendedArgs, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface TagToIsOfficialResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface TagToNumArticlesResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface TagToNumAuthorsResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface TagToOssResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface TagToRemarkResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface TagToDeletedResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface GQLArticleConnectionTypeResolver { - totalCount?: ArticleConnectionToTotalCountResolver - pageInfo?: ArticleConnectionToPageInfoResolver - edges?: ArticleConnectionToEdgesResolver -} - -export interface ArticleConnectionToTotalCountResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface ArticleConnectionToPageInfoResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface ArticleConnectionToEdgesResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface GQLConnectionTypeResolver { - (parent: TParent, context: Context, info: GraphQLResolveInfo): - | 'ArticleConnection' - | 'UserConnection' - | 'TagConnection' - | 'FollowingActivityConnection' - | 'CommentConnection' - | 'MemberConnection' - | 'InvitationConnection' - | 'CircleConnection' - | 'TopicConnection' - | 'DraftConnection' - | 'ReadHistoryConnection' - | 'RecentSearchConnection' - | 'AppreciationConnection' - | 'TopDonatorConnection' - | 'NoticeConnection' - | 'TransactionConnection' - | 'ResponseConnection' - | 'SearchResultConnection' - | 'OAuthClientConnection' - | 'SkippedListItemsConnection' - | Promise< - | 'ArticleConnection' - | 'UserConnection' - | 'TagConnection' - | 'FollowingActivityConnection' - | 'CommentConnection' - | 'MemberConnection' - | 'InvitationConnection' - | 'CircleConnection' - | 'TopicConnection' - | 'DraftConnection' - | 'ReadHistoryConnection' - | 'RecentSearchConnection' - | 'AppreciationConnection' - | 'TopDonatorConnection' - | 'NoticeConnection' - | 'TransactionConnection' - | 'ResponseConnection' - | 'SearchResultConnection' - | 'OAuthClientConnection' - | 'SkippedListItemsConnection' - > -} -export interface GQLPageInfoTypeResolver { - startCursor?: PageInfoToStartCursorResolver - endCursor?: PageInfoToEndCursorResolver - hasNextPage?: PageInfoToHasNextPageResolver - hasPreviousPage?: PageInfoToHasPreviousPageResolver -} - -export interface PageInfoToStartCursorResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface PageInfoToEndCursorResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface PageInfoToHasNextPageResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface PageInfoToHasPreviousPageResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface GQLArticleEdgeTypeResolver { - cursor?: ArticleEdgeToCursorResolver - node?: ArticleEdgeToNodeResolver -} - -export interface ArticleEdgeToCursorResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface ArticleEdgeToNodeResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface GQLUserConnectionTypeResolver { - totalCount?: UserConnectionToTotalCountResolver - pageInfo?: UserConnectionToPageInfoResolver - edges?: UserConnectionToEdgesResolver -} - -export interface UserConnectionToTotalCountResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface UserConnectionToPageInfoResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface UserConnectionToEdgesResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface GQLUserEdgeTypeResolver { - cursor?: UserEdgeToCursorResolver - node?: UserEdgeToNodeResolver -} - -export interface UserEdgeToCursorResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface UserEdgeToNodeResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface GQLTagConnectionTypeResolver { - totalCount?: TagConnectionToTotalCountResolver - pageInfo?: TagConnectionToPageInfoResolver - edges?: TagConnectionToEdgesResolver -} - -export interface TagConnectionToTotalCountResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface TagConnectionToPageInfoResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface TagConnectionToEdgesResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface GQLTagEdgeTypeResolver { - cursor?: TagEdgeToCursorResolver - node?: TagEdgeToNodeResolver -} - -export interface TagEdgeToCursorResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface TagEdgeToNodeResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface GQLTagOSSTypeResolver { - boost?: TagOSSToBoostResolver - score?: TagOSSToScoreResolver - selected?: TagOSSToSelectedResolver -} - -export interface TagOSSToBoostResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface TagOSSToScoreResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface TagOSSToSelectedResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface GQLUserSettingsTypeResolver { - language?: UserSettingsToLanguageResolver - currency?: UserSettingsToCurrencyResolver - notification?: UserSettingsToNotificationResolver -} - -export interface UserSettingsToLanguageResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface UserSettingsToCurrencyResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface UserSettingsToNotificationResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface GQLNotificationSettingTypeResolver { - enable?: NotificationSettingToEnableResolver - email?: NotificationSettingToEmailResolver - mention?: NotificationSettingToMentionResolver - userNewFollower?: NotificationSettingToUserNewFollowerResolver - articleNewComment?: NotificationSettingToArticleNewCommentResolver - articleNewAppreciation?: NotificationSettingToArticleNewAppreciationResolver< - TParent - > - articleNewSubscription?: NotificationSettingToArticleNewSubscriptionResolver< - TParent - > - articleNewCollected?: NotificationSettingToArticleNewCollectedResolver< - TParent - > - articleSubscribedNewComment?: NotificationSettingToArticleSubscribedNewCommentResolver< - TParent - > - articleCommentPinned?: NotificationSettingToArticleCommentPinnedResolver< - TParent - > - circleNewSubscriber?: NotificationSettingToCircleNewSubscriberResolver< - TParent - > - circleNewFollower?: NotificationSettingToCircleNewFollowerResolver - circleNewUnsubscriber?: NotificationSettingToCircleNewUnsubscriberResolver< - TParent - > - circleMemberNewBroadcastReply?: NotificationSettingToCircleMemberNewBroadcastReplyResolver< - TParent - > - circleMemberNewDiscussion?: NotificationSettingToCircleMemberNewDiscussionResolver< - TParent - > - circleMemberNewDiscussionReply?: NotificationSettingToCircleMemberNewDiscussionReplyResolver< - TParent - > - inCircleNewArticle?: NotificationSettingToInCircleNewArticleResolver - inCircleNewBroadcast?: NotificationSettingToInCircleNewBroadcastResolver< - TParent - > - inCircleNewBroadcastReply?: NotificationSettingToInCircleNewBroadcastReplyResolver< - TParent - > - inCircleNewDiscussion?: NotificationSettingToInCircleNewDiscussionResolver< - TParent - > - inCircleNewDiscussionReply?: NotificationSettingToInCircleNewDiscussionReplyResolver< - TParent - > -} - -export interface NotificationSettingToEnableResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface NotificationSettingToEmailResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface NotificationSettingToMentionResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface NotificationSettingToUserNewFollowerResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface NotificationSettingToArticleNewCommentResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface NotificationSettingToArticleNewAppreciationResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface NotificationSettingToArticleNewSubscriptionResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface NotificationSettingToArticleNewCollectedResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface NotificationSettingToArticleSubscribedNewCommentResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface NotificationSettingToArticleCommentPinnedResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface NotificationSettingToCircleNewSubscriberResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface NotificationSettingToCircleNewFollowerResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface NotificationSettingToCircleNewUnsubscriberResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface NotificationSettingToCircleMemberNewBroadcastReplyResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface NotificationSettingToCircleMemberNewDiscussionResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface NotificationSettingToCircleMemberNewDiscussionReplyResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface NotificationSettingToInCircleNewArticleResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface NotificationSettingToInCircleNewBroadcastResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface NotificationSettingToInCircleNewBroadcastReplyResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface NotificationSettingToInCircleNewDiscussionResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface NotificationSettingToInCircleNewDiscussionReplyResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface GQLRecommendationTypeResolver { - following?: RecommendationToFollowingResolver - readTagsArticles?: RecommendationToReadTagsArticlesResolver - newest?: RecommendationToNewestResolver - hottest?: RecommendationToHottestResolver - icymi?: RecommendationToIcymiResolver - tags?: RecommendationToTagsResolver - hottestTags?: RecommendationToHottestTagsResolver - selectedTags?: RecommendationToSelectedTagsResolver - authors?: RecommendationToAuthorsResolver - newestCircles?: RecommendationToNewestCirclesResolver - hottestCircles?: RecommendationToHottestCirclesResolver -} - -export interface RecommendationToFollowingArgs { - input: GQLConnectionArgs -} -export interface RecommendationToFollowingResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: RecommendationToFollowingArgs, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface RecommendationToReadTagsArticlesArgs { - input: GQLConnectionArgs -} -export interface RecommendationToReadTagsArticlesResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: RecommendationToReadTagsArticlesArgs, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface RecommendationToNewestArgs { - input: GQLConnectionArgs -} -export interface RecommendationToNewestResolver { - ( - parent: TParent, - args: RecommendationToNewestArgs, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface RecommendationToHottestArgs { - input: GQLConnectionArgs -} -export interface RecommendationToHottestResolver { - ( - parent: TParent, - args: RecommendationToHottestArgs, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface RecommendationToIcymiArgs { - input: GQLConnectionArgs -} -export interface RecommendationToIcymiResolver { - ( - parent: TParent, - args: RecommendationToIcymiArgs, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface RecommendationToTagsArgs { - input: GQLRecommendInput -} -export interface RecommendationToTagsResolver { - ( - parent: TParent, - args: RecommendationToTagsArgs, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface RecommendationToHottestTagsArgs { - input: GQLRecommendInput -} -export interface RecommendationToHottestTagsResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: RecommendationToHottestTagsArgs, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface RecommendationToSelectedTagsArgs { - input: GQLRecommendInput -} -export interface RecommendationToSelectedTagsResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: RecommendationToSelectedTagsArgs, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface RecommendationToAuthorsArgs { - input: GQLRecommendInput -} -export interface RecommendationToAuthorsResolver { - ( - parent: TParent, - args: RecommendationToAuthorsArgs, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface RecommendationToNewestCirclesArgs { - input: GQLConnectionArgs -} -export interface RecommendationToNewestCirclesResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: RecommendationToNewestCirclesArgs, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface RecommendationToHottestCirclesArgs { - input: GQLConnectionArgs -} -export interface RecommendationToHottestCirclesResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: RecommendationToHottestCirclesArgs, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface GQLFollowingActivityConnectionTypeResolver { - totalCount?: FollowingActivityConnectionToTotalCountResolver - pageInfo?: FollowingActivityConnectionToPageInfoResolver - edges?: FollowingActivityConnectionToEdgesResolver -} - -export interface FollowingActivityConnectionToTotalCountResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface FollowingActivityConnectionToPageInfoResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface FollowingActivityConnectionToEdgesResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface GQLFollowingActivityEdgeTypeResolver { - cursor?: FollowingActivityEdgeToCursorResolver - node?: FollowingActivityEdgeToNodeResolver -} - -export interface FollowingActivityEdgeToCursorResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface FollowingActivityEdgeToNodeResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface GQLFollowingActivityTypeResolver { - (parent: TParent, context: Context, info: GraphQLResolveInfo): - | 'UserPublishArticleActivity' - | 'UserAddArticleTagActivity' - | 'UserBroadcastCircleActivity' - | 'UserCreateCircleActivity' - | 'UserRecommendationActivity' - | 'ArticleRecommendationActivity' - | 'CircleRecommendationActivity' - | Promise< - | 'UserPublishArticleActivity' - | 'UserAddArticleTagActivity' - | 'UserBroadcastCircleActivity' - | 'UserCreateCircleActivity' - | 'UserRecommendationActivity' - | 'ArticleRecommendationActivity' - | 'CircleRecommendationActivity' - > -} -export interface GQLUserPublishArticleActivityTypeResolver { - actor?: UserPublishArticleActivityToActorResolver - createdAt?: UserPublishArticleActivityToCreatedAtResolver - node?: UserPublishArticleActivityToNodeResolver -} - -export interface UserPublishArticleActivityToActorResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface UserPublishArticleActivityToCreatedAtResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface UserPublishArticleActivityToNodeResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface GQLUserAddArticleTagActivityTypeResolver { - actor?: UserAddArticleTagActivityToActorResolver - createdAt?: UserAddArticleTagActivityToCreatedAtResolver - node?: UserAddArticleTagActivityToNodeResolver - target?: UserAddArticleTagActivityToTargetResolver -} - -export interface UserAddArticleTagActivityToActorResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface UserAddArticleTagActivityToCreatedAtResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface UserAddArticleTagActivityToNodeResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface UserAddArticleTagActivityToTargetResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface GQLUserBroadcastCircleActivityTypeResolver { - actor?: UserBroadcastCircleActivityToActorResolver - createdAt?: UserBroadcastCircleActivityToCreatedAtResolver - node?: UserBroadcastCircleActivityToNodeResolver - target?: UserBroadcastCircleActivityToTargetResolver -} - -export interface UserBroadcastCircleActivityToActorResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface UserBroadcastCircleActivityToCreatedAtResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface UserBroadcastCircleActivityToNodeResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface UserBroadcastCircleActivityToTargetResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface GQLCommentTypeResolver { - id?: CommentToIdResolver - state?: CommentToStateResolver - type?: CommentToTypeResolver - createdAt?: CommentToCreatedAtResolver - content?: CommentToContentResolver - author?: CommentToAuthorResolver - pinned?: CommentToPinnedResolver - fromDonator?: CommentToFromDonatorResolver - upvotes?: CommentToUpvotesResolver - downvotes?: CommentToDownvotesResolver - myVote?: CommentToMyVoteResolver - comments?: CommentToCommentsResolver - parentComment?: CommentToParentCommentResolver - replyTo?: CommentToReplyToResolver - remark?: CommentToRemarkResolver - node?: CommentToNodeResolver -} - -export interface CommentToIdResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface CommentToStateResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface CommentToTypeResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface CommentToCreatedAtResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface CommentToContentResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface CommentToAuthorResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface CommentToPinnedResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface CommentToFromDonatorResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface CommentToUpvotesResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface CommentToDownvotesResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface CommentToMyVoteResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface CommentToCommentsArgs { - input: GQLCommentCommentsInput -} -export interface CommentToCommentsResolver { - ( - parent: TParent, - args: CommentToCommentsArgs, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface CommentToParentCommentResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface CommentToReplyToResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface CommentToRemarkResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface CommentToNodeResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface GQLCommentConnectionTypeResolver { - totalCount?: CommentConnectionToTotalCountResolver - pageInfo?: CommentConnectionToPageInfoResolver - edges?: CommentConnectionToEdgesResolver -} - -export interface CommentConnectionToTotalCountResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface CommentConnectionToPageInfoResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface CommentConnectionToEdgesResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface GQLCommentEdgeTypeResolver { - cursor?: CommentEdgeToCursorResolver - node?: CommentEdgeToNodeResolver -} - -export interface CommentEdgeToCursorResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface CommentEdgeToNodeResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface GQLCircleTypeResolver { - id?: CircleToIdResolver - avatar?: CircleToAvatarResolver - cover?: CircleToCoverResolver - name?: CircleToNameResolver - displayName?: CircleToDisplayNameResolver - description?: CircleToDescriptionResolver - prices?: CircleToPricesResolver - owner?: CircleToOwnerResolver - members?: CircleToMembersResolver - followers?: CircleToFollowersResolver - works?: CircleToWorksResolver - state?: CircleToStateResolver - createdAt?: CircleToCreatedAtResolver - updatedAt?: CircleToUpdatedAtResolver - isFollower?: CircleToIsFollowerResolver - isMember?: CircleToIsMemberResolver - invites?: CircleToInvitesResolver - invitedBy?: CircleToInvitedByResolver - analytics?: CircleToAnalyticsResolver - broadcast?: CircleToBroadcastResolver - pinnedBroadcast?: CircleToPinnedBroadcastResolver - discussion?: CircleToDiscussionResolver - discussionThreadCount?: CircleToDiscussionThreadCountResolver - discussionCount?: CircleToDiscussionCountResolver -} - -export interface CircleToIdResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface CircleToAvatarResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface CircleToCoverResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface CircleToNameResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface CircleToDisplayNameResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface CircleToDescriptionResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface CircleToPricesResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface CircleToOwnerResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface CircleToMembersArgs { - input: GQLConnectionArgs -} -export interface CircleToMembersResolver { - ( - parent: TParent, - args: CircleToMembersArgs, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface CircleToFollowersArgs { - input: GQLConnectionArgs -} -export interface CircleToFollowersResolver { - ( - parent: TParent, - args: CircleToFollowersArgs, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface CircleToWorksArgs { - input: GQLConnectionArgs -} -export interface CircleToWorksResolver { - ( - parent: TParent, - args: CircleToWorksArgs, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface CircleToStateResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface CircleToCreatedAtResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface CircleToUpdatedAtResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface CircleToIsFollowerResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface CircleToIsMemberResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface CircleToInvitesResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface CircleToInvitedByResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface CircleToAnalyticsResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface CircleToBroadcastArgs { - input: GQLCommentsInput -} -export interface CircleToBroadcastResolver { - ( - parent: TParent, - args: CircleToBroadcastArgs, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface CircleToPinnedBroadcastResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface CircleToDiscussionArgs { - input: GQLCommentsInput -} -export interface CircleToDiscussionResolver { - ( - parent: TParent, - args: CircleToDiscussionArgs, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface CircleToDiscussionThreadCountResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface CircleToDiscussionCountResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface GQLPriceTypeResolver { - id?: PriceToIdResolver - amount?: PriceToAmountResolver - circle?: PriceToCircleResolver - currency?: PriceToCurrencyResolver - state?: PriceToStateResolver - createdAt?: PriceToCreatedAtResolver - updatedAt?: PriceToUpdatedAtResolver -} - -export interface PriceToIdResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface PriceToAmountResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface PriceToCircleResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface PriceToCurrencyResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface PriceToStateResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface PriceToCreatedAtResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface PriceToUpdatedAtResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface GQLMemberConnectionTypeResolver { - totalCount?: MemberConnectionToTotalCountResolver - pageInfo?: MemberConnectionToPageInfoResolver - edges?: MemberConnectionToEdgesResolver -} - -export interface MemberConnectionToTotalCountResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface MemberConnectionToPageInfoResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface MemberConnectionToEdgesResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface GQLMemberEdgeTypeResolver { - cursor?: MemberEdgeToCursorResolver - node?: MemberEdgeToNodeResolver -} - -export interface MemberEdgeToCursorResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface MemberEdgeToNodeResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface GQLMemberTypeResolver { - user?: MemberToUserResolver - price?: MemberToPriceResolver -} - -export interface MemberToUserResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface MemberToPriceResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface GQLInvitesTypeResolver { - accepted?: InvitesToAcceptedResolver - pending?: InvitesToPendingResolver -} - -export interface InvitesToAcceptedArgs { - input: GQLConnectionArgs -} -export interface InvitesToAcceptedResolver { - ( - parent: TParent, - args: InvitesToAcceptedArgs, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface InvitesToPendingArgs { - input: GQLConnectionArgs -} -export interface InvitesToPendingResolver { - ( - parent: TParent, - args: InvitesToPendingArgs, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface GQLInvitationConnectionTypeResolver { - totalCount?: InvitationConnectionToTotalCountResolver - pageInfo?: InvitationConnectionToPageInfoResolver - edges?: InvitationConnectionToEdgesResolver -} - -export interface InvitationConnectionToTotalCountResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface InvitationConnectionToPageInfoResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface InvitationConnectionToEdgesResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface GQLInvitationEdgeTypeResolver { - cursor?: InvitationEdgeToCursorResolver - node?: InvitationEdgeToNodeResolver -} - -export interface InvitationEdgeToCursorResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface InvitationEdgeToNodeResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface GQLInvitationTypeResolver { - id?: InvitationToIdResolver - invitee?: InvitationToInviteeResolver - inviter?: InvitationToInviterResolver - circle?: InvitationToCircleResolver - freePeriod?: InvitationToFreePeriodResolver - createdAt?: InvitationToCreatedAtResolver - sentAt?: InvitationToSentAtResolver - acceptedAt?: InvitationToAcceptedAtResolver - state?: InvitationToStateResolver -} - -export interface InvitationToIdResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface InvitationToInviteeResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface InvitationToInviterResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface InvitationToCircleResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface InvitationToFreePeriodResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface InvitationToCreatedAtResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface InvitationToSentAtResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface InvitationToAcceptedAtResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface InvitationToStateResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface GQLInviteeTypeResolver { - (parent: TParent, context: Context, info: GraphQLResolveInfo): - | 'Person' - | 'User' - | Promise<'Person' | 'User'> -} -export interface GQLPersonTypeResolver { - email?: PersonToEmailResolver -} - -export interface PersonToEmailResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface GQLCircleAnalyticsTypeResolver { - income?: CircleAnalyticsToIncomeResolver - subscriber?: CircleAnalyticsToSubscriberResolver - follower?: CircleAnalyticsToFollowerResolver - content?: CircleAnalyticsToContentResolver -} - -export interface CircleAnalyticsToIncomeResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface CircleAnalyticsToSubscriberResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface CircleAnalyticsToFollowerResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface CircleAnalyticsToContentResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface GQLCircleIncomeAnalyticsTypeResolver { - history?: CircleIncomeAnalyticsToHistoryResolver - total?: CircleIncomeAnalyticsToTotalResolver - thisMonth?: CircleIncomeAnalyticsToThisMonthResolver - nextMonth?: CircleIncomeAnalyticsToNextMonthResolver -} - -export interface CircleIncomeAnalyticsToHistoryResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface CircleIncomeAnalyticsToTotalResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface CircleIncomeAnalyticsToThisMonthResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface CircleIncomeAnalyticsToNextMonthResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface GQLMonthlyDatumTypeResolver { - value?: MonthlyDatumToValueResolver - date?: MonthlyDatumToDateResolver -} - -export interface MonthlyDatumToValueResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface MonthlyDatumToDateResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface GQLCircleSubscriberAnalyticsTypeResolver { - subscriberHistory?: CircleSubscriberAnalyticsToSubscriberHistoryResolver< - TParent - > - inviteeHistory?: CircleSubscriberAnalyticsToInviteeHistoryResolver - currentSubscriber?: CircleSubscriberAnalyticsToCurrentSubscriberResolver< - TParent - > - currentInvitee?: CircleSubscriberAnalyticsToCurrentInviteeResolver -} - -export interface CircleSubscriberAnalyticsToSubscriberHistoryResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface CircleSubscriberAnalyticsToInviteeHistoryResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface CircleSubscriberAnalyticsToCurrentSubscriberResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface CircleSubscriberAnalyticsToCurrentInviteeResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface GQLCircleFollowerAnalyticsTypeResolver { - history?: CircleFollowerAnalyticsToHistoryResolver - current?: CircleFollowerAnalyticsToCurrentResolver - followerPercentage?: CircleFollowerAnalyticsToFollowerPercentageResolver< - TParent - > -} - -export interface CircleFollowerAnalyticsToHistoryResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface CircleFollowerAnalyticsToCurrentResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface CircleFollowerAnalyticsToFollowerPercentageResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface GQLCircleContentAnalyticsTypeResolver { - public?: CircleContentAnalyticsToPublicResolver - paywall?: CircleContentAnalyticsToPaywallResolver -} - -export interface CircleContentAnalyticsToPublicResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface CircleContentAnalyticsToPaywallResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface GQLCircleContentAnalyticsDatumTypeResolver { - node?: CircleContentAnalyticsDatumToNodeResolver - readCount?: CircleContentAnalyticsDatumToReadCountResolver -} - -export interface CircleContentAnalyticsDatumToNodeResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface CircleContentAnalyticsDatumToReadCountResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface GQLUserCreateCircleActivityTypeResolver { - actor?: UserCreateCircleActivityToActorResolver - createdAt?: UserCreateCircleActivityToCreatedAtResolver - node?: UserCreateCircleActivityToNodeResolver -} - -export interface UserCreateCircleActivityToActorResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface UserCreateCircleActivityToCreatedAtResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface UserCreateCircleActivityToNodeResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface GQLUserRecommendationActivityTypeResolver { - source?: UserRecommendationActivityToSourceResolver - nodes?: UserRecommendationActivityToNodesResolver -} - -export interface UserRecommendationActivityToSourceResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface UserRecommendationActivityToNodesResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface GQLArticleRecommendationActivityTypeResolver { - source?: ArticleRecommendationActivityToSourceResolver - nodes?: ArticleRecommendationActivityToNodesResolver -} - -export interface ArticleRecommendationActivityToSourceResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface ArticleRecommendationActivityToNodesResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface GQLCircleRecommendationActivityTypeResolver { - source?: CircleRecommendationActivityToSourceResolver - nodes?: CircleRecommendationActivityToNodesResolver -} - -export interface CircleRecommendationActivityToSourceResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface CircleRecommendationActivityToNodesResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface GQLCircleConnectionTypeResolver { - totalCount?: CircleConnectionToTotalCountResolver - pageInfo?: CircleConnectionToPageInfoResolver - edges?: CircleConnectionToEdgesResolver -} - -export interface CircleConnectionToTotalCountResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface CircleConnectionToPageInfoResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface CircleConnectionToEdgesResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface GQLCircleEdgeTypeResolver { - cursor?: CircleEdgeToCursorResolver - node?: CircleEdgeToNodeResolver -} - -export interface CircleEdgeToCursorResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface CircleEdgeToNodeResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface GQLTopicConnectionTypeResolver { - totalCount?: TopicConnectionToTotalCountResolver - pageInfo?: TopicConnectionToPageInfoResolver - edges?: TopicConnectionToEdgesResolver -} - -export interface TopicConnectionToTotalCountResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface TopicConnectionToPageInfoResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface TopicConnectionToEdgesResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface GQLTopicEdgeTypeResolver { - cursor?: TopicEdgeToCursorResolver - node?: TopicEdgeToNodeResolver -} - -export interface TopicEdgeToCursorResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface TopicEdgeToNodeResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface GQLTopicTypeResolver { - id?: TopicToIdResolver - title?: TopicToTitleResolver - cover?: TopicToCoverResolver - description?: TopicToDescriptionResolver - chapterCount?: TopicToChapterCountResolver - articleCount?: TopicToArticleCountResolver - chapters?: TopicToChaptersResolver - articles?: TopicToArticlesResolver - author?: TopicToAuthorResolver - public?: TopicToPublicResolver - latestArticle?: TopicToLatestArticleResolver -} - -export interface TopicToIdResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface TopicToTitleResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface TopicToCoverResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface TopicToDescriptionResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface TopicToChapterCountResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface TopicToArticleCountResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface TopicToChaptersResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface TopicToArticlesResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface TopicToAuthorResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface TopicToPublicResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface TopicToLatestArticleResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface GQLChapterTypeResolver { - id?: ChapterToIdResolver - title?: ChapterToTitleResolver - description?: ChapterToDescriptionResolver - articleCount?: ChapterToArticleCountResolver - articles?: ChapterToArticlesResolver - topic?: ChapterToTopicResolver -} - -export interface ChapterToIdResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface ChapterToTitleResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface ChapterToDescriptionResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface ChapterToArticleCountResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface ChapterToArticlesResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface ChapterToTopicResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface GQLDraftConnectionTypeResolver { - totalCount?: DraftConnectionToTotalCountResolver - pageInfo?: DraftConnectionToPageInfoResolver - edges?: DraftConnectionToEdgesResolver -} - -export interface DraftConnectionToTotalCountResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface DraftConnectionToPageInfoResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface DraftConnectionToEdgesResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface GQLDraftEdgeTypeResolver { - cursor?: DraftEdgeToCursorResolver - node?: DraftEdgeToNodeResolver -} - -export interface DraftEdgeToCursorResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface DraftEdgeToNodeResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface GQLDraftTypeResolver { - id?: DraftToIdResolver - mediaHash?: DraftToMediaHashResolver - title?: DraftToTitleResolver - slug?: DraftToSlugResolver - summary?: DraftToSummaryResolver - summaryCustomized?: DraftToSummaryCustomizedResolver - content?: DraftToContentResolver - createdAt?: DraftToCreatedAtResolver - updatedAt?: DraftToUpdatedAtResolver - wordCount?: DraftToWordCountResolver - tags?: DraftToTagsResolver - cover?: DraftToCoverResolver - publishState?: DraftToPublishStateResolver - assets?: DraftToAssetsResolver - article?: DraftToArticleResolver - collection?: DraftToCollectionResolver - access?: DraftToAccessResolver - license?: DraftToLicenseResolver - requestForDonation?: DraftToRequestForDonationResolver - replyToDonator?: DraftToReplyToDonatorResolver - iscnPublish?: DraftToIscnPublishResolver - canComment?: DraftToCanCommentResolver -} - -export interface DraftToIdResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface DraftToMediaHashResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface DraftToTitleResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface DraftToSlugResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface DraftToSummaryResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface DraftToSummaryCustomizedResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface DraftToContentResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface DraftToCreatedAtResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface DraftToUpdatedAtResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface DraftToWordCountResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface DraftToTagsResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface DraftToCoverResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface DraftToPublishStateResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface DraftToAssetsResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface DraftToArticleResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface DraftToCollectionArgs { - input: GQLConnectionArgs -} -export interface DraftToCollectionResolver { - ( - parent: TParent, - args: DraftToCollectionArgs, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface DraftToAccessResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface DraftToLicenseResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface DraftToRequestForDonationResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface DraftToReplyToDonatorResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface DraftToIscnPublishResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface DraftToCanCommentResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface GQLAssetTypeResolver { - id?: AssetToIdResolver - type?: AssetToTypeResolver - path?: AssetToPathResolver - createdAt?: AssetToCreatedAtResolver -} - -export interface AssetToIdResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface AssetToTypeResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface AssetToPathResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface AssetToCreatedAtResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface GQLDraftAccessTypeResolver { - type?: DraftAccessToTypeResolver - circle?: DraftAccessToCircleResolver -} - -export interface DraftAccessToTypeResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface DraftAccessToCircleResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface GQLUserActivityTypeResolver { - history?: UserActivityToHistoryResolver - recentSearches?: UserActivityToRecentSearchesResolver - appreciationsSent?: UserActivityToAppreciationsSentResolver - appreciationsSentTotal?: UserActivityToAppreciationsSentTotalResolver - appreciationsReceived?: UserActivityToAppreciationsReceivedResolver - appreciationsReceivedTotal?: UserActivityToAppreciationsReceivedTotalResolver< - TParent - > -} - -export interface UserActivityToHistoryArgs { - input: GQLConnectionArgs -} -export interface UserActivityToHistoryResolver { - ( - parent: TParent, - args: UserActivityToHistoryArgs, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface UserActivityToRecentSearchesArgs { - input: GQLConnectionArgs -} -export interface UserActivityToRecentSearchesResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: UserActivityToRecentSearchesArgs, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface UserActivityToAppreciationsSentArgs { - input: GQLConnectionArgs -} -export interface UserActivityToAppreciationsSentResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: UserActivityToAppreciationsSentArgs, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface UserActivityToAppreciationsSentTotalResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface UserActivityToAppreciationsReceivedArgs { - input: GQLConnectionArgs -} -export interface UserActivityToAppreciationsReceivedResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: UserActivityToAppreciationsReceivedArgs, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface UserActivityToAppreciationsReceivedTotalResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface GQLReadHistoryConnectionTypeResolver { - totalCount?: ReadHistoryConnectionToTotalCountResolver - pageInfo?: ReadHistoryConnectionToPageInfoResolver - edges?: ReadHistoryConnectionToEdgesResolver -} - -export interface ReadHistoryConnectionToTotalCountResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface ReadHistoryConnectionToPageInfoResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface ReadHistoryConnectionToEdgesResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface GQLReadHistoryEdgeTypeResolver { - cursor?: ReadHistoryEdgeToCursorResolver - node?: ReadHistoryEdgeToNodeResolver -} - -export interface ReadHistoryEdgeToCursorResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface ReadHistoryEdgeToNodeResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface GQLReadHistoryTypeResolver { - article?: ReadHistoryToArticleResolver - readAt?: ReadHistoryToReadAtResolver -} - -export interface ReadHistoryToArticleResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface ReadHistoryToReadAtResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface GQLRecentSearchConnectionTypeResolver { - totalCount?: RecentSearchConnectionToTotalCountResolver - pageInfo?: RecentSearchConnectionToPageInfoResolver - edges?: RecentSearchConnectionToEdgesResolver -} - -export interface RecentSearchConnectionToTotalCountResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface RecentSearchConnectionToPageInfoResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface RecentSearchConnectionToEdgesResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface GQLRecentSearchEdgeTypeResolver { - cursor?: RecentSearchEdgeToCursorResolver - node?: RecentSearchEdgeToNodeResolver -} - -export interface RecentSearchEdgeToCursorResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface RecentSearchEdgeToNodeResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface GQLAppreciationConnectionTypeResolver { - totalCount?: AppreciationConnectionToTotalCountResolver - pageInfo?: AppreciationConnectionToPageInfoResolver - edges?: AppreciationConnectionToEdgesResolver -} - -export interface AppreciationConnectionToTotalCountResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface AppreciationConnectionToPageInfoResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface AppreciationConnectionToEdgesResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface GQLAppreciationEdgeTypeResolver { - cursor?: AppreciationEdgeToCursorResolver - node?: AppreciationEdgeToNodeResolver -} - -export interface AppreciationEdgeToCursorResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface AppreciationEdgeToNodeResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface GQLAppreciationTypeResolver { - amount?: AppreciationToAmountResolver - purpose?: AppreciationToPurposeResolver - content?: AppreciationToContentResolver - createdAt?: AppreciationToCreatedAtResolver - recipient?: AppreciationToRecipientResolver - sender?: AppreciationToSenderResolver - target?: AppreciationToTargetResolver -} - -export interface AppreciationToAmountResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface AppreciationToPurposeResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface AppreciationToContentResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface AppreciationToCreatedAtResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface AppreciationToRecipientResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface AppreciationToSenderResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface AppreciationToTargetResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface GQLFollowingTypeResolver { - circles?: FollowingToCirclesResolver - tags?: FollowingToTagsResolver - users?: FollowingToUsersResolver -} - -export interface FollowingToCirclesArgs { - input: GQLConnectionArgs -} -export interface FollowingToCirclesResolver { - ( - parent: TParent, - args: FollowingToCirclesArgs, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface FollowingToTagsArgs { - input: GQLConnectionArgs -} -export interface FollowingToTagsResolver { - ( - parent: TParent, - args: FollowingToTagsArgs, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface FollowingToUsersArgs { - input: GQLConnectionArgs -} -export interface FollowingToUsersResolver { - ( - parent: TParent, - args: FollowingToUsersArgs, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface GQLUserAnalyticsTypeResolver { - topDonators?: UserAnalyticsToTopDonatorsResolver -} - -export interface UserAnalyticsToTopDonatorsArgs { - input: GQLTopDonatorInput -} -export interface UserAnalyticsToTopDonatorsResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: UserAnalyticsToTopDonatorsArgs, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface GQLTopDonatorConnectionTypeResolver { - totalCount?: TopDonatorConnectionToTotalCountResolver - pageInfo?: TopDonatorConnectionToPageInfoResolver - edges?: TopDonatorConnectionToEdgesResolver -} - -export interface TopDonatorConnectionToTotalCountResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface TopDonatorConnectionToPageInfoResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface TopDonatorConnectionToEdgesResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface GQLTopDonatorEdgeTypeResolver { - cursor?: TopDonatorEdgeToCursorResolver - node?: TopDonatorEdgeToNodeResolver - donationCount?: TopDonatorEdgeToDonationCountResolver -} - -export interface TopDonatorEdgeToCursorResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface TopDonatorEdgeToNodeResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface TopDonatorEdgeToDonationCountResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface GQLUserStatusTypeResolver { - state?: UserStatusToStateResolver - role?: UserStatusToRoleResolver - articleCount?: UserStatusToArticleCountResolver - commentCount?: UserStatusToCommentCountResolver - unreadNoticeCount?: UserStatusToUnreadNoticeCountResolver - unreadFollowing?: UserStatusToUnreadFollowingResolver - totalWordCount?: UserStatusToTotalWordCountResolver - hasPaymentPassword?: UserStatusToHasPaymentPasswordResolver - donatedArticleCount?: UserStatusToDonatedArticleCountResolver - receivedDonationCount?: UserStatusToReceivedDonationCountResolver -} - -export interface UserStatusToStateResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface UserStatusToRoleResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface UserStatusToArticleCountResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface UserStatusToCommentCountResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface UserStatusToUnreadNoticeCountResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface UserStatusToUnreadFollowingResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface UserStatusToTotalWordCountResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface UserStatusToHasPaymentPasswordResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface UserStatusToDonatedArticleCountResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface UserStatusToReceivedDonationCountResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface GQLUserOSSTypeResolver { - boost?: UserOSSToBoostResolver - score?: UserOSSToScoreResolver - restrictions?: UserOSSToRestrictionsResolver -} - -export interface UserOSSToBoostResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface UserOSSToScoreResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface UserOSSToRestrictionsResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface GQLUserRestrictionTypeResolver { - type?: UserRestrictionToTypeResolver - createdAt?: UserRestrictionToCreatedAtResolver -} - -export interface UserRestrictionToTypeResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface UserRestrictionToCreatedAtResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface GQLNoticeConnectionTypeResolver { - totalCount?: NoticeConnectionToTotalCountResolver - pageInfo?: NoticeConnectionToPageInfoResolver - edges?: NoticeConnectionToEdgesResolver -} - -export interface NoticeConnectionToTotalCountResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface NoticeConnectionToPageInfoResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface NoticeConnectionToEdgesResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface GQLNoticeEdgeTypeResolver { - cursor?: NoticeEdgeToCursorResolver - node?: NoticeEdgeToNodeResolver -} - -export interface NoticeEdgeToCursorResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface NoticeEdgeToNodeResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface GQLNoticeTypeResolver { - (parent: TParent, context: Context, info: GraphQLResolveInfo): - | 'ArticleArticleNotice' - | 'ArticleNotice' - | 'ArticleTagNotice' - | 'CircleNotice' - | 'CommentCommentNotice' - | 'CommentNotice' - | 'CryptoNotice' - | 'OfficialAnnouncementNotice' - | 'TagNotice' - | 'TransactionNotice' - | 'UserNotice' - | Promise< - | 'ArticleArticleNotice' - | 'ArticleNotice' - | 'ArticleTagNotice' - | 'CircleNotice' - | 'CommentCommentNotice' - | 'CommentNotice' - | 'CryptoNotice' - | 'OfficialAnnouncementNotice' - | 'TagNotice' - | 'TransactionNotice' - | 'UserNotice' - > -} -export interface GQLWalletTypeResolver { - balance?: WalletToBalanceResolver - transactions?: WalletToTransactionsResolver - stripeAccount?: WalletToStripeAccountResolver - customerPortal?: WalletToCustomerPortalResolver - cardLast4?: WalletToCardLast4Resolver -} - -export interface WalletToBalanceResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface WalletToTransactionsArgs { - input: GQLTransactionsArgs -} -export interface WalletToTransactionsResolver { - ( - parent: TParent, - args: WalletToTransactionsArgs, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface WalletToStripeAccountResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface WalletToCustomerPortalResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface WalletToCardLast4Resolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface GQLBalanceTypeResolver { - HKD?: BalanceToHKDResolver -} - -export interface BalanceToHKDResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface GQLTransactionConnectionTypeResolver { - totalCount?: TransactionConnectionToTotalCountResolver - pageInfo?: TransactionConnectionToPageInfoResolver - edges?: TransactionConnectionToEdgesResolver -} - -export interface TransactionConnectionToTotalCountResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface TransactionConnectionToPageInfoResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface TransactionConnectionToEdgesResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface GQLTransactionEdgeTypeResolver { - cursor?: TransactionEdgeToCursorResolver - node?: TransactionEdgeToNodeResolver -} - -export interface TransactionEdgeToCursorResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface TransactionEdgeToNodeResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface GQLTransactionTypeResolver { - id?: TransactionToIdResolver - state?: TransactionToStateResolver - purpose?: TransactionToPurposeResolver - amount?: TransactionToAmountResolver - fee?: TransactionToFeeResolver - currency?: TransactionToCurrencyResolver - createdAt?: TransactionToCreatedAtResolver - recipient?: TransactionToRecipientResolver - sender?: TransactionToSenderResolver - target?: TransactionToTargetResolver - message?: TransactionToMessageResolver - blockchainTx?: TransactionToBlockchainTxResolver -} - -export interface TransactionToIdResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface TransactionToStateResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface TransactionToPurposeResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface TransactionToAmountResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface TransactionToFeeResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface TransactionToCurrencyResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface TransactionToCreatedAtResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface TransactionToRecipientResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface TransactionToSenderResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface TransactionToTargetResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface TransactionToMessageResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface TransactionToBlockchainTxResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface GQLTransactionTargetTypeResolver { - (parent: TParent, context: Context, info: GraphQLResolveInfo): - | 'Article' - | 'Circle' - | 'Transaction' - | Promise<'Article' | 'Circle' | 'Transaction'> -} -export interface GQLBlockchainTransactionTypeResolver { - chain?: BlockchainTransactionToChainResolver - txHash?: BlockchainTransactionToTxHashResolver -} - -export interface BlockchainTransactionToChainResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface BlockchainTransactionToTxHashResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface GQLStripeAccountTypeResolver { - id?: StripeAccountToIdResolver - loginUrl?: StripeAccountToLoginUrlResolver -} - -export interface StripeAccountToIdResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface StripeAccountToLoginUrlResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface GQLArticleTranslationTypeResolver { - title?: ArticleTranslationToTitleResolver - content?: ArticleTranslationToContentResolver - summary?: ArticleTranslationToSummaryResolver - language?: ArticleTranslationToLanguageResolver -} - -export interface ArticleTranslationToTitleResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface ArticleTranslationToContentResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface ArticleTranslationToSummaryResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface ArticleTranslationToLanguageResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface GQLArticleAccessTypeResolver { - type?: ArticleAccessToTypeResolver - secret?: ArticleAccessToSecretResolver - circle?: ArticleAccessToCircleResolver -} - -export interface ArticleAccessToTypeResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface ArticleAccessToSecretResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface ArticleAccessToCircleResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface GQLArticleOSSTypeResolver { - boost?: ArticleOSSToBoostResolver - score?: ArticleOSSToScoreResolver - inRecommendIcymi?: ArticleOSSToInRecommendIcymiResolver - inRecommendHottest?: ArticleOSSToInRecommendHottestResolver - inRecommendNewest?: ArticleOSSToInRecommendNewestResolver -} - -export interface ArticleOSSToBoostResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface ArticleOSSToScoreResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface ArticleOSSToInRecommendIcymiResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface ArticleOSSToInRecommendHottestResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface ArticleOSSToInRecommendNewestResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface GQLResponseConnectionTypeResolver { - totalCount?: ResponseConnectionToTotalCountResolver - pageInfo?: ResponseConnectionToPageInfoResolver - edges?: ResponseConnectionToEdgesResolver -} - -export interface ResponseConnectionToTotalCountResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface ResponseConnectionToPageInfoResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface ResponseConnectionToEdgesResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface GQLResponseEdgeTypeResolver { - cursor?: ResponseEdgeToCursorResolver - node?: ResponseEdgeToNodeResolver -} - -export interface ResponseEdgeToCursorResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface ResponseEdgeToNodeResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface GQLResponseTypeResolver { - (parent: TParent, context: Context, info: GraphQLResolveInfo): - | 'Article' - | 'Comment' - | Promise<'Article' | 'Comment'> -} -export interface GQLSearchResultConnectionTypeResolver { - totalCount?: SearchResultConnectionToTotalCountResolver - pageInfo?: SearchResultConnectionToPageInfoResolver - edges?: SearchResultConnectionToEdgesResolver -} - -export interface SearchResultConnectionToTotalCountResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface SearchResultConnectionToPageInfoResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface SearchResultConnectionToEdgesResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface GQLSearchResultEdgeTypeResolver { - cursor?: SearchResultEdgeToCursorResolver - node?: SearchResultEdgeToNodeResolver -} - -export interface SearchResultEdgeToCursorResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface SearchResultEdgeToNodeResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface GQLOfficialTypeResolver { - features?: OfficialToFeaturesResolver - announcements?: OfficialToAnnouncementsResolver -} - -export interface OfficialToFeaturesResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface OfficialToAnnouncementsArgs { - input: GQLAnnouncementsInput -} -export interface OfficialToAnnouncementsResolver { - ( - parent: TParent, - args: OfficialToAnnouncementsArgs, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface GQLFeatureTypeResolver { - name?: FeatureToNameResolver - enabled?: FeatureToEnabledResolver -} - -export interface FeatureToNameResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface FeatureToEnabledResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface GQLAnnouncementTypeResolver { - id?: AnnouncementToIdResolver - title?: AnnouncementToTitleResolver - cover?: AnnouncementToCoverResolver - content?: AnnouncementToContentResolver - link?: AnnouncementToLinkResolver - type?: AnnouncementToTypeResolver - visible?: AnnouncementToVisibleResolver - order?: AnnouncementToOrderResolver - createdAt?: AnnouncementToCreatedAtResolver - updatedAt?: AnnouncementToUpdatedAtResolver - translations?: AnnouncementToTranslationsResolver -} - -export interface AnnouncementToIdResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface AnnouncementToTitleResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface AnnouncementToCoverResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface AnnouncementToContentResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface AnnouncementToLinkResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface AnnouncementToTypeResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface AnnouncementToVisibleResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface AnnouncementToOrderResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface AnnouncementToCreatedAtResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface AnnouncementToUpdatedAtResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface AnnouncementToTranslationsResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface GQLTranslatedAnnouncementTypeResolver { - language?: TranslatedAnnouncementToLanguageResolver - title?: TranslatedAnnouncementToTitleResolver - cover?: TranslatedAnnouncementToCoverResolver - content?: TranslatedAnnouncementToContentResolver - link?: TranslatedAnnouncementToLinkResolver -} - -export interface TranslatedAnnouncementToLanguageResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface TranslatedAnnouncementToTitleResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface TranslatedAnnouncementToCoverResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface TranslatedAnnouncementToContentResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface TranslatedAnnouncementToLinkResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface GQLOSSTypeResolver { - users?: OSSToUsersResolver - comments?: OSSToCommentsResolver - articles?: OSSToArticlesResolver - tags?: OSSToTagsResolver - oauthClients?: OSSToOauthClientsResolver - skippedListItems?: OSSToSkippedListItemsResolver - seedingUsers?: OSSToSeedingUsersResolver - badgedUsers?: OSSToBadgedUsersResolver - restrictedUsers?: OSSToRestrictedUsersResolver -} - -export interface OSSToUsersArgs { - input: GQLConnectionArgs -} -export interface OSSToUsersResolver { - ( - parent: TParent, - args: OSSToUsersArgs, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface OSSToCommentsArgs { - input: GQLConnectionArgs -} -export interface OSSToCommentsResolver { - ( - parent: TParent, - args: OSSToCommentsArgs, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface OSSToArticlesArgs { - input: GQLConnectionArgs -} -export interface OSSToArticlesResolver { - ( - parent: TParent, - args: OSSToArticlesArgs, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface OSSToTagsArgs { - input: GQLTagsInput -} -export interface OSSToTagsResolver { - ( - parent: TParent, - args: OSSToTagsArgs, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface OSSToOauthClientsArgs { - input: GQLConnectionArgs -} -export interface OSSToOauthClientsResolver { - ( - parent: TParent, - args: OSSToOauthClientsArgs, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface OSSToSkippedListItemsArgs { - input: GQLSkippedListItemsInput -} -export interface OSSToSkippedListItemsResolver { - ( - parent: TParent, - args: OSSToSkippedListItemsArgs, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface OSSToSeedingUsersArgs { - input: GQLConnectionArgs -} -export interface OSSToSeedingUsersResolver { - ( - parent: TParent, - args: OSSToSeedingUsersArgs, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface OSSToBadgedUsersArgs { - input: GQLBadgedUsersInput -} -export interface OSSToBadgedUsersResolver { - ( - parent: TParent, - args: OSSToBadgedUsersArgs, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface OSSToRestrictedUsersArgs { - input: GQLConnectionArgs -} -export interface OSSToRestrictedUsersResolver { - ( - parent: TParent, - args: OSSToRestrictedUsersArgs, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface GQLOAuthClientConnectionTypeResolver { - totalCount?: OAuthClientConnectionToTotalCountResolver - pageInfo?: OAuthClientConnectionToPageInfoResolver - edges?: OAuthClientConnectionToEdgesResolver -} - -export interface OAuthClientConnectionToTotalCountResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface OAuthClientConnectionToPageInfoResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface OAuthClientConnectionToEdgesResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface GQLOAuthClientEdgeTypeResolver { - cursor?: OAuthClientEdgeToCursorResolver - node?: OAuthClientEdgeToNodeResolver -} - -export interface OAuthClientEdgeToCursorResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface OAuthClientEdgeToNodeResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface GQLOAuthClientTypeResolver { - id?: OAuthClientToIdResolver - name?: OAuthClientToNameResolver - description?: OAuthClientToDescriptionResolver - website?: OAuthClientToWebsiteResolver - scope?: OAuthClientToScopeResolver - avatar?: OAuthClientToAvatarResolver - secret?: OAuthClientToSecretResolver - redirectURIs?: OAuthClientToRedirectURIsResolver - grantTypes?: OAuthClientToGrantTypesResolver - user?: OAuthClientToUserResolver - createdAt?: OAuthClientToCreatedAtResolver -} - -export interface OAuthClientToIdResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface OAuthClientToNameResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface OAuthClientToDescriptionResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface OAuthClientToWebsiteResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface OAuthClientToScopeResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface OAuthClientToAvatarResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface OAuthClientToSecretResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface OAuthClientToRedirectURIsResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface OAuthClientToGrantTypesResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface OAuthClientToUserResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface OAuthClientToCreatedAtResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface GQLSkippedListItemsConnectionTypeResolver { - totalCount?: SkippedListItemsConnectionToTotalCountResolver - pageInfo?: SkippedListItemsConnectionToPageInfoResolver - edges?: SkippedListItemsConnectionToEdgesResolver -} - -export interface SkippedListItemsConnectionToTotalCountResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface SkippedListItemsConnectionToPageInfoResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface SkippedListItemsConnectionToEdgesResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface GQLSkippedListItemEdgeTypeResolver { - cursor?: SkippedListItemEdgeToCursorResolver - node?: SkippedListItemEdgeToNodeResolver -} - -export interface SkippedListItemEdgeToCursorResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface SkippedListItemEdgeToNodeResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface GQLSkippedListItemTypeResolver { - id?: SkippedListItemToIdResolver - uuid?: SkippedListItemToUuidResolver - type?: SkippedListItemToTypeResolver - value?: SkippedListItemToValueResolver - archived?: SkippedListItemToArchivedResolver - createdAt?: SkippedListItemToCreatedAtResolver - updatedAt?: SkippedListItemToUpdatedAtResolver -} - -export interface SkippedListItemToIdResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface SkippedListItemToUuidResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface SkippedListItemToTypeResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface SkippedListItemToValueResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface SkippedListItemToArchivedResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface SkippedListItemToCreatedAtResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface SkippedListItemToUpdatedAtResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface GQLExchangeRateTypeResolver { - from?: ExchangeRateToFromResolver - to?: ExchangeRateToToResolver - rate?: ExchangeRateToRateResolver - updatedAt?: ExchangeRateToUpdatedAtResolver -} - -export interface ExchangeRateToFromResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface ExchangeRateToToResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface ExchangeRateToRateResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface ExchangeRateToUpdatedAtResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface GQLMutationTypeResolver { - publishArticle?: MutationToPublishArticleResolver - editArticle?: MutationToEditArticleResolver - toggleSubscribeArticle?: MutationToToggleSubscribeArticleResolver - appreciateArticle?: MutationToAppreciateArticleResolver - readArticle?: MutationToReadArticleResolver - putTopic?: MutationToPutTopicResolver - putChapter?: MutationToPutChapterResolver - deleteTopics?: MutationToDeleteTopicsResolver - sortTopics?: MutationToSortTopicsResolver - toggleFollowTag?: MutationToToggleFollowTagResolver - togglePinTag?: MutationToTogglePinTagResolver - putTag?: MutationToPutTagResolver - updateTagSetting?: MutationToUpdateTagSettingResolver - addArticlesTags?: MutationToAddArticlesTagsResolver - updateArticlesTags?: MutationToUpdateArticlesTagsResolver - deleteArticlesTags?: MutationToDeleteArticlesTagsResolver - toggleArticleRecommend?: MutationToToggleArticleRecommendResolver - updateArticleState?: MutationToUpdateArticleStateResolver - toggleTagRecommend?: MutationToToggleTagRecommendResolver - deleteTags?: MutationToDeleteTagsResolver - renameTag?: MutationToRenameTagResolver - mergeTags?: MutationToMergeTagsResolver - putCircle?: MutationToPutCircleResolver - toggleFollowCircle?: MutationToToggleFollowCircleResolver - subscribeCircle?: MutationToSubscribeCircleResolver - unsubscribeCircle?: MutationToUnsubscribeCircleResolver - putCircleArticles?: MutationToPutCircleArticlesResolver - invite?: MutationToInviteResolver - putComment?: MutationToPutCommentResolver - deleteComment?: MutationToDeleteCommentResolver - togglePinComment?: MutationToTogglePinCommentResolver - voteComment?: MutationToVoteCommentResolver - unvoteComment?: MutationToUnvoteCommentResolver - updateCommentsState?: MutationToUpdateCommentsStateResolver - pinComment?: MutationToPinCommentResolver - unpinComment?: MutationToUnpinCommentResolver - putDraft?: MutationToPutDraftResolver - deleteDraft?: MutationToDeleteDraftResolver - markAllNoticesAsRead?: MutationToMarkAllNoticesAsReadResolver - singleFileUpload?: MutationToSingleFileUploadResolver - logRecord?: MutationToLogRecordResolver - addBlockedSearchKeyword?: MutationToAddBlockedSearchKeywordResolver - deleteBlockedSearchKeywords?: MutationToDeleteBlockedSearchKeywordsResolver< - TParent - > - setBoost?: MutationToSetBoostResolver - putRemark?: MutationToPutRemarkResolver - putSkippedListItem?: MutationToPutSkippedListItemResolver - setFeature?: MutationToSetFeatureResolver - toggleSeedingUsers?: MutationToToggleSeedingUsersResolver - putAnnouncement?: MutationToPutAnnouncementResolver - deleteAnnouncements?: MutationToDeleteAnnouncementsResolver - putRestrictedUsers?: MutationToPutRestrictedUsersResolver - sendVerificationCode?: MutationToSendVerificationCodeResolver - confirmVerificationCode?: MutationToConfirmVerificationCodeResolver - resetPassword?: MutationToResetPasswordResolver - changeEmail?: MutationToChangeEmailResolver - setCurrency?: MutationToSetCurrencyResolver - userRegister?: MutationToUserRegisterResolver - userLogin?: MutationToUserLoginResolver - generateSigningMessage?: MutationToGenerateSigningMessageResolver - walletLogin?: MutationToWalletLoginResolver - resetWallet?: MutationToResetWalletResolver - userLogout?: MutationToUserLogoutResolver - generateLikerId?: MutationToGenerateLikerIdResolver - resetLikerId?: MutationToResetLikerIdResolver - updateUserInfo?: MutationToUpdateUserInfoResolver - updateNotificationSetting?: MutationToUpdateNotificationSettingResolver< - TParent - > - toggleFollowUser?: MutationToToggleFollowUserResolver - toggleBlockUser?: MutationToToggleBlockUserResolver - clearReadHistory?: MutationToClearReadHistoryResolver - clearSearchHistory?: MutationToClearSearchHistoryResolver - migration?: MutationToMigrationResolver - claimLogbooks?: MutationToClaimLogbooksResolver - putFeaturedTags?: MutationToPutFeaturedTagsResolver - updateUserState?: MutationToUpdateUserStateResolver - updateUserRole?: MutationToUpdateUserRoleResolver - refreshIPNSFeed?: MutationToRefreshIPNSFeedResolver - toggleUsersBadge?: MutationToToggleUsersBadgeResolver - unbindLikerId?: MutationToUnbindLikerIdResolver - addCredit?: MutationToAddCreditResolver - payTo?: MutationToPayToResolver - payout?: MutationToPayoutResolver - connectStripeAccount?: MutationToConnectStripeAccountResolver - putOAuthClient?: MutationToPutOAuthClientResolver -} - -export interface MutationToPublishArticleArgs { - input: GQLPublishArticleInput -} -export interface MutationToPublishArticleResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: MutationToPublishArticleArgs, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface MutationToEditArticleArgs { - input: GQLEditArticleInput -} -export interface MutationToEditArticleResolver { - ( - parent: TParent, - args: MutationToEditArticleArgs, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface MutationToToggleSubscribeArticleArgs { - input: GQLToggleItemInput -} -export interface MutationToToggleSubscribeArticleResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: MutationToToggleSubscribeArticleArgs, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface MutationToAppreciateArticleArgs { - input: GQLAppreciateArticleInput -} -export interface MutationToAppreciateArticleResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: MutationToAppreciateArticleArgs, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface MutationToReadArticleArgs { - input: GQLReadArticleInput -} -export interface MutationToReadArticleResolver { - ( - parent: TParent, - args: MutationToReadArticleArgs, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface MutationToPutTopicArgs { - input: GQLPutTopicInput -} -export interface MutationToPutTopicResolver { - ( - parent: TParent, - args: MutationToPutTopicArgs, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface MutationToPutChapterArgs { - input: GQLPutChapterInput -} -export interface MutationToPutChapterResolver { - ( - parent: TParent, - args: MutationToPutChapterArgs, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface MutationToDeleteTopicsArgs { - input: GQLDeleteTopicsInput -} -export interface MutationToDeleteTopicsResolver { - ( - parent: TParent, - args: MutationToDeleteTopicsArgs, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface MutationToSortTopicsArgs { - input: GQLSortTopicsInput -} -export interface MutationToSortTopicsResolver { - ( - parent: TParent, - args: MutationToSortTopicsArgs, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface MutationToToggleFollowTagArgs { - input: GQLToggleItemInput -} -export interface MutationToToggleFollowTagResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: MutationToToggleFollowTagArgs, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface MutationToTogglePinTagArgs { - input: GQLToggleItemInput -} -export interface MutationToTogglePinTagResolver { - ( - parent: TParent, - args: MutationToTogglePinTagArgs, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface MutationToPutTagArgs { - input: GQLPutTagInput -} -export interface MutationToPutTagResolver { - ( - parent: TParent, - args: MutationToPutTagArgs, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface MutationToUpdateTagSettingArgs { - input: GQLUpdateTagSettingInput -} -export interface MutationToUpdateTagSettingResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: MutationToUpdateTagSettingArgs, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface MutationToAddArticlesTagsArgs { - input: GQLAddArticlesTagsInput -} -export interface MutationToAddArticlesTagsResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: MutationToAddArticlesTagsArgs, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface MutationToUpdateArticlesTagsArgs { - input: GQLUpdateArticlesTagsInput -} -export interface MutationToUpdateArticlesTagsResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: MutationToUpdateArticlesTagsArgs, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface MutationToDeleteArticlesTagsArgs { - input: GQLDeleteArticlesTagsInput -} -export interface MutationToDeleteArticlesTagsResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: MutationToDeleteArticlesTagsArgs, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface MutationToToggleArticleRecommendArgs { - input: GQLToggleRecommendInput -} -export interface MutationToToggleArticleRecommendResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: MutationToToggleArticleRecommendArgs, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface MutationToUpdateArticleStateArgs { - input: GQLUpdateArticleStateInput -} -export interface MutationToUpdateArticleStateResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: MutationToUpdateArticleStateArgs, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface MutationToToggleTagRecommendArgs { - input: GQLToggleRecommendInput -} -export interface MutationToToggleTagRecommendResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: MutationToToggleTagRecommendArgs, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface MutationToDeleteTagsArgs { - input: GQLDeleteTagsInput -} -export interface MutationToDeleteTagsResolver { - ( - parent: TParent, - args: MutationToDeleteTagsArgs, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface MutationToRenameTagArgs { - input: GQLRenameTagInput -} -export interface MutationToRenameTagResolver { - ( - parent: TParent, - args: MutationToRenameTagArgs, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface MutationToMergeTagsArgs { - input: GQLMergeTagsInput -} -export interface MutationToMergeTagsResolver { - ( - parent: TParent, - args: MutationToMergeTagsArgs, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface MutationToPutCircleArgs { - input: GQLPutCircleInput -} -export interface MutationToPutCircleResolver { - ( - parent: TParent, - args: MutationToPutCircleArgs, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface MutationToToggleFollowCircleArgs { - input: GQLToggleItemInput -} -export interface MutationToToggleFollowCircleResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: MutationToToggleFollowCircleArgs, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface MutationToSubscribeCircleArgs { - input: GQLSubscribeCircleInput -} -export interface MutationToSubscribeCircleResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: MutationToSubscribeCircleArgs, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface MutationToUnsubscribeCircleArgs { - input: GQLUnsubscribeCircleInput -} -export interface MutationToUnsubscribeCircleResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: MutationToUnsubscribeCircleArgs, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface MutationToPutCircleArticlesArgs { - input: GQLPutCircleArticlesInput -} -export interface MutationToPutCircleArticlesResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: MutationToPutCircleArticlesArgs, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface MutationToInviteArgs { - input: GQLInviteCircleInput -} -export interface MutationToInviteResolver { - ( - parent: TParent, - args: MutationToInviteArgs, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface MutationToPutCommentArgs { - input: GQLPutCommentInput -} -export interface MutationToPutCommentResolver { - ( - parent: TParent, - args: MutationToPutCommentArgs, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface MutationToDeleteCommentArgs { - input: GQLDeleteCommentInput -} -export interface MutationToDeleteCommentResolver { - ( - parent: TParent, - args: MutationToDeleteCommentArgs, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface MutationToTogglePinCommentArgs { - input: GQLToggleItemInput -} -export interface MutationToTogglePinCommentResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: MutationToTogglePinCommentArgs, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface MutationToVoteCommentArgs { - input: GQLVoteCommentInput -} -export interface MutationToVoteCommentResolver { - ( - parent: TParent, - args: MutationToVoteCommentArgs, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface MutationToUnvoteCommentArgs { - input: GQLUnvoteCommentInput -} -export interface MutationToUnvoteCommentResolver { - ( - parent: TParent, - args: MutationToUnvoteCommentArgs, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface MutationToUpdateCommentsStateArgs { - input: GQLUpdateCommentsStateInput -} -export interface MutationToUpdateCommentsStateResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: MutationToUpdateCommentsStateArgs, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface MutationToPinCommentArgs { - input: GQLPinCommentInput -} -export interface MutationToPinCommentResolver { - ( - parent: TParent, - args: MutationToPinCommentArgs, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface MutationToUnpinCommentArgs { - input: GQLUnpinCommentInput -} -export interface MutationToUnpinCommentResolver { - ( - parent: TParent, - args: MutationToUnpinCommentArgs, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface MutationToPutDraftArgs { - input: GQLPutDraftInput -} -export interface MutationToPutDraftResolver { - ( - parent: TParent, - args: MutationToPutDraftArgs, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface MutationToDeleteDraftArgs { - input: GQLDeleteDraftInput -} -export interface MutationToDeleteDraftResolver { - ( - parent: TParent, - args: MutationToDeleteDraftArgs, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface MutationToMarkAllNoticesAsReadResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface MutationToSingleFileUploadArgs { - input: GQLSingleFileUploadInput -} -export interface MutationToSingleFileUploadResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: MutationToSingleFileUploadArgs, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface MutationToLogRecordArgs { - input: GQLLogRecordInput -} -export interface MutationToLogRecordResolver { - ( - parent: TParent, - args: MutationToLogRecordArgs, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface MutationToAddBlockedSearchKeywordArgs { - input: GQLKeywordInput -} -export interface MutationToAddBlockedSearchKeywordResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: MutationToAddBlockedSearchKeywordArgs, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface MutationToDeleteBlockedSearchKeywordsArgs { - input: GQLKeywordsInput -} -export interface MutationToDeleteBlockedSearchKeywordsResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: MutationToDeleteBlockedSearchKeywordsArgs, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface MutationToSetBoostArgs { - input: GQLSetBoostInput -} -export interface MutationToSetBoostResolver { - ( - parent: TParent, - args: MutationToSetBoostArgs, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface MutationToPutRemarkArgs { - input: GQLPutRemarkInput -} -export interface MutationToPutRemarkResolver { - ( - parent: TParent, - args: MutationToPutRemarkArgs, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface MutationToPutSkippedListItemArgs { - input: GQLPutSkippedListItemInput -} -export interface MutationToPutSkippedListItemResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: MutationToPutSkippedListItemArgs, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface MutationToSetFeatureArgs { - input: GQLSetFeatureInput -} -export interface MutationToSetFeatureResolver { - ( - parent: TParent, - args: MutationToSetFeatureArgs, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface MutationToToggleSeedingUsersArgs { - input: GQLToggleSeedingUsersInput -} -export interface MutationToToggleSeedingUsersResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: MutationToToggleSeedingUsersArgs, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface MutationToPutAnnouncementArgs { - input: GQLPutAnnouncementInput -} -export interface MutationToPutAnnouncementResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: MutationToPutAnnouncementArgs, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface MutationToDeleteAnnouncementsArgs { - input: GQLDeleteAnnouncementsInput -} -export interface MutationToDeleteAnnouncementsResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: MutationToDeleteAnnouncementsArgs, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface MutationToPutRestrictedUsersArgs { - input: GQLPutRestrictedUsersInput -} -export interface MutationToPutRestrictedUsersResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: MutationToPutRestrictedUsersArgs, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface MutationToSendVerificationCodeArgs { - input: GQLSendVerificationCodeInput -} -export interface MutationToSendVerificationCodeResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: MutationToSendVerificationCodeArgs, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface MutationToConfirmVerificationCodeArgs { - input: GQLConfirmVerificationCodeInput -} -export interface MutationToConfirmVerificationCodeResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: MutationToConfirmVerificationCodeArgs, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface MutationToResetPasswordArgs { - input: GQLResetPasswordInput -} -export interface MutationToResetPasswordResolver { - ( - parent: TParent, - args: MutationToResetPasswordArgs, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface MutationToChangeEmailArgs { - input: GQLChangeEmailInput -} -export interface MutationToChangeEmailResolver { - ( - parent: TParent, - args: MutationToChangeEmailArgs, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface MutationToSetCurrencyArgs { - input: GQLSetCurrencyInput -} -export interface MutationToSetCurrencyResolver { - ( - parent: TParent, - args: MutationToSetCurrencyArgs, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface MutationToUserRegisterArgs { - input: GQLUserRegisterInput -} -export interface MutationToUserRegisterResolver { - ( - parent: TParent, - args: MutationToUserRegisterArgs, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface MutationToUserLoginArgs { - input: GQLUserLoginInput -} -export interface MutationToUserLoginResolver { - ( - parent: TParent, - args: MutationToUserLoginArgs, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface MutationToGenerateSigningMessageArgs { - input: GQLGenerateSigningMessageInput -} -export interface MutationToGenerateSigningMessageResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: MutationToGenerateSigningMessageArgs, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface MutationToWalletLoginArgs { - input: GQLWalletLoginInput -} -export interface MutationToWalletLoginResolver { - ( - parent: TParent, - args: MutationToWalletLoginArgs, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface MutationToResetWalletArgs { - input: GQLResetWalletInput -} -export interface MutationToResetWalletResolver { - ( - parent: TParent, - args: MutationToResetWalletArgs, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface MutationToUserLogoutResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface MutationToGenerateLikerIdResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface MutationToResetLikerIdArgs { - input: GQLResetLikerIdInput -} -export interface MutationToResetLikerIdResolver { - ( - parent: TParent, - args: MutationToResetLikerIdArgs, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface MutationToUpdateUserInfoArgs { - input: GQLUpdateUserInfoInput -} -export interface MutationToUpdateUserInfoResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: MutationToUpdateUserInfoArgs, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface MutationToUpdateNotificationSettingArgs { - input: GQLUpdateNotificationSettingInput -} -export interface MutationToUpdateNotificationSettingResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: MutationToUpdateNotificationSettingArgs, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface MutationToToggleFollowUserArgs { - input: GQLToggleItemInput -} -export interface MutationToToggleFollowUserResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: MutationToToggleFollowUserArgs, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface MutationToToggleBlockUserArgs { - input: GQLToggleItemInput -} -export interface MutationToToggleBlockUserResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: MutationToToggleBlockUserArgs, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface MutationToClearReadHistoryArgs { - input: GQLClearReadHistoryInput -} -export interface MutationToClearReadHistoryResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: MutationToClearReadHistoryArgs, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface MutationToClearSearchHistoryResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface MutationToMigrationArgs { - input: GQLMigrationInput -} -export interface MutationToMigrationResolver { - ( - parent: TParent, - args: MutationToMigrationArgs, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface MutationToClaimLogbooksArgs { - input: GQLClaimLogbooksInput -} -export interface MutationToClaimLogbooksResolver { - ( - parent: TParent, - args: MutationToClaimLogbooksArgs, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface MutationToPutFeaturedTagsArgs { - input: GQLFeaturedTagsInput -} -export interface MutationToPutFeaturedTagsResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: MutationToPutFeaturedTagsArgs, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface MutationToUpdateUserStateArgs { - input: GQLUpdateUserStateInput -} -export interface MutationToUpdateUserStateResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: MutationToUpdateUserStateArgs, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface MutationToUpdateUserRoleArgs { - input: GQLUpdateUserRoleInput -} -export interface MutationToUpdateUserRoleResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: MutationToUpdateUserRoleArgs, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface MutationToRefreshIPNSFeedArgs { - input: GQLRefreshIPNSFeedInput -} -export interface MutationToRefreshIPNSFeedResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: MutationToRefreshIPNSFeedArgs, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface MutationToToggleUsersBadgeArgs { - input: GQLToggleUsersBadgeInput -} -export interface MutationToToggleUsersBadgeResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: MutationToToggleUsersBadgeArgs, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface MutationToUnbindLikerIdArgs { - input: GQLUnbindLikerIdInput -} -export interface MutationToUnbindLikerIdResolver { - ( - parent: TParent, - args: MutationToUnbindLikerIdArgs, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface MutationToAddCreditArgs { - input: GQLAddCreditInput -} -export interface MutationToAddCreditResolver { - ( - parent: TParent, - args: MutationToAddCreditArgs, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface MutationToPayToArgs { - input: GQLPayToInput -} -export interface MutationToPayToResolver { - ( - parent: TParent, - args: MutationToPayToArgs, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface MutationToPayoutArgs { - input: GQLPayoutInput -} -export interface MutationToPayoutResolver { - ( - parent: TParent, - args: MutationToPayoutArgs, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface MutationToConnectStripeAccountArgs { - input: GQLConnectStripeAccountInput -} -export interface MutationToConnectStripeAccountResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: MutationToConnectStripeAccountArgs, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface MutationToPutOAuthClientArgs { - input: GQLPutOAuthClientInput -} -export interface MutationToPutOAuthClientResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: MutationToPutOAuthClientArgs, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface GQLSubscribeCircleResultTypeResolver { - circle?: SubscribeCircleResultToCircleResolver - client_secret?: SubscribeCircleResultToClient_secretResolver -} - -export interface SubscribeCircleResultToCircleResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface SubscribeCircleResultToClient_secretResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface GQLBlockedSearchKeywordTypeResolver { - id?: BlockedSearchKeywordToIdResolver - searchKey?: BlockedSearchKeywordToSearchKeyResolver - createdAt?: BlockedSearchKeywordToCreatedAtResolver -} - -export interface BlockedSearchKeywordToIdResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface BlockedSearchKeywordToSearchKeyResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface BlockedSearchKeywordToCreatedAtResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface GQLAuthResultTypeResolver { - auth?: AuthResultToAuthResolver - token?: AuthResultToTokenResolver - type?: AuthResultToTypeResolver - user?: AuthResultToUserResolver -} - -export interface AuthResultToAuthResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface AuthResultToTokenResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface AuthResultToTypeResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface AuthResultToUserResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface GQLSigningMessageResultTypeResolver { - nonce?: SigningMessageResultToNonceResolver - purpose?: SigningMessageResultToPurposeResolver - signingMessage?: SigningMessageResultToSigningMessageResolver - createdAt?: SigningMessageResultToCreatedAtResolver - expiredAt?: SigningMessageResultToExpiredAtResolver -} - -export interface SigningMessageResultToNonceResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface SigningMessageResultToPurposeResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface SigningMessageResultToSigningMessageResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface SigningMessageResultToCreatedAtResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface SigningMessageResultToExpiredAtResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface GQLClaimLogbooksResultTypeResolver { - ids?: ClaimLogbooksResultToIdsResolver - txHash?: ClaimLogbooksResultToTxHashResolver -} - -export interface ClaimLogbooksResultToIdsResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface ClaimLogbooksResultToTxHashResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface GQLAddCreditResultTypeResolver { - transaction?: AddCreditResultToTransactionResolver - client_secret?: AddCreditResultToClient_secretResolver -} - -export interface AddCreditResultToTransactionResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface AddCreditResultToClient_secretResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface GQLPayToResultTypeResolver { - transaction?: PayToResultToTransactionResolver - redirectUrl?: PayToResultToRedirectUrlResolver -} - -export interface PayToResultToTransactionResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface PayToResultToRedirectUrlResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface GQLConnectStripeAccountResultTypeResolver { - redirectUrl?: ConnectStripeAccountResultToRedirectUrlResolver -} - -export interface ConnectStripeAccountResultToRedirectUrlResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface GQLArticleArticleNoticeTypeResolver { - id?: ArticleArticleNoticeToIdResolver - unread?: ArticleArticleNoticeToUnreadResolver - createdAt?: ArticleArticleNoticeToCreatedAtResolver - actors?: ArticleArticleNoticeToActorsResolver - type?: ArticleArticleNoticeToTypeResolver - target?: ArticleArticleNoticeToTargetResolver - article?: ArticleArticleNoticeToArticleResolver -} - -export interface ArticleArticleNoticeToIdResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface ArticleArticleNoticeToUnreadResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface ArticleArticleNoticeToCreatedAtResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface ArticleArticleNoticeToActorsResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface ArticleArticleNoticeToTypeResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface ArticleArticleNoticeToTargetResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface ArticleArticleNoticeToArticleResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface GQLArticleNoticeTypeResolver { - id?: ArticleNoticeToIdResolver - unread?: ArticleNoticeToUnreadResolver - createdAt?: ArticleNoticeToCreatedAtResolver - actors?: ArticleNoticeToActorsResolver - type?: ArticleNoticeToTypeResolver - target?: ArticleNoticeToTargetResolver -} - -export interface ArticleNoticeToIdResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface ArticleNoticeToUnreadResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface ArticleNoticeToCreatedAtResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface ArticleNoticeToActorsResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface ArticleNoticeToTypeResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface ArticleNoticeToTargetResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface GQLArticleTagNoticeTypeResolver { - id?: ArticleTagNoticeToIdResolver - unread?: ArticleTagNoticeToUnreadResolver - createdAt?: ArticleTagNoticeToCreatedAtResolver - actors?: ArticleTagNoticeToActorsResolver - type?: ArticleTagNoticeToTypeResolver - target?: ArticleTagNoticeToTargetResolver - tag?: ArticleTagNoticeToTagResolver -} - -export interface ArticleTagNoticeToIdResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface ArticleTagNoticeToUnreadResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface ArticleTagNoticeToCreatedAtResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface ArticleTagNoticeToActorsResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface ArticleTagNoticeToTypeResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface ArticleTagNoticeToTargetResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface ArticleTagNoticeToTagResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface GQLCircleNoticeTypeResolver { - id?: CircleNoticeToIdResolver - unread?: CircleNoticeToUnreadResolver - createdAt?: CircleNoticeToCreatedAtResolver - actors?: CircleNoticeToActorsResolver - type?: CircleNoticeToTypeResolver - target?: CircleNoticeToTargetResolver - comments?: CircleNoticeToCommentsResolver - replies?: CircleNoticeToRepliesResolver - mentions?: CircleNoticeToMentionsResolver -} - -export interface CircleNoticeToIdResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface CircleNoticeToUnreadResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface CircleNoticeToCreatedAtResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface CircleNoticeToActorsResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface CircleNoticeToTypeResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface CircleNoticeToTargetResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface CircleNoticeToCommentsResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface CircleNoticeToRepliesResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface CircleNoticeToMentionsResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface GQLCommentCommentNoticeTypeResolver { - id?: CommentCommentNoticeToIdResolver - unread?: CommentCommentNoticeToUnreadResolver - createdAt?: CommentCommentNoticeToCreatedAtResolver - actors?: CommentCommentNoticeToActorsResolver - type?: CommentCommentNoticeToTypeResolver - target?: CommentCommentNoticeToTargetResolver - comment?: CommentCommentNoticeToCommentResolver -} - -export interface CommentCommentNoticeToIdResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface CommentCommentNoticeToUnreadResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface CommentCommentNoticeToCreatedAtResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface CommentCommentNoticeToActorsResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface CommentCommentNoticeToTypeResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface CommentCommentNoticeToTargetResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface CommentCommentNoticeToCommentResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface GQLCommentNoticeTypeResolver { - id?: CommentNoticeToIdResolver - unread?: CommentNoticeToUnreadResolver - createdAt?: CommentNoticeToCreatedAtResolver - actors?: CommentNoticeToActorsResolver - type?: CommentNoticeToTypeResolver - target?: CommentNoticeToTargetResolver -} - -export interface CommentNoticeToIdResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface CommentNoticeToUnreadResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface CommentNoticeToCreatedAtResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface CommentNoticeToActorsResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface CommentNoticeToTypeResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface CommentNoticeToTargetResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface GQLCryptoNoticeTypeResolver { - id?: CryptoNoticeToIdResolver - unread?: CryptoNoticeToUnreadResolver - createdAt?: CryptoNoticeToCreatedAtResolver - actors?: CryptoNoticeToActorsResolver - type?: CryptoNoticeToTypeResolver - target?: CryptoNoticeToTargetResolver -} - -export interface CryptoNoticeToIdResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface CryptoNoticeToUnreadResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface CryptoNoticeToCreatedAtResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface CryptoNoticeToActorsResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface CryptoNoticeToTypeResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface CryptoNoticeToTargetResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface GQLOfficialAnnouncementNoticeTypeResolver { - id?: OfficialAnnouncementNoticeToIdResolver - unread?: OfficialAnnouncementNoticeToUnreadResolver - createdAt?: OfficialAnnouncementNoticeToCreatedAtResolver - message?: OfficialAnnouncementNoticeToMessageResolver - link?: OfficialAnnouncementNoticeToLinkResolver -} - -export interface OfficialAnnouncementNoticeToIdResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface OfficialAnnouncementNoticeToUnreadResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface OfficialAnnouncementNoticeToCreatedAtResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface OfficialAnnouncementNoticeToMessageResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface OfficialAnnouncementNoticeToLinkResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface GQLTagNoticeTypeResolver { - id?: TagNoticeToIdResolver - unread?: TagNoticeToUnreadResolver - createdAt?: TagNoticeToCreatedAtResolver - actors?: TagNoticeToActorsResolver - type?: TagNoticeToTypeResolver - target?: TagNoticeToTargetResolver -} - -export interface TagNoticeToIdResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface TagNoticeToUnreadResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface TagNoticeToCreatedAtResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface TagNoticeToActorsResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface TagNoticeToTypeResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface TagNoticeToTargetResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface GQLTransactionNoticeTypeResolver { - id?: TransactionNoticeToIdResolver - unread?: TransactionNoticeToUnreadResolver - createdAt?: TransactionNoticeToCreatedAtResolver - actors?: TransactionNoticeToActorsResolver - type?: TransactionNoticeToTypeResolver - target?: TransactionNoticeToTargetResolver -} - -export interface TransactionNoticeToIdResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface TransactionNoticeToUnreadResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface TransactionNoticeToCreatedAtResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} +export interface SubscriptionResolverObject { + subscribe: SubscriptionSubscribeFn + resolve: SubscriptionResolveFn +} + +export type SubscriptionObject< + TResult, + TKey extends string, + TParent, + TContext, + TArgs +> = + | SubscriptionSubscriberObject + | SubscriptionResolverObject + +export type SubscriptionResolver< + TResult, + TKey extends string, + TParent = {}, + TContext = {}, + TArgs = {} +> = + | (( + ...args: any[] + ) => SubscriptionObject) + | SubscriptionObject + +export type TypeResolveFn = ( + parent: TParent, + context: TContext, + info: GraphQLResolveInfo +) => Maybe | Promise> + +export type IsTypeOfResolverFn = ( + obj: T, + context: TContext, + info: GraphQLResolveInfo +) => boolean | Promise + +export type NextResolverFn = () => Promise + +export type DirectiveResolverFn< + TResult = {}, + TParent = {}, + TContext = {}, + TArgs = {} +> = ( + next: NextResolverFn, + parent: TParent, + args: TArgs, + context: TContext, + info: GraphQLResolveInfo +) => TResult | Promise + +/** Mapping of union types */ +export type GQLResolversUnionTypes< + RefType extends Record +> = ResolversObject<{ + FollowingActivity: + | (Omit & { + nodes?: Maybe> + }) + | (Omit & { + nodes?: Maybe> + }) + | (Omit & { + actor: RefType['User'] + node: RefType['Article'] + target: RefType['Tag'] + }) + | (Omit & { + actor: RefType['User'] + node: RefType['Comment'] + target: RefType['Circle'] + }) + | (Omit & { + actor: RefType['User'] + node: RefType['Circle'] + }) + | (Omit & { + actor: RefType['User'] + node: RefType['Article'] + }) + | (Omit & { + nodes?: Maybe> + }) + Invitee: GQLPerson | UserModel + Response: DraftModel | CommentModel + TransactionTarget: DraftModel | CircleModel | TransactionModel +}> + +/** Mapping of interface types */ +export type GQLResolversInterfaceTypes< + RefType extends Record +> = ResolversObject<{ + Connection: + | (Omit & { + edges?: Maybe> + }) + | (Omit & { + edges?: Maybe> + }) + | (Omit & { + edges?: Maybe> + }) + | (Omit & { + edges?: Maybe> + }) + | (Omit & { + edges?: Maybe> + }) + | (Omit & { + edges?: Maybe> + }) + | GQLFollowingActivityConnection + | (Omit & { + edges?: Maybe> + }) + | (Omit & { + edges?: Maybe> + }) + | (Omit & { + edges?: Maybe> + }) + | (Omit & { + edges?: Maybe> + }) + | (Omit & { + edges?: Maybe> + }) + | GQLRecentSearchConnection + | (Omit & { + edges?: Maybe> + }) + | GQLResponseConnection + | GQLSearchResultConnection + | GQLSkippedListItemsConnection + | (Omit & { + edges?: Maybe> + }) + | (Omit & { + edges?: Maybe> + }) + | (Omit & { + edges?: Maybe> + }) + | (Omit & { + edges?: Maybe> + }) + | (Omit & { + edges?: Maybe> + }) + Node: + | DraftModel + | (Omit & { + articles?: Maybe> + topic: RefType['Topic'] + }) + | CircleModel + | CollectionModel + | CommentModel + | DraftModel + | ReportModel + | TagModel + | TopicModel + | UserModel + Notice: + | NoticeItemModel + | NoticeItemModel + | NoticeItemModel + | NoticeItemModel + | NoticeItemModel + | NoticeItemModel + | NoticeItemModel + | NoticeItemModel + PinnableWork: DraftModel | CollectionModel +}> + +/** Mapping between all available schema types and the resolvers types */ +export type GQLResolversTypes = ResolversObject<{ + AddArticlesTagsInput: GQLAddArticlesTagsInput + AddCollectionsArticlesInput: GQLAddCollectionsArticlesInput + AddCreditInput: GQLAddCreditInput + AddCreditResult: ResolverTypeWrapper< + Omit & { + transaction: GQLResolversTypes['Transaction'] + } + > + Announcement: ResolverTypeWrapper + AnnouncementType: GQLAnnouncementType + AnnouncementsInput: GQLAnnouncementsInput + AppreciateArticleInput: GQLAppreciateArticleInput + Appreciation: ResolverTypeWrapper + AppreciationConnection: ResolverTypeWrapper< + Omit & { + edges?: Maybe> + } + > + AppreciationEdge: ResolverTypeWrapper< + Omit & { + node: GQLResolversTypes['Appreciation'] + } + > + AppreciationPurpose: GQLAppreciationPurpose + Article: ResolverTypeWrapper + ArticleAccess: ResolverTypeWrapper + ArticleAccessType: GQLArticleAccessType + ArticleArticleNotice: ResolverTypeWrapper + ArticleArticleNoticeType: GQLArticleArticleNoticeType + ArticleConnection: ResolverTypeWrapper< + Omit & { + edges?: Maybe> + } + > + ArticleContents: ResolverTypeWrapper + ArticleDonation: ResolverTypeWrapper< + Omit & { + sender?: Maybe + } + > + ArticleDonationConnection: ResolverTypeWrapper< + Omit & { + edges?: Maybe> + } + > + ArticleDonationEdge: ResolverTypeWrapper< + Omit & { + node: GQLResolversTypes['ArticleDonation'] + } + > + ArticleEdge: ResolverTypeWrapper< + Omit & { node: GQLResolversTypes['Article'] } + > + ArticleInput: GQLArticleInput + ArticleLicenseType: GQLArticleLicenseType + ArticleNotice: ResolverTypeWrapper + ArticleNoticeType: GQLArticleNoticeType + ArticleOSS: ResolverTypeWrapper + ArticleRecommendationActivity: ResolverTypeWrapper< + Omit & { + nodes?: Maybe> + } + > + ArticleRecommendationActivitySource: GQLArticleRecommendationActivitySource + ArticleState: GQLArticleState + ArticleTranslation: ResolverTypeWrapper + Asset: ResolverTypeWrapper + AssetType: GQLAssetType + AuthResult: ResolverTypeWrapper< + Omit & { user?: Maybe } + > + AuthResultType: GQLAuthResultType + AuthorsType: GQLAuthorsType + Badge: ResolverTypeWrapper + BadgeType: GQLBadgeType + BadgedUsersInput: GQLBadgedUsersInput + Balance: ResolverTypeWrapper + BlockchainTransaction: ResolverTypeWrapper + BlockedSearchKeyword: ResolverTypeWrapper + Boolean: ResolverTypeWrapper + BoostTypes: GQLBoostTypes + CacheControlScope: GQLCacheControlScope + Chain: GQLChain + ChangeEmailInput: GQLChangeEmailInput + Chapter: ResolverTypeWrapper< + Omit & { + articles?: Maybe> + topic: GQLResolversTypes['Topic'] + } + > + Circle: ResolverTypeWrapper + CircleAnalytics: ResolverTypeWrapper + CircleConnection: ResolverTypeWrapper< + Omit & { + edges?: Maybe> + } + > + CircleContentAnalytics: ResolverTypeWrapper + CircleContentAnalyticsDatum: ResolverTypeWrapper< + Omit & { + node: GQLResolversTypes['Article'] + } + > + CircleEdge: ResolverTypeWrapper< + Omit & { node: GQLResolversTypes['Circle'] } + > + CircleFollowerAnalytics: ResolverTypeWrapper + CircleIncomeAnalytics: ResolverTypeWrapper + CircleInput: GQLCircleInput + CircleNotice: ResolverTypeWrapper + CircleNoticeType: GQLCircleNoticeType + CircleRecommendationActivity: ResolverTypeWrapper< + Omit & { + nodes?: Maybe> + } + > + CircleRecommendationActivitySource: GQLCircleRecommendationActivitySource + CircleState: GQLCircleState + CircleSubscriberAnalytics: ResolverTypeWrapper + ClaimLogbooksInput: GQLClaimLogbooksInput + ClaimLogbooksResult: ResolverTypeWrapper + ClearReadHistoryInput: GQLClearReadHistoryInput + Collection: ResolverTypeWrapper + CollectionArticlesInput: GQLCollectionArticlesInput + CollectionConnection: ResolverTypeWrapper< + Omit & { + edges?: Maybe> + } + > + CollectionEdge: ResolverTypeWrapper< + Omit & { node: GQLResolversTypes['Collection'] } + > + Comment: ResolverTypeWrapper + CommentCommentNotice: ResolverTypeWrapper + CommentCommentNoticeType: GQLCommentCommentNoticeType + CommentCommentsInput: GQLCommentCommentsInput + CommentConnection: ResolverTypeWrapper< + Omit & { + edges?: Maybe> + } + > + CommentEdge: ResolverTypeWrapper< + Omit & { node: GQLResolversTypes['Comment'] } + > + CommentInput: GQLCommentInput + CommentNotice: ResolverTypeWrapper + CommentNoticeType: GQLCommentNoticeType + CommentSort: GQLCommentSort + CommentState: GQLCommentState + CommentType: GQLCommentType + CommentsFilter: GQLCommentsFilter + CommentsInput: GQLCommentsInput + ConfirmVerificationCodeInput: GQLConfirmVerificationCodeInput + ConnectStripeAccountInput: GQLConnectStripeAccountInput + ConnectStripeAccountResult: ResolverTypeWrapper + Connection: ResolverTypeWrapper< + GQLResolversInterfaceTypes['Connection'] + > + ConnectionArgs: GQLConnectionArgs + CryptoWallet: ResolverTypeWrapper + CryptoWalletSignaturePurpose: GQLCryptoWalletSignaturePurpose + DateTime: ResolverTypeWrapper + DeleteAnnouncementsInput: GQLDeleteAnnouncementsInput + DeleteArticlesTagsInput: GQLDeleteArticlesTagsInput + DeleteCollectionArticlesInput: GQLDeleteCollectionArticlesInput + DeleteCollectionsInput: GQLDeleteCollectionsInput + DeleteCommentInput: GQLDeleteCommentInput + DeleteDraftInput: GQLDeleteDraftInput + DeleteTagsInput: GQLDeleteTagsInput + DeleteTopicsInput: GQLDeleteTopicsInput + DirectImageUploadInput: GQLDirectImageUploadInput + Draft: ResolverTypeWrapper + DraftAccess: ResolverTypeWrapper + DraftConnection: ResolverTypeWrapper< + Omit & { + edges?: Maybe> + } + > + DraftEdge: ResolverTypeWrapper< + Omit & { node: GQLResolversTypes['Draft'] } + > + EditArticleInput: GQLEditArticleInput + EmailLoginInput: GQLEmailLoginInput + EntityType: GQLEntityType + ExchangeRate: ResolverTypeWrapper + ExchangeRatesInput: GQLExchangeRatesInput + Feature: ResolverTypeWrapper + FeatureFlag: GQLFeatureFlag + FeatureName: GQLFeatureName + FeaturedCommentsInput: GQLFeaturedCommentsInput + FeaturedTagsInput: GQLFeaturedTagsInput + FilterInput: GQLFilterInput + Float: ResolverTypeWrapper + Following: ResolverTypeWrapper + FollowingActivity: ResolverTypeWrapper< + GQLResolversUnionTypes['FollowingActivity'] + > + FollowingActivityConnection: ResolverTypeWrapper< + GQLFollowingActivityConnection + > + FollowingActivityEdge: ResolverTypeWrapper< + Omit & { + node: GQLResolversTypes['FollowingActivity'] + } + > + FrequentSearchInput: GQLFrequentSearchInput + GenerateSigningMessageInput: GQLGenerateSigningMessageInput + GrantType: GQLGrantType + ID: ResolverTypeWrapper + Int: ResolverTypeWrapper + Invitation: ResolverTypeWrapper + InvitationConnection: ResolverTypeWrapper< + Omit & { + edges?: Maybe> + } + > + InvitationEdge: ResolverTypeWrapper< + Omit & { node: GQLResolversTypes['Invitation'] } + > + InvitationState: GQLInvitationState + InviteCircleInput: GQLInviteCircleInput + InviteCircleInvitee: GQLInviteCircleInvitee + Invitee: ResolverTypeWrapper< + GQLResolversUnionTypes['Invitee'] + > + Invites: ResolverTypeWrapper + KeywordInput: GQLKeywordInput + KeywordsInput: GQLKeywordsInput + Liker: ResolverTypeWrapper + LogRecordInput: GQLLogRecordInput + LogRecordTypes: GQLLogRecordTypes + Member: ResolverTypeWrapper + MemberConnection: ResolverTypeWrapper< + Omit & { + edges?: Maybe> + } + > + MemberEdge: ResolverTypeWrapper< + Omit & { node: GQLResolversTypes['Member'] } + > + MergeTagsInput: GQLMergeTagsInput + MigrationInput: GQLMigrationInput + MigrationType: GQLMigrationType + MonthlyDatum: ResolverTypeWrapper + Mutation: ResolverTypeWrapper<{}> + NFTAsset: ResolverTypeWrapper + Node: ResolverTypeWrapper< + GQLResolversInterfaceTypes['Node'] + > + NodeInput: GQLNodeInput + NodesInput: GQLNodesInput + Notice: ResolverTypeWrapper + NoticeConnection: ResolverTypeWrapper< + Omit & { + edges?: Maybe> + } + > + NoticeEdge: ResolverTypeWrapper< + Omit & { node: GQLResolversTypes['Notice'] } + > + NotificationSetting: ResolverTypeWrapper + NotificationSettingType: GQLNotificationSettingType + OAuthClient: ResolverTypeWrapper + OAuthClientConnection: ResolverTypeWrapper< + Omit & { + edges?: Maybe> + } + > + OAuthClientEdge: ResolverTypeWrapper< + Omit & { + node: GQLResolversTypes['OAuthClient'] + } + > + OAuthClientInput: GQLOAuthClientInput + OSS: ResolverTypeWrapper< + Omit< + GQLOss, + | 'articles' + | 'badgedUsers' + | 'comments' + | 'oauthClients' + | 'reports' + | 'restrictedUsers' + | 'seedingUsers' + | 'tags' + | 'users' + > & { + articles: GQLResolversTypes['ArticleConnection'] + badgedUsers: GQLResolversTypes['UserConnection'] + comments: GQLResolversTypes['CommentConnection'] + oauthClients: GQLResolversTypes['OAuthClientConnection'] + reports: GQLResolversTypes['ReportConnection'] + restrictedUsers: GQLResolversTypes['UserConnection'] + seedingUsers: GQLResolversTypes['UserConnection'] + tags: GQLResolversTypes['TagConnection'] + users: GQLResolversTypes['UserConnection'] + } + > + Oauth1CredentialInput: GQLOauth1CredentialInput + Official: ResolverTypeWrapper + OfficialAnnouncementNotice: ResolverTypeWrapper + PageInfo: ResolverTypeWrapper + PayToInput: GQLPayToInput + PayToResult: ResolverTypeWrapper< + Omit & { + transaction: GQLResolversTypes['Transaction'] + } + > + PayoutInput: GQLPayoutInput + Person: ResolverTypeWrapper + PinCommentInput: GQLPinCommentInput + PinnableWork: ResolverTypeWrapper< + GQLResolversInterfaceTypes['PinnableWork'] + > + Price: ResolverTypeWrapper + PriceState: GQLPriceState + PublishArticleInput: GQLPublishArticleInput + PublishState: GQLPublishState + PutAnnouncementInput: GQLPutAnnouncementInput + PutChapterInput: GQLPutChapterInput + PutCircleArticlesInput: GQLPutCircleArticlesInput + PutCircleArticlesType: GQLPutCircleArticlesType + PutCircleInput: GQLPutCircleInput + PutCollectionInput: GQLPutCollectionInput + PutCommentInput: GQLPutCommentInput + PutDraftInput: GQLPutDraftInput + PutOAuthClientInput: GQLPutOAuthClientInput + PutRemarkInput: GQLPutRemarkInput + PutRestrictedUsersInput: GQLPutRestrictedUsersInput + PutSkippedListItemInput: GQLPutSkippedListItemInput + PutTagInput: GQLPutTagInput + PutTopicInput: GQLPutTopicInput + Query: ResolverTypeWrapper<{}> + QuoteCurrency: GQLQuoteCurrency + ReadArticleInput: GQLReadArticleInput + ReadHistory: ResolverTypeWrapper< + Omit & { article: GQLResolversTypes['Article'] } + > + ReadHistoryConnection: ResolverTypeWrapper< + Omit & { + edges?: Maybe> + } + > + ReadHistoryEdge: ResolverTypeWrapper< + Omit & { + node: GQLResolversTypes['ReadHistory'] + } + > + RecentSearchConnection: ResolverTypeWrapper + RecentSearchEdge: ResolverTypeWrapper + RecommendInput: GQLRecommendInput + RecommendTypes: GQLRecommendTypes + Recommendation: ResolverTypeWrapper + RefreshIPNSFeedInput: GQLRefreshIpnsFeedInput + RelatedDonationArticlesInput: GQLRelatedDonationArticlesInput + RemarkTypes: GQLRemarkTypes + RemoveSocialLoginInput: GQLRemoveSocialLoginInput + RenameTagInput: GQLRenameTagInput + ReorderCollectionArticlesInput: GQLReorderCollectionArticlesInput + ReorderMoveInput: GQLReorderMoveInput + Report: ResolverTypeWrapper + ReportConnection: ResolverTypeWrapper< + Omit & { + edges?: Maybe> + } + > + ReportEdge: ResolverTypeWrapper< + Omit & { node: GQLResolversTypes['Report'] } + > + ReportReason: GQLReportReason + ResetLikerIdInput: GQLResetLikerIdInput + ResetPasswordInput: GQLResetPasswordInput + ResetPasswordType: GQLResetPasswordType + ResetWalletInput: GQLResetWalletInput + Response: ResolverTypeWrapper< + GQLResolversUnionTypes['Response'] + > + ResponseConnection: ResolverTypeWrapper + ResponseEdge: ResolverTypeWrapper< + Omit & { node: GQLResolversTypes['Response'] } + > + ResponseSort: GQLResponseSort + ResponsesInput: GQLResponsesInput + Role: GQLRole + SearchAPIVersion: GQLSearchApiVersion + SearchExclude: GQLSearchExclude + SearchFilter: GQLSearchFilter + SearchInput: GQLSearchInput + SearchResultConnection: ResolverTypeWrapper + SearchResultEdge: ResolverTypeWrapper + SearchTypes: GQLSearchTypes + SendVerificationCodeInput: GQLSendVerificationCodeInput + SetBoostInput: GQLSetBoostInput + SetCurrencyInput: GQLSetCurrencyInput + SetEmailInput: GQLSetEmailInput + SetFeatureInput: GQLSetFeatureInput + SetPasswordInput: GQLSetPasswordInput + SetUserNameInput: GQLSetUserNameInput + SigningMessagePurpose: GQLSigningMessagePurpose + SigningMessageResult: ResolverTypeWrapper + SingleFileUploadInput: GQLSingleFileUploadInput + SkippedListItem: ResolverTypeWrapper + SkippedListItemEdge: ResolverTypeWrapper + SkippedListItemType: GQLSkippedListItemType + SkippedListItemsConnection: ResolverTypeWrapper + SkippedListItemsInput: GQLSkippedListItemsInput + SocialAccount: ResolverTypeWrapper + SocialAccountType: GQLSocialAccountType + SocialLoginInput: GQLSocialLoginInput + SortTopicsInput: GQLSortTopicsInput + String: ResolverTypeWrapper + StripeAccount: ResolverTypeWrapper + StripeAccountCountry: GQLStripeAccountCountry + SubmitReportInput: GQLSubmitReportInput + SubscribeCircleInput: GQLSubscribeCircleInput + SubscribeCircleResult: ResolverTypeWrapper< + Omit & { + circle: GQLResolversTypes['Circle'] + } + > + Tag: ResolverTypeWrapper + TagArticlesInput: GQLTagArticlesInput + TagArticlesSortBy: GQLTagArticlesSortBy + TagConnection: ResolverTypeWrapper< + Omit & { + edges?: Maybe> + } + > + TagEdge: ResolverTypeWrapper< + Omit & { node: GQLResolversTypes['Tag'] } + > + TagEditorsInput: GQLTagEditorsInput + TagOSS: ResolverTypeWrapper + TagSelectedInput: GQLTagSelectedInput + TagsInput: GQLTagsInput + TagsSort: GQLTagsSort + ToggleCircleMemberInput: GQLToggleCircleMemberInput + ToggleItemInput: GQLToggleItemInput + ToggleRecommendInput: GQLToggleRecommendInput + ToggleSeedingUsersInput: GQLToggleSeedingUsersInput + ToggleUsersBadgeInput: GQLToggleUsersBadgeInput + TopDonatorConnection: ResolverTypeWrapper< + Omit & { + edges?: Maybe> + } + > + TopDonatorEdge: ResolverTypeWrapper< + Omit & { node: GQLResolversTypes['User'] } + > + TopDonatorFilter: GQLTopDonatorFilter + TopDonatorInput: GQLTopDonatorInput + Topic: ResolverTypeWrapper + TopicConnection: ResolverTypeWrapper< + Omit & { + edges?: Maybe> + } + > + TopicEdge: ResolverTypeWrapper< + Omit & { node: GQLResolversTypes['Topic'] } + > + TopicInput: GQLTopicInput + Transaction: ResolverTypeWrapper + TransactionConnection: ResolverTypeWrapper< + Omit & { + edges?: Maybe> + } + > + TransactionCurrency: GQLTransactionCurrency + TransactionEdge: ResolverTypeWrapper< + Omit & { + node: GQLResolversTypes['Transaction'] + } + > + TransactionNotice: ResolverTypeWrapper + TransactionNoticeType: GQLTransactionNoticeType + TransactionPurpose: GQLTransactionPurpose + TransactionState: GQLTransactionState + TransactionTarget: ResolverTypeWrapper< + GQLResolversUnionTypes['TransactionTarget'] + > + TransactionsArgs: GQLTransactionsArgs + TransactionsFilter: GQLTransactionsFilter + TransactionsReceivedByArgs: GQLTransactionsReceivedByArgs + TranslatedAnnouncement: ResolverTypeWrapper + TranslatedAnnouncementInput: GQLTranslatedAnnouncementInput + TranslationArgs: GQLTranslationArgs + UnbindLikerIdInput: GQLUnbindLikerIdInput + UnpinCommentInput: GQLUnpinCommentInput + UnsubscribeCircleInput: GQLUnsubscribeCircleInput + UnvoteCommentInput: GQLUnvoteCommentInput + UpdateArticleSensitiveInput: GQLUpdateArticleSensitiveInput + UpdateArticleStateInput: GQLUpdateArticleStateInput + UpdateArticlesTagsInput: GQLUpdateArticlesTagsInput + UpdateCommentsStateInput: GQLUpdateCommentsStateInput + UpdateNotificationSettingInput: GQLUpdateNotificationSettingInput + UpdateTagSettingInput: GQLUpdateTagSettingInput + UpdateTagSettingType: GQLUpdateTagSettingType + UpdateUserExtraInput: GQLUpdateUserExtraInput + UpdateUserInfoInput: GQLUpdateUserInfoInput + UpdateUserRoleInput: GQLUpdateUserRoleInput + UpdateUserStateInput: GQLUpdateUserStateInput + Upload: ResolverTypeWrapper + User: ResolverTypeWrapper + UserActivity: ResolverTypeWrapper + UserAddArticleTagActivity: ResolverTypeWrapper< + Omit & { + actor: GQLResolversTypes['User'] + node: GQLResolversTypes['Article'] + target: GQLResolversTypes['Tag'] + } + > + UserAnalytics: ResolverTypeWrapper + UserArticlesFilter: GQLUserArticlesFilter + UserArticlesInput: GQLUserArticlesInput + UserArticlesSort: GQLUserArticlesSort + UserBroadcastCircleActivity: ResolverTypeWrapper< + Omit & { + actor: GQLResolversTypes['User'] + node: GQLResolversTypes['Comment'] + target: GQLResolversTypes['Circle'] + } + > + UserConnection: ResolverTypeWrapper< + Omit & { + edges?: Maybe> + } + > + UserCreateCircleActivity: ResolverTypeWrapper< + Omit & { + actor: GQLResolversTypes['User'] + node: GQLResolversTypes['Circle'] + } + > + UserEdge: ResolverTypeWrapper< + Omit & { node: GQLResolversTypes['User'] } + > + UserGroup: GQLUserGroup + UserInfo: ResolverTypeWrapper + UserInfoFields: GQLUserInfoFields + UserInput: GQLUserInput + UserLanguage: GQLUserLanguage + UserLoginInput: GQLUserLoginInput + UserNotice: ResolverTypeWrapper + UserNoticeType: GQLUserNoticeType + UserOSS: ResolverTypeWrapper + UserPublishArticleActivity: ResolverTypeWrapper< + Omit & { + actor: GQLResolversTypes['User'] + node: GQLResolversTypes['Article'] + } + > + UserRecommendationActivity: ResolverTypeWrapper< + Omit & { + nodes?: Maybe> + } + > + UserRecommendationActivitySource: GQLUserRecommendationActivitySource + UserRegisterInput: GQLUserRegisterInput + UserRestriction: ResolverTypeWrapper + UserRestrictionType: GQLUserRestrictionType + UserRole: GQLUserRole + UserSettings: ResolverTypeWrapper + UserState: GQLUserState + UserStatus: ResolverTypeWrapper + VerificationCodeType: GQLVerificationCodeType + VerifyEmailInput: GQLVerifyEmailInput + Vote: GQLVote + VoteCommentInput: GQLVoteCommentInput + Wallet: ResolverTypeWrapper + WalletLoginInput: GQLWalletLoginInput +}> + +/** Mapping between all available schema types and the resolvers parents */ +export type GQLResolversParentTypes = ResolversObject<{ + AddArticlesTagsInput: GQLAddArticlesTagsInput + AddCollectionsArticlesInput: GQLAddCollectionsArticlesInput + AddCreditInput: GQLAddCreditInput + AddCreditResult: Omit & { + transaction: GQLResolversParentTypes['Transaction'] + } + Announcement: GQLAnnouncement + AnnouncementsInput: GQLAnnouncementsInput + AppreciateArticleInput: GQLAppreciateArticleInput + Appreciation: AppreciationModel + AppreciationConnection: Omit & { + edges?: Maybe> + } + AppreciationEdge: Omit & { + node: GQLResolversParentTypes['Appreciation'] + } + Article: DraftModel + ArticleAccess: DraftModel + ArticleArticleNotice: NoticeItemModel + ArticleConnection: Omit & { + edges?: Maybe> + } + ArticleContents: DraftModel + ArticleDonation: Omit & { + sender?: Maybe + } + ArticleDonationConnection: Omit & { + edges?: Maybe> + } + ArticleDonationEdge: Omit & { + node: GQLResolversParentTypes['ArticleDonation'] + } + ArticleEdge: Omit & { + node: GQLResolversParentTypes['Article'] + } + ArticleInput: GQLArticleInput + ArticleNotice: NoticeItemModel + ArticleOSS: DraftModel + ArticleRecommendationActivity: Omit< + GQLArticleRecommendationActivity, + 'nodes' + > & { nodes?: Maybe> } + ArticleTranslation: GQLArticleTranslation + Asset: AssetModel + AuthResult: Omit & { + user?: Maybe + } + Badge: GQLBadge + BadgedUsersInput: GQLBadgedUsersInput + Balance: GQLBalance + BlockchainTransaction: GQLBlockchainTransaction + BlockedSearchKeyword: GQLBlockedSearchKeyword + Boolean: Scalars['Boolean']['output'] + ChangeEmailInput: GQLChangeEmailInput + Chapter: Omit & { + articles?: Maybe> + topic: GQLResolversParentTypes['Topic'] + } + Circle: CircleModel + CircleAnalytics: CircleModel + CircleConnection: Omit & { + edges?: Maybe> + } + CircleContentAnalytics: CircleModel + CircleContentAnalyticsDatum: Omit & { + node: GQLResolversParentTypes['Article'] + } + CircleEdge: Omit & { + node: GQLResolversParentTypes['Circle'] + } + CircleFollowerAnalytics: CircleModel + CircleIncomeAnalytics: CircleModel + CircleInput: GQLCircleInput + CircleNotice: NoticeItemModel + CircleRecommendationActivity: Omit< + GQLCircleRecommendationActivity, + 'nodes' + > & { nodes?: Maybe> } + CircleSubscriberAnalytics: CircleModel + ClaimLogbooksInput: GQLClaimLogbooksInput + ClaimLogbooksResult: GQLClaimLogbooksResult + ClearReadHistoryInput: GQLClearReadHistoryInput + Collection: CollectionModel + CollectionArticlesInput: GQLCollectionArticlesInput + CollectionConnection: Omit & { + edges?: Maybe> + } + CollectionEdge: Omit & { + node: GQLResolversParentTypes['Collection'] + } + Comment: CommentModel + CommentCommentNotice: NoticeItemModel + CommentCommentsInput: GQLCommentCommentsInput + CommentConnection: Omit & { + edges?: Maybe> + } + CommentEdge: Omit & { + node: GQLResolversParentTypes['Comment'] + } + CommentInput: GQLCommentInput + CommentNotice: NoticeItemModel + CommentsFilter: GQLCommentsFilter + CommentsInput: GQLCommentsInput + ConfirmVerificationCodeInput: GQLConfirmVerificationCodeInput + ConnectStripeAccountInput: GQLConnectStripeAccountInput + ConnectStripeAccountResult: GQLConnectStripeAccountResult + Connection: GQLResolversInterfaceTypes['Connection'] + ConnectionArgs: GQLConnectionArgs + CryptoWallet: WalletModel + DateTime: Scalars['DateTime']['output'] + DeleteAnnouncementsInput: GQLDeleteAnnouncementsInput + DeleteArticlesTagsInput: GQLDeleteArticlesTagsInput + DeleteCollectionArticlesInput: GQLDeleteCollectionArticlesInput + DeleteCollectionsInput: GQLDeleteCollectionsInput + DeleteCommentInput: GQLDeleteCommentInput + DeleteDraftInput: GQLDeleteDraftInput + DeleteTagsInput: GQLDeleteTagsInput + DeleteTopicsInput: GQLDeleteTopicsInput + DirectImageUploadInput: GQLDirectImageUploadInput + Draft: DraftModel + DraftAccess: DraftModel + DraftConnection: Omit & { + edges?: Maybe> + } + DraftEdge: Omit & { + node: GQLResolversParentTypes['Draft'] + } + EditArticleInput: GQLEditArticleInput + EmailLoginInput: GQLEmailLoginInput + ExchangeRate: GQLExchangeRate + ExchangeRatesInput: GQLExchangeRatesInput + Feature: GQLFeature + FeaturedCommentsInput: GQLFeaturedCommentsInput + FeaturedTagsInput: GQLFeaturedTagsInput + FilterInput: GQLFilterInput + Float: Scalars['Float']['output'] + Following: UserModel + FollowingActivity: GQLResolversUnionTypes< + GQLResolversParentTypes + >['FollowingActivity'] + FollowingActivityConnection: GQLFollowingActivityConnection + FollowingActivityEdge: Omit & { + node: GQLResolversParentTypes['FollowingActivity'] + } + FrequentSearchInput: GQLFrequentSearchInput + GenerateSigningMessageInput: GQLGenerateSigningMessageInput + ID: Scalars['ID']['output'] + Int: Scalars['Int']['output'] + Invitation: CircleInvitationModel + InvitationConnection: Omit & { + edges?: Maybe> + } + InvitationEdge: Omit & { + node: GQLResolversParentTypes['Invitation'] + } + InviteCircleInput: GQLInviteCircleInput + InviteCircleInvitee: GQLInviteCircleInvitee + Invitee: GQLResolversUnionTypes['Invitee'] + Invites: CircleModel + KeywordInput: GQLKeywordInput + KeywordsInput: GQLKeywordsInput + Liker: UserModel + LogRecordInput: GQLLogRecordInput + Member: CircleMemberModel + MemberConnection: Omit & { + edges?: Maybe> + } + MemberEdge: Omit & { + node: GQLResolversParentTypes['Member'] + } + MergeTagsInput: GQLMergeTagsInput + MigrationInput: GQLMigrationInput + MonthlyDatum: GQLMonthlyDatum + Mutation: {} + NFTAsset: GQLNftAsset + Node: GQLResolversInterfaceTypes['Node'] + NodeInput: GQLNodeInput + NodesInput: GQLNodesInput + Notice: NoticeItemModel + NoticeConnection: Omit & { + edges?: Maybe> + } + NoticeEdge: Omit & { + node: GQLResolversParentTypes['Notice'] + } + NotificationSetting: GQLNotificationSetting + OAuthClient: OAuthClientDBModel + OAuthClientConnection: Omit & { + edges?: Maybe> + } + OAuthClientEdge: Omit & { + node: GQLResolversParentTypes['OAuthClient'] + } + OAuthClientInput: GQLOAuthClientInput + OSS: Omit< + GQLOss, + | 'articles' + | 'badgedUsers' + | 'comments' + | 'oauthClients' + | 'reports' + | 'restrictedUsers' + | 'seedingUsers' + | 'tags' + | 'users' + > & { + articles: GQLResolversParentTypes['ArticleConnection'] + badgedUsers: GQLResolversParentTypes['UserConnection'] + comments: GQLResolversParentTypes['CommentConnection'] + oauthClients: GQLResolversParentTypes['OAuthClientConnection'] + reports: GQLResolversParentTypes['ReportConnection'] + restrictedUsers: GQLResolversParentTypes['UserConnection'] + seedingUsers: GQLResolversParentTypes['UserConnection'] + tags: GQLResolversParentTypes['TagConnection'] + users: GQLResolversParentTypes['UserConnection'] + } + Oauth1CredentialInput: GQLOauth1CredentialInput + Official: GQLOfficial + OfficialAnnouncementNotice: NoticeItemModel + PageInfo: GQLPageInfo + PayToInput: GQLPayToInput + PayToResult: Omit & { + transaction: GQLResolversParentTypes['Transaction'] + } + PayoutInput: GQLPayoutInput + Person: GQLPerson + PinCommentInput: GQLPinCommentInput + PinnableWork: GQLResolversInterfaceTypes< + GQLResolversParentTypes + >['PinnableWork'] + Price: CirclePriceModel + PublishArticleInput: GQLPublishArticleInput + PutAnnouncementInput: GQLPutAnnouncementInput + PutChapterInput: GQLPutChapterInput + PutCircleArticlesInput: GQLPutCircleArticlesInput + PutCircleInput: GQLPutCircleInput + PutCollectionInput: GQLPutCollectionInput + PutCommentInput: GQLPutCommentInput + PutDraftInput: GQLPutDraftInput + PutOAuthClientInput: GQLPutOAuthClientInput + PutRemarkInput: GQLPutRemarkInput + PutRestrictedUsersInput: GQLPutRestrictedUsersInput + PutSkippedListItemInput: GQLPutSkippedListItemInput + PutTagInput: GQLPutTagInput + PutTopicInput: GQLPutTopicInput + Query: {} + ReadArticleInput: GQLReadArticleInput + ReadHistory: Omit & { + article: GQLResolversParentTypes['Article'] + } + ReadHistoryConnection: Omit & { + edges?: Maybe> + } + ReadHistoryEdge: Omit & { + node: GQLResolversParentTypes['ReadHistory'] + } + RecentSearchConnection: GQLRecentSearchConnection + RecentSearchEdge: GQLRecentSearchEdge + RecommendInput: GQLRecommendInput + Recommendation: UserModel + RefreshIPNSFeedInput: GQLRefreshIpnsFeedInput + RelatedDonationArticlesInput: GQLRelatedDonationArticlesInput + RemoveSocialLoginInput: GQLRemoveSocialLoginInput + RenameTagInput: GQLRenameTagInput + ReorderCollectionArticlesInput: GQLReorderCollectionArticlesInput + ReorderMoveInput: GQLReorderMoveInput + Report: ReportModel + ReportConnection: Omit & { + edges?: Maybe> + } + ReportEdge: Omit & { + node: GQLResolversParentTypes['Report'] + } + ResetLikerIdInput: GQLResetLikerIdInput + ResetPasswordInput: GQLResetPasswordInput + ResetWalletInput: GQLResetWalletInput + Response: GQLResolversUnionTypes['Response'] + ResponseConnection: GQLResponseConnection + ResponseEdge: Omit & { + node: GQLResolversParentTypes['Response'] + } + ResponsesInput: GQLResponsesInput + SearchFilter: GQLSearchFilter + SearchInput: GQLSearchInput + SearchResultConnection: GQLSearchResultConnection + SearchResultEdge: GQLSearchResultEdge + SendVerificationCodeInput: GQLSendVerificationCodeInput + SetBoostInput: GQLSetBoostInput + SetCurrencyInput: GQLSetCurrencyInput + SetEmailInput: GQLSetEmailInput + SetFeatureInput: GQLSetFeatureInput + SetPasswordInput: GQLSetPasswordInput + SetUserNameInput: GQLSetUserNameInput + SigningMessageResult: GQLSigningMessageResult + SingleFileUploadInput: GQLSingleFileUploadInput + SkippedListItem: GQLSkippedListItem + SkippedListItemEdge: GQLSkippedListItemEdge + SkippedListItemsConnection: GQLSkippedListItemsConnection + SkippedListItemsInput: GQLSkippedListItemsInput + SocialAccount: GQLSocialAccount + SocialLoginInput: GQLSocialLoginInput + SortTopicsInput: GQLSortTopicsInput + String: Scalars['String']['output'] + StripeAccount: PayoutAccountModel + SubmitReportInput: GQLSubmitReportInput + SubscribeCircleInput: GQLSubscribeCircleInput + SubscribeCircleResult: Omit & { + circle: GQLResolversParentTypes['Circle'] + } + Tag: TagModel + TagArticlesInput: GQLTagArticlesInput + TagConnection: Omit & { + edges?: Maybe> + } + TagEdge: Omit & { node: GQLResolversParentTypes['Tag'] } + TagEditorsInput: GQLTagEditorsInput + TagOSS: TagModel + TagSelectedInput: GQLTagSelectedInput + TagsInput: GQLTagsInput + ToggleCircleMemberInput: GQLToggleCircleMemberInput + ToggleItemInput: GQLToggleItemInput + ToggleRecommendInput: GQLToggleRecommendInput + ToggleSeedingUsersInput: GQLToggleSeedingUsersInput + ToggleUsersBadgeInput: GQLToggleUsersBadgeInput + TopDonatorConnection: Omit & { + edges?: Maybe> + } + TopDonatorEdge: Omit & { + node: GQLResolversParentTypes['User'] + } + TopDonatorFilter: GQLTopDonatorFilter + TopDonatorInput: GQLTopDonatorInput + Topic: TopicModel + TopicConnection: Omit & { + edges?: Maybe> + } + TopicEdge: Omit & { + node: GQLResolversParentTypes['Topic'] + } + TopicInput: GQLTopicInput + Transaction: TransactionModel + TransactionConnection: Omit & { + edges?: Maybe> + } + TransactionEdge: Omit & { + node: GQLResolversParentTypes['Transaction'] + } + TransactionNotice: NoticeItemModel + TransactionTarget: GQLResolversUnionTypes< + GQLResolversParentTypes + >['TransactionTarget'] + TransactionsArgs: GQLTransactionsArgs + TransactionsFilter: GQLTransactionsFilter + TransactionsReceivedByArgs: GQLTransactionsReceivedByArgs + TranslatedAnnouncement: GQLTranslatedAnnouncement + TranslatedAnnouncementInput: GQLTranslatedAnnouncementInput + TranslationArgs: GQLTranslationArgs + UnbindLikerIdInput: GQLUnbindLikerIdInput + UnpinCommentInput: GQLUnpinCommentInput + UnsubscribeCircleInput: GQLUnsubscribeCircleInput + UnvoteCommentInput: GQLUnvoteCommentInput + UpdateArticleSensitiveInput: GQLUpdateArticleSensitiveInput + UpdateArticleStateInput: GQLUpdateArticleStateInput + UpdateArticlesTagsInput: GQLUpdateArticlesTagsInput + UpdateCommentsStateInput: GQLUpdateCommentsStateInput + UpdateNotificationSettingInput: GQLUpdateNotificationSettingInput + UpdateTagSettingInput: GQLUpdateTagSettingInput + UpdateUserExtraInput: GQLUpdateUserExtraInput + UpdateUserInfoInput: GQLUpdateUserInfoInput + UpdateUserRoleInput: GQLUpdateUserRoleInput + UpdateUserStateInput: GQLUpdateUserStateInput + Upload: Scalars['Upload']['output'] + User: UserModel + UserActivity: UserModel + UserAddArticleTagActivity: Omit< + GQLUserAddArticleTagActivity, + 'actor' | 'node' | 'target' + > & { + actor: GQLResolversParentTypes['User'] + node: GQLResolversParentTypes['Article'] + target: GQLResolversParentTypes['Tag'] + } + UserAnalytics: UserModel + UserArticlesFilter: GQLUserArticlesFilter + UserArticlesInput: GQLUserArticlesInput + UserBroadcastCircleActivity: Omit< + GQLUserBroadcastCircleActivity, + 'actor' | 'node' | 'target' + > & { + actor: GQLResolversParentTypes['User'] + node: GQLResolversParentTypes['Comment'] + target: GQLResolversParentTypes['Circle'] + } + UserConnection: Omit & { + edges?: Maybe> + } + UserCreateCircleActivity: Omit< + GQLUserCreateCircleActivity, + 'actor' | 'node' + > & { + actor: GQLResolversParentTypes['User'] + node: GQLResolversParentTypes['Circle'] + } + UserEdge: Omit & { + node: GQLResolversParentTypes['User'] + } + UserInfo: UserModel + UserInput: GQLUserInput + UserLoginInput: GQLUserLoginInput + UserNotice: NoticeItemModel + UserOSS: UserModel + UserPublishArticleActivity: Omit< + GQLUserPublishArticleActivity, + 'actor' | 'node' + > & { + actor: GQLResolversParentTypes['User'] + node: GQLResolversParentTypes['Article'] + } + UserRecommendationActivity: Omit & { + nodes?: Maybe> + } + UserRegisterInput: GQLUserRegisterInput + UserRestriction: GQLUserRestriction + UserSettings: UserModel + UserStatus: UserModel + VerifyEmailInput: GQLVerifyEmailInput + VoteCommentInput: GQLVoteCommentInput + Wallet: UserModel + WalletLoginInput: GQLWalletLoginInput +}> + +export type GQLAuthDirectiveArgs = { + group?: Maybe + mode: Scalars['String']['input'] +} + +export type GQLAuthDirectiveResolver< + Result, + Parent, + ContextType = Context, + Args = GQLAuthDirectiveArgs +> = DirectiveResolverFn + +export type GQLCacheControlDirectiveArgs = { + inheritMaxAge?: Maybe + maxAge?: Maybe + scope?: Maybe +} + +export type GQLCacheControlDirectiveResolver< + Result, + Parent, + ContextType = Context, + Args = GQLCacheControlDirectiveArgs +> = DirectiveResolverFn + +export type GQLComplexityDirectiveArgs = { + multipliers?: Maybe> + value: Scalars['Int']['input'] +} + +export type GQLComplexityDirectiveResolver< + Result, + Parent, + ContextType = Context, + Args = GQLComplexityDirectiveArgs +> = DirectiveResolverFn + +export type GQLConstraintDirectiveArgs = { + contains?: Maybe + endsWith?: Maybe + exclusiveMax?: Maybe + exclusiveMin?: Maybe + format?: Maybe + max?: Maybe + maxItems?: Maybe + maxLength?: Maybe + min?: Maybe + minItems?: Maybe + minLength?: Maybe + multipleOf?: Maybe + notContains?: Maybe + pattern?: Maybe + startsWith?: Maybe + uniqueTypeName?: Maybe +} + +export type GQLConstraintDirectiveResolver< + Result, + Parent, + ContextType = Context, + Args = GQLConstraintDirectiveArgs +> = DirectiveResolverFn + +export type GQLLogCacheDirectiveArgs = { + identifier?: Maybe + type: Scalars['String']['input'] +} + +export type GQLLogCacheDirectiveResolver< + Result, + Parent, + ContextType = Context, + Args = GQLLogCacheDirectiveArgs +> = DirectiveResolverFn + +export type GQLObjectCacheDirectiveArgs = { + maxAge?: Maybe +} + +export type GQLObjectCacheDirectiveResolver< + Result, + Parent, + ContextType = Context, + Args = GQLObjectCacheDirectiveArgs +> = DirectiveResolverFn + +export type GQLPrivateCacheDirectiveArgs = { + strict?: Scalars['Boolean']['input'] +} + +export type GQLPrivateCacheDirectiveResolver< + Result, + Parent, + ContextType = Context, + Args = GQLPrivateCacheDirectiveArgs +> = DirectiveResolverFn + +export type GQLPurgeCacheDirectiveArgs = { + identifier?: Maybe + type: Scalars['String']['input'] +} + +export type GQLPurgeCacheDirectiveResolver< + Result, + Parent, + ContextType = Context, + Args = GQLPurgeCacheDirectiveArgs +> = DirectiveResolverFn + +export type GQLRateLimitDirectiveArgs = { + limit: Scalars['Int']['input'] + period: Scalars['Int']['input'] +} + +export type GQLRateLimitDirectiveResolver< + Result, + Parent, + ContextType = Context, + Args = GQLRateLimitDirectiveArgs +> = DirectiveResolverFn + +export type GQLAddCreditResultResolvers< + ContextType = Context, + ParentType extends GQLResolversParentTypes['AddCreditResult'] = GQLResolversParentTypes['AddCreditResult'] +> = ResolversObject<{ + client_secret?: Resolver + transaction?: Resolver< + GQLResolversTypes['Transaction'], + ParentType, + ContextType + > + __isTypeOf?: IsTypeOfResolverFn +}> + +export type GQLAnnouncementResolvers< + ContextType = Context, + ParentType extends GQLResolversParentTypes['Announcement'] = GQLResolversParentTypes['Announcement'] +> = ResolversObject<{ + content?: Resolver< + Maybe, + ParentType, + ContextType + > + cover?: Resolver, ParentType, ContextType> + createdAt?: Resolver + expiredAt?: Resolver< + Maybe, + ParentType, + ContextType + > + id?: Resolver + link?: Resolver, ParentType, ContextType> + order?: Resolver + title?: Resolver, ParentType, ContextType> + translations?: Resolver< + Maybe>, + ParentType, + ContextType + > + type?: Resolver< + GQLResolversTypes['AnnouncementType'], + ParentType, + ContextType + > + updatedAt?: Resolver + visible?: Resolver + __isTypeOf?: IsTypeOfResolverFn +}> + +export type GQLAppreciationResolvers< + ContextType = Context, + ParentType extends GQLResolversParentTypes['Appreciation'] = GQLResolversParentTypes['Appreciation'] +> = ResolversObject<{ + amount?: Resolver + content?: Resolver + createdAt?: Resolver + purpose?: Resolver< + GQLResolversTypes['AppreciationPurpose'], + ParentType, + ContextType + > + recipient?: Resolver + sender?: Resolver, ParentType, ContextType> + target?: Resolver< + Maybe, + ParentType, + ContextType + > + __isTypeOf?: IsTypeOfResolverFn +}> + +export type GQLAppreciationConnectionResolvers< + ContextType = Context, + ParentType extends GQLResolversParentTypes['AppreciationConnection'] = GQLResolversParentTypes['AppreciationConnection'] +> = ResolversObject<{ + edges?: Resolver< + Maybe>, + ParentType, + ContextType + > + pageInfo?: Resolver + totalCount?: Resolver + __isTypeOf?: IsTypeOfResolverFn +}> + +export type GQLAppreciationEdgeResolvers< + ContextType = Context, + ParentType extends GQLResolversParentTypes['AppreciationEdge'] = GQLResolversParentTypes['AppreciationEdge'] +> = ResolversObject<{ + cursor?: Resolver + node?: Resolver + __isTypeOf?: IsTypeOfResolverFn +}> + +export type GQLArticleResolvers< + ContextType = Context, + ParentType extends GQLResolversParentTypes['Article'] = GQLResolversParentTypes['Article'] +> = ResolversObject<{ + access?: Resolver + appreciateLeft?: Resolver + appreciateLimit?: Resolver + appreciationsReceived?: Resolver< + GQLResolversTypes['AppreciationConnection'], + ParentType, + ContextType, + RequireFields + > + appreciationsReceivedTotal?: Resolver< + GQLResolversTypes['Int'], + ParentType, + ContextType + > + assets?: Resolver, ParentType, ContextType> + author?: Resolver + availableTranslations?: Resolver< + Maybe>, + ParentType, + ContextType + > + canComment?: Resolver + canSuperLike?: Resolver + collectedBy?: Resolver< + GQLResolversTypes['ArticleConnection'], + ParentType, + ContextType, + RequireFields + > + collection?: Resolver< + GQLResolversTypes['ArticleConnection'], + ParentType, + ContextType, + RequireFields + > + commentCount?: Resolver + comments?: Resolver< + GQLResolversTypes['CommentConnection'], + ParentType, + ContextType, + RequireFields + > + content?: Resolver + contents?: Resolver< + GQLResolversTypes['ArticleContents'], + ParentType, + ContextType + > + cover?: Resolver, ParentType, ContextType> + createdAt?: Resolver + dataHash?: Resolver + donationCount?: Resolver + donations?: Resolver< + GQLResolversTypes['ArticleDonationConnection'], + ParentType, + ContextType, + RequireFields + > + drafts?: Resolver< + Maybe>, + ParentType, + ContextType + > + featuredComments?: Resolver< + GQLResolversTypes['CommentConnection'], + ParentType, + ContextType, + RequireFields + > + hasAppreciate?: Resolver< + GQLResolversTypes['Boolean'], + ParentType, + ContextType + > + id?: Resolver + iscnId?: Resolver, ParentType, ContextType> + language?: Resolver< + Maybe, + ParentType, + ContextType + > + license?: Resolver< + GQLResolversTypes['ArticleLicenseType'], + ParentType, + ContextType + > + mediaHash?: Resolver + newestPublishedDraft?: Resolver< + GQLResolversTypes['Draft'], + ParentType, + ContextType + > + newestUnpublishedDraft?: Resolver< + Maybe, + ParentType, + ContextType + > + oss?: Resolver + pinCommentLeft?: Resolver + pinCommentLimit?: Resolver + pinned?: Resolver + pinnedComments?: Resolver< + Maybe>, + ParentType, + ContextType + > + readTime?: Resolver + readerCount?: Resolver + relatedArticles?: Resolver< + GQLResolversTypes['ArticleConnection'], + ParentType, + ContextType, + RequireFields + > + relatedDonationArticles?: Resolver< + GQLResolversTypes['ArticleConnection'], + ParentType, + ContextType, + RequireFields + > + remark?: Resolver, ParentType, ContextType> + replyToDonator?: Resolver< + Maybe, + ParentType, + ContextType + > + requestForDonation?: Resolver< + Maybe, + ParentType, + ContextType + > + responseCount?: Resolver + responses?: Resolver< + GQLResolversTypes['ResponseConnection'], + ParentType, + ContextType, + RequireFields + > + revisedAt?: Resolver< + Maybe, + ParentType, + ContextType + > + revisionCount?: Resolver + sensitiveByAdmin?: Resolver< + GQLResolversTypes['Boolean'], + ParentType, + ContextType + > + sensitiveByAuthor?: Resolver< + GQLResolversTypes['Boolean'], + ParentType, + ContextType + > + slug?: Resolver + state?: Resolver + sticky?: Resolver + subscribed?: Resolver + subscribers?: Resolver< + GQLResolversTypes['UserConnection'], + ParentType, + ContextType, + RequireFields + > + summary?: Resolver + summaryCustomized?: Resolver< + GQLResolversTypes['Boolean'], + ParentType, + ContextType + > + tags?: Resolver< + Maybe>, + ParentType, + ContextType + > + title?: Resolver + topicScore?: Resolver< + Maybe, + ParentType, + ContextType + > + transactionsReceivedBy?: Resolver< + GQLResolversTypes['UserConnection'], + ParentType, + ContextType, + RequireFields + > + translation?: Resolver< + Maybe, + ParentType, + ContextType, + Partial + > + wordCount?: Resolver, ParentType, ContextType> + __isTypeOf?: IsTypeOfResolverFn +}> + +export type GQLArticleAccessResolvers< + ContextType = Context, + ParentType extends GQLResolversParentTypes['ArticleAccess'] = GQLResolversParentTypes['ArticleAccess'] +> = ResolversObject<{ + circle?: Resolver, ParentType, ContextType> + secret?: Resolver, ParentType, ContextType> + type?: Resolver< + GQLResolversTypes['ArticleAccessType'], + ParentType, + ContextType + > + __isTypeOf?: IsTypeOfResolverFn +}> + +export type GQLArticleArticleNoticeResolvers< + ContextType = Context, + ParentType extends GQLResolversParentTypes['ArticleArticleNotice'] = GQLResolversParentTypes['ArticleArticleNotice'] +> = ResolversObject<{ + actors?: Resolver< + Maybe>, + ParentType, + ContextType + > + article?: Resolver + createdAt?: Resolver + id?: Resolver + target?: Resolver + type?: Resolver< + GQLResolversTypes['ArticleArticleNoticeType'], + ParentType, + ContextType + > + unread?: Resolver + __isTypeOf?: IsTypeOfResolverFn +}> + +export type GQLArticleConnectionResolvers< + ContextType = Context, + ParentType extends GQLResolversParentTypes['ArticleConnection'] = GQLResolversParentTypes['ArticleConnection'] +> = ResolversObject<{ + edges?: Resolver< + Maybe>, + ParentType, + ContextType + > + pageInfo?: Resolver + totalCount?: Resolver + __isTypeOf?: IsTypeOfResolverFn +}> + +export type GQLArticleContentsResolvers< + ContextType = Context, + ParentType extends GQLResolversParentTypes['ArticleContents'] = GQLResolversParentTypes['ArticleContents'] +> = ResolversObject<{ + html?: Resolver + markdown?: Resolver + __isTypeOf?: IsTypeOfResolverFn +}> + +export type GQLArticleDonationResolvers< + ContextType = Context, + ParentType extends GQLResolversParentTypes['ArticleDonation'] = GQLResolversParentTypes['ArticleDonation'] +> = ResolversObject<{ + id?: Resolver + sender?: Resolver, ParentType, ContextType> + __isTypeOf?: IsTypeOfResolverFn +}> + +export type GQLArticleDonationConnectionResolvers< + ContextType = Context, + ParentType extends GQLResolversParentTypes['ArticleDonationConnection'] = GQLResolversParentTypes['ArticleDonationConnection'] +> = ResolversObject<{ + edges?: Resolver< + Maybe>, + ParentType, + ContextType + > + pageInfo?: Resolver + totalCount?: Resolver + __isTypeOf?: IsTypeOfResolverFn +}> + +export type GQLArticleDonationEdgeResolvers< + ContextType = Context, + ParentType extends GQLResolversParentTypes['ArticleDonationEdge'] = GQLResolversParentTypes['ArticleDonationEdge'] +> = ResolversObject<{ + cursor?: Resolver + node?: Resolver + __isTypeOf?: IsTypeOfResolverFn +}> + +export type GQLArticleEdgeResolvers< + ContextType = Context, + ParentType extends GQLResolversParentTypes['ArticleEdge'] = GQLResolversParentTypes['ArticleEdge'] +> = ResolversObject<{ + cursor?: Resolver + node?: Resolver + __isTypeOf?: IsTypeOfResolverFn +}> + +export type GQLArticleNoticeResolvers< + ContextType = Context, + ParentType extends GQLResolversParentTypes['ArticleNotice'] = GQLResolversParentTypes['ArticleNotice'] +> = ResolversObject<{ + actors?: Resolver< + Maybe>, + ParentType, + ContextType + > + createdAt?: Resolver + id?: Resolver + target?: Resolver + type?: Resolver< + GQLResolversTypes['ArticleNoticeType'], + ParentType, + ContextType + > + unread?: Resolver + __isTypeOf?: IsTypeOfResolverFn +}> + +export type GQLArticleOssResolvers< + ContextType = Context, + ParentType extends GQLResolversParentTypes['ArticleOSS'] = GQLResolversParentTypes['ArticleOSS'] +> = ResolversObject<{ + boost?: Resolver + inRecommendHottest?: Resolver< + GQLResolversTypes['Boolean'], + ParentType, + ContextType + > + inRecommendIcymi?: Resolver< + GQLResolversTypes['Boolean'], + ParentType, + ContextType + > + inRecommendNewest?: Resolver< + GQLResolversTypes['Boolean'], + ParentType, + ContextType + > + score?: Resolver + __isTypeOf?: IsTypeOfResolverFn +}> + +export type GQLArticleRecommendationActivityResolvers< + ContextType = Context, + ParentType extends GQLResolversParentTypes['ArticleRecommendationActivity'] = GQLResolversParentTypes['ArticleRecommendationActivity'] +> = ResolversObject<{ + nodes?: Resolver< + Maybe>, + ParentType, + ContextType + > + source?: Resolver< + Maybe, + ParentType, + ContextType + > + __isTypeOf?: IsTypeOfResolverFn +}> + +export type GQLArticleTranslationResolvers< + ContextType = Context, + ParentType extends GQLResolversParentTypes['ArticleTranslation'] = GQLResolversParentTypes['ArticleTranslation'] +> = ResolversObject<{ + content?: Resolver< + Maybe, + ParentType, + ContextType + > + language?: Resolver< + Maybe, + ParentType, + ContextType + > + summary?: Resolver< + Maybe, + ParentType, + ContextType + > + title?: Resolver, ParentType, ContextType> + __isTypeOf?: IsTypeOfResolverFn +}> + +export type GQLAssetResolvers< + ContextType = Context, + ParentType extends GQLResolversParentTypes['Asset'] = GQLResolversParentTypes['Asset'] +> = ResolversObject<{ + createdAt?: Resolver + draft?: Resolver, ParentType, ContextType> + id?: Resolver + path?: Resolver + type?: Resolver + uploadURL?: Resolver< + Maybe, + ParentType, + ContextType + > + __isTypeOf?: IsTypeOfResolverFn +}> + +export type GQLAuthResultResolvers< + ContextType = Context, + ParentType extends GQLResolversParentTypes['AuthResult'] = GQLResolversParentTypes['AuthResult'] +> = ResolversObject<{ + auth?: Resolver + token?: Resolver, ParentType, ContextType> + type?: Resolver + user?: Resolver, ParentType, ContextType> + __isTypeOf?: IsTypeOfResolverFn +}> + +export type GQLBadgeResolvers< + ContextType = Context, + ParentType extends GQLResolversParentTypes['Badge'] = GQLResolversParentTypes['Badge'] +> = ResolversObject<{ + type?: Resolver + __isTypeOf?: IsTypeOfResolverFn +}> + +export type GQLBalanceResolvers< + ContextType = Context, + ParentType extends GQLResolversParentTypes['Balance'] = GQLResolversParentTypes['Balance'] +> = ResolversObject<{ + HKD?: Resolver + __isTypeOf?: IsTypeOfResolverFn +}> + +export type GQLBlockchainTransactionResolvers< + ContextType = Context, + ParentType extends GQLResolversParentTypes['BlockchainTransaction'] = GQLResolversParentTypes['BlockchainTransaction'] +> = ResolversObject<{ + chain?: Resolver + txHash?: Resolver + __isTypeOf?: IsTypeOfResolverFn +}> + +export type GQLBlockedSearchKeywordResolvers< + ContextType = Context, + ParentType extends GQLResolversParentTypes['BlockedSearchKeyword'] = GQLResolversParentTypes['BlockedSearchKeyword'] +> = ResolversObject<{ + createdAt?: Resolver + id?: Resolver + searchKey?: Resolver + __isTypeOf?: IsTypeOfResolverFn +}> + +export type GQLChapterResolvers< + ContextType = Context, + ParentType extends GQLResolversParentTypes['Chapter'] = GQLResolversParentTypes['Chapter'] +> = ResolversObject<{ + articleCount?: Resolver + articles?: Resolver< + Maybe>, + ParentType, + ContextType + > + description?: Resolver< + Maybe, + ParentType, + ContextType + > + id?: Resolver + title?: Resolver + topic?: Resolver + __isTypeOf?: IsTypeOfResolverFn +}> + +export type GQLCircleResolvers< + ContextType = Context, + ParentType extends GQLResolversParentTypes['Circle'] = GQLResolversParentTypes['Circle'] +> = ResolversObject<{ + analytics?: Resolver< + GQLResolversTypes['CircleAnalytics'], + ParentType, + ContextType + > + avatar?: Resolver, ParentType, ContextType> + broadcast?: Resolver< + GQLResolversTypes['CommentConnection'], + ParentType, + ContextType, + RequireFields + > + cover?: Resolver, ParentType, ContextType> + createdAt?: Resolver + description?: Resolver< + Maybe, + ParentType, + ContextType + > + discussion?: Resolver< + GQLResolversTypes['CommentConnection'], + ParentType, + ContextType, + RequireFields + > + discussionCount?: Resolver + discussionThreadCount?: Resolver< + GQLResolversTypes['Int'], + ParentType, + ContextType + > + displayName?: Resolver + followers?: Resolver< + GQLResolversTypes['UserConnection'], + ParentType, + ContextType, + RequireFields + > + id?: Resolver + invitedBy?: Resolver< + Maybe, + ParentType, + ContextType + > + invites?: Resolver + isFollower?: Resolver + isMember?: Resolver + members?: Resolver< + GQLResolversTypes['MemberConnection'], + ParentType, + ContextType, + RequireFields + > + name?: Resolver + owner?: Resolver + pinnedBroadcast?: Resolver< + Maybe>, + ParentType, + ContextType + > + prices?: Resolver< + Maybe>, + ParentType, + ContextType + > + state?: Resolver + updatedAt?: Resolver + works?: Resolver< + GQLResolversTypes['ArticleConnection'], + ParentType, + ContextType, + RequireFields + > + __isTypeOf?: IsTypeOfResolverFn +}> + +export type GQLCircleAnalyticsResolvers< + ContextType = Context, + ParentType extends GQLResolversParentTypes['CircleAnalytics'] = GQLResolversParentTypes['CircleAnalytics'] +> = ResolversObject<{ + content?: Resolver< + GQLResolversTypes['CircleContentAnalytics'], + ParentType, + ContextType + > + follower?: Resolver< + GQLResolversTypes['CircleFollowerAnalytics'], + ParentType, + ContextType + > + income?: Resolver< + GQLResolversTypes['CircleIncomeAnalytics'], + ParentType, + ContextType + > + subscriber?: Resolver< + GQLResolversTypes['CircleSubscriberAnalytics'], + ParentType, + ContextType + > + __isTypeOf?: IsTypeOfResolverFn +}> + +export type GQLCircleConnectionResolvers< + ContextType = Context, + ParentType extends GQLResolversParentTypes['CircleConnection'] = GQLResolversParentTypes['CircleConnection'] +> = ResolversObject<{ + edges?: Resolver< + Maybe>, + ParentType, + ContextType + > + pageInfo?: Resolver + totalCount?: Resolver + __isTypeOf?: IsTypeOfResolverFn +}> + +export type GQLCircleContentAnalyticsResolvers< + ContextType = Context, + ParentType extends GQLResolversParentTypes['CircleContentAnalytics'] = GQLResolversParentTypes['CircleContentAnalytics'] +> = ResolversObject<{ + paywall?: Resolver< + Maybe>, + ParentType, + ContextType + > + public?: Resolver< + Maybe>, + ParentType, + ContextType + > + __isTypeOf?: IsTypeOfResolverFn +}> + +export type GQLCircleContentAnalyticsDatumResolvers< + ContextType = Context, + ParentType extends GQLResolversParentTypes['CircleContentAnalyticsDatum'] = GQLResolversParentTypes['CircleContentAnalyticsDatum'] +> = ResolversObject<{ + node?: Resolver + readCount?: Resolver + __isTypeOf?: IsTypeOfResolverFn +}> + +export type GQLCircleEdgeResolvers< + ContextType = Context, + ParentType extends GQLResolversParentTypes['CircleEdge'] = GQLResolversParentTypes['CircleEdge'] +> = ResolversObject<{ + cursor?: Resolver + node?: Resolver + __isTypeOf?: IsTypeOfResolverFn +}> + +export type GQLCircleFollowerAnalyticsResolvers< + ContextType = Context, + ParentType extends GQLResolversParentTypes['CircleFollowerAnalytics'] = GQLResolversParentTypes['CircleFollowerAnalytics'] +> = ResolversObject<{ + current?: Resolver + followerPercentage?: Resolver< + GQLResolversTypes['Float'], + ParentType, + ContextType + > + history?: Resolver< + Array, + ParentType, + ContextType + > + __isTypeOf?: IsTypeOfResolverFn +}> + +export type GQLCircleIncomeAnalyticsResolvers< + ContextType = Context, + ParentType extends GQLResolversParentTypes['CircleIncomeAnalytics'] = GQLResolversParentTypes['CircleIncomeAnalytics'] +> = ResolversObject<{ + history?: Resolver< + Array, + ParentType, + ContextType + > + nextMonth?: Resolver + thisMonth?: Resolver + total?: Resolver + __isTypeOf?: IsTypeOfResolverFn +}> + +export type GQLCircleNoticeResolvers< + ContextType = Context, + ParentType extends GQLResolversParentTypes['CircleNotice'] = GQLResolversParentTypes['CircleNotice'] +> = ResolversObject<{ + actors?: Resolver< + Maybe>, + ParentType, + ContextType + > + comments?: Resolver< + Maybe>, + ParentType, + ContextType + > + createdAt?: Resolver + id?: Resolver + mentions?: Resolver< + Maybe>, + ParentType, + ContextType + > + replies?: Resolver< + Maybe>, + ParentType, + ContextType + > + target?: Resolver + type?: Resolver< + GQLResolversTypes['CircleNoticeType'], + ParentType, + ContextType + > + unread?: Resolver + __isTypeOf?: IsTypeOfResolverFn +}> + +export type GQLCircleRecommendationActivityResolvers< + ContextType = Context, + ParentType extends GQLResolversParentTypes['CircleRecommendationActivity'] = GQLResolversParentTypes['CircleRecommendationActivity'] +> = ResolversObject<{ + nodes?: Resolver< + Maybe>, + ParentType, + ContextType + > + source?: Resolver< + Maybe, + ParentType, + ContextType + > + __isTypeOf?: IsTypeOfResolverFn +}> + +export type GQLCircleSubscriberAnalyticsResolvers< + ContextType = Context, + ParentType extends GQLResolversParentTypes['CircleSubscriberAnalytics'] = GQLResolversParentTypes['CircleSubscriberAnalytics'] +> = ResolversObject<{ + currentInvitee?: Resolver + currentSubscriber?: Resolver< + GQLResolversTypes['Int'], + ParentType, + ContextType + > + inviteeHistory?: Resolver< + Array, + ParentType, + ContextType + > + subscriberHistory?: Resolver< + Array, + ParentType, + ContextType + > + __isTypeOf?: IsTypeOfResolverFn +}> + +export type GQLClaimLogbooksResultResolvers< + ContextType = Context, + ParentType extends GQLResolversParentTypes['ClaimLogbooksResult'] = GQLResolversParentTypes['ClaimLogbooksResult'] +> = ResolversObject<{ + ids?: Resolver>, ParentType, ContextType> + txHash?: Resolver + __isTypeOf?: IsTypeOfResolverFn +}> + +export type GQLCollectionResolvers< + ContextType = Context, + ParentType extends GQLResolversParentTypes['Collection'] = GQLResolversParentTypes['Collection'] +> = ResolversObject<{ + articles?: Resolver< + GQLResolversTypes['ArticleConnection'], + ParentType, + ContextType, + RequireFields + > + author?: Resolver + contains?: Resolver< + GQLResolversTypes['Boolean'], + ParentType, + ContextType, + RequireFields + > + cover?: Resolver, ParentType, ContextType> + description?: Resolver< + Maybe, + ParentType, + ContextType + > + id?: Resolver + pinned?: Resolver + title?: Resolver + updatedAt?: Resolver + __isTypeOf?: IsTypeOfResolverFn +}> + +export type GQLCollectionConnectionResolvers< + ContextType = Context, + ParentType extends GQLResolversParentTypes['CollectionConnection'] = GQLResolversParentTypes['CollectionConnection'] +> = ResolversObject<{ + edges?: Resolver< + Maybe>, + ParentType, + ContextType + > + pageInfo?: Resolver + totalCount?: Resolver + __isTypeOf?: IsTypeOfResolverFn +}> + +export type GQLCollectionEdgeResolvers< + ContextType = Context, + ParentType extends GQLResolversParentTypes['CollectionEdge'] = GQLResolversParentTypes['CollectionEdge'] +> = ResolversObject<{ + cursor?: Resolver + node?: Resolver + __isTypeOf?: IsTypeOfResolverFn +}> + +export type GQLCommentResolvers< + ContextType = Context, + ParentType extends GQLResolversParentTypes['Comment'] = GQLResolversParentTypes['Comment'] +> = ResolversObject<{ + author?: Resolver + comments?: Resolver< + GQLResolversTypes['CommentConnection'], + ParentType, + ContextType, + RequireFields + > + content?: Resolver< + Maybe, + ParentType, + ContextType + > + createdAt?: Resolver + downvotes?: Resolver + fromDonator?: Resolver + id?: Resolver + myVote?: Resolver, ParentType, ContextType> + node?: Resolver + parentComment?: Resolver< + Maybe, + ParentType, + ContextType + > + pinned?: Resolver + remark?: Resolver, ParentType, ContextType> + replyTo?: Resolver< + Maybe, + ParentType, + ContextType + > + state?: Resolver + type?: Resolver + upvotes?: Resolver + __isTypeOf?: IsTypeOfResolverFn +}> + +export type GQLCommentCommentNoticeResolvers< + ContextType = Context, + ParentType extends GQLResolversParentTypes['CommentCommentNotice'] = GQLResolversParentTypes['CommentCommentNotice'] +> = ResolversObject<{ + actors?: Resolver< + Maybe>, + ParentType, + ContextType + > + comment?: Resolver + createdAt?: Resolver + id?: Resolver + target?: Resolver + type?: Resolver< + GQLResolversTypes['CommentCommentNoticeType'], + ParentType, + ContextType + > + unread?: Resolver + __isTypeOf?: IsTypeOfResolverFn +}> + +export type GQLCommentConnectionResolvers< + ContextType = Context, + ParentType extends GQLResolversParentTypes['CommentConnection'] = GQLResolversParentTypes['CommentConnection'] +> = ResolversObject<{ + edges?: Resolver< + Maybe>, + ParentType, + ContextType + > + pageInfo?: Resolver + totalCount?: Resolver + __isTypeOf?: IsTypeOfResolverFn +}> + +export type GQLCommentEdgeResolvers< + ContextType = Context, + ParentType extends GQLResolversParentTypes['CommentEdge'] = GQLResolversParentTypes['CommentEdge'] +> = ResolversObject<{ + cursor?: Resolver + node?: Resolver + __isTypeOf?: IsTypeOfResolverFn +}> + +export type GQLCommentNoticeResolvers< + ContextType = Context, + ParentType extends GQLResolversParentTypes['CommentNotice'] = GQLResolversParentTypes['CommentNotice'] +> = ResolversObject<{ + actors?: Resolver< + Maybe>, + ParentType, + ContextType + > + createdAt?: Resolver + id?: Resolver + target?: Resolver + type?: Resolver< + GQLResolversTypes['CommentNoticeType'], + ParentType, + ContextType + > + unread?: Resolver + __isTypeOf?: IsTypeOfResolverFn +}> + +export type GQLConnectStripeAccountResultResolvers< + ContextType = Context, + ParentType extends GQLResolversParentTypes['ConnectStripeAccountResult'] = GQLResolversParentTypes['ConnectStripeAccountResult'] +> = ResolversObject<{ + redirectUrl?: Resolver + __isTypeOf?: IsTypeOfResolverFn +}> + +export type GQLConnectionResolvers< + ContextType = Context, + ParentType extends GQLResolversParentTypes['Connection'] = GQLResolversParentTypes['Connection'] +> = ResolversObject<{ + __resolveType: TypeResolveFn< + | 'AppreciationConnection' + | 'ArticleConnection' + | 'CircleConnection' + | 'CollectionConnection' + | 'CommentConnection' + | 'DraftConnection' + | 'FollowingActivityConnection' + | 'InvitationConnection' + | 'MemberConnection' + | 'NoticeConnection' + | 'OAuthClientConnection' + | 'ReadHistoryConnection' + | 'RecentSearchConnection' + | 'ReportConnection' + | 'ResponseConnection' + | 'SearchResultConnection' + | 'SkippedListItemsConnection' + | 'TagConnection' + | 'TopDonatorConnection' + | 'TopicConnection' + | 'TransactionConnection' + | 'UserConnection', + ParentType, + ContextType + > +}> + +export type GQLCryptoWalletResolvers< + ContextType = Context, + ParentType extends GQLResolversParentTypes['CryptoWallet'] = GQLResolversParentTypes['CryptoWallet'] +> = ResolversObject<{ + address?: Resolver + hasNFTs?: Resolver + id?: Resolver + nfts?: Resolver< + Maybe>, + ParentType, + ContextType + > + __isTypeOf?: IsTypeOfResolverFn +}> + +export interface GQLDateTimeScalarConfig + extends GraphQLScalarTypeConfig { + name: 'DateTime' +} + +export type GQLDraftResolvers< + ContextType = Context, + ParentType extends GQLResolversParentTypes['Draft'] = GQLResolversParentTypes['Draft'] +> = ResolversObject<{ + access?: Resolver + article?: Resolver< + Maybe, + ParentType, + ContextType + > + assets?: Resolver, ParentType, ContextType> + canComment?: Resolver + collection?: Resolver< + GQLResolversTypes['ArticleConnection'], + ParentType, + ContextType, + RequireFields + > + content?: Resolver< + Maybe, + ParentType, + ContextType + > + cover?: Resolver, ParentType, ContextType> + createdAt?: Resolver + id?: Resolver + iscnPublish?: Resolver< + Maybe, + ParentType, + ContextType + > + license?: Resolver< + GQLResolversTypes['ArticleLicenseType'], + ParentType, + ContextType + > + mediaHash?: Resolver< + Maybe, + ParentType, + ContextType + > + publishState?: Resolver< + GQLResolversTypes['PublishState'], + ParentType, + ContextType + > + replyToDonator?: Resolver< + Maybe, + ParentType, + ContextType + > + requestForDonation?: Resolver< + Maybe, + ParentType, + ContextType + > + sensitiveByAuthor?: Resolver< + GQLResolversTypes['Boolean'], + ParentType, + ContextType + > + slug?: Resolver + summary?: Resolver< + Maybe, + ParentType, + ContextType + > + summaryCustomized?: Resolver< + GQLResolversTypes['Boolean'], + ParentType, + ContextType + > + tags?: Resolver< + Maybe>, + ParentType, + ContextType + > + title?: Resolver, ParentType, ContextType> + updatedAt?: Resolver + wordCount?: Resolver + __isTypeOf?: IsTypeOfResolverFn +}> + +export type GQLDraftAccessResolvers< + ContextType = Context, + ParentType extends GQLResolversParentTypes['DraftAccess'] = GQLResolversParentTypes['DraftAccess'] +> = ResolversObject<{ + circle?: Resolver, ParentType, ContextType> + type?: Resolver< + GQLResolversTypes['ArticleAccessType'], + ParentType, + ContextType + > + __isTypeOf?: IsTypeOfResolverFn +}> + +export type GQLDraftConnectionResolvers< + ContextType = Context, + ParentType extends GQLResolversParentTypes['DraftConnection'] = GQLResolversParentTypes['DraftConnection'] +> = ResolversObject<{ + edges?: Resolver< + Maybe>, + ParentType, + ContextType + > + pageInfo?: Resolver + totalCount?: Resolver + __isTypeOf?: IsTypeOfResolverFn +}> + +export type GQLDraftEdgeResolvers< + ContextType = Context, + ParentType extends GQLResolversParentTypes['DraftEdge'] = GQLResolversParentTypes['DraftEdge'] +> = ResolversObject<{ + cursor?: Resolver + node?: Resolver + __isTypeOf?: IsTypeOfResolverFn +}> + +export type GQLExchangeRateResolvers< + ContextType = Context, + ParentType extends GQLResolversParentTypes['ExchangeRate'] = GQLResolversParentTypes['ExchangeRate'] +> = ResolversObject<{ + from?: Resolver< + GQLResolversTypes['TransactionCurrency'], + ParentType, + ContextType + > + rate?: Resolver + to?: Resolver + updatedAt?: Resolver + __isTypeOf?: IsTypeOfResolverFn +}> + +export type GQLFeatureResolvers< + ContextType = Context, + ParentType extends GQLResolversParentTypes['Feature'] = GQLResolversParentTypes['Feature'] +> = ResolversObject<{ + enabled?: Resolver + name?: Resolver + __isTypeOf?: IsTypeOfResolverFn +}> + +export type GQLFollowingResolvers< + ContextType = Context, + ParentType extends GQLResolversParentTypes['Following'] = GQLResolversParentTypes['Following'] +> = ResolversObject<{ + circles?: Resolver< + GQLResolversTypes['CircleConnection'], + ParentType, + ContextType, + RequireFields + > + tags?: Resolver< + GQLResolversTypes['TagConnection'], + ParentType, + ContextType, + RequireFields + > + users?: Resolver< + GQLResolversTypes['UserConnection'], + ParentType, + ContextType, + RequireFields + > + __isTypeOf?: IsTypeOfResolverFn +}> + +export type GQLFollowingActivityResolvers< + ContextType = Context, + ParentType extends GQLResolversParentTypes['FollowingActivity'] = GQLResolversParentTypes['FollowingActivity'] +> = ResolversObject<{ + __resolveType: TypeResolveFn< + | 'ArticleRecommendationActivity' + | 'CircleRecommendationActivity' + | 'UserAddArticleTagActivity' + | 'UserBroadcastCircleActivity' + | 'UserCreateCircleActivity' + | 'UserPublishArticleActivity' + | 'UserRecommendationActivity', + ParentType, + ContextType + > +}> + +export type GQLFollowingActivityConnectionResolvers< + ContextType = Context, + ParentType extends GQLResolversParentTypes['FollowingActivityConnection'] = GQLResolversParentTypes['FollowingActivityConnection'] +> = ResolversObject<{ + edges?: Resolver< + Maybe>, + ParentType, + ContextType + > + pageInfo?: Resolver + totalCount?: Resolver + __isTypeOf?: IsTypeOfResolverFn +}> + +export type GQLFollowingActivityEdgeResolvers< + ContextType = Context, + ParentType extends GQLResolversParentTypes['FollowingActivityEdge'] = GQLResolversParentTypes['FollowingActivityEdge'] +> = ResolversObject<{ + cursor?: Resolver + node?: Resolver< + GQLResolversTypes['FollowingActivity'], + ParentType, + ContextType + > + __isTypeOf?: IsTypeOfResolverFn +}> + +export type GQLInvitationResolvers< + ContextType = Context, + ParentType extends GQLResolversParentTypes['Invitation'] = GQLResolversParentTypes['Invitation'] +> = ResolversObject<{ + acceptedAt?: Resolver< + Maybe, + ParentType, + ContextType + > + circle?: Resolver + createdAt?: Resolver + freePeriod?: Resolver + id?: Resolver + invitee?: Resolver + inviter?: Resolver + sentAt?: Resolver + state?: Resolver< + GQLResolversTypes['InvitationState'], + ParentType, + ContextType + > + __isTypeOf?: IsTypeOfResolverFn +}> + +export type GQLInvitationConnectionResolvers< + ContextType = Context, + ParentType extends GQLResolversParentTypes['InvitationConnection'] = GQLResolversParentTypes['InvitationConnection'] +> = ResolversObject<{ + edges?: Resolver< + Maybe>, + ParentType, + ContextType + > + pageInfo?: Resolver + totalCount?: Resolver + __isTypeOf?: IsTypeOfResolverFn +}> + +export type GQLInvitationEdgeResolvers< + ContextType = Context, + ParentType extends GQLResolversParentTypes['InvitationEdge'] = GQLResolversParentTypes['InvitationEdge'] +> = ResolversObject<{ + cursor?: Resolver + node?: Resolver + __isTypeOf?: IsTypeOfResolverFn +}> + +export type GQLInviteeResolvers< + ContextType = Context, + ParentType extends GQLResolversParentTypes['Invitee'] = GQLResolversParentTypes['Invitee'] +> = ResolversObject<{ + __resolveType: TypeResolveFn<'Person' | 'User', ParentType, ContextType> +}> + +export type GQLInvitesResolvers< + ContextType = Context, + ParentType extends GQLResolversParentTypes['Invites'] = GQLResolversParentTypes['Invites'] +> = ResolversObject<{ + accepted?: Resolver< + GQLResolversTypes['InvitationConnection'], + ParentType, + ContextType, + RequireFields + > + pending?: Resolver< + GQLResolversTypes['InvitationConnection'], + ParentType, + ContextType, + RequireFields + > + __isTypeOf?: IsTypeOfResolverFn +}> + +export type GQLLikerResolvers< + ContextType = Context, + ParentType extends GQLResolversParentTypes['Liker'] = GQLResolversParentTypes['Liker'] +> = ResolversObject<{ + civicLiker?: Resolver + likerId?: Resolver< + Maybe, + ParentType, + ContextType + > + rateUSD?: Resolver, ParentType, ContextType> + total?: Resolver + __isTypeOf?: IsTypeOfResolverFn +}> + +export type GQLMemberResolvers< + ContextType = Context, + ParentType extends GQLResolversParentTypes['Member'] = GQLResolversParentTypes['Member'] +> = ResolversObject<{ + price?: Resolver + user?: Resolver + __isTypeOf?: IsTypeOfResolverFn +}> + +export type GQLMemberConnectionResolvers< + ContextType = Context, + ParentType extends GQLResolversParentTypes['MemberConnection'] = GQLResolversParentTypes['MemberConnection'] +> = ResolversObject<{ + edges?: Resolver< + Maybe>, + ParentType, + ContextType + > + pageInfo?: Resolver + totalCount?: Resolver + __isTypeOf?: IsTypeOfResolverFn +}> + +export type GQLMemberEdgeResolvers< + ContextType = Context, + ParentType extends GQLResolversParentTypes['MemberEdge'] = GQLResolversParentTypes['MemberEdge'] +> = ResolversObject<{ + cursor?: Resolver + node?: Resolver + __isTypeOf?: IsTypeOfResolverFn +}> + +export type GQLMonthlyDatumResolvers< + ContextType = Context, + ParentType extends GQLResolversParentTypes['MonthlyDatum'] = GQLResolversParentTypes['MonthlyDatum'] +> = ResolversObject<{ + date?: Resolver + value?: Resolver + __isTypeOf?: IsTypeOfResolverFn +}> + +export type GQLMutationResolvers< + ContextType = Context, + ParentType extends GQLResolversParentTypes['Mutation'] = GQLResolversParentTypes['Mutation'] +> = ResolversObject<{ + addArticlesTags?: Resolver< + GQLResolversTypes['Tag'], + ParentType, + ContextType, + RequireFields + > + addBlockedSearchKeyword?: Resolver< + GQLResolversTypes['BlockedSearchKeyword'], + ParentType, + ContextType, + RequireFields + > + addCollectionsArticles?: Resolver< + Array, + ParentType, + ContextType, + RequireFields + > + addCredit?: Resolver< + GQLResolversTypes['AddCreditResult'], + ParentType, + ContextType, + RequireFields + > + addSocialLogin?: Resolver< + GQLResolversTypes['User'], + ParentType, + ContextType, + RequireFields + > + addWalletLogin?: Resolver< + GQLResolversTypes['User'], + ParentType, + ContextType, + RequireFields + > + appreciateArticle?: Resolver< + GQLResolversTypes['Article'], + ParentType, + ContextType, + RequireFields + > + changeEmail?: Resolver< + GQLResolversTypes['User'], + ParentType, + ContextType, + RequireFields + > + claimLogbooks?: Resolver< + GQLResolversTypes['ClaimLogbooksResult'], + ParentType, + ContextType, + RequireFields + > + clearReadHistory?: Resolver< + GQLResolversTypes['User'], + ParentType, + ContextType, + RequireFields + > + clearSearchHistory?: Resolver< + Maybe, + ParentType, + ContextType + > + confirmVerificationCode?: Resolver< + GQLResolversTypes['ID'], + ParentType, + ContextType, + RequireFields + > + connectStripeAccount?: Resolver< + GQLResolversTypes['ConnectStripeAccountResult'], + ParentType, + ContextType, + RequireFields + > + deleteAnnouncements?: Resolver< + GQLResolversTypes['Boolean'], + ParentType, + ContextType, + RequireFields + > + deleteArticlesTags?: Resolver< + GQLResolversTypes['Tag'], + ParentType, + ContextType, + RequireFields + > + deleteBlockedSearchKeywords?: Resolver< + Maybe, + ParentType, + ContextType, + RequireFields + > + deleteCollectionArticles?: Resolver< + GQLResolversTypes['Collection'], + ParentType, + ContextType, + RequireFields + > + deleteCollections?: Resolver< + GQLResolversTypes['Boolean'], + ParentType, + ContextType, + RequireFields + > + deleteComment?: Resolver< + GQLResolversTypes['Comment'], + ParentType, + ContextType, + RequireFields + > + deleteDraft?: Resolver< + Maybe, + ParentType, + ContextType, + RequireFields + > + deleteTags?: Resolver< + Maybe, + ParentType, + ContextType, + RequireFields + > + deleteTopics?: Resolver< + GQLResolversTypes['Boolean'], + ParentType, + ContextType, + RequireFields + > + directImageUpload?: Resolver< + GQLResolversTypes['Asset'], + ParentType, + ContextType, + RequireFields + > + editArticle?: Resolver< + GQLResolversTypes['Article'], + ParentType, + ContextType, + RequireFields + > + emailLogin?: Resolver< + GQLResolversTypes['AuthResult'], + ParentType, + ContextType, + RequireFields + > + generateLikerId?: Resolver + generateSigningMessage?: Resolver< + GQLResolversTypes['SigningMessageResult'], + ParentType, + ContextType, + RequireFields + > + invite?: Resolver< + Maybe>, + ParentType, + ContextType, + RequireFields + > + logRecord?: Resolver< + Maybe, + ParentType, + ContextType, + RequireFields + > + markAllNoticesAsRead?: Resolver< + Maybe, + ParentType, + ContextType + > + mergeTags?: Resolver< + GQLResolversTypes['Tag'], + ParentType, + ContextType, + RequireFields + > + migration?: Resolver< + Maybe, + ParentType, + ContextType, + RequireFields + > + payTo?: Resolver< + GQLResolversTypes['PayToResult'], + ParentType, + ContextType, + RequireFields + > + payout?: Resolver< + GQLResolversTypes['Transaction'], + ParentType, + ContextType, + RequireFields + > + pinComment?: Resolver< + GQLResolversTypes['Comment'], + ParentType, + ContextType, + RequireFields + > + publishArticle?: Resolver< + GQLResolversTypes['Draft'], + ParentType, + ContextType, + RequireFields + > + putAnnouncement?: Resolver< + GQLResolversTypes['Announcement'], + ParentType, + ContextType, + RequireFields + > + putChapter?: Resolver< + GQLResolversTypes['Chapter'], + ParentType, + ContextType, + RequireFields + > + putCircle?: Resolver< + GQLResolversTypes['Circle'], + ParentType, + ContextType, + RequireFields + > + putCircleArticles?: Resolver< + GQLResolversTypes['Circle'], + ParentType, + ContextType, + RequireFields + > + putCollection?: Resolver< + GQLResolversTypes['Collection'], + ParentType, + ContextType, + RequireFields + > + putComment?: Resolver< + GQLResolversTypes['Comment'], + ParentType, + ContextType, + RequireFields + > + putDraft?: Resolver< + GQLResolversTypes['Draft'], + ParentType, + ContextType, + RequireFields + > + putFeaturedTags?: Resolver< + Maybe>, + ParentType, + ContextType, + RequireFields + > + putOAuthClient?: Resolver< + Maybe, + ParentType, + ContextType, + RequireFields + > + putRemark?: Resolver< + Maybe, + ParentType, + ContextType, + RequireFields + > + putRestrictedUsers?: Resolver< + Array, + ParentType, + ContextType, + RequireFields + > + putSkippedListItem?: Resolver< + Maybe>, + ParentType, + ContextType, + RequireFields + > + putTag?: Resolver< + GQLResolversTypes['Tag'], + ParentType, + ContextType, + RequireFields + > + putTopic?: Resolver< + GQLResolversTypes['Topic'], + ParentType, + ContextType, + RequireFields + > + readArticle?: Resolver< + GQLResolversTypes['Article'], + ParentType, + ContextType, + RequireFields + > + refreshIPNSFeed?: Resolver< + GQLResolversTypes['User'], + ParentType, + ContextType, + RequireFields + > + removeSocialLogin?: Resolver< + GQLResolversTypes['User'], + ParentType, + ContextType, + RequireFields + > + removeWalletLogin?: Resolver< + GQLResolversTypes['User'], + ParentType, + ContextType + > + renameTag?: Resolver< + GQLResolversTypes['Tag'], + ParentType, + ContextType, + RequireFields + > + reorderCollectionArticles?: Resolver< + GQLResolversTypes['Collection'], + ParentType, + ContextType, + RequireFields + > + resetLikerId?: Resolver< + GQLResolversTypes['User'], + ParentType, + ContextType, + RequireFields + > + resetPassword?: Resolver< + Maybe, + ParentType, + ContextType, + RequireFields + > + resetWallet?: Resolver< + GQLResolversTypes['User'], + ParentType, + ContextType, + RequireFields + > + sendVerificationCode?: Resolver< + Maybe, + ParentType, + ContextType, + RequireFields + > + setBoost?: Resolver< + GQLResolversTypes['Node'], + ParentType, + ContextType, + RequireFields + > + setCurrency?: Resolver< + GQLResolversTypes['User'], + ParentType, + ContextType, + RequireFields + > + setEmail?: Resolver< + GQLResolversTypes['User'], + ParentType, + ContextType, + RequireFields + > + setFeature?: Resolver< + GQLResolversTypes['Feature'], + ParentType, + ContextType, + RequireFields + > + setPassword?: Resolver< + GQLResolversTypes['User'], + ParentType, + ContextType, + RequireFields + > + setUserName?: Resolver< + GQLResolversTypes['User'], + ParentType, + ContextType, + RequireFields + > + singleFileUpload?: Resolver< + GQLResolversTypes['Asset'], + ParentType, + ContextType, + RequireFields + > + socialLogin?: Resolver< + GQLResolversTypes['AuthResult'], + ParentType, + ContextType, + RequireFields + > + sortTopics?: Resolver< + Array, + ParentType, + ContextType, + RequireFields + > + submitReport?: Resolver< + GQLResolversTypes['Report'], + ParentType, + ContextType, + RequireFields + > + subscribeCircle?: Resolver< + GQLResolversTypes['SubscribeCircleResult'], + ParentType, + ContextType, + RequireFields + > + toggleArticleRecommend?: Resolver< + GQLResolversTypes['Article'], + ParentType, + ContextType, + RequireFields + > + toggleBlockUser?: Resolver< + GQLResolversTypes['User'], + ParentType, + ContextType, + RequireFields + > + toggleFollowCircle?: Resolver< + GQLResolversTypes['Circle'], + ParentType, + ContextType, + RequireFields + > + toggleFollowTag?: Resolver< + GQLResolversTypes['Tag'], + ParentType, + ContextType, + RequireFields + > + toggleFollowUser?: Resolver< + GQLResolversTypes['User'], + ParentType, + ContextType, + RequireFields + > + togglePinComment?: Resolver< + GQLResolversTypes['Comment'], + ParentType, + ContextType, + RequireFields + > + togglePinTag?: Resolver< + GQLResolversTypes['Tag'], + ParentType, + ContextType, + RequireFields + > + toggleSeedingUsers?: Resolver< + Array>, + ParentType, + ContextType, + RequireFields + > + toggleSubscribeArticle?: Resolver< + GQLResolversTypes['Article'], + ParentType, + ContextType, + RequireFields + > + toggleTagRecommend?: Resolver< + GQLResolversTypes['Tag'], + ParentType, + ContextType, + RequireFields + > + toggleUsersBadge?: Resolver< + Array>, + ParentType, + ContextType, + RequireFields + > + unbindLikerId?: Resolver< + GQLResolversTypes['User'], + ParentType, + ContextType, + RequireFields + > + unpinComment?: Resolver< + GQLResolversTypes['Comment'], + ParentType, + ContextType, + RequireFields + > + unsubscribeCircle?: Resolver< + GQLResolversTypes['Circle'], + ParentType, + ContextType, + RequireFields + > + unvoteComment?: Resolver< + GQLResolversTypes['Comment'], + ParentType, + ContextType, + RequireFields + > + updateArticleSensitive?: Resolver< + GQLResolversTypes['Article'], + ParentType, + ContextType, + RequireFields + > + updateArticleState?: Resolver< + GQLResolversTypes['Article'], + ParentType, + ContextType, + RequireFields + > + updateArticlesTags?: Resolver< + GQLResolversTypes['Tag'], + ParentType, + ContextType, + RequireFields + > + updateCommentsState?: Resolver< + Array, + ParentType, + ContextType, + RequireFields + > + updateNotificationSetting?: Resolver< + GQLResolversTypes['User'], + ParentType, + ContextType, + RequireFields + > + updateTagSetting?: Resolver< + GQLResolversTypes['Tag'], + ParentType, + ContextType, + RequireFields + > + updateUserExtra?: Resolver< + GQLResolversTypes['User'], + ParentType, + ContextType, + RequireFields + > + updateUserInfo?: Resolver< + GQLResolversTypes['User'], + ParentType, + ContextType, + RequireFields + > + updateUserRole?: Resolver< + GQLResolversTypes['User'], + ParentType, + ContextType, + RequireFields + > + updateUserState?: Resolver< + Maybe>, + ParentType, + ContextType, + RequireFields + > + userLogin?: Resolver< + GQLResolversTypes['AuthResult'], + ParentType, + ContextType, + RequireFields + > + userLogout?: Resolver + userRegister?: Resolver< + GQLResolversTypes['AuthResult'], + ParentType, + ContextType, + RequireFields + > + verifyEmail?: Resolver< + GQLResolversTypes['AuthResult'], + ParentType, + ContextType, + RequireFields + > + voteComment?: Resolver< + GQLResolversTypes['Comment'], + ParentType, + ContextType, + RequireFields + > + walletLogin?: Resolver< + GQLResolversTypes['AuthResult'], + ParentType, + ContextType, + RequireFields + > +}> + +export type GQLNftAssetResolvers< + ContextType = Context, + ParentType extends GQLResolversParentTypes['NFTAsset'] = GQLResolversParentTypes['NFTAsset'] +> = ResolversObject<{ + collectionName?: Resolver< + GQLResolversTypes['String'], + ParentType, + ContextType + > + contractAddress?: Resolver< + GQLResolversTypes['String'], + ParentType, + ContextType + > + description?: Resolver< + Maybe, + ParentType, + ContextType + > + id?: Resolver + imagePreviewUrl?: Resolver< + Maybe, + ParentType, + ContextType + > + imageUrl?: Resolver + name?: Resolver + __isTypeOf?: IsTypeOfResolverFn +}> + +export type GQLNodeResolvers< + ContextType = Context, + ParentType extends GQLResolversParentTypes['Node'] = GQLResolversParentTypes['Node'] +> = ResolversObject<{ + __resolveType: TypeResolveFn< + | 'Article' + | 'Chapter' + | 'Circle' + | 'Collection' + | 'Comment' + | 'Draft' + | 'Report' + | 'Tag' + | 'Topic' + | 'User', + ParentType, + ContextType + > +}> -export interface TransactionNoticeToActorsResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface TransactionNoticeToTypeResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface TransactionNoticeToTargetResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface GQLUserNoticeTypeResolver { - id?: UserNoticeToIdResolver - unread?: UserNoticeToUnreadResolver - createdAt?: UserNoticeToCreatedAtResolver - actors?: UserNoticeToActorsResolver - type?: UserNoticeToTypeResolver - target?: UserNoticeToTargetResolver -} - -export interface UserNoticeToIdResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface UserNoticeToUnreadResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface UserNoticeToCreatedAtResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface UserNoticeToActorsResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface UserNoticeToTypeResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface UserNoticeToTargetResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} +export type GQLNoticeResolvers< + ContextType = Context, + ParentType extends GQLResolversParentTypes['Notice'] = GQLResolversParentTypes['Notice'] +> = ResolversObject<{ + __resolveType: TypeResolveFn< + | 'ArticleArticleNotice' + | 'ArticleNotice' + | 'CircleNotice' + | 'CommentCommentNotice' + | 'CommentNotice' + | 'OfficialAnnouncementNotice' + | 'TransactionNotice' + | 'UserNotice', + ParentType, + ContextType + > +}> + +export type GQLNoticeConnectionResolvers< + ContextType = Context, + ParentType extends GQLResolversParentTypes['NoticeConnection'] = GQLResolversParentTypes['NoticeConnection'] +> = ResolversObject<{ + edges?: Resolver< + Maybe>, + ParentType, + ContextType + > + pageInfo?: Resolver + totalCount?: Resolver + __isTypeOf?: IsTypeOfResolverFn +}> + +export type GQLNoticeEdgeResolvers< + ContextType = Context, + ParentType extends GQLResolversParentTypes['NoticeEdge'] = GQLResolversParentTypes['NoticeEdge'] +> = ResolversObject<{ + cursor?: Resolver + node?: Resolver + __isTypeOf?: IsTypeOfResolverFn +}> + +export type GQLNotificationSettingResolvers< + ContextType = Context, + ParentType extends GQLResolversParentTypes['NotificationSetting'] = GQLResolversParentTypes['NotificationSetting'] +> = ResolversObject<{ + articleCommentPinned?: Resolver< + GQLResolversTypes['Boolean'], + ParentType, + ContextType + > + articleNewAppreciation?: Resolver< + GQLResolversTypes['Boolean'], + ParentType, + ContextType + > + articleNewCollected?: Resolver< + GQLResolversTypes['Boolean'], + ParentType, + ContextType + > + articleNewComment?: Resolver< + GQLResolversTypes['Boolean'], + ParentType, + ContextType + > + articleNewSubscription?: Resolver< + GQLResolversTypes['Boolean'], + ParentType, + ContextType + > + circleMemberNewBroadcastReply?: Resolver< + GQLResolversTypes['Boolean'], + ParentType, + ContextType + > + circleMemberNewDiscussion?: Resolver< + GQLResolversTypes['Boolean'], + ParentType, + ContextType + > + circleMemberNewDiscussionReply?: Resolver< + GQLResolversTypes['Boolean'], + ParentType, + ContextType + > + circleNewFollower?: Resolver< + GQLResolversTypes['Boolean'], + ParentType, + ContextType + > + circleNewSubscriber?: Resolver< + GQLResolversTypes['Boolean'], + ParentType, + ContextType + > + circleNewUnsubscriber?: Resolver< + GQLResolversTypes['Boolean'], + ParentType, + ContextType + > + email?: Resolver + inCircleNewArticle?: Resolver< + GQLResolversTypes['Boolean'], + ParentType, + ContextType + > + inCircleNewBroadcast?: Resolver< + GQLResolversTypes['Boolean'], + ParentType, + ContextType + > + inCircleNewBroadcastReply?: Resolver< + GQLResolversTypes['Boolean'], + ParentType, + ContextType + > + inCircleNewDiscussion?: Resolver< + GQLResolversTypes['Boolean'], + ParentType, + ContextType + > + inCircleNewDiscussionReply?: Resolver< + GQLResolversTypes['Boolean'], + ParentType, + ContextType + > + mention?: Resolver + userNewFollower?: Resolver< + GQLResolversTypes['Boolean'], + ParentType, + ContextType + > + __isTypeOf?: IsTypeOfResolverFn +}> + +export type GQLOAuthClientResolvers< + ContextType = Context, + ParentType extends GQLResolversParentTypes['OAuthClient'] = GQLResolversParentTypes['OAuthClient'] +> = ResolversObject<{ + avatar?: Resolver, ParentType, ContextType> + createdAt?: Resolver + description?: Resolver< + Maybe, + ParentType, + ContextType + > + grantTypes?: Resolver< + Maybe>, + ParentType, + ContextType + > + id?: Resolver + name?: Resolver + redirectURIs?: Resolver< + Maybe>, + ParentType, + ContextType + > + scope?: Resolver< + Maybe>, + ParentType, + ContextType + > + secret?: Resolver + user?: Resolver, ParentType, ContextType> + website?: Resolver< + Maybe, + ParentType, + ContextType + > + __isTypeOf?: IsTypeOfResolverFn +}> + +export type GQLOAuthClientConnectionResolvers< + ContextType = Context, + ParentType extends GQLResolversParentTypes['OAuthClientConnection'] = GQLResolversParentTypes['OAuthClientConnection'] +> = ResolversObject<{ + edges?: Resolver< + Maybe>, + ParentType, + ContextType + > + pageInfo?: Resolver + totalCount?: Resolver + __isTypeOf?: IsTypeOfResolverFn +}> + +export type GQLOAuthClientEdgeResolvers< + ContextType = Context, + ParentType extends GQLResolversParentTypes['OAuthClientEdge'] = GQLResolversParentTypes['OAuthClientEdge'] +> = ResolversObject<{ + cursor?: Resolver + node?: Resolver + __isTypeOf?: IsTypeOfResolverFn +}> + +export type GQLOssResolvers< + ContextType = Context, + ParentType extends GQLResolversParentTypes['OSS'] = GQLResolversParentTypes['OSS'] +> = ResolversObject<{ + articles?: Resolver< + GQLResolversTypes['ArticleConnection'], + ParentType, + ContextType, + RequireFields + > + badgedUsers?: Resolver< + GQLResolversTypes['UserConnection'], + ParentType, + ContextType, + RequireFields + > + comments?: Resolver< + GQLResolversTypes['CommentConnection'], + ParentType, + ContextType, + RequireFields + > + oauthClients?: Resolver< + GQLResolversTypes['OAuthClientConnection'], + ParentType, + ContextType, + RequireFields + > + reports?: Resolver< + GQLResolversTypes['ReportConnection'], + ParentType, + ContextType, + RequireFields + > + restrictedUsers?: Resolver< + GQLResolversTypes['UserConnection'], + ParentType, + ContextType, + RequireFields + > + seedingUsers?: Resolver< + GQLResolversTypes['UserConnection'], + ParentType, + ContextType, + RequireFields + > + skippedListItems?: Resolver< + GQLResolversTypes['SkippedListItemsConnection'], + ParentType, + ContextType, + RequireFields + > + tags?: Resolver< + GQLResolversTypes['TagConnection'], + ParentType, + ContextType, + RequireFields + > + users?: Resolver< + GQLResolversTypes['UserConnection'], + ParentType, + ContextType, + RequireFields + > + __isTypeOf?: IsTypeOfResolverFn +}> + +export type GQLOfficialResolvers< + ContextType = Context, + ParentType extends GQLResolversParentTypes['Official'] = GQLResolversParentTypes['Official'] +> = ResolversObject<{ + announcements?: Resolver< + Maybe>, + ParentType, + ContextType, + RequireFields + > + features?: Resolver< + Array, + ParentType, + ContextType + > + __isTypeOf?: IsTypeOfResolverFn +}> + +export type GQLOfficialAnnouncementNoticeResolvers< + ContextType = Context, + ParentType extends GQLResolversParentTypes['OfficialAnnouncementNotice'] = GQLResolversParentTypes['OfficialAnnouncementNotice'] +> = ResolversObject<{ + createdAt?: Resolver + id?: Resolver + link?: Resolver, ParentType, ContextType> + message?: Resolver + unread?: Resolver + __isTypeOf?: IsTypeOfResolverFn +}> + +export type GQLPageInfoResolvers< + ContextType = Context, + ParentType extends GQLResolversParentTypes['PageInfo'] = GQLResolversParentTypes['PageInfo'] +> = ResolversObject<{ + endCursor?: Resolver< + Maybe, + ParentType, + ContextType + > + hasNextPage?: Resolver + hasPreviousPage?: Resolver< + GQLResolversTypes['Boolean'], + ParentType, + ContextType + > + startCursor?: Resolver< + Maybe, + ParentType, + ContextType + > + __isTypeOf?: IsTypeOfResolverFn +}> + +export type GQLPayToResultResolvers< + ContextType = Context, + ParentType extends GQLResolversParentTypes['PayToResult'] = GQLResolversParentTypes['PayToResult'] +> = ResolversObject<{ + redirectUrl?: Resolver< + Maybe, + ParentType, + ContextType + > + transaction?: Resolver< + GQLResolversTypes['Transaction'], + ParentType, + ContextType + > + __isTypeOf?: IsTypeOfResolverFn +}> + +export type GQLPersonResolvers< + ContextType = Context, + ParentType extends GQLResolversParentTypes['Person'] = GQLResolversParentTypes['Person'] +> = ResolversObject<{ + email?: Resolver + __isTypeOf?: IsTypeOfResolverFn +}> + +export type GQLPinnableWorkResolvers< + ContextType = Context, + ParentType extends GQLResolversParentTypes['PinnableWork'] = GQLResolversParentTypes['PinnableWork'] +> = ResolversObject<{ + __resolveType: TypeResolveFn< + 'Article' | 'Collection', + ParentType, + ContextType + > +}> + +export type GQLPriceResolvers< + ContextType = Context, + ParentType extends GQLResolversParentTypes['Price'] = GQLResolversParentTypes['Price'] +> = ResolversObject<{ + amount?: Resolver + circle?: Resolver + createdAt?: Resolver + currency?: Resolver< + GQLResolversTypes['TransactionCurrency'], + ParentType, + ContextType + > + id?: Resolver + state?: Resolver + updatedAt?: Resolver + __isTypeOf?: IsTypeOfResolverFn +}> + +export type GQLQueryResolvers< + ContextType = Context, + ParentType extends GQLResolversParentTypes['Query'] = GQLResolversParentTypes['Query'] +> = ResolversObject<{ + article?: Resolver< + Maybe, + ParentType, + ContextType, + RequireFields + > + circle?: Resolver< + Maybe, + ParentType, + ContextType, + RequireFields + > + exchangeRates?: Resolver< + Maybe>, + ParentType, + ContextType, + Partial + > + frequentSearch?: Resolver< + Maybe>, + ParentType, + ContextType, + RequireFields + > + node?: Resolver< + Maybe, + ParentType, + ContextType, + RequireFields + > + nodes?: Resolver< + Maybe>, + ParentType, + ContextType, + RequireFields + > + oauthClient?: Resolver< + Maybe, + ParentType, + ContextType, + RequireFields + > + oauthRequestToken?: Resolver< + Maybe, + ParentType, + ContextType + > + official?: Resolver + oss?: Resolver + search?: Resolver< + GQLResolversTypes['SearchResultConnection'], + ParentType, + ContextType, + RequireFields + > + user?: Resolver< + Maybe, + ParentType, + ContextType, + RequireFields + > + viewer?: Resolver, ParentType, ContextType> +}> + +export type GQLReadHistoryResolvers< + ContextType = Context, + ParentType extends GQLResolversParentTypes['ReadHistory'] = GQLResolversParentTypes['ReadHistory'] +> = ResolversObject<{ + article?: Resolver + readAt?: Resolver + __isTypeOf?: IsTypeOfResolverFn +}> + +export type GQLReadHistoryConnectionResolvers< + ContextType = Context, + ParentType extends GQLResolversParentTypes['ReadHistoryConnection'] = GQLResolversParentTypes['ReadHistoryConnection'] +> = ResolversObject<{ + edges?: Resolver< + Maybe>, + ParentType, + ContextType + > + pageInfo?: Resolver + totalCount?: Resolver + __isTypeOf?: IsTypeOfResolverFn +}> + +export type GQLReadHistoryEdgeResolvers< + ContextType = Context, + ParentType extends GQLResolversParentTypes['ReadHistoryEdge'] = GQLResolversParentTypes['ReadHistoryEdge'] +> = ResolversObject<{ + cursor?: Resolver + node?: Resolver + __isTypeOf?: IsTypeOfResolverFn +}> + +export type GQLRecentSearchConnectionResolvers< + ContextType = Context, + ParentType extends GQLResolversParentTypes['RecentSearchConnection'] = GQLResolversParentTypes['RecentSearchConnection'] +> = ResolversObject<{ + edges?: Resolver< + Maybe>, + ParentType, + ContextType + > + pageInfo?: Resolver + totalCount?: Resolver + __isTypeOf?: IsTypeOfResolverFn +}> + +export type GQLRecentSearchEdgeResolvers< + ContextType = Context, + ParentType extends GQLResolversParentTypes['RecentSearchEdge'] = GQLResolversParentTypes['RecentSearchEdge'] +> = ResolversObject<{ + cursor?: Resolver + node?: Resolver + __isTypeOf?: IsTypeOfResolverFn +}> + +export type GQLRecommendationResolvers< + ContextType = Context, + ParentType extends GQLResolversParentTypes['Recommendation'] = GQLResolversParentTypes['Recommendation'] +> = ResolversObject<{ + authors?: Resolver< + GQLResolversTypes['UserConnection'], + ParentType, + ContextType, + RequireFields + > + following?: Resolver< + GQLResolversTypes['FollowingActivityConnection'], + ParentType, + ContextType, + RequireFields + > + hottest?: Resolver< + GQLResolversTypes['ArticleConnection'], + ParentType, + ContextType, + RequireFields + > + hottestCircles?: Resolver< + GQLResolversTypes['CircleConnection'], + ParentType, + ContextType, + RequireFields + > + hottestTags?: Resolver< + GQLResolversTypes['TagConnection'], + ParentType, + ContextType, + RequireFields + > + icymi?: Resolver< + GQLResolversTypes['ArticleConnection'], + ParentType, + ContextType, + RequireFields + > + newest?: Resolver< + GQLResolversTypes['ArticleConnection'], + ParentType, + ContextType, + RequireFields + > + newestCircles?: Resolver< + GQLResolversTypes['CircleConnection'], + ParentType, + ContextType, + RequireFields + > + readTagsArticles?: Resolver< + GQLResolversTypes['ArticleConnection'], + ParentType, + ContextType, + RequireFields + > + selectedTags?: Resolver< + GQLResolversTypes['TagConnection'], + ParentType, + ContextType, + RequireFields + > + tags?: Resolver< + GQLResolversTypes['TagConnection'], + ParentType, + ContextType, + RequireFields + > + __isTypeOf?: IsTypeOfResolverFn +}> + +export type GQLReportResolvers< + ContextType = Context, + ParentType extends GQLResolversParentTypes['Report'] = GQLResolversParentTypes['Report'] +> = ResolversObject<{ + createdAt?: Resolver + id?: Resolver + reason?: Resolver + reporter?: Resolver + target?: Resolver + __isTypeOf?: IsTypeOfResolverFn +}> + +export type GQLReportConnectionResolvers< + ContextType = Context, + ParentType extends GQLResolversParentTypes['ReportConnection'] = GQLResolversParentTypes['ReportConnection'] +> = ResolversObject<{ + edges?: Resolver< + Maybe>, + ParentType, + ContextType + > + pageInfo?: Resolver + totalCount?: Resolver + __isTypeOf?: IsTypeOfResolverFn +}> + +export type GQLReportEdgeResolvers< + ContextType = Context, + ParentType extends GQLResolversParentTypes['ReportEdge'] = GQLResolversParentTypes['ReportEdge'] +> = ResolversObject<{ + cursor?: Resolver + node?: Resolver + __isTypeOf?: IsTypeOfResolverFn +}> + +export type GQLResponseResolvers< + ContextType = Context, + ParentType extends GQLResolversParentTypes['Response'] = GQLResolversParentTypes['Response'] +> = ResolversObject<{ + __resolveType: TypeResolveFn<'Article' | 'Comment', ParentType, ContextType> +}> + +export type GQLResponseConnectionResolvers< + ContextType = Context, + ParentType extends GQLResolversParentTypes['ResponseConnection'] = GQLResolversParentTypes['ResponseConnection'] +> = ResolversObject<{ + edges?: Resolver< + Maybe>, + ParentType, + ContextType + > + pageInfo?: Resolver + totalCount?: Resolver + __isTypeOf?: IsTypeOfResolverFn +}> + +export type GQLResponseEdgeResolvers< + ContextType = Context, + ParentType extends GQLResolversParentTypes['ResponseEdge'] = GQLResolversParentTypes['ResponseEdge'] +> = ResolversObject<{ + cursor?: Resolver + node?: Resolver + __isTypeOf?: IsTypeOfResolverFn +}> + +export type GQLSearchResultConnectionResolvers< + ContextType = Context, + ParentType extends GQLResolversParentTypes['SearchResultConnection'] = GQLResolversParentTypes['SearchResultConnection'] +> = ResolversObject<{ + edges?: Resolver< + Maybe>, + ParentType, + ContextType + > + pageInfo?: Resolver + totalCount?: Resolver + __isTypeOf?: IsTypeOfResolverFn +}> + +export type GQLSearchResultEdgeResolvers< + ContextType = Context, + ParentType extends GQLResolversParentTypes['SearchResultEdge'] = GQLResolversParentTypes['SearchResultEdge'] +> = ResolversObject<{ + cursor?: Resolver + node?: Resolver + __isTypeOf?: IsTypeOfResolverFn +}> + +export type GQLSigningMessageResultResolvers< + ContextType = Context, + ParentType extends GQLResolversParentTypes['SigningMessageResult'] = GQLResolversParentTypes['SigningMessageResult'] +> = ResolversObject<{ + createdAt?: Resolver + expiredAt?: Resolver + nonce?: Resolver + purpose?: Resolver< + GQLResolversTypes['SigningMessagePurpose'], + ParentType, + ContextType + > + signingMessage?: Resolver< + GQLResolversTypes['String'], + ParentType, + ContextType + > + __isTypeOf?: IsTypeOfResolverFn +}> + +export type GQLSkippedListItemResolvers< + ContextType = Context, + ParentType extends GQLResolversParentTypes['SkippedListItem'] = GQLResolversParentTypes['SkippedListItem'] +> = ResolversObject<{ + archived?: Resolver + createdAt?: Resolver + id?: Resolver + type?: Resolver< + GQLResolversTypes['SkippedListItemType'], + ParentType, + ContextType + > + updatedAt?: Resolver + uuid?: Resolver + value?: Resolver + __isTypeOf?: IsTypeOfResolverFn +}> + +export type GQLSkippedListItemEdgeResolvers< + ContextType = Context, + ParentType extends GQLResolversParentTypes['SkippedListItemEdge'] = GQLResolversParentTypes['SkippedListItemEdge'] +> = ResolversObject<{ + cursor?: Resolver + node?: Resolver< + Maybe, + ParentType, + ContextType + > + __isTypeOf?: IsTypeOfResolverFn +}> + +export type GQLSkippedListItemsConnectionResolvers< + ContextType = Context, + ParentType extends GQLResolversParentTypes['SkippedListItemsConnection'] = GQLResolversParentTypes['SkippedListItemsConnection'] +> = ResolversObject<{ + edges?: Resolver< + Maybe>, + ParentType, + ContextType + > + pageInfo?: Resolver + totalCount?: Resolver + __isTypeOf?: IsTypeOfResolverFn +}> + +export type GQLSocialAccountResolvers< + ContextType = Context, + ParentType extends GQLResolversParentTypes['SocialAccount'] = GQLResolversParentTypes['SocialAccount'] +> = ResolversObject<{ + email?: Resolver, ParentType, ContextType> + type?: Resolver< + GQLResolversTypes['SocialAccountType'], + ParentType, + ContextType + > + userName?: Resolver< + Maybe, + ParentType, + ContextType + > + __isTypeOf?: IsTypeOfResolverFn +}> + +export type GQLStripeAccountResolvers< + ContextType = Context, + ParentType extends GQLResolversParentTypes['StripeAccount'] = GQLResolversParentTypes['StripeAccount'] +> = ResolversObject<{ + id?: Resolver + loginUrl?: Resolver + __isTypeOf?: IsTypeOfResolverFn +}> + +export type GQLSubscribeCircleResultResolvers< + ContextType = Context, + ParentType extends GQLResolversParentTypes['SubscribeCircleResult'] = GQLResolversParentTypes['SubscribeCircleResult'] +> = ResolversObject<{ + circle?: Resolver + client_secret?: Resolver< + Maybe, + ParentType, + ContextType + > + __isTypeOf?: IsTypeOfResolverFn +}> + +export type GQLTagResolvers< + ContextType = Context, + ParentType extends GQLResolversParentTypes['Tag'] = GQLResolversParentTypes['Tag'] +> = ResolversObject<{ + articles?: Resolver< + GQLResolversTypes['ArticleConnection'], + ParentType, + ContextType, + RequireFields + > + content?: Resolver + cover?: Resolver, ParentType, ContextType> + createdAt?: Resolver + creator?: Resolver, ParentType, ContextType> + deleted?: Resolver + description?: Resolver< + Maybe, + ParentType, + ContextType + > + editors?: Resolver< + Maybe>, + ParentType, + ContextType, + Partial + > + followers?: Resolver< + GQLResolversTypes['UserConnection'], + ParentType, + ContextType, + RequireFields + > + id?: Resolver + isFollower?: Resolver< + Maybe, + ParentType, + ContextType + > + isOfficial?: Resolver< + Maybe, + ParentType, + ContextType + > + isPinned?: Resolver< + Maybe, + ParentType, + ContextType + > + numArticles?: Resolver + numAuthors?: Resolver + oss?: Resolver + owner?: Resolver, ParentType, ContextType> + participants?: Resolver< + GQLResolversTypes['UserConnection'], + ParentType, + ContextType, + RequireFields + > + recommended?: Resolver< + GQLResolversTypes['TagConnection'], + ParentType, + ContextType, + RequireFields + > + remark?: Resolver, ParentType, ContextType> + selected?: Resolver< + GQLResolversTypes['Boolean'], + ParentType, + ContextType, + RequireFields + > + __isTypeOf?: IsTypeOfResolverFn +}> + +export type GQLTagConnectionResolvers< + ContextType = Context, + ParentType extends GQLResolversParentTypes['TagConnection'] = GQLResolversParentTypes['TagConnection'] +> = ResolversObject<{ + edges?: Resolver< + Maybe>, + ParentType, + ContextType + > + pageInfo?: Resolver + totalCount?: Resolver + __isTypeOf?: IsTypeOfResolverFn +}> + +export type GQLTagEdgeResolvers< + ContextType = Context, + ParentType extends GQLResolversParentTypes['TagEdge'] = GQLResolversParentTypes['TagEdge'] +> = ResolversObject<{ + cursor?: Resolver + node?: Resolver + __isTypeOf?: IsTypeOfResolverFn +}> + +export type GQLTagOssResolvers< + ContextType = Context, + ParentType extends GQLResolversParentTypes['TagOSS'] = GQLResolversParentTypes['TagOSS'] +> = ResolversObject<{ + boost?: Resolver + score?: Resolver + selected?: Resolver + __isTypeOf?: IsTypeOfResolverFn +}> + +export type GQLTopDonatorConnectionResolvers< + ContextType = Context, + ParentType extends GQLResolversParentTypes['TopDonatorConnection'] = GQLResolversParentTypes['TopDonatorConnection'] +> = ResolversObject<{ + edges?: Resolver< + Maybe>, + ParentType, + ContextType + > + pageInfo?: Resolver + totalCount?: Resolver + __isTypeOf?: IsTypeOfResolverFn +}> + +export type GQLTopDonatorEdgeResolvers< + ContextType = Context, + ParentType extends GQLResolversParentTypes['TopDonatorEdge'] = GQLResolversParentTypes['TopDonatorEdge'] +> = ResolversObject<{ + cursor?: Resolver + donationCount?: Resolver + node?: Resolver + __isTypeOf?: IsTypeOfResolverFn +}> + +export type GQLTopicResolvers< + ContextType = Context, + ParentType extends GQLResolversParentTypes['Topic'] = GQLResolversParentTypes['Topic'] +> = ResolversObject<{ + articleCount?: Resolver + articles?: Resolver< + Maybe>, + ParentType, + ContextType + > + author?: Resolver + chapterCount?: Resolver + chapters?: Resolver< + Maybe>, + ParentType, + ContextType + > + cover?: Resolver, ParentType, ContextType> + description?: Resolver< + Maybe, + ParentType, + ContextType + > + id?: Resolver + latestArticle?: Resolver< + Maybe, + ParentType, + ContextType + > + public?: Resolver + title?: Resolver + __isTypeOf?: IsTypeOfResolverFn +}> + +export type GQLTopicConnectionResolvers< + ContextType = Context, + ParentType extends GQLResolversParentTypes['TopicConnection'] = GQLResolversParentTypes['TopicConnection'] +> = ResolversObject<{ + edges?: Resolver< + Maybe>, + ParentType, + ContextType + > + pageInfo?: Resolver + totalCount?: Resolver + __isTypeOf?: IsTypeOfResolverFn +}> + +export type GQLTopicEdgeResolvers< + ContextType = Context, + ParentType extends GQLResolversParentTypes['TopicEdge'] = GQLResolversParentTypes['TopicEdge'] +> = ResolversObject<{ + cursor?: Resolver + node?: Resolver + __isTypeOf?: IsTypeOfResolverFn +}> + +export type GQLTransactionResolvers< + ContextType = Context, + ParentType extends GQLResolversParentTypes['Transaction'] = GQLResolversParentTypes['Transaction'] +> = ResolversObject<{ + amount?: Resolver + blockchainTx?: Resolver< + Maybe, + ParentType, + ContextType + > + createdAt?: Resolver + currency?: Resolver< + GQLResolversTypes['TransactionCurrency'], + ParentType, + ContextType + > + fee?: Resolver + id?: Resolver + message?: Resolver< + Maybe, + ParentType, + ContextType + > + purpose?: Resolver< + GQLResolversTypes['TransactionPurpose'], + ParentType, + ContextType + > + recipient?: Resolver< + Maybe, + ParentType, + ContextType + > + sender?: Resolver, ParentType, ContextType> + state?: Resolver< + GQLResolversTypes['TransactionState'], + ParentType, + ContextType + > + target?: Resolver< + Maybe, + ParentType, + ContextType + > + __isTypeOf?: IsTypeOfResolverFn +}> + +export type GQLTransactionConnectionResolvers< + ContextType = Context, + ParentType extends GQLResolversParentTypes['TransactionConnection'] = GQLResolversParentTypes['TransactionConnection'] +> = ResolversObject<{ + edges?: Resolver< + Maybe>, + ParentType, + ContextType + > + pageInfo?: Resolver + totalCount?: Resolver + __isTypeOf?: IsTypeOfResolverFn +}> + +export type GQLTransactionEdgeResolvers< + ContextType = Context, + ParentType extends GQLResolversParentTypes['TransactionEdge'] = GQLResolversParentTypes['TransactionEdge'] +> = ResolversObject<{ + cursor?: Resolver + node?: Resolver + __isTypeOf?: IsTypeOfResolverFn +}> + +export type GQLTransactionNoticeResolvers< + ContextType = Context, + ParentType extends GQLResolversParentTypes['TransactionNotice'] = GQLResolversParentTypes['TransactionNotice'] +> = ResolversObject<{ + actors?: Resolver< + Maybe>, + ParentType, + ContextType + > + createdAt?: Resolver + id?: Resolver + target?: Resolver + type?: Resolver< + GQLResolversTypes['TransactionNoticeType'], + ParentType, + ContextType + > + unread?: Resolver + __isTypeOf?: IsTypeOfResolverFn +}> + +export type GQLTransactionTargetResolvers< + ContextType = Context, + ParentType extends GQLResolversParentTypes['TransactionTarget'] = GQLResolversParentTypes['TransactionTarget'] +> = ResolversObject<{ + __resolveType: TypeResolveFn< + 'Article' | 'Circle' | 'Transaction', + ParentType, + ContextType + > +}> + +export type GQLTranslatedAnnouncementResolvers< + ContextType = Context, + ParentType extends GQLResolversParentTypes['TranslatedAnnouncement'] = GQLResolversParentTypes['TranslatedAnnouncement'] +> = ResolversObject<{ + content?: Resolver< + Maybe, + ParentType, + ContextType + > + cover?: Resolver, ParentType, ContextType> + language?: Resolver< + GQLResolversTypes['UserLanguage'], + ParentType, + ContextType + > + link?: Resolver, ParentType, ContextType> + title?: Resolver, ParentType, ContextType> + __isTypeOf?: IsTypeOfResolverFn +}> + +export interface GQLUploadScalarConfig + extends GraphQLScalarTypeConfig { + name: 'Upload' +} + +export type GQLUserResolvers< + ContextType = Context, + ParentType extends GQLResolversParentTypes['User'] = GQLResolversParentTypes['User'] +> = ResolversObject<{ + activity?: Resolver< + GQLResolversTypes['UserActivity'], + ParentType, + ContextType + > + analytics?: Resolver< + GQLResolversTypes['UserAnalytics'], + ParentType, + ContextType + > + articles?: Resolver< + GQLResolversTypes['ArticleConnection'], + ParentType, + ContextType, + RequireFields + > + avatar?: Resolver, ParentType, ContextType> + blockList?: Resolver< + GQLResolversTypes['UserConnection'], + ParentType, + ContextType, + RequireFields + > + collections?: Resolver< + GQLResolversTypes['CollectionConnection'], + ParentType, + ContextType, + RequireFields + > + commentedArticles?: Resolver< + GQLResolversTypes['ArticleConnection'], + ParentType, + ContextType, + RequireFields + > + displayName?: Resolver< + Maybe, + ParentType, + ContextType + > + drafts?: Resolver< + GQLResolversTypes['DraftConnection'], + ParentType, + ContextType, + RequireFields + > + followers?: Resolver< + GQLResolversTypes['UserConnection'], + ParentType, + ContextType, + RequireFields + > + following?: Resolver + id?: Resolver + info?: Resolver + isBlocked?: Resolver + isBlocking?: Resolver + isFollowee?: Resolver + isFollower?: Resolver + latestWorks?: Resolver< + Array, + ParentType, + ContextType + > + liker?: Resolver + likerId?: Resolver< + Maybe, + ParentType, + ContextType + > + maintainedTags?: Resolver< + GQLResolversTypes['TagConnection'], + ParentType, + ContextType, + RequireFields + > + notices?: Resolver< + GQLResolversTypes['NoticeConnection'], + ParentType, + ContextType, + RequireFields + > + oss?: Resolver + ownCircles?: Resolver< + Maybe>, + ParentType, + ContextType + > + paymentPointer?: Resolver< + Maybe, + ParentType, + ContextType + > + pinnedTags?: Resolver< + GQLResolversTypes['TagConnection'], + ParentType, + ContextType, + RequireFields + > + pinnedWorks?: Resolver< + Array, + ParentType, + ContextType + > + recommendation?: Resolver< + GQLResolversTypes['Recommendation'], + ParentType, + ContextType + > + remark?: Resolver, ParentType, ContextType> + settings?: Resolver< + GQLResolversTypes['UserSettings'], + ParentType, + ContextType + > + status?: Resolver< + Maybe, + ParentType, + ContextType + > + subscribedCircles?: Resolver< + GQLResolversTypes['CircleConnection'], + ParentType, + ContextType, + RequireFields + > + subscriptions?: Resolver< + GQLResolversTypes['ArticleConnection'], + ParentType, + ContextType, + RequireFields + > + tags?: Resolver< + GQLResolversTypes['TagConnection'], + ParentType, + ContextType, + RequireFields + > + topics?: Resolver< + GQLResolversTypes['TopicConnection'], + ParentType, + ContextType, + RequireFields + > + userName?: Resolver< + Maybe, + ParentType, + ContextType + > + wallet?: Resolver + __isTypeOf?: IsTypeOfResolverFn +}> + +export type GQLUserActivityResolvers< + ContextType = Context, + ParentType extends GQLResolversParentTypes['UserActivity'] = GQLResolversParentTypes['UserActivity'] +> = ResolversObject<{ + appreciationsReceived?: Resolver< + GQLResolversTypes['AppreciationConnection'], + ParentType, + ContextType, + RequireFields + > + appreciationsReceivedTotal?: Resolver< + GQLResolversTypes['Int'], + ParentType, + ContextType + > + appreciationsSent?: Resolver< + GQLResolversTypes['AppreciationConnection'], + ParentType, + ContextType, + RequireFields + > + appreciationsSentTotal?: Resolver< + GQLResolversTypes['Int'], + ParentType, + ContextType + > + history?: Resolver< + GQLResolversTypes['ReadHistoryConnection'], + ParentType, + ContextType, + RequireFields + > + recentSearches?: Resolver< + GQLResolversTypes['RecentSearchConnection'], + ParentType, + ContextType, + RequireFields + > + __isTypeOf?: IsTypeOfResolverFn +}> + +export type GQLUserAddArticleTagActivityResolvers< + ContextType = Context, + ParentType extends GQLResolversParentTypes['UserAddArticleTagActivity'] = GQLResolversParentTypes['UserAddArticleTagActivity'] +> = ResolversObject<{ + actor?: Resolver + createdAt?: Resolver + node?: Resolver + target?: Resolver + __isTypeOf?: IsTypeOfResolverFn +}> + +export type GQLUserAnalyticsResolvers< + ContextType = Context, + ParentType extends GQLResolversParentTypes['UserAnalytics'] = GQLResolversParentTypes['UserAnalytics'] +> = ResolversObject<{ + topDonators?: Resolver< + GQLResolversTypes['TopDonatorConnection'], + ParentType, + ContextType, + RequireFields + > + __isTypeOf?: IsTypeOfResolverFn +}> + +export type GQLUserBroadcastCircleActivityResolvers< + ContextType = Context, + ParentType extends GQLResolversParentTypes['UserBroadcastCircleActivity'] = GQLResolversParentTypes['UserBroadcastCircleActivity'] +> = ResolversObject<{ + actor?: Resolver + createdAt?: Resolver + node?: Resolver + target?: Resolver + __isTypeOf?: IsTypeOfResolverFn +}> + +export type GQLUserConnectionResolvers< + ContextType = Context, + ParentType extends GQLResolversParentTypes['UserConnection'] = GQLResolversParentTypes['UserConnection'] +> = ResolversObject<{ + edges?: Resolver< + Maybe>, + ParentType, + ContextType + > + pageInfo?: Resolver + totalCount?: Resolver + __isTypeOf?: IsTypeOfResolverFn +}> + +export type GQLUserCreateCircleActivityResolvers< + ContextType = Context, + ParentType extends GQLResolversParentTypes['UserCreateCircleActivity'] = GQLResolversParentTypes['UserCreateCircleActivity'] +> = ResolversObject<{ + actor?: Resolver + createdAt?: Resolver + node?: Resolver + __isTypeOf?: IsTypeOfResolverFn +}> + +export type GQLUserEdgeResolvers< + ContextType = Context, + ParentType extends GQLResolversParentTypes['UserEdge'] = GQLResolversParentTypes['UserEdge'] +> = ResolversObject<{ + cursor?: Resolver + node?: Resolver + __isTypeOf?: IsTypeOfResolverFn +}> + +export type GQLUserInfoResolvers< + ContextType = Context, + ParentType extends GQLResolversParentTypes['UserInfo'] = GQLResolversParentTypes['UserInfo'] +> = ResolversObject<{ + agreeOn?: Resolver< + Maybe, + ParentType, + ContextType + > + badges?: Resolver< + Maybe>, + ParentType, + ContextType + > + createdAt?: Resolver< + Maybe, + ParentType, + ContextType + > + cryptoWallet?: Resolver< + Maybe, + ParentType, + ContextType + > + description?: Resolver< + Maybe, + ParentType, + ContextType + > + email?: Resolver, ParentType, ContextType> + emailVerified?: Resolver< + GQLResolversTypes['Boolean'], + ParentType, + ContextType + > + ethAddress?: Resolver< + Maybe, + ParentType, + ContextType + > + featuredTags?: Resolver< + Maybe>, + ParentType, + ContextType + > + group?: Resolver + ipnsKey?: Resolver< + Maybe, + ParentType, + ContextType + > + isWalletAuth?: Resolver + profileCover?: Resolver< + Maybe, + ParentType, + ContextType + > + socialAccounts?: Resolver< + Array, + ParentType, + ContextType + > + userNameEditable?: Resolver< + GQLResolversTypes['Boolean'], + ParentType, + ContextType + > + __isTypeOf?: IsTypeOfResolverFn +}> + +export type GQLUserNoticeResolvers< + ContextType = Context, + ParentType extends GQLResolversParentTypes['UserNotice'] = GQLResolversParentTypes['UserNotice'] +> = ResolversObject<{ + actors?: Resolver< + Maybe>, + ParentType, + ContextType + > + createdAt?: Resolver + id?: Resolver + target?: Resolver + type?: Resolver + unread?: Resolver + __isTypeOf?: IsTypeOfResolverFn +}> + +export type GQLUserOssResolvers< + ContextType = Context, + ParentType extends GQLResolversParentTypes['UserOSS'] = GQLResolversParentTypes['UserOSS'] +> = ResolversObject<{ + boost?: Resolver + restrictions?: Resolver< + Array, + ParentType, + ContextType + > + score?: Resolver + __isTypeOf?: IsTypeOfResolverFn +}> + +export type GQLUserPublishArticleActivityResolvers< + ContextType = Context, + ParentType extends GQLResolversParentTypes['UserPublishArticleActivity'] = GQLResolversParentTypes['UserPublishArticleActivity'] +> = ResolversObject<{ + actor?: Resolver + createdAt?: Resolver + node?: Resolver + __isTypeOf?: IsTypeOfResolverFn +}> + +export type GQLUserRecommendationActivityResolvers< + ContextType = Context, + ParentType extends GQLResolversParentTypes['UserRecommendationActivity'] = GQLResolversParentTypes['UserRecommendationActivity'] +> = ResolversObject<{ + nodes?: Resolver< + Maybe>, + ParentType, + ContextType + > + source?: Resolver< + Maybe, + ParentType, + ContextType + > + __isTypeOf?: IsTypeOfResolverFn +}> + +export type GQLUserRestrictionResolvers< + ContextType = Context, + ParentType extends GQLResolversParentTypes['UserRestriction'] = GQLResolversParentTypes['UserRestriction'] +> = ResolversObject<{ + createdAt?: Resolver + type?: Resolver< + GQLResolversTypes['UserRestrictionType'], + ParentType, + ContextType + > + __isTypeOf?: IsTypeOfResolverFn +}> + +export type GQLUserSettingsResolvers< + ContextType = Context, + ParentType extends GQLResolversParentTypes['UserSettings'] = GQLResolversParentTypes['UserSettings'] +> = ResolversObject<{ + currency?: Resolver< + GQLResolversTypes['QuoteCurrency'], + ParentType, + ContextType + > + language?: Resolver< + GQLResolversTypes['UserLanguage'], + ParentType, + ContextType + > + notification?: Resolver< + Maybe, + ParentType, + ContextType + > + __isTypeOf?: IsTypeOfResolverFn +}> + +export type GQLUserStatusResolvers< + ContextType = Context, + ParentType extends GQLResolversParentTypes['UserStatus'] = GQLResolversParentTypes['UserStatus'] +> = ResolversObject<{ + articleCount?: Resolver + changeEmailTimesLeft?: Resolver< + GQLResolversTypes['Int'], + ParentType, + ContextType + > + commentCount?: Resolver + donatedArticleCount?: Resolver< + GQLResolversTypes['Int'], + ParentType, + ContextType + > + hasEmailLoginPassword?: Resolver< + GQLResolversTypes['Boolean'], + ParentType, + ContextType + > + hasPaymentPassword?: Resolver< + GQLResolversTypes['Boolean'], + ParentType, + ContextType + > + receivedDonationCount?: Resolver< + GQLResolversTypes['Int'], + ParentType, + ContextType + > + role?: Resolver + state?: Resolver + totalReferredCount?: Resolver< + GQLResolversTypes['Int'], + ParentType, + ContextType + > + totalWordCount?: Resolver + unreadFollowing?: Resolver< + GQLResolversTypes['Boolean'], + ParentType, + ContextType + > + unreadNoticeCount?: Resolver< + GQLResolversTypes['Int'], + ParentType, + ContextType + > + __isTypeOf?: IsTypeOfResolverFn +}> + +export type GQLWalletResolvers< + ContextType = Context, + ParentType extends GQLResolversParentTypes['Wallet'] = GQLResolversParentTypes['Wallet'] +> = ResolversObject<{ + balance?: Resolver + cardLast4?: Resolver< + Maybe, + ParentType, + ContextType + > + customerPortal?: Resolver< + Maybe, + ParentType, + ContextType + > + stripeAccount?: Resolver< + Maybe, + ParentType, + ContextType + > + transactions?: Resolver< + GQLResolversTypes['TransactionConnection'], + ParentType, + ContextType, + RequireFields + > + __isTypeOf?: IsTypeOfResolverFn +}> + +export type GQLResolvers = ResolversObject<{ + AddCreditResult?: GQLAddCreditResultResolvers + Announcement?: GQLAnnouncementResolvers + Appreciation?: GQLAppreciationResolvers + AppreciationConnection?: GQLAppreciationConnectionResolvers + AppreciationEdge?: GQLAppreciationEdgeResolvers + Article?: GQLArticleResolvers + ArticleAccess?: GQLArticleAccessResolvers + ArticleArticleNotice?: GQLArticleArticleNoticeResolvers + ArticleConnection?: GQLArticleConnectionResolvers + ArticleContents?: GQLArticleContentsResolvers + ArticleDonation?: GQLArticleDonationResolvers + ArticleDonationConnection?: GQLArticleDonationConnectionResolvers + ArticleDonationEdge?: GQLArticleDonationEdgeResolvers + ArticleEdge?: GQLArticleEdgeResolvers + ArticleNotice?: GQLArticleNoticeResolvers + ArticleOSS?: GQLArticleOssResolvers + ArticleRecommendationActivity?: GQLArticleRecommendationActivityResolvers< + ContextType + > + ArticleTranslation?: GQLArticleTranslationResolvers + Asset?: GQLAssetResolvers + AuthResult?: GQLAuthResultResolvers + Badge?: GQLBadgeResolvers + Balance?: GQLBalanceResolvers + BlockchainTransaction?: GQLBlockchainTransactionResolvers + BlockedSearchKeyword?: GQLBlockedSearchKeywordResolvers + Chapter?: GQLChapterResolvers + Circle?: GQLCircleResolvers + CircleAnalytics?: GQLCircleAnalyticsResolvers + CircleConnection?: GQLCircleConnectionResolvers + CircleContentAnalytics?: GQLCircleContentAnalyticsResolvers + CircleContentAnalyticsDatum?: GQLCircleContentAnalyticsDatumResolvers< + ContextType + > + CircleEdge?: GQLCircleEdgeResolvers + CircleFollowerAnalytics?: GQLCircleFollowerAnalyticsResolvers + CircleIncomeAnalytics?: GQLCircleIncomeAnalyticsResolvers + CircleNotice?: GQLCircleNoticeResolvers + CircleRecommendationActivity?: GQLCircleRecommendationActivityResolvers< + ContextType + > + CircleSubscriberAnalytics?: GQLCircleSubscriberAnalyticsResolvers + ClaimLogbooksResult?: GQLClaimLogbooksResultResolvers + Collection?: GQLCollectionResolvers + CollectionConnection?: GQLCollectionConnectionResolvers + CollectionEdge?: GQLCollectionEdgeResolvers + Comment?: GQLCommentResolvers + CommentCommentNotice?: GQLCommentCommentNoticeResolvers + CommentConnection?: GQLCommentConnectionResolvers + CommentEdge?: GQLCommentEdgeResolvers + CommentNotice?: GQLCommentNoticeResolvers + ConnectStripeAccountResult?: GQLConnectStripeAccountResultResolvers< + ContextType + > + Connection?: GQLConnectionResolvers + CryptoWallet?: GQLCryptoWalletResolvers + DateTime?: GraphQLScalarType + Draft?: GQLDraftResolvers + DraftAccess?: GQLDraftAccessResolvers + DraftConnection?: GQLDraftConnectionResolvers + DraftEdge?: GQLDraftEdgeResolvers + ExchangeRate?: GQLExchangeRateResolvers + Feature?: GQLFeatureResolvers + Following?: GQLFollowingResolvers + FollowingActivity?: GQLFollowingActivityResolvers + FollowingActivityConnection?: GQLFollowingActivityConnectionResolvers< + ContextType + > + FollowingActivityEdge?: GQLFollowingActivityEdgeResolvers + Invitation?: GQLInvitationResolvers + InvitationConnection?: GQLInvitationConnectionResolvers + InvitationEdge?: GQLInvitationEdgeResolvers + Invitee?: GQLInviteeResolvers + Invites?: GQLInvitesResolvers + Liker?: GQLLikerResolvers + Member?: GQLMemberResolvers + MemberConnection?: GQLMemberConnectionResolvers + MemberEdge?: GQLMemberEdgeResolvers + MonthlyDatum?: GQLMonthlyDatumResolvers + Mutation?: GQLMutationResolvers + NFTAsset?: GQLNftAssetResolvers + Node?: GQLNodeResolvers + Notice?: GQLNoticeResolvers + NoticeConnection?: GQLNoticeConnectionResolvers + NoticeEdge?: GQLNoticeEdgeResolvers + NotificationSetting?: GQLNotificationSettingResolvers + OAuthClient?: GQLOAuthClientResolvers + OAuthClientConnection?: GQLOAuthClientConnectionResolvers + OAuthClientEdge?: GQLOAuthClientEdgeResolvers + OSS?: GQLOssResolvers + Official?: GQLOfficialResolvers + OfficialAnnouncementNotice?: GQLOfficialAnnouncementNoticeResolvers< + ContextType + > + PageInfo?: GQLPageInfoResolvers + PayToResult?: GQLPayToResultResolvers + Person?: GQLPersonResolvers + PinnableWork?: GQLPinnableWorkResolvers + Price?: GQLPriceResolvers + Query?: GQLQueryResolvers + ReadHistory?: GQLReadHistoryResolvers + ReadHistoryConnection?: GQLReadHistoryConnectionResolvers + ReadHistoryEdge?: GQLReadHistoryEdgeResolvers + RecentSearchConnection?: GQLRecentSearchConnectionResolvers + RecentSearchEdge?: GQLRecentSearchEdgeResolvers + Recommendation?: GQLRecommendationResolvers + Report?: GQLReportResolvers + ReportConnection?: GQLReportConnectionResolvers + ReportEdge?: GQLReportEdgeResolvers + Response?: GQLResponseResolvers + ResponseConnection?: GQLResponseConnectionResolvers + ResponseEdge?: GQLResponseEdgeResolvers + SearchResultConnection?: GQLSearchResultConnectionResolvers + SearchResultEdge?: GQLSearchResultEdgeResolvers + SigningMessageResult?: GQLSigningMessageResultResolvers + SkippedListItem?: GQLSkippedListItemResolvers + SkippedListItemEdge?: GQLSkippedListItemEdgeResolvers + SkippedListItemsConnection?: GQLSkippedListItemsConnectionResolvers< + ContextType + > + SocialAccount?: GQLSocialAccountResolvers + StripeAccount?: GQLStripeAccountResolvers + SubscribeCircleResult?: GQLSubscribeCircleResultResolvers + Tag?: GQLTagResolvers + TagConnection?: GQLTagConnectionResolvers + TagEdge?: GQLTagEdgeResolvers + TagOSS?: GQLTagOssResolvers + TopDonatorConnection?: GQLTopDonatorConnectionResolvers + TopDonatorEdge?: GQLTopDonatorEdgeResolvers + Topic?: GQLTopicResolvers + TopicConnection?: GQLTopicConnectionResolvers + TopicEdge?: GQLTopicEdgeResolvers + Transaction?: GQLTransactionResolvers + TransactionConnection?: GQLTransactionConnectionResolvers + TransactionEdge?: GQLTransactionEdgeResolvers + TransactionNotice?: GQLTransactionNoticeResolvers + TransactionTarget?: GQLTransactionTargetResolvers + TranslatedAnnouncement?: GQLTranslatedAnnouncementResolvers + Upload?: GraphQLScalarType + User?: GQLUserResolvers + UserActivity?: GQLUserActivityResolvers + UserAddArticleTagActivity?: GQLUserAddArticleTagActivityResolvers + UserAnalytics?: GQLUserAnalyticsResolvers + UserBroadcastCircleActivity?: GQLUserBroadcastCircleActivityResolvers< + ContextType + > + UserConnection?: GQLUserConnectionResolvers + UserCreateCircleActivity?: GQLUserCreateCircleActivityResolvers + UserEdge?: GQLUserEdgeResolvers + UserInfo?: GQLUserInfoResolvers + UserNotice?: GQLUserNoticeResolvers + UserOSS?: GQLUserOssResolvers + UserPublishArticleActivity?: GQLUserPublishArticleActivityResolvers< + ContextType + > + UserRecommendationActivity?: GQLUserRecommendationActivityResolvers< + ContextType + > + UserRestriction?: GQLUserRestrictionResolvers + UserSettings?: GQLUserSettingsResolvers + UserStatus?: GQLUserStatusResolvers + Wallet?: GQLWalletResolvers +}> + +export type GQLDirectiveResolvers = ResolversObject<{ + auth?: GQLAuthDirectiveResolver + cacheControl?: GQLCacheControlDirectiveResolver + complexity?: GQLComplexityDirectiveResolver + constraint?: GQLConstraintDirectiveResolver + logCache?: GQLLogCacheDirectiveResolver + objectCache?: GQLObjectCacheDirectiveResolver + privateCache?: GQLPrivateCacheDirectiveResolver + purgeCache?: GQLPurgeCacheDirectiveResolver + rateLimit?: GQLRateLimitDirectiveResolver +}> diff --git a/src/gql/fragments/comment/detail.gql b/src/gql/fragments/comment/detail.gql index d84b59a5..fbaeecde 100644 --- a/src/gql/fragments/comment/detail.gql +++ b/src/gql/fragments/comment/detail.gql @@ -3,7 +3,7 @@ fragment CommentDetail on Comment { id - state + commentState: state createdAt node { id diff --git a/src/gql/fragments/comment/digest.gql b/src/gql/fragments/comment/digest.gql index ab416a47..b1f7b4f1 100644 --- a/src/gql/fragments/comment/digest.gql +++ b/src/gql/fragments/comment/digest.gql @@ -4,7 +4,7 @@ fragment CommentDigest on Comment { id content - state + commentState: state createdAt node { id diff --git a/src/gql/queries/reportList.gql b/src/gql/queries/reportList.gql new file mode 100644 index 00000000..8e95c67a --- /dev/null +++ b/src/gql/queries/reportList.gql @@ -0,0 +1,31 @@ +#import "../fragments/connection.gql" +#import "../fragments/comment/digest.gql" +#import "../fragments/article/digest.gql" + +query OSSReportList($input: ConnectionArgs!) { + oss { + reports(input: $input) { + ...ConnectionInfo + edges { + node { + id + reporter { + id + userName + displayName + } + reason + createdAt + target { + ... on Comment { + ...CommentDigest + } + ... on Article { + ...ArticleDigest + } + } + } + } + } + } +} diff --git a/src/pages/Announcements/index.tsx b/src/pages/Announcements/index.tsx index f3e6ab0f..889fbce7 100644 --- a/src/pages/Announcements/index.tsx +++ b/src/pages/Announcements/index.tsx @@ -6,7 +6,6 @@ import ErrorMessage from '../../components/ErrorMessage' class AnnouncementList extends React.Component { public render() { - console.log(this.props) const { data: { official, loading, error, refetch }, } = this.props diff --git a/src/pages/CommentDetail/index.tsx b/src/pages/CommentDetail/index.tsx index 50e97ecd..a58403be 100644 --- a/src/pages/CommentDetail/index.tsx +++ b/src/pages/CommentDetail/index.tsx @@ -48,7 +48,7 @@ class CommentDetail extends React.Component { - + {comment.upvotes} {comment.downvotes} @@ -75,7 +75,10 @@ class CommentDetail extends React.Component { - + diff --git a/src/pages/ReportList/ReportDigestList.tsx b/src/pages/ReportList/ReportDigestList.tsx new file mode 100644 index 00000000..42ce2999 --- /dev/null +++ b/src/pages/ReportList/ReportDigestList.tsx @@ -0,0 +1,150 @@ +import * as React from 'react' +import { Table } from 'antd' +import _compact from 'lodash/compact' + +import { ReportDigest } from '../../definitions' +import DateTime from '../../components/DateTime' +import { PAGE_SIZE } from '../../constants' +import CommentLink from '../../components/Comment/Link' +import ArticleLink from '../../components/Article/Link' +import CommentSetState from '../../components/Comment/SetState' +import ArticleSetState from '../../components/Article/SetState' +import { getCurrentPaginationFromUrl, onPaginationChange } from '../../utils' +import UserLink from '../../components/User/Link' + +type ReportDigestListProps = { + data: ReportDigest[] + loading?: boolean + pagination?: { + totalCount: number + pageSize?: number + fetchMore?: any + variables?: any + } +} + +type ReportDigestListState = { + selectedRowKeys: string[] | number[] + selectedRows: ReportDigest[] +} + +class ReportDigestList extends React.Component< + ReportDigestListProps, + ReportDigestListState +> { + state = { + selectedRowKeys: [], + selectedRows: [], + } + + private _renderCommentCell(_: any, record: ReportDigest): React.ReactNode { + return 'content' in record.target ? ( + + ) : null + } + + private _renderArticleCell(_: any, record: ReportDigest): React.ReactNode { + return 'title' in record.target ? ( + + ) : null + } + + private _renderStateCell(_: any, record: ReportDigest): React.ReactNode { + console.log(record.target, 'title' in record.target) + + return 'title' in record.target ? ( + + ) : ( + + ) + } + + public render() { + const { data, loading = false, pagination } = this.props + const currentPagination = getCurrentPaginationFromUrl() + + return ( + <> + + bordered + loading={loading} + dataSource={_compact(data)} + scroll={{ x: 1200, y: '70vh' }} + pagination={ + pagination + ? { + defaultCurrent: currentPagination && currentPagination.page, + pageSize: pagination.pageSize || PAGE_SIZE, + total: pagination.totalCount, + onChange: (page) => onPaginationChange({ pagination, page }), + showTotal: (t) => `共 ${t} 項`, + position: 'both', + } + : false + } + rowKey={(record) => record.id} + > + + dataIndex="createdAt" + title="報告時間" + width={150} + render={(createdAt) => } + /> + + + dataIndex="reporter" + title="報告者" + width={150} + render={(author) => ( + + )} + /> + + + dataIndex="target.content" + title="評論" + width={200} + render={this._renderCommentCell} + /> + + + dataIndex="target.title" + title="文章" + key="id" + width={200} + render={this._renderArticleCell} + /> + + + dataIndex="target.author" + title="評論 / 文章作者" + width={150} + render={(author) => ( + + )} + /> + + + dataIndex="target.state" + title="狀態" + width={150} + render={this._renderStateCell} + /> + + + ) + } +} + +export default ReportDigestList diff --git a/src/pages/ReportList/index.tsx b/src/pages/ReportList/index.tsx new file mode 100644 index 00000000..58c5c436 --- /dev/null +++ b/src/pages/ReportList/index.tsx @@ -0,0 +1,47 @@ +import React, { useState } from 'react' +import _get from 'lodash/get' +import { Row, Col, Input, Button } from 'antd' + +import ErrorMessage from '../../components/ErrorMessage' +import ReportDigestList from './ReportDigestList' +import withReportList, { ReportListChildProps } from '././withReportList' + +import { CommentDigest, ArticleDigest, ReportDigest } from '../../definitions' + +class ReportList extends React.Component { + state: Readonly<{ inputCommentId: string }> = { + inputCommentId: '', + } + + private _renderContent() { + const { + data: { oss, loading, error, fetchMore, variables }, + } = this.props + + if (error) { + return + } + + let listData: Array = [] + let totalCount: number = 0 + + if (oss) { + listData = oss.reports.edges.map(({ node }) => node) + totalCount = oss.reports.totalCount + } + + return ( + + ) + } + + public render() { + return <>{this._renderContent()} + } +} + +export default withReportList(ReportList) diff --git a/src/pages/ReportList/withReportList.tsx b/src/pages/ReportList/withReportList.tsx new file mode 100644 index 00000000..0bdf5d48 --- /dev/null +++ b/src/pages/ReportList/withReportList.tsx @@ -0,0 +1,48 @@ +import { graphql, ChildDataProps, compose } from 'react-apollo' +import { RouteComponentProps } from 'react-router-dom' + +import { PAGE_SIZE } from '../../constants' +import { GQLConnectionArgs, Connection, ReportDigest } from '../../definitions' +import { getSearchKey, getCurrentPaginationFromUrl } from '../../utils' +import QueryReportList from '../../gql/queries/reportList.gql' + +type AllReportsResponse = { + oss: { + reports: Connection + } +} +type AllReportsInputProps = RouteComponentProps +type AllReportsVariables = { + input: GQLConnectionArgs +} +type AllReportsChildProps = ChildDataProps< + AllReportsInputProps, + AllReportsResponse, + AllReportsVariables +> + +export type ReportListChildProps = AllReportsChildProps + +const allReports = graphql< + AllReportsInputProps, + AllReportsResponse, + AllReportsVariables, + AllReportsChildProps +>(QueryReportList, { + // name: 'allReports', + options: (props) => { + const currentPagination = getCurrentPaginationFromUrl() + return { + notifyOnNetworkStatusChange: true, + variables: { + input: { + first: PAGE_SIZE, + after: currentPagination && currentPagination.after, + }, + }, + } + }, + skip: () => !!getSearchKey(), +}) + +export default compose(allReports) diff --git a/src/pages/UserDetail/index.tsx b/src/pages/UserDetail/index.tsx index 3c7b7f57..55ccfde0 100644 --- a/src/pages/UserDetail/index.tsx +++ b/src/pages/UserDetail/index.tsx @@ -18,7 +18,6 @@ import UserComments from './Comments' import withUserDetail, { UserDetailChildProps } from './withUserDetail' import ArticleDigestList from '../../components/Article/DigestList' import { SITE_DOMIAN } from '../../constants' -import CommentDigestList from '../../components/Comment/DigestList' import ToggleSeedingUsersButton from '../../components/SeedingUser/ToggleButton' import ToggleUsersBadgeButton from '../../components/BadgedUser/ToggleButton' import SetBoost from '../../components/SetBoost' @@ -156,7 +155,10 @@ class UserDetail extends React.Component< - + diff --git a/src/routes/index.tsx b/src/routes/index.tsx index d2525c7f..f088111e 100644 --- a/src/routes/index.tsx +++ b/src/routes/index.tsx @@ -15,6 +15,7 @@ import blockListRoutes from './blocklist' import domainBlockListRoutes from './domainBlockList' import featureFlag from './featureFlag' import seedingUserListRoutes from './seedingUserList' +import reportRoutes from './report' const routes = [ { @@ -38,6 +39,7 @@ const routes = [ ...userRoutes, ...articleRoutes, ...commentRoutes, + ...reportRoutes, ...oauthClientRoutes, ...blockListRoutes, ...domainBlockListRoutes, diff --git a/src/routes/report.tsx b/src/routes/report.tsx new file mode 100644 index 00000000..13427d73 --- /dev/null +++ b/src/routes/report.tsx @@ -0,0 +1,25 @@ +import * as React from 'react' +import { RouteConfigComponentProps } from 'react-router-config' + +import Layout from '../components/Layout' +import Private from '../components/Private' +import ReportList from '../pages/ReportList' + +import { PATH } from '../constants' + +const reportRoutes = [ + { + path: PATH.REPORT_LIST, + exact: true, + component: (props: RouteConfigComponentProps) => ( + + + + + + + ), + }, +] + +export default reportRoutes