diff --git a/docs/reference/filter.md b/docs/reference/filter.md index e8b3d686b6..83cf056c9a 100644 --- a/docs/reference/filter.md +++ b/docs/reference/filter.md @@ -104,6 +104,7 @@ Used with the `STORES` variable. | Smyths Toys (UK) | `smythstoys`| | Spielegrotte | `spielegrotte`| | Target | `target`| +| Toys R Us | `toysrus` | | Unieuro (IT) | `unieuro`| | Very (UK) | `very`| | Walmart | `walmart`| diff --git a/src/store/model/index.ts b/src/store/model/index.ts index a1a6a4c6cf..d8d552184a 100644 --- a/src/store/model/index.ts +++ b/src/store/model/index.ts @@ -77,6 +77,7 @@ import {Spielegrotte} from './spielegrotte'; import {Store} from './store'; import {Target} from './target'; import {TopAchat} from './topachat'; +import {ToysRUs} from './toysrus'; import {Unieuro} from './unieuro'; import {Very} from './very'; import {VsGamers} from './vsgamers'; @@ -165,6 +166,7 @@ export const storeList = new Map([ [Spielegrotte.name, Spielegrotte], [Target.name, Target], [TopAchat.name, TopAchat], + [ToysRUs.name, ToysRUs], [Unieuro.name, Unieuro], [Very.name, Very], [VsGamers.name, VsGamers], diff --git a/src/store/model/toysrus.ts b/src/store/model/toysrus.ts new file mode 100644 index 0000000000..fe03544a0c --- /dev/null +++ b/src/store/model/toysrus.ts @@ -0,0 +1,48 @@ +import {Store} from './store'; + +export const ToysRUs: Store = { + labels: { + inStock: { + container: 'li.b-product_status', + text: ['in stock'] + }, + maxPrice: { + container: '.b-price-value' + } + }, + links: [ + { + brand: 'test:brand', + model: 'test:model', + series: 'test:series', + url: + 'https://www.toysrus.ca/en/Hasbro-Gaming---Operation-Game---styles-may-vary/99D52A22.html' + }, + { + brand: 'sony', + model: 'ps5 console', + series: 'sonyps5c', + url: 'https://www.toysrus.ca/en/PlayStation-5-Console/C443A89B.html' + }, + { + brand: 'sony', + model: 'ps5 digital', + series: 'sonyps5de', + url: + 'https://www.toysrus.ca/en/PlayStation-5-Digital-Edition/E4A019FE.html' + }, + { + brand: 'microsoft', + model: 'xbox series x', + series: 'xboxsx', + url: 'https://www.toysrus.ca/en/XBOX-Series-X-Console/84D9A92D.html' + }, + { + brand: 'microsoft', + model: 'xbox series s', + series: 'xboxss', + url: 'https://www.toysrus.ca/en/XBOX-Series-S-Console/A43E2AF7.html' + } + ], + name: 'toysrus' +};