@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,96 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
import * as _keystrokehq_core0 from "@keystrokehq/core";
|
|
3
|
-
|
|
4
|
-
//#region src/template-sharing.d.ts
|
|
5
|
-
declare const shareTemplateWithGroup: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
6
|
-
templateId: z.ZodString;
|
|
7
|
-
groupId: z.ZodString;
|
|
8
|
-
templatePart: z.ZodOptional<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<"keystroke: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>>], undefined>;
|
|
16
|
-
declare const removeGroupSharingPermissionsForTemplate: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
17
|
-
templateId: z.ZodString;
|
|
18
|
-
groupId: z.ZodString;
|
|
19
|
-
templatePart: z.ZodOptional<z.ZodString>;
|
|
20
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
21
|
-
success: z.ZodBoolean;
|
|
22
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:docusign", z.ZodObject<{
|
|
23
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
24
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
25
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
26
|
-
}, z.core.$strip>>], undefined>;
|
|
27
|
-
declare const getTemplateRecipientDocumentVisibility: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
28
|
-
templateId: z.ZodString;
|
|
29
|
-
recipientId: z.ZodString;
|
|
30
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
31
|
-
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
32
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:docusign", z.ZodObject<{
|
|
33
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
34
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
35
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
36
|
-
}, z.core.$strip>>], undefined>;
|
|
37
|
-
declare const updateTemplateRecipientDocumentVisibility: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
38
|
-
templateId: z.ZodString;
|
|
39
|
-
recipientId: z.ZodString;
|
|
40
|
-
documentVisibility: z.ZodArray<z.ZodObject<{
|
|
41
|
-
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
42
|
-
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
43
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
44
|
-
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
45
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:docusign", 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>;
|
|
50
|
-
declare const updateTemplateDocVisibility: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
51
|
-
templateId: z.ZodString;
|
|
52
|
-
documentVisibility: z.ZodArray<z.ZodObject<{
|
|
53
|
-
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
54
|
-
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
55
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
56
|
-
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
57
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:docusign", z.ZodObject<{
|
|
58
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
59
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
60
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
61
|
-
}, z.core.$strip>>], undefined>;
|
|
62
|
-
declare const getTemplateNotificationInformation: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
63
|
-
templateId: z.ZodString;
|
|
64
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
65
|
-
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
66
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:docusign", z.ZodObject<{
|
|
67
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
68
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
69
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
70
|
-
}, z.core.$strip>>], undefined>;
|
|
71
|
-
declare const updateTemplateNotificationSettings: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
72
|
-
templateId: z.ZodString;
|
|
73
|
-
notification: z.ZodObject<{
|
|
74
|
-
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
75
|
-
}, z.core.$catchall<z.ZodUnknown>>;
|
|
76
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
77
|
-
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
78
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke: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>>], undefined>;
|
|
83
|
-
declare const createTemplateRecipientPreviewUrl: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
84
|
-
templateId: z.ZodString;
|
|
85
|
-
preview: z.ZodObject<{
|
|
86
|
-
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
87
|
-
}, z.core.$catchall<z.ZodUnknown>>;
|
|
88
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
89
|
-
url: z.ZodOptional<z.ZodString>;
|
|
90
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:docusign", 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>;
|
|
95
|
-
//#endregion
|
|
96
|
-
export { createTemplateRecipientPreviewUrl, getTemplateNotificationInformation, getTemplateRecipientDocumentVisibility, removeGroupSharingPermissionsForTemplate, shareTemplateWithGroup, updateTemplateDocVisibility, updateTemplateNotificationSettings, updateTemplateRecipientDocumentVisibility };
|
|
@@ -1,108 +0,0 @@
|
|
|
1
|
-
import { docusignGenericObjectSchema, docusignLooseObjectSchema, docusignRecipientIdSchema, 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-sharing.ts
|
|
6
|
-
/**
|
|
7
|
-
* Template sharing + recipient visibility + notification + preview. Covers PLAN.md § 6.16 (rest).
|
|
8
|
-
*/
|
|
9
|
-
const tplId = z.object({ templateId: docusignTemplateIdSchema });
|
|
10
|
-
const tplGroup = tplId.extend({
|
|
11
|
-
groupId: z.string().min(1),
|
|
12
|
-
templatePart: z.string().min(1).optional()
|
|
13
|
-
});
|
|
14
|
-
const tplRecipient = tplId.extend({ recipientId: docusignRecipientIdSchema });
|
|
15
|
-
const shareTemplateWithGroup = defineRestOperation({
|
|
16
|
-
id: "docusign.share-template-with-group",
|
|
17
|
-
slug: "DOCUSIGN_SHARE_TEMPLATE_WITH_GROUP",
|
|
18
|
-
name: "Share Template With Group",
|
|
19
|
-
description: "Share a template with a group by granting permissions on a template part.",
|
|
20
|
-
needsApproval: true,
|
|
21
|
-
method: "PUT",
|
|
22
|
-
path: (ctx) => `/templates/${ctx.encode(String(ctx.input.templateId))}/${ctx.encode(String(ctx.input.templatePart ?? "views"))}/${ctx.encode(String(ctx.input.groupId))}`,
|
|
23
|
-
input: tplGroup,
|
|
24
|
-
output: docusignGenericObjectSchema
|
|
25
|
-
});
|
|
26
|
-
const removeGroupSharingPermissionsForTemplate = defineRestOperation({
|
|
27
|
-
id: "docusign.remove-group-sharing-permissions-for-template",
|
|
28
|
-
slug: "DOCUSIGN_REMOVE_GROUP_SHARING_PERMISSIONS_FOR_TEMPLATE",
|
|
29
|
-
name: "Remove Group Sharing Permissions For Template",
|
|
30
|
-
description: "Revoke template-sharing permissions for a group.",
|
|
31
|
-
needsApproval: true,
|
|
32
|
-
method: "DELETE",
|
|
33
|
-
path: (ctx) => `/templates/${ctx.encode(String(ctx.input.templateId))}/${ctx.encode(String(ctx.input.templatePart ?? "views"))}/${ctx.encode(String(ctx.input.groupId))}`,
|
|
34
|
-
input: tplGroup,
|
|
35
|
-
output: docusignSuccessSchema,
|
|
36
|
-
transformResponse: () => ({ success: true })
|
|
37
|
-
});
|
|
38
|
-
const getTemplateRecipientDocumentVisibility = defineRestOperation({
|
|
39
|
-
id: "docusign.get-template-recipient-document-visibility",
|
|
40
|
-
slug: "DOCUSIGN_GET_TEMPLATE_RECIPIENT_DOCUMENT_VISIBILITY",
|
|
41
|
-
name: "Get Template Recipient Document Visibility",
|
|
42
|
-
description: "Return per-document visibility for a template recipient.",
|
|
43
|
-
method: "GET",
|
|
44
|
-
path: (ctx) => `/templates/${ctx.encode(String(ctx.input.templateId))}/recipients/${ctx.encode(String(ctx.input.recipientId))}/document_visibility`,
|
|
45
|
-
input: tplRecipient,
|
|
46
|
-
output: docusignGenericObjectSchema
|
|
47
|
-
});
|
|
48
|
-
const updateTemplateRecipientDocumentVisibility = defineRestOperation({
|
|
49
|
-
id: "docusign.update-template-recipient-document-visibility",
|
|
50
|
-
slug: "DOCUSIGN_UPDATE_TEMPLATE_RECIPIENT_DOCUMENT_VISIBILITY",
|
|
51
|
-
name: "Update Template Recipient Document Visibility",
|
|
52
|
-
description: "Update per-document visibility for a template recipient.",
|
|
53
|
-
needsApproval: true,
|
|
54
|
-
method: "PUT",
|
|
55
|
-
path: (ctx) => `/templates/${ctx.encode(String(ctx.input.templateId))}/recipients/${ctx.encode(String(ctx.input.recipientId))}/document_visibility`,
|
|
56
|
-
input: tplRecipient.extend({ documentVisibility: z.array(docusignLooseObjectSchema()).min(1) }),
|
|
57
|
-
output: docusignGenericObjectSchema,
|
|
58
|
-
body: (input) => ({ documentVisibility: input.documentVisibility })
|
|
59
|
-
});
|
|
60
|
-
const updateTemplateDocVisibility = defineRestOperation({
|
|
61
|
-
id: "docusign.update-template-doc-visibility",
|
|
62
|
-
slug: "DOCUSIGN_UPDATE_TEMPLATE_DOC_VISIBILITY",
|
|
63
|
-
name: "Update Template Document Visibility",
|
|
64
|
-
description: "Update per-recipient document visibility on a template.",
|
|
65
|
-
needsApproval: true,
|
|
66
|
-
method: "PUT",
|
|
67
|
-
path: (ctx) => `/templates/${ctx.encode(String(ctx.input.templateId))}/recipients/document_visibility`,
|
|
68
|
-
input: tplId.extend({ documentVisibility: z.array(docusignLooseObjectSchema()).min(1) }),
|
|
69
|
-
output: docusignGenericObjectSchema,
|
|
70
|
-
body: (input) => ({ documentVisibility: input.documentVisibility })
|
|
71
|
-
});
|
|
72
|
-
const getTemplateNotificationInformation = defineRestOperation({
|
|
73
|
-
id: "docusign.get-template-notification-information",
|
|
74
|
-
slug: "DOCUSIGN_GET_TEMPLATE_NOTIFICATION_INFORMATION",
|
|
75
|
-
name: "Get Template Notification Information",
|
|
76
|
-
description: "Retrieve the notification settings on a template.",
|
|
77
|
-
method: "GET",
|
|
78
|
-
path: (ctx) => `/templates/${ctx.encode(String(ctx.input.templateId))}/notification`,
|
|
79
|
-
input: tplId,
|
|
80
|
-
output: docusignGenericObjectSchema
|
|
81
|
-
});
|
|
82
|
-
const updateTemplateNotificationSettings = defineRestOperation({
|
|
83
|
-
id: "docusign.update-template-notification-settings",
|
|
84
|
-
slug: "DOCUSIGN_UPDATE_TEMPLATE_NOTIFICATION_SETTINGS",
|
|
85
|
-
name: "Update Template Notification Settings",
|
|
86
|
-
description: "Update the notification settings on a template.",
|
|
87
|
-
needsApproval: true,
|
|
88
|
-
method: "PUT",
|
|
89
|
-
path: (ctx) => `/templates/${ctx.encode(String(ctx.input.templateId))}/notification`,
|
|
90
|
-
input: tplId.extend({ notification: docusignLooseObjectSchema() }),
|
|
91
|
-
output: docusignGenericObjectSchema,
|
|
92
|
-
body: (input) => input.notification
|
|
93
|
-
});
|
|
94
|
-
const createTemplateRecipientPreviewUrl = defineRestOperation({
|
|
95
|
-
id: "docusign.create-template-recipient-preview-url",
|
|
96
|
-
slug: "DOCUSIGN_CREATE_TEMPLATE_RECIPIENT_PREVIEW_URL",
|
|
97
|
-
name: "Create Template Recipient Preview URL",
|
|
98
|
-
description: "Create a preview URL that simulates a template recipient signing.",
|
|
99
|
-
needsApproval: true,
|
|
100
|
-
method: "POST",
|
|
101
|
-
path: (ctx) => `/templates/${ctx.encode(String(ctx.input.templateId))}/views/recipient_preview`,
|
|
102
|
-
input: tplId.extend({ preview: docusignLooseObjectSchema() }),
|
|
103
|
-
output: docusignLooseObjectSchema({ url: z.string().optional() }),
|
|
104
|
-
body: (input) => input.preview
|
|
105
|
-
});
|
|
106
|
-
|
|
107
|
-
//#endregion
|
|
108
|
-
export { createTemplateRecipientPreviewUrl, getTemplateNotificationInformation, getTemplateRecipientDocumentVisibility, removeGroupSharingPermissionsForTemplate, shareTemplateWithGroup, updateTemplateDocVisibility, updateTemplateNotificationSettings, updateTemplateRecipientDocumentVisibility };
|
|
@@ -1,135 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
import * as _keystrokehq_core0 from "@keystrokehq/core";
|
|
3
|
-
|
|
4
|
-
//#region src/template-workflow.d.ts
|
|
5
|
-
declare const returnTemplateWorkflowDefinition: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
6
|
-
templateId: z.ZodString;
|
|
7
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
8
|
-
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
9
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:docusign", z.ZodObject<{
|
|
10
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
11
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
12
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
13
|
-
}, z.core.$strip>>], undefined>;
|
|
14
|
-
declare const updateTemplateWorkflowDefinition: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
15
|
-
templateId: z.ZodString;
|
|
16
|
-
workflow: z.ZodObject<{
|
|
17
|
-
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
18
|
-
}, z.core.$catchall<z.ZodUnknown>>;
|
|
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 deleteWorkflowDefinitionForTemplate: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
27
|
-
templateId: z.ZodString;
|
|
28
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
29
|
-
success: z.ZodBoolean;
|
|
30
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:docusign", 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>;
|
|
35
|
-
declare const createTemplateWorkflowStep: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
36
|
-
templateId: z.ZodString;
|
|
37
|
-
step: 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<"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
|
-
declare const retrieveWorkflowStepForTemplate: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
48
|
-
templateId: z.ZodString;
|
|
49
|
-
workflowStepId: z.ZodString;
|
|
50
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
51
|
-
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
52
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:docusign", z.ZodObject<{
|
|
53
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
54
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
55
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
56
|
-
}, z.core.$strip>>], undefined>;
|
|
57
|
-
declare const updateWorkflowStepForTemplate: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
58
|
-
templateId: z.ZodString;
|
|
59
|
-
workflowStepId: z.ZodString;
|
|
60
|
-
step: z.ZodObject<{
|
|
61
|
-
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
62
|
-
}, z.core.$catchall<z.ZodUnknown>>;
|
|
63
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
64
|
-
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
65
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:docusign", z.ZodObject<{
|
|
66
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
67
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
68
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
69
|
-
}, z.core.$strip>>], undefined>;
|
|
70
|
-
declare const deleteTemplateWorkflowStep: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
71
|
-
templateId: z.ZodString;
|
|
72
|
-
workflowStepId: z.ZodString;
|
|
73
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
74
|
-
success: z.ZodBoolean;
|
|
75
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:docusign", z.ZodObject<{
|
|
76
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
77
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
78
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
79
|
-
}, z.core.$strip>>], undefined>;
|
|
80
|
-
declare const getTemplateDelayedRoutingRules: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
81
|
-
templateId: z.ZodString;
|
|
82
|
-
workflowStepId: z.ZodString;
|
|
83
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
84
|
-
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
85
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:docusign", z.ZodObject<{
|
|
86
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
87
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
88
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
89
|
-
}, z.core.$strip>>], undefined>;
|
|
90
|
-
declare const updateTemplateDelayedRoutingRules: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
91
|
-
templateId: z.ZodString;
|
|
92
|
-
workflowStepId: z.ZodString;
|
|
93
|
-
rules: z.ZodObject<{
|
|
94
|
-
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
95
|
-
}, z.core.$catchall<z.ZodUnknown>>;
|
|
96
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
97
|
-
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
98
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:docusign", 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>;
|
|
103
|
-
declare const deleteDelayedRoutingRulesForTemplate: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
104
|
-
templateId: z.ZodString;
|
|
105
|
-
workflowStepId: z.ZodString;
|
|
106
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
107
|
-
success: z.ZodBoolean;
|
|
108
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:docusign", z.ZodObject<{
|
|
109
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
110
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
111
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
112
|
-
}, z.core.$strip>>], undefined>;
|
|
113
|
-
declare const getTemplateScheduledSendingSettings: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
114
|
-
templateId: z.ZodString;
|
|
115
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
116
|
-
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
117
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:docusign", z.ZodObject<{
|
|
118
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
119
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
120
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
121
|
-
}, z.core.$strip>>], undefined>;
|
|
122
|
-
declare const updateTemplateScheduledSendingRules: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
123
|
-
templateId: z.ZodString;
|
|
124
|
-
rules: z.ZodObject<{
|
|
125
|
-
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
126
|
-
}, z.core.$catchall<z.ZodUnknown>>;
|
|
127
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
128
|
-
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
129
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:docusign", z.ZodObject<{
|
|
130
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
131
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
132
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
133
|
-
}, z.core.$strip>>], undefined>;
|
|
134
|
-
//#endregion
|
|
135
|
-
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-D25WHTo1.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,129 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
import * as _keystrokehq_core0 from "@keystrokehq/core";
|
|
3
|
-
|
|
4
|
-
//#region src/templates.d.ts
|
|
5
|
-
declare const listAllTemplates: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
6
|
-
startPosition: z.ZodOptional<z.ZodNumber>;
|
|
7
|
-
count: z.ZodOptional<z.ZodNumber>;
|
|
8
|
-
searchText: z.ZodOptional<z.ZodString>;
|
|
9
|
-
folderIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
10
|
-
shared: z.ZodOptional<z.ZodEnum<{
|
|
11
|
-
shared_with_me: "shared_with_me";
|
|
12
|
-
all: "all";
|
|
13
|
-
}>>;
|
|
14
|
-
orderBy: z.ZodOptional<z.ZodString>;
|
|
15
|
-
order: z.ZodOptional<z.ZodEnum<{
|
|
16
|
-
asc: "asc";
|
|
17
|
-
desc: "desc";
|
|
18
|
-
}>>;
|
|
19
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
20
|
-
resultSetSize: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
21
|
-
totalSetSize: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
22
|
-
startPosition: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
23
|
-
endPosition: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
24
|
-
nextUri: z.ZodOptional<z.ZodString>;
|
|
25
|
-
previousUri: z.ZodOptional<z.ZodString>;
|
|
26
|
-
envelopeTemplates: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
27
|
-
templateId: z.ZodString;
|
|
28
|
-
name: z.ZodOptional<z.ZodString>;
|
|
29
|
-
description: z.ZodOptional<z.ZodString>;
|
|
30
|
-
shared: z.ZodOptional<z.ZodString>;
|
|
31
|
-
created: z.ZodOptional<z.ZodString>;
|
|
32
|
-
lastModified: z.ZodOptional<z.ZodString>;
|
|
33
|
-
}, z.core.$catchall<z.ZodUnknown>>>>;
|
|
34
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:docusign", z.ZodObject<{
|
|
35
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
36
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
37
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
38
|
-
}, z.core.$strip>>], undefined>;
|
|
39
|
-
declare const getTemplate: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
40
|
-
templateId: z.ZodString;
|
|
41
|
-
include: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
42
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
43
|
-
templateId: z.ZodString;
|
|
44
|
-
name: z.ZodOptional<z.ZodString>;
|
|
45
|
-
description: z.ZodOptional<z.ZodString>;
|
|
46
|
-
shared: z.ZodOptional<z.ZodString>;
|
|
47
|
-
documents: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
48
|
-
documentId: z.ZodString;
|
|
49
|
-
name: z.ZodOptional<z.ZodString>;
|
|
50
|
-
type: z.ZodOptional<z.ZodString>;
|
|
51
|
-
uri: z.ZodOptional<z.ZodString>;
|
|
52
|
-
order: z.ZodOptional<z.ZodString>;
|
|
53
|
-
}, z.core.$catchall<z.ZodUnknown>>>>;
|
|
54
|
-
recipients: z.ZodOptional<z.ZodObject<{
|
|
55
|
-
signers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
56
|
-
recipientId: z.ZodOptional<z.ZodString>;
|
|
57
|
-
email: z.ZodOptional<z.ZodString>;
|
|
58
|
-
name: z.ZodOptional<z.ZodString>;
|
|
59
|
-
status: z.ZodOptional<z.ZodString>;
|
|
60
|
-
routingOrder: z.ZodOptional<z.ZodString>;
|
|
61
|
-
clientUserId: z.ZodOptional<z.ZodString>;
|
|
62
|
-
}, z.core.$catchall<z.ZodUnknown>>>>;
|
|
63
|
-
carbonCopies: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
64
|
-
recipientId: z.ZodOptional<z.ZodString>;
|
|
65
|
-
email: z.ZodOptional<z.ZodString>;
|
|
66
|
-
name: z.ZodOptional<z.ZodString>;
|
|
67
|
-
status: z.ZodOptional<z.ZodString>;
|
|
68
|
-
routingOrder: z.ZodOptional<z.ZodString>;
|
|
69
|
-
clientUserId: z.ZodOptional<z.ZodString>;
|
|
70
|
-
}, z.core.$catchall<z.ZodUnknown>>>>;
|
|
71
|
-
recipientCount: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
72
|
-
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
73
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:docusign", 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>;
|
|
78
|
-
declare const addTemplatesToEnvelope: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
79
|
-
envelopeId: z.ZodString;
|
|
80
|
-
documentTemplates: z.ZodArray<z.ZodObject<{
|
|
81
|
-
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
82
|
-
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
83
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
84
|
-
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
85
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:docusign", z.ZodObject<{
|
|
86
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
87
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
88
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
89
|
-
}, z.core.$strip>>], undefined>;
|
|
90
|
-
declare const getTemplatesUsedInEnvelope: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
91
|
-
envelopeId: z.ZodString;
|
|
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<"keystroke: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>>], undefined>;
|
|
99
|
-
declare const retrieveAccountFavoriteTemplates: _keystrokehq_core0.Operation<z.ZodObject<{}, z.core.$strip>, z.ZodObject<{
|
|
100
|
-
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
101
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:docusign", z.ZodObject<{
|
|
102
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
103
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
104
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
105
|
-
}, z.core.$strip>>], undefined>;
|
|
106
|
-
declare const setTemplatesAsAccountFavorites: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
107
|
-
favoriteTemplates: 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.$strip>, z.ZodObject<{
|
|
111
|
-
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
112
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:docusign", z.ZodObject<{
|
|
113
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
114
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
115
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
116
|
-
}, z.core.$strip>>], undefined>;
|
|
117
|
-
declare const removeTemplatesFromFavorites: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
118
|
-
favoriteTemplates: z.ZodArray<z.ZodObject<{
|
|
119
|
-
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
120
|
-
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
121
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
122
|
-
success: z.ZodBoolean;
|
|
123
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:docusign", z.ZodObject<{
|
|
124
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
125
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
126
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
127
|
-
}, z.core.$strip>>], undefined>;
|
|
128
|
-
//#endregion
|
|
129
|
-
export { addTemplatesToEnvelope, getTemplate, getTemplatesUsedInEnvelope, listAllTemplates, removeTemplatesFromFavorites, retrieveAccountFavoriteTemplates, setTemplatesAsAccountFavorites };
|