@keystrokehq/moosend 0.1.0 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/action.cjs.map +1 -1
- package/dist/action.mjs.map +1 -1
- package/dist/actions/add-segment-criteria.cjs +1 -1
- package/dist/actions/add-segment-criteria.cjs.map +1 -1
- package/dist/actions/add-segment-criteria.d.cts +25 -3
- package/dist/actions/add-segment-criteria.d.cts.map +1 -1
- package/dist/actions/add-segment-criteria.d.mts +25 -3
- package/dist/actions/add-segment-criteria.d.mts.map +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 +25 -3
- package/dist/actions/add-subscriber.d.cts.map +1 -1
- package/dist/actions/add-subscriber.d.mts +25 -3
- package/dist/actions/add-subscriber.d.mts.map +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 +16 -3
- package/dist/actions/clone-campaign.d.cts.map +1 -1
- package/dist/actions/clone-campaign.d.mts +16 -3
- package/dist/actions/clone-campaign.d.mts.map +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 +32 -3
- package/dist/actions/create-custom-field.d.cts.map +1 -1
- package/dist/actions/create-custom-field.d.mts +32 -3
- package/dist/actions/create-custom-field.d.mts.map +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 +15 -3
- package/dist/actions/create-mailing-list.d.cts.map +1 -1
- package/dist/actions/create-mailing-list.d.mts +15 -3
- package/dist/actions/create-mailing-list.d.mts.map +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 +1 -1
- package/dist/actions/create-segment.cjs.map +1 -1
- package/dist/actions/create-segment.d.cts +41 -3
- package/dist/actions/create-segment.d.cts.map +1 -1
- package/dist/actions/create-segment.d.mts +41 -3
- package/dist/actions/create-segment.d.mts.map +1 -1
- package/dist/actions/create-segment.mjs +1 -1
- package/dist/actions/create-segment.mjs.map +1 -1
- package/dist/actions/delete-campaign.cjs.map +1 -1
- package/dist/actions/delete-campaign.d.cts +16 -3
- package/dist/actions/delete-campaign.d.cts.map +1 -1
- package/dist/actions/delete-campaign.d.mts +16 -3
- package/dist/actions/delete-campaign.d.mts.map +1 -1
- package/dist/actions/delete-campaign.mjs.map +1 -1
- package/dist/actions/delete-custom-field.cjs.map +1 -1
- package/dist/actions/delete-custom-field.d.cts +18 -3
- package/dist/actions/delete-custom-field.d.cts.map +1 -1
- package/dist/actions/delete-custom-field.d.mts +18 -3
- package/dist/actions/delete-custom-field.d.mts.map +1 -1
- package/dist/actions/delete-custom-field.mjs.map +1 -1
- package/dist/actions/delete-mailing-list.cjs.map +1 -1
- package/dist/actions/delete-mailing-list.d.cts +13 -3
- package/dist/actions/delete-mailing-list.d.cts.map +1 -1
- package/dist/actions/delete-mailing-list.d.mts +13 -3
- package/dist/actions/delete-mailing-list.d.mts.map +1 -1
- package/dist/actions/delete-mailing-list.mjs.map +1 -1
- package/dist/actions/get-all-campaigns.cjs +1 -1
- package/dist/actions/get-all-campaigns.cjs.map +1 -1
- package/dist/actions/get-all-campaigns.d.cts +13 -3
- package/dist/actions/get-all-campaigns.d.cts.map +1 -1
- package/dist/actions/get-all-campaigns.d.mts +13 -3
- package/dist/actions/get-all-campaigns.d.mts.map +1 -1
- package/dist/actions/get-all-campaigns.mjs +1 -1
- package/dist/actions/get-all-campaigns.mjs.map +1 -1
- package/dist/actions/get-all-subscribers.cjs +13 -13
- package/dist/actions/get-all-subscribers.cjs.map +1 -1
- package/dist/actions/get-all-subscribers.d.cts +53 -3
- package/dist/actions/get-all-subscribers.d.cts.map +1 -1
- package/dist/actions/get-all-subscribers.d.mts +53 -3
- package/dist/actions/get-all-subscribers.d.mts.map +1 -1
- package/dist/actions/get-all-subscribers.mjs +13 -13
- 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 +11 -3
- package/dist/actions/get-campaign-details.d.cts.map +1 -1
- package/dist/actions/get-campaign-details.d.mts +11 -3
- package/dist/actions/get-campaign-details.d.mts.map +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 +11 -3
- package/dist/actions/get-campaign-stats-by-location.d.cts.map +1 -1
- package/dist/actions/get-campaign-stats-by-location.d.mts +11 -3
- package/dist/actions/get-campaign-stats-by-location.d.mts.map +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 +13 -13
- package/dist/actions/get-mailing-list-details.cjs.map +1 -1
- package/dist/actions/get-mailing-list-details.d.cts +41 -3
- package/dist/actions/get-mailing-list-details.d.cts.map +1 -1
- package/dist/actions/get-mailing-list-details.d.mts +41 -3
- package/dist/actions/get-mailing-list-details.d.mts.map +1 -1
- package/dist/actions/get-mailing-list-details.mjs +13 -13
- package/dist/actions/get-mailing-list-details.mjs.map +1 -1
- package/dist/actions/get-subscriber-by-email.cjs +8 -8
- package/dist/actions/get-subscriber-by-email.cjs.map +1 -1
- package/dist/actions/get-subscriber-by-email.d.cts +33 -3
- package/dist/actions/get-subscriber-by-email.d.cts.map +1 -1
- package/dist/actions/get-subscriber-by-email.d.mts +33 -3
- package/dist/actions/get-subscriber-by-email.d.mts.map +1 -1
- package/dist/actions/get-subscriber-by-email.mjs +8 -8
- package/dist/actions/get-subscriber-by-email.mjs.map +1 -1
- package/dist/actions/list-all-mailing-lists.cjs +18 -18
- package/dist/actions/list-all-mailing-lists.cjs.map +1 -1
- package/dist/actions/list-all-mailing-lists.d.cts +61 -3
- package/dist/actions/list-all-mailing-lists.d.cts.map +1 -1
- package/dist/actions/list-all-mailing-lists.d.mts +61 -3
- package/dist/actions/list-all-mailing-lists.d.mts.map +1 -1
- package/dist/actions/list-all-mailing-lists.mjs +18 -18
- package/dist/actions/list-all-mailing-lists.mjs.map +1 -1
- package/dist/actions/list-all-senders.cjs +1 -1
- package/dist/actions/list-all-senders.cjs.map +1 -1
- package/dist/actions/list-all-senders.d.cts +21 -3
- package/dist/actions/list-all-senders.d.cts.map +1 -1
- package/dist/actions/list-all-senders.d.mts +21 -3
- package/dist/actions/list-all-senders.d.mts.map +1 -1
- package/dist/actions/list-all-senders.mjs +1 -1
- package/dist/actions/list-all-senders.mjs.map +1 -1
- package/dist/actions/list-campaigns-with-paging.cjs +8 -8
- package/dist/actions/list-campaigns-with-paging.cjs.map +1 -1
- package/dist/actions/list-campaigns-with-paging.d.cts +49 -3
- package/dist/actions/list-campaigns-with-paging.d.cts.map +1 -1
- package/dist/actions/list-campaigns-with-paging.d.mts +49 -3
- package/dist/actions/list-campaigns-with-paging.d.mts.map +1 -1
- package/dist/actions/list-campaigns-with-paging.mjs +8 -8
- package/dist/actions/list-campaigns-with-paging.mjs.map +1 -1
- package/dist/actions/list-segments.cjs +1 -1
- package/dist/actions/list-segments.cjs.map +1 -1
- package/dist/actions/list-segments.d.cts +46 -3
- package/dist/actions/list-segments.d.cts.map +1 -1
- package/dist/actions/list-segments.d.mts +46 -3
- package/dist/actions/list-segments.d.mts.map +1 -1
- package/dist/actions/list-segments.mjs +1 -1
- 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 +15 -3
- package/dist/actions/remove-multiple-subscribers.d.cts.map +1 -1
- package/dist/actions/remove-multiple-subscribers.d.mts +15 -3
- package/dist/actions/remove-multiple-subscribers.d.mts.map +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.map +1 -1
- package/dist/actions/schedule-campaign.d.cts +17 -3
- package/dist/actions/schedule-campaign.d.cts.map +1 -1
- package/dist/actions/schedule-campaign.d.mts +17 -3
- package/dist/actions/schedule-campaign.d.mts.map +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 +13 -3
- package/dist/actions/send-campaign.d.cts.map +1 -1
- package/dist/actions/send-campaign.d.mts +13 -3
- package/dist/actions/send-campaign.d.mts.map +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.map +1 -1
- package/dist/actions/unschedule-campaign.d.cts +16 -3
- package/dist/actions/unschedule-campaign.d.cts.map +1 -1
- package/dist/actions/unschedule-campaign.d.mts +16 -3
- package/dist/actions/unschedule-campaign.d.mts.map +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 +16 -3
- package/dist/actions/unsubscribe-from-account.d.cts.map +1 -1
- package/dist/actions/unsubscribe-from-account.d.mts +16 -3
- package/dist/actions/unsubscribe-from-account.d.mts.map +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 +15 -3
- package/dist/actions/unsubscribe-from-mailing-list.d.cts.map +1 -1
- package/dist/actions/unsubscribe-from-mailing-list.d.mts +15 -3
- package/dist/actions/unsubscribe-from-mailing-list.d.mts.map +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 +1 -1
- package/dist/actions/update-campaign.cjs.map +1 -1
- package/dist/actions/update-campaign.d.cts +63 -3
- package/dist/actions/update-campaign.d.cts.map +1 -1
- package/dist/actions/update-campaign.d.mts +63 -3
- package/dist/actions/update-campaign.d.mts.map +1 -1
- package/dist/actions/update-campaign.mjs +1 -1
- 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 +34 -3
- package/dist/actions/update-custom-field.d.cts.map +1 -1
- package/dist/actions/update-custom-field.d.mts +34 -3
- package/dist/actions/update-custom-field.d.mts.map +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 +8 -8
- package/dist/actions/update-mailing-list.cjs.map +1 -1
- package/dist/actions/update-mailing-list.d.cts +32 -3
- package/dist/actions/update-mailing-list.d.cts.map +1 -1
- package/dist/actions/update-mailing-list.d.mts +32 -3
- package/dist/actions/update-mailing-list.d.mts.map +1 -1
- package/dist/actions/update-mailing-list.mjs +8 -8
- 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 +30 -3
- package/dist/actions/update-segment-criteria.d.cts.map +1 -1
- package/dist/actions/update-segment-criteria.d.mts +30 -3
- package/dist/actions/update-segment-criteria.d.mts.map +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 +1 -1
- package/dist/actions/update-segment.cjs.map +1 -1
- package/dist/actions/update-segment.d.cts +52 -3
- package/dist/actions/update-segment.d.cts.map +1 -1
- package/dist/actions/update-segment.d.mts +52 -3
- package/dist/actions/update-segment.d.mts.map +1 -1
- package/dist/actions/update-segment.mjs +1 -1
- 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 +26 -3
- package/dist/actions/update-subscriber.d.cts.map +1 -1
- package/dist/actions/update-subscriber.d.mts +26 -3
- package/dist/actions/update-subscriber.d.mts.map +1 -1
- package/dist/actions/update-subscriber.mjs +1 -1
- package/dist/actions/update-subscriber.mjs.map +1 -1
- package/dist/catalog.cjs +7 -1
- package/dist/catalog.cjs.map +1 -1
- package/dist/catalog.d.cts +8 -0
- package/dist/catalog.d.mts +8 -0
- package/dist/catalog.mjs +7 -1
- package/dist/catalog.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -1,9 +1,19 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-all-campaigns.d.ts
|
|
4
|
-
declare const MoosendGetAllCampaignsInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const MoosendGetAllCampaignsInput: z.ZodObject<{
|
|
5
|
+
page: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
6
|
+
format: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
declare const MoosendGetAllCampaignsOutput: z.ZodObject<{
|
|
9
|
+
Code: z.ZodNullable<z.ZodNumber>;
|
|
10
|
+
Error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
11
|
+
Context: z.ZodObject<{}, z.core.$strip>;
|
|
12
|
+
}, z.core.$strip>;
|
|
13
|
+
declare const moosendGetAllCampaigns: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
14
|
+
page?: number | undefined;
|
|
15
|
+
format?: string | undefined;
|
|
16
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
17
|
//#endregion
|
|
8
18
|
export { moosendGetAllCampaigns };
|
|
9
19
|
//# sourceMappingURL=get-all-campaigns.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-all-campaigns.d.cts","names":[],"sources":["../../src/actions/get-all-campaigns.ts"],"mappings":";;;cAIa,2BAAA,
|
|
1
|
+
{"version":3,"file":"get-all-campaigns.d.cts","names":[],"sources":["../../src/actions/get-all-campaigns.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;cAI3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;cAM5B,sBAAA,gCAAsB,wBAAA"}
|
|
@@ -1,9 +1,19 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-all-campaigns.d.ts
|
|
4
|
-
declare const MoosendGetAllCampaignsInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const MoosendGetAllCampaignsInput: z.ZodObject<{
|
|
5
|
+
page: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
6
|
+
format: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
declare const MoosendGetAllCampaignsOutput: z.ZodObject<{
|
|
9
|
+
Code: z.ZodNullable<z.ZodNumber>;
|
|
10
|
+
Error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
11
|
+
Context: z.ZodObject<{}, z.core.$strip>;
|
|
12
|
+
}, z.core.$strip>;
|
|
13
|
+
declare const moosendGetAllCampaigns: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
14
|
+
page?: number | undefined;
|
|
15
|
+
format?: string | undefined;
|
|
16
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
17
|
//#endregion
|
|
8
18
|
export { moosendGetAllCampaigns };
|
|
9
19
|
//# sourceMappingURL=get-all-campaigns.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-all-campaigns.d.mts","names":[],"sources":["../../src/actions/get-all-campaigns.ts"],"mappings":";;;cAIa,2BAAA,
|
|
1
|
+
{"version":3,"file":"get-all-campaigns.d.mts","names":[],"sources":["../../src/actions/get-all-campaigns.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;cAI3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;cAM5B,sBAAA,gCAAsB,wBAAA"}
|
|
@@ -9,7 +9,7 @@ const moosendGetAllCampaigns = action("MOOSEND_GET_ALL_CAMPAIGNS", {
|
|
|
9
9
|
format: z.string().default("json").describe("Response format. Only 'json' is supported.").optional()
|
|
10
10
|
}),
|
|
11
11
|
output: z.object({
|
|
12
|
-
Code: z.number().int().describe("Response code; 0 indicates success."),
|
|
12
|
+
Code: z.number().int().describe("Response code; 0 indicates success.").nullable(),
|
|
13
13
|
Error: z.string().describe("Error message, if any; null on success.").nullable().optional(),
|
|
14
14
|
Context: z.object({}).describe("Context object containing paging info and list of campaigns.")
|
|
15
15
|
})
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-all-campaigns.mjs","names":[],"sources":["../../src/actions/get-all-campaigns.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoosendGetAllCampaignsInput
|
|
1
|
+
{"version":3,"file":"get-all-campaigns.mjs","names":[],"sources":["../../src/actions/get-all-campaigns.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoosendGetAllCampaignsInput = z.object({\n page: z.number().int().default(1).describe(\"Page number of campaign results to retrieve. Defaults to 1.\").optional(),\n format: z.string().default(\"json\").describe(\"Response format. Only 'json' is supported.\").optional(),\n});\nexport const MoosendGetAllCampaignsOutput = 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.object({}).describe(\"Context object containing paging info and list of campaigns.\"),\n});\n\nexport const moosendGetAllCampaigns = action(\"MOOSEND_GET_ALL_CAMPAIGNS\", {\n slug: \"moosend-get-all-campaigns\",\n name: \"Get all campaigns\",\n description: \"Tool to retrieve a list of all campaigns in your account. Use after acquiring valid API credentials to explore campaign data.\",\n input: MoosendGetAllCampaignsInput,\n output: MoosendGetAllCampaignsOutput,\n});\n"],"mappings":";;AAcA,MAAa,yBAAyB,OAAO,6BAA6B;CACxE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAdyC,EAAE,OAAO;EAClD,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;EACnH,QAAQ,EAAE,OAAO,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CACrG,CAWS;CACP,QAX0C,EAAE,OAAO;EACnD,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,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,8DAA8D;CAC/F,CAOU;AACV,CAAC"}
|
|
@@ -14,32 +14,32 @@ const MoosendGetAllSubscribersInput = zod.z.object({
|
|
|
14
14
|
mailingListID: zod.z.string().describe("The ID of the mailing list containing the subscribers.")
|
|
15
15
|
}).describe("Request schema for GetAllSubscribers");
|
|
16
16
|
const MoosendGetAllSubscribers_PagingModelSchema = zod.z.object({
|
|
17
|
-
PageSize: zod.z.number().int().describe("Number of items per page."),
|
|
18
|
-
CurrentPage: zod.z.number().int().describe("Current page number."),
|
|
19
|
-
TotalResults: zod.z.number().int().describe("Total number of results."),
|
|
17
|
+
PageSize: zod.z.number().int().describe("Number of items per page.").nullable(),
|
|
18
|
+
CurrentPage: zod.z.number().int().describe("Current page number.").nullable(),
|
|
19
|
+
TotalResults: zod.z.number().int().describe("Total number of results.").nullable(),
|
|
20
20
|
SortExpression: zod.z.string().describe("Sort expression used.").nullable().optional(),
|
|
21
|
-
TotalPageCount: zod.z.number().int().describe("Total number of pages available."),
|
|
22
|
-
SortIsAscending: zod.z.boolean().describe("True if sorted ascending.")
|
|
21
|
+
TotalPageCount: zod.z.number().int().describe("Total number of pages available.").nullable(),
|
|
22
|
+
SortIsAscending: zod.z.boolean().describe("True if sorted ascending.").nullable()
|
|
23
23
|
});
|
|
24
24
|
const MoosendGetAllSubscribers_CustomFieldModelSchema = zod.z.object({
|
|
25
|
-
Name: zod.z.string().describe("The name of the custom field."),
|
|
25
|
+
Name: zod.z.string().describe("The name of the custom field.").nullable(),
|
|
26
26
|
Value: zod.z.union([zod.z.string(), zod.z.number().int()]),
|
|
27
|
-
CustomFieldID: zod.z.string().describe("The ID of the custom field.")
|
|
27
|
+
CustomFieldID: zod.z.string().describe("The ID of the custom field.").nullable()
|
|
28
28
|
});
|
|
29
29
|
const MoosendGetAllSubscribers_SubscriberModelSchema = zod.z.object({
|
|
30
|
-
ID: zod.z.string().describe("Subscriber unique identifier."),
|
|
30
|
+
ID: zod.z.string().describe("Subscriber unique identifier.").nullable(),
|
|
31
31
|
Name: zod.z.string().describe("Name of the subscriber.").nullable().optional(),
|
|
32
32
|
Tags: zod.z.array(zod.z.string()).describe("Tags associated with the subscriber."),
|
|
33
|
-
Email: zod.z.string().describe("Email address of the subscriber."),
|
|
33
|
+
Email: zod.z.string().describe("Email address of the subscriber.").nullable(),
|
|
34
34
|
Mobile: zod.z.string().describe("Mobile number of the subscriber.").nullable().optional(),
|
|
35
|
-
CreatedOn: zod.z.string().describe("Timestamp when the subscriber was created."),
|
|
35
|
+
CreatedOn: zod.z.string().describe("Timestamp when the subscriber was created.").nullable(),
|
|
36
36
|
RemovedOn: zod.z.string().describe("Timestamp when the subscriber was removed; null if not removed.").nullable().optional(),
|
|
37
37
|
UpdatedOn: zod.z.string().describe("Timestamp when the subscriber was last updated.").nullable().optional(),
|
|
38
38
|
Preferences: zod.z.array(zod.z.string()).describe("Preference values for the subscriber.").nullable().optional(),
|
|
39
39
|
CustomFields: zod.z.array(MoosendGetAllSubscribers_CustomFieldModelSchema).describe("List of custom fields for the subscriber."),
|
|
40
|
-
SubscribeType: zod.z.number().int().describe("Subscription status code."),
|
|
40
|
+
SubscribeType: zod.z.number().int().describe("Subscription status code.").nullable(),
|
|
41
41
|
UnsubscribedOn: zod.z.string().describe("Timestamp when unsubscribed; null if still subscribed.").nullable().optional(),
|
|
42
|
-
SubscribeMethod: zod.z.number().int().describe("Method used to subscribe the member."),
|
|
42
|
+
SubscribeMethod: zod.z.number().int().describe("Method used to subscribe the member.").nullable(),
|
|
43
43
|
UnsubscribedFromID: zod.z.string().describe("ID from which unsubscribed; null if not applicable.").nullable().optional()
|
|
44
44
|
});
|
|
45
45
|
const MoosendGetAllSubscribers_ContextModelSchema = zod.z.object({
|
|
@@ -47,7 +47,7 @@ const MoosendGetAllSubscribers_ContextModelSchema = zod.z.object({
|
|
|
47
47
|
Subscribers: zod.z.array(MoosendGetAllSubscribers_SubscriberModelSchema).describe("List of subscribers on the mailing list.")
|
|
48
48
|
});
|
|
49
49
|
const MoosendGetAllSubscribersOutput = zod.z.object({
|
|
50
|
-
Code: zod.z.number().int().describe("Response code; 0 indicates success."),
|
|
50
|
+
Code: zod.z.number().int().describe("Response code; 0 indicates success.").nullable(),
|
|
51
51
|
Error: zod.z.string().describe("Error message if the request failed; null on success.").nullable().optional(),
|
|
52
52
|
Context: MoosendGetAllSubscribers_ContextModelSchema.nullable().optional()
|
|
53
53
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-all-subscribers.cjs","names":["z","action"],"sources":["../../src/actions/get-all-subscribers.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoosendGetAllSubscribersInput
|
|
1
|
+
{"version":3,"file":"get-all-subscribers.cjs","names":["z","action"],"sources":["../../src/actions/get-all-subscribers.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoosendGetAllSubscribersInput = z.object({\n Page: z.number().int().default(1).describe(\"Page number of subscriber results to retrieve. Use this with page_size to paginate through large lists.\").optional(),\n format: z.string().default(\"json\").describe(\"Response format.\").optional(),\n status: z.enum([\"Subscribed\", \"Unsubscribed\", \"Bounced\", \"Removed\"]).default(\"Subscribed\").describe(\"The subscription status to filter by. 'Subscribed' returns active subscribers, 'Unsubscribed' returns those who opted out, 'Bounced' returns email addresses that bounced, 'Removed' returns manually removed subscribers.\").optional(),\n PageSize: z.number().int().default(100).describe(\"Number of subscriber records to return per page. Maximum recommended is 500.\").optional(),\n mailingListID: z.string().describe(\"The ID of the mailing list containing the subscribers.\"),\n}).describe(\"Request schema for GetAllSubscribers\");\nconst MoosendGetAllSubscribers_PagingModelSchema = 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.\").nullable(),\n SortExpression: z.string().describe(\"Sort expression used.\").nullable().optional(),\n TotalPageCount: z.number().int().describe(\"Total number of pages available.\").nullable(),\n SortIsAscending: z.boolean().describe(\"True if sorted ascending.\").nullable(),\n});\nconst MoosendGetAllSubscribers_CustomFieldModelSchema = z.object({\n Name: z.string().describe(\"The name of the custom field.\").nullable(),\n Value: z.union([z.string(), z.number().int()]),\n CustomFieldID: z.string().describe(\"The ID of the custom field.\").nullable(),\n});\nconst MoosendGetAllSubscribers_SubscriberModelSchema = z.object({\n ID: z.string().describe(\"Subscriber unique identifier.\").nullable(),\n Name: z.string().describe(\"Name of the subscriber.\").nullable().optional(),\n Tags: z.array(z.string()).describe(\"Tags associated with the subscriber.\"),\n Email: z.string().describe(\"Email address of the subscriber.\").nullable(),\n Mobile: z.string().describe(\"Mobile number of the subscriber.\").nullable().optional(),\n CreatedOn: z.string().describe(\"Timestamp when the subscriber was created.\").nullable(),\n RemovedOn: z.string().describe(\"Timestamp when the subscriber was removed; null if not removed.\").nullable().optional(),\n UpdatedOn: z.string().describe(\"Timestamp when the subscriber was last updated.\").nullable().optional(),\n Preferences: z.array(z.string()).describe(\"Preference values for the subscriber.\").nullable().optional(),\n CustomFields: z.array(MoosendGetAllSubscribers_CustomFieldModelSchema).describe(\"List of custom fields for the subscriber.\"),\n SubscribeType: z.number().int().describe(\"Subscription status code.\").nullable(),\n UnsubscribedOn: z.string().describe(\"Timestamp when unsubscribed; null if still subscribed.\").nullable().optional(),\n SubscribeMethod: z.number().int().describe(\"Method used to subscribe the member.\").nullable(),\n UnsubscribedFromID: z.string().describe(\"ID from which unsubscribed; null if not applicable.\").nullable().optional(),\n});\nconst MoosendGetAllSubscribers_ContextModelSchema = z.object({\n Paging: MoosendGetAllSubscribers_PagingModelSchema.nullable(),\n Subscribers: z.array(MoosendGetAllSubscribers_SubscriberModelSchema).describe(\"List of subscribers on the mailing list.\"),\n});\nexport const MoosendGetAllSubscribersOutput = 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: MoosendGetAllSubscribers_ContextModelSchema.nullable().optional(),\n});\n\nexport const moosendGetAllSubscribers = action(\"MOOSEND_GET_ALL_SUBSCRIBERS\", {\n slug: \"moosend-get-all-subscribers\",\n name: \"Get All Subscribers\",\n description: \"Retrieves all subscribers from a specified mailing list, filtered by their subscription status (Subscribed, Unsubscribed, Bounced, or Removed). Returns paginated results with subscriber details including email, name, custom fields, and subscription timestamps.\",\n input: MoosendGetAllSubscribersInput,\n output: MoosendGetAllSubscribersOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAAgCA,IAAAA,EAAE,OAAO;CACpD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,yGAAyG,CAAC,CAAC,SAAS;CAC/J,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;CACzE,QAAQA,IAAAA,EAAE,KAAK;EAAC;EAAc;EAAgB;EAAW;CAAS,CAAC,CAAC,CAAC,QAAQ,YAAY,CAAC,CAAC,SAAS,4NAA4N,CAAC,CAAC,SAAS;CAC3U,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,GAAG,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS;CAC1I,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD;AAC7F,CAAC,CAAC,CAAC,SAAS,sCAAsC;AAClD,MAAM,6CAA6CA,IAAAA,EAAE,OAAO;CAC1D,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CAC1E,aAAaA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,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxG,SAAS,4CAA4C,SAAS,CAAC,CAAC,SAAS;AAC3E,CAAC;AAED,MAAa,2BAA2BC,eAAAA,OAAO,+BAA+B;CAC5E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,59 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-all-subscribers.d.ts
|
|
4
|
-
declare const MoosendGetAllSubscribersInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const MoosendGetAllSubscribersInput: z.ZodObject<{
|
|
5
|
+
Page: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
6
|
+
format: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
7
|
+
status: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
8
|
+
Subscribed: "Subscribed";
|
|
9
|
+
Unsubscribed: "Unsubscribed";
|
|
10
|
+
Bounced: "Bounced";
|
|
11
|
+
Removed: "Removed";
|
|
12
|
+
}>>>;
|
|
13
|
+
PageSize: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
14
|
+
mailingListID: z.ZodString;
|
|
15
|
+
}, z.core.$strip>;
|
|
16
|
+
declare const MoosendGetAllSubscribersOutput: z.ZodObject<{
|
|
17
|
+
Code: z.ZodNullable<z.ZodNumber>;
|
|
18
|
+
Error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
|
+
Context: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
20
|
+
Paging: z.ZodNullable<z.ZodObject<{
|
|
21
|
+
PageSize: z.ZodNullable<z.ZodNumber>;
|
|
22
|
+
CurrentPage: z.ZodNullable<z.ZodNumber>;
|
|
23
|
+
TotalResults: z.ZodNullable<z.ZodNumber>;
|
|
24
|
+
SortExpression: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
25
|
+
TotalPageCount: z.ZodNullable<z.ZodNumber>;
|
|
26
|
+
SortIsAscending: z.ZodNullable<z.ZodBoolean>;
|
|
27
|
+
}, z.core.$strip>>;
|
|
28
|
+
Subscribers: z.ZodArray<z.ZodObject<{
|
|
29
|
+
ID: z.ZodNullable<z.ZodString>;
|
|
30
|
+
Name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
31
|
+
Tags: z.ZodArray<z.ZodString>;
|
|
32
|
+
Email: z.ZodNullable<z.ZodString>;
|
|
33
|
+
Mobile: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
34
|
+
CreatedOn: z.ZodNullable<z.ZodString>;
|
|
35
|
+
RemovedOn: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
36
|
+
UpdatedOn: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
37
|
+
Preferences: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
38
|
+
CustomFields: z.ZodArray<z.ZodObject<{
|
|
39
|
+
Name: z.ZodNullable<z.ZodString>;
|
|
40
|
+
Value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
41
|
+
CustomFieldID: z.ZodNullable<z.ZodString>;
|
|
42
|
+
}, z.core.$strip>>;
|
|
43
|
+
SubscribeType: z.ZodNullable<z.ZodNumber>;
|
|
44
|
+
UnsubscribedOn: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
45
|
+
SubscribeMethod: z.ZodNullable<z.ZodNumber>;
|
|
46
|
+
UnsubscribedFromID: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
47
|
+
}, z.core.$strip>>;
|
|
48
|
+
}, z.core.$strip>>>;
|
|
49
|
+
}, z.core.$strip>;
|
|
50
|
+
declare const moosendGetAllSubscribers: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
51
|
+
mailingListID: string;
|
|
52
|
+
Page?: number | undefined;
|
|
53
|
+
format?: string | undefined;
|
|
54
|
+
status?: "Subscribed" | "Unsubscribed" | "Bounced" | "Removed" | undefined;
|
|
55
|
+
PageSize?: number | undefined;
|
|
56
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
57
|
//#endregion
|
|
8
58
|
export { moosendGetAllSubscribers };
|
|
9
59
|
//# sourceMappingURL=get-all-subscribers.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-all-subscribers.d.cts","names":[],"sources":["../../src/actions/get-all-subscribers.ts"],"mappings":";;;cAIa,6BAAA,
|
|
1
|
+
{"version":3,"file":"get-all-subscribers.d.cts","names":[],"sources":["../../src/actions/get-all-subscribers.ts"],"mappings":";;;cAIa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;;;cAwC7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAM9B,wBAAA,gCAAwB,wBAAA"}
|
|
@@ -1,9 +1,59 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-all-subscribers.d.ts
|
|
4
|
-
declare const MoosendGetAllSubscribersInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const MoosendGetAllSubscribersInput: z.ZodObject<{
|
|
5
|
+
Page: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
6
|
+
format: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
7
|
+
status: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
8
|
+
Subscribed: "Subscribed";
|
|
9
|
+
Unsubscribed: "Unsubscribed";
|
|
10
|
+
Bounced: "Bounced";
|
|
11
|
+
Removed: "Removed";
|
|
12
|
+
}>>>;
|
|
13
|
+
PageSize: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
14
|
+
mailingListID: z.ZodString;
|
|
15
|
+
}, z.core.$strip>;
|
|
16
|
+
declare const MoosendGetAllSubscribersOutput: z.ZodObject<{
|
|
17
|
+
Code: z.ZodNullable<z.ZodNumber>;
|
|
18
|
+
Error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
|
+
Context: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
20
|
+
Paging: z.ZodNullable<z.ZodObject<{
|
|
21
|
+
PageSize: z.ZodNullable<z.ZodNumber>;
|
|
22
|
+
CurrentPage: z.ZodNullable<z.ZodNumber>;
|
|
23
|
+
TotalResults: z.ZodNullable<z.ZodNumber>;
|
|
24
|
+
SortExpression: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
25
|
+
TotalPageCount: z.ZodNullable<z.ZodNumber>;
|
|
26
|
+
SortIsAscending: z.ZodNullable<z.ZodBoolean>;
|
|
27
|
+
}, z.core.$strip>>;
|
|
28
|
+
Subscribers: z.ZodArray<z.ZodObject<{
|
|
29
|
+
ID: z.ZodNullable<z.ZodString>;
|
|
30
|
+
Name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
31
|
+
Tags: z.ZodArray<z.ZodString>;
|
|
32
|
+
Email: z.ZodNullable<z.ZodString>;
|
|
33
|
+
Mobile: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
34
|
+
CreatedOn: z.ZodNullable<z.ZodString>;
|
|
35
|
+
RemovedOn: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
36
|
+
UpdatedOn: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
37
|
+
Preferences: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
38
|
+
CustomFields: z.ZodArray<z.ZodObject<{
|
|
39
|
+
Name: z.ZodNullable<z.ZodString>;
|
|
40
|
+
Value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
41
|
+
CustomFieldID: z.ZodNullable<z.ZodString>;
|
|
42
|
+
}, z.core.$strip>>;
|
|
43
|
+
SubscribeType: z.ZodNullable<z.ZodNumber>;
|
|
44
|
+
UnsubscribedOn: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
45
|
+
SubscribeMethod: z.ZodNullable<z.ZodNumber>;
|
|
46
|
+
UnsubscribedFromID: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
47
|
+
}, z.core.$strip>>;
|
|
48
|
+
}, z.core.$strip>>>;
|
|
49
|
+
}, z.core.$strip>;
|
|
50
|
+
declare const moosendGetAllSubscribers: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
51
|
+
mailingListID: string;
|
|
52
|
+
Page?: number | undefined;
|
|
53
|
+
format?: string | undefined;
|
|
54
|
+
status?: "Subscribed" | "Unsubscribed" | "Bounced" | "Removed" | undefined;
|
|
55
|
+
PageSize?: number | undefined;
|
|
56
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
57
|
//#endregion
|
|
8
58
|
export { moosendGetAllSubscribers };
|
|
9
59
|
//# sourceMappingURL=get-all-subscribers.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-all-subscribers.d.mts","names":[],"sources":["../../src/actions/get-all-subscribers.ts"],"mappings":";;;cAIa,6BAAA,
|
|
1
|
+
{"version":3,"file":"get-all-subscribers.d.mts","names":[],"sources":["../../src/actions/get-all-subscribers.ts"],"mappings":";;;cAIa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;;;cAwC7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAM9B,wBAAA,gCAAwB,wBAAA"}
|
|
@@ -14,32 +14,32 @@ const MoosendGetAllSubscribersInput = z.object({
|
|
|
14
14
|
mailingListID: z.string().describe("The ID of the mailing list containing the subscribers.")
|
|
15
15
|
}).describe("Request schema for GetAllSubscribers");
|
|
16
16
|
const MoosendGetAllSubscribers_PagingModelSchema = z.object({
|
|
17
|
-
PageSize: z.number().int().describe("Number of items per page."),
|
|
18
|
-
CurrentPage: z.number().int().describe("Current page number."),
|
|
19
|
-
TotalResults: z.number().int().describe("Total number of results."),
|
|
17
|
+
PageSize: z.number().int().describe("Number of items per page.").nullable(),
|
|
18
|
+
CurrentPage: z.number().int().describe("Current page number.").nullable(),
|
|
19
|
+
TotalResults: z.number().int().describe("Total number of results.").nullable(),
|
|
20
20
|
SortExpression: z.string().describe("Sort expression used.").nullable().optional(),
|
|
21
|
-
TotalPageCount: z.number().int().describe("Total number of pages available."),
|
|
22
|
-
SortIsAscending: z.boolean().describe("True if sorted ascending.")
|
|
21
|
+
TotalPageCount: z.number().int().describe("Total number of pages available.").nullable(),
|
|
22
|
+
SortIsAscending: z.boolean().describe("True if sorted ascending.").nullable()
|
|
23
23
|
});
|
|
24
24
|
const MoosendGetAllSubscribers_CustomFieldModelSchema = z.object({
|
|
25
|
-
Name: z.string().describe("The name of the custom field."),
|
|
25
|
+
Name: z.string().describe("The name of the custom field.").nullable(),
|
|
26
26
|
Value: z.union([z.string(), z.number().int()]),
|
|
27
|
-
CustomFieldID: z.string().describe("The ID of the custom field.")
|
|
27
|
+
CustomFieldID: z.string().describe("The ID of the custom field.").nullable()
|
|
28
28
|
});
|
|
29
29
|
const MoosendGetAllSubscribers_SubscriberModelSchema = z.object({
|
|
30
|
-
ID: z.string().describe("Subscriber unique identifier."),
|
|
30
|
+
ID: z.string().describe("Subscriber unique identifier.").nullable(),
|
|
31
31
|
Name: z.string().describe("Name of the subscriber.").nullable().optional(),
|
|
32
32
|
Tags: z.array(z.string()).describe("Tags associated with the subscriber."),
|
|
33
|
-
Email: z.string().describe("Email address of the subscriber."),
|
|
33
|
+
Email: z.string().describe("Email address of the subscriber.").nullable(),
|
|
34
34
|
Mobile: z.string().describe("Mobile number of the subscriber.").nullable().optional(),
|
|
35
|
-
CreatedOn: z.string().describe("Timestamp when the subscriber was created."),
|
|
35
|
+
CreatedOn: z.string().describe("Timestamp when the subscriber was created.").nullable(),
|
|
36
36
|
RemovedOn: z.string().describe("Timestamp when the subscriber was removed; null if not removed.").nullable().optional(),
|
|
37
37
|
UpdatedOn: z.string().describe("Timestamp when the subscriber was last updated.").nullable().optional(),
|
|
38
38
|
Preferences: z.array(z.string()).describe("Preference values for the subscriber.").nullable().optional(),
|
|
39
39
|
CustomFields: z.array(MoosendGetAllSubscribers_CustomFieldModelSchema).describe("List of custom fields for the subscriber."),
|
|
40
|
-
SubscribeType: z.number().int().describe("Subscription status code."),
|
|
40
|
+
SubscribeType: z.number().int().describe("Subscription status code.").nullable(),
|
|
41
41
|
UnsubscribedOn: z.string().describe("Timestamp when unsubscribed; null if still subscribed.").nullable().optional(),
|
|
42
|
-
SubscribeMethod: z.number().int().describe("Method used to subscribe the member."),
|
|
42
|
+
SubscribeMethod: z.number().int().describe("Method used to subscribe the member.").nullable(),
|
|
43
43
|
UnsubscribedFromID: z.string().describe("ID from which unsubscribed; null if not applicable.").nullable().optional()
|
|
44
44
|
});
|
|
45
45
|
const MoosendGetAllSubscribers_ContextModelSchema = z.object({
|
|
@@ -52,7 +52,7 @@ const moosendGetAllSubscribers = action("MOOSEND_GET_ALL_SUBSCRIBERS", {
|
|
|
52
52
|
description: "Retrieves all subscribers from a specified mailing list, filtered by their subscription status (Subscribed, Unsubscribed, Bounced, or Removed). Returns paginated results with subscriber details including email, name, custom fields, and subscription timestamps.",
|
|
53
53
|
input: MoosendGetAllSubscribersInput,
|
|
54
54
|
output: z.object({
|
|
55
|
-
Code: z.number().int().describe("Response code; 0 indicates success."),
|
|
55
|
+
Code: z.number().int().describe("Response code; 0 indicates success.").nullable(),
|
|
56
56
|
Error: z.string().describe("Error message if the request failed; null on success.").nullable().optional(),
|
|
57
57
|
Context: MoosendGetAllSubscribers_ContextModelSchema.nullable().optional()
|
|
58
58
|
})
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-all-subscribers.mjs","names":[],"sources":["../../src/actions/get-all-subscribers.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoosendGetAllSubscribersInput
|
|
1
|
+
{"version":3,"file":"get-all-subscribers.mjs","names":[],"sources":["../../src/actions/get-all-subscribers.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoosendGetAllSubscribersInput = z.object({\n Page: z.number().int().default(1).describe(\"Page number of subscriber results to retrieve. Use this with page_size to paginate through large lists.\").optional(),\n format: z.string().default(\"json\").describe(\"Response format.\").optional(),\n status: z.enum([\"Subscribed\", \"Unsubscribed\", \"Bounced\", \"Removed\"]).default(\"Subscribed\").describe(\"The subscription status to filter by. 'Subscribed' returns active subscribers, 'Unsubscribed' returns those who opted out, 'Bounced' returns email addresses that bounced, 'Removed' returns manually removed subscribers.\").optional(),\n PageSize: z.number().int().default(100).describe(\"Number of subscriber records to return per page. Maximum recommended is 500.\").optional(),\n mailingListID: z.string().describe(\"The ID of the mailing list containing the subscribers.\"),\n}).describe(\"Request schema for GetAllSubscribers\");\nconst MoosendGetAllSubscribers_PagingModelSchema = 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.\").nullable(),\n SortExpression: z.string().describe(\"Sort expression used.\").nullable().optional(),\n TotalPageCount: z.number().int().describe(\"Total number of pages available.\").nullable(),\n SortIsAscending: z.boolean().describe(\"True if sorted ascending.\").nullable(),\n});\nconst MoosendGetAllSubscribers_CustomFieldModelSchema = z.object({\n Name: z.string().describe(\"The name of the custom field.\").nullable(),\n Value: z.union([z.string(), z.number().int()]),\n CustomFieldID: z.string().describe(\"The ID of the custom field.\").nullable(),\n});\nconst MoosendGetAllSubscribers_SubscriberModelSchema = z.object({\n ID: z.string().describe(\"Subscriber unique identifier.\").nullable(),\n Name: z.string().describe(\"Name of the subscriber.\").nullable().optional(),\n Tags: z.array(z.string()).describe(\"Tags associated with the subscriber.\"),\n Email: z.string().describe(\"Email address of the subscriber.\").nullable(),\n Mobile: z.string().describe(\"Mobile number of the subscriber.\").nullable().optional(),\n CreatedOn: z.string().describe(\"Timestamp when the subscriber was created.\").nullable(),\n RemovedOn: z.string().describe(\"Timestamp when the subscriber was removed; null if not removed.\").nullable().optional(),\n UpdatedOn: z.string().describe(\"Timestamp when the subscriber was last updated.\").nullable().optional(),\n Preferences: z.array(z.string()).describe(\"Preference values for the subscriber.\").nullable().optional(),\n CustomFields: z.array(MoosendGetAllSubscribers_CustomFieldModelSchema).describe(\"List of custom fields for the subscriber.\"),\n SubscribeType: z.number().int().describe(\"Subscription status code.\").nullable(),\n UnsubscribedOn: z.string().describe(\"Timestamp when unsubscribed; null if still subscribed.\").nullable().optional(),\n SubscribeMethod: z.number().int().describe(\"Method used to subscribe the member.\").nullable(),\n UnsubscribedFromID: z.string().describe(\"ID from which unsubscribed; null if not applicable.\").nullable().optional(),\n});\nconst MoosendGetAllSubscribers_ContextModelSchema = z.object({\n Paging: MoosendGetAllSubscribers_PagingModelSchema.nullable(),\n Subscribers: z.array(MoosendGetAllSubscribers_SubscriberModelSchema).describe(\"List of subscribers on the mailing list.\"),\n});\nexport const MoosendGetAllSubscribersOutput = 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: MoosendGetAllSubscribers_ContextModelSchema.nullable().optional(),\n});\n\nexport const moosendGetAllSubscribers = action(\"MOOSEND_GET_ALL_SUBSCRIBERS\", {\n slug: \"moosend-get-all-subscribers\",\n name: \"Get All Subscribers\",\n description: \"Retrieves all subscribers from a specified mailing list, filtered by their subscription status (Subscribed, Unsubscribed, Bounced, or Removed). Returns paginated results with subscriber details including email, name, custom fields, and subscription timestamps.\",\n input: MoosendGetAllSubscribersInput,\n output: MoosendGetAllSubscribersOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAAgC,EAAE,OAAO;CACpD,MA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BAAoB,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACrH,CAAC;AACD,MAAM,8CAA8C,EAAE,OAAO;CAC3D,QAAQ,2CAA2C,SAAS;CAC5D,aAAa,EAAE,MAAM,8CAA8C,CAAC,CAAC,SAAS,0CAA0C;AAC1H,CAAC;AAOD,MAAa,2BAA2B,OAAO,+BAA+B;CAC5E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAX4C,EAAE,OAAO;EACrD,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;EAChF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxG,SAAS,4CAA4C,SAAS,CAAC,CAAC,SAAS;CAC3E,CAOU;AACV,CAAC"}
|
|
@@ -3,7 +3,7 @@ let zod = require("zod");
|
|
|
3
3
|
//#region src/actions/get-campaign-details.ts
|
|
4
4
|
const MoosendGetCampaignDetailsInput = zod.z.object({ campaign_id: zod.z.string().describe("The unique identifier of the campaign whose details are to be retrieved.") }).describe("Request schema for retrieving campaign details.");
|
|
5
5
|
const MoosendGetCampaignDetailsOutput = zod.z.object({
|
|
6
|
-
Code: zod.z.number().int().describe("Response code from Moosend API. 0 indicates success, other values indicate errors."),
|
|
6
|
+
Code: zod.z.number().int().describe("Response code from Moosend API. 0 indicates success, other values indicate errors.").nullable(),
|
|
7
7
|
Error: zod.z.string().describe("Error message if the request failed; null when successful.").nullable().optional(),
|
|
8
8
|
Context: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Complete campaign data including ID, name, subject, status, mailing lists, content, sender info, tracking settings, ABTesting configuration, delivery settings, and more. Null when an error occurs.").nullable().optional()
|
|
9
9
|
}).describe("Response schema for retrieving campaign details.");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-campaign-details.cjs","names":["z","action"],"sources":["../../src/actions/get-campaign-details.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoosendGetCampaignDetailsInput
|
|
1
|
+
{"version":3,"file":"get-campaign-details.cjs","names":["z","action"],"sources":["../../src/actions/get-campaign-details.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoosendGetCampaignDetailsInput = z.object({\n campaign_id: z.string().describe(\"The unique identifier of the campaign whose details are to be retrieved.\"),\n}).describe(\"Request schema for retrieving campaign details.\");\nexport const MoosendGetCampaignDetailsOutput = z.object({\n Code: z.number().int().describe(\"Response code from Moosend API. 0 indicates success, other values indicate errors.\").nullable(),\n Error: z.string().describe(\"Error message if the request failed; null when successful.\").nullable().optional(),\n Context: z.record(z.string(), z.unknown()).describe(\"Complete campaign data including ID, name, subject, status, mailing lists, content, sender info, tracking settings, ABTesting configuration, delivery settings, and more. Null when an error occurs.\").nullable().optional(),\n}).describe(\"Response schema for retrieving campaign details.\");\n\nexport const moosendGetCampaignDetails = action(\"MOOSEND_GET_CAMPAIGN_DETAILS\", {\n slug: \"moosend-get-campaign-details\",\n name: \"Get Campaign Details\",\n description: \"Retrieves comprehensive details about a specific campaign by its ID. Returns complete campaign information including configuration, status, content, and settings. Use this when you need to inspect or verify campaign properties.\",\n input: MoosendGetCampaignDetailsInput,\n output: MoosendGetCampaignDetailsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAAiCA,IAAAA,EAAE,OAAO,EACrD,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E,EAC7G,CAAC,CAAC,CAAC,SAAS,iDAAiD;AAC7D,MAAa,kCAAkCA,IAAAA,EAAE,OAAO;CACtD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oFAAoF,CAAC,CAAC,SAAS;CAC/H,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7G,SAASA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,sMAAsM,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAClR,CAAC,CAAC,CAAC,SAAS,kDAAkD;AAE9D,MAAa,4BAA4BC,eAAAA,OAAO,gCAAgC;CAC9E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,17 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-campaign-details.d.ts
|
|
4
|
-
declare const MoosendGetCampaignDetailsInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const MoosendGetCampaignDetailsInput: z.ZodObject<{
|
|
5
|
+
campaign_id: z.ZodString;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
declare const MoosendGetCampaignDetailsOutput: z.ZodObject<{
|
|
8
|
+
Code: z.ZodNullable<z.ZodNumber>;
|
|
9
|
+
Error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
10
|
+
Context: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
11
|
+
}, z.core.$strip>;
|
|
12
|
+
declare const moosendGetCampaignDetails: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
13
|
+
campaign_id: string;
|
|
14
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
15
|
//#endregion
|
|
8
16
|
export { moosendGetCampaignDetails };
|
|
9
17
|
//# sourceMappingURL=get-campaign-details.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-campaign-details.d.cts","names":[],"sources":["../../src/actions/get-campaign-details.ts"],"mappings":";;;cAIa,8BAAA,
|
|
1
|
+
{"version":3,"file":"get-campaign-details.d.cts","names":[],"sources":["../../src/actions/get-campaign-details.ts"],"mappings":";;;cAIa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;cAG9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;cAM/B,yBAAA,gCAAyB,wBAAA"}
|
|
@@ -1,9 +1,17 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-campaign-details.d.ts
|
|
4
|
-
declare const MoosendGetCampaignDetailsInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const MoosendGetCampaignDetailsInput: z.ZodObject<{
|
|
5
|
+
campaign_id: z.ZodString;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
declare const MoosendGetCampaignDetailsOutput: z.ZodObject<{
|
|
8
|
+
Code: z.ZodNullable<z.ZodNumber>;
|
|
9
|
+
Error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
10
|
+
Context: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
11
|
+
}, z.core.$strip>;
|
|
12
|
+
declare const moosendGetCampaignDetails: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
13
|
+
campaign_id: string;
|
|
14
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
15
|
//#endregion
|
|
8
16
|
export { moosendGetCampaignDetails };
|
|
9
17
|
//# sourceMappingURL=get-campaign-details.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-campaign-details.d.mts","names":[],"sources":["../../src/actions/get-campaign-details.ts"],"mappings":";;;cAIa,8BAAA,
|
|
1
|
+
{"version":3,"file":"get-campaign-details.d.mts","names":[],"sources":["../../src/actions/get-campaign-details.ts"],"mappings":";;;cAIa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;cAG9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;cAM/B,yBAAA,gCAAyB,wBAAA"}
|
|
@@ -6,7 +6,7 @@ const moosendGetCampaignDetails = action("MOOSEND_GET_CAMPAIGN_DETAILS", {
|
|
|
6
6
|
description: "Retrieves comprehensive details about a specific campaign by its ID. Returns complete campaign information including configuration, status, content, and settings. Use this when you need to inspect or verify campaign properties.",
|
|
7
7
|
input: z.object({ campaign_id: z.string().describe("The unique identifier of the campaign whose details are to be retrieved.") }).describe("Request schema for retrieving campaign details."),
|
|
8
8
|
output: z.object({
|
|
9
|
-
Code: z.number().int().describe("Response code from Moosend API. 0 indicates success, other values indicate errors."),
|
|
9
|
+
Code: z.number().int().describe("Response code from Moosend API. 0 indicates success, other values indicate errors.").nullable(),
|
|
10
10
|
Error: z.string().describe("Error message if the request failed; null when successful.").nullable().optional(),
|
|
11
11
|
Context: z.record(z.string(), z.unknown()).describe("Complete campaign data including ID, name, subject, status, mailing lists, content, sender info, tracking settings, ABTesting configuration, delivery settings, and more. Null when an error occurs.").nullable().optional()
|
|
12
12
|
}).describe("Response schema for retrieving campaign details.")
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-campaign-details.mjs","names":[],"sources":["../../src/actions/get-campaign-details.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoosendGetCampaignDetailsInput
|
|
1
|
+
{"version":3,"file":"get-campaign-details.mjs","names":[],"sources":["../../src/actions/get-campaign-details.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoosendGetCampaignDetailsInput = z.object({\n campaign_id: z.string().describe(\"The unique identifier of the campaign whose details are to be retrieved.\"),\n}).describe(\"Request schema for retrieving campaign details.\");\nexport const MoosendGetCampaignDetailsOutput = z.object({\n Code: z.number().int().describe(\"Response code from Moosend API. 0 indicates success, other values indicate errors.\").nullable(),\n Error: z.string().describe(\"Error message if the request failed; null when successful.\").nullable().optional(),\n Context: z.record(z.string(), z.unknown()).describe(\"Complete campaign data including ID, name, subject, status, mailing lists, content, sender info, tracking settings, ABTesting configuration, delivery settings, and more. Null when an error occurs.\").nullable().optional(),\n}).describe(\"Response schema for retrieving campaign details.\");\n\nexport const moosendGetCampaignDetails = action(\"MOOSEND_GET_CAMPAIGN_DETAILS\", {\n slug: \"moosend-get-campaign-details\",\n name: \"Get Campaign Details\",\n description: \"Retrieves comprehensive details about a specific campaign by its ID. Returns complete campaign information including configuration, status, content, and settings. Use this when you need to inspect or verify campaign properties.\",\n input: MoosendGetCampaignDetailsInput,\n output: MoosendGetCampaignDetailsOutput,\n});\n"],"mappings":";;AAaA,MAAa,4BAA4B,OAAO,gCAAgC;CAC9E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAb4C,EAAE,OAAO,EACrD,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E,EAC7G,CAAC,CAAC,CAAC,SAAS,iDAWH;CACP,QAX6C,EAAE,OAAO;EACtD,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oFAAoF,CAAC,CAAC,SAAS;EAC/H,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7G,SAAS,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,sMAAsM,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClR,CAAC,CAAC,CAAC,SAAS,kDAOF;AACV,CAAC"}
|
|
@@ -3,7 +3,7 @@ let zod = require("zod");
|
|
|
3
3
|
//#region src/actions/get-campaign-stats-by-location.ts
|
|
4
4
|
const MoosendGetCampaignStatsByLocationInput = zod.z.object({ campaign_id: zod.z.string().describe("The unique identifier of the campaign to retrieve location statistics for.") }).describe("Request schema for retrieving campaign statistics by country.");
|
|
5
5
|
const MoosendGetCampaignStatsByLocationOutput = zod.z.object({
|
|
6
|
-
Code: zod.z.number().int().describe("Response code from Moosend API. 0 indicates success, other values indicate errors."),
|
|
6
|
+
Code: zod.z.number().int().describe("Response code from Moosend API. 0 indicates success, other values indicate errors.").nullable(),
|
|
7
7
|
Error: zod.z.string().describe("Error message if the request failed; null when successful.").nullable().optional(),
|
|
8
8
|
Context: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Complete location statistics data containing detailed report of campaign opens (unique and total) by country. Null when an error occurs.").nullable().optional()
|
|
9
9
|
}).describe("Response schema for retrieving campaign statistics by country.");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-campaign-stats-by-location.cjs","names":["z","action"],"sources":["../../src/actions/get-campaign-stats-by-location.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoosendGetCampaignStatsByLocationInput
|
|
1
|
+
{"version":3,"file":"get-campaign-stats-by-location.cjs","names":["z","action"],"sources":["../../src/actions/get-campaign-stats-by-location.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoosendGetCampaignStatsByLocationInput = z.object({\n campaign_id: z.string().describe(\"The unique identifier of the campaign to retrieve location statistics for.\"),\n}).describe(\"Request schema for retrieving campaign statistics by country.\");\nexport const MoosendGetCampaignStatsByLocationOutput = z.object({\n Code: z.number().int().describe(\"Response code from Moosend API. 0 indicates success, other values indicate errors.\").nullable(),\n Error: z.string().describe(\"Error message if the request failed; null when successful.\").nullable().optional(),\n Context: z.record(z.string(), z.unknown()).describe(\"Complete location statistics data containing detailed report of campaign opens (unique and total) by country. Null when an error occurs.\").nullable().optional(),\n}).describe(\"Response schema for retrieving campaign statistics by country.\");\n\nexport const moosendGetCampaignStatsByLocation = action(\"MOOSEND_GET_CAMPAIGN_STATS_BY_LOCATION\", {\n slug: \"moosend-get-campaign-stats-by-location\",\n name: \"Get Campaign Stats by Location\",\n description: \"Retrieves a detailed report of campaign opens (unique and total) by country. Use this when you need to analyze the geographic distribution of email campaign engagement.\",\n input: MoosendGetCampaignStatsByLocationInput,\n output: MoosendGetCampaignStatsByLocationOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yCAAyCA,IAAAA,EAAE,OAAO,EAC7D,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4EAA4E,EAC/G,CAAC,CAAC,CAAC,SAAS,+DAA+D;AAC3E,MAAa,0CAA0CA,IAAAA,EAAE,OAAO;CAC9D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oFAAoF,CAAC,CAAC,SAAS;CAC/H,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7G,SAASA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,0IAA0I,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACtN,CAAC,CAAC,CAAC,SAAS,gEAAgE;AAE5E,MAAa,oCAAoCC,eAAAA,OAAO,0CAA0C;CAChG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,17 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-campaign-stats-by-location.d.ts
|
|
4
|
-
declare const MoosendGetCampaignStatsByLocationInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const MoosendGetCampaignStatsByLocationInput: z.ZodObject<{
|
|
5
|
+
campaign_id: z.ZodString;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
declare const MoosendGetCampaignStatsByLocationOutput: z.ZodObject<{
|
|
8
|
+
Code: z.ZodNullable<z.ZodNumber>;
|
|
9
|
+
Error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
10
|
+
Context: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
11
|
+
}, z.core.$strip>;
|
|
12
|
+
declare const moosendGetCampaignStatsByLocation: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
13
|
+
campaign_id: string;
|
|
14
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
15
|
//#endregion
|
|
8
16
|
export { moosendGetCampaignStatsByLocation };
|
|
9
17
|
//# sourceMappingURL=get-campaign-stats-by-location.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-campaign-stats-by-location.d.cts","names":[],"sources":["../../src/actions/get-campaign-stats-by-location.ts"],"mappings":";;;cAIa,sCAAA,
|
|
1
|
+
{"version":3,"file":"get-campaign-stats-by-location.d.cts","names":[],"sources":["../../src/actions/get-campaign-stats-by-location.ts"],"mappings":";;;cAIa,sCAAA,EAAsC,CAAA,CAAA,SAAA;;;cAGtC,uCAAA,EAAuC,CAAA,CAAA,SAAA;;;;;cAMvC,iCAAA,gCAAiC,wBAAA"}
|
|
@@ -1,9 +1,17 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-campaign-stats-by-location.d.ts
|
|
4
|
-
declare const MoosendGetCampaignStatsByLocationInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const MoosendGetCampaignStatsByLocationInput: z.ZodObject<{
|
|
5
|
+
campaign_id: z.ZodString;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
declare const MoosendGetCampaignStatsByLocationOutput: z.ZodObject<{
|
|
8
|
+
Code: z.ZodNullable<z.ZodNumber>;
|
|
9
|
+
Error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
10
|
+
Context: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
11
|
+
}, z.core.$strip>;
|
|
12
|
+
declare const moosendGetCampaignStatsByLocation: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
13
|
+
campaign_id: string;
|
|
14
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
15
|
//#endregion
|
|
8
16
|
export { moosendGetCampaignStatsByLocation };
|
|
9
17
|
//# sourceMappingURL=get-campaign-stats-by-location.d.mts.map
|