decord/source/modules/self_mod/ChannelSafetyWarningsActionCreators.tsx

47 lines
2.5 KiB
TypeScript
Raw Normal View History

2026-07-25 08:10:48 +00:00
// Module ID: 10096
2026-07-27 11:26:19 +00:00
// Function ID: 78241
2026-07-20 16:05:17 +00:00
// Name: dismissChannelSafetyWarnings
2026-07-25 08:10:48 +00:00
// Dependencies: [9031, 653, 686, 507, 2]
2026-07-20 16:05:17 +00:00
// Exports: acknowledgeChannelSafetyWarningTooltip, clearChannelSafetyWarnings, dismissChannelSafetyWarnings, markAsStrangerDanger, reportFalsePositive, setChannelSafetyWarningFeedback
2026-07-25 08:10:48 +00:00
// Module 10096 (dismissChannelSafetyWarnings)
2026-07-23 10:11:24 +00:00
import { SafetyWarningTypes } from "_isNativeReflectConstruct";
import { Endpoints } from "ME";
const result = require("dispatcher").fileFinishedImporting("modules/self_mod/ChannelSafetyWarningsActionCreators.tsx");
2026-07-20 16:05:17 +00:00
export const dismissChannelSafetyWarnings = function dismissChannelSafetyWarnings(channelId, items) {
2026-07-23 10:11:24 +00:00
let obj = importDefault(686);
2026-07-20 16:05:17 +00:00
obj = { type: "DISMISS_CHANNEL_SAFETY_WARNINGS", channelId, warningIds: items };
obj.dispatch(obj);
2026-07-23 10:11:24 +00:00
const HTTP = require(507) /* _isNativeReflectConstruct */.HTTP;
obj = { url: Endpoints.CHANNEL_SAFETY_WARNINGS_ACK(channelId), body: obj1, oldFormErrors: true, rejectWithError: require(507) /* _isNativeReflectConstruct */.rejectWithMigratedError() };
2026-07-20 16:05:17 +00:00
return HTTP.post(obj);
};
export const setChannelSafetyWarningFeedback = function setChannelSafetyWarningFeedback(channelId, warningId, feedbackType) {
2026-07-23 10:11:24 +00:00
let obj = importDefault(686);
2026-07-20 16:05:17 +00:00
obj = { type: "CHANNEL_SAFETY_WARNING_FEEDBACK", channelId, warningId, feedbackType };
obj.dispatch(obj);
};
export const clearChannelSafetyWarnings = function clearChannelSafetyWarnings(channelId) {
2026-07-23 10:11:24 +00:00
let obj = importDefault(686);
2026-07-20 16:05:17 +00:00
obj = { type: "CLEAR_CHANNEL_SAFETY_WARNINGS", channelId };
obj.dispatch(obj);
};
export const acknowledgeChannelSafetyWarningTooltip = function acknowledgeChannelSafetyWarningTooltip(channelId) {
2026-07-23 10:11:24 +00:00
let obj = importDefault(686);
2026-07-20 16:05:17 +00:00
obj = { type: "ACKNOWLEDGE_CHANNEL_SAFETY_WARNING_TOOLTIP", channelId };
obj.dispatch(obj);
};
export const reportFalsePositive = function reportFalsePositive(arg0) {
2026-07-23 10:11:24 +00:00
const HTTP = require(507) /* _isNativeReflectConstruct */.HTTP;
const obj = { url: Endpoints.SAFETY_WARNING_FALSE_POSITIVE(arg0), rejectWithError: require(507) /* _isNativeReflectConstruct */.rejectWithMigratedError() };
2026-07-20 16:05:17 +00:00
return HTTP.post(obj);
};
export const markAsStrangerDanger = function markAsStrangerDanger(id) {
2026-07-23 10:11:24 +00:00
const HTTP = require(507) /* _isNativeReflectConstruct */.HTTP;
obj = { url: Endpoints.ADD_SAFETY_WARNING(id), body: obj };
obj = { safety_warning_type: SafetyWarningTypes.STRANGER_DANGER, rejectWithError: require(507) /* _isNativeReflectConstruct */.rejectWithMigratedError() };
2026-07-20 16:05:17 +00:00
return HTTP.post(obj);
};