Skip to content

Commit

Permalink
Deploying to gh-pages from @ 598809a 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
SevenWaysDP committed Nov 17, 2023
1 parent cb54d4b commit db59f1a
Show file tree
Hide file tree
Showing 105 changed files with 8,475 additions and 8,429 deletions.
5,802 changes: 2,904 additions & 2,898 deletions graph/dependencies.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 4 additions & 2 deletions injectables/PreviewGeneratorConsumer.html
Original file line number Diff line number Diff line change
Expand Up @@ -253,9 +253,9 @@ <h3 id="methods">

<div class="tab-pane fade tab-source-code" id="source">
<pre class="line-numbers compodoc-sourcecode"><code class="language-typescript">import { RabbitPayload, RabbitRPC } from &#x27;@golevelup/nestjs-rabbitmq&#x27;;
import { FilesPreviewEvents, FilesPreviewExchange } from &#x27;@infra/rabbitmq&#x27;;
import { Injectable } from &#x27;@nestjs/common&#x27;;
import { Logger } from &#x27;@src/core/logger&#x27;;
import { FilesPreviewEvents, FilesPreviewExchange } from &#x27;@infra/rabbitmq&#x27;;
import { PreviewFileOptions } from &#x27;./interface&#x27;;
import { PreviewActionsLoggable } from &#x27;./loggable/preview-actions.loggable&#x27;;
import { PreviewGeneratorService } from &#x27;./preview-generator.service&#x27;;
Expand All @@ -272,10 +272,12 @@ <h3 id="methods">
queue: FilesPreviewEvents.GENERATE_PREVIEW,
})
public async generatePreview(@RabbitPayload() payload: PreviewFileOptions) {
this.logger.debug(new PreviewActionsLoggable(&#x27;PreviewGeneratorConsumer.generatePreview&#x27;, payload));
this.logger.info(new PreviewActionsLoggable(&#x27;PreviewGeneratorConsumer.generatePreview:start&#x27;, payload));

const response &#x3D; await this.previewGeneratorService.generatePreview(payload);

this.logger.info(new PreviewActionsLoggable(&#x27;PreviewGeneratorConsumer.generatePreview:end&#x27;, payload));

return { message: response };
}
}
Expand Down
8 changes: 4 additions & 4 deletions injectables/PreviewGeneratorService.html
Original file line number Diff line number Diff line change
Expand Up @@ -450,8 +450,8 @@ <h3 id="inputs">


<div class="tab-pane fade tab-source-code" id="source">
<pre class="line-numbers compodoc-sourcecode"><code class="language-typescript">import { Injectable } from &#x27;@nestjs/common&#x27;;
import { GetFile, S3ClientAdapter } from &#x27;@infra/s3-client&#x27;;
<pre class="line-numbers compodoc-sourcecode"><code class="language-typescript">import { GetFile, S3ClientAdapter } from &#x27;@infra/s3-client&#x27;;
import { Injectable } from &#x27;@nestjs/common&#x27;;
import { Logger } from &#x27;@src/core/logger&#x27;;
import { subClass } from &#x27;gm&#x27;;
import { PassThrough } from &#x27;stream&#x27;;
Expand All @@ -468,7 +468,7 @@ <h3 id="inputs">
}

public async generatePreview(params: PreviewFileOptions): Promise&lt;PreviewResponseMessage&gt; {
this.logger.debug(new PreviewActionsLoggable(&#x27;PreviewGeneratorService.generatePreview:start&#x27;, params));
this.logger.info(new PreviewActionsLoggable(&#x27;PreviewGeneratorService.generatePreview:start&#x27;, params));
const { originFilePath, previewFilePath, previewOptions } &#x3D; params;

const original &#x3D; await this.downloadOriginFile(originFilePath);
Expand All @@ -478,7 +478,7 @@ <h3 id="inputs">

await this.storageClient.create(previewFilePath, file);

this.logger.debug(new PreviewActionsLoggable(&#x27;PreviewGeneratorService.generatePreview:end&#x27;, params));
this.logger.info(new PreviewActionsLoggable(&#x27;PreviewGeneratorService.generatePreview:end&#x27;, params));

return {
previewFilePath,
Expand Down
7 changes: 4 additions & 3 deletions injectables/PreviewProducer.html
Original file line number Diff line number Diff line change
Expand Up @@ -537,9 +537,9 @@ <h3 id="methods">

<div class="tab-pane fade tab-source-code" id="source">
<pre class="line-numbers compodoc-sourcecode"><code class="language-typescript">import { AmqpConnection } from &#x27;@golevelup/nestjs-rabbitmq&#x27;;
import { FilesPreviewEvents, FilesPreviewExchange, RpcMessageProducer } from &#x27;@infra/rabbitmq&#x27;;
import { Injectable } from &#x27;@nestjs/common&#x27;;
import { ConfigService } from &#x27;@nestjs/config&#x27;;
import { FilesPreviewEvents, FilesPreviewExchange, RpcMessageProducer } from &#x27;@infra/rabbitmq&#x27;;
import { Logger } from &#x27;@src/core/logger&#x27;;
import { PreviewFileOptions, PreviewResponseMessage } from &#x27;./interface&#x27;;
import { PreviewModuleConfig } from &#x27;./interface/preview-consumer-config&#x27;;
Expand All @@ -559,10 +559,11 @@ <h3 id="methods">
}

async generate(payload: PreviewFileOptions): Promise&lt;PreviewResponseMessage&gt; {
this.logger.debug(new PreviewActionsLoggable(&#x27;PreviewProducer.generate:started&#x27;, payload));
this.logger.info(new PreviewActionsLoggable(&#x27;PreviewProducer.generate:started&#x27;, payload));

const response &#x3D; await this.request&lt;PreviewResponseMessage&gt;(FilesPreviewEvents.GENERATE_PREVIEW, payload);

this.logger.debug(new PreviewActionsLoggable(&#x27;PreviewProducer.generate:finished&#x27;, payload));
this.logger.info(new PreviewActionsLoggable(&#x27;PreviewProducer.generate:finished&#x27;, payload));

return response;
}
Expand Down
26 changes: 13 additions & 13 deletions injectables/S3ClientAdapter.html
Original file line number Diff line number Diff line change
Expand Up @@ -1172,7 +1172,7 @@ <h3 id="inputs">
// is public but only used internally
public async createBucket() {
try {
this.logger.log({ action: &#x27;create bucket&#x27;, params: { bucket: this.config.bucket } });
this.logger.debug({ action: &#x27;create bucket&#x27;, params: { bucket: this.config.bucket } });

const req &#x3D; new CreateBucketCommand({ Bucket: this.config.bucket });
await this.client.send(req);
Expand All @@ -1189,7 +1189,7 @@ <h3 id="inputs">

public async get(path: string, bytesRange?: string): Promise&lt;GetFile&gt; {
try {
this.logger.log({ action: &#x27;get&#x27;, params: { path, bucket: this.config.bucket } });
this.logger.debug({ action: &#x27;get&#x27;, params: { path, bucket: this.config.bucket } });

const req &#x3D; new GetObjectCommand({
Bucket: this.config.bucket,
Expand All @@ -1212,8 +1212,8 @@ <h3 id="inputs">
} catch (err) {
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
if (err?.Code &#x3D;&#x3D;&#x3D; &#x27;NoSuchKey&#x27;) {
this.logger.log(&#x60;could not find one of the files for deletion with id ${path}&#x60;);
throw new NotFoundException(&#x27;NoSuchKey&#x27;);
this.logger.warn(&#x60;could not find one of the files for deletion with id ${path}&#x60;);
throw new NotFoundException(&#x27;NoSuchKey&#x27;, ErrorUtils.createHttpExceptionOptions(err));
} else {
throw new InternalServerErrorException(&#x27;S3ClientAdapter:get&#x27;, ErrorUtils.createHttpExceptionOptions(err));
}
Expand All @@ -1222,7 +1222,7 @@ <h3 id="inputs">

public async create(path: string, file: File): Promise&lt;ServiceOutputTypes&gt; {
try {
this.logger.log({ action: &#x27;create&#x27;, params: { path, bucket: this.config.bucket } });
this.logger.debug({ action: &#x27;create&#x27;, params: { path, bucket: this.config.bucket } });

const req &#x3D; {
Body: file.data,
Expand Down Expand Up @@ -1265,7 +1265,7 @@ <h3 id="inputs">
} catch (err) {
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
if (err?.cause?.name &#x3D;&#x3D;&#x3D; &#x27;NoSuchKey&#x27;) {
this.logger.log(&#x60;could not find one of the files for deletion with ids ${paths.join(&#x27;,&#x27;)}&#x60;);
this.logger.warn(&#x60;could not find one of the files for deletion with ids ${paths.join(&#x27;,&#x27;)}&#x60;);
return [];
}
throw new InternalServerErrorException(&#x27;S3ClientAdapter:delete&#x27;, ErrorUtils.createHttpExceptionOptions(err));
Expand All @@ -1274,7 +1274,7 @@ <h3 id="inputs">

public async restore(paths: string[]): Promise&lt;CopyObjectCommandOutput[]&gt; {
try {
this.logger.log({ action: &#x27;restore&#x27;, params: { paths, bucket: this.config.bucket } });
this.logger.debug({ action: &#x27;restore&#x27;, params: { paths, bucket: this.config.bucket } });

const copyPaths &#x3D; paths.map((path) &#x3D;&gt; {
return { sourcePath: &#x60;${this.deletedFolderName}/${path}&#x60;, targetPath: path };
Expand All @@ -1295,7 +1295,7 @@ <h3 id="inputs">

public async copy(paths: CopyFiles[]) {
try {
this.logger.log({ action: &#x27;copy&#x27;, params: { paths, bucket: this.config.bucket } });
this.logger.debug({ action: &#x27;copy&#x27;, params: { paths, bucket: this.config.bucket } });

const copyRequests &#x3D; paths.map(async (path) &#x3D;&gt; {
const req &#x3D; new CopyObjectCommand({
Expand All @@ -1319,7 +1319,7 @@ <h3 id="inputs">

public async delete(paths: string[]) {
try {
this.logger.log({ action: &#x27;delete&#x27;, params: { paths, bucket: this.config.bucket } });
this.logger.debug({ action: &#x27;delete&#x27;, params: { paths, bucket: this.config.bucket } });

const pathObjects &#x3D; paths.map((p) &#x3D;&gt; {
return { Key: p };
Expand All @@ -1339,7 +1339,7 @@ <h3 id="inputs">

public async list(params: ListFiles): Promise&lt;ObjectKeysRecursive&gt; {
try {
this.logger.log({ action: &#x27;list&#x27;, params });
this.logger.debug({ action: &#x27;list&#x27;, params });

const result &#x3D; await this.listObjectKeysRecursive(params);

Expand Down Expand Up @@ -1381,7 +1381,7 @@ <h3 id="inputs">

public async head(path: string): Promise&lt;HeadObjectCommandOutput&gt; {
try {
this.logger.log({ action: &#x27;head&#x27;, params: { path, bucket: this.config.bucket } });
this.logger.debug({ action: &#x27;head&#x27;, params: { path, bucket: this.config.bucket } });

const req &#x3D; new HeadObjectCommand({
Bucket: this.config.bucket,
Expand All @@ -1394,7 +1394,7 @@ <h3 id="inputs">
} catch (err) {
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
if (err.message &amp;&amp; err.message &#x3D;&#x3D;&#x3D; &#x27;NoSuchKey&#x27;) {
this.logger.log(&#x60;could not find the file for head with id ${path}&#x60;);
this.logger.warn(&#x60;could not find the file for head with id ${path}&#x60;);
throw new NotFoundException(null, ErrorUtils.createHttpExceptionOptions(err, &#x27;NoSuchKey&#x27;));
}
throw new InternalServerErrorException(null, ErrorUtils.createHttpExceptionOptions(err, &#x27;S3ClientAdapter:head&#x27;));
Expand All @@ -1403,7 +1403,7 @@ <h3 id="inputs">

public async deleteDirectory(path: string) {
try {
this.logger.log({ action: &#x27;deleteDirectory&#x27;, params: { path, bucket: this.config.bucket } });
this.logger.debug({ action: &#x27;deleteDirectory&#x27;, params: { path, bucket: this.config.bucket } });

const req &#x3D; new ListObjectsV2Command({
Bucket: this.config.bucket,
Expand Down
4 changes: 2 additions & 2 deletions js/search/search_index.js

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions modules/AuthorizationModule.html
Original file line number Diff line number Diff line change
Expand Up @@ -70,14 +70,14 @@
<title>cluster_AuthorizationModule_providers</title>
<polygon fill="none" stroke="black" points="264,-78 264,-130 3535,-130 3535,-78 264,-78"/>
</g>
<g id="clust3" class="cluster">
<title>cluster_AuthorizationModule_imports</title>
<polygon fill="none" stroke="black" points="16,-78 16,-130 256,-130 256,-78 16,-78"/>
</g>
<g id="clust4" class="cluster">
<title>cluster_AuthorizationModule_exports</title>
<polygon fill="none" stroke="black" points="1382,-208 1382,-260 1742,-260 1742,-208 1382,-208"/>
</g>
<g id="clust3" class="cluster">
<title>cluster_AuthorizationModule_imports</title>
<polygon fill="none" stroke="black" points="16,-78 16,-130 256,-130 256,-78 16,-78"/>
</g>
<!-- FeathersModule -->
<g id="node1" class="node">
<title>FeathersModule</title>
Expand Down
8 changes: 4 additions & 4 deletions modules/AuthorizationModule/dependencies.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit db59f1a

Please sign in to comment.