@abyss-project/tools 1.1.1 → 1.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.
Files changed (186) hide show
  1. package/dist/api/beam.api.d.ts +2 -1
  2. package/dist/api/beam.api.js +10 -4
  3. package/dist/api/beam.api.js.map +1 -1
  4. package/dist/api/extraction-plan-preset.api.js +1 -1
  5. package/dist/api/extraction-plan-preset.api.js.map +1 -1
  6. package/dist/api/extraction-settings.api.js +1 -1
  7. package/dist/api/extraction-settings.api.js.map +1 -1
  8. package/dist/api/extraction.api.d.ts +5 -5
  9. package/dist/api/extraction.api.js +22 -5
  10. package/dist/api/extraction.api.js.map +1 -1
  11. package/dist/index.d.ts +4 -1
  12. package/dist/index.js +4 -1
  13. package/dist/index.js.map +1 -1
  14. package/dist/types/enum/beam.enum.d.ts +4 -0
  15. package/dist/types/enum/beam.enum.js +6 -1
  16. package/dist/types/enum/beam.enum.js.map +1 -1
  17. package/dist/types/interface/api/requests/beam.request.d.ts +16 -0
  18. package/dist/types/interface/api/requests/extraction.request.d.ts +8 -0
  19. package/dist/types/interface/api/responses/beam.response.d.ts +23 -1
  20. package/dist/types/interface/api/responses/extraction.response.d.ts +6 -0
  21. package/dist/types/interface/models/beam.dto.d.ts +13 -1
  22. package/dist/types/interface/models/extraction.dto.d.ts +8 -1
  23. package/dist/types/interface/models/extraction.dto.js.map +1 -1
  24. package/dist/utils/shape.utils.js +18 -18
  25. package/package.json +14 -9
  26. package/src/api/abyss.admin.api.ts +54 -54
  27. package/src/api/atlas-document.api.ts +68 -68
  28. package/src/api/atlas-group.api.ts +69 -69
  29. package/src/api/atlas-page.api.ts +124 -124
  30. package/src/api/atlas.api.ts +103 -103
  31. package/src/api/atlas.public.api.ts +42 -42
  32. package/src/api/beam.api.ts +29 -4
  33. package/src/api/board-card-checklist.api.ts +99 -99
  34. package/src/api/board-card-comment.api.ts +57 -57
  35. package/src/api/board-card-document.api.ts +57 -57
  36. package/src/api/board-card.api.ts +137 -137
  37. package/src/api/board-column.api.ts +54 -54
  38. package/src/api/board-label.api.ts +87 -87
  39. package/src/api/board.api.ts +122 -122
  40. package/src/api/draw.api.ts +97 -97
  41. package/src/api/draw.public.api.ts +48 -48
  42. package/src/api/extraction-plan-preset.api.ts +1 -1
  43. package/src/api/extraction-settings.api.ts +1 -1
  44. package/src/api/extraction.api.ts +58 -18
  45. package/src/api/memo.api.ts +97 -97
  46. package/src/api/metrics.api.ts +27 -27
  47. package/src/api/monitor.api.ts +6 -6
  48. package/src/api/organization.api.ts +14 -14
  49. package/src/api/retrospective-card.api.ts +74 -74
  50. package/src/api/retrospective-member.api.ts +54 -54
  51. package/src/api/retrospective-section.api.ts +74 -74
  52. package/src/api/retrospective.api.ts +124 -124
  53. package/src/api/retrospective.public.api.ts +147 -147
  54. package/src/api/short-link.admin.api.ts +39 -39
  55. package/src/api/short-link.api.ts +125 -125
  56. package/src/api/short-link.public.api.ts +60 -60
  57. package/src/api/tag.api.ts +72 -72
  58. package/src/api/tests/beam.api.spec.ts +64 -0
  59. package/src/constants/atlas.constants.ts +2 -2
  60. package/src/constants/board.constants.ts +7 -7
  61. package/src/constants/memo.constants.ts +3 -3
  62. package/src/constants/short-link.constants.ts +11 -11
  63. package/src/constants/tag.constants.ts +3 -3
  64. package/src/index.ts +10 -1
  65. package/src/server-sent-events/index.ts +13 -13
  66. package/src/server-sent-events/protocols/atlas/atlas.sse-protocol.ts +90 -90
  67. package/src/server-sent-events/protocols/atlas/index.ts +1 -1
  68. package/src/server-sent-events/protocols/board/board.sse-protocol.ts +115 -115
  69. package/src/server-sent-events/protocols/board/index.ts +1 -1
  70. package/src/server-sent-events/protocols/board-card/board-card.sse-protocol.ts +26 -26
  71. package/src/server-sent-events/protocols/board-card/index.ts +1 -1
  72. package/src/server-sent-events/protocols/index.ts +26 -26
  73. package/src/server-sent-events/protocols/retrospective/index.ts +1 -1
  74. package/src/server-sent-events/protocols/retrospective/retrospective.sse-protocol.ts +92 -92
  75. package/src/server-sent-events/server-sent-events.manager.ts +73 -73
  76. package/src/types/draw.type.ts +173 -173
  77. package/src/types/enum/api-error.enum.ts +23 -23
  78. package/src/types/enum/beam.enum.ts +8 -0
  79. package/src/types/enum/board-activity.enum.ts +189 -189
  80. package/src/types/enum/board-column-type.enum.ts +6 -6
  81. package/src/types/enum/pdf-operation.enum.ts +98 -98
  82. package/src/types/enum/rcb-bank.enum.ts +137 -137
  83. package/src/types/index.ts +5 -5
  84. package/src/types/interface/api/index.ts +5 -5
  85. package/src/types/interface/api/requests/abyss.admin.request.ts +20 -20
  86. package/src/types/interface/api/requests/atlas-document.request.ts +32 -32
  87. package/src/types/interface/api/requests/atlas-group.request.ts +45 -45
  88. package/src/types/interface/api/requests/atlas-page.request.ts +84 -84
  89. package/src/types/interface/api/requests/atlas.public.request.ts +21 -21
  90. package/src/types/interface/api/requests/atlas.request.ts +52 -52
  91. package/src/types/interface/api/requests/beam.request.ts +27 -2
  92. package/src/types/interface/api/requests/board-card-checklist.request.ts +61 -61
  93. package/src/types/interface/api/requests/board-card-comment.request.ts +28 -28
  94. package/src/types/interface/api/requests/board-card-document.request.ts +29 -29
  95. package/src/types/interface/api/requests/board-card.request.ts +86 -86
  96. package/src/types/interface/api/requests/board-column.request.ts +30 -30
  97. package/src/types/interface/api/requests/board-label.request.ts +42 -42
  98. package/src/types/interface/api/requests/board.request.ts +61 -61
  99. package/src/types/interface/api/requests/draw.public.request.ts +20 -20
  100. package/src/types/interface/api/requests/draw.request.ts +49 -49
  101. package/src/types/interface/api/requests/extraction.request.ts +22 -0
  102. package/src/types/interface/api/requests/memo.request.ts +49 -49
  103. package/src/types/interface/api/requests/metrics.request.ts +7 -7
  104. package/src/types/interface/api/requests/retrospective-card.request.ts +38 -38
  105. package/src/types/interface/api/requests/retrospective-member.request.ts +20 -20
  106. package/src/types/interface/api/requests/retrospective-section.request.ts +43 -43
  107. package/src/types/interface/api/requests/retrospective.public.request.ts +84 -84
  108. package/src/types/interface/api/requests/retrospective.request.ts +59 -59
  109. package/src/types/interface/api/requests/short-link.admin.request.ts +35 -35
  110. package/src/types/interface/api/requests/short-link.public.request.ts +40 -40
  111. package/src/types/interface/api/requests/short-link.request.ts +71 -71
  112. package/src/types/interface/api/requests/tag.request.ts +54 -54
  113. package/src/types/interface/api/requests/transfer.request.ts +3 -3
  114. package/src/types/interface/api/responses/abyss.admin.response.ts +28 -28
  115. package/src/types/interface/api/responses/atlas-document.response.ts +24 -24
  116. package/src/types/interface/api/responses/atlas-group.response.ts +23 -23
  117. package/src/types/interface/api/responses/atlas-page.response.ts +53 -53
  118. package/src/types/interface/api/responses/atlas.public.response.ts +21 -21
  119. package/src/types/interface/api/responses/atlas.response.ts +32 -32
  120. package/src/types/interface/api/responses/beam.response.ts +30 -1
  121. package/src/types/interface/api/responses/board-card-checklist.response.ts +31 -31
  122. package/src/types/interface/api/responses/board-card-comment.response.ts +20 -20
  123. package/src/types/interface/api/responses/board-card-document.response.ts +21 -21
  124. package/src/types/interface/api/responses/board-card.response.ts +55 -55
  125. package/src/types/interface/api/responses/board-column.response.ts +20 -20
  126. package/src/types/interface/api/responses/board-label.response.ts +31 -31
  127. package/src/types/interface/api/responses/board.response.ts +81 -81
  128. package/src/types/interface/api/responses/count.response.ts +9 -9
  129. package/src/types/interface/api/responses/draw.public.response.ts +22 -22
  130. package/src/types/interface/api/responses/draw.response.ts +32 -32
  131. package/src/types/interface/api/responses/enriched-paginate.response.ts +11 -11
  132. package/src/types/interface/api/responses/extraction.response.ts +19 -2
  133. package/src/types/interface/api/responses/memo.response.ts +32 -32
  134. package/src/types/interface/api/responses/metrics.response.ts +22 -22
  135. package/src/types/interface/api/responses/monitor.response.ts +8 -8
  136. package/src/types/interface/api/responses/recent.response.ts +18 -18
  137. package/src/types/interface/api/responses/retrospective-card.response.ts +23 -23
  138. package/src/types/interface/api/responses/retrospective-member.response.ts +22 -22
  139. package/src/types/interface/api/responses/retrospective-section.response.ts +23 -23
  140. package/src/types/interface/api/responses/retrospective.public.response.ts +57 -57
  141. package/src/types/interface/api/responses/retrospective.response.ts +32 -32
  142. package/src/types/interface/api/responses/short-link.admin.response.ts +21 -21
  143. package/src/types/interface/api/responses/short-link.public.response.ts +26 -26
  144. package/src/types/interface/api/responses/short-link.response.ts +38 -38
  145. package/src/types/interface/api/responses/tag.response.ts +38 -38
  146. package/src/types/interface/api/responses/transfer.response.ts +14 -14
  147. package/src/types/interface/api/type-message/api-error.ts +7 -7
  148. package/src/types/interface/api/type-message/base-paginate.ts +11 -11
  149. package/src/types/interface/api/type-message/response.ts +6 -6
  150. package/src/types/interface/index.ts +2 -2
  151. package/src/types/interface/models/atlas-document.dto.ts +22 -22
  152. package/src/types/interface/models/atlas-group.dto.ts +21 -21
  153. package/src/types/interface/models/atlas-page-content.dto.ts +17 -17
  154. package/src/types/interface/models/atlas-page.dto.ts +26 -26
  155. package/src/types/interface/models/atlas.dto.ts +34 -34
  156. package/src/types/interface/models/beam.dto.ts +20 -1
  157. package/src/types/interface/models/board-activity.dto.ts +20 -20
  158. package/src/types/interface/models/board-card-checklist-row.dto.ts +14 -14
  159. package/src/types/interface/models/board-card-checklist.dto.ts +16 -16
  160. package/src/types/interface/models/board-card-comment.dto.ts +15 -15
  161. package/src/types/interface/models/board-card-document.dto.ts +22 -22
  162. package/src/types/interface/models/board-card-label.dto.ts +14 -14
  163. package/src/types/interface/models/board-card-member.dto.ts +14 -14
  164. package/src/types/interface/models/board-card.dto.ts +37 -37
  165. package/src/types/interface/models/board-column.dto.ts +17 -17
  166. package/src/types/interface/models/board-label.dto.ts +13 -13
  167. package/src/types/interface/models/board.dto.ts +33 -33
  168. package/src/types/interface/models/content-share.dto.ts +16 -16
  169. package/src/types/interface/models/draw.dto.ts +30 -30
  170. package/src/types/interface/models/extraction.dto.ts +24 -6
  171. package/src/types/interface/models/memo.dto.ts +23 -23
  172. package/src/types/interface/models/project.dto.ts +25 -25
  173. package/src/types/interface/models/retrospective-card.dto.ts +17 -17
  174. package/src/types/interface/models/retrospective-member.dto.ts +15 -15
  175. package/src/types/interface/models/retrospective-section.dto.ts +16 -16
  176. package/src/types/interface/models/retrospective.dto.ts +32 -32
  177. package/src/types/interface/models/short-link-click.dto.ts +33 -33
  178. package/src/types/interface/models/short-link.dto.ts +49 -49
  179. package/src/types/interface/models/tag.dto.ts +26 -26
  180. package/src/types/interface/models/team.dto.ts +12 -12
  181. package/src/types/interface/models/user.dto.ts +26 -26
  182. package/src/utils/board.utils.ts +57 -57
  183. package/src/utils/enum.utils.ts +5 -5
  184. package/src/utils/error.utils.ts +30 -30
  185. package/src/utils/icons.utils.ts +96 -96
  186. package/src/utils/shape.utils.ts +292 -292
