feat(ui-flow): IPC for receipt retention and worker script export
Handle set-automation-receipt-retention and export-integration-worker-script messages from server settings automation panel (Phase 90). Co-authored-by: Cursor <[email protected]>
This commit is contained in:
@@ -100,6 +100,20 @@ async function dispatchUiMessage (platform, msg, hooks = {}) {
|
||||
pushState()
|
||||
return true
|
||||
}
|
||||
if (t === 'set-automation-receipt-retention') {
|
||||
await platform.setAutomationReceiptRetention(msg.retention || {})
|
||||
pushState()
|
||||
return true
|
||||
}
|
||||
if (t === 'export-integration-worker-script') {
|
||||
const script = platform.buildIntegrationWorkerScript(msg.templateId || 'message-logger')
|
||||
send({
|
||||
type: 'integration-worker-script',
|
||||
templateId: msg.templateId,
|
||||
script
|
||||
})
|
||||
return true
|
||||
}
|
||||
if (t === 'set-announcement-crosspost') {
|
||||
await platform.setAnnouncementCrosspostTargets(
|
||||
msg.channelId,
|
||||
|
||||
Reference in New Issue
Block a user