@keystrokehq/docusign 0.0.15 → 0.0.16-integration-id-canonicalization.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 +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-BrMnF4Ok.d.mts +63 -0
- package/dist/docusign.credential-set-BloJ2PrK.mjs +51 -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-B0nzxjWT.d.mts +8752 -0
- package/dist/void-envelope.operation-CfaS-zI7.mjs +8192 -0
- package/package.json +11 -227
- package/dist/_official/index.d.mts +0 -75
- 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 -48
- package/dist/account-custom-fields.mjs +0 -63
- package/dist/account-stamps.d.mts +0 -119
- package/dist/account-stamps.mjs +0 -144
- package/dist/account-tabs.d.mts +0 -65
- package/dist/account-tabs.mjs +0 -80
- package/dist/account.d.mts +0 -160
- package/dist/account.mjs +0 -207
- package/dist/admin.d.mts +0 -13
- package/dist/admin.mjs +0 -20
- package/dist/auth.d.mts +0 -28
- package/dist/auth.mjs +0 -64
- package/dist/bcc-archive.d.mts +0 -47
- package/dist/bcc-archive.mjs +0 -70
- package/dist/billing.d.mts +0 -152
- package/dist/billing.mjs +0 -208
- package/dist/brands.d.mts +0 -147
- package/dist/brands.mjs +0 -157
- package/dist/bulk-send.d.mts +0 -104
- package/dist/bulk-send.mjs +0 -115
- package/dist/chunked-uploads.d.mts +0 -57
- package/dist/chunked-uploads.mjs +0 -74
- package/dist/click.d.mts +0 -13
- 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 -13
- package/dist/clm.mjs +0 -20
- package/dist/cloud-storage.d.mts +0 -93
- package/dist/cloud-storage.mjs +0 -115
- package/dist/connect.d.mts +0 -183
- 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 -59
- package/dist/contacts.mjs +0 -79
- package/dist/enote.d.mts +0 -31
- package/dist/enote.mjs +0 -45
- package/dist/envelope-attachments.d.mts +0 -65
- package/dist/envelope-attachments.mjs +0 -76
- package/dist/envelope-custom-fields.d.mts +0 -137
- package/dist/envelope-custom-fields.mjs +0 -92
- package/dist/envelope-documents.d.mts +0 -206
- package/dist/envelope-documents.mjs +0 -219
- package/dist/envelope-email.d.mts +0 -48
- package/dist/envelope-email.mjs +0 -60
- package/dist/envelope-lock.d.mts +0 -48
- package/dist/envelope-lock.mjs +0 -60
- package/dist/envelope-logs.d.mts +0 -89
- package/dist/envelope-logs.mjs +0 -126
- package/dist/envelope-notifications.d.mts +0 -34
- package/dist/envelope-notifications.mjs +0 -44
- package/dist/envelope-recipients.d.mts +0 -126
- package/dist/envelope-recipients.mjs +0 -136
- package/dist/envelope-tabs.d.mts +0 -39
- package/dist/envelope-tabs.mjs +0 -49
- package/dist/envelope-views.d.mts +0 -74
- package/dist/envelope-views.mjs +0 -88
- package/dist/envelope-workflow.d.mts +0 -151
- package/dist/envelope-workflow.mjs +0 -176
- package/dist/envelopes.d.mts +0 -377
- 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-5kY-Jnda.mjs +0 -8
- package/dist/groups.d.mts +0 -150
- package/dist/groups.mjs +0 -146
- package/dist/integration-H05G5JY8.mjs +0 -112
- package/dist/integration-Mk1ScWT6.d.mts +0 -30
- package/dist/messaging.d.mts +0 -1
- package/dist/messaging.mjs +0 -1
- package/dist/monitor.d.mts +0 -13
- package/dist/monitor.mjs +0 -20
- package/dist/notary.d.mts +0 -92
- package/dist/notary.mjs +0 -122
- package/dist/operation-helpers-D25WHTo1.mjs +0 -102
- package/dist/permission-profiles.d.mts +0 -57
- package/dist/permission-profiles.mjs +0 -70
- package/dist/power-forms.d.mts +0 -38
- package/dist/power-forms.mjs +0 -62
- package/dist/rooms.d.mts +0 -13
- package/dist/rooms.mjs +0 -28
- package/dist/shared-DTUCJayR.mjs +0 -27
- package/dist/signing-groups.d.mts +0 -102
- package/dist/signing-groups.mjs +0 -117
- package/dist/template-custom-fields.d.mts +0 -166
- package/dist/template-custom-fields.mjs +0 -107
- package/dist/template-documents.d.mts +0 -99
- package/dist/template-documents.mjs +0 -109
- package/dist/template-lock.d.mts +0 -48
- package/dist/template-lock.mjs +0 -60
- package/dist/template-sharing.d.mts +0 -96
- package/dist/template-sharing.mjs +0 -108
- package/dist/template-workflow.d.mts +0 -135
- package/dist/template-workflow.mjs +0 -152
- package/dist/templates.d.mts +0 -129
- package/dist/templates.mjs +0 -110
- package/dist/user-authorizations.d.mts +0 -96
- package/dist/user-authorizations.mjs +0 -133
- package/dist/user-custom-settings.d.mts +0 -60
- package/dist/user-custom-settings.mjs +0 -69
- package/dist/user-profile.d.mts +0 -80
- package/dist/user-profile.mjs +0 -106
- package/dist/user-signatures.d.mts +0 -155
- package/dist/user-signatures.mjs +0 -180
- package/dist/users.d.mts +0 -103
- 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 -128
- package/dist/workspaces.mjs +0 -143
|
@@ -1,166 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
import * as _keystrokehq_core0 from "@keystrokehq/core";
|
|
3
|
-
|
|
4
|
-
//#region src/template-custom-fields.d.ts
|
|
5
|
-
declare const createTemplateDocumentCustomFields: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
6
|
-
templateId: z.ZodString;
|
|
7
|
-
documentId: z.ZodString;
|
|
8
|
-
documentFields: z.ZodArray<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
|
-
textCustomFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
13
|
-
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
14
|
-
}, z.core.$catchall<z.ZodUnknown>>>>;
|
|
15
|
-
listCustomFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
16
|
-
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
17
|
-
}, z.core.$catchall<z.ZodUnknown>>>>;
|
|
18
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:docusign", z.ZodObject<{
|
|
19
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
20
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
21
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
22
|
-
}, z.core.$strip>>], undefined>;
|
|
23
|
-
declare const updateTemplateDocumentCustomFields: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
24
|
-
templateId: z.ZodString;
|
|
25
|
-
documentId: z.ZodString;
|
|
26
|
-
documentFields: z.ZodArray<z.ZodObject<{
|
|
27
|
-
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
28
|
-
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
29
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
30
|
-
textCustomFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
31
|
-
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
32
|
-
}, z.core.$catchall<z.ZodUnknown>>>>;
|
|
33
|
-
listCustomFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
34
|
-
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
35
|
-
}, z.core.$catchall<z.ZodUnknown>>>>;
|
|
36
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:docusign", z.ZodObject<{
|
|
37
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
38
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
39
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
40
|
-
}, z.core.$strip>>], undefined>;
|
|
41
|
-
declare const deleteCustomDocumentFieldsFromTemplate: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
42
|
-
templateId: z.ZodString;
|
|
43
|
-
documentId: z.ZodString;
|
|
44
|
-
documentFields: z.ZodArray<z.ZodObject<{
|
|
45
|
-
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
46
|
-
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
47
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
48
|
-
success: z.ZodBoolean;
|
|
49
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:docusign", z.ZodObject<{
|
|
50
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
51
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
52
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
53
|
-
}, z.core.$strip>>], undefined>;
|
|
54
|
-
declare const createCustomFieldsInTemplateDocument: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
55
|
-
templateId: z.ZodString;
|
|
56
|
-
documentId: z.ZodString;
|
|
57
|
-
customFields: z.ZodObject<{
|
|
58
|
-
textCustomFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
59
|
-
name: z.ZodString;
|
|
60
|
-
value: z.ZodString;
|
|
61
|
-
required: z.ZodOptional<z.ZodBoolean>;
|
|
62
|
-
show: z.ZodOptional<z.ZodBoolean>;
|
|
63
|
-
}, z.core.$catchall<z.ZodUnknown>>>>;
|
|
64
|
-
listCustomFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
65
|
-
name: z.ZodString;
|
|
66
|
-
value: z.ZodString;
|
|
67
|
-
required: z.ZodOptional<z.ZodBoolean>;
|
|
68
|
-
show: z.ZodOptional<z.ZodBoolean>;
|
|
69
|
-
listItems: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
70
|
-
}, z.core.$catchall<z.ZodUnknown>>>>;
|
|
71
|
-
}, z.core.$catchall<z.ZodUnknown>>;
|
|
72
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
73
|
-
textCustomFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
74
|
-
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
75
|
-
}, z.core.$catchall<z.ZodUnknown>>>>;
|
|
76
|
-
listCustomFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
77
|
-
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
78
|
-
}, z.core.$catchall<z.ZodUnknown>>>>;
|
|
79
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:docusign", z.ZodObject<{
|
|
80
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
81
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
82
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
83
|
-
}, z.core.$strip>>], undefined>;
|
|
84
|
-
declare const retrieveCustomFieldsForTemplate: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
85
|
-
templateId: z.ZodString;
|
|
86
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
87
|
-
textCustomFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
88
|
-
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
89
|
-
}, z.core.$catchall<z.ZodUnknown>>>>;
|
|
90
|
-
listCustomFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
91
|
-
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
92
|
-
}, z.core.$catchall<z.ZodUnknown>>>>;
|
|
93
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:docusign", z.ZodObject<{
|
|
94
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
95
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
96
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
97
|
-
}, z.core.$strip>>], undefined>;
|
|
98
|
-
declare const retrieveTemplateCustomFields: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
99
|
-
templateId: z.ZodString;
|
|
100
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
101
|
-
textCustomFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
102
|
-
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
103
|
-
}, z.core.$catchall<z.ZodUnknown>>>>;
|
|
104
|
-
listCustomFields: 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
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke: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>>], undefined>;
|
|
112
|
-
declare const updateTemplateCustomFields: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
113
|
-
templateId: z.ZodString;
|
|
114
|
-
customFields: z.ZodObject<{
|
|
115
|
-
textCustomFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
116
|
-
name: z.ZodString;
|
|
117
|
-
value: z.ZodString;
|
|
118
|
-
required: z.ZodOptional<z.ZodBoolean>;
|
|
119
|
-
show: z.ZodOptional<z.ZodBoolean>;
|
|
120
|
-
}, z.core.$catchall<z.ZodUnknown>>>>;
|
|
121
|
-
listCustomFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
122
|
-
name: z.ZodString;
|
|
123
|
-
value: z.ZodString;
|
|
124
|
-
required: z.ZodOptional<z.ZodBoolean>;
|
|
125
|
-
show: z.ZodOptional<z.ZodBoolean>;
|
|
126
|
-
listItems: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
127
|
-
}, z.core.$catchall<z.ZodUnknown>>>>;
|
|
128
|
-
}, z.core.$catchall<z.ZodUnknown>>;
|
|
129
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
130
|
-
textCustomFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
131
|
-
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
132
|
-
}, z.core.$catchall<z.ZodUnknown>>>>;
|
|
133
|
-
listCustomFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
134
|
-
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
135
|
-
}, z.core.$catchall<z.ZodUnknown>>>>;
|
|
136
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:docusign", z.ZodObject<{
|
|
137
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
138
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
139
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
140
|
-
}, z.core.$strip>>], undefined>;
|
|
141
|
-
declare const deleteCustomFieldsInTemplate: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
142
|
-
templateId: z.ZodString;
|
|
143
|
-
customFields: z.ZodObject<{
|
|
144
|
-
textCustomFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
145
|
-
name: z.ZodString;
|
|
146
|
-
value: z.ZodString;
|
|
147
|
-
required: z.ZodOptional<z.ZodBoolean>;
|
|
148
|
-
show: z.ZodOptional<z.ZodBoolean>;
|
|
149
|
-
}, z.core.$catchall<z.ZodUnknown>>>>;
|
|
150
|
-
listCustomFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
151
|
-
name: z.ZodString;
|
|
152
|
-
value: z.ZodString;
|
|
153
|
-
required: z.ZodOptional<z.ZodBoolean>;
|
|
154
|
-
show: z.ZodOptional<z.ZodBoolean>;
|
|
155
|
-
listItems: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
156
|
-
}, z.core.$catchall<z.ZodUnknown>>>>;
|
|
157
|
-
}, z.core.$catchall<z.ZodUnknown>>;
|
|
158
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
159
|
-
success: z.ZodBoolean;
|
|
160
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:docusign", z.ZodObject<{
|
|
161
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
162
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
163
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
164
|
-
}, z.core.$strip>>], undefined>;
|
|
165
|
-
//#endregion
|
|
166
|
-
export { createCustomFieldsInTemplateDocument, createTemplateDocumentCustomFields, deleteCustomDocumentFieldsFromTemplate, deleteCustomFieldsInTemplate, retrieveCustomFieldsForTemplate, retrieveTemplateCustomFields, updateTemplateCustomFields, updateTemplateDocumentCustomFields };
|
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
import { docusignCustomFieldsInputSchema, docusignCustomFieldsResponseSchema, docusignDocumentIdSchema, docusignLooseObjectSchema, docusignSuccessSchema, docusignTemplateIdSchema } from "./schemas/index.mjs";
|
|
2
|
-
import { r as defineRestOperation } from "./operation-helpers-D25WHTo1.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: "docusign.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: "docusign.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: "docusign.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: "docusign.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: "docusign.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: "docusign.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: "docusign.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: "docusign.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 };
|
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
import * as _keystrokehq_core0 from "@keystrokehq/core";
|
|
3
|
-
|
|
4
|
-
//#region src/template-documents.d.ts
|
|
5
|
-
declare const getTemplateDocumentHtmlDefinition: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
6
|
-
templateId: z.ZodString;
|
|
7
|
-
documentId: 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<"keystroke: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>>], undefined>;
|
|
15
|
-
declare const getOriginalHtmlDefinitionForTemplate: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
16
|
-
templateId: z.ZodString;
|
|
17
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
18
|
-
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
19
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke: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>>], undefined>;
|
|
24
|
-
declare const createTemplateResponsiveHtmlPreview: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
25
|
-
templateId: z.ZodString;
|
|
26
|
-
options: z.ZodOptional<z.ZodObject<{
|
|
27
|
-
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
28
|
-
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
29
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
30
|
-
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
31
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:docusign", z.ZodObject<{
|
|
32
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
33
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
34
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
35
|
-
}, z.core.$strip>>], undefined>;
|
|
36
|
-
declare const retrievePdfFromSpecifiedTemplate: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
37
|
-
templateId: z.ZodString;
|
|
38
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
39
|
-
contentType: z.ZodOptional<z.ZodString>;
|
|
40
|
-
contentDisposition: z.ZodOptional<z.ZodString>;
|
|
41
|
-
status: z.ZodNumber;
|
|
42
|
-
body: z.ZodString;
|
|
43
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:docusign", 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>;
|
|
48
|
-
declare const retrieveTemplateDocumentPageImages: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
49
|
-
templateId: z.ZodString;
|
|
50
|
-
documentId: z.ZodString;
|
|
51
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
52
|
-
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
53
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:docusign", z.ZodObject<{
|
|
54
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
55
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
56
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
57
|
-
}, z.core.$strip>>], undefined>;
|
|
58
|
-
declare const retrieveTemplatePageImage: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
59
|
-
templateId: z.ZodString;
|
|
60
|
-
documentId: z.ZodString;
|
|
61
|
-
pageNumber: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
62
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
63
|
-
contentType: z.ZodOptional<z.ZodString>;
|
|
64
|
-
contentDisposition: z.ZodOptional<z.ZodString>;
|
|
65
|
-
status: z.ZodNumber;
|
|
66
|
-
body: z.ZodString;
|
|
67
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:docusign", z.ZodObject<{
|
|
68
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
69
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
70
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
71
|
-
}, z.core.$strip>>], undefined>;
|
|
72
|
-
declare const rotateTemplatePageImage: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
73
|
-
templateId: z.ZodString;
|
|
74
|
-
documentId: z.ZodString;
|
|
75
|
-
pageNumber: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
76
|
-
rotate: z.ZodEnum<{
|
|
77
|
-
left: "left";
|
|
78
|
-
right: "right";
|
|
79
|
-
}>;
|
|
80
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
81
|
-
success: z.ZodBoolean;
|
|
82
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:docusign", 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>;
|
|
87
|
-
declare const deletePageFromTemplateDocument: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
88
|
-
templateId: z.ZodString;
|
|
89
|
-
documentId: z.ZodString;
|
|
90
|
-
pageNumber: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
91
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
92
|
-
success: z.ZodBoolean;
|
|
93
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:docusign", z.ZodObject<{
|
|
94
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
95
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
96
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
97
|
-
}, z.core.$strip>>], undefined>;
|
|
98
|
-
//#endregion
|
|
99
|
-
export { createTemplateResponsiveHtmlPreview, deletePageFromTemplateDocument, getOriginalHtmlDefinitionForTemplate, getTemplateDocumentHtmlDefinition, retrievePdfFromSpecifiedTemplate, retrieveTemplateDocumentPageImages, retrieveTemplatePageImage, rotateTemplatePageImage };
|
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
import { docusignDocumentIdSchema, docusignGenericObjectSchema, docusignLooseObjectSchema, docusignSuccessSchema, docusignTemplateIdSchema } from "./schemas/index.mjs";
|
|
2
|
-
import { r as defineRestOperation, t as defineBinaryOperation } from "./operation-helpers-D25WHTo1.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: "docusign.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: "docusign.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: "docusign.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: "docusign.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: "docusign.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: "docusign.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: "docusign.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: "docusign.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 };
|
package/dist/template-lock.d.mts
DELETED
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
import * as _keystrokehq_core0 from "@keystrokehq/core";
|
|
3
|
-
|
|
4
|
-
//#region src/template-lock.d.ts
|
|
5
|
-
declare const lockTemplateForEditing: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
6
|
-
templateId: z.ZodString;
|
|
7
|
-
lock: z.ZodOptional<z.ZodObject<{
|
|
8
|
-
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
9
|
-
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
10
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
11
|
-
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
12
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:docusign", z.ZodObject<{
|
|
13
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
14
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
15
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
16
|
-
}, z.core.$strip>>], undefined>;
|
|
17
|
-
declare const getTemplateLockInformation: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
18
|
-
templateId: z.ZodString;
|
|
19
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
20
|
-
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
21
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:docusign", z.ZodObject<{
|
|
22
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
23
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
24
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
25
|
-
}, z.core.$strip>>], undefined>;
|
|
26
|
-
declare const updateTemplateLockInformation: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
27
|
-
templateId: z.ZodString;
|
|
28
|
-
lock: z.ZodObject<{
|
|
29
|
-
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
30
|
-
}, z.core.$catchall<z.ZodUnknown>>;
|
|
31
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
32
|
-
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
33
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:docusign", z.ZodObject<{
|
|
34
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
35
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
36
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
37
|
-
}, z.core.$strip>>], undefined>;
|
|
38
|
-
declare const deleteTemplateLock: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
39
|
-
templateId: z.ZodString;
|
|
40
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
41
|
-
success: z.ZodBoolean;
|
|
42
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke: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>>], undefined>;
|
|
47
|
-
//#endregion
|
|
48
|
-
export { deleteTemplateLock, getTemplateLockInformation, lockTemplateForEditing, updateTemplateLockInformation };
|
package/dist/template-lock.mjs
DELETED
|
@@ -1,60 +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-D25WHTo1.mjs";
|
|
4
|
-
import { z } from "zod";
|
|
5
|
-
|
|
6
|
-
//#region src/template-lock.ts
|
|
7
|
-
/**
|
|
8
|
-
* Template lock lifecycle. Covers PLAN.md § 6.16 (lock half).
|
|
9
|
-
*/
|
|
10
|
-
const tplId = z.object({ templateId: docusignTemplateIdSchema });
|
|
11
|
-
const lockPath = (templateId) => `/templates/${encodeDocusignPathSegment(String(templateId))}/lock`;
|
|
12
|
-
const lockTemplateForEditing = defineRestOperation({
|
|
13
|
-
id: "docusign.lock-template-for-editing",
|
|
14
|
-
slug: "DOCUSIGN_LOCK_TEMPLATE_FOR_EDITING",
|
|
15
|
-
name: "Lock Template For Editing",
|
|
16
|
-
description: "Acquire an editing lock on a template.",
|
|
17
|
-
needsApproval: true,
|
|
18
|
-
method: "POST",
|
|
19
|
-
path: (ctx) => lockPath(ctx.input.templateId),
|
|
20
|
-
input: tplId.extend({ lock: docusignLooseObjectSchema().optional() }),
|
|
21
|
-
output: docusignGenericObjectSchema,
|
|
22
|
-
body: (input) => input.lock ?? {}
|
|
23
|
-
});
|
|
24
|
-
const getTemplateLockInformation = defineRestOperation({
|
|
25
|
-
id: "docusign.get-template-lock-information",
|
|
26
|
-
slug: "DOCUSIGN_GET_TEMPLATE_LOCK_INFORMATION",
|
|
27
|
-
name: "Get Template Lock Information",
|
|
28
|
-
description: "Return lock metadata for a template.",
|
|
29
|
-
method: "GET",
|
|
30
|
-
path: (ctx) => lockPath(ctx.input.templateId),
|
|
31
|
-
input: tplId,
|
|
32
|
-
output: docusignGenericObjectSchema
|
|
33
|
-
});
|
|
34
|
-
const updateTemplateLockInformation = defineRestOperation({
|
|
35
|
-
id: "docusign.update-template-lock-information",
|
|
36
|
-
slug: "DOCUSIGN_UPDATE_TEMPLATE_LOCK_INFORMATION",
|
|
37
|
-
name: "Update Template Lock Information",
|
|
38
|
-
description: "Update the lock on a template.",
|
|
39
|
-
needsApproval: true,
|
|
40
|
-
method: "PUT",
|
|
41
|
-
path: (ctx) => lockPath(ctx.input.templateId),
|
|
42
|
-
input: tplId.extend({ lock: docusignLooseObjectSchema() }),
|
|
43
|
-
output: docusignGenericObjectSchema,
|
|
44
|
-
body: (input) => input.lock
|
|
45
|
-
});
|
|
46
|
-
const deleteTemplateLock = defineRestOperation({
|
|
47
|
-
id: "docusign.delete-template-lock",
|
|
48
|
-
slug: "DOCUSIGN_DELETE_TEMPLATE_LOCK",
|
|
49
|
-
name: "Delete Template Lock",
|
|
50
|
-
description: "Release the lock on a template.",
|
|
51
|
-
needsApproval: true,
|
|
52
|
-
method: "DELETE",
|
|
53
|
-
path: (ctx) => lockPath(ctx.input.templateId),
|
|
54
|
-
input: tplId,
|
|
55
|
-
output: docusignSuccessSchema,
|
|
56
|
-
transformResponse: () => ({ success: true })
|
|
57
|
-
});
|
|
58
|
-
|
|
59
|
-
//#endregion
|
|
60
|
-
export { deleteTemplateLock, getTemplateLockInformation, lockTemplateForEditing, updateTemplateLockInformation };
|