Skip to content

Commit 825e217

Browse files
author
lucas
committed
cleanup code, change the company field from string to linkTo
1 parent 77920f5 commit 825e217

19 files changed

+153
-705
lines changed

packages/drafts-realm/AccountForm/491351ed-d1cf-4f95-b085-acdf45eb45d7.json

-67
This file was deleted.

packages/drafts-realm/CrmAccount/3c4706ab-5066-468c-9adf-744c305c29f6.json packages/drafts-realm/Company/b57e5ffd-b64f-4531-a7e4-5a1d0420e2bc.json

+13-31
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,17 @@
22
"data": {
33
"type": "card",
44
"attributes": {
5-
"accountName": null,
6-
"accountAlias": null,
7-
"description": null,
8-
"contactInformation": {
5+
"name": "Law Grocery",
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": {
916
"salutation": null,
1017
"firstName": null,
1118
"lastName": null,
@@ -29,38 +36,13 @@
2936
"value": null
3037
}
3138
},
32-
"billingAddress": {
33-
"streetAddress": null,
34-
"city": null,
35-
"region": null,
36-
"postalCode": null,
37-
"poBoxNumber": null,
38-
"country": null
39-
},
40-
"numberOfEmployees": null,
39+
"description": null,
4140
"thumbnailURL": null
4241
},
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-
},
6042
"meta": {
6143
"adoptsFrom": {
6244
"module": "../crm/account",
63-
"name": "CrmAccount"
45+
"name": "Company"
6446
}
6547
}
6648
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"data": {
3+
"type": "card",
4+
"attributes": {
5+
"name": {
6+
"salutation": null,
7+
"firstName": null,
8+
"lastName": null
9+
},
10+
"email": null,
11+
"phone": null,
12+
"fax": null,
13+
"department": null,
14+
"addressInfo": {
15+
"address": null,
16+
"zip": null,
17+
"city": null,
18+
"state": null,
19+
"country": null,
20+
"countryCode": null,
21+
"stateCode": null
22+
},
23+
"description": null,
24+
"thumbnailURL": null
25+
},
26+
"meta": {
27+
"adoptsFrom": {
28+
"module": "../contact-form",
29+
"name": "ContactForm"
30+
}
31+
}
32+
}
33+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
{
2+
"data": {
3+
"type": "card",
4+
"attributes": {
5+
"name": {
6+
"salutation": "Mr.",
7+
"firstName": "Law",
8+
"lastName": "Yung Lom"
9+
},
10+
"website": "law.com",
11+
"description": null,
12+
"leadStatus": "Working",
13+
"phone": "019999999999",
14+
"email": "lawgrocery@g.com",
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+
"noOfEmployees": 200,
25+
"annualRevenue": {
26+
"currency": "RM",
27+
"totalAmount": 1200000
28+
},
29+
"leadSource": "Advertisement",
30+
"industry": "Biotechnology",
31+
"thumbnailURL": null
32+
},
33+
"relationships": {
34+
"company": {
35+
"links": {
36+
"self": "../Company/b57e5ffd-b64f-4531-a7e4-5a1d0420e2bc"
37+
}
38+
},
39+
"leadOwner": {
40+
"links": {
41+
"self": "../MatrixUser/485ca453-b328-4e85-a761-b2fe7d145430"
42+
}
43+
}
44+
},
45+
"meta": {
46+
"adoptsFrom": {
47+
"module": "../lead-form",
48+
"name": "LeadForm"
49+
}
50+
}
51+
}
52+
}

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

-49
This file was deleted.

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

-49
This file was deleted.

packages/drafts-realm/MatrixUser/3cdcb54e-4b29-4548-83f3-3c1d2f1f988b.json packages/drafts-realm/MatrixUser/485ca453-b328-4e85-a761-b2fe7d145430.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
"data": {
33
"type": "card",
44
"attributes": {
5-
"username": null,
5+
"username": "Law Yung Lom",
66
"email": {
7-
"value": null
7+
"value": "lawyunglom@gmail.com"
88
},
99
"description": null,
1010
"thumbnailURL": null

packages/drafts-realm/MatrixUser/e65ae338-64a1-4a97-9ae8-9b9e773a7095.json

-19
This file was deleted.

packages/drafts-realm/OpportunityForm/37f6334a-02be-48db-a675-20409f8d5507.json

-33
This file was deleted.

0 commit comments

Comments
 (0)