@keystrokehq/spondyr 0.1.0 → 0.1.2
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/conditions-list.cjs +4 -4
- package/dist/actions/conditions-list.cjs.map +1 -1
- package/dist/actions/conditions-list.d.cts +19 -3
- package/dist/actions/conditions-list.d.cts.map +1 -1
- package/dist/actions/conditions-list.d.mts +19 -3
- package/dist/actions/conditions-list.d.mts.map +1 -1
- package/dist/actions/conditions-list.mjs +4 -4
- package/dist/actions/conditions-list.mjs.map +1 -1
- package/dist/actions/create-condition.cjs +2 -2
- package/dist/actions/create-condition.cjs.map +1 -1
- package/dist/actions/create-condition.d.cts +20 -3
- package/dist/actions/create-condition.d.cts.map +1 -1
- package/dist/actions/create-condition.d.mts +20 -3
- package/dist/actions/create-condition.d.mts.map +1 -1
- package/dist/actions/create-condition.mjs +2 -2
- package/dist/actions/create-condition.mjs.map +1 -1
- package/dist/actions/create-transaction-type.cjs +1 -1
- package/dist/actions/create-transaction-type.cjs.map +1 -1
- package/dist/actions/create-transaction-type.d.cts +16 -3
- package/dist/actions/create-transaction-type.d.cts.map +1 -1
- package/dist/actions/create-transaction-type.d.mts +16 -3
- package/dist/actions/create-transaction-type.d.mts.map +1 -1
- package/dist/actions/create-transaction-type.mjs +1 -1
- package/dist/actions/create-transaction-type.mjs.map +1 -1
- package/dist/actions/deliver-spondyr.cjs +2 -2
- package/dist/actions/deliver-spondyr.cjs.map +1 -1
- package/dist/actions/deliver-spondyr.d.cts +53 -3
- package/dist/actions/deliver-spondyr.d.cts.map +1 -1
- package/dist/actions/deliver-spondyr.d.mts +53 -3
- package/dist/actions/deliver-spondyr.d.mts.map +1 -1
- package/dist/actions/deliver-spondyr.mjs +2 -2
- package/dist/actions/deliver-spondyr.mjs.map +1 -1
- package/dist/actions/event-type-update.cjs +1 -1
- package/dist/actions/event-type-update.cjs.map +1 -1
- package/dist/actions/event-type-update.d.cts +18 -3
- package/dist/actions/event-type-update.d.cts.map +1 -1
- package/dist/actions/event-type-update.d.mts +18 -3
- package/dist/actions/event-type-update.d.mts.map +1 -1
- package/dist/actions/event-type-update.mjs +1 -1
- package/dist/actions/event-type-update.mjs.map +1 -1
- package/dist/actions/get-event-types.cjs +3 -3
- package/dist/actions/get-event-types.cjs.map +1 -1
- package/dist/actions/get-event-types.d.cts +14 -3
- package/dist/actions/get-event-types.d.cts.map +1 -1
- package/dist/actions/get-event-types.d.mts +14 -3
- package/dist/actions/get-event-types.d.mts.map +1 -1
- package/dist/actions/get-event-types.mjs +3 -3
- package/dist/actions/get-event-types.mjs.map +1 -1
- package/dist/actions/get-spondyr-status.cjs +14 -14
- package/dist/actions/get-spondyr-status.cjs.map +1 -1
- package/dist/actions/get-spondyr-status.d.cts +59 -3
- package/dist/actions/get-spondyr-status.d.cts.map +1 -1
- package/dist/actions/get-spondyr-status.d.mts +59 -3
- package/dist/actions/get-spondyr-status.d.mts.map +1 -1
- package/dist/actions/get-spondyr-status.mjs +14 -14
- package/dist/actions/get-spondyr-status.mjs.map +1 -1
- package/dist/actions/get-transaction-types.cjs +4 -4
- package/dist/actions/get-transaction-types.cjs.map +1 -1
- package/dist/actions/get-transaction-types.d.cts +11 -3
- package/dist/actions/get-transaction-types.d.cts.map +1 -1
- package/dist/actions/get-transaction-types.d.mts +11 -3
- package/dist/actions/get-transaction-types.d.mts.map +1 -1
- package/dist/actions/get-transaction-types.mjs +4 -4
- package/dist/actions/get-transaction-types.mjs.map +1 -1
- package/dist/actions/recipient-delete.cjs +1 -1
- package/dist/actions/recipient-delete.cjs.map +1 -1
- package/dist/actions/recipient-delete.d.cts +15 -3
- package/dist/actions/recipient-delete.d.cts.map +1 -1
- package/dist/actions/recipient-delete.d.mts +15 -3
- package/dist/actions/recipient-delete.d.mts.map +1 -1
- package/dist/actions/recipient-delete.mjs +1 -1
- package/dist/actions/recipient-delete.mjs.map +1 -1
- package/dist/actions/recipient-get.cjs +3 -3
- package/dist/actions/recipient-get.cjs.map +1 -1
- package/dist/actions/recipient-get.d.cts +28 -3
- package/dist/actions/recipient-get.d.cts.map +1 -1
- package/dist/actions/recipient-get.d.mts +28 -3
- package/dist/actions/recipient-get.d.mts.map +1 -1
- package/dist/actions/recipient-get.mjs +3 -3
- package/dist/actions/recipient-get.mjs.map +1 -1
- package/dist/actions/recipients-list.cjs +3 -3
- package/dist/actions/recipients-list.cjs.map +1 -1
- package/dist/actions/recipients-list.d.cts +25 -3
- package/dist/actions/recipients-list.d.cts.map +1 -1
- package/dist/actions/recipients-list.d.mts +25 -3
- package/dist/actions/recipients-list.d.mts.map +1 -1
- package/dist/actions/recipients-list.mjs +3 -3
- package/dist/actions/recipients-list.mjs.map +1 -1
- package/dist/actions/search-filter-create.cjs +1 -1
- package/dist/actions/search-filter-create.cjs.map +1 -1
- package/dist/actions/search-filter-create.d.cts +18 -3
- package/dist/actions/search-filter-create.d.cts.map +1 -1
- package/dist/actions/search-filter-create.d.mts +18 -3
- package/dist/actions/search-filter-create.d.mts.map +1 -1
- package/dist/actions/search-filter-create.mjs +1 -1
- package/dist/actions/search-filter-create.mjs.map +1 -1
- package/dist/actions/search-filter-delete.cjs +1 -1
- package/dist/actions/search-filter-delete.cjs.map +1 -1
- package/dist/actions/search-filter-delete.d.cts +15 -3
- package/dist/actions/search-filter-delete.d.cts.map +1 -1
- package/dist/actions/search-filter-delete.d.mts +15 -3
- package/dist/actions/search-filter-delete.d.mts.map +1 -1
- package/dist/actions/search-filter-delete.mjs +1 -1
- package/dist/actions/search-filter-delete.mjs.map +1 -1
- package/dist/actions/search-filter-get.cjs +1 -1
- package/dist/actions/search-filter-get.cjs.map +1 -1
- package/dist/actions/search-filter-get.d.cts +18 -3
- package/dist/actions/search-filter-get.d.cts.map +1 -1
- package/dist/actions/search-filter-get.d.mts +18 -3
- package/dist/actions/search-filter-get.d.mts.map +1 -1
- package/dist/actions/search-filter-get.mjs +1 -1
- package/dist/actions/search-filter-get.mjs.map +1 -1
- package/dist/actions/search-filters-list.cjs +4 -4
- package/dist/actions/search-filters-list.cjs.map +1 -1
- package/dist/actions/search-filters-list.d.cts +18 -3
- package/dist/actions/search-filters-list.d.cts.map +1 -1
- package/dist/actions/search-filters-list.d.mts +18 -3
- package/dist/actions/search-filters-list.d.mts.map +1 -1
- package/dist/actions/search-filters-list.mjs +4 -4
- package/dist/actions/search-filters-list.mjs.map +1 -1
- package/dist/actions/search-spondyrs.cjs +24 -24
- package/dist/actions/search-spondyrs.cjs.map +1 -1
- package/dist/actions/search-spondyrs.d.cts +61 -3
- package/dist/actions/search-spondyrs.d.cts.map +1 -1
- package/dist/actions/search-spondyrs.d.mts +61 -3
- package/dist/actions/search-spondyrs.d.mts.map +1 -1
- package/dist/actions/search-spondyrs.mjs +24 -24
- package/dist/actions/search-spondyrs.mjs.map +1 -1
- package/dist/actions/sso-stub.cjs +2 -2
- package/dist/actions/sso-stub.cjs.map +1 -1
- package/dist/actions/sso-stub.d.cts +29 -3
- package/dist/actions/sso-stub.d.cts.map +1 -1
- package/dist/actions/sso-stub.d.mts +29 -3
- package/dist/actions/sso-stub.d.mts.map +1 -1
- package/dist/actions/sso-stub.mjs +2 -2
- package/dist/actions/sso-stub.mjs.map +1 -1
- package/dist/actions/template-get.cjs +16 -16
- package/dist/actions/template-get.cjs.map +1 -1
- package/dist/actions/template-get.d.cts +71 -3
- package/dist/actions/template-get.d.cts.map +1 -1
- package/dist/actions/template-get.d.mts +71 -3
- package/dist/actions/template-get.d.mts.map +1 -1
- package/dist/actions/template-get.mjs +16 -16
- package/dist/actions/template-get.mjs.map +1 -1
- package/dist/actions/templates-list.cjs +12 -12
- package/dist/actions/templates-list.cjs.map +1 -1
- package/dist/actions/templates-list.d.cts +46 -3
- package/dist/actions/templates-list.d.cts.map +1 -1
- package/dist/actions/templates-list.d.mts +46 -3
- package/dist/actions/templates-list.d.mts.map +1 -1
- package/dist/actions/templates-list.mjs +12 -12
- package/dist/actions/templates-list.mjs.map +1 -1
- package/dist/actions/transaction-type-get.cjs +1 -1
- package/dist/actions/transaction-type-get.cjs.map +1 -1
- package/dist/actions/transaction-type-get.d.cts +16 -3
- package/dist/actions/transaction-type-get.d.cts.map +1 -1
- package/dist/actions/transaction-type-get.d.mts +16 -3
- package/dist/actions/transaction-type-get.d.mts.map +1 -1
- package/dist/actions/transaction-type-get.mjs +1 -1
- package/dist/actions/transaction-type-get.mjs.map +1 -1
- package/dist/actions/transaction-type-update.cjs +2 -2
- package/dist/actions/transaction-type-update.cjs.map +1 -1
- package/dist/actions/transaction-type-update.d.cts +18 -3
- package/dist/actions/transaction-type-update.d.cts.map +1 -1
- package/dist/actions/transaction-type-update.d.mts +18 -3
- package/dist/actions/transaction-type-update.d.mts.map +1 -1
- package/dist/actions/transaction-type-update.mjs +2 -2
- package/dist/actions/transaction-type-update.mjs.map +1 -1
- package/dist/catalog.cjs +14 -1
- package/dist/catalog.cjs.map +1 -1
- package/dist/catalog.d.cts +13 -0
- package/dist/catalog.d.mts +13 -0
- package/dist/catalog.mjs +14 -1
- package/dist/catalog.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -6,8 +6,8 @@ const SpondyrTemplateGetInput = zod.z.object({
|
|
|
6
6
|
TransactionType: zod.z.string().describe("The name of the Transaction Type this template belongs to. Use the 'Get Transaction Types' action to discover available transaction types.")
|
|
7
7
|
}).describe("Request model for retrieving a specific template.");
|
|
8
8
|
const SpondyrTemplateGet_TemplateGetResponseConditionSchema = zod.z.object({
|
|
9
|
-
Name: zod.z.string().describe("The name of the condition."),
|
|
10
|
-
CompareValue: zod.z.string().describe("The value(s) for the condition, newline delimited if multiple."),
|
|
9
|
+
Name: zod.z.string().describe("The name of the condition.").nullable(),
|
|
10
|
+
CompareValue: zod.z.string().describe("The value(s) for the condition, newline delimited if multiple.").nullable(),
|
|
11
11
|
CompareOperator: zod.z.enum([
|
|
12
12
|
"=",
|
|
13
13
|
">",
|
|
@@ -15,11 +15,11 @@ const SpondyrTemplateGet_TemplateGetResponseConditionSchema = zod.z.object({
|
|
|
15
15
|
">=",
|
|
16
16
|
"<=",
|
|
17
17
|
"<>"
|
|
18
|
-
]).describe("Comparison operator for the condition."),
|
|
19
|
-
LogicalOperator: zod.z.enum(["AND", "OR"]).describe("Logical operator for the condition.")
|
|
18
|
+
]).describe("Comparison operator for the condition.").nullable(),
|
|
19
|
+
LogicalOperator: zod.z.enum(["AND", "OR"]).describe("Logical operator for the condition.").nullable()
|
|
20
20
|
});
|
|
21
21
|
const SpondyrTemplateGet_TemplateGetResponseSignerSchema = zod.z.object({
|
|
22
|
-
Name: zod.z.string().describe("The name of the signer."),
|
|
22
|
+
Name: zod.z.string().describe("The name of the signer.").nullable(),
|
|
23
23
|
Role: zod.z.enum([
|
|
24
24
|
"Signer",
|
|
25
25
|
"Agent",
|
|
@@ -28,11 +28,11 @@ const SpondyrTemplateGet_TemplateGetResponseSignerSchema = zod.z.object({
|
|
|
28
28
|
"Editor",
|
|
29
29
|
"In Person Signer",
|
|
30
30
|
"Intermediary"
|
|
31
|
-
]).describe("The role of the signer."),
|
|
32
|
-
Email: zod.z.string().describe("The email address of the signer.")
|
|
31
|
+
]).describe("The role of the signer.").nullable(),
|
|
32
|
+
Email: zod.z.string().describe("The email address of the signer.").nullable()
|
|
33
33
|
});
|
|
34
34
|
const SpondyrTemplateGet_TemplateGetResponseRecipientSchema = zod.z.object({
|
|
35
|
-
Name: zod.z.string().describe("The recipient's name."),
|
|
35
|
+
Name: zod.z.string().describe("The recipient's name.").nullable(),
|
|
36
36
|
Signers: zod.z.array(SpondyrTemplateGet_TemplateGetResponseSignerSchema).describe("Optional list of signers when delivery method is DocuSign.").nullable().optional(),
|
|
37
37
|
TextBody: zod.z.string().describe("Optional text message body when delivery method is Text.").nullable().optional(),
|
|
38
38
|
EmailBody: zod.z.string().describe("Optional email body when delivery method is Email.").nullable().optional(),
|
|
@@ -41,17 +41,17 @@ const SpondyrTemplateGet_TemplateGetResponseRecipientSchema = zod.z.object({
|
|
|
41
41
|
MailFromCity: zod.z.string().describe("Optional mail from city when delivery method is Mail.").nullable().optional(),
|
|
42
42
|
MailFromName: zod.z.string().describe("Optional mail from name when delivery method is Mail.").nullable().optional(),
|
|
43
43
|
MailFromState: zod.z.string().describe("Optional mail from state when delivery method is Mail.").nullable().optional(),
|
|
44
|
-
DeliveryMethod: zod.z.string().describe("The delivery method for the recipient."),
|
|
44
|
+
DeliveryMethod: zod.z.string().describe("The delivery method for the recipient.").nullable(),
|
|
45
45
|
EmailFromAddress: zod.z.string().describe("Optional from email address when delivery method is Email.").nullable().optional(),
|
|
46
46
|
MailFromAddress1: zod.z.string().describe("Optional mail from address1 when delivery method is Mail.").nullable().optional(),
|
|
47
47
|
MailFromAddress2: zod.z.string().describe("Optional mail from address2 when delivery method is Mail.").nullable().optional(),
|
|
48
48
|
DestinationFolder: zod.z.string().describe("Optional destination folder for destination recipients.").nullable().optional()
|
|
49
49
|
});
|
|
50
50
|
const SpondyrTemplateGetOutput = zod.z.object({
|
|
51
|
-
Name: zod.z.string().describe("The name of the Template."),
|
|
51
|
+
Name: zod.z.string().describe("The name of the Template.").nullable(),
|
|
52
52
|
Searches: zod.z.array(zod.z.string()).describe("Names of search filters associated with this template for document retrieval and organization."),
|
|
53
|
-
APIStatus: zod.z.enum(["OK", "ERROR"]).describe("OK if successful; ERROR otherwise."),
|
|
54
|
-
EventType: zod.z.string().describe("The event type that triggers this template (e.g., 'OnCreate', 'OnUpdate', 'OnDelete')."),
|
|
53
|
+
APIStatus: zod.z.enum(["OK", "ERROR"]).describe("OK if successful; ERROR otherwise.").nullable(),
|
|
54
|
+
EventType: zod.z.string().describe("The event type that triggers this template (e.g., 'OnCreate', 'OnUpdate', 'OnDelete').").nullable(),
|
|
55
55
|
Conditions: zod.z.array(SpondyrTemplateGet_TemplateGetResponseConditionSchema).describe("Conditional logic rules that determine when this template should be selected for correspondence generation based on transaction data."),
|
|
56
56
|
Recipients: zod.z.array(SpondyrTemplateGet_TemplateGetResponseRecipientSchema).describe("List of recipients configured for this template, including delivery methods (Email, Mail, Text, DocuSign, Fax, or Destination)."),
|
|
57
57
|
ContentType: zod.z.enum([
|
|
@@ -59,11 +59,11 @@ const SpondyrTemplateGetOutput = zod.z.object({
|
|
|
59
59
|
"DOC",
|
|
60
60
|
"HTML",
|
|
61
61
|
"TEXT"
|
|
62
|
-
]).describe("The document format of the template content (PDF, DOC, HTML, or TEXT)."),
|
|
62
|
+
]).describe("The document format of the template content (PDF, DOC, HTML, or TEXT).").nullable(),
|
|
63
63
|
ErrorMessage: zod.z.string().describe("Error message if retrieval failed.").nullable().optional(),
|
|
64
|
-
TemplateContent: zod.z.string().describe("Base64-encoded template content (the actual document/file content)."),
|
|
65
|
-
TransactionType: zod.z.string().describe("The Transaction Type name this Template is for."),
|
|
66
|
-
TemplateContentReferenceID: zod.z.string().describe("Unique reference ID for the uploaded template content file. Use this ID when generating correspondence.")
|
|
64
|
+
TemplateContent: zod.z.string().describe("Base64-encoded template content (the actual document/file content).").nullable(),
|
|
65
|
+
TransactionType: zod.z.string().describe("The Transaction Type name this Template is for.").nullable(),
|
|
66
|
+
TemplateContentReferenceID: zod.z.string().describe("Unique reference ID for the uploaded template content file. Use this ID when generating correspondence.").nullable()
|
|
67
67
|
});
|
|
68
68
|
const spondyrTemplateGet = require_action.action("SPONDYR_TEMPLATE_GET", {
|
|
69
69
|
slug: "spondyr-template-get",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"template-get.cjs","names":["z","action"],"sources":["../../src/actions/template-get.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpondyrTemplateGetInput
|
|
1
|
+
{"version":3,"file":"template-get.cjs","names":["z","action"],"sources":["../../src/actions/template-get.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpondyrTemplateGetInput = z.object({\n Template: z.string().describe(\"The name of the template to retrieve. Use the 'List Templates' action first to discover available template names for the transaction type.\"),\n TransactionType: z.string().describe(\"The name of the Transaction Type this template belongs to. Use the 'Get Transaction Types' action to discover available transaction types.\"),\n}).describe(\"Request model for retrieving a specific template.\");\nconst SpondyrTemplateGet_TemplateGetResponseConditionSchema = z.object({\n Name: z.string().describe(\"The name of the condition.\").nullable(),\n CompareValue: z.string().describe(\"The value(s) for the condition, newline delimited if multiple.\").nullable(),\n CompareOperator: z.enum([\"=\", \">\", \"<\", \">=\", \"<=\", \"<>\"]).describe(\"Comparison operator for the condition.\").nullable(),\n LogicalOperator: z.enum([\"AND\", \"OR\"]).describe(\"Logical operator for the condition.\").nullable(),\n});\nconst SpondyrTemplateGet_TemplateGetResponseSignerSchema = z.object({\n Name: z.string().describe(\"The name of the signer.\").nullable(),\n Role: z.enum([\"Signer\", \"Agent\", \"CC\", \"Certified Delivery\", \"Editor\", \"In Person Signer\", \"Intermediary\"]).describe(\"The role of the signer.\").nullable(),\n Email: z.string().describe(\"The email address of the signer.\").nullable(),\n});\nconst SpondyrTemplateGet_TemplateGetResponseRecipientSchema = z.object({\n Name: z.string().describe(\"The recipient's name.\").nullable(),\n Signers: z.array(SpondyrTemplateGet_TemplateGetResponseSignerSchema).describe(\"Optional list of signers when delivery method is DocuSign.\").nullable().optional(),\n TextBody: z.string().describe(\"Optional text message body when delivery method is Text.\").nullable().optional(),\n EmailBody: z.string().describe(\"Optional email body when delivery method is Email.\").nullable().optional(),\n MailFromZip: z.string().describe(\"Optional mail from zip when delivery method is Mail.\").nullable().optional(),\n EmailSubject: z.string().describe(\"Optional email subject when delivery method is Email or DocuSign.\").nullable().optional(),\n MailFromCity: z.string().describe(\"Optional mail from city when delivery method is Mail.\").nullable().optional(),\n MailFromName: z.string().describe(\"Optional mail from name when delivery method is Mail.\").nullable().optional(),\n MailFromState: z.string().describe(\"Optional mail from state when delivery method is Mail.\").nullable().optional(),\n DeliveryMethod: z.string().describe(\"The delivery method for the recipient.\").nullable(),\n EmailFromAddress: z.string().describe(\"Optional from email address when delivery method is Email.\").nullable().optional(),\n MailFromAddress1: z.string().describe(\"Optional mail from address1 when delivery method is Mail.\").nullable().optional(),\n MailFromAddress2: z.string().describe(\"Optional mail from address2 when delivery method is Mail.\").nullable().optional(),\n DestinationFolder: z.string().describe(\"Optional destination folder for destination recipients.\").nullable().optional(),\n});\nexport const SpondyrTemplateGetOutput = z.object({\n Name: z.string().describe(\"The name of the Template.\").nullable(),\n Searches: z.array(z.string()).describe(\"Names of search filters associated with this template for document retrieval and organization.\"),\n APIStatus: z.enum([\"OK\", \"ERROR\"]).describe(\"OK if successful; ERROR otherwise.\").nullable(),\n EventType: z.string().describe(\"The event type that triggers this template (e.g., 'OnCreate', 'OnUpdate', 'OnDelete').\").nullable(),\n Conditions: z.array(SpondyrTemplateGet_TemplateGetResponseConditionSchema).describe(\"Conditional logic rules that determine when this template should be selected for correspondence generation based on transaction data.\"),\n Recipients: z.array(SpondyrTemplateGet_TemplateGetResponseRecipientSchema).describe(\"List of recipients configured for this template, including delivery methods (Email, Mail, Text, DocuSign, Fax, or Destination).\"),\n ContentType: z.enum([\"PDF\", \"DOC\", \"HTML\", \"TEXT\"]).describe(\"The document format of the template content (PDF, DOC, HTML, or TEXT).\").nullable(),\n ErrorMessage: z.string().describe(\"Error message if retrieval failed.\").nullable().optional(),\n TemplateContent: z.string().describe(\"Base64-encoded template content (the actual document/file content).\").nullable(),\n TransactionType: z.string().describe(\"The Transaction Type name this Template is for.\").nullable(),\n TemplateContentReferenceID: z.string().describe(\"Unique reference ID for the uploaded template content file. Use this ID when generating correspondence.\").nullable(),\n});\n\nexport const spondyrTemplateGet = action(\"SPONDYR_TEMPLATE_GET\", {\n slug: \"spondyr-template-get\",\n name: \"Get Template\",\n description: \"Retrieve detailed configuration for a specific correspondence template. Returns template content reference ID, event type, recipients, delivery methods, conditions, and search filters. Use this action when you need to: - Inspect template settings and configuration - View recipient delivery methods (Email, Mail, Text, DocuSign, Fax, Destination) - Review template selection conditions and search filters - Get the template content reference ID for correspondence generation Prerequisites: Use 'Get Transaction Types' to discover transaction types, then 'List Templates' to find available template names. Example: Retrieve template 'OrderConfirmationEmail' for transaction type 'CustomerOrder'.\",\n input: SpondyrTemplateGetInput,\n output: SpondyrTemplateGetOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0BA,IAAAA,EAAE,OAAO;CAC9C,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4IAA4I;CAC1K,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4IAA4I;AACnL,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAC/D,MAAM,wDAAwDA,IAAAA,EAAE,OAAO;CACrE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACjE,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;CAC7G,iBAAiBA,IAAAA,EAAE,KAAK;EAAC;EAAK;EAAK;EAAK;EAAM;EAAM;CAAI,CAAC,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CACvH,iBAAiBA,IAAAA,EAAE,KAAK,CAAC,OAAO,IAAI,CAAC,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;AAClG,CAAC;AACD,MAAM,qDAAqDA,IAAAA,EAAE,OAAO;CAClE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CAC9D,MAAMA,IAAAA,EAAE,KAAK;EAAC;EAAU;EAAS;EAAM;EAAsB;EAAU;EAAoB;CAAc,CAAC,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CACzJ,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;AAC1E,CAAC;AACD,MAAM,wDAAwDA,IAAAA,EAAE,OAAO;CACrE,MAAMA,IAAAA,EAAE,OAAO,CA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|
//#region src/actions/template-get.d.ts
|
|
4
|
-
declare const SpondyrTemplateGetInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const SpondyrTemplateGetInput: z.ZodObject<{
|
|
5
|
+
Template: z.ZodString;
|
|
6
|
+
TransactionType: z.ZodString;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
declare const SpondyrTemplateGetOutput: z.ZodObject<{
|
|
9
|
+
Name: z.ZodNullable<z.ZodString>;
|
|
10
|
+
Searches: z.ZodArray<z.ZodString>;
|
|
11
|
+
APIStatus: z.ZodNullable<z.ZodEnum<{
|
|
12
|
+
OK: "OK";
|
|
13
|
+
ERROR: "ERROR";
|
|
14
|
+
}>>;
|
|
15
|
+
EventType: z.ZodNullable<z.ZodString>;
|
|
16
|
+
Conditions: z.ZodArray<z.ZodObject<{
|
|
17
|
+
Name: z.ZodNullable<z.ZodString>;
|
|
18
|
+
CompareValue: z.ZodNullable<z.ZodString>;
|
|
19
|
+
CompareOperator: z.ZodNullable<z.ZodEnum<{
|
|
20
|
+
"=": "=";
|
|
21
|
+
">": ">";
|
|
22
|
+
"<": "<";
|
|
23
|
+
">=": ">=";
|
|
24
|
+
"<=": "<=";
|
|
25
|
+
"<>": "<>";
|
|
26
|
+
}>>;
|
|
27
|
+
LogicalOperator: z.ZodNullable<z.ZodEnum<{
|
|
28
|
+
AND: "AND";
|
|
29
|
+
OR: "OR";
|
|
30
|
+
}>>;
|
|
31
|
+
}, z.core.$strip>>;
|
|
32
|
+
Recipients: z.ZodArray<z.ZodObject<{
|
|
33
|
+
Name: z.ZodNullable<z.ZodString>;
|
|
34
|
+
Signers: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
35
|
+
Name: z.ZodNullable<z.ZodString>;
|
|
36
|
+
Role: z.ZodNullable<z.ZodEnum<{
|
|
37
|
+
Signer: "Signer";
|
|
38
|
+
Agent: "Agent";
|
|
39
|
+
CC: "CC";
|
|
40
|
+
"Certified Delivery": "Certified Delivery";
|
|
41
|
+
Editor: "Editor";
|
|
42
|
+
"In Person Signer": "In Person Signer";
|
|
43
|
+
Intermediary: "Intermediary";
|
|
44
|
+
}>>;
|
|
45
|
+
Email: z.ZodNullable<z.ZodString>;
|
|
46
|
+
}, z.core.$strip>>>>;
|
|
47
|
+
TextBody: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
48
|
+
EmailBody: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
49
|
+
MailFromZip: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
50
|
+
EmailSubject: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
51
|
+
MailFromCity: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
52
|
+
MailFromName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
53
|
+
MailFromState: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
54
|
+
DeliveryMethod: z.ZodNullable<z.ZodString>;
|
|
55
|
+
EmailFromAddress: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
56
|
+
MailFromAddress1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
57
|
+
MailFromAddress2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
58
|
+
DestinationFolder: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
59
|
+
}, z.core.$strip>>;
|
|
60
|
+
ContentType: z.ZodNullable<z.ZodEnum<{
|
|
61
|
+
PDF: "PDF";
|
|
62
|
+
DOC: "DOC";
|
|
63
|
+
HTML: "HTML";
|
|
64
|
+
TEXT: "TEXT";
|
|
65
|
+
}>>;
|
|
66
|
+
ErrorMessage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
67
|
+
TemplateContent: z.ZodNullable<z.ZodString>;
|
|
68
|
+
TransactionType: z.ZodNullable<z.ZodString>;
|
|
69
|
+
TemplateContentReferenceID: z.ZodNullable<z.ZodString>;
|
|
70
|
+
}, z.core.$strip>;
|
|
71
|
+
declare const spondyrTemplateGet: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
72
|
+
Template: string;
|
|
73
|
+
TransactionType: string;
|
|
74
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
75
|
//#endregion
|
|
8
76
|
export { spondyrTemplateGet };
|
|
9
77
|
//# sourceMappingURL=template-get.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"template-get.d.cts","names":[],"sources":["../../src/actions/template-get.ts"],"mappings":";;;cAIa,uBAAA,
|
|
1
|
+
{"version":3,"file":"template-get.d.cts","names":[],"sources":["../../src/actions/template-get.ts"],"mappings":";;;cAIa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;cA+BvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAcxB,kBAAA,gCAAkB,wBAAA"}
|
|
@@ -1,9 +1,77 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/template-get.d.ts
|
|
4
|
-
declare const SpondyrTemplateGetInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const SpondyrTemplateGetInput: z.ZodObject<{
|
|
5
|
+
Template: z.ZodString;
|
|
6
|
+
TransactionType: z.ZodString;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
declare const SpondyrTemplateGetOutput: z.ZodObject<{
|
|
9
|
+
Name: z.ZodNullable<z.ZodString>;
|
|
10
|
+
Searches: z.ZodArray<z.ZodString>;
|
|
11
|
+
APIStatus: z.ZodNullable<z.ZodEnum<{
|
|
12
|
+
OK: "OK";
|
|
13
|
+
ERROR: "ERROR";
|
|
14
|
+
}>>;
|
|
15
|
+
EventType: z.ZodNullable<z.ZodString>;
|
|
16
|
+
Conditions: z.ZodArray<z.ZodObject<{
|
|
17
|
+
Name: z.ZodNullable<z.ZodString>;
|
|
18
|
+
CompareValue: z.ZodNullable<z.ZodString>;
|
|
19
|
+
CompareOperator: z.ZodNullable<z.ZodEnum<{
|
|
20
|
+
"=": "=";
|
|
21
|
+
">": ">";
|
|
22
|
+
"<": "<";
|
|
23
|
+
">=": ">=";
|
|
24
|
+
"<=": "<=";
|
|
25
|
+
"<>": "<>";
|
|
26
|
+
}>>;
|
|
27
|
+
LogicalOperator: z.ZodNullable<z.ZodEnum<{
|
|
28
|
+
AND: "AND";
|
|
29
|
+
OR: "OR";
|
|
30
|
+
}>>;
|
|
31
|
+
}, z.core.$strip>>;
|
|
32
|
+
Recipients: z.ZodArray<z.ZodObject<{
|
|
33
|
+
Name: z.ZodNullable<z.ZodString>;
|
|
34
|
+
Signers: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
35
|
+
Name: z.ZodNullable<z.ZodString>;
|
|
36
|
+
Role: z.ZodNullable<z.ZodEnum<{
|
|
37
|
+
Signer: "Signer";
|
|
38
|
+
Agent: "Agent";
|
|
39
|
+
CC: "CC";
|
|
40
|
+
"Certified Delivery": "Certified Delivery";
|
|
41
|
+
Editor: "Editor";
|
|
42
|
+
"In Person Signer": "In Person Signer";
|
|
43
|
+
Intermediary: "Intermediary";
|
|
44
|
+
}>>;
|
|
45
|
+
Email: z.ZodNullable<z.ZodString>;
|
|
46
|
+
}, z.core.$strip>>>>;
|
|
47
|
+
TextBody: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
48
|
+
EmailBody: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
49
|
+
MailFromZip: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
50
|
+
EmailSubject: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
51
|
+
MailFromCity: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
52
|
+
MailFromName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
53
|
+
MailFromState: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
54
|
+
DeliveryMethod: z.ZodNullable<z.ZodString>;
|
|
55
|
+
EmailFromAddress: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
56
|
+
MailFromAddress1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
57
|
+
MailFromAddress2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
58
|
+
DestinationFolder: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
59
|
+
}, z.core.$strip>>;
|
|
60
|
+
ContentType: z.ZodNullable<z.ZodEnum<{
|
|
61
|
+
PDF: "PDF";
|
|
62
|
+
DOC: "DOC";
|
|
63
|
+
HTML: "HTML";
|
|
64
|
+
TEXT: "TEXT";
|
|
65
|
+
}>>;
|
|
66
|
+
ErrorMessage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
67
|
+
TemplateContent: z.ZodNullable<z.ZodString>;
|
|
68
|
+
TransactionType: z.ZodNullable<z.ZodString>;
|
|
69
|
+
TemplateContentReferenceID: z.ZodNullable<z.ZodString>;
|
|
70
|
+
}, z.core.$strip>;
|
|
71
|
+
declare const spondyrTemplateGet: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
72
|
+
Template: string;
|
|
73
|
+
TransactionType: string;
|
|
74
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
75
|
//#endregion
|
|
8
76
|
export { spondyrTemplateGet };
|
|
9
77
|
//# sourceMappingURL=template-get.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"template-get.d.mts","names":[],"sources":["../../src/actions/template-get.ts"],"mappings":";;;cAIa,uBAAA,
|
|
1
|
+
{"version":3,"file":"template-get.d.mts","names":[],"sources":["../../src/actions/template-get.ts"],"mappings":";;;cAIa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;cA+BvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAcxB,kBAAA,gCAAkB,wBAAA"}
|
|
@@ -6,8 +6,8 @@ const SpondyrTemplateGetInput = z.object({
|
|
|
6
6
|
TransactionType: z.string().describe("The name of the Transaction Type this template belongs to. Use the 'Get Transaction Types' action to discover available transaction types.")
|
|
7
7
|
}).describe("Request model for retrieving a specific template.");
|
|
8
8
|
const SpondyrTemplateGet_TemplateGetResponseConditionSchema = z.object({
|
|
9
|
-
Name: z.string().describe("The name of the condition."),
|
|
10
|
-
CompareValue: z.string().describe("The value(s) for the condition, newline delimited if multiple."),
|
|
9
|
+
Name: z.string().describe("The name of the condition.").nullable(),
|
|
10
|
+
CompareValue: z.string().describe("The value(s) for the condition, newline delimited if multiple.").nullable(),
|
|
11
11
|
CompareOperator: z.enum([
|
|
12
12
|
"=",
|
|
13
13
|
">",
|
|
@@ -15,11 +15,11 @@ const SpondyrTemplateGet_TemplateGetResponseConditionSchema = z.object({
|
|
|
15
15
|
">=",
|
|
16
16
|
"<=",
|
|
17
17
|
"<>"
|
|
18
|
-
]).describe("Comparison operator for the condition."),
|
|
19
|
-
LogicalOperator: z.enum(["AND", "OR"]).describe("Logical operator for the condition.")
|
|
18
|
+
]).describe("Comparison operator for the condition.").nullable(),
|
|
19
|
+
LogicalOperator: z.enum(["AND", "OR"]).describe("Logical operator for the condition.").nullable()
|
|
20
20
|
});
|
|
21
21
|
const SpondyrTemplateGet_TemplateGetResponseSignerSchema = z.object({
|
|
22
|
-
Name: z.string().describe("The name of the signer."),
|
|
22
|
+
Name: z.string().describe("The name of the signer.").nullable(),
|
|
23
23
|
Role: z.enum([
|
|
24
24
|
"Signer",
|
|
25
25
|
"Agent",
|
|
@@ -28,11 +28,11 @@ const SpondyrTemplateGet_TemplateGetResponseSignerSchema = z.object({
|
|
|
28
28
|
"Editor",
|
|
29
29
|
"In Person Signer",
|
|
30
30
|
"Intermediary"
|
|
31
|
-
]).describe("The role of the signer."),
|
|
32
|
-
Email: z.string().describe("The email address of the signer.")
|
|
31
|
+
]).describe("The role of the signer.").nullable(),
|
|
32
|
+
Email: z.string().describe("The email address of the signer.").nullable()
|
|
33
33
|
});
|
|
34
34
|
const SpondyrTemplateGet_TemplateGetResponseRecipientSchema = z.object({
|
|
35
|
-
Name: z.string().describe("The recipient's name."),
|
|
35
|
+
Name: z.string().describe("The recipient's name.").nullable(),
|
|
36
36
|
Signers: z.array(SpondyrTemplateGet_TemplateGetResponseSignerSchema).describe("Optional list of signers when delivery method is DocuSign.").nullable().optional(),
|
|
37
37
|
TextBody: z.string().describe("Optional text message body when delivery method is Text.").nullable().optional(),
|
|
38
38
|
EmailBody: z.string().describe("Optional email body when delivery method is Email.").nullable().optional(),
|
|
@@ -41,7 +41,7 @@ const SpondyrTemplateGet_TemplateGetResponseRecipientSchema = z.object({
|
|
|
41
41
|
MailFromCity: z.string().describe("Optional mail from city when delivery method is Mail.").nullable().optional(),
|
|
42
42
|
MailFromName: z.string().describe("Optional mail from name when delivery method is Mail.").nullable().optional(),
|
|
43
43
|
MailFromState: z.string().describe("Optional mail from state when delivery method is Mail.").nullable().optional(),
|
|
44
|
-
DeliveryMethod: z.string().describe("The delivery method for the recipient."),
|
|
44
|
+
DeliveryMethod: z.string().describe("The delivery method for the recipient.").nullable(),
|
|
45
45
|
EmailFromAddress: z.string().describe("Optional from email address when delivery method is Email.").nullable().optional(),
|
|
46
46
|
MailFromAddress1: z.string().describe("Optional mail from address1 when delivery method is Mail.").nullable().optional(),
|
|
47
47
|
MailFromAddress2: z.string().describe("Optional mail from address2 when delivery method is Mail.").nullable().optional(),
|
|
@@ -53,10 +53,10 @@ const spondyrTemplateGet = action("SPONDYR_TEMPLATE_GET", {
|
|
|
53
53
|
description: "Retrieve detailed configuration for a specific correspondence template. Returns template content reference ID, event type, recipients, delivery methods, conditions, and search filters. Use this action when you need to: - Inspect template settings and configuration - View recipient delivery methods (Email, Mail, Text, DocuSign, Fax, Destination) - Review template selection conditions and search filters - Get the template content reference ID for correspondence generation Prerequisites: Use 'Get Transaction Types' to discover transaction types, then 'List Templates' to find available template names. Example: Retrieve template 'OrderConfirmationEmail' for transaction type 'CustomerOrder'.",
|
|
54
54
|
input: SpondyrTemplateGetInput,
|
|
55
55
|
output: z.object({
|
|
56
|
-
Name: z.string().describe("The name of the Template."),
|
|
56
|
+
Name: z.string().describe("The name of the Template.").nullable(),
|
|
57
57
|
Searches: z.array(z.string()).describe("Names of search filters associated with this template for document retrieval and organization."),
|
|
58
|
-
APIStatus: z.enum(["OK", "ERROR"]).describe("OK if successful; ERROR otherwise."),
|
|
59
|
-
EventType: z.string().describe("The event type that triggers this template (e.g., 'OnCreate', 'OnUpdate', 'OnDelete')."),
|
|
58
|
+
APIStatus: z.enum(["OK", "ERROR"]).describe("OK if successful; ERROR otherwise.").nullable(),
|
|
59
|
+
EventType: z.string().describe("The event type that triggers this template (e.g., 'OnCreate', 'OnUpdate', 'OnDelete').").nullable(),
|
|
60
60
|
Conditions: z.array(SpondyrTemplateGet_TemplateGetResponseConditionSchema).describe("Conditional logic rules that determine when this template should be selected for correspondence generation based on transaction data."),
|
|
61
61
|
Recipients: z.array(SpondyrTemplateGet_TemplateGetResponseRecipientSchema).describe("List of recipients configured for this template, including delivery methods (Email, Mail, Text, DocuSign, Fax, or Destination)."),
|
|
62
62
|
ContentType: z.enum([
|
|
@@ -64,11 +64,11 @@ const spondyrTemplateGet = action("SPONDYR_TEMPLATE_GET", {
|
|
|
64
64
|
"DOC",
|
|
65
65
|
"HTML",
|
|
66
66
|
"TEXT"
|
|
67
|
-
]).describe("The document format of the template content (PDF, DOC, HTML, or TEXT)."),
|
|
67
|
+
]).describe("The document format of the template content (PDF, DOC, HTML, or TEXT).").nullable(),
|
|
68
68
|
ErrorMessage: z.string().describe("Error message if retrieval failed.").nullable().optional(),
|
|
69
|
-
TemplateContent: z.string().describe("Base64-encoded template content (the actual document/file content)."),
|
|
70
|
-
TransactionType: z.string().describe("The Transaction Type name this Template is for."),
|
|
71
|
-
TemplateContentReferenceID: z.string().describe("Unique reference ID for the uploaded template content file. Use this ID when generating correspondence.")
|
|
69
|
+
TemplateContent: z.string().describe("Base64-encoded template content (the actual document/file content).").nullable(),
|
|
70
|
+
TransactionType: z.string().describe("The Transaction Type name this Template is for.").nullable(),
|
|
71
|
+
TemplateContentReferenceID: z.string().describe("Unique reference ID for the uploaded template content file. Use this ID when generating correspondence.").nullable()
|
|
72
72
|
})
|
|
73
73
|
});
|
|
74
74
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"template-get.mjs","names":[],"sources":["../../src/actions/template-get.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpondyrTemplateGetInput
|
|
1
|
+
{"version":3,"file":"template-get.mjs","names":[],"sources":["../../src/actions/template-get.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpondyrTemplateGetInput = z.object({\n Template: z.string().describe(\"The name of the template to retrieve. Use the 'List Templates' action first to discover available template names for the transaction type.\"),\n TransactionType: z.string().describe(\"The name of the Transaction Type this template belongs to. Use the 'Get Transaction Types' action to discover available transaction types.\"),\n}).describe(\"Request model for retrieving a specific template.\");\nconst SpondyrTemplateGet_TemplateGetResponseConditionSchema = z.object({\n Name: z.string().describe(\"The name of the condition.\").nullable(),\n CompareValue: z.string().describe(\"The value(s) for the condition, newline delimited if multiple.\").nullable(),\n CompareOperator: z.enum([\"=\", \">\", \"<\", \">=\", \"<=\", \"<>\"]).describe(\"Comparison operator for the condition.\").nullable(),\n LogicalOperator: z.enum([\"AND\", \"OR\"]).describe(\"Logical operator for the condition.\").nullable(),\n});\nconst SpondyrTemplateGet_TemplateGetResponseSignerSchema = z.object({\n Name: z.string().describe(\"The name of the signer.\").nullable(),\n Role: z.enum([\"Signer\", \"Agent\", \"CC\", \"Certified Delivery\", \"Editor\", \"In Person Signer\", \"Intermediary\"]).describe(\"The role of the signer.\").nullable(),\n Email: z.string().describe(\"The email address of the signer.\").nullable(),\n});\nconst SpondyrTemplateGet_TemplateGetResponseRecipientSchema = z.object({\n Name: z.string().describe(\"The recipient's name.\").nullable(),\n Signers: z.array(SpondyrTemplateGet_TemplateGetResponseSignerSchema).describe(\"Optional list of signers when delivery method is DocuSign.\").nullable().optional(),\n TextBody: z.string().describe(\"Optional text message body when delivery method is Text.\").nullable().optional(),\n EmailBody: z.string().describe(\"Optional email body when delivery method is Email.\").nullable().optional(),\n MailFromZip: z.string().describe(\"Optional mail from zip when delivery method is Mail.\").nullable().optional(),\n EmailSubject: z.string().describe(\"Optional email subject when delivery method is Email or DocuSign.\").nullable().optional(),\n MailFromCity: z.string().describe(\"Optional mail from city when delivery method is Mail.\").nullable().optional(),\n MailFromName: z.string().describe(\"Optional mail from name when delivery method is Mail.\").nullable().optional(),\n MailFromState: z.string().describe(\"Optional mail from state when delivery method is Mail.\").nullable().optional(),\n DeliveryMethod: z.string().describe(\"The delivery method for the recipient.\").nullable(),\n EmailFromAddress: z.string().describe(\"Optional from email address when delivery method is Email.\").nullable().optional(),\n MailFromAddress1: z.string().describe(\"Optional mail from address1 when delivery method is Mail.\").nullable().optional(),\n MailFromAddress2: z.string().describe(\"Optional mail from address2 when delivery method is Mail.\").nullable().optional(),\n DestinationFolder: z.string().describe(\"Optional destination folder for destination recipients.\").nullable().optional(),\n});\nexport const SpondyrTemplateGetOutput = z.object({\n Name: z.string().describe(\"The name of the Template.\").nullable(),\n Searches: z.array(z.string()).describe(\"Names of search filters associated with this template for document retrieval and organization.\"),\n APIStatus: z.enum([\"OK\", \"ERROR\"]).describe(\"OK if successful; ERROR otherwise.\").nullable(),\n EventType: z.string().describe(\"The event type that triggers this template (e.g., 'OnCreate', 'OnUpdate', 'OnDelete').\").nullable(),\n Conditions: z.array(SpondyrTemplateGet_TemplateGetResponseConditionSchema).describe(\"Conditional logic rules that determine when this template should be selected for correspondence generation based on transaction data.\"),\n Recipients: z.array(SpondyrTemplateGet_TemplateGetResponseRecipientSchema).describe(\"List of recipients configured for this template, including delivery methods (Email, Mail, Text, DocuSign, Fax, or Destination).\"),\n ContentType: z.enum([\"PDF\", \"DOC\", \"HTML\", \"TEXT\"]).describe(\"The document format of the template content (PDF, DOC, HTML, or TEXT).\").nullable(),\n ErrorMessage: z.string().describe(\"Error message if retrieval failed.\").nullable().optional(),\n TemplateContent: z.string().describe(\"Base64-encoded template content (the actual document/file content).\").nullable(),\n TransactionType: z.string().describe(\"The Transaction Type name this Template is for.\").nullable(),\n TemplateContentReferenceID: z.string().describe(\"Unique reference ID for the uploaded template content file. Use this ID when generating correspondence.\").nullable(),\n});\n\nexport const spondyrTemplateGet = action(\"SPONDYR_TEMPLATE_GET\", {\n slug: \"spondyr-template-get\",\n name: \"Get Template\",\n description: \"Retrieve detailed configuration for a specific correspondence template. Returns template content reference ID, event type, recipients, delivery methods, conditions, and search filters. Use this action when you need to: - Inspect template settings and configuration - View recipient delivery methods (Email, Mail, Text, DocuSign, Fax, Destination) - Review template selection conditions and search filters - Get the template content reference ID for correspondence generation Prerequisites: Use 'Get Transaction Types' to discover transaction types, then 'List Templates' to find available template names. Example: Retrieve template 'OrderConfirmationEmail' for transaction type 'CustomerOrder'.\",\n input: SpondyrTemplateGetInput,\n output: SpondyrTemplateGetOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0B,EAAE,OAAO;CAC9C,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,4IAA4I;CAC1K,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,4IAA4I;AACnL,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAC/D,MAAM,wDAAwD,EAAE,OAAO;CACrE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACjE,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;C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C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5F,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;EACrH,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;EACjG,4BAA4B,EAAE,OAAO,CAAC,CAAC,SAAS,yGAAyG,CAAC,CAAC,SAAS;CACtK,CAOU;AACV,CAAC"}
|
|
@@ -3,8 +3,8 @@ let zod = require("zod");
|
|
|
3
3
|
//#region src/actions/templates-list.ts
|
|
4
4
|
const SpondyrTemplatesListInput = zod.z.object({ TransactionType: zod.z.string().describe("The name of the Transaction Type whose templates are to be listed. Use the Get Transaction Types action first to discover available transaction types.") }).describe("Request model for listing templates associated with a transaction type.");
|
|
5
5
|
const SpondyrTemplatesList_ConditionSummarySchema = zod.z.object({
|
|
6
|
-
Name: zod.z.string().describe("The data field name used in the condition."),
|
|
7
|
-
CompareValue: zod.z.string().describe("The value(s) to compare against, newline-delimited if multiple."),
|
|
6
|
+
Name: zod.z.string().describe("The data field name used in the condition.").nullable(),
|
|
7
|
+
CompareValue: zod.z.string().describe("The value(s) to compare against, newline-delimited if multiple.").nullable(),
|
|
8
8
|
CompareOperator: zod.z.enum([
|
|
9
9
|
"=",
|
|
10
10
|
">",
|
|
@@ -12,17 +12,17 @@ const SpondyrTemplatesList_ConditionSummarySchema = zod.z.object({
|
|
|
12
12
|
">=",
|
|
13
13
|
"<=",
|
|
14
14
|
"<>"
|
|
15
|
-
]).describe("Comparison operator for the condition."),
|
|
16
|
-
LogicalOperator: zod.z.enum(["AND", "OR"]).describe("Logical operator connecting this condition to others.")
|
|
15
|
+
]).describe("Comparison operator for the condition.").nullable(),
|
|
16
|
+
LogicalOperator: zod.z.enum(["AND", "OR"]).describe("Logical operator connecting this condition to others.").nullable()
|
|
17
17
|
}).describe("Summary of a condition defined for template selection.");
|
|
18
18
|
const SpondyrTemplatesList_RecipientSummarySchema = zod.z.object({
|
|
19
|
-
Name: zod.z.string().describe("The recipient's name or identifier."),
|
|
20
|
-
DeliveryMethod: zod.z.string().describe("The delivery method for this recipient (e.g., Email, Mail, Text, DocuSign, Fax, Destination).")
|
|
19
|
+
Name: zod.z.string().describe("The recipient's name or identifier.").nullable(),
|
|
20
|
+
DeliveryMethod: zod.z.string().describe("The delivery method for this recipient (e.g., Email, Mail, Text, DocuSign, Fax, Destination).").nullable()
|
|
21
21
|
}).describe("Summary of a recipient configured for a template.");
|
|
22
22
|
const SpondyrTemplatesList_TemplateItemSchema = zod.z.object({
|
|
23
|
-
Name: zod.z.string().describe("The unique name of the template."),
|
|
23
|
+
Name: zod.z.string().describe("The unique name of the template.").nullable(),
|
|
24
24
|
Searches: zod.z.array(zod.z.string()).describe("Search filter names associated with this template for document retrieval.").nullable().optional(),
|
|
25
|
-
EventType: zod.z.string().describe("The Event Type this template is configured for (e.g., OnCreate, OnUpdate)."),
|
|
25
|
+
EventType: zod.z.string().describe("The Event Type this template is configured for (e.g., OnCreate, OnUpdate).").nullable(),
|
|
26
26
|
Conditions: zod.z.array(SpondyrTemplatesList_ConditionSummarySchema).describe("Conditions that determine when this template is selected for correspondence generation.").nullable().optional(),
|
|
27
27
|
Recipients: zod.z.array(SpondyrTemplatesList_RecipientSummarySchema).describe("List of configured recipients for this template.").nullable().optional(),
|
|
28
28
|
ContentType: zod.z.enum([
|
|
@@ -30,13 +30,13 @@ const SpondyrTemplatesList_TemplateItemSchema = zod.z.object({
|
|
|
30
30
|
"DOC",
|
|
31
31
|
"HTML",
|
|
32
32
|
"TEXT"
|
|
33
|
-
]).describe("Content type of the template document."),
|
|
34
|
-
TransactionType: zod.z.string().describe("The Transaction Type this template belongs to."),
|
|
35
|
-
TemplateContentReferenceID: zod.z.string().describe("Reference ID of the uploaded template content (use TemplateContent API to upload).")
|
|
33
|
+
]).describe("Content type of the template document.").nullable(),
|
|
34
|
+
TransactionType: zod.z.string().describe("The Transaction Type this template belongs to.").nullable(),
|
|
35
|
+
TemplateContentReferenceID: zod.z.string().describe("Reference ID of the uploaded template content (use TemplateContent API to upload).").nullable()
|
|
36
36
|
}).describe("A template configured for a transaction type.");
|
|
37
37
|
const SpondyrTemplatesListOutput = zod.z.object({
|
|
38
38
|
Data: zod.z.array(SpondyrTemplatesList_TemplateItemSchema).describe("List of templates configured for the specified transaction type.").nullable().optional(),
|
|
39
|
-
APIStatus: zod.z.enum(["OK", "ERROR"]).describe("API response status: OK if successful, ERROR otherwise."),
|
|
39
|
+
APIStatus: zod.z.enum(["OK", "ERROR"]).describe("API response status: OK if successful, ERROR otherwise.").nullable(),
|
|
40
40
|
ErrorMessage: zod.z.string().describe("Error message when APIStatus is ERROR.").nullable().optional()
|
|
41
41
|
}).describe("Response containing all templates for a transaction type.");
|
|
42
42
|
const spondyrTemplatesList = require_action.action("SPONDYR_TEMPLATES_LIST", {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"templates-list.cjs","names":["z","action"],"sources":["../../src/actions/templates-list.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpondyrTemplatesListInput
|
|
1
|
+
{"version":3,"file":"templates-list.cjs","names":["z","action"],"sources":["../../src/actions/templates-list.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpondyrTemplatesListInput = z.object({\n TransactionType: z.string().describe(\"The name of the Transaction Type whose templates are to be listed. Use the Get Transaction Types action first to discover available transaction types.\"),\n}).describe(\"Request model for listing templates associated with a transaction type.\");\nconst SpondyrTemplatesList_ConditionSummarySchema = z.object({\n Name: z.string().describe(\"The data field name used in the condition.\").nullable(),\n CompareValue: z.string().describe(\"The value(s) to compare against, newline-delimited if multiple.\").nullable(),\n CompareOperator: z.enum([\"=\", \">\", \"<\", \">=\", \"<=\", \"<>\"]).describe(\"Comparison operator for the condition.\").nullable(),\n LogicalOperator: z.enum([\"AND\", \"OR\"]).describe(\"Logical operator connecting this condition to others.\").nullable(),\n}).describe(\"Summary of a condition defined for template selection.\");\nconst SpondyrTemplatesList_RecipientSummarySchema = z.object({\n Name: z.string().describe(\"The recipient's name or identifier.\").nullable(),\n DeliveryMethod: z.string().describe(\"The delivery method for this recipient (e.g., Email, Mail, Text, DocuSign, Fax, Destination).\").nullable(),\n}).describe(\"Summary of a recipient configured for a template.\");\nconst SpondyrTemplatesList_TemplateItemSchema = z.object({\n Name: z.string().describe(\"The unique name of the template.\").nullable(),\n Searches: z.array(z.string()).describe(\"Search filter names associated with this template for document retrieval.\").nullable().optional(),\n EventType: z.string().describe(\"The Event Type this template is configured for (e.g., OnCreate, OnUpdate).\").nullable(),\n Conditions: z.array(SpondyrTemplatesList_ConditionSummarySchema).describe(\"Conditions that determine when this template is selected for correspondence generation.\").nullable().optional(),\n Recipients: z.array(SpondyrTemplatesList_RecipientSummarySchema).describe(\"List of configured recipients for this template.\").nullable().optional(),\n ContentType: z.enum([\"PDF\", \"DOC\", \"HTML\", \"TEXT\"]).describe(\"Content type of the template document.\").nullable(),\n TransactionType: z.string().describe(\"The Transaction Type this template belongs to.\").nullable(),\n TemplateContentReferenceID: z.string().describe(\"Reference ID of the uploaded template content (use TemplateContent API to upload).\").nullable(),\n}).describe(\"A template configured for a transaction type.\");\nexport const SpondyrTemplatesListOutput = z.object({\n Data: z.array(SpondyrTemplatesList_TemplateItemSchema).describe(\"List of templates configured for the specified transaction type.\").nullable().optional(),\n APIStatus: z.enum([\"OK\", \"ERROR\"]).describe(\"API response status: OK if successful, ERROR otherwise.\").nullable(),\n ErrorMessage: z.string().describe(\"Error message when APIStatus is ERROR.\").nullable().optional(),\n}).describe(\"Response containing all templates for a transaction type.\");\n\nexport const spondyrTemplatesList = action(\"SPONDYR_TEMPLATES_LIST\", {\n slug: \"spondyr-templates-list\",\n name: \"List Templates\",\n description: \"List all templates configured for a transaction type. Use this to discover available templates before generating correspondence or to audit template configurations. Returns template metadata including name, event type, content type, recipients, conditions, and search filters. Use Get Template action to retrieve full template content and detailed configuration.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CACtH,YAAYA,IAAAA,EAAE,MAAM,2CAA2C,CAAC,CAAC,SAAS,yFAAyF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzL,YAAYA,IAAAA,EAAE,MAAM,2CAA2C,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClJ,aAAaA,IAAAA,EAAE,KAAK;EAAC;EAAO;EAAO;EAAQ;CAAM,CAAC,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CAChH,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CAChG,4BAA4BA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oFAAoF,CAAC,CAAC,SAAS;AACjJ,CAAC,CAAC,CAAC,SAAS,+CAA+C;AAC3D,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,MAAMA,IAAAA,EAAE,MAAM,uCAAuC,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxJ,WAAWA,IAAAA,EAAE,KAAK,CAAC,MAAM,OAAO,CAAC,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;CAChH,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAClG,CAAC,CAAC,CAAC,SAAS,2DAA2D;AAEvE,MAAa,uBAAuBC,eAAAA,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,52 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/templates-list.d.ts
|
|
4
|
-
declare const SpondyrTemplatesListInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const SpondyrTemplatesListInput: z.ZodObject<{
|
|
5
|
+
TransactionType: z.ZodString;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
declare const SpondyrTemplatesListOutput: z.ZodObject<{
|
|
8
|
+
Data: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
9
|
+
Name: z.ZodNullable<z.ZodString>;
|
|
10
|
+
Searches: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
11
|
+
EventType: z.ZodNullable<z.ZodString>;
|
|
12
|
+
Conditions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
13
|
+
Name: z.ZodNullable<z.ZodString>;
|
|
14
|
+
CompareValue: z.ZodNullable<z.ZodString>;
|
|
15
|
+
CompareOperator: z.ZodNullable<z.ZodEnum<{
|
|
16
|
+
"=": "=";
|
|
17
|
+
">": ">";
|
|
18
|
+
"<": "<";
|
|
19
|
+
">=": ">=";
|
|
20
|
+
"<=": "<=";
|
|
21
|
+
"<>": "<>";
|
|
22
|
+
}>>;
|
|
23
|
+
LogicalOperator: z.ZodNullable<z.ZodEnum<{
|
|
24
|
+
AND: "AND";
|
|
25
|
+
OR: "OR";
|
|
26
|
+
}>>;
|
|
27
|
+
}, z.core.$strip>>>>;
|
|
28
|
+
Recipients: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
29
|
+
Name: z.ZodNullable<z.ZodString>;
|
|
30
|
+
DeliveryMethod: z.ZodNullable<z.ZodString>;
|
|
31
|
+
}, z.core.$strip>>>>;
|
|
32
|
+
ContentType: z.ZodNullable<z.ZodEnum<{
|
|
33
|
+
PDF: "PDF";
|
|
34
|
+
DOC: "DOC";
|
|
35
|
+
HTML: "HTML";
|
|
36
|
+
TEXT: "TEXT";
|
|
37
|
+
}>>;
|
|
38
|
+
TransactionType: z.ZodNullable<z.ZodString>;
|
|
39
|
+
TemplateContentReferenceID: z.ZodNullable<z.ZodString>;
|
|
40
|
+
}, z.core.$strip>>>>;
|
|
41
|
+
APIStatus: z.ZodNullable<z.ZodEnum<{
|
|
42
|
+
OK: "OK";
|
|
43
|
+
ERROR: "ERROR";
|
|
44
|
+
}>>;
|
|
45
|
+
ErrorMessage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
46
|
+
}, z.core.$strip>;
|
|
47
|
+
declare const spondyrTemplatesList: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
48
|
+
TransactionType: string;
|
|
49
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
50
|
//#endregion
|
|
8
51
|
export { spondyrTemplatesList };
|
|
9
52
|
//# sourceMappingURL=templates-list.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"templates-list.d.cts","names":[],"sources":["../../src/actions/templates-list.ts"],"mappings":";;;cAIa,yBAAA,
|
|
1
|
+
{"version":3,"file":"templates-list.d.cts","names":[],"sources":["../../src/actions/templates-list.ts"],"mappings":";;;cAIa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;cAuBzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAM1B,oBAAA,gCAAoB,wBAAA"}
|