|
1 | 1 | // Copyright (c) Microsoft Corporation.
|
2 | 2 | // Licensed under the MIT License.
|
3 | 3 |
|
4 |
| -export type SearchBox = { |
5 |
| - featureName: "searchInputBox"; |
6 |
| - description: "Input box for searching on the page"; |
7 |
| - parameters: { |
8 |
| - cssSelector: string; |
9 |
| - }; |
10 |
| -}; |
11 |
| - |
12 |
| -export type SearchResultsList = { |
13 |
| - featureName: "searchResultsList"; |
14 |
| - description: "List of products available from the search results"; |
15 |
| - parameters: { |
16 |
| - cssSelector: string; |
17 |
| - }; |
18 |
| -}; |
19 |
| - |
20 |
| -export type ProductDetailsCard = { |
21 |
| - featureName: "productDetailsCard"; |
22 |
| - description: "A section that shows the product name, price, images and rating. This also gives an option to add the product to the shopping cart."; |
23 |
| - parameters: { |
24 |
| - cssSelector: string; |
25 |
| - }; |
26 |
| -}; |
27 |
| - |
28 |
| -export type SearchForContent = { |
29 |
| - actionName: "searchForProduct"; |
30 |
| - description: "Find content on the page"; |
31 |
| - parameters: { |
32 |
| - value: string; |
33 |
| - cssSelector: string; |
34 |
| - }; |
35 |
| -}; |
36 |
| - |
37 | 4 | export type LandingPage = {
|
38 | 5 | description: "The default landing page for the site";
|
39 |
| - features: SearchBox; |
40 | 6 | };
|
41 | 7 |
|
42 | 8 | export type SearchResultsPage = {
|
43 | 9 | description: "The search results page";
|
44 |
| - features: SearchResultsList; |
45 | 10 | };
|
46 | 11 |
|
47 | 12 | export type ProductDetailsPage = {
|
48 | 13 | description: "A product details page, with focus on one product.";
|
49 |
| - features: ProductDetailsCard; |
50 | 14 | };
|
51 | 15 |
|
52 | 16 | export type ShoppingCartPage = {
|
53 | 17 | description: "The shopping cart page for the site";
|
54 |
| - features: SearchBox; |
55 | 18 | };
|
| 19 | + |
| 20 | +export type PastOrderPage = { |
| 21 | + description: "The page showing a user's past orders"; |
| 22 | +}; |
| 23 | + |
| 24 | +export type UnknownPage = { |
| 25 | + description: "A page that does not meet the previous more-specific categories"; |
| 26 | +}; |
| 27 | + |
| 28 | +export type CommercePageTypes = |
| 29 | + | LandingPage |
| 30 | + | SearchResultsPage |
| 31 | + | ProductDetailsPage |
| 32 | + | ShoppingCartPage |
| 33 | + | PastOrderPage |
| 34 | + | UnknownPage; |
| 35 | + |
| 36 | +export type CrosswordPage = { |
| 37 | + description: "The page showing a crossword puzzle"; |
| 38 | +}; |
| 39 | + |
| 40 | +export type NewsLandingPage = { |
| 41 | + description: "The page showing news headlines for the day"; |
| 42 | +}; |
| 43 | + |
| 44 | +export type SportsLandingPage = { |
| 45 | + description: "The page showing sports headlines for the day"; |
| 46 | +}; |
| 47 | + |
| 48 | +export type OpinionPage = { |
| 49 | + description: "The page showing editorial opinions for the day"; |
| 50 | +}; |
| 51 | + |
| 52 | +export type ArticlePage = { |
| 53 | + description: "The page showing an individual news article"; |
| 54 | +}; |
| 55 | + |
| 56 | +export type WeatherPage = { |
| 57 | + description: "The page showing weather headlines"; |
| 58 | +}; |
| 59 | + |
| 60 | +export type PuzzlesPage = { |
| 61 | + description: "The page showing a list of puzzles, such as sudoku, crossword, word matching games and more."; |
| 62 | +}; |
| 63 | + |
| 64 | +export type NewsPageTypes = |
| 65 | + | CrosswordPage |
| 66 | + | NewsLandingPage |
| 67 | + | SportsLandingPage |
| 68 | + | OpinionPage |
| 69 | + | ArticlePage |
| 70 | + | PuzzlesPage |
| 71 | + | UnknownPage; |
0 commit comments