mirror of
https://github.com/bitwarden/browser
synced 2025-12-17 16:53:34 +00:00
@@ -1,4 +1,4 @@
|
||||
import { AttachmentResponse } from '../response';
|
||||
import { AttachmentResponse } from '../response/attachmentResponse';
|
||||
|
||||
export class AttachmentData {
|
||||
id: string;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { CipherType } from '../../enums';
|
||||
import { CipherType } from '../../enums/cipherType';
|
||||
|
||||
import { AttachmentData } from './attachmentData';
|
||||
import { CardData } from './cardData';
|
||||
@@ -7,7 +7,7 @@ import { IdentityData } from './identityData';
|
||||
import { LoginData } from './loginData';
|
||||
import { SecureNoteData } from './secureNoteData';
|
||||
|
||||
import { CipherResponse } from '../response';
|
||||
import { CipherResponse } from '../response/cipherResponse';
|
||||
|
||||
export class CipherData {
|
||||
id: string;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { CollectionResponse } from '../response';
|
||||
import { CollectionResponse } from '../response/collectionResponse';
|
||||
|
||||
export class CollectionData {
|
||||
id: string;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { FieldType } from '../../enums';
|
||||
import { FieldType } from '../../enums/fieldType';
|
||||
|
||||
export class FieldData {
|
||||
type: FieldType;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { FolderResponse } from '../response';
|
||||
import { FolderResponse } from '../response/folderResponse';
|
||||
|
||||
export class FolderData {
|
||||
id: string;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { SecureNoteType } from '../../enums';
|
||||
import { SecureNoteType } from '../../enums/secureNoteType';
|
||||
|
||||
export class SecureNoteData {
|
||||
type: SecureNoteType;
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import { AttachmentData } from '../data';
|
||||
import { AttachmentData } from '../data/attachmentData';
|
||||
|
||||
import { CipherString } from './cipherString';
|
||||
import Domain from './domain';
|
||||
|
||||
import { AttachmentView } from '../view';
|
||||
import { AttachmentView } from '../view/attachmentView';
|
||||
|
||||
export class Attachment extends Domain {
|
||||
id: string;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { TwoFactorProviderType } from '../../enums';
|
||||
import { TwoFactorProviderType } from '../../enums/twoFactorProviderType';
|
||||
|
||||
export class AuthResult {
|
||||
twoFactor: boolean = false;
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import { CardData } from '../data';
|
||||
import { CardData } from '../data/cardData';
|
||||
|
||||
import { CipherString } from './cipherString';
|
||||
import Domain from './domain';
|
||||
|
||||
import { CardView } from '../view';
|
||||
import { CardView } from '../view/cardView';
|
||||
|
||||
export class Card extends Domain {
|
||||
cardholderName: CipherString;
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import { CipherType } from '../../enums';
|
||||
import { CipherType } from '../../enums/cipherType';
|
||||
|
||||
import { CipherData } from '../data';
|
||||
import { CipherData } from '../data/cipherData';
|
||||
|
||||
import { CipherView } from '../view';
|
||||
import { CipherView } from '../view/cipherView';
|
||||
|
||||
import { Attachment } from './attachment';
|
||||
import { Card } from './card';
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { EncryptionType } from '../../enums';
|
||||
import { EncryptionType } from '../../enums/encryptionType';
|
||||
|
||||
import { CryptoService } from '../../abstractions';
|
||||
import { CryptoService } from '../../abstractions/crypto.service';
|
||||
|
||||
export class CipherString {
|
||||
encryptedString?: string;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { CollectionData } from '../data';
|
||||
import { CollectionData } from '../data/collectionData';
|
||||
|
||||
import { CollectionView } from '../view';
|
||||
import { CollectionView } from '../view/collectionView';
|
||||
|
||||
import { CipherString } from './cipherString';
|
||||
import Domain from './domain';
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { CipherString } from './cipherString';
|
||||
import { CipherString } from '../domain/cipherString';
|
||||
|
||||
import { View } from '../view';
|
||||
import { View } from '../view/view';
|
||||
|
||||
export default abstract class Domain {
|
||||
protected buildDomainModel<D extends Domain>(domain: D, dataObj: any, map: any,
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import { FieldType } from '../../enums';
|
||||
import { FieldType } from '../../enums/fieldType';
|
||||
|
||||
import { FieldData } from '../data';
|
||||
import { FieldData } from '../data/fieldData';
|
||||
|
||||
import { CipherString } from './cipherString';
|
||||
import Domain from './domain';
|
||||
|
||||
import { FieldView } from '../view';
|
||||
import { FieldView } from '../view/fieldView';
|
||||
|
||||
export class Field extends Domain {
|
||||
name: CipherString;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { FolderData } from '../data';
|
||||
import { FolderData } from '../data/folderData';
|
||||
|
||||
import { FolderView } from '../view';
|
||||
import { FolderView } from '../view/folderView';
|
||||
|
||||
import { CipherString } from './cipherString';
|
||||
import Domain from './domain';
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import { IdentityData } from '../data';
|
||||
import { IdentityData } from '../data/identityData';
|
||||
|
||||
import { CipherString } from './cipherString';
|
||||
import Domain from './domain';
|
||||
|
||||
import { IdentityView } from '../view';
|
||||
import { IdentityView } from '../view/identityView';
|
||||
|
||||
export class Identity extends Domain {
|
||||
title: CipherString;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { LoginData } from '../data';
|
||||
import { LoginData } from '../data/loginData';
|
||||
|
||||
import { LoginView } from '../view';
|
||||
import { LoginView } from '../view/loginView';
|
||||
|
||||
import { CipherString } from './cipherString';
|
||||
import Domain from './domain';
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
import { SecureNoteType } from '../../enums';
|
||||
import { SecureNoteType } from '../../enums/secureNoteType';
|
||||
|
||||
import { SecureNoteData } from '../data';
|
||||
import { SecureNoteData } from '../data/secureNoteData';
|
||||
|
||||
import Domain from './domain';
|
||||
|
||||
import { SecureNoteView } from '../view';
|
||||
import { SecureNoteView } from '../view/secureNoteView';
|
||||
|
||||
export class SecureNote extends Domain {
|
||||
type: SecureNoteType;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import * as forge from 'node-forge';
|
||||
|
||||
import { EncryptionType } from '../../enums';
|
||||
import { EncryptionType } from '../../enums/encryptionType';
|
||||
|
||||
import { SymmetricCryptoKeyBuffers } from './symmetricCryptoKeyBuffers';
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { CipherType } from '../../enums';
|
||||
import { CipherType } from '../../enums/cipherType';
|
||||
|
||||
export class CipherRequest {
|
||||
type: CipherType;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { DeviceType } from '../../enums';
|
||||
import { DeviceType } from '../../enums/deviceType';
|
||||
|
||||
import { PlatformUtilsService } from '../../abstractions';
|
||||
import { PlatformUtilsService } from '../../abstractions/platformUtils.service';
|
||||
|
||||
export class DeviceRequest {
|
||||
type: DeviceType;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Folder } from '../domain';
|
||||
import { Folder } from '../domain/folder';
|
||||
|
||||
export class FolderRequest {
|
||||
name: string;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { DeviceType } from '../../enums';
|
||||
import { DeviceType } from '../../enums/deviceType';
|
||||
|
||||
export class DeviceResponse {
|
||||
id: string;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { TwoFactorProviderType } from '../../enums';
|
||||
import { TwoFactorProviderType } from '../../enums/twoFactorProviderType';
|
||||
|
||||
export class IdentityTwoFactorResponse {
|
||||
twoFactorProviders: TwoFactorProviderType[];
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { View } from './view';
|
||||
|
||||
import { Attachment } from '../domain';
|
||||
import { Attachment } from '../domain/attachment';
|
||||
|
||||
export class AttachmentView implements View {
|
||||
id: string;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { View } from './view';
|
||||
|
||||
import { Card } from '../domain';
|
||||
import { Card } from '../domain/card';
|
||||
|
||||
export class CardView implements View {
|
||||
cardholderName: string;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { CipherType } from '../../enums';
|
||||
import { CipherType } from '../../enums/cipherType';
|
||||
|
||||
import { Cipher } from '../domain';
|
||||
import { Cipher } from '../domain/cipher';
|
||||
|
||||
import { AttachmentView } from './attachmentView';
|
||||
import { CardView } from './cardView';
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { View } from './view';
|
||||
|
||||
import { Collection } from '../domain';
|
||||
import { Collection } from '../domain/collection';
|
||||
|
||||
export class CollectionView implements View {
|
||||
id: string;
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import { FieldType } from '../../enums';
|
||||
import { FieldType } from '../../enums/fieldType';
|
||||
|
||||
import { View } from './view';
|
||||
|
||||
import { Field } from '../domain';
|
||||
import { Field } from '../domain/field';
|
||||
|
||||
export class FieldView implements View {
|
||||
name: string;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { View } from './view';
|
||||
|
||||
import { Folder } from '../domain';
|
||||
import { Folder } from '../domain/folder';
|
||||
|
||||
export class FolderView implements View {
|
||||
id: string = null;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { View } from './view';
|
||||
|
||||
import { Identity } from '../domain';
|
||||
import { Identity } from '../domain/identity';
|
||||
|
||||
export class IdentityView implements View {
|
||||
title: string = null;
|
||||
|
||||
@@ -1,9 +1,7 @@
|
||||
export { AttachmentView } from './attachmentView';
|
||||
export { CardView } from './cardView';
|
||||
export { CipherView } from './cipherView';
|
||||
export { CollectionView } from './collectionView';
|
||||
export { FieldView } from './fieldView';
|
||||
export { FolderView } from './folderView';
|
||||
export { IdentityView } from './identityView';
|
||||
export { LoginView } from './loginView';
|
||||
export { SecureNoteView } from './secureNoteView';
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import { View } from './view';
|
||||
|
||||
import { Login } from '../domain';
|
||||
import { Login } from '../domain/login';
|
||||
|
||||
import { PlatformUtilsService } from '../../abstractions';
|
||||
import { PlatformUtilsService } from '../../abstractions/platformUtils.service';
|
||||
|
||||
export class LoginView implements View {
|
||||
username: string;
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import { SecureNoteType } from '../../enums';
|
||||
import { SecureNoteType } from '../../enums/secureNoteType';
|
||||
|
||||
import { View } from './view';
|
||||
|
||||
import { SecureNote } from '../domain';
|
||||
import { SecureNote } from '../domain/secureNote';
|
||||
|
||||
export class SecureNoteView implements View {
|
||||
type: SecureNoteType;
|
||||
|
||||
Reference in New Issue
Block a user