hvp-shared 9.2.0 → 9.3.0
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.
|
@@ -89,14 +89,23 @@ export declare enum DocumentStatus {
|
|
|
89
89
|
outdated = "outdated",
|
|
90
90
|
/**
|
|
91
91
|
* Retirado: el documento ya no aplica, fue reemplazado o descontinuado.
|
|
92
|
-
* Oculto por defecto en listas.
|
|
92
|
+
* Oculto por defecto en listas. Reemplaza a `obsolete` desde 9.3.0
|
|
93
|
+
* (alineación con ISO/TR 10013 "withdrawn" y con la RAE — "retirado"
|
|
94
|
+
* captura mejor la decisión activa que "obsoleto").
|
|
95
|
+
*/
|
|
96
|
+
withdrawn = "withdrawn",
|
|
97
|
+
/**
|
|
98
|
+
* @deprecated Renombrado a `withdrawn` desde 9.3.0. Sigue presente en
|
|
99
|
+
* el enum durante la ventana de migración para compat de lectura;
|
|
100
|
+
* removable en una mayor futura cuando la BBDD ya no contenga este
|
|
101
|
+
* valor. La UI lo trata como sinónimo de `withdrawn`.
|
|
93
102
|
*/
|
|
94
103
|
obsolete = "obsolete",
|
|
95
104
|
/**
|
|
96
105
|
* Archivado-histórico: preservación de un documento cuya naturaleza es
|
|
97
106
|
* registro (grabaciones de reunión, comunicados pasados, etc.). Oculto por
|
|
98
|
-
* defecto. Distinto de `
|
|
99
|
-
*
|
|
107
|
+
* defecto. Distinto de `withdrawn`: archived es preservación pasiva,
|
|
108
|
+
* withdrawn es retiro activo.
|
|
100
109
|
*/
|
|
101
110
|
archived = "archived"
|
|
102
111
|
}
|
|
@@ -124,14 +124,23 @@ var DocumentStatus;
|
|
|
124
124
|
DocumentStatus["outdated"] = "outdated";
|
|
125
125
|
/**
|
|
126
126
|
* Retirado: el documento ya no aplica, fue reemplazado o descontinuado.
|
|
127
|
-
* Oculto por defecto en listas.
|
|
127
|
+
* Oculto por defecto en listas. Reemplaza a `obsolete` desde 9.3.0
|
|
128
|
+
* (alineación con ISO/TR 10013 "withdrawn" y con la RAE — "retirado"
|
|
129
|
+
* captura mejor la decisión activa que "obsoleto").
|
|
130
|
+
*/
|
|
131
|
+
DocumentStatus["withdrawn"] = "withdrawn";
|
|
132
|
+
/**
|
|
133
|
+
* @deprecated Renombrado a `withdrawn` desde 9.3.0. Sigue presente en
|
|
134
|
+
* el enum durante la ventana de migración para compat de lectura;
|
|
135
|
+
* removable en una mayor futura cuando la BBDD ya no contenga este
|
|
136
|
+
* valor. La UI lo trata como sinónimo de `withdrawn`.
|
|
128
137
|
*/
|
|
129
138
|
DocumentStatus["obsolete"] = "obsolete";
|
|
130
139
|
/**
|
|
131
140
|
* Archivado-histórico: preservación de un documento cuya naturaleza es
|
|
132
141
|
* registro (grabaciones de reunión, comunicados pasados, etc.). Oculto por
|
|
133
|
-
* defecto. Distinto de `
|
|
134
|
-
*
|
|
142
|
+
* defecto. Distinto de `withdrawn`: archived es preservación pasiva,
|
|
143
|
+
* withdrawn es retiro activo.
|
|
135
144
|
*/
|
|
136
145
|
DocumentStatus["archived"] = "archived";
|
|
137
146
|
})(DocumentStatus || (exports.DocumentStatus = DocumentStatus = {}));
|
|
@@ -140,7 +149,9 @@ exports.DOCUMENT_STATUS_LABELS = {
|
|
|
140
149
|
[DocumentStatus.in_review]: "En revisión",
|
|
141
150
|
[DocumentStatus.published]: "Publicado",
|
|
142
151
|
[DocumentStatus.outdated]: "Desactualizado",
|
|
143
|
-
[DocumentStatus.
|
|
152
|
+
[DocumentStatus.withdrawn]: "Retirado",
|
|
153
|
+
// Deprecated alias — kept for read compat during 9.3.x migration window
|
|
154
|
+
[DocumentStatus.obsolete]: "Retirado",
|
|
144
155
|
[DocumentStatus.archived]: "Archivado",
|
|
145
156
|
};
|
|
146
157
|
// ─── Criticality ────────────────────────────────────────────────────────────
|
|
@@ -14,7 +14,9 @@ import { ChangeType, ContentType, Criticality, DocumentStatus, DocumentType, Ext
|
|
|
14
14
|
* endpoint for backward compat. The generic endpoint covers the new
|
|
15
15
|
* lifecycle moves added in GH#22 SP2 plus return-to-published.
|
|
16
16
|
*/
|
|
17
|
-
export type ChangeableDocumentStatus = DocumentStatus.outdated | DocumentStatus.
|
|
17
|
+
export type ChangeableDocumentStatus = DocumentStatus.outdated | DocumentStatus.withdrawn
|
|
18
|
+
/** @deprecated alias of `withdrawn`; kept for compat during 9.3.x window. */
|
|
19
|
+
| DocumentStatus.obsolete | DocumentStatus.published;
|
|
18
20
|
import { WebAppRole } from "../../constants/collaborator.constants";
|
|
19
21
|
/**
|
|
20
22
|
* One element of `audience[]`. Either a role or the `"all"` sentinel.
|