Skip to content

Commit

Permalink
Deploying to gh-pages from @ c88e496 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
hoeppner-dataport committed Jul 2, 2024
1 parent 58753cc commit 02530ce
Show file tree
Hide file tree
Showing 121 changed files with 3,488 additions and 3,570 deletions.
347 changes: 124 additions & 223 deletions classes/BoardCollaborationGateway.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion coverage.html
Original file line number Diff line number Diff line change
Expand Up @@ -8491,7 +8491,7 @@
<td>BoardCollaborationGateway</td>
<td align="right" data-sort="0">
<span class="coverage-percent">0 %</span>
<span class="coverage-count">(0/27)</span>
<span class="coverage-count">(0/26)</span>
</td>
</tr>
<tr class="low">
Expand Down
40 changes: 22 additions & 18 deletions injectables/BoardUc.html
Original file line number Diff line number Diff line change
Expand Up @@ -331,8 +331,8 @@ <h3 id="methods">

<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="116"
class="link-to-prism">apps/server/src/modules/board/uc/board.uc.ts:116</a></div>
<div class="io-line">Defined in <a href="" data-line="119"
class="link-to-prism">apps/server/src/modules/board/uc/board.uc.ts:119</a></div>
</td>
</tr>

Expand Down Expand Up @@ -493,8 +493,8 @@ <h3 id="methods">

<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="86"
class="link-to-prism">apps/server/src/modules/board/uc/board.uc.ts:86</a></div>
<div class="io-line">Defined in <a href="" data-line="88"
class="link-to-prism">apps/server/src/modules/board/uc/board.uc.ts:88</a></div>
</td>
</tr>

Expand Down Expand Up @@ -623,7 +623,7 @@ <h3 id="methods">
</table>
</div>
<div class="io-description">
<b>Returns : </b> <code>Promise&lt;void&gt;</code>
<b>Returns : </b> <code>Promise&lt;ColumnBoard&gt;</code>

</div>
<div class="io-description">
Expand Down Expand Up @@ -817,8 +817,8 @@ <h3 id="methods">

<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="99"
class="link-to-prism">apps/server/src/modules/board/uc/board.uc.ts:99</a></div>
<div class="io-line">Defined in <a href="" data-line="101"
class="link-to-prism">apps/server/src/modules/board/uc/board.uc.ts:101</a></div>
</td>
</tr>

Expand Down Expand Up @@ -890,7 +890,7 @@ <h3 id="methods">
</table>
</div>
<div class="io-description">
<b>Returns : </b> <code>Promise&lt;void&gt;</code>
<b>Returns : </b> <code><a href="../classes/Column.html" target="_self" >Promise&lt;Column&gt;</a></code>

</div>
<div class="io-description">
Expand Down Expand Up @@ -922,8 +922,8 @@ <h3 id="methods">

<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="77"
class="link-to-prism">apps/server/src/modules/board/uc/board.uc.ts:77</a></div>
<div class="io-line">Defined in <a href="" data-line="78"
class="link-to-prism">apps/server/src/modules/board/uc/board.uc.ts:78</a></div>
</td>
</tr>

Expand Down Expand Up @@ -983,7 +983,7 @@ <h3 id="methods">
</table>
</div>
<div class="io-description">
<b>Returns : </b> <code>Promise&lt;void&gt;</code>
<b>Returns : </b> <code>Promise&lt;ColumnBoard&gt;</code>

</div>
<div class="io-description">
Expand Down Expand Up @@ -1015,8 +1015,8 @@ <h3 id="methods">

<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="140"
class="link-to-prism">apps/server/src/modules/board/uc/board.uc.ts:140</a></div>
<div class="io-line">Defined in <a href="" data-line="143"
class="link-to-prism">apps/server/src/modules/board/uc/board.uc.ts:143</a></div>
</td>
</tr>

Expand Down Expand Up @@ -1076,7 +1076,7 @@ <h3 id="methods">
</table>
</div>
<div class="io-description">
<b>Returns : </b> <code>Promise&lt;void&gt;</code>
<b>Returns : </b> <code>Promise&lt;ColumnBoard&gt;</code>

</div>
<div class="io-description">
Expand Down Expand Up @@ -1159,22 +1159,24 @@ <h3 id="methods">
return board.context;
}

