Skip to content

Commit 0824aed

Browse files
committed
deploy: b90b969
1 parent 94c7594 commit 0824aed

File tree

16 files changed

+139
-115
lines changed

16 files changed

+139
-115
lines changed

controllers/AppController.html

Lines changed: 28 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -202,14 +202,17 @@ <h3 id="methods">
202202

203203
<tr>
204204
<td class="col-md-4">
205-
<div class="io-line">Defined in <a href="" data-line="20"
206-
class="link-to-prism">src/app.controller.ts:20</a></div>
205+
<div class="io-line">Defined in <a href="" data-line="24"
206+
class="link-to-prism">src/app.controller.ts:24</a></div>
207207
</td>
208208
</tr>
209209

210210

211211
<tr>
212212
<td class="col-md-4">
213+
<div class="io-description"><p>This endpoint returns the API information.
214+
It retrieves the package information from the AppService and returns it in the response.</p>
215+
</div>
213216

214217
<div class="io-description">
215218
<b>Parameters :</b>
@@ -281,14 +284,22 @@ <h3 id="methods">
281284

282285
<tr>
283286
<td class="col-md-4">
284-
<div class="io-line">Defined in <a href="" data-line="28"
285-
class="link-to-prism">src/app.controller.ts:28</a></div>
287+
<div class="io-line">Defined in <a href="" data-line="41"
288+
class="link-to-prism">src/app.controller.ts:41</a></div>
286289
</td>
287290
</tr>
288291

289292

290293
<tr>
291294
<td class="col-md-4">
295+
<div class="io-description"><p>This endpoint checks for updates of the specified project.
296+
It compares the current version with the latest version available on GitHub.
297+
If the project is not the same as the package name or if a current version is provided,
298+
it validates the current version format.
299+
If the current version is not in the format X.Y.Z, it throws a BadRequestException.
300+
It returns the project name, whether an update is available, the current version,
301+
and the last version available.</p>
302+
</div>
292303

293304
<div class="io-description">
294305
<b>Parameters :</b>
@@ -372,6 +383,10 @@ <h3 id="methods">
372383
super();
373384
}
374385

