feat(SW-66, SW-348): search functionality and ui
This commit is contained in:
9
types/enums/accountPage.ts
Normal file
9
types/enums/accountPage.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
export namespace AccountPageEnum {
|
||||
export namespace ContentStack {
|
||||
export const enum blocks {
|
||||
DynamicContent = "AccountPageContentDynamicContent",
|
||||
ShortCuts = "AccountPageContentShortcuts",
|
||||
TextContent = "AccountPageContentTextContent",
|
||||
}
|
||||
}
|
||||
}
|
||||
10
types/enums/blocks.ts
Normal file
10
types/enums/blocks.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
export namespace BlocksEnums {
|
||||
export const enum block {
|
||||
CardsGrid = "CardsGrid",
|
||||
Content = "Content",
|
||||
DynamicContent = "DynamicContent",
|
||||
Shortcuts = "Shortcuts",
|
||||
TextCols = "TextCols",
|
||||
TextContent = "TextContent",
|
||||
}
|
||||
}
|
||||
6
types/enums/cardsGrid.ts
Normal file
6
types/enums/cardsGrid.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
export namespace CardsGridEnum {
|
||||
export const enum cards {
|
||||
Card = "Card",
|
||||
LoyaltyCard = "LoyaltyCard",
|
||||
}
|
||||
}
|
||||
10
types/enums/content.ts
Normal file
10
types/enums/content.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
export namespace ContentEnum {
|
||||
export const enum blocks {
|
||||
AccountPage = "AccountPage",
|
||||
ContentPage = "ContentPage",
|
||||
HotelPage = "HotelPage",
|
||||
ImageContainer = "ImageContainer",
|
||||
LoyaltyPage = "LoyaltyPage",
|
||||
SysAsset = "SysAsset",
|
||||
}
|
||||
}
|
||||
17
types/enums/contentPage.ts
Normal file
17
types/enums/contentPage.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
export namespace ContentPageEnum {
|
||||
export namespace ContentStack {
|
||||
export const enum blocks {
|
||||
CardsGrid = "ContentPageBlocksCardsGrid",
|
||||
Content = "ContentPageBlocksContent",
|
||||
DynamicContent = "ContentPageBlocksDynamicContent",
|
||||
Shortcuts = "ContentPageBlocksShortcuts",
|
||||
TextCols = "ContentPageBlocksTextCols",
|
||||
}
|
||||
|
||||
export const enum sidebar {
|
||||
Content = "ContentPageSidebarContent",
|
||||
DynamicContent = "ContentPageSidebarDynamicContent",
|
||||
JoinLoyaltyContact = "ContentPageSidebarJoinLoyaltyContact",
|
||||
}
|
||||
}
|
||||
}
|
||||
45
types/enums/dynamicContent.ts
Normal file
45
types/enums/dynamicContent.ts
Normal file
@@ -0,0 +1,45 @@
|
||||
export namespace DynamicContentEnum {
|
||||
export namespace Blocks {
|
||||
export const enum components {
|
||||
current_benefits = "current_benefits",
|
||||
earn_and_burn = "earn_and_burn",
|
||||
expiring_points = "expiring_points",
|
||||
how_it_works = "how_it_works",
|
||||
loyalty_levels = "loyalty_levels",
|
||||
membership_overview = "membership_overview",
|
||||
my_points = "my_points",
|
||||
next_benefits = "next_benefits",
|
||||
overview_table = "overview_table",
|
||||
points_overview = "points_overview",
|
||||
previous_stays = "previous_stays",
|
||||
soonest_stays = "soonest_stays",
|
||||
upcoming_stays = "upcoming_stays",
|
||||
}
|
||||
|
||||
/** Type needed to satisfy zod enum type */
|
||||
export const enums: [components, ...components[]] = [
|
||||
components.current_benefits,
|
||||
components.earn_and_burn,
|
||||
components.expiring_points,
|
||||
components.how_it_works,
|
||||
components.loyalty_levels,
|
||||
components.membership_overview,
|
||||
components.my_points,
|
||||
components.next_benefits,
|
||||
components.overview_table,
|
||||
components.points_overview,
|
||||
components.previous_stays,
|
||||
components.soonest_stays,
|
||||
components.upcoming_stays,
|
||||
]
|
||||
}
|
||||
|
||||
export namespace Sidebar {
|
||||
export const enum components {
|
||||
my_pages_navigation = "my_pages_navigation",
|
||||
}
|
||||
|
||||
/** Type needed to satisfy zod enum type */
|
||||
export const enums: [string, ...string[]] = [components.my_pages_navigation]
|
||||
}
|
||||
}
|
||||
7
types/enums/hotelPage.ts
Normal file
7
types/enums/hotelPage.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
export namespace HotelPageEnum {
|
||||
export namespace ContentStack {
|
||||
export const enum blocks {
|
||||
ActivitiesCard = "HotelPageContentUpcomingActivitiesCard",
|
||||
}
|
||||
}
|
||||
}
|
||||
11
types/enums/joinLoyaltyContact.ts
Normal file
11
types/enums/joinLoyaltyContact.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
export namespace JoinLoyaltyContactEnums {
|
||||
export namespace ContentStack {
|
||||
export const enum contact {
|
||||
ContentPage = "ContentPageSidebarJoinLoyaltyContactBlockContactContact",
|
||||
LoyaltyPage = "LoyaltyPageSidebarJoinLoyaltyContactBlockContactContact",
|
||||
}
|
||||
}
|
||||
export const enum contact {
|
||||
Contact = "Contact",
|
||||
}
|
||||
}
|
||||
16
types/enums/loyaltyPage.ts
Normal file
16
types/enums/loyaltyPage.ts
Normal file
@@ -0,0 +1,16 @@
|
||||
export namespace LoyaltyPageEnum {
|
||||
export namespace ContentStack {
|
||||
export const enum blocks {
|
||||
CardsGrid = "LoyaltyPageBlocksCardsGrid",
|
||||
Content = "LoyaltyPageBlocksContent",
|
||||
DynamicContent = "LoyaltyPageBlocksDynamicContent",
|
||||
Shortcuts = "LoyaltyPageBlocksShortcuts",
|
||||
}
|
||||
|
||||
export const enum sidebar {
|
||||
Content = "LoyaltyPageSidebarContent",
|
||||
DynamicContent = "LoyaltyPageSidebarDynamicContent",
|
||||
JoinLoyaltyContact = "LoyaltyPageSidebarJoinLoyaltyContact",
|
||||
}
|
||||
}
|
||||
}
|
||||
7
types/enums/sidebar.ts
Normal file
7
types/enums/sidebar.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
export namespace SidebarEnums {
|
||||
export const enum blocks {
|
||||
Content = "Content",
|
||||
DynamicContent = "DynamicContent",
|
||||
JoinLoyaltyContact = "JoinLoyaltyContact",
|
||||
}
|
||||
}
|
||||
15
types/enums/transactions.ts
Normal file
15
types/enums/transactions.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
export namespace Transactions {
|
||||
export const enum rewardType {
|
||||
stay = "stay",
|
||||
rewardNight = "rewardnight",
|
||||
enrollment = "enrollment",
|
||||
expired = "expired",
|
||||
redgift = "redgift",
|
||||
ancillary = "ancillary",
|
||||
pointShop = "pointshop",
|
||||
tui_points = "tui_points",
|
||||
mastercard_points = "mastercard_points",
|
||||
stayAdj = "stay/adj",
|
||||
othersAdj = "others/adj",
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user