1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-19 17:53:39 +00:00

Rename files and folders per ADR #12 (#4106)

Renamed folders:
./apps/desktop/src/models/nativeMessaging
./apps/desktop/src/models/nativeMessaging/encryptedMessagePayloads
./apps/desktop/src/models/nativeMessaging/encryptedMessageResponses
Renamed all files
Cleaned up entries in whitelist-capital-letters.txt
This commit is contained in:
Daniel James Smith
2022-11-24 15:05:45 +01:00
committed by GitHub
parent 175eef5376
commit db2d8aaa7e
48 changed files with 109 additions and 145 deletions

View File

@@ -1,4 +1,4 @@
import { EncryptedCommand } from "./encryptedCommand";
import { EncryptedCommand } from "./encrypted-command";
export type DecryptedCommandData = {
command: EncryptedCommand;

View File

@@ -1,6 +1,6 @@
import { EncString } from "@bitwarden/common/models/domain/enc-string";
import { MessageCommon } from "./messageCommon";
import { MessageCommon } from "./message-common";
export type EncryptedMessageResponse = MessageCommon & {
encryptedPayload: EncString;

View File

@@ -0,0 +1,16 @@
import { AccountStatusResponse } from "./account-status-response";
import { CannotDecryptErrorResponse } from "./cannot-decrypt-error-response";
import { CipherResponse } from "./cipher-response";
import { FailureStatusResponse } from "./failure-status-response";
import { GenerateResponse } from "./generate-response";
import { SuccessStatusResponse } from "./success-status-response";
import { UserStatusErrorResponse } from "./user-status-error-response";
export type EncyptedMessageResponse =
| AccountStatusResponse[]
| CannotDecryptErrorResponse
| CipherResponse[]
| FailureStatusResponse
| GenerateResponse
| SuccessStatusResponse
| UserStatusErrorResponse;

View File

@@ -1,6 +1,6 @@
import { EncString } from "@bitwarden/common/models/domain/enc-string";
import { MessageCommon } from "./messageCommon";
import { MessageCommon } from "./message-common";
export type EncryptedMessage = MessageCommon & {
// Will decrypt to a DecryptedCommandData object

View File

@@ -0,0 +1,25 @@
export * from "./encrypted-message-payloads/credential-create-payload";
export * from "./encrypted-message-payloads/credential-retrieve-payload";
export * from "./encrypted-message-payloads/credential-update-payload";
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/failure-status-response";
export * from "./encrypted-message-responses/generate-response";
export * from "./encrypted-message-responses/success-status-response";
export * from "./encrypted-message-responses/user-status-error-response";
export * from "./decrypted-command-data";
export * from "./encrypted-command";
export * from "./encrypted-message";
export * from "./encrypted-message-response";
export * from "./legacy-message";
export * from "./legacy-message-wrapper";
export * from "./message";
export * from "./message-common";
export * from "./unencrypted-command";
export * from "./unencrypted-message";
export * from "./unencrypted-message-response";

View File

@@ -1,6 +1,6 @@
import { EncString } from "@bitwarden/common/models/domain/enc-string";
import { LegacyMessage } from "./legacyMessage";
import { LegacyMessage } from "./legacy-message";
export type LegacyMessageWrapper = {
message: LegacyMessage | EncString;

View File

@@ -0,0 +1,4 @@
import { EncryptedMessage } from "./encrypted-message";
import { UnencryptedMessage } from "./unencrypted-message";
export type Message = UnencryptedMessage | EncryptedMessage;

View File

@@ -1,4 +1,4 @@
import { MessageCommon } from "./messageCommon";
import { MessageCommon } from "./message-common";
export type UnencryptedMessageResponse = MessageCommon &
(

View File

@@ -1,5 +1,5 @@
import { MessageCommon } from "./messageCommon";
import { UnencryptedCommand } from "./unencryptedCommand";
import { MessageCommon } from "./message-common";
import { UnencryptedCommand } from "./unencrypted-command";
export type UnencryptedMessage = MessageCommon & {
command: UnencryptedCommand;

View File

@@ -1,16 +0,0 @@
import { AccountStatusResponse } from "./accountStatusResponse";
import { CannotDecryptErrorResponse } from "./cannotDecryptErrorResponse";
import { CipherResponse } from "./cipherResponse";
import { FailureStatusResponse } from "./failureStatusResponse";
import { GenerateResponse } from "./generateResponse";
import { SuccessStatusResponse } from "./successStatusResponse";
import { UserStatusErrorResponse } from "./userStatusErrorResponse";
export type EncyptedMessageResponse =
| AccountStatusResponse[]
| CannotDecryptErrorResponse
| CipherResponse[]
| FailureStatusResponse
| GenerateResponse
| SuccessStatusResponse
| UserStatusErrorResponse;

View File

@@ -1,25 +0,0 @@
export * from "./encryptedMessagePayloads/credentialCreatePayload";
export * from "./encryptedMessagePayloads/credentialRetrievePayload";
export * from "./encryptedMessagePayloads/credentialUpdatePayload";
export * from "./encryptedMessagePayloads/passwordGeneratePayload";
export * from "./encryptedMessageResponses/accountStatusResponse";
export * from "./encryptedMessageResponses/cannotDecryptErrorResponse";
export * from "./encryptedMessageResponses/cipherResponse";
export * from "./encryptedMessageResponses/encryptedMessageResponse";
export * from "./encryptedMessageResponses/failureStatusResponse";
export * from "./encryptedMessageResponses/generateResponse";
export * from "./encryptedMessageResponses/successStatusResponse";
export * from "./encryptedMessageResponses/userStatusErrorResponse";
export * from "./decryptedCommandData";
export * from "./encryptedCommand";
export * from "./encryptedMessage";
export * from "./encryptedMessageResponse";
export * from "./legacyMessage";
export * from "./legacyMessageWrapper";
export * from "./message";
export * from "./messageCommon";
export * from "./unencryptedCommand";
export * from "./unencryptedMessage";
export * from "./unencryptedMessageResponse";

View File

@@ -1,4 +0,0 @@
import { EncryptedMessage } from "./encryptedMessage";
import { UnencryptedMessage } from "./unencryptedMessage";
export type Message = UnencryptedMessage | EncryptedMessage;