Skip to content

Commit

Permalink
feat: Add enums for adUnit, channel, and placement types
Browse files Browse the repository at this point in the history
  • Loading branch information
luarakerlen committed Oct 31, 2024
1 parent 939c2ce commit 459d859
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 3 deletions.
6 changes: 3 additions & 3 deletions graphql/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -79,15 +79,15 @@ type Query {
"""
Placement of the banner. Used for analytics purposes.
"""
placement: String
placement: Placement
"""
Banner dimensions.
"""
adUnit: String
adUnit: AdUnit
"""
Channel where the banner is being shown. Used for analytics purposes.
"""
channel: String
channel: Channel
"""
Identifier for users, logged in or not. Used for A/B tests.
"""
Expand Down
14 changes: 14 additions & 0 deletions graphql/types/AdUnit.graphql
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
enum AdUnit {
billboard
smartphonebanner
leaderboard
superleaderboard
portrait
skyscraper
mediumrectangle
button120x60
mobilephoneinterstitial
featurephonesmallbanner
featurephonemediumbanner
featurephonelargebanner
}
7 changes: 7 additions & 0 deletions graphql/types/Channel.graphql
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
enum Channel {
website
android
ios
msite
whatsapp
}
10 changes: 10 additions & 0 deletions graphql/types/Placement.graphql
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
enum Placement {
top_search
middle_search
home_shelfpdp_shelf
search_shelf
cart_shelf
plp_shelf
autocomplete
homepage
}

0 comments on commit 459d859

Please sign in to comment.