Files
twitter-api-client/info/endpoints/endpoints.CommunitiesTools.dae1c29a.js
2023-03-25 15:26:54 -07:00

2 lines
6.9 KiB
JavaScript

(self.webpackChunk_twitter_responsive_web=self.webpackChunk_twitter_responsive_web||[]).push([["endpoints.CommunitiesTools"],{61054:e=>{e.exports={queryId:"Lw0FSdDyFK1-YAxTMciX5Q",operationName:"CommunityCreateRule",operationType:"mutation",metadata:{featureSwitches:["responsive_web_twitter_blue_verified_badge_is_enabled","responsive_web_graphql_exclude_directive_enabled","verified_phone_label_enabled","responsive_web_graphql_skip_user_profile_image_extensions_enabled","responsive_web_graphql_timeline_navigation_enabled"]}}},12235:e=>{e.exports={queryId:"mT0c4v978cyq0Zf-BC-DeA",operationName:"CommunityEditBannerMedia",operationType:"mutation",metadata:{featureSwitches:["responsive_web_twitter_blue_verified_badge_is_enabled","responsive_web_graphql_exclude_directive_enabled","verified_phone_label_enabled","responsive_web_graphql_skip_user_profile_image_extensions_enabled","responsive_web_graphql_timeline_navigation_enabled"]}}},12773:e=>{e.exports={queryId:"W8eKZPaYwvyNJZ7pg4r4IQ",operationName:"CommunityEditName",operationType:"mutation",metadata:{featureSwitches:["responsive_web_twitter_blue_verified_badge_is_enabled","responsive_web_graphql_exclude_directive_enabled","verified_phone_label_enabled","responsive_web_graphql_skip_user_profile_image_extensions_enabled","responsive_web_graphql_timeline_navigation_enabled"]}}},3211:e=>{e.exports={queryId:"DhljqegkRKtjuVtekwwMag",operationName:"CommunityEditPurpose",operationType:"mutation",metadata:{featureSwitches:["responsive_web_twitter_blue_verified_badge_is_enabled","responsive_web_graphql_exclude_directive_enabled","verified_phone_label_enabled","responsive_web_graphql_skip_user_profile_image_extensions_enabled","responsive_web_graphql_timeline_navigation_enabled"]}}},11382:e=>{e.exports={queryId:"WDuZdd4MR8jdzUHTZ6EKjQ",operationName:"CommunityEditRule",operationType:"mutation",metadata:{featureSwitches:["responsive_web_twitter_blue_verified_badge_is_enabled","responsive_web_graphql_exclude_directive_enabled","verified_phone_label_enabled","responsive_web_graphql_skip_user_profile_image_extensions_enabled","responsive_web_graphql_timeline_navigation_enabled"]}}},4389:e=>{e.exports={queryId:"vQwmpZCfRYV29MqaErvw9A",operationName:"CommunityEditTheme",operationType:"mutation",metadata:{featureSwitches:["responsive_web_twitter_blue_verified_badge_is_enabled","responsive_web_graphql_exclude_directive_enabled","verified_phone_label_enabled","responsive_web_graphql_skip_user_profile_image_extensions_enabled","responsive_web_graphql_timeline_navigation_enabled"]}}},36058:e=>{e.exports={queryId:"Nk5Su5z52-XsjPsEZJE-Uw",operationName:"CommunityRemoveBannerMedia",operationType:"mutation",metadata:{featureSwitches:["responsive_web_twitter_blue_verified_badge_is_enabled","responsive_web_graphql_exclude_directive_enabled","verified_phone_label_enabled","responsive_web_graphql_skip_user_profile_image_extensions_enabled","responsive_web_graphql_timeline_navigation_enabled"]}}},44565:e=>{e.exports={queryId:"bqOusPLTfJdxT6xENq10lQ",operationName:"CommunityRemoveRule",operationType:"mutation",metadata:{featureSwitches:["responsive_web_twitter_blue_verified_badge_is_enabled","responsive_web_graphql_exclude_directive_enabled","verified_phone_label_enabled","responsive_web_graphql_skip_user_profile_image_extensions_enabled","responsive_web_graphql_timeline_navigation_enabled"]}}},16786:e=>{e.exports={queryId:"HITt3zQQ6YwdEVVSyCWw1g",operationName:"CommunityReorderRules",operationType:"mutation",metadata:{featureSwitches:["responsive_web_twitter_blue_verified_badge_is_enabled","responsive_web_graphql_exclude_directive_enabled","verified_phone_label_enabled","responsive_web_graphql_skip_user_profile_image_extensions_enabled","responsive_web_graphql_timeline_navigation_enabled"]}}},40873:(e,i,t)=>{"use strict";t.r(i),t.d(i,{default:()=>x});var n=t(6899),_=t(17360),a=t(83175),r=t(38269),o=t(61054),m=t.n(o),d=t(12235),s=t.n(d),u=t(12773),l=t.n(u),p=t(3211),b=t.n(p),c=t(11382),v=t.n(c),y=t(4389),h=t.n(y),w=t(36058),g=t.n(w),f=t(44565),q=t.n(f),I=t(16786),C=t.n(I);const x=({apiClient:e,featureSwitches:i})=>({editCommunityName:t=>e.graphQL(l(),{communityId:t.communityId,name:t.name,...(0,a.S)(i)},(0,_.kj)((e=>{var i;return!(null!=(i=e.community_name_put)&&i.name)}),"GQL Communities: Failed to edit community name")).then((e=>(0,n.Fv)(e.community_name_put,r.ZP))),editCommunityPurpose:t=>e.graphQL(b(),{communityId:t.communityId,description:t.purpose,...(0,a.S)(i)},(0,_.kj)((e=>{var i;return!(null!=(i=e.community_description_put)&&i.description)}),"GQL Communities: Failed to edit community purpose")).then((e=>(0,n.Fv)(e.community_description_put,r.ZP))),editCommunityTheme:t=>e.graphQL(h(),{communityId:t.communityId,theme:t.theme,...(0,a.S)(i)},(0,_.kj)((e=>{var i;return!(null!=(i=e.community_custom_theme_put)&&i.custom_theme)}),"GQL Communities: Failed to edit community theme")).then((e=>(0,n.Fv)(e.community_custom_theme_put,r.ZP))),editCommunityRule:t=>e.graphQL(v(),{communityId:t.communityId,ruleId:t.ruleId,name:t.name,description:t.description,...(0,a.S)(i)},(0,_.kj)((e=>!(null!=e&&e.community_rule_update)),"GQL Communities: Failed to edit community rule")).then((e=>(0,n.Fv)(e.community_rule_update,r.ZP))),createCommunityRule:t=>e.graphQL(m(),{communityId:t.communityId,name:t.name,description:t.description,...(0,a.S)(i)},(0,_.kj)((e=>!(null!=e&&e.community_rule_create)),"GQL Communities: Failed to create community rule")).then((e=>(0,n.Fv)(e.community_rule_create,r.ZP))),removeCommunityRule:t=>e.graphQL(q(),{communityId:t.communityId,ruleId:t.ruleId,...(0,a.S)(i)},(0,_.kj)((e=>!(null!=e&&e.community_rule_remove)),"GQL Communities: Failed to remove community rule")).then((e=>(0,n.Fv)(e.community_rule_remove,r.ZP))),reorderCommunityRules:t=>e.graphQL(C(),{communityId:t.communityId,ruleIds:t.ruleIds,...(0,a.S)(i)},(0,_.kj)((e=>!(null!=e&&e.community_rules_reorder)),"GQL Communities: Failed to reorder community rules")).then((e=>(0,n.Fv)(e.community_rules_reorder,r.ZP))),editCommunityBannerMedia:t=>e.graphQL(s(),{communityId:t.communityId,mediaId:t.mediaId,...(0,a.S)(i)},(0,_.kj)((e=>{var i;return!(null!=(i=e.community_custom_banner_media_put)&&i.custom_banner_media)}),"GQL Communities: Failed to edit community banner media")).then((e=>(0,n.Fv)(e.community_custom_banner_media_put,r.ZP))),removeCommunityBannerMedia:t=>e.graphQL(g(),{communityId:t.communityId,...(0,a.S)(i)},(0,_.kj)((e=>!e.community_custom_banner_media_delete),"GQL Communities: Failed to remove community banner media")).then((e=>(0,n.Fv)(e.community_custom_banner_media_delete,r.ZP)))})},83175:(e,i,t)=>{"use strict";t.d(i,{S:()=>r,d:()=>a});var n=t(60917),_=t.n(n);const a=e=>{const i=e.isTrue("responsive_web_reactions_enabled");return{...r(e),withDownvotePerspective:e.isTrue("rweb_reply_downvote_enabled"),withReactionsMetadata:i,withReactionsPerspective:i}},r=e=>_()}}]);
//# sourceMappingURL=https://ton.local.twitter.com/responsive-web-internal/sourcemaps/client-web/endpoints.CommunitiesTools.dae1c29a.js.map