@keystrokehq/spondyr 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +17 -0
- package/dist/action.cjs +21 -0
- package/dist/action.cjs.map +1 -0
- package/dist/action.mjs +21 -0
- package/dist/action.mjs.map +1 -0
- package/dist/actions/conditions-list.cjs +26 -0
- package/dist/actions/conditions-list.cjs.map +1 -0
- package/dist/actions/conditions-list.d.cts +9 -0
- package/dist/actions/conditions-list.d.cts.map +1 -0
- package/dist/actions/conditions-list.d.mts +9 -0
- package/dist/actions/conditions-list.d.mts.map +1 -0
- package/dist/actions/conditions-list.mjs +25 -0
- package/dist/actions/conditions-list.mjs.map +1 -0
- package/dist/actions/create-condition.cjs +25 -0
- package/dist/actions/create-condition.cjs.map +1 -0
- package/dist/actions/create-condition.d.cts +9 -0
- package/dist/actions/create-condition.d.cts.map +1 -0
- package/dist/actions/create-condition.d.mts +9 -0
- package/dist/actions/create-condition.d.mts.map +1 -0
- package/dist/actions/create-condition.mjs +22 -0
- package/dist/actions/create-condition.mjs.map +1 -0
- package/dist/actions/create-transaction-type.cjs +23 -0
- package/dist/actions/create-transaction-type.cjs.map +1 -0
- package/dist/actions/create-transaction-type.d.cts +9 -0
- package/dist/actions/create-transaction-type.d.cts.map +1 -0
- package/dist/actions/create-transaction-type.d.mts +9 -0
- package/dist/actions/create-transaction-type.d.mts.map +1 -0
- package/dist/actions/create-transaction-type.mjs +20 -0
- package/dist/actions/create-transaction-type.mjs.map +1 -0
- package/dist/actions/deliver-spondyr.cjs +44 -0
- package/dist/actions/deliver-spondyr.cjs.map +1 -0
- package/dist/actions/deliver-spondyr.d.cts +9 -0
- package/dist/actions/deliver-spondyr.d.cts.map +1 -0
- package/dist/actions/deliver-spondyr.d.mts +9 -0
- package/dist/actions/deliver-spondyr.d.mts.map +1 -0
- package/dist/actions/deliver-spondyr.mjs +41 -0
- package/dist/actions/deliver-spondyr.mjs.map +1 -0
- package/dist/actions/event-type-update.cjs +24 -0
- package/dist/actions/event-type-update.cjs.map +1 -0
- package/dist/actions/event-type-update.d.cts +9 -0
- package/dist/actions/event-type-update.d.cts.map +1 -0
- package/dist/actions/event-type-update.d.mts +9 -0
- package/dist/actions/event-type-update.d.mts.map +1 -0
- package/dist/actions/event-type-update.mjs +21 -0
- package/dist/actions/event-type-update.mjs.map +1 -0
- package/dist/actions/get-event-types.cjs +24 -0
- package/dist/actions/get-event-types.cjs.map +1 -0
- package/dist/actions/get-event-types.d.cts +9 -0
- package/dist/actions/get-event-types.d.cts.map +1 -0
- package/dist/actions/get-event-types.d.mts +9 -0
- package/dist/actions/get-event-types.d.mts.map +1 -0
- package/dist/actions/get-event-types.mjs +23 -0
- package/dist/actions/get-event-types.mjs.map +1 -0
- package/dist/actions/get-spondyr-status.cjs +66 -0
- package/dist/actions/get-spondyr-status.cjs.map +1 -0
- package/dist/actions/get-spondyr-status.d.cts +9 -0
- package/dist/actions/get-spondyr-status.d.cts.map +1 -0
- package/dist/actions/get-spondyr-status.d.mts +9 -0
- package/dist/actions/get-spondyr-status.d.mts.map +1 -0
- package/dist/actions/get-spondyr-status.mjs +65 -0
- package/dist/actions/get-spondyr-status.mjs.map +1 -0
- package/dist/actions/get-transaction-types.cjs +25 -0
- package/dist/actions/get-transaction-types.cjs.map +1 -0
- package/dist/actions/get-transaction-types.d.cts +9 -0
- package/dist/actions/get-transaction-types.d.cts.map +1 -0
- package/dist/actions/get-transaction-types.d.mts +9 -0
- package/dist/actions/get-transaction-types.d.mts.map +1 -0
- package/dist/actions/get-transaction-types.mjs +24 -0
- package/dist/actions/get-transaction-types.mjs.map +1 -0
- package/dist/actions/index.cjs +43 -0
- package/dist/actions/index.d.cts +22 -0
- package/dist/actions/index.d.mts +22 -0
- package/dist/actions/index.mjs +22 -0
- package/dist/actions/recipient-delete.cjs +22 -0
- package/dist/actions/recipient-delete.cjs.map +1 -0
- package/dist/actions/recipient-delete.d.cts +9 -0
- package/dist/actions/recipient-delete.d.cts.map +1 -0
- package/dist/actions/recipient-delete.d.mts +9 -0
- package/dist/actions/recipient-delete.d.mts.map +1 -0
- package/dist/actions/recipient-delete.mjs +19 -0
- package/dist/actions/recipient-delete.mjs.map +1 -0
- package/dist/actions/recipient-get.cjs +35 -0
- package/dist/actions/recipient-get.cjs.map +1 -0
- package/dist/actions/recipient-get.d.cts +9 -0
- package/dist/actions/recipient-get.d.cts.map +1 -0
- package/dist/actions/recipient-get.d.mts +9 -0
- package/dist/actions/recipient-get.d.mts.map +1 -0
- package/dist/actions/recipient-get.mjs +32 -0
- package/dist/actions/recipient-get.mjs.map +1 -0
- package/dist/actions/recipients-list.cjs +35 -0
- package/dist/actions/recipients-list.cjs.map +1 -0
- package/dist/actions/recipients-list.d.cts +9 -0
- package/dist/actions/recipients-list.d.cts.map +1 -0
- package/dist/actions/recipients-list.d.mts +9 -0
- package/dist/actions/recipients-list.d.mts.map +1 -0
- package/dist/actions/recipients-list.mjs +34 -0
- package/dist/actions/recipients-list.mjs.map +1 -0
- package/dist/actions/search-filter-create.cjs +24 -0
- package/dist/actions/search-filter-create.cjs.map +1 -0
- package/dist/actions/search-filter-create.d.cts +9 -0
- package/dist/actions/search-filter-create.d.cts.map +1 -0
- package/dist/actions/search-filter-create.d.mts +9 -0
- package/dist/actions/search-filter-create.d.mts.map +1 -0
- package/dist/actions/search-filter-create.mjs +21 -0
- package/dist/actions/search-filter-create.mjs.map +1 -0
- package/dist/actions/search-filter-delete.cjs +22 -0
- package/dist/actions/search-filter-delete.cjs.map +1 -0
- package/dist/actions/search-filter-delete.d.cts +9 -0
- package/dist/actions/search-filter-delete.d.cts.map +1 -0
- package/dist/actions/search-filter-delete.d.mts +9 -0
- package/dist/actions/search-filter-delete.d.mts.map +1 -0
- package/dist/actions/search-filter-delete.mjs +19 -0
- package/dist/actions/search-filter-delete.mjs.map +1 -0
- package/dist/actions/search-filter-get.cjs +25 -0
- package/dist/actions/search-filter-get.cjs.map +1 -0
- package/dist/actions/search-filter-get.d.cts +9 -0
- package/dist/actions/search-filter-get.d.cts.map +1 -0
- package/dist/actions/search-filter-get.d.mts +9 -0
- package/dist/actions/search-filter-get.d.mts.map +1 -0
- package/dist/actions/search-filter-get.mjs +22 -0
- package/dist/actions/search-filter-get.mjs.map +1 -0
- package/dist/actions/search-filters-list.cjs +25 -0
- package/dist/actions/search-filters-list.cjs.map +1 -0
- package/dist/actions/search-filters-list.d.cts +9 -0
- package/dist/actions/search-filters-list.d.cts.map +1 -0
- package/dist/actions/search-filters-list.d.mts +9 -0
- package/dist/actions/search-filters-list.d.mts.map +1 -0
- package/dist/actions/search-filters-list.mjs +24 -0
- package/dist/actions/search-filters-list.mjs.map +1 -0
- package/dist/actions/search-spondyrs.cjs +66 -0
- package/dist/actions/search-spondyrs.cjs.map +1 -0
- package/dist/actions/search-spondyrs.d.cts +9 -0
- package/dist/actions/search-spondyrs.d.cts.map +1 -0
- package/dist/actions/search-spondyrs.d.mts +9 -0
- package/dist/actions/search-spondyrs.d.mts.map +1 -0
- package/dist/actions/search-spondyrs.mjs +65 -0
- package/dist/actions/search-spondyrs.mjs.map +1 -0
- package/dist/actions/sso-stub.cjs +32 -0
- package/dist/actions/sso-stub.cjs.map +1 -0
- package/dist/actions/sso-stub.d.cts +9 -0
- package/dist/actions/sso-stub.d.cts.map +1 -0
- package/dist/actions/sso-stub.d.mts +9 -0
- package/dist/actions/sso-stub.d.mts.map +1 -0
- package/dist/actions/sso-stub.mjs +29 -0
- package/dist/actions/sso-stub.mjs.map +1 -0
- package/dist/actions/template-get.cjs +78 -0
- package/dist/actions/template-get.cjs.map +1 -0
- package/dist/actions/template-get.d.cts +9 -0
- package/dist/actions/template-get.d.cts.map +1 -0
- package/dist/actions/template-get.d.mts +9 -0
- package/dist/actions/template-get.d.mts.map +1 -0
- package/dist/actions/template-get.mjs +77 -0
- package/dist/actions/template-get.mjs.map +1 -0
- package/dist/actions/templates-list.cjs +52 -0
- package/dist/actions/templates-list.cjs.map +1 -0
- package/dist/actions/templates-list.d.cts +9 -0
- package/dist/actions/templates-list.d.cts.map +1 -0
- package/dist/actions/templates-list.d.mts +9 -0
- package/dist/actions/templates-list.d.mts.map +1 -0
- package/dist/actions/templates-list.mjs +51 -0
- package/dist/actions/templates-list.mjs.map +1 -0
- package/dist/actions/transaction-type-get.cjs +22 -0
- package/dist/actions/transaction-type-get.cjs.map +1 -0
- package/dist/actions/transaction-type-get.d.cts +9 -0
- package/dist/actions/transaction-type-get.d.cts.map +1 -0
- package/dist/actions/transaction-type-get.d.mts +9 -0
- package/dist/actions/transaction-type-get.d.mts.map +1 -0
- package/dist/actions/transaction-type-get.mjs +19 -0
- package/dist/actions/transaction-type-get.mjs.map +1 -0
- package/dist/actions/transaction-type-update.cjs +24 -0
- package/dist/actions/transaction-type-update.cjs.map +1 -0
- package/dist/actions/transaction-type-update.d.cts +9 -0
- package/dist/actions/transaction-type-update.d.cts.map +1 -0
- package/dist/actions/transaction-type-update.d.mts +9 -0
- package/dist/actions/transaction-type-update.d.mts.map +1 -0
- package/dist/actions/transaction-type-update.mjs +21 -0
- package/dist/actions/transaction-type-update.mjs.map +1 -0
- package/dist/app.cjs +9 -0
- package/dist/app.cjs.map +1 -0
- package/dist/app.d.cts +5 -0
- package/dist/app.d.cts.map +1 -0
- package/dist/app.d.mts +5 -0
- package/dist/app.d.mts.map +1 -0
- package/dist/app.mjs +10 -0
- package/dist/app.mjs.map +1 -0
- package/dist/catalog.cjs +15 -0
- package/dist/catalog.cjs.map +1 -0
- package/dist/catalog.d.cts +14 -0
- package/dist/catalog.d.cts.map +1 -0
- package/dist/catalog.d.mts +14 -0
- package/dist/catalog.d.mts.map +1 -0
- package/dist/catalog.mjs +15 -0
- package/dist/catalog.mjs.map +1 -0
- package/dist/execute.cjs +18 -0
- package/dist/execute.cjs.map +1 -0
- package/dist/execute.mjs +18 -0
- package/dist/execute.mjs.map +1 -0
- package/dist/index.cjs +48 -0
- package/dist/index.d.cts +24 -0
- package/dist/index.d.mts +24 -0
- package/dist/index.mjs +25 -0
- package/package.json +49 -0
package/README.md
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# @keystrokehq/spondyr
|
|
2
|
+
|
|
3
|
+
Keystroke-managed integration.
|
|
4
|
+
|
|
5
|
+
**App:** `spondyr`
|
|
6
|
+
**Version:** `20260615_00`
|
|
7
|
+
**Actions:** 21
|
|
8
|
+
|
|
9
|
+
```ts
|
|
10
|
+
import { defineAgent } from "@keystrokehq/keystroke/agent";
|
|
11
|
+
import { spondyrConditionsList } from "@keystrokehq/spondyr/actions";
|
|
12
|
+
|
|
13
|
+
export default defineAgent({
|
|
14
|
+
key: "spondyr-agent",
|
|
15
|
+
tools: [spondyrConditionsList],
|
|
16
|
+
});
|
|
17
|
+
```
|
package/dist/action.cjs
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
const require_app = require("./app.cjs");
|
|
2
|
+
const require_execute = require("./execute.cjs");
|
|
3
|
+
require("zod");
|
|
4
|
+
//#region src/action.ts
|
|
5
|
+
/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */
|
|
6
|
+
function action(tool, def) {
|
|
7
|
+
return require_app.spondyr.action({
|
|
8
|
+
slug: def.slug,
|
|
9
|
+
name: def.name,
|
|
10
|
+
description: def.description,
|
|
11
|
+
input: def.input,
|
|
12
|
+
output: def.output,
|
|
13
|
+
async run(input) {
|
|
14
|
+
return def.output.parse(await require_execute.executeSpondyrTool(tool, input));
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
//#endregion
|
|
19
|
+
exports.action = action;
|
|
20
|
+
|
|
21
|
+
//# sourceMappingURL=action.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"action.cjs","names":["spondyr","executeSpondyrTool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { spondyr } from \"./app\";\nimport { executeSpondyrTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: z.ZodTypeAny;\n output: z.ZodTypeAny;\n },\n) {\n return spondyr.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await executeSpondyrTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAOA,YAAAA,QAAQ,OAAO;EACpB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAMC,gBAAAA,mBAAmB,MAAM,KAAgC,CAAC;EAC1F;CACF,CAAC;AACH"}
|
package/dist/action.mjs
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { spondyr } from "./app.mjs";
|
|
2
|
+
import { executeSpondyrTool } from "./execute.mjs";
|
|
3
|
+
import "zod";
|
|
4
|
+
//#region src/action.ts
|
|
5
|
+
/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */
|
|
6
|
+
function action(tool, def) {
|
|
7
|
+
return spondyr.action({
|
|
8
|
+
slug: def.slug,
|
|
9
|
+
name: def.name,
|
|
10
|
+
description: def.description,
|
|
11
|
+
input: def.input,
|
|
12
|
+
output: def.output,
|
|
13
|
+
async run(input) {
|
|
14
|
+
return def.output.parse(await executeSpondyrTool(tool, input));
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
//#endregion
|
|
19
|
+
export { action };
|
|
20
|
+
|
|
21
|
+
//# sourceMappingURL=action.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { spondyr } from \"./app\";\nimport { executeSpondyrTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: z.ZodTypeAny;\n output: z.ZodTypeAny;\n },\n) {\n return spondyr.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await executeSpondyrTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAO,QAAQ,OAAO;EACpB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,mBAAmB,MAAM,KAAgC,CAAC;EAC1F;CACF,CAAC;AACH"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/conditions-list.ts
|
|
4
|
+
const SpondyrConditionsListInput = zod.z.object({ TransactionType: zod.z.string().describe("The name of the Transaction Type whose conditions are to be listed. Use the Get Transaction Types action first to discover available transaction types.") }).describe("Request model for listing conditions associated with a transaction type.");
|
|
5
|
+
const SpondyrConditionsList_ConditionItemSchema = zod.z.object({
|
|
6
|
+
Name: zod.z.string().describe("The unique name identifier of the condition."),
|
|
7
|
+
FieldName: zod.z.string().describe("The JSON or CSV field name from transaction data that this condition evaluates."),
|
|
8
|
+
PossibleValues: zod.z.string().describe("Newline-delimited list of values that this condition can match against. If empty, condition matches any value.").nullable().optional(),
|
|
9
|
+
TransactionType: zod.z.string().describe("The Transaction Type this condition is associated with.")
|
|
10
|
+
}).describe("Represents a single condition configured for a transaction type.\nConditions are used to determine template selection based on transaction data values.");
|
|
11
|
+
const SpondyrConditionsListOutput = zod.z.object({
|
|
12
|
+
Data: zod.z.array(SpondyrConditionsList_ConditionItemSchema).describe("List of conditions configured for the specified transaction type. Empty list if no conditions exist.").nullable().optional(),
|
|
13
|
+
APIStatus: zod.z.enum(["OK", "ERROR"]).describe("API response status: OK if successful, ERROR otherwise."),
|
|
14
|
+
ErrorMessage: zod.z.string().describe("Error message when APIStatus is ERROR.").nullable().optional()
|
|
15
|
+
}).describe("Response model containing all conditions for a transaction type.");
|
|
16
|
+
const spondyrConditionsList = require_action.action("SPONDYR_CONDITIONS_LIST", {
|
|
17
|
+
slug: "spondyr-conditions-list",
|
|
18
|
+
name: "List Conditions",
|
|
19
|
+
description: "Tool to list all conditions for a transaction type. Use when you need to discover existing condition rules before creating templates or generating correspondence. Conditions define criteria for selecting specific templates based on transaction data.",
|
|
20
|
+
input: SpondyrConditionsListInput,
|
|
21
|
+
output: SpondyrConditionsListOutput
|
|
22
|
+
});
|
|
23
|
+
//#endregion
|
|
24
|
+
exports.spondyrConditionsList = spondyrConditionsList;
|
|
25
|
+
|
|
26
|
+
//# sourceMappingURL=conditions-list.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"conditions-list.cjs","names":["z","action"],"sources":["../../src/actions/conditions-list.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpondyrConditionsListInput: z.ZodTypeAny = z.object({\n TransactionType: z.string().describe(\"The name of the Transaction Type whose conditions are to be listed. Use the Get Transaction Types action first to discover available transaction types.\"),\n}).describe(\"Request model for listing conditions associated with a transaction type.\");\nconst SpondyrConditionsList_ConditionItemSchema: z.ZodTypeAny = z.object({\n Name: z.string().describe(\"The unique name identifier of the condition.\"),\n FieldName: z.string().describe(\"The JSON or CSV field name from transaction data that this condition evaluates.\"),\n PossibleValues: z.string().describe(\"Newline-delimited list of values that this condition can match against. If empty, condition matches any value.\").nullable().optional(),\n TransactionType: z.string().describe(\"The Transaction Type this condition is associated with.\"),\n}).describe(\"Represents a single condition configured for a transaction type.\\nConditions are used to determine template selection based on transaction data values.\");\nexport const SpondyrConditionsListOutput: z.ZodTypeAny = z.object({\n Data: z.array(SpondyrConditionsList_ConditionItemSchema).describe(\"List of conditions configured for the specified transaction type. Empty list if no conditions exist.\").nullable().optional(),\n APIStatus: z.enum([\"OK\", \"ERROR\"]).describe(\"API response status: OK if successful, ERROR otherwise.\"),\n ErrorMessage: z.string().describe(\"Error message when APIStatus is ERROR.\").nullable().optional(),\n}).describe(\"Response model containing all conditions for a transaction type.\");\n\nexport const spondyrConditionsList = action(\"SPONDYR_CONDITIONS_LIST\", {\n slug: \"spondyr-conditions-list\",\n name: \"List Conditions\",\n description: \"Tool to list all conditions for a transaction type. Use when you need to discover existing condition rules before creating templates or generating correspondence. Conditions define criteria for selecting specific templates based on transaction data.\",\n input: SpondyrConditionsListInput,\n output: SpondyrConditionsListOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA2CA,IAAAA,EAAE,OAAO,EAC/D,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yJAAyJ,EAChM,CAAC,CAAC,CAAC,SAAS,0EAA0E;AACtF,MAAM,4CAA0DA,IAAAA,EAAE,OAAO;CACvE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C;CACxE,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iFAAiF;CAChH,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gHAAgH,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1K,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD;AAChG,CAAC,CAAC,CAAC,SAAS,yJAAyJ;AACrK,MAAa,8BAA4CA,IAAAA,EAAE,OAAO;CAChE,MAAMA,IAAAA,EAAE,MAAM,yCAAyC,CAAC,CAAC,SAAS,sGAAsG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9L,WAAWA,IAAAA,EAAE,KAAK,CAAC,MAAM,OAAO,CAAC,CAAC,CAAC,SAAS,yDAAyD;CACrG,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAClG,CAAC,CAAC,CAAC,SAAS,kEAAkE;AAE9E,MAAa,wBAAwBC,eAAAA,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/conditions-list.d.ts
|
|
4
|
+
declare const SpondyrConditionsListInput: z.ZodTypeAny;
|
|
5
|
+
declare const SpondyrConditionsListOutput: z.ZodTypeAny;
|
|
6
|
+
declare const spondyrConditionsList: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { spondyrConditionsList };
|
|
9
|
+
//# sourceMappingURL=conditions-list.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"conditions-list.d.cts","names":[],"sources":["../../src/actions/conditions-list.ts"],"mappings":";;;cAIa,0BAAA,EAA4B,CAAA,CAAE,UAE4C;AAAA,cAO1E,2BAAA,EAA6B,CAAA,CAAE,UAImC;AAAA,cAElE,qBAAA,gCAAqB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/conditions-list.d.ts
|
|
4
|
+
declare const SpondyrConditionsListInput: z.ZodTypeAny;
|
|
5
|
+
declare const SpondyrConditionsListOutput: z.ZodTypeAny;
|
|
6
|
+
declare const spondyrConditionsList: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { spondyrConditionsList };
|
|
9
|
+
//# sourceMappingURL=conditions-list.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"conditions-list.d.mts","names":[],"sources":["../../src/actions/conditions-list.ts"],"mappings":";;;cAIa,0BAAA,EAA4B,CAAA,CAAE,UAE4C;AAAA,cAO1E,2BAAA,EAA6B,CAAA,CAAE,UAImC;AAAA,cAElE,qBAAA,gCAAqB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/conditions-list.ts
|
|
4
|
+
const SpondyrConditionsListInput = z.object({ TransactionType: z.string().describe("The name of the Transaction Type whose conditions are to be listed. Use the Get Transaction Types action first to discover available transaction types.") }).describe("Request model for listing conditions associated with a transaction type.");
|
|
5
|
+
const SpondyrConditionsList_ConditionItemSchema = z.object({
|
|
6
|
+
Name: z.string().describe("The unique name identifier of the condition."),
|
|
7
|
+
FieldName: z.string().describe("The JSON or CSV field name from transaction data that this condition evaluates."),
|
|
8
|
+
PossibleValues: z.string().describe("Newline-delimited list of values that this condition can match against. If empty, condition matches any value.").nullable().optional(),
|
|
9
|
+
TransactionType: z.string().describe("The Transaction Type this condition is associated with.")
|
|
10
|
+
}).describe("Represents a single condition configured for a transaction type.\nConditions are used to determine template selection based on transaction data values.");
|
|
11
|
+
const spondyrConditionsList = action("SPONDYR_CONDITIONS_LIST", {
|
|
12
|
+
slug: "spondyr-conditions-list",
|
|
13
|
+
name: "List Conditions",
|
|
14
|
+
description: "Tool to list all conditions for a transaction type. Use when you need to discover existing condition rules before creating templates or generating correspondence. Conditions define criteria for selecting specific templates based on transaction data.",
|
|
15
|
+
input: SpondyrConditionsListInput,
|
|
16
|
+
output: z.object({
|
|
17
|
+
Data: z.array(SpondyrConditionsList_ConditionItemSchema).describe("List of conditions configured for the specified transaction type. Empty list if no conditions exist.").nullable().optional(),
|
|
18
|
+
APIStatus: z.enum(["OK", "ERROR"]).describe("API response status: OK if successful, ERROR otherwise."),
|
|
19
|
+
ErrorMessage: z.string().describe("Error message when APIStatus is ERROR.").nullable().optional()
|
|
20
|
+
}).describe("Response model containing all conditions for a transaction type.")
|
|
21
|
+
});
|
|
22
|
+
//#endregion
|
|
23
|
+
export { spondyrConditionsList };
|
|
24
|
+
|
|
25
|
+
//# sourceMappingURL=conditions-list.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"conditions-list.mjs","names":[],"sources":["../../src/actions/conditions-list.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpondyrConditionsListInput: z.ZodTypeAny = z.object({\n TransactionType: z.string().describe(\"The name of the Transaction Type whose conditions are to be listed. Use the Get Transaction Types action first to discover available transaction types.\"),\n}).describe(\"Request model for listing conditions associated with a transaction type.\");\nconst SpondyrConditionsList_ConditionItemSchema: z.ZodTypeAny = z.object({\n Name: z.string().describe(\"The unique name identifier of the condition.\"),\n FieldName: z.string().describe(\"The JSON or CSV field name from transaction data that this condition evaluates.\"),\n PossibleValues: z.string().describe(\"Newline-delimited list of values that this condition can match against. If empty, condition matches any value.\").nullable().optional(),\n TransactionType: z.string().describe(\"The Transaction Type this condition is associated with.\"),\n}).describe(\"Represents a single condition configured for a transaction type.\\nConditions are used to determine template selection based on transaction data values.\");\nexport const SpondyrConditionsListOutput: z.ZodTypeAny = z.object({\n Data: z.array(SpondyrConditionsList_ConditionItemSchema).describe(\"List of conditions configured for the specified transaction type. Empty list if no conditions exist.\").nullable().optional(),\n APIStatus: z.enum([\"OK\", \"ERROR\"]).describe(\"API response status: OK if successful, ERROR otherwise.\"),\n ErrorMessage: z.string().describe(\"Error message when APIStatus is ERROR.\").nullable().optional(),\n}).describe(\"Response model containing all conditions for a transaction type.\");\n\nexport const spondyrConditionsList = action(\"SPONDYR_CONDITIONS_LIST\", {\n slug: \"spondyr-conditions-list\",\n name: \"List Conditions\",\n description: \"Tool to list all conditions for a transaction type. Use when you need to discover existing condition rules before creating templates or generating correspondence. Conditions define criteria for selecting specific templates based on transaction data.\",\n input: SpondyrConditionsListInput,\n output: SpondyrConditionsListOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA2C,EAAE,OAAO,EAC/D,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,yJAAyJ,EAChM,CAAC,CAAC,CAAC,SAAS,0EAA0E;AACtF,MAAM,4CAA0D,EAAE,OAAO;CACvE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C;CACxE,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,iFAAiF;CAChH,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,gHAAgH,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1K,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD;AAChG,CAAC,CAAC,CAAC,SAAS,yJAAyJ;AAOrK,MAAa,wBAAwB,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAXuD,EAAE,OAAO;EAChE,MAAM,EAAE,MAAM,yCAAyC,CAAC,CAAC,SAAS,sGAAsG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9L,WAAW,EAAE,KAAK,CAAC,MAAM,OAAO,CAAC,CAAC,CAAC,SAAS,yDAAyD;EACrG,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClG,CAAC,CAAC,CAAC,SAAS,kEAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/create-condition.ts
|
|
4
|
+
const SpondyrCreateConditionInput = zod.z.object({
|
|
5
|
+
Name: zod.z.string().describe("A unique name identifier for this condition rule. Used to reference this condition when configuring template selection logic."),
|
|
6
|
+
FieldName: zod.z.string().describe("The data field from the transaction to evaluate. For nested fields, use underscore notation (e.g., 'Address_City'). Must exist in the transaction type's schema."),
|
|
7
|
+
PossibleValues: zod.z.string().describe("Optional list of allowed values for this field, separated by newlines. If provided, the condition will match only when the field value is in this list. Omit to allow any value.").optional(),
|
|
8
|
+
TransactionType: zod.z.string().describe("The name of an existing Transaction Type to create this condition rule for. Must match a Transaction Type previously created in the system.")
|
|
9
|
+
}).describe("Request model for creating a new Condition in Spondyr.");
|
|
10
|
+
const SpondyrCreateConditionOutput = zod.z.object({
|
|
11
|
+
APIStatus: zod.z.enum(["OK", "ERROR"]).describe("Status of the API operation: 'OK' indicates successful creation, 'ERROR' indicates failure."),
|
|
12
|
+
ReferenceID: zod.z.string().describe("The name identifier of the created condition. Matches the 'Name' provided in the request."),
|
|
13
|
+
ErrorMessage: zod.z.string().describe("Human-readable error description when APIStatus is 'ERROR'. Null when successful.").nullable().optional()
|
|
14
|
+
}).describe("Response model for creating a new Condition in Spondyr.");
|
|
15
|
+
const spondyrCreateCondition = require_action.action("SPONDYR_CREATE_CONDITION", {
|
|
16
|
+
slug: "spondyr-create-condition",
|
|
17
|
+
name: "Create Condition",
|
|
18
|
+
description: "Create a condition rule for template selection in Spondyr. Conditions define matching criteria on transaction data fields that determine which document template to use. For example, create a condition on an 'OrderStatus' field to trigger different email templates for 'Pending' vs 'Shipped' orders.",
|
|
19
|
+
input: SpondyrCreateConditionInput,
|
|
20
|
+
output: SpondyrCreateConditionOutput
|
|
21
|
+
});
|
|
22
|
+
//#endregion
|
|
23
|
+
exports.spondyrCreateCondition = spondyrCreateCondition;
|
|
24
|
+
|
|
25
|
+
//# sourceMappingURL=create-condition.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-condition.cjs","names":["z","action"],"sources":["../../src/actions/create-condition.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpondyrCreateConditionInput: z.ZodTypeAny = z.object({\n Name: z.string().describe(\"A unique name identifier for this condition rule. Used to reference this condition when configuring template selection logic.\"),\n FieldName: z.string().describe(\"The data field from the transaction to evaluate. For nested fields, use underscore notation (e.g., 'Address_City'). Must exist in the transaction type's schema.\"),\n PossibleValues: z.string().describe(\"Optional list of allowed values for this field, separated by newlines. If provided, the condition will match only when the field value is in this list. Omit to allow any value.\").optional(),\n TransactionType: z.string().describe(\"The name of an existing Transaction Type to create this condition rule for. Must match a Transaction Type previously created in the system.\"),\n}).describe(\"Request model for creating a new Condition in Spondyr.\");\nexport const SpondyrCreateConditionOutput: z.ZodTypeAny = z.object({\n APIStatus: z.enum([\"OK\", \"ERROR\"]).describe(\"Status of the API operation: 'OK' indicates successful creation, 'ERROR' indicates failure.\"),\n ReferenceID: z.string().describe(\"The name identifier of the created condition. Matches the 'Name' provided in the request.\"),\n ErrorMessage: z.string().describe(\"Human-readable error description when APIStatus is 'ERROR'. Null when successful.\").nullable().optional(),\n}).describe(\"Response model for creating a new Condition in Spondyr.\");\n\nexport const spondyrCreateCondition = action(\"SPONDYR_CREATE_CONDITION\", {\n slug: \"spondyr-create-condition\",\n name: \"Create Condition\",\n description: \"Create a condition rule for template selection in Spondyr. Conditions define matching criteria on transaction data fields that determine which document template to use. For example, create a condition on an 'OrderStatus' field to trigger different email templates for 'Pending' vs 'Shipped' orders.\",\n input: SpondyrCreateConditionInput,\n output: SpondyrCreateConditionOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA4CA,IAAAA,EAAE,OAAO;CAChE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+HAA+H;CACzJ,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kKAAkK;CACjM,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kLAAkL,CAAC,CAAC,SAAS;CACjO,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6IAA6I;AACpL,CAAC,CAAC,CAAC,SAAS,wDAAwD;AACpE,MAAa,+BAA6CA,IAAAA,EAAE,OAAO;CACjE,WAAWA,IAAAA,EAAE,KAAK,CAAC,MAAM,OAAO,CAAC,CAAC,CAAC,SAAS,6FAA6F;CACzI,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2FAA2F;CAC5H,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mFAAmF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC7I,CAAC,CAAC,CAAC,SAAS,yDAAyD;AAErE,MAAa,yBAAyBC,eAAAA,OAAO,4BAA4B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/create-condition.d.ts
|
|
4
|
+
declare const SpondyrCreateConditionInput: z.ZodTypeAny;
|
|
5
|
+
declare const SpondyrCreateConditionOutput: z.ZodTypeAny;
|
|
6
|
+
declare const spondyrCreateCondition: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { spondyrCreateCondition };
|
|
9
|
+
//# sourceMappingURL=create-condition.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-condition.d.cts","names":[],"sources":["../../src/actions/create-condition.ts"],"mappings":";;;cAIa,2BAAA,EAA6B,CAAA,CAAE,UAKyB;AAAA,cACxD,4BAAA,EAA8B,CAAA,CAAE,UAIyB;AAAA,cAEzD,sBAAA,gCAAsB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/create-condition.d.ts
|
|
4
|
+
declare const SpondyrCreateConditionInput: z.ZodTypeAny;
|
|
5
|
+
declare const SpondyrCreateConditionOutput: z.ZodTypeAny;
|
|
6
|
+
declare const spondyrCreateCondition: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { spondyrCreateCondition };
|
|
9
|
+
//# sourceMappingURL=create-condition.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-condition.d.mts","names":[],"sources":["../../src/actions/create-condition.ts"],"mappings":";;;cAIa,2BAAA,EAA6B,CAAA,CAAE,UAKyB;AAAA,cACxD,4BAAA,EAA8B,CAAA,CAAE,UAIyB;AAAA,cAEzD,sBAAA,gCAAsB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
const spondyrCreateCondition = action("SPONDYR_CREATE_CONDITION", {
|
|
4
|
+
slug: "spondyr-create-condition",
|
|
5
|
+
name: "Create Condition",
|
|
6
|
+
description: "Create a condition rule for template selection in Spondyr. Conditions define matching criteria on transaction data fields that determine which document template to use. For example, create a condition on an 'OrderStatus' field to trigger different email templates for 'Pending' vs 'Shipped' orders.",
|
|
7
|
+
input: z.object({
|
|
8
|
+
Name: z.string().describe("A unique name identifier for this condition rule. Used to reference this condition when configuring template selection logic."),
|
|
9
|
+
FieldName: z.string().describe("The data field from the transaction to evaluate. For nested fields, use underscore notation (e.g., 'Address_City'). Must exist in the transaction type's schema."),
|
|
10
|
+
PossibleValues: z.string().describe("Optional list of allowed values for this field, separated by newlines. If provided, the condition will match only when the field value is in this list. Omit to allow any value.").optional(),
|
|
11
|
+
TransactionType: z.string().describe("The name of an existing Transaction Type to create this condition rule for. Must match a Transaction Type previously created in the system.")
|
|
12
|
+
}).describe("Request model for creating a new Condition in Spondyr."),
|
|
13
|
+
output: z.object({
|
|
14
|
+
APIStatus: z.enum(["OK", "ERROR"]).describe("Status of the API operation: 'OK' indicates successful creation, 'ERROR' indicates failure."),
|
|
15
|
+
ReferenceID: z.string().describe("The name identifier of the created condition. Matches the 'Name' provided in the request."),
|
|
16
|
+
ErrorMessage: z.string().describe("Human-readable error description when APIStatus is 'ERROR'. Null when successful.").nullable().optional()
|
|
17
|
+
}).describe("Response model for creating a new Condition in Spondyr.")
|
|
18
|
+
});
|
|
19
|
+
//#endregion
|
|
20
|
+
export { spondyrCreateCondition };
|
|
21
|
+
|
|
22
|
+
//# sourceMappingURL=create-condition.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-condition.mjs","names":[],"sources":["../../src/actions/create-condition.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpondyrCreateConditionInput: z.ZodTypeAny = z.object({\n Name: z.string().describe(\"A unique name identifier for this condition rule. Used to reference this condition when configuring template selection logic.\"),\n FieldName: z.string().describe(\"The data field from the transaction to evaluate. For nested fields, use underscore notation (e.g., 'Address_City'). Must exist in the transaction type's schema.\"),\n PossibleValues: z.string().describe(\"Optional list of allowed values for this field, separated by newlines. If provided, the condition will match only when the field value is in this list. Omit to allow any value.\").optional(),\n TransactionType: z.string().describe(\"The name of an existing Transaction Type to create this condition rule for. Must match a Transaction Type previously created in the system.\"),\n}).describe(\"Request model for creating a new Condition in Spondyr.\");\nexport const SpondyrCreateConditionOutput: z.ZodTypeAny = z.object({\n APIStatus: z.enum([\"OK\", \"ERROR\"]).describe(\"Status of the API operation: 'OK' indicates successful creation, 'ERROR' indicates failure.\"),\n ReferenceID: z.string().describe(\"The name identifier of the created condition. Matches the 'Name' provided in the request.\"),\n ErrorMessage: z.string().describe(\"Human-readable error description when APIStatus is 'ERROR'. Null when successful.\").nullable().optional(),\n}).describe(\"Response model for creating a new Condition in Spondyr.\");\n\nexport const spondyrCreateCondition = action(\"SPONDYR_CREATE_CONDITION\", {\n slug: \"spondyr-create-condition\",\n name: \"Create Condition\",\n description: \"Create a condition rule for template selection in Spondyr. Conditions define matching criteria on transaction data fields that determine which document template to use. For example, create a condition on an 'OrderStatus' field to trigger different email templates for 'Pending' vs 'Shipped' orders.\",\n input: SpondyrCreateConditionInput,\n output: SpondyrCreateConditionOutput,\n});\n"],"mappings":";;AAgBA,MAAa,yBAAyB,OAAO,4BAA4B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAhBuD,EAAE,OAAO;EAChE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,+HAA+H;EACzJ,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,kKAAkK;EACjM,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,kLAAkL,CAAC,CAAC,SAAS;EACjO,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,6IAA6I;CACpL,CAAC,CAAC,CAAC,SAAS,wDAWH;CACP,QAXwD,EAAE,OAAO;EACjE,WAAW,EAAE,KAAK,CAAC,MAAM,OAAO,CAAC,CAAC,CAAC,SAAS,6FAA6F;EACzI,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,2FAA2F;EAC5H,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,mFAAmF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7I,CAAC,CAAC,CAAC,SAAS,yDAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/create-transaction-type.ts
|
|
4
|
+
const SpondyrCreateTransactionTypeInput = zod.z.object({
|
|
5
|
+
Name: zod.z.string().describe("The name of the Transaction Type to create"),
|
|
6
|
+
TemplateJSON: zod.z.string().describe("JSON-formatted string containing sample data defining the transaction schema")
|
|
7
|
+
}).describe("Request model for creating a new Transaction Type in Spondyr.");
|
|
8
|
+
const SpondyrCreateTransactionTypeOutput = zod.z.object({
|
|
9
|
+
APIStatus: zod.z.enum(["OK", "ERROR"]).describe("APIStatus: OK if successful, ERROR if not"),
|
|
10
|
+
ReferenceID: zod.z.string().describe("Unique reference ID for the created Transaction Type. Present when APIStatus is OK.").nullable().optional(),
|
|
11
|
+
ErrorMessage: zod.z.string().describe("Error message if APIStatus is ERROR").nullable().optional()
|
|
12
|
+
});
|
|
13
|
+
const spondyrCreateTransactionType = require_action.action("SPONDYR_CREATE_TRANSACTION_TYPE", {
|
|
14
|
+
slug: "spondyr-create-transaction-type",
|
|
15
|
+
name: "Create Transaction Type",
|
|
16
|
+
description: "Tool to create a new transaction type. Use after defining the JSON schema for your data to register it in Spondyr.",
|
|
17
|
+
input: SpondyrCreateTransactionTypeInput,
|
|
18
|
+
output: SpondyrCreateTransactionTypeOutput
|
|
19
|
+
});
|
|
20
|
+
//#endregion
|
|
21
|
+
exports.spondyrCreateTransactionType = spondyrCreateTransactionType;
|
|
22
|
+
|
|
23
|
+
//# sourceMappingURL=create-transaction-type.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-transaction-type.cjs","names":["z","action"],"sources":["../../src/actions/create-transaction-type.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpondyrCreateTransactionTypeInput: z.ZodTypeAny = z.object({\n Name: z.string().describe(\"The name of the Transaction Type to create\"),\n TemplateJSON: z.string().describe(\"JSON-formatted string containing sample data defining the transaction schema\"),\n}).describe(\"Request model for creating a new Transaction Type in Spondyr.\");\nexport const SpondyrCreateTransactionTypeOutput: z.ZodTypeAny = z.object({\n APIStatus: z.enum([\"OK\", \"ERROR\"]).describe(\"APIStatus: OK if successful, ERROR if not\"),\n ReferenceID: z.string().describe(\"Unique reference ID for the created Transaction Type. Present when APIStatus is OK.\").nullable().optional(),\n ErrorMessage: z.string().describe(\"Error message if APIStatus is ERROR\").nullable().optional(),\n});\n\nexport const spondyrCreateTransactionType = action(\"SPONDYR_CREATE_TRANSACTION_TYPE\", {\n slug: \"spondyr-create-transaction-type\",\n name: \"Create Transaction Type\",\n description: \"Tool to create a new transaction type. Use after defining the JSON schema for your data to register it in Spondyr.\",\n input: SpondyrCreateTransactionTypeInput,\n output: SpondyrCreateTransactionTypeOutput,\n});\n"],"mappings":";;;AAIA,MAAa,oCAAkDA,IAAAA,EAAE,OAAO;CACtE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C;CACtE,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8EAA8E;AAClH,CAAC,CAAC,CAAC,SAAS,+DAA+D;AAC3E,MAAa,qCAAmDA,IAAAA,EAAE,OAAO;CACvE,WAAWA,IAAAA,EAAE,KAAK,CAAC,MAAM,OAAO,CAAC,CAAC,CAAC,SAAS,2CAA2C;CACvF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qFAAqF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5I,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC/F,CAAC;AAED,MAAa,+BAA+BC,eAAAA,OAAO,mCAAmC;CACpF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/create-transaction-type.d.ts
|
|
4
|
+
declare const SpondyrCreateTransactionTypeInput: z.ZodTypeAny;
|
|
5
|
+
declare const SpondyrCreateTransactionTypeOutput: z.ZodTypeAny;
|
|
6
|
+
declare const spondyrCreateTransactionType: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { spondyrCreateTransactionType };
|
|
9
|
+
//# sourceMappingURL=create-transaction-type.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-transaction-type.d.cts","names":[],"sources":["../../src/actions/create-transaction-type.ts"],"mappings":";;;cAIa,iCAAA,EAAmC,CAAA,CAAE,UAG0B;AAAA,cAC/D,kCAAA,EAAoC,CAAA,CAAE,UAIjD;AAAA,cAEW,4BAAA,gCAA4B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/create-transaction-type.d.ts
|
|
4
|
+
declare const SpondyrCreateTransactionTypeInput: z.ZodTypeAny;
|
|
5
|
+
declare const SpondyrCreateTransactionTypeOutput: z.ZodTypeAny;
|
|
6
|
+
declare const spondyrCreateTransactionType: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { spondyrCreateTransactionType };
|
|
9
|
+
//# sourceMappingURL=create-transaction-type.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-transaction-type.d.mts","names":[],"sources":["../../src/actions/create-transaction-type.ts"],"mappings":";;;cAIa,iCAAA,EAAmC,CAAA,CAAE,UAG0B;AAAA,cAC/D,kCAAA,EAAoC,CAAA,CAAE,UAIjD;AAAA,cAEW,4BAAA,gCAA4B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
const spondyrCreateTransactionType = action("SPONDYR_CREATE_TRANSACTION_TYPE", {
|
|
4
|
+
slug: "spondyr-create-transaction-type",
|
|
5
|
+
name: "Create Transaction Type",
|
|
6
|
+
description: "Tool to create a new transaction type. Use after defining the JSON schema for your data to register it in Spondyr.",
|
|
7
|
+
input: z.object({
|
|
8
|
+
Name: z.string().describe("The name of the Transaction Type to create"),
|
|
9
|
+
TemplateJSON: z.string().describe("JSON-formatted string containing sample data defining the transaction schema")
|
|
10
|
+
}).describe("Request model for creating a new Transaction Type in Spondyr."),
|
|
11
|
+
output: z.object({
|
|
12
|
+
APIStatus: z.enum(["OK", "ERROR"]).describe("APIStatus: OK if successful, ERROR if not"),
|
|
13
|
+
ReferenceID: z.string().describe("Unique reference ID for the created Transaction Type. Present when APIStatus is OK.").nullable().optional(),
|
|
14
|
+
ErrorMessage: z.string().describe("Error message if APIStatus is ERROR").nullable().optional()
|
|
15
|
+
})
|
|
16
|
+
});
|
|
17
|
+
//#endregion
|
|
18
|
+
export { spondyrCreateTransactionType };
|
|
19
|
+
|
|
20
|
+
//# sourceMappingURL=create-transaction-type.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-transaction-type.mjs","names":[],"sources":["../../src/actions/create-transaction-type.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpondyrCreateTransactionTypeInput: z.ZodTypeAny = z.object({\n Name: z.string().describe(\"The name of the Transaction Type to create\"),\n TemplateJSON: z.string().describe(\"JSON-formatted string containing sample data defining the transaction schema\"),\n}).describe(\"Request model for creating a new Transaction Type in Spondyr.\");\nexport const SpondyrCreateTransactionTypeOutput: z.ZodTypeAny = z.object({\n APIStatus: z.enum([\"OK\", \"ERROR\"]).describe(\"APIStatus: OK if successful, ERROR if not\"),\n ReferenceID: z.string().describe(\"Unique reference ID for the created Transaction Type. Present when APIStatus is OK.\").nullable().optional(),\n ErrorMessage: z.string().describe(\"Error message if APIStatus is ERROR\").nullable().optional(),\n});\n\nexport const spondyrCreateTransactionType = action(\"SPONDYR_CREATE_TRANSACTION_TYPE\", {\n slug: \"spondyr-create-transaction-type\",\n name: \"Create Transaction Type\",\n description: \"Tool to create a new transaction type. Use after defining the JSON schema for your data to register it in Spondyr.\",\n input: SpondyrCreateTransactionTypeInput,\n output: SpondyrCreateTransactionTypeOutput,\n});\n"],"mappings":";;AAcA,MAAa,+BAA+B,OAAO,mCAAmC;CACpF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAd6D,EAAE,OAAO;EACtE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C;EACtE,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,8EAA8E;CAClH,CAAC,CAAC,CAAC,SAAS,+DAWH;CACP,QAX8D,EAAE,OAAO;EACvE,WAAW,EAAE,KAAK,CAAC,MAAM,OAAO,CAAC,CAAC,CAAC,SAAS,2CAA2C;EACvF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,qFAAqF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5I,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/F,CAOU;AACV,CAAC"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/deliver-spondyr.ts
|
|
4
|
+
const SpondyrDeliverSpondyrInput = zod.z.object({
|
|
5
|
+
Template: zod.z.string().default("All").describe("Templates to deliver; 'All' or comma-delimited list. Defaults to 'All'.").optional(),
|
|
6
|
+
ReferenceID: zod.z.string().describe("The unique reference ID returned from the original generate request (POST /Spondyr). Used to identify which correspondence to deliver."),
|
|
7
|
+
NewRecipients: zod.z.array(zod.z.object({
|
|
8
|
+
Fax: zod.z.string().describe("The recipient's fax number.").optional(),
|
|
9
|
+
Zip: zod.z.string().describe("The recipient's postal code.").optional(),
|
|
10
|
+
City: zod.z.string().describe("The recipient's city.").optional(),
|
|
11
|
+
Email: zod.z.string().describe("The recipient's email address.").optional(),
|
|
12
|
+
State: zod.z.string().describe("The recipient's state.").optional(),
|
|
13
|
+
Address1: zod.z.string().describe("The recipient's street address.").optional(),
|
|
14
|
+
Address2: zod.z.string().describe("The recipient's street address 2.").optional(),
|
|
15
|
+
LastName: zod.z.string().describe("The recipient's last name.").optional(),
|
|
16
|
+
RemoteID: zod.z.string().describe("The recipient's identifier from your application.").optional(),
|
|
17
|
+
Template: zod.z.string().describe("Comma-delimited list of template names from the original generate request or 'All'.").optional(),
|
|
18
|
+
FirstName: zod.z.string().describe("The recipient's first name.").optional(),
|
|
19
|
+
MobilePhone: zod.z.string().describe("The recipient's mobile phone number.").optional(),
|
|
20
|
+
TargetedDeliveryMethod: zod.z.enum([
|
|
21
|
+
"Email",
|
|
22
|
+
"Fax",
|
|
23
|
+
"Mail",
|
|
24
|
+
"Text"
|
|
25
|
+
]).describe("Optional forced delivery method for this recipient (Email, Fax, Mail, Text).").optional()
|
|
26
|
+
}).describe("Model for specifying additional recipients in the Deliver API request.")).describe("Additional recipients beyond the originally configured list.").optional(),
|
|
27
|
+
OriginalRecipients: zod.z.string().default("All").describe("Original recipients to deliver; 'All', 'None', or comma-delimited list. Defaults to 'All'.").optional()
|
|
28
|
+
}).describe("Request model for triggering delivery of previously generated correspondence.");
|
|
29
|
+
const SpondyrDeliverSpondyrOutput = zod.z.object({
|
|
30
|
+
APIStatus: zod.z.enum(["OK", "ERROR"]).describe("OK if delivery succeeded; ERROR otherwise."),
|
|
31
|
+
ReferenceID: zod.z.string().describe("Reference ID for retrieving status later."),
|
|
32
|
+
ErrorMessage: zod.z.string().describe("Error message if APIStatus is ERROR.").nullable().optional()
|
|
33
|
+
}).describe("Response model for the Spondyr Deliver API.");
|
|
34
|
+
const spondyrDeliverSpondyr = require_action.action("SPONDYR_DELIVER_SPONDYR", {
|
|
35
|
+
slug: "spondyr-deliver-spondyr",
|
|
36
|
+
name: "Deliver Spondyr correspondence",
|
|
37
|
+
description: "Trigger delivery of previously generated correspondence to recipients. Use this action after generating correspondence (via POST /Spondyr with IsGenerateOnly=true) to actually deliver the documents via email, fax, mail, or text message. The ReferenceID from the generate request is required to identify which correspondence to deliver.",
|
|
38
|
+
input: SpondyrDeliverSpondyrInput,
|
|
39
|
+
output: SpondyrDeliverSpondyrOutput
|
|
40
|
+
});
|
|
41
|
+
//#endregion
|
|
42
|
+
exports.spondyrDeliverSpondyr = spondyrDeliverSpondyr;
|
|
43
|
+
|
|
44
|
+
//# sourceMappingURL=deliver-spondyr.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deliver-spondyr.cjs","names":["z","action"],"sources":["../../src/actions/deliver-spondyr.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpondyrDeliverSpondyrInput: z.ZodTypeAny = z.object({\n Template: z.string().default(\"All\").describe(\"Templates to deliver; 'All' or comma-delimited list. Defaults to 'All'.\").optional(),\n ReferenceID: z.string().describe(\"The unique reference ID returned from the original generate request (POST /Spondyr). Used to identify which correspondence to deliver.\"),\n NewRecipients: z.array(z.object({\n Fax: z.string().describe(\"The recipient's fax number.\").optional(),\n Zip: z.string().describe(\"The recipient's postal code.\").optional(),\n City: z.string().describe(\"The recipient's city.\").optional(),\n Email: z.string().describe(\"The recipient's email address.\").optional(),\n State: z.string().describe(\"The recipient's state.\").optional(),\n Address1: z.string().describe(\"The recipient's street address.\").optional(),\n Address2: z.string().describe(\"The recipient's street address 2.\").optional(),\n LastName: z.string().describe(\"The recipient's last name.\").optional(),\n RemoteID: z.string().describe(\"The recipient's identifier from your application.\").optional(),\n Template: z.string().describe(\"Comma-delimited list of template names from the original generate request or 'All'.\").optional(),\n FirstName: z.string().describe(\"The recipient's first name.\").optional(),\n MobilePhone: z.string().describe(\"The recipient's mobile phone number.\").optional(),\n TargetedDeliveryMethod: z.enum([\"Email\", \"Fax\", \"Mail\", \"Text\"]).describe(\"Optional forced delivery method for this recipient (Email, Fax, Mail, Text).\").optional(),\n}).describe(\"Model for specifying additional recipients in the Deliver API request.\")).describe(\"Additional recipients beyond the originally configured list.\").optional(),\n OriginalRecipients: z.string().default(\"All\").describe(\"Original recipients to deliver; 'All', 'None', or comma-delimited list. Defaults to 'All'.\").optional(),\n}).describe(\"Request model for triggering delivery of previously generated correspondence.\");\nexport const SpondyrDeliverSpondyrOutput: z.ZodTypeAny = z.object({\n APIStatus: z.enum([\"OK\", \"ERROR\"]).describe(\"OK if delivery succeeded; ERROR otherwise.\"),\n ReferenceID: z.string().describe(\"Reference ID for retrieving status later.\"),\n ErrorMessage: z.string().describe(\"Error message if APIStatus is ERROR.\").nullable().optional(),\n}).describe(\"Response model for the Spondyr Deliver API.\");\n\nexport const spondyrDeliverSpondyr = action(\"SPONDYR_DELIVER_SPONDYR\", {\n slug: \"spondyr-deliver-spondyr\",\n name: \"Deliver Spondyr correspondence\",\n description: \"Trigger delivery of previously generated correspondence to recipients. Use this action after generating correspondence (via POST /Spondyr with IsGenerateOnly=true) to actually deliver the documents via email, fax, mail, or text message. The ReferenceID from the generate request is required to identify which correspondence to deliver.\",\n input: SpondyrDeliverSpondyrInput,\n output: SpondyrDeliverSpondyrOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA2CA,IAAAA,EAAE,OAAO;CAC/D,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS;CACjI,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wIAAwI;CACzK,eAAeA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EAChC,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;EACjE,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;EAClE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;EAC5D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;EACtE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;EAC9D,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;EAC1E,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;EAC5E,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;EACrE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;EAC5F,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qFAAqF,CAAC,CAAC,SAAS;EAC9H,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;EACvE,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;EAClF,wBAAwBA,IAAAA,EAAE,KAAK;GAAC;GAAS;GAAO;GAAQ;EAAM,CAAC,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS;CACrK,CAAC,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;CACvK,oBAAoBA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,4FAA4F,CAAC,CAAC,SAAS;AAChK,CAAC,CAAC,CAAC,SAAS,+EAA+E;AAC3F,MAAa,8BAA4CA,IAAAA,EAAE,OAAO;CAChE,WAAWA,IAAAA,EAAE,KAAK,CAAC,MAAM,OAAO,CAAC,CAAC,CAAC,SAAS,4CAA4C;CACxF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C;CAC5E,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAChG,CAAC,CAAC,CAAC,SAAS,6CAA6C;AAEzD,MAAa,wBAAwBC,eAAAA,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/deliver-spondyr.d.ts
|
|
4
|
+
declare const SpondyrDeliverSpondyrInput: z.ZodTypeAny;
|
|
5
|
+
declare const SpondyrDeliverSpondyrOutput: z.ZodTypeAny;
|
|
6
|
+
declare const spondyrDeliverSpondyr: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { spondyrDeliverSpondyr };
|
|
9
|
+
//# sourceMappingURL=deliver-spondyr.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deliver-spondyr.d.cts","names":[],"sources":["../../src/actions/deliver-spondyr.ts"],"mappings":";;;cAIa,0BAAA,EAA4B,CAAA,CAAE,UAmBiD;AAAA,cAC/E,2BAAA,EAA6B,CAAA,CAAE,UAIc;AAAA,cAE7C,qBAAA,gCAAqB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/deliver-spondyr.d.ts
|
|
4
|
+
declare const SpondyrDeliverSpondyrInput: z.ZodTypeAny;
|
|
5
|
+
declare const SpondyrDeliverSpondyrOutput: z.ZodTypeAny;
|
|
6
|
+
declare const spondyrDeliverSpondyr: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { spondyrDeliverSpondyr };
|
|
9
|
+
//# sourceMappingURL=deliver-spondyr.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deliver-spondyr.d.mts","names":[],"sources":["../../src/actions/deliver-spondyr.ts"],"mappings":";;;cAIa,0BAAA,EAA4B,CAAA,CAAE,UAmBiD;AAAA,cAC/E,2BAAA,EAA6B,CAAA,CAAE,UAIc;AAAA,cAE7C,qBAAA,gCAAqB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
const spondyrDeliverSpondyr = action("SPONDYR_DELIVER_SPONDYR", {
|
|
4
|
+
slug: "spondyr-deliver-spondyr",
|
|
5
|
+
name: "Deliver Spondyr correspondence",
|
|
6
|
+
description: "Trigger delivery of previously generated correspondence to recipients. Use this action after generating correspondence (via POST /Spondyr with IsGenerateOnly=true) to actually deliver the documents via email, fax, mail, or text message. The ReferenceID from the generate request is required to identify which correspondence to deliver.",
|
|
7
|
+
input: z.object({
|
|
8
|
+
Template: z.string().default("All").describe("Templates to deliver; 'All' or comma-delimited list. Defaults to 'All'.").optional(),
|
|
9
|
+
ReferenceID: z.string().describe("The unique reference ID returned from the original generate request (POST /Spondyr). Used to identify which correspondence to deliver."),
|
|
10
|
+
NewRecipients: z.array(z.object({
|
|
11
|
+
Fax: z.string().describe("The recipient's fax number.").optional(),
|
|
12
|
+
Zip: z.string().describe("The recipient's postal code.").optional(),
|
|
13
|
+
City: z.string().describe("The recipient's city.").optional(),
|
|
14
|
+
Email: z.string().describe("The recipient's email address.").optional(),
|
|
15
|
+
State: z.string().describe("The recipient's state.").optional(),
|
|
16
|
+
Address1: z.string().describe("The recipient's street address.").optional(),
|
|
17
|
+
Address2: z.string().describe("The recipient's street address 2.").optional(),
|
|
18
|
+
LastName: z.string().describe("The recipient's last name.").optional(),
|
|
19
|
+
RemoteID: z.string().describe("The recipient's identifier from your application.").optional(),
|
|
20
|
+
Template: z.string().describe("Comma-delimited list of template names from the original generate request or 'All'.").optional(),
|
|
21
|
+
FirstName: z.string().describe("The recipient's first name.").optional(),
|
|
22
|
+
MobilePhone: z.string().describe("The recipient's mobile phone number.").optional(),
|
|
23
|
+
TargetedDeliveryMethod: z.enum([
|
|
24
|
+
"Email",
|
|
25
|
+
"Fax",
|
|
26
|
+
"Mail",
|
|
27
|
+
"Text"
|
|
28
|
+
]).describe("Optional forced delivery method for this recipient (Email, Fax, Mail, Text).").optional()
|
|
29
|
+
}).describe("Model for specifying additional recipients in the Deliver API request.")).describe("Additional recipients beyond the originally configured list.").optional(),
|
|
30
|
+
OriginalRecipients: z.string().default("All").describe("Original recipients to deliver; 'All', 'None', or comma-delimited list. Defaults to 'All'.").optional()
|
|
31
|
+
}).describe("Request model for triggering delivery of previously generated correspondence."),
|
|
32
|
+
output: z.object({
|
|
33
|
+
APIStatus: z.enum(["OK", "ERROR"]).describe("OK if delivery succeeded; ERROR otherwise."),
|
|
34
|
+
ReferenceID: z.string().describe("Reference ID for retrieving status later."),
|
|
35
|
+
ErrorMessage: z.string().describe("Error message if APIStatus is ERROR.").nullable().optional()
|
|
36
|
+
}).describe("Response model for the Spondyr Deliver API.")
|
|
37
|
+
});
|
|
38
|
+
//#endregion
|
|
39
|
+
export { spondyrDeliverSpondyr };
|
|
40
|
+
|
|
41
|
+
//# sourceMappingURL=deliver-spondyr.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deliver-spondyr.mjs","names":[],"sources":["../../src/actions/deliver-spondyr.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpondyrDeliverSpondyrInput: z.ZodTypeAny = z.object({\n Template: z.string().default(\"All\").describe(\"Templates to deliver; 'All' or comma-delimited list. Defaults to 'All'.\").optional(),\n ReferenceID: z.string().describe(\"The unique reference ID returned from the original generate request (POST /Spondyr). Used to identify which correspondence to deliver.\"),\n NewRecipients: z.array(z.object({\n Fax: z.string().describe(\"The recipient's fax number.\").optional(),\n Zip: z.string().describe(\"The recipient's postal code.\").optional(),\n City: z.string().describe(\"The recipient's city.\").optional(),\n Email: z.string().describe(\"The recipient's email address.\").optional(),\n State: z.string().describe(\"The recipient's state.\").optional(),\n Address1: z.string().describe(\"The recipient's street address.\").optional(),\n Address2: z.string().describe(\"The recipient's street address 2.\").optional(),\n LastName: z.string().describe(\"The recipient's last name.\").optional(),\n RemoteID: z.string().describe(\"The recipient's identifier from your application.\").optional(),\n Template: z.string().describe(\"Comma-delimited list of template names from the original generate request or 'All'.\").optional(),\n FirstName: z.string().describe(\"The recipient's first name.\").optional(),\n MobilePhone: z.string().describe(\"The recipient's mobile phone number.\").optional(),\n TargetedDeliveryMethod: z.enum([\"Email\", \"Fax\", \"Mail\", \"Text\"]).describe(\"Optional forced delivery method for this recipient (Email, Fax, Mail, Text).\").optional(),\n}).describe(\"Model for specifying additional recipients in the Deliver API request.\")).describe(\"Additional recipients beyond the originally configured list.\").optional(),\n OriginalRecipients: z.string().default(\"All\").describe(\"Original recipients to deliver; 'All', 'None', or comma-delimited list. Defaults to 'All'.\").optional(),\n}).describe(\"Request model for triggering delivery of previously generated correspondence.\");\nexport const SpondyrDeliverSpondyrOutput: z.ZodTypeAny = z.object({\n APIStatus: z.enum([\"OK\", \"ERROR\"]).describe(\"OK if delivery succeeded; ERROR otherwise.\"),\n ReferenceID: z.string().describe(\"Reference ID for retrieving status later.\"),\n ErrorMessage: z.string().describe(\"Error message if APIStatus is ERROR.\").nullable().optional(),\n}).describe(\"Response model for the Spondyr Deliver API.\");\n\nexport const spondyrDeliverSpondyr = action(\"SPONDYR_DELIVER_SPONDYR\", {\n slug: \"spondyr-deliver-spondyr\",\n name: \"Deliver Spondyr correspondence\",\n description: \"Trigger delivery of previously generated correspondence to recipients. Use this action after generating correspondence (via POST /Spondyr with IsGenerateOnly=true) to actually deliver the documents via email, fax, mail, or text message. The ReferenceID from the generate request is required to identify which correspondence to deliver.\",\n input: SpondyrDeliverSpondyrInput,\n output: SpondyrDeliverSpondyrOutput,\n});\n"],"mappings":";;AA8BA,MAAa,wBAAwB,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OA9BsD,EAAE,OAAO;EAC/D,UAAU,EAAE,OAAO,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS;EACjI,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,wIAAwI;EACzK,eAAe,EAAE,MAAM,EAAE,OAAO;GAChC,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;GACjE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;GAClE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;GAC5D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;GACtE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;GAC9D,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;GAC1E,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;GAC5E,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;GACrE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;GAC5F,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,qFAAqF,CAAC,CAAC,SAAS;GAC9H,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;GACvE,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;GAClF,wBAAwB,EAAE,KAAK;IAAC;IAAS;IAAO;IAAQ;GAAM,CAAC,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS;EACrK,CAAC,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;EACvK,oBAAoB,EAAE,OAAO,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,4FAA4F,CAAC,CAAC,SAAS;CAChK,CAAC,CAAC,CAAC,SAAS,+EAWH;CACP,QAXuD,EAAE,OAAO;EAChE,WAAW,EAAE,KAAK,CAAC,MAAM,OAAO,CAAC,CAAC,CAAC,SAAS,4CAA4C;EACxF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C;EAC5E,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChG,CAAC,CAAC,CAAC,SAAS,6CAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/event-type-update.ts
|
|
4
|
+
const SpondyrEventTypeUpdateInput = zod.z.object({
|
|
5
|
+
Name: zod.z.string().describe("The new name for the Event Type."),
|
|
6
|
+
EventType: zod.z.string().describe("The name of the existing Event Type to update."),
|
|
7
|
+
TransactionType: zod.z.string().describe("The Transaction Type name this Event Type belongs to.")
|
|
8
|
+
});
|
|
9
|
+
const SpondyrEventTypeUpdateOutput = zod.z.object({
|
|
10
|
+
APIStatus: zod.z.enum(["OK", "ERROR"]).describe("OK if successful; ERROR otherwise."),
|
|
11
|
+
ReferenceID: zod.z.string().describe("Identifier for the Event Type. Present when APIStatus is OK; null when ERROR.").nullable().optional(),
|
|
12
|
+
ErrorMessage: zod.z.string().describe("Error message if the update failed.").nullable().optional()
|
|
13
|
+
});
|
|
14
|
+
const spondyrEventTypeUpdate = require_action.action("SPONDYR_EVENT_TYPE_UPDATE", {
|
|
15
|
+
slug: "spondyr-event-type-update",
|
|
16
|
+
name: "Update Event Type",
|
|
17
|
+
description: "Tool to update an existing event type name within a transaction type. Use when you need to rename an Event Type. Example: Rename the 'OrderShipped' event to 'OrderDelivered' within the 'CustomerOrders' transaction type. Note: This only changes the event type's name - it does not move the event to a different transaction type.",
|
|
18
|
+
input: SpondyrEventTypeUpdateInput,
|
|
19
|
+
output: SpondyrEventTypeUpdateOutput
|
|
20
|
+
});
|
|
21
|
+
//#endregion
|
|
22
|
+
exports.spondyrEventTypeUpdate = spondyrEventTypeUpdate;
|
|
23
|
+
|
|
24
|
+
//# sourceMappingURL=event-type-update.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"event-type-update.cjs","names":["z","action"],"sources":["../../src/actions/event-type-update.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SpondyrEventTypeUpdateInput: z.ZodTypeAny = z.object({\n Name: z.string().describe(\"The new name for the Event Type.\"),\n EventType: z.string().describe(\"The name of the existing Event Type to update.\"),\n TransactionType: z.string().describe(\"The Transaction Type name this Event Type belongs to.\"),\n});\nexport const SpondyrEventTypeUpdateOutput: z.ZodTypeAny = z.object({\n APIStatus: z.enum([\"OK\", \"ERROR\"]).describe(\"OK if successful; ERROR otherwise.\"),\n ReferenceID: z.string().describe(\"Identifier for the Event Type. Present when APIStatus is OK; null when ERROR.\").nullable().optional(),\n ErrorMessage: z.string().describe(\"Error message if the update failed.\").nullable().optional(),\n});\n\nexport const spondyrEventTypeUpdate = action(\"SPONDYR_EVENT_TYPE_UPDATE\", {\n slug: \"spondyr-event-type-update\",\n name: \"Update Event Type\",\n description: \"Tool to update an existing event type name within a transaction type. Use when you need to rename an Event Type. Example: Rename the 'OrderShipped' event to 'OrderDelivered' within the 'CustomerOrders' transaction type. Note: This only changes the event type's name - it does not move the event to a different transaction type.\",\n input: SpondyrEventTypeUpdateInput,\n output: SpondyrEventTypeUpdateOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA4CA,IAAAA,EAAE,OAAO;CAChE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;CAC5D,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD;CAC/E,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD;AAC9F,CAAC;AACD,MAAa,+BAA6CA,IAAAA,EAAE,OAAO;CACjE,WAAWA,IAAAA,EAAE,KAAK,CAAC,MAAM,OAAO,CAAC,CAAC,CAAC,SAAS,oCAAoC;CAChF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtI,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC/F,CAAC;AAED,MAAa,yBAAyBC,eAAAA,OAAO,6BAA6B;CACxE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/event-type-update.d.ts
|
|
4
|
+
declare const SpondyrEventTypeUpdateInput: z.ZodTypeAny;
|
|
5
|
+
declare const SpondyrEventTypeUpdateOutput: z.ZodTypeAny;
|
|
6
|
+
declare const spondyrEventTypeUpdate: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { spondyrEventTypeUpdate };
|
|
9
|
+
//# sourceMappingURL=event-type-update.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"event-type-update.d.cts","names":[],"sources":["../../src/actions/event-type-update.ts"],"mappings":";;;cAIa,2BAAA,EAA6B,CAAA,CAAE,UAI1C;AAAA,cACW,4BAAA,EAA8B,CAAA,CAAE,UAI3C;AAAA,cAEW,sBAAA,gCAAsB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/event-type-update.d.ts
|
|
4
|
+
declare const SpondyrEventTypeUpdateInput: z.ZodTypeAny;
|
|
5
|
+
declare const SpondyrEventTypeUpdateOutput: z.ZodTypeAny;
|
|
6
|
+
declare const spondyrEventTypeUpdate: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { spondyrEventTypeUpdate };
|
|
9
|
+
//# sourceMappingURL=event-type-update.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"event-type-update.d.mts","names":[],"sources":["../../src/actions/event-type-update.ts"],"mappings":";;;cAIa,2BAAA,EAA6B,CAAA,CAAE,UAI1C;AAAA,cACW,4BAAA,EAA8B,CAAA,CAAE,UAI3C;AAAA,cAEW,sBAAA,gCAAsB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|