File tree Expand file tree Collapse file tree 6 files changed +538
-1
lines changed
create-signature-request-from-template
send-signature-request-reminder
sources/new-signed-document Expand file tree Collapse file tree 6 files changed +538
-1
lines changed Original file line number Diff line number Diff line change 1+ import signaturit from "../../signaturit.app.mjs" ;
2+ import { axios } from "@pipedream/platform" ;
3+
4+ export default {
5+ key : "signaturit-create-certified-email" ,
6+ name : "Create Certified Email" ,
7+ description : "Initiates the creation of a certified email. [See the documentation]()" ,
8+ version : "0.0.{{ts}}" ,
9+ type : "action" ,
10+ props : {
11+ signaturit : {
12+ type : "app" ,
13+ app : "signaturit" ,
14+ } ,
15+ attachments : {
16+ propDefinition : [
17+ signaturit ,
18+ "attachments" ,
19+ ] ,
20+ } ,
21+ recipients : {
22+ propDefinition : [
23+ signaturit ,
24+ "recipients" ,
25+ ] ,
26+ } ,
27+ type : {
28+ propDefinition : [
29+ signaturit ,
30+ "type" ,
31+ ] ,
32+ } ,
33+ templates : {
34+ propDefinition : [
35+ signaturit ,
36+ "templates" ,
37+ ] ,
38+ } ,
39+ body : {
40+ propDefinition : [
41+ signaturit ,
42+ "body" ,
43+ ] ,
44+ optional : true ,
45+ } ,
46+ brandingId : {
47+ propDefinition : [
48+ signaturit ,
49+ "brandingId" ,
50+ ] ,
51+ optional : true ,
52+ } ,
53+ eventsUrl : {
54+ propDefinition : [
55+ signaturit ,
56+ "eventsUrl" ,
57+ ] ,
58+ optional : true ,
59+ } ,
60+ data : {
61+ propDefinition : [
62+ signaturit ,
63+ "data" ,
64+ ] ,
65+ optional : true ,
66+ } ,
67+ subject : {
68+ propDefinition : [
69+ signaturit ,
70+ "subject" ,
71+ ] ,
72+ optional : true ,
73+ } ,
74+ } ,
75+ async run ( { $ } ) {
76+ const response = await this . signaturit . createCertifiedEmail ( ) ;
77+ $ . export ( "$summary" , `Created certified email with ID: ${ response . id } ` ) ;
78+ return response ;
79+ } ,
80+ } ;
Original file line number Diff line number Diff line change 1+ import signaturit from "../../signaturit.app.mjs" ;
2+ import { axios } from "@pipedream/platform" ;
3+
4+ export default {
5+ key : "signaturit-create-signature-request-from-template" ,
6+ name : "Create Signature Request from Template" ,
7+ description : "Creates a signature request using a pre-existing template. [See the documentation]()" ,
8+ version : "0.0.{{ts}}" ,
9+ type : "action" ,
10+ props : {
11+ signaturit,
12+ files : {
13+ propDefinition : [
14+ signaturit ,
15+ "files" ,
16+ ] ,
17+ } ,
18+ name : {
19+ propDefinition : [
20+ signaturit ,
21+ "name" ,
22+ ] ,
23+ } ,
24+ recipients : {
25+ propDefinition : [
26+ signaturit ,
27+ "recipients" ,
28+ ] ,
29+ } ,
30+ body : {
31+ propDefinition : [
32+ signaturit ,
33+ "body" ,
34+ ] ,
35+ optional : true ,
36+ } ,
37+ brandingId : {
38+ propDefinition : [
39+ signaturit ,
40+ "brandingId" ,
41+ ] ,
42+ optional : true ,
43+ } ,
44+ callbackUrl : {
45+ propDefinition : [
46+ signaturit ,
47+ "callbackUrl" ,
48+ ] ,
49+ optional : true ,
50+ } ,
51+ data : {
52+ propDefinition : [
53+ signaturit ,
54+ "data" ,
55+ ] ,
56+ optional : true ,
57+ } ,
58+ deliveryType : {
59+ propDefinition : [
60+ signaturit ,
61+ "deliveryType" ,
62+ ] ,
63+ optional : true ,
64+ } ,
65+ expireTime : {
66+ propDefinition : [
67+ signaturit ,
68+ "expireTime" ,
69+ ] ,
70+ optional : true ,
71+ } ,
72+ eventsUrl : {
73+ propDefinition : [
74+ signaturit ,
75+ "eventsUrl" ,
76+ ] ,
77+ optional : true ,
78+ } ,
79+ replyTo : {
80+ propDefinition : [
81+ signaturit ,
82+ "replyTo" ,
83+ ] ,
84+ optional : true ,
85+ } ,
86+ reminders : {
87+ propDefinition : [
88+ signaturit ,
89+ "reminders" ,
90+ ] ,
91+ optional : true ,
92+ } ,
93+ signingMode : {
94+ propDefinition : [
95+ signaturit ,
96+ "signingMode" ,
97+ ] ,
98+ optional : true ,
99+ } ,
100+ subject : {
101+ propDefinition : [
102+ signaturit ,
103+ "subject" ,
104+ ] ,
105+ optional : true ,
106+ } ,
107+ type : {
108+ propDefinition : [
109+ signaturit ,
110+ "typeSignature" ,
111+ ] ,
112+ optional : true ,
113+ } ,
114+ } ,
115+ async run ( { $ } ) {
116+ const response = await this . signaturit . createSignatureRequest ( ) ;
117+ $ . export ( "$summary" , `Created signature request with ID: ${ response . id } ` ) ;
118+ return response ;
119+ } ,
120+ } ;
Original file line number Diff line number Diff line change 1+ import signaturit from "../../signaturit.app.mjs" ;
2+ import { axios } from "@pipedream/platform" ;
3+
4+ export default {
5+ key : "signaturit-send-signature-request-reminder" ,
6+ name : "Send Signature Request Reminder" ,
7+ description : "Sends a reminder for a pending signature request. [See the documentation](https://docs.signaturit.com/api/latest)" ,
8+ version : "0.0.{{ts}}" ,
9+ type : "action" ,
10+ props : {
11+ signaturit : {
12+ type : "app" ,
13+ app : "signaturit" ,
14+ } ,
15+ signatureRequestId : {
16+ propDefinition : [
17+ signaturit ,
18+ "signatureRequestId" ,
19+ ] ,
20+ } ,
21+ } ,
22+ async run ( { $ } ) {
23+ const response = await this . signaturit . sendReminder ( ) ;
24+ $ . export ( "$summary" , `Sent reminder for signature request ${ this . signatureRequestId } ` ) ;
25+ return response ;
26+ } ,
27+ } ;
Original file line number Diff line number Diff line change @@ -10,4 +10,4 @@ export default defineApp({
1010 console . log ( Object . keys ( this . $auth ) ) ;
1111 } ,
1212 } ,
13- } ) ;
13+ } ) ;
You can’t perform that action at this time.
0 commit comments