Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add More 50xx series, and add copy paste templates for adding more links #3191

Merged
merged 29 commits into from
Jan 29, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
797f3f3
Add 50xx cards, AMD 9xxx CPUs, and copy paste templates for stores
Mr-Tech-13 Jan 12, 2025
a2690d2
Update amazon.ts
Mr-Tech-13 Jan 12, 2025
a5cfe13
Add templates, add all popular ubiquiti products
Mr-Tech-13 Jan 12, 2025
ac6e85a
Update config.ts
Mr-Tech-13 Jan 16, 2025
a55448e
Update config.ts
Mr-Tech-13 Jan 16, 2025
aa1b97d
Update dotenv-example
Mr-Tech-13 Jan 16, 2025
e2f2186
Remove ubiquiti changes, fix typo
Mr-Tech-13 Jan 18, 2025
54dc239
Update config.ts
Mr-Tech-13 Jan 18, 2025
9b85517
Merge branch 'main' into main
Mr-Tech-13 Jan 18, 2025
20b886a
Update dotenv-example
jef Jan 29, 2025
3f88b1b
Update config.ts
jef Jan 29, 2025
ea10d71
Update amazon.ts
jef Jan 29, 2025
1e02533
Update amd.ts
jef Jan 29, 2025
9854a25
Update asus.ts
jef Jan 29, 2025
cbfba1d
Update bandh.ts
jef Jan 29, 2025
9ff4650
Update bestbuy.ts
jef Jan 29, 2025
4ac8366
Update newegg.ts
jef Jan 29, 2025
21a575d
Update pny.ts
jef Jan 29, 2025
6e2ca5d
Update store.ts
jef Jan 29, 2025
d93c557
Update zotac.ts
jef Jan 29, 2025
f48b436
Update config.ts
jef Jan 29, 2025
4ce531a
Update dotenv-example
jef Jan 29, 2025
7dd0ec2
Update config.ts
jef Jan 29, 2025
155181e
add bestbuy-ca cards
Mr-Tech-13 Jan 29, 2025
dbf5ba2
Merge branch 'main' of https://github.com/mr-tech-13/streetmerchant
Mr-Tech-13 Jan 29, 2025
e8da78c
Fix max price error for amd cpus
Mr-Tech-13 Jan 29, 2025
d18f750
Update bestbuy-ca.ts
jef Jan 29, 2025
931ee24
Update zotac.ts
jef Jan 29, 2025
df2e8e7
Merge branch 'main' into main
jef Jan 29, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions dotenv-example
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,12 @@ DISCORD_NOTIFY_GROUP_RYZEN5600=
DISCORD_NOTIFY_GROUP_RYZEN5800=
DISCORD_NOTIFY_GROUP_RYZEN5900=
DISCORD_NOTIFY_GROUP_RYZEN5950=
DISCORD_NOTIFY_GROUP_RYZEN7800X3D=
DISCORD_NOTIFY_GROUP_RYZEN9800X3D=
DISCORD_NOTIFY_GROUP_RYZEN9950X=
DISCORD_NOTIFY_GROUP_RYZEN9900X=
DISCORD_NOTIFY_GROUP_RYZEN9700X=
DISCORD_NOTIFY_GROUP_RYZEN9600X=
DISCORD_NOTIFY_GROUP_SONYPS5C=
DISCORD_NOTIFY_GROUP_SONYPS5DE=
DISCORD_NOTIFY_GROUP_XBOXSX=
Expand Down Expand Up @@ -79,6 +85,12 @@ MAX_PRICE_SERIES_RYZEN5600=
MAX_PRICE_SERIES_RYZEN5800=
MAX_PRICE_SERIES_RYZEN5900=
MAX_PRICE_SERIES_RYZEN5950=
MAX_PRICE_SERIES_RYZEN7800X3D=
MAX_PRICE_SERIES_RYZEN9800X3D=
MAX_PRICE_SERIES_RYZEN9950X=
MAX_PRICE_SERIES_RYZEN9900X=
MAX_PRICE_SERIES_RYZEN9700X=
MAX_PRICE_SERIES_RYZEN9600X=
MAX_PRICE_SERIES_SONYPS5C=
MAX_PRICE_SERIES_SONYPS5DE=
MAX_PRICE_SERIES_XBOXSS=
Expand Down
18 changes: 17 additions & 1 deletion src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,12 @@
ryzen5800: envOrArray(process.env.DISCORD_NOTIFY_GROUP_RYZEN5800),
ryzen5900: envOrArray(process.env.DISCORD_NOTIFY_GROUP_RYZEN5900),
ryzen5950: envOrArray(process.env.DISCORD_NOTIFY_GROUP_RYZEN5950),
ryzen7800x3d: envOrArray(process.env.DISCORD_NOTIFY_GROUP_RYZEN7800X3D),
ryzen9800x3d: envOrArray(process.env.DISCORD_NOTIFY_GROUP_RYZEN9800X3D),
ryzen9600x: envOrArray(process.env.DISCORD_NOTIFY_GROUP_RYZEN9600X),
ryzen9700x: envOrArray(process.env.DISCORD_NOTIFY_GROUP_RYZEN9700X),
ryzen9900x: envOrArray(process.env.DISCORD_NOTIFY_GROUP_RYZEN9900X),
ryzen9950x: envOrArray(process.env.DISCORD_NOTIFY_GROUP_RYZEN9950X),
sf: envOrArray(process.env.DISCORD_NOTIFY_GROUP_CORSAIR_SF),
sonyps5c: envOrArray(process.env.DISCORD_NOTIFY_GROUP_SONYPS5C),
sonyps5de: envOrArray(process.env.DISCORD_NOTIFY_GROUP_SONYPS5DE),
Expand Down Expand Up @@ -451,7 +457,12 @@
ryzen5900: envOrNumber(process.env.MAX_PRICE_SERIES_RYZEN5900),
ryzen5950: envOrNumber(process.env.MAX_PRICE_SERIES_RYZEN5950),
ryzen7950x: envOrNumber(process.env.MAX_PRICE_SERIES_RYZEN7950X),
ryzen9800x3d: envOrNumber(process.env.MAX_PRICE_SERIES_RYZEN9800X3D),
ryzen7800x3d: envOrNumber(process.env.MAX_PRICE_SERIES_RYZEN7800X3D),
ryzen9800x3d: envOrNumber(process.env.MAX_PRICE_SERIES_RYZEN9800XX3D),
ryzen9600x: envOrNumber(process.env.MAX_PRICE_SERIES_RYZEN9600X),
ryzen9700x: envOrNumber(process.env.MAX_PRICE_SERIES_RYZEN9700X),
ryzen9900x: envOrNumber(process.env.MAX_PRICE_SERIES_RYZEN9900X),
ryzen9950x: envOrNumber(process.env.MAX_PRICE_SERIES_RYZEN9950X),
sf: envOrNumber(process.env.MAX_PRICE_SERIES_CORSAIR_SF),
sonyps5c: envOrNumber(process.env.MAX_PRICE_SERIES_SONYPS5C),
sonyps5de: envOrNumber(process.env.MAX_PRICE_SERIES_SONYPS5DE),
Expand Down Expand Up @@ -497,6 +508,11 @@
'ryzen5900',
'ryzen5950',
'ryzen7950',
'ryzen9600x',
'ryzen9700x',
'ryzen9900x',
'ryzen9950x',
'ryzen7800x3d',
'ryzen9800x3d',
'sf',
'sonyps5c',
Expand Down Expand Up @@ -555,8 +571,8 @@
restartTime,
};