386+
/**
387+
* This endpoint returns the API information.
388+
* It retrieves the package information from the AppService and returns it in the response.
389+
*/
375390
@Get()
376391
@ApiOperation({ summary: &#x27;Get API infos&#x27; })
377392
@ApiResponse({ status: 200, description: &#x27;Return API infos&#x27; })
@@ -381,6 +396,15 @@ <h3 id="methods">
381396
});
382397
}
383398

399+
/**
400+
* This endpoint checks for updates of the specified project.
401+
* It compares the current version with the latest version available on GitHub.
402+
* If the project is not the same as the package name or if a current version is provided,
403+
* it validates the current version format.
404+
* If the current version is not in the format X.Y.Z, it throws a BadRequestException.
405+
* It returns the project name, whether an update is available, the current version,
406+
* and the last version available.
407+
*/
384408
@ApiQuery({ name: &#x27;current&#x27;, required: false })
385409
@Get(&#x27;/get-update/:project(sesame-orchestrator|sesame-daemon|sesame-app-manager)&#x27;)
386410
public async update(

coverage.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1186,16 +1186,16 @@
11861186
<span class="coverage-count">(0/1)</span>
11871187
</td>
11881188
</tr>
1189-
<tr class="low">
1189+
<tr class="good">
11901190
<td>
11911191
<!-- miscellaneous -->
11921192
<a href="./controllers/AppController.html">src/app.controller.ts</a>
11931193
</td>
11941194
<td>controller</td>
11951195
<td>AppController</td>
1196-
<td align="right" data-sort="0">
1197-
<span class="coverage-percent">0 %</span>
1198-
<span class="coverage-count">(0/3)</span>
1196+
<td align="right" data-sort="66">
1197+
<span class="coverage-percent">66 %</span>
1198+
<span class="coverage-count">(2/3)</span>
11991199
</td>
12001200
</tr>
12011201
<tr class="medium">

images/coverage-badge-documentation.svg

Lines changed: 1 addition & 1 deletion
Loading

injectables/AppService.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1054,7 +1054,7 @@ <h3 id="inputs">
10541054

10551055
try {
10561056
const { data } &#x3D; await firstValueFrom(
1057-
this.httpService.get&lt;GithubUpdate&gt;(&#x60;https://api.github.com/repos/Libertech-FR/${project}/releasesppp/latest&#x60;).pipe(
1057+
this.httpService.get&lt;GithubUpdate&gt;(&#x60;https://api.github.com/repos/Libertech-FR/${project}/releases/latest&#x60;).pipe(
10581058
catchError((error) &#x3D;&gt; {
10591059
this.logger.error(&#x60;Error fetching release for ${project}: ${error.message}&#x60;);
10601060
throw error;

interfaces/GithubAsset.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ <h3 id="inputs">Indexable</h3>
323323

324324
try {
325325
const { data } &#x3D; await firstValueFrom(
326-
this.httpService.get&lt;GithubUpdate&gt;(&#x60;https://api.github.com/repos/Libertech-FR/${project}/releasesppp/latest&#x60;).pipe(
326+
this.httpService.get&lt;GithubUpdate&gt;(&#x60;https://api.github.com/repos/Libertech-FR/${project}/releases/latest&#x60;).pipe(
327327
catchError((error) &#x3D;&gt; {
328328
this.logger.error(&#x60;Error fetching release for ${project}: ${error.message}&#x60;);
329329
throw error;

interfaces/GithubAuthor.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1067,7 +1067,7 @@ <h3 id="inputs">Properties</h3>
10671067

10681068
try {
10691069
const { data } &#x3D; await firstValueFrom(
1070-
this.httpService.get&lt;GithubUpdate&gt;(&#x60;https://api.github.com/repos/Libertech-FR/${project}/releasesppp/latest&#x60;).pipe(
1070+
this.httpService.get&lt;GithubUpdate&gt;(&#x60;https://api.github.com/repos/Libertech-FR/${project}/releases/latest&#x60;).pipe(
10711071
catchError((error) &#x3D;&gt; {
10721072
this.logger.error(&#x60;Error fetching release for ${project}: ${error.message}&#x60;);
10731073
throw error;

interfaces/GithubUpdate.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1028,7 +1028,7 @@ <h3 id="inputs">Properties</h3>
10281028

10291029
try {
10301030
const { data } &#x3D; await firstValueFrom(
1031-
this.httpService.get&lt;GithubUpdate&gt;(&#x60;https://api.github.com/repos/Libertech-FR/${project}/releasesppp/latest&#x60;).pipe(
1031+
this.httpService.get&lt;GithubUpdate&gt;(&#x60;https://api.github.com/repos/Libertech-FR/${project}/releases/latest&#x60;).pipe(
10321032
catchError((error) &#x3D;&gt; {
10331033
this.logger.error(&#x60;Error fetching release for ${project}: ${error.message}&#x60;);
10341034
throw error;

js/search/search_index.js

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

modules/BackendsModule.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -117,14 +117,14 @@
117117
<title>cluster_BackendsModule</title>
118118
<polygon fill="none" stroke="black" stroke-dasharray="1,5" points="8,-70 8,-268 661,-268 661,-70 8,-70"/>
119119
</g>
120-
<g id="clust3" class="cluster">
121-
<title>cluster_BackendsModule_imports</title>
122-
<polygon fill="none" stroke="black" points="196,-78 196,-130 653,-130 653,-78 196,-78"/>
123-
</g>
124120
<g id="clust4" class="cluster">
125121
<title>cluster_BackendsModule_exports</title>
126122
<polygon fill="none" stroke="black" points="290,-208 290,-260 422,-260 422,-208 290,-208"/>
127123
</g>
124+
<g id="clust3" class="cluster">
125+
<title>cluster_BackendsModule_imports</title>
126+
<polygon fill="none" stroke="black" points="196,-78 196,-130 653,-130 653,-78 196,-78"/>
127+
</g>
128128
<g id="clust6" class="cluster">
129129
<title>cluster_BackendsModule_providers</title>
130130
<polygon fill="none" stroke="black" points="16,-78 16,-130 188,-130 188,-78 16,-78"/>

modules/BackendsModule/dependencies.svg

Lines changed: 4 additions & 4 deletions
Loading

0 commit comments

Comments
 (0)