diff --git a/src/store/lookup.ts b/src/store/lookup.ts index abd323f..e6c67f7 100644 --- a/src/store/lookup.ts +++ b/src/store/lookup.ts @@ -14,7 +14,7 @@ const inStock: Record = {}; * * @param brand The brand of the GPU */ -function filterBrand(brand: string) { +function filterBrand(brand: Link['brand']) { if (Config.store.showOnlyBrands.length === 0) { return true; } @@ -27,7 +27,7 @@ function filterBrand(brand: string) { * * @param series The series of the GPU */ -function filterSeries(series: string) { +function filterSeries(series: Link['series']) { if (Config.store.showOnlySeries.length === 0) { return true; } diff --git a/src/store/model/adorama.ts b/src/store/model/adorama.ts index 81a84e8..9d25ca2 100644 --- a/src/store/model/adorama.ts +++ b/src/store/model/adorama.ts @@ -9,9 +9,9 @@ export const Adorama: Store = { }, links: [ { - brand: 'TEST', + brand: 'test:brand', model: 'CARD', - series: 'debug', + series: 'test:series', url: 'https://www.adorama.com/ev08gp43067k.html' }, { diff --git a/src/store/model/amazon-ca.ts b/src/store/model/amazon-ca.ts index 6db67f3..624a632 100644 --- a/src/store/model/amazon-ca.ts +++ b/src/store/model/amazon-ca.ts @@ -13,9 +13,9 @@ export const AmazonCa: Store = { }, links: [ { - brand: 'TEST', + brand: 'test:brand', model: 'CARD', - series: 'debug', + series: 'test:series', url: 'https://www.amazon.ca/dp/B07PBLD2MX' }, { diff --git a/src/store/model/amazon.ts b/src/store/model/amazon.ts index a8d4a09..f6dc2c0 100644 --- a/src/store/model/amazon.ts +++ b/src/store/model/amazon.ts @@ -13,9 +13,9 @@ export const Amazon: Store = { }, links: [ { - brand: 'TEST', + brand: 'test:brand', model: 'CARD', - series: 'debug', + series: 'test:series', url: 'https://www.amazon.com/dp/B07MQ36Z6L' }, { diff --git a/src/store/model/asus.ts b/src/store/model/asus.ts index dab606f..41aab71 100644 --- a/src/store/model/asus.ts +++ b/src/store/model/asus.ts @@ -9,9 +9,9 @@ export const Asus: Store = { }, links: [ { - brand: 'TEST', + brand: 'test:brand', model: 'CARD', - series: 'debug', + series: 'test:series', url: 'https://store.asus.com/us/item/202003AM280000002/' }, { diff --git a/src/store/model/bandh.ts b/src/store/model/bandh.ts index 7819518..494601c 100644 --- a/src/store/model/bandh.ts +++ b/src/store/model/bandh.ts @@ -9,9 +9,9 @@ export const BAndH: Store = { }, links: [ { - brand: 'TEST', + brand: 'test:brand', model: 'CARD', - series: 'debug', + series: 'test:series', url: 'https://www.bhphotovideo.com/c/product/1452927-REG/evga_06g_p4_2063_kr_geforce_rtx_2060_xc.html' }, // TUF was removed from BH, not sure why so commenting out listing for now diff --git a/src/store/model/bestbuy-ca.ts b/src/store/model/bestbuy-ca.ts index 36dbd87..fbc2093 100644 --- a/src/store/model/bestbuy-ca.ts +++ b/src/store/model/bestbuy-ca.ts @@ -9,9 +9,9 @@ export const BestBuyCa: Store = { }, links: [ { - brand: 'TEST', + brand: 'test:brand', model: 'CARD', - series: 'debug', + series: 'test:series', url: 'https://www.bestbuy.ca/en-ca/product/msi-nvidia-geforce-rtx-2060-super-gaming-x-8gb-gddr6-video-card/14419420?intl=nosplash' }, { diff --git a/src/store/model/bestbuy.ts b/src/store/model/bestbuy.ts index c59e991..18605a1 100644 --- a/src/store/model/bestbuy.ts +++ b/src/store/model/bestbuy.ts @@ -9,9 +9,9 @@ export const BestBuy: Store = { }, links: [ { - brand: 'TEST', + brand: 'test:brand', model: 'CARD', - series: 'debug', + series: 'test:series', url: 'https://www.bestbuy.com/site/nvidia-geforce-rtx-2060-super-8gb-gddr6-pci-express-graphics-card-black-silver/6361329.p?skuId=6361329&intl=nosplash' }, { diff --git a/src/store/model/evga.ts b/src/store/model/evga.ts index 58ea92c..bac2056 100644 --- a/src/store/model/evga.ts +++ b/src/store/model/evga.ts @@ -9,9 +9,9 @@ export const Evga: Store = { }, links: [ { - brand: 'TEST', + brand: 'test:brand', model: 'CARD', - series: 'debug', + series: 'test:series', url: 'https://www.evga.com/products/product.aspx?pn=06G-P4-2065-KR' }, { diff --git a/src/store/model/helpers/nvidia.ts b/src/store/model/helpers/nvidia.ts index 7f63898..e2a846a 100644 --- a/src/store/model/helpers/nvidia.ts +++ b/src/store/model/helpers/nvidia.ts @@ -135,10 +135,10 @@ export function generateLinks(): Link[] { if (fe2060SuperId) { links.push({ - brand: 'TEST', + brand: 'test:brand', model: 'CARD', openCartAction: generateOpenCartAction(fe2060SuperId, nvidiaLocale, drLocale, 'TEST CARD debug'), - series: 'debug', + series: 'test:series', url: digitalRiverStockUrl(fe2060SuperId, drLocale) }); } diff --git a/src/store/model/microcenter.ts b/src/store/model/microcenter.ts index 4baab20..1d522bf 100644 --- a/src/store/model/microcenter.ts +++ b/src/store/model/microcenter.ts @@ -9,9 +9,9 @@ export const MicroCenter: Store = { }, links: [ { - brand: 'TEST', + brand: 'test:brand', model: 'CARD', - series: 'debug', + series: 'test:series', url: 'https://www.microcenter.com/product/618433/evga-geforce-rtx-2060-ko-ultra-overclocked-dual-fan-6gb-gddr6-pcie-30-graphics-card' }, { diff --git a/src/store/model/newegg-ca.ts b/src/store/model/newegg-ca.ts index aaedf49..b199016 100644 --- a/src/store/model/newegg-ca.ts +++ b/src/store/model/newegg-ca.ts @@ -13,9 +13,9 @@ export const NewEggCa: Store = { }, links: [ { - brand: 'TEST', + brand: 'test:brand', model: 'CARD', - series: 'debug', + series: 'test:series', url: 'https://www.newegg.ca/evga-geforce-rtx-2060-06g-p4-2066-kr/p/N82E16814487488' }, { diff --git a/src/store/model/newegg.ts b/src/store/model/newegg.ts index 38ccb2b..75f5f03 100644 --- a/src/store/model/newegg.ts +++ b/src/store/model/newegg.ts @@ -13,9 +13,9 @@ export const NewEgg: Store = { }, links: [ { - brand: 'TEST', + brand: 'test:brand', model: 'CARD', - series: 'debug', + series: 'test:series', url: 'https://www.newegg.com/evga-geforce-rtx-2060-06g-p4-2066-kr/p/N82E16814487488' }, { diff --git a/src/store/model/officedepot.ts b/src/store/model/officedepot.ts index e02a02c..1a33b56 100644 --- a/src/store/model/officedepot.ts +++ b/src/store/model/officedepot.ts @@ -13,9 +13,9 @@ export const OfficeDepot: Store = { }, links: [ { - brand: 'TEST', + brand: 'test:brand', model: 'CARD', - series: 'debug', + series: 'test:series', url: 'https://www.officedepot.com/a/products/4652239/EVGA-GeForce-RTX-2060-Graphic-Card/' }, { diff --git a/src/store/model/store.ts b/src/store/model/store.ts index 0de9a2b..515d1e3 100644 --- a/src/store/model/store.ts +++ b/src/store/model/store.ts @@ -6,8 +6,8 @@ export type Element = { }; export type Link = { - series: string; - brand: string; + brand: 'test:brand' | 'asus' | 'evga' | 'gigabyte' | 'pny' | 'msi' | 'nvidia' | 'zotac'; + series: 'test:series' | '3070' | '3080' | '3090'; model: string; url: string; cartUrl?: string; diff --git a/src/store/model/zotac.ts b/src/store/model/zotac.ts index da8ff01..a617cce 100644 --- a/src/store/model/zotac.ts +++ b/src/store/model/zotac.ts @@ -9,9 +9,9 @@ export const Zotac: Store = { }, links: [ { - brand: 'TEST', + brand: 'test:brand', model: 'CARD', - series: 'debug', + series: 'test:series', url: 'https://store.zotac.com/zotac-gaming-geforce-rtx-2060-twin-fan-zt-t20600f-10m' }, {