@appsemble/lang-sdk
Version:
Language SDK for Appsemble
19 lines • 683 B
JavaScript
import { BaseActionDefinition } from './BaseActionDefinition.js';
import { extendJSONSchema } from '../utils/extendJSONSchema.js';
export const DownloadActionDefinition = extendJSONSchema(BaseActionDefinition, {
type: 'object',
required: ['type', 'filename'],
additionalProperties: false,
properties: {
type: {
enum: ['download'],
description: 'Download the data as a file.',
},
filename: {
type: 'string',
description: 'The filename to save the file as. This must include a file extension.',
pattern: '\\.',
},
},
});
//# sourceMappingURL=DownloadActionDefinition.js.map