@@ -1,7 +1,7 @@
1
1
  import { IOrganization } from './organization.dto';
2
2
  import { IUser } from './user.dto';
3
3
  import { IProject } from './project.dto';
4
- import { BeamVisibility } from '../../enum/beam.enum';
4
+ import { BeamVisibility, BeamDownloadKind } from '../../enum/beam.enum';
5
5
 
6
6
  export interface IBeamTransfer {
7
7
  id: string;
@@ -65,3 +65,22 @@ export interface IBeamRecipient {
65
65
 
66
66
  transfer?: IBeamTransfer;
67
67
  }
68
+
69
+ // One download-history event (B-phase download history). Written on the counted
70
+ // download paths only (/file + /zip); fileId is null for a zip and after the
71
+ // downloaded file was deleted (FK SET NULL). ipHash is the sha256 of the client
72
+ // IP — the raw IP is never stored. userId is the optionally-resolved bearer of
73
+ // the public serve request (null for anonymous downloads).
74
+ export interface IBeamDownloadEvent {
75
+ id: string;
76
+ transferId: string;
77
+ fileId: string | null;
78
+ kind: BeamDownloadKind;
79
+ ipHash: string;
80
+ userId: string | null;
81
+ downloadedAt: Date;
82
+ createdAt?: Date;
83
+
84
+ transfer?: IBeamTransfer;
85
+ file?: IBeamFile | null;
86
+ }
@@ -1,20 +1,20 @@
1
- import { BoardActivityData, BoardActivityType } from '../../enum';
2
- import { IBoardCard } from './board-card.dto';
3
- import { IBoard } from './board.dto';
4
- import { IUser } from './user.dto';
5
-
6
- export type IBoardActivity = {
7
- id: string;
8
- type: BoardActivityType;
9
- payload: BoardActivityData[keyof BoardActivityData];
10
- userId: string | null;
11
- boardCardId: string | null;
12
- boardId: string;
13
- createdAt?: Date;
14
- updatedAt?: Date;
15
-
16
- // Association
17
- user?: IUser | null;
18
- boardCard?: IBoardCard | null;
19
- board?: IBoard;
20
- };
1
+ import { BoardActivityData, BoardActivityType } from '../../enum';
2
+ import { IBoardCard } from './board-card.dto';
3
+ import { IBoard } from './board.dto';
4
+ import { IUser } from './user.dto';
5
+
6
+ export type IBoardActivity = {
7
+ id: string;
8
+ type: BoardActivityType;
9
+ payload: BoardActivityData[keyof BoardActivityData];
10
+ userId: string | null;
11
+ boardCardId: string | null;
12
+ boardId: string;
13
+ createdAt?: Date;
14
+ updatedAt?: Date;
15
+
16
+ // Association
17
+ user?: IUser | null;
18
+ boardCard?: IBoardCard | null;
19
+ board?: IBoard;
20
+ };
@@ -1,14 +1,14 @@
1
- import { IBoardCardChecklist } from './board-card-checklist.dto';
2
-
3
- export interface IBoardCardChecklistRow {
4
- id: string;
5
- boardCardChecklistId: string;
6
- content: string;
7
- completedAt: Date | null;
8
- position: number;
9
- updatedAt?: Date;
10
- createdAt?: Date;
11
-
12
- // Association
13
- boardCardChecklist: IBoardCardChecklist;
14
- }
1
+ import { IBoardCardChecklist } from './board-card-checklist.dto';
2
+
3
+ export interface IBoardCardChecklistRow {
4
+ id: string;
5
+ boardCardChecklistId: string;
6
+ content: string;
7
+ completedAt: Date | null;
8
+ position: number;
9
+ updatedAt?: Date;
10
+ createdAt?: Date;
11
+
12
+ // Association
13
+ boardCardChecklist: IBoardCardChecklist;
14
+ }
@@ -1,16 +1,16 @@
1
- import { IBoardCardChecklistRow } from './board-card-checklist-row.dto';
2
- import { IBoardCard } from './board-card.dto';
3
-
4
- export interface IBoardCardChecklist {
5
- id: string;
6
- boardCardId: string;
7
- title: string;
8
- position: number;
9
- maskCompletedRows: boolean;
10
- updatedAt?: Date;
11
- createdAt?: Date;
12
-
13
- // Association
14
- boardCard: IBoardCard;
15
- boardCardChecklistRows: IBoardCardChecklistRow[];
16
- }
1
+ import { IBoardCardChecklistRow } from './board-card-checklist-row.dto';
2
+ import { IBoardCard } from './board-card.dto';
3
+
4
+ export interface IBoardCardChecklist {
5
+ id: string;
6
+ boardCardId: string;
7
+ title: string;
8
+ position: number;
9
+ maskCompletedRows: boolean;
10
+ updatedAt?: Date;
11
+ createdAt?: Date;
12
+
13
+ // Association
14
+ boardCard: IBoardCard;
15
+ boardCardChecklistRows: IBoardCardChecklistRow[];
16
+ }
@@ -1,15 +1,15 @@
1
- import { IBoardCard } from './board-card.dto';
2
- import { IUser } from './user.dto';
3
-
4
- export interface IBoardCardComment {
5
- id: string;
6
- boardCardId: string;
7
- content: string;
8
- userId: string | null;
9
- updatedAt?: Date;
10
- createdAt?: Date;
11
-
12
- // Association
13
- boardCard?: IBoardCard;
14
- user?: IUser | null;
15
- }
1
+ import { IBoardCard } from './board-card.dto';
2
+ import { IUser } from './user.dto';
3
+
4
+ export interface IBoardCardComment {
5
+ id: string;
6
+ boardCardId: string;
7
+ content: string;
8
+ userId: string | null;
9
+ updatedAt?: Date;
10
+ createdAt?: Date;
11
+
12
+ // Association
13
+ boardCard?: IBoardCard;
14
+ user?: IUser | null;
15
+ }
@@ -1,22 +1,22 @@
1
- import { IBoardCard } from './board-card.dto';
2
- import { IBoard } from './board.dto';
3
-
4
- export interface IBoardCardDocument {
5
- id: string;
6
- boardCardId: string;
7
- boardId: string;
8
- name: string;
9
- externalId: string;
10
- publicAccessId: string;
11
- thumbnailId: string | null;
12
- thumbnailPublicAccessId: string | null;
13
- checksum: string;
14
- mimeType: string;
15
- sizeOctet: number;
16
- updatedAt?: Date;
17
- createdAt?: Date;
18
-
19
- // Association
20
- boardCard: IBoardCard;
21
- board: IBoard;
22
- }
1
+ import { IBoardCard } from './board-card.dto';
2
+ import { IBoard } from './board.dto';
3
+
4
+ export interface IBoardCardDocument {
5
+ id: string;
6
+ boardCardId: string;
7
+ boardId: string;
8
+ name: string;
9
+ externalId: string;
10
+ publicAccessId: string;
11
+ thumbnailId: string | null;
12
+ thumbnailPublicAccessId: string | null;
13
+ checksum: string;
14
+ mimeType: string;
15
+ sizeOctet: number;
16
+ updatedAt?: Date;
17
+ createdAt?: Date;
18
+
19
+ // Association
20
+ boardCard: IBoardCard;
21
+ board: IBoard;
22
+ }
@@ -1,14 +1,14 @@
1
- import { IBoardCard } from './board-card.dto';
2
- import { IBoardLabel } from './board-label.dto';
3
-
4
- export interface IBoardCardLabel {
5
- id: string;
6
- boardLabelId: string;
7
- boardCardId: string;
8
- updatedAt?: Date;
9
- createdAt?: Date;
10
-
11
- // Association
12
- boardLabel?: IBoardLabel;
13
- boardCard?: IBoardCard;
14
- }
1
+ import { IBoardCard } from './board-card.dto';
2
+ import { IBoardLabel } from './board-label.dto';
3
+
4
+ export interface IBoardCardLabel {
5
+ id: string;
6
+ boardLabelId: string;
7
+ boardCardId: string;
8
+ updatedAt?: Date;
9
+ createdAt?: Date;
10
+
11
+ // Association
12
+ boardLabel?: IBoardLabel;
13
+ boardCard?: IBoardCard;
14
+ }
@@ -1,14 +1,14 @@
1
- import { IBoardCard } from './board-card.dto';
2
- import { IUser } from './user.dto';
3
-
4
- export interface IBoardCardMember {
5
- id: string;
6
- boardCardId: string;
7
- userId: string;
8
- updatedAt?: Date;
9
- createdAt?: Date;
10
-
11
- // Association
12
- boardCard: IBoardCard;
13
- user: IUser;
14
- }
1
+ import { IBoardCard } from './board-card.dto';
2
+ import { IUser } from './user.dto';
3
+
4
+ export interface IBoardCardMember {
5
+ id: string;
6
+ boardCardId: string;
7
+ userId: string;
8
+ updatedAt?: Date;
9
+ createdAt?: Date;
10
+
11
+ // Association
12
+ boardCard: IBoardCard;
13
+ user: IUser;
14
+ }
@@ -1,37 +1,37 @@
1
- import { IBoardActivity } from './board-activity.dto';
2
- import { IBoardCardChecklist } from './board-card-checklist.dto';
3
- import { IBoardCardComment } from './board-card-comment.dto';
4
- import { IBoardCardDocument } from './board-card-document.dto';
5
- import { IBoardCardLabel } from './board-card-label.dto';
6
- import { IBoardCardMember } from './board-card-member.dto';
7
- import { IBoardColumn } from './board-column.dto';
8
- import { IBoard } from './board.dto';
9
-
10
- export interface IBoardCard {
11
- id: string;
12
- slug: string;
13
- identifier: number;
14
- boardColumnId: string | null;
15
- boardId: string;
16
- title: string;
17
- description: string | null;
18
- weight: number | null;
19
- position: number;
20
- startDate: Date | null;
21
- endDate: Date | null;
22
- bannerId: string | null;
23
- updatedAt?: Date;
24
- createdAt?: Date;
25
- deletedAt?: Date | null;
26
-
27
- // Association
28
- board: IBoard;
29
- boardColumn: IBoardColumn;
30
- boardActivities: IBoardActivity[];
31
- boardCardMembers: IBoardCardMember[];
32
- boardCardDocuments: IBoardCardDocument[];
33
- boardCardChecklists: IBoardCardChecklist[];
34
- boardCardComments?: IBoardCardComment[];
35
- boardCardLabels?: IBoardCardLabel[];
36
- banner?: IBoardCardDocument | null;
37
- }
1
+ import { IBoardActivity } from './board-activity.dto';
2
+ import { IBoardCardChecklist } from './board-card-checklist.dto';
3
+ import { IBoardCardComment } from './board-card-comment.dto';
4
+ import { IBoardCardDocument } from './board-card-document.dto';
5
+ import { IBoardCardLabel } from './board-card-label.dto';
6
+ import { IBoardCardMember } from './board-card-member.dto';
7
+ import { IBoardColumn } from './board-column.dto';
8
+ import { IBoard } from './board.dto';
9
+
10
+ export interface IBoardCard {
11
+ id: string;
12
+ slug: string;
13
+ identifier: number;
14
+ boardColumnId: string | null;
15
+ boardId: string;
16
+ title: string;
17
+ description: string | null;
18
+ weight: number | null;
19
+ position: number;
20
+ startDate: Date | null;
21
+ endDate: Date | null;
22
+ bannerId: string | null;
23
+ updatedAt?: Date;
24
+ createdAt?: Date;
25
+ deletedAt?: Date | null;
26
+
27
+ // Association
28
+ board: IBoard;
29
+ boardColumn: IBoardColumn;
30
+ boardActivities: IBoardActivity[];
31
+ boardCardMembers: IBoardCardMember[];
32
+ boardCardDocuments: IBoardCardDocument[];
33
+ boardCardChecklists: IBoardCardChecklist[];
34
+ boardCardComments?: IBoardCardComment[];
35
+ boardCardLabels?: IBoardCardLabel[];
36
+ banner?: IBoardCardDocument | null;
37
+ }
@@ -1,17 +1,17 @@
1
- import { BoardColumnType } from '../../enum';
2
- import { IBoardCard } from './board-card.dto';
3
- import { IBoard } from './board.dto';
4
-
5
- export interface IBoardColumn {
6
- id: string;
7
- title: string;
8
- position: number;
9
- boardId: string;
10
- type: BoardColumnType;
11
- updatedAt?: Date;
12
- createdAt?: Date;
13
-
14
- // Association
15
- board: IBoard;
16
- boardCards: IBoardCard[];
17
- }
1
+ import { BoardColumnType } from '../../enum';
2
+ import { IBoardCard } from './board-card.dto';
3
+ import { IBoard } from './board.dto';
4
+
5
+ export interface IBoardColumn {
6
+ id: string;
7
+ title: string;
8
+ position: number;
9
+ boardId: string;
10
+ type: BoardColumnType;
11
+ updatedAt?: Date;
12
+ createdAt?: Date;
13
+
14
+ // Association
15
+ board: IBoard;
16
+ boardCards: IBoardCard[];
17
+ }
@@ -1,13 +1,13 @@
1
- import { IBoard } from './board.dto';
2
-
3
- export interface IBoardLabel {
4
- id: string;
5
- name: string;
6
- color: string;
7
- boardId: string;
8
- updatedAt?: Date;
9
- createdAt?: Date;
10
-
11
- // Association
12
- board: IBoard;
13
- }
1
+ import { IBoard } from './board.dto';
2
+
3
+ export interface IBoardLabel {
4
+ id: string;
5
+ name: string;
6
+ color: string;
7
+ boardId: string;
8
+ updatedAt?: Date;
9
+ createdAt?: Date;
10
+
11
+ // Association
12
+ board: IBoard;
13
+ }
@@ -1,33 +1,33 @@
1
- import { IBoardActivity } from './board-activity.dto';
2
- import { IBoardCardDocument } from './board-card-document.dto';
3
- import { IBoardCard } from './board-card.dto';
4
- import { IBoardColumn } from './board-column.dto';
5
- import { IBoardLabel } from './board-label.dto';
6
- import { IOrganization } from './organization.dto';
7
- import { IProject } from './project.dto';
8
- import { IEntityTag } from './tag.dto';
9
- import { IUser } from './user.dto';
10
-
11
- export interface IBoard {
12
- id: string;
13
- slug: string;
14
- title: string;
15
- userId: string | null;
16
- projectId: string | null;
17
- organizationId: string | null;
18
- createdByUserId: string | null;
19
- archivedAt: Date | null;
20
- updatedAt?: Date;
21
- createdAt?: Date;
22
-
23
- // Association
24
- boardColumns?: IBoardColumn[];
25
- boardActivities?: IBoardActivity[];
26
- boardCards?: IBoardCard[];
27
- user?: IUser | null;
28
- project?: IProject | null;
29
- organization?: IOrganization | null;
30
- boardLabels?: IBoardLabel[];
31
- boardCardDocuments?: IBoardCardDocument[];
32
- entityTags?: IEntityTag[];
33
- }
1
+ import { IBoardActivity } from './board-activity.dto';
2
+ import { IBoardCardDocument } from './board-card-document.dto';
3
+ import { IBoardCard } from './board-card.dto';
4
+ import { IBoardColumn } from './board-column.dto';
5
+ import { IBoardLabel } from './board-label.dto';
6
+ import { IOrganization } from './organization.dto';
7
+ import { IProject } from './project.dto';
8
+ import { IEntityTag } from './tag.dto';
9
+ import { IUser } from './user.dto';
10
+
11
+ export interface IBoard {
12
+ id: string;
13
+ slug: string;
14
+ title: string;
15
+ userId: string | null;
16
+ projectId: string | null;
17
+ organizationId: string | null;
18
+ createdByUserId: string | null;
19
+ archivedAt: Date | null;
20
+ updatedAt?: Date;
21
+ createdAt?: Date;
22
+
23
+ // Association
24
+ boardColumns?: IBoardColumn[];
25
+ boardActivities?: IBoardActivity[];
26
+ boardCards?: IBoardCard[];
27
+ user?: IUser | null;
28
+ project?: IProject | null;
29
+ organization?: IOrganization | null;
30
+ boardLabels?: IBoardLabel[];
31
+ boardCardDocuments?: IBoardCardDocument[];
32
+ entityTags?: IEntityTag[];
33
+ }
@@ -1,16 +1,16 @@
1
- import { ShareableContentType, SharePermission, ShareTargetType } from '../../enum/content-share.enum';
2
-
3
- export interface IContentShare {
4
- id: string;
5
- contentType: ShareableContentType;
6
- contentId: string;
7
- organizationId: string | null;
8
- targetType: ShareTargetType;
9
- targetId: string | null;
10
- permission: SharePermission;
11
- publicToken: string | null;
12
- expiresAt: string | null;
13
- createdByUserId: string;
14
- createdAt: string;
15
- updatedAt: string;
16
- }
1
+ import { ShareableContentType, SharePermission, ShareTargetType } from '../../enum/content-share.enum';
2
+
3
+ export interface IContentShare {
4
+ id: string;
5
+ contentType: ShareableContentType;
6
+ contentId: string;
7
+ organizationId: string | null;
8
+ targetType: ShareTargetType;
9
+ targetId: string | null;
10
+ permission: SharePermission;
11
+ publicToken: string | null;
12
+ expiresAt: string | null;
13
+ createdByUserId: string;
14
+ createdAt: string;
15
+ updatedAt: string;
16
+ }
@@ -1,30 +1,30 @@
1
- import { IOrganization } from './organization.dto';
2
- import { IProject } from './project.dto';
3
- import { IEntityTag } from './tag.dto';
4
- import { IUser } from './user.dto';
5
-
6
- export interface IDraw {
7
- id: string;
8
- title: string;
9
- content: string;
10
- userId: string | null;
11
- projectId: string | null;
12
- organizationId: string | null;
13
- createdByUserId: string | null;
14
- fileId: string | null;
15
- filePublicAccessId: string | null;
16
- thumbnailId: string | null;
17
- thumbnailPublicAccessId: string | null;
18
- sizeOctet: number;
19
- mimeType: string;
20
- checksum: string;
21
- archivedAt?: Date | null;
22
- updatedAt?: Date;
23
- createdAt?: Date;
24
-
25
- // Association
26
- user?: IUser | null;
27
- project?: IProject | null;
28
- organization?: IOrganization | null;
29
- entityTags?: IEntityTag[];
30
- }
1
+ import { IOrganization } from './organization.dto';
2
+ import { IProject } from './project.dto';
3
+ import { IEntityTag } from './tag.dto';
4
+ import { IUser } from './user.dto';
5
+
6
+ export interface IDraw {
7
+ id: string;
8
+ title: string;
9
+ content: string;
10
+ userId: string | null;
11
+ projectId: string | null;
12
+ organizationId: string | null;
13
+ createdByUserId: string | null;
14
+ fileId: string | null;
15
+ filePublicAccessId: string | null;
16
+ thumbnailId: string | null;
17
+ thumbnailPublicAccessId: string | null;
18
+ sizeOctet: number;
19
+ mimeType: string;
20
+ checksum: string;
21
+ archivedAt?: Date | null;
22
+ updatedAt?: Date;
23
+ createdAt?: Date;
24
+
25
+ // Association
26
+ user?: IUser | null;
27
+ project?: IProject | null;
28
+ organization?: IOrganization | null;
29
+ entityTags?: IEntityTag[];
30
+ }
@@ -5,11 +5,7 @@
5
5
 
6
6
  import { ExtractionWarningCode } from '../../../types/enum/extraction-warning.enum';
7
7
  import { ExtractionFeedbackIssueType } from '../../../types/enum/extraction-feedback-issue-type.enum';
8
- import type {
9
- IFieldValue,
10
- IExecutionManifest,
11
- IGlobalConfidence,
12
- } from './extraction-plan.dto';
8
+ import type { IFieldValue, IExecutionManifest, IGlobalConfidence } from './extraction-plan.dto';
13
9
 
14
10
  // Re-export so consumers can import ExtractionFeedbackIssueType from the DTO barrel.
15
11
  export { ExtractionFeedbackIssueType };
@@ -159,10 +155,22 @@ export interface IExtraction {
159
155
 
160
156
  export interface IExtractionTemplate {
161
157
  id: string;
162
- userId: string;
158
+ /** Personal scope owner — null when the template is org/project-scoped. */
159
+ userId: string | null;
160
+ /** Owning organization — null for personal templates. */
161
+ organizationId: string | null;
162
+ /** Owning project — null for personal and org-wide templates. */
163
+ projectId: string | null;
164
+ /** Author inside an org/project scope — null for personal templates. */
165
+ createdByUserId: string | null;
163
166
  name: string;
164
167
  description: string | null;
165
168
  isActive: boolean;
169
+ /**
170
+ * Stamped (fire-and-forget) whenever an extraction run resolves the
171
+ * template. Null until first use.
172
+ */
173
+ lastUsedAt: string | null;
166
174
  createdAt: string;
167
175
  updatedAt: string;
168
176
  }
@@ -206,6 +214,16 @@ export interface IExtractionTemplateVersion {
206
214
  version: number;
207
215
  templateJson: Record<string, unknown>;
208
216
  comment: string | null;
217
+ /**
218
+ * Witness (sample) PDF reference in the dedicated /rcb-witness bucket.
219
+ * Null when the version carries no witness. Retrieve a download URL via
220
+ * `sdk.extract.templates.getWitnessUrl`.
221
+ */
222
+ witnessFileId: string | null;
223
+ /** Witness byte size (billed to the owner's storage pool). */
224
+ witnessSizeBytes: number | null;
225
+ /** Original witness filename. */
226
+ witnessFilename: string | null;
209
227
  createdAt: string;
210
228
  }
211
229