diff --git a/package-lock.json b/package-lock.json
index 481d703f..75657be6 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "matters-oss",
- "version": "0.28.0",
+ "version": "0.28.1",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "matters-oss",
- "version": "0.28.0",
+ "version": "0.28.1",
"dependencies": {
"@ant-design/icons": "^4.2.1",
"@babel/core": "7.10.5",
@@ -9482,13 +9482,11 @@
},
"node_modules/chokidar/node_modules/fsevents/node_modules/abbrev": {
"version": "1.1.1",
- "extraneous": true,
"inBundle": true,
"license": "ISC"
},
"node_modules/chokidar/node_modules/fsevents/node_modules/ansi-regex": {
"version": "2.1.1",
- "extraneous": true,
"inBundle": true,
"license": "MIT",
"engines": {
@@ -9497,13 +9495,11 @@
},
"node_modules/chokidar/node_modules/fsevents/node_modules/aproba": {
"version": "1.2.0",
- "extraneous": true,
"inBundle": true,
"license": "ISC"
},
"node_modules/chokidar/node_modules/fsevents/node_modules/are-we-there-yet": {
"version": "1.1.5",
- "extraneous": true,
"inBundle": true,
"license": "ISC",
"dependencies": {
@@ -9513,13 +9509,11 @@
},
"node_modules/chokidar/node_modules/fsevents/node_modules/balanced-match": {
"version": "1.0.0",
- "extraneous": true,
"inBundle": true,
"license": "MIT"
},
"node_modules/chokidar/node_modules/fsevents/node_modules/brace-expansion": {
"version": "1.1.11",
- "extraneous": true,
"inBundle": true,
"license": "MIT",
"dependencies": {
@@ -9529,13 +9523,11 @@
},
"node_modules/chokidar/node_modules/fsevents/node_modules/chownr": {
"version": "1.1.3",
- "extraneous": true,
"inBundle": true,
"license": "ISC"
},
"node_modules/chokidar/node_modules/fsevents/node_modules/code-point-at": {
"version": "1.1.0",
- "extraneous": true,
"inBundle": true,
"license": "MIT",
"engines": {
@@ -9544,25 +9536,21 @@
},
"node_modules/chokidar/node_modules/fsevents/node_modules/concat-map": {
"version": "0.0.1",
- "extraneous": true,
"inBundle": true,
"license": "MIT"
},
"node_modules/chokidar/node_modules/fsevents/node_modules/console-control-strings": {
"version": "1.1.0",
- "extraneous": true,
"inBundle": true,
"license": "ISC"
},
"node_modules/chokidar/node_modules/fsevents/node_modules/core-util-is": {
"version": "1.0.2",
- "extraneous": true,
"inBundle": true,
"license": "MIT"
},
"node_modules/chokidar/node_modules/fsevents/node_modules/debug": {
"version": "3.2.6",
- "extraneous": true,
"inBundle": true,
"license": "MIT",
"dependencies": {
@@ -9571,7 +9559,6 @@
},
"node_modules/chokidar/node_modules/fsevents/node_modules/deep-extend": {
"version": "0.6.0",
- "extraneous": true,
"inBundle": true,
"license": "MIT",
"engines": {
@@ -9580,13 +9567,11 @@
},
"node_modules/chokidar/node_modules/fsevents/node_modules/delegates": {
"version": "1.0.0",
- "extraneous": true,
"inBundle": true,
"license": "MIT"
},
"node_modules/chokidar/node_modules/fsevents/node_modules/detect-libc": {
"version": "1.0.3",
- "extraneous": true,
"inBundle": true,
"license": "Apache-2.0",
"bin": {
@@ -9598,7 +9583,6 @@
},
"node_modules/chokidar/node_modules/fsevents/node_modules/fs-minipass": {
"version": "1.2.7",
- "extraneous": true,
"inBundle": true,
"license": "ISC",
"dependencies": {
@@ -9607,13 +9591,11 @@
},
"node_modules/chokidar/node_modules/fsevents/node_modules/fs.realpath": {
"version": "1.0.0",
- "extraneous": true,
"inBundle": true,
"license": "ISC"
},
"node_modules/chokidar/node_modules/fsevents/node_modules/gauge": {
"version": "2.7.4",
- "extraneous": true,
"inBundle": true,
"license": "ISC",
"dependencies": {
@@ -9629,7 +9611,6 @@
},
"node_modules/chokidar/node_modules/fsevents/node_modules/glob": {
"version": "7.1.6",
- "extraneous": true,
"inBundle": true,
"license": "ISC",
"dependencies": {
@@ -9649,13 +9630,11 @@
},
"node_modules/chokidar/node_modules/fsevents/node_modules/has-unicode": {
"version": "2.0.1",
- "extraneous": true,
"inBundle": true,
"license": "ISC"
},
"node_modules/chokidar/node_modules/fsevents/node_modules/iconv-lite": {
"version": "0.4.24",
- "extraneous": true,
"inBundle": true,
"license": "MIT",
"dependencies": {
@@ -9667,7 +9646,6 @@
},
"node_modules/chokidar/node_modules/fsevents/node_modules/ignore-walk": {
"version": "3.0.3",
- "extraneous": true,
"inBundle": true,
"license": "ISC",
"dependencies": {
@@ -9676,7 +9654,6 @@
},
"node_modules/chokidar/node_modules/fsevents/node_modules/inflight": {
"version": "1.0.6",
- "extraneous": true,
"inBundle": true,
"license": "ISC",
"dependencies": {
@@ -9686,13 +9663,11 @@
},
"node_modules/chokidar/node_modules/fsevents/node_modules/inherits": {
"version": "2.0.4",
- "extraneous": true,
"inBundle": true,
"license": "ISC"
},
"node_modules/chokidar/node_modules/fsevents/node_modules/ini": {
"version": "1.3.5",
- "extraneous": true,
"inBundle": true,
"license": "ISC",
"engines": {
@@ -9701,7 +9676,6 @@
},
"node_modules/chokidar/node_modules/fsevents/node_modules/is-fullwidth-code-point": {
"version": "1.0.0",
- "extraneous": true,
"inBundle": true,
"license": "MIT",
"dependencies": {
@@ -9713,13 +9687,11 @@
},
"node_modules/chokidar/node_modules/fsevents/node_modules/isarray": {
"version": "1.0.0",
- "extraneous": true,
"inBundle": true,
"license": "MIT"
},
"node_modules/chokidar/node_modules/fsevents/node_modules/minimatch": {
"version": "3.0.4",
- "extraneous": true,
"inBundle": true,
"license": "ISC",
"dependencies": {
@@ -9731,13 +9703,11 @@
},
"node_modules/chokidar/node_modules/fsevents/node_modules/minimist": {
"version": "0.0.8",
- "extraneous": true,
"inBundle": true,
"license": "MIT"
},
"node_modules/chokidar/node_modules/fsevents/node_modules/minipass": {
"version": "2.9.0",
- "extraneous": true,
"inBundle": true,
"license": "ISC",
"dependencies": {
@@ -9747,7 +9717,6 @@
},
"node_modules/chokidar/node_modules/fsevents/node_modules/minizlib": {
"version": "1.3.3",
- "extraneous": true,
"inBundle": true,
"license": "MIT",
"dependencies": {
@@ -9756,7 +9725,6 @@
},
"node_modules/chokidar/node_modules/fsevents/node_modules/mkdirp": {
"version": "0.5.1",
- "extraneous": true,
"inBundle": true,
"license": "MIT",
"dependencies": {
@@ -9768,13 +9736,11 @@
},
"node_modules/chokidar/node_modules/fsevents/node_modules/ms": {
"version": "2.1.2",
- "extraneous": true,
"inBundle": true,
"license": "MIT"
},
"node_modules/chokidar/node_modules/fsevents/node_modules/needle": {
"version": "2.4.0",
- "extraneous": true,
"inBundle": true,
"license": "MIT",
"dependencies": {
@@ -9791,7 +9757,6 @@
},
"node_modules/chokidar/node_modules/fsevents/node_modules/node-pre-gyp": {
"version": "0.14.0",
- "extraneous": true,
"inBundle": true,
"license": "BSD-3-Clause",
"dependencies": {
@@ -9812,7 +9777,6 @@
},
"node_modules/chokidar/node_modules/fsevents/node_modules/nopt": {
"version": "4.0.1",
- "extraneous": true,
"inBundle": true,
"license": "ISC",
"dependencies": {
@@ -9825,7 +9789,6 @@
},
"node_modules/chokidar/node_modules/fsevents/node_modules/npm-bundled": {
"version": "1.1.1",
- "extraneous": true,
"inBundle": true,
"license": "ISC",
"dependencies": {
@@ -9834,13 +9797,11 @@
},
"node_modules/chokidar/node_modules/fsevents/node_modules/npm-normalize-package-bin": {
"version": "1.0.1",
- "extraneous": true,
"inBundle": true,
"license": "ISC"
},
"node_modules/chokidar/node_modules/fsevents/node_modules/npm-packlist": {
"version": "1.4.7",
- "extraneous": true,
"inBundle": true,
"license": "ISC",
"dependencies": {
@@ -9850,7 +9811,6 @@
},
"node_modules/chokidar/node_modules/fsevents/node_modules/npmlog": {
"version": "4.1.2",
- "extraneous": true,
"inBundle": true,
"license": "ISC",
"dependencies": {
@@ -9862,7 +9822,6 @@
},
"node_modules/chokidar/node_modules/fsevents/node_modules/number-is-nan": {
"version": "1.0.1",
- "extraneous": true,
"inBundle": true,
"license": "MIT",
"engines": {
@@ -9871,7 +9830,6 @@
},
"node_modules/chokidar/node_modules/fsevents/node_modules/object-assign": {
"version": "4.1.1",
- "extraneous": true,
"inBundle": true,
"license": "MIT",
"engines": {
@@ -9880,7 +9838,6 @@
},
"node_modules/chokidar/node_modules/fsevents/node_modules/once": {
"version": "1.4.0",
- "extraneous": true,
"inBundle": true,
"license": "ISC",
"dependencies": {
@@ -9889,7 +9846,6 @@
},
"node_modules/chokidar/node_modules/fsevents/node_modules/os-homedir": {
"version": "1.0.2",
- "extraneous": true,
"inBundle": true,
"license": "MIT",
"engines": {
@@ -9898,7 +9854,6 @@
},
"node_modules/chokidar/node_modules/fsevents/node_modules/os-tmpdir": {
"version": "1.0.2",
- "extraneous": true,
"inBundle": true,
"license": "MIT",
"engines": {
@@ -9907,7 +9862,6 @@
},
"node_modules/chokidar/node_modules/fsevents/node_modules/osenv": {
"version": "0.1.5",
- "extraneous": true,
"inBundle": true,
"license": "ISC",
"dependencies": {
@@ -9917,7 +9871,6 @@
},
"node_modules/chokidar/node_modules/fsevents/node_modules/path-is-absolute": {
"version": "1.0.1",
- "extraneous": true,
"inBundle": true,
"license": "MIT",
"engines": {
@@ -9926,13 +9879,11 @@
},
"node_modules/chokidar/node_modules/fsevents/node_modules/process-nextick-args": {
"version": "2.0.1",
- "extraneous": true,
"inBundle": true,
"license": "MIT"
},
"node_modules/chokidar/node_modules/fsevents/node_modules/rc": {
"version": "1.2.8",
- "extraneous": true,
"inBundle": true,
"license": "(BSD-2-Clause OR MIT OR Apache-2.0)",
"dependencies": {
@@ -9947,13 +9898,11 @@
},
"node_modules/chokidar/node_modules/fsevents/node_modules/rc/node_modules/minimist": {
"version": "1.2.0",
- "extraneous": true,
"inBundle": true,
"license": "MIT"
},
"node_modules/chokidar/node_modules/fsevents/node_modules/readable-stream": {
"version": "2.3.6",
- "extraneous": true,
"inBundle": true,
"license": "MIT",
"dependencies": {
@@ -9968,7 +9917,6 @@
},
"node_modules/chokidar/node_modules/fsevents/node_modules/rimraf": {
"version": "2.7.1",
- "extraneous": true,
"inBundle": true,
"license": "ISC",
"dependencies": {
@@ -9980,25 +9928,21 @@
},
"node_modules/chokidar/node_modules/fsevents/node_modules/safe-buffer": {
"version": "5.1.2",
- "extraneous": true,
"inBundle": true,
"license": "MIT"
},
"node_modules/chokidar/node_modules/fsevents/node_modules/safer-buffer": {
"version": "2.1.2",
- "extraneous": true,
"inBundle": true,
"license": "MIT"
},
"node_modules/chokidar/node_modules/fsevents/node_modules/sax": {
"version": "1.2.4",
- "extraneous": true,
"inBundle": true,
"license": "ISC"
},
"node_modules/chokidar/node_modules/fsevents/node_modules/semver": {
"version": "5.7.1",
- "extraneous": true,
"inBundle": true,
"license": "ISC",
"bin": {
@@ -10007,19 +9951,16 @@
},
"node_modules/chokidar/node_modules/fsevents/node_modules/set-blocking": {
"version": "2.0.0",
- "extraneous": true,
"inBundle": true,
"license": "ISC"
},
"node_modules/chokidar/node_modules/fsevents/node_modules/signal-exit": {
"version": "3.0.2",
- "extraneous": true,
"inBundle": true,
"license": "ISC"
},
"node_modules/chokidar/node_modules/fsevents/node_modules/string_decoder": {
"version": "1.1.1",
- "extraneous": true,
"inBundle": true,
"license": "MIT",
"dependencies": {
@@ -10028,7 +9969,6 @@
},
"node_modules/chokidar/node_modules/fsevents/node_modules/string-width": {
"version": "1.0.2",
- "extraneous": true,
"inBundle": true,
"license": "MIT",
"dependencies": {
@@ -10042,7 +9982,6 @@
},
"node_modules/chokidar/node_modules/fsevents/node_modules/strip-ansi": {
"version": "3.0.1",
- "extraneous": true,
"inBundle": true,
"license": "MIT",
"dependencies": {
@@ -10054,7 +9993,6 @@
},
"node_modules/chokidar/node_modules/fsevents/node_modules/strip-json-comments": {
"version": "2.0.1",
- "extraneous": true,
"inBundle": true,
"license": "MIT",
"engines": {
@@ -10063,7 +10001,6 @@
},
"node_modules/chokidar/node_modules/fsevents/node_modules/tar": {
"version": "4.4.13",
- "extraneous": true,
"inBundle": true,
"license": "ISC",
"dependencies": {
@@ -10081,13 +10018,11 @@
},
"node_modules/chokidar/node_modules/fsevents/node_modules/util-deprecate": {
"version": "1.0.2",
- "extraneous": true,
"inBundle": true,
"license": "MIT"
},
"node_modules/chokidar/node_modules/fsevents/node_modules/wide-align": {
"version": "1.1.3",
- "extraneous": true,
"inBundle": true,
"license": "ISC",
"dependencies": {
@@ -10096,13 +10031,11 @@
},
"node_modules/chokidar/node_modules/fsevents/node_modules/wrappy": {
"version": "1.0.2",
- "extraneous": true,
"inBundle": true,
"license": "ISC"
},
"node_modules/chokidar/node_modules/fsevents/node_modules/yallist": {
"version": "3.1.1",
- "extraneous": true,
"inBundle": true,
"license": "ISC"
},
@@ -37949,23 +37882,19 @@
"dependencies": {
"abbrev": {
"version": "1.1.1",
- "bundled": true,
- "extraneous": true
+ "bundled": true
},
"ansi-regex": {
"version": "2.1.1",
- "bundled": true,
- "extraneous": true
+ "bundled": true
},
"aproba": {
"version": "1.2.0",
- "bundled": true,
- "extraneous": true
+ "bundled": true
},
"are-we-there-yet": {
"version": "1.1.5",
"bundled": true,
- "extraneous": true,
"requires": {
"delegates": "^1.0.0",
"readable-stream": "^2.0.6"
@@ -37973,13 +37902,11 @@
},
"balanced-match": {
"version": "1.0.0",
- "bundled": true,
- "extraneous": true
+ "bundled": true
},
"brace-expansion": {
"version": "1.1.11",
"bundled": true,
- "extraneous": true,
"requires": {
"balanced-match": "^1.0.0",
"concat-map": "0.0.1"
@@ -37987,69 +37914,57 @@
},
"chownr": {
"version": "1.1.3",
- "bundled": true,
- "extraneous": true
+ "bundled": true
},
"code-point-at": {
"version": "1.1.0",
- "bundled": true,
- "extraneous": true
+ "bundled": true
},
"concat-map": {
"version": "0.0.1",
- "bundled": true,
- "extraneous": true
+ "bundled": true
},
"console-control-strings": {
"version": "1.1.0",
- "bundled": true,
- "extraneous": true
+ "bundled": true
},
"core-util-is": {
"version": "1.0.2",
- "bundled": true,
- "extraneous": true
+ "bundled": true
},
"debug": {
"version": "3.2.6",
"bundled": true,
- "extraneous": true,
"requires": {
"ms": "^2.1.1"
}
},
"deep-extend": {
"version": "0.6.0",
- "bundled": true,
- "extraneous": true
+ "bundled": true
},
"delegates": {
"version": "1.0.0",
- "bundled": true,
- "extraneous": true
+ "bundled": true
},
"detect-libc": {
"version": "1.0.3",
- "bundled": true,
- "extraneous": true
+ "bundled": true
},
"fs-minipass": {
"version": "1.2.7",
"bundled": true,
- "extraneous": true,
"requires": {
"minipass": "^2.6.0"
}
},
"fs.realpath": {
"version": "1.0.0",
- "bundled": true,
- "extraneous": true
+ "bundled": true
},
"gauge": {
"version": "2.7.4",
"bundled": true,
- "extraneous": true,
"requires": {
"aproba": "^1.0.3",
"console-control-strings": "^1.0.0",
@@ -38064,7 +37979,6 @@
"glob": {
"version": "7.1.6",
"bundled": true,
- "extraneous": true,
"requires": {
"fs.realpath": "^1.0.0",
"inflight": "^1.0.4",
@@ -38076,13 +37990,11 @@
},
"has-unicode": {
"version": "2.0.1",
- "bundled": true,
- "extraneous": true
+ "bundled": true
},
"iconv-lite": {
"version": "0.4.24",
"bundled": true,
- "extraneous": true,
"requires": {
"safer-buffer": ">= 2.1.2 < 3"
}
@@ -38090,7 +38002,6 @@
"ignore-walk": {
"version": "3.0.3",
"bundled": true,
- "extraneous": true,
"requires": {
"minimatch": "^3.0.4"
}
@@ -38098,7 +38009,6 @@
"inflight": {
"version": "1.0.6",
"bundled": true,
- "extraneous": true,
"requires": {
"once": "^1.3.0",
"wrappy": "1"
@@ -38106,44 +38016,37 @@
},
"inherits": {
"version": "2.0.4",
- "bundled": true,
- "extraneous": true
+ "bundled": true
},
"ini": {
"version": "1.3.5",
- "bundled": true,
- "extraneous": true
+ "bundled": true
},
"is-fullwidth-code-point": {
"version": "1.0.0",
"bundled": true,
- "extraneous": true,
"requires": {
"number-is-nan": "^1.0.0"
}
},
"isarray": {
"version": "1.0.0",
- "bundled": true,
- "extraneous": true
+ "bundled": true
},
"minimatch": {
"version": "3.0.4",
"bundled": true,
- "extraneous": true,
"requires": {
"brace-expansion": "^1.1.7"
}
},
"minimist": {
"version": "0.0.8",
- "bundled": true,
- "extraneous": true
+ "bundled": true
},
"minipass": {
"version": "2.9.0",
"bundled": true,
- "extraneous": true,
"requires": {
"safe-buffer": "^5.1.2",
"yallist": "^3.0.0"
@@ -38152,7 +38055,6 @@
"minizlib": {
"version": "1.3.3",
"bundled": true,
- "extraneous": true,
"requires": {
"minipass": "^2.9.0"
}
@@ -38160,20 +38062,17 @@
"mkdirp": {
"version": "0.5.1",
"bundled": true,
- "extraneous": true,
"requires": {
"minimist": "0.0.8"
}
},
"ms": {
"version": "2.1.2",
- "bundled": true,
- "extraneous": true
+ "bundled": true
},
"needle": {
"version": "2.4.0",
"bundled": true,
- "extraneous": true,
"requires": {
"debug": "^3.2.6",
"iconv-lite": "^0.4.4",
@@ -38183,7 +38082,6 @@
"node-pre-gyp": {
"version": "0.14.0",
"bundled": true,
- "extraneous": true,
"requires": {
"detect-libc": "^1.0.2",
"mkdirp": "^0.5.1",
@@ -38200,7 +38098,6 @@
"nopt": {
"version": "4.0.1",
"bundled": true,
- "extraneous": true,
"requires": {
"abbrev": "1",
"osenv": "^0.1.4"
@@ -38209,20 +38106,17 @@
"npm-bundled": {
"version": "1.1.1",
"bundled": true,
- "extraneous": true,
"requires": {
"npm-normalize-package-bin": "^1.0.1"
}
},
"npm-normalize-package-bin": {
"version": "1.0.1",
- "bundled": true,
- "extraneous": true
+ "bundled": true
},
"npm-packlist": {
"version": "1.4.7",
"bundled": true,
- "extraneous": true,
"requires": {
"ignore-walk": "^3.0.1",
"npm-bundled": "^1.0.1"
@@ -38231,7 +38125,6 @@
"npmlog": {
"version": "4.1.2",
"bundled": true,
- "extraneous": true,
"requires": {
"are-we-there-yet": "~1.1.2",
"console-control-strings": "~1.1.0",
@@ -38241,36 +38134,30 @@
},
"number-is-nan": {
"version": "1.0.1",
- "bundled": true,
- "extraneous": true
+ "bundled": true
},
"object-assign": {
"version": "4.1.1",
- "bundled": true,
- "extraneous": true
+ "bundled": true
},
"once": {
"version": "1.4.0",
"bundled": true,
- "extraneous": true,
"requires": {
"wrappy": "1"
}
},
"os-homedir": {
"version": "1.0.2",
- "bundled": true,
- "extraneous": true
+ "bundled": true
},
"os-tmpdir": {
"version": "1.0.2",
- "bundled": true,
- "extraneous": true
+ "bundled": true
},
"osenv": {
"version": "0.1.5",
"bundled": true,
- "extraneous": true,
"requires": {
"os-homedir": "^1.0.0",
"os-tmpdir": "^1.0.0"
@@ -38278,18 +38165,15 @@
},
"path-is-absolute": {
"version": "1.0.1",
- "bundled": true,
- "extraneous": true
+ "bundled": true
},
"process-nextick-args": {
"version": "2.0.1",
- "bundled": true,
- "extraneous": true
+ "bundled": true
},
"rc": {
"version": "1.2.8",
"bundled": true,
- "extraneous": true,
"requires": {
"deep-extend": "^0.6.0",
"ini": "~1.3.0",
@@ -38299,15 +38183,13 @@
"dependencies": {
"minimist": {
"version": "1.2.0",
- "bundled": true,
- "extraneous": true
+ "bundled": true
}
}
},
"readable-stream": {
"version": "2.3.6",
"bundled": true,
- "extraneous": true,
"requires": {
"core-util-is": "~1.0.0",
"inherits": "~2.0.3",
@@ -38321,45 +38203,37 @@
"rimraf": {
"version": "2.7.1",
"bundled": true,
- "extraneous": true,
"requires": {
"glob": "^7.1.3"
}
},
"safe-buffer": {
"version": "5.1.2",
- "bundled": true,
- "extraneous": true
+ "bundled": true
},
"safer-buffer": {
"version": "2.1.2",
- "bundled": true,
- "extraneous": true
+ "bundled": true
},
"sax": {
"version": "1.2.4",
- "bundled": true,
- "extraneous": true
+ "bundled": true
},
"semver": {
"version": "5.7.1",
- "bundled": true,
- "extraneous": true
+ "bundled": true
},
"set-blocking": {
"version": "2.0.0",
- "bundled": true,
- "extraneous": true
+ "bundled": true
},
"signal-exit": {
"version": "3.0.2",
- "bundled": true,
- "extraneous": true
+ "bundled": true
},
"string_decoder": {
"version": "1.1.1",
"bundled": true,
- "extraneous": true,
"requires": {
"safe-buffer": "~5.1.0"
}
@@ -38367,7 +38241,6 @@
"string-width": {
"version": "1.0.2",
"bundled": true,
- "extraneous": true,
"requires": {
"code-point-at": "^1.0.0",
"is-fullwidth-code-point": "^1.0.0",
@@ -38377,20 +38250,17 @@
"strip-ansi": {
"version": "3.0.1",
"bundled": true,
- "extraneous": true,
"requires": {
"ansi-regex": "^2.0.0"
}
},
"strip-json-comments": {
"version": "2.0.1",
- "bundled": true,
- "extraneous": true
+ "bundled": true
},
"tar": {
"version": "4.4.13",
"bundled": true,
- "extraneous": true,
"requires": {
"chownr": "^1.1.1",
"fs-minipass": "^1.2.5",
@@ -38403,26 +38273,22 @@
},
"util-deprecate": {
"version": "1.0.2",
- "bundled": true,
- "extraneous": true
+ "bundled": true
},
"wide-align": {
"version": "1.1.3",
"bundled": true,
- "extraneous": true,
"requires": {
"string-width": "^1.0.2 || 2"
}
},
"wrappy": {
"version": "1.0.2",
- "bundled": true,
- "extraneous": true
+ "bundled": true
},
"yallist": {
"version": "3.1.1",
- "bundled": true,
- "extraneous": true
+ "bundled": true
}
}
},
diff --git a/src/components/Comment/DigestList/index.tsx b/src/components/Comment/DigestList/index.tsx
index fce3935e..7d1b1ce6 100644
--- a/src/components/Comment/DigestList/index.tsx
+++ b/src/components/Comment/DigestList/index.tsx
@@ -1,6 +1,5 @@
import * as React from 'react'
import { Table, Switch } from 'antd'
-import _get from 'lodash/get'
import _compact from 'lodash/compact'
import DateTime from '../../DateTime'
@@ -47,7 +46,9 @@ class CommentDigestList extends React.Component<
}
private _renderStateCell(_: any, record: CommentDigest): React.ReactNode {
- return
+ return (
+
+ )
}
_onSelectChange = (
diff --git a/src/components/Comment/SetState/index.tsx b/src/components/Comment/SetState/index.tsx
index 74b7e500..21c2231d 100644
--- a/src/components/Comment/SetState/index.tsx
+++ b/src/components/Comment/SetState/index.tsx
@@ -28,7 +28,7 @@ const COMMENT_STATES: {
class SetState extends React.Component {
state: Readonly = {
- commentState: this.props.state,
+ commentState: this.props.commentState,
loading: false,
error: null,
}
@@ -41,7 +41,7 @@ class SetState extends React.Component {
}
this.setState({ commentState: value }, () => {
- if (this.props.state !== value) {
+ if (this.props.commentState !== value) {
this.preConfirm()
}
})
@@ -89,7 +89,9 @@ class SetState extends React.Component {
修改後,評論狀態將從
- {this.props.state && }
+ {this.props.commentState && (
+
+ )}
改為
{this.state.commentState && (
@@ -107,7 +109,7 @@ class SetState extends React.Component {
}
private revertChange = () => {
- this.setState({ commentState: this.props.state })
+ this.setState({ commentState: this.props.commentState })
}
public render() {
diff --git a/src/components/Comment/SetState/withSetState.ts b/src/components/Comment/SetState/withSetState.ts
index 60cf16fe..a683565a 100644
--- a/src/components/Comment/SetState/withSetState.ts
+++ b/src/components/Comment/SetState/withSetState.ts
@@ -21,7 +21,7 @@ export type CommentState = 'active' | 'archived' | 'banned' | 'collapsed'
type InputProps = {
ids: string[]
- state?: CommentState
+ commentState?: CommentState
disabled?: boolean
onSuccess?: () => void
}
diff --git a/src/components/Layout/Sider/index.tsx b/src/components/Layout/Sider/index.tsx
index 2a0f45b0..e736d72f 100644
--- a/src/components/Layout/Sider/index.tsx
+++ b/src/components/Layout/Sider/index.tsx
@@ -98,7 +98,15 @@ export const Sider: React.FC = ({ location }) => {
評論}>
- 評論清單
+
+ {PAGE_TITLE[PATH.COMMENT_DETAIL]}
+
+
+
+
+ 報告}>
+
+ {PAGE_TITLE[PATH.REPORT_LIST]}
diff --git a/src/constants/route.ts b/src/constants/route.ts
index 68391b88..532a113e 100644
--- a/src/constants/route.ts
+++ b/src/constants/route.ts
@@ -20,6 +20,8 @@ export const PATH = {
COMMENT_LIST: '/comments',
COMMENT_DETAIL: '/comments/:id',
+ REPORT_LIST: '/reports',
+
OAUTH_CLIENT_LIST: '/oauth-clients',
OAUTH_CLIENT_DETAIL: '/oauth-clients/:id',
@@ -60,6 +62,8 @@ export const PAGE_TITLE = {
[PATH.COMMENT_LIST]: '評論清單',
[PATH.COMMENT_DETAIL]: '評論詳情',
+ [PATH.REPORT_LIST]: '報告清單',
+
[PATH.OAUTH_CLIENT_LIST]: 'OAuth Client 清單',
[PATH.OAUTH_CLIENT_DETAIL]: 'OAuth Client 詳情',
diff --git a/src/definitions/index.d.ts b/src/definitions/index.d.ts
index 1967fd0a..ab957177 100644
--- a/src/definitions/index.d.ts
+++ b/src/definitions/index.d.ts
@@ -144,7 +144,7 @@ export type ArticleDetail = ArticleDigest & {
*/
export type CommentDigest = {
id: string
- state: GQLCommentState
+ commentState: GQLCommentState
createdAt: Date
node: ArticleDigest
content: string
@@ -156,6 +156,17 @@ export type CommentDigest = {
export type CommentDetail = CommentDigest
+/**
+ * Report
+ */
+export type ReportDigest = {
+ id: string
+ reporter: UserDigest
+ target: ArticleDigest | CommentDigest
+ reason: string
+ createdAt: Date
+}
+
/**
* Pagination
*/
diff --git a/src/definitions/schema.d.ts b/src/definitions/schema.d.ts
index 9b0b0b8b..9093cab7 100644
--- a/src/definitions/schema.d.ts
+++ b/src/definitions/schema.d.ts
@@ -1,13950 +1,9118 @@
-import { Context } from './index'
-/* tslint:disable */
-/* eslint-disable */
-import { GraphQLResolveInfo, GraphQLScalarType } from 'graphql'
+import {
+ GraphQLResolveInfo,
+ GraphQLScalarType,
+ GraphQLScalarTypeConfig,
+} from 'graphql'
+import {
+ User as UserModel,
+ Wallet as WalletModel,
+ OAuthClientDB as OAuthClientDBModel,
+} from './user'
+import { Tag as TagModel } from './tag'
+import { Collection as CollectionModel } from './collection'
+import { Comment as CommentModel } from './comment'
+import { Draft as DraftModel } from './draft'
+import {
+ Circle as CircleModel,
+ CircleInvitation as CircleInvitationModel,
+ CircleMember as CircleMemberModel,
+} from './circle'
+import {
+ CirclePrice as CirclePriceModel,
+ Transaction as TransactionModel,
+ Context,
+} from './index'
+import { PayoutAccount as PayoutAccountModel } from './payment'
+import { Asset as AssetModel } from './asset'
+import { NoticeItem as NoticeItemModel } from './notification'
+import { Appreciation as AppreciationModel } from './appreciation'
+import { Topic as TopicModel } from './topic'
+import { Report as ReportModel } from './report'
+export type Maybe = T | null
+export type InputMaybe = T | undefined
+export type Exact = {
+ [K in keyof T]: T[K]
+}
+export type MakeOptional = Omit &
+ {
+ [SubKey in K]?: Maybe
+ }
+export type MakeMaybe = Omit &
+ {
+ [SubKey in K]: Maybe
+ }
+export type MakeEmpty<
+ T extends { [key: string]: unknown },
+ K extends keyof T
+> = { [_ in K]?: never }
+export type Incremental =
+ | T
+ | {
+ [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never
+ }
+export type Omit = Pick>
+export type RequireFields = Omit &
+ {
+ [P in K]-?: NonNullable
+ }
+/** All built-in and custom scalars, mapped to their actual values */
+export type Scalars = {
+ ID: { input: string; output: string }
+ String: { input: string; output: string }
+ Boolean: { input: boolean; output: boolean }
+ Int: { input: number; output: number }
+ Float: { input: number; output: number }
+ DateTime: { input: any; output: any }
+ Upload: { input: any; output: any }
+}
+
+export type GQLAddArticlesTagsInput = {
+ articles?: InputMaybe>
+ id: Scalars['ID']['input']
+ selected?: InputMaybe
+}
+
+export type GQLAddCollectionsArticlesInput = {
+ articles: Array
+ collections: Array
+}
+
+export type GQLAddCreditInput = {
+ amount: Scalars['Float']['input']
+}
+
+export type GQLAddCreditResult = {
+ __typename?: 'AddCreditResult'
+ /** The client secret of this PaymentIntent. */
+ client_secret: Scalars['String']['output']
+ transaction: GQLTransaction
+}
+
+export type GQLAnnouncement = {
+ __typename?: 'Announcement'
+ content?: Maybe
+ cover?: Maybe
+ createdAt: Scalars['DateTime']['output']
+ expiredAt?: Maybe
+ id: Scalars['ID']['output']
+ link?: Maybe
+ order: Scalars['Int']['output']
+ title?: Maybe
+ translations?: Maybe>
+ type: GQLAnnouncementType
+ updatedAt: Scalars['DateTime']['output']
+ visible: Scalars['Boolean']['output']
+}
+
+export type GQLAnnouncementType = 'community' | 'product' | 'seminar'
+
+export type GQLAnnouncementsInput = {
+ id?: InputMaybe
+ visible?: InputMaybe
+}
+
+export type GQLAppreciateArticleInput = {
+ amount: Scalars['Int']['input']
+ id: Scalars['ID']['input']
+ superLike?: InputMaybe
+ token?: InputMaybe
+}
+
+export type GQLAppreciation = {
+ __typename?: 'Appreciation'
+ amount: Scalars['Int']['output']
+ content: Scalars['String']['output']
+ /** Timestamp of appreciation. */
+ createdAt: Scalars['DateTime']['output']
+ purpose: GQLAppreciationPurpose
+ /** Recipient of appreciation. */
+ recipient: GQLUser
+ /** Sender of appreciation. */
+ sender?: Maybe
+ /** Object that appreciation is meant for. */
+ target?: Maybe
+}
+
+export type GQLAppreciationConnection = GQLConnection & {
+ __typename?: 'AppreciationConnection'
+ edges?: Maybe>
+ pageInfo: GQLPageInfo
+ totalCount: Scalars['Int']['output']
+}
+
+export type GQLAppreciationEdge = {
+ __typename?: 'AppreciationEdge'
+ cursor: Scalars['String']['output']
+ node: GQLAppreciation
+}
+
+export type GQLAppreciationPurpose =
+ | 'appreciate'
+ | 'appreciateComment'
+ | 'appreciateSubsidy'
+ | 'firstPost'
+ | 'invitationAccepted'
+ | 'joinByInvitation'
+ | 'joinByTask'
+ | 'systemSubsidy'
+
/**
- * This file is auto-generated by graphql-schema-typescript
- * Please note that any changes in this file may be overwritten
+ * This type contains metadata, content, hash and related data of an article. If you
+ * want information about article's comments. Please check Comment type.
*/
+export type GQLArticle = GQLNode &
+ GQLPinnableWork & {
+ __typename?: 'Article'
+ /** Access related fields on circle */
+ access: GQLArticleAccess
+ /** Number represents how many times per user can appreciate this article. */
+ appreciateLeft: Scalars['Int']['output']
+ /** Limit the nuhmber of appreciate per user. */
+ appreciateLimit: Scalars['Int']['output']
+ /** Appreciations history of this article. */
+ appreciationsReceived: GQLAppreciationConnection
+ /** Total number of appreciations recieved of this article. */
+ appreciationsReceivedTotal: Scalars['Int']['output']
+ /** List of assets are belonged to this article (Only the author can access currently). */
+ assets: Array
+ /** Author of this article. */
+ author: GQLUser
+ /** Available translation languages. */
+ availableTranslations?: Maybe>
+ /** whether readers can comment */
+ canComment: Scalars['Boolean']['output']
+ /** This value determines if current viewer can SuperLike or not. */
+ canSuperLike: Scalars['Boolean']['output']
+ /** List of articles which added this article into their collections. */
+ collectedBy: GQLArticleConnection
+ /** List of articles added into this article' collection. */
+ collection: GQLArticleConnection
+ /** The counting number of comments. */
+ commentCount: Scalars['Int']['output']
+ /** List of comments of this article. */
+ comments: GQLCommentConnection
+ /** Content (HTML) of this article. */
+ content: Scalars['String']['output']
+ /** Different foramts of content. */
+ contents: GQLArticleContents
+ /** Article cover's link. */
+ cover?: Maybe
+ /** Time of this article was created. */
+ createdAt: Scalars['DateTime']['output']
+ /** IPFS hash of this article. */
+ dataHash: Scalars['String']['output']
+ /** Total number of donation recieved of this article. */
+ donationCount: Scalars['Int']['output']
+ /** Donations of this article, grouped by sender */
+ donations: GQLArticleDonationConnection
+ /**
+ * Drafts linked to this article.
+ * @deprecated Use Article.newestUnpublishedDraft or Article.newestPublishedDraft instead
+ */
+ drafts?: Maybe>
+ /** List of featured comments of this article. */
+ featuredComments: GQLCommentConnection
+ /** This value determines if current viewer has appreciated or not. */
+ hasAppreciate: Scalars['Boolean']['output']
+ /** Unique ID of this article */
+ id: Scalars['ID']['output']
+ /** the iscnId if published to ISCN */
+ iscnId?: Maybe
+ /** Original language of content */
+ language?: Maybe
+ /** License Type */
+ license: GQLArticleLicenseType
+ /** Media hash, composed of cid encoding, of this article. */
+ mediaHash: Scalars['String']['output']
+ /** Newest published draft linked to this article. */
+ newestPublishedDraft: GQLDraft
+ /** Newest unpublished draft linked to this article. */
+ newestUnpublishedDraft?: Maybe
+ oss: GQLArticleOss
+ /** The number determines how many comments can be set as pinned comment. */
+ pinCommentLeft: Scalars['Int']['output']
+ /** The number determines how many pinned comments can be set. */
+ pinCommentLimit: Scalars['Int']['output']
+ pinned: Scalars['Boolean']['output']
+ /** List of pinned comments. */
+ pinnedComments?: Maybe>
+ /** Cumulative reading time in seconds */
+ readTime: Scalars['Float']['output']
+ /** Total number of readers of this article. */
+ readerCount: Scalars['Int']['output']
+ /** Related articles to this article. */
+ relatedArticles: GQLArticleConnection
+ /** Donation-related articles to this article. */
+ relatedDonationArticles: GQLArticleConnection
+ remark?: Maybe
+ /** creator message after support */
+ replyToDonator?: Maybe
+ /** creator message asking for support */
+ requestForDonation?: Maybe
+ /** The counting number of this article. */
+ responseCount: Scalars['Int']['output']
+ /** List of responses of a article. */
+ responses: GQLResponseConnection
+ /** Time of this article was revised. */
+ revisedAt?: Maybe
+ /** Revision Count */
+ revisionCount: Scalars['Int']['output']
+ /** whether content is marked as sensitive by admin */
+ sensitiveByAdmin: Scalars['Boolean']['output']
+ /** whether content is marked as sensitive by author */
+ sensitiveByAuthor: Scalars['Boolean']['output']
+ /** Slugified article title. */
+ slug: Scalars['String']['output']
+ /** State of this article. */
+ state: GQLArticleState
+ /**
+ * This value determines if this article is an author selected article or not.
+ * @deprecated Use pinned instead
+ */
+ sticky: Scalars['Boolean']['output']
+ /** This value determines if current Viewer has subscribed of not. */
+ subscribed: Scalars['Boolean']['output']
+ /** Subscribers of this article. */
+ subscribers: GQLUserConnection
+ /** A short summary for this article. */
+ summary: Scalars['String']['output']
+ /** This value determines if the summary is customized or not. */
+ summaryCustomized: Scalars['Boolean']['output']
+ /** Tags attached to this article. */
+ tags?: Maybe>
+ /** Article title. */
+ title: Scalars['String']['output']
+ /** The number represents how popular is this article. */
+ topicScore?: Maybe
+ /** Transactions history of this article. */
+ transactionsReceivedBy: GQLUserConnection
+ /** Translation of article title and content. */
+ translation?: Maybe
+ /** Word count of this article. */
+ wordCount?: Maybe
+ }
-/*******************************
- * *
- * TYPE DEFS *
- * *
- *******************************/
-export interface GQLQuery {
- article?: GQLArticle
- circle?: GQLCircle
- node?: GQLNode
- nodes?: Array
- frequentSearch?: Array
- search: GQLSearchResultConnection
- official: GQLOfficial
- oss: GQLOSS
- viewer?: GQLUser
- user?: GQLUser
- exchangeRates?: Array
- oauthClient?: GQLOAuthClient
+/**
+ * This type contains metadata, content, hash and related data of an article. If you
+ * want information about article's comments. Please check Comment type.
+ */
+export type GQLArticleAppreciationsReceivedArgs = {
+ input: GQLConnectionArgs
}
-export interface GQLArticleInput {
- mediaHash: string
+/**
+ * This type contains metadata, content, hash and related data of an article. If you
+ * want information about article's comments. Please check Comment type.
+ */
+export type GQLArticleCollectedByArgs = {
+ input: GQLConnectionArgs
}
/**
* This type contains metadata, content, hash and related data of an article. If you
* want information about article's comments. Please check Comment type.
*/
-export interface GQLArticle extends GQLNode {
- /**
- * Unique ID of this article
- */
- id: string
+export type GQLArticleCollectionArgs = {
+ input: GQLConnectionArgs
+}
- /**
- * The number represents how popular is this article.
- */
- topicScore?: number
+/**
+ * This type contains metadata, content, hash and related data of an article. If you
+ * want information about article's comments. Please check Comment type.
+ */
+export type GQLArticleCommentsArgs = {
+ input: GQLCommentsInput
+}
- /**
- * Slugified article title.
- */
- slug: string
+/**
+ * This type contains metadata, content, hash and related data of an article. If you
+ * want information about article's comments. Please check Comment type.
+ */
+export type GQLArticleDonationsArgs = {
+ input: GQLConnectionArgs
+}
- /**
- * Time of this article was created.
- */
- createdAt: GQLDateTime
+/**
+ * This type contains metadata, content, hash and related data of an article. If you
+ * want information about article's comments. Please check Comment type.
+ */
+export type GQLArticleFeaturedCommentsArgs = {
+ input: GQLFeaturedCommentsInput
+}
- /**
- * Time of this article was revised.
- */
- revisedAt?: GQLDateTime
+/**
+ * This type contains metadata, content, hash and related data of an article. If you
+ * want information about article's comments. Please check Comment type.
+ */
+export type GQLArticleRelatedArticlesArgs = {
+ input: GQLConnectionArgs
+}
- /**
- * State of this article.
- */
- state: GQLArticleState
+/**
+ * This type contains metadata, content, hash and related data of an article. If you
+ * want information about article's comments. Please check Comment type.
+ */
+export type GQLArticleRelatedDonationArticlesArgs = {
+ input: GQLRelatedDonationArticlesInput
+}
- /**
- * Author of this article.
- */
- author: GQLUser
+/**
+ * This type contains metadata, content, hash and related data of an article. If you
+ * want information about article's comments. Please check Comment type.
+ */
+export type GQLArticleResponsesArgs = {
+ input: GQLResponsesInput
+}
- /**
- * Article title.
- */
- title: string
+/**
+ * This type contains metadata, content, hash and related data of an article. If you
+ * want information about article's comments. Please check Comment type.
+ */
+export type GQLArticleSubscribersArgs = {
+ input: GQLConnectionArgs
+}
- /**
- * Article cover's link.
- */
- cover?: string
+/**
+ * This type contains metadata, content, hash and related data of an article. If you
+ * want information about article's comments. Please check Comment type.
+ */
+export type GQLArticleTransactionsReceivedByArgs = {
+ input: GQLTransactionsReceivedByArgs
+}
- /**
- * List of assets are belonged to this article (Only the author can access currently).
- */
- assets: Array
+/**
+ * This type contains metadata, content, hash and related data of an article. If you
+ * want information about article's comments. Please check Comment type.
+ */
+export type GQLArticleTranslationArgs = {
+ input?: InputMaybe
+}
- /**
- * A short summary for this article.
- */
- summary: string
+export type GQLArticleAccess = {
+ __typename?: 'ArticleAccess'
+ circle?: Maybe
+ secret?: Maybe
+ type: GQLArticleAccessType
+}
- /**
- * This value determines if the summary is customized or not.
- */
- summaryCustomized: boolean
+/** Enums for types of article access */
+export type GQLArticleAccessType = 'paywall' | 'public'
- /**
- * Tags attached to this article.
- */
- tags?: Array
+export type GQLArticleArticleNotice = GQLNotice & {
+ __typename?: 'ArticleArticleNotice'
+ /** List of notice actors. */
+ actors?: Maybe>
+ article: GQLArticle
+ /** Time of this notice was created. */
+ createdAt: Scalars['DateTime']['output']
+ /** Unique ID of this notice. */
+ id: Scalars['ID']['output']
+ target: GQLArticle
+ type: GQLArticleArticleNoticeType
+ /** The value determines if the notice is unread or not. */
+ unread: Scalars['Boolean']['output']
+}
- /**
- * Word count of this article.
- */
- wordCount?: number
+export type GQLArticleArticleNoticeType = 'ArticleNewCollected'
- /**
- * IPFS hash of this article.
- */
- dataHash: string
+export type GQLArticleConnection = GQLConnection & {
+ __typename?: 'ArticleConnection'
+ edges?: Maybe>
+ pageInfo: GQLPageInfo
+ totalCount: Scalars['Int']['output']
+}
- /**
- * Media hash, composed of cid encoding, of this article.
- */
- mediaHash: string
+export type GQLArticleContents = {
+ __typename?: 'ArticleContents'
+ /** HTML content of this article. */
+ html: Scalars['String']['output']
+ /** Markdown content of this article. */
+ markdown: Scalars['String']['output']
+}
- /**
- * Content of this article.
- */
- content: string
+export type GQLArticleDonation = {
+ __typename?: 'ArticleDonation'
+ id: Scalars['ID']['output']
+ sender?: Maybe
+}
- /**
- * Original language of content
- */
- language?: string
+export type GQLArticleDonationConnection = {
+ __typename?: 'ArticleDonationConnection'
+ edges?: Maybe>
+ pageInfo: GQLPageInfo
+ totalCount: Scalars['Int']['output']
+}
- /**
- * List of articles which added this article into their collections.
- */
- collectedBy: GQLArticleConnection
+export type GQLArticleDonationEdge = {
+ __typename?: 'ArticleDonationEdge'
+ cursor: Scalars['String']['output']
+ node: GQLArticleDonation
+}
- /**
- * List of articles added into this article' collection.
- */
- collection: GQLArticleConnection
+export type GQLArticleEdge = {
+ __typename?: 'ArticleEdge'
+ cursor: Scalars['String']['output']
+ node: GQLArticle
+}
- /**
- * Related articles to this article.
- */
- relatedArticles: GQLArticleConnection
+export type GQLArticleInput = {
+ mediaHash: Scalars['String']['input']
+}
- /**
- * Donation-related articles to this article.
- */
- relatedDonationArticles: GQLArticleConnection
+/** Enums for types of article license */
+export type GQLArticleLicenseType =
+ | 'arr'
+ | 'cc_0'
+ | 'cc_by_nc_nd_2'
+ | 'cc_by_nc_nd_4'
- /**
- * Appreciations history of this article.
- */
- appreciationsReceived: GQLAppreciationConnection
+export type GQLArticleNotice = GQLNotice & {
+ __typename?: 'ArticleNotice'
+ /** List of notice actors. */
+ actors?: Maybe>
+ /** Time of this notice was created. */
+ createdAt: Scalars['DateTime']['output']
+ /** Unique ID of this notice. */
+ id: Scalars['ID']['output']
+ target: GQLArticle
+ type: GQLArticleNoticeType
+ /** The value determines if the notice is unread or not. */
+ unread: Scalars['Boolean']['output']
+}
+
+export type GQLArticleNoticeType =
+ | 'ArticleMentionedYou'
+ | 'ArticleNewAppreciation'
+ | 'ArticleNewSubscriber'
+ | 'ArticlePublished'
+ | 'CircleNewArticle'
+ | 'RevisedArticleNotPublished'
+ | 'RevisedArticlePublished'
+
+export type GQLArticleOss = {
+ __typename?: 'ArticleOSS'
+ boost: Scalars['Float']['output']
+ inRecommendHottest: Scalars['Boolean']['output']
+ inRecommendIcymi: Scalars['Boolean']['output']
+ inRecommendNewest: Scalars['Boolean']['output']
+ score: Scalars['Float']['output']
+}
+
+export type GQLArticleRecommendationActivity = {
+ __typename?: 'ArticleRecommendationActivity'
+ /** Recommended articles */
+ nodes?: Maybe>
+ /** The source type of recommendation */
+ source?: Maybe
+}
+
+export type GQLArticleRecommendationActivitySource =
+ | 'ReadArticlesTags'
+ | 'UserDonation'
+
+/** Enums for an article state. */
+export type GQLArticleState = 'active' | 'archived' | 'banned'
+
+export type GQLArticleTranslation = {
+ __typename?: 'ArticleTranslation'
+ content?: Maybe
+ language?: Maybe
+ summary?: Maybe
+ title?: Maybe
+}
+
+/** This type contains type, link and related data of an asset. */
+export type GQLAsset = {
+ __typename?: 'Asset'
+ /** Time of this asset was created. */
+ createdAt: Scalars['DateTime']['output']
+ draft?: Maybe
+ /** Unique ID of this Asset. */
+ id: Scalars['ID']['output']
+ /** Link of this asset. */
+ path: Scalars['String']['output']
+ /** Types of this asset. */
+ type: GQLAssetType
+ uploadURL?: Maybe
+}
+
+/** Enums for asset types. */
+export type GQLAssetType =
+ | 'announcementCover'
+ | 'avatar'
+ | 'circleAvatar'
+ | 'circleCover'
+ | 'collectionCover'
+ | 'cover'
+ | 'embed'
+ | 'embedaudio'
+ | 'oauthClientAvatar'
+ | 'profileCover'
+ | 'tagCover'
+ | 'topicCover'
+
+export type GQLAuthResult = {
+ __typename?: 'AuthResult'
+ auth: Scalars['Boolean']['output']
+ token?: Maybe
+ type: GQLAuthResultType
+ user?: Maybe
+}
- /**
- * Total number of appreciations recieved of this article.
- */
- appreciationsReceivedTotal: number
+export type GQLAuthResultType = 'LinkAccount' | 'Login' | 'Signup'
- /**
- * Subscribers of this article.
- */
- subscribers: GQLUserConnection
+export type GQLAuthorsType = 'active' | 'appreciated' | 'default' | 'trendy'
- /**
- * Limit the nuhmber of appreciate per user.
- */
- appreciateLimit: number
+export type GQLBadge = {
+ __typename?: 'Badge'
+ type: GQLBadgeType
+}
- /**
- * Number represents how many times per user can appreciate this article.
- */
- appreciateLeft: number
+export type GQLBadgeType =
+ | 'architect'
+ | 'golden_motor'
+ | 'nomad1'
+ | 'nomad2'
+ | 'nomad3'
+ | 'nomad4'
+ | 'seed'
- /**
- * This value determines if current viewer has appreciated or not.
- */
- hasAppreciate: boolean
+export type GQLBadgedUsersInput = {
+ after?: InputMaybe
+ first?: InputMaybe
+ type?: InputMaybe
+}
- /**
- * This value determines if current viewer can SuperLike or not.
- */
- canSuperLike: boolean
+export type GQLBalance = {
+ __typename?: 'Balance'
+ HKD: Scalars['Float']['output']
+}
- /**
- * This value determines if current Viewer has subscribed of not.
- */
- subscribed: boolean
+export type GQLBlockchainTransaction = {
+ __typename?: 'BlockchainTransaction'
+ chain: GQLChain
+ txHash: Scalars['String']['output']
+}
+
+export type GQLBlockedSearchKeyword = {
+ __typename?: 'BlockedSearchKeyword'
+ /** Time of this search keyword was created. */
+ createdAt: Scalars['DateTime']['output']
+ /** Unique ID of bloked search keyword. */
+ id: Scalars['ID']['output']
+ /** Types of this search keyword. */
+ searchKey: Scalars['String']['output']
+}
+
+export type GQLBoostTypes = 'Article' | 'Tag' | 'User'
+
+export type GQLCacheControlScope = 'PRIVATE' | 'PUBLIC'
+
+export type GQLChain = 'Polygon'
+
+export type GQLChangeEmailInput = {
+ newEmail: Scalars['String']['input']
+ newEmailCodeId: Scalars['ID']['input']
+ oldEmail: Scalars['String']['input']
+ oldEmailCodeId: Scalars['ID']['input']
+}
+
+/** This type contains metadata, content and related data of Chapter type, which is a container for Article type. A Chapter belong to a Topic. */
+export type GQLChapter = GQLNode & {
+ __typename?: 'Chapter'
+ /** Number articles included in this chapter. */
+ articleCount: Scalars['Int']['output']
+ /** Articles included in this Chapter */
+ articles?: Maybe>
+ /** Description of this chapter. */
+ description?: Maybe
+ /** Unique id of this chapter. */
+ id: Scalars['ID']['output']
+ /** Title of this chapter. */
+ title: Scalars['String']['output']
+ /** The topic that this Chapter belongs to. */
+ topic: GQLTopic
+}
+export type GQLCircle = GQLNode & {
+ __typename?: 'Circle'
+ /** Analytics dashboard. */
+ analytics: GQLCircleAnalytics
/**
- * This value determines if this article is an author selected article or not.
+ * Circle avatar's link.
+ * @deprecated No longer in use
*/
- sticky: boolean
-
+ avatar?: Maybe
+ /** Comments broadcasted by Circle owner. */
+ broadcast: GQLCommentConnection
/**
- * Translation of article title and content.
+ * Circle cover's link.
+ * @deprecated No longer in use
*/
- translation?: GQLArticleTranslation
-
+ cover?: Maybe
/**
- * Available translation languages.
+ * Created time.
+ * @deprecated No longer in use
*/
- availableTranslations?: Array
-
+ createdAt: Scalars['DateTime']['output']
+ /** A short description of this Circle. */
+ description?: Maybe
+ /** Comments made by Circle member. */
+ discussion: GQLCommentConnection
+ /** Discussion (include replies) count of this circle. */
+ discussionCount: Scalars['Int']['output']
+ /** Discussion (exclude replies) count of this circle. */
+ discussionThreadCount: Scalars['Int']['output']
/**
- * Transactions history of this article.
+ * Human readable name of this Circle.
+ * @deprecated No longer in use
*/
- transactionsReceivedBy: GQLUserConnection
-
+ displayName: Scalars['String']['output']
/**
- * Cumulative reading time in seconds
+ * List of Circle follower.
+ * @deprecated No longer in use
*/
- readTime: number
-
+ followers: GQLUserConnection
+ /** Unique ID. */
+ id: Scalars['ID']['output']
+ /** Invitation used by current viewer. */
+ invitedBy?: Maybe
+ /** Invitations belonged to this Circle. */
+ invites: GQLInvites
/**
- * Drafts linked to this article.
- * @deprecated Use Article.newestUnpublishedDraft or Article.newestPublishedDraft instead
+ * This value determines if current viewer is following Circle or not.
+ * @deprecated No longer in use
*/
- drafts?: Array
-
+ isFollower: Scalars['Boolean']['output']
/**
- * Newest unpublished draft linked to this article.
+ * This value determines if current viewer is Member or not.
+ * @deprecated No longer in use
*/
- newestUnpublishedDraft?: GQLDraft
-
+ isMember: Scalars['Boolean']['output']
/**
- * Newest published draft linked to this article.
+ * List of Circle member.
+ * @deprecated No longer in use
*/
- newestPublishedDraft: GQLDraft
-
+ members: GQLMemberConnection
/**
- * Revision Count
+ * Slugified name of this Circle.
+ * @deprecated No longer in use
*/
- revisionCount: number
-
+ name: Scalars['String']['output']
+ /** Circle owner. */
+ owner: GQLUser
+ /** Pinned comments broadcasted by Circle owner. */
+ pinnedBroadcast?: Maybe>
+ /** Prices offered by this Circle. */
+ prices?: Maybe>
/**
- * Access related fields on circle
+ * State of this Circle.
+ * @deprecated No longer in use
*/
- access: GQLArticleAccess
-
+ state: GQLCircleState
/**
- * License Type
+ * Updated time.
+ * @deprecated No longer in use
*/
- license: GQLArticleLicenseType
-
+ updatedAt: Scalars['DateTime']['output']
/**
- * creator message asking for support
+ * List of works belong to this Circle.
+ * @deprecated No longer in use
*/
- requestForDonation?: string
+ works: GQLArticleConnection
+}
- /**
- * creator message after support
- */
- replyToDonator?: string
+export type GQLCircleBroadcastArgs = {
+ input: GQLCommentsInput
+}
- /**
- * the iscnId if published to ISCN
- */
- iscnId?: string
+export type GQLCircleDiscussionArgs = {
+ input: GQLCommentsInput
+}
- /**
- * whether readers can comment
- */
- canComment: boolean
+export type GQLCircleFollowersArgs = {
+ input: GQLConnectionArgs
+}
- /**
- * #############
- * OSS #
- * #############
- */
- oss: GQLArticleOSS
- remark?: string
-
- /**
- * The counting number of comments.
- */
- commentCount: number
-
- /**
- * The number determines how many pinned comments can be set.
- */
- pinCommentLimit: number
+export type GQLCircleMembersArgs = {
+ input: GQLConnectionArgs
+}
- /**
- * The number determines how many comments can be set as pinned comment.
- */
- pinCommentLeft: number
+export type GQLCircleWorksArgs = {
+ input: GQLConnectionArgs
+}
- /**
- * List of pinned comments.
- */
- pinnedComments?: Array
+export type GQLCircleAnalytics = {
+ __typename?: 'CircleAnalytics'
+ content: GQLCircleContentAnalytics
+ follower: GQLCircleFollowerAnalytics
+ income: GQLCircleIncomeAnalytics
+ subscriber: GQLCircleSubscriberAnalytics
+}
- /**
- * List of featured comments of this article.
- */
- featuredComments: GQLCommentConnection
+export type GQLCircleConnection = GQLConnection & {
+ __typename?: 'CircleConnection'
+ edges?: Maybe>
+ pageInfo: GQLPageInfo
+ totalCount: Scalars['Int']['output']
+}
- /**
- * List of comments of this article.
- */
- comments: GQLCommentConnection
+export type GQLCircleContentAnalytics = {
+ __typename?: 'CircleContentAnalytics'
+ paywall?: Maybe>
+ public?: Maybe>
+}
- /**
- * The counting number of this article.
- */
- responseCount: number
+export type GQLCircleContentAnalyticsDatum = {
+ __typename?: 'CircleContentAnalyticsDatum'
+ node: GQLArticle
+ readCount: Scalars['Int']['output']
+}
- /**
- * List of responses of a article.
- */
- responses: GQLResponseConnection
+export type GQLCircleEdge = {
+ __typename?: 'CircleEdge'
+ cursor: Scalars['String']['output']
+ node: GQLCircle
}
-export interface GQLNode {
- id: string
+export type GQLCircleFollowerAnalytics = {
+ __typename?: 'CircleFollowerAnalytics'
+ /** current follower count */
+ current: Scalars['Int']['output']
+ /** the percentage of follower count in reader count of circle articles */
+ followerPercentage: Scalars['Float']['output']
+ /** subscriber count history of last 4 months */
+ history: Array
}
-/** Use this to resolve interface type Node */
-export type GQLPossibleNodeTypeNames =
- | 'Article'
- | 'User'
- | 'Tag'
- | 'Comment'
- | 'Circle'
- | 'Topic'
- | 'Chapter'
- | 'Draft'
-
-export interface GQLNodeNameMap {
- Node: GQLNode
- Article: GQLArticle
- User: GQLUser
- Tag: GQLTag
- Comment: GQLComment
- Circle: GQLCircle
- Topic: GQLTopic
- Chapter: GQLChapter
- Draft: GQLDraft
+export type GQLCircleIncomeAnalytics = {
+ __typename?: 'CircleIncomeAnalytics'
+ /** income history of last 4 months */
+ history: Array
+ /** income of next month */
+ nextMonth: Scalars['Float']['output']
+ /** income of this month */
+ thisMonth: Scalars['Float']['output']
+ /** total income of all time */
+ total: Scalars['Float']['output']
+}
+
+export type GQLCircleInput = {
+ /** Slugified name of a Circle. */
+ name: Scalars['String']['input']
+}
+
+export type GQLCircleNotice = GQLNotice & {
+ __typename?: 'CircleNotice'
+ /** List of notice actors. */
+ actors?: Maybe>
+ /** Optional discussion/broadcast comments for bundled notices */
+ comments?: Maybe>
+ /** Time of this notice was created. */
+ createdAt: Scalars['DateTime']['output']
+ /** Unique ID of this notice. */
+ id: Scalars['ID']['output']
+ /** Optional mention comments for bundled notices */
+ mentions?: Maybe>
+ /** Optional discussion/broadcast replies for bundled notices */
+ replies?: Maybe>
+ target: GQLCircle
+ type: GQLCircleNoticeType
+ /** The value determines if the notice is unread or not. */
+ unread: Scalars['Boolean']['output']
}
-/**
- * A date-time string at UTC, such as 2007-12-03T10:15:30Z, compliant with the
- * `date-time` format outlined in section 5.6 of the RFC 3339 profile of the ISO
- * 8601 standard for representation of dates and times using the Gregorian calendar.
- */
-export type GQLDateTime = any
+export type GQLCircleNoticeType =
+ | 'CircleInvitation'
+ | 'CircleNewBroadcastComments'
+ | 'CircleNewDiscussionComments'
+ | 'CircleNewFollower'
+ | 'CircleNewSubscriber'
+ | 'CircleNewUnsubscriber'
-/**
- * Enums for an article state.
- */
-export const enum GQLArticleState {
- active = 'active',
- archived = 'archived',
- banned = 'banned',
+export type GQLCircleRecommendationActivity = {
+ __typename?: 'CircleRecommendationActivity'
+ /** Recommended circles */
+ nodes?: Maybe>
+ /** The source type of recommendation */
+ source?: Maybe
}
-export interface GQLUser extends GQLNode {
- /**
- * Global id of an user.
- */
- id: string
-
- /**
- * Global unique user name of a user.
- */
- userName?: string
+export type GQLCircleRecommendationActivitySource = 'UserSubscription'
- /**
- * Display name on user profile, can be duplicated.
- */
- displayName?: string
+export type GQLCircleState = 'active' | 'archived'
- /**
- * LikerID of LikeCoin, being used by LikeCoin OAuth
- */
- likerId?: string
+export type GQLCircleSubscriberAnalytics = {
+ __typename?: 'CircleSubscriberAnalytics'
+ /** current invitee count */
+ currentInvitee: Scalars['Int']['output']
+ /** current subscriber count */
+ currentSubscriber: Scalars['Int']['output']
+ /** invitee count history of last 4 months */
+ inviteeHistory: Array
+ /** subscriber count history of last 4 months */
+ subscriberHistory: Array
+}
- /**
- * Liker info of current user
- */
- liker: GQLLiker
+export type GQLClaimLogbooksInput = {
+ ethAddress: Scalars['String']['input']
+ /** nonce from generateSigningMessage */
+ nonce: Scalars['String']['input']
+ /** sign'ed by wallet */
+ signature: Scalars['String']['input']
+ /** the message being sign'ed, including nonce */
+ signedMessage: Scalars['String']['input']
+}
- /**
- * URL for user avatar.
- */
- avatar?: string
+export type GQLClaimLogbooksResult = {
+ __typename?: 'ClaimLogbooksResult'
+ ids?: Maybe>
+ txHash: Scalars['String']['output']
+}
- /**
- * User information.
- */
- info: GQLUserInfo
+export type GQLClearReadHistoryInput = {
+ id?: InputMaybe
+}
- /**
- * User settings.
- */
- settings: GQLUserSettings
+export type GQLCollection = GQLNode &
+ GQLPinnableWork & {
+ __typename?: 'Collection'
+ articles: GQLArticleConnection
+ author: GQLUser
+ /** Check if the collection contains the article */
+ contains: Scalars['Boolean']['output']
+ cover?: Maybe
+ description?: Maybe
+ id: Scalars['ID']['output']
+ pinned: Scalars['Boolean']['output']
+ title: Scalars['String']['output']
+ updatedAt: Scalars['DateTime']['output']
+ }
- /**
- * Article recommendations for current user.
- */
- recommendation: GQLRecommendation
+export type GQLCollectionArticlesArgs = {
+ input: GQLCollectionArticlesInput
+}
- /**
- * Articles authored by current user.
- */
- articles: GQLArticleConnection
+export type GQLCollectionContainsArgs = {
+ input: GQLNodeInput
+}
- /**
- * Topics created by current user.
- */
- topics: GQLTopicConnection
+export type GQLCollectionArticlesInput = {
+ after?: InputMaybe
+ first?: InputMaybe
+ reversed?: InputMaybe
+}
- /**
- * Tags by by usage order of current user.
- */
- tags: GQLTagConnection
+export type GQLCollectionConnection = GQLConnection & {
+ __typename?: 'CollectionConnection'
+ edges?: Maybe>
+ pageInfo: GQLPageInfo
+ totalCount: Scalars['Int']['output']
+}
- /**
- * Tags owned and maintained by current user.
- */
- maintainedTags: GQLTagConnection
+export type GQLCollectionEdge = {
+ __typename?: 'CollectionEdge'
+ cursor: Scalars['String']['output']
+ node: GQLCollection
+}
+/** This type contains content, author, descendant comments and related data of a comment. */
+export type GQLComment = GQLNode & {
+ __typename?: 'Comment'
+ /** Author of this comment. */
+ author: GQLUser
+ /** Descendant comments of this comment. */
+ comments: GQLCommentConnection
+ /** Content of this comment. */
+ content?: Maybe
+ /** Time of this comment was created. */
+ createdAt: Scalars['DateTime']['output']
/**
- * Tags pinned by current user.
+ * The counting number of downvotes.
+ * @deprecated No longer in use in querying
*/
- pinnedTags: GQLTagConnection
+ downvotes: Scalars['Int']['output']
+ /** This value determines this comment is from article donator or not. */
+ fromDonator: Scalars['Boolean']['output']
+ /** Unique ID of this comment. */
+ id: Scalars['ID']['output']
+ /** The value determines current user's vote. */
+ myVote?: Maybe
+ /** Current comment belongs to which Node. */
+ node: GQLNode
+ /** Parent comment of this comment. */
+ parentComment?: Maybe
+ /** This value determines this comment is pinned or not. */
+ pinned: Scalars['Boolean']['output']
+ remark?: Maybe
+ /** A Comment that this comment replied to. */
+ replyTo?: Maybe
+ /** State of this comment. */
+ state: GQLCommentState
+ type: GQLCommentType
+ /** The counting number of upvotes. */
+ upvotes: Scalars['Int']['output']
+}
- /**
- * Drafts authored by current user.
- */
- drafts: GQLDraftConnection
+/** This type contains content, author, descendant comments and related data of a comment. */
+export type GQLCommentCommentsArgs = {
+ input: GQLCommentCommentsInput
+}
- /**
- * Articles current user commented on
- */
- commentedArticles: GQLArticleConnection
+export type GQLCommentCommentNotice = GQLNotice & {
+ __typename?: 'CommentCommentNotice'
+ /** List of notice actors. */
+ actors?: Maybe>
+ comment: GQLComment
+ /** Time of this notice was created. */
+ createdAt: Scalars['DateTime']['output']
+ /** Unique ID of this notice. */
+ id: Scalars['ID']['output']
+ target: GQLComment
+ type: GQLCommentCommentNoticeType
+ /** The value determines if the notice is unread or not. */
+ unread: Scalars['Boolean']['output']
+}
- /**
- * Artilces current user subscribed to.
- */
- subscriptions: GQLArticleConnection
+export type GQLCommentCommentNoticeType = 'CommentNewReply'
- /**
- * Record of user activity, only accessable by current user.
- */
- activity: GQLUserActivity
+export type GQLCommentCommentsInput = {
+ after?: InputMaybe
+ author?: InputMaybe
+ first?: InputMaybe
+ sort?: InputMaybe
+}
- /**
- * Followers of this user.
- */
- followers: GQLUserConnection
+export type GQLCommentConnection = GQLConnection & {
+ __typename?: 'CommentConnection'
+ edges?: Maybe>
+ pageInfo: GQLPageInfo
+ totalCount: Scalars['Int']['output']
+}
- /**
- * Following contents of this user.
- */
- following: GQLFollowing
+export type GQLCommentEdge = {
+ __typename?: 'CommentEdge'
+ cursor: Scalars['String']['output']
+ node: GQLComment
+}
- /**
- * Whether current user is following viewer.
- */
- isFollower: boolean
+export type GQLCommentInput = {
+ articleId?: InputMaybe
+ circleId?: InputMaybe
+ content: Scalars['String']['input']
+ mentions?: InputMaybe>
+ parentId?: InputMaybe
+ replyTo?: InputMaybe
+ type: GQLCommentType
+}
- /**
- * Whether viewer is following current user.
- */
- isFollowee: boolean
+export type GQLCommentNotice = GQLNotice & {
+ __typename?: 'CommentNotice'
+ /** List of notice actors. */
+ actors?: Maybe>
+ /** Time of this notice was created. */
+ createdAt: Scalars['DateTime']['output']
+ /** Unique ID of this notice. */
+ id: Scalars['ID']['output']
+ target: GQLComment
+ type: GQLCommentNoticeType
+ /** The value determines if the notice is unread or not. */
+ unread: Scalars['Boolean']['output']
+}
- /**
- * Users that blocked by current user.
- */
- blockList: GQLUserConnection
+export type GQLCommentNoticeType =
+ | 'ArticleNewComment'
+ | 'CircleNewBroadcast'
+ | 'CommentMentionedYou'
+ | 'CommentPinned'
+ | 'SubscribedArticleNewComment'
- /**
- * Whether current user is blocking viewer.
- */
- isBlocking: boolean
+/** Enums for sorting comments by time. */
+export type GQLCommentSort = 'newest' | 'oldest'
- /**
- * Whether current user is blocked by viewer.
- */
- isBlocked: boolean
+/** Enums for comment state. */
+export type GQLCommentState = 'active' | 'archived' | 'banned' | 'collapsed'
- /**
- * user data analytics, only accessable by current user.
- */
- analytics: GQLUserAnalytics
+export type GQLCommentType = 'article' | 'circleBroadcast' | 'circleDiscussion'
- /**
- * Status of current user.
- */
- status?: GQLUserStatus
+export type GQLCommentsFilter = {
+ author?: InputMaybe
+ parentComment?: InputMaybe
+ state?: InputMaybe
+}
- /**
- * #############
- * OSS #
- * #############
- */
- oss: GQLUserOSS
- remark?: string
+export type GQLCommentsInput = {
+ after?: InputMaybe
+ before?: InputMaybe
+ filter?: InputMaybe
+ first?: InputMaybe
+ includeAfter?: InputMaybe
+ includeBefore?: InputMaybe
+ sort?: InputMaybe
+}
- /**
- * Circles belong to current user.
- */
- ownCircles?: Array
+export type GQLConfirmVerificationCodeInput = {
+ code: Scalars['String']['input']
+ email: Scalars['String']['input']
+ type: GQLVerificationCodeType
+}
- /**
- * Circles whiches user has subscribed.
- */
- subscribedCircles: GQLCircleConnection
- notices: GQLNoticeConnection
+export type GQLConnectStripeAccountInput = {
+ country: GQLStripeAccountCountry
+}
- /**
- * User Wallet
- */
- wallet: GQLWallet
+export type GQLConnectStripeAccountResult = {
+ __typename?: 'ConnectStripeAccountResult'
+ redirectUrl: Scalars['String']['output']
+}
- /**
- * Payment pointer that resolves to Open Payments endpoints
- */
- paymentPointer?: string
+export type GQLConnection = {
+ pageInfo: GQLPageInfo
+ totalCount: Scalars['Int']['output']
}
-export interface GQLLiker {
- /**
- * Liker ID of LikeCoin
- */
- likerId?: string
+export type GQLConnectionArgs = {
+ after?: InputMaybe
+ filter?: InputMaybe
+ first?: InputMaybe
+ oss?: InputMaybe
+}
- /**
- * Whether liker is a civic liker
- */
- civicLiker: boolean
+export type GQLCryptoWallet = {
+ __typename?: 'CryptoWallet'
+ address: Scalars['String']['output']
+ /** does this address own any Travelogger NFTs? this value is cached at most 1day, and refreshed at next `nfts` query */
+ hasNFTs: Scalars['Boolean']['output']
+ id: Scalars['ID']['output']
+ /** NFT assets owned by this wallet address */
+ nfts?: Maybe>
+}
- /**
- * Total LIKE left in wallet.
- */
- total: number
+export type GQLCryptoWalletSignaturePurpose =
+ | 'airdrop'
+ | 'connect'
+ | 'login'
+ | 'signup'
- /**
- * Rate of LikeCoin/USD
- * @deprecated No longer in use
- */
- rateUSD?: number
+export type GQLDeleteAnnouncementsInput = {
+ ids?: InputMaybe>
}
-export interface GQLUserInfo {
- /**
- * Timestamp of registration.
- */
- createdAt?: GQLDateTime
-
- /**
- * Is user name editable.
- */
- userNameEditable: boolean
+export type GQLDeleteArticlesTagsInput = {
+ articles?: InputMaybe>
+ id: Scalars['ID']['input']
+}
- /**
- * User desciption.
- */
- description?: string
+export type GQLDeleteCollectionArticlesInput = {
+ articles: Array
+ collection: Scalars['ID']['input']
+}
- /**
- * the ipnsKey (`ipfs.io/ipns//...`) for feed.json / rss.xml / index
- */
- ipnsKey?: string
+export type GQLDeleteCollectionsInput = {
+ ids: Array
+}
- /**
- * User email.
- */
- email?: GQLemail_String_format_email
+export type GQLDeleteCommentInput = {
+ id: Scalars['ID']['input']
+}
- /**
- * User badges.
- */
- badges?: Array
+export type GQLDeleteDraftInput = {
+ id: Scalars['ID']['input']
+}
- /**
- * Timestamp of user agreement.
- */
- agreeOn?: GQLDateTime
+export type GQLDeleteTagsInput = {
+ ids: Array
+}
- /**
- * Cover of profile page.
- */
- profileCover?: string
+export type GQLDeleteTopicsInput = {
+ ids: Array
+}
- /**
- * Type of group.
- */
- group: GQLUserGroup
+export type GQLDirectImageUploadInput = {
+ draft?: InputMaybe
+ entityId?: InputMaybe
+ entityType: GQLEntityType
+ mime?: InputMaybe
+ type: GQLAssetType
+ url?: InputMaybe
+}
- /**
- * Login address
- */
- ethAddress?: string
- isWalletAuth: boolean
+/** This type contains content, collections, assets and related data of a draft. */
+export type GQLDraft = GQLNode & {
+ __typename?: 'Draft'
+ /** Access related fields on circle */
+ access: GQLDraftAccess
+ /** Published article */
+ article?: Maybe
+ /** List of assets are belonged to this draft. */
+ assets: Array
+ /** whether readers can comment */
+ canComment: Scalars['Boolean']['output']
+ /** Collection list of this draft. */
+ collection: GQLArticleConnection
+ /** Content (HTML) of this draft. */
+ content?: Maybe
+ /** Draft's cover link. */
+ cover?: Maybe
+ /** Time of this draft was created. */
+ createdAt: Scalars['DateTime']['output']
+ /** Unique ID of this draft. */
+ id: Scalars['ID']['output']
+ /** whether publish to ISCN */
+ iscnPublish?: Maybe
+ /** License Type */
+ license: GQLArticleLicenseType
+ /** Media hash, composed of cid encoding, of this draft. */
+ mediaHash?: Maybe
+ /** State of draft during publihsing. */
+ publishState: GQLPublishState
+ /** creator message after support */
+ replyToDonator?: Maybe
+ /** creator message asking for support */
+ requestForDonation?: Maybe
+ /** whether content is marked as sensitive by author */
+ sensitiveByAuthor: Scalars['Boolean']['output']
+ /** Slugified draft title. */
+ slug: Scalars['String']['output']
+ /** Summary of this draft. */
+ summary?: Maybe
+ /** This value determines if the summary is customized or not. */
+ summaryCustomized: Scalars['Boolean']['output']
+ /** Tags are attached to this draft. */
+ tags?: Maybe>
+ /** Draft title. */
+ title?: Maybe
+ /** Last time of this draft was upadted. */
+ updatedAt: Scalars['DateTime']['output']
+ /** The counting number of words in this draft. */
+ wordCount: Scalars['Int']['output']
+}
+
+/** This type contains content, collections, assets and related data of a draft. */
+export type GQLDraftCollectionArgs = {
+ input: GQLConnectionArgs
+}
- /**
- * Connected wallet.
- */
- cryptoWallet?: GQLCryptoWallet
+export type GQLDraftAccess = {
+ __typename?: 'DraftAccess'
+ circle?: Maybe
+ type: GQLArticleAccessType
+}
- /**
- * saved tags for showing on profile page, API allows up to 100, front-end lock'ed at lower limit
- */
- featuredTags?: Array
+export type GQLDraftConnection = GQLConnection & {
+ __typename?: 'DraftConnection'
+ edges?: Maybe>
+ pageInfo: GQLPageInfo
+ totalCount: Scalars['Int']['output']
}
-export type GQLemail_String_format_email = any
+export type GQLDraftEdge = {
+ __typename?: 'DraftEdge'
+ cursor: Scalars['String']['output']
+ node: GQLDraft
+}
-export interface GQLBadge {
- type: GQLBadgeType
+export type GQLEditArticleInput = {
+ accessType?: InputMaybe
+ /** whether readers can comment */
+ canComment?: InputMaybe
+ circle?: InputMaybe
+ collection?: InputMaybe>
+ content?: InputMaybe
+ cover?: InputMaybe
+ id: Scalars['ID']['input']
+ /** whether publish to ISCN */
+ iscnPublish?: InputMaybe
+ license?: InputMaybe
+ pinned?: InputMaybe
+ replyToDonator?: InputMaybe
+ requestForDonation?: InputMaybe
+ sensitive?: InputMaybe
+ state?: InputMaybe
+ /** deprecated, use pinned instead */
+ sticky?: InputMaybe
+ summary?: InputMaybe
+ tags?: InputMaybe>
+}
+
+export type GQLEmailLoginInput = {
+ email: Scalars['String']['input']
+ /** used in register */
+ language?: InputMaybe
+ passwordOrCode: Scalars['String']['input']
+ referralCode?: InputMaybe
+}
+
+export type GQLEntityType =
+ | 'announcement'
+ | 'article'
+ | 'circle'
+ | 'collection'
+ | 'draft'
+ | 'tag'
+ | 'topic'
+ | 'user'
+
+export type GQLExchangeRate = {
+ __typename?: 'ExchangeRate'
+ from: GQLTransactionCurrency
+ rate: Scalars['Float']['output']
+ to: GQLQuoteCurrency
+ /** Last updated time from currency convertor APIs */
+ updatedAt: Scalars['DateTime']['output']
}
-export const enum GQLBadgeType {
- seed = 'seed',
- golden_motor = 'golden_motor',
- architect = 'architect',
+export type GQLExchangeRatesInput = {
+ from?: InputMaybe
+ to?: InputMaybe
}
-export const enum GQLUserGroup {
- a = 'a',
- b = 'b',
+export type GQLFeature = {
+ __typename?: 'Feature'
+ enabled: Scalars['Boolean']['output']
+ name: GQLFeatureName
}
-export interface GQLCryptoWallet {
- id: string
- address: string
+export type GQLFeatureFlag = 'admin' | 'off' | 'on' | 'seeding'
- /**
- * does this address own any Travelogger NFTs? this value is cached at most 1day, and refreshed at next `nfts` query
- */
- hasNFTs: boolean
+export type GQLFeatureName =
+ | 'add_credit'
+ | 'circle_interact'
+ | 'circle_management'
+ | 'fingerprint'
+ | 'payment'
+ | 'payout'
+ | 'tag_adoption'
+ | 'verify_appreciate'
- /**
- * NFT assets owned by this wallet address
- */
- nfts?: Array
+export type GQLFeaturedCommentsInput = {
+ after?: InputMaybe
+ first?: InputMaybe
+ sort?: InputMaybe
}
-/**
- * NFT Asset
- */
-export interface GQLNFTAsset {
- id: string
- name: string
- description?: string
- imageUrl: string
- imagePreviewUrl?: string
+export type GQLFeaturedTagsInput = {
+ /** tagIds */
+ ids: Array
+}
- /**
- * imageOriginalUrl: String!
- */
- contractAddress: string
- collectionName: string
+export type GQLFilterInput = {
+ /** Used in RecommendInput */
+ followed?: InputMaybe
+ inRangeEnd?: InputMaybe
+ inRangeStart?: InputMaybe
+ /** Used in User.topics */
+ public?: InputMaybe
+ /** index of list, min: 0, max: 49 */
+ random?: InputMaybe
+ /** Used in User Articles filter, by tags or by time range, or both */
+ tagIds?: InputMaybe>
}
-/**
- * This type contains content, count and related data of an article tag.
- */
-export interface GQLTag extends GQLNode {
- /**
- * Unique id of this tag.
- */
- id: string
+export type GQLFollowing = {
+ __typename?: 'Following'
+ circles: GQLCircleConnection
+ tags: GQLTagConnection
+ users: GQLUserConnection
+}
- /**
- * Content of this tag.
- */
- content: string
-
- /**
- * List of how many articles were attached with this tag.
- */
- articles: GQLArticleConnection
-
- /**
- * This value determines if this article is selected by this tag or not.
- */
- selected: boolean
-
- /**
- * Time of this tag was created.
- */
- createdAt: GQLDateTime
-
- /**
- * Tag's cover link.
- */
- cover?: string
-
- /**
- * Description of this tag.
- */
- description?: string
-
- /**
- * Editors of this tag.
- */
- editors?: Array
-
- /**
- * Creator of this tag.
- */
- creator?: GQLUser
-
- /**
- * Owner of this tag.
- */
- owner?: GQLUser
-
- /**
- * This value determines if current viewer is following or not.
- */
- isFollower?: boolean
-
- /**
- * This value determines if the tag is pinned by current viewer.
- */
- isPinned?: boolean
+export type GQLFollowingCirclesArgs = {
+ input: GQLConnectionArgs
+}
- /**
- * Followers of this tag.
- */
- followers: GQLUserConnection
+export type GQLFollowingTagsArgs = {
+ input: GQLConnectionArgs
+}
- /**
- * Participants of this tag.
- */
- participants: GQLUserConnection
+export type GQLFollowingUsersArgs = {
+ input: GQLConnectionArgs
+}
- /**
- * Tags recommended based on relations to current tag.
- */
- recommended: GQLTagConnection
+export type GQLFollowingActivity =
+ | GQLArticleRecommendationActivity
+ | GQLCircleRecommendationActivity
+ | GQLUserAddArticleTagActivity
+ | GQLUserBroadcastCircleActivity
+ | GQLUserCreateCircleActivity
+ | GQLUserPublishArticleActivity
+ | GQLUserRecommendationActivity
- /**
- * This value determines if it is official.
- */
- isOfficial?: boolean
+export type GQLFollowingActivityConnection = GQLConnection & {
+ __typename?: 'FollowingActivityConnection'
+ edges?: Maybe>
+ pageInfo: GQLPageInfo
+ totalCount: Scalars['Int']['output']
+}
- /**
- * Counts of this tag.
- */
- numArticles: number
- numAuthors: number
+export type GQLFollowingActivityEdge = {
+ __typename?: 'FollowingActivityEdge'
+ cursor: Scalars['String']['output']
+ node: GQLFollowingActivity
+}
- /**
- * #############
- * OSS #
- * #############
- */
- oss: GQLTagOSS
- remark?: string
- deleted: boolean
+export type GQLFrequentSearchInput = {
+ first?: InputMaybe
+ key?: InputMaybe
}
-export interface GQLTagArticlesInput {
- after?: string
- first?: GQLfirst_Int_min_0
- oss?: boolean
- selected?: boolean
- sortBy?: GQLTagArticlesSortBy
+export type GQLGenerateSigningMessageInput = {
+ address: Scalars['String']['input']
+ purpose?: InputMaybe
}
-export type GQLfirst_Int_min_0 = any
+export type GQLGrantType = 'authorization_code' | 'refresh_token'
-export const enum GQLTagArticlesSortBy {
- byHottestDesc = 'byHottestDesc',
- byCreatedAtDesc = 'byCreatedAtDesc',
+export type GQLInvitation = {
+ __typename?: 'Invitation'
+ /** Accepted time. */
+ acceptedAt?: Maybe
+ /** Invitation of current Circle. */
+ circle: GQLCircle
+ /** Created time. */
+ createdAt: Scalars['DateTime']['output']
+ /** Free period of this invitation. */
+ freePeriod: Scalars['Int']['output']
+ /** Unique ID. */
+ id: Scalars['ID']['output']
+ /** Target person of this invitation. */
+ invitee: GQLInvitee
+ /** Creator of this invitation. */
+ inviter: GQLUser
+ /** Sent time. */
+ sentAt: Scalars['DateTime']['output']
+ /** Determine it's specific state. */
+ state: GQLInvitationState
}
-export interface GQLArticleConnection extends GQLConnection {
- totalCount: number
+export type GQLInvitationConnection = GQLConnection & {
+ __typename?: 'InvitationConnection'
+ edges?: Maybe>
pageInfo: GQLPageInfo
- edges?: Array
+ totalCount: Scalars['Int']['output']
}
-export interface GQLConnection {
- totalCount: number
- pageInfo: GQLPageInfo
+export type GQLInvitationEdge = {
+ __typename?: 'InvitationEdge'
+ cursor: Scalars['String']['output']
+ node: GQLInvitation
}
-/** Use this to resolve interface type Connection */
-export type GQLPossibleConnectionTypeNames =
- | 'ArticleConnection'
- | 'UserConnection'
- | 'TagConnection'
- | 'FollowingActivityConnection'
- | 'CommentConnection'
- | 'MemberConnection'
- | 'InvitationConnection'
- | 'CircleConnection'
- | 'TopicConnection'
- | 'DraftConnection'
- | 'ReadHistoryConnection'
- | 'RecentSearchConnection'
- | 'AppreciationConnection'
- | 'TopDonatorConnection'
- | 'NoticeConnection'
- | 'TransactionConnection'
- | 'ResponseConnection'
- | 'SearchResultConnection'
- | 'OAuthClientConnection'
- | 'SkippedListItemsConnection'
-
-export interface GQLConnectionNameMap {
- Connection: GQLConnection
- ArticleConnection: GQLArticleConnection
- UserConnection: GQLUserConnection
- TagConnection: GQLTagConnection
- FollowingActivityConnection: GQLFollowingActivityConnection
- CommentConnection: GQLCommentConnection
- MemberConnection: GQLMemberConnection
- InvitationConnection: GQLInvitationConnection
- CircleConnection: GQLCircleConnection
- TopicConnection: GQLTopicConnection
- DraftConnection: GQLDraftConnection
- ReadHistoryConnection: GQLReadHistoryConnection
- RecentSearchConnection: GQLRecentSearchConnection
- AppreciationConnection: GQLAppreciationConnection
- TopDonatorConnection: GQLTopDonatorConnection
- NoticeConnection: GQLNoticeConnection
- TransactionConnection: GQLTransactionConnection
- ResponseConnection: GQLResponseConnection
- SearchResultConnection: GQLSearchResultConnection
- OAuthClientConnection: GQLOAuthClientConnection
- SkippedListItemsConnection: GQLSkippedListItemsConnection
-}
+export type GQLInvitationState =
+ | 'accepted'
+ | 'pending'
+ | 'transfer_failed'
+ | 'transfer_succeeded'
-export interface GQLPageInfo {
- startCursor?: string
- endCursor?: string
- hasNextPage: boolean
- hasPreviousPage: boolean
+export type GQLInviteCircleInput = {
+ circleId: Scalars['ID']['input']
+ freePeriod: Scalars['Int']['input']
+ invitees: Array
}
-export interface GQLArticleEdge {
- cursor: string
- node: GQLArticle
+export type GQLInviteCircleInvitee = {
+ email?: InputMaybe
+ id?: InputMaybe
}
-export interface GQLTagSelectedInput {
- id?: string
- mediaHash?: string
-}
+export type GQLInvitee = GQLPerson | GQLUser
-export interface GQLTagEditorsInput {
- excludeAdmin?: boolean
- excludeOwner?: boolean
+export type GQLInvites = {
+ __typename?: 'Invites'
+ /** Accepted invitation list */
+ accepted: GQLInvitationConnection
+ /** Pending invitation list */
+ pending: GQLInvitationConnection
}
-export interface GQLConnectionArgs {
- after?: string
- first?: GQLfirst_Int_min_0
- oss?: boolean
- filter?: GQLFilterInput
+export type GQLInvitesAcceptedArgs = {
+ input: GQLConnectionArgs
}
-export interface GQLFilterInput {
- /**
- * index of list, min: 0, max: 49
- */
- random?: GQLrandom_Int_min_0_max_49
+export type GQLInvitesPendingArgs = {
+ input: GQLConnectionArgs
+}
- /**
- * Used in RecommendInput
- */
- followed?: boolean
+export type GQLKeywordInput = {
+ keyword: Scalars['String']['input']
+}
- /**
- * Used in User.topics
- */
- public?: boolean
+export type GQLKeywordsInput = {
+ keywords?: InputMaybe>
+}
+export type GQLLiker = {
+ __typename?: 'Liker'
+ /** Whether liker is a civic liker */
+ civicLiker: Scalars['Boolean']['output']
+ /** Liker ID of LikeCoin */
+ likerId?: Maybe
/**
- * Used in User Articles filter, by tags or by time range, or both
+ * Rate of LikeCoin/USD
+ * @deprecated No longer in use
*/
- tagIds?: Array
- inRangeStart?: GQLDateTime
- inRangeEnd?: GQLDateTime
+ rateUSD?: Maybe
+ /** Total LIKE left in wallet. */
+ total: Scalars['Float']['output']
}
-export type GQLrandom_Int_min_0_max_49 = any
-
-export interface GQLUserConnection extends GQLConnection {
- totalCount: number
- pageInfo: GQLPageInfo
- edges?: Array
+export type GQLLogRecordInput = {
+ type: GQLLogRecordTypes
}
-export interface GQLUserEdge {
- cursor: string
- node: GQLUser
+export type GQLLogRecordTypes =
+ | 'ReadFolloweeArticles'
+ | 'ReadFollowingFeed'
+ | 'ReadResponseInfoPopUp'
+
+export type GQLMember = {
+ __typename?: 'Member'
+ /** Price chosen by user when joining a Circle. */
+ price: GQLPrice
+ /** User who join to a Circle. */
+ user: GQLUser
}
-export interface GQLTagConnection extends GQLConnection {
- totalCount: number
+export type GQLMemberConnection = GQLConnection & {
+ __typename?: 'MemberConnection'
+ edges?: Maybe>
pageInfo: GQLPageInfo
- edges?: Array
+ totalCount: Scalars['Int']['output']
}
-export interface GQLTagEdge {
- cursor: string
- node: GQLTag
+export type GQLMemberEdge = {
+ __typename?: 'MemberEdge'
+ cursor: Scalars['String']['output']
+ node: GQLMember
}
-export interface GQLTagOSS {
- boost: number
- score: number
- selected: boolean
+export type GQLMergeTagsInput = {
+ content: Scalars['String']['input']
+ ids: Array
}
-export interface GQLUserSettings {
- /**
- * User language setting.
- */
- language: GQLUserLanguage
-
- /**
- * User currency preference.
- */
- currency: GQLQuoteCurrency
-
- /**
- * Notification settings.
- */
- notification?: GQLNotificationSetting
+export type GQLMigrationInput = {
+ files: Array>
+ type?: InputMaybe
}
-export const enum GQLUserLanguage {
- en = 'en',
- zh_hans = 'zh_hans',
- zh_hant = 'zh_hant',
-}
+export type GQLMigrationType = 'medium'
-export const enum GQLQuoteCurrency {
- TWD = 'TWD',
- HKD = 'HKD',
- USD = 'USD',
+export type GQLMonthlyDatum = {
+ __typename?: 'MonthlyDatum'
+ date: Scalars['DateTime']['output']
+ value: Scalars['Float']['output']
}
-export interface GQLNotificationSetting {
- enable: boolean
- email: boolean
- mention: boolean
- userNewFollower: boolean
- articleNewComment: boolean
- articleNewAppreciation: boolean
- articleNewSubscription: boolean
- articleNewCollected: boolean
- articleSubscribedNewComment: boolean
- articleCommentPinned: boolean
-
+export type GQLMutation = {
+ __typename?: 'Mutation'
+ /** Add one tag to articles. */
+ addArticlesTags: GQLTag
+ /** Add blocked search keyword to blocked_search_word db */
+ addBlockedSearchKeyword: GQLBlockedSearchKeyword
+ /** Add articles to the begining of the collections. */
+ addCollectionsArticles: Array
+ /** Add Credit to User Wallet */
+ addCredit: GQLAddCreditResult
+ /** Add a social login to current user. */
+ addSocialLogin: GQLUser
+ /** Add a wallet login to current user. */
+ addWalletLogin: GQLUser
+ /** Appreciate an article. */
+ appreciateArticle: GQLArticle
/**
- * for circle owners
+ * Change user email.
+ * @deprecated use 'setEmail' instead
*/
- circleNewSubscriber: boolean
- circleNewFollower: boolean
- circleNewUnsubscriber: boolean
- circleMemberNewBroadcastReply: boolean
- circleMemberNewDiscussion: boolean
- circleMemberNewDiscussionReply: boolean
-
+ changeEmail: GQLUser
+ /** Let Traveloggers owner claims a Logbook, returns transaction hash */
+ claimLogbooks: GQLClaimLogbooksResult
+ /** Clear read history for user. */
+ clearReadHistory: GQLUser
+ /** Clear search history for user. */
+ clearSearchHistory?: Maybe
+ /** Confirm verification code from email. */
+ confirmVerificationCode: Scalars['ID']['output']
+ /** Create Stripe Connect account for Payout */
+ connectStripeAccount: GQLConnectStripeAccountResult
+ deleteAnnouncements: Scalars['Boolean']['output']
+ /** Delete one tag from articles */
+ deleteArticlesTags: GQLTag
+ /** Delete blocked search keywords from search_history db */
+ deleteBlockedSearchKeywords?: Maybe
+ /** Remove articles from the collection. */
+ deleteCollectionArticles: GQLCollection
+ deleteCollections: Scalars['Boolean']['output']
+ /** Remove a comment. */
+ deleteComment: GQLComment
+ /** Remove a draft. */
+ deleteDraft?: Maybe
+ deleteTags?: Maybe
+ /** Delete topics */
+ deleteTopics: Scalars['Boolean']['output']
+ directImageUpload: GQLAsset
+ /** Edit an article. */
+ editArticle: GQLArticle
+ emailLogin: GQLAuthResult
/**
- * for circle members & followers
+ * Generate or claim a Liker ID through LikeCoin
+ * @deprecated No longer in use
*/
- inCircleNewArticle: boolean
- inCircleNewBroadcast: boolean
- inCircleNewBroadcastReply: boolean
- inCircleNewDiscussion: boolean
- inCircleNewDiscussionReply: boolean
-}
-
-export interface GQLRecommendation {
+ generateLikerId: GQLUser
+ /** Get signing message. */
+ generateSigningMessage: GQLSigningMessageResult
+ /** Invite others to join circle */
+ invite?: Maybe>
+ /** Add specific user behavior record. */
+ logRecord?: Maybe
+ /** Mark all received notices as read. */
+ markAllNoticesAsRead?: Maybe
+ mergeTags: GQLTag
+ /** Migrate articles from other service provider. */
+ migration?: Maybe
+ /** Pay to another user or article */
+ payTo: GQLPayToResult
+ /** Payout to user */
+ payout: GQLTransaction
+ /** Pin a comment. */
+ pinComment: GQLComment
+ /** Publish an article onto IPFS. */
+ publishArticle: GQLDraft
+ putAnnouncement: GQLAnnouncement
+ /** Create a Chapter when no id is given, update fields when id is given. Throw error if no id & no title, or no id & no topic. */
+ putChapter: GQLChapter
+ /** Create or update a Circle. */
+ putCircle: GQLCircle
/**
- * Activities based on user's following, sort by creation time.
+ * Add or remove Circle's articles
+ * @deprecated No longer in use
*/
- following: GQLFollowingActivityConnection
-
+ putCircleArticles: GQLCircle
+ putCollection: GQLCollection
+ /** Publish or update a comment. */
+ putComment: GQLComment
+ /** Create or update a draft. */
+ putDraft: GQLDraft
+ /** update tags for showing on profile page */
+ putFeaturedTags?: Maybe>
+ /** Create or Update an OAuth Client, used in OSS. */
+ putOAuthClient?: Maybe
+ putRemark?: Maybe
+ putRestrictedUsers: Array
+ putSkippedListItem?: Maybe>
+ /** Create or update tag. */
+ putTag: GQLTag
+ /** Create a Topic when no id is given, update fields when id is given. Throw error if no id & no title. */
+ putTopic: GQLTopic
+ /** Read an article. */
+ readArticle: GQLArticle
+ /** Update state of a user, used in OSS. */
+ refreshIPNSFeed: GQLUser
+ /** Remove a social login from current user. */
+ removeSocialLogin: GQLUser
+ /** Remove a wallet login from current user. */
+ removeWalletLogin: GQLUser
+ renameTag: GQLTag
+ /** Reorder articles in the collection. */
+ reorderCollectionArticles: GQLCollection
+ /** Reset Liker ID */
+ resetLikerId: GQLUser
+ /** Reset user or payment password. */
+ resetPassword?: Maybe
/**
- * Articles recommended based on recently read article tags.
- * @deprecated Merged into following
+ * Reset crypto wallet.
+ * @deprecated use 'removeWalletLogin' instead
*/
- readTagsArticles: GQLArticleConnection
-
+ resetWallet: GQLUser
+ /** Send verification code for email. */
+ sendVerificationCode?: Maybe
+ setBoost: GQLNode
+ /** Set user currency preference. */
+ setCurrency: GQLUser
+ /** Set user email. */
+ setEmail: GQLUser
+ setFeature: GQLFeature
+ /** Set user email login password. */
+ setPassword: GQLUser
+ /** Set user name. */
+ setUserName: GQLUser
+ /** Upload a single file. */
+ singleFileUpload: GQLAsset
+ /** Login/Signup via social accounts. */
+ socialLogin: GQLAuthResult
+ /** Sort topics */
+ sortTopics: Array
+ /** Submit inappropriate content report */
+ submitReport: GQLReport
+ /** Subscribe a Circle. */
+ subscribeCircle: GQLSubscribeCircleResult
+ toggleArticleRecommend: GQLArticle
+ /** Block or Unblock a given user. */
+ toggleBlockUser: GQLUser
/**
- * Global articles sort by publish time.
+ * Follow or unfollow a Circle.
+ * @deprecated No longer in use
*/
- newest: GQLArticleConnection
-
+ toggleFollowCircle: GQLCircle
+ /** Follow or unfollow tag. */
+ toggleFollowTag: GQLTag
+ /** Follow or Unfollow current user. */
+ toggleFollowUser: GQLUser
+ /** Pin or Unpin a comment. */
+ togglePinComment: GQLComment
+ /** pin or unpin tag. */
+ togglePinTag: GQLTag
+ toggleSeedingUsers: Array>
+ /** Subscribe or Unsubscribe article */
+ toggleSubscribeArticle: GQLArticle
+ toggleTagRecommend: GQLTag
+ toggleUsersBadge: Array>
+ unbindLikerId: GQLUser
+ /** Unpin a comment. */
+ unpinComment: GQLComment
+ /** Unsubscribe a Circle. */
+ unsubscribeCircle: GQLCircle
+ /** Unvote a comment. */
+ unvoteComment: GQLComment
+ updateArticleSensitive: GQLArticle
+ updateArticleState: GQLArticle
+ /** Update articles' tag. */
+ updateArticlesTags: GQLTag
+ /** Update a comments' state. */
+ updateCommentsState: Array
+ /** Update user notification settings. */
+ updateNotificationSetting: GQLUser
+ /** Update member, permission and othters of a tag. */
+ updateTagSetting: GQLTag
+ /** Update referralCode of a user, used in OSS. */
+ updateUserExtra: GQLUser
+ /** Update user information. */
+ updateUserInfo: GQLUser
+ /** Update state of a user, used in OSS. */
+ updateUserRole: GQLUser
+ /** Update state of a user, used in OSS. */
+ updateUserState?: Maybe>
/**
- * Global articles sort by latest activity time.
+ * Login user.
+ * @deprecated use 'emailLogin' instead
*/
- hottest: GQLArticleConnection
-
+ userLogin: GQLAuthResult
+ /** Logout user. */
+ userLogout: Scalars['Boolean']['output']
/**
- * 'In case you missed it' recommendation.
+ * Register user, can only be used on matters.{town,news} website.
+ * @deprecated use 'emailLogin' instead
*/
- icymi: GQLArticleConnection
+ userRegister: GQLAuthResult
+ /** Verify user email. */
+ verifyEmail: GQLAuthResult
+ /** Upvote or downvote a comment. */
+ voteComment: GQLComment
+ /** Login/Signup via a wallet. */
+ walletLogin: GQLAuthResult
+}
- /**
- * Global tag list, sort by activities in recent 14 days.
- */
- tags: GQLTagConnection
+export type GQLMutationAddArticlesTagsArgs = {
+ input: GQLAddArticlesTagsInput
+}
- /**
- * Hottest tag list
- */
- hottestTags: GQLTagConnection
+export type GQLMutationAddBlockedSearchKeywordArgs = {
+ input: GQLKeywordInput
+}
- /**
- * Selected tag list
- */
- selectedTags: GQLTagConnection
+export type GQLMutationAddCollectionsArticlesArgs = {
+ input: GQLAddCollectionsArticlesInput
+}
- /**
- * Global user list, sort by activities in recent 6 month.
- */
- authors: GQLUserConnection
+export type GQLMutationAddCreditArgs = {
+ input: GQLAddCreditInput
+}
- /**
- * Global circles sort by created time.
- */
- newestCircles: GQLCircleConnection
+export type GQLMutationAddSocialLoginArgs = {
+ input: GQLSocialLoginInput
+}
- /**
- * Global circles sort by latest activity time.
- */
- hottestCircles: GQLCircleConnection
+export type GQLMutationAddWalletLoginArgs = {
+ input: GQLWalletLoginInput
}
-export interface GQLFollowingActivityConnection extends GQLConnection {
- totalCount: number
- pageInfo: GQLPageInfo
- edges?: Array
+export type GQLMutationAppreciateArticleArgs = {
+ input: GQLAppreciateArticleInput
}
-export interface GQLFollowingActivityEdge {
- cursor: string
- node: GQLFollowingActivity
+export type GQLMutationChangeEmailArgs = {
+ input: GQLChangeEmailInput
}
-export type GQLFollowingActivity =
- | GQLUserPublishArticleActivity
- | GQLUserAddArticleTagActivity
- | GQLUserBroadcastCircleActivity
- | GQLUserCreateCircleActivity
- | GQLUserRecommendationActivity
- | GQLArticleRecommendationActivity
- | GQLCircleRecommendationActivity
+export type GQLMutationClaimLogbooksArgs = {
+ input: GQLClaimLogbooksInput
+}
-/** Use this to resolve union type FollowingActivity */
-export type GQLPossibleFollowingActivityTypeNames =
- | 'UserPublishArticleActivity'
- | 'UserAddArticleTagActivity'
- | 'UserBroadcastCircleActivity'
- | 'UserCreateCircleActivity'
- | 'UserRecommendationActivity'
- | 'ArticleRecommendationActivity'
- | 'CircleRecommendationActivity'
-
-export interface GQLFollowingActivityNameMap {
- FollowingActivity: GQLFollowingActivity
- UserPublishArticleActivity: GQLUserPublishArticleActivity
- UserAddArticleTagActivity: GQLUserAddArticleTagActivity
- UserBroadcastCircleActivity: GQLUserBroadcastCircleActivity
- UserCreateCircleActivity: GQLUserCreateCircleActivity
- UserRecommendationActivity: GQLUserRecommendationActivity
- ArticleRecommendationActivity: GQLArticleRecommendationActivity
- CircleRecommendationActivity: GQLCircleRecommendationActivity
-}
-
-export interface GQLUserPublishArticleActivity {
- actor: GQLUser
- createdAt: GQLDateTime
+export type GQLMutationClearReadHistoryArgs = {
+ input: GQLClearReadHistoryInput
+}
- /**
- * Article published by actor
- */
- node: GQLArticle
+export type GQLMutationConfirmVerificationCodeArgs = {
+ input: GQLConfirmVerificationCodeInput
}
-export interface GQLUserAddArticleTagActivity {
- actor: GQLUser
- createdAt: GQLDateTime
+export type GQLMutationConnectStripeAccountArgs = {
+ input: GQLConnectStripeAccountInput
+}
- /**
- * Article added to tag
- */
- node: GQLArticle
+export type GQLMutationDeleteAnnouncementsArgs = {
+ input: GQLDeleteAnnouncementsInput
+}
- /**
- * Tag added by article
- */
- target: GQLTag
+export type GQLMutationDeleteArticlesTagsArgs = {
+ input: GQLDeleteArticlesTagsInput
}
-export interface GQLUserBroadcastCircleActivity {
- actor: GQLUser
- createdAt: GQLDateTime
+export type GQLMutationDeleteBlockedSearchKeywordsArgs = {
+ input: GQLKeywordsInput
+}
- /**
- * Comment broadcast by actor
- */
- node: GQLComment
+export type GQLMutationDeleteCollectionArticlesArgs = {
+ input: GQLDeleteCollectionArticlesInput
+}
- /**
- * Circle that comment belongs to
- */
- target: GQLCircle
+export type GQLMutationDeleteCollectionsArgs = {
+ input: GQLDeleteCollectionsInput
}
-/**
- * This type contains content, author, descendant comments and related data of a comment.
- */
-export interface GQLComment extends GQLNode {
- /**
- * Unique ID of this comment.
- */
- id: string
+export type GQLMutationDeleteCommentArgs = {
+ input: GQLDeleteCommentInput
+}
- /**
- * State of this comment.
- */
- state: GQLCommentState
- type: GQLCommentType
+export type GQLMutationDeleteDraftArgs = {
+ input: GQLDeleteDraftInput
+}
- /**
- * Time of this comment was created.
- */
- createdAt: GQLDateTime
+export type GQLMutationDeleteTagsArgs = {
+ input: GQLDeleteTagsInput
+}
- /**
- * Content of this comment.
- */
- content?: string
+export type GQLMutationDeleteTopicsArgs = {
+ input: GQLDeleteTopicsInput
+}
- /**
- * Author of this comment.
- */
- author: GQLUser
+export type GQLMutationDirectImageUploadArgs = {
+ input: GQLDirectImageUploadInput
+}
- /**
- * This value determines this comment is pinned or not.
- */
- pinned: boolean
+export type GQLMutationEditArticleArgs = {
+ input: GQLEditArticleInput
+}
- /**
- * This value determines this comment is from article donator or not.
- */
- fromDonator: boolean
+export type GQLMutationEmailLoginArgs = {
+ input: GQLEmailLoginInput
+}
- /**
- * The counting number of upvotes.
- */
- upvotes: number
+export type GQLMutationGenerateSigningMessageArgs = {
+ input: GQLGenerateSigningMessageInput
+}
- /**
- * The counting number of downvotes.
- * @deprecated No longer in use in querying
- */
- downvotes: number
+export type GQLMutationInviteArgs = {
+ input: GQLInviteCircleInput
+}
- /**
- * The value determines current user's vote.
- */
- myVote?: GQLVote
+export type GQLMutationLogRecordArgs = {
+ input: GQLLogRecordInput
+}
- /**
- * Descendant comments of this comment.
- */
- comments: GQLCommentConnection
+export type GQLMutationMergeTagsArgs = {
+ input: GQLMergeTagsInput
+}
- /**
- * Parent comment of this comment.
- */
- parentComment?: GQLComment
+export type GQLMutationMigrationArgs = {
+ input: GQLMigrationInput
+}
- /**
- * A Comment that this comment replied to.
- */
- replyTo?: GQLComment
- remark?: string
+export type GQLMutationPayToArgs = {
+ input: GQLPayToInput
+}
- /**
- * Current comment belongs to which Node.
- */
- node: GQLNode
+export type GQLMutationPayoutArgs = {
+ input: GQLPayoutInput
}
-/**
- * Enums for comment state.
- */
-export const enum GQLCommentState {
- active = 'active',
- archived = 'archived',
- banned = 'banned',
- collapsed = 'collapsed',
+export type GQLMutationPinCommentArgs = {
+ input: GQLPinCommentInput
}
-export const enum GQLCommentType {
- article = 'article',
- circleDiscussion = 'circleDiscussion',
- circleBroadcast = 'circleBroadcast',
+export type GQLMutationPublishArticleArgs = {
+ input: GQLPublishArticleInput
}
-/**
- * Enums for vote types.
- */
-export const enum GQLVote {
- up = 'up',
- down = 'down',
+export type GQLMutationPutAnnouncementArgs = {
+ input: GQLPutAnnouncementInput
}
-export interface GQLCommentCommentsInput {
- author?: string
- sort?: GQLCommentSort
- after?: string
- first?: GQLfirst_Int_min_0
+export type GQLMutationPutChapterArgs = {
+ input: GQLPutChapterInput
}
-/**
- * Enums for sorting comments by time.
- */
-export const enum GQLCommentSort {
- oldest = 'oldest',
- newest = 'newest',
+export type GQLMutationPutCircleArgs = {
+ input: GQLPutCircleInput
}
-export interface GQLCommentConnection extends GQLConnection {
- totalCount: number
- pageInfo: GQLPageInfo
- edges?: Array
+export type GQLMutationPutCircleArticlesArgs = {
+ input: GQLPutCircleArticlesInput
}
-export interface GQLCommentEdge {
- cursor: string
- node: GQLComment
+export type GQLMutationPutCollectionArgs = {
+ input: GQLPutCollectionInput
}
-export interface GQLCircle extends GQLNode {
- /**
- * Unique ID.
- */
- id: string
+export type GQLMutationPutCommentArgs = {
+ input: GQLPutCommentInput
+}
- /**
- * Circle avatar's link.
- * @deprecated No longer in use
- */
- avatar?: string
+export type GQLMutationPutDraftArgs = {
+ input: GQLPutDraftInput
+}
- /**
- * Circle cover's link.
- * @deprecated No longer in use
- */
- cover?: string
+export type GQLMutationPutFeaturedTagsArgs = {
+ input: GQLFeaturedTagsInput
+}
- /**
- * Slugified name of this Circle.
- * @deprecated No longer in use
- */
- name: string
+export type GQLMutationPutOAuthClientArgs = {
+ input: GQLPutOAuthClientInput
+}
- /**
- * Human readable name of this Circle.
- * @deprecated No longer in use
- */
- displayName: string
+export type GQLMutationPutRemarkArgs = {
+ input: GQLPutRemarkInput
+}
- /**
- * A short description of this Circle.
- */
- description?: string
+export type GQLMutationPutRestrictedUsersArgs = {
+ input: GQLPutRestrictedUsersInput
+}
- /**
- * Prices offered by this Circle.
- */
- prices?: Array
+export type GQLMutationPutSkippedListItemArgs = {
+ input: GQLPutSkippedListItemInput
+}
- /**
- * Circle owner.
- */
- owner: GQLUser
+export type GQLMutationPutTagArgs = {
+ input: GQLPutTagInput
+}
- /**
- * List of Circle member.
- * @deprecated No longer in use
- */
- members: GQLMemberConnection
+export type GQLMutationPutTopicArgs = {
+ input: GQLPutTopicInput
+}
- /**
- * List of Circle follower.
- * @deprecated No longer in use
- */
- followers: GQLUserConnection
+export type GQLMutationReadArticleArgs = {
+ input: GQLReadArticleInput
+}
- /**
- * List of works belong to this Circle.
- * @deprecated No longer in use
- */
- works: GQLArticleConnection
+export type GQLMutationRefreshIpnsFeedArgs = {
+ input: GQLRefreshIpnsFeedInput
+}
- /**
- * State of this Circle.
- * @deprecated No longer in use
- */
- state: GQLCircleState
+export type GQLMutationRemoveSocialLoginArgs = {
+ input: GQLRemoveSocialLoginInput
+}
- /**
- * Created time.
- * @deprecated No longer in use
- */
- createdAt: GQLDateTime
+export type GQLMutationRenameTagArgs = {
+ input: GQLRenameTagInput
+}
- /**
- * Updated time.
- * @deprecated No longer in use
- */
- updatedAt: GQLDateTime
+export type GQLMutationReorderCollectionArticlesArgs = {
+ input: GQLReorderCollectionArticlesInput
+}
- /**
- * This value determines if current viewer is following Circle or not.
- * @deprecated No longer in use
- */
- isFollower: boolean
+export type GQLMutationResetLikerIdArgs = {
+ input: GQLResetLikerIdInput
+}
- /**
- * This value determines if current viewer is Member or not.
- * @deprecated No longer in use
- */
- isMember: boolean
+export type GQLMutationResetPasswordArgs = {
+ input: GQLResetPasswordInput
+}
- /**
- * Invitations belonged to this Circle.
- */
- invites: GQLInvites
+export type GQLMutationResetWalletArgs = {
+ input: GQLResetWalletInput
+}
- /**
- * Invitation used by current viewer.
- */
- invitedBy?: GQLInvitation
+export type GQLMutationSendVerificationCodeArgs = {
+ input: GQLSendVerificationCodeInput
+}
- /**
- * Analytics dashboard.
- */
- analytics: GQLCircleAnalytics
+export type GQLMutationSetBoostArgs = {
+ input: GQLSetBoostInput
+}
- /**
- * Comments broadcasted by Circle owner.
- */
- broadcast: GQLCommentConnection
+export type GQLMutationSetCurrencyArgs = {
+ input: GQLSetCurrencyInput
+}
- /**
- * Pinned comments broadcasted by Circle owner.
- */
- pinnedBroadcast?: Array
+export type GQLMutationSetEmailArgs = {
+ input: GQLSetEmailInput
+}
- /**
- * Comments made by Circle member.
- */
- discussion: GQLCommentConnection
+export type GQLMutationSetFeatureArgs = {
+ input: GQLSetFeatureInput
+}
- /**
- * Discussion (exclude replies) count of this circle.
- */
- discussionThreadCount: number
+export type GQLMutationSetPasswordArgs = {
+ input: GQLSetPasswordInput
+}
- /**
- * Discussion (include replies) count of this circle.
- */
- discussionCount: number
+export type GQLMutationSetUserNameArgs = {
+ input: GQLSetUserNameInput
}
-export interface GQLPrice {
- /**
- * Unique ID.
- */
- id: string
+export type GQLMutationSingleFileUploadArgs = {
+ input: GQLSingleFileUploadInput
+}
- /**
- * Amount of Price.
- */
- amount: number
+export type GQLMutationSocialLoginArgs = {
+ input: GQLSocialLoginInput
+}
- /**
- * Current Price belongs to whcih Circle.
- */
- circle: GQLCircle
+export type GQLMutationSortTopicsArgs = {
+ input: GQLSortTopicsInput
+}
- /**
- * Currency of Price.
- */
- currency: GQLTransactionCurrency
+export type GQLMutationSubmitReportArgs = {
+ input: GQLSubmitReportInput
+}
- /**
- * State of Price.
- */
- state: GQLPriceState
+export type GQLMutationSubscribeCircleArgs = {
+ input: GQLSubscribeCircleInput
+}
- /**
- * Created time.
- * @deprecated No longer in use
- */
- createdAt: GQLDateTime
+export type GQLMutationToggleArticleRecommendArgs = {
+ input: GQLToggleRecommendInput
+}
- /**
- * Updated time.
- * @deprecated No longer in use
- */
- updatedAt: GQLDateTime
+export type GQLMutationToggleBlockUserArgs = {
+ input: GQLToggleItemInput
}
-export const enum GQLTransactionCurrency {
- HKD = 'HKD',
- LIKE = 'LIKE',
- USDT = 'USDT',
+export type GQLMutationToggleFollowCircleArgs = {
+ input: GQLToggleItemInput
}
-export const enum GQLPriceState {
- active = 'active',
- archived = 'archived',
+export type GQLMutationToggleFollowTagArgs = {
+ input: GQLToggleItemInput
}
-export interface GQLMemberConnection extends GQLConnection {
- totalCount: number
- pageInfo: GQLPageInfo
- edges?: Array
+export type GQLMutationToggleFollowUserArgs = {
+ input: GQLToggleItemInput
}
-export interface GQLMemberEdge {
- cursor: string
- node: GQLMember
+export type GQLMutationTogglePinCommentArgs = {
+ input: GQLToggleItemInput
}
-export interface GQLMember {
- /**
- * User who join to a Circle.
- */
- user: GQLUser
-
- /**
- * Price chosen by user when joining a Circle.
- */
- price: GQLPrice
+export type GQLMutationTogglePinTagArgs = {
+ input: GQLToggleItemInput
}
-export const enum GQLCircleState {
- active = 'active',
- archived = 'archived',
+export type GQLMutationToggleSeedingUsersArgs = {
+ input: GQLToggleSeedingUsersInput
}
-export interface GQLInvites {
- /**
- * Accepted invitation list
- */
- accepted: GQLInvitationConnection
-
- /**
- * Pending invitation list
- */
- pending: GQLInvitationConnection
+export type GQLMutationToggleSubscribeArticleArgs = {
+ input: GQLToggleItemInput
}
-export interface GQLInvitationConnection extends GQLConnection {
- totalCount: number
- pageInfo: GQLPageInfo
- edges?: Array
+export type GQLMutationToggleTagRecommendArgs = {
+ input: GQLToggleRecommendInput
}
-export interface GQLInvitationEdge {
- cursor: string
- node: GQLInvitation
+export type GQLMutationToggleUsersBadgeArgs = {
+ input: GQLToggleUsersBadgeInput
}
-export interface GQLInvitation {
- /**
- * Unique ID.
- */
- id: string
-
- /**
- * Target person of this invitation.
- */
- invitee: GQLInvitee
+export type GQLMutationUnbindLikerIdArgs = {
+ input: GQLUnbindLikerIdInput
+}
- /**
- * Creator of this invitation.
- */
- inviter: GQLUser
+export type GQLMutationUnpinCommentArgs = {
+ input: GQLUnpinCommentInput
+}
- /**
- * Invitation of current Circle.
- */
- circle: GQLCircle
+export type GQLMutationUnsubscribeCircleArgs = {
+ input: GQLUnsubscribeCircleInput
+}
- /**
- * Free period of this invitation.
- */
- freePeriod: number
+export type GQLMutationUnvoteCommentArgs = {
+ input: GQLUnvoteCommentInput
+}
- /**
- * Created time.
- */
- createdAt: GQLDateTime
+export type GQLMutationUpdateArticleSensitiveArgs = {
+ input: GQLUpdateArticleSensitiveInput
+}
- /**
- * Sent time.
- */
- sentAt: GQLDateTime
+export type GQLMutationUpdateArticleStateArgs = {
+ input: GQLUpdateArticleStateInput
+}
- /**
- * Accepted time.
- */
- acceptedAt?: GQLDateTime
+export type GQLMutationUpdateArticlesTagsArgs = {
+ input: GQLUpdateArticlesTagsInput
+}
- /**
- * Determine it's specific state.
- */
- state: GQLInvitationState
+export type GQLMutationUpdateCommentsStateArgs = {
+ input: GQLUpdateCommentsStateInput
}
-export type GQLInvitee = GQLPerson | GQLUser
+export type GQLMutationUpdateNotificationSettingArgs = {
+ input: GQLUpdateNotificationSettingInput
+}
-/** Use this to resolve union type Invitee */
-export type GQLPossibleInviteeTypeNames = 'Person' | 'User'
+export type GQLMutationUpdateTagSettingArgs = {
+ input: GQLUpdateTagSettingInput
+}
-export interface GQLInviteeNameMap {
- Invitee: GQLInvitee
- Person: GQLPerson
- User: GQLUser
+export type GQLMutationUpdateUserExtraArgs = {
+ input: GQLUpdateUserExtraInput
}
-export interface GQLPerson {
- email: GQLemail_String_NotNull_format_email
+export type GQLMutationUpdateUserInfoArgs = {
+ input: GQLUpdateUserInfoInput
}
-export type GQLemail_String_NotNull_format_email = any
+export type GQLMutationUpdateUserRoleArgs = {
+ input: GQLUpdateUserRoleInput
+}
-export const enum GQLInvitationState {
- accepted = 'accepted',
- pending = 'pending',
- transfer_succeeded = 'transfer_succeeded',
- transfer_failed = 'transfer_failed',
+export type GQLMutationUpdateUserStateArgs = {
+ input: GQLUpdateUserStateInput
}
-export interface GQLCircleAnalytics {
- income: GQLCircleIncomeAnalytics
- subscriber: GQLCircleSubscriberAnalytics
- follower: GQLCircleFollowerAnalytics
- content: GQLCircleContentAnalytics
+export type GQLMutationUserLoginArgs = {
+ input: GQLUserLoginInput
}
-export interface GQLCircleIncomeAnalytics {
- /**
- * income history of last 4 months
- */
- history: Array
+export type GQLMutationUserRegisterArgs = {
+ input: GQLUserRegisterInput
+}
- /**
- * total income of all time
- */
- total: number
+export type GQLMutationVerifyEmailArgs = {
+ input: GQLVerifyEmailInput
+}
- /**
- * income of this month
- */
- thisMonth: number
+export type GQLMutationVoteCommentArgs = {
+ input: GQLVoteCommentInput
+}
- /**
- * income of next month
- */
- nextMonth: number
+export type GQLMutationWalletLoginArgs = {
+ input: GQLWalletLoginInput
}
-export interface GQLMonthlyDatum {
- value: number
- date: GQLDateTime
+/** NFT Asset */
+export type GQLNftAsset = {
+ __typename?: 'NFTAsset'
+ collectionName: Scalars['String']['output']
+ /** imageOriginalUrl: String! */
+ contractAddress: Scalars['String']['output']
+ description?: Maybe
+ id: Scalars['ID']['output']
+ imagePreviewUrl?: Maybe