mirror of
https://github.com/bitwarden/browser.git
synced 2024-12-21 16:18:28 +01:00
Rename duplicate model more appropriately (#5288)
This commit is contained in:
parent
395d3c7034
commit
ab25c69cdf
@ -6,7 +6,7 @@ import { GenerateResponse } from "./generate-response";
|
|||||||
import { SuccessStatusResponse } from "./success-status-response";
|
import { SuccessStatusResponse } from "./success-status-response";
|
||||||
import { UserStatusErrorResponse } from "./user-status-error-response";
|
import { UserStatusErrorResponse } from "./user-status-error-response";
|
||||||
|
|
||||||
export type EncyptedMessageResponse =
|
export type MessageResponseData =
|
||||||
| AccountStatusResponse[]
|
| AccountStatusResponse[]
|
||||||
| CannotDecryptErrorResponse
|
| CannotDecryptErrorResponse
|
||||||
| CipherResponse[]
|
| CipherResponse[]
|
@ -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/account-status-response";
|
||||||
export * from "./encrypted-message-responses/cannot-decrypt-error-response";
|
export * from "./encrypted-message-responses/cannot-decrypt-error-response";
|
||||||
export * from "./encrypted-message-responses/cipher-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/failure-status-response";
|
||||||
export * from "./encrypted-message-responses/generate-response";
|
export * from "./encrypted-message-responses/generate-response";
|
||||||
export * from "./encrypted-message-responses/success-status-response";
|
export * from "./encrypted-message-responses/success-status-response";
|
||||||
|
@ -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 { PasswordGeneratePayload } from "../models/native-messaging/encrypted-message-payloads/password-generate-payload";
|
||||||
import { AccountStatusResponse } from "../models/native-messaging/encrypted-message-responses/account-status-response";
|
import { AccountStatusResponse } from "../models/native-messaging/encrypted-message-responses/account-status-response";
|
||||||
import { CipherResponse } from "../models/native-messaging/encrypted-message-responses/cipher-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 { FailureStatusResponse } from "../models/native-messaging/encrypted-message-responses/failure-status-response";
|
||||||
import { GenerateResponse } from "../models/native-messaging/encrypted-message-responses/generate-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 { SuccessStatusResponse } from "../models/native-messaging/encrypted-message-responses/success-status-response";
|
||||||
import { UserStatusErrorResponse } from "../models/native-messaging/encrypted-message-responses/user-status-error-response";
|
import { UserStatusErrorResponse } from "../models/native-messaging/encrypted-message-responses/user-status-error-response";
|
||||||
|
|
||||||
@ -37,9 +37,7 @@ export class EncryptedMessageHandlerService {
|
|||||||
private passwordGenerationService: PasswordGenerationServiceAbstraction
|
private passwordGenerationService: PasswordGenerationServiceAbstraction
|
||||||
) {}
|
) {}
|
||||||
|
|
||||||
async responseDataForCommand(
|
async responseDataForCommand(commandData: DecryptedCommandData): Promise<MessageResponseData> {
|
||||||
commandData: DecryptedCommandData
|
|
||||||
): Promise<EncyptedMessageResponse> {
|
|
||||||
const { command, payload } = commandData;
|
const { command, payload } = commandData;
|
||||||
switch (command) {
|
switch (command) {
|
||||||
case "bw-status": {
|
case "bw-status": {
|
||||||
|
Loading…
Reference in New Issue
Block a user