@keystrokehq/simplero 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +17 -0
- package/dist/action.cjs +21 -0
- package/dist/action.cjs.map +1 -0
- package/dist/action.mjs +21 -0
- package/dist/action.mjs.map +1 -0
- package/dist/actions/add-tag-to-contact.cjs +40 -0
- package/dist/actions/add-tag-to-contact.cjs.map +1 -0
- package/dist/actions/add-tag-to-contact.d.cts +9 -0
- package/dist/actions/add-tag-to-contact.d.cts.map +1 -0
- package/dist/actions/add-tag-to-contact.d.mts +9 -0
- package/dist/actions/add-tag-to-contact.d.mts.map +1 -0
- package/dist/actions/add-tag-to-contact.mjs +37 -0
- package/dist/actions/add-tag-to-contact.mjs.map +1 -0
- package/dist/actions/bulk-subscribe-to-list.cjs +33 -0
- package/dist/actions/bulk-subscribe-to-list.cjs.map +1 -0
- package/dist/actions/bulk-subscribe-to-list.d.cts +9 -0
- package/dist/actions/bulk-subscribe-to-list.d.cts.map +1 -0
- package/dist/actions/bulk-subscribe-to-list.d.mts +9 -0
- package/dist/actions/bulk-subscribe-to-list.d.mts.map +1 -0
- package/dist/actions/bulk-subscribe-to-list.mjs +30 -0
- package/dist/actions/bulk-subscribe-to-list.mjs.map +1 -0
- package/dist/actions/create-or-update-administrator.cjs +53 -0
- package/dist/actions/create-or-update-administrator.cjs.map +1 -0
- package/dist/actions/create-or-update-administrator.d.cts +9 -0
- package/dist/actions/create-or-update-administrator.d.cts.map +1 -0
- package/dist/actions/create-or-update-administrator.d.mts +9 -0
- package/dist/actions/create-or-update-administrator.d.mts.map +1 -0
- package/dist/actions/create-or-update-administrator.mjs +52 -0
- package/dist/actions/create-or-update-administrator.mjs.map +1 -0
- package/dist/actions/create-or-update-contact.cjs +42 -0
- package/dist/actions/create-or-update-contact.cjs.map +1 -0
- package/dist/actions/create-or-update-contact.d.cts +9 -0
- package/dist/actions/create-or-update-contact.d.cts.map +1 -0
- package/dist/actions/create-or-update-contact.d.mts +9 -0
- package/dist/actions/create-or-update-contact.d.mts.map +1 -0
- package/dist/actions/create-or-update-contact.mjs +39 -0
- package/dist/actions/create-or-update-contact.mjs.map +1 -0
- package/dist/actions/find-contact-by-email.cjs +34 -0
- package/dist/actions/find-contact-by-email.cjs.map +1 -0
- package/dist/actions/find-contact-by-email.d.cts +9 -0
- package/dist/actions/find-contact-by-email.d.cts.map +1 -0
- package/dist/actions/find-contact-by-email.d.mts +9 -0
- package/dist/actions/find-contact-by-email.d.mts.map +1 -0
- package/dist/actions/find-contact-by-email.mjs +31 -0
- package/dist/actions/find-contact-by-email.mjs.map +1 -0
- package/dist/actions/find-subscription-by-email.cjs +67 -0
- package/dist/actions/find-subscription-by-email.cjs.map +1 -0
- package/dist/actions/find-subscription-by-email.d.cts +9 -0
- package/dist/actions/find-subscription-by-email.d.cts.map +1 -0
- package/dist/actions/find-subscription-by-email.d.mts +9 -0
- package/dist/actions/find-subscription-by-email.d.mts.map +1 -0
- package/dist/actions/find-subscription-by-email.mjs +66 -0
- package/dist/actions/find-subscription-by-email.mjs.map +1 -0
- package/dist/actions/get-admin-roles.cjs +20 -0
- package/dist/actions/get-admin-roles.cjs.map +1 -0
- package/dist/actions/get-admin-roles.d.cts +9 -0
- package/dist/actions/get-admin-roles.d.cts.map +1 -0
- package/dist/actions/get-admin-roles.d.mts +9 -0
- package/dist/actions/get-admin-roles.d.mts.map +1 -0
- package/dist/actions/get-admin-roles.mjs +19 -0
- package/dist/actions/get-admin-roles.mjs.map +1 -0
- package/dist/actions/get-administrator-by-id.cjs +42 -0
- package/dist/actions/get-administrator-by-id.cjs.map +1 -0
- package/dist/actions/get-administrator-by-id.d.cts +9 -0
- package/dist/actions/get-administrator-by-id.d.cts.map +1 -0
- package/dist/actions/get-administrator-by-id.d.mts +9 -0
- package/dist/actions/get-administrator-by-id.d.mts.map +1 -0
- package/dist/actions/get-administrator-by-id.mjs +41 -0
- package/dist/actions/get-administrator-by-id.mjs.map +1 -0
- package/dist/actions/get-administrators.cjs +45 -0
- package/dist/actions/get-administrators.cjs.map +1 -0
- package/dist/actions/get-administrators.d.cts +9 -0
- package/dist/actions/get-administrators.d.cts.map +1 -0
- package/dist/actions/get-administrators.d.mts +9 -0
- package/dist/actions/get-administrators.d.mts.map +1 -0
- package/dist/actions/get-administrators.mjs +44 -0
- package/dist/actions/get-administrators.mjs.map +1 -0
- package/dist/actions/get-async-request-status.cjs +24 -0
- package/dist/actions/get-async-request-status.cjs.map +1 -0
- package/dist/actions/get-async-request-status.d.cts +9 -0
- package/dist/actions/get-async-request-status.d.cts.map +1 -0
- package/dist/actions/get-async-request-status.d.mts +9 -0
- package/dist/actions/get-async-request-status.d.mts.map +1 -0
- package/dist/actions/get-async-request-status.mjs +21 -0
- package/dist/actions/get-async-request-status.mjs.map +1 -0
- package/dist/actions/get-contact-by-id.cjs +30 -0
- package/dist/actions/get-contact-by-id.cjs.map +1 -0
- package/dist/actions/get-contact-by-id.d.cts +9 -0
- package/dist/actions/get-contact-by-id.d.cts.map +1 -0
- package/dist/actions/get-contact-by-id.d.mts +9 -0
- package/dist/actions/get-contact-by-id.d.mts.map +1 -0
- package/dist/actions/get-contact-by-id.mjs +27 -0
- package/dist/actions/get-contact-by-id.mjs.map +1 -0
- package/dist/actions/get-invoices.cjs +34 -0
- package/dist/actions/get-invoices.cjs.map +1 -0
- package/dist/actions/get-invoices.d.cts +9 -0
- package/dist/actions/get-invoices.d.cts.map +1 -0
- package/dist/actions/get-invoices.d.mts +9 -0
- package/dist/actions/get-invoices.d.mts.map +1 -0
- package/dist/actions/get-invoices.mjs +33 -0
- package/dist/actions/get-invoices.mjs.map +1 -0
- package/dist/actions/get-lists.cjs +30 -0
- package/dist/actions/get-lists.cjs.map +1 -0
- package/dist/actions/get-lists.d.cts +9 -0
- package/dist/actions/get-lists.d.cts.map +1 -0
- package/dist/actions/get-lists.d.mts +9 -0
- package/dist/actions/get-lists.d.mts.map +1 -0
- package/dist/actions/get-lists.mjs +29 -0
- package/dist/actions/get-lists.mjs.map +1 -0
- package/dist/actions/get-products.cjs +25 -0
- package/dist/actions/get-products.cjs.map +1 -0
- package/dist/actions/get-products.d.cts +9 -0
- package/dist/actions/get-products.d.cts.map +1 -0
- package/dist/actions/get-products.d.mts +9 -0
- package/dist/actions/get-products.d.mts.map +1 -0
- package/dist/actions/get-products.mjs +24 -0
- package/dist/actions/get-products.mjs.map +1 -0
- package/dist/actions/index.cjs +39 -0
- package/dist/actions/index.d.cts +20 -0
- package/dist/actions/index.d.mts +20 -0
- package/dist/actions/index.mjs +20 -0
- package/dist/actions/remove-administrator.cjs +19 -0
- package/dist/actions/remove-administrator.cjs.map +1 -0
- package/dist/actions/remove-administrator.d.cts +9 -0
- package/dist/actions/remove-administrator.d.cts.map +1 -0
- package/dist/actions/remove-administrator.d.mts +9 -0
- package/dist/actions/remove-administrator.d.mts.map +1 -0
- package/dist/actions/remove-administrator.mjs +16 -0
- package/dist/actions/remove-administrator.mjs.map +1 -0
- package/dist/actions/remove-tag-from-contact.cjs +23 -0
- package/dist/actions/remove-tag-from-contact.cjs.map +1 -0
- package/dist/actions/remove-tag-from-contact.d.cts +9 -0
- package/dist/actions/remove-tag-from-contact.d.cts.map +1 -0
- package/dist/actions/remove-tag-from-contact.d.mts +9 -0
- package/dist/actions/remove-tag-from-contact.d.mts.map +1 -0
- package/dist/actions/remove-tag-from-contact.mjs +20 -0
- package/dist/actions/remove-tag-from-contact.mjs.map +1 -0
- package/dist/actions/subscribe-to-list.cjs +48 -0
- package/dist/actions/subscribe-to-list.cjs.map +1 -0
- package/dist/actions/subscribe-to-list.d.cts +9 -0
- package/dist/actions/subscribe-to-list.d.cts.map +1 -0
- package/dist/actions/subscribe-to-list.d.mts +9 -0
- package/dist/actions/subscribe-to-list.d.mts.map +1 -0
- package/dist/actions/subscribe-to-list.mjs +47 -0
- package/dist/actions/subscribe-to-list.mjs.map +1 -0
- package/dist/actions/unsubscribe-from-list.cjs +19 -0
- package/dist/actions/unsubscribe-from-list.cjs.map +1 -0
- package/dist/actions/unsubscribe-from-list.d.cts +9 -0
- package/dist/actions/unsubscribe-from-list.d.cts.map +1 -0
- package/dist/actions/unsubscribe-from-list.d.mts +9 -0
- package/dist/actions/unsubscribe-from-list.d.mts.map +1 -0
- package/dist/actions/unsubscribe-from-list.mjs +16 -0
- package/dist/actions/unsubscribe-from-list.mjs.map +1 -0
- package/dist/actions/update-contact-credentials.cjs +43 -0
- package/dist/actions/update-contact-credentials.cjs.map +1 -0
- package/dist/actions/update-contact-credentials.d.cts +9 -0
- package/dist/actions/update-contact-credentials.d.cts.map +1 -0
- package/dist/actions/update-contact-credentials.d.mts +9 -0
- package/dist/actions/update-contact-credentials.d.mts.map +1 -0
- package/dist/actions/update-contact-credentials.mjs +40 -0
- package/dist/actions/update-contact-credentials.mjs.map +1 -0
- package/dist/app.cjs +9 -0
- package/dist/app.cjs.map +1 -0
- package/dist/app.d.cts +5 -0
- package/dist/app.d.cts.map +1 -0
- package/dist/app.d.mts +5 -0
- package/dist/app.d.mts.map +1 -0
- package/dist/app.mjs +10 -0
- package/dist/app.mjs.map +1 -0
- package/dist/catalog.cjs +15 -0
- package/dist/catalog.cjs.map +1 -0
- package/dist/catalog.d.cts +14 -0
- package/dist/catalog.d.cts.map +1 -0
- package/dist/catalog.d.mts +14 -0
- package/dist/catalog.d.mts.map +1 -0
- package/dist/catalog.mjs +15 -0
- package/dist/catalog.mjs.map +1 -0
- package/dist/execute.cjs +18 -0
- package/dist/execute.cjs.map +1 -0
- package/dist/execute.mjs +18 -0
- package/dist/execute.mjs.map +1 -0
- package/dist/index.cjs +44 -0
- package/dist/index.d.cts +22 -0
- package/dist/index.d.mts +22 -0
- package/dist/index.mjs +23 -0
- package/package.json +49 -0
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/subscribe-to-list.ts
|
|
4
|
+
const SimpleroSubscribeToListInput = z.object({
|
|
5
|
+
ref: z.number().int().describe("Affiliate reference for conversion attribution.").optional(),
|
|
6
|
+
tags: z.string().describe("Comma-separated tag list (tags are trimmed of leading/trailing whitespace automatically).").optional(),
|
|
7
|
+
email: z.string().describe("Contact's email address (required)."),
|
|
8
|
+
phone: z.string().describe("Sanitized phone number with country code first (e.g., '15551231234').").optional(),
|
|
9
|
+
track: z.string().describe("Tracking keyword to identify subscription source.").optional(),
|
|
10
|
+
list_id: z.number().int().describe("The ID of the mailing list to subscribe to."),
|
|
11
|
+
referrer: z.string().describe("Last external URL visited before subscription.").optional(),
|
|
12
|
+
last_name: z.string().describe("Contact's surname.").optional(),
|
|
13
|
+
first_name: z.string().describe("Contact's given name.").optional(),
|
|
14
|
+
ip_address: z.string().describe("Actual IP address that the customer used to subscribe.").optional(),
|
|
15
|
+
gdpr_consent: z.boolean().describe("GDPR consent indicator.").optional(),
|
|
16
|
+
landing_page_id: z.number().int().describe("Landing page ID for conversion tracking.").optional(),
|
|
17
|
+
first_activated_at: z.string().describe("Initial activation timestamp in ISO 8601 format.").optional(),
|
|
18
|
+
auto_responder_start_at: z.string().describe("Automation sequence start date in ISO 8601 format.").optional()
|
|
19
|
+
}).describe("Request parameters for subscribing a contact to a mailing list.");
|
|
20
|
+
const SimpleroSubscribeToList_CustomerObjectSchema = z.object({
|
|
21
|
+
id: z.number().int().describe("Contact identifier.").nullable().optional(),
|
|
22
|
+
tags: z.string().describe("Comma-separated tag list.").nullable().optional(),
|
|
23
|
+
email: z.string().describe("Contact's email address.").nullable().optional(),
|
|
24
|
+
phone: z.string().describe("Contact's phone number.").nullable().optional(),
|
|
25
|
+
last_name: z.string().describe("Contact's surname.").nullable().optional(),
|
|
26
|
+
first_name: z.string().describe("Contact's given name.").nullable().optional()
|
|
27
|
+
}).describe("Contact information for the subscriber.");
|
|
28
|
+
const simpleroSubscribeToList = action("SIMPLERO_SUBSCRIBE_TO_LIST", {
|
|
29
|
+
slug: "simplero-subscribe-to-list",
|
|
30
|
+
name: "Subscribe to List",
|
|
31
|
+
description: "Tool to add a new subscriber to a specific mailing list. Use when you need to subscribe a contact with their email address to a list.",
|
|
32
|
+
input: SimpleroSubscribeToListInput,
|
|
33
|
+
output: z.object({
|
|
34
|
+
id: z.number().int().describe("Subscription record ID.").nullable().optional(),
|
|
35
|
+
active: z.boolean().describe("Subscription status.").nullable().optional(),
|
|
36
|
+
list_id: z.number().int().describe("Associated list identifier.").nullable().optional(),
|
|
37
|
+
customer: SimpleroSubscribeToList_CustomerObjectSchema.nullable().optional(),
|
|
38
|
+
confirmed: z.boolean().describe("Email confirmation status.").nullable().optional(),
|
|
39
|
+
created_at: z.string().describe("Creation timestamp in ISO 8601 format.").nullable().optional(),
|
|
40
|
+
updated_at: z.string().describe("Last update timestamp in ISO 8601 format.").nullable().optional(),
|
|
41
|
+
customer_id: z.number().int().describe("Contact identifier.").nullable().optional()
|
|
42
|
+
}).describe("Response schema for list subscription.")
|
|
43
|
+
});
|
|
44
|
+
//#endregion
|
|
45
|
+
export { simpleroSubscribeToList };
|
|
46
|
+
|
|
47
|
+
//# sourceMappingURL=subscribe-to-list.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"subscribe-to-list.mjs","names":[],"sources":["../../src/actions/subscribe-to-list.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SimpleroSubscribeToListInput: z.ZodTypeAny = z.object({\n ref: z.number().int().describe(\"Affiliate reference for conversion attribution.\").optional(),\n tags: z.string().describe(\"Comma-separated tag list (tags are trimmed of leading/trailing whitespace automatically).\").optional(),\n email: z.string().describe(\"Contact's email address (required).\"),\n phone: z.string().describe(\"Sanitized phone number with country code first (e.g., '15551231234').\").optional(),\n track: z.string().describe(\"Tracking keyword to identify subscription source.\").optional(),\n list_id: z.number().int().describe(\"The ID of the mailing list to subscribe to.\"),\n referrer: z.string().describe(\"Last external URL visited before subscription.\").optional(),\n last_name: z.string().describe(\"Contact's surname.\").optional(),\n first_name: z.string().describe(\"Contact's given name.\").optional(),\n ip_address: z.string().describe(\"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(\"Landing page ID for conversion tracking.\").optional(),\n first_activated_at: z.string().describe(\"Initial activation timestamp in ISO 8601 format.\").optional(),\n auto_responder_start_at: z.string().describe(\"Automation sequence start date in ISO 8601 format.\").optional(),\n}).describe(\"Request parameters for subscribing a contact to a mailing list.\");\nconst SimpleroSubscribeToList_CustomerObjectSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Contact identifier.\").nullable().optional(),\n tags: z.string().describe(\"Comma-separated tag list.\").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 last_name: z.string().describe(\"Contact's surname.\").nullable().optional(),\n first_name: z.string().describe(\"Contact's given name.\").nullable().optional(),\n}).describe(\"Contact information for the subscriber.\");\nexport const SimpleroSubscribeToListOutput: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Subscription record ID.\").nullable().optional(),\n active: z.boolean().describe(\"Subscription status.\").nullable().optional(),\n list_id: z.number().int().describe(\"Associated list identifier.\").nullable().optional(),\n customer: SimpleroSubscribeToList_CustomerObjectSchema.nullable().optional(),\n confirmed: z.boolean().describe(\"Email confirmation status.\").nullable().optional(),\n created_at: z.string().describe(\"Creation timestamp in ISO 8601 format.\").nullable().optional(),\n updated_at: z.string().describe(\"Last update timestamp in ISO 8601 format.\").nullable().optional(),\n customer_id: z.number().int().describe(\"Contact identifier.\").nullable().optional(),\n}).describe(\"Response schema for list subscription.\");\n\nexport const simpleroSubscribeToList = action(\"SIMPLERO_SUBSCRIBE_TO_LIST\", {\n slug: \"simplero-subscribe-to-list\",\n name: \"Subscribe to List\",\n description: \"Tool to add a new subscriber to a specific mailing list. Use when you need to subscribe a contact with their email address to a list.\",\n input: SimpleroSubscribeToList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AC,CAAC,IAAI,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,CAAC,CAAC,CAAC,SAAS,wCAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/unsubscribe-from-list.ts
|
|
4
|
+
const SimpleroUnsubscribeFromListInput = zod.z.object({
|
|
5
|
+
email: zod.z.string().describe("The email address of the contact to remove from the list."),
|
|
6
|
+
list_id: zod.z.number().int().describe("The unique identifier of the list from which to unsubscribe the contact.")
|
|
7
|
+
}).describe("Request model for unsubscribing a customer from a list.");
|
|
8
|
+
const SimpleroUnsubscribeFromListOutput = zod.z.object({ success: zod.z.boolean().describe("True if subscriber was removed from the list, false if contact cannot be located.") }).describe("Response model for unsubscribe operation.");
|
|
9
|
+
const simpleroUnsubscribeFromList = require_action.action("SIMPLERO_UNSUBSCRIBE_FROM_LIST", {
|
|
10
|
+
slug: "simplero-unsubscribe-from-list",
|
|
11
|
+
name: "Unsubscribe From List",
|
|
12
|
+
description: "Tool to unsubscribe a customer from a specific mailing list. Use when you need to remove a contact from a list by their email address.",
|
|
13
|
+
input: SimpleroUnsubscribeFromListInput,
|
|
14
|
+
output: SimpleroUnsubscribeFromListOutput
|
|
15
|
+
});
|
|
16
|
+
//#endregion
|
|
17
|
+
exports.simpleroUnsubscribeFromList = simpleroUnsubscribeFromList;
|
|
18
|
+
|
|
19
|
+
//# sourceMappingURL=unsubscribe-from-list.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"unsubscribe-from-list.cjs","names":["z","action"],"sources":["../../src/actions/unsubscribe-from-list.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SimpleroUnsubscribeFromListInput: z.ZodTypeAny = z.object({\n email: z.string().describe(\"The email address of the contact to remove from the list.\"),\n list_id: z.number().int().describe(\"The unique identifier of the list from which to unsubscribe the contact.\"),\n}).describe(\"Request model for unsubscribing a customer from a list.\");\nexport const SimpleroUnsubscribeFromListOutput: z.ZodTypeAny = z.object({\n success: z.boolean().describe(\"True if subscriber was removed from the list, false if contact cannot be located.\"),\n}).describe(\"Response model for unsubscribe operation.\");\n\nexport const simpleroUnsubscribeFromList = action(\"SIMPLERO_UNSUBSCRIBE_FROM_LIST\", {\n slug: \"simplero-unsubscribe-from-list\",\n name: \"Unsubscribe From List\",\n description: \"Tool to unsubscribe a customer from a specific mailing list. Use when you need to remove a contact from a list by their email address.\",\n input: SimpleroUnsubscribeFromListInput,\n output: SimpleroUnsubscribeFromListOutput,\n});\n"],"mappings":";;;AAIA,MAAa,mCAAiDA,IAAAA,EAAE,OAAO;CACrE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D;CACtF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0EAA0E;AAC/G,CAAC,CAAC,CAAC,SAAS,yDAAyD;AACrE,MAAa,oCAAkDA,IAAAA,EAAE,OAAO,EACtE,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,mFAAmF,EACnH,CAAC,CAAC,CAAC,SAAS,2CAA2C;AAEvD,MAAa,8BAA8BC,eAAAA,OAAO,kCAAkC;CAClF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/unsubscribe-from-list.d.ts
|
|
4
|
+
declare const SimpleroUnsubscribeFromListInput: z.ZodTypeAny;
|
|
5
|
+
declare const SimpleroUnsubscribeFromListOutput: z.ZodTypeAny;
|
|
6
|
+
declare const simpleroUnsubscribeFromList: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { simpleroUnsubscribeFromList };
|
|
9
|
+
//# sourceMappingURL=unsubscribe-from-list.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"unsubscribe-from-list.d.cts","names":[],"sources":["../../src/actions/unsubscribe-from-list.ts"],"mappings":";;;cAIa,gCAAA,EAAkC,CAAA,CAAE,UAGqB;AAAA,cACzD,iCAAA,EAAmC,CAAA,CAAE,UAEM;AAAA,cAE3C,2BAAA,gCAA2B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/unsubscribe-from-list.d.ts
|
|
4
|
+
declare const SimpleroUnsubscribeFromListInput: z.ZodTypeAny;
|
|
5
|
+
declare const SimpleroUnsubscribeFromListOutput: z.ZodTypeAny;
|
|
6
|
+
declare const simpleroUnsubscribeFromList: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { simpleroUnsubscribeFromList };
|
|
9
|
+
//# sourceMappingURL=unsubscribe-from-list.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"unsubscribe-from-list.d.mts","names":[],"sources":["../../src/actions/unsubscribe-from-list.ts"],"mappings":";;;cAIa,gCAAA,EAAkC,CAAA,CAAE,UAGqB;AAAA,cACzD,iCAAA,EAAmC,CAAA,CAAE,UAEM;AAAA,cAE3C,2BAAA,gCAA2B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
const simpleroUnsubscribeFromList = action("SIMPLERO_UNSUBSCRIBE_FROM_LIST", {
|
|
4
|
+
slug: "simplero-unsubscribe-from-list",
|
|
5
|
+
name: "Unsubscribe From List",
|
|
6
|
+
description: "Tool to unsubscribe a customer from a specific mailing list. Use when you need to remove a contact from a list by their email address.",
|
|
7
|
+
input: z.object({
|
|
8
|
+
email: z.string().describe("The email address of the contact to remove from the list."),
|
|
9
|
+
list_id: z.number().int().describe("The unique identifier of the list from which to unsubscribe the contact.")
|
|
10
|
+
}).describe("Request model for unsubscribing a customer from a list."),
|
|
11
|
+
output: z.object({ success: z.boolean().describe("True if subscriber was removed from the list, false if contact cannot be located.") }).describe("Response model for unsubscribe operation.")
|
|
12
|
+
});
|
|
13
|
+
//#endregion
|
|
14
|
+
export { simpleroUnsubscribeFromList };
|
|
15
|
+
|
|
16
|
+
//# sourceMappingURL=unsubscribe-from-list.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"unsubscribe-from-list.mjs","names":[],"sources":["../../src/actions/unsubscribe-from-list.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SimpleroUnsubscribeFromListInput: z.ZodTypeAny = z.object({\n email: z.string().describe(\"The email address of the contact to remove from the list.\"),\n list_id: z.number().int().describe(\"The unique identifier of the list from which to unsubscribe the contact.\"),\n}).describe(\"Request model for unsubscribing a customer from a list.\");\nexport const SimpleroUnsubscribeFromListOutput: z.ZodTypeAny = z.object({\n success: z.boolean().describe(\"True if subscriber was removed from the list, false if contact cannot be located.\"),\n}).describe(\"Response model for unsubscribe operation.\");\n\nexport const simpleroUnsubscribeFromList = action(\"SIMPLERO_UNSUBSCRIBE_FROM_LIST\", {\n slug: \"simplero-unsubscribe-from-list\",\n name: \"Unsubscribe From List\",\n description: \"Tool to unsubscribe a customer from a specific mailing list. Use when you need to remove a contact from a list by their email address.\",\n input: SimpleroUnsubscribeFromListInput,\n output: SimpleroUnsubscribeFromListOutput,\n});\n"],"mappings":";;AAYA,MAAa,8BAA8B,OAAO,kCAAkC;CAClF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAZ4D,EAAE,OAAO;EACrE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D;EACtF,SAAS,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0EAA0E;CAC/G,CAAC,CAAC,CAAC,SAAS,yDASH;CACP,QAT6D,EAAE,OAAO,EACtE,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,mFAAmF,EACnH,CAAC,CAAC,CAAC,SAAS,2CAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/update-contact-credentials.ts
|
|
4
|
+
const SimpleroUpdateContactCredentialsInput = zod.z.object({
|
|
5
|
+
id: zod.z.number().int().describe("Contact's internal ID. At least one of email, id, or token is required to identify the contact.").optional(),
|
|
6
|
+
email: zod.z.string().describe("Contact's email address. At least one of email, id, or token is required to identify the contact.").optional(),
|
|
7
|
+
token: zod.z.string().describe("Contact's token. At least one of email, id, or token is required to identify the contact.").optional(),
|
|
8
|
+
last_name: zod.z.string().describe("Contact's last name to update.").optional(),
|
|
9
|
+
first_name: zod.z.string().describe("Contact's first name to update.").optional(),
|
|
10
|
+
update_login_email: zod.z.boolean().describe("Set to true to update the contact's login email address. Use this with the email parameter to change the login email.").optional()
|
|
11
|
+
}).describe("Request model for updating a contact's login credentials.");
|
|
12
|
+
const SimpleroUpdateContactCredentialsOutput = zod.z.object({
|
|
13
|
+
id: zod.z.number().int().describe("Contact's internal identifier").nullable().optional(),
|
|
14
|
+
ref: zod.z.string().describe("Reference value").nullable().optional(),
|
|
15
|
+
name: zod.z.string().describe("Full name of the contact").nullable().optional(),
|
|
16
|
+
email: zod.z.string().describe("Contact's email address").nullable().optional(),
|
|
17
|
+
phone: zod.z.string().describe("Phone number").nullable().optional(),
|
|
18
|
+
track: zod.z.string().describe("Tracking parameter").nullable().optional(),
|
|
19
|
+
referrer: zod.z.string().describe("Referrer URL").nullable().optional(),
|
|
20
|
+
last_name: zod.z.string().describe("Contact's surname").nullable().optional(),
|
|
21
|
+
tag_names: zod.z.string().describe("Comma-separated list of tags").nullable().optional(),
|
|
22
|
+
created_at: zod.z.string().describe("Timestamp of creation in ISO 8601 format").nullable().optional(),
|
|
23
|
+
ip_address: zod.z.string().describe("IP address").nullable().optional(),
|
|
24
|
+
updated_at: zod.z.string().describe("Timestamp of last update in ISO 8601 format").nullable().optional(),
|
|
25
|
+
first_names: zod.z.string().describe("Contact's first name(s)").nullable().optional(),
|
|
26
|
+
affiliate_id: zod.z.number().int().describe("Affiliate identifier").nullable().optional(),
|
|
27
|
+
contact_since: zod.z.string().describe("Relative time string since contact creation").nullable().optional(),
|
|
28
|
+
do_not_contact: zod.z.boolean().describe("Do not contact flag").nullable().optional(),
|
|
29
|
+
lifetime_value_cents_excl_tax: zod.z.number().int().describe("Customer lifetime value in cents excluding tax").nullable().optional(),
|
|
30
|
+
lead_acquisition_cost_cents_excl_tax: zod.z.number().int().describe("Lead acquisition cost in cents excluding tax").nullable().optional(),
|
|
31
|
+
customer_acquisition_cost_cents_excl_tax: zod.z.number().int().describe("Customer acquisition cost in cents excluding tax").nullable().optional()
|
|
32
|
+
}).describe("Response model containing updated contact details.");
|
|
33
|
+
const simpleroUpdateContactCredentials = require_action.action("SIMPLERO_UPDATE_CONTACT_CREDENTIALS", {
|
|
34
|
+
slug: "simplero-update-contact-credentials",
|
|
35
|
+
name: "Update Contact Credentials",
|
|
36
|
+
description: "Tool to update a contact's login credentials including email, first name, and last name. Use only with the consent of the contact. At least one identification parameter (email, id, or token) is required.",
|
|
37
|
+
input: SimpleroUpdateContactCredentialsInput,
|
|
38
|
+
output: SimpleroUpdateContactCredentialsOutput
|
|
39
|
+
});
|
|
40
|
+
//#endregion
|
|
41
|
+
exports.simpleroUpdateContactCredentials = simpleroUpdateContactCredentials;
|
|
42
|
+
|
|
43
|
+
//# sourceMappingURL=update-contact-credentials.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-contact-credentials.cjs","names":["z","action"],"sources":["../../src/actions/update-contact-credentials.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SimpleroUpdateContactCredentialsInput: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Contact's internal ID. At least one of email, id, or token is required to identify the contact.\").optional(),\n email: z.string().describe(\"Contact's email address. At least one of email, id, or token is required to identify the contact.\").optional(),\n token: z.string().describe(\"Contact's token. At least one of email, id, or token is required to identify the contact.\").optional(),\n last_name: z.string().describe(\"Contact's last name to update.\").optional(),\n first_name: z.string().describe(\"Contact's first name to update.\").optional(),\n update_login_email: z.boolean().describe(\"Set to true to update the contact's login email address. Use this with the email parameter to change the login email.\").optional(),\n}).describe(\"Request model for updating a contact's login credentials.\");\nexport const SimpleroUpdateContactCredentialsOutput: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Contact's internal identifier\").nullable().optional(),\n ref: z.string().describe(\"Reference value\").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(\"Phone number\").nullable().optional(),\n track: z.string().describe(\"Tracking parameter\").nullable().optional(),\n referrer: z.string().describe(\"Referrer URL\").nullable().optional(),\n last_name: z.string().describe(\"Contact's surname\").nullable().optional(),\n tag_names: z.string().describe(\"Comma-separated list of tags\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp of creation in ISO 8601 format\").nullable().optional(),\n ip_address: z.string().describe(\"IP address\").nullable().optional(),\n updated_at: z.string().describe(\"Timestamp of last update in ISO 8601 format\").nullable().optional(),\n first_names: z.string().describe(\"Contact's first name(s)\").nullable().optional(),\n affiliate_id: z.number().int().describe(\"Affiliate identifier\").nullable().optional(),\n contact_since: z.string().describe(\"Relative time string since contact creation\").nullable().optional(),\n do_not_contact: z.boolean().describe(\"Do not contact flag\").nullable().optional(),\n lifetime_value_cents_excl_tax: z.number().int().describe(\"Customer 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}).describe(\"Response model containing updated contact details.\");\n\nexport const simpleroUpdateContactCredentials = action(\"SIMPLERO_UPDATE_CONTACT_CREDENTIALS\", {\n slug: \"simplero-update-contact-credentials\",\n name: \"Update Contact Credentials\",\n description: \"Tool to update a contact's login credentials including email, first name, and last name. Use only with the consent of the contact. At least one identification parameter (email, id, or token) is required.\",\n input: SimpleroUpdateContactCredentialsInput,\n output: SimpleroUpdateContactCredentialsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wCAAsDA,IAAAA,EAAE,OAAO;CAC1E,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iGAAiG,CAAC,CAAC,SAAS;CAC1I,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mGAAmG,CAAC,CAAC,SAAS;CACzI,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2FAA2F,CAAC,CAAC,SAAS;CACjI,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CAC1E,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CAC5E,oBAAoBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,uHAAuH,CAAC,CAAC,SAAS;AAC7K,CAAC,CAAC,CAAC,SAAS,2DAA2D;AACvE,MAAa,yCAAuDA,IAAAA,EAAE,OAAO;CAC3E,IAAIA,IAAAA,EAAE,OAAO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IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtG,gBAAgBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,+BAA+BA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/H,sCAAsCA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpI,0CAA0CA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9I,CAAC,CAAC,CAAC,SAAS,oDAAoD;AAEhE,MAAa,mCAAmCC,eAAAA,OAAO,uCAAuC;CAC5F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/update-contact-credentials.d.ts
|
|
4
|
+
declare const SimpleroUpdateContactCredentialsInput: z.ZodTypeAny;
|
|
5
|
+
declare const SimpleroUpdateContactCredentialsOutput: z.ZodTypeAny;
|
|
6
|
+
declare const simpleroUpdateContactCredentials: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { simpleroUpdateContactCredentials };
|
|
9
|
+
//# sourceMappingURL=update-contact-credentials.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-contact-credentials.d.cts","names":[],"sources":["../../src/actions/update-contact-credentials.ts"],"mappings":";;;cAIa,qCAAA,EAAuC,CAAA,CAAE,UAOkB;AAAA,cAC3D,sCAAA,EAAwC,CAAA,CAAE,UAoBU;AAAA,cAEpD,gCAAA,gCAAgC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/update-contact-credentials.d.ts
|
|
4
|
+
declare const SimpleroUpdateContactCredentialsInput: z.ZodTypeAny;
|
|
5
|
+
declare const SimpleroUpdateContactCredentialsOutput: z.ZodTypeAny;
|
|
6
|
+
declare const simpleroUpdateContactCredentials: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { simpleroUpdateContactCredentials };
|
|
9
|
+
//# sourceMappingURL=update-contact-credentials.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-contact-credentials.d.mts","names":[],"sources":["../../src/actions/update-contact-credentials.ts"],"mappings":";;;cAIa,qCAAA,EAAuC,CAAA,CAAE,UAOkB;AAAA,cAC3D,sCAAA,EAAwC,CAAA,CAAE,UAoBU;AAAA,cAEpD,gCAAA,gCAAgC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
const simpleroUpdateContactCredentials = action("SIMPLERO_UPDATE_CONTACT_CREDENTIALS", {
|
|
4
|
+
slug: "simplero-update-contact-credentials",
|
|
5
|
+
name: "Update Contact Credentials",
|
|
6
|
+
description: "Tool to update a contact's login credentials including email, first name, and last name. Use only with the consent of the contact. At least one identification parameter (email, id, or token) is required.",
|
|
7
|
+
input: z.object({
|
|
8
|
+
id: z.number().int().describe("Contact's internal ID. At least one of email, id, or token is required to identify the contact.").optional(),
|
|
9
|
+
email: z.string().describe("Contact's email address. At least one of email, id, or token is required to identify the contact.").optional(),
|
|
10
|
+
token: z.string().describe("Contact's token. At least one of email, id, or token is required to identify the contact.").optional(),
|
|
11
|
+
last_name: z.string().describe("Contact's last name to update.").optional(),
|
|
12
|
+
first_name: z.string().describe("Contact's first name to update.").optional(),
|
|
13
|
+
update_login_email: z.boolean().describe("Set to true to update the contact's login email address. Use this with the email parameter to change the login email.").optional()
|
|
14
|
+
}).describe("Request model for updating a contact's login credentials."),
|
|
15
|
+
output: z.object({
|
|
16
|
+
id: z.number().int().describe("Contact's internal identifier").nullable().optional(),
|
|
17
|
+
ref: z.string().describe("Reference value").nullable().optional(),
|
|
18
|
+
name: z.string().describe("Full name of the contact").nullable().optional(),
|
|
19
|
+
email: z.string().describe("Contact's email address").nullable().optional(),
|
|
20
|
+
phone: z.string().describe("Phone number").nullable().optional(),
|
|
21
|
+
track: z.string().describe("Tracking parameter").nullable().optional(),
|
|
22
|
+
referrer: z.string().describe("Referrer URL").nullable().optional(),
|
|
23
|
+
last_name: z.string().describe("Contact's surname").nullable().optional(),
|
|
24
|
+
tag_names: z.string().describe("Comma-separated list of tags").nullable().optional(),
|
|
25
|
+
created_at: z.string().describe("Timestamp of creation in ISO 8601 format").nullable().optional(),
|
|
26
|
+
ip_address: z.string().describe("IP address").nullable().optional(),
|
|
27
|
+
updated_at: z.string().describe("Timestamp of last update in ISO 8601 format").nullable().optional(),
|
|
28
|
+
first_names: z.string().describe("Contact's first name(s)").nullable().optional(),
|
|
29
|
+
affiliate_id: z.number().int().describe("Affiliate identifier").nullable().optional(),
|
|
30
|
+
contact_since: z.string().describe("Relative time string since contact creation").nullable().optional(),
|
|
31
|
+
do_not_contact: z.boolean().describe("Do not contact flag").nullable().optional(),
|
|
32
|
+
lifetime_value_cents_excl_tax: z.number().int().describe("Customer lifetime value in cents excluding tax").nullable().optional(),
|
|
33
|
+
lead_acquisition_cost_cents_excl_tax: z.number().int().describe("Lead acquisition cost in cents excluding tax").nullable().optional(),
|
|
34
|
+
customer_acquisition_cost_cents_excl_tax: z.number().int().describe("Customer acquisition cost in cents excluding tax").nullable().optional()
|
|
35
|
+
}).describe("Response model containing updated contact details.")
|
|
36
|
+
});
|
|
37
|
+
//#endregion
|
|
38
|
+
export { simpleroUpdateContactCredentials };
|
|
39
|
+
|
|
40
|
+
//# sourceMappingURL=update-contact-credentials.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-contact-credentials.mjs","names":[],"sources":["../../src/actions/update-contact-credentials.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SimpleroUpdateContactCredentialsInput: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Contact's internal ID. At least one of email, id, or token is required to identify the contact.\").optional(),\n email: z.string().describe(\"Contact's email address. At least one of email, id, or token is required to identify the contact.\").optional(),\n token: z.string().describe(\"Contact's token. At least one of email, id, or token is required to identify the contact.\").optional(),\n last_name: z.string().describe(\"Contact's last name to update.\").optional(),\n first_name: z.string().describe(\"Contact's first name to update.\").optional(),\n update_login_email: z.boolean().describe(\"Set to true to update the contact's login email address. Use this with the email parameter to change the login email.\").optional(),\n}).describe(\"Request model for updating a contact's login credentials.\");\nexport const SimpleroUpdateContactCredentialsOutput: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Contact's internal identifier\").nullable().optional(),\n ref: z.string().describe(\"Reference value\").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(\"Phone number\").nullable().optional(),\n track: z.string().describe(\"Tracking parameter\").nullable().optional(),\n referrer: z.string().describe(\"Referrer URL\").nullable().optional(),\n last_name: z.string().describe(\"Contact's surname\").nullable().optional(),\n tag_names: z.string().describe(\"Comma-separated list of tags\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp of creation in ISO 8601 format\").nullable().optional(),\n ip_address: z.string().describe(\"IP address\").nullable().optional(),\n updated_at: z.string().describe(\"Timestamp of last update in ISO 8601 format\").nullable().optional(),\n first_names: z.string().describe(\"Contact's first name(s)\").nullable().optional(),\n affiliate_id: z.number().int().describe(\"Affiliate identifier\").nullable().optional(),\n contact_since: z.string().describe(\"Relative time string since contact creation\").nullable().optional(),\n do_not_contact: z.boolean().describe(\"Do not contact flag\").nullable().optional(),\n lifetime_value_cents_excl_tax: z.number().int().describe(\"Customer 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}).describe(\"Response model containing updated contact details.\");\n\nexport const simpleroUpdateContactCredentials = action(\"SIMPLERO_UPDATE_CONTACT_CREDENTIALS\", {\n slug: \"simplero-update-contact-credentials\",\n name: \"Update Contact Credentials\",\n description: \"Tool to update a contact's login credentials including email, first name, and last name. Use only with the consent of the contact. At least one identification parameter (email, id, or token) is required.\",\n input: SimpleroUpdateContactCredentialsInput,\n output: SimpleroUpdateContactCredentialsOutput,\n});\n"],"mappings":";;AAkCA,MAAa,mCAAmC,OAAO,uCAAuC;CAC5F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAlCiE,EAAE,OAAO;EAC1E,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iGAAiG,CAAC,CAAC,SAAS;EAC1I,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,mGAAmG,CAAC,CAAC,SAAS;EACzI,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,2FAA2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AC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnG,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChF,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpF,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtG,gBAAgB,EAAE,QAAQ,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChF,+BAA+B,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC/H,sCAAsC,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpI,0CAA0C,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9I,CAAC,CAAC,CAAC,SAAS,oDAOF;AACV,CAAC"}
|
package/dist/app.cjs
ADDED
package/dist/app.cjs.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app.cjs","names":[],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp } from \"@keystrokehq/keystroke/app\";\n\nexport const simplero = defineApp({\n slug: \"simplero\",\n auth: \"keystroke\",\n});\n"],"mappings":";AAEA,MAAa,YAAA,uCAAA,CAAA,CAAA,UAAA,CAAqB;CAChC,MAAM;CACN,MAAM;AACR,CAAC"}
|
package/dist/app.d.cts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app.d.cts","names":[],"sources":["../src/app.ts"],"mappings":";cAEa,QAAA,6BAAQ,GAAA,+BAAA,UAAA"}
|
package/dist/app.d.mts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app.d.mts","names":[],"sources":["../src/app.ts"],"mappings":";cAEa,QAAA,6BAAQ,GAAA,+BAAA,UAAA"}
|
package/dist/app.mjs
ADDED
package/dist/app.mjs.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app.mjs","names":[],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp } from \"@keystrokehq/keystroke/app\";\n\nexport const simplero = defineApp({\n slug: \"simplero\",\n auth: \"keystroke\",\n});\n"],"mappings":";;AAEA,MAAa,WAAW,UAAU;CAChC,MAAM;CACN,MAAM;AACR,CAAC"}
|
package/dist/catalog.cjs
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
//#region src/catalog.ts
|
|
2
|
+
/** Generated — kept in sync with src/app.ts. */
|
|
3
|
+
const simpleroCatalog = {
|
|
4
|
+
"slug": "simplero",
|
|
5
|
+
"name": "Simplero",
|
|
6
|
+
"description": "All-in-one marketing software for course creators, coaches and online marketers.",
|
|
7
|
+
"category": "Marketing Automation",
|
|
8
|
+
"logo": "https://logos.composio.dev/api/simplero",
|
|
9
|
+
"authKind": "keystroke",
|
|
10
|
+
"oauthScopes": []
|
|
11
|
+
};
|
|
12
|
+
//#endregion
|
|
13
|
+
exports.simpleroCatalog = simpleroCatalog;
|
|
14
|
+
|
|
15
|
+
//# sourceMappingURL=catalog.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"catalog.cjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const simpleroCatalog = {\n \"slug\": \"simplero\",\n \"name\": \"Simplero\",\n \"description\": \"All-in-one marketing software for course creators, coaches and online marketers.\",\n \"category\": \"Marketing Automation\",\n \"logo\": \"https://logos.composio.dev/api/simplero\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": []\n} as const;\n"],"mappings":";;AACA,MAAa,kBAAkB;CAC7B,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;AAClB"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
//#region src/catalog.d.ts
|
|
2
|
+
/** Generated — kept in sync with src/app.ts. */
|
|
3
|
+
declare const simpleroCatalog: {
|
|
4
|
+
readonly slug: "simplero";
|
|
5
|
+
readonly name: "Simplero";
|
|
6
|
+
readonly description: "All-in-one marketing software for course creators, coaches and online marketers.";
|
|
7
|
+
readonly category: "Marketing Automation";
|
|
8
|
+
readonly logo: "https://logos.composio.dev/api/simplero";
|
|
9
|
+
readonly authKind: "keystroke";
|
|
10
|
+
readonly oauthScopes: readonly [];
|
|
11
|
+
};
|
|
12
|
+
//#endregion
|
|
13
|
+
export { simpleroCatalog };
|
|
14
|
+
//# sourceMappingURL=catalog.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"catalog.d.cts","names":[],"sources":["../src/catalog.ts"],"mappings":";;cACa,eAAA;EAAA"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
//#region src/catalog.d.ts
|
|
2
|
+
/** Generated — kept in sync with src/app.ts. */
|
|
3
|
+
declare const simpleroCatalog: {
|
|
4
|
+
readonly slug: "simplero";
|
|
5
|
+
readonly name: "Simplero";
|
|
6
|
+
readonly description: "All-in-one marketing software for course creators, coaches and online marketers.";
|
|
7
|
+
readonly category: "Marketing Automation";
|
|
8
|
+
readonly logo: "https://logos.composio.dev/api/simplero";
|
|
9
|
+
readonly authKind: "keystroke";
|
|
10
|
+
readonly oauthScopes: readonly [];
|
|
11
|
+
};
|
|
12
|
+
//#endregion
|
|
13
|
+
export { simpleroCatalog };
|
|
14
|
+
//# sourceMappingURL=catalog.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"catalog.d.mts","names":[],"sources":["../src/catalog.ts"],"mappings":";;cACa,eAAA;EAAA"}
|
package/dist/catalog.mjs
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
//#region src/catalog.ts
|
|
2
|
+
/** Generated — kept in sync with src/app.ts. */
|
|
3
|
+
const simpleroCatalog = {
|
|
4
|
+
"slug": "simplero",
|
|
5
|
+
"name": "Simplero",
|
|
6
|
+
"description": "All-in-one marketing software for course creators, coaches and online marketers.",
|
|
7
|
+
"category": "Marketing Automation",
|
|
8
|
+
"logo": "https://logos.composio.dev/api/simplero",
|
|
9
|
+
"authKind": "keystroke",
|
|
10
|
+
"oauthScopes": []
|
|
11
|
+
};
|
|
12
|
+
//#endregion
|
|
13
|
+
export { simpleroCatalog };
|
|
14
|
+
|
|
15
|
+
//# sourceMappingURL=catalog.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"catalog.mjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const simpleroCatalog = {\n \"slug\": \"simplero\",\n \"name\": \"Simplero\",\n \"description\": \"All-in-one marketing software for course creators, coaches and online marketers.\",\n \"category\": \"Marketing Automation\",\n \"logo\": \"https://logos.composio.dev/api/simplero\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": []\n} as const;\n"],"mappings":";;AACA,MAAa,kBAAkB;CAC7B,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;AAClB"}
|
package/dist/execute.cjs
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
let _keystrokehq_keystroke_client = require("@keystrokehq/keystroke/client");
|
|
2
|
+
//#region src/execute.ts
|
|
3
|
+
const APP_SLUG = "simplero";
|
|
4
|
+
/** Pinned app version — updated on regeneration. */
|
|
5
|
+
const APP_VERSION = "20260615_00";
|
|
6
|
+
async function executeSimpleroTool(tool, args) {
|
|
7
|
+
const { result } = await (0, _keystrokehq_keystroke_client.createKeystrokeClient)().tools.execute({
|
|
8
|
+
app: APP_SLUG,
|
|
9
|
+
tool,
|
|
10
|
+
arguments: args,
|
|
11
|
+
version: APP_VERSION
|
|
12
|
+
});
|
|
13
|
+
return result;
|
|
14
|
+
}
|
|
15
|
+
//#endregion
|
|
16
|
+
exports.executeSimpleroTool = executeSimpleroTool;
|
|
17
|
+
|
|
18
|
+
//# sourceMappingURL=execute.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"execute.cjs","names":[],"sources":["../src/execute.ts"],"sourcesContent":["import { createKeystrokeClient } from \"@keystrokehq/keystroke/client\";\n\nconst APP_SLUG = \"simplero\";\n/** Pinned app version — updated on regeneration. */\nconst APP_VERSION = \"20260615_00\";\n\nexport async function executeSimpleroTool(\n tool: string,\n args: Record<string, unknown>,\n): Promise<unknown> {\n const { result } = await createKeystrokeClient().tools.execute({\n app: APP_SLUG,\n tool,\n arguments: args,\n version: APP_VERSION,\n });\n return result;\n}\n"],"mappings":";;AAEA,MAAM,WAAW;;AAEjB,MAAM,cAAc;AAEpB,eAAsB,oBACpB,MACA,MACkB;CAClB,MAAM,EAAE,WAAW,OAAA,GAAA,8BAAA,sBAAA,CAA4B,CAAC,CAAC,MAAM,QAAQ;EAC7D,KAAK;EACL;EACA,WAAW;EACX,SAAS;CACX,CAAC;CACD,OAAO;AACT"}
|
package/dist/execute.mjs
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { createKeystrokeClient } from "@keystrokehq/keystroke/client";
|
|
2
|
+
//#region src/execute.ts
|
|
3
|
+
const APP_SLUG = "simplero";
|
|
4
|
+
/** Pinned app version — updated on regeneration. */
|
|
5
|
+
const APP_VERSION = "20260615_00";
|
|
6
|
+
async function executeSimpleroTool(tool, args) {
|
|
7
|
+
const { result } = await createKeystrokeClient().tools.execute({
|
|
8
|
+
app: APP_SLUG,
|
|
9
|
+
tool,
|
|
10
|
+
arguments: args,
|
|
11
|
+
version: APP_VERSION
|
|
12
|
+
});
|
|
13
|
+
return result;
|
|
14
|
+
}
|
|
15
|
+
//#endregion
|
|
16
|
+
export { executeSimpleroTool };
|
|
17
|
+
|
|
18
|
+
//# sourceMappingURL=execute.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"execute.mjs","names":[],"sources":["../src/execute.ts"],"sourcesContent":["import { createKeystrokeClient } from \"@keystrokehq/keystroke/client\";\n\nconst APP_SLUG = \"simplero\";\n/** Pinned app version — updated on regeneration. */\nconst APP_VERSION = \"20260615_00\";\n\nexport async function executeSimpleroTool(\n tool: string,\n args: Record<string, unknown>,\n): Promise<unknown> {\n const { result } = await createKeystrokeClient().tools.execute({\n app: APP_SLUG,\n tool,\n arguments: args,\n version: APP_VERSION,\n });\n return result;\n}\n"],"mappings":";;AAEA,MAAM,WAAW;;AAEjB,MAAM,cAAc;AAEpB,eAAsB,oBACpB,MACA,MACkB;CAClB,MAAM,EAAE,WAAW,MAAM,sBAAsB,CAAC,CAAC,MAAM,QAAQ;EAC7D,KAAK;EACL;EACA,WAAW;EACX,SAAS;CACX,CAAC;CACD,OAAO;AACT"}
|
package/dist/index.cjs
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_app = require("./app.cjs");
|
|
3
|
+
const require_catalog = require("./catalog.cjs");
|
|
4
|
+
const require_add_tag_to_contact = require("./actions/add-tag-to-contact.cjs");
|
|
5
|
+
const require_bulk_subscribe_to_list = require("./actions/bulk-subscribe-to-list.cjs");
|
|
6
|
+
const require_create_or_update_administrator = require("./actions/create-or-update-administrator.cjs");
|
|
7
|
+
const require_create_or_update_contact = require("./actions/create-or-update-contact.cjs");
|
|
8
|
+
const require_find_contact_by_email = require("./actions/find-contact-by-email.cjs");
|
|
9
|
+
const require_find_subscription_by_email = require("./actions/find-subscription-by-email.cjs");
|
|
10
|
+
const require_get_admin_roles = require("./actions/get-admin-roles.cjs");
|
|
11
|
+
const require_get_administrator_by_id = require("./actions/get-administrator-by-id.cjs");
|
|
12
|
+
const require_get_administrators = require("./actions/get-administrators.cjs");
|
|
13
|
+
const require_get_async_request_status = require("./actions/get-async-request-status.cjs");
|
|
14
|
+
const require_get_contact_by_id = require("./actions/get-contact-by-id.cjs");
|
|
15
|
+
const require_get_invoices = require("./actions/get-invoices.cjs");
|
|
16
|
+
const require_get_lists = require("./actions/get-lists.cjs");
|
|
17
|
+
const require_get_products = require("./actions/get-products.cjs");
|
|
18
|
+
const require_remove_administrator = require("./actions/remove-administrator.cjs");
|
|
19
|
+
const require_remove_tag_from_contact = require("./actions/remove-tag-from-contact.cjs");
|
|
20
|
+
const require_subscribe_to_list = require("./actions/subscribe-to-list.cjs");
|
|
21
|
+
const require_unsubscribe_from_list = require("./actions/unsubscribe-from-list.cjs");
|
|
22
|
+
const require_update_contact_credentials = require("./actions/update-contact-credentials.cjs");
|
|
23
|
+
require("./actions/index.cjs");
|
|
24
|
+
exports.simplero = require_app.simplero;
|
|
25
|
+
exports.simpleroAddTagToContact = require_add_tag_to_contact.simpleroAddTagToContact;
|
|
26
|
+
exports.simpleroBulkSubscribeToList = require_bulk_subscribe_to_list.simpleroBulkSubscribeToList;
|
|
27
|
+
exports.simpleroCatalog = require_catalog.simpleroCatalog;
|
|
28
|
+
exports.simpleroCreateOrUpdateAdministrator = require_create_or_update_administrator.simpleroCreateOrUpdateAdministrator;
|
|
29
|
+
exports.simpleroCreateOrUpdateContact = require_create_or_update_contact.simpleroCreateOrUpdateContact;
|
|
30
|
+
exports.simpleroFindContactByEmail = require_find_contact_by_email.simpleroFindContactByEmail;
|
|
31
|
+
exports.simpleroFindSubscriptionByEmail = require_find_subscription_by_email.simpleroFindSubscriptionByEmail;
|
|
32
|
+
exports.simpleroGetAdminRoles = require_get_admin_roles.simpleroGetAdminRoles;
|
|
33
|
+
exports.simpleroGetAdministratorById = require_get_administrator_by_id.simpleroGetAdministratorById;
|
|
34
|
+
exports.simpleroGetAdministrators = require_get_administrators.simpleroGetAdministrators;
|
|
35
|
+
exports.simpleroGetAsyncRequestStatus = require_get_async_request_status.simpleroGetAsyncRequestStatus;
|
|
36
|
+
exports.simpleroGetContactById = require_get_contact_by_id.simpleroGetContactById;
|
|
37
|
+
exports.simpleroGetInvoices = require_get_invoices.simpleroGetInvoices;
|
|
38
|
+
exports.simpleroGetLists = require_get_lists.simpleroGetLists;
|
|
39
|
+
exports.simpleroGetProducts = require_get_products.simpleroGetProducts;
|
|
40
|
+
exports.simpleroRemoveAdministrator = require_remove_administrator.simpleroRemoveAdministrator;
|
|
41
|
+
exports.simpleroRemoveTagFromContact = require_remove_tag_from_contact.simpleroRemoveTagFromContact;
|
|
42
|
+
exports.simpleroSubscribeToList = require_subscribe_to_list.simpleroSubscribeToList;
|
|
43
|
+
exports.simpleroUnsubscribeFromList = require_unsubscribe_from_list.simpleroUnsubscribeFromList;
|
|
44
|
+
exports.simpleroUpdateContactCredentials = require_update_contact_credentials.simpleroUpdateContactCredentials;
|
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { simpleroAddTagToContact } from "./actions/add-tag-to-contact.cjs";
|
|
2
|
+
import { simpleroBulkSubscribeToList } from "./actions/bulk-subscribe-to-list.cjs";
|
|
3
|
+
import { simpleroCreateOrUpdateAdministrator } from "./actions/create-or-update-administrator.cjs";
|
|
4
|
+
import { simpleroCreateOrUpdateContact } from "./actions/create-or-update-contact.cjs";
|
|
5
|
+
import { simpleroFindContactByEmail } from "./actions/find-contact-by-email.cjs";
|
|
6
|
+
import { simpleroFindSubscriptionByEmail } from "./actions/find-subscription-by-email.cjs";
|
|
7
|
+
import { simpleroGetAdminRoles } from "./actions/get-admin-roles.cjs";
|
|
8
|
+
import { simpleroGetAdministratorById } from "./actions/get-administrator-by-id.cjs";
|
|
9
|
+
import { simpleroGetAdministrators } from "./actions/get-administrators.cjs";
|
|
10
|
+
import { simpleroGetAsyncRequestStatus } from "./actions/get-async-request-status.cjs";
|
|
11
|
+
import { simpleroGetContactById } from "./actions/get-contact-by-id.cjs";
|
|
12
|
+
import { simpleroGetInvoices } from "./actions/get-invoices.cjs";
|
|
13
|
+
import { simpleroGetLists } from "./actions/get-lists.cjs";
|
|
14
|
+
import { simpleroGetProducts } from "./actions/get-products.cjs";
|
|
15
|
+
import { simpleroRemoveAdministrator } from "./actions/remove-administrator.cjs";
|
|
16
|
+
import { simpleroRemoveTagFromContact } from "./actions/remove-tag-from-contact.cjs";
|
|
17
|
+
import { simpleroSubscribeToList } from "./actions/subscribe-to-list.cjs";
|
|
18
|
+
import { simpleroUnsubscribeFromList } from "./actions/unsubscribe-from-list.cjs";
|
|
19
|
+
import { simpleroUpdateContactCredentials } from "./actions/update-contact-credentials.cjs";
|
|
20
|
+
import { simplero } from "./app.cjs";
|
|
21
|
+
import { simpleroCatalog } from "./catalog.cjs";
|
|
22
|
+
export { simplero, simpleroAddTagToContact, simpleroBulkSubscribeToList, simpleroCatalog, simpleroCreateOrUpdateAdministrator, simpleroCreateOrUpdateContact, simpleroFindContactByEmail, simpleroFindSubscriptionByEmail, simpleroGetAdminRoles, simpleroGetAdministratorById, simpleroGetAdministrators, simpleroGetAsyncRequestStatus, simpleroGetContactById, simpleroGetInvoices, simpleroGetLists, simpleroGetProducts, simpleroRemoveAdministrator, simpleroRemoveTagFromContact, simpleroSubscribeToList, simpleroUnsubscribeFromList, simpleroUpdateContactCredentials };
|
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { simpleroAddTagToContact } from "./actions/add-tag-to-contact.mjs";
|
|
2
|
+
import { simpleroBulkSubscribeToList } from "./actions/bulk-subscribe-to-list.mjs";
|
|
3
|
+
import { simpleroCreateOrUpdateAdministrator } from "./actions/create-or-update-administrator.mjs";
|
|
4
|
+
import { simpleroCreateOrUpdateContact } from "./actions/create-or-update-contact.mjs";
|
|
5
|
+
import { simpleroFindContactByEmail } from "./actions/find-contact-by-email.mjs";
|
|
6
|
+
import { simpleroFindSubscriptionByEmail } from "./actions/find-subscription-by-email.mjs";
|
|
7
|
+
import { simpleroGetAdminRoles } from "./actions/get-admin-roles.mjs";
|
|
8
|
+
import { simpleroGetAdministratorById } from "./actions/get-administrator-by-id.mjs";
|
|
9
|
+
import { simpleroGetAdministrators } from "./actions/get-administrators.mjs";
|
|
10
|
+
import { simpleroGetAsyncRequestStatus } from "./actions/get-async-request-status.mjs";
|
|
11
|
+
import { simpleroGetContactById } from "./actions/get-contact-by-id.mjs";
|
|
12
|
+
import { simpleroGetInvoices } from "./actions/get-invoices.mjs";
|
|
13
|
+
import { simpleroGetLists } from "./actions/get-lists.mjs";
|
|
14
|
+
import { simpleroGetProducts } from "./actions/get-products.mjs";
|
|
15
|
+
import { simpleroRemoveAdministrator } from "./actions/remove-administrator.mjs";
|
|
16
|
+
import { simpleroRemoveTagFromContact } from "./actions/remove-tag-from-contact.mjs";
|
|
17
|
+
import { simpleroSubscribeToList } from "./actions/subscribe-to-list.mjs";
|
|
18
|
+
import { simpleroUnsubscribeFromList } from "./actions/unsubscribe-from-list.mjs";
|
|
19
|
+
import { simpleroUpdateContactCredentials } from "./actions/update-contact-credentials.mjs";
|
|
20
|
+
import { simplero } from "./app.mjs";
|
|
21
|
+
import { simpleroCatalog } from "./catalog.mjs";
|
|
22
|
+
export { simplero, simpleroAddTagToContact, simpleroBulkSubscribeToList, simpleroCatalog, simpleroCreateOrUpdateAdministrator, simpleroCreateOrUpdateContact, simpleroFindContactByEmail, simpleroFindSubscriptionByEmail, simpleroGetAdminRoles, simpleroGetAdministratorById, simpleroGetAdministrators, simpleroGetAsyncRequestStatus, simpleroGetContactById, simpleroGetInvoices, simpleroGetLists, simpleroGetProducts, simpleroRemoveAdministrator, simpleroRemoveTagFromContact, simpleroSubscribeToList, simpleroUnsubscribeFromList, simpleroUpdateContactCredentials };
|
package/dist/index.mjs
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { simplero } from "./app.mjs";
|
|
2
|
+
import { simpleroCatalog } from "./catalog.mjs";
|
|
3
|
+
import { simpleroAddTagToContact } from "./actions/add-tag-to-contact.mjs";
|
|
4
|
+
import { simpleroBulkSubscribeToList } from "./actions/bulk-subscribe-to-list.mjs";
|
|
5
|
+
import { simpleroCreateOrUpdateAdministrator } from "./actions/create-or-update-administrator.mjs";
|
|
6
|
+
import { simpleroCreateOrUpdateContact } from "./actions/create-or-update-contact.mjs";
|
|
7
|
+
import { simpleroFindContactByEmail } from "./actions/find-contact-by-email.mjs";
|
|
8
|
+
import { simpleroFindSubscriptionByEmail } from "./actions/find-subscription-by-email.mjs";
|
|
9
|
+
import { simpleroGetAdminRoles } from "./actions/get-admin-roles.mjs";
|
|
10
|
+
import { simpleroGetAdministratorById } from "./actions/get-administrator-by-id.mjs";
|
|
11
|
+
import { simpleroGetAdministrators } from "./actions/get-administrators.mjs";
|
|
12
|
+
import { simpleroGetAsyncRequestStatus } from "./actions/get-async-request-status.mjs";
|
|
13
|
+
import { simpleroGetContactById } from "./actions/get-contact-by-id.mjs";
|
|
14
|
+
import { simpleroGetInvoices } from "./actions/get-invoices.mjs";
|
|
15
|
+
import { simpleroGetLists } from "./actions/get-lists.mjs";
|
|
16
|
+
import { simpleroGetProducts } from "./actions/get-products.mjs";
|
|
17
|
+
import { simpleroRemoveAdministrator } from "./actions/remove-administrator.mjs";
|
|
18
|
+
import { simpleroRemoveTagFromContact } from "./actions/remove-tag-from-contact.mjs";
|
|
19
|
+
import { simpleroSubscribeToList } from "./actions/subscribe-to-list.mjs";
|
|
20
|
+
import { simpleroUnsubscribeFromList } from "./actions/unsubscribe-from-list.mjs";
|
|
21
|
+
import { simpleroUpdateContactCredentials } from "./actions/update-contact-credentials.mjs";
|
|
22
|
+
import "./actions/index.mjs";
|
|
23
|
+
export { simplero, simpleroAddTagToContact, simpleroBulkSubscribeToList, simpleroCatalog, simpleroCreateOrUpdateAdministrator, simpleroCreateOrUpdateContact, simpleroFindContactByEmail, simpleroFindSubscriptionByEmail, simpleroGetAdminRoles, simpleroGetAdministratorById, simpleroGetAdministrators, simpleroGetAsyncRequestStatus, simpleroGetContactById, simpleroGetInvoices, simpleroGetLists, simpleroGetProducts, simpleroRemoveAdministrator, simpleroRemoveTagFromContact, simpleroSubscribeToList, simpleroUnsubscribeFromList, simpleroUpdateContactCredentials };
|