decord/stable/source/actions/DraftActionCreators.tsx

45 lines
1.5 KiB
TypeScript
Raw Permalink Normal View History

2026-10-06 22:12:49 +00:00
// Module ID: 7200
// Function ID: 7201
// Name: DraftActionCreators
2026-10-06 22:12:49 +00:00
// Dependencies: [585, 2]
2026-10-06 22:12:49 +00:00
// Module 7200 (DraftActionCreators)
import DispatcherDefault from "Dispatcher" /* 585 */;
import size from "module_2" /* 2 */;
2026-10-06 22:12:49 +00:00
let obj = {
clearDraft(id, ThreadSettings) {
2026-10-06 22:12:49 +00:00
const obj = DispatcherDefault;
const obj2 = { type: "DRAFT_CLEAR", channelId: id, draftType: ThreadSettings };
obj.dispatch(obj2);
},
clearDraftCommand(channelId, draftType) {
2026-10-06 22:12:49 +00:00
const obj = DispatcherDefault;
const obj2 = { type: "DRAFT_COMMAND_CLEAR", channelId, draftType };
obj.dispatch(obj2);
},
saveDraft(id, result1, ChannelMessage, toDraftCommandResult) {
2026-10-06 22:12:49 +00:00
const obj = DispatcherDefault;
const obj2 = { type: "DRAFT_SAVE", channelId: id, draft: result1, draftType: ChannelMessage, command: toDraftCommandResult };
obj.dispatch(obj2);
},
changeDraft(id, draft, ChannelMessage, command) {
2026-10-06 22:12:49 +00:00
const obj = DispatcherDefault;
const obj2 = { type: "DRAFT_CHANGE", channelId: id, draft, draftType: ChannelMessage, command };
obj.dispatch(obj2);
},
changeThreadSettings(id, draft) {
2026-10-06 22:12:49 +00:00
const obj = DispatcherDefault;
const obj2 = { type: "THREAD_SETTINGS_DRAFT_CHANGE", channelId: id, draft };
obj.dispatch(obj2);
},
changeScheduledMessage(channelId, draft) {
2026-10-06 22:12:49 +00:00
const obj = DispatcherDefault;
const obj2 = { type: "SCHEDULED_MESSAGE_DRAFT_CHANGE", channelId, draft };
obj.dispatch(obj2);
}
};
2026-10-06 22:12:49 +00:00
const result = size.fileFinishedImporting("actions/DraftActionCreators.tsx");
export default obj;