@apdf/n8n-nodes-apdf 1.1.0 → 1.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +19 -1
- package/dist/nodes/Apdf/Apdf.node.js +7 -1
- package/dist/nodes/Apdf/Apdf.node.js.map +1 -1
- package/dist/nodes/Apdf/descriptions/SignatureRequestDescription.d.ts +3 -0
- package/dist/nodes/Apdf/descriptions/SignatureRequestDescription.js +233 -0
- package/dist/nodes/Apdf/descriptions/SignatureRequestDescription.js.map +1 -0
- package/dist/nodes/Apdf/descriptions/index.d.ts +1 -0
- package/dist/nodes/Apdf/descriptions/index.js +1 -0
- package/dist/nodes/Apdf/descriptions/index.js.map +1 -1
- package/dist/nodes/shared/events.js +15 -0
- package/dist/nodes/shared/events.js.map +1 -1
- package/dist/package.json +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -98,11 +98,15 @@ selected.
|
|
|
98
98
|
| Annotation Created | A reader creates an annotation |
|
|
99
99
|
| Annotation Updated | A reader modifies an annotation |
|
|
100
100
|
| Annotation Deleted | A reader removes an annotation |
|
|
101
|
+
| Document Signed | A signer signs their part, or the company approves |
|
|
102
|
+
| Signature Declined | A signer declines, which ends the request |
|
|
103
|
+
| Signing Completed | Everyone signed and the signed PDF is ready |
|
|
101
104
|
|
|
102
105
|
Document and page events — opened, downloaded, printed, viewed, read and left — trigger an
|
|
103
106
|
automation **once per reading session**, even where the underlying measurement repeats. Page
|
|
104
107
|
Read is measured every 15 seconds, but your workflow runs once for that session. Text Copied,
|
|
105
|
-
Link Clicked, Form Submitted and the
|
|
108
|
+
Link Clicked, Form Submitted, the annotation events and the signature events fire every time
|
|
109
|
+
they happen.
|
|
106
110
|
|
|
107
111
|
### Output
|
|
108
112
|
|
|
@@ -143,6 +147,9 @@ The trigger emits the automation payload unchanged:
|
|
|
143
147
|
| Form Submitted | `fields` |
|
|
144
148
|
| Annotation Created, Annotation Updated | `page`, `type`, `comment_text`, `comment_author`, `annotated_text` |
|
|
145
149
|
| Annotation Deleted | `page` |
|
|
150
|
+
| Document Signed | `request_id`, `role`, `name`, `email`, `signed_at`, `metadata` |
|
|
151
|
+
| Signature Declined | `request_id`, `role`, `name`, `email`, `declined_at`, `decline_reason`, `metadata` |
|
|
152
|
+
| Signing Completed | `request_id`, `completed_at`, `signers`, `file_url`, `metadata` |
|
|
146
153
|
| Document Opened, Downloaded, Printed | `null` |
|
|
147
154
|
|
|
148
155
|
### Example
|
|
@@ -197,6 +204,17 @@ anonymous reader. Create, list, delete, activate and deactivate links.
|
|
|
197
204
|
|
|
198
205
|
A **Recipient Name** is required; **Recipient Email** is optional.
|
|
199
206
|
|
|
207
|
+
### Signature Request
|
|
208
|
+
|
|
209
|
+
Ask people to sign a document, each their own part: a recipient by name and email, who signs
|
|
210
|
+
in their tracking link with a code sent to their email; a member of your workspace, who signs
|
|
211
|
+
after logging in; or your company, which approves its part automatically once everyone else
|
|
212
|
+
has signed. **Create** takes the signers and, optionally, where their fields go: at an anchor
|
|
213
|
+
text, on a signature box of the PDF, or at coordinates. Without fields, the ones placed in the
|
|
214
|
+
dashboard are used. **Get** returns the latest request with each signer's status and, once
|
|
215
|
+
completed, the link to the signed PDF (valid for 7 days). **Cancel** withdraws a pending
|
|
216
|
+
request.
|
|
217
|
+
|
|
200
218
|
### Analytics
|
|
201
219
|
|
|
202
220
|
| Operation | Returns |
|
|
@@ -14,7 +14,7 @@ class Apdf {
|
|
|
14
14
|
group: ['transform'],
|
|
15
15
|
version: 1,
|
|
16
16
|
subtitle: '={{$parameter["operation"] + ": " + $parameter["resource"]}}',
|
|
17
|
-
description: 'Track shared PDFs, read engagement analytics and process PDF files',
|
|
17
|
+
description: 'Track shared PDFs, request signatures, read engagement analytics and process PDF files',
|
|
18
18
|
defaults: {
|
|
19
19
|
name: 'Apdf',
|
|
20
20
|
},
|
|
@@ -61,6 +61,10 @@ class Apdf {
|
|
|
61
61
|
name: 'PDF',
|
|
62
62
|
value: 'pdf',
|
|
63
63
|
},
|
|
64
|
+
{
|
|
65
|
+
name: 'Signature Request',
|
|
66
|
+
value: 'signatureRequest',
|
|
67
|
+
},
|
|
64
68
|
{
|
|
65
69
|
name: 'Tracking Link',
|
|
66
70
|
value: 'link',
|
|
@@ -80,6 +84,8 @@ class Apdf {
|
|
|
80
84
|
...descriptions_1.linkFields,
|
|
81
85
|
...descriptions_1.pdfOperations,
|
|
82
86
|
...descriptions_1.pdfFields,
|
|
87
|
+
...descriptions_1.signatureRequestOperations,
|
|
88
|
+
...descriptions_1.signatureRequestFields,
|
|
83
89
|
],
|
|
84
90
|
};
|
|
85
91
|
this.methods = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Apdf.node.js","sourceRoot":"","sources":["../../../nodes/Apdf/Apdf.node.ts"],"names":[],"mappings":";;;AAAA,+CAOsB;AAEtB,
|
|
1
|
+
{"version":3,"file":"Apdf.node.js","sourceRoot":"","sources":["../../../nodes/Apdf/Apdf.node.ts"],"names":[],"mappings":";;;AAAA,+CAOsB;AAEtB,iDAewB;AACxB,+EAAyE;AACzE,mDAAqD;AAErD,MAAa,IAAI;IAAjB;QACC,gBAAW,GAAyB;YACnC,WAAW,EAAE,MAAM;YACnB,IAAI,EAAE,MAAM;YACZ,IAAI,EAAE,EAAE,KAAK,EAAE,eAAe,EAAE,IAAI,EAAE,oBAAoB,EAAE;YAC5D,KAAK,EAAE,CAAC,WAAW,CAAC;YACpB,OAAO,EAAE,CAAC;YACV,QAAQ,EAAE,8DAA8D;YACxE,WAAW,EAAE,wFAAwF;YACrG,QAAQ,EAAE;gBACT,IAAI,EAAE,MAAM;aACZ;YACD,YAAY,EAAE,IAAI;YAClB,MAAM,EAAE,CAAC,kCAAmB,CAAC,IAAI,CAAC;YAClC,OAAO,EAAE,CAAC,kCAAmB,CAAC,IAAI,CAAC;YACnC,WAAW,EAAE;gBACZ;oBACC,IAAI,EAAE,sCAAgB;oBACtB,QAAQ,EAAE,IAA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EAAE,EAAE,EAAE,QAAQ,EAAE,GAAG,EAAE;qBACrB,CAAC,CAAC;oBAEH,OAAQ,CAAC,MAAA,QAAQ,CAAC,IAAI,mCAAI,EAAE,CAAmB,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC;wBAClE,IAAI,EAAG,QAAQ,CAAC,IAAe,IAAK,QAAQ,CAAC,MAAiB;wBAC9D,KAAK,EAAE,QAAQ,CAAC,MAAgB;qBAChC,CAAC,CAAC,CAAC;gBACL,CAAC;aACD;SACD,CAAC;IACH,CAAC;CAAA;AApGD,oBAoGC"}
|
|
@@ -0,0 +1,233 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.signatureRequestFields = exports.signatureRequestOperations = void 0;
|
|
4
|
+
const display_1 = require("../../shared/display");
|
|
5
|
+
const fields_1 = require("../../shared/fields");
|
|
6
|
+
const output_1 = require("../../shared/output");
|
|
7
|
+
exports.signatureRequestOperations = [
|
|
8
|
+
{
|
|
9
|
+
displayName: 'Operation',
|
|
10
|
+
name: 'operation',
|
|
11
|
+
type: 'options',
|
|
12
|
+
noDataExpression: true,
|
|
13
|
+
displayOptions: (0, display_1.showFor)('signatureRequest'),
|
|
14
|
+
options: [
|
|
15
|
+
{
|
|
16
|
+
name: 'Cancel',
|
|
17
|
+
value: 'cancel',
|
|
18
|
+
action: 'Cancel signature request',
|
|
19
|
+
description: 'Withdraw the pending signature request of a document, so nobody can sign it anymore',
|
|
20
|
+
routing: {
|
|
21
|
+
request: { method: 'POST', url: '=/docs/{{$parameter.docId}}/signature-request/cancel' },
|
|
22
|
+
output: output_1.resourceOutput,
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
name: 'Create',
|
|
27
|
+
value: 'create',
|
|
28
|
+
action: 'Create signature request',
|
|
29
|
+
description: 'Create a new signature request, asking each signer to sign their own part of the document',
|
|
30
|
+
routing: {
|
|
31
|
+
request: { method: 'POST', url: '=/docs/{{$parameter.docId}}/signature-request' },
|
|
32
|
+
output: output_1.resourceOutput,
|
|
33
|
+
},
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
name: 'Get',
|
|
37
|
+
value: 'get',
|
|
38
|
+
action: 'Get signature request',
|
|
39
|
+
description: 'Retrieve the latest signature request of a document, with who has signed and, once everyone has, the signed PDF',
|
|
40
|
+
routing: {
|
|
41
|
+
request: { method: 'GET', url: '=/docs/{{$parameter.docId}}/signature-request' },
|
|
42
|
+
output: output_1.resourceOutput,
|
|
43
|
+
},
|
|
44
|
+
},
|
|
45
|
+
],
|
|
46
|
+
default: 'create',
|
|
47
|
+
},
|
|
48
|
+
];
|
|
49
|
+
exports.signatureRequestFields = [
|
|
50
|
+
(0, fields_1.documentPicker)((0, display_1.showFor)('signatureRequest')),
|
|
51
|
+
{
|
|
52
|
+
displayName: 'Signers',
|
|
53
|
+
name: 'signersUi',
|
|
54
|
+
type: 'fixedCollection',
|
|
55
|
+
typeOptions: { multipleValues: true },
|
|
56
|
+
default: {},
|
|
57
|
+
required: true,
|
|
58
|
+
placeholder: 'Add signer',
|
|
59
|
+
displayOptions: (0, display_1.showFor)('signatureRequest', ['create']),
|
|
60
|
+
description: 'Who signs which part of the document: a recipient by name and email, a member of your workspace, or your company',
|
|
61
|
+
options: [
|
|
62
|
+
{
|
|
63
|
+
displayName: 'Signer',
|
|
64
|
+
name: 'signer',
|
|
65
|
+
values: [
|
|
66
|
+
{
|
|
67
|
+
displayName: 'Company Approval',
|
|
68
|
+
name: 'company',
|
|
69
|
+
type: 'boolean',
|
|
70
|
+
default: false,
|
|
71
|
+
description: 'Whether your company approves this part automatically once everyone else has signed. Needs the company name in your account settings.',
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
displayName: 'Email',
|
|
75
|
+
name: 'email',
|
|
76
|
+
type: 'string',
|
|
77
|
+
placeholder: 'e.g. nathan@example.com',
|
|
78
|
+
default: '',
|
|
79
|
+
description: 'The email address of the recipient',
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
displayName: 'Name',
|
|
83
|
+
name: 'name',
|
|
84
|
+
type: 'string',
|
|
85
|
+
default: '',
|
|
86
|
+
description: 'The name of a recipient, who signs in their tracking link and confirms with a code sent to their email',
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
displayName: 'Role',
|
|
90
|
+
name: 'role',
|
|
91
|
+
type: 'string',
|
|
92
|
+
default: '',
|
|
93
|
+
required: true,
|
|
94
|
+
placeholder: 'e.g. Client',
|
|
95
|
+
description: 'The part of the document the signer signs. Each signer has their own role.',
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
displayName: 'Workspace Member Email',
|
|
99
|
+
name: 'member',
|
|
100
|
+
type: 'string',
|
|
101
|
+
default: '',
|
|
102
|
+
description: 'Instead of a name and email: a member of your workspace, who signs their own part after logging in and gets an email asking them to sign',
|
|
103
|
+
},
|
|
104
|
+
],
|
|
105
|
+
},
|
|
106
|
+
],
|
|
107
|
+
routing: {
|
|
108
|
+
send: {
|
|
109
|
+
type: 'body',
|
|
110
|
+
property: 'signers',
|
|
111
|
+
value: '={{ $parameter.signersUi.signer.map(signer => signer.company ? { role: signer.role, company: true } : signer.member ? { role: signer.role, member: signer.member } : { role: signer.role, name: signer.name, email: signer.email }) }}',
|
|
112
|
+
},
|
|
113
|
+
},
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
displayName: 'Fields',
|
|
117
|
+
name: 'signatureFieldsUi',
|
|
118
|
+
type: 'fixedCollection',
|
|
119
|
+
typeOptions: { multipleValues: true },
|
|
120
|
+
default: {},
|
|
121
|
+
placeholder: 'Add field',
|
|
122
|
+
displayOptions: (0, display_1.showFor)('signatureRequest', ['create']),
|
|
123
|
+
description: 'Where each signer signs. Leave empty to use the fields placed in the dashboard, or, with a single signer, the empty signature boxes of the PDF.',
|
|
124
|
+
options: [
|
|
125
|
+
{
|
|
126
|
+
displayName: 'Field',
|
|
127
|
+
name: 'field',
|
|
128
|
+
values: [
|
|
129
|
+
{
|
|
130
|
+
displayName: 'Anchor Text',
|
|
131
|
+
name: 'anchor',
|
|
132
|
+
type: 'string',
|
|
133
|
+
default: '',
|
|
134
|
+
placeholder: 'e.g. [client_signature]',
|
|
135
|
+
description: 'A text in the PDF. The field is placed at every place the text appears.',
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
displayName: 'Page',
|
|
139
|
+
name: 'page',
|
|
140
|
+
type: 'number',
|
|
141
|
+
default: 0,
|
|
142
|
+
description: 'Placing by coordinates instead: the page number, with X and Y in points from the top left corner. 0 leaves coordinates unused.',
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
displayName: 'PDF Signature Box',
|
|
146
|
+
name: 'pdf_field',
|
|
147
|
+
type: 'string',
|
|
148
|
+
default: '',
|
|
149
|
+
description: 'The name of an empty signature box in the PDF',
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
displayName: 'Role',
|
|
153
|
+
name: 'role',
|
|
154
|
+
type: 'string',
|
|
155
|
+
default: '',
|
|
156
|
+
required: true,
|
|
157
|
+
description: 'The role of the signer who fills the field',
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
displayName: 'Type',
|
|
161
|
+
name: 'type',
|
|
162
|
+
type: 'options',
|
|
163
|
+
default: 'signature',
|
|
164
|
+
description: 'What the signer fills in. Date fields are filled in with the signing date.',
|
|
165
|
+
options: [
|
|
166
|
+
{ name: 'Date', value: 'date' },
|
|
167
|
+
{ name: 'Initials', value: 'initials' },
|
|
168
|
+
{ name: 'Name', value: 'name' },
|
|
169
|
+
{ name: 'Signature', value: 'signature' },
|
|
170
|
+
{ name: 'Text', value: 'text' },
|
|
171
|
+
],
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
displayName: 'X',
|
|
175
|
+
name: 'x',
|
|
176
|
+
type: 'number',
|
|
177
|
+
default: 0,
|
|
178
|
+
description: 'Distance from the left edge of the page in points',
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
displayName: 'Y',
|
|
182
|
+
name: 'y',
|
|
183
|
+
type: 'number',
|
|
184
|
+
default: 0,
|
|
185
|
+
description: 'Distance from the top edge of the page in points',
|
|
186
|
+
},
|
|
187
|
+
],
|
|
188
|
+
},
|
|
189
|
+
],
|
|
190
|
+
routing: {
|
|
191
|
+
send: {
|
|
192
|
+
type: 'body',
|
|
193
|
+
property: 'fields',
|
|
194
|
+
value: '={{ $parameter.signatureFieldsUi.field.map(field => ({ role: field.role, type: field.type, ...(field.anchor ? { anchor: field.anchor } : {}), ...(field.pdf_field ? { pdf_field: field.pdf_field } : {}), ...(field.page > 0 ? { page: field.page, x: field.x, y: field.y } : {}) })) }}',
|
|
195
|
+
},
|
|
196
|
+
},
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
displayName: 'Email Recipients',
|
|
200
|
+
name: 'sendEmail',
|
|
201
|
+
type: 'boolean',
|
|
202
|
+
default: true,
|
|
203
|
+
displayOptions: (0, display_1.showFor)('signatureRequest', ['create']),
|
|
204
|
+
description: 'Whether to email the recipients their signing link. Turn it off to share the links yourself. Workspace members are always emailed.',
|
|
205
|
+
routing: { send: { type: 'body', property: 'send_email' } },
|
|
206
|
+
},
|
|
207
|
+
(0, fields_1.optionsCollection)([
|
|
208
|
+
{
|
|
209
|
+
displayName: 'Message',
|
|
210
|
+
name: 'message',
|
|
211
|
+
type: 'string',
|
|
212
|
+
typeOptions: { rows: 4 },
|
|
213
|
+
default: '',
|
|
214
|
+
description: 'A personal message for the signers in the invitation email',
|
|
215
|
+
routing: { send: { type: 'body', property: 'message' } },
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
displayName: 'Metadata',
|
|
219
|
+
name: 'metadata',
|
|
220
|
+
type: 'json',
|
|
221
|
+
default: '{}',
|
|
222
|
+
description: 'Your own keys and values, like a deal ID. They come back with the request and in the signature events.',
|
|
223
|
+
routing: {
|
|
224
|
+
send: {
|
|
225
|
+
type: 'body',
|
|
226
|
+
property: 'metadata',
|
|
227
|
+
value: '={{ typeof $value === "string" ? JSON.parse($value) : $value }}',
|
|
228
|
+
},
|
|
229
|
+
},
|
|
230
|
+
},
|
|
231
|
+
], (0, display_1.showFor)('signatureRequest', ['create'])),
|
|
232
|
+
];
|
|
233
|
+
//# sourceMappingURL=SignatureRequestDescription.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SignatureRequestDescription.js","sourceRoot":"","sources":["../../../../nodes/Apdf/descriptions/SignatureRequestDescription.ts"],"names":[],"mappings":";;;AACA,kDAA+C;AAC/C,gDAAwE;AACxE,gDAAqD;AAExC,QAAA,0BAA0B,GAAsB;IAC5D;QACC,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,SAAS;QACf,gBAAgB,EAAE,IAAI;QACtB,cAAc,EAAE,IAAA,iBAAO,EAAC,kBAAkB,CAAC;QAC3C,OAAO,EAAE;YACR;gBACC,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,QAAQ;gBACf,MAAM,EAAE,0BAA0B;gBAClC,WAAW,EAAE,qFAAqF;gBAClG,OAAO,EAAE;oBACR,OAAO,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,sDAAsD,EAAE;oBACxF,MAAM,EAAE,uBAAc;iBACtB;aACD;YACD;gBACC,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,QAAQ;gBACf,MAAM,EAAE,0BAA0B;gBAClC,WAAW,EACV,2FAA2F;gBAC5F,OAAO,EAAE;oBACR,OAAO,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,+CAA+C,EAAE;oBACjF,MAAM,EAAE,uBAAc;iBACtB;aACD;YACD;gBACC,IAAI,EAAE,KAAK;gBACX,KAAK,EAAE,KAAK;gBACZ,MAAM,EAAE,uBAAuB;gBAC/B,WAAW,EACV,iHAAiH;gBAClH,OAAO,EAAE;oBACR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,EAAE,MAAM,EAAE,QAAQ,EAAE,YAAY,EAAE,EAAE;KAC3D;IACD,IAAA,0BAAiB,EAChB;QACC;YACC,WAAW,EAAE,SAAS;YACtB,IAAI,EAAE,SAAS;YACf,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE;YACxB,OAAO,EAAE,EAAE;YACX,WAAW,EAAE,4DAA4D;YACzE,OAAO,EAAE,EAAE,IAAI,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,SAAS,EAAE,EAAE;SACxD;QACD;YACC,WAAW,EAAE,UAAU;YACvB,IAAI,EAAE,UAAU;YAChB,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE,IAAI;YACb,WAAW,EACV,wGAAwG;YACzG,OAAO,EAAE;gBACR,IAAI,EAAE;oBACL,IAAI,EAAE,MAAM;oBACZ,QAAQ,EAAE,UAAU;oBACpB,KAAK,EAAE,iEAAiE;iBACxE;aACD;SACD;KACD,EACD,IAAA,iBAAO,EAAC,kBAAkB,EAAE,CAAC,QAAQ,CAAC,CAAC,CACvC;CACD,CAAC"}
|
|
@@ -20,4 +20,5 @@ __exportStar(require("./DocumentDescription"), exports);
|
|
|
20
20
|
__exportStar(require("./JobDescription"), exports);
|
|
21
21
|
__exportStar(require("./LinkDescription"), exports);
|
|
22
22
|
__exportStar(require("./PdfDescription"), exports);
|
|
23
|
+
__exportStar(require("./SignatureRequestDescription"), exports);
|
|
23
24
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../nodes/Apdf/descriptions/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yDAAuC;AACvC,0DAAwC;AACxC,wDAAsC;AACtC,mDAAiC;AACjC,oDAAkC;AAClC,mDAAiC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../nodes/Apdf/descriptions/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yDAAuC;AACvC,0DAAwC;AACxC,wDAAsC;AACtC,mDAAiC;AACjC,oDAAkC;AAClC,mDAAiC;AACjC,gEAA8C"}
|
|
@@ -24,6 +24,11 @@ exports.triggerEvents = [
|
|
|
24
24
|
},
|
|
25
25
|
{ name: 'Document Opened', value: 'document:loaded', description: 'A reader opened the document' },
|
|
26
26
|
{ name: 'Document Printed', value: 'document:print', description: 'A reader printed the document' },
|
|
27
|
+
{
|
|
28
|
+
name: 'Document Signed',
|
|
29
|
+
value: 'signature:signed',
|
|
30
|
+
description: 'A signer signed their part of the document, or the company approved its part',
|
|
31
|
+
},
|
|
27
32
|
{
|
|
28
33
|
name: 'Form Submitted',
|
|
29
34
|
value: 'form:submit',
|
|
@@ -45,6 +50,16 @@ exports.triggerEvents = [
|
|
|
45
50
|
description: 'A reader stayed on a page, measured every 15 seconds',
|
|
46
51
|
},
|
|
47
52
|
{ name: 'Page Viewed', value: 'page:enter', description: 'A reader navigated to a page' },
|
|
53
|
+
{
|
|
54
|
+
name: 'Signature Declined',
|
|
55
|
+
value: 'signature:declined',
|
|
56
|
+
description: 'A signer declined to sign the document, which ends the signature request',
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
name: 'Signing Completed',
|
|
60
|
+
value: 'signature:completed',
|
|
61
|
+
description: 'Everyone signed the document and the signed PDF is ready',
|
|
62
|
+
},
|
|
48
63
|
{ name: 'Text Copied', value: 'text:copied', description: 'A reader copied text from the document' },
|
|
49
64
|
];
|
|
50
65
|
exports.conditionTypes = [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"events.js","sourceRoot":"","sources":["../../../nodes/shared/events.ts"],"names":[],"mappings":";;;AAMa,QAAA,aAAa,GAA2B;IACpD;QACC,IAAI,EAAE,oBAAoB;QAC1B,KAAK,EAAE,mBAAmB;QAC1B,WAAW,EAAE,gCAAgC;KAC7C;IACD;QACC,IAAI,EAAE,oBAAoB;QAC1B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