@keystrokehq/moosend 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/actions/add-segment-criteria.cjs +1 -1
- package/dist/actions/add-segment-criteria.cjs.map +1 -1
- package/dist/actions/add-segment-criteria.d.cts +1 -1
- package/dist/actions/add-segment-criteria.d.mts +1 -1
- package/dist/actions/add-segment-criteria.mjs +1 -1
- package/dist/actions/add-segment-criteria.mjs.map +1 -1
- package/dist/actions/add-subscriber.cjs +1 -1
- package/dist/actions/add-subscriber.cjs.map +1 -1
- package/dist/actions/add-subscriber.d.cts +1 -1
- package/dist/actions/add-subscriber.d.mts +1 -1
- package/dist/actions/add-subscriber.mjs +1 -1
- package/dist/actions/add-subscriber.mjs.map +1 -1
- package/dist/actions/clone-campaign.cjs +1 -1
- package/dist/actions/clone-campaign.cjs.map +1 -1
- package/dist/actions/clone-campaign.d.cts +1 -1
- package/dist/actions/clone-campaign.d.mts +1 -1
- package/dist/actions/clone-campaign.mjs +1 -1
- package/dist/actions/clone-campaign.mjs.map +1 -1
- package/dist/actions/create-custom-field.cjs +1 -1
- package/dist/actions/create-custom-field.cjs.map +1 -1
- package/dist/actions/create-custom-field.d.cts +1 -1
- package/dist/actions/create-custom-field.d.mts +1 -1
- package/dist/actions/create-custom-field.mjs +1 -1
- package/dist/actions/create-custom-field.mjs.map +1 -1
- package/dist/actions/create-mailing-list.cjs +1 -1
- package/dist/actions/create-mailing-list.cjs.map +1 -1
- package/dist/actions/create-mailing-list.d.cts +1 -1
- package/dist/actions/create-mailing-list.d.mts +1 -1
- package/dist/actions/create-mailing-list.mjs +1 -1
- package/dist/actions/create-mailing-list.mjs.map +1 -1
- package/dist/actions/create-segment.cjs +2 -2
- package/dist/actions/create-segment.cjs.map +1 -1
- package/dist/actions/create-segment.d.cts +3 -2
- package/dist/actions/create-segment.d.mts +3 -2
- package/dist/actions/create-segment.mjs +2 -2
- package/dist/actions/create-segment.mjs.map +1 -1
- package/dist/actions/delete-campaign.cjs +1 -1
- package/dist/actions/delete-campaign.cjs.map +1 -1
- package/dist/actions/delete-campaign.d.cts +1 -1
- package/dist/actions/delete-campaign.d.mts +1 -1
- package/dist/actions/delete-campaign.mjs +1 -1
- package/dist/actions/delete-campaign.mjs.map +1 -1
- package/dist/actions/delete-custom-field.cjs +1 -1
- package/dist/actions/delete-custom-field.cjs.map +1 -1
- package/dist/actions/delete-custom-field.d.cts +1 -1
- package/dist/actions/delete-custom-field.d.mts +1 -1
- package/dist/actions/delete-custom-field.mjs +1 -1
- package/dist/actions/delete-custom-field.mjs.map +1 -1
- package/dist/actions/delete-mailing-list.cjs +1 -1
- package/dist/actions/delete-mailing-list.cjs.map +1 -1
- package/dist/actions/delete-mailing-list.d.cts +1 -1
- package/dist/actions/delete-mailing-list.d.mts +1 -1
- package/dist/actions/delete-mailing-list.mjs +1 -1
- package/dist/actions/delete-mailing-list.mjs.map +1 -1
- package/dist/actions/get-all-campaigns.cjs +2 -2
- package/dist/actions/get-all-campaigns.cjs.map +1 -1
- package/dist/actions/get-all-campaigns.d.cts +2 -2
- package/dist/actions/get-all-campaigns.d.mts +2 -2
- package/dist/actions/get-all-campaigns.mjs +2 -2
- package/dist/actions/get-all-campaigns.mjs.map +1 -1
- package/dist/actions/get-all-subscribers.cjs +5 -5
- package/dist/actions/get-all-subscribers.cjs.map +1 -1
- package/dist/actions/get-all-subscribers.d.cts +5 -5
- package/dist/actions/get-all-subscribers.d.mts +5 -5
- package/dist/actions/get-all-subscribers.mjs +5 -5
- package/dist/actions/get-all-subscribers.mjs.map +1 -1
- package/dist/actions/get-campaign-details.cjs +1 -1
- package/dist/actions/get-campaign-details.cjs.map +1 -1
- package/dist/actions/get-campaign-details.d.cts +1 -1
- package/dist/actions/get-campaign-details.d.mts +1 -1
- package/dist/actions/get-campaign-details.mjs +1 -1
- package/dist/actions/get-campaign-details.mjs.map +1 -1
- package/dist/actions/get-campaign-stats-by-location.cjs +1 -1
- package/dist/actions/get-campaign-stats-by-location.cjs.map +1 -1
- package/dist/actions/get-campaign-stats-by-location.d.cts +1 -1
- package/dist/actions/get-campaign-stats-by-location.d.mts +1 -1
- package/dist/actions/get-campaign-stats-by-location.mjs +1 -1
- package/dist/actions/get-campaign-stats-by-location.mjs.map +1 -1
- package/dist/actions/get-mailing-list-details.cjs +3 -3
- package/dist/actions/get-mailing-list-details.cjs.map +1 -1
- package/dist/actions/get-mailing-list-details.d.cts +3 -3
- package/dist/actions/get-mailing-list-details.d.mts +3 -3
- package/dist/actions/get-mailing-list-details.mjs +3 -3
- package/dist/actions/get-mailing-list-details.mjs.map +1 -1
- package/dist/actions/get-subscriber-by-email.cjs +3 -3
- package/dist/actions/get-subscriber-by-email.cjs.map +1 -1
- package/dist/actions/get-subscriber-by-email.d.cts +3 -3
- package/dist/actions/get-subscriber-by-email.d.mts +3 -3
- package/dist/actions/get-subscriber-by-email.mjs +3 -3
- package/dist/actions/get-subscriber-by-email.mjs.map +1 -1
- package/dist/actions/list-all-mailing-lists.cjs +5 -5
- package/dist/actions/list-all-mailing-lists.cjs.map +1 -1
- package/dist/actions/list-all-mailing-lists.d.cts +8 -8
- package/dist/actions/list-all-mailing-lists.d.mts +8 -8
- package/dist/actions/list-all-mailing-lists.mjs +5 -5
- package/dist/actions/list-all-mailing-lists.mjs.map +1 -1
- package/dist/actions/list-all-senders.cjs +2 -2
- package/dist/actions/list-all-senders.cjs.map +1 -1
- package/dist/actions/list-all-senders.d.cts +2 -2
- package/dist/actions/list-all-senders.d.mts +2 -2
- package/dist/actions/list-all-senders.mjs +2 -2
- package/dist/actions/list-all-senders.mjs.map +1 -1
- package/dist/actions/list-campaigns-with-paging.cjs +4 -4
- package/dist/actions/list-campaigns-with-paging.cjs.map +1 -1
- package/dist/actions/list-campaigns-with-paging.d.cts +7 -7
- package/dist/actions/list-campaigns-with-paging.d.mts +7 -7
- package/dist/actions/list-campaigns-with-paging.mjs +4 -4
- package/dist/actions/list-campaigns-with-paging.mjs.map +1 -1
- package/dist/actions/list-segments.cjs +5 -5
- package/dist/actions/list-segments.cjs.map +1 -1
- package/dist/actions/list-segments.d.cts +5 -5
- package/dist/actions/list-segments.d.mts +5 -5
- package/dist/actions/list-segments.mjs +5 -5
- package/dist/actions/list-segments.mjs.map +1 -1
- package/dist/actions/remove-multiple-subscribers.cjs +1 -1
- package/dist/actions/remove-multiple-subscribers.cjs.map +1 -1
- package/dist/actions/remove-multiple-subscribers.d.cts +1 -1
- package/dist/actions/remove-multiple-subscribers.d.mts +1 -1
- package/dist/actions/remove-multiple-subscribers.mjs +1 -1
- package/dist/actions/remove-multiple-subscribers.mjs.map +1 -1
- package/dist/actions/schedule-campaign.cjs +1 -1
- package/dist/actions/schedule-campaign.cjs.map +1 -1
- package/dist/actions/schedule-campaign.d.cts +1 -1
- package/dist/actions/schedule-campaign.d.mts +1 -1
- package/dist/actions/schedule-campaign.mjs +1 -1
- package/dist/actions/schedule-campaign.mjs.map +1 -1
- package/dist/actions/send-campaign.cjs +1 -1
- package/dist/actions/send-campaign.cjs.map +1 -1
- package/dist/actions/send-campaign.d.cts +1 -1
- package/dist/actions/send-campaign.d.mts +1 -1
- package/dist/actions/send-campaign.mjs +1 -1
- package/dist/actions/send-campaign.mjs.map +1 -1
- package/dist/actions/unschedule-campaign.cjs +1 -1
- package/dist/actions/unschedule-campaign.cjs.map +1 -1
- package/dist/actions/unschedule-campaign.d.cts +1 -1
- package/dist/actions/unschedule-campaign.d.mts +1 -1
- package/dist/actions/unschedule-campaign.mjs +1 -1
- package/dist/actions/unschedule-campaign.mjs.map +1 -1
- package/dist/actions/unsubscribe-from-account.cjs +1 -1
- package/dist/actions/unsubscribe-from-account.cjs.map +1 -1
- package/dist/actions/unsubscribe-from-account.d.cts +1 -1
- package/dist/actions/unsubscribe-from-account.d.mts +1 -1
- package/dist/actions/unsubscribe-from-account.mjs +1 -1
- package/dist/actions/unsubscribe-from-account.mjs.map +1 -1
- package/dist/actions/unsubscribe-from-mailing-list.cjs +1 -1
- package/dist/actions/unsubscribe-from-mailing-list.cjs.map +1 -1
- package/dist/actions/unsubscribe-from-mailing-list.d.cts +1 -1
- package/dist/actions/unsubscribe-from-mailing-list.d.mts +1 -1
- package/dist/actions/unsubscribe-from-mailing-list.mjs +1 -1
- package/dist/actions/unsubscribe-from-mailing-list.mjs.map +1 -1
- package/dist/actions/update-campaign.cjs +2 -2
- package/dist/actions/update-campaign.cjs.map +1 -1
- package/dist/actions/update-campaign.d.cts +3 -2
- package/dist/actions/update-campaign.d.mts +3 -2
- package/dist/actions/update-campaign.mjs +2 -2
- package/dist/actions/update-campaign.mjs.map +1 -1
- package/dist/actions/update-custom-field.cjs +1 -1
- package/dist/actions/update-custom-field.cjs.map +1 -1
- package/dist/actions/update-custom-field.d.cts +1 -1
- package/dist/actions/update-custom-field.d.mts +1 -1
- package/dist/actions/update-custom-field.mjs +1 -1
- package/dist/actions/update-custom-field.mjs.map +1 -1
- package/dist/actions/update-mailing-list.cjs +2 -2
- package/dist/actions/update-mailing-list.cjs.map +1 -1
- package/dist/actions/update-mailing-list.d.cts +2 -2
- package/dist/actions/update-mailing-list.d.mts +2 -2
- package/dist/actions/update-mailing-list.mjs +2 -2
- package/dist/actions/update-mailing-list.mjs.map +1 -1
- package/dist/actions/update-segment-criteria.cjs +1 -1
- package/dist/actions/update-segment-criteria.cjs.map +1 -1
- package/dist/actions/update-segment-criteria.d.cts +1 -1
- package/dist/actions/update-segment-criteria.d.mts +1 -1
- package/dist/actions/update-segment-criteria.mjs +1 -1
- package/dist/actions/update-segment-criteria.mjs.map +1 -1
- package/dist/actions/update-segment.cjs +3 -3
- package/dist/actions/update-segment.cjs.map +1 -1
- package/dist/actions/update-segment.d.cts +4 -3
- package/dist/actions/update-segment.d.mts +4 -3
- package/dist/actions/update-segment.mjs +3 -3
- package/dist/actions/update-segment.mjs.map +1 -1
- package/dist/actions/update-subscriber.cjs +1 -1
- package/dist/actions/update-subscriber.cjs.map +1 -1
- package/dist/actions/update-subscriber.d.cts +1 -1
- package/dist/actions/update-subscriber.d.mts +1 -1
- package/dist/actions/update-subscriber.mjs +1 -1
- package/dist/actions/update-subscriber.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -15,7 +15,7 @@ const MoosendAddSegmentCriteriaOutput = zod.z.object({
|
|
|
15
15
|
Code: zod.z.number().int().describe("Response code; 0 indicates success.").nullable(),
|
|
16
16
|
Error: zod.z.string().describe("Error message; null if successful.").nullable().optional(),
|
|
17
17
|
Context: zod.z.string().describe("Contains the new criteria ID upon successful creation.").nullable().optional()
|
|
18
|
-
}).describe("Response schema for AddSegmentCriteria action.");
|
|
18
|
+
}).passthrough().describe("Response schema for AddSegmentCriteria action.");
|
|
19
19
|
const moosendAddSegmentCriteria = require_action.action("MOOSEND_ADD_SEGMENT_CRITERIA", {
|
|
20
20
|
slug: "moosend-add-segment-criteria",
|
|
21
21
|
name: "Add Segment Criteria",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add-segment-criteria.cjs","names":["z","action"],"sources":["../../src/actions/add-segment-criteria.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoosendAddSegmentCriteriaInput = z.object({\n field: z.string().describe(\"The field of the criterion to filter the mailing list by (e.g., 'Email', 'Name', custom field name).\"),\n value: z.string().describe(\"A search term to filter the specified field by.\"),\n format: z.string().default(\"json\").describe(\"Response format. Only 'json' is supported.\").optional(),\n date_to: z.string().describe(\"Provides an additional filter option to be combined with date-related fields.\").optional(),\n comparer: z.string().default(\"Is\").describe(\"An operator that defines the way to compare a criterion field with its value (e.g., 'Is', 'IsNot', 'Contains').\").optional(),\n date_from: z.string().describe(\"Provides an additional filter option to be combined with date-related fields.\").optional(),\n segment_id: z.string().describe(\"The ID of the segment to add the criterion to.\"),\n mailing_list_id: z.string().describe(\"The ID of the mailing list the specified segment belongs to.\"),\n}).describe(\"Request schema for adding a criterion to a segment.\");\nexport const MoosendAddSegmentCriteriaOutput = z.object({\n Code: z.number().int().describe(\"Response code; 0 indicates success.\").nullable(),\n Error: z.string().describe(\"Error message; null if successful.\").nullable().optional(),\n Context: z.string().describe(\"Contains the new criteria ID upon successful creation.\").nullable().optional(),\n}).describe(\"Response schema for AddSegmentCriteria action.\");\n\nexport const moosendAddSegmentCriteria = action(\"MOOSEND_ADD_SEGMENT_CRITERIA\", {\n slug: \"moosend-add-segment-criteria\",\n name: \"Add Segment Criteria\",\n description: \"Tool to add a new criterion (rule) to a segment. Use after obtaining the mailing list ID and segment ID to define filtering criteria.\",\n input: MoosendAddSegmentCriteriaInput,\n output: MoosendAddSegmentCriteriaOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAAiCA,IAAAA,EAAE,OAAO;CACrD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sGAAsG;CACjI,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD;CAC5E,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CACnG,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS;CACvH,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,iHAAiH,CAAC,CAAC,SAAS;CACxK,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS;CACzH,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD;CAChF,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D;AACrG,CAAC,CAAC,CAAC,SAAS,qDAAqD;AACjE,MAAa,kCAAkCA,IAAAA,EAAE,OAAO;CACtD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CAChF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC7G,CAAC,CAAC,CAAC,SAAS,gDAAgD;
|
|
1
|
+
{"version":3,"file":"add-segment-criteria.cjs","names":["z","action"],"sources":["../../src/actions/add-segment-criteria.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoosendAddSegmentCriteriaInput = z.object({\n field: z.string().describe(\"The field of the criterion to filter the mailing list by (e.g., 'Email', 'Name', custom field name).\"),\n value: z.string().describe(\"A search term to filter the specified field by.\"),\n format: z.string().default(\"json\").describe(\"Response format. Only 'json' is supported.\").optional(),\n date_to: z.string().describe(\"Provides an additional filter option to be combined with date-related fields.\").optional(),\n comparer: z.string().default(\"Is\").describe(\"An operator that defines the way to compare a criterion field with its value (e.g., 'Is', 'IsNot', 'Contains').\").optional(),\n date_from: z.string().describe(\"Provides an additional filter option to be combined with date-related fields.\").optional(),\n segment_id: z.string().describe(\"The ID of the segment to add the criterion to.\"),\n mailing_list_id: z.string().describe(\"The ID of the mailing list the specified segment belongs to.\"),\n}).describe(\"Request schema for adding a criterion to a segment.\");\nexport const MoosendAddSegmentCriteriaOutput = z.object({\n Code: z.number().int().describe(\"Response code; 0 indicates success.\").nullable(),\n Error: z.string().describe(\"Error message; null if successful.\").nullable().optional(),\n Context: z.string().describe(\"Contains the new criteria ID upon successful creation.\").nullable().optional(),\n}).passthrough().describe(\"Response schema for AddSegmentCriteria action.\");\n\nexport const moosendAddSegmentCriteria = action(\"MOOSEND_ADD_SEGMENT_CRITERIA\", {\n slug: \"moosend-add-segment-criteria\",\n name: \"Add Segment Criteria\",\n description: \"Tool to add a new criterion (rule) to a segment. Use after obtaining the mailing list ID and segment ID to define filtering criteria.\",\n input: MoosendAddSegmentCriteriaInput,\n output: MoosendAddSegmentCriteriaOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAAiCA,IAAAA,EAAE,OAAO;CACrD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sGAAsG;CACjI,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD;CAC5E,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CACnG,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS;CACvH,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,iHAAiH,CAAC,CAAC,SAAS;CACxK,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS;CACzH,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD;CAChF,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D;AACrG,CAAC,CAAC,CAAC,SAAS,qDAAqD;AACjE,MAAa,kCAAkCA,IAAAA,EAAE,OAAO;CACtD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CAChF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC7G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gDAAgD;AAE1E,MAAa,4BAA4BC,eAAAA,OAAO,gCAAgC;CAC9E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -15,7 +15,7 @@ declare const MoosendAddSegmentCriteriaOutput: z.ZodObject<{
|
|
|
15
15
|
Code: z.ZodNullable<z.ZodNumber>;
|
|
16
16
|
Error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
17
|
Context: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
|
-
}, z.core.$
|
|
18
|
+
}, z.core.$loose>;
|
|
19
19
|
declare const moosendAddSegmentCriteria: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
20
20
|
field: string;
|
|
21
21
|
value: string;
|
|
@@ -15,7 +15,7 @@ declare const MoosendAddSegmentCriteriaOutput: z.ZodObject<{
|
|
|
15
15
|
Code: z.ZodNullable<z.ZodNumber>;
|
|
16
16
|
Error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
17
|
Context: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
|
-
}, z.core.$
|
|
18
|
+
}, z.core.$loose>;
|
|
19
19
|
declare const moosendAddSegmentCriteria: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
20
20
|
field: string;
|
|
21
21
|
value: string;
|
|
@@ -18,7 +18,7 @@ const moosendAddSegmentCriteria = action("MOOSEND_ADD_SEGMENT_CRITERIA", {
|
|
|
18
18
|
Code: z.number().int().describe("Response code; 0 indicates success.").nullable(),
|
|
19
19
|
Error: z.string().describe("Error message; null if successful.").nullable().optional(),
|
|
20
20
|
Context: z.string().describe("Contains the new criteria ID upon successful creation.").nullable().optional()
|
|
21
|
-
}).describe("Response schema for AddSegmentCriteria action.")
|
|
21
|
+
}).passthrough().describe("Response schema for AddSegmentCriteria action.")
|
|
22
22
|
});
|
|
23
23
|
//#endregion
|
|
24
24
|
export { moosendAddSegmentCriteria };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add-segment-criteria.mjs","names":[],"sources":["../../src/actions/add-segment-criteria.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoosendAddSegmentCriteriaInput = z.object({\n field: z.string().describe(\"The field of the criterion to filter the mailing list by (e.g., 'Email', 'Name', custom field name).\"),\n value: z.string().describe(\"A search term to filter the specified field by.\"),\n format: z.string().default(\"json\").describe(\"Response format. Only 'json' is supported.\").optional(),\n date_to: z.string().describe(\"Provides an additional filter option to be combined with date-related fields.\").optional(),\n comparer: z.string().default(\"Is\").describe(\"An operator that defines the way to compare a criterion field with its value (e.g., 'Is', 'IsNot', 'Contains').\").optional(),\n date_from: z.string().describe(\"Provides an additional filter option to be combined with date-related fields.\").optional(),\n segment_id: z.string().describe(\"The ID of the segment to add the criterion to.\"),\n mailing_list_id: z.string().describe(\"The ID of the mailing list the specified segment belongs to.\"),\n}).describe(\"Request schema for adding a criterion to a segment.\");\nexport const MoosendAddSegmentCriteriaOutput = z.object({\n Code: z.number().int().describe(\"Response code; 0 indicates success.\").nullable(),\n Error: z.string().describe(\"Error message; null if successful.\").nullable().optional(),\n Context: z.string().describe(\"Contains the new criteria ID upon successful creation.\").nullable().optional(),\n}).describe(\"Response schema for AddSegmentCriteria action.\");\n\nexport const moosendAddSegmentCriteria = action(\"MOOSEND_ADD_SEGMENT_CRITERIA\", {\n slug: \"moosend-add-segment-criteria\",\n name: \"Add Segment Criteria\",\n description: \"Tool to add a new criterion (rule) to a segment. Use after obtaining the mailing list ID and segment ID to define filtering criteria.\",\n input: MoosendAddSegmentCriteriaInput,\n output: MoosendAddSegmentCriteriaOutput,\n});\n"],"mappings":";;AAoBA,MAAa,4BAA4B,OAAO,gCAAgC;CAC9E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OApB4C,EAAE,OAAO;EACrD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,sGAAsG;EACjI,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD;EAC5E,QAAQ,EAAE,OAAO,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;EACnG,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS;EACvH,UAAU,EAAE,OAAO,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,iHAAiH,CAAC,CAAC,SAAS;EACxK,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS;EACzH,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD;EAChF,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D;CACrG,CAAC,CAAC,CAAC,SAAS,qDAWH;CACP,QAX6C,EAAE,OAAO;EACtD,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;EAChF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7G,CAAC,CAAC,CAAC,SAAS,
|
|
1
|
+
{"version":3,"file":"add-segment-criteria.mjs","names":[],"sources":["../../src/actions/add-segment-criteria.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoosendAddSegmentCriteriaInput = z.object({\n field: z.string().describe(\"The field of the criterion to filter the mailing list by (e.g., 'Email', 'Name', custom field name).\"),\n value: z.string().describe(\"A search term to filter the specified field by.\"),\n format: z.string().default(\"json\").describe(\"Response format. Only 'json' is supported.\").optional(),\n date_to: z.string().describe(\"Provides an additional filter option to be combined with date-related fields.\").optional(),\n comparer: z.string().default(\"Is\").describe(\"An operator that defines the way to compare a criterion field with its value (e.g., 'Is', 'IsNot', 'Contains').\").optional(),\n date_from: z.string().describe(\"Provides an additional filter option to be combined with date-related fields.\").optional(),\n segment_id: z.string().describe(\"The ID of the segment to add the criterion to.\"),\n mailing_list_id: z.string().describe(\"The ID of the mailing list the specified segment belongs to.\"),\n}).describe(\"Request schema for adding a criterion to a segment.\");\nexport const MoosendAddSegmentCriteriaOutput = z.object({\n Code: z.number().int().describe(\"Response code; 0 indicates success.\").nullable(),\n Error: z.string().describe(\"Error message; null if successful.\").nullable().optional(),\n Context: z.string().describe(\"Contains the new criteria ID upon successful creation.\").nullable().optional(),\n}).passthrough().describe(\"Response schema for AddSegmentCriteria action.\");\n\nexport const moosendAddSegmentCriteria = action(\"MOOSEND_ADD_SEGMENT_CRITERIA\", {\n slug: \"moosend-add-segment-criteria\",\n name: \"Add Segment Criteria\",\n description: \"Tool to add a new criterion (rule) to a segment. Use after obtaining the mailing list ID and segment ID to define filtering criteria.\",\n input: MoosendAddSegmentCriteriaInput,\n output: MoosendAddSegmentCriteriaOutput,\n});\n"],"mappings":";;AAoBA,MAAa,4BAA4B,OAAO,gCAAgC;CAC9E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OApB4C,EAAE,OAAO;EACrD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,sGAAsG;EACjI,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD;EAC5E,QAAQ,EAAE,OAAO,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;EACnG,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS;EACvH,UAAU,EAAE,OAAO,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,iHAAiH,CAAC,CAAC,SAAS;EACxK,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS;EACzH,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD;EAChF,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D;CACrG,CAAC,CAAC,CAAC,SAAS,qDAWH;CACP,QAX6C,EAAE,OAAO;EACtD,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;EAChF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gDAOhB;AACV,CAAC"}
|
|
@@ -15,7 +15,7 @@ const MoosendAddSubscriberOutput = zod.z.object({
|
|
|
15
15
|
Code: zod.z.number().int().describe("Response code; 0 indicates success.").nullable(),
|
|
16
16
|
Error: zod.z.string().describe("Error message; null if successful.").nullable().optional(),
|
|
17
17
|
Context: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Full subscriber context including ID, status, custom fields, and timestamps.").nullable().optional()
|
|
18
|
-
}).describe("Response schema for AddSubscriber action.");
|
|
18
|
+
}).passthrough().describe("Response schema for AddSubscriber action.");
|
|
19
19
|
const moosendAddSubscriber = require_action.action("MOOSEND_ADD_SUBSCRIBER", {
|
|
20
20
|
slug: "moosend-add-subscriber",
|
|
21
21
|
name: "Add or Update Subscriber",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add-subscriber.cjs","names":["z","action"],"sources":["../../src/actions/add-subscriber.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoosendAddSubscriberInput = z.object({\n Name: z.string().describe(\"Display name of the subscriber.\").optional(),\n Tags: z.array(z.string()).describe(\"Tags to apply to the subscriber.\").optional(),\n Email: z.string().describe(\"Email address of the subscriber.\"),\n format: z.string().default(\"json\").describe(\"Response format.\").optional(),\n Preferences: z.array(z.string()).describe(\"Preference values for the subscriber.\").optional(),\n CustomFields: z.array(z.string()).describe(\"List of custom field values in 'FieldName=Value' format.\").optional(),\n mailingListID: z.string().describe(\"The unique identifier of the mailing list to add the subscriber to.\"),\n HasExternalDoubleOptIn: z.boolean().describe(\"Flag indicating external double opt-in consent.\").optional(),\n}).describe(\"Request schema for adding or updating a subscriber in a mailing list.\");\nexport const MoosendAddSubscriberOutput = z.object({\n Code: z.number().int().describe(\"Response code; 0 indicates success.\").nullable(),\n Error: z.string().describe(\"Error message; null if successful.\").nullable().optional(),\n Context: z.record(z.string(), z.unknown()).describe(\"Full subscriber context including ID, status, custom fields, and timestamps.\").nullable().optional(),\n}).describe(\"Response schema for AddSubscriber action.\");\n\nexport const moosendAddSubscriber = action(\"MOOSEND_ADD_SUBSCRIBER\", {\n slug: \"moosend-add-subscriber\",\n name: \"Add or Update Subscriber\",\n description: \"Tool to add or update a subscriber in a mailing list. Use after obtaining the mailing list ID to manage subscribers.\",\n input: MoosendAddSubscriberInput,\n output: MoosendAddSubscriberOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CACtE,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CAChF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;CAC7D,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;CACzE,aAAaA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAC5F,cAAcA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;CAChH,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE;CACxG,wBAAwBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;AAC3G,CAAC,CAAC,CAAC,SAAS,uEAAuE;AACnF,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CAChF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,SAASA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC1J,CAAC,CAAC,CAAC,SAAS,2CAA2C;
|
|
1
|
+
{"version":3,"file":"add-subscriber.cjs","names":["z","action"],"sources":["../../src/actions/add-subscriber.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoosendAddSubscriberInput = z.object({\n Name: z.string().describe(\"Display name of the subscriber.\").optional(),\n Tags: z.array(z.string()).describe(\"Tags to apply to the subscriber.\").optional(),\n Email: z.string().describe(\"Email address of the subscriber.\"),\n format: z.string().default(\"json\").describe(\"Response format.\").optional(),\n Preferences: z.array(z.string()).describe(\"Preference values for the subscriber.\").optional(),\n CustomFields: z.array(z.string()).describe(\"List of custom field values in 'FieldName=Value' format.\").optional(),\n mailingListID: z.string().describe(\"The unique identifier of the mailing list to add the subscriber to.\"),\n HasExternalDoubleOptIn: z.boolean().describe(\"Flag indicating external double opt-in consent.\").optional(),\n}).describe(\"Request schema for adding or updating a subscriber in a mailing list.\");\nexport const MoosendAddSubscriberOutput = z.object({\n Code: z.number().int().describe(\"Response code; 0 indicates success.\").nullable(),\n Error: z.string().describe(\"Error message; null if successful.\").nullable().optional(),\n Context: z.record(z.string(), z.unknown()).describe(\"Full subscriber context including ID, status, custom fields, and timestamps.\").nullable().optional(),\n}).passthrough().describe(\"Response schema for AddSubscriber action.\");\n\nexport const moosendAddSubscriber = action(\"MOOSEND_ADD_SUBSCRIBER\", {\n slug: \"moosend-add-subscriber\",\n name: \"Add or Update Subscriber\",\n description: \"Tool to add or update a subscriber in a mailing list. Use after obtaining the mailing list ID to manage subscribers.\",\n input: MoosendAddSubscriberInput,\n output: MoosendAddSubscriberOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CACtE,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CAChF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;CAC7D,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;CACzE,aAAaA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAC5F,cAAcA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;CAChH,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE;CACxG,wBAAwBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;AAC3G,CAAC,CAAC,CAAC,SAAS,uEAAuE;AACnF,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CAChF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,SAASA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC1J,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2CAA2C;AAErE,MAAa,uBAAuBC,eAAAA,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -15,7 +15,7 @@ declare const MoosendAddSubscriberOutput: z.ZodObject<{
|
|
|
15
15
|
Code: z.ZodNullable<z.ZodNumber>;
|
|
16
16
|
Error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
17
|
Context: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
18
|
-
}, z.core.$
|
|
18
|
+
}, z.core.$loose>;
|
|
19
19
|
declare const moosendAddSubscriber: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
20
20
|
Email: string;
|
|
21
21
|
mailingListID: string;
|
|
@@ -15,7 +15,7 @@ declare const MoosendAddSubscriberOutput: z.ZodObject<{
|
|
|
15
15
|
Code: z.ZodNullable<z.ZodNumber>;
|
|
16
16
|
Error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
17
|
Context: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
18
|
-
}, z.core.$
|
|
18
|
+
}, z.core.$loose>;
|
|
19
19
|
declare const moosendAddSubscriber: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
20
20
|
Email: string;
|
|
21
21
|
mailingListID: string;
|
|
@@ -18,7 +18,7 @@ const moosendAddSubscriber = action("MOOSEND_ADD_SUBSCRIBER", {
|
|
|
18
18
|
Code: z.number().int().describe("Response code; 0 indicates success.").nullable(),
|
|
19
19
|
Error: z.string().describe("Error message; null if successful.").nullable().optional(),
|
|
20
20
|
Context: z.record(z.string(), z.unknown()).describe("Full subscriber context including ID, status, custom fields, and timestamps.").nullable().optional()
|
|
21
|
-
}).describe("Response schema for AddSubscriber action.")
|
|
21
|
+
}).passthrough().describe("Response schema for AddSubscriber action.")
|
|
22
22
|
});
|
|
23
23
|
//#endregion
|
|
24
24
|
export { moosendAddSubscriber };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add-subscriber.mjs","names":[],"sources":["../../src/actions/add-subscriber.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoosendAddSubscriberInput = z.object({\n Name: z.string().describe(\"Display name of the subscriber.\").optional(),\n Tags: z.array(z.string()).describe(\"Tags to apply to the subscriber.\").optional(),\n Email: z.string().describe(\"Email address of the subscriber.\"),\n format: z.string().default(\"json\").describe(\"Response format.\").optional(),\n Preferences: z.array(z.string()).describe(\"Preference values for the subscriber.\").optional(),\n CustomFields: z.array(z.string()).describe(\"List of custom field values in 'FieldName=Value' format.\").optional(),\n mailingListID: z.string().describe(\"The unique identifier of the mailing list to add the subscriber to.\"),\n HasExternalDoubleOptIn: z.boolean().describe(\"Flag indicating external double opt-in consent.\").optional(),\n}).describe(\"Request schema for adding or updating a subscriber in a mailing list.\");\nexport const MoosendAddSubscriberOutput = z.object({\n Code: z.number().int().describe(\"Response code; 0 indicates success.\").nullable(),\n Error: z.string().describe(\"Error message; null if successful.\").nullable().optional(),\n Context: z.record(z.string(), z.unknown()).describe(\"Full subscriber context including ID, status, custom fields, and timestamps.\").nullable().optional(),\n}).describe(\"Response schema for AddSubscriber action.\");\n\nexport const moosendAddSubscriber = action(\"MOOSEND_ADD_SUBSCRIBER\", {\n slug: \"moosend-add-subscriber\",\n name: \"Add or Update Subscriber\",\n description: \"Tool to add or update a subscriber in a mailing list. Use after obtaining the mailing list ID to manage subscribers.\",\n input: MoosendAddSubscriberInput,\n output: MoosendAddSubscriberOutput,\n});\n"],"mappings":";;AAoBA,MAAa,uBAAuB,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OApBuC,EAAE,OAAO;EAChD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;EACtE,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;EAChF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;EAC7D,QAAQ,EAAE,OAAO,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;EACzE,aAAa,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;EAC5F,cAAc,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;EAChH,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE;EACxG,wBAAwB,EAAE,QAAQ,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CAC3G,CAAC,CAAC,CAAC,SAAS,uEAWH;CACP,QAXwC,EAAE,OAAO;EACjD,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;EAChF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrF,SAAS,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1J,CAAC,CAAC,CAAC,SAAS,
|
|
1
|
+
{"version":3,"file":"add-subscriber.mjs","names":[],"sources":["../../src/actions/add-subscriber.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoosendAddSubscriberInput = z.object({\n Name: z.string().describe(\"Display name of the subscriber.\").optional(),\n Tags: z.array(z.string()).describe(\"Tags to apply to the subscriber.\").optional(),\n Email: z.string().describe(\"Email address of the subscriber.\"),\n format: z.string().default(\"json\").describe(\"Response format.\").optional(),\n Preferences: z.array(z.string()).describe(\"Preference values for the subscriber.\").optional(),\n CustomFields: z.array(z.string()).describe(\"List of custom field values in 'FieldName=Value' format.\").optional(),\n mailingListID: z.string().describe(\"The unique identifier of the mailing list to add the subscriber to.\"),\n HasExternalDoubleOptIn: z.boolean().describe(\"Flag indicating external double opt-in consent.\").optional(),\n}).describe(\"Request schema for adding or updating a subscriber in a mailing list.\");\nexport const MoosendAddSubscriberOutput = z.object({\n Code: z.number().int().describe(\"Response code; 0 indicates success.\").nullable(),\n Error: z.string().describe(\"Error message; null if successful.\").nullable().optional(),\n Context: z.record(z.string(), z.unknown()).describe(\"Full subscriber context including ID, status, custom fields, and timestamps.\").nullable().optional(),\n}).passthrough().describe(\"Response schema for AddSubscriber action.\");\n\nexport const moosendAddSubscriber = action(\"MOOSEND_ADD_SUBSCRIBER\", {\n slug: \"moosend-add-subscriber\",\n name: \"Add or Update Subscriber\",\n description: \"Tool to add or update a subscriber in a mailing list. Use after obtaining the mailing list ID to manage subscribers.\",\n input: MoosendAddSubscriberInput,\n output: MoosendAddSubscriberOutput,\n});\n"],"mappings":";;AAoBA,MAAa,uBAAuB,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OApBuC,EAAE,OAAO;EAChD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;EACtE,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;EAChF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;EAC7D,QAAQ,EAAE,OAAO,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;EACzE,aAAa,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;EAC5F,cAAc,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;EAChH,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE;EACxG,wBAAwB,EAAE,QAAQ,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CAC3G,CAAC,CAAC,CAAC,SAAS,uEAWH;CACP,QAXwC,EAAE,OAAO;EACjD,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;EAChF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrF,SAAS,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1J,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2CAOhB;AACV,CAAC"}
|
|
@@ -9,7 +9,7 @@ const MoosendCloneCampaignOutput = zod.z.object({
|
|
|
9
9
|
Code: zod.z.number().int().describe("API response code. 0 indicates successful cloning, any non-zero value indicates an error occurred.").nullable(),
|
|
10
10
|
Error: zod.z.string().describe("Error message if the operation failed. Will be null when Code is 0 (success).").nullable().optional(),
|
|
11
11
|
Context: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Additional context data containing details about the newly cloned campaign, including its new campaign ID and configuration. Null when an error occurs.").nullable().optional()
|
|
12
|
-
}).describe("Response schema for cloning an existing campaign.");
|
|
12
|
+
}).passthrough().describe("Response schema for cloning an existing campaign.");
|
|
13
13
|
const moosendCloneCampaign = require_action.action("MOOSEND_CLONE_CAMPAIGN", {
|
|
14
14
|
slug: "moosend-clone-campaign",
|
|
15
15
|
name: "Clone Campaign",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"clone-campaign.cjs","names":["z","action"],"sources":["../../src/actions/clone-campaign.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoosendCloneCampaignInput = z.object({\n format: z.enum([\"json\", \"xml\"]).default(\"json\").describe(\"Response format. Use 'json' (default) for JSON responses or 'xml' for XML responses.\").optional(),\n campaign_id: z.string().describe(\"The unique identifier (UUID format) of the campaign to clone. The cloned campaign will be created as a new draft with the same content and settings as the original.\"),\n}).describe(\"Request schema for cloning an existing campaign.\");\nexport const MoosendCloneCampaignOutput = z.object({\n Code: z.number().int().describe(\"API response code. 0 indicates successful cloning, any non-zero value indicates an error occurred.\").nullable(),\n Error: z.string().describe(\"Error message if the operation failed. Will be null when Code is 0 (success).\").nullable().optional(),\n Context: z.record(z.string(), z.unknown()).describe(\"Additional context data containing details about the newly cloned campaign, including its new campaign ID and configuration. Null when an error occurs.\").nullable().optional(),\n}).describe(\"Response schema for cloning an existing campaign.\");\n\nexport const moosendCloneCampaign = action(\"MOOSEND_CLONE_CAMPAIGN\", {\n slug: \"moosend-clone-campaign\",\n name: \"Clone Campaign\",\n description: \"Tool to clone an existing campaign, creating an exact copy with the same content and settings. Use when you want to reuse a campaign template or create variations of an existing campaign. The cloned campaign is created as a new draft that can be modified independently.\",\n input: MoosendCloneCampaignInput,\n output: MoosendCloneCampaignOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,QAAQA,IAAAA,EAAE,KAAK,CAAC,QAAQ,KAAK,CAAC,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,sFAAsF,CAAC,CAAC,SAAS;CAC1J,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sKAAsK;AACzM,CAAC,CAAC,CAAC,SAAS,kDAAkD;AAC9D,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oGAAoG,CAAC,CAAC,SAAS;CAC/I,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChI,SAASA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,yJAAyJ,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACrO,CAAC,CAAC,CAAC,SAAS,mDAAmD;
|
|
1
|
+
{"version":3,"file":"clone-campaign.cjs","names":["z","action"],"sources":["../../src/actions/clone-campaign.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoosendCloneCampaignInput = z.object({\n format: z.enum([\"json\", \"xml\"]).default(\"json\").describe(\"Response format. Use 'json' (default) for JSON responses or 'xml' for XML responses.\").optional(),\n campaign_id: z.string().describe(\"The unique identifier (UUID format) of the campaign to clone. The cloned campaign will be created as a new draft with the same content and settings as the original.\"),\n}).describe(\"Request schema for cloning an existing campaign.\");\nexport const MoosendCloneCampaignOutput = z.object({\n Code: z.number().int().describe(\"API response code. 0 indicates successful cloning, any non-zero value indicates an error occurred.\").nullable(),\n Error: z.string().describe(\"Error message if the operation failed. Will be null when Code is 0 (success).\").nullable().optional(),\n Context: z.record(z.string(), z.unknown()).describe(\"Additional context data containing details about the newly cloned campaign, including its new campaign ID and configuration. Null when an error occurs.\").nullable().optional(),\n}).passthrough().describe(\"Response schema for cloning an existing campaign.\");\n\nexport const moosendCloneCampaign = action(\"MOOSEND_CLONE_CAMPAIGN\", {\n slug: \"moosend-clone-campaign\",\n name: \"Clone Campaign\",\n description: \"Tool to clone an existing campaign, creating an exact copy with the same content and settings. Use when you want to reuse a campaign template or create variations of an existing campaign. The cloned campaign is created as a new draft that can be modified independently.\",\n input: MoosendCloneCampaignInput,\n output: MoosendCloneCampaignOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,QAAQA,IAAAA,EAAE,KAAK,CAAC,QAAQ,KAAK,CAAC,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,sFAAsF,CAAC,CAAC,SAAS;CAC1J,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sKAAsK;AACzM,CAAC,CAAC,CAAC,SAAS,kDAAkD;AAC9D,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oGAAoG,CAAC,CAAC,SAAS;CAC/I,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChI,SAASA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,yJAAyJ,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACrO,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAAmD;AAE7E,MAAa,uBAAuBC,eAAAA,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -12,7 +12,7 @@ declare const MoosendCloneCampaignOutput: z.ZodObject<{
|
|
|
12
12
|
Code: z.ZodNullable<z.ZodNumber>;
|
|
13
13
|
Error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
14
|
Context: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
15
|
-
}, z.core.$
|
|
15
|
+
}, z.core.$loose>;
|
|
16
16
|
declare const moosendCloneCampaign: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
17
17
|
campaign_id: string;
|
|
18
18
|
format?: "json" | "xml" | undefined;
|
|
@@ -12,7 +12,7 @@ declare const MoosendCloneCampaignOutput: z.ZodObject<{
|
|
|
12
12
|
Code: z.ZodNullable<z.ZodNumber>;
|
|
13
13
|
Error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
14
|
Context: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
15
|
-
}, z.core.$
|
|
15
|
+
}, z.core.$loose>;
|
|
16
16
|
declare const moosendCloneCampaign: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
17
17
|
campaign_id: string;
|
|
18
18
|
format?: "json" | "xml" | undefined;
|
|
@@ -12,7 +12,7 @@ const moosendCloneCampaign = action("MOOSEND_CLONE_CAMPAIGN", {
|
|
|
12
12
|
Code: z.number().int().describe("API response code. 0 indicates successful cloning, any non-zero value indicates an error occurred.").nullable(),
|
|
13
13
|
Error: z.string().describe("Error message if the operation failed. Will be null when Code is 0 (success).").nullable().optional(),
|
|
14
14
|
Context: z.record(z.string(), z.unknown()).describe("Additional context data containing details about the newly cloned campaign, including its new campaign ID and configuration. Null when an error occurs.").nullable().optional()
|
|
15
|
-
}).describe("Response schema for cloning an existing campaign.")
|
|
15
|
+
}).passthrough().describe("Response schema for cloning an existing campaign.")
|
|
16
16
|
});
|
|
17
17
|
//#endregion
|
|
18
18
|
export { moosendCloneCampaign };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"clone-campaign.mjs","names":[],"sources":["../../src/actions/clone-campaign.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoosendCloneCampaignInput = z.object({\n format: z.enum([\"json\", \"xml\"]).default(\"json\").describe(\"Response format. Use 'json' (default) for JSON responses or 'xml' for XML responses.\").optional(),\n campaign_id: z.string().describe(\"The unique identifier (UUID format) of the campaign to clone. The cloned campaign will be created as a new draft with the same content and settings as the original.\"),\n}).describe(\"Request schema for cloning an existing campaign.\");\nexport const MoosendCloneCampaignOutput = z.object({\n Code: z.number().int().describe(\"API response code. 0 indicates successful cloning, any non-zero value indicates an error occurred.\").nullable(),\n Error: z.string().describe(\"Error message if the operation failed. Will be null when Code is 0 (success).\").nullable().optional(),\n Context: z.record(z.string(), z.unknown()).describe(\"Additional context data containing details about the newly cloned campaign, including its new campaign ID and configuration. Null when an error occurs.\").nullable().optional(),\n}).describe(\"Response schema for cloning an existing campaign.\");\n\nexport const moosendCloneCampaign = action(\"MOOSEND_CLONE_CAMPAIGN\", {\n slug: \"moosend-clone-campaign\",\n name: \"Clone Campaign\",\n description: \"Tool to clone an existing campaign, creating an exact copy with the same content and settings. Use when you want to reuse a campaign template or create variations of an existing campaign. The cloned campaign is created as a new draft that can be modified independently.\",\n input: MoosendCloneCampaignInput,\n output: MoosendCloneCampaignOutput,\n});\n"],"mappings":";;AAcA,MAAa,uBAAuB,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAduC,EAAE,OAAO;EAChD,QAAQ,EAAE,KAAK,CAAC,QAAQ,KAAK,CAAC,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,sFAAsF,CAAC,CAAC,SAAS;EAC1J,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,sKAAsK;CACzM,CAAC,CAAC,CAAC,SAAS,kDAWH;CACP,QAXwC,EAAE,OAAO;EACjD,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oGAAoG,CAAC,CAAC,SAAS;EAC/I,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChI,SAAS,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,yJAAyJ,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrO,CAAC,CAAC,CAAC,SAAS,
|
|
1
|
+
{"version":3,"file":"clone-campaign.mjs","names":[],"sources":["../../src/actions/clone-campaign.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoosendCloneCampaignInput = z.object({\n format: z.enum([\"json\", \"xml\"]).default(\"json\").describe(\"Response format. Use 'json' (default) for JSON responses or 'xml' for XML responses.\").optional(),\n campaign_id: z.string().describe(\"The unique identifier (UUID format) of the campaign to clone. The cloned campaign will be created as a new draft with the same content and settings as the original.\"),\n}).describe(\"Request schema for cloning an existing campaign.\");\nexport const MoosendCloneCampaignOutput = z.object({\n Code: z.number().int().describe(\"API response code. 0 indicates successful cloning, any non-zero value indicates an error occurred.\").nullable(),\n Error: z.string().describe(\"Error message if the operation failed. Will be null when Code is 0 (success).\").nullable().optional(),\n Context: z.record(z.string(), z.unknown()).describe(\"Additional context data containing details about the newly cloned campaign, including its new campaign ID and configuration. Null when an error occurs.\").nullable().optional(),\n}).passthrough().describe(\"Response schema for cloning an existing campaign.\");\n\nexport const moosendCloneCampaign = action(\"MOOSEND_CLONE_CAMPAIGN\", {\n slug: \"moosend-clone-campaign\",\n name: \"Clone Campaign\",\n description: \"Tool to clone an existing campaign, creating an exact copy with the same content and settings. Use when you want to reuse a campaign template or create variations of an existing campaign. The cloned campaign is created as a new draft that can be modified independently.\",\n input: MoosendCloneCampaignInput,\n output: MoosendCloneCampaignOutput,\n});\n"],"mappings":";;AAcA,MAAa,uBAAuB,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAduC,EAAE,OAAO;EAChD,QAAQ,EAAE,KAAK,CAAC,QAAQ,KAAK,CAAC,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,sFAAsF,CAAC,CAAC,SAAS;EAC1J,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,sKAAsK;CACzM,CAAC,CAAC,CAAC,SAAS,kDAWH;CACP,QAXwC,EAAE,OAAO;EACjD,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oGAAoG,CAAC,CAAC,SAAS;EAC/I,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChI,SAAS,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,yJAAyJ,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrO,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAOhB;AACV,CAAC"}
|
|
@@ -20,7 +20,7 @@ const MoosendCreateCustomFieldOutput = zod.z.object({
|
|
|
20
20
|
Code: zod.z.number().int().describe("Response code. 0 indicates success.").nullable(),
|
|
21
21
|
Error: zod.z.string().describe("Error message if the request fails. Null when successful.").nullable().optional(),
|
|
22
22
|
Context: zod.z.string().describe("The ID of the custom field created.").nullable().optional()
|
|
23
|
-
});
|
|
23
|
+
}).passthrough();
|
|
24
24
|
const moosendCreateCustomField = require_action.action("MOOSEND_CREATE_CUSTOM_FIELD", {
|
|
25
25
|
slug: "moosend-create-custom-field",
|
|
26
26
|
name: "Create custom field",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-custom-field.cjs","names":["z","action"],"sources":["../../src/actions/create-custom-field.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoosendCreateCustomFieldInput = z.object({\n name: z.string().describe(\"The name of the custom field.\"),\n format: z.enum([\"json\", \"xml\"]).default(\"json\").describe(\"The response format. Use 'json' for JSON responses and 'xml' for XML responses.\").optional(),\n options: z.string().describe(\"Comma-separated options for a SingleSelectDropdown field.\").optional(),\n is_hidden: z.boolean().default(false).describe(\"Whether the custom field is hidden from subscribers on the update profile page.\").optional(),\n is_required: z.boolean().default(false).describe(\"Whether the custom field is mandatory when adding a subscriber.\").optional(),\n mailing_list_id: z.string().describe(\"The ID of the mailing list where the custom field will be created.\"),\n custom_field_type: z.enum([\"Text\", \"Number\", \"DateTime\", \"SingleSelectDropdown\", \"CheckBox\"]).default(\"Text\").describe(\"The data type of the custom field.\").optional(),\n});\nexport const MoosendCreateCustomFieldOutput = z.object({\n Code: z.number().int().describe(\"Response code. 0 indicates success.\").nullable(),\n Error: z.string().describe(\"Error message if the request fails. Null when successful.\").nullable().optional(),\n Context: z.string().describe(\"The ID of the custom field created.\").nullable().optional(),\n});\n\nexport const moosendCreateCustomField = action(\"MOOSEND_CREATE_CUSTOM_FIELD\", {\n slug: \"moosend-create-custom-field\",\n name: \"Create custom field\",\n description: \"Tool to create a custom field in a mailing list. Use when you need to define a new custom field for subscriber data.\",\n input: MoosendCreateCustomFieldInput,\n output: MoosendCreateCustomFieldOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAAgCA,IAAAA,EAAE,OAAO;CACpD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B;CACzD,QAAQA,IAAAA,EAAE,KAAK,CAAC,QAAQ,KAAK,CAAC,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS;CACrJ,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;CACnG,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS;CAC3I,aAAaA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;CAC7H,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE;CACzG,mBAAmBA,IAAAA,EAAE,KAAK;EAAC;EAAQ;EAAU;EAAY;EAAwB;CAAU,CAAC,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;AACxK,CAAC;AACD,MAAa,iCAAiCA,IAAAA,EAAE,OAAO;CACrD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CAChF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5G,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC1F,CAAC;
|
|
1
|
+
{"version":3,"file":"create-custom-field.cjs","names":["z","action"],"sources":["../../src/actions/create-custom-field.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoosendCreateCustomFieldInput = z.object({\n name: z.string().describe(\"The name of the custom field.\"),\n format: z.enum([\"json\", \"xml\"]).default(\"json\").describe(\"The response format. Use 'json' for JSON responses and 'xml' for XML responses.\").optional(),\n options: z.string().describe(\"Comma-separated options for a SingleSelectDropdown field.\").optional(),\n is_hidden: z.boolean().default(false).describe(\"Whether the custom field is hidden from subscribers on the update profile page.\").optional(),\n is_required: z.boolean().default(false).describe(\"Whether the custom field is mandatory when adding a subscriber.\").optional(),\n mailing_list_id: z.string().describe(\"The ID of the mailing list where the custom field will be created.\"),\n custom_field_type: z.enum([\"Text\", \"Number\", \"DateTime\", \"SingleSelectDropdown\", \"CheckBox\"]).default(\"Text\").describe(\"The data type of the custom field.\").optional(),\n});\nexport const MoosendCreateCustomFieldOutput = z.object({\n Code: z.number().int().describe(\"Response code. 0 indicates success.\").nullable(),\n Error: z.string().describe(\"Error message if the request fails. Null when successful.\").nullable().optional(),\n Context: z.string().describe(\"The ID of the custom field created.\").nullable().optional(),\n}).passthrough();\n\nexport const moosendCreateCustomField = action(\"MOOSEND_CREATE_CUSTOM_FIELD\", {\n slug: \"moosend-create-custom-field\",\n name: \"Create custom field\",\n description: \"Tool to create a custom field in a mailing list. Use when you need to define a new custom field for subscriber data.\",\n input: MoosendCreateCustomFieldInput,\n output: MoosendCreateCustomFieldOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAAgCA,IAAAA,EAAE,OAAO;CACpD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B;CACzD,QAAQA,IAAAA,EAAE,KAAK,CAAC,QAAQ,KAAK,CAAC,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS;CACrJ,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;CACnG,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS;CAC3I,aAAaA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;CAC7H,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE;CACzG,mBAAmBA,IAAAA,EAAE,KAAK;EAAC;EAAQ;EAAU;EAAY;EAAwB;CAAU,CAAC,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;AACxK,CAAC;AACD,MAAa,iCAAiCA,IAAAA,EAAE,OAAO;CACrD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CAChF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5G,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC1F,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,2BAA2BC,eAAAA,OAAO,+BAA+B;CAC5E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -23,7 +23,7 @@ declare const MoosendCreateCustomFieldOutput: z.ZodObject<{
|
|
|
23
23
|
Code: z.ZodNullable<z.ZodNumber>;
|
|
24
24
|
Error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
25
25
|
Context: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
26
|
-
}, z.core.$
|
|
26
|
+
}, z.core.$loose>;
|
|
27
27
|
declare const moosendCreateCustomField: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
28
28
|
name: string;
|
|
29
29
|
mailing_list_id: string;
|
|
@@ -23,7 +23,7 @@ declare const MoosendCreateCustomFieldOutput: z.ZodObject<{
|
|
|
23
23
|
Code: z.ZodNullable<z.ZodNumber>;
|
|
24
24
|
Error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
25
25
|
Context: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
26
|
-
}, z.core.$
|
|
26
|
+
}, z.core.$loose>;
|
|
27
27
|
declare const moosendCreateCustomField: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
28
28
|
name: string;
|
|
29
29
|
mailing_list_id: string;
|
|
@@ -23,7 +23,7 @@ const moosendCreateCustomField = action("MOOSEND_CREATE_CUSTOM_FIELD", {
|
|
|
23
23
|
Code: z.number().int().describe("Response code. 0 indicates success.").nullable(),
|
|
24
24
|
Error: z.string().describe("Error message if the request fails. Null when successful.").nullable().optional(),
|
|
25
25
|
Context: z.string().describe("The ID of the custom field created.").nullable().optional()
|
|
26
|
-
})
|
|
26
|
+
}).passthrough()
|
|
27
27
|
});
|
|
28
28
|
//#endregion
|
|
29
29
|
export { moosendCreateCustomField };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-custom-field.mjs","names":[],"sources":["../../src/actions/create-custom-field.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoosendCreateCustomFieldInput = z.object({\n name: z.string().describe(\"The name of the custom field.\"),\n format: z.enum([\"json\", \"xml\"]).default(\"json\").describe(\"The response format. Use 'json' for JSON responses and 'xml' for XML responses.\").optional(),\n options: z.string().describe(\"Comma-separated options for a SingleSelectDropdown field.\").optional(),\n is_hidden: z.boolean().default(false).describe(\"Whether the custom field is hidden from subscribers on the update profile page.\").optional(),\n is_required: z.boolean().default(false).describe(\"Whether the custom field is mandatory when adding a subscriber.\").optional(),\n mailing_list_id: z.string().describe(\"The ID of the mailing list where the custom field will be created.\"),\n custom_field_type: z.enum([\"Text\", \"Number\", \"DateTime\", \"SingleSelectDropdown\", \"CheckBox\"]).default(\"Text\").describe(\"The data type of the custom field.\").optional(),\n});\nexport const MoosendCreateCustomFieldOutput = z.object({\n Code: z.number().int().describe(\"Response code. 0 indicates success.\").nullable(),\n Error: z.string().describe(\"Error message if the request fails. Null when successful.\").nullable().optional(),\n Context: z.string().describe(\"The ID of the custom field created.\").nullable().optional(),\n});\n\nexport const moosendCreateCustomField = action(\"MOOSEND_CREATE_CUSTOM_FIELD\", {\n slug: \"moosend-create-custom-field\",\n name: \"Create custom field\",\n description: \"Tool to create a custom field in a mailing list. Use when you need to define a new custom field for subscriber data.\",\n input: MoosendCreateCustomFieldInput,\n output: MoosendCreateCustomFieldOutput,\n});\n"],"mappings":";;AAmBA,MAAa,2BAA2B,OAAO,+BAA+B;CAC5E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAnB2C,EAAE,OAAO;EACpD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B;EACzD,QAAQ,EAAE,KAAK,CAAC,QAAQ,KAAK,CAAC,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS;EACrJ,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;EACnG,WAAW,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS;EAC3I,aAAa,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;EAC7H,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE;EACzG,mBAAmB,EAAE,KAAK;GAAC;GAAQ;GAAU;GAAY;GAAwB;EAAU,CAAC,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CACxK,CAWS;CACP,QAX4C,EAAE,OAAO;EACrD,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;EAChF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5G,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1F,
|
|
1
|
+
{"version":3,"file":"create-custom-field.mjs","names":[],"sources":["../../src/actions/create-custom-field.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoosendCreateCustomFieldInput = z.object({\n name: z.string().describe(\"The name of the custom field.\"),\n format: z.enum([\"json\", \"xml\"]).default(\"json\").describe(\"The response format. Use 'json' for JSON responses and 'xml' for XML responses.\").optional(),\n options: z.string().describe(\"Comma-separated options for a SingleSelectDropdown field.\").optional(),\n is_hidden: z.boolean().default(false).describe(\"Whether the custom field is hidden from subscribers on the update profile page.\").optional(),\n is_required: z.boolean().default(false).describe(\"Whether the custom field is mandatory when adding a subscriber.\").optional(),\n mailing_list_id: z.string().describe(\"The ID of the mailing list where the custom field will be created.\"),\n custom_field_type: z.enum([\"Text\", \"Number\", \"DateTime\", \"SingleSelectDropdown\", \"CheckBox\"]).default(\"Text\").describe(\"The data type of the custom field.\").optional(),\n});\nexport const MoosendCreateCustomFieldOutput = z.object({\n Code: z.number().int().describe(\"Response code. 0 indicates success.\").nullable(),\n Error: z.string().describe(\"Error message if the request fails. Null when successful.\").nullable().optional(),\n Context: z.string().describe(\"The ID of the custom field created.\").nullable().optional(),\n}).passthrough();\n\nexport const moosendCreateCustomField = action(\"MOOSEND_CREATE_CUSTOM_FIELD\", {\n slug: \"moosend-create-custom-field\",\n name: \"Create custom field\",\n description: \"Tool to create a custom field in a mailing list. Use when you need to define a new custom field for subscriber data.\",\n input: MoosendCreateCustomFieldInput,\n output: MoosendCreateCustomFieldOutput,\n});\n"],"mappings":";;AAmBA,MAAa,2BAA2B,OAAO,+BAA+B;CAC5E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAnB2C,EAAE,OAAO;EACpD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B;EACzD,QAAQ,EAAE,KAAK,CAAC,QAAQ,KAAK,CAAC,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS;EACrJ,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;EACnG,WAAW,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS;EAC3I,aAAa,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;EAC7H,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE;EACzG,mBAAmB,EAAE,KAAK;GAAC;GAAQ;GAAU;GAAY;GAAwB;EAAU,CAAC,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CACxK,CAWS;CACP,QAX4C,EAAE,OAAO;EACrD,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;EAChF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5G,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1F,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
|
|
@@ -10,7 +10,7 @@ const MoosendCreateMailingListOutput = zod.z.object({
|
|
|
10
10
|
Code: zod.z.number().int().describe("Response code; 0 indicates success.").nullable(),
|
|
11
11
|
Error: zod.z.string().describe("Error message; null if successful.").nullable().optional(),
|
|
12
12
|
Context: zod.z.string().describe("ID of the newly created mailing list; null on error.").nullable().optional()
|
|
13
|
-
}).describe("Response model for CreateMailingList action.");
|
|
13
|
+
}).passthrough().describe("Response model for CreateMailingList action.");
|
|
14
14
|
const moosendCreateMailingList = require_action.action("MOOSEND_CREATE_MAILING_LIST", {
|
|
15
15
|
slug: "moosend-create-mailing-list",
|
|
16
16
|
name: "Create Mailing List",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-mailing-list.cjs","names":["z","action"],"sources":["../../src/actions/create-mailing-list.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoosendCreateMailingListInput = z.object({\n Name: z.string().describe(\"Name of the mailing list.\"),\n ConfirmationPage: z.string().describe(\"URL displayed after subscription confirmation.\").optional(),\n RedirectAfterUnsubscribePage: z.string().describe(\"URL users are redirected to after unsubscribing.\").optional(),\n}).describe(\"Request model for creating a new mailing list in Moosend.\");\nexport const MoosendCreateMailingListOutput = z.object({\n Code: z.number().int().describe(\"Response code; 0 indicates success.\").nullable(),\n Error: z.string().describe(\"Error message; null if successful.\").nullable().optional(),\n Context: z.string().describe(\"ID of the newly created mailing list; null on error.\").nullable().optional(),\n}).describe(\"Response model for CreateMailingList action.\");\n\nexport const moosendCreateMailingList = action(\"MOOSEND_CREATE_MAILING_LIST\", {\n slug: \"moosend-create-mailing-list\",\n name: \"Create Mailing List\",\n description: \"Tool to create a new empty mailing list in Moosend. Use after obtaining API key.\",\n input: MoosendCreateMailingListInput,\n output: MoosendCreateMailingListOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAAgCA,IAAAA,EAAE,OAAO;CACpD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;CACrD,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CACjG,8BAA8BA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;AACjH,CAAC,CAAC,CAAC,SAAS,2DAA2D;AACvE,MAAa,iCAAiCA,IAAAA,EAAE,OAAO;CACrD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CAChF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3G,CAAC,CAAC,CAAC,SAAS,8CAA8C;
|
|
1
|
+
{"version":3,"file":"create-mailing-list.cjs","names":["z","action"],"sources":["../../src/actions/create-mailing-list.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoosendCreateMailingListInput = z.object({\n Name: z.string().describe(\"Name of the mailing list.\"),\n ConfirmationPage: z.string().describe(\"URL displayed after subscription confirmation.\").optional(),\n RedirectAfterUnsubscribePage: z.string().describe(\"URL users are redirected to after unsubscribing.\").optional(),\n}).describe(\"Request model for creating a new mailing list in Moosend.\");\nexport const MoosendCreateMailingListOutput = z.object({\n Code: z.number().int().describe(\"Response code; 0 indicates success.\").nullable(),\n Error: z.string().describe(\"Error message; null if successful.\").nullable().optional(),\n Context: z.string().describe(\"ID of the newly created mailing list; null on error.\").nullable().optional(),\n}).passthrough().describe(\"Response model for CreateMailingList action.\");\n\nexport const moosendCreateMailingList = action(\"MOOSEND_CREATE_MAILING_LIST\", {\n slug: \"moosend-create-mailing-list\",\n name: \"Create Mailing List\",\n description: \"Tool to create a new empty mailing list in Moosend. Use after obtaining API key.\",\n input: MoosendCreateMailingListInput,\n output: MoosendCreateMailingListOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAAgCA,IAAAA,EAAE,OAAO;CACpD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;CACrD,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CACjG,8BAA8BA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;AACjH,CAAC,CAAC,CAAC,SAAS,2DAA2D;AACvE,MAAa,iCAAiCA,IAAAA,EAAE,OAAO;CACrD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CAChF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8CAA8C;AAExE,MAAa,2BAA2BC,eAAAA,OAAO,+BAA+B;CAC5E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -10,7 +10,7 @@ declare const MoosendCreateMailingListOutput: z.ZodObject<{
|
|
|
10
10
|
Code: z.ZodNullable<z.ZodNumber>;
|
|
11
11
|
Error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12
12
|
Context: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
|
-
}, z.core.$
|
|
13
|
+
}, z.core.$loose>;
|
|
14
14
|
declare const moosendCreateMailingList: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
15
15
|
Name: string;
|
|
16
16
|
ConfirmationPage?: string | undefined;
|
|
@@ -10,7 +10,7 @@ declare const MoosendCreateMailingListOutput: z.ZodObject<{
|
|
|
10
10
|
Code: z.ZodNullable<z.ZodNumber>;
|
|
11
11
|
Error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12
12
|
Context: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
|
-
}, z.core.$
|
|
13
|
+
}, z.core.$loose>;
|
|
14
14
|
declare const moosendCreateMailingList: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
15
15
|
Name: string;
|
|
16
16
|
ConfirmationPage?: string | undefined;
|
|
@@ -13,7 +13,7 @@ const moosendCreateMailingList = action("MOOSEND_CREATE_MAILING_LIST", {
|
|
|
13
13
|
Code: z.number().int().describe("Response code; 0 indicates success.").nullable(),
|
|
14
14
|
Error: z.string().describe("Error message; null if successful.").nullable().optional(),
|
|
15
15
|
Context: z.string().describe("ID of the newly created mailing list; null on error.").nullable().optional()
|
|
16
|
-
}).describe("Response model for CreateMailingList action.")
|
|
16
|
+
}).passthrough().describe("Response model for CreateMailingList action.")
|
|
17
17
|
});
|
|
18
18
|
//#endregion
|
|
19
19
|
export { moosendCreateMailingList };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-mailing-list.mjs","names":[],"sources":["../../src/actions/create-mailing-list.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoosendCreateMailingListInput = z.object({\n Name: z.string().describe(\"Name of the mailing list.\"),\n ConfirmationPage: z.string().describe(\"URL displayed after subscription confirmation.\").optional(),\n RedirectAfterUnsubscribePage: z.string().describe(\"URL users are redirected to after unsubscribing.\").optional(),\n}).describe(\"Request model for creating a new mailing list in Moosend.\");\nexport const MoosendCreateMailingListOutput = z.object({\n Code: z.number().int().describe(\"Response code; 0 indicates success.\").nullable(),\n Error: z.string().describe(\"Error message; null if successful.\").nullable().optional(),\n Context: z.string().describe(\"ID of the newly created mailing list; null on error.\").nullable().optional(),\n}).describe(\"Response model for CreateMailingList action.\");\n\nexport const moosendCreateMailingList = action(\"MOOSEND_CREATE_MAILING_LIST\", {\n slug: \"moosend-create-mailing-list\",\n name: \"Create Mailing List\",\n description: \"Tool to create a new empty mailing list in Moosend. Use after obtaining API key.\",\n input: MoosendCreateMailingListInput,\n output: MoosendCreateMailingListOutput,\n});\n"],"mappings":";;AAeA,MAAa,2BAA2B,OAAO,+BAA+B;CAC5E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAf2C,EAAE,OAAO;EACpD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;EACrD,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;EACjG,8BAA8B,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CACjH,CAAC,CAAC,CAAC,SAAS,2DAWH;CACP,QAX4C,EAAE,OAAO;EACrD,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;EAChF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3G,CAAC,CAAC,CAAC,SAAS,
|
|
1
|
+
{"version":3,"file":"create-mailing-list.mjs","names":[],"sources":["../../src/actions/create-mailing-list.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoosendCreateMailingListInput = z.object({\n Name: z.string().describe(\"Name of the mailing list.\"),\n ConfirmationPage: z.string().describe(\"URL displayed after subscription confirmation.\").optional(),\n RedirectAfterUnsubscribePage: z.string().describe(\"URL users are redirected to after unsubscribing.\").optional(),\n}).describe(\"Request model for creating a new mailing list in Moosend.\");\nexport const MoosendCreateMailingListOutput = z.object({\n Code: z.number().int().describe(\"Response code; 0 indicates success.\").nullable(),\n Error: z.string().describe(\"Error message; null if successful.\").nullable().optional(),\n Context: z.string().describe(\"ID of the newly created mailing list; null on error.\").nullable().optional(),\n}).passthrough().describe(\"Response model for CreateMailingList action.\");\n\nexport const moosendCreateMailingList = action(\"MOOSEND_CREATE_MAILING_LIST\", {\n slug: \"moosend-create-mailing-list\",\n name: \"Create Mailing List\",\n description: \"Tool to create a new empty mailing list in Moosend. Use after obtaining API key.\",\n input: MoosendCreateMailingListInput,\n output: MoosendCreateMailingListOutput,\n});\n"],"mappings":";;AAeA,MAAa,2BAA2B,OAAO,+BAA+B;CAC5E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAf2C,EAAE,OAAO;EACpD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;EACrD,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;EACjG,8BAA8B,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CACjH,CAAC,CAAC,CAAC,SAAS,2DAWH;CACP,QAX4C,EAAE,OAAO;EACrD,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;EAChF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8CAOhB;AACV,CAAC"}
|
|
@@ -8,7 +8,7 @@ const MoosendCreateSegmentInput = zod.z.object({
|
|
|
8
8
|
Field: zod.z.string().describe("The field to filter on (e.g., 'Email', custom field name)."),
|
|
9
9
|
Value: zod.z.string().describe("The value to compare against."),
|
|
10
10
|
Comparer: zod.z.string().describe("Comparison operator (e.g., 'Contains', 'Equals', 'DoesNotEqual').")
|
|
11
|
-
}).describe("A single criterion for segment filtering.")).describe("Array of filter criteria. Leave empty to create a segment without criteria.").optional(),
|
|
11
|
+
}).passthrough().describe("A single criterion for segment filtering.")).describe("Array of filter criteria. Leave empty to create a segment without criteria.").optional(),
|
|
12
12
|
FetchType: zod.z.enum([
|
|
13
13
|
"All",
|
|
14
14
|
"Top",
|
|
@@ -22,7 +22,7 @@ const MoosendCreateSegmentOutput = zod.z.object({
|
|
|
22
22
|
Code: zod.z.number().int().describe("Response code; 0 indicates success.").nullable(),
|
|
23
23
|
Error: zod.z.string().describe("Error message; null if successful.").nullable().optional(),
|
|
24
24
|
Context: zod.z.string().describe("The ID of the newly created segment; null on error.").nullable().optional()
|
|
25
|
-
}).describe("Response schema for CreateSegment action.");
|
|
25
|
+
}).passthrough().describe("Response schema for CreateSegment action.");
|
|
26
26
|
const moosendCreateSegment = require_action.action("MOOSEND_CREATE_SEGMENT", {
|
|
27
27
|
slug: "moosend-create-segment",
|
|
28
28
|
name: "Create Segment",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-segment.cjs","names":["z","action"],"sources":["../../src/actions/create-segment.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoosendCreateSegmentInput = z.object({\n Name: z.string().describe(\"The name of the segment.\"),\n format: z.enum([\"json\", \"xml\"]).default(\"json\").describe(\"Response format. Use 'json' (recommended and default) or 'xml'.\").optional(),\n Criteria: z.array(z.object({\n Field: z.string().describe(\"The field to filter on (e.g., 'Email', custom field name).\"),\n Value: z.string().describe(\"The value to compare against.\"),\n Comparer: z.string().describe(\"Comparison operator (e.g., 'Contains', 'Equals', 'DoesNotEqual').\"),\n}).describe(\"A single criterion for segment filtering.\")).describe(\"Array of filter criteria. Leave empty to create a segment without criteria.\").optional(),\n FetchType: z.enum([\"All\", \"Top\", \"TopPercent\"]).describe(\"How many matching subscribers to fetch.\").optional(),\n MatchType: z.enum([\"All\", \"Any\"]).describe(\"How segment criteria match together.\").optional(),\n FetchValue: z.number().int().describe(\"Value for FetchType 'Top' or 'TopPercent' (e.g., 100 for top 100 subscribers, or 10 for top 10%).\").optional(),\n mailingListID: z.string().describe(\"The ID of the mailing list to create the segment in.\"),\n}).describe(\"Request schema for creating a new segment in a mailing list.\");\nexport const MoosendCreateSegmentOutput = z.object({\n Code: z.number().int().describe(\"Response code; 0 indicates success.\").nullable(),\n Error: z.string().describe(\"Error message; null if successful.\").nullable().optional(),\n Context: z.string().describe(\"The ID of the newly created segment; null on error.\").nullable().optional(),\n}).describe(\"Response schema for CreateSegment action.\");\n\nexport const moosendCreateSegment = action(\"MOOSEND_CREATE_SEGMENT\", {\n slug: \"moosend-create-segment\",\n name: \"Create Segment\",\n description: \"Tool to create a new segment for a mailing list. Use to organize subscribers based on criteria or create empty segments for future use.\",\n input: MoosendCreateSegmentInput,\n output: MoosendCreateSegmentOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B;CACpD,QAAQA,IAAAA,EAAE,KAAK,CAAC,QAAQ,KAAK,CAAC,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;CACrI,UAAUA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EAC3B,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D;EACvF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B;EAC1D,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE;CACnG,CAAC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS;
|
|
1
|
+
{"version":3,"file":"create-segment.cjs","names":["z","action"],"sources":["../../src/actions/create-segment.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoosendCreateSegmentInput = z.object({\n Name: z.string().describe(\"The name of the segment.\"),\n format: z.enum([\"json\", \"xml\"]).default(\"json\").describe(\"Response format. Use 'json' (recommended and default) or 'xml'.\").optional(),\n Criteria: z.array(z.object({\n Field: z.string().describe(\"The field to filter on (e.g., 'Email', custom field name).\"),\n Value: z.string().describe(\"The value to compare against.\"),\n Comparer: z.string().describe(\"Comparison operator (e.g., 'Contains', 'Equals', 'DoesNotEqual').\"),\n}).passthrough().describe(\"A single criterion for segment filtering.\")).describe(\"Array of filter criteria. Leave empty to create a segment without criteria.\").optional(),\n FetchType: z.enum([\"All\", \"Top\", \"TopPercent\"]).describe(\"How many matching subscribers to fetch.\").optional(),\n MatchType: z.enum([\"All\", \"Any\"]).describe(\"How segment criteria match together.\").optional(),\n FetchValue: z.number().int().describe(\"Value for FetchType 'Top' or 'TopPercent' (e.g., 100 for top 100 subscribers, or 10 for top 10%).\").optional(),\n mailingListID: z.string().describe(\"The ID of the mailing list to create the segment in.\"),\n}).describe(\"Request schema for creating a new segment in a mailing list.\");\nexport const MoosendCreateSegmentOutput = z.object({\n Code: z.number().int().describe(\"Response code; 0 indicates success.\").nullable(),\n Error: z.string().describe(\"Error message; null if successful.\").nullable().optional(),\n Context: z.string().describe(\"The ID of the newly created segment; null on error.\").nullable().optional(),\n}).passthrough().describe(\"Response schema for CreateSegment action.\");\n\nexport const moosendCreateSegment = action(\"MOOSEND_CREATE_SEGMENT\", {\n slug: \"moosend-create-segment\",\n name: \"Create Segment\",\n description: \"Tool to create a new segment for a mailing list. Use to organize subscribers based on criteria or create empty segments for future use.\",\n input: MoosendCreateSegmentInput,\n output: MoosendCreateSegmentOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B;CACpD,QAAQA,IAAAA,EAAE,KAAK,CAAC,QAAQ,KAAK,CAAC,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;CACrI,UAAUA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EAC3B,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D;EACvF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B;EAC1D,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE;CACnG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS;CACvK,WAAWA,IAAAA,EAAE,KAAK;EAAC;EAAO;EAAO;CAAY,CAAC,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CAC7G,WAAWA,IAAAA,EAAE,KAAK,CAAC,OAAO,KAAK,CAAC,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CAC5F,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mGAAmG,CAAC,CAAC,SAAS;CACpJ,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD;AAC3F,CAAC,CAAC,CAAC,SAAS,8DAA8D;AAC1E,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CAChF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC1G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2CAA2C;AAErE,MAAa,uBAAuBC,eAAAA,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -11,7 +11,7 @@ declare const MoosendCreateSegmentInput: z.ZodObject<{
|
|
|
11
11
|
Field: z.ZodString;
|
|
12
12
|
Value: z.ZodString;
|
|
13
13
|
Comparer: z.ZodString;
|
|
14
|
-
}, z.core.$
|
|
14
|
+
}, z.core.$loose>>>;
|
|
15
15
|
FetchType: z.ZodOptional<z.ZodEnum<{
|
|
16
16
|
All: "All";
|
|
17
17
|
Top: "Top";
|
|
@@ -28,12 +28,13 @@ declare const MoosendCreateSegmentOutput: z.ZodObject<{
|
|
|
28
28
|
Code: z.ZodNullable<z.ZodNumber>;
|
|
29
29
|
Error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
30
30
|
Context: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
31
|
-
}, z.core.$
|
|
31
|
+
}, z.core.$loose>;
|
|
32
32
|
declare const moosendCreateSegment: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
33
33
|
Name: string;
|
|
34
34
|
mailingListID: string;
|
|
35
35
|
format?: "json" | "xml" | undefined;
|
|
36
36
|
Criteria?: {
|
|
37
|
+
[x: string]: unknown;
|
|
37
38
|
Field: string;
|
|
38
39
|
Value: string;
|
|
39
40
|
Comparer: string;
|
|
@@ -11,7 +11,7 @@ declare const MoosendCreateSegmentInput: z.ZodObject<{
|
|
|
11
11
|
Field: z.ZodString;
|
|
12
12
|
Value: z.ZodString;
|
|
13
13
|
Comparer: z.ZodString;
|
|
14
|
-
}, z.core.$
|
|
14
|
+
}, z.core.$loose>>>;
|
|
15
15
|
FetchType: z.ZodOptional<z.ZodEnum<{
|
|
16
16
|
All: "All";
|
|
17
17
|
Top: "Top";
|
|
@@ -28,12 +28,13 @@ declare const MoosendCreateSegmentOutput: z.ZodObject<{
|
|
|
28
28
|
Code: z.ZodNullable<z.ZodNumber>;
|
|
29
29
|
Error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
30
30
|
Context: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
31
|
-
}, z.core.$
|
|
31
|
+
}, z.core.$loose>;
|
|
32
32
|
declare const moosendCreateSegment: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
33
33
|
Name: string;
|
|
34
34
|
mailingListID: string;
|
|
35
35
|
format?: "json" | "xml" | undefined;
|
|
36
36
|
Criteria?: {
|
|
37
|
+
[x: string]: unknown;
|
|
37
38
|
Field: string;
|
|
38
39
|
Value: string;
|
|
39
40
|
Comparer: string;
|
|
@@ -11,7 +11,7 @@ const moosendCreateSegment = action("MOOSEND_CREATE_SEGMENT", {
|
|
|
11
11
|
Field: z.string().describe("The field to filter on (e.g., 'Email', custom field name)."),
|
|
12
12
|
Value: z.string().describe("The value to compare against."),
|
|
13
13
|
Comparer: z.string().describe("Comparison operator (e.g., 'Contains', 'Equals', 'DoesNotEqual').")
|
|
14
|
-
}).describe("A single criterion for segment filtering.")).describe("Array of filter criteria. Leave empty to create a segment without criteria.").optional(),
|
|
14
|
+
}).passthrough().describe("A single criterion for segment filtering.")).describe("Array of filter criteria. Leave empty to create a segment without criteria.").optional(),
|
|
15
15
|
FetchType: z.enum([
|
|
16
16
|
"All",
|
|
17
17
|
"Top",
|
|
@@ -25,7 +25,7 @@ const moosendCreateSegment = action("MOOSEND_CREATE_SEGMENT", {
|
|
|
25
25
|
Code: z.number().int().describe("Response code; 0 indicates success.").nullable(),
|
|
26
26
|
Error: z.string().describe("Error message; null if successful.").nullable().optional(),
|
|
27
27
|
Context: z.string().describe("The ID of the newly created segment; null on error.").nullable().optional()
|
|
28
|
-
}).describe("Response schema for CreateSegment action.")
|
|
28
|
+
}).passthrough().describe("Response schema for CreateSegment action.")
|
|
29
29
|
});
|
|
30
30
|
//#endregion
|
|
31
31
|
export { moosendCreateSegment };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-segment.mjs","names":[],"sources":["../../src/actions/create-segment.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoosendCreateSegmentInput = z.object({\n Name: z.string().describe(\"The name of the segment.\"),\n format: z.enum([\"json\", \"xml\"]).default(\"json\").describe(\"Response format. Use 'json' (recommended and default) or 'xml'.\").optional(),\n Criteria: z.array(z.object({\n Field: z.string().describe(\"The field to filter on (e.g., 'Email', custom field name).\"),\n Value: z.string().describe(\"The value to compare against.\"),\n Comparer: z.string().describe(\"Comparison operator (e.g., 'Contains', 'Equals', 'DoesNotEqual').\"),\n}).describe(\"A single criterion for segment filtering.\")).describe(\"Array of filter criteria. Leave empty to create a segment without criteria.\").optional(),\n FetchType: z.enum([\"All\", \"Top\", \"TopPercent\"]).describe(\"How many matching subscribers to fetch.\").optional(),\n MatchType: z.enum([\"All\", \"Any\"]).describe(\"How segment criteria match together.\").optional(),\n FetchValue: z.number().int().describe(\"Value for FetchType 'Top' or 'TopPercent' (e.g., 100 for top 100 subscribers, or 10 for top 10%).\").optional(),\n mailingListID: z.string().describe(\"The ID of the mailing list to create the segment in.\"),\n}).describe(\"Request schema for creating a new segment in a mailing list.\");\nexport const MoosendCreateSegmentOutput = z.object({\n Code: z.number().int().describe(\"Response code; 0 indicates success.\").nullable(),\n Error: z.string().describe(\"Error message; null if successful.\").nullable().optional(),\n Context: z.string().describe(\"The ID of the newly created segment; null on error.\").nullable().optional(),\n}).describe(\"Response schema for CreateSegment action.\");\n\nexport const moosendCreateSegment = action(\"MOOSEND_CREATE_SEGMENT\", {\n slug: \"moosend-create-segment\",\n name: \"Create Segment\",\n description: \"Tool to create a new segment for a mailing list. Use to organize subscribers based on criteria or create empty segments for future use.\",\n input: MoosendCreateSegmentInput,\n output: MoosendCreateSegmentOutput,\n});\n"],"mappings":";;AAuBA,MAAa,uBAAuB,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAvBuC,EAAE,OAAO;EAChD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B;EACpD,QAAQ,EAAE,KAAK,CAAC,QAAQ,KAAK,CAAC,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;EACrI,UAAU,EAAE,MAAM,EAAE,OAAO;GAC3B,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D;GACvF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B;GAC1D,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE;EACnG,CAAC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS;
|
|
1
|
+
{"version":3,"file":"create-segment.mjs","names":[],"sources":["../../src/actions/create-segment.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoosendCreateSegmentInput = z.object({\n Name: z.string().describe(\"The name of the segment.\"),\n format: z.enum([\"json\", \"xml\"]).default(\"json\").describe(\"Response format. Use 'json' (recommended and default) or 'xml'.\").optional(),\n Criteria: z.array(z.object({\n Field: z.string().describe(\"The field to filter on (e.g., 'Email', custom field name).\"),\n Value: z.string().describe(\"The value to compare against.\"),\n Comparer: z.string().describe(\"Comparison operator (e.g., 'Contains', 'Equals', 'DoesNotEqual').\"),\n}).passthrough().describe(\"A single criterion for segment filtering.\")).describe(\"Array of filter criteria. Leave empty to create a segment without criteria.\").optional(),\n FetchType: z.enum([\"All\", \"Top\", \"TopPercent\"]).describe(\"How many matching subscribers to fetch.\").optional(),\n MatchType: z.enum([\"All\", \"Any\"]).describe(\"How segment criteria match together.\").optional(),\n FetchValue: z.number().int().describe(\"Value for FetchType 'Top' or 'TopPercent' (e.g., 100 for top 100 subscribers, or 10 for top 10%).\").optional(),\n mailingListID: z.string().describe(\"The ID of the mailing list to create the segment in.\"),\n}).describe(\"Request schema for creating a new segment in a mailing list.\");\nexport const MoosendCreateSegmentOutput = z.object({\n Code: z.number().int().describe(\"Response code; 0 indicates success.\").nullable(),\n Error: z.string().describe(\"Error message; null if successful.\").nullable().optional(),\n Context: z.string().describe(\"The ID of the newly created segment; null on error.\").nullable().optional(),\n}).passthrough().describe(\"Response schema for CreateSegment action.\");\n\nexport const moosendCreateSegment = action(\"MOOSEND_CREATE_SEGMENT\", {\n slug: \"moosend-create-segment\",\n name: \"Create Segment\",\n description: \"Tool to create a new segment for a mailing list. Use to organize subscribers based on criteria or create empty segments for future use.\",\n input: MoosendCreateSegmentInput,\n output: MoosendCreateSegmentOutput,\n});\n"],"mappings":";;AAuBA,MAAa,uBAAuB,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAvBuC,EAAE,OAAO;EAChD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B;EACpD,QAAQ,EAAE,KAAK,CAAC,QAAQ,KAAK,CAAC,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;EACrI,UAAU,EAAE,MAAM,EAAE,OAAO;GAC3B,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D;GACvF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B;GAC1D,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE;EACnG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS;EACvK,WAAW,EAAE,KAAK;GAAC;GAAO;GAAO;EAAY,CAAC,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;EAC7G,WAAW,EAAE,KAAK,CAAC,OAAO,KAAK,CAAC,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;EAC5F,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mGAAmG,CAAC,CAAC,SAAS;EACpJ,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD;CAC3F,CAAC,CAAC,CAAC,SAAS,8DAWH;CACP,QAXwC,EAAE,OAAO;EACjD,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;EAChF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2CAOhB;AACV,CAAC"}
|
|
@@ -9,7 +9,7 @@ const MoosendDeleteCampaignOutput = zod.z.object({
|
|
|
9
9
|
Code: zod.z.number().int().describe("API response code. 0 indicates successful deletion, any non-zero value indicates an error occurred.").nullable().optional(),
|
|
10
10
|
Error: zod.z.string().describe("Error message if the operation failed. Will be null when Code is 0 (success).").nullable().optional(),
|
|
11
11
|
Context: zod.z.unknown().describe("Additional context data. Always null for successful campaign deletions.").nullable().optional()
|
|
12
|
-
});
|
|
12
|
+
}).passthrough();
|
|
13
13
|
const moosendDeleteCampaign = require_action.action("MOOSEND_DELETE_CAMPAIGN", {
|
|
14
14
|
slug: "moosend-delete-campaign",
|
|
15
15
|
name: "Delete Campaign",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-campaign.cjs","names":["z","action"],"sources":["../../src/actions/delete-campaign.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoosendDeleteCampaignInput = z.object({\n format: z.enum([\"json\", \"xml\"]).default(\"json\").describe(\"Response format. Use 'json' (default) for JSON responses or 'xml' for XML responses.\").optional(),\n campaign_id: z.string().describe(\"The unique identifier (UUID format) of the campaign to delete. This can be a draft or sent campaign. Deletion is permanent and irreversible.\"),\n});\nexport const MoosendDeleteCampaignOutput = z.object({\n Code: z.number().int().describe(\"API response code. 0 indicates successful deletion, any non-zero value indicates an error occurred.\").nullable().optional(),\n Error: z.string().describe(\"Error message if the operation failed. Will be null when Code is 0 (success).\").nullable().optional(),\n Context: z.unknown().describe(\"Additional context data. Always null for successful campaign deletions.\").nullable().optional(),\n});\n\nexport const moosendDeleteCampaign = action(\"MOOSEND_DELETE_CAMPAIGN\", {\n slug: \"moosend-delete-campaign\",\n name: \"Delete Campaign\",\n description: \"Permanently deletes a campaign from your Moosend account by its ID. This action removes draft or sent campaigns irreversibly. Use this when you need to clean up campaigns that are no longer needed. The campaign ID can be obtained from listing campaigns or retrieved when a campaign is created. Always verify the campaign ID before deletion as this operation cannot be undone.\",\n input: MoosendDeleteCampaignInput,\n output: MoosendDeleteCampaignOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,QAAQA,IAAAA,EAAE,KAAK,CAAC,QAAQ,KAAK,CAAC,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,sFAAsF,CAAC,CAAC,SAAS;CAC1J,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8IAA8I;AACjL,CAAC;AACD,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qGAAqG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3J,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChI,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC/H,CAAC;
|
|
1
|
+
{"version":3,"file":"delete-campaign.cjs","names":["z","action"],"sources":["../../src/actions/delete-campaign.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoosendDeleteCampaignInput = z.object({\n format: z.enum([\"json\", \"xml\"]).default(\"json\").describe(\"Response format. Use 'json' (default) for JSON responses or 'xml' for XML responses.\").optional(),\n campaign_id: z.string().describe(\"The unique identifier (UUID format) of the campaign to delete. This can be a draft or sent campaign. Deletion is permanent and irreversible.\"),\n});\nexport const MoosendDeleteCampaignOutput = z.object({\n Code: z.number().int().describe(\"API response code. 0 indicates successful deletion, any non-zero value indicates an error occurred.\").nullable().optional(),\n Error: z.string().describe(\"Error message if the operation failed. Will be null when Code is 0 (success).\").nullable().optional(),\n Context: z.unknown().describe(\"Additional context data. Always null for successful campaign deletions.\").nullable().optional(),\n}).passthrough();\n\nexport const moosendDeleteCampaign = action(\"MOOSEND_DELETE_CAMPAIGN\", {\n slug: \"moosend-delete-campaign\",\n name: \"Delete Campaign\",\n description: \"Permanently deletes a campaign from your Moosend account by its ID. This action removes draft or sent campaigns irreversibly. Use this when you need to clean up campaigns that are no longer needed. The campaign ID can be obtained from listing campaigns or retrieved when a campaign is created. Always verify the campaign ID before deletion as this operation cannot be undone.\",\n input: MoosendDeleteCampaignInput,\n output: MoosendDeleteCampaignOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,QAAQA,IAAAA,EAAE,KAAK,CAAC,QAAQ,KAAK,CAAC,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,sFAAsF,CAAC,CAAC,SAAS;CAC1J,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8IAA8I;AACjL,CAAC;AACD,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qGAAqG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3J,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChI,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC/H,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,wBAAwBC,eAAAA,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -12,7 +12,7 @@ declare const MoosendDeleteCampaignOutput: z.ZodObject<{
|
|
|
12
12
|
Code: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
13
13
|
Error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
14
|
Context: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
|
|
15
|
-
}, z.core.$
|
|
15
|
+
}, z.core.$loose>;
|
|
16
16
|
declare const moosendDeleteCampaign: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
17
17
|
campaign_id: string;
|
|
18
18
|
format?: "json" | "xml" | undefined;
|
|
@@ -12,7 +12,7 @@ declare const MoosendDeleteCampaignOutput: z.ZodObject<{
|
|
|
12
12
|
Code: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
13
13
|
Error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
14
|
Context: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
|
|
15
|
-
}, z.core.$
|
|
15
|
+
}, z.core.$loose>;
|
|
16
16
|
declare const moosendDeleteCampaign: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
17
17
|
campaign_id: string;
|
|
18
18
|
format?: "json" | "xml" | undefined;
|
|
@@ -12,7 +12,7 @@ const moosendDeleteCampaign = action("MOOSEND_DELETE_CAMPAIGN", {
|
|
|
12
12
|
Code: z.number().int().describe("API response code. 0 indicates successful deletion, any non-zero value indicates an error occurred.").nullable().optional(),
|
|
13
13
|
Error: z.string().describe("Error message if the operation failed. Will be null when Code is 0 (success).").nullable().optional(),
|
|
14
14
|
Context: z.unknown().describe("Additional context data. Always null for successful campaign deletions.").nullable().optional()
|
|
15
|
-
})
|
|
15
|
+
}).passthrough()
|
|
16
16
|
});
|
|
17
17
|
//#endregion
|
|
18
18
|
export { moosendDeleteCampaign };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-campaign.mjs","names":[],"sources":["../../src/actions/delete-campaign.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoosendDeleteCampaignInput = z.object({\n format: z.enum([\"json\", \"xml\"]).default(\"json\").describe(\"Response format. Use 'json' (default) for JSON responses or 'xml' for XML responses.\").optional(),\n campaign_id: z.string().describe(\"The unique identifier (UUID format) of the campaign to delete. This can be a draft or sent campaign. Deletion is permanent and irreversible.\"),\n});\nexport const MoosendDeleteCampaignOutput = z.object({\n Code: z.number().int().describe(\"API response code. 0 indicates successful deletion, any non-zero value indicates an error occurred.\").nullable().optional(),\n Error: z.string().describe(\"Error message if the operation failed. Will be null when Code is 0 (success).\").nullable().optional(),\n Context: z.unknown().describe(\"Additional context data. Always null for successful campaign deletions.\").nullable().optional(),\n});\n\nexport const moosendDeleteCampaign = action(\"MOOSEND_DELETE_CAMPAIGN\", {\n slug: \"moosend-delete-campaign\",\n name: \"Delete Campaign\",\n description: \"Permanently deletes a campaign from your Moosend account by its ID. This action removes draft or sent campaigns irreversibly. Use this when you need to clean up campaigns that are no longer needed. The campaign ID can be obtained from listing campaigns or retrieved when a campaign is created. Always verify the campaign ID before deletion as this operation cannot be undone.\",\n input: MoosendDeleteCampaignInput,\n output: MoosendDeleteCampaignOutput,\n});\n"],"mappings":";;AAcA,MAAa,wBAAwB,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAdwC,EAAE,OAAO;EACjD,QAAQ,EAAE,KAAK,CAAC,QAAQ,KAAK,CAAC,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,sFAAsF,CAAC,CAAC,SAAS;EAC1J,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,8IAA8I;CACjL,CAWS;CACP,QAXyC,EAAE,OAAO;EAClD,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qGAAqG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3J,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChI,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/H,
|
|
1
|
+
{"version":3,"file":"delete-campaign.mjs","names":[],"sources":["../../src/actions/delete-campaign.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoosendDeleteCampaignInput = z.object({\n format: z.enum([\"json\", \"xml\"]).default(\"json\").describe(\"Response format. Use 'json' (default) for JSON responses or 'xml' for XML responses.\").optional(),\n campaign_id: z.string().describe(\"The unique identifier (UUID format) of the campaign to delete. This can be a draft or sent campaign. Deletion is permanent and irreversible.\"),\n});\nexport const MoosendDeleteCampaignOutput = z.object({\n Code: z.number().int().describe(\"API response code. 0 indicates successful deletion, any non-zero value indicates an error occurred.\").nullable().optional(),\n Error: z.string().describe(\"Error message if the operation failed. Will be null when Code is 0 (success).\").nullable().optional(),\n Context: z.unknown().describe(\"Additional context data. Always null for successful campaign deletions.\").nullable().optional(),\n}).passthrough();\n\nexport const moosendDeleteCampaign = action(\"MOOSEND_DELETE_CAMPAIGN\", {\n slug: \"moosend-delete-campaign\",\n name: \"Delete Campaign\",\n description: \"Permanently deletes a campaign from your Moosend account by its ID. This action removes draft or sent campaigns irreversibly. Use this when you need to clean up campaigns that are no longer needed. The campaign ID can be obtained from listing campaigns or retrieved when a campaign is created. Always verify the campaign ID before deletion as this operation cannot be undone.\",\n input: MoosendDeleteCampaignInput,\n output: MoosendDeleteCampaignOutput,\n});\n"],"mappings":";;AAcA,MAAa,wBAAwB,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAdwC,EAAE,OAAO;EACjD,QAAQ,EAAE,KAAK,CAAC,QAAQ,KAAK,CAAC,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,sFAAsF,CAAC,CAAC,SAAS;EAC1J,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,8IAA8I;CACjL,CAWS;CACP,QAXyC,EAAE,OAAO;EAClD,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qGAAqG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3J,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChI,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/H,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
|
|
@@ -10,7 +10,7 @@ const MoosendDeleteCustomFieldOutput = zod.z.object({
|
|
|
10
10
|
Code: zod.z.number().int().describe("Response code. 0 indicates success.").nullable().optional(),
|
|
11
11
|
Error: zod.z.string().describe("Error message, if any. Null when successful.").nullable().optional(),
|
|
12
12
|
Context: zod.z.string().describe("Additional context information. Null when successful.").nullable().optional()
|
|
13
|
-
});
|
|
13
|
+
}).passthrough();
|
|
14
14
|
const moosendDeleteCustomField = require_action.action("MOOSEND_DELETE_CUSTOM_FIELD", {
|
|
15
15
|
slug: "moosend-delete-custom-field",
|
|
16
16
|
name: "Delete custom field",
|