@keystrokehq/moosend 0.1.5 → 0.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (261) hide show
  1. package/dist/action.cjs.map +1 -1
  2. package/dist/action.mjs.map +1 -1
  3. package/dist/actions/add-segment-criteria.cjs +1 -0
  4. package/dist/actions/add-segment-criteria.cjs.map +1 -1
  5. package/dist/actions/add-segment-criteria.d.cts +3 -22
  6. package/dist/actions/add-segment-criteria.d.cts.map +1 -1
  7. package/dist/actions/add-segment-criteria.d.mts +3 -22
  8. package/dist/actions/add-segment-criteria.d.mts.map +1 -1
  9. package/dist/actions/add-segment-criteria.mjs +1 -0
  10. package/dist/actions/add-segment-criteria.mjs.map +1 -1
  11. package/dist/actions/add-subscriber.cjs +1 -0
  12. package/dist/actions/add-subscriber.cjs.map +1 -1
  13. package/dist/actions/add-subscriber.d.cts +3 -22
  14. package/dist/actions/add-subscriber.d.cts.map +1 -1
  15. package/dist/actions/add-subscriber.d.mts +3 -22
  16. package/dist/actions/add-subscriber.d.mts.map +1 -1
  17. package/dist/actions/add-subscriber.mjs +1 -0
  18. package/dist/actions/add-subscriber.mjs.map +1 -1
  19. package/dist/actions/clone-campaign.cjs +1 -0
  20. package/dist/actions/clone-campaign.cjs.map +1 -1
  21. package/dist/actions/clone-campaign.d.cts +3 -16
  22. package/dist/actions/clone-campaign.d.cts.map +1 -1
  23. package/dist/actions/clone-campaign.d.mts +3 -16
  24. package/dist/actions/clone-campaign.d.mts.map +1 -1
  25. package/dist/actions/clone-campaign.mjs +1 -0
  26. package/dist/actions/clone-campaign.mjs.map +1 -1
  27. package/dist/actions/create-custom-field.cjs +1 -0
  28. package/dist/actions/create-custom-field.cjs.map +1 -1
  29. package/dist/actions/create-custom-field.d.cts +3 -21
  30. package/dist/actions/create-custom-field.d.cts.map +1 -1
  31. package/dist/actions/create-custom-field.d.mts +3 -21
  32. package/dist/actions/create-custom-field.d.mts.map +1 -1
  33. package/dist/actions/create-custom-field.mjs +1 -0
  34. package/dist/actions/create-custom-field.mjs.map +1 -1
  35. package/dist/actions/create-mailing-list.cjs +1 -0
  36. package/dist/actions/create-mailing-list.cjs.map +1 -1
  37. package/dist/actions/create-mailing-list.d.cts +3 -17
  38. package/dist/actions/create-mailing-list.d.cts.map +1 -1
  39. package/dist/actions/create-mailing-list.d.mts +3 -17
  40. package/dist/actions/create-mailing-list.d.mts.map +1 -1
  41. package/dist/actions/create-mailing-list.mjs +1 -0
  42. package/dist/actions/create-mailing-list.mjs.map +1 -1
  43. package/dist/actions/create-segment.cjs +1 -0
  44. package/dist/actions/create-segment.cjs.map +1 -1
  45. package/dist/actions/create-segment.d.cts +3 -26
  46. package/dist/actions/create-segment.d.cts.map +1 -1
  47. package/dist/actions/create-segment.d.mts +3 -26
  48. package/dist/actions/create-segment.d.mts.map +1 -1
  49. package/dist/actions/create-segment.mjs +1 -0
  50. package/dist/actions/create-segment.mjs.map +1 -1
  51. package/dist/actions/delete-campaign.cjs +1 -0
  52. package/dist/actions/delete-campaign.cjs.map +1 -1
  53. package/dist/actions/delete-campaign.d.cts +3 -16
  54. package/dist/actions/delete-campaign.d.cts.map +1 -1
  55. package/dist/actions/delete-campaign.d.mts +3 -16
  56. package/dist/actions/delete-campaign.d.mts.map +1 -1
  57. package/dist/actions/delete-campaign.mjs +1 -0
  58. package/dist/actions/delete-campaign.mjs.map +1 -1
  59. package/dist/actions/delete-custom-field.cjs +1 -0
  60. package/dist/actions/delete-custom-field.cjs.map +1 -1
  61. package/dist/actions/delete-custom-field.d.cts +3 -17
  62. package/dist/actions/delete-custom-field.d.cts.map +1 -1
  63. package/dist/actions/delete-custom-field.d.mts +3 -17
  64. package/dist/actions/delete-custom-field.d.mts.map +1 -1
  65. package/dist/actions/delete-custom-field.mjs +1 -0
  66. package/dist/actions/delete-custom-field.mjs.map +1 -1
  67. package/dist/actions/delete-mailing-list.cjs +1 -0
  68. package/dist/actions/delete-mailing-list.cjs.map +1 -1
  69. package/dist/actions/delete-mailing-list.d.cts +3 -16
  70. package/dist/actions/delete-mailing-list.d.cts.map +1 -1
  71. package/dist/actions/delete-mailing-list.d.mts +3 -16
  72. package/dist/actions/delete-mailing-list.d.mts.map +1 -1
  73. package/dist/actions/delete-mailing-list.mjs +1 -0
  74. package/dist/actions/delete-mailing-list.mjs.map +1 -1
  75. package/dist/actions/get-all-campaigns.cjs +1 -0
  76. package/dist/actions/get-all-campaigns.cjs.map +1 -1
  77. package/dist/actions/get-all-campaigns.d.cts +3 -16
  78. package/dist/actions/get-all-campaigns.d.cts.map +1 -1
  79. package/dist/actions/get-all-campaigns.d.mts +3 -16
  80. package/dist/actions/get-all-campaigns.d.mts.map +1 -1
  81. package/dist/actions/get-all-campaigns.mjs +1 -0
  82. package/dist/actions/get-all-campaigns.mjs.map +1 -1
  83. package/dist/actions/get-all-subscribers.cjs +1 -0
  84. package/dist/actions/get-all-subscribers.cjs.map +1 -1
  85. package/dist/actions/get-all-subscribers.d.cts +3 -19
  86. package/dist/actions/get-all-subscribers.d.cts.map +1 -1
  87. package/dist/actions/get-all-subscribers.d.mts +3 -19
  88. package/dist/actions/get-all-subscribers.d.mts.map +1 -1
  89. package/dist/actions/get-all-subscribers.mjs +1 -0
  90. package/dist/actions/get-all-subscribers.mjs.map +1 -1
  91. package/dist/actions/get-campaign-details.cjs +1 -0
  92. package/dist/actions/get-campaign-details.cjs.map +1 -1
  93. package/dist/actions/get-campaign-details.d.cts +3 -15
  94. package/dist/actions/get-campaign-details.d.cts.map +1 -1
  95. package/dist/actions/get-campaign-details.d.mts +3 -15
  96. package/dist/actions/get-campaign-details.d.mts.map +1 -1
  97. package/dist/actions/get-campaign-details.mjs +1 -0
  98. package/dist/actions/get-campaign-details.mjs.map +1 -1
  99. package/dist/actions/get-campaign-stats-by-location.cjs +1 -0
  100. package/dist/actions/get-campaign-stats-by-location.cjs.map +1 -1
  101. package/dist/actions/get-campaign-stats-by-location.d.cts +3 -15
  102. package/dist/actions/get-campaign-stats-by-location.d.cts.map +1 -1
  103. package/dist/actions/get-campaign-stats-by-location.d.mts +3 -15
  104. package/dist/actions/get-campaign-stats-by-location.d.mts.map +1 -1
  105. package/dist/actions/get-campaign-stats-by-location.mjs +1 -0
  106. package/dist/actions/get-campaign-stats-by-location.mjs.map +1 -1
  107. package/dist/actions/get-mailing-list-details.cjs +1 -0
  108. package/dist/actions/get-mailing-list-details.cjs.map +1 -1
  109. package/dist/actions/get-mailing-list-details.d.cts +3 -17
  110. package/dist/actions/get-mailing-list-details.d.cts.map +1 -1
  111. package/dist/actions/get-mailing-list-details.d.mts +3 -17
  112. package/dist/actions/get-mailing-list-details.d.mts.map +1 -1
  113. package/dist/actions/get-mailing-list-details.mjs +1 -0
  114. package/dist/actions/get-mailing-list-details.mjs.map +1 -1
  115. package/dist/actions/get-subscriber-by-email.cjs +1 -0
  116. package/dist/actions/get-subscriber-by-email.cjs.map +1 -1
  117. package/dist/actions/get-subscriber-by-email.d.cts +3 -17
  118. package/dist/actions/get-subscriber-by-email.d.cts.map +1 -1
  119. package/dist/actions/get-subscriber-by-email.d.mts +3 -17
  120. package/dist/actions/get-subscriber-by-email.d.mts.map +1 -1
  121. package/dist/actions/get-subscriber-by-email.mjs +1 -0
  122. package/dist/actions/get-subscriber-by-email.mjs.map +1 -1
  123. package/dist/actions/list-all-mailing-lists.cjs +1 -0
  124. package/dist/actions/list-all-mailing-lists.cjs.map +1 -1
  125. package/dist/actions/list-all-mailing-lists.d.cts +4 -21
  126. package/dist/actions/list-all-mailing-lists.d.cts.map +1 -1
  127. package/dist/actions/list-all-mailing-lists.d.mts +4 -21
  128. package/dist/actions/list-all-mailing-lists.d.mts.map +1 -1
  129. package/dist/actions/list-all-mailing-lists.mjs +1 -0
  130. package/dist/actions/list-all-mailing-lists.mjs.map +1 -1
  131. package/dist/actions/list-all-senders.cjs +1 -0
  132. package/dist/actions/list-all-senders.cjs.map +1 -1
  133. package/dist/actions/list-all-senders.d.cts +3 -15
  134. package/dist/actions/list-all-senders.d.cts.map +1 -1
  135. package/dist/actions/list-all-senders.d.mts +3 -15
  136. package/dist/actions/list-all-senders.d.mts.map +1 -1
  137. package/dist/actions/list-all-senders.mjs +1 -0
  138. package/dist/actions/list-all-senders.mjs.map +1 -1
  139. package/dist/actions/list-campaigns-with-paging.cjs +1 -0
  140. package/dist/actions/list-campaigns-with-paging.cjs.map +1 -1
  141. package/dist/actions/list-campaigns-with-paging.d.cts +4 -19
  142. package/dist/actions/list-campaigns-with-paging.d.cts.map +1 -1
  143. package/dist/actions/list-campaigns-with-paging.d.mts +4 -19
  144. package/dist/actions/list-campaigns-with-paging.d.mts.map +1 -1
  145. package/dist/actions/list-campaigns-with-paging.mjs +1 -0
  146. package/dist/actions/list-campaigns-with-paging.mjs.map +1 -1
  147. package/dist/actions/list-segments.cjs +1 -0
  148. package/dist/actions/list-segments.cjs.map +1 -1
  149. package/dist/actions/list-segments.d.cts +3 -16
  150. package/dist/actions/list-segments.d.cts.map +1 -1
  151. package/dist/actions/list-segments.d.mts +3 -16
  152. package/dist/actions/list-segments.d.mts.map +1 -1
  153. package/dist/actions/list-segments.mjs +1 -0
  154. package/dist/actions/list-segments.mjs.map +1 -1
  155. package/dist/actions/remove-multiple-subscribers.cjs +1 -0
  156. package/dist/actions/remove-multiple-subscribers.cjs.map +1 -1
  157. package/dist/actions/remove-multiple-subscribers.d.cts +3 -17
  158. package/dist/actions/remove-multiple-subscribers.d.cts.map +1 -1
  159. package/dist/actions/remove-multiple-subscribers.d.mts +3 -17
  160. package/dist/actions/remove-multiple-subscribers.d.mts.map +1 -1
  161. package/dist/actions/remove-multiple-subscribers.mjs +1 -0
  162. package/dist/actions/remove-multiple-subscribers.mjs.map +1 -1
  163. package/dist/actions/schedule-campaign.cjs +1 -0
  164. package/dist/actions/schedule-campaign.cjs.map +1 -1
  165. package/dist/actions/schedule-campaign.d.cts +3 -18
  166. package/dist/actions/schedule-campaign.d.cts.map +1 -1
  167. package/dist/actions/schedule-campaign.d.mts +3 -18
  168. package/dist/actions/schedule-campaign.d.mts.map +1 -1
  169. package/dist/actions/schedule-campaign.mjs +1 -0
  170. package/dist/actions/schedule-campaign.mjs.map +1 -1
  171. package/dist/actions/send-campaign.cjs +1 -0
  172. package/dist/actions/send-campaign.cjs.map +1 -1
  173. package/dist/actions/send-campaign.d.cts +3 -16
  174. package/dist/actions/send-campaign.d.cts.map +1 -1
  175. package/dist/actions/send-campaign.d.mts +3 -16
  176. package/dist/actions/send-campaign.d.mts.map +1 -1
  177. package/dist/actions/send-campaign.mjs +1 -0
  178. package/dist/actions/send-campaign.mjs.map +1 -1
  179. package/dist/actions/unschedule-campaign.cjs +1 -0
  180. package/dist/actions/unschedule-campaign.cjs.map +1 -1
  181. package/dist/actions/unschedule-campaign.d.cts +3 -16
  182. package/dist/actions/unschedule-campaign.d.cts.map +1 -1
  183. package/dist/actions/unschedule-campaign.d.mts +3 -16
  184. package/dist/actions/unschedule-campaign.d.mts.map +1 -1
  185. package/dist/actions/unschedule-campaign.mjs +1 -0
  186. package/dist/actions/unschedule-campaign.mjs.map +1 -1
  187. package/dist/actions/unsubscribe-from-account.cjs +1 -0
  188. package/dist/actions/unsubscribe-from-account.cjs.map +1 -1
  189. package/dist/actions/unsubscribe-from-account.d.cts +3 -16
  190. package/dist/actions/unsubscribe-from-account.d.cts.map +1 -1
  191. package/dist/actions/unsubscribe-from-account.d.mts +3 -16
  192. package/dist/actions/unsubscribe-from-account.d.mts.map +1 -1
  193. package/dist/actions/unsubscribe-from-account.mjs +1 -0
  194. package/dist/actions/unsubscribe-from-account.mjs.map +1 -1
  195. package/dist/actions/unsubscribe-from-mailing-list.cjs +1 -0
  196. package/dist/actions/unsubscribe-from-mailing-list.cjs.map +1 -1
  197. package/dist/actions/unsubscribe-from-mailing-list.d.cts +3 -17
  198. package/dist/actions/unsubscribe-from-mailing-list.d.cts.map +1 -1
  199. package/dist/actions/unsubscribe-from-mailing-list.d.mts +3 -17
  200. package/dist/actions/unsubscribe-from-mailing-list.d.mts.map +1 -1
  201. package/dist/actions/unsubscribe-from-mailing-list.mjs +1 -0
  202. package/dist/actions/unsubscribe-from-mailing-list.mjs.map +1 -1
  203. package/dist/actions/update-campaign.cjs +1 -0
  204. package/dist/actions/update-campaign.cjs.map +1 -1
  205. package/dist/actions/update-campaign.d.cts +3 -37
  206. package/dist/actions/update-campaign.d.cts.map +1 -1
  207. package/dist/actions/update-campaign.d.mts +3 -37
  208. package/dist/actions/update-campaign.d.mts.map +1 -1
  209. package/dist/actions/update-campaign.mjs +1 -0
  210. package/dist/actions/update-campaign.mjs.map +1 -1
  211. package/dist/actions/update-custom-field.cjs +1 -0
  212. package/dist/actions/update-custom-field.cjs.map +1 -1
  213. package/dist/actions/update-custom-field.d.cts +3 -22
  214. package/dist/actions/update-custom-field.d.cts.map +1 -1
  215. package/dist/actions/update-custom-field.d.mts +3 -22
  216. package/dist/actions/update-custom-field.d.mts.map +1 -1
  217. package/dist/actions/update-custom-field.mjs +1 -0
  218. package/dist/actions/update-custom-field.mjs.map +1 -1
  219. package/dist/actions/update-mailing-list.cjs +1 -0
  220. package/dist/actions/update-mailing-list.cjs.map +1 -1
  221. package/dist/actions/update-mailing-list.d.cts +3 -21
  222. package/dist/actions/update-mailing-list.d.cts.map +1 -1
  223. package/dist/actions/update-mailing-list.d.mts +3 -21
  224. package/dist/actions/update-mailing-list.d.mts.map +1 -1
  225. package/dist/actions/update-mailing-list.mjs +1 -0
  226. package/dist/actions/update-mailing-list.mjs.map +1 -1
  227. package/dist/actions/update-segment-criteria.cjs +1 -0
  228. package/dist/actions/update-segment-criteria.cjs.map +1 -1
  229. package/dist/actions/update-segment-criteria.d.cts +3 -23
  230. package/dist/actions/update-segment-criteria.d.cts.map +1 -1
  231. package/dist/actions/update-segment-criteria.d.mts +3 -23
  232. package/dist/actions/update-segment-criteria.d.mts.map +1 -1
  233. package/dist/actions/update-segment-criteria.mjs +1 -0
  234. package/dist/actions/update-segment-criteria.mjs.map +1 -1
  235. package/dist/actions/update-segment.cjs +1 -0
  236. package/dist/actions/update-segment.cjs.map +1 -1
  237. package/dist/actions/update-segment.d.cts +3 -27
  238. package/dist/actions/update-segment.d.cts.map +1 -1
  239. package/dist/actions/update-segment.d.mts +3 -27
  240. package/dist/actions/update-segment.d.mts.map +1 -1
  241. package/dist/actions/update-segment.mjs +1 -0
  242. package/dist/actions/update-segment.mjs.map +1 -1
  243. package/dist/actions/update-subscriber.cjs +1 -0
  244. package/dist/actions/update-subscriber.cjs.map +1 -1
  245. package/dist/actions/update-subscriber.d.cts +3 -21
  246. package/dist/actions/update-subscriber.d.cts.map +1 -1
  247. package/dist/actions/update-subscriber.d.mts +3 -21
  248. package/dist/actions/update-subscriber.d.mts.map +1 -1
  249. package/dist/actions/update-subscriber.mjs +1 -0
  250. package/dist/actions/update-subscriber.mjs.map +1 -1
  251. package/dist/app.cjs +2 -2
  252. package/dist/app.cjs.map +1 -1
  253. package/dist/app.d.cts +4 -6
  254. package/dist/app.d.cts.map +1 -1
  255. package/dist/app.d.mts +4 -6
  256. package/dist/app.d.mts.map +1 -1
  257. package/dist/app.mjs +0 -1
  258. package/dist/app.mjs.map +1 -1
  259. package/dist/index.d.cts +1 -1
  260. package/dist/index.d.mts +1 -1
  261. package/package.json +2 -2
