Skip to content

Commit c945141

Browse files
author
lucas
committedJul 1, 2024
restructure sale-hub with links-to and constructor event
1 parent c45beb7 commit c945141

17 files changed

+822
-322
lines changed
 
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
{
2+
"data": {
3+
"type": "card",
4+
"attributes": {
5+
"accountName": null,
6+
"accountAlias": null,
7+
"description": null,
8+
"contactInformation": {
9+
"salutation": null,
10+
"firstName": null,
11+
"lastName": null,
12+
"address": {
13+
"streetAddress": null,
14+
"city": null,
15+
"region": null,
16+
"postalCode": null,
17+
"poBoxNumber": null,
18+
"country": null
19+
},
20+
"phoneNumber": {
21+
"country": null,
22+
"area": null,
23+
"number": null
24+
},
25+
"email": {
26+
"value": null
27+
},
28+
"website": {
29+
"value": null
30+
}
31+
},
32+
"billingAddress": {
33+
"streetAddress": null,
34+
"city": null,
35+
"region": null,
36+
"postalCode": null,
37+
"poBoxNumber": null,
38+
"country": null
39+
},
40+
"numberOfEmployees": null,
41+
"thumbnailURL": null
42+
},
43+
"relationships": {
44+
"owner": {
45+
"links": {
46+
"self": null
47+
}
48+
},
49+
"parentAccount": {
50+
"links": {
51+
"self": null
52+
}
53+
},
54+
"company": {
55+
"links": {
56+
"self": null
57+
}
58+
}
59+
},
60+
"meta": {
61+
"adoptsFrom": {
62+
"module": "../account-form",
63+
"name": "AccountForm"
64+
}
65+
}
66+
}
67+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
{
2+
"data": {
3+
"type": "card",
4+
"attributes": {
5+
"name": "law bom bom",
6+
"regstrationNumber": null,
7+
"address": {
8+
"streetAddress": null,
9+
"city": null,
10+
"region": null,
11+
"postalCode": null,
12+
"poBoxNumber": null,
13+
"country": null
14+
},
15+
"contactPerson": {
16+
"salutation": null,
17+
"firstName": null,
18+
"lastName": null,
19+
"address": {
20+
"streetAddress": null,
21+
"city": null,
22+
"region": null,
23+
"postalCode": null,
24+
"poBoxNumber": null,
25+
"country": null
26+
},
27+
"phoneNumber": {
28+
"country": null,
29+
"area": null,
30+
"number": null
31+
},
32+
"email": {
33+
"value": null
34+
},
35+
"website": {
36+
"value": null
37+
}
38+
},
39+
"description": null,
40+
"thumbnailURL": null
41+
},
42+
"meta": {
43+
"adoptsFrom": {
44+
"module": "../crm/account",
45+
"name": "Company"
46+
}
47+
}
48+
}
49+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
"data": {
3+
"type": "card",
4+
"attributes": {
5+
"title": null,
6+
"name": {
7+
"salutation": null,
8+
"firstName": null,
9+
"lastName": null
10+
},
11+
"email": null,
12+
"phone": null,
13+
"fax": null,
14+
"department": null,
15+
"addressInfo": {
16+
"address": null,
17+
"zip": null,
18+
"city": null,
19+
"state": null,
20+
"country": null,
21+
"countryCode": null,
22+
"stateCode": null
23+
},
24+
"description": null,
25+
"thumbnailURL": null
26+
},
27+
"meta": {
28+
"adoptsFrom": {
29+
"module": "../contact-form",
30+
"name": "ContactForm"
31+
}
32+
}
33+
}
34+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
{
2+
"data": {
3+
"type": "card",
4+
"attributes": {
5+
"accountName": null,
6+
"accountAlias": null,
7+
"description": null,
8+
"contactInformation": {
9+
"salutation": null,
10+
"firstName": null,
11+
"lastName": null,
12+
"address": {
13+
"streetAddress": null,
14+
"city": null,
15+
"region": null,
16+
"postalCode": null,
17+
"poBoxNumber": null,
18+
"country": null
19+
},
20+
"phoneNumber": {
21+
"country": null,
22+
"area": null,
23+
"number": null
24+
},
25+
"email": {
26+
"value": null
27+
},
28+
"website": {
29+
"value": null
30+
}
31+
},
32+
"billingAddress": {
33+
"streetAddress": null,
34+
"city": null,
35+
"region": null,
36+
"postalCode": null,
37+
"poBoxNumber": null,
38+
"country": null
39+
},
40+
"numberOfEmployees": null,
41+
"thumbnailURL": null
42+
},
43+
"relationships": {
44+
"owner": {
45+
"links": {
46+
"self": null
47+
}
48+
},
49+
"parentAccount": {
50+
"links": {
51+
"self": null
52+
}
53+
},
54+
"company": {
55+
"links": {
56+
"self": null
57+
}
58+
}
59+
},
60+
"meta": {
61+
"adoptsFrom": {
62+
"module": "../crm/account",
63+
"name": "CrmAccount"
64+
}
65+
}
66+
}
67+
}

‎packages/drafts-realm/CrmAccount/4802eeed-bec6-4d7a-8f05-6370866edd40.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
},
5454
"company": {
5555
"links": {
56-
"self": null
56+
"self": "../Company/9ad68df6-b27e-4164-8736-e9347ece4d1e"
5757
}
5858
}
5959
},

