Skip to content

Commit

Permalink
fixup! feat(ocs): add OCS extractor and workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
miaulalala committed Aug 5, 2024
1 parent ce367ca commit e00c7d7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/Controller/MessageApiController.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public function __construct(
* @param array $cc An optional array of 'CC' recipients in the format ['label' => 'Name', 'email' => 'Email Address'] or ['email' => 'Email Address']
* @param array $bcc An optional array of 'BCC' recipients in the format ['label' => 'Name', 'email' => 'Email Address'] or ['email' => 'Email Address']
* @param ?string $references An optional string of an RFC2392 <message-id> to set the "Reply-To" and "References" header on sending
* @return DataResponse<Http::STATUS_OK|Http::STATUS_ACCEPTED|Http::STATUS_BAD_REQUEST|Http::STATUS_FORBIDDEN|Http::STATUS_NOT_FOUND|Http::STATUS_INTERNAL_SERVER_ERROR, string, array>
* @return DataResponse<Http::STATUS_OK|Http::STATUS_ACCEPTED|Http::STATUS_BAD_REQUEST|Http::STATUS_FORBIDDEN|Http::STATUS_NOT_FOUND|Http::STATUS_INTERNAL_SERVER_ERROR, string, array<emtpy>>

Check failure on line 84 in lib/Controller/MessageApiController.php

View workflow job for this annotation

GitHub Actions / static-psalm-analysis dev-master

InvalidTemplateParam

lib/Controller/MessageApiController.php:84:13: InvalidTemplateParam: Extended template param H of OCP\AppFramework\Http\DataResponse<200|202|400|403|404|500, string, array<array-key, OCA\Mail\Controller\emtpy>> expects type array<string, mixed>, type array<array-key, OCA\Mail\Controller\emtpy> given (see https://psalm.dev/183)

Check failure on line 84 in lib/Controller/MessageApiController.php

View workflow job for this annotation

GitHub Actions / static-psalm-analysis dev-master

UndefinedDocblockClass

lib/Controller/MessageApiController.php:84:13: UndefinedDocblockClass: Docblock-defined class, interface or enum named OCA\Mail\Controller\emtpy does not exist (see https://psalm.dev/200)
*
* 200: The email was sent
* 202: The email was sent but could not be copied to the 'Sent' mailbox
Expand Down Expand Up @@ -208,7 +208,7 @@ public function send(

/**
* @param int $id
* @return DataResponse<Http::STATUS_OK|Http::STATUS_PARTIAL_CONTENT, MailMessageApiResponse, array>|DataResponse<Http::STATUS_NOT_FOUND|Http::STATUS_INTERNAL_SERVER_ERROR, string, array>
* @return DataResponse<Http::STATUS_OK|Http::STATUS_PARTIAL_CONTENT, MailMessageApiResponse, array<emtpy>>|DataResponse<Http::STATUS_NOT_FOUND|Http::STATUS_INTERNAL_SERVER_ERROR, string, array<emtpy>>

Check failure on line 211 in lib/Controller/MessageApiController.php

View workflow job for this annotation

GitHub Actions / static-psalm-analysis dev-master

InvalidTemplateParam

lib/Controller/MessageApiController.php:211:13: InvalidTemplateParam: Extended template param H of OCP\AppFramework\Http\DataResponse<200|206, array{attachments: list<array{cid: null|string, disposition: string, downloadUrl?: string, filename: string, id: int<1, max>, messageId: int<1, max>, mime: string, size: int<0, max>}>, bcc: list<array{email: string, label: string}>, body?: string, cc: list<array{email: string, label: string}>, dateInt: int<0, max>, dispositionNotificationTo: string, dkimValid?: bool, flags: array{answered: bool, deleted: bool, draft: bool, flagged: bool, forwarded: bool, hasAttachments: bool, important: bool, mdnsent: bool, seen: bool}, from: list<array{email: string, label: string}>, hasDkimSignature: bool, hasHtmlBody?: bool, id: int<1, max>, isOneClickUnsubscribe: bool, isSenderTrusted: bool, itineraries?: array<string, mixed>, messageId: string, phishingDetails: array{checks: list<array{additionalData: array<array-key, mixed>, isPhishing: bool, message: string, type: string}>, warning: bool}, rawUrl: string, replyTo: list<array{email: string, label: string}>, scheduling: list<array{contents: string, id: null|string, messageId: string, method: string}>, signature: null|string, smime: array{isEncrypted: bool, isSigned: bool, signatureIsValid: bool|null}, subject: string, to: list<array{email: string, label: string}>, uid: int<0, max>, unsubscribeMailTo: null|string, unsubscribeUrl: null|string}, array<array-key, OCA\Mail\Controller\emtpy>> expects type array<string, mixed>, type array<array-key, OCA\Mail\Controller\emtpy> given (see https://psalm.dev/183)

Check failure on line 211 in lib/Controller/MessageApiController.php

View workflow job for this annotation

GitHub Actions / static-psalm-analysis dev-master

UndefinedDocblockClass

lib/Controller/MessageApiController.php:211:13: UndefinedDocblockClass: Docblock-defined class, interface or enum named OCA\Mail\Controller\emtpy does not exist (see https://psalm.dev/200)

Check failure on line 211 in lib/Controller/MessageApiController.php

View workflow job for this annotation

GitHub Actions / static-psalm-analysis dev-master

InvalidTemplateParam

lib/Controller/MessageApiController.php:211:13: InvalidTemplateParam: Extended template param H of OCP\AppFramework\Http\DataResponse<404|500, string, array<array-key, OCA\Mail\Controller\emtpy>> expects type array<string, mixed>, type array<array-key, OCA\Mail\Controller\emtpy> given (see https://psalm.dev/183)
*
* 200: Message found
* 206: Message could not be decrypted, no "body" data returned
Expand Down Expand Up @@ -297,7 +297,7 @@ public function get(int $id): DataResponse {

/**
* @param int $id the id of the message
* @return DataResponse<Http::STATUS_OK|?string, array>|DataResponse<Http::STATUS_NOT_FOUND, string, array>
* @return DataResponse<Http::STATUS_OK|?string, array<emtpy>>|DataResponse<Http::STATUS_NOT_FOUND, string, array<emtpy>>

Check failure on line 300 in lib/Controller/MessageApiController.php

View workflow job for this annotation

GitHub Actions / static-psalm-analysis dev-master

InvalidTemplateParam

lib/Controller/MessageApiController.php:300:13: InvalidTemplateParam: Extended template param H of OCP\AppFramework\Http\DataResponse<200, null|string, array<array-key, OCA\Mail\Controller\emtpy>> expects type array<string, mixed>, type array<array-key, OCA\Mail\Controller\emtpy> given (see https://psalm.dev/183)

Check failure on line 300 in lib/Controller/MessageApiController.php

View workflow job for this annotation

GitHub Actions / static-psalm-analysis dev-master

UndefinedDocblockClass

lib/Controller/MessageApiController.php:300:13: UndefinedDocblockClass: Docblock-defined class, interface or enum named OCA\Mail\Controller\emtpy does not exist (see https://psalm.dev/200)

Check failure on line 300 in lib/Controller/MessageApiController.php

View workflow job for this annotation

GitHub Actions / static-psalm-analysis dev-master

InvalidTemplateParam

lib/Controller/MessageApiController.php:300:13: InvalidTemplateParam: Extended template param H of OCP\AppFramework\Http\DataResponse<404, string, array<array-key, OCA\Mail\Controller\emtpy>> expects type array<string, mixed>, type array<array-key, OCA\Mail\Controller\emtpy> given (see https://psalm.dev/183)
*
* 200: Message found
* 404: User was not logged in
Expand Down Expand Up @@ -358,7 +358,7 @@ private function enrichDownloadUrl(int $id, array $attachment): array {
/**
* @param int $id
* @param string $attachmentId
* @return DataResponse<Http::STATUS_OK, MailMessageApiAttachment, array>|DataResponse<Http::STATUS_NOT_FOUND|Http::STATUS_INTERNAL_SERVER_ERROR, string, array>
* @return DataResponse<Http::STATUS_OK, MailMessageApiAttachment, array<emtpy>>|DataResponse<Http::STATUS_NOT_FOUND|Http::STATUS_INTERNAL_SERVER_ERROR, string, array<emtpy>>

Check failure on line 361 in lib/Controller/MessageApiController.php

View workflow job for this annotation

GitHub Actions / static-psalm-analysis dev-master

InvalidTemplateParam

lib/Controller/MessageApiController.php:361:13: InvalidTemplateParam: Extended template param H of OCP\AppFramework\Http\DataResponse<200, array{content: string, mime: string, name: string, size: int<0, max>}, array<array-key, OCA\Mail\Controller\emtpy>> expects type array<string, mixed>, type array<array-key, OCA\Mail\Controller\emtpy> given (see https://psalm.dev/183)

Check failure on line 361 in lib/Controller/MessageApiController.php

View workflow job for this annotation

GitHub Actions / static-psalm-analysis dev-master

UndefinedDocblockClass

lib/Controller/MessageApiController.php:361:13: UndefinedDocblockClass: Docblock-defined class, interface or enum named OCA\Mail\Controller\emtpy does not exist (see https://psalm.dev/200)
*
* 200: Message found
* 404: User was not logged in
Expand Down

0 comments on commit e00c7d7

Please sign in to comment.