From f720b7ad9d2054684542dd1810da0617b1499627 Mon Sep 17 00:00:00 2001 From: robertu <4065233+robertu7@users.noreply.github.com> Date: Sun, 14 Jul 2024 17:30:44 +0800 Subject: [PATCH] feat(campaign): add pages for campaign --- package-lock.json | 262 +- src/components/Campaign/DigestList/index.tsx | 131 + src/components/Campaign/Link/index.tsx | 18 + src/components/Campaign/SetState/index.tsx | 144 + .../Campaign/SetState/withSetState.tsx | 42 + src/components/Campaign/StateTag/index.tsx | 33 + src/components/Layout/Sider/index.tsx | 10 +- src/constants/route.ts | 6 + src/definitions/index.d.ts | 23 + src/definitions/schema.d.ts | 23341 ++++++---------- src/gql/fragments/campaign/detail.gql | 37 + src/gql/fragments/campaign/digest.gql | 18 + src/gql/fragments/campaign/id.gql | 0 src/gql/queries/campaignDetail.gql | 7 + src/gql/queries/campaignList.gql | 13 + src/pages/CampaignList/index.tsx | 41 + src/pages/CampaignList/withCampaignList.tsx | 52 + src/routes/campaign.tsx | 36 + 18 files changed, 9781 insertions(+), 14433 deletions(-) create mode 100644 src/components/Campaign/DigestList/index.tsx create mode 100644 src/components/Campaign/Link/index.tsx create mode 100644 src/components/Campaign/SetState/index.tsx create mode 100644 src/components/Campaign/SetState/withSetState.tsx create mode 100644 src/components/Campaign/StateTag/index.tsx create mode 100644 src/gql/fragments/campaign/detail.gql create mode 100644 src/gql/fragments/campaign/digest.gql create mode 100644 src/gql/fragments/campaign/id.gql create mode 100644 src/gql/queries/campaignDetail.gql create mode 100644 src/gql/queries/campaignList.gql create mode 100644 src/pages/CampaignList/index.tsx create mode 100644 src/pages/CampaignList/withCampaignList.tsx create mode 100644 src/routes/campaign.tsx diff --git a/package-lock.json b/package-lock.json index bc045db1..12fc1357 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "matters-oss", - "version": "0.28.1", + "version": "0.30.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "matters-oss", - "version": "0.28.1", + "version": "0.30.0", "dependencies": { "@ant-design/icons": "^4.2.1", "@babel/core": "7.10.5", @@ -9496,14 +9496,12 @@ "node_modules/chokidar/node_modules/fsevents/node_modules/abbrev": { "version": "1.1.1", "inBundle": true, - "license": "ISC", - "optional": true + "license": "ISC" }, "node_modules/chokidar/node_modules/fsevents/node_modules/ansi-regex": { "version": "2.1.1", "inBundle": true, "license": "MIT", - "optional": true, "engines": { "node": ">=0.10.0" } @@ -9511,14 +9509,12 @@ "node_modules/chokidar/node_modules/fsevents/node_modules/aproba": { "version": "1.2.0", "inBundle": true, - "license": "ISC", - "optional": true + "license": "ISC" }, "node_modules/chokidar/node_modules/fsevents/node_modules/are-we-there-yet": { "version": "1.1.5", "inBundle": true, "license": "ISC", - "optional": true, "dependencies": { "delegates": "^1.0.0", "readable-stream": "^2.0.6" @@ -9527,14 +9523,12 @@ "node_modules/chokidar/node_modules/fsevents/node_modules/balanced-match": { "version": "1.0.0", "inBundle": true, - "license": "MIT", - "optional": true + "license": "MIT" }, "node_modules/chokidar/node_modules/fsevents/node_modules/brace-expansion": { "version": "1.1.11", "inBundle": true, "license": "MIT", - "optional": true, "dependencies": { "balanced-match": "^1.0.0", "concat-map": "0.0.1" @@ -9543,14 +9537,12 @@ "node_modules/chokidar/node_modules/fsevents/node_modules/chownr": { "version": "1.1.3", "inBundle": true, - "license": "ISC", - "optional": true + "license": "ISC" }, "node_modules/chokidar/node_modules/fsevents/node_modules/code-point-at": { "version": "1.1.0", "inBundle": true, "license": "MIT", - "optional": true, "engines": { "node": ">=0.10.0" } @@ -9558,26 +9550,22 @@ "node_modules/chokidar/node_modules/fsevents/node_modules/concat-map": { "version": "0.0.1", "inBundle": true, - "license": "MIT", - "optional": true + "license": "MIT" }, "node_modules/chokidar/node_modules/fsevents/node_modules/console-control-strings": { "version": "1.1.0", "inBundle": true, - "license": "ISC", - "optional": true + "license": "ISC" }, "node_modules/chokidar/node_modules/fsevents/node_modules/core-util-is": { "version": "1.0.2", "inBundle": true, - "license": "MIT", - "optional": true + "license": "MIT" }, "node_modules/chokidar/node_modules/fsevents/node_modules/debug": { "version": "3.2.6", "inBundle": true, "license": "MIT", - "optional": true, "dependencies": { "ms": "^2.1.1" } @@ -9586,7 +9574,6 @@ "version": "0.6.0", "inBundle": true, "license": "MIT", - "optional": true, "engines": { "node": ">=4.0.0" } @@ -9594,14 +9581,12 @@ "node_modules/chokidar/node_modules/fsevents/node_modules/delegates": { "version": "1.0.0", "inBundle": true, - "license": "MIT", - "optional": true + "license": "MIT" }, "node_modules/chokidar/node_modules/fsevents/node_modules/detect-libc": { "version": "1.0.3", "inBundle": true, "license": "Apache-2.0", - "optional": true, "bin": { "detect-libc": "bin/detect-libc.js" }, @@ -9613,7 +9598,6 @@ "version": "1.2.7", "inBundle": true, "license": "ISC", - "optional": true, "dependencies": { "minipass": "^2.6.0" } @@ -9621,14 +9605,12 @@ "node_modules/chokidar/node_modules/fsevents/node_modules/fs.realpath": { "version": "1.0.0", "inBundle": true, - "license": "ISC", - "optional": true + "license": "ISC" }, "node_modules/chokidar/node_modules/fsevents/node_modules/gauge": { "version": "2.7.4", "inBundle": true, "license": "ISC", - "optional": true, "dependencies": { "aproba": "^1.0.3", "console-control-strings": "^1.0.0", @@ -9644,7 +9626,6 @@ "version": "7.1.6", "inBundle": true, "license": "ISC", - "optional": true, "dependencies": { "fs.realpath": "^1.0.0", "inflight": "^1.0.4", @@ -9663,14 +9644,12 @@ "node_modules/chokidar/node_modules/fsevents/node_modules/has-unicode": { "version": "2.0.1", "inBundle": true, - "license": "ISC", - "optional": true + "license": "ISC" }, "node_modules/chokidar/node_modules/fsevents/node_modules/iconv-lite": { "version": "0.4.24", "inBundle": true, "license": "MIT", - "optional": true, "dependencies": { "safer-buffer": ">= 2.1.2 < 3" }, @@ -9682,7 +9661,6 @@ "version": "3.0.3", "inBundle": true, "license": "ISC", - "optional": true, "dependencies": { "minimatch": "^3.0.4" } @@ -9691,7 +9669,6 @@ "version": "1.0.6", "inBundle": true, "license": "ISC", - "optional": true, "dependencies": { "once": "^1.3.0", "wrappy": "1" @@ -9700,14 +9677,12 @@ "node_modules/chokidar/node_modules/fsevents/node_modules/inherits": { "version": "2.0.4", "inBundle": true, - "license": "ISC", - "optional": true + "license": "ISC" }, "node_modules/chokidar/node_modules/fsevents/node_modules/ini": { "version": "1.3.5", "inBundle": true, "license": "ISC", - "optional": true, "engines": { "node": "*" } @@ -9716,7 +9691,6 @@ "version": "1.0.0", "inBundle": true, "license": "MIT", - "optional": true, "dependencies": { "number-is-nan": "^1.0.0" }, @@ -9727,14 +9701,12 @@ "node_modules/chokidar/node_modules/fsevents/node_modules/isarray": { "version": "1.0.0", "inBundle": true, - "license": "MIT", - "optional": true + "license": "MIT" }, "node_modules/chokidar/node_modules/fsevents/node_modules/minimatch": { "version": "3.0.4", "inBundle": true, "license": "ISC", - "optional": true, "dependencies": { "brace-expansion": "^1.1.7" }, @@ -9745,14 +9717,12 @@ "node_modules/chokidar/node_modules/fsevents/node_modules/minimist": { "version": "0.0.8", "inBundle": true, - "license": "MIT", - "optional": true + "license": "MIT" }, "node_modules/chokidar/node_modules/fsevents/node_modules/minipass": { "version": "2.9.0", "inBundle": true, "license": "ISC", - "optional": true, "dependencies": { "safe-buffer": "^5.1.2", "yallist": "^3.0.0" @@ -9762,7 +9732,6 @@ "version": "1.3.3", "inBundle": true, "license": "MIT", - "optional": true, "dependencies": { "minipass": "^2.9.0" } @@ -9771,7 +9740,6 @@ "version": "0.5.1", "inBundle": true, "license": "MIT", - "optional": true, "dependencies": { "minimist": "0.0.8" }, @@ -9782,14 +9750,12 @@ "node_modules/chokidar/node_modules/fsevents/node_modules/ms": { "version": "2.1.2", "inBundle": true, - "license": "MIT", - "optional": true + "license": "MIT" }, "node_modules/chokidar/node_modules/fsevents/node_modules/needle": { "version": "2.4.0", "inBundle": true, "license": "MIT", - "optional": true, "dependencies": { "debug": "^3.2.6", "iconv-lite": "^0.4.4", @@ -9806,7 +9772,6 @@ "version": "0.14.0", "inBundle": true, "license": "BSD-3-Clause", - "optional": true, "dependencies": { "detect-libc": "^1.0.2", "mkdirp": "^0.5.1", @@ -9827,7 +9792,6 @@ "version": "4.0.1", "inBundle": true, "license": "ISC", - "optional": true, "dependencies": { "abbrev": "1", "osenv": "^0.1.4" @@ -9840,7 +9804,6 @@ "version": "1.1.1", "inBundle": true, "license": "ISC", - "optional": true, "dependencies": { "npm-normalize-package-bin": "^1.0.1" } @@ -9848,14 +9811,12 @@ "node_modules/chokidar/node_modules/fsevents/node_modules/npm-normalize-package-bin": { "version": "1.0.1", "inBundle": true, - "license": "ISC", - "optional": true + "license": "ISC" }, "node_modules/chokidar/node_modules/fsevents/node_modules/npm-packlist": { "version": "1.4.7", "inBundle": true, "license": "ISC", - "optional": true, "dependencies": { "ignore-walk": "^3.0.1", "npm-bundled": "^1.0.1" @@ -9865,7 +9826,6 @@ "version": "4.1.2", "inBundle": true, "license": "ISC", - "optional": true, "dependencies": { "are-we-there-yet": "~1.1.2", "console-control-strings": "~1.1.0", @@ -9877,7 +9837,6 @@ "version": "1.0.1", "inBundle": true, "license": "MIT", - "optional": true, "engines": { "node": ">=0.10.0" } @@ -9886,7 +9845,6 @@ "version": "4.1.1", "inBundle": true, "license": "MIT", - "optional": true, "engines": { "node": ">=0.10.0" } @@ -9895,7 +9853,6 @@ "version": "1.4.0", "inBundle": true, "license": "ISC", - "optional": true, "dependencies": { "wrappy": "1" } @@ -9904,7 +9861,6 @@ "version": "1.0.2", "inBundle": true, "license": "MIT", - "optional": true, "engines": { "node": ">=0.10.0" } @@ -9913,7 +9869,6 @@ "version": "1.0.2", "inBundle": true, "license": "MIT", - "optional": true, "engines": { "node": ">=0.10.0" } @@ -9922,7 +9877,6 @@ "version": "0.1.5", "inBundle": true, "license": "ISC", - "optional": true, "dependencies": { "os-homedir": "^1.0.0", "os-tmpdir": "^1.0.0" @@ -9932,7 +9886,6 @@ "version": "1.0.1", "inBundle": true, "license": "MIT", - "optional": true, "engines": { "node": ">=0.10.0" } @@ -9940,14 +9893,12 @@ "node_modules/chokidar/node_modules/fsevents/node_modules/process-nextick-args": { "version": "2.0.1", "inBundle": true, - "license": "MIT", - "optional": true + "license": "MIT" }, "node_modules/chokidar/node_modules/fsevents/node_modules/rc": { "version": "1.2.8", "inBundle": true, "license": "(BSD-2-Clause OR MIT OR Apache-2.0)", - "optional": true, "dependencies": { "deep-extend": "^0.6.0", "ini": "~1.3.0", @@ -9961,14 +9912,12 @@ "node_modules/chokidar/node_modules/fsevents/node_modules/rc/node_modules/minimist": { "version": "1.2.0", "inBundle": true, - "license": "MIT", - "optional": true + "license": "MIT" }, "node_modules/chokidar/node_modules/fsevents/node_modules/readable-stream": { "version": "2.3.6", "inBundle": true, "license": "MIT", - "optional": true, "dependencies": { "core-util-is": "~1.0.0", "inherits": "~2.0.3", @@ -9983,7 +9932,6 @@ "version": "2.7.1", "inBundle": true, "license": "ISC", - "optional": true, "dependencies": { "glob": "^7.1.3" }, @@ -9994,26 +9942,22 @@ "node_modules/chokidar/node_modules/fsevents/node_modules/safe-buffer": { "version": "5.1.2", "inBundle": true, - "license": "MIT", - "optional": true + "license": "MIT" }, "node_modules/chokidar/node_modules/fsevents/node_modules/safer-buffer": { "version": "2.1.2", "inBundle": true, - "license": "MIT", - "optional": true + "license": "MIT" }, "node_modules/chokidar/node_modules/fsevents/node_modules/sax": { "version": "1.2.4", "inBundle": true, - "license": "ISC", - "optional": true + "license": "ISC" }, "node_modules/chokidar/node_modules/fsevents/node_modules/semver": { "version": "5.7.1", "inBundle": true, "license": "ISC", - "optional": true, "bin": { "semver": "bin/semver" } @@ -10021,20 +9965,17 @@ "node_modules/chokidar/node_modules/fsevents/node_modules/set-blocking": { "version": "2.0.0", "inBundle": true, - "license": "ISC", - "optional": true + "license": "ISC" }, "node_modules/chokidar/node_modules/fsevents/node_modules/signal-exit": { "version": "3.0.2", "inBundle": true, - "license": "ISC", - "optional": true + "license": "ISC" }, "node_modules/chokidar/node_modules/fsevents/node_modules/string_decoder": { "version": "1.1.1", "inBundle": true, "license": "MIT", - "optional": true, "dependencies": { "safe-buffer": "~5.1.0" } @@ -10043,7 +9984,6 @@ "version": "1.0.2", "inBundle": true, "license": "MIT", - "optional": true, "dependencies": { "code-point-at": "^1.0.0", "is-fullwidth-code-point": "^1.0.0", @@ -10057,7 +9997,6 @@ "version": "3.0.1", "inBundle": true, "license": "MIT", - "optional": true, "dependencies": { "ansi-regex": "^2.0.0" }, @@ -10069,7 +10008,6 @@ "version": "2.0.1", "inBundle": true, "license": "MIT", - "optional": true, "engines": { "node": ">=0.10.0" } @@ -10078,7 +10016,6 @@ "version": "4.4.13", "inBundle": true, "license": "ISC", - "optional": true, "dependencies": { "chownr": "^1.1.1", "fs-minipass": "^1.2.5", @@ -10095,14 +10032,12 @@ "node_modules/chokidar/node_modules/fsevents/node_modules/util-deprecate": { "version": "1.0.2", "inBundle": true, - "license": "MIT", - "optional": true + "license": "MIT" }, "node_modules/chokidar/node_modules/fsevents/node_modules/wide-align": { "version": "1.1.3", "inBundle": true, "license": "ISC", - "optional": true, "dependencies": { "string-width": "^1.0.2 || 2" } @@ -10110,14 +10045,12 @@ "node_modules/chokidar/node_modules/fsevents/node_modules/wrappy": { "version": "1.0.2", "inBundle": true, - "license": "ISC", - "optional": true + "license": "ISC" }, "node_modules/chokidar/node_modules/fsevents/node_modules/yallist": { "version": "3.1.1", "inBundle": true, - "license": "ISC", - "optional": true + "license": "ISC" }, "node_modules/chokidar/node_modules/glob-parent": { "version": "3.1.0", @@ -37982,23 +37915,19 @@ "dependencies": { "abbrev": { "version": "1.1.1", - "bundled": true, - "optional": true + "bundled": true }, "ansi-regex": { "version": "2.1.1", - "bundled": true, - "optional": true + "bundled": true }, "aproba": { "version": "1.2.0", - "bundled": true, - "optional": true + "bundled": true }, "are-we-there-yet": { "version": "1.1.5", "bundled": true, - "optional": true, "requires": { "delegates": "^1.0.0", "readable-stream": "^2.0.6" @@ -38006,13 +37935,11 @@ }, "balanced-match": { "version": "1.0.0", - "bundled": true, - "optional": true + "bundled": true }, "brace-expansion": { "version": "1.1.11", "bundled": true, - "optional": true, "requires": { "balanced-match": "^1.0.0", "concat-map": "0.0.1" @@ -38020,69 +37947,57 @@ }, "chownr": { "version": "1.1.3", - "bundled": true, - "optional": true + "bundled": true }, "code-point-at": { "version": "1.1.0", - "bundled": true, - "optional": true + "bundled": true }, "concat-map": { "version": "0.0.1", - "bundled": true, - "optional": true + "bundled": true }, "console-control-strings": { "version": "1.1.0", - "bundled": true, - "optional": true + "bundled": true }, "core-util-is": { "version": "1.0.2", - "bundled": true, - "optional": true + "bundled": true }, "debug": { "version": "3.2.6", "bundled": true, - "optional": true, "requires": { "ms": "^2.1.1" } }, "deep-extend": { "version": "0.6.0", - "bundled": true, - "optional": true + "bundled": true }, "delegates": { "version": "1.0.0", - "bundled": true, - "optional": true + "bundled": true }, "detect-libc": { "version": "1.0.3", - "bundled": true, - "optional": true + "bundled": true }, "fs-minipass": { "version": "1.2.7", "bundled": true, - "optional": true, "requires": { "minipass": "^2.6.0" } }, "fs.realpath": { "version": "1.0.0", - "bundled": true, - "optional": true + "bundled": true }, "gauge": { "version": "2.7.4", "bundled": true, - "optional": true, "requires": { "aproba": "^1.0.3", "console-control-strings": "^1.0.0", @@ -38097,7 +38012,6 @@ "glob": { "version": "7.1.6", "bundled": true, - "optional": true, "requires": { "fs.realpath": "^1.0.0", "inflight": "^1.0.4", @@ -38109,13 +38023,11 @@ }, "has-unicode": { "version": "2.0.1", - "bundled": true, - "optional": true + "bundled": true }, "iconv-lite": { "version": "0.4.24", "bundled": true, - "optional": true, "requires": { "safer-buffer": ">= 2.1.2 < 3" } @@ -38123,7 +38035,6 @@ "ignore-walk": { "version": "3.0.3", "bundled": true, - "optional": true, "requires": { "minimatch": "^3.0.4" } @@ -38131,7 +38042,6 @@ "inflight": { "version": "1.0.6", "bundled": true, - "optional": true, "requires": { "once": "^1.3.0", "wrappy": "1" @@ -38139,44 +38049,37 @@ }, "inherits": { "version": "2.0.4", - "bundled": true, - "optional": true + "bundled": true }, "ini": { "version": "1.3.5", - "bundled": true, - "optional": true + "bundled": true }, "is-fullwidth-code-point": { "version": "1.0.0", "bundled": true, - "optional": true, "requires": { "number-is-nan": "^1.0.0" } }, "isarray": { "version": "1.0.0", - "bundled": true, - "optional": true + "bundled": true }, "minimatch": { "version": "3.0.4", "bundled": true, - "optional": true, "requires": { "brace-expansion": "^1.1.7" } }, "minimist": { "version": "0.0.8", - "bundled": true, - "optional": true + "bundled": true }, "minipass": { "version": "2.9.0", "bundled": true, - "optional": true, "requires": { "safe-buffer": "^5.1.2", "yallist": "^3.0.0" @@ -38185,7 +38088,6 @@ "minizlib": { "version": "1.3.3", "bundled": true, - "optional": true, "requires": { "minipass": "^2.9.0" } @@ -38193,20 +38095,17 @@ "mkdirp": { "version": "0.5.1", "bundled": true, - "optional": true, "requires": { "minimist": "0.0.8" } }, "ms": { "version": "2.1.2", - "bundled": true, - "optional": true + "bundled": true }, "needle": { "version": "2.4.0", "bundled": true, - "optional": true, "requires": { "debug": "^3.2.6", "iconv-lite": "^0.4.4", @@ -38216,7 +38115,6 @@ "node-pre-gyp": { "version": "0.14.0", "bundled": true, - "optional": true, "requires": { "detect-libc": "^1.0.2", "mkdirp": "^0.5.1", @@ -38233,7 +38131,6 @@ "nopt": { "version": "4.0.1", "bundled": true, - "optional": true, "requires": { "abbrev": "1", "osenv": "^0.1.4" @@ -38242,20 +38139,17 @@ "npm-bundled": { "version": "1.1.1", "bundled": true, - "optional": true, "requires": { "npm-normalize-package-bin": "^1.0.1" } }, "npm-normalize-package-bin": { "version": "1.0.1", - "bundled": true, - "optional": true + "bundled": true }, "npm-packlist": { "version": "1.4.7", "bundled": true, - "optional": true, "requires": { "ignore-walk": "^3.0.1", "npm-bundled": "^1.0.1" @@ -38264,7 +38158,6 @@ "npmlog": { "version": "4.1.2", "bundled": true, - "optional": true, "requires": { "are-we-there-yet": "~1.1.2", "console-control-strings": "~1.1.0", @@ -38274,36 +38167,30 @@ }, "number-is-nan": { "version": "1.0.1", - "bundled": true, - "optional": true + "bundled": true }, "object-assign": { "version": "4.1.1", - "bundled": true, - "optional": true + "bundled": true }, "once": { "version": "1.4.0", "bundled": true, - "optional": true, "requires": { "wrappy": "1" } }, "os-homedir": { "version": "1.0.2", - "bundled": true, - "optional": true + "bundled": true }, "os-tmpdir": { "version": "1.0.2", - "bundled": true, - "optional": true + "bundled": true }, "osenv": { "version": "0.1.5", "bundled": true, - "optional": true, "requires": { "os-homedir": "^1.0.0", "os-tmpdir": "^1.0.0" @@ -38311,18 +38198,15 @@ }, "path-is-absolute": { "version": "1.0.1", - "bundled": true, - "optional": true + "bundled": true }, "process-nextick-args": { "version": "2.0.1", - "bundled": true, - "optional": true + "bundled": true }, "rc": { "version": "1.2.8", "bundled": true, - "optional": true, "requires": { "deep-extend": "^0.6.0", "ini": "~1.3.0", @@ -38332,15 +38216,13 @@ "dependencies": { "minimist": { "version": "1.2.0", - "bundled": true, - "optional": true + "bundled": true } } }, "readable-stream": { "version": "2.3.6", "bundled": true, - "optional": true, "requires": { "core-util-is": "~1.0.0", "inherits": "~2.0.3", @@ -38354,45 +38236,37 @@ "rimraf": { "version": "2.7.1", "bundled": true, - "optional": true, "requires": { "glob": "^7.1.3" } }, "safe-buffer": { "version": "5.1.2", - "bundled": true, - "optional": true + "bundled": true }, "safer-buffer": { "version": "2.1.2", - "bundled": true, - "optional": true + "bundled": true }, "sax": { "version": "1.2.4", - "bundled": true, - "optional": true + "bundled": true }, "semver": { "version": "5.7.1", - "bundled": true, - "optional": true + "bundled": true }, "set-blocking": { "version": "2.0.0", - "bundled": true, - "optional": true + "bundled": true }, "signal-exit": { "version": "3.0.2", - "bundled": true, - "optional": true + "bundled": true }, "string_decoder": { "version": "1.1.1", "bundled": true, - "optional": true, "requires": { "safe-buffer": "~5.1.0" } @@ -38400,7 +38274,6 @@ "string-width": { "version": "1.0.2", "bundled": true, - "optional": true, "requires": { "code-point-at": "^1.0.0", "is-fullwidth-code-point": "^1.0.0", @@ -38410,20 +38283,17 @@ "strip-ansi": { "version": "3.0.1", "bundled": true, - "optional": true, "requires": { "ansi-regex": "^2.0.0" } }, "strip-json-comments": { "version": "2.0.1", - "bundled": true, - "optional": true + "bundled": true }, "tar": { "version": "4.4.13", "bundled": true, - "optional": true, "requires": { "chownr": "^1.1.1", "fs-minipass": "^1.2.5", @@ -38436,26 +38306,22 @@ }, "util-deprecate": { "version": "1.0.2", - "bundled": true, - "optional": true + "bundled": true }, "wide-align": { "version": "1.1.3", "bundled": true, - "optional": true, "requires": { "string-width": "^1.0.2 || 2" } }, "wrappy": { "version": "1.0.2", - "bundled": true, - "optional": true + "bundled": true }, "yallist": { "version": "3.1.1", - "bundled": true, - "optional": true + "bundled": true } } }, diff --git a/src/components/Campaign/DigestList/index.tsx b/src/components/Campaign/DigestList/index.tsx new file mode 100644 index 00000000..cfb32cef --- /dev/null +++ b/src/components/Campaign/DigestList/index.tsx @@ -0,0 +1,131 @@ +import * as React from 'react' +import { Table } from 'antd' +import _compact from 'lodash/compact' + +import DateTime from '../../DateTime' +import CampaignLink from '../Link' +import CampaignSetState from '../SetState' + +import { PAGE_SIZE } from '../../../constants' +import { CampaignDigest } from '../../../definitions' +import { onPaginationChange, getCurrentPaginationFromUrl } from '../../../utils' + +type CampaignDigestListProps = { + data: CampaignDigest[] + loading?: boolean + pagination?: { + totalCount: number + pageSize?: number + fetchMore?: any + variables?: any + } +} + +type CampaignDigestListState = { + selectedRowKeys: string[] | number[] + selectedRows: CampaignDigest[] +} + +class CampaignDigestList extends React.Component< + CampaignDigestListProps, + CampaignDigestListState +> { + state = { + selectedRowKeys: [], + selectedRows: [], + } + + private _renderNameCell(_: any, record: CampaignDigest): React.ReactNode { + return + } + + private _renderStateCell(_: any, record: CampaignDigest): React.ReactNode { + return + } + + private _renderApplicationPeriod( + _: any, + record: CampaignDigest + ): React.ReactNode { + const { start, end } = record.applicationPeriod || {} + return ( + <> + + {' ~ '} + {end && } + + ) + } + + private _renderWritingPeriod( + _: any, + record: CampaignDigest + ): React.ReactNode { + const { start, end } = record.writingPeriod || {} + return ( + <> + + {' ~ '} + {end && } + + ) + } + + 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="name" + title="標題" + render={this._renderNameCell} + /> + + + dataIndex="applicationPeriod" + title="報名期" + width={300} + render={this._renderApplicationPeriod} + /> + + + dataIndex="writingPeriod" + title="活動期" + width={300} + render={this._renderWritingPeriod} + /> + + + dataIndex="state" + title="狀態" + width={150} + render={this._renderStateCell} + /> + + + ) + } +} + +export default CampaignDigestList diff --git a/src/components/Campaign/Link/index.tsx b/src/components/Campaign/Link/index.tsx new file mode 100644 index 00000000..2bf2307f --- /dev/null +++ b/src/components/Campaign/Link/index.tsx @@ -0,0 +1,18 @@ +import * as React from 'react' +import { Link } from 'react-router-dom' + +import { PATH } from '../../../constants' + +type CampaignLinkProps = { + id: string + name: string +} + +const CampaignLink: React.FunctionComponent = ({ + id, + name, +}) => { + return {name} +} + +export default CampaignLink diff --git a/src/components/Campaign/SetState/index.tsx b/src/components/Campaign/SetState/index.tsx new file mode 100644 index 00000000..1d1963c1 --- /dev/null +++ b/src/components/Campaign/SetState/index.tsx @@ -0,0 +1,144 @@ +import * as React from 'react' +import { Select, Modal, message } from 'antd' +import _get from 'lodash/get' + +import ErrorMessage from '../../ErrorMessage' +import CampaignStateTag from '../StateTag' + +import withSetState, { ChildProps, CampaignState } from './withSetState' + +type SetStateState = { + campaignState?: CampaignState + loading: boolean + error: any +} + +const PLACEHOLDER_KEY = 'placeholder' + +const COMMENT_STATES: { + key: CampaignState + text: string + disabled?: boolean +}[] = [ + { key: 'active', text: '正常' }, + { key: 'archived', text: '已隱藏', disabled: true }, + { key: 'pending', text: '編輯中' }, + { key: 'finished', text: '已結束' }, +] + +class SetState extends React.Component { + state: Readonly = { + campaignState: this.props.campaignState, + loading: false, + error: null, + } + + private _onSelectCampaignState = ( + value: CampaignState | typeof PLACEHOLDER_KEY + ) => { + if (!value || value === PLACEHOLDER_KEY) { + return + } + + this.setState({ campaignState: value }, () => { + if (this.props.campaignState !== value) { + this.preConfirm() + } + }) + } + + private _onConfirmChange = async () => { + this.setState({ loading: true, error: null }) + + const { mutate, ids, onSuccess } = this.props + const { campaignState } = this.state + + if (!campaignState) { + return + } + + try { + const result = await mutate({ + variables: { + input: { + ids, + state: campaignState, + }, + }, + }) + const newCampaignState = _get(result, 'data.updateCommentsState.0.state') + this.setState({ + campaignState: newCampaignState, + loading: false, + error: null, + }) + message.success('修改成功', 1, () => { + if (onSuccess) { + onSuccess() + } + }) + } catch (error) { + this.setState({ loading: false, error }) + } + } + + private preConfirm = () => { + Modal.confirm({ + title: `確認修改評論狀態?`, + content: ( +
+ + 修改後,評論狀態將從   + {this.props.campaignState && ( + + )} + 改為   + {this.state.campaignState && ( + + )} + +
+ ), + cancelText: '取消', + okText: '確認', + onOk: () => { + this._onConfirmChange() + }, + onCancel: this.revertChange, + }) + } + + private revertChange = () => { + this.setState({ campaignState: this.props.campaignState }) + } + + public render() { + const { disabled } = this.props + const { campaignState, loading, error } = this.state + + if (error) { + return + } + + return ( + + + + ) + } +} + +export default withSetState(SetState) diff --git a/src/components/Campaign/SetState/withSetState.tsx b/src/components/Campaign/SetState/withSetState.tsx new file mode 100644 index 00000000..7222af34 --- /dev/null +++ b/src/components/Campaign/SetState/withSetState.tsx @@ -0,0 +1,42 @@ +import { graphql, ChildMutateProps } from 'react-apollo' +import gql from 'graphql-tag' + +const SET_STATE = gql` + mutation updateCampaignState($id: ID!, $state: CampaignState!) { + putWritingChallenge(input: { id: $id, state: $state }) { + id + state + } + } +` + +type Response = { + updateCampaignState: { + id: string + state: string + } +} + +export type CampaignState = 'active' | 'pending' | 'finished' | 'archived' + +type InputProps = { + ids: string[] + campaignState?: CampaignState + disabled?: boolean + onSuccess?: () => void +} + +type Variables = { + input: { + ids: string[] + state: CampaignState + } +} + +export type ChildProps = ChildMutateProps + +const withSetState = graphql( + SET_STATE +) + +export default withSetState diff --git a/src/components/Campaign/StateTag/index.tsx b/src/components/Campaign/StateTag/index.tsx new file mode 100644 index 00000000..a1272b96 --- /dev/null +++ b/src/components/Campaign/StateTag/index.tsx @@ -0,0 +1,33 @@ +import * as React from 'react' + +import LevelTag, { LevelEnum } from '../../../components/LevelTag' + +const StateMap = { + active: { + level: LevelEnum.SUCCESS, + text: '正常', + }, + pending: { + level: LevelEnum.INFO, + text: '編輯中', + }, + finished: { + level: LevelEnum.SUCCESS, + text: '已結束', + }, + archived: { + level: LevelEnum.ERROR, + text: '已隱藏', + }, +} + +const StateTag = ({ + state, +}: { + state: 'active' | 'pending' | 'finished' | 'archived' +}) => { + const { level, text } = StateMap[state] + return {text} +} + +export default StateTag diff --git a/src/components/Layout/Sider/index.tsx b/src/components/Layout/Sider/index.tsx index 2033d815..d935fe0c 100644 --- a/src/components/Layout/Sider/index.tsx +++ b/src/components/Layout/Sider/index.tsx @@ -103,8 +103,14 @@ export const Sider: React.FC = ({ location }) => { 評論}> - - {PAGE_TITLE[PATH.COMMENT_DETAIL]} + {PAGE_TITLE[PATH.COMMENT_LIST]} + + + + 自由寫}> + + + {PAGE_TITLE[PATH.CAMPAIGN_LIST]} diff --git a/src/constants/route.ts b/src/constants/route.ts index af97c1b8..bd66cd3f 100644 --- a/src/constants/route.ts +++ b/src/constants/route.ts @@ -22,6 +22,9 @@ export const PATH = { COMMENT_LIST: '/comments', COMMENT_DETAIL: '/comments/:id', + CAMPAIGN_LIST: '/campaigns', + CAMPAIGN_DETAIL: '/campaigns/:id', + REPORT_LIST: '/reports', OAUTH_CLIENT_LIST: '/oauth-clients', @@ -66,6 +69,9 @@ export const PAGE_TITLE = { [PATH.COMMENT_LIST]: '評論清單', [PATH.COMMENT_DETAIL]: '評論詳情', + [PATH.CAMPAIGN_LIST]: '自由寫清單', + [PATH.CAMPAIGN_DETAIL]: '自由寫詳情', + [PATH.REPORT_LIST]: '報告清單', [PATH.OAUTH_CLIENT_LIST]: 'OAuth Client 清單', diff --git a/src/definitions/index.d.ts b/src/definitions/index.d.ts index 20cadae1..6edf5284 100644 --- a/src/definitions/index.d.ts +++ b/src/definitions/index.d.ts @@ -10,6 +10,8 @@ import { GQLLiker, GQLIcymiTopic, GQLUserRestrictionType, + GQLCampaignState, + GQLDatetimeRangeInput, } from './schema' export * from './schema' @@ -158,6 +160,27 @@ export type CommentDigest = { export type CommentDetail = CommentDigest +/** + * Campaign: Writing Challenge + */ +export type CampaignDigest = { + id: string + shortHash: string + name: string + state: GQLCampaignState + applicationPeriod: GQLDatetimeRangeInput + writingPeriod: GQLDatetimeRangeInput +} + +export type CampaignDetail = CampaignDigest & { + description: string + cover: string + link: string + stages: Array + participants: Connection + articles: Connection +} + /** * Report */ diff --git a/src/definitions/schema.d.ts b/src/definitions/schema.d.ts index d05ac77f..1a146809 100644 --- a/src/definitions/schema.d.ts +++ b/src/definitions/schema.d.ts @@ -1,14979 +1,9854 @@ -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 { + Article as ArticleModel, + ArticleVersion as ArticleVersionModel, +} from './article' +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, + Writing as WritingModel, + 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 { Report as ReportModel } from './report' +import { MattersChoiceTopic as MattersChoiceTopicModel } from './misc' +import { Moment as MomentModel } from './moment' +import { + Campaign as CampaignModel, + CampaignStage as CampaignStageModel, +} from './campaign' +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 GQLApplyCampaignInput = { + id: Scalars['ID']['input'] +} + +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> + /** associated campaigns */ + campaigns: Array + /** 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'] + /** whether current viewer has donated to this article */ + donated: Scalars['Boolean']['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'] + /** Short hash for shorter url addressing */ + shortHash: Scalars['String']['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 + /** history versions */ + versions: GQLArticleVersionsConnection + /** 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 - oauthRequestToken?: string - 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 - shortHash?: 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, GQLPinnableWork { - /** - * 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 +/** + * 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 GQLArticleVersionsArgs = { + input: GQLArticleVersionsInput +} - /** - * This value determines if the summary is customized or not. - */ - summaryCustomized: boolean +export type GQLArticleAccess = { + __typename?: 'ArticleAccess' + circle?: Maybe + secret?: Maybe + type: GQLArticleAccessType +} - /** - * Tags attached to this article. - */ - tags?: Array +/** Enums for types of article access */ +export type GQLArticleAccessType = 'paywall' | 'public' - /** - * Word count of this article. - */ - wordCount?: number +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'] +} - /** - * IPFS hash of this article. - */ - dataHash: string +export type GQLArticleArticleNoticeType = 'ArticleNewCollected' - /** - * Media hash, composed of cid encoding, of this article. - */ - mediaHash: string +export type GQLArticleCampaign = { + __typename?: 'ArticleCampaign' + campaign: GQLCampaign + stage: GQLCampaignStage +} - /** - * Short hash for shorter url addressing - */ - shortHash: string +export type GQLArticleCampaignInput = { + campaign: Scalars['ID']['input'] + stage: Scalars['ID']['input'] +} - /** - * Content (HTML) of this article. - */ - content: string +export type GQLArticleConnection = GQLConnection & { + __typename?: 'ArticleConnection' + edges?: Maybe> + pageInfo: GQLPageInfo + totalCount: Scalars['Int']['output'] +} - /** - * Different foramts of content. - */ - contents: GQLArticleContents +export type GQLArticleContents = { + __typename?: 'ArticleContents' + /** HTML content of this article. */ + html: Scalars['String']['output'] + /** Markdown content of this article. */ + markdown: Scalars['String']['output'] +} - /** - * Original language of content - */ - language?: string +export type GQLArticleDonation = { + __typename?: 'ArticleDonation' + id: Scalars['ID']['output'] + sender?: Maybe +} - /** - * List of articles which added this article into their collections. - */ - collectedBy: GQLArticleConnection +export type GQLArticleDonationConnection = { + __typename?: 'ArticleDonationConnection' + edges?: Maybe> + pageInfo: GQLPageInfo + totalCount: Scalars['Int']['output'] +} - /** - * List of articles added into this article' collection. - */ - collection: GQLArticleConnection +export type GQLArticleDonationEdge = { + __typename?: 'ArticleDonationEdge' + cursor: Scalars['String']['output'] + node: GQLArticleDonation +} - /** - * Related articles to this article. - */ - relatedArticles: GQLArticleConnection +export type GQLArticleEdge = { + __typename?: 'ArticleEdge' + cursor: Scalars['String']['output'] + node: GQLArticle +} - /** - * Donation-related articles to this article. - */ - relatedDonationArticles: GQLArticleConnection +export type GQLArticleInput = { + mediaHash?: InputMaybe + shortHash?: InputMaybe +} - /** - * Appreciations history of this article. - */ - appreciationsReceived: GQLAppreciationConnection +/** Enums for types of article license */ +export type GQLArticleLicenseType = + | 'arr' + | 'cc_0' + | 'cc_by_nc_nd_2' + | 'cc_by_nc_nd_4' - /** - * Total number of appreciations recieved of this article. - */ - appreciationsReceivedTotal: number +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'] + inSearch: 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 +} + +export type GQLArticleVersion = GQLNode & { + __typename?: 'ArticleVersion' + contents: GQLArticleContents + createdAt: Scalars['DateTime']['output'] + dataHash?: Maybe + description?: Maybe + id: Scalars['ID']['output'] + mediaHash?: Maybe + summary: Scalars['String']['output'] + title: Scalars['String']['output'] + translation?: Maybe +} - /** - * Total number of donation recieved of this article. - */ - donationCount: number +export type GQLArticleVersionTranslationArgs = { + input?: InputMaybe +} - /** - * Total number of readers of this article. - */ - readerCount: number +export type GQLArticleVersionEdge = { + __typename?: 'ArticleVersionEdge' + cursor: Scalars['String']['output'] + node: GQLArticleVersion +} - /** - * Subscribers of this article. - */ - subscribers: GQLUserConnection +export type GQLArticleVersionsConnection = GQLConnection & { + __typename?: 'ArticleVersionsConnection' + edges: Array> + pageInfo: GQLPageInfo + totalCount: Scalars['Int']['output'] +} - /** - * Limit the nuhmber of appreciate per user. - */ - appreciateLimit: number +export type GQLArticleVersionsInput = { + after?: InputMaybe + first?: InputMaybe +} - /** - * Number represents how many times per user can appreciate this article. - */ - appreciateLeft: number +/** 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' + | 'campaignCover' + | 'circleAvatar' + | 'circleCover' + | 'collectionCover' + | 'cover' + | 'embed' + | 'embedaudio' + | 'moment' + | 'oauthClientAvatar' + | 'profileCover' + | 'tagCover' + +export type GQLAuthResult = { + __typename?: 'AuthResult' + auth: Scalars['Boolean']['output'] + token?: Maybe + type: GQLAuthResultType + user?: Maybe +} - /** - * This value determines if current viewer has appreciated or not. - */ - hasAppreciate: boolean +export type GQLAuthResultType = 'LinkAccount' | 'Login' | 'Signup' - /** - * This value determines if current viewer can SuperLike or not. - */ - canSuperLike: boolean +export type GQLAuthorsType = 'active' | 'appreciated' | 'default' | 'trendy' - /** - * This value determines if current Viewer has subscribed of not. - */ - subscribed: boolean +export type GQLBadge = { + __typename?: 'Badge' + type: GQLBadgeType +} - /** - * This value determines if this article is an author selected article or not. - * @deprecated Use pinned instead - */ - sticky: boolean - pinned: boolean +export type GQLBadgeType = + | 'architect' + | 'golden_motor' + | 'grand_slam' + | 'nomad1' + | 'nomad2' + | 'nomad3' + | 'nomad4' + | 'seed' - /** - * Translation of article title and content. - */ - translation?: GQLArticleTranslation +export type GQLBadgedUsersInput = { + after?: InputMaybe + first?: InputMaybe + type?: InputMaybe +} - /** - * Available translation languages. - */ - availableTranslations?: Array +export type GQLBalance = { + __typename?: 'Balance' + HKD: Scalars['Float']['output'] +} - /** - * Transactions history of this article. - */ - transactionsReceivedBy: GQLUserConnection +export type GQLBlockchainTransaction = { + __typename?: 'BlockchainTransaction' + chain: GQLChain + txHash: Scalars['String']['output'] +} - /** - * Donations of this article, grouped by sender - */ - donations: GQLArticleDonationConnection +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'] +} - /** - * Cumulative reading time in seconds - */ - readTime: number +export type GQLBoostTypes = 'Article' | 'Tag' | 'User' - /** - * Drafts linked to this article. - * @deprecated Use Article.newestUnpublishedDraft or Article.newestPublishedDraft instead - */ - drafts?: Array +export type GQLCacheControlScope = 'PRIVATE' | 'PUBLIC' - /** - * Newest unpublished draft linked to this article. - */ - newestUnpublishedDraft?: GQLDraft +export type GQLCampaign = { + description: Scalars['String']['output'] + id: Scalars['ID']['output'] + name: Scalars['String']['output'] + shortHash: Scalars['String']['output'] + state: GQLCampaignState +} - /** - * Newest published draft linked to this article. - */ - newestPublishedDraft: GQLDraft +export type GQLCampaignApplicationState = 'pending' | 'rejected' | 'succeeded' - /** - * Revision Count - */ - revisionCount: number +export type GQLCampaignArticlesFilter = { + stage: Scalars['ID']['input'] +} - /** - * Access related fields on circle - */ - access: GQLArticleAccess +export type GQLCampaignArticlesInput = { + after?: InputMaybe + filter?: InputMaybe + first?: InputMaybe +} - /** - * whether content is marked as sensitive by author - */ - sensitiveByAuthor: boolean +export type GQLCampaignConnection = GQLConnection & { + __typename?: 'CampaignConnection' + edges?: Maybe> + pageInfo: GQLPageInfo + totalCount: Scalars['Int']['output'] +} - /** - * whether content is marked as sensitive by admin - */ - sensitiveByAdmin: boolean +export type GQLCampaignEdge = { + __typename?: 'CampaignEdge' + cursor: Scalars['String']['output'] + node: GQLCampaign +} - /** - * License Type - */ - license: GQLArticleLicenseType +export type GQLCampaignInput = { + shortHash: Scalars['String']['input'] +} - /** - * whether current viewer has donated to this article - */ - donated: boolean +export type GQLCampaignStage = { + __typename?: 'CampaignStage' + id: Scalars['ID']['output'] + name: Scalars['String']['output'] + period?: Maybe +} - /** - * creator message asking for support - */ - requestForDonation?: string +export type GQLCampaignStageInput = { + name: Array + period?: InputMaybe +} + +export type GQLCampaignState = 'active' | 'archived' | 'finished' | 'pending' + +export type GQLCampaignsInput = { + after?: InputMaybe + first?: InputMaybe + /** return pending and archived campaigns */ + oss?: InputMaybe +} + +export type GQLChain = 'Optimism' | 'Polygon' + +export type GQLChangeEmailInput = { + newEmail: Scalars['String']['input'] + newEmailCodeId: Scalars['ID']['input'] + oldEmail: Scalars['String']['input'] + oldEmailCodeId: Scalars['ID']['input'] +} +export type GQLCircle = GQLNode & { + __typename?: 'Circle' + /** Analytics dashboard. */ + analytics: GQLCircleAnalytics /** - * creator message after support + * Circle avatar's link. + * @deprecated No longer in use */ - replyToDonator?: string - + avatar?: Maybe + /** Comments broadcasted by Circle owner. */ + broadcast: GQLCommentConnection /** - * the iscnId if published to ISCN + * Circle cover's link. + * @deprecated No longer in use */ - iscnId?: string - + cover?: Maybe /** - * whether readers can comment + * Created time. + * @deprecated No longer in use */ - canComment: boolean - + 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'] /** - * history versions + * Human readable name of this Circle. + * @deprecated No longer in use */ - versions: GQLArticleVersionsConnection - oss: GQLArticleOSS - remark?: string - + displayName: Scalars['String']['output'] /** - * The counting number of comments. + * List of Circle follower. + * @deprecated No longer in use */ - commentCount: number - + followers: GQLUserConnection + /** Unique ID. */ + id: Scalars['ID']['output'] + /** Invitation used by current viewer. */ + invitedBy?: Maybe + /** Invitations belonged to this Circle. */ + invites: GQLInvites /** - * The number determines how many pinned comments can be set. + * This value determines if current viewer is following Circle or not. + * @deprecated No longer in use */ - pinCommentLimit: number - + isFollower: Scalars['Boolean']['output'] /** - * The number determines how many comments can be set as pinned comment. + * This value determines if current viewer is Member or not. + * @deprecated No longer in use */ - pinCommentLeft: number - + isMember: Scalars['Boolean']['output'] /** - * List of pinned comments. + * List of Circle member. + * @deprecated No longer in use */ - pinnedComments?: Array - + members: GQLMemberConnection /** - * List of featured comments of this article. + * Slugified name of this Circle. + * @deprecated No longer in use */ - featuredComments: GQLCommentConnection - + name: Scalars['String']['output'] + /** Circle owner. */ + owner: GQLUser + /** Pinned comments broadcasted by Circle owner. */ + pinnedBroadcast?: Maybe> + /** Prices offered by this Circle. */ + prices?: Maybe> /** - * List of comments of this article. + * State of this Circle. + * @deprecated No longer in use */ - comments: GQLCommentConnection - + state: GQLCircleState /** - * The counting number of this article. + * Updated time. + * @deprecated No longer in use */ - responseCount: number - + updatedAt: Scalars['DateTime']['output'] /** - * List of responses of a article. + * List of works belong to this Circle. + * @deprecated No longer in use */ - responses: GQLResponseConnection + works: GQLArticleConnection } -export interface GQLNode { - id: string +export type GQLCircleBroadcastArgs = { + input: GQLCommentsInput } -/** Use this to resolve interface type Node */ -export type GQLPossibleNodeTypeNames = - | 'Article' - | 'User' - | 'Circle' - | 'Comment' - | 'Tag' - | 'IcymiTopic' - | 'Collection' - | 'Draft' - | 'ArticleVersion' - | 'Report' +export type GQLCircleDiscussionArgs = { + input: GQLCommentsInput +} -export interface GQLNodeNameMap { - Node: GQLNode - Article: GQLArticle - User: GQLUser - Circle: GQLCircle - Comment: GQLComment - Tag: GQLTag - IcymiTopic: GQLIcymiTopic - Collection: GQLCollection - Draft: GQLDraft - ArticleVersion: GQLArticleVersion - Report: GQLReport +export type GQLCircleFollowersArgs = { + input: GQLConnectionArgs } -export interface GQLPinnableWork { - id: string - pinned: boolean - title: string - cover?: string +export type GQLCircleMembersArgs = { + input: GQLConnectionArgs } -/** Use this to resolve interface type PinnableWork */ -export type GQLPossiblePinnableWorkTypeNames = 'Article' | 'Collection' +export type GQLCircleWorksArgs = { + input: GQLConnectionArgs +} -export interface GQLPinnableWorkNameMap { - PinnableWork: GQLPinnableWork - Article: GQLArticle - Collection: GQLCollection +export type GQLCircleAnalytics = { + __typename?: 'CircleAnalytics' + content: GQLCircleContentAnalytics + follower: GQLCircleFollowerAnalytics + income: GQLCircleIncomeAnalytics + subscriber: GQLCircleSubscriberAnalytics } -/** - * 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 GQLCircleConnection = GQLConnection & { + __typename?: 'CircleConnection' + edges?: Maybe> + pageInfo: GQLPageInfo + totalCount: Scalars['Int']['output'] +} -/** - * Enums for an article state. - */ -export const enum GQLArticleState { - active = 'active', - archived = 'archived', - banned = 'banned', +export type GQLCircleContentAnalytics = { + __typename?: 'CircleContentAnalytics' + paywall?: Maybe> + public?: Maybe> } -export interface GQLUser extends GQLNode { - /** - * Circles belong to current user. - */ - ownCircles?: Array +export type GQLCircleContentAnalyticsDatum = { + __typename?: 'CircleContentAnalyticsDatum' + node: GQLArticle + readCount: Scalars['Int']['output'] +} - /** - * Circles whiches user has subscribed. - */ - subscribedCircles: GQLCircleConnection - notices: GQLNoticeConnection +export type GQLCircleEdge = { + __typename?: 'CircleEdge' + cursor: Scalars['String']['output'] + node: GQLCircle +} - /** - * Global id of an user. - */ - 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 +} - /** - * Global unique user name of a user. - */ - userName?: string +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'] +} - /** - * Display name on user profile, can be duplicated. - */ - displayName?: string +export type GQLCircleNoticeType = + | 'CircleInvitation' + | 'CircleNewBroadcastComments' + | 'CircleNewDiscussionComments' + | 'CircleNewFollower' + | 'CircleNewSubscriber' + | 'CircleNewUnsubscriber' - /** - * LikerID of LikeCoin, being used by LikeCoin OAuth - */ - likerId?: string +export type GQLCircleRecommendationActivity = { + __typename?: 'CircleRecommendationActivity' + /** Recommended circles */ + nodes?: Maybe> + /** The source type of recommendation */ + source?: Maybe +} - /** - * Liker info of current user - */ - liker: GQLLiker +export type GQLCircleRecommendationActivitySource = 'UserSubscription' - /** - * URL for user avatar. - */ - avatar?: string +export type GQLCircleState = 'active' | 'archived' - /** - * User information. - */ - info: GQLUserInfo +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 +} - /** - * User settings. - */ - settings: GQLUserSettings +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'] +} - /** - * Article recommendations for current user. - */ - recommendation: GQLRecommendation +export type GQLClaimLogbooksResult = { + __typename?: 'ClaimLogbooksResult' + ids?: Maybe> + txHash: Scalars['String']['output'] +} - /** - * Articles authored by current user. - */ - articles: GQLArticleConnection +export type GQLClearReadHistoryInput = { + id?: InputMaybe +} - /** - * collections authored by current user. - */ - collections: GQLCollectionConnection +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'] + } - /** - * user latest articles or collections - */ - latestWorks: Array +export type GQLCollectionArticlesArgs = { + input: GQLCollectionArticlesInput +} - /** - * user pinned articles or collections - */ - pinnedWorks: Array +export type GQLCollectionContainsArgs = { + input: GQLNodeInput +} - /** - * Tags by by usage order of current user. - */ - tags: GQLTagConnection +export type GQLCollectionArticlesInput = { + after?: InputMaybe + first?: InputMaybe + reversed?: InputMaybe +} - /** - * Tags owned and maintained by current user. - */ - maintainedTags: GQLTagConnection +export type GQLCollectionConnection = GQLConnection & { + __typename?: 'CollectionConnection' + edges?: Maybe> + pageInfo: GQLPageInfo + totalCount: Scalars['Int']['output'] +} - /** - * Tags pinned by current user. - */ - pinnedTags: 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'] /** - * Drafts authored by current user. + * The counting number of downvotes. + * @deprecated No longer in use in querying */ - drafts: GQLDraftConnection + 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'] +} - /** - * Articles current user commented on - */ - commentedArticles: GQLArticleConnection +/** This type contains content, author, descendant comments and related data of a comment. */ +export type GQLCommentCommentsArgs = { + input: GQLCommentCommentsInput +} - /** - * Artilces current user subscribed to. - */ - subscriptions: 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'] +} - /** - * Record of user activity, only accessable by current user. - */ - activity: GQLUserActivity +export type GQLCommentCommentNoticeType = 'CommentNewReply' - /** - * Followers of this user. - */ - followers: GQLUserConnection +export type GQLCommentCommentsInput = { + after?: InputMaybe + author?: InputMaybe + first?: InputMaybe + sort?: InputMaybe +} - /** - * Following contents of this user. - */ - following: GQLFollowing +export type GQLCommentConnection = GQLConnection & { + __typename?: 'CommentConnection' + edges?: Maybe> + pageInfo: GQLPageInfo + totalCount: Scalars['Int']['output'] +} - /** - * Whether current user is following viewer. - */ - isFollower: boolean +export type GQLCommentEdge = { + __typename?: 'CommentEdge' + cursor: Scalars['String']['output'] + node: GQLComment +} - /** - * Whether viewer is following current user. - */ - isFollowee: boolean +export type GQLCommentInput = { + articleId?: InputMaybe + circleId?: InputMaybe + content: Scalars['String']['input'] + mentions?: InputMaybe> + momentId?: InputMaybe + parentId?: InputMaybe + replyTo?: InputMaybe + type: GQLCommentType +} - /** - * Users that blocked by current user. - */ - blockList: GQLUserConnection +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'] +} + +export type GQLCommentNoticeType = + | 'ArticleNewComment' + | 'CircleNewBroadcast' + | 'CommentLiked' + | 'CommentMentionedYou' + | 'CommentPinned' + | 'MomentNewComment' + | 'SubscribedArticleNewComment' + +/** Enums for sorting comments by time. */ +export type GQLCommentSort = 'newest' | 'oldest' + +/** Enums for comment state. */ +export type GQLCommentState = 'active' | 'archived' | 'banned' | 'collapsed' + +export type GQLCommentType = + | 'article' + | 'circleBroadcast' + | 'circleDiscussion' + | 'moment' + +export type GQLCommentsFilter = { + author?: InputMaybe + parentComment?: InputMaybe + state?: InputMaybe +} + +export type GQLCommentsInput = { + after?: InputMaybe + before?: InputMaybe + filter?: InputMaybe + first?: InputMaybe + includeAfter?: InputMaybe + includeBefore?: InputMaybe + sort?: InputMaybe +} + +export type GQLConfirmVerificationCodeInput = { + code: Scalars['String']['input'] + email: Scalars['String']['input'] + type: GQLVerificationCodeType +} - /** - * Whether current user is blocking viewer. - */ - isBlocking: boolean +export type GQLConnectStripeAccountInput = { + country: GQLStripeAccountCountry +} - /** - * Whether current user is blocked by viewer. - */ - isBlocked: boolean +export type GQLConnectStripeAccountResult = { + __typename?: 'ConnectStripeAccountResult' + redirectUrl: Scalars['String']['output'] +} - /** - * user data analytics, only accessable by current user. - */ - analytics: GQLUserAnalytics +export type GQLConnection = { + pageInfo: GQLPageInfo + totalCount: Scalars['Int']['output'] +} - /** - * Status of current user. - */ - status?: GQLUserStatus - oss: GQLUserOSS - remark?: string +export type GQLConnectionArgs = { + after?: InputMaybe + filter?: InputMaybe + first?: InputMaybe + oss?: InputMaybe +} - /** - * User Wallet - */ - wallet: GQLWallet +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> +} - /** - * Payment pointer that resolves to Open Payments endpoints - */ - paymentPointer?: string +export type GQLCryptoWalletSignaturePurpose = + | 'airdrop' + | 'connect' + | 'login' + | 'signup' + +export type GQLDatetimeRange = { + __typename?: 'DatetimeRange' + end?: Maybe + start: Scalars['DateTime']['output'] } -export interface GQLCircle extends GQLNode { - /** - * Unique ID. - */ - id: string +export type GQLDatetimeRangeInput = { + end?: InputMaybe + start: Scalars['DateTime']['input'] +} - /** - * Circle avatar's link. - * @deprecated No longer in use - */ - avatar?: string +export type GQLDeleteAnnouncementsInput = { + ids?: InputMaybe> +} - /** - * Circle cover's link. - * @deprecated No longer in use - */ - cover?: string +export type GQLDeleteArticlesTagsInput = { + articles?: InputMaybe> + id: Scalars['ID']['input'] +} - /** - * Slugified name of this Circle. - * @deprecated No longer in use - */ - name: string +export type GQLDeleteCollectionArticlesInput = { + articles: Array + collection: Scalars['ID']['input'] +} - /** - * Human readable name of this Circle. - * @deprecated No longer in use - */ - displayName: string +export type GQLDeleteCollectionsInput = { + ids: Array +} - /** - * A short description of this Circle. - */ - description?: string +export type GQLDeleteCommentInput = { + id: Scalars['ID']['input'] +} - /** - * Prices offered by this Circle. - */ - prices?: Array +export type GQLDeleteDraftInput = { + id: Scalars['ID']['input'] +} - /** - * Circle owner. - */ - owner: GQLUser - - /** - * List of Circle member. - * @deprecated No longer in use - */ - members: GQLMemberConnection - - /** - * List of Circle follower. - * @deprecated No longer in use - */ - followers: GQLUserConnection - - /** - * List of works belong to this Circle. - * @deprecated No longer in use - */ - works: GQLArticleConnection - - /** - * State of this Circle. - * @deprecated No longer in use - */ - state: GQLCircleState - - /** - * Created time. - * @deprecated No longer in use - */ - createdAt: GQLDateTime - - /** - * Updated time. - * @deprecated No longer in use - */ - updatedAt: GQLDateTime - - /** - * This value determines if current viewer is following Circle or not. - * @deprecated No longer in use - */ - isFollower: boolean - - /** - * This value determines if current viewer is Member or not. - * @deprecated No longer in use - */ - isMember: boolean - - /** - * Invitations belonged to this Circle. - */ - invites: GQLInvites - - /** - * Invitation used by current viewer. - */ - invitedBy?: GQLInvitation - - /** - * Analytics dashboard. - */ - analytics: GQLCircleAnalytics - - /** - * Comments broadcasted by Circle owner. - */ - broadcast: GQLCommentConnection - - /** - * Pinned comments broadcasted by Circle owner. - */ - pinnedBroadcast?: Array - - /** - * Comments made by Circle member. - */ - discussion: GQLCommentConnection - - /** - * Discussion (exclude replies) count of this circle. - */ - discussionThreadCount: number - - /** - * Discussion (include replies) count of this circle. - */ - discussionCount: number +export type GQLDeleteMomentInput = { + id: Scalars['ID']['input'] } -export interface GQLPrice { - /** - * Unique ID. - */ - id: string - - /** - * Amount of Price. - */ - amount: number - - /** - * Current Price belongs to whcih Circle. - */ - circle: GQLCircle +export type GQLDeleteTagsInput = { + ids: Array +} - /** - * Currency of Price. - */ - currency: GQLTransactionCurrency +export type GQLDirectImageUploadInput = { + draft?: InputMaybe + entityId?: InputMaybe + entityType: GQLEntityType + mime?: InputMaybe + type: GQLAssetType + url?: InputMaybe +} - /** - * State of Price. - */ - state: GQLPriceState +/** 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 + /** associated campaigns */ + campaigns: 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 +} - /** - * Created time. - * @deprecated No longer in use - */ - createdAt: GQLDateTime +export type GQLDraftAccess = { + __typename?: 'DraftAccess' + circle?: Maybe + type: GQLArticleAccessType +} - /** - * Updated time. - * @deprecated No longer in use - */ - updatedAt: GQLDateTime +export type GQLDraftConnection = GQLConnection & { + __typename?: 'DraftConnection' + edges?: Maybe> + pageInfo: GQLPageInfo + totalCount: Scalars['Int']['output'] } -export const enum GQLTransactionCurrency { - HKD = 'HKD', - LIKE = 'LIKE', - USDT = 'USDT', +export type GQLDraftEdge = { + __typename?: 'DraftEdge' + cursor: Scalars['String']['output'] + node: GQLDraft } -export const enum GQLPriceState { - active = 'active', - archived = 'archived', +export type GQLEditArticleInput = { + accessType?: InputMaybe + /** which campaigns to attach */ + campaigns?: InputMaybe> + /** whether readers can comment */ + canComment?: InputMaybe + circle?: InputMaybe + collection?: InputMaybe> + content?: InputMaybe + cover?: InputMaybe + /** revision description */ + description?: 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> + title?: 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' + | 'moment' + | 'tag' + | '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 interface GQLConnectionArgs { - after?: string - first?: GQLfirst_Int_min_0 - oss?: boolean - filter?: GQLFilterInput +export type GQLExchangeRatesInput = { + from?: InputMaybe + to?: InputMaybe } -export type GQLfirst_Int_min_0 = any +export type GQLFeature = { + __typename?: 'Feature' + enabled: Scalars['Boolean']['output'] + name: GQLFeatureName +} -export interface GQLFilterInput { - /** - * index of list, min: 0, max: 49 - */ - random?: GQLrandom_Int_min_0_max_49 +export type GQLFeatureFlag = 'admin' | 'off' | 'on' | 'seeding' - /** - * Used in RecommendInput - */ - followed?: boolean +export type GQLFeatureName = + | 'add_credit' + | 'circle_interact' + | 'circle_management' + | 'fingerprint' + | 'payment' + | 'payout' + | 'tag_adoption' + | 'verify_appreciate' - /** - * Used in User Articles filter, by tags or by time range, or both - */ - tagIds?: Array - inRangeStart?: GQLDateTime - inRangeEnd?: GQLDateTime +export type GQLFeaturedCommentsInput = { + after?: InputMaybe + first?: InputMaybe + sort?: InputMaybe } -export type GQLrandom_Int_min_0_max_49 = any - -export interface GQLMemberConnection extends GQLConnection { - totalCount: number - pageInfo: GQLPageInfo - edges?: Array +export type GQLFeaturedTagsInput = { + /** tagIds */ + ids: Array } -export interface GQLConnection { - totalCount: number - pageInfo: GQLPageInfo +export type GQLFilterInput = { + /** Used in RecommendInput */ + followed?: InputMaybe + inRangeEnd?: InputMaybe + inRangeStart?: 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> } -/** Use this to resolve interface type Connection */ -export type GQLPossibleConnectionTypeNames = - | 'MemberConnection' - | 'UserConnection' - | 'ArticleConnection' - | 'InvitationConnection' - | 'CommentConnection' - | 'CircleConnection' - | 'NoticeConnection' - | 'TagConnection' - | 'FollowingActivityConnection' - | 'CollectionConnection' - | 'DraftConnection' - | 'ReadHistoryConnection' - | 'RecentSearchConnection' - | 'AppreciationConnection' - | 'TopDonatorConnection' - | 'TransactionConnection' - | 'ArticleVersionsConnection' - | 'ResponseConnection' - | 'SearchResultConnection' - | 'OAuthClientConnection' - | 'SkippedListItemsConnection' - | 'ReportConnection' - | 'IcymiTopicConnection' - -export interface GQLConnectionNameMap { - Connection: GQLConnection - MemberConnection: GQLMemberConnection - UserConnection: GQLUserConnection - ArticleConnection: GQLArticleConnection - InvitationConnection: GQLInvitationConnection - CommentConnection: GQLCommentConnection - CircleConnection: GQLCircleConnection - NoticeConnection: GQLNoticeConnection - TagConnection: GQLTagConnection - FollowingActivityConnection: GQLFollowingActivityConnection - CollectionConnection: GQLCollectionConnection - DraftConnection: GQLDraftConnection - ReadHistoryConnection: GQLReadHistoryConnection - RecentSearchConnection: GQLRecentSearchConnection - AppreciationConnection: GQLAppreciationConnection - TopDonatorConnection: GQLTopDonatorConnection - TransactionConnection: GQLTransactionConnection - ArticleVersionsConnection: GQLArticleVersionsConnection - ResponseConnection: GQLResponseConnection - SearchResultConnection: GQLSearchResultConnection - OAuthClientConnection: GQLOAuthClientConnection - SkippedListItemsConnection: GQLSkippedListItemsConnection - ReportConnection: GQLReportConnection - IcymiTopicConnection: GQLIcymiTopicConnection +export type GQLFollowing = { + __typename?: 'Following' + circles: GQLCircleConnection + tags: GQLTagConnection + users: GQLUserConnection } -export interface GQLPageInfo { - startCursor?: string - endCursor?: string - hasNextPage: boolean - hasPreviousPage: boolean +export type GQLFollowingCirclesArgs = { + input: GQLConnectionArgs } -export interface GQLMemberEdge { - cursor: string - node: GQLMember +export type GQLFollowingTagsArgs = { + input: GQLConnectionArgs } -export interface GQLMember { - /** - * User who join to a Circle. - */ - user: GQLUser - - /** - * Price chosen by user when joining a Circle. - */ - price: GQLPrice +export type GQLFollowingUsersArgs = { + input: GQLConnectionArgs } -export interface GQLUserConnection extends GQLConnection { - totalCount: number - pageInfo: GQLPageInfo - edges?: Array -} +export type GQLFollowingActivity = + | GQLArticleRecommendationActivity + | GQLCircleRecommendationActivity + | GQLUserAddArticleTagActivity + | GQLUserBroadcastCircleActivity + | GQLUserCreateCircleActivity + | GQLUserPostMomentActivity + | GQLUserPublishArticleActivity + | GQLUserRecommendationActivity -export interface GQLUserEdge { - cursor: string - node: GQLUser +export type GQLFollowingActivityConnection = GQLConnection & { + __typename?: 'FollowingActivityConnection' + edges?: Maybe> + pageInfo: GQLPageInfo + totalCount: Scalars['Int']['output'] } -export interface GQLArticleConnection extends GQLConnection { - totalCount: number - pageInfo: GQLPageInfo - edges?: Array +export type GQLFollowingActivityEdge = { + __typename?: 'FollowingActivityEdge' + cursor: Scalars['String']['output'] + node: GQLFollowingActivity } -export interface GQLArticleEdge { - cursor: string - node: GQLArticle +export type GQLFrequentSearchInput = { + first?: InputMaybe + key?: InputMaybe } -export const enum GQLCircleState { - active = 'active', - archived = 'archived', +export type GQLGenerateSigningMessageInput = { + address: Scalars['String']['input'] + purpose?: InputMaybe } -export interface GQLInvites { - /** - * Accepted invitation list - */ - accepted: GQLInvitationConnection +export type GQLGrantType = 'authorization_code' | 'refresh_token' - /** - * Pending invitation list - */ - pending: GQLInvitationConnection +export type GQLIcymiTopic = GQLNode & { + __typename?: 'IcymiTopic' + archivedAt?: Maybe + articles: Array + id: Scalars['ID']['output'] + note?: Maybe + pinAmount: Scalars['Int']['output'] + publishedAt?: Maybe + state: GQLIcymiTopicState + title: Scalars['String']['output'] } -export interface GQLInvitationConnection extends GQLConnection { - totalCount: number +export type GQLIcymiTopicConnection = GQLConnection & { + __typename?: 'IcymiTopicConnection' + edges: Array pageInfo: GQLPageInfo - edges?: Array + totalCount: Scalars['Int']['output'] } -export interface GQLInvitationEdge { - cursor: string - node: GQLInvitation +export type GQLIcymiTopicEdge = { + __typename?: 'IcymiTopicEdge' + cursor: Scalars['String']['output'] + node: GQLIcymiTopic } -export interface GQLInvitation { - /** - * Unique ID. - */ - id: string +export type GQLIcymiTopicState = 'archived' | 'editing' | 'published' - /** - * Target person of this invitation. - */ +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. - */ + /** Creator of this invitation. */ inviter: GQLUser + /** Sent time. */ + sentAt: Scalars['DateTime']['output'] + /** Determine it's specific state. */ + state: GQLInvitationState +} - /** - * Invitation of current Circle. - */ - circle: GQLCircle - - /** - * Free period of this invitation. - */ - freePeriod: number +export type GQLInvitationConnection = GQLConnection & { + __typename?: 'InvitationConnection' + edges?: Maybe> + pageInfo: GQLPageInfo + totalCount: Scalars['Int']['output'] +} - /** - * Created time. - */ - createdAt: GQLDateTime +export type GQLInvitationEdge = { + __typename?: 'InvitationEdge' + cursor: Scalars['String']['output'] + node: GQLInvitation +} - /** - * Sent time. - */ - sentAt: GQLDateTime +export type GQLInvitationState = + | 'accepted' + | 'pending' + | 'transfer_failed' + | 'transfer_succeeded' - /** - * Accepted time. - */ - acceptedAt?: GQLDateTime +export type GQLInviteCircleInput = { + circleId: Scalars['ID']['input'] + freePeriod: Scalars['Int']['input'] + invitees: Array +} - /** - * Determine it's specific state. - */ - state: GQLInvitationState +export type GQLInviteCircleInvitee = { + email?: InputMaybe + id?: InputMaybe } export type GQLInvitee = GQLPerson | GQLUser -/** Use this to resolve union type Invitee */ -export type GQLPossibleInviteeTypeNames = 'Person' | 'User' +export type GQLInvites = { + __typename?: 'Invites' + /** Accepted invitation list */ + accepted: GQLInvitationConnection + /** Pending invitation list */ + pending: GQLInvitationConnection +} -export interface GQLInviteeNameMap { - Invitee: GQLInvitee - Person: GQLPerson - User: GQLUser +export type GQLInvitesAcceptedArgs = { + input: GQLConnectionArgs } -export interface GQLPerson { - email: GQLemail_String_NotNull_format_email +export type GQLInvitesPendingArgs = { + input: GQLConnectionArgs } -export type GQLemail_String_NotNull_format_email = any +export type GQLKeywordInput = { + keyword: Scalars['String']['input'] +} -export const enum GQLInvitationState { - accepted = 'accepted', - pending = 'pending', - transfer_succeeded = 'transfer_succeeded', - transfer_failed = 'transfer_failed', +export type GQLKeywordsInput = { + keywords?: InputMaybe> } -export interface GQLCircleAnalytics { - income: GQLCircleIncomeAnalytics - subscriber: GQLCircleSubscriberAnalytics - follower: GQLCircleFollowerAnalytics - content: GQLCircleContentAnalytics +export type GQLLikeMomentInput = { + id: Scalars['ID']['input'] } -export interface GQLCircleIncomeAnalytics { +export type GQLLiker = { + __typename?: 'Liker' + /** Whether liker is a civic liker */ + civicLiker: Scalars['Boolean']['output'] + /** Liker ID of LikeCoin */ + likerId?: Maybe /** - * income history of last 4 months + * Rate of LikeCoin/USD + * @deprecated No longer in use */ - history: Array + rateUSD?: Maybe + /** Total LIKE left in wallet. */ + total: Scalars['Float']['output'] +} - /** - * total income of all time - */ - total: number +export type GQLLogRecordInput = { + type: GQLLogRecordTypes +} - /** - * income of this month - */ - thisMonth: number +export type GQLLogRecordTypes = + | 'ReadFolloweeArticles' + | 'ReadFollowingFeed' + | 'ReadResponseInfoPopUp' - /** - * income of next month - */ - nextMonth: number +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 GQLMonthlyDatum { - value: number - date: GQLDateTime +export type GQLMemberConnection = GQLConnection & { + __typename?: 'MemberConnection' + edges?: Maybe> + pageInfo: GQLPageInfo + totalCount: Scalars['Int']['output'] } -export interface GQLCircleSubscriberAnalytics { - /** - * subscriber count history of last 4 months - */ - subscriberHistory: Array - - /** - * invitee count history of last 4 months - */ - inviteeHistory: Array - - /** - * current subscriber count - */ - currentSubscriber: number +export type GQLMemberEdge = { + __typename?: 'MemberEdge' + cursor: Scalars['String']['output'] + node: GQLMember +} - /** - * current invitee count - */ - currentInvitee: number +export type GQLMergeTagsInput = { + content: Scalars['String']['input'] + ids: Array } -export interface GQLCircleFollowerAnalytics { - /** - * subscriber count history of last 4 months - */ - history: Array +export type GQLMigrationInput = { + files: Array> + type?: InputMaybe +} - /** - * current follower count - */ - current: number +export type GQLMigrationType = 'medium' - /** - * the percentage of follower count in reader count of circle articles - */ - followerPercentage: number +export type GQLMoment = GQLNode & { + __typename?: 'Moment' + assets: Array + author: GQLUser + commentCount: Scalars['Int']['output'] + commentedFollowees: Array + comments: GQLCommentConnection + content?: Maybe + createdAt: Scalars['DateTime']['output'] + id: Scalars['ID']['output'] + likeCount: Scalars['Int']['output'] + /** whether current user has liked it */ + liked: Scalars['Boolean']['output'] + shortHash: Scalars['String']['output'] + state: GQLMomentState } -export interface GQLCircleContentAnalytics { - public?: Array - paywall?: Array +export type GQLMomentCommentsArgs = { + input: GQLCommentsInput } -export interface GQLCircleContentAnalyticsDatum { - node: GQLArticle - readCount: number +export type GQLMomentInput = { + shortHash: Scalars['String']['input'] } -export interface GQLCommentsInput { - sort?: GQLCommentSort - after?: string - before?: string - includeAfter?: boolean - includeBefore?: boolean - first?: GQLfirst_Int_min_0 - filter?: GQLCommentsFilter +export type GQLMomentNotice = GQLNotice & { + __typename?: 'MomentNotice' + /** 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: GQLMoment + type: GQLMomentNoticeType + /** The value determines if the notice is unread or not. */ + unread: Scalars['Boolean']['output'] } -/** - * Enums for sorting comments by time. - */ -export const enum GQLCommentSort { - oldest = 'oldest', - newest = 'newest', -} - -export interface GQLCommentsFilter { - parentComment?: string - state?: GQLCommentState - author?: string -} - -/** - * Enums for comment state. - */ -export const enum GQLCommentState { - active = 'active', - archived = 'archived', - banned = 'banned', - collapsed = 'collapsed', -} +export type GQLMomentNoticeType = 'MomentLiked' | 'MomentMentionedYou' -export interface GQLCommentConnection extends GQLConnection { - totalCount: number - pageInfo: GQLPageInfo - edges?: Array -} +export type GQLMomentState = 'active' | 'archived' -export interface GQLCommentEdge { - cursor: string - node: GQLComment +export type GQLMonthlyDatum = { + __typename?: 'MonthlyDatum' + date: Scalars['DateTime']['output'] + value: Scalars['Float']['output'] } -/** - * This type contains content, author, descendant comments and related data of a comment. - */ -export interface GQLComment extends GQLNode { +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 + applyCampaign: GQLCampaign + /** Appreciate an article. */ + appreciateArticle: GQLArticle /** - * Unique ID of this comment. + * Change user email. + * @deprecated use 'setEmail' instead */ - id: string - + 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 + deleteMoment: GQLMoment + deleteTags?: Maybe + directImageUpload: GQLAsset + /** Edit an article. */ + editArticle: GQLArticle + emailLogin: GQLAuthResult /** - * State of this comment. + * Generate or claim a Liker ID through LikeCoin + * @deprecated No longer in use */ - state: GQLCommentState - type: GQLCommentType - + generateLikerId: GQLUser + /** Get signing message. */ + generateSigningMessage: GQLSigningMessageResult + /** Invite others to join circle */ + invite?: Maybe> + likeMoment: GQLMoment + /** 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 or update a Circle. */ + putCircle: GQLCircle /** - * Time of this comment was created. + * Add or remove Circle's articles + * @deprecated No longer in use */ - createdAt: GQLDateTime - + 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> + putIcymiTopic?: Maybe + putMoment: GQLMoment + /** Create or Update an OAuth Client, used in OSS. */ + putOAuthClient?: Maybe + putRemark?: Maybe + putRestrictedUsers: Array + putSkippedListItem?: Maybe> + /** Create or update tag. */ + putTag: GQLTag + putWritingChallenge: GQLWritingChallenge + /** 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 /** - * Content of this comment. + * Reset crypto wallet. + * @deprecated use 'removeWalletLogin' instead */ - content?: string - + 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 + /** Submit inappropriate content report */ + submitReport: GQLReport + /** Subscribe a Circle. */ + subscribeCircle: GQLSubscribeCircleResult + toggleArticleRecommend: GQLArticle + /** Block or Unblock a given user. */ + toggleBlockUser: GQLUser /** - * Author of this comment. + * Follow or unfollow a Circle. + * @deprecated No longer in use */ - author: GQLUser - + toggleFollowCircle: GQLCircle + /** Follow or unfollow tag. */ + toggleFollowTag: GQLTag + /** Follow or Unfollow current user. */ + toggleFollowUser: GQLUser + /** Pin or Unpin a comment. */ + togglePinComment: GQLComment + toggleSeedingUsers: Array> + /** Subscribe or Unsubscribe article */ + toggleSubscribeArticle: GQLArticle + toggleTagRecommend: GQLTag + toggleUsersBadge: Array> + unbindLikerId: GQLUser + unlikeMoment: GQLMoment + /** Unpin a comment. */ + unpinComment: GQLComment + /** Unsubscribe a Circle. */ + unsubscribeCircle: GQLCircle + /** Unvote a comment. */ + unvoteComment: GQLComment + updateArticleSensitive: GQLArticle + updateArticleState: GQLArticle + /** Update articles' tag. */ + updateArticlesTags: GQLTag + updateCampaignApplicationState: GQLCampaign + /** 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> /** - * This value determines this comment is pinned or not. + * Login user. + * @deprecated use 'emailLogin' instead */ - pinned: boolean - + userLogin: GQLAuthResult + /** Logout user. */ + userLogout: Scalars['Boolean']['output'] /** - * This value determines this comment is from article donator or not. + * Register user, can only be used on matters.{town,news} website. + * @deprecated use 'emailLogin' instead */ - fromDonator: boolean + userRegister: GQLAuthResult + /** Verify user email. */ + verifyEmail: GQLAuthResult + /** Upvote or downvote a comment. */ + voteComment: GQLComment + /** Login/Signup via a wallet. */ + walletLogin: GQLAuthResult +} - /** - * The counting number of upvotes. - */ - upvotes: number +export type GQLMutationAddArticlesTagsArgs = { + input: GQLAddArticlesTagsInput +} - /** - * The counting number of downvotes. - * @deprecated No longer in use in querying - */ - downvotes: number +export type GQLMutationAddBlockedSearchKeywordArgs = { + input: GQLKeywordInput +} - /** - * The value determines current user's vote. - */ - myVote?: GQLVote +export type GQLMutationAddCollectionsArticlesArgs = { + input: GQLAddCollectionsArticlesInput +} - /** - * Descendant comments of this comment. - */ - comments: GQLCommentConnection +export type GQLMutationAddCreditArgs = { + input: GQLAddCreditInput +} - /** - * Parent comment of this comment. - */ - parentComment?: GQLComment +export type GQLMutationAddSocialLoginArgs = { + input: GQLSocialLoginInput +} - /** - * A Comment that this comment replied to. - */ - replyTo?: GQLComment - remark?: string +export type GQLMutationAddWalletLoginArgs = { + input: GQLWalletLoginInput +} - /** - * Current comment belongs to which Node. - */ - node: GQLNode +export type GQLMutationApplyCampaignArgs = { + input: GQLApplyCampaignInput } -export const enum GQLCommentType { - article = 'article', - circleDiscussion = 'circleDiscussion', - circleBroadcast = 'circleBroadcast', +export type GQLMutationAppreciateArticleArgs = { + input: GQLAppreciateArticleInput } -/** - * Enums for vote types. - */ -export const enum GQLVote { - up = 'up', - down = 'down', +export type GQLMutationChangeEmailArgs = { + input: GQLChangeEmailInput } -export interface GQLCommentCommentsInput { - author?: string - sort?: GQLCommentSort - after?: string - first?: GQLfirst_Int_min_0 +export type GQLMutationClaimLogbooksArgs = { + input: GQLClaimLogbooksInput } -export interface GQLCircleConnection extends GQLConnection { - totalCount: number - pageInfo: GQLPageInfo - edges?: Array +export type GQLMutationClearReadHistoryArgs = { + input: GQLClearReadHistoryInput } -export interface GQLCircleEdge { - cursor: string - node: GQLCircle +export type GQLMutationConfirmVerificationCodeArgs = { + input: GQLConfirmVerificationCodeInput } -export interface GQLNoticeConnection extends GQLConnection { - totalCount: number - pageInfo: GQLPageInfo - edges?: Array +export type GQLMutationConnectStripeAccountArgs = { + input: GQLConnectStripeAccountInput } -export interface GQLNoticeEdge { - cursor: string - node: GQLNotice +export type GQLMutationDeleteAnnouncementsArgs = { + input: GQLDeleteAnnouncementsInput } -/** - * This interface contains common fields of a notice. - */ -export interface GQLNotice { - /** - * Unique ID of this notice. - */ - id: string +export type GQLMutationDeleteArticlesTagsArgs = { + input: GQLDeleteArticlesTagsInput +} - /** - * The value determines if the notice is unread or not. - */ - unread: boolean +export type GQLMutationDeleteBlockedSearchKeywordsArgs = { + input: GQLKeywordsInput +} - /** - * Time of this notice was created. - */ - createdAt: GQLDateTime -} - -/** Use this to resolve interface type Notice */ -export type GQLPossibleNoticeTypeNames = - | 'ArticleArticleNotice' - | 'ArticleNotice' - | 'CircleNotice' - | 'CommentCommentNotice' - | 'CommentNotice' - | 'OfficialAnnouncementNotice' - | 'TransactionNotice' - | 'UserNotice' - -export interface GQLNoticeNameMap { - Notice: GQLNotice - ArticleArticleNotice: GQLArticleArticleNotice - ArticleNotice: GQLArticleNotice - CircleNotice: GQLCircleNotice - CommentCommentNotice: GQLCommentCommentNotice - CommentNotice: GQLCommentNotice - OfficialAnnouncementNotice: GQLOfficialAnnouncementNotice - TransactionNotice: GQLTransactionNotice - UserNotice: GQLUserNotice -} - -export interface GQLLiker { - /** - * Liker ID of LikeCoin - */ - likerId?: string +export type GQLMutationDeleteCollectionArticlesArgs = { + input: GQLDeleteCollectionArticlesInput +} - /** - * Whether liker is a civic liker - */ - civicLiker: boolean +export type GQLMutationDeleteCollectionsArgs = { + input: GQLDeleteCollectionsInput +} - /** - * Total LIKE left in wallet. - */ - total: number +export type GQLMutationDeleteCommentArgs = { + input: GQLDeleteCommentInput +} - /** - * Rate of LikeCoin/USD - * @deprecated No longer in use - */ - rateUSD?: number +export type GQLMutationDeleteDraftArgs = { + input: GQLDeleteDraftInput } -export interface GQLUserInfo { - /** - * Timestamp of registration. - */ - createdAt?: GQLDateTime +export type GQLMutationDeleteMomentArgs = { + input: GQLDeleteMomentInput +} - /** - * Is user name editable. - */ - userNameEditable: boolean +export type GQLMutationDeleteTagsArgs = { + input: GQLDeleteTagsInput +} - /** - * User desciption. - */ - description?: string +export type GQLMutationDirectImageUploadArgs = { + input: GQLDirectImageUploadInput +} - /** - * the ipnsKey (`ipfs.io/ipns//...`) for feed.json / rss.xml / index - */ - ipnsKey?: string +export type GQLMutationEditArticleArgs = { + input: GQLEditArticleInput +} - /** - * User email. - */ - email?: GQLemail_String_format_email +export type GQLMutationEmailLoginArgs = { + input: GQLEmailLoginInput +} - /** - * Weather user email is verified. - */ - emailVerified: boolean +export type GQLMutationGenerateSigningMessageArgs = { + input: GQLGenerateSigningMessageInput +} - /** - * User connected social accounts. - */ - socialAccounts: Array +export type GQLMutationInviteArgs = { + input: GQLInviteCircleInput +} - /** - * User badges. - */ - badges?: Array +export type GQLMutationLikeMomentArgs = { + input: GQLLikeMomentInput +} - /** - * Timestamp of user agreement. - */ - agreeOn?: GQLDateTime +export type GQLMutationLogRecordArgs = { + input: GQLLogRecordInput +} - /** - * Cover of profile page. - */ - profileCover?: string +export type GQLMutationMergeTagsArgs = { + input: GQLMergeTagsInput +} - /** - * Type of group. - */ - group: GQLUserGroup +export type GQLMutationMigrationArgs = { + input: GQLMigrationInput +} - /** - * Login address - */ - ethAddress?: string - isWalletAuth: boolean +export type GQLMutationPayToArgs = { + input: GQLPayToInput +} - /** - * Connected wallet. - */ - cryptoWallet?: GQLCryptoWallet +export type GQLMutationPayoutArgs = { + input: GQLPayoutInput +} - /** - * saved tags for showing on profile page, API allows up to 100, front-end lock'ed at lower limit - */ - featuredTags?: Array +export type GQLMutationPinCommentArgs = { + input: GQLPinCommentInput } -export type GQLemail_String_format_email = any +export type GQLMutationPublishArticleArgs = { + input: GQLPublishArticleInput +} -export interface GQLSocialAccount { - type: GQLSocialAccountType - userName?: string - email?: string +export type GQLMutationPutAnnouncementArgs = { + input: GQLPutAnnouncementInput } -export const enum GQLSocialAccountType { - Google = 'Google', - Twitter = 'Twitter', - Facebook = 'Facebook', +export type GQLMutationPutCircleArgs = { + input: GQLPutCircleInput } -export interface GQLBadge { - type: GQLBadgeType +export type GQLMutationPutCircleArticlesArgs = { + input: GQLPutCircleArticlesInput } -export const enum GQLBadgeType { - seed = 'seed', - golden_motor = 'golden_motor', - architect = 'architect', - nomad1 = 'nomad1', - nomad2 = 'nomad2', - nomad3 = 'nomad3', - nomad4 = 'nomad4', +export type GQLMutationPutCollectionArgs = { + input: GQLPutCollectionInput } -export const enum GQLUserGroup { - a = 'a', - b = 'b', +export type GQLMutationPutCommentArgs = { + input: GQLPutCommentInput } -export interface GQLCryptoWallet { - id: string - address: string +export type GQLMutationPutDraftArgs = { + input: GQLPutDraftInput +} - /** - * does this address own any Travelogger NFTs? this value is cached at most 1day, and refreshed at next `nfts` query - */ - hasNFTs: boolean +export type GQLMutationPutFeaturedTagsArgs = { + input: GQLFeaturedTagsInput +} - /** - * NFT assets owned by this wallet address - */ - nfts?: Array +export type GQLMutationPutIcymiTopicArgs = { + input: GQLPutIcymiTopicInput } -/** - * NFT Asset - */ -export interface GQLNFTAsset { - id: string - name: string - description?: string - imageUrl: string - imagePreviewUrl?: string - - /** - * imageOriginalUrl: String! - */ - contractAddress: string - collectionName: string +export type GQLMutationPutMomentArgs = { + input: GQLPutMomentInput } -/** - * This type contains content, count and related data of an article tag. - */ -export interface GQLTag extends GQLNode { - /** - * Unique id of this tag. - */ - id: string - - /** - * 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 - - /** - * Followers of this tag. - */ - followers: GQLUserConnection - - /** - * Participants of this tag. - */ - participants: GQLUserConnection - - /** - * Tags recommended based on relations to current tag. - */ - recommended: GQLTagConnection - - /** - * This value determines if it is official. - */ - isOfficial?: boolean - - /** - * Counts of this tag. - */ - numArticles: number - numAuthors: number - oss: GQLTagOSS - remark?: string - deleted: boolean +export type GQLMutationPutOAuthClientArgs = { + input: GQLPutOAuthClientInput } -export interface GQLTagArticlesInput { - after?: string - first?: GQLfirst_Int_min_0 - oss?: boolean - selected?: boolean - sortBy?: GQLTagArticlesSortBy +export type GQLMutationPutRemarkArgs = { + input: GQLPutRemarkInput } -export const enum GQLTagArticlesSortBy { - byHottestDesc = 'byHottestDesc', - byCreatedAtDesc = 'byCreatedAtDesc', +export type GQLMutationPutRestrictedUsersArgs = { + input: GQLPutRestrictedUsersInput } -export interface GQLTagSelectedInput { - id?: string - mediaHash?: string +export type GQLMutationPutSkippedListItemArgs = { + input: GQLPutSkippedListItemInput } -export interface GQLTagEditorsInput { - excludeAdmin?: boolean - excludeOwner?: boolean +export type GQLMutationPutTagArgs = { + input: GQLPutTagInput } -export interface GQLTagConnection extends GQLConnection { - totalCount: number - pageInfo: GQLPageInfo - edges?: Array +export type GQLMutationPutWritingChallengeArgs = { + input: GQLPutWritingChallengeInput } -export interface GQLTagEdge { - cursor: string - node: GQLTag +export type GQLMutationReadArticleArgs = { + input: GQLReadArticleInput } -export interface GQLTagOSS { - boost: number - score: number - selected: boolean +export type GQLMutationRefreshIpnsFeedArgs = { + input: GQLRefreshIpnsFeedInput } -export interface GQLUserSettings { - /** - * User language setting. - */ - language: GQLUserLanguage +export type GQLMutationRemoveSocialLoginArgs = { + input: GQLRemoveSocialLoginInput +} - /** - * User currency preference. - */ - currency: GQLQuoteCurrency +export type GQLMutationRenameTagArgs = { + input: GQLRenameTagInput +} - /** - * Notification settings. - */ - notification?: GQLNotificationSetting +export type GQLMutationReorderCollectionArticlesArgs = { + input: GQLReorderCollectionArticlesInput } -export const enum GQLUserLanguage { - en = 'en', - zh_hans = 'zh_hans', - zh_hant = 'zh_hant', +export type GQLMutationResetLikerIdArgs = { + input: GQLResetLikerIdInput } -export const enum GQLQuoteCurrency { - TWD = 'TWD', - HKD = 'HKD', - USD = 'USD', +export type GQLMutationResetPasswordArgs = { + input: GQLResetPasswordInput } -export interface GQLNotificationSetting { - email: boolean - mention: boolean - userNewFollower: boolean - articleNewComment: boolean - articleNewAppreciation: boolean - articleNewSubscription: boolean - articleNewCollected: boolean - articleCommentPinned: boolean +export type GQLMutationResetWalletArgs = { + input: GQLResetWalletInput +} - /** - * for circle owners - */ - circleNewSubscriber: boolean - circleNewFollower: boolean - circleNewUnsubscriber: boolean - circleMemberNewBroadcastReply: boolean - circleMemberNewDiscussion: boolean - circleMemberNewDiscussionReply: boolean +export type GQLMutationSendVerificationCodeArgs = { + input: GQLSendVerificationCodeInput +} - /** - * for circle members & followers - */ - inCircleNewArticle: boolean - inCircleNewBroadcast: boolean - inCircleNewBroadcastReply: boolean - inCircleNewDiscussion: boolean - inCircleNewDiscussionReply: boolean +export type GQLMutationSetBoostArgs = { + input: GQLSetBoostInput } -export interface GQLRecommendation { - /** - * Activities based on user's following, sort by creation time. - */ - following: GQLFollowingActivityConnection +export type GQLMutationSetCurrencyArgs = { + input: GQLSetCurrencyInput +} - /** - * Articles recommended based on recently read article tags. - * @deprecated Merged into following - */ - readTagsArticles: GQLArticleConnection +export type GQLMutationSetEmailArgs = { + input: GQLSetEmailInput +} - /** - * Global articles sort by publish time. - */ - newest: GQLArticleConnection +export type GQLMutationSetFeatureArgs = { + input: GQLSetFeatureInput +} - /** - * Global articles sort by latest activity time. - */ - hottest: GQLArticleConnection +export type GQLMutationSetPasswordArgs = { + input: GQLSetPasswordInput +} - /** - * 'In case you missed it' recommendation. - */ - icymi: GQLArticleConnection +export type GQLMutationSetUserNameArgs = { + input: GQLSetUserNameInput +} - /** - * 'In case you missed it' topic. - */ - icymiTopic?: GQLIcymiTopic +export type GQLMutationSingleFileUploadArgs = { + input: GQLSingleFileUploadInput +} - /** - * Global tag list, sort by activities in recent 14 days. - */ - tags: GQLTagConnection +export type GQLMutationSocialLoginArgs = { + input: GQLSocialLoginInput +} - /** - * Hottest tag list - */ - hottestTags: GQLTagConnection +export type GQLMutationSubmitReportArgs = { + input: GQLSubmitReportInput +} - /** - * Selected tag list - */ - selectedTags: GQLTagConnection +export type GQLMutationSubscribeCircleArgs = { + input: GQLSubscribeCircleInput +} - /** - * Global user list, sort by activities in recent 6 month. - */ - authors: GQLUserConnection +export type GQLMutationToggleArticleRecommendArgs = { + input: GQLToggleRecommendInput +} - /** - * Global circles sort by created time. - */ - newestCircles: GQLCircleConnection +export type GQLMutationToggleBlockUserArgs = { + input: GQLToggleItemInput +} - /** - * Global circles sort by latest activity time. - */ - hottestCircles: GQLCircleConnection +export type GQLMutationToggleFollowCircleArgs = { + input: GQLToggleItemInput } -export interface GQLFollowingActivityConnection extends GQLConnection { - totalCount: number - pageInfo: GQLPageInfo - edges?: Array +export type GQLMutationToggleFollowTagArgs = { + input: GQLToggleItemInput } -export interface GQLFollowingActivityEdge { - cursor: string - node: GQLFollowingActivity +export type GQLMutationToggleFollowUserArgs = { + input: GQLToggleItemInput } -export type GQLFollowingActivity = - | GQLUserPublishArticleActivity - | GQLUserAddArticleTagActivity - | GQLUserBroadcastCircleActivity - | GQLUserCreateCircleActivity - | GQLUserRecommendationActivity - | GQLArticleRecommendationActivity - | GQLCircleRecommendationActivity +export type GQLMutationTogglePinCommentArgs = { + input: GQLToggleItemInput +} -/** 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 GQLMutationToggleSeedingUsersArgs = { + input: GQLToggleSeedingUsersInput +} - /** - * Article published by actor - */ - node: GQLArticle +export type GQLMutationToggleSubscribeArticleArgs = { + input: GQLToggleItemInput } -export interface GQLUserAddArticleTagActivity { - actor: GQLUser - createdAt: GQLDateTime +export type GQLMutationToggleTagRecommendArgs = { + input: GQLToggleRecommendInput +} - /** - * Article added to tag - */ - node: GQLArticle +export type GQLMutationToggleUsersBadgeArgs = { + input: GQLToggleUsersBadgeInput +} - /** - * Tag added by article - */ - target: GQLTag +export type GQLMutationUnbindLikerIdArgs = { + input: GQLUnbindLikerIdInput } -export interface GQLUserBroadcastCircleActivity { - actor: GQLUser - createdAt: GQLDateTime +export type GQLMutationUnlikeMomentArgs = { + input: GQLUnlikeMomentInput +} - /** - * Comment broadcast by actor - */ - node: GQLComment +export type GQLMutationUnpinCommentArgs = { + input: GQLUnpinCommentInput +} - /** - * Circle that comment belongs to - */ - target: GQLCircle +export type GQLMutationUnsubscribeCircleArgs = { + input: GQLUnsubscribeCircleInput } -export interface GQLUserCreateCircleActivity { - actor: GQLUser - createdAt: GQLDateTime +export type GQLMutationUnvoteCommentArgs = { + input: GQLUnvoteCommentInput +} - /** - * Circle created by actor - */ - node: GQLCircle +export type GQLMutationUpdateArticleSensitiveArgs = { + input: GQLUpdateArticleSensitiveInput } -export interface GQLUserRecommendationActivity { - /** - * The source type of recommendation - */ - source?: GQLUserRecommendationActivitySource +export type GQLMutationUpdateArticleStateArgs = { + input: GQLUpdateArticleStateInput +} - /** - * Recommended users - */ - nodes?: Array +export type GQLMutationUpdateArticlesTagsArgs = { + input: GQLUpdateArticlesTagsInput } -export const enum GQLUserRecommendationActivitySource { - UserFollowing = 'UserFollowing', +export type GQLMutationUpdateCampaignApplicationStateArgs = { + input: GQLUpdateCampaignApplicationStateInput } -export interface GQLArticleRecommendationActivity { - /** - * The source type of recommendation - */ - source?: GQLArticleRecommendationActivitySource +export type GQLMutationUpdateCommentsStateArgs = { + input: GQLUpdateCommentsStateInput +} - /** - * Recommended articles - */ - nodes?: Array +export type GQLMutationUpdateNotificationSettingArgs = { + input: GQLUpdateNotificationSettingInput } -export const enum GQLArticleRecommendationActivitySource { - UserDonation = 'UserDonation', - ReadArticlesTags = 'ReadArticlesTags', +export type GQLMutationUpdateTagSettingArgs = { + input: GQLUpdateTagSettingInput } -export interface GQLCircleRecommendationActivity { - /** - * The source type of recommendation - */ - source?: GQLCircleRecommendationActivitySource +export type GQLMutationUpdateUserExtraArgs = { + input: GQLUpdateUserExtraInput +} - /** - * Recommended circles - */ - nodes?: Array +export type GQLMutationUpdateUserInfoArgs = { + input: GQLUpdateUserInfoInput } -export const enum GQLCircleRecommendationActivitySource { - UserSubscription = 'UserSubscription', +export type GQLMutationUpdateUserRoleArgs = { + input: GQLUpdateUserRoleInput } -export interface GQLIcymiTopic extends GQLNode { - id: string - title: string - articles: Array - pinAmount: number - note?: string - state: GQLIcymiTopicState - publishedAt?: GQLDateTime - archivedAt?: GQLDateTime +export type GQLMutationUpdateUserStateArgs = { + input: GQLUpdateUserStateInput } -export const enum GQLIcymiTopicState { - published = 'published', - editing = 'editing', - archived = 'archived', +export type GQLMutationUserLoginArgs = { + input: GQLUserLoginInput } -export interface GQLRecommendInput { - after?: string - first?: GQLfirst_Int_min_0 - oss?: boolean - filter?: GQLFilterInput - type?: GQLAuthorsType +export type GQLMutationUserRegisterArgs = { + input: GQLUserRegisterInput } -export const enum GQLAuthorsType { - active = 'active', - appreciated = 'appreciated', - default = 'default', - trendy = 'trendy', +export type GQLMutationVerifyEmailArgs = { + input: GQLVerifyEmailInput } -export interface GQLUserArticlesInput { - after?: string - first?: GQLfirst_Int_min_0 - sort?: GQLUserArticlesSort - filter?: GQLUserArticlesFilter +export type GQLMutationVoteCommentArgs = { + input: GQLVoteCommentInput } -export const enum GQLUserArticlesSort { - newest = 'newest', - mostReaders = 'mostReaders', - mostAppreciations = 'mostAppreciations', - mostComments = 'mostComments', - mostDonations = 'mostDonations', +export type GQLMutationWalletLoginArgs = { + input: GQLWalletLoginInput } -export interface GQLUserArticlesFilter { - state?: GQLArticleState +/** 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 GQLCollectionConnection extends GQLConnection { - totalCount: number - pageInfo: GQLPageInfo - edges?: Array +export type GQLNode = { + id: Scalars['ID']['output'] } -export interface GQLCollectionEdge { - cursor: string - node: GQLCollection +export type GQLNodeInput = { + id: Scalars['ID']['input'] } -export interface GQLCollection extends GQLNode, GQLPinnableWork { - id: string - title: string - cover?: string - description?: string - author: GQLUser - articles: GQLArticleConnection - pinned: boolean - updatedAt: GQLDateTime +export type GQLNodesInput = { + ids: Array +} - /** - * Check if the collection contains the article - */ - contains: boolean +/** 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 GQLCollectionArticlesInput { - after?: string - first?: number - reversed?: boolean +export type GQLNoticeConnection = GQLConnection & { + __typename?: 'NoticeConnection' + edges?: Maybe> + pageInfo: GQLPageInfo + totalCount: Scalars['Int']['output'] } -export interface GQLNodeInput { - id: string +export type GQLNoticeEdge = { + __typename?: 'NoticeEdge' + cursor: Scalars['String']['output'] + node: GQLNotice } -export interface GQLDraftConnection extends GQLConnection { - totalCount: number +export type GQLNotificationSetting = { + __typename?: 'NotificationSetting' + 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'] + newComment: Scalars['Boolean']['output'] + newLike: Scalars['Boolean']['output'] + userNewFollower: Scalars['Boolean']['output'] +} + +export type GQLNotificationSettingType = + | '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' + | 'newComment' + | 'newLike' + | '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 - edges?: Array + totalCount: Scalars['Int']['output'] } -export interface GQLDraftEdge { - cursor: string - node: GQLDraft +export type GQLOAuthClientEdge = { + __typename?: 'OAuthClientEdge' + cursor: Scalars['String']['output'] + node: GQLOAuthClient } -/** - * 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 GQLOAuthClientInput = { + id: Scalars['ID']['input'] +} - /** - * Media hash, composed of cid encoding, of this draft. - */ - mediaHash?: string - - /** - * Draft title. - */ - title?: string - - /** - * Slugified draft title. - */ - slug: string +export type GQLOss = { + __typename?: 'OSS' + articles: GQLArticleConnection + badgedUsers: GQLUserConnection + comments: GQLCommentConnection + icymiTopics: GQLIcymiTopicConnection + oauthClients: GQLOAuthClientConnection + reports: GQLReportConnection + restrictedUsers: GQLUserConnection + seedingUsers: GQLUserConnection + skippedListItems: GQLSkippedListItemsConnection + tags: GQLTagConnection + users: GQLUserConnection +} - /** - * Summary of this draft. - */ - summary?: string +export type GQLOssArticlesArgs = { + input: GQLConnectionArgs +} - /** - * This value determines if the summary is customized or not. - */ - summaryCustomized: boolean +export type GQLOssBadgedUsersArgs = { + input: GQLBadgedUsersInput +} - /** - * Content (HTML) of this draft. - */ - content?: string +export type GQLOssCommentsArgs = { + input: GQLConnectionArgs +} - /** - * Time of this draft was created. - */ - createdAt: GQLDateTime +export type GQLOssIcymiTopicsArgs = { + input: GQLConnectionArgs +} - /** - * Last time of this draft was upadted. - */ - updatedAt: GQLDateTime +export type GQLOssOauthClientsArgs = { + input: GQLConnectionArgs +} - /** - * The counting number of words in this draft. - */ - wordCount: number +export type GQLOssReportsArgs = { + input: GQLConnectionArgs +} - /** - * Tags are attached to this draft. - */ - tags?: Array +export type GQLOssRestrictedUsersArgs = { + input: GQLConnectionArgs +} - /** - * Draft's cover link. - */ - cover?: string +export type GQLOssSeedingUsersArgs = { + input: GQLConnectionArgs +} - /** - * State of draft during publihsing. - */ - publishState: GQLPublishState +export type GQLOssSkippedListItemsArgs = { + input: GQLSkippedListItemsInput +} - /** - * List of assets are belonged to this draft. - */ - assets: Array +export type GQLOssTagsArgs = { + input: GQLTagsInput +} - /** - * Published article - */ - article?: GQLArticle +export type GQLOssUsersArgs = { + input: GQLConnectionArgs +} - /** - * Collection list of this draft. - */ - collection: GQLArticleConnection +export type GQLOauth1CredentialInput = { + oauthToken: Scalars['String']['input'] + oauthVerifier: Scalars['String']['input'] +} - /** - * Access related fields on circle - */ - access: GQLDraftAccess +/** This type contains system-wise info and settings. */ +export type GQLOfficial = { + __typename?: 'Official' + /** Announcements */ + announcements?: Maybe> + /** Feature flag */ + features: Array +} - /** - * whether content is marked as sensitive by author - */ - sensitiveByAuthor: boolean +/** This type contains system-wise info and settings. */ +export type GQLOfficialAnnouncementsArgs = { + input: GQLAnnouncementsInput +} - /** - * License Type - */ - license: GQLArticleLicenseType +/** 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 +} - /** - * creator message asking for support - */ - requestForDonation?: string +export type GQLPayToResult = { + __typename?: 'PayToResult' + /** Only available when paying with LIKE. */ + redirectUrl?: Maybe + transaction: GQLTransaction +} - /** - * creator message after support - */ - replyToDonator?: string +export type GQLPayoutInput = { + amount: Scalars['Float']['input'] + password: Scalars['String']['input'] +} - /** - * whether publish to ISCN - */ - iscnPublish?: boolean +export type GQLPerson = { + __typename?: 'Person' + email: Scalars['String']['output'] +} - /** - * whether readers can comment - */ - canComment: boolean +export type GQLPinCommentInput = { + id: Scalars['ID']['input'] } -/** - * Enums for publishing state. - */ -export const enum GQLPublishState { - unpublished = 'unpublished', - pending = 'pending', - error = 'error', - published = 'published', +export type GQLPinnableWork = { + cover?: Maybe + id: Scalars['ID']['output'] + pinned: Scalars['Boolean']['output'] + title: Scalars['String']['output'] } -/** - * This type contains type, link and related data of an asset. - */ -export interface GQLAsset { +export type GQLPrice = { + __typename?: 'Price' + /** Amount of Price. */ + amount: Scalars['Float']['output'] + /** Current Price belongs to whcih Circle. */ + circle: GQLCircle /** - * Unique ID of this Asset. + * 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 /** - * Types of this asset. + * Updated time. + * @deprecated No longer in use */ - type: GQLAssetType + updatedAt: Scalars['DateTime']['output'] +} - /** - * Link of this asset. - */ - path: string - draft?: boolean - uploadURL?: string +export type GQLPriceState = 'active' | 'archived' - /** - * Time of this asset was created. - */ - createdAt: GQLDateTime +export type GQLPublishArticleInput = { + id: Scalars['ID']['input'] + /** whether publish to ISCN */ + iscnPublish?: 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', - collectionCover = 'collectionCover', - announcementCover = 'announcementCover', -} - -export interface GQLDraftAccess { - type: GQLArticleAccessType - circle?: GQLCircle -} +/** Enums for publishing state. */ +export type GQLPublishState = 'error' | 'pending' | 'published' | 'unpublished' -/** - * Enums for types of article access - */ -export const enum GQLArticleAccessType { - public = 'public', - paywall = 'paywall', +export type GQLPutAnnouncementInput = { + content?: InputMaybe + cover?: InputMaybe + expiredAt?: InputMaybe + id?: InputMaybe + link?: InputMaybe + order?: InputMaybe + title?: InputMaybe + translations?: InputMaybe> + type?: InputMaybe + visible?: InputMaybe } -/** - * Enums for types of article license - */ -export const enum GQLArticleLicenseType { - cc_0 = 'cc_0', - cc_by_nc_nd_2 = 'cc_by_nc_nd_2', - cc_by_nc_nd_4 = 'cc_by_nc_nd_4', - arr = 'arr', +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 } -export interface GQLUserActivity { - /** - * User reading history. - */ - history: GQLReadHistoryConnection - - /** - * User search history. - */ - recentSearches: GQLRecentSearchConnection - - /** - * Appreciations current user gave. - */ - appreciationsSent: GQLAppreciationConnection - - /** - * Total number of appreciation current user gave. - */ - appreciationsSentTotal: number +export type GQLPutCircleArticlesType = 'add' | 'remove' - /** - * Appreciations current user received. - */ - appreciationsReceived: GQLAppreciationConnection +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 +} - /** - * Total number of appreciation current user received. - */ - appreciationsReceivedTotal: number +export type GQLPutCollectionInput = { + cover?: InputMaybe + description?: InputMaybe + id?: InputMaybe + pinned?: InputMaybe + title?: InputMaybe } -export interface GQLReadHistoryConnection extends GQLConnection { - totalCount: number - pageInfo: GQLPageInfo - edges?: Array +export type GQLPutCommentInput = { + comment: GQLCommentInput + id?: InputMaybe +} + +export type GQLPutDraftInput = { + accessType?: InputMaybe + /** which campaigns to attach */ + campaigns?: 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 GQLPutIcymiTopicInput = { + articles?: InputMaybe> + id?: InputMaybe + note?: InputMaybe + pinAmount?: InputMaybe + state?: InputMaybe + title?: InputMaybe +} + +export type GQLPutMomentInput = { + assets: Array + content: Scalars['String']['input'] +} + +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 } -export interface GQLReadHistoryEdge { - cursor: string - node: GQLReadHistory +export type GQLPutRestrictedUsersInput = { + ids: Array + restrictions: Array } -export interface GQLReadHistory { - article: GQLArticle - readAt: GQLDateTime +export type GQLPutSkippedListItemInput = { + archived?: InputMaybe + id?: InputMaybe + type?: InputMaybe + value?: InputMaybe +} + +export type GQLPutTagInput = { + content?: InputMaybe + cover?: InputMaybe + description?: InputMaybe + id?: InputMaybe +} + +export type GQLPutWritingChallengeInput = { + applicationPeriod?: InputMaybe + cover?: InputMaybe + description?: InputMaybe> + id?: InputMaybe + link?: InputMaybe + name?: InputMaybe> + stages?: InputMaybe> + state?: InputMaybe + writingPeriod?: InputMaybe +} + +export type GQLQuery = { + __typename?: 'Query' + article?: Maybe + campaign?: Maybe + campaigns: GQLCampaignConnection + circle?: Maybe + exchangeRates?: Maybe> + frequentSearch?: Maybe> + moment?: Maybe + node?: Maybe + nodes?: Maybe> + oauthClient?: Maybe + oauthRequestToken?: Maybe + official: GQLOfficial + oss: GQLOss + search: GQLSearchResultConnection + user?: Maybe + viewer?: Maybe } -export interface GQLRecentSearchConnection extends GQLConnection { - totalCount: number - pageInfo: GQLPageInfo - edges?: Array +export type GQLQueryArticleArgs = { + input: GQLArticleInput } -export interface GQLRecentSearchEdge { - cursor: string - node: string +export type GQLQueryCampaignArgs = { + input: GQLCampaignInput } -export interface GQLAppreciationConnection extends GQLConnection { - totalCount: number - pageInfo: GQLPageInfo - edges?: Array +export type GQLQueryCampaignsArgs = { + input: GQLCampaignsInput } -export interface GQLAppreciationEdge { - cursor: string - node: GQLAppreciation +export type GQLQueryCircleArgs = { + input: GQLCircleInput } -export interface GQLAppreciation { - amount: number - purpose: GQLAppreciationPurpose - content: string +export type GQLQueryExchangeRatesArgs = { + input?: InputMaybe +} - /** - * Timestamp of appreciation. - */ - createdAt: GQLDateTime +export type GQLQueryFrequentSearchArgs = { + input: GQLFrequentSearchInput +} - /** - * Recipient of appreciation. - */ - recipient: GQLUser +export type GQLQueryMomentArgs = { + input: GQLMomentInput +} - /** - * Sender of appreciation. - */ - sender?: GQLUser +export type GQLQueryNodeArgs = { + input: GQLNodeInput +} - /** - * Object that appreciation is meant for. - */ - target?: GQLArticle +export type GQLQueryNodesArgs = { + input: GQLNodesInput } -export const enum GQLAppreciationPurpose { - appreciate = 'appreciate', - appreciateComment = 'appreciateComment', - appreciateSubsidy = 'appreciateSubsidy', - invitationAccepted = 'invitationAccepted', - joinByInvitation = 'joinByInvitation', - joinByTask = 'joinByTask', - firstPost = 'firstPost', - systemSubsidy = 'systemSubsidy', +export type GQLQueryOauthClientArgs = { + input: GQLOAuthClientInput } -export interface GQLFollowing { - circles: GQLCircleConnection - tags: GQLTagConnection - users: GQLUserConnection +export type GQLQuerySearchArgs = { + input: GQLSearchInput } -export interface GQLUserAnalytics { - /** - * Top donators of current user. - */ - topDonators: GQLTopDonatorConnection +export type GQLQueryUserArgs = { + input: GQLUserInput } -export interface GQLTopDonatorInput { - after?: string - first?: number - filter?: GQLTopDonatorFilter +export type GQLQuoteCurrency = 'HKD' | 'TWD' | 'USD' + +export type GQLReadArticleInput = { + id: Scalars['ID']['input'] } -export interface GQLTopDonatorFilter { - inRangeStart?: GQLDateTime - inRangeEnd?: GQLDateTime +export type GQLReadHistory = { + __typename?: 'ReadHistory' + article: GQLArticle + readAt: Scalars['DateTime']['output'] } -export interface GQLTopDonatorConnection extends GQLConnection { - totalCount: number +export type GQLReadHistoryConnection = GQLConnection & { + __typename?: 'ReadHistoryConnection' + edges?: Maybe> pageInfo: GQLPageInfo - edges?: Array + totalCount: Scalars['Int']['output'] } -export interface GQLTopDonatorEdge { - cursor: string - node: GQLUser - donationCount: number +export type GQLReadHistoryEdge = { + __typename?: 'ReadHistoryEdge' + cursor: Scalars['String']['output'] + node: GQLReadHistory } -export interface GQLUserStatus { - /** - * User state. - */ - state: GQLUserState +export type GQLRecentSearchConnection = GQLConnection & { + __typename?: 'RecentSearchConnection' + edges?: Maybe> + pageInfo: GQLPageInfo + totalCount: Scalars['Int']['output'] +} - /** - * User role and access level. - */ - role: GQLUserRole +export type GQLRecentSearchEdge = { + __typename?: 'RecentSearchEdge' + cursor: Scalars['String']['output'] + node: Scalars['String']['output'] +} - /** - * Number of articles published by user - */ - articleCount: number +export type GQLRecommendInput = { + after?: InputMaybe + filter?: InputMaybe + first?: InputMaybe + oss?: InputMaybe + type?: InputMaybe +} - /** - * Number of comments posted by user. - */ - commentCount: number +/** Enums for types of recommend articles. */ +export type GQLRecommendTypes = 'hottest' | 'icymi' | 'newest' | 'search' +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 + /** 'In case you missed it' topic. */ + icymiTopic?: Maybe + /** Global articles sort by publish time. */ + newest: GQLArticleConnection + /** Global circles sort by created time. */ + newestCircles: GQLCircleConnection /** - * Number of unread notices. + * Articles recommended based on recently read article tags. + * @deprecated Merged into following */ - unreadNoticeCount: number + readTagsArticles: GQLArticleConnection + /** Selected tag list */ + selectedTags: GQLTagConnection + /** Global tag list, sort by activities in recent 14 days. */ + tags: GQLTagConnection +} - /** - * Whether there are unread activities from following. - */ - unreadFollowing: boolean +export type GQLRecommendationAuthorsArgs = { + input: GQLRecommendInput +} - /** - * Number of total written words. - */ - totalWordCount: number +export type GQLRecommendationFollowingArgs = { + input: GQLRecommendationFollowingInput +} - /** - * Number of referred user registration count (in Digital Nomad Campaign). - */ - totalReferredCount: number +export type GQLRecommendationHottestArgs = { + input: GQLConnectionArgs +} - /** - * Weather login password is set for email login. - */ - hasEmailLoginPassword: boolean +export type GQLRecommendationHottestCirclesArgs = { + input: GQLConnectionArgs +} - /** - * Number of chances for the user to change email in a nature day. Reset in UTC+8 0:00 - */ - changeEmailTimesLeft: number +export type GQLRecommendationHottestTagsArgs = { + input: GQLRecommendInput +} - /** - * Whether user already set payment password. - */ - hasPaymentPassword: boolean +export type GQLRecommendationIcymiArgs = { + input: GQLConnectionArgs +} - /** - * Number of articles donated by user - */ - donatedArticleCount: number +export type GQLRecommendationNewestArgs = { + input: GQLConnectionArgs +} - /** - * Number of times of donations received by user - */ - receivedDonationCount: number +export type GQLRecommendationNewestCirclesArgs = { + input: GQLConnectionArgs } -export const enum GQLUserState { - active = 'active', - banned = 'banned', - archived = 'archived', - frozen = 'frozen', +export type GQLRecommendationReadTagsArticlesArgs = { + input: GQLConnectionArgs } -export const enum GQLUserRole { - user = 'user', - admin = 'admin', +export type GQLRecommendationSelectedTagsArgs = { + input: GQLRecommendInput } -export interface GQLUserOSS { - boost: number - score: number - restrictions: Array +export type GQLRecommendationTagsArgs = { + input: GQLRecommendInput } -export interface GQLUserRestriction { - type: GQLUserRestrictionType - createdAt: GQLDateTime +export type GQLRecommendationFollowingFilterInput = { + type: GQLRecommendationFollowingFilterType } -export const enum GQLUserRestrictionType { - articleHottest = 'articleHottest', - articleNewest = 'articleNewest', +export type GQLRecommendationFollowingFilterType = 'article' + +export type GQLRecommendationFollowingInput = { + after?: InputMaybe + filter?: InputMaybe + first?: InputMaybe } -export interface GQLWallet { - balance: GQLBalance - transactions: GQLTransactionConnection +export type GQLRefreshIpnsFeedInput = { + /** refresh how many recent articles, default to 50 */ + numArticles?: InputMaybe + userName: Scalars['String']['input'] +} - /** - * Account of Stripe Connect to manage payout - */ - stripeAccount?: GQLStripeAccount +export type GQLRelatedDonationArticlesInput = { + after?: InputMaybe + first?: InputMaybe + oss?: InputMaybe + /** index of article list, min: 0, max: 49 */ + random?: InputMaybe +} - /** - * URL of Stripe Dashboard to manage subscription invoice and payment method - */ - customerPortal?: string +export type GQLRemarkTypes = + | 'Article' + | 'Comment' + | 'Feedback' + | 'Report' + | 'Tag' + | 'User' - /** - * The last four digits of the card. - */ - cardLast4?: string +export type GQLRemoveSocialLoginInput = { + type: GQLSocialAccountType } -export interface GQLBalance { - HKD: number +export type GQLRenameTagInput = { + content: Scalars['String']['input'] + id: Scalars['ID']['input'] } -export interface GQLTransactionsArgs { - after?: string - first?: GQLfirst_Int_min_0 +export type GQLReorderCollectionArticlesInput = { + collection: Scalars['ID']['input'] + moves: Array +} - /** - * deprecated, use TransactionsFilter.id instead. - */ - id?: string +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'] +} - /** - * deprecated, use TransactionsFilter.states instead. - */ - states?: Array - filter?: GQLTransactionsFilter +export type GQLReport = GQLNode & { + __typename?: 'Report' + createdAt: Scalars['DateTime']['output'] + id: Scalars['ID']['output'] + reason: GQLReportReason + reporter: GQLUser + target: GQLNode } -export const enum GQLTransactionState { - pending = 'pending', - succeeded = 'succeeded', - failed = 'failed', - canceled = 'canceled', +export type GQLReportConnection = GQLConnection & { + __typename?: 'ReportConnection' + edges?: Maybe> + pageInfo: GQLPageInfo + totalCount: Scalars['Int']['output'] } -export interface GQLTransactionsFilter { - id?: string - states?: Array - currency?: GQLTransactionCurrency - purpose?: GQLTransactionPurpose +export type GQLReportEdge = { + __typename?: 'ReportEdge' + cursor: Scalars['String']['output'] + node: GQLReport } -export const enum GQLTransactionPurpose { - donation = 'donation', - addCredit = 'addCredit', - refund = 'refund', - payout = 'payout', - subscriptionSplit = 'subscriptionSplit', - dispute = 'dispute', - payoutReversal = 'payoutReversal', +export type GQLReportReason = + | 'discrimination_insult_hatred' + | 'illegal_advertising' + | 'other' + | 'pornography_involving_minors' + | 'tort' + +export type GQLResetLikerIdInput = { + id: Scalars['ID']['input'] } -export interface GQLTransactionConnection extends GQLConnection { - totalCount: number - pageInfo: GQLPageInfo - edges?: Array +export type GQLResetPasswordInput = { + codeId: Scalars['ID']['input'] + password: Scalars['String']['input'] + type?: InputMaybe } -export interface GQLTransactionEdge { - cursor: string - node: GQLTransaction +export type GQLResetPasswordType = 'account' | 'payment' + +export type GQLResetWalletInput = { + id: Scalars['ID']['input'] } -export interface GQLTransaction { - id: string - state: GQLTransactionState - purpose: GQLTransactionPurpose - amount: number - fee: number - currency: GQLTransactionCurrency +export type GQLResponse = GQLArticle | GQLComment - /** - * Timestamp of transaction. - */ - createdAt: GQLDateTime +export type GQLResponseConnection = GQLConnection & { + __typename?: 'ResponseConnection' + edges?: Maybe> + pageInfo: GQLPageInfo + totalCount: Scalars['Int']['output'] +} - /** - * Recipient of transaction. - */ - recipient?: GQLUser +export type GQLResponseEdge = { + __typename?: 'ResponseEdge' + cursor: Scalars['String']['output'] + node: GQLResponse +} - /** - * Sender of transaction. - */ - sender?: GQLUser +/** 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 +} - /** - * Related target article or transaction. - */ - target?: GQLTransactionTarget +export type GQLSearchResultConnection = GQLConnection & { + __typename?: 'SearchResultConnection' + edges?: Maybe> + pageInfo: GQLPageInfo + totalCount: Scalars['Int']['output'] +} - /** - * Message for end user, including reason of failure. - */ - message?: string +export type GQLSearchResultEdge = { + __typename?: 'SearchResultEdge' + cursor: Scalars['String']['output'] + node: GQLNode +} + +export type GQLSearchTypes = 'Article' | 'Tag' | 'User' +export type GQLSendVerificationCodeInput = { + email: Scalars['String']['input'] + /** email content language */ + language?: InputMaybe /** - * blockchain transaction info of ERC20/native token payment transaction + * Redirect URL embedded in the verification email, + * use code instead if not provided. */ - blockchainTx?: GQLBlockchainTransaction + redirectUrl?: InputMaybe + token?: InputMaybe + type: GQLVerificationCodeType } -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 GQLSetBoostInput = { + boost: Scalars['Float']['input'] + id: Scalars['ID']['input'] + type: GQLBoostTypes } -export interface GQLBlockchainTransaction { - chain: GQLChain - txHash: string +export type GQLSetCurrencyInput = { + currency?: InputMaybe } -export const enum GQLChain { - Polygon = 'Polygon', - Optimism = 'Optimism', +export type GQLSetEmailInput = { + email: Scalars['String']['input'] } -export interface GQLStripeAccount { - id: string - loginUrl: string +export type GQLSetFeatureInput = { + flag: GQLFeatureFlag + name: GQLFeatureName } -export interface GQLArticleContents { - /** - * Markdown content of this article. - */ - markdown: string +export type GQLSetPasswordInput = { + password: Scalars['String']['input'] +} - /** - * HTML content of this article. - */ - html: string +export type GQLSetUserNameInput = { + userName: Scalars['String']['input'] } -export interface GQLRelatedDonationArticlesInput { - after?: string - first?: GQLfirst_Int_min_0 - oss?: boolean +export type GQLSigningMessagePurpose = + | 'airdrop' + | 'claimLogbook' + | 'connect' + | 'login' + | 'signup' - /** - * index of article list, min: 0, max: 49 - */ - random?: GQLrandom_Int_min_0_max_49 +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 GQLTranslationArgs { - language: GQLUserLanguage +export type GQLSingleFileUploadInput = { + draft?: InputMaybe + entityId?: InputMaybe + entityType: GQLEntityType + file?: InputMaybe + type: GQLAssetType + url?: InputMaybe } -export interface GQLArticleTranslation { - title?: string - content?: string - summary?: string - language?: string +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 GQLTransactionsReceivedByArgs { - after?: string - first?: GQLfirst_Int_min_0 - purpose: GQLTransactionPurpose - senderId?: string +export type GQLSkippedListItemEdge = { + __typename?: 'SkippedListItemEdge' + cursor: Scalars['String']['output'] + node?: Maybe } -export interface GQLArticleDonationConnection { - totalCount: number +export type GQLSkippedListItemType = 'agent_hash' | 'domain' | 'email' + +export type GQLSkippedListItemsConnection = GQLConnection & { + __typename?: 'SkippedListItemsConnection' + edges?: Maybe> pageInfo: GQLPageInfo - edges?: Array + totalCount: Scalars['Int']['output'] } -export interface GQLArticleDonationEdge { - cursor: string - node: GQLArticleDonation +export type GQLSkippedListItemsInput = { + after?: InputMaybe + first?: InputMaybe + type?: InputMaybe } -export interface GQLArticleDonation { - id: string - sender?: GQLUser +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 interface GQLArticleAccess { - type: GQLArticleAccessType - secret?: string - circle?: GQLCircle +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 interface GQLArticleVersionsInput { - after?: string - first?: GQLfirst_Int_min_0 +export type GQLSubscribeCircleInput = { + /** Unique ID. */ + id: Scalars['ID']['input'] + /** Wallet password. */ + password?: InputMaybe } -export interface GQLArticleVersionsConnection extends GQLConnection { - totalCount: number - pageInfo: GQLPageInfo - edges: Array +export type GQLSubscribeCircleResult = { + __typename?: 'SubscribeCircleResult' + circle: GQLCircle + /** client secret for SetupIntent. */ + client_secret?: Maybe } -export interface GQLArticleVersionEdge { - node: GQLArticleVersion - cursor: string +/** 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 + /** 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'] } -export interface GQLArticleVersion extends GQLNode { - id: string - dataHash?: string - mediaHash?: string - title: string - summary: string - contents: GQLArticleContents - translation?: GQLArticleTranslation - createdAt: GQLDateTime - description?: string +/** This type contains content, count and related data of an article tag. */ +export type GQLTagArticlesArgs = { + input: GQLTagArticlesInput } -export interface GQLArticleOSS { - boost: number - score: number - inRecommendIcymi: boolean - inRecommendHottest: boolean - inRecommendNewest: boolean - inSearch: boolean +/** This type contains content, count and related data of an article tag. */ +export type GQLTagEditorsArgs = { + input?: InputMaybe } -export interface GQLFeaturedCommentsInput { - sort?: GQLCommentSort - after?: string - first?: GQLfirst_Int_min_0 +/** This type contains content, count and related data of an article tag. */ +export type GQLTagFollowersArgs = { + input: GQLConnectionArgs } -export interface GQLResponsesInput { - sort?: GQLResponseSort - after?: string - before?: string - includeAfter?: boolean - includeBefore?: boolean - first?: GQLfirst_Int_min_0 - articleOnly?: boolean +/** This type contains content, count and related data of an article tag. */ +export type GQLTagParticipantsArgs = { + input: GQLConnectionArgs } -/** - * Enums for sorting responses. - */ -export const enum GQLResponseSort { - oldest = 'oldest', - newest = 'newest', +/** This type contains content, count and related data of an article tag. */ +export type GQLTagRecommendedArgs = { + input: GQLConnectionArgs } -export interface GQLResponseConnection extends GQLConnection { - totalCount: number - pageInfo: GQLPageInfo - edges?: Array +/** This type contains content, count and related data of an article tag. */ +export type GQLTagSelectedArgs = { + input: GQLTagSelectedInput } -export interface GQLResponseEdge { - cursor: string - node: GQLResponse +export type GQLTagArticlesInput = { + after?: InputMaybe + first?: InputMaybe + oss?: InputMaybe + selected?: InputMaybe + sortBy?: InputMaybe } -export type GQLResponse = GQLArticle | GQLComment - -/** Use this to resolve union type Response */ -export type GQLPossibleResponseTypeNames = 'Article' | 'Comment' +export type GQLTagArticlesSortBy = 'byCreatedAtDesc' | 'byHottestDesc' -export interface GQLResponseNameMap { - Response: GQLResponse - Article: GQLArticle - Comment: GQLComment +export type GQLTagConnection = GQLConnection & { + __typename?: 'TagConnection' + edges?: Maybe> + pageInfo: GQLPageInfo + totalCount: Scalars['Int']['output'] } -export interface GQLCircleInput { - /** - * Slugified name of a Circle. - */ - name: string +export type GQLTagEdge = { + __typename?: 'TagEdge' + cursor: Scalars['String']['output'] + node: GQLTag } -export interface GQLNodesInput { - ids: Array +export type GQLTagEditorsInput = { + excludeAdmin?: InputMaybe + excludeOwner?: InputMaybe } -export interface GQLFrequentSearchInput { - key?: string - first?: GQLfirst_Int_min_0 +export type GQLTagOss = { + __typename?: 'TagOSS' + boost: Scalars['Float']['output'] + score: Scalars['Float']['output'] + selected: Scalars['Boolean']['output'] } -export interface GQLSearchInput { - /** - * search keyword - */ - key: string +export type GQLTagSelectedInput = { + id?: InputMaybe + mediaHash?: InputMaybe +} - /** - * types of search target - */ - type: GQLSearchTypes - after?: string - first?: GQLfirst_Int_min_0 +export type GQLTagsInput = { + after?: InputMaybe + first?: InputMaybe + sort?: InputMaybe +} - /** - * extra query filter for searching - */ - filter?: GQLSearchFilter +/** Enums for sorting tags. */ +export type GQLTagsSort = 'hottest' | 'newest' | 'oldest' - /** - * specific condition for rule data out - */ - exclude?: GQLSearchExclude +export type GQLToggleCircleMemberInput = { + /** Toggle value. */ + enabled: Scalars['Boolean']['input'] + /** Unique ID. */ + id: Scalars['ID']['input'] + /** Unique ID of target user. */ + targetId: Scalars['ID']['input'] +} - /** - * should include tags used by author - */ - includeAuthorTags?: boolean +/** Common input to toggle single item for `toggleXXX` mutations */ +export type GQLToggleItemInput = { + enabled?: InputMaybe + id: Scalars['ID']['input'] +} - /** - * whether this search operation should be recorded in search history - */ - record?: boolean - oss?: boolean +export type GQLToggleRecommendInput = { + enabled: Scalars['Boolean']['input'] + id: Scalars['ID']['input'] + type?: InputMaybe +} - /** - * use the api version; default to use latest stable version is v20230301 - */ - version?: GQLSearchAPIVersion +export type GQLToggleSeedingUsersInput = { + enabled: Scalars['Boolean']['input'] + ids?: InputMaybe> +} - /** - * deprecated, make no effect - */ - coefficients?: string - quicksearch?: boolean +export type GQLToggleUsersBadgeInput = { + enabled: Scalars['Boolean']['input'] + ids: Array + type: GQLBadgeType } -export const enum GQLSearchTypes { - Article = 'Article', - User = 'User', - Tag = 'Tag', +export type GQLTopDonatorConnection = GQLConnection & { + __typename?: 'TopDonatorConnection' + edges?: Maybe> + pageInfo: GQLPageInfo + totalCount: Scalars['Int']['output'] } -export interface GQLSearchFilter { - authorId?: string +export type GQLTopDonatorEdge = { + __typename?: 'TopDonatorEdge' + cursor: Scalars['String']['output'] + donationCount: Scalars['Int']['output'] + node: GQLUser } -export const enum GQLSearchExclude { - blocked = 'blocked', +export type GQLTopDonatorFilter = { + inRangeEnd?: InputMaybe + inRangeStart?: InputMaybe } -export const enum GQLSearchAPIVersion { - v20230601 = 'v20230601', - v20230301 = 'v20230301', +export type GQLTopDonatorInput = { + after?: InputMaybe + filter?: InputMaybe + first?: InputMaybe } -export interface GQLSearchResultConnection extends GQLConnection { - totalCount: number - pageInfo: GQLPageInfo - edges?: Array +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 GQLSearchResultEdge { - cursor: string - node: GQLNode +export type GQLTransactionConnection = GQLConnection & { + __typename?: 'TransactionConnection' + edges?: Maybe> + pageInfo: GQLPageInfo + totalCount: Scalars['Int']['output'] } -/** - * This type contains system-wise info and settings. - */ -export interface GQLOfficial { - /** - * Feature flag - */ - features: Array +export type GQLTransactionCurrency = 'HKD' | 'LIKE' | 'USDT' - /** - * Announcements - */ - announcements?: Array +export type GQLTransactionEdge = { + __typename?: 'TransactionEdge' + cursor: Scalars['String']['output'] + node: GQLTransaction } -export interface GQLFeature { - name: GQLFeatureName - enabled: boolean +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'] } -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 GQLTransactionNoticeType = 'PaymentReceivedDonation' + +export type GQLTransactionPurpose = + | 'addCredit' + | 'dispute' + | 'donation' + | 'payout' + | 'payoutReversal' + | 'refund' + | 'subscriptionSplit' + +export type GQLTransactionState = + | 'canceled' + | 'failed' + | 'pending' + | 'succeeded' + +export type GQLTransactionTarget = GQLArticle | GQLCircle | 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 GQLAnnouncementsInput { - id?: string - visible?: boolean +export type GQLTransactionsFilter = { + currency?: InputMaybe + id?: InputMaybe + purpose?: InputMaybe + states?: InputMaybe> } -export interface GQLAnnouncement { - id: string - title?: string - cover?: string - content?: string - link?: string - type: GQLAnnouncementType - visible: boolean - order: number - createdAt: GQLDateTime - updatedAt: GQLDateTime - expiredAt?: GQLDateTime - translations?: Array +export type GQLTransactionsReceivedByArgs = { + after?: InputMaybe + first?: InputMaybe + purpose: GQLTransactionPurpose + senderId?: InputMaybe } -export const enum GQLAnnouncementType { - community = 'community', - product = 'product', - seminar = 'seminar', +export type GQLTranslatedAnnouncement = { + __typename?: 'TranslatedAnnouncement' + content?: Maybe + cover?: Maybe + language: GQLUserLanguage + link?: Maybe + title?: Maybe } -export interface GQLTranslatedAnnouncement { +export type GQLTranslatedAnnouncementInput = { + content?: InputMaybe + cover?: InputMaybe language: GQLUserLanguage - title?: string - cover?: string - content?: string - link?: GQLlink_String_format_uri + link?: InputMaybe + title?: InputMaybe } -export type GQLlink_String_format_uri = any +export type GQLTranslationArgs = { + language: GQLUserLanguage +} -export interface GQLOSS { - users: GQLUserConnection - comments: GQLCommentConnection - articles: GQLArticleConnection - tags: GQLTagConnection - oauthClients: GQLOAuthClientConnection - skippedListItems: GQLSkippedListItemsConnection - seedingUsers: GQLUserConnection - badgedUsers: GQLUserConnection - restrictedUsers: GQLUserConnection - reports: GQLReportConnection - icymiTopics: GQLIcymiTopicConnection +export type GQLTranslationInput = { + language: GQLUserLanguage + text: Scalars['String']['input'] } -export interface GQLTagsInput { - after?: string - first?: GQLfirst_Int_min_0 - sort?: GQLTagsSort +export type GQLUnbindLikerIdInput = { + id: Scalars['ID']['input'] + likerId: Scalars['String']['input'] } -/** - * Enums for sorting tags. - */ -export const enum GQLTagsSort { - newest = 'newest', - oldest = 'oldest', - hottest = 'hottest', +export type GQLUnlikeMomentInput = { + id: Scalars['ID']['input'] } -export interface GQLOAuthClientConnection extends GQLConnection { - totalCount: number - pageInfo: GQLPageInfo - edges?: Array +export type GQLUnpinCommentInput = { + id: Scalars['ID']['input'] } -export interface GQLOAuthClientEdge { - cursor: string - node: GQLOAuthClient +export type GQLUnsubscribeCircleInput = { + /** Unique ID. */ + id: Scalars['ID']['input'] } -export interface GQLOAuthClient { - /** - * Unique Client ID of this OAuth Client. - */ - id: string +export type GQLUnvoteCommentInput = { + id: Scalars['ID']['input'] +} - /** - * App name - */ - name: string +export type GQLUpdateArticleSensitiveInput = { + id: Scalars['ID']['input'] + sensitive: Scalars['Boolean']['input'] +} - /** - * App Description - */ - description?: string +export type GQLUpdateArticleStateInput = { + id: Scalars['ID']['input'] + state: GQLArticleState +} - /** - * URL for oauth client's official website - */ - website?: string +export type GQLUpdateArticlesTagsInput = { + articles?: InputMaybe> + id: Scalars['ID']['input'] + isSelected: Scalars['Boolean']['input'] +} - /** - * Scopes - */ - scope?: Array +export type GQLUpdateCampaignApplicationStateInput = { + campaign: Scalars['ID']['input'] + state: GQLCampaignApplicationState + user: Scalars['ID']['input'] +} - /** - * URL for oauth client's avatar. - */ - avatar?: string +export type GQLUpdateCommentsStateInput = { + ids: Array + state: GQLCommentState +} - /** - * Client secret - */ - secret: string +export type GQLUpdateNotificationSettingInput = { + enabled: Scalars['Boolean']['input'] + type: GQLNotificationSettingType +} - /** - * Redirect URIs - */ - redirectURIs?: Array +export type GQLUpdateTagSettingInput = { + editors?: InputMaybe> + id: Scalars['ID']['input'] + type: GQLUpdateTagSettingType +} - /** - * Grant Types - */ - grantTypes?: Array +export type GQLUpdateTagSettingType = + | 'add_editor' + | 'adopt' + | 'leave' + | 'leave_editor' + | 'remove_editor' - /** - * Linked Developer Account - */ - user?: GQLUser +export type GQLUpdateUserExtraInput = { + id: Scalars['ID']['input'] + referralCode?: InputMaybe +} - /** - * Creation Date - */ - createdAt: GQLDateTime +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 const enum GQLGrantType { - authorization_code = 'authorization_code', - refresh_token = 'refresh_token', +export type GQLUpdateUserRoleInput = { + id: Scalars['ID']['input'] + role: GQLUserRole } -export interface GQLSkippedListItemsInput { - after?: string - first?: GQLfirst_Int_min_0 - type?: GQLSkippedListItemType +export type GQLUpdateUserStateInput = { + banDays?: InputMaybe + emails?: InputMaybe> + id?: InputMaybe + password?: InputMaybe + state: GQLUserState } -export const enum GQLSkippedListItemType { - agent_hash = 'agent_hash', - email = 'email', - domain = 'domain', +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 + /** active applied campaigns */ + campaigns: GQLCampaignConnection + /** 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 + notices: GQLNoticeConnection + oss: GQLUserOss + /** Circles belong to current user. */ + ownCircles?: Maybe> + /** Payment pointer that resolves to Open Payments endpoints */ + paymentPointer?: Maybe + /** user pinned articles or collections */ + pinnedWorks: Array + /** 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 usage order of current user. */ + tags: GQLTagConnection + /** Global unique user name of a user. */ + userName?: Maybe + /** User Wallet */ + wallet: GQLWallet + /** Articles and moments authored by current user. */ + writings: GQLWritingConnection } -export interface GQLSkippedListItemsConnection extends GQLConnection { - totalCount: number - pageInfo: GQLPageInfo - edges?: Array +export type GQLUserArticlesArgs = { + input: GQLUserArticlesInput } -export interface GQLSkippedListItemEdge { - cursor: string - node?: GQLSkippedListItem +export type GQLUserBlockListArgs = { + input: GQLConnectionArgs } -export interface GQLSkippedListItem { - id: string - uuid: string - type: GQLSkippedListItemType - value: string - archived: boolean - createdAt: GQLDateTime - updatedAt: GQLDateTime +export type GQLUserCampaignsArgs = { + input: GQLConnectionArgs } -export interface GQLBadgedUsersInput { - after?: string - first?: GQLfirst_Int_min_0 - type?: GQLBadgeType +export type GQLUserCollectionsArgs = { + input: GQLConnectionArgs } -export interface GQLReportConnection extends GQLConnection { - totalCount: number - pageInfo: GQLPageInfo - edges?: Array +export type GQLUserCommentedArticlesArgs = { + input: GQLConnectionArgs } -export interface GQLReportEdge { - cursor: string - node: GQLReport +export type GQLUserDraftsArgs = { + input: GQLConnectionArgs } -export interface GQLReport extends GQLNode { - id: string - reporter: GQLUser - target: GQLResponse - reason: GQLReportReason - createdAt: GQLDateTime +export type GQLUserFollowersArgs = { + input: GQLConnectionArgs } -export const enum GQLReportReason { - tort = 'tort', - illegal_advertising = 'illegal_advertising', - discrimination_insult_hatred = 'discrimination_insult_hatred', - pornography_involving_minors = 'pornography_involving_minors', - other = 'other', +export type GQLUserNoticesArgs = { + input: GQLConnectionArgs } -export interface GQLIcymiTopicConnection extends GQLConnection { - totalCount: number - pageInfo: GQLPageInfo - edges: Array +export type GQLUserSubscribedCirclesArgs = { + input: GQLConnectionArgs } -export interface GQLIcymiTopicEdge { - cursor: string - node: GQLIcymiTopic +export type GQLUserSubscriptionsArgs = { + input: GQLConnectionArgs } -export interface GQLUserInput { - userName?: string +export type GQLUserTagsArgs = { + input: GQLConnectionArgs +} - /** - * used for case insensitive username search - */ - userNameCaseIgnore?: boolean - ethAddress?: string +export type GQLUserWritingsArgs = { + input: GQLWritingInput } -export interface GQLExchangeRatesInput { - from?: GQLTransactionCurrency - to?: GQLQuoteCurrency +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 interface GQLExchangeRate { - from: GQLTransactionCurrency - to: GQLQuoteCurrency - rate: number - - /** - * Last updated time from currency convertor APIs - */ - updatedAt: GQLDateTime +export type GQLUserActivityAppreciationsReceivedArgs = { + input: GQLConnectionArgs } -export interface GQLOAuthClientInput { - id: string +export type GQLUserActivityAppreciationsSentArgs = { + input: GQLConnectionArgs } -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 - - /** - * Follow or unfollow tag. - */ - toggleFollowTag: GQLTag - - /** - * pin or unpin tag. - */ - togglePinTag: GQLTag - - /** - * Create or update tag. - */ - putTag: GQLTag - - /** - * Update member, permission and othters of a tag. - */ - updateTagSetting: GQLTag - - /** - * Add one tag to articles. - */ - addArticlesTags: GQLTag - - /** - * Update articles' tag. - */ - updateArticlesTags: GQLTag - - /** - * Delete one tag from articles - */ - deleteArticlesTags: GQLTag - toggleArticleRecommend: GQLArticle - updateArticleState: GQLArticle - updateArticleSensitive: 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 +export type GQLUserActivityHistoryArgs = { + input: GQLConnectionArgs +} - /** - * Invite others to join circle - */ - invite?: Array +export type GQLUserActivityRecentSearchesArgs = { + input: GQLConnectionArgs +} - /** - * Publish or update a comment. - */ - putComment: GQLComment +export type GQLUserAddArticleTagActivity = { + __typename?: 'UserAddArticleTagActivity' + actor: GQLUser + createdAt: Scalars['DateTime']['output'] + /** Article added to tag */ + node: GQLArticle + /** Tag added by article */ + target: GQLTag +} - /** - * Remove a comment. - */ - deleteComment: GQLComment +export type GQLUserAnalytics = { + __typename?: 'UserAnalytics' + /** Top donators of current user. */ + topDonators: GQLTopDonatorConnection +} - /** - * Pin or Unpin a comment. - */ - togglePinComment: GQLComment +export type GQLUserAnalyticsTopDonatorsArgs = { + input: GQLTopDonatorInput +} - /** - * Upvote or downvote a comment. - */ - voteComment: GQLComment +export type GQLUserArticlesFilter = { + state?: InputMaybe +} - /** - * Unvote a comment. - */ - unvoteComment: GQLComment +export type GQLUserArticlesInput = { + after?: InputMaybe + filter?: InputMaybe + first?: InputMaybe + sort?: InputMaybe +} - /** - * Update a comments' state. - */ - updateCommentsState: Array +export type GQLUserArticlesSort = + | 'mostAppreciations' + | 'mostComments' + | 'mostDonations' + | 'mostReaders' + | 'newest' - /** - * Pin a comment. - */ - pinComment: GQLComment +export type GQLUserBroadcastCircleActivity = { + __typename?: 'UserBroadcastCircleActivity' + actor: GQLUser + createdAt: Scalars['DateTime']['output'] + /** Comment broadcast by actor */ + node: GQLComment + /** Circle that comment belongs to */ + target: GQLCircle +} - /** - * Unpin a comment. - */ - unpinComment: GQLComment +export type GQLUserConnection = GQLConnection & { + __typename?: 'UserConnection' + edges?: Maybe> + pageInfo: GQLPageInfo + totalCount: Scalars['Int']['output'] +} - /** - * Create or update a draft. - */ - putDraft: GQLDraft +export type GQLUserCreateCircleActivity = { + __typename?: 'UserCreateCircleActivity' + actor: GQLUser + createdAt: Scalars['DateTime']['output'] + /** Circle created by actor */ + node: GQLCircle +} - /** - * Remove a draft. - */ - deleteDraft?: boolean +export type GQLUserEdge = { + __typename?: 'UserEdge' + cursor: Scalars['String']['output'] + node: GQLUser +} - /** - * Mark all received notices as read. - */ - markAllNoticesAsRead?: boolean +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'] +} - /** - * Upload a single file. - */ - singleFileUpload: GQLAsset - directImageUpload: GQLAsset +export type GQLUserInfoFields = + | 'agreeOn' + | 'avatar' + | 'description' + | 'displayName' + | 'email' - /** - * Add specific user behavior record. - */ - logRecord?: boolean +export type GQLUserInput = { + ethAddress?: InputMaybe + userName?: InputMaybe + /** used for case insensitive username search */ + userNameCaseIgnore?: InputMaybe +} - /** - * Add blocked search keyword to blocked_search_word db - */ - addBlockedSearchKeyword: GQLBlockedSearchKeyword +export type GQLUserLanguage = 'en' | 'zh_hans' | 'zh_hant' - /** - * Delete blocked search keywords from search_history db - */ - deleteBlockedSearchKeywords?: boolean +export type GQLUserLoginInput = { + email: Scalars['String']['input'] + password: Scalars['String']['input'] +} - /** - * Submit inappropriate content report - */ - submitReport: GQLReport - setBoost: GQLNode - putRemark?: string - putSkippedListItem?: Array - setFeature: GQLFeature - toggleSeedingUsers: Array - putAnnouncement: GQLAnnouncement - deleteAnnouncements: boolean - putRestrictedUsers: Array - putIcymiTopic?: GQLIcymiTopic +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'] +} - /** - * Send verification code for email. - */ - sendVerificationCode?: boolean +export type GQLUserNoticeType = 'UserNewFollower' - /** - * Confirm verification code from email. - */ - confirmVerificationCode: string +export type GQLUserOss = { + __typename?: 'UserOSS' + boost: Scalars['Float']['output'] + restrictions: Array + score: Scalars['Float']['output'] +} - /** - * Reset user or payment password. - */ - resetPassword?: boolean +export type GQLUserPostMomentActivity = { + __typename?: 'UserPostMomentActivity' + actor: GQLUser + createdAt: Scalars['DateTime']['output'] + /** Another 2 moments posted by actor */ + more: Array + /** Moment posted by actor */ + node: GQLMoment +} - /** - * Change user email. - * @deprecated use 'setEmail' instead - */ - changeEmail: GQLUser +export type GQLUserPublishArticleActivity = { + __typename?: 'UserPublishArticleActivity' + actor: GQLUser + createdAt: Scalars['DateTime']['output'] + /** Article published by actor */ + node: GQLArticle +} - /** - * Set user email. - */ - setEmail: GQLUser +export type GQLUserRecommendationActivity = { + __typename?: 'UserRecommendationActivity' + /** Recommended users */ + nodes?: Maybe> + /** The source type of recommendation */ + source?: Maybe +} - /** - * Verify user email. - */ - verifyEmail: GQLAuthResult +export type GQLUserRecommendationActivitySource = 'UserFollowing' - /** - * Set user currency preference. - */ - setCurrency: GQLUser +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 +} - /** - * Register user, can only be used on matters.{town,news} website. - * @deprecated use 'emailLogin' instead - */ - userRegister: GQLAuthResult +export type GQLUserRestriction = { + __typename?: 'UserRestriction' + createdAt: Scalars['DateTime']['output'] + type: GQLUserRestrictionType +} - /** - * Login user. - * @deprecated use 'emailLogin' instead - */ - userLogin: GQLAuthResult - emailLogin: GQLAuthResult +export type GQLUserRestrictionType = 'articleHottest' | 'articleNewest' - /** - * Get signing message. - */ - generateSigningMessage: GQLSigningMessageResult +export type GQLUserRole = 'admin' | 'user' - /** - * Login/Signup via a wallet. - */ - walletLogin: GQLAuthResult +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 moments posted by user */ + momentCount: Scalars['Int']['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 +} - /** - * Add a wallet login to current user. - */ - addWalletLogin: GQLUser +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 +} - /** - * Remove a wallet login from current user. - */ - removeWalletLogin: GQLUser +export type GQLWalletTransactionsArgs = { + input: GQLTransactionsArgs +} +export type GQLWalletLoginInput = { /** - * Login/Signup via social accounts. + * email verification code, required for wallet register + * @deprecated No longer in use */ - socialLogin: GQLAuthResult - + codeId?: InputMaybe /** - * Add a social login to current user. + * required for wallet register + * @deprecated No longer in use */ - addSocialLogin: GQLUser + 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 GQLWriting = GQLArticle | GQLMoment + +export type GQLWritingChallenge = GQLCampaign & + GQLNode & { + __typename?: 'WritingChallenge' + applicationPeriod: GQLDatetimeRange + applicationState?: Maybe + articles: GQLArticleConnection + cover?: Maybe + description: Scalars['String']['output'] + id: Scalars['ID']['output'] + link: Scalars['String']['output'] + name: Scalars['String']['output'] + participants: GQLUserConnection + shortHash: Scalars['String']['output'] + stages: Array + state: GQLCampaignState + writingPeriod: GQLDatetimeRange + } - /** - * Remove a social login from current user. - */ - removeSocialLogin: GQLUser +export type GQLWritingChallengeArticlesArgs = { + input: GQLCampaignArticlesInput +} - /** - * Reset crypto wallet. - * @deprecated use 'removeWalletLogin' instead - */ - resetWallet: GQLUser +export type GQLWritingChallengeParticipantsArgs = { + input: GQLConnectionArgs +} - /** - * Logout user. - */ - userLogout: boolean +export type GQLWritingConnection = GQLConnection & { + __typename?: 'WritingConnection' + edges?: Maybe> + pageInfo: GQLPageInfo + totalCount: Scalars['Int']['output'] +} + +export type GQLWritingEdge = { + __typename?: 'WritingEdge' + cursor: Scalars['String']['output'] + node: GQLWriting +} + +export type GQLWritingInput = { + after?: InputMaybe + first?: InputMaybe +} + +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 + > +} - /** - * Generate or claim a Liker ID through LikeCoin - * @deprecated No longer in use - */ - generateLikerId: GQLUser - - /** - * Reset Liker ID - */ - resetLikerId: GQLUser - - /** - * Update user information. - */ - updateUserInfo: GQLUser - - /** - * Set user name. - */ - setUserName: GQLUser - - /** - * Set user email login password. - */ - setPassword: 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: GQLUser - - /** - * 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 referralCode of a user, used in OSS. - */ - updateUserExtra: 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 - putCollection: GQLCollection - deleteCollections: boolean - - /** - * Add articles to the begining of the collections. - */ - addCollectionsArticles: Array - - /** - * Remove articles from the collection. - */ - deleteCollectionArticles: GQLCollection - - /** - * Reorder articles in the collection. - */ - reorderCollectionArticles: GQLCollection -} - -export interface GQLPublishArticleInput { - id: string - - /** - * whether publish to ISCN - */ - iscnPublish?: boolean -} - -export interface GQLEditArticleInput { - id: string - state?: GQLArticleState - - /** - * deprecated, use pinned instead - */ - sticky?: boolean - pinned?: boolean - title?: string - summary?: string - tags?: Array - content?: string - cover?: string - collection?: Array - circle?: string - accessType?: GQLArticleAccessType - sensitive?: boolean - license?: GQLArticleLicenseType - requestForDonation?: GQLrequestForDonation_String_maxLength_140 - replyToDonator?: GQLreplyToDonator_String_maxLength_140 - - /** - * revision description - */ - description?: GQLdescription_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 - -export type GQLdescription_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 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', - search = 'search', -} - -export interface GQLUpdateArticleStateInput { - id: string - state: GQLArticleState -} - -export interface GQLUpdateArticleSensitiveInput { - id: string - sensitive: boolean -} - -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 - id?: string -} - -export interface GQLCommentInput { - content: string - replyTo?: string - parentId?: string - mentions?: Array - type: GQLCommentType - 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 - sensitive?: boolean - 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 - draft?: boolean - 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', - collection = 'collection', -} - -export interface GQLDirectImageUploadInput { - type: GQLAssetType - mime?: string - url?: GQLurl_String_format_uri - draft?: boolean - entityType: GQLEntityType - entityId?: string -} - -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 GQLSubmitReportInput { - targetId: string - reason: GQLReportReason -} - -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 - expiredAt?: GQLDateTime - 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 GQLPutIcymiTopicInput { - id?: string - title?: string - articles?: Array - pinAmount?: number - note?: string - state?: GQLIcymiTopicState -} - -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 - - /** - * email content language - */ - language?: GQLUserLanguage -} - -export const enum GQLVerificationCodeType { - register = 'register', - email_verify = 'email_verify', - email_otp = 'email_otp', - - /** - * - * @deprecated No longer in use - */ - email_reset = 'email_reset', - - /** - * - * @deprecated No longer in use - */ - email_reset_confirm = 'email_reset_confirm', - - /** - * - * @deprecated No longer in use - */ - 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 GQLSetEmailInput { - email: string -} - -export interface GQLVerifyEmailInput { - email: string - code: string -} - -export interface GQLAuthResult { - auth: boolean - token?: string - type: GQLAuthResultType - user?: GQLUser -} - -export const enum GQLAuthResultType { - Login = 'Login', - Signup = 'Signup', - LinkAccount = 'LinkAccount', -} - -export interface GQLSetCurrencyInput { - currency?: GQLQuoteCurrency -} - -export interface GQLUserRegisterInput { - email: GQLemail_String_NotNull_format_email - userName?: string - displayName: string - password: string - description?: string - codeId: string - referralCode?: string -} - -export interface GQLUserLoginInput { - email: GQLemail_String_NotNull_format_email - password: string -} - -export interface GQLEmailLoginInput { - email: string - passwordOrCode: string - - /** - * used in register - */ - language?: GQLUserLanguage - referralCode?: 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 - - /** - * used in register - */ - language?: GQLUserLanguage - referralCode?: string -} - -export interface GQLSocialLoginInput { - type: GQLSocialAccountType - authorizationCode?: string - - /** - * OAuth2 PKCE code_verifier for Facebook and Twitter - */ - codeVerifier?: string - - /** - * OIDC nonce for Google - */ - nonce?: string - - /** - * oauth token/verifier in OAuth1.0a for Twitter - */ - oauth1Credential?: GQLOauth1CredentialInput - - /** - * used in register - */ - language?: GQLUserLanguage - referralCode?: string -} - -export interface GQLOauth1CredentialInput { - oauthToken: string - oauthVerifier: string -} - -export interface GQLRemoveSocialLoginInput { - type: GQLSocialAccountType -} - -export interface GQLResetWalletInput { - id: string -} - -export interface GQLResetLikerIdInput { - id: string -} - -export interface GQLUpdateUserInfoInput { - displayName?: string - avatar?: string - description?: string - language?: GQLUserLanguage - agreeOn?: boolean - profileCover?: string - paymentPassword?: string - paymentPointer?: string - referralCode?: string -} - -export interface GQLSetUserNameInput { - userName: string -} - -export interface GQLSetPasswordInput { - password: string -} - -export interface GQLUpdateNotificationSettingInput { - type: GQLNotificationSettingType - enabled: boolean -} - -export const enum GQLNotificationSettingType { - email = 'email', - mention = 'mention', - userNewFollower = 'userNewFollower', - articleNewComment = 'articleNewComment', - articleNewAppreciation = 'articleNewAppreciation', - articleNewSubscription = 'articleNewSubscription', - articleNewCollected = 'articleNewCollected', - 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 { - ids?: Array - 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 GQLUpdateUserExtraInput { - id: string - referralCode?: string -} - -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 -} - -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 ERC20/native token 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 -} - -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 GQLPutCollectionInput { - id?: string - title?: string - cover?: string - description?: string - pinned?: boolean -} - -export interface GQLDeleteCollectionsInput { - ids: Array -} - -export interface GQLAddCollectionsArticlesInput { - collections: Array - articles: Array -} - -export interface GQLDeleteCollectionArticlesInput { - collection: string - articles: Array -} - -export interface GQLReorderCollectionArticlesInput { - collection: string - moves: Array -} - -export interface GQLReorderMoveInput { - item: string - - /** - * 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: number -} - -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', -} - -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', -} - -export const enum GQLCacheControlScope { - PUBLIC = 'PUBLIC', - PRIVATE = 'PRIVATE', -} - -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', -} - -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 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 GQLToggleCircleMemberInput { - /** - * Unique ID. - */ - id: string - - /** - * Toggle value. - */ - enabled: boolean - - /** - * Unique ID of target user. - */ - targetId: string -} - -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', -} - -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', -} - -/********************************* - * * - * 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 - } - - PinnableWork?: { - __resolveType: GQLPinnableWorkTypeResolver - } - - DateTime?: GraphQLScalarType - User?: GQLUserTypeResolver - Circle?: GQLCircleTypeResolver - Price?: GQLPriceTypeResolver - first_Int_min_0?: GraphQLScalarType - random_Int_min_0_max_49?: GraphQLScalarType - MemberConnection?: GQLMemberConnectionTypeResolver - Connection?: { - __resolveType: GQLConnectionTypeResolver - } - - PageInfo?: GQLPageInfoTypeResolver - MemberEdge?: GQLMemberEdgeTypeResolver - Member?: GQLMemberTypeResolver - UserConnection?: GQLUserConnectionTypeResolver - UserEdge?: GQLUserEdgeTypeResolver - ArticleConnection?: GQLArticleConnectionTypeResolver - ArticleEdge?: GQLArticleEdgeTypeResolver - 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 - CommentConnection?: GQLCommentConnectionTypeResolver - CommentEdge?: GQLCommentEdgeTypeResolver - Comment?: GQLCommentTypeResolver - CircleConnection?: GQLCircleConnectionTypeResolver - CircleEdge?: GQLCircleEdgeTypeResolver - NoticeConnection?: GQLNoticeConnectionTypeResolver - NoticeEdge?: GQLNoticeEdgeTypeResolver - Notice?: { - __resolveType: GQLNoticeTypeResolver - } - - Liker?: GQLLikerTypeResolver - UserInfo?: GQLUserInfoTypeResolver - email_String_format_email?: GraphQLScalarType - SocialAccount?: GQLSocialAccountTypeResolver - Badge?: GQLBadgeTypeResolver - CryptoWallet?: GQLCryptoWalletTypeResolver - NFTAsset?: GQLNFTAssetTypeResolver - Tag?: GQLTagTypeResolver - 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 - UserCreateCircleActivity?: GQLUserCreateCircleActivityTypeResolver - UserRecommendationActivity?: GQLUserRecommendationActivityTypeResolver - ArticleRecommendationActivity?: GQLArticleRecommendationActivityTypeResolver - CircleRecommendationActivity?: GQLCircleRecommendationActivityTypeResolver - IcymiTopic?: GQLIcymiTopicTypeResolver - CollectionConnection?: GQLCollectionConnectionTypeResolver - CollectionEdge?: GQLCollectionEdgeTypeResolver - Collection?: GQLCollectionTypeResolver - 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 - Wallet?: GQLWalletTypeResolver - Balance?: GQLBalanceTypeResolver - TransactionConnection?: GQLTransactionConnectionTypeResolver - TransactionEdge?: GQLTransactionEdgeTypeResolver - Transaction?: GQLTransactionTypeResolver - TransactionTarget?: { - __resolveType: GQLTransactionTargetTypeResolver - } - - BlockchainTransaction?: GQLBlockchainTransactionTypeResolver - StripeAccount?: GQLStripeAccountTypeResolver - ArticleContents?: GQLArticleContentsTypeResolver - ArticleTranslation?: GQLArticleTranslationTypeResolver - ArticleDonationConnection?: GQLArticleDonationConnectionTypeResolver - ArticleDonationEdge?: GQLArticleDonationEdgeTypeResolver - ArticleDonation?: GQLArticleDonationTypeResolver - ArticleAccess?: GQLArticleAccessTypeResolver - ArticleVersionsConnection?: GQLArticleVersionsConnectionTypeResolver - ArticleVersionEdge?: GQLArticleVersionEdgeTypeResolver - ArticleVersion?: GQLArticleVersionTypeResolver - 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 - ReportConnection?: GQLReportConnectionTypeResolver - ReportEdge?: GQLReportEdgeTypeResolver - Report?: GQLReportTypeResolver - IcymiTopicConnection?: GQLIcymiTopicConnectionTypeResolver - IcymiTopicEdge?: GQLIcymiTopicEdgeTypeResolver - ExchangeRate?: GQLExchangeRateTypeResolver - Mutation?: GQLMutationTypeResolver - requestForDonation_String_maxLength_140?: GraphQLScalarType - replyToDonator_String_maxLength_140?: GraphQLScalarType - description_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 - CircleNotice?: GQLCircleNoticeTypeResolver - CommentCommentNotice?: GQLCommentCommentNoticeTypeResolver - CommentNotice?: GQLCommentNoticeTypeResolver - OfficialAnnouncementNotice?: GQLOfficialAnnouncementNoticeTypeResolver - 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 - oauthRequestToken?: QueryToOauthRequestTokenResolver - 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 QueryToOauthRequestTokenResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - 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 - shortHash?: ArticleToShortHashResolver - content?: ArticleToContentResolver - contents?: ArticleToContentsResolver - language?: ArticleToLanguageResolver - collectedBy?: ArticleToCollectedByResolver - collection?: ArticleToCollectionResolver - relatedArticles?: ArticleToRelatedArticlesResolver - relatedDonationArticles?: ArticleToRelatedDonationArticlesResolver - appreciationsReceived?: ArticleToAppreciationsReceivedResolver - appreciationsReceivedTotal?: ArticleToAppreciationsReceivedTotalResolver< - TParent - > - donationCount?: ArticleToDonationCountResolver - readerCount?: ArticleToReaderCountResolver - subscribers?: ArticleToSubscribersResolver - appreciateLimit?: ArticleToAppreciateLimitResolver - appreciateLeft?: ArticleToAppreciateLeftResolver - hasAppreciate?: ArticleToHasAppreciateResolver - canSuperLike?: ArticleToCanSuperLikeResolver - subscribed?: ArticleToSubscribedResolver - sticky?: ArticleToStickyResolver - pinned?: ArticleToPinnedResolver - translation?: ArticleToTranslationResolver - availableTranslations?: ArticleToAvailableTranslationsResolver - transactionsReceivedBy?: ArticleToTransactionsReceivedByResolver - donations?: ArticleToDonationsResolver - readTime?: ArticleToReadTimeResolver - drafts?: ArticleToDraftsResolver - newestUnpublishedDraft?: ArticleToNewestUnpublishedDraftResolver - newestPublishedDraft?: ArticleToNewestPublishedDraftResolver - revisionCount?: ArticleToRevisionCountResolver - access?: ArticleToAccessResolver - sensitiveByAuthor?: ArticleToSensitiveByAuthorResolver - sensitiveByAdmin?: ArticleToSensitiveByAdminResolver - license?: ArticleToLicenseResolver - donated?: ArticleToDonatedResolver - requestForDonation?: ArticleToRequestForDonationResolver - replyToDonator?: ArticleToReplyToDonatorResolver - iscnId?: ArticleToIscnIdResolver - canComment?: ArticleToCanCommentResolver - versions?: ArticleToVersionsResolver - 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 ArticleToShortHashResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface ArticleToContentResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface ArticleToContentsResolver { - ( - 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 ArticleToDonationCountResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface ArticleToReaderCountResolver { - ( - 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 ArticleToPinnedResolver { - ( - 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 ArticleToDonationsArgs { - input: GQLConnectionArgs -} -export interface ArticleToDonationsResolver { - ( - parent: TParent, - args: ArticleToDonationsArgs, - 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 ArticleToSensitiveByAuthorResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface ArticleToSensitiveByAdminResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface ArticleToLicenseResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface ArticleToDonatedResolver { - ( - 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 ArticleToVersionsArgs { - input: GQLArticleVersionsInput -} -export interface ArticleToVersionsResolver { - ( - parent: TParent, - args: ArticleToVersionsArgs, - 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' - | 'Circle' - | 'Comment' - | 'Tag' - | 'IcymiTopic' - | 'Collection' - | 'Draft' - | 'ArticleVersion' - | 'Report' - | Promise< - | 'Article' - | 'User' - | 'Circle' - | 'Comment' - | 'Tag' - | 'IcymiTopic' - | 'Collection' - | 'Draft' - | 'ArticleVersion' - | 'Report' - > -} -export interface GQLPinnableWorkTypeResolver { - (parent: TParent, context: Context, info: GraphQLResolveInfo): - | 'Article' - | 'Collection' - | Promise<'Article' | 'Collection'> -} -export interface GQLUserTypeResolver { - ownCircles?: UserToOwnCirclesResolver - subscribedCircles?: UserToSubscribedCirclesResolver - notices?: UserToNoticesResolver - id?: UserToIdResolver - userName?: UserToUserNameResolver - displayName?: UserToDisplayNameResolver - likerId?: UserToLikerIdResolver - liker?: UserToLikerResolver - avatar?: UserToAvatarResolver - info?: UserToInfoResolver - settings?: UserToSettingsResolver - recommendation?: UserToRecommendationResolver - articles?: UserToArticlesResolver - collections?: UserToCollectionsResolver - latestWorks?: UserToLatestWorksResolver - pinnedWorks?: UserToPinnedWorksResolver - 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 - wallet?: UserToWalletResolver - paymentPointer?: UserToPaymentPointerResolver -} - -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 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: GQLUserArticlesInput -} -export interface UserToArticlesResolver { - ( - parent: TParent, - args: UserToArticlesArgs, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface UserToCollectionsArgs { - input: GQLConnectionArgs -} -export interface UserToCollectionsResolver { - ( - parent: TParent, - args: UserToCollectionsArgs, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface UserToLatestWorksResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface UserToPinnedWorksResolver { - ( - parent: TParent, - args: {}, - 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 UserToWalletResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface UserToPaymentPointerResolver { - ( - 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 GQLConnectionTypeResolver { - (parent: TParent, context: Context, info: GraphQLResolveInfo): - | 'MemberConnection' - | 'UserConnection' - | 'ArticleConnection' - | 'InvitationConnection' - | 'CommentConnection' - | 'CircleConnection' - | 'NoticeConnection' - | 'TagConnection' - | 'FollowingActivityConnection' - | 'CollectionConnection' - | 'DraftConnection' - | 'ReadHistoryConnection' - | 'RecentSearchConnection' - | 'AppreciationConnection' - | 'TopDonatorConnection' - | 'TransactionConnection' - | 'ArticleVersionsConnection' - | 'ResponseConnection' - | 'SearchResultConnection' - | 'OAuthClientConnection' - | 'SkippedListItemsConnection' - | 'ReportConnection' - | 'IcymiTopicConnection' - | Promise< - | 'MemberConnection' - | 'UserConnection' - | 'ArticleConnection' - | 'InvitationConnection' - | 'CommentConnection' - | 'CircleConnection' - | 'NoticeConnection' - | 'TagConnection' - | 'FollowingActivityConnection' - | 'CollectionConnection' - | 'DraftConnection' - | 'ReadHistoryConnection' - | 'RecentSearchConnection' - | 'AppreciationConnection' - | 'TopDonatorConnection' - | 'TransactionConnection' - | 'ArticleVersionsConnection' - | 'ResponseConnection' - | 'SearchResultConnection' - | 'OAuthClientConnection' - | 'SkippedListItemsConnection' - | 'ReportConnection' - | 'IcymiTopicConnection' - > -} -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 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 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 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 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 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 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 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 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 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' - | 'CircleNotice' - | 'CommentCommentNotice' - | 'CommentNotice' - | 'OfficialAnnouncementNotice' - | 'TransactionNotice' - | 'UserNotice' - | Promise< - | 'ArticleArticleNotice' - | 'ArticleNotice' - | 'CircleNotice' - | 'CommentCommentNotice' - | 'CommentNotice' - | 'OfficialAnnouncementNotice' - | 'TransactionNotice' - | 'UserNotice' - > -} -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 - emailVerified?: UserInfoToEmailVerifiedResolver - socialAccounts?: UserInfoToSocialAccountsResolver - 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 UserInfoToEmailVerifiedResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface UserInfoToSocialAccountsResolver< - TParent = any, - TResult = any -> { - ( - 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 GQLSocialAccountTypeResolver { - type?: SocialAccountToTypeResolver - userName?: SocialAccountToUserNameResolver - email?: SocialAccountToEmailResolver -} - -export interface SocialAccountToTypeResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface SocialAccountToUserNameResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface SocialAccountToEmailResolver { - ( - 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 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 { - email?: NotificationSettingToEmailResolver - mention?: NotificationSettingToMentionResolver - userNewFollower?: NotificationSettingToUserNewFollowerResolver - articleNewComment?: NotificationSettingToArticleNewCommentResolver - articleNewAppreciation?: NotificationSettingToArticleNewAppreciationResolver< - TParent - > - articleNewSubscription?: NotificationSettingToArticleNewSubscriptionResolver< - TParent - > - articleNewCollected?: NotificationSettingToArticleNewCollectedResolver< - 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 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 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 - icymiTopic?: RecommendationToIcymiTopicResolver - 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 RecommendationToIcymiTopicResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - 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 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 GQLIcymiTopicTypeResolver { - id?: IcymiTopicToIdResolver - title?: IcymiTopicToTitleResolver - articles?: IcymiTopicToArticlesResolver - pinAmount?: IcymiTopicToPinAmountResolver - note?: IcymiTopicToNoteResolver - state?: IcymiTopicToStateResolver - publishedAt?: IcymiTopicToPublishedAtResolver - archivedAt?: IcymiTopicToArchivedAtResolver -} - -export interface IcymiTopicToIdResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface IcymiTopicToTitleResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface IcymiTopicToArticlesResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface IcymiTopicToPinAmountResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface IcymiTopicToNoteResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface IcymiTopicToStateResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface IcymiTopicToPublishedAtResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface IcymiTopicToArchivedAtResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface GQLCollectionConnectionTypeResolver { - totalCount?: CollectionConnectionToTotalCountResolver - pageInfo?: CollectionConnectionToPageInfoResolver - edges?: CollectionConnectionToEdgesResolver -} - -export interface CollectionConnectionToTotalCountResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface CollectionConnectionToPageInfoResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface CollectionConnectionToEdgesResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface GQLCollectionEdgeTypeResolver { - cursor?: CollectionEdgeToCursorResolver - node?: CollectionEdgeToNodeResolver -} - -export interface CollectionEdgeToCursorResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface CollectionEdgeToNodeResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface GQLCollectionTypeResolver { - id?: CollectionToIdResolver - title?: CollectionToTitleResolver - cover?: CollectionToCoverResolver - description?: CollectionToDescriptionResolver - author?: CollectionToAuthorResolver - articles?: CollectionToArticlesResolver - pinned?: CollectionToPinnedResolver - updatedAt?: CollectionToUpdatedAtResolver - contains?: CollectionToContainsResolver -} - -export interface CollectionToIdResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface CollectionToTitleResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface CollectionToCoverResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface CollectionToDescriptionResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface CollectionToAuthorResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface CollectionToArticlesArgs { - input: GQLCollectionArticlesInput -} -export interface CollectionToArticlesResolver { - ( - parent: TParent, - args: CollectionToArticlesArgs, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface CollectionToPinnedResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface CollectionToUpdatedAtResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface CollectionToContainsArgs { - input: GQLNodeInput -} -export interface CollectionToContainsResolver { - ( - parent: TParent, - args: CollectionToContainsArgs, - 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 - sensitiveByAuthor?: DraftToSensitiveByAuthorResolver - 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 DraftToSensitiveByAuthorResolver< - TParent = any, - TResult = any -> { - ( - 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 - draft?: AssetToDraftResolver - uploadURL?: AssetToUploadURLResolver - 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 AssetToDraftResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface AssetToUploadURLResolver { - ( - 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 - totalReferredCount?: UserStatusToTotalReferredCountResolver - hasEmailLoginPassword?: UserStatusToHasEmailLoginPasswordResolver - changeEmailTimesLeft?: UserStatusToChangeEmailTimesLeftResolver - 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 UserStatusToTotalReferredCountResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface UserStatusToHasEmailLoginPasswordResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface UserStatusToChangeEmailTimesLeftResolver< - 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 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 GQLArticleContentsTypeResolver { - markdown?: ArticleContentsToMarkdownResolver - html?: ArticleContentsToHtmlResolver -} - -export interface ArticleContentsToMarkdownResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface ArticleContentsToHtmlResolver { - ( - 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 GQLArticleDonationConnectionTypeResolver { - totalCount?: ArticleDonationConnectionToTotalCountResolver - pageInfo?: ArticleDonationConnectionToPageInfoResolver - edges?: ArticleDonationConnectionToEdgesResolver -} - -export interface ArticleDonationConnectionToTotalCountResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface ArticleDonationConnectionToPageInfoResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface ArticleDonationConnectionToEdgesResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface GQLArticleDonationEdgeTypeResolver { - cursor?: ArticleDonationEdgeToCursorResolver - node?: ArticleDonationEdgeToNodeResolver -} - -export interface ArticleDonationEdgeToCursorResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface ArticleDonationEdgeToNodeResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface GQLArticleDonationTypeResolver { - id?: ArticleDonationToIdResolver - sender?: ArticleDonationToSenderResolver -} - -export interface ArticleDonationToIdResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface ArticleDonationToSenderResolver { - ( - 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 GQLArticleVersionsConnectionTypeResolver { - totalCount?: ArticleVersionsConnectionToTotalCountResolver - pageInfo?: ArticleVersionsConnectionToPageInfoResolver - edges?: ArticleVersionsConnectionToEdgesResolver -} - -export interface ArticleVersionsConnectionToTotalCountResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface ArticleVersionsConnectionToPageInfoResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface ArticleVersionsConnectionToEdgesResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface GQLArticleVersionEdgeTypeResolver { - node?: ArticleVersionEdgeToNodeResolver - cursor?: ArticleVersionEdgeToCursorResolver -} - -export interface ArticleVersionEdgeToNodeResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface ArticleVersionEdgeToCursorResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface GQLArticleVersionTypeResolver { - id?: ArticleVersionToIdResolver - dataHash?: ArticleVersionToDataHashResolver - mediaHash?: ArticleVersionToMediaHashResolver - title?: ArticleVersionToTitleResolver - summary?: ArticleVersionToSummaryResolver - contents?: ArticleVersionToContentsResolver - translation?: ArticleVersionToTranslationResolver - createdAt?: ArticleVersionToCreatedAtResolver - description?: ArticleVersionToDescriptionResolver -} - -export interface ArticleVersionToIdResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface ArticleVersionToDataHashResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface ArticleVersionToMediaHashResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface ArticleVersionToTitleResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface ArticleVersionToSummaryResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface ArticleVersionToContentsResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface ArticleVersionToTranslationArgs { - input?: GQLTranslationArgs -} -export interface ArticleVersionToTranslationResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: ArticleVersionToTranslationArgs, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface ArticleVersionToCreatedAtResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface ArticleVersionToDescriptionResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface GQLArticleOSSTypeResolver { - boost?: ArticleOSSToBoostResolver - score?: ArticleOSSToScoreResolver - inRecommendIcymi?: ArticleOSSToInRecommendIcymiResolver - inRecommendHottest?: ArticleOSSToInRecommendHottestResolver - inRecommendNewest?: ArticleOSSToInRecommendNewestResolver - inSearch?: ArticleOSSToInSearchResolver -} - -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 ArticleOSSToInSearchResolver { - ( - 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 - expiredAt?: AnnouncementToExpiredAtResolver - 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 AnnouncementToExpiredAtResolver { - ( - 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 - reports?: OSSToReportsResolver - icymiTopics?: OSSToIcymiTopicsResolver -} - -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 OSSToReportsArgs { - input: GQLConnectionArgs -} -export interface OSSToReportsResolver { - ( - parent: TParent, - args: OSSToReportsArgs, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface OSSToIcymiTopicsArgs { - input: GQLConnectionArgs -} -export interface OSSToIcymiTopicsResolver { - ( - parent: TParent, - args: OSSToIcymiTopicsArgs, - 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 GQLReportConnectionTypeResolver { - totalCount?: ReportConnectionToTotalCountResolver - pageInfo?: ReportConnectionToPageInfoResolver - edges?: ReportConnectionToEdgesResolver -} - -export interface ReportConnectionToTotalCountResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface ReportConnectionToPageInfoResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface ReportConnectionToEdgesResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface GQLReportEdgeTypeResolver { - cursor?: ReportEdgeToCursorResolver - node?: ReportEdgeToNodeResolver -} - -export interface ReportEdgeToCursorResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface ReportEdgeToNodeResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface GQLReportTypeResolver { - id?: ReportToIdResolver - reporter?: ReportToReporterResolver - target?: ReportToTargetResolver - reason?: ReportToReasonResolver - createdAt?: ReportToCreatedAtResolver -} - -export interface ReportToIdResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface ReportToReporterResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface ReportToTargetResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface ReportToReasonResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface ReportToCreatedAtResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface GQLIcymiTopicConnectionTypeResolver { - totalCount?: IcymiTopicConnectionToTotalCountResolver - pageInfo?: IcymiTopicConnectionToPageInfoResolver - edges?: IcymiTopicConnectionToEdgesResolver -} - -export interface IcymiTopicConnectionToTotalCountResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface IcymiTopicConnectionToPageInfoResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface IcymiTopicConnectionToEdgesResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface GQLIcymiTopicEdgeTypeResolver { - cursor?: IcymiTopicEdgeToCursorResolver - node?: IcymiTopicEdgeToNodeResolver -} - -export interface IcymiTopicEdgeToCursorResolver { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface IcymiTopicEdgeToNodeResolver { - ( - 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 - toggleFollowTag?: MutationToToggleFollowTagResolver - togglePinTag?: MutationToTogglePinTagResolver - putTag?: MutationToPutTagResolver - updateTagSetting?: MutationToUpdateTagSettingResolver - addArticlesTags?: MutationToAddArticlesTagsResolver - updateArticlesTags?: MutationToUpdateArticlesTagsResolver - deleteArticlesTags?: MutationToDeleteArticlesTagsResolver - toggleArticleRecommend?: MutationToToggleArticleRecommendResolver - updateArticleState?: MutationToUpdateArticleStateResolver - updateArticleSensitive?: MutationToUpdateArticleSensitiveResolver - 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 - directImageUpload?: MutationToDirectImageUploadResolver - logRecord?: MutationToLogRecordResolver - addBlockedSearchKeyword?: MutationToAddBlockedSearchKeywordResolver - deleteBlockedSearchKeywords?: MutationToDeleteBlockedSearchKeywordsResolver< - TParent - > - submitReport?: MutationToSubmitReportResolver - setBoost?: MutationToSetBoostResolver - putRemark?: MutationToPutRemarkResolver - putSkippedListItem?: MutationToPutSkippedListItemResolver - setFeature?: MutationToSetFeatureResolver - toggleSeedingUsers?: MutationToToggleSeedingUsersResolver - putAnnouncement?: MutationToPutAnnouncementResolver - deleteAnnouncements?: MutationToDeleteAnnouncementsResolver - putRestrictedUsers?: MutationToPutRestrictedUsersResolver - putIcymiTopic?: MutationToPutIcymiTopicResolver - sendVerificationCode?: MutationToSendVerificationCodeResolver - confirmVerificationCode?: MutationToConfirmVerificationCodeResolver - resetPassword?: MutationToResetPasswordResolver - changeEmail?: MutationToChangeEmailResolver - setEmail?: MutationToSetEmailResolver - verifyEmail?: MutationToVerifyEmailResolver - setCurrency?: MutationToSetCurrencyResolver - userRegister?: MutationToUserRegisterResolver - userLogin?: MutationToUserLoginResolver - emailLogin?: MutationToEmailLoginResolver - generateSigningMessage?: MutationToGenerateSigningMessageResolver - walletLogin?: MutationToWalletLoginResolver - addWalletLogin?: MutationToAddWalletLoginResolver - removeWalletLogin?: MutationToRemoveWalletLoginResolver - socialLogin?: MutationToSocialLoginResolver - addSocialLogin?: MutationToAddSocialLoginResolver - removeSocialLogin?: MutationToRemoveSocialLoginResolver - resetWallet?: MutationToResetWalletResolver - userLogout?: MutationToUserLogoutResolver - generateLikerId?: MutationToGenerateLikerIdResolver - resetLikerId?: MutationToResetLikerIdResolver - updateUserInfo?: MutationToUpdateUserInfoResolver - setUserName?: MutationToSetUserNameResolver - setPassword?: MutationToSetPasswordResolver - updateNotificationSetting?: MutationToUpdateNotificationSettingResolver< - TParent - > - toggleFollowUser?: MutationToToggleFollowUserResolver - toggleBlockUser?: MutationToToggleBlockUserResolver - clearReadHistory?: MutationToClearReadHistoryResolver - clearSearchHistory?: MutationToClearSearchHistoryResolver - migration?: MutationToMigrationResolver - claimLogbooks?: MutationToClaimLogbooksResolver - putFeaturedTags?: MutationToPutFeaturedTagsResolver - updateUserState?: MutationToUpdateUserStateResolver - updateUserRole?: MutationToUpdateUserRoleResolver - updateUserExtra?: MutationToUpdateUserExtraResolver - refreshIPNSFeed?: MutationToRefreshIPNSFeedResolver - toggleUsersBadge?: MutationToToggleUsersBadgeResolver - unbindLikerId?: MutationToUnbindLikerIdResolver - addCredit?: MutationToAddCreditResolver - payTo?: MutationToPayToResolver - payout?: MutationToPayoutResolver - connectStripeAccount?: MutationToConnectStripeAccountResolver - putOAuthClient?: MutationToPutOAuthClientResolver - putCollection?: MutationToPutCollectionResolver - deleteCollections?: MutationToDeleteCollectionsResolver - addCollectionsArticles?: MutationToAddCollectionsArticlesResolver - deleteCollectionArticles?: MutationToDeleteCollectionArticlesResolver - reorderCollectionArticles?: MutationToReorderCollectionArticlesResolver< - TParent - > -} - -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 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 MutationToUpdateArticleSensitiveArgs { - input: GQLUpdateArticleSensitiveInput -} -export interface MutationToUpdateArticleSensitiveResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: MutationToUpdateArticleSensitiveArgs, - 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 MutationToDirectImageUploadArgs { - input: GQLDirectImageUploadInput -} -export interface MutationToDirectImageUploadResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: MutationToDirectImageUploadArgs, - 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 MutationToSubmitReportArgs { - input: GQLSubmitReportInput -} -export interface MutationToSubmitReportResolver { - ( - parent: TParent, - args: MutationToSubmitReportArgs, - 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 MutationToPutIcymiTopicArgs { - input: GQLPutIcymiTopicInput -} -export interface MutationToPutIcymiTopicResolver { - ( - parent: TParent, - args: MutationToPutIcymiTopicArgs, - 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 MutationToSetEmailArgs { - input: GQLSetEmailInput -} -export interface MutationToSetEmailResolver { - ( - parent: TParent, - args: MutationToSetEmailArgs, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface MutationToVerifyEmailArgs { - input: GQLVerifyEmailInput -} -export interface MutationToVerifyEmailResolver { - ( - parent: TParent, - args: MutationToVerifyEmailArgs, - 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 MutationToEmailLoginArgs { - input: GQLEmailLoginInput -} -export interface MutationToEmailLoginResolver { - ( - parent: TParent, - args: MutationToEmailLoginArgs, - 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 MutationToAddWalletLoginArgs { - input: GQLWalletLoginInput -} -export interface MutationToAddWalletLoginResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: MutationToAddWalletLoginArgs, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface MutationToRemoveWalletLoginResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: {}, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface MutationToSocialLoginArgs { - input: GQLSocialLoginInput -} -export interface MutationToSocialLoginResolver { - ( - parent: TParent, - args: MutationToSocialLoginArgs, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface MutationToAddSocialLoginArgs { - input: GQLSocialLoginInput -} -export interface MutationToAddSocialLoginResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: MutationToAddSocialLoginArgs, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface MutationToRemoveSocialLoginArgs { - input: GQLRemoveSocialLoginInput -} -export interface MutationToRemoveSocialLoginResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: MutationToRemoveSocialLoginArgs, - 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 MutationToSetUserNameArgs { - input: GQLSetUserNameInput -} -export interface MutationToSetUserNameResolver { - ( - parent: TParent, - args: MutationToSetUserNameArgs, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface MutationToSetPasswordArgs { - input: GQLSetPasswordInput -} -export interface MutationToSetPasswordResolver { - ( - parent: TParent, - args: MutationToSetPasswordArgs, - 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 MutationToUpdateUserExtraArgs { - input: GQLUpdateUserExtraInput -} -export interface MutationToUpdateUserExtraResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: MutationToUpdateUserExtraArgs, - 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 MutationToPutCollectionArgs { - input: GQLPutCollectionInput -} -export interface MutationToPutCollectionResolver { - ( - parent: TParent, - args: MutationToPutCollectionArgs, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface MutationToDeleteCollectionsArgs { - input: GQLDeleteCollectionsInput -} -export interface MutationToDeleteCollectionsResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: MutationToDeleteCollectionsArgs, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface MutationToAddCollectionsArticlesArgs { - input: GQLAddCollectionsArticlesInput -} -export interface MutationToAddCollectionsArticlesResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: MutationToAddCollectionsArticlesArgs, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface MutationToDeleteCollectionArticlesArgs { - input: GQLDeleteCollectionArticlesInput -} -export interface MutationToDeleteCollectionArticlesResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: MutationToDeleteCollectionArticlesArgs, - context: Context, - info: GraphQLResolveInfo - ): TResult -} - -export interface MutationToReorderCollectionArticlesArgs { - input: GQLReorderCollectionArticlesInput -} -export interface MutationToReorderCollectionArticlesResolver< - TParent = any, - TResult = any -> { - ( - parent: TParent, - args: MutationToReorderCollectionArticlesArgs, - 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 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 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 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'] + more: Array + node: RefType['Moment'] + }) + | (Omit & { + actor: RefType['User'] + node: RefType['Article'] + }) + | (Omit & { + nodes?: Maybe> + }) + Invitee: GQLPerson | UserModel + Response: ArticleModel | CommentModel + TransactionTarget: ArticleModel | CircleModel | TransactionModel + Writing: ArticleModel | MomentModel +}> + +/** Mapping of interface types */ +export type GQLResolversInterfaceTypes< + RefType extends Record +> = ResolversObject<{ + Campaign: CampaignModel + Connection: + | (Omit & { + edges?: Maybe> + }) + | (Omit & { + edges?: Maybe> + }) + | (Omit & { + edges: Array> + }) + | (Omit & { + edges?: Maybe> + }) + | (Omit & { + edges?: Maybe> + }) + | (Omit & { + edges?: Maybe> + }) + | (Omit & { + edges?: Maybe> + }) + | (Omit & { + edges?: Maybe> + }) + | GQLFollowingActivityConnection + | (Omit & { + edges: Array + }) + | (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: + | ArticleModel + | ArticleVersionModel + | CircleModel + | CollectionModel + | CommentModel + | DraftModel + | MattersChoiceTopicModel + | MomentModel + | ReportModel + | TagModel + | UserModel + | CampaignModel + Notice: + | NoticeItemModel + | NoticeItemModel + | NoticeItemModel + | NoticeItemModel + | NoticeItemModel + | NoticeItemModel + | NoticeItemModel + | NoticeItemModel + | NoticeItemModel + PinnableWork: ArticleModel | 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 + ApplyCampaignInput: GQLApplyCampaignInput + 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 + ArticleCampaign: ResolverTypeWrapper< + Omit & { + campaign: GQLResolversTypes['Campaign'] + stage: GQLResolversTypes['CampaignStage'] + } + > + ArticleCampaignInput: GQLArticleCampaignInput + 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 + ArticleVersion: ResolverTypeWrapper + ArticleVersionEdge: ResolverTypeWrapper< + Omit & { + node: GQLResolversTypes['ArticleVersion'] + } + > + ArticleVersionsConnection: ResolverTypeWrapper< + Omit & { + edges: Array> + } + > + ArticleVersionsInput: GQLArticleVersionsInput + 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 + Campaign: ResolverTypeWrapper + CampaignApplicationState: GQLCampaignApplicationState + CampaignArticlesFilter: GQLCampaignArticlesFilter + CampaignArticlesInput: GQLCampaignArticlesInput + CampaignConnection: ResolverTypeWrapper< + Omit & { + edges?: Maybe> + } + > + CampaignEdge: ResolverTypeWrapper< + Omit & { node: GQLResolversTypes['Campaign'] } + > + CampaignInput: GQLCampaignInput + CampaignStage: ResolverTypeWrapper + CampaignStageInput: GQLCampaignStageInput + CampaignState: GQLCampaignState + CampaignsInput: GQLCampaignsInput + Chain: GQLChain + ChangeEmailInput: GQLChangeEmailInput + 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 + DatetimeRange: ResolverTypeWrapper + DatetimeRangeInput: GQLDatetimeRangeInput + DeleteAnnouncementsInput: GQLDeleteAnnouncementsInput + DeleteArticlesTagsInput: GQLDeleteArticlesTagsInput + DeleteCollectionArticlesInput: GQLDeleteCollectionArticlesInput + DeleteCollectionsInput: GQLDeleteCollectionsInput + DeleteCommentInput: GQLDeleteCommentInput + DeleteDraftInput: GQLDeleteDraftInput + DeleteMomentInput: GQLDeleteMomentInput + DeleteTagsInput: GQLDeleteTagsInput + 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 + IcymiTopic: ResolverTypeWrapper + IcymiTopicConnection: ResolverTypeWrapper< + Omit & { + edges: Array + } + > + IcymiTopicEdge: ResolverTypeWrapper< + Omit & { node: GQLResolversTypes['IcymiTopic'] } + > + IcymiTopicState: GQLIcymiTopicState + 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 + LikeMomentInput: GQLLikeMomentInput + 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 + Moment: ResolverTypeWrapper + MomentInput: GQLMomentInput + MomentNotice: ResolverTypeWrapper + MomentNoticeType: GQLMomentNoticeType + MomentState: GQLMomentState + 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' + | 'icymiTopics' + | 'oauthClients' + | 'reports' + | 'restrictedUsers' + | 'seedingUsers' + | 'tags' + | 'users' + > & { + articles: GQLResolversTypes['ArticleConnection'] + badgedUsers: GQLResolversTypes['UserConnection'] + comments: GQLResolversTypes['CommentConnection'] + icymiTopics: GQLResolversTypes['IcymiTopicConnection'] + 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 + PutCircleArticlesInput: GQLPutCircleArticlesInput + PutCircleArticlesType: GQLPutCircleArticlesType + PutCircleInput: GQLPutCircleInput + PutCollectionInput: GQLPutCollectionInput + PutCommentInput: GQLPutCommentInput + PutDraftInput: GQLPutDraftInput + PutIcymiTopicInput: GQLPutIcymiTopicInput + PutMomentInput: GQLPutMomentInput + PutOAuthClientInput: GQLPutOAuthClientInput + PutRemarkInput: GQLPutRemarkInput + PutRestrictedUsersInput: GQLPutRestrictedUsersInput + PutSkippedListItemInput: GQLPutSkippedListItemInput + PutTagInput: GQLPutTagInput + PutWritingChallengeInput: GQLPutWritingChallengeInput + 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 + RecommendationFollowingFilterInput: GQLRecommendationFollowingFilterInput + RecommendationFollowingFilterType: GQLRecommendationFollowingFilterType + RecommendationFollowingInput: GQLRecommendationFollowingInput + 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 + 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 + 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 + TranslationInput: GQLTranslationInput + UnbindLikerIdInput: GQLUnbindLikerIdInput + UnlikeMomentInput: GQLUnlikeMomentInput + UnpinCommentInput: GQLUnpinCommentInput + UnsubscribeCircleInput: GQLUnsubscribeCircleInput + UnvoteCommentInput: GQLUnvoteCommentInput + UpdateArticleSensitiveInput: GQLUpdateArticleSensitiveInput + UpdateArticleStateInput: GQLUpdateArticleStateInput + UpdateArticlesTagsInput: GQLUpdateArticlesTagsInput + UpdateCampaignApplicationStateInput: GQLUpdateCampaignApplicationStateInput + 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 + UserPostMomentActivity: ResolverTypeWrapper< + Omit & { + actor: GQLResolversTypes['User'] + more: Array + node: GQLResolversTypes['Moment'] + } + > + 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 + Writing: ResolverTypeWrapper + WritingChallenge: ResolverTypeWrapper + WritingConnection: ResolverTypeWrapper< + Omit & { + edges?: Maybe> + } + > + WritingEdge: ResolverTypeWrapper< + Omit & { node: GQLResolversTypes['Writing'] } + > + WritingInput: GQLWritingInput +}> + +/** 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 + ApplyCampaignInput: GQLApplyCampaignInput + AppreciateArticleInput: GQLAppreciateArticleInput + Appreciation: AppreciationModel + AppreciationConnection: Omit & { + edges?: Maybe> + } + AppreciationEdge: Omit & { + node: GQLResolversParentTypes['Appreciation'] + } + Article: ArticleModel + ArticleAccess: ArticleModel + ArticleArticleNotice: NoticeItemModel + ArticleCampaign: Omit & { + campaign: GQLResolversParentTypes['Campaign'] + stage: GQLResolversParentTypes['CampaignStage'] + } + ArticleCampaignInput: GQLArticleCampaignInput + ArticleConnection: Omit & { + edges?: Maybe> + } + ArticleContents: ArticleVersionModel + ArticleDonation: Omit & { + sender?: Maybe + } + ArticleDonationConnection: Omit & { + edges?: Maybe> + } + ArticleDonationEdge: Omit & { + node: GQLResolversParentTypes['ArticleDonation'] + } + ArticleEdge: Omit & { + node: GQLResolversParentTypes['Article'] + } + ArticleInput: GQLArticleInput + ArticleNotice: NoticeItemModel + ArticleOSS: ArticleModel + ArticleRecommendationActivity: Omit< + GQLArticleRecommendationActivity, + 'nodes' + > & { nodes?: Maybe> } + ArticleTranslation: GQLArticleTranslation + ArticleVersion: ArticleVersionModel + ArticleVersionEdge: Omit & { + node: GQLResolversParentTypes['ArticleVersion'] + } + ArticleVersionsConnection: Omit & { + edges: Array> + } + ArticleVersionsInput: GQLArticleVersionsInput + Asset: AssetModel + AuthResult: Omit & { + user?: Maybe + } + Badge: GQLBadge + BadgedUsersInput: GQLBadgedUsersInput + Balance: GQLBalance + BlockchainTransaction: GQLBlockchainTransaction + BlockedSearchKeyword: GQLBlockedSearchKeyword + Boolean: Scalars['Boolean']['output'] + Campaign: CampaignModel + CampaignArticlesFilter: GQLCampaignArticlesFilter + CampaignArticlesInput: GQLCampaignArticlesInput + CampaignConnection: Omit & { + edges?: Maybe> + } + CampaignEdge: Omit & { + node: GQLResolversParentTypes['Campaign'] + } + CampaignInput: GQLCampaignInput + CampaignStage: CampaignStageModel + CampaignStageInput: GQLCampaignStageInput + CampaignsInput: GQLCampaignsInput + ChangeEmailInput: GQLChangeEmailInput + 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'] + DatetimeRange: GQLDatetimeRange + DatetimeRangeInput: GQLDatetimeRangeInput + DeleteAnnouncementsInput: GQLDeleteAnnouncementsInput + DeleteArticlesTagsInput: GQLDeleteArticlesTagsInput + DeleteCollectionArticlesInput: GQLDeleteCollectionArticlesInput + DeleteCollectionsInput: GQLDeleteCollectionsInput + DeleteCommentInput: GQLDeleteCommentInput + DeleteDraftInput: GQLDeleteDraftInput + DeleteMomentInput: GQLDeleteMomentInput + DeleteTagsInput: GQLDeleteTagsInput + 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'] + IcymiTopic: MattersChoiceTopicModel + IcymiTopicConnection: Omit & { + edges: Array + } + IcymiTopicEdge: Omit & { + node: GQLResolversParentTypes['IcymiTopic'] + } + 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 + LikeMomentInput: GQLLikeMomentInput + Liker: UserModel + LogRecordInput: GQLLogRecordInput + Member: CircleMemberModel + MemberConnection: Omit & { + edges?: Maybe> + } + MemberEdge: Omit & { + node: GQLResolversParentTypes['Member'] + } + MergeTagsInput: GQLMergeTagsInput + MigrationInput: GQLMigrationInput + Moment: MomentModel + MomentInput: GQLMomentInput + MomentNotice: NoticeItemModel + 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' + | 'icymiTopics' + | 'oauthClients' + | 'reports' + | 'restrictedUsers' + | 'seedingUsers' + | 'tags' + | 'users' + > & { + articles: GQLResolversParentTypes['ArticleConnection'] + badgedUsers: GQLResolversParentTypes['UserConnection'] + comments: GQLResolversParentTypes['CommentConnection'] + icymiTopics: GQLResolversParentTypes['IcymiTopicConnection'] + 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 + PutCircleArticlesInput: GQLPutCircleArticlesInput + PutCircleInput: GQLPutCircleInput + PutCollectionInput: GQLPutCollectionInput + PutCommentInput: GQLPutCommentInput + PutDraftInput: GQLPutDraftInput + PutIcymiTopicInput: GQLPutIcymiTopicInput + PutMomentInput: GQLPutMomentInput + PutOAuthClientInput: GQLPutOAuthClientInput + PutRemarkInput: GQLPutRemarkInput + PutRestrictedUsersInput: GQLPutRestrictedUsersInput + PutSkippedListItemInput: GQLPutSkippedListItemInput + PutTagInput: GQLPutTagInput + PutWritingChallengeInput: GQLPutWritingChallengeInput + 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 + RecommendationFollowingFilterInput: GQLRecommendationFollowingFilterInput + RecommendationFollowingInput: GQLRecommendationFollowingInput + 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 + 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 + 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 + TranslationInput: GQLTranslationInput + UnbindLikerIdInput: GQLUnbindLikerIdInput + UnlikeMomentInput: GQLUnlikeMomentInput + UnpinCommentInput: GQLUnpinCommentInput + UnsubscribeCircleInput: GQLUnsubscribeCircleInput + UnvoteCommentInput: GQLUnvoteCommentInput + UpdateArticleSensitiveInput: GQLUpdateArticleSensitiveInput + UpdateArticleStateInput: GQLUpdateArticleStateInput + UpdateArticlesTagsInput: GQLUpdateArticlesTagsInput + UpdateCampaignApplicationStateInput: GQLUpdateCampaignApplicationStateInput + 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 + UserPostMomentActivity: Omit< + GQLUserPostMomentActivity, + 'actor' | 'more' | 'node' + > & { + actor: GQLResolversParentTypes['User'] + more: Array + node: GQLResolversParentTypes['Moment'] + } + 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 + Writing: WritingModel + WritingChallenge: CampaignModel + WritingConnection: Omit & { + edges?: Maybe> + } + WritingEdge: Omit & { + node: GQLResolversParentTypes['Writing'] + } + WritingInput: GQLWritingInput +}> + +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 + > + campaigns?: Resolver< + Array, + 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 + donated?: 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 + > + shortHash?: Resolver + 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 + > + versions?: Resolver< + GQLResolversTypes['ArticleVersionsConnection'], + ParentType, + ContextType, + RequireFields + > + 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 GQLArticleCampaignResolvers< + ContextType = Context, + ParentType extends GQLResolversParentTypes['ArticleCampaign'] = GQLResolversParentTypes['ArticleCampaign'] +> = ResolversObject<{ + campaign?: Resolver + stage?: 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 + > + inSearch?: Resolver + 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 GQLArticleVersionResolvers< + ContextType = Context, + ParentType extends GQLResolversParentTypes['ArticleVersion'] = GQLResolversParentTypes['ArticleVersion'] +> = ResolversObject<{ + contents?: Resolver< + GQLResolversTypes['ArticleContents'], + ParentType, + ContextType + > + createdAt?: Resolver + dataHash?: Resolver< + Maybe, + ParentType, + ContextType + > + description?: Resolver< + Maybe, + ParentType, + ContextType + > + id?: Resolver + mediaHash?: Resolver< + Maybe, + ParentType, + ContextType + > + summary?: Resolver + title?: Resolver + translation?: Resolver< + Maybe, + ParentType, + ContextType, + Partial + > + __isTypeOf?: IsTypeOfResolverFn +}> + +export type GQLArticleVersionEdgeResolvers< + ContextType = Context, + ParentType extends GQLResolversParentTypes['ArticleVersionEdge'] = GQLResolversParentTypes['ArticleVersionEdge'] +> = ResolversObject<{ + cursor?: Resolver + node?: Resolver + __isTypeOf?: IsTypeOfResolverFn +}> + +export type GQLArticleVersionsConnectionResolvers< + ContextType = Context, + ParentType extends GQLResolversParentTypes['ArticleVersionsConnection'] = GQLResolversParentTypes['ArticleVersionsConnection'] +> = ResolversObject<{ + edges?: Resolver< + Array>, + ParentType, + ContextType + > + pageInfo?: Resolver + totalCount?: Resolver + __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 GQLCampaignResolvers< + ContextType = Context, + ParentType extends GQLResolversParentTypes['Campaign'] = GQLResolversParentTypes['Campaign'] +> = ResolversObject<{ + __resolveType: TypeResolveFn<'WritingChallenge', ParentType, ContextType> +}> + +export type GQLCampaignConnectionResolvers< + ContextType = Context, + ParentType extends GQLResolversParentTypes['CampaignConnection'] = GQLResolversParentTypes['CampaignConnection'] +> = ResolversObject<{ + edges?: Resolver< + Maybe>, + ParentType, + ContextType + > + pageInfo?: Resolver + totalCount?: Resolver + __isTypeOf?: IsTypeOfResolverFn +}> + +export type GQLCampaignEdgeResolvers< + ContextType = Context, + ParentType extends GQLResolversParentTypes['CampaignEdge'] = GQLResolversParentTypes['CampaignEdge'] +> = ResolversObject<{ + cursor?: Resolver + node?: Resolver + __isTypeOf?: IsTypeOfResolverFn +}> + +export type GQLCampaignStageResolvers< + ContextType = Context, + ParentType extends GQLResolversParentTypes['CampaignStage'] = GQLResolversParentTypes['CampaignStage'] +> = ResolversObject<{ + id?: Resolver + name?: Resolver + period?: Resolver< + Maybe, + ParentType, + ContextType + > + __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' + | 'ArticleVersionsConnection' + | 'CampaignConnection' + | 'CircleConnection' + | 'CollectionConnection' + | 'CommentConnection' + | 'DraftConnection' + | 'FollowingActivityConnection' + | 'IcymiTopicConnection' + | 'InvitationConnection' + | 'MemberConnection' + | 'NoticeConnection' + | 'OAuthClientConnection' + | 'ReadHistoryConnection' + | 'RecentSearchConnection' + | 'ReportConnection' + | 'ResponseConnection' + | 'SearchResultConnection' + | 'SkippedListItemsConnection' + | 'TagConnection' + | 'TopDonatorConnection' + | 'TransactionConnection' + | 'UserConnection' + | 'WritingConnection', + 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 GQLDatetimeRangeResolvers< + ContextType = Context, + ParentType extends GQLResolversParentTypes['DatetimeRange'] = GQLResolversParentTypes['DatetimeRange'] +> = ResolversObject<{ + end?: Resolver, ParentType, ContextType> + start?: Resolver + __isTypeOf?: IsTypeOfResolverFn +}> + +export type GQLDraftResolvers< + ContextType = Context, + ParentType extends GQLResolversParentTypes['Draft'] = GQLResolversParentTypes['Draft'] +> = ResolversObject<{ + access?: Resolver + article?: Resolver< + Maybe, + ParentType, + ContextType + > + assets?: Resolver, ParentType, ContextType> + campaigns?: Resolver< + Array, + 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' + | 'UserPostMomentActivity' + | '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 GQLIcymiTopicResolvers< + ContextType = Context, + ParentType extends GQLResolversParentTypes['IcymiTopic'] = GQLResolversParentTypes['IcymiTopic'] +> = ResolversObject<{ + archivedAt?: Resolver< + Maybe, + ParentType, + ContextType + > + articles?: Resolver< + Array, + ParentType, + ContextType + > + id?: Resolver + note?: Resolver, ParentType, ContextType> + pinAmount?: Resolver + publishedAt?: Resolver< + Maybe, + ParentType, + ContextType + > + state?: Resolver< + GQLResolversTypes['IcymiTopicState'], + ParentType, + ContextType + > + title?: Resolver + __isTypeOf?: IsTypeOfResolverFn +}> + +export type GQLIcymiTopicConnectionResolvers< + ContextType = Context, + ParentType extends GQLResolversParentTypes['IcymiTopicConnection'] = GQLResolversParentTypes['IcymiTopicConnection'] +> = ResolversObject<{ + edges?: Resolver< + Array, + ParentType, + ContextType + > + pageInfo?: Resolver + totalCount?: Resolver + __isTypeOf?: IsTypeOfResolverFn +}> + +export type GQLIcymiTopicEdgeResolvers< + ContextType = Context, + ParentType extends GQLResolversParentTypes['IcymiTopicEdge'] = GQLResolversParentTypes['IcymiTopicEdge'] +> = ResolversObject<{ + cursor?: Resolver + node?: Resolver + __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 GQLMomentResolvers< + ContextType = Context, + ParentType extends GQLResolversParentTypes['Moment'] = GQLResolversParentTypes['Moment'] +> = ResolversObject<{ + assets?: Resolver, ParentType, ContextType> + author?: Resolver + commentCount?: Resolver + commentedFollowees?: Resolver< + Array, + ParentType, + ContextType + > + comments?: Resolver< + GQLResolversTypes['CommentConnection'], + ParentType, + ContextType, + RequireFields + > + content?: Resolver< + Maybe, + ParentType, + ContextType + > + createdAt?: Resolver + id?: Resolver + likeCount?: Resolver + liked?: Resolver + shortHash?: Resolver + state?: Resolver + __isTypeOf?: IsTypeOfResolverFn +}> + +export type GQLMomentNoticeResolvers< + ContextType = Context, + ParentType extends GQLResolversParentTypes['MomentNotice'] = GQLResolversParentTypes['MomentNotice'] +> = ResolversObject<{ + actors?: Resolver< + Maybe>, + ParentType, + ContextType + > + createdAt?: Resolver + id?: Resolver + target?: Resolver + type?: Resolver< + GQLResolversTypes['MomentNoticeType'], + ParentType, + ContextType + > + unread?: 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 + > + applyCampaign?: Resolver< + GQLResolversTypes['Campaign'], + 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 + > + deleteMoment?: Resolver< + GQLResolversTypes['Moment'], + ParentType, + ContextType, + RequireFields + > + deleteTags?: Resolver< + Maybe, + 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 + > + likeMoment?: Resolver< + GQLResolversTypes['Moment'], + 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 + > + 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 + > + putIcymiTopic?: Resolver< + Maybe, + ParentType, + ContextType, + RequireFields + > + putMoment?: Resolver< + GQLResolversTypes['Moment'], + 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 + > + putWritingChallenge?: Resolver< + GQLResolversTypes['WritingChallenge'], + 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 + > + 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 + > + 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 + > + unlikeMoment?: Resolver< + GQLResolversTypes['Moment'], + 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 + > + updateCampaignApplicationState?: Resolver< + GQLResolversTypes['Campaign'], + 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' + | 'ArticleVersion' + | 'Circle' + | 'Collection' + | 'Comment' + | 'Draft' + | 'IcymiTopic' + | 'Moment' + | 'Report' + | 'Tag' + | 'User' + | 'WritingChallenge', + 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' + | 'MomentNotice' + | '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<{ + 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 + newComment?: Resolver + newLike?: 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 + > + icymiTopics?: Resolver< + GQLResolversTypes['IcymiTopicConnection'], + 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 + > + campaign?: Resolver< + Maybe, + ParentType, + ContextType, + RequireFields + > + campaigns?: Resolver< + GQLResolversTypes['CampaignConnection'], + ParentType, + ContextType, + RequireFields + > + circle?: Resolver< + Maybe, + ParentType, + ContextType, + RequireFields + > + exchangeRates?: Resolver< + Maybe>, + ParentType, + ContextType, + Partial + > + frequentSearch?: Resolver< + Maybe>, + ParentType, + ContextType, + RequireFields + > + moment?: 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 + > + icymiTopic?: Resolver< + Maybe, + ParentType, + ContextType + > + 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 + > + 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 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 + > + campaigns?: Resolver< + GQLResolversTypes['CampaignConnection'], + 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 + > + notices?: Resolver< + GQLResolversTypes['NoticeConnection'], + ParentType, + ContextType, + RequireFields + > + oss?: Resolver + ownCircles?: Resolver< + Maybe>, + ParentType, + ContextType + > + paymentPointer?: Resolver< + Maybe, + ParentType, + ContextType + > + 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 + > + userName?: Resolver< + Maybe, + ParentType, + ContextType + > + wallet?: Resolver + writings?: Resolver< + GQLResolversTypes['WritingConnection'], + ParentType, + ContextType, + RequireFields + > + __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 GQLUserPostMomentActivityResolvers< + ContextType = Context, + ParentType extends GQLResolversParentTypes['UserPostMomentActivity'] = GQLResolversParentTypes['UserPostMomentActivity'] +> = ResolversObject<{ + actor?: Resolver + createdAt?: Resolver + more?: Resolver, ParentType, ContextType> + node?: 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 + > + momentCount?: Resolver + 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 GQLWritingResolvers< + ContextType = Context, + ParentType extends GQLResolversParentTypes['Writing'] = GQLResolversParentTypes['Writing'] +> = ResolversObject<{ + __resolveType: TypeResolveFn<'Article' | 'Moment', ParentType, ContextType> +}> + +export type GQLWritingChallengeResolvers< + ContextType = Context, + ParentType extends GQLResolversParentTypes['WritingChallenge'] = GQLResolversParentTypes['WritingChallenge'] +> = ResolversObject<{ + applicationPeriod?: Resolver< + GQLResolversTypes['DatetimeRange'], + ParentType, + ContextType + > + applicationState?: Resolver< + Maybe, + ParentType, + ContextType + > + articles?: Resolver< + GQLResolversTypes['ArticleConnection'], + ParentType, + ContextType, + RequireFields + > + cover?: Resolver, ParentType, ContextType> + description?: Resolver + id?: Resolver + link?: Resolver + name?: Resolver + participants?: Resolver< + GQLResolversTypes['UserConnection'], + ParentType, + ContextType, + RequireFields + > + shortHash?: Resolver + stages?: Resolver< + Array, + ParentType, + ContextType + > + state?: Resolver + writingPeriod?: Resolver< + GQLResolversTypes['DatetimeRange'], + ParentType, + ContextType + > + __isTypeOf?: IsTypeOfResolverFn +}> + +export type GQLWritingConnectionResolvers< + ContextType = Context, + ParentType extends GQLResolversParentTypes['WritingConnection'] = GQLResolversParentTypes['WritingConnection'] +> = ResolversObject<{ + edges?: Resolver< + Maybe>, + ParentType, + ContextType + > + pageInfo?: Resolver + totalCount?: Resolver + __isTypeOf?: IsTypeOfResolverFn +}> + +export type GQLWritingEdgeResolvers< + ContextType = Context, + ParentType extends GQLResolversParentTypes['WritingEdge'] = GQLResolversParentTypes['WritingEdge'] +> = ResolversObject<{ + cursor?: Resolver + node?: Resolver + __isTypeOf?: IsTypeOfResolverFn +}> + +export type GQLResolvers = ResolversObject<{ + AddCreditResult?: GQLAddCreditResultResolvers + Announcement?: GQLAnnouncementResolvers + Appreciation?: GQLAppreciationResolvers + AppreciationConnection?: GQLAppreciationConnectionResolvers + AppreciationEdge?: GQLAppreciationEdgeResolvers + Article?: GQLArticleResolvers + ArticleAccess?: GQLArticleAccessResolvers + ArticleArticleNotice?: GQLArticleArticleNoticeResolvers + ArticleCampaign?: GQLArticleCampaignResolvers + ArticleConnection?: GQLArticleConnectionResolvers + ArticleContents?: GQLArticleContentsResolvers + ArticleDonation?: GQLArticleDonationResolvers + ArticleDonationConnection?: GQLArticleDonationConnectionResolvers + ArticleDonationEdge?: GQLArticleDonationEdgeResolvers + ArticleEdge?: GQLArticleEdgeResolvers + ArticleNotice?: GQLArticleNoticeResolvers + ArticleOSS?: GQLArticleOssResolvers + ArticleRecommendationActivity?: GQLArticleRecommendationActivityResolvers< + ContextType + > + ArticleTranslation?: GQLArticleTranslationResolvers + ArticleVersion?: GQLArticleVersionResolvers + ArticleVersionEdge?: GQLArticleVersionEdgeResolvers + ArticleVersionsConnection?: GQLArticleVersionsConnectionResolvers + Asset?: GQLAssetResolvers + AuthResult?: GQLAuthResultResolvers + Badge?: GQLBadgeResolvers + Balance?: GQLBalanceResolvers + BlockchainTransaction?: GQLBlockchainTransactionResolvers + BlockedSearchKeyword?: GQLBlockedSearchKeywordResolvers + Campaign?: GQLCampaignResolvers + CampaignConnection?: GQLCampaignConnectionResolvers + CampaignEdge?: GQLCampaignEdgeResolvers + CampaignStage?: GQLCampaignStageResolvers + 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 + DatetimeRange?: GQLDatetimeRangeResolvers + Draft?: GQLDraftResolvers + DraftAccess?: GQLDraftAccessResolvers + DraftConnection?: GQLDraftConnectionResolvers + DraftEdge?: GQLDraftEdgeResolvers + ExchangeRate?: GQLExchangeRateResolvers + Feature?: GQLFeatureResolvers + Following?: GQLFollowingResolvers + FollowingActivity?: GQLFollowingActivityResolvers + FollowingActivityConnection?: GQLFollowingActivityConnectionResolvers< + ContextType + > + FollowingActivityEdge?: GQLFollowingActivityEdgeResolvers + IcymiTopic?: GQLIcymiTopicResolvers + IcymiTopicConnection?: GQLIcymiTopicConnectionResolvers + IcymiTopicEdge?: GQLIcymiTopicEdgeResolvers + Invitation?: GQLInvitationResolvers + InvitationConnection?: GQLInvitationConnectionResolvers + InvitationEdge?: GQLInvitationEdgeResolvers + Invitee?: GQLInviteeResolvers + Invites?: GQLInvitesResolvers + Liker?: GQLLikerResolvers + Member?: GQLMemberResolvers + MemberConnection?: GQLMemberConnectionResolvers + MemberEdge?: GQLMemberEdgeResolvers + Moment?: GQLMomentResolvers + MomentNotice?: GQLMomentNoticeResolvers + 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 + 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 + UserPostMomentActivity?: GQLUserPostMomentActivityResolvers + UserPublishArticleActivity?: GQLUserPublishArticleActivityResolvers< + ContextType + > + UserRecommendationActivity?: GQLUserRecommendationActivityResolvers< + ContextType + > + UserRestriction?: GQLUserRestrictionResolvers + UserSettings?: GQLUserSettingsResolvers + UserStatus?: GQLUserStatusResolvers + Wallet?: GQLWalletResolvers + Writing?: GQLWritingResolvers + WritingChallenge?: GQLWritingChallengeResolvers + WritingConnection?: GQLWritingConnectionResolvers + WritingEdge?: GQLWritingEdgeResolvers +}> + +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/campaign/detail.gql b/src/gql/fragments/campaign/detail.gql new file mode 100644 index 00000000..99d29b88 --- /dev/null +++ b/src/gql/fragments/campaign/detail.gql @@ -0,0 +1,37 @@ +#import "../article/id.gql" +#import "../user/id.gql" +#import "./digest.gql" + +fragment CampaignDetail on Campaign { + id + ...CampaignDigest + ...on WritingChallenge { + description + cover + link + stages { + id + name + period { + start + end + } + } + participants(input: { first: null }) { + edges { + node { + ...UserId + } + } + } + articles(input: { first: null }) { + edges { + node { + ...ArticleId + } + } + } + } +} + + diff --git a/src/gql/fragments/campaign/digest.gql b/src/gql/fragments/campaign/digest.gql new file mode 100644 index 00000000..03dd5f5e --- /dev/null +++ b/src/gql/fragments/campaign/digest.gql @@ -0,0 +1,18 @@ +fragment CampaignDigest on Campaign { + id + name + shortHash + state + ...on WritingChallenge { + applicationPeriod { + start + end + } + writingPeriod { + start + end + } + } +} + + diff --git a/src/gql/fragments/campaign/id.gql b/src/gql/fragments/campaign/id.gql new file mode 100644 index 00000000..e69de29b diff --git a/src/gql/queries/campaignDetail.gql b/src/gql/queries/campaignDetail.gql new file mode 100644 index 00000000..79db0fbe --- /dev/null +++ b/src/gql/queries/campaignDetail.gql @@ -0,0 +1,7 @@ +#import "../fragments/campaign/detail.gql" + +query OSSCampaignDetail($shortHash: String!) { + campaign(input: { shortHash: $shortHash }) { + ...CampaignDetail + } +} diff --git a/src/gql/queries/campaignList.gql b/src/gql/queries/campaignList.gql new file mode 100644 index 00000000..4fc03549 --- /dev/null +++ b/src/gql/queries/campaignList.gql @@ -0,0 +1,13 @@ +#import "../fragments/connection.gql" +#import "../fragments/campaign/digest.gql" + +query OSSCampaignList($first: Int, $after: String) { + campaigns(input: { first: $first, after: $after, oss: true }) { + ...ConnectionInfo + edges { + node { + ...CampaignDigest + } + } + } +} diff --git a/src/pages/CampaignList/index.tsx b/src/pages/CampaignList/index.tsx new file mode 100644 index 00000000..2234543a --- /dev/null +++ b/src/pages/CampaignList/index.tsx @@ -0,0 +1,41 @@ +import React from 'react' + +import ErrorMessage from '../../components/ErrorMessage' +import CampaignDigestList from '../../components/Campaign/DigestList' +import withCampaignList, { CampaignListChildProps } from './withCampaignList' + +import { CampaignDigest } from '../../definitions' + +class CampaignList extends React.Component { + private _renderContent() { + const { + data: { oss, loading, error, fetchMore, variables }, + } = this.props + + if (error) { + return + } + + let listData: CampaignDigest[] = [] + let totalCount: number = 0 + + if (oss) { + listData = oss.campaigns.edges.map(({ node }) => node) + totalCount = oss.campaigns.totalCount + } + + return ( + + ) + } + + public render() { + return <>{this._renderContent()} + } +} + +export default withCampaignList(CampaignList) diff --git a/src/pages/CampaignList/withCampaignList.tsx b/src/pages/CampaignList/withCampaignList.tsx new file mode 100644 index 00000000..20fbd706 --- /dev/null +++ b/src/pages/CampaignList/withCampaignList.tsx @@ -0,0 +1,52 @@ +import { graphql, ChildDataProps, compose } from 'react-apollo' +import { RouteComponentProps } from 'react-router-dom' + +import { PAGE_SIZE } from '../../constants' +import { + CampaignDigest, + GQLConnectionArgs, + Connection, +} from '../../definitions' +import { getSearchKey, getCurrentPaginationFromUrl } from '../../utils' +import QueryCampaignList from '../../gql/queries/campaignList.gql' + +type AllCampaignsResponse = { + oss: { + campaigns: Connection + } +} +type AllCampaignsInputProps = RouteComponentProps +type AllCampaignsVariables = { + input: GQLConnectionArgs +} +type AllCampaignsChildProps = ChildDataProps< + AllCampaignsInputProps, + AllCampaignsResponse, + AllCampaignsVariables +> + +export type CampaignListChildProps = AllCampaignsChildProps + +const allCampaigns = graphql< + AllCampaignsInputProps, + AllCampaignsResponse, + AllCampaignsVariables, + AllCampaignsChildProps +>(QueryCampaignList, { + // name: 'allCampaign', + options: (props) => { + const currentPagination = getCurrentPaginationFromUrl() + return { + notifyOnNetworkStatusChange: true, + variables: { + input: { + first: PAGE_SIZE, + after: currentPagination && currentPagination.after, + }, + }, + } + }, + skip: () => !!getSearchKey(), +}) + +export default compose(allCampaigns) diff --git a/src/routes/campaign.tsx b/src/routes/campaign.tsx new file mode 100644 index 00000000..f53bb79d --- /dev/null +++ b/src/routes/campaign.tsx @@ -0,0 +1,36 @@ +import * as React from 'react' +import { RouteConfigComponentProps } from 'react-router-config' + +import Layout from '../components/Layout' +import Private from '../components/Private' +import CampaignList from '../pages/CampaignList' +// import CampaignDetail from '../pages/CampaignDetail' + +import { PATH } from '../constants' + +const campaignRoutes = [ + { + path: PATH.CAMPAIGN_LIST, + exact: true, + component: (props: RouteConfigComponentProps) => ( + + + + + + + ), + }, + { + path: PATH.CAMPAIGN_DETAIL, + exact: true, + component: (props: RouteConfigComponentProps) => ( + + + {/* */} + + ), + }, +] + +export default campaignRoutes