sass-cms-template-common 0.0.12 → 0.0.13

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.
package/dist/server.d.ts CHANGED
@@ -583,6 +583,13 @@ export declare class CmsCopilotServices {
583
583
  * oportunidad: `save` | `like` | `dislike` | `assign` (permiso COPILOT_ACTION).
584
584
  */
585
585
  executeAction: (input: CopilotActionInput) => Promise<CopilotActionResponse>;
586
+ /**
587
+ * POST /copilot/snooze — "recordar luego" de una oportunidad de la campanita
588
+ * (permiso COPILOT_VIEW). La oportunidad desaparece de la campanita para el
589
+ * usuario y reaparece sola al vencer el plazo configurado.
590
+ * @param opportunityId - Id de la oportunidad a posponer.
591
+ */
592
+ snooze: (opportunityId: string) => Promise<CopilotSnoozeResponse>;
586
593
  }
587
594
 
588
595
  /**
@@ -1819,7 +1826,8 @@ export declare interface CopilotOpportunitiesResponse extends CmsResponse {
1819
1826
  *
1820
1827
  * La doc del gateway lista `id`, `topic` y `created_at`, pero el microservicio
1821
1828
  * (observado en dev) puede omitirlos: solo `title`, `status` y `score` están
1822
- * garantizados. El consumidor debe tolerar los faltantes.
1829
+ * garantizados. El consumidor debe tolerar los faltantes. En dev (2026-07-06) el
1830
+ * micro también entrega `source`, `type`, `reasons` e `is_followed`.
1823
1831
  */
