Skip to content

Commit

Permalink
deploy: 42a6242
Browse files Browse the repository at this point in the history
  • Loading branch information
surmon-china committed May 19, 2024
1 parent b6d9c04 commit 1de906c
Show file tree
Hide file tree
Showing 17 changed files with 816 additions and 253 deletions.
6 changes: 6 additions & 0 deletions changelog.html
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,12 @@

<h1>Changelog</h1>
<p>All notable changes to this project will be documented in this file.</p>
<h3>4.8.0 (2024-05-19)</h3>
<p><strong>Feature</strong></p>
<ul>
<li><strong>[Category]</strong> Add <code>/all</code> API</li>
<li>Upgrade dependencies</li>
</ul>
<h3>4.7.0 (2024-05-10)</h3>
<p><strong>Feature</strong></p>
<ul>
Expand Down
112 changes: 102 additions & 10 deletions controllers/CategoryController.html
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,12 @@ <h6><b>Methods</b></h6>
<span class="modifier"></span>
<a href="#delCategory" >delCategory</a>
</li>
<li>
<span class="modifier"></span>
<span class="modifier"></span>
<span class="modifier"></span>
<a href="#getAllCategories" >getAllCategories</a>
</li>
<li>
<span class="modifier"></span>
<span class="modifier"></span>
Expand Down Expand Up @@ -222,8 +228,8 @@ <h3 id="methods">

<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="41"
class="link-to-prism">src/modules/category/category.controller.ts:41</a></div>
<div class="io-line">Defined in <a href="" data-line="50"
class="link-to-prism">src/modules/category/category.controller.ts:50</a></div>
</td>
</tr>

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

<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="48"
class="link-to-prism">src/modules/category/category.controller.ts:48</a></div>
<div class="io-line">Defined in <a href="" data-line="57"
class="link-to-prism">src/modules/category/category.controller.ts:57</a></div>
</td>
</tr>

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

<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="68"
class="link-to-prism">src/modules/category/category.controller.ts:68</a></div>
<div class="io-line">Defined in <a href="" data-line="77"
class="link-to-prism">src/modules/category/category.controller.ts:77</a></div>
</td>
</tr>

Expand Down Expand Up @@ -424,6 +430,83 @@ <h3 id="methods">
</tr>
</tbody>
</table>
<table class="table table-sm table-bordered">
<tbody>
<tr>
<td class="col-md-4">
<a name="getAllCategories"></a>
<span class="name">
<span class="modifier"></span>
<span class="modifier"></span>
<span class="modifier"></span>
<span ><b>getAllCategories</b></span>
<a href="#getAllCategories"><span class="icon ion-ios-link"></span></a>
</span>
</td>
</tr>
<tr>
<td class="col-md-4">
<span class="modifier-icon icon ion-ios-reset"></span>
<code>getAllCategories(undefined: <a href="../interfaces/QueryParamsResult.html" target="_self">QueryParamsResult</a>)</code>
</td>
</tr>

<tr>
<td class="col-md-4">
<b>Decorators : </b>
<br />
<code>@Get(&#x27;all&#x27;)<br />@UseGuards(AdminMaybeGuard)<br />@(&#x27;Get all categories&#x27;)<br /></code>
</td>
</tr>

<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="41"
class="link-to-prism">src/modules/category/category.controller.ts:41</a></div>
</td>
</tr>


<tr>
<td class="col-md-4">

<div class="io-description">
<b>Parameters :</b>

<table class="params">
<thead>
<tr>
<td>Name</td>
<td>Type</td>
<td>Optional</td>
</tr>
</thead>
<tbody>
<tr>
<td>
<code><a href="../interfaces/QueryParamsResult.html" target="_self" >QueryParamsResult</a></code>
</td>

<td>
No
</td>


</tr>
</tbody>
</table>
</div>
<div class="io-description">
<b>Returns : </b> <code><a href="../classes/Category.html" target="_self" >Promise&lt;Array&lt;Category&gt;&gt;</a></code>

</div>
<div class="io-description">

</div>
</td>
</tr>
</tbody>
</table>
<table class="table table-sm table-bordered">
<tbody>
<tr>
Expand Down Expand Up @@ -544,8 +627,8 @@ <h3 id="methods">

<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="54"
class="link-to-prism">src/modules/category/category.controller.ts:54</a></div>
<div class="io-line">Defined in <a href="" data-line="63"
class="link-to-prism">src/modules/category/category.controller.ts:63</a></div>
</td>
</tr>

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

<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="61"
class="link-to-prism">src/modules/category/category.controller.ts:61</a></div>
<div class="io-line">Defined in <a href="" data-line="70"
class="link-to-prism">src/modules/category/category.controller.ts:70</a></div>
</td>
</tr>

Expand Down Expand Up @@ -720,6 +803,15 @@ <h3 id="methods">
)
}

