hvp-shared 7.10.0 → 8.0.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.
|
@@ -121,6 +121,18 @@ export type SubmitForReviewRequest = Record<string, never>;
|
|
|
121
121
|
export interface PublishDocumentRequest {
|
|
122
122
|
/** Required if publishing without prior in_review (audit trail). */
|
|
123
123
|
changeNotes?: string;
|
|
124
|
+
/** Collaborator id that authored the content. Default: current user. */
|
|
125
|
+
elaboratedBy?: string;
|
|
126
|
+
/** ISO date the content was authored. Default: draft creation date or now. */
|
|
127
|
+
elaboratedAt?: string;
|
|
128
|
+
/** Collaborator id that reviewed/validated the content. Default: null. */
|
|
129
|
+
reviewedBy?: string;
|
|
130
|
+
/** ISO date of review. Default: now (only used when reviewedBy set). */
|
|
131
|
+
reviewedAt?: string;
|
|
132
|
+
/** Collaborator id that authorized the publication. Default: current user. */
|
|
133
|
+
authorizedBy?: string;
|
|
134
|
+
/** ISO date of authorization. Default: now. Used as the version's `authorizedAt`. */
|
|
135
|
+
authorizedAt?: string;
|
|
124
136
|
}
|
|
125
137
|
/**
|
|
126
138
|
* Archive Document Request
|
|
@@ -16,7 +16,8 @@ export interface DocumentSummaryVersionRef {
|
|
|
16
16
|
versionNumber: string;
|
|
17
17
|
contentType: ContentType;
|
|
18
18
|
externalLinkProvider: ExternalLinkProvider | null;
|
|
19
|
-
|
|
19
|
+
/** Date the version was authorized — i.e. promoted to `current`. */
|
|
20
|
+
authorizedAt: string | null;
|
|
20
21
|
}
|
|
21
22
|
/**
|
|
22
23
|
* Public Document Response
|
|
@@ -96,8 +97,15 @@ export interface DocumentSummaryResponse {
|
|
|
96
97
|
* Full version row. Returned by the viewer, version history, and
|
|
97
98
|
* acknowledgment lookups.
|
|
98
99
|
*
|
|
99
|
-
*
|
|
100
|
-
*
|
|
100
|
+
* Three independent business-attribution axes per version (all may be set
|
|
101
|
+
* independently):
|
|
102
|
+
* - elaborated: who wrote the content + when ("Elaboró")
|
|
103
|
+
* - reviewed: who reviewed the content + when ("Revisó")
|
|
104
|
+
* - authorized: who authorized publication + when ("Autorizó / Validó")
|
|
105
|
+
*
|
|
106
|
+
* Versions do NOT carry system audit (`createdBy`, `createdAt`, etc.) because
|
|
107
|
+
* those would duplicate the business fields above. Forensic insertion timestamp
|
|
108
|
+
* remains derivable from the row's ObjectId.
|
|
101
109
|
*/
|
|
102
110
|
export interface DocumentVersionResponse {
|
|
103
111
|
id: string;
|
|
@@ -112,11 +120,15 @@ export interface DocumentVersionResponse {
|
|
|
112
120
|
} | null;
|
|
113
121
|
changeType: ChangeType;
|
|
114
122
|
changeNotes: string | null;
|
|
115
|
-
/**
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
/**
|
|
119
|
-
|
|
123
|
+
/** Author of the content. Defaults to the publisher on legacy versions. */
|
|
124
|
+
elaboratedBy: string | null;
|
|
125
|
+
elaboratedAt: string | null;
|
|
126
|
+
/** Reviewer (validó). Optional — may stay null when no formal review happened. */
|
|
127
|
+
reviewedBy: string | null;
|
|
128
|
+
reviewedAt: string | null;
|
|
129
|
+
/** Authorizer of the publication (autorizó). Set when the version reaches `current`. */
|
|
130
|
+
authorizedBy: string | null;
|
|
131
|
+
authorizedAt: string | null;
|
|
120
132
|
}
|
|
121
133
|
/**
|
|
122
134
|
* Document Acknowledgment Response
|