@keystrokehq/docusign 0.0.11 → 0.0.16-integration-id-canonicalization.0
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 +3 -2
- package/dist/credential-sets/index.d.mts +2 -0
- package/dist/credential-sets/index.mjs +4 -0
- package/dist/docusign-jwt.credential-set-B0sXS-5i.mjs +39 -0
- package/dist/docusign-jwt.credential-set-Bz99DTgx.d.mts +90 -0
- package/dist/docusign.credential-set-DRhK9ICD.mjs +183 -0
- package/dist/index.d.mts +4 -1
- package/dist/index.mjs +6 -1
- package/dist/operations/index.d.mts +2 -0
- package/dist/operations/index.mjs +3 -0
- package/dist/void-envelope.operation-Bim49UXq.mjs +8192 -0
- package/dist/void-envelope.operation-D-onxqe_.d.mts +18203 -0
- package/package.json +9 -225
- package/dist/_official/index.d.mts +0 -89
- package/dist/_official/index.mjs +0 -3
- package/dist/_runtime/index.d.mts +0 -1
- package/dist/_runtime/index.mjs +0 -1
- package/dist/account-custom-fields.d.mts +0 -65
- package/dist/account-custom-fields.mjs +0 -63
- package/dist/account-stamps.d.mts +0 -164
- package/dist/account-stamps.mjs +0 -144
- package/dist/account-tabs.d.mts +0 -90
- package/dist/account-tabs.mjs +0 -80
- package/dist/account.d.mts +0 -233
- package/dist/account.mjs +0 -207
- package/dist/admin.d.mts +0 -18
- package/dist/admin.mjs +0 -20
- package/dist/auth.d.mts +0 -37
- package/dist/auth.mjs +0 -53
- package/dist/bcc-archive.d.mts +0 -64
- package/dist/bcc-archive.mjs +0 -70
- package/dist/billing.d.mts +0 -217
- package/dist/billing.mjs +0 -208
- package/dist/brands.d.mts +0 -192
- package/dist/brands.mjs +0 -157
- package/dist/bulk-send.d.mts +0 -137
- package/dist/bulk-send.mjs +0 -115
- package/dist/chunked-uploads.d.mts +0 -78
- package/dist/chunked-uploads.mjs +0 -74
- package/dist/click.d.mts +0 -18
- package/dist/click.mjs +0 -20
- package/dist/client.d.mts +0 -47
- package/dist/client.mjs +0 -286
- package/dist/clm.d.mts +0 -18
- package/dist/clm.mjs +0 -20
- package/dist/cloud-storage.d.mts +0 -122
- package/dist/cloud-storage.mjs +0 -115
- package/dist/connect.d.mts +0 -252
- package/dist/connect.mjs +0 -217
- package/dist/connection.d.mts +0 -2
- package/dist/connection.mjs +0 -3
- package/dist/contacts.d.mts +0 -80
- package/dist/contacts.mjs +0 -79
- package/dist/enote.d.mts +0 -44
- package/dist/enote.mjs +0 -45
- package/dist/envelope-attachments.d.mts +0 -86
- package/dist/envelope-attachments.mjs +0 -76
- package/dist/envelope-custom-fields.d.mts +0 -166
- package/dist/envelope-custom-fields.mjs +0 -92
- package/dist/envelope-documents.d.mts +0 -271
- package/dist/envelope-documents.mjs +0 -219
- package/dist/envelope-email.d.mts +0 -65
- package/dist/envelope-email.mjs +0 -60
- package/dist/envelope-lock.d.mts +0 -65
- package/dist/envelope-lock.mjs +0 -60
- package/dist/envelope-logs.d.mts +0 -126
- package/dist/envelope-logs.mjs +0 -126
- package/dist/envelope-notifications.d.mts +0 -47
- package/dist/envelope-notifications.mjs +0 -44
- package/dist/envelope-recipients.d.mts +0 -171
- package/dist/envelope-recipients.mjs +0 -136
- package/dist/envelope-tabs.d.mts +0 -52
- package/dist/envelope-tabs.mjs +0 -49
- package/dist/envelope-views.d.mts +0 -99
- package/dist/envelope-views.mjs +0 -88
- package/dist/envelope-workflow.d.mts +0 -208
- package/dist/envelope-workflow.mjs +0 -176
- package/dist/envelopes.d.mts +0 -430
- package/dist/envelopes.mjs +0 -190
- package/dist/errors.d.mts +0 -48
- package/dist/errors.mjs +0 -76
- package/dist/events.d.mts +0 -192
- package/dist/events.mjs +0 -146
- package/dist/factory-DFejlPDe.mjs +0 -7
- package/dist/groups.d.mts +0 -191
- package/dist/groups.mjs +0 -146
- package/dist/integration-BcEp_dFX.mjs +0 -365
- package/dist/integration-CdIRNjCz.d.mts +0 -72
- package/dist/messaging.d.mts +0 -1
- package/dist/messaging.mjs +0 -1
- package/dist/monitor.d.mts +0 -18
- package/dist/monitor.mjs +0 -20
- package/dist/notary.d.mts +0 -129
- package/dist/notary.mjs +0 -122
- package/dist/operation-helpers-Bqp7KoLi.mjs +0 -102
- package/dist/permission-profiles.d.mts +0 -78
- package/dist/permission-profiles.mjs +0 -70
- package/dist/power-forms.d.mts +0 -51
- package/dist/power-forms.mjs +0 -62
- package/dist/rooms.d.mts +0 -18
- package/dist/rooms.mjs +0 -28
- package/dist/shared-DTUCJayR.mjs +0 -27
- package/dist/signing-groups.d.mts +0 -139
- package/dist/signing-groups.mjs +0 -117
- package/dist/template-custom-fields.d.mts +0 -199
- package/dist/template-custom-fields.mjs +0 -107
- package/dist/template-documents.d.mts +0 -132
- package/dist/template-documents.mjs +0 -109
- package/dist/template-lock.d.mts +0 -65
- package/dist/template-lock.mjs +0 -60
- package/dist/template-sharing.d.mts +0 -129
- package/dist/template-sharing.mjs +0 -108
- package/dist/template-workflow.d.mts +0 -184
- package/dist/template-workflow.mjs +0 -152
- package/dist/templates.d.mts +0 -158
- package/dist/templates.mjs +0 -110
- package/dist/user-authorizations.d.mts +0 -129
- package/dist/user-authorizations.mjs +0 -133
- package/dist/user-custom-settings.d.mts +0 -81
- package/dist/user-custom-settings.mjs +0 -69
- package/dist/user-profile.d.mts +0 -109
- package/dist/user-profile.mjs +0 -106
- package/dist/user-signatures.d.mts +0 -208
- package/dist/user-signatures.mjs +0 -180
- package/dist/users.d.mts +0 -128
- package/dist/users.mjs +0 -98
- package/dist/verification.d.mts +0 -19
- package/dist/verification.mjs +0 -59
- package/dist/workspaces.d.mts +0 -173
- package/dist/workspaces.mjs +0 -143
|
@@ -1,184 +0,0 @@
|
|
|
1
|
-
import * as _keystrokehq_core0 from "@keystrokehq/core";
|
|
2
|
-
import { z } from "zod";
|
|
3
|
-
import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
|
|
4
|
-
|
|
5
|
-
//#region src/template-workflow.d.ts
|
|
6
|
-
declare const returnTemplateWorkflowDefinition: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
7
|
-
templateId: z.ZodString;
|
|
8
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
9
|
-
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
10
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
|
|
11
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
12
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
13
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
14
|
-
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
15
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
16
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
17
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
18
|
-
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
19
|
-
declare const updateTemplateWorkflowDefinition: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
20
|
-
templateId: z.ZodString;
|
|
21
|
-
workflow: z.ZodObject<{
|
|
22
|
-
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
23
|
-
}, z.core.$catchall<z.ZodUnknown>>;
|
|
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 deleteWorkflowDefinitionForTemplate: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
36
|
-
templateId: z.ZodString;
|
|
37
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
38
|
-
success: z.ZodBoolean;
|
|
39
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
|
|
40
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
41
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
42
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
43
|
-
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
44
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
45
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
46
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
47
|
-
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
48
|
-
declare const createTemplateWorkflowStep: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
49
|
-
templateId: z.ZodString;
|
|
50
|
-
step: z.ZodObject<{
|
|
51
|
-
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
52
|
-
}, z.core.$catchall<z.ZodUnknown>>;
|
|
53
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
54
|
-
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
55
|
-
}, z.core.$catchall<z.ZodUnknown>>, 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
|
-
declare const retrieveWorkflowStepForTemplate: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
65
|
-
templateId: z.ZodString;
|
|
66
|
-
workflowStepId: z.ZodString;
|
|
67
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
68
|
-
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
69
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
|
|
70
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
71
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
72
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
73
|
-
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
74
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
75
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
76
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
77
|
-
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
78
|
-
declare const updateWorkflowStepForTemplate: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
79
|
-
templateId: z.ZodString;
|
|
80
|
-
workflowStepId: z.ZodString;
|
|
81
|
-
step: z.ZodObject<{
|
|
82
|
-
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
83
|
-
}, z.core.$catchall<z.ZodUnknown>>;
|
|
84
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
85
|
-
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
86
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
|
|
87
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
88
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
89
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
90
|
-
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
91
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
92
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
93
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
94
|
-
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
95
|
-
declare const deleteTemplateWorkflowStep: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
96
|
-
templateId: z.ZodString;
|
|
97
|
-
workflowStepId: z.ZodString;
|
|
98
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
99
|
-
success: z.ZodBoolean;
|
|
100
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
|
|
101
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
102
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
103
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
104
|
-
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
105
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
106
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
107
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
108
|
-
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
109
|
-
declare const getTemplateDelayedRoutingRules: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
110
|
-
templateId: z.ZodString;
|
|
111
|
-
workflowStepId: z.ZodString;
|
|
112
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
113
|
-
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
114
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
|
|
115
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
116
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
117
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
118
|
-
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
119
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
120
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
121
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
122
|
-
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
123
|
-
declare const updateTemplateDelayedRoutingRules: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
124
|
-
templateId: z.ZodString;
|
|
125
|
-
workflowStepId: z.ZodString;
|
|
126
|
-
rules: z.ZodObject<{
|
|
127
|
-
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
128
|
-
}, z.core.$catchall<z.ZodUnknown>>;
|
|
129
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
130
|
-
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
131
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
|
|
132
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
133
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
134
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
135
|
-
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
136
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
137
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
138
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
139
|
-
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
140
|
-
declare const deleteDelayedRoutingRulesForTemplate: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
141
|
-
templateId: z.ZodString;
|
|
142
|
-
workflowStepId: z.ZodString;
|
|
143
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
144
|
-
success: z.ZodBoolean;
|
|
145
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
|
|
146
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
147
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
148
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
149
|
-
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
150
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
151
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
152
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
153
|
-
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
154
|
-
declare const getTemplateScheduledSendingSettings: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
155
|
-
templateId: z.ZodString;
|
|
156
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
157
|
-
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
158
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
|
|
159
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
160
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
161
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
162
|
-
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
163
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
164
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
165
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
166
|
-
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
167
|
-
declare const updateTemplateScheduledSendingRules: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
168
|
-
templateId: z.ZodString;
|
|
169
|
-
rules: z.ZodObject<{
|
|
170
|
-
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
171
|
-
}, z.core.$catchall<z.ZodUnknown>>;
|
|
172
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
173
|
-
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
174
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
|
|
175
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
176
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
177
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
178
|
-
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
179
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
180
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
181
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
182
|
-
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
183
|
-
//#endregion
|
|
184
|
-
export { createTemplateWorkflowStep, deleteDelayedRoutingRulesForTemplate, deleteTemplateWorkflowStep, deleteWorkflowDefinitionForTemplate, getTemplateDelayedRoutingRules, getTemplateScheduledSendingSettings, retrieveWorkflowStepForTemplate, returnTemplateWorkflowDefinition, updateTemplateDelayedRoutingRules, updateTemplateScheduledSendingRules, updateTemplateWorkflowDefinition, updateWorkflowStepForTemplate };
|
|
@@ -1,152 +0,0 @@
|
|
|
1
|
-
import { t as encodeDocusignPathSegment } from "./shared-DTUCJayR.mjs";
|
|
2
|
-
import { docusignGenericObjectSchema, docusignLooseObjectSchema, docusignSuccessSchema, docusignTemplateIdSchema } from "./schemas/index.mjs";
|
|
3
|
-
import { r as defineRestOperation } from "./operation-helpers-Bqp7KoLi.mjs";
|
|
4
|
-
import { z } from "zod";
|
|
5
|
-
|
|
6
|
-
//#region src/template-workflow.ts
|
|
7
|
-
/**
|
|
8
|
-
* Template workflow + scheduled sending + delayed routing. Covers PLAN.md § 6.15.
|
|
9
|
-
*/
|
|
10
|
-
const tplId = z.object({ templateId: docusignTemplateIdSchema });
|
|
11
|
-
const tplStep = tplId.extend({ workflowStepId: z.string().min(1) });
|
|
12
|
-
const workflow = (templateId) => `/templates/${encodeDocusignPathSegment(String(templateId))}/workflow`;
|
|
13
|
-
const step = (templateId, stepId) => `${workflow(templateId)}/steps/${encodeDocusignPathSegment(String(stepId))}`;
|
|
14
|
-
const returnTemplateWorkflowDefinition = defineRestOperation({
|
|
15
|
-
id: "docusign.return-template-workflow-definition",
|
|
16
|
-
slug: "DOCUSIGN_RETURN_TEMPLATE_WORKFLOW_DEFINITION",
|
|
17
|
-
name: "Return Template Workflow Definition",
|
|
18
|
-
description: "Get the workflow definition attached to a template.",
|
|
19
|
-
method: "GET",
|
|
20
|
-
path: (ctx) => workflow(ctx.input.templateId),
|
|
21
|
-
input: tplId,
|
|
22
|
-
output: docusignGenericObjectSchema
|
|
23
|
-
});
|
|
24
|
-
const updateTemplateWorkflowDefinition = defineRestOperation({
|
|
25
|
-
id: "docusign.update-template-workflow-definition",
|
|
26
|
-
slug: "DOCUSIGN_UPDATE_TEMPLATE_WORKFLOW_DEFINITION",
|
|
27
|
-
name: "Update Template Workflow Definition",
|
|
28
|
-
description: "Update the workflow definition attached to a template.",
|
|
29
|
-
needsApproval: true,
|
|
30
|
-
method: "PUT",
|
|
31
|
-
path: (ctx) => workflow(ctx.input.templateId),
|
|
32
|
-
input: tplId.extend({ workflow: docusignLooseObjectSchema() }),
|
|
33
|
-
output: docusignGenericObjectSchema,
|
|
34
|
-
body: (input) => input.workflow
|
|
35
|
-
});
|
|
36
|
-
const deleteWorkflowDefinitionForTemplate = defineRestOperation({
|
|
37
|
-
id: "docusign.delete-workflow-definition-for-template",
|
|
38
|
-
slug: "DOCUSIGN_DELETE_WORKFLOW_DEFINITION_FOR_TEMPLATE",
|
|
39
|
-
name: "Delete Workflow Definition For Template",
|
|
40
|
-
description: "Delete the workflow definition attached to a template.",
|
|
41
|
-
needsApproval: true,
|
|
42
|
-
method: "DELETE",
|
|
43
|
-
path: (ctx) => workflow(ctx.input.templateId),
|
|
44
|
-
input: tplId,
|
|
45
|
-
output: docusignSuccessSchema,
|
|
46
|
-
transformResponse: () => ({ success: true })
|
|
47
|
-
});
|
|
48
|
-
const createTemplateWorkflowStep = defineRestOperation({
|
|
49
|
-
id: "docusign.create-template-workflow-step",
|
|
50
|
-
slug: "DOCUSIGN_CREATE_TEMPLATE_WORKFLOW_STEP",
|
|
51
|
-
name: "Create Template Workflow Step",
|
|
52
|
-
description: "Add a new workflow step to a template.",
|
|
53
|
-
needsApproval: true,
|
|
54
|
-
method: "POST",
|
|
55
|
-
path: (ctx) => `${workflow(ctx.input.templateId)}/steps`,
|
|
56
|
-
input: tplId.extend({ step: docusignLooseObjectSchema() }),
|
|
57
|
-
output: docusignGenericObjectSchema,
|
|
58
|
-
body: (input) => input.step
|
|
59
|
-
});
|
|
60
|
-
const retrieveWorkflowStepForTemplate = defineRestOperation({
|
|
61
|
-
id: "docusign.retrieve-workflow-step-for-template",
|
|
62
|
-
slug: "DOCUSIGN_RETRIEVE_WORKFLOW_STEP_FOR_TEMPLATE",
|
|
63
|
-
name: "Retrieve Workflow Step For Template",
|
|
64
|
-
description: "Get a specific workflow step on a template.",
|
|
65
|
-
method: "GET",
|
|
66
|
-
path: (ctx) => step(ctx.input.templateId, ctx.input.workflowStepId),
|
|
67
|
-
input: tplStep,
|
|
68
|
-
output: docusignGenericObjectSchema
|
|
69
|
-
});
|
|
70
|
-
const updateWorkflowStepForTemplate = defineRestOperation({
|
|
71
|
-
id: "docusign.update-workflow-step-for-template",
|
|
72
|
-
slug: "DOCUSIGN_UPDATE_WORKFLOW_STEP_FOR_TEMPLATE",
|
|
73
|
-
name: "Update Workflow Step For Template",
|
|
74
|
-
description: "Update a specific workflow step on a template.",
|
|
75
|
-
needsApproval: true,
|
|
76
|
-
method: "PUT",
|
|
77
|
-
path: (ctx) => step(ctx.input.templateId, ctx.input.workflowStepId),
|
|
78
|
-
input: tplStep.extend({ step: docusignLooseObjectSchema() }),
|
|
79
|
-
output: docusignGenericObjectSchema,
|
|
80
|
-
body: (input) => input.step
|
|
81
|
-
});
|
|
82
|
-
const deleteTemplateWorkflowStep = defineRestOperation({
|
|
83
|
-
id: "docusign.delete-template-workflow-step",
|
|
84
|
-
slug: "DOCUSIGN_DELETE_TEMPLATE_WORKFLOW_STEP",
|
|
85
|
-
name: "Delete Template Workflow Step",
|
|
86
|
-
description: "Delete a specific workflow step on a template.",
|
|
87
|
-
needsApproval: true,
|
|
88
|
-
method: "DELETE",
|
|
89
|
-
path: (ctx) => step(ctx.input.templateId, ctx.input.workflowStepId),
|
|
90
|
-
input: tplStep,
|
|
91
|
-
output: docusignSuccessSchema,
|
|
92
|
-
transformResponse: () => ({ success: true })
|
|
93
|
-
});
|
|
94
|
-
const getTemplateDelayedRoutingRules = defineRestOperation({
|
|
95
|
-
id: "docusign.get-template-delayed-routing-rules",
|
|
96
|
-
slug: "DOCUSIGN_GET_TEMPLATE_DELAYED_ROUTING_RULES",
|
|
97
|
-
name: "Get Template Delayed Routing Rules",
|
|
98
|
-
description: "Get delayed routing rules for a template workflow step.",
|
|
99
|
-
method: "GET",
|
|
100
|
-
path: (ctx) => `${step(ctx.input.templateId, ctx.input.workflowStepId)}/delayedRouting`,
|
|
101
|
-
input: tplStep,
|
|
102
|
-
output: docusignGenericObjectSchema
|
|
103
|
-
});
|
|
104
|
-
const updateTemplateDelayedRoutingRules = defineRestOperation({
|
|
105
|
-
id: "docusign.update-template-delayed-routing-rules",
|
|
106
|
-
slug: "DOCUSIGN_UPDATE_TEMPLATE_DELAYED_ROUTING_RULES",
|
|
107
|
-
name: "Update Template Delayed Routing Rules",
|
|
108
|
-
description: "Update delayed routing rules for a template workflow step.",
|
|
109
|
-
needsApproval: true,
|
|
110
|
-
method: "PUT",
|
|
111
|
-
path: (ctx) => `${step(ctx.input.templateId, ctx.input.workflowStepId)}/delayedRouting`,
|
|
112
|
-
input: tplStep.extend({ rules: docusignLooseObjectSchema() }),
|
|
113
|
-
output: docusignGenericObjectSchema,
|
|
114
|
-
body: (input) => input.rules
|
|
115
|
-
});
|
|
116
|
-
const deleteDelayedRoutingRulesForTemplate = defineRestOperation({
|
|
117
|
-
id: "docusign.delete-delayed-routing-rules-for-template",
|
|
118
|
-
slug: "DOCUSIGN_DELETE_DELAYED_ROUTING_RULES_FOR_TEMPLATE",
|
|
119
|
-
name: "Delete Template Delayed Routing Rules",
|
|
120
|
-
description: "Delete delayed routing rules on a template workflow step.",
|
|
121
|
-
needsApproval: true,
|
|
122
|
-
method: "DELETE",
|
|
123
|
-
path: (ctx) => `${step(ctx.input.templateId, ctx.input.workflowStepId)}/delayedRouting`,
|
|
124
|
-
input: tplStep,
|
|
125
|
-
output: docusignSuccessSchema,
|
|
126
|
-
transformResponse: () => ({ success: true })
|
|
127
|
-
});
|
|
128
|
-
const getTemplateScheduledSendingSettings = defineRestOperation({
|
|
129
|
-
id: "docusign.get-template-scheduled-sending-settings",
|
|
130
|
-
slug: "DOCUSIGN_GET_TEMPLATE_SCHEDULED_SENDING_SETTINGS",
|
|
131
|
-
name: "Get Template Scheduled Sending Settings",
|
|
132
|
-
description: "Get scheduled sending settings on a template workflow.",
|
|
133
|
-
method: "GET",
|
|
134
|
-
path: (ctx) => `${workflow(ctx.input.templateId)}/scheduledSending`,
|
|
135
|
-
input: tplId,
|
|
136
|
-
output: docusignGenericObjectSchema
|
|
137
|
-
});
|
|
138
|
-
const updateTemplateScheduledSendingRules = defineRestOperation({
|
|
139
|
-
id: "docusign.update-template-scheduled-sending-rules",
|
|
140
|
-
slug: "DOCUSIGN_UPDATE_TEMPLATE_SCHEDULED_SENDING_RULES",
|
|
141
|
-
name: "Update Template Scheduled Sending Rules",
|
|
142
|
-
description: "Update scheduled sending rules on a template workflow.",
|
|
143
|
-
needsApproval: true,
|
|
144
|
-
method: "PUT",
|
|
145
|
-
path: (ctx) => `${workflow(ctx.input.templateId)}/scheduledSending`,
|
|
146
|
-
input: tplId.extend({ rules: docusignLooseObjectSchema() }),
|
|
147
|
-
output: docusignGenericObjectSchema,
|
|
148
|
-
body: (input) => input.rules
|
|
149
|
-
});
|
|
150
|
-
|
|
151
|
-
//#endregion
|
|
152
|
-
export { createTemplateWorkflowStep, deleteDelayedRoutingRulesForTemplate, deleteTemplateWorkflowStep, deleteWorkflowDefinitionForTemplate, getTemplateDelayedRoutingRules, getTemplateScheduledSendingSettings, retrieveWorkflowStepForTemplate, returnTemplateWorkflowDefinition, updateTemplateDelayedRoutingRules, updateTemplateScheduledSendingRules, updateTemplateWorkflowDefinition, updateWorkflowStepForTemplate };
|
package/dist/templates.d.mts
DELETED
|
@@ -1,158 +0,0 @@
|
|
|
1
|
-
import * as _keystrokehq_core0 from "@keystrokehq/core";
|
|
2
|
-
import { z } from "zod";
|
|
3
|
-
import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
|
|
4
|
-
|
|
5
|
-
//#region src/templates.d.ts
|
|
6
|
-
declare const listAllTemplates: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
7
|
-
startPosition: z.ZodOptional<z.ZodNumber>;
|
|
8
|
-
count: z.ZodOptional<z.ZodNumber>;
|
|
9
|
-
searchText: z.ZodOptional<z.ZodString>;
|
|
10
|
-
folderIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
11
|
-
shared: z.ZodOptional<z.ZodEnum<{
|
|
12
|
-
shared_with_me: "shared_with_me";
|
|
13
|
-
all: "all";
|
|
14
|
-
}>>;
|
|
15
|
-
orderBy: z.ZodOptional<z.ZodString>;
|
|
16
|
-
order: z.ZodOptional<z.ZodEnum<{
|
|
17
|
-
asc: "asc";
|
|
18
|
-
desc: "desc";
|
|
19
|
-
}>>;
|
|
20
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
21
|
-
resultSetSize: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
22
|
-
totalSetSize: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
23
|
-
startPosition: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
24
|
-
endPosition: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
25
|
-
nextUri: z.ZodOptional<z.ZodString>;
|
|
26
|
-
previousUri: z.ZodOptional<z.ZodString>;
|
|
27
|
-
envelopeTemplates: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
28
|
-
templateId: z.ZodString;
|
|
29
|
-
name: z.ZodOptional<z.ZodString>;
|
|
30
|
-
description: z.ZodOptional<z.ZodString>;
|
|
31
|
-
shared: z.ZodOptional<z.ZodString>;
|
|
32
|
-
created: z.ZodOptional<z.ZodString>;
|
|
33
|
-
lastModified: z.ZodOptional<z.ZodString>;
|
|
34
|
-
}, z.core.$catchall<z.ZodUnknown>>>>;
|
|
35
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
|
|
36
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
37
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
38
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
39
|
-
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
40
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
41
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
42
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
43
|
-
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
44
|
-
declare const getTemplate: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
45
|
-
templateId: z.ZodString;
|
|
46
|
-
include: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
47
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
48
|
-
templateId: z.ZodString;
|
|
49
|
-
name: z.ZodOptional<z.ZodString>;
|
|
50
|
-
description: z.ZodOptional<z.ZodString>;
|
|
51
|
-
shared: z.ZodOptional<z.ZodString>;
|
|
52
|
-
documents: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
53
|
-
documentId: z.ZodString;
|
|
54
|
-
name: z.ZodOptional<z.ZodString>;
|
|
55
|
-
type: z.ZodOptional<z.ZodString>;
|
|
56
|
-
uri: z.ZodOptional<z.ZodString>;
|
|
57
|
-
order: z.ZodOptional<z.ZodString>;
|
|
58
|
-
}, z.core.$catchall<z.ZodUnknown>>>>;
|
|
59
|
-
recipients: z.ZodOptional<z.ZodObject<{
|
|
60
|
-
signers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
61
|
-
recipientId: z.ZodOptional<z.ZodString>;
|
|
62
|
-
email: z.ZodOptional<z.ZodString>;
|
|
63
|
-
name: z.ZodOptional<z.ZodString>;
|
|
64
|
-
status: z.ZodOptional<z.ZodString>;
|
|
65
|
-
routingOrder: z.ZodOptional<z.ZodString>;
|
|
66
|
-
clientUserId: z.ZodOptional<z.ZodString>;
|
|
67
|
-
}, z.core.$catchall<z.ZodUnknown>>>>;
|
|
68
|
-
carbonCopies: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
69
|
-
recipientId: z.ZodOptional<z.ZodString>;
|
|
70
|
-
email: z.ZodOptional<z.ZodString>;
|
|
71
|
-
name: z.ZodOptional<z.ZodString>;
|
|
72
|
-
status: z.ZodOptional<z.ZodString>;
|
|
73
|
-
routingOrder: z.ZodOptional<z.ZodString>;
|
|
74
|
-
clientUserId: z.ZodOptional<z.ZodString>;
|
|
75
|
-
}, z.core.$catchall<z.ZodUnknown>>>>;
|
|
76
|
-
recipientCount: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
77
|
-
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
78
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
|
|
79
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
80
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
81
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
82
|
-
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
83
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
84
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
85
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
86
|
-
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
87
|
-
declare const addTemplatesToEnvelope: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
88
|
-
envelopeId: z.ZodString;
|
|
89
|
-
documentTemplates: 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.$strip>, z.ZodObject<{
|
|
93
|
-
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
94
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
|
|
95
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
96
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
97
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
98
|
-
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
99
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
100
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
101
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
102
|
-
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
103
|
-
declare const getTemplatesUsedInEnvelope: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
104
|
-
envelopeId: z.ZodString;
|
|
105
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
106
|
-
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
107
|
-
}, z.core.$catchall<z.ZodUnknown>>, 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 retrieveAccountFavoriteTemplates: _keystrokehq_core0.Operation<z.ZodObject<{}, z.core.$strip>, z.ZodObject<{
|
|
117
|
-
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
118
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
|
|
119
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
120
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
121
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
122
|
-
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
123
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
124
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
125
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
126
|
-
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
127
|
-
declare const setTemplatesAsAccountFavorites: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
128
|
-
favoriteTemplates: z.ZodArray<z.ZodObject<{
|
|
129
|
-
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
130
|
-
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
131
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
132
|
-
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
133
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
|
|
134
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
135
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
136
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
137
|
-
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
138
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
139
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
140
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
141
|
-
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
142
|
-
declare const removeTemplatesFromFavorites: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
143
|
-
favoriteTemplates: z.ZodArray<z.ZodObject<{
|
|
144
|
-
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
145
|
-
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
146
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
147
|
-
success: z.ZodBoolean;
|
|
148
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"docusign", z.ZodObject<{
|
|
149
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
150
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
151
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
152
|
-
}, z.core.$strip>, readonly _keystrokehq_core_credential_set0.CredentialConnection<z.ZodObject<{
|
|
153
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
154
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
155
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
156
|
-
}, z.core.$strip>>[] | undefined>], undefined>;
|
|
157
|
-
//#endregion
|
|
158
|
-
export { addTemplatesToEnvelope, getTemplate, getTemplatesUsedInEnvelope, listAllTemplates, removeTemplatesFromFavorites, retrieveAccountFavoriteTemplates, setTemplatesAsAccountFavorites };
|
package/dist/templates.mjs
DELETED
|
@@ -1,110 +0,0 @@
|
|
|
1
|
-
import { docusignEnvelopeIdSchema, docusignGenericObjectSchema, docusignListPaginationInputSchema, docusignLooseObjectSchema, docusignSuccessSchema, docusignTemplateIdSchema, docusignTemplateListSchema, docusignTemplateSchema } from "./schemas/index.mjs";
|
|
2
|
-
import { r as defineRestOperation } from "./operation-helpers-Bqp7KoLi.mjs";
|
|
3
|
-
import { z } from "zod";
|
|
4
|
-
|
|
5
|
-
//#region src/templates.ts
|
|
6
|
-
/**
|
|
7
|
-
* Template core. Covers PLAN.md § 6.12.
|
|
8
|
-
*/
|
|
9
|
-
const listAllTemplates = defineRestOperation({
|
|
10
|
-
id: "docusign.list-all-templates",
|
|
11
|
-
slug: "DOCUSIGN_LIST_ALL_TEMPLATES",
|
|
12
|
-
name: "List All Templates",
|
|
13
|
-
description: "List templates on the account, optionally filtered by search text and folder.",
|
|
14
|
-
method: "GET",
|
|
15
|
-
path: "/templates",
|
|
16
|
-
input: docusignListPaginationInputSchema.extend({
|
|
17
|
-
searchText: z.string().optional(),
|
|
18
|
-
folderIds: z.array(z.string()).optional(),
|
|
19
|
-
shared: z.enum(["shared_with_me", "all"]).optional(),
|
|
20
|
-
orderBy: z.string().optional(),
|
|
21
|
-
order: z.enum(["asc", "desc"]).optional()
|
|
22
|
-
}),
|
|
23
|
-
output: docusignTemplateListSchema,
|
|
24
|
-
query: (input) => ({
|
|
25
|
-
start_position: input.startPosition,
|
|
26
|
-
count: input.count,
|
|
27
|
-
search_text: input.searchText,
|
|
28
|
-
folder_ids: input.folderIds,
|
|
29
|
-
shared: input.shared,
|
|
30
|
-
order_by: input.orderBy,
|
|
31
|
-
order: input.order
|
|
32
|
-
})
|
|
33
|
-
});
|
|
34
|
-
const getTemplate = defineRestOperation({
|
|
35
|
-
id: "docusign.get-template",
|
|
36
|
-
slug: "DOCUSIGN_GET_TEMPLATE",
|
|
37
|
-
name: "Get Template",
|
|
38
|
-
description: "Fetch a DocuSign template by id.",
|
|
39
|
-
method: "GET",
|
|
40
|
-
path: (ctx) => `/templates/${ctx.encode(String(ctx.input.templateId))}`,
|
|
41
|
-
input: z.object({
|
|
42
|
-
templateId: docusignTemplateIdSchema,
|
|
43
|
-
include: z.array(z.string()).optional()
|
|
44
|
-
}),
|
|
45
|
-
output: docusignTemplateSchema,
|
|
46
|
-
query: (input) => ({ include: input.include })
|
|
47
|
-
});
|
|
48
|
-
const addTemplatesToEnvelope = defineRestOperation({
|
|
49
|
-
id: "docusign.add-templates-to-envelope",
|
|
50
|
-
slug: "DOCUSIGN_ADD_TEMPLATES_TO_ENVELOPE",
|
|
51
|
-
name: "Add Templates To Envelope",
|
|
52
|
-
description: "Apply templates to an existing envelope.",
|
|
53
|
-
needsApproval: true,
|
|
54
|
-
method: "POST",
|
|
55
|
-
path: (ctx) => `/envelopes/${ctx.encode(String(ctx.input.envelopeId))}/templates`,
|
|
56
|
-
input: z.object({
|
|
57
|
-
envelopeId: docusignEnvelopeIdSchema,
|
|
58
|
-
documentTemplates: z.array(docusignLooseObjectSchema()).min(1)
|
|
59
|
-
}),
|
|
60
|
-
output: docusignGenericObjectSchema,
|
|
61
|
-
body: (input) => ({ documentTemplates: input.documentTemplates })
|
|
62
|
-
});
|
|
63
|
-
const getTemplatesUsedInEnvelope = defineRestOperation({
|
|
64
|
-
id: "docusign.get-templates-used-in-envelope",
|
|
65
|
-
slug: "DOCUSIGN_GET_TEMPLATES_USED_IN_ENVELOPE",
|
|
66
|
-
name: "Get Templates Used In Envelope",
|
|
67
|
-
description: "List the templates applied to an envelope.",
|
|
68
|
-
method: "GET",
|
|
69
|
-
path: (ctx) => `/envelopes/${ctx.encode(String(ctx.input.envelopeId))}/templates`,
|
|
70
|
-
input: z.object({ envelopeId: docusignEnvelopeIdSchema }),
|
|
71
|
-
output: docusignGenericObjectSchema
|
|
72
|
-
});
|
|
73
|
-
const retrieveAccountFavoriteTemplates = defineRestOperation({
|
|
74
|
-
id: "docusign.retrieve-account-favorite-templates",
|
|
75
|
-
slug: "DOCUSIGN_RETRIEVE_ACCOUNT_FAVORITE_TEMPLATES",
|
|
76
|
-
name: "Retrieve Account Favorite Templates",
|
|
77
|
-
description: "List favorite templates on the account.",
|
|
78
|
-
method: "GET",
|
|
79
|
-
path: "/favorite_templates",
|
|
80
|
-
input: z.object({}),
|
|
81
|
-
output: docusignGenericObjectSchema
|
|
82
|
-
});
|
|
83
|
-
const setTemplatesAsAccountFavorites = defineRestOperation({
|
|
84
|
-
id: "docusign.set-templates-as-account-favorites",
|
|
85
|
-
slug: "DOCUSIGN_SET_TEMPLATES_AS_ACCOUNT_FAVORITES",
|
|
86
|
-
name: "Set Templates As Account Favorites",
|
|
87
|
-
description: "Mark templates as favorites on the account.",
|
|
88
|
-
needsApproval: true,
|
|
89
|
-
method: "PUT",
|
|
90
|
-
path: "/favorite_templates",
|
|
91
|
-
input: z.object({ favoriteTemplates: z.array(docusignLooseObjectSchema()).min(1) }),
|
|
92
|
-
output: docusignGenericObjectSchema,
|
|
93
|
-
body: (input) => ({ favoriteTemplates: input.favoriteTemplates })
|
|
94
|
-
});
|
|
95
|
-
const removeTemplatesFromFavorites = defineRestOperation({
|
|
96
|
-
id: "docusign.remove-templates-from-favorites",
|
|
97
|
-
slug: "DOCUSIGN_REMOVE_TEMPLATES_FROM_FAVORITES",
|
|
98
|
-
name: "Remove Templates From Favorites",
|
|
99
|
-
description: "Unmark templates as favorites on the account.",
|
|
100
|
-
needsApproval: true,
|
|
101
|
-
method: "DELETE",
|
|
102
|
-
path: "/favorite_templates",
|
|
103
|
-
input: z.object({ favoriteTemplates: z.array(docusignLooseObjectSchema()).min(1) }),
|
|
104
|
-
output: docusignSuccessSchema,
|
|
105
|
-
body: (input) => ({ favoriteTemplates: input.favoriteTemplates }),
|
|
106
|
-
transformResponse: () => ({ success: true })
|
|
107
|
-
});
|
|
108
|
-
|
|
109
|
-
//#endregion
|
|
110
|
-
export { addTemplatesToEnvelope, getTemplate, getTemplatesUsedInEnvelope, listAllTemplates, removeTemplatesFromFavorites, retrieveAccountFavoriteTemplates, setTemplatesAsAccountFavorites };
|