hvp-shared 9.1.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.
@@ -55,6 +55,13 @@ export declare enum DocumentType {
55
55
  format = "format",
56
56
  tool = "tool",
57
57
  policy = "policy",
58
+ /**
59
+ * Living registry/tracker. The structure is fixed but the data evolves over
60
+ * time (e.g. monthly income tracker, supplier promotional log). Differs from
61
+ * `format` (a template instance is filled once) and from `reference_data`
62
+ * (typically static reference like catalogs). Added in 9.2.0.
63
+ */
64
+ control = "control",
58
65
  reference_data = "reference_data",
59
66
  training_material = "training_material",
60
67
  legal_document = "legal_document",
@@ -82,14 +89,23 @@ export declare enum DocumentStatus {
82
89
  outdated = "outdated",
83
90
  /**
84
91
  * Retirado: el documento ya no aplica, fue reemplazado o descontinuado.
85
- * Oculto por defecto en listas. ISO 9001 lo llama "obsolete".
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`.
86
102
  */
87
103
  obsolete = "obsolete",
88
104
  /**
89
105
  * Archivado-histórico: preservación de un documento cuya naturaleza es
90
106
  * registro (grabaciones de reunión, comunicados pasados, etc.). Oculto por
91
- * defecto. Distinto de `obsolete`: archived es preservación pasiva,
92
- * obsolete es retiro activo.
107
+ * defecto. Distinto de `withdrawn`: archived es preservación pasiva,
108
+ * withdrawn es retiro activo.
93
109
  */
94
110
  archived = "archived"
95
111
  }
@@ -70,6 +70,13 @@ var DocumentType;
70
70
  DocumentType["format"] = "format";
71
71
  DocumentType["tool"] = "tool";
72
72
  DocumentType["policy"] = "policy";
73
+ /**
74
+ * Living registry/tracker. The structure is fixed but the data evolves over
75
+ * time (e.g. monthly income tracker, supplier promotional log). Differs from
76
+ * `format` (a template instance is filled once) and from `reference_data`
77
+ * (typically static reference like catalogs). Added in 9.2.0.
78
+ */
79
+ DocumentType["control"] = "control";
73
80
  // Resource
74
81
  DocumentType["reference_data"] = "reference_data";
75
82
  DocumentType["training_material"] = "training_material";
@@ -88,6 +95,7 @@ exports.DOCUMENT_TYPE_LABELS = {
88
95
  [DocumentType.format]: "Formato",
89
96
  [DocumentType.tool]: "Herramienta",
90
97
  [DocumentType.policy]: "Política",
98
+ [DocumentType.control]: "Control",
91
99
  [DocumentType.reference_data]: "Datos de referencia",
92
100
  [DocumentType.training_material]: "Material de capacitación",
93
101
  [DocumentType.legal_document]: "Documento legal",
@@ -116,14 +124,23 @@ var DocumentStatus;
116
124
  DocumentStatus["outdated"] = "outdated";
117
125
  /**
118
126
  * Retirado: el documento ya no aplica, fue reemplazado o descontinuado.
119
- * Oculto por defecto en listas. ISO 9001 lo llama "obsolete".
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`.
120
137
  */
121
138
  DocumentStatus["obsolete"] = "obsolete";
122
139
  /**
123
140
  * Archivado-histórico: preservación de un documento cuya naturaleza es
124
141
  * registro (grabaciones de reunión, comunicados pasados, etc.). Oculto por
125
- * defecto. Distinto de `obsolete`: archived es preservación pasiva,
126
- * obsolete es retiro activo.
142
+ * defecto. Distinto de `withdrawn`: archived es preservación pasiva,
143
+ * withdrawn es retiro activo.
127
144
  */
128
145
  DocumentStatus["archived"] = "archived";
129
146
  })(DocumentStatus || (exports.DocumentStatus = DocumentStatus = {}));
@@ -132,7 +149,9 @@ exports.DOCUMENT_STATUS_LABELS = {
132
149
  [DocumentStatus.in_review]: "En revisión",
133
150
  [DocumentStatus.published]: "Publicado",
134
151
  [DocumentStatus.outdated]: "Desactualizado",
135
- [DocumentStatus.obsolete]: "Obsoleto",
152
+ [DocumentStatus.withdrawn]: "Retirado",
153
+ // Deprecated alias — kept for read compat during 9.3.x migration window
154
+ [DocumentStatus.obsolete]: "Retirado",
136
155
  [DocumentStatus.archived]: "Archivado",
137
156
  };
138
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.obsolete | DocumentStatus.published;
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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hvp-shared",
3
- "version": "9.1.0",
3
+ "version": "9.3.0",
4
4
  "description": "Shared types and utilities for HVP backend and frontend",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",