@Get(&#x27;all&#x27;)
@UseGuards(AdminMaybeGuard)
@Responser.handle(&#x27;Get all categories&#x27;)
getAllCategories(@QueryParams() { isAuthenticated }: QueryParamsResult): Promise&lt;Array&lt;Category&gt;&gt; {
return isAuthenticated
? this.categoryService.getAllCategories({ aggregatePublicOnly: false })
: this.categoryService.getAllCategoriesCache()
}

@Post()
@UseGuards(AdminOnlyGuard)
@Responser.handle(&#x27;Create category&#x27;)
Expand Down
62 changes: 48 additions & 14 deletions controllers/TagController.html
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ <h6><b>Methods</b></h6>
<li>
<span class="modifier"></span>
<span class="modifier"></span>
<span class="modifier"></span>
<a href="#getAllTags" >getAllTags</a>
</li>
<li>
Expand Down Expand Up @@ -222,8 +223,8 @@ <h3 id="methods">

<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="56"
class="link-to-prism">src/modules/tag/tag.controller.ts:56</a></div>
<div class="io-line">Defined in <a href="" data-line="59"
class="link-to-prism">src/modules/tag/tag.controller.ts:59</a></div>
</td>
</tr>

Expand Down Expand Up @@ -300,8 +301,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">src/modules/tag/tag.controller.ts:77</a></div>
<div class="io-line">Defined in <a href="" data-line="80"
class="link-to-prism">src/modules/tag/tag.controller.ts:80</a></div>
</td>
</tr>

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

<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="63"
class="link-to-prism">src/modules/tag/tag.controller.ts:63</a></div>
<div class="io-line">Defined in <a href="" data-line="66"
class="link-to-prism">src/modules/tag/tag.controller.ts:66</a></div>
</td>
</tr>

Expand Down Expand Up @@ -432,6 +433,7 @@ <h3 id="methods">
<span class="name">
<span class="modifier"></span>
<span class="modifier"></span>
<span class="modifier"></span>
<span ><b>getAllTags</b></span>
<a href="#getAllTags"><span class="icon ion-ios-link"></span></a>
</span>
Expand All @@ -440,33 +442,62 @@ <h3 id="methods">
<tr>
<td class="col-md-4">
<span class="modifier-icon icon ion-ios-reset"></span>
<code>getAllTags()</code>
<code>getAllTags(undefined: <a href="../interfaces/QueryParamsResult.html" target="_self">QueryParamsResult</a>)</code>
</td>
</tr>

<tr>
<td class="col-md-4">
<b>Decorators : </b>
<br />
<code>@Get(&#x27;all&#x27;)<br />@(&#x27;Get all tags&#x27;)<br /></code>
<code>@Get(&#x27;all&#x27;)<br />@UseGuards(AdminMaybeGuard)<br />@(&#x27;Get all tags&#x27;)<br /></code>
</td>
</tr>

<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="49"
class="link-to-prism">src/modules/tag/tag.controller.ts:49</a></div>
<div class="io-line">Defined in <a href="" data-line="50"
class="link-to-prism">src/modules/tag/tag.controller.ts:50</a></div>
</td>
</tr>


<tr>
<td class="col-md-4">

<div class="io-description">
<b>Parameters :</b>

<table class="params">
<thead>
<tr>
<td>Name</td>
<td>Type</td>
<td>Optional</td>
</tr>
</thead>
<tbody>
<tr>
<td>
<code><a href="../interfaces/QueryParamsResult.html" target="_self" >QueryParamsResult</a></code>
</td>

<td>
No
</td>


</tr>
</tbody>
</table>
</div>
<div class="io-description">
<b>Returns : </b> <code><a href="../classes/Tag.html" target="_self" >Promise&lt;Array&lt;Tag&gt;&gt;</a></code>

</div>
<div class="io-description">

</div>
</td>
</tr>
</tbody>
Expand Down Expand Up @@ -592,8 +623,8 @@ <h3 id="methods">

<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="70"
class="link-to-prism">src/modules/tag/tag.controller.ts:70</a></div>
<div class="io-line">Defined in <a href="" data-line="73"
class="link-to-prism">src/modules/tag/tag.controller.ts:73</a></div>
</td>
</tr>

Expand Down Expand Up @@ -701,9 +732,12 @@ <h3 id="methods">
}

@Get(&#x27;all&#x27;)
@UseGuards(AdminMaybeGuard)
@Responser.handle(&#x27;Get all tags&#x27;)
getAllTags(): Promise&lt;Array&lt;Tag&gt;&gt; {
return this.tagService.getAllTagsCache()
getAllTags(@QueryParams() { isAuthenticated }: QueryParamsResult): Promise&lt;Array&lt;Tag&gt;&gt; {
return isAuthenticated
? this.tagService.getAllTags({ aggregatePublicOnly: false })
: this.tagService.getAllTagsCache()
}

@Post()
Expand Down
14 changes: 7 additions & 7 deletions dependencies.html
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@
</ol>
<ul class="dependencies-list">
<li>
<b>@aws-sdk/client-s3</b> : ^3.572.0</li>
<b>@aws-sdk/client-s3</b> : ^3.577.0</li>
<li>
<b>@nestjs/axios</b> : ^3.0.2</li>
<li>
Expand All @@ -117,9 +117,9 @@
<li>
<b>@nestjs/throttler</b> : ^5.1.2</li>
<li>
<b>@typegoose/auto-increment</b> : ^4.3.0</li>
<b>@typegoose/auto-increment</b> : ^4.4.0</li>
<li>
<b>@typegoose/typegoose</b> : ^12.4.0</li>
<b>@typegoose/typegoose</b> : ^12.5.0</li>
<li>
<b>akismet-api</b> : ^6.0.0</li>
<li>
Expand All @@ -143,7 +143,7 @@
<li>
<b>express</b> : ^4.19.2</li>
<li>
<b>fast-xml-parser</b> : ^4.3.6</li>
<b>fast-xml-parser</b> : ^4.4.0</li>
<li>
<b>googleapis</b> : ^137.1.0</li>
<li>
Expand All @@ -155,7 +155,7 @@
<li>
<b>lodash</b> : ^4.17.21</li>
<li>
<b>mongoose</b> : ~8.3.1</li>
<b>mongoose</b> : ~8.4.0</li>
<li>
<b>node-schedule</b> : ^2.1.1</li>
<li>
Expand All @@ -165,11 +165,11 @@
<li>
<b>passport-jwt</b> : ^4.0.1</li>
<li>
<b>redis</b> : ^4.6.13</li>
<b>redis</b> : ^4.6.14</li>
<li>
<b>reflect-metadata</b> : ^0.2.2</li>
<li>
<b>rimraf</b> : ^5.0.5</li>
<b>rimraf</b> : ^5.0.7</li>
<li>
<b>rxjs</b> : ^7.8.1</li>
<li>
Expand Down
Loading

0 comments on commit 1de906c

Please sign in to comment.