async deleteBoard(userId: EntityId, boardId: EntityId): Promise&lt;void&gt; {
async deleteBoard(userId: EntityId, boardId: EntityId): Promise&lt;ColumnBoard&gt; {
this.logger.debug({ action: &#x27;deleteBoard&#x27;, userId, boardId });

const board &#x3D; await this.boardNodeService.findByClassAndId(ColumnBoard, boardId);
await this.boardPermissionService.checkPermission(userId, board, Action.write);

await this.boardNodeService.delete(board);
return board;
}

async updateBoardTitle(userId: EntityId, boardId: EntityId, title: string): Promise&lt;void&gt; {
async updateBoardTitle(userId: EntityId, boardId: EntityId, title: string): Promise&lt;ColumnBoard&gt; {
this.logger.debug({ action: &#x27;updateBoardTitle&#x27;, userId, boardId, title });

const board &#x3D; await this.boardNodeService.findByClassAndId(ColumnBoard, boardId);
await this.boardPermissionService.checkPermission(userId, board, Action.write);

await this.boardNodeService.updateTitle(board, title);
return board;
}

async createColumn(userId: EntityId, boardId: EntityId): Promise&lt;Column&gt; {
Expand All @@ -1195,7 +1197,7 @@ <h3 id="methods">
columnId: EntityId,
targetBoardId: EntityId,
targetPosition: number
): Promise&lt;void&gt; {
): Promise&lt;Column&gt; {
this.logger.debug({ action: &#x27;moveColumn&#x27;, userId, columnId, targetBoardId, targetPosition });

const column &#x3D; await this.boardNodeService.findByClassAndId(Column, columnId);
Expand All @@ -1205,6 +1207,7 @@ <h3 id="methods">
await this.boardPermissionService.checkPermission(userId, targetBoard, Action.write);

await this.boardNodeService.move(column, targetBoard, targetPosition);
return column;
}

async copyBoard(userId: EntityId, boardId: EntityId): Promise&lt;CopyStatus&gt; {
Expand All @@ -1231,11 +1234,12 @@ <h3 id="methods">
return copyStatus;
}

async updateVisibility(userId: EntityId, boardId: EntityId, isVisible: boolean): Promise&lt;void&gt; {
async updateVisibility(userId: EntityId, boardId: EntityId, isVisible: boolean): Promise&lt;ColumnBoard&gt; {
const board &#x3D; await this.boardNodeService.findByClassAndId(ColumnBoard, boardId);
await this.boardPermissionService.checkPermission(userId, board, Action.write);

await this.boardNodeService.updateVisibility(board, isVisible);
return board;
}
}
</code></pre>
Expand Down
38 changes: 22 additions & 16 deletions injectables/CardUc.html
Original file line number Diff line number Diff line change
Expand Up @@ -307,8 +307,8 @@ <h3 id="methods">

<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="78"
class="link-to-prism">apps/server/src/modules/board/uc/card.uc.ts:78</a></div>
<div class="io-line">Defined in <a href="" data-line="82"
class="link-to-prism">apps/server/src/modules/board/uc/card.uc.ts:82</a></div>
</td>
</tr>

Expand Down Expand Up @@ -412,8 +412,8 @@ <h3 id="methods">

<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="67"
class="link-to-prism">apps/server/src/modules/board/uc/card.uc.ts:67</a></div>
<div class="io-line">Defined in <a href="" data-line="69"
class="link-to-prism">apps/server/src/modules/board/uc/card.uc.ts:69</a></div>
</td>
</tr>

Expand Down Expand Up @@ -461,7 +461,7 @@ <h3 id="methods">
</table>
</div>
<div class="io-description">
<b>Returns : </b> <code>Promise&lt;void&gt;</code>
<b>Returns : </b> <code><a href="../miscellaneous/typealiases.html#EntityId" target="_self" >Promise&lt;EntityId&gt;</a></code>

</div>
<div class="io-description">
Expand Down Expand Up @@ -574,8 +574,8 @@ <h3 id="methods">

<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="96"
class="link-to-prism">apps/server/src/modules/board/uc/card.uc.ts:96</a></div>
<div class="io-line">Defined in <a href="" data-line="100"
class="link-to-prism">apps/server/src/modules/board/uc/card.uc.ts:100</a></div>
</td>
</tr>

Expand Down Expand Up @@ -647,7 +647,7 @@ <h3 id="methods">
</table>
</div>
<div class="io-description">
<b>Returns : </b> <code>Promise&lt;void&gt;</code>
<b>Returns : </b> <code><a href="../miscellaneous/typealiases.html#AnyContentElement" target="_self" >Promise&lt;AnyContentElement&gt;</a></code>

</div>
<div class="io-description">
Expand Down Expand Up @@ -740,7 +740,7 @@ <h3 id="methods">
</table>
</div>
<div class="io-description">
<b>Returns : </b> <code>Promise&lt;void&gt;</code>
<b>Returns : </b> <code><a href="../classes/Card.html" target="_self" >Promise&lt;Card&gt;</a></code>

</div>
<div class="io-description">
Expand Down Expand Up @@ -772,8 +772,8 @@ <h3 id="methods">

<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="58"
class="link-to-prism">apps/server/src/modules/board/uc/card.uc.ts:58</a></div>
<div class="io-line">Defined in <a href="" data-line="59"
class="link-to-prism">apps/server/src/modules/board/uc/card.uc.ts:59</a></div>
</td>
</tr>

Expand Down Expand Up @@ -833,7 +833,7 @@ <h3 id="methods">
</table>
</div>
<div class="io-description">
<b>Returns : </b> <code>Promise&lt;void&gt;</code>
<b>Returns : </b> <code><a href="../classes/Card.html" target="_self" >Promise&lt;Card&gt;</a></code>

</div>
<div class="io-description">
Expand Down Expand Up @@ -897,31 +897,35 @@ <h3 id="methods">
return allowedCards;
}

async updateCardHeight(userId: EntityId, cardId: EntityId, height: number): Promise&lt;void&gt; {
async updateCardHeight(userId: EntityId, cardId: EntityId, height: number): Promise&lt;Card&gt; {
this.logger.debug({ action: &#x27;updateCardHeight&#x27;, userId, cardId, height });

const card &#x3D; await this.boardNodeService.findByClassAndId(Card, cardId);
await this.boardNodePermissionService.checkPermission(userId, card, Action.write);

await this.boardNodeService.updateHeight(card, height);
return card;
}

async updateCardTitle(userId: EntityId, cardId: EntityId, title: string): Promise&lt;void&gt; {
async updateCardTitle(userId: EntityId, cardId: EntityId, title: string): Promise&lt;Card&gt; {
this.logger.debug({ action: &#x27;updateCardTitle&#x27;, userId, cardId, title });

const card &#x3D; await this.boardNodeService.findByClassAndId(Card, cardId);
await this.boardNodePermissionService.checkPermission(userId, card, Action.write);

await this.boardNodeService.updateTitle(card, title);
return card;
}

async deleteCard(userId: EntityId, cardId: EntityId): Promise&lt;void&gt; {
async deleteCard(userId: EntityId, cardId: EntityId): Promise&lt;EntityId&gt; {
this.logger.debug({ action: &#x27;deleteCard&#x27;, userId, cardId });

const card &#x3D; await this.boardNodeService.findByClassAndId(Card, cardId);
const { rootId } &#x3D; card;
await this.boardNodePermissionService.checkPermission(userId, card, Action.write);

await this.boardNodeService.delete(card);
return rootId;
}

// --- elements ---
Expand Down Expand Up @@ -949,7 +953,7 @@ <h3 id="methods">
elementId: EntityId,
targetCardId: EntityId,
targetPosition: number
): Promise&lt;void&gt; {
): Promise&lt;AnyContentElement&gt; {
this.logger.debug({ action: &#x27;moveElement&#x27;, userId, elementId, targetCardId, targetPosition });

const element &#x3D; await this.boardNodeService.findContentElementById(elementId);
Expand All @@ -959,6 +963,8 @@ <h3 id="methods">
await this.boardNodePermissionService.checkPermission(userId, targetCard, Action.write);

await this.boardNodeService.move(element, targetCard, targetPosition);

return element;
}
}
</code></pre>
Expand Down
Loading

0 comments on commit 02530ce

Please sign in to comment.