@keystrokehq/pandadoc 0.1.0 → 0.1.3
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/dist/action.cjs.map +1 -1
- package/dist/action.mjs.map +1 -1
- package/dist/actions/create-document-attachment.cjs +6 -6
- package/dist/actions/create-document-attachment.cjs.map +1 -1
- package/dist/actions/create-document-attachment.d.cts +23 -3
- package/dist/actions/create-document-attachment.d.cts.map +1 -1
- package/dist/actions/create-document-attachment.d.mts +23 -3
- package/dist/actions/create-document-attachment.d.mts.map +1 -1
- package/dist/actions/create-document-attachment.mjs +6 -6
- package/dist/actions/create-document-attachment.mjs.map +1 -1
- package/dist/actions/create-document-from-file.cjs +6 -6
- package/dist/actions/create-document-from-file.cjs.map +1 -1
- package/dist/actions/create-document-from-file.d.cts +55 -3
- package/dist/actions/create-document-from-file.d.cts.map +1 -1
- package/dist/actions/create-document-from-file.d.mts +55 -3
- package/dist/actions/create-document-from-file.d.mts.map +1 -1
- package/dist/actions/create-document-from-file.mjs +6 -6
- package/dist/actions/create-document-from-file.mjs.map +1 -1
- package/dist/actions/create-folder.cjs +4 -4
- package/dist/actions/create-folder.cjs.map +1 -1
- package/dist/actions/create-folder.d.cts +13 -3
- package/dist/actions/create-folder.d.cts.map +1 -1
- package/dist/actions/create-folder.d.mts +13 -3
- package/dist/actions/create-folder.d.mts.map +1 -1
- package/dist/actions/create-folder.mjs +4 -4
- package/dist/actions/create-folder.mjs.map +1 -1
- package/dist/actions/create-or-update-contact.cjs +3 -3
- package/dist/actions/create-or-update-contact.cjs.map +1 -1
- package/dist/actions/create-or-update-contact.d.cts +40 -3
- package/dist/actions/create-or-update-contact.d.cts.map +1 -1
- package/dist/actions/create-or-update-contact.d.mts +40 -3
- package/dist/actions/create-or-update-contact.d.mts.map +1 -1
- package/dist/actions/create-or-update-contact.mjs +3 -3
- package/dist/actions/create-or-update-contact.mjs.map +1 -1
- package/dist/actions/create-template.cjs +7 -7
- package/dist/actions/create-template.cjs.map +1 -1
- package/dist/actions/create-template.d.cts +36 -3
- package/dist/actions/create-template.d.cts.map +1 -1
- package/dist/actions/create-template.d.mts +36 -3
- package/dist/actions/create-template.d.mts.map +1 -1
- package/dist/actions/create-template.mjs +7 -7
- package/dist/actions/create-template.mjs.map +1 -1
- package/dist/actions/create-webhook.cjs +6 -6
- package/dist/actions/create-webhook.cjs.map +1 -1
- package/dist/actions/create-webhook.d.cts +21 -3
- package/dist/actions/create-webhook.d.cts.map +1 -1
- package/dist/actions/create-webhook.d.mts +21 -3
- package/dist/actions/create-webhook.d.mts.map +1 -1
- package/dist/actions/create-webhook.mjs +6 -6
- package/dist/actions/create-webhook.mjs.map +1 -1
- package/dist/actions/delete-contact.cjs +1 -1
- package/dist/actions/delete-contact.cjs.map +1 -1
- package/dist/actions/delete-contact.d.cts +9 -3
- package/dist/actions/delete-contact.d.cts.map +1 -1
- package/dist/actions/delete-contact.d.mts +9 -3
- package/dist/actions/delete-contact.d.mts.map +1 -1
- package/dist/actions/delete-contact.mjs +1 -1
- package/dist/actions/delete-contact.mjs.map +1 -1
- package/dist/actions/delete-template.cjs +3 -3
- package/dist/actions/delete-template.cjs.map +1 -1
- package/dist/actions/delete-template.d.cts +10 -3
- package/dist/actions/delete-template.d.cts.map +1 -1
- package/dist/actions/delete-template.d.mts +10 -3
- package/dist/actions/delete-template.d.mts.map +1 -1
- package/dist/actions/delete-template.mjs +3 -3
- package/dist/actions/delete-template.mjs.map +1 -1
- package/dist/actions/get-document-details.cjs +8 -8
- package/dist/actions/get-document-details.cjs.map +1 -1
- package/dist/actions/get-document-details.d.cts +90 -3
- package/dist/actions/get-document-details.d.cts.map +1 -1
- package/dist/actions/get-document-details.d.mts +90 -3
- package/dist/actions/get-document-details.d.mts.map +1 -1
- package/dist/actions/get-document-details.mjs +8 -8
- package/dist/actions/get-document-details.mjs.map +1 -1
- package/dist/actions/get-template-details.cjs +35 -35
- package/dist/actions/get-template-details.cjs.map +1 -1
- package/dist/actions/get-template-details.d.cts +126 -3
- package/dist/actions/get-template-details.d.cts.map +1 -1
- package/dist/actions/get-template-details.d.mts +126 -3
- package/dist/actions/get-template-details.d.mts.map +1 -1
- package/dist/actions/get-template-details.mjs +35 -35
- package/dist/actions/get-template-details.mjs.map +1 -1
- package/dist/actions/list-contacts.cjs +4 -4
- package/dist/actions/list-contacts.cjs.map +1 -1
- package/dist/actions/list-contacts.d.cts +17 -3
- package/dist/actions/list-contacts.d.cts.map +1 -1
- package/dist/actions/list-contacts.d.mts +17 -3
- package/dist/actions/list-contacts.d.mts.map +1 -1
- package/dist/actions/list-contacts.mjs +4 -4
- package/dist/actions/list-contacts.mjs.map +1 -1
- package/dist/actions/list-document-folders.cjs +7 -7
- package/dist/actions/list-document-folders.cjs.map +1 -1
- package/dist/actions/list-document-folders.d.cts +22 -3
- package/dist/actions/list-document-folders.d.cts.map +1 -1
- package/dist/actions/list-document-folders.d.mts +22 -3
- package/dist/actions/list-document-folders.d.mts.map +1 -1
- package/dist/actions/list-document-folders.mjs +7 -7
- package/dist/actions/list-document-folders.mjs.map +1 -1
- package/dist/actions/list-templates.cjs +7 -7
- package/dist/actions/list-templates.cjs.map +1 -1
- package/dist/actions/list-templates.d.cts +32 -3
- package/dist/actions/list-templates.d.cts.map +1 -1
- package/dist/actions/list-templates.d.mts +32 -3
- package/dist/actions/list-templates.d.mts.map +1 -1
- package/dist/actions/list-templates.mjs +7 -7
- package/dist/actions/list-templates.mjs.map +1 -1
- package/dist/actions/move-document-to-folder.cjs +3 -3
- package/dist/actions/move-document-to-folder.cjs.map +1 -1
- package/dist/actions/move-document-to-folder.d.cts +12 -3
- package/dist/actions/move-document-to-folder.d.cts.map +1 -1
- package/dist/actions/move-document-to-folder.d.mts +12 -3
- package/dist/actions/move-document-to-folder.d.mts.map +1 -1
- package/dist/actions/move-document-to-folder.mjs +3 -3
- package/dist/actions/move-document-to-folder.mjs.map +1 -1
- package/dist/catalog.cjs +7 -1
- package/dist/catalog.cjs.map +1 -1
- package/dist/catalog.d.cts +8 -0
- package/dist/catalog.d.mts +8 -0
- package/dist/catalog.mjs +7 -1
- package/dist/catalog.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -6,43 +6,43 @@ const PandadocGetTemplateDetails_PreassignedContactGroupMemberSchema = z.object(
|
|
|
6
6
|
email: z.string().describe("Email of the group member").nullable().optional(),
|
|
7
7
|
last_name: z.string().describe("Last name of the group member").nullable().optional(),
|
|
8
8
|
first_name: z.string().describe("First name of the group member").nullable().optional()
|
|
9
|
-
}).describe("Member of a preassigned contact group");
|
|
9
|
+
}).passthrough().describe("Member of a preassigned contact group");
|
|
10
10
|
const PandadocGetTemplateDetails_PreassignedPersonSchema = z.object({
|
|
11
|
-
type: z.string().describe("Type of preassignment: 'preassigned contact' or 'preassigned contact group'"),
|
|
11
|
+
type: z.string().describe("Type of preassignment: 'preassigned contact' or 'preassigned contact group'").nullable(),
|
|
12
12
|
email: z.string().describe("Email of the preassigned person").nullable().optional(),
|
|
13
13
|
members: z.array(PandadocGetTemplateDetails_PreassignedContactGroupMemberSchema).describe("List of contacts in the group. Only present for type 'preassigned contact group'").nullable().optional(),
|
|
14
14
|
last_name: z.string().describe("Last name of the preassigned person").nullable().optional(),
|
|
15
15
|
first_name: z.string().describe("First name of the preassigned person").nullable().optional(),
|
|
16
16
|
placeholder_name: z.string().describe("Placeholder name for the person").nullable().optional(),
|
|
17
17
|
placeholder_source: z.string().describe("Source of the placeholder (e.g., 'bamboohr')").nullable().optional()
|
|
18
|
-
}).describe("Pre-assigned person or contact group for a role");
|
|
18
|
+
}).passthrough().describe("Pre-assigned person or contact group for a role");
|
|
19
19
|
const PandadocGetTemplateDetails_TemplateRoleSchema = z.object({
|
|
20
|
-
id: z.string().describe("The ID of the role"),
|
|
21
|
-
name: z.string().describe("The name of the role"),
|
|
20
|
+
id: z.string().describe("The ID of the role").nullable(),
|
|
21
|
+
name: z.string().describe("The name of the role").nullable(),
|
|
22
22
|
signing_order: z.number().int().describe("The signing order for this role").nullable().optional(),
|
|
23
23
|
preassigned_person: PandadocGetTemplateDetails_PreassignedPersonSchema.nullable().optional()
|
|
24
|
-
});
|
|
24
|
+
}).passthrough();
|
|
25
25
|
const PandadocGetTemplateDetails_FieldAssignedToRoleSchema = z.object({
|
|
26
|
-
id: z.string().describe("Role ID"),
|
|
27
|
-
name: z.string().describe("Role name"),
|
|
28
|
-
type: z.string().describe("Assignment type, always 'role' for template fields"),
|
|
26
|
+
id: z.string().describe("Role ID").nullable(),
|
|
27
|
+
name: z.string().describe("Role name").nullable(),
|
|
28
|
+
type: z.string().describe("Assignment type, always 'role' for template fields").nullable(),
|
|
29
29
|
preassigned_person: PandadocGetTemplateDetails_PreassignedPersonSchema.nullable().optional()
|
|
30
|
-
}).describe("Role assignment for a field in a template");
|
|
30
|
+
}).passthrough().describe("Role assignment for a field in a template");
|
|
31
31
|
const PandadocGetTemplateDetails_TemplateFieldSchema = z.object({
|
|
32
|
-
name: z.string().describe("Field name"),
|
|
32
|
+
name: z.string().describe("Field name").nullable(),
|
|
33
33
|
type: z.string().describe("Field type (text, checkbox, date, dropdown, signature, etc.)").nullable().optional(),
|
|
34
|
-
uuid: z.string().describe("Unique identifier for the field"),
|
|
34
|
+
uuid: z.string().describe("Unique identifier for the field").nullable(),
|
|
35
35
|
title: z.string().describe("Field title").nullable().optional(),
|
|
36
36
|
value: z.unknown().describe("Field value (type varies by field type)").nullable().optional(),
|
|
37
37
|
field_id: z.string().describe("Field ID, unique across the template").nullable().optional(),
|
|
38
38
|
assigned_to: PandadocGetTemplateDetails_FieldAssignedToRoleSchema.nullable().optional(),
|
|
39
39
|
merge_field: z.string().describe("Merge field name").nullable().optional(),
|
|
40
40
|
placeholder: z.string().describe("Field placeholder text").nullable().optional()
|
|
41
|
-
}).describe("Field in a template");
|
|
41
|
+
}).passthrough().describe("Field in a template");
|
|
42
42
|
const PandadocGetTemplateDetails_TemplateTokenSchema = z.object({
|
|
43
|
-
name: z.string().describe("Token name"),
|
|
43
|
+
name: z.string().describe("Token name").nullable(),
|
|
44
44
|
value: z.string().describe("Token value").nullable().optional()
|
|
45
|
-
}).describe("Token (variable) in a template");
|
|
45
|
+
}).passthrough().describe("Token (variable) in a template");
|
|
46
46
|
const PandadocGetTemplateDetails_PricingTableItemSchema = z.object({
|
|
47
47
|
id: z.string().describe("Item ID").nullable().optional(),
|
|
48
48
|
qty: z.string().describe("Quantity").nullable().optional(),
|
|
@@ -53,26 +53,26 @@ const PandadocGetTemplateDetails_PricingTableItemSchema = z.object({
|
|
|
53
53
|
description: z.string().describe("Item description").nullable().optional(),
|
|
54
54
|
custom_fields: z.record(z.string(), z.unknown()).describe("Custom fields").nullable().optional(),
|
|
55
55
|
custom_columns: z.record(z.string(), z.unknown()).describe("Custom columns").nullable().optional()
|
|
56
|
-
}).describe("Item in a pricing table");
|
|
56
|
+
}).passthrough().describe("Item in a pricing table");
|
|
57
57
|
const PandadocGetTemplateDetails_QuoteSectionSchema = z.object({
|
|
58
58
|
rows: z.array(PandadocGetTemplateDetails_PricingTableItemSchema).describe("Rows in the section").nullable().optional(),
|
|
59
59
|
title: z.string().describe("Section title").nullable().optional(),
|
|
60
60
|
"default": z.boolean().describe("Whether this is the default section").nullable().optional(),
|
|
61
61
|
multichoice_enabled: z.boolean().describe("Whether multichoice is enabled").nullable().optional()
|
|
62
|
-
}).describe("Section in a quote");
|
|
62
|
+
}).passthrough().describe("Section in a quote");
|
|
63
63
|
const PandadocGetTemplateDetails_QuoteSchema = z.object({
|
|
64
64
|
id: z.string().describe("Quote ID").nullable().optional(),
|
|
65
65
|
name: z.string().describe("Quote name").nullable().optional(),
|
|
66
66
|
total: z.string().describe("Total for this quote").nullable().optional(),
|
|
67
67
|
sections: z.array(PandadocGetTemplateDetails_QuoteSectionSchema).describe("Quote sections").nullable().optional()
|
|
68
|
-
}).describe("Quote in a template");
|
|
68
|
+
}).passthrough().describe("Quote in a template");
|
|
69
69
|
const PandadocGetTemplateDetails_PricingTableSummarySchema = z.object({
|
|
70
70
|
fee: z.string().describe("Fee amount").nullable().optional(),
|
|
71
71
|
tax: z.string().describe("Tax amount").nullable().optional(),
|
|
72
72
|
total: z.string().describe("Total amount").nullable().optional(),
|
|
73
73
|
discount: z.string().describe("Discount amount").nullable().optional(),
|
|
74
74
|
subtotal: z.string().describe("Subtotal amount").nullable().optional()
|
|
75
|
-
}).describe("Summary totals for a pricing table");
|
|
75
|
+
}).passthrough().describe("Summary totals for a pricing table");
|
|
76
76
|
const PandadocGetTemplateDetails_PricingTableSchema = z.object({
|
|
77
77
|
id: z.string().describe("Table ID").nullable().optional(),
|
|
78
78
|
name: z.string().describe("Table name").nullable().optional(),
|
|
@@ -80,45 +80,45 @@ const PandadocGetTemplateDetails_PricingTableSchema = z.object({
|
|
|
80
80
|
total: z.string().describe("Total for this table").nullable().optional(),
|
|
81
81
|
summary: PandadocGetTemplateDetails_PricingTableSummarySchema.nullable().optional(),
|
|
82
82
|
is_included_in_total: z.boolean().describe("Whether this table is included in the overall total").nullable().optional()
|
|
83
|
-
}).describe("Pricing table in a template");
|
|
83
|
+
}).passthrough().describe("Pricing table in a template");
|
|
84
84
|
const PandadocGetTemplateDetails_TemplatePricingSchema = z.object({
|
|
85
85
|
total: z.string().describe("Overall total").nullable().optional(),
|
|
86
86
|
quotes: z.array(PandadocGetTemplateDetails_QuoteSchema).describe("Quotes").nullable().optional(),
|
|
87
87
|
tables: z.array(PandadocGetTemplateDetails_PricingTableSchema).describe("Pricing tables").nullable().optional()
|
|
88
|
-
}).describe("Pricing information for a template");
|
|
88
|
+
}).passthrough().describe("Pricing information for a template");
|
|
89
89
|
const PandadocGetTemplateDetails_TemplateCreatorSchema = z.object({
|
|
90
|
-
id: z.string().describe("The ID of the template creator"),
|
|
91
|
-
email: z.string().describe("The email of the template creator"),
|
|
90
|
+
id: z.string().describe("The ID of the template creator").nullable(),
|
|
91
|
+
email: z.string().describe("The email of the template creator").nullable(),
|
|
92
92
|
avatar: z.string().describe("The avatar URL of the template creator").nullable().optional(),
|
|
93
|
-
last_name: z.string().describe("The last name of the template creator"),
|
|
94
|
-
first_name: z.string().describe("The first name of the template creator")
|
|
95
|
-
});
|
|
93
|
+
last_name: z.string().describe("The last name of the template creator").nullable(),
|
|
94
|
+
first_name: z.string().describe("The first name of the template creator").nullable()
|
|
95
|
+
}).passthrough();
|
|
96
96
|
const PandadocGetTemplateDetails_ContentPlaceholderSchema = z.object({
|
|
97
|
-
uuid: z.string().describe("The UUID of the content placeholder"),
|
|
98
|
-
block_id: z.string().describe("The block ID of the content placeholder"),
|
|
97
|
+
uuid: z.string().describe("The UUID of the content placeholder").nullable(),
|
|
98
|
+
block_id: z.string().describe("The block ID of the content placeholder").nullable(),
|
|
99
99
|
description: z.string().describe("Description of the content placeholder").nullable().optional()
|
|
100
|
-
});
|
|
100
|
+
}).passthrough();
|
|
101
101
|
const pandadocGetTemplateDetails = action("PANDADOC_GET_TEMPLATE_DETAILS", {
|
|
102
102
|
slug: "pandadoc-get-template-details",
|
|
103
103
|
name: "Get Template Details",
|
|
104
104
|
description: "This tool retrieves detailed information about a specific template by its ID. The endpoint returns comprehensive template details including metadata, content details, and sharing settings.",
|
|
105
105
|
input: PandadocGetTemplateDetailsInput,
|
|
106
106
|
output: z.object({
|
|
107
|
-
id: z.string().describe("The unique identifier of the template"),
|
|
108
|
-
name: z.string().describe("The name of the template"),
|
|
107
|
+
id: z.string().describe("The unique identifier of the template").nullable(),
|
|
108
|
+
name: z.string().describe("The name of the template").nullable(),
|
|
109
109
|
tags: z.array(z.string()).describe("List of template tags").nullable().optional(),
|
|
110
110
|
roles: z.array(PandadocGetTemplateDetails_TemplateRoleSchema).describe("List of roles in the template").nullable().optional(),
|
|
111
111
|
fields: z.array(PandadocGetTemplateDetails_TemplateFieldSchema).describe("List of fields in the template").nullable().optional(),
|
|
112
112
|
tokens: z.array(PandadocGetTemplateDetails_TemplateTokenSchema).describe("List of tokens (variables) in the template").nullable().optional(),
|
|
113
113
|
pricing: PandadocGetTemplateDetails_TemplatePricingSchema.nullable().optional(),
|
|
114
|
-
version: z.string().describe("Template version"),
|
|
114
|
+
version: z.string().describe("Template version").nullable(),
|
|
115
115
|
metadata: z.record(z.string(), z.unknown()).describe("Template metadata (arbitrary key-value pairs)").nullable().optional(),
|
|
116
116
|
created_by: PandadocGetTemplateDetails_TemplateCreatorSchema.nullable(),
|
|
117
|
-
date_created: z.string().describe("The creation date of the template"),
|
|
118
|
-
date_modified: z.string().describe("The last modification date of the template"),
|
|
117
|
+
date_created: z.string().describe("The creation date of the template").nullable(),
|
|
118
|
+
date_modified: z.string().describe("The last modification date of the template").nullable(),
|
|
119
119
|
content_placeholders: z.array(PandadocGetTemplateDetails_ContentPlaceholderSchema).describe("List of content placeholders").nullable().optional(),
|
|
120
120
|
content_date_modified: z.string().describe("The last content modification date").nullable().optional()
|
|
121
|
-
})
|
|
121
|
+
}).passthrough()
|
|
122
122
|
});
|
|
123
123
|
//#endregion
|
|
124
124
|
export { pandadocGetTemplateDetails };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-template-details.mjs","names":[],"sources":["../../src/actions/get-template-details.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PandadocGetTemplateDetailsInput: z.ZodTypeAny = z.object({\n template_id: z.string().describe(\"The unique identifier of the template to retrieve details for\"),\n});\nconst PandadocGetTemplateDetails_PreassignedContactGroupMemberSchema: z.ZodTypeAny = z.object({\n email: z.string().describe(\"Email of the group member\").nullable().optional(),\n last_name: z.string().describe(\"Last name of the group member\").nullable().optional(),\n first_name: z.string().describe(\"First name of the group member\").nullable().optional(),\n}).describe(\"Member of a preassigned contact group\");\nconst PandadocGetTemplateDetails_PreassignedPersonSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Type of preassignment: 'preassigned contact' or 'preassigned contact group'\"),\n email: z.string().describe(\"Email of the preassigned person\").nullable().optional(),\n members: z.array(PandadocGetTemplateDetails_PreassignedContactGroupMemberSchema).describe(\"List of contacts in the group. Only present for type 'preassigned contact group'\").nullable().optional(),\n last_name: z.string().describe(\"Last name of the preassigned person\").nullable().optional(),\n first_name: z.string().describe(\"First name of the preassigned person\").nullable().optional(),\n placeholder_name: z.string().describe(\"Placeholder name for the person\").nullable().optional(),\n placeholder_source: z.string().describe(\"Source of the placeholder (e.g., 'bamboohr')\").nullable().optional(),\n}).describe(\"Pre-assigned person or contact group for a role\");\nconst PandadocGetTemplateDetails_TemplateRoleSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The ID of the role\"),\n name: z.string().describe(\"The name of the role\"),\n signing_order: z.number().int().describe(\"The signing order for this role\").nullable().optional(),\n preassigned_person: PandadocGetTemplateDetails_PreassignedPersonSchema.nullable().optional(),\n});\nconst PandadocGetTemplateDetails_FieldAssignedToRoleSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Role ID\"),\n name: z.string().describe(\"Role name\"),\n type: z.string().describe(\"Assignment type, always 'role' for template fields\"),\n preassigned_person: PandadocGetTemplateDetails_PreassignedPersonSchema.nullable().optional(),\n}).describe(\"Role assignment for a field in a template\");\nconst PandadocGetTemplateDetails_TemplateFieldSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Field name\"),\n type: z.string().describe(\"Field type (text, checkbox, date, dropdown, signature, etc.)\").nullable().optional(),\n uuid: z.string().describe(\"Unique identifier for the field\"),\n title: z.string().describe(\"Field title\").nullable().optional(),\n value: z.unknown().describe(\"Field value (type varies by field type)\").nullable().optional(),\n field_id: z.string().describe(\"Field ID, unique across the template\").nullable().optional(),\n assigned_to: PandadocGetTemplateDetails_FieldAssignedToRoleSchema.nullable().optional(),\n merge_field: z.string().describe(\"Merge field name\").nullable().optional(),\n placeholder: z.string().describe(\"Field placeholder text\").nullable().optional(),\n}).describe(\"Field in a template\");\nconst PandadocGetTemplateDetails_TemplateTokenSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Token name\"),\n value: z.string().describe(\"Token value\").nullable().optional(),\n}).describe(\"Token (variable) in a template\");\nconst PandadocGetTemplateDetails_PricingTableItemSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Item ID\").nullable().optional(),\n qty: z.string().describe(\"Quantity\").nullable().optional(),\n sku: z.string().describe(\"SKU\").nullable().optional(),\n cost: z.string().describe(\"Cost per item\").nullable().optional(),\n name: z.string().describe(\"Item name\").nullable().optional(),\n price: z.string().describe(\"Price per item\").nullable().optional(),\n description: z.string().describe(\"Item description\").nullable().optional(),\n custom_fields: z.record(z.string(), z.unknown()).describe(\"Custom fields\").nullable().optional(),\n custom_columns: z.record(z.string(), z.unknown()).describe(\"Custom columns\").nullable().optional(),\n}).describe(\"Item in a pricing table\");\nconst PandadocGetTemplateDetails_QuoteSectionSchema: z.ZodTypeAny = z.object({\n rows: z.array(PandadocGetTemplateDetails_PricingTableItemSchema).describe(\"Rows in the section\").nullable().optional(),\n title: z.string().describe(\"Section title\").nullable().optional(),\n \"default\": z.boolean().describe(\"Whether this is the default section\").nullable().optional(),\n multichoice_enabled: z.boolean().describe(\"Whether multichoice is enabled\").nullable().optional(),\n}).describe(\"Section in a quote\");\nconst PandadocGetTemplateDetails_QuoteSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Quote ID\").nullable().optional(),\n name: z.string().describe(\"Quote name\").nullable().optional(),\n total: z.string().describe(\"Total for this quote\").nullable().optional(),\n sections: z.array(PandadocGetTemplateDetails_QuoteSectionSchema).describe(\"Quote sections\").nullable().optional(),\n}).describe(\"Quote in a template\");\nconst PandadocGetTemplateDetails_PricingTableSummarySchema: z.ZodTypeAny = z.object({\n fee: z.string().describe(\"Fee amount\").nullable().optional(),\n tax: z.string().describe(\"Tax amount\").nullable().optional(),\n total: z.string().describe(\"Total amount\").nullable().optional(),\n discount: z.string().describe(\"Discount amount\").nullable().optional(),\n subtotal: z.string().describe(\"Subtotal amount\").nullable().optional(),\n}).describe(\"Summary totals for a pricing table\");\nconst PandadocGetTemplateDetails_PricingTableSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Table ID\").nullable().optional(),\n name: z.string().describe(\"Table name\").nullable().optional(),\n items: z.array(PandadocGetTemplateDetails_PricingTableItemSchema).describe(\"Items in the pricing table\").nullable().optional(),\n total: z.string().describe(\"Total for this table\").nullable().optional(),\n summary: PandadocGetTemplateDetails_PricingTableSummarySchema.nullable().optional(),\n is_included_in_total: z.boolean().describe(\"Whether this table is included in the overall total\").nullable().optional(),\n}).describe(\"Pricing table in a template\");\nconst PandadocGetTemplateDetails_TemplatePricingSchema: z.ZodTypeAny = z.object({\n total: z.string().describe(\"Overall total\").nullable().optional(),\n quotes: z.array(PandadocGetTemplateDetails_QuoteSchema).describe(\"Quotes\").nullable().optional(),\n tables: z.array(PandadocGetTemplateDetails_PricingTableSchema).describe(\"Pricing tables\").nullable().optional(),\n}).describe(\"Pricing information for a template\");\nconst PandadocGetTemplateDetails_TemplateCreatorSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The ID of the template creator\"),\n email: z.string().describe(\"The email of the template creator\"),\n avatar: z.string().describe(\"The avatar URL of the template creator\").nullable().optional(),\n last_name: z.string().describe(\"The last name of the template creator\"),\n first_name: z.string().describe(\"The first name of the template creator\"),\n});\nconst PandadocGetTemplateDetails_ContentPlaceholderSchema: z.ZodTypeAny = z.object({\n uuid: z.string().describe(\"The UUID of the content placeholder\"),\n block_id: z.string().describe(\"The block ID of the content placeholder\"),\n description: z.string().describe(\"Description of the content placeholder\").nullable().optional(),\n});\nexport const PandadocGetTemplateDetailsOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The unique identifier of the template\"),\n name: z.string().describe(\"The name of the template\"),\n tags: z.array(z.string()).describe(\"List of template tags\").nullable().optional(),\n roles: z.array(PandadocGetTemplateDetails_TemplateRoleSchema).describe(\"List of roles in the template\").nullable().optional(),\n fields: z.array(PandadocGetTemplateDetails_TemplateFieldSchema).describe(\"List of fields in the template\").nullable().optional(),\n tokens: z.array(PandadocGetTemplateDetails_TemplateTokenSchema).describe(\"List of tokens (variables) in the template\").nullable().optional(),\n pricing: PandadocGetTemplateDetails_TemplatePricingSchema.nullable().optional(),\n version: z.string().describe(\"Template version\"),\n metadata: z.record(z.string(), z.unknown()).describe(\"Template metadata (arbitrary key-value pairs)\").nullable().optional(),\n created_by: PandadocGetTemplateDetails_TemplateCreatorSchema.nullable(),\n date_created: z.string().describe(\"The creation date of the template\"),\n date_modified: z.string().describe(\"The last modification date of the template\"),\n content_placeholders: z.array(PandadocGetTemplateDetails_ContentPlaceholderSchema).describe(\"List of content placeholders\").nullable().optional(),\n content_date_modified: z.string().describe(\"The last content modification date\").nullable().optional(),\n});\n\nexport const pandadocGetTemplateDetails = action(\"PANDADOC_GET_TEMPLATE_DETAILS\", {\n slug: \"pandadoc-get-template-details\",\n name: \"Get Template Details\",\n description: \"This tool retrieves detailed information about a specific template by its ID. The endpoint returns comprehensive template details including metadata, content details, and sharing settings.\",\n input: PandadocGetTemplateDetailsInput,\n output: PandadocGetTemplateDetailsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAgD,EAAE,OAAO,EACpE,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,EAClG,CAAC;AACD,MAAM,iEAA+E,EAAE,OAAO;CAC5F,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5E,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACxF,CAAC,CAAC,CAAC,SAAS,uCAAuC;AACnD,MAAM,qDAAmE,EAAE,OAAO;CAChF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E;CACvG,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS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AS;EAC5H,QAAQ,EAAE,MAAM,8CAA8C,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC/H,QAAQ,EAAE,MAAM,8CAA8C,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3I,SAAS,iDAAiD,SAAS,CAAC,CAAC,SAAS;EAC9E,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB;EAC/C,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1H,YAAY,iDAAiD,SAAS;EACtE,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC;EACrE,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C;EAC/E,sBAAsB,EAAE,MAAM,mDAAmD,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChJ,uBAAuB,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvG,CAOU;AACV,CAAC"}
|
|
1
|
+
{"version":3,"file":"get-template-details.mjs","names":[],"sources":["../../src/actions/get-template-details.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PandadocGetTemplateDetailsInput = z.object({\n template_id: z.string().describe(\"The unique identifier of the template to retrieve details for\"),\n});\nconst PandadocGetTemplateDetails_PreassignedContactGroupMemberSchema = z.object({\n email: z.string().describe(\"Email of the group member\").nullable().optional(),\n last_name: z.string().describe(\"Last name of the group member\").nullable().optional(),\n first_name: z.string().describe(\"First name of the group member\").nullable().optional(),\n}).passthrough().describe(\"Member of a preassigned contact group\");\nconst PandadocGetTemplateDetails_PreassignedPersonSchema = z.object({\n type: z.string().describe(\"Type of preassignment: 'preassigned contact' or 'preassigned contact group'\").nullable(),\n email: z.string().describe(\"Email of the preassigned person\").nullable().optional(),\n members: z.array(PandadocGetTemplateDetails_PreassignedContactGroupMemberSchema).describe(\"List of contacts in the group. Only present for type 'preassigned contact group'\").nullable().optional(),\n last_name: z.string().describe(\"Last name of the preassigned person\").nullable().optional(),\n first_name: z.string().describe(\"First name of the preassigned person\").nullable().optional(),\n placeholder_name: z.string().describe(\"Placeholder name for the person\").nullable().optional(),\n placeholder_source: z.string().describe(\"Source of the placeholder (e.g., 'bamboohr')\").nullable().optional(),\n}).passthrough().describe(\"Pre-assigned person or contact group for a role\");\nconst PandadocGetTemplateDetails_TemplateRoleSchema = z.object({\n id: z.string().describe(\"The ID of the role\").nullable(),\n name: z.string().describe(\"The name of the role\").nullable(),\n signing_order: z.number().int().describe(\"The signing order for this role\").nullable().optional(),\n preassigned_person: PandadocGetTemplateDetails_PreassignedPersonSchema.nullable().optional(),\n}).passthrough();\nconst PandadocGetTemplateDetails_FieldAssignedToRoleSchema = z.object({\n id: z.string().describe(\"Role ID\").nullable(),\n name: z.string().describe(\"Role name\").nullable(),\n type: z.string().describe(\"Assignment type, always 'role' for template fields\").nullable(),\n preassigned_person: PandadocGetTemplateDetails_PreassignedPersonSchema.nullable().optional(),\n}).passthrough().describe(\"Role assignment for a field in a template\");\nconst PandadocGetTemplateDetails_TemplateFieldSchema = z.object({\n name: z.string().describe(\"Field name\").nullable(),\n type: z.string().describe(\"Field type (text, checkbox, date, dropdown, signature, etc.)\").nullable().optional(),\n uuid: z.string().describe(\"Unique identifier for the field\").nullable(),\n title: z.string().describe(\"Field title\").nullable().optional(),\n value: z.unknown().describe(\"Field value (type varies by field type)\").nullable().optional(),\n field_id: z.string().describe(\"Field ID, unique across the template\").nullable().optional(),\n assigned_to: PandadocGetTemplateDetails_FieldAssignedToRoleSchema.nullable().optional(),\n merge_field: z.string().describe(\"Merge field name\").nullable().optional(),\n placeholder: z.string().describe(\"Field placeholder text\").nullable().optional(),\n}).passthrough().describe(\"Field in a template\");\nconst PandadocGetTemplateDetails_TemplateTokenSchema = z.object({\n name: z.string().describe(\"Token name\").nullable(),\n value: z.string().describe(\"Token value\").nullable().optional(),\n}).passthrough().describe(\"Token (variable) in a template\");\nconst PandadocGetTemplateDetails_PricingTableItemSchema = z.object({\n id: z.string().describe(\"Item ID\").nullable().optional(),\n qty: z.string().describe(\"Quantity\").nullable().optional(),\n sku: z.string().describe(\"SKU\").nullable().optional(),\n cost: z.string().describe(\"Cost per item\").nullable().optional(),\n name: z.string().describe(\"Item name\").nullable().optional(),\n price: z.string().describe(\"Price per item\").nullable().optional(),\n description: z.string().describe(\"Item description\").nullable().optional(),\n custom_fields: z.record(z.string(), z.unknown()).describe(\"Custom fields\").nullable().optional(),\n custom_columns: z.record(z.string(), z.unknown()).describe(\"Custom columns\").nullable().optional(),\n}).passthrough().describe(\"Item in a pricing table\");\nconst PandadocGetTemplateDetails_QuoteSectionSchema = z.object({\n rows: z.array(PandadocGetTemplateDetails_PricingTableItemSchema).describe(\"Rows in the section\").nullable().optional(),\n title: z.string().describe(\"Section title\").nullable().optional(),\n \"default\": z.boolean().describe(\"Whether this is the default section\").nullable().optional(),\n multichoice_enabled: z.boolean().describe(\"Whether multichoice is enabled\").nullable().optional(),\n}).passthrough().describe(\"Section in a quote\");\nconst PandadocGetTemplateDetails_QuoteSchema = z.object({\n id: z.string().describe(\"Quote ID\").nullable().optional(),\n name: z.string().describe(\"Quote name\").nullable().optional(),\n total: z.string().describe(\"Total for this quote\").nullable().optional(),\n sections: z.array(PandadocGetTemplateDetails_QuoteSectionSchema).describe(\"Quote sections\").nullable().optional(),\n}).passthrough().describe(\"Quote in a template\");\nconst PandadocGetTemplateDetails_PricingTableSummarySchema = z.object({\n fee: z.string().describe(\"Fee amount\").nullable().optional(),\n tax: z.string().describe(\"Tax amount\").nullable().optional(),\n total: z.string().describe(\"Total amount\").nullable().optional(),\n discount: z.string().describe(\"Discount amount\").nullable().optional(),\n subtotal: z.string().describe(\"Subtotal amount\").nullable().optional(),\n}).passthrough().describe(\"Summary totals for a pricing table\");\nconst PandadocGetTemplateDetails_PricingTableSchema = z.object({\n id: z.string().describe(\"Table ID\").nullable().optional(),\n name: z.string().describe(\"Table name\").nullable().optional(),\n items: z.array(PandadocGetTemplateDetails_PricingTableItemSchema).describe(\"Items in the pricing table\").nullable().optional(),\n total: z.string().describe(\"Total for this table\").nullable().optional(),\n summary: PandadocGetTemplateDetails_PricingTableSummarySchema.nullable().optional(),\n is_included_in_total: z.boolean().describe(\"Whether this table is included in the overall total\").nullable().optional(),\n}).passthrough().describe(\"Pricing table in a template\");\nconst PandadocGetTemplateDetails_TemplatePricingSchema = z.object({\n total: z.string().describe(\"Overall total\").nullable().optional(),\n quotes: z.array(PandadocGetTemplateDetails_QuoteSchema).describe(\"Quotes\").nullable().optional(),\n tables: z.array(PandadocGetTemplateDetails_PricingTableSchema).describe(\"Pricing tables\").nullable().optional(),\n}).passthrough().describe(\"Pricing information for a template\");\nconst PandadocGetTemplateDetails_TemplateCreatorSchema = z.object({\n id: z.string().describe(\"The ID of the template creator\").nullable(),\n email: z.string().describe(\"The email of the template creator\").nullable(),\n avatar: z.string().describe(\"The avatar URL of the template creator\").nullable().optional(),\n last_name: z.string().describe(\"The last name of the template creator\").nullable(),\n first_name: z.string().describe(\"The first name of the template creator\").nullable(),\n}).passthrough();\nconst PandadocGetTemplateDetails_ContentPlaceholderSchema = z.object({\n uuid: z.string().describe(\"The UUID of the content placeholder\").nullable(),\n block_id: z.string().describe(\"The block ID of the content placeholder\").nullable(),\n description: z.string().describe(\"Description of the content placeholder\").nullable().optional(),\n}).passthrough();\nexport const PandadocGetTemplateDetailsOutput = z.object({\n id: z.string().describe(\"The unique identifier of the template\").nullable(),\n name: z.string().describe(\"The name of the template\").nullable(),\n tags: z.array(z.string()).describe(\"List of template tags\").nullable().optional(),\n roles: z.array(PandadocGetTemplateDetails_TemplateRoleSchema).describe(\"List of roles in the template\").nullable().optional(),\n fields: z.array(PandadocGetTemplateDetails_TemplateFieldSchema).describe(\"List of fields in the template\").nullable().optional(),\n tokens: z.array(PandadocGetTemplateDetails_TemplateTokenSchema).describe(\"List of tokens (variables) in the template\").nullable().optional(),\n pricing: PandadocGetTemplateDetails_TemplatePricingSchema.nullable().optional(),\n version: z.string().describe(\"Template version\").nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Template metadata (arbitrary key-value pairs)\").nullable().optional(),\n created_by: PandadocGetTemplateDetails_TemplateCreatorSchema.nullable(),\n date_created: z.string().describe(\"The creation date of the template\").nullable(),\n date_modified: z.string().describe(\"The last modification date of the template\").nullable(),\n content_placeholders: z.array(PandadocGetTemplateDetails_ContentPlaceholderSchema).describe(\"List of content placeholders\").nullable().optional(),\n content_date_modified: z.string().describe(\"The last content modification date\").nullable().optional(),\n}).passthrough();\n\nexport const pandadocGetTemplateDetails = action(\"PANDADOC_GET_TEMPLATE_DETAILS\", {\n slug: \"pandadoc-get-template-details\",\n name: \"Get Template Details\",\n description: \"This tool retrieves detailed information about a specific template by its ID. The endpoint returns comprehensive template details including metadata, content details, and sharing settings.\",\n input: PandadocGetTemplateDetailsInput,\n output: PandadocGetTemplateDetailsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAkC,EAAE,OAAO,EACtD,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,EAClG,CAAC;AACD,MAAM,iEAAiE,EAAE,OAAO;CAC9E,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5E,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACxF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uCAAuC;AACjE,MAAM,qDAAqD,EAAE,OAAO;CAClE,MAAM,E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AC,SAAS,4CAA4C,CAAC,CAAC,SAAS;EAC1F,sBAAsB,EAAE,MAAM,mDAAmD,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChJ,uBAAuB,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvG,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
|
|
@@ -3,15 +3,15 @@ let zod = require("zod");
|
|
|
3
3
|
//#region src/actions/list-contacts.ts
|
|
4
4
|
const PandadocListContactsInput = zod.z.object({ email: zod.z.string().describe("Filter contacts by exact email match. Returns only contacts with this specific email address.").optional() });
|
|
5
5
|
const PandadocListContacts_ContactSchema = zod.z.object({
|
|
6
|
-
id: zod.z.string().describe("The unique identifier of the contact"),
|
|
7
|
-
email: zod.z.string().describe("Email address of the contact"),
|
|
6
|
+
id: zod.z.string().describe("The unique identifier of the contact").nullable(),
|
|
7
|
+
email: zod.z.string().describe("Email address of the contact").nullable(),
|
|
8
8
|
shared: zod.z.boolean().describe("Whether the contact is shared").nullable().optional(),
|
|
9
9
|
company: zod.z.string().describe("Company name of the contact").nullable().optional(),
|
|
10
10
|
last_name: zod.z.string().describe("Last name of the contact").nullable().optional(),
|
|
11
11
|
first_name: zod.z.string().describe("First name of the contact").nullable().optional(),
|
|
12
12
|
create_time: zod.z.string().describe("Creation timestamp of the contact").nullable().optional()
|
|
13
|
-
});
|
|
14
|
-
const PandadocListContactsOutput = zod.z.object({ results: zod.z.array(PandadocListContacts_ContactSchema).describe("List of contacts matching the search criteria") });
|
|
13
|
+
}).passthrough();
|
|
14
|
+
const PandadocListContactsOutput = zod.z.object({ results: zod.z.array(PandadocListContacts_ContactSchema).describe("List of contacts matching the search criteria") }).passthrough();
|
|
15
15
|
const pandadocListContacts = require_action.action("PANDADOC_LIST_CONTACTS", {
|
|
16
16
|
slug: "pandadoc-list-contacts",
|
|
17
17
|
name: "List Contacts",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-contacts.cjs","names":["z","action"],"sources":["../../src/actions/list-contacts.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PandadocListContactsInput
|
|
1
|
+
{"version":3,"file":"list-contacts.cjs","names":["z","action"],"sources":["../../src/actions/list-contacts.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PandadocListContactsInput = z.object({\n email: z.string().describe(\"Filter contacts by exact email match. Returns only contacts with this specific email address.\").optional(),\n});\nconst PandadocListContacts_ContactSchema = z.object({\n id: z.string().describe(\"The unique identifier of the contact\").nullable(),\n email: z.string().describe(\"Email address of the contact\").nullable(),\n shared: z.boolean().describe(\"Whether the contact is shared\").nullable().optional(),\n company: z.string().describe(\"Company name of the contact\").nullable().optional(),\n last_name: z.string().describe(\"Last name of the contact\").nullable().optional(),\n first_name: z.string().describe(\"First name of the contact\").nullable().optional(),\n create_time: z.string().describe(\"Creation timestamp of the contact\").nullable().optional(),\n}).passthrough();\nexport const PandadocListContactsOutput = z.object({\n results: z.array(PandadocListContacts_ContactSchema).describe(\"List of contacts matching the search criteria\"),\n}).passthrough();\n\nexport const pandadocListContacts = action(\"PANDADOC_LIST_CONTACTS\", {\n slug: \"pandadoc-list-contacts\",\n name: \"List Contacts\",\n description: \"List all contacts in your PandaDoc workspace. Returns all contacts with their details including email, name, company, and contact information. Optionally filter by exact email address. Note: The API returns all contacts at once without pagination - filtering and pagination should be done client-side if needed.\",\n input: PandadocListContactsInput,\n output: PandadocListContactsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO,EAChD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+FAA+F,CAAC,CAAC,SAAS,EACvI,CAAC;AACD,MAAM,qCAAqCA,IAAAA,EAAE,OAAO;CAClD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CACzE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CACpE,QAAQA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/E,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5F,CAAC,CAAC,CAAC,YAAY;AACf,MAAa,6BAA6BA,IAAAA,EAAE,OAAO,EACjD,SAASA,IAAAA,EAAE,MAAM,kCAAkC,CAAC,CAAC,SAAS,+CAA+C,EAC/G,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,uBAAuBC,eAAAA,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,23 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/list-contacts.d.ts
|
|
4
|
-
declare const PandadocListContactsInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const PandadocListContactsInput: z.ZodObject<{
|
|
5
|
+
email: z.ZodOptional<z.ZodString>;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
declare const PandadocListContactsOutput: z.ZodObject<{
|
|
8
|
+
results: z.ZodArray<z.ZodObject<{
|
|
9
|
+
id: z.ZodNullable<z.ZodString>;
|
|
10
|
+
email: z.ZodNullable<z.ZodString>;
|
|
11
|
+
shared: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
12
|
+
company: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
|
+
last_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
|
+
first_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
|
+
create_time: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
|
+
}, z.core.$loose>>;
|
|
17
|
+
}, z.core.$loose>;
|
|
18
|
+
declare const pandadocListContacts: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
19
|
+
email?: string | undefined;
|
|
20
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
21
|
//#endregion
|
|
8
22
|
export { pandadocListContacts };
|
|
9
23
|
//# sourceMappingURL=list-contacts.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-contacts.d.cts","names":[],"sources":["../../src/actions/list-contacts.ts"],"mappings":";;;cAIa,yBAAA,
|
|
1
|
+
{"version":3,"file":"list-contacts.d.cts","names":[],"sources":["../../src/actions/list-contacts.ts"],"mappings":";;;cAIa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;cAYzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;cAI1B,oBAAA,gCAAoB,wBAAA"}
|
|
@@ -1,9 +1,23 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/list-contacts.d.ts
|
|
4
|
-
declare const PandadocListContactsInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const PandadocListContactsInput: z.ZodObject<{
|
|
5
|
+
email: z.ZodOptional<z.ZodString>;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
declare const PandadocListContactsOutput: z.ZodObject<{
|
|
8
|
+
results: z.ZodArray<z.ZodObject<{
|
|
9
|
+
id: z.ZodNullable<z.ZodString>;
|
|
10
|
+
email: z.ZodNullable<z.ZodString>;
|
|
11
|
+
shared: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
12
|
+
company: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
|
+
last_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
|
+
first_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
|
+
create_time: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
|
+
}, z.core.$loose>>;
|
|
17
|
+
}, z.core.$loose>;
|
|
18
|
+
declare const pandadocListContacts: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
19
|
+
email?: string | undefined;
|
|
20
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
21
|
//#endregion
|
|
8
22
|
export { pandadocListContacts };
|
|
9
23
|
//# sourceMappingURL=list-contacts.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-contacts.d.mts","names":[],"sources":["../../src/actions/list-contacts.ts"],"mappings":";;;cAIa,yBAAA,
|
|
1
|
+
{"version":3,"file":"list-contacts.d.mts","names":[],"sources":["../../src/actions/list-contacts.ts"],"mappings":";;;cAIa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;cAYzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;cAI1B,oBAAA,gCAAoB,wBAAA"}
|
|
@@ -3,20 +3,20 @@ import { z } from "zod";
|
|
|
3
3
|
//#region src/actions/list-contacts.ts
|
|
4
4
|
const PandadocListContactsInput = z.object({ email: z.string().describe("Filter contacts by exact email match. Returns only contacts with this specific email address.").optional() });
|
|
5
5
|
const PandadocListContacts_ContactSchema = z.object({
|
|
6
|
-
id: z.string().describe("The unique identifier of the contact"),
|
|
7
|
-
email: z.string().describe("Email address of the contact"),
|
|
6
|
+
id: z.string().describe("The unique identifier of the contact").nullable(),
|
|
7
|
+
email: z.string().describe("Email address of the contact").nullable(),
|
|
8
8
|
shared: z.boolean().describe("Whether the contact is shared").nullable().optional(),
|
|
9
9
|
company: z.string().describe("Company name of the contact").nullable().optional(),
|
|
10
10
|
last_name: z.string().describe("Last name of the contact").nullable().optional(),
|
|
11
11
|
first_name: z.string().describe("First name of the contact").nullable().optional(),
|
|
12
12
|
create_time: z.string().describe("Creation timestamp of the contact").nullable().optional()
|
|
13
|
-
});
|
|
13
|
+
}).passthrough();
|
|
14
14
|
const pandadocListContacts = action("PANDADOC_LIST_CONTACTS", {
|
|
15
15
|
slug: "pandadoc-list-contacts",
|
|
16
16
|
name: "List Contacts",
|
|
17
17
|
description: "List all contacts in your PandaDoc workspace. Returns all contacts with their details including email, name, company, and contact information. Optionally filter by exact email address. Note: The API returns all contacts at once without pagination - filtering and pagination should be done client-side if needed.",
|
|
18
18
|
input: PandadocListContactsInput,
|
|
19
|
-
output: z.object({ results: z.array(PandadocListContacts_ContactSchema).describe("List of contacts matching the search criteria") })
|
|
19
|
+
output: z.object({ results: z.array(PandadocListContacts_ContactSchema).describe("List of contacts matching the search criteria") }).passthrough()
|
|
20
20
|
});
|
|
21
21
|
//#endregion
|
|
22
22
|
export { pandadocListContacts };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-contacts.mjs","names":[],"sources":["../../src/actions/list-contacts.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PandadocListContactsInput
|
|
1
|
+
{"version":3,"file":"list-contacts.mjs","names":[],"sources":["../../src/actions/list-contacts.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PandadocListContactsInput = z.object({\n email: z.string().describe(\"Filter contacts by exact email match. Returns only contacts with this specific email address.\").optional(),\n});\nconst PandadocListContacts_ContactSchema = z.object({\n id: z.string().describe(\"The unique identifier of the contact\").nullable(),\n email: z.string().describe(\"Email address of the contact\").nullable(),\n shared: z.boolean().describe(\"Whether the contact is shared\").nullable().optional(),\n company: z.string().describe(\"Company name of the contact\").nullable().optional(),\n last_name: z.string().describe(\"Last name of the contact\").nullable().optional(),\n first_name: z.string().describe(\"First name of the contact\").nullable().optional(),\n create_time: z.string().describe(\"Creation timestamp of the contact\").nullable().optional(),\n}).passthrough();\nexport const PandadocListContactsOutput = z.object({\n results: z.array(PandadocListContacts_ContactSchema).describe(\"List of contacts matching the search criteria\"),\n}).passthrough();\n\nexport const pandadocListContacts = action(\"PANDADOC_LIST_CONTACTS\", {\n slug: \"pandadoc-list-contacts\",\n name: \"List Contacts\",\n description: \"List all contacts in your PandaDoc workspace. Returns all contacts with their details including email, name, company, and contact information. Optionally filter by exact email address. Note: The API returns all contacts at once without pagination - filtering and pagination should be done client-side if needed.\",\n input: PandadocListContactsInput,\n output: PandadocListContactsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4B,EAAE,OAAO,EAChD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,+FAA+F,CAAC,CAAC,SAAS,EACvI,CAAC;AACD,MAAM,qCAAqC,EAAE,OAAO;CAClD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CACzE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CACpE,QAAQ,EAAE,QAAQ,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/E,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5F,CAAC,CAAC,CAAC,YAAY;AAKf,MAAa,uBAAuB,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATwC,EAAE,OAAO,EACjD,SAAS,EAAE,MAAM,kCAAkC,CAAC,CAAC,SAAS,+CAA+C,EAC/G,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
|
|
@@ -7,16 +7,16 @@ const PandadocListDocumentFoldersInput = zod.z.object({
|
|
|
7
7
|
parent_uuid: zod.z.string().describe("The UUID of the parent folder. If omitted, returns folders in root directory").optional()
|
|
8
8
|
});
|
|
9
9
|
const PandadocListDocumentFolders_FolderItemSchema = zod.z.object({
|
|
10
|
-
name: zod.z.string().describe("Folder name"),
|
|
11
|
-
uuid: zod.z.string().describe("Folder UUID"),
|
|
10
|
+
name: zod.z.string().describe("Folder name").nullable(),
|
|
11
|
+
uuid: zod.z.string().describe("Folder UUID").nullable(),
|
|
12
12
|
shared: zod.z.boolean().describe("Whether the folder is shared").nullable().optional(),
|
|
13
|
-
has_items: zod.z.boolean().describe("Whether the folder contains items"),
|
|
13
|
+
has_items: zod.z.boolean().describe("Whether the folder contains items").nullable(),
|
|
14
14
|
created_by: zod.z.string().describe("ID of the user who created the folder").nullable().optional(),
|
|
15
|
-
has_folders: zod.z.boolean().describe("Whether the folder contains subfolders"),
|
|
15
|
+
has_folders: zod.z.boolean().describe("Whether the folder contains subfolders").nullable(),
|
|
16
16
|
parent_uuid: zod.z.string().describe("UUID of the parent folder").nullable().optional(),
|
|
17
|
-
date_created: zod.z.string().describe("Folder creation date")
|
|
18
|
-
});
|
|
19
|
-
const PandadocListDocumentFoldersOutput = zod.z.object({ results: zod.z.array(PandadocListDocumentFolders_FolderItemSchema).describe("List of document folders") });
|
|
17
|
+
date_created: zod.z.string().describe("Folder creation date").nullable()
|
|
18
|
+
}).passthrough();
|
|
19
|
+
const PandadocListDocumentFoldersOutput = zod.z.object({ results: zod.z.array(PandadocListDocumentFolders_FolderItemSchema).describe("List of document folders") }).passthrough();
|
|
20
20
|
const pandadocListDocumentFolders = require_action.action("PANDADOC_LIST_DOCUMENT_FOLDERS", {
|
|
21
21
|
slug: "pandadoc-list-document-folders",
|
|
22
22
|
name: "List Document Folders",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-document-folders.cjs","names":["z","action"],"sources":["../../src/actions/list-document-folders.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PandadocListDocumentFoldersInput
|
|
1
|
+
{"version":3,"file":"list-document-folders.cjs","names":["z","action"],"sources":["../../src/actions/list-document-folders.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PandadocListDocumentFoldersInput = z.object({\n page: z.number().int().describe(\"Page number (starts from 1)\").optional(),\n count: z.number().int().describe(\"Number of folders to return (default: 50, max: 100)\").optional(),\n parent_uuid: z.string().describe(\"The UUID of the parent folder. If omitted, returns folders in root directory\").optional(),\n});\nconst PandadocListDocumentFolders_FolderItemSchema = z.object({\n name: z.string().describe(\"Folder name\").nullable(),\n uuid: z.string().describe(\"Folder UUID\").nullable(),\n shared: z.boolean().describe(\"Whether the folder is shared\").nullable().optional(),\n has_items: z.boolean().describe(\"Whether the folder contains items\").nullable(),\n created_by: z.string().describe(\"ID of the user who created the folder\").nullable().optional(),\n has_folders: z.boolean().describe(\"Whether the folder contains subfolders\").nullable(),\n parent_uuid: z.string().describe(\"UUID of the parent folder\").nullable().optional(),\n date_created: z.string().describe(\"Folder creation date\").nullable(),\n}).passthrough();\nexport const PandadocListDocumentFoldersOutput = z.object({\n results: z.array(PandadocListDocumentFolders_FolderItemSchema).describe(\"List of document folders\"),\n}).passthrough();\n\nexport const pandadocListDocumentFolders = action(\"PANDADOC_LIST_DOCUMENT_FOLDERS\", {\n slug: \"pandadoc-list-document-folders\",\n name: \"List Document Folders\",\n description: \"This tool retrieves a list of all document folders in PandaDoc. It's a standalone action that doesn't require any external dependencies or resource IDs. The tool will return a list of folders containing documents, with each folder containing information about its ID, name, and parent folder relationship.\",\n input: PandadocListDocumentFoldersInput,\n output: PandadocListDocumentFoldersOutput,\n});\n"],"mappings":";;;AAIA,MAAa,mCAAmCA,IAAAA,EAAE,OAAO;CACvD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CACxE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;CACjG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS;AAC5H,CAAC;AACD,MAAM,+CAA+CA,IAAAA,EAAE,OAAO;CAC5D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,aAAa,CAAC,CAAC,SAAS;CAClD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,aAAa,CAAC,CAAC,SAAS;CAClD,QAAQA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CAC9E,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7F,aAAaA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CACrF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClF,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;AACrE,CAAC,CAAC,CAAC,YAAY;AACf,MAAa,oCAAoCA,IAAAA,EAAE,OAAO,EACxD,SAASA,IAAAA,EAAE,MAAM,4CAA4C,CAAC,CAAC,SAAS,0BAA0B,EACpG,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,8BAA8BC,eAAAA,OAAO,kCAAkC;CAClF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,28 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/list-document-folders.d.ts
|
|
4
|
-
declare const PandadocListDocumentFoldersInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const PandadocListDocumentFoldersInput: z.ZodObject<{
|
|
5
|
+
page: z.ZodOptional<z.ZodNumber>;
|
|
6
|
+
count: z.ZodOptional<z.ZodNumber>;
|
|
7
|
+
parent_uuid: z.ZodOptional<z.ZodString>;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
declare const PandadocListDocumentFoldersOutput: z.ZodObject<{
|
|
10
|
+
results: z.ZodArray<z.ZodObject<{
|
|
11
|
+
name: z.ZodNullable<z.ZodString>;
|
|
12
|
+
uuid: z.ZodNullable<z.ZodString>;
|
|
13
|
+
shared: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
14
|
+
has_items: z.ZodNullable<z.ZodBoolean>;
|
|
15
|
+
created_by: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
|
+
has_folders: z.ZodNullable<z.ZodBoolean>;
|
|
17
|
+
parent_uuid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
|
+
date_created: z.ZodNullable<z.ZodString>;
|
|
19
|
+
}, z.core.$loose>>;
|
|
20
|
+
}, z.core.$loose>;
|
|
21
|
+
declare const pandadocListDocumentFolders: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
22
|
+
page?: number | undefined;
|
|
23
|
+
count?: number | undefined;
|
|
24
|
+
parent_uuid?: string | undefined;
|
|
25
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
26
|
//#endregion
|
|
8
27
|
export { pandadocListDocumentFolders };
|
|
9
28
|
//# sourceMappingURL=list-document-folders.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-document-folders.d.cts","names":[],"sources":["../../src/actions/list-document-folders.ts"],"mappings":";;;cAIa,gCAAA,
|
|
1
|
+
{"version":3,"file":"list-document-folders.d.cts","names":[],"sources":["../../src/actions/list-document-folders.ts"],"mappings":";;;cAIa,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;cAehC,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;;;;;;;;cAIjC,2BAAA,gCAA2B,wBAAA"}
|
|
@@ -1,9 +1,28 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/list-document-folders.d.ts
|
|
4
|
-
declare const PandadocListDocumentFoldersInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const PandadocListDocumentFoldersInput: z.ZodObject<{
|
|
5
|
+
page: z.ZodOptional<z.ZodNumber>;
|
|
6
|
+
count: z.ZodOptional<z.ZodNumber>;
|
|
7
|
+
parent_uuid: z.ZodOptional<z.ZodString>;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
declare const PandadocListDocumentFoldersOutput: z.ZodObject<{
|
|
10
|
+
results: z.ZodArray<z.ZodObject<{
|
|
11
|
+
name: z.ZodNullable<z.ZodString>;
|
|
12
|
+
uuid: z.ZodNullable<z.ZodString>;
|
|
13
|
+
shared: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
14
|
+
has_items: z.ZodNullable<z.ZodBoolean>;
|
|
15
|
+
created_by: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
|
+
has_folders: z.ZodNullable<z.ZodBoolean>;
|
|
17
|
+
parent_uuid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
|
+
date_created: z.ZodNullable<z.ZodString>;
|
|
19
|
+
}, z.core.$loose>>;
|
|
20
|
+
}, z.core.$loose>;
|
|
21
|
+
declare const pandadocListDocumentFolders: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
22
|
+
page?: number | undefined;
|
|
23
|
+
count?: number | undefined;
|
|
24
|
+
parent_uuid?: string | undefined;
|
|
25
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
26
|
//#endregion
|
|
8
27
|
export { pandadocListDocumentFolders };
|
|
9
28
|
//# sourceMappingURL=list-document-folders.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-document-folders.d.mts","names":[],"sources":["../../src/actions/list-document-folders.ts"],"mappings":";;;cAIa,gCAAA,
|
|
1
|
+
{"version":3,"file":"list-document-folders.d.mts","names":[],"sources":["../../src/actions/list-document-folders.ts"],"mappings":";;;cAIa,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;cAehC,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;;;;;;;;cAIjC,2BAAA,gCAA2B,wBAAA"}
|
|
@@ -7,21 +7,21 @@ const PandadocListDocumentFoldersInput = z.object({
|
|
|
7
7
|
parent_uuid: z.string().describe("The UUID of the parent folder. If omitted, returns folders in root directory").optional()
|
|
8
8
|
});
|
|
9
9
|
const PandadocListDocumentFolders_FolderItemSchema = z.object({
|
|
10
|
-
name: z.string().describe("Folder name"),
|
|
11
|
-
uuid: z.string().describe("Folder UUID"),
|
|
10
|
+
name: z.string().describe("Folder name").nullable(),
|
|
11
|
+
uuid: z.string().describe("Folder UUID").nullable(),
|
|
12
12
|
shared: z.boolean().describe("Whether the folder is shared").nullable().optional(),
|
|
13
|
-
has_items: z.boolean().describe("Whether the folder contains items"),
|
|
13
|
+
has_items: z.boolean().describe("Whether the folder contains items").nullable(),
|
|
14
14
|
created_by: z.string().describe("ID of the user who created the folder").nullable().optional(),
|
|
15
|
-
has_folders: z.boolean().describe("Whether the folder contains subfolders"),
|
|
15
|
+
has_folders: z.boolean().describe("Whether the folder contains subfolders").nullable(),
|
|
16
16
|
parent_uuid: z.string().describe("UUID of the parent folder").nullable().optional(),
|
|
17
|
-
date_created: z.string().describe("Folder creation date")
|
|
18
|
-
});
|
|
17
|
+
date_created: z.string().describe("Folder creation date").nullable()
|
|
18
|
+
}).passthrough();
|
|
19
19
|
const pandadocListDocumentFolders = action("PANDADOC_LIST_DOCUMENT_FOLDERS", {
|
|
20
20
|
slug: "pandadoc-list-document-folders",
|
|
21
21
|
name: "List Document Folders",
|
|
22
22
|
description: "This tool retrieves a list of all document folders in PandaDoc. It's a standalone action that doesn't require any external dependencies or resource IDs. The tool will return a list of folders containing documents, with each folder containing information about its ID, name, and parent folder relationship.",
|
|
23
23
|
input: PandadocListDocumentFoldersInput,
|
|
24
|
-
output: z.object({ results: z.array(PandadocListDocumentFolders_FolderItemSchema).describe("List of document folders") })
|
|
24
|
+
output: z.object({ results: z.array(PandadocListDocumentFolders_FolderItemSchema).describe("List of document folders") }).passthrough()
|
|
25
25
|
});
|
|
26
26
|
//#endregion
|
|
27
27
|
export { pandadocListDocumentFolders };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-document-folders.mjs","names":[],"sources":["../../src/actions/list-document-folders.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PandadocListDocumentFoldersInput
|
|
1
|
+
{"version":3,"file":"list-document-folders.mjs","names":[],"sources":["../../src/actions/list-document-folders.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PandadocListDocumentFoldersInput = z.object({\n page: z.number().int().describe(\"Page number (starts from 1)\").optional(),\n count: z.number().int().describe(\"Number of folders to return (default: 50, max: 100)\").optional(),\n parent_uuid: z.string().describe(\"The UUID of the parent folder. If omitted, returns folders in root directory\").optional(),\n});\nconst PandadocListDocumentFolders_FolderItemSchema = z.object({\n name: z.string().describe(\"Folder name\").nullable(),\n uuid: z.string().describe(\"Folder UUID\").nullable(),\n shared: z.boolean().describe(\"Whether the folder is shared\").nullable().optional(),\n has_items: z.boolean().describe(\"Whether the folder contains items\").nullable(),\n created_by: z.string().describe(\"ID of the user who created the folder\").nullable().optional(),\n has_folders: z.boolean().describe(\"Whether the folder contains subfolders\").nullable(),\n parent_uuid: z.string().describe(\"UUID of the parent folder\").nullable().optional(),\n date_created: z.string().describe(\"Folder creation date\").nullable(),\n}).passthrough();\nexport const PandadocListDocumentFoldersOutput = z.object({\n results: z.array(PandadocListDocumentFolders_FolderItemSchema).describe(\"List of document folders\"),\n}).passthrough();\n\nexport const pandadocListDocumentFolders = action(\"PANDADOC_LIST_DOCUMENT_FOLDERS\", {\n slug: \"pandadoc-list-document-folders\",\n name: \"List Document Folders\",\n description: \"This tool retrieves a list of all document folders in PandaDoc. It's a standalone action that doesn't require any external dependencies or resource IDs. The tool will return a list of folders containing documents, with each folder containing information about its ID, name, and parent folder relationship.\",\n input: PandadocListDocumentFoldersInput,\n output: PandadocListDocumentFoldersOutput,\n});\n"],"mappings":";;;AAIA,MAAa,mCAAmC,EAAE,OAAO;CACvD,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CACxE,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;CACjG,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS;AAC5H,CAAC;AACD,MAAM,+CAA+C,EAAE,OAAO;CAC5D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,aAAa,CAAC,CAAC,SAAS;CAClD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,aAAa,CAAC,CAAC,SAAS;CAClD,QAAQ,EAAE,QAAQ,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CAC9E,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7F,aAAa,EAAE,QAAQ,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CACrF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClF,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;AACrE,CAAC,CAAC,CAAC,YAAY;AAKf,MAAa,8BAA8B,OAAO,kCAAkC;CAClF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAT+C,EAAE,OAAO,EACxD,SAAS,EAAE,MAAM,4CAA4C,CAAC,CAAC,SAAS,0BAA0B,EACpG,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
|
|
@@ -13,14 +13,14 @@ const PandadocListTemplatesInput = zod.z.object({
|
|
|
13
13
|
folder_uuid: zod.z.string().describe("UUID of the folder where the templates are stored").optional()
|
|
14
14
|
});
|
|
15
15
|
const PandadocListTemplates_TemplateItemSchema = zod.z.object({
|
|
16
|
-
id: zod.z.string().describe("Template ID"),
|
|
17
|
-
name: zod.z.string().describe("Template name"),
|
|
18
|
-
version: zod.z.string().describe("Template version"),
|
|
19
|
-
date_created: zod.z.string().describe("Template creation date"),
|
|
20
|
-
date_modified: zod.z.string().describe("Template last modification date"),
|
|
16
|
+
id: zod.z.string().describe("Template ID").nullable(),
|
|
17
|
+
name: zod.z.string().describe("Template name").nullable(),
|
|
18
|
+
version: zod.z.string().describe("Template version").nullable(),
|
|
19
|
+
date_created: zod.z.string().describe("Template creation date").nullable(),
|
|
20
|
+
date_modified: zod.z.string().describe("Template last modification date").nullable(),
|
|
21
21
|
content_date_modified: zod.z.string().describe("Content last modification date").nullable().optional()
|
|
22
|
-
});
|
|
23
|
-
const PandadocListTemplatesOutput = zod.z.object({ results: zod.z.array(PandadocListTemplates_TemplateItemSchema).describe("List of templates") });
|
|
22
|
+
}).passthrough();
|
|
23
|
+
const PandadocListTemplatesOutput = zod.z.object({ results: zod.z.array(PandadocListTemplates_TemplateItemSchema).describe("List of templates") }).passthrough();
|
|
24
24
|
const pandadocListTemplates = require_action.action("PANDADOC_LIST_TEMPLATES", {
|
|
25
25
|
slug: "pandadoc-list-templates",
|
|
26
26
|
name: "List Templates",
|