@@ -4,7 +4,7 @@ export default {
44 key : "docugenerate-generate-document" ,
55 name : "Generate Document" ,
66 description : "Generates a document from a template" ,
7- version : "0.0.2 " ,
7+ version : "0.0.3 " ,
88 type : "action" ,
99 props : {
1010 app,
@@ -26,25 +26,25 @@ export default {
2626 description : "Output format of the generated document. Defaults to .docx." ,
2727 optional : true ,
2828 options : [
29+ { label : 'PDF (.pdf)' , value : '.pdf' } ,
2930 { label : 'Microsoft Word (.docx)' , value : '.docx' } ,
3031 { label : 'Microsoft Word 2007 (.doc)' , value : '.doc' } ,
3132 { label : 'OpenDocument Format (.odt)' , value : '.odt' } ,
32- { label : 'PDF (.pdf)' , value : '.pdf' } ,
3333 { label : 'Plain Text (.txt)' , value : '.txt' } ,
3434 { label : 'PNG (.png)' , value : '.png' } ,
3535 ] ,
3636 } ,
3737 data : {
3838 type : "object" ,
39- label : "Template Data" ,
39+ label : "Data" ,
4040 description : "Data that is used to generate the document." ,
4141 } ,
4242 } ,
4343 async run ( { $ } ) {
4444 const body = {
4545 template_id : this . templateId ,
4646 name : this . name ,
47- format : this . format ,
47+ output_format : this . format ,
4848 data : this . data ,
4949 } ;
5050
0 commit comments