@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/cli.cjs +1 -1
- package/dist/index.d.ts +1007 -1161
- package/dist/index.js +10 -2
- package/dist/test-utils/index.d.ts +945 -1099
- package/dist/test-utils/index.js +5 -3
- package/dist/worker/index.js +0 -2
- package/package.json +2 -2
- package/reference/claude-config/rules/ui.md +8 -8
- package/reference/claude-config/rules/vibe.md +11 -11
- package/reference/scaffold/index.mdx +8 -8
- package/reference/scaffold/recipes/customize-crm-actions.md +408 -408
- package/reference/scaffold/recipes/extend-crm.md +252 -252
- package/reference/scaffold/recipes/index.md +20 -20
- package/reference/scaffold/reference/contracts.md +1479 -1767
package/dist/index.js
CHANGED
|
@@ -3726,8 +3726,9 @@ var ActivityEventSchema = z.discriminatedUnion("type", [
|
|
|
3726
3726
|
TaskCreatedEventSchema,
|
|
3727
3727
|
DealCreatedEventSchema
|
|
3728
3728
|
]);
|
|
3729
|
-
|
|
3730
|
-
|
|
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",
|