feat: add announce delivery mode for automation runs
This commit is contained in:
@@ -1059,6 +1059,16 @@ describe('configSchema automation', () => {
|
||||
expect(result.automation.delivery_mode).toBe('isolated_job');
|
||||
});
|
||||
|
||||
it('accepts announce automation delivery mode', () => {
|
||||
const result = configSchema.parse({
|
||||
...baseConfig,
|
||||
automation: {
|
||||
delivery_mode: 'announce',
|
||||
},
|
||||
});
|
||||
expect(result.automation.delivery_mode).toBe('announce');
|
||||
});
|
||||
|
||||
it('accepts config with cron jobs', () => {
|
||||
const result = configSchema.parse({
|
||||
...baseConfig,
|
||||
|
||||
@@ -417,7 +417,7 @@ const minioSyncAutomationSchema = z.object({
|
||||
notify_on_success: z.boolean().default(false),
|
||||
}).default({});
|
||||
|
||||
const automationDeliveryModeSchema = z.enum(['shared_session', 'isolated_job']);
|
||||
const automationDeliveryModeSchema = z.enum(['shared_session', 'isolated_job', 'announce']);
|
||||
|
||||
const automationSchema = z.object({
|
||||
/** Session strategy for automation-triggered runs (cron/webhooks/gmail). */
|
||||
|
||||
Reference in New Issue
Block a user