mirror of
https://github.com/opelly27/streetmerchant.git
synced 2026-05-20 07:37:39 +00:00
6608a79769
Co-authored-by: Jef LeCompte <jeffreylec@gmail.com>
29 lines
466 B
TypeScript
29 lines
466 B
TypeScript
import {Browser} from 'puppeteer';
|
|
|
|
export interface Element {
|
|
container: string;
|
|
text: string[];
|
|
}
|
|
|
|
export interface Link {
|
|
series: string;
|
|
brand: string;
|
|
model: string;
|
|
url: string;
|
|
cartUrl?: string;
|
|
openCartAction?: (browser: Browser) => void;
|
|
screenshot?: string;
|
|
}
|
|
|
|
export interface Labels {
|
|
captcha?: Element;
|
|
inStock: Element;
|
|
}
|
|
|
|
export interface Store {
|
|
links: Link[];
|
|
labels: Labels;
|
|
name: string;
|
|
setupAction?: (browser: Browser) => void;
|
|
}
|