@keystrokehq/moosend 0.1.4 → 0.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/action.cjs.map +1 -1
- package/dist/action.mjs.map +1 -1
- package/dist/actions/add-segment-criteria.cjs +1 -0
- package/dist/actions/add-segment-criteria.cjs.map +1 -1
- package/dist/actions/add-segment-criteria.d.cts +3 -10
- package/dist/actions/add-segment-criteria.d.cts.map +1 -1
- package/dist/actions/add-segment-criteria.d.mts +3 -10
- package/dist/actions/add-segment-criteria.d.mts.map +1 -1
- package/dist/actions/add-segment-criteria.mjs +1 -0
- package/dist/actions/add-segment-criteria.mjs.map +1 -1
- package/dist/actions/add-subscriber.cjs +1 -0
- package/dist/actions/add-subscriber.cjs.map +1 -1
- package/dist/actions/add-subscriber.d.cts +3 -10
- package/dist/actions/add-subscriber.d.cts.map +1 -1
- package/dist/actions/add-subscriber.d.mts +3 -10
- package/dist/actions/add-subscriber.d.mts.map +1 -1
- package/dist/actions/add-subscriber.mjs +1 -0
- package/dist/actions/add-subscriber.mjs.map +1 -1
- package/dist/actions/clone-campaign.cjs +1 -0
- package/dist/actions/clone-campaign.cjs.map +1 -1
- package/dist/actions/clone-campaign.d.cts +3 -4
- package/dist/actions/clone-campaign.d.cts.map +1 -1
- package/dist/actions/clone-campaign.d.mts +3 -4
- package/dist/actions/clone-campaign.d.mts.map +1 -1
- package/dist/actions/clone-campaign.mjs +1 -0
- package/dist/actions/clone-campaign.mjs.map +1 -1
- package/dist/actions/create-custom-field.cjs +1 -0
- package/dist/actions/create-custom-field.cjs.map +1 -1
- package/dist/actions/create-custom-field.d.cts +3 -9
- package/dist/actions/create-custom-field.d.cts.map +1 -1
- package/dist/actions/create-custom-field.d.mts +3 -9
- package/dist/actions/create-custom-field.d.mts.map +1 -1
- package/dist/actions/create-custom-field.mjs +1 -0
- package/dist/actions/create-custom-field.mjs.map +1 -1
- package/dist/actions/create-mailing-list.cjs +1 -0
- package/dist/actions/create-mailing-list.cjs.map +1 -1
- package/dist/actions/create-mailing-list.d.cts +3 -5
- package/dist/actions/create-mailing-list.d.cts.map +1 -1
- package/dist/actions/create-mailing-list.d.mts +3 -5
- package/dist/actions/create-mailing-list.d.mts.map +1 -1
- package/dist/actions/create-mailing-list.mjs +1 -0
- package/dist/actions/create-mailing-list.mjs.map +1 -1
- package/dist/actions/create-segment.cjs +1 -0
- package/dist/actions/create-segment.cjs.map +1 -1
- package/dist/actions/create-segment.d.cts +3 -14
- package/dist/actions/create-segment.d.cts.map +1 -1
- package/dist/actions/create-segment.d.mts +3 -14
- package/dist/actions/create-segment.d.mts.map +1 -1
- package/dist/actions/create-segment.mjs +1 -0
- package/dist/actions/create-segment.mjs.map +1 -1
- package/dist/actions/delete-campaign.cjs +1 -0
- package/dist/actions/delete-campaign.cjs.map +1 -1
- package/dist/actions/delete-campaign.d.cts +3 -4
- package/dist/actions/delete-campaign.d.cts.map +1 -1
- package/dist/actions/delete-campaign.d.mts +3 -4
- package/dist/actions/delete-campaign.d.mts.map +1 -1
- package/dist/actions/delete-campaign.mjs +1 -0
- package/dist/actions/delete-campaign.mjs.map +1 -1
- package/dist/actions/delete-custom-field.cjs +1 -0
- package/dist/actions/delete-custom-field.cjs.map +1 -1
- package/dist/actions/delete-custom-field.d.cts +3 -5
- package/dist/actions/delete-custom-field.d.cts.map +1 -1
- package/dist/actions/delete-custom-field.d.mts +3 -5
- package/dist/actions/delete-custom-field.d.mts.map +1 -1
- package/dist/actions/delete-custom-field.mjs +1 -0
- package/dist/actions/delete-custom-field.mjs.map +1 -1
- package/dist/actions/delete-mailing-list.cjs +1 -0
- package/dist/actions/delete-mailing-list.cjs.map +1 -1
- package/dist/actions/delete-mailing-list.d.cts +3 -4
- package/dist/actions/delete-mailing-list.d.cts.map +1 -1
- package/dist/actions/delete-mailing-list.d.mts +3 -4
- package/dist/actions/delete-mailing-list.d.mts.map +1 -1
- package/dist/actions/delete-mailing-list.mjs +1 -0
- package/dist/actions/delete-mailing-list.mjs.map +1 -1
- package/dist/actions/get-all-campaigns.cjs +1 -0
- package/dist/actions/get-all-campaigns.cjs.map +1 -1
- package/dist/actions/get-all-campaigns.d.cts +3 -4
- package/dist/actions/get-all-campaigns.d.cts.map +1 -1
- package/dist/actions/get-all-campaigns.d.mts +3 -4
- package/dist/actions/get-all-campaigns.d.mts.map +1 -1
- package/dist/actions/get-all-campaigns.mjs +1 -0
- package/dist/actions/get-all-campaigns.mjs.map +1 -1
- package/dist/actions/get-all-subscribers.cjs +1 -0
- package/dist/actions/get-all-subscribers.cjs.map +1 -1
- package/dist/actions/get-all-subscribers.d.cts +3 -7
- package/dist/actions/get-all-subscribers.d.cts.map +1 -1
- package/dist/actions/get-all-subscribers.d.mts +3 -7
- package/dist/actions/get-all-subscribers.d.mts.map +1 -1
- package/dist/actions/get-all-subscribers.mjs +1 -0
- package/dist/actions/get-all-subscribers.mjs.map +1 -1
- package/dist/actions/get-campaign-details.cjs +1 -0
- package/dist/actions/get-campaign-details.cjs.map +1 -1
- package/dist/actions/get-campaign-details.d.cts +3 -3
- package/dist/actions/get-campaign-details.d.cts.map +1 -1
- package/dist/actions/get-campaign-details.d.mts +3 -3
- package/dist/actions/get-campaign-details.d.mts.map +1 -1
- package/dist/actions/get-campaign-details.mjs +1 -0
- package/dist/actions/get-campaign-details.mjs.map +1 -1
- package/dist/actions/get-campaign-stats-by-location.cjs +1 -0
- package/dist/actions/get-campaign-stats-by-location.cjs.map +1 -1
- package/dist/actions/get-campaign-stats-by-location.d.cts +3 -3
- package/dist/actions/get-campaign-stats-by-location.d.cts.map +1 -1
- package/dist/actions/get-campaign-stats-by-location.d.mts +3 -3
- package/dist/actions/get-campaign-stats-by-location.d.mts.map +1 -1
- package/dist/actions/get-campaign-stats-by-location.mjs +1 -0
- package/dist/actions/get-campaign-stats-by-location.mjs.map +1 -1
- package/dist/actions/get-mailing-list-details.cjs +1 -0
- package/dist/actions/get-mailing-list-details.cjs.map +1 -1
- package/dist/actions/get-mailing-list-details.d.cts +3 -5
- package/dist/actions/get-mailing-list-details.d.cts.map +1 -1
- package/dist/actions/get-mailing-list-details.d.mts +3 -5
- package/dist/actions/get-mailing-list-details.d.mts.map +1 -1
- package/dist/actions/get-mailing-list-details.mjs +1 -0
- package/dist/actions/get-mailing-list-details.mjs.map +1 -1
- package/dist/actions/get-subscriber-by-email.cjs +1 -0
- package/dist/actions/get-subscriber-by-email.cjs.map +1 -1
- package/dist/actions/get-subscriber-by-email.d.cts +3 -5
- package/dist/actions/get-subscriber-by-email.d.cts.map +1 -1
- package/dist/actions/get-subscriber-by-email.d.mts +3 -5
- package/dist/actions/get-subscriber-by-email.d.mts.map +1 -1
- package/dist/actions/get-subscriber-by-email.mjs +1 -0
- package/dist/actions/get-subscriber-by-email.mjs.map +1 -1
- package/dist/actions/list-all-mailing-lists.cjs +1 -0
- package/dist/actions/list-all-mailing-lists.cjs.map +1 -1
- package/dist/actions/list-all-mailing-lists.d.cts +3 -8
- package/dist/actions/list-all-mailing-lists.d.cts.map +1 -1
- package/dist/actions/list-all-mailing-lists.d.mts +3 -8
- package/dist/actions/list-all-mailing-lists.d.mts.map +1 -1
- package/dist/actions/list-all-mailing-lists.mjs +1 -0
- package/dist/actions/list-all-mailing-lists.mjs.map +1 -1
- package/dist/actions/list-all-senders.cjs +1 -0
- package/dist/actions/list-all-senders.cjs.map +1 -1
- package/dist/actions/list-all-senders.d.cts +3 -3
- package/dist/actions/list-all-senders.d.cts.map +1 -1
- package/dist/actions/list-all-senders.d.mts +3 -3
- package/dist/actions/list-all-senders.d.mts.map +1 -1
- package/dist/actions/list-all-senders.mjs +1 -0
- package/dist/actions/list-all-senders.mjs.map +1 -1
- package/dist/actions/list-campaigns-with-paging.cjs +1 -0
- package/dist/actions/list-campaigns-with-paging.cjs.map +1 -1
- package/dist/actions/list-campaigns-with-paging.d.cts +3 -6
- package/dist/actions/list-campaigns-with-paging.d.cts.map +1 -1
- package/dist/actions/list-campaigns-with-paging.d.mts +3 -6
- package/dist/actions/list-campaigns-with-paging.d.mts.map +1 -1
- package/dist/actions/list-campaigns-with-paging.mjs +1 -0
- package/dist/actions/list-campaigns-with-paging.mjs.map +1 -1
- package/dist/actions/list-segments.cjs +1 -0
- package/dist/actions/list-segments.cjs.map +1 -1
- package/dist/actions/list-segments.d.cts +3 -4
- package/dist/actions/list-segments.d.cts.map +1 -1
- package/dist/actions/list-segments.d.mts +3 -4
- package/dist/actions/list-segments.d.mts.map +1 -1
- package/dist/actions/list-segments.mjs +1 -0
- package/dist/actions/list-segments.mjs.map +1 -1
- package/dist/actions/remove-multiple-subscribers.cjs +1 -0
- package/dist/actions/remove-multiple-subscribers.cjs.map +1 -1
- package/dist/actions/remove-multiple-subscribers.d.cts +3 -5
- package/dist/actions/remove-multiple-subscribers.d.cts.map +1 -1
- package/dist/actions/remove-multiple-subscribers.d.mts +3 -5
- package/dist/actions/remove-multiple-subscribers.d.mts.map +1 -1
- package/dist/actions/remove-multiple-subscribers.mjs +1 -0
- package/dist/actions/remove-multiple-subscribers.mjs.map +1 -1
- package/dist/actions/schedule-campaign.cjs +1 -0
- package/dist/actions/schedule-campaign.cjs.map +1 -1
- package/dist/actions/schedule-campaign.d.cts +3 -6
- package/dist/actions/schedule-campaign.d.cts.map +1 -1
- package/dist/actions/schedule-campaign.d.mts +3 -6
- package/dist/actions/schedule-campaign.d.mts.map +1 -1
- package/dist/actions/schedule-campaign.mjs +1 -0
- package/dist/actions/schedule-campaign.mjs.map +1 -1
- package/dist/actions/send-campaign.cjs +1 -0
- package/dist/actions/send-campaign.cjs.map +1 -1
- package/dist/actions/send-campaign.d.cts +3 -4
- package/dist/actions/send-campaign.d.cts.map +1 -1
- package/dist/actions/send-campaign.d.mts +3 -4
- package/dist/actions/send-campaign.d.mts.map +1 -1
- package/dist/actions/send-campaign.mjs +1 -0
- package/dist/actions/send-campaign.mjs.map +1 -1
- package/dist/actions/unschedule-campaign.cjs +1 -0
- package/dist/actions/unschedule-campaign.cjs.map +1 -1
- package/dist/actions/unschedule-campaign.d.cts +3 -4
- package/dist/actions/unschedule-campaign.d.cts.map +1 -1
- package/dist/actions/unschedule-campaign.d.mts +3 -4
- package/dist/actions/unschedule-campaign.d.mts.map +1 -1
- package/dist/actions/unschedule-campaign.mjs +1 -0
- package/dist/actions/unschedule-campaign.mjs.map +1 -1
- package/dist/actions/unsubscribe-from-account.cjs +1 -0
- package/dist/actions/unsubscribe-from-account.cjs.map +1 -1
- package/dist/actions/unsubscribe-from-account.d.cts +3 -4
- package/dist/actions/unsubscribe-from-account.d.cts.map +1 -1
- package/dist/actions/unsubscribe-from-account.d.mts +3 -4
- package/dist/actions/unsubscribe-from-account.d.mts.map +1 -1
- package/dist/actions/unsubscribe-from-account.mjs +1 -0
- package/dist/actions/unsubscribe-from-account.mjs.map +1 -1
- package/dist/actions/unsubscribe-from-mailing-list.cjs +1 -0
- package/dist/actions/unsubscribe-from-mailing-list.cjs.map +1 -1
- package/dist/actions/unsubscribe-from-mailing-list.d.cts +3 -5
- package/dist/actions/unsubscribe-from-mailing-list.d.cts.map +1 -1
- package/dist/actions/unsubscribe-from-mailing-list.d.mts +3 -5
- package/dist/actions/unsubscribe-from-mailing-list.d.mts.map +1 -1
- package/dist/actions/unsubscribe-from-mailing-list.mjs +1 -0
- package/dist/actions/unsubscribe-from-mailing-list.mjs.map +1 -1
- package/dist/actions/update-campaign.cjs +1 -0
- package/dist/actions/update-campaign.cjs.map +1 -1
- package/dist/actions/update-campaign.d.cts +3 -25
- package/dist/actions/update-campaign.d.cts.map +1 -1
- package/dist/actions/update-campaign.d.mts +3 -25
- package/dist/actions/update-campaign.d.mts.map +1 -1
- package/dist/actions/update-campaign.mjs +1 -0
- package/dist/actions/update-campaign.mjs.map +1 -1
- package/dist/actions/update-custom-field.cjs +1 -0
- package/dist/actions/update-custom-field.cjs.map +1 -1
- package/dist/actions/update-custom-field.d.cts +3 -10
- package/dist/actions/update-custom-field.d.cts.map +1 -1
- package/dist/actions/update-custom-field.d.mts +3 -10
- package/dist/actions/update-custom-field.d.mts.map +1 -1
- package/dist/actions/update-custom-field.mjs +1 -0
- package/dist/actions/update-custom-field.mjs.map +1 -1
- package/dist/actions/update-mailing-list.cjs +1 -0
- package/dist/actions/update-mailing-list.cjs.map +1 -1
- package/dist/actions/update-mailing-list.d.cts +3 -9
- package/dist/actions/update-mailing-list.d.cts.map +1 -1
- package/dist/actions/update-mailing-list.d.mts +3 -9
- package/dist/actions/update-mailing-list.d.mts.map +1 -1
- package/dist/actions/update-mailing-list.mjs +1 -0
- package/dist/actions/update-mailing-list.mjs.map +1 -1
- package/dist/actions/update-segment-criteria.cjs +1 -0
- package/dist/actions/update-segment-criteria.cjs.map +1 -1
- package/dist/actions/update-segment-criteria.d.cts +3 -11
- package/dist/actions/update-segment-criteria.d.cts.map +1 -1
- package/dist/actions/update-segment-criteria.d.mts +3 -11
- package/dist/actions/update-segment-criteria.d.mts.map +1 -1
- package/dist/actions/update-segment-criteria.mjs +1 -0
- package/dist/actions/update-segment-criteria.mjs.map +1 -1
- package/dist/actions/update-segment.cjs +1 -0
- package/dist/actions/update-segment.cjs.map +1 -1
- package/dist/actions/update-segment.d.cts +3 -15
- package/dist/actions/update-segment.d.cts.map +1 -1
- package/dist/actions/update-segment.d.mts +3 -15
- package/dist/actions/update-segment.d.mts.map +1 -1
- package/dist/actions/update-segment.mjs +1 -0
- package/dist/actions/update-segment.mjs.map +1 -1
- package/dist/actions/update-subscriber.cjs +1 -0
- package/dist/actions/update-subscriber.cjs.map +1 -1
- package/dist/actions/update-subscriber.d.cts +3 -9
- package/dist/actions/update-subscriber.d.cts.map +1 -1
- package/dist/actions/update-subscriber.d.mts +3 -9
- package/dist/actions/update-subscriber.d.mts.map +1 -1
- package/dist/actions/update-subscriber.mjs +1 -0
- package/dist/actions/update-subscriber.mjs.map +1 -1
- package/dist/app.cjs +5 -2
- package/dist/app.cjs.map +1 -1
- package/dist/app.d.cts +7 -1
- package/dist/app.d.cts.map +1 -1
- package/dist/app.d.mts +7 -1
- package/dist/app.d.mts.map +1 -1
- package/dist/app.mjs +3 -2
- package/dist/app.mjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +1 -1
- package/package.json +2 -2
package/dist/action.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action.cjs","names":["moosend","executeMoosendTool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { moosend } from \"./app\";\nimport { executeMoosendTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output:
|
|
1
|
+
{"version":3,"file":"action.cjs","names":["moosend","executeMoosendTool"],"sources":["../src/action.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { moosend } from \"./app\";\nimport { executeMoosendTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType, TOutput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: TOutput;\n },\n): AppAction<TInput, TOutput, typeof moosend.credential> {\n return moosend.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await executeMoosendTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAOA,SAAgB,OACd,MACA,KAOuD;CACvD,OAAOA,YAAAA,QAAQ,OAAO;EACpB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAMC,gBAAAA,mBAAmB,MAAM,KAAgC,CAAC;EAC1F;CACF,CAAC;AACH"}
|
package/dist/action.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { moosend } from \"./app\";\nimport { executeMoosendTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output:
|
|
1
|
+
{"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { moosend } from \"./app\";\nimport { executeMoosendTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType, TOutput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: TOutput;\n },\n): AppAction<TInput, TOutput, typeof moosend.credential> {\n return moosend.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await executeMoosendTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAOA,SAAgB,OACd,MACA,KAOuD;CACvD,OAAO,QAAQ,OAAO;EACpB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,mBAAmB,MAAM,KAAgC,CAAC;EAC1F;CACF,CAAC;AACH"}
|
|
@@ -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}).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":"
|
|
1
|
+
{"version":3,"file":"add-segment-criteria.cjs","names":["z","action"],"sources":["../../src/actions/add-segment-criteria.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { moosend } from \"../app\";\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: AppAction<\n typeof MoosendAddSegmentCriteriaInput,\n typeof MoosendAddSegmentCriteriaOutput,\n typeof moosend.credential\n> = 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":";;;;AAMA,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,4BAITC,eAAAA,OAAO,gCAAgC;CACzC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { moosend } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/add-segment-criteria.d.ts
|
|
@@ -16,16 +18,7 @@ declare const MoosendAddSegmentCriteriaOutput: z.ZodObject<{
|
|
|
16
18
|
Error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
19
|
Context: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
20
|
}, z.core.$loose>;
|
|
19
|
-
declare const moosendAddSegmentCriteria:
|
|
20
|
-
field: string;
|
|
21
|
-
value: string;
|
|
22
|
-
segment_id: string;
|
|
23
|
-
mailing_list_id: string;
|
|
24
|
-
format?: string | undefined;
|
|
25
|
-
date_to?: string | undefined;
|
|
26
|
-
comparer?: string | undefined;
|
|
27
|
-
date_from?: string | undefined;
|
|
28
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
21
|
+
declare const moosendAddSegmentCriteria: AppAction<typeof MoosendAddSegmentCriteriaInput, typeof MoosendAddSegmentCriteriaOutput, typeof moosend.credential>;
|
|
29
22
|
//#endregion
|
|
30
23
|
export { moosendAddSegmentCriteria };
|
|
31
24
|
//# sourceMappingURL=add-segment-criteria.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add-segment-criteria.d.cts","names":[],"sources":["../../src/actions/add-segment-criteria.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"add-segment-criteria.d.cts","names":[],"sources":["../../src/actions/add-segment-criteria.ts"],"mappings":";;;;;cAMa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;cAU9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;cAM/B,yBAAA,EAA2B,SAAA,QAC/B,8BAAA,SACA,+BAAA,SACA,OAAA,CAAQ,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { moosend } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/add-segment-criteria.d.ts
|
|
@@ -16,16 +18,7 @@ declare const MoosendAddSegmentCriteriaOutput: z.ZodObject<{
|
|
|
16
18
|
Error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
19
|
Context: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
20
|
}, z.core.$loose>;
|
|
19
|
-
declare const moosendAddSegmentCriteria:
|
|
20
|
-
field: string;
|
|
21
|
-
value: string;
|
|
22
|
-
segment_id: string;
|
|
23
|
-
mailing_list_id: string;
|
|
24
|
-
format?: string | undefined;
|
|
25
|
-
date_to?: string | undefined;
|
|
26
|
-
comparer?: string | undefined;
|
|
27
|
-
date_from?: string | undefined;
|
|
28
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
21
|
+
declare const moosendAddSegmentCriteria: AppAction<typeof MoosendAddSegmentCriteriaInput, typeof MoosendAddSegmentCriteriaOutput, typeof moosend.credential>;
|
|
29
22
|
//#endregion
|
|
30
23
|
export { moosendAddSegmentCriteria };
|
|
31
24
|
//# sourceMappingURL=add-segment-criteria.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add-segment-criteria.d.mts","names":[],"sources":["../../src/actions/add-segment-criteria.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"add-segment-criteria.d.mts","names":[],"sources":["../../src/actions/add-segment-criteria.ts"],"mappings":";;;;;cAMa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;cAU9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;cAM/B,yBAAA,EAA2B,SAAA,QAC/B,8BAAA,SACA,+BAAA,SACA,OAAA,CAAQ,UAAA"}
|
|
@@ -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}).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":"
|
|
1
|
+
{"version":3,"file":"add-segment-criteria.mjs","names":[],"sources":["../../src/actions/add-segment-criteria.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { moosend } from \"../app\";\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: AppAction<\n typeof MoosendAddSegmentCriteriaInput,\n typeof MoosendAddSegmentCriteriaOutput,\n typeof moosend.credential\n> = 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":";;;AAsBA,MAAa,4BAIT,OAAO,gCAAgC;CACzC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAxB4C,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,qDAeH;CACP,QAf6C,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,gDAWhB;AACV,CAAC"}
|
|
@@ -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}).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":"
|
|
1
|
+
{"version":3,"file":"add-subscriber.cjs","names":["z","action"],"sources":["../../src/actions/add-subscriber.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { moosend } from \"../app\";\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: AppAction<\n typeof MoosendAddSubscriberInput,\n typeof MoosendAddSubscriberOutput,\n typeof moosend.credential\n> = 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":";;;;AAMA,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,uBAITC,eAAAA,OAAO,0BAA0B;CACnC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { moosend } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/add-subscriber.d.ts
|
|
@@ -16,16 +18,7 @@ declare const MoosendAddSubscriberOutput: z.ZodObject<{
|
|
|
16
18
|
Error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
19
|
Context: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
18
20
|
}, z.core.$loose>;
|
|
19
|
-
declare const moosendAddSubscriber:
|
|
20
|
-
Email: string;
|
|
21
|
-
mailingListID: string;
|
|
22
|
-
Name?: string | undefined;
|
|
23
|
-
Tags?: string[] | undefined;
|
|
24
|
-
format?: string | undefined;
|
|
25
|
-
Preferences?: string[] | undefined;
|
|
26
|
-
CustomFields?: string[] | undefined;
|
|
27
|
-
HasExternalDoubleOptIn?: boolean | undefined;
|
|
28
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
21
|
+
declare const moosendAddSubscriber: AppAction<typeof MoosendAddSubscriberInput, typeof MoosendAddSubscriberOutput, typeof moosend.credential>;
|
|
29
22
|
//#endregion
|
|
30
23
|
export { moosendAddSubscriber };
|
|
31
24
|
//# sourceMappingURL=add-subscriber.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add-subscriber.d.cts","names":[],"sources":["../../src/actions/add-subscriber.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"add-subscriber.d.cts","names":[],"sources":["../../src/actions/add-subscriber.ts"],"mappings":";;;;;cAMa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;cAUzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;cAM1B,oBAAA,EAAsB,SAAA,QAC1B,yBAAA,SACA,0BAAA,SACA,OAAA,CAAQ,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { moosend } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/add-subscriber.d.ts
|
|
@@ -16,16 +18,7 @@ declare const MoosendAddSubscriberOutput: z.ZodObject<{
|
|
|
16
18
|
Error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
19
|
Context: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
18
20
|
}, z.core.$loose>;
|
|
19
|
-
declare const moosendAddSubscriber:
|
|
20
|
-
Email: string;
|
|
21
|
-
mailingListID: string;
|
|
22
|
-
Name?: string | undefined;
|
|
23
|
-
Tags?: string[] | undefined;
|
|
24
|
-
format?: string | undefined;
|
|
25
|
-
Preferences?: string[] | undefined;
|
|
26
|
-
CustomFields?: string[] | undefined;
|
|
27
|
-
HasExternalDoubleOptIn?: boolean | undefined;
|
|
28
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
21
|
+
declare const moosendAddSubscriber: AppAction<typeof MoosendAddSubscriberInput, typeof MoosendAddSubscriberOutput, typeof moosend.credential>;
|
|
29
22
|
//#endregion
|
|
30
23
|
export { moosendAddSubscriber };
|
|
31
24
|
//# sourceMappingURL=add-subscriber.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add-subscriber.d.mts","names":[],"sources":["../../src/actions/add-subscriber.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"add-subscriber.d.mts","names":[],"sources":["../../src/actions/add-subscriber.ts"],"mappings":";;;;;cAMa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;cAUzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;cAM1B,oBAAA,EAAsB,SAAA,QAC1B,yBAAA,SACA,0BAAA,SACA,OAAA,CAAQ,UAAA"}
|
|
@@ -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}).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":"
|
|
1
|
+
{"version":3,"file":"add-subscriber.mjs","names":[],"sources":["../../src/actions/add-subscriber.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { moosend } from \"../app\";\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: AppAction<\n typeof MoosendAddSubscriberInput,\n typeof MoosendAddSubscriberOutput,\n typeof moosend.credential\n> = 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":";;;AAsBA,MAAa,uBAIT,OAAO,0BAA0B;CACnC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAxBuC,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,uEAeH;CACP,QAfwC,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,2CAWhB;AACV,CAAC"}
|
|
@@ -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}).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":"
|
|
1
|
+
{"version":3,"file":"clone-campaign.cjs","names":["z","action"],"sources":["../../src/actions/clone-campaign.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { moosend } from \"../app\";\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: AppAction<\n typeof MoosendCloneCampaignInput,\n typeof MoosendCloneCampaignOutput,\n typeof moosend.credential\n> = 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":";;;;AAMA,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,uBAITC,eAAAA,OAAO,0BAA0B;CACnC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { moosend } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/clone-campaign.d.ts
|
|
@@ -13,10 +15,7 @@ declare const MoosendCloneCampaignOutput: z.ZodObject<{
|
|
|
13
15
|
Error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
16
|
Context: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
15
17
|
}, z.core.$loose>;
|
|
16
|
-
declare const moosendCloneCampaign:
|
|
17
|
-
campaign_id: string;
|
|
18
|
-
format?: "json" | "xml" | undefined;
|
|
19
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
18
|
+
declare const moosendCloneCampaign: AppAction<typeof MoosendCloneCampaignInput, typeof MoosendCloneCampaignOutput, typeof moosend.credential>;
|
|
20
19
|
//#endregion
|
|
21
20
|
export { moosendCloneCampaign };
|
|
22
21
|
//# sourceMappingURL=clone-campaign.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"clone-campaign.d.cts","names":[],"sources":["../../src/actions/clone-campaign.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"clone-campaign.d.cts","names":[],"sources":["../../src/actions/clone-campaign.ts"],"mappings":";;;;;cAMa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;cAIzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;cAM1B,oBAAA,EAAsB,SAAA,QAC1B,yBAAA,SACA,0BAAA,SACA,OAAA,CAAQ,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { moosend } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/clone-campaign.d.ts
|
|
@@ -13,10 +15,7 @@ declare const MoosendCloneCampaignOutput: z.ZodObject<{
|
|
|
13
15
|
Error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
16
|
Context: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
15
17
|
}, z.core.$loose>;
|
|
16
|
-
declare const moosendCloneCampaign:
|
|
17
|
-
campaign_id: string;
|
|
18
|
-
format?: "json" | "xml" | undefined;
|
|
19
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
18
|
+
declare const moosendCloneCampaign: AppAction<typeof MoosendCloneCampaignInput, typeof MoosendCloneCampaignOutput, typeof moosend.credential>;
|
|
20
19
|
//#endregion
|
|
21
20
|
export { moosendCloneCampaign };
|
|
22
21
|
//# sourceMappingURL=clone-campaign.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"clone-campaign.d.mts","names":[],"sources":["../../src/actions/clone-campaign.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"clone-campaign.d.mts","names":[],"sources":["../../src/actions/clone-campaign.ts"],"mappings":";;;;;cAMa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;cAIzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;cAM1B,oBAAA,EAAsB,SAAA,QAC1B,yBAAA,SACA,0BAAA,SACA,OAAA,CAAQ,UAAA"}
|
|
@@ -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}).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":"
|
|
1
|
+
{"version":3,"file":"clone-campaign.mjs","names":[],"sources":["../../src/actions/clone-campaign.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { moosend } from \"../app\";\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: AppAction<\n typeof MoosendCloneCampaignInput,\n typeof MoosendCloneCampaignOutput,\n typeof moosend.credential\n> = 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":";;;AAgBA,MAAa,uBAIT,OAAO,0BAA0B;CACnC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAlBuC,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,kDAeH;CACP,QAfwC,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,mDAWhB;AACV,CAAC"}
|
|
@@ -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}).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":"
|
|
1
|
+
{"version":3,"file":"create-custom-field.cjs","names":["z","action"],"sources":["../../src/actions/create-custom-field.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { moosend } from \"../app\";\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: AppAction<\n typeof MoosendCreateCustomFieldInput,\n typeof MoosendCreateCustomFieldOutput,\n typeof moosend.credential\n> = 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":";;;;AAMA,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,2BAITC,eAAAA,OAAO,+BAA+B;CACxC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { moosend } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/create-custom-field.d.ts
|
|
@@ -24,15 +26,7 @@ declare const MoosendCreateCustomFieldOutput: z.ZodObject<{
|
|
|
24
26
|
Error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
25
27
|
Context: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
26
28
|
}, z.core.$loose>;
|
|
27
|
-
declare const moosendCreateCustomField:
|
|
28
|
-
name: string;
|
|
29
|
-
mailing_list_id: string;
|
|
30
|
-
format?: "json" | "xml" | undefined;
|
|
31
|
-
options?: string | undefined;
|
|
32
|
-
is_hidden?: boolean | undefined;
|
|
33
|
-
is_required?: boolean | undefined;
|
|
34
|
-
custom_field_type?: "Text" | "Number" | "DateTime" | "SingleSelectDropdown" | "CheckBox" | undefined;
|
|
35
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
29
|
+
declare const moosendCreateCustomField: AppAction<typeof MoosendCreateCustomFieldInput, typeof MoosendCreateCustomFieldOutput, typeof moosend.credential>;
|
|
36
30
|
//#endregion
|
|
37
31
|
export { moosendCreateCustomField };
|
|
38
32
|
//# sourceMappingURL=create-custom-field.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-custom-field.d.cts","names":[],"sources":["../../src/actions/create-custom-field.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"create-custom-field.d.cts","names":[],"sources":["../../src/actions/create-custom-field.ts"],"mappings":";;;;;cAMa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;cAS7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;cAM9B,wBAAA,EAA0B,SAAA,QAC9B,6BAAA,SACA,8BAAA,SACA,OAAA,CAAQ,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { moosend } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/create-custom-field.d.ts
|
|
@@ -24,15 +26,7 @@ declare const MoosendCreateCustomFieldOutput: z.ZodObject<{
|
|
|
24
26
|
Error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
25
27
|
Context: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
26
28
|
}, z.core.$loose>;
|
|
27
|
-
declare const moosendCreateCustomField:
|
|
28
|
-
name: string;
|
|
29
|
-
mailing_list_id: string;
|
|
30
|
-
format?: "json" | "xml" | undefined;
|
|
31
|
-
options?: string | undefined;
|
|
32
|
-
is_hidden?: boolean | undefined;
|
|
33
|
-
is_required?: boolean | undefined;
|
|
34
|
-
custom_field_type?: "Text" | "Number" | "DateTime" | "SingleSelectDropdown" | "CheckBox" | undefined;
|
|
35
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
29
|
+
declare const moosendCreateCustomField: AppAction<typeof MoosendCreateCustomFieldInput, typeof MoosendCreateCustomFieldOutput, typeof moosend.credential>;
|
|
36
30
|
//#endregion
|
|
37
31
|
export { moosendCreateCustomField };
|
|
38
32
|
//# sourceMappingURL=create-custom-field.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-custom-field.d.mts","names":[],"sources":["../../src/actions/create-custom-field.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"create-custom-field.d.mts","names":[],"sources":["../../src/actions/create-custom-field.ts"],"mappings":";;;;;cAMa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;cAS7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;cAM9B,wBAAA,EAA0B,SAAA,QAC9B,6BAAA,SACA,8BAAA,SACA,OAAA,CAAQ,UAAA"}
|
|
@@ -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}).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":"
|
|
1
|
+
{"version":3,"file":"create-custom-field.mjs","names":[],"sources":["../../src/actions/create-custom-field.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { moosend } from \"../app\";\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: AppAction<\n typeof MoosendCreateCustomFieldInput,\n typeof MoosendCreateCustomFieldOutput,\n typeof moosend.credential\n> = 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":";;;AAqBA,MAAa,2BAIT,OAAO,+BAA+B;CACxC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAvB2C,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,CAeS;CACP,QAf4C,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,YAWO;AACV,CAAC"}
|
|
@@ -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}).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":"
|
|
1
|
+
{"version":3,"file":"create-mailing-list.cjs","names":["z","action"],"sources":["../../src/actions/create-mailing-list.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { moosend } from \"../app\";\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: AppAction<\n typeof MoosendCreateMailingListInput,\n typeof MoosendCreateMailingListOutput,\n typeof moosend.credential\n> = 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":";;;;AAMA,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,2BAITC,eAAAA,OAAO,+BAA+B;CACxC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { moosend } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/create-mailing-list.d.ts
|
|
@@ -11,11 +13,7 @@ declare const MoosendCreateMailingListOutput: z.ZodObject<{
|
|
|
11
13
|
Error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12
14
|
Context: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
15
|
}, z.core.$loose>;
|
|
14
|
-
declare const moosendCreateMailingList:
|
|
15
|
-
Name: string;
|
|
16
|
-
ConfirmationPage?: string | undefined;
|
|
17
|
-
RedirectAfterUnsubscribePage?: string | undefined;
|
|
18
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
16
|
+
declare const moosendCreateMailingList: AppAction<typeof MoosendCreateMailingListInput, typeof MoosendCreateMailingListOutput, typeof moosend.credential>;
|
|
19
17
|
//#endregion
|
|
20
18
|
export { moosendCreateMailingList };
|
|
21
19
|
//# sourceMappingURL=create-mailing-list.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-mailing-list.d.cts","names":[],"sources":["../../src/actions/create-mailing-list.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"create-mailing-list.d.cts","names":[],"sources":["../../src/actions/create-mailing-list.ts"],"mappings":";;;;;cAMa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;cAK7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;cAM9B,wBAAA,EAA0B,SAAA,QAC9B,6BAAA,SACA,8BAAA,SACA,OAAA,CAAQ,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { moosend } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/create-mailing-list.d.ts
|
|
@@ -11,11 +13,7 @@ declare const MoosendCreateMailingListOutput: z.ZodObject<{
|
|
|
11
13
|
Error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12
14
|
Context: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
15
|
}, z.core.$loose>;
|
|
14
|
-
declare const moosendCreateMailingList:
|
|
15
|
-
Name: string;
|
|
16
|
-
ConfirmationPage?: string | undefined;
|
|
17
|
-
RedirectAfterUnsubscribePage?: string | undefined;
|
|
18
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
16
|
+
declare const moosendCreateMailingList: AppAction<typeof MoosendCreateMailingListInput, typeof MoosendCreateMailingListOutput, typeof moosend.credential>;
|
|
19
17
|
//#endregion
|
|
20
18
|
export { moosendCreateMailingList };
|
|
21
19
|
//# sourceMappingURL=create-mailing-list.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-mailing-list.d.mts","names":[],"sources":["../../src/actions/create-mailing-list.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"create-mailing-list.d.mts","names":[],"sources":["../../src/actions/create-mailing-list.ts"],"mappings":";;;;;cAMa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;cAK7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;cAM9B,wBAAA,EAA0B,SAAA,QAC9B,6BAAA,SACA,8BAAA,SACA,OAAA,CAAQ,UAAA"}
|
|
@@ -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}).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":"
|
|
1
|
+
{"version":3,"file":"create-mailing-list.mjs","names":[],"sources":["../../src/actions/create-mailing-list.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { moosend } from \"../app\";\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: AppAction<\n typeof MoosendCreateMailingListInput,\n typeof MoosendCreateMailingListOutput,\n typeof moosend.credential\n> = 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":";;;AAiBA,MAAa,2BAIT,OAAO,+BAA+B;CACxC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAnB2C,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,2DAeH;CACP,QAf4C,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,8CAWhB;AACV,CAAC"}
|
|
@@ -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}).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":"
|
|
1
|
+
{"version":3,"file":"create-segment.cjs","names":["z","action"],"sources":["../../src/actions/create-segment.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { moosend } from \"../app\";\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: AppAction<\n typeof MoosendCreateSegmentInput,\n typeof MoosendCreateSegmentOutput,\n typeof moosend.credential\n> = 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":";;;;AAMA,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,uBAITC,eAAAA,OAAO,0BAA0B;CACnC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|