Feat: Add one-shot pad override controls for export
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { z } from 'zod';
|
||||
import { ExportFormatId } from '../../../types/types';
|
||||
import { ExportFormatId, PadCode } from '../../../types/types';
|
||||
|
||||
const FORMAT_IDS: [ExportFormatId, ...ExportFormatId[]] = [
|
||||
'ableton',
|
||||
@@ -11,6 +11,11 @@ const FORMAT_IDS: [ExportFormatId, ...ExportFormatId[]] = [
|
||||
export const exportFormSchema = z.object({
|
||||
format: z.enum(FORMAT_IDS),
|
||||
abletonVersion: z.enum(['10', '11']),
|
||||
abletonOneShotPads: z.array(
|
||||
z.custom<PadCode>(
|
||||
(value) => typeof value === 'string' && /^[abcd]\d+$/.test(value),
|
||||
),
|
||||
),
|
||||
projectName: z.string(),
|
||||
includeArchivedSamples: z.boolean(),
|
||||
exportAllPadsWithSamples: z.boolean(),
|
||||
|
||||
Reference in New Issue
Block a user