@keystrokehq/spondyr 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/conditions-list.cjs +6 -6
- 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 +6 -6
- package/dist/actions/conditions-list.mjs.map +1 -1
- package/dist/actions/create-condition.cjs +3 -3
- 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 +3 -3
- package/dist/actions/create-condition.mjs.map +1 -1
- package/dist/actions/create-transaction-type.cjs +2 -2
- 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 +2 -2
- package/dist/actions/create-transaction-type.mjs.map +1 -1
- package/dist/actions/deliver-spondyr.cjs +4 -4
- package/dist/actions/deliver-spondyr.cjs.map +1 -1
- package/dist/actions/deliver-spondyr.d.cts +54 -3
- package/dist/actions/deliver-spondyr.d.cts.map +1 -1
- package/dist/actions/deliver-spondyr.d.mts +54 -3
- package/dist/actions/deliver-spondyr.d.mts.map +1 -1
- package/dist/actions/deliver-spondyr.mjs +4 -4
- package/dist/actions/deliver-spondyr.mjs.map +1 -1
- package/dist/actions/event-type-update.cjs +2 -2
- 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 +2 -2
- package/dist/actions/event-type-update.mjs.map +1 -1
- package/dist/actions/get-event-types.cjs +5 -5
- 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 +5 -5
- package/dist/actions/get-event-types.mjs.map +1 -1
- package/dist/actions/get-spondyr-status.cjs +18 -18
- 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 +18 -18
- package/dist/actions/get-spondyr-status.mjs.map +1 -1
- package/dist/actions/get-transaction-types.cjs +6 -6
- 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 +6 -6
- package/dist/actions/get-transaction-types.mjs.map +1 -1
- package/dist/actions/recipient-delete.cjs +2 -2
- 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 +2 -2
- package/dist/actions/recipient-delete.mjs.map +1 -1
- package/dist/actions/recipient-get.cjs +4 -4
- 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 +4 -4
- package/dist/actions/recipient-get.mjs.map +1 -1
- package/dist/actions/recipients-list.cjs +5 -5
- 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 +5 -5
- package/dist/actions/recipients-list.mjs.map +1 -1
- package/dist/actions/search-filter-create.cjs +2 -2
- 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 +2 -2
- package/dist/actions/search-filter-create.mjs.map +1 -1
- package/dist/actions/search-filter-delete.cjs +2 -2
- 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 +2 -2
- package/dist/actions/search-filter-delete.mjs.map +1 -1
- package/dist/actions/search-filter-get.cjs +2 -2
- 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 +2 -2
- package/dist/actions/search-filter-get.mjs.map +1 -1
- package/dist/actions/search-filters-list.cjs +6 -6
- 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 +6 -6
- package/dist/actions/search-filters-list.mjs.map +1 -1
- package/dist/actions/search-spondyrs.cjs +29 -29
- 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 +29 -29
- package/dist/actions/search-spondyrs.mjs.map +1 -1
- package/dist/actions/sso-stub.cjs +3 -3
- 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 +3 -3
- package/dist/actions/sso-stub.mjs.map +1 -1
- package/dist/actions/template-get.cjs +20 -20
- 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 +20 -20
- package/dist/actions/template-get.mjs.map +1 -1
- package/dist/actions/templates-list.cjs +16 -16
- 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 +16 -16
- package/dist/actions/templates-list.mjs.map +1 -1
- package/dist/actions/transaction-type-get.cjs +2 -2
- 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 +2 -2
- package/dist/actions/transaction-type-get.mjs.map +1 -1
- package/dist/actions/transaction-type-update.cjs +3 -3
- 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 +3 -3
- 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
|
@@ -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.")
|
|
17
|
-
}).describe("Summary of a condition defined for template selection.");
|
|
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
|
+
}).passthrough().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).")
|
|
21
|
-
}).describe("Summary of a recipient configured for a template.");
|
|
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
|
+
}).passthrough().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,15 +30,15 @@ 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).")
|
|
36
|
-
}).describe("A template configured for a transaction type.");
|
|
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
|
+
}).passthrough().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
|
-
}).describe("Response containing all templates for a transaction type.");
|
|
41
|
+
}).passthrough().describe("Response containing all templates for a transaction type.");
|
|
42
42
|
const spondyrTemplatesList = require_action.action("SPONDYR_TEMPLATES_LIST", {
|
|
43
43
|
slug: "spondyr-templates-list",
|
|
44
44
|
name: "List Templates",
|
|
@@ -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}).passthrough().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}).passthrough().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}).passthrough().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}).passthrough().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.\",\n input: SpondyrTemplatesListInput,\n output: SpondyrTemplatesListOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO,EAChD,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wJAAwJ,EAC/L,CAAC,CAAC,CAAC,SAAS,yEAAyE;AACrF,MAAM,8CAA8CA,IAAAA,EAAE,OAAO;CAC3D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CACjF,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;CAC9G,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,uDAAuD,CAAC,CAAC,SAAS;AACpH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wDAAwD;AAClF,MAAM,8CAA8CA,IAAAA,EAAE,OAAO;CAC3D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CAC1E,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+FAA+F,CAAC,CAAC,SAAS;AAChJ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAAmD;AAC7E,MAAM,0CAA0CA,IAAAA,EAAE,OAAO;CACvD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CACvE,UAAUA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxI,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4EAA4E,CAAC,CAAC,SAAS;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,YAAY,CAAC,CAAC,SAAS,+CAA+C;AACzE,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,YAAY,CAAC,CAAC,SAAS,2DAA2D;AAErF,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.$loose>>>>;
|
|
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.$loose>>>>;
|
|
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.$loose>>>>;
|
|
41
|
+
APIStatus: z.ZodNullable<z.ZodEnum<{
|
|
42
|
+
OK: "OK";
|
|
43
|
+
ERROR: "ERROR";
|
|
44
|
+
}>>;
|
|
45
|
+
ErrorMessage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
46
|
+
}, z.core.$loose>;
|
|
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"}
|
|
@@ -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.$loose>>>>;
|
|
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.$loose>>>>;
|
|
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.$loose>>>>;
|
|
41
|
+
APIStatus: z.ZodNullable<z.ZodEnum<{
|
|
42
|
+
OK: "OK";
|
|
43
|
+
ERROR: "ERROR";
|
|
44
|
+
}>>;
|
|
45
|
+
ErrorMessage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
46
|
+
}, z.core.$loose>;
|
|
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.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"templates-list.d.mts","names":[],"sources":["../../src/actions/templates-list.ts"],"mappings":";;;cAIa,yBAAA,
|
|
1
|
+
{"version":3,"file":"templates-list.d.mts","names":[],"sources":["../../src/actions/templates-list.ts"],"mappings":";;;cAIa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;cAuBzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAM1B,oBAAA,gCAAoB,wBAAA"}
|
|
@@ -3,8 +3,8 @@ import { z } from "zod";
|
|
|
3
3
|
//#region src/actions/templates-list.ts
|
|
4
4
|
const SpondyrTemplatesListInput = z.object({ 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.") }).describe("Request model for listing templates associated with a transaction type.");
|
|
5
5
|
const SpondyrTemplatesList_ConditionSummarySchema = z.object({
|
|
6
|
-
Name: z.string().describe("The data field name used in the condition."),
|
|
7
|
-
CompareValue: z.string().describe("The value(s) to compare against, newline-delimited if multiple."),
|
|
6
|
+
Name: z.string().describe("The data field name used in the condition.").nullable(),
|
|
7
|
+
CompareValue: z.string().describe("The value(s) to compare against, newline-delimited if multiple.").nullable(),
|
|
8
8
|
CompareOperator: z.enum([
|
|
9
9
|
"=",
|
|
10
10
|
">",
|
|
@@ -12,17 +12,17 @@ const SpondyrTemplatesList_ConditionSummarySchema = z.object({
|
|
|
12
12
|
">=",
|
|
13
13
|
"<=",
|
|
14
14
|
"<>"
|
|
15
|
-
]).describe("Comparison operator for the condition."),
|
|
16
|
-
LogicalOperator: z.enum(["AND", "OR"]).describe("Logical operator connecting this condition to others.")
|
|
17
|
-
}).describe("Summary of a condition defined for template selection.");
|
|
15
|
+
]).describe("Comparison operator for the condition.").nullable(),
|
|
16
|
+
LogicalOperator: z.enum(["AND", "OR"]).describe("Logical operator connecting this condition to others.").nullable()
|
|
17
|
+
}).passthrough().describe("Summary of a condition defined for template selection.");
|
|
18
18
|
const SpondyrTemplatesList_RecipientSummarySchema = z.object({
|
|
19
|
-
Name: z.string().describe("The recipient's name or identifier."),
|
|
20
|
-
DeliveryMethod: z.string().describe("The delivery method for this recipient (e.g., Email, Mail, Text, DocuSign, Fax, Destination).")
|
|
21
|
-
}).describe("Summary of a recipient configured for a template.");
|
|
19
|
+
Name: z.string().describe("The recipient's name or identifier.").nullable(),
|
|
20
|
+
DeliveryMethod: z.string().describe("The delivery method for this recipient (e.g., Email, Mail, Text, DocuSign, Fax, Destination).").nullable()
|
|
21
|
+
}).passthrough().describe("Summary of a recipient configured for a template.");
|
|
22
22
|
const SpondyrTemplatesList_TemplateItemSchema = z.object({
|
|
23
|
-
Name: z.string().describe("The unique name of the template."),
|
|
23
|
+
Name: z.string().describe("The unique name of the template.").nullable(),
|
|
24
24
|
Searches: z.array(z.string()).describe("Search filter names associated with this template for document retrieval.").nullable().optional(),
|
|
25
|
-
EventType: z.string().describe("The Event Type this template is configured for (e.g., OnCreate, OnUpdate)."),
|
|
25
|
+
EventType: z.string().describe("The Event Type this template is configured for (e.g., OnCreate, OnUpdate).").nullable(),
|
|
26
26
|
Conditions: z.array(SpondyrTemplatesList_ConditionSummarySchema).describe("Conditions that determine when this template is selected for correspondence generation.").nullable().optional(),
|
|
27
27
|
Recipients: z.array(SpondyrTemplatesList_RecipientSummarySchema).describe("List of configured recipients for this template.").nullable().optional(),
|
|
28
28
|
ContentType: z.enum([
|
|
@@ -30,10 +30,10 @@ const SpondyrTemplatesList_TemplateItemSchema = z.object({
|
|
|
30
30
|
"DOC",
|
|
31
31
|
"HTML",
|
|
32
32
|
"TEXT"
|
|
33
|
-
]).describe("Content type of the template document."),
|
|
34
|
-
TransactionType: z.string().describe("The Transaction Type this template belongs to."),
|
|
35
|
-
TemplateContentReferenceID: z.string().describe("Reference ID of the uploaded template content (use TemplateContent API to upload).")
|
|
36
|
-
}).describe("A template configured for a transaction type.");
|
|
33
|
+
]).describe("Content type of the template document.").nullable(),
|
|
34
|
+
TransactionType: z.string().describe("The Transaction Type this template belongs to.").nullable(),
|
|
35
|
+
TemplateContentReferenceID: z.string().describe("Reference ID of the uploaded template content (use TemplateContent API to upload).").nullable()
|
|
36
|
+
}).passthrough().describe("A template configured for a transaction type.");
|
|
37
37
|
const spondyrTemplatesList = action("SPONDYR_TEMPLATES_LIST", {
|
|
38
38
|
slug: "spondyr-templates-list",
|
|
39
39
|
name: "List Templates",
|
|
@@ -41,9 +41,9 @@ const spondyrTemplatesList = action("SPONDYR_TEMPLATES_LIST", {
|
|
|
41
41
|
input: SpondyrTemplatesListInput,
|
|
42
42
|
output: z.object({
|
|
43
43
|
Data: z.array(SpondyrTemplatesList_TemplateItemSchema).describe("List of templates configured for the specified transaction type.").nullable().optional(),
|
|
44
|
-
APIStatus: z.enum(["OK", "ERROR"]).describe("API response status: OK if successful, ERROR otherwise."),
|
|
44
|
+
APIStatus: z.enum(["OK", "ERROR"]).describe("API response status: OK if successful, ERROR otherwise.").nullable(),
|
|
45
45
|
ErrorMessage: z.string().describe("Error message when APIStatus is ERROR.").nullable().optional()
|
|
46
|
-
}).describe("Response containing all templates for a transaction type.")
|
|
46
|
+
}).passthrough().describe("Response containing all templates for a transaction type.")
|
|
47
47
|
});
|
|
48
48
|
//#endregion
|
|
49
49
|
export { spondyrTemplatesList };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"templates-list.mjs","names":[],"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.mjs","names":[],"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}).passthrough().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}).passthrough().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}).passthrough().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}).passthrough().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.\",\n input: SpondyrTemplatesListInput,\n output: SpondyrTemplatesListOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4B,EAAE,OAAO,EAChD,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,wJAAwJ,EAC/L,CAAC,CAAC,CAAC,SAAS,yEAAyE;AACrF,MAAM,8CAA8C,EAAE,OAAO;CAC3D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CACjF,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;CAC9G,iBAAiB,EAAE,KAAK;EAAC;EAAK;EAAK;EAAK;EAAM;EAAM;CAAI,CAAC,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CACvH,iBAAiB,EAAE,KAAK,CAAC,OAAO,IAAI,CAAC,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;AACpH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wDAAwD;AAClF,MAAM,8CAA8C,EAAE,OAAO;CAC3D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CAC1E,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,+FAA+F,CAAC,CAAC,SAAS;AAChJ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAAmD;AAC7E,MAAM,0CAA0C,EAAE,OAAO;CACvD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CACvE,UAAU,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxI,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,4EAA4E,CAAC,CAAC,SAAS;CACtH,YAAY,EAAE,MAAM,2CAA2C,CAAC,CAAC,SAAS,yFAAyF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzL,YAAY,EAAE,MAAM,2CAA2C,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClJ,aAAa,EAAE,KAAK;EAAC;EAAO;EAAO;EAAQ;CAAM,CAAC,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CAChH,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CAChG,4BAA4B,EAAE,OAAO,CAAC,CAAC,SAAS,oFAAoF,CAAC,CAAC,SAAS;AACjJ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+CAA+C;AAOzE,MAAa,uBAAuB,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAXwC,EAAE,OAAO;EACjD,MAAM,EAAE,MAAM,uCAAuC,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxJ,WAAW,EAAE,KAAK,CAAC,MAAM,OAAO,CAAC,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;EAChH,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2DAOhB;AACV,CAAC"}
|
|
@@ -4,11 +4,11 @@ let zod = require("zod");
|
|
|
4
4
|
const SpondyrTransactionTypeGetInput = zod.z.object({ TransactionType: zod.z.string().describe("The name of the Transaction Type to retrieve. API is case-insensitive.") }).describe("Request model for retrieving a specific transaction type.");
|
|
5
5
|
const SpondyrTransactionTypeGetOutput = zod.z.object({
|
|
6
6
|
Name: zod.z.string().describe("The name of the Transaction Type. Present when APIStatus is OK.").nullable().optional(),
|
|
7
|
-
APIStatus: zod.z.enum(["OK", "ERROR"]).describe("OK if successful; ERROR otherwise."),
|
|
7
|
+
APIStatus: zod.z.enum(["OK", "ERROR"]).describe("OK if successful; ERROR otherwise.").nullable(),
|
|
8
8
|
TemplateCSV: zod.z.string().describe("Comma delimited list of flattened JSON fields for CSV import. Present when APIStatus is OK.").nullable().optional(),
|
|
9
9
|
ErrorMessage: zod.z.string().describe("Error message if retrieval failed.").nullable().optional(),
|
|
10
10
|
TemplateJSON: zod.z.string().describe("JSON formatted string containing all available properties with sample data. Present when APIStatus is OK.").nullable().optional()
|
|
11
|
-
});
|
|
11
|
+
}).passthrough();
|
|
12
12
|
const spondyrTransactionTypeGet = require_action.action("SPONDYR_TRANSACTION_TYPE_GET", {
|
|
13
13
|
slug: "spondyr-transaction-type-get",
|
|
14
14
|
name: "Get Transaction Type",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transaction-type-get.cjs","names":["z","action"],"sources":["../../src/actions/transaction-type-get.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpondyrTransactionTypeGetInput
|
|
1
|
+
{"version":3,"file":"transaction-type-get.cjs","names":["z","action"],"sources":["../../src/actions/transaction-type-get.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpondyrTransactionTypeGetInput = z.object({\n TransactionType: z.string().describe(\"The name of the Transaction Type to retrieve. API is case-insensitive.\"),\n}).describe(\"Request model for retrieving a specific transaction type.\");\nexport const SpondyrTransactionTypeGetOutput = z.object({\n Name: z.string().describe(\"The name of the Transaction Type. Present when APIStatus is OK.\").nullable().optional(),\n APIStatus: z.enum([\"OK\", \"ERROR\"]).describe(\"OK if successful; ERROR otherwise.\").nullable(),\n TemplateCSV: z.string().describe(\"Comma delimited list of flattened JSON fields for CSV import. Present when APIStatus is OK.\").nullable().optional(),\n ErrorMessage: z.string().describe(\"Error message if retrieval failed.\").nullable().optional(),\n TemplateJSON: z.string().describe(\"JSON formatted string containing all available properties with sample data. Present when APIStatus is OK.\").nullable().optional(),\n}).passthrough();\n\nexport const spondyrTransactionTypeGet = action(\"SPONDYR_TRANSACTION_TYPE_GET\", {\n slug: \"spondyr-transaction-type-get\",\n name: \"Get Transaction Type\",\n description: \"Tool to retrieve details of a specific transaction type. Use when inspecting a transaction type schema. Returns the schema definition including JSON structure and CSV field mappings. Example: \\\"Get transaction type 'CustomerOrder' to view its JSON schema and available fields.\\\"\",\n input: SpondyrTransactionTypeGetInput,\n output: SpondyrTransactionTypeGetOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAAiCA,IAAAA,EAAE,OAAO,EACrD,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wEAAwE,EAC/G,CAAC,CAAC,CAAC,SAAS,2DAA2D;AACvE,MAAa,kCAAkCA,IAAAA,EAAE,OAAO;CACtD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjH,WAAWA,IAAAA,EAAE,KAAK,CAAC,MAAM,OAAO,CAAC,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CAC3F,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6FAA6F,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpJ,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5F,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2GAA2G,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACrK,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,4BAA4BC,eAAAA,OAAO,gCAAgC;CAC9E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,22 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/transaction-type-get.d.ts
|
|
4
|
-
declare const SpondyrTransactionTypeGetInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const SpondyrTransactionTypeGetInput: z.ZodObject<{
|
|
5
|
+
TransactionType: z.ZodString;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
declare const SpondyrTransactionTypeGetOutput: z.ZodObject<{
|
|
8
|
+
Name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9
|
+
APIStatus: z.ZodNullable<z.ZodEnum<{
|
|
10
|
+
OK: "OK";
|
|
11
|
+
ERROR: "ERROR";
|
|
12
|
+
}>>;
|
|
13
|
+
TemplateCSV: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
|
+
ErrorMessage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
|
+
TemplateJSON: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
|
+
}, z.core.$loose>;
|
|
17
|
+
declare const spondyrTransactionTypeGet: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
18
|
+
TransactionType: string;
|
|
19
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
20
|
//#endregion
|
|
8
21
|
export { spondyrTransactionTypeGet };
|
|
9
22
|
//# sourceMappingURL=transaction-type-get.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transaction-type-get.d.cts","names":[],"sources":["../../src/actions/transaction-type-get.ts"],"mappings":";;;cAIa,8BAAA,
|
|
1
|
+
{"version":3,"file":"transaction-type-get.d.cts","names":[],"sources":["../../src/actions/transaction-type-get.ts"],"mappings":";;;cAIa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;cAG9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;cAQ/B,yBAAA,gCAAyB,wBAAA"}
|
|
@@ -1,9 +1,22 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/transaction-type-get.d.ts
|
|
4
|
-
declare const SpondyrTransactionTypeGetInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const SpondyrTransactionTypeGetInput: z.ZodObject<{
|
|
5
|
+
TransactionType: z.ZodString;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
declare const SpondyrTransactionTypeGetOutput: z.ZodObject<{
|
|
8
|
+
Name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9
|
+
APIStatus: z.ZodNullable<z.ZodEnum<{
|
|
10
|
+
OK: "OK";
|
|
11
|
+
ERROR: "ERROR";
|
|
12
|
+
}>>;
|
|
13
|
+
TemplateCSV: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
|
+
ErrorMessage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
|
+
TemplateJSON: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
|
+
}, z.core.$loose>;
|
|
17
|
+
declare const spondyrTransactionTypeGet: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
18
|
+
TransactionType: string;
|
|
19
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
20
|
//#endregion
|
|
8
21
|
export { spondyrTransactionTypeGet };
|
|
9
22
|
//# sourceMappingURL=transaction-type-get.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transaction-type-get.d.mts","names":[],"sources":["../../src/actions/transaction-type-get.ts"],"mappings":";;;cAIa,8BAAA,
|
|
1
|
+
{"version":3,"file":"transaction-type-get.d.mts","names":[],"sources":["../../src/actions/transaction-type-get.ts"],"mappings":";;;cAIa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;cAG9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;cAQ/B,yBAAA,gCAAyB,wBAAA"}
|
|
@@ -7,11 +7,11 @@ const spondyrTransactionTypeGet = action("SPONDYR_TRANSACTION_TYPE_GET", {
|
|
|
7
7
|
input: z.object({ TransactionType: z.string().describe("The name of the Transaction Type to retrieve. API is case-insensitive.") }).describe("Request model for retrieving a specific transaction type."),
|
|
8
8
|
output: z.object({
|
|
9
9
|
Name: z.string().describe("The name of the Transaction Type. Present when APIStatus is OK.").nullable().optional(),
|
|
10
|
-
APIStatus: z.enum(["OK", "ERROR"]).describe("OK if successful; ERROR otherwise."),
|
|
10
|
+
APIStatus: z.enum(["OK", "ERROR"]).describe("OK if successful; ERROR otherwise.").nullable(),
|
|
11
11
|
TemplateCSV: z.string().describe("Comma delimited list of flattened JSON fields for CSV import. Present when APIStatus is OK.").nullable().optional(),
|
|
12
12
|
ErrorMessage: z.string().describe("Error message if retrieval failed.").nullable().optional(),
|
|
13
13
|
TemplateJSON: z.string().describe("JSON formatted string containing all available properties with sample data. Present when APIStatus is OK.").nullable().optional()
|
|
14
|
-
})
|
|
14
|
+
}).passthrough()
|
|
15
15
|
});
|
|
16
16
|
//#endregion
|
|
17
17
|
export { spondyrTransactionTypeGet };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transaction-type-get.mjs","names":[],"sources":["../../src/actions/transaction-type-get.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpondyrTransactionTypeGetInput
|
|
1
|
+
{"version":3,"file":"transaction-type-get.mjs","names":[],"sources":["../../src/actions/transaction-type-get.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpondyrTransactionTypeGetInput = z.object({\n TransactionType: z.string().describe(\"The name of the Transaction Type to retrieve. API is case-insensitive.\"),\n}).describe(\"Request model for retrieving a specific transaction type.\");\nexport const SpondyrTransactionTypeGetOutput = z.object({\n Name: z.string().describe(\"The name of the Transaction Type. Present when APIStatus is OK.\").nullable().optional(),\n APIStatus: z.enum([\"OK\", \"ERROR\"]).describe(\"OK if successful; ERROR otherwise.\").nullable(),\n TemplateCSV: z.string().describe(\"Comma delimited list of flattened JSON fields for CSV import. Present when APIStatus is OK.\").nullable().optional(),\n ErrorMessage: z.string().describe(\"Error message if retrieval failed.\").nullable().optional(),\n TemplateJSON: z.string().describe(\"JSON formatted string containing all available properties with sample data. Present when APIStatus is OK.\").nullable().optional(),\n}).passthrough();\n\nexport const spondyrTransactionTypeGet = action(\"SPONDYR_TRANSACTION_TYPE_GET\", {\n slug: \"spondyr-transaction-type-get\",\n name: \"Get Transaction Type\",\n description: \"Tool to retrieve details of a specific transaction type. Use when inspecting a transaction type schema. Returns the schema definition including JSON structure and CSV field mappings. Example: \\\"Get transaction type 'CustomerOrder' to view its JSON schema and available fields.\\\"\",\n input: SpondyrTransactionTypeGetInput,\n output: SpondyrTransactionTypeGetOutput,\n});\n"],"mappings":";;AAeA,MAAa,4BAA4B,OAAO,gCAAgC;CAC9E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAf4C,EAAE,OAAO,EACrD,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,wEAAwE,EAC/G,CAAC,CAAC,CAAC,SAAS,2DAaH;CACP,QAb6C,EAAE,OAAO;EACtD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjH,WAAW,EAAE,KAAK,CAAC,MAAM,OAAO,CAAC,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;EAC3F,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,6FAA6F,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpJ,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5F,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,2GAA2G,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrK,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
|
|
@@ -7,10 +7,10 @@ const SpondyrTransactionTypeUpdateInput = zod.z.object({
|
|
|
7
7
|
TransactionType: zod.z.string().describe("The name of the existing transaction type to update. This identifies which transaction type to modify.")
|
|
8
8
|
});
|
|
9
9
|
const SpondyrTransactionTypeUpdateOutput = zod.z.object({
|
|
10
|
-
APIStatus: zod.z.enum(["OK", "ERROR"]).describe("Status of the API request. 'OK' indicates the transaction type was successfully updated, 'ERROR' indicates a failure."),
|
|
11
|
-
ReferenceID: zod.z.string().describe("Unique identifier for the updated transaction type. Use this ID for subsequent operations like retrieving or further updating the transaction type."),
|
|
10
|
+
APIStatus: zod.z.enum(["OK", "ERROR"]).describe("Status of the API request. 'OK' indicates the transaction type was successfully updated, 'ERROR' indicates a failure.").nullable(),
|
|
11
|
+
ReferenceID: zod.z.string().describe("Unique identifier for the updated transaction type. Use this ID for subsequent operations like retrieving or further updating the transaction type.").nullable(),
|
|
12
12
|
ErrorMessage: zod.z.string().describe("Detailed error message explaining why the update failed. Only present when APIStatus is 'ERROR'.").nullable().optional()
|
|
13
|
-
});
|
|
13
|
+
}).passthrough();
|
|
14
14
|
const spondyrTransactionTypeUpdate = require_action.action("SPONDYR_TRANSACTION_TYPE_UPDATE", {
|
|
15
15
|
slug: "spondyr-transaction-type-update",
|
|
16
16
|
name: "Update Transaction Type",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transaction-type-update.cjs","names":["z","action"],"sources":["../../src/actions/transaction-type-update.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpondyrTransactionTypeUpdateInput
|
|
1
|
+
{"version":3,"file":"transaction-type-update.cjs","names":["z","action"],"sources":["../../src/actions/transaction-type-update.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpondyrTransactionTypeUpdateInput = z.object({\n Name: z.string().describe(\"The new or updated name for the transaction type. Use the same value as TransactionType to keep the name unchanged, or provide a different value to rename it.\"),\n TemplateJSON: z.string().describe(\"A valid JSON-formatted string defining the transaction schema with all available properties and sample data. This defines what data fields are available for correspondence templates.\"),\n TransactionType: z.string().describe(\"The name of the existing transaction type to update. This identifies which transaction type to modify.\"),\n});\nexport const SpondyrTransactionTypeUpdateOutput = z.object({\n APIStatus: z.enum([\"OK\", \"ERROR\"]).describe(\"Status of the API request. 'OK' indicates the transaction type was successfully updated, 'ERROR' indicates a failure.\").nullable(),\n ReferenceID: z.string().describe(\"Unique identifier for the updated transaction type. Use this ID for subsequent operations like retrieving or further updating the transaction type.\").nullable(),\n ErrorMessage: z.string().describe(\"Detailed error message explaining why the update failed. Only present when APIStatus is 'ERROR'.\").nullable().optional(),\n}).passthrough();\n\nexport const spondyrTransactionTypeUpdate = action(\"SPONDYR_TRANSACTION_TYPE_UPDATE\", {\n slug: \"spondyr-transaction-type-update\",\n name: \"Update Transaction Type\",\n description: \"Updates an existing transaction type's name and/or JSON schema in Spondyr. Use this tool to: - Modify the JSON schema/template of a transaction type to add, remove, or change data fields - Rename an existing transaction type - Update sample data values in the template Prerequisites: The transaction type must already exist. Use 'Get Transaction Types' to list available types or 'Get Transaction Type' to retrieve the current schema before updating. Example: Update the 'OrderPlaced' transaction type with a new JSON schema that includes customer address fields.\",\n input: SpondyrTransactionTypeUpdateInput,\n output: SpondyrTransactionTypeUpdateOutput,\n});\n"],"mappings":";;;AAIA,MAAa,oCAAoCA,IAAAA,EAAE,OAAO;CACxD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gKAAgK;CAC1L,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wLAAwL;CAC1N,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wGAAwG;AAC/I,CAAC;AACD,MAAa,qCAAqCA,IAAAA,EAAE,OAAO;CACzD,WAAWA,IAAAA,EAAE,KAAK,CAAC,MAAM,OAAO,CAAC,CAAC,CAAC,SAAS,uHAAuH,CAAC,CAAC,SAAS;CAC9K,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qJAAqJ,CAAC,CAAC,SAAS;CACjM,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kGAAkG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5J,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,+BAA+BC,eAAAA,OAAO,mCAAmC;CACpF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,24 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/transaction-type-update.d.ts
|
|
4
|
-
declare const SpondyrTransactionTypeUpdateInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const SpondyrTransactionTypeUpdateInput: z.ZodObject<{
|
|
5
|
+
Name: z.ZodString;
|
|
6
|
+
TemplateJSON: z.ZodString;
|
|
7
|
+
TransactionType: z.ZodString;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
declare const SpondyrTransactionTypeUpdateOutput: z.ZodObject<{
|
|
10
|
+
APIStatus: z.ZodNullable<z.ZodEnum<{
|
|
11
|
+
OK: "OK";
|
|
12
|
+
ERROR: "ERROR";
|
|
13
|
+
}>>;
|
|
14
|
+
ReferenceID: z.ZodNullable<z.ZodString>;
|
|
15
|
+
ErrorMessage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
|
+
}, z.core.$loose>;
|
|
17
|
+
declare const spondyrTransactionTypeUpdate: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
18
|
+
Name: string;
|
|
19
|
+
TemplateJSON: string;
|
|
20
|
+
TransactionType: string;
|
|
21
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
22
|
//#endregion
|
|
8
23
|
export { spondyrTransactionTypeUpdate };
|
|
9
24
|
//# sourceMappingURL=transaction-type-update.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transaction-type-update.d.cts","names":[],"sources":["../../src/actions/transaction-type-update.ts"],"mappings":";;;cAIa,iCAAA,
|
|
1
|
+
{"version":3,"file":"transaction-type-update.d.cts","names":[],"sources":["../../src/actions/transaction-type-update.ts"],"mappings":";;;cAIa,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;cAKjC,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;;;;cAMlC,4BAAA,gCAA4B,wBAAA"}
|
|
@@ -1,9 +1,24 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/transaction-type-update.d.ts
|
|
4
|
-
declare const SpondyrTransactionTypeUpdateInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const SpondyrTransactionTypeUpdateInput: z.ZodObject<{
|
|
5
|
+
Name: z.ZodString;
|
|
6
|
+
TemplateJSON: z.ZodString;
|
|
7
|
+
TransactionType: z.ZodString;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
declare const SpondyrTransactionTypeUpdateOutput: z.ZodObject<{
|
|
10
|
+
APIStatus: z.ZodNullable<z.ZodEnum<{
|
|
11
|
+
OK: "OK";
|
|
12
|
+
ERROR: "ERROR";
|
|
13
|
+
}>>;
|
|
14
|
+
ReferenceID: z.ZodNullable<z.ZodString>;
|
|
15
|
+
ErrorMessage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
|
+
}, z.core.$loose>;
|
|
17
|
+
declare const spondyrTransactionTypeUpdate: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
18
|
+
Name: string;
|
|
19
|
+
TemplateJSON: string;
|
|
20
|
+
TransactionType: string;
|
|
21
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
22
|
//#endregion
|
|
8
23
|
export { spondyrTransactionTypeUpdate };
|
|
9
24
|
//# sourceMappingURL=transaction-type-update.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transaction-type-update.d.mts","names":[],"sources":["../../src/actions/transaction-type-update.ts"],"mappings":";;;cAIa,iCAAA,
|
|
1
|
+
{"version":3,"file":"transaction-type-update.d.mts","names":[],"sources":["../../src/actions/transaction-type-update.ts"],"mappings":";;;cAIa,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;cAKjC,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;;;;cAMlC,4BAAA,gCAA4B,wBAAA"}
|
|
@@ -10,10 +10,10 @@ const spondyrTransactionTypeUpdate = action("SPONDYR_TRANSACTION_TYPE_UPDATE", {
|
|
|
10
10
|
TransactionType: z.string().describe("The name of the existing transaction type to update. This identifies which transaction type to modify.")
|
|
11
11
|
}),
|
|
12
12
|
output: z.object({
|
|
13
|
-
APIStatus: z.enum(["OK", "ERROR"]).describe("Status of the API request. 'OK' indicates the transaction type was successfully updated, 'ERROR' indicates a failure."),
|
|
14
|
-
ReferenceID: z.string().describe("Unique identifier for the updated transaction type. Use this ID for subsequent operations like retrieving or further updating the transaction type."),
|
|
13
|
+
APIStatus: z.enum(["OK", "ERROR"]).describe("Status of the API request. 'OK' indicates the transaction type was successfully updated, 'ERROR' indicates a failure.").nullable(),
|
|
14
|
+
ReferenceID: z.string().describe("Unique identifier for the updated transaction type. Use this ID for subsequent operations like retrieving or further updating the transaction type.").nullable(),
|
|
15
15
|
ErrorMessage: z.string().describe("Detailed error message explaining why the update failed. Only present when APIStatus is 'ERROR'.").nullable().optional()
|
|
16
|
-
})
|
|
16
|
+
}).passthrough()
|
|
17
17
|
});
|
|
18
18
|
//#endregion
|
|
19
19
|
export { spondyrTransactionTypeUpdate };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transaction-type-update.mjs","names":[],"sources":["../../src/actions/transaction-type-update.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpondyrTransactionTypeUpdateInput
|
|
1
|
+
{"version":3,"file":"transaction-type-update.mjs","names":[],"sources":["../../src/actions/transaction-type-update.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpondyrTransactionTypeUpdateInput = z.object({\n Name: z.string().describe(\"The new or updated name for the transaction type. Use the same value as TransactionType to keep the name unchanged, or provide a different value to rename it.\"),\n TemplateJSON: z.string().describe(\"A valid JSON-formatted string defining the transaction schema with all available properties and sample data. This defines what data fields are available for correspondence templates.\"),\n TransactionType: z.string().describe(\"The name of the existing transaction type to update. This identifies which transaction type to modify.\"),\n});\nexport const SpondyrTransactionTypeUpdateOutput = z.object({\n APIStatus: z.enum([\"OK\", \"ERROR\"]).describe(\"Status of the API request. 'OK' indicates the transaction type was successfully updated, 'ERROR' indicates a failure.\").nullable(),\n ReferenceID: z.string().describe(\"Unique identifier for the updated transaction type. Use this ID for subsequent operations like retrieving or further updating the transaction type.\").nullable(),\n ErrorMessage: z.string().describe(\"Detailed error message explaining why the update failed. Only present when APIStatus is 'ERROR'.\").nullable().optional(),\n}).passthrough();\n\nexport const spondyrTransactionTypeUpdate = action(\"SPONDYR_TRANSACTION_TYPE_UPDATE\", {\n slug: \"spondyr-transaction-type-update\",\n name: \"Update Transaction Type\",\n description: \"Updates an existing transaction type's name and/or JSON schema in Spondyr. Use this tool to: - Modify the JSON schema/template of a transaction type to add, remove, or change data fields - Rename an existing transaction type - Update sample data values in the template Prerequisites: The transaction type must already exist. Use 'Get Transaction Types' to list available types or 'Get Transaction Type' to retrieve the current schema before updating. Example: Update the 'OrderPlaced' transaction type with a new JSON schema that includes customer address fields.\",\n input: SpondyrTransactionTypeUpdateInput,\n output: SpondyrTransactionTypeUpdateOutput,\n});\n"],"mappings":";;AAeA,MAAa,+BAA+B,OAAO,mCAAmC;CACpF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAf+C,EAAE,OAAO;EACxD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gKAAgK;EAC1L,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,wLAAwL;EAC1N,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,wGAAwG;CAC/I,CAWS;CACP,QAXgD,EAAE,OAAO;EACzD,WAAW,EAAE,KAAK,CAAC,MAAM,OAAO,CAAC,CAAC,CAAC,SAAS,uHAAuH,CAAC,CAAC,SAAS;EAC9K,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,qJAAqJ,CAAC,CAAC,SAAS;EACjM,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,kGAAkG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5J,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
|
package/dist/catalog.cjs
CHANGED
|
@@ -7,7 +7,20 @@ const spondyrCatalog = {
|
|
|
7
7
|
"category": "Documents",
|
|
8
8
|
"logo": "https://logos.composio.dev/api/spondyr",
|
|
9
9
|
"authKind": "keystroke",
|
|
10
|
-
"oauthScopes": []
|
|
10
|
+
"oauthScopes": [],
|
|
11
|
+
"credentialFields": {
|
|
12
|
+
"api_key": {
|
|
13
|
+
"label": "API Key",
|
|
14
|
+
"secret": true,
|
|
15
|
+
"description": "Your Spondyr API Key. Get it from your Spondyr dashboard."
|
|
16
|
+
},
|
|
17
|
+
"app_token": {
|
|
18
|
+
"label": "Application Token",
|
|
19
|
+
"secret": true,
|
|
20
|
+
"description": "Your Spondyr Application Token. Get it from your Spondyr dashboard."
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
"credentialScheme": "API_KEY"
|
|
11
24
|
};
|
|
12
25
|
//#endregion
|
|
13
26
|
exports.spondyrCatalog = spondyrCatalog;
|