@keystrokehq/docusign 0.0.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 +248 -0
- package/dist/_official/index.d.mts +3 -0
- package/dist/_official/index.mjs +3 -0
- package/dist/_runtime/index.d.mts +1 -0
- package/dist/_runtime/index.mjs +1 -0
- package/dist/account-custom-fields.d.mts +65 -0
- package/dist/account-custom-fields.mjs +63 -0
- package/dist/account-stamps.d.mts +164 -0
- package/dist/account-stamps.mjs +144 -0
- package/dist/account-tabs.d.mts +90 -0
- package/dist/account-tabs.mjs +80 -0
- package/dist/account.d.mts +233 -0
- package/dist/account.mjs +207 -0
- package/dist/admin.d.mts +18 -0
- package/dist/admin.mjs +20 -0
- package/dist/auth.d.mts +37 -0
- package/dist/auth.mjs +53 -0
- package/dist/bcc-archive.d.mts +64 -0
- package/dist/bcc-archive.mjs +70 -0
- package/dist/billing.d.mts +217 -0
- package/dist/billing.mjs +208 -0
- package/dist/brands.d.mts +192 -0
- package/dist/brands.mjs +157 -0
- package/dist/bulk-send.d.mts +137 -0
- package/dist/bulk-send.mjs +115 -0
- package/dist/chunked-uploads.d.mts +78 -0
- package/dist/chunked-uploads.mjs +74 -0
- package/dist/click.d.mts +18 -0
- package/dist/click.mjs +20 -0
- package/dist/client.d.mts +47 -0
- package/dist/client.mjs +286 -0
- package/dist/clm.d.mts +18 -0
- package/dist/clm.mjs +20 -0
- package/dist/cloud-storage.d.mts +122 -0
- package/dist/cloud-storage.mjs +115 -0
- package/dist/connect.d.mts +252 -0
- package/dist/connect.mjs +217 -0
- package/dist/connection.d.mts +2 -0
- package/dist/connection.mjs +3 -0
- package/dist/contacts.d.mts +80 -0
- package/dist/contacts.mjs +79 -0
- package/dist/enote.d.mts +44 -0
- package/dist/enote.mjs +45 -0
- package/dist/envelope-attachments.d.mts +86 -0
- package/dist/envelope-attachments.mjs +76 -0
- package/dist/envelope-custom-fields.d.mts +166 -0
- package/dist/envelope-custom-fields.mjs +92 -0
- package/dist/envelope-documents.d.mts +271 -0
- package/dist/envelope-documents.mjs +219 -0
- package/dist/envelope-email.d.mts +65 -0
- package/dist/envelope-email.mjs +60 -0
- package/dist/envelope-lock.d.mts +65 -0
- package/dist/envelope-lock.mjs +60 -0
- package/dist/envelope-logs.d.mts +126 -0
- package/dist/envelope-logs.mjs +126 -0
- package/dist/envelope-notifications.d.mts +47 -0
- package/dist/envelope-notifications.mjs +44 -0
- package/dist/envelope-recipients.d.mts +171 -0
- package/dist/envelope-recipients.mjs +136 -0
- package/dist/envelope-tabs.d.mts +52 -0
- package/dist/envelope-tabs.mjs +49 -0
- package/dist/envelope-views.d.mts +99 -0
- package/dist/envelope-views.mjs +88 -0
- package/dist/envelope-workflow.d.mts +208 -0
- package/dist/envelope-workflow.mjs +176 -0
- package/dist/envelopes.d.mts +430 -0
- package/dist/envelopes.mjs +190 -0
- package/dist/errors.d.mts +48 -0
- package/dist/errors.mjs +76 -0
- package/dist/events.d.mts +192 -0
- package/dist/events.mjs +146 -0
- package/dist/factory-wViQTjgN.mjs +8 -0
- package/dist/groups.d.mts +191 -0
- package/dist/groups.mjs +146 -0
- package/dist/index.d.mts +1 -0
- package/dist/index.mjs +1 -0
- package/dist/integration-CmRztL9R.mjs +229 -0
- package/dist/integration-DqwHRkRh.d.mts +73 -0
- package/dist/messaging.d.mts +1 -0
- package/dist/messaging.mjs +1 -0
- package/dist/monitor.d.mts +18 -0
- package/dist/monitor.mjs +20 -0
- package/dist/notary.d.mts +129 -0
- package/dist/notary.mjs +122 -0
- package/dist/operation-helpers-BMTArRh9.mjs +102 -0
- package/dist/permission-profiles.d.mts +78 -0
- package/dist/permission-profiles.mjs +70 -0
- package/dist/power-forms.d.mts +51 -0
- package/dist/power-forms.mjs +62 -0
- package/dist/provider-app-CWp1SuI4.d.mts +88 -0
- package/dist/rooms.d.mts +18 -0
- package/dist/rooms.mjs +28 -0
- package/dist/schemas/index.d.mts +581 -0
- package/dist/schemas/index.mjs +309 -0
- package/dist/shared-DTUCJayR.mjs +27 -0
- package/dist/signing-groups.d.mts +139 -0
- package/dist/signing-groups.mjs +117 -0
- package/dist/template-custom-fields.d.mts +199 -0
- package/dist/template-custom-fields.mjs +107 -0
- package/dist/template-documents.d.mts +132 -0
- package/dist/template-documents.mjs +109 -0
- package/dist/template-lock.d.mts +65 -0
- package/dist/template-lock.mjs +60 -0
- package/dist/template-sharing.d.mts +129 -0
- package/dist/template-sharing.mjs +108 -0
- package/dist/template-workflow.d.mts +184 -0
- package/dist/template-workflow.mjs +152 -0
- package/dist/templates.d.mts +158 -0
- package/dist/templates.mjs +110 -0
- package/dist/triggers.d.mts +43 -0
- package/dist/triggers.mjs +91 -0
- package/dist/user-authorizations.d.mts +129 -0
- package/dist/user-authorizations.mjs +133 -0
- package/dist/user-custom-settings.d.mts +81 -0
- package/dist/user-custom-settings.mjs +69 -0
- package/dist/user-profile.d.mts +109 -0
- package/dist/user-profile.mjs +106 -0
- package/dist/user-signatures.d.mts +208 -0
- package/dist/user-signatures.mjs +180 -0
- package/dist/users.d.mts +128 -0
- package/dist/users.mjs +98 -0
- package/dist/verification.d.mts +19 -0
- package/dist/verification.mjs +59 -0
- package/dist/workspaces.d.mts +173 -0
- package/dist/workspaces.mjs +143 -0
- package/package.json +291 -0
|
@@ -0,0 +1,199 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import * as _keystrokehq_core0 from "@keystrokehq/core";
|
|
3
|
+
import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
|
|
4
|
+
|
|
5
|
+
//#region src/template-custom-fields.d.ts
|
|
6
|
+
declare const createTemplateDocumentCustomFields: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
7
|
+
templateId: z.ZodString;
|
|
8
|
+
documentId: z.ZodString;
|
|
9
|
+
documentFields: z.ZodArray<z.ZodObject<{
|
|
10
|
+
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
11
|
+
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
12
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
13
|
+
textCustomFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
14
|
+
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
15
|
+
}, z.core.$catchall<z.ZodUnknown>>>>;
|
|
16
|
+
listCustomFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
17
|
+
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
18
|
+
}, z.core.$catchall<z.ZodUnknown>>>>;
|
|
19
|
+
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
|
|
20
|
+
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
21
|
+
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
22
|
+
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
23
|
+
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
24
|
+
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
25
|
+
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
26
|
+
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
27
|
+
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
28
|
+
declare const updateTemplateDocumentCustomFields: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
29
|
+
templateId: z.ZodString;
|
|
30
|
+
documentId: z.ZodString;
|
|
31
|
+
documentFields: z.ZodArray<z.ZodObject<{
|
|
32
|
+
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
33
|
+
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
34
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
35
|
+
textCustomFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
36
|
+
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
37
|
+
}, z.core.$catchall<z.ZodUnknown>>>>;
|
|
38
|
+
listCustomFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
39
|
+
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
40
|
+
}, z.core.$catchall<z.ZodUnknown>>>>;
|
|
41
|
+
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
|
|
42
|
+
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
43
|
+
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
44
|
+
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
45
|
+
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
46
|
+
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
47
|
+
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
48
|
+
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
49
|
+
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
50
|
+
declare const deleteCustomDocumentFieldsFromTemplate: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
51
|
+
templateId: z.ZodString;
|
|
52
|
+
documentId: z.ZodString;
|
|
53
|
+
documentFields: z.ZodArray<z.ZodObject<{
|
|
54
|
+
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
55
|
+
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
56
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
57
|
+
success: z.ZodBoolean;
|
|
58
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
|
|
59
|
+
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
60
|
+
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
61
|
+
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
62
|
+
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
63
|
+
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
64
|
+
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
65
|
+
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
66
|
+
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
67
|
+
declare const createCustomFieldsInTemplateDocument: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
68
|
+
templateId: z.ZodString;
|
|
69
|
+
documentId: z.ZodString;
|
|
70
|
+
customFields: z.ZodObject<{
|
|
71
|
+
textCustomFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
72
|
+
name: z.ZodString;
|
|
73
|
+
value: z.ZodString;
|
|
74
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
75
|
+
show: z.ZodOptional<z.ZodBoolean>;
|
|
76
|
+
}, z.core.$catchall<z.ZodUnknown>>>>;
|
|
77
|
+
listCustomFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
78
|
+
name: z.ZodString;
|
|
79
|
+
value: z.ZodString;
|
|
80
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
81
|
+
show: z.ZodOptional<z.ZodBoolean>;
|
|
82
|
+
listItems: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
83
|
+
}, z.core.$catchall<z.ZodUnknown>>>>;
|
|
84
|
+
}, z.core.$catchall<z.ZodUnknown>>;
|
|
85
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
86
|
+
textCustomFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
87
|
+
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
88
|
+
}, z.core.$catchall<z.ZodUnknown>>>>;
|
|
89
|
+
listCustomFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
90
|
+
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
91
|
+
}, z.core.$catchall<z.ZodUnknown>>>>;
|
|
92
|
+
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
|
|
93
|
+
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
94
|
+
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
95
|
+
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
96
|
+
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
97
|
+
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
98
|
+
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
99
|
+
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
100
|
+
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
101
|
+
declare const retrieveCustomFieldsForTemplate: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
102
|
+
templateId: z.ZodString;
|
|
103
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
104
|
+
textCustomFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
105
|
+
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
106
|
+
}, z.core.$catchall<z.ZodUnknown>>>>;
|
|
107
|
+
listCustomFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
108
|
+
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
109
|
+
}, z.core.$catchall<z.ZodUnknown>>>>;
|
|
110
|
+
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
|
|
111
|
+
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
112
|
+
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
113
|
+
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
114
|
+
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
115
|
+
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
116
|
+
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
117
|
+
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
118
|
+
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
119
|
+
declare const retrieveTemplateCustomFields: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
120
|
+
templateId: z.ZodString;
|
|
121
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
122
|
+
textCustomFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
123
|
+
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
124
|
+
}, z.core.$catchall<z.ZodUnknown>>>>;
|
|
125
|
+
listCustomFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
126
|
+
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
127
|
+
}, z.core.$catchall<z.ZodUnknown>>>>;
|
|
128
|
+
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
|
|
129
|
+
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
130
|
+
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
131
|
+
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
132
|
+
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
133
|
+
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
134
|
+
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
135
|
+
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
136
|
+
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
137
|
+
declare const updateTemplateCustomFields: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
138
|
+
templateId: z.ZodString;
|
|
139
|
+
customFields: z.ZodObject<{
|
|
140
|
+
textCustomFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
141
|
+
name: z.ZodString;
|
|
142
|
+
value: z.ZodString;
|
|
143
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
144
|
+
show: z.ZodOptional<z.ZodBoolean>;
|
|
145
|
+
}, z.core.$catchall<z.ZodUnknown>>>>;
|
|
146
|
+
listCustomFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
147
|
+
name: z.ZodString;
|
|
148
|
+
value: z.ZodString;
|
|
149
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
150
|
+
show: z.ZodOptional<z.ZodBoolean>;
|
|
151
|
+
listItems: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
152
|
+
}, z.core.$catchall<z.ZodUnknown>>>>;
|
|
153
|
+
}, z.core.$catchall<z.ZodUnknown>>;
|
|
154
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
155
|
+
textCustomFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
156
|
+
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
157
|
+
}, z.core.$catchall<z.ZodUnknown>>>>;
|
|
158
|
+
listCustomFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
159
|
+
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
160
|
+
}, z.core.$catchall<z.ZodUnknown>>>>;
|
|
161
|
+
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
|
|
162
|
+
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
163
|
+
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
164
|
+
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
165
|
+
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
166
|
+
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
167
|
+
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
168
|
+
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
169
|
+
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
170
|
+
declare const deleteCustomFieldsInTemplate: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
171
|
+
templateId: z.ZodString;
|
|
172
|
+
customFields: z.ZodObject<{
|
|
173
|
+
textCustomFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
174
|
+
name: z.ZodString;
|
|
175
|
+
value: z.ZodString;
|
|
176
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
177
|
+
show: z.ZodOptional<z.ZodBoolean>;
|
|
178
|
+
}, z.core.$catchall<z.ZodUnknown>>>>;
|
|
179
|
+
listCustomFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
180
|
+
name: z.ZodString;
|
|
181
|
+
value: z.ZodString;
|
|
182
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
183
|
+
show: z.ZodOptional<z.ZodBoolean>;
|
|
184
|
+
listItems: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
185
|
+
}, z.core.$catchall<z.ZodUnknown>>>>;
|
|
186
|
+
}, z.core.$catchall<z.ZodUnknown>>;
|
|
187
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
188
|
+
success: z.ZodBoolean;
|
|
189
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
|
|
190
|
+
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
191
|
+
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
192
|
+
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
193
|
+
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
194
|
+
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
195
|
+
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
196
|
+
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
197
|
+
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
198
|
+
//#endregion
|
|
199
|
+
export { createCustomFieldsInTemplateDocument, createTemplateDocumentCustomFields, deleteCustomDocumentFieldsFromTemplate, deleteCustomFieldsInTemplate, retrieveCustomFieldsForTemplate, retrieveTemplateCustomFields, updateTemplateCustomFields, updateTemplateDocumentCustomFields };
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import { docusignCustomFieldsInputSchema, docusignCustomFieldsResponseSchema, docusignDocumentIdSchema, docusignLooseObjectSchema, docusignSuccessSchema, docusignTemplateIdSchema } from "./schemas/index.mjs";
|
|
2
|
+
import { r as defineRestOperation } from "./operation-helpers-BMTArRh9.mjs";
|
|
3
|
+
import { z } from "zod";
|
|
4
|
+
|
|
5
|
+
//#region src/template-custom-fields.ts
|
|
6
|
+
/**
|
|
7
|
+
* Template custom fields (template + template document). Covers PLAN.md § 6.14.
|
|
8
|
+
*/
|
|
9
|
+
const tplId = z.object({ templateId: docusignTemplateIdSchema });
|
|
10
|
+
const tplDoc = tplId.extend({ documentId: docusignDocumentIdSchema });
|
|
11
|
+
const createTemplateDocumentCustomFields = defineRestOperation({
|
|
12
|
+
id: "create_template_document_custom_fields",
|
|
13
|
+
slug: "DOCUSIGN_CREATE_TEMPLATE_DOCUMENT_CUSTOM_FIELDS",
|
|
14
|
+
name: "Create Template Document Custom Fields",
|
|
15
|
+
description: "Attach custom fields to a template document.",
|
|
16
|
+
needsApproval: true,
|
|
17
|
+
method: "POST",
|
|
18
|
+
path: (ctx) => `/templates/${ctx.encode(String(ctx.input.templateId))}/documents/${ctx.encode(String(ctx.input.documentId))}/fields`,
|
|
19
|
+
input: tplDoc.extend({ documentFields: z.array(docusignLooseObjectSchema()).min(1) }),
|
|
20
|
+
output: docusignCustomFieldsResponseSchema,
|
|
21
|
+
body: (input) => ({ documentFields: input.documentFields })
|
|
22
|
+
});
|
|
23
|
+
const updateTemplateDocumentCustomFields = defineRestOperation({
|
|
24
|
+
id: "update_template_document_custom_fields",
|
|
25
|
+
slug: "DOCUSIGN_UPDATE_TEMPLATE_DOCUMENT_CUSTOM_FIELDS",
|
|
26
|
+
name: "Update Template Document Custom Fields",
|
|
27
|
+
description: "Update custom fields on a template document.",
|
|
28
|
+
needsApproval: true,
|
|
29
|
+
method: "PUT",
|
|
30
|
+
path: (ctx) => `/templates/${ctx.encode(String(ctx.input.templateId))}/documents/${ctx.encode(String(ctx.input.documentId))}/fields`,
|
|
31
|
+
input: tplDoc.extend({ documentFields: z.array(docusignLooseObjectSchema()).min(1) }),
|
|
32
|
+
output: docusignCustomFieldsResponseSchema,
|
|
33
|
+
body: (input) => ({ documentFields: input.documentFields })
|
|
34
|
+
});
|
|
35
|
+
const deleteCustomDocumentFieldsFromTemplate = defineRestOperation({
|
|
36
|
+
id: "delete_custom_document_fields_from_template",
|
|
37
|
+
slug: "DOCUSIGN_DELETE_CUSTOM_DOCUMENT_FIELDS_FROM_TEMPLATE",
|
|
38
|
+
name: "Delete Custom Document Fields From Template",
|
|
39
|
+
description: "Remove custom fields from a template document.",
|
|
40
|
+
needsApproval: true,
|
|
41
|
+
method: "DELETE",
|
|
42
|
+
path: (ctx) => `/templates/${ctx.encode(String(ctx.input.templateId))}/documents/${ctx.encode(String(ctx.input.documentId))}/fields`,
|
|
43
|
+
input: tplDoc.extend({ documentFields: z.array(docusignLooseObjectSchema()).min(1) }),
|
|
44
|
+
output: docusignSuccessSchema,
|
|
45
|
+
body: (input) => ({ documentFields: input.documentFields }),
|
|
46
|
+
transformResponse: () => ({ success: true })
|
|
47
|
+
});
|
|
48
|
+
const createCustomFieldsInTemplateDocument = defineRestOperation({
|
|
49
|
+
id: "create_custom_fields_in_template_document",
|
|
50
|
+
slug: "DOCUSIGN_CREATE_CUSTOM_FIELDS_IN_TEMPLATE_DOCUMENT",
|
|
51
|
+
name: "Create Custom Fields In Template Document",
|
|
52
|
+
description: "Alias for createTemplateDocumentCustomFields — attach custom fields to a template document.",
|
|
53
|
+
needsApproval: true,
|
|
54
|
+
method: "POST",
|
|
55
|
+
path: (ctx) => `/templates/${ctx.encode(String(ctx.input.templateId))}/documents/${ctx.encode(String(ctx.input.documentId))}/custom_fields`,
|
|
56
|
+
input: tplDoc.extend({ customFields: docusignCustomFieldsInputSchema }),
|
|
57
|
+
output: docusignCustomFieldsResponseSchema,
|
|
58
|
+
body: (input) => input.customFields
|
|
59
|
+
});
|
|
60
|
+
const retrieveCustomFieldsForTemplate = defineRestOperation({
|
|
61
|
+
id: "retrieve_custom_fields_for_template",
|
|
62
|
+
slug: "DOCUSIGN_RETRIEVE_CUSTOM_FIELDS_FOR_TEMPLATE",
|
|
63
|
+
name: "Retrieve Custom Fields For Template",
|
|
64
|
+
description: "Retrieve template-level custom fields.",
|
|
65
|
+
method: "GET",
|
|
66
|
+
path: (ctx) => `/templates/${ctx.encode(String(ctx.input.templateId))}/custom_fields`,
|
|
67
|
+
input: tplId,
|
|
68
|
+
output: docusignCustomFieldsResponseSchema
|
|
69
|
+
});
|
|
70
|
+
const retrieveTemplateCustomFields = defineRestOperation({
|
|
71
|
+
id: "retrieve_template_custom_fields",
|
|
72
|
+
slug: "DOCUSIGN_RETRIEVE_TEMPLATE_CUSTOM_FIELDS",
|
|
73
|
+
name: "Retrieve Template Custom Fields",
|
|
74
|
+
description: "Retrieve the template custom fields (alias).",
|
|
75
|
+
method: "GET",
|
|
76
|
+
path: (ctx) => `/templates/${ctx.encode(String(ctx.input.templateId))}/custom_fields`,
|
|
77
|
+
input: tplId,
|
|
78
|
+
output: docusignCustomFieldsResponseSchema
|
|
79
|
+
});
|
|
80
|
+
const updateTemplateCustomFields = defineRestOperation({
|
|
81
|
+
id: "update_template_custom_fields",
|
|
82
|
+
slug: "DOCUSIGN_UPDATE_TEMPLATE_CUSTOM_FIELDS",
|
|
83
|
+
name: "Update Template Custom Fields",
|
|
84
|
+
description: "Update the template-level custom fields.",
|
|
85
|
+
needsApproval: true,
|
|
86
|
+
method: "PUT",
|
|
87
|
+
path: (ctx) => `/templates/${ctx.encode(String(ctx.input.templateId))}/custom_fields`,
|
|
88
|
+
input: tplId.extend({ customFields: docusignCustomFieldsInputSchema }),
|
|
89
|
+
output: docusignCustomFieldsResponseSchema,
|
|
90
|
+
body: (input) => input.customFields
|
|
91
|
+
});
|
|
92
|
+
const deleteCustomFieldsInTemplate = defineRestOperation({
|
|
93
|
+
id: "delete_custom_fields_in_template",
|
|
94
|
+
slug: "DOCUSIGN_DELETE_CUSTOM_FIELDS_IN_TEMPLATE",
|
|
95
|
+
name: "Delete Custom Fields In Template",
|
|
96
|
+
description: "Delete template-level custom fields.",
|
|
97
|
+
needsApproval: true,
|
|
98
|
+
method: "DELETE",
|
|
99
|
+
path: (ctx) => `/templates/${ctx.encode(String(ctx.input.templateId))}/custom_fields`,
|
|
100
|
+
input: tplId.extend({ customFields: docusignCustomFieldsInputSchema }),
|
|
101
|
+
output: docusignSuccessSchema,
|
|
102
|
+
body: (input) => input.customFields,
|
|
103
|
+
transformResponse: () => ({ success: true })
|
|
104
|
+
});
|
|
105
|
+
|
|
106
|
+
//#endregion
|
|
107
|
+
export { createCustomFieldsInTemplateDocument, createTemplateDocumentCustomFields, deleteCustomDocumentFieldsFromTemplate, deleteCustomFieldsInTemplate, retrieveCustomFieldsForTemplate, retrieveTemplateCustomFields, updateTemplateCustomFields, updateTemplateDocumentCustomFields };
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import * as _keystrokehq_core0 from "@keystrokehq/core";
|
|
3
|
+
import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
|
|
4
|
+
|
|
5
|
+
//#region src/template-documents.d.ts
|
|
6
|
+
declare const getTemplateDocumentHtmlDefinition: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
7
|
+
templateId: z.ZodString;
|
|
8
|
+
documentId: z.ZodString;
|
|
9
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
10
|
+
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
11
|
+
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
|
|
12
|
+
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
13
|
+
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
14
|
+
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
15
|
+
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
16
|
+
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
17
|
+
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
18
|
+
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
19
|
+
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
20
|
+
declare const getOriginalHtmlDefinitionForTemplate: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
21
|
+
templateId: z.ZodString;
|
|
22
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
23
|
+
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
24
|
+
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
|
|
25
|
+
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
26
|
+
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
27
|
+
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
28
|
+
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
29
|
+
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
30
|
+
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
31
|
+
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
32
|
+
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
33
|
+
declare const createTemplateResponsiveHtmlPreview: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
34
|
+
templateId: z.ZodString;
|
|
35
|
+
options: z.ZodOptional<z.ZodObject<{
|
|
36
|
+
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
37
|
+
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
38
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
39
|
+
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
40
|
+
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
|
|
41
|
+
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
42
|
+
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
43
|
+
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
44
|
+
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
45
|
+
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
46
|
+
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
47
|
+
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
48
|
+
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
49
|
+
declare const retrievePdfFromSpecifiedTemplate: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
50
|
+
templateId: z.ZodString;
|
|
51
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
52
|
+
contentType: z.ZodOptional<z.ZodString>;
|
|
53
|
+
contentDisposition: z.ZodOptional<z.ZodString>;
|
|
54
|
+
status: z.ZodNumber;
|
|
55
|
+
body: z.ZodString;
|
|
56
|
+
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
|
|
57
|
+
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
58
|
+
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
59
|
+
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
60
|
+
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
61
|
+
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
62
|
+
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
63
|
+
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
64
|
+
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
65
|
+
declare const retrieveTemplateDocumentPageImages: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
66
|
+
templateId: z.ZodString;
|
|
67
|
+
documentId: z.ZodString;
|
|
68
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
69
|
+
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
70
|
+
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
|
|
71
|
+
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
72
|
+
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
73
|
+
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
74
|
+
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
75
|
+
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
76
|
+
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
77
|
+
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
78
|
+
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
79
|
+
declare const retrieveTemplatePageImage: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
80
|
+
templateId: z.ZodString;
|
|
81
|
+
documentId: z.ZodString;
|
|
82
|
+
pageNumber: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
83
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
84
|
+
contentType: z.ZodOptional<z.ZodString>;
|
|
85
|
+
contentDisposition: z.ZodOptional<z.ZodString>;
|
|
86
|
+
status: z.ZodNumber;
|
|
87
|
+
body: z.ZodString;
|
|
88
|
+
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
|
|
89
|
+
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
90
|
+
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
91
|
+
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
92
|
+
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
93
|
+
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
94
|
+
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
95
|
+
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
96
|
+
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
97
|
+
declare const rotateTemplatePageImage: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
98
|
+
templateId: z.ZodString;
|
|
99
|
+
documentId: z.ZodString;
|
|
100
|
+
pageNumber: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
101
|
+
rotate: z.ZodEnum<{
|
|
102
|
+
left: "left";
|
|
103
|
+
right: "right";
|
|
104
|
+
}>;
|
|
105
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
106
|
+
success: z.ZodBoolean;
|
|
107
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
|
|
108
|
+
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
109
|
+
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
110
|
+
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
111
|
+
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
112
|
+
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
113
|
+
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
114
|
+
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
115
|
+
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
116
|
+
declare const deletePageFromTemplateDocument: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
117
|
+
templateId: z.ZodString;
|
|
118
|
+
documentId: z.ZodString;
|
|
119
|
+
pageNumber: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
120
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
121
|
+
success: z.ZodBoolean;
|
|
122
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
|
|
123
|
+
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
124
|
+
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
125
|
+
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
126
|
+
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
127
|
+
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
128
|
+
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
129
|
+
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
130
|
+
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
131
|
+
//#endregion
|
|
132
|
+
export { createTemplateResponsiveHtmlPreview, deletePageFromTemplateDocument, getOriginalHtmlDefinitionForTemplate, getTemplateDocumentHtmlDefinition, retrievePdfFromSpecifiedTemplate, retrieveTemplateDocumentPageImages, retrieveTemplatePageImage, rotateTemplatePageImage };
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
import { docusignDocumentIdSchema, docusignGenericObjectSchema, docusignLooseObjectSchema, docusignSuccessSchema, docusignTemplateIdSchema } from "./schemas/index.mjs";
|
|
2
|
+
import { r as defineRestOperation, t as defineBinaryOperation } from "./operation-helpers-BMTArRh9.mjs";
|
|
3
|
+
import { z } from "zod";
|
|
4
|
+
|
|
5
|
+
//#region src/template-documents.ts
|
|
6
|
+
/**
|
|
7
|
+
* Template documents + page images + responsive HTML. Covers PLAN.md § 6.13.
|
|
8
|
+
*/
|
|
9
|
+
const tplId = z.object({ templateId: docusignTemplateIdSchema });
|
|
10
|
+
const tplDoc = tplId.extend({ documentId: docusignDocumentIdSchema });
|
|
11
|
+
const tplDocPage = tplDoc.extend({ pageNumber: z.union([z.string(), z.number().int().positive()]) });
|
|
12
|
+
const binaryResponseSchema = docusignLooseObjectSchema({
|
|
13
|
+
contentType: z.string().optional(),
|
|
14
|
+
contentDisposition: z.string().optional(),
|
|
15
|
+
status: z.number(),
|
|
16
|
+
body: z.string()
|
|
17
|
+
});
|
|
18
|
+
const getTemplateDocumentHtmlDefinition = defineRestOperation({
|
|
19
|
+
id: "get_template_document_html_definition",
|
|
20
|
+
slug: "DOCUSIGN_GET_TEMPLATE_DOCUMENT_HTML_DEFINITION",
|
|
21
|
+
name: "Get Template Document HTML Definition",
|
|
22
|
+
description: "Return the responsive HTML definition for a template document.",
|
|
23
|
+
method: "GET",
|
|
24
|
+
path: (ctx) => `/templates/${ctx.encode(String(ctx.input.templateId))}/documents/${ctx.encode(String(ctx.input.documentId))}/html_definitions`,
|
|
25
|
+
input: tplDoc,
|
|
26
|
+
output: docusignGenericObjectSchema
|
|
27
|
+
});
|
|
28
|
+
const getOriginalHtmlDefinitionForTemplate = defineRestOperation({
|
|
29
|
+
id: "get_original_html_definition_for_template",
|
|
30
|
+
slug: "DOCUSIGN_GET_ORIGINAL_HTML_DEFINITION_FOR_TEMPLATE",
|
|
31
|
+
name: "Get Original Template HTML Definition",
|
|
32
|
+
description: "Return the original responsive HTML definition for a template.",
|
|
33
|
+
method: "GET",
|
|
34
|
+
path: (ctx) => `/templates/${ctx.encode(String(ctx.input.templateId))}/html_definitions`,
|
|
35
|
+
input: tplId,
|
|
36
|
+
output: docusignGenericObjectSchema
|
|
37
|
+
});
|
|
38
|
+
const createTemplateResponsiveHtmlPreview = defineRestOperation({
|
|
39
|
+
id: "create_template_responsive_html_preview",
|
|
40
|
+
slug: "DOCUSIGN_CREATE_TEMPLATE_RESPONSIVE_HTML_PREVIEW",
|
|
41
|
+
name: "Create Template Responsive HTML Preview",
|
|
42
|
+
description: "Create a responsive HTML preview for a template.",
|
|
43
|
+
needsApproval: true,
|
|
44
|
+
method: "POST",
|
|
45
|
+
path: (ctx) => `/templates/${ctx.encode(String(ctx.input.templateId))}/responsive_html_preview`,
|
|
46
|
+
input: tplId.extend({ options: docusignLooseObjectSchema().optional() }),
|
|
47
|
+
output: docusignGenericObjectSchema,
|
|
48
|
+
body: (input) => input.options ?? {}
|
|
49
|
+
});
|
|
50
|
+
const retrievePdfFromSpecifiedTemplate = defineBinaryOperation({
|
|
51
|
+
id: "retrieve_pdf_from_specified_template",
|
|
52
|
+
slug: "DOCUSIGN_RETRIEVE_PDF_FROM_SPECIFIED_TEMPLATE",
|
|
53
|
+
name: "Retrieve PDF From Specified Template",
|
|
54
|
+
description: "Download the combined PDF of all documents in a template.",
|
|
55
|
+
method: "GET",
|
|
56
|
+
path: (ctx) => `/templates/${ctx.encode(String(ctx.input.templateId))}/documents/combined`,
|
|
57
|
+
input: tplId,
|
|
58
|
+
accept: "application/pdf",
|
|
59
|
+
output: binaryResponseSchema
|
|
60
|
+
});
|
|
61
|
+
const retrieveTemplateDocumentPageImages = defineRestOperation({
|
|
62
|
+
id: "retrieve_template_document_page_images",
|
|
63
|
+
slug: "DOCUSIGN_RETRIEVE_TEMPLATE_DOCUMENT_PAGE_IMAGES",
|
|
64
|
+
name: "Retrieve Template Document Page Images",
|
|
65
|
+
description: "List the page images for a template document.",
|
|
66
|
+
method: "GET",
|
|
67
|
+
path: (ctx) => `/templates/${ctx.encode(String(ctx.input.templateId))}/documents/${ctx.encode(String(ctx.input.documentId))}/pages`,
|
|
68
|
+
input: tplDoc,
|
|
69
|
+
output: docusignGenericObjectSchema
|
|
70
|
+
});
|
|
71
|
+
const retrieveTemplatePageImage = defineBinaryOperation({
|
|
72
|
+
id: "retrieve_template_page_image",
|
|
73
|
+
slug: "DOCUSIGN_RETRIEVE_TEMPLATE_PAGE_IMAGE",
|
|
74
|
+
name: "Retrieve Template Page Image",
|
|
75
|
+
description: "Download a specific page image from a template document.",
|
|
76
|
+
method: "GET",
|
|
77
|
+
path: (ctx) => `/templates/${ctx.encode(String(ctx.input.templateId))}/documents/${ctx.encode(String(ctx.input.documentId))}/pages/${ctx.encode(String(ctx.input.pageNumber))}/page_image`,
|
|
78
|
+
input: tplDocPage,
|
|
79
|
+
accept: "image/png",
|
|
80
|
+
output: binaryResponseSchema
|
|
81
|
+
});
|
|
82
|
+
const rotateTemplatePageImage = defineRestOperation({
|
|
83
|
+
id: "rotate_template_page_image",
|
|
84
|
+
slug: "DOCUSIGN_ROTATE_TEMPLATE_PAGE_IMAGE",
|
|
85
|
+
name: "Rotate Template Page Image",
|
|
86
|
+
description: "Rotate a page image on a template document.",
|
|
87
|
+
needsApproval: true,
|
|
88
|
+
method: "PUT",
|
|
89
|
+
path: (ctx) => `/templates/${ctx.encode(String(ctx.input.templateId))}/documents/${ctx.encode(String(ctx.input.documentId))}/pages/${ctx.encode(String(ctx.input.pageNumber))}/page_image`,
|
|
90
|
+
input: tplDocPage.extend({ rotate: z.enum(["left", "right"]) }),
|
|
91
|
+
output: docusignSuccessSchema,
|
|
92
|
+
body: (input) => ({ rotate: input.rotate }),
|
|
93
|
+
transformResponse: () => ({ success: true })
|
|
94
|
+
});
|
|
95
|
+
const deletePageFromTemplateDocument = defineRestOperation({
|
|
96
|
+
id: "delete_page_from_template_document",
|
|
97
|
+
slug: "DOCUSIGN_DELETE_PAGE_FROM_TEMPLATE_DOCUMENT",
|
|
98
|
+
name: "Delete Page From Template Document",
|
|
99
|
+
description: "Delete a page from a template document.",
|
|
100
|
+
needsApproval: true,
|
|
101
|
+
method: "DELETE",
|
|
102
|
+
path: (ctx) => `/templates/${ctx.encode(String(ctx.input.templateId))}/documents/${ctx.encode(String(ctx.input.documentId))}/pages/${ctx.encode(String(ctx.input.pageNumber))}`,
|
|
103
|
+
input: tplDocPage,
|
|
104
|
+
output: docusignSuccessSchema,
|
|
105
|
+
transformResponse: () => ({ success: true })
|
|
106
|
+
});
|
|
107
|
+
|
|
108
|
+
//#endregion
|
|
109
|
+
export { createTemplateResponsiveHtmlPreview, deletePageFromTemplateDocument, getOriginalHtmlDefinitionForTemplate, getTemplateDocumentHtmlDefinition, retrievePdfFromSpecifiedTemplate, retrieveTemplateDocumentPageImages, retrieveTemplatePageImage, rotateTemplatePageImage };
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import * as _keystrokehq_core0 from "@keystrokehq/core";
|
|
3
|
+
import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
|
|
4
|
+
|
|
5
|
+
//#region src/template-lock.d.ts
|
|
6
|
+
declare const lockTemplateForEditing: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
7
|
+
templateId: z.ZodString;
|
|
8
|
+
lock: z.ZodOptional<z.ZodObject<{
|
|
9
|
+
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
10
|
+
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
11
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
12
|
+
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
13
|
+
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
|
|
14
|
+
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
15
|
+
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
16
|
+
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
17
|
+
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
18
|
+
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
19
|
+
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
20
|
+
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
21
|
+
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
22
|
+
declare const getTemplateLockInformation: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
23
|
+
templateId: z.ZodString;
|
|
24
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
25
|
+
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
26
|
+
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
|
|
27
|
+
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
28
|
+
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
29
|
+
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
30
|
+
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
31
|
+
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
32
|
+
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
33
|
+
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
34
|
+
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
35
|
+
declare const updateTemplateLockInformation: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
36
|
+
templateId: z.ZodString;
|
|
37
|
+
lock: z.ZodObject<{
|
|
38
|
+
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
39
|
+
}, z.core.$catchall<z.ZodUnknown>>;
|
|
40
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
41
|
+
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
42
|
+
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
|
|
43
|
+
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
44
|
+
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
45
|
+
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
46
|
+
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
47
|
+
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
48
|
+
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
49
|
+
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
50
|
+
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
51
|
+
declare const deleteTemplateLock: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
52
|
+
templateId: z.ZodString;
|
|
53
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
54
|
+
success: z.ZodBoolean;
|
|
55
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
|
|
56
|
+
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
57
|
+
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
58
|
+
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
59
|
+
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
60
|
+
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
61
|
+
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
62
|
+
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
63
|
+
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
64
|
+
//#endregion
|
|
65
|
+
export { deleteTemplateLock, getTemplateLockInformation, lockTemplateForEditing, updateTemplateLockInformation };
|