@keystrokehq/omnisend 0.1.2 → 0.1.4
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 +14 -2
- package/dist/actions/add-cart-product.d.mts +14 -2
- 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 +18 -6
- package/dist/actions/create-batch.d.cts.map +1 -1
- package/dist/actions/create-batch.d.mts +18 -6
- package/dist/actions/create-batch.d.mts.map +1 -1
- 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 +16 -3
- package/dist/actions/create-cart.d.mts +16 -3
- 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 +14 -2
- package/dist/actions/create-category.d.mts +14 -2
- 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 +16 -3
- package/dist/actions/create-or-update-contact.d.mts +16 -3
- 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 +18 -5
- package/dist/actions/create-order.d.cts.map +1 -1
- package/dist/actions/create-order.d.mts +18 -5
- 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 +14 -2
- package/dist/actions/create-product-category.d.mts +14 -2
- 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 +16 -3
- package/dist/actions/create-product.d.mts +16 -3
- 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 +14 -2
- package/dist/actions/delete-cart.d.cts.map +1 -1
- package/dist/actions/delete-cart.d.mts +14 -2
- 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 +14 -2
- package/dist/actions/delete-category.d.cts.map +1 -1
- package/dist/actions/delete-category.d.mts +14 -2
- 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 +14 -2
- package/dist/actions/delete-order.d.cts.map +1 -1
- package/dist/actions/delete-order.d.mts +14 -2
- 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 +14 -2
- package/dist/actions/delete-product-category.d.cts.map +1 -1
- package/dist/actions/delete-product-category.d.mts +14 -2
- 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 +14 -2
- package/dist/actions/delete-product.d.cts.map +1 -1
- package/dist/actions/delete-product.d.mts +14 -2
- 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 +14 -2
- package/dist/actions/get-batch-information.d.mts +14 -2
- 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 +14 -2
- package/dist/actions/get-batch-item.d.mts +14 -2
- 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 +15 -3
- package/dist/actions/get-batch-items.d.mts +15 -3
- 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 +18 -6
- package/dist/actions/get-batches.d.mts +18 -6
- 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 +14 -2
- package/dist/actions/get-brand.d.cts.map +1 -1
- package/dist/actions/get-brand.d.mts +14 -2
- package/dist/actions/get-brand.d.mts.map +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 +15 -3
- package/dist/actions/get-cart.d.mts +15 -3
- 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 +14 -2
- package/dist/actions/get-category.d.mts +14 -2
- 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 +19 -7
- package/dist/actions/get-contact.d.mts +19 -7
- 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 +17 -5
- package/dist/actions/get-order.d.mts +17 -5
- 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 +14 -2
- package/dist/actions/get-product-category.d.mts +14 -2
- 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 +15 -3
- package/dist/actions/get-product.d.mts +15 -3
- 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 +18 -6
- package/dist/actions/list-campaigns.d.mts +18 -6
- 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 +16 -4
- package/dist/actions/list-carts.d.mts +16 -4
- 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 +16 -4
- package/dist/actions/list-categories.d.mts +16 -4
- 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 +20 -8
- package/dist/actions/list-contacts.d.mts +20 -8
- 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 +16 -4
- package/dist/actions/list-events.d.cts.map +1 -1
- package/dist/actions/list-events.d.mts +16 -4
- 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 +3 -3
- package/dist/actions/list-product-categories.cjs.map +1 -1
- package/dist/actions/list-product-categories.d.cts +16 -4
- package/dist/actions/list-product-categories.d.mts +16 -4
- 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 +17 -5
- package/dist/actions/list-products.d.mts +17 -5
- 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 +14 -2
- package/dist/actions/remove-cart-product.d.cts.map +1 -1
- package/dist/actions/remove-cart-product.d.mts +14 -2
- 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 +14 -2
- package/dist/actions/replace-cart-product.d.mts +14 -2
- 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 +16 -3
- package/dist/actions/replace-cart.d.mts +16 -3
- 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 +14 -2
- package/dist/actions/replace-category.d.mts +14 -2
- 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 +16 -3
- package/dist/actions/replace-order.d.mts +16 -3
- 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 +16 -3
- package/dist/actions/replace-product.d.mts +16 -3
- 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 +18 -6
- package/dist/actions/send-event.d.cts.map +1 -1
- package/dist/actions/send-event.d.mts +18 -6
- 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 +1 -1
- package/dist/actions/update-cart-product.cjs.map +1 -1
- package/dist/actions/update-cart-product.d.cts +14 -2
- package/dist/actions/update-cart-product.d.mts +14 -2
- 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 +16 -3
- package/dist/actions/update-cart.d.mts +16 -3
- 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 +18 -5
- package/dist/actions/update-contact.d.cts.map +1 -1
- package/dist/actions/update-contact.d.mts +18 -5
- 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 +14 -2
- package/dist/actions/update-order-status.d.mts +14 -2
- 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 +14 -2
- package/dist/actions/update-product-category.d.mts +14 -2
- package/dist/actions/update-product-category.mjs +1 -1
- package/dist/actions/update-product-category.mjs.map +1 -1
- package/dist/app.cjs +5 -2
- package/dist/app.cjs.map +1 -1
- package/dist/app.d.cts +9 -1
- package/dist/app.d.cts.map +1 -1
- package/dist/app.d.mts +9 -1
- package/dist/app.d.mts.map +1 -1
- package/dist/app.mjs +3 -1
- package/dist/app.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -8,7 +8,7 @@ const omnisendCreateCategory = action("OMNISEND_CREATE_CATEGORY", {
|
|
|
8
8
|
title: z.string().describe("Display name for the category."),
|
|
9
9
|
categoryID: z.string().describe("Unique identifier for the category. Must be unique within your Omnisend account.")
|
|
10
10
|
}),
|
|
11
|
-
output: z.object({ categoryID: z.string().describe("Unique identifier of the created category.").nullable() })
|
|
11
|
+
output: z.object({ categoryID: z.string().describe("Unique identifier of the created category.").nullable() }).passthrough()
|
|
12
12
|
});
|
|
13
13
|
//#endregion
|
|
14
14
|
export { omnisendCreateCategory };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-category.mjs","names":[],"sources":["../../src/actions/create-category.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OmnisendCreateCategoryInput = z.object({\n title: z.string().describe(\"Display name for the category.\"),\n categoryID: z.string().describe(\"Unique identifier for the category. Must be unique within your Omnisend account.\"),\n});\nexport const OmnisendCreateCategoryOutput = z.object({\n categoryID: z.string().describe(\"Unique identifier of the created category.\").nullable(),\n});\n\nexport const omnisendCreateCategory = action(\"OMNISEND_CREATE_CATEGORY\", {\n slug: \"omnisend-create-category\",\n name: \"Create Category\",\n description: \"Tool to create a new category in Omnisend. Use when organizing products into categories.\",\n input: OmnisendCreateCategoryInput,\n output: OmnisendCreateCategoryOutput,\n});\n"],"mappings":";;AAYA,MAAa,yBAAyB,OAAO,4BAA4B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAZyC,EAAE,OAAO;EAClD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC;EAC3D,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,kFAAkF;CACpH,CASS;CACP,QAT0C,EAAE,OAAO,EACnD,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,EACzF,
|
|
1
|
+
{"version":3,"file":"create-category.mjs","names":[],"sources":["../../src/actions/create-category.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OmnisendCreateCategoryInput = z.object({\n title: z.string().describe(\"Display name for the category.\"),\n categoryID: z.string().describe(\"Unique identifier for the category. Must be unique within your Omnisend account.\"),\n});\nexport const OmnisendCreateCategoryOutput = z.object({\n categoryID: z.string().describe(\"Unique identifier of the created category.\").nullable(),\n}).passthrough();\n\nexport const omnisendCreateCategory = action(\"OMNISEND_CREATE_CATEGORY\", {\n slug: \"omnisend-create-category\",\n name: \"Create Category\",\n description: \"Tool to create a new category in Omnisend. Use when organizing products into categories.\",\n input: OmnisendCreateCategoryInput,\n output: OmnisendCreateCategoryOutput,\n});\n"],"mappings":";;AAYA,MAAa,yBAAyB,OAAO,4BAA4B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAZyC,EAAE,OAAO;EAClD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC;EAC3D,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,kFAAkF;CACpH,CASS;CACP,QAT0C,EAAE,OAAO,EACnD,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,EACzF,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
|
|
@@ -23,7 +23,7 @@ const OmnisendCreateOrUpdateContactInput = zod.z.object({
|
|
|
23
23
|
statusDate: zod.z.string().describe("ISO 8601 timestamp when the status last changed").optional()
|
|
24
24
|
}).describe("Email channel subscription details").optional() }).describe("Channel-specific subscription settings").optional(),
|
|
25
25
|
sendWelcomeMessage: zod.z.boolean().describe("If true, Omnisend will send its default welcome email upon creation").optional()
|
|
26
|
-
})).describe("One or more ways to identify the contact; at least one required")
|
|
26
|
+
}).passthrough()).describe("One or more ways to identify the contact; at least one required")
|
|
27
27
|
});
|
|
28
28
|
const OmnisendCreateOrUpdateContactOutput = zod.z.object({
|
|
29
29
|
email: zod.z.string().describe("Primary email address on record").nullable(),
|
|
@@ -31,7 +31,7 @@ const OmnisendCreateOrUpdateContactOutput = zod.z.object({
|
|
|
31
31
|
lastName: zod.z.string().describe("Last name").nullable().optional(),
|
|
32
32
|
contactID: zod.z.string().describe("Omnisend-assigned unique contact ID").nullable(),
|
|
33
33
|
firstName: zod.z.string().describe("First name").nullable().optional()
|
|
34
|
-
});
|
|
34
|
+
}).passthrough();
|
|
35
35
|
const omnisendCreateOrUpdateContact = require_action.action("OMNISEND_CREATE_OR_UPDATE_CONTACT", {
|
|
36
36
|
slug: "omnisend-create-or-update-contact",
|
|
37
37
|
name: "Create or Update Contact",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-or-update-contact.cjs","names":["z","action"],"sources":["../../src/actions/create-or-update-contact.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OmnisendCreateOrUpdateContactInput = z.object({\n city: z.string().describe(\"City name\").optional(),\n gender: z.enum([\"m\", \"f\"]).describe(\"Contact's gender ('m' or 'f')\").optional(),\n address: z.string().describe(\"Street address\").optional(),\n country: z.string().describe(\"Full country name\").optional(),\n lastName: z.string().describe(\"Contact's last name\").optional(),\n birthdate: z.string().describe(\"Birthdate in YYYY-MM-DD format\").optional(),\n firstName: z.string().describe(\"Contact's first name\").optional(),\n postalCode: z.string().describe(\"Postal or ZIP code\").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)\"),\n type: z.string().describe(\"Type of identifier; only 'email' supported\"),\n channels: z.object({\n email: z.object({\n status: z.enum([\"subscribed\", \"nonSubscribed\", \"unsubscribed\"]).describe(\"Subscription status for email channel\"),\n statusDate: z.string().describe(\"ISO 8601 timestamp when the status last changed\").optional(),\n}).describe(\"Email channel subscription details\").optional(),\n}).describe(\"Channel-specific subscription settings\").optional(),\n sendWelcomeMessage: z.boolean().describe(\"If true, Omnisend will send its default welcome email upon creation\").optional(),\n})).describe(\"One or more ways to identify the contact; at least one required\"),\n});\nexport const OmnisendCreateOrUpdateContactOutput = z.object({\n email: z.string().describe(\"Primary email address on record\").nullable(),\n phone: z.string().describe(\"Phone number, if provided\").nullable().optional(),\n lastName: z.string().describe(\"Last name\").nullable().optional(),\n contactID: z.string().describe(\"Omnisend-assigned unique contact ID\").nullable(),\n firstName: z.string().describe(\"First name\").nullable().optional(),\n});\n\nexport const omnisendCreateOrUpdateContact = action(\"OMNISEND_CREATE_OR_UPDATE_CONTACT\", {\n slug: \"omnisend-create-or-update-contact\",\n name: \"Create or Update Contact\",\n description: \"Tool to create or update a contact in Omnisend. Use after collecting subscriber details.\",\n input: OmnisendCreateOrUpdateContactInput,\n output: OmnisendCreateOrUpdateContactOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qCAAqCA,IAAAA,EAAE,OAAO;CACzD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,WAAW,CAAC,CAAC,SAAS;CAChD,QAAQA,IAAAA,EAAE,KAAK,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CAC9E,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS;CACxD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS;CAC3D,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CAC9D,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CAC1E,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;CAChE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS;CAC/D,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CAC7E,aAAaA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EAC9B,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;EAC/D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C;EACtE,UAAUA,IAAAA,EAAE,OAAO,EACnB,OAAOA,IAAAA,EAAE,OAAO;GAChB,QAAQA,IAAAA,EAAE,KAAK;IAAC;IAAc;IAAiB;GAAc,CAAC,CAAC,CAAC,SAAS,uCAAuC;GAChH,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;EAC9F,CAAC,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,EAC3D,CAAC,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;EAC7D,oBAAoBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;CAC3H,CAAC,CAAC,CAAC,CAAC,SAAS,iEAAiE;
|
|
1
|
+
{"version":3,"file":"create-or-update-contact.cjs","names":["z","action"],"sources":["../../src/actions/create-or-update-contact.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OmnisendCreateOrUpdateContactInput = z.object({\n city: z.string().describe(\"City name\").optional(),\n gender: z.enum([\"m\", \"f\"]).describe(\"Contact's gender ('m' or 'f')\").optional(),\n address: z.string().describe(\"Street address\").optional(),\n country: z.string().describe(\"Full country name\").optional(),\n lastName: z.string().describe(\"Contact's last name\").optional(),\n birthdate: z.string().describe(\"Birthdate in YYYY-MM-DD format\").optional(),\n firstName: z.string().describe(\"Contact's first name\").optional(),\n postalCode: z.string().describe(\"Postal or ZIP code\").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)\"),\n type: z.string().describe(\"Type of identifier; only 'email' supported\"),\n channels: z.object({\n email: z.object({\n status: z.enum([\"subscribed\", \"nonSubscribed\", \"unsubscribed\"]).describe(\"Subscription status for email channel\"),\n statusDate: z.string().describe(\"ISO 8601 timestamp when the status last changed\").optional(),\n}).describe(\"Email channel subscription details\").optional(),\n}).describe(\"Channel-specific subscription settings\").optional(),\n sendWelcomeMessage: z.boolean().describe(\"If true, Omnisend will send its default welcome email upon creation\").optional(),\n}).passthrough()).describe(\"One or more ways to identify the contact; at least one required\"),\n});\nexport const OmnisendCreateOrUpdateContactOutput = z.object({\n email: z.string().describe(\"Primary email address on record\").nullable(),\n phone: z.string().describe(\"Phone number, if provided\").nullable().optional(),\n lastName: z.string().describe(\"Last name\").nullable().optional(),\n contactID: z.string().describe(\"Omnisend-assigned unique contact ID\").nullable(),\n firstName: z.string().describe(\"First name\").nullable().optional(),\n}).passthrough();\n\nexport const omnisendCreateOrUpdateContact = action(\"OMNISEND_CREATE_OR_UPDATE_CONTACT\", {\n slug: \"omnisend-create-or-update-contact\",\n name: \"Create or Update Contact\",\n description: \"Tool to create or update a contact in Omnisend. Use after collecting subscriber details.\",\n input: OmnisendCreateOrUpdateContactInput,\n output: OmnisendCreateOrUpdateContactOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qCAAqCA,IAAAA,EAAE,OAAO;CACzD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,WAAW,CAAC,CAAC,SAAS;CAChD,QAAQA,IAAAA,EAAE,KAAK,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CAC9E,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS;CACxD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS;CAC3D,UAAUA,IAAAA,EAAE,OAAO,CAAC,CA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AC,SAAS;CAC5E,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,WAAW,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/D,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CAC/E,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,YAAY,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACnE,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,gCAAgCC,eAAAA,OAAO,qCAAqC;CACvF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -28,7 +28,7 @@ declare const OmnisendCreateOrUpdateContactInput: z.ZodObject<{
|
|
|
28
28
|
}, z.core.$strip>>;
|
|
29
29
|
}, z.core.$strip>>;
|
|
30
30
|
sendWelcomeMessage: z.ZodOptional<z.ZodBoolean>;
|
|
31
|
-
}, z.core.$
|
|
31
|
+
}, z.core.$loose>>;
|
|
32
32
|
}, z.core.$strip>;
|
|
33
33
|
declare const OmnisendCreateOrUpdateContactOutput: z.ZodObject<{
|
|
34
34
|
email: z.ZodNullable<z.ZodString>;
|
|
@@ -36,9 +36,10 @@ declare const OmnisendCreateOrUpdateContactOutput: z.ZodObject<{
|
|
|
36
36
|
lastName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
37
37
|
contactID: z.ZodNullable<z.ZodString>;
|
|
38
38
|
firstName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
39
|
-
}, z.core.$
|
|
39
|
+
}, z.core.$loose>;
|
|
40
40
|
declare const omnisendCreateOrUpdateContact: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
41
41
|
identifiers: {
|
|
42
|
+
[x: string]: unknown;
|
|
42
43
|
id: string;
|
|
43
44
|
type: string;
|
|
44
45
|
channels?: {
|
|
@@ -58,7 +59,19 @@ declare const omnisendCreateOrUpdateContact: import("@keystrokehq/action").Workf
|
|
|
58
59
|
firstName?: string | undefined;
|
|
59
60
|
postalCode?: string | undefined;
|
|
60
61
|
countryCode?: string | undefined;
|
|
61
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential
|
|
62
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"omnisend", z.ZodObject<{
|
|
63
|
+
connectionId: z.ZodString;
|
|
64
|
+
entityId: z.ZodString;
|
|
65
|
+
instanceId: z.ZodString;
|
|
66
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
67
|
+
accessToken: z.ZodString;
|
|
68
|
+
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"omnisend", z.ZodObject<{
|
|
69
|
+
connectionId: z.ZodString;
|
|
70
|
+
entityId: z.ZodString;
|
|
71
|
+
instanceId: z.ZodString;
|
|
72
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
73
|
+
accessToken: z.ZodString;
|
|
74
|
+
}, z.core.$strip>>]>;
|
|
62
75
|
//#endregion
|
|
63
76
|
export { omnisendCreateOrUpdateContact };
|
|
64
77
|
//# sourceMappingURL=create-or-update-contact.d.cts.map
|
|
@@ -28,7 +28,7 @@ declare const OmnisendCreateOrUpdateContactInput: z.ZodObject<{
|
|
|
28
28
|
}, z.core.$strip>>;
|
|
29
29
|
}, z.core.$strip>>;
|
|
30
30
|
sendWelcomeMessage: z.ZodOptional<z.ZodBoolean>;
|
|
31
|
-
}, z.core.$
|
|
31
|
+
}, z.core.$loose>>;
|
|
32
32
|
}, z.core.$strip>;
|
|
33
33
|
declare const OmnisendCreateOrUpdateContactOutput: z.ZodObject<{
|
|
34
34
|
email: z.ZodNullable<z.ZodString>;
|
|
@@ -36,9 +36,10 @@ declare const OmnisendCreateOrUpdateContactOutput: z.ZodObject<{
|
|
|
36
36
|
lastName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
37
37
|
contactID: z.ZodNullable<z.ZodString>;
|
|
38
38
|
firstName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
39
|
-
}, z.core.$
|
|
39
|
+
}, z.core.$loose>;
|
|
40
40
|
declare const omnisendCreateOrUpdateContact: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
41
41
|
identifiers: {
|
|
42
|
+
[x: string]: unknown;
|
|
42
43
|
id: string;
|
|
43
44
|
type: string;
|
|
44
45
|
channels?: {
|
|
@@ -58,7 +59,19 @@ declare const omnisendCreateOrUpdateContact: import("@keystrokehq/action").Workf
|
|
|
58
59
|
firstName?: string | undefined;
|
|
59
60
|
postalCode?: string | undefined;
|
|
60
61
|
countryCode?: string | undefined;
|
|
61
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential
|
|
62
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"omnisend", z.ZodObject<{
|
|
63
|
+
connectionId: z.ZodString;
|
|
64
|
+
entityId: z.ZodString;
|
|
65
|
+
instanceId: z.ZodString;
|
|
66
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
67
|
+
accessToken: z.ZodString;
|
|
68
|
+
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"omnisend", z.ZodObject<{
|
|
69
|
+
connectionId: z.ZodString;
|
|
70
|
+
entityId: z.ZodString;
|
|
71
|
+
instanceId: z.ZodString;
|
|
72
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
73
|
+
accessToken: z.ZodString;
|
|
74
|
+
}, z.core.$strip>>]>;
|
|
62
75
|
//#endregion
|
|
63
76
|
export { omnisendCreateOrUpdateContact };
|
|
64
77
|
//# sourceMappingURL=create-or-update-contact.d.mts.map
|
|
@@ -26,7 +26,7 @@ const omnisendCreateOrUpdateContact = action("OMNISEND_CREATE_OR_UPDATE_CONTACT"
|
|
|
26
26
|
statusDate: z.string().describe("ISO 8601 timestamp when the status last changed").optional()
|
|
27
27
|
}).describe("Email channel subscription details").optional() }).describe("Channel-specific subscription settings").optional(),
|
|
28
28
|
sendWelcomeMessage: z.boolean().describe("If true, Omnisend will send its default welcome email upon creation").optional()
|
|
29
|
-
})).describe("One or more ways to identify the contact; at least one required")
|
|
29
|
+
}).passthrough()).describe("One or more ways to identify the contact; at least one required")
|
|
30
30
|
}),
|
|
31
31
|
output: z.object({
|
|
32
32
|
email: z.string().describe("Primary email address on record").nullable(),
|
|
@@ -34,7 +34,7 @@ const omnisendCreateOrUpdateContact = action("OMNISEND_CREATE_OR_UPDATE_CONTACT"
|
|
|
34
34
|
lastName: z.string().describe("Last name").nullable().optional(),
|
|
35
35
|
contactID: z.string().describe("Omnisend-assigned unique contact ID").nullable(),
|
|
36
36
|
firstName: z.string().describe("First name").nullable().optional()
|
|
37
|
-
})
|
|
37
|
+
}).passthrough()
|
|
38
38
|
});
|
|
39
39
|
//#endregion
|
|
40
40
|
export { omnisendCreateOrUpdateContact };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-or-update-contact.mjs","names":[],"sources":["../../src/actions/create-or-update-contact.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OmnisendCreateOrUpdateContactInput = z.object({\n city: z.string().describe(\"City name\").optional(),\n gender: z.enum([\"m\", \"f\"]).describe(\"Contact's gender ('m' or 'f')\").optional(),\n address: z.string().describe(\"Street address\").optional(),\n country: z.string().describe(\"Full country name\").optional(),\n lastName: z.string().describe(\"Contact's last name\").optional(),\n birthdate: z.string().describe(\"Birthdate in YYYY-MM-DD format\").optional(),\n firstName: z.string().describe(\"Contact's first name\").optional(),\n postalCode: z.string().describe(\"Postal or ZIP code\").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)\"),\n type: z.string().describe(\"Type of identifier; only 'email' supported\"),\n channels: z.object({\n email: z.object({\n status: z.enum([\"subscribed\", \"nonSubscribed\", \"unsubscribed\"]).describe(\"Subscription status for email channel\"),\n statusDate: z.string().describe(\"ISO 8601 timestamp when the status last changed\").optional(),\n}).describe(\"Email channel subscription details\").optional(),\n}).describe(\"Channel-specific subscription settings\").optional(),\n sendWelcomeMessage: z.boolean().describe(\"If true, Omnisend will send its default welcome email upon creation\").optional(),\n})).describe(\"One or more ways to identify the contact; at least one required\"),\n});\nexport const OmnisendCreateOrUpdateContactOutput = z.object({\n email: z.string().describe(\"Primary email address on record\").nullable(),\n phone: z.string().describe(\"Phone number, if provided\").nullable().optional(),\n lastName: z.string().describe(\"Last name\").nullable().optional(),\n contactID: z.string().describe(\"Omnisend-assigned unique contact ID\").nullable(),\n firstName: z.string().describe(\"First name\").nullable().optional(),\n});\n\nexport const omnisendCreateOrUpdateContact = action(\"OMNISEND_CREATE_OR_UPDATE_CONTACT\", {\n slug: \"omnisend-create-or-update-contact\",\n name: \"Create or Update Contact\",\n description: \"Tool to create or update a contact in Omnisend. Use after collecting subscriber details.\",\n input: OmnisendCreateOrUpdateContactInput,\n output: OmnisendCreateOrUpdateContactOutput,\n});\n"],"mappings":";;AAkCA,MAAa,gCAAgC,OAAO,qCAAqC;CACvF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAlCgD,EAAE,OAAO;EACzD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,WAAW,CAAC,CAAC,SAAS;EAChD,QAAQ,EAAE,KAAK,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;EAC9E,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS;EACxD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS;EAC3D,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;EAC9D,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;EAC1E,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;EAChE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS;EAC/D,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;EAC7E,aAAa,EAAE,MAAM,EAAE,OAAO;GAC9B,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;GAC/D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C;GACtE,UAAU,EAAE,OAAO,EACnB,OAAO,EAAE,OAAO;IAChB,QAAQ,EAAE,KAAK;KAAC;KAAc;KAAiB;IAAc,CAAC,CAAC,CAAC,SAAS,uCAAuC;IAChH,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;GAC9F,CAAC,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,EAC3D,CAAC,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;GAC7D,oBAAoB,EAAE,QAAQ,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;EAC3H,CAAC,CAAC,CAAC,CAAC,SAAS,iEAAiE;
|
|
1
|
+
{"version":3,"file":"create-or-update-contact.mjs","names":[],"sources":["../../src/actions/create-or-update-contact.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OmnisendCreateOrUpdateContactInput = z.object({\n city: z.string().describe(\"City name\").optional(),\n gender: z.enum([\"m\", \"f\"]).describe(\"Contact's gender ('m' or 'f')\").optional(),\n address: z.string().describe(\"Street address\").optional(),\n country: z.string().describe(\"Full country name\").optional(),\n lastName: z.string().describe(\"Contact's last name\").optional(),\n birthdate: z.string().describe(\"Birthdate in YYYY-MM-DD format\").optional(),\n firstName: z.string().describe(\"Contact's first name\").optional(),\n postalCode: z.string().describe(\"Postal or ZIP code\").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)\"),\n type: z.string().describe(\"Type of identifier; only 'email' supported\"),\n channels: z.object({\n email: z.object({\n status: z.enum([\"subscribed\", \"nonSubscribed\", \"unsubscribed\"]).describe(\"Subscription status for email channel\"),\n statusDate: z.string().describe(\"ISO 8601 timestamp when the status last changed\").optional(),\n}).describe(\"Email channel subscription details\").optional(),\n}).describe(\"Channel-specific subscription settings\").optional(),\n sendWelcomeMessage: z.boolean().describe(\"If true, Omnisend will send its default welcome email upon creation\").optional(),\n}).passthrough()).describe(\"One or more ways to identify the contact; at least one required\"),\n});\nexport const OmnisendCreateOrUpdateContactOutput = z.object({\n email: z.string().describe(\"Primary email address on record\").nullable(),\n phone: z.string().describe(\"Phone number, if provided\").nullable().optional(),\n lastName: z.string().describe(\"Last name\").nullable().optional(),\n contactID: z.string().describe(\"Omnisend-assigned unique contact ID\").nullable(),\n firstName: z.string().describe(\"First name\").nullable().optional(),\n}).passthrough();\n\nexport const omnisendCreateOrUpdateContact = action(\"OMNISEND_CREATE_OR_UPDATE_CONTACT\", {\n slug: \"omnisend-create-or-update-contact\",\n name: \"Create or Update Contact\",\n description: \"Tool to create or update a contact in Omnisend. Use after collecting subscriber details.\",\n input: OmnisendCreateOrUpdateContactInput,\n output: OmnisendCreateOrUpdateContactOutput,\n});\n"],"mappings":";;AAkCA,MAAa,gCAAgC,OAAO,qCAAqC;CACvF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAlCgD,EAAE,OAAO;EACzD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,WAAW,CAAC,CAAC,SAAS;EAChD,QAAQ,EAAE,KAAK,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;EAC9E,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS;EACxD,SAAS,EA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WAAW,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC/D,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;EAC/E,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,YAAY,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnE,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
|
|
@@ -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,CAA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AAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;CAChE,CAAC,CAAC,CAAC,SAAS,8CAA8C,CAAC,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;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,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,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,cAAc,CAAC,CAAC,SAAS;EAC5D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C;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AAM;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>;
|
|
@@ -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;
|
|
@@ -164,7 +165,19 @@ declare const omnisendCreateOrder: import("@keystrokehq/action").WorkflowActionD
|
|
|
164
165
|
} | undefined;
|
|
165
166
|
fulfillmentStatus?: "inProgress" | "unfulfilled" | "fulfilled" | "delivered" | "restocked" | undefined;
|
|
166
167
|
subTotalTaxIncluded?: boolean | undefined;
|
|
167
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential
|
|
168
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"omnisend", z.ZodObject<{
|
|
169
|
+
connectionId: z.ZodString;
|
|
170
|
+
entityId: z.ZodString;
|
|
171
|
+
instanceId: z.ZodString;
|
|
172
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
173
|
+
accessToken: z.ZodString;
|
|
174
|
+
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"omnisend", z.ZodObject<{
|
|
175
|
+
connectionId: z.ZodString;
|
|
176
|
+
entityId: z.ZodString;
|
|
177
|
+
instanceId: z.ZodString;
|
|
178
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
179
|
+
accessToken: z.ZodString;
|
|
180
|
+
}, z.core.$strip>>]>;
|
|
168
181
|
//#endregion
|
|
169
182
|
export { omnisendCreateOrder };
|
|
170
183
|
//# sourceMappingURL=create-order.d.cts.map
|
|
@@ -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"}
|
|
@@ -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>;
|
|
@@ -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;
|
|
@@ -164,7 +165,19 @@ declare const omnisendCreateOrder: import("@keystrokehq/action").WorkflowActionD
|
|
|
164
165
|
} | undefined;
|
|
165
166
|
fulfillmentStatus?: "inProgress" | "unfulfilled" | "fulfilled" | "delivered" | "restocked" | undefined;
|
|
166
167
|
subTotalTaxIncluded?: boolean | undefined;
|
|
167
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential
|
|
168
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"omnisend", z.ZodObject<{
|
|
169
|
+
connectionId: z.ZodString;
|
|
170
|
+
entityId: z.ZodString;
|
|
171
|
+
instanceId: z.ZodString;
|
|
172
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
173
|
+
accessToken: z.ZodString;
|
|
174
|
+
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"omnisend", z.ZodObject<{
|
|
175
|
+
connectionId: z.ZodString;
|
|
176
|
+
entityId: z.ZodString;
|
|
177
|
+
instanceId: z.ZodString;
|
|
178
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
179
|
+
accessToken: z.ZodString;
|
|
180
|
+
}, z.core.$strip>>]>;
|
|
168
181
|
//#endregion
|
|
169
182
|
export { omnisendCreateOrder };
|
|
170
183
|
//# sourceMappingURL=create-order.d.mts.map
|
|
@@ -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"}
|
|
@@ -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,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,OAAO,CAAC,CAAC,SAAS,iBAAiB,CAAC,CAAC,SAAS;EACxD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc,CAAC,CAAC,SAAS;EACrD,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;EAClE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC;EACtE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC;EACpE,UAAU,EAA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CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS;GACxD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc,CAAC,CAAC,SAAS;GACtD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc,CAAC,CAAC,SAAS;GACtD,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,WAAW,CAAC,CAAC,SAAS;GACpD,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,YAAY,CAAC,CAAC,SAAS;GACtD,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS;GAC/D,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;EAChE,CAAC,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;EACnE,mBAAmB,EAAE,KAAK;GAAC;GAAe;GAAc;GAAa;GAAa;EAAW,CAAC,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;EACrJ,qBAAqB,EAAE,QAAQ,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CAC5F,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,OAAO,CAAC,CAAC,SAAS,iBAAiB,CAAC,CAAC,SAAS;EACxD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc,CAAC,CAAC,SAAS;EACrD,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;EAClE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC;EACtE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC;EACpE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS;EAC7D,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0DAA0D;EAC9F,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;EAChE,UAAU,EAAE,MAAM,EA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;GACtD,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,WAAW,CAAC,CAAC,SAAS;GACpD,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,YAAY,CAAC,CAAC,SAAS;GACtD,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS;GAC/D,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;EAChE,CAAC,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;EACnE,mBAAmB,EAAE,KAAK;GAAC;GAAe;GAAc;GAAa;GAAa;EAAW,CAAC,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;EACrJ,qBAAqB,EAAE,QAAQ,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CAC5F,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,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,11 +7,23 @@ 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;
|
|
14
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential
|
|
14
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"omnisend", z.ZodObject<{
|
|
15
|
+
connectionId: z.ZodString;
|
|
16
|
+
entityId: z.ZodString;
|
|
17
|
+
instanceId: z.ZodString;
|
|
18
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
19
|
+
accessToken: z.ZodString;
|
|
20
|
+
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"omnisend", z.ZodObject<{
|
|
21
|
+
connectionId: z.ZodString;
|
|
22
|
+
entityId: z.ZodString;
|
|
23
|
+
instanceId: z.ZodString;
|
|
24
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
25
|
+
accessToken: z.ZodString;
|
|
26
|
+
}, z.core.$strip>>]>;
|
|
15
27
|
//#endregion
|
|
16
28
|
export { omnisendCreateProductCategory };
|
|
17
29
|
//# sourceMappingURL=create-product-category.d.cts.map
|
|
@@ -7,11 +7,23 @@ 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;
|
|
14
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential
|
|
14
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"omnisend", z.ZodObject<{
|
|
15
|
+
connectionId: z.ZodString;
|
|
16
|
+
entityId: z.ZodString;
|
|
17
|
+
instanceId: z.ZodString;
|
|
18
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
19
|
+
accessToken: z.ZodString;
|
|
20
|
+
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"omnisend", z.ZodObject<{
|
|
21
|
+
connectionId: z.ZodString;
|
|
22
|
+
entityId: z.ZodString;
|
|
23
|
+
instanceId: z.ZodString;
|
|
24
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
25
|
+
accessToken: z.ZodString;
|
|
26
|
+
}, z.core.$strip>>]>;
|
|
15
27
|
//#endregion
|
|
16
28
|
export { omnisendCreateProductCategory };
|
|
17
29
|
//# sourceMappingURL=create-product-category.d.mts.map
|
|
@@ -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"}
|