mirror of
https://github.com/kmitresse/Compo-Service-Log-Project.git
synced 2026-05-13 17:11:49 +00:00
f3f2234fdc
/!\ Need to clear the cache folder
23 lines
587 B
TypeScript
23 lines
587 B
TypeScript
import { NudgerData } from "../data";
|
|
import { ArchiveType } from "../archive";
|
|
import { Dataset, DatasetType } from "./";
|
|
|
|
class DatasetCollection {
|
|
public static datasets: Dataset[] = [
|
|
new Dataset(
|
|
NudgerData,
|
|
"nudger",
|
|
"https://files.opendatarchives.fr/data.cquest.org/open4goods/gtin-open-data.zip",
|
|
"open4goods-full-gtin-dataset.csv",
|
|
ArchiveType.ZIP,
|
|
DatasetType.CSV
|
|
),
|
|
];
|
|
|
|
public static loadAll(): Promise<void[]> {
|
|
return Promise.all(this.datasets.map((dataset) => dataset.load()));
|
|
}
|
|
}
|
|
|
|
export default DatasetCollection;
|