@keystrokehq/omnisend 0.1.0 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/action.cjs.map +1 -1
- package/dist/action.mjs.map +1 -1
- package/dist/actions/add-cart-product.cjs +5 -5
- package/dist/actions/add-cart-product.cjs.map +1 -1
- package/dist/actions/add-cart-product.d.cts +38 -3
- package/dist/actions/add-cart-product.d.cts.map +1 -1
- package/dist/actions/add-cart-product.d.mts +38 -3
- package/dist/actions/add-cart-product.d.mts.map +1 -1
- package/dist/actions/add-cart-product.mjs +5 -5
- package/dist/actions/add-cart-product.mjs.map +1 -1
- package/dist/actions/create-batch.cjs +6 -6
- package/dist/actions/create-batch.cjs.map +1 -1
- package/dist/actions/create-batch.d.cts +46 -3
- package/dist/actions/create-batch.d.cts.map +1 -1
- package/dist/actions/create-batch.d.mts +46 -3
- package/dist/actions/create-batch.d.mts.map +1 -1
- package/dist/actions/create-batch.mjs +6 -6
- package/dist/actions/create-batch.mjs.map +1 -1
- package/dist/actions/create-cart.cjs +3 -3
- package/dist/actions/create-cart.cjs.map +1 -1
- package/dist/actions/create-cart.d.cts +45 -3
- package/dist/actions/create-cart.d.cts.map +1 -1
- package/dist/actions/create-cart.d.mts +45 -3
- package/dist/actions/create-cart.d.mts.map +1 -1
- package/dist/actions/create-cart.mjs +3 -3
- 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 +11 -3
- package/dist/actions/create-category.d.cts.map +1 -1
- package/dist/actions/create-category.d.mts +11 -3
- package/dist/actions/create-category.d.mts.map +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 +4 -4
- package/dist/actions/create-or-update-contact.cjs.map +1 -1
- package/dist/actions/create-or-update-contact.d.cts +59 -3
- package/dist/actions/create-or-update-contact.d.cts.map +1 -1
- package/dist/actions/create-or-update-contact.d.mts +59 -3
- package/dist/actions/create-or-update-contact.d.mts.map +1 -1
- package/dist/actions/create-or-update-contact.mjs +4 -4
- package/dist/actions/create-or-update-contact.mjs.map +1 -1
- package/dist/actions/create-order.cjs +4 -4
- package/dist/actions/create-order.cjs.map +1 -1
- package/dist/actions/create-order.d.cts +165 -3
- package/dist/actions/create-order.d.cts.map +1 -1
- package/dist/actions/create-order.d.mts +165 -3
- package/dist/actions/create-order.d.mts.map +1 -1
- package/dist/actions/create-order.mjs +4 -4
- 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 +11 -3
- package/dist/actions/create-product-category.d.cts.map +1 -1
- package/dist/actions/create-product-category.d.mts +11 -3
- package/dist/actions/create-product-category.d.mts.map +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 +68 -3
- package/dist/actions/create-product.d.cts.map +1 -1
- package/dist/actions/create-product.d.mts +68 -3
- package/dist/actions/create-product.d.mts.map +1 -1
- 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 +7 -3
- package/dist/actions/delete-cart.d.cts.map +1 -1
- package/dist/actions/delete-cart.d.mts +7 -3
- 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 +7 -3
- package/dist/actions/delete-category.d.cts.map +1 -1
- package/dist/actions/delete-category.d.mts +7 -3
- 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 +7 -3
- package/dist/actions/delete-order.d.cts.map +1 -1
- package/dist/actions/delete-order.d.mts +7 -3
- 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 +7 -3
- package/dist/actions/delete-product-category.d.cts.map +1 -1
- package/dist/actions/delete-product-category.d.mts +7 -3
- 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 +7 -3
- package/dist/actions/delete-product.d.cts.map +1 -1
- package/dist/actions/delete-product.d.mts +7 -3
- 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 +16 -3
- package/dist/actions/get-batch-information.d.cts.map +1 -1
- package/dist/actions/get-batch-information.d.mts +16 -3
- package/dist/actions/get-batch-information.d.mts.map +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 +2 -2
- package/dist/actions/get-batch-item.cjs.map +1 -1
- package/dist/actions/get-batch-item.d.cts +19 -3
- package/dist/actions/get-batch-item.d.cts.map +1 -1
- package/dist/actions/get-batch-item.d.mts +19 -3
- package/dist/actions/get-batch-item.d.mts.map +1 -1
- package/dist/actions/get-batch-item.mjs +2 -2
- package/dist/actions/get-batch-item.mjs.map +1 -1
- package/dist/actions/get-batch-items.cjs +4 -4
- package/dist/actions/get-batch-items.cjs.map +1 -1
- package/dist/actions/get-batch-items.d.cts +18 -3
- package/dist/actions/get-batch-items.d.cts.map +1 -1
- package/dist/actions/get-batch-items.d.mts +18 -3
- package/dist/actions/get-batch-items.d.mts.map +1 -1
- package/dist/actions/get-batch-items.mjs +4 -4
- package/dist/actions/get-batch-items.mjs.map +1 -1
- package/dist/actions/get-batches.cjs +12 -12
- package/dist/actions/get-batches.cjs.map +1 -1
- package/dist/actions/get-batches.d.cts +33 -3
- package/dist/actions/get-batches.d.cts.map +1 -1
- package/dist/actions/get-batches.d.mts +33 -3
- package/dist/actions/get-batches.d.mts.map +1 -1
- package/dist/actions/get-batches.mjs +12 -12
- package/dist/actions/get-batches.mjs.map +1 -1
- package/dist/actions/get-brand.cjs +8 -8
- package/dist/actions/get-brand.cjs.map +1 -1
- package/dist/actions/get-brand.d.cts +11 -3
- package/dist/actions/get-brand.d.cts.map +1 -1
- package/dist/actions/get-brand.d.mts +11 -3
- package/dist/actions/get-brand.d.mts.map +1 -1
- package/dist/actions/get-brand.mjs +8 -8
- package/dist/actions/get-brand.mjs.map +1 -1
- package/dist/actions/get-cart.cjs +3 -3
- package/dist/actions/get-cart.cjs.map +1 -1
- package/dist/actions/get-cart.d.cts +31 -3
- package/dist/actions/get-cart.d.cts.map +1 -1
- package/dist/actions/get-cart.d.mts +31 -3
- package/dist/actions/get-cart.d.mts.map +1 -1
- package/dist/actions/get-cart.mjs +3 -3
- package/dist/actions/get-cart.mjs.map +1 -1
- package/dist/actions/get-category.cjs +5 -5
- package/dist/actions/get-category.cjs.map +1 -1
- package/dist/actions/get-category.d.cts +12 -3
- package/dist/actions/get-category.d.cts.map +1 -1
- package/dist/actions/get-category.d.mts +12 -3
- package/dist/actions/get-category.d.mts.map +1 -1
- package/dist/actions/get-category.mjs +5 -5
- package/dist/actions/get-category.mjs.map +1 -1
- package/dist/actions/get-contact.cjs +21 -21
- package/dist/actions/get-contact.cjs.map +1 -1
- package/dist/actions/get-contact.d.cts +47 -3
- package/dist/actions/get-contact.d.cts.map +1 -1
- package/dist/actions/get-contact.d.mts +47 -3
- package/dist/actions/get-contact.d.mts.map +1 -1
- package/dist/actions/get-contact.mjs +21 -21
- package/dist/actions/get-contact.mjs.map +1 -1
- package/dist/actions/get-order.cjs +9 -9
- package/dist/actions/get-order.cjs.map +1 -1
- package/dist/actions/get-order.d.cts +87 -3
- package/dist/actions/get-order.d.cts.map +1 -1
- package/dist/actions/get-order.d.mts +87 -3
- package/dist/actions/get-order.d.mts.map +1 -1
- package/dist/actions/get-order.mjs +9 -9
- package/dist/actions/get-order.mjs.map +1 -1
- package/dist/actions/get-product-category.cjs +3 -3
- package/dist/actions/get-product-category.cjs.map +1 -1
- package/dist/actions/get-product-category.d.cts +12 -3
- package/dist/actions/get-product-category.d.cts.map +1 -1
- package/dist/actions/get-product-category.d.mts +12 -3
- package/dist/actions/get-product-category.d.mts.map +1 -1
- package/dist/actions/get-product-category.mjs +3 -3
- package/dist/actions/get-product-category.mjs.map +1 -1
- package/dist/actions/get-product.cjs +11 -11
- package/dist/actions/get-product.cjs.map +1 -1
- package/dist/actions/get-product.d.cts +42 -3
- package/dist/actions/get-product.d.cts.map +1 -1
- package/dist/actions/get-product.d.mts +42 -3
- package/dist/actions/get-product.d.mts.map +1 -1
- package/dist/actions/get-product.mjs +11 -11
- package/dist/actions/get-product.mjs.map +1 -1
- package/dist/actions/list-campaigns.cjs +12 -12
- package/dist/actions/list-campaigns.cjs.map +1 -1
- package/dist/actions/list-campaigns.d.cts +57 -3
- package/dist/actions/list-campaigns.d.cts.map +1 -1
- package/dist/actions/list-campaigns.d.mts +57 -3
- package/dist/actions/list-campaigns.d.mts.map +1 -1
- package/dist/actions/list-campaigns.mjs +12 -12
- package/dist/actions/list-campaigns.mjs.map +1 -1
- package/dist/actions/list-carts.cjs +5 -5
- package/dist/actions/list-carts.cjs.map +1 -1
- package/dist/actions/list-carts.d.cts +46 -3
- package/dist/actions/list-carts.d.cts.map +1 -1
- package/dist/actions/list-carts.d.mts +46 -3
- package/dist/actions/list-carts.d.mts.map +1 -1
- package/dist/actions/list-carts.mjs +5 -5
- package/dist/actions/list-carts.mjs.map +1 -1
- package/dist/actions/list-categories.cjs +9 -9
- package/dist/actions/list-categories.cjs.map +1 -1
- package/dist/actions/list-categories.d.cts +24 -3
- package/dist/actions/list-categories.d.cts.map +1 -1
- package/dist/actions/list-categories.d.mts +24 -3
- package/dist/actions/list-categories.d.mts.map +1 -1
- package/dist/actions/list-categories.mjs +9 -9
- package/dist/actions/list-categories.mjs.map +1 -1
- package/dist/actions/list-contacts.cjs +23 -23
- package/dist/actions/list-contacts.cjs.map +1 -1
- package/dist/actions/list-contacts.d.cts +72 -3
- package/dist/actions/list-contacts.d.cts.map +1 -1
- package/dist/actions/list-contacts.d.mts +72 -3
- package/dist/actions/list-contacts.d.mts.map +1 -1
- package/dist/actions/list-contacts.mjs +23 -23
- 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 +18 -3
- package/dist/actions/list-events.d.cts.map +1 -1
- package/dist/actions/list-events.d.mts +18 -3
- package/dist/actions/list-events.d.mts.map +1 -1
- package/dist/actions/list-events.mjs +3 -3
- package/dist/actions/list-events.mjs.map +1 -1
- package/dist/actions/list-product-categories.cjs +7 -7
- package/dist/actions/list-product-categories.cjs.map +1 -1
- package/dist/actions/list-product-categories.d.cts +28 -3
- package/dist/actions/list-product-categories.d.cts.map +1 -1
- package/dist/actions/list-product-categories.d.mts +28 -3
- package/dist/actions/list-product-categories.d.mts.map +1 -1
- package/dist/actions/list-product-categories.mjs +7 -7
- package/dist/actions/list-product-categories.mjs.map +1 -1
- package/dist/actions/list-products.cjs +18 -18
- package/dist/actions/list-products.cjs.map +1 -1
- package/dist/actions/list-products.d.cts +58 -3
- package/dist/actions/list-products.d.cts.map +1 -1
- package/dist/actions/list-products.d.mts +58 -3
- package/dist/actions/list-products.d.mts.map +1 -1
- package/dist/actions/list-products.mjs +18 -18
- 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 +9 -3
- package/dist/actions/remove-cart-product.d.cts.map +1 -1
- package/dist/actions/remove-cart-product.d.mts +9 -3
- 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 +5 -5
- package/dist/actions/replace-cart-product.cjs.map +1 -1
- package/dist/actions/replace-cart-product.d.cts +38 -3
- package/dist/actions/replace-cart-product.d.cts.map +1 -1
- package/dist/actions/replace-cart-product.d.mts +38 -3
- package/dist/actions/replace-cart-product.d.mts.map +1 -1
- package/dist/actions/replace-cart-product.mjs +5 -5
- 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 +46 -3
- package/dist/actions/replace-cart.d.cts.map +1 -1
- package/dist/actions/replace-cart.d.mts +46 -3
- package/dist/actions/replace-cart.d.mts.map +1 -1
- 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 +11 -3
- package/dist/actions/replace-category.d.cts.map +1 -1
- package/dist/actions/replace-category.d.mts +11 -3
- package/dist/actions/replace-category.d.mts.map +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 +3 -3
- package/dist/actions/replace-order.cjs.map +1 -1
- package/dist/actions/replace-order.d.cts +136 -3
- package/dist/actions/replace-order.d.cts.map +1 -1
- package/dist/actions/replace-order.d.mts +136 -3
- package/dist/actions/replace-order.d.mts.map +1 -1
- package/dist/actions/replace-order.mjs +3 -3
- 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 +70 -3
- package/dist/actions/replace-product.d.cts.map +1 -1
- package/dist/actions/replace-product.d.mts +70 -3
- package/dist/actions/replace-product.d.mts.map +1 -1
- 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 +54 -3
- package/dist/actions/send-event.d.cts.map +1 -1
- package/dist/actions/send-event.d.mts +54 -3
- package/dist/actions/send-event.d.mts.map +1 -1
- package/dist/actions/send-event.mjs +3 -3
- package/dist/actions/send-event.mjs.map +1 -1
- package/dist/actions/update-cart-product.cjs +5 -5
- package/dist/actions/update-cart-product.cjs.map +1 -1
- package/dist/actions/update-cart-product.d.cts +38 -3
- package/dist/actions/update-cart-product.d.cts.map +1 -1
- package/dist/actions/update-cart-product.d.mts +38 -3
- package/dist/actions/update-cart-product.d.mts.map +1 -1
- package/dist/actions/update-cart-product.mjs +5 -5
- 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 +44 -3
- package/dist/actions/update-cart.d.cts.map +1 -1
- package/dist/actions/update-cart.d.mts +44 -3
- package/dist/actions/update-cart.d.mts.map +1 -1
- package/dist/actions/update-cart.mjs +2 -2
- package/dist/actions/update-cart.mjs.map +1 -1
- package/dist/actions/update-contact.cjs +4 -4
- package/dist/actions/update-contact.cjs.map +1 -1
- package/dist/actions/update-contact.d.cts +89 -3
- package/dist/actions/update-contact.d.cts.map +1 -1
- package/dist/actions/update-contact.d.mts +89 -3
- package/dist/actions/update-contact.d.mts.map +1 -1
- package/dist/actions/update-contact.mjs +4 -4
- package/dist/actions/update-contact.mjs.map +1 -1
- package/dist/actions/update-order-status.cjs +2 -2
- package/dist/actions/update-order-status.cjs.map +1 -1
- package/dist/actions/update-order-status.d.cts +27 -3
- package/dist/actions/update-order-status.d.cts.map +1 -1
- package/dist/actions/update-order-status.d.mts +27 -3
- package/dist/actions/update-order-status.d.mts.map +1 -1
- package/dist/actions/update-order-status.mjs +2 -2
- 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 +11 -3
- package/dist/actions/update-product-category.d.cts.map +1 -1
- package/dist/actions/update-product-category.d.mts +11 -3
- package/dist/actions/update-product-category.d.mts.map +1 -1
- package/dist/actions/update-product-category.mjs +1 -1
- package/dist/actions/update-product-category.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -1,9 +1,44 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/update-cart-product.d.ts
|
|
4
|
-
declare const OmnisendUpdateCartProductInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const OmnisendUpdateCartProductInput: z.ZodObject<{
|
|
5
|
+
sku: z.ZodOptional<z.ZodString>;
|
|
6
|
+
price: z.ZodOptional<z.ZodNumber>;
|
|
7
|
+
title: z.ZodOptional<z.ZodString>;
|
|
8
|
+
cart_id: z.ZodString;
|
|
9
|
+
currency: z.ZodString;
|
|
10
|
+
discount: z.ZodOptional<z.ZodNumber>;
|
|
11
|
+
quantity: z.ZodOptional<z.ZodNumber>;
|
|
12
|
+
image_url: z.ZodOptional<z.ZodString>;
|
|
13
|
+
old_price: z.ZodOptional<z.ZodNumber>;
|
|
14
|
+
product_id: z.ZodOptional<z.ZodString>;
|
|
15
|
+
variant_id: z.ZodOptional<z.ZodString>;
|
|
16
|
+
description: z.ZodOptional<z.ZodString>;
|
|
17
|
+
product_url: z.ZodOptional<z.ZodString>;
|
|
18
|
+
cart_product_id: z.ZodString;
|
|
19
|
+
}, z.core.$strip>;
|
|
20
|
+
declare const OmnisendUpdateCartProductOutput: z.ZodObject<{
|
|
21
|
+
cartID: z.ZodNullable<z.ZodString>;
|
|
22
|
+
productID: z.ZodNullable<z.ZodString>;
|
|
23
|
+
variantID: z.ZodNullable<z.ZodString>;
|
|
24
|
+
cartProductID: z.ZodNullable<z.ZodString>;
|
|
25
|
+
}, z.core.$loose>;
|
|
26
|
+
declare const omnisendUpdateCartProduct: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
27
|
+
cart_id: string;
|
|
28
|
+
currency: string;
|
|
29
|
+
cart_product_id: string;
|
|
30
|
+
sku?: string | undefined;
|
|
31
|
+
price?: number | undefined;
|
|
32
|
+
title?: string | undefined;
|
|
33
|
+
discount?: number | undefined;
|
|
34
|
+
quantity?: number | undefined;
|
|
35
|
+
image_url?: string | undefined;
|
|
36
|
+
old_price?: number | undefined;
|
|
37
|
+
product_id?: string | undefined;
|
|
38
|
+
variant_id?: string | undefined;
|
|
39
|
+
description?: string | undefined;
|
|
40
|
+
product_url?: string | undefined;
|
|
41
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
42
|
//#endregion
|
|
8
43
|
export { omnisendUpdateCartProduct };
|
|
9
44
|
//# sourceMappingURL=update-cart-product.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-cart-product.d.cts","names":[],"sources":["../../src/actions/update-cart-product.ts"],"mappings":";;;cAIa,8BAAA,
|
|
1
|
+
{"version":3,"file":"update-cart-product.d.cts","names":[],"sources":["../../src/actions/update-cart-product.ts"],"mappings":";;;cAIa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;cAgB9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;cAO/B,yBAAA,gCAAyB,wBAAA"}
|
|
@@ -1,9 +1,44 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/update-cart-product.d.ts
|
|
4
|
-
declare const OmnisendUpdateCartProductInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const OmnisendUpdateCartProductInput: z.ZodObject<{
|
|
5
|
+
sku: z.ZodOptional<z.ZodString>;
|
|
6
|
+
price: z.ZodOptional<z.ZodNumber>;
|
|
7
|
+
title: z.ZodOptional<z.ZodString>;
|
|
8
|
+
cart_id: z.ZodString;
|
|
9
|
+
currency: z.ZodString;
|
|
10
|
+
discount: z.ZodOptional<z.ZodNumber>;
|
|
11
|
+
quantity: z.ZodOptional<z.ZodNumber>;
|
|
12
|
+
image_url: z.ZodOptional<z.ZodString>;
|
|
13
|
+
old_price: z.ZodOptional<z.ZodNumber>;
|
|
14
|
+
product_id: z.ZodOptional<z.ZodString>;
|
|
15
|
+
variant_id: z.ZodOptional<z.ZodString>;
|
|
16
|
+
description: z.ZodOptional<z.ZodString>;
|
|
17
|
+
product_url: z.ZodOptional<z.ZodString>;
|
|
18
|
+
cart_product_id: z.ZodString;
|
|
19
|
+
}, z.core.$strip>;
|
|
20
|
+
declare const OmnisendUpdateCartProductOutput: z.ZodObject<{
|
|
21
|
+
cartID: z.ZodNullable<z.ZodString>;
|
|
22
|
+
productID: z.ZodNullable<z.ZodString>;
|
|
23
|
+
variantID: z.ZodNullable<z.ZodString>;
|
|
24
|
+
cartProductID: z.ZodNullable<z.ZodString>;
|
|
25
|
+
}, z.core.$loose>;
|
|
26
|
+
declare const omnisendUpdateCartProduct: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
27
|
+
cart_id: string;
|
|
28
|
+
currency: string;
|
|
29
|
+
cart_product_id: string;
|
|
30
|
+
sku?: string | undefined;
|
|
31
|
+
price?: number | undefined;
|
|
32
|
+
title?: string | undefined;
|
|
33
|
+
discount?: number | undefined;
|
|
34
|
+
quantity?: number | undefined;
|
|
35
|
+
image_url?: string | undefined;
|
|
36
|
+
old_price?: number | undefined;
|
|
37
|
+
product_id?: string | undefined;
|
|
38
|
+
variant_id?: string | undefined;
|
|
39
|
+
description?: string | undefined;
|
|
40
|
+
product_url?: string | undefined;
|
|
41
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
42
|
//#endregion
|
|
8
43
|
export { omnisendUpdateCartProduct };
|
|
9
44
|
//# sourceMappingURL=update-cart-product.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-cart-product.d.mts","names":[],"sources":["../../src/actions/update-cart-product.ts"],"mappings":";;;cAIa,8BAAA,
|
|
1
|
+
{"version":3,"file":"update-cart-product.d.mts","names":[],"sources":["../../src/actions/update-cart-product.ts"],"mappings":";;;cAIa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;cAgB9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;cAO/B,yBAAA,gCAAyB,wBAAA"}
|
|
@@ -21,11 +21,11 @@ const omnisendUpdateCartProduct = action("OMNISEND_UPDATE_CART_PRODUCT", {
|
|
|
21
21
|
cart_product_id: z.string().describe("Unique identifier of the product in the cart to update.")
|
|
22
22
|
}),
|
|
23
23
|
output: z.object({
|
|
24
|
-
cartID: z.string().describe("Unique identifier of the cart."),
|
|
25
|
-
productID: z.string().describe("Product identifier."),
|
|
26
|
-
variantID: z.string().describe("Product variant identifier."),
|
|
27
|
-
cartProductID: z.string().describe("Unique identifier of the product in the cart.")
|
|
28
|
-
})
|
|
24
|
+
cartID: z.string().describe("Unique identifier of the cart.").nullable(),
|
|
25
|
+
productID: z.string().describe("Product identifier.").nullable(),
|
|
26
|
+
variantID: z.string().describe("Product variant identifier.").nullable(),
|
|
27
|
+
cartProductID: z.string().describe("Unique identifier of the product in the cart.").nullable()
|
|
28
|
+
}).passthrough()
|
|
29
29
|
});
|
|
30
30
|
//#endregion
|
|
31
31
|
export { omnisendUpdateCartProduct };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-cart-product.mjs","names":[],"sources":["../../src/actions/update-cart-product.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OmnisendUpdateCartProductInput
|
|
1
|
+
{"version":3,"file":"update-cart-product.mjs","names":[],"sources":["../../src/actions/update-cart-product.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OmnisendUpdateCartProductInput = z.object({\n sku: z.string().describe(\"Stock keeping unit (SKU).\").optional(),\n price: z.number().int().describe(\"Current price in cents (e.g., 125 for $1.25).\").optional(),\n title: z.string().describe(\"Product title.\").optional(),\n cart_id: z.string().describe(\"Unique identifier of the cart.\"),\n currency: z.string().describe(\"ISO currency code (3 characters). Must match the cart's currency.\"),\n discount: z.number().int().describe(\"Discount sum in cents.\").optional(),\n quantity: z.number().int().describe(\"Product quantity (must be a whole number, minimum 1).\").optional(),\n image_url: z.string().describe(\"Link to product image.\").optional(),\n old_price: z.number().int().describe(\"Original price in cents (e.g., 125 for $1.25).\").optional(),\n product_id: z.string().describe(\"Product identifier.\").optional(),\n variant_id: z.string().describe(\"Product variant identifier.\").optional(),\n description: z.string().describe(\"Product description.\").optional(),\n product_url: z.string().describe(\"Link to product page.\").optional(),\n cart_product_id: z.string().describe(\"Unique identifier of the product in the cart to update.\"),\n});\nexport const OmnisendUpdateCartProductOutput = z.object({\n cartID: z.string().describe(\"Unique identifier of the cart.\").nullable(),\n productID: z.string().describe(\"Product identifier.\").nullable(),\n variantID: z.string().describe(\"Product variant identifier.\").nullable(),\n cartProductID: z.string().describe(\"Unique identifier of the product in the cart.\").nullable(),\n}).passthrough();\n\nexport const omnisendUpdateCartProduct = action(\"OMNISEND_UPDATE_CART_PRODUCT\", {\n slug: \"omnisend-update-cart-product\",\n name: \"Update Cart Product\",\n description: \"Tool to update a product in a cart (v3 API). Use when you need to modify product details such as quantity, price, or other attributes for an existing cart item.\",\n input: OmnisendUpdateCartProductInput,\n output: OmnisendUpdateCartProductOutput,\n});\n"],"mappings":";;AA2BA,MAAa,4BAA4B,OAAO,gCAAgC;CAC9E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OA3B4C,EAAE,OAAO;EACrD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;EAC/D,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;EAC3F,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS;EACtD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC;EAC7D,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE;EACjG,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;EACvE,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;EACtG,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;EAClE,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;EAChG,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;EAChE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;EACxE,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;EAClE,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;EACnE,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD;CAChG,CAYS;CACP,QAZ6C,EAAE,OAAO;EACtD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;EACvE,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;EAC/D,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;EACvE,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CAC/F,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
|
|
@@ -18,10 +18,10 @@ const OmnisendUpdateCartInput = zod.z.object({
|
|
|
18
18
|
productUrl: zod.z.string().describe("URL to the product page").optional(),
|
|
19
19
|
description: zod.z.string().describe("Product description").optional(),
|
|
20
20
|
cartProductID: zod.z.string().describe("Unique identifier for the product in the cart")
|
|
21
|
-
})).describe("List of products in the cart").optional(),
|
|
21
|
+
}).passthrough()).describe("List of products in the cart").optional(),
|
|
22
22
|
cartRecoveryUrl: zod.z.string().describe("URL to recover the cart").optional()
|
|
23
23
|
});
|
|
24
|
-
const OmnisendUpdateCartOutput = zod.z.object({ cartID: zod.z.string().describe("Unique identifier of the updated cart") });
|
|
24
|
+
const OmnisendUpdateCartOutput = zod.z.object({ cartID: zod.z.string().describe("Unique identifier of the updated cart").nullable() }).passthrough();
|
|
25
25
|
const omnisendUpdateCart = require_action.action("OMNISEND_UPDATE_CART", {
|
|
26
26
|
slug: "omnisend-update-cart",
|
|
27
27
|
name: "Update Cart",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-cart.cjs","names":["z","action"],"sources":["../../src/actions/update-cart.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OmnisendUpdateCartInput
|
|
1
|
+
{"version":3,"file":"update-cart.cjs","names":["z","action"],"sources":["../../src/actions/update-cart.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OmnisendUpdateCartInput = z.object({\n cartID: z.string().describe(\"Unique identifier of the cart to update\"),\n cartSum: z.number().int().describe(\"Total cart value in cents, without commas. For example, for $1.25 USD use 125\"),\n currency: z.string().describe(\"ISO currency code (3 characters)\"),\n products: z.array(z.object({\n sku: z.string().describe(\"Stock keeping unit identifier\").optional(),\n price: z.number().int().describe(\"Product price in cents (e.g., 100 for $1.00)\").optional(),\n title: z.string().describe(\"Product title\").optional(),\n discount: z.number().int().describe(\"Discount amount in cents\").optional(),\n imageUrl: z.string().describe(\"URL to the product image\").optional(),\n oldPrice: z.number().int().describe(\"Original price before discount in cents\").optional(),\n quantity: z.number().int().describe(\"Quantity of the product in the cart\").optional(),\n productID: z.string().describe(\"Product ID from your catalog\").optional(),\n variantID: z.string().describe(\"Product variant ID\").optional(),\n productUrl: z.string().describe(\"URL to the product page\").optional(),\n description: z.string().describe(\"Product description\").optional(),\n cartProductID: z.string().describe(\"Unique identifier for the product in the cart\"),\n}).passthrough()).describe(\"List of products in the cart\").optional(),\n cartRecoveryUrl: z.string().describe(\"URL to recover the cart\").optional(),\n});\nexport const OmnisendUpdateCartOutput = z.object({\n cartID: z.string().describe(\"Unique identifier of the updated cart\").nullable(),\n}).passthrough();\n\nexport const omnisendUpdateCart = action(\"OMNISEND_UPDATE_CART\", {\n slug: \"omnisend-update-cart\",\n name: \"Update Cart\",\n description: \"Tool to partially update a cart in Omnisend (v3 API). Use when you need to modify cart details such as currency, total amount, recovery URL, or products.\",\n input: OmnisendUpdateCartInput,\n output: OmnisendUpdateCartOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0BA,IAAAA,EAAE,OAAO;CAC9C,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC;CACrE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,I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OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;AAC3E,CAAC;AACD,MAAa,2BAA2BA,IAAAA,EAAE,OAAO,EAC/C,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,EAChF,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,qBAAqBC,eAAAA,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,50 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/update-cart.d.ts
|
|
4
|
-
declare const OmnisendUpdateCartInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const OmnisendUpdateCartInput: z.ZodObject<{
|
|
5
|
+
cartID: z.ZodString;
|
|
6
|
+
cartSum: z.ZodNumber;
|
|
7
|
+
currency: z.ZodString;
|
|
8
|
+
products: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
9
|
+
sku: z.ZodOptional<z.ZodString>;
|
|
10
|
+
price: z.ZodOptional<z.ZodNumber>;
|
|
11
|
+
title: z.ZodOptional<z.ZodString>;
|
|
12
|
+
discount: z.ZodOptional<z.ZodNumber>;
|
|
13
|
+
imageUrl: z.ZodOptional<z.ZodString>;
|
|
14
|
+
oldPrice: z.ZodOptional<z.ZodNumber>;
|
|
15
|
+
quantity: z.ZodOptional<z.ZodNumber>;
|
|
16
|
+
productID: z.ZodOptional<z.ZodString>;
|
|
17
|
+
variantID: z.ZodOptional<z.ZodString>;
|
|
18
|
+
productUrl: z.ZodOptional<z.ZodString>;
|
|
19
|
+
description: z.ZodOptional<z.ZodString>;
|
|
20
|
+
cartProductID: z.ZodString;
|
|
21
|
+
}, z.core.$loose>>>;
|
|
22
|
+
cartRecoveryUrl: z.ZodOptional<z.ZodString>;
|
|
23
|
+
}, z.core.$strip>;
|
|
24
|
+
declare const OmnisendUpdateCartOutput: z.ZodObject<{
|
|
25
|
+
cartID: z.ZodNullable<z.ZodString>;
|
|
26
|
+
}, z.core.$loose>;
|
|
27
|
+
declare const omnisendUpdateCart: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
28
|
+
cartID: string;
|
|
29
|
+
cartSum: number;
|
|
30
|
+
currency: string;
|
|
31
|
+
products?: {
|
|
32
|
+
[x: string]: unknown;
|
|
33
|
+
cartProductID: string;
|
|
34
|
+
sku?: string | undefined;
|
|
35
|
+
price?: number | undefined;
|
|
36
|
+
title?: string | undefined;
|
|
37
|
+
discount?: number | undefined;
|
|
38
|
+
imageUrl?: string | undefined;
|
|
39
|
+
oldPrice?: number | undefined;
|
|
40
|
+
quantity?: number | undefined;
|
|
41
|
+
productID?: string | undefined;
|
|
42
|
+
variantID?: string | undefined;
|
|
43
|
+
productUrl?: string | undefined;
|
|
44
|
+
description?: string | undefined;
|
|
45
|
+
}[] | undefined;
|
|
46
|
+
cartRecoveryUrl?: string | undefined;
|
|
47
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
48
|
//#endregion
|
|
8
49
|
export { omnisendUpdateCart };
|
|
9
50
|
//# sourceMappingURL=update-cart.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-cart.d.cts","names":[],"sources":["../../src/actions/update-cart.ts"],"mappings":";;;cAIa,uBAAA,
|
|
1
|
+
{"version":3,"file":"update-cart.d.cts","names":[],"sources":["../../src/actions/update-cart.ts"],"mappings":";;;cAIa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;cAoBvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;cAIxB,kBAAA,gCAAkB,wBAAA"}
|
|
@@ -1,9 +1,50 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/update-cart.d.ts
|
|
4
|
-
declare const OmnisendUpdateCartInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const OmnisendUpdateCartInput: z.ZodObject<{
|
|
5
|
+
cartID: z.ZodString;
|
|
6
|
+
cartSum: z.ZodNumber;
|
|
7
|
+
currency: z.ZodString;
|
|
8
|
+
products: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
9
|
+
sku: z.ZodOptional<z.ZodString>;
|
|
10
|
+
price: z.ZodOptional<z.ZodNumber>;
|
|
11
|
+
title: z.ZodOptional<z.ZodString>;
|
|
12
|
+
discount: z.ZodOptional<z.ZodNumber>;
|
|
13
|
+
imageUrl: z.ZodOptional<z.ZodString>;
|
|
14
|
+
oldPrice: z.ZodOptional<z.ZodNumber>;
|
|
15
|
+
quantity: z.ZodOptional<z.ZodNumber>;
|
|
16
|
+
productID: z.ZodOptional<z.ZodString>;
|
|
17
|
+
variantID: z.ZodOptional<z.ZodString>;
|
|
18
|
+
productUrl: z.ZodOptional<z.ZodString>;
|
|
19
|
+
description: z.ZodOptional<z.ZodString>;
|
|
20
|
+
cartProductID: z.ZodString;
|
|
21
|
+
}, z.core.$loose>>>;
|
|
22
|
+
cartRecoveryUrl: z.ZodOptional<z.ZodString>;
|
|
23
|
+
}, z.core.$strip>;
|
|
24
|
+
declare const OmnisendUpdateCartOutput: z.ZodObject<{
|
|
25
|
+
cartID: z.ZodNullable<z.ZodString>;
|
|
26
|
+
}, z.core.$loose>;
|
|
27
|
+
declare const omnisendUpdateCart: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
28
|
+
cartID: string;
|
|
29
|
+
cartSum: number;
|
|
30
|
+
currency: string;
|
|
31
|
+
products?: {
|
|
32
|
+
[x: string]: unknown;
|
|
33
|
+
cartProductID: string;
|
|
34
|
+
sku?: string | undefined;
|
|
35
|
+
price?: number | undefined;
|
|
36
|
+
title?: string | undefined;
|
|
37
|
+
discount?: number | undefined;
|
|
38
|
+
imageUrl?: string | undefined;
|
|
39
|
+
oldPrice?: number | undefined;
|
|
40
|
+
quantity?: number | undefined;
|
|
41
|
+
productID?: string | undefined;
|
|
42
|
+
variantID?: string | undefined;
|
|
43
|
+
productUrl?: string | undefined;
|
|
44
|
+
description?: string | undefined;
|
|
45
|
+
}[] | undefined;
|
|
46
|
+
cartRecoveryUrl?: string | undefined;
|
|
47
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
48
|
//#endregion
|
|
8
49
|
export { omnisendUpdateCart };
|
|
9
50
|
//# sourceMappingURL=update-cart.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-cart.d.mts","names":[],"sources":["../../src/actions/update-cart.ts"],"mappings":";;;cAIa,uBAAA,
|
|
1
|
+
{"version":3,"file":"update-cart.d.mts","names":[],"sources":["../../src/actions/update-cart.ts"],"mappings":";;;cAIa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;cAoBvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;cAIxB,kBAAA,gCAAkB,wBAAA"}
|
|
@@ -21,10 +21,10 @@ const omnisendUpdateCart = action("OMNISEND_UPDATE_CART", {
|
|
|
21
21
|
productUrl: z.string().describe("URL to the product page").optional(),
|
|
22
22
|
description: z.string().describe("Product description").optional(),
|
|
23
23
|
cartProductID: z.string().describe("Unique identifier for the product in the cart")
|
|
24
|
-
})).describe("List of products in the cart").optional(),
|
|
24
|
+
}).passthrough()).describe("List of products in the cart").optional(),
|
|
25
25
|
cartRecoveryUrl: z.string().describe("URL to recover the cart").optional()
|
|
26
26
|
}),
|
|
27
|
-
output: z.object({ cartID: z.string().describe("Unique identifier of the updated cart") })
|
|
27
|
+
output: z.object({ cartID: z.string().describe("Unique identifier of the updated cart").nullable() }).passthrough()
|
|
28
28
|
});
|
|
29
29
|
//#endregion
|
|
30
30
|
export { omnisendUpdateCart };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-cart.mjs","names":[],"sources":["../../src/actions/update-cart.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OmnisendUpdateCartInput
|
|
1
|
+
{"version":3,"file":"update-cart.mjs","names":[],"sources":["../../src/actions/update-cart.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OmnisendUpdateCartInput = z.object({\n cartID: z.string().describe(\"Unique identifier of the cart to update\"),\n cartSum: z.number().int().describe(\"Total cart value in cents, without commas. For example, for $1.25 USD use 125\"),\n currency: z.string().describe(\"ISO currency code (3 characters)\"),\n products: z.array(z.object({\n sku: z.string().describe(\"Stock keeping unit identifier\").optional(),\n price: z.number().int().describe(\"Product price in cents (e.g., 100 for $1.00)\").optional(),\n title: z.string().describe(\"Product title\").optional(),\n discount: z.number().int().describe(\"Discount amount in cents\").optional(),\n imageUrl: z.string().describe(\"URL to the product image\").optional(),\n oldPrice: z.number().int().describe(\"Original price before discount in cents\").optional(),\n quantity: z.number().int().describe(\"Quantity of the product in the cart\").optional(),\n productID: z.string().describe(\"Product ID from your catalog\").optional(),\n variantID: z.string().describe(\"Product variant ID\").optional(),\n productUrl: z.string().describe(\"URL to the product page\").optional(),\n description: z.string().describe(\"Product description\").optional(),\n cartProductID: z.string().describe(\"Unique identifier for the product in the cart\"),\n}).passthrough()).describe(\"List of products in the cart\").optional(),\n cartRecoveryUrl: z.string().describe(\"URL to recover the cart\").optional(),\n});\nexport const OmnisendUpdateCartOutput = z.object({\n cartID: z.string().describe(\"Unique identifier of the updated cart\").nullable(),\n}).passthrough();\n\nexport const omnisendUpdateCart = action(\"OMNISEND_UPDATE_CART\", {\n slug: \"omnisend-update-cart\",\n name: \"Update Cart\",\n description: \"Tool to partially update a cart in Omnisend (v3 API). Use when you need to modify cart details such as currency, total amount, recovery URL, or products.\",\n input: OmnisendUpdateCartInput,\n output: OmnisendUpdateCartOutput,\n});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CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;EAClE,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CAC3E,CASS;CACP,QATsC,EAAE,OAAO,EAC/C,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,EAChF,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
|
|
@@ -35,8 +35,8 @@ const OmnisendUpdateContactInput = zod.z.object({
|
|
|
35
35
|
statusDate: zod.z.string().describe("ISO 8601 date of status change").optional()
|
|
36
36
|
}).describe("Email channel subscription settings").optional()
|
|
37
37
|
}).describe("Channel-specific subscription settings").optional()
|
|
38
|
-
})).describe("List of identifiers to associate with the contact").optional(),
|
|
39
|
-
customProperties: zod.z.
|
|
38
|
+
}).passthrough()).describe("List of identifiers to associate with the contact").optional(),
|
|
39
|
+
customProperties: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Custom properties as key-value pairs").optional()
|
|
40
40
|
}).describe("Fields to update on the contact"),
|
|
41
41
|
contactId: zod.z.string().describe("Unique identifier of the contact to update")
|
|
42
42
|
});
|
|
@@ -44,9 +44,9 @@ const OmnisendUpdateContactOutput = zod.z.object({
|
|
|
44
44
|
email: zod.z.string().describe("Email address of the updated contact").nullable().optional(),
|
|
45
45
|
phone: zod.z.string().describe("Phone number of the updated contact").nullable().optional(),
|
|
46
46
|
lastName: zod.z.string().describe("Last name of the updated contact").nullable().optional(),
|
|
47
|
-
contactID: zod.z.string().describe("Unique identifier of the updated contact"),
|
|
47
|
+
contactID: zod.z.string().describe("Unique identifier of the updated contact").nullable(),
|
|
48
48
|
firstName: zod.z.string().describe("First name of the updated contact").nullable().optional()
|
|
49
|
-
});
|
|
49
|
+
}).passthrough();
|
|
50
50
|
const omnisendUpdateContact = require_action.action("OMNISEND_UPDATE_CONTACT", {
|
|
51
51
|
slug: "omnisend-update-contact",
|
|
52
52
|
name: "Update Contact",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-contact.cjs","names":["z","action"],"sources":["../../src/actions/update-contact.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OmnisendUpdateContactInput
|
|
1
|
+
{"version":3,"file":"update-contact.cjs","names":["z","action"],"sources":["../../src/actions/update-contact.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OmnisendUpdateContactInput = z.object({\n body: z.object({\n city: z.string().describe(\"City of the contact\").optional(),\n tags: z.array(z.string()).describe(\"Tags to associate with the contact\").optional(),\n state: z.string().describe(\"State of the contact\").optional(),\n gender: z.enum([\"m\", \"f\"]).describe(\"Gender of the contact ('m' for male, 'f' for female)\").optional(),\n source: z.string().describe(\"Source of the contact\").optional(),\n address: z.string().describe(\"Street address of the contact\").optional(),\n country: z.string().describe(\"Country of the contact\").optional(),\n lastName: z.string().describe(\"Last name of the contact\").optional(),\n birthdate: z.string().describe(\"Birthdate in YYYY-MM-DD format\").optional(),\n createdAt: z.string().describe(\"ISO 8601 creation date of the contact\").optional(),\n firstName: z.string().describe(\"First name of the contact\").optional(),\n postalCode: z.string().describe(\"Postal code of the contact\").optional(),\n countryCode: z.string().describe(\"ISO 3166-1 alpha-2 country code\").optional(),\n identifiers: z.array(z.object({\n id: z.string().describe(\"Identifier value (e.g., email address, phone number)\"),\n type: z.string().describe(\"Type of identifier (e.g., 'email', 'phone')\"),\n consent: z.object({\n ip: z.string().describe(\"IP address from which consent was given\").optional(),\n source: z.string().describe(\"Source of consent\").optional(),\n createdAt: z.string().describe(\"ISO 8601 date when consent was given\").optional(),\n userAgent: z.string().describe(\"User agent string when consent was given\").optional(),\n}).describe(\"Contact consent information\").optional(),\n channels: z.object({\n sms: z.object({\n status: z.string().describe(\"SMS subscription status (e.g., 'subscribed')\").optional(),\n statusDate: z.string().describe(\"ISO 8601 date of SMS status change\").optional(),\n}).describe(\"SMS channel subscription settings\").optional(),\n email: z.object({\n status: z.string().describe(\"Subscription status (e.g., 'subscribed')\").optional(),\n statusDate: z.string().describe(\"ISO 8601 date of status change\").optional(),\n}).describe(\"Email channel subscription settings\").optional(),\n}).describe(\"Channel-specific subscription settings\").optional(),\n}).passthrough()).describe(\"List of identifiers to associate with the contact\").optional(),\n customProperties: z.record(z.string(), z.unknown()).describe(\"Custom properties as key-value pairs\").optional(),\n}).describe(\"Fields to update on the contact\"),\n contactId: z.string().describe(\"Unique identifier of the contact to update\"),\n});\nexport const OmnisendUpdateContactOutput = z.object({\n email: z.string().describe(\"Email address of the updated contact\").nullable().optional(),\n phone: z.string().describe(\"Phone number of the updated contact\").nullable().optional(),\n lastName: z.string().describe(\"Last name of the updated contact\").nullable().optional(),\n contactID: z.string().describe(\"Unique identifier of the updated contact\").nullable(),\n firstName: z.string().describe(\"First name of the updated contact\").nullable().optional(),\n}).passthrough();\n\nexport const omnisendUpdateContact = action(\"OMNISEND_UPDATE_CONTACT\", {\n slug: \"omnisend-update-contact\",\n name: \"Update Contact\",\n description: \"Tool to update fields of an existing contact by ID. Use after retrieving contact ID. PATCH https://api.omnisend.com/v3/contacts/{contactId} Example: UpdateContact(contactId=\\\"..., body={firstName: 'John'})\",\n input: OmnisendUpdateContactInput,\n output: OmnisendUpdateContactOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,MAAMA,IAAAA,EAAE,OAAO;EACf,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;EAC1D,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;EAClF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;EAC5D,QAAQA,IAAAA,EAAE,KAAK,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC,SAAS,sDAAsD,CAAC,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AAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CACpF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC1F,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,wBAAwBC,eAAAA,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,95 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/update-contact.d.ts
|
|
4
|
-
declare const OmnisendUpdateContactInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const OmnisendUpdateContactInput: z.ZodObject<{
|
|
5
|
+
body: z.ZodObject<{
|
|
6
|
+
city: z.ZodOptional<z.ZodString>;
|
|
7
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
8
|
+
state: z.ZodOptional<z.ZodString>;
|
|
9
|
+
gender: z.ZodOptional<z.ZodEnum<{
|
|
10
|
+
m: "m";
|
|
11
|
+
f: "f";
|
|
12
|
+
}>>;
|
|
13
|
+
source: z.ZodOptional<z.ZodString>;
|
|
14
|
+
address: z.ZodOptional<z.ZodString>;
|
|
15
|
+
country: z.ZodOptional<z.ZodString>;
|
|
16
|
+
lastName: z.ZodOptional<z.ZodString>;
|
|
17
|
+
birthdate: z.ZodOptional<z.ZodString>;
|
|
18
|
+
createdAt: z.ZodOptional<z.ZodString>;
|
|
19
|
+
firstName: z.ZodOptional<z.ZodString>;
|
|
20
|
+
postalCode: z.ZodOptional<z.ZodString>;
|
|
21
|
+
countryCode: z.ZodOptional<z.ZodString>;
|
|
22
|
+
identifiers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
23
|
+
id: z.ZodString;
|
|
24
|
+
type: z.ZodString;
|
|
25
|
+
consent: z.ZodOptional<z.ZodObject<{
|
|
26
|
+
ip: z.ZodOptional<z.ZodString>;
|
|
27
|
+
source: z.ZodOptional<z.ZodString>;
|
|
28
|
+
createdAt: z.ZodOptional<z.ZodString>;
|
|
29
|
+
userAgent: z.ZodOptional<z.ZodString>;
|
|
30
|
+
}, z.core.$strip>>;
|
|
31
|
+
channels: z.ZodOptional<z.ZodObject<{
|
|
32
|
+
sms: z.ZodOptional<z.ZodObject<{
|
|
33
|
+
status: z.ZodOptional<z.ZodString>;
|
|
34
|
+
statusDate: z.ZodOptional<z.ZodString>;
|
|
35
|
+
}, z.core.$strip>>;
|
|
36
|
+
email: z.ZodOptional<z.ZodObject<{
|
|
37
|
+
status: z.ZodOptional<z.ZodString>;
|
|
38
|
+
statusDate: z.ZodOptional<z.ZodString>;
|
|
39
|
+
}, z.core.$strip>>;
|
|
40
|
+
}, z.core.$strip>>;
|
|
41
|
+
}, z.core.$loose>>>;
|
|
42
|
+
customProperties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
43
|
+
}, z.core.$strip>;
|
|
44
|
+
contactId: z.ZodString;
|
|
45
|
+
}, z.core.$strip>;
|
|
46
|
+
declare const OmnisendUpdateContactOutput: z.ZodObject<{
|
|
47
|
+
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
48
|
+
phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
49
|
+
lastName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
50
|
+
contactID: z.ZodNullable<z.ZodString>;
|
|
51
|
+
firstName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
52
|
+
}, z.core.$loose>;
|
|
53
|
+
declare const omnisendUpdateContact: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
54
|
+
body: {
|
|
55
|
+
city?: string | undefined;
|
|
56
|
+
tags?: string[] | undefined;
|
|
57
|
+
state?: string | undefined;
|
|
58
|
+
gender?: "m" | "f" | undefined;
|
|
59
|
+
source?: string | undefined;
|
|
60
|
+
address?: string | undefined;
|
|
61
|
+
country?: string | undefined;
|
|
62
|
+
lastName?: string | undefined;
|
|
63
|
+
birthdate?: string | undefined;
|
|
64
|
+
createdAt?: string | undefined;
|
|
65
|
+
firstName?: string | undefined;
|
|
66
|
+
postalCode?: string | undefined;
|
|
67
|
+
countryCode?: string | undefined;
|
|
68
|
+
identifiers?: {
|
|
69
|
+
[x: string]: unknown;
|
|
70
|
+
id: string;
|
|
71
|
+
type: string;
|
|
72
|
+
consent?: {
|
|
73
|
+
ip?: string | undefined;
|
|
74
|
+
source?: string | undefined;
|
|
75
|
+
createdAt?: string | undefined;
|
|
76
|
+
userAgent?: string | undefined;
|
|
77
|
+
} | undefined;
|
|
78
|
+
channels?: {
|
|
79
|
+
sms?: {
|
|
80
|
+
status?: string | undefined;
|
|
81
|
+
statusDate?: string | undefined;
|
|
82
|
+
} | undefined;
|
|
83
|
+
email?: {
|
|
84
|
+
status?: string | undefined;
|
|
85
|
+
statusDate?: string | undefined;
|
|
86
|
+
} | undefined;
|
|
87
|
+
} | undefined;
|
|
88
|
+
}[] | undefined;
|
|
89
|
+
customProperties?: Record<string, unknown> | undefined;
|
|
90
|
+
};
|
|
91
|
+
contactId: string;
|
|
92
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
93
|
//#endregion
|
|
8
94
|
export { omnisendUpdateContact };
|
|
9
95
|
//# sourceMappingURL=update-contact.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-contact.d.cts","names":[],"sources":["../../src/actions/update-contact.ts"],"mappings":";;;cAIa,0BAAA,
|
|
1
|
+
{"version":3,"file":"update-contact.d.cts","names":[],"sources":["../../src/actions/update-contact.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAuC1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;cAQ3B,qBAAA,gCAAqB,wBAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uBAMhC,MAAA;EAAA"}
|
|
@@ -1,9 +1,95 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/update-contact.d.ts
|
|
4
|
-
declare const OmnisendUpdateContactInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const OmnisendUpdateContactInput: z.ZodObject<{
|
|
5
|
+
body: z.ZodObject<{
|
|
6
|
+
city: z.ZodOptional<z.ZodString>;
|
|
7
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
8
|
+
state: z.ZodOptional<z.ZodString>;
|
|
9
|
+
gender: z.ZodOptional<z.ZodEnum<{
|
|
10
|
+
m: "m";
|
|
11
|
+
f: "f";
|
|
12
|
+
}>>;
|
|
13
|
+
source: z.ZodOptional<z.ZodString>;
|
|
14
|
+
address: z.ZodOptional<z.ZodString>;
|
|
15
|
+
country: z.ZodOptional<z.ZodString>;
|
|
16
|
+
lastName: z.ZodOptional<z.ZodString>;
|
|
17
|
+
birthdate: z.ZodOptional<z.ZodString>;
|
|
18
|
+
createdAt: z.ZodOptional<z.ZodString>;
|
|
19
|
+
firstName: z.ZodOptional<z.ZodString>;
|
|
20
|
+
postalCode: z.ZodOptional<z.ZodString>;
|
|
21
|
+
countryCode: z.ZodOptional<z.ZodString>;
|
|
22
|
+
identifiers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
23
|
+
id: z.ZodString;
|
|
24
|
+
type: z.ZodString;
|
|
25
|
+
consent: z.ZodOptional<z.ZodObject<{
|
|
26
|
+
ip: z.ZodOptional<z.ZodString>;
|
|
27
|
+
source: z.ZodOptional<z.ZodString>;
|
|
28
|
+
createdAt: z.ZodOptional<z.ZodString>;
|
|
29
|
+
userAgent: z.ZodOptional<z.ZodString>;
|
|
30
|
+
}, z.core.$strip>>;
|
|
31
|
+
channels: z.ZodOptional<z.ZodObject<{
|
|
32
|
+
sms: z.ZodOptional<z.ZodObject<{
|
|
33
|
+
status: z.ZodOptional<z.ZodString>;
|
|
34
|
+
statusDate: z.ZodOptional<z.ZodString>;
|
|
35
|
+
}, z.core.$strip>>;
|
|
36
|
+
email: z.ZodOptional<z.ZodObject<{
|
|
37
|
+
status: z.ZodOptional<z.ZodString>;
|
|
38
|
+
statusDate: z.ZodOptional<z.ZodString>;
|
|
39
|
+
}, z.core.$strip>>;
|
|
40
|
+
}, z.core.$strip>>;
|
|
41
|
+
}, z.core.$loose>>>;
|
|
42
|
+
customProperties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
43
|
+
}, z.core.$strip>;
|
|
44
|
+
contactId: z.ZodString;
|
|
45
|
+
}, z.core.$strip>;
|
|
46
|
+
declare const OmnisendUpdateContactOutput: z.ZodObject<{
|
|
47
|
+
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
48
|
+
phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
49
|
+
lastName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
50
|
+
contactID: z.ZodNullable<z.ZodString>;
|
|
51
|
+
firstName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
52
|
+
}, z.core.$loose>;
|
|
53
|
+
declare const omnisendUpdateContact: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
54
|
+
body: {
|
|
55
|
+
city?: string | undefined;
|
|
56
|
+
tags?: string[] | undefined;
|
|
57
|
+
state?: string | undefined;
|
|
58
|
+
gender?: "m" | "f" | undefined;
|
|
59
|
+
source?: string | undefined;
|
|
60
|
+
address?: string | undefined;
|
|
61
|
+
country?: string | undefined;
|
|
62
|
+
lastName?: string | undefined;
|
|
63
|
+
birthdate?: string | undefined;
|
|
64
|
+
createdAt?: string | undefined;
|
|
65
|
+
firstName?: string | undefined;
|
|
66
|
+
postalCode?: string | undefined;
|
|
67
|
+
countryCode?: string | undefined;
|
|
68
|
+
identifiers?: {
|
|
69
|
+
[x: string]: unknown;
|
|
70
|
+
id: string;
|
|
71
|
+
type: string;
|
|
72
|
+
consent?: {
|
|
73
|
+
ip?: string | undefined;
|
|
74
|
+
source?: string | undefined;
|
|
75
|
+
createdAt?: string | undefined;
|
|
76
|
+
userAgent?: string | undefined;
|
|
77
|
+
} | undefined;
|
|
78
|
+
channels?: {
|
|
79
|
+
sms?: {
|
|
80
|
+
status?: string | undefined;
|
|
81
|
+
statusDate?: string | undefined;
|
|
82
|
+
} | undefined;
|
|
83
|
+
email?: {
|
|
84
|
+
status?: string | undefined;
|
|
85
|
+
statusDate?: string | undefined;
|
|
86
|
+
} | undefined;
|
|
87
|
+
} | undefined;
|
|
88
|
+
}[] | undefined;
|
|
89
|
+
customProperties?: Record<string, unknown> | undefined;
|
|
90
|
+
};
|
|
91
|
+
contactId: string;
|
|
92
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
93
|
//#endregion
|
|
8
94
|
export { omnisendUpdateContact };
|
|
9
95
|
//# sourceMappingURL=update-contact.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-contact.d.mts","names":[],"sources":["../../src/actions/update-contact.ts"],"mappings":";;;cAIa,0BAAA,
|
|
1
|
+
{"version":3,"file":"update-contact.d.mts","names":[],"sources":["../../src/actions/update-contact.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAuC1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;cAQ3B,qBAAA,gCAAqB,wBAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uBAMhC,MAAA;EAAA"}
|
|
@@ -38,8 +38,8 @@ const omnisendUpdateContact = action("OMNISEND_UPDATE_CONTACT", {
|
|
|
38
38
|
statusDate: z.string().describe("ISO 8601 date of status change").optional()
|
|
39
39
|
}).describe("Email channel subscription settings").optional()
|
|
40
40
|
}).describe("Channel-specific subscription settings").optional()
|
|
41
|
-
})).describe("List of identifiers to associate with the contact").optional(),
|
|
42
|
-
customProperties: z.
|
|
41
|
+
}).passthrough()).describe("List of identifiers to associate with the contact").optional(),
|
|
42
|
+
customProperties: z.record(z.string(), z.unknown()).describe("Custom properties as key-value pairs").optional()
|
|
43
43
|
}).describe("Fields to update on the contact"),
|
|
44
44
|
contactId: z.string().describe("Unique identifier of the contact to update")
|
|
45
45
|
}),
|
|
@@ -47,9 +47,9 @@ const omnisendUpdateContact = action("OMNISEND_UPDATE_CONTACT", {
|
|
|
47
47
|
email: z.string().describe("Email address of the updated contact").nullable().optional(),
|
|
48
48
|
phone: z.string().describe("Phone number of the updated contact").nullable().optional(),
|
|
49
49
|
lastName: z.string().describe("Last name of the updated contact").nullable().optional(),
|
|
50
|
-
contactID: z.string().describe("Unique identifier of the updated contact"),
|
|
50
|
+
contactID: z.string().describe("Unique identifier of the updated contact").nullable(),
|
|
51
51
|
firstName: z.string().describe("First name of the updated contact").nullable().optional()
|
|
52
|
-
})
|
|
52
|
+
}).passthrough()
|
|
53
53
|
});
|
|
54
54
|
//#endregion
|
|
55
55
|
export { omnisendUpdateContact };
|