diff --git a/lang/default.json b/lang/default.json index 7870717215..b540a94307 100644 --- a/lang/default.json +++ b/lang/default.json @@ -376,9 +376,6 @@ "3EeDnu": { "defaultMessage": "Paste JSFiddle or CodePen link, and press enter" }, - "3HKaQ4": { - "defaultMessage": "The next slice mounts the zkID in-browser worker here and submits the proof to Matters." - }, "3KNMbJ": { "defaultMessage": "Articles" }, @@ -493,6 +490,9 @@ "5XFd/5": { "defaultMessage": "Manage Circle" }, + "5YuSaZ": { + "defaultMessage": "After TW FidO signs, continue here on desktop, or copy the Mac proof link to a desktop browser." + }, "5fjmnA": { "defaultMessage": "碳基生物" }, @@ -612,6 +612,9 @@ "defaultMessage": "Edit", "description": "src/components/CircleComment/DropdownActions/EditButton.tsx" }, + "6wdAti": { + "defaultMessage": "No moments yet" + }, "73iajM": { "defaultMessage": "Oops. Something went wrong. Please try again later.", "description": "BAD_USER_INPUT" @@ -623,6 +626,9 @@ "defaultMessage": "Payout Canceled", "description": "src/components/Transaction/index.tsx" }, + "7DJ8wF": { + "defaultMessage": "Join the Moments channel" + }, "7HPPqs": { "defaultMessage": ". {SuggestButton}?" }, @@ -1074,6 +1080,9 @@ "DtO278": { "defaultMessage": "We’ve detected that several of your recent works have been recommended to related channels. They may not appear at the same time" }, + "Dx5Sas": { + "defaultMessage": "Copy Mac proof link" + }, "DyuHBH": { "defaultMessage": "Unpin from profile", "description": "src/components/CollectionDigest/DropdownActions/PinButton.tsx" @@ -1178,6 +1187,9 @@ "defaultMessage": "Switch to Optimism network now?", "description": "src/components/Forms/PaymentForm/SwitchNetwork/index.tsx" }, + "FXgOAP": { + "defaultMessage": "Browser handoff is ready. Browser proving is pending until the prover runs in a cross-origin isolated page." + }, "Fe682o": { "defaultMessage": "Next Month (Estimation)", "description": "src/views/Circle/Analytics/IncomeAnalytics/index.tsx" @@ -1348,6 +1360,9 @@ "HzB4Lk": { "defaultMessage": "Tell readers why you edited this time..." }, + "I1eVEY": { + "defaultMessage": "Application submitted, pending review" + }, "I3v/Va": { "defaultMessage": "PWA proof handoff" }, @@ -1545,6 +1560,9 @@ "LWE7oq": { "defaultMessage": "Saving draft, are you sure you want to leave?" }, + "LXZyce": { + "defaultMessage": "You have already applied, please wait for the review." + }, "Lb0JsC": { "defaultMessage": "You have blocked that user" }, @@ -1801,6 +1819,9 @@ "Q8Qw5B": { "defaultMessage": "Description" }, + "QHRze5": { + "defaultMessage": "Moments" + }, "QKJWqd": { "defaultMessage": "Bookmark", "description": "src/components/Buttons/TagBookmark/Bookmark.tsx" @@ -2099,9 +2120,6 @@ "defaultMessage": "Publishing, please wait...", "description": "src/components/Editor/PreviewDialog/index.tsx" }, - "V3oaoZ": { - "defaultMessage": "After TW FidO signs, continue in this browser. No native proof helper is required for this PWA path." - }, "V5OMr4": { "defaultMessage": "What is a digital wallet?", "description": "src/components/Forms/SelectAuthMethodForm/WalletFeed.tsx" @@ -2113,6 +2131,9 @@ "VBve8d": { "defaultMessage": "Settled in Matters" }, + "VDclc3": { + "defaultMessage": "You have joined the Moments channel. The moments you post will now appear in this channel." + }, "VFQGq7": { "defaultMessage": "Check result" }, @@ -2340,9 +2361,6 @@ "Z39z+x": { "defaultMessage": "{displayName} won't be able to comment your article. Besides, he or she can't @ you and subscribe your circle. You can manage blocked list in settings." }, - "Z4R3Lq": { - "defaultMessage": "This browser page is missing a required PWA proving capability." - }, "Z7JXlF": { "defaultMessage": "Archived for violation.", "description": "src/views/ArticleDetail/StickyTopBanner/index.tsx" @@ -2446,6 +2464,9 @@ "defaultMessage": "go to the homepage", "description": "src/views/Callback/UI.tsx" }, + "atmn17": { + "defaultMessage": "Open isolated prover" + }, "awW+lk": { "defaultMessage": "Processing", "description": "src/components/Transaction/State/index.tsx" @@ -2583,6 +2604,10 @@ "d5bM8A": { "defaultMessage": "Select Date..." }, + "d95AX1": { + "defaultMessage": "Let me think about it", + "description": "src/views/HottestMoments/Apply/Dialog/index.tsx" + }, "dAPUJp": { "defaultMessage": "The dazzling light of a meteor shower is enough to illuminate the night sky. The Meteor Canoe badge signifies your participation in the Nomad Matters.", "description": "src/views/User/UserProfile/BadgeNomadLabel/index.tsx" @@ -2619,6 +2644,9 @@ "defaultMessage": "Comments and replies", "description": "src/views/Me/Settings/Notifications/GeneralSettings/index.tsx" }, + "dWt8c/": { + "defaultMessage": "Open the isolated browser container. It does not load the normal Matters bundle, so cross-origin isolation can be enabled for the zkID worker." + }, "dZlT9q": { "defaultMessage": "Your work has been recommended to the channels: {channelNames}. Are you satisfied with the result?" }, @@ -2859,6 +2887,10 @@ "defaultMessage": "Insufficient:", "description": "src/components/Balance/index.tsx" }, + "hdbKK1": { + "defaultMessage": "Moments", + "description": "src/components/Layout/SideChannelNav/index.tsx" + }, "hgtWIO": { "defaultMessage": "Articles have been collected", "description": "src/views/Me/Settings/Notifications/GeneralSettings/index.tsx" @@ -3263,6 +3295,9 @@ "defaultMessage": "Following", "description": "src/components/UserProfile/index.tsx" }, + "ol0msv": { + "defaultMessage": "Copy TW FidO link" + }, "on+DYO": { "defaultMessage": "Confirm application" }, @@ -3538,6 +3573,9 @@ "tWCQCd": { "defaultMessage": "The contract has sent {amount} USDT to the connected wallet" }, + "tYDhrI": { + "defaultMessage": "Once you request to join and are approved, the moments you post will appear in this channel." + }, "tZKvnZ": { "defaultMessage": "Unlike moment" }, @@ -3902,6 +3940,9 @@ "z3uIHQ": { "defaultMessage": "Undo upvote" }, + "z5UXPc": { + "defaultMessage": "Apply to join" + }, "z91BKe": { "defaultMessage": "Archived Work", "description": "src/components/Notice/NoticeArticleTitle.tsx" @@ -3913,9 +3954,6 @@ "defaultMessage": "The login link has been sent to {email}", "description": "src/components/Forms/Verification/LinkSent.tsx" }, - "zCCJPu": { - "defaultMessage": "Run browser proof" - }, "zE51j6": { "defaultMessage": "Failed to publish, please try again." }, diff --git a/lang/en.json b/lang/en.json index 19c8c67b2f..7b8296a987 100644 --- a/lang/en.json +++ b/lang/en.json @@ -376,9 +376,6 @@ "3EeDnu": { "defaultMessage": "Paste JSFiddle or CodePen link, and press enter" }, - "3HKaQ4": { - "defaultMessage": "The next slice mounts the zkID in-browser worker here and submits the proof to Matters." - }, "3KNMbJ": { "defaultMessage": "Articles" }, @@ -493,6 +490,9 @@ "5XFd/5": { "defaultMessage": "Manage Circle" }, + "5YuSaZ": { + "defaultMessage": "After TW FidO signs, continue here on desktop, or copy the Mac proof link to a desktop browser." + }, "5fjmnA": { "defaultMessage": "碳基生物" }, @@ -612,6 +612,9 @@ "defaultMessage": "Edit", "description": "src/components/CircleComment/DropdownActions/EditButton.tsx" }, + "6wdAti": { + "defaultMessage": "No moments yet" + }, "73iajM": { "defaultMessage": "Oops. Something went wrong. Please try again later.", "description": "BAD_USER_INPUT" @@ -623,6 +626,9 @@ "defaultMessage": "Payout Canceled", "description": "src/components/Transaction/index.tsx" }, + "7DJ8wF": { + "defaultMessage": "Join the Moments channel" + }, "7HPPqs": { "defaultMessage": ". {SuggestButton}?" }, @@ -1074,6 +1080,9 @@ "DtO278": { "defaultMessage": "We’ve detected that several of your recent works have been recommended to related channels. They may not appear at the same time" }, + "Dx5Sas": { + "defaultMessage": "Copy Mac proof link" + }, "DyuHBH": { "defaultMessage": "Unpin from profile", "description": "src/components/CollectionDigest/DropdownActions/PinButton.tsx" @@ -1178,6 +1187,9 @@ "defaultMessage": "Switch to Optimism network now?", "description": "src/components/Forms/PaymentForm/SwitchNetwork/index.tsx" }, + "FXgOAP": { + "defaultMessage": "Browser handoff is ready. Browser proving is pending until the prover runs in a cross-origin isolated page." + }, "Fe682o": { "defaultMessage": "Next Month (Estimation)", "description": "src/views/Circle/Analytics/IncomeAnalytics/index.tsx" @@ -1348,6 +1360,9 @@ "HzB4Lk": { "defaultMessage": "Tell readers why you edited this time..." }, + "I1eVEY": { + "defaultMessage": "Application submitted, pending review" + }, "I3v/Va": { "defaultMessage": "PWA proof handoff" }, @@ -1545,6 +1560,9 @@ "LWE7oq": { "defaultMessage": "Saving draft, are you sure you want to leave?" }, + "LXZyce": { + "defaultMessage": "You have already applied, please wait for the review." + }, "Lb0JsC": { "defaultMessage": "You have blocked that user" }, @@ -1801,6 +1819,9 @@ "Q8Qw5B": { "defaultMessage": "Description" }, + "QHRze5": { + "defaultMessage": "Moments" + }, "QKJWqd": { "defaultMessage": "Bookmark", "description": "src/components/Buttons/TagBookmark/Bookmark.tsx" @@ -2099,9 +2120,6 @@ "defaultMessage": "Publishing, please wait...", "description": "src/components/Editor/PreviewDialog/index.tsx" }, - "V3oaoZ": { - "defaultMessage": "After TW FidO signs, continue in this browser. No native proof helper is required for this PWA path." - }, "V5OMr4": { "defaultMessage": "What is a digital wallet?", "description": "src/components/Forms/SelectAuthMethodForm/WalletFeed.tsx" @@ -2113,6 +2131,9 @@ "VBve8d": { "defaultMessage": "Settled in Matters" }, + "VDclc3": { + "defaultMessage": "You have joined the Moments channel. The moments you post will now appear in this channel." + }, "VFQGq7": { "defaultMessage": "Check result" }, @@ -2340,9 +2361,6 @@ "Z39z+x": { "defaultMessage": "{displayName} won't be able to comment your article. Besides, he or she can't @ you and subscribe your circle. You can manage blocked list in settings." }, - "Z4R3Lq": { - "defaultMessage": "This browser page is missing a required PWA proving capability." - }, "Z7JXlF": { "defaultMessage": "Archived for violation.", "description": "src/views/ArticleDetail/StickyTopBanner/index.tsx" @@ -2446,6 +2464,9 @@ "defaultMessage": "go to the homepage", "description": "src/views/Callback/UI.tsx" }, + "atmn17": { + "defaultMessage": "Open isolated prover" + }, "awW+lk": { "defaultMessage": "Processing", "description": "src/components/Transaction/State/index.tsx" @@ -2583,6 +2604,10 @@ "d5bM8A": { "defaultMessage": "Select Date..." }, + "d95AX1": { + "defaultMessage": "Let me think about it", + "description": "src/views/HottestMoments/Apply/Dialog/index.tsx" + }, "dAPUJp": { "defaultMessage": "The dazzling light of a meteor shower is enough to illuminate the night sky. The Meteor Canoe badge signifies your participation in the Nomad Matters.", "description": "src/views/User/UserProfile/BadgeNomadLabel/index.tsx" @@ -2619,6 +2644,9 @@ "defaultMessage": "Comments and replies", "description": "src/views/Me/Settings/Notifications/GeneralSettings/index.tsx" }, + "dWt8c/": { + "defaultMessage": "Open the isolated browser container. It does not load the normal Matters bundle, so cross-origin isolation can be enabled for the zkID worker." + }, "dZlT9q": { "defaultMessage": "Your work has been recommended to the channels: {channelNames}. Are you satisfied with the result?" }, @@ -2859,6 +2887,10 @@ "defaultMessage": "Insufficient: ", "description": "src/components/Balance/index.tsx" }, + "hdbKK1": { + "defaultMessage": "Moments", + "description": "src/components/Layout/SideChannelNav/index.tsx" + }, "hgtWIO": { "defaultMessage": "Articles have been collected", "description": "src/views/Me/Settings/Notifications/GeneralSettings/index.tsx" @@ -3263,6 +3295,9 @@ "defaultMessage": "Following", "description": "src/components/UserProfile/index.tsx" }, + "ol0msv": { + "defaultMessage": "Copy TW FidO link" + }, "on+DYO": { "defaultMessage": "Confirm application" }, @@ -3538,6 +3573,9 @@ "tWCQCd": { "defaultMessage": "The contract has sent {amount} USDT to the connected wallet" }, + "tYDhrI": { + "defaultMessage": "Once you request to join and are approved, the moments you post will appear in this channel." + }, "tZKvnZ": { "defaultMessage": "Unlike moment" }, @@ -3902,6 +3940,9 @@ "z3uIHQ": { "defaultMessage": "Undo upvote" }, + "z5UXPc": { + "defaultMessage": "Apply to join" + }, "z91BKe": { "defaultMessage": "Archived Work", "description": "src/components/Notice/NoticeArticleTitle.tsx" @@ -3913,9 +3954,6 @@ "defaultMessage": "The login link has been sent to {email}", "description": "src/components/Forms/Verification/LinkSent.tsx" }, - "zCCJPu": { - "defaultMessage": "Run browser proof" - }, "zE51j6": { "defaultMessage": "Failed to publish, please try again." }, diff --git a/lang/zh-Hans.json b/lang/zh-Hans.json index d3965a78a7..5548f213c8 100644 --- a/lang/zh-Hans.json +++ b/lang/zh-Hans.json @@ -376,9 +376,6 @@ "3EeDnu": { "defaultMessage": "贴上 JSFiddle 或 CodePen 链接后,Enter 进行新增" }, - "3HKaQ4": { - "defaultMessage": "The next slice mounts the zkID in-browser worker here and submits the proof to Matters." - }, "3KNMbJ": { "defaultMessage": "作品" }, @@ -493,6 +490,9 @@ "5XFd/5": { "defaultMessage": "管理围炉" }, + "5YuSaZ": { + "defaultMessage": "After TW FidO signs, continue here on desktop, or copy the Mac proof link to a desktop browser." + }, "5fjmnA": { "defaultMessage": "碳基生物" }, @@ -612,6 +612,9 @@ "defaultMessage": "编辑评论", "description": "src/components/CircleComment/DropdownActions/EditButton.tsx" }, + "6wdAti": { + "defaultMessage": "还没有动态" + }, "73iajM": { "defaultMessage": "出错了,请检查你输入的内容", "description": "BAD_USER_INPUT" @@ -623,6 +626,9 @@ "defaultMessage": "提现撤销", "description": "src/components/Transaction/index.tsx" }, + "7DJ8wF": { + "defaultMessage": "加入动态频道" + }, "7HPPqs": { "defaultMessage": "。{SuggestButton}?" }, @@ -1074,6 +1080,9 @@ "DtO278": { "defaultMessage": "检测到近期你的多篇文章被推荐到相关频道,他们有可能不会同时出现" }, + "Dx5Sas": { + "defaultMessage": "Copy Mac proof link" + }, "DyuHBH": { "defaultMessage": "取消代表作", "description": "src/components/CollectionDigest/DropdownActions/PinButton.tsx" @@ -1178,6 +1187,9 @@ "defaultMessage": "目前非 Optimism 网络,立即切换?", "description": "src/components/Forms/PaymentForm/SwitchNetwork/index.tsx" }, + "FXgOAP": { + "defaultMessage": "Browser handoff is ready. Browser proving is pending until the prover runs in a cross-origin isolated page." + }, "Fe682o": { "defaultMessage": "下月预期营收", "description": "src/views/Circle/Analytics/IncomeAnalytics/index.tsx" @@ -1348,6 +1360,9 @@ "HzB4Lk": { "defaultMessage": "告知读者你此次编辑的更动有哪些⋯" }, + "I1eVEY": { + "defaultMessage": "已送出申请,待审核" + }, "I3v/Va": { "defaultMessage": "PWA proof handoff" }, @@ -1545,6 +1560,9 @@ "LWE7oq": { "defaultMessage": "草稿保存中,确定要离开吗?" }, + "LXZyce": { + "defaultMessage": "你已经申请过了,请耐心等候审核" + }, "Lb0JsC": { "defaultMessage": "你屏蔽了该用户" }, @@ -1801,6 +1819,9 @@ "Q8Qw5B": { "defaultMessage": "描述" }, + "QHRze5": { + "defaultMessage": "动态" + }, "QKJWqd": { "defaultMessage": "收藏", "description": "src/components/Buttons/TagBookmark/Bookmark.tsx" @@ -2099,9 +2120,6 @@ "defaultMessage": "发布中,请稍候⋯", "description": "src/components/Editor/PreviewDialog/index.tsx" }, - "V3oaoZ": { - "defaultMessage": "After TW FidO signs, continue in this browser. No native proof helper is required for this PWA path." - }, "V5OMr4": { "defaultMessage": "什么是数字钱包?", "description": "src/components/Forms/SelectAuthMethodForm/WalletFeed.tsx" @@ -2113,6 +2131,9 @@ "VBve8d": { "defaultMessage": "搬家到 Matters" }, + "VDclc3": { + "defaultMessage": "你已加入动态频道,即日起发出的动态将显示于此频道" + }, "VFQGq7": { "defaultMessage": "Check result" }, @@ -2340,9 +2361,6 @@ "Z39z+x": { "defaultMessage": "封锁之后,{displayName} 将无法评论你的作品,不能 @ 你,并且不能加入你的围炉。你可以在设置里管理你的封锁用户列表" }, - "Z4R3Lq": { - "defaultMessage": "This browser page is missing a required PWA proving capability." - }, "Z7JXlF": { "defaultMessage": "因违反用户协定而被封存,", "description": "src/views/ArticleDetail/StickyTopBanner/index.tsx" @@ -2446,6 +2464,9 @@ "defaultMessage": "前往首页", "description": "src/views/Callback/UI.tsx" }, + "atmn17": { + "defaultMessage": "Open isolated prover" + }, "awW+lk": { "defaultMessage": "进行中…", "description": "src/components/Transaction/State/index.tsx" @@ -2583,6 +2604,10 @@ "d5bM8A": { "defaultMessage": "投稿日程⋯" }, + "d95AX1": { + "defaultMessage": "我再想想", + "description": "src/views/HottestMoments/Apply/Dialog/index.tsx" + }, "dAPUJp": { "defaultMessage": "流星雨的绚烂光芒足以点亮夜空。流星号徽章纪念你曾参与「游牧者计划」。", "description": "src/views/User/UserProfile/BadgeNomadLabel/index.tsx" @@ -2619,6 +2644,9 @@ "defaultMessage": "评论和回复", "description": "src/views/Me/Settings/Notifications/GeneralSettings/index.tsx" }, + "dWt8c/": { + "defaultMessage": "Open the isolated browser container. It does not load the normal Matters bundle, so cross-origin isolation can be enabled for the zkID worker." + }, "dZlT9q": { "defaultMessage": "已推荐你的这篇作品到频道:{channelNames},你对结果满意吗?" }, @@ -2859,6 +2887,10 @@ "defaultMessage": "余额不足:", "description": "src/components/Balance/index.tsx" }, + "hdbKK1": { + "defaultMessage": "动态", + "description": "src/components/Layout/SideChannelNav/index.tsx" + }, "hgtWIO": { "defaultMessage": "作品被关联", "description": "src/views/Me/Settings/Notifications/GeneralSettings/index.tsx" @@ -3263,6 +3295,9 @@ "defaultMessage": "关注中", "description": "src/components/UserProfile/index.tsx" }, + "ol0msv": { + "defaultMessage": "Copy TW FidO link" + }, "on+DYO": { "defaultMessage": "确认报名" }, @@ -3538,6 +3573,9 @@ "tWCQCd": { "defaultMessage": "交易合約已将 {amount} USDT 发送至绑定钱包" }, + "tYDhrI": { + "defaultMessage": "申请通过之后,个人发出的动态将显示于此频道" + }, "tZKvnZ": { "defaultMessage": "取消喜欢动态" }, @@ -3902,6 +3940,9 @@ "z3uIHQ": { "defaultMessage": "取消点赞" }, + "z5UXPc": { + "defaultMessage": "申请加入" + }, "z91BKe": { "defaultMessage": "已归档作品", "description": "src/components/Notice/NoticeArticleTitle.tsx" @@ -3913,9 +3954,6 @@ "defaultMessage": "登录链接已发送至 {email}", "description": "src/components/Forms/Verification/LinkSent.tsx" }, - "zCCJPu": { - "defaultMessage": "Run browser proof" - }, "zE51j6": { "defaultMessage": "发布失败" }, diff --git a/lang/zh-Hant.json b/lang/zh-Hant.json index 15eb944596..baf85330f7 100644 --- a/lang/zh-Hant.json +++ b/lang/zh-Hant.json @@ -376,9 +376,6 @@ "3EeDnu": { "defaultMessage": "貼上 JSFiddle 或 CodePen 連結後,Enter 進行新增" }, - "3HKaQ4": { - "defaultMessage": "The next slice mounts the zkID in-browser worker here and submits the proof to Matters." - }, "3KNMbJ": { "defaultMessage": "作品" }, @@ -493,6 +490,9 @@ "5XFd/5": { "defaultMessage": "管理圍爐" }, + "5YuSaZ": { + "defaultMessage": "After TW FidO signs, continue here on desktop, or copy the Mac proof link to a desktop browser." + }, "5fjmnA": { "defaultMessage": "碳基生物" }, @@ -612,6 +612,9 @@ "defaultMessage": "編輯", "description": "src/components/CircleComment/DropdownActions/EditButton.tsx" }, + "6wdAti": { + "defaultMessage": "還沒有動態" + }, "73iajM": { "defaultMessage": "出錯了,請檢查你輸入的內容", "description": "BAD_USER_INPUT" @@ -623,6 +626,9 @@ "defaultMessage": "提現撤銷", "description": "src/components/Transaction/index.tsx" }, + "7DJ8wF": { + "defaultMessage": "加入動態頻道" + }, "7HPPqs": { "defaultMessage": "。{SuggestButton}?" }, @@ -1074,6 +1080,9 @@ "DtO278": { "defaultMessage": "檢測到近期你的多篇文章被推薦到相關頻道,它們有可能不會同時出現" }, + "Dx5Sas": { + "defaultMessage": "Copy Mac proof link" + }, "DyuHBH": { "defaultMessage": "取消代表作", "description": "src/components/CollectionDigest/DropdownActions/PinButton.tsx" @@ -1178,6 +1187,9 @@ "defaultMessage": "目前非 Optimism 網路,立即切換?", "description": "src/components/Forms/PaymentForm/SwitchNetwork/index.tsx" }, + "FXgOAP": { + "defaultMessage": "Browser handoff is ready. Browser proving is pending until the prover runs in a cross-origin isolated page." + }, "Fe682o": { "defaultMessage": "下月預期營收", "description": "src/views/Circle/Analytics/IncomeAnalytics/index.tsx" @@ -1348,6 +1360,9 @@ "HzB4Lk": { "defaultMessage": "告知讀者你此次編輯的更動有哪些⋯" }, + "I1eVEY": { + "defaultMessage": "已送出申請,待審核" + }, "I3v/Va": { "defaultMessage": "PWA proof handoff" }, @@ -1545,6 +1560,9 @@ "LWE7oq": { "defaultMessage": "草稿儲存中,確定要離開嗎?" }, + "LXZyce": { + "defaultMessage": "你已經申請過了,請耐心等候審核" + }, "Lb0JsC": { "defaultMessage": "你封鎖了該用戶" }, @@ -1801,6 +1819,9 @@ "Q8Qw5B": { "defaultMessage": "描述" }, + "QHRze5": { + "defaultMessage": "動態" + }, "QKJWqd": { "defaultMessage": "收藏", "description": "src/components/Buttons/TagBookmark/Bookmark.tsx" @@ -2099,9 +2120,6 @@ "defaultMessage": "發布中,請稍候⋯", "description": "src/components/Editor/PreviewDialog/index.tsx" }, - "V3oaoZ": { - "defaultMessage": "After TW FidO signs, continue in this browser. No native proof helper is required for this PWA path." - }, "V5OMr4": { "defaultMessage": "什麼是數字錢包?", "description": "src/components/Forms/SelectAuthMethodForm/WalletFeed.tsx" @@ -2113,6 +2131,9 @@ "VBve8d": { "defaultMessage": "搬家到 Matters" }, + "VDclc3": { + "defaultMessage": "你已加入動態頻道,即日起發出的動態將顯示於此頻道" + }, "VFQGq7": { "defaultMessage": "Check result" }, @@ -2340,9 +2361,6 @@ "Z39z+x": { "defaultMessage": "封鎖之後,{displayName} 將無法評論你的作品,不能 @ 你,並且不能加入你的圍爐。你可以在設置裏管理你的封鎖用戶列表。`" }, - "Z4R3Lq": { - "defaultMessage": "This browser page is missing a required PWA proving capability." - }, "Z7JXlF": { "defaultMessage": "因違反用戶協定而被封存,", "description": "src/views/ArticleDetail/StickyTopBanner/index.tsx" @@ -2446,6 +2464,9 @@ "defaultMessage": "前往首頁", "description": "src/views/Callback/UI.tsx" }, + "atmn17": { + "defaultMessage": "Open isolated prover" + }, "awW+lk": { "defaultMessage": "進行中…", "description": "src/components/Transaction/State/index.tsx" @@ -2583,6 +2604,10 @@ "d5bM8A": { "defaultMessage": "投稿日程⋯" }, + "d95AX1": { + "defaultMessage": "我再想想", + "description": "src/views/HottestMoments/Apply/Dialog/index.tsx" + }, "dAPUJp": { "defaultMessage": "流星雨的絢爛光芒足以點亮夜空。流星號徽章紀念你曾參與「遊牧者計畫」。", "description": "src/views/User/UserProfile/BadgeNomadLabel/index.tsx" @@ -2619,6 +2644,9 @@ "defaultMessage": "評論和回覆", "description": "src/views/Me/Settings/Notifications/GeneralSettings/index.tsx" }, + "dWt8c/": { + "defaultMessage": "Open the isolated browser container. It does not load the normal Matters bundle, so cross-origin isolation can be enabled for the zkID worker." + }, "dZlT9q": { "defaultMessage": "已推薦你的這篇作品到頻道:{channelNames},你對結果滿意嗎?" }, @@ -2859,6 +2887,10 @@ "defaultMessage": "餘額不足:", "description": "src/components/Balance/index.tsx" }, + "hdbKK1": { + "defaultMessage": "動態", + "description": "src/components/Layout/SideChannelNav/index.tsx" + }, "hgtWIO": { "defaultMessage": "作品被關聯", "description": "src/views/Me/Settings/Notifications/GeneralSettings/index.tsx" @@ -3263,6 +3295,9 @@ "defaultMessage": "追蹤中", "description": "src/components/UserProfile/index.tsx" }, + "ol0msv": { + "defaultMessage": "Copy TW FidO link" + }, "on+DYO": { "defaultMessage": "確認報名" }, @@ -3538,6 +3573,9 @@ "tWCQCd": { "defaultMessage": "交易合約已將 {amount} USDT 發送至綁定錢包" }, + "tYDhrI": { + "defaultMessage": "申請通過之後,個人發出的動態將顯示於此頻道" + }, "tZKvnZ": { "defaultMessage": "取消喜歡動態" }, @@ -3902,6 +3940,9 @@ "z3uIHQ": { "defaultMessage": "取消點讚" }, + "z5UXPc": { + "defaultMessage": "申請加入" + }, "z91BKe": { "defaultMessage": "已封存作品", "description": "src/components/Notice/NoticeArticleTitle.tsx" @@ -3913,9 +3954,6 @@ "defaultMessage": "登入連結已發送至 {email}", "description": "src/components/Forms/Verification/LinkSent.tsx" }, - "zCCJPu": { - "defaultMessage": "Run browser proof" - }, "zE51j6": { "defaultMessage": "發布失敗" }, diff --git a/src/common/enums/events.ts b/src/common/enums/events.ts index 31bf840057..d4a3ca8e8f 100644 --- a/src/common/enums/events.ts +++ b/src/common/enums/events.ts @@ -81,6 +81,7 @@ export enum UNIVERSAL_AUTH_TRIGGER { momentLike = 'momentLike', applyCampaign = 'applyCampaign', collectionLike = 'collectionLike', + applyMomentFeed = 'applyMomentFeed', } // Editor diff --git a/src/common/enums/route.ts b/src/common/enums/route.ts index da080bdbfd..d8229b49fc 100644 --- a/src/common/enums/route.ts +++ b/src/common/enums/route.ts @@ -9,6 +9,7 @@ type ROUTE_KEY = | 'HOME' | 'FEATURED' | 'HOTTEST' + | 'HOTTEST_MOMENTS' | 'NEWEST' | 'CHANNEL' | 'FOLLOW' @@ -161,6 +162,7 @@ export const ROUTES: { { key: 'HOME', pathname: '/' }, { key: 'FEATURED', pathname: '/featured' }, { key: 'HOTTEST', pathname: '/hottest' }, + { key: 'HOTTEST_MOMENTS', pathname: '/moments' }, { key: 'NEWEST', pathname: '/newest' }, { key: 'CHANNEL', pathname: '/c/[shortHash]' }, { key: 'FOLLOW', pathname: '/follow' }, diff --git a/src/components/Context/Viewer/index.tsx b/src/components/Context/Viewer/index.tsx index b3812c9b8e..529b5264e5 100644 --- a/src/components/Context/Viewer/index.tsx +++ b/src/components/Context/Viewer/index.tsx @@ -65,6 +65,7 @@ const ViewerFragments = { private: gql` fragment ViewerUserPrivate on User { id + isMomentFeedApplied info { socialAccounts { type diff --git a/src/components/Layout/SideChannelNav/index.tsx b/src/components/Layout/SideChannelNav/index.tsx index d787aac570..9b424aac6e 100644 --- a/src/components/Layout/SideChannelNav/index.tsx +++ b/src/components/Layout/SideChannelNav/index.tsx @@ -114,6 +114,26 @@ const SideChannelNav = () => { + onTabClick('hottest_moments')} + > + + + + + + + {channels.map((c) => ( ))} diff --git a/src/components/Layout/index.tsx b/src/components/Layout/index.tsx index afec15497a..0672842387 100644 --- a/src/components/Layout/index.tsx +++ b/src/components/Layout/index.tsx @@ -96,6 +96,7 @@ const useLayoutType = () => { isHome || isInPath('FEATURED') || isInPath('HOTTEST') || + isInPath('HOTTEST_MOMENTS') || isInPath('NEWEST') || isInPath('CHANNEL') || isInPath('FOLLOW') || diff --git a/src/components/MomentDigest/DropdownActions/RevokeMomentFeed.tsx b/src/components/MomentDigest/DropdownActions/RevokeMomentFeed.tsx new file mode 100644 index 0000000000..fbdd40e963 --- /dev/null +++ b/src/components/MomentDigest/DropdownActions/RevokeMomentFeed.tsx @@ -0,0 +1,35 @@ +import gql from 'graphql-tag' + +import IconCircleMinus from '@/public/static/icons/24px/circle-minus.svg' +import { Icon, Menu, toast, useMutation } from '~/components' +import { RevokeMomentFeedMutation } from '~/gql/graphql' + +const REVOKE_MOMENT_FEED = gql` + mutation RevokeMomentFeed($id: ID!) { + updateMomentFeedApplicationState(input: { id: $id, state: revoked }) { + id + isMomentFeedApplied + } + } +` + +const RevokeMomentFeed = ({ userId }: { userId: string }) => { + const [revoke] = useMutation(REVOKE_MOMENT_FEED, { + variables: { id: userId }, + }) + + return ( + } + onClick={async () => { + try { + await revoke() + toast.success({ message: '已撤銷資格' }) + } catch {} + }} + /> + ) +} + +export default RevokeMomentFeed diff --git a/src/components/MomentDigest/DropdownActions/ToggleAdMoment.tsx b/src/components/MomentDigest/DropdownActions/ToggleAdMoment.tsx new file mode 100644 index 0000000000..f261af2682 --- /dev/null +++ b/src/components/MomentDigest/DropdownActions/ToggleAdMoment.tsx @@ -0,0 +1,82 @@ +import { useQuery } from '@apollo/client' +import gql from 'graphql-tag' + +import IconPin from '@/public/static/icons/24px/pin.svg' +import IconUnpin from '@/public/static/icons/24px/unpin.svg' +import { Icon, Menu, Spinner, toast, useMutation } from '~/components' +import { FetchMomentAdStatusQuery, ToggleAdMomentMutation } from '~/gql/graphql' + +const fragments = { + moment: gql` + fragment ToggleAdMomentMoment on Moment { + id + adStatus { + isAd + } + } + `, +} + +const TOGGLE_AD_MOMENT = gql` + mutation ToggleAdMoment($momentId: ID!, $isAd: Boolean!) { + setWritingAdStatus(input: { id: $momentId, isAd: $isAd }) { + ... on Moment { + id + ...ToggleAdMomentMoment + } + } + } + ${fragments.moment} +` + +const FETCH_MOMENT_AD_STATUS = gql` + query FetchMomentAdStatus($shortHash: String!) { + moment(input: { shortHash: $shortHash }) { + ...ToggleAdMomentMoment + } + } + ${fragments.moment} +` + +const ToggleAdMoment = ({ shortHash }: { shortHash: string }) => { + const { data, loading } = useQuery( + FETCH_MOMENT_AD_STATUS, + { + variables: { + shortHash, + }, + } + ) + + const isAd = data?.moment?.adStatus.isAd + const momentId = data?.moment?.id + + const [update] = useMutation(TOGGLE_AD_MOMENT, { + variables: { + momentId, + isAd: !isAd, + }, + }) + + if (loading) { + return + } + + return ( + } + onClick={async () => { + await update() + + toast.success({ + message: isAd ? '已取消標記廣告' : '已標記廣告', + }) + }} + /> + ) +} + +ToggleAdMoment.fragments = fragments + +export default ToggleAdMoment diff --git a/src/components/MomentDigest/DropdownActions/index.tsx b/src/components/MomentDigest/DropdownActions/index.tsx index 7fe7c107ef..bcc1614ddb 100644 --- a/src/components/MomentDigest/DropdownActions/index.tsx +++ b/src/components/MomentDigest/DropdownActions/index.tsx @@ -20,6 +20,15 @@ import { } from '~/components' import { SubmitReportDialogProps } from '~/components/Dialogs/SubmitReportDialog/Dialog' import { MomentDigestDropdownActionsMomentFragment } from '~/gql/graphql' +import { ArchiveUserDialogProps } from '~/views/User/UserProfile/DropdownActions/ArchiveUser/Dialog' +import { + OpenToggleFreezeUserDialogWithProps, + ToggleFreezeUserDialogProps, +} from '~/views/User/UserProfile/DropdownActions/ToggleFreezeUser/Dialog' +import { + OpenToggleRestrictUserDialogWithProps, + ToggleRestrictUserDialogProps, +} from '~/views/User/UserProfile/DropdownActions/ToggleRestrictUser/Dialog' import DeleteMoment from './DeleteMoment' import { DeleteMomentDialogProps } from './DeleteMoment/Dialog' @@ -33,10 +42,55 @@ const DynamicToggleSpamButton = dynamic( } ) +const DynamicToggleAdMomentButton = dynamic(() => import('./ToggleAdMoment'), { + loading: () => , +}) + +const DynamicRevokeMomentFeedButton = dynamic( + () => import('./RevokeMomentFeed'), + { + loading: () => , + } +) + +const DynamicToggleFreezeUserButton = dynamic( + () => + import('~/views/User/UserProfile/DropdownActions/ToggleFreezeUser/Button'), + { loading: () => } +) +const DynamicToggleFreezeUserDialog = dynamic( + () => + import('~/views/User/UserProfile/DropdownActions/ToggleFreezeUser/Dialog'), + { loading: () => } +) +const DynamicToggleRestrictUserButton = dynamic( + () => + import( + '~/views/User/UserProfile/DropdownActions/ToggleRestrictUser/Button' + ), + { loading: () => } +) +const DynamicToggleRestrictUserDialog = dynamic( + () => + import( + '~/views/User/UserProfile/DropdownActions/ToggleRestrictUser/Dialog' + ), + { loading: () => } +) +const DynamicArchiveUserButton = dynamic( + () => import('~/views/User/UserProfile/DropdownActions/ArchiveUser/Button'), + { loading: () => } +) +const DynamicArchiveUserDialog = dynamic( + () => import('~/views/User/UserProfile/DropdownActions/ArchiveUser/Dialog'), + { loading: () => } +) + const fragments = { moment: gql` fragment MomentDigestDropdownActionsMoment on Moment { id + shortHash state author { id @@ -58,6 +112,13 @@ interface Controls { interface DialogProps { openDeleteMomentDialog: () => void openSubmitReportDialog: () => void + openToggleRestrictUserDialog: ( + props: OpenToggleRestrictUserDialogWithProps + ) => void + openToggleFreezeUserDialog: ( + props: OpenToggleFreezeUserDialogWithProps + ) => void + openArchiveUserDialog: () => void } type BaseDropdownActionsProps = DropdownActionsProps & Controls & DialogProps @@ -69,6 +130,9 @@ const BaseDropdownActions = ({ openDeleteMomentDialog, openSubmitReportDialog, + openToggleRestrictUserDialog, + openToggleFreezeUserDialog, + openArchiveUserDialog, }: BaseDropdownActionsProps) => { const viewer = useContext(ViewerContext) @@ -84,6 +148,17 @@ const BaseDropdownActions = ({ <> + + + + + )} @@ -164,7 +239,44 @@ const DropdownActions = (props: DropdownActionsProps) => { } }) - return + const WithToggleRestrictUser = withDialog< + Omit + >( + WithDeleteMoment, + DynamicToggleRestrictUserDialog as React.ComponentType< + Omit & { + children: (props: { openDialog: () => void }) => React.ReactNode + } + >, + { id: moment.author.id, userName: moment.author.userName! }, + ({ openDialog }) => ({ + openToggleRestrictUserDialog: openDialog, + }) + ) + + const WithToggleFreezeUser = withDialog< + Omit + >( + WithToggleRestrictUser, + DynamicToggleFreezeUserDialog as React.ComponentType< + Omit & { + children: (props: { openDialog: () => void }) => React.ReactNode + } + >, + { id: moment.author.id, userName: moment.author.userName! }, + ({ openDialog }) => ({ + openToggleFreezeUserDialog: openDialog, + }) + ) + + const WithArchiveUser = withDialog>( + WithToggleFreezeUser, + DynamicArchiveUserDialog, + { id: moment.author.id, userName: moment.author.userName! }, + ({ openDialog }) => ({ openArchiveUserDialog: openDialog }) + ) + + return } DropdownActions.fragments = fragments diff --git a/src/components/Notice/UserNotice/MomentFeedApproved.tsx b/src/components/Notice/UserNotice/MomentFeedApproved.tsx new file mode 100644 index 0000000000..4ad0286e81 --- /dev/null +++ b/src/components/Notice/UserNotice/MomentFeedApproved.tsx @@ -0,0 +1,49 @@ +import gql from 'graphql-tag' +import Link from 'next/link' +import { FormattedMessage } from 'react-intl' + +import { PATHS } from '~/common/enums' +import { MomentFeedApprovedFragment } from '~/gql/graphql' + +import NoticeCard from '../NoticeCard' +import NoticeDate from '../NoticeDate' +import officialStyles from '../OfficialNotice/styles.module.css' + +const MomentFeedApproved = ({ + notice, +}: { + notice: MomentFeedApprovedFragment +}) => { + const Message = () => ( +

+ +

+ ) + + return ( + + + + } + /> + ) +} + +MomentFeedApproved.fragments = { + notice: gql` + fragment MomentFeedApproved on UserNotice { + id + ...NoticeDate + } + ${NoticeDate.fragments.notice} + `, +} + +export default MomentFeedApproved diff --git a/src/components/Notice/UserNotice/index.tsx b/src/components/Notice/UserNotice/index.tsx index 7b9ef667ec..116cb72be0 100644 --- a/src/components/Notice/UserNotice/index.tsx +++ b/src/components/Notice/UserNotice/index.tsx @@ -2,12 +2,15 @@ import gql from 'graphql-tag' import { UserNoticeFragment } from '~/gql/graphql' +import MomentFeedApproved from './MomentFeedApproved' import UserNewFollower from './UserNewFollower' const UserNotice = ({ notice }: { notice: UserNoticeFragment }) => { switch (notice.userNoticeType) { case 'UserNewFollower': return + case 'MomentFeedApproved': + return default: return null } @@ -21,8 +24,10 @@ UserNotice.fragments = { __typename userNoticeType: type ...UserNewFollower + ...MomentFeedApproved } ${UserNewFollower.fragments.notice} + ${MomentFeedApproved.fragments.notice} `, } diff --git a/src/gql/graphql.ts b/src/gql/graphql.ts deleted file mode 100644 index c7b87b1e37..0000000000 --- a/src/gql/graphql.ts +++ /dev/null @@ -1,32980 +0,0 @@ -export type Maybe = T | null -export type InputMaybe = Maybe -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 - } -/** 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 } - /** 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. */ - DateTime: { input: any; output: any } - Upload: { input: any; output: any } - amount_Float_NotNull_exclusiveMin_0: { input: any; output: any } - amount_Float_exclusiveMin_0: { input: any; output: any } - amount_Int_NotNull_min_1: { input: any; output: any } - banDays_Int_exclusiveMin_0: { input: any; output: any } - boost_Float_NotNull_min_0: { input: any; output: any } - description_String_maxLength_140: { input: any; output: any } - email_String_NotNull_format_email: { input: any; output: any } - email_String_format_email: { input: any; output: any } - first_Int_NotNull_min_0: { input: any; output: any } - first_Int_min_0: { input: any; output: any } - freePeriod_Int_NotNull_exclusiveMin_0: { input: any; output: any } - last_Int_min_0: { input: any; output: any } - link_String_NotNull_format_uri: { input: any; output: any } - link_String_format_uri: { input: any; output: any } - random_Int_min_0_max_49: { input: any; output: any } - redirectUrl_String_format_uri: { input: any; output: any } - replyToDonator_String_maxLength_140: { input: any; output: any } - requestForDonation_String_maxLength_140: { input: any; output: any } - url_String_format_uri: { input: any; output: any } - website_String_format_uri: { input: any; output: any } -} - -export type AdStatus = { - __typename?: 'AdStatus' - /** Whether this article is labeled as ad by human, null for not labeled yet. */ - isAd?: Maybe -} - -export type AddCollectionsArticlesInput = { - articles: Array - collections: Array -} - -export type AddCreditInput = { - amount: Scalars['amount_Float_NotNull_exclusiveMin_0']['input'] -} - -export type AddCreditResult = { - __typename?: 'AddCreditResult' - /** The client secret of this PaymentIntent. */ - client_secret: Scalars['String']['output'] - transaction: Transaction -} - -export type AddCurationChannelArticlesInput = { - articles: Array - channel: Scalars['ID']['input'] -} - -export type Announcement = { - __typename?: 'Announcement' - channels: Array - content?: Maybe - cover?: Maybe - createdAt: Scalars['DateTime']['output'] - expiredAt?: Maybe - id: Scalars['ID']['output'] - link?: Maybe - order: Scalars['Int']['output'] - title?: Maybe - /** @deprecated Use title, content, link with TranslationArgs instead */ - translations?: Maybe> - type: AnnouncementType - updatedAt: Scalars['DateTime']['output'] - visible: Scalars['Boolean']['output'] -} - -export type AnnouncementContentArgs = { - input?: InputMaybe -} - -export type AnnouncementLinkArgs = { - input?: InputMaybe -} - -export type AnnouncementTitleArgs = { - input?: InputMaybe -} - -export type AnnouncementChannel = { - __typename?: 'AnnouncementChannel' - channel: Channel - order: Scalars['Int']['output'] - visible: Scalars['Boolean']['output'] -} - -export type AnnouncementChannelInput = { - channel: Scalars['ID']['input'] - order: Scalars['Int']['input'] - visible: Scalars['Boolean']['input'] -} - -export enum AnnouncementType { - Community = 'community', - Product = 'product', - Seminar = 'seminar', -} - -export type AnnouncementsInput = { - channel?: InputMaybe - id?: InputMaybe - visible?: InputMaybe -} - -export type ApplyCampaignInput = { - id: Scalars['ID']['input'] -} - -export type AppreciateArticleInput = { - amount: Scalars['amount_Int_NotNull_min_1']['input'] - id: Scalars['ID']['input'] - superLike?: InputMaybe - token?: InputMaybe -} - -export type Appreciation = { - __typename?: 'Appreciation' - amount: Scalars['Int']['output'] - content: Scalars['String']['output'] - /** Timestamp of appreciation. */ - createdAt: Scalars['DateTime']['output'] - purpose: AppreciationPurpose - /** Recipient of appreciation. */ - recipient: User - /** Sender of appreciation. */ - sender?: Maybe - /** Object that appreciation is meant for. */ - target?: Maybe
-} - -export type AppreciationConnection = Connection & { - __typename?: 'AppreciationConnection' - edges?: Maybe> - pageInfo: PageInfo - totalCount: Scalars['Int']['output'] -} - -export type AppreciationEdge = { - __typename?: 'AppreciationEdge' - cursor: Scalars['String']['output'] - node: Appreciation -} - -export enum AppreciationPurpose { - Appreciate = 'appreciate', - AppreciateComment = 'appreciateComment', - AppreciateSubsidy = 'appreciateSubsidy', - FirstPost = 'firstPost', - InvitationAccepted = 'invitationAccepted', - JoinByInvitation = 'joinByInvitation', - JoinByTask = 'joinByTask', - SystemSubsidy = 'systemSubsidy', -} - -/** - * 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 Article = Node & - PinnableWork & { - __typename?: 'Article' - /** Access related fields on circle */ - access: ArticleAccess - /** 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: AppreciationConnection - /** 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: User - /** Available translation languages. */ - availableTranslations?: Maybe> - /** The number of users who bookmarked this article. */ - bookmarkCount: Scalars['Int']['output'] - bookmarked: Scalars['Boolean']['output'] - /** Associated campaigns */ - campaigns: Array - /** Whether readers can comment */ - canComment: Scalars['Boolean']['output'] - /** This value determines if current viewer can SuperLike or not. */ - canSuperLike: Scalars['Boolean']['output'] - /** Classifications status */ - classification: ArticleClassification - /** - * List of articles added into this article's connections. - * @deprecated Use connections instead - */ - collection: ArticleConnection - /** Collections of this article. */ - collections: CollectionConnection - /** The counting number of comments. */ - commentCount: Scalars['Int']['output'] - /** List of comments of this article. */ - comments: CommentConnection - /** List of articles which added this article into their connections. */ - connectedBy: ArticleConnection - connections: ArticleConnection - /** Content (HTML) of this article. */ - content: Scalars['String']['output'] - /** Different foramts of content. */ - contents: ArticleContents - /** Article cover's link, set by author */ - cover?: Maybe - /** Time of this article was created. */ - createdAt: Scalars['DateTime']['output'] - /** IPFS hash of this article. */ - dataHash: Scalars['String']['output'] - /** Cover link that is displayed on the article page */ - displayCover?: Maybe - /** Whether current viewer has donated to this article */ - donated: Scalars['Boolean']['output'] - /** Total number of donation recieved of this article. */ - donationCount: Scalars['Int']['output'] - /** Donations of this article, grouped by sender */ - donations: ArticleDonationConnection - /** List of featured comments of this article. */ - featuredComments: CommentConnection - /** Computed federation export eligibility for this article. */ - federationEligibility: ArticleFederationEligibility - /** Article-level federation setting override. */ - federationSetting?: Maybe - /** This value determines if current viewer has appreciated or not. */ - hasAppreciate: Scalars['Boolean']['output'] - /** Unique ID of this article */ - id: Scalars['ID']['output'] - /** Whether the first line of paragraph should be indented */ - indentFirstLine: Scalars['Boolean']['output'] - /** The iscnId if published to ISCN */ - iscnId?: Maybe - /** Original language of content */ - language?: Maybe - /** License Type */ - license: ArticleLicenseType - /** Media hash, composed of cid encoding, of this article. */ - mediaHash: Scalars['String']['output'] - /** Whether this article is noindex */ - noindex: Scalars['Boolean']['output'] - oss: ArticleOss - /** 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'] - /** This value determines if this article is an author selected article or not. */ - 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: ArticleConnection - /** Donation-related articles to this article. */ - relatedDonationArticles: ArticleConnection - 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: ResponseConnection - /** Time of this article was revised. */ - revisedAt?: Maybe - /** Revision Count */ - revisionCount: Scalars['Int']['output'] - /** Whether content is marked as sensitive by admin */ - sensitiveByAdmin: Scalars['Boolean']['output'] - /** whether content is marked as sensitive by author */ - sensitiveByAuthor: Scalars['Boolean']['output'] - /** Short hash for shorter url addressing */ - shortHash: Scalars['String']['output'] - /** Slugified article title. */ - slug: Scalars['String']['output'] - /** State of this article. */ - state: ArticleState - /** - * This value determines if current Viewer has bookmarked of not. - * @deprecated Use bookmarked instead - */ - subscribed: Scalars['Boolean']['output'] - /** 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'] - /** Transactions history of this article. */ - transactionsReceivedBy: UserConnection - /** Translation of article title and content. */ - translation?: Maybe - /** History versions */ - versions: ArticleVersionsConnection - /** Word count of this article. */ - wordCount?: Maybe - } - -/** - * 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 ArticleAppreciationsReceivedArgs = { - input: ConnectionArgs -} - -/** - * 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 ArticleCollectionArgs = { - input: ConnectionArgs -} - -/** - * 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 ArticleCollectionsArgs = { - input: ConnectionArgs -} - -/** - * 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 ArticleCommentsArgs = { - input: CommentsInput -} - -/** - * 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 ArticleConnectedByArgs = { - input: ConnectionArgs -} - -/** - * 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 ArticleConnectionsArgs = { - input: ConnectionArgs -} - -/** - * 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 ArticleDonationsArgs = { - input: ConnectionArgs -} - -/** - * 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 ArticleFeaturedCommentsArgs = { - input: FeaturedCommentsInput -} - -/** - * 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 ArticleRelatedArticlesArgs = { - input: ConnectionArgs -} - -/** - * 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 ArticleRelatedDonationArticlesArgs = { - input: RelatedDonationArticlesInput -} - -/** - * 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 ArticleResponsesArgs = { - input: ResponsesInput -} - -/** - * 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 ArticleTransactionsReceivedByArgs = { - input: TransactionsReceivedByArgs -} - -/** - * 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 ArticleTranslationArgs = { - input?: InputMaybe -} - -/** - * 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 ArticleVersionsArgs = { - input: ArticleVersionsInput -} - -export type ArticleAccess = { - __typename?: 'ArticleAccess' - circle?: Maybe - secret?: Maybe - type: ArticleAccessType -} - -/** Enums for types of article access */ -export enum ArticleAccessType { - Paywall = 'paywall', - Public = 'public', -} - -export type ArticleArticleNotice = Notice & { - __typename?: 'ArticleArticleNotice' - /** List of notice actors. */ - actors?: Maybe> - article: Article - /** Time of this notice was created. */ - createdAt: Scalars['DateTime']['output'] - /** Unique ID of this notice. */ - id: Scalars['ID']['output'] - target: Article - type: ArticleArticleNoticeType - /** The value determines if the notice is unread or not. */ - unread: Scalars['Boolean']['output'] -} - -export enum ArticleArticleNoticeType { - ArticleNewCollected = 'ArticleNewCollected', -} - -export type ArticleCampaign = { - __typename?: 'ArticleCampaign' - campaign: Campaign - stage?: Maybe -} - -export type ArticleCampaignInput = { - campaign: Scalars['ID']['input'] - stage?: InputMaybe -} - -export type ArticleClassification = { - __typename?: 'ArticleClassification' - topicChannel: TopicChannelClassification -} - -export type ArticleConnection = Connection & { - __typename?: 'ArticleConnection' - edges?: Maybe> - pageInfo: PageInfo - totalCount: Scalars['Int']['output'] -} - -export type ArticleContents = { - __typename?: 'ArticleContents' - /** HTML content of this article. */ - html: Scalars['String']['output'] - /** Markdown content of this article. */ - markdown: Scalars['String']['output'] -} - -export type ArticleDonation = { - __typename?: 'ArticleDonation' - id: Scalars['ID']['output'] - sender?: Maybe -} - -export type ArticleDonationConnection = { - __typename?: 'ArticleDonationConnection' - edges?: Maybe> - pageInfo: PageInfo - totalCount: Scalars['Int']['output'] -} - -export type ArticleDonationEdge = { - __typename?: 'ArticleDonationEdge' - cursor: Scalars['String']['output'] - node: ArticleDonation -} - -export type ArticleEdge = { - __typename?: 'ArticleEdge' - cursor: Scalars['String']['output'] - node: Article -} - -export type ArticleFederationEligibility = { - __typename?: 'ArticleFederationEligibility' - effectiveArticleSetting: FederationArticleSettingState - eligible: Scalars['Boolean']['output'] - reason: FederationExportDecisionReason -} - -export type ArticleFederationSetting = { - __typename?: 'ArticleFederationSetting' - articleId: Scalars['ID']['output'] - state: FederationArticleSettingState - updatedBy?: Maybe -} - -export type ArticleInput = { - mediaHash?: InputMaybe - shortHash?: InputMaybe -} - -/** Enums for types of article license */ -export enum ArticleLicenseType { - Arr = 'arr', - Cc_0 = 'cc_0', - CcByNcNd_2 = 'cc_by_nc_nd_2', - CcByNcNd_4 = 'cc_by_nc_nd_4', -} - -export type ArticleNotice = Notice & { - __typename?: 'ArticleNotice' - /** List of notice actors. */ - actors?: Maybe> - /** Time of this notice was created. */ - createdAt: Scalars['DateTime']['output'] - entities: Array - /** Unique ID of this notice. */ - id: Scalars['ID']['output'] - target: Article - type: ArticleNoticeType - /** The value determines if the notice is unread or not. */ - unread: Scalars['Boolean']['output'] -} - -export enum ArticleNoticeType { - ArticleMentionedYou = 'ArticleMentionedYou', - ArticleNewAppreciation = 'ArticleNewAppreciation', - ArticleNewSubscriber = 'ArticleNewSubscriber', - ArticlePublished = 'ArticlePublished', - CircleNewArticle = 'CircleNewArticle', - RevisedArticleNotPublished = 'RevisedArticleNotPublished', - RevisedArticlePublished = 'RevisedArticlePublished', - ScheduledArticlePublished = 'ScheduledArticlePublished', - TopicChannelFeedbackAccepted = 'TopicChannelFeedbackAccepted', -} - -export type ArticleOss = { - __typename?: 'ArticleOSS' - adStatus: AdStatus - boost: Scalars['Float']['output'] - inRecommendHottest: Scalars['Boolean']['output'] - inRecommendIcymi: Scalars['Boolean']['output'] - inRecommendNewest: Scalars['Boolean']['output'] - inSearch: Scalars['Boolean']['output'] - pinHistory: Array> - score: Scalars['Float']['output'] - spamStatus: SpamStatus - /** @deprecated Use classification.topicChannel.channels instead */ - topicChannels?: Maybe> -} - -export type ArticleRecommendationActivity = { - __typename?: 'ArticleRecommendationActivity' - /** Recommended articles */ - nodes?: Maybe> - /** The source type of recommendation */ - source?: Maybe -} - -export enum ArticleRecommendationActivitySource { - ReadArticlesTags = 'ReadArticlesTags', - UserDonation = 'UserDonation', -} - -/** Enums for an article state. */ -export enum ArticleState { - Active = 'active', - Archived = 'archived', - Banned = 'banned', -} - -export type ArticleTopicChannel = { - __typename?: 'ArticleTopicChannel' - /** Whether this article is filtered out by anti-flood in this channel */ - antiFlooded: Scalars['Boolean']['output'] - channel: TopicChannel - /** Datetime when this article is classified */ - classicfiedAt: Scalars['DateTime']['output'] - /** Whether this article channel is enabled */ - enabled: Scalars['Boolean']['output'] - /** Whether this article is labeled by human, null for not labeled yet. */ - isLabeled: Scalars['Boolean']['output'] - /** Whether this article is pinned */ - pinned: Scalars['Boolean']['output'] - /** Confident score by machine */ - score?: Maybe -} - -export type ArticleTranslation = { - __typename?: 'ArticleTranslation' - content?: Maybe - language?: Maybe - model?: Maybe - summary?: Maybe - title?: Maybe -} - -export type ArticleTranslationInput = { - language: UserLanguage - model?: InputMaybe -} - -export type ArticleVersion = Node & { - __typename?: 'ArticleVersion' - contents: ArticleContents - createdAt: Scalars['DateTime']['output'] - dataHash?: Maybe - description?: Maybe - id: Scalars['ID']['output'] - mediaHash?: Maybe - summary: Scalars['String']['output'] - title: Scalars['String']['output'] - translation?: Maybe -} - -export type ArticleVersionTranslationArgs = { - input?: InputMaybe -} - -export type ArticleVersionEdge = { - __typename?: 'ArticleVersionEdge' - cursor: Scalars['String']['output'] - node: ArticleVersion -} - -export type ArticleVersionsConnection = Connection & { - __typename?: 'ArticleVersionsConnection' - edges: Array> - pageInfo: PageInfo - totalCount: Scalars['Int']['output'] -} - -export type ArticleVersionsInput = { - after?: InputMaybe - first?: InputMaybe -} - -export enum ArticlesSort { - MostAppreciations = 'mostAppreciations', - MostBookmarks = 'mostBookmarks', - MostComments = 'mostComments', - MostDonations = 'mostDonations', - MostReadTime = 'mostReadTime', - Newest = 'newest', -} - -/** This type contains type, link and related data of an asset. */ -export type Asset = { - __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: AssetType - uploadURL?: Maybe -} - -/** Enums for asset types. */ -export enum AssetType { - AnnouncementCover = 'announcementCover', - Avatar = 'avatar', - CampaignCover = 'campaignCover', - CircleAvatar = 'circleAvatar', - CircleCover = 'circleCover', - CollectionCover = 'collectionCover', - Cover = 'cover', - Embed = 'embed', - Embedaudio = 'embedaudio', - Moment = 'moment', - OauthClientAvatar = 'oauthClientAvatar', - ProfileCover = 'profileCover', - TagCover = 'tagCover', -} - -export type AuthResult = { - __typename?: 'AuthResult' - auth: Scalars['Boolean']['output'] - token?: Maybe - type: AuthResultType - user?: Maybe -} - -export enum AuthResultType { - LinkAccount = 'LinkAccount', - Login = 'Login', - Signup = 'Signup', -} - -export enum AuthorsType { - Active = 'active', - Appreciated = 'appreciated', - Default = 'default', - Trendy = 'trendy', -} - -export type Badge = { - __typename?: 'Badge' - type: BadgeType -} - -export enum BadgeType { - Architect = 'architect', - CarbonBased = 'carbon_based', - CommunityWatch = 'community_watch', - GoldenMotor = 'golden_motor', - GrandSlam = 'grand_slam', - Nomad1 = 'nomad1', - Nomad2 = 'nomad2', - Nomad3 = 'nomad3', - Nomad4 = 'nomad4', - Seed = 'seed', -} - -export type BadgedUsersInput = { - after?: InputMaybe - first?: InputMaybe - type?: InputMaybe -} - -export type Balance = { - __typename?: 'Balance' - HKD: Scalars['Float']['output'] -} - -export type BanCampaignArticlesInput = { - articles: Array - campaign: Scalars['ID']['input'] -} - -export type BlockchainTransaction = { - __typename?: 'BlockchainTransaction' - chain: Chain - txHash: Scalars['String']['output'] -} - -export type BlockedSearchKeyword = { - __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 enum BoostTypes { - Article = 'Article', - Campaign = 'Campaign', - Tag = 'Tag', - User = 'User', -} - -export enum CacheControlScope { - Private = 'PRIVATE', - Public = 'PUBLIC', -} - -export type Campaign = { - id: Scalars['ID']['output'] - name: Scalars['String']['output'] - shortHash: Scalars['String']['output'] - state: CampaignState -} - -export type CampaignApplication = { - __typename?: 'CampaignApplication' - createdAt: Scalars['DateTime']['output'] - state: CampaignApplicationState -} - -export enum CampaignApplicationState { - Pending = 'pending', - Rejected = 'rejected', - Succeeded = 'succeeded', -} - -export type CampaignArticleConnection = Connection & { - __typename?: 'CampaignArticleConnection' - edges: Array - pageInfo: PageInfo - totalCount: Scalars['Int']['output'] -} - -export type CampaignArticleEdge = { - __typename?: 'CampaignArticleEdge' - announcement: Scalars['Boolean']['output'] - cursor: Scalars['String']['output'] - featured: Scalars['Boolean']['output'] - node: Article -} - -export type CampaignArticleNotice = Notice & { - __typename?: 'CampaignArticleNotice' - /** List of notice actors. */ - actors?: Maybe> - article: Article - /** Time of this notice was created. */ - createdAt: Scalars['DateTime']['output'] - /** Unique ID of this notice. */ - id: Scalars['ID']['output'] - target: Campaign - type: CampaignArticleNoticeType - /** The value determines if the notice is unread or not. */ - unread: Scalars['Boolean']['output'] -} - -export enum CampaignArticleNoticeType { - CampaignArticleFeatured = 'CampaignArticleFeatured', -} - -export type CampaignArticlesFilter = { - featured?: InputMaybe - stage?: InputMaybe -} - -export type CampaignArticlesInput = { - after?: InputMaybe - filter?: InputMaybe - first?: InputMaybe -} - -export type CampaignConnection = Connection & { - __typename?: 'CampaignConnection' - edges?: Maybe> - pageInfo: PageInfo - totalCount: Scalars['Int']['output'] -} - -export type CampaignEdge = { - __typename?: 'CampaignEdge' - cursor: Scalars['String']['output'] - node: Campaign -} - -export type CampaignInput = { - shortHash: Scalars['String']['input'] -} - -export type CampaignOss = { - __typename?: 'CampaignOSS' - boost: Scalars['Float']['output'] - exclusive: Scalars['Boolean']['output'] - managers: Array -} - -export type CampaignParticipantConnection = Connection & { - __typename?: 'CampaignParticipantConnection' - edges?: Maybe> - pageInfo: PageInfo - totalCount: Scalars['Int']['output'] -} - -export type CampaignParticipantEdge = { - __typename?: 'CampaignParticipantEdge' - application?: Maybe - cursor: Scalars['String']['output'] - node: User -} - -export type CampaignParticipantsInput = { - after?: InputMaybe - first?: InputMaybe - /** return all state participants */ - oss?: InputMaybe -} - -export type CampaignStage = { - __typename?: 'CampaignStage' - description: Scalars['String']['output'] - id: Scalars['ID']['output'] - name: Scalars['String']['output'] - period?: Maybe -} - -export type CampaignStageDescriptionArgs = { - input?: InputMaybe -} - -export type CampaignStageNameArgs = { - input?: InputMaybe -} - -export type CampaignStageInput = { - description?: InputMaybe> - name: Array - period?: InputMaybe -} - -export enum CampaignState { - Active = 'active', - Archived = 'archived', - Finished = 'finished', - Pending = 'pending', -} - -export type CampaignsFilter = { - excludes?: InputMaybe> - sort?: InputMaybe - state?: InputMaybe -} - -export enum CampaignsFilterSort { - WritingPeriod = 'writingPeriod', -} - -export enum CampaignsFilterState { - Active = 'active', - Finished = 'finished', -} - -export type CampaignsInput = { - after?: InputMaybe - filter?: InputMaybe - first?: InputMaybe - /** return pending and archived campaigns */ - oss?: InputMaybe -} - -export enum Chain { - Optimism = 'Optimism', - Polygon = 'Polygon', -} - -export type Channel = { - id: Scalars['ID']['output'] - navbarTitle: Scalars['String']['output'] - shortHash: Scalars['String']['output'] -} - -export type ChannelNavbarTitleArgs = { - input?: InputMaybe -} - -export type ChannelArticleConnection = Connection & { - __typename?: 'ChannelArticleConnection' - edges?: Maybe> - pageInfo: PageInfo - totalCount: Scalars['Int']['output'] -} - -export type ChannelArticleEdge = { - __typename?: 'ChannelArticleEdge' - cursor: Scalars['String']['output'] - node: Article - pinned: Scalars['Boolean']['output'] -} - -export type ChannelArticlesFilter = { - datetimeRange?: InputMaybe - searchKey?: InputMaybe -} - -export type ChannelArticlesInput = { - after?: InputMaybe - filter?: InputMaybe - first?: InputMaybe - oss?: InputMaybe - sort?: InputMaybe -} - -export type ChannelInput = { - shortHash: Scalars['String']['input'] -} - -export type ChannelsInput = { - /** return all channels if true, only active channels by default */ - oss?: InputMaybe -} - -export type Circle = Node & { - __typename?: 'Circle' - /** Analytics dashboard. */ - analytics: CircleAnalytics - /** - * Circle avatar's link. - * @deprecated No longer in use - */ - avatar?: Maybe - /** Comments broadcasted by Circle owner. */ - broadcast: CommentConnection - /** - * Circle cover's link. - * @deprecated No longer in use - */ - cover?: Maybe - /** - * Created time. - * @deprecated No longer in use - */ - createdAt: Scalars['DateTime']['output'] - /** A short description of this Circle. */ - description?: Maybe - /** Comments made by Circle member. */ - discussion: CommentConnection - /** Discussion (include replies) count of this circle. */ - discussionCount: Scalars['Int']['output'] - /** Discussion (exclude replies) count of this circle. */ - discussionThreadCount: Scalars['Int']['output'] - /** - * Human readable name of this Circle. - * @deprecated No longer in use - */ - displayName: Scalars['String']['output'] - /** - * List of Circle follower. - * @deprecated No longer in use - */ - followers: UserConnection - /** Unique ID. */ - id: Scalars['ID']['output'] - /** Invitation used by current viewer. */ - invitedBy?: Maybe - /** Invitations belonged to this Circle. */ - invites: Invites - /** - * This value determines if current viewer is following Circle or not. - * @deprecated No longer in use - */ - isFollower: Scalars['Boolean']['output'] - /** - * This value determines if current viewer is Member or not. - * @deprecated No longer in use - */ - isMember: Scalars['Boolean']['output'] - /** - * List of Circle member. - * @deprecated No longer in use - */ - members: MemberConnection - /** - * Slugified name of this Circle. - * @deprecated No longer in use - */ - name: Scalars['String']['output'] - /** Circle owner. */ - owner: User - /** Pinned comments broadcasted by Circle owner. */ - pinnedBroadcast?: Maybe> - /** Prices offered by this Circle. */ - prices?: Maybe> - /** - * State of this Circle. - * @deprecated No longer in use - */ - state: CircleState - /** - * Updated time. - * @deprecated No longer in use - */ - updatedAt: Scalars['DateTime']['output'] - /** - * List of works belong to this Circle. - * @deprecated No longer in use - */ - works: ArticleConnection -} - -export type CircleBroadcastArgs = { - input: CommentsInput -} - -export type CircleDiscussionArgs = { - input: CommentsInput -} - -export type CircleFollowersArgs = { - input: ConnectionArgs -} - -export type CircleMembersArgs = { - input: ConnectionArgs -} - -export type CircleWorksArgs = { - input: ConnectionArgs -} - -export type CircleAnalytics = { - __typename?: 'CircleAnalytics' - content: CircleContentAnalytics - follower: CircleFollowerAnalytics - income: CircleIncomeAnalytics - subscriber: CircleSubscriberAnalytics -} - -export type CircleConnection = Connection & { - __typename?: 'CircleConnection' - edges?: Maybe> - pageInfo: PageInfo - totalCount: Scalars['Int']['output'] -} - -export type CircleContentAnalytics = { - __typename?: 'CircleContentAnalytics' - paywall?: Maybe> - public?: Maybe> -} - -export type CircleContentAnalyticsDatum = { - __typename?: 'CircleContentAnalyticsDatum' - node: Article - readCount: Scalars['Int']['output'] -} - -export type CircleEdge = { - __typename?: 'CircleEdge' - cursor: Scalars['String']['output'] - node: Circle -} - -export type CircleFollowerAnalytics = { - __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 -} - -export type CircleIncomeAnalytics = { - __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 CircleInput = { - /** Slugified name of a Circle. */ - name: Scalars['String']['input'] -} - -export type CircleNotice = Notice & { - __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: Circle - type: CircleNoticeType - /** The value determines if the notice is unread or not. */ - unread: Scalars['Boolean']['output'] -} - -export enum CircleNoticeType { - CircleInvitation = 'CircleInvitation', - CircleNewBroadcastComments = 'CircleNewBroadcastComments', - CircleNewDiscussionComments = 'CircleNewDiscussionComments', - CircleNewFollower = 'CircleNewFollower', - CircleNewSubscriber = 'CircleNewSubscriber', - CircleNewUnsubscriber = 'CircleNewUnsubscriber', -} - -export type CircleRecommendationActivity = { - __typename?: 'CircleRecommendationActivity' - /** Recommended circles */ - nodes?: Maybe> - /** The source type of recommendation */ - source?: Maybe -} - -export enum CircleRecommendationActivitySource { - UserSubscription = 'UserSubscription', -} - -export enum CircleState { - Active = 'active', - Archived = 'archived', -} - -export type CircleSubscriberAnalytics = { - __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 -} - -export type ClaimLogbooksInput = { - 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'] -} - -export type ClaimLogbooksResult = { - __typename?: 'ClaimLogbooksResult' - ids?: Maybe> - txHash: Scalars['String']['output'] -} - -export type ClassifyArticlesChannelsInput = { - ids: Array -} - -export type ClearCommunityWatchOriginalContentInput = { - note?: InputMaybe - uuid: Scalars['ID']['input'] -} - -export type ClearReadHistoryInput = { - id?: InputMaybe -} - -export type ClientPreference = { - __typename?: 'ClientPreference' - /** Whether cicle banner is shown */ - circleBanner: Scalars['Boolean']['output'] - id: Scalars['ID']['output'] - /** Local language setting */ - language?: Maybe - /** Login or sign up wall in article detail page */ - wall: Scalars['Boolean']['output'] -} - -export type Collection = Node & - PinnableWork & { - __typename?: 'Collection' - articles: ArticleConnection - author: User - /** Check if the collection contains the article */ - contains: Scalars['Boolean']['output'] - cover?: Maybe - description?: Maybe - id: Scalars['ID']['output'] - likeCount: Scalars['Int']['output'] - /** whether current user has liked it */ - liked: Scalars['Boolean']['output'] - pinned: Scalars['Boolean']['output'] - title: Scalars['String']['output'] - updatedAt: Scalars['DateTime']['output'] - } - -export type CollectionArticlesArgs = { - input: CollectionArticlesInput -} - -export type CollectionContainsArgs = { - input: NodeInput -} - -export type CollectionArticlesInput = { - after?: InputMaybe - before?: InputMaybe - first?: InputMaybe - includeAfter?: Scalars['Boolean']['input'] - includeBefore?: Scalars['Boolean']['input'] - last?: InputMaybe - reversed?: Scalars['Boolean']['input'] -} - -export type CollectionConnection = Connection & { - __typename?: 'CollectionConnection' - edges?: Maybe> - pageInfo: PageInfo - totalCount: Scalars['Int']['output'] -} - -export type CollectionEdge = { - __typename?: 'CollectionEdge' - cursor: Scalars['String']['output'] - node: Collection -} - -export type CollectionNotice = Notice & { - __typename?: 'CollectionNotice' - /** 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: Collection - /** The value determines if the notice is unread or not. */ - unread: Scalars['Boolean']['output'] -} - -export enum Color { - Brown = 'brown', - Gray = 'gray', - Green = 'green', - Orange = 'orange', - Pink = 'pink', - Purple = 'purple', - Red = 'red', - Yellow = 'yellow', -} - -/** This type contains content, author, descendant comments and related data of a comment. */ -export type Comment = Node & { - __typename?: 'Comment' - /** Author of this comment. */ - author: User - /** Descendant comments of this comment. */ - comments: CommentConnection - /** Community Watch audit action when this comment was removed by Community Watch. */ - communityWatchAction?: Maybe - /** Content of this comment. */ - content?: Maybe - /** Time of this comment was created. */ - createdAt: Scalars['DateTime']['output'] - /** - * The counting number of downvotes. - * @deprecated No longer in use in querying - */ - 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: Node - /** 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 - spamStatus: SpamStatus - /** State of this comment. */ - state: CommentState - type: CommentType - /** The counting number of upvotes. */ - upvotes: Scalars['Int']['output'] -} - -/** This type contains content, author, descendant comments and related data of a comment. */ -export type CommentCommentsArgs = { - input: CommentCommentsInput -} - -export type CommentCommentNotice = Notice & { - __typename?: 'CommentCommentNotice' - /** List of notice actors. */ - actors?: Maybe> - comment: Comment - /** Time of this notice was created. */ - createdAt: Scalars['DateTime']['output'] - /** Unique ID of this notice. */ - id: Scalars['ID']['output'] - target: Comment - type: CommentCommentNoticeType - /** The value determines if the notice is unread or not. */ - unread: Scalars['Boolean']['output'] -} - -export enum CommentCommentNoticeType { - CommentNewReply = 'CommentNewReply', -} - -export type CommentCommentsInput = { - after?: InputMaybe - author?: InputMaybe - first?: InputMaybe - sort?: InputMaybe -} - -export type CommentConnection = Connection & { - __typename?: 'CommentConnection' - edges?: Maybe> - pageInfo: PageInfo - totalCount: Scalars['Int']['output'] -} - -export type CommentEdge = { - __typename?: 'CommentEdge' - cursor: Scalars['String']['output'] - node: Comment -} - -export type CommentInput = { - articleId?: InputMaybe - circleId?: InputMaybe - content: Scalars['String']['input'] - mentions?: InputMaybe> - momentId?: InputMaybe - parentId?: InputMaybe - replyTo?: InputMaybe - type: CommentType -} - -export type CommentNotice = Notice & { - __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: Comment - type: CommentNoticeType - /** The value determines if the notice is unread or not. */ - unread: Scalars['Boolean']['output'] -} - -export enum CommentNoticeType { - ArticleNewComment = 'ArticleNewComment', - CircleNewBroadcast = 'CircleNewBroadcast', - CommentLiked = 'CommentLiked', - CommentMentionedYou = 'CommentMentionedYou', - CommentPinned = 'CommentPinned', - MomentNewComment = 'MomentNewComment', - SubscribedArticleNewComment = 'SubscribedArticleNewComment', -} - -/** Enums for sorting comments by time. */ -export enum CommentSort { - Newest = 'newest', - Oldest = 'oldest', -} - -/** Enums for comment state. */ -export enum CommentState { - Active = 'active', - Archived = 'archived', - Banned = 'banned', - Collapsed = 'collapsed', -} - -export enum CommentType { - Article = 'article', - CircleBroadcast = 'circleBroadcast', - CircleDiscussion = 'circleDiscussion', - Moment = 'moment', -} - -export type CommentsFilter = { - author?: InputMaybe - parentComment?: InputMaybe - state?: InputMaybe -} - -export type CommentsInput = { - after?: InputMaybe - before?: InputMaybe - filter?: InputMaybe - first?: InputMaybe - includeAfter?: InputMaybe - includeBefore?: InputMaybe - sort?: InputMaybe -} - -export type CommunityWatchAction = { - __typename?: 'CommunityWatchAction' - actionState: CommunityWatchActionState - actorDisplayName: Scalars['String']['output'] - appealState: CommunityWatchAppealState - commentId: Scalars['ID']['output'] - contentCleared: Scalars['Boolean']['output'] - createdAt: Scalars['DateTime']['output'] - originalContent?: Maybe - reason: CommunityWatchRemoveCommentReason - reviewState: CommunityWatchReviewState - sourceId: Scalars['ID']['output'] - sourceTitle: Scalars['String']['output'] - sourceType: CommunityWatchActionSourceType - /** Public identifier used by the Community Watch transparency page. */ - uuid: Scalars['ID']['output'] -} - -export type CommunityWatchActionConnection = Connection & { - __typename?: 'CommunityWatchActionConnection' - edges?: Maybe> - pageInfo: PageInfo - totalCount: Scalars['Int']['output'] -} - -export type CommunityWatchActionEdge = { - __typename?: 'CommunityWatchActionEdge' - cursor: Scalars['String']['output'] - node: CommunityWatchAction -} - -export type CommunityWatchActionInput = { - uuid: Scalars['ID']['input'] -} - -export enum CommunityWatchActionSourceType { - Article = 'article', - Moment = 'moment', -} - -export enum CommunityWatchActionState { - Active = 'active', - Restored = 'restored', - Voided = 'voided', -} - -export type CommunityWatchActionsInput = { - actionState?: InputMaybe - after?: InputMaybe - appealState?: InputMaybe - first?: InputMaybe - reason?: InputMaybe - reviewState?: InputMaybe -} - -export enum CommunityWatchAppealState { - None = 'none', - Received = 'received', - Resolved = 'resolved', -} - -export type CommunityWatchRemoveCommentInput = { - id: Scalars['ID']['input'] - reason: CommunityWatchRemoveCommentReason -} - -export enum CommunityWatchRemoveCommentReason { - PornAd = 'porn_ad', - SpamAd = 'spam_ad', -} - -export enum CommunityWatchReviewState { - Pending = 'pending', - ReasonAdjusted = 'reason_adjusted', - Reversed = 'reversed', - Upheld = 'upheld', -} - -export type ConfirmVerificationCodeInput = { - code: Scalars['String']['input'] - email: Scalars['email_String_NotNull_format_email']['input'] - type: VerificationCodeType -} - -export type ConnectStripeAccountInput = { - country: StripeAccountCountry -} - -export type ConnectStripeAccountResult = { - __typename?: 'ConnectStripeAccountResult' - redirectUrl: Scalars['String']['output'] -} - -export type Connection = { - pageInfo: PageInfo - totalCount: Scalars['Int']['output'] -} - -export type ConnectionArgs = { - after?: InputMaybe - filter?: InputMaybe - first?: InputMaybe - oss?: InputMaybe -} - -export type CryptoWallet = { - __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> -} - -export enum CryptoWalletSignaturePurpose { - Airdrop = 'airdrop', - Connect = 'connect', - Login = 'login', - Signup = 'signup', -} - -export type CurationChannel = Channel & - Node & { - __typename?: 'CurationChannel' - /** both activePeriod and state determine if the channel is active */ - activePeriod: DatetimeRange - articles: ChannelArticleConnection - color: Color - id: Scalars['ID']['output'] - name: Scalars['String']['output'] - navbarTitle: Scalars['String']['output'] - note?: Maybe - pinAmount: Scalars['Int']['output'] - shortHash: Scalars['String']['output'] - showRecommendation: Scalars['Boolean']['output'] - state: CurationChannelState - } - -export type CurationChannelArticlesArgs = { - input: ChannelArticlesInput -} - -export type CurationChannelNameArgs = { - input?: InputMaybe -} - -export type CurationChannelNavbarTitleArgs = { - input?: InputMaybe -} - -export type CurationChannelNoteArgs = { - input?: InputMaybe -} - -export enum CurationChannelState { - Archived = 'archived', - Editing = 'editing', - Published = 'published', -} - -export type DatetimeRange = { - __typename?: 'DatetimeRange' - end?: Maybe - start: Scalars['DateTime']['output'] -} - -export type DatetimeRangeInput = { - end?: InputMaybe - start: Scalars['DateTime']['input'] -} - -export type DeleteAnnouncementsInput = { - ids?: InputMaybe> -} - -export type DeleteCollectionArticlesInput = { - articles: Array - collection: Scalars['ID']['input'] -} - -export type DeleteCollectionsInput = { - ids: Array -} - -export type DeleteCommentInput = { - id: Scalars['ID']['input'] -} - -export type DeleteCurationChannelArticlesInput = { - articles: Array - channel: Scalars['ID']['input'] -} - -export type DeleteDraftInput = { - id: Scalars['ID']['input'] -} - -export type DeleteMomentInput = { - id: Scalars['ID']['input'] -} - -export type DeleteTagsInput = { - ids: Array -} - -export type DirectImageUploadInput = { - draft?: InputMaybe - entityId?: InputMaybe - entityType: EntityType - mime?: InputMaybe - type: AssetType - url?: InputMaybe -} - -export type Donator = CryptoWallet | User - -/** This type contains content, collections, assets and related data of a draft. */ -export type Draft = Node & { - __typename?: 'Draft' - /** Access related fields on circle */ - access: DraftAccess - /** Published article */ - article?: Maybe
- /** List of assets are belonged to this draft. */ - assets: Array - /** Associated campaigns */ - campaigns: Array - /** Whether readers can comment */ - canComment: Scalars['Boolean']['output'] - /** @deprecated Use connections instead */ - collection: ArticleConnection - /** Collections of this draft. */ - collections: CollectionConnection - /** Connection articles of this draft. */ - connections: ArticleConnection - /** 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 the first line of paragraph should be indented */ - indentFirstLine: Scalars['Boolean']['output'] - /** Whether publish to ISCN */ - iscnPublish?: Maybe - /** License Type */ - license: ArticleLicenseType - /** Media hash, composed of cid encoding, of this draft. */ - mediaHash?: Maybe - /** Scheduled publish date of the article. */ - publishAt?: Maybe - /** State of draft during publihsing. */ - publishState: PublishState - /** 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 DraftCollectionArgs = { - input: ConnectionArgs -} - -/** This type contains content, collections, assets and related data of a draft. */ -export type DraftCollectionsArgs = { - input: ConnectionArgs -} - -/** This type contains content, collections, assets and related data of a draft. */ -export type DraftConnectionsArgs = { - input: ConnectionArgs -} - -export type DraftAccess = { - __typename?: 'DraftAccess' - circle?: Maybe - type: ArticleAccessType -} - -export type DraftConnection = Connection & { - __typename?: 'DraftConnection' - edges?: Maybe> - pageInfo: PageInfo - totalCount: Scalars['Int']['output'] -} - -export type DraftEdge = { - __typename?: 'DraftEdge' - cursor: Scalars['String']['output'] - node: Draft -} - -export type EditArticleInput = { - accessType?: InputMaybe - /** which campaigns to attach */ - campaigns?: InputMaybe> - /** whether readers can comment */ - canComment?: InputMaybe - circle?: InputMaybe - /** Deprecated, use connections instead */ - collection?: InputMaybe> - collections?: InputMaybe> - connections?: InputMaybe> - content?: InputMaybe - cover?: InputMaybe - /** revision description */ - description?: InputMaybe - id: Scalars['ID']['input'] - indentFirstLine?: InputMaybe - /** whether publish to ISCN */ - iscnPublish?: InputMaybe - license?: InputMaybe - pinned?: InputMaybe - replyToDonator?: InputMaybe< - Scalars['replyToDonator_String_maxLength_140']['input'] - > - requestForDonation?: InputMaybe< - Scalars['requestForDonation_String_maxLength_140']['input'] - > - sensitive?: InputMaybe - state?: InputMaybe - summary?: InputMaybe - tags?: InputMaybe> - title?: InputMaybe -} - -export type EmailLoginInput = { - email: Scalars['String']['input'] - /** used in register */ - language?: InputMaybe - passwordOrCode: Scalars['String']['input'] - referralCode?: InputMaybe -} - -export enum EntityType { - Announcement = 'announcement', - Article = 'article', - Campaign = 'campaign', - Circle = 'circle', - Collection = 'collection', - Draft = 'draft', - Moment = 'moment', - Tag = 'tag', - User = 'user', -} - -export type ExchangeRate = { - __typename?: 'ExchangeRate' - from: TransactionCurrency - rate: Scalars['Float']['output'] - to: QuoteCurrency - /** Last updated time from currency convertor APIs */ - updatedAt: Scalars['DateTime']['output'] -} - -export type ExchangeRatesInput = { - from?: InputMaybe - to?: InputMaybe -} - -export type Feature = { - __typename?: 'Feature' - enabled: Scalars['Boolean']['output'] - name: FeatureName - value?: Maybe -} - -export enum FeatureFlag { - Admin = 'admin', - Off = 'off', - On = 'on', - Seeding = 'seeding', -} - -export enum FeatureName { - AddCredit = 'add_credit', - ArticleChannel = 'article_channel', - CircleInteract = 'circle_interact', - CircleManagement = 'circle_management', - Fingerprint = 'fingerprint', - Payment = 'payment', - Payout = 'payout', - SpamDetection = 'spam_detection', - TagAdoption = 'tag_adoption', - VerifyAppreciate = 'verify_appreciate', -} - -export type FeaturedCommentsInput = { - after?: InputMaybe - first?: InputMaybe - sort?: InputMaybe -} - -export type FeaturedTagsInput = { - /** tagIds */ - ids: Array -} - -export enum FederationArticleSettingState { - Disabled = 'disabled', - Enabled = 'enabled', - Inherit = 'inherit', -} - -export enum FederationAuthorSettingState { - Disabled = 'disabled', - Enabled = 'enabled', -} - -export enum FederationExportDecisionReason { - ArticleDisabled = 'article_disabled', - ArticleNotPublic = 'article_not_public', - AuthorNotOptedIn = 'author_not_opted_in', - Eligible = 'eligible', -} - -export type FilterInput = { - inRangeEnd?: InputMaybe - inRangeStart?: InputMaybe - /** Used in User Articles filter, by tags or by time range, or both */ - tagIds?: InputMaybe> -} - -export type Following = { - __typename?: 'Following' - circles: CircleConnection - users: UserConnection -} - -export type FollowingCirclesArgs = { - input: ConnectionArgs -} - -export type FollowingUsersArgs = { - input: ConnectionArgs -} - -export type FollowingActivity = - | ArticleRecommendationActivity - | CircleRecommendationActivity - | UserAddArticleTagActivity - | UserBroadcastCircleActivity - | UserCreateCircleActivity - | UserPostMomentActivity - | UserPublishArticleActivity - | UserRecommendationActivity - -export type FollowingActivityConnection = Connection & { - __typename?: 'FollowingActivityConnection' - edges?: Maybe> - pageInfo: PageInfo - totalCount: Scalars['Int']['output'] -} - -export type FollowingActivityEdge = { - __typename?: 'FollowingActivityEdge' - cursor: Scalars['String']['output'] - node: FollowingActivity -} - -export type FrequentSearchInput = { - first?: InputMaybe - key?: InputMaybe -} - -export type GenerateSigningMessageInput = { - address: Scalars['String']['input'] - purpose?: InputMaybe -} - -export enum GrantType { - AuthorizationCode = 'authorization_code', - RefreshToken = 'refresh_token', -} - -export type IcymiTopic = Node & { - __typename?: 'IcymiTopic' - archivedAt?: Maybe - articles: Array
- id: Scalars['ID']['output'] - note?: Maybe - pinAmount: Scalars['Int']['output'] - publishedAt?: Maybe - state: IcymiTopicState - title: Scalars['String']['output'] -} - -export type IcymiTopicNoteArgs = { - input?: InputMaybe -} - -export type IcymiTopicTitleArgs = { - input?: InputMaybe -} - -export type IcymiTopicConnection = Connection & { - __typename?: 'IcymiTopicConnection' - edges: Array - pageInfo: PageInfo - totalCount: Scalars['Int']['output'] -} - -export type IcymiTopicEdge = { - __typename?: 'IcymiTopicEdge' - cursor: Scalars['String']['output'] - node: IcymiTopic -} - -export enum IcymiTopicState { - Archived = 'archived', - Editing = 'editing', - Published = 'published', -} - -export type IdentityInput = { - id?: InputMaybe - shortHash?: InputMaybe -} - -export type Invitation = { - __typename?: 'Invitation' - /** Accepted time. */ - acceptedAt?: Maybe - /** Invitation of current Circle. */ - circle: Circle - /** 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: Invitee - /** Creator of this invitation. */ - inviter: User - /** Sent time. */ - sentAt: Scalars['DateTime']['output'] - /** Determine it's specific state. */ - state: InvitationState -} - -export type InvitationConnection = Connection & { - __typename?: 'InvitationConnection' - edges?: Maybe> - pageInfo: PageInfo - totalCount: Scalars['Int']['output'] -} - -export type InvitationEdge = { - __typename?: 'InvitationEdge' - cursor: Scalars['String']['output'] - node: Invitation -} - -export enum InvitationState { - Accepted = 'accepted', - Pending = 'pending', - TransferFailed = 'transfer_failed', - TransferSucceeded = 'transfer_succeeded', -} - -export type InviteCircleInput = { - circleId: Scalars['ID']['input'] - freePeriod: Scalars['freePeriod_Int_NotNull_exclusiveMin_0']['input'] - invitees: Array -} - -export type InviteCircleInvitee = { - email?: InputMaybe - id?: InputMaybe -} - -export type Invitee = Person | User - -export type Invites = { - __typename?: 'Invites' - /** Accepted invitation list */ - accepted: InvitationConnection - /** Pending invitation list */ - pending: InvitationConnection -} - -export type InvitesAcceptedArgs = { - input: ConnectionArgs -} - -export type InvitesPendingArgs = { - input: ConnectionArgs -} - -export type KeywordInput = { - keyword: Scalars['String']['input'] -} - -export type KeywordsInput = { - keywords?: InputMaybe> -} - -export enum Language { - En = 'en', - ZhHans = 'zh_hans', - ZhHant = 'zh_hant', -} - -/** To record the last random variable on homepage queries */ -export type LastFetchRandom = { - __typename?: 'LastFetchRandom' - feedAuthors?: Maybe - feedTags?: Maybe - id: Scalars['ID']['output'] - sidebarAuthors?: Maybe - sidebarTags?: Maybe -} - -export type LikeCollectionInput = { - id: Scalars['ID']['input'] -} - -export type LikeMomentInput = { - id: Scalars['ID']['input'] -} - -export type Liker = { - __typename?: 'Liker' - /** Whether liker is a civic liker */ - civicLiker: Scalars['Boolean']['output'] - /** Liker ID of LikeCoin */ - likerId?: Maybe - /** Total LIKE left in wallet. */ - total: Scalars['Float']['output'] -} - -export type LogRecordInput = { - type: LogRecordTypes -} - -export enum LogRecordTypes { - ReadFolloweeArticles = 'ReadFolloweeArticles', - ReadFollowingFeed = 'ReadFollowingFeed', - ReadResponseInfoPopUp = 'ReadResponseInfoPopUp', -} - -export type Member = { - __typename?: 'Member' - /** Price chosen by user when joining a Circle. */ - price: Price - /** User who join to a Circle. */ - user: User -} - -export type MemberConnection = Connection & { - __typename?: 'MemberConnection' - edges?: Maybe> - pageInfo: PageInfo - totalCount: Scalars['Int']['output'] -} - -export type MemberEdge = { - __typename?: 'MemberEdge' - cursor: Scalars['String']['output'] - node: Member -} - -export type MergeTagsInput = { - content: Scalars['String']['input'] - ids: Array -} - -export type MigrationInput = { - files: Array> - type?: InputMaybe -} - -export enum MigrationType { - Medium = 'medium', -} - -export type Moment = Node & { - __typename?: 'Moment' - articles: Array
- assets: Array - author: User - commentCount: Scalars['Int']['output'] - commentedFollowees: Array - comments: CommentConnection - content?: Maybe - createdAt: Scalars['DateTime']['output'] - id: Scalars['ID']['output'] - likeCount: Scalars['Int']['output'] - /** whether current user has liked it */ - liked: Scalars['Boolean']['output'] - shortHash: Scalars['String']['output'] - spamStatus: SpamStatus - state: MomentState - tags: Array> -} - -export type MomentCommentsArgs = { - input: CommentsInput -} - -export type MomentConnection = Connection & { - __typename?: 'MomentConnection' - edges?: Maybe> - pageInfo: PageInfo - totalCount: Scalars['Int']['output'] -} - -export type MomentEdge = { - __typename?: 'MomentEdge' - cursor: Scalars['String']['output'] - node: Moment -} - -export type MomentInput = { - shortHash: Scalars['String']['input'] -} - -export type MomentNotice = Notice & { - __typename?: 'MomentNotice' - /** List of notice actors. */ - actors?: Maybe> - /** Time of this notice was created. */ - createdAt: Scalars['DateTime']['output'] - /** Unique ID of this notice. */ - id: Scalars['ID']['output'] - target: Moment - type: MomentNoticeType - /** The value determines if the notice is unread or not. */ - unread: Scalars['Boolean']['output'] -} - -export enum MomentNoticeType { - MomentLiked = 'MomentLiked', - MomentMentionedYou = 'MomentMentionedYou', -} - -export enum MomentState { - Active = 'active', - Archived = 'archived', -} - -export type MonthlyDatum = { - __typename?: 'MonthlyDatum' - date: Scalars['DateTime']['output'] - value: Scalars['Float']['output'] -} - -export type Mutation = { - __typename?: 'Mutation' - /** Add blocked search keyword to blocked_search_word db */ - addBlockedSearchKeyword: BlockedSearchKeyword - /** Add articles to the begining of the collections. */ - addCollectionsArticles: Array - /** Add Credit to User Wallet */ - addCredit: AddCreditResult - addCurationChannelArticles: CurationChannel - /** Add a social login to current user. */ - addSocialLogin: User - /** Add a wallet login to current user. */ - addWalletLogin: User - applyCampaign: Campaign - /** Appreciate an article. */ - appreciateArticle: Article - banCampaignArticles: Campaign - /** Let Traveloggers owner claims a Logbook, returns transaction hash */ - claimLogbooks: ClaimLogbooksResult - classifyArticlesChannels: Scalars['Boolean']['output'] - /** Clear stored original content for a Community Watch action as staff. */ - clearCommunityWatchOriginalContent: CommunityWatchAction - /** Clear read history for user. */ - clearReadHistory: User - /** Clear search history for user. */ - clearSearchHistory?: Maybe - /** Remove a spam comment as a Community Watch member. */ - communityWatchRemoveComment: Comment - /** Confirm verification code from email. */ - confirmVerificationCode: Scalars['ID']['output'] - /** Create Stripe Connect account for Payout */ - connectStripeAccount: ConnectStripeAccountResult - deleteAnnouncements: Scalars['Boolean']['output'] - /** Delete blocked search keywords from search_history db */ - deleteBlockedSearchKeywords?: Maybe - /** Remove articles from the collection. */ - deleteCollectionArticles: Collection - deleteCollections: Scalars['Boolean']['output'] - /** Remove a comment. */ - deleteComment: Comment - deleteCurationChannelArticles: CurationChannel - /** Remove a draft. */ - deleteDraft?: Maybe - deleteMoment: Moment - deleteTags?: Maybe - directImageUpload: Asset - /** Edit an article. */ - editArticle: Article - /** Login user. */ - emailLogin: AuthResult - /** Get signing message. */ - generateSigningMessage: SigningMessageResult - /** Invite others to join circle */ - invite?: Maybe> - likeCollection: Collection - likeMoment: Moment - /** Add specific user behavior record. */ - logRecord?: Maybe - /** Mark all received notices as read. */ - markAllNoticesAsRead?: Maybe - mergeTags: Tag - /** Migrate articles from other service provider. */ - migration?: Maybe - /** Pay to another user or article */ - payTo: PayToResult - /** Payout to user */ - payout: Transaction - /** Pin a comment. */ - pinComment: Comment - /** Publish an article onto IPFS. */ - publishArticle: Draft - putAnnouncement: Announcement - putArticleFederationSetting: ArticleFederationSetting - /** Create or update a Circle. */ - putCircle: Circle - /** - * Add or remove Circle's articles - * @deprecated No longer in use - */ - putCircleArticles: Circle - putCollection: Collection - /** Publish or update a comment. */ - putComment: Comment - putCurationChannel: CurationChannel - /** Create or update a draft. */ - putDraft: Draft - /** update tags for showing on profile page */ - putFeaturedTags?: Maybe> - putIcymiTopic?: Maybe - putMoment: Moment - /** Create or Update an OAuth Client, used in OSS. */ - putOAuthClient?: Maybe - putRemark?: Maybe - putRestrictedUsers: Array - putSkippedListItem?: Maybe> - putTagChannel: Tag - putTopicChannel: TopicChannel - putUserFeatureFlags: Array - putUserFederationSetting: UserFederationSetting - putWritingChallenge: WritingChallenge - /** Read an article. */ - readArticle: Article - /** Remove a social login from current user. */ - removeSocialLogin: User - /** Remove a wallet login from current user. */ - removeWalletLogin: User - renameTag: Tag - reorderChannels: Scalars['Boolean']['output'] - /** Reorder articles in the collection. */ - reorderCollectionArticles: Collection - /** Reset Liker ID */ - resetLikerId: User - /** Reset user or payment password. */ - resetPassword?: Maybe - /** Restore a comment removed by Community Watch as staff. */ - restoreCommunityWatchComment: CommunityWatchAction - reviewTopicChannelFeedback: TopicChannelFeedback - sendCampaignAnnouncement?: Maybe - /** Send verification code for email. */ - sendVerificationCode?: Maybe - setAdStatus: Article - /** Set current author's Fediverse federation preference for an article. */ - setArticleFederationSetting: ArticleFederationSetting - setArticleTopicChannels: Article - setBoost: Node - /** Set user currency preference. */ - setCurrency: User - /** Set user email. */ - setEmail: User - setFeature: Feature - /** Set user email login password. */ - setPassword: User - setSpamStatus: Writing - /** Set user name. */ - setUserName: User - /** Set current viewer's Fediverse federation preference. */ - setViewerFederationSetting: UserFederationSetting - /** Upload a single file. */ - singleFileUpload: Asset - /** Login/Signup via social accounts. */ - socialLogin: AuthResult - /** Submit inappropriate content report */ - submitReport: Report - /** Feedback on topic channel classification */ - submitTopicChannelFeedback: TopicChannelFeedback - /** Subscribe a Circle. */ - subscribeCircle: SubscribeCircleResult - toggleArticleRecommend: Article - /** Block or Unblock a given user. */ - toggleBlockUser: User - toggleBookmarkArticle: Article - toggleBookmarkTag: Tag - /** - * Follow or unfollow a Circle. - * @deprecated No longer in use - */ - toggleFollowCircle: Circle - /** - * Bookmark or unbookmark tag. - * @deprecated Use toggleBookmarkTag instead - */ - toggleFollowTag: Tag - /** Follow or Unfollow current user. */ - toggleFollowUser: User - togglePinChannelArticles: Array - /** Pin or Unpin a comment. */ - togglePinComment: Comment - toggleSeedingUsers: Array> - /** - * Bookmark or unbookmark article - * @deprecated Use toggleBookmarkArticle instead - */ - toggleSubscribeArticle: Article - toggleUsersBadge: Array> - toggleWritingChallengeFeaturedArticles: Campaign - unbindLikerId: User - unlikeCollection: Collection - unlikeMoment: Moment - /** Unpin a comment. */ - unpinComment: Comment - /** Unsubscribe a Circle. */ - unsubscribeCircle: Circle - /** Unvote a comment. */ - unvoteComment: Comment - updateArticleSensitive: Article - updateArticleState: Article - updateCampaignApplicationState: Campaign - /** Update a comments' state. */ - updateCommentsState: Array - /** Update Community Watch appeal, review, or reason as staff. */ - updateCommunityWatchActionState: CommunityWatchAction - /** Update user notification settings. */ - updateNotificationSetting: User - /** Update referralCode of a user, used in OSS. */ - updateUserExtra: User - /** Update user information. */ - updateUserInfo: User - /** Update state of a user, used in OSS. */ - updateUserRole: User - /** Update state of a user, used in OSS. */ - updateUserState?: Maybe> - /** Logout user. */ - userLogout: Scalars['Boolean']['output'] - /** Verify user email. */ - verifyEmail: AuthResult - /** Upvote or downvote a comment. */ - voteComment: Comment - /** Login/Signup via a wallet. */ - walletLogin: AuthResult - /** Withdraw locked ERC20/native token from donation vault */ - withdrawLockedTokens: WithdrawLockedTokensResult -} - -export type MutationAddBlockedSearchKeywordArgs = { - input: KeywordInput -} - -export type MutationAddCollectionsArticlesArgs = { - input: AddCollectionsArticlesInput -} - -export type MutationAddCreditArgs = { - input: AddCreditInput -} - -export type MutationAddCurationChannelArticlesArgs = { - input: AddCurationChannelArticlesInput -} - -export type MutationAddSocialLoginArgs = { - input: SocialLoginInput -} - -export type MutationAddWalletLoginArgs = { - input: WalletLoginInput -} - -export type MutationApplyCampaignArgs = { - input: ApplyCampaignInput -} - -export type MutationAppreciateArticleArgs = { - input: AppreciateArticleInput -} - -export type MutationBanCampaignArticlesArgs = { - input: BanCampaignArticlesInput -} - -export type MutationClaimLogbooksArgs = { - input: ClaimLogbooksInput -} - -export type MutationClassifyArticlesChannelsArgs = { - input: ClassifyArticlesChannelsInput -} - -export type MutationClearCommunityWatchOriginalContentArgs = { - input: ClearCommunityWatchOriginalContentInput -} - -export type MutationClearReadHistoryArgs = { - input: ClearReadHistoryInput -} - -export type MutationCommunityWatchRemoveCommentArgs = { - input: CommunityWatchRemoveCommentInput -} - -export type MutationConfirmVerificationCodeArgs = { - input: ConfirmVerificationCodeInput -} - -export type MutationConnectStripeAccountArgs = { - input: ConnectStripeAccountInput -} - -export type MutationDeleteAnnouncementsArgs = { - input: DeleteAnnouncementsInput -} - -export type MutationDeleteBlockedSearchKeywordsArgs = { - input: KeywordsInput -} - -export type MutationDeleteCollectionArticlesArgs = { - input: DeleteCollectionArticlesInput -} - -export type MutationDeleteCollectionsArgs = { - input: DeleteCollectionsInput -} - -export type MutationDeleteCommentArgs = { - input: DeleteCommentInput -} - -export type MutationDeleteCurationChannelArticlesArgs = { - input: DeleteCurationChannelArticlesInput -} - -export type MutationDeleteDraftArgs = { - input: DeleteDraftInput -} - -export type MutationDeleteMomentArgs = { - input: DeleteMomentInput -} - -export type MutationDeleteTagsArgs = { - input: DeleteTagsInput -} - -export type MutationDirectImageUploadArgs = { - input: DirectImageUploadInput -} - -export type MutationEditArticleArgs = { - input: EditArticleInput -} - -export type MutationEmailLoginArgs = { - input: EmailLoginInput -} - -export type MutationGenerateSigningMessageArgs = { - input: GenerateSigningMessageInput -} - -export type MutationInviteArgs = { - input: InviteCircleInput -} - -export type MutationLikeCollectionArgs = { - input: LikeCollectionInput -} - -export type MutationLikeMomentArgs = { - input: LikeMomentInput -} - -export type MutationLogRecordArgs = { - input: LogRecordInput -} - -export type MutationMergeTagsArgs = { - input: MergeTagsInput -} - -export type MutationMigrationArgs = { - input: MigrationInput -} - -export type MutationPayToArgs = { - input: PayToInput -} - -export type MutationPayoutArgs = { - input: PayoutInput -} - -export type MutationPinCommentArgs = { - input: PinCommentInput -} - -export type MutationPublishArticleArgs = { - input: PublishArticleInput -} - -export type MutationPutAnnouncementArgs = { - input: PutAnnouncementInput -} - -export type MutationPutArticleFederationSettingArgs = { - input: PutArticleFederationSettingInput -} - -export type MutationPutCircleArgs = { - input: PutCircleInput -} - -export type MutationPutCircleArticlesArgs = { - input: PutCircleArticlesInput -} - -export type MutationPutCollectionArgs = { - input: PutCollectionInput -} - -export type MutationPutCommentArgs = { - input: PutCommentInput -} - -export type MutationPutCurationChannelArgs = { - input: PutCurationChannelInput -} - -export type MutationPutDraftArgs = { - input: PutDraftInput -} - -export type MutationPutFeaturedTagsArgs = { - input: FeaturedTagsInput -} - -export type MutationPutIcymiTopicArgs = { - input: PutIcymiTopicInput -} - -export type MutationPutMomentArgs = { - input: PutMomentInput -} - -export type MutationPutOAuthClientArgs = { - input: PutOAuthClientInput -} - -export type MutationPutRemarkArgs = { - input: PutRemarkInput -} - -export type MutationPutRestrictedUsersArgs = { - input: PutRestrictedUsersInput -} - -export type MutationPutSkippedListItemArgs = { - input: PutSkippedListItemInput -} - -export type MutationPutTagChannelArgs = { - input: PutTagChannelInput -} - -export type MutationPutTopicChannelArgs = { - input: PutTopicChannelInput -} - -export type MutationPutUserFeatureFlagsArgs = { - input: PutUserFeatureFlagsInput -} - -export type MutationPutUserFederationSettingArgs = { - input: PutUserFederationSettingInput -} - -export type MutationPutWritingChallengeArgs = { - input: PutWritingChallengeInput -} - -export type MutationReadArticleArgs = { - input: ReadArticleInput -} - -export type MutationRemoveSocialLoginArgs = { - input: RemoveSocialLoginInput -} - -export type MutationRenameTagArgs = { - input: RenameTagInput -} - -export type MutationReorderChannelsArgs = { - input: ReorderChannelsInput -} - -export type MutationReorderCollectionArticlesArgs = { - input: ReorderCollectionArticlesInput -} - -export type MutationResetLikerIdArgs = { - input: ResetLikerIdInput -} - -export type MutationResetPasswordArgs = { - input: ResetPasswordInput -} - -export type MutationRestoreCommunityWatchCommentArgs = { - input: RestoreCommunityWatchCommentInput -} - -export type MutationReviewTopicChannelFeedbackArgs = { - input: ReviewTopicChannelFeedbackInput -} - -export type MutationSendCampaignAnnouncementArgs = { - input: SendCampaignAnnouncementInput -} - -export type MutationSendVerificationCodeArgs = { - input: SendVerificationCodeInput -} - -export type MutationSetAdStatusArgs = { - input: SetAdStatusInput -} - -export type MutationSetArticleFederationSettingArgs = { - input: SetArticleFederationSettingInput -} - -export type MutationSetArticleTopicChannelsArgs = { - input: SetArticleTopicChannelsInput -} - -export type MutationSetBoostArgs = { - input: SetBoostInput -} - -export type MutationSetCurrencyArgs = { - input: SetCurrencyInput -} - -export type MutationSetEmailArgs = { - input: SetEmailInput -} - -export type MutationSetFeatureArgs = { - input: SetFeatureInput -} - -export type MutationSetPasswordArgs = { - input: SetPasswordInput -} - -export type MutationSetSpamStatusArgs = { - input: SetSpamStatusInput -} - -export type MutationSetUserNameArgs = { - input: SetUserNameInput -} - -export type MutationSetViewerFederationSettingArgs = { - input: SetViewerFederationSettingInput -} - -export type MutationSingleFileUploadArgs = { - input: SingleFileUploadInput -} - -export type MutationSocialLoginArgs = { - input: SocialLoginInput -} - -export type MutationSubmitReportArgs = { - input: SubmitReportInput -} - -export type MutationSubmitTopicChannelFeedbackArgs = { - input: SubmitTopicChannelFeedbackInput -} - -export type MutationSubscribeCircleArgs = { - input: SubscribeCircleInput -} - -export type MutationToggleArticleRecommendArgs = { - input: ToggleRecommendInput -} - -export type MutationToggleBlockUserArgs = { - input: ToggleItemInput -} - -export type MutationToggleBookmarkArticleArgs = { - input: ToggleItemInput -} - -export type MutationToggleBookmarkTagArgs = { - input: ToggleItemInput -} - -export type MutationToggleFollowCircleArgs = { - input: ToggleItemInput -} - -export type MutationToggleFollowTagArgs = { - input: ToggleItemInput -} - -export type MutationToggleFollowUserArgs = { - input: ToggleItemInput -} - -export type MutationTogglePinChannelArticlesArgs = { - input: TogglePinChannelArticlesInput -} - -export type MutationTogglePinCommentArgs = { - input: ToggleItemInput -} - -export type MutationToggleSeedingUsersArgs = { - input: ToggleSeedingUsersInput -} - -export type MutationToggleSubscribeArticleArgs = { - input: ToggleItemInput -} - -export type MutationToggleUsersBadgeArgs = { - input: ToggleUsersBadgeInput -} - -export type MutationToggleWritingChallengeFeaturedArticlesArgs = { - input: ToggleWritingChallengeFeaturedArticlesInput -} - -export type MutationUnbindLikerIdArgs = { - input: UnbindLikerIdInput -} - -export type MutationUnlikeCollectionArgs = { - input: UnlikeCollectionInput -} - -export type MutationUnlikeMomentArgs = { - input: UnlikeMomentInput -} - -export type MutationUnpinCommentArgs = { - input: UnpinCommentInput -} - -export type MutationUnsubscribeCircleArgs = { - input: UnsubscribeCircleInput -} - -export type MutationUnvoteCommentArgs = { - input: UnvoteCommentInput -} - -export type MutationUpdateArticleSensitiveArgs = { - input: UpdateArticleSensitiveInput -} - -export type MutationUpdateArticleStateArgs = { - input: UpdateArticleStateInput -} - -export type MutationUpdateCampaignApplicationStateArgs = { - input: UpdateCampaignApplicationStateInput -} - -export type MutationUpdateCommentsStateArgs = { - input: UpdateCommentsStateInput -} - -export type MutationUpdateCommunityWatchActionStateArgs = { - input: UpdateCommunityWatchActionStateInput -} - -export type MutationUpdateNotificationSettingArgs = { - input: UpdateNotificationSettingInput -} - -export type MutationUpdateUserExtraArgs = { - input: UpdateUserExtraInput -} - -export type MutationUpdateUserInfoArgs = { - input: UpdateUserInfoInput -} - -export type MutationUpdateUserRoleArgs = { - input: UpdateUserRoleInput -} - -export type MutationUpdateUserStateArgs = { - input: UpdateUserStateInput -} - -export type MutationVerifyEmailArgs = { - input: VerifyEmailInput -} - -export type MutationVoteCommentArgs = { - input: VoteCommentInput -} - -export type MutationWalletLoginArgs = { - input: WalletLoginInput -} - -/** NFT Asset */ -export type NftAsset = { - __typename?: 'NFTAsset' - collectionName: Scalars['String']['output'] - /** imageOriginalUrl: String! */ - contractAddress: Scalars['String']['output'] - description?: Maybe - id: Scalars['ID']['output'] - imagePreviewUrl?: Maybe - imageUrl: Scalars['String']['output'] - name: Scalars['String']['output'] -} - -export type Node = { - id: Scalars['ID']['output'] -} - -export type NodeInput = { - id: Scalars['ID']['input'] -} - -export type NodesInput = { - ids: Array -} - -/** This interface contains common fields of a notice. */ -export type Notice = { - /** Time of this notice was created. */ - createdAt: Scalars['DateTime']['output'] - /** Unique ID of this notice. */ - id: Scalars['ID']['output'] - /** The value determines if the notice is unread or not. */ - unread: Scalars['Boolean']['output'] -} - -export type NoticeConnection = Connection & { - __typename?: 'NoticeConnection' - edges?: Maybe> - pageInfo: PageInfo - totalCount: Scalars['Int']['output'] -} - -export type NoticeEdge = { - __typename?: 'NoticeEdge' - cursor: Scalars['String']['output'] - node: Notice -} - -export type NotificationSetting = { - __typename?: 'NotificationSetting' - articleNewAppreciation: Scalars['Boolean']['output'] - articleNewCollected: Scalars['Boolean']['output'] - articleNewComment: Scalars['Boolean']['output'] - articleNewSubscription: Scalars['Boolean']['output'] - circleMemberNewBroadcastReply: Scalars['Boolean']['output'] - circleMemberNewDiscussion: Scalars['Boolean']['output'] - circleMemberNewDiscussionReply: Scalars['Boolean']['output'] - circleNewFollower: Scalars['Boolean']['output'] - /** for circle owners */ - circleNewSubscriber: Scalars['Boolean']['output'] - circleNewUnsubscriber: Scalars['Boolean']['output'] - email: Scalars['Boolean']['output'] - /** for circle members & followers */ - inCircleNewArticle: Scalars['Boolean']['output'] - inCircleNewBroadcast: Scalars['Boolean']['output'] - inCircleNewBroadcastReply: Scalars['Boolean']['output'] - inCircleNewDiscussion: Scalars['Boolean']['output'] - inCircleNewDiscussionReply: Scalars['Boolean']['output'] - mention: Scalars['Boolean']['output'] - newComment: Scalars['Boolean']['output'] - newLike: Scalars['Boolean']['output'] - userNewFollower: Scalars['Boolean']['output'] -} - -export enum NotificationSettingType { - ArticleNewAppreciation = 'articleNewAppreciation', - ArticleNewCollected = 'articleNewCollected', - ArticleNewComment = 'articleNewComment', - ArticleNewSubscription = 'articleNewSubscription', - CircleMemberBroadcast = 'circleMemberBroadcast', - CircleMemberNewBroadcastReply = 'circleMemberNewBroadcastReply', - CircleMemberNewDiscussion = 'circleMemberNewDiscussion', - CircleMemberNewDiscussionReply = 'circleMemberNewDiscussionReply', - CircleNewDiscussion = 'circleNewDiscussion', - CircleNewFollower = 'circleNewFollower', - /** for circle owners */ - CircleNewSubscriber = 'circleNewSubscriber', - CircleNewUnsubscriber = 'circleNewUnsubscriber', - Email = 'email', - /** for circle members */ - InCircleNewArticle = 'inCircleNewArticle', - InCircleNewBroadcast = 'inCircleNewBroadcast', - InCircleNewBroadcastReply = 'inCircleNewBroadcastReply', - InCircleNewDiscussion = 'inCircleNewDiscussion', - InCircleNewDiscussionReply = 'inCircleNewDiscussionReply', - Mention = 'mention', - NewComment = 'newComment', - NewLike = 'newLike', - UserNewFollower = 'userNewFollower', -} - -export type OAuthClient = { - __typename?: 'OAuthClient' - /** URL for oauth client's avatar. */ - avatar?: Maybe - /** Creation Date */ - createdAt: Scalars['DateTime']['output'] - /** App Description */ - description?: Maybe - /** Grant Types */ - grantTypes?: Maybe> - /** Unique Client ID of this OAuth Client. */ - id: Scalars['ID']['output'] - /** App name */ - name: Scalars['String']['output'] - /** Redirect URIs */ - redirectURIs?: Maybe> - /** Scopes */ - scope?: Maybe> - /** Client secret */ - secret: Scalars['String']['output'] - /** Linked Developer Account */ - user?: Maybe - /** URL for oauth client's official website */ - website?: Maybe -} - -export type OAuthClientConnection = Connection & { - __typename?: 'OAuthClientConnection' - edges?: Maybe> - pageInfo: PageInfo - totalCount: Scalars['Int']['output'] -} - -export type OAuthClientEdge = { - __typename?: 'OAuthClientEdge' - cursor: Scalars['String']['output'] - node: OAuthClient -} - -export type OAuthClientInput = { - id: Scalars['ID']['input'] -} - -export type Oss = { - __typename?: 'OSS' - articles: ArticleConnection - badgedUsers: UserConnection - comments: CommentConnection - icymiTopics: IcymiTopicConnection - moments: MomentConnection - oauthClients: OAuthClientConnection - reports: ReportConnection - restrictedUsers: UserConnection - seedingUsers: UserConnection - skippedListItems: SkippedListItemsConnection - tags: TagConnection - topicChannelFeedbacks: TopicChannelFeedbackConnection - users: UserConnection -} - -export type OssArticlesArgs = { - input: OssArticlesInput -} - -export type OssBadgedUsersArgs = { - input: BadgedUsersInput -} - -export type OssCommentsArgs = { - input: ConnectionArgs -} - -export type OssIcymiTopicsArgs = { - input: ConnectionArgs -} - -export type OssMomentsArgs = { - input: ConnectionArgs -} - -export type OssOauthClientsArgs = { - input: ConnectionArgs -} - -export type OssReportsArgs = { - input: ConnectionArgs -} - -export type OssRestrictedUsersArgs = { - input: ConnectionArgs -} - -export type OssSeedingUsersArgs = { - input: ConnectionArgs -} - -export type OssSkippedListItemsArgs = { - input: SkippedListItemsInput -} - -export type OssTagsArgs = { - input: TagsInput -} - -export type OssTopicChannelFeedbacksArgs = { - input: TopicChannelFeedbacksInput -} - -export type OssUsersArgs = { - input: ConnectionArgs -} - -export type OssArticlesFilterInput = { - datetimeRange?: InputMaybe - isSpam?: InputMaybe - searchKey?: InputMaybe -} - -export type OssArticlesInput = { - after?: InputMaybe - filter?: InputMaybe - first?: InputMaybe - sort?: InputMaybe -} - -export type Oauth1CredentialInput = { - oauthToken: Scalars['String']['input'] - oauthVerifier: Scalars['String']['input'] -} - -/** This type contains system-wise info and settings. */ -export type Official = { - __typename?: 'Official' - /** Announcements */ - announcements?: Maybe> - /** Feature flag */ - features: Array - gatewayUrls?: Maybe> -} - -/** This type contains system-wise info and settings. */ -export type OfficialAnnouncementsArgs = { - input: AnnouncementsInput -} - -/** The notice type contains info about official announcement. */ -export type OfficialAnnouncementNotice = Notice & { - __typename?: 'OfficialAnnouncementNotice' - /** Time of this notice was created. */ - createdAt: Scalars['DateTime']['output'] - /** Unique ID of this notice. */ - id: Scalars['ID']['output'] - /** The link to a specific page if provided. */ - link?: Maybe - /** The message content. */ - message: Scalars['String']['output'] - /** The value determines if the notice is unread or not. */ - unread: Scalars['Boolean']['output'] -} - -export type OnboardingTasks = { - __typename?: 'OnboardingTasks' - enabled: Scalars['Boolean']['output'] -} - -export type PageInfo = { - __typename?: 'PageInfo' - endCursor?: Maybe - hasNextPage: Scalars['Boolean']['output'] - hasPreviousPage: Scalars['Boolean']['output'] - startCursor?: Maybe -} - -export type PayToInput = { - amount: Scalars['amount_Float_NotNull_exclusiveMin_0']['input'] - /** for ERC20/native token payment */ - chain?: InputMaybe - currency: TransactionCurrency - id?: InputMaybe - /** for HKD payment */ - password?: InputMaybe - purpose: TransactionPurpose - recipientId: Scalars['ID']['input'] - targetId?: InputMaybe - txHash?: InputMaybe -} - -export type PayToResult = { - __typename?: 'PayToResult' - /** Only available when paying with LIKE. */ - redirectUrl?: Maybe - transaction: Transaction -} - -export type PayoutInput = { - amount: Scalars['amount_Float_NotNull_exclusiveMin_0']['input'] - password: Scalars['String']['input'] -} - -export type Person = { - __typename?: 'Person' - email: Scalars['email_String_NotNull_format_email']['output'] -} - -export type PinCommentInput = { - id: Scalars['ID']['input'] -} - -export type PinHistory = { - __typename?: 'PinHistory' - /** Which feed (IcymiTopic / Channel) the article was pinned */ - feed: Node - pinnedAt: Scalars['DateTime']['output'] -} - -export type PinnableWork = { - cover?: Maybe - id: Scalars['ID']['output'] - pinned: Scalars['Boolean']['output'] - title: Scalars['String']['output'] -} - -export type Price = { - __typename?: 'Price' - /** Amount of Price. */ - amount: Scalars['Float']['output'] - /** Current Price belongs to whcih Circle. */ - circle: Circle - /** - * Created time. - * @deprecated No longer in use - */ - createdAt: Scalars['DateTime']['output'] - /** Currency of Price. */ - currency: TransactionCurrency - /** Unique ID. */ - id: Scalars['ID']['output'] - /** State of Price. */ - state: PriceState - /** - * Updated time. - * @deprecated No longer in use - */ - updatedAt: Scalars['DateTime']['output'] -} - -export enum PriceState { - Active = 'active', - Archived = 'archived', -} - -export type PublishArticleInput = { - id: Scalars['ID']['input'] - /** whether publish to ISCN */ - iscnPublish?: InputMaybe - /** Scheduled publish date of the article. */ - publishAt?: InputMaybe -} - -/** Enums for publishing state. */ -export enum PublishState { - Error = 'error', - Pending = 'pending', - Published = 'published', - Unpublished = 'unpublished', -} - -export type PutAnnouncementInput = { - channels?: InputMaybe> - content?: InputMaybe> - cover?: InputMaybe - expiredAt?: InputMaybe - id?: InputMaybe - link?: InputMaybe> - order?: InputMaybe - title?: InputMaybe> - type?: InputMaybe - visible?: InputMaybe -} - -export type PutArticleFederationSettingInput = { - id: Scalars['ID']['input'] - state: FederationArticleSettingState -} - -export type PutCircleArticlesInput = { - /** Access Type, `public` or `paywall` only. */ - accessType: ArticleAccessType - /** Article Ids */ - articles?: InputMaybe> - /** Circle ID */ - id: Scalars['ID']['input'] - license?: InputMaybe - /** Action Type */ - type: PutCircleArticlesType -} - -export enum PutCircleArticlesType { - Add = 'add', - Remove = 'remove', -} - -export type PutCircleInput = { - /** Circle's subscription fee. */ - amount?: InputMaybe - /** Unique ID of a Circle's avatar. */ - avatar?: InputMaybe - /** Unique ID of a Circle's cover. */ - cover?: InputMaybe - /** A short description of this Circle. */ - description?: InputMaybe - /** Human readable name of this Circle. */ - displayName?: InputMaybe - /** Unique ID. */ - id?: InputMaybe - /** Slugified name of a Circle. */ - name?: InputMaybe -} - -export type PutCollectionInput = { - cover?: InputMaybe - description?: InputMaybe - id?: InputMaybe - pinned?: InputMaybe - title?: InputMaybe -} - -export type PutCommentInput = { - comment: CommentInput - id?: InputMaybe -} - -export type PutCurationChannelInput = { - activePeriod?: InputMaybe - color?: InputMaybe - id?: InputMaybe - name?: InputMaybe> - navbarTitle?: InputMaybe> - note?: InputMaybe> - pinAmount?: InputMaybe - showRecommendation?: InputMaybe - state?: InputMaybe -} - -export type PutDraftInput = { - accessType?: InputMaybe - /** Which campaigns to attach */ - campaigns?: InputMaybe> - /** Whether readers can comment */ - canComment?: InputMaybe - circle?: InputMaybe - /** Deprecated, use connections instead */ - collection?: InputMaybe>> - /** Add article to these collections when published */ - collections?: InputMaybe> - connections?: InputMaybe> - content?: InputMaybe - cover?: InputMaybe - id?: InputMaybe - indentFirstLine?: InputMaybe - /** Whether publish to ISCN */ - iscnPublish?: InputMaybe - /** Last known update timestamp for version conflict detection */ - lastUpdatedAt?: InputMaybe - license?: InputMaybe - replyToDonator?: InputMaybe< - Scalars['replyToDonator_String_maxLength_140']['input'] - > - requestForDonation?: InputMaybe< - Scalars['requestForDonation_String_maxLength_140']['input'] - > - sensitive?: InputMaybe - summary?: InputMaybe - tags?: InputMaybe> - title?: InputMaybe -} - -export type PutIcymiTopicInput = { - articles?: InputMaybe> - id?: InputMaybe - note?: InputMaybe> - pinAmount?: InputMaybe - state?: InputMaybe - title?: InputMaybe> -} - -export type PutMomentInput = { - articles?: InputMaybe> - assets?: InputMaybe> - content: Scalars['String']['input'] - tags?: InputMaybe> -} - -export type PutOAuthClientInput = { - avatar?: InputMaybe - description?: InputMaybe - grantTypes?: InputMaybe> - id?: InputMaybe - name?: InputMaybe - redirectURIs?: InputMaybe> - scope?: InputMaybe> - secret?: InputMaybe - user?: InputMaybe - website?: InputMaybe -} - -export type PutRemarkInput = { - id: Scalars['ID']['input'] - remark: Scalars['String']['input'] - type: RemarkTypes -} - -export type PutRestrictedUsersInput = { - ids: Array - restrictions: Array -} - -export type PutSkippedListItemInput = { - archived?: InputMaybe - id?: InputMaybe - type?: InputMaybe - value?: InputMaybe -} - -export type PutTagChannelInput = { - enabled?: InputMaybe - id: Scalars['ID']['input'] - navbarTitle?: InputMaybe> -} - -export type PutTopicChannelInput = { - enabled?: InputMaybe - id?: InputMaybe - name?: InputMaybe> - navbarTitle?: InputMaybe> - note?: InputMaybe> - providerId?: InputMaybe - subChannels?: InputMaybe> -} - -export type PutUserFeatureFlagsInput = { - flags: Array - ids: Array -} - -export type PutUserFederationSettingInput = { - id: Scalars['ID']['input'] - state: FederationAuthorSettingState -} - -export type PutWritingChallengeInput = { - announcements?: InputMaybe> - applicationPeriod?: InputMaybe - channelEnabled?: InputMaybe - cover?: InputMaybe - description?: InputMaybe> - /** exclude articles of this campaign in topic channels and newest */ - exclusive?: InputMaybe - featuredDescription?: InputMaybe> - id?: InputMaybe - link?: InputMaybe - managers?: InputMaybe> - name?: InputMaybe> - navbarTitle?: InputMaybe> - newStages?: InputMaybe> - organizers?: InputMaybe> - showAd?: InputMaybe - showOther?: InputMaybe - stages?: InputMaybe> - state?: InputMaybe - writingPeriod?: InputMaybe -} - -export type Query = { - __typename?: 'Query' - article?: Maybe
- campaign?: Maybe - campaignOrganizers: UserConnection - campaigns: CampaignConnection - channel?: Maybe - channels: Array - circle?: Maybe - clientPreference: ClientPreference - /** One public Community Watch audit record. */ - communityWatchAction?: Maybe - /** Recent public Community Watch audit records. */ - communityWatchActions: CommunityWatchActionConnection - exchangeRates?: Maybe> - frequentSearch?: Maybe> - lastFetchRandom: LastFetchRandom - moment?: Maybe - node?: Maybe - nodes?: Maybe> - oauthClient?: Maybe - oauthRequestToken?: Maybe - official: Official - oss: Oss - search: SearchResultConnection - user?: Maybe - viewer?: Maybe -} - -export type QueryArticleArgs = { - input: ArticleInput -} - -export type QueryCampaignArgs = { - input: CampaignInput -} - -export type QueryCampaignOrganizersArgs = { - input: ConnectionArgs -} - -export type QueryCampaignsArgs = { - input: CampaignsInput -} - -export type QueryChannelArgs = { - input: ChannelInput -} - -export type QueryChannelsArgs = { - input?: InputMaybe -} - -export type QueryCircleArgs = { - input: CircleInput -} - -export type QueryCommunityWatchActionArgs = { - input: CommunityWatchActionInput -} - -export type QueryCommunityWatchActionsArgs = { - input: CommunityWatchActionsInput -} - -export type QueryExchangeRatesArgs = { - input?: InputMaybe -} - -export type QueryFrequentSearchArgs = { - input: FrequentSearchInput -} - -export type QueryMomentArgs = { - input: MomentInput -} - -export type QueryNodeArgs = { - input: NodeInput -} - -export type QueryNodesArgs = { - input: NodesInput -} - -export type QueryOauthClientArgs = { - input: OAuthClientInput -} - -export type QuerySearchArgs = { - input: SearchInput -} - -export type QueryUserArgs = { - input: UserInput -} - -export enum QuoteCurrency { - Hkd = 'HKD', - Twd = 'TWD', - Usd = 'USD', -} - -export type ReadArticleInput = { - id: Scalars['ID']['input'] -} - -export type ReadHistory = { - __typename?: 'ReadHistory' - article: Article - readAt: Scalars['DateTime']['output'] -} - -export type ReadHistoryConnection = Connection & { - __typename?: 'ReadHistoryConnection' - edges?: Maybe> - pageInfo: PageInfo - totalCount: Scalars['Int']['output'] -} - -export type ReadHistoryEdge = { - __typename?: 'ReadHistoryEdge' - cursor: Scalars['String']['output'] - node: ReadHistory -} - -export type RecentSearchConnection = Connection & { - __typename?: 'RecentSearchConnection' - edges?: Maybe> - pageInfo: PageInfo - totalCount: Scalars['Int']['output'] -} - -export type RecentSearchEdge = { - __typename?: 'RecentSearchEdge' - cursor: Scalars['String']['output'] - node: Scalars['String']['output'] -} - -export type RecommendFilterInput = { - channel?: InputMaybe - /** filter out followed users */ - followed?: InputMaybe - /** index of list, min: 0, max: 49 */ - random?: InputMaybe -} - -export type RecommendInput = { - after?: InputMaybe - filter?: InputMaybe - first?: InputMaybe - newAlgo?: InputMaybe - oss?: InputMaybe -} - -/** Enums for types of recommend articles. */ -export enum RecommendTypes { - Hottest = 'hottest', - Icymi = 'icymi', - Newest = 'newest', - Search = 'search', -} - -export type Recommendation = { - __typename?: 'Recommendation' - /** Global user list, sort by activities in recent 6 month. */ - authors: UserConnection - /** Activities based on user's following, sort by creation time. */ - following: FollowingActivityConnection - /** Global articles sort by latest activity time. */ - hottest: ArticleConnection - /** 'In case you missed it' recommendation. */ - icymi: ArticleConnection - /** 'In case you missed it' topic. */ - icymiTopic?: Maybe - /** Global articles sort by publish time. */ - newest: ArticleConnection - /** Global tag list, sort by activities in recent 14 days. */ - tags: TagConnection -} - -export type RecommendationAuthorsArgs = { - input: RecommendInput -} - -export type RecommendationFollowingArgs = { - input: RecommendationFollowingInput -} - -export type RecommendationHottestArgs = { - input: RecommendInput -} - -export type RecommendationIcymiArgs = { - input: ConnectionArgs -} - -export type RecommendationNewestArgs = { - input: RecommendationNewestInput -} - -export type RecommendationTagsArgs = { - input: RecommendInput -} - -export type RecommendationFollowingFilterInput = { - type?: InputMaybe -} - -export enum RecommendationFollowingFilterType { - Article = 'article', -} - -export type RecommendationFollowingInput = { - after?: InputMaybe - filter?: InputMaybe - first?: InputMaybe -} - -export type RecommendationNewestInput = { - after?: InputMaybe - excludeChannelArticles?: InputMaybe - filter?: InputMaybe - first?: InputMaybe - oss?: InputMaybe -} - -export type RefreshIpnsFeedInput = { - /** refresh how many recent articles, default to 50 */ - numArticles?: InputMaybe - userName: Scalars['String']['input'] -} - -export type RelatedDonationArticlesInput = { - after?: InputMaybe - first?: InputMaybe - oss?: InputMaybe - /** index of article list, min: 0, max: 49 */ - random?: InputMaybe -} - -export enum RemarkTypes { - Article = 'Article', - Comment = 'Comment', - Feedback = 'Feedback', - Report = 'Report', - Tag = 'Tag', - User = 'User', -} - -export type RemoveSocialLoginInput = { - type: SocialAccountType -} - -export type RenameTagInput = { - content: Scalars['String']['input'] - id: Scalars['ID']['input'] -} - -export type ReorderChannelsInput = { - ids: Array -} - -export type ReorderCollectionArticlesInput = { - collection: Scalars['ID']['input'] - moves: Array -} - -export type ReorderMoveInput = { - item: Scalars['ID']['input'] - /** The new position move to. To move item to the beginning of the list, set to 0. To the end of the list, set to the length of the list - 1. */ - newPosition: Scalars['Int']['input'] -} - -export type Report = Node & { - __typename?: 'Report' - createdAt: Scalars['DateTime']['output'] - id: Scalars['ID']['output'] - reason: ReportReason - reporter: User - target: Node -} - -export type ReportConnection = Connection & { - __typename?: 'ReportConnection' - edges?: Maybe> - pageInfo: PageInfo - totalCount: Scalars['Int']['output'] -} - -export type ReportEdge = { - __typename?: 'ReportEdge' - cursor: Scalars['String']['output'] - node: Report -} - -export enum ReportReason { - DiscriminationInsultHatred = 'discrimination_insult_hatred', - IllegalAdvertising = 'illegal_advertising', - Other = 'other', - PornographyInvolvingMinors = 'pornography_involving_minors', - Tort = 'tort', -} - -export type ResetLikerIdInput = { - id: Scalars['ID']['input'] -} - -export type ResetPasswordInput = { - codeId: Scalars['ID']['input'] - password: Scalars['String']['input'] - type?: InputMaybe -} - -export enum ResetPasswordType { - Account = 'account', - Payment = 'payment', -} - -export type Response = Article | Comment - -export type ResponseConnection = Connection & { - __typename?: 'ResponseConnection' - edges?: Maybe> - pageInfo: PageInfo - totalCount: Scalars['Int']['output'] -} - -export type ResponseEdge = { - __typename?: 'ResponseEdge' - cursor: Scalars['String']['output'] - node: Response -} - -/** Enums for sorting responses. */ -export enum ResponseSort { - Newest = 'newest', - Oldest = 'oldest', -} - -export type ResponsesInput = { - after?: InputMaybe - articleOnly?: InputMaybe - before?: InputMaybe - first?: InputMaybe - includeAfter?: InputMaybe - includeBefore?: InputMaybe - sort?: InputMaybe -} - -export type RestoreCommunityWatchCommentInput = { - note?: InputMaybe - uuid: Scalars['ID']['input'] -} - -export type ReviewTopicChannelFeedbackInput = { - action: TopicChannelFeedbackAction - feedback: Scalars['ID']['input'] -} - -/** Enums for user roles. */ -export enum Role { - Admin = 'admin', - User = 'user', - Vistor = 'vistor', -} - -export enum SearchApiVersion { - V20230301 = 'v20230301', - V20230601 = 'v20230601', -} - -export enum SearchExclude { - Blocked = 'blocked', -} - -export type SearchFilter = { - authorId?: InputMaybe -} - -export type SearchInput = { - after?: InputMaybe - /** specific condition for rule data out */ - exclude?: InputMaybe - /** extra query filter for searching */ - filter?: InputMaybe - first?: InputMaybe - /** should include tags used by author */ - includeAuthorTags?: InputMaybe - /** search keyword */ - key: Scalars['String']['input'] - oss?: InputMaybe - quicksearch?: InputMaybe - /** whether this search operation should be recorded in search history */ - record?: InputMaybe - /** types of search target */ - type: SearchTypes -} - -export type SearchResultConnection = Connection & { - __typename?: 'SearchResultConnection' - edges?: Maybe> - pageInfo: PageInfo - totalCount: Scalars['Int']['output'] -} - -export type SearchResultEdge = { - __typename?: 'SearchResultEdge' - cursor: Scalars['String']['output'] - node: Node -} - -export enum SearchTypes { - Article = 'Article', - Tag = 'Tag', - User = 'User', -} - -export type SendCampaignAnnouncementInput = { - announcement: Array - campaign: Scalars['ID']['input'] - link: Scalars['link_String_NotNull_format_uri']['input'] - password: Scalars['String']['input'] -} - -export type SendVerificationCodeInput = { - email: Scalars['email_String_NotNull_format_email']['input'] - /** email content language */ - language?: InputMaybe - /** - * Redirect URL embedded in the verification email, - * use code instead if not provided. - */ - redirectUrl?: InputMaybe - token?: InputMaybe - type: VerificationCodeType -} - -export type SetAdStatusInput = { - id: Scalars['ID']['input'] - isAd: Scalars['Boolean']['input'] -} - -export type SetArticleFederationSettingInput = { - id: Scalars['ID']['input'] - state: FederationArticleSettingState -} - -export type SetArticleTopicChannelsInput = { - channels: Array - id: Scalars['ID']['input'] -} - -export type SetBoostInput = { - boost: Scalars['boost_Float_NotNull_min_0']['input'] - id: Scalars['ID']['input'] - type: BoostTypes -} - -export type SetCurrencyInput = { - currency?: InputMaybe -} - -export type SetEmailInput = { - email: Scalars['String']['input'] -} - -export type SetFeatureInput = { - flag: FeatureFlag - name: FeatureName - value?: InputMaybe -} - -export type SetPasswordInput = { - password: Scalars['String']['input'] -} - -export type SetSpamStatusInput = { - id: Scalars['ID']['input'] - isSpam: Scalars['Boolean']['input'] -} - -export type SetUserNameInput = { - userName: Scalars['String']['input'] -} - -export type SetViewerFederationSettingInput = { - state: FederationAuthorSettingState -} - -export enum SigningMessagePurpose { - Airdrop = 'airdrop', - ClaimLogbook = 'claimLogbook', - Connect = 'connect', - Login = 'login', - Signup = 'signup', -} - -export type SigningMessageResult = { - __typename?: 'SigningMessageResult' - createdAt: Scalars['DateTime']['output'] - expiredAt: Scalars['DateTime']['output'] - nonce: Scalars['String']['output'] - purpose: SigningMessagePurpose - signingMessage: Scalars['String']['output'] -} - -export type SingleFileUploadInput = { - draft?: InputMaybe - entityId?: InputMaybe - entityType: EntityType - file?: InputMaybe - type: AssetType - url?: InputMaybe -} - -export type SkippedListItem = { - __typename?: 'SkippedListItem' - archived: Scalars['Boolean']['output'] - createdAt: Scalars['DateTime']['output'] - id: Scalars['ID']['output'] - type: SkippedListItemType - updatedAt: Scalars['DateTime']['output'] - uuid: Scalars['ID']['output'] - value: Scalars['String']['output'] -} - -export type SkippedListItemEdge = { - __typename?: 'SkippedListItemEdge' - cursor: Scalars['String']['output'] - node?: Maybe -} - -export enum SkippedListItemType { - AgentHash = 'agent_hash', - Domain = 'domain', - Email = 'email', -} - -export type SkippedListItemsConnection = Connection & { - __typename?: 'SkippedListItemsConnection' - edges?: Maybe> - pageInfo: PageInfo - totalCount: Scalars['Int']['output'] -} - -export type SkippedListItemsInput = { - after?: InputMaybe - first?: InputMaybe - type?: InputMaybe -} - -export type SocialAccount = { - __typename?: 'SocialAccount' - email?: Maybe - type: SocialAccountType - userName?: Maybe -} - -export enum SocialAccountType { - Facebook = 'Facebook', - Google = 'Google', - Threads = 'Threads', - Twitter = 'Twitter', -} - -export type SocialLoginInput = { - authorizationCode?: InputMaybe - /** OAuth2 PKCE code_verifier for Facebook and Twitter */ - codeVerifier?: InputMaybe - /** used in register */ - language?: InputMaybe - /** OIDC nonce for Google */ - nonce?: InputMaybe - /** oauth token/verifier in OAuth1.0a for Twitter */ - oauth1Credential?: InputMaybe - referralCode?: InputMaybe - type: SocialAccountType -} - -export type SpamStatus = { - __typename?: 'SpamStatus' - /** Whether this work is labeled as spam by human, null for not labeled yet. */ - isSpam?: Maybe - /** Spam confident score by machine, null for not checked yet. */ - score?: Maybe -} - -export type StripeAccount = { - __typename?: 'StripeAccount' - id: Scalars['ID']['output'] - loginUrl: Scalars['String']['output'] -} - -export enum StripeAccountCountry { - Australia = 'Australia', - Austria = 'Austria', - Belgium = 'Belgium', - Bulgaria = 'Bulgaria', - Canada = 'Canada', - Cyprus = 'Cyprus', - Denmark = 'Denmark', - Estonia = 'Estonia', - Finland = 'Finland', - France = 'France', - Germany = 'Germany', - Greece = 'Greece', - HongKong = 'HongKong', - Ireland = 'Ireland', - Italy = 'Italy', - Latvia = 'Latvia', - Lithuania = 'Lithuania', - Luxembourg = 'Luxembourg', - Malta = 'Malta', - Netherlands = 'Netherlands', - NewZealand = 'NewZealand', - Norway = 'Norway', - Poland = 'Poland', - Portugal = 'Portugal', - Romania = 'Romania', - Singapore = 'Singapore', - Slovakia = 'Slovakia', - Slovenia = 'Slovenia', - Spain = 'Spain', - Sweden = 'Sweden', - UnitedKingdom = 'UnitedKingdom', - UnitedStates = 'UnitedStates', -} - -export type SubmitReportInput = { - reason: ReportReason - targetId: Scalars['ID']['input'] -} - -export type SubmitTopicChannelFeedbackInput = { - article: Scalars['ID']['input'] - channels?: InputMaybe> - type: TopicChannelFeedbackType -} - -export type SubscribeCircleInput = { - /** Unique ID. */ - id: Scalars['ID']['input'] - /** Wallet password. */ - password?: InputMaybe -} - -export type SubscribeCircleResult = { - __typename?: 'SubscribeCircleResult' - circle: Circle - /** client secret for SetupIntent. */ - client_secret?: Maybe -} - -/** This type contains content, count and related data of an article tag. */ -export type Tag = Channel & - Node & { - __typename?: 'Tag' - /** List of articles were attached with this tag. */ - articles: ChannelArticleConnection - /** Whether this tag is enabled as a channel */ - channelEnabled: Scalars['Boolean']['output'] - /** Content of this tag. */ - content: Scalars['String']['output'] - /** Time of this tag was created. */ - createdAt: Scalars['DateTime']['output'] - deleted: Scalars['Boolean']['output'] - /** Unique id of this tag. */ - id: Scalars['ID']['output'] - /** This value determines if current viewer is following or not. */ - isFollower?: Maybe - /** Navbar title for this tag channel */ - navbarTitle: Scalars['String']['output'] - /** Counts of this tag. */ - numArticles: Scalars['Int']['output'] - numAuthors: Scalars['Int']['output'] - numMoments: Scalars['Int']['output'] - oss: TagOss - /** Tags recommended based on relations to current tag. */ - recommended: TagConnection - /** Authors recommended based on relations to current tag. */ - recommendedAuthors: UserConnection - remark?: Maybe - /** Short hash for shorter url addressing */ - shortHash: Scalars['String']['output'] - /** Articles and moments were attached with this tag. */ - writings: TagWritingConnection - } - -/** This type contains content, count and related data of an article tag. */ -export type TagArticlesArgs = { - input: TagArticlesInput -} - -/** This type contains content, count and related data of an article tag. */ -export type TagNavbarTitleArgs = { - input?: InputMaybe -} - -/** This type contains content, count and related data of an article tag. */ -export type TagRecommendedArgs = { - input: RecommendInput -} - -/** This type contains content, count and related data of an article tag. */ -export type TagRecommendedAuthorsArgs = { - input: ConnectionArgs -} - -/** This type contains content, count and related data of an article tag. */ -export type TagWritingsArgs = { - input: WritingInput -} - -export type TagArticlesInput = { - after?: InputMaybe - first?: InputMaybe - oss?: InputMaybe - sortBy?: InputMaybe -} - -export enum TagArticlesSortBy { - ByCreatedAtDesc = 'byCreatedAtDesc', - ByHottestDesc = 'byHottestDesc', -} - -export type TagConnection = Connection & { - __typename?: 'TagConnection' - edges?: Maybe> - pageInfo: PageInfo - totalCount: Scalars['Int']['output'] -} - -export type TagEdge = { - __typename?: 'TagEdge' - cursor: Scalars['String']['output'] - node: Tag -} - -export type TagOss = { - __typename?: 'TagOSS' - boost: Scalars['Float']['output'] - score: Scalars['Float']['output'] -} - -export type TagWritingConnection = Connection & { - __typename?: 'TagWritingConnection' - edges?: Maybe> - pageInfo: PageInfo - totalCount: Scalars['Int']['output'] -} - -export type TagWritingEdge = { - __typename?: 'TagWritingEdge' - cursor: Scalars['String']['output'] - node: Writing - pinned: Scalars['Boolean']['output'] -} - -export type TagsInput = { - after?: InputMaybe - first?: InputMaybe - sort?: InputMaybe -} - -/** Enums for sorting tags. */ -export enum TagsSort { - Hottest = 'hottest', - Newest = 'newest', - Oldest = 'oldest', -} - -export type ToggleCircleMemberInput = { - /** Toggle value. */ - enabled: Scalars['Boolean']['input'] - /** Unique ID. */ - id: Scalars['ID']['input'] - /** Unique ID of target user. */ - targetId: Scalars['ID']['input'] -} - -/** Common input to toggle single item for `toggleXXX` mutations */ -export type ToggleItemInput = { - enabled?: InputMaybe - id: Scalars['ID']['input'] -} - -export type TogglePinChannelArticlesInput = { - articles: Array - /** id of TopicChannel or CurationChannel */ - channels: Array - pinned: Scalars['Boolean']['input'] -} - -export type ToggleRecommendInput = { - enabled: Scalars['Boolean']['input'] - id: Scalars['ID']['input'] - type?: InputMaybe -} - -export type ToggleSeedingUsersInput = { - enabled: Scalars['Boolean']['input'] - ids?: InputMaybe> -} - -export type ToggleUsersBadgeInput = { - enabled: Scalars['Boolean']['input'] - ids: Array - type: BadgeType -} - -export type ToggleWritingChallengeFeaturedArticlesInput = { - articles: Array - campaign: Scalars['ID']['input'] - enabled: Scalars['Boolean']['input'] -} - -export type TopDonatorConnection = Connection & { - __typename?: 'TopDonatorConnection' - edges?: Maybe> - pageInfo: PageInfo - totalCount: Scalars['Int']['output'] -} - -export type TopDonatorEdge = { - __typename?: 'TopDonatorEdge' - cursor: Scalars['String']['output'] - donationCount: Scalars['Int']['output'] - node: Donator -} - -export type TopDonatorFilter = { - inRangeEnd?: InputMaybe - inRangeStart?: InputMaybe -} - -export type TopDonatorInput = { - after?: InputMaybe - filter?: InputMaybe - first?: InputMaybe -} - -export type TopicChannel = Channel & - Node & { - __typename?: 'TopicChannel' - articles: ChannelArticleConnection - enabled: Scalars['Boolean']['output'] - id: Scalars['ID']['output'] - name: Scalars['String']['output'] - navbarTitle: Scalars['String']['output'] - note?: Maybe - parent?: Maybe - providerId?: Maybe - shortHash: Scalars['String']['output'] - } - -export type TopicChannelArticlesArgs = { - input: ChannelArticlesInput -} - -export type TopicChannelNameArgs = { - input?: InputMaybe -} - -export type TopicChannelNavbarTitleArgs = { - input?: InputMaybe -} - -export type TopicChannelNoteArgs = { - input?: InputMaybe -} - -export type TopicChannelClassification = { - __typename?: 'TopicChannelClassification' - /** Which channels this article is in, null for not classified, empty for not in any channel */ - channels?: Maybe> - /** whether user enable channel classification */ - enabled: Scalars['Boolean']['output'] - /** Feedback from author */ - feedback?: Maybe -} - -export type TopicChannelFeedback = { - __typename?: 'TopicChannelFeedback' - article: Article - /** Which channels author want to be in, empty for no channels */ - channels?: Maybe> - createdAt: Scalars['DateTime']['output'] - id: Scalars['ID']['output'] - state?: Maybe - type: TopicChannelFeedbackType -} - -export enum TopicChannelFeedbackAction { - Accept = 'accept', - Reject = 'reject', -} - -export type TopicChannelFeedbackConnection = Connection & { - __typename?: 'TopicChannelFeedbackConnection' - edges: Array - pageInfo: PageInfo - totalCount: Scalars['Int']['output'] -} - -export type TopicChannelFeedbackEdge = { - __typename?: 'TopicChannelFeedbackEdge' - cursor: Scalars['String']['output'] - node: TopicChannelFeedback -} - -export enum TopicChannelFeedbackState { - Accepted = 'accepted', - Pending = 'pending', - Rejected = 'rejected', - Resolved = 'resolved', -} - -export enum TopicChannelFeedbackType { - Negative = 'negative', - Positive = 'positive', -} - -export type TopicChannelFeedbacksFilterInput = { - spam?: InputMaybe - state?: InputMaybe - type?: InputMaybe -} - -export type TopicChannelFeedbacksInput = { - after?: InputMaybe - filter?: InputMaybe - first: Scalars['first_Int_NotNull_min_0']['input'] -} - -export type Transaction = { - __typename?: 'Transaction' - amount: Scalars['Float']['output'] - /** blockchain transaction info of ERC20/native token payment transaction */ - blockchainTx?: Maybe - /** Timestamp of transaction. */ - createdAt: Scalars['DateTime']['output'] - currency: TransactionCurrency - fee: Scalars['Float']['output'] - id: Scalars['ID']['output'] - /** Message for end user, including reason of failure. */ - message?: Maybe - purpose: TransactionPurpose - /** Recipient of transaction. */ - recipient?: Maybe - /** Sender of transaction. */ - sender?: Maybe - state: TransactionState - /** Related target article or transaction. */ - target?: Maybe -} - -export type TransactionConnection = Connection & { - __typename?: 'TransactionConnection' - edges?: Maybe> - pageInfo: PageInfo - totalCount: Scalars['Int']['output'] -} - -export enum TransactionCurrency { - Hkd = 'HKD', - Like = 'LIKE', - Usdt = 'USDT', -} - -export type TransactionEdge = { - __typename?: 'TransactionEdge' - cursor: Scalars['String']['output'] - node: Transaction -} - -export type TransactionNotice = Notice & { - __typename?: 'TransactionNotice' - /** List of notice actors. */ - actors?: Maybe> - /** Time of this notice was created. */ - createdAt: Scalars['DateTime']['output'] - /** Unique ID of this notice. */ - id: Scalars['ID']['output'] - target: Transaction - type: TransactionNoticeType - /** The value determines if the notice is unread or not. */ - unread: Scalars['Boolean']['output'] -} - -export enum TransactionNoticeType { - PaymentReceivedDonation = 'PaymentReceivedDonation', - WithdrewLockedTokens = 'WithdrewLockedTokens', -} - -export enum TransactionPurpose { - AddCredit = 'addCredit', - CurationVaultWithdrawal = 'curationVaultWithdrawal', - Dispute = 'dispute', - Donation = 'donation', - Payout = 'payout', - PayoutReversal = 'payoutReversal', - Refund = 'refund', - SubscriptionSplit = 'subscriptionSplit', -} - -export enum TransactionState { - Canceled = 'canceled', - Failed = 'failed', - Pending = 'pending', - Succeeded = 'succeeded', -} - -export type TransactionTarget = Article | Circle | Transaction - -export type TransactionsArgs = { - after?: InputMaybe - filter?: InputMaybe - first?: InputMaybe - /** deprecated, use TransactionsFilter.id instead. */ - id?: InputMaybe - /** deprecated, use TransactionsFilter.states instead. */ - states?: InputMaybe> -} - -export type TransactionsFilter = { - currency?: InputMaybe - id?: InputMaybe - purpose?: InputMaybe - states?: InputMaybe> -} - -export type TransactionsReceivedByArgs = { - after?: InputMaybe - first?: InputMaybe - purpose: TransactionPurpose - senderId?: InputMaybe -} - -export type TranslatedAnnouncement = { - __typename?: 'TranslatedAnnouncement' - content?: Maybe - cover?: Maybe - language: UserLanguage - link?: Maybe - title?: Maybe -} - -export type TranslationArgs = { - language: UserLanguage -} - -export type TranslationInput = { - language: UserLanguage - text: Scalars['String']['input'] -} - -export enum TranslationModel { - GoogleGemini_2_0Flash = 'google_gemini_2_0_flash', - GoogleGemini_2_5Flash = 'google_gemini_2_5_flash', - GoogleTranslationV2 = 'google_translation_v2', - Opencc = 'opencc', -} - -export type UnbindLikerIdInput = { - id: Scalars['ID']['input'] - likerId: Scalars['String']['input'] -} - -export type UnlikeCollectionInput = { - id: Scalars['ID']['input'] -} - -export type UnlikeMomentInput = { - id: Scalars['ID']['input'] -} - -export type UnpinCommentInput = { - id: Scalars['ID']['input'] -} - -export type UnsubscribeCircleInput = { - /** Unique ID. */ - id: Scalars['ID']['input'] -} - -export type UnvoteCommentInput = { - id: Scalars['ID']['input'] -} - -export type UpdateArticleSensitiveInput = { - id: Scalars['ID']['input'] - sensitive: Scalars['Boolean']['input'] -} - -export type UpdateArticleStateInput = { - id: Scalars['ID']['input'] - state: ArticleState -} - -export type UpdateCampaignApplicationStateInput = { - campaign: Scalars['ID']['input'] - state: CampaignApplicationState - user: Scalars['ID']['input'] -} - -export type UpdateCommentsStateInput = { - ids: Array - state: CommentState -} - -export type UpdateCommunityWatchActionStateInput = { - appealState?: InputMaybe - note?: InputMaybe - reason?: InputMaybe - reviewState?: InputMaybe - uuid: Scalars['ID']['input'] -} - -export type UpdateNotificationSettingInput = { - enabled: Scalars['Boolean']['input'] - type: NotificationSettingType -} - -export type UpdateUserExtraInput = { - id: Scalars['ID']['input'] - referralCode?: InputMaybe -} - -export type UpdateUserInfoInput = { - agreeOn?: InputMaybe - avatar?: InputMaybe - description?: InputMaybe - displayName?: InputMaybe - language?: InputMaybe - paymentPassword?: InputMaybe - paymentPointer?: InputMaybe - profileCover?: InputMaybe - referralCode?: InputMaybe -} - -export type UpdateUserRoleInput = { - id: Scalars['ID']['input'] - role: UserRole -} - -export type UpdateUserStateInput = { - banDays?: InputMaybe - emails?: InputMaybe> - id?: InputMaybe - password?: InputMaybe - state: UserState -} - -export type User = Node & { - __typename?: 'User' - /** Record of user activity, only accessable by current user. */ - activity: UserActivity - /** user data analytics, only accessable by current user. */ - analytics: UserAnalytics - /** Articles authored by current user. */ - articles: ArticleConnection - /** URL for user avatar. */ - avatar?: Maybe - /** Users that blocked by current user. */ - blockList: UserConnection - /** Artilces current user bookmarked. */ - bookmarkedArticles: ArticleConnection - /** Tags current user bookmarked. */ - bookmarkedTags: TagConnection - /** active applied campaigns */ - campaigns: CampaignConnection - /** collections authored by current user. */ - collections: CollectionConnection - /** Articles current user commented on */ - commentedArticles: ArticleConnection - /** Display name on user profile, can be duplicated. */ - displayName?: Maybe - /** Drafts authored by current user. */ - drafts: DraftConnection - /** User-level federation opt-in setting. */ - federationSetting?: Maybe - /** Followers of this user. */ - followers: UserConnection - /** Following contents of this user. */ - following: Following - /** Global id of an user. */ - id: Scalars['ID']['output'] - /** User information. */ - info: UserInfo - /** Whether current user is blocked by viewer. */ - isBlocked: Scalars['Boolean']['output'] - /** Whether current user is blocking viewer. */ - isBlocking: Scalars['Boolean']['output'] - /** Whether viewer is following current user. */ - isFollowee: Scalars['Boolean']['output'] - /** Whether current user is following viewer. */ - isFollower: Scalars['Boolean']['output'] - /** user latest articles or collections */ - latestWorks: Array - /** Liker info of current user */ - liker: Liker - /** LikerID of LikeCoin, being used by LikeCoin OAuth */ - likerId?: Maybe - notices: NoticeConnection - oss: UserOss - /** Circles belong to current user. */ - ownCircles?: Maybe> - /** Payment pointer that resolves to Open Payments endpoints */ - paymentPointer?: Maybe - /** user pinned articles or collections */ - pinnedWorks: Array - /** Recommendations for current user. */ - recommendation: Recommendation - remark?: Maybe - /** User settings. */ - settings: UserSettings - /** Status of current user. */ - status?: Maybe - /** Circles whiches user has subscribed. */ - subscribedCircles: CircleConnection - /** Tags by usage order of current user. */ - tags: TagConnection - /** Global unique user name of a user. */ - userName?: Maybe - /** User Wallet */ - wallet: Wallet - /** Articles and moments authored by current user. */ - writings: WritingConnection -} - -export type UserArticlesArgs = { - input: UserArticlesInput -} - -export type UserBlockListArgs = { - input: ConnectionArgs -} - -export type UserBookmarkedArticlesArgs = { - input: ConnectionArgs -} - -export type UserBookmarkedTagsArgs = { - input: ConnectionArgs -} - -export type UserCampaignsArgs = { - input: ConnectionArgs -} - -export type UserCollectionsArgs = { - input: ConnectionArgs -} - -export type UserCommentedArticlesArgs = { - input: ConnectionArgs -} - -export type UserDraftsArgs = { - input: ConnectionArgs -} - -export type UserFollowersArgs = { - input: ConnectionArgs -} - -export type UserNoticesArgs = { - input: ConnectionArgs -} - -export type UserSubscribedCirclesArgs = { - input: ConnectionArgs -} - -export type UserTagsArgs = { - input: ConnectionArgs -} - -export type UserWritingsArgs = { - input: WritingInput -} - -export type UserActivity = { - __typename?: 'UserActivity' - /** Appreciations current user received. */ - appreciationsReceived: AppreciationConnection - /** Total number of appreciation current user received. */ - appreciationsReceivedTotal: Scalars['Int']['output'] - /** Appreciations current user gave. */ - appreciationsSent: AppreciationConnection - /** Total number of appreciation current user gave. */ - appreciationsSentTotal: Scalars['Int']['output'] - /** User reading history. */ - history: ReadHistoryConnection - /** User search history. */ - recentSearches: RecentSearchConnection -} - -export type UserActivityAppreciationsReceivedArgs = { - input: ConnectionArgs -} - -export type UserActivityAppreciationsSentArgs = { - input: ConnectionArgs -} - -export type UserActivityHistoryArgs = { - input: ConnectionArgs -} - -export type UserActivityRecentSearchesArgs = { - input: ConnectionArgs -} - -export type UserAddArticleTagActivity = { - __typename?: 'UserAddArticleTagActivity' - actor: User - createdAt: Scalars['DateTime']['output'] - /** Article added to tag */ - node: Article - /** Tag added by article */ - target: Tag -} - -export type UserAnalytics = { - __typename?: 'UserAnalytics' - /** Top donators of current user. */ - topDonators: TopDonatorConnection -} - -export type UserAnalyticsTopDonatorsArgs = { - input: TopDonatorInput -} - -export type UserArticlesFilter = { - state?: InputMaybe -} - -export type UserArticlesInput = { - after?: InputMaybe - filter?: InputMaybe - first?: InputMaybe - sort?: InputMaybe -} - -export enum UserArticlesSort { - MostAppreciations = 'mostAppreciations', - MostComments = 'mostComments', - MostDonations = 'mostDonations', - MostReaders = 'mostReaders', - Newest = 'newest', -} - -export type UserBroadcastCircleActivity = { - __typename?: 'UserBroadcastCircleActivity' - actor: User - createdAt: Scalars['DateTime']['output'] - /** Comment broadcast by actor */ - node: Comment - /** Circle that comment belongs to */ - target: Circle -} - -export type UserConnection = Connection & { - __typename?: 'UserConnection' - edges?: Maybe> - pageInfo: PageInfo - totalCount: Scalars['Int']['output'] -} - -export type UserCreateCircleActivity = { - __typename?: 'UserCreateCircleActivity' - actor: User - createdAt: Scalars['DateTime']['output'] - /** Circle created by actor */ - node: Circle -} - -export type UserEdge = { - __typename?: 'UserEdge' - cursor: Scalars['String']['output'] - node: User -} - -export type UserFeatureFlag = { - __typename?: 'UserFeatureFlag' - createdAt: Scalars['DateTime']['output'] - type: UserFeatureFlagType -} - -export enum UserFeatureFlagType { - BypassSpamDetection = 'bypassSpamDetection', - CommunityWatch = 'communityWatch', - FediverseBeta = 'fediverseBeta', - ReadSpamStatus = 'readSpamStatus', - UnlimitedArticleFetch = 'unlimitedArticleFetch', -} - -export type UserFederationSetting = { - __typename?: 'UserFederationSetting' - state: FederationAuthorSettingState - updatedBy?: Maybe - userId: Scalars['ID']['output'] -} - -export enum UserGroup { - A = 'a', - B = 'b', -} - -export type UserInfo = { - __typename?: 'UserInfo' - /** Timestamp of user agreement. */ - agreeOn?: Maybe - /** User badges. */ - badges?: Maybe> - /** Timestamp of registration. */ - createdAt?: Maybe - /** Connected wallet. */ - cryptoWallet?: Maybe - /** User desciption. */ - description?: Maybe - /** User email. */ - email?: Maybe - /** Weather user email is verified. */ - emailVerified: Scalars['Boolean']['output'] - /** Login address */ - ethAddress?: Maybe - /** saved tags for showing on profile page, API allows up to 100, front-end lock'ed at lower limit */ - featuredTags?: Maybe> - /** Type of group. */ - group: UserGroup - /** the ipnsKey (`ipfs.io/ipns//...`) for feed.json / rss.xml / index */ - ipnsKey?: Maybe - isWalletAuth: Scalars['Boolean']['output'] - /** Cover of profile page. */ - profileCover?: Maybe - /** User connected social accounts. */ - socialAccounts: Array - /** Is user name editable. */ - userNameEditable: Scalars['Boolean']['output'] -} - -export enum UserInfoFields { - AgreeOn = 'agreeOn', - Avatar = 'avatar', - Description = 'description', - DisplayName = 'displayName', - Email = 'email', -} - -export type UserInput = { - ethAddress?: InputMaybe - userName?: InputMaybe - /** used for case insensitive username search */ - userNameCaseIgnore?: InputMaybe -} - -export enum UserLanguage { - En = 'en', - ZhHans = 'zh_hans', - ZhHant = 'zh_hant', -} - -export type UserNotice = Notice & { - __typename?: 'UserNotice' - /** List of notice actors. */ - actors?: Maybe> - /** Time of this notice was created. */ - createdAt: Scalars['DateTime']['output'] - /** Unique ID of this notice. */ - id: Scalars['ID']['output'] - target: User - type: UserNoticeType - /** The value determines if the notice is unread or not. */ - unread: Scalars['Boolean']['output'] -} - -export enum UserNoticeType { - UserNewFollower = 'UserNewFollower', -} - -export type UserOss = { - __typename?: 'UserOSS' - boost: Scalars['Float']['output'] - featureFlags: Array - restrictions: Array - score: Scalars['Float']['output'] -} - -export type UserPostMomentActivity = { - __typename?: 'UserPostMomentActivity' - actor: User - createdAt: Scalars['DateTime']['output'] - /** Another 3 moments posted by actor */ - more: Array - /** Moment posted by actor */ - node: Moment -} - -export type UserPublishArticleActivity = { - __typename?: 'UserPublishArticleActivity' - actor: User - createdAt: Scalars['DateTime']['output'] - /** Article published by actor */ - node: Article -} - -export type UserRecommendationActivity = { - __typename?: 'UserRecommendationActivity' - /** Recommended users */ - nodes?: Maybe> - /** The source type of recommendation */ - source?: Maybe -} - -export enum UserRecommendationActivitySource { - UserFollowing = 'UserFollowing', -} - -export type UserRestriction = { - __typename?: 'UserRestriction' - createdAt: Scalars['DateTime']['output'] - type: UserRestrictionType -} - -export enum UserRestrictionType { - ArticleHottest = 'articleHottest', - ArticleNewest = 'articleNewest', -} - -export enum UserRole { - Admin = 'admin', - User = 'user', -} - -export type UserSettings = { - __typename?: 'UserSettings' - /** User currency preference. */ - currency: QuoteCurrency - /** User language setting. */ - language: UserLanguage - /** Notification settings. */ - notification?: Maybe -} - -export enum UserState { - Active = 'active', - Archived = 'archived', - Banned = 'banned', - Frozen = 'frozen', -} - -export type UserStatus = { - __typename?: 'UserStatus' - /** Number of articles published by user */ - articleCount: Scalars['Int']['output'] - /** Number of chances for the user to change email in a nature day. Reset in UTC+8 0:00 */ - changeEmailTimesLeft: Scalars['Int']['output'] - /** Number of comments posted by user. */ - commentCount: Scalars['Int']['output'] - /** Number of articles donated by user */ - donatedArticleCount: Scalars['Int']['output'] - /** Weather login password is set for email login. */ - hasEmailLoginPassword: Scalars['Boolean']['output'] - /** Whether user already set payment password. */ - hasPaymentPassword: Scalars['Boolean']['output'] - /** Number of moments posted by user */ - momentCount: Scalars['Int']['output'] - /** Number of times of donations received by user */ - receivedDonationCount: Scalars['Int']['output'] - /** User role and access level. */ - role: UserRole - /** User state. */ - state: UserState - /** Number of referred user registration count (in Digital Nomad Campaign). */ - totalReferredCount: Scalars['Int']['output'] - /** Number of total written words. */ - totalWordCount: Scalars['Int']['output'] - /** Whether there are unread activities from following. */ - unreadFollowing: Scalars['Boolean']['output'] - /** Number of unread notices. */ - unreadNoticeCount: Scalars['Int']['output'] -} - -export enum VerificationCodeType { - EmailOtp = 'email_otp', - EmailVerify = 'email_verify', - PaymentPasswordReset = 'payment_password_reset', - Register = 'register', -} - -export type VerifyEmailInput = { - code: Scalars['String']['input'] - email: Scalars['String']['input'] -} - -/** Enums for vote types. */ -export enum Vote { - Down = 'down', - Up = 'up', -} - -export type VoteCommentInput = { - id: Scalars['ID']['input'] - vote: Vote -} - -export type Wallet = { - __typename?: 'Wallet' - balance: Balance - /** The last four digits of the card. */ - cardLast4?: Maybe - /** URL of Stripe Dashboard to manage subscription invoice and payment method */ - customerPortal?: Maybe - /** Account of Stripe Connect to manage payout */ - stripeAccount?: Maybe - transactions: TransactionConnection -} - -export type WalletTransactionsArgs = { - input: TransactionsArgs -} - -export type WalletLoginInput = { - ethAddress: Scalars['String']['input'] - /** used in register */ - language?: InputMaybe - /** nonce from generateSigningMessage */ - nonce: Scalars['String']['input'] - referralCode?: InputMaybe - /** sign'ed by wallet */ - signature: Scalars['String']['input'] - /** the message being sign'ed, including nonce */ - signedMessage: Scalars['String']['input'] -} - -export type WithdrawLockedTokensResult = { - __typename?: 'WithdrawLockedTokensResult' - transaction: Transaction -} - -export type Writing = Article | Comment | Moment - -export type WritingChallenge = Campaign & - Channel & - Node & { - __typename?: 'WritingChallenge' - announcements: Array
- application?: Maybe - applicationPeriod?: Maybe - articles: CampaignArticleConnection - channelEnabled: Scalars['Boolean']['output'] - cover?: Maybe - description?: Maybe - featuredDescription: Scalars['String']['output'] - id: Scalars['ID']['output'] - isManager: Scalars['Boolean']['output'] - link: Scalars['String']['output'] - name: Scalars['String']['output'] - navbarTitle: Scalars['String']['output'] - organizers: Array - oss: CampaignOss - participants: CampaignParticipantConnection - shortHash: Scalars['String']['output'] - showAd: Scalars['Boolean']['output'] - showOther: Scalars['Boolean']['output'] - stages: Array - state: CampaignState - writingPeriod?: Maybe - } - -export type WritingChallengeArticlesArgs = { - input: CampaignArticlesInput -} - -export type WritingChallengeDescriptionArgs = { - input?: InputMaybe -} - -export type WritingChallengeFeaturedDescriptionArgs = { - input?: InputMaybe -} - -export type WritingChallengeNameArgs = { - input?: InputMaybe -} - -export type WritingChallengeNavbarTitleArgs = { - input?: InputMaybe -} - -export type WritingChallengeParticipantsArgs = { - input: CampaignParticipantsInput -} - -export type WritingConnection = Connection & { - __typename?: 'WritingConnection' - edges?: Maybe> - pageInfo: PageInfo - totalCount: Scalars['Int']['output'] -} - -export type WritingEdge = { - __typename?: 'WritingEdge' - cursor: Scalars['String']['output'] - node: Writing -} - -export type WritingInput = { - after?: InputMaybe - first?: InputMaybe -} - -export type AnalyticsUserFragment = { - __typename?: 'User' - id: string - userName?: string | null - info: { __typename?: 'UserInfo'; email?: any | null } -} - -export type VisibleAnnouncementsQueryVariables = Exact<{ - input: AnnouncementsInput -}> - -export type VisibleAnnouncementsQuery = { - __typename?: 'Query' - official: { - __typename?: 'Official' - announcements?: Array<{ - __typename?: 'Announcement' - id: string - title?: string | null - cover?: string | null - content?: string | null - link?: string | null - type: AnnouncementType - visible: boolean - createdAt: any - translations?: Array<{ - __typename?: 'TranslatedAnnouncement' - language: UserLanguage - title?: string | null - cover?: string | null - content?: string | null - link?: any | null - }> | null - }> | null - } -} - -export type ArticleDigestDropdownArticleFragment = { - __typename?: 'Article' - id: string - title: string - slug: string - shortHash: string - state: ArticleState - articleState: ArticleState - author: { - __typename?: 'User' - id: string - userName?: string | null - isBlocking: boolean - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } -} - -export type ArchiveArticleMutationVariables = Exact<{ - id: Scalars['ID']['input'] -}> - -export type ArchiveArticleMutation = { - __typename?: 'Mutation' - editArticle: { - __typename?: 'Article' - id: string - articleState: ArticleState - } -} - -export type ArchiveArticleArticleFragment = { - __typename?: 'Article' - id: string - title: string - articleState: ArticleState - author: { __typename?: 'User'; id: string; userName?: string | null } -} - -export type BanCampaignArticleMutationVariables = Exact<{ - campaign: Scalars['ID']['input'] - articles: Array | Scalars['ID']['input'] -}> - -export type BanCampaignArticleMutation = { - __typename?: 'Mutation' - banCampaignArticles: { __typename?: 'WritingChallenge'; id: string } -} - -export type EditArticleButtonArticleFragment = { - __typename?: 'Article' - id: string - shortHash: string - slug: string - revisionCount: number - author: { __typename?: 'User'; id: string; userName?: string | null } -} - -export type ExtendArticleMutationVariables = Exact<{ - title: Scalars['String']['input'] - collection?: InputMaybe< - | Array> - | InputMaybe - > -}> - -export type ExtendArticleMutation = { - __typename?: 'Mutation' - putDraft: { __typename?: 'Draft'; id: string; slug: string } -} - -export type ExtendButtonArticleFragment = { - __typename?: 'Article' - id: string - articleState: ArticleState -} - -export type TogglePinMutationVariables = Exact<{ - id: Scalars['ID']['input'] - pinned: Scalars['Boolean']['input'] -}> - -export type TogglePinMutation = { - __typename?: 'Mutation' - editArticle: { __typename?: 'Article'; id: string; pinned: boolean } -} - -export type PinButtonArticleFragment = { - __typename?: 'Article' - id: string - pinned: boolean - author: { __typename?: 'User'; id: string; userName?: string | null } -} - -export type GetArticleTopicChannelsQueryVariables = Exact<{ - shortHash: Scalars['String']['input'] -}> - -export type GetArticleTopicChannelsQuery = { - __typename?: 'Query' - article?: { - __typename?: 'Article' - id: string - classification: { - __typename?: 'ArticleClassification' - topicChannel: { - __typename?: 'TopicChannelClassification' - enabled: boolean - channels?: Array<{ - __typename?: 'ArticleTopicChannel' - enabled: boolean - pinned: boolean - channel: { __typename?: 'TopicChannel'; id: string } - }> | null - } - } - } | null - channels: Array< - | { __typename?: 'CurationChannel'; id: string; shortHash: string } - | { __typename?: 'Tag'; id: string; shortHash: string } - | { - __typename?: 'TopicChannel' - name: string - providerId?: string | null - enabled: boolean - id: string - shortHash: string - parent?: { - __typename?: 'TopicChannel' - id: string - name: string - } | null - } - | { __typename?: 'WritingChallenge'; id: string; shortHash: string } - > -} - -export type SetArticleTopicChannelsMutationVariables = Exact<{ - id: Scalars['ID']['input'] - channels: Array | Scalars['ID']['input'] -}> - -export type SetArticleTopicChannelsMutation = { - __typename?: 'Mutation' - setArticleTopicChannels: { - __typename?: 'Article' - id: string - classification: { - __typename?: 'ArticleClassification' - topicChannel: { - __typename?: 'TopicChannelClassification' - enabled: boolean - channels?: Array<{ - __typename?: 'ArticleTopicChannel' - enabled: boolean - pinned: boolean - channel: { __typename?: 'TopicChannel'; id: string } - }> | null - } - } - } -} - -export type SetBottomCollectionMutationVariables = Exact<{ - collectionId: Scalars['ID']['input'] - articleId: Scalars['ID']['input'] - newPosition: Scalars['Int']['input'] -}> - -export type SetBottomCollectionMutation = { - __typename?: 'Mutation' - reorderCollectionArticles: { __typename?: 'Collection'; id: string } -} - -export type SetTopCollectionMutationVariables = Exact<{ - collectionId: Scalars['ID']['input'] - articleId: Scalars['ID']['input'] -}> - -export type SetTopCollectionMutation = { - __typename?: 'Mutation' - reorderCollectionArticles: { __typename?: 'Collection'; id: string } -} - -export type ToggleAdArticleArticleFragment = { - __typename?: 'Article' - id: string - oss: { - __typename?: 'ArticleOSS' - adStatus: { __typename?: 'AdStatus'; isAd?: boolean | null } - } -} - -export type ToggleAdArticleMutationVariables = Exact<{ - articleId: Scalars['ID']['input'] - isAd: Scalars['Boolean']['input'] -}> - -export type ToggleAdArticleMutation = { - __typename?: 'Mutation' - setAdStatus: { - __typename?: 'Article' - id: string - oss: { - __typename?: 'ArticleOSS' - adStatus: { __typename?: 'AdStatus'; isAd?: boolean | null } - } - } -} - -export type FetchArticleAdStatusQueryVariables = Exact<{ - shortHash: Scalars['String']['input'] -}> - -export type FetchArticleAdStatusQuery = { - __typename?: 'Query' - article?: { - __typename?: 'Article' - id: string - oss: { - __typename?: 'ArticleOSS' - adStatus: { __typename?: 'AdStatus'; isAd?: boolean | null } - } - } | null -} - -export type ToggleCampaignFeaturedArticleMutationVariables = Exact<{ - campaign: Scalars['ID']['input'] - articles: Array | Scalars['ID']['input'] - isFeatured: Scalars['Boolean']['input'] -}> - -export type ToggleCampaignFeaturedArticleMutation = { - __typename?: 'Mutation' - toggleWritingChallengeFeaturedArticles: { - __typename?: 'WritingChallenge' - id: string - } -} - -export type ToggleRecommendArticleArticleFragment = { - __typename?: 'Article' - id: string - title: string - oss: { __typename?: 'ArticleOSS'; inRecommendIcymi: boolean } -} - -export type ArticleRecommendAdminQueryVariables = Exact<{ - id: Scalars['ID']['input'] -}> - -export type ArticleRecommendAdminQuery = { - __typename?: 'Query' - article?: - | { - __typename?: 'Article' - id: string - title: string - oss: { __typename?: 'ArticleOSS'; inRecommendIcymi: boolean } - } - | { __typename?: 'ArticleVersion' } - | { __typename?: 'Circle' } - | { __typename?: 'Collection' } - | { __typename?: 'Comment' } - | { __typename?: 'CurationChannel' } - | { __typename?: 'Draft' } - | { __typename?: 'IcymiTopic' } - | { __typename?: 'Moment' } - | { __typename?: 'Report' } - | { __typename?: 'Tag' } - | { __typename?: 'TopicChannel' } - | { __typename?: 'User' } - | { __typename?: 'WritingChallenge' } - | null -} - -export type ToggleRecommendArticleMutationVariables = Exact<{ - id: Scalars['ID']['input'] - enabled: Scalars['Boolean']['input'] - type: RecommendTypes -}> - -export type ToggleRecommendArticleMutation = { - __typename?: 'Mutation' - toggleArticleRecommend: { - __typename?: 'Article' - id: string - oss: { __typename?: 'ArticleOSS'; inRecommendHottest: boolean } - } -} - -export type DropdownActionsArticleFragment = { - __typename?: 'Article' - id: string - shortHash: string - title: string - pinned: boolean - slug: string - revisionCount: number - articleState: ArticleState - author: { - __typename?: 'User' - id: string - displayName?: string | null - userName?: string | null - } - tags?: Array<{ __typename?: 'Tag'; id: string; content: string }> | null - likesReceived: { __typename?: 'AppreciationConnection'; totalCount: number } - donationsDialog: { - __typename?: 'ArticleDonationConnection' - totalCount: number - } -} - -export type ActionsDonationCountArticleFragment = { - __typename?: 'Article' - id: string - donations: { __typename?: 'ArticleDonationConnection'; totalCount: number } -} - -export type ActionsReadTimeArticleFragment = { - __typename?: 'Article' - id: string - readTime: number -} - -export type ActionsResponseCountArticleFragment = { - __typename?: 'Article' - id: string - slug: string - shortHash: string - responseCount: number - articleState: ArticleState - author: { __typename?: 'User'; userName?: string | null } -} - -export type FooterActionsArticlePublicFragment = { - __typename?: 'Article' - id: string - title: string - slug: string - shortHash: string - createdAt: any - readTime: number - pinned: boolean - revisionCount: number - articleState: ArticleState - author: { - __typename?: 'User' - id: string - displayName?: string | null - userName?: string | null - } - access: { - __typename?: 'ArticleAccess' - type: ArticleAccessType - circle?: { - __typename?: 'Circle' - id: string - name: string - displayName: string - } | null - } - collections: { - __typename?: 'CollectionConnection' - edges?: Array<{ - __typename?: 'CollectionEdge' - node: { - __typename?: 'Collection' - id: string - title: string - articles: { __typename?: 'ArticleConnection'; totalCount: number } - } - }> | null - } - campaigns: Array<{ - __typename?: 'ArticleCampaign' - campaign: { - __typename?: 'WritingChallenge' - id: string - name: string - shortHash: string - nameZhHant: string - nameZhHans: string - nameEn: string - } - stage?: { __typename?: 'CampaignStage'; id: string } | null - }> - tags?: Array<{ __typename?: 'Tag'; id: string; content: string }> | null - donations: { __typename?: 'ArticleDonationConnection'; totalCount: number } - likesReceived: { __typename?: 'AppreciationConnection'; totalCount: number } - donationsDialog: { - __typename?: 'ArticleDonationConnection' - totalCount: number - } -} - -export type FooterActionsArticlePrivateFragment = { - __typename?: 'Article' - id: string - bookmarked: boolean -} - -export type ArticleDigestFeedArticlePublicFragment = { - __typename?: 'Article' - id: string - title: string - slug: string - shortHash: string - displayCover?: string | null - summary: string - createdAt: any - readTime: number - pinned: boolean - revisionCount: number - articleState: ArticleState - author: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - access: { - __typename?: 'ArticleAccess' - type: ArticleAccessType - circle?: { - __typename?: 'Circle' - id: string - name: string - displayName: string - } | null - } - collections: { - __typename?: 'CollectionConnection' - edges?: Array<{ - __typename?: 'CollectionEdge' - node: { - __typename?: 'Collection' - id: string - title: string - articles: { __typename?: 'ArticleConnection'; totalCount: number } - } - }> | null - } - campaigns: Array<{ - __typename?: 'ArticleCampaign' - campaign: { - __typename?: 'WritingChallenge' - id: string - name: string - shortHash: string - nameZhHant: string - nameZhHans: string - nameEn: string - } - stage?: { __typename?: 'CampaignStage'; id: string } | null - }> - tags?: Array<{ __typename?: 'Tag'; id: string; content: string }> | null - donations: { __typename?: 'ArticleDonationConnection'; totalCount: number } - likesReceived: { __typename?: 'AppreciationConnection'; totalCount: number } - donationsDialog: { - __typename?: 'ArticleDonationConnection' - totalCount: number - } -} - -export type ArticleDigestFeedArticlePrivateFragment = { - __typename?: 'Article' - id: string - bookmarked: boolean -} - -export type ArticleDigestListArticleFragment = { - __typename?: 'Article' - id: string - title: string - slug: string - shortHash: string - articleState: ArticleState - author: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } -} - -export type ArticleDigestNoticeArticleFragment = { - __typename?: 'Article' - id: string - summary: string - title: string - slug: string - shortHash: string - articleState: ArticleState - author: { __typename?: 'User'; id: string; userName?: string | null } -} - -export type ArticleDigestNoticeCardArticleFragment = { - __typename?: 'Article' - id: string - summary: string - title: string - slug: string - shortHash: string - articleState: ArticleState - author: { __typename?: 'User'; id: string; userName?: string | null } -} - -export type ArticleDigestTitleArticleFragment = { - __typename?: 'Article' - id: string - title: string - slug: string - shortHash: string - articleState: ArticleState - author: { __typename?: 'User'; id: string; userName?: string | null } -} - -export type AvatarUserFragment = { - __typename?: 'User' - avatar?: string | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - } -} - -export type AvatarUserLogbookFragment = { - __typename?: 'User' - info: { - __typename?: 'UserInfo' - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } -} - -export type BlockUserPublicFragment = { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null -} - -export type BlockUserPrivateFragment = { - __typename?: 'User' - id: string - isBlocked: boolean -} - -export type BookmarkArticlePrivateFragment = { - __typename?: 'Article' - id: string - bookmarked: boolean -} - -export type FollowStateUserPrivateFragment = { - __typename?: 'User' - id: string - isFollower: boolean - isFollowee: boolean -} - -export type FollowButtonUserPrivateFragment = { - __typename?: 'User' - id: string - isFollower: boolean - isFollowee: boolean - status?: { __typename?: 'UserStatus'; state: UserState } | null -} - -export type TagBookmarkButtonTagPrivateFragment = { - __typename?: 'Tag' - id: string - isFollower?: boolean | null -} - -export type CampaignDigestCardCampaignFragment = { - __typename?: 'WritingChallenge' - id: string - cover?: string | null - shortHash: string - description?: string | null - nameZhHant: string - nameZhHans: string - nameEn: string - stages: Array<{ - __typename?: 'CampaignStage' - id: string - nameZhHant: string - nameZhHans: string - nameEn: string - period?: { - __typename?: 'DatetimeRange' - start: any - end?: any | null - } | null - }> - applicationPeriod?: { - __typename?: 'DatetimeRange' - start: any - end?: any | null - } | null - writingPeriod?: { - __typename?: 'DatetimeRange' - start: any - end?: any | null - } | null - participants: { - __typename?: 'CampaignParticipantConnection' - totalCount: number - edges?: Array<{ - __typename?: 'CampaignParticipantEdge' - node: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - }> | null - } - organizers: Array<{ - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - }> -} - -export type CampaignDigestFeedCampaignFragment = { - __typename?: 'WritingChallenge' - id: string - cover?: string | null - shortHash: string - description?: string | null - nameZhHant: string - nameZhHans: string - nameEn: string - applicationPeriod?: { - __typename?: 'DatetimeRange' - start: any - end?: any | null - } | null - writingPeriod?: { - __typename?: 'DatetimeRange' - start: any - end?: any | null - } | null - organizers: Array<{ - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - }> -} - -export type CampaignDigestMiniCampaignFragment = { - __typename?: 'WritingChallenge' - id: string - cover?: string | null - shortHash: string - nameZhHant: string - nameZhHans: string - nameEn: string -} - -export type CampaignDigestTitleCampaignFragment = { - __typename?: 'WritingChallenge' - id: string - shortHash: string - nameZhHant: string - nameZhHans: string - nameEn: string -} - -export type AvatarCircleFragment = { - __typename?: 'Circle' - avatar?: string | null -} - -export type CircleCommentContentCommentPublicFragment = { - __typename?: 'Comment' - id: string - content?: string | null - state: CommentState -} - -export type CircleCommentContentCommentPrivateFragment = { - __typename?: 'Comment' - id: string - author: { __typename?: 'User'; id: string; isBlocked: boolean } -} - -export type CreatedAtCommentFragment = { - __typename?: 'Comment' - id: string - type: CommentType - createdAt: any - parentComment?: { __typename?: 'Comment'; id: string } | null - node: - | { __typename?: 'Article' } - | { __typename?: 'ArticleVersion' } - | { __typename?: 'Circle'; id: string; name: string } - | { __typename?: 'Collection' } - | { __typename?: 'Comment' } - | { __typename?: 'CurationChannel' } - | { __typename?: 'Draft' } - | { __typename?: 'IcymiTopic' } - | { __typename?: 'Moment' } - | { __typename?: 'Report' } - | { __typename?: 'Tag' } - | { __typename?: 'TopicChannel' } - | { __typename?: 'User' } - | { __typename?: 'WritingChallenge' } -} - -export type CollapseCommentMutationVariables = Exact<{ - id: Scalars['ID']['input'] - state: CommentState -}> - -export type CollapseCommentMutation = { - __typename?: 'Mutation' - updateCommentsState: Array<{ - __typename?: 'Comment' - id: string - state: CommentState - }> -} - -export type DeleteCircleCommentMutationVariables = Exact<{ - id: Scalars['ID']['input'] -}> - -export type DeleteCircleCommentMutation = { - __typename?: 'Mutation' - deleteComment: { __typename?: 'Comment'; id: string; state: CommentState } -} - -export type CircleCommentPinButtonCommentFragment = { - __typename?: 'Comment' - id: string - pinned: boolean - node: - | { __typename?: 'Article' } - | { __typename?: 'ArticleVersion' } - | { __typename?: 'Circle'; id: string; name: string } - | { __typename?: 'Collection' } - | { __typename?: 'Comment' } - | { __typename?: 'CurationChannel' } - | { __typename?: 'Draft' } - | { __typename?: 'IcymiTopic' } - | { __typename?: 'Moment' } - | { __typename?: 'Report' } - | { __typename?: 'Tag' } - | { __typename?: 'TopicChannel' } - | { __typename?: 'User' } - | { __typename?: 'WritingChallenge' } -} - -export type UncollapseCommentMutationVariables = Exact<{ - id: Scalars['ID']['input'] - state: CommentState -}> - -export type UncollapseCommentMutation = { - __typename?: 'Mutation' - updateCommentsState: Array<{ - __typename?: 'Comment' - id: string - state: CommentState - }> -} - -export type CircleCommentDropdownActionsCommentPublicFragment = { - __typename?: 'Comment' - id: string - state: CommentState - content?: string | null - pinned: boolean - author: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - } - parentComment?: { __typename?: 'Comment'; id: string } | null - node: - | { __typename?: 'Article' } - | { __typename?: 'ArticleVersion' } - | { - __typename?: 'Circle' - id: string - name: string - owner: { __typename?: 'User'; id: string } - } - | { __typename?: 'Collection' } - | { __typename?: 'Comment' } - | { __typename?: 'CurationChannel' } - | { __typename?: 'Draft' } - | { __typename?: 'IcymiTopic' } - | { __typename?: 'Moment' } - | { __typename?: 'Report' } - | { __typename?: 'Tag' } - | { __typename?: 'TopicChannel' } - | { __typename?: 'User' } - | { __typename?: 'WritingChallenge' } -} - -export type CircleCommentDropdownActionsCommentPrivateFragment = { - __typename?: 'Comment' - id: string - author: { __typename?: 'User'; id: string; isBlocked: boolean } - node: - | { __typename?: 'Article' } - | { __typename?: 'ArticleVersion' } - | { - __typename?: 'Circle' - id: string - owner: { __typename?: 'User'; id: string; isBlocking: boolean } - } - | { __typename?: 'Collection' } - | { __typename?: 'Comment' } - | { __typename?: 'CurationChannel' } - | { __typename?: 'Draft' } - | { __typename?: 'IcymiTopic' } - | { __typename?: 'Moment' } - | { __typename?: 'Report' } - | { __typename?: 'Tag' } - | { __typename?: 'TopicChannel' } - | { __typename?: 'User' } - | { __typename?: 'WritingChallenge' } -} - -export type CircleCommentFeedCommentPublicFragment = { - __typename?: 'Comment' - id: string - state: CommentState - content?: string | null - type: CommentType - createdAt: any - upvotes: number - downvotes: number - pinned: boolean - author: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - replyTo?: { - __typename?: 'Comment' - id: string - author: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - } | null - parentComment?: { __typename?: 'Comment'; id: string } | null - node: - | { __typename?: 'Article' } - | { __typename?: 'ArticleVersion' } - | { - __typename?: 'Circle' - id: string - name: string - owner: { __typename?: 'User'; id: string } - } - | { __typename?: 'Collection' } - | { __typename?: 'Comment' } - | { __typename?: 'CurationChannel' } - | { __typename?: 'Draft' } - | { __typename?: 'IcymiTopic' } - | { __typename?: 'Moment' } - | { __typename?: 'Report' } - | { __typename?: 'Tag' } - | { __typename?: 'TopicChannel' } - | { __typename?: 'User' } - | { __typename?: 'WritingChallenge' } -} - -export type CircleCommentFeedCommentPrivateFragment = { - __typename?: 'Comment' - id: string - myVote?: Vote | null - type: CommentType - createdAt: any - node: - | { __typename?: 'Article' } - | { __typename?: 'ArticleVersion' } - | { - __typename?: 'Circle' - id: string - name: string - owner: { __typename?: 'User'; id: string; isBlocking: boolean } - } - | { __typename?: 'Collection' } - | { __typename?: 'Comment' } - | { __typename?: 'CurationChannel' } - | { __typename?: 'Draft' } - | { __typename?: 'IcymiTopic' } - | { __typename?: 'Moment' } - | { __typename?: 'Report' } - | { __typename?: 'Tag' } - | { __typename?: 'TopicChannel' } - | { __typename?: 'User' } - | { __typename?: 'WritingChallenge' } - author: { __typename?: 'User'; id: string; isBlocked: boolean } - parentComment?: { __typename?: 'Comment'; id: string } | null -} - -export type RefetchCircleCommentQueryVariables = Exact<{ - id: Scalars['ID']['input'] -}> - -export type RefetchCircleCommentQuery = { - __typename?: 'Query' - node?: - | { __typename?: 'Article' } - | { __typename?: 'ArticleVersion' } - | { __typename?: 'Circle' } - | { __typename?: 'Collection' } - | { - __typename?: 'Comment' - id: string - state: CommentState - content?: string | null - type: CommentType - createdAt: any - upvotes: number - downvotes: number - pinned: boolean - myVote?: Vote | null - comments: { - __typename?: 'CommentConnection' - edges?: Array<{ - __typename?: 'CommentEdge' - cursor: string - node: { - __typename?: 'Comment' - id: string - state: CommentState - content?: string | null - type: CommentType - createdAt: any - upvotes: number - downvotes: number - pinned: boolean - myVote?: Vote | null - author: { - __typename?: 'User' - id: string - isBlocked: boolean - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ - __typename?: 'Badge' - type: BadgeType - }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - replyTo?: { - __typename?: 'Comment' - id: string - author: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { - __typename?: 'UserStatus' - state: UserState - } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ - __typename?: 'Badge' - type: BadgeType - }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - } | null - parentComment?: { __typename?: 'Comment'; id: string } | null - node: - | { __typename?: 'Article' } - | { __typename?: 'ArticleVersion' } - | { - __typename?: 'Circle' - id: string - name: string - owner: { - __typename?: 'User' - id: string - isBlocking: boolean - } - } - | { __typename?: 'Collection' } - | { __typename?: 'Comment' } - | { __typename?: 'CurationChannel' } - | { __typename?: 'Draft' } - | { __typename?: 'IcymiTopic' } - | { __typename?: 'Moment' } - | { __typename?: 'Report' } - | { __typename?: 'Tag' } - | { __typename?: 'TopicChannel' } - | { __typename?: 'User' } - | { __typename?: 'WritingChallenge' } - } - }> | null - } - author: { - __typename?: 'User' - id: string - isBlocked: boolean - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - replyTo?: { - __typename?: 'Comment' - id: string - author: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - } | null - parentComment?: { __typename?: 'Comment'; id: string } | null - node: - | { __typename?: 'Article' } - | { __typename?: 'ArticleVersion' } - | { - __typename?: 'Circle' - id: string - name: string - owner: { __typename?: 'User'; id: string; isBlocking: boolean } - } - | { __typename?: 'Collection' } - | { __typename?: 'Comment' } - | { __typename?: 'CurationChannel' } - | { __typename?: 'Draft' } - | { __typename?: 'IcymiTopic' } - | { __typename?: 'Moment' } - | { __typename?: 'Report' } - | { __typename?: 'Tag' } - | { __typename?: 'TopicChannel' } - | { __typename?: 'User' } - | { __typename?: 'WritingChallenge' } - } - | { __typename?: 'CurationChannel' } - | { __typename?: 'Draft' } - | { __typename?: 'IcymiTopic' } - | { __typename?: 'Moment' } - | { __typename?: 'Report' } - | { __typename?: 'Tag' } - | { __typename?: 'TopicChannel' } - | { __typename?: 'User' } - | { __typename?: 'WritingChallenge' } - | null -} - -export type CircleCommentDownvoteCommentPublicFragment = { - __typename?: 'Comment' - id: string - upvotes: number - downvotes: number -} - -export type CircleCommentDownvoteCommentPrivateFragment = { - __typename?: 'Comment' - id: string - myVote?: Vote | null -} - -export type CircleCommentReplyComemntFragment = { - __typename?: 'Comment' - id: string - state: CommentState - author: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - node: - | { __typename?: 'Article' } - | { __typename?: 'ArticleVersion' } - | { - __typename?: 'Circle' - id: string - owner: { __typename?: 'User'; id: string } - } - | { __typename?: 'Collection' } - | { __typename?: 'Comment' } - | { __typename?: 'CurationChannel' } - | { __typename?: 'Draft' } - | { __typename?: 'IcymiTopic' } - | { __typename?: 'Moment' } - | { __typename?: 'Report' } - | { __typename?: 'Tag' } - | { __typename?: 'TopicChannel' } - | { __typename?: 'User' } - | { __typename?: 'WritingChallenge' } - parentComment?: { __typename?: 'Comment'; id: string } | null -} - -export type CircleCommentUpvoteCommentPublicFragment = { - __typename?: 'Comment' - id: string - upvotes: number - downvotes: number -} - -export type CircleCommentUpvoteCommentPrivateFragment = { - __typename?: 'Comment' - id: string - myVote?: Vote | null -} - -export type CircleCommentFooterActionsCommentPublicFragment = { - __typename?: 'Comment' - id: string - state: CommentState - type: CommentType - createdAt: any - upvotes: number - downvotes: number - parentComment?: { __typename?: 'Comment'; id: string } | null - node: - | { __typename?: 'Article' } - | { __typename?: 'ArticleVersion' } - | { - __typename?: 'Circle' - id: string - name: string - owner: { __typename?: 'User'; id: string } - } - | { __typename?: 'Collection' } - | { __typename?: 'Comment' } - | { __typename?: 'CurationChannel' } - | { __typename?: 'Draft' } - | { __typename?: 'IcymiTopic' } - | { __typename?: 'Moment' } - | { __typename?: 'Report' } - | { __typename?: 'Tag' } - | { __typename?: 'TopicChannel' } - | { __typename?: 'User' } - | { __typename?: 'WritingChallenge' } - author: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } -} - -export type CircleCommentFooterActionsCommentPrivateFragment = { - __typename?: 'Comment' - id: string - myVote?: Vote | null - type: CommentType - createdAt: any - node: - | { __typename?: 'Article' } - | { __typename?: 'ArticleVersion' } - | { - __typename?: 'Circle' - id: string - name: string - owner: { __typename?: 'User'; id: string; isBlocking: boolean } - } - | { __typename?: 'Collection' } - | { __typename?: 'Comment' } - | { __typename?: 'CurationChannel' } - | { __typename?: 'Draft' } - | { __typename?: 'IcymiTopic' } - | { __typename?: 'Moment' } - | { __typename?: 'Report' } - | { __typename?: 'Tag' } - | { __typename?: 'TopicChannel' } - | { __typename?: 'User' } - | { __typename?: 'WritingChallenge' } - parentComment?: { __typename?: 'Comment'; id: string } | null -} - -export type ReplyToUserFragment = { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } -} - -export type CircleCommentThreadCommentCommentPublicFragment = { - __typename?: 'Comment' - id: string - state: CommentState - content?: string | null - type: CommentType - createdAt: any - upvotes: number - downvotes: number - pinned: boolean - comments: { - __typename?: 'CommentConnection' - edges?: Array<{ - __typename?: 'CommentEdge' - cursor: string - node: { - __typename?: 'Comment' - id: string - state: CommentState - content?: string | null - type: CommentType - createdAt: any - upvotes: number - downvotes: number - pinned: boolean - author: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - replyTo?: { - __typename?: 'Comment' - id: string - author: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - } | null - parentComment?: { __typename?: 'Comment'; id: string } | null - node: - | { __typename?: 'Article' } - | { __typename?: 'ArticleVersion' } - | { - __typename?: 'Circle' - id: string - name: string - owner: { __typename?: 'User'; id: string } - } - | { __typename?: 'Collection' } - | { __typename?: 'Comment' } - | { __typename?: 'CurationChannel' } - | { __typename?: 'Draft' } - | { __typename?: 'IcymiTopic' } - | { __typename?: 'Moment' } - | { __typename?: 'Report' } - | { __typename?: 'Tag' } - | { __typename?: 'TopicChannel' } - | { __typename?: 'User' } - | { __typename?: 'WritingChallenge' } - } - }> | null - } - author: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - replyTo?: { - __typename?: 'Comment' - id: string - author: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - } | null - parentComment?: { __typename?: 'Comment'; id: string } | null - node: - | { __typename?: 'Article' } - | { __typename?: 'ArticleVersion' } - | { - __typename?: 'Circle' - id: string - name: string - owner: { __typename?: 'User'; id: string } - } - | { __typename?: 'Collection' } - | { __typename?: 'Comment' } - | { __typename?: 'CurationChannel' } - | { __typename?: 'Draft' } - | { __typename?: 'IcymiTopic' } - | { __typename?: 'Moment' } - | { __typename?: 'Report' } - | { __typename?: 'Tag' } - | { __typename?: 'TopicChannel' } - | { __typename?: 'User' } - | { __typename?: 'WritingChallenge' } -} - -export type CircleCommentThreadCommentCommentPrivateFragment = { - __typename?: 'Comment' - id: string - myVote?: Vote | null - type: CommentType - createdAt: any - comments: { - __typename?: 'CommentConnection' - edges?: Array<{ - __typename?: 'CommentEdge' - cursor: string - node: { - __typename?: 'Comment' - id: string - myVote?: Vote | null - type: CommentType - createdAt: any - node: - | { __typename?: 'Article' } - | { __typename?: 'ArticleVersion' } - | { - __typename?: 'Circle' - id: string - name: string - owner: { __typename?: 'User'; id: string; isBlocking: boolean } - } - | { __typename?: 'Collection' } - | { __typename?: 'Comment' } - | { __typename?: 'CurationChannel' } - | { __typename?: 'Draft' } - | { __typename?: 'IcymiTopic' } - | { __typename?: 'Moment' } - | { __typename?: 'Report' } - | { __typename?: 'Tag' } - | { __typename?: 'TopicChannel' } - | { __typename?: 'User' } - | { __typename?: 'WritingChallenge' } - author: { __typename?: 'User'; id: string; isBlocked: boolean } - parentComment?: { __typename?: 'Comment'; id: string } | null - } - }> | null - } - node: - | { __typename?: 'Article' } - | { __typename?: 'ArticleVersion' } - | { - __typename?: 'Circle' - id: string - name: string - owner: { __typename?: 'User'; id: string; isBlocking: boolean } - } - | { __typename?: 'Collection' } - | { __typename?: 'Comment' } - | { __typename?: 'CurationChannel' } - | { __typename?: 'Draft' } - | { __typename?: 'IcymiTopic' } - | { __typename?: 'Moment' } - | { __typename?: 'Report' } - | { __typename?: 'Tag' } - | { __typename?: 'TopicChannel' } - | { __typename?: 'User' } - | { __typename?: 'WritingChallenge' } - author: { __typename?: 'User'; id: string; isBlocked: boolean } - parentComment?: { __typename?: 'Comment'; id: string } | null -} - -export type CountsCircleFragment = { - __typename?: 'Circle' - id: string - members: { __typename?: 'MemberConnection'; totalCount: number } - works: { __typename?: 'ArticleConnection'; totalCount: number } -} - -export type DigestMiniCircleFragment = { - __typename?: 'Circle' - id: string - name: string - displayName: string - description?: string | null - avatar?: string | null - members: { __typename?: 'MemberConnection'; totalCount: number } - works: { __typename?: 'ArticleConnection'; totalCount: number } -} - -export type DigestPlainCircleFragment = { - __typename?: 'Circle' - id: string - name: string - displayName: string -} - -export type PriceCirclePublicFragment = { - __typename?: 'Circle' - id: string - name: string - prices?: Array<{ - __typename?: 'Price' - amount: number - currency: TransactionCurrency - }> | null -} - -export type PriceCirclePrivateFragment = { - __typename?: 'Circle' - id: string - isMember: boolean - invitedBy?: { - __typename?: 'Invitation' - id: string - state: InvitationState - freePeriod: number - } | null -} - -export type FooterCirclePublicFragment = { - __typename?: 'Circle' - id: string - name: string - members: { __typename?: 'MemberConnection'; totalCount: number } - works: { __typename?: 'ArticleConnection'; totalCount: number } - prices?: Array<{ - __typename?: 'Price' - amount: number - currency: TransactionCurrency - }> | null -} - -export type FooterCirclePrivateFragment = { - __typename?: 'Circle' - id: string - isMember: boolean - invitedBy?: { - __typename?: 'Invitation' - id: string - state: InvitationState - freePeriod: number - } | null -} - -export type DigestRichCirclePublicFragment = { - __typename?: 'Circle' - id: string - name: string - displayName: string - description?: string | null - avatar?: string | null - owner: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - members: { __typename?: 'MemberConnection'; totalCount: number } - works: { __typename?: 'ArticleConnection'; totalCount: number } - prices?: Array<{ - __typename?: 'Price' - amount: number - currency: TransactionCurrency - }> | null -} - -export type DigestRichCirclePrivateFragment = { - __typename?: 'Circle' - id: string - isMember: boolean - invitedBy?: { - __typename?: 'Invitation' - id: string - state: InvitationState - freePeriod: number - } | null -} - -export type DigestTitleCircleFragment = { - __typename?: 'Circle' - id: string - name: string - displayName: string -} - -export type CollectionDigestAuthorSidebarCollectionFragment = { - __typename?: 'Collection' - id: string - title: string - cover?: string | null - author: { __typename?: 'User'; id: string; userName?: string | null } - articles: { __typename?: 'ArticleConnection'; totalCount: number } -} - -export type DeleteCollectionMutationVariables = Exact<{ - id: Scalars['ID']['input'] -}> - -export type DeleteCollectionMutation = { - __typename?: 'Mutation' - deleteCollections: boolean -} - -export type ViewerTabsCountQueryVariables = Exact<{ [key: string]: never }> - -export type ViewerTabsCountQuery = { - __typename?: 'Query' - viewer?: { - __typename?: 'User' - id: string - status?: { __typename?: 'UserStatus'; articleCount: number } | null - collections: { __typename?: 'CollectionConnection'; totalCount: number } - } | null -} - -export type DeleteCollectionCollectionFragment = { - __typename?: 'Collection' - id: string - title: string - author: { __typename?: 'User'; id: string; userName?: string | null } -} - -export type PutCollectionMutationVariables = Exact<{ - input: PutCollectionInput -}> - -export type PutCollectionMutation = { - __typename?: 'Mutation' - putCollection: { - __typename?: 'Collection' - id: string - title: string - description?: string | null - cover?: string | null - } -} - -export type EditCollectionCollectionFragment = { - __typename?: 'Collection' - id: string - title: string - description?: string | null - cover?: string | null -} - -export type TogglePinWorkMutationVariables = Exact<{ - id: Scalars['ID']['input'] - pinned: Scalars['Boolean']['input'] -}> - -export type TogglePinWorkMutation = { - __typename?: 'Mutation' - putCollection: { __typename?: 'Collection'; id: string; pinned: boolean } -} - -export type PinButtonCollectionFragment = { - __typename?: 'Collection' - id: string - pinned: boolean - author: { __typename?: 'User'; id: string; userName?: string | null } -} - -export type DropdownActionsCollectionFragment = { - __typename?: 'Collection' - id: string - pinned: boolean - title: string - description?: string | null - cover?: string | null - author: { __typename?: 'User'; id: string; userName?: string | null } -} - -export type CollectionDigestFeedCollectionFragment = { - __typename?: 'Collection' - id: string - title: string - description?: string | null - cover?: string | null - updatedAt: any - pinned: boolean - author: { - __typename?: 'User' - id: string - displayName?: string | null - userName?: string | null - } - articles: { __typename?: 'ArticleConnection'; totalCount: number } -} - -export type CommentContentCommentPublicFragment = { - __typename?: 'Comment' - id: string - content?: string | null - state: CommentState - communityWatchAction?: { - __typename?: 'CommunityWatchAction' - uuid: string - } | null -} - -export type CommentContentCommentPrivateFragment = { - __typename?: 'Comment' - id: string - author: { __typename?: 'User'; id: string; isBlocked: boolean } -} - -export type RestoreCommunityWatchCommentMutationVariables = Exact<{ - uuid: Scalars['ID']['input'] - note?: InputMaybe -}> - -export type RestoreCommunityWatchCommentMutation = { - __typename?: 'Mutation' - restoreCommunityWatchComment: { - __typename?: 'CommunityWatchAction' - uuid: string - actionState: CommunityWatchActionState - reviewState: CommunityWatchReviewState - commentId: string - } -} - -export type CommunityWatchRemoveCommentMutationVariables = Exact<{ - id: Scalars['ID']['input'] - reason: CommunityWatchRemoveCommentReason -}> - -export type CommunityWatchRemoveCommentMutation = { - __typename?: 'Mutation' - communityWatchRemoveComment: { - __typename?: 'Comment' - id: string - state: CommentState - communityWatchAction?: { - __typename?: 'CommunityWatchAction' - uuid: string - reason: CommunityWatchRemoveCommentReason - createdAt: any - } | null - } -} - -export type DeleteCommentMutationVariables = Exact<{ - id: Scalars['ID']['input'] -}> - -export type DeleteCommentMutation = { - __typename?: 'Mutation' - deleteComment: { - __typename?: 'Comment' - id: string - state: CommentState - node: - | { __typename?: 'Article'; id: string } - | { __typename?: 'ArticleVersion'; id: string } - | { __typename?: 'Circle'; id: string } - | { __typename?: 'Collection'; id: string } - | { __typename?: 'Comment'; id: string } - | { __typename?: 'CurationChannel'; id: string } - | { __typename?: 'Draft'; id: string } - | { __typename?: 'IcymiTopic'; id: string } - | { __typename?: 'Moment'; id: string; commentCount: number } - | { __typename?: 'Report'; id: string } - | { __typename?: 'Tag'; id: string } - | { __typename?: 'TopicChannel'; id: string } - | { __typename?: 'User'; id: string } - | { __typename?: 'WritingChallenge'; id: string } - } -} - -export type CommentPinButtonCommentFragment = { - __typename?: 'Comment' - id: string - pinned: boolean - node: - | { __typename?: 'Article'; id: string; pinCommentLeft: number } - | { __typename?: 'ArticleVersion' } - | { __typename?: 'Circle' } - | { __typename?: 'Collection' } - | { __typename?: 'Comment' } - | { __typename?: 'CurationChannel' } - | { __typename?: 'Draft' } - | { __typename?: 'IcymiTopic' } - | { __typename?: 'Moment' } - | { __typename?: 'Report' } - | { __typename?: 'Tag' } - | { __typename?: 'TopicChannel' } - | { __typename?: 'User' } - | { __typename?: 'WritingChallenge' } -} - -export type CommentDropdownActionsCommentPublicFragment = { - __typename?: 'Comment' - id: string - type: CommentType - state: CommentState - content?: string | null - pinned: boolean - author: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - } - parentComment?: { __typename?: 'Comment'; id: string } | null - dropdownComments: { __typename?: 'CommentConnection'; totalCount: number } - node: - | { - __typename?: 'Article' - id: string - shortHash: string - commentCount: number - pinCommentLeft: number - author: { __typename?: 'User'; id: string; userName?: string | null } - } - | { __typename?: 'ArticleVersion' } - | { __typename?: 'Circle' } - | { __typename?: 'Collection' } - | { __typename?: 'Comment' } - | { __typename?: 'CurationChannel' } - | { __typename?: 'Draft' } - | { __typename?: 'IcymiTopic' } - | { - __typename?: 'Moment' - id: string - shortHash: string - commentCount: number - author: { __typename?: 'User'; id: string; userName?: string | null } - } - | { __typename?: 'Report' } - | { __typename?: 'Tag' } - | { __typename?: 'TopicChannel' } - | { __typename?: 'User' } - | { __typename?: 'WritingChallenge' } -} - -export type CommentDropdownActionsCommentPrivateFragment = { - __typename?: 'Comment' - id: string - author: { __typename?: 'User'; id: string; isBlocked: boolean } - node: - | { - __typename?: 'Article' - id: string - author: { - __typename?: 'User' - id: string - userName?: string | null - isBlocking: boolean - } - } - | { __typename?: 'ArticleVersion' } - | { __typename?: 'Circle' } - | { __typename?: 'Collection' } - | { __typename?: 'Comment' } - | { __typename?: 'CurationChannel' } - | { __typename?: 'Draft' } - | { __typename?: 'IcymiTopic' } - | { - __typename?: 'Moment' - id: string - shortHash: string - author: { - __typename?: 'User' - id: string - userName?: string | null - isBlocking: boolean - } - } - | { __typename?: 'Report' } - | { __typename?: 'Tag' } - | { __typename?: 'TopicChannel' } - | { __typename?: 'User' } - | { __typename?: 'WritingChallenge' } -} - -export type CommentFeedCommentPublicFragment = { - __typename?: 'Comment' - id: string - type: CommentType - createdAt: any - fromDonator: boolean - pinned: boolean - state: CommentState - content?: string | null - upvotes: number - author: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - replyTo?: { - __typename?: 'Comment' - id: string - author: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - } | null - node: - | { - __typename?: 'Article' - id: string - shortHash: string - commentCount: number - pinCommentLeft: number - author: { __typename?: 'User'; id: string; userName?: string | null } - } - | { __typename?: 'ArticleVersion' } - | { __typename?: 'Circle' } - | { __typename?: 'Collection' } - | { __typename?: 'Comment' } - | { __typename?: 'CurationChannel' } - | { __typename?: 'Draft' } - | { __typename?: 'IcymiTopic' } - | { - __typename?: 'Moment' - id: string - shortHash: string - commentCount: number - author: { __typename?: 'User'; id: string; userName?: string | null } - } - | { __typename?: 'Report' } - | { __typename?: 'Tag' } - | { __typename?: 'TopicChannel' } - | { __typename?: 'User' } - | { __typename?: 'WritingChallenge' } - parentComment?: { __typename?: 'Comment'; id: string } | null - dropdownComments: { __typename?: 'CommentConnection'; totalCount: number } - communityWatchAction?: { - __typename?: 'CommunityWatchAction' - uuid: string - } | null -} - -export type CommentFeedCommentPrivateFragment = { - __typename?: 'Comment' - id: string - myVote?: Vote | null - node: - | { - __typename?: 'Article' - id: string - commentCount: number - author: { - __typename?: 'User' - id: string - isBlocking: boolean - userName?: string | null - } - } - | { __typename?: 'ArticleVersion' } - | { __typename?: 'Circle' } - | { __typename?: 'Collection' } - | { __typename?: 'Comment' } - | { __typename?: 'CurationChannel' } - | { __typename?: 'Draft' } - | { __typename?: 'IcymiTopic' } - | { - __typename?: 'Moment' - id: string - commentCount: number - shortHash: string - author: { - __typename?: 'User' - id: string - isBlocking: boolean - userName?: string | null - } - } - | { __typename?: 'Report' } - | { __typename?: 'Tag' } - | { __typename?: 'TopicChannel' } - | { __typename?: 'User' } - | { __typename?: 'WritingChallenge' } - author: { __typename?: 'User'; id: string; isBlocked: boolean } -} - -export type RefetchArticleCommentQueryVariables = Exact<{ - id: Scalars['ID']['input'] -}> - -export type RefetchArticleCommentQuery = { - __typename?: 'Query' - node?: - | { __typename?: 'Article' } - | { __typename?: 'ArticleVersion' } - | { __typename?: 'Circle' } - | { __typename?: 'Collection' } - | { - __typename?: 'Comment' - id: string - type: CommentType - createdAt: any - fromDonator: boolean - pinned: boolean - state: CommentState - content?: string | null - upvotes: number - myVote?: Vote | null - comments: { - __typename?: 'CommentConnection' - edges?: Array<{ - __typename?: 'CommentEdge' - cursor: string - node: { - __typename?: 'Comment' - id: string - type: CommentType - createdAt: any - fromDonator: boolean - pinned: boolean - state: CommentState - content?: string | null - upvotes: number - myVote?: Vote | null - author: { - __typename?: 'User' - id: string - isBlocked: boolean - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ - __typename?: 'Badge' - type: BadgeType - }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - replyTo?: { - __typename?: 'Comment' - id: string - author: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { - __typename?: 'UserStatus' - state: UserState - } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ - __typename?: 'Badge' - type: BadgeType - }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - } | null - node: - | { - __typename?: 'Article' - id: string - shortHash: string - commentCount: number - pinCommentLeft: number - author: { - __typename?: 'User' - id: string - isBlocking: boolean - userName?: string | null - } - } - | { __typename?: 'ArticleVersion' } - | { __typename?: 'Circle' } - | { __typename?: 'Collection' } - | { __typename?: 'Comment' } - | { __typename?: 'CurationChannel' } - | { __typename?: 'Draft' } - | { __typename?: 'IcymiTopic' } - | { - __typename?: 'Moment' - id: string - shortHash: string - commentCount: number - author: { - __typename?: 'User' - id: string - isBlocking: boolean - userName?: string | null - } - } - | { __typename?: 'Report' } - | { __typename?: 'Tag' } - | { __typename?: 'TopicChannel' } - | { __typename?: 'User' } - | { __typename?: 'WritingChallenge' } - parentComment?: { __typename?: 'Comment'; id: string } | null - dropdownComments: { - __typename?: 'CommentConnection' - totalCount: number - } - communityWatchAction?: { - __typename?: 'CommunityWatchAction' - uuid: string - } | null - } - }> | null - } - author: { - __typename?: 'User' - id: string - isBlocked: boolean - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - replyTo?: { - __typename?: 'Comment' - id: string - author: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - } | null - node: - | { - __typename?: 'Article' - id: string - shortHash: string - commentCount: number - pinCommentLeft: number - author: { - __typename?: 'User' - id: string - isBlocking: boolean - userName?: string | null - } - } - | { __typename?: 'ArticleVersion' } - | { __typename?: 'Circle' } - | { __typename?: 'Collection' } - | { __typename?: 'Comment' } - | { __typename?: 'CurationChannel' } - | { __typename?: 'Draft' } - | { __typename?: 'IcymiTopic' } - | { - __typename?: 'Moment' - id: string - shortHash: string - commentCount: number - author: { - __typename?: 'User' - id: string - isBlocking: boolean - userName?: string | null - } - } - | { __typename?: 'Report' } - | { __typename?: 'Tag' } - | { __typename?: 'TopicChannel' } - | { __typename?: 'User' } - | { __typename?: 'WritingChallenge' } - parentComment?: { __typename?: 'Comment'; id: string } | null - dropdownComments: { - __typename?: 'CommentConnection' - totalCount: number - } - communityWatchAction?: { - __typename?: 'CommunityWatchAction' - uuid: string - } | null - } - | { __typename?: 'CurationChannel' } - | { __typename?: 'Draft' } - | { __typename?: 'IcymiTopic' } - | { __typename?: 'Moment' } - | { __typename?: 'Report' } - | { __typename?: 'Tag' } - | { __typename?: 'TopicChannel' } - | { __typename?: 'User' } - | { __typename?: 'WritingChallenge' } - | null -} - -export type CommentReplyComemntFragment = { - __typename?: 'Comment' - id: string - state: CommentState - author: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - node: - | { - __typename?: 'Article' - id: string - author: { __typename?: 'User'; id: string } - } - | { __typename?: 'ArticleVersion' } - | { __typename?: 'Circle' } - | { __typename?: 'Collection' } - | { __typename?: 'Comment' } - | { __typename?: 'CurationChannel' } - | { __typename?: 'Draft' } - | { __typename?: 'IcymiTopic' } - | { - __typename?: 'Moment' - id: string - author: { __typename?: 'User'; id: string } - } - | { __typename?: 'Report' } - | { __typename?: 'Tag' } - | { __typename?: 'TopicChannel' } - | { __typename?: 'User' } - | { __typename?: 'WritingChallenge' } - parentComment?: { __typename?: 'Comment'; id: string } | null -} - -export type CommentUpvoteCommentPublicFragment = { - __typename?: 'Comment' - id: string - upvotes: number -} - -export type CommentUpvoteCommentPrivateFragment = { - __typename?: 'Comment' - id: string - myVote?: Vote | null -} - -export type CommentFooterActionsCommentPublicFragment = { - __typename?: 'Comment' - id: string - state: CommentState - upvotes: number - author: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - node: - | { - __typename?: 'Article' - id: string - author: { __typename?: 'User'; id: string } - } - | { __typename?: 'ArticleVersion' } - | { __typename?: 'Circle' } - | { __typename?: 'Collection' } - | { __typename?: 'Comment' } - | { __typename?: 'CurationChannel' } - | { __typename?: 'Draft' } - | { __typename?: 'IcymiTopic' } - | { - __typename?: 'Moment' - id: string - author: { __typename?: 'User'; id: string } - } - | { __typename?: 'Report' } - | { __typename?: 'Tag' } - | { __typename?: 'TopicChannel' } - | { __typename?: 'User' } - | { __typename?: 'WritingChallenge' } - parentComment?: { __typename?: 'Comment'; id: string } | null -} - -export type CommentFooterActionsCommentPrivateFragment = { - __typename?: 'Comment' - id: string - myVote?: Vote | null - node: - | { - __typename?: 'Article' - id: string - commentCount: number - author: { __typename?: 'User'; id: string; isBlocking: boolean } - } - | { __typename?: 'ArticleVersion' } - | { __typename?: 'Circle' } - | { __typename?: 'Collection' } - | { __typename?: 'Comment' } - | { __typename?: 'CurationChannel' } - | { __typename?: 'Draft' } - | { __typename?: 'IcymiTopic' } - | { - __typename?: 'Moment' - id: string - commentCount: number - author: { __typename?: 'User'; id: string; isBlocking: boolean } - } - | { __typename?: 'Report' } - | { __typename?: 'Tag' } - | { __typename?: 'TopicChannel' } - | { __typename?: 'User' } - | { __typename?: 'WritingChallenge' } -} - -export type PinnedLabelCommentFragment = { - __typename?: 'Comment' - id: string - pinned: boolean - node: - | { __typename?: 'Article'; id: string } - | { __typename?: 'ArticleVersion' } - | { __typename?: 'Circle' } - | { __typename?: 'Collection' } - | { __typename?: 'Comment' } - | { __typename?: 'CurationChannel' } - | { __typename?: 'Draft' } - | { __typename?: 'IcymiTopic' } - | { __typename?: 'Moment'; id: string } - | { __typename?: 'Report' } - | { __typename?: 'Tag' } - | { __typename?: 'TopicChannel' } - | { __typename?: 'User' } - | { __typename?: 'WritingChallenge' } -} - -export type RoleLabelCommentFragment = { - __typename?: 'Comment' - id: string - fromDonator: boolean - author: { __typename?: 'User'; id: string } - node: - | { - __typename?: 'Article' - id: string - author: { __typename?: 'User'; id: string } - } - | { __typename?: 'ArticleVersion' } - | { __typename?: 'Circle' } - | { __typename?: 'Collection' } - | { __typename?: 'Comment' } - | { __typename?: 'CurationChannel' } - | { __typename?: 'Draft' } - | { __typename?: 'IcymiTopic' } - | { - __typename?: 'Moment' - id: string - author: { __typename?: 'User'; id: string } - } - | { __typename?: 'Report' } - | { __typename?: 'Tag' } - | { __typename?: 'TopicChannel' } - | { __typename?: 'User' } - | { __typename?: 'WritingChallenge' } -} - -export type CommentThreadCommentCommentPublicFragment = { - __typename?: 'Comment' - id: string - type: CommentType - createdAt: any - fromDonator: boolean - pinned: boolean - state: CommentState - content?: string | null - upvotes: number - comments: { - __typename?: 'CommentConnection' - edges?: Array<{ - __typename?: 'CommentEdge' - cursor: string - node: { - __typename?: 'Comment' - id: string - type: CommentType - createdAt: any - fromDonator: boolean - pinned: boolean - state: CommentState - content?: string | null - upvotes: number - author: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - replyTo?: { - __typename?: 'Comment' - id: string - author: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - } | null - node: - | { - __typename?: 'Article' - id: string - shortHash: string - commentCount: number - pinCommentLeft: number - author: { - __typename?: 'User' - id: string - userName?: string | null - } - } - | { __typename?: 'ArticleVersion' } - | { __typename?: 'Circle' } - | { __typename?: 'Collection' } - | { __typename?: 'Comment' } - | { __typename?: 'CurationChannel' } - | { __typename?: 'Draft' } - | { __typename?: 'IcymiTopic' } - | { - __typename?: 'Moment' - id: string - shortHash: string - commentCount: number - author: { - __typename?: 'User' - id: string - userName?: string | null - } - } - | { __typename?: 'Report' } - | { __typename?: 'Tag' } - | { __typename?: 'TopicChannel' } - | { __typename?: 'User' } - | { __typename?: 'WritingChallenge' } - parentComment?: { __typename?: 'Comment'; id: string } | null - dropdownComments: { - __typename?: 'CommentConnection' - totalCount: number - } - communityWatchAction?: { - __typename?: 'CommunityWatchAction' - uuid: string - } | null - } - }> | null - } - author: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - replyTo?: { - __typename?: 'Comment' - id: string - author: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - } | null - node: - | { - __typename?: 'Article' - id: string - shortHash: string - commentCount: number - pinCommentLeft: number - author: { __typename?: 'User'; id: string; userName?: string | null } - } - | { __typename?: 'ArticleVersion' } - | { __typename?: 'Circle' } - | { __typename?: 'Collection' } - | { __typename?: 'Comment' } - | { __typename?: 'CurationChannel' } - | { __typename?: 'Draft' } - | { __typename?: 'IcymiTopic' } - | { - __typename?: 'Moment' - id: string - shortHash: string - commentCount: number - author: { __typename?: 'User'; id: string; userName?: string | null } - } - | { __typename?: 'Report' } - | { __typename?: 'Tag' } - | { __typename?: 'TopicChannel' } - | { __typename?: 'User' } - | { __typename?: 'WritingChallenge' } - parentComment?: { __typename?: 'Comment'; id: string } | null - dropdownComments: { __typename?: 'CommentConnection'; totalCount: number } - communityWatchAction?: { - __typename?: 'CommunityWatchAction' - uuid: string - } | null -} - -export type CommentThreadCommentCommentPrivateFragment = { - __typename?: 'Comment' - id: string - myVote?: Vote | null - comments: { - __typename?: 'CommentConnection' - pageInfo: { - __typename?: 'PageInfo' - startCursor?: string | null - endCursor?: string | null - hasNextPage: boolean - } - edges?: Array<{ - __typename?: 'CommentEdge' - cursor: string - node: { - __typename?: 'Comment' - id: string - myVote?: Vote | null - node: - | { - __typename?: 'Article' - id: string - commentCount: number - author: { - __typename?: 'User' - id: string - isBlocking: boolean - userName?: string | null - } - } - | { __typename?: 'ArticleVersion' } - | { __typename?: 'Circle' } - | { __typename?: 'Collection' } - | { __typename?: 'Comment' } - | { __typename?: 'CurationChannel' } - | { __typename?: 'Draft' } - | { __typename?: 'IcymiTopic' } - | { - __typename?: 'Moment' - id: string - commentCount: number - shortHash: string - author: { - __typename?: 'User' - id: string - isBlocking: boolean - userName?: string | null - } - } - | { __typename?: 'Report' } - | { __typename?: 'Tag' } - | { __typename?: 'TopicChannel' } - | { __typename?: 'User' } - | { __typename?: 'WritingChallenge' } - author: { __typename?: 'User'; id: string; isBlocked: boolean } - } - }> | null - } - node: - | { - __typename?: 'Article' - id: string - commentCount: number - author: { - __typename?: 'User' - id: string - isBlocking: boolean - userName?: string | null - } - } - | { __typename?: 'ArticleVersion' } - | { __typename?: 'Circle' } - | { __typename?: 'Collection' } - | { __typename?: 'Comment' } - | { __typename?: 'CurationChannel' } - | { __typename?: 'Draft' } - | { __typename?: 'IcymiTopic' } - | { - __typename?: 'Moment' - id: string - commentCount: number - shortHash: string - author: { - __typename?: 'User' - id: string - isBlocking: boolean - userName?: string | null - } - } - | { __typename?: 'Report' } - | { __typename?: 'Tag' } - | { __typename?: 'TopicChannel' } - | { __typename?: 'User' } - | { __typename?: 'WritingChallenge' } - author: { __typename?: 'User'; id: string; isBlocked: boolean } -} - -export type DescendantCommentsCommentPublicQueryVariables = Exact<{ - id: Scalars['ID']['input'] - after?: InputMaybe - first?: InputMaybe -}> - -export type DescendantCommentsCommentPublicQuery = { - __typename?: 'Query' - comment?: - | { __typename?: 'Article' } - | { __typename?: 'ArticleVersion' } - | { __typename?: 'Circle' } - | { __typename?: 'Collection' } - | { - __typename?: 'Comment' - comments: { - __typename?: 'CommentConnection' - totalCount: number - pageInfo: { - __typename?: 'PageInfo' - startCursor?: string | null - endCursor?: string | null - hasNextPage: boolean - } - edges?: Array<{ - __typename?: 'CommentEdge' - node: { - __typename?: 'Comment' - id: string - type: CommentType - createdAt: any - fromDonator: boolean - pinned: boolean - state: CommentState - content?: string | null - upvotes: number - myVote?: Vote | null - comments: { - __typename?: 'CommentConnection' - edges?: Array<{ - __typename?: 'CommentEdge' - cursor: string - node: { - __typename?: 'Comment' - id: string - type: CommentType - createdAt: any - fromDonator: boolean - pinned: boolean - state: CommentState - content?: string | null - upvotes: number - myVote?: Vote | null - author: { - __typename?: 'User' - id: string - isBlocked: boolean - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { - __typename?: 'UserStatus' - state: UserState - } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ - __typename?: 'Badge' - type: BadgeType - }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - replyTo?: { - __typename?: 'Comment' - id: string - author: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { - __typename?: 'UserStatus' - state: UserState - } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ - __typename?: 'Badge' - type: BadgeType - }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - } | null - node: - | { - __typename?: 'Article' - id: string - shortHash: string - commentCount: number - pinCommentLeft: number - author: { - __typename?: 'User' - id: string - isBlocking: boolean - userName?: string | null - } - } - | { __typename?: 'ArticleVersion' } - | { __typename?: 'Circle' } - | { __typename?: 'Collection' } - | { __typename?: 'Comment' } - | { __typename?: 'CurationChannel' } - | { __typename?: 'Draft' } - | { __typename?: 'IcymiTopic' } - | { - __typename?: 'Moment' - id: string - shortHash: string - commentCount: number - author: { - __typename?: 'User' - id: string - isBlocking: boolean - userName?: string | null - } - } - | { __typename?: 'Report' } - | { __typename?: 'Tag' } - | { __typename?: 'TopicChannel' } - | { __typename?: 'User' } - | { __typename?: 'WritingChallenge' } - parentComment?: { - __typename?: 'Comment' - id: string - } | null - dropdownComments: { - __typename?: 'CommentConnection' - totalCount: number - } - communityWatchAction?: { - __typename?: 'CommunityWatchAction' - uuid: string - } | null - } - }> | null - pageInfo: { - __typename?: 'PageInfo' - startCursor?: string | null - endCursor?: string | null - hasNextPage: boolean - } - } - author: { - __typename?: 'User' - id: string - isBlocked: boolean - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ - __typename?: 'Badge' - type: BadgeType - }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - replyTo?: { - __typename?: 'Comment' - id: string - author: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { - __typename?: 'UserStatus' - state: UserState - } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ - __typename?: 'Badge' - type: BadgeType - }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - } | null - node: - | { - __typename?: 'Article' - id: string - shortHash: string - commentCount: number - pinCommentLeft: number - author: { - __typename?: 'User' - id: string - isBlocking: boolean - userName?: string | null - } - } - | { __typename?: 'ArticleVersion' } - | { __typename?: 'Circle' } - | { __typename?: 'Collection' } - | { __typename?: 'Comment' } - | { __typename?: 'CurationChannel' } - | { __typename?: 'Draft' } - | { __typename?: 'IcymiTopic' } - | { - __typename?: 'Moment' - id: string - shortHash: string - commentCount: number - author: { - __typename?: 'User' - id: string - isBlocking: boolean - userName?: string | null - } - } - | { __typename?: 'Report' } - | { __typename?: 'Tag' } - | { __typename?: 'TopicChannel' } - | { __typename?: 'User' } - | { __typename?: 'WritingChallenge' } - parentComment?: { __typename?: 'Comment'; id: string } | null - dropdownComments: { - __typename?: 'CommentConnection' - totalCount: number - } - communityWatchAction?: { - __typename?: 'CommunityWatchAction' - uuid: string - } | null - } - }> | null - } - } - | { __typename?: 'CurationChannel' } - | { __typename?: 'Draft' } - | { __typename?: 'IcymiTopic' } - | { __typename?: 'Moment' } - | { __typename?: 'Report' } - | { __typename?: 'Tag' } - | { __typename?: 'TopicChannel' } - | { __typename?: 'User' } - | { __typename?: 'WritingChallenge' } - | null -} - -export type DescendantCommentsCommentPrivateQueryVariables = Exact<{ - ids: Array | Scalars['ID']['input'] -}> - -export type DescendantCommentsCommentPrivateQuery = { - __typename?: 'Query' - nodes?: Array< - | { __typename?: 'Article'; id: string } - | { __typename?: 'ArticleVersion'; id: string } - | { __typename?: 'Circle'; id: string } - | { __typename?: 'Collection'; id: string } - | { - __typename?: 'Comment' - id: string - myVote?: Vote | null - comments: { - __typename?: 'CommentConnection' - pageInfo: { - __typename?: 'PageInfo' - startCursor?: string | null - endCursor?: string | null - hasNextPage: boolean - } - edges?: Array<{ - __typename?: 'CommentEdge' - cursor: string - node: { - __typename?: 'Comment' - id: string - myVote?: Vote | null - node: - | { - __typename?: 'Article' - id: string - commentCount: number - author: { - __typename?: 'User' - id: string - isBlocking: boolean - userName?: string | null - } - } - | { __typename?: 'ArticleVersion' } - | { __typename?: 'Circle' } - | { __typename?: 'Collection' } - | { __typename?: 'Comment' } - | { __typename?: 'CurationChannel' } - | { __typename?: 'Draft' } - | { __typename?: 'IcymiTopic' } - | { - __typename?: 'Moment' - id: string - commentCount: number - shortHash: string - author: { - __typename?: 'User' - id: string - isBlocking: boolean - userName?: string | null - } - } - | { __typename?: 'Report' } - | { __typename?: 'Tag' } - | { __typename?: 'TopicChannel' } - | { __typename?: 'User' } - | { __typename?: 'WritingChallenge' } - author: { __typename?: 'User'; id: string; isBlocked: boolean } - } - }> | null - } - node: - | { - __typename?: 'Article' - id: string - commentCount: number - author: { - __typename?: 'User' - id: string - isBlocking: boolean - userName?: string | null - } - } - | { __typename?: 'ArticleVersion' } - | { __typename?: 'Circle' } - | { __typename?: 'Collection' } - | { __typename?: 'Comment' } - | { __typename?: 'CurationChannel' } - | { __typename?: 'Draft' } - | { __typename?: 'IcymiTopic' } - | { - __typename?: 'Moment' - id: string - commentCount: number - shortHash: string - author: { - __typename?: 'User' - id: string - isBlocking: boolean - userName?: string | null - } - } - | { __typename?: 'Report' } - | { __typename?: 'Tag' } - | { __typename?: 'TopicChannel' } - | { __typename?: 'User' } - | { __typename?: 'WritingChallenge' } - author: { __typename?: 'User'; id: string; isBlocked: boolean } - } - | { __typename?: 'CurationChannel'; id: string } - | { __typename?: 'Draft'; id: string } - | { __typename?: 'IcymiTopic'; id: string } - | { __typename?: 'Moment'; id: string } - | { __typename?: 'Report'; id: string } - | { __typename?: 'Tag'; id: string } - | { __typename?: 'TopicChannel'; id: string } - | { __typename?: 'User'; id: string } - | { __typename?: 'WritingChallenge'; id: string } - > | null -} - -export type DraftUpdatedAtFragment = { - __typename?: 'Draft' - id: string - updatedAt: any -} - -export type FeatureOfficialFragment = { - __typename?: 'Official' - features: Array<{ - __typename?: 'Feature' - name: FeatureName - enabled: boolean - }> -} - -export type UpdateLanguageMutationVariables = Exact<{ - input: UpdateUserInfoInput -}> - -export type UpdateLanguageMutation = { - __typename?: 'Mutation' - updateUserInfo: { - __typename?: 'User' - id: string - settings: { __typename?: 'UserSettings'; language: UserLanguage } - } -} - -export type ViewerUserPublicFragment = { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - liker: { __typename?: 'Liker'; likerId?: string | null; civicLiker: boolean } - status?: { - __typename?: 'UserStatus' - state: UserState - unreadNoticeCount: number - hasPaymentPassword: boolean - } | null - ownCircles?: Array<{ __typename?: 'Circle'; id: string; name: string }> | null - info: { - __typename?: 'UserInfo' - createdAt?: any | null - description?: string | null - email?: any | null - agreeOn?: any | null - userNameEditable: boolean - group: UserGroup - ethAddress?: string | null - isWalletAuth: boolean - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - settings: { __typename?: 'UserSettings'; language: UserLanguage } - following: { - __typename?: 'Following' - users: { __typename?: 'UserConnection'; totalCount: number } - } - followers: { __typename?: 'UserConnection'; totalCount: number } -} - -export type ViewerUserPrivateFragment = { - __typename?: 'User' - id: string - info: { - __typename?: 'UserInfo' - emailVerified: boolean - socialAccounts: Array<{ - __typename?: 'SocialAccount' - type: SocialAccountType - userName?: string | null - email?: string | null - }> - } - status?: { - __typename?: 'UserStatus' - role: UserRole - hasEmailLoginPassword: boolean - changeEmailTimesLeft: number - } | null - articles: { __typename?: 'ArticleConnection'; totalCount: number } - settings: { __typename?: 'UserSettings'; currency: QuoteCurrency } -} - -export type ViewerFeatureFlagsQueryVariables = Exact<{ [key: string]: never }> - -export type ViewerFeatureFlagsQuery = { - __typename?: 'Query' - viewer?: { - __typename?: 'User' - id: string - oss: { - __typename?: 'UserOSS' - featureFlags: Array<{ - __typename?: 'UserFeatureFlag' - type: UserFeatureFlagType - }> - } - } | null -} - -export type UserArticlesUserFragment = { - __typename?: 'User' - id: string - articles: { - __typename?: 'ArticleConnection' - totalCount: number - pageInfo: { - __typename?: 'PageInfo' - startCursor?: string | null - endCursor?: string | null - hasNextPage: boolean - } - edges?: Array<{ - __typename?: 'ArticleEdge' - cursor: string - node: { - __typename?: 'Article' - id: string - title: string - state: ArticleState - createdAt: any - } - }> | null - } -} - -export type AddArticlesCollectionUserQueryVariables = Exact<{ - userName?: InputMaybe - after?: InputMaybe -}> - -export type AddArticlesCollectionUserQuery = { - __typename?: 'Query' - user?: { - __typename?: 'User' - id: string - articles: { - __typename?: 'ArticleConnection' - totalCount: number - pageInfo: { - __typename?: 'PageInfo' - startCursor?: string | null - endCursor?: string | null - hasNextPage: boolean - } - edges?: Array<{ - __typename?: 'ArticleEdge' - cursor: string - node: { - __typename?: 'Article' - id: string - title: string - state: ArticleState - createdAt: any - } - }> | null - } - } | null -} - -export type UserArticlesSearchQueryVariables = Exact<{ - authorId: Scalars['ID']['input'] - key: Scalars['String']['input'] - after?: InputMaybe -}> - -export type UserArticlesSearchQuery = { - __typename?: 'Query' - search: { - __typename?: 'SearchResultConnection' - totalCount: number - pageInfo: { - __typename?: 'PageInfo' - startCursor?: string | null - endCursor?: string | null - hasNextPage: boolean - } - edges?: Array<{ - __typename?: 'SearchResultEdge' - cursor: string - node: - | { - __typename?: 'Article' - id: string - title: string - state: ArticleState - createdAt: any - } - | { __typename?: 'ArticleVersion' } - | { __typename?: 'Circle' } - | { __typename?: 'Collection' } - | { __typename?: 'Comment' } - | { __typename?: 'CurationChannel' } - | { __typename?: 'Draft' } - | { __typename?: 'IcymiTopic' } - | { __typename?: 'Moment' } - | { __typename?: 'Report' } - | { __typename?: 'Tag' } - | { __typename?: 'TopicChannel' } - | { __typename?: 'User' } - | { __typename?: 'WritingChallenge' } - }> | null - } -} - -export type AddArticlesCollectionMutationVariables = Exact<{ - input: AddCollectionsArticlesInput - first?: InputMaybe -}> - -export type AddArticlesCollectionMutation = { - __typename?: 'Mutation' - addCollectionsArticles: Array<{ - __typename?: 'Collection' - id: string - title: string - articles: { - __typename?: 'ArticleConnection' - totalCount: number - edges?: Array<{ - __typename?: 'ArticleEdge' - cursor: string - node: { - __typename?: 'Article' - id: string - title: string - slug: string - shortHash: string - displayCover?: string | null - summary: string - createdAt: any - readTime: number - bookmarked: boolean - pinned: boolean - revisionCount: number - articleState: ArticleState - author: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - access: { - __typename?: 'ArticleAccess' - type: ArticleAccessType - circle?: { - __typename?: 'Circle' - id: string - name: string - displayName: string - } | null - } - collections: { - __typename?: 'CollectionConnection' - edges?: Array<{ - __typename?: 'CollectionEdge' - node: { - __typename?: 'Collection' - id: string - title: string - articles: { - __typename?: 'ArticleConnection' - totalCount: number - } - } - }> | null - } - campaigns: Array<{ - __typename?: 'ArticleCampaign' - campaign: { - __typename?: 'WritingChallenge' - id: string - name: string - shortHash: string - nameZhHant: string - nameZhHans: string - nameEn: string - } - stage?: { __typename?: 'CampaignStage'; id: string } | null - }> - tags?: Array<{ - __typename?: 'Tag' - id: string - content: string - }> | null - donations: { - __typename?: 'ArticleDonationConnection' - totalCount: number - } - likesReceived: { - __typename?: 'AppreciationConnection' - totalCount: number - } - donationsDialog: { - __typename?: 'ArticleDonationConnection' - totalCount: number - } - } - }> | null - } - }> -} - -export type CreateCollectionMutationVariables = Exact<{ - input: PutCollectionInput -}> - -export type CreateCollectionMutation = { - __typename?: 'Mutation' - putCollection: { - __typename?: 'Collection' - id: string - title: string - description?: string | null - cover?: string | null - updatedAt: any - pinned: boolean - author: { - __typename?: 'User' - id: string - displayName?: string | null - userName?: string | null - } - articles: { __typename?: 'ArticleConnection'; totalCount: number } - } -} - -export type AddCollectionsArticleUserPublicFragment = { - __typename?: 'User' - id: string - collections: { - __typename?: 'CollectionConnection' - totalCount: number - edges?: Array<{ - __typename?: 'CollectionEdge' - node: { - __typename?: 'Collection' - id: string - title: string - contains: boolean - articles: { - __typename?: 'ArticleConnection' - totalCount: number - edges?: Array<{ - __typename?: 'ArticleEdge' - node: { __typename?: 'Article'; id: string } - }> | null - } - } - }> | null - } -} - -export type AddCollectionsArticleUserPublicQueryVariables = Exact<{ - userName: Scalars['String']['input'] - id: Scalars['ID']['input'] -}> - -export type AddCollectionsArticleUserPublicQuery = { - __typename?: 'Query' - user?: { - __typename?: 'User' - id: string - collections: { - __typename?: 'CollectionConnection' - totalCount: number - edges?: Array<{ - __typename?: 'CollectionEdge' - node: { - __typename?: 'Collection' - id: string - title: string - contains: boolean - articles: { - __typename?: 'ArticleConnection' - totalCount: number - edges?: Array<{ - __typename?: 'ArticleEdge' - node: { __typename?: 'Article'; id: string } - }> | null - } - } - }> | null - } - } | null -} - -export type AddCollectionsArticlesMutationVariables = Exact<{ - input: AddCollectionsArticlesInput -}> - -export type AddCollectionsArticlesMutation = { - __typename?: 'Mutation' - addCollectionsArticles: Array<{ - __typename?: 'Collection' - id: string - title: string - }> -} - -export type ArticleAppreciatorsQueryVariables = Exact<{ - id: Scalars['ID']['input'] - after?: InputMaybe -}> - -export type ArticleAppreciatorsQuery = { - __typename?: 'Query' - article?: - | { - __typename?: 'Article' - id: string - likesReceived: { - __typename?: 'AppreciationConnection' - totalCount: number - pageInfo: { - __typename?: 'PageInfo' - startCursor?: string | null - endCursor?: string | null - hasNextPage: boolean - } - edges?: Array<{ - __typename?: 'AppreciationEdge' - cursor: string - node: { - __typename?: 'Appreciation' - amount: number - sender?: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - isFollower: boolean - isFollowee: boolean - info: { - __typename?: 'UserInfo' - description?: string | null - badges?: Array<{ - __typename?: 'Badge' - type: BadgeType - }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - } | null - } - }> | null - } - } - | { __typename?: 'ArticleVersion' } - | { __typename?: 'Circle' } - | { __typename?: 'Collection' } - | { __typename?: 'Comment' } - | { __typename?: 'CurationChannel' } - | { __typename?: 'Draft' } - | { __typename?: 'IcymiTopic' } - | { __typename?: 'Moment' } - | { __typename?: 'Report' } - | { __typename?: 'Tag' } - | { __typename?: 'TopicChannel' } - | { __typename?: 'User' } - | { __typename?: 'WritingChallenge' } - | null -} - -export type AppreciatorsDialogArticleFragment = { - __typename?: 'Article' - id: string - likesReceived: { __typename?: 'AppreciationConnection'; totalCount: number } -} - -export type UpdateUserInfoProfileMutationVariables = Exact<{ - input: UpdateUserInfoInput -}> - -export type UpdateUserInfoProfileMutation = { - __typename?: 'Mutation' - updateUserInfo: { - __typename?: 'User' - id: string - avatar?: string | null - displayName?: string | null - info: { - __typename?: 'UserInfo' - profileCover?: string | null - description?: string | null - } - } -} - -export type EditProfileDialogUserPublicFragment = { - __typename?: 'User' - id: string - avatar?: string | null - displayName?: string | null - info: { - __typename?: 'UserInfo' - profileCover?: string | null - description?: string | null - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - } - liker: { __typename?: 'Liker'; civicLiker: boolean } -} - -export type ViewerLikerIdQueryVariables = Exact<{ [key: string]: never }> - -export type ViewerLikerIdQuery = { - __typename?: 'Query' - viewer?: { - __typename?: 'User' - id: string - liker: { __typename?: 'Liker'; likerId?: string | null } - } | null -} - -export type MomentDigestDetailCommentsMomentFragment = { - __typename?: 'Moment' - id: string - comments: { - __typename?: 'CommentConnection' - edges?: Array<{ - __typename?: 'CommentEdge' - cursor: string - node: { - __typename?: 'Comment' - id: string - type: CommentType - createdAt: any - fromDonator: boolean - pinned: boolean - state: CommentState - content?: string | null - upvotes: number - myVote?: Vote | null - author: { - __typename?: 'User' - id: string - isBlocked: boolean - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - replyTo?: { - __typename?: 'Comment' - id: string - author: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - } | null - node: - | { - __typename?: 'Article' - id: string - shortHash: string - commentCount: number - pinCommentLeft: number - author: { - __typename?: 'User' - id: string - isBlocking: boolean - userName?: string | null - } - } - | { __typename?: 'ArticleVersion' } - | { __typename?: 'Circle' } - | { __typename?: 'Collection' } - | { __typename?: 'Comment' } - | { __typename?: 'CurationChannel' } - | { __typename?: 'Draft' } - | { __typename?: 'IcymiTopic' } - | { - __typename?: 'Moment' - id: string - shortHash: string - commentCount: number - author: { - __typename?: 'User' - id: string - isBlocking: boolean - userName?: string | null - } - } - | { __typename?: 'Report' } - | { __typename?: 'Tag' } - | { __typename?: 'TopicChannel' } - | { __typename?: 'User' } - | { __typename?: 'WritingChallenge' } - parentComment?: { __typename?: 'Comment'; id: string } | null - dropdownComments: { - __typename?: 'CommentConnection' - totalCount: number - } - communityWatchAction?: { - __typename?: 'CommunityWatchAction' - uuid: string - } | null - } - }> | null - } -} - -export type MomentDetailQueryVariables = Exact<{ - shortHash: Scalars['String']['input'] -}> - -export type MomentDetailQuery = { - __typename?: 'Query' - moment?: { - __typename?: 'Moment' - id: string - shortHash: string - createdAt: any - state: MomentState - content?: string | null - likeCount: number - liked: boolean - author: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - comments: { - __typename?: 'CommentConnection' - edges?: Array<{ - __typename?: 'CommentEdge' - cursor: string - node: { - __typename?: 'Comment' - id: string - type: CommentType - createdAt: any - fromDonator: boolean - pinned: boolean - state: CommentState - content?: string | null - upvotes: number - myVote?: Vote | null - author: { - __typename?: 'User' - id: string - isBlocked: boolean - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - replyTo?: { - __typename?: 'Comment' - id: string - author: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - } | null - node: - | { - __typename?: 'Article' - id: string - shortHash: string - commentCount: number - pinCommentLeft: number - author: { - __typename?: 'User' - id: string - isBlocking: boolean - userName?: string | null - } - } - | { __typename?: 'ArticleVersion' } - | { __typename?: 'Circle' } - | { __typename?: 'Collection' } - | { __typename?: 'Comment' } - | { __typename?: 'CurationChannel' } - | { __typename?: 'Draft' } - | { __typename?: 'IcymiTopic' } - | { - __typename?: 'Moment' - id: string - shortHash: string - commentCount: number - author: { - __typename?: 'User' - id: string - isBlocking: boolean - userName?: string | null - } - } - | { __typename?: 'Report' } - | { __typename?: 'Tag' } - | { __typename?: 'TopicChannel' } - | { __typename?: 'User' } - | { __typename?: 'WritingChallenge' } - parentComment?: { __typename?: 'Comment'; id: string } | null - dropdownComments: { - __typename?: 'CommentConnection' - totalCount: number - } - communityWatchAction?: { - __typename?: 'CommunityWatchAction' - uuid: string - } | null - } - }> | null - } - assets: Array<{ __typename?: 'Asset'; id: string; path: string }> - } | null -} - -export type RemoveArticleCollectionMutationVariables = Exact<{ - collection: Scalars['ID']['input'] - article: Scalars['ID']['input'] -}> - -export type RemoveArticleCollectionMutation = { - __typename?: 'Mutation' - deleteCollectionArticles: { __typename?: 'Collection'; id: string } -} - -export type RemoveSocialLoginMutationVariables = Exact<{ - input: RemoveSocialLoginInput -}> - -export type RemoveSocialLoginMutation = { - __typename?: 'Mutation' - removeSocialLogin: { - __typename?: 'User' - id: string - info: { - __typename?: 'UserInfo' - socialAccounts: Array<{ - __typename?: 'SocialAccount' - type: SocialAccountType - userName?: string | null - email?: string | null - }> - } - } -} - -export type RemoveWalletLoginMutationVariables = Exact<{ [key: string]: never }> - -export type RemoveWalletLoginMutation = { - __typename?: 'Mutation' - removeWalletLogin: { - __typename?: 'User' - id: string - info: { __typename?: 'UserInfo'; ethAddress?: string | null } - } -} - -export type SetEmailMutationVariables = Exact<{ - input: SetEmailInput -}> - -export type SetEmailMutation = { - __typename?: 'Mutation' - setEmail: { - __typename?: 'User' - id: string - info: { - __typename?: 'UserInfo' - email?: any | null - emailVerified: boolean - } - status?: { __typename?: 'UserStatus'; changeEmailTimesLeft: number } | null - } -} - -export type SetPasswordMutationVariables = Exact<{ - input: SetPasswordInput -}> - -export type SetPasswordMutation = { - __typename?: 'Mutation' - setPassword: { - __typename?: 'User' - id: string - info: { __typename?: 'UserInfo'; email?: any | null } - status?: { - __typename?: 'UserStatus' - hasEmailLoginPassword: boolean - } | null - } -} - -export type QueryUserNameQueryVariables = Exact<{ - userName: Scalars['String']['input'] -}> - -export type QueryUserNameQuery = { - __typename?: 'Query' - user?: { __typename?: 'User'; id: string; userName?: string | null } | null -} - -export type SetUserNameMutationVariables = Exact<{ - userName: Scalars['String']['input'] -}> - -export type SetUserNameMutation = { - __typename?: 'Mutation' - setUserName: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - } -} - -export type SubmitReportMutationVariables = Exact<{ - id: Scalars['ID']['input'] - reason: ReportReason -}> - -export type SubmitReportMutation = { - __typename?: 'Mutation' - submitReport: { - __typename?: 'Report' - id: string - target: - | { __typename?: 'Article' } - | { __typename?: 'ArticleVersion' } - | { __typename?: 'Circle' } - | { __typename?: 'Collection' } - | { __typename?: 'Comment'; id: string; state: CommentState } - | { __typename?: 'CurationChannel' } - | { __typename?: 'Draft' } - | { __typename?: 'IcymiTopic' } - | { __typename?: 'Moment' } - | { __typename?: 'Report' } - | { __typename?: 'Tag' } - | { __typename?: 'TopicChannel' } - | { __typename?: 'User' } - | { __typename?: 'WritingChallenge' } - } -} - -export type SubscribeCirclePublicFragment = { - __typename?: 'Circle' - id: string - name: string - displayName: string - description?: string | null - avatar?: string | null - owner: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - members: { __typename?: 'MemberConnection'; totalCount: number } - works: { __typename?: 'ArticleConnection'; totalCount: number } - prices?: Array<{ - __typename?: 'Price' - amount: number - currency: TransactionCurrency - }> | null -} - -export type SubscribeCirclePrivateFragment = { - __typename?: 'Circle' - id: string - isMember: boolean - invitedBy?: { - __typename?: 'Invitation' - id: string - state: InvitationState - freePeriod: number - } | null -} - -export type ArticleDonatorsQueryVariables = Exact<{ - id: Scalars['ID']['input'] - after?: InputMaybe -}> - -export type ArticleDonatorsQuery = { - __typename?: 'Query' - article?: - | { - __typename?: 'Article' - id: string - donations: { - __typename?: 'ArticleDonationConnection' - totalCount: number - pageInfo: { - __typename?: 'PageInfo' - startCursor?: string | null - endCursor?: string | null - hasNextPage: boolean - } - edges?: Array<{ - __typename?: 'ArticleDonationEdge' - cursor: string - node: { - __typename?: 'ArticleDonation' - id: string - sender?: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - isFollower: boolean - isFollowee: boolean - info: { - __typename?: 'UserInfo' - description?: string | null - badges?: Array<{ - __typename?: 'Badge' - type: BadgeType - }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - } | null - } - }> | null - } - } - | { __typename?: 'ArticleVersion' } - | { __typename?: 'Circle' } - | { __typename?: 'Collection' } - | { __typename?: 'Comment' } - | { __typename?: 'CurationChannel' } - | { __typename?: 'Draft' } - | { __typename?: 'IcymiTopic' } - | { __typename?: 'Moment' } - | { __typename?: 'Report' } - | { __typename?: 'Tag' } - | { __typename?: 'TopicChannel' } - | { __typename?: 'User' } - | { __typename?: 'WritingChallenge' } - | null -} - -export type SupportsDialogArticleFragment = { - __typename?: 'Article' - id: string - shortHash: string - donationsDialog: { - __typename?: 'ArticleDonationConnection' - totalCount: number - } -} - -export type UnsubscribeCircleMutationVariables = Exact<{ - id: Scalars['ID']['input'] -}> - -export type UnsubscribeCircleMutation = { - __typename?: 'Mutation' - unsubscribeCircle: { __typename?: 'Circle'; id: string; isMember: boolean } -} - -export type WithdrawVaultUsdtMutationVariables = Exact<{ [key: string]: never }> - -export type WithdrawVaultUsdtMutation = { - __typename?: 'Mutation' - withdrawLockedTokens: { - __typename?: 'WithdrawLockedTokensResult' - transaction: { - __typename?: 'Transaction' - id: string - state: TransactionState - } - } -} - -export type WithdrawVaultUsdtPollingQueryVariables = Exact<{ - id: Scalars['ID']['input'] -}> - -export type WithdrawVaultUsdtPollingQuery = { - __typename?: 'Query' - viewer?: { - __typename?: 'User' - id: string - wallet: { - __typename?: 'Wallet' - transactions: { - __typename?: 'TransactionConnection' - edges?: Array<{ - __typename?: 'TransactionEdge' - node: { - __typename?: 'Transaction' - id: string - state: TransactionState - } - }> | null - } - } - } | null -} - -export type CancelScheduleArticleMutationVariables = Exact<{ - id: Scalars['ID']['input'] -}> - -export type CancelScheduleArticleMutation = { - __typename?: 'Mutation' - publishArticle: { - __typename?: 'Draft' - id: string - publishAt?: any | null - updatedAt: any - } -} - -export type CancelScheduleButtonDraftFragment = { - __typename?: 'Draft' - id: string - title?: string | null - publishAt?: any | null - updatedAt: any -} - -export type DeleteDraftMutationVariables = Exact<{ - id: Scalars['ID']['input'] -}> - -export type DeleteDraftMutation = { - __typename?: 'Mutation' - deleteDraft?: boolean | null -} - -export type DeleteButtonDraftFragment = { - __typename?: 'Draft' - id: string - title?: string | null -} - -export type SchedulePublishArticleMutationVariables = Exact<{ - id: Scalars['ID']['input'] - publishAt: Scalars['DateTime']['input'] -}> - -export type SchedulePublishArticleMutation = { - __typename?: 'Mutation' - publishArticle: { - __typename?: 'Draft' - id: string - publishAt?: any | null - updatedAt: any - } -} - -export type SchedulePublishButtonDraftFragment = { - __typename?: 'Draft' - id: string - publishAt?: any | null - updatedAt: any -} - -export type DraftDigestDropdownActionsDraftFragment = { - __typename?: 'Draft' - id: string - title?: string | null - summary?: string | null - content?: string | null - cover?: string | null - publishAt?: any | null - tags?: Array | null - license: ArticleLicenseType - canComment: boolean - sensitiveByAuthor: boolean - campaigns: Array<{ - __typename?: 'ArticleCampaign' - campaign: { __typename?: 'WritingChallenge'; id: string; name: string } - }> - connections: { - __typename?: 'ArticleConnection' - edges?: Array<{ - __typename?: 'ArticleEdge' - node: { __typename?: 'Article'; id: string; title: string } - }> | null - } - collections: { - __typename?: 'CollectionConnection' - edges?: Array<{ - __typename?: 'CollectionEdge' - node: { __typename?: 'Collection'; id: string; title: string } - }> | null - } - access: { - __typename?: 'DraftAccess' - circle?: { __typename?: 'Circle'; id: string } | null - } -} - -export type DraftDigestFeedDraftFragment = { - __typename?: 'Draft' - id: string - title?: string | null - slug: string - updatedAt: any - publishAt?: any | null - summary?: string | null - content?: string | null - cover?: string | null - tags?: Array | null - license: ArticleLicenseType - canComment: boolean - sensitiveByAuthor: boolean - campaigns: Array<{ - __typename?: 'ArticleCampaign' - campaign: { __typename?: 'WritingChallenge'; id: string; name: string } - }> - connections: { - __typename?: 'ArticleConnection' - edges?: Array<{ - __typename?: 'ArticleEdge' - node: { __typename?: 'Article'; id: string; title: string } - }> | null - } - collections: { - __typename?: 'CollectionConnection' - edges?: Array<{ - __typename?: 'CollectionEdge' - node: { __typename?: 'Collection'; id: string; title: string } - }> | null - } - access: { - __typename?: 'DraftAccess' - circle?: { __typename?: 'Circle'; id: string } | null - } -} - -export type GetArticleByShortHashQueryVariables = Exact<{ - shortHash: Scalars['String']['input'] -}> - -export type GetArticleByShortHashQuery = { - __typename?: 'Query' - article?: { - __typename?: 'Article' - id: string - title: string - shortHash: string - } | null -} - -export type GetCampaignByShortHashQueryVariables = Exact<{ - shortHash: Scalars['String']['input'] -}> - -export type GetCampaignByShortHashQuery = { - __typename?: 'Query' - campaign?: { - __typename?: 'WritingChallenge' - id: string - shortHash: string - nameZhHant: string - nameZhHans: string - nameEn: string - } | null -} - -export type EditorPreviewDialogCampaignDraftFragment = { - __typename?: 'Draft' - id: string - campaigns: Array<{ - __typename?: 'ArticleCampaign' - campaign: { __typename?: 'WritingChallenge'; id: string; name: string } - }> -} - -export type EditorPreviewDialogCollectionDraftFragment = { - __typename?: 'Draft' - id: string - collections: { - __typename?: 'CollectionConnection' - edges?: Array<{ - __typename?: 'CollectionEdge' - node: { __typename?: 'Collection'; id: string; title: string } - }> | null - } -} - -export type EditorPreviewDialogConnectionsDraftFragment = { - __typename?: 'Draft' - id: string - connections: { - __typename?: 'ArticleConnection' - edges?: Array<{ - __typename?: 'ArticleEdge' - node: { __typename?: 'Article'; id: string; title: string } - }> | null - } -} - -export type FeedDigestDraftFragment = { - __typename?: 'Draft' - id: string - title?: string | null - summary?: string | null - content?: string | null - cover?: string | null - publishAt?: any | null -} - -export type EditorPreviewDialogLicenseDraftFragment = { - __typename?: 'Draft' - id: string - license: ArticleLicenseType -} - -export type EditorPreviewDialogMiscDraftFragment = { - __typename?: 'Draft' - id: string - canComment: boolean - sensitiveByAuthor: boolean - access: { - __typename?: 'DraftAccess' - circle?: { __typename?: 'Circle'; id: string } | null - } -} - -export type EditorPreviewDialogTagsDraftFragment = { - __typename?: 'Draft' - id: string - tags?: Array | null -} - -export type EditorPreviewDialogDraftFragment = { - __typename?: 'Draft' - id: string - title?: string | null - summary?: string | null - content?: string | null - cover?: string | null - publishAt?: any | null - tags?: Array | null - license: ArticleLicenseType - canComment: boolean - sensitiveByAuthor: boolean - campaigns: Array<{ - __typename?: 'ArticleCampaign' - campaign: { __typename?: 'WritingChallenge'; id: string; name: string } - }> - connections: { - __typename?: 'ArticleConnection' - edges?: Array<{ - __typename?: 'ArticleEdge' - node: { __typename?: 'Article'; id: string; title: string } - }> | null - } - collections: { - __typename?: 'CollectionConnection' - edges?: Array<{ - __typename?: 'CollectionEdge' - node: { __typename?: 'Collection'; id: string; title: string } - }> | null - } - access: { - __typename?: 'DraftAccess' - circle?: { __typename?: 'Circle'; id: string } | null - } -} - -export type GetDraftPublishAtQueryVariables = Exact<{ - id: Scalars['ID']['input'] -}> - -export type GetDraftPublishAtQuery = { - __typename?: 'Query' - node?: - | { __typename?: 'Article' } - | { __typename?: 'ArticleVersion' } - | { __typename?: 'Circle' } - | { __typename?: 'Collection' } - | { __typename?: 'Comment' } - | { __typename?: 'CurationChannel' } - | { __typename?: 'Draft'; id: string; publishAt?: any | null } - | { __typename?: 'IcymiTopic' } - | { __typename?: 'Moment' } - | { __typename?: 'Report' } - | { __typename?: 'Tag' } - | { __typename?: 'TopicChannel' } - | { __typename?: 'User' } - | { __typename?: 'WritingChallenge' } - | null -} - -export type EditorSelectCampaignFragment = { - __typename?: 'WritingChallenge' - id: string - state: CampaignState - name: string - writingPeriod?: { - __typename?: 'DatetimeRange' - start: any - end?: any | null - } | null - stages: Array<{ - __typename?: 'CampaignStage' - id: string - name: string - period?: { - __typename?: 'DatetimeRange' - start: any - end?: any | null - } | null - }> -} - -export type CollectionDigestCollectionPublicFragment = { - __typename?: 'Collection' - id: string - title: string - articles: { __typename?: 'ArticleConnection'; totalCount: number } -} - -export type ArticleDigestDraftTitleArticleFragment = { - __typename?: 'Article' - id: string - title: string -} - -export type EditorViewerFederationSettingQueryVariables = Exact<{ - [key: string]: never -}> - -export type EditorViewerFederationSettingQuery = { - __typename?: 'Query' - viewer?: { - __typename?: 'User' - id: string - federationSetting?: { - __typename?: 'UserFederationSetting' - state: FederationAuthorSettingState - } | null - } | null -} - -export type SetArticleFederationSettingMutationVariables = Exact<{ - input: SetArticleFederationSettingInput -}> - -export type SetArticleFederationSettingMutation = { - __typename?: 'Mutation' - setArticleFederationSetting: { - __typename?: 'ArticleFederationSetting' - articleId: string - state: FederationArticleSettingState - } -} - -export type SetViewerFederationSettingMutationVariables = Exact<{ - input: SetViewerFederationSettingInput -}> - -export type SetViewerFederationSettingMutation = { - __typename?: 'Mutation' - setViewerFederationSetting: { - __typename?: 'UserFederationSetting' - userId: string - state: FederationAuthorSettingState - } -} - -export type EditorRecentTagsQueryVariables = Exact<{ [key: string]: never }> - -export type EditorRecentTagsQuery = { - __typename?: 'Query' - viewer?: { - __typename?: 'User' - id: string - tags: { - __typename?: 'TagConnection' - edges?: Array<{ - __typename?: 'TagEdge' - cursor: string - node: { - __typename?: 'Tag' - id: string - content: string - numArticles: number - } - }> | null - } - } | null -} - -export type EditorRecommendedTagsQueryVariables = Exact<{ - [key: string]: never -}> - -export type EditorRecommendedTagsQuery = { - __typename?: 'Query' - viewer?: { - __typename?: 'User' - id: string - tags: { - __typename?: 'TagConnection' - edges?: Array<{ - __typename?: 'TagEdge' - cursor: string - node: { - __typename?: 'Tag' - id: string - content: string - numArticles: number - } - }> | null - } - } | null -} - -export type EditorDraftFragment = { - __typename?: 'Draft' - id: string - title?: string | null - publishState: PublishState - content?: string | null - summary?: string | null - summaryCustomized: boolean - indentFirstLine: boolean -} - -export type MomentCommentFormMomentFragment = { - __typename?: 'Moment' - id: string - shortHash: string - author: { __typename?: 'User'; id: string; userName?: string | null } -} - -export type NewCommentFragment = { __typename?: 'Comment'; id: string } - -export type AddCreditMutationVariables = Exact<{ - input: AddCreditInput -}> - -export type AddCreditMutation = { - __typename?: 'Mutation' - addCredit: { - __typename?: 'AddCreditResult' - client_secret: string - transaction: { - __typename?: 'Transaction' - id: string - amount: number - fee: number - currency: TransactionCurrency - } - } -} - -export type ViewerStripeAccountQueryVariables = Exact<{ [key: string]: never }> - -export type ViewerStripeAccountQuery = { - __typename?: 'Query' - viewer?: { - __typename?: 'User' - id: string - wallet: { - __typename?: 'Wallet' - stripeAccount?: { __typename?: 'StripeAccount'; id: string } | null - } - } | null -} - -export type ConnectStripeAccountMutationVariables = Exact<{ - country: StripeAccountCountry -}> - -export type ConnectStripeAccountMutation = { - __typename?: 'Mutation' - connectStripeAccount: { - __typename?: 'ConnectStripeAccountResult' - redirectUrl: string - } -} - -export type QueryUserByAddressQueryVariables = Exact<{ - ethAddress: Scalars['String']['input'] -}> - -export type QueryUserByAddressQuery = { - __typename?: 'Query' - user?: { __typename?: 'User'; id: string } | null -} - -export type ViewerTxStateQueryVariables = Exact<{ - id: Scalars['ID']['input'] -}> - -export type ViewerTxStateQuery = { - __typename?: 'Query' - viewer?: { - __typename?: 'User' - id: string - wallet: { - __typename?: 'Wallet' - balance: { __typename?: 'Balance'; HKD: number } - transactions: { - __typename?: 'TransactionConnection' - edges?: Array<{ - __typename?: 'TransactionEdge' - node: { - __typename?: 'Transaction' - id: string - state: TransactionState - } - }> | null - } - } - } | null -} - -export type ResetPaymentPasswordMutationVariables = Exact<{ - input: ResetPasswordInput -}> - -export type ResetPaymentPasswordMutation = { - __typename?: 'Mutation' - resetPassword?: boolean | null -} - -export type ViewerCircleStateQueryVariables = Exact<{ - name: Scalars['String']['input'] -}> - -export type ViewerCircleStateQuery = { - __typename?: 'Query' - circle?: { __typename?: 'Circle'; id: string; isMember: boolean } | null -} - -export type SubscribeCircleMutationVariables = Exact<{ - input: SubscribeCircleInput -}> - -export type SubscribeCircleMutation = { - __typename?: 'Mutation' - subscribeCircle: { - __typename?: 'SubscribeCircleResult' - client_secret?: string | null - circle: { __typename?: 'Circle'; id: string; isMember: boolean } - } -} - -export type WalletPaymentMethodQueryVariables = Exact<{ [key: string]: never }> - -export type WalletPaymentMethodQuery = { - __typename?: 'Query' - viewer?: { - __typename?: 'User' - id: string - wallet: { __typename?: 'Wallet'; cardLast4?: string | null } - } | null -} - -export type SetPaymentPasswordMutationVariables = Exact<{ - password?: InputMaybe -}> - -export type SetPaymentPasswordMutation = { - __typename?: 'Mutation' - updateUserInfo: { - __typename?: 'User' - id: string - status?: { __typename?: 'UserStatus'; hasPaymentPassword: boolean } | null - } -} - -export type ArticleConnectionsFragment = { - __typename?: 'Article' - id: string - connections: { - __typename?: 'ArticleConnection' - totalCount: number - pageInfo: { - __typename?: 'PageInfo' - startCursor?: string | null - endCursor?: string | null - hasNextPage: boolean - } - edges?: Array<{ - __typename?: 'ArticleEdge' - cursor: string - node: { - __typename?: 'Article' - id: string - title: string - slug: string - shortHash: string - state: ArticleState - articleState: ArticleState - author: { - __typename?: 'User' - id: string - userName?: string | null - isBlocking: boolean - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - } - }> | null - } -} - -export type AssetFragment = { - __typename?: 'Asset' - id: string - type: AssetType - path: string - draft?: boolean | null - uploadURL?: string | null -} - -export type FollowersCircleFragment = { - __typename?: 'Circle' - id: string - followers: { - __typename?: 'UserConnection' - totalCount: number - edges?: Array<{ - __typename?: 'UserEdge' - cursor: string - node: { - __typename?: 'User' - id: string - avatar?: string | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - } - } - }> | null - } -} - -export type PublishStateDraftFragment = { - __typename?: 'Draft' - id: string - publishState: PublishState - campaigns: Array<{ - __typename?: 'ArticleCampaign' - campaign: { __typename?: 'WritingChallenge'; id: string } - }> - access: { - __typename?: 'DraftAccess' - circle?: { __typename?: 'Circle'; id: string } | null - } - article?: { - __typename?: 'Article' - id: string - title: string - slug: string - shortHash: string - author: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - } - tags?: Array<{ __typename?: 'Tag'; id: string; content: string }> | null - } | null -} - -export type CreateDraftMutationVariables = Exact<{ [key: string]: never }> - -export type CreateDraftMutation = { - __typename?: 'Mutation' - putDraft: { __typename?: 'Draft'; id: string; slug: string } -} - -export type EmailLoginMutationVariables = Exact<{ - input: EmailLoginInput -}> - -export type EmailLoginMutation = { - __typename?: 'Mutation' - emailLogin: { - __typename?: 'AuthResult' - auth: boolean - token?: string | null - user?: { - __typename?: 'User' - id: string - settings: { __typename?: 'UserSettings'; language: UserLanguage } - info: { __typename?: 'UserInfo'; group: UserGroup } - } | null - } -} - -export type GenerateSigningMessageMutationVariables = Exact<{ - input: GenerateSigningMessageInput -}> - -export type GenerateSigningMessageMutation = { - __typename?: 'Mutation' - generateSigningMessage: { - __typename?: 'SigningMessageResult' - nonce: string - signingMessage: string - createdAt: any - expiredAt: any - } -} - -export type InviteCircleMutationVariables = Exact<{ - circleId: Scalars['ID']['input'] - freePeriod: Scalars['freePeriod_Int_NotNull_exclusiveMin_0']['input'] - invitees: Array | InviteCircleInvitee -}> - -export type InviteCircleMutation = { - __typename?: 'Mutation' - invite?: Array<{ __typename?: 'Invitation'; id: string }> | null -} - -export type LikeCollectionMutationVariables = Exact<{ - id: Scalars['ID']['input'] -}> - -export type LikeCollectionMutation = { - __typename?: 'Mutation' - likeCollection: { - __typename?: 'Collection' - id: string - likeCount: number - liked: boolean - } -} - -export type UnlikeCollectionMutationVariables = Exact<{ - id: Scalars['ID']['input'] -}> - -export type UnlikeCollectionMutation = { - __typename?: 'Mutation' - unlikeCollection: { - __typename?: 'Collection' - id: string - likeCount: number - liked: boolean - } -} - -export type LikeMomentMutationVariables = Exact<{ - id: Scalars['ID']['input'] -}> - -export type LikeMomentMutation = { - __typename?: 'Mutation' - likeMoment: { - __typename?: 'Moment' - id: string - likeCount: number - liked: boolean - } -} - -export type UnlikeMomentMutationVariables = Exact<{ - id: Scalars['ID']['input'] -}> - -export type UnlikeMomentMutation = { - __typename?: 'Mutation' - unlikeMoment: { - __typename?: 'Moment' - id: string - likeCount: number - liked: boolean - } -} - -export type MigrationMutationVariables = Exact<{ - input: MigrationInput -}> - -export type MigrationMutation = { - __typename?: 'Mutation' - migration?: boolean | null -} - -export type PayToMutationVariables = Exact<{ - amount: Scalars['amount_Float_NotNull_exclusiveMin_0']['input'] - currency: TransactionCurrency - purpose: TransactionPurpose - recipientId: Scalars['ID']['input'] - targetId?: InputMaybe - password?: InputMaybe - chain?: InputMaybe - txHash?: InputMaybe - id?: InputMaybe -}> - -export type PayToMutation = { - __typename?: 'Mutation' - payTo: { - __typename?: 'PayToResult' - redirectUrl?: string | null - transaction: { - __typename?: 'Transaction' - id: string - state: TransactionState - } - } -} - -export type PayoutMutationVariables = Exact<{ - amount: Scalars['amount_Float_NotNull_exclusiveMin_0']['input'] - password: Scalars['String']['input'] -}> - -export type PayoutMutation = { - __typename?: 'Mutation' - payout: { __typename?: 'Transaction'; id: string; state: TransactionState } -} - -export type PublishArticleMutationVariables = Exact<{ - id: Scalars['ID']['input'] - publishAt?: InputMaybe -}> - -export type PublishArticleMutation = { - __typename?: 'Mutation' - publishArticle: { - __typename?: 'Draft' - id: string - publishState: PublishState - publishAt?: any | null - updatedAt: any - } -} - -export type PutCircleMutationVariables = Exact<{ - input: PutCircleInput -}> - -export type PutCircleMutation = { - __typename?: 'Mutation' - putCircle: { - __typename?: 'Circle' - id: string - name: string - displayName: string - description?: string | null - avatar?: string | null - cover?: string | null - prices?: Array<{ - __typename?: 'Price' - id: string - amount: number - currency: TransactionCurrency - }> | null - } -} - -export type PutCircleArticlesMutationVariables = Exact<{ - id: Scalars['ID']['input'] - articles?: InputMaybe | Scalars['ID']['input']> - type: PutCircleArticlesType - accessType: ArticleAccessType - license: ArticleLicenseType -}> - -export type PutCircleArticlesMutation = { - __typename?: 'Mutation' - putCircleArticles: { __typename?: 'Circle'; id: string } -} - -export type PutArticleCommentMutationVariables = Exact<{ - input: PutCommentInput -}> - -export type PutArticleCommentMutation = { - __typename?: 'Mutation' - putComment: { - __typename?: 'Comment' - id: string - type: CommentType - createdAt: any - fromDonator: boolean - pinned: boolean - state: CommentState - content?: string | null - upvotes: number - myVote?: Vote | null - comments: { - __typename?: 'CommentConnection' - edges?: Array<{ - __typename?: 'CommentEdge' - cursor: string - node: { - __typename?: 'Comment' - id: string - type: CommentType - createdAt: any - fromDonator: boolean - pinned: boolean - state: CommentState - content?: string | null - upvotes: number - myVote?: Vote | null - author: { - __typename?: 'User' - id: string - isBlocked: boolean - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - replyTo?: { - __typename?: 'Comment' - id: string - author: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - } | null - node: - | { - __typename?: 'Article' - id: string - shortHash: string - commentCount: number - pinCommentLeft: number - author: { - __typename?: 'User' - id: string - isBlocking: boolean - userName?: string | null - } - } - | { __typename?: 'ArticleVersion' } - | { __typename?: 'Circle' } - | { __typename?: 'Collection' } - | { __typename?: 'Comment' } - | { __typename?: 'CurationChannel' } - | { __typename?: 'Draft' } - | { __typename?: 'IcymiTopic' } - | { - __typename?: 'Moment' - id: string - shortHash: string - commentCount: number - author: { - __typename?: 'User' - id: string - isBlocking: boolean - userName?: string | null - } - } - | { __typename?: 'Report' } - | { __typename?: 'Tag' } - | { __typename?: 'TopicChannel' } - | { __typename?: 'User' } - | { __typename?: 'WritingChallenge' } - parentComment?: { __typename?: 'Comment'; id: string } | null - dropdownComments: { - __typename?: 'CommentConnection' - totalCount: number - } - communityWatchAction?: { - __typename?: 'CommunityWatchAction' - uuid: string - } | null - } - }> | null - pageInfo: { - __typename?: 'PageInfo' - startCursor?: string | null - endCursor?: string | null - hasNextPage: boolean - } - } - author: { - __typename?: 'User' - id: string - isBlocked: boolean - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - replyTo?: { - __typename?: 'Comment' - id: string - author: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - } | null - node: - | { - __typename?: 'Article' - id: string - shortHash: string - commentCount: number - pinCommentLeft: number - author: { - __typename?: 'User' - id: string - isBlocking: boolean - userName?: string | null - } - } - | { __typename?: 'ArticleVersion' } - | { __typename?: 'Circle' } - | { __typename?: 'Collection' } - | { __typename?: 'Comment' } - | { __typename?: 'CurationChannel' } - | { __typename?: 'Draft' } - | { __typename?: 'IcymiTopic' } - | { - __typename?: 'Moment' - id: string - shortHash: string - commentCount: number - author: { - __typename?: 'User' - id: string - isBlocking: boolean - userName?: string | null - } - } - | { __typename?: 'Report' } - | { __typename?: 'Tag' } - | { __typename?: 'TopicChannel' } - | { __typename?: 'User' } - | { __typename?: 'WritingChallenge' } - parentComment?: { __typename?: 'Comment'; id: string } | null - dropdownComments: { __typename?: 'CommentConnection'; totalCount: number } - communityWatchAction?: { - __typename?: 'CommunityWatchAction' - uuid: string - } | null - } -} - -export type PutMomentCommentMutationVariables = Exact<{ - input: PutCommentInput -}> - -export type PutMomentCommentMutation = { - __typename?: 'Mutation' - putComment: { - __typename?: 'Comment' - id: string - type: CommentType - createdAt: any - fromDonator: boolean - pinned: boolean - state: CommentState - content?: string | null - upvotes: number - myVote?: Vote | null - author: { - __typename?: 'User' - id: string - isBlocked: boolean - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - replyTo?: { - __typename?: 'Comment' - id: string - author: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - } | null - node: - | { - __typename?: 'Article' - id: string - shortHash: string - commentCount: number - pinCommentLeft: number - author: { - __typename?: 'User' - id: string - isBlocking: boolean - userName?: string | null - } - } - | { __typename?: 'ArticleVersion' } - | { __typename?: 'Circle' } - | { __typename?: 'Collection' } - | { __typename?: 'Comment' } - | { __typename?: 'CurationChannel' } - | { __typename?: 'Draft' } - | { __typename?: 'IcymiTopic' } - | { - __typename?: 'Moment' - id: string - shortHash: string - commentCount: number - author: { - __typename?: 'User' - id: string - isBlocking: boolean - userName?: string | null - } - } - | { __typename?: 'Report' } - | { __typename?: 'Tag' } - | { __typename?: 'TopicChannel' } - | { __typename?: 'User' } - | { __typename?: 'WritingChallenge' } - parentComment?: { __typename?: 'Comment'; id: string } | null - dropdownComments: { __typename?: 'CommentConnection'; totalCount: number } - communityWatchAction?: { - __typename?: 'CommunityWatchAction' - uuid: string - } | null - } -} - -export type PutCircleCommentMutationVariables = Exact<{ - input: PutCommentInput -}> - -export type PutCircleCommentMutation = { - __typename?: 'Mutation' - putComment: { __typename?: 'Comment'; id: string; content?: string | null } -} - -export type PutMomentMutationVariables = Exact<{ - input: PutMomentInput -}> - -export type PutMomentMutation = { - __typename?: 'Mutation' - putMoment: { - __typename?: 'Moment' - id: string - createdAt: any - shortHash: string - state: MomentState - content?: string | null - commentCount: number - likeCount: number - liked: boolean - momentState: MomentState - author: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - assets: Array<{ __typename?: 'Asset'; id: string; path: string }> - commentedFollowees: Array<{ - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - }> - } -} - -export type SendVerificationCodeMutationVariables = Exact<{ - input: SendVerificationCodeInput -}> - -export type SendVerificationCodeMutation = { - __typename?: 'Mutation' - sendVerificationCode?: boolean | null -} - -export type ToggleBlockUserMutationVariables = Exact<{ - id: Scalars['ID']['input'] - enabled?: InputMaybe -}> - -export type ToggleBlockUserMutation = { - __typename?: 'Mutation' - toggleBlockUser: { __typename?: 'User'; id: string; isBlocked: boolean } -} - -export type ToggleBookmarkArticleMutationVariables = Exact<{ - id: Scalars['ID']['input'] - enabled?: InputMaybe -}> - -export type ToggleBookmarkArticleMutation = { - __typename?: 'Mutation' - toggleBookmarkArticle: { - __typename?: 'Article' - id: string - bookmarked: boolean - } -} - -export type ToggleBookmarkTagMutationVariables = Exact<{ - id: Scalars['ID']['input'] - enabled?: InputMaybe -}> - -export type ToggleBookmarkTagMutation = { - __typename?: 'Mutation' - toggleBookmarkTag: { - __typename?: 'Tag' - id: string - isFollower?: boolean | null - } -} - -export type ToggleFollowCircleMutationVariables = Exact<{ - id: Scalars['ID']['input'] - enabled?: InputMaybe -}> - -export type ToggleFollowCircleMutation = { - __typename?: 'Mutation' - toggleFollowCircle: { __typename?: 'Circle'; id: string; isFollower: boolean } -} - -export type ToggleFollowUserMutationVariables = Exact<{ - id: Scalars['ID']['input'] - enabled?: InputMaybe -}> - -export type ToggleFollowUserMutation = { - __typename?: 'Mutation' - toggleFollowUser: { - __typename?: 'User' - id: string - isFollowee: boolean - isFollower: boolean - } -} - -export type TogglePinChannelArticlesMutationVariables = Exact<{ - channels: Array | Scalars['ID']['input'] - articles: Array | Scalars['ID']['input'] - pinned: Scalars['Boolean']['input'] -}> - -export type TogglePinChannelArticlesMutation = { - __typename?: 'Mutation' - togglePinChannelArticles: Array< - | { __typename?: 'CurationChannel'; id: string; shortHash: string } - | { __typename?: 'Tag'; id: string; shortHash: string } - | { __typename?: 'TopicChannel'; id: string; shortHash: string } - | { __typename?: 'WritingChallenge'; id: string; shortHash: string } - > -} - -export type BatchPinUnpinChannelArticlesMutationVariables = Exact<{ - pinChannels: Array | Scalars['ID']['input'] - unpinChannels: Array | Scalars['ID']['input'] - articles: Array | Scalars['ID']['input'] -}> - -export type BatchPinUnpinChannelArticlesMutation = { - __typename?: 'Mutation' - pinChannelArticles: Array< - | { __typename?: 'CurationChannel'; id: string; shortHash: string } - | { __typename?: 'Tag'; id: string; shortHash: string } - | { __typename?: 'TopicChannel'; id: string; shortHash: string } - | { __typename?: 'WritingChallenge'; id: string; shortHash: string } - > - unpinChannelArticles: Array< - | { __typename?: 'CurationChannel'; id: string; shortHash: string } - | { __typename?: 'Tag'; id: string; shortHash: string } - | { __typename?: 'TopicChannel'; id: string; shortHash: string } - | { __typename?: 'WritingChallenge'; id: string; shortHash: string } - > -} - -export type ToggleArticlePinCommentMutationVariables = Exact<{ - id: Scalars['ID']['input'] - enabled?: InputMaybe -}> - -export type ToggleArticlePinCommentMutation = { - __typename?: 'Mutation' - togglePinComment: { - __typename?: 'Comment' - id: string - pinned: boolean - node: - | { __typename?: 'Article'; id: string; pinCommentLeft: number } - | { __typename?: 'ArticleVersion' } - | { __typename?: 'Circle' } - | { __typename?: 'Collection' } - | { __typename?: 'Comment' } - | { __typename?: 'CurationChannel' } - | { __typename?: 'Draft' } - | { __typename?: 'IcymiTopic' } - | { __typename?: 'Moment' } - | { __typename?: 'Report' } - | { __typename?: 'Tag' } - | { __typename?: 'TopicChannel' } - | { __typename?: 'User' } - | { __typename?: 'WritingChallenge' } - } -} - -export type ToggleCirclePinCommentMutationVariables = Exact<{ - id: Scalars['ID']['input'] - enabled?: InputMaybe -}> - -export type ToggleCirclePinCommentMutation = { - __typename?: 'Mutation' - togglePinComment: { - __typename?: 'Comment' - id: string - pinned: boolean - node: - | { __typename?: 'Article' } - | { __typename?: 'ArticleVersion' } - | { __typename?: 'Circle'; id: string } - | { __typename?: 'Collection' } - | { __typename?: 'Comment' } - | { __typename?: 'CurationChannel' } - | { __typename?: 'Draft' } - | { __typename?: 'IcymiTopic' } - | { __typename?: 'Moment' } - | { __typename?: 'Report' } - | { __typename?: 'Tag' } - | { __typename?: 'TopicChannel' } - | { __typename?: 'User' } - | { __typename?: 'WritingChallenge' } - } -} - -export type SingleFileUploadMutationVariables = Exact<{ - input: SingleFileUploadInput -}> - -export type SingleFileUploadMutation = { - __typename?: 'Mutation' - singleFileUpload: { - __typename?: 'Asset' - id: string - type: AssetType - path: string - draft?: boolean | null - uploadURL?: string | null - } -} - -export type DirectImageUploadMutationVariables = Exact<{ - input: DirectImageUploadInput -}> - -export type DirectImageUploadMutation = { - __typename?: 'Mutation' - directImageUpload: { - __typename?: 'Asset' - id: string - type: AssetType - path: string - draft?: boolean | null - uploadURL?: string | null - } -} - -export type DirectImageUploadDoneMutationVariables = Exact<{ - url: Scalars['url_String_format_uri']['input'] - type: AssetType - entityType: EntityType - entityId?: InputMaybe -}> - -export type DirectImageUploadDoneMutation = { - __typename?: 'Mutation' - directImageUpload: { - __typename?: 'Asset' - id: string - type: AssetType - path: string - draft?: boolean | null - uploadURL?: string | null - } -} - -export type UserLogoutMutationVariables = Exact<{ [key: string]: never }> - -export type UserLogoutMutation = { - __typename?: 'Mutation' - userLogout: boolean -} - -export type ConfirmVerificationCodeMutationVariables = Exact<{ - input: ConfirmVerificationCodeInput -}> - -export type ConfirmVerificationCodeMutation = { - __typename?: 'Mutation' - confirmVerificationCode: string -} - -export type VoteCommentMutationVariables = Exact<{ - id: Scalars['ID']['input'] - vote: Vote -}> - -export type VoteCommentMutation = { - __typename?: 'Mutation' - voteComment: { - __typename?: 'Comment' - id: string - upvotes: number - downvotes: number - myVote?: Vote | null - } -} - -export type UnvoteCommentMutationVariables = Exact<{ - id: Scalars['ID']['input'] -}> - -export type UnvoteCommentMutation = { - __typename?: 'Mutation' - unvoteComment: { - __typename?: 'Comment' - id: string - upvotes: number - downvotes: number - myVote?: Vote | null - } -} - -export type WalletLoginMutationVariables = Exact<{ - input: WalletLoginInput -}> - -export type WalletLoginMutation = { - __typename?: 'Mutation' - walletLogin: { - __typename?: 'AuthResult' - token?: string | null - auth: boolean - type: AuthResultType - user?: { - __typename?: 'User' - id: string - settings: { __typename?: 'UserSettings'; language: UserLanguage } - info: { __typename?: 'UserInfo'; group: UserGroup } - } | null - } -} - -export type AddWalletLoginMutationVariables = Exact<{ - input: WalletLoginInput -}> - -export type AddWalletLoginMutation = { - __typename?: 'Mutation' - addWalletLogin: { - __typename?: 'User' - id: string - info: { __typename?: 'UserInfo'; ethAddress?: string | null } - } -} - -export type ChannelByShortHashQueryVariables = Exact<{ - shortHash: Scalars['String']['input'] - userLanguage: UserLanguage -}> - -export type ChannelByShortHashQuery = { - __typename?: 'Query' - channel?: - | { - __typename?: 'CurationChannel' - name: string - note?: string | null - id: string - } - | { __typename?: 'Tag'; id: string } - | { - __typename?: 'TopicChannel' - name: string - note?: string | null - id: string - } - | { __typename?: 'WritingChallenge'; name: string; id: string } - | null -} - -export type CircleFollowerCountQueryVariables = Exact<{ - name: Scalars['String']['input'] -}> - -export type CircleFollowerCountQuery = { - __typename?: 'Query' - circle?: { - __typename?: 'Circle' - id: string - followers: { __typename?: 'UserConnection'; totalCount: number } - } | null -} - -export type ClientPreferenceQueryVariables = Exact<{ [key: string]: never }> - -export type ClientPreferenceQuery = { - __typename?: 'Query' - clientPreference: { - __typename?: 'ClientPreference' - id: string - wall: boolean - circleBanner: boolean - } -} - -export type DraftPublishStateQueryVariables = Exact<{ - id: Scalars['ID']['input'] -}> - -export type DraftPublishStateQuery = { - __typename?: 'Query' - node?: - | { __typename?: 'Article' } - | { __typename?: 'ArticleVersion' } - | { __typename?: 'Circle' } - | { __typename?: 'Collection' } - | { __typename?: 'Comment' } - | { __typename?: 'CurationChannel' } - | { - __typename?: 'Draft' - id: string - publishState: PublishState - campaigns: Array<{ - __typename?: 'ArticleCampaign' - campaign: { __typename?: 'WritingChallenge'; id: string } - }> - access: { - __typename?: 'DraftAccess' - circle?: { __typename?: 'Circle'; id: string } | null - } - article?: { - __typename?: 'Article' - id: string - title: string - slug: string - shortHash: string - author: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - } - tags?: Array<{ - __typename?: 'Tag' - id: string - content: string - }> | null - } | null - } - | { __typename?: 'IcymiTopic' } - | { __typename?: 'Moment' } - | { __typename?: 'Report' } - | { __typename?: 'Tag' } - | { __typename?: 'TopicChannel' } - | { __typename?: 'User' } - | { __typename?: 'WritingChallenge' } - | null -} - -export type ExchangeRatesQueryVariables = Exact<{ - from?: InputMaybe - to?: InputMaybe -}> - -export type ExchangeRatesQuery = { - __typename?: 'Query' - exchangeRates?: Array<{ - __typename?: 'ExchangeRate' - from: TransactionCurrency - to: QuoteCurrency - rate: number - updatedAt: any - }> | null -} - -export type LastFetchRandomQueryVariables = Exact<{ [key: string]: never }> - -export type LastFetchRandomQuery = { - __typename?: 'Query' - lastFetchRandom: { - __typename?: 'LastFetchRandom' - id: string - sidebarTags?: number | null - feedTags?: number | null - sidebarAuthors?: number | null - feedAuthors?: number | null - } -} - -export type UnreadNoticeCountQueryVariables = Exact<{ [key: string]: never }> - -export type UnreadNoticeCountQuery = { - __typename?: 'Query' - viewer?: { - __typename?: 'User' - id: string - status?: { __typename?: 'UserStatus'; unreadNoticeCount: number } | null - } | null -} - -export type OauthRequestTokenQueryVariables = Exact<{ [key: string]: never }> - -export type OauthRequestTokenQuery = { - __typename?: 'Query' - oauthRequestToken?: string | null -} - -export type SearchArticlesQueryVariables = Exact<{ - search: Scalars['String']['input'] - filter?: InputMaybe -}> - -export type SearchArticlesQuery = { - __typename?: 'Query' - search: { - __typename?: 'SearchResultConnection' - edges?: Array<{ - __typename?: 'SearchResultEdge' - node: - | { - __typename?: 'Article' - id: string - title: string - slug: string - shortHash: string - state: ArticleState - articleState: ArticleState - author: { - __typename?: 'User' - id: string - userName?: string | null - isBlocking: boolean - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - } - | { __typename?: 'ArticleVersion' } - | { __typename?: 'Circle' } - | { __typename?: 'Collection' } - | { __typename?: 'Comment' } - | { __typename?: 'CurationChannel' } - | { __typename?: 'Draft' } - | { __typename?: 'IcymiTopic' } - | { __typename?: 'Moment' } - | { __typename?: 'Report' } - | { __typename?: 'Tag' } - | { __typename?: 'TopicChannel' } - | { __typename?: 'User' } - | { __typename?: 'WritingChallenge' } - }> | null - } -} - -export type SearchUsersQueryVariables = Exact<{ - search: Scalars['String']['input'] - exclude?: InputMaybe -}> - -export type SearchUsersQuery = { - __typename?: 'Query' - search: { - __typename?: 'SearchResultConnection' - edges?: Array<{ - __typename?: 'SearchResultEdge' - node: - | { __typename?: 'Article' } - | { __typename?: 'ArticleVersion' } - | { __typename?: 'Circle' } - | { __typename?: 'Collection' } - | { __typename?: 'Comment' } - | { __typename?: 'CurationChannel' } - | { __typename?: 'Draft' } - | { __typename?: 'IcymiTopic' } - | { __typename?: 'Moment' } - | { __typename?: 'Report' } - | { __typename?: 'Tag' } - | { __typename?: 'TopicChannel' } - | { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - | { __typename?: 'WritingChallenge' } - }> | null - } -} - -export type TagArticlesPublicQueryVariables = Exact<{ - id: Scalars['ID']['input'] - after?: InputMaybe - sortBy?: InputMaybe -}> - -export type TagArticlesPublicQuery = { - __typename?: 'Query' - node?: - | { __typename?: 'Article' } - | { __typename?: 'ArticleVersion' } - | { __typename?: 'Circle' } - | { __typename?: 'Collection' } - | { __typename?: 'Comment' } - | { __typename?: 'CurationChannel' } - | { __typename?: 'Draft' } - | { __typename?: 'IcymiTopic' } - | { __typename?: 'Moment' } - | { __typename?: 'Report' } - | { - __typename?: 'Tag' - id: string - articles: { - __typename?: 'ChannelArticleConnection' - pageInfo: { - __typename?: 'PageInfo' - startCursor?: string | null - endCursor?: string | null - hasNextPage: boolean - } - edges?: Array<{ - __typename?: 'ChannelArticleEdge' - cursor: string - node: { - __typename?: 'Article' - id: string - title: string - slug: string - shortHash: string - displayCover?: string | null - summary: string - createdAt: any - readTime: number - bookmarked: boolean - pinned: boolean - revisionCount: number - articleState: ArticleState - author: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ - __typename?: 'Badge' - type: BadgeType - }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - access: { - __typename?: 'ArticleAccess' - type: ArticleAccessType - circle?: { - __typename?: 'Circle' - id: string - name: string - displayName: string - } | null - } - collections: { - __typename?: 'CollectionConnection' - edges?: Array<{ - __typename?: 'CollectionEdge' - node: { - __typename?: 'Collection' - id: string - title: string - articles: { - __typename?: 'ArticleConnection' - totalCount: number - } - } - }> | null - } - campaigns: Array<{ - __typename?: 'ArticleCampaign' - campaign: { - __typename?: 'WritingChallenge' - id: string - name: string - shortHash: string - nameZhHant: string - nameZhHans: string - nameEn: string - } - stage?: { __typename?: 'CampaignStage'; id: string } | null - }> - tags?: Array<{ - __typename?: 'Tag' - id: string - content: string - }> | null - donations: { - __typename?: 'ArticleDonationConnection' - totalCount: number - } - likesReceived: { - __typename?: 'AppreciationConnection' - totalCount: number - } - donationsDialog: { - __typename?: 'ArticleDonationConnection' - totalCount: number - } - } - }> | null - } - } - | { __typename?: 'TopicChannel' } - | { __typename?: 'User' } - | { __typename?: 'WritingChallenge' } - | null -} - -export type TagArticlesPrivateQueryVariables = Exact<{ - ids: Array | Scalars['ID']['input'] -}> - -export type TagArticlesPrivateQuery = { - __typename?: 'Query' - nodes?: Array< - | { __typename?: 'Article'; id: string; bookmarked: boolean } - | { __typename?: 'ArticleVersion'; id: string } - | { __typename?: 'Circle'; id: string } - | { __typename?: 'Collection'; id: string } - | { __typename?: 'Comment'; id: string } - | { __typename?: 'CurationChannel'; id: string } - | { __typename?: 'Draft'; id: string } - | { __typename?: 'IcymiTopic'; id: string } - | { __typename?: 'Moment'; id: string } - | { __typename?: 'Report'; id: string } - | { __typename?: 'Tag'; id: string } - | { __typename?: 'TopicChannel'; id: string } - | { __typename?: 'User'; id: string } - | { __typename?: 'WritingChallenge'; id: string } - > | null -} - -export type UnreadFollowingQueryVariables = Exact<{ [key: string]: never }> - -export type UnreadFollowingQuery = { - __typename?: 'Query' - viewer?: { - __typename?: 'User' - id: string - status?: { __typename?: 'UserStatus'; unreadFollowing: boolean } | null - } | null -} - -export type UserFollowerCountQueryVariables = Exact<{ - userName: Scalars['String']['input'] -}> - -export type UserFollowerCountQuery = { - __typename?: 'Query' - user?: { - __typename?: 'User' - id: string - followers: { __typename?: 'UserConnection'; totalCount: number } - } | null -} - -export type WalletBalanceQueryVariables = Exact<{ [key: string]: never }> - -export type WalletBalanceQuery = { - __typename?: 'Query' - viewer?: { - __typename?: 'User' - id: string - wallet: { - __typename?: 'Wallet' - balance: { __typename?: 'Balance'; HKD: number } - stripeAccount?: { __typename?: 'StripeAccount'; id: string } | null - } - liker: { __typename?: 'Liker'; total: number } - } | null -} - -export type ViewerEmailQueryVariables = Exact<{ [key: string]: never }> - -export type ViewerEmailQuery = { - __typename?: 'Query' - viewer?: { - __typename?: 'User' - id: string - info: { - __typename?: 'UserInfo' - email?: any | null - emailVerified: boolean - } - } | null -} - -export type MeNoticesQueryVariables = Exact<{ - after?: InputMaybe -}> - -export type MeNoticesQuery = { - __typename?: 'Query' - viewer?: { - __typename?: 'User' - id: string - notices: { - __typename?: 'NoticeConnection' - pageInfo: { - __typename?: 'PageInfo' - startCursor?: string | null - endCursor?: string | null - hasNextPage: boolean - } - edges?: Array<{ - __typename?: 'NoticeEdge' - cursor: string - node: - | { - __typename: 'ArticleArticleNotice' - id: string - createdAt: any - unread: boolean - articleArticleNoticeType: ArticleArticleNoticeType - actors?: Array<{ - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ - __typename?: 'Badge' - type: BadgeType - }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - }> | null - article: { - __typename?: 'Article' - id: string - title: string - slug: string - shortHash: string - summary: string - articleState: ArticleState - author: { - __typename?: 'User' - id: string - userName?: string | null - } - } - collection: { - __typename?: 'Article' - id: string - summary: string - title: string - slug: string - shortHash: string - articleState: ArticleState - author: { - __typename?: 'User' - id: string - userName?: string | null - } - } - } - | { - __typename: 'ArticleNotice' - id: string - createdAt: any - unread: boolean - articleNoticeType: ArticleNoticeType - actors?: Array<{ - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ - __typename?: 'Badge' - type: BadgeType - }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - }> | null - article: { - __typename?: 'Article' - id: string - summary: string - title: string - slug: string - shortHash: string - articleState: ArticleState - author: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { - __typename?: 'UserStatus' - state: UserState - } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ - __typename?: 'Badge' - type: BadgeType - }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - access: { - __typename?: 'ArticleAccess' - circle?: { - __typename?: 'Circle' - id: string - name: string - displayName: string - } | null - } - } - entities: Array< - | { __typename?: 'Article'; id: string } - | { __typename?: 'ArticleVersion'; id: string } - | { __typename?: 'Circle'; id: string } - | { __typename?: 'Collection'; id: string } - | { __typename?: 'Comment'; id: string } - | { __typename?: 'CurationChannel'; id: string } - | { __typename?: 'Draft'; id: string } - | { __typename?: 'IcymiTopic'; id: string } - | { __typename?: 'Moment'; id: string } - | { __typename?: 'Report'; id: string } - | { __typename?: 'Tag'; id: string } - | { __typename?: 'TopicChannel'; id: string } - | { __typename?: 'User'; id: string } - | { __typename?: 'WritingChallenge'; id: string } - > - } - | { - __typename: 'CampaignArticleNotice' - id: string - createdAt: any - unread: boolean - campaignArticleNoticeType: CampaignArticleNoticeType - actors?: Array<{ - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ - __typename?: 'Badge' - type: BadgeType - }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - }> | null - campaign: { - __typename?: 'WritingChallenge' - id: string - shortHash: string - } - article: { - __typename?: 'Article' - id: string - summary: string - title: string - slug: string - shortHash: string - articleState: ArticleState - author: { - __typename?: 'User' - id: string - userName?: string | null - } - } - } - | { - __typename: 'CircleNotice' - id: string - createdAt: any - unread: boolean - circleNoticeType: CircleNoticeType - actors?: Array<{ - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - isFollower: boolean - isFollowee: boolean - status?: { __typename?: 'UserStatus'; state: UserState } | null - info: { - __typename?: 'UserInfo' - description?: string | null - badges?: Array<{ - __typename?: 'Badge' - type: BadgeType - }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - liker: { __typename?: 'Liker'; civicLiker: boolean } - }> | null - circle: { - __typename?: 'Circle' - id: string - name: string - displayName: string - description?: string | null - avatar?: string | null - invitedBy?: { - __typename?: 'Invitation' - id: string - freePeriod: number - } | null - owner: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { - __typename?: 'UserStatus' - state: UserState - } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ - __typename?: 'Badge' - type: BadgeType - }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - members: { __typename?: 'MemberConnection'; totalCount: number } - works: { __typename?: 'ArticleConnection'; totalCount: number } - prices?: Array<{ - __typename?: 'Price' - amount: number - currency: TransactionCurrency - }> | null - } - comments?: Array<{ - __typename?: 'Comment' - id: string - type: CommentType - content?: string | null - state: CommentState - parentComment?: { __typename?: 'Comment'; id: string } | null - node: - | { - __typename?: 'Article' - id: string - title: string - slug: string - shortHash: string - articleState: ArticleState - author: { - __typename?: 'User' - id: string - userName?: string | null - } - } - | { __typename?: 'ArticleVersion' } - | { __typename?: 'Circle'; id: string; name: string } - | { __typename?: 'Collection' } - | { __typename?: 'Comment' } - | { __typename?: 'CurationChannel' } - | { __typename?: 'Draft' } - | { __typename?: 'IcymiTopic' } - | { - __typename?: 'Moment' - id: string - shortHash: string - momentState: MomentState - } - | { __typename?: 'Report' } - | { __typename?: 'Tag' } - | { __typename?: 'TopicChannel' } - | { __typename?: 'User' } - | { __typename?: 'WritingChallenge' } - comments: { - __typename?: 'CommentConnection' - totalCount: number - } - communityWatchAction?: { - __typename?: 'CommunityWatchAction' - uuid: string - } | null - author: { __typename?: 'User'; id: string; isBlocked: boolean } - }> | null - replies?: Array<{ - __typename?: 'Comment' - id: string - type: CommentType - content?: string | null - state: CommentState - parentComment?: { __typename?: 'Comment'; id: string } | null - author: { __typename?: 'User'; id: string; isBlocked: boolean } - replyTo?: { - __typename?: 'Comment' - author: { __typename?: 'User'; id: string } - } | null - node: - | { - __typename?: 'Article' - id: string - title: string - slug: string - shortHash: string - articleState: ArticleState - author: { - __typename?: 'User' - id: string - userName?: string | null - } - } - | { __typename?: 'ArticleVersion' } - | { __typename?: 'Circle'; id: string; name: string } - | { __typename?: 'Collection' } - | { __typename?: 'Comment' } - | { __typename?: 'CurationChannel' } - | { __typename?: 'Draft' } - | { __typename?: 'IcymiTopic' } - | { - __typename?: 'Moment' - id: string - shortHash: string - momentState: MomentState - } - | { __typename?: 'Report' } - | { __typename?: 'Tag' } - | { __typename?: 'TopicChannel' } - | { __typename?: 'User' } - | { __typename?: 'WritingChallenge' } - comments: { - __typename?: 'CommentConnection' - totalCount: number - } - communityWatchAction?: { - __typename?: 'CommunityWatchAction' - uuid: string - } | null - }> | null - mentions?: Array<{ - __typename?: 'Comment' - id: string - type: CommentType - content?: string | null - state: CommentState - parentComment?: { __typename?: 'Comment'; id: string } | null - node: - | { - __typename?: 'Article' - id: string - title: string - slug: string - shortHash: string - articleState: ArticleState - author: { - __typename?: 'User' - id: string - userName?: string | null - } - } - | { __typename?: 'ArticleVersion' } - | { __typename?: 'Circle'; id: string; name: string } - | { __typename?: 'Collection' } - | { __typename?: 'Comment' } - | { __typename?: 'CurationChannel' } - | { __typename?: 'Draft' } - | { __typename?: 'IcymiTopic' } - | { - __typename?: 'Moment' - id: string - shortHash: string - momentState: MomentState - } - | { __typename?: 'Report' } - | { __typename?: 'Tag' } - | { __typename?: 'TopicChannel' } - | { __typename?: 'User' } - | { __typename?: 'WritingChallenge' } - comments: { - __typename?: 'CommentConnection' - totalCount: number - } - communityWatchAction?: { - __typename?: 'CommunityWatchAction' - uuid: string - } | null - author: { __typename?: 'User'; id: string; isBlocked: boolean } - }> | null - } - | { - __typename: 'CollectionNotice' - id: string - createdAt: any - unread: boolean - actors?: Array<{ - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ - __typename?: 'Badge' - type: BadgeType - }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - }> | null - collection: { - __typename?: 'Collection' - id: string - title: string - author: { - __typename?: 'User' - id: string - userName?: string | null - } - } - } - | { - __typename: 'CommentCommentNotice' - id: string - createdAt: any - unread: boolean - commentCommentNoticeType: CommentCommentNoticeType - actors?: Array<{ - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ - __typename?: 'Badge' - type: BadgeType - }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - }> | null - comment: { - __typename?: 'Comment' - id: string - state: CommentState - type: CommentType - content?: string | null - node: - | { - __typename?: 'Article' - id: string - title: string - slug: string - shortHash: string - articleState: ArticleState - author: { - __typename?: 'User' - id: string - userName?: string | null - } - } - | { __typename?: 'ArticleVersion' } - | { __typename?: 'Circle'; id: string; name: string } - | { __typename?: 'Collection' } - | { __typename?: 'Comment' } - | { __typename?: 'CurationChannel' } - | { __typename?: 'Draft' } - | { __typename?: 'IcymiTopic' } - | { - __typename?: 'Moment' - id: string - shortHash: string - momentState: MomentState - } - | { __typename?: 'Report' } - | { __typename?: 'Tag' } - | { __typename?: 'TopicChannel' } - | { __typename?: 'User' } - | { __typename?: 'WritingChallenge' } - parentComment?: { __typename?: 'Comment'; id: string } | null - comments: { - __typename?: 'CommentConnection' - totalCount: number - } - communityWatchAction?: { - __typename?: 'CommunityWatchAction' - uuid: string - } | null - author: { __typename?: 'User'; id: string; isBlocked: boolean } - } - reply: { - __typename?: 'Comment' - id: string - state: CommentState - type: CommentType - content?: string | null - node: - | { - __typename?: 'Article' - id: string - title: string - slug: string - shortHash: string - summary: string - articleState: ArticleState - author: { - __typename?: 'User' - id: string - userName?: string | null - } - } - | { __typename?: 'ArticleVersion' } - | { - __typename?: 'Circle' - id: string - name: string - displayName: string - } - | { __typename?: 'Collection' } - | { __typename?: 'Comment' } - | { __typename?: 'CurationChannel' } - | { __typename?: 'Draft' } - | { __typename?: 'IcymiTopic' } - | { - __typename?: 'Moment' - id: string - shortHash: string - momentState: MomentState - } - | { __typename?: 'Report' } - | { __typename?: 'Tag' } - | { __typename?: 'TopicChannel' } - | { __typename?: 'User' } - | { __typename?: 'WritingChallenge' } - parentComment?: { __typename?: 'Comment'; id: string } | null - comments: { - __typename?: 'CommentConnection' - totalCount: number - } - communityWatchAction?: { - __typename?: 'CommunityWatchAction' - uuid: string - } | null - author: { __typename?: 'User'; id: string; isBlocked: boolean } - } - } - | { - __typename: 'CommentNotice' - id: string - createdAt: any - unread: boolean - commentNoticeType: CommentNoticeType - actors?: Array<{ - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ - __typename?: 'Badge' - type: BadgeType - }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - }> | null - comment: { - __typename?: 'Comment' - id: string - state: CommentState - type: CommentType - content?: string | null - node: - | { - __typename?: 'Article' - id: string - title: string - slug: string - shortHash: string - summary: string - articleState: ArticleState - author: { - __typename?: 'User' - id: string - userName?: string | null - } - } - | { __typename?: 'ArticleVersion' } - | { - __typename?: 'Circle' - id: string - name: string - displayName: string - } - | { __typename?: 'Collection' } - | { __typename?: 'Comment' } - | { __typename?: 'CurationChannel' } - | { __typename?: 'Draft' } - | { __typename?: 'IcymiTopic' } - | { - __typename?: 'Moment' - state: MomentState - id: string - shortHash: string - content?: string | null - momentState: MomentState - assets: Array<{ - __typename?: 'Asset' - id: string - path: string - }> - } - | { __typename?: 'Report' } - | { __typename?: 'Tag' } - | { __typename?: 'TopicChannel' } - | { __typename?: 'User' } - | { __typename?: 'WritingChallenge' } - parentComment?: { __typename?: 'Comment'; id: string } | null - comments: { - __typename?: 'CommentConnection' - totalCount: number - } - communityWatchAction?: { - __typename?: 'CommunityWatchAction' - uuid: string - } | null - author: { __typename?: 'User'; id: string; isBlocked: boolean } - } - } - | { - __typename: 'MomentNotice' - id: string - createdAt: any - unread: boolean - momentNoticeType: MomentNoticeType - actors?: Array<{ - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ - __typename?: 'Badge' - type: BadgeType - }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - }> | null - moment: { - __typename?: 'Moment' - id: string - state: MomentState - content?: string | null - shortHash: string - assets: Array<{ - __typename?: 'Asset' - id: string - path: string - }> - } - } - | { - __typename: 'OfficialAnnouncementNotice' - id: string - createdAt: any - unread: boolean - link?: string | null - message: string - } - | { - __typename: 'TransactionNotice' - id: string - createdAt: any - unread: boolean - txNoticeType: TransactionNoticeType - actors?: Array<{ - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ - __typename?: 'Badge' - type: BadgeType - }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - }> | null - tx: { - __typename?: 'Transaction' - id: string - amount: number - currency: TransactionCurrency - state: TransactionState - target?: - | { - __typename: 'Article' - id: string - summary: string - title: string - slug: string - shortHash: string - articleState: ArticleState - author: { - __typename?: 'User' - id: string - userName?: string | null - } - } - | { __typename: 'Circle' } - | { __typename: 'Transaction' } - | null - blockchainTx?: { - __typename?: 'BlockchainTransaction' - chain: Chain - txHash: string - } | null - } - } - | { - __typename: 'UserNotice' - id: string - createdAt: any - unread: boolean - userNoticeType: UserNoticeType - actors?: Array<{ - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ - __typename?: 'Badge' - type: BadgeType - }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - }> | null - } - }> | null - } - } | null -} - -export type MarkAllNoticesAsReadMutationVariables = Exact<{ - [key: string]: never -}> - -export type MarkAllNoticesAsReadMutation = { - __typename?: 'Mutation' - markAllNoticesAsRead?: boolean | null -} - -export type MomentDigestAssetsMomentFragment = { - __typename?: 'Moment' - assets: Array<{ __typename?: 'Asset'; id: string; path: string }> -} - -export type MomentDigestDetailMomentFragment = { - __typename?: 'Moment' - id: string - createdAt: any - shortHash: string - state: MomentState - content?: string | null - author: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - assets: Array<{ __typename?: 'Asset'; id: string; path: string }> -} - -export type DeleteMomentMutationVariables = Exact<{ - id: Scalars['ID']['input'] -}> - -export type DeleteMomentMutation = { - __typename?: 'Mutation' - deleteMoment: { __typename?: 'Moment'; id: string; momentState: MomentState } -} - -export type MomentDigestDropdownActionsMomentFragment = { - __typename?: 'Moment' - id: string - state: MomentState - author: { __typename?: 'User'; id: string; userName?: string | null } -} - -export type MomentDigestFeedMomentPublicFragment = { - __typename?: 'Moment' - id: string - createdAt: any - shortHash: string - state: MomentState - content?: string | null - commentCount: number - likeCount: number - author: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - assets: Array<{ __typename?: 'Asset'; id: string; path: string }> -} - -export type MomentDigestFeedMomentPrivateFragment = { - __typename?: 'Moment' - id: string - liked: boolean - commentedFollowees: Array<{ - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - }> -} - -export type MomentDigestFooterActionsCommentedFolloweesMomentFragment = { - __typename?: 'Moment' - id: string - commentedFollowees: Array<{ - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - }> -} - -export type MomentDigestFooterActionsLikeButtonMomentPublicFragment = { - __typename?: 'Moment' - id: string - likeCount: number -} - -export type MomentDigestFooterActionsLikeButtonMomentPrivateFragment = { - __typename?: 'Moment' - id: string - liked: boolean -} - -export type MomentDigestFooterActionsReplyButtonMomentFragment = { - __typename?: 'Moment' - id: string - commentCount: number -} - -export type MomentDigestFooterActionsMomentPublicFragment = { - __typename?: 'Moment' - id: string - commentCount: number - likeCount: number - state: MomentState - author: { __typename?: 'User'; id: string; userName?: string | null } -} - -export type MomentDigestFooterActionsMomentPrivateFragment = { - __typename?: 'Moment' - id: string - liked: boolean - commentedFollowees: Array<{ - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - }> -} - -export type ActorActionUserFragment = { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null -} - -export type ActorNameUserFragment = { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null -} - -export type ArticleNewCollectedFragment = { - __typename: 'ArticleArticleNotice' - id: string - unread: boolean - createdAt: any - actors?: Array<{ - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - }> | null - article: { - __typename?: 'Article' - id: string - title: string - slug: string - shortHash: string - summary: string - articleState: ArticleState - author: { __typename?: 'User'; id: string; userName?: string | null } - } - collection: { - __typename?: 'Article' - id: string - summary: string - title: string - slug: string - shortHash: string - articleState: ArticleState - author: { __typename?: 'User'; id: string; userName?: string | null } - } -} - -export type ArticleNewCollectedNoticeFragment = { - __typename: 'ArticleArticleNotice' - id: string - unread: boolean - createdAt: any - actors?: Array<{ - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - }> | null - article: { - __typename?: 'Article' - id: string - title: string - slug: string - shortHash: string - articleState: ArticleState - author: { __typename?: 'User'; id: string; userName?: string | null } - } - collection: { - __typename?: 'Article' - id: string - summary: string - title: string - slug: string - shortHash: string - articleState: ArticleState - author: { __typename?: 'User'; id: string; userName?: string | null } - } -} - -export type ArticleArticleNoticeFragment = { - __typename: 'ArticleArticleNotice' - id: string - unread: boolean - createdAt: any - articleArticleNoticeType: ArticleArticleNoticeType - actors?: Array<{ - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - }> | null - article: { - __typename?: 'Article' - id: string - title: string - slug: string - shortHash: string - summary: string - articleState: ArticleState - author: { __typename?: 'User'; id: string; userName?: string | null } - } - collection: { - __typename?: 'Article' - id: string - summary: string - title: string - slug: string - shortHash: string - articleState: ArticleState - author: { __typename?: 'User'; id: string; userName?: string | null } - } -} - -export type ArticleCardArticleFragment = { - __typename?: 'Article' - id: string - summary: string - title: string - slug: string - shortHash: string - articleState: ArticleState - author: { __typename?: 'User'; id: string; userName?: string | null } -} - -export type ArticleMentionedYouFragment = { - __typename?: 'ArticleNotice' - id: string - createdAt: any - actors?: Array<{ - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - }> | null - article: { - __typename?: 'Article' - id: string - summary: string - title: string - slug: string - shortHash: string - articleState: ArticleState - author: { __typename?: 'User'; id: string; userName?: string | null } - } -} - -export type ArticleMentionedYouNoticeFragment = { - __typename?: 'ArticleNotice' - id: string - createdAt: any - actors?: Array<{ - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - }> | null - article: { - __typename?: 'Article' - id: string - summary: string - title: string - slug: string - shortHash: string - articleState: ArticleState - author: { __typename?: 'User'; id: string; userName?: string | null } - } -} - -export type ArticleNewAppreciationFragment = { - __typename?: 'ArticleNotice' - id: string - createdAt: any - actors?: Array<{ - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - }> | null - article: { - __typename?: 'Article' - id: string - summary: string - title: string - slug: string - shortHash: string - articleState: ArticleState - author: { __typename?: 'User'; id: string; userName?: string | null } - } -} - -export type ArticleNewAppreciationNoticeFragment = { - __typename?: 'ArticleNotice' - id: string - createdAt: any - actors?: Array<{ - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - }> | null - article: { - __typename?: 'Article' - id: string - summary: string - title: string - slug: string - shortHash: string - articleState: ArticleState - author: { __typename?: 'User'; id: string; userName?: string | null } - } -} - -export type ArticleNewSubscriberFragment = { - __typename?: 'ArticleNotice' - id: string - createdAt: any - actors?: Array<{ - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - }> | null - article: { - __typename?: 'Article' - id: string - summary: string - title: string - slug: string - shortHash: string - articleState: ArticleState - author: { __typename?: 'User'; id: string; userName?: string | null } - } -} - -export type ArticleNewSubscriberNoticeFragment = { - __typename?: 'ArticleNotice' - id: string - createdAt: any - actors?: Array<{ - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - }> | null - article: { - __typename?: 'Article' - id: string - summary: string - title: string - slug: string - shortHash: string - articleState: ArticleState - author: { __typename?: 'User'; id: string; userName?: string | null } - } -} - -export type ArticlePublishedFragment = { - __typename?: 'ArticleNotice' - id: string - createdAt: any - article: { - __typename?: 'Article' - id: string - summary: string - title: string - slug: string - shortHash: string - articleState: ArticleState - author: { __typename?: 'User'; id: string; userName?: string | null } - } -} - -export type ArticlePublishedNoticeFragment = { - __typename?: 'ArticleNotice' - id: string - createdAt: any - article: { - __typename?: 'Article' - id: string - summary: string - title: string - slug: string - shortHash: string - articleState: ArticleState - author: { __typename?: 'User'; id: string; userName?: string | null } - } -} - -export type CircleNewArticleNoticeFragment = { - __typename?: 'ArticleNotice' - id: string - createdAt: any - article: { - __typename?: 'Article' - id: string - summary: string - title: string - slug: string - shortHash: string - articleState: ArticleState - author: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - access: { - __typename?: 'ArticleAccess' - circle?: { - __typename?: 'Circle' - id: string - name: string - displayName: string - } | null - } - } -} - -export type RevisedArticleNotPublishedNoticeFragment = { - __typename?: 'ArticleNotice' - id: string - createdAt: any - article: { - __typename?: 'Article' - id: string - summary: string - title: string - slug: string - shortHash: string - articleState: ArticleState - author: { __typename?: 'User'; id: string; userName?: string | null } - } -} - -export type RevisedArticlePublishedNoticeFragment = { - __typename?: 'ArticleNotice' - id: string - createdAt: any - article: { - __typename?: 'Article' - id: string - summary: string - title: string - slug: string - shortHash: string - articleState: ArticleState - author: { __typename?: 'User'; id: string; userName?: string | null } - } -} - -export type ScheduledArticlePublishedFragment = { - __typename?: 'ArticleNotice' - id: string - createdAt: any - article: { - __typename?: 'Article' - id: string - summary: string - title: string - slug: string - shortHash: string - articleState: ArticleState - author: { __typename?: 'User'; id: string; userName?: string | null } - } - entities: Array< - | { __typename?: 'Article'; id: string } - | { __typename?: 'ArticleVersion'; id: string } - | { __typename?: 'Circle'; id: string } - | { __typename?: 'Collection'; id: string } - | { __typename?: 'Comment'; id: string } - | { __typename?: 'CurationChannel'; id: string } - | { __typename?: 'Draft'; id: string } - | { __typename?: 'IcymiTopic'; id: string } - | { __typename?: 'Moment'; id: string } - | { __typename?: 'Report'; id: string } - | { __typename?: 'Tag'; id: string } - | { __typename?: 'TopicChannel'; id: string } - | { __typename?: 'User'; id: string } - | { __typename?: 'WritingChallenge'; id: string } - > -} - -export type ScheduledArticlePublishedNoticeFragment = { - __typename?: 'ArticleNotice' - id: string - createdAt: any - article: { - __typename?: 'Article' - id: string - summary: string - title: string - slug: string - shortHash: string - articleState: ArticleState - author: { __typename?: 'User'; id: string; userName?: string | null } - } - entities: Array< - | { __typename?: 'Article'; id: string } - | { __typename?: 'ArticleVersion'; id: string } - | { __typename?: 'Circle'; id: string } - | { __typename?: 'Collection'; id: string } - | { __typename?: 'Comment'; id: string } - | { __typename?: 'CurationChannel'; id: string } - | { __typename?: 'Draft'; id: string } - | { __typename?: 'IcymiTopic'; id: string } - | { __typename?: 'Moment'; id: string } - | { __typename?: 'Report'; id: string } - | { __typename?: 'Tag'; id: string } - | { __typename?: 'TopicChannel'; id: string } - | { __typename?: 'User'; id: string } - | { __typename?: 'WritingChallenge'; id: string } - > -} - -export type TopicChannelFeedbackAcceptedFragment = { - __typename?: 'ArticleNotice' - id: string - createdAt: any - article: { - __typename?: 'Article' - id: string - title: string - slug: string - shortHash: string - summary: string - articleState: ArticleState - author: { __typename?: 'User'; id: string; userName?: string | null } - } -} - -export type TopicChannelFeedbackAcceptedNoticeFragment = { - __typename?: 'ArticleNotice' - id: string - createdAt: any - article: { - __typename?: 'Article' - id: string - title: string - slug: string - shortHash: string - articleState: ArticleState - author: { __typename?: 'User'; id: string; userName?: string | null } - } -} - -export type ArticleNoticeFragment = { - __typename: 'ArticleNotice' - id: string - unread: boolean - createdAt: any - articleNoticeType: ArticleNoticeType - actors?: Array<{ - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - }> | null - article: { - __typename?: 'Article' - id: string - summary: string - title: string - slug: string - shortHash: string - articleState: ArticleState - author: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - access: { - __typename?: 'ArticleAccess' - circle?: { - __typename?: 'Circle' - id: string - name: string - displayName: string - } | null - } - } - entities: Array< - | { __typename?: 'Article'; id: string } - | { __typename?: 'ArticleVersion'; id: string } - | { __typename?: 'Circle'; id: string } - | { __typename?: 'Collection'; id: string } - | { __typename?: 'Comment'; id: string } - | { __typename?: 'CurationChannel'; id: string } - | { __typename?: 'Draft'; id: string } - | { __typename?: 'IcymiTopic'; id: string } - | { __typename?: 'Moment'; id: string } - | { __typename?: 'Report'; id: string } - | { __typename?: 'Tag'; id: string } - | { __typename?: 'TopicChannel'; id: string } - | { __typename?: 'User'; id: string } - | { __typename?: 'WritingChallenge'; id: string } - > -} - -export type CampaignArticleFeaturedFragment = { - __typename: 'CampaignArticleNotice' - id: string - unread: boolean - createdAt: any - actors?: Array<{ - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - }> | null - campaign: { __typename?: 'WritingChallenge'; id: string; shortHash: string } - article: { - __typename?: 'Article' - id: string - summary: string - title: string - slug: string - shortHash: string - articleState: ArticleState - author: { __typename?: 'User'; id: string; userName?: string | null } - } -} - -export type CampaignArticleFeaturedNoticeFragment = { - __typename: 'CampaignArticleNotice' - id: string - unread: boolean - createdAt: any - actors?: Array<{ - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - }> | null - campaign: { __typename?: 'WritingChallenge'; id: string; shortHash: string } - article: { - __typename?: 'Article' - id: string - summary: string - title: string - slug: string - shortHash: string - articleState: ArticleState - author: { __typename?: 'User'; id: string; userName?: string | null } - } -} - -export type CampaignArticleNoticeFragment = { - __typename: 'CampaignArticleNotice' - id: string - unread: boolean - createdAt: any - campaignArticleNoticeType: CampaignArticleNoticeType - actors?: Array<{ - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - }> | null - campaign: { __typename?: 'WritingChallenge'; id: string; shortHash: string } - article: { - __typename?: 'Article' - id: string - summary: string - title: string - slug: string - shortHash: string - articleState: ArticleState - author: { __typename?: 'User'; id: string; userName?: string | null } - } -} - -export type CircleInvitationNoticeFragment = { - __typename?: 'CircleNotice' - id: string - createdAt: any - actors?: Array<{ - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - }> | null - circle: { - __typename?: 'Circle' - id: string - name: string - displayName: string - description?: string | null - avatar?: string | null - invitedBy?: { - __typename?: 'Invitation' - id: string - freePeriod: number - } | null - owner: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - members: { __typename?: 'MemberConnection'; totalCount: number } - works: { __typename?: 'ArticleConnection'; totalCount: number } - prices?: Array<{ - __typename?: 'Price' - amount: number - currency: TransactionCurrency - }> | null - } -} - -export type CircleNewBroadcastCommentsFragment = { - __typename?: 'CircleNotice' - id: string - createdAt: any - actors?: Array<{ - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - }> | null - circle: { - __typename?: 'Circle' - id: string - name: string - displayName: string - description?: string | null - avatar?: string | null - owner: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - members: { __typename?: 'MemberConnection'; totalCount: number } - works: { __typename?: 'ArticleConnection'; totalCount: number } - prices?: Array<{ - __typename?: 'Price' - amount: number - currency: TransactionCurrency - }> | null - } - comments?: Array<{ - __typename?: 'Comment' - id: string - type: CommentType - content?: string | null - state: CommentState - parentComment?: { __typename?: 'Comment'; id: string } | null - node: - | { - __typename?: 'Article' - id: string - title: string - slug: string - shortHash: string - articleState: ArticleState - author: { __typename?: 'User'; id: string; userName?: string | null } - } - | { __typename?: 'ArticleVersion' } - | { __typename?: 'Circle'; id: string; name: string } - | { __typename?: 'Collection' } - | { __typename?: 'Comment' } - | { __typename?: 'CurationChannel' } - | { __typename?: 'Draft' } - | { __typename?: 'IcymiTopic' } - | { - __typename?: 'Moment' - id: string - shortHash: string - momentState: MomentState - } - | { __typename?: 'Report' } - | { __typename?: 'Tag' } - | { __typename?: 'TopicChannel' } - | { __typename?: 'User' } - | { __typename?: 'WritingChallenge' } - comments: { __typename?: 'CommentConnection'; totalCount: number } - communityWatchAction?: { - __typename?: 'CommunityWatchAction' - uuid: string - } | null - author: { __typename?: 'User'; id: string; isBlocked: boolean } - }> | null - replies?: Array<{ - __typename?: 'Comment' - id: string - type: CommentType - content?: string | null - state: CommentState - parentComment?: { __typename?: 'Comment'; id: string } | null - author: { __typename?: 'User'; id: string; isBlocked: boolean } - node: - | { - __typename?: 'Article' - id: string - title: string - slug: string - shortHash: string - articleState: ArticleState - author: { __typename?: 'User'; id: string; userName?: string | null } - } - | { __typename?: 'ArticleVersion' } - | { __typename?: 'Circle'; id: string; name: string } - | { __typename?: 'Collection' } - | { __typename?: 'Comment' } - | { __typename?: 'CurationChannel' } - | { __typename?: 'Draft' } - | { __typename?: 'IcymiTopic' } - | { - __typename?: 'Moment' - id: string - shortHash: string - momentState: MomentState - } - | { __typename?: 'Report' } - | { __typename?: 'Tag' } - | { __typename?: 'TopicChannel' } - | { __typename?: 'User' } - | { __typename?: 'WritingChallenge' } - comments: { __typename?: 'CommentConnection'; totalCount: number } - communityWatchAction?: { - __typename?: 'CommunityWatchAction' - uuid: string - } | null - }> | null - mentions?: Array<{ - __typename?: 'Comment' - id: string - type: CommentType - content?: string | null - state: CommentState - parentComment?: { __typename?: 'Comment'; id: string } | null - node: - | { - __typename?: 'Article' - id: string - title: string - slug: string - shortHash: string - articleState: ArticleState - author: { __typename?: 'User'; id: string; userName?: string | null } - } - | { __typename?: 'ArticleVersion' } - | { __typename?: 'Circle'; id: string; name: string } - | { __typename?: 'Collection' } - | { __typename?: 'Comment' } - | { __typename?: 'CurationChannel' } - | { __typename?: 'Draft' } - | { __typename?: 'IcymiTopic' } - | { - __typename?: 'Moment' - id: string - shortHash: string - momentState: MomentState - } - | { __typename?: 'Report' } - | { __typename?: 'Tag' } - | { __typename?: 'TopicChannel' } - | { __typename?: 'User' } - | { __typename?: 'WritingChallenge' } - comments: { __typename?: 'CommentConnection'; totalCount: number } - communityWatchAction?: { - __typename?: 'CommunityWatchAction' - uuid: string - } | null - author: { __typename?: 'User'; id: string; isBlocked: boolean } - }> | null -} - -export type CircleNewBroadcastCommentsNoticeFragment = { - __typename?: 'CircleNotice' - id: string - createdAt: any - actors?: Array<{ - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - }> | null - circle: { - __typename?: 'Circle' - id: string - name: string - displayName: string - description?: string | null - avatar?: string | null - owner: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - members: { __typename?: 'MemberConnection'; totalCount: number } - works: { __typename?: 'ArticleConnection'; totalCount: number } - prices?: Array<{ - __typename?: 'Price' - amount: number - currency: TransactionCurrency - }> | null - } - comments?: Array<{ - __typename?: 'Comment' - id: string - type: CommentType - content?: string | null - parentComment?: { __typename?: 'Comment'; id: string } | null - }> | null - replies?: Array<{ - __typename?: 'Comment' - id: string - type: CommentType - content?: string | null - parentComment?: { __typename?: 'Comment'; id: string } | null - author: { __typename?: 'User'; id: string } - }> | null - mentions?: Array<{ - __typename?: 'Comment' - id: string - type: CommentType - content?: string | null - parentComment?: { __typename?: 'Comment'; id: string } | null - }> | null -} - -export type CircleNewDiscussionCommentsFragment = { - __typename?: 'CircleNotice' - id: string - createdAt: any - actors?: Array<{ - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - }> | null - circle: { - __typename?: 'Circle' - id: string - name: string - displayName: string - description?: string | null - avatar?: string | null - owner: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - members: { __typename?: 'MemberConnection'; totalCount: number } - works: { __typename?: 'ArticleConnection'; totalCount: number } - prices?: Array<{ - __typename?: 'Price' - amount: number - currency: TransactionCurrency - }> | null - } - comments?: Array<{ - __typename?: 'Comment' - id: string - type: CommentType - state: CommentState - content?: string | null - parentComment?: { __typename?: 'Comment'; id: string } | null - node: - | { - __typename?: 'Article' - id: string - title: string - slug: string - shortHash: string - articleState: ArticleState - author: { __typename?: 'User'; id: string; userName?: string | null } - } - | { __typename?: 'ArticleVersion' } - | { __typename?: 'Circle'; id: string; name: string } - | { __typename?: 'Collection' } - | { __typename?: 'Comment' } - | { __typename?: 'CurationChannel' } - | { __typename?: 'Draft' } - | { __typename?: 'IcymiTopic' } - | { - __typename?: 'Moment' - id: string - shortHash: string - momentState: MomentState - } - | { __typename?: 'Report' } - | { __typename?: 'Tag' } - | { __typename?: 'TopicChannel' } - | { __typename?: 'User' } - | { __typename?: 'WritingChallenge' } - comments: { __typename?: 'CommentConnection'; totalCount: number } - communityWatchAction?: { - __typename?: 'CommunityWatchAction' - uuid: string - } | null - author: { __typename?: 'User'; id: string; isBlocked: boolean } - }> | null - replies?: Array<{ - __typename?: 'Comment' - id: string - type: CommentType - state: CommentState - content?: string | null - parentComment?: { __typename?: 'Comment'; id: string } | null - replyTo?: { - __typename?: 'Comment' - author: { __typename?: 'User'; id: string } - } | null - node: - | { - __typename?: 'Article' - id: string - title: string - slug: string - shortHash: string - articleState: ArticleState - author: { __typename?: 'User'; id: string; userName?: string | null } - } - | { __typename?: 'ArticleVersion' } - | { __typename?: 'Circle'; id: string; name: string } - | { __typename?: 'Collection' } - | { __typename?: 'Comment' } - | { __typename?: 'CurationChannel' } - | { __typename?: 'Draft' } - | { __typename?: 'IcymiTopic' } - | { - __typename?: 'Moment' - id: string - shortHash: string - momentState: MomentState - } - | { __typename?: 'Report' } - | { __typename?: 'Tag' } - | { __typename?: 'TopicChannel' } - | { __typename?: 'User' } - | { __typename?: 'WritingChallenge' } - comments: { __typename?: 'CommentConnection'; totalCount: number } - communityWatchAction?: { - __typename?: 'CommunityWatchAction' - uuid: string - } | null - author: { __typename?: 'User'; id: string; isBlocked: boolean } - }> | null - mentions?: Array<{ - __typename?: 'Comment' - id: string - type: CommentType - state: CommentState - content?: string | null - parentComment?: { __typename?: 'Comment'; id: string } | null - node: - | { - __typename?: 'Article' - id: string - title: string - slug: string - shortHash: string - articleState: ArticleState - author: { __typename?: 'User'; id: string; userName?: string | null } - } - | { __typename?: 'ArticleVersion' } - | { __typename?: 'Circle'; id: string; name: string } - | { __typename?: 'Collection' } - | { __typename?: 'Comment' } - | { __typename?: 'CurationChannel' } - | { __typename?: 'Draft' } - | { __typename?: 'IcymiTopic' } - | { - __typename?: 'Moment' - id: string - shortHash: string - momentState: MomentState - } - | { __typename?: 'Report' } - | { __typename?: 'Tag' } - | { __typename?: 'TopicChannel' } - | { __typename?: 'User' } - | { __typename?: 'WritingChallenge' } - comments: { __typename?: 'CommentConnection'; totalCount: number } - communityWatchAction?: { - __typename?: 'CommunityWatchAction' - uuid: string - } | null - author: { __typename?: 'User'; id: string; isBlocked: boolean } - }> | null -} - -export type CircleNewDiscussionCommentsNoticeFragment = { - __typename?: 'CircleNotice' - id: string - createdAt: any - actors?: Array<{ - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - }> | null - circle: { - __typename?: 'Circle' - id: string - name: string - displayName: string - description?: string | null - avatar?: string | null - owner: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - members: { __typename?: 'MemberConnection'; totalCount: number } - works: { __typename?: 'ArticleConnection'; totalCount: number } - prices?: Array<{ - __typename?: 'Price' - amount: number - currency: TransactionCurrency - }> | null - } - comments?: Array<{ - __typename?: 'Comment' - id: string - type: CommentType - parentComment?: { __typename?: 'Comment'; id: string } | null - }> | null - replies?: Array<{ - __typename?: 'Comment' - id: string - type: CommentType - parentComment?: { __typename?: 'Comment'; id: string } | null - replyTo?: { - __typename?: 'Comment' - author: { __typename?: 'User'; id: string } - } | null - }> | null - mentions?: Array<{ - __typename?: 'Comment' - id: string - type: CommentType - parentComment?: { __typename?: 'Comment'; id: string } | null - }> | null -} - -export type CircleNewInvitationFragment = { - __typename?: 'CircleNotice' - id: string - createdAt: any - actors?: Array<{ - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - }> | null - circle: { - __typename?: 'Circle' - id: string - name: string - displayName: string - description?: string | null - avatar?: string | null - invitedBy?: { - __typename?: 'Invitation' - id: string - freePeriod: number - } | null - owner: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - members: { __typename?: 'MemberConnection'; totalCount: number } - works: { __typename?: 'ArticleConnection'; totalCount: number } - prices?: Array<{ - __typename?: 'Price' - amount: number - currency: TransactionCurrency - }> | null - } -} - -export type CircleNewUserFragment = { - __typename?: 'CircleNotice' - id: string - createdAt: any - actors?: Array<{ - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - isFollower: boolean - isFollowee: boolean - status?: { __typename?: 'UserStatus'; state: UserState } | null - info: { - __typename?: 'UserInfo' - description?: string | null - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - liker: { __typename?: 'Liker'; civicLiker: boolean } - }> | null -} - -export type CircleNewUserNoticeFragment = { - __typename?: 'CircleNotice' - id: string - createdAt: any - actors?: Array<{ - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - isFollower: boolean - isFollowee: boolean - status?: { __typename?: 'UserStatus'; state: UserState } | null - info: { - __typename?: 'UserInfo' - description?: string | null - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - liker: { __typename?: 'Liker'; civicLiker: boolean } - }> | null -} - -export type CircleNoticeFragment = { - __typename: 'CircleNotice' - id: string - unread: boolean - createdAt: any - circleNoticeType: CircleNoticeType - actors?: Array<{ - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - isFollower: boolean - isFollowee: boolean - status?: { __typename?: 'UserStatus'; state: UserState } | null - info: { - __typename?: 'UserInfo' - description?: string | null - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - liker: { __typename?: 'Liker'; civicLiker: boolean } - }> | null - circle: { - __typename?: 'Circle' - id: string - name: string - displayName: string - description?: string | null - avatar?: string | null - invitedBy?: { - __typename?: 'Invitation' - id: string - freePeriod: number - } | null - owner: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - members: { __typename?: 'MemberConnection'; totalCount: number } - works: { __typename?: 'ArticleConnection'; totalCount: number } - prices?: Array<{ - __typename?: 'Price' - amount: number - currency: TransactionCurrency - }> | null - } - comments?: Array<{ - __typename?: 'Comment' - id: string - type: CommentType - content?: string | null - state: CommentState - parentComment?: { __typename?: 'Comment'; id: string } | null - node: - | { - __typename?: 'Article' - id: string - title: string - slug: string - shortHash: string - articleState: ArticleState - author: { __typename?: 'User'; id: string; userName?: string | null } - } - | { __typename?: 'ArticleVersion' } - | { __typename?: 'Circle'; id: string; name: string } - | { __typename?: 'Collection' } - | { __typename?: 'Comment' } - | { __typename?: 'CurationChannel' } - | { __typename?: 'Draft' } - | { __typename?: 'IcymiTopic' } - | { - __typename?: 'Moment' - id: string - shortHash: string - momentState: MomentState - } - | { __typename?: 'Report' } - | { __typename?: 'Tag' } - | { __typename?: 'TopicChannel' } - | { __typename?: 'User' } - | { __typename?: 'WritingChallenge' } - comments: { __typename?: 'CommentConnection'; totalCount: number } - communityWatchAction?: { - __typename?: 'CommunityWatchAction' - uuid: string - } | null - author: { __typename?: 'User'; id: string; isBlocked: boolean } - }> | null - replies?: Array<{ - __typename?: 'Comment' - id: string - type: CommentType - content?: string | null - state: CommentState - parentComment?: { __typename?: 'Comment'; id: string } | null - author: { __typename?: 'User'; id: string; isBlocked: boolean } - replyTo?: { - __typename?: 'Comment' - author: { __typename?: 'User'; id: string } - } | null - node: - | { - __typename?: 'Article' - id: string - title: string - slug: string - shortHash: string - articleState: ArticleState - author: { __typename?: 'User'; id: string; userName?: string | null } - } - | { __typename?: 'ArticleVersion' } - | { __typename?: 'Circle'; id: string; name: string } - | { __typename?: 'Collection' } - | { __typename?: 'Comment' } - | { __typename?: 'CurationChannel' } - | { __typename?: 'Draft' } - | { __typename?: 'IcymiTopic' } - | { - __typename?: 'Moment' - id: string - shortHash: string - momentState: MomentState - } - | { __typename?: 'Report' } - | { __typename?: 'Tag' } - | { __typename?: 'TopicChannel' } - | { __typename?: 'User' } - | { __typename?: 'WritingChallenge' } - comments: { __typename?: 'CommentConnection'; totalCount: number } - communityWatchAction?: { - __typename?: 'CommunityWatchAction' - uuid: string - } | null - }> | null - mentions?: Array<{ - __typename?: 'Comment' - id: string - type: CommentType - content?: string | null - state: CommentState - parentComment?: { __typename?: 'Comment'; id: string } | null - node: - | { - __typename?: 'Article' - id: string - title: string - slug: string - shortHash: string - articleState: ArticleState - author: { __typename?: 'User'; id: string; userName?: string | null } - } - | { __typename?: 'ArticleVersion' } - | { __typename?: 'Circle'; id: string; name: string } - | { __typename?: 'Collection' } - | { __typename?: 'Comment' } - | { __typename?: 'CurationChannel' } - | { __typename?: 'Draft' } - | { __typename?: 'IcymiTopic' } - | { - __typename?: 'Moment' - id: string - shortHash: string - momentState: MomentState - } - | { __typename?: 'Report' } - | { __typename?: 'Tag' } - | { __typename?: 'TopicChannel' } - | { __typename?: 'User' } - | { __typename?: 'WritingChallenge' } - comments: { __typename?: 'CommentConnection'; totalCount: number } - communityWatchAction?: { - __typename?: 'CommunityWatchAction' - uuid: string - } | null - author: { __typename?: 'User'; id: string; isBlocked: boolean } - }> | null -} - -export type CollectionCardCollectionFragment = { - __typename?: 'Collection' - id: string - title: string - author: { __typename?: 'User'; id: string; userName?: string | null } -} - -export type CollectionNewLikeFragment = { - __typename?: 'CollectionNotice' - id: string - createdAt: any - actors?: Array<{ - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - }> | null - collection: { - __typename?: 'Collection' - id: string - title: string - author: { __typename?: 'User'; id: string; userName?: string | null } - } -} - -export type CollectionNewLikeNoticeFragment = { - __typename?: 'CollectionNotice' - id: string - createdAt: any - actors?: Array<{ - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - }> | null - collection: { - __typename?: 'Collection' - id: string - title: string - author: { __typename?: 'User'; id: string; userName?: string | null } - } -} - -export type CollectionNoticeFragment = { - __typename: 'CollectionNotice' - id: string - unread: boolean - createdAt: any - actors?: Array<{ - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - }> | null - collection: { - __typename?: 'Collection' - id: string - title: string - author: { __typename?: 'User'; id: string; userName?: string | null } - } -} - -export type CommentCardCommentFragment = { - __typename?: 'Comment' - id: string - state: CommentState - type: CommentType - content?: string | null - node: - | { - __typename?: 'Article' - id: string - title: string - slug: string - shortHash: string - articleState: ArticleState - author: { __typename?: 'User'; id: string; userName?: string | null } - } - | { __typename?: 'ArticleVersion' } - | { __typename?: 'Circle'; id: string; name: string } - | { __typename?: 'Collection' } - | { __typename?: 'Comment' } - | { __typename?: 'CurationChannel' } - | { __typename?: 'Draft' } - | { __typename?: 'IcymiTopic' } - | { - __typename?: 'Moment' - id: string - shortHash: string - momentState: MomentState - } - | { __typename?: 'Report' } - | { __typename?: 'Tag' } - | { __typename?: 'TopicChannel' } - | { __typename?: 'User' } - | { __typename?: 'WritingChallenge' } - parentComment?: { __typename?: 'Comment'; id: string } | null - comments: { __typename?: 'CommentConnection'; totalCount: number } - communityWatchAction?: { - __typename?: 'CommunityWatchAction' - uuid: string - } | null - author: { __typename?: 'User'; id: string; isBlocked: boolean } -} - -export type CommentNewReplyFragment = { - __typename?: 'CommentCommentNotice' - id: string - createdAt: any - actors?: Array<{ - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - }> | null - comment: { - __typename?: 'Comment' - id: string - state: CommentState - type: CommentType - content?: string | null - node: - | { - __typename?: 'Article' - id: string - title: string - slug: string - shortHash: string - articleState: ArticleState - author: { __typename?: 'User'; id: string; userName?: string | null } - } - | { __typename?: 'ArticleVersion' } - | { __typename?: 'Circle'; id: string; name: string } - | { __typename?: 'Collection' } - | { __typename?: 'Comment' } - | { __typename?: 'CurationChannel' } - | { __typename?: 'Draft' } - | { __typename?: 'IcymiTopic' } - | { - __typename?: 'Moment' - id: string - shortHash: string - momentState: MomentState - } - | { __typename?: 'Report' } - | { __typename?: 'Tag' } - | { __typename?: 'TopicChannel' } - | { __typename?: 'User' } - | { __typename?: 'WritingChallenge' } - parentComment?: { __typename?: 'Comment'; id: string } | null - comments: { __typename?: 'CommentConnection'; totalCount: number } - communityWatchAction?: { - __typename?: 'CommunityWatchAction' - uuid: string - } | null - author: { __typename?: 'User'; id: string; isBlocked: boolean } - } - reply: { - __typename?: 'Comment' - id: string - state: CommentState - type: CommentType - content?: string | null - node: - | { - __typename?: 'Article' - id: string - title: string - slug: string - shortHash: string - summary: string - articleState: ArticleState - author: { __typename?: 'User'; id: string; userName?: string | null } - } - | { __typename?: 'ArticleVersion' } - | { __typename?: 'Circle'; id: string; name: string; displayName: string } - | { __typename?: 'Collection' } - | { __typename?: 'Comment' } - | { __typename?: 'CurationChannel' } - | { __typename?: 'Draft' } - | { __typename?: 'IcymiTopic' } - | { - __typename?: 'Moment' - id: string - shortHash: string - momentState: MomentState - } - | { __typename?: 'Report' } - | { __typename?: 'Tag' } - | { __typename?: 'TopicChannel' } - | { __typename?: 'User' } - | { __typename?: 'WritingChallenge' } - parentComment?: { __typename?: 'Comment'; id: string } | null - comments: { __typename?: 'CommentConnection'; totalCount: number } - communityWatchAction?: { - __typename?: 'CommunityWatchAction' - uuid: string - } | null - author: { __typename?: 'User'; id: string; isBlocked: boolean } - } -} - -export type CommentNewReplyNoticeFragment = { - __typename?: 'CommentCommentNotice' - id: string - createdAt: any - actors?: Array<{ - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - }> | null - comment: { - __typename?: 'Comment' - id: string - state: CommentState - type: CommentType - content?: string | null - node: - | { - __typename?: 'Article' - id: string - title: string - slug: string - shortHash: string - articleState: ArticleState - author: { __typename?: 'User'; id: string; userName?: string | null } - } - | { __typename?: 'ArticleVersion' } - | { __typename?: 'Circle'; id: string; name: string } - | { __typename?: 'Collection' } - | { __typename?: 'Comment' } - | { __typename?: 'CurationChannel' } - | { __typename?: 'Draft' } - | { __typename?: 'IcymiTopic' } - | { - __typename?: 'Moment' - id: string - shortHash: string - momentState: MomentState - } - | { __typename?: 'Report' } - | { __typename?: 'Tag' } - | { __typename?: 'TopicChannel' } - | { __typename?: 'User' } - | { __typename?: 'WritingChallenge' } - parentComment?: { __typename?: 'Comment'; id: string } | null - comments: { __typename?: 'CommentConnection'; totalCount: number } - communityWatchAction?: { - __typename?: 'CommunityWatchAction' - uuid: string - } | null - author: { __typename?: 'User'; id: string; isBlocked: boolean } - } - reply: { - __typename?: 'Comment' - id: string - state: CommentState - type: CommentType - content?: string | null - node: - | { - __typename?: 'Article' - id: string - title: string - slug: string - shortHash: string - articleState: ArticleState - author: { __typename?: 'User'; id: string; userName?: string | null } - } - | { __typename?: 'ArticleVersion' } - | { __typename?: 'Circle'; id: string; name: string; displayName: string } - | { __typename?: 'Collection' } - | { __typename?: 'Comment' } - | { __typename?: 'CurationChannel' } - | { __typename?: 'Draft' } - | { __typename?: 'IcymiTopic' } - | { - __typename?: 'Moment' - id: string - shortHash: string - momentState: MomentState - } - | { __typename?: 'Report' } - | { __typename?: 'Tag' } - | { __typename?: 'TopicChannel' } - | { __typename?: 'User' } - | { __typename?: 'WritingChallenge' } - parentComment?: { __typename?: 'Comment'; id: string } | null - comments: { __typename?: 'CommentConnection'; totalCount: number } - communityWatchAction?: { - __typename?: 'CommunityWatchAction' - uuid: string - } | null - author: { __typename?: 'User'; id: string; isBlocked: boolean } - } -} - -export type CommentCommentNoticeFragment = { - __typename: 'CommentCommentNotice' - id: string - unread: boolean - createdAt: any - commentCommentNoticeType: CommentCommentNoticeType - actors?: Array<{ - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - }> | null - comment: { - __typename?: 'Comment' - id: string - state: CommentState - type: CommentType - content?: string | null - node: - | { - __typename?: 'Article' - id: string - title: string - slug: string - shortHash: string - articleState: ArticleState - author: { __typename?: 'User'; id: string; userName?: string | null } - } - | { __typename?: 'ArticleVersion' } - | { __typename?: 'Circle'; id: string; name: string } - | { __typename?: 'Collection' } - | { __typename?: 'Comment' } - | { __typename?: 'CurationChannel' } - | { __typename?: 'Draft' } - | { __typename?: 'IcymiTopic' } - | { - __typename?: 'Moment' - id: string - shortHash: string - momentState: MomentState - } - | { __typename?: 'Report' } - | { __typename?: 'Tag' } - | { __typename?: 'TopicChannel' } - | { __typename?: 'User' } - | { __typename?: 'WritingChallenge' } - parentComment?: { __typename?: 'Comment'; id: string } | null - comments: { __typename?: 'CommentConnection'; totalCount: number } - communityWatchAction?: { - __typename?: 'CommunityWatchAction' - uuid: string - } | null - author: { __typename?: 'User'; id: string; isBlocked: boolean } - } - reply: { - __typename?: 'Comment' - id: string - state: CommentState - type: CommentType - content?: string | null - node: - | { - __typename?: 'Article' - id: string - title: string - slug: string - shortHash: string - summary: string - articleState: ArticleState - author: { __typename?: 'User'; id: string; userName?: string | null } - } - | { __typename?: 'ArticleVersion' } - | { __typename?: 'Circle'; id: string; name: string; displayName: string } - | { __typename?: 'Collection' } - | { __typename?: 'Comment' } - | { __typename?: 'CurationChannel' } - | { __typename?: 'Draft' } - | { __typename?: 'IcymiTopic' } - | { - __typename?: 'Moment' - id: string - shortHash: string - momentState: MomentState - } - | { __typename?: 'Report' } - | { __typename?: 'Tag' } - | { __typename?: 'TopicChannel' } - | { __typename?: 'User' } - | { __typename?: 'WritingChallenge' } - parentComment?: { __typename?: 'Comment'; id: string } | null - comments: { __typename?: 'CommentConnection'; totalCount: number } - communityWatchAction?: { - __typename?: 'CommunityWatchAction' - uuid: string - } | null - author: { __typename?: 'User'; id: string; isBlocked: boolean } - } -} - -export type ArticleNewCommentFragment = { - __typename?: 'CommentNotice' - id: string - createdAt: any - actors?: Array<{ - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - }> | null - comment: { - __typename?: 'Comment' - id: string - state: CommentState - type: CommentType - content?: string | null - node: - | { - __typename?: 'Article' - id: string - title: string - slug: string - shortHash: string - summary: string - articleState: ArticleState - author: { __typename?: 'User'; id: string; userName?: string | null } - } - | { __typename?: 'ArticleVersion' } - | { __typename?: 'Circle'; id: string; name: string } - | { __typename?: 'Collection' } - | { __typename?: 'Comment' } - | { __typename?: 'CurationChannel' } - | { __typename?: 'Draft' } - | { __typename?: 'IcymiTopic' } - | { - __typename?: 'Moment' - id: string - shortHash: string - momentState: MomentState - } - | { __typename?: 'Report' } - | { __typename?: 'Tag' } - | { __typename?: 'TopicChannel' } - | { __typename?: 'User' } - | { __typename?: 'WritingChallenge' } - parentComment?: { __typename?: 'Comment'; id: string } | null - comments: { __typename?: 'CommentConnection'; totalCount: number } - communityWatchAction?: { - __typename?: 'CommunityWatchAction' - uuid: string - } | null - author: { __typename?: 'User'; id: string; isBlocked: boolean } - } -} - -export type ArticleNewCommentNoticeFragment = { - __typename?: 'CommentNotice' - id: string - createdAt: any - actors?: Array<{ - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - }> | null - comment: { - __typename?: 'Comment' - id: string - state: CommentState - type: CommentType - content?: string | null - node: - | { - __typename?: 'Article' - id: string - title: string - slug: string - shortHash: string - articleState: ArticleState - author: { __typename?: 'User'; id: string; userName?: string | null } - } - | { __typename?: 'ArticleVersion' } - | { __typename?: 'Circle'; id: string; name: string } - | { __typename?: 'Collection' } - | { __typename?: 'Comment' } - | { __typename?: 'CurationChannel' } - | { __typename?: 'Draft' } - | { __typename?: 'IcymiTopic' } - | { - __typename?: 'Moment' - id: string - shortHash: string - momentState: MomentState - } - | { __typename?: 'Report' } - | { __typename?: 'Tag' } - | { __typename?: 'TopicChannel' } - | { __typename?: 'User' } - | { __typename?: 'WritingChallenge' } - parentComment?: { __typename?: 'Comment'; id: string } | null - comments: { __typename?: 'CommentConnection'; totalCount: number } - communityWatchAction?: { - __typename?: 'CommunityWatchAction' - uuid: string - } | null - author: { __typename?: 'User'; id: string; isBlocked: boolean } - } -} - -export type CircleNewBroadcastFragment = { - __typename?: 'CommentNotice' - id: string - createdAt: any - commentNoticeType: CommentNoticeType - actors?: Array<{ - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - }> | null - comment: { - __typename?: 'Comment' - id: string - state: CommentState - type: CommentType - content?: string | null - node: - | { - __typename?: 'Article' - id: string - title: string - slug: string - shortHash: string - articleState: ArticleState - author: { __typename?: 'User'; id: string; userName?: string | null } - } - | { __typename?: 'ArticleVersion' } - | { __typename?: 'Circle'; id: string; name: string; displayName: string } - | { __typename?: 'Collection' } - | { __typename?: 'Comment' } - | { __typename?: 'CurationChannel' } - | { __typename?: 'Draft' } - | { __typename?: 'IcymiTopic' } - | { - __typename?: 'Moment' - id: string - shortHash: string - momentState: MomentState - } - | { __typename?: 'Report' } - | { __typename?: 'Tag' } - | { __typename?: 'TopicChannel' } - | { __typename?: 'User' } - | { __typename?: 'WritingChallenge' } - parentComment?: { __typename?: 'Comment'; id: string } | null - comments: { __typename?: 'CommentConnection'; totalCount: number } - communityWatchAction?: { - __typename?: 'CommunityWatchAction' - uuid: string - } | null - author: { __typename?: 'User'; id: string; isBlocked: boolean } - } -} - -export type CircleNewBroadcastNoticeFragment = { - __typename?: 'CommentNotice' - id: string - createdAt: any - commentNoticeType: CommentNoticeType - actors?: Array<{ - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - }> | null - comment: { - __typename?: 'Comment' - id: string - state: CommentState - type: CommentType - content?: string | null - node: - | { - __typename?: 'Article' - id: string - title: string - slug: string - shortHash: string - articleState: ArticleState - author: { __typename?: 'User'; id: string; userName?: string | null } - } - | { __typename?: 'ArticleVersion' } - | { __typename?: 'Circle'; id: string; name: string; displayName: string } - | { __typename?: 'Collection' } - | { __typename?: 'Comment' } - | { __typename?: 'CurationChannel' } - | { __typename?: 'Draft' } - | { __typename?: 'IcymiTopic' } - | { - __typename?: 'Moment' - id: string - shortHash: string - momentState: MomentState - } - | { __typename?: 'Report' } - | { __typename?: 'Tag' } - | { __typename?: 'TopicChannel' } - | { __typename?: 'User' } - | { __typename?: 'WritingChallenge' } - parentComment?: { __typename?: 'Comment'; id: string } | null - comments: { __typename?: 'CommentConnection'; totalCount: number } - communityWatchAction?: { - __typename?: 'CommunityWatchAction' - uuid: string - } | null - author: { __typename?: 'User'; id: string; isBlocked: boolean } - } -} - -export type CommentLikedFragment = { - __typename?: 'CommentNotice' - id: string - createdAt: any - actors?: Array<{ - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - }> | null - comment: { - __typename?: 'Comment' - id: string - state: CommentState - type: CommentType - content?: string | null - node: - | { - __typename?: 'Article' - id: string - title: string - slug: string - shortHash: string - articleState: ArticleState - author: { __typename?: 'User'; id: string; userName?: string | null } - } - | { __typename?: 'ArticleVersion' } - | { __typename?: 'Circle'; id: string; name: string } - | { __typename?: 'Collection' } - | { __typename?: 'Comment' } - | { __typename?: 'CurationChannel' } - | { __typename?: 'Draft' } - | { __typename?: 'IcymiTopic' } - | { - __typename?: 'Moment' - id: string - shortHash: string - state: MomentState - content?: string | null - momentState: MomentState - assets: Array<{ __typename?: 'Asset'; id: string; path: string }> - } - | { __typename?: 'Report' } - | { __typename?: 'Tag' } - | { __typename?: 'TopicChannel' } - | { __typename?: 'User' } - | { __typename?: 'WritingChallenge' } - parentComment?: { __typename?: 'Comment'; id: string } | null - comments: { __typename?: 'CommentConnection'; totalCount: number } - communityWatchAction?: { - __typename?: 'CommunityWatchAction' - uuid: string - } | null - author: { __typename?: 'User'; id: string; isBlocked: boolean } - } -} - -export type CommentLikedNoticeFragment = { - __typename?: 'CommentNotice' - id: string - createdAt: any - actors?: Array<{ - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - }> | null - comment: { - __typename?: 'Comment' - id: string - state: CommentState - type: CommentType - content?: string | null - node: - | { - __typename?: 'Article' - id: string - title: string - slug: string - shortHash: string - articleState: ArticleState - author: { __typename?: 'User'; id: string; userName?: string | null } - } - | { __typename?: 'ArticleVersion' } - | { __typename?: 'Circle'; id: string; name: string } - | { __typename?: 'Collection' } - | { __typename?: 'Comment' } - | { __typename?: 'CurationChannel' } - | { __typename?: 'Draft' } - | { __typename?: 'IcymiTopic' } - | { - __typename?: 'Moment' - id: string - shortHash: string - state: MomentState - content?: string | null - momentState: MomentState - assets: Array<{ __typename?: 'Asset'; id: string; path: string }> - } - | { __typename?: 'Report' } - | { __typename?: 'Tag' } - | { __typename?: 'TopicChannel' } - | { __typename?: 'User' } - | { __typename?: 'WritingChallenge' } - parentComment?: { __typename?: 'Comment'; id: string } | null - comments: { __typename?: 'CommentConnection'; totalCount: number } - communityWatchAction?: { - __typename?: 'CommunityWatchAction' - uuid: string - } | null - author: { __typename?: 'User'; id: string; isBlocked: boolean } - } -} - -export type CommentMentionedYouFragment = { - __typename?: 'CommentNotice' - id: string - createdAt: any - actors?: Array<{ - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - }> | null - comment: { - __typename?: 'Comment' - id: string - state: CommentState - type: CommentType - content?: string | null - node: - | { - __typename?: 'Article' - id: string - title: string - slug: string - shortHash: string - summary: string - articleState: ArticleState - author: { __typename?: 'User'; id: string; userName?: string | null } - } - | { __typename?: 'ArticleVersion' } - | { __typename?: 'Circle'; id: string; name: string; displayName: string } - | { __typename?: 'Collection' } - | { __typename?: 'Comment' } - | { __typename?: 'CurationChannel' } - | { __typename?: 'Draft' } - | { __typename?: 'IcymiTopic' } - | { - __typename?: 'Moment' - state: MomentState - id: string - shortHash: string - content?: string | null - momentState: MomentState - assets: Array<{ __typename?: 'Asset'; id: string; path: string }> - } - | { __typename?: 'Report' } - | { __typename?: 'Tag' } - | { __typename?: 'TopicChannel' } - | { __typename?: 'User' } - | { __typename?: 'WritingChallenge' } - parentComment?: { __typename?: 'Comment'; id: string } | null - comments: { __typename?: 'CommentConnection'; totalCount: number } - communityWatchAction?: { - __typename?: 'CommunityWatchAction' - uuid: string - } | null - author: { __typename?: 'User'; id: string; isBlocked: boolean } - } -} - -export type CommentMentionedYouNoticeFragment = { - __typename?: 'CommentNotice' - id: string - createdAt: any - actors?: Array<{ - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - }> | null - comment: { - __typename?: 'Comment' - id: string - state: CommentState - type: CommentType - content?: string | null - node: - | { - __typename?: 'Article' - id: string - title: string - slug: string - shortHash: string - articleState: ArticleState - author: { __typename?: 'User'; id: string; userName?: string | null } - } - | { __typename?: 'ArticleVersion' } - | { __typename?: 'Circle'; id: string; name: string; displayName: string } - | { __typename?: 'Collection' } - | { __typename?: 'Comment' } - | { __typename?: 'CurationChannel' } - | { __typename?: 'Draft' } - | { __typename?: 'IcymiTopic' } - | { - __typename?: 'Moment' - state: MomentState - id: string - shortHash: string - content?: string | null - momentState: MomentState - assets: Array<{ __typename?: 'Asset'; id: string; path: string }> - } - | { __typename?: 'Report' } - | { __typename?: 'Tag' } - | { __typename?: 'TopicChannel' } - | { __typename?: 'User' } - | { __typename?: 'WritingChallenge' } - parentComment?: { __typename?: 'Comment'; id: string } | null - comments: { __typename?: 'CommentConnection'; totalCount: number } - communityWatchAction?: { - __typename?: 'CommunityWatchAction' - uuid: string - } | null - author: { __typename?: 'User'; id: string; isBlocked: boolean } - } -} - -export type CommentPinnedNoticeFragment = { - __typename?: 'CommentNotice' - id: string - createdAt: any - actors?: Array<{ - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - }> | null - comment: { - __typename?: 'Comment' - id: string - state: CommentState - type: CommentType - content?: string | null - node: - | { - __typename?: 'Article' - id: string - title: string - slug: string - shortHash: string - articleState: ArticleState - author: { __typename?: 'User'; id: string; userName?: string | null } - } - | { __typename?: 'ArticleVersion' } - | { __typename?: 'Circle'; id: string; name: string } - | { __typename?: 'Collection' } - | { __typename?: 'Comment' } - | { __typename?: 'CurationChannel' } - | { __typename?: 'Draft' } - | { __typename?: 'IcymiTopic' } - | { - __typename?: 'Moment' - id: string - shortHash: string - momentState: MomentState - } - | { __typename?: 'Report' } - | { __typename?: 'Tag' } - | { __typename?: 'TopicChannel' } - | { __typename?: 'User' } - | { __typename?: 'WritingChallenge' } - parentComment?: { __typename?: 'Comment'; id: string } | null - comments: { __typename?: 'CommentConnection'; totalCount: number } - communityWatchAction?: { - __typename?: 'CommunityWatchAction' - uuid: string - } | null - author: { __typename?: 'User'; id: string; isBlocked: boolean } - } -} - -export type MomentNewCommentFragment = { - __typename?: 'CommentNotice' - id: string - createdAt: any - actors?: Array<{ - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - }> | null - comment: { - __typename?: 'Comment' - id: string - state: CommentState - type: CommentType - content?: string | null - node: - | { - __typename?: 'Article' - id: string - title: string - slug: string - shortHash: string - articleState: ArticleState - author: { __typename?: 'User'; id: string; userName?: string | null } - } - | { __typename?: 'ArticleVersion' } - | { __typename?: 'Circle'; id: string; name: string } - | { __typename?: 'Collection' } - | { __typename?: 'Comment' } - | { __typename?: 'CurationChannel' } - | { __typename?: 'Draft' } - | { __typename?: 'IcymiTopic' } - | { - __typename?: 'Moment' - id: string - shortHash: string - state: MomentState - content?: string | null - momentState: MomentState - assets: Array<{ __typename?: 'Asset'; id: string; path: string }> - } - | { __typename?: 'Report' } - | { __typename?: 'Tag' } - | { __typename?: 'TopicChannel' } - | { __typename?: 'User' } - | { __typename?: 'WritingChallenge' } - parentComment?: { __typename?: 'Comment'; id: string } | null - comments: { __typename?: 'CommentConnection'; totalCount: number } - communityWatchAction?: { - __typename?: 'CommunityWatchAction' - uuid: string - } | null - author: { __typename?: 'User'; id: string; isBlocked: boolean } - } -} - -export type MomentNewCommentNoticeFragment = { - __typename?: 'CommentNotice' - id: string - createdAt: any - actors?: Array<{ - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - }> | null - comment: { - __typename?: 'Comment' - id: string - state: CommentState - type: CommentType - content?: string | null - node: - | { - __typename?: 'Article' - id: string - title: string - slug: string - shortHash: string - articleState: ArticleState - author: { __typename?: 'User'; id: string; userName?: string | null } - } - | { __typename?: 'ArticleVersion' } - | { __typename?: 'Circle'; id: string; name: string } - | { __typename?: 'Collection' } - | { __typename?: 'Comment' } - | { __typename?: 'CurationChannel' } - | { __typename?: 'Draft' } - | { __typename?: 'IcymiTopic' } - | { - __typename?: 'Moment' - id: string - shortHash: string - state: MomentState - content?: string | null - momentState: MomentState - assets: Array<{ __typename?: 'Asset'; id: string; path: string }> - } - | { __typename?: 'Report' } - | { __typename?: 'Tag' } - | { __typename?: 'TopicChannel' } - | { __typename?: 'User' } - | { __typename?: 'WritingChallenge' } - parentComment?: { __typename?: 'Comment'; id: string } | null - comments: { __typename?: 'CommentConnection'; totalCount: number } - communityWatchAction?: { - __typename?: 'CommunityWatchAction' - uuid: string - } | null - author: { __typename?: 'User'; id: string; isBlocked: boolean } - } -} - -export type CommentNoticeFragment = { - __typename: 'CommentNotice' - id: string - unread: boolean - createdAt: any - commentNoticeType: CommentNoticeType - actors?: Array<{ - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - }> | null - comment: { - __typename?: 'Comment' - id: string - state: CommentState - type: CommentType - content?: string | null - node: - | { - __typename?: 'Article' - id: string - title: string - slug: string - shortHash: string - summary: string - articleState: ArticleState - author: { __typename?: 'User'; id: string; userName?: string | null } - } - | { __typename?: 'ArticleVersion' } - | { __typename?: 'Circle'; id: string; name: string; displayName: string } - | { __typename?: 'Collection' } - | { __typename?: 'Comment' } - | { __typename?: 'CurationChannel' } - | { __typename?: 'Draft' } - | { __typename?: 'IcymiTopic' } - | { - __typename?: 'Moment' - state: MomentState - id: string - shortHash: string - content?: string | null - momentState: MomentState - assets: Array<{ __typename?: 'Asset'; id: string; path: string }> - } - | { __typename?: 'Report' } - | { __typename?: 'Tag' } - | { __typename?: 'TopicChannel' } - | { __typename?: 'User' } - | { __typename?: 'WritingChallenge' } - parentComment?: { __typename?: 'Comment'; id: string } | null - comments: { __typename?: 'CommentConnection'; totalCount: number } - communityWatchAction?: { - __typename?: 'CommunityWatchAction' - uuid: string - } | null - author: { __typename?: 'User'; id: string; isBlocked: boolean } - } -} - -export type MomentCardMomentFragment = { - __typename?: 'Moment' - id: string - state: MomentState - content?: string | null - shortHash: string - assets: Array<{ __typename?: 'Asset'; id: string; path: string }> -} - -export type MomentLikedFragment = { - __typename?: 'MomentNotice' - id: string - createdAt: any - actors?: Array<{ - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - }> | null - moment: { - __typename?: 'Moment' - id: string - state: MomentState - content?: string | null - shortHash: string - assets: Array<{ __typename?: 'Asset'; id: string; path: string }> - } -} - -export type MomentLikedNoticeFragment = { - __typename?: 'MomentNotice' - id: string - createdAt: any - actors?: Array<{ - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - }> | null - moment: { - __typename?: 'Moment' - id: string - state: MomentState - content?: string | null - shortHash: string - assets: Array<{ __typename?: 'Asset'; id: string; path: string }> - } -} - -export type MomentMentionedYouFragment = { - __typename?: 'MomentNotice' - id: string - createdAt: any - actors?: Array<{ - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - }> | null - moment: { - __typename?: 'Moment' - id: string - state: MomentState - content?: string | null - shortHash: string - assets: Array<{ __typename?: 'Asset'; id: string; path: string }> - } -} - -export type MomentMentionedYouNoticeFragment = { - __typename?: 'MomentNotice' - id: string - createdAt: any - actors?: Array<{ - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - }> | null - moment: { - __typename?: 'Moment' - id: string - state: MomentState - content?: string | null - shortHash: string - assets: Array<{ __typename?: 'Asset'; id: string; path: string }> - } -} - -export type MomentNoticeFragment = { - __typename: 'MomentNotice' - id: string - unread: boolean - createdAt: any - momentNoticeType: MomentNoticeType - actors?: Array<{ - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - }> | null - moment: { - __typename?: 'Moment' - id: string - state: MomentState - content?: string | null - shortHash: string - assets: Array<{ __typename?: 'Asset'; id: string; path: string }> - } -} - -export type NoticeActorAvatarUserFragment = { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } -} - -export type NoticeActorNameUserFragment = { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null -} - -export type NoticeHeadActorsUserFragment = { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null -} - -export type NoticeArticleCardFragment = { - __typename?: 'Article' - id: string - summary: string - title: string - slug: string - shortHash: string - articleState: ArticleState - author: { __typename?: 'User'; id: string; userName?: string | null } -} - -export type NoticeArticleTitleFragment = { - __typename?: 'Article' - id: string - title: string - slug: string - shortHash: string - articleState: ArticleState - author: { __typename?: 'User'; id: string; userName?: string | null } -} - -export type NoticeCircleCardFragment = { - __typename?: 'Circle' - id: string - name: string - displayName: string - description?: string | null - avatar?: string | null - owner: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - members: { __typename?: 'MemberConnection'; totalCount: number } - works: { __typename?: 'ArticleConnection'; totalCount: number } - prices?: Array<{ - __typename?: 'Price' - amount: number - currency: TransactionCurrency - }> | null -} - -export type NoticeCircleNameFragment = { - __typename?: 'Circle' - id: string - name: string - displayName: string -} - -export type NoticeCollectionTitleFragment = { - __typename?: 'Collection' - id: string - title: string - author: { __typename?: 'User'; id: string; userName?: string | null } -} - -export type NoticeCommentFragment = { - __typename?: 'Comment' - id: string - state: CommentState - type: CommentType - content?: string | null - node: - | { - __typename?: 'Article' - id: string - title: string - slug: string - shortHash: string - articleState: ArticleState - author: { __typename?: 'User'; id: string; userName?: string | null } - } - | { __typename?: 'ArticleVersion' } - | { __typename?: 'Circle'; id: string; name: string } - | { __typename?: 'Collection' } - | { __typename?: 'Comment' } - | { __typename?: 'CurationChannel' } - | { __typename?: 'Draft' } - | { __typename?: 'IcymiTopic' } - | { - __typename?: 'Moment' - id: string - shortHash: string - momentState: MomentState - } - | { __typename?: 'Report' } - | { __typename?: 'Tag' } - | { __typename?: 'TopicChannel' } - | { __typename?: 'User' } - | { __typename?: 'WritingChallenge' } - parentComment?: { __typename?: 'Comment'; id: string } | null - comments: { __typename?: 'CommentConnection'; totalCount: number } - communityWatchAction?: { - __typename?: 'CommunityWatchAction' - uuid: string - } | null - author: { __typename?: 'User'; id: string; isBlocked: boolean } -} - -type NoticeDate_ArticleArticleNotice_Fragment = { - __typename?: 'ArticleArticleNotice' - id: string - createdAt: any -} - -type NoticeDate_ArticleNotice_Fragment = { - __typename?: 'ArticleNotice' - id: string - createdAt: any -} - -type NoticeDate_CampaignArticleNotice_Fragment = { - __typename?: 'CampaignArticleNotice' - id: string - createdAt: any -} - -type NoticeDate_CircleNotice_Fragment = { - __typename?: 'CircleNotice' - id: string - createdAt: any -} - -type NoticeDate_CollectionNotice_Fragment = { - __typename?: 'CollectionNotice' - id: string - createdAt: any -} - -type NoticeDate_CommentCommentNotice_Fragment = { - __typename?: 'CommentCommentNotice' - id: string - createdAt: any -} - -type NoticeDate_CommentNotice_Fragment = { - __typename?: 'CommentNotice' - id: string - createdAt: any -} - -type NoticeDate_MomentNotice_Fragment = { - __typename?: 'MomentNotice' - id: string - createdAt: any -} - -type NoticeDate_OfficialAnnouncementNotice_Fragment = { - __typename?: 'OfficialAnnouncementNotice' - id: string - createdAt: any -} - -type NoticeDate_TransactionNotice_Fragment = { - __typename?: 'TransactionNotice' - id: string - createdAt: any -} - -type NoticeDate_UserNotice_Fragment = { - __typename?: 'UserNotice' - id: string - createdAt: any -} - -export type NoticeDateFragment = - | NoticeDate_ArticleArticleNotice_Fragment - | NoticeDate_ArticleNotice_Fragment - | NoticeDate_CampaignArticleNotice_Fragment - | NoticeDate_CircleNotice_Fragment - | NoticeDate_CollectionNotice_Fragment - | NoticeDate_CommentCommentNotice_Fragment - | NoticeDate_CommentNotice_Fragment - | NoticeDate_MomentNotice_Fragment - | NoticeDate_OfficialAnnouncementNotice_Fragment - | NoticeDate_TransactionNotice_Fragment - | NoticeDate_UserNotice_Fragment - -export type NoticeMomentTitleFragment = { - __typename?: 'Moment' - id: string - state: MomentState - content?: string | null - shortHash: string - assets: Array<{ __typename?: 'Asset'; id: string; path: string }> -} - -export type NoticeTagFragment = { - __typename?: 'Tag' - id: string - content: string - numArticles: number -} - -export type NoticeUserCardFragment = { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - isFollower: boolean - isFollowee: boolean - info: { - __typename?: 'UserInfo' - description?: string | null - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } -} - -export type OfficialAnnouncementNoticeFragment = { - __typename: 'OfficialAnnouncementNotice' - id: string - unread: boolean - link?: string | null - message: string - createdAt: any -} - -export type OfficialAnnouncementFragment = { - __typename: 'OfficialAnnouncementNotice' - id: string - unread: boolean - link?: string | null - message: string - createdAt: any -} - -export type PaymentReceivedDonationFragment = { - __typename?: 'TransactionNotice' - id: string - createdAt: any - actors?: Array<{ - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - }> | null - tx: { - __typename?: 'Transaction' - id: string - amount: number - currency: TransactionCurrency - target?: - | { - __typename: 'Article' - id: string - summary: string - title: string - slug: string - shortHash: string - articleState: ArticleState - author: { __typename?: 'User'; id: string; userName?: string | null } - } - | { __typename: 'Circle' } - | { __typename: 'Transaction' } - | null - } -} - -export type PaymentReceivedDonationNoticeFragment = { - __typename?: 'TransactionNotice' - id: string - createdAt: any - actors?: Array<{ - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - }> | null - tx: { - __typename?: 'Transaction' - id: string - amount: number - currency: TransactionCurrency - target?: - | { - __typename: 'Article' - id: string - summary: string - title: string - slug: string - shortHash: string - articleState: ArticleState - author: { __typename?: 'User'; id: string; userName?: string | null } - } - | { __typename: 'Circle' } - | { __typename: 'Transaction' } - | null - } -} - -export type WithdrewLockedTokensFragment = { - __typename?: 'TransactionNotice' - id: string - createdAt: any - actors?: Array<{ - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - }> | null - tx: { - __typename?: 'Transaction' - id: string - amount: number - currency: TransactionCurrency - state: TransactionState - blockchainTx?: { - __typename?: 'BlockchainTransaction' - chain: Chain - txHash: string - } | null - } -} - -export type WithdrewLockedTokensNoticeFragment = { - __typename?: 'TransactionNotice' - id: string - createdAt: any - actors?: Array<{ - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - }> | null - tx: { - __typename?: 'Transaction' - id: string - amount: number - currency: TransactionCurrency - state: TransactionState - blockchainTx?: { - __typename?: 'BlockchainTransaction' - chain: Chain - txHash: string - } | null - } -} - -export type TransactionNoticeFragment = { - __typename: 'TransactionNotice' - id: string - unread: boolean - createdAt: any - txNoticeType: TransactionNoticeType - actors?: Array<{ - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - }> | null - tx: { - __typename?: 'Transaction' - id: string - amount: number - currency: TransactionCurrency - state: TransactionState - target?: - | { - __typename: 'Article' - id: string - summary: string - title: string - slug: string - shortHash: string - articleState: ArticleState - author: { __typename?: 'User'; id: string; userName?: string | null } - } - | { __typename: 'Circle' } - | { __typename: 'Transaction' } - | null - blockchainTx?: { - __typename?: 'BlockchainTransaction' - chain: Chain - txHash: string - } | null - } -} - -export type UserNewFollowerFragment = { - __typename?: 'UserNotice' - id: string - createdAt: any - actors?: Array<{ - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - }> | null -} - -export type UserNewFollowerNoticeFragment = { - __typename?: 'UserNotice' - id: string - createdAt: any - actors?: Array<{ - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - }> | null -} - -export type UserNoticeFragment = { - __typename: 'UserNotice' - id: string - unread: boolean - createdAt: any - userNoticeType: UserNoticeType - actors?: Array<{ - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - }> | null -} - -type DigestNotice_ArticleArticleNotice_Fragment = { - __typename: 'ArticleArticleNotice' - id: string - unread: boolean - createdAt: any - articleArticleNoticeType: ArticleArticleNoticeType - actors?: Array<{ - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - }> | null - article: { - __typename?: 'Article' - id: string - title: string - slug: string - shortHash: string - summary: string - articleState: ArticleState - author: { __typename?: 'User'; id: string; userName?: string | null } - } - collection: { - __typename?: 'Article' - id: string - summary: string - title: string - slug: string - shortHash: string - articleState: ArticleState - author: { __typename?: 'User'; id: string; userName?: string | null } - } -} - -type DigestNotice_ArticleNotice_Fragment = { - __typename: 'ArticleNotice' - id: string - unread: boolean - createdAt: any - articleNoticeType: ArticleNoticeType - actors?: Array<{ - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - }> | null - article: { - __typename?: 'Article' - id: string - summary: string - title: string - slug: string - shortHash: string - articleState: ArticleState - author: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - access: { - __typename?: 'ArticleAccess' - circle?: { - __typename?: 'Circle' - id: string - name: string - displayName: string - } | null - } - } - entities: Array< - | { __typename?: 'Article'; id: string } - | { __typename?: 'ArticleVersion'; id: string } - | { __typename?: 'Circle'; id: string } - | { __typename?: 'Collection'; id: string } - | { __typename?: 'Comment'; id: string } - | { __typename?: 'CurationChannel'; id: string } - | { __typename?: 'Draft'; id: string } - | { __typename?: 'IcymiTopic'; id: string } - | { __typename?: 'Moment'; id: string } - | { __typename?: 'Report'; id: string } - | { __typename?: 'Tag'; id: string } - | { __typename?: 'TopicChannel'; id: string } - | { __typename?: 'User'; id: string } - | { __typename?: 'WritingChallenge'; id: string } - > -} - -type DigestNotice_CampaignArticleNotice_Fragment = { - __typename: 'CampaignArticleNotice' - id: string - unread: boolean - createdAt: any - campaignArticleNoticeType: CampaignArticleNoticeType - actors?: Array<{ - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - }> | null - campaign: { __typename?: 'WritingChallenge'; id: string; shortHash: string } - article: { - __typename?: 'Article' - id: string - summary: string - title: string - slug: string - shortHash: string - articleState: ArticleState - author: { __typename?: 'User'; id: string; userName?: string | null } - } -} - -type DigestNotice_CircleNotice_Fragment = { - __typename: 'CircleNotice' - id: string - unread: boolean - createdAt: any - circleNoticeType: CircleNoticeType - actors?: Array<{ - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - isFollower: boolean - isFollowee: boolean - status?: { __typename?: 'UserStatus'; state: UserState } | null - info: { - __typename?: 'UserInfo' - description?: string | null - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - liker: { __typename?: 'Liker'; civicLiker: boolean } - }> | null - circle: { - __typename?: 'Circle' - id: string - name: string - displayName: string - description?: string | null - avatar?: string | null - invitedBy?: { - __typename?: 'Invitation' - id: string - freePeriod: number - } | null - owner: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - members: { __typename?: 'MemberConnection'; totalCount: number } - works: { __typename?: 'ArticleConnection'; totalCount: number } - prices?: Array<{ - __typename?: 'Price' - amount: number - currency: TransactionCurrency - }> | null - } - comments?: Array<{ - __typename?: 'Comment' - id: string - type: CommentType - content?: string | null - state: CommentState - parentComment?: { __typename?: 'Comment'; id: string } | null - node: - | { - __typename?: 'Article' - id: string - title: string - slug: string - shortHash: string - articleState: ArticleState - author: { __typename?: 'User'; id: string; userName?: string | null } - } - | { __typename?: 'ArticleVersion' } - | { __typename?: 'Circle'; id: string; name: string } - | { __typename?: 'Collection' } - | { __typename?: 'Comment' } - | { __typename?: 'CurationChannel' } - | { __typename?: 'Draft' } - | { __typename?: 'IcymiTopic' } - | { - __typename?: 'Moment' - id: string - shortHash: string - momentState: MomentState - } - | { __typename?: 'Report' } - | { __typename?: 'Tag' } - | { __typename?: 'TopicChannel' } - | { __typename?: 'User' } - | { __typename?: 'WritingChallenge' } - comments: { __typename?: 'CommentConnection'; totalCount: number } - communityWatchAction?: { - __typename?: 'CommunityWatchAction' - uuid: string - } | null - author: { __typename?: 'User'; id: string; isBlocked: boolean } - }> | null - replies?: Array<{ - __typename?: 'Comment' - id: string - type: CommentType - content?: string | null - state: CommentState - parentComment?: { __typename?: 'Comment'; id: string } | null - author: { __typename?: 'User'; id: string; isBlocked: boolean } - replyTo?: { - __typename?: 'Comment' - author: { __typename?: 'User'; id: string } - } | null - node: - | { - __typename?: 'Article' - id: string - title: string - slug: string - shortHash: string - articleState: ArticleState - author: { __typename?: 'User'; id: string; userName?: string | null } - } - | { __typename?: 'ArticleVersion' } - | { __typename?: 'Circle'; id: string; name: string } - | { __typename?: 'Collection' } - | { __typename?: 'Comment' } - | { __typename?: 'CurationChannel' } - | { __typename?: 'Draft' } - | { __typename?: 'IcymiTopic' } - | { - __typename?: 'Moment' - id: string - shortHash: string - momentState: MomentState - } - | { __typename?: 'Report' } - | { __typename?: 'Tag' } - | { __typename?: 'TopicChannel' } - | { __typename?: 'User' } - | { __typename?: 'WritingChallenge' } - comments: { __typename?: 'CommentConnection'; totalCount: number } - communityWatchAction?: { - __typename?: 'CommunityWatchAction' - uuid: string - } | null - }> | null - mentions?: Array<{ - __typename?: 'Comment' - id: string - type: CommentType - content?: string | null - state: CommentState - parentComment?: { __typename?: 'Comment'; id: string } | null - node: - | { - __typename?: 'Article' - id: string - title: string - slug: string - shortHash: string - articleState: ArticleState - author: { __typename?: 'User'; id: string; userName?: string | null } - } - | { __typename?: 'ArticleVersion' } - | { __typename?: 'Circle'; id: string; name: string } - | { __typename?: 'Collection' } - | { __typename?: 'Comment' } - | { __typename?: 'CurationChannel' } - | { __typename?: 'Draft' } - | { __typename?: 'IcymiTopic' } - | { - __typename?: 'Moment' - id: string - shortHash: string - momentState: MomentState - } - | { __typename?: 'Report' } - | { __typename?: 'Tag' } - | { __typename?: 'TopicChannel' } - | { __typename?: 'User' } - | { __typename?: 'WritingChallenge' } - comments: { __typename?: 'CommentConnection'; totalCount: number } - communityWatchAction?: { - __typename?: 'CommunityWatchAction' - uuid: string - } | null - author: { __typename?: 'User'; id: string; isBlocked: boolean } - }> | null -} - -type DigestNotice_CollectionNotice_Fragment = { - __typename: 'CollectionNotice' - id: string - unread: boolean - createdAt: any - actors?: Array<{ - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - }> | null - collection: { - __typename?: 'Collection' - id: string - title: string - author: { __typename?: 'User'; id: string; userName?: string | null } - } -} - -type DigestNotice_CommentCommentNotice_Fragment = { - __typename: 'CommentCommentNotice' - id: string - unread: boolean - createdAt: any - commentCommentNoticeType: CommentCommentNoticeType - actors?: Array<{ - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - }> | null - comment: { - __typename?: 'Comment' - id: string - state: CommentState - type: CommentType - content?: string | null - node: - | { - __typename?: 'Article' - id: string - title: string - slug: string - shortHash: string - articleState: ArticleState - author: { __typename?: 'User'; id: string; userName?: string | null } - } - | { __typename?: 'ArticleVersion' } - | { __typename?: 'Circle'; id: string; name: string } - | { __typename?: 'Collection' } - | { __typename?: 'Comment' } - | { __typename?: 'CurationChannel' } - | { __typename?: 'Draft' } - | { __typename?: 'IcymiTopic' } - | { - __typename?: 'Moment' - id: string - shortHash: string - momentState: MomentState - } - | { __typename?: 'Report' } - | { __typename?: 'Tag' } - | { __typename?: 'TopicChannel' } - | { __typename?: 'User' } - | { __typename?: 'WritingChallenge' } - parentComment?: { __typename?: 'Comment'; id: string } | null - comments: { __typename?: 'CommentConnection'; totalCount: number } - communityWatchAction?: { - __typename?: 'CommunityWatchAction' - uuid: string - } | null - author: { __typename?: 'User'; id: string; isBlocked: boolean } - } - reply: { - __typename?: 'Comment' - id: string - state: CommentState - type: CommentType - content?: string | null - node: - | { - __typename?: 'Article' - id: string - title: string - slug: string - shortHash: string - summary: string - articleState: ArticleState - author: { __typename?: 'User'; id: string; userName?: string | null } - } - | { __typename?: 'ArticleVersion' } - | { __typename?: 'Circle'; id: string; name: string; displayName: string } - | { __typename?: 'Collection' } - | { __typename?: 'Comment' } - | { __typename?: 'CurationChannel' } - | { __typename?: 'Draft' } - | { __typename?: 'IcymiTopic' } - | { - __typename?: 'Moment' - id: string - shortHash: string - momentState: MomentState - } - | { __typename?: 'Report' } - | { __typename?: 'Tag' } - | { __typename?: 'TopicChannel' } - | { __typename?: 'User' } - | { __typename?: 'WritingChallenge' } - parentComment?: { __typename?: 'Comment'; id: string } | null - comments: { __typename?: 'CommentConnection'; totalCount: number } - communityWatchAction?: { - __typename?: 'CommunityWatchAction' - uuid: string - } | null - author: { __typename?: 'User'; id: string; isBlocked: boolean } - } -} - -type DigestNotice_CommentNotice_Fragment = { - __typename: 'CommentNotice' - id: string - unread: boolean - createdAt: any - commentNoticeType: CommentNoticeType - actors?: Array<{ - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - }> | null - comment: { - __typename?: 'Comment' - id: string - state: CommentState - type: CommentType - content?: string | null - node: - | { - __typename?: 'Article' - id: string - title: string - slug: string - shortHash: string - summary: string - articleState: ArticleState - author: { __typename?: 'User'; id: string; userName?: string | null } - } - | { __typename?: 'ArticleVersion' } - | { __typename?: 'Circle'; id: string; name: string; displayName: string } - | { __typename?: 'Collection' } - | { __typename?: 'Comment' } - | { __typename?: 'CurationChannel' } - | { __typename?: 'Draft' } - | { __typename?: 'IcymiTopic' } - | { - __typename?: 'Moment' - state: MomentState - id: string - shortHash: string - content?: string | null - momentState: MomentState - assets: Array<{ __typename?: 'Asset'; id: string; path: string }> - } - | { __typename?: 'Report' } - | { __typename?: 'Tag' } - | { __typename?: 'TopicChannel' } - | { __typename?: 'User' } - | { __typename?: 'WritingChallenge' } - parentComment?: { __typename?: 'Comment'; id: string } | null - comments: { __typename?: 'CommentConnection'; totalCount: number } - communityWatchAction?: { - __typename?: 'CommunityWatchAction' - uuid: string - } | null - author: { __typename?: 'User'; id: string; isBlocked: boolean } - } -} - -type DigestNotice_MomentNotice_Fragment = { - __typename: 'MomentNotice' - id: string - unread: boolean - createdAt: any - momentNoticeType: MomentNoticeType - actors?: Array<{ - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - }> | null - moment: { - __typename?: 'Moment' - id: string - state: MomentState - content?: string | null - shortHash: string - assets: Array<{ __typename?: 'Asset'; id: string; path: string }> - } -} - -type DigestNotice_OfficialAnnouncementNotice_Fragment = { - __typename: 'OfficialAnnouncementNotice' - id: string - unread: boolean - link?: string | null - message: string - createdAt: any -} - -type DigestNotice_TransactionNotice_Fragment = { - __typename: 'TransactionNotice' - id: string - unread: boolean - createdAt: any - txNoticeType: TransactionNoticeType - actors?: Array<{ - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - }> | null - tx: { - __typename?: 'Transaction' - id: string - amount: number - currency: TransactionCurrency - state: TransactionState - target?: - | { - __typename: 'Article' - id: string - summary: string - title: string - slug: string - shortHash: string - articleState: ArticleState - author: { __typename?: 'User'; id: string; userName?: string | null } - } - | { __typename: 'Circle' } - | { __typename: 'Transaction' } - | null - blockchainTx?: { - __typename?: 'BlockchainTransaction' - chain: Chain - txHash: string - } | null - } -} - -type DigestNotice_UserNotice_Fragment = { - __typename: 'UserNotice' - id: string - unread: boolean - createdAt: any - userNoticeType: UserNoticeType - actors?: Array<{ - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - }> | null -} - -export type DigestNoticeFragment = - | DigestNotice_ArticleArticleNotice_Fragment - | DigestNotice_ArticleNotice_Fragment - | DigestNotice_CampaignArticleNotice_Fragment - | DigestNotice_CircleNotice_Fragment - | DigestNotice_CollectionNotice_Fragment - | DigestNotice_CommentCommentNotice_Fragment - | DigestNotice_CommentNotice_Fragment - | DigestNotice_MomentNotice_Fragment - | DigestNotice_OfficialAnnouncementNotice_Fragment - | DigestNotice_TransactionNotice_Fragment - | DigestNotice_UserNotice_Fragment - -export type ViewerPublicFragment = { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - liker: { __typename?: 'Liker'; likerId?: string | null; civicLiker: boolean } - status?: { - __typename?: 'UserStatus' - state: UserState - unreadNoticeCount: number - hasPaymentPassword: boolean - } | null - ownCircles?: Array<{ __typename?: 'Circle'; id: string; name: string }> | null - info: { - __typename?: 'UserInfo' - createdAt?: any | null - description?: string | null - email?: any | null - agreeOn?: any | null - userNameEditable: boolean - group: UserGroup - ethAddress?: string | null - isWalletAuth: boolean - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - settings: { __typename?: 'UserSettings'; language: UserLanguage } - following: { - __typename?: 'Following' - users: { __typename?: 'UserConnection'; totalCount: number } - } - followers: { __typename?: 'UserConnection'; totalCount: number } -} - -export type ViewerPrivateFragment = { - __typename?: 'User' - id: string - info: { - __typename?: 'UserInfo' - emailVerified: boolean - socialAccounts: Array<{ - __typename?: 'SocialAccount' - type: SocialAccountType - userName?: string | null - email?: string | null - }> - } - status?: { - __typename?: 'UserStatus' - role: UserRole - hasEmailLoginPassword: boolean - changeEmailTimesLeft: number - } | null - articles: { __typename?: 'ArticleConnection'; totalCount: number } - settings: { __typename?: 'UserSettings'; currency: QuoteCurrency } -} - -export type OfficialFragment = { - __typename?: 'Official' - features: Array<{ - __typename?: 'Feature' - name: FeatureName - enabled: boolean - }> -} - -export type RootQueryPrivateQueryVariables = Exact<{ [key: string]: never }> - -export type RootQueryPrivateQuery = { - __typename?: 'Query' - viewer?: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - liker: { - __typename?: 'Liker' - likerId?: string | null - civicLiker: boolean - } - status?: { - __typename?: 'UserStatus' - state: UserState - unreadNoticeCount: number - hasPaymentPassword: boolean - role: UserRole - hasEmailLoginPassword: boolean - changeEmailTimesLeft: number - } | null - ownCircles?: Array<{ - __typename?: 'Circle' - id: string - name: string - }> | null - info: { - __typename?: 'UserInfo' - createdAt?: any | null - description?: string | null - email?: any | null - agreeOn?: any | null - userNameEditable: boolean - group: UserGroup - ethAddress?: string | null - isWalletAuth: boolean - emailVerified: boolean - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - socialAccounts: Array<{ - __typename?: 'SocialAccount' - type: SocialAccountType - userName?: string | null - email?: string | null - }> - } - settings: { - __typename?: 'UserSettings' - language: UserLanguage - currency: QuoteCurrency - } - following: { - __typename?: 'Following' - users: { __typename?: 'UserConnection'; totalCount: number } - } - followers: { __typename?: 'UserConnection'; totalCount: number } - articles: { __typename?: 'ArticleConnection'; totalCount: number } - } | null - official: { - __typename?: 'Official' - features: Array<{ - __typename?: 'Feature' - name: FeatureName - enabled: boolean - }> - } - channels: Array< - | { - __typename?: 'CurationChannel' - showRecommendation: boolean - id: string - shortHash: string - nameZhHans: string - nameZhHant: string - nameEn: string - navbarTitleZhHans: string - navbarTitleZhHant: string - navbarTitleEn: string - } - | { __typename?: 'Tag'; id: string; shortHash: string } - | { - __typename?: 'TopicChannel' - enabled: boolean - id: string - shortHash: string - nameZhHans: string - nameZhHant: string - nameEn: string - navbarTitleZhHans: string - navbarTitleZhHant: string - navbarTitleEn: string - } - | { - __typename?: 'WritingChallenge' - id: string - shortHash: string - nameZhHans: string - nameZhHant: string - nameEn: string - navbarTitleZhHans: string - navbarTitleZhHant: string - navbarTitleEn: string - } - > -} - -export type QuickResultQueryVariables = Exact<{ - key: Scalars['String']['input'] -}> - -export type QuickResultQuery = { - __typename?: 'Query' - user: { - __typename?: 'SearchResultConnection' - edges?: Array<{ - __typename?: 'SearchResultEdge' - cursor: string - node: - | { __typename?: 'Article' } - | { __typename?: 'ArticleVersion' } - | { __typename?: 'Circle' } - | { __typename?: 'Collection' } - | { __typename?: 'Comment' } - | { __typename?: 'CurationChannel' } - | { __typename?: 'Draft' } - | { __typename?: 'IcymiTopic' } - | { __typename?: 'Moment' } - | { __typename?: 'Report' } - | { __typename?: 'Tag' } - | { __typename?: 'TopicChannel' } - | { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - info: { - __typename?: 'UserInfo' - description?: string | null - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - } - | { __typename?: 'WritingChallenge' } - }> | null - } - tag: { - __typename?: 'SearchResultConnection' - edges?: Array<{ - __typename?: 'SearchResultEdge' - cursor: string - node: - | { __typename?: 'Article' } - | { __typename?: 'ArticleVersion' } - | { __typename?: 'Circle' } - | { __typename?: 'Collection' } - | { __typename?: 'Comment' } - | { __typename?: 'CurationChannel' } - | { __typename?: 'Draft' } - | { __typename?: 'IcymiTopic' } - | { __typename?: 'Moment' } - | { __typename?: 'Report' } - | { - __typename?: 'Tag' - id: string - content: string - numArticles: number - } - | { __typename?: 'TopicChannel' } - | { __typename?: 'User' } - | { __typename?: 'WritingChallenge' } - }> | null - } -} - -export type SelectSearchQueryVariables = Exact<{ - key: Scalars['String']['input'] - type: SearchTypes - filter?: InputMaybe - after?: InputMaybe - first?: InputMaybe - exclude?: InputMaybe - includeAuthorTags?: InputMaybe -}> - -export type SelectSearchQuery = { - __typename?: 'Query' - search: { - __typename?: 'SearchResultConnection' - pageInfo: { - __typename?: 'PageInfo' - startCursor?: string | null - endCursor?: string | null - hasNextPage: boolean - } - edges?: Array<{ - __typename?: 'SearchResultEdge' - cursor: string - node: - | { - __typename?: 'Article' - id: string - title: string - slug: string - shortHash: string - state: ArticleState - articleState: ArticleState - author: { - __typename?: 'User' - id: string - userName?: string | null - isBlocking: boolean - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - } - | { __typename?: 'ArticleVersion'; id: string } - | { __typename?: 'Circle'; id: string } - | { __typename?: 'Collection'; id: string } - | { __typename?: 'Comment'; id: string } - | { __typename?: 'CurationChannel'; id: string } - | { __typename?: 'Draft'; id: string } - | { __typename?: 'IcymiTopic'; id: string } - | { __typename?: 'Moment'; id: string } - | { __typename?: 'Report'; id: string } - | { - __typename?: 'Tag' - id: string - content: string - numArticles: number - } - | { __typename?: 'TopicChannel'; id: string } - | { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - | { __typename?: 'WritingChallenge'; id: string } - }> | null - } -} - -export type ListViewerArticlesQueryVariables = Exact<{ - after?: InputMaybe -}> - -export type ListViewerArticlesQuery = { - __typename?: 'Query' - viewer?: { - __typename?: 'User' - id: string - articles: { - __typename?: 'ArticleConnection' - totalCount: number - pageInfo: { - __typename?: 'PageInfo' - startCursor?: string | null - endCursor?: string | null - hasNextPage: boolean - } - edges?: Array<{ - __typename?: 'ArticleEdge' - cursor: string - node: { - __typename?: 'Article' - id: string - title: string - slug: string - shortHash: string - state: ArticleState - articleState: ArticleState - author: { - __typename?: 'User' - id: string - userName?: string | null - isBlocking: boolean - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - } - }> | null - } - } | null -} - -export type ArticleUrlQueryQueryVariables = Exact<{ - shortHash: Scalars['String']['input'] -}> - -export type ArticleUrlQueryQuery = { - __typename?: 'Query' - article?: { - __typename?: 'Article' - id: string - title: string - slug: string - shortHash: string - state: ArticleState - articleState: ArticleState - author: { - __typename?: 'User' - id: string - userName?: string | null - isBlocking: boolean - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - } | null -} - -export type DigestTagFragment = { - __typename?: 'Tag' - id: string - content: string - numArticles: number -} - -export type TagDigestBookmarkTagFragment = { - __typename?: 'Tag' - id: string - content: string - isFollower?: boolean | null -} - -export type TagDigestFollowButtonPrivateFragment = { - __typename?: 'Tag' - id: string - isFollower?: boolean | null -} - -export type TagDigestConciseTagFragment = { - __typename?: 'Tag' - id: string - content: string - numArticles: number -} - -export type TagDigestFeedTagFragment = { - __typename?: 'Tag' - id: string - content: string - numArticles: number -} - -export type ToggleSpamArticleFragment = { - __typename?: 'Article' - id: string - oss: { - __typename?: 'ArticleOSS' - spamStatus: { __typename?: 'SpamStatus'; isSpam?: boolean | null } - } -} - -export type ToggleSpamCommentFragment = { - __typename?: 'Comment' - id: string - spamStatus: { __typename?: 'SpamStatus'; isSpam?: boolean | null } -} - -export type ToggleSpamMomentFragment = { - __typename?: 'Moment' - id: string - spamStatus: { __typename?: 'SpamStatus'; isSpam?: boolean | null } -} - -export type ToggleSpamMutationVariables = Exact<{ - id: Scalars['ID']['input'] - isSpam: Scalars['Boolean']['input'] -}> - -export type ToggleSpamMutation = { - __typename?: 'Mutation' - setSpamStatus: - | { - __typename?: 'Article' - id: string - oss: { - __typename?: 'ArticleOSS' - spamStatus: { __typename?: 'SpamStatus'; isSpam?: boolean | null } - } - } - | { - __typename?: 'Comment' - id: string - spamStatus: { __typename?: 'SpamStatus'; isSpam?: boolean | null } - } - | { - __typename?: 'Moment' - id: string - spamStatus: { __typename?: 'SpamStatus'; isSpam?: boolean | null } - } -} - -export type FetchArticleSpamStatusQueryVariables = Exact<{ - shortHash: Scalars['String']['input'] -}> - -export type FetchArticleSpamStatusQuery = { - __typename?: 'Query' - article?: { - __typename?: 'Article' - id: string - oss: { - __typename?: 'ArticleOSS' - spamStatus: { __typename?: 'SpamStatus'; isSpam?: boolean | null } - } - } | null -} - -export type FetchCommentSpamStatusQueryVariables = Exact<{ - id: Scalars['ID']['input'] -}> - -export type FetchCommentSpamStatusQuery = { - __typename?: 'Query' - node?: - | { __typename?: 'Article' } - | { __typename?: 'ArticleVersion' } - | { __typename?: 'Circle' } - | { __typename?: 'Collection' } - | { - __typename?: 'Comment' - id: string - spamStatus: { __typename?: 'SpamStatus'; isSpam?: boolean | null } - } - | { __typename?: 'CurationChannel' } - | { __typename?: 'Draft' } - | { __typename?: 'IcymiTopic' } - | { __typename?: 'Moment' } - | { __typename?: 'Report' } - | { __typename?: 'Tag' } - | { __typename?: 'TopicChannel' } - | { __typename?: 'User' } - | { __typename?: 'WritingChallenge' } - | null -} - -export type FetchMomentSpamStatusQueryVariables = Exact<{ - id: Scalars['ID']['input'] -}> - -export type FetchMomentSpamStatusQuery = { - __typename?: 'Query' - node?: - | { __typename?: 'Article' } - | { __typename?: 'ArticleVersion' } - | { __typename?: 'Circle' } - | { __typename?: 'Collection' } - | { __typename?: 'Comment' } - | { __typename?: 'CurationChannel' } - | { __typename?: 'Draft' } - | { __typename?: 'IcymiTopic' } - | { - __typename?: 'Moment' - id: string - spamStatus: { __typename?: 'SpamStatus'; isSpam?: boolean | null } - } - | { __typename?: 'Report' } - | { __typename?: 'Tag' } - | { __typename?: 'TopicChannel' } - | { __typename?: 'User' } - | { __typename?: 'WritingChallenge' } - | null -} - -export type DigestTransactionFragment = { - __typename?: 'Transaction' - id: string - state: TransactionState - purpose: TransactionPurpose - amount: number - fee: number - currency: TransactionCurrency - createdAt: any - message?: string | null - recipient?: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } | null - sender?: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } | null - target?: - | { - __typename?: 'Article' - id: string - title: string - slug: string - shortHash: string - articleState: ArticleState - author: { __typename?: 'User'; id: string; userName?: string | null } - } - | { __typename?: 'Circle'; id: string; name: string; displayName: string } - | { __typename?: 'Transaction' } - | null - blockchainTx?: { - __typename?: 'BlockchainTransaction' - chain: Chain - txHash: string - } | null -} - -export type UserDigestMiniUserFragment = { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } -} - -export type UserDigestPlainUserFragment = { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null -} - -export type UserDigestRichUserPublicFragment = { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - info: { - __typename?: 'UserInfo' - description?: string | null - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } -} - -export type UserDigestRichUserPrivateFragment = { - __typename?: 'User' - id: string - isFollower: boolean - isFollowee: boolean - status?: { __typename?: 'UserStatus'; state: UserState } | null -} - -export type GetShortHashByIdQueryVariables = Exact<{ - id: Scalars['ID']['input'] -}> - -export type GetShortHashByIdQuery = { - __typename?: 'Query' - node?: - | { __typename?: 'Article'; id: string; shortHash: string } - | { __typename?: 'ArticleVersion' } - | { __typename?: 'Circle' } - | { __typename?: 'Collection' } - | { __typename?: 'Comment' } - | { __typename?: 'CurationChannel' } - | { __typename?: 'Draft' } - | { __typename?: 'IcymiTopic' } - | { __typename?: 'Moment' } - | { __typename?: 'Report' } - | { __typename?: 'Tag' } - | { __typename?: 'TopicChannel' } - | { __typename?: 'User' } - | { __typename?: 'WritingChallenge' } - | null -} - -export type GetShortHashByMediaHashQueryVariables = Exact<{ - mediaHash: Scalars['String']['input'] -}> - -export type GetShortHashByMediaHashQuery = { - __typename?: 'Query' - article?: { __typename?: 'Article'; id: string; shortHash: string } | null -} - -export type AppreciationButtonArticlePublicFragment = { - __typename?: 'Article' - id: string - shortHash: string - appreciateLimit: number - likesReceivedTotal: number - author: { __typename?: 'User'; id: string } -} - -export type AppreciationButtonArticlePrivateFragment = { - __typename?: 'Article' - id: string - hasAppreciate: boolean - appreciateLeft: number - author: { __typename?: 'User'; id: string; isBlocking: boolean } -} - -export type AppreciateArticleMutationVariables = Exact<{ - id: Scalars['ID']['input'] - amount: Scalars['amount_Int_NotNull_min_1']['input'] -}> - -export type AppreciateArticleMutation = { - __typename?: 'Mutation' - appreciateArticle: { - __typename?: 'Article' - id: string - appreciateLeft: number - likesReceivedTotal: number - } -} - -export type ArticleDigestAuthorSidebarArticleFragment = { - __typename?: 'Article' - id: string - title: string - slug: string - shortHash: string - displayCover?: string | null - articleState: ArticleState - author: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } -} - -export type AuthorSidebarAuthorArticleFragment = { - __typename?: 'Article' - id: string - author: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - info: { - __typename?: 'UserInfo' - description?: string | null - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - } - liker: { __typename?: 'Liker'; civicLiker: boolean } - } -} - -export type AuthorSidebarCollectionQueryVariables = Exact<{ - id: Scalars['ID']['input'] - before?: InputMaybe - after?: InputMaybe - includeBefore?: InputMaybe - includeAfter?: InputMaybe -}> - -export type AuthorSidebarCollectionQuery = { - __typename?: 'Query' - node?: - | { __typename?: 'Article'; id: string } - | { __typename?: 'ArticleVersion'; id: string } - | { __typename?: 'Circle'; id: string } - | { - __typename?: 'Collection' - id: string - title: string - description?: string | null - articles: { - __typename?: 'ArticleConnection' - totalCount: number - pageInfo: { - __typename?: 'PageInfo' - startCursor?: string | null - endCursor?: string | null - hasNextPage: boolean - hasPreviousPage: boolean - } - edges?: Array<{ - __typename?: 'ArticleEdge' - cursor: string - node: { - __typename?: 'Article' - id: string - title: string - slug: string - shortHash: string - displayCover?: string | null - articleState: ArticleState - author: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ - __typename?: 'Badge' - type: BadgeType - }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - } - }> | null - } - } - | { __typename?: 'Comment'; id: string } - | { __typename?: 'CurationChannel'; id: string } - | { __typename?: 'Draft'; id: string } - | { __typename?: 'IcymiTopic'; id: string } - | { __typename?: 'Moment'; id: string } - | { __typename?: 'Report'; id: string } - | { __typename?: 'Tag'; id: string } - | { __typename?: 'TopicChannel'; id: string } - | { __typename?: 'User'; id: string } - | { __typename?: 'WritingChallenge'; id: string } - | null -} - -export type AuthorSidebarFromAuthorFragment = { - __typename?: 'Article' - id: string - author: { - __typename?: 'User' - latestWorks: Array< - | { - __typename?: 'Article' - id: string - title: string - cover?: string | null - slug: string - shortHash: string - displayCover?: string | null - articleState: ArticleState - author: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - } - | { - __typename?: 'Collection' - id: string - title: string - cover?: string | null - author: { __typename?: 'User'; id: string; userName?: string | null } - articles: { __typename?: 'ArticleConnection'; totalCount: number } - } - > - } -} - -export type AuthorSidebarRelatedArticlesFragment = { - __typename?: 'Article' - id: string - relatedArticles: { - __typename?: 'ArticleConnection' - totalCount: number - edges?: Array<{ - __typename?: 'ArticleEdge' - cursor: string - node: { - __typename?: 'Article' - id: string - title: string - slug: string - shortHash: string - displayCover?: string | null - articleState: ArticleState - author: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - } - }> | null - } -} - -export type AuthorSidebarRelatedArticlesQueryVariables = Exact<{ - shortHash?: InputMaybe -}> - -export type AuthorSidebarRelatedArticlesQuery = { - __typename?: 'Query' - article?: { - __typename?: 'Article' - id: string - relatedArticles: { - __typename?: 'ArticleConnection' - totalCount: number - edges?: Array<{ - __typename?: 'ArticleEdge' - cursor: string - node: { - __typename?: 'Article' - id: string - title: string - slug: string - shortHash: string - displayCover?: string | null - articleState: ArticleState - author: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - } - }> | null - } - } | null -} - -export type AuthorSidebarArticleFragment = { - __typename?: 'Article' - id: string - relatedArticles: { __typename?: 'ArticleConnection'; totalCount: number } - author: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - info: { - __typename?: 'UserInfo' - description?: string | null - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - } - latestWorks: Array< - | { - __typename?: 'Article' - id: string - title: string - cover?: string | null - slug: string - shortHash: string - displayCover?: string | null - articleState: ArticleState - author: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - } - | { - __typename?: 'Collection' - id: string - title: string - cover?: string | null - author: { __typename?: 'User'; id: string; userName?: string | null } - articles: { __typename?: 'ArticleConnection'; totalCount: number } - } - > - liker: { __typename?: 'Liker'; civicLiker: boolean } - } -} - -export type ChannelArticlePublicFragment = { - __typename?: 'Article' - id: string - author: { __typename?: 'User'; id: string } - classification: { - __typename?: 'ArticleClassification' - topicChannel: { - __typename?: 'TopicChannelClassification' - enabled: boolean - channels?: Array<{ - __typename?: 'ArticleTopicChannel' - enabled: boolean - antiFlooded: boolean - channel: { - __typename?: 'TopicChannel' - id: string - shortHash: string - enabled: boolean - nameZhHans: string - nameZhHant: string - nameEn: string - } - }> | null - feedback?: { - __typename?: 'TopicChannelFeedback' - id: string - state?: TopicChannelFeedbackState | null - type: TopicChannelFeedbackType - channels?: Array<{ __typename?: 'TopicChannel'; id: string }> | null - } | null - } - } -} - -export type ChannelArticlePrivateFragment = { - __typename?: 'Article' - id: string - classification: { - __typename?: 'ArticleClassification' - topicChannel: { - __typename?: 'TopicChannelClassification' - enabled: boolean - feedback?: { - __typename?: 'TopicChannelFeedback' - id: string - state?: TopicChannelFeedbackState | null - type: TopicChannelFeedbackType - channels?: Array<{ __typename?: 'TopicChannel'; id: string }> | null - } | null - } - } -} - -export type SubmitTopicChannelFeedbackMutationVariables = Exact<{ - article: Scalars['ID']['input'] - type: TopicChannelFeedbackType - channels: Array | Scalars['ID']['input'] -}> - -export type SubmitTopicChannelFeedbackMutation = { - __typename?: 'Mutation' - submitTopicChannelFeedback: { - __typename?: 'TopicChannelFeedback' - id: string - type: TopicChannelFeedbackType - article: { - __typename?: 'Article' - id: string - author: { __typename?: 'User'; id: string } - classification: { - __typename?: 'ArticleClassification' - topicChannel: { - __typename?: 'TopicChannelClassification' - enabled: boolean - channels?: Array<{ - __typename?: 'ArticleTopicChannel' - enabled: boolean - antiFlooded: boolean - channel: { - __typename?: 'TopicChannel' - id: string - shortHash: string - enabled: boolean - nameZhHans: string - nameZhHant: string - nameEn: string - } - }> | null - feedback?: { - __typename?: 'TopicChannelFeedback' - id: string - state?: TopicChannelFeedbackState | null - type: TopicChannelFeedbackType - channels?: Array<{ __typename?: 'TopicChannel'; id: string }> | null - } | null - } - } - } - } -} - -export type CollectionListQueryVariables = Exact<{ - id: Scalars['ID']['input'] - after?: InputMaybe - first?: InputMaybe -}> - -export type CollectionListQuery = { - __typename?: 'Query' - article?: - | { - __typename?: 'Article' - id: string - connections: { - __typename?: 'ArticleConnection' - totalCount: number - pageInfo: { - __typename?: 'PageInfo' - startCursor?: string | null - endCursor?: string | null - hasNextPage: boolean - } - edges?: Array<{ - __typename?: 'ArticleEdge' - cursor: string - node: { - __typename?: 'Article' - id: string - title: string - slug: string - shortHash: string - state: ArticleState - articleState: ArticleState - author: { - __typename?: 'User' - id: string - userName?: string | null - isBlocking: boolean - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ - __typename?: 'Badge' - type: BadgeType - }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - } - }> | null - } - } - | { __typename?: 'ArticleVersion' } - | { __typename?: 'Circle' } - | { __typename?: 'Collection' } - | { __typename?: 'Comment' } - | { __typename?: 'CurationChannel' } - | { __typename?: 'Draft' } - | { __typename?: 'IcymiTopic' } - | { __typename?: 'Moment' } - | { __typename?: 'Report' } - | { __typename?: 'Tag' } - | { __typename?: 'TopicChannel' } - | { __typename?: 'User' } - | { __typename?: 'WritingChallenge' } - | null -} - -export type CommentDetailQueryVariables = Exact<{ - id: Scalars['ID']['input'] -}> - -export type CommentDetailQuery = { - __typename?: 'Query' - node?: - | { __typename?: 'Article' } - | { __typename?: 'ArticleVersion' } - | { __typename?: 'Circle' } - | { __typename?: 'Collection' } - | { - __typename?: 'Comment' - id: string - type: CommentType - createdAt: any - fromDonator: boolean - pinned: boolean - state: CommentState - content?: string | null - upvotes: number - myVote?: Vote | null - comments: { - __typename?: 'CommentConnection' - pageInfo: { - __typename?: 'PageInfo' - startCursor?: string | null - endCursor?: string | null - hasNextPage: boolean - } - edges?: Array<{ - __typename?: 'CommentEdge' - cursor: string - node: { - __typename?: 'Comment' - id: string - type: CommentType - createdAt: any - fromDonator: boolean - pinned: boolean - state: CommentState - content?: string | null - upvotes: number - myVote?: Vote | null - author: { - __typename?: 'User' - id: string - isBlocked: boolean - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ - __typename?: 'Badge' - type: BadgeType - }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - replyTo?: { - __typename?: 'Comment' - id: string - author: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { - __typename?: 'UserStatus' - state: UserState - } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ - __typename?: 'Badge' - type: BadgeType - }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - } | null - node: - | { - __typename?: 'Article' - id: string - shortHash: string - commentCount: number - pinCommentLeft: number - author: { - __typename?: 'User' - id: string - isBlocking: boolean - userName?: string | null - } - } - | { __typename?: 'ArticleVersion' } - | { __typename?: 'Circle' } - | { __typename?: 'Collection' } - | { __typename?: 'Comment' } - | { __typename?: 'CurationChannel' } - | { __typename?: 'Draft' } - | { __typename?: 'IcymiTopic' } - | { - __typename?: 'Moment' - id: string - shortHash: string - commentCount: number - author: { - __typename?: 'User' - id: string - isBlocking: boolean - userName?: string | null - } - } - | { __typename?: 'Report' } - | { __typename?: 'Tag' } - | { __typename?: 'TopicChannel' } - | { __typename?: 'User' } - | { __typename?: 'WritingChallenge' } - parentComment?: { __typename?: 'Comment'; id: string } | null - dropdownComments: { - __typename?: 'CommentConnection' - totalCount: number - } - communityWatchAction?: { - __typename?: 'CommunityWatchAction' - uuid: string - } | null - } - }> | null - } - author: { - __typename?: 'User' - id: string - isBlocked: boolean - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - replyTo?: { - __typename?: 'Comment' - id: string - author: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - } | null - node: - | { - __typename?: 'Article' - id: string - shortHash: string - commentCount: number - pinCommentLeft: number - author: { - __typename?: 'User' - id: string - isBlocking: boolean - userName?: string | null - } - } - | { __typename?: 'ArticleVersion' } - | { __typename?: 'Circle' } - | { __typename?: 'Collection' } - | { __typename?: 'Comment' } - | { __typename?: 'CurationChannel' } - | { __typename?: 'Draft' } - | { __typename?: 'IcymiTopic' } - | { - __typename?: 'Moment' - id: string - shortHash: string - commentCount: number - author: { - __typename?: 'User' - id: string - isBlocking: boolean - userName?: string | null - } - } - | { __typename?: 'Report' } - | { __typename?: 'Tag' } - | { __typename?: 'TopicChannel' } - | { __typename?: 'User' } - | { __typename?: 'WritingChallenge' } - parentComment?: { __typename?: 'Comment'; id: string } | null - dropdownComments: { - __typename?: 'CommentConnection' - totalCount: number - } - communityWatchAction?: { - __typename?: 'CommunityWatchAction' - uuid: string - } | null - } - | { __typename?: 'CurationChannel' } - | { __typename?: 'Draft' } - | { __typename?: 'IcymiTopic' } - | { __typename?: 'Moment' } - | { __typename?: 'Report' } - | { __typename?: 'Tag' } - | { __typename?: 'TopicChannel' } - | { __typename?: 'User' } - | { __typename?: 'WritingChallenge' } - | null -} - -export type LatestCommentsPublicQueryVariables = Exact<{ - id: Scalars['ID']['input'] - before?: InputMaybe - after?: InputMaybe - first?: InputMaybe - includeAfter?: InputMaybe - includeBefore?: InputMaybe -}> - -export type LatestCommentsPublicQuery = { - __typename?: 'Query' - article?: - | { - __typename?: 'Article' - id: string - shortHash: string - pinnedComments?: Array<{ - __typename?: 'Comment' - id: string - type: CommentType - createdAt: any - fromDonator: boolean - pinned: boolean - state: CommentState - content?: string | null - upvotes: number - myVote?: Vote | null - comments: { - __typename?: 'CommentConnection' - edges?: Array<{ - __typename?: 'CommentEdge' - cursor: string - node: { - __typename?: 'Comment' - id: string - type: CommentType - createdAt: any - fromDonator: boolean - pinned: boolean - state: CommentState - content?: string | null - upvotes: number - myVote?: Vote | null - author: { - __typename?: 'User' - id: string - isBlocked: boolean - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { - __typename?: 'UserStatus' - state: UserState - } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ - __typename?: 'Badge' - type: BadgeType - }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - replyTo?: { - __typename?: 'Comment' - id: string - author: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { - __typename?: 'UserStatus' - state: UserState - } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ - __typename?: 'Badge' - type: BadgeType - }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - } | null - node: - | { - __typename?: 'Article' - id: string - shortHash: string - commentCount: number - pinCommentLeft: number - author: { - __typename?: 'User' - id: string - isBlocking: boolean - userName?: string | null - } - } - | { __typename?: 'ArticleVersion' } - | { __typename?: 'Circle' } - | { __typename?: 'Collection' } - | { __typename?: 'Comment' } - | { __typename?: 'CurationChannel' } - | { __typename?: 'Draft' } - | { __typename?: 'IcymiTopic' } - | { - __typename?: 'Moment' - id: string - shortHash: string - commentCount: number - author: { - __typename?: 'User' - id: string - isBlocking: boolean - userName?: string | null - } - } - | { __typename?: 'Report' } - | { __typename?: 'Tag' } - | { __typename?: 'TopicChannel' } - | { __typename?: 'User' } - | { __typename?: 'WritingChallenge' } - parentComment?: { __typename?: 'Comment'; id: string } | null - dropdownComments: { - __typename?: 'CommentConnection' - totalCount: number - } - communityWatchAction?: { - __typename?: 'CommunityWatchAction' - uuid: string - } | null - } - }> | null - pageInfo: { - __typename?: 'PageInfo' - startCursor?: string | null - endCursor?: string | null - hasNextPage: boolean - } - } - author: { - __typename?: 'User' - id: string - isBlocked: boolean - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - replyTo?: { - __typename?: 'Comment' - id: string - author: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - } | null - node: - | { - __typename?: 'Article' - id: string - shortHash: string - commentCount: number - pinCommentLeft: number - author: { - __typename?: 'User' - id: string - isBlocking: boolean - userName?: string | null - } - } - | { __typename?: 'ArticleVersion' } - | { __typename?: 'Circle' } - | { __typename?: 'Collection' } - | { __typename?: 'Comment' } - | { __typename?: 'CurationChannel' } - | { __typename?: 'Draft' } - | { __typename?: 'IcymiTopic' } - | { - __typename?: 'Moment' - id: string - shortHash: string - commentCount: number - author: { - __typename?: 'User' - id: string - isBlocking: boolean - userName?: string | null - } - } - | { __typename?: 'Report' } - | { __typename?: 'Tag' } - | { __typename?: 'TopicChannel' } - | { __typename?: 'User' } - | { __typename?: 'WritingChallenge' } - parentComment?: { __typename?: 'Comment'; id: string } | null - dropdownComments: { - __typename?: 'CommentConnection' - totalCount: number - } - communityWatchAction?: { - __typename?: 'CommunityWatchAction' - uuid: string - } | null - }> | null - comments: { - __typename?: 'CommentConnection' - totalCount: number - pageInfo: { - __typename?: 'PageInfo' - startCursor?: string | null - endCursor?: string | null - hasNextPage: boolean - } - edges?: Array<{ - __typename?: 'CommentEdge' - node: { - __typename?: 'Comment' - id: string - type: CommentType - createdAt: any - fromDonator: boolean - pinned: boolean - state: CommentState - content?: string | null - upvotes: number - myVote?: Vote | null - comments: { - __typename?: 'CommentConnection' - edges?: Array<{ - __typename?: 'CommentEdge' - cursor: string - node: { - __typename?: 'Comment' - id: string - type: CommentType - createdAt: any - fromDonator: boolean - pinned: boolean - state: CommentState - content?: string | null - upvotes: number - myVote?: Vote | null - author: { - __typename?: 'User' - id: string - isBlocked: boolean - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { - __typename?: 'UserStatus' - state: UserState - } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ - __typename?: 'Badge' - type: BadgeType - }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - replyTo?: { - __typename?: 'Comment' - id: string - author: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { - __typename?: 'UserStatus' - state: UserState - } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ - __typename?: 'Badge' - type: BadgeType - }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - } | null - node: - | { - __typename?: 'Article' - id: string - shortHash: string - commentCount: number - pinCommentLeft: number - author: { - __typename?: 'User' - id: string - isBlocking: boolean - userName?: string | null - } - } - | { __typename?: 'ArticleVersion' } - | { __typename?: 'Circle' } - | { __typename?: 'Collection' } - | { __typename?: 'Comment' } - | { __typename?: 'CurationChannel' } - | { __typename?: 'Draft' } - | { __typename?: 'IcymiTopic' } - | { - __typename?: 'Moment' - id: string - shortHash: string - commentCount: number - author: { - __typename?: 'User' - id: string - isBlocking: boolean - userName?: string | null - } - } - | { __typename?: 'Report' } - | { __typename?: 'Tag' } - | { __typename?: 'TopicChannel' } - | { __typename?: 'User' } - | { __typename?: 'WritingChallenge' } - parentComment?: { - __typename?: 'Comment' - id: string - } | null - dropdownComments: { - __typename?: 'CommentConnection' - totalCount: number - } - communityWatchAction?: { - __typename?: 'CommunityWatchAction' - uuid: string - } | null - } - }> | null - pageInfo: { - __typename?: 'PageInfo' - startCursor?: string | null - endCursor?: string | null - hasNextPage: boolean - } - } - author: { - __typename?: 'User' - id: string - isBlocked: boolean - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ - __typename?: 'Badge' - type: BadgeType - }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - replyTo?: { - __typename?: 'Comment' - id: string - author: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { - __typename?: 'UserStatus' - state: UserState - } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ - __typename?: 'Badge' - type: BadgeType - }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - } | null - node: - | { - __typename?: 'Article' - id: string - shortHash: string - commentCount: number - pinCommentLeft: number - author: { - __typename?: 'User' - id: string - isBlocking: boolean - userName?: string | null - } - } - | { __typename?: 'ArticleVersion' } - | { __typename?: 'Circle' } - | { __typename?: 'Collection' } - | { __typename?: 'Comment' } - | { __typename?: 'CurationChannel' } - | { __typename?: 'Draft' } - | { __typename?: 'IcymiTopic' } - | { - __typename?: 'Moment' - id: string - shortHash: string - commentCount: number - author: { - __typename?: 'User' - id: string - isBlocking: boolean - userName?: string | null - } - } - | { __typename?: 'Report' } - | { __typename?: 'Tag' } - | { __typename?: 'TopicChannel' } - | { __typename?: 'User' } - | { __typename?: 'WritingChallenge' } - parentComment?: { __typename?: 'Comment'; id: string } | null - dropdownComments: { - __typename?: 'CommentConnection' - totalCount: number - } - communityWatchAction?: { - __typename?: 'CommunityWatchAction' - uuid: string - } | null - } - }> | null - } - } - | { __typename?: 'ArticleVersion' } - | { __typename?: 'Circle' } - | { __typename?: 'Collection' } - | { __typename?: 'Comment' } - | { __typename?: 'CurationChannel' } - | { __typename?: 'Draft' } - | { __typename?: 'IcymiTopic' } - | { __typename?: 'Moment' } - | { __typename?: 'Report' } - | { __typename?: 'Tag' } - | { __typename?: 'TopicChannel' } - | { __typename?: 'User' } - | { __typename?: 'WritingChallenge' } - | null -} - -export type LatestCommentsPrivateQueryVariables = Exact<{ - ids: Array | Scalars['ID']['input'] -}> - -export type LatestCommentsPrivateQuery = { - __typename?: 'Query' - nodes?: Array< - | { __typename?: 'Article'; id: string } - | { __typename?: 'ArticleVersion'; id: string } - | { __typename?: 'Circle'; id: string } - | { __typename?: 'Collection'; id: string } - | { - __typename?: 'Comment' - id: string - myVote?: Vote | null - comments: { - __typename?: 'CommentConnection' - pageInfo: { - __typename?: 'PageInfo' - startCursor?: string | null - endCursor?: string | null - hasNextPage: boolean - } - edges?: Array<{ - __typename?: 'CommentEdge' - cursor: string - node: { - __typename?: 'Comment' - id: string - myVote?: Vote | null - node: - | { - __typename?: 'Article' - id: string - commentCount: number - author: { - __typename?: 'User' - id: string - isBlocking: boolean - userName?: string | null - } - } - | { __typename?: 'ArticleVersion' } - | { __typename?: 'Circle' } - | { __typename?: 'Collection' } - | { __typename?: 'Comment' } - | { __typename?: 'CurationChannel' } - | { __typename?: 'Draft' } - | { __typename?: 'IcymiTopic' } - | { - __typename?: 'Moment' - id: string - commentCount: number - shortHash: string - author: { - __typename?: 'User' - id: string - isBlocking: boolean - userName?: string | null - } - } - | { __typename?: 'Report' } - | { __typename?: 'Tag' } - | { __typename?: 'TopicChannel' } - | { __typename?: 'User' } - | { __typename?: 'WritingChallenge' } - author: { __typename?: 'User'; id: string; isBlocked: boolean } - } - }> | null - } - node: - | { - __typename?: 'Article' - id: string - commentCount: number - author: { - __typename?: 'User' - id: string - isBlocking: boolean - userName?: string | null - } - } - | { __typename?: 'ArticleVersion' } - | { __typename?: 'Circle' } - | { __typename?: 'Collection' } - | { __typename?: 'Comment' } - | { __typename?: 'CurationChannel' } - | { __typename?: 'Draft' } - | { __typename?: 'IcymiTopic' } - | { - __typename?: 'Moment' - id: string - commentCount: number - shortHash: string - author: { - __typename?: 'User' - id: string - isBlocking: boolean - userName?: string | null - } - } - | { __typename?: 'Report' } - | { __typename?: 'Tag' } - | { __typename?: 'TopicChannel' } - | { __typename?: 'User' } - | { __typename?: 'WritingChallenge' } - author: { __typename?: 'User'; id: string; isBlocked: boolean } - } - | { __typename?: 'CurationChannel'; id: string } - | { __typename?: 'Draft'; id: string } - | { __typename?: 'IcymiTopic'; id: string } - | { __typename?: 'Moment'; id: string } - | { __typename?: 'Report'; id: string } - | { __typename?: 'Tag'; id: string } - | { __typename?: 'TopicChannel'; id: string } - | { __typename?: 'User'; id: string } - | { __typename?: 'WritingChallenge'; id: string } - > | null -} - -export type ArticleCommentsQueryVariables = Exact<{ - id: Scalars['ID']['input'] -}> - -export type ArticleCommentsQuery = { - __typename?: 'Query' - article?: - | { - __typename?: 'Article' - id: string - canComment: boolean - author: { __typename?: 'User'; id: string; isBlocking: boolean } - } - | { __typename?: 'ArticleVersion' } - | { __typename?: 'Circle' } - | { __typename?: 'Collection' } - | { __typename?: 'Comment' } - | { __typename?: 'CurationChannel' } - | { __typename?: 'Draft' } - | { __typename?: 'IcymiTopic' } - | { __typename?: 'Moment' } - | { __typename?: 'Report' } - | { __typename?: 'Tag' } - | { __typename?: 'TopicChannel' } - | { __typename?: 'User' } - | { __typename?: 'WritingChallenge' } - | null -} - -export type CommentsArticleFragment = { - __typename?: 'Article' - id: string - author: { __typename?: 'User'; id: string; isBlocking: boolean } -} - -export type ReadArticleMutationVariables = Exact<{ - id: Scalars['ID']['input'] -}> - -export type ReadArticleMutation = { - __typename?: 'Mutation' - readArticle: { __typename?: 'Article'; id: string } -} - -export type ArticleDetailEditHeaderArticleFragment = { - __typename?: 'Article' - id: string - cover?: string | null - canComment: boolean - indentFirstLine: boolean - sensitiveByAuthor: boolean - license: ArticleLicenseType - requestForDonation?: string | null - replyToDonator?: string | null - tags?: Array<{ - __typename?: 'Tag' - id: string - content: string - numArticles: number - }> | null - access: { - __typename?: 'ArticleAccess' - type: ArticleAccessType - circle?: { __typename?: 'Circle'; id: string } | null - } - campaigns: Array<{ - __typename?: 'ArticleCampaign' - campaign: { __typename?: 'WritingChallenge'; id: string } - stage?: { __typename?: 'CampaignStage'; id: string } | null - }> - collections: { - __typename?: 'CollectionConnection' - edges?: Array<{ - __typename?: 'CollectionEdge' - node: { __typename?: 'Collection'; id: string; title: string } - }> | null - } - connections: { - __typename?: 'ArticleConnection' - totalCount: number - pageInfo: { - __typename?: 'PageInfo' - startCursor?: string | null - endCursor?: string | null - hasNextPage: boolean - } - edges?: Array<{ - __typename?: 'ArticleEdge' - cursor: string - node: { - __typename?: 'Article' - id: string - title: string - slug: string - shortHash: string - state: ArticleState - articleState: ArticleState - author: { - __typename?: 'User' - id: string - userName?: string | null - isBlocking: boolean - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - } - }> | null - } -} - -export type EditArticleMutationVariables = Exact<{ - id: Scalars['ID']['input'] - description?: InputMaybe - title?: InputMaybe - summary?: InputMaybe - content?: InputMaybe - cover?: InputMaybe - tags?: InputMaybe< - Array | Scalars['String']['input'] - > - connections?: InputMaybe< - Array | Scalars['ID']['input'] - > - collections?: InputMaybe< - Array | Scalars['ID']['input'] - > - circle?: InputMaybe - accessType?: InputMaybe - license?: InputMaybe - iscnPublish?: InputMaybe - after?: InputMaybe - first?: InputMaybe - requestForDonation?: InputMaybe< - Scalars['requestForDonation_String_maxLength_140']['input'] - > - replyToDonator?: InputMaybe< - Scalars['replyToDonator_String_maxLength_140']['input'] - > - canComment?: InputMaybe - indented?: InputMaybe - sensitive?: InputMaybe - campaigns?: InputMaybe | ArticleCampaignInput> - isResetCampaign?: Scalars['Boolean']['input'] -}> - -export type EditArticleMutation = { - __typename?: 'Mutation' - editArticle?: { - __typename?: 'Article' - id: string - cover?: string | null - canComment: boolean - indentFirstLine: boolean - sensitiveByAuthor: boolean - license: ArticleLicenseType - requestForDonation?: string | null - replyToDonator?: string | null - tags?: Array<{ - __typename?: 'Tag' - id: string - content: string - numArticles: number - }> | null - access: { - __typename?: 'ArticleAccess' - type: ArticleAccessType - circle?: { __typename?: 'Circle'; id: string } | null - } - campaigns: Array<{ - __typename?: 'ArticleCampaign' - campaign: { __typename?: 'WritingChallenge'; id: string } - stage?: { __typename?: 'CampaignStage'; id: string } | null - }> - collections: { - __typename?: 'CollectionConnection' - edges?: Array<{ - __typename?: 'CollectionEdge' - node: { __typename?: 'Collection'; id: string; title: string } - }> | null - } - connections: { - __typename?: 'ArticleConnection' - totalCount: number - pageInfo: { - __typename?: 'PageInfo' - startCursor?: string | null - endCursor?: string | null - hasNextPage: boolean - } - edges?: Array<{ - __typename?: 'ArticleEdge' - cursor: string - node: { - __typename?: 'Article' - id: string - title: string - slug: string - shortHash: string - state: ArticleState - articleState: ArticleState - author: { - __typename?: 'User' - id: string - userName?: string | null - isBlocking: boolean - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - } - }> | null - } - } - editArticleResetCampaign?: { - __typename?: 'Article' - id: string - cover?: string | null - canComment: boolean - indentFirstLine: boolean - sensitiveByAuthor: boolean - license: ArticleLicenseType - requestForDonation?: string | null - replyToDonator?: string | null - tags?: Array<{ - __typename?: 'Tag' - id: string - content: string - numArticles: number - }> | null - access: { - __typename?: 'ArticleAccess' - type: ArticleAccessType - circle?: { __typename?: 'Circle'; id: string } | null - } - campaigns: Array<{ - __typename?: 'ArticleCampaign' - campaign: { __typename?: 'WritingChallenge'; id: string } - stage?: { __typename?: 'CampaignStage'; id: string } | null - }> - collections: { - __typename?: 'CollectionConnection' - edges?: Array<{ - __typename?: 'CollectionEdge' - node: { __typename?: 'Collection'; id: string; title: string } - }> | null - } - connections: { - __typename?: 'ArticleConnection' - totalCount: number - pageInfo: { - __typename?: 'PageInfo' - startCursor?: string | null - endCursor?: string | null - hasNextPage: boolean - } - edges?: Array<{ - __typename?: 'ArticleEdge' - cursor: string - node: { - __typename?: 'Article' - id: string - title: string - slug: string - shortHash: string - state: ArticleState - articleState: ArticleState - author: { - __typename?: 'User' - id: string - userName?: string | null - isBlocking: boolean - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - } - }> | null - } - } -} - -export type LatestVersionArticleQueryVariables = Exact<{ - id: Scalars['ID']['input'] -}> - -export type LatestVersionArticleQuery = { - __typename?: 'Query' - article?: - | { - __typename?: 'Article' - id: string - slug: string - title: string - shortHash: string - author: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - } - tags?: Array<{ __typename?: 'Tag'; id: string; content: string }> | null - versions: { - __typename?: 'ArticleVersionsConnection' - edges: Array<{ - __typename?: 'ArticleVersionEdge' - node: { __typename?: 'ArticleVersion'; id: string } - } | null> - } - } - | { __typename?: 'ArticleVersion' } - | { __typename?: 'Circle' } - | { __typename?: 'Collection' } - | { __typename?: 'Comment' } - | { __typename?: 'CurationChannel' } - | { __typename?: 'Draft' } - | { __typename?: 'IcymiTopic' } - | { __typename?: 'Moment' } - | { __typename?: 'Report' } - | { __typename?: 'Tag' } - | { __typename?: 'TopicChannel' } - | { __typename?: 'User' } - | { __typename?: 'WritingChallenge' } - | null -} - -export type QueryEditArticleQueryVariables = Exact<{ - shortHash: Scalars['String']['input'] - after?: InputMaybe - first?: InputMaybe -}> - -export type QueryEditArticleQuery = { - __typename?: 'Query' - article?: { - __typename?: 'Article' - id: string - title: string - slug: string - shortHash: string - cover?: string | null - summary: string - summaryCustomized: boolean - createdAt: any - canComment: boolean - indentFirstLine: boolean - license: ArticleLicenseType - sensitiveByAuthor: boolean - requestForDonation?: string | null - replyToDonator?: string | null - revisionCount: number - contents: { __typename?: 'ArticleContents'; html: string } - assets: Array<{ - __typename?: 'Asset' - id: string - type: AssetType - path: string - draft?: boolean | null - uploadURL?: string | null - }> - tags?: Array<{ - __typename?: 'Tag' - id: string - content: string - numArticles: number - }> | null - author: { - __typename?: 'User' - id: string - displayName?: string | null - avatar?: string | null - userName?: string | null - isBlocking: boolean - ownCircles?: Array<{ - __typename?: 'Circle' - id: string - name: string - displayName: string - description?: string | null - avatar?: string | null - owner: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - members: { __typename?: 'MemberConnection'; totalCount: number } - works: { __typename?: 'ArticleConnection'; totalCount: number } - prices?: Array<{ - __typename?: 'Price' - amount: number - currency: TransactionCurrency - }> | null - }> | null - campaigns: { - __typename?: 'CampaignConnection' - edges?: Array<{ - __typename?: 'CampaignEdge' - node: { - __typename?: 'WritingChallenge' - id: string - state: CampaignState - name: string - writingPeriod?: { - __typename?: 'DatetimeRange' - start: any - end?: any | null - } | null - stages: Array<{ - __typename?: 'CampaignStage' - id: string - name: string - period?: { - __typename?: 'DatetimeRange' - start: any - end?: any | null - } | null - }> - } - }> | null - } - } - access: { - __typename?: 'ArticleAccess' - type: ArticleAccessType - circle?: { - __typename?: 'Circle' - id: string - name: string - displayName: string - description?: string | null - avatar?: string | null - owner: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - members: { __typename?: 'MemberConnection'; totalCount: number } - works: { __typename?: 'ArticleConnection'; totalCount: number } - prices?: Array<{ - __typename?: 'Price' - amount: number - currency: TransactionCurrency - }> | null - } | null - } - federationSetting?: { - __typename?: 'ArticleFederationSetting' - state: FederationArticleSettingState - } | null - versions: { - __typename?: 'ArticleVersionsConnection' - edges: Array<{ - __typename?: 'ArticleVersionEdge' - node: { __typename?: 'ArticleVersion'; id: string } - } | null> - } - campaigns: Array<{ - __typename?: 'ArticleCampaign' - campaign: { - __typename?: 'WritingChallenge' - id: string - announcements: Array<{ __typename?: 'Article'; id: string }> - } - stage?: { __typename?: 'CampaignStage'; id: string } | null - }> - collections: { - __typename?: 'CollectionConnection' - edges?: Array<{ - __typename?: 'CollectionEdge' - node: { - __typename?: 'Collection' - id: string - title: string - articles: { __typename?: 'ArticleConnection'; totalCount: number } - } - }> | null - } - connections: { - __typename?: 'ArticleConnection' - totalCount: number - pageInfo: { - __typename?: 'PageInfo' - startCursor?: string | null - endCursor?: string | null - hasNextPage: boolean - } - edges?: Array<{ - __typename?: 'ArticleEdge' - cursor: string - node: { - __typename?: 'Article' - id: string - title: string - slug: string - shortHash: string - state: ArticleState - articleState: ArticleState - author: { - __typename?: 'User' - id: string - userName?: string | null - isBlocking: boolean - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - } - }> | null - } - } | null -} - -export type QueryEditArticleAssetsQueryVariables = Exact<{ - id: Scalars['ID']['input'] -}> - -export type QueryEditArticleAssetsQuery = { - __typename?: 'Query' - article?: - | { - __typename?: 'Article' - id: string - assets: Array<{ - __typename?: 'Asset' - id: string - type: AssetType - path: string - draft?: boolean | null - uploadURL?: string | null - }> - } - | { __typename?: 'ArticleVersion' } - | { __typename?: 'Circle' } - | { __typename?: 'Collection' } - | { __typename?: 'Comment' } - | { __typename?: 'CurationChannel' } - | { __typename?: 'Draft' } - | { __typename?: 'IcymiTopic' } - | { __typename?: 'Moment' } - | { __typename?: 'Report' } - | { __typename?: 'Tag' } - | { __typename?: 'TopicChannel' } - | { __typename?: 'User' } - | { __typename?: 'WritingChallenge' } - | null -} - -export type HeaderArticleFragment = { - __typename?: 'Article' - id: string - campaigns: Array<{ - __typename?: 'ArticleCampaign' - campaign: { - __typename?: 'WritingChallenge' - id: string - shortHash: string - nameZhHant: string - nameZhHans: string - nameEn: string - announcements: Array<{ __typename?: 'Article'; id: string }> - } - stage?: { - __typename?: 'CampaignStage' - id: string - nameZhHant: string - nameZhHans: string - nameEn: string - } | null - }> -} - -export type InfoHeaderArticleFragment = { - __typename?: 'Article' - id: string - iscnId?: string | null - author: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - access: { - __typename?: 'ArticleAccess' - type: ArticleAccessType - secret?: string | null - } -} - -export type InfoHeaderArticleVersionFragment = { - __typename?: 'ArticleVersion' - id: string - dataHash?: string | null - mediaHash?: string | null - summary: string - createdAt: any - description?: string | null -} - -export type GatewaysQueryVariables = Exact<{ [key: string]: never }> - -export type GatewaysQuery = { - __typename?: 'Query' - official: { __typename?: 'Official'; gatewayUrls?: Array | null } -} - -export type VersionsArticleFragment = { - __typename?: 'Article' - id: string - slug: string - shortHash: string - author: { __typename?: 'User'; id: string; userName?: string | null } - versions: { - __typename?: 'ArticleVersionsConnection' - edges: Array<{ - __typename?: 'ArticleVersionEdge' - node: { __typename?: 'ArticleVersion'; id: string; createdAt: any } - } | null> - } -} - -export type ArticleHistoryPublicArticleFragment = { - __typename?: 'Article' - id: string - slug: string - shortHash: string - state: ArticleState - cover?: string | null - summaryCustomized: boolean - language?: string | null - indentFirstLine: boolean - license: ArticleLicenseType - sensitiveByAuthor: boolean - sensitiveByAdmin: boolean - requestForDonation?: string | null - replyToDonator?: string | null - availableTranslations?: Array | null - iscnId?: string | null - revisionCount: number - revisedAt?: any | null - createdAt: any - author: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - access: { - __typename?: 'ArticleAccess' - type: ArticleAccessType - secret?: string | null - circle?: { - __typename?: 'Circle' - id: string - name: string - displayName: string - description?: string | null - avatar?: string | null - isMember: boolean - owner: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - members: { __typename?: 'MemberConnection'; totalCount: number } - works: { __typename?: 'ArticleConnection'; totalCount: number } - prices?: Array<{ - __typename?: 'Price' - amount: number - currency: TransactionCurrency - }> | null - invitedBy?: { - __typename?: 'Invitation' - id: string - state: InvitationState - freePeriod: number - } | null - } | null - } - versions: { - __typename?: 'ArticleVersionsConnection' - edges: Array<{ - __typename?: 'ArticleVersionEdge' - node: { __typename?: 'ArticleVersion'; id: string; createdAt: any } - } | null> - } -} - -export type ArticleVersionFragment = { - __typename?: 'ArticleVersion' - id: string - title: string - mediaHash?: string | null - summary: string - createdAt: any - dataHash?: string | null - description?: string | null - contents: { __typename?: 'ArticleContents'; html: string } -} - -export type ArticleHistoryPublicQueryVariables = Exact<{ - shortHash: Scalars['String']['input'] - version: Scalars['ID']['input'] -}> - -export type ArticleHistoryPublicQuery = { - __typename?: 'Query' - article?: { - __typename?: 'Article' - id: string - slug: string - shortHash: string - state: ArticleState - cover?: string | null - summaryCustomized: boolean - language?: string | null - indentFirstLine: boolean - license: ArticleLicenseType - sensitiveByAuthor: boolean - sensitiveByAdmin: boolean - requestForDonation?: string | null - replyToDonator?: string | null - availableTranslations?: Array | null - iscnId?: string | null - revisionCount: number - revisedAt?: any | null - createdAt: any - author: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - access: { - __typename?: 'ArticleAccess' - type: ArticleAccessType - secret?: string | null - circle?: { - __typename?: 'Circle' - id: string - name: string - displayName: string - description?: string | null - avatar?: string | null - isMember: boolean - owner: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - members: { __typename?: 'MemberConnection'; totalCount: number } - works: { __typename?: 'ArticleConnection'; totalCount: number } - prices?: Array<{ - __typename?: 'Price' - amount: number - currency: TransactionCurrency - }> | null - invitedBy?: { - __typename?: 'Invitation' - id: string - state: InvitationState - freePeriod: number - } | null - } | null - } - versions: { - __typename?: 'ArticleVersionsConnection' - edges: Array<{ - __typename?: 'ArticleVersionEdge' - node: { __typename?: 'ArticleVersion'; id: string; createdAt: any } - } | null> - } - } | null - version?: - | { __typename?: 'Article' } - | { - __typename?: 'ArticleVersion' - id: string - title: string - mediaHash?: string | null - summary: string - createdAt: any - dataHash?: string | null - description?: string | null - contents: { __typename?: 'ArticleContents'; html: string } - } - | { __typename?: 'Circle' } - | { __typename?: 'Collection' } - | { __typename?: 'Comment' } - | { __typename?: 'CurationChannel' } - | { __typename?: 'Draft' } - | { __typename?: 'IcymiTopic' } - | { __typename?: 'Moment' } - | { __typename?: 'Report' } - | { __typename?: 'Tag' } - | { __typename?: 'TopicChannel' } - | { __typename?: 'User' } - | { __typename?: 'WritingChallenge' } - | null -} - -export type ArticleHistoryPrivateQueryVariables = Exact<{ - shortHash: Scalars['String']['input'] - version: Scalars['ID']['input'] -}> - -export type ArticleHistoryPrivateQuery = { - __typename?: 'Query' - article?: { - __typename?: 'Article' - id: string - access: { - __typename?: 'ArticleAccess' - circle?: { - __typename?: 'Circle' - id: string - isMember: boolean - invitedBy?: { - __typename?: 'Invitation' - id: string - state: InvitationState - freePeriod: number - } | null - } | null - } - } | null - version?: - | { __typename?: 'Article'; id: string } - | { - __typename?: 'ArticleVersion' - id: string - contents: { __typename?: 'ArticleContents'; html: string } - } - | { __typename?: 'Circle'; id: string } - | { __typename?: 'Collection'; id: string } - | { __typename?: 'Comment'; id: string } - | { __typename?: 'CurationChannel'; id: string } - | { __typename?: 'Draft'; id: string } - | { __typename?: 'IcymiTopic'; id: string } - | { __typename?: 'Moment'; id: string } - | { __typename?: 'Report'; id: string } - | { __typename?: 'Tag'; id: string } - | { __typename?: 'TopicChannel'; id: string } - | { __typename?: 'User'; id: string } - | { __typename?: 'WritingChallenge'; id: string } - | null -} - -export type ArticleLatestVersionQueryVariables = Exact<{ - shortHash: Scalars['String']['input'] -}> - -export type ArticleLatestVersionQuery = { - __typename?: 'Query' - article?: { - __typename?: 'Article' - id: string - versions: { - __typename?: 'ArticleVersionsConnection' - edges: Array<{ - __typename?: 'ArticleVersionEdge' - node: { __typename?: 'ArticleVersion'; id: string } - } | null> - } - } | null -} - -export type ArticleHistoryTranslationQueryVariables = Exact<{ - version: Scalars['ID']['input'] - language: UserLanguage -}> - -export type ArticleHistoryTranslationQuery = { - __typename?: 'Query' - version?: - | { __typename?: 'Article' } - | { - __typename?: 'ArticleVersion' - id: string - translation?: { - __typename?: 'ArticleTranslation' - content?: string | null - title?: string | null - summary?: string | null - language?: string | null - } | null - } - | { __typename?: 'Circle' } - | { __typename?: 'Collection' } - | { __typename?: 'Comment' } - | { __typename?: 'CurationChannel' } - | { __typename?: 'Draft' } - | { __typename?: 'IcymiTopic' } - | { __typename?: 'Moment' } - | { __typename?: 'Report' } - | { __typename?: 'Tag' } - | { __typename?: 'TopicChannel' } - | { __typename?: 'User' } - | { __typename?: 'WritingChallenge' } - | null -} - -export type EditArticleSupportSettingMutationVariables = Exact<{ - id: Scalars['ID']['input'] - requestForDonation?: InputMaybe< - Scalars['requestForDonation_String_maxLength_140']['input'] - > - replyToDonator?: InputMaybe< - Scalars['replyToDonator_String_maxLength_140']['input'] - > -}> - -export type EditArticleSupportSettingMutation = { - __typename?: 'Mutation' - editArticle: { - __typename?: 'Article' - id: string - requestForDonation?: string | null - replyToDonator?: string | null - } -} - -export type MetaInfoArticleFragment = { - __typename?: 'Article' - id: string - language?: string | null - slug: string - shortHash: string - revisionCount: number - revisedAt?: any | null - createdAt: any - access: { __typename?: 'ArticleAccess'; type: ArticleAccessType } - author: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } -} - -export type MetaInfoArticleVersionFragment = { - __typename?: 'ArticleVersion' - id: string - createdAt: any -} - -export type StateArticleFragment = { - __typename?: 'Article' - id: string - state: ArticleState - slug: string - shortHash: string - author: { __typename?: 'User'; id: string; userName?: string | null } -} - -export type UserDonationRecipientFragment = { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - liker: { __typename?: 'Liker'; likerId?: string | null; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - ethAddress?: string | null - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - status?: { __typename?: 'UserStatus'; state: UserState } | null -} - -export type DonatorsArticleFragment = { - __typename?: 'Article' - id: string - shortHash: string - donations: { - __typename?: 'ArticleDonationConnection' - totalCount: number - edges?: Array<{ - __typename?: 'ArticleDonationEdge' - cursor: string - node: { - __typename?: 'ArticleDonation' - id: string - sender?: { - __typename?: 'User' - id: string - avatar?: string | null - userName?: string | null - displayName?: string | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - } - } | null - } - }> | null - } - donationsDialog: { - __typename?: 'ArticleDonationConnection' - totalCount: number - } -} - -export type SupportWidgetArticlePublicFragment = { - __typename?: 'Article' - id: string - requestForDonation?: string | null - shortHash: string - author: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - liker: { - __typename?: 'Liker' - likerId?: string | null - civicLiker: boolean - } - info: { - __typename?: 'UserInfo' - ethAddress?: string | null - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - status?: { __typename?: 'UserStatus'; state: UserState } | null - } - access: { - __typename?: 'ArticleAccess' - circle?: { - __typename?: 'Circle' - id: string - name: string - displayName: string - description?: string | null - avatar?: string | null - owner: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - members: { __typename?: 'MemberConnection'; totalCount: number } - works: { __typename?: 'ArticleConnection'; totalCount: number } - prices?: Array<{ - __typename?: 'Price' - amount: number - currency: TransactionCurrency - }> | null - } | null - } - donations: { - __typename?: 'ArticleDonationConnection' - totalCount: number - edges?: Array<{ - __typename?: 'ArticleDonationEdge' - cursor: string - node: { - __typename?: 'ArticleDonation' - id: string - sender?: { - __typename?: 'User' - id: string - avatar?: string | null - userName?: string | null - displayName?: string | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - } - } | null - } - }> | null - } - donationsDialog: { - __typename?: 'ArticleDonationConnection' - totalCount: number - } -} - -export type SupportWidgetArticlePrivateFragment = { - __typename?: 'Article' - id: string - access: { - __typename?: 'ArticleAccess' - circle?: { - __typename?: 'Circle' - id: string - isMember: boolean - invitedBy?: { - __typename?: 'Invitation' - id: string - state: InvitationState - freePeriod: number - } | null - } | null - } -} - -export type HasDonatedQueryVariables = Exact<{ - id: Scalars['ID']['input'] -}> - -export type HasDonatedQuery = { - __typename?: 'Query' - article?: - | { - __typename?: 'Article' - id: string - donated: boolean - replyToDonator?: string | null - } - | { __typename?: 'ArticleVersion' } - | { __typename?: 'Circle' } - | { __typename?: 'Collection' } - | { __typename?: 'Comment' } - | { __typename?: 'CurationChannel' } - | { __typename?: 'Draft' } - | { __typename?: 'IcymiTopic' } - | { __typename?: 'Moment' } - | { __typename?: 'Report' } - | { __typename?: 'Tag' } - | { __typename?: 'TopicChannel' } - | { __typename?: 'User' } - | { __typename?: 'WritingChallenge' } - | null -} - -export type TagListArticleFragment = { - __typename?: 'Article' - tags?: Array<{ - __typename?: 'Tag' - id: string - content: string - numArticles: number - }> | null -} - -export type CommentButtonArticlePublicFragment = { - __typename?: 'Article' - id: string - commentCount: number - canComment: boolean -} - -export type CommentButtonArticlePrivateFragment = { - __typename?: 'Article' - id: string - author: { __typename?: 'User'; id: string; isBlocking: boolean } -} - -export type DonationButtonArticleFragment = { - __typename?: 'Article' - id: string - author: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - liker: { - __typename?: 'Liker' - likerId?: string | null - civicLiker: boolean - } - info: { - __typename?: 'UserInfo' - ethAddress?: string | null - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - status?: { __typename?: 'UserStatus'; state: UserState } | null - } -} - -export type ToolbarArticlePublicFragment = { - __typename?: 'Article' - id: string - title: string - shortHash: string - appreciateLimit: number - commentCount: number - canComment: boolean - pinned: boolean - slug: string - revisionCount: number - likesReceivedTotal: number - articleState: ArticleState - tags?: Array<{ __typename?: 'Tag'; content: string; id: string }> | null - author: { - __typename?: 'User' - id: string - displayName?: string | null - userName?: string | null - avatar?: string | null - liker: { - __typename?: 'Liker' - likerId?: string | null - civicLiker: boolean - } - info: { - __typename?: 'UserInfo' - ethAddress?: string | null - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - status?: { __typename?: 'UserStatus'; state: UserState } | null - } - likesReceived: { __typename?: 'AppreciationConnection'; totalCount: number } - donationsDialog: { - __typename?: 'ArticleDonationConnection' - totalCount: number - } -} - -export type ToolbarArticlePrivateFragment = { - __typename?: 'Article' - id: string - bookmarked: boolean - hasAppreciate: boolean - appreciateLeft: number - author: { __typename?: 'User'; id: string; isBlocking: boolean } -} - -export type CircleWallCirclePublicFragment = { - __typename?: 'Circle' - id: string - name: string - displayName: string - description?: string | null - avatar?: string | null - owner: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - members: { __typename?: 'MemberConnection'; totalCount: number } - works: { __typename?: 'ArticleConnection'; totalCount: number } - prices?: Array<{ - __typename?: 'Price' - amount: number - currency: TransactionCurrency - }> | null -} - -export type CircleWallCirclePrivateFragment = { - __typename?: 'Circle' - id: string - isMember: boolean - invitedBy?: { - __typename?: 'Invitation' - id: string - state: InvitationState - freePeriod: number - } | null -} - -export type ArticlePublicArticleFragment = { - __typename?: 'Article' - id: string - title: string - slug: string - shortHash: string - dataHash: string - mediaHash: string - state: ArticleState - cover?: string | null - summary: string - summaryCustomized: boolean - createdAt: any - revisedAt?: any | null - language?: string | null - canComment: boolean - indentFirstLine: boolean - commentCount: number - license: ArticleLicenseType - sensitiveByAuthor: boolean - sensitiveByAdmin: boolean - requestForDonation?: string | null - replyToDonator?: string | null - availableTranslations?: Array | null - noindex: boolean - revisionCount: number - appreciateLimit: number - bookmarked: boolean - hasAppreciate: boolean - appreciateLeft: number - pinned: boolean - likesReceivedTotal: number - articleState: ArticleState - author: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - isBlocking: boolean - avatar?: string | null - isFollower: boolean - isFollowee: boolean - info: { - __typename?: 'UserInfo' - description?: string | null - ethAddress?: string | null - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - latestWorks: Array< - | { - __typename?: 'Article' - id: string - title: string - cover?: string | null - slug: string - shortHash: string - displayCover?: string | null - articleState: ArticleState - author: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - } - | { - __typename?: 'Collection' - id: string - title: string - cover?: string | null - author: { __typename?: 'User'; id: string; userName?: string | null } - articles: { __typename?: 'ArticleConnection'; totalCount: number } - } - > - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { - __typename?: 'Liker' - likerId?: string | null - civicLiker: boolean - } - } - collection: { __typename?: 'ArticleConnection'; totalCount: number } - access: { - __typename?: 'ArticleAccess' - type: ArticleAccessType - circle?: { - __typename?: 'Circle' - id: string - name: string - displayName: string - description?: string | null - avatar?: string | null - isMember: boolean - owner: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - members: { __typename?: 'MemberConnection'; totalCount: number } - works: { __typename?: 'ArticleConnection'; totalCount: number } - prices?: Array<{ - __typename?: 'Price' - amount: number - currency: TransactionCurrency - }> | null - invitedBy?: { - __typename?: 'Invitation' - id: string - state: InvitationState - freePeriod: number - } | null - } | null - } - comments: { __typename?: 'CommentConnection'; totalCount: number } - translation?: { - __typename?: 'ArticleTranslation' - content?: string | null - title?: string | null - summary?: string | null - language?: string | null - model?: TranslationModel | null - } | null - contents: { __typename?: 'ArticleContents'; html: string } - campaigns: Array<{ - __typename?: 'ArticleCampaign' - campaign: { - __typename?: 'WritingChallenge' - id: string - shortHash: string - nameZhHant: string - nameZhHans: string - nameEn: string - announcements: Array<{ __typename?: 'Article'; id: string }> - } - stage?: { - __typename?: 'CampaignStage' - id: string - nameZhHant: string - nameZhHans: string - nameEn: string - } | null - }> - relatedArticles: { __typename?: 'ArticleConnection'; totalCount: number } - tags?: Array<{ - __typename?: 'Tag' - content: string - id: string - numArticles: number - }> | null - classification: { - __typename?: 'ArticleClassification' - topicChannel: { - __typename?: 'TopicChannelClassification' - enabled: boolean - channels?: Array<{ - __typename?: 'ArticleTopicChannel' - enabled: boolean - antiFlooded: boolean - channel: { - __typename?: 'TopicChannel' - id: string - shortHash: string - enabled: boolean - nameZhHans: string - nameZhHant: string - nameEn: string - } - }> | null - feedback?: { - __typename?: 'TopicChannelFeedback' - id: string - state?: TopicChannelFeedbackState | null - type: TopicChannelFeedbackType - channels?: Array<{ __typename?: 'TopicChannel'; id: string }> | null - } | null - } - } - donations: { - __typename?: 'ArticleDonationConnection' - totalCount: number - edges?: Array<{ - __typename?: 'ArticleDonationEdge' - cursor: string - node: { - __typename?: 'ArticleDonation' - id: string - sender?: { - __typename?: 'User' - id: string - avatar?: string | null - userName?: string | null - displayName?: string | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - } - } | null - } - }> | null - } - likesReceived: { __typename?: 'AppreciationConnection'; totalCount: number } - donationsDialog: { - __typename?: 'ArticleDonationConnection' - totalCount: number - } -} - -export type ArticleAvailableTranslationsQueryVariables = Exact<{ - shortHash?: InputMaybe -}> - -export type ArticleAvailableTranslationsQuery = { - __typename?: 'Query' - article?: { - __typename?: 'Article' - id: string - availableTranslations?: Array | null - } | null -} - -export type ArticleDetailPublicQueryVariables = Exact<{ - shortHash?: InputMaybe - language: UserLanguage - includeTranslation?: InputMaybe -}> - -export type ArticleDetailPublicQuery = { - __typename?: 'Query' - article?: { - __typename?: 'Article' - id: string - title: string - slug: string - shortHash: string - dataHash: string - mediaHash: string - state: ArticleState - cover?: string | null - summary: string - summaryCustomized: boolean - createdAt: any - revisedAt?: any | null - language?: string | null - canComment: boolean - indentFirstLine: boolean - commentCount: number - license: ArticleLicenseType - sensitiveByAuthor: boolean - sensitiveByAdmin: boolean - requestForDonation?: string | null - replyToDonator?: string | null - availableTranslations?: Array | null - noindex: boolean - revisionCount: number - appreciateLimit: number - bookmarked: boolean - hasAppreciate: boolean - appreciateLeft: number - pinned: boolean - likesReceivedTotal: number - articleState: ArticleState - author: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - isBlocking: boolean - avatar?: string | null - isFollower: boolean - isFollowee: boolean - info: { - __typename?: 'UserInfo' - description?: string | null - ethAddress?: string | null - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - latestWorks: Array< - | { - __typename?: 'Article' - id: string - title: string - cover?: string | null - slug: string - shortHash: string - displayCover?: string | null - articleState: ArticleState - author: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - } - | { - __typename?: 'Collection' - id: string - title: string - cover?: string | null - author: { - __typename?: 'User' - id: string - userName?: string | null - } - articles: { __typename?: 'ArticleConnection'; totalCount: number } - } - > - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { - __typename?: 'Liker' - likerId?: string | null - civicLiker: boolean - } - } - collection: { __typename?: 'ArticleConnection'; totalCount: number } - access: { - __typename?: 'ArticleAccess' - type: ArticleAccessType - circle?: { - __typename?: 'Circle' - id: string - name: string - displayName: string - description?: string | null - avatar?: string | null - isMember: boolean - owner: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - members: { __typename?: 'MemberConnection'; totalCount: number } - works: { __typename?: 'ArticleConnection'; totalCount: number } - prices?: Array<{ - __typename?: 'Price' - amount: number - currency: TransactionCurrency - }> | null - invitedBy?: { - __typename?: 'Invitation' - id: string - state: InvitationState - freePeriod: number - } | null - } | null - } - comments: { __typename?: 'CommentConnection'; totalCount: number } - translation?: { - __typename?: 'ArticleTranslation' - content?: string | null - title?: string | null - summary?: string | null - language?: string | null - model?: TranslationModel | null - } | null - contents: { __typename?: 'ArticleContents'; html: string } - campaigns: Array<{ - __typename?: 'ArticleCampaign' - campaign: { - __typename?: 'WritingChallenge' - id: string - shortHash: string - nameZhHant: string - nameZhHans: string - nameEn: string - announcements: Array<{ __typename?: 'Article'; id: string }> - } - stage?: { - __typename?: 'CampaignStage' - id: string - nameZhHant: string - nameZhHans: string - nameEn: string - } | null - }> - relatedArticles: { __typename?: 'ArticleConnection'; totalCount: number } - tags?: Array<{ - __typename?: 'Tag' - content: string - id: string - numArticles: number - }> | null - classification: { - __typename?: 'ArticleClassification' - topicChannel: { - __typename?: 'TopicChannelClassification' - enabled: boolean - channels?: Array<{ - __typename?: 'ArticleTopicChannel' - enabled: boolean - antiFlooded: boolean - channel: { - __typename?: 'TopicChannel' - id: string - shortHash: string - enabled: boolean - nameZhHans: string - nameZhHant: string - nameEn: string - } - }> | null - feedback?: { - __typename?: 'TopicChannelFeedback' - id: string - state?: TopicChannelFeedbackState | null - type: TopicChannelFeedbackType - channels?: Array<{ __typename?: 'TopicChannel'; id: string }> | null - } | null - } - } - donations: { - __typename?: 'ArticleDonationConnection' - totalCount: number - edges?: Array<{ - __typename?: 'ArticleDonationEdge' - cursor: string - node: { - __typename?: 'ArticleDonation' - id: string - sender?: { - __typename?: 'User' - id: string - avatar?: string | null - userName?: string | null - displayName?: string | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - } - } | null - } - }> | null - } - likesReceived: { __typename?: 'AppreciationConnection'; totalCount: number } - donationsDialog: { - __typename?: 'ArticleDonationConnection' - totalCount: number - } - } | null -} - -export type ArticleDetailPrivateQueryVariables = Exact<{ - shortHash: Scalars['String']['input'] -}> - -export type ArticleDetailPrivateQuery = { - __typename?: 'Query' - article?: { - __typename?: 'Article' - id: string - bookmarked: boolean - hasAppreciate: boolean - appreciateLeft: number - author: { - __typename?: 'User' - id: string - isBlocking: boolean - isFollower: boolean - isFollowee: boolean - status?: { __typename?: 'UserStatus'; state: UserState } | null - } - access: { - __typename?: 'ArticleAccess' - type: ArticleAccessType - circle?: { - __typename?: 'Circle' - id: string - isMember: boolean - invitedBy?: { - __typename?: 'Invitation' - id: string - state: InvitationState - freePeriod: number - } | null - } | null - } - contents: { __typename?: 'ArticleContents'; html: string } - classification: { - __typename?: 'ArticleClassification' - topicChannel: { - __typename?: 'TopicChannelClassification' - enabled: boolean - feedback?: { - __typename?: 'TopicChannelFeedback' - id: string - state?: TopicChannelFeedbackState | null - type: TopicChannelFeedbackType - channels?: Array<{ __typename?: 'TopicChannel'; id: string }> | null - } | null - } - } - } | null -} - -export type ArticleTranslationQueryVariables = Exact<{ - shortHash: Scalars['String']['input'] - language: UserLanguage -}> - -export type ArticleTranslationQuery = { - __typename?: 'Query' - article?: { - __typename?: 'Article' - id: string - translation?: { - __typename?: 'ArticleTranslation' - content?: string | null - title?: string | null - summary?: string | null - language?: string | null - model?: TranslationModel | null - } | null - } | null -} - -export type AllAuthorsPublicQueryVariables = Exact<{ - after?: InputMaybe -}> - -export type AllAuthorsPublicQuery = { - __typename?: 'Query' - viewer?: { - __typename?: 'User' - id: string - recommendation: { - __typename?: 'Recommendation' - authors: { - __typename?: 'UserConnection' - pageInfo: { - __typename?: 'PageInfo' - startCursor?: string | null - endCursor?: string | null - hasNextPage: boolean - } - edges?: Array<{ - __typename?: 'UserEdge' - cursor: string - node: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - isFollower: boolean - isFollowee: boolean - info: { - __typename?: 'UserInfo' - description?: string | null - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - } - }> | null - } - } - } | null -} - -export type AllAuthorsPrivateQueryVariables = Exact<{ - ids: Array | Scalars['ID']['input'] -}> - -export type AllAuthorsPrivateQuery = { - __typename?: 'Query' - nodes?: Array< - | { __typename?: 'Article'; id: string } - | { __typename?: 'ArticleVersion'; id: string } - | { __typename?: 'Circle'; id: string } - | { __typename?: 'Collection'; id: string } - | { __typename?: 'Comment'; id: string } - | { __typename?: 'CurationChannel'; id: string } - | { __typename?: 'Draft'; id: string } - | { __typename?: 'IcymiTopic'; id: string } - | { __typename?: 'Moment'; id: string } - | { __typename?: 'Report'; id: string } - | { __typename?: 'Tag'; id: string } - | { __typename?: 'TopicChannel'; id: string } - | { - __typename?: 'User' - id: string - isFollower: boolean - isFollowee: boolean - status?: { __typename?: 'UserStatus'; state: UserState } | null - } - | { __typename?: 'WritingChallenge'; id: string } - > | null -} - -export type SocialLoginMutationVariables = Exact<{ - input: SocialLoginInput -}> - -export type SocialLoginMutation = { - __typename?: 'Mutation' - socialLogin: { - __typename?: 'AuthResult' - auth: boolean - token?: string | null - user?: { - __typename?: 'User' - id: string - settings: { __typename?: 'UserSettings'; language: UserLanguage } - info: { __typename?: 'UserInfo'; group: UserGroup } - } | null - } -} - -export type AddSocialLoginMutationVariables = Exact<{ - input: SocialLoginInput -}> - -export type AddSocialLoginMutation = { - __typename?: 'Mutation' - addSocialLogin: { __typename?: 'User'; id: string } -} - -export type VerifyEmailMutationVariables = Exact<{ - input: VerifyEmailInput -}> - -export type VerifyEmailMutation = { - __typename?: 'Mutation' - verifyEmail: { - __typename?: 'AuthResult' - auth: boolean - token?: string | null - user?: { - __typename?: 'User' - id: string - settings: { __typename?: 'UserSettings'; language: UserLanguage } - info: { - __typename?: 'UserInfo' - group: UserGroup - email?: any | null - emailVerified: boolean - } - status?: { - __typename?: 'UserStatus' - hasEmailLoginPassword: boolean - } | null - } | null - } -} - -export type SubmitCampaignArticleMutationVariables = Exact<{ - title: Scalars['String']['input'] - campaign: Scalars['ID']['input'] - stage: Scalars['ID']['input'] -}> - -export type SubmitCampaignArticleMutation = { - __typename?: 'Mutation' - putDraft: { __typename?: 'Draft'; id: string } -} - -export type ApplyCampaignMutationVariables = Exact<{ - id: Scalars['ID']['input'] -}> - -export type ApplyCampaignMutation = { - __typename?: 'Mutation' - applyCampaign: { - __typename?: 'WritingChallenge' - id: string - application?: { - __typename?: 'CampaignApplication' - state: CampaignApplicationState - createdAt: any - } | null - } -} - -export type ApplyCampaignPublicFragment = { - __typename?: 'WritingChallenge' - id: string - state: CampaignState - link: string - applicationPeriod?: { - __typename?: 'DatetimeRange' - start: any - end?: any | null - } | null - writingPeriod?: { - __typename?: 'DatetimeRange' - start: any - end?: any | null - } | null - stages: Array<{ - __typename?: 'CampaignStage' - id: string - nameZhHant: string - nameZhHans: string - nameEn: string - period?: { - __typename?: 'DatetimeRange' - start: any - end?: any | null - } | null - }> -} - -export type ApplyCampaignPrivateFragment = { - __typename?: 'WritingChallenge' - id: string - application?: { - __typename?: 'CampaignApplication' - state: CampaignApplicationState - createdAt: any - } | null -} - -export type CampaignArticlesPublicQueryVariables = Exact<{ - shortHash: Scalars['String']['input'] - after?: InputMaybe - filter?: InputMaybe -}> - -export type CampaignArticlesPublicQuery = { - __typename?: 'Query' - campaign?: { - __typename?: 'WritingChallenge' - id: string - isManager: boolean - articles: { - __typename?: 'CampaignArticleConnection' - pageInfo: { - __typename?: 'PageInfo' - startCursor?: string | null - endCursor?: string | null - hasNextPage: boolean - } - edges: Array<{ - __typename?: 'CampaignArticleEdge' - cursor: string - featured: boolean - announcement: boolean - node: { - __typename?: 'Article' - id: string - title: string - slug: string - shortHash: string - displayCover?: string | null - summary: string - createdAt: any - readTime: number - bookmarked: boolean - pinned: boolean - revisionCount: number - articleState: ArticleState - campaigns: Array<{ - __typename?: 'ArticleCampaign' - campaign: { - __typename?: 'WritingChallenge' - id: string - name: string - shortHash: string - nameZhHant: string - nameZhHans: string - nameEn: string - } - stage?: { - __typename?: 'CampaignStage' - id: string - nameZhHant: string - nameZhHans: string - nameEn: string - } | null - }> - author: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - access: { - __typename?: 'ArticleAccess' - type: ArticleAccessType - circle?: { - __typename?: 'Circle' - id: string - name: string - displayName: string - } | null - } - collections: { - __typename?: 'CollectionConnection' - edges?: Array<{ - __typename?: 'CollectionEdge' - node: { - __typename?: 'Collection' - id: string - title: string - articles: { - __typename?: 'ArticleConnection' - totalCount: number - } - } - }> | null - } - tags?: Array<{ - __typename?: 'Tag' - id: string - content: string - }> | null - donations: { - __typename?: 'ArticleDonationConnection' - totalCount: number - } - likesReceived: { - __typename?: 'AppreciationConnection' - totalCount: number - } - donationsDialog: { - __typename?: 'ArticleDonationConnection' - totalCount: number - } - } - }> - } - } | null -} - -export type CampaignArticlesPrivateQueryVariables = Exact<{ - shortHash: Scalars['String']['input'] - ids: Array | Scalars['ID']['input'] -}> - -export type CampaignArticlesPrivateQuery = { - __typename?: 'Query' - nodes?: Array< - | { __typename?: 'Article'; id: string; bookmarked: boolean } - | { __typename?: 'ArticleVersion'; id: string } - | { __typename?: 'Circle'; id: string } - | { __typename?: 'Collection'; id: string } - | { __typename?: 'Comment'; id: string } - | { __typename?: 'CurationChannel'; id: string } - | { __typename?: 'Draft'; id: string } - | { __typename?: 'IcymiTopic'; id: string } - | { __typename?: 'Moment'; id: string } - | { __typename?: 'Report'; id: string } - | { __typename?: 'Tag'; id: string } - | { __typename?: 'TopicChannel'; id: string } - | { __typename?: 'User'; id: string } - | { __typename?: 'WritingChallenge'; id: string } - > | null - campaign?: { - __typename?: 'WritingChallenge' - id: string - isManager: boolean - } | null -} - -export type ArticleFeedsTabsCampaignFragment = { - __typename?: 'WritingChallenge' - id: string - featuredArticles: { - __typename?: 'CampaignArticleConnection' - totalCount: number - } - stages: Array<{ - __typename?: 'CampaignStage' - id: string - nameZhHant: string - nameZhHans: string - nameEn: string - descriptionZhHant: string - descriptionZhHans: string - descriptionEn: string - period?: { - __typename?: 'DatetimeRange' - start: any - end?: any | null - } | null - }> -} - -export type ArticleFeedsCampaignPublicFragment = { - __typename?: 'WritingChallenge' - id: string - featuredDescriptionZhHant: string - featuredDescriptionZhHans: string - featuredDescriptionEn: string - announcements: Array<{ - __typename?: 'Article' - id: string - title: string - slug: string - shortHash: string - displayCover?: string | null - summary: string - createdAt: any - readTime: number - bookmarked: boolean - pinned: boolean - revisionCount: number - articleState: ArticleState - campaigns: Array<{ - __typename?: 'ArticleCampaign' - campaign: { - __typename?: 'WritingChallenge' - id: string - name: string - shortHash: string - nameZhHant: string - nameZhHans: string - nameEn: string - } - stage?: { - __typename?: 'CampaignStage' - id: string - nameZhHant: string - nameZhHans: string - nameEn: string - } | null - }> - author: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - access: { - __typename?: 'ArticleAccess' - type: ArticleAccessType - circle?: { - __typename?: 'Circle' - id: string - name: string - displayName: string - } | null - } - collections: { - __typename?: 'CollectionConnection' - edges?: Array<{ - __typename?: 'CollectionEdge' - node: { - __typename?: 'Collection' - id: string - title: string - articles: { __typename?: 'ArticleConnection'; totalCount: number } - } - }> | null - } - tags?: Array<{ __typename?: 'Tag'; id: string; content: string }> | null - donations: { __typename?: 'ArticleDonationConnection'; totalCount: number } - likesReceived: { __typename?: 'AppreciationConnection'; totalCount: number } - donationsDialog: { - __typename?: 'ArticleDonationConnection' - totalCount: number - } - }> - featuredArticles: { - __typename?: 'CampaignArticleConnection' - totalCount: number - } - stages: Array<{ - __typename?: 'CampaignStage' - id: string - nameZhHant: string - nameZhHans: string - nameEn: string - descriptionZhHant: string - descriptionZhHans: string - descriptionEn: string - period?: { - __typename?: 'DatetimeRange' - start: any - end?: any | null - } | null - }> -} - -export type ArticleFeedsCampaignPrivateFragment = { - __typename?: 'WritingChallenge' - id: string - announcements: Array<{ - __typename?: 'Article' - id: string - bookmarked: boolean - }> -} - -export type InfoHeaderParticipantsCampaignFragment = { - __typename?: 'WritingChallenge' - id: string - application?: { - __typename?: 'CampaignApplication' - state: CampaignApplicationState - createdAt: any - } | null - participants: { - __typename?: 'CampaignParticipantConnection' - totalCount: number - edges?: Array<{ - __typename?: 'CampaignParticipantEdge' - node: { - __typename?: 'User' - id: string - avatar?: string | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - } - } - }> | null - } -} - -export type InfoHeaderCampaignPublicFragment = { - __typename?: 'WritingChallenge' - id: string - cover?: string | null - state: CampaignState - link: string - nameZhHant: string - nameZhHans: string - nameEn: string - descriptionZhHant?: string | null - descriptionZhHans?: string | null - descriptionEn?: string | null - applicationPeriod?: { - __typename?: 'DatetimeRange' - start: any - end?: any | null - } | null - writingPeriod?: { - __typename?: 'DatetimeRange' - start: any - end?: any | null - } | null - stages: Array<{ - __typename?: 'CampaignStage' - id: string - nameZhHant: string - nameZhHans: string - nameEn: string - period?: { - __typename?: 'DatetimeRange' - start: any - end?: any | null - } | null - }> - application?: { - __typename?: 'CampaignApplication' - state: CampaignApplicationState - createdAt: any - } | null - participants: { - __typename?: 'CampaignParticipantConnection' - totalCount: number - edges?: Array<{ - __typename?: 'CampaignParticipantEdge' - node: { - __typename?: 'User' - id: string - avatar?: string | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - } - } - }> | null - } -} - -export type InfoHeaderCampaignPrivateFragment = { - __typename?: 'WritingChallenge' - id: string - application?: { - __typename?: 'CampaignApplication' - state: CampaignApplicationState - createdAt: any - } | null -} - -export type CampaignDetailOtherCampaignsQueryVariables = Exact<{ - excludes?: InputMaybe | Scalars['ID']['input']> -}> - -export type CampaignDetailOtherCampaignsQuery = { - __typename?: 'Query' - campaigns: { - __typename?: 'CampaignConnection' - edges?: Array<{ - __typename?: 'CampaignEdge' - node: { - __typename?: 'WritingChallenge' - id: string - cover?: string | null - shortHash: string - nameZhHant: string - nameZhHans: string - nameEn: string - } - }> | null - } -} - -export type SideParticipantsCampaignPublicFragment = { - __typename?: 'WritingChallenge' - id: string - shortHash: string - sideParticipants: { - __typename?: 'CampaignParticipantConnection' - totalCount: number - edges?: Array<{ - __typename?: 'CampaignParticipantEdge' - cursor: string - node: { - __typename?: 'User' - id: string - displayName?: string | null - userName?: string | null - avatar?: string | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - } - } - }> | null - } -} - -export type SideParticipantsCampaignPrivateFragment = { - __typename?: 'WritingChallenge' - id: string - application?: { - __typename?: 'CampaignApplication' - state: CampaignApplicationState - } | null -} - -export type CampaignDetailPublicQueryVariables = Exact<{ - shortHash: Scalars['String']['input'] -}> - -export type CampaignDetailPublicQuery = { - __typename?: 'Query' - campaign?: { - __typename?: 'WritingChallenge' - id: string - showOther: boolean - showAd: boolean - shortHash: string - cover?: string | null - state: CampaignState - link: string - nameZhHant: string - nameZhHans: string - nameEn: string - descriptionZhHant?: string | null - descriptionZhHans?: string | null - descriptionEn?: string | null - featuredDescriptionZhHant: string - featuredDescriptionZhHans: string - featuredDescriptionEn: string - applicationPeriod?: { - __typename?: 'DatetimeRange' - start: any - end?: any | null - } | null - writingPeriod?: { - __typename?: 'DatetimeRange' - start: any - end?: any | null - } | null - sideParticipants: { - __typename?: 'CampaignParticipantConnection' - totalCount: number - edges?: Array<{ - __typename?: 'CampaignParticipantEdge' - cursor: string - node: { - __typename?: 'User' - id: string - displayName?: string | null - userName?: string | null - avatar?: string | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - } - } - }> | null - } - application?: { - __typename?: 'CampaignApplication' - state: CampaignApplicationState - createdAt: any - } | null - announcements: Array<{ - __typename?: 'Article' - id: string - title: string - slug: string - shortHash: string - displayCover?: string | null - summary: string - createdAt: any - readTime: number - bookmarked: boolean - pinned: boolean - revisionCount: number - articleState: ArticleState - campaigns: Array<{ - __typename?: 'ArticleCampaign' - campaign: { - __typename?: 'WritingChallenge' - id: string - name: string - shortHash: string - nameZhHant: string - nameZhHans: string - nameEn: string - } - stage?: { - __typename?: 'CampaignStage' - id: string - nameZhHant: string - nameZhHans: string - nameEn: string - } | null - }> - author: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - access: { - __typename?: 'ArticleAccess' - type: ArticleAccessType - circle?: { - __typename?: 'Circle' - id: string - name: string - displayName: string - } | null - } - collections: { - __typename?: 'CollectionConnection' - edges?: Array<{ - __typename?: 'CollectionEdge' - node: { - __typename?: 'Collection' - id: string - title: string - articles: { __typename?: 'ArticleConnection'; totalCount: number } - } - }> | null - } - tags?: Array<{ __typename?: 'Tag'; id: string; content: string }> | null - donations: { - __typename?: 'ArticleDonationConnection' - totalCount: number - } - likesReceived: { - __typename?: 'AppreciationConnection' - totalCount: number - } - donationsDialog: { - __typename?: 'ArticleDonationConnection' - totalCount: number - } - }> - stages: Array<{ - __typename?: 'CampaignStage' - id: string - nameZhHant: string - nameZhHans: string - nameEn: string - descriptionZhHant: string - descriptionZhHans: string - descriptionEn: string - period?: { - __typename?: 'DatetimeRange' - start: any - end?: any | null - } | null - }> - participants: { - __typename?: 'CampaignParticipantConnection' - totalCount: number - edges?: Array<{ - __typename?: 'CampaignParticipantEdge' - node: { - __typename?: 'User' - id: string - avatar?: string | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - } - } - }> | null - } - featuredArticles: { - __typename?: 'CampaignArticleConnection' - totalCount: number - } - } | null -} - -export type CampaignDetailPrivateQueryVariables = Exact<{ - shortHash: Scalars['String']['input'] -}> - -export type CampaignDetailPrivateQuery = { - __typename?: 'Query' - campaign?: { - __typename?: 'WritingChallenge' - id: string - application?: { - __typename?: 'CampaignApplication' - state: CampaignApplicationState - createdAt: any - } | null - announcements: Array<{ - __typename?: 'Article' - id: string - bookmarked: boolean - }> - } | null -} - -export type GetParticipantsQueryVariables = Exact<{ - shortHash: Scalars['String']['input'] - after?: InputMaybe -}> - -export type GetParticipantsQuery = { - __typename?: 'Query' - campaign?: { - __typename?: 'WritingChallenge' - id: string - application?: { - __typename?: 'CampaignApplication' - state: CampaignApplicationState - } | null - participants: { - __typename?: 'CampaignParticipantConnection' - pageInfo: { - __typename?: 'PageInfo' - startCursor?: string | null - endCursor?: string | null - hasNextPage: boolean - } - edges?: Array<{ - __typename?: 'CampaignParticipantEdge' - cursor: string - node: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - info: { - __typename?: 'UserInfo' - description?: string | null - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - } - }> | null - } - } | null -} - -export type CampaignsQueryVariables = Exact<{ - after?: InputMaybe - state?: InputMaybe -}> - -export type CampaignsQuery = { - __typename?: 'Query' - campaigns: { - __typename?: 'CampaignConnection' - pageInfo: { - __typename?: 'PageInfo' - startCursor?: string | null - endCursor?: string | null - hasNextPage: boolean - } - edges?: Array<{ - __typename?: 'CampaignEdge' - cursor: string - node: { - __typename?: 'WritingChallenge' - id: string - cover?: string | null - shortHash: string - description?: string | null - nameZhHant: string - nameZhHans: string - nameEn: string - stages: Array<{ - __typename?: 'CampaignStage' - id: string - nameZhHant: string - nameZhHans: string - nameEn: string - period?: { - __typename?: 'DatetimeRange' - start: any - end?: any | null - } | null - }> - applicationPeriod?: { - __typename?: 'DatetimeRange' - start: any - end?: any | null - } | null - writingPeriod?: { - __typename?: 'DatetimeRange' - start: any - end?: any | null - } | null - participants: { - __typename?: 'CampaignParticipantConnection' - totalCount: number - edges?: Array<{ - __typename?: 'CampaignParticipantEdge' - node: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - }> | null - } - organizers: Array<{ - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - }> - } - }> | null - } -} - -export type CampaignOrganizersQueryVariables = Exact<{ [key: string]: never }> - -export type CampaignOrganizersQuery = { - __typename?: 'Query' - campaignOrganizers: { - __typename?: 'UserConnection' - edges?: Array<{ - __typename?: 'UserEdge' - node: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - isFollower: boolean - isFollowee: boolean - info: { - __typename?: 'UserInfo' - description?: string | null - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - } - }> | null - } -} - -export type CircleContentAnalyticsArticleFragment = { - __typename?: 'Article' - id: string - title: string - slug: string - shortHash: string - createdAt: any - author: { __typename?: 'User'; id: string; userName?: string | null } -} - -export type CircleContentAnalyticsPublicQueryVariables = Exact<{ - name: Scalars['String']['input'] -}> - -export type CircleContentAnalyticsPublicQuery = { - __typename?: 'Query' - circle?: { - __typename?: 'Circle' - id: string - analytics: { - __typename?: 'CircleAnalytics' - content: { - __typename?: 'CircleContentAnalytics' - public?: Array<{ - __typename?: 'CircleContentAnalyticsDatum' - readCount: number - node: { - __typename?: 'Article' - id: string - title: string - slug: string - shortHash: string - createdAt: any - author: { - __typename?: 'User' - id: string - userName?: string | null - } - } - }> | null - } - } - } | null -} - -export type CircleContentAnalyticsPaywallQueryVariables = Exact<{ - name: Scalars['String']['input'] -}> - -export type CircleContentAnalyticsPaywallQuery = { - __typename?: 'Query' - circle?: { - __typename?: 'Circle' - id: string - analytics: { - __typename?: 'CircleAnalytics' - content: { - __typename?: 'CircleContentAnalytics' - paywall?: Array<{ - __typename?: 'CircleContentAnalyticsDatum' - readCount: number - node: { - __typename?: 'Article' - id: string - title: string - slug: string - shortHash: string - createdAt: any - author: { - __typename?: 'User' - id: string - userName?: string | null - } - } - }> | null - } - } - } | null -} - -export type CircleFollowerAnalyticsQueryVariables = Exact<{ - name: Scalars['String']['input'] -}> - -export type CircleFollowerAnalyticsQuery = { - __typename?: 'Query' - circle?: { - __typename?: 'Circle' - id: string - analytics: { - __typename?: 'CircleAnalytics' - follower: { - __typename?: 'CircleFollowerAnalytics' - current: number - followerPercentage: number - history: Array<{ - __typename?: 'MonthlyDatum' - value: number - date: any - }> - } - } - } | null -} - -export type CircleIncomeAnalyticsQueryVariables = Exact<{ - name: Scalars['String']['input'] -}> - -export type CircleIncomeAnalyticsQuery = { - __typename?: 'Query' - circle?: { - __typename?: 'Circle' - id: string - analytics: { - __typename?: 'CircleAnalytics' - income: { - __typename?: 'CircleIncomeAnalytics' - thisMonth: number - nextMonth: number - total: number - history: Array<{ - __typename?: 'MonthlyDatum' - value: number - date: any - }> - } - } - } | null -} - -export type CircleSubscriberAnalyticsQueryVariables = Exact<{ - name: Scalars['String']['input'] -}> - -export type CircleSubscriberAnalyticsQuery = { - __typename?: 'Query' - circle?: { - __typename?: 'Circle' - id: string - analytics: { - __typename?: 'CircleAnalytics' - subscriber: { - __typename?: 'CircleSubscriberAnalytics' - currentSubscriber: number - currentInvitee: number - subscriberHistory: Array<{ - __typename?: 'MonthlyDatum' - value: number - date: any - }> - inviteeHistory: Array<{ - __typename?: 'MonthlyDatum' - value: number - date: any - }> - } - } - } | null -} - -export type BroadcastPublicQueryVariables = Exact<{ - name: Scalars['String']['input'] - before?: InputMaybe - after?: InputMaybe - first?: InputMaybe - includeAfter?: InputMaybe - includeBefore?: InputMaybe -}> - -export type BroadcastPublicQuery = { - __typename?: 'Query' - circle?: { - __typename?: 'Circle' - id: string - circleIsMember: boolean - owner: { __typename?: 'User'; id: string } - broadcast: { - __typename?: 'CommentConnection' - totalCount: number - pageInfo: { - __typename?: 'PageInfo' - startCursor?: string | null - endCursor?: string | null - hasNextPage: boolean - } - edges?: Array<{ - __typename?: 'CommentEdge' - node: { - __typename?: 'Comment' - id: string - state: CommentState - content?: string | null - type: CommentType - createdAt: any - upvotes: number - downvotes: number - pinned: boolean - myVote?: Vote | null - comments: { - __typename?: 'CommentConnection' - edges?: Array<{ - __typename?: 'CommentEdge' - cursor: string - node: { - __typename?: 'Comment' - id: string - state: CommentState - content?: string | null - type: CommentType - createdAt: any - upvotes: number - downvotes: number - pinned: boolean - myVote?: Vote | null - author: { - __typename?: 'User' - id: string - isBlocked: boolean - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { - __typename?: 'UserStatus' - state: UserState - } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ - __typename?: 'Badge' - type: BadgeType - }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - replyTo?: { - __typename?: 'Comment' - id: string - author: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { - __typename?: 'UserStatus' - state: UserState - } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ - __typename?: 'Badge' - type: BadgeType - }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - } | null - parentComment?: { __typename?: 'Comment'; id: string } | null - node: - | { __typename?: 'Article' } - | { __typename?: 'ArticleVersion' } - | { - __typename?: 'Circle' - id: string - name: string - owner: { - __typename?: 'User' - id: string - isBlocking: boolean - } - } - | { __typename?: 'Collection' } - | { __typename?: 'Comment' } - | { __typename?: 'CurationChannel' } - | { __typename?: 'Draft' } - | { __typename?: 'IcymiTopic' } - | { __typename?: 'Moment' } - | { __typename?: 'Report' } - | { __typename?: 'Tag' } - | { __typename?: 'TopicChannel' } - | { __typename?: 'User' } - | { __typename?: 'WritingChallenge' } - } - }> | null - } - author: { - __typename?: 'User' - id: string - isBlocked: boolean - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - replyTo?: { - __typename?: 'Comment' - id: string - author: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - } | null - parentComment?: { __typename?: 'Comment'; id: string } | null - node: - | { __typename?: 'Article' } - | { __typename?: 'ArticleVersion' } - | { - __typename?: 'Circle' - id: string - name: string - owner: { __typename?: 'User'; id: string; isBlocking: boolean } - } - | { __typename?: 'Collection' } - | { __typename?: 'Comment' } - | { __typename?: 'CurationChannel' } - | { __typename?: 'Draft' } - | { __typename?: 'IcymiTopic' } - | { __typename?: 'Moment' } - | { __typename?: 'Report' } - | { __typename?: 'Tag' } - | { __typename?: 'TopicChannel' } - | { __typename?: 'User' } - | { __typename?: 'WritingChallenge' } - } - }> | null - } - } | null -} - -export type BroadcastPrivateQueryVariables = Exact<{ - name: Scalars['String']['input'] - ids: Array | Scalars['ID']['input'] -}> - -export type BroadcastPrivateQuery = { - __typename?: 'Query' - circle?: { - __typename?: 'Circle' - id: string - circleIsMember: boolean - owner: { __typename?: 'User'; id: string } - } | null - nodes?: Array< - | { __typename?: 'Article'; id: string } - | { __typename?: 'ArticleVersion'; id: string } - | { __typename?: 'Circle'; id: string } - | { __typename?: 'Collection'; id: string } - | { - __typename?: 'Comment' - id: string - myVote?: Vote | null - type: CommentType - createdAt: any - comments: { - __typename?: 'CommentConnection' - edges?: Array<{ - __typename?: 'CommentEdge' - cursor: string - node: { - __typename?: 'Comment' - id: string - myVote?: Vote | null - type: CommentType - createdAt: any - node: - | { __typename?: 'Article' } - | { __typename?: 'ArticleVersion' } - | { - __typename?: 'Circle' - id: string - name: string - owner: { - __typename?: 'User' - id: string - isBlocking: boolean - } - } - | { __typename?: 'Collection' } - | { __typename?: 'Comment' } - | { __typename?: 'CurationChannel' } - | { __typename?: 'Draft' } - | { __typename?: 'IcymiTopic' } - | { __typename?: 'Moment' } - | { __typename?: 'Report' } - | { __typename?: 'Tag' } - | { __typename?: 'TopicChannel' } - | { __typename?: 'User' } - | { __typename?: 'WritingChallenge' } - author: { __typename?: 'User'; id: string; isBlocked: boolean } - parentComment?: { __typename?: 'Comment'; id: string } | null - } - }> | null - } - node: - | { __typename?: 'Article' } - | { __typename?: 'ArticleVersion' } - | { - __typename?: 'Circle' - id: string - name: string - owner: { __typename?: 'User'; id: string; isBlocking: boolean } - } - | { __typename?: 'Collection' } - | { __typename?: 'Comment' } - | { __typename?: 'CurationChannel' } - | { __typename?: 'Draft' } - | { __typename?: 'IcymiTopic' } - | { __typename?: 'Moment' } - | { __typename?: 'Report' } - | { __typename?: 'Tag' } - | { __typename?: 'TopicChannel' } - | { __typename?: 'User' } - | { __typename?: 'WritingChallenge' } - author: { __typename?: 'User'; id: string; isBlocked: boolean } - parentComment?: { __typename?: 'Comment'; id: string } | null - } - | { __typename?: 'CurationChannel'; id: string } - | { __typename?: 'Draft'; id: string } - | { __typename?: 'IcymiTopic'; id: string } - | { __typename?: 'Moment'; id: string } - | { __typename?: 'Report'; id: string } - | { __typename?: 'Tag'; id: string } - | { __typename?: 'TopicChannel'; id: string } - | { __typename?: 'User'; id: string } - | { __typename?: 'WritingChallenge'; id: string } - > | null -} - -export type DiscussionPublicQueryVariables = Exact<{ - name: Scalars['String']['input'] -}> - -export type DiscussionPublicQuery = { - __typename?: 'Query' - circle?: { - __typename?: 'Circle' - id: string - discussionCount: number - discussionThreadCount: number - circleIsMember: boolean - owner: { __typename?: 'User'; id: string; isBlocking: boolean } - } | null -} - -export type DiscussionPrivateQueryVariables = Exact<{ - name: Scalars['String']['input'] -}> - -export type DiscussionPrivateQuery = { - __typename?: 'Query' - circle?: { - __typename?: 'Circle' - id: string - circleIsMember: boolean - owner: { __typename?: 'User'; id: string; isBlocking: boolean } - } | null -} - -export type DiscussionCommentsQueryVariables = Exact<{ - name: Scalars['String']['input'] - before?: InputMaybe - after?: InputMaybe - first?: InputMaybe - includeAfter?: InputMaybe - includeBefore?: InputMaybe -}> - -export type DiscussionCommentsQuery = { - __typename?: 'Query' - circle?: { - __typename?: 'Circle' - id: string - discussion: { - __typename?: 'CommentConnection' - totalCount: number - pageInfo: { - __typename?: 'PageInfo' - startCursor?: string | null - endCursor?: string | null - hasNextPage: boolean - } - edges?: Array<{ - __typename?: 'CommentEdge' - node: { - __typename?: 'Comment' - id: string - state: CommentState - content?: string | null - type: CommentType - createdAt: any - upvotes: number - downvotes: number - pinned: boolean - myVote?: Vote | null - comments: { - __typename?: 'CommentConnection' - edges?: Array<{ - __typename?: 'CommentEdge' - cursor: string - node: { - __typename?: 'Comment' - id: string - state: CommentState - content?: string | null - type: CommentType - createdAt: any - upvotes: number - downvotes: number - pinned: boolean - myVote?: Vote | null - author: { - __typename?: 'User' - id: string - isBlocked: boolean - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { - __typename?: 'UserStatus' - state: UserState - } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ - __typename?: 'Badge' - type: BadgeType - }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - replyTo?: { - __typename?: 'Comment' - id: string - author: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { - __typename?: 'UserStatus' - state: UserState - } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ - __typename?: 'Badge' - type: BadgeType - }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - } | null - parentComment?: { __typename?: 'Comment'; id: string } | null - node: - | { __typename?: 'Article' } - | { __typename?: 'ArticleVersion' } - | { - __typename?: 'Circle' - id: string - name: string - owner: { - __typename?: 'User' - id: string - isBlocking: boolean - } - } - | { __typename?: 'Collection' } - | { __typename?: 'Comment' } - | { __typename?: 'CurationChannel' } - | { __typename?: 'Draft' } - | { __typename?: 'IcymiTopic' } - | { __typename?: 'Moment' } - | { __typename?: 'Report' } - | { __typename?: 'Tag' } - | { __typename?: 'TopicChannel' } - | { __typename?: 'User' } - | { __typename?: 'WritingChallenge' } - } - }> | null - } - author: { - __typename?: 'User' - id: string - isBlocked: boolean - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - replyTo?: { - __typename?: 'Comment' - id: string - author: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - } | null - parentComment?: { __typename?: 'Comment'; id: string } | null - node: - | { __typename?: 'Article' } - | { __typename?: 'ArticleVersion' } - | { - __typename?: 'Circle' - id: string - name: string - owner: { __typename?: 'User'; id: string; isBlocking: boolean } - } - | { __typename?: 'Collection' } - | { __typename?: 'Comment' } - | { __typename?: 'CurationChannel' } - | { __typename?: 'Draft' } - | { __typename?: 'IcymiTopic' } - | { __typename?: 'Moment' } - | { __typename?: 'Report' } - | { __typename?: 'Tag' } - | { __typename?: 'TopicChannel' } - | { __typename?: 'User' } - | { __typename?: 'WritingChallenge' } - } - }> | null - } - } | null -} - -export type AuthorWidgetCircleFragment = { - __typename?: 'Circle' - id: string - owner: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - info: { - __typename?: 'UserInfo' - description?: string | null - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - } - pinnedBroadcast?: Array<{ - __typename?: 'Comment' - id: string - content?: string | null - state: CommentState - author: { __typename?: 'User'; id: string; isBlocked: boolean } - }> | null -} - -export type DropdownActionsCirclePublicFragment = { - __typename?: 'Circle' - id: string - name: string - owner: { __typename?: 'User'; id: string } -} - -export type DropdownActionsCirclePrivateFragment = { - __typename?: 'Circle' - id: string - isMember: boolean -} - -export type FollowButtonCirclePrivateFragment = { - __typename?: 'Circle' - id: string - name: string - isFollower: boolean -} - -export type CircleFollowersPublicQueryVariables = Exact<{ - name: Scalars['String']['input'] - after?: InputMaybe -}> - -export type CircleFollowersPublicQuery = { - __typename?: 'Query' - circle?: { - __typename?: 'Circle' - id: string - cover?: string | null - displayName: string - description?: string | null - followers: { - __typename?: 'UserConnection' - pageInfo: { - __typename?: 'PageInfo' - startCursor?: string | null - endCursor?: string | null - hasNextPage: boolean - } - edges?: Array<{ - __typename?: 'UserEdge' - cursor: string - node: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - isFollower: boolean - isFollowee: boolean - info: { - __typename?: 'UserInfo' - description?: string | null - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - } - }> | null - } - } | null -} - -export type CircleFollowersPrivateQueryVariables = Exact<{ - ids: Array | Scalars['ID']['input'] -}> - -export type CircleFollowersPrivateQuery = { - __typename?: 'Query' - nodes?: Array< - | { __typename?: 'Article' } - | { __typename?: 'ArticleVersion' } - | { __typename?: 'Circle' } - | { __typename?: 'Collection' } - | { __typename?: 'Comment' } - | { __typename?: 'CurationChannel' } - | { __typename?: 'Draft' } - | { __typename?: 'IcymiTopic' } - | { __typename?: 'Moment' } - | { __typename?: 'Report' } - | { __typename?: 'Tag' } - | { __typename?: 'TopicChannel' } - | { - __typename?: 'User' - id: string - isFollower: boolean - isFollowee: boolean - status?: { __typename?: 'UserStatus'; state: UserState } | null - } - | { __typename?: 'WritingChallenge' } - > | null -} - -export type CircleMembersPublicQueryVariables = Exact<{ - name: Scalars['String']['input'] - after?: InputMaybe -}> - -export type CircleMembersPublicQuery = { - __typename?: 'Query' - circle?: { - __typename?: 'Circle' - id: string - cover?: string | null - displayName: string - description?: string | null - members: { - __typename?: 'MemberConnection' - pageInfo: { - __typename?: 'PageInfo' - startCursor?: string | null - endCursor?: string | null - hasNextPage: boolean - } - edges?: Array<{ - __typename?: 'MemberEdge' - cursor: string - node: { - __typename?: 'Member' - user: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - isFollower: boolean - isFollowee: boolean - info: { - __typename?: 'UserInfo' - description?: string | null - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - } - } - }> | null - } - } | null -} - -export type CircleMembersPrivateQueryVariables = Exact<{ - ids: Array | Scalars['ID']['input'] -}> - -export type CircleMembersPrivateQuery = { - __typename?: 'Query' - nodes?: Array< - | { __typename?: 'Article' } - | { __typename?: 'ArticleVersion' } - | { __typename?: 'Circle' } - | { __typename?: 'Collection' } - | { __typename?: 'Comment' } - | { __typename?: 'CurationChannel' } - | { __typename?: 'Draft' } - | { __typename?: 'IcymiTopic' } - | { __typename?: 'Moment' } - | { __typename?: 'Report' } - | { __typename?: 'Tag' } - | { __typename?: 'TopicChannel' } - | { - __typename?: 'User' - id: string - isFollower: boolean - isFollowee: boolean - status?: { __typename?: 'UserStatus'; state: UserState } | null - } - | { __typename?: 'WritingChallenge' } - > | null -} - -export type ProfileCirclePublicFragment = { - __typename?: 'Circle' - id: string - name: string - displayName: string - description?: string | null - cover?: string | null - isMember: boolean - avatar?: string | null - owner: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - info: { - __typename?: 'UserInfo' - description?: string | null - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - } - members: { __typename?: 'MemberConnection'; totalCount: number } - followers: { __typename?: 'UserConnection'; totalCount: number } - pinnedBroadcast?: Array<{ - __typename?: 'Comment' - id: string - content?: string | null - state: CommentState - author: { __typename?: 'User'; id: string; isBlocked: boolean } - }> | null - prices?: Array<{ - __typename?: 'Price' - amount: number - currency: TransactionCurrency - }> | null - works: { __typename?: 'ArticleConnection'; totalCount: number } -} - -export type ProfileCirclePrivateFragment = { - __typename?: 'Circle' - id: string - isMember: boolean - name: string - isFollower: boolean - owner: { __typename?: 'User'; id: string } - invitedBy?: { - __typename?: 'Invitation' - id: string - state: InvitationState - freePeriod: number - } | null -} - -export type CircleProfileCirclePublicQueryVariables = Exact<{ - name: Scalars['String']['input'] -}> - -export type CircleProfileCirclePublicQuery = { - __typename?: 'Query' - circle?: { - __typename?: 'Circle' - id: string - name: string - displayName: string - description?: string | null - cover?: string | null - isMember: boolean - avatar?: string | null - isFollower: boolean - owner: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - info: { - __typename?: 'UserInfo' - description?: string | null - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - } - members: { __typename?: 'MemberConnection'; totalCount: number } - followers: { __typename?: 'UserConnection'; totalCount: number } - pinnedBroadcast?: Array<{ - __typename?: 'Comment' - id: string - content?: string | null - state: CommentState - author: { __typename?: 'User'; id: string; isBlocked: boolean } - }> | null - prices?: Array<{ - __typename?: 'Price' - amount: number - currency: TransactionCurrency - }> | null - works: { __typename?: 'ArticleConnection'; totalCount: number } - invitedBy?: { - __typename?: 'Invitation' - id: string - state: InvitationState - freePeriod: number - } | null - } | null -} - -export type CircleProfileCirclePrivateQueryVariables = Exact<{ - name: Scalars['String']['input'] -}> - -export type CircleProfileCirclePrivateQuery = { - __typename?: 'Query' - circle?: { - __typename?: 'Circle' - id: string - isMember: boolean - name: string - isFollower: boolean - owner: { __typename?: 'User'; id: string } - invitedBy?: { - __typename?: 'Invitation' - id: string - state: InvitationState - freePeriod: number - } | null - } | null -} - -export type CircleBasicProfileQueryVariables = Exact<{ - name: Scalars['String']['input'] -}> - -export type CircleBasicProfileQuery = { - __typename?: 'Query' - circle?: { - __typename?: 'Circle' - id: string - name: string - displayName: string - description?: string | null - cover?: string | null - avatar?: string | null - owner: { __typename?: 'User'; id: string } - } | null -} - -export type InvitationsCircleQueryVariables = Exact<{ - name: Scalars['String']['input'] -}> - -export type InvitationsCircleQuery = { - __typename?: 'Query' - circle?: { __typename?: 'Circle'; id: string } | null -} - -export type CircleAcceptedInvitesQueryVariables = Exact<{ - name: Scalars['String']['input'] - after?: InputMaybe -}> - -export type CircleAcceptedInvitesQuery = { - __typename?: 'Query' - circle?: { - __typename?: 'Circle' - id: string - owner: { __typename?: 'User'; id: string } - invites: { - __typename?: 'Invites' - accepted: { - __typename?: 'InvitationConnection' - pageInfo: { - __typename?: 'PageInfo' - startCursor?: string | null - endCursor?: string | null - hasNextPage: boolean - } - edges?: Array<{ - __typename?: 'InvitationEdge' - cursor: string - node: { - __typename?: 'Invitation' - id: string - freePeriod: number - acceptedAt?: any | null - state: InvitationState - circle: { __typename?: 'Circle'; id: string } - invitee: - | { __typename: 'Person'; email: any } - | { - __typename: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { - __typename?: 'UserStatus' - state: UserState - } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ - __typename?: 'Badge' - type: BadgeType - }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - } - }> | null - } - } - } | null -} - -export type CircleInvitationFragment = { - __typename?: 'Invitation' - id: string - freePeriod: number - acceptedAt?: any | null - state: InvitationState - circle: { __typename?: 'Circle'; id: string } - invitee: - | { __typename: 'Person'; email: any } - | { - __typename: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } -} - -export type CirclePendingInvitesQueryVariables = Exact<{ - name: Scalars['String']['input'] - after?: InputMaybe -}> - -export type CirclePendingInvitesQuery = { - __typename?: 'Query' - circle?: { - __typename?: 'Circle' - id: string - owner: { __typename?: 'User'; id: string } - invites: { - __typename?: 'Invites' - pending: { - __typename?: 'InvitationConnection' - pageInfo: { - __typename?: 'PageInfo' - startCursor?: string | null - endCursor?: string | null - hasNextPage: boolean - } - edges?: Array<{ - __typename?: 'InvitationEdge' - cursor: string - node: { - __typename?: 'Invitation' - id: string - freePeriod: number - acceptedAt?: any | null - state: InvitationState - circle: { __typename?: 'Circle'; id: string } - invitee: - | { __typename: 'Person'; email: any } - | { - __typename: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { - __typename?: 'UserStatus' - state: UserState - } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ - __typename?: 'Badge' - type: BadgeType - }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - } - }> | null - } - } - } | null -} - -export type SubscriptionBannerCirclePublicFragment = { - __typename?: 'Circle' - id: string - name: string - displayName: string - description?: string | null - avatar?: string | null - prices?: Array<{ - __typename?: 'Price' - amount: number - currency: TransactionCurrency - }> | null - owner: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - members: { __typename?: 'MemberConnection'; totalCount: number } - works: { __typename?: 'ArticleConnection'; totalCount: number } -} - -export type SubscriptionBannerCirclePrivateFragment = { - __typename?: 'Circle' - id: string - isMember: boolean - owner: { __typename?: 'User'; id: string } - invitedBy?: { - __typename?: 'Invitation' - id: string - state: InvitationState - freePeriod: number - } | null -} - -export type CircleWorksPublicQueryVariables = Exact<{ - name: Scalars['String']['input'] - after?: InputMaybe -}> - -export type CircleWorksPublicQuery = { - __typename?: 'Query' - circle?: { - __typename?: 'Circle' - id: string - articles: { - __typename?: 'ArticleConnection' - pageInfo: { - __typename?: 'PageInfo' - startCursor?: string | null - endCursor?: string | null - hasNextPage: boolean - } - edges?: Array<{ - __typename?: 'ArticleEdge' - cursor: string - node: { - __typename?: 'Article' - id: string - title: string - slug: string - shortHash: string - displayCover?: string | null - summary: string - createdAt: any - readTime: number - bookmarked: boolean - pinned: boolean - revisionCount: number - articleState: ArticleState - author: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - access: { - __typename?: 'ArticleAccess' - type: ArticleAccessType - circle?: { - __typename?: 'Circle' - id: string - name: string - displayName: string - } | null - } - collections: { - __typename?: 'CollectionConnection' - edges?: Array<{ - __typename?: 'CollectionEdge' - node: { - __typename?: 'Collection' - id: string - title: string - articles: { - __typename?: 'ArticleConnection' - totalCount: number - } - } - }> | null - } - campaigns: Array<{ - __typename?: 'ArticleCampaign' - campaign: { - __typename?: 'WritingChallenge' - id: string - name: string - shortHash: string - nameZhHant: string - nameZhHans: string - nameEn: string - } - stage?: { __typename?: 'CampaignStage'; id: string } | null - }> - tags?: Array<{ - __typename?: 'Tag' - id: string - content: string - }> | null - donations: { - __typename?: 'ArticleDonationConnection' - totalCount: number - } - likesReceived: { - __typename?: 'AppreciationConnection' - totalCount: number - } - donationsDialog: { - __typename?: 'ArticleDonationConnection' - totalCount: number - } - } - }> | null - } - } | null -} - -export type CircleWorksPrivateQueryVariables = Exact<{ - name: Scalars['String']['input'] - ids: Array | Scalars['ID']['input'] -}> - -export type CircleWorksPrivateQuery = { - __typename?: 'Query' - circle?: { __typename?: 'Circle'; id: string } | null - nodes?: Array< - | { __typename?: 'Article'; id: string; bookmarked: boolean } - | { __typename?: 'ArticleVersion'; id: string } - | { __typename?: 'Circle'; id: string } - | { __typename?: 'Collection'; id: string } - | { __typename?: 'Comment'; id: string } - | { __typename?: 'CurationChannel'; id: string } - | { __typename?: 'Draft'; id: string } - | { __typename?: 'IcymiTopic'; id: string } - | { __typename?: 'Moment'; id: string } - | { __typename?: 'Report'; id: string } - | { __typename?: 'Tag'; id: string } - | { __typename?: 'TopicChannel'; id: string } - | { __typename?: 'User'; id: string } - | { __typename?: 'WritingChallenge'; id: string } - > | null -} - -export type UnfollowActionButtonCirclePrivateFragment = { - __typename?: 'Circle' - id: string - name: string - displayName: string - isFollower: boolean -} - -export type UnfollowActionButtonTagPrivateFragment = { - __typename?: 'Tag' - id: string - content: string - isFollower?: boolean | null -} - -export type UnfollowActionButtonUserPrivateFragment = { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - isFollower: boolean - isFollowee: boolean -} - -export type FollowingFeedCircleFragment = { - __typename?: 'Circle' - id: string - name: string - displayName: string - description?: string | null - createdAt: any - avatar?: string | null - owner: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } -} - -export type FollowingFeedCommentPublicFragment = { - __typename?: 'Comment' - id: string - createdAt: any - content?: string | null - state: CommentState - communityWatchAction?: { - __typename?: 'CommunityWatchAction' - uuid: string - } | null -} - -export type FollowingFeedCommentPrivateFragment = { - __typename?: 'Comment' - id: string - author: { __typename?: 'User'; id: string; isBlocked: boolean } -} - -export type FollowingFeedUserPublicFragment = { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - info: { - __typename?: 'UserInfo' - description?: string | null - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } -} - -export type FollowingFeedUserPrivateFragment = { - __typename?: 'User' - id: string - isFollower: boolean - isFollowee: boolean - status?: { __typename?: 'UserStatus'; state: UserState } | null -} - -export type FollowingFeedRecommendArticlePublicFragment = { - __typename?: 'Article' - id: string - title: string - slug: string - shortHash: string - cover?: string | null - summary: string - recommendArticleState: ArticleState - articleState: ArticleState - author: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } -} - -export type FollowingFeedRecommendCircleFooterPublicFragment = { - __typename?: 'Circle' - id: string - members: { __typename?: 'MemberConnection'; totalCount: number } - works: { __typename?: 'ArticleConnection'; totalCount: number } - prices?: Array<{ - __typename?: 'Price' - amount: number - currency: TransactionCurrency - }> | null -} - -export type FollowingFeedRecommendCircleFooterPrivateFragment = { - __typename?: 'Circle' - id: string - isMember: boolean - invitedBy?: { - __typename?: 'Invitation' - id: string - state: InvitationState - freePeriod: number - } | null -} - -export type FollowingFeedRecommendCirclePublicFragment = { - __typename?: 'Circle' - id: string - name: string - displayName: string - description?: string | null - avatar?: string | null - members: { __typename?: 'MemberConnection'; totalCount: number } - works: { __typename?: 'ArticleConnection'; totalCount: number } - prices?: Array<{ - __typename?: 'Price' - amount: number - currency: TransactionCurrency - }> | null - owner: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } -} - -export type FollowingFeedRecommendCirclePrivateFragment = { - __typename?: 'Circle' - id: string - isMember: boolean - invitedBy?: { - __typename?: 'Invitation' - id: string - state: InvitationState - freePeriod: number - } | null -} - -export type FollowingFeedRecommendUserPublicFragment = { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - info: { - __typename?: 'UserInfo' - description?: string | null - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - } - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } -} - -export type FollowingFeedRecommendUserPrivateFragment = { - __typename?: 'User' - id: string - isFollower: boolean - isFollowee: boolean - status?: { __typename?: 'UserStatus'; state: UserState } | null -} - -export type RecommendArticleActivityFragment = { - __typename?: 'ArticleRecommendationActivity' - source?: ArticleRecommendationActivitySource | null - recommendArticles?: Array<{ - __typename?: 'Article' - id: string - title: string - slug: string - shortHash: string - cover?: string | null - summary: string - recommendArticleState: ArticleState - articleState: ArticleState - author: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - }> | null -} - -export type RecommendUserActivityFragment = { - __typename?: 'UserRecommendationActivity' - recommendUsers?: Array<{ - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - isFollower: boolean - isFollowee: boolean - info: { - __typename?: 'UserInfo' - description?: string | null - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - } - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - }> | null -} - -export type UserAddArticleTagActivityFragment = { - __typename?: 'UserAddArticleTagActivity' - createdAt: any - actor: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - } - nodeArticle: { - __typename?: 'Article' - id: string - title: string - slug: string - shortHash: string - displayCover?: string | null - summary: string - createdAt: any - readTime: number - bookmarked: boolean - pinned: boolean - revisionCount: number - articleState: ArticleState - author: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - access: { - __typename?: 'ArticleAccess' - type: ArticleAccessType - circle?: { - __typename?: 'Circle' - id: string - name: string - displayName: string - } | null - } - collections: { - __typename?: 'CollectionConnection' - edges?: Array<{ - __typename?: 'CollectionEdge' - node: { - __typename?: 'Collection' - id: string - title: string - articles: { __typename?: 'ArticleConnection'; totalCount: number } - } - }> | null - } - campaigns: Array<{ - __typename?: 'ArticleCampaign' - campaign: { - __typename?: 'WritingChallenge' - id: string - name: string - shortHash: string - nameZhHant: string - nameZhHans: string - nameEn: string - } - stage?: { __typename?: 'CampaignStage'; id: string } | null - }> - tags?: Array<{ __typename?: 'Tag'; id: string; content: string }> | null - donations: { __typename?: 'ArticleDonationConnection'; totalCount: number } - likesReceived: { __typename?: 'AppreciationConnection'; totalCount: number } - donationsDialog: { - __typename?: 'ArticleDonationConnection' - totalCount: number - } - } - targetTag: { - __typename?: 'Tag' - id: string - content: string - numArticles: number - isFollower?: boolean | null - } -} - -export type UserBroadcastCircleActivityFragment = { - __typename?: 'UserBroadcastCircleActivity' - createdAt: any - actor: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - } - nodeComment: { - __typename?: 'Comment' - id: string - createdAt: any - content?: string | null - state: CommentState - communityWatchAction?: { - __typename?: 'CommunityWatchAction' - uuid: string - } | null - author: { __typename?: 'User'; id: string; isBlocked: boolean } - } - targetCircle: { - __typename?: 'Circle' - id: string - name: string - displayName: string - description?: string | null - createdAt: any - isFollower: boolean - avatar?: string | null - owner: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - } -} - -export type UserCreateCircleActivityFragment = { - __typename?: 'UserCreateCircleActivity' - createdAt: any - actor: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - isFollower: boolean - isFollowee: boolean - } - nodeCircle: { - __typename?: 'Circle' - id: string - name: string - displayName: string - description?: string | null - createdAt: any - avatar?: string | null - owner: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - } -} - -export type UserPostMomentActivityFragment = { - __typename?: 'UserPostMomentActivity' - createdAt: any - actor: { __typename?: 'User'; id: string } - nodeMoment: { - __typename?: 'Moment' - id: string - createdAt: any - shortHash: string - state: MomentState - content?: string | null - commentCount: number - likeCount: number - liked: boolean - author: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - assets: Array<{ __typename?: 'Asset'; id: string; path: string }> - commentedFollowees: Array<{ - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - }> - } - more: Array<{ - __typename?: 'Moment' - id: string - createdAt: any - shortHash: string - state: MomentState - content?: string | null - commentCount: number - likeCount: number - liked: boolean - author: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - assets: Array<{ __typename?: 'Asset'; id: string; path: string }> - commentedFollowees: Array<{ - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - }> - }> -} - -export type UserPublishArticleActivityFragment = { - __typename?: 'UserPublishArticleActivity' - createdAt: any - actor: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - isFollower: boolean - isFollowee: boolean - } - nodeArticle: { - __typename?: 'Article' - id: string - title: string - slug: string - shortHash: string - displayCover?: string | null - summary: string - createdAt: any - readTime: number - bookmarked: boolean - pinned: boolean - revisionCount: number - articleState: ArticleState - access: { - __typename?: 'ArticleAccess' - type: ArticleAccessType - circle?: { - __typename?: 'Circle' - id: string - name: string - displayName: string - } | null - } - author: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - collections: { - __typename?: 'CollectionConnection' - edges?: Array<{ - __typename?: 'CollectionEdge' - node: { - __typename?: 'Collection' - id: string - title: string - articles: { __typename?: 'ArticleConnection'; totalCount: number } - } - }> | null - } - campaigns: Array<{ - __typename?: 'ArticleCampaign' - campaign: { - __typename?: 'WritingChallenge' - id: string - name: string - shortHash: string - nameZhHant: string - nameZhHans: string - nameEn: string - } - stage?: { __typename?: 'CampaignStage'; id: string } | null - }> - tags?: Array<{ __typename?: 'Tag'; id: string; content: string }> | null - donations: { __typename?: 'ArticleDonationConnection'; totalCount: number } - likesReceived: { __typename?: 'AppreciationConnection'; totalCount: number } - donationsDialog: { - __typename?: 'ArticleDonationConnection' - totalCount: number - } - } -} - -export type FollowingFeedQueryVariables = Exact<{ - after?: InputMaybe - type?: InputMaybe -}> - -export type FollowingFeedQuery = { - __typename?: 'Query' - viewer?: { - __typename?: 'User' - id: string - recommendation: { - __typename?: 'Recommendation' - following: { - __typename?: 'FollowingActivityConnection' - pageInfo: { - __typename?: 'PageInfo' - startCursor?: string | null - endCursor?: string | null - hasNextPage: boolean - } - edges?: Array<{ - __typename?: 'FollowingActivityEdge' - cursor: string - node: - | { - __typename: 'ArticleRecommendationActivity' - source?: ArticleRecommendationActivitySource | null - recommendArticles?: Array<{ - __typename?: 'Article' - id: string - title: string - slug: string - shortHash: string - cover?: string | null - summary: string - recommendArticleState: ArticleState - articleState: ArticleState - author: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { - __typename?: 'UserStatus' - state: UserState - } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ - __typename?: 'Badge' - type: BadgeType - }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - }> | null - } - | { __typename: 'CircleRecommendationActivity' } - | { - __typename: 'UserAddArticleTagActivity' - createdAt: any - actor: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - } - nodeArticle: { - __typename?: 'Article' - id: string - title: string - slug: string - shortHash: string - displayCover?: string | null - summary: string - createdAt: any - readTime: number - bookmarked: boolean - pinned: boolean - revisionCount: number - articleState: ArticleState - author: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { - __typename?: 'UserStatus' - state: UserState - } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ - __typename?: 'Badge' - type: BadgeType - }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - access: { - __typename?: 'ArticleAccess' - type: ArticleAccessType - circle?: { - __typename?: 'Circle' - id: string - name: string - displayName: string - } | null - } - collections: { - __typename?: 'CollectionConnection' - edges?: Array<{ - __typename?: 'CollectionEdge' - node: { - __typename?: 'Collection' - id: string - title: string - articles: { - __typename?: 'ArticleConnection' - totalCount: number - } - } - }> | null - } - campaigns: Array<{ - __typename?: 'ArticleCampaign' - campaign: { - __typename?: 'WritingChallenge' - id: string - name: string - shortHash: string - nameZhHant: string - nameZhHans: string - nameEn: string - } - stage?: { __typename?: 'CampaignStage'; id: string } | null - }> - tags?: Array<{ - __typename?: 'Tag' - id: string - content: string - }> | null - donations: { - __typename?: 'ArticleDonationConnection' - totalCount: number - } - likesReceived: { - __typename?: 'AppreciationConnection' - totalCount: number - } - donationsDialog: { - __typename?: 'ArticleDonationConnection' - totalCount: number - } - } - targetTag: { - __typename?: 'Tag' - id: string - content: string - numArticles: number - isFollower?: boolean | null - } - } - | { - __typename: 'UserBroadcastCircleActivity' - createdAt: any - actor: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - } - nodeComment: { - __typename?: 'Comment' - id: string - createdAt: any - content?: string | null - state: CommentState - communityWatchAction?: { - __typename?: 'CommunityWatchAction' - uuid: string - } | null - author: { - __typename?: 'User' - id: string - isBlocked: boolean - } - } - targetCircle: { - __typename?: 'Circle' - id: string - name: string - displayName: string - description?: string | null - createdAt: any - isFollower: boolean - avatar?: string | null - owner: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { - __typename?: 'UserStatus' - state: UserState - } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ - __typename?: 'Badge' - type: BadgeType - }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - } - } - | { - __typename: 'UserCreateCircleActivity' - createdAt: any - actor: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - isFollower: boolean - isFollowee: boolean - } - nodeCircle: { - __typename?: 'Circle' - id: string - name: string - displayName: string - description?: string | null - createdAt: any - avatar?: string | null - owner: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { - __typename?: 'UserStatus' - state: UserState - } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ - __typename?: 'Badge' - type: BadgeType - }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - } - } - | { - __typename: 'UserPostMomentActivity' - createdAt: any - actor: { __typename?: 'User'; id: string } - nodeMoment: { - __typename?: 'Moment' - id: string - createdAt: any - shortHash: string - state: MomentState - content?: string | null - commentCount: number - likeCount: number - liked: boolean - author: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { - __typename?: 'UserStatus' - state: UserState - } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ - __typename?: 'Badge' - type: BadgeType - }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - assets: Array<{ - __typename?: 'Asset' - id: string - path: string - }> - commentedFollowees: Array<{ - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { - __typename?: 'UserStatus' - state: UserState - } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ - __typename?: 'Badge' - type: BadgeType - }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - }> - } - more: Array<{ - __typename?: 'Moment' - id: string - createdAt: any - shortHash: string - state: MomentState - content?: string | null - commentCount: number - likeCount: number - liked: boolean - author: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { - __typename?: 'UserStatus' - state: UserState - } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ - __typename?: 'Badge' - type: BadgeType - }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - assets: Array<{ - __typename?: 'Asset' - id: string - path: string - }> - commentedFollowees: Array<{ - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { - __typename?: 'UserStatus' - state: UserState - } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ - __typename?: 'Badge' - type: BadgeType - }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - }> - }> - } - | { - __typename: 'UserPublishArticleActivity' - createdAt: any - actor: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - isFollower: boolean - isFollowee: boolean - } - nodeArticle: { - __typename?: 'Article' - id: string - title: string - slug: string - shortHash: string - displayCover?: string | null - summary: string - createdAt: any - readTime: number - bookmarked: boolean - pinned: boolean - revisionCount: number - articleState: ArticleState - access: { - __typename?: 'ArticleAccess' - type: ArticleAccessType - circle?: { - __typename?: 'Circle' - id: string - name: string - displayName: string - } | null - } - author: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { - __typename?: 'UserStatus' - state: UserState - } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ - __typename?: 'Badge' - type: BadgeType - }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - collections: { - __typename?: 'CollectionConnection' - edges?: Array<{ - __typename?: 'CollectionEdge' - node: { - __typename?: 'Collection' - id: string - title: string - articles: { - __typename?: 'ArticleConnection' - totalCount: number - } - } - }> | null - } - campaigns: Array<{ - __typename?: 'ArticleCampaign' - campaign: { - __typename?: 'WritingChallenge' - id: string - name: string - shortHash: string - nameZhHant: string - nameZhHans: string - nameEn: string - } - stage?: { __typename?: 'CampaignStage'; id: string } | null - }> - tags?: Array<{ - __typename?: 'Tag' - id: string - content: string - }> | null - donations: { - __typename?: 'ArticleDonationConnection' - totalCount: number - } - likesReceived: { - __typename?: 'AppreciationConnection' - totalCount: number - } - donationsDialog: { - __typename?: 'ArticleDonationConnection' - totalCount: number - } - } - } - | { - __typename: 'UserRecommendationActivity' - recommendUsers?: Array<{ - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - isFollower: boolean - isFollowee: boolean - info: { - __typename?: 'UserInfo' - description?: string | null - badges?: Array<{ - __typename?: 'Badge' - type: BadgeType - }> | null - } - status?: { - __typename?: 'UserStatus' - state: UserState - } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - }> | null - } - }> | null - } - } - } | null -} - -export type ReadFollowingFeedMutationVariables = Exact<{ [key: string]: never }> - -export type ReadFollowingFeedMutation = { - __typename?: 'Mutation' - logRecord?: boolean | null -} - -export type MeFollowQueryVariables = Exact<{ [key: string]: never }> - -export type MeFollowQuery = { - __typename?: 'Query' - viewer?: { - __typename?: 'User' - id: string - following: { - __typename?: 'Following' - users: { __typename?: 'UserConnection'; totalCount: number } - } - } | null -} - -export type CuratedFooterActionsArticleFragment = { - __typename?: 'Article' - id: string - shortHash: string - title: string - pinned: boolean - slug: string - revisionCount: number - articleState: ArticleState - author: { - __typename?: 'User' - id: string - displayName?: string | null - userName?: string | null - } - tags?: Array<{ __typename?: 'Tag'; id: string; content: string }> | null - likesReceived: { __typename?: 'AppreciationConnection'; totalCount: number } - donationsDialog: { - __typename?: 'ArticleDonationConnection' - totalCount: number - } -} - -export type ArticleDigestCuratedArticleFragment = { - __typename?: 'Article' - id: string - title: string - slug: string - shortHash: string - displayCover?: string | null - pinned: boolean - revisionCount: number - articleState: ArticleState - author: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - campaigns: Array<{ - __typename?: 'ArticleCampaign' - campaign: { - __typename?: 'WritingChallenge' - name: string - id: string - nameZhHant: string - nameZhHans: string - nameEn: string - } - }> - tags?: Array<{ __typename?: 'Tag'; id: string; content: string }> | null - likesReceived: { __typename?: 'AppreciationConnection'; totalCount: number } - donationsDialog: { - __typename?: 'ArticleDonationConnection' - totalCount: number - } -} - -export type TopicChannelHeaderFragment = { - __typename?: 'TopicChannel' - id: string - nameZhHant: string - nameZhHans: string - nameEn: string - noteZhHant?: string | null - noteZhHans?: string | null - noteEn?: string | null -} - -export type CurationChannelHeaderFragment = { - __typename?: 'CurationChannel' - id: string - nameZhHant: string - nameZhHans: string - nameEn: string - noteZhHant?: string | null - noteZhHans?: string | null - noteEn?: string | null -} - -export type IcymiCuratedFeedRecommendationFragment = { - __typename?: 'Recommendation' - icymiTopic?: { - __typename?: 'IcymiTopic' - id: string - pinAmount: number - noteEn?: string | null - noteZhHant?: string | null - noteZhHans?: string | null - articles: Array<{ - __typename?: 'Article' - id: string - title: string - slug: string - shortHash: string - displayCover?: string | null - summary: string - createdAt: any - readTime: number - bookmarked: boolean - pinned: boolean - revisionCount: number - articleState: ArticleState - author: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - campaigns: Array<{ - __typename?: 'ArticleCampaign' - campaign: { - __typename?: 'WritingChallenge' - id: string - name: string - shortHash: string - nameZhHant: string - nameZhHans: string - nameEn: string - } - stage?: { __typename?: 'CampaignStage'; id: string } | null - }> - access: { - __typename?: 'ArticleAccess' - type: ArticleAccessType - circle?: { - __typename?: 'Circle' - id: string - name: string - displayName: string - } | null - } - collections: { - __typename?: 'CollectionConnection' - edges?: Array<{ - __typename?: 'CollectionEdge' - node: { - __typename?: 'Collection' - id: string - title: string - articles: { __typename?: 'ArticleConnection'; totalCount: number } - } - }> | null - } - tags?: Array<{ __typename?: 'Tag'; content: string; id: string }> | null - donations: { - __typename?: 'ArticleDonationConnection' - totalCount: number - } - likesReceived: { - __typename?: 'AppreciationConnection' - totalCount: number - } - donationsDialog: { - __typename?: 'ArticleDonationConnection' - totalCount: number - } - }> - } | null -} - -export type ArticleNodeFragmentFragment = { - __typename?: 'Article' - id: string - title: string - slug: string - shortHash: string - displayCover?: string | null - summary: string - createdAt: any - readTime: number - bookmarked: boolean - pinned: boolean - revisionCount: number - articleState: ArticleState - author: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - campaigns: Array<{ - __typename?: 'ArticleCampaign' - campaign: { - __typename?: 'WritingChallenge' - id: string - name: string - shortHash: string - nameZhHant: string - nameZhHans: string - nameEn: string - } - stage?: { __typename?: 'CampaignStage'; id: string } | null - }> - access: { - __typename?: 'ArticleAccess' - type: ArticleAccessType - circle?: { - __typename?: 'Circle' - id: string - name: string - displayName: string - } | null - } - collections: { - __typename?: 'CollectionConnection' - edges?: Array<{ - __typename?: 'CollectionEdge' - node: { - __typename?: 'Collection' - id: string - title: string - articles: { __typename?: 'ArticleConnection'; totalCount: number } - } - }> | null - } - tags?: Array<{ __typename?: 'Tag'; content: string; id: string }> | null - donations: { __typename?: 'ArticleDonationConnection'; totalCount: number } - likesReceived: { __typename?: 'AppreciationConnection'; totalCount: number } - donationsDialog: { - __typename?: 'ArticleDonationConnection' - totalCount: number - } -} - -export type FeedArticleConnectionFragment = { - __typename?: 'ArticleConnection' - pageInfo: { - __typename?: 'PageInfo' - startCursor?: string | null - endCursor?: string | null - hasNextPage: boolean - } - edges?: Array<{ - __typename?: 'ArticleEdge' - cursor: string - node: { - __typename?: 'Article' - id: string - title: string - slug: string - shortHash: string - displayCover?: string | null - summary: string - createdAt: any - readTime: number - bookmarked: boolean - pinned: boolean - revisionCount: number - articleState: ArticleState - author: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - campaigns: Array<{ - __typename?: 'ArticleCampaign' - campaign: { - __typename?: 'WritingChallenge' - id: string - name: string - shortHash: string - nameZhHant: string - nameZhHans: string - nameEn: string - } - stage?: { __typename?: 'CampaignStage'; id: string } | null - }> - access: { - __typename?: 'ArticleAccess' - type: ArticleAccessType - circle?: { - __typename?: 'Circle' - id: string - name: string - displayName: string - } | null - } - collections: { - __typename?: 'CollectionConnection' - edges?: Array<{ - __typename?: 'CollectionEdge' - node: { - __typename?: 'Collection' - id: string - title: string - articles: { __typename?: 'ArticleConnection'; totalCount: number } - } - }> | null - } - tags?: Array<{ __typename?: 'Tag'; content: string; id: string }> | null - donations: { - __typename?: 'ArticleDonationConnection' - totalCount: number - } - likesReceived: { - __typename?: 'AppreciationConnection' - totalCount: number - } - donationsDialog: { - __typename?: 'ArticleDonationConnection' - totalCount: number - } - } - }> | null -} - -export type ChannelArticleConnectionFragmentFragment = { - __typename?: 'ChannelArticleConnection' - pageInfo: { - __typename?: 'PageInfo' - startCursor?: string | null - endCursor?: string | null - hasNextPage: boolean - } - edges?: Array<{ - __typename?: 'ChannelArticleEdge' - cursor: string - pinned: boolean - node: { - __typename?: 'Article' - id: string - title: string - slug: string - shortHash: string - displayCover?: string | null - summary: string - createdAt: any - readTime: number - bookmarked: boolean - pinned: boolean - revisionCount: number - articleState: ArticleState - author: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - campaigns: Array<{ - __typename?: 'ArticleCampaign' - campaign: { - __typename?: 'WritingChallenge' - id: string - name: string - shortHash: string - nameZhHant: string - nameZhHans: string - nameEn: string - } - stage?: { __typename?: 'CampaignStage'; id: string } | null - }> - access: { - __typename?: 'ArticleAccess' - type: ArticleAccessType - circle?: { - __typename?: 'Circle' - id: string - name: string - displayName: string - } | null - } - collections: { - __typename?: 'CollectionConnection' - edges?: Array<{ - __typename?: 'CollectionEdge' - node: { - __typename?: 'Collection' - id: string - title: string - articles: { __typename?: 'ArticleConnection'; totalCount: number } - } - }> | null - } - tags?: Array<{ __typename?: 'Tag'; content: string; id: string }> | null - donations: { - __typename?: 'ArticleDonationConnection' - totalCount: number - } - likesReceived: { - __typename?: 'AppreciationConnection' - totalCount: number - } - donationsDialog: { - __typename?: 'ArticleDonationConnection' - totalCount: number - } - } - }> | null -} - -export type NewestFeedPublicQueryVariables = Exact<{ - after?: InputMaybe -}> - -export type NewestFeedPublicQuery = { - __typename?: 'Query' - viewer?: { - __typename?: 'User' - id: string - recommendation: { - __typename?: 'Recommendation' - feed: { - __typename?: 'ArticleConnection' - pageInfo: { - __typename?: 'PageInfo' - startCursor?: string | null - endCursor?: string | null - hasNextPage: boolean - } - edges?: Array<{ - __typename?: 'ArticleEdge' - cursor: string - node: { - __typename?: 'Article' - id: string - title: string - slug: string - shortHash: string - displayCover?: string | null - summary: string - createdAt: any - readTime: number - bookmarked: boolean - pinned: boolean - revisionCount: number - articleState: ArticleState - author: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - campaigns: Array<{ - __typename?: 'ArticleCampaign' - campaign: { - __typename?: 'WritingChallenge' - id: string - name: string - shortHash: string - nameZhHant: string - nameZhHans: string - nameEn: string - } - stage?: { __typename?: 'CampaignStage'; id: string } | null - }> - access: { - __typename?: 'ArticleAccess' - type: ArticleAccessType - circle?: { - __typename?: 'Circle' - id: string - name: string - displayName: string - } | null - } - collections: { - __typename?: 'CollectionConnection' - edges?: Array<{ - __typename?: 'CollectionEdge' - node: { - __typename?: 'Collection' - id: string - title: string - articles: { - __typename?: 'ArticleConnection' - totalCount: number - } - } - }> | null - } - tags?: Array<{ - __typename?: 'Tag' - content: string - id: string - }> | null - donations: { - __typename?: 'ArticleDonationConnection' - totalCount: number - } - likesReceived: { - __typename?: 'AppreciationConnection' - totalCount: number - } - donationsDialog: { - __typename?: 'ArticleDonationConnection' - totalCount: number - } - } - }> | null - } - } - } | null -} - -export type IcymiFeedPublicQueryVariables = Exact<{ - after?: InputMaybe -}> - -export type IcymiFeedPublicQuery = { - __typename?: 'Query' - viewer?: { - __typename?: 'User' - id: string - recommendation: { - __typename?: 'Recommendation' - feed: { - __typename?: 'ArticleConnection' - pageInfo: { - __typename?: 'PageInfo' - startCursor?: string | null - endCursor?: string | null - hasNextPage: boolean - } - edges?: Array<{ - __typename?: 'ArticleEdge' - cursor: string - node: { - __typename?: 'Article' - id: string - title: string - slug: string - shortHash: string - displayCover?: string | null - summary: string - createdAt: any - readTime: number - bookmarked: boolean - pinned: boolean - revisionCount: number - articleState: ArticleState - author: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - campaigns: Array<{ - __typename?: 'ArticleCampaign' - campaign: { - __typename?: 'WritingChallenge' - id: string - name: string - shortHash: string - nameZhHant: string - nameZhHans: string - nameEn: string - } - stage?: { __typename?: 'CampaignStage'; id: string } | null - }> - access: { - __typename?: 'ArticleAccess' - type: ArticleAccessType - circle?: { - __typename?: 'Circle' - id: string - name: string - displayName: string - } | null - } - collections: { - __typename?: 'CollectionConnection' - edges?: Array<{ - __typename?: 'CollectionEdge' - node: { - __typename?: 'Collection' - id: string - title: string - articles: { - __typename?: 'ArticleConnection' - totalCount: number - } - } - }> | null - } - tags?: Array<{ - __typename?: 'Tag' - content: string - id: string - }> | null - donations: { - __typename?: 'ArticleDonationConnection' - totalCount: number - } - likesReceived: { - __typename?: 'AppreciationConnection' - totalCount: number - } - donationsDialog: { - __typename?: 'ArticleDonationConnection' - totalCount: number - } - } - }> | null - } - icymiTopic?: { - __typename?: 'IcymiTopic' - id: string - pinAmount: number - noteEn?: string | null - noteZhHant?: string | null - noteZhHans?: string | null - articles: Array<{ - __typename?: 'Article' - id: string - title: string - slug: string - shortHash: string - displayCover?: string | null - summary: string - createdAt: any - readTime: number - bookmarked: boolean - pinned: boolean - revisionCount: number - articleState: ArticleState - author: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - campaigns: Array<{ - __typename?: 'ArticleCampaign' - campaign: { - __typename?: 'WritingChallenge' - id: string - name: string - shortHash: string - nameZhHant: string - nameZhHans: string - nameEn: string - } - stage?: { __typename?: 'CampaignStage'; id: string } | null - }> - access: { - __typename?: 'ArticleAccess' - type: ArticleAccessType - circle?: { - __typename?: 'Circle' - id: string - name: string - displayName: string - } | null - } - collections: { - __typename?: 'CollectionConnection' - edges?: Array<{ - __typename?: 'CollectionEdge' - node: { - __typename?: 'Collection' - id: string - title: string - articles: { - __typename?: 'ArticleConnection' - totalCount: number - } - } - }> | null - } - tags?: Array<{ - __typename?: 'Tag' - content: string - id: string - }> | null - donations: { - __typename?: 'ArticleDonationConnection' - totalCount: number - } - likesReceived: { - __typename?: 'AppreciationConnection' - totalCount: number - } - donationsDialog: { - __typename?: 'ArticleDonationConnection' - totalCount: number - } - }> - } | null - } - } | null -} - -export type HottestFeedPublicQueryVariables = Exact<{ - after?: InputMaybe -}> - -export type HottestFeedPublicQuery = { - __typename?: 'Query' - viewer?: { - __typename?: 'User' - id: string - recommendation: { - __typename?: 'Recommendation' - feed: { - __typename?: 'ArticleConnection' - pageInfo: { - __typename?: 'PageInfo' - startCursor?: string | null - endCursor?: string | null - hasNextPage: boolean - } - edges?: Array<{ - __typename?: 'ArticleEdge' - cursor: string - node: { - __typename?: 'Article' - id: string - title: string - slug: string - shortHash: string - displayCover?: string | null - summary: string - createdAt: any - readTime: number - bookmarked: boolean - pinned: boolean - revisionCount: number - articleState: ArticleState - author: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - campaigns: Array<{ - __typename?: 'ArticleCampaign' - campaign: { - __typename?: 'WritingChallenge' - id: string - name: string - shortHash: string - nameZhHant: string - nameZhHans: string - nameEn: string - } - stage?: { __typename?: 'CampaignStage'; id: string } | null - }> - access: { - __typename?: 'ArticleAccess' - type: ArticleAccessType - circle?: { - __typename?: 'Circle' - id: string - name: string - displayName: string - } | null - } - collections: { - __typename?: 'CollectionConnection' - edges?: Array<{ - __typename?: 'CollectionEdge' - node: { - __typename?: 'Collection' - id: string - title: string - articles: { - __typename?: 'ArticleConnection' - totalCount: number - } - } - }> | null - } - tags?: Array<{ - __typename?: 'Tag' - content: string - id: string - }> | null - donations: { - __typename?: 'ArticleDonationConnection' - totalCount: number - } - likesReceived: { - __typename?: 'AppreciationConnection' - totalCount: number - } - donationsDialog: { - __typename?: 'ArticleDonationConnection' - totalCount: number - } - } - }> | null - } - } - } | null -} - -export type FeedArticlesPublicChannelQueryVariables = Exact<{ - shortHash: Scalars['String']['input'] - after?: InputMaybe -}> - -export type FeedArticlesPublicChannelQuery = { - __typename?: 'Query' - channel?: - | { - __typename?: 'CurationChannel' - id: string - nameZhHant: string - nameZhHans: string - nameEn: string - noteZhHant?: string | null - noteZhHans?: string | null - noteEn?: string | null - articles: { - __typename?: 'ChannelArticleConnection' - pageInfo: { - __typename?: 'PageInfo' - startCursor?: string | null - endCursor?: string | null - hasNextPage: boolean - } - edges?: Array<{ - __typename?: 'ChannelArticleEdge' - cursor: string - pinned: boolean - node: { - __typename?: 'Article' - id: string - title: string - slug: string - shortHash: string - displayCover?: string | null - summary: string - createdAt: any - readTime: number - bookmarked: boolean - pinned: boolean - revisionCount: number - articleState: ArticleState - author: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ - __typename?: 'Badge' - type: BadgeType - }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - campaigns: Array<{ - __typename?: 'ArticleCampaign' - campaign: { - __typename?: 'WritingChallenge' - id: string - name: string - shortHash: string - nameZhHant: string - nameZhHans: string - nameEn: string - } - stage?: { __typename?: 'CampaignStage'; id: string } | null - }> - access: { - __typename?: 'ArticleAccess' - type: ArticleAccessType - circle?: { - __typename?: 'Circle' - id: string - name: string - displayName: string - } | null - } - collections: { - __typename?: 'CollectionConnection' - edges?: Array<{ - __typename?: 'CollectionEdge' - node: { - __typename?: 'Collection' - id: string - title: string - articles: { - __typename?: 'ArticleConnection' - totalCount: number - } - } - }> | null - } - tags?: Array<{ - __typename?: 'Tag' - content: string - id: string - }> | null - donations: { - __typename?: 'ArticleDonationConnection' - totalCount: number - } - likesReceived: { - __typename?: 'AppreciationConnection' - totalCount: number - } - donationsDialog: { - __typename?: 'ArticleDonationConnection' - totalCount: number - } - } - }> | null - } - } - | { __typename?: 'Tag'; id: string } - | { - __typename?: 'TopicChannel' - id: string - nameZhHant: string - nameZhHans: string - nameEn: string - noteZhHant?: string | null - noteZhHans?: string | null - noteEn?: string | null - articles: { - __typename?: 'ChannelArticleConnection' - pageInfo: { - __typename?: 'PageInfo' - startCursor?: string | null - endCursor?: string | null - hasNextPage: boolean - } - edges?: Array<{ - __typename?: 'ChannelArticleEdge' - cursor: string - pinned: boolean - node: { - __typename?: 'Article' - id: string - title: string - slug: string - shortHash: string - displayCover?: string | null - summary: string - createdAt: any - readTime: number - bookmarked: boolean - pinned: boolean - revisionCount: number - articleState: ArticleState - author: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ - __typename?: 'Badge' - type: BadgeType - }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - campaigns: Array<{ - __typename?: 'ArticleCampaign' - campaign: { - __typename?: 'WritingChallenge' - id: string - name: string - shortHash: string - nameZhHant: string - nameZhHans: string - nameEn: string - } - stage?: { __typename?: 'CampaignStage'; id: string } | null - }> - access: { - __typename?: 'ArticleAccess' - type: ArticleAccessType - circle?: { - __typename?: 'Circle' - id: string - name: string - displayName: string - } | null - } - collections: { - __typename?: 'CollectionConnection' - edges?: Array<{ - __typename?: 'CollectionEdge' - node: { - __typename?: 'Collection' - id: string - title: string - articles: { - __typename?: 'ArticleConnection' - totalCount: number - } - } - }> | null - } - tags?: Array<{ - __typename?: 'Tag' - content: string - id: string - }> | null - donations: { - __typename?: 'ArticleDonationConnection' - totalCount: number - } - likesReceived: { - __typename?: 'AppreciationConnection' - totalCount: number - } - donationsDialog: { - __typename?: 'ArticleDonationConnection' - totalCount: number - } - } - }> | null - } - } - | { __typename?: 'WritingChallenge'; id: string } - | null -} - -export type FeedArticlesPrivateQueryVariables = Exact<{ - ids: Array | Scalars['ID']['input'] -}> - -export type FeedArticlesPrivateQuery = { - __typename?: 'Query' - nodes?: Array< - | { __typename?: 'Article'; id: string; bookmarked: boolean } - | { __typename?: 'ArticleVersion'; id: string } - | { __typename?: 'Circle'; id: string } - | { __typename?: 'Collection'; id: string } - | { __typename?: 'Comment'; id: string } - | { __typename?: 'CurationChannel'; id: string } - | { __typename?: 'Draft'; id: string } - | { __typename?: 'IcymiTopic'; id: string } - | { __typename?: 'Moment'; id: string } - | { __typename?: 'Report'; id: string } - | { __typename?: 'Tag'; id: string } - | { __typename?: 'TopicChannel'; id: string } - | { __typename?: 'User'; id: string } - | { __typename?: 'WritingChallenge'; id: string } - > | null -} - -export type AuthorsRecommendationPublicQueryVariables = Exact<{ - random?: InputMaybe - first?: InputMaybe - shortHash?: InputMaybe -}> - -export type AuthorsRecommendationPublicQuery = { - __typename?: 'Query' - viewer?: { - __typename?: 'User' - id: string - recommendation: { - __typename?: 'Recommendation' - authors: { - __typename?: 'UserConnection' - totalCount: number - edges?: Array<{ - __typename?: 'UserEdge' - cursor: string - node: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - isFollower: boolean - isFollowee: boolean - info: { - __typename?: 'UserInfo' - description?: string | null - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - } - }> | null - } - } - } | null -} - -export type TagsRecommendationPublicQueryVariables = Exact<{ - random?: InputMaybe - first?: InputMaybe - shortHash?: InputMaybe -}> - -export type TagsRecommendationPublicQuery = { - __typename?: 'Query' - viewer?: { - __typename?: 'User' - id: string - recommendation: { - __typename?: 'Recommendation' - tags: { - __typename?: 'TagConnection' - totalCount: number - edges?: Array<{ - __typename?: 'TagEdge' - cursor: string - node: { - __typename?: 'Tag' - id: string - content: string - numArticles: number - } - }> | null - } - } - } | null -} - -export type MeAnalyticsQueryVariables = Exact<{ - after?: InputMaybe - filter?: InputMaybe -}> - -export type MeAnalyticsQuery = { - __typename?: 'Query' - viewer?: { - __typename?: 'User' - id: string - articles: { __typename?: 'ArticleConnection'; totalCount: number } - analytics: { - __typename?: 'UserAnalytics' - topDonators: { - __typename?: 'TopDonatorConnection' - pageInfo: { - __typename?: 'PageInfo' - startCursor?: string | null - endCursor?: string | null - hasNextPage: boolean - } - edges?: Array<{ - __typename?: 'TopDonatorEdge' - cursor: string - donationCount: number - node: - | { __typename?: 'CryptoWallet'; id: string; address: string } - | { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ - __typename?: 'Badge' - type: BadgeType - }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - }> | null - } - } - } | null -} - -export type MeBookmarkArticlesFeedQueryVariables = Exact<{ - after?: InputMaybe -}> - -export type MeBookmarkArticlesFeedQuery = { - __typename?: 'Query' - viewer?: { - __typename?: 'User' - id: string - bookmarkedArticles: { - __typename?: 'ArticleConnection' - pageInfo: { - __typename?: 'PageInfo' - startCursor?: string | null - endCursor?: string | null - hasNextPage: boolean - } - edges?: Array<{ - __typename?: 'ArticleEdge' - cursor: string - node: { - __typename?: 'Article' - id: string - title: string - slug: string - shortHash: string - displayCover?: string | null - summary: string - createdAt: any - readTime: number - bookmarked: boolean - pinned: boolean - revisionCount: number - articleState: ArticleState - author: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - access: { - __typename?: 'ArticleAccess' - type: ArticleAccessType - circle?: { - __typename?: 'Circle' - id: string - name: string - displayName: string - } | null - } - collections: { - __typename?: 'CollectionConnection' - edges?: Array<{ - __typename?: 'CollectionEdge' - node: { - __typename?: 'Collection' - id: string - title: string - articles: { - __typename?: 'ArticleConnection' - totalCount: number - } - } - }> | null - } - campaigns: Array<{ - __typename?: 'ArticleCampaign' - campaign: { - __typename?: 'WritingChallenge' - id: string - name: string - shortHash: string - nameZhHant: string - nameZhHans: string - nameEn: string - } - stage?: { __typename?: 'CampaignStage'; id: string } | null - }> - tags?: Array<{ - __typename?: 'Tag' - id: string - content: string - }> | null - donations: { - __typename?: 'ArticleDonationConnection' - totalCount: number - } - likesReceived: { - __typename?: 'AppreciationConnection' - totalCount: number - } - donationsDialog: { - __typename?: 'ArticleDonationConnection' - totalCount: number - } - } - }> | null - } - } | null -} - -export type MeBookmarkTagsFeedQueryVariables = Exact<{ - after?: InputMaybe -}> - -export type MeBookmarkTagsFeedQuery = { - __typename?: 'Query' - viewer?: { - __typename?: 'User' - id: string - bookmarkedTags: { - __typename?: 'TagConnection' - pageInfo: { - __typename?: 'PageInfo' - startCursor?: string | null - endCursor?: string | null - hasNextPage: boolean - } - edges?: Array<{ - __typename?: 'TagEdge' - cursor: string - node: { - __typename?: 'Tag' - id: string - content: string - isFollower?: boolean | null - } - }> | null - } - } | null -} - -export type RetryPublishMutationVariables = Exact<{ - id: Scalars['ID']['input'] -}> - -export type RetryPublishMutation = { - __typename?: 'Mutation' - retryPublish: { __typename?: 'Draft'; id: string; publishState: PublishState } -} - -export type EditMetaDraftFragment = { - __typename?: 'Draft' - id: string - publishState: PublishState - createdAt: any - updatedAt: any - cover?: string | null - tags?: Array | null - license: ArticleLicenseType - requestForDonation?: string | null - replyToDonator?: string | null - sensitiveByAuthor: boolean - iscnPublish?: boolean | null - canComment: boolean - indentFirstLine: boolean - assets: Array<{ - __typename?: 'Asset' - id: string - type: AssetType - path: string - draft?: boolean | null - uploadURL?: string | null - }> - collections: { - __typename?: 'CollectionConnection' - edges?: Array<{ - __typename?: 'CollectionEdge' - node: { - __typename?: 'Collection' - id: string - title: string - articles: { __typename?: 'ArticleConnection'; totalCount: number } - } - }> | null - } - connections: { - __typename?: 'ArticleConnection' - edges?: Array<{ - __typename?: 'ArticleEdge' - node: { - __typename?: 'Article' - id: string - title: string - slug: string - shortHash: string - state: ArticleState - articleState: ArticleState - author: { - __typename?: 'User' - id: string - userName?: string | null - isBlocking: boolean - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - } - }> | null - } - access: { - __typename?: 'DraftAccess' - type: ArticleAccessType - circle?: { - __typename?: 'Circle' - id: string - name: string - displayName: string - description?: string | null - avatar?: string | null - owner: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - members: { __typename?: 'MemberConnection'; totalCount: number } - works: { __typename?: 'ArticleConnection'; totalCount: number } - prices?: Array<{ - __typename?: 'Price' - amount: number - currency: TransactionCurrency - }> | null - } | null - } - campaigns: Array<{ - __typename?: 'ArticleCampaign' - campaign: { __typename?: 'WritingChallenge'; id: string; name: string } - stage?: { __typename?: 'CampaignStage'; id: string } | null - }> -} - -export type DraftDetailViewerQueryQueryVariables = Exact<{ - collectionsAfter?: InputMaybe -}> - -export type DraftDetailViewerQueryQuery = { - __typename?: 'Query' - viewer?: { - __typename?: 'User' - id: string - displayName?: string | null - avatar?: string | null - campaigns: { - __typename?: 'CampaignConnection' - edges?: Array<{ - __typename?: 'CampaignEdge' - node: { - __typename?: 'WritingChallenge' - id: string - state: CampaignState - name: string - writingPeriod?: { - __typename?: 'DatetimeRange' - start: any - end?: any | null - } | null - stages: Array<{ - __typename?: 'CampaignStage' - id: string - name: string - period?: { - __typename?: 'DatetimeRange' - start: any - end?: any | null - } | null - }> - } - }> | null - } - ownCircles?: Array<{ - __typename?: 'Circle' - id: string - name: string - displayName: string - description?: string | null - avatar?: string | null - owner: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - members: { __typename?: 'MemberConnection'; totalCount: number } - works: { __typename?: 'ArticleConnection'; totalCount: number } - prices?: Array<{ - __typename?: 'Price' - amount: number - currency: TransactionCurrency - }> | null - }> | null - oss: { - __typename?: 'UserOSS' - featureFlags: Array<{ - __typename?: 'UserFeatureFlag' - type: UserFeatureFlagType - }> - } - collections: { - __typename?: 'CollectionConnection' - pageInfo: { - __typename?: 'PageInfo' - hasNextPage: boolean - endCursor?: string | null - } - edges?: Array<{ - __typename?: 'CollectionEdge' - node: { - __typename?: 'Collection' - id: string - title: string - articles: { __typename?: 'ArticleConnection'; totalCount: number } - } - }> | null - } - } | null -} - -export type DraftDetailQueryQueryVariables = Exact<{ - id: Scalars['ID']['input'] -}> - -export type DraftDetailQueryQuery = { - __typename?: 'Query' - node?: - | { __typename?: 'Article'; id: string } - | { __typename?: 'ArticleVersion'; id: string } - | { __typename?: 'Circle'; id: string } - | { __typename?: 'Collection'; id: string } - | { __typename?: 'Comment'; id: string } - | { __typename?: 'CurationChannel'; id: string } - | { - __typename?: 'Draft' - id: string - title?: string | null - publishState: PublishState - content?: string | null - summary?: string | null - summaryCustomized: boolean - indentFirstLine: boolean - createdAt: any - updatedAt: any - cover?: string | null - tags?: Array | null - license: ArticleLicenseType - requestForDonation?: string | null - replyToDonator?: string | null - sensitiveByAuthor: boolean - iscnPublish?: boolean | null - canComment: boolean - campaigns: Array<{ - __typename?: 'ArticleCampaign' - campaign: { - __typename?: 'WritingChallenge' - id: string - name: string - } - stage?: { __typename?: 'CampaignStage'; id: string } | null - }> - access: { - __typename?: 'DraftAccess' - type: ArticleAccessType - circle?: { - __typename?: 'Circle' - id: string - name: string - displayName: string - description?: string | null - avatar?: string | null - owner: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - members: { __typename?: 'MemberConnection'; totalCount: number } - works: { __typename?: 'ArticleConnection'; totalCount: number } - prices?: Array<{ - __typename?: 'Price' - amount: number - currency: TransactionCurrency - }> | null - } | null - } - article?: { - __typename?: 'Article' - id: string - title: string - slug: string - shortHash: string - author: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - } - tags?: Array<{ - __typename?: 'Tag' - id: string - content: string - }> | null - } | null - assets: Array<{ - __typename?: 'Asset' - id: string - type: AssetType - path: string - draft?: boolean | null - uploadURL?: string | null - }> - collections: { - __typename?: 'CollectionConnection' - edges?: Array<{ - __typename?: 'CollectionEdge' - node: { - __typename?: 'Collection' - id: string - title: string - articles: { __typename?: 'ArticleConnection'; totalCount: number } - } - }> | null - } - connections: { - __typename?: 'ArticleConnection' - edges?: Array<{ - __typename?: 'ArticleEdge' - node: { - __typename?: 'Article' - id: string - title: string - slug: string - shortHash: string - state: ArticleState - articleState: ArticleState - author: { - __typename?: 'User' - id: string - userName?: string | null - isBlocking: boolean - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ - __typename?: 'Badge' - type: BadgeType - }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - } - }> | null - } - } - | { __typename?: 'IcymiTopic'; id: string } - | { __typename?: 'Moment'; id: string } - | { __typename?: 'Report'; id: string } - | { __typename?: 'Tag'; id: string } - | { __typename?: 'TopicChannel'; id: string } - | { __typename?: 'User'; id: string } - | { __typename?: 'WritingChallenge'; id: string } - | null -} - -export type DraftAssetsQueryVariables = Exact<{ - id: Scalars['ID']['input'] -}> - -export type DraftAssetsQuery = { - __typename?: 'Query' - node?: - | { __typename?: 'Article'; id: string } - | { __typename?: 'ArticleVersion'; id: string } - | { __typename?: 'Circle'; id: string } - | { __typename?: 'Collection'; id: string } - | { __typename?: 'Comment'; id: string } - | { __typename?: 'CurationChannel'; id: string } - | { - __typename?: 'Draft' - id: string - assets: Array<{ - __typename?: 'Asset' - id: string - type: AssetType - path: string - draft?: boolean | null - uploadURL?: string | null - }> - } - | { __typename?: 'IcymiTopic'; id: string } - | { __typename?: 'Moment'; id: string } - | { __typename?: 'Report'; id: string } - | { __typename?: 'Tag'; id: string } - | { __typename?: 'TopicChannel'; id: string } - | { __typename?: 'User'; id: string } - | { __typename?: 'WritingChallenge'; id: string } - | null -} - -export type SetDraftContentMutationVariables = Exact<{ - id: Scalars['ID']['input'] - title?: InputMaybe - content?: InputMaybe - summary?: InputMaybe - lastUpdatedAt?: InputMaybe -}> - -export type SetDraftContentMutation = { - __typename?: 'Mutation' - putDraft: { - __typename?: 'Draft' - id: string - title?: string | null - content?: string | null - cover?: string | null - updatedAt: any - summary?: string | null - summaryCustomized: boolean - assets: Array<{ - __typename?: 'Asset' - id: string - type: AssetType - path: string - draft?: boolean | null - uploadURL?: string | null - }> - } -} - -export type SetDraftConnectionsMutationVariables = Exact<{ - id: Scalars['ID']['input'] - connections?: InputMaybe< - Array | Scalars['ID']['input'] - > - lastUpdatedAt?: InputMaybe -}> - -export type SetDraftConnectionsMutation = { - __typename?: 'Mutation' - putDraft: { - __typename?: 'Draft' - id: string - publishState: PublishState - createdAt: any - updatedAt: any - cover?: string | null - tags?: Array | null - license: ArticleLicenseType - requestForDonation?: string | null - replyToDonator?: string | null - sensitiveByAuthor: boolean - iscnPublish?: boolean | null - canComment: boolean - indentFirstLine: boolean - assets: Array<{ - __typename?: 'Asset' - id: string - type: AssetType - path: string - draft?: boolean | null - uploadURL?: string | null - }> - collections: { - __typename?: 'CollectionConnection' - edges?: Array<{ - __typename?: 'CollectionEdge' - node: { - __typename?: 'Collection' - id: string - title: string - articles: { __typename?: 'ArticleConnection'; totalCount: number } - } - }> | null - } - connections: { - __typename?: 'ArticleConnection' - edges?: Array<{ - __typename?: 'ArticleEdge' - node: { - __typename?: 'Article' - id: string - title: string - slug: string - shortHash: string - state: ArticleState - articleState: ArticleState - author: { - __typename?: 'User' - id: string - userName?: string | null - isBlocking: boolean - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - } - }> | null - } - access: { - __typename?: 'DraftAccess' - type: ArticleAccessType - circle?: { - __typename?: 'Circle' - id: string - name: string - displayName: string - description?: string | null - avatar?: string | null - owner: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - members: { __typename?: 'MemberConnection'; totalCount: number } - works: { __typename?: 'ArticleConnection'; totalCount: number } - prices?: Array<{ - __typename?: 'Price' - amount: number - currency: TransactionCurrency - }> | null - } | null - } - campaigns: Array<{ - __typename?: 'ArticleCampaign' - campaign: { __typename?: 'WritingChallenge'; id: string; name: string } - stage?: { __typename?: 'CampaignStage'; id: string } | null - }> - } -} - -export type SetDraftCollectionsMutationVariables = Exact<{ - id: Scalars['ID']['input'] - collections?: InputMaybe< - Array | Scalars['ID']['input'] - > - lastUpdatedAt?: InputMaybe -}> - -export type SetDraftCollectionsMutation = { - __typename?: 'Mutation' - putDraft: { - __typename?: 'Draft' - id: string - publishState: PublishState - createdAt: any - updatedAt: any - cover?: string | null - tags?: Array | null - license: ArticleLicenseType - requestForDonation?: string | null - replyToDonator?: string | null - sensitiveByAuthor: boolean - iscnPublish?: boolean | null - canComment: boolean - indentFirstLine: boolean - assets: Array<{ - __typename?: 'Asset' - id: string - type: AssetType - path: string - draft?: boolean | null - uploadURL?: string | null - }> - collections: { - __typename?: 'CollectionConnection' - edges?: Array<{ - __typename?: 'CollectionEdge' - node: { - __typename?: 'Collection' - id: string - title: string - articles: { __typename?: 'ArticleConnection'; totalCount: number } - } - }> | null - } - connections: { - __typename?: 'ArticleConnection' - edges?: Array<{ - __typename?: 'ArticleEdge' - node: { - __typename?: 'Article' - id: string - title: string - slug: string - shortHash: string - state: ArticleState - articleState: ArticleState - author: { - __typename?: 'User' - id: string - userName?: string | null - isBlocking: boolean - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - } - }> | null - } - access: { - __typename?: 'DraftAccess' - type: ArticleAccessType - circle?: { - __typename?: 'Circle' - id: string - name: string - displayName: string - description?: string | null - avatar?: string | null - owner: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - members: { __typename?: 'MemberConnection'; totalCount: number } - works: { __typename?: 'ArticleConnection'; totalCount: number } - prices?: Array<{ - __typename?: 'Price' - amount: number - currency: TransactionCurrency - }> | null - } | null - } - campaigns: Array<{ - __typename?: 'ArticleCampaign' - campaign: { __typename?: 'WritingChallenge'; id: string; name: string } - stage?: { __typename?: 'CampaignStage'; id: string } | null - }> - } -} - -export type SetDraftCoverMutationVariables = Exact<{ - id: Scalars['ID']['input'] - cover?: InputMaybe - lastUpdatedAt?: InputMaybe -}> - -export type SetDraftCoverMutation = { - __typename?: 'Mutation' - putDraft: { - __typename?: 'Draft' - id: string - publishState: PublishState - createdAt: any - updatedAt: any - cover?: string | null - tags?: Array | null - license: ArticleLicenseType - requestForDonation?: string | null - replyToDonator?: string | null - sensitiveByAuthor: boolean - iscnPublish?: boolean | null - canComment: boolean - indentFirstLine: boolean - assets: Array<{ - __typename?: 'Asset' - id: string - type: AssetType - path: string - draft?: boolean | null - uploadURL?: string | null - }> - collections: { - __typename?: 'CollectionConnection' - edges?: Array<{ - __typename?: 'CollectionEdge' - node: { - __typename?: 'Collection' - id: string - title: string - articles: { __typename?: 'ArticleConnection'; totalCount: number } - } - }> | null - } - connections: { - __typename?: 'ArticleConnection' - edges?: Array<{ - __typename?: 'ArticleEdge' - node: { - __typename?: 'Article' - id: string - title: string - slug: string - shortHash: string - state: ArticleState - articleState: ArticleState - author: { - __typename?: 'User' - id: string - userName?: string | null - isBlocking: boolean - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - } - }> | null - } - access: { - __typename?: 'DraftAccess' - type: ArticleAccessType - circle?: { - __typename?: 'Circle' - id: string - name: string - displayName: string - description?: string | null - avatar?: string | null - owner: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - members: { __typename?: 'MemberConnection'; totalCount: number } - works: { __typename?: 'ArticleConnection'; totalCount: number } - prices?: Array<{ - __typename?: 'Price' - amount: number - currency: TransactionCurrency - }> | null - } | null - } - campaigns: Array<{ - __typename?: 'ArticleCampaign' - campaign: { __typename?: 'WritingChallenge'; id: string; name: string } - stage?: { __typename?: 'CampaignStage'; id: string } | null - }> - } -} - -export type SetDraftTagsMutationVariables = Exact<{ - id: Scalars['ID']['input'] - tags: Array | Scalars['String']['input'] - lastUpdatedAt?: InputMaybe -}> - -export type SetDraftTagsMutation = { - __typename?: 'Mutation' - putDraft: { - __typename?: 'Draft' - id: string - publishState: PublishState - createdAt: any - updatedAt: any - cover?: string | null - tags?: Array | null - license: ArticleLicenseType - requestForDonation?: string | null - replyToDonator?: string | null - sensitiveByAuthor: boolean - iscnPublish?: boolean | null - canComment: boolean - indentFirstLine: boolean - assets: Array<{ - __typename?: 'Asset' - id: string - type: AssetType - path: string - draft?: boolean | null - uploadURL?: string | null - }> - collections: { - __typename?: 'CollectionConnection' - edges?: Array<{ - __typename?: 'CollectionEdge' - node: { - __typename?: 'Collection' - id: string - title: string - articles: { __typename?: 'ArticleConnection'; totalCount: number } - } - }> | null - } - connections: { - __typename?: 'ArticleConnection' - edges?: Array<{ - __typename?: 'ArticleEdge' - node: { - __typename?: 'Article' - id: string - title: string - slug: string - shortHash: string - state: ArticleState - articleState: ArticleState - author: { - __typename?: 'User' - id: string - userName?: string | null - isBlocking: boolean - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - } - }> | null - } - access: { - __typename?: 'DraftAccess' - type: ArticleAccessType - circle?: { - __typename?: 'Circle' - id: string - name: string - displayName: string - description?: string | null - avatar?: string | null - owner: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - members: { __typename?: 'MemberConnection'; totalCount: number } - works: { __typename?: 'ArticleConnection'; totalCount: number } - prices?: Array<{ - __typename?: 'Price' - amount: number - currency: TransactionCurrency - }> | null - } | null - } - campaigns: Array<{ - __typename?: 'ArticleCampaign' - campaign: { __typename?: 'WritingChallenge'; id: string; name: string } - stage?: { __typename?: 'CampaignStage'; id: string } | null - }> - } -} - -export type SetSupportRequestReplyMutationVariables = Exact<{ - id: Scalars['ID']['input'] - requestForDonation?: InputMaybe< - Scalars['requestForDonation_String_maxLength_140']['input'] - > - replyToDonator?: InputMaybe< - Scalars['replyToDonator_String_maxLength_140']['input'] - > - lastUpdatedAt?: InputMaybe -}> - -export type SetSupportRequestReplyMutation = { - __typename?: 'Mutation' - putDraft: { - __typename?: 'Draft' - id: string - publishState: PublishState - createdAt: any - updatedAt: any - cover?: string | null - tags?: Array | null - license: ArticleLicenseType - requestForDonation?: string | null - replyToDonator?: string | null - sensitiveByAuthor: boolean - iscnPublish?: boolean | null - canComment: boolean - indentFirstLine: boolean - assets: Array<{ - __typename?: 'Asset' - id: string - type: AssetType - path: string - draft?: boolean | null - uploadURL?: string | null - }> - collections: { - __typename?: 'CollectionConnection' - edges?: Array<{ - __typename?: 'CollectionEdge' - node: { - __typename?: 'Collection' - id: string - title: string - articles: { __typename?: 'ArticleConnection'; totalCount: number } - } - }> | null - } - connections: { - __typename?: 'ArticleConnection' - edges?: Array<{ - __typename?: 'ArticleEdge' - node: { - __typename?: 'Article' - id: string - title: string - slug: string - shortHash: string - state: ArticleState - articleState: ArticleState - author: { - __typename?: 'User' - id: string - userName?: string | null - isBlocking: boolean - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - } - }> | null - } - access: { - __typename?: 'DraftAccess' - type: ArticleAccessType - circle?: { - __typename?: 'Circle' - id: string - name: string - displayName: string - description?: string | null - avatar?: string | null - owner: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - members: { __typename?: 'MemberConnection'; totalCount: number } - works: { __typename?: 'ArticleConnection'; totalCount: number } - prices?: Array<{ - __typename?: 'Price' - amount: number - currency: TransactionCurrency - }> | null - } | null - } - campaigns: Array<{ - __typename?: 'ArticleCampaign' - campaign: { __typename?: 'WritingChallenge'; id: string; name: string } - stage?: { __typename?: 'CampaignStage'; id: string } | null - }> - } -} - -export type SetDraftSensitiveByAuthorMutationVariables = Exact<{ - id: Scalars['ID']['input'] - sensitiveByAuthor?: InputMaybe - lastUpdatedAt?: InputMaybe -}> - -export type SetDraftSensitiveByAuthorMutation = { - __typename?: 'Mutation' - putDraft: { - __typename?: 'Draft' - id: string - publishState: PublishState - createdAt: any - updatedAt: any - cover?: string | null - tags?: Array | null - license: ArticleLicenseType - requestForDonation?: string | null - replyToDonator?: string | null - sensitiveByAuthor: boolean - iscnPublish?: boolean | null - canComment: boolean - indentFirstLine: boolean - assets: Array<{ - __typename?: 'Asset' - id: string - type: AssetType - path: string - draft?: boolean | null - uploadURL?: string | null - }> - collections: { - __typename?: 'CollectionConnection' - edges?: Array<{ - __typename?: 'CollectionEdge' - node: { - __typename?: 'Collection' - id: string - title: string - articles: { __typename?: 'ArticleConnection'; totalCount: number } - } - }> | null - } - connections: { - __typename?: 'ArticleConnection' - edges?: Array<{ - __typename?: 'ArticleEdge' - node: { - __typename?: 'Article' - id: string - title: string - slug: string - shortHash: string - state: ArticleState - articleState: ArticleState - author: { - __typename?: 'User' - id: string - userName?: string | null - isBlocking: boolean - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - } - }> | null - } - access: { - __typename?: 'DraftAccess' - type: ArticleAccessType - circle?: { - __typename?: 'Circle' - id: string - name: string - displayName: string - description?: string | null - avatar?: string | null - owner: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - members: { __typename?: 'MemberConnection'; totalCount: number } - works: { __typename?: 'ArticleConnection'; totalCount: number } - prices?: Array<{ - __typename?: 'Price' - amount: number - currency: TransactionCurrency - }> | null - } | null - } - campaigns: Array<{ - __typename?: 'ArticleCampaign' - campaign: { __typename?: 'WritingChallenge'; id: string; name: string } - stage?: { __typename?: 'CampaignStage'; id: string } | null - }> - } -} - -export type SetDraftPublishIscnMutationVariables = Exact<{ - id: Scalars['ID']['input'] - iscnPublish?: InputMaybe - lastUpdatedAt?: InputMaybe -}> - -export type SetDraftPublishIscnMutation = { - __typename?: 'Mutation' - putDraft: { - __typename?: 'Draft' - id: string - publishState: PublishState - createdAt: any - updatedAt: any - cover?: string | null - tags?: Array | null - license: ArticleLicenseType - requestForDonation?: string | null - replyToDonator?: string | null - sensitiveByAuthor: boolean - iscnPublish?: boolean | null - canComment: boolean - indentFirstLine: boolean - assets: Array<{ - __typename?: 'Asset' - id: string - type: AssetType - path: string - draft?: boolean | null - uploadURL?: string | null - }> - collections: { - __typename?: 'CollectionConnection' - edges?: Array<{ - __typename?: 'CollectionEdge' - node: { - __typename?: 'Collection' - id: string - title: string - articles: { __typename?: 'ArticleConnection'; totalCount: number } - } - }> | null - } - connections: { - __typename?: 'ArticleConnection' - edges?: Array<{ - __typename?: 'ArticleEdge' - node: { - __typename?: 'Article' - id: string - title: string - slug: string - shortHash: string - state: ArticleState - articleState: ArticleState - author: { - __typename?: 'User' - id: string - userName?: string | null - isBlocking: boolean - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - } - }> | null - } - access: { - __typename?: 'DraftAccess' - type: ArticleAccessType - circle?: { - __typename?: 'Circle' - id: string - name: string - displayName: string - description?: string | null - avatar?: string | null - owner: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - members: { __typename?: 'MemberConnection'; totalCount: number } - works: { __typename?: 'ArticleConnection'; totalCount: number } - prices?: Array<{ - __typename?: 'Price' - amount: number - currency: TransactionCurrency - }> | null - } | null - } - campaigns: Array<{ - __typename?: 'ArticleCampaign' - campaign: { __typename?: 'WritingChallenge'; id: string; name: string } - stage?: { __typename?: 'CampaignStage'; id: string } | null - }> - } -} - -export type SetDraftCanCommentMutationVariables = Exact<{ - id: Scalars['ID']['input'] - canComment?: InputMaybe - lastUpdatedAt?: InputMaybe -}> - -export type SetDraftCanCommentMutation = { - __typename?: 'Mutation' - putDraft: { - __typename?: 'Draft' - id: string - publishState: PublishState - createdAt: any - updatedAt: any - cover?: string | null - tags?: Array | null - license: ArticleLicenseType - requestForDonation?: string | null - replyToDonator?: string | null - sensitiveByAuthor: boolean - iscnPublish?: boolean | null - canComment: boolean - indentFirstLine: boolean - assets: Array<{ - __typename?: 'Asset' - id: string - type: AssetType - path: string - draft?: boolean | null - uploadURL?: string | null - }> - collections: { - __typename?: 'CollectionConnection' - edges?: Array<{ - __typename?: 'CollectionEdge' - node: { - __typename?: 'Collection' - id: string - title: string - articles: { __typename?: 'ArticleConnection'; totalCount: number } - } - }> | null - } - connections: { - __typename?: 'ArticleConnection' - edges?: Array<{ - __typename?: 'ArticleEdge' - node: { - __typename?: 'Article' - id: string - title: string - slug: string - shortHash: string - state: ArticleState - articleState: ArticleState - author: { - __typename?: 'User' - id: string - userName?: string | null - isBlocking: boolean - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - } - }> | null - } - access: { - __typename?: 'DraftAccess' - type: ArticleAccessType - circle?: { - __typename?: 'Circle' - id: string - name: string - displayName: string - description?: string | null - avatar?: string | null - owner: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - members: { __typename?: 'MemberConnection'; totalCount: number } - works: { __typename?: 'ArticleConnection'; totalCount: number } - prices?: Array<{ - __typename?: 'Price' - amount: number - currency: TransactionCurrency - }> | null - } | null - } - campaigns: Array<{ - __typename?: 'ArticleCampaign' - campaign: { __typename?: 'WritingChallenge'; id: string; name: string } - stage?: { __typename?: 'CampaignStage'; id: string } | null - }> - } -} - -export type SetDraftIndentMutationVariables = Exact<{ - id: Scalars['ID']['input'] - indented?: InputMaybe - lastUpdatedAt?: InputMaybe -}> - -export type SetDraftIndentMutation = { - __typename?: 'Mutation' - putDraft: { - __typename?: 'Draft' - id: string - publishState: PublishState - createdAt: any - updatedAt: any - cover?: string | null - tags?: Array | null - license: ArticleLicenseType - requestForDonation?: string | null - replyToDonator?: string | null - sensitiveByAuthor: boolean - iscnPublish?: boolean | null - canComment: boolean - indentFirstLine: boolean - assets: Array<{ - __typename?: 'Asset' - id: string - type: AssetType - path: string - draft?: boolean | null - uploadURL?: string | null - }> - collections: { - __typename?: 'CollectionConnection' - edges?: Array<{ - __typename?: 'CollectionEdge' - node: { - __typename?: 'Collection' - id: string - title: string - articles: { __typename?: 'ArticleConnection'; totalCount: number } - } - }> | null - } - connections: { - __typename?: 'ArticleConnection' - edges?: Array<{ - __typename?: 'ArticleEdge' - node: { - __typename?: 'Article' - id: string - title: string - slug: string - shortHash: string - state: ArticleState - articleState: ArticleState - author: { - __typename?: 'User' - id: string - userName?: string | null - isBlocking: boolean - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - } - }> | null - } - access: { - __typename?: 'DraftAccess' - type: ArticleAccessType - circle?: { - __typename?: 'Circle' - id: string - name: string - displayName: string - description?: string | null - avatar?: string | null - owner: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - members: { __typename?: 'MemberConnection'; totalCount: number } - works: { __typename?: 'ArticleConnection'; totalCount: number } - prices?: Array<{ - __typename?: 'Price' - amount: number - currency: TransactionCurrency - }> | null - } | null - } - campaigns: Array<{ - __typename?: 'ArticleCampaign' - campaign: { __typename?: 'WritingChallenge'; id: string; name: string } - stage?: { __typename?: 'CampaignStage'; id: string } | null - }> - } -} - -export type SetDraftAccessMutationVariables = Exact<{ - id: Scalars['ID']['input'] - circle?: InputMaybe - accessType?: InputMaybe - license?: InputMaybe - lastUpdatedAt?: InputMaybe -}> - -export type SetDraftAccessMutation = { - __typename?: 'Mutation' - putDraft: { - __typename?: 'Draft' - id: string - publishState: PublishState - createdAt: any - updatedAt: any - cover?: string | null - tags?: Array | null - license: ArticleLicenseType - requestForDonation?: string | null - replyToDonator?: string | null - sensitiveByAuthor: boolean - iscnPublish?: boolean | null - canComment: boolean - indentFirstLine: boolean - assets: Array<{ - __typename?: 'Asset' - id: string - type: AssetType - path: string - draft?: boolean | null - uploadURL?: string | null - }> - collections: { - __typename?: 'CollectionConnection' - edges?: Array<{ - __typename?: 'CollectionEdge' - node: { - __typename?: 'Collection' - id: string - title: string - articles: { __typename?: 'ArticleConnection'; totalCount: number } - } - }> | null - } - connections: { - __typename?: 'ArticleConnection' - edges?: Array<{ - __typename?: 'ArticleEdge' - node: { - __typename?: 'Article' - id: string - title: string - slug: string - shortHash: string - state: ArticleState - articleState: ArticleState - author: { - __typename?: 'User' - id: string - userName?: string | null - isBlocking: boolean - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - } - }> | null - } - access: { - __typename?: 'DraftAccess' - type: ArticleAccessType - circle?: { - __typename?: 'Circle' - id: string - name: string - displayName: string - description?: string | null - avatar?: string | null - owner: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - members: { __typename?: 'MemberConnection'; totalCount: number } - works: { __typename?: 'ArticleConnection'; totalCount: number } - prices?: Array<{ - __typename?: 'Price' - amount: number - currency: TransactionCurrency - }> | null - } | null - } - campaigns: Array<{ - __typename?: 'ArticleCampaign' - campaign: { __typename?: 'WritingChallenge'; id: string; name: string } - stage?: { __typename?: 'CampaignStage'; id: string } | null - }> - } -} - -export type SetDraftCampaignMutationVariables = Exact<{ - id: Scalars['ID']['input'] - campaigns?: InputMaybe | ArticleCampaignInput> - isReset: Scalars['Boolean']['input'] - lastUpdatedAt?: InputMaybe -}> - -export type SetDraftCampaignMutation = { - __typename?: 'Mutation' - setDraftCampaign?: { - __typename?: 'Draft' - id: string - publishState: PublishState - createdAt: any - updatedAt: any - cover?: string | null - tags?: Array | null - license: ArticleLicenseType - requestForDonation?: string | null - replyToDonator?: string | null - sensitiveByAuthor: boolean - iscnPublish?: boolean | null - canComment: boolean - indentFirstLine: boolean - assets: Array<{ - __typename?: 'Asset' - id: string - type: AssetType - path: string - draft?: boolean | null - uploadURL?: string | null - }> - collections: { - __typename?: 'CollectionConnection' - edges?: Array<{ - __typename?: 'CollectionEdge' - node: { - __typename?: 'Collection' - id: string - title: string - articles: { __typename?: 'ArticleConnection'; totalCount: number } - } - }> | null - } - connections: { - __typename?: 'ArticleConnection' - edges?: Array<{ - __typename?: 'ArticleEdge' - node: { - __typename?: 'Article' - id: string - title: string - slug: string - shortHash: string - state: ArticleState - articleState: ArticleState - author: { - __typename?: 'User' - id: string - userName?: string | null - isBlocking: boolean - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - } - }> | null - } - access: { - __typename?: 'DraftAccess' - type: ArticleAccessType - circle?: { - __typename?: 'Circle' - id: string - name: string - displayName: string - description?: string | null - avatar?: string | null - owner: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - members: { __typename?: 'MemberConnection'; totalCount: number } - works: { __typename?: 'ArticleConnection'; totalCount: number } - prices?: Array<{ - __typename?: 'Price' - amount: number - currency: TransactionCurrency - }> | null - } | null - } - campaigns: Array<{ - __typename?: 'ArticleCampaign' - campaign: { __typename?: 'WritingChallenge'; id: string; name: string } - stage?: { __typename?: 'CampaignStage'; id: string } | null - }> - } - resetDraftCampaign?: { - __typename?: 'Draft' - id: string - publishState: PublishState - createdAt: any - updatedAt: any - cover?: string | null - tags?: Array | null - license: ArticleLicenseType - requestForDonation?: string | null - replyToDonator?: string | null - sensitiveByAuthor: boolean - iscnPublish?: boolean | null - canComment: boolean - indentFirstLine: boolean - assets: Array<{ - __typename?: 'Asset' - id: string - type: AssetType - path: string - draft?: boolean | null - uploadURL?: string | null - }> - collections: { - __typename?: 'CollectionConnection' - edges?: Array<{ - __typename?: 'CollectionEdge' - node: { - __typename?: 'Collection' - id: string - title: string - articles: { __typename?: 'ArticleConnection'; totalCount: number } - } - }> | null - } - connections: { - __typename?: 'ArticleConnection' - edges?: Array<{ - __typename?: 'ArticleEdge' - node: { - __typename?: 'Article' - id: string - title: string - slug: string - shortHash: string - state: ArticleState - articleState: ArticleState - author: { - __typename?: 'User' - id: string - userName?: string | null - isBlocking: boolean - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - } - }> | null - } - access: { - __typename?: 'DraftAccess' - type: ArticleAccessType - circle?: { - __typename?: 'Circle' - id: string - name: string - displayName: string - description?: string | null - avatar?: string | null - owner: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - members: { __typename?: 'MemberConnection'; totalCount: number } - works: { __typename?: 'ArticleConnection'; totalCount: number } - prices?: Array<{ - __typename?: 'Price' - amount: number - currency: TransactionCurrency - }> | null - } | null - } - campaigns: Array<{ - __typename?: 'ArticleCampaign' - campaign: { __typename?: 'WritingChallenge'; id: string; name: string } - stage?: { __typename?: 'CampaignStage'; id: string } | null - }> - } -} - -export type DigestAppreciationFragment = { - __typename?: 'Appreciation' - amount: number - purpose: AppreciationPurpose - content: string - sender?: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } | null - recipient: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - target?: { - __typename?: 'Article' - id: string - title: string - slug: string - shortHash: string - articleState: ArticleState - author: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - } | null -} - -export type MeCommentsQueryVariables = Exact<{ - id: Scalars['ID']['input'] - after?: InputMaybe -}> - -export type MeCommentsQuery = { - __typename?: 'Query' - node?: - | { __typename?: 'Article' } - | { __typename?: 'ArticleVersion' } - | { __typename?: 'Circle' } - | { __typename?: 'Collection' } - | { __typename?: 'Comment' } - | { __typename?: 'CurationChannel' } - | { __typename?: 'Draft' } - | { __typename?: 'IcymiTopic' } - | { __typename?: 'Moment' } - | { __typename?: 'Report' } - | { __typename?: 'Tag' } - | { __typename?: 'TopicChannel' } - | { - __typename?: 'User' - id: string - commentedArticles: { - __typename?: 'ArticleConnection' - pageInfo: { - __typename?: 'PageInfo' - startCursor?: string | null - endCursor?: string | null - hasNextPage: boolean - } - edges?: Array<{ - __typename?: 'ArticleEdge' - cursor: string - node: { - __typename?: 'Article' - id: string - title: string - slug: string - shortHash: string - articleState: ArticleState - author: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ - __typename?: 'Badge' - type: BadgeType - }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - comments: { - __typename?: 'CommentConnection' - edges?: Array<{ - __typename?: 'CommentEdge' - cursor: string - node: { - __typename?: 'Comment' - id: string - content?: string | null - state: CommentState - type: CommentType - parentComment?: { - __typename?: 'Comment' - id: string - } | null - } - }> | null - } - } - }> | null - } - } - | { __typename?: 'WritingChallenge' } - | null -} - -export type MeLikesReceivedQueryVariables = Exact<{ - after?: InputMaybe -}> - -export type MeLikesReceivedQuery = { - __typename?: 'Query' - viewer?: { - __typename?: 'User' - id: string - activity: { - __typename?: 'UserActivity' - likesReceived: { - __typename?: 'AppreciationConnection' - pageInfo: { - __typename?: 'PageInfo' - startCursor?: string | null - endCursor?: string | null - hasNextPage: boolean - } - edges?: Array<{ - __typename?: 'AppreciationEdge' - cursor: string - node: { - __typename?: 'Appreciation' - amount: number - purpose: AppreciationPurpose - content: string - sender?: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } | null - recipient: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - target?: { - __typename?: 'Article' - id: string - title: string - slug: string - shortHash: string - articleState: ArticleState - author: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ - __typename?: 'Badge' - type: BadgeType - }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - } | null - } - }> | null - } - } - } | null -} - -export type MeLikesSentQueryVariables = Exact<{ - after?: InputMaybe -}> - -export type MeLikesSentQuery = { - __typename?: 'Query' - viewer?: { - __typename?: 'User' - id: string - activity: { - __typename?: 'UserActivity' - likesSent: { - __typename?: 'AppreciationConnection' - pageInfo: { - __typename?: 'PageInfo' - startCursor?: string | null - endCursor?: string | null - hasNextPage: boolean - } - edges?: Array<{ - __typename?: 'AppreciationEdge' - cursor: string - node: { - __typename?: 'Appreciation' - amount: number - purpose: AppreciationPurpose - content: string - sender?: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } | null - recipient: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - target?: { - __typename?: 'Article' - id: string - title: string - slug: string - shortHash: string - articleState: ArticleState - author: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ - __typename?: 'Badge' - type: BadgeType - }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - } | null - } - }> | null - } - } - } | null -} - -export type MeHistoryFeedQueryVariables = Exact<{ - after?: InputMaybe -}> - -export type MeHistoryFeedQuery = { - __typename?: 'Query' - viewer?: { - __typename?: 'User' - id: string - activity: { - __typename?: 'UserActivity' - history: { - __typename?: 'ReadHistoryConnection' - pageInfo: { - __typename?: 'PageInfo' - startCursor?: string | null - endCursor?: string | null - hasNextPage: boolean - } - edges?: Array<{ - __typename?: 'ReadHistoryEdge' - cursor: string - node: { - __typename?: 'ReadHistory' - article: { - __typename?: 'Article' - id: string - title: string - slug: string - shortHash: string - articleState: ArticleState - author: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ - __typename?: 'Badge' - type: BadgeType - }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - } - } - }> | null - } - } - } | null -} - -export type ClearReadHistoryMutationVariables = Exact<{ [key: string]: never }> - -export type ClearReadHistoryMutation = { - __typename?: 'Mutation' - clearReadHistory: { - __typename?: 'User' - activity: { - __typename?: 'UserActivity' - history: { __typename?: 'ReadHistoryConnection'; totalCount: number } - } - } -} - -export type MeNotificationsQueryVariables = Exact<{ - after?: InputMaybe -}> - -export type MeNotificationsQuery = { - __typename?: 'Query' - viewer?: { - __typename?: 'User' - id: string - notices: { - __typename?: 'NoticeConnection' - pageInfo: { - __typename?: 'PageInfo' - startCursor?: string | null - endCursor?: string | null - hasNextPage: boolean - } - edges?: Array<{ - __typename?: 'NoticeEdge' - cursor: string - node: - | { - __typename: 'ArticleArticleNotice' - id: string - createdAt: any - unread: boolean - articleArticleNoticeType: ArticleArticleNoticeType - actors?: Array<{ - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ - __typename?: 'Badge' - type: BadgeType - }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - }> | null - article: { - __typename?: 'Article' - id: string - title: string - slug: string - shortHash: string - summary: string - articleState: ArticleState - author: { - __typename?: 'User' - id: string - userName?: string | null - } - } - collection: { - __typename?: 'Article' - id: string - summary: string - title: string - slug: string - shortHash: string - articleState: ArticleState - author: { - __typename?: 'User' - id: string - userName?: string | null - } - } - } - | { - __typename: 'ArticleNotice' - id: string - createdAt: any - unread: boolean - articleNoticeType: ArticleNoticeType - actors?: Array<{ - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ - __typename?: 'Badge' - type: BadgeType - }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - }> | null - article: { - __typename?: 'Article' - id: string - summary: string - title: string - slug: string - shortHash: string - articleState: ArticleState - author: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { - __typename?: 'UserStatus' - state: UserState - } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ - __typename?: 'Badge' - type: BadgeType - }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - access: { - __typename?: 'ArticleAccess' - circle?: { - __typename?: 'Circle' - id: string - name: string - displayName: string - } | null - } - } - entities: Array< - | { __typename?: 'Article'; id: string } - | { __typename?: 'ArticleVersion'; id: string } - | { __typename?: 'Circle'; id: string } - | { __typename?: 'Collection'; id: string } - | { __typename?: 'Comment'; id: string } - | { __typename?: 'CurationChannel'; id: string } - | { __typename?: 'Draft'; id: string } - | { __typename?: 'IcymiTopic'; id: string } - | { __typename?: 'Moment'; id: string } - | { __typename?: 'Report'; id: string } - | { __typename?: 'Tag'; id: string } - | { __typename?: 'TopicChannel'; id: string } - | { __typename?: 'User'; id: string } - | { __typename?: 'WritingChallenge'; id: string } - > - } - | { - __typename: 'CampaignArticleNotice' - id: string - createdAt: any - unread: boolean - campaignArticleNoticeType: CampaignArticleNoticeType - actors?: Array<{ - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ - __typename?: 'Badge' - type: BadgeType - }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - }> | null - campaign: { - __typename?: 'WritingChallenge' - id: string - shortHash: string - } - article: { - __typename?: 'Article' - id: string - summary: string - title: string - slug: string - shortHash: string - articleState: ArticleState - author: { - __typename?: 'User' - id: string - userName?: string | null - } - } - } - | { - __typename: 'CircleNotice' - id: string - createdAt: any - unread: boolean - circleNoticeType: CircleNoticeType - actors?: Array<{ - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - isFollower: boolean - isFollowee: boolean - status?: { __typename?: 'UserStatus'; state: UserState } | null - info: { - __typename?: 'UserInfo' - description?: string | null - badges?: Array<{ - __typename?: 'Badge' - type: BadgeType - }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - liker: { __typename?: 'Liker'; civicLiker: boolean } - }> | null - circle: { - __typename?: 'Circle' - id: string - name: string - displayName: string - description?: string | null - avatar?: string | null - invitedBy?: { - __typename?: 'Invitation' - id: string - freePeriod: number - } | null - owner: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { - __typename?: 'UserStatus' - state: UserState - } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ - __typename?: 'Badge' - type: BadgeType - }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - members: { __typename?: 'MemberConnection'; totalCount: number } - works: { __typename?: 'ArticleConnection'; totalCount: number } - prices?: Array<{ - __typename?: 'Price' - amount: number - currency: TransactionCurrency - }> | null - } - comments?: Array<{ - __typename?: 'Comment' - id: string - type: CommentType - content?: string | null - state: CommentState - parentComment?: { __typename?: 'Comment'; id: string } | null - node: - | { - __typename?: 'Article' - id: string - title: string - slug: string - shortHash: string - articleState: ArticleState - author: { - __typename?: 'User' - id: string - userName?: string | null - } - } - | { __typename?: 'ArticleVersion' } - | { __typename?: 'Circle'; id: string; name: string } - | { __typename?: 'Collection' } - | { __typename?: 'Comment' } - | { __typename?: 'CurationChannel' } - | { __typename?: 'Draft' } - | { __typename?: 'IcymiTopic' } - | { - __typename?: 'Moment' - id: string - shortHash: string - momentState: MomentState - } - | { __typename?: 'Report' } - | { __typename?: 'Tag' } - | { __typename?: 'TopicChannel' } - | { __typename?: 'User' } - | { __typename?: 'WritingChallenge' } - comments: { - __typename?: 'CommentConnection' - totalCount: number - } - communityWatchAction?: { - __typename?: 'CommunityWatchAction' - uuid: string - } | null - author: { __typename?: 'User'; id: string; isBlocked: boolean } - }> | null - replies?: Array<{ - __typename?: 'Comment' - id: string - type: CommentType - content?: string | null - state: CommentState - parentComment?: { __typename?: 'Comment'; id: string } | null - author: { __typename?: 'User'; id: string; isBlocked: boolean } - replyTo?: { - __typename?: 'Comment' - author: { __typename?: 'User'; id: string } - } | null - node: - | { - __typename?: 'Article' - id: string - title: string - slug: string - shortHash: string - articleState: ArticleState - author: { - __typename?: 'User' - id: string - userName?: string | null - } - } - | { __typename?: 'ArticleVersion' } - | { __typename?: 'Circle'; id: string; name: string } - | { __typename?: 'Collection' } - | { __typename?: 'Comment' } - | { __typename?: 'CurationChannel' } - | { __typename?: 'Draft' } - | { __typename?: 'IcymiTopic' } - | { - __typename?: 'Moment' - id: string - shortHash: string - momentState: MomentState - } - | { __typename?: 'Report' } - | { __typename?: 'Tag' } - | { __typename?: 'TopicChannel' } - | { __typename?: 'User' } - | { __typename?: 'WritingChallenge' } - comments: { - __typename?: 'CommentConnection' - totalCount: number - } - communityWatchAction?: { - __typename?: 'CommunityWatchAction' - uuid: string - } | null - }> | null - mentions?: Array<{ - __typename?: 'Comment' - id: string - type: CommentType - content?: string | null - state: CommentState - parentComment?: { __typename?: 'Comment'; id: string } | null - node: - | { - __typename?: 'Article' - id: string - title: string - slug: string - shortHash: string - articleState: ArticleState - author: { - __typename?: 'User' - id: string - userName?: string | null - } - } - | { __typename?: 'ArticleVersion' } - | { __typename?: 'Circle'; id: string; name: string } - | { __typename?: 'Collection' } - | { __typename?: 'Comment' } - | { __typename?: 'CurationChannel' } - | { __typename?: 'Draft' } - | { __typename?: 'IcymiTopic' } - | { - __typename?: 'Moment' - id: string - shortHash: string - momentState: MomentState - } - | { __typename?: 'Report' } - | { __typename?: 'Tag' } - | { __typename?: 'TopicChannel' } - | { __typename?: 'User' } - | { __typename?: 'WritingChallenge' } - comments: { - __typename?: 'CommentConnection' - totalCount: number - } - communityWatchAction?: { - __typename?: 'CommunityWatchAction' - uuid: string - } | null - author: { __typename?: 'User'; id: string; isBlocked: boolean } - }> | null - } - | { - __typename: 'CollectionNotice' - id: string - createdAt: any - unread: boolean - actors?: Array<{ - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ - __typename?: 'Badge' - type: BadgeType - }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - }> | null - collection: { - __typename?: 'Collection' - id: string - title: string - author: { - __typename?: 'User' - id: string - userName?: string | null - } - } - } - | { - __typename: 'CommentCommentNotice' - id: string - createdAt: any - unread: boolean - commentCommentNoticeType: CommentCommentNoticeType - actors?: Array<{ - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ - __typename?: 'Badge' - type: BadgeType - }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - }> | null - comment: { - __typename?: 'Comment' - id: string - state: CommentState - type: CommentType - content?: string | null - node: - | { - __typename?: 'Article' - id: string - title: string - slug: string - shortHash: string - articleState: ArticleState - author: { - __typename?: 'User' - id: string - userName?: string | null - } - } - | { __typename?: 'ArticleVersion' } - | { __typename?: 'Circle'; id: string; name: string } - | { __typename?: 'Collection' } - | { __typename?: 'Comment' } - | { __typename?: 'CurationChannel' } - | { __typename?: 'Draft' } - | { __typename?: 'IcymiTopic' } - | { - __typename?: 'Moment' - id: string - shortHash: string - momentState: MomentState - } - | { __typename?: 'Report' } - | { __typename?: 'Tag' } - | { __typename?: 'TopicChannel' } - | { __typename?: 'User' } - | { __typename?: 'WritingChallenge' } - parentComment?: { __typename?: 'Comment'; id: string } | null - comments: { - __typename?: 'CommentConnection' - totalCount: number - } - communityWatchAction?: { - __typename?: 'CommunityWatchAction' - uuid: string - } | null - author: { __typename?: 'User'; id: string; isBlocked: boolean } - } - reply: { - __typename?: 'Comment' - id: string - state: CommentState - type: CommentType - content?: string | null - node: - | { - __typename?: 'Article' - id: string - title: string - slug: string - shortHash: string - summary: string - articleState: ArticleState - author: { - __typename?: 'User' - id: string - userName?: string | null - } - } - | { __typename?: 'ArticleVersion' } - | { - __typename?: 'Circle' - id: string - name: string - displayName: string - } - | { __typename?: 'Collection' } - | { __typename?: 'Comment' } - | { __typename?: 'CurationChannel' } - | { __typename?: 'Draft' } - | { __typename?: 'IcymiTopic' } - | { - __typename?: 'Moment' - id: string - shortHash: string - momentState: MomentState - } - | { __typename?: 'Report' } - | { __typename?: 'Tag' } - | { __typename?: 'TopicChannel' } - | { __typename?: 'User' } - | { __typename?: 'WritingChallenge' } - parentComment?: { __typename?: 'Comment'; id: string } | null - comments: { - __typename?: 'CommentConnection' - totalCount: number - } - communityWatchAction?: { - __typename?: 'CommunityWatchAction' - uuid: string - } | null - author: { __typename?: 'User'; id: string; isBlocked: boolean } - } - } - | { - __typename: 'CommentNotice' - id: string - createdAt: any - unread: boolean - commentNoticeType: CommentNoticeType - actors?: Array<{ - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ - __typename?: 'Badge' - type: BadgeType - }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - }> | null - comment: { - __typename?: 'Comment' - id: string - state: CommentState - type: CommentType - content?: string | null - node: - | { - __typename?: 'Article' - id: string - title: string - slug: string - shortHash: string - summary: string - articleState: ArticleState - author: { - __typename?: 'User' - id: string - userName?: string | null - } - } - | { __typename?: 'ArticleVersion' } - | { - __typename?: 'Circle' - id: string - name: string - displayName: string - } - | { __typename?: 'Collection' } - | { __typename?: 'Comment' } - | { __typename?: 'CurationChannel' } - | { __typename?: 'Draft' } - | { __typename?: 'IcymiTopic' } - | { - __typename?: 'Moment' - state: MomentState - id: string - shortHash: string - content?: string | null - momentState: MomentState - assets: Array<{ - __typename?: 'Asset' - id: string - path: string - }> - } - | { __typename?: 'Report' } - | { __typename?: 'Tag' } - | { __typename?: 'TopicChannel' } - | { __typename?: 'User' } - | { __typename?: 'WritingChallenge' } - parentComment?: { __typename?: 'Comment'; id: string } | null - comments: { - __typename?: 'CommentConnection' - totalCount: number - } - communityWatchAction?: { - __typename?: 'CommunityWatchAction' - uuid: string - } | null - author: { __typename?: 'User'; id: string; isBlocked: boolean } - } - } - | { - __typename: 'MomentNotice' - id: string - createdAt: any - unread: boolean - momentNoticeType: MomentNoticeType - actors?: Array<{ - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ - __typename?: 'Badge' - type: BadgeType - }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - }> | null - moment: { - __typename?: 'Moment' - id: string - state: MomentState - content?: string | null - shortHash: string - assets: Array<{ - __typename?: 'Asset' - id: string - path: string - }> - } - } - | { - __typename: 'OfficialAnnouncementNotice' - id: string - createdAt: any - unread: boolean - link?: string | null - message: string - } - | { - __typename: 'TransactionNotice' - id: string - createdAt: any - unread: boolean - txNoticeType: TransactionNoticeType - actors?: Array<{ - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ - __typename?: 'Badge' - type: BadgeType - }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - }> | null - tx: { - __typename?: 'Transaction' - id: string - amount: number - currency: TransactionCurrency - state: TransactionState - target?: - | { - __typename: 'Article' - id: string - summary: string - title: string - slug: string - shortHash: string - articleState: ArticleState - author: { - __typename?: 'User' - id: string - userName?: string | null - } - } - | { __typename: 'Circle' } - | { __typename: 'Transaction' } - | null - blockchainTx?: { - __typename?: 'BlockchainTransaction' - chain: Chain - txHash: string - } | null - } - } - | { - __typename: 'UserNotice' - id: string - createdAt: any - unread: boolean - userNoticeType: UserNoticeType - actors?: Array<{ - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ - __typename?: 'Badge' - type: BadgeType - }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - }> | null - } - }> | null - } - } | null -} - -export type ViewerBlockListQueryVariables = Exact<{ - after?: InputMaybe -}> - -export type ViewerBlockListQuery = { - __typename?: 'Query' - viewer?: { - __typename?: 'User' - id: string - blockList: { - __typename?: 'UserConnection' - pageInfo: { - __typename?: 'PageInfo' - startCursor?: string | null - endCursor?: string | null - hasNextPage: boolean - } - edges?: Array<{ - __typename?: 'UserEdge' - cursor: string - node: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - isBlocked: boolean - avatar?: string | null - isFollower: boolean - isFollowee: boolean - info: { - __typename?: 'UserInfo' - description?: string | null - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - } - }> | null - } - } | null -} - -export type ToggleBlockUserButtonUserPrivateFragment = { - __typename?: 'User' - id: string - isBlocked: boolean -} - -export type SetCurrencyMutationVariables = Exact<{ - input: SetCurrencyInput -}> - -export type SetCurrencyMutation = { - __typename?: 'Mutation' - setCurrency: { - __typename?: 'User' - id: string - settings: { __typename?: 'UserSettings'; currency: QuoteCurrency } - } -} - -export type ViewerFederationSettingQueryVariables = Exact<{ - [key: string]: never -}> - -export type ViewerFederationSettingQuery = { - __typename?: 'Query' - viewer?: { - __typename?: 'User' - id: string - federationSetting?: { - __typename?: 'UserFederationSetting' - state: FederationAuthorSettingState - } | null - oss: { - __typename?: 'UserOSS' - featureFlags: Array<{ - __typename?: 'UserFeatureFlag' - type: UserFeatureFlagType - }> - } - } | null -} - -export type ViewerBlockedUsersQueryVariables = Exact<{ [key: string]: never }> - -export type ViewerBlockedUsersQuery = { - __typename?: 'Query' - viewer?: { - __typename?: 'User' - id: string - blockList: { __typename?: 'UserConnection'; totalCount: number } - } | null -} - -export type ViewerNotificationsCircleSettingsQueryVariables = Exact<{ - [key: string]: never -}> - -export type ViewerNotificationsCircleSettingsQuery = { - __typename?: 'Query' - viewer?: { - __typename?: 'User' - id: string - settings: { - __typename?: 'UserSettings' - language: UserLanguage - notification?: { - __typename?: 'NotificationSetting' - circleNewSubscriber: boolean - circleNewFollower: boolean - circleNewUnsubscriber: boolean - circleMemberNewBroadcastReply: boolean - circleMemberNewDiscussion: boolean - circleMemberNewDiscussionReply: boolean - inCircleNewArticle: boolean - inCircleNewBroadcast: boolean - inCircleNewBroadcastReply: boolean - inCircleNewDiscussion: boolean - inCircleNewDiscussionReply: boolean - } | null - } - } | null -} - -export type UpdateViewerNotificationsCircleMutationVariables = Exact<{ - type: NotificationSettingType - enabled: Scalars['Boolean']['input'] -}> - -export type UpdateViewerNotificationsCircleMutation = { - __typename?: 'Mutation' - updateNotificationSetting: { - __typename?: 'User' - id: string - settings: { - __typename?: 'UserSettings' - notification?: { - __typename?: 'NotificationSetting' - circleNewSubscriber: boolean - circleNewFollower: boolean - circleNewUnsubscriber: boolean - circleMemberNewBroadcastReply: boolean - circleMemberNewDiscussion: boolean - circleMemberNewDiscussionReply: boolean - inCircleNewArticle: boolean - inCircleNewBroadcast: boolean - inCircleNewBroadcastReply: boolean - inCircleNewDiscussion: boolean - inCircleNewDiscussionReply: boolean - } | null - } - } -} - -export type ViewerNotificationsGeneralSettingsQueryVariables = Exact<{ - [key: string]: never -}> - -export type ViewerNotificationsGeneralSettingsQuery = { - __typename?: 'Query' - viewer?: { - __typename?: 'User' - id: string - settings: { - __typename?: 'UserSettings' - language: UserLanguage - notification?: { - __typename?: 'NotificationSetting' - email: boolean - mention: boolean - userNewFollower: boolean - newComment: boolean - newLike: boolean - articleNewSubscription: boolean - articleNewCollected: boolean - } | null - } - } | null -} - -export type UpdateViewerNotificationsGeneralMutationVariables = Exact<{ - type: NotificationSettingType - enabled: Scalars['Boolean']['input'] -}> - -export type UpdateViewerNotificationsGeneralMutation = { - __typename?: 'Mutation' - updateNotificationSetting: { - __typename?: 'User' - id: string - settings: { - __typename?: 'UserSettings' - notification?: { - __typename?: 'NotificationSetting' - email: boolean - mention: boolean - userNewFollower: boolean - newComment: boolean - newLike: boolean - articleNewSubscription: boolean - articleNewCollected: boolean - } | null - } - } -} - -export type MeSubscriptionTransactionsCountQueryVariables = Exact<{ - [key: string]: never -}> - -export type MeSubscriptionTransactionsCountQuery = { - __typename?: 'Query' - viewer?: { - __typename?: 'User' - id: string - wallet: { - __typename?: 'Wallet' - subscriptionTrannsactions: { - __typename?: 'TransactionConnection' - totalCount: number - } - } - } | null -} - -export type MeTransactionsQueryVariables = Exact<{ - after?: InputMaybe - purpose?: InputMaybe - currency?: InputMaybe -}> - -export type MeTransactionsQuery = { - __typename?: 'Query' - viewer?: { - __typename?: 'User' - id: string - wallet: { - __typename?: 'Wallet' - transactions: { - __typename?: 'TransactionConnection' - pageInfo: { - __typename?: 'PageInfo' - startCursor?: string | null - endCursor?: string | null - hasNextPage: boolean - } - edges?: Array<{ - __typename?: 'TransactionEdge' - cursor: string - node: { - __typename?: 'Transaction' - id: string - state: TransactionState - purpose: TransactionPurpose - amount: number - fee: number - currency: TransactionCurrency - createdAt: any - message?: string | null - recipient?: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } | null - sender?: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } | null - target?: - | { - __typename?: 'Article' - id: string - title: string - slug: string - shortHash: string - articleState: ArticleState - author: { - __typename?: 'User' - id: string - userName?: string | null - } - } - | { - __typename?: 'Circle' - id: string - name: string - displayName: string - } - | { __typename?: 'Transaction' } - | null - blockchainTx?: { - __typename?: 'BlockchainTransaction' - chain: Chain - txHash: string - } | null - } - }> | null - } - } - } | null -} - -export type ViewerLikeBalanceQueryVariables = Exact<{ [key: string]: never }> - -export type ViewerLikeBalanceQuery = { - __typename?: 'Query' - viewer?: { - __typename?: 'User' - id: string - liker: { __typename?: 'Liker'; total: number } - } | null -} - -export type GetStripeLoginUrlQueryVariables = Exact<{ [key: string]: never }> - -export type GetStripeLoginUrlQuery = { - __typename?: 'Query' - viewer?: { - __typename?: 'User' - id: string - wallet: { - __typename?: 'Wallet' - stripeAccount?: { - __typename?: 'StripeAccount' - id: string - loginUrl: string - } | null - } - } | null -} - -export type GetCustomerPortalQueryVariables = Exact<{ [key: string]: never }> - -export type GetCustomerPortalQuery = { - __typename?: 'Query' - viewer?: { - __typename?: 'User' - id: string - wallet: { __typename?: 'Wallet'; customerPortal?: string | null } - } | null -} - -export type MeWorksArchivedFeedQueryVariables = Exact<{ - after?: InputMaybe -}> - -export type MeWorksArchivedFeedQuery = { - __typename?: 'Query' - viewer?: { - __typename?: 'User' - id: string - articles: { - __typename?: 'ArticleConnection' - totalCount: number - pageInfo: { - __typename?: 'PageInfo' - startCursor?: string | null - endCursor?: string | null - hasNextPage: boolean - } - edges?: Array<{ - __typename?: 'ArticleEdge' - cursor: string - node: { - __typename?: 'Article' - id: string - createdAt: any - title: string - slug: string - shortHash: string - articleState: ArticleState - author: { __typename?: 'User'; id: string; userName?: string | null } - } - }> | null - } - } | null -} - -export type MeWorksDraftFeedQueryVariables = Exact<{ - after?: InputMaybe -}> - -export type MeWorksDraftFeedQuery = { - __typename?: 'Query' - viewer?: { - __typename?: 'User' - id: string - drafts: { - __typename?: 'DraftConnection' - pageInfo: { - __typename?: 'PageInfo' - startCursor?: string | null - endCursor?: string | null - hasNextPage: boolean - } - edges?: Array<{ - __typename?: 'DraftEdge' - cursor: string - node: { - __typename?: 'Draft' - id: string - title?: string | null - slug: string - updatedAt: any - publishAt?: any | null - summary?: string | null - content?: string | null - cover?: string | null - tags?: Array | null - license: ArticleLicenseType - canComment: boolean - sensitiveByAuthor: boolean - campaigns: Array<{ - __typename?: 'ArticleCampaign' - campaign: { - __typename?: 'WritingChallenge' - id: string - name: string - } - }> - connections: { - __typename?: 'ArticleConnection' - edges?: Array<{ - __typename?: 'ArticleEdge' - node: { __typename?: 'Article'; id: string; title: string } - }> | null - } - collections: { - __typename?: 'CollectionConnection' - edges?: Array<{ - __typename?: 'CollectionEdge' - node: { __typename?: 'Collection'; id: string; title: string } - }> | null - } - access: { - __typename?: 'DraftAccess' - circle?: { __typename?: 'Circle'; id: string } | null - } - } - }> | null - } - } | null -} - -export type FooterActionsPublishedArticlePublicFragment = { - __typename?: 'Article' - id: string - title: string - slug: string - shortHash: string - createdAt: any - readerCount: number - appreciationsReceivedTotal: number - commentCount: number - donationCount: number - pinned: boolean - revisionCount: number - articleState: ArticleState - author: { - __typename?: 'User' - id: string - displayName?: string | null - userName?: string | null - } - tags?: Array<{ __typename?: 'Tag'; id: string; content: string }> | null - likesReceived: { __typename?: 'AppreciationConnection'; totalCount: number } - donationsDialog: { - __typename?: 'ArticleDonationConnection' - totalCount: number - } -} - -export type FooterActionsPublishedArticlePrivateFragment = { - __typename?: 'Article' - id: string - bookmarked: boolean -} - -export type ArticleDigestPublishedArticlePublicFragment = { - __typename?: 'Article' - id: string - title: string - slug: string - shortHash: string - createdAt: any - readerCount: number - appreciationsReceivedTotal: number - commentCount: number - donationCount: number - pinned: boolean - revisionCount: number - articleState: ArticleState - author: { - __typename?: 'User' - id: string - displayName?: string | null - userName?: string | null - } - tags?: Array<{ __typename?: 'Tag'; id: string; content: string }> | null - likesReceived: { __typename?: 'AppreciationConnection'; totalCount: number } - donationsDialog: { - __typename?: 'ArticleDonationConnection' - totalCount: number - } -} - -export type ArticleDigestPublishedArticlePrivateFragment = { - __typename?: 'Article' - id: string - bookmarked: boolean -} - -export type MeWorksPublishedFeedQueryVariables = Exact<{ - after?: InputMaybe - sort?: InputMaybe -}> - -export type MeWorksPublishedFeedQuery = { - __typename?: 'Query' - viewer?: { - __typename?: 'User' - id: string - articles: { - __typename?: 'ArticleConnection' - totalCount: number - pageInfo: { - __typename?: 'PageInfo' - startCursor?: string | null - endCursor?: string | null - hasNextPage: boolean - } - edges?: Array<{ - __typename?: 'ArticleEdge' - cursor: string - node: { - __typename?: 'Article' - id: string - title: string - slug: string - shortHash: string - createdAt: any - readerCount: number - appreciationsReceivedTotal: number - commentCount: number - donationCount: number - bookmarked: boolean - pinned: boolean - revisionCount: number - articleState: ArticleState - author: { - __typename?: 'User' - id: string - displayName?: string | null - userName?: string | null - } - tags?: Array<{ - __typename?: 'Tag' - id: string - content: string - }> | null - likesReceived: { - __typename?: 'AppreciationConnection' - totalCount: number - } - donationsDialog: { - __typename?: 'ArticleDonationConnection' - totalCount: number - } - } - }> | null - } - } | null -} - -export type MeWorksTabsQueryVariables = Exact<{ [key: string]: never }> - -export type MeWorksTabsQuery = { - __typename?: 'Query' - viewer?: { - __typename?: 'User' - id: string - drafts: { __typename?: 'DraftConnection'; totalCount: number } - publishedArticles: { __typename?: 'ArticleConnection'; totalCount: number } - archivedArticles: { __typename?: 'ArticleConnection'; totalCount: number } - } | null -} - -export type OAuthClientInfoQueryVariables = Exact<{ - id: Scalars['ID']['input'] -}> - -export type OAuthClientInfoQuery = { - __typename?: 'Query' - oauthClient?: { - __typename?: 'OAuthClient' - id: string - name: string - avatar?: string | null - website?: string | null - scope?: Array | null - } | null -} - -export type SearchAggregateArticlesPublicQueryVariables = Exact<{ - key: Scalars['String']['input'] - first?: InputMaybe - after?: InputMaybe -}> - -export type SearchAggregateArticlesPublicQuery = { - __typename?: 'Query' - search: { - __typename?: 'SearchResultConnection' - totalCount: number - pageInfo: { - __typename?: 'PageInfo' - startCursor?: string | null - endCursor?: string | null - hasNextPage: boolean - } - edges?: Array<{ - __typename?: 'SearchResultEdge' - cursor: string - node: - | { - __typename?: 'Article' - id: string - title: string - slug: string - shortHash: string - displayCover?: string | null - summary: string - createdAt: any - readTime: number - pinned: boolean - revisionCount: number - articleState: ArticleState - author: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - access: { - __typename?: 'ArticleAccess' - type: ArticleAccessType - circle?: { - __typename?: 'Circle' - id: string - name: string - displayName: string - } | null - } - collections: { - __typename?: 'CollectionConnection' - edges?: Array<{ - __typename?: 'CollectionEdge' - node: { - __typename?: 'Collection' - id: string - title: string - articles: { - __typename?: 'ArticleConnection' - totalCount: number - } - } - }> | null - } - campaigns: Array<{ - __typename?: 'ArticleCampaign' - campaign: { - __typename?: 'WritingChallenge' - id: string - name: string - shortHash: string - nameZhHant: string - nameZhHans: string - nameEn: string - } - stage?: { __typename?: 'CampaignStage'; id: string } | null - }> - tags?: Array<{ - __typename?: 'Tag' - id: string - content: string - }> | null - donations: { - __typename?: 'ArticleDonationConnection' - totalCount: number - } - likesReceived: { - __typename?: 'AppreciationConnection' - totalCount: number - } - donationsDialog: { - __typename?: 'ArticleDonationConnection' - totalCount: number - } - } - | { __typename?: 'ArticleVersion' } - | { __typename?: 'Circle' } - | { __typename?: 'Collection' } - | { __typename?: 'Comment' } - | { __typename?: 'CurationChannel' } - | { __typename?: 'Draft' } - | { __typename?: 'IcymiTopic' } - | { __typename?: 'Moment' } - | { __typename?: 'Report' } - | { __typename?: 'Tag' } - | { __typename?: 'TopicChannel' } - | { __typename?: 'User' } - | { __typename?: 'WritingChallenge' } - }> | null - } -} - -export type SearchAggregateTagsPublicQueryVariables = Exact<{ - key: Scalars['String']['input'] - first?: InputMaybe - after?: InputMaybe -}> - -export type SearchAggregateTagsPublicQuery = { - __typename?: 'Query' - search: { - __typename?: 'SearchResultConnection' - pageInfo: { - __typename?: 'PageInfo' - startCursor?: string | null - endCursor?: string | null - hasNextPage: boolean - } - edges?: Array<{ - __typename?: 'SearchResultEdge' - cursor: string - node: - | { __typename?: 'Article' } - | { __typename?: 'ArticleVersion' } - | { __typename?: 'Circle' } - | { __typename?: 'Collection' } - | { __typename?: 'Comment' } - | { __typename?: 'CurationChannel' } - | { __typename?: 'Draft' } - | { __typename?: 'IcymiTopic' } - | { __typename?: 'Moment' } - | { __typename?: 'Report' } - | { - __typename?: 'Tag' - id: string - content: string - numArticles: number - } - | { __typename?: 'TopicChannel' } - | { __typename?: 'User' } - | { __typename?: 'WritingChallenge' } - }> | null - } -} - -export type SearchAggregateUsersPublicQueryVariables = Exact<{ - key: Scalars['String']['input'] - first?: InputMaybe - after?: InputMaybe -}> - -export type SearchAggregateUsersPublicQuery = { - __typename?: 'Query' - search: { - __typename?: 'SearchResultConnection' - pageInfo: { - __typename?: 'PageInfo' - startCursor?: string | null - endCursor?: string | null - hasNextPage: boolean - } - edges?: Array<{ - __typename?: 'SearchResultEdge' - cursor: string - node: - | { __typename?: 'Article' } - | { __typename?: 'ArticleVersion' } - | { __typename?: 'Circle' } - | { __typename?: 'Collection' } - | { __typename?: 'Comment' } - | { __typename?: 'CurationChannel' } - | { __typename?: 'Draft' } - | { __typename?: 'IcymiTopic' } - | { __typename?: 'Moment' } - | { __typename?: 'Report' } - | { __typename?: 'Tag' } - | { __typename?: 'TopicChannel' } - | { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - info: { - __typename?: 'UserInfo' - description?: string | null - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - } - | { __typename?: 'WritingChallenge' } - }> | null - } -} - -export type TagDetailRecommendedAuthorsQueryVariables = Exact<{ - id: Scalars['ID']['input'] -}> - -export type TagDetailRecommendedAuthorsQuery = { - __typename?: 'Query' - node?: - | { __typename?: 'Article' } - | { __typename?: 'ArticleVersion' } - | { __typename?: 'Circle' } - | { __typename?: 'Collection' } - | { __typename?: 'Comment' } - | { __typename?: 'CurationChannel' } - | { __typename?: 'Draft' } - | { __typename?: 'IcymiTopic' } - | { __typename?: 'Moment' } - | { __typename?: 'Report' } - | { - __typename?: 'Tag' - id: string - recommendedAuthors: { - __typename?: 'UserConnection' - edges?: Array<{ - __typename?: 'UserEdge' - cursor: string - node: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - info: { - __typename?: 'UserInfo' - description?: string | null - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - } - }> | null - } - } - | { __typename?: 'TopicChannel' } - | { __typename?: 'User' } - | { __typename?: 'WritingChallenge' } - | null -} - -export type TagDetailRecommendedQueryVariables = Exact<{ - id: Scalars['ID']['input'] -}> - -export type TagDetailRecommendedQuery = { - __typename?: 'Query' - node?: - | { __typename?: 'Article' } - | { __typename?: 'ArticleVersion' } - | { __typename?: 'Circle' } - | { __typename?: 'Collection' } - | { __typename?: 'Comment' } - | { __typename?: 'CurationChannel' } - | { __typename?: 'Draft' } - | { __typename?: 'IcymiTopic' } - | { __typename?: 'Moment' } - | { __typename?: 'Report' } - | { - __typename?: 'Tag' - id: string - recommended: { - __typename?: 'TagConnection' - edges?: Array<{ - __typename?: 'TagEdge' - cursor: string - node: { - __typename?: 'Tag' - id: string - content: string - numArticles: number - } - }> | null - } - } - | { __typename?: 'TopicChannel' } - | { __typename?: 'User' } - | { __typename?: 'WritingChallenge' } - | null -} - -export type TagFragmentFragment = { - __typename?: 'Tag' - id: string - content: string - numArticles: number - isFollower?: boolean | null - selectedArticles: { - __typename?: 'ChannelArticleConnection' - totalCount: number - } - hottestArticles: { - __typename?: 'ChannelArticleConnection' - totalCount: number - } - recommended: { - __typename?: 'TagConnection' - edges?: Array<{ - __typename?: 'TagEdge' - cursor: string - node: { - __typename?: 'Tag' - id: string - content: string - numArticles: number - } - }> | null - } -} - -export type TagDetailPublicQueryVariables = Exact<{ - id: Scalars['ID']['input'] -}> - -export type TagDetailPublicQuery = { - __typename?: 'Query' - node?: - | { __typename?: 'Article' } - | { __typename?: 'ArticleVersion' } - | { __typename?: 'Circle' } - | { __typename?: 'Collection' } - | { __typename?: 'Comment' } - | { __typename?: 'CurationChannel' } - | { __typename?: 'Draft' } - | { __typename?: 'IcymiTopic' } - | { __typename?: 'Moment' } - | { __typename?: 'Report' } - | { - __typename?: 'Tag' - id: string - content: string - numArticles: number - isFollower?: boolean | null - selectedArticles: { - __typename?: 'ChannelArticleConnection' - totalCount: number - } - hottestArticles: { - __typename?: 'ChannelArticleConnection' - totalCount: number - } - recommended: { - __typename?: 'TagConnection' - edges?: Array<{ - __typename?: 'TagEdge' - cursor: string - node: { - __typename?: 'Tag' - id: string - content: string - numArticles: number - } - }> | null - } - } - | { __typename?: 'TopicChannel' } - | { __typename?: 'User' } - | { __typename?: 'WritingChallenge' } - | null -} - -export type TagDetailPublicBySearchQueryVariables = Exact<{ - key: Scalars['String']['input'] -}> - -export type TagDetailPublicBySearchQuery = { - __typename?: 'Query' - search: { - __typename?: 'SearchResultConnection' - totalCount: number - pageInfo: { __typename?: 'PageInfo'; hasNextPage: boolean } - edges?: Array<{ - __typename?: 'SearchResultEdge' - cursor: string - node: - | { __typename?: 'Article' } - | { __typename?: 'ArticleVersion' } - | { __typename?: 'Circle' } - | { __typename?: 'Collection' } - | { __typename?: 'Comment' } - | { __typename?: 'CurationChannel' } - | { __typename?: 'Draft' } - | { __typename?: 'IcymiTopic' } - | { __typename?: 'Moment' } - | { __typename?: 'Report' } - | { - __typename?: 'Tag' - id: string - content: string - numArticles: number - isFollower?: boolean | null - selectedArticles: { - __typename?: 'ChannelArticleConnection' - totalCount: number - } - hottestArticles: { - __typename?: 'ChannelArticleConnection' - totalCount: number - } - recommended: { - __typename?: 'TagConnection' - edges?: Array<{ - __typename?: 'TagEdge' - cursor: string - node: { - __typename?: 'Tag' - id: string - content: string - numArticles: number - } - }> | null - } - } - | { __typename?: 'TopicChannel' } - | { __typename?: 'User' } - | { __typename?: 'WritingChallenge' } - }> | null - } -} - -export type TagDetailPrivateQueryVariables = Exact<{ - id: Scalars['ID']['input'] -}> - -export type TagDetailPrivateQuery = { - __typename?: 'Query' - node?: - | { __typename?: 'Article' } - | { __typename?: 'ArticleVersion' } - | { __typename?: 'Circle' } - | { __typename?: 'Collection' } - | { __typename?: 'Comment' } - | { __typename?: 'CurationChannel' } - | { __typename?: 'Draft' } - | { __typename?: 'IcymiTopic' } - | { __typename?: 'Moment' } - | { __typename?: 'Report' } - | { __typename?: 'Tag'; id: string; isFollower?: boolean | null } - | { __typename?: 'TopicChannel' } - | { __typename?: 'User' } - | { __typename?: 'WritingChallenge' } - | null -} - -export type AllTagsHottestPublicQueryVariables = Exact<{ - after?: InputMaybe -}> - -export type AllTagsHottestPublicQuery = { - __typename?: 'Query' - viewer?: { - __typename?: 'User' - id: string - recommendation: { - __typename?: 'Recommendation' - tags: { - __typename?: 'TagConnection' - totalCount: number - pageInfo: { - __typename?: 'PageInfo' - startCursor?: string | null - endCursor?: string | null - hasNextPage: boolean - } - edges?: Array<{ - __typename?: 'TagEdge' - cursor: string - node: { - __typename?: 'Tag' - id: string - content: string - numArticles: number - } - }> | null - } - } - } | null -} - -export type ReorderCollectionArticlesMutationVariables = Exact<{ - collectionId: Scalars['ID']['input'] - articleId: Scalars['ID']['input'] - newPosition: Scalars['Int']['input'] -}> - -export type ReorderCollectionArticlesMutation = { - __typename?: 'Mutation' - reorderCollectionArticles: { __typename?: 'Collection'; id: string } -} - -export type CollectionArticlesCollectionFragment = { - __typename?: 'Collection' - id: string - updatedAt: any - pinned: boolean - title: string - description?: string | null - cover?: string | null - articleList: { - __typename?: 'ArticleConnection' - totalCount: number - pageInfo: { - __typename?: 'PageInfo' - startCursor?: string | null - endCursor?: string | null - hasNextPage: boolean - } - edges?: Array<{ - __typename?: 'ArticleEdge' - cursor: string - node: { - __typename?: 'Article' - id: string - title: string - slug: string - shortHash: string - displayCover?: string | null - summary: string - createdAt: any - readTime: number - bookmarked: boolean - pinned: boolean - revisionCount: number - articleState: ArticleState - author: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - access: { - __typename?: 'ArticleAccess' - type: ArticleAccessType - circle?: { - __typename?: 'Circle' - id: string - name: string - displayName: string - } | null - } - collections: { - __typename?: 'CollectionConnection' - edges?: Array<{ - __typename?: 'CollectionEdge' - node: { - __typename?: 'Collection' - id: string - title: string - articles: { __typename?: 'ArticleConnection'; totalCount: number } - } - }> | null - } - campaigns: Array<{ - __typename?: 'ArticleCampaign' - campaign: { - __typename?: 'WritingChallenge' - id: string - name: string - shortHash: string - nameZhHant: string - nameZhHans: string - nameEn: string - } - stage?: { __typename?: 'CampaignStage'; id: string } | null - }> - tags?: Array<{ __typename?: 'Tag'; id: string; content: string }> | null - donations: { - __typename?: 'ArticleDonationConnection' - totalCount: number - } - likesReceived: { - __typename?: 'AppreciationConnection' - totalCount: number - } - donationsDialog: { - __typename?: 'ArticleDonationConnection' - totalCount: number - } - } - }> | null - } - author: { - __typename?: 'User' - id: string - displayName?: string | null - userName?: string | null - } - articles: { __typename?: 'ArticleConnection'; totalCount: number } -} - -export type CollectionArticlesPublicQueryVariables = Exact<{ - id: Scalars['ID']['input'] - first: Scalars['first_Int_min_0']['input'] - after?: InputMaybe - reversed?: InputMaybe -}> - -export type CollectionArticlesPublicQuery = { - __typename?: 'Query' - node?: - | { __typename?: 'Article' } - | { __typename?: 'ArticleVersion' } - | { __typename?: 'Circle' } - | { - __typename?: 'Collection' - id: string - updatedAt: any - pinned: boolean - title: string - description?: string | null - cover?: string | null - articleList: { - __typename?: 'ArticleConnection' - totalCount: number - pageInfo: { - __typename?: 'PageInfo' - startCursor?: string | null - endCursor?: string | null - hasNextPage: boolean - } - edges?: Array<{ - __typename?: 'ArticleEdge' - cursor: string - node: { - __typename?: 'Article' - id: string - title: string - slug: string - shortHash: string - displayCover?: string | null - summary: string - createdAt: any - readTime: number - bookmarked: boolean - pinned: boolean - revisionCount: number - articleState: ArticleState - author: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ - __typename?: 'Badge' - type: BadgeType - }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - access: { - __typename?: 'ArticleAccess' - type: ArticleAccessType - circle?: { - __typename?: 'Circle' - id: string - name: string - displayName: string - } | null - } - collections: { - __typename?: 'CollectionConnection' - edges?: Array<{ - __typename?: 'CollectionEdge' - node: { - __typename?: 'Collection' - id: string - title: string - articles: { - __typename?: 'ArticleConnection' - totalCount: number - } - } - }> | null - } - campaigns: Array<{ - __typename?: 'ArticleCampaign' - campaign: { - __typename?: 'WritingChallenge' - id: string - name: string - shortHash: string - nameZhHant: string - nameZhHans: string - nameEn: string - } - stage?: { __typename?: 'CampaignStage'; id: string } | null - }> - tags?: Array<{ - __typename?: 'Tag' - id: string - content: string - }> | null - donations: { - __typename?: 'ArticleDonationConnection' - totalCount: number - } - likesReceived: { - __typename?: 'AppreciationConnection' - totalCount: number - } - donationsDialog: { - __typename?: 'ArticleDonationConnection' - totalCount: number - } - } - }> | null - } - author: { - __typename?: 'User' - id: string - displayName?: string | null - userName?: string | null - } - articles: { __typename?: 'ArticleConnection'; totalCount: number } - } - | { __typename?: 'Comment' } - | { __typename?: 'CurationChannel' } - | { __typename?: 'Draft' } - | { __typename?: 'IcymiTopic' } - | { __typename?: 'Moment' } - | { __typename?: 'Report' } - | { __typename?: 'Tag' } - | { __typename?: 'TopicChannel' } - | { __typename?: 'User' } - | { __typename?: 'WritingChallenge' } - | null -} - -export type CollectionArticlesPrivateQueryVariables = Exact<{ - ids: Array | Scalars['ID']['input'] -}> - -export type CollectionArticlesPrivateQuery = { - __typename?: 'Query' - nodes?: Array< - | { __typename?: 'Article'; id: string; bookmarked: boolean } - | { __typename?: 'ArticleVersion'; id: string } - | { __typename?: 'Circle'; id: string } - | { __typename?: 'Collection'; id: string } - | { __typename?: 'Comment'; id: string } - | { __typename?: 'CurationChannel'; id: string } - | { __typename?: 'Draft'; id: string } - | { __typename?: 'IcymiTopic'; id: string } - | { __typename?: 'Moment'; id: string } - | { __typename?: 'Report'; id: string } - | { __typename?: 'Tag'; id: string } - | { __typename?: 'TopicChannel'; id: string } - | { __typename?: 'User'; id: string } - | { __typename?: 'WritingChallenge'; id: string } - > | null -} - -export type CollectionLikeButtonPublicFragment = { - __typename?: 'Collection' - id: string - likeCount: number -} - -export type CollectionLikeButtonPrivateFragment = { - __typename?: 'Collection' - id: string - liked: boolean -} - -export type CollectionProfileCollectionPublicFragment = { - __typename?: 'Collection' - id: string - title: string - description?: string | null - cover?: string | null - likeCount: number - author: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - } -} - -export type CollectionProfileCollectionPrivateFragment = { - __typename?: 'Collection' - id: string - liked: boolean -} - -export type CollectionDetailPublicQueryVariables = Exact<{ - id: Scalars['ID']['input'] -}> - -export type CollectionDetailPublicQuery = { - __typename?: 'Query' - node?: - | { __typename?: 'Article'; id: string } - | { __typename?: 'ArticleVersion'; id: string } - | { __typename?: 'Circle'; id: string } - | { - __typename?: 'Collection' - id: string - title: string - description?: string | null - cover?: string | null - likeCount: number - liked: boolean - author: { - __typename?: 'User' - id: string - displayName?: string | null - userName?: string | null - } - } - | { __typename?: 'Comment'; id: string } - | { __typename?: 'CurationChannel'; id: string } - | { __typename?: 'Draft'; id: string } - | { __typename?: 'IcymiTopic'; id: string } - | { __typename?: 'Moment'; id: string } - | { __typename?: 'Report'; id: string } - | { __typename?: 'Tag'; id: string } - | { __typename?: 'TopicChannel'; id: string } - | { __typename?: 'User'; id: string } - | { __typename?: 'WritingChallenge'; id: string } - | null -} - -export type CollectionDetailPrivateQueryVariables = Exact<{ - id: Scalars['ID']['input'] -}> - -export type CollectionDetailPrivateQuery = { - __typename?: 'Query' - node?: - | { __typename?: 'Article' } - | { __typename?: 'ArticleVersion' } - | { __typename?: 'Circle' } - | { __typename?: 'Collection'; id: string; liked: boolean } - | { __typename?: 'Comment' } - | { __typename?: 'CurationChannel' } - | { __typename?: 'Draft' } - | { __typename?: 'IcymiTopic' } - | { __typename?: 'Moment' } - | { __typename?: 'Report' } - | { __typename?: 'Tag' } - | { __typename?: 'TopicChannel' } - | { __typename?: 'User' } - | { __typename?: 'WritingChallenge' } - | null -} - -export type CollectionsUserFragment = { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - info: { - __typename?: 'UserInfo' - description?: string | null - profileCover?: string | null - } - status?: { __typename?: 'UserStatus'; state: UserState } | null - collections: { - __typename?: 'CollectionConnection' - totalCount: number - pageInfo: { - __typename?: 'PageInfo' - startCursor?: string | null - endCursor?: string | null - hasNextPage: boolean - } - edges?: Array<{ - __typename?: 'CollectionEdge' - cursor: string - node: { - __typename?: 'Collection' - id: string - title: string - description?: string | null - cover?: string | null - updatedAt: any - pinned: boolean - author: { - __typename?: 'User' - id: string - displayName?: string | null - userName?: string | null - } - articles: { __typename?: 'ArticleConnection'; totalCount: number } - } - }> | null - } -} - -export type UserCollectionsQueryVariables = Exact<{ - userName: Scalars['String']['input'] - after?: InputMaybe -}> - -export type UserCollectionsQuery = { - __typename?: 'Query' - user?: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - info: { - __typename?: 'UserInfo' - description?: string | null - profileCover?: string | null - } - status?: { __typename?: 'UserStatus'; state: UserState } | null - collections: { - __typename?: 'CollectionConnection' - totalCount: number - pageInfo: { - __typename?: 'PageInfo' - startCursor?: string | null - endCursor?: string | null - hasNextPage: boolean - } - edges?: Array<{ - __typename?: 'CollectionEdge' - cursor: string - node: { - __typename?: 'Collection' - id: string - title: string - description?: string | null - cover?: string | null - updatedAt: any - pinned: boolean - author: { - __typename?: 'User' - id: string - displayName?: string | null - userName?: string | null - } - articles: { __typename?: 'ArticleConnection'; totalCount: number } - } - }> | null - } - } | null -} - -export type DigestUserProfileCircleFragment = { - __typename?: 'Circle' - id: string - name: string - displayName: string - description?: string | null -} - -export type ArchiveUserMutationVariables = Exact<{ - id: Scalars['ID']['input'] - password: Scalars['String']['input'] -}> - -export type ArchiveUserMutation = { - __typename?: 'Mutation' - updateUserState?: Array<{ - __typename?: 'User' - id: string - status?: { __typename?: 'UserStatus'; state: UserState } | null - }> | null -} - -export type ToggleCommunityWatchUserFragment = { - __typename?: 'User' - id: string - oss: { - __typename?: 'UserOSS' - featureFlags: Array<{ - __typename?: 'UserFeatureFlag' - type: UserFeatureFlagType - }> - } -} - -export type UserCommunityWatchAdminQueryVariables = Exact<{ - id: Scalars['ID']['input'] -}> - -export type UserCommunityWatchAdminQuery = { - __typename?: 'Query' - user?: - | { __typename?: 'Article' } - | { __typename?: 'ArticleVersion' } - | { __typename?: 'Circle' } - | { __typename?: 'Collection' } - | { __typename?: 'Comment' } - | { __typename?: 'CurationChannel' } - | { __typename?: 'Draft' } - | { __typename?: 'IcymiTopic' } - | { __typename?: 'Moment' } - | { __typename?: 'Report' } - | { __typename?: 'Tag' } - | { __typename?: 'TopicChannel' } - | { - __typename?: 'User' - id: string - oss: { - __typename?: 'UserOSS' - featureFlags: Array<{ - __typename?: 'UserFeatureFlag' - type: UserFeatureFlagType - }> - } - } - | { __typename?: 'WritingChallenge' } - | null -} - -export type ToggleCommunityWatchMutationVariables = Exact<{ - id: Scalars['ID']['input'] - flags: Array | UserFeatureFlagType -}> - -export type ToggleCommunityWatchMutation = { - __typename?: 'Mutation' - putUserFeatureFlags: Array<{ - __typename?: 'User' - id: string - oss: { - __typename?: 'UserOSS' - featureFlags: Array<{ - __typename?: 'UserFeatureFlag' - type: UserFeatureFlagType - }> - } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - } - }> -} - -export type ToggleFreezeUserFragment = { - __typename?: 'User' - id: string - status?: { __typename?: 'UserStatus'; state: UserState } | null -} - -export type UserFreezeAdminQueryVariables = Exact<{ - id: Scalars['ID']['input'] -}> - -export type UserFreezeAdminQuery = { - __typename?: 'Query' - user?: - | { __typename?: 'Article' } - | { __typename?: 'ArticleVersion' } - | { __typename?: 'Circle' } - | { __typename?: 'Collection' } - | { __typename?: 'Comment' } - | { __typename?: 'CurationChannel' } - | { __typename?: 'Draft' } - | { __typename?: 'IcymiTopic' } - | { __typename?: 'Moment' } - | { __typename?: 'Report' } - | { __typename?: 'Tag' } - | { __typename?: 'TopicChannel' } - | { - __typename?: 'User' - id: string - status?: { __typename?: 'UserStatus'; state: UserState } | null - } - | { __typename?: 'WritingChallenge' } - | null -} - -export type ToggleFreezeUserMutationVariables = Exact<{ - id: Scalars['ID']['input'] - state: UserState -}> - -export type ToggleFreezeUserMutation = { - __typename?: 'Mutation' - updateUserState?: Array<{ - __typename?: 'User' - id: string - status?: { __typename?: 'UserStatus'; state: UserState } | null - }> | null -} - -export type ToggleRestrictUserFragment = { - __typename?: 'User' - id: string - oss: { - __typename?: 'UserOSS' - restrictions: Array<{ - __typename?: 'UserRestriction' - type: UserRestrictionType - }> - } -} - -export type UserRestrictionsAdminQueryVariables = Exact<{ - id: Scalars['ID']['input'] -}> - -export type UserRestrictionsAdminQuery = { - __typename?: 'Query' - user?: - | { __typename?: 'Article' } - | { __typename?: 'ArticleVersion' } - | { __typename?: 'Circle' } - | { __typename?: 'Collection' } - | { __typename?: 'Comment' } - | { __typename?: 'CurationChannel' } - | { __typename?: 'Draft' } - | { __typename?: 'IcymiTopic' } - | { __typename?: 'Moment' } - | { __typename?: 'Report' } - | { __typename?: 'Tag' } - | { __typename?: 'TopicChannel' } - | { - __typename?: 'User' - id: string - oss: { - __typename?: 'UserOSS' - restrictions: Array<{ - __typename?: 'UserRestriction' - type: UserRestrictionType - }> - } - } - | { __typename?: 'WritingChallenge' } - | null -} - -export type ToggleRestrictUserMutationVariables = Exact<{ - id: Scalars['ID']['input'] - restrictions: Array | UserRestrictionType -}> - -export type ToggleRestrictUserMutation = { - __typename?: 'Mutation' - putRestrictedUsers: Array<{ - __typename?: 'User' - id: string - oss: { - __typename?: 'UserOSS' - restrictions: Array<{ - __typename?: 'UserRestriction' - type: UserRestrictionType - }> - } - }> -} - -export type DropdownActionsUserPublicFragment = { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - info: { - __typename?: 'UserInfo' - profileCover?: string | null - description?: string | null - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - } - liker: { __typename?: 'Liker'; civicLiker: boolean } -} - -export type DropdownActionsUserPrivateFragment = { - __typename?: 'User' - id: string - isBlocked: boolean -} - -export type UserFollowerPublicQueryVariables = Exact<{ - userName: Scalars['String']['input'] - after?: InputMaybe -}> - -export type UserFollowerPublicQuery = { - __typename?: 'Query' - user?: { - __typename?: 'User' - id: string - displayName?: string | null - info: { - __typename?: 'UserInfo' - description?: string | null - profileCover?: string | null - } - status?: { __typename?: 'UserStatus'; state: UserState } | null - followers: { - __typename?: 'UserConnection' - pageInfo: { - __typename?: 'PageInfo' - startCursor?: string | null - endCursor?: string | null - hasNextPage: boolean - } - edges?: Array<{ - __typename?: 'UserEdge' - cursor: string - node: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - isFollower: boolean - isFollowee: boolean - info: { - __typename?: 'UserInfo' - description?: string | null - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - } - }> | null - } - } | null -} - -export type UserFollowerPrivateQueryVariables = Exact<{ - ids: Array | Scalars['ID']['input'] -}> - -export type UserFollowerPrivateQuery = { - __typename?: 'Query' - nodes?: Array< - | { __typename?: 'Article'; id: string } - | { __typename?: 'ArticleVersion'; id: string } - | { __typename?: 'Circle'; id: string } - | { __typename?: 'Collection'; id: string } - | { __typename?: 'Comment'; id: string } - | { __typename?: 'CurationChannel'; id: string } - | { __typename?: 'Draft'; id: string } - | { __typename?: 'IcymiTopic'; id: string } - | { __typename?: 'Moment'; id: string } - | { __typename?: 'Report'; id: string } - | { __typename?: 'Tag'; id: string } - | { __typename?: 'TopicChannel'; id: string } - | { - __typename?: 'User' - id: string - isFollower: boolean - isFollowee: boolean - status?: { __typename?: 'UserStatus'; state: UserState } | null - } - | { __typename?: 'WritingChallenge'; id: string } - > | null -} - -export type UserFollowingCirclesPublicQueryVariables = Exact<{ - userName: Scalars['String']['input'] - after?: InputMaybe -}> - -export type UserFollowingCirclesPublicQuery = { - __typename?: 'Query' - user?: { - __typename?: 'User' - id: string - info: { - __typename?: 'UserInfo' - profileCover?: string | null - description?: string | null - } - status?: { __typename?: 'UserStatus'; state: UserState } | null - following: { - __typename?: 'Following' - circles: { - __typename?: 'CircleConnection' - pageInfo: { - __typename?: 'PageInfo' - startCursor?: string | null - endCursor?: string | null - hasNextPage: boolean - } - edges?: Array<{ - __typename?: 'CircleEdge' - cursor: string - node: { - __typename?: 'Circle' - id: string - name: string - displayName: string - description?: string | null - avatar?: string | null - members: { __typename?: 'MemberConnection'; totalCount: number } - works: { __typename?: 'ArticleConnection'; totalCount: number } - } - }> | null - } - } - } | null -} - -export type UserSubscriptionsQueryVariables = Exact<{ - userName: Scalars['String']['input'] - after?: InputMaybe -}> - -export type UserSubscriptionsQuery = { - __typename?: 'Query' - user?: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - info: { - __typename?: 'UserInfo' - profileCover?: string | null - description?: string | null - } - status?: { __typename?: 'UserStatus'; state: UserState } | null - subscribedCircles: { - __typename?: 'CircleConnection' - pageInfo: { - __typename?: 'PageInfo' - startCursor?: string | null - endCursor?: string | null - hasNextPage: boolean - } - edges?: Array<{ - __typename?: 'CircleEdge' - cursor: string - node: { - __typename?: 'Circle' - id: string - name: string - displayName: string - description?: string | null - avatar?: string | null - members: { __typename?: 'MemberConnection'; totalCount: number } - works: { __typename?: 'ArticleConnection'; totalCount: number } - } - }> | null - } - } | null -} - -export type UserFollowingUsersPublicQueryVariables = Exact<{ - userName: Scalars['String']['input'] - after?: InputMaybe -}> - -export type UserFollowingUsersPublicQuery = { - __typename?: 'Query' - user?: { - __typename?: 'User' - id: string - info: { - __typename?: 'UserInfo' - profileCover?: string | null - description?: string | null - } - status?: { __typename?: 'UserStatus'; state: UserState } | null - following: { - __typename?: 'Following' - users: { - __typename?: 'UserConnection' - pageInfo: { - __typename?: 'PageInfo' - startCursor?: string | null - endCursor?: string | null - hasNextPage: boolean - } - edges?: Array<{ - __typename?: 'UserEdge' - cursor: string - node: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - isFollower: boolean - isFollowee: boolean - info: { - __typename?: 'UserInfo' - description?: string | null - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - } - }> | null - } - } - } | null -} - -export type UserFollowingUsersPrivateQueryVariables = Exact<{ - ids: Array | Scalars['ID']['input'] -}> - -export type UserFollowingUsersPrivateQuery = { - __typename?: 'Query' - nodes?: Array< - | { __typename?: 'Article'; id: string } - | { __typename?: 'ArticleVersion'; id: string } - | { __typename?: 'Circle'; id: string } - | { __typename?: 'Collection'; id: string } - | { __typename?: 'Comment'; id: string } - | { __typename?: 'CurationChannel'; id: string } - | { __typename?: 'Draft'; id: string } - | { __typename?: 'IcymiTopic'; id: string } - | { __typename?: 'Moment'; id: string } - | { __typename?: 'Report'; id: string } - | { __typename?: 'Tag'; id: string } - | { __typename?: 'TopicChannel'; id: string } - | { - __typename?: 'User' - id: string - isFollower: boolean - isFollowee: boolean - status?: { __typename?: 'UserStatus'; state: UserState } | null - } - | { __typename?: 'WritingChallenge'; id: string } - > | null -} - -export type ProfileUserPublicFragment = { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - description?: string | null - profileCover?: string | null - ethAddress?: string | null - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - articles: { __typename?: 'ArticleConnection'; totalCount: number } - following: { - __typename?: 'Following' - users: { __typename?: 'UserConnection'; totalCount: number } - } - followers: { __typename?: 'UserConnection'; totalCount: number } - status?: { - __typename?: 'UserStatus' - state: UserState - articleCount: number - momentCount: number - } | null - ownCircles?: Array<{ - __typename?: 'Circle' - id: string - name: string - displayName: string - description?: string | null - avatar?: string | null - owner: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - members: { __typename?: 'MemberConnection'; totalCount: number } - works: { __typename?: 'ArticleConnection'; totalCount: number } - prices?: Array<{ - __typename?: 'Price' - amount: number - currency: TransactionCurrency - }> | null - }> | null - userCollections: { __typename?: 'CollectionConnection'; totalCount: number } -} - -export type ProfileUserPrivateFragment = { - __typename?: 'User' - id: string - isFollower: boolean - isFollowee: boolean - isBlocked: boolean - ownCircles?: Array<{ - __typename?: 'Circle' - id: string - isMember: boolean - invitedBy?: { - __typename?: 'Invitation' - id: string - state: InvitationState - freePeriod: number - } | null - }> | null - status?: { __typename?: 'UserStatus'; state: UserState } | null -} - -export type UserProfileUserPublicQueryVariables = Exact<{ - userName: Scalars['String']['input'] -}> - -export type UserProfileUserPublicQuery = { - __typename?: 'Query' - user?: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - isFollower: boolean - isFollowee: boolean - isBlocked: boolean - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - description?: string | null - profileCover?: string | null - ethAddress?: string | null - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - articles: { __typename?: 'ArticleConnection'; totalCount: number } - following: { - __typename?: 'Following' - users: { __typename?: 'UserConnection'; totalCount: number } - } - followers: { __typename?: 'UserConnection'; totalCount: number } - status?: { - __typename?: 'UserStatus' - state: UserState - articleCount: number - momentCount: number - } | null - ownCircles?: Array<{ - __typename?: 'Circle' - id: string - name: string - displayName: string - description?: string | null - avatar?: string | null - isMember: boolean - owner: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - members: { __typename?: 'MemberConnection'; totalCount: number } - works: { __typename?: 'ArticleConnection'; totalCount: number } - prices?: Array<{ - __typename?: 'Price' - amount: number - currency: TransactionCurrency - }> | null - invitedBy?: { - __typename?: 'Invitation' - id: string - state: InvitationState - freePeriod: number - } | null - }> | null - userCollections: { __typename?: 'CollectionConnection'; totalCount: number } - } | null -} - -export type UserProfileUserPrivateQueryVariables = Exact<{ - userName: Scalars['String']['input'] -}> - -export type UserProfileUserPrivateQuery = { - __typename?: 'Query' - user?: { - __typename?: 'User' - id: string - isFollower: boolean - isFollowee: boolean - isBlocked: boolean - ownCircles?: Array<{ - __typename?: 'Circle' - id: string - isMember: boolean - invitedBy?: { - __typename?: 'Invitation' - id: string - state: InvitationState - freePeriod: number - } | null - }> | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - } | null -} - -export type TabsUserFragment = { - __typename?: 'User' - id: string - status?: { - __typename?: 'UserStatus' - articleCount: number - momentCount: number - } | null - userCollections: { __typename?: 'CollectionConnection'; totalCount: number } -} - -export type UnpinArticleMutationVariables = Exact<{ - id: Scalars['ID']['input'] -}> - -export type UnpinArticleMutation = { - __typename?: 'Mutation' - editArticle: { __typename?: 'Article'; id: string; pinned: boolean } -} - -export type UnpinCollectionMutationVariables = Exact<{ - id: Scalars['ID']['input'] -}> - -export type UnpinCollectionMutation = { - __typename?: 'Mutation' - putCollection: { __typename?: 'Collection'; id: string; pinned: boolean } -} - -export type PinnedWorksUserFragment = { - __typename?: 'User' - id: string - userName?: string | null - pinnedWorks: Array< - | { - __typename?: 'Article' - slug: string - shortHash: string - summary: string - id: string - pinned: boolean - title: string - cover?: string | null - author: { __typename?: 'User'; id: string; userName?: string | null } - } - | { - __typename?: 'Collection' - id: string - pinned: boolean - title: string - cover?: string | null - articles: { __typename?: 'ArticleConnection'; totalCount: number } - } - > -} - -export type UserPinnedWorksQueryVariables = Exact<{ - userName: Scalars['String']['input'] -}> - -export type UserPinnedWorksQuery = { - __typename?: 'Query' - user?: { - __typename?: 'User' - id: string - userName?: string | null - pinnedWorks: Array< - | { - __typename?: 'Article' - slug: string - shortHash: string - summary: string - id: string - pinned: boolean - title: string - cover?: string | null - author: { __typename?: 'User'; id: string; userName?: string | null } - } - | { - __typename?: 'Collection' - id: string - pinned: boolean - title: string - cover?: string | null - articles: { __typename?: 'ArticleConnection'; totalCount: number } - } - > - } | null -} - -export type WritingsUserFragment = { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - info: { - __typename?: 'UserInfo' - description?: string | null - profileCover?: string | null - } - writings: { - __typename?: 'WritingConnection' - totalCount: number - pageInfo: { - __typename?: 'PageInfo' - startCursor?: string | null - endCursor?: string | null - hasNextPage: boolean - } - edges?: Array<{ - __typename?: 'WritingEdge' - cursor: string - node: - | { - __typename: 'Article' - id: string - createdAt: any - wordCount?: number | null - title: string - slug: string - shortHash: string - displayCover?: string | null - summary: string - readTime: number - bookmarked: boolean - pinned: boolean - revisionCount: number - artileState: ArticleState - articleState: ArticleState - author: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - access: { - __typename?: 'ArticleAccess' - type: ArticleAccessType - circle?: { - __typename?: 'Circle' - id: string - name: string - displayName: string - } | null - } - collections: { - __typename?: 'CollectionConnection' - edges?: Array<{ - __typename?: 'CollectionEdge' - node: { - __typename?: 'Collection' - id: string - title: string - articles: { - __typename?: 'ArticleConnection' - totalCount: number - } - } - }> | null - } - campaigns: Array<{ - __typename?: 'ArticleCampaign' - campaign: { - __typename?: 'WritingChallenge' - id: string - name: string - shortHash: string - nameZhHant: string - nameZhHans: string - nameEn: string - } - stage?: { __typename?: 'CampaignStage'; id: string } | null - }> - tags?: Array<{ - __typename?: 'Tag' - id: string - content: string - }> | null - donations: { - __typename?: 'ArticleDonationConnection' - totalCount: number - } - likesReceived: { - __typename?: 'AppreciationConnection' - totalCount: number - } - donationsDialog: { - __typename?: 'ArticleDonationConnection' - totalCount: number - } - } - | { __typename: 'Comment' } - | { - __typename: 'Moment' - id: string - createdAt: any - shortHash: string - state: MomentState - content?: string | null - commentCount: number - likeCount: number - liked: boolean - momentState: MomentState - author: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - assets: Array<{ __typename?: 'Asset'; id: string; path: string }> - commentedFollowees: Array<{ - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - }> - } - }> | null - } - status?: { __typename?: 'UserStatus'; state: UserState } | null - pinnedWorks: Array< - | { - __typename?: 'Article' - slug: string - shortHash: string - summary: string - id: string - pinned: boolean - title: string - cover?: string | null - author: { __typename?: 'User'; id: string; userName?: string | null } - } - | { - __typename?: 'Collection' - id: string - pinned: boolean - title: string - cover?: string | null - articles: { __typename?: 'ArticleConnection'; totalCount: number } - } - > -} - -export type ViewerWritingsQueryVariables = Exact<{ - userName: Scalars['String']['input'] - after?: InputMaybe -}> - -export type ViewerWritingsQuery = { - __typename?: 'Query' - user?: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - info: { - __typename?: 'UserInfo' - description?: string | null - profileCover?: string | null - } - writings: { - __typename?: 'WritingConnection' - totalCount: number - pageInfo: { - __typename?: 'PageInfo' - startCursor?: string | null - endCursor?: string | null - hasNextPage: boolean - } - edges?: Array<{ - __typename?: 'WritingEdge' - cursor: string - node: - | { - __typename: 'Article' - id: string - createdAt: any - wordCount?: number | null - title: string - slug: string - shortHash: string - displayCover?: string | null - summary: string - readTime: number - bookmarked: boolean - pinned: boolean - revisionCount: number - artileState: ArticleState - articleState: ArticleState - author: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ - __typename?: 'Badge' - type: BadgeType - }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - access: { - __typename?: 'ArticleAccess' - type: ArticleAccessType - circle?: { - __typename?: 'Circle' - id: string - name: string - displayName: string - } | null - } - collections: { - __typename?: 'CollectionConnection' - edges?: Array<{ - __typename?: 'CollectionEdge' - node: { - __typename?: 'Collection' - id: string - title: string - articles: { - __typename?: 'ArticleConnection' - totalCount: number - } - } - }> | null - } - campaigns: Array<{ - __typename?: 'ArticleCampaign' - campaign: { - __typename?: 'WritingChallenge' - id: string - name: string - shortHash: string - nameZhHant: string - nameZhHans: string - nameEn: string - } - stage?: { __typename?: 'CampaignStage'; id: string } | null - }> - tags?: Array<{ - __typename?: 'Tag' - id: string - content: string - }> | null - donations: { - __typename?: 'ArticleDonationConnection' - totalCount: number - } - likesReceived: { - __typename?: 'AppreciationConnection' - totalCount: number - } - donationsDialog: { - __typename?: 'ArticleDonationConnection' - totalCount: number - } - } - | { __typename: 'Comment' } - | { - __typename: 'Moment' - id: string - createdAt: any - shortHash: string - state: MomentState - content?: string | null - commentCount: number - likeCount: number - liked: boolean - momentState: MomentState - author: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ - __typename?: 'Badge' - type: BadgeType - }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - assets: Array<{ __typename?: 'Asset'; id: string; path: string }> - commentedFollowees: Array<{ - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ - __typename?: 'Badge' - type: BadgeType - }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - }> - } - }> | null - } - status?: { __typename?: 'UserStatus'; state: UserState } | null - pinnedWorks: Array< - | { - __typename?: 'Article' - slug: string - shortHash: string - summary: string - id: string - pinned: boolean - title: string - cover?: string | null - author: { __typename?: 'User'; id: string; userName?: string | null } - } - | { - __typename?: 'Collection' - id: string - pinned: boolean - title: string - cover?: string | null - articles: { __typename?: 'ArticleConnection'; totalCount: number } - } - > - } | null -} - -export type UserWritingsPublicQueryVariables = Exact<{ - userName: Scalars['String']['input'] - after?: InputMaybe -}> - -export type UserWritingsPublicQuery = { - __typename?: 'Query' - user?: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - info: { - __typename?: 'UserInfo' - description?: string | null - profileCover?: string | null - } - writings: { - __typename?: 'WritingConnection' - totalCount: number - pageInfo: { - __typename?: 'PageInfo' - startCursor?: string | null - endCursor?: string | null - hasNextPage: boolean - } - edges?: Array<{ - __typename?: 'WritingEdge' - cursor: string - node: - | { - __typename: 'Article' - id: string - createdAt: any - wordCount?: number | null - title: string - slug: string - shortHash: string - displayCover?: string | null - summary: string - readTime: number - bookmarked: boolean - pinned: boolean - revisionCount: number - artileState: ArticleState - articleState: ArticleState - author: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ - __typename?: 'Badge' - type: BadgeType - }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - access: { - __typename?: 'ArticleAccess' - type: ArticleAccessType - circle?: { - __typename?: 'Circle' - id: string - name: string - displayName: string - } | null - } - collections: { - __typename?: 'CollectionConnection' - edges?: Array<{ - __typename?: 'CollectionEdge' - node: { - __typename?: 'Collection' - id: string - title: string - articles: { - __typename?: 'ArticleConnection' - totalCount: number - } - } - }> | null - } - campaigns: Array<{ - __typename?: 'ArticleCampaign' - campaign: { - __typename?: 'WritingChallenge' - id: string - name: string - shortHash: string - nameZhHant: string - nameZhHans: string - nameEn: string - } - stage?: { __typename?: 'CampaignStage'; id: string } | null - }> - tags?: Array<{ - __typename?: 'Tag' - id: string - content: string - }> | null - donations: { - __typename?: 'ArticleDonationConnection' - totalCount: number - } - likesReceived: { - __typename?: 'AppreciationConnection' - totalCount: number - } - donationsDialog: { - __typename?: 'ArticleDonationConnection' - totalCount: number - } - } - | { __typename: 'Comment' } - | { - __typename: 'Moment' - id: string - createdAt: any - shortHash: string - state: MomentState - content?: string | null - commentCount: number - likeCount: number - liked: boolean - momentState: MomentState - author: { - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ - __typename?: 'Badge' - type: BadgeType - }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - } - assets: Array<{ __typename?: 'Asset'; id: string; path: string }> - commentedFollowees: Array<{ - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ - __typename?: 'Badge' - type: BadgeType - }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - }> - } - }> | null - } - status?: { __typename?: 'UserStatus'; state: UserState } | null - pinnedWorks: Array< - | { - __typename?: 'Article' - slug: string - shortHash: string - summary: string - id: string - pinned: boolean - title: string - cover?: string | null - author: { __typename?: 'User'; id: string; userName?: string | null } - } - | { - __typename?: 'Collection' - id: string - pinned: boolean - title: string - cover?: string | null - articles: { __typename?: 'ArticleConnection'; totalCount: number } - } - > - } | null -} - -export type UserWritingsPrivateQueryVariables = Exact<{ - ids: Array | Scalars['ID']['input'] -}> - -export type UserWritingsPrivateQuery = { - __typename?: 'Query' - nodes?: Array< - | { __typename?: 'Article'; id: string; bookmarked: boolean } - | { __typename?: 'ArticleVersion'; id: string } - | { __typename?: 'Circle'; id: string } - | { __typename?: 'Collection'; id: string } - | { __typename?: 'Comment'; id: string } - | { __typename?: 'CurationChannel'; id: string } - | { __typename?: 'Draft'; id: string } - | { __typename?: 'IcymiTopic'; id: string } - | { - __typename?: 'Moment' - id: string - liked: boolean - commentedFollowees: Array<{ - __typename?: 'User' - id: string - userName?: string | null - displayName?: string | null - avatar?: string | null - status?: { __typename?: 'UserStatus'; state: UserState } | null - liker: { __typename?: 'Liker'; civicLiker: boolean } - info: { - __typename?: 'UserInfo' - badges?: Array<{ __typename?: 'Badge'; type: BadgeType }> | null - cryptoWallet?: { - __typename?: 'CryptoWallet' - id: string - address: string - hasNFTs: boolean - } | null - } - }> - } - | { __typename?: 'Report'; id: string } - | { __typename?: 'Tag'; id: string } - | { __typename?: 'TopicChannel'; id: string } - | { __typename?: 'User'; id: string } - | { __typename?: 'WritingChallenge'; id: string } - > | null -} - -export type UserMomentsReactiveDataQueryVariables = Exact<{ - ids: Array | Scalars['ID']['input'] -}> - -export type UserMomentsReactiveDataQuery = { - __typename?: 'Query' - nodes?: Array< - | { __typename?: 'Article'; id: string } - | { __typename?: 'ArticleVersion'; id: string } - | { __typename?: 'Circle'; id: string } - | { __typename?: 'Collection'; id: string } - | { __typename?: 'Comment'; id: string } - | { __typename?: 'CurationChannel'; id: string } - | { __typename?: 'Draft'; id: string } - | { __typename?: 'IcymiTopic'; id: string } - | { - __typename?: 'Moment' - likeCount: number - commentCount: number - id: string - } - | { __typename?: 'Report'; id: string } - | { __typename?: 'Tag'; id: string } - | { __typename?: 'TopicChannel'; id: string } - | { __typename?: 'User'; id: string } - | { __typename?: 'WritingChallenge'; id: string } - > | null -} diff --git a/src/pages/moments.tsx b/src/pages/moments.tsx new file mode 100644 index 0000000000..9186f57316 --- /dev/null +++ b/src/pages/moments.tsx @@ -0,0 +1,7 @@ +import HottestMomentsView from '~/views/HottestMoments' + +const HottestMoments = () => { + return +} + +export default HottestMoments diff --git a/src/stories/mocks/index.ts b/src/stories/mocks/index.ts index d7e2ad7711..33c7deb3cc 100644 --- a/src/stories/mocks/index.ts +++ b/src/stories/mocks/index.ts @@ -6,6 +6,7 @@ export const MOCK_USER = { id: 'VXNlcjox', // User:1 userName: 'matty', displayName: 'Matty', + isMomentFeedApplied: false, avatar: 'https://imagedelivery.net/kDRCweMmqLnTPNlbum-pYA/prod/avatar/19b36f6e-6311-4cd6-b703-c143a4a49113.png/public', liker: { diff --git a/src/views/HottestMoments/Apply/Button/index.tsx b/src/views/HottestMoments/Apply/Button/index.tsx new file mode 100644 index 0000000000..498a7b3374 --- /dev/null +++ b/src/views/HottestMoments/Apply/Button/index.tsx @@ -0,0 +1,48 @@ +import { useContext, useState } from 'react' +import { FormattedMessage } from 'react-intl' + +import { + OPEN_UNIVERSAL_AUTH_DIALOG, + UNIVERSAL_AUTH_TRIGGER, +} from '~/common/enums' +import { Button, TextIcon, ViewerContext } from '~/components' + +import Dialog from '../Dialog' + +const ApplyMomentFeedButton = () => { + const viewer = useContext(ViewerContext) + const [applied, setApplied] = useState(false) + + if (viewer.isMomentFeedApplied || applied) { + return null + } + + const openAuthDialog = () => { + window.dispatchEvent( + new CustomEvent(OPEN_UNIVERSAL_AUTH_DIALOG, { + detail: { trigger: UNIVERSAL_AUTH_TRIGGER.applyMomentFeed }, + }) + ) + } + + return ( + setApplied(true)}> + {({ openDialog }) => ( + + )} + + ) +} + +export default ApplyMomentFeedButton diff --git a/src/views/HottestMoments/Apply/Dialog/index.tsx b/src/views/HottestMoments/Apply/Dialog/index.tsx new file mode 100644 index 0000000000..4c37c8ca5b --- /dev/null +++ b/src/views/HottestMoments/Apply/Dialog/index.tsx @@ -0,0 +1,138 @@ +import gql from 'graphql-tag' +import { FormattedMessage } from 'react-intl' + +import { ERROR_CODES } from '~/common/enums' +import { Dialog, toast, useDialogSwitch, useMutation } from '~/components' +import { ApplyMomentFeedMutation } from '~/gql/graphql' + +const APPLY_MOMENT_FEED = gql` + mutation ApplyMomentFeed { + applyMomentFeed { + id + isMomentFeedApplied + } + } +` + +export interface ApplyMomentFeedDialogProps { + onApplied?: () => void + children: ({ openDialog }: { openDialog: () => void }) => React.ReactNode +} + +const ApplyMomentFeedDialog = ({ + onApplied, + children, +}: ApplyMomentFeedDialogProps) => { + const { show, openDialog, closeDialog } = useDialogSwitch(true) + + const [applyMomentFeed, { loading }] = useMutation( + APPLY_MOMENT_FEED, + undefined, + { + customErrors: { + [ERROR_CODES.BAD_USER_INPUT]: ( + + ), + }, + } + ) + + const onConfirm = async () => { + try { + await applyMomentFeed() + closeDialog() + onApplied?.() + toast.success({ + message: ( + + ), + }) + } catch {} + } + + return ( + <> + {children({ openDialog })} + + + + } + /> + + + +

+ +

+
+
+ + + } + loading={loading} + onClick={onConfirm} + /> + + } + color="greyDarker" + onClick={closeDialog} + /> + + } + smUpBtns={ + <> + + } + color="greyDarker" + onClick={closeDialog} + /> + } + loading={loading} + color="green" + onClick={onConfirm} + /> + + } + /> +
+ + ) +} + +const LazyApplyMomentFeedDialog = (props: ApplyMomentFeedDialogProps) => ( + }> + {({ openDialog }) => <>{props.children({ openDialog })}} + +) + +export default LazyApplyMomentFeedDialog diff --git a/src/views/HottestMoments/Apply/index.tsx b/src/views/HottestMoments/Apply/index.tsx new file mode 100644 index 0000000000..e67e169975 --- /dev/null +++ b/src/views/HottestMoments/Apply/index.tsx @@ -0,0 +1,9 @@ +import Button from './Button' +import Dialog from './Dialog' + +const Apply = { + Button, + Dialog, +} + +export default Apply diff --git a/src/views/HottestMoments/gql.ts b/src/views/HottestMoments/gql.ts new file mode 100644 index 0000000000..0a3e8c40f1 --- /dev/null +++ b/src/views/HottestMoments/gql.ts @@ -0,0 +1,46 @@ +import gql from 'graphql-tag' + +import { MomentDigestFeed } from '~/components/MomentDigest/Feed' + +const momentConnectionFragment = gql` + fragment HottestMomentConnection on MomentConnection { + pageInfo { + startCursor + endCursor + hasNextPage + } + edges { + cursor + node { + ...MomentDigestFeedMomentPublic + } + } + } + ${MomentDigestFeed.fragments.moment.public} +` + +export const HOTTEST_MOMENTS_PUBLIC = gql` + query HottestMomentsPublic($after: String) { + viewer { + id + recommendation { + hottestMoments(input: { first: 20, after: $after }) { + ...HottestMomentConnection + } + } + } + } + ${momentConnectionFragment} +` + +export const HOTTEST_MOMENTS_PRIVATE = gql` + query HottestMomentsPrivate($ids: [ID!]!) { + nodes(input: { ids: $ids }) { + id + ... on Moment { + ...MomentDigestFeedMomentPrivate + } + } + } + ${MomentDigestFeed.fragments.moment.private} +` diff --git a/src/views/HottestMoments/index.tsx b/src/views/HottestMoments/index.tsx new file mode 100644 index 0000000000..2f572ccf41 --- /dev/null +++ b/src/views/HottestMoments/index.tsx @@ -0,0 +1,161 @@ +import { useContext, useEffect, useRef } from 'react' +import { FormattedMessage, useIntl } from 'react-intl' + +import { mergeConnections } from '~/common/utils' +import { + Announcements, + ArticleFeedPlaceholder, + EmptyWork, + Head, + InfiniteScroll, + Layout, + List, + QueryError, + Spacer, + useFetchPolicy, + usePublicQuery, + ViewerContext, +} from '~/components' +import { MomentDigestFeed } from '~/components/MomentDigest/Feed' +import type { HottestMomentsPublicQuery } from '~/gql/graphql' + +import Sidebar from '../Home/Sidebar' +import Apply from './Apply' +import { HOTTEST_MOMENTS_PRIVATE, HOTTEST_MOMENTS_PUBLIC } from './gql' +import styles from './styles.module.css' + +const HottestMoments = () => { + const intl = useIntl() + const viewer = useContext(ViewerContext) + const { fetchPolicy } = useFetchPolicy() + + const { data, loading, error, fetchMore, client } = + usePublicQuery(HOTTEST_MOMENTS_PUBLIC, { + fetchPolicy, + }) + + const connectionPath = 'viewer.recommendation.hottestMoments' + const result = data?.viewer?.recommendation?.hottestMoments + const { edges, pageInfo } = result || {} + const fetchedPrivateRef = useRef(false) + + const loadPrivate = (publicData?: HottestMomentsPublicQuery) => { + if (!viewer.isAuthed || !publicData) { + return + } + + const publicEdges = + publicData.viewer?.recommendation?.hottestMoments?.edges || [] + const publicIds = publicEdges.map(({ node }) => node.id) + + if (publicIds.length === 0) { + return + } + + client.query({ + query: HOTTEST_MOMENTS_PRIVATE, + fetchPolicy: 'network-only', + variables: { ids: publicIds }, + }) + } + + useEffect(() => { + if (loading || !edges || fetchedPrivateRef.current || !viewer.isAuthed) { + return + } + + loadPrivate(data) + fetchedPrivateRef.current = true + }, [!!edges, loading, viewer.id]) + + const loadMore = async () => { + if (loading) { + return + } + + const { data: newData } = await fetchMore({ + variables: { after: pageInfo?.endCursor }, + updateQuery: (previousResult, { fetchMoreResult }) => + mergeConnections({ + oldData: previousResult, + newData: fetchMoreResult, + path: connectionPath, + dedupe: true, + }), + }) + + loadPrivate(newData) + } + + const renderContent = () => { + if (loading) { + return + } + + if (error) { + return + } + + if (!edges || edges.length <= 0 || !pageInfo) { + return ( + + } + /> + ) + } + + return ( + } + eof + > + + {edges.map(({ node, cursor }) => ( + + + + ))} + + + ) + } + + return ( + + + + + + + + + } + > + + +
+
+ +
+
+ +
+
+ + {renderContent()} +
+ ) +} + +export default HottestMoments diff --git a/src/views/HottestMoments/styles.module.css b/src/views/HottestMoments/styles.module.css new file mode 100644 index 0000000000..67a790d9c5 --- /dev/null +++ b/src/views/HottestMoments/styles.module.css @@ -0,0 +1,17 @@ +.headers { + @mixin flex-center-space-between; + + padding-top: var(--sp20); + background-color: var(--color-white); + + & .title { + font-size: var(--text18); + font-weight: var(--font-medium); + line-height: 1.75rem; + color: var(--color-black); + } +} + +.apply { + flex-shrink: 0; +}