export function setConfig(newConfig: any) {

Check warning on line 574 in src/config.ts

View workflow job for this annotation

GitHub Actions / Build and lint

Unexpected any. Specify a different type
const writeConfig = config as any;

Check warning on line 575 in src/config.ts

View workflow job for this annotation

GitHub Actions / Build and lint

Unexpected any. Specify a different type
for (const key of Object.keys(newConfig)) {
writeConfig[key] = newConfig[key];
}
Expand Down
16 changes: 16 additions & 0 deletions src/store/model/amazon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -982,3 +982,19 @@ export const Amazon: Store = {
],
name: 'amazon',
};

/* Copy Paste Template
Copy the product id from the amazon URL.
For example if you have https://www.amazon.com/gp/product/B08M9R8HQY just copy B08M9R8HQY.
Paste it after ASIN.1= in the cartUrl and at the end of /dp/ in the url.
{
brand: '',
cartUrl:
'https://www.amazon.com/gp/aws/cart/add.html?ASIN.1=&Quantity.1=1',
model: '',
series: '',
url: 'https://www.amazon.com/dp/',
},
*/
49 changes: 49 additions & 0 deletions src/store/model/amd.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,55 @@ export const Amd: Store = {
series: 'rx6700xt',
url: 'https://www.amd.com/en/direct-buy/5496921400/us',
},
{
brand: 'amd',
model: '9800x3d',
series: 'ryzen9800x3d',
url: 'https://shop-us-en.amd.com/amd-ryzen-7-9800x3d-processor/',
},
{
brand: 'amd',
model: '9950x',
series: 'ryzen9950x',
url: 'https://shop-us-en.amd.com/amd-ryzen-9-9950x-processor/',
},
{
brand: 'amd',
model: '9900x',
series: 'ryzen9900x',
url: 'https://shop-us-en.amd.com/amd-ryzen-9-9900x-processor/',
},
{
brand: 'amd',
model: '9700x',
series: 'ryzen9700x',
url: 'https://shop-us-en.amd.com/amd-ryzen-7-9700x-processor/',
},
{
brand: 'amd',
model: '9600x',
series: 'ryzen9600x',
url: 'https://shop-us-en.amd.com/amd-ryzen-5-9600x-processor/',
},
{
brand: 'amd',
model: '7800x3d',
series: 'ryzen7800x3d',
url: 'https://shop-us-en.amd.com/amd-ryzen-7-7800x3d-processor/',
},
],
name: 'amd',
};

