Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions components/documint/actions/create-document/create-document.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import app from "../../documint.app.mjs";

export default {
name: "Create Document",
version: "0.0.1",
version: "0.0.2",
key: "documint-create-document",
description: "Create a document. [See the documentation](https://documenter.getpostman.com/view/11741160/TVK5cLxQ#032798a4-6eb6-43cd-9c1b-9ba313f7d39c)",
type: "action",
Expand All @@ -19,6 +19,13 @@ export default {
description: "Variables to merge with template. E.g. `{ \"company\": \"Pipedream\" }`",
type: "object",
},
preview: {
type: "boolean",
label: "Preview",
description: "Set to `false` to create the document without a watermark",
optional: true,
default: true,
},
},
async run({ $ }) {
const variables = typeof this.variables === "string"
Expand All @@ -30,15 +37,15 @@ export default {
templateId: this.templateId,
params: {
active: true,
preview: true,
preview: this.preview,
},
data: {
...variables,
},
});

if (response) {
$.export("$summary", `Successfully created document with ID \`${response.id}\``);
$.export("$summary", `Successfully created document with ID \`${response._id}\``);
}

return response;
Expand Down
4 changes: 2 additions & 2 deletions components/documint/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@pipedream/documint",
"version": "0.1.0",
"version": "0.1.1",
"description": "Pipedream Documint Components",
"main": "documint.app.mjs",
"keywords": [
Expand All @@ -13,6 +13,6 @@
"access": "public"
},
"dependencies": {
"@pipedream/platform": "^1.5.1"
"@pipedream/platform": "^3.1.0"
}
}
12 changes: 6 additions & 6 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading