-
Notifications
You must be signed in to change notification settings - Fork 91
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Return info about how many times game was bundled, and a lot of relat…
…ed refactors
- Loading branch information
Showing
18 changed files
with
291 additions
and
154 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
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,4 @@ | ||
|
||
export enum EStoreName { | ||
StoreList = "storeList" | ||
} |
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
14 changes: 8 additions & 6 deletions
14
src/js/Background/Modules/ITADApi.js → ...kground/Modules/IsThereAnyDeal/ITADApi.ts
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
|
||
interface TShopInfo { | ||
id: number, | ||
title: string, | ||
deals: number, | ||
games: number, | ||
update: string | ||
} | ||
|
||
export interface TGetStoreListMessage { | ||
action: "itad.storelist" | ||
} | ||
|
||
export type TGetStoreListResponse = TShopInfo[] |
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
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,19 @@ | ||
import {BackgroundSender} from "../../../Core/BackgroundSimple"; | ||
import type {TFetchPricesMessage, TFetchPricesResponse} from "../../../Background/Modules/AugmentedSteam/_types"; | ||
|
||
export default class AugmentedSteamApiFacade { | ||
|
||
static fetchPrices( | ||
country: string, | ||
apps: number[], | ||
subs: number[], | ||
bundles: number[], | ||
voucher: boolean, | ||
shops: number[] | ||
): Promise<TFetchPricesResponse> { | ||
return BackgroundSender.send<TFetchPricesMessage, TFetchPricesResponse>({ | ||
action: "prices", | ||
params: {country, apps, subs, bundles, voucher, shops} | ||
}); | ||
} | ||
} |
Oops, something went wrong.