Skip to content

Commit a0a90cb

Browse files
committed
boldsign init
1 parent 6782fe0 commit a0a90cb

File tree

6 files changed

+985
-3
lines changed

6 files changed

+985
-3
lines changed
Lines changed: 186 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,186 @@
1+
import boldsign from "../../boldsign.app.mjs";
2+
import { axios } from "@pipedream/platform";
3+
4+
export default {
5+
key: "boldsign-send-document-template",
6+
name: "Send Document Using Template",
7+
description: "Send documents for e-signature using a BoldSign template. [See the documentation](https://developers.boldsign.com/documents/send-document-from-template/?region=us)",
8+
version: "0.0.{{ts}}",
9+
type: "action",
10+
props: {
11+
boldsign,
12+
templateId: {
13+
propDefinition: [
14+
boldsign,
15+
"templateId",
16+
],
17+
},
18+
title: {
19+
propDefinition: [
20+
boldsign,
21+
"title",
22+
],
23+
},
24+
message: {
25+
propDefinition: [
26+
boldsign,
27+
"message",
28+
],
29+
},
30+
roles: {
31+
propDefinition: [
32+
boldsign,
33+
"roles",
34+
],
35+
},
36+
brandId: {
37+
propDefinition: [
38+
boldsign,
39+
"brandId",
40+
],
41+
},
42+
labels: {
43+
propDefinition: [
44+
boldsign,
45+
"labels",
46+
],
47+
},
48+
disableEmails: {
49+
propDefinition: [
50+
boldsign,
51+
"disableEmails",
52+
],
53+
},
54+
disableSMS: {
55+
propDefinition: [
56+
boldsign,
57+
"disableSMS",
58+
],
59+
},
60+
hitDocumentId: {
61+
propDefinition: [
62+
boldsign,
63+
"hitDocumentId",
64+
],
65+
},
66+
enableAutoReminder: {
67+
propDefinition: [
68+
boldsign,
69+
"enableAutoReminder",
70+
],
71+
},
72+
reminderDays: {
73+
propDefinition: [
74+
boldsign,
75+
"reminderDays",
76+
],
77+
},
78+
reminderCount: {
79+
propDefinition: [
80+
boldsign,
81+
"reminderCount",
82+
],
83+
},
84+
cc: {
85+
propDefinition: [
86+
boldsign,
87+
"cc",
88+
],
89+
},
90+
expiryDays: {
91+
propDefinition: [
92+
boldsign,
93+
"expiryDays",
94+
],
95+
},
96+
enablePrintAndSign: {
97+
propDefinition: [
98+
boldsign,
99+
"enablePrintAndSign",
100+
],
101+
},
102+
enableReassign: {
103+
propDefinition: [
104+
boldsign,
105+
"enableReassign",
106+
],
107+
},
108+
enableSigningOrder: {
109+
propDefinition: [
110+
boldsign,
111+
"enableSigningOrder",
112+
],
113+
},
114+
disableExpiryAlert: {
115+
propDefinition: [
116+
boldsign,
117+
"disableExpiryAlert",
118+
],
119+
},
120+
documentInfo: {
121+
propDefinition: [
122+
boldsign,
123+
"documentInfo",
124+
],
125+
},
126+
onBehalfOf: {
127+
propDefinition: [
128+
boldsign,
129+
"onBehalfOf",
130+
],
131+
},
132+
roleRemovalIndices: {
133+
propDefinition: [
134+
boldsign,
135+
"roleRemovalIndices",
136+
],
137+
},
138+
documentDownloadOption: {
139+
propDefinition: [
140+
boldsign,
141+
"documentDownloadOption",
142+
],
143+
},
144+
formGroups: {
145+
propDefinition: [
146+
boldsign,
147+
"formGroups",
148+
],
149+
},
150+
files: {
151+
propDefinition: [
152+
boldsign,
153+
"files",
154+
],
155+
},
156+
fileUrls: {
157+
propDefinition: [
158+
boldsign,
159+
"fileUrls",
160+
],
161+
},
162+
recipientNotificationSettings: {
163+
propDefinition: [
164+
boldsign,
165+
"recipientNotificationSettings",
166+
],
167+
},
168+
removeFormfields: {
169+
propDefinition: [
170+
boldsign,
171+
"removeFormfields",
172+
],
173+
},
174+
enableAuditTrailLocalization: {
175+
propDefinition: [
176+
boldsign,
177+
"enableAuditTrailLocalization",
178+
],
179+
},
180+
},
181+
async run({ $ }) {
182+
const response = await this.boldsign.sendDocument();
183+
$.export("$summary", `Document sent successfully using template ${this.templateId}`);
184+
return response;
185+
},
186+
};

0 commit comments

Comments
 (0)