UNPKG

@arcane-utils/ingestion

Version:

Ingestion utilities for Arcane

28 lines (25 loc) 1.25 kB
import { Ingestion } from '@arcane-utils/types'; /** * Determines if the product evolution information should be called. * * This function evaluates whether the product evolution information needs to be updated * based on the following criteria: * - The last calculation date is not the same as today. * - The identifier key exists. * - The identifier key is not empty. * * @param {Ingestion} dataIngestion - The ingestion data object containing product evolution information. * @returns {boolean} - Returns true if product evolution information should be called, false otherwise. */ declare const shouldCallProductEvolutionCalculator: (dataIngestion: Ingestion) => boolean; declare const PREFIX_IMPORT = "pf__import__"; /** * Builds the datalake import file name for a given ingestion, mirroring the Python * convention: `pf__import__<client_id>__<import_id>` with every space replaced by `_`. * * @param clientId - Id of the client owning the import. * @param importId - Id of the import (e.g. the master ingestion id). * @returns The normalized import file name. */ declare const createFileName: (clientId: string, importId: number) => string; export { PREFIX_IMPORT, createFileName, shouldCallProductEvolutionCalculator };