-
-
Notifications
You must be signed in to change notification settings - Fork 406
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding email property to the ContactPoint type (#1069)
Co-authored-by: Gary Meehan <[email protected]>
- Loading branch information
1 parent
144c171
commit f857eb5
Showing
8 changed files
with
21 additions
and
8 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -1428,12 +1428,14 @@ const Page = () => ( | |
{ | ||
telephone: '+1-401-555-1212', | ||
contactType: 'customer service', | ||
email: '[email protected]', | ||
areaServed: 'US', | ||
availableLanguage: ['English', 'Spanish', 'French'], | ||
}, | ||
{ | ||
telephone: '+1-877-746-0909', | ||
contactType: 'customer service', | ||
email: '[email protected]', | ||
contactOption: 'TollFree', | ||
availableLanguage: 'English', | ||
}, | ||
|
@@ -1467,6 +1469,7 @@ export default Page; | |
| -------------------------------- | ---------------------------------------------------------------------------------------------------------- | | ||
| `contactPoint.areaServed` | `String` or `Array` of geographical regions served by the business. Example `"US"` or `["US", "CA", "MX"]` | | ||
| `contactPoint.availableLanguage` | Details about the language spoken. Example `"English"` or `["English", "French"]` | | ||
| `contactPoint.email` | Email asscosiated with the business` | | ||
| `gecontactPointo.contactOption` | Details about the phone number. Example `"TollFree"` | | ||
|
||
### FAQ Page | ||
|
@@ -2988,12 +2991,14 @@ export default () => ( | |
{ | ||
telephone: '+1-401-555-1212', | ||
contactType: 'customer service', | ||
email: '[email protected]', | ||
areaServed: 'US', | ||
availableLanguage: ['English', 'Spanish', 'French'], | ||
}, | ||
{ | ||
telephone: '+1-877-746-0909', | ||
contactType: 'customer service', | ||
email: '[email protected]', | ||
contactOption: 'TollFree', | ||
availableLanguage: 'English', | ||
}, | ||
|
@@ -3038,6 +3043,7 @@ export default () => ( | |
| `address.streetAddress` | Street number, street name, and unit number. | | ||
| `contactPoint.areaServed` | `String` or `Array` of geographical regions served by the business. Example `"US"` or `["US", "CA", "MX"]` | | ||
| `contactPoint.availableLanguage` | Details about the language spoken. Example `"English"` or `["English", "French"]` | | ||
| `contactPoint.email` | Email asscosiated with the business` | | ||
|
||
For reference and more info check [Docs](https://schema.org/Organization) | ||
|
||
|
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 |
---|---|---|
|
@@ -23,13 +23,15 @@ describe('DataSet JSON-LD', () => { | |
{ | ||
'@type': 'ContactPoint', | ||
telephone: '+1-401-555-1212', | ||
email: '[email protected]', | ||
contactType: 'customer service', | ||
areaServed: 'US', | ||
availableLanguage: ['English', 'Spanish', 'French'], | ||
}, | ||
{ | ||
'@type': 'ContactPoint', | ||
telephone: '+1-877-746-0909', | ||
email: '[email protected]', | ||
contactType: 'customer service', | ||
contactOption: 'TollFree', | ||
availableLanguage: 'English', | ||
|
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 |
---|---|---|
|
@@ -35,6 +35,7 @@ describe('Organization JSON-LD', () => { | |
'@type': 'ContactPoint', | ||
contactType: 'customer service', | ||
telephone: '+1-877-746-0909', | ||
email: '[email protected]', | ||
areaServed: 'US', | ||
availableLanguage: ['English', 'Spanish', 'French'], | ||
contactOption: 'TollFree', | ||
|
@@ -80,6 +81,7 @@ describe('Organization JSON-LD', () => { | |
'@type': 'ContactPoint', | ||
contactType: 'customer service', | ||
telephone: '+1-877-746-0909', | ||
email: '[email protected]', | ||
areaServed: 'US', | ||
availableLanguage: ['English', 'Spanish', 'French'], | ||
contactOption: 'TollFree', | ||
|
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 |
---|---|---|
|
@@ -18,6 +18,10 @@ const contactPoint100 = { | |
type: 'string', | ||
description: 'Telephone number of the company', | ||
}, | ||
email: { | ||
type: 'string', | ||
description: 'Email of the company', | ||
}, | ||
contactType: { | ||
type: 'string', | ||
description: 'The main usage of the phone number', | ||
|
@@ -42,6 +46,7 @@ const contactPoint100 = { | |
'@type': 'ContactPoint', | ||
contactType: 'customer service', | ||
telephone: '+1-877-746-0909', | ||
email: '[email protected]', | ||
areaServed: 'US', | ||
availableLanguage: ['English', 'Spanish', 'French'], | ||
contactOption: 'TollFree', | ||
|
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 |
---|---|---|
|
@@ -12,12 +12,14 @@ function CorporateContact() { | |
{ | ||
telephone: '+1-401-555-1212', | ||
contactType: 'customer service', | ||
email: '[email protected]', | ||
areaServed: 'US', | ||
availableLanguage: ['English', 'Spanish', 'French'], | ||
}, | ||
{ | ||
telephone: '+1-877-746-0909', | ||
contactType: 'customer service', | ||
email: '[email protected]', | ||
contactOption: 'TollFree', | ||
availableLanguage: 'English', | ||
}, | ||
|
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 |
---|---|---|
|
@@ -28,10 +28,11 @@ function MultipleAddresses() { | |
addressCountry: 'France', | ||
}, | ||
]} | ||
contactPoints={[ | ||
contactPoint={[ | ||
{ | ||
contactType: 'customer service', | ||
telephone: '+1-877-746-0909', | ||
email: '[email protected]', | ||
areaServed: 'US', | ||
availableLanguage: ['English', 'Spanish', 'French'], | ||
contactOption: 'TollFree', | ||
|
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 |
---|---|---|
|
@@ -23,6 +23,7 @@ function Organization() { | |
{ | ||
contactType: 'customer service', | ||
telephone: '+1-877-746-0909', | ||
email: '[email protected]', | ||
areaServed: 'US', | ||
availableLanguage: ['English', 'Spanish', 'French'], | ||
contactOption: 'TollFree', | ||
|
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