decord/source/actions/ChannelFollowerActionCreators.tsx

53 lines
2 KiB
TypeScript
Raw Normal View History

// Module ID: 11466
// Function ID: 11467
// Name: ChannelFollowerActionCreators
// Dependencies: [5, 1074, 1270, 573, 2]
2026-07-20 16:05:17 +00:00
// Module 11466 (ChannelFollowerActionCreators)
import DispatcherDefault from "Dispatcher" /* 573 */;
import HTTPUtils from "HTTPUtils" /* 1270 */;
import asyncGeneratorStep from "asyncGeneratorStep" /* 5 */;
2026-07-23 10:11:24 +00:00
require = fn;
const Endpoints = fn(1074).Endpoints;
const size = fn(2);
const result = size.fileFinishedImporting("actions/ChannelFollowerActionCreators.tsx");
2026-07-20 16:05:17 +00:00
export default {
createChannelFollower(webhook_channel_id, arg1) {
const HTTP = HTTPUtils.HTTP;
const request = { url: Endpoints.CHANNEL_FOLLOWERS(arg1), body: { webhook_channel_id }, oldFormErrors: true, rejectWithError: HTTPUtils.rejectWithMigratedError() };
return HTTP.post(request);
2026-07-20 16:05:17 +00:00
},
fetchChannelFollowerStats(arg0) {
closure_0 = arg0;
return (async () => {
tmp3(tmp21[3]).dispatch({ type: "CHANNEL_FOLLOWER_STATS_FETCH_START" });
const HTTP = channel_id(tmp21[2]).HTTP;
const request = { url: c4.CHANNEL_FOLLOWER_STATS(channel_id), body: { channel_id }, oldFormErrors: true, rejectWithError: true };
await HTTP.get(request);
2026-08-04 21:03:28 +00:00
if (1 === tmp7) {
c3 = 0;
tmp3(tmp21[3]).dispatch({ type: "CHANNEL_FOLLOWER_STATS_FETCH_FAILURE", channelId: closure_129_0 });
2026-08-24 06:08:38 +00:00
c5 = 3;
tmp3(tmp21[3]);
2026-08-04 21:03:28 +00:00
} else if (arg0 === 1) {
2026-07-29 08:29:29 +00:00
c5 = 3;
2026-08-04 21:03:28 +00:00
throw arg1;
} else if (arg0 !== 2) {
closure_128_0 = arg1;
tmp3(tmp21[3]).dispatch({ type: "CHANNEL_FOLLOWER_STATS_FETCH_SUCCESS", stats: closure_128_0.body, channelId: closure_129_0 });
2026-08-04 21:03:28 +00:00
c3 = 0;
tmp3(tmp21[3]);
2026-07-29 08:29:29 +00:00
}
2026-08-04 21:03:28 +00:00
return arg1;
2026-07-29 08:29:29 +00:00
})();
2026-07-20 16:05:17 +00:00
},
dismissPublishBump(messageId) {
DispatcherDefault.dispatch({ type: "CHANNEL_FOLLOWING_PUBLISH_BUMP_DISMISSED", messageId });
2026-07-20 16:05:17 +00:00
},
permanentlyHidePublishBump(channelId) {
DispatcherDefault.dispatch({ type: "CHANNEL_FOLLOWING_PUBLISH_BUMP_HIDE_PERMANENTLY", channelId });
2026-07-20 16:05:17 +00:00
}
};