@keystrokehq/omnisend 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/actions/add-cart-product.cjs +1 -1
- package/dist/actions/add-cart-product.cjs.map +1 -1
- package/dist/actions/add-cart-product.d.cts +1 -1
- package/dist/actions/add-cart-product.d.mts +1 -1
- package/dist/actions/add-cart-product.mjs +1 -1
- package/dist/actions/add-cart-product.mjs.map +1 -1
- package/dist/actions/create-batch.cjs +3 -3
- package/dist/actions/create-batch.cjs.map +1 -1
- package/dist/actions/create-batch.d.cts +4 -4
- package/dist/actions/create-batch.d.mts +4 -4
- package/dist/actions/create-batch.mjs +3 -3
- package/dist/actions/create-batch.mjs.map +1 -1
- package/dist/actions/create-cart.cjs +2 -2
- package/dist/actions/create-cart.cjs.map +1 -1
- package/dist/actions/create-cart.d.cts +3 -2
- package/dist/actions/create-cart.d.mts +3 -2
- package/dist/actions/create-cart.mjs +2 -2
- package/dist/actions/create-cart.mjs.map +1 -1
- package/dist/actions/create-category.cjs +1 -1
- package/dist/actions/create-category.cjs.map +1 -1
- package/dist/actions/create-category.d.cts +1 -1
- package/dist/actions/create-category.d.mts +1 -1
- package/dist/actions/create-category.mjs +1 -1
- package/dist/actions/create-category.mjs.map +1 -1
- package/dist/actions/create-or-update-contact.cjs +2 -2
- package/dist/actions/create-or-update-contact.cjs.map +1 -1
- package/dist/actions/create-or-update-contact.d.cts +3 -2
- package/dist/actions/create-or-update-contact.d.mts +3 -2
- package/dist/actions/create-or-update-contact.mjs +2 -2
- package/dist/actions/create-or-update-contact.mjs.map +1 -1
- package/dist/actions/create-order.cjs +3 -3
- package/dist/actions/create-order.cjs.map +1 -1
- package/dist/actions/create-order.d.cts +7 -6
- package/dist/actions/create-order.d.cts.map +1 -1
- package/dist/actions/create-order.d.mts +7 -6
- package/dist/actions/create-order.d.mts.map +1 -1
- package/dist/actions/create-order.mjs +3 -3
- package/dist/actions/create-order.mjs.map +1 -1
- package/dist/actions/create-product-category.cjs +1 -1
- package/dist/actions/create-product-category.cjs.map +1 -1
- package/dist/actions/create-product-category.d.cts +1 -1
- package/dist/actions/create-product-category.d.mts +1 -1
- package/dist/actions/create-product-category.mjs +1 -1
- package/dist/actions/create-product-category.mjs.map +1 -1
- package/dist/actions/create-product.cjs +2 -2
- package/dist/actions/create-product.cjs.map +1 -1
- package/dist/actions/create-product.d.cts +3 -2
- package/dist/actions/create-product.d.mts +3 -2
- package/dist/actions/create-product.mjs +2 -2
- package/dist/actions/create-product.mjs.map +1 -1
- package/dist/actions/delete-cart.cjs +1 -1
- package/dist/actions/delete-cart.cjs.map +1 -1
- package/dist/actions/delete-cart.d.cts +1 -1
- package/dist/actions/delete-cart.d.cts.map +1 -1
- package/dist/actions/delete-cart.d.mts +1 -1
- package/dist/actions/delete-cart.d.mts.map +1 -1
- package/dist/actions/delete-cart.mjs +1 -1
- package/dist/actions/delete-cart.mjs.map +1 -1
- package/dist/actions/delete-category.cjs +1 -1
- package/dist/actions/delete-category.cjs.map +1 -1
- package/dist/actions/delete-category.d.cts +1 -1
- package/dist/actions/delete-category.d.cts.map +1 -1
- package/dist/actions/delete-category.d.mts +1 -1
- package/dist/actions/delete-category.d.mts.map +1 -1
- package/dist/actions/delete-category.mjs +1 -1
- package/dist/actions/delete-category.mjs.map +1 -1
- package/dist/actions/delete-order.cjs +1 -1
- package/dist/actions/delete-order.cjs.map +1 -1
- package/dist/actions/delete-order.d.cts +1 -1
- package/dist/actions/delete-order.d.cts.map +1 -1
- package/dist/actions/delete-order.d.mts +1 -1
- package/dist/actions/delete-order.d.mts.map +1 -1
- package/dist/actions/delete-order.mjs +1 -1
- package/dist/actions/delete-order.mjs.map +1 -1
- package/dist/actions/delete-product-category.cjs +1 -1
- package/dist/actions/delete-product-category.cjs.map +1 -1
- package/dist/actions/delete-product-category.d.cts +1 -1
- package/dist/actions/delete-product-category.d.cts.map +1 -1
- package/dist/actions/delete-product-category.d.mts +1 -1
- package/dist/actions/delete-product-category.d.mts.map +1 -1
- package/dist/actions/delete-product-category.mjs +1 -1
- package/dist/actions/delete-product-category.mjs.map +1 -1
- package/dist/actions/delete-product.cjs +1 -1
- package/dist/actions/delete-product.cjs.map +1 -1
- package/dist/actions/delete-product.d.cts +1 -1
- package/dist/actions/delete-product.d.cts.map +1 -1
- package/dist/actions/delete-product.d.mts +1 -1
- package/dist/actions/delete-product.d.mts.map +1 -1
- package/dist/actions/delete-product.mjs +1 -1
- package/dist/actions/delete-product.mjs.map +1 -1
- package/dist/actions/get-batch-information.cjs +1 -1
- package/dist/actions/get-batch-information.cjs.map +1 -1
- package/dist/actions/get-batch-information.d.cts +1 -1
- package/dist/actions/get-batch-information.d.mts +1 -1
- package/dist/actions/get-batch-information.mjs +1 -1
- package/dist/actions/get-batch-information.mjs.map +1 -1
- package/dist/actions/get-batch-item.cjs +1 -1
- package/dist/actions/get-batch-item.cjs.map +1 -1
- package/dist/actions/get-batch-item.d.cts +1 -1
- package/dist/actions/get-batch-item.d.mts +1 -1
- package/dist/actions/get-batch-item.mjs +1 -1
- package/dist/actions/get-batch-item.mjs.map +1 -1
- package/dist/actions/get-batch-items.cjs +2 -2
- package/dist/actions/get-batch-items.cjs.map +1 -1
- package/dist/actions/get-batch-items.d.cts +2 -2
- package/dist/actions/get-batch-items.d.mts +2 -2
- package/dist/actions/get-batch-items.mjs +2 -2
- package/dist/actions/get-batch-items.mjs.map +1 -1
- package/dist/actions/get-batches.cjs +3 -3
- package/dist/actions/get-batches.cjs.map +1 -1
- package/dist/actions/get-batches.d.cts +3 -3
- package/dist/actions/get-batches.d.mts +3 -3
- package/dist/actions/get-batches.mjs +3 -3
- package/dist/actions/get-batches.mjs.map +1 -1
- package/dist/actions/get-brand.cjs +1 -1
- package/dist/actions/get-brand.cjs.map +1 -1
- package/dist/actions/get-brand.d.cts +1 -1
- package/dist/actions/get-brand.d.mts +1 -1
- package/dist/actions/get-brand.mjs +1 -1
- package/dist/actions/get-brand.mjs.map +1 -1
- package/dist/actions/get-cart.cjs +2 -2
- package/dist/actions/get-cart.cjs.map +1 -1
- package/dist/actions/get-cart.d.cts +2 -2
- package/dist/actions/get-cart.d.mts +2 -2
- package/dist/actions/get-cart.mjs +2 -2
- package/dist/actions/get-cart.mjs.map +1 -1
- package/dist/actions/get-category.cjs +1 -1
- package/dist/actions/get-category.cjs.map +1 -1
- package/dist/actions/get-category.d.cts +1 -1
- package/dist/actions/get-category.d.mts +1 -1
- package/dist/actions/get-category.mjs +1 -1
- package/dist/actions/get-category.mjs.map +1 -1
- package/dist/actions/get-contact.cjs +6 -6
- package/dist/actions/get-contact.cjs.map +1 -1
- package/dist/actions/get-contact.d.cts +6 -6
- package/dist/actions/get-contact.d.mts +6 -6
- package/dist/actions/get-contact.mjs +6 -6
- package/dist/actions/get-contact.mjs.map +1 -1
- package/dist/actions/get-order.cjs +3 -3
- package/dist/actions/get-order.cjs.map +1 -1
- package/dist/actions/get-order.d.cts +4 -4
- package/dist/actions/get-order.d.mts +4 -4
- package/dist/actions/get-order.mjs +3 -3
- package/dist/actions/get-order.mjs.map +1 -1
- package/dist/actions/get-product-category.cjs +1 -1
- package/dist/actions/get-product-category.cjs.map +1 -1
- package/dist/actions/get-product-category.d.cts +1 -1
- package/dist/actions/get-product-category.d.mts +1 -1
- package/dist/actions/get-product-category.mjs +1 -1
- package/dist/actions/get-product-category.mjs.map +1 -1
- package/dist/actions/get-product.cjs +2 -2
- package/dist/actions/get-product.cjs.map +1 -1
- package/dist/actions/get-product.d.cts +2 -2
- package/dist/actions/get-product.d.mts +2 -2
- package/dist/actions/get-product.mjs +2 -2
- package/dist/actions/get-product.mjs.map +1 -1
- package/dist/actions/list-campaigns.cjs +5 -5
- package/dist/actions/list-campaigns.cjs.map +1 -1
- package/dist/actions/list-campaigns.d.cts +5 -5
- package/dist/actions/list-campaigns.d.mts +5 -5
- package/dist/actions/list-campaigns.mjs +5 -5
- package/dist/actions/list-campaigns.mjs.map +1 -1
- package/dist/actions/list-carts.cjs +3 -3
- package/dist/actions/list-carts.cjs.map +1 -1
- package/dist/actions/list-carts.d.cts +3 -3
- package/dist/actions/list-carts.d.mts +3 -3
- package/dist/actions/list-carts.mjs +3 -3
- package/dist/actions/list-carts.mjs.map +1 -1
- package/dist/actions/list-categories.cjs +3 -3
- package/dist/actions/list-categories.cjs.map +1 -1
- package/dist/actions/list-categories.d.cts +3 -3
- package/dist/actions/list-categories.d.mts +3 -3
- package/dist/actions/list-categories.mjs +3 -3
- package/dist/actions/list-categories.mjs.map +1 -1
- package/dist/actions/list-contacts.cjs +7 -7
- package/dist/actions/list-contacts.cjs.map +1 -1
- package/dist/actions/list-contacts.d.cts +7 -7
- package/dist/actions/list-contacts.d.mts +7 -7
- package/dist/actions/list-contacts.mjs +7 -7
- package/dist/actions/list-contacts.mjs.map +1 -1
- package/dist/actions/list-events.cjs +3 -3
- package/dist/actions/list-events.cjs.map +1 -1
- package/dist/actions/list-events.d.cts +3 -3
- package/dist/actions/list-events.d.mts +3 -3
- package/dist/actions/list-events.mjs +3 -3
- package/dist/actions/list-events.mjs.map +1 -1
- package/dist/actions/list-product-categories.cjs +3 -3
- package/dist/actions/list-product-categories.cjs.map +1 -1
- package/dist/actions/list-product-categories.d.cts +3 -3
- package/dist/actions/list-product-categories.d.mts +3 -3
- package/dist/actions/list-product-categories.mjs +3 -3
- package/dist/actions/list-product-categories.mjs.map +1 -1
- package/dist/actions/list-products.cjs +4 -4
- package/dist/actions/list-products.cjs.map +1 -1
- package/dist/actions/list-products.d.cts +4 -4
- package/dist/actions/list-products.d.mts +4 -4
- package/dist/actions/list-products.mjs +4 -4
- package/dist/actions/list-products.mjs.map +1 -1
- package/dist/actions/remove-cart-product.cjs +1 -1
- package/dist/actions/remove-cart-product.cjs.map +1 -1
- package/dist/actions/remove-cart-product.d.cts +1 -1
- package/dist/actions/remove-cart-product.d.cts.map +1 -1
- package/dist/actions/remove-cart-product.d.mts +1 -1
- package/dist/actions/remove-cart-product.d.mts.map +1 -1
- package/dist/actions/remove-cart-product.mjs +1 -1
- package/dist/actions/remove-cart-product.mjs.map +1 -1
- package/dist/actions/replace-cart-product.cjs +1 -1
- package/dist/actions/replace-cart-product.cjs.map +1 -1
- package/dist/actions/replace-cart-product.d.cts +1 -1
- package/dist/actions/replace-cart-product.d.mts +1 -1
- package/dist/actions/replace-cart-product.mjs +1 -1
- package/dist/actions/replace-cart-product.mjs.map +1 -1
- package/dist/actions/replace-cart.cjs +2 -2
- package/dist/actions/replace-cart.cjs.map +1 -1
- package/dist/actions/replace-cart.d.cts +3 -2
- package/dist/actions/replace-cart.d.mts +3 -2
- package/dist/actions/replace-cart.mjs +2 -2
- package/dist/actions/replace-cart.mjs.map +1 -1
- package/dist/actions/replace-category.cjs +1 -1
- package/dist/actions/replace-category.cjs.map +1 -1
- package/dist/actions/replace-category.d.cts +1 -1
- package/dist/actions/replace-category.d.mts +1 -1
- package/dist/actions/replace-category.mjs +1 -1
- package/dist/actions/replace-category.mjs.map +1 -1
- package/dist/actions/replace-order.cjs +2 -2
- package/dist/actions/replace-order.cjs.map +1 -1
- package/dist/actions/replace-order.d.cts +3 -2
- package/dist/actions/replace-order.d.mts +3 -2
- package/dist/actions/replace-order.mjs +2 -2
- package/dist/actions/replace-order.mjs.map +1 -1
- package/dist/actions/replace-product.cjs +2 -2
- package/dist/actions/replace-product.cjs.map +1 -1
- package/dist/actions/replace-product.d.cts +3 -2
- package/dist/actions/replace-product.d.mts +3 -2
- package/dist/actions/replace-product.mjs +2 -2
- package/dist/actions/replace-product.mjs.map +1 -1
- package/dist/actions/send-event.cjs +3 -3
- package/dist/actions/send-event.cjs.map +1 -1
- package/dist/actions/send-event.d.cts +5 -5
- package/dist/actions/send-event.d.mts +5 -5
- package/dist/actions/send-event.mjs +3 -3
- package/dist/actions/send-event.mjs.map +1 -1
- package/dist/actions/update-cart-product.cjs +1 -1
- package/dist/actions/update-cart-product.cjs.map +1 -1
- package/dist/actions/update-cart-product.d.cts +1 -1
- package/dist/actions/update-cart-product.d.mts +1 -1
- package/dist/actions/update-cart-product.mjs +1 -1
- package/dist/actions/update-cart-product.mjs.map +1 -1
- package/dist/actions/update-cart.cjs +2 -2
- package/dist/actions/update-cart.cjs.map +1 -1
- package/dist/actions/update-cart.d.cts +3 -2
- package/dist/actions/update-cart.d.mts +3 -2
- package/dist/actions/update-cart.mjs +2 -2
- package/dist/actions/update-cart.mjs.map +1 -1
- package/dist/actions/update-contact.cjs +3 -3
- package/dist/actions/update-contact.cjs.map +1 -1
- package/dist/actions/update-contact.d.cts +5 -4
- package/dist/actions/update-contact.d.cts.map +1 -1
- package/dist/actions/update-contact.d.mts +5 -4
- package/dist/actions/update-contact.d.mts.map +1 -1
- package/dist/actions/update-contact.mjs +3 -3
- package/dist/actions/update-contact.mjs.map +1 -1
- package/dist/actions/update-order-status.cjs +1 -1
- package/dist/actions/update-order-status.cjs.map +1 -1
- package/dist/actions/update-order-status.d.cts +1 -1
- package/dist/actions/update-order-status.d.mts +1 -1
- package/dist/actions/update-order-status.mjs +1 -1
- package/dist/actions/update-order-status.mjs.map +1 -1
- package/dist/actions/update-product-category.cjs +1 -1
- package/dist/actions/update-product-category.cjs.map +1 -1
- package/dist/actions/update-product-category.d.cts +1 -1
- package/dist/actions/update-product-category.d.mts +1 -1
- package/dist/actions/update-product-category.mjs +1 -1
- package/dist/actions/update-product-category.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -27,7 +27,7 @@ const OmnisendCreateOrderInput = zod.z.object({
|
|
|
27
27
|
categoryIDs: zod.z.array(zod.z.string()).describe("List of category IDs").optional(),
|
|
28
28
|
variantTitle: zod.z.string().describe("Variant title").optional(),
|
|
29
29
|
cartProductID: zod.z.string().describe("Unique identifier for this product in the cart").optional()
|
|
30
|
-
}).describe("Product item in the order.")).describe("Array of ordered products").optional(),
|
|
30
|
+
}).passthrough().describe("Product item in the order.")).describe("Array of ordered products").optional(),
|
|
31
31
|
contactID: zod.z.string().describe("Omnisend contact ID (email or phone or contactID required)").optional(),
|
|
32
32
|
createdAt: zod.z.string().describe("Order creation timestamp in ISO 8601 format (cannot be future date, required by API)"),
|
|
33
33
|
firstName: zod.z.string().describe("Customer first name").optional(),
|
|
@@ -39,7 +39,7 @@ const OmnisendCreateOrderInput = zod.z.object({
|
|
|
39
39
|
shippingSum: zod.z.number().int().describe("Shipping cost in cents").optional(),
|
|
40
40
|
subTotalSum: zod.z.number().int().describe("Subtotal amount in cents").optional(),
|
|
41
41
|
courierTitle: zod.z.string().describe("Courier service name").optional(),
|
|
42
|
-
customFields: zod.z.
|
|
42
|
+
customFields: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Custom fields as key-value pairs").optional(),
|
|
43
43
|
discountCode: zod.z.string().describe("Discount code applied").optional(),
|
|
44
44
|
discountType: zod.z.string().describe("Type of discount (e.g., fixedAmount, percentage)").optional(),
|
|
45
45
|
trackingCode: zod.z.string().describe("Shipping tracking code").optional(),
|
|
@@ -91,7 +91,7 @@ const OmnisendCreateOrderOutput = zod.z.object({
|
|
|
91
91
|
email: zod.z.string().describe("Customer email address").nullable().optional(),
|
|
92
92
|
phone: zod.z.string().describe("Customer phone number").nullable().optional(),
|
|
93
93
|
orderID: zod.z.string().describe("Unique order identifier").nullable()
|
|
94
|
-
});
|
|
94
|
+
}).passthrough();
|
|
95
95
|
const omnisendCreateOrder = require_action.action("OMNISEND_CREATE_ORDER", {
|
|
96
96
|
slug: "omnisend-create-order",
|
|
97
97
|
name: "Create Order",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-order.cjs","names":["z","action"],"sources":["../../src/actions/create-order.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OmnisendCreateOrderInput = z.object({\n tags: z.array(z.string()).describe(\"Order tags\").optional(),\n email: z.string().describe(\"Customer email address (email or phone or contactID required)\").optional(),\n phone: z.string().describe(\"Customer phone number (email or phone or contactID required)\").optional(),\n cartID: z.string().describe(\"Cart identifier\").optional(),\n source: z.string().describe(\"Order source\").optional(),\n taxSum: z.number().int().describe(\"Tax amount in cents\").optional(),\n orderID: z.string().describe(\"Unique order identifier from your store\"),\n currency: z.string().describe(\"Order currency code (e.g., USD, EUR)\"),\n lastName: z.string().describe(\"Customer last name\").optional(),\n orderSum: z.number().int().describe(\"Total order amount in cents (must be integer, not float)\"),\n orderUrl: z.string().describe(\"URL to view the order\").optional(),\n products: z.array(z.object({\n tags: z.array(z.string()).describe(\"Product tags\").optional(),\n price: z.number().int().describe(\"Product price in cents (must be integer)\"),\n title: z.string().describe(\"Product title\"),\n weight: z.number().int().describe(\"Product weight in grams\").optional(),\n discount: z.number().int().describe(\"Discount amount in cents\").optional(),\n imageUrl: z.string().describe(\"URL to product image\").optional(),\n quantity: z.number().int().describe(\"Quantity ordered\"),\n productID: z.string().describe(\"Unique product identifier\"),\n variantID: z.string().describe(\"Product variant identifier (required by API)\"),\n productUrl: z.string().describe(\"URL to product page\").optional(),\n categoryIDs: z.array(z.string()).describe(\"List of category IDs\").optional(),\n variantTitle: z.string().describe(\"Variant title\").optional(),\n cartProductID: z.string().describe(\"Unique identifier for this product in the cart\").optional(),\n}).describe(\"Product item in the order.\")).describe(\"Array of ordered products\").optional(),\n contactID: z.string().describe(\"Omnisend contact ID (email or phone or contactID required)\").optional(),\n createdAt: z.string().describe(\"Order creation timestamp in ISO 8601 format (cannot be future date, required by API)\"),\n firstName: z.string().describe(\"Customer first name\").optional(),\n updatedAt: z.string().describe(\"Order last update timestamp in ISO 8601 format\").optional(),\n courierUrl: z.string().describe(\"Tracking URL\").optional(),\n contactNote: z.string().describe(\"Note about the customer or order\").optional(),\n discountSum: z.number().int().describe(\"Total discount amount in cents\").optional(),\n orderNumber: z.number().int().describe(\"Order number for display\").optional(),\n shippingSum: z.number().int().describe(\"Shipping cost in cents\").optional(),\n subTotalSum: z.number().int().describe(\"Subtotal amount in cents\").optional(),\n courierTitle: z.string().describe(\"Courier service name\").optional(),\n customFields: z.object({}).describe(\"Custom fields as key-value pairs\").optional(),\n discountCode: z.string().describe(\"Discount code applied\").optional(),\n discountType: z.string().describe(\"Type of discount (e.g., fixedAmount, percentage)\").optional(),\n trackingCode: z.string().describe(\"Shipping tracking code\").optional(),\n discountValue: z.number().int().describe(\"Discount value in cents\").optional(),\n paymentMethod: z.string().describe(\"Payment method description\").optional(),\n paymentStatus: z.enum([\"awaitingPayment\", \"partiallyPaid\", \"paid\", \"partiallyRefunded\", \"refunded\", \"voided\"]).describe(\"Payment status enum values.\").optional(),\n billingAddress: z.object({\n city: z.string().describe(\"City\").optional(),\n phone: z.string().describe(\"Phone number\").optional(),\n state: z.string().describe(\"State or province\").optional(),\n address: z.string().describe(\"Street address\").optional(),\n company: z.string().describe(\"Company name\").optional(),\n country: z.string().describe(\"Country name\").optional(),\n lastName: z.string().describe(\"Last name\").optional(),\n firstName: z.string().describe(\"First name\").optional(),\n postalCode: z.string().describe(\"Postal or ZIP code\").optional(),\n countryCode: z.string().describe(\"ISO country code\").optional(),\n}).describe(\"Address information for billing or shipping.\").optional(),\n shippingMethod: z.string().describe(\"Shipping method description\").optional(),\n shippingAddress: z.object({\n city: z.string().describe(\"City\").optional(),\n phone: z.string().describe(\"Phone number\").optional(),\n state: z.string().describe(\"State or province\").optional(),\n address: z.string().describe(\"Street address\").optional(),\n company: z.string().describe(\"Company name\").optional(),\n country: z.string().describe(\"Country name\").optional(),\n lastName: z.string().describe(\"Last name\").optional(),\n firstName: z.string().describe(\"First name\").optional(),\n postalCode: z.string().describe(\"Postal or ZIP code\").optional(),\n countryCode: z.string().describe(\"ISO country code\").optional(),\n}).describe(\"Address information for billing or shipping.\").optional(),\n fulfillmentStatus: z.enum([\"unfulfilled\", \"inProgress\", \"fulfilled\", \"delivered\", \"restocked\"]).describe(\"Fulfillment status enum values.\").optional(),\n subTotalTaxIncluded: z.boolean().describe(\"Whether tax is included in subtotal\").optional(),\n});\nexport const OmnisendCreateOrderOutput = z.object({\n email: z.string().describe(\"Customer email address\").nullable().optional(),\n phone: z.string().describe(\"Customer phone number\").nullable().optional(),\n orderID: z.string().describe(\"Unique order identifier\").nullable(),\n});\n\nexport const omnisendCreateOrder = action(\"OMNISEND_CREATE_ORDER\", {\n slug: \"omnisend-create-order\",\n name: \"Create Order\",\n description: \"Tool to create a new order in Omnisend v3 API. Use when recording a customer purchase or order transaction.\",\n input: OmnisendCreateOrderInput,\n output: OmnisendCreateOrderOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,YAAY,CAAC,CAAC,SAAS;CAC1D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;CACrG,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;CACpG,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iBAAiB,CAAC,CAAC,SAAS;CACxD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc,CAAC,CAAC,SAAS;CACrD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CAClE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC;CACtE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC;CACpE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS;CAC7D,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0DAA0D;CAC9F,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;CAChE,UAAUA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EAC3B,MAAMA,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C,CAAC,SAAS;AACnE,CAAC;AAED,MAAa,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
1
|
+
{"version":3,"file":"create-order.cjs","names":["z","action"],"sources":["../../src/actions/create-order.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OmnisendCreateOrderInput = z.object({\n tags: z.array(z.string()).describe(\"Order tags\").optional(),\n email: z.string().describe(\"Customer email address (email or phone or contactID required)\").optional(),\n phone: z.string().describe(\"Customer phone number (email or phone or contactID required)\").optional(),\n cartID: z.string().describe(\"Cart identifier\").optional(),\n source: z.string().describe(\"Order source\").optional(),\n taxSum: z.number().int().describe(\"Tax amount in cents\").optional(),\n orderID: z.string().describe(\"Unique order identifier from your store\"),\n currency: z.string().describe(\"Order currency code (e.g., USD, EUR)\"),\n lastName: z.string().describe(\"Customer last name\").optional(),\n orderSum: z.number().int().describe(\"Total order amount in cents (must be integer, not float)\"),\n orderUrl: z.string().describe(\"URL to view the order\").optional(),\n products: z.array(z.object({\n tags: z.array(z.string()).describe(\"Product tags\").optional(),\n price: z.number().int().describe(\"Product price in cents (must be integer)\"),\n title: z.string().describe(\"Product title\"),\n weight: z.number().int().describe(\"Product weight in grams\").optional(),\n discount: z.number().int().describe(\"Discount amount in cents\").optional(),\n imageUrl: z.string().describe(\"URL to product image\").optional(),\n quantity: z.number().int().describe(\"Quantity ordered\"),\n productID: z.string().describe(\"Unique product identifier\"),\n variantID: z.string().describe(\"Product variant identifier (required by API)\"),\n productUrl: z.string().describe(\"URL to product page\").optional(),\n categoryIDs: z.array(z.string()).describe(\"List of category IDs\").optional(),\n variantTitle: z.string().describe(\"Variant title\").optional(),\n cartProductID: z.string().describe(\"Unique identifier for this product in the cart\").optional(),\n}).passthrough().describe(\"Product item in the order.\")).describe(\"Array of ordered products\").optional(),\n contactID: z.string().describe(\"Omnisend contact ID (email or phone or contactID required)\").optional(),\n createdAt: z.string().describe(\"Order creation timestamp in ISO 8601 format (cannot be future date, required by API)\"),\n firstName: z.string().describe(\"Customer first name\").optional(),\n updatedAt: z.string().describe(\"Order last update timestamp in ISO 8601 format\").optional(),\n courierUrl: z.string().describe(\"Tracking URL\").optional(),\n contactNote: z.string().describe(\"Note about the customer or order\").optional(),\n discountSum: z.number().int().describe(\"Total discount amount in cents\").optional(),\n orderNumber: z.number().int().describe(\"Order number for display\").optional(),\n shippingSum: z.number().int().describe(\"Shipping cost in cents\").optional(),\n subTotalSum: z.number().int().describe(\"Subtotal amount in cents\").optional(),\n courierTitle: z.string().describe(\"Courier service name\").optional(),\n customFields: z.record(z.string(), z.unknown()).describe(\"Custom fields as key-value pairs\").optional(),\n discountCode: z.string().describe(\"Discount code applied\").optional(),\n discountType: z.string().describe(\"Type of discount (e.g., fixedAmount, percentage)\").optional(),\n trackingCode: z.string().describe(\"Shipping tracking code\").optional(),\n discountValue: z.number().int().describe(\"Discount value in cents\").optional(),\n paymentMethod: z.string().describe(\"Payment method description\").optional(),\n paymentStatus: z.enum([\"awaitingPayment\", \"partiallyPaid\", \"paid\", \"partiallyRefunded\", \"refunded\", \"voided\"]).describe(\"Payment status enum values.\").optional(),\n billingAddress: z.object({\n city: z.string().describe(\"City\").optional(),\n phone: z.string().describe(\"Phone number\").optional(),\n state: z.string().describe(\"State or province\").optional(),\n address: z.string().describe(\"Street address\").optional(),\n company: z.string().describe(\"Company name\").optional(),\n country: z.string().describe(\"Country name\").optional(),\n lastName: z.string().describe(\"Last name\").optional(),\n firstName: z.string().describe(\"First name\").optional(),\n postalCode: z.string().describe(\"Postal or ZIP code\").optional(),\n countryCode: z.string().describe(\"ISO country code\").optional(),\n}).describe(\"Address information for billing or shipping.\").optional(),\n shippingMethod: z.string().describe(\"Shipping method description\").optional(),\n shippingAddress: z.object({\n city: z.string().describe(\"City\").optional(),\n phone: z.string().describe(\"Phone number\").optional(),\n state: z.string().describe(\"State or province\").optional(),\n address: z.string().describe(\"Street address\").optional(),\n company: z.string().describe(\"Company name\").optional(),\n country: z.string().describe(\"Country name\").optional(),\n lastName: z.string().describe(\"Last name\").optional(),\n firstName: z.string().describe(\"First name\").optional(),\n postalCode: z.string().describe(\"Postal or ZIP code\").optional(),\n countryCode: z.string().describe(\"ISO country code\").optional(),\n}).describe(\"Address information for billing or shipping.\").optional(),\n fulfillmentStatus: z.enum([\"unfulfilled\", \"inProgress\", \"fulfilled\", \"delivered\", \"restocked\"]).describe(\"Fulfillment status enum values.\").optional(),\n subTotalTaxIncluded: z.boolean().describe(\"Whether tax is included in subtotal\").optional(),\n});\nexport const OmnisendCreateOrderOutput = z.object({\n email: z.string().describe(\"Customer email address\").nullable().optional(),\n phone: z.string().describe(\"Customer phone number\").nullable().optional(),\n orderID: z.string().describe(\"Unique order identifier\").nullable(),\n}).passthrough();\n\nexport const omnisendCreateOrder = action(\"OMNISEND_CREATE_ORDER\", {\n slug: \"omnisend-create-order\",\n name: \"Create Order\",\n description: \"Tool to create a new order in Omnisend v3 API. Use when recording a customer purchase or order transaction.\",\n input: OmnisendCreateOrderInput,\n output: OmnisendCreateOrderOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,YAAY,CAAC,CAAC,SAAS;CAC1D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;CACrG,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;CACpG,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iBAAiB,CAAC,CAAC,SAAS;CACxD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc,CAAC,CAAC,SAAS;CACrD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAA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AAC,CAAC,SAAS;CACnE,mBAAmBA,IAAAA,EAAE,KAAK;EAAC;EAAe;EAAc;EAAa;EAAa;CAAW,CAAC,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CACrJ,qBAAqBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;AAC5F,CAAC;AACD,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;AACnE,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -27,7 +27,7 @@ declare const OmnisendCreateOrderInput: z.ZodObject<{
|
|
|
27
27
|
categoryIDs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
28
28
|
variantTitle: z.ZodOptional<z.ZodString>;
|
|
29
29
|
cartProductID: z.ZodOptional<z.ZodString>;
|
|
30
|
-
}, z.core.$
|
|
30
|
+
}, z.core.$loose>>>;
|
|
31
31
|
contactID: z.ZodOptional<z.ZodString>;
|
|
32
32
|
createdAt: z.ZodString;
|
|
33
33
|
firstName: z.ZodOptional<z.ZodString>;
|
|
@@ -39,7 +39,7 @@ declare const OmnisendCreateOrderInput: z.ZodObject<{
|
|
|
39
39
|
shippingSum: z.ZodOptional<z.ZodNumber>;
|
|
40
40
|
subTotalSum: z.ZodOptional<z.ZodNumber>;
|
|
41
41
|
courierTitle: z.ZodOptional<z.ZodString>;
|
|
42
|
-
customFields: z.ZodOptional<z.
|
|
42
|
+
customFields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
43
43
|
discountCode: z.ZodOptional<z.ZodString>;
|
|
44
44
|
discountType: z.ZodOptional<z.ZodString>;
|
|
45
45
|
trackingCode: z.ZodOptional<z.ZodString>;
|
|
@@ -79,8 +79,8 @@ declare const OmnisendCreateOrderInput: z.ZodObject<{
|
|
|
79
79
|
countryCode: z.ZodOptional<z.ZodString>;
|
|
80
80
|
}, z.core.$strip>>;
|
|
81
81
|
fulfillmentStatus: z.ZodOptional<z.ZodEnum<{
|
|
82
|
-
inProgress: "inProgress";
|
|
83
82
|
unfulfilled: "unfulfilled";
|
|
83
|
+
inProgress: "inProgress";
|
|
84
84
|
fulfilled: "fulfilled";
|
|
85
85
|
delivered: "delivered";
|
|
86
86
|
restocked: "restocked";
|
|
@@ -91,7 +91,7 @@ declare const OmnisendCreateOrderOutput: z.ZodObject<{
|
|
|
91
91
|
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
92
92
|
phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
93
93
|
orderID: z.ZodNullable<z.ZodString>;
|
|
94
|
-
}, z.core.$
|
|
94
|
+
}, z.core.$loose>;
|
|
95
95
|
declare const omnisendCreateOrder: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
96
96
|
orderID: string;
|
|
97
97
|
currency: string;
|
|
@@ -106,6 +106,7 @@ declare const omnisendCreateOrder: import("@keystrokehq/action").WorkflowActionD
|
|
|
106
106
|
lastName?: string | undefined;
|
|
107
107
|
orderUrl?: string | undefined;
|
|
108
108
|
products?: {
|
|
109
|
+
[x: string]: unknown;
|
|
109
110
|
price: number;
|
|
110
111
|
title: string;
|
|
111
112
|
quantity: number;
|
|
@@ -130,7 +131,7 @@ declare const omnisendCreateOrder: import("@keystrokehq/action").WorkflowActionD
|
|
|
130
131
|
shippingSum?: number | undefined;
|
|
131
132
|
subTotalSum?: number | undefined;
|
|
132
133
|
courierTitle?: string | undefined;
|
|
133
|
-
customFields?: Record<string,
|
|
134
|
+
customFields?: Record<string, unknown> | undefined;
|
|
134
135
|
discountCode?: string | undefined;
|
|
135
136
|
discountType?: string | undefined;
|
|
136
137
|
trackingCode?: string | undefined;
|
|
@@ -162,7 +163,7 @@ declare const omnisendCreateOrder: import("@keystrokehq/action").WorkflowActionD
|
|
|
162
163
|
postalCode?: string | undefined;
|
|
163
164
|
countryCode?: string | undefined;
|
|
164
165
|
} | undefined;
|
|
165
|
-
fulfillmentStatus?: "
|
|
166
|
+
fulfillmentStatus?: "unfulfilled" | "inProgress" | "fulfilled" | "delivered" | "restocked" | undefined;
|
|
166
167
|
subTotalTaxIncluded?: boolean | undefined;
|
|
167
168
|
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
168
169
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-order.d.cts","names":[],"sources":["../../src/actions/create-order.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAyExB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;cAMzB,mBAAA,gCAAmB,wBAAA
|
|
1
|
+
{"version":3,"file":"create-order.d.cts","names":[],"sources":["../../src/actions/create-order.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAyExB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;cAMzB,mBAAA,gCAAmB,wBAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAM9B,MAAA"}
|
|
@@ -27,7 +27,7 @@ declare const OmnisendCreateOrderInput: z.ZodObject<{
|
|
|
27
27
|
categoryIDs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
28
28
|
variantTitle: z.ZodOptional<z.ZodString>;
|
|
29
29
|
cartProductID: z.ZodOptional<z.ZodString>;
|
|
30
|
-
}, z.core.$
|
|
30
|
+
}, z.core.$loose>>>;
|
|
31
31
|
contactID: z.ZodOptional<z.ZodString>;
|
|
32
32
|
createdAt: z.ZodString;
|
|
33
33
|
firstName: z.ZodOptional<z.ZodString>;
|
|
@@ -39,7 +39,7 @@ declare const OmnisendCreateOrderInput: z.ZodObject<{
|
|
|
39
39
|
shippingSum: z.ZodOptional<z.ZodNumber>;
|
|
40
40
|
subTotalSum: z.ZodOptional<z.ZodNumber>;
|
|
41
41
|
courierTitle: z.ZodOptional<z.ZodString>;
|
|
42
|
-
customFields: z.ZodOptional<z.
|
|
42
|
+
customFields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
43
43
|
discountCode: z.ZodOptional<z.ZodString>;
|
|
44
44
|
discountType: z.ZodOptional<z.ZodString>;
|
|
45
45
|
trackingCode: z.ZodOptional<z.ZodString>;
|
|
@@ -79,8 +79,8 @@ declare const OmnisendCreateOrderInput: z.ZodObject<{
|
|
|
79
79
|
countryCode: z.ZodOptional<z.ZodString>;
|
|
80
80
|
}, z.core.$strip>>;
|
|
81
81
|
fulfillmentStatus: z.ZodOptional<z.ZodEnum<{
|
|
82
|
-
inProgress: "inProgress";
|
|
83
82
|
unfulfilled: "unfulfilled";
|
|
83
|
+
inProgress: "inProgress";
|
|
84
84
|
fulfilled: "fulfilled";
|
|
85
85
|
delivered: "delivered";
|
|
86
86
|
restocked: "restocked";
|
|
@@ -91,7 +91,7 @@ declare const OmnisendCreateOrderOutput: z.ZodObject<{
|
|
|
91
91
|
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
92
92
|
phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
93
93
|
orderID: z.ZodNullable<z.ZodString>;
|
|
94
|
-
}, z.core.$
|
|
94
|
+
}, z.core.$loose>;
|
|
95
95
|
declare const omnisendCreateOrder: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
96
96
|
orderID: string;
|
|
97
97
|
currency: string;
|
|
@@ -106,6 +106,7 @@ declare const omnisendCreateOrder: import("@keystrokehq/action").WorkflowActionD
|
|
|
106
106
|
lastName?: string | undefined;
|
|
107
107
|
orderUrl?: string | undefined;
|
|
108
108
|
products?: {
|
|
109
|
+
[x: string]: unknown;
|
|
109
110
|
price: number;
|
|
110
111
|
title: string;
|
|
111
112
|
quantity: number;
|
|
@@ -130,7 +131,7 @@ declare const omnisendCreateOrder: import("@keystrokehq/action").WorkflowActionD
|
|
|
130
131
|
shippingSum?: number | undefined;
|
|
131
132
|
subTotalSum?: number | undefined;
|
|
132
133
|
courierTitle?: string | undefined;
|
|
133
|
-
customFields?: Record<string,
|
|
134
|
+
customFields?: Record<string, unknown> | undefined;
|
|
134
135
|
discountCode?: string | undefined;
|
|
135
136
|
discountType?: string | undefined;
|
|
136
137
|
trackingCode?: string | undefined;
|
|
@@ -162,7 +163,7 @@ declare const omnisendCreateOrder: import("@keystrokehq/action").WorkflowActionD
|
|
|
162
163
|
postalCode?: string | undefined;
|
|
163
164
|
countryCode?: string | undefined;
|
|
164
165
|
} | undefined;
|
|
165
|
-
fulfillmentStatus?: "
|
|
166
|
+
fulfillmentStatus?: "unfulfilled" | "inProgress" | "fulfilled" | "delivered" | "restocked" | undefined;
|
|
166
167
|
subTotalTaxIncluded?: boolean | undefined;
|
|
167
168
|
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
168
169
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-order.d.mts","names":[],"sources":["../../src/actions/create-order.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAyExB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;cAMzB,mBAAA,gCAAmB,wBAAA
|
|
1
|
+
{"version":3,"file":"create-order.d.mts","names":[],"sources":["../../src/actions/create-order.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAyExB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;cAMzB,mBAAA,gCAAmB,wBAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAM9B,MAAA"}
|
|
@@ -30,7 +30,7 @@ const omnisendCreateOrder = action("OMNISEND_CREATE_ORDER", {
|
|
|
30
30
|
categoryIDs: z.array(z.string()).describe("List of category IDs").optional(),
|
|
31
31
|
variantTitle: z.string().describe("Variant title").optional(),
|
|
32
32
|
cartProductID: z.string().describe("Unique identifier for this product in the cart").optional()
|
|
33
|
-
}).describe("Product item in the order.")).describe("Array of ordered products").optional(),
|
|
33
|
+
}).passthrough().describe("Product item in the order.")).describe("Array of ordered products").optional(),
|
|
34
34
|
contactID: z.string().describe("Omnisend contact ID (email or phone or contactID required)").optional(),
|
|
35
35
|
createdAt: z.string().describe("Order creation timestamp in ISO 8601 format (cannot be future date, required by API)"),
|
|
36
36
|
firstName: z.string().describe("Customer first name").optional(),
|
|
@@ -42,7 +42,7 @@ const omnisendCreateOrder = action("OMNISEND_CREATE_ORDER", {
|
|
|
42
42
|
shippingSum: z.number().int().describe("Shipping cost in cents").optional(),
|
|
43
43
|
subTotalSum: z.number().int().describe("Subtotal amount in cents").optional(),
|
|
44
44
|
courierTitle: z.string().describe("Courier service name").optional(),
|
|
45
|
-
customFields: z.
|
|
45
|
+
customFields: z.record(z.string(), z.unknown()).describe("Custom fields as key-value pairs").optional(),
|
|
46
46
|
discountCode: z.string().describe("Discount code applied").optional(),
|
|
47
47
|
discountType: z.string().describe("Type of discount (e.g., fixedAmount, percentage)").optional(),
|
|
48
48
|
trackingCode: z.string().describe("Shipping tracking code").optional(),
|
|
@@ -94,7 +94,7 @@ const omnisendCreateOrder = action("OMNISEND_CREATE_ORDER", {
|
|
|
94
94
|
email: z.string().describe("Customer email address").nullable().optional(),
|
|
95
95
|
phone: z.string().describe("Customer phone number").nullable().optional(),
|
|
96
96
|
orderID: z.string().describe("Unique order identifier").nullable()
|
|
97
|
-
})
|
|
97
|
+
}).passthrough()
|
|
98
98
|
});
|
|
99
99
|
//#endregion
|
|
100
100
|
export { omnisendCreateOrder };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-order.mjs","names":[],"sources":["../../src/actions/create-order.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OmnisendCreateOrderInput = z.object({\n tags: z.array(z.string()).describe(\"Order tags\").optional(),\n email: z.string().describe(\"Customer email address (email or phone or contactID required)\").optional(),\n phone: z.string().describe(\"Customer phone number (email or phone or contactID required)\").optional(),\n cartID: z.string().describe(\"Cart identifier\").optional(),\n source: z.string().describe(\"Order source\").optional(),\n taxSum: z.number().int().describe(\"Tax amount in cents\").optional(),\n orderID: z.string().describe(\"Unique order identifier from your store\"),\n currency: z.string().describe(\"Order currency code (e.g., USD, EUR)\"),\n lastName: z.string().describe(\"Customer last name\").optional(),\n orderSum: z.number().int().describe(\"Total order amount in cents (must be integer, not float)\"),\n orderUrl: z.string().describe(\"URL to view the order\").optional(),\n products: z.array(z.object({\n tags: z.array(z.string()).describe(\"Product tags\").optional(),\n price: z.number().int().describe(\"Product price in cents (must be integer)\"),\n title: z.string().describe(\"Product title\"),\n weight: z.number().int().describe(\"Product weight in grams\").optional(),\n discount: z.number().int().describe(\"Discount amount in cents\").optional(),\n imageUrl: z.string().describe(\"URL to product image\").optional(),\n quantity: z.number().int().describe(\"Quantity ordered\"),\n productID: z.string().describe(\"Unique product identifier\"),\n variantID: z.string().describe(\"Product variant identifier (required by API)\"),\n productUrl: z.string().describe(\"URL to product page\").optional(),\n categoryIDs: z.array(z.string()).describe(\"List of category IDs\").optional(),\n variantTitle: z.string().describe(\"Variant title\").optional(),\n cartProductID: z.string().describe(\"Unique identifier for this product in the cart\").optional(),\n}).describe(\"Product item in the order.\")).describe(\"Array of ordered products\").optional(),\n contactID: z.string().describe(\"Omnisend contact ID (email or phone or contactID required)\").optional(),\n createdAt: z.string().describe(\"Order creation timestamp in ISO 8601 format (cannot be future date, required by API)\"),\n firstName: z.string().describe(\"Customer first name\").optional(),\n updatedAt: z.string().describe(\"Order last update timestamp in ISO 8601 format\").optional(),\n courierUrl: z.string().describe(\"Tracking URL\").optional(),\n contactNote: z.string().describe(\"Note about the customer or order\").optional(),\n discountSum: z.number().int().describe(\"Total discount amount in cents\").optional(),\n orderNumber: z.number().int().describe(\"Order number for display\").optional(),\n shippingSum: z.number().int().describe(\"Shipping cost in cents\").optional(),\n subTotalSum: z.number().int().describe(\"Subtotal amount in cents\").optional(),\n courierTitle: z.string().describe(\"Courier service name\").optional(),\n customFields: z.object({}).describe(\"Custom fields as key-value pairs\").optional(),\n discountCode: z.string().describe(\"Discount code applied\").optional(),\n discountType: z.string().describe(\"Type of discount (e.g., fixedAmount, percentage)\").optional(),\n trackingCode: z.string().describe(\"Shipping tracking code\").optional(),\n discountValue: z.number().int().describe(\"Discount value in cents\").optional(),\n paymentMethod: z.string().describe(\"Payment method description\").optional(),\n paymentStatus: z.enum([\"awaitingPayment\", \"partiallyPaid\", \"paid\", \"partiallyRefunded\", \"refunded\", \"voided\"]).describe(\"Payment status enum values.\").optional(),\n billingAddress: z.object({\n city: z.string().describe(\"City\").optional(),\n phone: z.string().describe(\"Phone number\").optional(),\n state: z.string().describe(\"State or province\").optional(),\n address: z.string().describe(\"Street address\").optional(),\n company: z.string().describe(\"Company name\").optional(),\n country: z.string().describe(\"Country name\").optional(),\n lastName: z.string().describe(\"Last name\").optional(),\n firstName: z.string().describe(\"First name\").optional(),\n postalCode: z.string().describe(\"Postal or ZIP code\").optional(),\n countryCode: z.string().describe(\"ISO country code\").optional(),\n}).describe(\"Address information for billing or shipping.\").optional(),\n shippingMethod: z.string().describe(\"Shipping method description\").optional(),\n shippingAddress: z.object({\n city: z.string().describe(\"City\").optional(),\n phone: z.string().describe(\"Phone number\").optional(),\n state: z.string().describe(\"State or province\").optional(),\n address: z.string().describe(\"Street address\").optional(),\n company: z.string().describe(\"Company name\").optional(),\n country: z.string().describe(\"Country name\").optional(),\n lastName: z.string().describe(\"Last name\").optional(),\n firstName: z.string().describe(\"First name\").optional(),\n postalCode: z.string().describe(\"Postal or ZIP code\").optional(),\n countryCode: z.string().describe(\"ISO country code\").optional(),\n}).describe(\"Address information for billing or shipping.\").optional(),\n fulfillmentStatus: z.enum([\"unfulfilled\", \"inProgress\", \"fulfilled\", \"delivered\", \"restocked\"]).describe(\"Fulfillment status enum values.\").optional(),\n subTotalTaxIncluded: z.boolean().describe(\"Whether tax is included in subtotal\").optional(),\n});\nexport const OmnisendCreateOrderOutput = z.object({\n email: z.string().describe(\"Customer email address\").nullable().optional(),\n phone: z.string().describe(\"Customer phone number\").nullable().optional(),\n orderID: z.string().describe(\"Unique order identifier\").nullable(),\n});\n\nexport const omnisendCreateOrder = action(\"OMNISEND_CREATE_ORDER\", {\n slug: \"omnisend-create-order\",\n name: \"Create Order\",\n description: \"Tool to create a new order in Omnisend v3 API. Use when recording a customer purchase or order transaction.\",\n input: OmnisendCreateOrderInput,\n output: OmnisendCreateOrderOutput,\n});\n"],"mappings":";;AAmFA,MAAa,sBAAsB,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAnFsC,EAAE,OAAO;EAC/C,MAAM,EAAE,MAAM,E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C5F,CAWS;CACP,QAXuC,EAAE,OAAO;EAChD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CACnE,CAOU;AACV,CAAC"}
|
|
1
|
+
{"version":3,"file":"create-order.mjs","names":[],"sources":["../../src/actions/create-order.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OmnisendCreateOrderInput = z.object({\n tags: z.array(z.string()).describe(\"Order tags\").optional(),\n email: z.string().describe(\"Customer email address (email or phone or contactID required)\").optional(),\n phone: z.string().describe(\"Customer phone number (email or phone or contactID required)\").optional(),\n cartID: z.string().describe(\"Cart identifier\").optional(),\n source: z.string().describe(\"Order source\").optional(),\n taxSum: z.number().int().describe(\"Tax amount in cents\").optional(),\n orderID: z.string().describe(\"Unique order identifier from your store\"),\n currency: z.string().describe(\"Order currency code (e.g., USD, EUR)\"),\n lastName: z.string().describe(\"Customer last name\").optional(),\n orderSum: z.number().int().describe(\"Total order amount in cents (must be integer, not float)\"),\n orderUrl: z.string().describe(\"URL to view the order\").optional(),\n products: z.array(z.object({\n tags: z.array(z.string()).describe(\"Product tags\").optional(),\n price: z.number().int().describe(\"Product price in cents (must be integer)\"),\n title: z.string().describe(\"Product title\"),\n weight: z.number().int().describe(\"Product weight in grams\").optional(),\n discount: z.number().int().describe(\"Discount amount in cents\").optional(),\n imageUrl: z.string().describe(\"URL to product image\").optional(),\n quantity: z.number().int().describe(\"Quantity ordered\"),\n productID: z.string().describe(\"Unique product identifier\"),\n variantID: z.string().describe(\"Product variant identifier (required by API)\"),\n productUrl: z.string().describe(\"URL to product page\").optional(),\n categoryIDs: z.array(z.string()).describe(\"List of category IDs\").optional(),\n variantTitle: z.string().describe(\"Variant title\").optional(),\n cartProductID: z.string().describe(\"Unique identifier for this product in the cart\").optional(),\n}).passthrough().describe(\"Product item in the order.\")).describe(\"Array of ordered products\").optional(),\n contactID: z.string().describe(\"Omnisend contact ID (email or phone or contactID required)\").optional(),\n createdAt: z.string().describe(\"Order creation timestamp in ISO 8601 format (cannot be future date, required by API)\"),\n firstName: z.string().describe(\"Customer first name\").optional(),\n updatedAt: z.string().describe(\"Order last update timestamp in ISO 8601 format\").optional(),\n courierUrl: z.string().describe(\"Tracking URL\").optional(),\n contactNote: z.string().describe(\"Note about the customer or order\").optional(),\n discountSum: z.number().int().describe(\"Total discount amount in cents\").optional(),\n orderNumber: z.number().int().describe(\"Order number for display\").optional(),\n shippingSum: z.number().int().describe(\"Shipping cost in cents\").optional(),\n subTotalSum: z.number().int().describe(\"Subtotal amount in cents\").optional(),\n courierTitle: z.string().describe(\"Courier service name\").optional(),\n customFields: z.record(z.string(), z.unknown()).describe(\"Custom fields as key-value pairs\").optional(),\n discountCode: z.string().describe(\"Discount code applied\").optional(),\n discountType: z.string().describe(\"Type of discount (e.g., fixedAmount, percentage)\").optional(),\n trackingCode: z.string().describe(\"Shipping tracking code\").optional(),\n discountValue: z.number().int().describe(\"Discount value in cents\").optional(),\n paymentMethod: z.string().describe(\"Payment method description\").optional(),\n paymentStatus: z.enum([\"awaitingPayment\", \"partiallyPaid\", \"paid\", \"partiallyRefunded\", \"refunded\", \"voided\"]).describe(\"Payment status enum values.\").optional(),\n billingAddress: z.object({\n city: z.string().describe(\"City\").optional(),\n phone: z.string().describe(\"Phone number\").optional(),\n state: z.string().describe(\"State or province\").optional(),\n address: z.string().describe(\"Street address\").optional(),\n company: z.string().describe(\"Company name\").optional(),\n country: z.string().describe(\"Country name\").optional(),\n lastName: z.string().describe(\"Last name\").optional(),\n firstName: z.string().describe(\"First name\").optional(),\n postalCode: z.string().describe(\"Postal or ZIP code\").optional(),\n countryCode: z.string().describe(\"ISO country code\").optional(),\n}).describe(\"Address information for billing or shipping.\").optional(),\n shippingMethod: z.string().describe(\"Shipping method description\").optional(),\n shippingAddress: z.object({\n city: z.string().describe(\"City\").optional(),\n phone: z.string().describe(\"Phone number\").optional(),\n state: z.string().describe(\"State or province\").optional(),\n address: z.string().describe(\"Street address\").optional(),\n company: z.string().describe(\"Company name\").optional(),\n country: z.string().describe(\"Country name\").optional(),\n lastName: z.string().describe(\"Last name\").optional(),\n firstName: z.string().describe(\"First name\").optional(),\n postalCode: z.string().describe(\"Postal or ZIP code\").optional(),\n countryCode: z.string().describe(\"ISO country code\").optional(),\n}).describe(\"Address information for billing or shipping.\").optional(),\n fulfillmentStatus: z.enum([\"unfulfilled\", \"inProgress\", \"fulfilled\", \"delivered\", \"restocked\"]).describe(\"Fulfillment status enum values.\").optional(),\n subTotalTaxIncluded: z.boolean().describe(\"Whether tax is included in subtotal\").optional(),\n});\nexport const OmnisendCreateOrderOutput = z.object({\n email: z.string().describe(\"Customer email address\").nullable().optional(),\n phone: z.string().describe(\"Customer phone number\").nullable().optional(),\n orderID: z.string().describe(\"Unique order identifier\").nullable(),\n}).passthrough();\n\nexport const omnisendCreateOrder = action(\"OMNISEND_CREATE_ORDER\", {\n slug: \"omnisend-create-order\",\n name: \"Create Order\",\n description: \"Tool to create a new order in Omnisend v3 API. Use when recording a customer purchase or order transaction.\",\n input: OmnisendCreateOrderInput,\n output: OmnisendCreateOrderOutput,\n});\n"],"mappings":";;AAmFA,MAAa,sBAAsB,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAnFsC,EAAE,OAAO;EAC/C,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,YAAY,CAAC,CAAC,SAAS;EAC1D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;EACrG,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;EACpG,QAAQ,EAAE,OA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C,CAAC,SAAS,CAAC,CAAC,SAAS;EACxE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CACnE,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
|
|
@@ -5,7 +5,7 @@ const OmnisendCreateProductCategoryInput = zod.z.object({
|
|
|
5
5
|
title: zod.z.string().describe("Title/name of the product category. Maximum 100 characters."),
|
|
6
6
|
categoryID: zod.z.string().describe("Unique identifier for the product category. Must be between 1 and 100 characters.")
|
|
7
7
|
});
|
|
8
|
-
const OmnisendCreateProductCategoryOutput = zod.z.object({ categoryID: zod.z.string().describe("The unique identifier of the created product category.").nullable() });
|
|
8
|
+
const OmnisendCreateProductCategoryOutput = zod.z.object({ categoryID: zod.z.string().describe("The unique identifier of the created product category.").nullable() }).passthrough();
|
|
9
9
|
const omnisendCreateProductCategory = require_action.action("OMNISEND_CREATE_PRODUCT_CATEGORY", {
|
|
10
10
|
slug: "omnisend-create-product-category",
|
|
11
11
|
name: "Create Product Category",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-product-category.cjs","names":["z","action"],"sources":["../../src/actions/create-product-category.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OmnisendCreateProductCategoryInput = z.object({\n title: z.string().describe(\"Title/name of the product category. Maximum 100 characters.\"),\n categoryID: z.string().describe(\"Unique identifier for the product category. Must be between 1 and 100 characters.\"),\n});\nexport const OmnisendCreateProductCategoryOutput = z.object({\n categoryID: z.string().describe(\"The unique identifier of the created product category.\").nullable(),\n});\n\nexport const omnisendCreateProductCategory = action(\"OMNISEND_CREATE_PRODUCT_CATEGORY\", {\n slug: \"omnisend-create-product-category\",\n name: \"Create Product Category\",\n description: \"Tool to create a new product category in the Omnisend catalog. Use when organizing products into categories.\",\n input: OmnisendCreateProductCategoryInput,\n output: OmnisendCreateProductCategoryOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qCAAqCA,IAAAA,EAAE,OAAO;CACzD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D;CACxF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mFAAmF;AACrH,CAAC;AACD,MAAa,sCAAsCA,IAAAA,EAAE,OAAO,EAC1D,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,EACrG,CAAC;
|
|
1
|
+
{"version":3,"file":"create-product-category.cjs","names":["z","action"],"sources":["../../src/actions/create-product-category.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OmnisendCreateProductCategoryInput = z.object({\n title: z.string().describe(\"Title/name of the product category. Maximum 100 characters.\"),\n categoryID: z.string().describe(\"Unique identifier for the product category. Must be between 1 and 100 characters.\"),\n});\nexport const OmnisendCreateProductCategoryOutput = z.object({\n categoryID: z.string().describe(\"The unique identifier of the created product category.\").nullable(),\n}).passthrough();\n\nexport const omnisendCreateProductCategory = action(\"OMNISEND_CREATE_PRODUCT_CATEGORY\", {\n slug: \"omnisend-create-product-category\",\n name: \"Create Product Category\",\n description: \"Tool to create a new product category in the Omnisend catalog. Use when organizing products into categories.\",\n input: OmnisendCreateProductCategoryInput,\n output: OmnisendCreateProductCategoryOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qCAAqCA,IAAAA,EAAE,OAAO;CACzD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D;CACxF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mFAAmF;AACrH,CAAC;AACD,MAAa,sCAAsCA,IAAAA,EAAE,OAAO,EAC1D,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,EACrG,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,gCAAgCC,eAAAA,OAAO,oCAAoC;CACtF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -7,7 +7,7 @@ declare const OmnisendCreateProductCategoryInput: z.ZodObject<{
|
|
|
7
7
|
}, z.core.$strip>;
|
|
8
8
|
declare const OmnisendCreateProductCategoryOutput: z.ZodObject<{
|
|
9
9
|
categoryID: z.ZodNullable<z.ZodString>;
|
|
10
|
-
}, z.core.$
|
|
10
|
+
}, z.core.$loose>;
|
|
11
11
|
declare const omnisendCreateProductCategory: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
12
12
|
title: string;
|
|
13
13
|
categoryID: string;
|
|
@@ -7,7 +7,7 @@ declare const OmnisendCreateProductCategoryInput: z.ZodObject<{
|
|
|
7
7
|
}, z.core.$strip>;
|
|
8
8
|
declare const OmnisendCreateProductCategoryOutput: z.ZodObject<{
|
|
9
9
|
categoryID: z.ZodNullable<z.ZodString>;
|
|
10
|
-
}, z.core.$
|
|
10
|
+
}, z.core.$loose>;
|
|
11
11
|
declare const omnisendCreateProductCategory: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
12
12
|
title: string;
|
|
13
13
|
categoryID: string;
|
|
@@ -8,7 +8,7 @@ const omnisendCreateProductCategory = action("OMNISEND_CREATE_PRODUCT_CATEGORY",
|
|
|
8
8
|
title: z.string().describe("Title/name of the product category. Maximum 100 characters."),
|
|
9
9
|
categoryID: z.string().describe("Unique identifier for the product category. Must be between 1 and 100 characters.")
|
|
10
10
|
}),
|
|
11
|
-
output: z.object({ categoryID: z.string().describe("The unique identifier of the created product category.").nullable() })
|
|
11
|
+
output: z.object({ categoryID: z.string().describe("The unique identifier of the created product category.").nullable() }).passthrough()
|
|
12
12
|
});
|
|
13
13
|
//#endregion
|
|
14
14
|
export { omnisendCreateProductCategory };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-product-category.mjs","names":[],"sources":["../../src/actions/create-product-category.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OmnisendCreateProductCategoryInput = z.object({\n title: z.string().describe(\"Title/name of the product category. Maximum 100 characters.\"),\n categoryID: z.string().describe(\"Unique identifier for the product category. Must be between 1 and 100 characters.\"),\n});\nexport const OmnisendCreateProductCategoryOutput = z.object({\n categoryID: z.string().describe(\"The unique identifier of the created product category.\").nullable(),\n});\n\nexport const omnisendCreateProductCategory = action(\"OMNISEND_CREATE_PRODUCT_CATEGORY\", {\n slug: \"omnisend-create-product-category\",\n name: \"Create Product Category\",\n description: \"Tool to create a new product category in the Omnisend catalog. Use when organizing products into categories.\",\n input: OmnisendCreateProductCategoryInput,\n output: OmnisendCreateProductCategoryOutput,\n});\n"],"mappings":";;AAYA,MAAa,gCAAgC,OAAO,oCAAoC;CACtF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAZgD,EAAE,OAAO;EACzD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D;EACxF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,mFAAmF;CACrH,CASS;CACP,QATiD,EAAE,OAAO,EAC1D,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,EACrG,
|
|
1
|
+
{"version":3,"file":"create-product-category.mjs","names":[],"sources":["../../src/actions/create-product-category.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OmnisendCreateProductCategoryInput = z.object({\n title: z.string().describe(\"Title/name of the product category. Maximum 100 characters.\"),\n categoryID: z.string().describe(\"Unique identifier for the product category. Must be between 1 and 100 characters.\"),\n});\nexport const OmnisendCreateProductCategoryOutput = z.object({\n categoryID: z.string().describe(\"The unique identifier of the created product category.\").nullable(),\n}).passthrough();\n\nexport const omnisendCreateProductCategory = action(\"OMNISEND_CREATE_PRODUCT_CATEGORY\", {\n slug: \"omnisend-create-product-category\",\n name: \"Create Product Category\",\n description: \"Tool to create a new product category in the Omnisend catalog. Use when organizing products into categories.\",\n input: OmnisendCreateProductCategoryInput,\n output: OmnisendCreateProductCategoryOutput,\n});\n"],"mappings":";;AAYA,MAAa,gCAAgC,OAAO,oCAAoC;CACtF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAZgD,EAAE,OAAO;EACzD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D;EACxF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,mFAAmF;CACrH,CASS;CACP,QATiD,EAAE,OAAO,EAC1D,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,EACrG,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
|
|
@@ -30,14 +30,14 @@ const OmnisendCreateProductInput = zod.z.object({
|
|
|
30
30
|
description: zod.z.string().describe("Variant description.").optional(),
|
|
31
31
|
defaultImageUrl: zod.z.string().describe("Primary image URL for this variant.").optional(),
|
|
32
32
|
strikeThroughPrice: zod.z.number().describe("Original price before discount for displaying strike-through pricing.").optional()
|
|
33
|
-
}).describe("Product variant details for creation.")).describe("Product variants with their own prices and SKUs. At least one variant is required (min 1, max 500 items)."),
|
|
33
|
+
}).passthrough().describe("Product variant details for creation.")).describe("Product variants with their own prices and SKUs. At least one variant is required (min 1, max 500 items)."),
|
|
34
34
|
createdAt: zod.z.string().describe("Product creation timestamp in ISO 8601 format (e.g., 2021-01-01T00:00:00Z).").optional(),
|
|
35
35
|
updatedAt: zod.z.string().describe("Last update timestamp in ISO 8601 format.").optional(),
|
|
36
36
|
categoryIDs: zod.z.array(zod.z.string()).describe("List of category IDs this product belongs to (max 100 items).").optional(),
|
|
37
37
|
description: zod.z.string().describe("Short description of the product. Can be used in the email body.").optional(),
|
|
38
38
|
defaultImageUrl: zod.z.string().describe("Primary image URL for the product. Recommended if more than one image is needed.").optional()
|
|
39
39
|
}).describe("Request schema for creating a product in Omnisend.");
|
|
40
|
-
const OmnisendCreateProductOutput = zod.z.object({ id: zod.z.string().describe("The unique identifier of the created product.").nullable() }).describe("Response schema after creating a product.");
|
|
40
|
+
const OmnisendCreateProductOutput = zod.z.object({ id: zod.z.string().describe("The unique identifier of the created product.").nullable() }).passthrough().describe("Response schema after creating a product.");
|
|
41
41
|
const omnisendCreateProduct = require_action.action("OMNISEND_CREATE_PRODUCT", {
|
|
42
42
|
slug: "omnisend-create-product",
|
|
43
43
|
name: "Create Product",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-product.cjs","names":["z","action"],"sources":["../../src/actions/create-product.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OmnisendCreateProductInput = z.object({\n id: z.string().describe(\"Unique product identifier from your store. Must be unique across all products.\"),\n url: z.string().describe(\"URL to the product page on your website.\"),\n tags: z.array(z.string()).describe(\"Tags to categorize the product for filtering and organization (max 100 items).\").optional(),\n type: z.string().describe(\"Product type to categorize products (e.g., 'Electronics', 'Clothing').\").optional(),\n title: z.string().describe(\"Product title displayed to customers.\"),\n images: z.array(z.string()).describe(\"Additional product image URLs beyond the default image (max 300 items).\").optional(),\n status: z.enum([\"inStock\", \"outOfStock\", \"notAvailable\"]).describe(\"Overall product availability status. Keep in sync with your shop to avoid sending out-of-stock products.\"),\n vendor: z.string().describe(\"Manufacturer or brand of the product.\").optional(),\n currency: z.string().describe(\"ISO 4217 currency code (e.g., USD, EUR, GBP).\"),\n variants: z.array(z.object({\n id: z.string().describe(\"Unique variant identifier from your store.\"),\n sku: z.string().describe(\"Stock keeping unit (SKU) for inventory tracking.\").optional(),\n url: z.string().describe(\"Product page URL for this variant.\"),\n price: z.number().describe(\"Variant price as a decimal number.\"),\n title: z.string().describe(\"Variant title.\"),\n images: z.array(z.string()).describe(\"Additional image URLs for this variant (max 300 items).\").optional(),\n status: z.enum([\"inStock\", \"outOfStock\", \"notAvailable\"]).describe(\"Stock status for this variant.\"),\n description: z.string().describe(\"Variant description.\").optional(),\n defaultImageUrl: z.string().describe(\"Primary image URL for this variant.\").optional(),\n strikeThroughPrice: z.number().describe(\"Original price before discount for displaying strike-through pricing.\").optional(),\n}).describe(\"Product variant details for creation.\")).describe(\"Product variants with their own prices and SKUs. At least one variant is required (min 1, max 500 items).\"),\n createdAt: z.string().describe(\"Product creation timestamp in ISO 8601 format (e.g., 2021-01-01T00:00:00Z).\").optional(),\n updatedAt: z.string().describe(\"Last update timestamp in ISO 8601 format.\").optional(),\n categoryIDs: z.array(z.string()).describe(\"List of category IDs this product belongs to (max 100 items).\").optional(),\n description: z.string().describe(\"Short description of the product. Can be used in the email body.\").optional(),\n defaultImageUrl: z.string().describe(\"Primary image URL for the product. Recommended if more than one image is needed.\").optional(),\n}).describe(\"Request schema for creating a product in Omnisend.\");\nexport const OmnisendCreateProductOutput = z.object({\n id: z.string().describe(\"The unique identifier of the created product.\").nullable(),\n}).describe(\"Response schema after creating a product.\");\n\nexport const omnisendCreateProduct = action(\"OMNISEND_CREATE_PRODUCT\", {\n slug: \"omnisend-create-product\",\n name: \"Create Product\",\n description: \"Tool to create a new product in the Omnisend product catalog. Use when adding products for email campaigns or syncing inventory.\",\n input: OmnisendCreateProductInput,\n output: OmnisendCreateProductOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gFAAgF;CACxG,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C;CACnE,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,gFAAgF,CAAC,CAAC,SAAS;CAC9H,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS;CAC7G,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;CAClE,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS;CACzH,QAAQA,IAAAA,EAAE,KAAK;EAAC;EAAW;EAAc;CAAc,CAAC,CAAC,CAAC,SAAS,0GAA0G;CAC7K,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAC9E,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;CAC7E,UAAUA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EAC3B,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C;EACpE,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;EACtF,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC;EAC7D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC;EAC/D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB;EAC3C,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;EACzG,QAAQA,IAAAA,EAAE,KAAK;GAAC;GAAW;GAAc;EAAc,CAAC,CAAC,CAAC,SAAS,gCAAgC;EACnG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;EAClE,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;EACrF,oBAAoBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS;CAC5H,CAAC,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,CAAC,SAAS,2GAA2G;
|
|
1
|
+
{"version":3,"file":"create-product.cjs","names":["z","action"],"sources":["../../src/actions/create-product.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OmnisendCreateProductInput = z.object({\n id: z.string().describe(\"Unique product identifier from your store. Must be unique across all products.\"),\n url: z.string().describe(\"URL to the product page on your website.\"),\n tags: z.array(z.string()).describe(\"Tags to categorize the product for filtering and organization (max 100 items).\").optional(),\n type: z.string().describe(\"Product type to categorize products (e.g., 'Electronics', 'Clothing').\").optional(),\n title: z.string().describe(\"Product title displayed to customers.\"),\n images: z.array(z.string()).describe(\"Additional product image URLs beyond the default image (max 300 items).\").optional(),\n status: z.enum([\"inStock\", \"outOfStock\", \"notAvailable\"]).describe(\"Overall product availability status. Keep in sync with your shop to avoid sending out-of-stock products.\"),\n vendor: z.string().describe(\"Manufacturer or brand of the product.\").optional(),\n currency: z.string().describe(\"ISO 4217 currency code (e.g., USD, EUR, GBP).\"),\n variants: z.array(z.object({\n id: z.string().describe(\"Unique variant identifier from your store.\"),\n sku: z.string().describe(\"Stock keeping unit (SKU) for inventory tracking.\").optional(),\n url: z.string().describe(\"Product page URL for this variant.\"),\n price: z.number().describe(\"Variant price as a decimal number.\"),\n title: z.string().describe(\"Variant title.\"),\n images: z.array(z.string()).describe(\"Additional image URLs for this variant (max 300 items).\").optional(),\n status: z.enum([\"inStock\", \"outOfStock\", \"notAvailable\"]).describe(\"Stock status for this variant.\"),\n description: z.string().describe(\"Variant description.\").optional(),\n defaultImageUrl: z.string().describe(\"Primary image URL for this variant.\").optional(),\n strikeThroughPrice: z.number().describe(\"Original price before discount for displaying strike-through pricing.\").optional(),\n}).passthrough().describe(\"Product variant details for creation.\")).describe(\"Product variants with their own prices and SKUs. At least one variant is required (min 1, max 500 items).\"),\n createdAt: z.string().describe(\"Product creation timestamp in ISO 8601 format (e.g., 2021-01-01T00:00:00Z).\").optional(),\n updatedAt: z.string().describe(\"Last update timestamp in ISO 8601 format.\").optional(),\n categoryIDs: z.array(z.string()).describe(\"List of category IDs this product belongs to (max 100 items).\").optional(),\n description: z.string().describe(\"Short description of the product. Can be used in the email body.\").optional(),\n defaultImageUrl: z.string().describe(\"Primary image URL for the product. Recommended if more than one image is needed.\").optional(),\n}).describe(\"Request schema for creating a product in Omnisend.\");\nexport const OmnisendCreateProductOutput = z.object({\n id: z.string().describe(\"The unique identifier of the created product.\").nullable(),\n}).passthrough().describe(\"Response schema after creating a product.\");\n\nexport const omnisendCreateProduct = action(\"OMNISEND_CREATE_PRODUCT\", {\n slug: \"omnisend-create-product\",\n name: \"Create Product\",\n description: \"Tool to create a new product in the Omnisend product catalog. Use when adding products for email campaigns or syncing inventory.\",\n input: OmnisendCreateProductInput,\n output: OmnisendCreateProductOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gFAAgF;CACxG,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C;CACnE,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,gFAAgF,CAAC,CAAC,SAAS;CAC9H,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS;CAC7G,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;CAClE,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS;CACzH,QAAQA,IAAAA,EAAE,KAAK;EAAC;EAAW;EAAc;CAAc,CAAC,CAAC,CAAC,SAAS,0GAA0G;CAC7K,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAC9E,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;CAC7E,UAAUA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EAC3B,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C;EACpE,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;EACtF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,SAAS,+CAA+C,CAAC,CAAC,SAAS,EACpF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2CAA2C;AAErE,MAAa,wBAAwBC,eAAAA,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -30,7 +30,7 @@ declare const OmnisendCreateProductInput: z.ZodObject<{
|
|
|
30
30
|
description: z.ZodOptional<z.ZodString>;
|
|
31
31
|
defaultImageUrl: z.ZodOptional<z.ZodString>;
|
|
32
32
|
strikeThroughPrice: z.ZodOptional<z.ZodNumber>;
|
|
33
|
-
}, z.core.$
|
|
33
|
+
}, z.core.$loose>>;
|
|
34
34
|
createdAt: z.ZodOptional<z.ZodString>;
|
|
35
35
|
updatedAt: z.ZodOptional<z.ZodString>;
|
|
36
36
|
categoryIDs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -39,7 +39,7 @@ declare const OmnisendCreateProductInput: z.ZodObject<{
|
|
|
39
39
|
}, z.core.$strip>;
|
|
40
40
|
declare const OmnisendCreateProductOutput: z.ZodObject<{
|
|
41
41
|
id: z.ZodNullable<z.ZodString>;
|
|
42
|
-
}, z.core.$
|
|
42
|
+
}, z.core.$loose>;
|
|
43
43
|
declare const omnisendCreateProduct: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
44
44
|
id: string;
|
|
45
45
|
url: string;
|
|
@@ -47,6 +47,7 @@ declare const omnisendCreateProduct: import("@keystrokehq/action").WorkflowActio
|
|
|
47
47
|
status: "inStock" | "outOfStock" | "notAvailable";
|
|
48
48
|
currency: string;
|
|
49
49
|
variants: {
|
|
50
|
+
[x: string]: unknown;
|
|
50
51
|
id: string;
|
|
51
52
|
url: string;
|
|
52
53
|
price: number;
|
|
@@ -30,7 +30,7 @@ declare const OmnisendCreateProductInput: z.ZodObject<{
|
|
|
30
30
|
description: z.ZodOptional<z.ZodString>;
|
|
31
31
|
defaultImageUrl: z.ZodOptional<z.ZodString>;
|
|
32
32
|
strikeThroughPrice: z.ZodOptional<z.ZodNumber>;
|
|
33
|
-
}, z.core.$
|
|
33
|
+
}, z.core.$loose>>;
|
|
34
34
|
createdAt: z.ZodOptional<z.ZodString>;
|
|
35
35
|
updatedAt: z.ZodOptional<z.ZodString>;
|
|
36
36
|
categoryIDs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -39,7 +39,7 @@ declare const OmnisendCreateProductInput: z.ZodObject<{
|
|
|
39
39
|
}, z.core.$strip>;
|
|
40
40
|
declare const OmnisendCreateProductOutput: z.ZodObject<{
|
|
41
41
|
id: z.ZodNullable<z.ZodString>;
|
|
42
|
-
}, z.core.$
|
|
42
|
+
}, z.core.$loose>;
|
|
43
43
|
declare const omnisendCreateProduct: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
44
44
|
id: string;
|
|
45
45
|
url: string;
|
|
@@ -47,6 +47,7 @@ declare const omnisendCreateProduct: import("@keystrokehq/action").WorkflowActio
|
|
|
47
47
|
status: "inStock" | "outOfStock" | "notAvailable";
|
|
48
48
|
currency: string;
|
|
49
49
|
variants: {
|
|
50
|
+
[x: string]: unknown;
|
|
50
51
|
id: string;
|
|
51
52
|
url: string;
|
|
52
53
|
price: number;
|
|
@@ -33,14 +33,14 @@ const omnisendCreateProduct = action("OMNISEND_CREATE_PRODUCT", {
|
|
|
33
33
|
description: z.string().describe("Variant description.").optional(),
|
|
34
34
|
defaultImageUrl: z.string().describe("Primary image URL for this variant.").optional(),
|
|
35
35
|
strikeThroughPrice: z.number().describe("Original price before discount for displaying strike-through pricing.").optional()
|
|
36
|
-
}).describe("Product variant details for creation.")).describe("Product variants with their own prices and SKUs. At least one variant is required (min 1, max 500 items)."),
|
|
36
|
+
}).passthrough().describe("Product variant details for creation.")).describe("Product variants with their own prices and SKUs. At least one variant is required (min 1, max 500 items)."),
|
|
37
37
|
createdAt: z.string().describe("Product creation timestamp in ISO 8601 format (e.g., 2021-01-01T00:00:00Z).").optional(),
|
|
38
38
|
updatedAt: z.string().describe("Last update timestamp in ISO 8601 format.").optional(),
|
|
39
39
|
categoryIDs: z.array(z.string()).describe("List of category IDs this product belongs to (max 100 items).").optional(),
|
|
40
40
|
description: z.string().describe("Short description of the product. Can be used in the email body.").optional(),
|
|
41
41
|
defaultImageUrl: z.string().describe("Primary image URL for the product. Recommended if more than one image is needed.").optional()
|
|
42
42
|
}).describe("Request schema for creating a product in Omnisend."),
|
|
43
|
-
output: z.object({ id: z.string().describe("The unique identifier of the created product.").nullable() }).describe("Response schema after creating a product.")
|
|
43
|
+
output: z.object({ id: z.string().describe("The unique identifier of the created product.").nullable() }).passthrough().describe("Response schema after creating a product.")
|
|
44
44
|
});
|
|
45
45
|
//#endregion
|
|
46
46
|
export { omnisendCreateProduct };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-product.mjs","names":[],"sources":["../../src/actions/create-product.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OmnisendCreateProductInput = z.object({\n id: z.string().describe(\"Unique product identifier from your store. Must be unique across all products.\"),\n url: z.string().describe(\"URL to the product page on your website.\"),\n tags: z.array(z.string()).describe(\"Tags to categorize the product for filtering and organization (max 100 items).\").optional(),\n type: z.string().describe(\"Product type to categorize products (e.g., 'Electronics', 'Clothing').\").optional(),\n title: z.string().describe(\"Product title displayed to customers.\"),\n images: z.array(z.string()).describe(\"Additional product image URLs beyond the default image (max 300 items).\").optional(),\n status: z.enum([\"inStock\", \"outOfStock\", \"notAvailable\"]).describe(\"Overall product availability status. Keep in sync with your shop to avoid sending out-of-stock products.\"),\n vendor: z.string().describe(\"Manufacturer or brand of the product.\").optional(),\n currency: z.string().describe(\"ISO 4217 currency code (e.g., USD, EUR, GBP).\"),\n variants: z.array(z.object({\n id: z.string().describe(\"Unique variant identifier from your store.\"),\n sku: z.string().describe(\"Stock keeping unit (SKU) for inventory tracking.\").optional(),\n url: z.string().describe(\"Product page URL for this variant.\"),\n price: z.number().describe(\"Variant price as a decimal number.\"),\n title: z.string().describe(\"Variant title.\"),\n images: z.array(z.string()).describe(\"Additional image URLs for this variant (max 300 items).\").optional(),\n status: z.enum([\"inStock\", \"outOfStock\", \"notAvailable\"]).describe(\"Stock status for this variant.\"),\n description: z.string().describe(\"Variant description.\").optional(),\n defaultImageUrl: z.string().describe(\"Primary image URL for this variant.\").optional(),\n strikeThroughPrice: z.number().describe(\"Original price before discount for displaying strike-through pricing.\").optional(),\n}).describe(\"Product variant details for creation.\")).describe(\"Product variants with their own prices and SKUs. At least one variant is required (min 1, max 500 items).\"),\n createdAt: z.string().describe(\"Product creation timestamp in ISO 8601 format (e.g., 2021-01-01T00:00:00Z).\").optional(),\n updatedAt: z.string().describe(\"Last update timestamp in ISO 8601 format.\").optional(),\n categoryIDs: z.array(z.string()).describe(\"List of category IDs this product belongs to (max 100 items).\").optional(),\n description: z.string().describe(\"Short description of the product. Can be used in the email body.\").optional(),\n defaultImageUrl: z.string().describe(\"Primary image URL for the product. Recommended if more than one image is needed.\").optional(),\n}).describe(\"Request schema for creating a product in Omnisend.\");\nexport const OmnisendCreateProductOutput = z.object({\n id: z.string().describe(\"The unique identifier of the created product.\").nullable(),\n}).describe(\"Response schema after creating a product.\");\n\nexport const omnisendCreateProduct = action(\"OMNISEND_CREATE_PRODUCT\", {\n slug: \"omnisend-create-product\",\n name: \"Create Product\",\n description: \"Tool to create a new product in the Omnisend product catalog. Use when adding products for email campaigns or syncing inventory.\",\n input: OmnisendCreateProductInput,\n output: OmnisendCreateProductOutput,\n});\n"],"mappings":";;AAoCA,MAAa,wBAAwB,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OApCwC,EAAE,OAAO;EACjD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,gFAAgF;EACxG,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C;EACnE,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SA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":"create-product.mjs","names":[],"sources":["../../src/actions/create-product.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OmnisendCreateProductInput = z.object({\n id: z.string().describe(\"Unique product identifier from your store. Must be unique across all products.\"),\n url: z.string().describe(\"URL to the product page on your website.\"),\n tags: z.array(z.string()).describe(\"Tags to categorize the product for filtering and organization (max 100 items).\").optional(),\n type: z.string().describe(\"Product type to categorize products (e.g., 'Electronics', 'Clothing').\").optional(),\n title: z.string().describe(\"Product title displayed to customers.\"),\n images: z.array(z.string()).describe(\"Additional product image URLs beyond the default image (max 300 items).\").optional(),\n status: z.enum([\"inStock\", \"outOfStock\", \"notAvailable\"]).describe(\"Overall product availability status. Keep in sync with your shop to avoid sending out-of-stock products.\"),\n vendor: z.string().describe(\"Manufacturer or brand of the product.\").optional(),\n currency: z.string().describe(\"ISO 4217 currency code (e.g., USD, EUR, GBP).\"),\n variants: z.array(z.object({\n id: z.string().describe(\"Unique variant identifier from your store.\"),\n sku: z.string().describe(\"Stock keeping unit (SKU) for inventory tracking.\").optional(),\n url: z.string().describe(\"Product page URL for this variant.\"),\n price: z.number().describe(\"Variant price as a decimal number.\"),\n title: z.string().describe(\"Variant title.\"),\n images: z.array(z.string()).describe(\"Additional image URLs for this variant (max 300 items).\").optional(),\n status: z.enum([\"inStock\", \"outOfStock\", \"notAvailable\"]).describe(\"Stock status for this variant.\"),\n description: z.string().describe(\"Variant description.\").optional(),\n defaultImageUrl: z.string().describe(\"Primary image URL for this variant.\").optional(),\n strikeThroughPrice: z.number().describe(\"Original price before discount for displaying strike-through pricing.\").optional(),\n}).passthrough().describe(\"Product variant details for creation.\")).describe(\"Product variants with their own prices and SKUs. At least one variant is required (min 1, max 500 items).\"),\n createdAt: z.string().describe(\"Product creation timestamp in ISO 8601 format (e.g., 2021-01-01T00:00:00Z).\").optional(),\n updatedAt: z.string().describe(\"Last update timestamp in ISO 8601 format.\").optional(),\n categoryIDs: z.array(z.string()).describe(\"List of category IDs this product belongs to (max 100 items).\").optional(),\n description: z.string().describe(\"Short description of the product. Can be used in the email body.\").optional(),\n defaultImageUrl: z.string().describe(\"Primary image URL for the product. Recommended if more than one image is needed.\").optional(),\n}).describe(\"Request schema for creating a product in Omnisend.\");\nexport const OmnisendCreateProductOutput = z.object({\n id: z.string().describe(\"The unique identifier of the created product.\").nullable(),\n}).passthrough().describe(\"Response schema after creating a product.\");\n\nexport const omnisendCreateProduct = action(\"OMNISEND_CREATE_PRODUCT\", {\n slug: \"omnisend-create-product\",\n name: \"Create Product\",\n description: \"Tool to create a new product in the Omnisend product catalog. Use when adding products for email campaigns or syncing inventory.\",\n input: OmnisendCreateProductInput,\n output: OmnisendCreateProductOutput,\n});\n"],"mappings":";;AAoCA,MAAa,wBAAwB,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OApCwC,EAAE,OAAO;EACjD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,gFAAgF;EACxG,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C;EACnE,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,gFAAgF,CAAC,CAAC,SAAS;EAC9H,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS;EAC7G,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;EAClE,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS;EACzH,QAAQ,EAAE,KAAK;GAAC;GAAW;GAAc;EAAc,CAAC,CAAC,CAAC,SAAS,0GAA0G;EAC7K,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;EAC9E,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;EAC7E,UAAU,EAAE,MAAM,EAAE,OAAO;GAC3B,IAAI,EAAE,OAAO,CAAC,CAAC,SA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C,CAAC,SAAS,2CAOhB;AACV,CAAC"}
|
|
@@ -2,7 +2,7 @@ const require_action = require("../action.cjs");
|
|
|
2
2
|
let zod = require("zod");
|
|
3
3
|
//#region src/actions/delete-cart.ts
|
|
4
4
|
const OmnisendDeleteCartInput = zod.z.object({ cartID: zod.z.string().describe("Unique identifier of the cart to delete.") });
|
|
5
|
-
const OmnisendDeleteCartOutput = zod.z.
|
|
5
|
+
const OmnisendDeleteCartOutput = zod.z.record(zod.z.string(), zod.z.unknown()).describe("Empty response for successful deletion (204 No Content).");
|
|
6
6
|
const omnisendDeleteCart = require_action.action("OMNISEND_DELETE_CART", {
|
|
7
7
|
slug: "omnisend-delete-cart",
|
|
8
8
|
name: "Delete Cart",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-cart.cjs","names":["z","action"],"sources":["../../src/actions/delete-cart.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OmnisendDeleteCartInput = z.object({\n cartID: z.string().describe(\"Unique identifier of the cart to delete.\"),\n});\nexport const OmnisendDeleteCartOutput = z.
|
|
1
|
+
{"version":3,"file":"delete-cart.cjs","names":["z","action"],"sources":["../../src/actions/delete-cart.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OmnisendDeleteCartInput = z.object({\n cartID: z.string().describe(\"Unique identifier of the cart to delete.\"),\n});\nexport const OmnisendDeleteCartOutput = z.record(z.string(), z.unknown()).describe(\"Empty response for successful deletion (204 No Content).\");\n\nexport const omnisendDeleteCart = action(\"OMNISEND_DELETE_CART\", {\n slug: \"omnisend-delete-cart\",\n name: \"Delete Cart\",\n description: \"Tool to delete a cart from Omnisend by its ID (v3 API). Use when you need to remove an abandoned or expired cart from the system.\",\n input: OmnisendDeleteCartInput,\n output: OmnisendDeleteCartOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0BA,IAAAA,EAAE,OAAO,EAC9C,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,EACxE,CAAC;AACD,MAAa,2BAA2BA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,0DAA0D;AAE7I,MAAa,qBAAqBC,eAAAA,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -4,7 +4,7 @@ import { z } from "zod";
|
|
|
4
4
|
declare const OmnisendDeleteCartInput: z.ZodObject<{
|
|
5
5
|
cartID: z.ZodString;
|
|
6
6
|
}, z.core.$strip>;
|
|
7
|
-
declare const OmnisendDeleteCartOutput: z.
|
|
7
|
+
declare const OmnisendDeleteCartOutput: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
8
8
|
declare const omnisendDeleteCart: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
9
9
|
cartID: string;
|
|
10
10
|
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-cart.d.cts","names":[],"sources":["../../src/actions/delete-cart.ts"],"mappings":";;;cAIa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;cAGvB,wBAAA,EAAwB,CAAA,CAAA,SAAA,
|
|
1
|
+
{"version":3,"file":"delete-cart.d.cts","names":[],"sources":["../../src/actions/delete-cart.ts"],"mappings":";;;cAIa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;cAGvB,wBAAA,EAAwB,CAAA,CAAA,SAAA,CAAA,CAAA,CAAA,SAAA,EAAA,CAAA,CAAA,UAAA;AAAA,cAExB,kBAAA,gCAAkB,wBAAA"}
|
|
@@ -4,7 +4,7 @@ import { z } from "zod";
|
|
|
4
4
|
declare const OmnisendDeleteCartInput: z.ZodObject<{
|
|
5
5
|
cartID: z.ZodString;
|
|
6
6
|
}, z.core.$strip>;
|
|
7
|
-
declare const OmnisendDeleteCartOutput: z.
|
|
7
|
+
declare const OmnisendDeleteCartOutput: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
8
8
|
declare const omnisendDeleteCart: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
9
9
|
cartID: string;
|
|
10
10
|
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-cart.d.mts","names":[],"sources":["../../src/actions/delete-cart.ts"],"mappings":";;;cAIa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;cAGvB,wBAAA,EAAwB,CAAA,CAAA,SAAA,
|
|
1
|
+
{"version":3,"file":"delete-cart.d.mts","names":[],"sources":["../../src/actions/delete-cart.ts"],"mappings":";;;cAIa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;cAGvB,wBAAA,EAAwB,CAAA,CAAA,SAAA,CAAA,CAAA,CAAA,SAAA,EAAA,CAAA,CAAA,UAAA;AAAA,cAExB,kBAAA,gCAAkB,wBAAA"}
|
|
@@ -5,7 +5,7 @@ const omnisendDeleteCart = action("OMNISEND_DELETE_CART", {
|
|
|
5
5
|
name: "Delete Cart",
|
|
6
6
|
description: "Tool to delete a cart from Omnisend by its ID (v3 API). Use when you need to remove an abandoned or expired cart from the system.",
|
|
7
7
|
input: z.object({ cartID: z.string().describe("Unique identifier of the cart to delete.") }),
|
|
8
|
-
output: z.
|
|
8
|
+
output: z.record(z.string(), z.unknown()).describe("Empty response for successful deletion (204 No Content).")
|
|
9
9
|
});
|
|
10
10
|
//#endregion
|
|
11
11
|
export { omnisendDeleteCart };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-cart.mjs","names":[],"sources":["../../src/actions/delete-cart.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OmnisendDeleteCartInput = z.object({\n cartID: z.string().describe(\"Unique identifier of the cart to delete.\"),\n});\nexport const OmnisendDeleteCartOutput = z.
|
|
1
|
+
{"version":3,"file":"delete-cart.mjs","names":[],"sources":["../../src/actions/delete-cart.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OmnisendDeleteCartInput = z.object({\n cartID: z.string().describe(\"Unique identifier of the cart to delete.\"),\n});\nexport const OmnisendDeleteCartOutput = z.record(z.string(), z.unknown()).describe(\"Empty response for successful deletion (204 No Content).\");\n\nexport const omnisendDeleteCart = action(\"OMNISEND_DELETE_CART\", {\n slug: \"omnisend-delete-cart\",\n name: \"Delete Cart\",\n description: \"Tool to delete a cart from Omnisend by its ID (v3 API). Use when you need to remove an abandoned or expired cart from the system.\",\n input: OmnisendDeleteCartInput,\n output: OmnisendDeleteCartOutput,\n});\n"],"mappings":";;AASA,MAAa,qBAAqB,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OATqC,EAAE,OAAO,EAC9C,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,EACxE,CAOS;CACP,QAPsC,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,0DAOzE;AACV,CAAC"}
|