@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
|
@@ -9,7 +9,7 @@ const MoosendListAllSenders_SenderInfoSchema = z.object({
|
|
|
9
9
|
Status: z.number().int().describe("Status code of the sender (e.g., active, inactive).").nullable().optional(),
|
|
10
10
|
CreatedOn: z.string().describe("Timestamp when the sender was created, in /Date(...) format.").nullable().optional(),
|
|
11
11
|
IsDefault: z.boolean().describe("Indicates if this is the default sender for the account.").nullable().optional()
|
|
12
|
-
}).describe("Information about a sender in the account.");
|
|
12
|
+
}).passthrough().describe("Information about a sender in the account.");
|
|
13
13
|
const moosendListAllSenders = action("MOOSEND_LIST_ALL_SENDERS", {
|
|
14
14
|
slug: "moosend-list-all-senders",
|
|
15
15
|
name: "List all senders",
|
|
@@ -19,7 +19,7 @@ const moosendListAllSenders = action("MOOSEND_LIST_ALL_SENDERS", {
|
|
|
19
19
|
Code: z.number().int().describe("Response code; 0 indicates success.").nullable(),
|
|
20
20
|
Error: z.string().describe("Error message, if any; null on success.").nullable().optional(),
|
|
21
21
|
Context: z.array(MoosendListAllSenders_SenderInfoSchema).describe("List of sender objects containing sender details.").nullable().optional()
|
|
22
|
-
}).describe("Response schema for listing all senders.")
|
|
22
|
+
}).passthrough().describe("Response schema for listing all senders.")
|
|
23
23
|
});
|
|
24
24
|
//#endregion
|
|
25
25
|
export { moosendListAllSenders };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-all-senders.mjs","names":[],"sources":["../../src/actions/list-all-senders.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoosendListAllSendersInput = z.object({\n format: z.enum([\"json\", \"xml\"]).default(\"json\").describe(\"Response format. Use 'json' for JSON responses and 'xml' for XML responses.\").optional(),\n}).describe(\"Request schema for listing all senders in the account.\");\nconst MoosendListAllSenders_SenderInfoSchema = z.object({\n ID: z.string().describe(\"Unique identifier of the sender.\").nullable().optional(),\n Name: z.string().describe(\"Display name of the sender.\").nullable().optional(),\n Email: z.string().describe(\"Email address of the sender.\").nullable().optional(),\n Status: z.number().int().describe(\"Status code of the sender (e.g., active, inactive).\").nullable().optional(),\n CreatedOn: z.string().describe(\"Timestamp when the sender was created, in /Date(...) format.\").nullable().optional(),\n IsDefault: z.boolean().describe(\"Indicates if this is the default sender for the account.\").nullable().optional(),\n}).describe(\"Information about a sender in the account.\");\nexport const MoosendListAllSendersOutput = z.object({\n Code: z.number().int().describe(\"Response code; 0 indicates success.\").nullable(),\n Error: z.string().describe(\"Error message, if any; null on success.\").nullable().optional(),\n Context: z.array(MoosendListAllSenders_SenderInfoSchema).describe(\"List of sender objects containing sender details.\").nullable().optional(),\n}).describe(\"Response schema for listing all senders.\");\n\nexport const moosendListAllSenders = action(\"MOOSEND_LIST_ALL_SENDERS\", {\n slug: \"moosend-list-all-senders\",\n name: \"List all senders\",\n description: \"Tool to retrieve a list of all active senders in your account. Use when you need to view available sender email addresses for campaigns.\",\n input: MoosendListAllSendersInput,\n output: MoosendListAllSendersOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6B,EAAE,OAAO,EACjD,QAAQ,EAAE,KAAK,CAAC,QAAQ,KAAK,CAAC,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS,EACnJ,CAAC,CAAC,CAAC,SAAS,wDAAwD;AACpE,MAAM,yCAAyC,EAAE,OAAO;CACtD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7E,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/E,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7G,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnH,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAClH,CAAC,CAAC,CAAC,SAAS,4CAA4C;
|
|
1
|
+
{"version":3,"file":"list-all-senders.mjs","names":[],"sources":["../../src/actions/list-all-senders.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoosendListAllSendersInput = z.object({\n format: z.enum([\"json\", \"xml\"]).default(\"json\").describe(\"Response format. Use 'json' for JSON responses and 'xml' for XML responses.\").optional(),\n}).describe(\"Request schema for listing all senders in the account.\");\nconst MoosendListAllSenders_SenderInfoSchema = z.object({\n ID: z.string().describe(\"Unique identifier of the sender.\").nullable().optional(),\n Name: z.string().describe(\"Display name of the sender.\").nullable().optional(),\n Email: z.string().describe(\"Email address of the sender.\").nullable().optional(),\n Status: z.number().int().describe(\"Status code of the sender (e.g., active, inactive).\").nullable().optional(),\n CreatedOn: z.string().describe(\"Timestamp when the sender was created, in /Date(...) format.\").nullable().optional(),\n IsDefault: z.boolean().describe(\"Indicates if this is the default sender for the account.\").nullable().optional(),\n}).passthrough().describe(\"Information about a sender in the account.\");\nexport const MoosendListAllSendersOutput = z.object({\n Code: z.number().int().describe(\"Response code; 0 indicates success.\").nullable(),\n Error: z.string().describe(\"Error message, if any; null on success.\").nullable().optional(),\n Context: z.array(MoosendListAllSenders_SenderInfoSchema).describe(\"List of sender objects containing sender details.\").nullable().optional(),\n}).passthrough().describe(\"Response schema for listing all senders.\");\n\nexport const moosendListAllSenders = action(\"MOOSEND_LIST_ALL_SENDERS\", {\n slug: \"moosend-list-all-senders\",\n name: \"List all senders\",\n description: \"Tool to retrieve a list of all active senders in your account. Use when you need to view available sender email addresses for campaigns.\",\n input: MoosendListAllSendersInput,\n output: MoosendListAllSendersOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6B,EAAE,OAAO,EACjD,QAAQ,EAAE,KAAK,CAAC,QAAQ,KAAK,CAAC,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS,EACnJ,CAAC,CAAC,CAAC,SAAS,wDAAwD;AACpE,MAAM,yCAAyC,EAAE,OAAO;CACtD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7E,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/E,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7G,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnH,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAClH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4CAA4C;AAOtE,MAAa,wBAAwB,OAAO,4BAA4B;CACtE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAXyC,EAAE,OAAO;EAClD,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;EAChF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1F,SAAS,EAAE,MAAM,sCAAsC,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7I,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0CAOhB;AACV,CAAC"}
|
|
@@ -20,7 +20,7 @@ const MoosendListCampaignsWithPaging_PagingInfoSchema = zod.z.object({
|
|
|
20
20
|
SortExpression: zod.z.string().describe("Field used for sorting results.").nullable().optional(),
|
|
21
21
|
TotalPageCount: zod.z.number().int().describe("Total number of pages available.").nullable(),
|
|
22
22
|
SortIsAscending: zod.z.boolean().describe("Indicates if results are in ascending order based on sort expression.").nullable()
|
|
23
|
-
}).describe("Paging information model.");
|
|
23
|
+
}).passthrough().describe("Paging information model.");
|
|
24
24
|
const MoosendListCampaignsWithPaging_CampaignInfoSchema = zod.z.object({
|
|
25
25
|
ID: zod.z.string().describe("Unique ID of the campaign.").nullable(),
|
|
26
26
|
Name: zod.z.string().describe("Name of the campaign.").nullable(),
|
|
@@ -34,16 +34,16 @@ const MoosendListCampaignsWithPaging_CampaignInfoSchema = zod.z.object({
|
|
|
34
34
|
RecipientsCount: zod.z.number().int().describe("Total number of recipients.").nullable().optional(),
|
|
35
35
|
TotalLinkClicks: zod.z.number().int().describe("Total number of link clicks.").nullable().optional(),
|
|
36
36
|
TotalUnsubscribes: zod.z.number().int().describe("Total number of unsubscribes.").nullable().optional()
|
|
37
|
-
}).describe("Campaign information model.");
|
|
37
|
+
}).passthrough().describe("Campaign information model.");
|
|
38
38
|
const MoosendListCampaignsWithPaging_ContextInfoSchema = zod.z.object({
|
|
39
39
|
Paging: MoosendListCampaignsWithPaging_PagingInfoSchema.nullable(),
|
|
40
40
|
Campaigns: zod.z.array(MoosendListCampaignsWithPaging_CampaignInfoSchema).describe("List of campaigns on the current page.")
|
|
41
|
-
}).describe("Context information containing paging and campaigns.");
|
|
41
|
+
}).passthrough().describe("Context information containing paging and campaigns.");
|
|
42
42
|
const MoosendListCampaignsWithPagingOutput = zod.z.object({
|
|
43
43
|
Code: zod.z.number().int().describe("Response code; 0 indicates success.").nullable(),
|
|
44
44
|
Error: zod.z.string().describe("Error message, if any; null on success.").nullable().optional(),
|
|
45
45
|
Context: MoosendListCampaignsWithPaging_ContextInfoSchema.nullable().optional()
|
|
46
|
-
}).describe("Response schema for listing campaigns with pagination.");
|
|
46
|
+
}).passthrough().describe("Response schema for listing campaigns with pagination.");
|
|
47
47
|
const moosendListCampaignsWithPaging = require_action.action("MOOSEND_LIST_CAMPAIGNS_WITH_PAGING", {
|
|
48
48
|
slug: "moosend-list-campaigns-with-paging",
|
|
49
49
|
name: "List campaigns with paging",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-campaigns-with-paging.cjs","names":["z","action"],"sources":["../../src/actions/list-campaigns-with-paging.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoosendListCampaignsWithPagingInput = z.object({\n page: z.number().int().describe(\"The page number to display results for. Must be a positive integer.\"),\n sort_by: z.enum([\"Name\", \"Subject\", \"Status\", \"DeliveredOn\", \"CreatedOn\"]).describe(\"Sort field options for campaigns.\").optional(),\n page_size: z.number().int().describe(\"The maximum number of results per page. Must be a positive integer up to 100. If a value greater than 100 is specified, it will be treated as 100.\"),\n sort_method: z.enum([\"ASC\", \"DESC\"]).describe(\"Sort method options.\").optional(),\n}).describe(\"Request schema for listing campaigns with pagination.\");\nconst MoosendListCampaignsWithPaging_PagingInfoSchema = z.object({\n PageSize: z.number().int().describe(\"Number of items per page.\").nullable(),\n CurrentPage: z.number().int().describe(\"Current page number.\").nullable(),\n TotalResults: z.number().int().describe(\"Total number of results available.\").nullable(),\n SortExpression: z.string().describe(\"Field used for sorting results.\").nullable().optional(),\n TotalPageCount: z.number().int().describe(\"Total number of pages available.\").nullable(),\n SortIsAscending: z.boolean().describe(\"Indicates if results are in ascending order based on sort expression.\").nullable(),\n}).describe(\"Paging information model.\");\nconst MoosendListCampaignsWithPaging_CampaignInfoSchema = z.object({\n ID: z.string().describe(\"Unique ID of the campaign.\").nullable(),\n Name: z.string().describe(\"Name of the campaign.\").nullable(),\n Status: z.string().describe(\"Current status of the campaign.\").nullable().optional(),\n Subject: z.string().describe(\"Subject line of the campaign.\").nullable().optional(),\n CreatedOn: z.string().describe(\"Date and time when the campaign was created.\").nullable().optional(),\n TotalOpens: z.number().int().describe(\"Total number of opens.\").nullable().optional(),\n DeliveredOn: z.string().describe(\"Date and time when the campaign was delivered.\").nullable().optional(),\n ScheduledFor: z.string().describe(\"Date and time when the campaign is scheduled to be delivered.\").nullable().optional(),\n TotalBounces: z.number().int().describe(\"Total number of bounces.\").nullable().optional(),\n RecipientsCount: z.number().int().describe(\"Total number of recipients.\").nullable().optional(),\n TotalLinkClicks: z.number().int().describe(\"Total number of link clicks.\").nullable().optional(),\n TotalUnsubscribes: z.number().int().describe(\"Total number of unsubscribes.\").nullable().optional(),\n}).describe(\"Campaign information model.\");\nconst MoosendListCampaignsWithPaging_ContextInfoSchema = z.object({\n Paging: MoosendListCampaignsWithPaging_PagingInfoSchema.nullable(),\n Campaigns: z.array(MoosendListCampaignsWithPaging_CampaignInfoSchema).describe(\"List of campaigns on the current page.\"),\n}).describe(\"Context information containing paging and campaigns.\");\nexport const MoosendListCampaignsWithPagingOutput = z.object({\n Code: z.number().int().describe(\"Response code; 0 indicates success.\").nullable(),\n Error: z.string().describe(\"Error message, if any; null on success.\").nullable().optional(),\n Context: MoosendListCampaignsWithPaging_ContextInfoSchema.nullable().optional(),\n}).describe(\"Response schema for listing campaigns with pagination.\");\n\nexport const moosendListCampaignsWithPaging = action(\"MOOSEND_LIST_CAMPAIGNS_WITH_PAGING\", {\n slug: \"moosend-list-campaigns-with-paging\",\n name: \"List campaigns with paging\",\n description: \"Tool to retrieve a paginated list of all campaigns in your account with detailed information. Use when you need to fetch campaigns with specific page size and sorting options. Paging information is required as input.\",\n input: MoosendListCampaignsWithPagingInput,\n output: MoosendListCampaignsWithPagingOutput,\n});\n"],"mappings":";;;AAIA,MAAa,sCAAsCA,IAAAA,EAAE,OAAO;CAC1D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qEAAqE;CACrG,SAASA,IAAAA,EAAE,KAAK;EAAC;EAAQ;EAAW;EAAU;EAAe;CAAW,CAAC,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CAClI,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oJAAoJ;CACzL,aAAaA,IAAAA,EAAE,KAAK,CAAC,OAAO,MAAM,CAAC,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;AACjF,CAAC,CAAC,CAAC,SAAS,uDAAuD;AACnE,MAAM,kDAAkDA,IAAAA,EAAE,OAAO;CAC/D,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CAC1E,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;CACxE,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CACvF,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CACvF,iBAAiBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS;AAC1H,CAAC,CAAC,CAAC,SAAS,2BAA2B;
|
|
1
|
+
{"version":3,"file":"list-campaigns-with-paging.cjs","names":["z","action"],"sources":["../../src/actions/list-campaigns-with-paging.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoosendListCampaignsWithPagingInput = z.object({\n page: z.number().int().describe(\"The page number to display results for. Must be a positive integer.\"),\n sort_by: z.enum([\"Name\", \"Subject\", \"Status\", \"DeliveredOn\", \"CreatedOn\"]).describe(\"Sort field options for campaigns.\").optional(),\n page_size: z.number().int().describe(\"The maximum number of results per page. Must be a positive integer up to 100. If a value greater than 100 is specified, it will be treated as 100.\"),\n sort_method: z.enum([\"ASC\", \"DESC\"]).describe(\"Sort method options.\").optional(),\n}).describe(\"Request schema for listing campaigns with pagination.\");\nconst MoosendListCampaignsWithPaging_PagingInfoSchema = z.object({\n PageSize: z.number().int().describe(\"Number of items per page.\").nullable(),\n CurrentPage: z.number().int().describe(\"Current page number.\").nullable(),\n TotalResults: z.number().int().describe(\"Total number of results available.\").nullable(),\n SortExpression: z.string().describe(\"Field used for sorting results.\").nullable().optional(),\n TotalPageCount: z.number().int().describe(\"Total number of pages available.\").nullable(),\n SortIsAscending: z.boolean().describe(\"Indicates if results are in ascending order based on sort expression.\").nullable(),\n}).passthrough().describe(\"Paging information model.\");\nconst MoosendListCampaignsWithPaging_CampaignInfoSchema = z.object({\n ID: z.string().describe(\"Unique ID of the campaign.\").nullable(),\n Name: z.string().describe(\"Name of the campaign.\").nullable(),\n Status: z.string().describe(\"Current status of the campaign.\").nullable().optional(),\n Subject: z.string().describe(\"Subject line of the campaign.\").nullable().optional(),\n CreatedOn: z.string().describe(\"Date and time when the campaign was created.\").nullable().optional(),\n TotalOpens: z.number().int().describe(\"Total number of opens.\").nullable().optional(),\n DeliveredOn: z.string().describe(\"Date and time when the campaign was delivered.\").nullable().optional(),\n ScheduledFor: z.string().describe(\"Date and time when the campaign is scheduled to be delivered.\").nullable().optional(),\n TotalBounces: z.number().int().describe(\"Total number of bounces.\").nullable().optional(),\n RecipientsCount: z.number().int().describe(\"Total number of recipients.\").nullable().optional(),\n TotalLinkClicks: z.number().int().describe(\"Total number of link clicks.\").nullable().optional(),\n TotalUnsubscribes: z.number().int().describe(\"Total number of unsubscribes.\").nullable().optional(),\n}).passthrough().describe(\"Campaign information model.\");\nconst MoosendListCampaignsWithPaging_ContextInfoSchema = z.object({\n Paging: MoosendListCampaignsWithPaging_PagingInfoSchema.nullable(),\n Campaigns: z.array(MoosendListCampaignsWithPaging_CampaignInfoSchema).describe(\"List of campaigns on the current page.\"),\n}).passthrough().describe(\"Context information containing paging and campaigns.\");\nexport const MoosendListCampaignsWithPagingOutput = z.object({\n Code: z.number().int().describe(\"Response code; 0 indicates success.\").nullable(),\n Error: z.string().describe(\"Error message, if any; null on success.\").nullable().optional(),\n Context: MoosendListCampaignsWithPaging_ContextInfoSchema.nullable().optional(),\n}).passthrough().describe(\"Response schema for listing campaigns with pagination.\");\n\nexport const moosendListCampaignsWithPaging = action(\"MOOSEND_LIST_CAMPAIGNS_WITH_PAGING\", {\n slug: \"moosend-list-campaigns-with-paging\",\n name: \"List campaigns with paging\",\n description: \"Tool to retrieve a paginated list of all campaigns in your account with detailed information. Use when you need to fetch campaigns with specific page size and sorting options. Paging information is required as input.\",\n input: MoosendListCampaignsWithPagingInput,\n output: MoosendListCampaignsWithPagingOutput,\n});\n"],"mappings":";;;AAIA,MAAa,sCAAsCA,IAAAA,EAAE,OAAO;CAC1D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qEAAqE;CACrG,SAASA,IAAAA,EAAE,KAAK;EAAC;EAAQ;EAAW;EAAU;EAAe;CAAW,CAAC,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CAClI,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oJAAoJ;CACzL,aAAaA,IAAAA,EAAE,KAAK,CAAC,OAAO,MAAM,CAAC,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;AACjF,CAAC,CAAC,CAAC,SAAS,uDAAuD;AACnE,MAAM,kDAAkDA,IAAAA,EAAE,OAAO;CAC/D,UAAUA,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A,OAAO,sCAAsC;CACzF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -5,10 +5,10 @@ declare const MoosendListCampaignsWithPagingInput: z.ZodObject<{
|
|
|
5
5
|
page: z.ZodNumber;
|
|
6
6
|
sort_by: z.ZodOptional<z.ZodEnum<{
|
|
7
7
|
Name: "Name";
|
|
8
|
-
CreatedOn: "CreatedOn";
|
|
9
|
-
Status: "Status";
|
|
10
8
|
Subject: "Subject";
|
|
9
|
+
Status: "Status";
|
|
11
10
|
DeliveredOn: "DeliveredOn";
|
|
11
|
+
CreatedOn: "CreatedOn";
|
|
12
12
|
}>>;
|
|
13
13
|
page_size: z.ZodNumber;
|
|
14
14
|
sort_method: z.ZodOptional<z.ZodEnum<{
|
|
@@ -27,7 +27,7 @@ declare const MoosendListCampaignsWithPagingOutput: z.ZodObject<{
|
|
|
27
27
|
SortExpression: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
28
28
|
TotalPageCount: z.ZodNullable<z.ZodNumber>;
|
|
29
29
|
SortIsAscending: z.ZodNullable<z.ZodBoolean>;
|
|
30
|
-
}, z.core.$
|
|
30
|
+
}, z.core.$loose>>;
|
|
31
31
|
Campaigns: z.ZodArray<z.ZodObject<{
|
|
32
32
|
ID: z.ZodNullable<z.ZodString>;
|
|
33
33
|
Name: z.ZodNullable<z.ZodString>;
|
|
@@ -41,13 +41,13 @@ declare const MoosendListCampaignsWithPagingOutput: z.ZodObject<{
|
|
|
41
41
|
RecipientsCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
42
42
|
TotalLinkClicks: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
43
43
|
TotalUnsubscribes: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
44
|
-
}, z.core.$
|
|
45
|
-
}, z.core.$
|
|
46
|
-
}, z.core.$
|
|
44
|
+
}, z.core.$loose>>;
|
|
45
|
+
}, z.core.$loose>>>;
|
|
46
|
+
}, z.core.$loose>;
|
|
47
47
|
declare const moosendListCampaignsWithPaging: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
48
48
|
page: number;
|
|
49
49
|
page_size: number;
|
|
50
|
-
sort_by?: "Name" | "
|
|
50
|
+
sort_by?: "Name" | "Subject" | "Status" | "DeliveredOn" | "CreatedOn" | undefined;
|
|
51
51
|
sort_method?: "ASC" | "DESC" | undefined;
|
|
52
52
|
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
53
53
|
//#endregion
|
|
@@ -5,10 +5,10 @@ declare const MoosendListCampaignsWithPagingInput: z.ZodObject<{
|
|
|
5
5
|
page: z.ZodNumber;
|
|
6
6
|
sort_by: z.ZodOptional<z.ZodEnum<{
|
|
7
7
|
Name: "Name";
|
|
8
|
-
CreatedOn: "CreatedOn";
|
|
9
|
-
Status: "Status";
|
|
10
8
|
Subject: "Subject";
|
|
9
|
+
Status: "Status";
|
|
11
10
|
DeliveredOn: "DeliveredOn";
|
|
11
|
+
CreatedOn: "CreatedOn";
|
|
12
12
|
}>>;
|
|
13
13
|
page_size: z.ZodNumber;
|
|
14
14
|
sort_method: z.ZodOptional<z.ZodEnum<{
|
|
@@ -27,7 +27,7 @@ declare const MoosendListCampaignsWithPagingOutput: z.ZodObject<{
|
|
|
27
27
|
SortExpression: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
28
28
|
TotalPageCount: z.ZodNullable<z.ZodNumber>;
|
|
29
29
|
SortIsAscending: z.ZodNullable<z.ZodBoolean>;
|
|
30
|
-
}, z.core.$
|
|
30
|
+
}, z.core.$loose>>;
|
|
31
31
|
Campaigns: z.ZodArray<z.ZodObject<{
|
|
32
32
|
ID: z.ZodNullable<z.ZodString>;
|
|
33
33
|
Name: z.ZodNullable<z.ZodString>;
|
|
@@ -41,13 +41,13 @@ declare const MoosendListCampaignsWithPagingOutput: z.ZodObject<{
|
|
|
41
41
|
RecipientsCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
42
42
|
TotalLinkClicks: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
43
43
|
TotalUnsubscribes: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
44
|
-
}, z.core.$
|
|
45
|
-
}, z.core.$
|
|
46
|
-
}, z.core.$
|
|
44
|
+
}, z.core.$loose>>;
|
|
45
|
+
}, z.core.$loose>>>;
|
|
46
|
+
}, z.core.$loose>;
|
|
47
47
|
declare const moosendListCampaignsWithPaging: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
48
48
|
page: number;
|
|
49
49
|
page_size: number;
|
|
50
|
-
sort_by?: "Name" | "
|
|
50
|
+
sort_by?: "Name" | "Subject" | "Status" | "DeliveredOn" | "CreatedOn" | undefined;
|
|
51
51
|
sort_method?: "ASC" | "DESC" | undefined;
|
|
52
52
|
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
53
53
|
//#endregion
|
|
@@ -20,7 +20,7 @@ const MoosendListCampaignsWithPaging_PagingInfoSchema = z.object({
|
|
|
20
20
|
SortExpression: z.string().describe("Field used for sorting results.").nullable().optional(),
|
|
21
21
|
TotalPageCount: z.number().int().describe("Total number of pages available.").nullable(),
|
|
22
22
|
SortIsAscending: z.boolean().describe("Indicates if results are in ascending order based on sort expression.").nullable()
|
|
23
|
-
}).describe("Paging information model.");
|
|
23
|
+
}).passthrough().describe("Paging information model.");
|
|
24
24
|
const MoosendListCampaignsWithPaging_CampaignInfoSchema = z.object({
|
|
25
25
|
ID: z.string().describe("Unique ID of the campaign.").nullable(),
|
|
26
26
|
Name: z.string().describe("Name of the campaign.").nullable(),
|
|
@@ -34,11 +34,11 @@ const MoosendListCampaignsWithPaging_CampaignInfoSchema = z.object({
|
|
|
34
34
|
RecipientsCount: z.number().int().describe("Total number of recipients.").nullable().optional(),
|
|
35
35
|
TotalLinkClicks: z.number().int().describe("Total number of link clicks.").nullable().optional(),
|
|
36
36
|
TotalUnsubscribes: z.number().int().describe("Total number of unsubscribes.").nullable().optional()
|
|
37
|
-
}).describe("Campaign information model.");
|
|
37
|
+
}).passthrough().describe("Campaign information model.");
|
|
38
38
|
const MoosendListCampaignsWithPaging_ContextInfoSchema = z.object({
|
|
39
39
|
Paging: MoosendListCampaignsWithPaging_PagingInfoSchema.nullable(),
|
|
40
40
|
Campaigns: z.array(MoosendListCampaignsWithPaging_CampaignInfoSchema).describe("List of campaigns on the current page.")
|
|
41
|
-
}).describe("Context information containing paging and campaigns.");
|
|
41
|
+
}).passthrough().describe("Context information containing paging and campaigns.");
|
|
42
42
|
const moosendListCampaignsWithPaging = action("MOOSEND_LIST_CAMPAIGNS_WITH_PAGING", {
|
|
43
43
|
slug: "moosend-list-campaigns-with-paging",
|
|
44
44
|
name: "List campaigns with paging",
|
|
@@ -48,7 +48,7 @@ const moosendListCampaignsWithPaging = action("MOOSEND_LIST_CAMPAIGNS_WITH_PAGIN
|
|
|
48
48
|
Code: z.number().int().describe("Response code; 0 indicates success.").nullable(),
|
|
49
49
|
Error: z.string().describe("Error message, if any; null on success.").nullable().optional(),
|
|
50
50
|
Context: MoosendListCampaignsWithPaging_ContextInfoSchema.nullable().optional()
|
|
51
|
-
}).describe("Response schema for listing campaigns with pagination.")
|
|
51
|
+
}).passthrough().describe("Response schema for listing campaigns with pagination.")
|
|
52
52
|
});
|
|
53
53
|
//#endregion
|
|
54
54
|
export { moosendListCampaignsWithPaging };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-campaigns-with-paging.mjs","names":[],"sources":["../../src/actions/list-campaigns-with-paging.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoosendListCampaignsWithPagingInput = z.object({\n page: z.number().int().describe(\"The page number to display results for. Must be a positive integer.\"),\n sort_by: z.enum([\"Name\", \"Subject\", \"Status\", \"DeliveredOn\", \"CreatedOn\"]).describe(\"Sort field options for campaigns.\").optional(),\n page_size: z.number().int().describe(\"The maximum number of results per page. Must be a positive integer up to 100. If a value greater than 100 is specified, it will be treated as 100.\"),\n sort_method: z.enum([\"ASC\", \"DESC\"]).describe(\"Sort method options.\").optional(),\n}).describe(\"Request schema for listing campaigns with pagination.\");\nconst MoosendListCampaignsWithPaging_PagingInfoSchema = z.object({\n PageSize: z.number().int().describe(\"Number of items per page.\").nullable(),\n CurrentPage: z.number().int().describe(\"Current page number.\").nullable(),\n TotalResults: z.number().int().describe(\"Total number of results available.\").nullable(),\n SortExpression: z.string().describe(\"Field used for sorting results.\").nullable().optional(),\n TotalPageCount: z.number().int().describe(\"Total number of pages available.\").nullable(),\n SortIsAscending: z.boolean().describe(\"Indicates if results are in ascending order based on sort expression.\").nullable(),\n}).describe(\"Paging information model.\");\nconst MoosendListCampaignsWithPaging_CampaignInfoSchema = z.object({\n ID: z.string().describe(\"Unique ID of the campaign.\").nullable(),\n Name: z.string().describe(\"Name of the campaign.\").nullable(),\n Status: z.string().describe(\"Current status of the campaign.\").nullable().optional(),\n Subject: z.string().describe(\"Subject line of the campaign.\").nullable().optional(),\n CreatedOn: z.string().describe(\"Date and time when the campaign was created.\").nullable().optional(),\n TotalOpens: z.number().int().describe(\"Total number of opens.\").nullable().optional(),\n DeliveredOn: z.string().describe(\"Date and time when the campaign was delivered.\").nullable().optional(),\n ScheduledFor: z.string().describe(\"Date and time when the campaign is scheduled to be delivered.\").nullable().optional(),\n TotalBounces: z.number().int().describe(\"Total number of bounces.\").nullable().optional(),\n RecipientsCount: z.number().int().describe(\"Total number of recipients.\").nullable().optional(),\n TotalLinkClicks: z.number().int().describe(\"Total number of link clicks.\").nullable().optional(),\n TotalUnsubscribes: z.number().int().describe(\"Total number of unsubscribes.\").nullable().optional(),\n}).describe(\"Campaign information model.\");\nconst MoosendListCampaignsWithPaging_ContextInfoSchema = z.object({\n Paging: MoosendListCampaignsWithPaging_PagingInfoSchema.nullable(),\n Campaigns: z.array(MoosendListCampaignsWithPaging_CampaignInfoSchema).describe(\"List of campaigns on the current page.\"),\n}).describe(\"Context information containing paging and campaigns.\");\nexport const MoosendListCampaignsWithPagingOutput = z.object({\n Code: z.number().int().describe(\"Response code; 0 indicates success.\").nullable(),\n Error: z.string().describe(\"Error message, if any; null on success.\").nullable().optional(),\n Context: MoosendListCampaignsWithPaging_ContextInfoSchema.nullable().optional(),\n}).describe(\"Response schema for listing campaigns with pagination.\");\n\nexport const moosendListCampaignsWithPaging = action(\"MOOSEND_LIST_CAMPAIGNS_WITH_PAGING\", {\n slug: \"moosend-list-campaigns-with-paging\",\n name: \"List campaigns with paging\",\n description: \"Tool to retrieve a paginated list of all campaigns in your account with detailed information. Use when you need to fetch campaigns with specific page size and sorting options. Paging information is required as input.\",\n input: MoosendListCampaignsWithPagingInput,\n output: MoosendListCampaignsWithPagingOutput,\n});\n"],"mappings":";;;AAIA,MAAa,sCAAsC,EAAE,OAAO;CAC1D,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qEAAqE;CACrG,SAAS,EAAE,KAAK;EAAC;EAAQ;EAAW;EAAU;EAAe;CAAW,CAAC,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CAClI,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oJAAoJ;CACzL,aAAa,EAAE,KAAK,CAAC,OAAO,MAAM,CAAC,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;AACjF,CAAC,CAAC,CAAC,SAAS,uDAAuD;AACnE,MAAM,kDAAkD,EAAE,OAAO;CAC/D,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CAC1E,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;CACxE,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CACvF,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,gBAAgB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CACvF,iBAAiB,EAAE,QAAQ,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS;AAC1H,CAAC,CAAC,CAAC,SAAS,2BAA2B;
|
|
1
|
+
{"version":3,"file":"list-campaigns-with-paging.mjs","names":[],"sources":["../../src/actions/list-campaigns-with-paging.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoosendListCampaignsWithPagingInput = z.object({\n page: z.number().int().describe(\"The page number to display results for. Must be a positive integer.\"),\n sort_by: z.enum([\"Name\", \"Subject\", \"Status\", \"DeliveredOn\", \"CreatedOn\"]).describe(\"Sort field options for campaigns.\").optional(),\n page_size: z.number().int().describe(\"The maximum number of results per page. Must be a positive integer up to 100. If a value greater than 100 is specified, it will be treated as 100.\"),\n sort_method: z.enum([\"ASC\", \"DESC\"]).describe(\"Sort method options.\").optional(),\n}).describe(\"Request schema for listing campaigns with pagination.\");\nconst MoosendListCampaignsWithPaging_PagingInfoSchema = z.object({\n PageSize: z.number().int().describe(\"Number of items per page.\").nullable(),\n CurrentPage: z.number().int().describe(\"Current page number.\").nullable(),\n TotalResults: z.number().int().describe(\"Total number of results available.\").nullable(),\n SortExpression: z.string().describe(\"Field used for sorting results.\").nullable().optional(),\n TotalPageCount: z.number().int().describe(\"Total number of pages available.\").nullable(),\n SortIsAscending: z.boolean().describe(\"Indicates if results are in ascending order based on sort expression.\").nullable(),\n}).passthrough().describe(\"Paging information model.\");\nconst MoosendListCampaignsWithPaging_CampaignInfoSchema = z.object({\n ID: z.string().describe(\"Unique ID of the campaign.\").nullable(),\n Name: z.string().describe(\"Name of the campaign.\").nullable(),\n Status: z.string().describe(\"Current status of the campaign.\").nullable().optional(),\n Subject: z.string().describe(\"Subject line of the campaign.\").nullable().optional(),\n CreatedOn: z.string().describe(\"Date and time when the campaign was created.\").nullable().optional(),\n TotalOpens: z.number().int().describe(\"Total number of opens.\").nullable().optional(),\n DeliveredOn: z.string().describe(\"Date and time when the campaign was delivered.\").nullable().optional(),\n ScheduledFor: z.string().describe(\"Date and time when the campaign is scheduled to be delivered.\").nullable().optional(),\n TotalBounces: z.number().int().describe(\"Total number of bounces.\").nullable().optional(),\n RecipientsCount: z.number().int().describe(\"Total number of recipients.\").nullable().optional(),\n TotalLinkClicks: z.number().int().describe(\"Total number of link clicks.\").nullable().optional(),\n TotalUnsubscribes: z.number().int().describe(\"Total number of unsubscribes.\").nullable().optional(),\n}).passthrough().describe(\"Campaign information model.\");\nconst MoosendListCampaignsWithPaging_ContextInfoSchema = z.object({\n Paging: MoosendListCampaignsWithPaging_PagingInfoSchema.nullable(),\n Campaigns: z.array(MoosendListCampaignsWithPaging_CampaignInfoSchema).describe(\"List of campaigns on the current page.\"),\n}).passthrough().describe(\"Context information containing paging and campaigns.\");\nexport const MoosendListCampaignsWithPagingOutput = z.object({\n Code: z.number().int().describe(\"Response code; 0 indicates success.\").nullable(),\n Error: z.string().describe(\"Error message, if any; null on success.\").nullable().optional(),\n Context: MoosendListCampaignsWithPaging_ContextInfoSchema.nullable().optional(),\n}).passthrough().describe(\"Response schema for listing campaigns with pagination.\");\n\nexport const moosendListCampaignsWithPaging = action(\"MOOSEND_LIST_CAMPAIGNS_WITH_PAGING\", {\n slug: \"moosend-list-campaigns-with-paging\",\n name: \"List campaigns with paging\",\n description: \"Tool to retrieve a paginated list of all campaigns in your account with detailed information. Use when you need to fetch campaigns with specific page size and sorting options. Paging information is required as input.\",\n input: MoosendListCampaignsWithPagingInput,\n output: MoosendListCampaignsWithPagingOutput,\n});\n"],"mappings":";;;AAIA,MAAa,sCAAsC,E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AE,OAAO;EAC3D,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;EAChF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1F,SAAS,iDAAiD,SAAS,CAAC,CAAC,SAAS;CAChF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wDAOhB;AACV,CAAC"}
|
|
@@ -12,7 +12,7 @@ const MoosendListSegments_PagingModelSchema = zod.z.object({
|
|
|
12
12
|
SortExpression: zod.z.string().describe("Field used for sorting.").nullable().optional(),
|
|
13
13
|
TotalPageCount: zod.z.number().int().describe("Total number of pages available.").nullable().optional(),
|
|
14
14
|
SortIsAscending: zod.z.boolean().describe("True if results are sorted in ascending order.").nullable().optional()
|
|
15
|
-
}).describe("Paging information for segment list");
|
|
15
|
+
}).passthrough().describe("Paging information for segment list");
|
|
16
16
|
const MoosendListSegments_CriterionModelSchema = zod.z.object({
|
|
17
17
|
ID: zod.z.string().describe("Unique identifier for the criterion.").nullable().optional(),
|
|
18
18
|
Field: zod.z.number().int().describe("Field type identifier.").nullable().optional(),
|
|
@@ -24,7 +24,7 @@ const MoosendListSegments_CriterionModelSchema = zod.z.object({
|
|
|
24
24
|
Properties: zod.z.string().describe("Additional properties for the criterion.").nullable().optional(),
|
|
25
25
|
Subscriteria: zod.z.string().describe("Sub-criteria definition.").nullable().optional(),
|
|
26
26
|
CustomFieldID: zod.z.string().describe("ID of the custom field if applicable.").nullable().optional()
|
|
27
|
-
}).describe("Criterion (rule) for segment filtering");
|
|
27
|
+
}).passthrough().describe("Criterion (rule) for segment filtering");
|
|
28
28
|
const MoosendListSegments_SegmentModelSchema = zod.z.object({
|
|
29
29
|
ID: zod.z.string().describe("Unique identifier for the segment.").nullable().optional(),
|
|
30
30
|
Name: zod.z.string().describe("Name of the segment.").nullable().optional(),
|
|
@@ -37,16 +37,16 @@ const MoosendListSegments_SegmentModelSchema = zod.z.object({
|
|
|
37
37
|
UpdatedOn: zod.z.string().describe("Timestamp when the segment was last updated.").nullable().optional(),
|
|
38
38
|
FetchValue: zod.z.number().int().describe("Fetch value parameter.").nullable().optional(),
|
|
39
39
|
Description: zod.z.string().describe("Description of the segment.").nullable().optional()
|
|
40
|
-
}).describe("Segment information with criteria");
|
|
40
|
+
}).passthrough().describe("Segment information with criteria");
|
|
41
41
|
const MoosendListSegments_ContextModelSchema = zod.z.object({
|
|
42
42
|
Paging: MoosendListSegments_PagingModelSchema.nullable().optional(),
|
|
43
43
|
Segments: zod.z.array(MoosendListSegments_SegmentModelSchema).describe("List of segments for the mailing list.").nullable().optional()
|
|
44
|
-
}).describe("Context containing paging and segments list");
|
|
44
|
+
}).passthrough().describe("Context containing paging and segments list");
|
|
45
45
|
const MoosendListSegmentsOutput = zod.z.object({
|
|
46
46
|
Code: zod.z.number().int().describe("Response code; 0 indicates success.").nullable(),
|
|
47
47
|
Error: zod.z.string().describe("Error message if the request failed; null on success.").nullable().optional(),
|
|
48
48
|
Context: MoosendListSegments_ContextModelSchema.nullable().optional()
|
|
49
|
-
}).describe("Response schema for ListSegments");
|
|
49
|
+
}).passthrough().describe("Response schema for ListSegments");
|
|
50
50
|
const moosendListSegments = require_action.action("MOOSEND_LIST_SEGMENTS", {
|
|
51
51
|
slug: "moosend-list-segments",
|
|
52
52
|
name: "List Segments",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-segments.cjs","names":["z","action"],"sources":["../../src/actions/list-segments.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoosendListSegmentsInput = z.object({\n format: z.string().default(\"json\").describe(\"Response format. Only 'json' is supported.\").optional(),\n mailing_list_id: z.string().describe(\"The ID of the mailing list to retrieve segments for.\"),\n}).describe(\"Request schema for ListSegments\");\nconst MoosendListSegments_PagingModelSchema = z.object({\n PageSize: z.number().int().describe(\"Number of items per page.\").nullable().optional(),\n CurrentPage: z.number().int().describe(\"Current page number.\").nullable().optional(),\n TotalResults: z.number().int().describe(\"Total number of segments available.\").nullable().optional(),\n SortExpression: z.string().describe(\"Field used for sorting.\").nullable().optional(),\n TotalPageCount: z.number().int().describe(\"Total number of pages available.\").nullable().optional(),\n SortIsAscending: z.boolean().describe(\"True if results are sorted in ascending order.\").nullable().optional(),\n}).describe(\"Paging information for segment list\");\nconst MoosendListSegments_CriterionModelSchema = z.object({\n ID: z.string().describe(\"Unique identifier for the criterion.\").nullable().optional(),\n Field: z.number().int().describe(\"Field type identifier.\").nullable().optional(),\n Value: z.string().describe(\"Value to compare against.\").nullable().optional(),\n DateTo: z.string().describe(\"End date for date-based criteria.\").nullable().optional(),\n Comparer: z.number().int().describe(\"Comparison operator identifier.\").nullable().optional(),\n DateFrom: z.string().describe(\"Start date for date-based criteria.\").nullable().optional(),\n SegmentID: z.string().describe(\"ID of the segment this criterion belongs to.\").nullable().optional(),\n Properties: z.string().describe(\"Additional properties for the criterion.\").nullable().optional(),\n Subscriteria: z.string().describe(\"Sub-criteria definition.\").nullable().optional(),\n CustomFieldID: z.string().describe(\"ID of the custom field if applicable.\").nullable().optional(),\n}).describe(\"Criterion (rule) for segment filtering\");\nconst MoosendListSegments_SegmentModelSchema = z.object({\n ID: z.string().describe(\"Unique identifier for the segment.\").nullable().optional(),\n Name: z.string().describe(\"Name of the segment.\").nullable().optional(),\n Criteria: z.array(MoosendListSegments_CriterionModelSchema).describe(\"List of criteria (rules) that define this segment.\").nullable().optional(),\n CreatedBy: z.string().describe(\"User who created the segment.\").nullable().optional(),\n CreatedOn: z.string().describe(\"Timestamp when the segment was created.\").nullable().optional(),\n FetchType: z.number().int().describe(\"Fetch type identifier.\").nullable().optional(),\n MatchType: z.number().int().describe(\"How criteria match together: 0 for 'All criteria must match', 1 for 'Any criterion can match'.\").nullable().optional(),\n UpdatedBy: z.string().describe(\"User who last updated the segment.\").nullable().optional(),\n UpdatedOn: z.string().describe(\"Timestamp when the segment was last updated.\").nullable().optional(),\n FetchValue: z.number().int().describe(\"Fetch value parameter.\").nullable().optional(),\n Description: z.string().describe(\"Description of the segment.\").nullable().optional(),\n}).describe(\"Segment information with criteria\");\nconst MoosendListSegments_ContextModelSchema = z.object({\n Paging: MoosendListSegments_PagingModelSchema.nullable().optional(),\n Segments: z.array(MoosendListSegments_SegmentModelSchema).describe(\"List of segments for the mailing list.\").nullable().optional(),\n}).describe(\"Context containing paging and segments list\");\nexport const MoosendListSegmentsOutput = z.object({\n Code: z.number().int().describe(\"Response code; 0 indicates success.\").nullable(),\n Error: z.string().describe(\"Error message if the request failed; null on success.\").nullable().optional(),\n Context: MoosendListSegments_ContextModelSchema.nullable().optional(),\n}).describe(\"Response schema for ListSegments\");\n\nexport const moosendListSegments = action(\"MOOSEND_LIST_SEGMENTS\", {\n slug: \"moosend-list-segments\",\n name: \"List Segments\",\n description: \"Tool to get a list of all segments with their criteria for a specified mailing list. Use when you need to retrieve segment definitions for targeting specific subscriber groups.\",\n input: MoosendListSegmentsInput,\n output: MoosendListSegmentsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CACnG,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD;AAC7F,CAAC,CAAC,CAAC,SAAS,iCAAiC;AAC7C,MAAM,wCAAwCA,IAAAA,EAAE,OAAO;CACrD,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnF,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnG,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnF,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClG,iBAAiBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9G,CAAC,CAAC,CAAC,SAAS,qCAAqC;
|
|
1
|
+
{"version":3,"file":"list-segments.cjs","names":["z","action"],"sources":["../../src/actions/list-segments.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoosendListSegmentsInput = z.object({\n format: z.string().default(\"json\").describe(\"Response format. Only 'json' is supported.\").optional(),\n mailing_list_id: z.string().describe(\"The ID of the mailing list to retrieve segments for.\"),\n}).describe(\"Request schema for ListSegments\");\nconst MoosendListSegments_PagingModelSchema = z.object({\n PageSize: z.number().int().describe(\"Number of items per page.\").nullable().optional(),\n CurrentPage: z.number().int().describe(\"Current page number.\").nullable().optional(),\n TotalResults: z.number().int().describe(\"Total number of segments available.\").nullable().optional(),\n SortExpression: z.string().describe(\"Field used for sorting.\").nullable().optional(),\n TotalPageCount: z.number().int().describe(\"Total number of pages available.\").nullable().optional(),\n SortIsAscending: z.boolean().describe(\"True if results are sorted in ascending order.\").nullable().optional(),\n}).passthrough().describe(\"Paging information for segment list\");\nconst MoosendListSegments_CriterionModelSchema = z.object({\n ID: z.string().describe(\"Unique identifier for the criterion.\").nullable().optional(),\n Field: z.number().int().describe(\"Field type identifier.\").nullable().optional(),\n Value: z.string().describe(\"Value to compare against.\").nullable().optional(),\n DateTo: z.string().describe(\"End date for date-based criteria.\").nullable().optional(),\n Comparer: z.number().int().describe(\"Comparison operator identifier.\").nullable().optional(),\n DateFrom: z.string().describe(\"Start date for date-based criteria.\").nullable().optional(),\n SegmentID: z.string().describe(\"ID of the segment this criterion belongs to.\").nullable().optional(),\n Properties: z.string().describe(\"Additional properties for the criterion.\").nullable().optional(),\n Subscriteria: z.string().describe(\"Sub-criteria definition.\").nullable().optional(),\n CustomFieldID: z.string().describe(\"ID of the custom field if applicable.\").nullable().optional(),\n}).passthrough().describe(\"Criterion (rule) for segment filtering\");\nconst MoosendListSegments_SegmentModelSchema = z.object({\n ID: z.string().describe(\"Unique identifier for the segment.\").nullable().optional(),\n Name: z.string().describe(\"Name of the segment.\").nullable().optional(),\n Criteria: z.array(MoosendListSegments_CriterionModelSchema).describe(\"List of criteria (rules) that define this segment.\").nullable().optional(),\n CreatedBy: z.string().describe(\"User who created the segment.\").nullable().optional(),\n CreatedOn: z.string().describe(\"Timestamp when the segment was created.\").nullable().optional(),\n FetchType: z.number().int().describe(\"Fetch type identifier.\").nullable().optional(),\n MatchType: z.number().int().describe(\"How criteria match together: 0 for 'All criteria must match', 1 for 'Any criterion can match'.\").nullable().optional(),\n UpdatedBy: z.string().describe(\"User who last updated the segment.\").nullable().optional(),\n UpdatedOn: z.string().describe(\"Timestamp when the segment was last updated.\").nullable().optional(),\n FetchValue: z.number().int().describe(\"Fetch value parameter.\").nullable().optional(),\n Description: z.string().describe(\"Description of the segment.\").nullable().optional(),\n}).passthrough().describe(\"Segment information with criteria\");\nconst MoosendListSegments_ContextModelSchema = z.object({\n Paging: MoosendListSegments_PagingModelSchema.nullable().optional(),\n Segments: z.array(MoosendListSegments_SegmentModelSchema).describe(\"List of segments for the mailing list.\").nullable().optional(),\n}).passthrough().describe(\"Context containing paging and segments list\");\nexport const MoosendListSegmentsOutput = z.object({\n Code: z.number().int().describe(\"Response code; 0 indicates success.\").nullable(),\n Error: z.string().describe(\"Error message if the request failed; null on success.\").nullable().optional(),\n Context: MoosendListSegments_ContextModelSchema.nullable().optional(),\n}).passthrough().describe(\"Response schema for ListSegments\");\n\nexport const moosendListSegments = action(\"MOOSEND_LIST_SEGMENTS\", {\n slug: \"moosend-list-segments\",\n name: \"List Segments\",\n description: \"Tool to get a list of all segments with their criteria for a specified mailing list. Use when you need to retrieve segment definitions for targeting specific subscriber groups.\",\n input: MoosendListSegmentsInput,\n output: MoosendListSegmentsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CACnG,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD;AAC7F,CAAC,CAAC,CAAC,SAAS,iCAAiC;AAC7C,MAAM,wCAAwCA,IAAAA,EAAE,OAAO;CACrD,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnF,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnG,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnF,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClG,iBAAiBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS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AAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACnI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6CAA6C;AACvE,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CAChF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxG,SAAS,uCAAuC,SAAS,CAAC,CAAC,SAAS;AACtE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kCAAkC;AAE5D,MAAa,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -16,7 +16,7 @@ declare const MoosendListSegmentsOutput: z.ZodObject<{
|
|
|
16
16
|
SortExpression: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
17
|
TotalPageCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
18
18
|
SortIsAscending: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
19
|
-
}, z.core.$
|
|
19
|
+
}, z.core.$loose>>>;
|
|
20
20
|
Segments: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
21
21
|
ID: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
22
|
Name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -31,7 +31,7 @@ declare const MoosendListSegmentsOutput: z.ZodObject<{
|
|
|
31
31
|
Properties: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
32
32
|
Subscriteria: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
33
33
|
CustomFieldID: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
34
|
-
}, z.core.$
|
|
34
|
+
}, z.core.$loose>>>>;
|
|
35
35
|
CreatedBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
36
36
|
CreatedOn: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
37
37
|
FetchType: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
@@ -40,9 +40,9 @@ declare const MoosendListSegmentsOutput: z.ZodObject<{
|
|
|
40
40
|
UpdatedOn: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
41
41
|
FetchValue: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
42
42
|
Description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
43
|
-
}, z.core.$
|
|
44
|
-
}, z.core.$
|
|
45
|
-
}, z.core.$
|
|
43
|
+
}, z.core.$loose>>>>;
|
|
44
|
+
}, z.core.$loose>>>;
|
|
45
|
+
}, z.core.$loose>;
|
|
46
46
|
declare const moosendListSegments: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
47
47
|
mailing_list_id: string;
|
|
48
48
|
format?: string | undefined;
|
|
@@ -16,7 +16,7 @@ declare const MoosendListSegmentsOutput: z.ZodObject<{
|
|
|
16
16
|
SortExpression: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
17
|
TotalPageCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
18
18
|
SortIsAscending: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
19
|
-
}, z.core.$
|
|
19
|
+
}, z.core.$loose>>>;
|
|
20
20
|
Segments: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
21
21
|
ID: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
22
|
Name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -31,7 +31,7 @@ declare const MoosendListSegmentsOutput: z.ZodObject<{
|
|
|
31
31
|
Properties: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
32
32
|
Subscriteria: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
33
33
|
CustomFieldID: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
34
|
-
}, z.core.$
|
|
34
|
+
}, z.core.$loose>>>>;
|
|
35
35
|
CreatedBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
36
36
|
CreatedOn: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
37
37
|
FetchType: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
@@ -40,9 +40,9 @@ declare const MoosendListSegmentsOutput: z.ZodObject<{
|
|
|
40
40
|
UpdatedOn: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
41
41
|
FetchValue: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
42
42
|
Description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
43
|
-
}, z.core.$
|
|
44
|
-
}, z.core.$
|
|
45
|
-
}, z.core.$
|
|
43
|
+
}, z.core.$loose>>>>;
|
|
44
|
+
}, z.core.$loose>>>;
|
|
45
|
+
}, z.core.$loose>;
|
|
46
46
|
declare const moosendListSegments: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
47
47
|
mailing_list_id: string;
|
|
48
48
|
format?: string | undefined;
|
|
@@ -12,7 +12,7 @@ const MoosendListSegments_PagingModelSchema = z.object({
|
|
|
12
12
|
SortExpression: z.string().describe("Field used for sorting.").nullable().optional(),
|
|
13
13
|
TotalPageCount: z.number().int().describe("Total number of pages available.").nullable().optional(),
|
|
14
14
|
SortIsAscending: z.boolean().describe("True if results are sorted in ascending order.").nullable().optional()
|
|
15
|
-
}).describe("Paging information for segment list");
|
|
15
|
+
}).passthrough().describe("Paging information for segment list");
|
|
16
16
|
const MoosendListSegments_CriterionModelSchema = z.object({
|
|
17
17
|
ID: z.string().describe("Unique identifier for the criterion.").nullable().optional(),
|
|
18
18
|
Field: z.number().int().describe("Field type identifier.").nullable().optional(),
|
|
@@ -24,7 +24,7 @@ const MoosendListSegments_CriterionModelSchema = z.object({
|
|
|
24
24
|
Properties: z.string().describe("Additional properties for the criterion.").nullable().optional(),
|
|
25
25
|
Subscriteria: z.string().describe("Sub-criteria definition.").nullable().optional(),
|
|
26
26
|
CustomFieldID: z.string().describe("ID of the custom field if applicable.").nullable().optional()
|
|
27
|
-
}).describe("Criterion (rule) for segment filtering");
|
|
27
|
+
}).passthrough().describe("Criterion (rule) for segment filtering");
|
|
28
28
|
const MoosendListSegments_SegmentModelSchema = z.object({
|
|
29
29
|
ID: z.string().describe("Unique identifier for the segment.").nullable().optional(),
|
|
30
30
|
Name: z.string().describe("Name of the segment.").nullable().optional(),
|
|
@@ -37,11 +37,11 @@ const MoosendListSegments_SegmentModelSchema = z.object({
|
|
|
37
37
|
UpdatedOn: z.string().describe("Timestamp when the segment was last updated.").nullable().optional(),
|
|
38
38
|
FetchValue: z.number().int().describe("Fetch value parameter.").nullable().optional(),
|
|
39
39
|
Description: z.string().describe("Description of the segment.").nullable().optional()
|
|
40
|
-
}).describe("Segment information with criteria");
|
|
40
|
+
}).passthrough().describe("Segment information with criteria");
|
|
41
41
|
const MoosendListSegments_ContextModelSchema = z.object({
|
|
42
42
|
Paging: MoosendListSegments_PagingModelSchema.nullable().optional(),
|
|
43
43
|
Segments: z.array(MoosendListSegments_SegmentModelSchema).describe("List of segments for the mailing list.").nullable().optional()
|
|
44
|
-
}).describe("Context containing paging and segments list");
|
|
44
|
+
}).passthrough().describe("Context containing paging and segments list");
|
|
45
45
|
const moosendListSegments = action("MOOSEND_LIST_SEGMENTS", {
|
|
46
46
|
slug: "moosend-list-segments",
|
|
47
47
|
name: "List Segments",
|
|
@@ -51,7 +51,7 @@ const moosendListSegments = action("MOOSEND_LIST_SEGMENTS", {
|
|
|
51
51
|
Code: z.number().int().describe("Response code; 0 indicates success.").nullable(),
|
|
52
52
|
Error: z.string().describe("Error message if the request failed; null on success.").nullable().optional(),
|
|
53
53
|
Context: MoosendListSegments_ContextModelSchema.nullable().optional()
|
|
54
|
-
}).describe("Response schema for ListSegments")
|
|
54
|
+
}).passthrough().describe("Response schema for ListSegments")
|
|
55
55
|
});
|
|
56
56
|
//#endregion
|
|
57
57
|
export { moosendListSegments };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-segments.mjs","names":[],"sources":["../../src/actions/list-segments.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoosendListSegmentsInput = z.object({\n format: z.string().default(\"json\").describe(\"Response format. Only 'json' is supported.\").optional(),\n mailing_list_id: z.string().describe(\"The ID of the mailing list to retrieve segments for.\"),\n}).describe(\"Request schema for ListSegments\");\nconst MoosendListSegments_PagingModelSchema = z.object({\n PageSize: z.number().int().describe(\"Number of items per page.\").nullable().optional(),\n CurrentPage: z.number().int().describe(\"Current page number.\").nullable().optional(),\n TotalResults: z.number().int().describe(\"Total number of segments available.\").nullable().optional(),\n SortExpression: z.string().describe(\"Field used for sorting.\").nullable().optional(),\n TotalPageCount: z.number().int().describe(\"Total number of pages available.\").nullable().optional(),\n SortIsAscending: z.boolean().describe(\"True if results are sorted in ascending order.\").nullable().optional(),\n}).describe(\"Paging information for segment list\");\nconst MoosendListSegments_CriterionModelSchema = z.object({\n ID: z.string().describe(\"Unique identifier for the criterion.\").nullable().optional(),\n Field: z.number().int().describe(\"Field type identifier.\").nullable().optional(),\n Value: z.string().describe(\"Value to compare against.\").nullable().optional(),\n DateTo: z.string().describe(\"End date for date-based criteria.\").nullable().optional(),\n Comparer: z.number().int().describe(\"Comparison operator identifier.\").nullable().optional(),\n DateFrom: z.string().describe(\"Start date for date-based criteria.\").nullable().optional(),\n SegmentID: z.string().describe(\"ID of the segment this criterion belongs to.\").nullable().optional(),\n Properties: z.string().describe(\"Additional properties for the criterion.\").nullable().optional(),\n Subscriteria: z.string().describe(\"Sub-criteria definition.\").nullable().optional(),\n CustomFieldID: z.string().describe(\"ID of the custom field if applicable.\").nullable().optional(),\n}).describe(\"Criterion (rule) for segment filtering\");\nconst MoosendListSegments_SegmentModelSchema = z.object({\n ID: z.string().describe(\"Unique identifier for the segment.\").nullable().optional(),\n Name: z.string().describe(\"Name of the segment.\").nullable().optional(),\n Criteria: z.array(MoosendListSegments_CriterionModelSchema).describe(\"List of criteria (rules) that define this segment.\").nullable().optional(),\n CreatedBy: z.string().describe(\"User who created the segment.\").nullable().optional(),\n CreatedOn: z.string().describe(\"Timestamp when the segment was created.\").nullable().optional(),\n FetchType: z.number().int().describe(\"Fetch type identifier.\").nullable().optional(),\n MatchType: z.number().int().describe(\"How criteria match together: 0 for 'All criteria must match', 1 for 'Any criterion can match'.\").nullable().optional(),\n UpdatedBy: z.string().describe(\"User who last updated the segment.\").nullable().optional(),\n UpdatedOn: z.string().describe(\"Timestamp when the segment was last updated.\").nullable().optional(),\n FetchValue: z.number().int().describe(\"Fetch value parameter.\").nullable().optional(),\n Description: z.string().describe(\"Description of the segment.\").nullable().optional(),\n}).describe(\"Segment information with criteria\");\nconst MoosendListSegments_ContextModelSchema = z.object({\n Paging: MoosendListSegments_PagingModelSchema.nullable().optional(),\n Segments: z.array(MoosendListSegments_SegmentModelSchema).describe(\"List of segments for the mailing list.\").nullable().optional(),\n}).describe(\"Context containing paging and segments list\");\nexport const MoosendListSegmentsOutput = z.object({\n Code: z.number().int().describe(\"Response code; 0 indicates success.\").nullable(),\n Error: z.string().describe(\"Error message if the request failed; null on success.\").nullable().optional(),\n Context: MoosendListSegments_ContextModelSchema.nullable().optional(),\n}).describe(\"Response schema for ListSegments\");\n\nexport const moosendListSegments = action(\"MOOSEND_LIST_SEGMENTS\", {\n slug: \"moosend-list-segments\",\n name: \"List Segments\",\n description: \"Tool to get a list of all segments with their criteria for a specified mailing list. Use when you need to retrieve segment definitions for targeting specific subscriber groups.\",\n input: MoosendListSegmentsInput,\n output: MoosendListSegmentsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2B,EAAE,OAAO;CAC/C,QAAQ,EAAE,OAAO,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CACnG,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD;AAC7F,CAAC,CAAC,CAAC,SAAS,iCAAiC;AAC7C,MAAM,wCAAwC,EAAE,OAAO;CACrD,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnF,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnG,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnF,gBAAgB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClG,iBAAiB,EAAE,QAAQ,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9G,CAAC,CAAC,CAAC,SAAS,qCAAqC;
|
|
1
|
+
{"version":3,"file":"list-segments.mjs","names":[],"sources":["../../src/actions/list-segments.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoosendListSegmentsInput = z.object({\n format: z.string().default(\"json\").describe(\"Response format. Only 'json' is supported.\").optional(),\n mailing_list_id: z.string().describe(\"The ID of the mailing list to retrieve segments for.\"),\n}).describe(\"Request schema for ListSegments\");\nconst MoosendListSegments_PagingModelSchema = z.object({\n PageSize: z.number().int().describe(\"Number of items per page.\").nullable().optional(),\n CurrentPage: z.number().int().describe(\"Current page number.\").nullable().optional(),\n TotalResults: z.number().int().describe(\"Total number of segments available.\").nullable().optional(),\n SortExpression: z.string().describe(\"Field used for sorting.\").nullable().optional(),\n TotalPageCount: z.number().int().describe(\"Total number of pages available.\").nullable().optional(),\n SortIsAscending: z.boolean().describe(\"True if results are sorted in ascending order.\").nullable().optional(),\n}).passthrough().describe(\"Paging information for segment list\");\nconst MoosendListSegments_CriterionModelSchema = z.object({\n ID: z.string().describe(\"Unique identifier for the criterion.\").nullable().optional(),\n Field: z.number().int().describe(\"Field type identifier.\").nullable().optional(),\n Value: z.string().describe(\"Value to compare against.\").nullable().optional(),\n DateTo: z.string().describe(\"End date for date-based criteria.\").nullable().optional(),\n Comparer: z.number().int().describe(\"Comparison operator identifier.\").nullable().optional(),\n DateFrom: z.string().describe(\"Start date for date-based criteria.\").nullable().optional(),\n SegmentID: z.string().describe(\"ID of the segment this criterion belongs to.\").nullable().optional(),\n Properties: z.string().describe(\"Additional properties for the criterion.\").nullable().optional(),\n Subscriteria: z.string().describe(\"Sub-criteria definition.\").nullable().optional(),\n CustomFieldID: z.string().describe(\"ID of the custom field if applicable.\").nullable().optional(),\n}).passthrough().describe(\"Criterion (rule) for segment filtering\");\nconst MoosendListSegments_SegmentModelSchema = z.object({\n ID: z.string().describe(\"Unique identifier for the segment.\").nullable().optional(),\n Name: z.string().describe(\"Name of the segment.\").nullable().optional(),\n Criteria: z.array(MoosendListSegments_CriterionModelSchema).describe(\"List of criteria (rules) that define this segment.\").nullable().optional(),\n CreatedBy: z.string().describe(\"User who created the segment.\").nullable().optional(),\n CreatedOn: z.string().describe(\"Timestamp when the segment was created.\").nullable().optional(),\n FetchType: z.number().int().describe(\"Fetch type identifier.\").nullable().optional(),\n MatchType: z.number().int().describe(\"How criteria match together: 0 for 'All criteria must match', 1 for 'Any criterion can match'.\").nullable().optional(),\n UpdatedBy: z.string().describe(\"User who last updated the segment.\").nullable().optional(),\n UpdatedOn: z.string().describe(\"Timestamp when the segment was last updated.\").nullable().optional(),\n FetchValue: z.number().int().describe(\"Fetch value parameter.\").nullable().optional(),\n Description: z.string().describe(\"Description of the segment.\").nullable().optional(),\n}).passthrough().describe(\"Segment information with criteria\");\nconst MoosendListSegments_ContextModelSchema = z.object({\n Paging: MoosendListSegments_PagingModelSchema.nullable().optional(),\n Segments: z.array(MoosendListSegments_SegmentModelSchema).describe(\"List of segments for the mailing list.\").nullable().optional(),\n}).passthrough().describe(\"Context containing paging and segments list\");\nexport const MoosendListSegmentsOutput = z.object({\n Code: z.number().int().describe(\"Response code; 0 indicates success.\").nullable(),\n Error: z.string().describe(\"Error message if the request failed; null on success.\").nullable().optional(),\n Context: MoosendListSegments_ContextModelSchema.nullable().optional(),\n}).passthrough().describe(\"Response schema for ListSegments\");\n\nexport const moosendListSegments = action(\"MOOSEND_LIST_SEGMENTS\", {\n slug: \"moosend-list-segments\",\n name: \"List Segments\",\n description: \"Tool to get a list of all segments with their criteria for a specified mailing list. Use when you need to retrieve segment definitions for targeting specific subscriber groups.\",\n input: MoosendListSegmentsInput,\n output: MoosendListSegmentsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2B,EAAE,OAAO;CAC/C,QAAQ,EAAE,OAAO,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CACnG,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD;AAC7F,CAAC,CAAC,CAAC,SAAS,iCAAiC;AAC7C,MAAM,wCAAwC,EAAE,OAAO;CACrD,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnF,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnG,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS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AS,CAAC,CAAC,SAAS;CAClE,UAAU,EAAE,MAAM,sCAAsC,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACnI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6CAA6C;AAOvE,MAAa,sBAAsB,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAXuC,EAAE,OAAO;EAChD,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;EAChF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxG,SAAS,uCAAuC,SAAS,CAAC,CAAC,SAAS;CACtE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kCAOhB;AACV,CAAC"}
|
|
@@ -10,7 +10,7 @@ const MoosendRemoveMultipleSubscribersOutput = 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.record(zod.z.string(), zod.z.unknown()).describe("Response context containing details about the removal operation.").nullable().optional()
|
|
13
|
-
}).describe("Response schema for RemoveMultipleSubscribers action.");
|
|
13
|
+
}).passthrough().describe("Response schema for RemoveMultipleSubscribers action.");
|
|
14
14
|
const moosendRemoveMultipleSubscribers = require_action.action("MOOSEND_REMOVE_MULTIPLE_SUBSCRIBERS", {
|
|
15
15
|
slug: "moosend-remove-multiple-subscribers",
|
|
16
16
|
name: "Remove Multiple Subscribers",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"remove-multiple-subscribers.cjs","names":["z","action"],"sources":["../../src/actions/remove-multiple-subscribers.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoosendRemoveMultipleSubscribersInput = z.object({\n Emails: z.string().describe(\"Comma-separated string of email addresses to remove from the mailing list. Invalid email addresses will be ignored.\"),\n format: z.string().default(\"json\").describe(\"Response format. Only 'json' is supported.\").optional(),\n mailing_list_id: z.string().describe(\"The ID of the mailing list to remove the subscribers from.\"),\n}).describe(\"Request schema for removing multiple subscribers from a mailing list.\");\nexport const MoosendRemoveMultipleSubscribersOutput = 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(\"Response context containing details about the removal operation.\").nullable().optional(),\n}).describe(\"Response schema for RemoveMultipleSubscribers action.\");\n\nexport const moosendRemoveMultipleSubscribers = action(\"MOOSEND_REMOVE_MULTIPLE_SUBSCRIBERS\", {\n slug: \"moosend-remove-multiple-subscribers\",\n name: \"Remove Multiple Subscribers\",\n description: \"Tool to permanently remove multiple subscribers from a mailing list. Use when you need to delete multiple subscribers permanently without adding them to the suppression list. Invalid email addresses are automatically ignored.\",\n input: MoosendRemoveMultipleSubscribersInput,\n output: MoosendRemoveMultipleSubscribersOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wCAAwCA,IAAAA,EAAE,OAAO;CAC5D,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qHAAqH;CACjJ,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CACnG,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D;AACnG,CAAC,CAAC,CAAC,SAAS,uEAAuE;AACnF,MAAa,yCAAyCA,IAAAA,EAAE,OAAO;CAC7D,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,kEAAkE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9I,CAAC,CAAC,CAAC,SAAS,uDAAuD;
|
|
1
|
+
{"version":3,"file":"remove-multiple-subscribers.cjs","names":["z","action"],"sources":["../../src/actions/remove-multiple-subscribers.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoosendRemoveMultipleSubscribersInput = z.object({\n Emails: z.string().describe(\"Comma-separated string of email addresses to remove from the mailing list. Invalid email addresses will be ignored.\"),\n format: z.string().default(\"json\").describe(\"Response format. Only 'json' is supported.\").optional(),\n mailing_list_id: z.string().describe(\"The ID of the mailing list to remove the subscribers from.\"),\n}).describe(\"Request schema for removing multiple subscribers from a mailing list.\");\nexport const MoosendRemoveMultipleSubscribersOutput = 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(\"Response context containing details about the removal operation.\").nullable().optional(),\n}).passthrough().describe(\"Response schema for RemoveMultipleSubscribers action.\");\n\nexport const moosendRemoveMultipleSubscribers = action(\"MOOSEND_REMOVE_MULTIPLE_SUBSCRIBERS\", {\n slug: \"moosend-remove-multiple-subscribers\",\n name: \"Remove Multiple Subscribers\",\n description: \"Tool to permanently remove multiple subscribers from a mailing list. Use when you need to delete multiple subscribers permanently without adding them to the suppression list. Invalid email addresses are automatically ignored.\",\n input: MoosendRemoveMultipleSubscribersInput,\n output: MoosendRemoveMultipleSubscribersOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wCAAwCA,IAAAA,EAAE,OAAO;CAC5D,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qHAAqH;CACjJ,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CACnG,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D;AACnG,CAAC,CAAC,CAAC,SAAS,uEAAuE;AACnF,MAAa,yCAAyCA,IAAAA,EAAE,OAAO;CAC7D,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,kEAAkE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9I,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uDAAuD;AAEjF,MAAa,mCAAmCC,eAAAA,OAAO,uCAAuC;CAC5F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -10,7 +10,7 @@ declare const MoosendRemoveMultipleSubscribersOutput: 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.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
13
|
-
}, z.core.$
|
|
13
|
+
}, z.core.$loose>;
|
|
14
14
|
declare const moosendRemoveMultipleSubscribers: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
15
15
|
Emails: string;
|
|
16
16
|
mailing_list_id: string;
|
|
@@ -10,7 +10,7 @@ declare const MoosendRemoveMultipleSubscribersOutput: 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.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
13
|
-
}, z.core.$
|
|
13
|
+
}, z.core.$loose>;
|
|
14
14
|
declare const moosendRemoveMultipleSubscribers: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
15
15
|
Emails: string;
|
|
16
16
|
mailing_list_id: string;
|
|
@@ -13,7 +13,7 @@ const moosendRemoveMultipleSubscribers = action("MOOSEND_REMOVE_MULTIPLE_SUBSCRI
|
|
|
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.record(z.string(), z.unknown()).describe("Response context containing details about the removal operation.").nullable().optional()
|
|
16
|
-
}).describe("Response schema for RemoveMultipleSubscribers action.")
|
|
16
|
+
}).passthrough().describe("Response schema for RemoveMultipleSubscribers action.")
|
|
17
17
|
});
|
|
18
18
|
//#endregion
|
|
19
19
|
export { moosendRemoveMultipleSubscribers };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"remove-multiple-subscribers.mjs","names":[],"sources":["../../src/actions/remove-multiple-subscribers.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoosendRemoveMultipleSubscribersInput = z.object({\n Emails: z.string().describe(\"Comma-separated string of email addresses to remove from the mailing list. Invalid email addresses will be ignored.\"),\n format: z.string().default(\"json\").describe(\"Response format. Only 'json' is supported.\").optional(),\n mailing_list_id: z.string().describe(\"The ID of the mailing list to remove the subscribers from.\"),\n}).describe(\"Request schema for removing multiple subscribers from a mailing list.\");\nexport const MoosendRemoveMultipleSubscribersOutput = 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(\"Response context containing details about the removal operation.\").nullable().optional(),\n}).describe(\"Response schema for RemoveMultipleSubscribers action.\");\n\nexport const moosendRemoveMultipleSubscribers = action(\"MOOSEND_REMOVE_MULTIPLE_SUBSCRIBERS\", {\n slug: \"moosend-remove-multiple-subscribers\",\n name: \"Remove Multiple Subscribers\",\n description: \"Tool to permanently remove multiple subscribers from a mailing list. Use when you need to delete multiple subscribers permanently without adding them to the suppression list. Invalid email addresses are automatically ignored.\",\n input: MoosendRemoveMultipleSubscribersInput,\n output: MoosendRemoveMultipleSubscribersOutput,\n});\n"],"mappings":";;AAeA,MAAa,mCAAmC,OAAO,uCAAuC;CAC5F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAfmD,EAAE,OAAO;EAC5D,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,qHAAqH;EACjJ,QAAQ,EAAE,OAAO,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;EACnG,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D;CACnG,CAAC,CAAC,CAAC,SAAS,uEAWH;CACP,QAXoD,EAAE,OAAO;EAC7D,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,kEAAkE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9I,CAAC,CAAC,CAAC,SAAS,
|
|
1
|
+
{"version":3,"file":"remove-multiple-subscribers.mjs","names":[],"sources":["../../src/actions/remove-multiple-subscribers.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoosendRemoveMultipleSubscribersInput = z.object({\n Emails: z.string().describe(\"Comma-separated string of email addresses to remove from the mailing list. Invalid email addresses will be ignored.\"),\n format: z.string().default(\"json\").describe(\"Response format. Only 'json' is supported.\").optional(),\n mailing_list_id: z.string().describe(\"The ID of the mailing list to remove the subscribers from.\"),\n}).describe(\"Request schema for removing multiple subscribers from a mailing list.\");\nexport const MoosendRemoveMultipleSubscribersOutput = 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(\"Response context containing details about the removal operation.\").nullable().optional(),\n}).passthrough().describe(\"Response schema for RemoveMultipleSubscribers action.\");\n\nexport const moosendRemoveMultipleSubscribers = action(\"MOOSEND_REMOVE_MULTIPLE_SUBSCRIBERS\", {\n slug: \"moosend-remove-multiple-subscribers\",\n name: \"Remove Multiple Subscribers\",\n description: \"Tool to permanently remove multiple subscribers from a mailing list. Use when you need to delete multiple subscribers permanently without adding them to the suppression list. Invalid email addresses are automatically ignored.\",\n input: MoosendRemoveMultipleSubscribersInput,\n output: MoosendRemoveMultipleSubscribersOutput,\n});\n"],"mappings":";;AAeA,MAAa,mCAAmC,OAAO,uCAAuC;CAC5F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAfmD,EAAE,OAAO;EAC5D,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,qHAAqH;EACjJ,QAAQ,EAAE,OAAO,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;EACnG,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D;CACnG,CAAC,CAAC,CAAC,SAAS,uEAWH;CACP,QAXoD,EAAE,OAAO;EAC7D,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,kEAAkE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9I,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uDAOhB;AACV,CAAC"}
|
|
@@ -11,7 +11,7 @@ const MoosendScheduleCampaignOutput = zod.z.object({
|
|
|
11
11
|
Code: zod.z.number().int().describe("Response code, 0 indicates success.").nullable().optional(),
|
|
12
12
|
Error: zod.z.string().describe("Error message returned by the API, null if successful.").nullable().optional(),
|
|
13
13
|
Context: zod.z.string().describe("Additional context, always null on success.").nullable().optional()
|
|
14
|
-
}).describe("Response model for ScheduleCampaign action.");
|
|
14
|
+
}).passthrough().describe("Response model for ScheduleCampaign action.");
|
|
15
15
|
const moosendScheduleCampaign = require_action.action("MOOSEND_SCHEDULE_CAMPAIGN", {
|
|
16
16
|
slug: "moosend-schedule-campaign",
|
|
17
17
|
name: "Schedule Campaign",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schedule-campaign.cjs","names":["z","action"],"sources":["../../src/actions/schedule-campaign.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoosendScheduleCampaignInput = z.object({\n format: z.string().default(\"json\").describe(\"Response format. Always 'json'.\").optional(),\n TimeZone: z.string().describe(\"Time zone for the scheduled date and time in IANA format (e.g., 'Europe/London'). Defaults to UTC if omitted.\").optional(),\n campaign_id: z.string().describe(\"The ID of the campaign to schedule.\"),\n ScheduledDateTime: z.string().describe(\"Scheduled date and time for delivery in 'yyyy-MM-dd HH:mm:ss' format (e.g., '2026-12-31 10:00:00').\"),\n}).describe(\"Request model for scheduling a campaign delivery in Moosend.\");\nexport const MoosendScheduleCampaignOutput = z.object({\n Code: z.number().int().describe(\"Response code, 0 indicates success.\").nullable().optional(),\n Error: z.string().describe(\"Error message returned by the API, null if successful.\").nullable().optional(),\n Context: z.string().describe(\"Additional context, always null on success.\").nullable().optional(),\n}).describe(\"Response model for ScheduleCampaign action.\");\n\nexport const moosendScheduleCampaign = action(\"MOOSEND_SCHEDULE_CAMPAIGN\", {\n slug: \"moosend-schedule-campaign\",\n name: \"Schedule Campaign\",\n description: \"Tool to schedule a campaign. Use when you want to set a specific date and time for campaign delivery after confirming its ID.\",\n input: MoosendScheduleCampaignInput,\n output: MoosendScheduleCampaignOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CACxF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+GAA+G,CAAC,CAAC,SAAS;CACxJ,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC;CACtE,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qGAAqG;AAC9I,CAAC,CAAC,CAAC,SAAS,8DAA8D;AAC1E,MAAa,gCAAgCA,IAAAA,EAAE,OAAO;CACpD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzG,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAClG,CAAC,CAAC,CAAC,SAAS,6CAA6C;
|
|
1
|
+
{"version":3,"file":"schedule-campaign.cjs","names":["z","action"],"sources":["../../src/actions/schedule-campaign.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoosendScheduleCampaignInput = z.object({\n format: z.string().default(\"json\").describe(\"Response format. Always 'json'.\").optional(),\n TimeZone: z.string().describe(\"Time zone for the scheduled date and time in IANA format (e.g., 'Europe/London'). Defaults to UTC if omitted.\").optional(),\n campaign_id: z.string().describe(\"The ID of the campaign to schedule.\"),\n ScheduledDateTime: z.string().describe(\"Scheduled date and time for delivery in 'yyyy-MM-dd HH:mm:ss' format (e.g., '2026-12-31 10:00:00').\"),\n}).describe(\"Request model for scheduling a campaign delivery in Moosend.\");\nexport const MoosendScheduleCampaignOutput = z.object({\n Code: z.number().int().describe(\"Response code, 0 indicates success.\").nullable().optional(),\n Error: z.string().describe(\"Error message returned by the API, null if successful.\").nullable().optional(),\n Context: z.string().describe(\"Additional context, always null on success.\").nullable().optional(),\n}).passthrough().describe(\"Response model for ScheduleCampaign action.\");\n\nexport const moosendScheduleCampaign = action(\"MOOSEND_SCHEDULE_CAMPAIGN\", {\n slug: \"moosend-schedule-campaign\",\n name: \"Schedule Campaign\",\n description: \"Tool to schedule a campaign. Use when you want to set a specific date and time for campaign delivery after confirming its ID.\",\n input: MoosendScheduleCampaignInput,\n output: MoosendScheduleCampaignOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CACxF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+GAA+G,CAAC,CAAC,SAAS;CACxJ,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC;CACtE,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qGAAqG;AAC9I,CAAC,CAAC,CAAC,SAAS,8DAA8D;AAC1E,MAAa,gCAAgCA,IAAAA,EAAE,OAAO;CACpD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzG,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAClG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6CAA6C;AAEvE,MAAa,0BAA0BC,eAAAA,OAAO,6BAA6B;CACzE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -11,7 +11,7 @@ declare const MoosendScheduleCampaignOutput: z.ZodObject<{
|
|
|
11
11
|
Code: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
12
12
|
Error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
13
|
Context: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
|
-
}, z.core.$
|
|
14
|
+
}, z.core.$loose>;
|
|
15
15
|
declare const moosendScheduleCampaign: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
16
16
|
campaign_id: string;
|
|
17
17
|
ScheduledDateTime: string;
|
|
@@ -11,7 +11,7 @@ declare const MoosendScheduleCampaignOutput: z.ZodObject<{
|
|
|
11
11
|
Code: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
12
12
|
Error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
13
|
Context: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
|
-
}, z.core.$
|
|
14
|
+
}, z.core.$loose>;
|
|
15
15
|
declare const moosendScheduleCampaign: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
16
16
|
campaign_id: string;
|
|
17
17
|
ScheduledDateTime: string;
|