@@ -1,3 +1,5 @@
1
+ import { moosend } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/update-custom-field.d.ts
@@ -25,28 +27,7 @@ declare const MoosendUpdateCustomFieldOutput: z.ZodObject<{
25
27
  Error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
26
28
  Context: z.ZodOptional<z.ZodNullable<z.ZodString>>;
27
29
  }, 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<"moosend", z.ZodObject<{
38
- connectionId: z.ZodString;
39
- entityId: z.ZodString;
40
- instanceId: z.ZodString;
41
- }, z.core.$strip>, z.ZodObject<{
42
- generic_api_key: z.ZodString;
43
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"moosend", z.ZodObject<{
44
- connectionId: z.ZodString;
45
- entityId: z.ZodString;
46
- instanceId: z.ZodString;
47
- }, z.core.$strip>, z.ZodObject<{
48
- generic_api_key: z.ZodString;
49
- }, z.core.$strip>>]>;
30
+ declare const moosendUpdateCustomField: AppAction<typeof MoosendUpdateCustomFieldInput, typeof MoosendUpdateCustomFieldOutput, typeof moosend.credential>;
50
31
  //#endregion
51
32
  export { moosendUpdateCustomField };
52
33
  //# 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,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;cAU7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;cAM9B,wBAAA,gCAAwB,wBAAA"}
