Skip to content

Commit

Permalink
feat(store): add Microsoft (CA) for Xbox X/S (#2764)
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisvanderkooi authored Oct 7, 2021
1 parent 28ce7e9 commit ca784c8
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/store/model/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ import {logger} from '../../logger';
import chalk from 'chalk';
import {UltimaInformatica} from './utlimainformatica';
import {XtremMedia} from './xtremmedia';
import {MicrosoftCA} from './microsoft-ca';

export const storeList = new Map([
[AComPC.name, AComPC],
Expand Down Expand Up @@ -271,6 +272,7 @@ export const storeList = new Map([
[Materiel.name, Materiel],
[MemoryExpress.name, MemoryExpress],
[MicroCenter.name, MicroCenter],
[MicrosoftCA.name, MicrosoftCA],
[MightyApe.name, MightyApe],
[Mindfactory.name, Mindfactory],
[Msy.name, Msy],
Expand Down
36 changes: 36 additions & 0 deletions src/store/model/microsoft-ca.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
import {Store} from './store';

export const MicrosoftCA: Store = {
currency: '$',
labels: {
inStock: {
container: 'button[aria-label="Checkout bundle"]',
text: ['Checkout'],
},
outOfStock: {
container: 'button[aria-label="Checkout bundle"]',
text: ['Out of stock'],
},
},
links: [
{
brand: 'test:brand',
model: 'test:model',
series: 'test:series',
url: 'https://www.xbox.com/en-ca/configure/8WJ714N3RBTL',
},
{
brand: 'microsoft',
model: 'xbox series x',
series: 'xboxsx',
url: 'https://www.xbox.com/en-ca/configure/8WJ714N3RBTL',
},
{
brand: 'microsoft',
model: 'xbox series s',
series: 'xboxss',
url: 'https://www.xbox.com/en-ca/configure/942J774TP9JN',
},
],
name: 'microsoft-ca',
};

0 comments on commit ca784c8

Please sign in to comment.