@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,104 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/create-order-transaction.ts
|
|
4
|
+
const TaxjarCreateOrderTransactionInput = zod.z.object({
|
|
5
|
+
amount: zod.z.number().describe("Total amount of the order including shipping, excluding sales tax. If line_items are provided, must equal sum of (quantity * unit_price - discount) for all items plus shipping."),
|
|
6
|
+
to_lat: zod.z.number().describe("Latitude of the destination address").optional(),
|
|
7
|
+
to_lng: zod.z.number().describe("Longitude of the destination address").optional(),
|
|
8
|
+
to_zip: zod.z.string().describe("Postal code of the order destination"),
|
|
9
|
+
to_city: zod.z.string().describe("City of the order destination").optional(),
|
|
10
|
+
user_id: zod.z.string().describe("Identifier of the user associated with the transaction").optional(),
|
|
11
|
+
shipping: zod.z.number().describe("Total shipping amount for the order"),
|
|
12
|
+
to_state: zod.z.string().describe("Two-letter state code for the order destination"),
|
|
13
|
+
sales_tax: zod.z.number().describe("Sales tax collected for the order").optional(),
|
|
14
|
+
to_street: zod.z.string().describe("Street address of the order destination").optional(),
|
|
15
|
+
line_items: zod.z.array(zod.z.object({
|
|
16
|
+
id: zod.z.string().describe("Unique line item identifier").optional(),
|
|
17
|
+
discount: zod.z.number().describe("Discount applied to the item").optional(),
|
|
18
|
+
quantity: zod.z.number().int().describe("Quantity of the item purchased"),
|
|
19
|
+
sales_tax: zod.z.number().describe("Sales tax collected for the item").optional(),
|
|
20
|
+
unit_price: zod.z.number().describe("Price per unit").optional(),
|
|
21
|
+
description: zod.z.string().describe("Description of the item").optional(),
|
|
22
|
+
product_identifier: zod.z.string().describe("Product identifier").optional()
|
|
23
|
+
})).describe("Line items in the order. If provided, sum of (quantity * unit_price - discount) must equal amount minus shipping.").optional(),
|
|
24
|
+
to_country: zod.z.string().describe("Two-letter ISO country code of the order destination"),
|
|
25
|
+
exemption_type: zod.z.enum([
|
|
26
|
+
"wholesale",
|
|
27
|
+
"government",
|
|
28
|
+
"marketplace",
|
|
29
|
+
"other",
|
|
30
|
+
"non_exempt"
|
|
31
|
+
]).describe("Type of exemption if applicable. Must be 'non_exempt' or 'marketplace' if sales_tax is non-zero.").optional(),
|
|
32
|
+
transaction_id: zod.z.string().describe("Unique identifier for the transaction"),
|
|
33
|
+
nexus_addresses: zod.z.array(zod.z.object({
|
|
34
|
+
id: zod.z.string().describe("Unique nexus address ID").optional(),
|
|
35
|
+
zip: zod.z.string().describe("Postal code"),
|
|
36
|
+
city: zod.z.string().describe("City").optional(),
|
|
37
|
+
state: zod.z.string().describe("Two-letter state code"),
|
|
38
|
+
street: zod.z.string().describe("Street address").optional(),
|
|
39
|
+
country: zod.z.string().describe("Two-letter ISO country code")
|
|
40
|
+
})).describe("Nexus addresses associated with the transaction").optional(),
|
|
41
|
+
transaction_date: zod.z.string().describe("Date/time when transaction occurred (ISO 8601 format)")
|
|
42
|
+
});
|
|
43
|
+
const TaxjarCreateOrderTransaction_OrderLineItemSchema = zod.z.object({
|
|
44
|
+
id: zod.z.number().int().describe("Unique line item identifier (returned as integer by API)").nullable().optional(),
|
|
45
|
+
discount: zod.z.number().describe("Discount applied to the item").nullable().optional(),
|
|
46
|
+
quantity: zod.z.number().int().describe("Quantity of the item purchased"),
|
|
47
|
+
sales_tax: zod.z.number().describe("Sales tax collected for the item").nullable().optional(),
|
|
48
|
+
unit_price: zod.z.number().describe("Price per unit").nullable().optional(),
|
|
49
|
+
description: zod.z.string().describe("Description of the item").nullable().optional(),
|
|
50
|
+
product_tax_code: zod.z.string().describe("Product tax code for the item").nullable().optional(),
|
|
51
|
+
product_identifier: zod.z.string().describe("Product identifier").nullable().optional()
|
|
52
|
+
});
|
|
53
|
+
const TaxjarCreateOrderTransaction_OrderNexusAddressSchema = zod.z.object({
|
|
54
|
+
id: zod.z.string().describe("Unique nexus address ID").nullable().optional(),
|
|
55
|
+
zip: zod.z.string().describe("Postal code"),
|
|
56
|
+
city: zod.z.string().describe("City").nullable().optional(),
|
|
57
|
+
state: zod.z.string().describe("Two-letter state code"),
|
|
58
|
+
street: zod.z.string().describe("Street address").nullable().optional(),
|
|
59
|
+
country: zod.z.string().describe("Two-letter ISO country code")
|
|
60
|
+
});
|
|
61
|
+
const TaxjarCreateOrderTransaction_OrderTransactionSchema = zod.z.object({
|
|
62
|
+
amount: zod.z.number(),
|
|
63
|
+
to_lat: zod.z.number().nullable().optional(),
|
|
64
|
+
to_lng: zod.z.number().nullable().optional(),
|
|
65
|
+
to_zip: zod.z.string(),
|
|
66
|
+
to_city: zod.z.string().nullable().optional(),
|
|
67
|
+
user_id: zod.z.number().int().nullable().optional(),
|
|
68
|
+
from_zip: zod.z.string().nullable().optional(),
|
|
69
|
+
provider: zod.z.string().nullable().optional(),
|
|
70
|
+
shipping: zod.z.number(),
|
|
71
|
+
to_state: zod.z.string(),
|
|
72
|
+
from_city: zod.z.string().nullable().optional(),
|
|
73
|
+
sales_tax: zod.z.number().nullable().optional(),
|
|
74
|
+
to_street: zod.z.string().nullable().optional(),
|
|
75
|
+
from_state: zod.z.string().nullable().optional(),
|
|
76
|
+
line_items: zod.z.array(TaxjarCreateOrderTransaction_OrderLineItemSchema).nullable().optional(),
|
|
77
|
+
to_country: zod.z.string(),
|
|
78
|
+
customer_id: zod.z.string().nullable().optional(),
|
|
79
|
+
from_street: zod.z.string().nullable().optional(),
|
|
80
|
+
from_country: zod.z.string().nullable().optional(),
|
|
81
|
+
exemption_type: zod.z.enum([
|
|
82
|
+
"wholesale",
|
|
83
|
+
"government",
|
|
84
|
+
"marketplace",
|
|
85
|
+
"other",
|
|
86
|
+
"non_exempt"
|
|
87
|
+
]).nullable().optional(),
|
|
88
|
+
transaction_id: zod.z.string(),
|
|
89
|
+
nexus_addresses: zod.z.array(TaxjarCreateOrderTransaction_OrderNexusAddressSchema).nullable().optional(),
|
|
90
|
+
transaction_date: zod.z.string(),
|
|
91
|
+
transaction_reference_id: zod.z.string().nullable().optional()
|
|
92
|
+
});
|
|
93
|
+
const TaxjarCreateOrderTransactionOutput = zod.z.object({ transaction: TaxjarCreateOrderTransaction_OrderTransactionSchema.nullable() });
|
|
94
|
+
const taxjarCreateOrderTransaction = require_action.action("TAXJAR_CREATE_ORDER_TRANSACTION", {
|
|
95
|
+
slug: "taxjar-create-order-transaction",
|
|
96
|
+
name: "Create Order Transaction",
|
|
97
|
+
description: "Creates a new order transaction in TaxJar for sales tax reporting and compliance. This action records order transactions that will appear in the TaxJar dashboard for tax filing purposes. The transaction includes customer location, order amounts, shipping costs, and sales tax collected. Important: The 'amount' field must include shipping but exclude sales tax. If line_items are provided, their sum (quantity * unit_price - discount) must equal amount minus shipping.",
|
|
98
|
+
input: TaxjarCreateOrderTransactionInput,
|
|
99
|
+
output: TaxjarCreateOrderTransactionOutput
|
|
100
|
+
});
|
|
101
|
+
//#endregion
|
|
102
|
+
exports.taxjarCreateOrderTransaction = taxjarCreateOrderTransaction;
|
|
103
|
+
|
|
104
|
+
//# sourceMappingURL=create-order-transaction.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-order-transaction.cjs","names":["z","action"],"sources":["../../src/actions/create-order-transaction.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const TaxjarCreateOrderTransactionInput: z.ZodTypeAny = z.object({\n amount: z.number().describe(\"Total amount of the order including shipping, excluding sales tax. If line_items are provided, must equal sum of (quantity * unit_price - discount) for all items plus shipping.\"),\n to_lat: z.number().describe(\"Latitude of the destination address\").optional(),\n to_lng: z.number().describe(\"Longitude of the destination address\").optional(),\n to_zip: z.string().describe(\"Postal code of the order destination\"),\n to_city: z.string().describe(\"City of the order destination\").optional(),\n user_id: z.string().describe(\"Identifier of the user associated with the transaction\").optional(),\n shipping: z.number().describe(\"Total shipping amount for the order\"),\n to_state: z.string().describe(\"Two-letter state code for the order destination\"),\n sales_tax: z.number().describe(\"Sales tax collected for the order\").optional(),\n to_street: z.string().describe(\"Street address of the order destination\").optional(),\n line_items: z.array(z.object({\n id: z.string().describe(\"Unique line item identifier\").optional(),\n discount: z.number().describe(\"Discount applied to the item\").optional(),\n quantity: z.number().int().describe(\"Quantity of the item purchased\"),\n sales_tax: z.number().describe(\"Sales tax collected for the item\").optional(),\n unit_price: z.number().describe(\"Price per unit\").optional(),\n description: z.string().describe(\"Description of the item\").optional(),\n product_identifier: z.string().describe(\"Product identifier\").optional(),\n})).describe(\"Line items in the order. If provided, sum of (quantity * unit_price - discount) must equal amount minus shipping.\").optional(),\n to_country: z.string().describe(\"Two-letter ISO country code of the order destination\"),\n exemption_type: z.enum([\"wholesale\", \"government\", \"marketplace\", \"other\", \"non_exempt\"]).describe(\"Type of exemption if applicable. Must be 'non_exempt' or 'marketplace' if sales_tax is non-zero.\").optional(),\n transaction_id: z.string().describe(\"Unique identifier for the transaction\"),\n nexus_addresses: z.array(z.object({\n id: z.string().describe(\"Unique nexus address ID\").optional(),\n zip: z.string().describe(\"Postal code\"),\n city: z.string().describe(\"City\").optional(),\n state: z.string().describe(\"Two-letter state code\"),\n street: z.string().describe(\"Street address\").optional(),\n country: z.string().describe(\"Two-letter ISO country code\"),\n})).describe(\"Nexus addresses associated with the transaction\").optional(),\n transaction_date: z.string().describe(\"Date/time when transaction occurred (ISO 8601 format)\"),\n});\nconst TaxjarCreateOrderTransaction_OrderLineItemSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique line item identifier (returned as integer by API)\").nullable().optional(),\n discount: z.number().describe(\"Discount applied to the item\").nullable().optional(),\n quantity: z.number().int().describe(\"Quantity of the item purchased\"),\n sales_tax: z.number().describe(\"Sales tax collected for the item\").nullable().optional(),\n unit_price: z.number().describe(\"Price per unit\").nullable().optional(),\n description: z.string().describe(\"Description of the item\").nullable().optional(),\n product_tax_code: z.string().describe(\"Product tax code for the item\").nullable().optional(),\n product_identifier: z.string().describe(\"Product identifier\").nullable().optional(),\n});\nconst TaxjarCreateOrderTransaction_OrderNexusAddressSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique nexus address ID\").nullable().optional(),\n zip: z.string().describe(\"Postal code\"),\n city: z.string().describe(\"City\").nullable().optional(),\n state: z.string().describe(\"Two-letter state code\"),\n street: z.string().describe(\"Street address\").nullable().optional(),\n country: z.string().describe(\"Two-letter ISO country code\"),\n});\nconst TaxjarCreateOrderTransaction_OrderTransactionSchema: z.ZodTypeAny = z.object({\n amount: z.number(),\n to_lat: z.number().nullable().optional(),\n to_lng: z.number().nullable().optional(),\n to_zip: z.string(),\n to_city: z.string().nullable().optional(),\n user_id: z.number().int().nullable().optional(),\n from_zip: z.string().nullable().optional(),\n provider: z.string().nullable().optional(),\n shipping: z.number(),\n to_state: z.string(),\n from_city: z.string().nullable().optional(),\n sales_tax: z.number().nullable().optional(),\n to_street: z.string().nullable().optional(),\n from_state: z.string().nullable().optional(),\n line_items: z.array(TaxjarCreateOrderTransaction_OrderLineItemSchema).nullable().optional(),\n to_country: z.string(),\n customer_id: z.string().nullable().optional(),\n from_street: z.string().nullable().optional(),\n from_country: z.string().nullable().optional(),\n exemption_type: z.enum([\"wholesale\", \"government\", \"marketplace\", \"other\", \"non_exempt\"]).nullable().optional(),\n transaction_id: z.string(),\n nexus_addresses: z.array(TaxjarCreateOrderTransaction_OrderNexusAddressSchema).nullable().optional(),\n transaction_date: z.string(),\n transaction_reference_id: z.string().nullable().optional(),\n});\nexport const TaxjarCreateOrderTransactionOutput: z.ZodTypeAny = z.object({\n transaction: TaxjarCreateOrderTransaction_OrderTransactionSchema.nullable(),\n});\n\nexport const taxjarCreateOrderTransaction = action(\"TAXJAR_CREATE_ORDER_TRANSACTION\", {\n slug: \"taxjar-create-order-transaction\",\n name: \"Create Order Transaction\",\n description: \"Creates a new order transaction in TaxJar for sales tax reporting and compliance. This action records order transactions that will appear in the TaxJar dashboard for tax filing purposes. The transaction includes customer location, order amounts, shipping costs, and sales tax collected. Important: The 'amount' field must include shipping but exclude sales tax. If line_items are provided, their sum (quantity * unit_price - discount) must equal amount minus shipping.\",\n input: TaxjarCreateOrderTransactionInput,\n output: TaxjarCreateOrderTransactionOutput,\n});\n"],"mappings":";;;AAIA,MAAa,oCAAkDA,IAAAA,EAAE,OAAO;CACtE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kLAAkL;CAC9M,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CAC5E,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CAC7E,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC;CAClE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACvE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;CAChG,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC;CACnE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD;CAC/E,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CAC7E,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS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CAAC,SAAS;CAC3C,YAAYA,IAAAA,EAAE,MAAM,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1F,YAAYA,IAAAA,EAAE,OAAO;CACrB,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5C,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5C,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7C,gBAAgBA,IAAAA,EAAE,KAAK;EAAC;EAAa;EAAc;EAAe;EAAS;CAAY,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9G,gBAAgBA,IAAAA,EAAE,OAAO;CACzB,iBAAiBA,IAAAA,EAAE,MAAM,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnG,kBAAkBA,IAAAA,EAAE,OAAO;CAC3B,0BAA0BA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3D,CAAC;AACD,MAAa,qCAAmDA,IAAAA,EAAE,OAAO,EACvE,aAAa,oDAAoD,SAAS,EAC5E,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-order-transaction.d.ts
|
|
4
|
+
declare const TaxjarCreateOrderTransactionInput: z.ZodTypeAny;
|
|
5
|
+
declare const TaxjarCreateOrderTransactionOutput: z.ZodTypeAny;
|
|
6
|
+
declare const taxjarCreateOrderTransaction: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { taxjarCreateOrderTransaction };
|
|
9
|
+
//# sourceMappingURL=create-order-transaction.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-order-transaction.d.cts","names":[],"sources":["../../src/actions/create-order-transaction.ts"],"mappings":";;;cAIa,iCAAA,EAAmC,CAAA,CAAE,UAgChD;AAAA,cA6CW,kCAAA,EAAoC,CAAA,CAAE,UAEjD;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-order-transaction.d.ts
|
|
4
|
+
declare const TaxjarCreateOrderTransactionInput: z.ZodTypeAny;
|
|
5
|
+
declare const TaxjarCreateOrderTransactionOutput: z.ZodTypeAny;
|
|
6
|
+
declare const taxjarCreateOrderTransaction: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { taxjarCreateOrderTransaction };
|
|
9
|
+
//# sourceMappingURL=create-order-transaction.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-order-transaction.d.mts","names":[],"sources":["../../src/actions/create-order-transaction.ts"],"mappings":";;;cAIa,iCAAA,EAAmC,CAAA,CAAE,UAgChD;AAAA,cA6CW,kCAAA,EAAoC,CAAA,CAAE,UAEjD;AAAA,cAEW,4BAAA,gCAA4B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/create-order-transaction.ts
|
|
4
|
+
const TaxjarCreateOrderTransactionInput = z.object({
|
|
5
|
+
amount: z.number().describe("Total amount of the order including shipping, excluding sales tax. If line_items are provided, must equal sum of (quantity * unit_price - discount) for all items plus shipping."),
|
|
6
|
+
to_lat: z.number().describe("Latitude of the destination address").optional(),
|
|
7
|
+
to_lng: z.number().describe("Longitude of the destination address").optional(),
|
|
8
|
+
to_zip: z.string().describe("Postal code of the order destination"),
|
|
9
|
+
to_city: z.string().describe("City of the order destination").optional(),
|
|
10
|
+
user_id: z.string().describe("Identifier of the user associated with the transaction").optional(),
|
|
11
|
+
shipping: z.number().describe("Total shipping amount for the order"),
|
|
12
|
+
to_state: z.string().describe("Two-letter state code for the order destination"),
|
|
13
|
+
sales_tax: z.number().describe("Sales tax collected for the order").optional(),
|
|
14
|
+
to_street: z.string().describe("Street address of the order destination").optional(),
|
|
15
|
+
line_items: z.array(z.object({
|
|
16
|
+
id: z.string().describe("Unique line item identifier").optional(),
|
|
17
|
+
discount: z.number().describe("Discount applied to the item").optional(),
|
|
18
|
+
quantity: z.number().int().describe("Quantity of the item purchased"),
|
|
19
|
+
sales_tax: z.number().describe("Sales tax collected for the item").optional(),
|
|
20
|
+
unit_price: z.number().describe("Price per unit").optional(),
|
|
21
|
+
description: z.string().describe("Description of the item").optional(),
|
|
22
|
+
product_identifier: z.string().describe("Product identifier").optional()
|
|
23
|
+
})).describe("Line items in the order. If provided, sum of (quantity * unit_price - discount) must equal amount minus shipping.").optional(),
|
|
24
|
+
to_country: z.string().describe("Two-letter ISO country code of the order destination"),
|
|
25
|
+
exemption_type: z.enum([
|
|
26
|
+
"wholesale",
|
|
27
|
+
"government",
|
|
28
|
+
"marketplace",
|
|
29
|
+
"other",
|
|
30
|
+
"non_exempt"
|
|
31
|
+
]).describe("Type of exemption if applicable. Must be 'non_exempt' or 'marketplace' if sales_tax is non-zero.").optional(),
|
|
32
|
+
transaction_id: z.string().describe("Unique identifier for the transaction"),
|
|
33
|
+
nexus_addresses: z.array(z.object({
|
|
34
|
+
id: z.string().describe("Unique nexus address ID").optional(),
|
|
35
|
+
zip: z.string().describe("Postal code"),
|
|
36
|
+
city: z.string().describe("City").optional(),
|
|
37
|
+
state: z.string().describe("Two-letter state code"),
|
|
38
|
+
street: z.string().describe("Street address").optional(),
|
|
39
|
+
country: z.string().describe("Two-letter ISO country code")
|
|
40
|
+
})).describe("Nexus addresses associated with the transaction").optional(),
|
|
41
|
+
transaction_date: z.string().describe("Date/time when transaction occurred (ISO 8601 format)")
|
|
42
|
+
});
|
|
43
|
+
const TaxjarCreateOrderTransaction_OrderLineItemSchema = z.object({
|
|
44
|
+
id: z.number().int().describe("Unique line item identifier (returned as integer by API)").nullable().optional(),
|
|
45
|
+
discount: z.number().describe("Discount applied to the item").nullable().optional(),
|
|
46
|
+
quantity: z.number().int().describe("Quantity of the item purchased"),
|
|
47
|
+
sales_tax: z.number().describe("Sales tax collected for the item").nullable().optional(),
|
|
48
|
+
unit_price: z.number().describe("Price per unit").nullable().optional(),
|
|
49
|
+
description: z.string().describe("Description of the item").nullable().optional(),
|
|
50
|
+
product_tax_code: z.string().describe("Product tax code for the item").nullable().optional(),
|
|
51
|
+
product_identifier: z.string().describe("Product identifier").nullable().optional()
|
|
52
|
+
});
|
|
53
|
+
const TaxjarCreateOrderTransaction_OrderNexusAddressSchema = z.object({
|
|
54
|
+
id: z.string().describe("Unique nexus address ID").nullable().optional(),
|
|
55
|
+
zip: z.string().describe("Postal code"),
|
|
56
|
+
city: z.string().describe("City").nullable().optional(),
|
|
57
|
+
state: z.string().describe("Two-letter state code"),
|
|
58
|
+
street: z.string().describe("Street address").nullable().optional(),
|
|
59
|
+
country: z.string().describe("Two-letter ISO country code")
|
|
60
|
+
});
|
|
61
|
+
const TaxjarCreateOrderTransaction_OrderTransactionSchema = z.object({
|
|
62
|
+
amount: z.number(),
|
|
63
|
+
to_lat: z.number().nullable().optional(),
|
|
64
|
+
to_lng: z.number().nullable().optional(),
|
|
65
|
+
to_zip: z.string(),
|
|
66
|
+
to_city: z.string().nullable().optional(),
|
|
67
|
+
user_id: z.number().int().nullable().optional(),
|
|
68
|
+
from_zip: z.string().nullable().optional(),
|
|
69
|
+
provider: z.string().nullable().optional(),
|
|
70
|
+
shipping: z.number(),
|
|
71
|
+
to_state: z.string(),
|
|
72
|
+
from_city: z.string().nullable().optional(),
|
|
73
|
+
sales_tax: z.number().nullable().optional(),
|
|
74
|
+
to_street: z.string().nullable().optional(),
|
|
75
|
+
from_state: z.string().nullable().optional(),
|
|
76
|
+
line_items: z.array(TaxjarCreateOrderTransaction_OrderLineItemSchema).nullable().optional(),
|
|
77
|
+
to_country: z.string(),
|
|
78
|
+
customer_id: z.string().nullable().optional(),
|
|
79
|
+
from_street: z.string().nullable().optional(),
|
|
80
|
+
from_country: z.string().nullable().optional(),
|
|
81
|
+
exemption_type: z.enum([
|
|
82
|
+
"wholesale",
|
|
83
|
+
"government",
|
|
84
|
+
"marketplace",
|
|
85
|
+
"other",
|
|
86
|
+
"non_exempt"
|
|
87
|
+
]).nullable().optional(),
|
|
88
|
+
transaction_id: z.string(),
|
|
89
|
+
nexus_addresses: z.array(TaxjarCreateOrderTransaction_OrderNexusAddressSchema).nullable().optional(),
|
|
90
|
+
transaction_date: z.string(),
|
|
91
|
+
transaction_reference_id: z.string().nullable().optional()
|
|
92
|
+
});
|
|
93
|
+
const taxjarCreateOrderTransaction = action("TAXJAR_CREATE_ORDER_TRANSACTION", {
|
|
94
|
+
slug: "taxjar-create-order-transaction",
|
|
95
|
+
name: "Create Order Transaction",
|
|
96
|
+
description: "Creates a new order transaction in TaxJar for sales tax reporting and compliance. This action records order transactions that will appear in the TaxJar dashboard for tax filing purposes. The transaction includes customer location, order amounts, shipping costs, and sales tax collected. Important: The 'amount' field must include shipping but exclude sales tax. If line_items are provided, their sum (quantity * unit_price - discount) must equal amount minus shipping.",
|
|
97
|
+
input: TaxjarCreateOrderTransactionInput,
|
|
98
|
+
output: z.object({ transaction: TaxjarCreateOrderTransaction_OrderTransactionSchema.nullable() })
|
|
99
|
+
});
|
|
100
|
+
//#endregion
|
|
101
|
+
export { taxjarCreateOrderTransaction };
|
|
102
|
+
|
|
103
|
+
//# sourceMappingURL=create-order-transaction.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-order-transaction.mjs","names":[],"sources":["../../src/actions/create-order-transaction.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const TaxjarCreateOrderTransactionInput: z.ZodTypeAny = z.object({\n amount: z.number().describe(\"Total amount of the order including shipping, excluding sales tax. If line_items are provided, must equal sum of (quantity * unit_price - discount) for all items plus shipping.\"),\n to_lat: z.number().describe(\"Latitude of the destination address\").optional(),\n to_lng: z.number().describe(\"Longitude of the destination address\").optional(),\n to_zip: z.string().describe(\"Postal code of the order destination\"),\n to_city: z.string().describe(\"City of the order destination\").optional(),\n user_id: z.string().describe(\"Identifier of the user associated with the transaction\").optional(),\n shipping: z.number().describe(\"Total shipping amount for the order\"),\n to_state: z.string().describe(\"Two-letter state code for the order destination\"),\n sales_tax: z.number().describe(\"Sales tax collected for the order\").optional(),\n to_street: z.string().describe(\"Street address of the order destination\").optional(),\n line_items: z.array(z.object({\n id: z.string().describe(\"Unique line item identifier\").optional(),\n discount: z.number().describe(\"Discount applied to the item\").optional(),\n quantity: z.number().int().describe(\"Quantity of the item purchased\"),\n sales_tax: z.number().describe(\"Sales tax collected for the item\").optional(),\n unit_price: z.number().describe(\"Price per unit\").optional(),\n description: z.string().describe(\"Description of the item\").optional(),\n product_identifier: z.string().describe(\"Product identifier\").optional(),\n})).describe(\"Line items in the order. If provided, sum of (quantity * unit_price - discount) must equal amount minus shipping.\").optional(),\n to_country: z.string().describe(\"Two-letter ISO country code of the order destination\"),\n exemption_type: z.enum([\"wholesale\", \"government\", \"marketplace\", \"other\", \"non_exempt\"]).describe(\"Type of exemption if applicable. Must be 'non_exempt' or 'marketplace' if sales_tax is non-zero.\").optional(),\n transaction_id: z.string().describe(\"Unique identifier for the transaction\"),\n nexus_addresses: z.array(z.object({\n id: z.string().describe(\"Unique nexus address ID\").optional(),\n zip: z.string().describe(\"Postal code\"),\n city: z.string().describe(\"City\").optional(),\n state: z.string().describe(\"Two-letter state code\"),\n street: z.string().describe(\"Street address\").optional(),\n country: z.string().describe(\"Two-letter ISO country code\"),\n})).describe(\"Nexus addresses associated with the transaction\").optional(),\n transaction_date: z.string().describe(\"Date/time when transaction occurred (ISO 8601 format)\"),\n});\nconst TaxjarCreateOrderTransaction_OrderLineItemSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique line item identifier (returned as integer by API)\").nullable().optional(),\n discount: z.number().describe(\"Discount applied to the item\").nullable().optional(),\n quantity: z.number().int().describe(\"Quantity of the item purchased\"),\n sales_tax: z.number().describe(\"Sales tax collected for the item\").nullable().optional(),\n unit_price: z.number().describe(\"Price per unit\").nullable().optional(),\n description: z.string().describe(\"Description of the item\").nullable().optional(),\n product_tax_code: z.string().describe(\"Product tax code for the item\").nullable().optional(),\n product_identifier: z.string().describe(\"Product identifier\").nullable().optional(),\n});\nconst TaxjarCreateOrderTransaction_OrderNexusAddressSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique nexus address ID\").nullable().optional(),\n zip: z.string().describe(\"Postal code\"),\n city: z.string().describe(\"City\").nullable().optional(),\n state: z.string().describe(\"Two-letter state code\"),\n street: z.string().describe(\"Street address\").nullable().optional(),\n country: z.string().describe(\"Two-letter ISO country code\"),\n});\nconst TaxjarCreateOrderTransaction_OrderTransactionSchema: z.ZodTypeAny = z.object({\n amount: z.number(),\n to_lat: z.number().nullable().optional(),\n to_lng: z.number().nullable().optional(),\n to_zip: z.string(),\n to_city: z.string().nullable().optional(),\n user_id: z.number().int().nullable().optional(),\n from_zip: z.string().nullable().optional(),\n provider: z.string().nullable().optional(),\n shipping: z.number(),\n to_state: z.string(),\n from_city: z.string().nullable().optional(),\n sales_tax: z.number().nullable().optional(),\n to_street: z.string().nullable().optional(),\n from_state: z.string().nullable().optional(),\n line_items: z.array(TaxjarCreateOrderTransaction_OrderLineItemSchema).nullable().optional(),\n to_country: z.string(),\n customer_id: z.string().nullable().optional(),\n from_street: z.string().nullable().optional(),\n from_country: z.string().nullable().optional(),\n exemption_type: z.enum([\"wholesale\", \"government\", \"marketplace\", \"other\", \"non_exempt\"]).nullable().optional(),\n transaction_id: z.string(),\n nexus_addresses: z.array(TaxjarCreateOrderTransaction_OrderNexusAddressSchema).nullable().optional(),\n transaction_date: z.string(),\n transaction_reference_id: z.string().nullable().optional(),\n});\nexport const TaxjarCreateOrderTransactionOutput: z.ZodTypeAny = z.object({\n transaction: TaxjarCreateOrderTransaction_OrderTransactionSchema.nullable(),\n});\n\nexport const taxjarCreateOrderTransaction = action(\"TAXJAR_CREATE_ORDER_TRANSACTION\", {\n slug: \"taxjar-create-order-transaction\",\n name: \"Create Order Transaction\",\n description: \"Creates a new order transaction in TaxJar for sales tax reporting and compliance. This action records order transactions that will appear in the TaxJar dashboard for tax filing purposes. The transaction includes customer location, order amounts, shipping costs, and sales tax collected. Important: The 'amount' field must include shipping but exclude sales tax. If line_items are provided, their sum (quantity * unit_price - discount) must equal amount minus shipping.\",\n input: TaxjarCreateOrderTransactionInput,\n output: TaxjarCreateOrderTransactionOutput,\n});\n"],"mappings":";;;AAIA,MAAa,oCAAkD,EAAE,OAAO;CACtE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,kLAAkL;CAC9M,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CAC5E,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CAC7E,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC;CAClE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACvE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;CAChG,UAAU,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CAAC,SAAS,CAAC,CAAC,SAAS;CAC5C,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7C,gBAAgB,EAAE,KAAK;EAAC;EAAa;EAAc;EAAe;EAAS;CAAY,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9G,gBAAgB,EAAE,OAAO;CACzB,iBAAiB,EAAE,MAAM,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnG,kBAAkB,EAAE,OAAO;CAC3B,0BAA0B,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3D,CAAC;AAKD,MAAa,+BAA+B,OAAO,mCAAmC;CACpF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAT8D,EAAE,OAAO,EACvE,aAAa,oDAAoD,SAAS,EAC5E,CAOU;AACV,CAAC"}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/create-refund-transaction.ts
|
|
4
|
+
const TaxjarCreateRefundTransactionInput = zod.z.object({
|
|
5
|
+
amount: zod.z.number().describe("Total amount refunded (negative value, excluding shipping & tax)"),
|
|
6
|
+
to_zip: zod.z.string().describe("Postal code of refund destination"),
|
|
7
|
+
to_city: zod.z.string().describe("City of refund destination").optional(),
|
|
8
|
+
provider: zod.z.string().describe("E-commerce provider for the transaction").optional(),
|
|
9
|
+
shipping: zod.z.number().describe("Total shipping refunded (negative for refund)").optional(),
|
|
10
|
+
to_state: zod.z.string().describe("Two-letter state code for the refund destination"),
|
|
11
|
+
sales_tax: zod.z.number().describe("Total sales tax refunded (negative for refund)").optional(),
|
|
12
|
+
to_street: zod.z.string().describe("Street address of refund destination").optional(),
|
|
13
|
+
line_items: zod.z.array(zod.z.object({
|
|
14
|
+
id: zod.z.string().describe("Unique line item identifier").optional(),
|
|
15
|
+
quantity: zod.z.number().int().describe("Quantity of the item refunded"),
|
|
16
|
+
sales_tax: zod.z.number().describe("Sales tax refunded for the item (negative for refund)").optional(),
|
|
17
|
+
unit_price: zod.z.number().describe("Unit price of the item (negative for refund)").optional(),
|
|
18
|
+
description: zod.z.string().describe("Description of the item").optional(),
|
|
19
|
+
product_identifier: zod.z.string().describe("Product identifier").optional()
|
|
20
|
+
})).describe("Line items detail for the refunded transaction").optional(),
|
|
21
|
+
to_country: zod.z.string().describe("Two-letter ISO country code of refund destination"),
|
|
22
|
+
transaction_id: zod.z.string().describe("Unique identifier for the refund transaction"),
|
|
23
|
+
transaction_date: zod.z.string().describe("Date/time when refund occurred (ISO 8601 format)"),
|
|
24
|
+
transaction_reference_id: zod.z.string().describe("Identifier of the original order being refunded")
|
|
25
|
+
});
|
|
26
|
+
const TaxjarCreateRefundTransaction_RefundLineItemSchema = zod.z.object({
|
|
27
|
+
id: zod.z.number().int().describe("Unique line item identifier").nullable().optional(),
|
|
28
|
+
discount: zod.z.number().describe("Discount applied to the item").nullable().optional(),
|
|
29
|
+
quantity: zod.z.number().int().describe("Quantity of the item refunded"),
|
|
30
|
+
sales_tax: zod.z.number().describe("Sales tax refunded for the item (negative for refund)").nullable().optional(),
|
|
31
|
+
unit_price: zod.z.number().describe("Unit price of the item (negative for refund)").nullable().optional(),
|
|
32
|
+
description: zod.z.string().describe("Description of the item").nullable().optional(),
|
|
33
|
+
product_tax_code: zod.z.string().describe("Product tax code for the item").nullable().optional(),
|
|
34
|
+
product_identifier: zod.z.string().describe("Product identifier").nullable().optional()
|
|
35
|
+
});
|
|
36
|
+
const TaxjarCreateRefundTransaction_RefundTransactionSchema = zod.z.object({
|
|
37
|
+
amount: zod.z.number().describe("Total refunded amount"),
|
|
38
|
+
to_zip: zod.z.string().describe("ZIP/postal code of refund destination"),
|
|
39
|
+
to_city: zod.z.string().describe("City of refund destination").nullable().optional(),
|
|
40
|
+
user_id: zod.z.number().int().describe("ID of the user associated with the transaction").nullable().optional(),
|
|
41
|
+
from_zip: zod.z.string().describe("ZIP/postal code of origin").nullable().optional(),
|
|
42
|
+
provider: zod.z.string().describe("E-commerce provider").nullable().optional(),
|
|
43
|
+
shipping: zod.z.number().describe("Total refunded shipping amount").nullable().optional(),
|
|
44
|
+
to_state: zod.z.string().describe("State/province of refund destination"),
|
|
45
|
+
from_city: zod.z.string().describe("City of origin").nullable().optional(),
|
|
46
|
+
sales_tax: zod.z.number().describe("Total refunded sales tax amount").nullable().optional(),
|
|
47
|
+
to_street: zod.z.string().describe("Street address of refund destination").nullable().optional(),
|
|
48
|
+
from_state: zod.z.string().describe("State/province of origin").nullable().optional(),
|
|
49
|
+
line_items: zod.z.array(TaxjarCreateRefundTransaction_RefundLineItemSchema).describe("Details for each refunded line item").nullable().optional(),
|
|
50
|
+
to_country: zod.z.string().describe("Country of refund destination"),
|
|
51
|
+
customer_id: zod.z.string().describe("Customer identifier").nullable().optional(),
|
|
52
|
+
from_street: zod.z.string().describe("Street address of origin").nullable().optional(),
|
|
53
|
+
from_country: zod.z.string().describe("Country of the origin/seller").nullable().optional(),
|
|
54
|
+
exemption_type: zod.z.string().describe("Type of tax exemption if applicable").nullable().optional(),
|
|
55
|
+
transaction_id: zod.z.string().describe("ID of the refund transaction"),
|
|
56
|
+
transaction_date: zod.z.string().describe("Date/time when refund occurred"),
|
|
57
|
+
transaction_reference_id: zod.z.string().describe("Reference ID to the original order")
|
|
58
|
+
});
|
|
59
|
+
const TaxjarCreateRefundTransactionOutput = zod.z.object({ refund: TaxjarCreateRefundTransaction_RefundTransactionSchema.nullable() });
|
|
60
|
+
const taxjarCreateRefundTransaction = require_action.action("TAXJAR_CREATE_REFUND_TRANSACTION", {
|
|
61
|
+
slug: "taxjar-create-refund-transaction",
|
|
62
|
+
name: "Create Refund Transaction",
|
|
63
|
+
description: "Tool to create a new refund transaction. Use after confirming refund details.",
|
|
64
|
+
input: TaxjarCreateRefundTransactionInput,
|
|
65
|
+
output: TaxjarCreateRefundTransactionOutput
|
|
66
|
+
});
|
|
67
|
+
//#endregion
|
|
68
|
+
exports.taxjarCreateRefundTransaction = taxjarCreateRefundTransaction;
|
|
69
|
+
|
|
70
|
+
//# sourceMappingURL=create-refund-transaction.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-refund-transaction.cjs","names":["z","action"],"sources":["../../src/actions/create-refund-transaction.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const TaxjarCreateRefundTransactionInput: z.ZodTypeAny = z.object({\n amount: z.number().describe(\"Total amount refunded (negative value, excluding shipping & tax)\"),\n to_zip: z.string().describe(\"Postal code of refund destination\"),\n to_city: z.string().describe(\"City of refund destination\").optional(),\n provider: z.string().describe(\"E-commerce provider for the transaction\").optional(),\n shipping: z.number().describe(\"Total shipping refunded (negative for refund)\").optional(),\n to_state: z.string().describe(\"Two-letter state code for the refund destination\"),\n sales_tax: z.number().describe(\"Total sales tax refunded (negative for refund)\").optional(),\n to_street: z.string().describe(\"Street address of refund destination\").optional(),\n line_items: z.array(z.object({\n id: z.string().describe(\"Unique line item identifier\").optional(),\n quantity: z.number().int().describe(\"Quantity of the item refunded\"),\n sales_tax: z.number().describe(\"Sales tax refunded for the item (negative for refund)\").optional(),\n unit_price: z.number().describe(\"Unit price of the item (negative for refund)\").optional(),\n description: z.string().describe(\"Description of the item\").optional(),\n product_identifier: z.string().describe(\"Product identifier\").optional(),\n})).describe(\"Line items detail for the refunded transaction\").optional(),\n to_country: z.string().describe(\"Two-letter ISO country code of refund destination\"),\n transaction_id: z.string().describe(\"Unique identifier for the refund transaction\"),\n transaction_date: z.string().describe(\"Date/time when refund occurred (ISO 8601 format)\"),\n transaction_reference_id: z.string().describe(\"Identifier of the original order being refunded\"),\n});\nconst TaxjarCreateRefundTransaction_RefundLineItemSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique line item identifier\").nullable().optional(),\n discount: z.number().describe(\"Discount applied to the item\").nullable().optional(),\n quantity: z.number().int().describe(\"Quantity of the item refunded\"),\n sales_tax: z.number().describe(\"Sales tax refunded for the item (negative for refund)\").nullable().optional(),\n unit_price: z.number().describe(\"Unit price of the item (negative for refund)\").nullable().optional(),\n description: z.string().describe(\"Description of the item\").nullable().optional(),\n product_tax_code: z.string().describe(\"Product tax code for the item\").nullable().optional(),\n product_identifier: z.string().describe(\"Product identifier\").nullable().optional(),\n});\nconst TaxjarCreateRefundTransaction_RefundTransactionSchema: z.ZodTypeAny = z.object({\n amount: z.number().describe(\"Total refunded amount\"),\n to_zip: z.string().describe(\"ZIP/postal code of refund destination\"),\n to_city: z.string().describe(\"City of refund destination\").nullable().optional(),\n user_id: z.number().int().describe(\"ID of the user associated with the transaction\").nullable().optional(),\n from_zip: z.string().describe(\"ZIP/postal code of origin\").nullable().optional(),\n provider: z.string().describe(\"E-commerce provider\").nullable().optional(),\n shipping: z.number().describe(\"Total refunded shipping amount\").nullable().optional(),\n to_state: z.string().describe(\"State/province of refund destination\"),\n from_city: z.string().describe(\"City of origin\").nullable().optional(),\n sales_tax: z.number().describe(\"Total refunded sales tax amount\").nullable().optional(),\n to_street: z.string().describe(\"Street address of refund destination\").nullable().optional(),\n from_state: z.string().describe(\"State/province of origin\").nullable().optional(),\n line_items: z.array(TaxjarCreateRefundTransaction_RefundLineItemSchema).describe(\"Details for each refunded line item\").nullable().optional(),\n to_country: z.string().describe(\"Country of refund destination\"),\n customer_id: z.string().describe(\"Customer identifier\").nullable().optional(),\n from_street: z.string().describe(\"Street address of origin\").nullable().optional(),\n from_country: z.string().describe(\"Country of the origin/seller\").nullable().optional(),\n exemption_type: z.string().describe(\"Type of tax exemption if applicable\").nullable().optional(),\n transaction_id: z.string().describe(\"ID of the refund transaction\"),\n transaction_date: z.string().describe(\"Date/time when refund occurred\"),\n transaction_reference_id: z.string().describe(\"Reference ID to the original order\"),\n});\nexport const TaxjarCreateRefundTransactionOutput: z.ZodTypeAny = z.object({\n refund: TaxjarCreateRefundTransaction_RefundTransactionSchema.nullable(),\n});\n\nexport const taxjarCreateRefundTransaction = action(\"TAXJAR_CREATE_REFUND_TRANSACTION\", {\n slug: \"taxjar-create-refund-transaction\",\n name: \"Create Refund Transaction\",\n description: \"Tool to create a new refund transaction. Use after confirming refund details.\",\n input: TaxjarCreateRefundTransactionInput,\n output: TaxjarCreateRefundTransactionOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qCAAmDA,IAAAA,EAAE,OAAO;CACvE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE;CAC9F,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC;CAC/D,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACpE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CAClF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CACxF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD;CAChF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CAC1F,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CAChF,YAAYA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EAC7B,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;EAChE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+BAA+B;EACnE,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;EACjG,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;EACzF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,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,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B;CAC/D,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5E,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtF,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/F,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B;CAClE,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC;CACtE,0BAA0BA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC;AACpF,CAAC;AACD,MAAa,sCAAoDA,IAAAA,EAAE,OAAO,EACxE,QAAQ,sDAAsD,SAAS,EACzE,CAAC;AAED,MAAa,gCAAgCC,eAAAA,OAAO,oCAAoC;CACtF,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-refund-transaction.d.ts
|
|
4
|
+
declare const TaxjarCreateRefundTransactionInput: z.ZodTypeAny;
|
|
5
|
+
declare const TaxjarCreateRefundTransactionOutput: z.ZodTypeAny;
|
|
6
|
+
declare const taxjarCreateRefundTransaction: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { taxjarCreateRefundTransaction };
|
|
9
|
+
//# sourceMappingURL=create-refund-transaction.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-refund-transaction.d.cts","names":[],"sources":["../../src/actions/create-refund-transaction.ts"],"mappings":";;;cAIa,kCAAA,EAAoC,CAAA,CAAE,UAqBjD;AAAA,cAkCW,mCAAA,EAAqC,CAAA,CAAE,UAElD;AAAA,cAEW,6BAAA,gCAA6B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/create-refund-transaction.d.ts
|
|
4
|
+
declare const TaxjarCreateRefundTransactionInput: z.ZodTypeAny;
|
|
5
|
+
declare const TaxjarCreateRefundTransactionOutput: z.ZodTypeAny;
|
|
6
|
+
declare const taxjarCreateRefundTransaction: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { taxjarCreateRefundTransaction };
|
|
9
|
+
//# sourceMappingURL=create-refund-transaction.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-refund-transaction.d.mts","names":[],"sources":["../../src/actions/create-refund-transaction.ts"],"mappings":";;;cAIa,kCAAA,EAAoC,CAAA,CAAE,UAqBjD;AAAA,cAkCW,mCAAA,EAAqC,CAAA,CAAE,UAElD;AAAA,cAEW,6BAAA,gCAA6B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/create-refund-transaction.ts
|
|
4
|
+
const TaxjarCreateRefundTransactionInput = z.object({
|
|
5
|
+
amount: z.number().describe("Total amount refunded (negative value, excluding shipping & tax)"),
|
|
6
|
+
to_zip: z.string().describe("Postal code of refund destination"),
|
|
7
|
+
to_city: z.string().describe("City of refund destination").optional(),
|
|
8
|
+
provider: z.string().describe("E-commerce provider for the transaction").optional(),
|
|
9
|
+
shipping: z.number().describe("Total shipping refunded (negative for refund)").optional(),
|
|
10
|
+
to_state: z.string().describe("Two-letter state code for the refund destination"),
|
|
11
|
+
sales_tax: z.number().describe("Total sales tax refunded (negative for refund)").optional(),
|
|
12
|
+
to_street: z.string().describe("Street address of refund destination").optional(),
|
|
13
|
+
line_items: z.array(z.object({
|
|
14
|
+
id: z.string().describe("Unique line item identifier").optional(),
|
|
15
|
+
quantity: z.number().int().describe("Quantity of the item refunded"),
|
|
16
|
+
sales_tax: z.number().describe("Sales tax refunded for the item (negative for refund)").optional(),
|
|
17
|
+
unit_price: z.number().describe("Unit price of the item (negative for refund)").optional(),
|
|
18
|
+
description: z.string().describe("Description of the item").optional(),
|
|
19
|
+
product_identifier: z.string().describe("Product identifier").optional()
|
|
20
|
+
})).describe("Line items detail for the refunded transaction").optional(),
|
|
21
|
+
to_country: z.string().describe("Two-letter ISO country code of refund destination"),
|
|
22
|
+
transaction_id: z.string().describe("Unique identifier for the refund transaction"),
|
|
23
|
+
transaction_date: z.string().describe("Date/time when refund occurred (ISO 8601 format)"),
|
|
24
|
+
transaction_reference_id: z.string().describe("Identifier of the original order being refunded")
|
|
25
|
+
});
|
|
26
|
+
const TaxjarCreateRefundTransaction_RefundLineItemSchema = z.object({
|
|
27
|
+
id: z.number().int().describe("Unique line item identifier").nullable().optional(),
|
|
28
|
+
discount: z.number().describe("Discount applied to the item").nullable().optional(),
|
|
29
|
+
quantity: z.number().int().describe("Quantity of the item refunded"),
|
|
30
|
+
sales_tax: z.number().describe("Sales tax refunded for the item (negative for refund)").nullable().optional(),
|
|
31
|
+
unit_price: z.number().describe("Unit price of the item (negative for refund)").nullable().optional(),
|
|
32
|
+
description: z.string().describe("Description of the item").nullable().optional(),
|
|
33
|
+
product_tax_code: z.string().describe("Product tax code for the item").nullable().optional(),
|
|
34
|
+
product_identifier: z.string().describe("Product identifier").nullable().optional()
|
|
35
|
+
});
|
|
36
|
+
const TaxjarCreateRefundTransaction_RefundTransactionSchema = z.object({
|
|
37
|
+
amount: z.number().describe("Total refunded amount"),
|
|
38
|
+
to_zip: z.string().describe("ZIP/postal code of refund destination"),
|
|
39
|
+
to_city: z.string().describe("City of refund destination").nullable().optional(),
|
|
40
|
+
user_id: z.number().int().describe("ID of the user associated with the transaction").nullable().optional(),
|
|
41
|
+
from_zip: z.string().describe("ZIP/postal code of origin").nullable().optional(),
|
|
42
|
+
provider: z.string().describe("E-commerce provider").nullable().optional(),
|
|
43
|
+
shipping: z.number().describe("Total refunded shipping amount").nullable().optional(),
|
|
44
|
+
to_state: z.string().describe("State/province of refund destination"),
|
|
45
|
+
from_city: z.string().describe("City of origin").nullable().optional(),
|
|
46
|
+
sales_tax: z.number().describe("Total refunded sales tax amount").nullable().optional(),
|
|
47
|
+
to_street: z.string().describe("Street address of refund destination").nullable().optional(),
|
|
48
|
+
from_state: z.string().describe("State/province of origin").nullable().optional(),
|
|
49
|
+
line_items: z.array(TaxjarCreateRefundTransaction_RefundLineItemSchema).describe("Details for each refunded line item").nullable().optional(),
|
|
50
|
+
to_country: z.string().describe("Country of refund destination"),
|
|
51
|
+
customer_id: z.string().describe("Customer identifier").nullable().optional(),
|
|
52
|
+
from_street: z.string().describe("Street address of origin").nullable().optional(),
|
|
53
|
+
from_country: z.string().describe("Country of the origin/seller").nullable().optional(),
|
|
54
|
+
exemption_type: z.string().describe("Type of tax exemption if applicable").nullable().optional(),
|
|
55
|
+
transaction_id: z.string().describe("ID of the refund transaction"),
|
|
56
|
+
transaction_date: z.string().describe("Date/time when refund occurred"),
|
|
57
|
+
transaction_reference_id: z.string().describe("Reference ID to the original order")
|
|
58
|
+
});
|
|
59
|
+
const taxjarCreateRefundTransaction = action("TAXJAR_CREATE_REFUND_TRANSACTION", {
|
|
60
|
+
slug: "taxjar-create-refund-transaction",
|
|
61
|
+
name: "Create Refund Transaction",
|
|
62
|
+
description: "Tool to create a new refund transaction. Use after confirming refund details.",
|
|
63
|
+
input: TaxjarCreateRefundTransactionInput,
|
|
64
|
+
output: z.object({ refund: TaxjarCreateRefundTransaction_RefundTransactionSchema.nullable() })
|
|
65
|
+
});
|
|
66
|
+
//#endregion
|
|
67
|
+
export { taxjarCreateRefundTransaction };
|
|
68
|
+
|
|
69
|
+
//# sourceMappingURL=create-refund-transaction.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-refund-transaction.mjs","names":[],"sources":["../../src/actions/create-refund-transaction.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const TaxjarCreateRefundTransactionInput: z.ZodTypeAny = z.object({\n amount: z.number().describe(\"Total amount refunded (negative value, excluding shipping & tax)\"),\n to_zip: z.string().describe(\"Postal code of refund destination\"),\n to_city: z.string().describe(\"City of refund destination\").optional(),\n provider: z.string().describe(\"E-commerce provider for the transaction\").optional(),\n shipping: z.number().describe(\"Total shipping refunded (negative for refund)\").optional(),\n to_state: z.string().describe(\"Two-letter state code for the refund destination\"),\n sales_tax: z.number().describe(\"Total sales tax refunded (negative for refund)\").optional(),\n to_street: z.string().describe(\"Street address of refund destination\").optional(),\n line_items: z.array(z.object({\n id: z.string().describe(\"Unique line item identifier\").optional(),\n quantity: z.number().int().describe(\"Quantity of the item refunded\"),\n sales_tax: z.number().describe(\"Sales tax refunded for the item (negative for refund)\").optional(),\n unit_price: z.number().describe(\"Unit price of the item (negative for refund)\").optional(),\n description: z.string().describe(\"Description of the item\").optional(),\n product_identifier: z.string().describe(\"Product identifier\").optional(),\n})).describe(\"Line items detail for the refunded transaction\").optional(),\n to_country: z.string().describe(\"Two-letter ISO country code of refund destination\"),\n transaction_id: z.string().describe(\"Unique identifier for the refund transaction\"),\n transaction_date: z.string().describe(\"Date/time when refund occurred (ISO 8601 format)\"),\n transaction_reference_id: z.string().describe(\"Identifier of the original order being refunded\"),\n});\nconst TaxjarCreateRefundTransaction_RefundLineItemSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique line item identifier\").nullable().optional(),\n discount: z.number().describe(\"Discount applied to the item\").nullable().optional(),\n quantity: z.number().int().describe(\"Quantity of the item refunded\"),\n sales_tax: z.number().describe(\"Sales tax refunded for the item (negative for refund)\").nullable().optional(),\n unit_price: z.number().describe(\"Unit price of the item (negative for refund)\").nullable().optional(),\n description: z.string().describe(\"Description of the item\").nullable().optional(),\n product_tax_code: z.string().describe(\"Product tax code for the item\").nullable().optional(),\n product_identifier: z.string().describe(\"Product identifier\").nullable().optional(),\n});\nconst TaxjarCreateRefundTransaction_RefundTransactionSchema: z.ZodTypeAny = z.object({\n amount: z.number().describe(\"Total refunded amount\"),\n to_zip: z.string().describe(\"ZIP/postal code of refund destination\"),\n to_city: z.string().describe(\"City of refund destination\").nullable().optional(),\n user_id: z.number().int().describe(\"ID of the user associated with the transaction\").nullable().optional(),\n from_zip: z.string().describe(\"ZIP/postal code of origin\").nullable().optional(),\n provider: z.string().describe(\"E-commerce provider\").nullable().optional(),\n shipping: z.number().describe(\"Total refunded shipping amount\").nullable().optional(),\n to_state: z.string().describe(\"State/province of refund destination\"),\n from_city: z.string().describe(\"City of origin\").nullable().optional(),\n sales_tax: z.number().describe(\"Total refunded sales tax amount\").nullable().optional(),\n to_street: z.string().describe(\"Street address of refund destination\").nullable().optional(),\n from_state: z.string().describe(\"State/province of origin\").nullable().optional(),\n line_items: z.array(TaxjarCreateRefundTransaction_RefundLineItemSchema).describe(\"Details for each refunded line item\").nullable().optional(),\n to_country: z.string().describe(\"Country of refund destination\"),\n customer_id: z.string().describe(\"Customer identifier\").nullable().optional(),\n from_street: z.string().describe(\"Street address of origin\").nullable().optional(),\n from_country: z.string().describe(\"Country of the origin/seller\").nullable().optional(),\n exemption_type: z.string().describe(\"Type of tax exemption if applicable\").nullable().optional(),\n transaction_id: z.string().describe(\"ID of the refund transaction\"),\n transaction_date: z.string().describe(\"Date/time when refund occurred\"),\n transaction_reference_id: z.string().describe(\"Reference ID to the original order\"),\n});\nexport const TaxjarCreateRefundTransactionOutput: z.ZodTypeAny = z.object({\n refund: TaxjarCreateRefundTransaction_RefundTransactionSchema.nullable(),\n});\n\nexport const taxjarCreateRefundTransaction = action(\"TAXJAR_CREATE_REFUND_TRANSACTION\", {\n slug: \"taxjar-create-refund-transaction\",\n name: \"Create Refund Transaction\",\n description: \"Tool to create a new refund transaction. Use after confirming refund details.\",\n input: TaxjarCreateRefundTransactionInput,\n output: TaxjarCreateRefundTransactionOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qCAAmD,EAAE,OAAO;CACvE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE;CAC9F,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC;CAC/D,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACpE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CAClF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CACxF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD;CAChF,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CAC1F,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CAChF,YAAY,EAAE,MAAM,EAAE,OAAO;EAC7B,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;EAChE,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+BAA+B;EACnE,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;EACjG,YAAY,EAAE,OAAO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,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtF,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/F,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B;CAClE,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC;CACtE,0BAA0B,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC;AACpF,CAAC;AAKD,MAAa,gCAAgC,OAAO,oCAAoC;CACtF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAT+D,EAAE,OAAO,EACxE,QAAQ,sDAAsD,SAAS,EACzE,CAOU;AACV,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/delete-customer.ts
|
|
4
|
+
const TaxjarDeleteCustomerInput = zod.z.object({ customer_id: zod.z.string().describe("Unique identifier of the customer to delete.") }).describe("Request model for deleting a customer.");
|
|
5
|
+
const TaxjarDeleteCustomerOutput = zod.z.object({ message: zod.z.string().describe("Confirmation message for successful deletion.") }).describe("Response model after deleting a customer.");
|
|
6
|
+
const taxjarDeleteCustomer = require_action.action("TAXJAR_DELETE_CUSTOMER", {
|
|
7
|
+
slug: "taxjar-delete-customer",
|
|
8
|
+
name: "Delete Customer",
|
|
9
|
+
description: "Tool to delete an existing customer. Use when you need to remove a previously created customer by its ID. Example: \"Delete customer cust_12345\".",
|
|
10
|
+
input: TaxjarDeleteCustomerInput,
|
|
11
|
+
output: TaxjarDeleteCustomerOutput
|
|
12
|
+
});
|
|
13
|
+
//#endregion
|
|
14
|
+
exports.taxjarDeleteCustomer = taxjarDeleteCustomer;
|
|
15
|
+
|
|
16
|
+
//# sourceMappingURL=delete-customer.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete-customer.cjs","names":["z","action"],"sources":["../../src/actions/delete-customer.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const TaxjarDeleteCustomerInput: z.ZodTypeAny = z.object({\n customer_id: z.string().describe(\"Unique identifier of the customer to delete.\"),\n}).describe(\"Request model for deleting a customer.\");\nexport const TaxjarDeleteCustomerOutput: z.ZodTypeAny = z.object({\n message: z.string().describe(\"Confirmation message for successful deletion.\"),\n}).describe(\"Response model after deleting a customer.\");\n\nexport const taxjarDeleteCustomer = action(\"TAXJAR_DELETE_CUSTOMER\", {\n slug: \"taxjar-delete-customer\",\n name: \"Delete Customer\",\n description: \"Tool to delete an existing customer. Use when you need to remove a previously created customer by its ID. Example: \\\"Delete customer cust_12345\\\".\",\n input: TaxjarDeleteCustomerInput,\n output: TaxjarDeleteCustomerOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA0CA,IAAAA,EAAE,OAAO,EAC9D,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,EACjF,CAAC,CAAC,CAAC,SAAS,wCAAwC;AACpD,MAAa,6BAA2CA,IAAAA,EAAE,OAAO,EAC/D,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,EAC9E,CAAC,CAAC,CAAC,SAAS,2CAA2C;AAEvD,MAAa,uBAAuBC,eAAAA,OAAO,0BAA0B;CACnE,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/delete-customer.d.ts
|
|
4
|
+
declare const TaxjarDeleteCustomerInput: z.ZodTypeAny;
|
|
5
|
+
declare const TaxjarDeleteCustomerOutput: z.ZodTypeAny;
|
|
6
|
+
declare const taxjarDeleteCustomer: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { taxjarDeleteCustomer };
|
|
9
|
+
//# sourceMappingURL=delete-customer.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete-customer.d.cts","names":[],"sources":["../../src/actions/delete-customer.ts"],"mappings":";;;cAIa,yBAAA,EAA2B,CAAA,CAAE,UAEW;AAAA,cACxC,0BAAA,EAA4B,CAAA,CAAE,UAEa;AAAA,cAE3C,oBAAA,gCAAoB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/delete-customer.d.ts
|
|
4
|
+
declare const TaxjarDeleteCustomerInput: z.ZodTypeAny;
|
|
5
|
+
declare const TaxjarDeleteCustomerOutput: z.ZodTypeAny;
|
|
6
|
+
declare const taxjarDeleteCustomer: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { taxjarDeleteCustomer };
|
|
9
|
+
//# sourceMappingURL=delete-customer.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete-customer.d.mts","names":[],"sources":["../../src/actions/delete-customer.ts"],"mappings":";;;cAIa,yBAAA,EAA2B,CAAA,CAAE,UAEW;AAAA,cACxC,0BAAA,EAA4B,CAAA,CAAE,UAEa;AAAA,cAE3C,oBAAA,gCAAoB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
const taxjarDeleteCustomer = action("TAXJAR_DELETE_CUSTOMER", {
|
|
4
|
+
slug: "taxjar-delete-customer",
|
|
5
|
+
name: "Delete Customer",
|
|
6
|
+
description: "Tool to delete an existing customer. Use when you need to remove a previously created customer by its ID. Example: \"Delete customer cust_12345\".",
|
|
7
|
+
input: z.object({ customer_id: z.string().describe("Unique identifier of the customer to delete.") }).describe("Request model for deleting a customer."),
|
|
8
|
+
output: z.object({ message: z.string().describe("Confirmation message for successful deletion.") }).describe("Response model after deleting a customer.")
|
|
9
|
+
});
|
|
10
|
+
//#endregion
|
|
11
|
+
export { taxjarDeleteCustomer };
|
|
12
|
+
|
|
13
|
+
//# sourceMappingURL=delete-customer.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete-customer.mjs","names":[],"sources":["../../src/actions/delete-customer.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const TaxjarDeleteCustomerInput: z.ZodTypeAny = z.object({\n customer_id: z.string().describe(\"Unique identifier of the customer to delete.\"),\n}).describe(\"Request model for deleting a customer.\");\nexport const TaxjarDeleteCustomerOutput: z.ZodTypeAny = z.object({\n message: z.string().describe(\"Confirmation message for successful deletion.\"),\n}).describe(\"Response model after deleting a customer.\");\n\nexport const taxjarDeleteCustomer = action(\"TAXJAR_DELETE_CUSTOMER\", {\n slug: \"taxjar-delete-customer\",\n name: \"Delete Customer\",\n description: \"Tool to delete an existing customer. Use when you need to remove a previously created customer by its ID. Example: \\\"Delete customer cust_12345\\\".\",\n input: TaxjarDeleteCustomerInput,\n output: TaxjarDeleteCustomerOutput,\n});\n"],"mappings":";;AAWA,MAAa,uBAAuB,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAXqD,EAAE,OAAO,EAC9D,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,EACjF,CAAC,CAAC,CAAC,SAAS,wCASH;CACP,QATsD,EAAE,OAAO,EAC/D,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,EAC9E,CAAC,CAAC,CAAC,SAAS,2CAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/delete-order-transaction.ts
|
|
4
|
+
const TaxjarDeleteOrderTransactionInput = zod.z.object({ transaction_id: zod.z.string().describe("Unique identifier of the order transaction to delete.") }).describe("Request model for deleting an order transaction.");
|
|
5
|
+
const TaxjarDeleteOrderTransactionOutput = zod.z.object({ message: zod.z.string().describe("Confirmation message for successful deletion.") }).describe("Response model after deleting an order transaction.");
|
|
6
|
+
const taxjarDeleteOrderTransaction = require_action.action("TAXJAR_DELETE_ORDER_TRANSACTION", {
|
|
7
|
+
slug: "taxjar-delete-order-transaction",
|
|
8
|
+
name: "Delete Order Transaction",
|
|
9
|
+
description: "Tool to delete an existing order transaction. Use when you need to remove a previously created order transaction by its ID. Example: \"Delete transaction abc123\".",
|
|
10
|
+
input: TaxjarDeleteOrderTransactionInput,
|
|
11
|
+
output: TaxjarDeleteOrderTransactionOutput
|
|
12
|
+
});
|
|
13
|
+
//#endregion
|
|
14
|
+
exports.taxjarDeleteOrderTransaction = taxjarDeleteOrderTransaction;
|
|
15
|
+
|
|
16
|
+
//# sourceMappingURL=delete-order-transaction.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete-order-transaction.cjs","names":["z","action"],"sources":["../../src/actions/delete-order-transaction.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const TaxjarDeleteOrderTransactionInput: z.ZodTypeAny = z.object({\n transaction_id: z.string().describe(\"Unique identifier of the order transaction to delete.\"),\n}).describe(\"Request model for deleting an order transaction.\");\nexport const TaxjarDeleteOrderTransactionOutput: z.ZodTypeAny = z.object({\n message: z.string().describe(\"Confirmation message for successful deletion.\"),\n}).describe(\"Response model after deleting an order transaction.\");\n\nexport const taxjarDeleteOrderTransaction = action(\"TAXJAR_DELETE_ORDER_TRANSACTION\", {\n slug: \"taxjar-delete-order-transaction\",\n name: \"Delete Order Transaction\",\n description: \"Tool to delete an existing order transaction. Use when you need to remove a previously created order transaction by its ID. Example: \\\"Delete transaction abc123\\\".\",\n input: TaxjarDeleteOrderTransactionInput,\n output: TaxjarDeleteOrderTransactionOutput,\n});\n"],"mappings":";;;AAIA,MAAa,oCAAkDA,IAAAA,EAAE,OAAO,EACtE,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,EAC7F,CAAC,CAAC,CAAC,SAAS,kDAAkD;AAC9D,MAAa,qCAAmDA,IAAAA,EAAE,OAAO,EACvE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,EAC9E,CAAC,CAAC,CAAC,SAAS,qDAAqD;AAEjE,MAAa,+BAA+BC,eAAAA,OAAO,mCAAmC;CACpF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|