-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
78 additions
and
0 deletions.
There are no files selected for viewing
59 changes: 59 additions & 0 deletions
59
packages/experiments-realm/Representative/e0b16307-04bd-4e48-bdf8-517bb35b8119.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
{ | ||
"data": { | ||
"type": "card", | ||
"attributes": { | ||
"firstName": "Mary", | ||
"lastName": "Hu Xin Ying", | ||
"position": "Sale Associate", | ||
"department": null, | ||
"primaryEmail": "[email protected]", | ||
"secondaryEmail": null, | ||
"phoneMobile": { | ||
"phoneNumber": { | ||
"number": "201 222 1231", | ||
"countryCode": null | ||
}, | ||
"type": { | ||
"index": 2, | ||
"label": "Work", | ||
"color": null, | ||
"colorScheme": { | ||
"foregroundColor": null, | ||
"backgroundColor": null | ||
} | ||
} | ||
}, | ||
"phoneOffice": { | ||
"phoneNumber": { | ||
"number": null, | ||
"countryCode": null | ||
}, | ||
"type": { | ||
"index": null, | ||
"label": null, | ||
"color": null, | ||
"colorScheme": { | ||
"foregroundColor": null, | ||
"backgroundColor": null | ||
} | ||
} | ||
}, | ||
"socialLinks": [], | ||
"description": null, | ||
"thumbnailURL": null | ||
}, | ||
"relationships": { | ||
"company": { | ||
"links": { | ||
"self": null | ||
} | ||
} | ||
}, | ||
"meta": { | ||
"adoptsFrom": { | ||
"module": "../crm/representative", | ||
"name": "Representative" | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import { field, contains } from 'https://cardstack.com/base/card-api'; | ||
import { Contact } from './contact'; | ||
import PresentationAnalytics from '@cardstack/boxel-icons/presentation-analytics'; | ||
import { StatusTagField } from './contact'; | ||
|
||
export class Representative extends Contact { | ||
static displayName = 'CRM Representative'; | ||
static icon = PresentationAnalytics; | ||
@field statusTag = contains(StatusTagField, { | ||
computeVia: function (this: Representative) { | ||
return new StatusTagField({ | ||
index: 2, | ||
label: 'Representative', | ||
lightColor: '#7FDBDA', | ||
darkColor: '#07BABA', | ||
}); | ||
}, | ||
}); | ||
} |