@keystrokehq/simplero 0.1.4 → 0.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/action.cjs.map +1 -1
- package/dist/action.mjs.map +1 -1
- package/dist/actions/add-tag-to-contact.cjs +1 -0
- package/dist/actions/add-tag-to-contact.cjs.map +1 -1
- package/dist/actions/add-tag-to-contact.d.cts +3 -4
- package/dist/actions/add-tag-to-contact.d.cts.map +1 -1
- package/dist/actions/add-tag-to-contact.d.mts +3 -4
- package/dist/actions/add-tag-to-contact.d.mts.map +1 -1
- package/dist/actions/add-tag-to-contact.mjs +1 -0
- package/dist/actions/add-tag-to-contact.mjs.map +1 -1
- package/dist/actions/bulk-subscribe-to-list.cjs +1 -0
- package/dist/actions/bulk-subscribe-to-list.cjs.map +1 -1
- package/dist/actions/bulk-subscribe-to-list.d.cts +3 -19
- package/dist/actions/bulk-subscribe-to-list.d.cts.map +1 -1
- package/dist/actions/bulk-subscribe-to-list.d.mts +3 -19
- package/dist/actions/bulk-subscribe-to-list.d.mts.map +1 -1
- package/dist/actions/bulk-subscribe-to-list.mjs +1 -0
- package/dist/actions/bulk-subscribe-to-list.mjs.map +1 -1
- package/dist/actions/create-or-update-administrator.cjs +1 -0
- package/dist/actions/create-or-update-administrator.cjs.map +1 -1
- package/dist/actions/create-or-update-administrator.d.cts +3 -10
- package/dist/actions/create-or-update-administrator.d.cts.map +1 -1
- package/dist/actions/create-or-update-administrator.d.mts +3 -10
- package/dist/actions/create-or-update-administrator.d.mts.map +1 -1
- package/dist/actions/create-or-update-administrator.mjs +1 -0
- package/dist/actions/create-or-update-administrator.mjs.map +1 -1
- package/dist/actions/create-or-update-contact.cjs +1 -0
- package/dist/actions/create-or-update-contact.cjs.map +1 -1
- package/dist/actions/create-or-update-contact.d.cts +3 -18
- package/dist/actions/create-or-update-contact.d.cts.map +1 -1
- package/dist/actions/create-or-update-contact.d.mts +3 -18
- package/dist/actions/create-or-update-contact.d.mts.map +1 -1
- package/dist/actions/create-or-update-contact.mjs +1 -0
- package/dist/actions/create-or-update-contact.mjs.map +1 -1
- package/dist/actions/find-contact-by-email.cjs +1 -0
- package/dist/actions/find-contact-by-email.cjs.map +1 -1
- package/dist/actions/find-contact-by-email.d.cts +3 -3
- package/dist/actions/find-contact-by-email.d.cts.map +1 -1
- package/dist/actions/find-contact-by-email.d.mts +3 -3
- package/dist/actions/find-contact-by-email.d.mts.map +1 -1
- package/dist/actions/find-contact-by-email.mjs +1 -0
- package/dist/actions/find-contact-by-email.mjs.map +1 -1
- package/dist/actions/find-subscription-by-email.cjs +1 -0
- package/dist/actions/find-subscription-by-email.cjs.map +1 -1
- package/dist/actions/find-subscription-by-email.d.cts +3 -4
- package/dist/actions/find-subscription-by-email.d.cts.map +1 -1
- package/dist/actions/find-subscription-by-email.d.mts +3 -4
- package/dist/actions/find-subscription-by-email.d.mts.map +1 -1
- package/dist/actions/find-subscription-by-email.mjs +1 -0
- package/dist/actions/find-subscription-by-email.mjs.map +1 -1
- package/dist/actions/get-admin-roles.cjs +1 -0
- package/dist/actions/get-admin-roles.cjs.map +1 -1
- package/dist/actions/get-admin-roles.d.cts +3 -1
- package/dist/actions/get-admin-roles.d.cts.map +1 -1
- package/dist/actions/get-admin-roles.d.mts +3 -1
- package/dist/actions/get-admin-roles.d.mts.map +1 -1
- package/dist/actions/get-admin-roles.mjs +1 -0
- package/dist/actions/get-admin-roles.mjs.map +1 -1
- package/dist/actions/get-administrator-by-id.cjs +1 -0
- package/dist/actions/get-administrator-by-id.cjs.map +1 -1
- package/dist/actions/get-administrator-by-id.d.cts +3 -3
- package/dist/actions/get-administrator-by-id.d.cts.map +1 -1
- package/dist/actions/get-administrator-by-id.d.mts +3 -3
- package/dist/actions/get-administrator-by-id.d.mts.map +1 -1
- package/dist/actions/get-administrator-by-id.mjs +1 -0
- package/dist/actions/get-administrator-by-id.mjs.map +1 -1
- package/dist/actions/get-administrators.cjs +1 -0
- package/dist/actions/get-administrators.cjs.map +1 -1
- package/dist/actions/get-administrators.d.cts +3 -1
- package/dist/actions/get-administrators.d.cts.map +1 -1
- package/dist/actions/get-administrators.d.mts +3 -1
- package/dist/actions/get-administrators.d.mts.map +1 -1
- package/dist/actions/get-administrators.mjs +1 -0
- package/dist/actions/get-administrators.mjs.map +1 -1
- package/dist/actions/get-async-request-status.cjs +1 -0
- package/dist/actions/get-async-request-status.cjs.map +1 -1
- package/dist/actions/get-async-request-status.d.cts +3 -3
- package/dist/actions/get-async-request-status.d.cts.map +1 -1
- package/dist/actions/get-async-request-status.d.mts +3 -3
- package/dist/actions/get-async-request-status.d.mts.map +1 -1
- package/dist/actions/get-async-request-status.mjs +1 -0
- package/dist/actions/get-async-request-status.mjs.map +1 -1
- package/dist/actions/get-contact-by-id.cjs +1 -0
- package/dist/actions/get-contact-by-id.cjs.map +1 -1
- package/dist/actions/get-contact-by-id.d.cts +3 -3
- package/dist/actions/get-contact-by-id.d.cts.map +1 -1
- package/dist/actions/get-contact-by-id.d.mts +3 -3
- package/dist/actions/get-contact-by-id.d.mts.map +1 -1
- package/dist/actions/get-contact-by-id.mjs +1 -0
- package/dist/actions/get-contact-by-id.mjs.map +1 -1
- package/dist/actions/get-invoices.cjs +1 -0
- package/dist/actions/get-invoices.cjs.map +1 -1
- package/dist/actions/get-invoices.d.cts +3 -8
- package/dist/actions/get-invoices.d.cts.map +1 -1
- package/dist/actions/get-invoices.d.mts +3 -8
- package/dist/actions/get-invoices.d.mts.map +1 -1
- package/dist/actions/get-invoices.mjs +1 -0
- package/dist/actions/get-invoices.mjs.map +1 -1
- package/dist/actions/get-lists.cjs +1 -0
- package/dist/actions/get-lists.cjs.map +1 -1
- package/dist/actions/get-lists.d.cts +3 -1
- package/dist/actions/get-lists.d.cts.map +1 -1
- package/dist/actions/get-lists.d.mts +3 -1
- package/dist/actions/get-lists.d.mts.map +1 -1
- package/dist/actions/get-lists.mjs +1 -0
- package/dist/actions/get-lists.mjs.map +1 -1
- package/dist/actions/get-products.cjs +1 -0
- package/dist/actions/get-products.cjs.map +1 -1
- package/dist/actions/get-products.d.cts +3 -1
- package/dist/actions/get-products.d.cts.map +1 -1
- package/dist/actions/get-products.d.mts +3 -1
- package/dist/actions/get-products.d.mts.map +1 -1
- package/dist/actions/get-products.mjs +1 -0
- package/dist/actions/get-products.mjs.map +1 -1
- package/dist/actions/remove-administrator.cjs +1 -0
- package/dist/actions/remove-administrator.cjs.map +1 -1
- package/dist/actions/remove-administrator.d.cts +3 -3
- package/dist/actions/remove-administrator.d.cts.map +1 -1
- package/dist/actions/remove-administrator.d.mts +3 -3
- package/dist/actions/remove-administrator.d.mts.map +1 -1
- package/dist/actions/remove-administrator.mjs +1 -0
- package/dist/actions/remove-administrator.mjs.map +1 -1
- package/dist/actions/remove-tag-from-contact.cjs +1 -0
- package/dist/actions/remove-tag-from-contact.cjs.map +1 -1
- package/dist/actions/remove-tag-from-contact.d.cts +3 -4
- package/dist/actions/remove-tag-from-contact.d.cts.map +1 -1
- package/dist/actions/remove-tag-from-contact.d.mts +3 -4
- package/dist/actions/remove-tag-from-contact.d.mts.map +1 -1
- package/dist/actions/remove-tag-from-contact.mjs +1 -0
- package/dist/actions/remove-tag-from-contact.mjs.map +1 -1
- package/dist/actions/subscribe-to-list.cjs +1 -0
- package/dist/actions/subscribe-to-list.cjs.map +1 -1
- package/dist/actions/subscribe-to-list.d.cts +3 -16
- package/dist/actions/subscribe-to-list.d.cts.map +1 -1
- package/dist/actions/subscribe-to-list.d.mts +3 -16
- package/dist/actions/subscribe-to-list.d.mts.map +1 -1
- package/dist/actions/subscribe-to-list.mjs +1 -0
- package/dist/actions/subscribe-to-list.mjs.map +1 -1
- package/dist/actions/unsubscribe-from-list.cjs +1 -0
- package/dist/actions/unsubscribe-from-list.cjs.map +1 -1
- package/dist/actions/unsubscribe-from-list.d.cts +3 -4
- package/dist/actions/unsubscribe-from-list.d.cts.map +1 -1
- package/dist/actions/unsubscribe-from-list.d.mts +3 -4
- package/dist/actions/unsubscribe-from-list.d.mts.map +1 -1
- package/dist/actions/unsubscribe-from-list.mjs +1 -0
- package/dist/actions/unsubscribe-from-list.mjs.map +1 -1
- package/dist/actions/update-contact-credentials.cjs +1 -0
- package/dist/actions/update-contact-credentials.cjs.map +1 -1
- package/dist/actions/update-contact-credentials.d.cts +3 -8
- package/dist/actions/update-contact-credentials.d.cts.map +1 -1
- package/dist/actions/update-contact-credentials.d.mts +3 -8
- package/dist/actions/update-contact-credentials.d.mts.map +1 -1
- package/dist/actions/update-contact-credentials.mjs +1 -0
- package/dist/actions/update-contact-credentials.mjs.map +1 -1
- package/dist/app.cjs +5 -2
- package/dist/app.cjs.map +1 -1
- package/dist/app.d.cts +7 -1
- package/dist/app.d.cts.map +1 -1
- package/dist/app.d.mts +7 -1
- package/dist/app.d.mts.map +1 -1
- package/dist/app.mjs +3 -2
- package/dist/app.mjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +1 -1
- package/package.json +2 -2
package/dist/action.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action.cjs","names":["simplero","executeSimpleroTool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { simplero } from \"./app\";\nimport { executeSimpleroTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output:
|
|
1
|
+
{"version":3,"file":"action.cjs","names":["simplero","executeSimpleroTool"],"sources":["../src/action.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { simplero } from \"./app\";\nimport { executeSimpleroTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType, TOutput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: TOutput;\n },\n): AppAction<TInput, TOutput, typeof simplero.credential> {\n return simplero.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await executeSimpleroTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAOA,SAAgB,OACd,MACA,KAOwD;CACxD,OAAOA,YAAAA,SAAS,OAAO;EACrB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAMC,gBAAAA,oBAAoB,MAAM,KAAgC,CAAC;EAC3F;CACF,CAAC;AACH"}
|
package/dist/action.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { simplero } from \"./app\";\nimport { executeSimpleroTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output:
|
|
1
|
+
{"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { simplero } from \"./app\";\nimport { executeSimpleroTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType, TOutput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: TOutput;\n },\n): AppAction<TInput, TOutput, typeof simplero.credential> {\n return simplero.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await executeSimpleroTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAOA,SAAgB,OACd,MACA,KAOwD;CACxD,OAAO,SAAS,OAAO;EACrB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,oBAAoB,MAAM,KAAgC,CAAC;EAC3F;CACF,CAAC;AACH"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add-tag-to-contact.cjs","names":["z","action"],"sources":["../../src/actions/add-tag-to-contact.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SimpleroAddTagToContactInput = z.object({\n tag: z.string().describe(\"The tag name to add to the contact\"),\n email: z.string().describe(\"The contact's email address\"),\n}).describe(\"Request model for adding a tag to a contact.\");\nexport const SimpleroAddTagToContactOutput = z.object({\n id: z.number().int().describe(\"Contact's internal identifier\").nullable().optional(),\n ref: z.number().int().describe(\"Reference field\").nullable().optional(),\n name: z.string().describe(\"Full name of the contact\").nullable().optional(),\n email: z.string().describe(\"Contact's email address\").nullable().optional(),\n phone: z.string().describe(\"Contact's phone number\").nullable().optional(),\n track: z.string().describe(\"Tracking field\").nullable().optional(),\n referrer: z.string().describe(\"Referrer information\").nullable().optional(),\n last_name: z.string().describe(\"Contact's last name\").nullable().optional(),\n tag_names: z.string().describe(\"Comma-separated string of tags associated with the contact\").nullable().optional(),\n created_at: z.string().describe(\"ISO 8601 timestamp of contact creation\").nullable().optional(),\n ip_address: z.string().describe(\"IP address\").nullable().optional(),\n updated_at: z.string().describe(\"ISO 8601 timestamp of last update\").nullable().optional(),\n first_names: z.string().describe(\"Contact's first name(s)\").nullable().optional(),\n simplero_id: z.string().describe(\"Simplero identifier\").nullable().optional(),\n affiliate_id: z.number().int().describe(\"Associated affiliate ID\").nullable().optional(),\n contact_since: z.string().describe(\"Human-readable duration since contact creation\").nullable().optional(),\n do_not_contact: z.boolean().describe(\"Boolean flag for contact preferences\").nullable().optional(),\n lifetime_value_cents_excl_tax: z.number().int().describe(\"Lifetime value in cents (excluding tax)\").nullable().optional(),\n lead_acquisition_cost_cents_excl_tax: z.number().int().describe(\"Lead acquisition cost in cents (excluding tax)\").nullable().optional(),\n customer_acquisition_cost_cents_excl_tax: z.number().int().describe(\"Customer acquisition cost in cents (excluding tax)\").nullable().optional(),\n}).passthrough().describe(\"Response model containing the complete contact object after adding the tag.\");\n\nexport const simpleroAddTagToContact = action(\"SIMPLERO_ADD_TAG_TO_CONTACT\", {\n slug: \"simplero-add-tag-to-contact\",\n name: \"Add Tag to Contact\",\n description: \"Tool to add a tag to a contact identified by email address. Use when you need to tag a contact for segmentation or tracking purposes.\",\n input: SimpleroAddTagToContactInput,\n output: SimpleroAddTagToContactOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"add-tag-to-contact.cjs","names":["z","action"],"sources":["../../src/actions/add-tag-to-contact.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { simplero } from \"../app\";\n\nexport const SimpleroAddTagToContactInput = z.object({\n tag: z.string().describe(\"The tag name to add to the contact\"),\n email: z.string().describe(\"The contact's email address\"),\n}).describe(\"Request model for adding a tag to a contact.\");\nexport const SimpleroAddTagToContactOutput = z.object({\n id: z.number().int().describe(\"Contact's internal identifier\").nullable().optional(),\n ref: z.number().int().describe(\"Reference field\").nullable().optional(),\n name: z.string().describe(\"Full name of the contact\").nullable().optional(),\n email: z.string().describe(\"Contact's email address\").nullable().optional(),\n phone: z.string().describe(\"Contact's phone number\").nullable().optional(),\n track: z.string().describe(\"Tracking field\").nullable().optional(),\n referrer: z.string().describe(\"Referrer information\").nullable().optional(),\n last_name: z.string().describe(\"Contact's last name\").nullable().optional(),\n tag_names: z.string().describe(\"Comma-separated string of tags associated with the contact\").nullable().optional(),\n created_at: z.string().describe(\"ISO 8601 timestamp of contact creation\").nullable().optional(),\n ip_address: z.string().describe(\"IP address\").nullable().optional(),\n updated_at: z.string().describe(\"ISO 8601 timestamp of last update\").nullable().optional(),\n first_names: z.string().describe(\"Contact's first name(s)\").nullable().optional(),\n simplero_id: z.string().describe(\"Simplero identifier\").nullable().optional(),\n affiliate_id: z.number().int().describe(\"Associated affiliate ID\").nullable().optional(),\n contact_since: z.string().describe(\"Human-readable duration since contact creation\").nullable().optional(),\n do_not_contact: z.boolean().describe(\"Boolean flag for contact preferences\").nullable().optional(),\n lifetime_value_cents_excl_tax: z.number().int().describe(\"Lifetime value in cents (excluding tax)\").nullable().optional(),\n lead_acquisition_cost_cents_excl_tax: z.number().int().describe(\"Lead acquisition cost in cents (excluding tax)\").nullable().optional(),\n customer_acquisition_cost_cents_excl_tax: z.number().int().describe(\"Customer acquisition cost in cents (excluding tax)\").nullable().optional(),\n}).passthrough().describe(\"Response model containing the complete contact object after adding the tag.\");\n\nexport const simpleroAddTagToContact: AppAction<\n typeof SimpleroAddTagToContactInput,\n typeof SimpleroAddTagToContactOutput,\n typeof simplero.credential\n> = action(\"SIMPLERO_ADD_TAG_TO_CONTACT\", {\n slug: \"simplero-add-tag-to-contact\",\n name: \"Add Tag to Contact\",\n description: \"Tool to add a tag to a contact identified by email address. Use when you need to tag a contact for segmentation or tracking purposes.\",\n input: SimpleroAddTagToContactInput,\n output: SimpleroAddTagToContactOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC;CAC7D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B;AAC1D,CAAC,CAAC,CAAC,SAAS,8CAA8C;AAC1D,MAAa,gCAAgCA,IAAAA,EAAE,OAAO;CACpD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;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,SAAS,CAAC,CAAC,SAAS;CAC5E,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvF,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzG,gBAAgBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjG,+BAA+BA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxH,sCAAsCA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtI,0CAA0CA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAChJ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6EAA6E;AAEvG,MAAa,0BAITC,eAAAA,OAAO,+BAA+B;CACxC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { simplero } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/add-tag-to-contact.d.ts
|
|
@@ -27,10 +29,7 @@ declare const SimpleroAddTagToContactOutput: z.ZodObject<{
|
|
|
27
29
|
lead_acquisition_cost_cents_excl_tax: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
28
30
|
customer_acquisition_cost_cents_excl_tax: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
29
31
|
}, z.core.$loose>;
|
|
30
|
-
declare const simpleroAddTagToContact:
|
|
31
|
-
tag: string;
|
|
32
|
-
email: string;
|
|
33
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
32
|
+
declare const simpleroAddTagToContact: AppAction<typeof SimpleroAddTagToContactInput, typeof SimpleroAddTagToContactOutput, typeof simplero.credential>;
|
|
34
33
|
//#endregion
|
|
35
34
|
export { simpleroAddTagToContact };
|
|
36
35
|
//# sourceMappingURL=add-tag-to-contact.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add-tag-to-contact.d.cts","names":[],"sources":["../../src/actions/add-tag-to-contact.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"add-tag-to-contact.d.cts","names":[],"sources":["../../src/actions/add-tag-to-contact.ts"],"mappings":";;;;;cAMa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;cAI5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;cAuB7B,uBAAA,EAAyB,SAAA,QAC7B,4BAAA,SACA,6BAAA,SACA,QAAA,CAAS,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { simplero } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/add-tag-to-contact.d.ts
|
|
@@ -27,10 +29,7 @@ declare const SimpleroAddTagToContactOutput: z.ZodObject<{
|
|
|
27
29
|
lead_acquisition_cost_cents_excl_tax: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
28
30
|
customer_acquisition_cost_cents_excl_tax: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
29
31
|
}, z.core.$loose>;
|
|
30
|
-
declare const simpleroAddTagToContact:
|
|
31
|
-
tag: string;
|
|
32
|
-
email: string;
|
|
33
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
32
|
+
declare const simpleroAddTagToContact: AppAction<typeof SimpleroAddTagToContactInput, typeof SimpleroAddTagToContactOutput, typeof simplero.credential>;
|
|
34
33
|
//#endregion
|
|
35
34
|
export { simpleroAddTagToContact };
|
|
36
35
|
//# sourceMappingURL=add-tag-to-contact.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add-tag-to-contact.d.mts","names":[],"sources":["../../src/actions/add-tag-to-contact.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"add-tag-to-contact.d.mts","names":[],"sources":["../../src/actions/add-tag-to-contact.ts"],"mappings":";;;;;cAMa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;cAI5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;cAuB7B,uBAAA,EAAyB,SAAA,QAC7B,4BAAA,SACA,6BAAA,SACA,QAAA,CAAS,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add-tag-to-contact.mjs","names":[],"sources":["../../src/actions/add-tag-to-contact.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SimpleroAddTagToContactInput = z.object({\n tag: z.string().describe(\"The tag name to add to the contact\"),\n email: z.string().describe(\"The contact's email address\"),\n}).describe(\"Request model for adding a tag to a contact.\");\nexport const SimpleroAddTagToContactOutput = z.object({\n id: z.number().int().describe(\"Contact's internal identifier\").nullable().optional(),\n ref: z.number().int().describe(\"Reference field\").nullable().optional(),\n name: z.string().describe(\"Full name of the contact\").nullable().optional(),\n email: z.string().describe(\"Contact's email address\").nullable().optional(),\n phone: z.string().describe(\"Contact's phone number\").nullable().optional(),\n track: z.string().describe(\"Tracking field\").nullable().optional(),\n referrer: z.string().describe(\"Referrer information\").nullable().optional(),\n last_name: z.string().describe(\"Contact's last name\").nullable().optional(),\n tag_names: z.string().describe(\"Comma-separated string of tags associated with the contact\").nullable().optional(),\n created_at: z.string().describe(\"ISO 8601 timestamp of contact creation\").nullable().optional(),\n ip_address: z.string().describe(\"IP address\").nullable().optional(),\n updated_at: z.string().describe(\"ISO 8601 timestamp of last update\").nullable().optional(),\n first_names: z.string().describe(\"Contact's first name(s)\").nullable().optional(),\n simplero_id: z.string().describe(\"Simplero identifier\").nullable().optional(),\n affiliate_id: z.number().int().describe(\"Associated affiliate ID\").nullable().optional(),\n contact_since: z.string().describe(\"Human-readable duration since contact creation\").nullable().optional(),\n do_not_contact: z.boolean().describe(\"Boolean flag for contact preferences\").nullable().optional(),\n lifetime_value_cents_excl_tax: z.number().int().describe(\"Lifetime value in cents (excluding tax)\").nullable().optional(),\n lead_acquisition_cost_cents_excl_tax: z.number().int().describe(\"Lead acquisition cost in cents (excluding tax)\").nullable().optional(),\n customer_acquisition_cost_cents_excl_tax: z.number().int().describe(\"Customer acquisition cost in cents (excluding tax)\").nullable().optional(),\n}).passthrough().describe(\"Response model containing the complete contact object after adding the tag.\");\n\nexport const simpleroAddTagToContact = action(\"SIMPLERO_ADD_TAG_TO_CONTACT\", {\n slug: \"simplero-add-tag-to-contact\",\n name: \"Add Tag to Contact\",\n description: \"Tool to add a tag to a contact identified by email address. Use when you need to tag a contact for segmentation or tracking purposes.\",\n input: SimpleroAddTagToContactInput,\n output: SimpleroAddTagToContactOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"add-tag-to-contact.mjs","names":[],"sources":["../../src/actions/add-tag-to-contact.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { simplero } from \"../app\";\n\nexport const SimpleroAddTagToContactInput = z.object({\n tag: z.string().describe(\"The tag name to add to the contact\"),\n email: z.string().describe(\"The contact's email address\"),\n}).describe(\"Request model for adding a tag to a contact.\");\nexport const SimpleroAddTagToContactOutput = z.object({\n id: z.number().int().describe(\"Contact's internal identifier\").nullable().optional(),\n ref: z.number().int().describe(\"Reference field\").nullable().optional(),\n name: z.string().describe(\"Full name of the contact\").nullable().optional(),\n email: z.string().describe(\"Contact's email address\").nullable().optional(),\n phone: z.string().describe(\"Contact's phone number\").nullable().optional(),\n track: z.string().describe(\"Tracking field\").nullable().optional(),\n referrer: z.string().describe(\"Referrer information\").nullable().optional(),\n last_name: z.string().describe(\"Contact's last name\").nullable().optional(),\n tag_names: z.string().describe(\"Comma-separated string of tags associated with the contact\").nullable().optional(),\n created_at: z.string().describe(\"ISO 8601 timestamp of contact creation\").nullable().optional(),\n ip_address: z.string().describe(\"IP address\").nullable().optional(),\n updated_at: z.string().describe(\"ISO 8601 timestamp of last update\").nullable().optional(),\n first_names: z.string().describe(\"Contact's first name(s)\").nullable().optional(),\n simplero_id: z.string().describe(\"Simplero identifier\").nullable().optional(),\n affiliate_id: z.number().int().describe(\"Associated affiliate ID\").nullable().optional(),\n contact_since: z.string().describe(\"Human-readable duration since contact creation\").nullable().optional(),\n do_not_contact: z.boolean().describe(\"Boolean flag for contact preferences\").nullable().optional(),\n lifetime_value_cents_excl_tax: z.number().int().describe(\"Lifetime value in cents (excluding tax)\").nullable().optional(),\n lead_acquisition_cost_cents_excl_tax: z.number().int().describe(\"Lead acquisition cost in cents (excluding tax)\").nullable().optional(),\n customer_acquisition_cost_cents_excl_tax: z.number().int().describe(\"Customer acquisition cost in cents (excluding tax)\").nullable().optional(),\n}).passthrough().describe(\"Response model containing the complete contact object after adding the tag.\");\n\nexport const simpleroAddTagToContact: AppAction<\n typeof SimpleroAddTagToContactInput,\n typeof SimpleroAddTagToContactOutput,\n typeof simplero.credential\n> = action(\"SIMPLERO_ADD_TAG_TO_CONTACT\", {\n slug: \"simplero-add-tag-to-contact\",\n name: \"Add Tag to Contact\",\n description: \"Tool to add a tag to a contact identified by email address. Use when you need to tag a contact for segmentation or tracking purpos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SAAS;EAC9F,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,YAAY,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5E,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvF,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzG,gBAAgB,EAAE,QAAQ,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjG,+BAA+B,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxH,sCAAsC,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtI,0CAA0C,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChJ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6EAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bulk-subscribe-to-list.cjs","names":["z","action"],"sources":["../../src/actions/bulk-subscribe-to-list.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SimpleroBulkSubscribeToListInput = z.object({\n list_id: z.number().int().describe(\"The ID of the list to add subscribers to.\"),\n subscriber_data: z.array(z.object({\n ref: z.number().int().describe(\"Affiliate reference ID for attribution.\").optional(),\n tags: z.string().describe(\"Comma-separated string of tags to add to this contact.\").optional(),\n email: z.string().describe(\"Subscriber's email address (required).\"),\n phone: z.string().describe(\"Sanitized phone with country code (e.g., '15551231234').\").optional(),\n track: z.string().describe(\"Any keyword to associate with this opt-in.\").optional(),\n referrer: z.string().describe(\"The last external URL visited before the subscribe form.\").optional(),\n last_name: z.string().describe(\"Subscriber's last name.\").optional(),\n first_name: z.string().describe(\"Subscriber's first name.\").optional(),\n ip_address: z.string().describe(\"The actual IP address that the customer used to subscribe.\").optional(),\n gdpr_consent: z.boolean().describe(\"GDPR consent indicator.\").optional(),\n landing_page_id: z.number().int().describe(\"Associated landing page/signup form ID.\").optional(),\n first_activated_at: z.string().describe(\"Activation timestamp in ISO-8601 format.\").optional(),\n auto_responder_start_at: z.string().describe(\"Auto-responder start time in ISO-8601 format.\").optional(),\n}).passthrough().describe(\"Model representing a single subscriber to be added to the list.\")).describe(\"Collection of subscriber objects to add. Maximum of 1,000 entries per request.\"),\n}).describe(\"Request model for bulk subscribing multiple users to a list.\");\nexport const SimpleroBulkSubscribeToListOutput = z.object({\n token: z.string().describe(\"Asynchronous request token for status tracking. Use this token with GET /requests/{token}.json to check operation status.\").nullable().optional(),\n}).passthrough().describe(\"Response model containing the asynchronous request token for tracking.\");\n\nexport const simpleroBulkSubscribeToList = action(\"SIMPLERO_BULK_SUBSCRIBE_TO_LIST\", {\n slug: \"simplero-bulk-subscribe-to-list\",\n name: \"Bulk Subscribe to List\",\n description: \"Tool to add multiple subscribers to a list in a single asynchronous request (max 1,000 per request). Use when you need to bulk import subscribers into a list. Returns a token to track the operation status.\",\n input: SimpleroBulkSubscribeToListInput,\n output: SimpleroBulkSubscribeToListOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"bulk-subscribe-to-list.cjs","names":["z","action"],"sources":["../../src/actions/bulk-subscribe-to-list.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { simplero } from \"../app\";\n\nexport const SimpleroBulkSubscribeToListInput = z.object({\n list_id: z.number().int().describe(\"The ID of the list to add subscribers to.\"),\n subscriber_data: z.array(z.object({\n ref: z.number().int().describe(\"Affiliate reference ID for attribution.\").optional(),\n tags: z.string().describe(\"Comma-separated string of tags to add to this contact.\").optional(),\n email: z.string().describe(\"Subscriber's email address (required).\"),\n phone: z.string().describe(\"Sanitized phone with country code (e.g., '15551231234').\").optional(),\n track: z.string().describe(\"Any keyword to associate with this opt-in.\").optional(),\n referrer: z.string().describe(\"The last external URL visited before the subscribe form.\").optional(),\n last_name: z.string().describe(\"Subscriber's last name.\").optional(),\n first_name: z.string().describe(\"Subscriber's first name.\").optional(),\n ip_address: z.string().describe(\"The actual IP address that the customer used to subscribe.\").optional(),\n gdpr_consent: z.boolean().describe(\"GDPR consent indicator.\").optional(),\n landing_page_id: z.number().int().describe(\"Associated landing page/signup form ID.\").optional(),\n first_activated_at: z.string().describe(\"Activation timestamp in ISO-8601 format.\").optional(),\n auto_responder_start_at: z.string().describe(\"Auto-responder start time in ISO-8601 format.\").optional(),\n}).passthrough().describe(\"Model representing a single subscriber to be added to the list.\")).describe(\"Collection of subscriber objects to add. Maximum of 1,000 entries per request.\"),\n}).describe(\"Request model for bulk subscribing multiple users to a list.\");\nexport const SimpleroBulkSubscribeToListOutput = z.object({\n token: z.string().describe(\"Asynchronous request token for status tracking. Use this token with GET /requests/{token}.json to check operation status.\").nullable().optional(),\n}).passthrough().describe(\"Response model containing the asynchronous request token for tracking.\");\n\nexport const simpleroBulkSubscribeToList: AppAction<\n typeof SimpleroBulkSubscribeToListInput,\n typeof SimpleroBulkSubscribeToListOutput,\n typeof simplero.credential\n> = action(\"SIMPLERO_BULK_SUBSCRIBE_TO_LIST\", {\n slug: \"simplero-bulk-subscribe-to-list\",\n name: \"Bulk Subscribe to List\",\n description: \"Tool to add multiple subscribers to a list in a single asynchronous request (max 1,000 per request). Use when you need to bulk import subscribers into a list. Returns a token to track the operation status.\",\n input: SimpleroBulkSubscribeToListInput,\n output: SimpleroBulkSubscribeToListOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,mCAAmCA,IAAAA,EAAE,OAAO;CACvD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C;CAC9E,iBAAiBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EAClC,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;EACnF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;EAC7F,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC;EACnE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;EAChG,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;EAClF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;EACnG,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;EACnE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;EACrE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;EACvG,cAAcA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;EACvE,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;EAC/F,oBAAoBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;EAC7F,yBAAyBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CACzG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,CAAC,SAAS,gFAAgF;AACvL,CAAC,CAAC,CAAC,SAAS,8DAA8D;AAC1E,MAAa,oCAAoCA,IAAAA,EAAE,OAAO,EACxD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2HAA2H,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EAC9K,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wEAAwE;AAElG,MAAa,8BAITC,eAAAA,OAAO,mCAAmC;CAC5C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { simplero } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/bulk-subscribe-to-list.d.ts
|
|
@@ -22,25 +24,7 @@ declare const SimpleroBulkSubscribeToListInput: z.ZodObject<{
|
|
|
22
24
|
declare const SimpleroBulkSubscribeToListOutput: z.ZodObject<{
|
|
23
25
|
token: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
24
26
|
}, z.core.$loose>;
|
|
25
|
-
declare const simpleroBulkSubscribeToList:
|
|
26
|
-
list_id: number;
|
|
27
|
-
subscriber_data: {
|
|
28
|
-
[x: string]: unknown;
|
|
29
|
-
email: string;
|
|
30
|
-
ref?: number | undefined;
|
|
31
|
-
tags?: string | undefined;
|
|
32
|
-
phone?: string | undefined;
|
|
33
|
-
track?: string | undefined;
|
|
34
|
-
referrer?: string | undefined;
|
|
35
|
-
last_name?: string | undefined;
|
|
36
|
-
first_name?: string | undefined;
|
|
37
|
-
ip_address?: string | undefined;
|
|
38
|
-
gdpr_consent?: boolean | undefined;
|
|
39
|
-
landing_page_id?: number | undefined;
|
|
40
|
-
first_activated_at?: string | undefined;
|
|
41
|
-
auto_responder_start_at?: string | undefined;
|
|
42
|
-
}[];
|
|
43
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
27
|
+
declare const simpleroBulkSubscribeToList: AppAction<typeof SimpleroBulkSubscribeToListInput, typeof SimpleroBulkSubscribeToListOutput, typeof simplero.credential>;
|
|
44
28
|
//#endregion
|
|
45
29
|
export { simpleroBulkSubscribeToList };
|
|
46
30
|
//# sourceMappingURL=bulk-subscribe-to-list.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bulk-subscribe-to-list.d.cts","names":[],"sources":["../../src/actions/bulk-subscribe-to-list.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"bulk-subscribe-to-list.d.cts","names":[],"sources":["../../src/actions/bulk-subscribe-to-list.ts"],"mappings":";;;;;cAMa,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;cAkBhC,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;cAIjC,2BAAA,EAA6B,SAAA,QACjC,gCAAA,SACA,iCAAA,SACA,QAAA,CAAS,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { simplero } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/bulk-subscribe-to-list.d.ts
|
|
@@ -22,25 +24,7 @@ declare const SimpleroBulkSubscribeToListInput: z.ZodObject<{
|
|
|
22
24
|
declare const SimpleroBulkSubscribeToListOutput: z.ZodObject<{
|
|
23
25
|
token: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
24
26
|
}, z.core.$loose>;
|
|
25
|
-
declare const simpleroBulkSubscribeToList:
|
|
26
|
-
list_id: number;
|
|
27
|
-
subscriber_data: {
|
|
28
|
-
[x: string]: unknown;
|
|
29
|
-
email: string;
|
|
30
|
-
ref?: number | undefined;
|
|
31
|
-
tags?: string | undefined;
|
|
32
|
-
phone?: string | undefined;
|
|
33
|
-
track?: string | undefined;
|
|
34
|
-
referrer?: string | undefined;
|
|
35
|
-
last_name?: string | undefined;
|
|
36
|
-
first_name?: string | undefined;
|
|
37
|
-
ip_address?: string | undefined;
|
|
38
|
-
gdpr_consent?: boolean | undefined;
|
|
39
|
-
landing_page_id?: number | undefined;
|
|
40
|
-
first_activated_at?: string | undefined;
|
|
41
|
-
auto_responder_start_at?: string | undefined;
|
|
42
|
-
}[];
|
|
43
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
27
|
+
declare const simpleroBulkSubscribeToList: AppAction<typeof SimpleroBulkSubscribeToListInput, typeof SimpleroBulkSubscribeToListOutput, typeof simplero.credential>;
|
|
44
28
|
//#endregion
|
|
45
29
|
export { simpleroBulkSubscribeToList };
|
|
46
30
|
//# sourceMappingURL=bulk-subscribe-to-list.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bulk-subscribe-to-list.d.mts","names":[],"sources":["../../src/actions/bulk-subscribe-to-list.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"bulk-subscribe-to-list.d.mts","names":[],"sources":["../../src/actions/bulk-subscribe-to-list.ts"],"mappings":";;;;;cAMa,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;cAkBhC,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;cAIjC,2BAAA,EAA6B,SAAA,QACjC,gCAAA,SACA,iCAAA,SACA,QAAA,CAAS,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bulk-subscribe-to-list.mjs","names":[],"sources":["../../src/actions/bulk-subscribe-to-list.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SimpleroBulkSubscribeToListInput = z.object({\n list_id: z.number().int().describe(\"The ID of the list to add subscribers to.\"),\n subscriber_data: z.array(z.object({\n ref: z.number().int().describe(\"Affiliate reference ID for attribution.\").optional(),\n tags: z.string().describe(\"Comma-separated string of tags to add to this contact.\").optional(),\n email: z.string().describe(\"Subscriber's email address (required).\"),\n phone: z.string().describe(\"Sanitized phone with country code (e.g., '15551231234').\").optional(),\n track: z.string().describe(\"Any keyword to associate with this opt-in.\").optional(),\n referrer: z.string().describe(\"The last external URL visited before the subscribe form.\").optional(),\n last_name: z.string().describe(\"Subscriber's last name.\").optional(),\n first_name: z.string().describe(\"Subscriber's first name.\").optional(),\n ip_address: z.string().describe(\"The actual IP address that the customer used to subscribe.\").optional(),\n gdpr_consent: z.boolean().describe(\"GDPR consent indicator.\").optional(),\n landing_page_id: z.number().int().describe(\"Associated landing page/signup form ID.\").optional(),\n first_activated_at: z.string().describe(\"Activation timestamp in ISO-8601 format.\").optional(),\n auto_responder_start_at: z.string().describe(\"Auto-responder start time in ISO-8601 format.\").optional(),\n}).passthrough().describe(\"Model representing a single subscriber to be added to the list.\")).describe(\"Collection of subscriber objects to add. Maximum of 1,000 entries per request.\"),\n}).describe(\"Request model for bulk subscribing multiple users to a list.\");\nexport const SimpleroBulkSubscribeToListOutput = z.object({\n token: z.string().describe(\"Asynchronous request token for status tracking. Use this token with GET /requests/{token}.json to check operation status.\").nullable().optional(),\n}).passthrough().describe(\"Response model containing the asynchronous request token for tracking.\");\n\nexport const simpleroBulkSubscribeToList = action(\"SIMPLERO_BULK_SUBSCRIBE_TO_LIST\", {\n slug: \"simplero-bulk-subscribe-to-list\",\n name: \"Bulk Subscribe to List\",\n description: \"Tool to add multiple subscribers to a list in a single asynchronous request (max 1,000 per request). Use when you need to bulk import subscribers into a list. Returns a token to track the operation status.\",\n input: SimpleroBulkSubscribeToListInput,\n output: SimpleroBulkSubscribeToListOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"bulk-subscribe-to-list.mjs","names":[],"sources":["../../src/actions/bulk-subscribe-to-list.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { simplero } from \"../app\";\n\nexport const SimpleroBulkSubscribeToListInput = z.object({\n list_id: z.number().int().describe(\"The ID of the list to add subscribers to.\"),\n subscriber_data: z.array(z.object({\n ref: z.number().int().describe(\"Affiliate reference ID for attribution.\").optional(),\n tags: z.string().describe(\"Comma-separated string of tags to add to this contact.\").optional(),\n email: z.string().describe(\"Subscriber's email address (required).\"),\n phone: z.string().describe(\"Sanitized phone with country code (e.g., '15551231234').\").optional(),\n track: z.string().describe(\"Any keyword to associate with this opt-in.\").optional(),\n referrer: z.string().describe(\"The last external URL visited before the subscribe form.\").optional(),\n last_name: z.string().describe(\"Subscriber's last name.\").optional(),\n first_name: z.string().describe(\"Subscriber's first name.\").optional(),\n ip_address: z.string().describe(\"The actual IP address that the customer used to subscribe.\").optional(),\n gdpr_consent: z.boolean().describe(\"GDPR consent indicator.\").optional(),\n landing_page_id: z.number().int().describe(\"Associated landing page/signup form ID.\").optional(),\n first_activated_at: z.string().describe(\"Activation timestamp in ISO-8601 format.\").optional(),\n auto_responder_start_at: z.string().describe(\"Auto-responder start time in ISO-8601 format.\").optional(),\n}).passthrough().describe(\"Model representing a single subscriber to be added to the list.\")).describe(\"Collection of subscriber objects to add. Maximum of 1,000 entries per request.\"),\n}).describe(\"Request model for bulk subscribing multiple users to a list.\");\nexport const SimpleroBulkSubscribeToListOutput = z.object({\n token: z.string().describe(\"Asynchronous request token for status tracking. Use this token with GET /requests/{token}.json to check operation status.\").nullable().optional(),\n}).passthrough().describe(\"Response model containing the asynchronous request token for tracking.\");\n\nexport const simpleroBulkSubscribeToList: AppAction<\n typeof SimpleroBulkSubscribeToListInput,\n typeof SimpleroBulkSubscribeToListOutput,\n typeof simplero.credential\n> = action(\"SIMPLERO_BULK_SUBSCRIBE_TO_LIST\", {\n slug: \"simplero-bulk-subscribe-to-list\",\n name: \"Bulk Subscribe to List\",\n description: \"Tool to add multiple subscribers to a list in a single asynchronous request (max 1,000 per request). Use when you need to bulk import subscribers into a list. Returns a token to track the operation status.\",\n input: SimpleroBulkSubscribeToListInput,\n output: SimpleroBulkSubscribeToListOutput,\n});\n"],"mappings":";;;AA4BA,MAAa,8BAIT,OAAO,mCAAmC;CAC5C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OA9B8C,EAAE,OAAO;EACvD,SAAS,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C;EAC9E,iBAAiB,EAAE,MAAM,EAAE,OAAO;GAClC,KAAK,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;GACnF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;GAC7F,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC;GACnE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;GAChG,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;GAClF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;GACnG,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;GACnE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;GACrE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;GACvG,cAAc,EAAE,QAAQ,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;GACvE,iBAAiB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;GAC/F,oBAAoB,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;GAC7F,yBAAyB,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;EACzG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,CAAC,SAAS,gFAAgF;CACvL,CAAC,CAAC,CAAC,SAAS,8DAaH;CACP,QAb+C,EAAE,OAAO,EACxD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,2HAA2H,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EAC9K,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wEAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-or-update-administrator.cjs","names":["z","action"],"sources":["../../src/actions/create-or-update-administrator.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SimpleroCreateOrUpdateAdministratorInput = z.object({\n email: z.string().describe(\"Administrator's email address (required). Used to identify existing administrators.\"),\n message: z.string().describe(\"Custom invitation message to include. Only applicable when creating new administrator.\").optional(),\n autogenerate: z.boolean().describe(\"Auto-generate username and password for new administrator. Only applicable when creating new administrator.\").optional(),\n invitee_name: z.string().describe(\"Name of new administrator. Required if autogenerate is true. Only applicable when creating new administrator.\").optional(),\n admin_role_id: z.number().int().describe(\"ID of the administrative role to assign. Available roles: Co-Owner (1), Admin (2), Basic admin (3), Assistant (8), Support specialist (9), Affiliate manager (10).\"),\n inviter_email: z.string().describe(\"Email of account administrator sending the invitation. Only applicable when creating new administrator.\").optional(),\n show_on_ticket: z.boolean().describe(\"Display administrator as support team member on tickets. Only applicable for creating or updating.\").optional(),\n ticket_assignee: z.boolean().describe(\"Enable ticket assignment capability for this administrator. Only applicable for creating or updating.\").optional(),\n}).describe(\"Request model for creating or updating an administrator in Simplero.\\n\\nIf an administrator with the same email already exists, it will be updated.\\nOtherwise, a new administrator will be created.\");\nconst SimpleroCreateOrUpdateAdministrator_AdminRoleSchema = z.object({\n name: z.string().describe(\"The name of the admin role.\").nullable().optional(),\n}).passthrough().describe(\"Admin role information.\");\nconst SimpleroCreateOrUpdateAdministrator_AccessibleObjectIdsSchema = z.object({\n site: z.union([z.array(z.number().int()), z.string()]).nullable().optional(),\n course: z.union([z.array(z.number().int()), z.string()]).nullable().optional(),\n product: z.union([z.array(z.number().int()), z.string()]).nullable().optional(),\n worksheet: z.union([z.array(z.number().int()), z.string()]).nullable().optional(),\n landing_page: z.union([z.array(z.number().int()), z.string()]).nullable().optional(),\n affiliate_program: z.union([z.array(z.number().int()), z.string()]).nullable().optional(),\n}).passthrough().describe(\"Permission scope for different object types. Each field can be either a list of IDs\\nor the string \\\"all\\\" indicating access to all objects of that type.\");\nexport const SimpleroCreateOrUpdateAdministratorOutput = z.object({\n id: z.number().int().describe(\"Unique administratorship identifier.\").nullable().optional(),\n enabled: z.boolean().describe(\"Whether the administratorship is active.\").nullable().optional(),\n user_id: z.number().int().describe(\"Associated user ID.\").nullable().optional(),\n account_id: z.number().int().describe(\"Associated account ID.\").nullable().optional(),\n admin_role: SimpleroCreateOrUpdateAdministrator_AdminRoleSchema.nullable().optional(),\n created_at: z.string().describe(\"ISO-8601 timestamp when the administratorship was created.\").nullable().optional(),\n num_logins: z.number().int().describe(\"Total number of logins.\").nullable().optional(),\n updated_at: z.string().describe(\"ISO-8601 timestamp when the administratorship was last updated.\").nullable().optional(),\n admin_role_id: z.number().int().describe(\"Role identifier.\").nullable().optional(),\n invitation_id: z.number().int().describe(\"Invitation reference if applicable.\").nullable().optional(),\n last_login_at: z.string().describe(\"ISO-8601 timestamp of the most recent login.\").nullable().optional(),\n show_on_ticket: z.boolean().describe(\"Whether the admin is listed as a support team member.\").nullable().optional(),\n ticket_assignee: z.boolean().describe(\"Whether the admin can be assigned support tickets.\").nullable().optional(),\n ticket_sms_alerts: z.boolean().describe(\"Whether the admin receives SMS alerts for tickets.\").nullable().optional(),\n notifications_seen: z.array(z.unknown()).describe(\"Array tracking notification visibility.\").nullable().optional(),\n accessible_object_ids: SimpleroCreateOrUpdateAdministrator_AccessibleObjectIdsSchema.nullable().optional(),\n second_to_last_login_at: z.string().describe(\"ISO-8601 timestamp of the second most recent login.\").nullable().optional(),\n can_self_grant_super_admin: z.boolean().describe(\"Whether the admin can elevate their own permissions.\").nullable().optional(),\n}).passthrough().describe(\"Response model for the created or updated administratorship.\");\n\nexport const simpleroCreateOrUpdateAdministrator = action(\"SIMPLERO_CREATE_OR_UPDATE_ADMINISTRATOR\", {\n slug: \"simplero-create-or-update-administrator\",\n name: \"Create or Update Administrator\",\n description: \"Tool to create a new administratorship or update an existing one with the same email. Use when you need to add a new administrator to Simplero or update their role and permissions.\",\n input: SimpleroCreateOrUpdateAdministratorInput,\n output: SimpleroCreateOrUpdateAdministratorOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"create-or-update-administrator.cjs","names":["z","action"],"sources":["../../src/actions/create-or-update-administrator.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { simplero } from \"../app\";\n\nexport const SimpleroCreateOrUpdateAdministratorInput = z.object({\n email: z.string().describe(\"Administrator's email address (required). Used to identify existing administrators.\"),\n message: z.string().describe(\"Custom invitation message to include. Only applicable when creating new administrator.\").optional(),\n autogenerate: z.boolean().describe(\"Auto-generate username and password for new administrator. Only applicable when creating new administrator.\").optional(),\n invitee_name: z.string().describe(\"Name of new administrator. Required if autogenerate is true. Only applicable when creating new administrator.\").optional(),\n admin_role_id: z.number().int().describe(\"ID of the administrative role to assign. Available roles: Co-Owner (1), Admin (2), Basic admin (3), Assistant (8), Support specialist (9), Affiliate manager (10).\"),\n inviter_email: z.string().describe(\"Email of account administrator sending the invitation. Only applicable when creating new administrator.\").optional(),\n show_on_ticket: z.boolean().describe(\"Display administrator as support team member on tickets. Only applicable for creating or updating.\").optional(),\n ticket_assignee: z.boolean().describe(\"Enable ticket assignment capability for this administrator. Only applicable for creating or updating.\").optional(),\n}).describe(\"Request model for creating or updating an administrator in Simplero.\\n\\nIf an administrator with the same email already exists, it will be updated.\\nOtherwise, a new administrator will be created.\");\nconst SimpleroCreateOrUpdateAdministrator_AdminRoleSchema = z.object({\n name: z.string().describe(\"The name of the admin role.\").nullable().optional(),\n}).passthrough().describe(\"Admin role information.\");\nconst SimpleroCreateOrUpdateAdministrator_AccessibleObjectIdsSchema = z.object({\n site: z.union([z.array(z.number().int()), z.string()]).nullable().optional(),\n course: z.union([z.array(z.number().int()), z.string()]).nullable().optional(),\n product: z.union([z.array(z.number().int()), z.string()]).nullable().optional(),\n worksheet: z.union([z.array(z.number().int()), z.string()]).nullable().optional(),\n landing_page: z.union([z.array(z.number().int()), z.string()]).nullable().optional(),\n affiliate_program: z.union([z.array(z.number().int()), z.string()]).nullable().optional(),\n}).passthrough().describe(\"Permission scope for different object types. Each field can be either a list of IDs\\nor the string \\\"all\\\" indicating access to all objects of that type.\");\nexport const SimpleroCreateOrUpdateAdministratorOutput = z.object({\n id: z.number().int().describe(\"Unique administratorship identifier.\").nullable().optional(),\n enabled: z.boolean().describe(\"Whether the administratorship is active.\").nullable().optional(),\n user_id: z.number().int().describe(\"Associated user ID.\").nullable().optional(),\n account_id: z.number().int().describe(\"Associated account ID.\").nullable().optional(),\n admin_role: SimpleroCreateOrUpdateAdministrator_AdminRoleSchema.nullable().optional(),\n created_at: z.string().describe(\"ISO-8601 timestamp when the administratorship was created.\").nullable().optional(),\n num_logins: z.number().int().describe(\"Total number of logins.\").nullable().optional(),\n updated_at: z.string().describe(\"ISO-8601 timestamp when the administratorship was last updated.\").nullable().optional(),\n admin_role_id: z.number().int().describe(\"Role identifier.\").nullable().optional(),\n invitation_id: z.number().int().describe(\"Invitation reference if applicable.\").nullable().optional(),\n last_login_at: z.string().describe(\"ISO-8601 timestamp of the most recent login.\").nullable().optional(),\n show_on_ticket: z.boolean().describe(\"Whether the admin is listed as a support team member.\").nullable().optional(),\n ticket_assignee: z.boolean().describe(\"Whether the admin can be assigned support tickets.\").nullable().optional(),\n ticket_sms_alerts: z.boolean().describe(\"Whether the admin receives SMS alerts for tickets.\").nullable().optional(),\n notifications_seen: z.array(z.unknown()).describe(\"Array tracking notification visibility.\").nullable().optional(),\n accessible_object_ids: SimpleroCreateOrUpdateAdministrator_AccessibleObjectIdsSchema.nullable().optional(),\n second_to_last_login_at: z.string().describe(\"ISO-8601 timestamp of the second most recent login.\").nullable().optional(),\n can_self_grant_super_admin: z.boolean().describe(\"Whether the admin can elevate their own permissions.\").nullable().optional(),\n}).passthrough().describe(\"Response model for the created or updated administratorship.\");\n\nexport const simpleroCreateOrUpdateAdministrator: AppAction<\n typeof SimpleroCreateOrUpdateAdministratorInput,\n typeof SimpleroCreateOrUpdateAdministratorOutput,\n typeof simplero.credential\n> = action(\"SIMPLERO_CREATE_OR_UPDATE_ADMINISTRATOR\", {\n slug: \"simplero-create-or-update-administrator\",\n name: \"Create or Update Administrator\",\n description: \"Tool to create a new administratorship or update an existing one with the same email. Use when you need to add a new administrator to Simplero or update their role and permissions.\",\n input: SimpleroCreateOrUpdateAdministratorInput,\n output: SimpleroCreateOrUpdateAdministratorOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,2CAA2CA,IAAAA,EAAE,OAAO;CAC/D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qFAAqF;CAChH,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wFAAwF,CAAC,CAAC,SAAS;CAChI,cAAcA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,6GAA6G,CAAC,CAAC,SAAS;CAC3J,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+GAA+G,CAAC,CAAC,SAAS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"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { simplero } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/create-or-update-administrator.d.ts
|
|
@@ -40,16 +42,7 @@ declare const SimpleroCreateOrUpdateAdministratorOutput: z.ZodObject<{
|
|
|
40
42
|
second_to_last_login_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
41
43
|
can_self_grant_super_admin: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
42
44
|
}, z.core.$loose>;
|
|
43
|
-
declare const simpleroCreateOrUpdateAdministrator:
|
|
44
|
-
email: string;
|
|
45
|
-
admin_role_id: number;
|
|
46
|
-
message?: string | undefined;
|
|
47
|
-
autogenerate?: boolean | undefined;
|
|
48
|
-
invitee_name?: string | undefined;
|
|
49
|
-
inviter_email?: string | undefined;
|
|
50
|
-
show_on_ticket?: boolean | undefined;
|
|
51
|
-
ticket_assignee?: boolean | undefined;
|
|
52
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
45
|
+
declare const simpleroCreateOrUpdateAdministrator: AppAction<typeof SimpleroCreateOrUpdateAdministratorInput, typeof SimpleroCreateOrUpdateAdministratorOutput, typeof simplero.credential>;
|
|
53
46
|
//#endregion
|
|
54
47
|
export { simpleroCreateOrUpdateAdministrator };
|
|
55
48
|
//# sourceMappingURL=create-or-update-administrator.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-or-update-administrator.d.cts","names":[],"sources":["../../src/actions/create-or-update-administrator.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"create-or-update-administrator.d.cts","names":[],"sources":["../../src/actions/create-or-update-administrator.ts"],"mappings":";;;;;cAMa,wCAAA,EAAwC,CAAA,CAAA,SAAA;;;;;;;;;;cAqBxC,yCAAA,EAAyC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAqBzC,mCAAA,EAAqC,SAAA,QACzC,wCAAA,SACA,yCAAA,SACA,QAAA,CAAS,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { simplero } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/create-or-update-administrator.d.ts
|
|
@@ -40,16 +42,7 @@ declare const SimpleroCreateOrUpdateAdministratorOutput: z.ZodObject<{
|
|
|
40
42
|
second_to_last_login_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
41
43
|
can_self_grant_super_admin: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
42
44
|
}, z.core.$loose>;
|
|
43
|
-
declare const simpleroCreateOrUpdateAdministrator:
|
|
44
|
-
email: string;
|
|
45
|
-
admin_role_id: number;
|
|
46
|
-
message?: string | undefined;
|
|
47
|
-
autogenerate?: boolean | undefined;
|
|
48
|
-
invitee_name?: string | undefined;
|
|
49
|
-
inviter_email?: string | undefined;
|
|
50
|
-
show_on_ticket?: boolean | undefined;
|
|
51
|
-
ticket_assignee?: boolean | undefined;
|
|
52
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
45
|
+
declare const simpleroCreateOrUpdateAdministrator: AppAction<typeof SimpleroCreateOrUpdateAdministratorInput, typeof SimpleroCreateOrUpdateAdministratorOutput, typeof simplero.credential>;
|
|
53
46
|
//#endregion
|
|
54
47
|
export { simpleroCreateOrUpdateAdministrator };
|
|
55
48
|
//# sourceMappingURL=create-or-update-administrator.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-or-update-administrator.d.mts","names":[],"sources":["../../src/actions/create-or-update-administrator.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"create-or-update-administrator.d.mts","names":[],"sources":["../../src/actions/create-or-update-administrator.ts"],"mappings":";;;;;cAMa,wCAAA,EAAwC,CAAA,CAAA,SAAA;;;;;;;;;;cAqBxC,yCAAA,EAAyC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAqBzC,mCAAA,EAAqC,SAAA,QACzC,wCAAA,SACA,yCAAA,SACA,QAAA,CAAS,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-or-update-administrator.mjs","names":[],"sources":["../../src/actions/create-or-update-administrator.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SimpleroCreateOrUpdateAdministratorInput = z.object({\n email: z.string().describe(\"Administrator's email address (required). Used to identify existing administrators.\"),\n message: z.string().describe(\"Custom invitation message to include. Only applicable when creating new administrator.\").optional(),\n autogenerate: z.boolean().describe(\"Auto-generate username and password for new administrator. Only applicable when creating new administrator.\").optional(),\n invitee_name: z.string().describe(\"Name of new administrator. Required if autogenerate is true. Only applicable when creating new administrator.\").optional(),\n admin_role_id: z.number().int().describe(\"ID of the administrative role to assign. Available roles: Co-Owner (1), Admin (2), Basic admin (3), Assistant (8), Support specialist (9), Affiliate manager (10).\"),\n inviter_email: z.string().describe(\"Email of account administrator sending the invitation. Only applicable when creating new administrator.\").optional(),\n show_on_ticket: z.boolean().describe(\"Display administrator as support team member on tickets. Only applicable for creating or updating.\").optional(),\n ticket_assignee: z.boolean().describe(\"Enable ticket assignment capability for this administrator. Only applicable for creating or updating.\").optional(),\n}).describe(\"Request model for creating or updating an administrator in Simplero.\\n\\nIf an administrator with the same email already exists, it will be updated.\\nOtherwise, a new administrator will be created.\");\nconst SimpleroCreateOrUpdateAdministrator_AdminRoleSchema = z.object({\n name: z.string().describe(\"The name of the admin role.\").nullable().optional(),\n}).passthrough().describe(\"Admin role information.\");\nconst SimpleroCreateOrUpdateAdministrator_AccessibleObjectIdsSchema = z.object({\n site: z.union([z.array(z.number().int()), z.string()]).nullable().optional(),\n course: z.union([z.array(z.number().int()), z.string()]).nullable().optional(),\n product: z.union([z.array(z.number().int()), z.string()]).nullable().optional(),\n worksheet: z.union([z.array(z.number().int()), z.string()]).nullable().optional(),\n landing_page: z.union([z.array(z.number().int()), z.string()]).nullable().optional(),\n affiliate_program: z.union([z.array(z.number().int()), z.string()]).nullable().optional(),\n}).passthrough().describe(\"Permission scope for different object types. Each field can be either a list of IDs\\nor the string \\\"all\\\" indicating access to all objects of that type.\");\nexport const SimpleroCreateOrUpdateAdministratorOutput = z.object({\n id: z.number().int().describe(\"Unique administratorship identifier.\").nullable().optional(),\n enabled: z.boolean().describe(\"Whether the administratorship is active.\").nullable().optional(),\n user_id: z.number().int().describe(\"Associated user ID.\").nullable().optional(),\n account_id: z.number().int().describe(\"Associated account ID.\").nullable().optional(),\n admin_role: SimpleroCreateOrUpdateAdministrator_AdminRoleSchema.nullable().optional(),\n created_at: z.string().describe(\"ISO-8601 timestamp when the administratorship was created.\").nullable().optional(),\n num_logins: z.number().int().describe(\"Total number of logins.\").nullable().optional(),\n updated_at: z.string().describe(\"ISO-8601 timestamp when the administratorship was last updated.\").nullable().optional(),\n admin_role_id: z.number().int().describe(\"Role identifier.\").nullable().optional(),\n invitation_id: z.number().int().describe(\"Invitation reference if applicable.\").nullable().optional(),\n last_login_at: z.string().describe(\"ISO-8601 timestamp of the most recent login.\").nullable().optional(),\n show_on_ticket: z.boolean().describe(\"Whether the admin is listed as a support team member.\").nullable().optional(),\n ticket_assignee: z.boolean().describe(\"Whether the admin can be assigned support tickets.\").nullable().optional(),\n ticket_sms_alerts: z.boolean().describe(\"Whether the admin receives SMS alerts for tickets.\").nullable().optional(),\n notifications_seen: z.array(z.unknown()).describe(\"Array tracking notification visibility.\").nullable().optional(),\n accessible_object_ids: SimpleroCreateOrUpdateAdministrator_AccessibleObjectIdsSchema.nullable().optional(),\n second_to_last_login_at: z.string().describe(\"ISO-8601 timestamp of the second most recent login.\").nullable().optional(),\n can_self_grant_super_admin: z.boolean().describe(\"Whether the admin can elevate their own permissions.\").nullable().optional(),\n}).passthrough().describe(\"Response model for the created or updated administratorship.\");\n\nexport const simpleroCreateOrUpdateAdministrator = action(\"SIMPLERO_CREATE_OR_UPDATE_ADMINISTRATOR\", {\n slug: \"simplero-create-or-update-administrator\",\n name: \"Create or Update Administrator\",\n description: \"Tool to create a new administratorship or update an existing one with the same email. Use when you need to add a new administrator to Simplero or update their role and permissions.\",\n input: SimpleroCreateOrUpdateAdministratorInput,\n output: SimpleroCreateOrUpdateAdministratorOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"create-or-update-administrator.mjs","names":[],"sources":["../../src/actions/create-or-update-administrator.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { simplero } from \"../app\";\n\nexport const SimpleroCreateOrUpdateAdministratorInput = z.object({\n email: z.string().describe(\"Administrator's email address (required). Used to identify existing administrators.\"),\n message: z.string().describe(\"Custom invitation message to include. Only applicable when creating new administrator.\").optional(),\n autogenerate: z.boolean().describe(\"Auto-generate username and password for new administrator. Only applicable when creating new administrator.\").optional(),\n invitee_name: z.string().describe(\"Name of new administrator. Required if autogenerate is true. Only applicable when creating new administrator.\").optional(),\n admin_role_id: z.number().int().describe(\"ID of the administrative role to assign. Available roles: Co-Owner (1), Admin (2), Basic admin (3), Assistant (8), Support specialist (9), Affiliate manager (10).\"),\n inviter_email: z.string().describe(\"Email of account administrator sending the invitation. Only applicable when creating new administrator.\").optional(),\n show_on_ticket: z.boolean().describe(\"Display administrator as support team member on tickets. Only applicable for creating or updating.\").optional(),\n ticket_assignee: z.boolean().describe(\"Enable ticket assignment capability for this administrator. Only applicable for creating or updating.\").optional(),\n}).describe(\"Request model for creating or updating an administrator in Simplero.\\n\\nIf an administrator with the same email already exists, it will be updated.\\nOtherwise, a new administrator will be created.\");\nconst SimpleroCreateOrUpdateAdministrator_AdminRoleSchema = z.object({\n name: z.string().describe(\"The name of the admin role.\").nullable().optional(),\n}).passthrough().describe(\"Admin role information.\");\nconst SimpleroCreateOrUpdateAdministrator_AccessibleObjectIdsSchema = z.object({\n site: z.union([z.array(z.number().int()), z.string()]).nullable().optional(),\n course: z.union([z.array(z.number().int()), z.string()]).nullable().optional(),\n product: z.union([z.array(z.number().int()), z.string()]).nullable().optional(),\n worksheet: z.union([z.array(z.number().int()), z.string()]).nullable().optional(),\n landing_page: z.union([z.array(z.number().int()), z.string()]).nullable().optional(),\n affiliate_program: z.union([z.array(z.number().int()), z.string()]).nullable().optional(),\n}).passthrough().describe(\"Permission scope for different object types. Each field can be either a list of IDs\\nor the string \\\"all\\\" indicating access to all objects of that type.\");\nexport const SimpleroCreateOrUpdateAdministratorOutput = z.object({\n id: z.number().int().describe(\"Unique administratorship identifier.\").nullable().optional(),\n enabled: z.boolean().describe(\"Whether the administratorship is active.\").nullable().optional(),\n user_id: z.number().int().describe(\"Associated user ID.\").nullable().optional(),\n account_id: z.number().int().describe(\"Associated account ID.\").nullable().optional(),\n admin_role: SimpleroCreateOrUpdateAdministrator_AdminRoleSchema.nullable().optional(),\n created_at: z.string().describe(\"ISO-8601 timestamp when the administratorship was created.\").nullable().optional(),\n num_logins: z.number().int().describe(\"Total number of logins.\").nullable().optional(),\n updated_at: z.string().describe(\"ISO-8601 timestamp when the administratorship was last updated.\").nullable().optional(),\n admin_role_id: z.number().int().describe(\"Role identifier.\").nullable().optional(),\n invitation_id: z.number().int().describe(\"Invitation reference if applicable.\").nullable().optional(),\n last_login_at: z.string().describe(\"ISO-8601 timestamp of the most recent login.\").nullable().optional(),\n show_on_ticket: z.boolean().describe(\"Whether the admin is listed as a support team member.\").nullable().optional(),\n ticket_assignee: z.boolean().describe(\"Whether the admin can be assigned support tickets.\").nullable().optional(),\n ticket_sms_alerts: z.boolean().describe(\"Whether the admin receives SMS alerts for tickets.\").nullable().optional(),\n notifications_seen: z.array(z.unknown()).describe(\"Array tracking notification visibility.\").nullable().optional(),\n accessible_object_ids: SimpleroCreateOrUpdateAdministrator_AccessibleObjectIdsSchema.nullable().optional(),\n second_to_last_login_at: z.string().describe(\"ISO-8601 timestamp of the second most recent login.\").nullable().optional(),\n can_self_grant_super_admin: z.boolean().describe(\"Whether the admin can elevate their own permissions.\").nullable().optional(),\n}).passthrough().describe(\"Response model for the created or updated administratorship.\");\n\nexport const simpleroCreateOrUpdateAdministrator: AppAction<\n typeof SimpleroCreateOrUpdateAdministratorInput,\n typeof SimpleroCreateOrUpdateAdministratorOutput,\n typeof simplero.credential\n> = action(\"SIMPLERO_CREATE_OR_UPDATE_ADMINISTRATOR\", {\n slug: \"simplero-create-or-update-administrator\",\n name: \"Create or Update Administrator\",\n description: \"Tool to create a new administratorship or update an existing one with the same email. Use when you need to add a new administrator to Simplero or update their role and permissions.\",\n input: SimpleroCreateOrUpdateAdministratorInput,\n output: SimpleroCreateOrUpdateAdministratorOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,2CAA2C,EAAE,OAAO;CAC/D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,qFAAqF;CAChH,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,wFAAwF,CAAC,CAAC,SAAS;CAChI,cAAc,EAAE,QAAQ,CAAC,CAAC,SAAS,6GAA6G,CAAC,CAAC,SAAS;CAC3J,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,+GAA+G,CAAC,CAAC,SAAS;CAC5J,eAAe,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oKAAoK;CAC7M,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,yGAAyG,CAAC,CAAC,SAAS;CACvJ,gBAAgB,EAAE,QAAQ,CAAC,CAAC,SAAS,oGAAoG,CAAC,CAAC,SAAS;CACpJ,iBAAiB,EAAE,QAAQ,CAAC,CAAC,SAAS,uGAAuG,CAAC,CAAC,SAAS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AAC,SAAS,CAAC,CAAC,SAAS;EAChH,mBAAmB,EAAE,QAAQ,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClH,oBAAoB,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjH,uBAAuB,8DAA8D,SAAS,CAAC,CAAC,SAAS;EACzG,yBAAyB,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxH,4BAA4B,EAAE,QAAQ,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8DAWhB;AACV,CAAC"}
|
|
@@ -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 SimpleroCreateOrUpdateContactInput = z.object({\n ref: z.number().int().describe(\"Affiliate reference identifier.\").optional(),\n note: z.string().describe(\"Additional notes about the contact.\").optional(),\n tags: z.string().describe(\"Comma-separated tag values to assign to the contact (e.g., 'tag1,tag2').\").optional(),\n email: z.string().describe(\"Contact's email address (required). Used to identify existing contacts.\"),\n phone: z.string().describe(\"Contact's phone number with country code prefix (e.g., '15551234567').\").optional(),\n track: z.string().describe(\"Keyword to track opt-in source.\").optional(),\n override: z.string().describe(\"Set to 'yes' to replace existing values instead of merging.\").optional(),\n referrer: z.string().describe(\"Last external URL before subscription.\").optional(),\n last_name: z.string().describe(\"Contact's last name.\").optional(),\n first_name: z.string().describe(\"Contact's first name.\").optional(),\n ip_address: z.string().describe(\"IP address used during signup.\").optional(),\n gdpr_consent: z.number().int().describe(\"GDPR consent status: 1 for consent granted, 0 for denied.\").optional(),\n landing_page_id: z.number().int().describe(\"Landing page conversion tracking ID.\").optional(),\n gdpr_consent_text: z.string().describe(\"GDPR consent request text.\").optional(),\n first_activated_at: z.string().describe(\"ISO 8601 timestamp when contact first became active (e.g., '2023-01-15T10:30:00Z').\").optional(),\n auto_responder_start_at: z.string().describe(\"ISO 8601 timestamp when autoresponder should begin (e.g., '2023-01-15T10:30:00Z').\").optional(),\n}).describe(\"Request model for creating or updating a contact in Simplero.\\n\\nIf a contact with the same email already exists, it will be updated.\\nOtherwise, a new contact will be created.\");\nexport const SimpleroCreateOrUpdateContactOutput = z.object({\n id: z.number().int().describe(\"Contact's internal identifier.\").nullable().optional(),\n name: z.string().describe(\"Full name (first + last).\").nullable().optional(),\n email: z.string().describe(\"Contact's email address.\").nullable().optional(),\n phone: z.string().describe(\"Formatted phone number.\").nullable().optional(),\n tag_names: z.string().describe(\"Comma-separated tags assigned to contact.\").nullable().optional(),\n created_at: z.string().describe(\"ISO 8601 timestamp when contact was created.\").nullable().optional(),\n updated_at: z.string().describe(\"ISO 8601 timestamp of last update.\").nullable().optional(),\n do_not_contact: z.boolean().describe(\"Whether contact opted out of communications.\").nullable().optional(),\n}).passthrough().describe(\"Response model for the created or updated contact.\");\n\nexport const simpleroCreateOrUpdateContact = action(\"SIMPLERO_CREATE_OR_UPDATE_CONTACT\", {\n slug: \"simplero-create-or-update-contact\",\n name: \"Create or Update Contact\",\n description: \"Tool to create a new contact or update an existing contact with the same email. Use when you need to add a new contact to Simplero or update their information.\",\n input: SimpleroCreateOrUpdateContactInput,\n output: SimpleroCreateOrUpdateContactOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"create-or-update-contact.cjs","names":["z","action"],"sources":["../../src/actions/create-or-update-contact.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { simplero } from \"../app\";\n\nexport const SimpleroCreateOrUpdateContactInput = z.object({\n ref: z.number().int().describe(\"Affiliate reference identifier.\").optional(),\n note: z.string().describe(\"Additional notes about the contact.\").optional(),\n tags: z.string().describe(\"Comma-separated tag values to assign to the contact (e.g., 'tag1,tag2').\").optional(),\n email: z.string().describe(\"Contact's email address (required). Used to identify existing contacts.\"),\n phone: z.string().describe(\"Contact's phone number with country code prefix (e.g., '15551234567').\").optional(),\n track: z.string().describe(\"Keyword to track opt-in source.\").optional(),\n override: z.string().describe(\"Set to 'yes' to replace existing values instead of merging.\").optional(),\n referrer: z.string().describe(\"Last external URL before subscription.\").optional(),\n last_name: z.string().describe(\"Contact's last name.\").optional(),\n first_name: z.string().describe(\"Contact's first name.\").optional(),\n ip_address: z.string().describe(\"IP address used during signup.\").optional(),\n gdpr_consent: z.number().int().describe(\"GDPR consent status: 1 for consent granted, 0 for denied.\").optional(),\n landing_page_id: z.number().int().describe(\"Landing page conversion tracking ID.\").optional(),\n gdpr_consent_text: z.string().describe(\"GDPR consent request text.\").optional(),\n first_activated_at: z.string().describe(\"ISO 8601 timestamp when contact first became active (e.g., '2023-01-15T10:30:00Z').\").optional(),\n auto_responder_start_at: z.string().describe(\"ISO 8601 timestamp when autoresponder should begin (e.g., '2023-01-15T10:30:00Z').\").optional(),\n}).describe(\"Request model for creating or updating a contact in Simplero.\\n\\nIf a contact with the same email already exists, it will be updated.\\nOtherwise, a new contact will be created.\");\nexport const SimpleroCreateOrUpdateContactOutput = z.object({\n id: z.number().int().describe(\"Contact's internal identifier.\").nullable().optional(),\n name: z.string().describe(\"Full name (first + last).\").nullable().optional(),\n email: z.string().describe(\"Contact's email address.\").nullable().optional(),\n phone: z.string().describe(\"Formatted phone number.\").nullable().optional(),\n tag_names: z.string().describe(\"Comma-separated tags assigned to contact.\").nullable().optional(),\n created_at: z.string().describe(\"ISO 8601 timestamp when contact was created.\").nullable().optional(),\n updated_at: z.string().describe(\"ISO 8601 timestamp of last update.\").nullable().optional(),\n do_not_contact: z.boolean().describe(\"Whether contact opted out of communications.\").nullable().optional(),\n}).passthrough().describe(\"Response model for the created or updated contact.\");\n\nexport const simpleroCreateOrUpdateContact: AppAction<\n typeof SimpleroCreateOrUpdateContactInput,\n typeof SimpleroCreateOrUpdateContactOutput,\n typeof simplero.credential\n> = action(\"SIMPLERO_CREATE_OR_UPDATE_CONTACT\", {\n slug: \"simplero-create-or-update-contact\",\n name: \"Create or Update Contact\",\n description: \"Tool to create a new contact or update an existing contact with the same email. Use when you need to add a new contact to Simplero or update their information.\",\n input: SimpleroCreateOrUpdateContactInput,\n output: SimpleroCreateOrUpdateContactOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,qCAAqCA,IAAAA,EAAE,OAAO;CACzD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CAC3E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CAC1E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS;CAC/G,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yEAAyE;CACpG,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS;CAC9G,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CACvE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;CACtG,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CACjF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;CAChE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;CAClE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAA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AAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oDAAoD;AAE9E,MAAa,gCAITC,eAAAA,OAAO,qCAAqC;CAC9C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { simplero } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/create-or-update-contact.d.ts
|
|
@@ -29,24 +31,7 @@ declare const SimpleroCreateOrUpdateContactOutput: z.ZodObject<{
|
|
|
29
31
|
updated_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
30
32
|
do_not_contact: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
31
33
|
}, z.core.$loose>;
|
|
32
|
-
declare const simpleroCreateOrUpdateContact:
|
|
33
|
-
email: string;
|
|
34
|
-
ref?: number | undefined;
|
|
35
|
-
note?: string | undefined;
|
|
36
|
-
tags?: string | undefined;
|
|
37
|
-
phone?: string | undefined;
|
|
38
|
-
track?: string | undefined;
|
|
39
|
-
override?: string | undefined;
|
|
40
|
-
referrer?: string | undefined;
|
|
41
|
-
last_name?: string | undefined;
|
|
42
|
-
first_name?: string | undefined;
|
|
43
|
-
ip_address?: string | undefined;
|
|
44
|
-
gdpr_consent?: number | undefined;
|
|
45
|
-
landing_page_id?: number | undefined;
|
|
46
|
-
gdpr_consent_text?: string | undefined;
|
|
47
|
-
first_activated_at?: string | undefined;
|
|
48
|
-
auto_responder_start_at?: string | undefined;
|
|
49
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
34
|
+
declare const simpleroCreateOrUpdateContact: AppAction<typeof SimpleroCreateOrUpdateContactInput, typeof SimpleroCreateOrUpdateContactOutput, typeof simplero.credential>;
|
|
50
35
|
//#endregion
|
|
51
36
|
export { simpleroCreateOrUpdateContact };
|
|
52
37
|
//# sourceMappingURL=create-or-update-contact.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-or-update-contact.d.cts","names":[],"sources":["../../src/actions/create-or-update-contact.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"create-or-update-contact.d.cts","names":[],"sources":["../../src/actions/create-or-update-contact.ts"],"mappings":";;;;;cAMa,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;cAkBlC,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;;;;;;;;cAWnC,6BAAA,EAA+B,SAAA,QACnC,kCAAA,SACA,mCAAA,SACA,QAAA,CAAS,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { simplero } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/create-or-update-contact.d.ts
|
|
@@ -29,24 +31,7 @@ declare const SimpleroCreateOrUpdateContactOutput: z.ZodObject<{
|
|
|
29
31
|
updated_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
30
32
|
do_not_contact: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
31
33
|
}, z.core.$loose>;
|
|
32
|
-
declare const simpleroCreateOrUpdateContact:
|
|
33
|
-
email: string;
|
|
34
|
-
ref?: number | undefined;
|
|
35
|
-
note?: string | undefined;
|
|
36
|
-
tags?: string | undefined;
|
|
37
|
-
phone?: string | undefined;
|
|
38
|
-
track?: string | undefined;
|
|
39
|
-
override?: string | undefined;
|
|
40
|
-
referrer?: string | undefined;
|
|
41
|
-
last_name?: string | undefined;
|
|
42
|
-
first_name?: string | undefined;
|
|
43
|
-
ip_address?: string | undefined;
|
|
44
|
-
gdpr_consent?: number | undefined;
|
|
45
|
-
landing_page_id?: number | undefined;
|
|
46
|
-
gdpr_consent_text?: string | undefined;
|
|
47
|
-
first_activated_at?: string | undefined;
|
|
48
|
-
auto_responder_start_at?: string | undefined;
|
|
49
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
34
|
+
declare const simpleroCreateOrUpdateContact: AppAction<typeof SimpleroCreateOrUpdateContactInput, typeof SimpleroCreateOrUpdateContactOutput, typeof simplero.credential>;
|
|
50
35
|
//#endregion
|
|
51
36
|
export { simpleroCreateOrUpdateContact };
|
|
52
37
|
//# sourceMappingURL=create-or-update-contact.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-or-update-contact.d.mts","names":[],"sources":["../../src/actions/create-or-update-contact.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"create-or-update-contact.d.mts","names":[],"sources":["../../src/actions/create-or-update-contact.ts"],"mappings":";;;;;cAMa,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;cAkBlC,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;;;;;;;;cAWnC,6BAAA,EAA+B,SAAA,QACnC,kCAAA,SACA,mCAAA,SACA,QAAA,CAAS,UAAA"}
|
|
@@ -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 SimpleroCreateOrUpdateContactInput = z.object({\n ref: z.number().int().describe(\"Affiliate reference identifier.\").optional(),\n note: z.string().describe(\"Additional notes about the contact.\").optional(),\n tags: z.string().describe(\"Comma-separated tag values to assign to the contact (e.g., 'tag1,tag2').\").optional(),\n email: z.string().describe(\"Contact's email address (required). Used to identify existing contacts.\"),\n phone: z.string().describe(\"Contact's phone number with country code prefix (e.g., '15551234567').\").optional(),\n track: z.string().describe(\"Keyword to track opt-in source.\").optional(),\n override: z.string().describe(\"Set to 'yes' to replace existing values instead of merging.\").optional(),\n referrer: z.string().describe(\"Last external URL before subscription.\").optional(),\n last_name: z.string().describe(\"Contact's last name.\").optional(),\n first_name: z.string().describe(\"Contact's first name.\").optional(),\n ip_address: z.string().describe(\"IP address used during signup.\").optional(),\n gdpr_consent: z.number().int().describe(\"GDPR consent status: 1 for consent granted, 0 for denied.\").optional(),\n landing_page_id: z.number().int().describe(\"Landing page conversion tracking ID.\").optional(),\n gdpr_consent_text: z.string().describe(\"GDPR consent request text.\").optional(),\n first_activated_at: z.string().describe(\"ISO 8601 timestamp when contact first became active (e.g., '2023-01-15T10:30:00Z').\").optional(),\n auto_responder_start_at: z.string().describe(\"ISO 8601 timestamp when autoresponder should begin (e.g., '2023-01-15T10:30:00Z').\").optional(),\n}).describe(\"Request model for creating or updating a contact in Simplero.\\n\\nIf a contact with the same email already exists, it will be updated.\\nOtherwise, a new contact will be created.\");\nexport const SimpleroCreateOrUpdateContactOutput = z.object({\n id: z.number().int().describe(\"Contact's internal identifier.\").nullable().optional(),\n name: z.string().describe(\"Full name (first + last).\").nullable().optional(),\n email: z.string().describe(\"Contact's email address.\").nullable().optional(),\n phone: z.string().describe(\"Formatted phone number.\").nullable().optional(),\n tag_names: z.string().describe(\"Comma-separated tags assigned to contact.\").nullable().optional(),\n created_at: z.string().describe(\"ISO 8601 timestamp when contact was created.\").nullable().optional(),\n updated_at: z.string().describe(\"ISO 8601 timestamp of last update.\").nullable().optional(),\n do_not_contact: z.boolean().describe(\"Whether contact opted out of communications.\").nullable().optional(),\n}).passthrough().describe(\"Response model for the created or updated contact.\");\n\nexport const simpleroCreateOrUpdateContact = action(\"SIMPLERO_CREATE_OR_UPDATE_CONTACT\", {\n slug: \"simplero-create-or-update-contact\",\n name: \"Create or Update Contact\",\n description: \"Tool to create a new contact or update an existing contact with the same email. Use when you need to add a new contact to Simplero or update their information.\",\n input: SimpleroCreateOrUpdateContactInput,\n output: SimpleroCreateOrUpdateContactOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"create-or-update-contact.mjs","names":[],"sources":["../../src/actions/create-or-update-contact.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { simplero } from \"../app\";\n\nexport const SimpleroCreateOrUpdateContactInput = z.object({\n ref: z.number().int().describe(\"Affiliate reference identifier.\").optional(),\n note: z.string().describe(\"Additional notes about the contact.\").optional(),\n tags: z.string().describe(\"Comma-separated tag values to assign to the contact (e.g., 'tag1,tag2').\").optional(),\n email: z.string().describe(\"Contact's email address (required). Used to identify existing contacts.\"),\n phone: z.string().describe(\"Contact's phone number with country code prefix (e.g., '15551234567').\").optional(),\n track: z.string().describe(\"Keyword to track opt-in source.\").optional(),\n override: z.string().describe(\"Set to 'yes' to replace existing values instead of merging.\").optional(),\n referrer: z.string().describe(\"Last external URL before subscription.\").optional(),\n last_name: z.string().describe(\"Contact's last name.\").optional(),\n first_name: z.string().describe(\"Contact's first name.\").optional(),\n ip_address: z.string().describe(\"IP address used during signup.\").optional(),\n gdpr_consent: z.number().int().describe(\"GDPR consent status: 1 for consent granted, 0 for denied.\").optional(),\n landing_page_id: z.number().int().describe(\"Landing page conversion tracking ID.\").optional(),\n gdpr_consent_text: z.string().describe(\"GDPR consent request text.\").optional(),\n first_activated_at: z.string().describe(\"ISO 8601 timestamp when contact first became active (e.g., '2023-01-15T10:30:00Z').\").optional(),\n auto_responder_start_at: z.string().describe(\"ISO 8601 timestamp when autoresponder should begin (e.g., '2023-01-15T10:30:00Z').\").optional(),\n}).describe(\"Request model for creating or updating a contact in Simplero.\\n\\nIf a contact with the same email already exists, it will be updated.\\nOtherwise, a new contact will be created.\");\nexport const SimpleroCreateOrUpdateContactOutput = z.object({\n id: z.number().int().describe(\"Contact's internal identifier.\").nullable().optional(),\n name: z.string().describe(\"Full name (first + last).\").nullable().optional(),\n email: z.string().describe(\"Contact's email address.\").nullable().optional(),\n phone: z.string().describe(\"Formatted phone number.\").nullable().optional(),\n tag_names: z.string().describe(\"Comma-separated tags assigned to contact.\").nullable().optional(),\n created_at: z.string().describe(\"ISO 8601 timestamp when contact was created.\").nullable().optional(),\n updated_at: z.string().describe(\"ISO 8601 timestamp of last update.\").nullable().optional(),\n do_not_contact: z.boolean().describe(\"Whether contact opted out of communications.\").nullable().optional(),\n}).passthrough().describe(\"Response model for the created or updated contact.\");\n\nexport const simpleroCreateOrUpdateContact: AppAction<\n typeof SimpleroCreateOrUpdateContactInput,\n typeof SimpleroCreateOrUpdateContactOutput,\n typeof simplero.credential\n> = action(\"SIMPLERO_CREATE_OR_UPDATE_CONTACT\", {\n slug: \"simplero-create-or-update-contact\",\n name: \"Create or Update Contact\",\n description: \"Tool to create a new contact or update an existing contact with the same email. Use when you need to add a new contact to Simplero or update their information.\",\n input: SimpleroCreateOrUpdateContactInput,\n output: SimpleroCreateOrUpdateContactOutput,\n});\n"],"mappings":";;;AAmCA,MAAa,gCAIT,OAAO,qCAAqC;CAC9C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OArCgD,EAAE,OAAO;EACzD,KAAK,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;EAC3E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;EAC1E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS;EAC/G,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,yEAAyE;EACpG,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS;EAC9G,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;EACvE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,6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