first commit

This commit is contained in:
AlfandiMario
2024-11-12 14:04:28 +07:00
commit 0b04f76f9e
13 changed files with 1892 additions and 0 deletions

25
source/config/config.ts Normal file
View File

@@ -0,0 +1,25 @@
import { readFileSync } from "fs";
interface IConfig {
base_url: string;
schedule: string[];
delay: number;
row_per_batch: number;
startDate: string;
endDate: string;
mcuID: string;
}
const j_config = JSON.parse(
readFileSync("./config-point-member.json").toString()
);
const config: IConfig = {
base_url: j_config["base_url"],
schedule: j_config["schedule"],
delay: j_config["delay"],
row_per_batch: j_config["row_per_batch"],
startDate: j_config["startDate"],
endDate: j_config["endDate"],
mcuID: j_config["mcuID"],
};
export default config;