Skip to content

Commit 7bdf882

Browse files
author
epilot CI
committed
docs: sync entity blueprint schemas
1 parent 9910898 commit 7bdf882

4 files changed

Lines changed: 1111 additions & 0 deletions

File tree

‎static/schemas/lead-example.json‎

Lines changed: 281 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,281 @@
1+
{
2+
"_schema": "lead",
3+
"_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
4+
"_org": "123",
5+
"_title": "Entity Title",
6+
"_tags": [
7+
"family:label"
8+
],
9+
"_purpose": [
10+
"7675dc56-fd1b-46ee-9c35-defe0667b32e"
11+
],
12+
"lead_number": "string",
13+
"status": "new",
14+
"lead_title": "string",
15+
"lead_type": "Customer Lead",
16+
"channel": "Journey / Website",
17+
"source": {
18+
"type": "link",
19+
"title": "Visit Website",
20+
"href": "https://example.com"
21+
},
22+
"assignee": {
23+
"id": "string",
24+
"organization_id": "123",
25+
"email": "user@example.com",
26+
"display_name": "John Doe",
27+
"name": "John Doe",
28+
"preferred_language": "de",
29+
"signature": "<p>Best regards,<br/>John Doe</p>",
30+
"roles": [
31+
"Owner"
32+
],
33+
"image_uri": {
34+
"original": "https://account-profile-images.epilot.cloud/1/avatar.png",
35+
"thumbnail_32": "https://account-profile-images.epilot.cloud/1/avatar_32x32.png"
36+
},
37+
"properties": [
38+
{
39+
"name": "profileImageName",
40+
"value": "avatar.png"
41+
}
42+
]
43+
},
44+
"customer": {
45+
"$relation": [
46+
{
47+
"entity_id": "123e4567-e89b-12d3-a456-426614174000",
48+
"_tags": [
49+
"example"
50+
]
51+
}
52+
]
53+
},
54+
"customer_type": "New Customer",
55+
"preferred_contact_channel": "Phone",
56+
"in_service_area": "Yes",
57+
"current_contract_account_number": "string",
58+
"delivery_address": {
59+
"$relation_ref": [
60+
{
61+
"entity_id": "123e4567-e89b-12d3-a456-426614174000",
62+
"path": "address",
63+
"_tags": [
64+
"example"
65+
],
66+
"_id": "xHcOoJCa07eysJ1GaQeSb"
67+
}
68+
]
69+
},
70+
"billing_address": {
71+
"$relation_ref": [
72+
{
73+
"entity_id": "123e4567-e89b-12d3-a456-426614174000",
74+
"path": "address",
75+
"_tags": [
76+
"example"
77+
],
78+
"_id": "xHcOoJCa07eysJ1GaQeSb"
79+
}
80+
]
81+
},
82+
"address": {
83+
"$relation_ref": [
84+
{
85+
"entity_id": "123e4567-e89b-12d3-a456-426614174000",
86+
"path": "address",
87+
"_tags": [
88+
"example"
89+
],
90+
"_id": "xHcOoJCa07eysJ1GaQeSb"
91+
}
92+
]
93+
},
94+
"products": {
95+
"$relation": [
96+
{
97+
"entity_id": "123e4567-e89b-12d3-a456-426614174000",
98+
"_tags": [
99+
"example"
100+
]
101+
}
102+
]
103+
},
104+
"customer_message": "string",
105+
"desired_delivery_date": "2025-01-01",
106+
"qualification_stage": "Raw Lead",
107+
"lead_score": "string",
108+
"lead_score_grade": "A",
109+
"lead_score_status": "live",
110+
"first_contact_at": "1970-01-01T00:00:00.000Z",
111+
"contact_attempts": "string",
112+
"follow_up_date": "2025-01-01",
113+
"next_action": "string",
114+
"qualification_note": "string",
115+
"disqualification_reason": "No need",
116+
"disqualified_at": "1970-01-01T00:00:00.000Z",
117+
"duplicate_of": {
118+
"$relation": [
119+
{
120+
"entity_id": "123e4567-e89b-12d3-a456-426614174000",
121+
"_tags": [
122+
"example"
123+
]
124+
}
125+
]
126+
},
127+
"score_urgency": "string",
128+
"score_system_size": "string",
129+
"score_partner": "string",
130+
"score_property": "string",
131+
"score_data_quality": "string",
132+
"score_switching_pressure": "string",
133+
"score_customer_relationship": "string",
134+
"score_source": "string",
135+
"lead_score_calculated_at": "1970-01-01T00:00:00.000Z",
136+
"lead_score_reasoning": "string",
137+
"opportunity": {
138+
"$relation": [
139+
{
140+
"entity_id": "123e4567-e89b-12d3-a456-426614174000",
141+
"_tags": [
142+
"example"
143+
]
144+
}
145+
]
146+
},
147+
"converted_at": "1970-01-01T00:00:00.000Z",
148+
"converted_by": {
149+
"id": "string",
150+
"organization_id": "123",
151+
"email": "user@example.com",
152+
"display_name": "John Doe",
153+
"name": "John Doe",
154+
"preferred_language": "de",
155+
"signature": "<p>Best regards,<br/>John Doe</p>",
156+
"roles": [
157+
"Owner"
158+
],
159+
"image_uri": {
160+
"original": "https://account-profile-images.epilot.cloud/1/avatar.png",
161+
"thumbnail_32": "https://account-profile-images.epilot.cloud/1/avatar_32x32.png"
162+
},
163+
"properties": [
164+
{
165+
"name": "profileImageName",
166+
"value": "avatar.png"
167+
}
168+
]
169+
},
170+
"offer_status": "Offer sent",
171+
"campaign": {
172+
"$relation": [
173+
{
174+
"entity_id": "123e4567-e89b-12d3-a456-426614174000",
175+
"_tags": [
176+
"example"
177+
]
178+
}
179+
]
180+
},
181+
"utm_source": "string",
182+
"utm_medium": "string",
183+
"utm_campaign": "string",
184+
"utm_term": "string",
185+
"utm_content": "string",
186+
"utm_id": "string",
187+
"cid": "string",
188+
"reporting_partner": {
189+
"$relation": [
190+
{
191+
"entity_id": "123e4567-e89b-12d3-a456-426614174000",
192+
"_tags": [
193+
"example"
194+
]
195+
}
196+
]
197+
},
198+
"partner_contact": {
199+
"$relation": [
200+
{
201+
"entity_id": "123e4567-e89b-12d3-a456-426614174000",
202+
"_tags": [
203+
"example"
204+
]
205+
}
206+
]
207+
},
208+
"partner_reference": "string",
209+
"workflows": {
210+
"primary": {
211+
"id": "string",
212+
"definition_id": "string",
213+
"name": "string",
214+
"status": "STARTED",
215+
"assignees": [
216+
"string"
217+
],
218+
"progress": 0,
219+
"phases_in_progress": [
220+
{
221+
"phase_id": "string",
222+
"phase_name": "string",
223+
"phase_progress": 0
224+
}
225+
],
226+
"last_update_time": "1970-01-01T00:00:00.000Z",
227+
"upcoming_tasks_assignees": [
228+
"string"
229+
],
230+
"task_id": "string",
231+
"task_name": "string",
232+
"task_assignees": [
233+
"string"
234+
],
235+
"task_duedate": "1970-01-01T00:00:00.000Z",
236+
"task_execution_type": "MANUAL",
237+
"task_status": "UNASSIGNED",
238+
"phase_id": "string",
239+
"phase_name": "string",
240+
"phase_assignees": [
241+
"string"
242+
],
243+
"phase_progress": 0
244+
}
245+
},
246+
"consents": {
247+
"_isValid": true
248+
},
249+
"_files": {
250+
"$relation": [
251+
{
252+
"entity_id": "123e4567-e89b-12d3-a456-426614174000",
253+
"_tags": [
254+
"example"
255+
]
256+
}
257+
]
258+
},
259+
"_created_at": "1970-01-01T00:00:00.000Z",
260+
"_updated_at": "1970-01-01T00:00:00.000Z",
261+
"_owners": [
262+
{
263+
"org_id": "123",
264+
"user_id": "456"
265+
}
266+
],
267+
"_acl": {
268+
"view": [
269+
"org:456"
270+
],
271+
"edit": [
272+
"org:456"
273+
],
274+
"delete": [
275+
"org:456"
276+
]
277+
},
278+
"_manifest": [
279+
"123e4567-e89b-12d3-a456-426614174000"
280+
]
281+
}

0 commit comments

Comments
 (0)