decord/source/actions/ChannelFollowerActionCreators.tsx

66 lines
2.2 KiB
TypeScript
Raw Normal View History

2026-08-13 07:00:46 +00:00
// Module ID: 10264
// Function ID: 10265
2026-07-29 08:29:29 +00:00
// Dependencies: [5, 676, 530, 709, 2]
2026-07-20 16:05:17 +00:00
2026-08-13 07:00:46 +00:00
// Module 10264
2026-07-23 10:11:24 +00:00
import asyncGeneratorStep from "asyncGeneratorStep";
import { Endpoints } from "ME";
const require = arg1;
2026-07-29 08:29:29 +00:00
const result = require("sendRequest").fileFinishedImporting("actions/ChannelFollowerActionCreators.tsx");
2026-07-20 16:05:17 +00:00
export default {
2026-07-29 08:29:29 +00:00
createChannelFollower(webhook_channel_id, closure_1) {
const HTTP = require(530) /* sendRequest */.HTTP;
obj = { url: Endpoints.CHANNEL_FOLLOWERS(closure_1), body: obj, oldFormErrors: true, rejectWithError: null };
obj = { webhook_channel_id };
obj[3] = require(530) /* sendRequest */.rejectWithMigratedError();
2026-07-20 16:05:17 +00:00
return HTTP.post(obj);
},
2026-07-23 10:11:24 +00:00
fetchChannelFollowerStats(closure_0) {
2026-07-29 08:29:29 +00:00
return callback(function*() {
2026-08-04 21:03:28 +00:00
let closure_1 = tmp3;
outer1_1(outer1_2[3]).dispatch({ type: "CHANNEL_FOLLOWER_STATS_FETCH_START" });
let c3 = 1;
const HTTP = outer1_0(outer1_2[2]).HTTP;
const obj1 = { url: null, body: null, oldFormErrors: true, rejectWithError: true };
obj1[0] = c4.CHANNEL_FOLLOWER_STATS(outer1_0);
const obj2 = { channel_id: null };
obj2[0] = outer1_0;
obj1[1] = obj2;
yield HTTP.get(obj1);
if (1 === tmp7) {
c3 = 0;
const obj3 = outer1_1(outer1_2[3]);
const obj4 = { type: "CHANNEL_FOLLOWER_STATS_FETCH_FAILURE", channelId: null };
obj4[1] = body;
obj3.dispatch(obj4);
let c5 = 3;
} 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) {
body = arg1;
const obj = outer1_1(outer1_2[3]);
const obj5 = { type: "CHANNEL_FOLLOWER_STATS_FETCH_SUCCESS", stats: null, channelId: null };
obj5[1] = body.body;
obj5[2] = body;
obj.dispatch(obj5);
c3 = 0;
2026-07-29 08:29:29 +00:00
}
2026-08-04 21:03:28 +00:00
c3 = 0;
return arg1;
2026-07-29 08:29:29 +00:00
})();
2026-07-20 16:05:17 +00:00
},
dismissPublishBump(messageId) {
2026-07-29 08:29:29 +00:00
let obj = importDefault(709);
2026-07-20 16:05:17 +00:00
obj = { type: "CHANNEL_FOLLOWING_PUBLISH_BUMP_DISMISSED", messageId };
obj.dispatch(obj);
},
permanentlyHidePublishBump(channelId) {
2026-07-29 08:29:29 +00:00
let obj = importDefault(709);
2026-07-20 16:05:17 +00:00
obj = { type: "CHANNEL_FOLLOWING_PUBLISH_BUMP_HIDE_PERMANENTLY", channelId };
obj.dispatch(obj);
}
};