Skip to main content

Overview

This module exports constants used throughout the Version Counter application for configuration and business logic.

Constants

MANTENIMIENTO_DURACION_HORAS

MANTENIMIENTO_DURACION_HORAS
number
default:"4"
The duration in hours for a maintenance window.

Description

Defines the standard duration for maintenance periods in the application. This constant is used to calculate maintenance windows and schedule maintenance-related operations.

Value

export const MANTENIMIENTO_DURACION_HORAS = 4;

Usage

import { MANTENIMIENTO_DURACION_HORAS } from './constants/constantes';

// Calculate maintenance end time
const maintenanceStart = new Date();
const maintenanceEnd = new Date(
  maintenanceStart.getTime() + MANTENIMIENTO_DURACION_HORAS * 60 * 60 * 1000
);

console.log(`Maintenance window: ${MANTENIMIENTO_DURACION_HORAS} hours`);
console.log(`Starts: ${maintenanceStart.toISOString()}`);
console.log(`Ends: ${maintenanceEnd.toISOString()}`);
This constant represents the standard maintenance duration. Actual maintenance windows may vary based on the complexity of updates being deployed.

Type Definitions

All constants are exported as const declarations, ensuring they cannot be modified at runtime.
// TypeScript infers the type as: number
type MaintenanceDuration = typeof MANTENIMIENTO_DURACION_HORAS;

Build docs developers (and LLMs) love