1
+ {"version":3,"file":"update-custom-field.d.cts","names":[],"sources":["../../src/actions/update-custom-field.ts"],"mappings":";;;;;cAMa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;cAU7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;cAM9B,wBAAA,EAA0B,SAAA,QAC9B,6BAAA,SACA,8BAAA,SACA,OAAA,CAAQ,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { moosend } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/update-custom-field.d.ts
@@ -25,28 +27,7 @@ declare const MoosendUpdateCustomFieldOutput: z.ZodObject<{
25
27
  Error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
26
28
  Context: z.ZodOptional<z.ZodNullable<z.ZodString>>;
27
29
  }, 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<"moosend", z.ZodObject<{
38
- connectionId: z.ZodString;
39
- entityId: z.ZodString;
40
- instanceId: z.ZodString;
41
- }, z.core.$strip>, z.ZodObject<{
42
- generic_api_key: z.ZodString;
43
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"moosend", z.ZodObject<{
44
- connectionId: z.ZodString;
45
- entityId: z.ZodString;
46
- instanceId: z.ZodString;
47
- }, z.core.$strip>, z.ZodObject<{
48
- generic_api_key: z.ZodString;
49
- }, z.core.$strip>>]>;
30
+ declare const moosendUpdateCustomField: AppAction<typeof MoosendUpdateCustomFieldInput, typeof MoosendUpdateCustomFieldOutput, typeof moosend.credential>;
50
31
  //#endregion
51
32
  export { moosendUpdateCustomField };
52
33
  //# 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,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;cAU7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;cAM9B,wBAAA,gCAAwB,wBAAA"}
1
+ {"version":3,"file":"update-custom-field.d.mts","names":[],"sources":["../../src/actions/update-custom-field.ts"],"mappings":";;;;;cAMa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;cAU7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;cAM9B,wBAAA,EAA0B,SAAA,QAC9B,6BAAA,SACA,8BAAA,SACA,OAAA,CAAQ,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  const moosendUpdateCustomField = action("MOOSEND_UPDATE_CUSTOM_FIELD", {
@@ -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 = 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"}
1
+ {"version":3,"file":"update-custom-field.mjs","names":[],"sources":["../../src/actions/update-custom-field.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { moosend } from \"../app\";\n\nexport const 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: AppAction<\n typeof MoosendUpdateCustomFieldInput,\n typeof MoosendUpdateCustomFieldOutput,\n typeof moosend.credential\n> = 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":";;;AAsBA,MAAa,2BAIT,OAAO,+BAA+B;CACxC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAxB2C,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,CAeS;CACP,QAf4C,EAAE,OAAO;EACrD,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;EAChF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,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,YAWO;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/update-mailing-list.ts
@@ -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 = 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,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CACzF,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CAC7F,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD;AAC7F,CAAC,CAAC,CAAC,SAAS,wCAAwC;AACpD,MAAM,oDAAoDA,IAAAA,EAAE,OAAO;CACjE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;CACzD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS;CACzD,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CAChF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACrF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc,CAAC,CAAC,SAAS;CACzD,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;CACnE,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;AACxE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wDAAwD;AAClF,MAAa,iCAAiCA,IAAAA,EAAE,OAAO;CACrD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CAChF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxE,SAASA,IAAAA,EAAE,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
+ {"version":3,"file":"update-mailing-list.cjs","names":["z","action"],"sources":["../../src/actions/update-mailing-list.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { moosend } from \"../app\";\n\nexport const 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: AppAction<\n typeof MoosendUpdateMailingListInput,\n typeof MoosendUpdateMailingListOutput,\n typeof moosend.credential\n> = 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":";;;;AAMA,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,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C,CAAC,SAAS,CAAC,CAAC,SAAS;CACxE,SAASA,IAAAA,EAAE,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,2BAITC,eAAAA,OAAO,+BAA+B;CACxC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { moosend } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/update-mailing-list.d.ts
@@ -24,27 +26,7 @@ declare const MoosendUpdateMailingListOutput: z.ZodObject<{
24
26
  ReplyToEmail: z.ZodNullable<z.ZodString>;
25
27
  }, z.core.$loose>, z.ZodString]>>>;
26
28
  }, 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<"moosend", z.ZodObject<{
36
- connectionId: z.ZodString;
37
- entityId: z.ZodString;
38
- instanceId: z.ZodString;
39
- }, z.core.$strip>, z.ZodObject<{
40
- generic_api_key: z.ZodString;
41
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"moosend", z.ZodObject<{
42
- connectionId: z.ZodString;
43
- entityId: z.ZodString;
44
- instanceId: z.ZodString;
45
- }, z.core.$strip>, z.ZodObject<{
46
- generic_api_key: z.ZodString;
47
- }, z.core.$strip>>]>;
29
+ declare const moosendUpdateMailingList: AppAction<typeof MoosendUpdateMailingListInput, typeof MoosendUpdateMailingListOutput, typeof moosend.credential>;
48
30
  //#endregion
49
31
  export { moosendUpdateMailingList };
50
32
  //# 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,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;cAmB7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cAM9B,wBAAA,gCAAwB,wBAAA"}
1
+ {"version":3,"file":"update-mailing-list.d.cts","names":[],"sources":["../../src/actions/update-mailing-list.ts"],"mappings":";;;;;cAMa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;cAmB7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cAM9B,wBAAA,EAA0B,SAAA,QAC9B,6BAAA,SACA,8BAAA,SACA,OAAA,CAAQ,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { moosend } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/update-mailing-list.d.ts
@@ -24,27 +26,7 @@ declare const MoosendUpdateMailingListOutput: z.ZodObject<{
24
26
  ReplyToEmail: z.ZodNullable<z.ZodString>;
25
27
  }, z.core.$loose>, z.ZodString]>>>;
26
28
  }, 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<"moosend", z.ZodObject<{
36
- connectionId: z.ZodString;
37
- entityId: z.ZodString;
38
- instanceId: z.ZodString;
39
- }, z.core.$strip>, z.ZodObject<{
40
- generic_api_key: z.ZodString;
41
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"moosend", z.ZodObject<{
42
- connectionId: z.ZodString;
43
- entityId: z.ZodString;
44
- instanceId: z.ZodString;
45
- }, z.core.$strip>, z.ZodObject<{
46
- generic_api_key: z.ZodString;
47
- }, z.core.$strip>>]>;
29
+ declare const moosendUpdateMailingList: AppAction<typeof MoosendUpdateMailingListInput, typeof MoosendUpdateMailingListOutput, typeof moosend.credential>;
48
30
  //#endregion
49
31
  export { moosendUpdateMailingList };
50
32
  //# 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,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;cAmB7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cAM9B,wBAAA,gCAAwB,wBAAA"}
1
+ {"version":3,"file":"update-mailing-list.d.mts","names":[],"sources":["../../src/actions/update-mailing-list.ts"],"mappings":";;;;;cAMa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;cAmB7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cAM9B,wBAAA,EAA0B,SAAA,QAC9B,6BAAA,SACA,8BAAA,SACA,OAAA,CAAQ,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  //#region src/actions/update-mailing-list.ts
@@ -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 = 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,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AC,CAAC,SAAS;EACxE,SAAS,EAAE,MAAM,CAAC,mDAAmD,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yCAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"update-mailing-list.mjs","names":[],"sources":["../../src/actions/update-mailing-list.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { moosend } from \"../app\";\n\nexport const 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: AppAction<\n typeof MoosendUpdateMailingListInput,\n typeof MoosendUpdateMailingListOutput,\n typeof moosend.credential\n> = 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":";;;;AAMA,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,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CAC7F,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD;AAC7F,CAAC,CAAC,CAAC,SAAS,wCAAwC;AACpD,MAAM,oDAAoD,EAAE,OAAO;CACjE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;CACzD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS;CACzD,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CAChF,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACrF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc,CAAC,CAAC,SAAS;CACzD,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;CACnE,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;AACxE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wDAAwD;AAOlF,MAAa,2BAIT,OAAO,+BAA+B;CACxC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAf4C,EAAE,OAAO;EACrD,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;EAChF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxE,SAAS,EAAE,MAAM,CAAC,mDAAmD,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yCAWhB;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/update-segment-criteria.ts
@@ -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 = 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
+ {"version":3,"file":"update-segment-criteria.cjs","names":["z","action"],"sources":["../../src/actions/update-segment-criteria.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { moosend } from \"../app\";\n\nexport const 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: AppAction<\n typeof MoosendUpdateSegmentCriteriaInput,\n typeof MoosendUpdateSegmentCriteriaOutput,\n typeof moosend.credential\n> = 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":";;;;AAMA,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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update-segment-criteria.d.ts
@@ -20,29 +22,7 @@ declare const MoosendUpdateSegmentCriteriaOutput: z.ZodObject<{
20
22
  Error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21
23
  Context: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
22
24
  }, 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<"moosend", z.ZodObject<{
34
- connectionId: z.ZodString;
35
- entityId: z.ZodString;
36
- instanceId: z.ZodString;
37
- }, z.core.$strip>, z.ZodObject<{
38
- generic_api_key: z.ZodString;
39
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"moosend", z.ZodObject<{
40
- connectionId: z.ZodString;
41
- entityId: z.ZodString;
42
- instanceId: z.ZodString;
43
- }, z.core.$strip>, z.ZodObject<{
44
- generic_api_key: z.ZodString;
45
- }, z.core.$strip>>]>;
25
+ declare const moosendUpdateSegmentCriteria: AppAction<typeof MoosendUpdateSegmentCriteriaInput, typeof MoosendUpdateSegmentCriteriaOutput, typeof moosend.credential>;
46
26
  //#endregion
47
27
  export { moosendUpdateSegmentCriteria };
48
28
  //# 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,EAAiC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cAWjC,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;cAMlC,4BAAA,gCAA4B,wBAAA"}
1
+ {"version":3,"file":"update-segment-criteria.d.cts","names":[],"sources":["../../src/actions/update-segment-criteria.ts"],"mappings":";;;;;cAMa,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cAWjC,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;cAMlC,4BAAA,EAA8B,SAAA,QAClC,iCAAA,SACA,kCAAA,SACA,OAAA,CAAQ,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { moosend } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/update-segment-criteria.d.ts
@@ -20,29 +22,7 @@ declare const MoosendUpdateSegmentCriteriaOutput: z.ZodObject<{
20
22
  Error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21
23
  Context: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
22
24
  }, 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<"moosend", z.ZodObject<{
34
- connectionId: z.ZodString;
35
- entityId: z.ZodString;
36
- instanceId: z.ZodString;
37
- }, z.core.$strip>, z.ZodObject<{
38
- generic_api_key: z.ZodString;
39
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"moosend", z.ZodObject<{
40
- connectionId: z.ZodString;
41
- entityId: z.ZodString;
42
- instanceId: z.ZodString;
43
- }, z.core.$strip>, z.ZodObject<{
44
- generic_api_key: z.ZodString;
45
- }, z.core.$strip>>]>;
25
+ declare const moosendUpdateSegmentCriteria: AppAction<typeof MoosendUpdateSegmentCriteriaInput, typeof MoosendUpdateSegmentCriteriaOutput, typeof moosend.credential>;
46
26
  //#endregion
47
27
  export { moosendUpdateSegmentCriteria };
48
28
  //# 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,EAAiC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cAWjC,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;cAMlC,4BAAA,gCAA4B,wBAAA"}
1
+ {"version":3,"file":"update-segment-criteria.d.mts","names":[],"sources":["../../src/actions/update-segment-criteria.ts"],"mappings":";;;;;cAMa,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cAWjC,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;cAMlC,4BAAA,EAA8B,SAAA,QAClC,iCAAA,SACA,kCAAA,SACA,OAAA,CAAQ,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  const moosendUpdateSegmentCriteria = action("MOOSEND_UPDATE_SEGMENT_CRITERIA", {
@@ -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 = 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,OAAO,mCAAmC;CACpF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OArB+C,EAAE,OAAO;EACxD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,uGAAuG;EAClI,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD;EAC5E,QAAQ,EAAE,KAAK,CAAC,QAAQ,KAAK,CAAC,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,iHAAiH,CAAC,CAAC,SAAS;EACrL,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,2GAA2G,CAAC,CAAC,SAAS;EACnJ,UAAU,EAAE,OAAO,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,0JAA0J,CAAC,CAAC,SAAS;EACjN,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,2GAA2G,CAAC,CAAC,SAAS;EACrJ,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D;EAC3F,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC;EAC3E,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D;CACrG,CAAC,CAAC,CAAC,SAAS,iEAWH;CACP,QAXgD,EAAE,OAAO;EACzD,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;EAChF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrF,SAAS,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"update-segment-criteria.mjs","names":[],"sources":["../../src/actions/update-segment-criteria.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { moosend } from \"../app\";\n\nexport const 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: AppAction<\n typeof MoosendUpdateSegmentCriteriaInput,\n typeof MoosendUpdateSegmentCriteriaOutput,\n typeof moosend.credential\n> = 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":";;;AAuBA,MAAa,+BAIT,OAAO,mCAAmC;CAC5C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAzB+C,EAAE,OAAO;EACxD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,uGAAuG;EAClI,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD;EAC5E,QAAQ,EAAE,KAAK,CAAC,QAAQ,KAAK,CAAC,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,iHAAiH,CAAC,CAAC,SAAS;EACrL,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,2GAA2G,CAAC,CAAC,SAAS;EACnJ,UAAU,EAAE,OAAO,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,0JAA0J,CAAC,CAAC,SAAS;EACjN,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,2GAA2G,CAAC,CAAC,SAAS;EACrJ,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D;EAC3F,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC;EAC3E,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D;CACrG,CAAC,CAAC,CAAC,SAAS,iEAeH;CACP,QAfgD,EAAE,OAAO;EACzD,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;EAChF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrF,SAAS,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAWhB;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/update-segment.ts
@@ -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 = 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,I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.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { moosend } from \"../app\";\n\nexport const 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: AppAction<\n typeof MoosendUpdateSegmentInput,\n typeof MoosendUpdateSegmentOutput,\n typeof moosend.credential\n> = 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":";;;;AAMA,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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C,IAAI,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC/F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oDAAoD;AAC9E,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CAChF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5F,SAAS,0CAA0C,SAAS,CAAC,CAAC,SAAS;AACzE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2CAA2C;AAErE,MAAa,uBAITC,eAAAA,OAAO,0BAA0B;CACnC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { moosend } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/update-segment.d.ts
@@ -39,33 +41,7 @@ declare const MoosendUpdateSegmentOutput: z.ZodObject<{
39
41
  FetchValue: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
40
42
  }, z.core.$loose>>>;
41
43
  }, z.core.$loose>;
42
- declare const moosendUpdateSegment: import("@keystrokehq/action").WorkflowActionDefinition<{
43
- segment_id: string;
44
- mailing_list_id: string;
45
- Name?: string | undefined;
46
- format?: "json" | "xml" | undefined;
47
- Criteria?: {
48
- [x: string]: unknown;
49
- Field: string;
50
- Value: string;
51
- Comparer: string;
52
- }[] | undefined;
53
- FetchType?: "All" | "Top" | "TopPercent" | undefined;
54
- MatchType?: "All" | "Any" | undefined;
55
- FetchValue?: number | undefined;
56
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"moosend", z.ZodObject<{
57
- connectionId: z.ZodString;
58
- entityId: z.ZodString;
59
- instanceId: z.ZodString;
60
- }, z.core.$strip>, z.ZodObject<{
61
- generic_api_key: z.ZodString;
62
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"moosend", z.ZodObject<{
63
- connectionId: z.ZodString;
64
- entityId: z.ZodString;
65
- instanceId: z.ZodString;
66
- }, z.core.$strip>, z.ZodObject<{
67
- generic_api_key: z.ZodString;
68
- }, z.core.$strip>>]>;
44
+ declare const moosendUpdateSegment: AppAction<typeof MoosendUpdateSegmentInput, typeof MoosendUpdateSegmentOutput, typeof moosend.credential>;
69
45
  //#endregion
70
46
  export { moosendUpdateSegment };
71
47
  //# sourceMappingURL=update-segment.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"update-segment.d.cts","names":[],"sources":["../../src/actions/update-segment.ts"],"mappings":";;;cAIa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;cAwBzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cAM1B,oBAAA,gCAAoB,wBAAA"}
1
+ {"version":3,"file":"update-segment.d.cts","names":[],"sources":["../../src/actions/update-segment.ts"],"mappings":";;;;;cAMa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;cAwBzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cAM1B,oBAAA,EAAsB,SAAA,QAC1B,yBAAA,SACA,0BAAA,SACA,OAAA,CAAQ,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { moosend } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/update-segment.d.ts
@@ -39,33 +41,7 @@ declare const MoosendUpdateSegmentOutput: z.ZodObject<{
39
41
  FetchValue: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
40
42
  }, z.core.$loose>>>;
41
43
  }, z.core.$loose>;
42
- declare const moosendUpdateSegment: import("@keystrokehq/action").WorkflowActionDefinition<{
43
- segment_id: string;
44
- mailing_list_id: string;
45
- Name?: string | undefined;
46
- format?: "json" | "xml" | undefined;
47
- Criteria?: {
48
- [x: string]: unknown;
49
- Field: string;
50
- Value: string;
51
- Comparer: string;
52
- }[] | undefined;
53
- FetchType?: "All" | "Top" | "TopPercent" | undefined;
54
- MatchType?: "All" | "Any" | undefined;
55
- FetchValue?: number | undefined;
56
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"moosend", z.ZodObject<{
57
- connectionId: z.ZodString;
58
- entityId: z.ZodString;
59
- instanceId: z.ZodString;
60
- }, z.core.$strip>, z.ZodObject<{
61
- generic_api_key: z.ZodString;
62
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"moosend", z.ZodObject<{
63
- connectionId: z.ZodString;
64
- entityId: z.ZodString;
65
- instanceId: z.ZodString;
66
- }, z.core.$strip>, z.ZodObject<{
67
- generic_api_key: z.ZodString;
68
- }, z.core.$strip>>]>;
44
+ declare const moosendUpdateSegment: AppAction<typeof MoosendUpdateSegmentInput, typeof MoosendUpdateSegmentOutput, typeof moosend.credential>;
69
45
  //#endregion
70
46
  export { moosendUpdateSegment };
71
47
  //# sourceMappingURL=update-segment.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"update-segment.d.mts","names":[],"sources":["../../src/actions/update-segment.ts"],"mappings":";;;cAIa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;cAwBzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cAM1B,oBAAA,gCAAoB,wBAAA"}
1
+ {"version":3,"file":"update-segment.d.mts","names":[],"sources":["../../src/actions/update-segment.ts"],"mappings":";;;;;cAMa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;cAwBzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cAM1B,oBAAA,EAAsB,SAAA,QAC1B,yBAAA,SACA,0BAAA,SACA,OAAA,CAAQ,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  //#region src/actions/update-segment.ts
@@ -1 +1 @@
1
- {"version":3,"file":"update-segment.mjs","names":[],"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,4BAA4B,EAAE,OAAO;CAChD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS;CACpH,QAAQ,EAAE,KAAK,CAAC,QAAQ,KAAK,CAAC,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;CACrI,UAAU,EAAE,MAAM,EAAE,OAAO;EAC3B,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE;EAC9F,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B;EAC1D,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,iFAAiF;CACjH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,CAAC,SAAS,6IAA6I,CAAC,CA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SAAS;AAC/F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oDAAoD;AAO9E,MAAa,uBAAuB,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAXwC,EAAE,OAAO;EACjD,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;EAChF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5F,SAAS,0CAA0C,SAAS,CAAC,CAAC,SAAS;CACzE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2CAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"update-segment.mjs","names":[],"sources":["../../src/actions/update-segment.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { moosend } from \"../app\";\n\nexport const 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: AppAction<\n typeof MoosendUpdateSegmentInput,\n typeof MoosendUpdateSegmentOutput,\n typeof moosend.credential\n> = 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":";;;;AAMA,MAAa,4BAA4B,EAAE,OAAO;CAChD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS;CACpH,QAAQ,EAAE,KAAK,CAAC,QAAQ,KAAK,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S;CAC9F,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9E,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnG,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC/F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oDAAoD;AAO9E,MAAa,uBAIT,OAAO,0BAA0B;CACnC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAfwC,EAAE,OAAO;EACjD,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;EAChF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5F,SAAS,0CAA0C,SAAS,CAAC,CAAC,SAAS;CACzE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2CAWhB;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/update-subscriber.ts
@@ -1 +1 @@
1
- {"version":3,"file":"update-subscriber.cjs","names":["z","action"],"sources":["../../src/actions/update-subscriber.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MoosendUpdateSubscriberInput = z.object({\n Name: z.string().describe(\"The name of the member\").optional(),\n Email: z.string().describe(\"The email address of the member\"),\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 CustomFields: z.array(z.string()).describe(\"List of custom field values in 'FieldName=Value' format, matching the member's custom fields\").optional(),\n subscriberID: z.string().describe(\"The id of the subscriber to be updated\"),\n mailingListID: z.string().describe(\"The ID of the mailing list that contains the subscriber\"),\n HasExternalDoubleOptIn: z.boolean().describe(\"Flags the member as having given subscription consent by other means\").optional(),\n}).describe(\"Request schema for updating a subscriber in a mailing list.\");\nexport const MoosendUpdateSubscriberOutput = z.object({\n Code: z.number().int().describe(\"Response code; 0 indicates success.\").nullable(),\n Error: z.string().describe(\"Error message; null if successful.\").nullable().optional(),\n Context: z.record(z.string(), z.unknown()).describe(\"Full subscriber context including ID, status, custom fields, and timestamps.\").nullable().optional(),\n}).passthrough().describe(\"Response schema for UpdateSubscriber action.\");\n\nexport const moosendUpdateSubscriber = action(\"MOOSEND_UPDATE_SUBSCRIBER\", {\n slug: \"moosend-update-subscriber\",\n name: \"Update Subscriber\",\n description: \"Tool to update a subscriber in the specified mailing list. Use when you need to modify subscriber information like email, name, or custom fields.\",\n input: MoosendUpdateSubscriberInput,\n output: MoosendUpdateSubscriberOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;CAC7D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC;CAC5D,QAAQA,IAAAA,EAAE,KAAK,CAAC,QAAQ,KAAK,CAAC,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,iHAAiH,CAAC,CAAC,SAAS;CACrL,cAAcA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,8FAA8F,CAAC,CAAC,SAAS;CACpJ,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC;CAC1E,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD;CAC5F,wBAAwBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS;AAChI,CAAC,CAAC,CAAC,SAAS,6DAA6D;AACzE,MAAa,gCAAgCA,IAAAA,EAAE,OAAO;CACpD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CAChF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,SAASA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC1J,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8CAA8C;AAExE,MAAa,0BAA0BC,eAAAA,OAAO,6BAA6B;CACzE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"update-subscriber.cjs","names":["z","action"],"sources":["../../src/actions/update-subscriber.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { moosend } from \"../app\";\n\nexport const MoosendUpdateSubscriberInput = z.object({\n Name: z.string().describe(\"The name of the member\").optional(),\n Email: z.string().describe(\"The email address of the member\"),\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 CustomFields: z.array(z.string()).describe(\"List of custom field values in 'FieldName=Value' format, matching the member's custom fields\").optional(),\n subscriberID: z.string().describe(\"The id of the subscriber to be updated\"),\n mailingListID: z.string().describe(\"The ID of the mailing list that contains the subscriber\"),\n HasExternalDoubleOptIn: z.boolean().describe(\"Flags the member as having given subscription consent by other means\").optional(),\n}).describe(\"Request schema for updating a subscriber in a mailing list.\");\nexport const MoosendUpdateSubscriberOutput = z.object({\n Code: z.number().int().describe(\"Response code; 0 indicates success.\").nullable(),\n Error: z.string().describe(\"Error message; null if successful.\").nullable().optional(),\n Context: z.record(z.string(), z.unknown()).describe(\"Full subscriber context including ID, status, custom fields, and timestamps.\").nullable().optional(),\n}).passthrough().describe(\"Response schema for UpdateSubscriber action.\");\n\nexport const moosendUpdateSubscriber: AppAction<\n typeof MoosendUpdateSubscriberInput,\n typeof MoosendUpdateSubscriberOutput,\n typeof moosend.credential\n> = action(\"MOOSEND_UPDATE_SUBSCRIBER\", {\n slug: \"moosend-update-subscriber\",\n name: \"Update Subscriber\",\n description: \"Tool to update a subscriber in the specified mailing list. Use when you need to modify subscriber information like email, name, or custom fields.\",\n input: MoosendUpdateSubscriberInput,\n output: MoosendUpdateSubscriberOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;CAC7D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC;CAC5D,QAAQA,IAAAA,EAAE,KAAK,CAAC,QAAQ,KAAK,CAAC,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,iHAAiH,CAAC,CAAC,SAAS;CACrL,cAAcA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,8FAA8F,CAAC,CAAC,SAAS;CACpJ,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC;CAC1E,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD;CAC5F,wBAAwBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS;AAChI,CAAC,CAAC,CAAC,SAAS,6DAA6D;AACzE,MAAa,gCAAgC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