@elevasis/sdk 1.13.1 → 1.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -3726,8 +3726,9 @@ var ActivityEventSchema = z.discriminatedUnion("type", [
3726
3726
  TaskCreatedEventSchema,
3727
3727
  DealCreatedEventSchema
3728
3728
  ]);
3729
-
3730
- // ../core/src/business/acquisition/derive-actions.ts
3729
+ var SendReplyActionPayloadSchema = z.object({
3730
+ replyBody: z.string().trim().min(1).max(1e4)
3731
+ }).strict();
3731
3732
  var DEFAULT_CRM_ACTIONS = [
3732
3733
  {
3733
3734
  key: "move_to_proposal",
@@ -3759,6 +3760,13 @@ var DEFAULT_CRM_ACTIONS = [
3759
3760
  isAvailableFor: (deal) => deal.stage_key === "interested" || deal.stage_key === "proposal" || deal.stage_key === "closing",
3760
3761
  workflowId: "move_to_nurturing-workflow"
3761
3762
  },
3763
+ {
3764
+ key: "send_reply",
3765
+ label: "Send Reply",
3766
+ isAvailableFor: (deal) => deal.stage_key === "interested" && (deal.state_key === "discovery_replied" || deal.state_key === "discovery_link_sent" || deal.state_key === "discovery_nudging"),
3767
+ workflowId: "crm-send-reply-workflow",
3768
+ payloadSchema: SendReplyActionPayloadSchema
3769
+ },
3762
3770
  {
3763
3771
  key: "send_link",
3764
3772
  label: "Send Booking Link",