Files
tauron-scrapper/src/config/types.ts

32 lines
633 B
TypeScript

import { ConsumerConfig } from "../consumers/types";
export type Config = {
/**
* Tauron service configuration
*/
tauron: TauronConfig;
consumers: Record<string, unknown>;
};
export type TauronConfig = ConsumerConfig & {
/**
* Path to file containing a username of Tauron account
*/
usernamePath: string;
/**
* Path to file containing a password of Tauron account
*/
passwordPath: string;
/**
* The measure point name - should be retrieved with browser dev-tools on website
*/
point: string;
/**
* The path to the json file with cookie jar
*/
cookiesJarPath?: string;
};