Rename duplicate model more appropriately (#5288)

This commit is contained in:
Robyn MacCallum 2023-04-26 05:38:20 -04:00 committed by GitHub
parent 395d3c7034
commit ab25c69cdf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 6 deletions

View File

@ -6,7 +6,7 @@ import { GenerateResponse } from "./generate-response";
import { SuccessStatusResponse } from "./success-status-response";
import { UserStatusErrorResponse } from "./user-status-error-response";
export type EncyptedMessageResponse =
export type MessageResponseData =
| AccountStatusResponse[]
| CannotDecryptErrorResponse
| CipherResponse[]

View File

@ -6,7 +6,7 @@ export * from "./encrypted-message-payloads/password-generate-payload";
export * from "./encrypted-message-responses/account-status-response";
export * from "./encrypted-message-responses/cannot-decrypt-error-response";
export * from "./encrypted-message-responses/cipher-response";
export * from "./encrypted-message-responses/encrypted-message-response";
export * from "./encrypted-message-responses/message-response-data";
export * from "./encrypted-message-responses/failure-status-response";
export * from "./encrypted-message-responses/generate-response";
export * from "./encrypted-message-responses/success-status-response";

View File

@ -19,9 +19,9 @@ import { CredentialUpdatePayload } from "../models/native-messaging/encrypted-me
import { PasswordGeneratePayload } from "../models/native-messaging/encrypted-message-payloads/password-generate-payload";
import { AccountStatusResponse } from "../models/native-messaging/encrypted-message-responses/account-status-response";
import { CipherResponse } from "../models/native-messaging/encrypted-message-responses/cipher-response";
import { EncyptedMessageResponse } from "../models/native-messaging/encrypted-message-responses/encrypted-message-response";
import { FailureStatusResponse } from "../models/native-messaging/encrypted-message-responses/failure-status-response";
import { GenerateResponse } from "../models/native-messaging/encrypted-message-responses/generate-response";
import { MessageResponseData } from "../models/native-messaging/encrypted-message-responses/message-response-data";
import { SuccessStatusResponse } from "../models/native-messaging/encrypted-message-responses/success-status-response";
import { UserStatusErrorResponse } from "../models/native-messaging/encrypted-message-responses/user-status-error-response";
@ -37,9 +37,7 @@ export class EncryptedMessageHandlerService {
private passwordGenerationService: PasswordGenerationServiceAbstraction
) {}
async responseDataForCommand(
commandData: DecryptedCommandData
): Promise<EncyptedMessageResponse> {
async responseDataForCommand(commandData: DecryptedCommandData): Promise<MessageResponseData> {
const { command, payload } = commandData;
switch (command) {
case "bw-status": {