@keystrokehq/taxjar 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/calculate-sales-tax-for-an-order.cjs +119 -0
- package/dist/actions/calculate-sales-tax-for-an-order.cjs.map +1 -0
- package/dist/actions/calculate-sales-tax-for-an-order.d.cts +9 -0
- package/dist/actions/calculate-sales-tax-for-an-order.d.cts.map +1 -0
- package/dist/actions/calculate-sales-tax-for-an-order.d.mts +9 -0
- package/dist/actions/calculate-sales-tax-for-an-order.d.mts.map +1 -0
- package/dist/actions/calculate-sales-tax-for-an-order.mjs +118 -0
- package/dist/actions/calculate-sales-tax-for-an-order.mjs.map +1 -0
- package/dist/actions/create-customer.cjs +45 -0
- package/dist/actions/create-customer.cjs.map +1 -0
- package/dist/actions/create-customer.d.cts +9 -0
- package/dist/actions/create-customer.d.cts.map +1 -0
- package/dist/actions/create-customer.d.mts +9 -0
- package/dist/actions/create-customer.d.mts.map +1 -0
- package/dist/actions/create-customer.mjs +44 -0
- package/dist/actions/create-customer.mjs.map +1 -0
- package/dist/actions/create-order-transaction.cjs +104 -0
- package/dist/actions/create-order-transaction.cjs.map +1 -0
- package/dist/actions/create-order-transaction.d.cts +9 -0
- package/dist/actions/create-order-transaction.d.cts.map +1 -0
- package/dist/actions/create-order-transaction.d.mts +9 -0
- package/dist/actions/create-order-transaction.d.mts.map +1 -0
- package/dist/actions/create-order-transaction.mjs +103 -0
- package/dist/actions/create-order-transaction.mjs.map +1 -0
- package/dist/actions/create-refund-transaction.cjs +70 -0
- package/dist/actions/create-refund-transaction.cjs.map +1 -0
- package/dist/actions/create-refund-transaction.d.cts +9 -0
- package/dist/actions/create-refund-transaction.d.cts.map +1 -0
- package/dist/actions/create-refund-transaction.d.mts +9 -0
- package/dist/actions/create-refund-transaction.d.mts.map +1 -0
- package/dist/actions/create-refund-transaction.mjs +69 -0
- package/dist/actions/create-refund-transaction.mjs.map +1 -0
- package/dist/actions/delete-customer.cjs +16 -0
- package/dist/actions/delete-customer.cjs.map +1 -0
- package/dist/actions/delete-customer.d.cts +9 -0
- package/dist/actions/delete-customer.d.cts.map +1 -0
- package/dist/actions/delete-customer.d.mts +9 -0
- package/dist/actions/delete-customer.d.mts.map +1 -0
- package/dist/actions/delete-customer.mjs +13 -0
- package/dist/actions/delete-customer.mjs.map +1 -0
- package/dist/actions/delete-order-transaction.cjs +16 -0
- package/dist/actions/delete-order-transaction.cjs.map +1 -0
- package/dist/actions/delete-order-transaction.d.cts +9 -0
- package/dist/actions/delete-order-transaction.d.cts.map +1 -0
- package/dist/actions/delete-order-transaction.d.mts +9 -0
- package/dist/actions/delete-order-transaction.d.mts.map +1 -0
- package/dist/actions/delete-order-transaction.mjs +13 -0
- package/dist/actions/delete-order-transaction.mjs.map +1 -0
- package/dist/actions/delete-refund-transaction.cjs +16 -0
- package/dist/actions/delete-refund-transaction.cjs.map +1 -0
- package/dist/actions/delete-refund-transaction.d.cts +9 -0
- package/dist/actions/delete-refund-transaction.d.cts.map +1 -0
- package/dist/actions/delete-refund-transaction.d.mts +9 -0
- package/dist/actions/delete-refund-transaction.d.mts.map +1 -0
- package/dist/actions/delete-refund-transaction.mjs +13 -0
- package/dist/actions/delete-refund-transaction.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/list-customers.cjs +19 -0
- package/dist/actions/list-customers.cjs.map +1 -0
- package/dist/actions/list-customers.d.cts +9 -0
- package/dist/actions/list-customers.d.cts.map +1 -0
- package/dist/actions/list-customers.d.mts +9 -0
- package/dist/actions/list-customers.d.mts.map +1 -0
- package/dist/actions/list-customers.mjs +16 -0
- package/dist/actions/list-customers.mjs.map +1 -0
- package/dist/actions/list-nexus-regions.cjs +23 -0
- package/dist/actions/list-nexus-regions.cjs.map +1 -0
- package/dist/actions/list-nexus-regions.d.cts +9 -0
- package/dist/actions/list-nexus-regions.d.cts.map +1 -0
- package/dist/actions/list-nexus-regions.d.mts +9 -0
- package/dist/actions/list-nexus-regions.d.mts.map +1 -0
- package/dist/actions/list-nexus-regions.mjs +22 -0
- package/dist/actions/list-nexus-regions.mjs.map +1 -0
- package/dist/actions/list-order-transactions.cjs +20 -0
- package/dist/actions/list-order-transactions.cjs.map +1 -0
- package/dist/actions/list-order-transactions.d.cts +9 -0
- package/dist/actions/list-order-transactions.d.cts.map +1 -0
- package/dist/actions/list-order-transactions.d.mts +9 -0
- package/dist/actions/list-order-transactions.d.mts.map +1 -0
- package/dist/actions/list-order-transactions.mjs +17 -0
- package/dist/actions/list-order-transactions.mjs.map +1 -0
- package/dist/actions/list-refund-transactions.cjs +20 -0
- package/dist/actions/list-refund-transactions.cjs.map +1 -0
- package/dist/actions/list-refund-transactions.d.cts +9 -0
- package/dist/actions/list-refund-transactions.d.cts.map +1 -0
- package/dist/actions/list-refund-transactions.d.mts +9 -0
- package/dist/actions/list-refund-transactions.d.mts.map +1 -0
- package/dist/actions/list-refund-transactions.mjs +17 -0
- package/dist/actions/list-refund-transactions.mjs.map +1 -0
- package/dist/actions/list-tax-categories.cjs +21 -0
- package/dist/actions/list-tax-categories.cjs.map +1 -0
- package/dist/actions/list-tax-categories.d.cts +9 -0
- package/dist/actions/list-tax-categories.d.cts.map +1 -0
- package/dist/actions/list-tax-categories.d.mts +9 -0
- package/dist/actions/list-tax-categories.d.mts.map +1 -0
- package/dist/actions/list-tax-categories.mjs +20 -0
- package/dist/actions/list-tax-categories.mjs.map +1 -0
- package/dist/actions/show-customer.cjs +27 -0
- package/dist/actions/show-customer.cjs.map +1 -0
- package/dist/actions/show-customer.d.cts +9 -0
- package/dist/actions/show-customer.d.cts.map +1 -0
- package/dist/actions/show-customer.d.mts +9 -0
- package/dist/actions/show-customer.d.mts.map +1 -0
- package/dist/actions/show-customer.mjs +26 -0
- package/dist/actions/show-customer.mjs.map +1 -0
- package/dist/actions/show-order-transaction.cjs +49 -0
- package/dist/actions/show-order-transaction.cjs.map +1 -0
- package/dist/actions/show-order-transaction.d.cts +9 -0
- package/dist/actions/show-order-transaction.d.cts.map +1 -0
- package/dist/actions/show-order-transaction.d.mts +9 -0
- package/dist/actions/show-order-transaction.d.mts.map +1 -0
- package/dist/actions/show-order-transaction.mjs +48 -0
- package/dist/actions/show-order-transaction.mjs.map +1 -0
- package/dist/actions/show-refund-transaction.cjs +49 -0
- package/dist/actions/show-refund-transaction.cjs.map +1 -0
- package/dist/actions/show-refund-transaction.d.cts +9 -0
- package/dist/actions/show-refund-transaction.d.cts.map +1 -0
- package/dist/actions/show-refund-transaction.d.mts +9 -0
- package/dist/actions/show-refund-transaction.d.mts.map +1 -0
- package/dist/actions/show-refund-transaction.mjs +48 -0
- package/dist/actions/show-refund-transaction.mjs.map +1 -0
- package/dist/actions/show-tax-rates-for-a-location.cjs +41 -0
- package/dist/actions/show-tax-rates-for-a-location.cjs.map +1 -0
- package/dist/actions/show-tax-rates-for-a-location.d.cts +9 -0
- package/dist/actions/show-tax-rates-for-a-location.d.cts.map +1 -0
- package/dist/actions/show-tax-rates-for-a-location.d.mts +9 -0
- package/dist/actions/show-tax-rates-for-a-location.d.mts.map +1 -0
- package/dist/actions/show-tax-rates-for-a-location.mjs +40 -0
- package/dist/actions/show-tax-rates-for-a-location.mjs.map +1 -0
- package/dist/actions/summarize-tax-rates-for-all-regions.cjs +28 -0
- package/dist/actions/summarize-tax-rates-for-all-regions.cjs.map +1 -0
- package/dist/actions/summarize-tax-rates-for-all-regions.d.cts +9 -0
- package/dist/actions/summarize-tax-rates-for-all-regions.d.cts.map +1 -0
- package/dist/actions/summarize-tax-rates-for-all-regions.d.mts +9 -0
- package/dist/actions/summarize-tax-rates-for-all-regions.d.mts.map +1 -0
- package/dist/actions/summarize-tax-rates-for-all-regions.mjs +27 -0
- package/dist/actions/summarize-tax-rates-for-all-regions.mjs.map +1 -0
- package/dist/actions/update-customer.cjs +46 -0
- package/dist/actions/update-customer.cjs.map +1 -0
- package/dist/actions/update-customer.d.cts +9 -0
- package/dist/actions/update-customer.d.cts.map +1 -0
- package/dist/actions/update-customer.d.mts +9 -0
- package/dist/actions/update-customer.d.mts.map +1 -0
- package/dist/actions/update-customer.mjs +45 -0
- package/dist/actions/update-customer.mjs.map +1 -0
- package/dist/actions/update-order-transaction.cjs +61 -0
- package/dist/actions/update-order-transaction.cjs.map +1 -0
- package/dist/actions/update-order-transaction.d.cts +9 -0
- package/dist/actions/update-order-transaction.d.cts.map +1 -0
- package/dist/actions/update-order-transaction.d.mts +9 -0
- package/dist/actions/update-order-transaction.d.mts.map +1 -0
- package/dist/actions/update-order-transaction.mjs +60 -0
- package/dist/actions/update-order-transaction.mjs.map +1 -0
- package/dist/actions/update-refund-transaction.cjs +83 -0
- package/dist/actions/update-refund-transaction.cjs.map +1 -0
- package/dist/actions/update-refund-transaction.d.cts +9 -0
- package/dist/actions/update-refund-transaction.d.cts.map +1 -0
- package/dist/actions/update-refund-transaction.d.mts +9 -0
- package/dist/actions/update-refund-transaction.d.mts.map +1 -0
- package/dist/actions/update-refund-transaction.mjs +82 -0
- package/dist/actions/update-refund-transaction.mjs.map +1 -0
- package/dist/actions/validate-vat-number.cjs +36 -0
- package/dist/actions/validate-vat-number.cjs.map +1 -0
- package/dist/actions/validate-vat-number.d.cts +9 -0
- package/dist/actions/validate-vat-number.d.cts.map +1 -0
- package/dist/actions/validate-vat-number.d.mts +9 -0
- package/dist/actions/validate-vat-number.d.mts.map +1 -0
- package/dist/actions/validate-vat-number.mjs +35 -0
- package/dist/actions/validate-vat-number.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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-refund-transactions.mjs","names":[],"sources":["../../src/actions/list-refund-transactions.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const TaxjarListRefundTransactionsInput: z.ZodTypeAny = z.object({\n provider: z.string().describe(\"Filter by provider source (e.g., 'api', 'csv')\").optional(),\n to_transaction_date: z.string().describe(\"End date for filtering refund transactions (format: YYYY/MM/DD or YYYY-MM-DD)\"),\n from_transaction_date: z.string().describe(\"Start date for filtering refund transactions (format: YYYY/MM/DD or YYYY-MM-DD)\"),\n});\nexport const TaxjarListRefundTransactionsOutput: z.ZodTypeAny = z.object({\n refunds: z.array(z.string()).describe(\"List of refund transaction IDs. Use the 'Show refund transaction' action with these IDs to get detailed information about each refund.\"),\n});\n\nexport const taxjarListRefundTransactions = action(\"TAXJAR_LIST_REFUND_TRANSACTIONS\", {\n slug: \"taxjar-list-refund-transactions\",\n name: \"List refund transactions\",\n description: \"Lists refund transaction IDs within a specified date range. Returns an array of transaction IDs only. To get detailed information about a specific refund, use the 'Show refund transaction' action with the ID. Useful for finding refunds created through the TaxJar API within a specific time period.\",\n input: TaxjarListRefundTransactionsInput,\n output: TaxjarListRefundTransactionsOutput,\n});\n"],"mappings":";;AAaA,MAAa,+BAA+B,OAAO,mCAAmC;CACpF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAb6D,EAAE,OAAO;EACtE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;EACzF,qBAAqB,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E;EACxH,uBAAuB,EAAE,OAAO,CAAC,CAAC,SAAS,iFAAiF;CAC9H,CASS;CACP,QAT8D,EAAE,OAAO,EACvE,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,wIAAwI,EAChL,CAOU;AACV,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/list-tax-categories.ts
|
|
4
|
+
const TaxjarListTaxCategoriesInput = zod.z.object({}).describe("No request parameters needed for this endpoint.");
|
|
5
|
+
const TaxjarListTaxCategories_CategorySchema = zod.z.object({
|
|
6
|
+
name: zod.z.string().describe("Tax category name, e.g., 'Clothing'"),
|
|
7
|
+
description: zod.z.string().describe("Detailed description of what the category covers"),
|
|
8
|
+
product_tax_code: zod.z.string().describe("Unique code for the tax category, e.g., '20010'")
|
|
9
|
+
}).describe("A product tax category returned by TaxJar.");
|
|
10
|
+
const TaxjarListTaxCategoriesOutput = zod.z.object({ categories: zod.z.array(TaxjarListTaxCategories_CategorySchema).describe("List of product tax categories and their codes") }).describe("Response model for listing product tax categories.");
|
|
11
|
+
const taxjarListTaxCategories = require_action.action("TAXJAR_LIST_TAX_CATEGORIES", {
|
|
12
|
+
slug: "taxjar-list-tax-categories",
|
|
13
|
+
name: "List Tax Categories",
|
|
14
|
+
description: "Tool to list all product tax categories and their codes. Use when you need to discover available tax categories before assigning them to products.",
|
|
15
|
+
input: TaxjarListTaxCategoriesInput,
|
|
16
|
+
output: TaxjarListTaxCategoriesOutput
|
|
17
|
+
});
|
|
18
|
+
//#endregion
|
|
19
|
+
exports.taxjarListTaxCategories = taxjarListTaxCategories;
|
|
20
|
+
|
|
21
|
+
//# sourceMappingURL=list-tax-categories.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-tax-categories.cjs","names":["z","action"],"sources":["../../src/actions/list-tax-categories.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const TaxjarListTaxCategoriesInput: z.ZodTypeAny = z.object({}).describe(\"No request parameters needed for this endpoint.\");\nconst TaxjarListTaxCategories_CategorySchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Tax category name, e.g., 'Clothing'\"),\n description: z.string().describe(\"Detailed description of what the category covers\"),\n product_tax_code: z.string().describe(\"Unique code for the tax category, e.g., '20010'\"),\n}).describe(\"A product tax category returned by TaxJar.\");\nexport const TaxjarListTaxCategoriesOutput: z.ZodTypeAny = z.object({\n categories: z.array(TaxjarListTaxCategories_CategorySchema).describe(\"List of product tax categories and their codes\"),\n}).describe(\"Response model for listing product tax categories.\");\n\nexport const taxjarListTaxCategories = action(\"TAXJAR_LIST_TAX_CATEGORIES\", {\n slug: \"taxjar-list-tax-categories\",\n name: \"List Tax Categories\",\n description: \"Tool to list all product tax categories and their codes. Use when you need to discover available tax categories before assigning them to products.\",\n input: TaxjarListTaxCategoriesInput,\n output: TaxjarListTaxCategoriesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA6CA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,iDAAiD;AACjI,MAAM,yCAAuDA,IAAAA,EAAE,OAAO;CACpE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC;CAC/D,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD;CACnF,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD;AACzF,CAAC,CAAC,CAAC,SAAS,4CAA4C;AACxD,MAAa,gCAA8CA,IAAAA,EAAE,OAAO,EAClE,YAAYA,IAAAA,EAAE,MAAM,sCAAsC,CAAC,CAAC,SAAS,gDAAgD,EACvH,CAAC,CAAC,CAAC,SAAS,oDAAoD;AAEhE,MAAa,0BAA0BC,eAAAA,OAAO,8BAA8B;CAC1E,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/list-tax-categories.d.ts
|
|
4
|
+
declare const TaxjarListTaxCategoriesInput: z.ZodTypeAny;
|
|
5
|
+
declare const TaxjarListTaxCategoriesOutput: z.ZodTypeAny;
|
|
6
|
+
declare const taxjarListTaxCategories: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { taxjarListTaxCategories };
|
|
9
|
+
//# sourceMappingURL=list-tax-categories.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-tax-categories.d.cts","names":[],"sources":["../../src/actions/list-tax-categories.ts"],"mappings":";;;cAIa,4BAAA,EAA8B,CAAA,CAAE,UAAqF;AAAA,cAMrH,6BAAA,EAA+B,CAAA,CAAE,UAEmB;AAAA,cAEpD,uBAAA,gCAAuB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/list-tax-categories.d.ts
|
|
4
|
+
declare const TaxjarListTaxCategoriesInput: z.ZodTypeAny;
|
|
5
|
+
declare const TaxjarListTaxCategoriesOutput: z.ZodTypeAny;
|
|
6
|
+
declare const taxjarListTaxCategories: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { taxjarListTaxCategories };
|
|
9
|
+
//# sourceMappingURL=list-tax-categories.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-tax-categories.d.mts","names":[],"sources":["../../src/actions/list-tax-categories.ts"],"mappings":";;;cAIa,4BAAA,EAA8B,CAAA,CAAE,UAAqF;AAAA,cAMrH,6BAAA,EAA+B,CAAA,CAAE,UAEmB;AAAA,cAEpD,uBAAA,gCAAuB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/list-tax-categories.ts
|
|
4
|
+
const TaxjarListTaxCategoriesInput = z.object({}).describe("No request parameters needed for this endpoint.");
|
|
5
|
+
const TaxjarListTaxCategories_CategorySchema = z.object({
|
|
6
|
+
name: z.string().describe("Tax category name, e.g., 'Clothing'"),
|
|
7
|
+
description: z.string().describe("Detailed description of what the category covers"),
|
|
8
|
+
product_tax_code: z.string().describe("Unique code for the tax category, e.g., '20010'")
|
|
9
|
+
}).describe("A product tax category returned by TaxJar.");
|
|
10
|
+
const taxjarListTaxCategories = action("TAXJAR_LIST_TAX_CATEGORIES", {
|
|
11
|
+
slug: "taxjar-list-tax-categories",
|
|
12
|
+
name: "List Tax Categories",
|
|
13
|
+
description: "Tool to list all product tax categories and their codes. Use when you need to discover available tax categories before assigning them to products.",
|
|
14
|
+
input: TaxjarListTaxCategoriesInput,
|
|
15
|
+
output: z.object({ categories: z.array(TaxjarListTaxCategories_CategorySchema).describe("List of product tax categories and their codes") }).describe("Response model for listing product tax categories.")
|
|
16
|
+
});
|
|
17
|
+
//#endregion
|
|
18
|
+
export { taxjarListTaxCategories };
|
|
19
|
+
|
|
20
|
+
//# sourceMappingURL=list-tax-categories.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-tax-categories.mjs","names":[],"sources":["../../src/actions/list-tax-categories.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const TaxjarListTaxCategoriesInput: z.ZodTypeAny = z.object({}).describe(\"No request parameters needed for this endpoint.\");\nconst TaxjarListTaxCategories_CategorySchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Tax category name, e.g., 'Clothing'\"),\n description: z.string().describe(\"Detailed description of what the category covers\"),\n product_tax_code: z.string().describe(\"Unique code for the tax category, e.g., '20010'\"),\n}).describe(\"A product tax category returned by TaxJar.\");\nexport const TaxjarListTaxCategoriesOutput: z.ZodTypeAny = z.object({\n categories: z.array(TaxjarListTaxCategories_CategorySchema).describe(\"List of product tax categories and their codes\"),\n}).describe(\"Response model for listing product tax categories.\");\n\nexport const taxjarListTaxCategories = action(\"TAXJAR_LIST_TAX_CATEGORIES\", {\n slug: \"taxjar-list-tax-categories\",\n name: \"List Tax Categories\",\n description: \"Tool to list all product tax categories and their codes. Use when you need to discover available tax categories before assigning them to products.\",\n input: TaxjarListTaxCategoriesInput,\n output: TaxjarListTaxCategoriesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA6C,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,iDAAiD;AACjI,MAAM,yCAAuD,EAAE,OAAO;CACpE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC;CAC/D,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD;CACnF,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD;AACzF,CAAC,CAAC,CAAC,SAAS,4CAA4C;AAKxD,MAAa,0BAA0B,OAAO,8BAA8B;CAC1E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATyD,EAAE,OAAO,EAClE,YAAY,EAAE,MAAM,sCAAsC,CAAC,CAAC,SAAS,gDAAgD,EACvH,CAAC,CAAC,CAAC,SAAS,oDAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/show-customer.ts
|
|
4
|
+
const TaxjarShowCustomerInput = zod.z.object({ customer_id: zod.z.string().describe("Unique identifier for the customer") }).describe("Request model for showing a customer.");
|
|
5
|
+
const TaxjarShowCustomer_CustomerSchema = zod.z.object({
|
|
6
|
+
zip: zod.z.string().describe("ZIP or postal code").nullable().optional(),
|
|
7
|
+
city: zod.z.string().describe("City").nullable().optional(),
|
|
8
|
+
name: zod.z.string().describe("Customer's name").nullable().optional(),
|
|
9
|
+
state: zod.z.string().describe("State or region").nullable().optional(),
|
|
10
|
+
street: zod.z.string().describe("Street address").nullable().optional(),
|
|
11
|
+
country: zod.z.string().describe("Two-letter country code (ISO 3166-1 alpha-2)").nullable().optional(),
|
|
12
|
+
customer_id: zod.z.string().describe("Customer ID"),
|
|
13
|
+
exempt_regions: zod.z.array(zod.z.object({})).describe("Regions where the customer is tax-exempt").nullable().optional(),
|
|
14
|
+
exemption_type: zod.z.string().describe("Type of exemption (e.g., 'wholesale', 'government', 'non_exempt')")
|
|
15
|
+
}).describe("A customer returned by TaxJar.");
|
|
16
|
+
const TaxjarShowCustomerOutput = zod.z.object({ customer: TaxjarShowCustomer_CustomerSchema.nullable() }).describe("Response model for showing a customer.");
|
|
17
|
+
const taxjarShowCustomer = require_action.action("TAXJAR_SHOW_CUSTOMER", {
|
|
18
|
+
slug: "taxjar-show-customer",
|
|
19
|
+
name: "Show Customer",
|
|
20
|
+
description: "Tool to show an existing customer. Use when you need to retrieve details of a specific customer via TaxJar API.",
|
|
21
|
+
input: TaxjarShowCustomerInput,
|
|
22
|
+
output: TaxjarShowCustomerOutput
|
|
23
|
+
});
|
|
24
|
+
//#endregion
|
|
25
|
+
exports.taxjarShowCustomer = taxjarShowCustomer;
|
|
26
|
+
|
|
27
|
+
//# sourceMappingURL=show-customer.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"show-customer.cjs","names":["z","action"],"sources":["../../src/actions/show-customer.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const TaxjarShowCustomerInput: z.ZodTypeAny = z.object({\n customer_id: z.string().describe(\"Unique identifier for the customer\"),\n}).describe(\"Request model for showing a customer.\");\nconst TaxjarShowCustomer_CustomerSchema: z.ZodTypeAny = z.object({\n zip: z.string().describe(\"ZIP or postal code\").nullable().optional(),\n city: z.string().describe(\"City\").nullable().optional(),\n name: z.string().describe(\"Customer's name\").nullable().optional(),\n state: z.string().describe(\"State or region\").nullable().optional(),\n street: z.string().describe(\"Street address\").nullable().optional(),\n country: z.string().describe(\"Two-letter country code (ISO 3166-1 alpha-2)\").nullable().optional(),\n customer_id: z.string().describe(\"Customer ID\"),\n exempt_regions: z.array(z.object({})).describe(\"Regions where the customer is tax-exempt\").nullable().optional(),\n exemption_type: z.string().describe(\"Type of exemption (e.g., 'wholesale', 'government', 'non_exempt')\"),\n}).describe(\"A customer returned by TaxJar.\");\nexport const TaxjarShowCustomerOutput: z.ZodTypeAny = z.object({\n customer: TaxjarShowCustomer_CustomerSchema.nullable(),\n}).describe(\"Response model for showing a customer.\");\n\nexport const taxjarShowCustomer = action(\"TAXJAR_SHOW_CUSTOMER\", {\n slug: \"taxjar-show-customer\",\n name: \"Show Customer\",\n description: \"Tool to show an existing customer. Use when you need to retrieve details of a specific customer via TaxJar API.\",\n input: TaxjarShowCustomerInput,\n output: TaxjarShowCustomerOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAAwCA,IAAAA,EAAE,OAAO,EAC5D,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,EACvE,CAAC,CAAC,CAAC,SAAS,uCAAuC;AACnD,MAAM,oCAAkDA,IAAAA,EAAE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Any;
|
|
5
|
+
declare const TaxjarShowCustomerOutput: z.ZodTypeAny;
|
|
6
|
+
declare const taxjarShowCustomer: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { taxjarShowCustomer };
|
|
9
|
+
//# sourceMappingURL=show-customer.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"show-customer.d.cts","names":[],"sources":["../../src/actions/show-customer.ts"],"mappings":";;;cAIa,uBAAA,EAAyB,CAAA,CAAE,UAEY;AAAA,cAYvC,wBAAA,EAA0B,CAAA,CAAE,UAEY;AAAA,cAExC,kBAAA,gCAAkB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/show-customer.d.ts
|
|
4
|
+
declare const TaxjarShowCustomerInput: z.ZodTypeAny;
|
|
5
|
+
declare const TaxjarShowCustomerOutput: z.ZodTypeAny;
|
|
6
|
+
declare const taxjarShowCustomer: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { taxjarShowCustomer };
|
|
9
|
+
//# sourceMappingURL=show-customer.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"show-customer.d.mts","names":[],"sources":["../../src/actions/show-customer.ts"],"mappings":";;;cAIa,uBAAA,EAAyB,CAAA,CAAE,UAEY;AAAA,cAYvC,wBAAA,EAA0B,CAAA,CAAE,UAEY;AAAA,cAExC,kBAAA,gCAAkB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/show-customer.ts
|
|
4
|
+
const TaxjarShowCustomerInput = z.object({ customer_id: z.string().describe("Unique identifier for the customer") }).describe("Request model for showing a customer.");
|
|
5
|
+
const TaxjarShowCustomer_CustomerSchema = z.object({
|
|
6
|
+
zip: z.string().describe("ZIP or postal code").nullable().optional(),
|
|
7
|
+
city: z.string().describe("City").nullable().optional(),
|
|
8
|
+
name: z.string().describe("Customer's name").nullable().optional(),
|
|
9
|
+
state: z.string().describe("State or region").nullable().optional(),
|
|
10
|
+
street: z.string().describe("Street address").nullable().optional(),
|
|
11
|
+
country: z.string().describe("Two-letter country code (ISO 3166-1 alpha-2)").nullable().optional(),
|
|
12
|
+
customer_id: z.string().describe("Customer ID"),
|
|
13
|
+
exempt_regions: z.array(z.object({})).describe("Regions where the customer is tax-exempt").nullable().optional(),
|
|
14
|
+
exemption_type: z.string().describe("Type of exemption (e.g., 'wholesale', 'government', 'non_exempt')")
|
|
15
|
+
}).describe("A customer returned by TaxJar.");
|
|
16
|
+
const taxjarShowCustomer = action("TAXJAR_SHOW_CUSTOMER", {
|
|
17
|
+
slug: "taxjar-show-customer",
|
|
18
|
+
name: "Show Customer",
|
|
19
|
+
description: "Tool to show an existing customer. Use when you need to retrieve details of a specific customer via TaxJar API.",
|
|
20
|
+
input: TaxjarShowCustomerInput,
|
|
21
|
+
output: z.object({ customer: TaxjarShowCustomer_CustomerSchema.nullable() }).describe("Response model for showing a customer.")
|
|
22
|
+
});
|
|
23
|
+
//#endregion
|
|
24
|
+
export { taxjarShowCustomer };
|
|
25
|
+
|
|
26
|
+
//# sourceMappingURL=show-customer.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"show-customer.mjs","names":[],"sources":["../../src/actions/show-customer.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const TaxjarShowCustomerInput: z.ZodTypeAny = z.object({\n customer_id: z.string().describe(\"Unique identifier for the customer\"),\n}).describe(\"Request model for showing a customer.\");\nconst TaxjarShowCustomer_CustomerSchema: z.ZodTypeAny = z.object({\n zip: z.string().describe(\"ZIP or postal code\").nullable().optional(),\n city: z.string().describe(\"City\").nullable().optional(),\n name: z.string().describe(\"Customer's name\").nullable().optional(),\n state: z.string().describe(\"State or region\").nullable().optional(),\n street: z.string().describe(\"Street address\").nullable().optional(),\n country: z.string().describe(\"Two-letter country code (ISO 3166-1 alpha-2)\").nullable().optional(),\n customer_id: z.string().describe(\"Customer ID\"),\n exempt_regions: z.array(z.object({})).describe(\"Regions where the customer is tax-exempt\").nullable().optional(),\n exemption_type: z.string().describe(\"Type of exemption (e.g., 'wholesale', 'government', 'non_exempt')\"),\n}).describe(\"A customer returned by TaxJar.\");\nexport const TaxjarShowCustomerOutput: z.ZodTypeAny = z.object({\n customer: TaxjarShowCustomer_CustomerSchema.nullable(),\n}).describe(\"Response model for showing a customer.\");\n\nexport const taxjarShowCustomer = action(\"TAXJAR_SHOW_CUSTOMER\", {\n slug: \"taxjar-show-customer\",\n name: \"Show Customer\",\n description: \"Tool to show an existing customer. Use when you need to retrieve details of a specific customer via TaxJar API.\",\n input: TaxjarShowCustomerInput,\n output: TaxjarShowCustomerOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAAwC,EAAE,OAAO,EAC5D,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,EACvE,CAAC,CAAC,CAAC,SAAS,uCAAuC;AACnD,MAAM,oCAAkD,EAAE,OAAO;CAC/D,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,MAAM,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,iBAAiB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,iBAAiB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjG,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,aAAa;CAC9C,gBAAgB,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/G,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE;AACzG,CAAC,CAAC,CAAC,SAAS,gCAAgC;AAK5C,MAAa,qBAAqB,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAToD,EAAE,OAAO,EAC7D,UAAU,kCAAkC,SAAS,EACvD,CAAC,CAAC,CAAC,SAAS,wCAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/show-order-transaction.ts
|
|
4
|
+
const TaxjarShowOrderTransactionInput = zod.z.object({ transaction_id: zod.z.string().describe("The unique identifier for the order transaction") }).describe("Request model for showing an order transaction.");
|
|
5
|
+
const TaxjarShowOrderTransaction_ShowOrderTransactionLineItemSchema = zod.z.object({
|
|
6
|
+
id: zod.z.union([zod.z.string(), zod.z.number().int()]).nullable().optional(),
|
|
7
|
+
discount: zod.z.number().describe("Total discount applied to this line item"),
|
|
8
|
+
quantity: zod.z.number().int().describe("Number of units for this line item"),
|
|
9
|
+
sales_tax: zod.z.number().describe("Sales tax collected for this line item"),
|
|
10
|
+
unit_price: zod.z.number().describe("Price per single unit"),
|
|
11
|
+
description: zod.z.string().describe("Product description for this line item").nullable().optional(),
|
|
12
|
+
product_tax_code: zod.z.string().describe("Product tax code for specialized tax rules").nullable().optional(),
|
|
13
|
+
product_identifier: zod.z.string().describe("Seller-defined product identifier (SKU or product code)")
|
|
14
|
+
}).describe("Line item within an order transaction.");
|
|
15
|
+
const TaxjarShowOrderTransaction_ShowOrderTransactionResponseOrderSchema = zod.z.object({
|
|
16
|
+
amount: zod.z.number().describe("Total order amount excluding shipping and tax"),
|
|
17
|
+
to_zip: zod.z.string().describe("Destination postal code"),
|
|
18
|
+
to_city: zod.z.string().describe("Destination city"),
|
|
19
|
+
user_id: zod.z.union([zod.z.string(), zod.z.number().int()]).nullable().optional(),
|
|
20
|
+
from_zip: zod.z.string().describe("Origin postal code").nullable().optional(),
|
|
21
|
+
provider: zod.z.string().describe("API partner that processed the transaction (e.g., 'api')").nullable().optional(),
|
|
22
|
+
shipping: zod.z.number().describe("Total shipping amount"),
|
|
23
|
+
to_state: zod.z.string().describe("Destination state or province"),
|
|
24
|
+
from_city: zod.z.string().describe("Origin city").nullable().optional(),
|
|
25
|
+
sales_tax: zod.z.number().describe("Total sales tax collected for the order"),
|
|
26
|
+
to_street: zod.z.string().describe("Destination street address").nullable().optional(),
|
|
27
|
+
from_state: zod.z.string().describe("Origin state or province").nullable().optional(),
|
|
28
|
+
line_items: zod.z.array(TaxjarShowOrderTransaction_ShowOrderTransactionLineItemSchema).describe("List of line items included in this order transaction"),
|
|
29
|
+
to_country: zod.z.string().describe("Destination country code (ISO 2-letter)"),
|
|
30
|
+
customer_id: zod.z.string().describe("Customer identifier").nullable().optional(),
|
|
31
|
+
from_street: zod.z.string().describe("Origin street address").nullable().optional(),
|
|
32
|
+
from_country: zod.z.string().describe("Origin country code (ISO 2-letter)"),
|
|
33
|
+
exemption_type: zod.z.string().describe("Type of tax exemption applied, if any").nullable().optional(),
|
|
34
|
+
transaction_id: zod.z.string().describe("Unique identifier for the order transaction"),
|
|
35
|
+
transaction_date: zod.z.string().describe("Date and time the transaction occurred in ISO 8601 format (e.g., 2024-01-15T10:30:00.000Z)"),
|
|
36
|
+
transaction_reference_id: zod.z.string().describe("External reference ID for the transaction").nullable().optional()
|
|
37
|
+
}).describe("Order transaction details.");
|
|
38
|
+
const TaxjarShowOrderTransactionOutput = zod.z.object({ order: TaxjarShowOrderTransaction_ShowOrderTransactionResponseOrderSchema.nullable() }).describe("Response model for showing an order transaction.");
|
|
39
|
+
const taxjarShowOrderTransaction = require_action.action("TAXJAR_SHOW_ORDER_TRANSACTION", {
|
|
40
|
+
slug: "taxjar-show-order-transaction",
|
|
41
|
+
name: "Show Order Transaction",
|
|
42
|
+
description: "Tool to show an existing order transaction by ID. Use when you need to retrieve full details of a specific order transaction after creation or listing.",
|
|
43
|
+
input: TaxjarShowOrderTransactionInput,
|
|
44
|
+
output: TaxjarShowOrderTransactionOutput
|
|
45
|
+
});
|
|
46
|
+
//#endregion
|
|
47
|
+
exports.taxjarShowOrderTransaction = taxjarShowOrderTransaction;
|
|
48
|
+
|
|
49
|
+
//# sourceMappingURL=show-order-transaction.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"show-order-transaction.cjs","names":["z","action"],"sources":["../../src/actions/show-order-transaction.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const TaxjarShowOrderTransactionInput: z.ZodTypeAny = z.object({\n transaction_id: z.string().describe(\"The unique identifier for the order transaction\"),\n}).describe(\"Request model for showing an order transaction.\");\nconst TaxjarShowOrderTransaction_ShowOrderTransactionLineItemSchema: z.ZodTypeAny = z.object({\n id: z.union([z.string(), z.number().int()]).nullable().optional(),\n discount: z.number().describe(\"Total discount applied to this line item\"),\n quantity: z.number().int().describe(\"Number of units for this line item\"),\n sales_tax: z.number().describe(\"Sales tax collected for this line item\"),\n unit_price: z.number().describe(\"Price per single unit\"),\n description: z.string().describe(\"Product description for this line item\").nullable().optional(),\n product_tax_code: z.string().describe(\"Product tax code for specialized tax rules\").nullable().optional(),\n product_identifier: z.string().describe(\"Seller-defined product identifier (SKU or product code)\"),\n}).describe(\"Line item within an order transaction.\");\nconst TaxjarShowOrderTransaction_ShowOrderTransactionResponseOrderSchema: z.ZodTypeAny = z.object({\n amount: z.number().describe(\"Total order amount excluding shipping and tax\"),\n to_zip: z.string().describe(\"Destination postal code\"),\n to_city: z.string().describe(\"Destination city\"),\n user_id: z.union([z.string(), z.number().int()]).nullable().optional(),\n from_zip: z.string().describe(\"Origin postal code\").nullable().optional(),\n provider: z.string().describe(\"API partner that processed the transaction (e.g., 'api')\").nullable().optional(),\n shipping: z.number().describe(\"Total shipping amount\"),\n to_state: z.string().describe(\"Destination state or province\"),\n from_city: z.string().describe(\"Origin city\").nullable().optional(),\n sales_tax: z.number().describe(\"Total sales tax collected for the order\"),\n to_street: z.string().describe(\"Destination street address\").nullable().optional(),\n from_state: z.string().describe(\"Origin state or province\").nullable().optional(),\n line_items: z.array(TaxjarShowOrderTransaction_ShowOrderTransactionLineItemSchema).describe(\"List of line items included in this order transaction\"),\n to_country: z.string().describe(\"Destination country code (ISO 2-letter)\"),\n customer_id: z.string().describe(\"Customer identifier\").nullable().optional(),\n from_street: z.string().describe(\"Origin street address\").nullable().optional(),\n from_country: z.string().describe(\"Origin country code (ISO 2-letter)\"),\n exemption_type: z.string().describe(\"Type of tax exemption applied, if any\").nullable().optional(),\n transaction_id: z.string().describe(\"Unique identifier for the order transaction\"),\n transaction_date: z.string().describe(\"Date and time the transaction occurred in ISO 8601 format (e.g., 2024-01-15T10:30:00.000Z)\"),\n transaction_reference_id: z.string().describe(\"External reference ID for the transaction\").nullable().optional(),\n}).describe(\"Order transaction details.\");\nexport const TaxjarShowOrderTransactionOutput: z.ZodTypeAny = z.object({\n order: TaxjarShowOrderTransaction_ShowOrderTransactionResponseOrderSchema.nullable(),\n}).describe(\"Response model for showing an order transaction.\");\n\nexport const taxjarShowOrderTransaction = action(\"TAXJAR_SHOW_ORDER_TRANSACTION\", {\n slug: \"taxjar-show-order-transaction\",\n name: \"Show Order Transaction\",\n description: \"Tool to show an existing order transaction by ID. Use when you need to retrieve full details of a specific order transaction after creation or listing.\",\n input: TaxjarShowOrderTransactionInput,\n output: TaxjarShowOrderTransactionOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAgDA,IAAAA,EAAE,OAAO,EACpE,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,EACvF,CAAC,CAAC,CAAC,SAAS,iDAAiD;AAC7D,MAAM,gEAA8EA,IAAAA,EAAE,OAAO;CAC3F,IAAIA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C;CACxE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC;CACxE,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC;CACvE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB;CACvD,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/F,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxG,oBAAoBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD;AACnG,CAAC,CAAC,CAAC,SAAS,wCAAwC;AACpD,MAAM,qEAAmFA,IAAAA,EAAE,OAAO;CAChG,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;CAC3E,QAAQA,IAAAA,EAAE,OAAO,CAA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AO,CAAC,CAAC,SAAS,oCAAoC;CACtE,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjG,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C;CACjF,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4FAA4F;CAClI,0BAA0BA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACjH,CAAC,CAAC,CAAC,SAAS,4BAA4B;AACxC,MAAa,mCAAiDA,IAAAA,EAAE,OAAO,EACrE,OAAO,mEAAmE,SAAS,EACrF,CAAC,CAAC,CAAC,SAAS,kDAAkD;AAE9D,MAAa,6BAA6BC,eAAAA,OAAO,iCAAiC;CAChF,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/show-order-transaction.d.ts
|
|
4
|
+
declare const TaxjarShowOrderTransactionInput: z.ZodTypeAny;
|
|
5
|
+
declare const TaxjarShowOrderTransactionOutput: z.ZodTypeAny;
|
|
6
|
+
declare const taxjarShowOrderTransaction: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { taxjarShowOrderTransaction };
|
|
9
|
+
//# sourceMappingURL=show-order-transaction.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"show-order-transaction.d.cts","names":[],"sources":["../../src/actions/show-order-transaction.ts"],"mappings":";;;cAIa,+BAAA,EAAiC,CAAA,CAAE,UAEc;AAAA,cAkCjD,gCAAA,EAAkC,CAAA,CAAE,UAEc;AAAA,cAElD,0BAAA,gCAA0B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/show-order-transaction.d.ts
|
|
4
|
+
declare const TaxjarShowOrderTransactionInput: z.ZodTypeAny;
|
|
5
|
+
declare const TaxjarShowOrderTransactionOutput: z.ZodTypeAny;
|
|
6
|
+
declare const taxjarShowOrderTransaction: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { taxjarShowOrderTransaction };
|
|
9
|
+
//# sourceMappingURL=show-order-transaction.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"show-order-transaction.d.mts","names":[],"sources":["../../src/actions/show-order-transaction.ts"],"mappings":";;;cAIa,+BAAA,EAAiC,CAAA,CAAE,UAEc;AAAA,cAkCjD,gCAAA,EAAkC,CAAA,CAAE,UAEc;AAAA,cAElD,0BAAA,gCAA0B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/show-order-transaction.ts
|
|
4
|
+
const TaxjarShowOrderTransactionInput = z.object({ transaction_id: z.string().describe("The unique identifier for the order transaction") }).describe("Request model for showing an order transaction.");
|
|
5
|
+
const TaxjarShowOrderTransaction_ShowOrderTransactionLineItemSchema = z.object({
|
|
6
|
+
id: z.union([z.string(), z.number().int()]).nullable().optional(),
|
|
7
|
+
discount: z.number().describe("Total discount applied to this line item"),
|
|
8
|
+
quantity: z.number().int().describe("Number of units for this line item"),
|
|
9
|
+
sales_tax: z.number().describe("Sales tax collected for this line item"),
|
|
10
|
+
unit_price: z.number().describe("Price per single unit"),
|
|
11
|
+
description: z.string().describe("Product description for this line item").nullable().optional(),
|
|
12
|
+
product_tax_code: z.string().describe("Product tax code for specialized tax rules").nullable().optional(),
|
|
13
|
+
product_identifier: z.string().describe("Seller-defined product identifier (SKU or product code)")
|
|
14
|
+
}).describe("Line item within an order transaction.");
|
|
15
|
+
const TaxjarShowOrderTransaction_ShowOrderTransactionResponseOrderSchema = z.object({
|
|
16
|
+
amount: z.number().describe("Total order amount excluding shipping and tax"),
|
|
17
|
+
to_zip: z.string().describe("Destination postal code"),
|
|
18
|
+
to_city: z.string().describe("Destination city"),
|
|
19
|
+
user_id: z.union([z.string(), z.number().int()]).nullable().optional(),
|
|
20
|
+
from_zip: z.string().describe("Origin postal code").nullable().optional(),
|
|
21
|
+
provider: z.string().describe("API partner that processed the transaction (e.g., 'api')").nullable().optional(),
|
|
22
|
+
shipping: z.number().describe("Total shipping amount"),
|
|
23
|
+
to_state: z.string().describe("Destination state or province"),
|
|
24
|
+
from_city: z.string().describe("Origin city").nullable().optional(),
|
|
25
|
+
sales_tax: z.number().describe("Total sales tax collected for the order"),
|
|
26
|
+
to_street: z.string().describe("Destination street address").nullable().optional(),
|
|
27
|
+
from_state: z.string().describe("Origin state or province").nullable().optional(),
|
|
28
|
+
line_items: z.array(TaxjarShowOrderTransaction_ShowOrderTransactionLineItemSchema).describe("List of line items included in this order transaction"),
|
|
29
|
+
to_country: z.string().describe("Destination country code (ISO 2-letter)"),
|
|
30
|
+
customer_id: z.string().describe("Customer identifier").nullable().optional(),
|
|
31
|
+
from_street: z.string().describe("Origin street address").nullable().optional(),
|
|
32
|
+
from_country: z.string().describe("Origin country code (ISO 2-letter)"),
|
|
33
|
+
exemption_type: z.string().describe("Type of tax exemption applied, if any").nullable().optional(),
|
|
34
|
+
transaction_id: z.string().describe("Unique identifier for the order transaction"),
|
|
35
|
+
transaction_date: z.string().describe("Date and time the transaction occurred in ISO 8601 format (e.g., 2024-01-15T10:30:00.000Z)"),
|
|
36
|
+
transaction_reference_id: z.string().describe("External reference ID for the transaction").nullable().optional()
|
|
37
|
+
}).describe("Order transaction details.");
|
|
38
|
+
const taxjarShowOrderTransaction = action("TAXJAR_SHOW_ORDER_TRANSACTION", {
|
|
39
|
+
slug: "taxjar-show-order-transaction",
|
|
40
|
+
name: "Show Order Transaction",
|
|
41
|
+
description: "Tool to show an existing order transaction by ID. Use when you need to retrieve full details of a specific order transaction after creation or listing.",
|
|
42
|
+
input: TaxjarShowOrderTransactionInput,
|
|
43
|
+
output: z.object({ order: TaxjarShowOrderTransaction_ShowOrderTransactionResponseOrderSchema.nullable() }).describe("Response model for showing an order transaction.")
|
|
44
|
+
});
|
|
45
|
+
//#endregion
|
|
46
|
+
export { taxjarShowOrderTransaction };
|
|
47
|
+
|
|
48
|
+
//# sourceMappingURL=show-order-transaction.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"show-order-transaction.mjs","names":[],"sources":["../../src/actions/show-order-transaction.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const TaxjarShowOrderTransactionInput: z.ZodTypeAny = z.object({\n transaction_id: z.string().describe(\"The unique identifier for the order transaction\"),\n}).describe(\"Request model for showing an order transaction.\");\nconst TaxjarShowOrderTransaction_ShowOrderTransactionLineItemSchema: z.ZodTypeAny = z.object({\n id: z.union([z.string(), z.number().int()]).nullable().optional(),\n discount: z.number().describe(\"Total discount applied to this line item\"),\n quantity: z.number().int().describe(\"Number of units for this line item\"),\n sales_tax: z.number().describe(\"Sales tax collected for this line item\"),\n unit_price: z.number().describe(\"Price per single unit\"),\n description: z.string().describe(\"Product description for this line item\").nullable().optional(),\n product_tax_code: z.string().describe(\"Product tax code for specialized tax rules\").nullable().optional(),\n product_identifier: z.string().describe(\"Seller-defined product identifier (SKU or product code)\"),\n}).describe(\"Line item within an order transaction.\");\nconst TaxjarShowOrderTransaction_ShowOrderTransactionResponseOrderSchema: z.ZodTypeAny = z.object({\n amount: z.number().describe(\"Total order amount excluding shipping and tax\"),\n to_zip: z.string().describe(\"Destination postal code\"),\n to_city: z.string().describe(\"Destination city\"),\n user_id: z.union([z.string(), z.number().int()]).nullable().optional(),\n from_zip: z.string().describe(\"Origin postal code\").nullable().optional(),\n provider: z.string().describe(\"API partner that processed the transaction (e.g., 'api')\").nullable().optional(),\n shipping: z.number().describe(\"Total shipping amount\"),\n to_state: z.string().describe(\"Destination state or province\"),\n from_city: z.string().describe(\"Origin city\").nullable().optional(),\n sales_tax: z.number().describe(\"Total sales tax collected for the order\"),\n to_street: z.string().describe(\"Destination street address\").nullable().optional(),\n from_state: z.string().describe(\"Origin state or province\").nullable().optional(),\n line_items: z.array(TaxjarShowOrderTransaction_ShowOrderTransactionLineItemSchema).describe(\"List of line items included in this order transaction\"),\n to_country: z.string().describe(\"Destination country code (ISO 2-letter)\"),\n customer_id: z.string().describe(\"Customer identifier\").nullable().optional(),\n from_street: z.string().describe(\"Origin street address\").nullable().optional(),\n from_country: z.string().describe(\"Origin country code (ISO 2-letter)\"),\n exemption_type: z.string().describe(\"Type of tax exemption applied, if any\").nullable().optional(),\n transaction_id: z.string().describe(\"Unique identifier for the order transaction\"),\n transaction_date: z.string().describe(\"Date and time the transaction occurred in ISO 8601 format (e.g., 2024-01-15T10:30:00.000Z)\"),\n transaction_reference_id: z.string().describe(\"External reference ID for the transaction\").nullable().optional(),\n}).describe(\"Order transaction details.\");\nexport const TaxjarShowOrderTransactionOutput: z.ZodTypeAny = z.object({\n order: TaxjarShowOrderTransaction_ShowOrderTransactionResponseOrderSchema.nullable(),\n}).describe(\"Response model for showing an order transaction.\");\n\nexport const taxjarShowOrderTransaction = action(\"TAXJAR_SHOW_ORDER_TRANSACTION\", {\n slug: \"taxjar-show-order-transaction\",\n name: \"Show Order Transaction\",\n description: \"Tool to show an existing order transaction by ID. Use when you need to retrieve full details of a specific order transaction after creation or listing.\",\n input: Ta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;CACb,OAAO;CACP,QAT4D,EAAE,OAAO,EACrE,OAAO,mEAAmE,SAAS,EACrF,CAAC,CAAC,CAAC,SAAS,kDAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/show-refund-transaction.ts
|
|
4
|
+
const TaxjarShowRefundTransactionInput = zod.z.object({ transaction_id: zod.z.string().describe("The unique ID of the refund transaction to retrieve") });
|
|
5
|
+
const TaxjarShowRefundTransaction_RefundLineItemSchema = zod.z.object({
|
|
6
|
+
id: zod.z.union([zod.z.string(), zod.z.number().int()]),
|
|
7
|
+
discount: zod.z.union([zod.z.string(), zod.z.number()]).nullable().optional(),
|
|
8
|
+
quantity: zod.z.number().int().describe("Quantity refunded"),
|
|
9
|
+
sales_tax: zod.z.number().describe("Sales tax amount for this line item"),
|
|
10
|
+
unit_price: zod.z.number().describe("Unit price of the item at time of refund"),
|
|
11
|
+
description: zod.z.string().describe("Description of the line item"),
|
|
12
|
+
product_tax_code: zod.z.string().describe("Product tax code for this line item").nullable().optional(),
|
|
13
|
+
product_identifier: zod.z.string().describe("Product identifier, e.g. SKU")
|
|
14
|
+
});
|
|
15
|
+
const TaxjarShowRefundTransaction_RefundSchema = zod.z.object({
|
|
16
|
+
amount: zod.z.number().describe("Total amount refunded"),
|
|
17
|
+
to_zip: zod.z.string().describe("ZIP code shipped to"),
|
|
18
|
+
to_city: zod.z.string().describe("City shipped to").nullable().optional(),
|
|
19
|
+
user_id: zod.z.number().int().describe("TaxJar user ID").nullable().optional(),
|
|
20
|
+
from_zip: zod.z.string().describe("ZIP code shipped from").nullable().optional(),
|
|
21
|
+
provider: zod.z.string().describe("Provider origin of the transaction"),
|
|
22
|
+
shipping: zod.z.number().describe("Shipping amount refunded"),
|
|
23
|
+
to_state: zod.z.string().describe("State shipped to"),
|
|
24
|
+
from_city: zod.z.string().describe("City shipped from").nullable().optional(),
|
|
25
|
+
sales_tax: zod.z.number().describe("Total sales tax refunded"),
|
|
26
|
+
to_street: zod.z.string().describe("Street address shipped to").nullable().optional(),
|
|
27
|
+
from_state: zod.z.string().describe("State shipped from").nullable().optional(),
|
|
28
|
+
line_items: zod.z.array(TaxjarShowRefundTransaction_RefundLineItemSchema).describe("List of refunded line items").nullable().optional(),
|
|
29
|
+
to_country: zod.z.string().describe("Country shipped to"),
|
|
30
|
+
customer_id: zod.z.string().describe("Customer ID if applicable").nullable().optional(),
|
|
31
|
+
from_street: zod.z.string().describe("Street address shipped from").nullable().optional(),
|
|
32
|
+
from_country: zod.z.string().describe("Country shipped from (origin)").nullable().optional(),
|
|
33
|
+
exemption_type: zod.z.string().describe("Tax exemption type if applicable").nullable().optional(),
|
|
34
|
+
transaction_id: zod.z.string().describe("Unique ID for this refund"),
|
|
35
|
+
transaction_date: zod.z.string().describe("Date of refund (ISO 8601 format)"),
|
|
36
|
+
transaction_reference_id: zod.z.string().describe("ID referencing original transaction")
|
|
37
|
+
});
|
|
38
|
+
const TaxjarShowRefundTransactionOutput = zod.z.object({ refund: TaxjarShowRefundTransaction_RefundSchema.nullable() });
|
|
39
|
+
const taxjarShowRefundTransaction = require_action.action("TAXJAR_SHOW_REFUND_TRANSACTION", {
|
|
40
|
+
slug: "taxjar-show-refund-transaction",
|
|
41
|
+
name: "Show Refund Transaction",
|
|
42
|
+
description: "Retrieves detailed information about a specific refund transaction from TaxJar. Use this tool when you need to: - View complete details of a refund transaction including amounts, addresses, and line items - Verify refund transaction data that was previously created - Audit refund information for tax reporting purposes Requires a valid transaction_id that was previously created through TaxJar's API.",
|
|
43
|
+
input: TaxjarShowRefundTransactionInput,
|
|
44
|
+
output: TaxjarShowRefundTransactionOutput
|
|
45
|
+
});
|
|
46
|
+
//#endregion
|
|
47
|
+
exports.taxjarShowRefundTransaction = taxjarShowRefundTransaction;
|
|
48
|
+
|
|
49
|
+
//# sourceMappingURL=show-refund-transaction.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"show-refund-transaction.cjs","names":["z","action"],"sources":["../../src/actions/show-refund-transaction.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const TaxjarShowRefundTransactionInput: z.ZodTypeAny = z.object({\n transaction_id: z.string().describe(\"The unique ID of the refund transaction to retrieve\"),\n});\nconst TaxjarShowRefundTransaction_RefundLineItemSchema: z.ZodTypeAny = z.object({\n id: z.union([z.string(), z.number().int()]),\n discount: z.union([z.string(), z.number()]).nullable().optional(),\n quantity: z.number().int().describe(\"Quantity refunded\"),\n sales_tax: z.number().describe(\"Sales tax amount for this line item\"),\n unit_price: z.number().describe(\"Unit price of the item at time of refund\"),\n description: z.string().describe(\"Description of the line item\"),\n product_tax_code: z.string().describe(\"Product tax code for this line item\").nullable().optional(),\n product_identifier: z.string().describe(\"Product identifier, e.g. SKU\"),\n});\nconst TaxjarShowRefundTransaction_RefundSchema: z.ZodTypeAny = z.object({\n amount: z.number().describe(\"Total amount refunded\"),\n to_zip: z.string().describe(\"ZIP code shipped to\"),\n to_city: z.string().describe(\"City shipped to\").nullable().optional(),\n user_id: z.number().int().describe(\"TaxJar user ID\").nullable().optional(),\n from_zip: z.string().describe(\"ZIP code shipped from\").nullable().optional(),\n provider: z.string().describe(\"Provider origin of the transaction\"),\n shipping: z.number().describe(\"Shipping amount refunded\"),\n to_state: z.string().describe(\"State shipped to\"),\n from_city: z.string().describe(\"City shipped from\").nullable().optional(),\n sales_tax: z.number().describe(\"Total sales tax refunded\"),\n to_street: z.string().describe(\"Street address shipped to\").nullable().optional(),\n from_state: z.string().describe(\"State shipped from\").nullable().optional(),\n line_items: z.array(TaxjarShowRefundTransaction_RefundLineItemSchema).describe(\"List of refunded line items\").nullable().optional(),\n to_country: z.string().describe(\"Country shipped to\"),\n customer_id: z.string().describe(\"Customer ID if applicable\").nullable().optional(),\n from_street: z.string().describe(\"Street address shipped from\").nullable().optional(),\n from_country: z.string().describe(\"Country shipped from (origin)\").nullable().optional(),\n exemption_type: z.string().describe(\"Tax exemption type if applicable\").nullable().optional(),\n transaction_id: z.string().describe(\"Unique ID for this refund\"),\n transaction_date: z.string().describe(\"Date of refund (ISO 8601 format)\"),\n transaction_reference_id: z.string().describe(\"ID referencing original transaction\"),\n});\nexport const TaxjarShowRefundTransactionOutput: z.ZodTypeAny = z.object({\n refund: TaxjarShowRefundTransaction_RefundSchema.nullable(),\n});\n\nexport const taxjarShowRefundTransaction = action(\"TAXJAR_SHOW_REFUND_TRANSACTION\", {\n slug: \"taxjar-show-refund-transaction\",\n name: \"Show Refund Transaction\",\n description: \"Retrieves detailed information about a specific refund transaction from TaxJar. Use this tool when you need to: - View complete details of a refund transaction including amounts, addresses, and line items - Verify refund transaction data that was previously created - Audit refund information for tax reporting purposes Requires a valid transaction_id that was previously created through TaxJar's API.\",\n input: TaxjarShowRefundTransactionInput,\n output: TaxjarShowRefundTransactionOutput,\n});\n"],"mappings":";;;AAIA,MAAa,mCAAiDA,IAAAA,EAAE,OAAO,EACrE,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,EAC3F,CAAC;AACD,MAAM,mDAAiEA,IAAAA,EAAE,OAAO;CAC9E,IAAIA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC;CAC1C,UAAUA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mBAAmB;CACvD,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC;CACpE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C;CAC1E,aAAaA,IAAAA,EAAE,OAAO,C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SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClI,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB;CACpD,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvF,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5F,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;CAC/D,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;CACxE,0BAA0BA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC;AACrF,CAAC;AACD,MAAa,oCAAkDA,IAAAA,EAAE,OAAO,EACtE,QAAQ,yCAAyC,SAAS,EAC5D,CAAC;AAED,MAAa,8BAA8BC,eAAAA,OAAO,kCAAkC;CAClF,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/show-refund-transaction.d.ts
|
|
4
|
+
declare const TaxjarShowRefundTransactionInput: z.ZodTypeAny;
|
|
5
|
+
declare const TaxjarShowRefundTransactionOutput: z.ZodTypeAny;
|
|
6
|
+
declare const taxjarShowRefundTransaction: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { taxjarShowRefundTransaction };
|
|
9
|
+
//# sourceMappingURL=show-refund-transaction.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"show-refund-transaction.d.cts","names":[],"sources":["../../src/actions/show-refund-transaction.ts"],"mappings":";;;cAIa,gCAAA,EAAkC,CAAA,CAAE,UAE/C;AAAA,cAkCW,iCAAA,EAAmC,CAAA,CAAE,UAEhD;AAAA,cAEW,2BAAA,gCAA2B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/show-refund-transaction.d.ts
|
|
4
|
+
declare const TaxjarShowRefundTransactionInput: z.ZodTypeAny;
|
|
5
|
+
declare const TaxjarShowRefundTransactionOutput: z.ZodTypeAny;
|
|
6
|
+
declare const taxjarShowRefundTransaction: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { taxjarShowRefundTransaction };
|
|
9
|
+
//# sourceMappingURL=show-refund-transaction.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"show-refund-transaction.d.mts","names":[],"sources":["../../src/actions/show-refund-transaction.ts"],"mappings":";;;cAIa,gCAAA,EAAkC,CAAA,CAAE,UAE/C;AAAA,cAkCW,iCAAA,EAAmC,CAAA,CAAE,UAEhD;AAAA,cAEW,2BAAA,gCAA2B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/show-refund-transaction.ts
|
|
4
|
+
const TaxjarShowRefundTransactionInput = z.object({ transaction_id: z.string().describe("The unique ID of the refund transaction to retrieve") });
|
|
5
|
+
const TaxjarShowRefundTransaction_RefundLineItemSchema = z.object({
|
|
6
|
+
id: z.union([z.string(), z.number().int()]),
|
|
7
|
+
discount: z.union([z.string(), z.number()]).nullable().optional(),
|
|
8
|
+
quantity: z.number().int().describe("Quantity refunded"),
|
|
9
|
+
sales_tax: z.number().describe("Sales tax amount for this line item"),
|
|
10
|
+
unit_price: z.number().describe("Unit price of the item at time of refund"),
|
|
11
|
+
description: z.string().describe("Description of the line item"),
|
|
12
|
+
product_tax_code: z.string().describe("Product tax code for this line item").nullable().optional(),
|
|
13
|
+
product_identifier: z.string().describe("Product identifier, e.g. SKU")
|
|
14
|
+
});
|
|
15
|
+
const TaxjarShowRefundTransaction_RefundSchema = z.object({
|
|
16
|
+
amount: z.number().describe("Total amount refunded"),
|
|
17
|
+
to_zip: z.string().describe("ZIP code shipped to"),
|
|
18
|
+
to_city: z.string().describe("City shipped to").nullable().optional(),
|
|
19
|
+
user_id: z.number().int().describe("TaxJar user ID").nullable().optional(),
|
|
20
|
+
from_zip: z.string().describe("ZIP code shipped from").nullable().optional(),
|
|
21
|
+
provider: z.string().describe("Provider origin of the transaction"),
|
|
22
|
+
shipping: z.number().describe("Shipping amount refunded"),
|
|
23
|
+
to_state: z.string().describe("State shipped to"),
|
|
24
|
+
from_city: z.string().describe("City shipped from").nullable().optional(),
|
|
25
|
+
sales_tax: z.number().describe("Total sales tax refunded"),
|
|
26
|
+
to_street: z.string().describe("Street address shipped to").nullable().optional(),
|
|
27
|
+
from_state: z.string().describe("State shipped from").nullable().optional(),
|
|
28
|
+
line_items: z.array(TaxjarShowRefundTransaction_RefundLineItemSchema).describe("List of refunded line items").nullable().optional(),
|
|
29
|
+
to_country: z.string().describe("Country shipped to"),
|
|
30
|
+
customer_id: z.string().describe("Customer ID if applicable").nullable().optional(),
|
|
31
|
+
from_street: z.string().describe("Street address shipped from").nullable().optional(),
|
|
32
|
+
from_country: z.string().describe("Country shipped from (origin)").nullable().optional(),
|
|
33
|
+
exemption_type: z.string().describe("Tax exemption type if applicable").nullable().optional(),
|
|
34
|
+
transaction_id: z.string().describe("Unique ID for this refund"),
|
|
35
|
+
transaction_date: z.string().describe("Date of refund (ISO 8601 format)"),
|
|
36
|
+
transaction_reference_id: z.string().describe("ID referencing original transaction")
|
|
37
|
+
});
|
|
38
|
+
const taxjarShowRefundTransaction = action("TAXJAR_SHOW_REFUND_TRANSACTION", {
|
|
39
|
+
slug: "taxjar-show-refund-transaction",
|
|
40
|
+
name: "Show Refund Transaction",
|
|
41
|
+
description: "Retrieves detailed information about a specific refund transaction from TaxJar. Use this tool when you need to: - View complete details of a refund transaction including amounts, addresses, and line items - Verify refund transaction data that was previously created - Audit refund information for tax reporting purposes Requires a valid transaction_id that was previously created through TaxJar's API.",
|
|
42
|
+
input: TaxjarShowRefundTransactionInput,
|
|
43
|
+
output: z.object({ refund: TaxjarShowRefundTransaction_RefundSchema.nullable() })
|
|
44
|
+
});
|
|
45
|
+
//#endregion
|
|
46
|
+
export { taxjarShowRefundTransaction };
|
|
47
|
+
|
|
48
|
+
//# sourceMappingURL=show-refund-transaction.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"show-refund-transaction.mjs","names":[],"sources":["../../src/actions/show-refund-transaction.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const TaxjarShowRefundTransactionInput: z.ZodTypeAny = z.object({\n transaction_id: z.string().describe(\"The unique ID of the refund transaction to retrieve\"),\n});\nconst TaxjarShowRefundTransaction_RefundLineItemSchema: z.ZodTypeAny = z.object({\n id: z.union([z.string(), z.number().int()]),\n discount: z.union([z.string(), z.number()]).nullable().optional(),\n quantity: z.number().int().describe(\"Quantity refunded\"),\n sales_tax: z.number().describe(\"Sales tax amount for this line item\"),\n unit_price: z.number().describe(\"Unit price of the item at time of refund\"),\n description: z.string().describe(\"Description of the line item\"),\n product_tax_code: z.string().describe(\"Product tax code for this line item\").nullable().optional(),\n product_identifier: z.string().describe(\"Product identifier, e.g. SKU\"),\n});\nconst TaxjarShowRefundTransaction_RefundSchema: z.ZodTypeAny = z.object({\n amount: z.number().describe(\"Total amount refunded\"),\n to_zip: z.string().describe(\"ZIP code shipped to\"),\n to_city: z.string().describe(\"City shipped to\").nullable().optional(),\n user_id: z.number().int().describe(\"TaxJar user ID\").nullable().optional(),\n from_zip: z.string().describe(\"ZIP code shipped from\").nullable().optional(),\n provider: z.string().describe(\"Provider origin of the transaction\"),\n shipping: z.number().describe(\"Shipping amount refunded\"),\n to_state: z.string().describe(\"State shipped to\"),\n from_city: z.string().describe(\"City shipped from\").nullable().optional(),\n sales_tax: z.number().describe(\"Total sales tax refunded\"),\n to_street: z.string().describe(\"Street address shipped to\").nullable().optional(),\n from_state: z.string().describe(\"State shipped from\").nullable().optional(),\n line_items: z.array(TaxjarShowRefundTransaction_RefundLineItemSchema).describe(\"List of refunded line items\").nullable().optional(),\n to_country: z.string().describe(\"Country shipped to\"),\n customer_id: z.string().describe(\"Customer ID if applicable\").nullable().optional(),\n from_street: z.string().describe(\"Street address shipped from\").nullable().optional(),\n from_country: z.string().describe(\"Country shipped from (origin)\").nullable().optional(),\n exemption_type: z.string().describe(\"Tax exemption type if applicable\").nullable().optional(),\n transaction_id: z.string().describe(\"Unique ID for this refund\"),\n transaction_date: z.string().describe(\"Date of refund (ISO 8601 format)\"),\n transaction_reference_id: z.string().describe(\"ID referencing original transaction\"),\n});\nexport const TaxjarShowRefundTransactionOutput: z.ZodTypeAny = z.object({\n refund: TaxjarShowRefundTransaction_RefundSchema.nullable(),\n});\n\nexport const taxjarShowRefundTransaction = action(\"TAXJAR_SHOW_REFUND_TRANSACTION\", {\n slug: \"taxjar-show-refund-transaction\",\n name: \"Show Refund Transaction\",\n description: \"Retrieves detailed information about a specific refund transaction from TaxJar. Use this tool when you need to: - View complete details of a refund transaction including amounts, addresses, and line items - Verify refund transaction data that was previously created - Audit refund information for tax reporting purposes Requires a valid transaction_id that was previously created through TaxJar's API.\",\n input: TaxjarShowRefundTransactionInput,\n output: TaxjarShowRefundTransactionOutput,\n});\n"],"mappings":";;;AAIA,MAAa,mCAAiD,EAAE,OAAO,EACrE,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,EAC3F,CAAC;AACD,MAAM,mDAAiE,EAAE,OAAO;CAC9E,IAAI,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC;CAC1C,UAAU,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChE,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mBAAmB;CACvD,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC;CACpE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C;CAC1E,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B;CAC/D,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjG,oBAAoB,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B;AACxE,CAAC;AACD,MAAM,2CAAyD,EAAE,OAAO;CACtE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB;CACnD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB;CACjD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,iBAAiB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpE,SAAS,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CA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,OAAO;CACP,QAT6D,EAAE,OAAO,EACtE,QAAQ,yCAAyC,SAAS,EAC5D,CAOU;AACV,CAAC"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/show-tax-rates-for-a-location.ts
|
|
4
|
+
const TaxjarShowTaxRatesForALocationInput = zod.z.object({
|
|
5
|
+
zip: zod.z.string().describe("ZIP code to retrieve rates for"),
|
|
6
|
+
city: zod.z.string().describe("City name").optional(),
|
|
7
|
+
state: zod.z.string().describe("State abbreviation").optional(),
|
|
8
|
+
street: zod.z.string().describe("Street address").optional(),
|
|
9
|
+
country: zod.z.string().describe("Two-letter country code (ISO-2), default 'US'").optional()
|
|
10
|
+
}).describe("Request model for showing tax rates for a specific location.");
|
|
11
|
+
const TaxjarShowTaxRatesForALocation_RateSchema = zod.z.object({
|
|
12
|
+
zip: zod.z.string().describe("ZIP code queried"),
|
|
13
|
+
city: zod.z.string().describe("City name").nullable().optional(),
|
|
14
|
+
name: zod.z.string().describe("Formatted name for display (city or county)").nullable().optional(),
|
|
15
|
+
state: zod.z.string().describe("State abbreviation").nullable().optional(),
|
|
16
|
+
county: zod.z.string().describe("County name (US)").nullable().optional(),
|
|
17
|
+
country: zod.z.string().describe("Two-letter country code (ISO-2)"),
|
|
18
|
+
city_rate: zod.z.string().describe("City tax rate (US)").nullable().optional(),
|
|
19
|
+
state_rate: zod.z.string().describe("State tax rate (US)").nullable().optional(),
|
|
20
|
+
county_rate: zod.z.string().describe("County tax rate (US)").nullable().optional(),
|
|
21
|
+
country_rate: zod.z.string().describe("Country-wide tax rate (US)").nullable().optional(),
|
|
22
|
+
parking_rate: zod.z.string().describe("Parking rate for VAT/GST (non-US)").nullable().optional(),
|
|
23
|
+
reduced_rate: zod.z.string().describe("Reduced rate for VAT/GST (non-US)").nullable().optional(),
|
|
24
|
+
combined_rate: zod.z.string().describe("Total sales tax rate for the location"),
|
|
25
|
+
standard_rate: zod.z.string().describe("Standard rate for VAT/GST (non-US)").nullable().optional(),
|
|
26
|
+
freight_taxable: zod.z.boolean().describe("Indicates if freight is taxable"),
|
|
27
|
+
super_reduced_rate: zod.z.string().describe("Super reduced rate for VAT/GST (non-US)").nullable().optional(),
|
|
28
|
+
combined_district_rate: zod.z.string().describe("Combined special district tax rate (US)").nullable().optional()
|
|
29
|
+
}).describe("Sales tax rates for a location.");
|
|
30
|
+
const TaxjarShowTaxRatesForALocationOutput = zod.z.object({ rate: TaxjarShowTaxRatesForALocation_RateSchema.nullable() }).describe("Response model for showing tax rates for a location.");
|
|
31
|
+
const taxjarShowTaxRatesForALocation = require_action.action("TAXJAR_SHOW_TAX_RATES_FOR_A_LOCATION", {
|
|
32
|
+
slug: "taxjar-show-tax-rates-for-a-location",
|
|
33
|
+
name: "Show Tax Rates for a Location",
|
|
34
|
+
description: "Tool to show sales tax rates for a location. Use when you need to retrieve sales tax rates for a specific ZIP code with optional address details (city, state, country, street).",
|
|
35
|
+
input: TaxjarShowTaxRatesForALocationInput,
|
|
36
|
+
output: TaxjarShowTaxRatesForALocationOutput
|
|
37
|
+
});
|
|
38
|
+
//#endregion
|
|
39
|
+
exports.taxjarShowTaxRatesForALocation = taxjarShowTaxRatesForALocation;
|
|
40
|
+
|
|
41
|
+
//# sourceMappingURL=show-tax-rates-for-a-location.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"show-tax-rates-for-a-location.cjs","names":["z","action"],"sources":["../../src/actions/show-tax-rates-for-a-location.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const TaxjarShowTaxRatesForALocationInput: z.ZodTypeAny = z.object({\n zip: z.string().describe(\"ZIP code to retrieve rates for\"),\n city: z.string().describe(\"City name\").optional(),\n state: z.string().describe(\"State abbreviation\").optional(),\n street: z.string().describe(\"Street address\").optional(),\n country: z.string().describe(\"Two-letter country code (ISO-2), default 'US'\").optional(),\n}).describe(\"Request model for showing tax rates for a specific location.\");\nconst TaxjarShowTaxRatesForALocation_RateSchema: z.ZodTypeAny = z.object({\n zip: z.string().describe(\"ZIP code queried\"),\n city: z.string().describe(\"City name\").nullable().optional(),\n name: z.string().describe(\"Formatted name for display (city or county)\").nullable().optional(),\n state: z.string().describe(\"State abbreviation\").nullable().optional(),\n county: z.string().describe(\"County name (US)\").nullable().optional(),\n country: z.string().describe(\"Two-letter country code (ISO-2)\"),\n city_rate: z.string().describe(\"City tax rate (US)\").nullable().optional(),\n state_rate: z.string().describe(\"State tax rate (US)\").nullable().optional(),\n county_rate: z.string().describe(\"County tax rate (US)\").nullable().optional(),\n country_rate: z.string().describe(\"Country-wide tax rate (US)\").nullable().optional(),\n parking_rate: z.string().describe(\"Parking rate for VAT/GST (non-US)\").nullable().optional(),\n reduced_rate: z.string().describe(\"Reduced rate for VAT/GST (non-US)\").nullable().optional(),\n combined_rate: z.string().describe(\"Total sales tax rate for the location\"),\n standard_rate: z.string().describe(\"Standard rate for VAT/GST (non-US)\").nullable().optional(),\n freight_taxable: z.boolean().describe(\"Indicates if freight is taxable\"),\n super_reduced_rate: z.string().describe(\"Super reduced rate for VAT/GST (non-US)\").nullable().optional(),\n combined_district_rate: z.string().describe(\"Combined special district tax rate (US)\").nullable().optional(),\n}).describe(\"Sales tax rates for a location.\");\nexport const TaxjarShowTaxRatesForALocationOutput: z.ZodTypeAny = z.object({\n rate: TaxjarShowTaxRatesForALocation_RateSchema.nullable(),\n}).describe(\"Response model for showing tax rates for a location.\");\n\nexport const taxjarShowTaxRatesForALocation = action(\"TAXJAR_SHOW_TAX_RATES_FOR_A_LOCATION\", {\n slug: \"taxjar-show-tax-rates-for-a-location\",\n name: \"Show Tax Rates for a Location\",\n description: \"Tool to show sales tax rates for a location. Use when you need to retrieve sales tax rates for a specific ZIP code with optional address details (city, state, country, street).\",\n input: TaxjarShowTaxRatesForALocationInput,\n output: TaxjarShowTaxRatesForALocationOutput,\n});\n"],"mappings":";;;AAIA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AAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7E,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;CAC1E,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7F,iBAAiBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,iCAAiC;CACvE,oBAAoBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvG,wBAAwBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC7G,CAAC,CAAC,CAAC,SAAS,iCAAiC;AAC7C,MAAa,uCAAqDA,IAAAA,EAAE,OAAO,EACzE,MAAM,0CAA0C,SAAS,EAC3D,CAAC,CAAC,CAAC,SAAS,sDAAsD;AAElE,MAAa,iCAAiCC,eAAAA,OAAO,wCAAwC;CAC3F,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/show-tax-rates-for-a-location.d.ts
|
|
4
|
+
declare const TaxjarShowTaxRatesForALocationInput: z.ZodTypeAny;
|
|
5
|
+
declare const TaxjarShowTaxRatesForALocationOutput: z.ZodTypeAny;
|
|
6
|
+
declare const taxjarShowTaxRatesForALocation: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { taxjarShowTaxRatesForALocation };
|
|
9
|
+
//# sourceMappingURL=show-tax-rates-for-a-location.d.cts.map
|