-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature/NR-74 Introduce release date data model (#230)
feature: improve way release dates are stored # introduced new releaseDate data model # rename getGamesWIthoutReleaseDates -> getXUnreleasedGames # used new releaseDate data model where ever there is a release date # games repo now uses comingSoon release date property instead of calculating it on call # moved release date logic into new data model # improved tests, used mocks more often # used new data model in tests/mocks # added steam app raw tests Previously, the release date was a simple date. Now, the release date is a data model with its own internal logic. It also has a coming soon boolean property. A true value indicated the game is still unreleased, i.e. it is coming out soon. Issue-ref: #220
- Loading branch information
1 parent
5205da0
commit d220eab
Showing
20 changed files
with
762 additions
and
303 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
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
173 changes: 173 additions & 0 deletions
173
backend/assets/steam-api-responses/monster.hunter.coming.soon.js
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,173 @@ | ||
export const monsterHunterSteamApiData = { | ||
type: "game", | ||
name: "Monster Hunter Wilds", | ||
steam_appid: 2246340, | ||
required_age: 0, | ||
is_free: false, | ||
detailed_description: "The hunt is on in Monster Hunter Wilds, the latest installment in the Monster Hunter series, now in development. Experience the pinnacle of excellence in hunting action gameplay.<br><br>Planned for release in 2025.<br><br><strong>Note: Supported languages and other details to be announced at a later date.</strong>", | ||
about_the_game: "The hunt is on in Monster Hunter Wilds, the latest installment in the Monster Hunter series, now in development. Experience the pinnacle of excellence in hunting action gameplay.<br><br>Planned for release in 2025.<br><br><strong>Note: Supported languages and other details to be announced at a later date.</strong>", | ||
short_description: "The hunt is on in Monster Hunter Wilds, the latest installment in the Monster Hunter series, now in development. Experience the pinnacle of excellence in hunting action gameplay. Planned for release in 2025.", | ||
supported_languages: "English", | ||
header_image: "https://shared.akamai.steamstatic.com/store_item_assets/steam/apps/2246340/header.jpg?t=1717124069", | ||
capsule_image: "https://shared.akamai.steamstatic.com/store_item_assets/steam/apps/2246340/capsule_231x87.jpg?t=1717124069", | ||
capsule_imagev5: "https://shared.akamai.steamstatic.com/store_item_assets/steam/apps/2246340/capsule_184x69.jpg?t=1717124069", | ||
website: "https://www.monsterhunter.com/wilds/", | ||
pc_requirements: { | ||
minimum: "<strong>Minimum:</strong><br><ul class=\"bb_ul\"><li><strong>OS:</strong> TBD</li></ul>", | ||
recommended: "<strong>Recommended:</strong><br><ul class=\"bb_ul\"><li><strong>OS:</strong> TBD</li></ul>", | ||
}, | ||
mac_requirements: [ | ||
], | ||
linux_requirements: [ | ||
], | ||
legal_notice: "©CAPCOM", | ||
developers: [ | ||
"CAPCOM Co., Ltd.", | ||
], | ||
publishers: [ | ||
"CAPCOM Co., Ltd.", | ||
], | ||
package_groups: [ | ||
], | ||
platforms: { | ||
windows: true, | ||
mac: false, | ||
linux: false, | ||
}, | ||
categories: [ | ||
{ | ||
id: 2, | ||
description: "Single-player", | ||
}, | ||
{ | ||
id: 1, | ||
description: "Multi-player", | ||
}, | ||
], | ||
genres: [ | ||
{ | ||
id: "1", | ||
description: "Action", | ||
}, | ||
], | ||
screenshots: [ | ||
{ | ||
id: 0, | ||
path_thumbnail: "https://shared.akamai.steamstatic.com/store_item_assets/steam/apps/2246340/ss_44e68f3f74c173ea10d440dcfdee4d45f9203bf6.600x338.jpg?t=1717124069", | ||
path_full: "https://shared.akamai.steamstatic.com/store_item_assets/steam/apps/2246340/ss_44e68f3f74c173ea10d440dcfdee4d45f9203bf6.1920x1080.jpg?t=1717124069", | ||
}, | ||
{ | ||
id: 1, | ||
path_thumbnail: "https://shared.akamai.steamstatic.com/store_item_assets/steam/apps/2246340/ss_161ab6d119fefd78f52b2534fee40b8c456c6bce.600x338.jpg?t=1717124069", | ||
path_full: "https://shared.akamai.steamstatic.com/store_item_assets/steam/apps/2246340/ss_161ab6d119fefd78f52b2534fee40b8c456c6bce.1920x1080.jpg?t=1717124069", | ||
}, | ||
{ | ||
id: 2, | ||
path_thumbnail: "https://shared.akamai.steamstatic.com/store_item_assets/steam/apps/2246340/ss_827f69f98cbe1301cb647fb1bcd6364e69a977e5.600x338.jpg?t=1717124069", | ||
path_full: "https://shared.akamai.steamstatic.com/store_item_assets/steam/apps/2246340/ss_827f69f98cbe1301cb647fb1bcd6364e69a977e5.1920x1080.jpg?t=1717124069", | ||
}, | ||
{ | ||
id: 3, | ||
path_thumbnail: "https://shared.akamai.steamstatic.com/store_item_assets/steam/apps/2246340/ss_01c4c83d31387049d23be1a7ddd0c636f7119284.600x338.jpg?t=1717124069", | ||
path_full: "https://shared.akamai.steamstatic.com/store_item_assets/steam/apps/2246340/ss_01c4c83d31387049d23be1a7ddd0c636f7119284.1920x1080.jpg?t=1717124069", | ||
}, | ||
{ | ||
id: 4, | ||
path_thumbnail: "https://shared.akamai.steamstatic.com/store_item_assets/steam/apps/2246340/ss_11d1e1cba3047bfa8bf0653aee133f8cf0db3d52.600x338.jpg?t=1717124069", | ||
path_full: "https://shared.akamai.steamstatic.com/store_item_assets/steam/apps/2246340/ss_11d1e1cba3047bfa8bf0653aee133f8cf0db3d52.1920x1080.jpg?t=1717124069", | ||
}, | ||
{ | ||
id: 5, | ||
path_thumbnail: "https://shared.akamai.steamstatic.com/store_item_assets/steam/apps/2246340/ss_3920e4068e53d526c80fb5b4ba9bbca01629bbfd.600x338.jpg?t=1717124069", | ||
path_full: "https://shared.akamai.steamstatic.com/store_item_assets/steam/apps/2246340/ss_3920e4068e53d526c80fb5b4ba9bbca01629bbfd.1920x1080.jpg?t=1717124069", | ||
}, | ||
{ | ||
id: 6, | ||
path_thumbnail: "https://shared.akamai.steamstatic.com/store_item_assets/steam/apps/2246340/ss_c1f44fa0f4a5994cbf331540e46bafa5d7b63836.600x338.jpg?t=1717124069", | ||
path_full: "https://shared.akamai.steamstatic.com/store_item_assets/steam/apps/2246340/ss_c1f44fa0f4a5994cbf331540e46bafa5d7b63836.1920x1080.jpg?t=1717124069", | ||
}, | ||
{ | ||
id: 7, | ||
path_thumbnail: "https://shared.akamai.steamstatic.com/store_item_assets/steam/apps/2246340/ss_a41eda5fb16bd283eb64e9ed0aead4fb55a49f24.600x338.jpg?t=1717124069", | ||
path_full: "https://shared.akamai.steamstatic.com/store_item_assets/steam/apps/2246340/ss_a41eda5fb16bd283eb64e9ed0aead4fb55a49f24.1920x1080.jpg?t=1717124069", | ||
}, | ||
{ | ||
id: 8, | ||
path_thumbnail: "https://shared.akamai.steamstatic.com/store_item_assets/steam/apps/2246340/ss_ef0d1fc952a50cc8fb63a041fe1b475fa7594715.600x338.jpg?t=1717124069", | ||
path_full: "https://shared.akamai.steamstatic.com/store_item_assets/steam/apps/2246340/ss_ef0d1fc952a50cc8fb63a041fe1b475fa7594715.1920x1080.jpg?t=1717124069", | ||
}, | ||
{ | ||
id: 9, | ||
path_thumbnail: "https://shared.akamai.steamstatic.com/store_item_assets/steam/apps/2246340/ss_7772b12d698d02b37f38b2b2af2b56b3a0f011a0.600x338.jpg?t=1717124069", | ||
path_full: "https://shared.akamai.steamstatic.com/store_item_assets/steam/apps/2246340/ss_7772b12d698d02b37f38b2b2af2b56b3a0f011a0.1920x1080.jpg?t=1717124069", | ||
}, | ||
{ | ||
id: 10, | ||
path_thumbnail: "https://shared.akamai.steamstatic.com/store_item_assets/steam/apps/2246340/ss_ed88d2006f292d9f2ca08645e61fed8f47a453d5.600x338.jpg?t=1717124069", | ||
path_full: "https://shared.akamai.steamstatic.com/store_item_assets/steam/apps/2246340/ss_ed88d2006f292d9f2ca08645e61fed8f47a453d5.1920x1080.jpg?t=1717124069", | ||
}, | ||
], | ||
movies: [ | ||
{ | ||
id: 257027129, | ||
name: "05_MHWilds_PV1_Multi_ASIA_1080P", | ||
thumbnail: "https://shared.akamai.steamstatic.com/store_item_assets/steam/apps/257027129/movie.293x165.jpg?t=1717124031", | ||
webm: { | ||
"480": "http://cdn.akamai.steamstatic.com/steam/apps/257027129/movie480_vp9.webm?t=1717124031", | ||
max: "http://cdn.akamai.steamstatic.com/steam/apps/257027129/movie_max_vp9.webm?t=1717124031", | ||
}, | ||
mp4: { | ||
"480": "http://cdn.akamai.steamstatic.com/steam/apps/257027129/movie480.mp4?t=1717124031", | ||
max: "http://cdn.akamai.steamstatic.com/steam/apps/257027129/movie_max.mp4?t=1717124031", | ||
}, | ||
highlight: true, | ||
}, | ||
{ | ||
id: 256988327, | ||
name: "05_MHWilds_AnnouncePV_Multi_ASIA_1080P", | ||
thumbnail: "https://shared.akamai.steamstatic.com/store_item_assets/steam/apps/256988327/movie.293x165.jpg?t=1702947717", | ||
webm: { | ||
"480": "http://cdn.akamai.steamstatic.com/steam/apps/256988327/movie480_vp9.webm?t=1702947717", | ||
max: "http://cdn.akamai.steamstatic.com/steam/apps/256988327/movie_max_vp9.webm?t=1702947717", | ||
}, | ||
mp4: { | ||
"480": "http://cdn.akamai.steamstatic.com/steam/apps/256988327/movie480.mp4?t=1702947717", | ||
max: "http://cdn.akamai.steamstatic.com/steam/apps/256988327/movie_max.mp4?t=1702947717", | ||
}, | ||
highlight: true, | ||
}, | ||
], | ||
release_date: { | ||
coming_soon: true, | ||
date: "2025", | ||
}, | ||
support_info: { | ||
url: "http://www.capcom.co.jp/support/contact/", | ||
email: "", | ||
}, | ||
background: "https://shared.akamai.steamstatic.com/store_item_assets/steam/apps/2246340/page_bg_generated_v6b.jpg?t=1717124069", | ||
background_raw: "https://shared.akamai.steamstatic.com/store_item_assets/steam/apps/2246340/page_bg_generated.jpg?t=1717124069", | ||
content_descriptors: { | ||
ids: [ | ||
], | ||
notes: null, | ||
}, | ||
ratings: { | ||
dejus: { | ||
rating_generated: "1", | ||
rating: "l", | ||
required_age: "0", | ||
banned: "0", | ||
use_age_gate: "0", | ||
descriptors: "", | ||
}, | ||
steam_germany: { | ||
rating_generated: "1", | ||
rating: "0", | ||
required_age: "0", | ||
banned: "0", | ||
use_age_gate: "0", | ||
descriptors: "", | ||
}, | ||
}, | ||
} |
5 changes: 5 additions & 0 deletions
5
backend/assets/steam-api-responses/party.animals.missing.data.js
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,5 @@ | ||
export const partyAnimalsApiMissingData = { | ||
type: "game", | ||
name: "Party Animals", | ||
steam_appid: 1260320, | ||
} |
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
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
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
Oops, something went wrong.