/* Copy Paste Template

As of 01-12-2025 I cant figure out the add to cart URL.
For now just copy the product page URL into the url field. -agpuperson

{
brand: 'amd',
model: '',
series: '',
url: '',
},
*/
12 changes: 12 additions & 0 deletions src/store/model/asus.ts
Original file line number Diff line number Diff line change
Expand Up @@ -181,3 +181,15 @@ export const Asus: Store = {
},
successStatusCodes: [[0, 399], 404],
};

/* Copy Paste Template

Asus depreciated item numbers, do not use. Instead just copy and paste the links like normal.

{
brand: '',
model: '',
series: '',
url: '',
},
*/
9 changes: 9 additions & 0 deletions src/store/model/bandh.ts
Original file line number Diff line number Diff line change
Expand Up @@ -478,3 +478,12 @@ export const BAndH: Store = {
],
name: 'bandh',
};

/* Copy Paste Template
{
brand: 'pny',
model: '',
series: '',
url: '',
},
*/
134 changes: 133 additions & 1 deletion src/store/model/bestbuy-ca.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export const BestBuyCa: Store = {
brand: 'msi',
model: 'ventus 3x',
series: '3060',
url: 'https://www.bestbuy.ca/en-ca/product/msi-nvidia-geforce-rtx-3060-ventus-3x-12gb-gddr6-video-card/15324508',
url: 'https://www.bestbuy.ca/en-ca/product/16595219',
},
{
brand: 'zotac',
Expand Down Expand Up @@ -229,7 +229,139 @@ export const BestBuyCa: Store = {
series: '3080ti',
url: 'https://www.bestbuy.ca/en-ca/product/nvidia-geforce-rtx-3080-ti-12gb-gddr6x-video-card/15530045',
},
{
brand: 'nvidia',
model: 'founders edition',
series: '5090',
url: 'https://www.bestbuy.ca/en-ca/product/18931348',
},
{
brand: 'nvidia',
model: 'founders edition',
series: '5080',
url: 'https://www.bestbuy.ca/en-ca/product/18931347',
},
{
brand: 'asus',
model: 'astral oc',
series: '5090',
url: 'https://www.bestbuy.ca/en-ca/product/19177947',
},
{
brand: 'asus',
model: 'astral oc',
series: '5080',
url: 'https://www.bestbuy.ca/en-ca/product/19177946',
},
{
brand: 'asus',
model: 'prime',
series: '5080',
url: 'https://www.bestbuy.ca/en-ca/product/18971064',
},
{
brand: 'asus',
model: 'tuf',
series: '5090',
url: 'https://www.bestbuy.ca/en-ca/product/18969272',
},
{
brand: 'msi',
model: 'ventus 3x oc',
series: '5080',
url: 'https://www.bestbuy.ca/en-ca/product/18938760',
},
{
brand: 'msi',
model: 'gaming trio oc',
series: '5080',
url: 'https://www.bestbuy.ca/en-ca/product/18938759',
},
{
brand: 'msi',
model: 'suprim liquid x',
series: '5080',
url: 'https://www.bestbuy.ca/en-ca/product/18938758',
},
{
brand: 'msi',
model: 'suprim liquid soc',
series: '5080',
url: 'https://www.bestbuy.ca/en-ca/product/18938757',
},
{
brand: 'msi',
model: 'vanguard soc launch edition',
series: '5080',
url: 'https://www.bestbuy.ca/en-ca/product/18938756',
},
{
brand: 'msi',
model: 'ventus 3x',
series: '5090',
url: 'https://www.bestbuy.ca/en-ca/product/18938755',
},
{
brand: 'msi',
model: 'suprim liquid x',
series: '5090',
url: 'https://www.bestbuy.ca/en-ca/product/18938754',
},
{
brand: 'msi',
model: 'vanguard',
series: '5090',
url: 'https://www.bestbuy.ca/en-ca/product/18938752',
},
{
brand: 'msi',
model: 'gaming trio oc',
series: '5090',
url: 'https://www.bestbuy.ca/en-ca/product/18938751',
},
{
brand: 'asus',
model: 'prime',
series: '5080',
url: 'https://www.bestbuy.ca/en-ca/product/18934247',
},
{
brand: 'pny',
model: 'triple fan oc',
series: '5080',
url: 'https://www.bestbuy.ca/en-ca/product/18934178',
},
{
brand: 'pny',
model: 'epic x oc',
series: '5080',
url: 'https://www.bestbuy.ca/en-ca/product/18934177',
},
{
brand: 'zotac',
model: 'solid',
series: '5090',
url: 'https://www.bestbuy.ca/en-ca/product/18931631',
},
{
brand: 'zotac',
model: 'solid oc',
series: '5080',
url: 'https://www.bestbuy.ca/en-ca/product/18931629',
},
],
name: 'bestbuy-ca',
waitUntil: 'domcontentloaded',
};

