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(store): add office depot #157

Merged
merged 4 commits into from
Sep 21, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
11 changes: 6 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ The purpose of this bot is to get an Nvidia card. It tries multiple things to do

> :point_right: You may get false positives from time to time, so I apologize for that. The library currently waits for all calls to be completed before parsing, but sometimes this can have unknown behavior. Patience is a virtue :)

| | **Adorama** | **Amazon** | **ASUS** | **EVGA** | **Best Buy** | **B&H** | **Micro Center** | **Newegg** | **Nvidia** |
|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|
| **3070**| | | | | | | | | |
| **3080** | `✔` | `✔` | `✔` | `✔` | `✔` | `✔` | `✔` | `✔` | `✔` |
| **3090** | | | | | | | | | |
| | **Adorama** | **Amazon** | **ASUS** | **EVGA** | **Best Buy** | **B&H** | **Micro Center** | **Newegg** | **Nvidia** | **Office Depot** |
|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|
| **3070**| | | | | | | | | | |
| **3080** | `✔` | `✔` | `✔` | `✔` | `✔` | `✔` | `✔` | `✔` | `✔` | `✔` |
| **3090** | | | | | | | | | | |

## Installation and prerequisites

Expand Down Expand Up @@ -110,6 +110,7 @@ Here is a list of variables that you can use to customize your newly copied `.en
| Newegg | `newegg`|
| Newegg.ca | `newegg-ca`|
| Nvidia | `nvidia`|
| Office Depot | `officedepot`|

#### Supported carriers

Expand Down
4 changes: 3 additions & 1 deletion src/store/model/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import {NewEgg} from './newegg';
import {NewEggCa} from './newegg-ca';
import {Nvidia} from './nvidia';
import {Store} from './store';
import {OfficeDepot} from './officedepot';

const masterList = new Map([
[Adorama.name, Adorama],
Expand All @@ -24,7 +25,8 @@ const masterList = new Map([
[MicroCenter.name, MicroCenter],
[NewEgg.name, NewEgg],
[NewEggCa.name, NewEggCa],
[Nvidia.name, Nvidia]
[Nvidia.name, Nvidia],
[OfficeDepot.name, OfficeDepot]
]);

const list = new Map();
Expand Down
29 changes: 29 additions & 0 deletions src/store/model/officedepot.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
import {Store} from './store';

export const OfficeDepot: Store = {
links: [
{
brand: 'TEST',
model: 'CARD',
series: 'debug',
url: 'https://www.officedepot.com/a/products/7189374/PNY-GeForce-RTX-3080-10GB-GDDR6X/'
},
{
brand: 'pny',
model: 'xlr8',
series: '3080',
url: 'https://www.officedepot.com/a/products/7189374/PNY-GeForce-RTX-3080-10GB-GDDR6X/'
},
{
brand: 'pny',
model: 'xlr8 rgb',
series: '3080',
url: 'https://www.officedepot.com/a/products/7791294/PNY-GeForce-RTX-3080-10GB-GDDR6X/'
}
],
labels: {
captcha: ['please verify you are a human'],
outOfStock: ['out of stock for delivery', 'out of stock']
},
name: 'officedepot'
};