@keystrokehq/moosend 0.1.0 → 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/action.cjs.map +1 -1
- package/dist/action.mjs.map +1 -1
- package/dist/actions/add-segment-criteria.cjs +2 -2
- 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 +2 -2
- package/dist/actions/add-segment-criteria.mjs.map +1 -1
- package/dist/actions/add-subscriber.cjs +2 -2
- 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 +2 -2
- package/dist/actions/add-subscriber.mjs.map +1 -1
- package/dist/actions/clone-campaign.cjs +2 -2
- 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 +2 -2
- package/dist/actions/clone-campaign.mjs.map +1 -1
- package/dist/actions/create-custom-field.cjs +2 -2
- 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 +2 -2
- package/dist/actions/create-custom-field.mjs.map +1 -1
- package/dist/actions/create-mailing-list.cjs +2 -2
- 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 +2 -2
- package/dist/actions/create-mailing-list.mjs.map +1 -1
- package/dist/actions/create-segment.cjs +3 -3
- package/dist/actions/create-segment.cjs.map +1 -1
- package/dist/actions/create-segment.d.cts +42 -3
- package/dist/actions/create-segment.d.cts.map +1 -1
- package/dist/actions/create-segment.d.mts +42 -3
- package/dist/actions/create-segment.d.mts.map +1 -1
- package/dist/actions/create-segment.mjs +3 -3
- 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 +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 +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 +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 +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 +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 +1 -1
- package/dist/actions/delete-mailing-list.mjs.map +1 -1
- package/dist/actions/get-all-campaigns.cjs +3 -3
- 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 +3 -3
- package/dist/actions/get-all-campaigns.mjs.map +1 -1
- package/dist/actions/get-all-subscribers.cjs +18 -18
- 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 +18 -18
- package/dist/actions/get-all-subscribers.mjs.map +1 -1
- package/dist/actions/get-campaign-details.cjs +2 -2
- 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 +2 -2
- package/dist/actions/get-campaign-details.mjs.map +1 -1
- package/dist/actions/get-campaign-stats-by-location.cjs +2 -2
- 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 +2 -2
- package/dist/actions/get-campaign-stats-by-location.mjs.map +1 -1
- package/dist/actions/get-mailing-list-details.cjs +16 -16
- 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 +16 -16
- package/dist/actions/get-mailing-list-details.mjs.map +1 -1
- package/dist/actions/get-subscriber-by-email.cjs +11 -11
- 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 +11 -11
- package/dist/actions/get-subscriber-by-email.mjs.map +1 -1
- package/dist/actions/list-all-mailing-lists.cjs +23 -23
- 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 +23 -23
- package/dist/actions/list-all-mailing-lists.mjs.map +1 -1
- package/dist/actions/list-all-senders.cjs +3 -3
- 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 +3 -3
- package/dist/actions/list-all-senders.mjs.map +1 -1
- package/dist/actions/list-campaigns-with-paging.cjs +12 -12
- 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 +12 -12
- package/dist/actions/list-campaigns-with-paging.mjs.map +1 -1
- package/dist/actions/list-segments.cjs +6 -6
- 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 +6 -6
- package/dist/actions/list-segments.mjs.map +1 -1
- package/dist/actions/remove-multiple-subscribers.cjs +2 -2
- 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 +2 -2
- 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 +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 +1 -1
- package/dist/actions/schedule-campaign.mjs.map +1 -1
- package/dist/actions/send-campaign.cjs +2 -2
- 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 +2 -2
- 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 +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 +1 -1
- package/dist/actions/unschedule-campaign.mjs.map +1 -1
- package/dist/actions/unsubscribe-from-account.cjs +2 -2
- 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 +2 -2
- package/dist/actions/unsubscribe-from-account.mjs.map +1 -1
- package/dist/actions/unsubscribe-from-mailing-list.cjs +2 -2
- 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 +2 -2
- package/dist/actions/unsubscribe-from-mailing-list.mjs.map +1 -1
- package/dist/actions/update-campaign.cjs +3 -3
- package/dist/actions/update-campaign.cjs.map +1 -1
- package/dist/actions/update-campaign.d.cts +64 -3
- package/dist/actions/update-campaign.d.cts.map +1 -1
- package/dist/actions/update-campaign.d.mts +64 -3
- package/dist/actions/update-campaign.d.mts.map +1 -1
- package/dist/actions/update-campaign.mjs +3 -3
- package/dist/actions/update-campaign.mjs.map +1 -1
- package/dist/actions/update-custom-field.cjs +2 -2
- 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 +2 -2
- package/dist/actions/update-custom-field.mjs.map +1 -1
- package/dist/actions/update-mailing-list.cjs +10 -10
- 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 +10 -10
- package/dist/actions/update-mailing-list.mjs.map +1 -1
- package/dist/actions/update-segment-criteria.cjs +2 -2
- 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 +2 -2
- package/dist/actions/update-segment-criteria.mjs.map +1 -1
- package/dist/actions/update-segment.cjs +4 -4
- package/dist/actions/update-segment.cjs.map +1 -1
- package/dist/actions/update-segment.d.cts +53 -3
- package/dist/actions/update-segment.d.cts.map +1 -1
- package/dist/actions/update-segment.d.mts +53 -3
- package/dist/actions/update-segment.d.mts.map +1 -1
- package/dist/actions/update-segment.mjs +4 -4
- package/dist/actions/update-segment.mjs.map +1 -1
- package/dist/actions/update-subscriber.cjs +2 -2
- 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 +2 -2
- 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,40 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/update-custom-field.d.ts
|
|
4
|
-
declare const MoosendUpdateCustomFieldInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const MoosendUpdateCustomFieldInput: z.ZodObject<{
|
|
5
|
+
name: z.ZodString;
|
|
6
|
+
format: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
7
|
+
json: "json";
|
|
8
|
+
xml: "xml";
|
|
9
|
+
}>>>;
|
|
10
|
+
options: z.ZodOptional<z.ZodString>;
|
|
11
|
+
is_hidden: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
12
|
+
is_required: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
13
|
+
custom_field_id: z.ZodString;
|
|
14
|
+
mailing_list_id: z.ZodString;
|
|
15
|
+
custom_field_type: z.ZodOptional<z.ZodEnum<{
|
|
16
|
+
Text: "Text";
|
|
17
|
+
Number: "Number";
|
|
18
|
+
DateTime: "DateTime";
|
|
19
|
+
SingleSelectDropdown: "SingleSelectDropdown";
|
|
20
|
+
CheckBox: "CheckBox";
|
|
21
|
+
}>>;
|
|
22
|
+
}, z.core.$strip>;
|
|
23
|
+
declare const MoosendUpdateCustomFieldOutput: z.ZodObject<{
|
|
24
|
+
Code: z.ZodNullable<z.ZodNumber>;
|
|
25
|
+
Error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
26
|
+
Context: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27
|
+
}, z.core.$loose>;
|
|
28
|
+
declare const moosendUpdateCustomField: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
29
|
+
name: string;
|
|
30
|
+
custom_field_id: string;
|
|
31
|
+
mailing_list_id: string;
|
|
32
|
+
format?: "json" | "xml" | undefined;
|
|
33
|
+
options?: string | undefined;
|
|
34
|
+
is_hidden?: boolean | undefined;
|
|
35
|
+
is_required?: boolean | undefined;
|
|
36
|
+
custom_field_type?: "Text" | "Number" | "DateTime" | "SingleSelectDropdown" | "CheckBox" | undefined;
|
|
37
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
38
|
//#endregion
|
|
8
39
|
export { moosendUpdateCustomField };
|
|
9
40
|
//# sourceMappingURL=update-custom-field.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-custom-field.d.cts","names":[],"sources":["../../src/actions/update-custom-field.ts"],"mappings":";;;cAIa,6BAAA,
|
|
1
|
+
{"version":3,"file":"update-custom-field.d.cts","names":[],"sources":["../../src/actions/update-custom-field.ts"],"mappings":";;;cAIa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;cAU7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;cAM9B,wBAAA,gCAAwB,wBAAA"}
|
|
@@ -1,9 +1,40 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/update-custom-field.d.ts
|
|
4
|
-
declare const MoosendUpdateCustomFieldInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const MoosendUpdateCustomFieldInput: z.ZodObject<{
|
|
5
|
+
name: z.ZodString;
|
|
6
|
+
format: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
7
|
+
json: "json";
|
|
8
|
+
xml: "xml";
|
|
9
|
+
}>>>;
|
|
10
|
+
options: z.ZodOptional<z.ZodString>;
|
|
11
|
+
is_hidden: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
12
|
+
is_required: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
13
|
+
custom_field_id: z.ZodString;
|
|
14
|
+
mailing_list_id: z.ZodString;
|
|
15
|
+
custom_field_type: z.ZodOptional<z.ZodEnum<{
|
|
16
|
+
Text: "Text";
|
|
17
|
+
Number: "Number";
|
|
18
|
+
DateTime: "DateTime";
|
|
19
|
+
SingleSelectDropdown: "SingleSelectDropdown";
|
|
20
|
+
CheckBox: "CheckBox";
|
|
21
|
+
}>>;
|
|
22
|
+
}, z.core.$strip>;
|
|
23
|
+
declare const MoosendUpdateCustomFieldOutput: z.ZodObject<{
|
|
24
|
+
Code: z.ZodNullable<z.ZodNumber>;
|
|
25
|
+
Error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
26
|
+
Context: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27
|
+
}, z.core.$loose>;
|
|
28
|
+
declare const moosendUpdateCustomField: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
29
|
+
name: string;
|
|
30
|
+
custom_field_id: string;
|
|
31
|
+
mailing_list_id: string;
|
|
32
|
+
format?: "json" | "xml" | undefined;
|
|
33
|
+
options?: string | undefined;
|
|
34
|
+
is_hidden?: boolean | undefined;
|
|
35
|
+
is_required?: boolean | undefined;
|
|
36
|
+
custom_field_type?: "Text" | "Number" | "DateTime" | "SingleSelectDropdown" | "CheckBox" | undefined;
|
|
37
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
38
|
//#endregion
|
|
8
39
|
export { moosendUpdateCustomField };
|
|
9
40
|
//# sourceMappingURL=update-custom-field.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-custom-field.d.mts","names":[],"sources":["../../src/actions/update-custom-field.ts"],"mappings":";;;cAIa,6BAAA,
|
|
1
|
+
{"version":3,"file":"update-custom-field.d.mts","names":[],"sources":["../../src/actions/update-custom-field.ts"],"mappings":";;;cAIa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;cAU7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;cAM9B,wBAAA,gCAAwB,wBAAA"}
|
|
@@ -21,10 +21,10 @@ const moosendUpdateCustomField = action("MOOSEND_UPDATE_CUSTOM_FIELD", {
|
|
|
21
21
|
]).describe("Specifies the data type of the custom field; one of 'Text', 'Number', 'DateTime', 'SingleSelectDropdown', 'CheckBox'.").optional()
|
|
22
22
|
}),
|
|
23
23
|
output: z.object({
|
|
24
|
-
Code: z.number().int().describe("Response code; 0 indicates success."),
|
|
24
|
+
Code: z.number().int().describe("Response code; 0 indicates success.").nullable(),
|
|
25
25
|
Error: z.string().describe("Error message if the request failed; null if successful.").nullable().optional(),
|
|
26
26
|
Context: z.string().describe("Additional context or details; null if successful.").nullable().optional()
|
|
27
|
-
})
|
|
27
|
+
}).passthrough()
|
|
28
28
|
});
|
|
29
29
|
//#endregion
|
|
30
30
|
export { moosendUpdateCustomField };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-custom-field.mjs","names":[],"sources":["../../src/actions/update-custom-field.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoosendUpdateCustomFieldInput
|
|
1
|
+
{"version":3,"file":"update-custom-field.mjs","names":[],"sources":["../../src/actions/update-custom-field.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoosendUpdateCustomFieldInput = z.object({\n name: z.string().describe(\"The new name for the custom field.\"),\n format: z.enum([\"json\", \"xml\"]).default(\"json\").describe(\"The response format. Use 'json' for JSON responses and 'xml' for XML responses.\").optional(),\n options: z.string().describe(\"Comma-separated options for 'SingleSelectDropdown'; required if custom_field_type is 'SingleSelectDropdown'.\").optional(),\n is_hidden: z.boolean().default(false).describe(\"Whether the custom field is hidden from subscribers on the update profile page.\").optional(),\n is_required: z.boolean().default(false).describe(\"Whether the custom field is mandatory when adding a subscriber.\").optional(),\n custom_field_id: z.string().describe(\"The ID of the custom field to update.\"),\n mailing_list_id: z.string().describe(\"The ID of the mailing list containing the custom field.\"),\n custom_field_type: z.enum([\"Text\", \"Number\", \"DateTime\", \"SingleSelectDropdown\", \"CheckBox\"]).describe(\"Specifies the data type of the custom field; one of 'Text', 'Number', 'DateTime', 'SingleSelectDropdown', 'CheckBox'.\").optional(),\n});\nexport const MoosendUpdateCustomFieldOutput = 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 if successful.\").nullable().optional(),\n Context: z.string().describe(\"Additional context or details; null if successful.\").nullable().optional(),\n}).passthrough();\n\nexport const moosendUpdateCustomField = action(\"MOOSEND_UPDATE_CUSTOM_FIELD\", {\n slug: \"moosend-update-custom-field\",\n name: \"Update custom field\",\n description: \"Tool to update properties of an existing custom field in a mailing list. Use after confirming mailing list and custom field IDs.\",\n input: MoosendUpdateCustomFieldInput,\n output: MoosendUpdateCustomFieldOutput,\n});\n"],"mappings":";;AAoBA,MAAa,2BAA2B,OAAO,+BAA+B;CAC5E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OApB2C,EAAE,OAAO;EACpD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC;EAC9D,QAAQ,EAAE,KAAK,CAAC,QAAQ,KAAK,CAAC,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS;EACrJ,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,8GAA8G,CAAC,CAAC,SAAS;EACtJ,WAAW,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS;EAC3I,aAAa,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;EAC7H,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;EAC5E,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD;EAC9F,mBAAmB,EAAE,KAAK;GAAC;GAAQ;GAAU;GAAY;GAAwB;EAAU,CAAC,CAAC,CAAC,SAAS,uHAAuH,CAAC,CAAC,SAAS;CAC3O,CAWS;CACP,QAX4C,EAAE,OAAO;EACrD,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;EAChF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3G,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzG,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
|
|
@@ -11,20 +11,20 @@ const MoosendUpdateMailingListInput = zod.z.object({
|
|
|
11
11
|
mailing_list_id: zod.z.string().describe("The unique identifier of the mailing list to update.")
|
|
12
12
|
}).describe("Request schema for `UpdateMailingList`");
|
|
13
13
|
const MoosendUpdateMailingList_MailingListContextSchema = zod.z.object({
|
|
14
|
-
ID: zod.z.string().describe("The mailing list ID."),
|
|
15
|
-
Name: zod.z.string().describe("Mailing list name."),
|
|
16
|
-
CreatedOn: zod.z.string().describe("Date-time when the list was created."),
|
|
17
|
-
UpdatedOn: zod.z.string().describe("Date-time when the list was last updated."),
|
|
18
|
-
SenderName: zod.z.string().describe("Sender name."),
|
|
14
|
+
ID: zod.z.string().describe("The mailing list ID.").nullable(),
|
|
15
|
+
Name: zod.z.string().describe("Mailing list name.").nullable(),
|
|
16
|
+
CreatedOn: zod.z.string().describe("Date-time when the list was created.").nullable(),
|
|
17
|
+
UpdatedOn: zod.z.string().describe("Date-time when the list was last updated.").nullable(),
|
|
18
|
+
SenderName: zod.z.string().describe("Sender name.").nullable(),
|
|
19
19
|
Description: zod.z.string().describe("Mailing list description.").nullable().optional(),
|
|
20
|
-
SenderEmail: zod.z.string().describe("Sender email address."),
|
|
21
|
-
ReplyToEmail: zod.z.string().describe("Reply-to email address.")
|
|
22
|
-
}).describe("Context schema containing updated mailing list details");
|
|
20
|
+
SenderEmail: zod.z.string().describe("Sender email address.").nullable(),
|
|
21
|
+
ReplyToEmail: zod.z.string().describe("Reply-to email address.").nullable()
|
|
22
|
+
}).passthrough().describe("Context schema containing updated mailing list details");
|
|
23
23
|
const MoosendUpdateMailingListOutput = zod.z.object({
|
|
24
|
-
Code: zod.z.number().int().describe("Response code; 0 indicates success."),
|
|
24
|
+
Code: zod.z.number().int().describe("Response code; 0 indicates success.").nullable(),
|
|
25
25
|
Error: zod.z.string().describe("Error message if any.").nullable().optional(),
|
|
26
26
|
Context: zod.z.union([MoosendUpdateMailingList_MailingListContextSchema, zod.z.string()]).nullable().optional()
|
|
27
|
-
}).describe("Response schema for `UpdateMailingList`");
|
|
27
|
+
}).passthrough().describe("Response schema for `UpdateMailingList`");
|
|
28
28
|
const moosendUpdateMailingList = require_action.action("MOOSEND_UPDATE_MAILING_LIST", {
|
|
29
29
|
slug: "moosend-update-mailing-list",
|
|
30
30
|
name: "Update Mailing List",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-mailing-list.cjs","names":["z","action"],"sources":["../../src/actions/update-mailing-list.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoosendUpdateMailingListInput
|
|
1
|
+
{"version":3,"file":"update-mailing-list.cjs","names":["z","action"],"sources":["../../src/actions/update-mailing-list.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoosendUpdateMailingListInput = z.object({\n name: z.string().describe(\"New name for the mailing list.\").optional(),\n format: z.string().default(\"json\").describe(\"Response format, either 'json' or 'xml'.\").optional(),\n description: z.string().describe(\"A description for the mailing list.\").optional(),\n sender_name: z.string().describe(\"Sender name for the mailing list.\").optional(),\n sender_email: z.string().describe(\"Sender email address for the mailing list.\").optional(),\n reply_to_email: z.string().describe(\"Reply-to email address for the mailing list.\").optional(),\n mailing_list_id: z.string().describe(\"The unique identifier of the mailing list to update.\"),\n}).describe(\"Request schema for `UpdateMailingList`\");\nconst MoosendUpdateMailingList_MailingListContextSchema = z.object({\n ID: z.string().describe(\"The mailing list ID.\").nullable(),\n Name: z.string().describe(\"Mailing list name.\").nullable(),\n CreatedOn: z.string().describe(\"Date-time when the list was created.\").nullable(),\n UpdatedOn: z.string().describe(\"Date-time when the list was last updated.\").nullable(),\n SenderName: z.string().describe(\"Sender name.\").nullable(),\n Description: z.string().describe(\"Mailing list description.\").nullable().optional(),\n SenderEmail: z.string().describe(\"Sender email address.\").nullable(),\n ReplyToEmail: z.string().describe(\"Reply-to email address.\").nullable(),\n}).passthrough().describe(\"Context schema containing updated mailing list details\");\nexport const MoosendUpdateMailingListOutput = z.object({\n Code: z.number().int().describe(\"Response code; 0 indicates success.\").nullable(),\n Error: z.string().describe(\"Error message if any.\").nullable().optional(),\n Context: z.union([MoosendUpdateMailingList_MailingListContextSchema, z.string()]).nullable().optional(),\n}).passthrough().describe(\"Response schema for `UpdateMailingList`\");\n\nexport const moosendUpdateMailingList = action(\"MOOSEND_UPDATE_MAILING_LIST\", {\n slug: \"moosend-update-mailing-list\",\n name: \"Update Mailing List\",\n description: \"Tool to update the properties of an existing mailing list. Use when you need to change list metadata after confirming the list ID.\",\n input: MoosendUpdateMailingListInput,\n output: MoosendUpdateMailingListOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAAgCA,IAAAA,EAAE,OAAO;CACpD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACrE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CACjG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CACjF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CAC/E,cA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AE,MAAM,CAAC,mDAAmDA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACxG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yCAAyC;AAEnE,MAAa,2BAA2BC,eAAAA,OAAO,+BAA+B;CAC5E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,38 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/update-mailing-list.d.ts
|
|
4
|
-
declare const MoosendUpdateMailingListInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const MoosendUpdateMailingListInput: z.ZodObject<{
|
|
5
|
+
name: z.ZodOptional<z.ZodString>;
|
|
6
|
+
format: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
7
|
+
description: z.ZodOptional<z.ZodString>;
|
|
8
|
+
sender_name: z.ZodOptional<z.ZodString>;
|
|
9
|
+
sender_email: z.ZodOptional<z.ZodString>;
|
|
10
|
+
reply_to_email: z.ZodOptional<z.ZodString>;
|
|
11
|
+
mailing_list_id: z.ZodString;
|
|
12
|
+
}, z.core.$strip>;
|
|
13
|
+
declare const MoosendUpdateMailingListOutput: z.ZodObject<{
|
|
14
|
+
Code: z.ZodNullable<z.ZodNumber>;
|
|
15
|
+
Error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
|
+
Context: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
|
|
17
|
+
ID: z.ZodNullable<z.ZodString>;
|
|
18
|
+
Name: z.ZodNullable<z.ZodString>;
|
|
19
|
+
CreatedOn: z.ZodNullable<z.ZodString>;
|
|
20
|
+
UpdatedOn: z.ZodNullable<z.ZodString>;
|
|
21
|
+
SenderName: z.ZodNullable<z.ZodString>;
|
|
22
|
+
Description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
23
|
+
SenderEmail: z.ZodNullable<z.ZodString>;
|
|
24
|
+
ReplyToEmail: z.ZodNullable<z.ZodString>;
|
|
25
|
+
}, z.core.$loose>, z.ZodString]>>>;
|
|
26
|
+
}, z.core.$loose>;
|
|
27
|
+
declare const moosendUpdateMailingList: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
28
|
+
mailing_list_id: string;
|
|
29
|
+
name?: string | undefined;
|
|
30
|
+
format?: string | undefined;
|
|
31
|
+
description?: string | undefined;
|
|
32
|
+
sender_name?: string | undefined;
|
|
33
|
+
sender_email?: string | undefined;
|
|
34
|
+
reply_to_email?: string | undefined;
|
|
35
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
36
|
//#endregion
|
|
8
37
|
export { moosendUpdateMailingList };
|
|
9
38
|
//# sourceMappingURL=update-mailing-list.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-mailing-list.d.cts","names":[],"sources":["../../src/actions/update-mailing-list.ts"],"mappings":";;;cAIa,6BAAA,
|
|
1
|
+
{"version":3,"file":"update-mailing-list.d.cts","names":[],"sources":["../../src/actions/update-mailing-list.ts"],"mappings":";;;cAIa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;cAmB7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cAM9B,wBAAA,gCAAwB,wBAAA"}
|
|
@@ -1,9 +1,38 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/update-mailing-list.d.ts
|
|
4
|
-
declare const MoosendUpdateMailingListInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const MoosendUpdateMailingListInput: z.ZodObject<{
|
|
5
|
+
name: z.ZodOptional<z.ZodString>;
|
|
6
|
+
format: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
7
|
+
description: z.ZodOptional<z.ZodString>;
|
|
8
|
+
sender_name: z.ZodOptional<z.ZodString>;
|
|
9
|
+
sender_email: z.ZodOptional<z.ZodString>;
|
|
10
|
+
reply_to_email: z.ZodOptional<z.ZodString>;
|
|
11
|
+
mailing_list_id: z.ZodString;
|
|
12
|
+
}, z.core.$strip>;
|
|
13
|
+
declare const MoosendUpdateMailingListOutput: z.ZodObject<{
|
|
14
|
+
Code: z.ZodNullable<z.ZodNumber>;
|
|
15
|
+
Error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
|
+
Context: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
|
|
17
|
+
ID: z.ZodNullable<z.ZodString>;
|
|
18
|
+
Name: z.ZodNullable<z.ZodString>;
|
|
19
|
+
CreatedOn: z.ZodNullable<z.ZodString>;
|
|
20
|
+
UpdatedOn: z.ZodNullable<z.ZodString>;
|
|
21
|
+
SenderName: z.ZodNullable<z.ZodString>;
|
|
22
|
+
Description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
23
|
+
SenderEmail: z.ZodNullable<z.ZodString>;
|
|
24
|
+
ReplyToEmail: z.ZodNullable<z.ZodString>;
|
|
25
|
+
}, z.core.$loose>, z.ZodString]>>>;
|
|
26
|
+
}, z.core.$loose>;
|
|
27
|
+
declare const moosendUpdateMailingList: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
28
|
+
mailing_list_id: string;
|
|
29
|
+
name?: string | undefined;
|
|
30
|
+
format?: string | undefined;
|
|
31
|
+
description?: string | undefined;
|
|
32
|
+
sender_name?: string | undefined;
|
|
33
|
+
sender_email?: string | undefined;
|
|
34
|
+
reply_to_email?: string | undefined;
|
|
35
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
36
|
//#endregion
|
|
8
37
|
export { moosendUpdateMailingList };
|
|
9
38
|
//# sourceMappingURL=update-mailing-list.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-mailing-list.d.mts","names":[],"sources":["../../src/actions/update-mailing-list.ts"],"mappings":";;;cAIa,6BAAA,
|
|
1
|
+
{"version":3,"file":"update-mailing-list.d.mts","names":[],"sources":["../../src/actions/update-mailing-list.ts"],"mappings":";;;cAIa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;cAmB7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cAM9B,wBAAA,gCAAwB,wBAAA"}
|
|
@@ -11,25 +11,25 @@ const MoosendUpdateMailingListInput = z.object({
|
|
|
11
11
|
mailing_list_id: z.string().describe("The unique identifier of the mailing list to update.")
|
|
12
12
|
}).describe("Request schema for `UpdateMailingList`");
|
|
13
13
|
const MoosendUpdateMailingList_MailingListContextSchema = z.object({
|
|
14
|
-
ID: z.string().describe("The mailing list ID."),
|
|
15
|
-
Name: z.string().describe("Mailing list name."),
|
|
16
|
-
CreatedOn: z.string().describe("Date-time when the list was created."),
|
|
17
|
-
UpdatedOn: z.string().describe("Date-time when the list was last updated."),
|
|
18
|
-
SenderName: z.string().describe("Sender name."),
|
|
14
|
+
ID: z.string().describe("The mailing list ID.").nullable(),
|
|
15
|
+
Name: z.string().describe("Mailing list name.").nullable(),
|
|
16
|
+
CreatedOn: z.string().describe("Date-time when the list was created.").nullable(),
|
|
17
|
+
UpdatedOn: z.string().describe("Date-time when the list was last updated.").nullable(),
|
|
18
|
+
SenderName: z.string().describe("Sender name.").nullable(),
|
|
19
19
|
Description: z.string().describe("Mailing list description.").nullable().optional(),
|
|
20
|
-
SenderEmail: z.string().describe("Sender email address."),
|
|
21
|
-
ReplyToEmail: z.string().describe("Reply-to email address.")
|
|
22
|
-
}).describe("Context schema containing updated mailing list details");
|
|
20
|
+
SenderEmail: z.string().describe("Sender email address.").nullable(),
|
|
21
|
+
ReplyToEmail: z.string().describe("Reply-to email address.").nullable()
|
|
22
|
+
}).passthrough().describe("Context schema containing updated mailing list details");
|
|
23
23
|
const moosendUpdateMailingList = action("MOOSEND_UPDATE_MAILING_LIST", {
|
|
24
24
|
slug: "moosend-update-mailing-list",
|
|
25
25
|
name: "Update Mailing List",
|
|
26
26
|
description: "Tool to update the properties of an existing mailing list. Use when you need to change list metadata after confirming the list ID.",
|
|
27
27
|
input: MoosendUpdateMailingListInput,
|
|
28
28
|
output: z.object({
|
|
29
|
-
Code: z.number().int().describe("Response code; 0 indicates success."),
|
|
29
|
+
Code: z.number().int().describe("Response code; 0 indicates success.").nullable(),
|
|
30
30
|
Error: z.string().describe("Error message if any.").nullable().optional(),
|
|
31
31
|
Context: z.union([MoosendUpdateMailingList_MailingListContextSchema, z.string()]).nullable().optional()
|
|
32
|
-
}).describe("Response schema for `UpdateMailingList`")
|
|
32
|
+
}).passthrough().describe("Response schema for `UpdateMailingList`")
|
|
33
33
|
});
|
|
34
34
|
//#endregion
|
|
35
35
|
export { moosendUpdateMailingList };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-mailing-list.mjs","names":[],"sources":["../../src/actions/update-mailing-list.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoosendUpdateMailingListInput
|
|
1
|
+
{"version":3,"file":"update-mailing-list.mjs","names":[],"sources":["../../src/actions/update-mailing-list.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoosendUpdateMailingListInput = z.object({\n name: z.string().describe(\"New name for the mailing list.\").optional(),\n format: z.string().default(\"json\").describe(\"Response format, either 'json' or 'xml'.\").optional(),\n description: z.string().describe(\"A description for the mailing list.\").optional(),\n sender_name: z.string().describe(\"Sender name for the mailing list.\").optional(),\n sender_email: z.string().describe(\"Sender email address for the mailing list.\").optional(),\n reply_to_email: z.string().describe(\"Reply-to email address for the mailing list.\").optional(),\n mailing_list_id: z.string().describe(\"The unique identifier of the mailing list to update.\"),\n}).describe(\"Request schema for `UpdateMailingList`\");\nconst MoosendUpdateMailingList_MailingListContextSchema = z.object({\n ID: z.string().describe(\"The mailing list ID.\").nullable(),\n Name: z.string().describe(\"Mailing list name.\").nullable(),\n CreatedOn: z.string().describe(\"Date-time when the list was created.\").nullable(),\n UpdatedOn: z.string().describe(\"Date-time when the list was last updated.\").nullable(),\n SenderName: z.string().describe(\"Sender name.\").nullable(),\n Description: z.string().describe(\"Mailing list description.\").nullable().optional(),\n SenderEmail: z.string().describe(\"Sender email address.\").nullable(),\n ReplyToEmail: z.string().describe(\"Reply-to email address.\").nullable(),\n}).passthrough().describe(\"Context schema containing updated mailing list details\");\nexport const MoosendUpdateMailingListOutput = z.object({\n Code: z.number().int().describe(\"Response code; 0 indicates success.\").nullable(),\n Error: z.string().describe(\"Error message if any.\").nullable().optional(),\n Context: z.union([MoosendUpdateMailingList_MailingListContextSchema, z.string()]).nullable().optional(),\n}).passthrough().describe(\"Response schema for `UpdateMailingList`\");\n\nexport const moosendUpdateMailingList = action(\"MOOSEND_UPDATE_MAILING_LIST\", {\n slug: \"moosend-update-mailing-list\",\n name: \"Update Mailing List\",\n description: \"Tool to update the properties of an existing mailing list. Use when you need to change list metadata after confirming the list ID.\",\n input: MoosendUpdateMailingListInput,\n output: MoosendUpdateMailingListOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAAgC,EAAE,OAAO;CACpD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACrE,QAAQ,EAAE,OAAO,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CACjG,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CACjF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CAC/E,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CACzF,gBAAgB,EAAE,OAAO,CA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C"}
|
|
@@ -13,10 +13,10 @@ const MoosendUpdateSegmentCriteriaInput = zod.z.object({
|
|
|
13
13
|
mailing_list_id: zod.z.string().describe("The ID of the mailing list the specified segment belongs to.")
|
|
14
14
|
}).describe("Request schema for updating an existing criterion in a segment.");
|
|
15
15
|
const MoosendUpdateSegmentCriteriaOutput = zod.z.object({
|
|
16
|
-
Code: zod.z.number().int().describe("Response code; 0 indicates success."),
|
|
16
|
+
Code: zod.z.number().int().describe("Response code; 0 indicates success.").nullable(),
|
|
17
17
|
Error: zod.z.string().describe("Error message; null if successful.").nullable().optional(),
|
|
18
18
|
Context: zod.z.number().int().describe("Contains the updated criteria ID.").nullable().optional()
|
|
19
|
-
}).describe("Response schema for UpdateSegmentCriteria action.");
|
|
19
|
+
}).passthrough().describe("Response schema for UpdateSegmentCriteria action.");
|
|
20
20
|
const moosendUpdateSegmentCriteria = require_action.action("MOOSEND_UPDATE_SEGMENT_CRITERIA", {
|
|
21
21
|
slug: "moosend-update-segment-criteria",
|
|
22
22
|
name: "Update Segment Criteria",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-segment-criteria.cjs","names":["z","action"],"sources":["../../src/actions/update-segment-criteria.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoosendUpdateSegmentCriteriaInput
|
|
1
|
+
{"version":3,"file":"update-segment-criteria.cjs","names":["z","action"],"sources":["../../src/actions/update-segment-criteria.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoosendUpdateSegmentCriteriaInput = z.object({\n field: z.string().describe(\"The field of the criterion to filter the mailing list by (e.g., 'Email', 'Name', custom field names).\"),\n value: z.string().describe(\"A search term to filter the specified field by.\"),\n format: z.enum([\"json\", \"xml\"]).default(\"json\").describe(\"Response format. Use 'json' (recommended and default) or 'xml'. Note: XML responses require additional parsing.\").optional(),\n date_to: z.string().describe(\"Provides an additional filter option to be combined with date-based fields. Format: ISO 8601 date string.\").optional(),\n comparer: z.string().default(\"Is\").describe(\"An operator that defines the way to compare a criterion field with its value (e.g., 'Is', 'IsNot', 'Contains', 'NotContains', 'StartsWith', 'EndsWith').\").optional(),\n date_from: z.string().describe(\"Provides an additional filter option to be combined with date-based fields. Format: ISO 8601 date string.\").optional(),\n segment_id: z.string().describe(\"The ID of the segment containing the criterion to update.\"),\n criteria_id: z.number().int().describe(\"The ID of the criterion to update.\"),\n mailing_list_id: z.string().describe(\"The ID of the mailing list the specified segment belongs to.\"),\n}).describe(\"Request schema for updating an existing criterion in a segment.\");\nexport const MoosendUpdateSegmentCriteriaOutput = 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.number().int().describe(\"Contains the updated criteria ID.\").nullable().optional(),\n}).passthrough().describe(\"Response schema for UpdateSegmentCriteria action.\");\n\nexport const moosendUpdateSegmentCriteria = action(\"MOOSEND_UPDATE_SEGMENT_CRITERIA\", {\n slug: \"moosend-update-segment-criteria\",\n name: \"Update Segment Criteria\",\n description: \"Tool to update an existing criterion in a segment. Use when you need to modify filtering rules for a mailing list segment.\",\n input: MoosendUpdateSegmentCriteriaInput,\n output: MoosendUpdateSegmentCriteriaOutput,\n});\n"],"mappings":";;;AAIA,MAAa,oCAAoCA,IAAAA,EAAE,OAAO;CACxD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uGAAuG;CAClI,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD;CAC5E,QAAQA,IAAAA,EAAE,KAAK,CAAC,QAAQ,KAAK,CAAC,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,iHAAiH,CAAC,CAAC,SAAS;CACrL,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2GAA2G,CAAC,CAAC,SAAS;CACnJ,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,0JAA0J,CAAC,CAAC,SAAS;CACjN,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2GAA2G,CAAC,CAAC,SAAS;CACrJ,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D;CAC3F,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC;CAC3E,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D;AACrG,CAAC,CAAC,CAAC,SAAS,iEAAiE;AAC7E,MAAa,qCAAqCA,IAAAA,EAAE,OAAO;CACzD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CAChF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAAmD;AAE7E,MAAa,+BAA+BC,eAAAA,OAAO,mCAAmC;CACpF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,36 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/update-segment-criteria.d.ts
|
|
4
|
-
declare const MoosendUpdateSegmentCriteriaInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const MoosendUpdateSegmentCriteriaInput: z.ZodObject<{
|
|
5
|
+
field: z.ZodString;
|
|
6
|
+
value: z.ZodString;
|
|
7
|
+
format: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
8
|
+
json: "json";
|
|
9
|
+
xml: "xml";
|
|
10
|
+
}>>>;
|
|
11
|
+
date_to: z.ZodOptional<z.ZodString>;
|
|
12
|
+
comparer: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
13
|
+
date_from: z.ZodOptional<z.ZodString>;
|
|
14
|
+
segment_id: z.ZodString;
|
|
15
|
+
criteria_id: z.ZodNumber;
|
|
16
|
+
mailing_list_id: z.ZodString;
|
|
17
|
+
}, z.core.$strip>;
|
|
18
|
+
declare const MoosendUpdateSegmentCriteriaOutput: z.ZodObject<{
|
|
19
|
+
Code: z.ZodNullable<z.ZodNumber>;
|
|
20
|
+
Error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
|
+
Context: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
22
|
+
}, z.core.$loose>;
|
|
23
|
+
declare const moosendUpdateSegmentCriteria: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
24
|
+
field: string;
|
|
25
|
+
value: string;
|
|
26
|
+
segment_id: string;
|
|
27
|
+
criteria_id: number;
|
|
28
|
+
mailing_list_id: string;
|
|
29
|
+
format?: "json" | "xml" | undefined;
|
|
30
|
+
date_to?: string | undefined;
|
|
31
|
+
comparer?: string | undefined;
|
|
32
|
+
date_from?: string | undefined;
|
|
33
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
34
|
//#endregion
|
|
8
35
|
export { moosendUpdateSegmentCriteria };
|
|
9
36
|
//# sourceMappingURL=update-segment-criteria.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-segment-criteria.d.cts","names":[],"sources":["../../src/actions/update-segment-criteria.ts"],"mappings":";;;cAIa,iCAAA,
|
|
1
|
+
{"version":3,"file":"update-segment-criteria.d.cts","names":[],"sources":["../../src/actions/update-segment-criteria.ts"],"mappings":";;;cAIa,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cAWjC,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;cAMlC,4BAAA,gCAA4B,wBAAA"}
|
|
@@ -1,9 +1,36 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/update-segment-criteria.d.ts
|
|
4
|
-
declare const MoosendUpdateSegmentCriteriaInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const MoosendUpdateSegmentCriteriaInput: z.ZodObject<{
|
|
5
|
+
field: z.ZodString;
|
|
6
|
+
value: z.ZodString;
|
|
7
|
+
format: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
8
|
+
json: "json";
|
|
9
|
+
xml: "xml";
|
|
10
|
+
}>>>;
|
|
11
|
+
date_to: z.ZodOptional<z.ZodString>;
|
|
12
|
+
comparer: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
13
|
+
date_from: z.ZodOptional<z.ZodString>;
|
|
14
|
+
segment_id: z.ZodString;
|
|
15
|
+
criteria_id: z.ZodNumber;
|
|
16
|
+
mailing_list_id: z.ZodString;
|
|
17
|
+
}, z.core.$strip>;
|
|
18
|
+
declare const MoosendUpdateSegmentCriteriaOutput: z.ZodObject<{
|
|
19
|
+
Code: z.ZodNullable<z.ZodNumber>;
|
|
20
|
+
Error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
|
+
Context: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
22
|
+
}, z.core.$loose>;
|
|
23
|
+
declare const moosendUpdateSegmentCriteria: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
24
|
+
field: string;
|
|
25
|
+
value: string;
|
|
26
|
+
segment_id: string;
|
|
27
|
+
criteria_id: number;
|
|
28
|
+
mailing_list_id: string;
|
|
29
|
+
format?: "json" | "xml" | undefined;
|
|
30
|
+
date_to?: string | undefined;
|
|
31
|
+
comparer?: string | undefined;
|
|
32
|
+
date_from?: string | undefined;
|
|
33
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
34
|
//#endregion
|
|
8
35
|
export { moosendUpdateSegmentCriteria };
|
|
9
36
|
//# sourceMappingURL=update-segment-criteria.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-segment-criteria.d.mts","names":[],"sources":["../../src/actions/update-segment-criteria.ts"],"mappings":";;;cAIa,iCAAA,
|
|
1
|
+
{"version":3,"file":"update-segment-criteria.d.mts","names":[],"sources":["../../src/actions/update-segment-criteria.ts"],"mappings":";;;cAIa,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cAWjC,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;cAMlC,4BAAA,gCAA4B,wBAAA"}
|
|
@@ -16,10 +16,10 @@ const moosendUpdateSegmentCriteria = action("MOOSEND_UPDATE_SEGMENT_CRITERIA", {
|
|
|
16
16
|
mailing_list_id: z.string().describe("The ID of the mailing list the specified segment belongs to.")
|
|
17
17
|
}).describe("Request schema for updating an existing criterion in a segment."),
|
|
18
18
|
output: z.object({
|
|
19
|
-
Code: z.number().int().describe("Response code; 0 indicates success."),
|
|
19
|
+
Code: z.number().int().describe("Response code; 0 indicates success.").nullable(),
|
|
20
20
|
Error: z.string().describe("Error message; null if successful.").nullable().optional(),
|
|
21
21
|
Context: z.number().int().describe("Contains the updated criteria ID.").nullable().optional()
|
|
22
|
-
}).describe("Response schema for UpdateSegmentCriteria action.")
|
|
22
|
+
}).passthrough().describe("Response schema for UpdateSegmentCriteria action.")
|
|
23
23
|
});
|
|
24
24
|
//#endregion
|
|
25
25
|
export { moosendUpdateSegmentCriteria };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-segment-criteria.mjs","names":[],"sources":["../../src/actions/update-segment-criteria.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoosendUpdateSegmentCriteriaInput
|
|
1
|
+
{"version":3,"file":"update-segment-criteria.mjs","names":[],"sources":["../../src/actions/update-segment-criteria.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoosendUpdateSegmentCriteriaInput = z.object({\n field: z.string().describe(\"The field of the criterion to filter the mailing list by (e.g., 'Email', 'Name', custom field names).\"),\n value: z.string().describe(\"A search term to filter the specified field by.\"),\n format: z.enum([\"json\", \"xml\"]).default(\"json\").describe(\"Response format. Use 'json' (recommended and default) or 'xml'. Note: XML responses require additional parsing.\").optional(),\n date_to: z.string().describe(\"Provides an additional filter option to be combined with date-based fields. Format: ISO 8601 date string.\").optional(),\n comparer: z.string().default(\"Is\").describe(\"An operator that defines the way to compare a criterion field with its value (e.g., 'Is', 'IsNot', 'Contains', 'NotContains', 'StartsWith', 'EndsWith').\").optional(),\n date_from: z.string().describe(\"Provides an additional filter option to be combined with date-based fields. Format: ISO 8601 date string.\").optional(),\n segment_id: z.string().describe(\"The ID of the segment containing the criterion to update.\"),\n criteria_id: z.number().int().describe(\"The ID of the criterion to update.\"),\n mailing_list_id: z.string().describe(\"The ID of the mailing list the specified segment belongs to.\"),\n}).describe(\"Request schema for updating an existing criterion in a segment.\");\nexport const MoosendUpdateSegmentCriteriaOutput = 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.number().int().describe(\"Contains the updated criteria ID.\").nullable().optional(),\n}).passthrough().describe(\"Response schema for UpdateSegmentCriteria action.\");\n\nexport const moosendUpdateSegmentCriteria = action(\"MOOSEND_UPDATE_SEGMENT_CRITERIA\", {\n slug: \"moosend-update-segment-criteria\",\n name: \"Update Segment Criteria\",\n description: \"Tool to update an existing criterion in a segment. Use when you need to modify filtering rules for a mailing list segment.\",\n input: MoosendUpdateSegmentCriteriaInput,\n output: MoosendUpdateSegmentCriteriaOutput,\n});\n"],"mappings":";;AAqBA,MAAa,+BAA+B,O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
9
|
Value: zod.z.string().describe("The value to compare against."),
|
|
10
10
|
Comparer: zod.z.string().describe("The comparison operator (e.g., Contains, Equals, NotEquals, GreaterThan, etc.).")
|
|
11
|
-
}).describe("A single filter criterion for segment matching.")).describe("Array of filter criteria for the segment. If provided, existing criteria will be replaced. If not provided, existing criteria are retained.").optional(),
|
|
11
|
+
}).passthrough().describe("A single filter criterion for segment matching.")).describe("Array of filter criteria for the segment. If provided, existing criteria will be replaced. If not provided, existing criteria are retained.").optional(),
|
|
12
12
|
FetchType: zod.z.enum([
|
|
13
13
|
"All",
|
|
14
14
|
"Top",
|
|
@@ -28,12 +28,12 @@ const MoosendUpdateSegment_SegmentContextSchema = zod.z.object({
|
|
|
28
28
|
MatchType: zod.z.string().describe("Match type: All or Any.").nullable().optional(),
|
|
29
29
|
UpdatedOn: zod.z.string().describe("Date-time when the segment was last updated.").nullable().optional(),
|
|
30
30
|
FetchValue: zod.z.number().int().describe("Fetch value for Top/TopPercent.").nullable().optional()
|
|
31
|
-
}).describe("Context schema containing updated segment details.");
|
|
31
|
+
}).passthrough().describe("Context schema containing updated segment details.");
|
|
32
32
|
const MoosendUpdateSegmentOutput = zod.z.object({
|
|
33
|
-
Code: zod.z.number().int().describe("Response code; 0 indicates success."),
|
|
33
|
+
Code: zod.z.number().int().describe("Response code; 0 indicates success.").nullable(),
|
|
34
34
|
Error: zod.z.string().describe("Error message if any; null if successful.").nullable().optional(),
|
|
35
35
|
Context: MoosendUpdateSegment_SegmentContextSchema.nullable().optional()
|
|
36
|
-
}).describe("Response schema for UpdateSegment action.");
|
|
36
|
+
}).passthrough().describe("Response schema for UpdateSegment action.");
|
|
37
37
|
const moosendUpdateSegment = require_action.action("MOOSEND_UPDATE_SEGMENT", {
|
|
38
38
|
slug: "moosend-update-segment",
|
|
39
39
|
name: "Update Segment",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-segment.cjs","names":["z","action"],"sources":["../../src/actions/update-segment.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoosendUpdateSegmentInput
|
|
1
|
+
{"version":3,"file":"update-segment.cjs","names":["z","action"],"sources":["../../src/actions/update-segment.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoosendUpdateSegmentInput = z.object({\n Name: z.string().describe(\"The new name for the segment. If not provided, the existing name is retained.\").optional(),\n format: z.enum([\"json\", \"xml\"]).default(\"json\").describe(\"Response format. Use 'json' (recommended and default) or 'xml'.\").optional(),\n Criteria: z.array(z.object({\n Field: z.string().describe(\"The field to filter on (e.g., Email, Name, or custom field name).\"),\n Value: z.string().describe(\"The value to compare against.\"),\n Comparer: z.string().describe(\"The comparison operator (e.g., Contains, Equals, NotEquals, GreaterThan, etc.).\"),\n}).passthrough().describe(\"A single filter criterion for segment matching.\")).describe(\"Array of filter criteria for the segment. If provided, existing criteria will be replaced. If not provided, existing criteria are retained.\").optional(),\n FetchType: z.enum([\"All\", \"Top\", \"TopPercent\"]).describe(\"How many matching subscribers to fetch.\").optional(),\n MatchType: z.enum([\"All\", \"Any\"]).describe(\"How segment criteria match together.\").optional(),\n FetchValue: z.number().int().describe(\"Value for FetchType 'Top' or 'TopPercent' (e.g., 100 for top 100 subscribers, or 10 for top 10%). Required when FetchType is 'Top' or 'TopPercent'.\").optional(),\n segment_id: z.string().describe(\"The ID of the segment to update.\"),\n mailing_list_id: z.string().describe(\"The ID of the mailing list the segment belongs to.\"),\n}).describe(\"Request schema for updating an existing segment in a mailing list.\");\nconst MoosendUpdateSegment_SegmentContextSchema = z.object({\n ID: z.string().describe(\"The segment ID.\").nullable().optional(),\n Name: z.string().describe(\"Segment name.\").nullable().optional(),\n Criteria: z.array(z.record(z.string(), z.unknown())).describe(\"Array of criteria objects.\").nullable().optional(),\n CreatedOn: z.string().describe(\"Date-time when the segment was created.\").nullable().optional(),\n FetchType: z.string().describe(\"Fetch type: All, Top, or TopPercent.\").nullable().optional(),\n MatchType: z.string().describe(\"Match type: All or Any.\").nullable().optional(),\n UpdatedOn: z.string().describe(\"Date-time when the segment was last updated.\").nullable().optional(),\n FetchValue: z.number().int().describe(\"Fetch value for Top/TopPercent.\").nullable().optional(),\n}).passthrough().describe(\"Context schema containing updated segment details.\");\nexport const MoosendUpdateSegmentOutput = z.object({\n Code: z.number().int().describe(\"Response code; 0 indicates success.\").nullable(),\n Error: z.string().describe(\"Error message if any; null if successful.\").nullable().optional(),\n Context: MoosendUpdateSegment_SegmentContextSchema.nullable().optional(),\n}).passthrough().describe(\"Response schema for UpdateSegment action.\");\n\nexport const moosendUpdateSegment = action(\"MOOSEND_UPDATE_SEGMENT\", {\n slug: \"moosend-update-segment\",\n name: \"Update Segment\",\n description: \"Tool to update properties and criteria of an existing segment. Use when you need to modify segment name, match type, or filtering criteria.\",\n input: MoosendUpdateSegmentInput,\n output: MoosendUpdateSegmentOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS;CACpH,QAAQA,IAAAA,EAAE,KAAK,CAAC,QAAQ,KAAK,CAAC,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;CACrI,UAAUA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EAC3B,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE;EAC9F,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B;EAC1D,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iFAAiF;CACjH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,CAAC,SAAS,6IAA6I,CAAC,CAAC,SAAS;CAC7O,WAAWA,IAAAA,EAAE,KAAK;EAAC;EAAO;EAAO;CAAY,CAAC,CAAC,CAAC,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