mirror of
https://github.com/warmbly/warmbly.git
synced 2026-08-18 16:01:18 +00:00
feat: add Make CRM deal modules: New Deal and Deal Won triggers, create/update/delete deal, and Find Deal search
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"url": "/crm/deals",
|
||||
"method": "POST",
|
||||
"body": {
|
||||
"pipeline_id": "{{parameters.pipeline_id}}",
|
||||
"stage_id": "{{parameters.stage_id}}",
|
||||
"name": "{{parameters.name}}",
|
||||
"value": "{{parameters.value}}",
|
||||
"currency": "{{parameters.currency}}",
|
||||
"contact_id": "{{parameters.contact_id}}",
|
||||
"expected_close_date": "{{parameters.expected_close_date}}",
|
||||
"assigned_to": "{{parameters.assigned_to}}"
|
||||
},
|
||||
"response": {
|
||||
"output": "{{body}}"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
[
|
||||
{ "name": "id", "type": "text", "label": "Deal ID" },
|
||||
{ "name": "name", "type": "text", "label": "Name" },
|
||||
{ "name": "value", "type": "number", "label": "Value" },
|
||||
{ "name": "currency", "type": "text", "label": "Currency" },
|
||||
{ "name": "status", "type": "text", "label": "Status" },
|
||||
{ "name": "pipeline_id", "type": "text", "label": "Pipeline ID" },
|
||||
{ "name": "stage_id", "type": "text", "label": "Stage ID" },
|
||||
{ "name": "contact_id", "type": "text", "label": "Contact ID" },
|
||||
{ "name": "created_at", "type": "date", "label": "Created at" }
|
||||
]
|
||||
@@ -0,0 +1,27 @@
|
||||
[
|
||||
{
|
||||
"name": "pipeline_id",
|
||||
"type": "select",
|
||||
"label": "Pipeline",
|
||||
"required": true,
|
||||
"options": "rpc://pipelineList"
|
||||
},
|
||||
{
|
||||
"name": "stage_id",
|
||||
"type": "select",
|
||||
"label": "Stage",
|
||||
"required": true,
|
||||
"options": "rpc://stageList"
|
||||
},
|
||||
{ "name": "name", "type": "text", "label": "Name", "required": true },
|
||||
{ "name": "value", "type": "number", "label": "Value" },
|
||||
{ "name": "currency", "type": "text", "label": "Currency", "help": "ISO code, e.g. USD." },
|
||||
{
|
||||
"name": "contact_id",
|
||||
"type": "select",
|
||||
"label": "Contact",
|
||||
"options": "rpc://contactList"
|
||||
},
|
||||
{ "name": "expected_close_date", "type": "date", "label": "Expected close date" },
|
||||
{ "name": "assigned_to", "type": "text", "label": "Owner (user ID)" }
|
||||
]
|
||||
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"id": "d1a2b3c4-0000-0000-0000-000000000000",
|
||||
"organization_id": "00000000-0000-0000-0000-000000000000",
|
||||
"pipeline_id": "00000000-0000-0000-0000-000000000001",
|
||||
"stage_id": "00000000-0000-0000-0000-000000000002",
|
||||
"contact_id": "7b6c1f2a-0000-0000-0000-000000000000",
|
||||
"name": "Example Co — annual",
|
||||
"value": 12000,
|
||||
"currency": "USD",
|
||||
"status": "open",
|
||||
"created_at": "2026-06-28T12:00:00Z",
|
||||
"updated_at": "2026-06-28T12:00:00Z"
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
{
|
||||
"url": "/crm/deals",
|
||||
"method": "GET",
|
||||
"qs": {
|
||||
"limit": 100,
|
||||
"status": "won"
|
||||
},
|
||||
"response": {
|
||||
"iterate": "{{body.data}}",
|
||||
"trigger": {
|
||||
"id": "{{item.id}}",
|
||||
"date": "{{item.created_at}}",
|
||||
"type": "id",
|
||||
"order": "desc"
|
||||
},
|
||||
"output": "{{item}}"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
[
|
||||
{ "name": "id", "type": "text", "label": "Deal ID" },
|
||||
{ "name": "name", "type": "text", "label": "Name" },
|
||||
{ "name": "value", "type": "number", "label": "Value" },
|
||||
{ "name": "currency", "type": "text", "label": "Currency" },
|
||||
{ "name": "status", "type": "text", "label": "Status" },
|
||||
{ "name": "pipeline_id", "type": "text", "label": "Pipeline ID" },
|
||||
{ "name": "stage_id", "type": "text", "label": "Stage ID" },
|
||||
{ "name": "contact_id", "type": "text", "label": "Contact ID" },
|
||||
{ "name": "created_at", "type": "date", "label": "Created at" }
|
||||
]
|
||||
@@ -0,0 +1 @@
|
||||
[]
|
||||
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"id": "d1a2b3c4-0000-0000-0000-000000000000",
|
||||
"organization_id": "00000000-0000-0000-0000-000000000000",
|
||||
"pipeline_id": "00000000-0000-0000-0000-000000000001",
|
||||
"stage_id": "00000000-0000-0000-0000-000000000002",
|
||||
"contact_id": "7b6c1f2a-0000-0000-0000-000000000000",
|
||||
"name": "Example Co — annual",
|
||||
"value": 12000,
|
||||
"currency": "USD",
|
||||
"status": "won",
|
||||
"created_at": "2026-06-28T12:00:00Z",
|
||||
"updated_at": "2026-06-28T12:00:00Z",
|
||||
"won_at": "2026-06-28T13:00:00Z"
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"url": "/crm/deals/{{parameters.deal_id}}",
|
||||
"method": "DELETE",
|
||||
"response": {
|
||||
"output": {
|
||||
"id": "{{parameters.deal_id}}",
|
||||
"success": true
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
[
|
||||
{ "name": "id", "type": "text", "label": "Deal ID" },
|
||||
{ "name": "success", "type": "boolean", "label": "Success" }
|
||||
]
|
||||
@@ -0,0 +1,3 @@
|
||||
[
|
||||
{ "name": "deal_id", "type": "text", "label": "Deal ID", "required": true }
|
||||
]
|
||||
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"id": "d1a2b3c4-0000-0000-0000-000000000000",
|
||||
"success": true
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
{
|
||||
"url": "/crm/deals/search",
|
||||
"method": "POST",
|
||||
"qs": {
|
||||
"limit": 25
|
||||
},
|
||||
"body": {
|
||||
"query": "{{parameters.query}}",
|
||||
"statuses": "{{if(parameters.status, add(emptyarray, parameters.status))}}"
|
||||
},
|
||||
"response": {
|
||||
"iterate": "{{body.data}}",
|
||||
"output": "{{item}}"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
[
|
||||
{ "name": "id", "type": "text", "label": "Deal ID" },
|
||||
{ "name": "name", "type": "text", "label": "Name" },
|
||||
{ "name": "value", "type": "number", "label": "Value" },
|
||||
{ "name": "currency", "type": "text", "label": "Currency" },
|
||||
{ "name": "status", "type": "text", "label": "Status" },
|
||||
{ "name": "pipeline_id", "type": "text", "label": "Pipeline ID" },
|
||||
{ "name": "stage_id", "type": "text", "label": "Stage ID" },
|
||||
{ "name": "contact_id", "type": "text", "label": "Contact ID" },
|
||||
{ "name": "created_at", "type": "date", "label": "Created at" }
|
||||
]
|
||||
@@ -0,0 +1,13 @@
|
||||
[
|
||||
{ "name": "query", "type": "text", "label": "Name contains", "required": true },
|
||||
{
|
||||
"name": "status",
|
||||
"type": "select",
|
||||
"label": "Status",
|
||||
"options": [
|
||||
{ "label": "Open", "value": "open" },
|
||||
{ "label": "Won", "value": "won" },
|
||||
{ "label": "Lost", "value": "lost" }
|
||||
]
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"id": "d1a2b3c4-0000-0000-0000-000000000000",
|
||||
"organization_id": "00000000-0000-0000-0000-000000000000",
|
||||
"pipeline_id": "00000000-0000-0000-0000-000000000001",
|
||||
"stage_id": "00000000-0000-0000-0000-000000000002",
|
||||
"contact_id": "7b6c1f2a-0000-0000-0000-000000000000",
|
||||
"name": "Example Co — annual",
|
||||
"value": 12000,
|
||||
"currency": "USD",
|
||||
"status": "open",
|
||||
"created_at": "2026-06-28T12:00:00Z",
|
||||
"updated_at": "2026-06-28T12:00:00Z"
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"url": "/crm/deals",
|
||||
"method": "GET",
|
||||
"qs": {
|
||||
"limit": 100
|
||||
},
|
||||
"response": {
|
||||
"iterate": "{{body.data}}",
|
||||
"trigger": {
|
||||
"id": "{{item.id}}",
|
||||
"date": "{{item.created_at}}",
|
||||
"type": "id",
|
||||
"order": "desc"
|
||||
},
|
||||
"output": "{{item}}"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
[
|
||||
{ "name": "id", "type": "text", "label": "Deal ID" },
|
||||
{ "name": "name", "type": "text", "label": "Name" },
|
||||
{ "name": "value", "type": "number", "label": "Value" },
|
||||
{ "name": "currency", "type": "text", "label": "Currency" },
|
||||
{ "name": "status", "type": "text", "label": "Status" },
|
||||
{ "name": "pipeline_id", "type": "text", "label": "Pipeline ID" },
|
||||
{ "name": "stage_id", "type": "text", "label": "Stage ID" },
|
||||
{ "name": "contact_id", "type": "text", "label": "Contact ID" },
|
||||
{ "name": "created_at", "type": "date", "label": "Created at" }
|
||||
]
|
||||
@@ -0,0 +1 @@
|
||||
[]
|
||||
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"id": "d1a2b3c4-0000-0000-0000-000000000000",
|
||||
"organization_id": "00000000-0000-0000-0000-000000000000",
|
||||
"pipeline_id": "00000000-0000-0000-0000-000000000001",
|
||||
"stage_id": "00000000-0000-0000-0000-000000000002",
|
||||
"contact_id": "7b6c1f2a-0000-0000-0000-000000000000",
|
||||
"name": "Example Co — annual",
|
||||
"value": 12000,
|
||||
"currency": "USD",
|
||||
"status": "open",
|
||||
"created_at": "2026-06-28T12:00:00Z",
|
||||
"updated_at": "2026-06-28T12:00:00Z"
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"url": "/crm/deals/{{parameters.deal_id}}",
|
||||
"method": "PATCH",
|
||||
"body": {
|
||||
"stage_id": "{{parameters.stage_id}}",
|
||||
"name": "{{parameters.name}}",
|
||||
"value": "{{parameters.value}}",
|
||||
"currency": "{{parameters.currency}}",
|
||||
"status": "{{parameters.status}}",
|
||||
"lost_reason": "{{parameters.lost_reason}}",
|
||||
"expected_close_date": "{{parameters.expected_close_date}}",
|
||||
"assigned_to": "{{parameters.assigned_to}}"
|
||||
},
|
||||
"response": {
|
||||
"output": "{{body}}"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
[
|
||||
{ "name": "id", "type": "text", "label": "Deal ID" },
|
||||
{ "name": "name", "type": "text", "label": "Name" },
|
||||
{ "name": "value", "type": "number", "label": "Value" },
|
||||
{ "name": "currency", "type": "text", "label": "Currency" },
|
||||
{ "name": "status", "type": "text", "label": "Status" },
|
||||
{ "name": "pipeline_id", "type": "text", "label": "Pipeline ID" },
|
||||
{ "name": "stage_id", "type": "text", "label": "Stage ID" },
|
||||
{ "name": "contact_id", "type": "text", "label": "Contact ID" },
|
||||
{ "name": "created_at", "type": "date", "label": "Created at" }
|
||||
]
|
||||
@@ -0,0 +1,32 @@
|
||||
[
|
||||
{ "name": "deal_id", "type": "text", "label": "Deal ID", "required": true },
|
||||
{
|
||||
"name": "pipeline_id",
|
||||
"type": "select",
|
||||
"label": "Pipeline (for stage picker)",
|
||||
"help": "Optional: pick the pipeline to populate the stage dropdown.",
|
||||
"options": "rpc://pipelineList"
|
||||
},
|
||||
{
|
||||
"name": "stage_id",
|
||||
"type": "select",
|
||||
"label": "Stage",
|
||||
"options": "rpc://stageList"
|
||||
},
|
||||
{ "name": "name", "type": "text", "label": "Name" },
|
||||
{ "name": "value", "type": "number", "label": "Value" },
|
||||
{ "name": "currency", "type": "text", "label": "Currency" },
|
||||
{
|
||||
"name": "status",
|
||||
"type": "select",
|
||||
"label": "Status",
|
||||
"options": [
|
||||
{ "label": "Open", "value": "open" },
|
||||
{ "label": "Won", "value": "won" },
|
||||
{ "label": "Lost", "value": "lost" }
|
||||
]
|
||||
},
|
||||
{ "name": "lost_reason", "type": "text", "label": "Lost reason" },
|
||||
{ "name": "expected_close_date", "type": "date", "label": "Expected close date" },
|
||||
{ "name": "assigned_to", "type": "text", "label": "Owner (user ID)" }
|
||||
]
|
||||
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"id": "d1a2b3c4-0000-0000-0000-000000000000",
|
||||
"organization_id": "00000000-0000-0000-0000-000000000000",
|
||||
"pipeline_id": "00000000-0000-0000-0000-000000000001",
|
||||
"stage_id": "00000000-0000-0000-0000-000000000002",
|
||||
"contact_id": "7b6c1f2a-0000-0000-0000-000000000000",
|
||||
"name": "Example Co — annual",
|
||||
"value": 12000,
|
||||
"currency": "USD",
|
||||
"status": "open",
|
||||
"created_at": "2026-06-28T12:00:00Z",
|
||||
"updated_at": "2026-06-28T12:00:00Z"
|
||||
}
|
||||
Reference in New Issue
Block a user