sass-template-common 0.10.16 → 0.10.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2057,14 +2057,14 @@ export declare class MainComponentServices {
2057
2057
  data: Array<Outstanding>;
2058
2058
  };
2059
2059
  } | undefined>;
2060
- getNewsListZoneWrapper(section: string, size: number, imagesizes?: string): Promise<AxiosResponse<NewListResponse, any, {}> | undefined>;
2061
- getNewsDestacadoDiario(section: string): Promise<never[] | AxiosResponse<NewListResponse, any, {}>>;
2062
- getNewsDestacadoDiarioImage(section: string): Promise<never[] | AxiosResponse<NewListResponse, any, {}>>;
2063
- getNewsAltoImpacto(section: string): Promise<AxiosResponse<NewListResponse, any, {}> | undefined>;
2064
- getNewsDestacadoVertical(section: string): Promise<never[] | AxiosResponse<NewListResponse, any, {}>>;
2065
- getNewsDestacadoHorizontal(section: string): Promise<never[] | AxiosResponse<NewListResponse, any, {}>>;
2060
+ getNewsListZoneWrapper(section: string, zone: string, size: number, imagesizes?: string): Promise<AxiosResponse<NewListResponse, any, {}> | undefined>;
2061
+ getNewsDestacadoDiario(section: string, zone: string): Promise<never[] | AxiosResponse<NewListResponse, any, {}>>;
2062
+ getNewsDestacadoDiarioImage(section: string, zone: string): Promise<never[] | AxiosResponse<NewListResponse, any, {}>>;
2063
+ getNewsAltoImpacto(section: string, zone: string): Promise<AxiosResponse<NewListResponse, any, {}> | undefined>;
2064
+ getNewsDestacadoVertical(section: string, zone: string): Promise<never[] | AxiosResponse<NewListResponse, any, {}>>;
2065
+ getNewsDestacadoHorizontal(section: string, zone: string): Promise<never[] | AxiosResponse<NewListResponse, any, {}>>;
2066
2066
  GetByOptions: any;
2067
- getMainBlockData(params: Params, section?: string): Promise<{
2067
+ getMainBlockData(params: Params, section?: string, zone?: string): Promise<{
2068
2068
  section: string;
2069
2069
  news: any;
2070
2070
  }>;
@@ -3367,11 +3367,15 @@ export declare type RequiredGroup = Exclude<keyof ImageSizesContract, 'squareLg'
3367
3367
  * - maxAttempts 3 → 1 intento + 2 reintentos (`retries = 2`)
3368
3368
  * - backoff exponencial con full jitter (base 100ms, cap 20s)
3369
3369
  * - timeout por intento (SSR): el SDK no lo pone por defecto; acá sí para no
3370
- * colgar el render si el bucket no responde.
3370
+ * colgar el render si el bucket no responde. El timeout ESCALA por intento
3371
+ * (2500 → 5000 → 10000): el primer request de una instancia SSR fría paga
3372
+ * DNS + TCP + TLS contra S3 y puede superar los 2500ms; sin escalado, los 3
3373
+ * intentos caen por timeout y la PRIMERA carga se sirve vacía.
3371
3374
  */
3372
3375
  export declare const RESILIENT_FETCH_DEFAULTS: {
3373
3376
  readonly retries: 2;
3374
3377
  readonly timeoutMs: 2500;
3378
+ readonly maxTimeoutMs: 10000;
3375
3379
  readonly baseDelayMs: 100;
3376
3380
  readonly maxDelayMs: 20000;
3377
3381
  };
@@ -3384,7 +3388,7 @@ export declare const RESILIENT_FETCH_DEFAULTS: {
3384
3388
  * fallo en DebugStore y devuelve `fallback` en vez de rechazar: una falla del bucket
3385
3389
  * no debe tumbar el render del sitio consumidor.
3386
3390
  */
3387
- export declare function resilientFetch<T, F>(fn: () => Promise<T> | T, fallback: F, { label, endpoint, params, retries, timeoutMs, baseDelayMs, maxDelayMs, }: ResilientFetchOptions): Promise<T | F>;
3391
+ export declare function resilientFetch<T, F>(fn: () => Promise<T> | T, fallback: F, { label, endpoint, params, retries, timeoutMs, maxTimeoutMs, baseDelayMs, maxDelayMs, }: ResilientFetchOptions): Promise<T | F>;
3388
3392
 
3389
3393
  export declare interface ResilientFetchOptions {
3390
3394
  /** Identifica el fetch en logs y en el DebugStore (ej. '/news-list-zone', 'bucket:menu'). */
@@ -3396,7 +3400,9 @@ export declare interface ResilientFetchOptions {
3396
3400
  * Default 2 → 3 intentos totales (paridad con `maxAttempts: 3` del SDK).
3397
3401
  */
3398
3402
  retries?: number;
3403
+ /** Timeout del PRIMER intento; los reintentos lo duplican hasta `maxTimeoutMs`. */
3399
3404
  timeoutMs?: number;
3405
+ maxTimeoutMs?: number;
3400
3406
  baseDelayMs?: number;
3401
3407
  maxDelayMs?: number;
3402
3408
  }