1824
1832
  export declare interface CopilotOpportunity {
1825
1833
  id?: string;
@@ -1831,8 +1839,23 @@ export declare interface CopilotOpportunity {
1831
1839
  score?: number;
1832
1840
  /** Fecha de creación (ISO 8601, p. ej. "2026-06-26T10:15:00Z"). */
1833
1841
  created_at?: string;
1842
+ /** Fuente detectada (p. ej. "rss"). Verificado en dev 2026-07-06. */
1843
+ source?: CopilotOpportunitySource;
1844
+ /** Subtipo de match del micro (p. ej. "rss_match"). */
1845
+ type?: string;
1846
+ /** Motivos por los que el micro la propuso (para tooltip/detalle). */
1847
+ reasons?: string[];
1848
+ /** Si el editor ya la siguió/guardó (acción "save" de `copilot/actions`). */
1849
+ is_followed?: boolean;
1834
1850
  }
1835
1851
 
1852
+ /**
1853
+ * Fuente de la que el microservicio detectó la oportunidad. Valor observado en
1854
+ * dev hoy: `"rss"`. Se deja abierto (passthrough) para no romper cuando el micro
1855
+ * agregue fuentes nuevas.
1856
+ */
1857
+ declare type CopilotOpportunitySource = 'rss' | 'gtrends' | 'sconsole' | 'x' | (string & {});
1858
+
1836
1859
  /**
1837
1860
  * Estado de una oportunidad tal como lo entrega el microservicio (passthrough).
1838
1861
  * El único valor documentado hoy es `"open"`; se deja abierto para no romper
@@ -1840,6 +1863,18 @@ export declare interface CopilotOpportunity {
1840
1863
  */
1841
1864
  export declare type CopilotOpportunityStatus = 'open' | (string & {});
1842
1865
 
1866
+ /**
1867
+ * Cuerpo de la respuesta de POST /copilot/snooze (NAA-4645). El "recordar luego"
1868
+ * de la campanita: la oportunidad se oculta para ese usuario y reaparece sola al
1869
+ * vencer el plazo configurado.
1870
+ */
1871
+ export declare interface CopilotSnoozeResponse extends CmsResponse {
1872
+ copilotEnabled?: boolean;
1873
+ opportunity_id?: string;
1874
+ /** Momento hasta el cual la oportunidad queda oculta (ISO 8601 o epoch). */
1875
+ snoozed_until?: string | number;
1876
+ }
1877
+
1843
1878
  /** POST /dashboard/countNotificatio */
1844
1879
  export declare interface CountNotificationsResponse {
1845
1880
  status: string;
@@ -1847,10 +1882,32 @@ export declare interface CountNotificationsResponse {
1847
1882
  unreadNotifications?: number;
1848
1883
  }
1849
1884
 
1885
+ /**
1886
+ * Oportunidad editorial copilot presente en POST /dashboard/notification
1887
+ * (NAA-4645). El back manda hasta 3, ordenadas por `score` desc, y solo si hay.
1888
+ */
1889
+ export declare interface DashboardCopilotOpportunity {
1890
+ /** Id de la oportunidad (opportunity_id, requerido para el snooze). */
1891
+ id?: string;
1892
+ title: string;
1893
+ /** Tema/categoría de la oportunidad. */
1894
+ topic?: string;
1895
+ /** Puntaje de coincidencia editorial (0-100). */
1896
+ score?: number;
1897
+ /** Fecha de creación (ISO 8601, p. ej. "2026-06-26T10:15:00Z"). */
1898
+ created_at?: string;
1899
+ isRead?: boolean;
1900
+ }
1901
+
1850
1902
  /** Cuerpo de la respuesta de POST /dashboard/countNotifications. */
1851
1903
  export declare interface DashboardCountNotificationsResponse extends CmsResponse {
1852
1904
  /** Total de notificaciones no leídas del usuario autenticado. */
1853
1905
  unreadNotifications?: number;
1906
+ /**
1907
+ * Oportunidades copilot no leídas (NAA-4645). Ya está **sumado** dentro de
1908
+ * `unreadNotifications`; solo aparece si copilot aplica al usuario/publicación.
1909
+ */
1910
+ copilotOpportunities?: number;
1854
1911
  }
1855
1912
 
1856
1913
  /** Actividad vencida o por vencer presente en POST /dashboard/notification. */
@@ -1895,6 +1952,8 @@ export declare interface DashboardNotificationsResponse extends CmsResponse {
1895
1952
  newsTask?: DashboardNewsTask[];
1896
1953
  /** Actividades vencidas o por vencer. */
1897
1954
  expireTask?: DashboardExpireTask[];
1955
+ /** Oportunidades editoriales copilot (hasta 3, por `score` desc). NAA-4645. */
1956
+ copilot?: DashboardCopilotOpportunity[];
1898
1957
  }
1899
1958
 
1900
1959
  /** Evento de encoder de video presente en POST /dashboard/notification. */
package/dist/server.js CHANGED
@@ -1,2 +1,2 @@
1
- import { $ as e, A as t, B as n, C as r, D as i, E as a, F as o, I as s, J as c, K as l, L as u, M as d, N as f, O as p, P as m, Q as h, R as g, S as _, T as v, V as y, X as b, Y as x, Z as S, _ as C, a as w, b as T, c as E, d as D, et as O, f as k, g as A, h as j, i as M, j as N, k as P, l as F, m as I, n as L, nt as R, o as z, p as B, q as V, r as H, rt as U, s as W, t as G, tt as K, u as q, v as J, w as Y, x as X, y as Z, z as Q } from "./services-BjcJgeV1.js";
1
+ import { $ as e, A as t, B as n, C as r, D as i, E as a, F as o, I as s, J as c, K as l, L as u, M as d, N as f, O as p, P as m, Q as h, R as g, S as _, T as v, V as y, X as b, Y as x, Z as S, _ as C, a as w, b as T, c as E, d as D, et as O, f as k, g as A, h as j, i as M, j as N, k as P, l as F, m as I, n as L, nt as R, o as z, p as B, q as V, r as H, rt as U, s as W, t as G, tt as K, u as q, v as J, w as Y, x as X, y as Z, z as Q } from "./services-DS4p6Tpl.js";
2
2
  export { i as CmsAudiosServices, t as CmsAuthLoginServices, o as CmsAuthServices, a as CmsCategoriesServices, v as CmsCkeditorServices, r as CmsCommentsServices, G as CmsCommonServices, _ as CmsContributionsServices, Y as CmsCopilotServices, m as CmsDashboardServices, Z as CmsEventsServices, J as CmsFileExplorerServices, C as CmsGeneralServices, A as CmsImagesServices, j as CmsNewsServices, I as CmsNotificationServices, B as CmsPeopleServices, k as CmsPlanningServices, D as CmsPollsServices, p as CmsPreviewServices, T as CmsProductivityPlanServices, f as CmsProfileServices, d as CmsPublicationsServices, q as CmsRecipesServices, X as CmsSectionsServices, N as CmsSitesServices, L as CmsTagsServices, H as CmsTranscribeServices, M as CmsTriviasServices, P as CmsUploadServices, F as CmsUsersServices, w as CmsVideosServices, z as CmsVodsServices, W as CmsWorkpaperServices, E as CmsZonesServices, U as commonErrorsEn, R as commonErrorsEs, K as commonErrorsPt, s as filterModulesByPermissions, l as findPublicationBySlug, V as findPublicationLabel, g as formatSiteDateTime, c as getAllPublications, h as getCommonError, x as getDefaultPublicationSlug, Q as getSiteNow, u as hasModulePermission, e as normalizeErrorCode, n as parseGmtOffsetMinutes, b as parsePublicationSlug, O as resolveErrorSeverity, y as toSiteWallClock, S as toTestId };
@@ -1312,6 +1312,16 @@ var J = class {
1312
1312
  return console.error("[/copilot/actions]", e), Promise.reject(e);
1313
1313
  }
1314
1314
  };
1315
+ snooze = async (e) => {
1316
+ try {
1317
+ return (await this.props.axiosApi.post("/copilot/snooze", {
1318
+ authentication: this.authentication,
1319
+ opportunity_id: e
1320
+ })).data;
1321
+ } catch (e) {
1322
+ return console.error("[/copilot/snooze]", e), Promise.reject(e);
1323
+ }
1324
+ };
1315
1325
  }, ue = class {
1316
1326
  props;
1317
1327
  authentication;
@@ -4083,4 +4093,4 @@ var J = class {
4083
4093
  //#endregion
4084
4094
  export { A as $, ne as A, V as B, ue as C, oe as D, se as E, J as F, M as G, F as H, q as I, I as J, L as K, K as L, Z as M, X as N, ae as O, Y as P, ee as Q, W as R, de as S, ce as T, P as U, H as V, N as W, B as X, z as Y, j as Z, ge as _, d as _t, De as a, i as at, pe as b, we as c, l as ct, xe as d, b as dt, te as et, $ as f, h as ft, _e as g, S as gt, ve as h, s as ht, Oe as i, C as it, Q as j, ie as k, Ce as l, c as lt, ye as m, o as mt, Ae as n, E as nt, Ee as o, y as ot, be as p, a as pt, R as q, ke as r, T as rt, Te as s, _ as st, je as t, D as tt, Se as u, w as ut, he as v, p as vt, le as w, fe as x, me as y, G as z };
4085
4095
 
4086
- //# sourceMappingURL=services-BjcJgeV1.js.map
4096
+ //# sourceMappingURL=services-DS4p6Tpl.js.map