/* Copy Paste Template

Just paste product ID at the end of the link

{
brand: '',
model: '',
series: '',
url: 'https://www.bestbuy.ca/en-ca/product/',
},
*/
22 changes: 21 additions & 1 deletion src/store/model/bestbuy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -695,6 +695,13 @@ export const BestBuy: Store = {
series: 'arc',
url: 'https://api.bestbuy.com/click/-/6614154/pdp',
},
{
brand: 'nvidia',
cartUrl: 'https://api.bestbuy.com/click/-/6614154/cart',
model: 'founders edition',
series: '5070',
url: 'https://api.bestbuy.com/click/-/6614154/pdp',
},
{
brand: 'nvidia',
cartUrl: 'https://api.bestbuy.com/click/-/6614153/cart',
Expand All @@ -704,11 +711,24 @@ export const BestBuy: Store = {
},
{
brand: 'nvidia',
// cartUrl: 'https://api.bestbuy.com/click/-/6614151/cart',
cartUrl: 'https://api.bestbuy.com/click/-/6614151/cart',
model: 'founders edition',
series: '5090',
url: 'https://api.bestbuy.com/click/-/6614151/pdp',
},
],
name: 'bestbuy',
};

/* Copy Paste template

Paste the SKU from the site in between both sets of /-// example: /-/sku/cart, /-/sku/pdp

{
brand: '',
cartUrl: 'https://api.bestbuy.com/click/-//cart',
model: '',
series: '',
url: 'https://api.bestbuy.com/click/-//pdp',
},
*/
Loading
Loading