‎packages/drafts-realm/LeadForm/ca5a2eb1-fb9e-4467-a7aa-54f3ec316ee9.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44
"attributes": {
55
"name": {
66
"salutation": "Mr.",
7-
"firstName": "Loo",
8-
"lastName": "Mok Sun"
7+
"firstName": "Law",
8+
"lastName": "Yung Lian"
99
},
10-
"company": "Loo Holding",
10+
"company": "Lucas Holding",
1111
"title": "Title Here",
12-
"website": "www.loobholding.com",
12+
"website": "www.lucas.com",
1313
"description": "Description Here",
1414
"leadStatus": "New",
1515
"phone": "0109090000",

‎packages/drafts-realm/LeadForm/fe2e7e4c-796c-4a59-93a0-c2463a10ffdc.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"title": "Lead Form - Chow Chow",
1212
"website": "www.chow.com",
1313
"description": "Description Here",
14-
"leadStatus": "Qualified",
14+
"leadStatus": "Nurturing",
1515
"phone": "0109090000",
1616
"email": "chow@xxxx.com",
1717
"addressInfo": {
@@ -46,4 +46,4 @@
4646
}
4747
}
4848
}
49-
}
49+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"data": {
3+
"type": "card",
4+
"attributes": {
5+
"username": null,
6+
"email": {
7+
"value": null
8+
},
9+
"description": null,
10+
"thumbnailURL": null
11+
},
12+
"meta": {
13+
"adoptsFrom": {
14+
"module": "../matrix-user",
15+
"name": "MatrixUser"
16+
}
17+
}
18+
}
19+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"data": {
3+
"type": "card",
4+
"attributes": {
5+
"opportunityName": null,
6+
"companyName": null,
7+
"closeDate": null,
8+
"amount": {
9+
"currency": null,
10+
"totalAmount": null
11+
},
12+
"description": null,
13+
"stage": null,
14+
"percentage": null,
15+
"forecastCategory": null,
16+
"title": null,
17+
"thumbnailURL": null
18+
},
19+
"relationships": {
20+
"accountName": {
21+
"links": {
22+
"self": null
23+
}
24+
}
25+
},
26+
"meta": {
27+
"adoptsFrom": {
28+
"module": "../opportunity-form",
29+
"name": "OpportunityForm"
30+
}
31+
}
32+
}
33+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
{
2+
"data": {
3+
"type": "card",
4+
"attributes": {
5+
"targetPage": "Lead Form",
6+
"scheduledTask": [],
7+
"convertedStatus": null,
8+
"isLeadFormConverted": true,
9+
"title": null,
10+
"description": null,
11+
"thumbnailURL": null
12+
},
13+
"relationships": {
14+
"leadForm": {
15+
"links": {
16+
"self": "../LeadForm/ca5a2eb1-fb9e-4467-a7aa-54f3ec316ee9"
17+
}
18+
},
19+
"accountForm": {
20+
"links": {
21+
"self": "../AccountForm/491351ed-d1cf-4f95-b085-acdf45eb45d7"
22+
}
23+
},
24+
"contactForm": {
25+
"links": {
26+
"self": "../ContactForm/67b66644-5964-4be2-a334-73e5e0d79ce5"
27+
}
28+
},
29+
"opportunityForm": {
30+
"links": {
31+
"self": "../OpportunityForm/6b8a10a9-0798-436d-9183-42bd6bfe6e38"
32+
}
33+
},
34+
"recordOwner": {
35+
"links": {
36+
"self": "../MatrixUser/e65ae338-64a1-4a97-9ae8-9b9e773a7095"
37+
}
38+
}
39+
},
40+
"meta": {
41+
"adoptsFrom": {
42+
"module": "../sale-hub",
43+
"name": "SaleHub"
44+
}
45+
}
46+
}
47+
}

0 commit comments

Comments
 (0)
Failed to load comments.