Skip to content

Commit 01e6f98

Browse files
MAT-10186 Adding LibraryListDTO.ts
1 parent 5ced5c8 commit 01e6f98

4 files changed

Lines changed: 29 additions & 3 deletions

File tree

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@madie/madie-models",
3-
"version": "1.4.73",
3+
"version": "1.4.74",
44
"description": "Models for MADiE Project",
55
"scripts": {
66
"build": "tsc",

src/LibraryListDTO.ts

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
import { Model } from "./Model";
2+
import { LibrarySet, CqlLibraryLock } from "./CqlLibrary";
3+
4+
/**
5+
* Mirrors the backend LibraryListDTO used by library list endpoints (e.g. the
6+
* reviewer-only "All Reviews" listing). It is a lightweight projection of a
7+
* CqlLibrary tailored for table rendering. Note: the backend serializes
8+
* `version` to a string, so it is a string here (not a structured Version).
9+
*/
10+
export interface LibraryListDTO {
11+
id: string;
12+
librarySetId: string;
13+
cqlLibraryName: string;
14+
createdAt?: string;
15+
ownerDisplayName?: string;
16+
model: Model | "";
17+
version: string;
18+
librarySet?: LibrarySet;
19+
lastModifiedAt: string;
20+
draft: boolean;
21+
hasAssociatedLibraries: boolean;
22+
reviewStatus?: string;
23+
cqlLibraryLock?: CqlLibraryLock;
24+
}
25+

src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,4 @@ export * from "./UserDetails";
1818
export * from "./Review";
1919
export * from "./CqlLibraryReview";
2020
export * from "./MeasureReview";
21+
export * from "./LibraryListDTO";

0 commit comments

Comments
 (0)