mirror of
https://github.com/bitwarden/browser
synced 2025-12-17 08:43:33 +00:00
remove model window assignments
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
class AttachmentResponse {
|
||||
export class AttachmentResponse {
|
||||
id: string;
|
||||
url: string;
|
||||
fileName: string;
|
||||
@@ -13,6 +13,3 @@ class AttachmentResponse {
|
||||
this.sizeName = response.SizeName;
|
||||
}
|
||||
}
|
||||
|
||||
export { AttachmentResponse };
|
||||
(window as any).AttachmentResponse = AttachmentResponse;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { AttachmentResponse } from './attachmentResponse';
|
||||
|
||||
class CipherResponse {
|
||||
export class CipherResponse {
|
||||
id: string;
|
||||
organizationId: string;
|
||||
folderId: string;
|
||||
@@ -39,6 +39,3 @@ class CipherResponse {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
export { CipherResponse };
|
||||
(window as any).CipherResponse = CipherResponse;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
class CollectionResponse {
|
||||
export class CollectionResponse {
|
||||
id: string;
|
||||
organizationId: string;
|
||||
name: string;
|
||||
@@ -9,6 +9,3 @@ class CollectionResponse {
|
||||
this.name = response.Name;
|
||||
}
|
||||
}
|
||||
|
||||
export { CollectionResponse };
|
||||
(window as any).CollectionResponse = CollectionResponse;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { DeviceType } from '../../enums/deviceType';
|
||||
|
||||
class DeviceResponse {
|
||||
export class DeviceResponse {
|
||||
id: string;
|
||||
name: number;
|
||||
identifier: string;
|
||||
@@ -15,6 +15,3 @@ class DeviceResponse {
|
||||
this.creationDate = response.CreationDate;
|
||||
}
|
||||
}
|
||||
|
||||
export { DeviceResponse };
|
||||
(window as any).DeviceResponse = DeviceResponse;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { GlobalDomainResponse } from './globalDomainResponse';
|
||||
|
||||
class DomainsResponse {
|
||||
export class DomainsResponse {
|
||||
equivalentDomains: string[][];
|
||||
globalEquivalentDomains: GlobalDomainResponse[] = [];
|
||||
|
||||
@@ -15,6 +15,3 @@ class DomainsResponse {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
export { DomainsResponse };
|
||||
(window as any).DomainsResponse = DomainsResponse;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
class ErrorResponse {
|
||||
export class ErrorResponse {
|
||||
message: string;
|
||||
validationErrors: { [key: string]: string[]; };
|
||||
statusCode: number;
|
||||
@@ -32,6 +32,3 @@ class ErrorResponse {
|
||||
return this.message;
|
||||
}
|
||||
}
|
||||
|
||||
export { ErrorResponse };
|
||||
(window as any).ErrorResponse = ErrorResponse;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
class FolderResponse {
|
||||
export class FolderResponse {
|
||||
id: string;
|
||||
name: string;
|
||||
revisionDate: string;
|
||||
@@ -9,6 +9,3 @@ class FolderResponse {
|
||||
this.revisionDate = response.RevisionDate;
|
||||
}
|
||||
}
|
||||
|
||||
export { FolderResponse };
|
||||
(window as any).FolderResponse = FolderResponse;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
class GlobalDomainResponse {
|
||||
export class GlobalDomainResponse {
|
||||
type: number;
|
||||
domains: string[];
|
||||
excluded: number[];
|
||||
@@ -9,6 +9,3 @@ class GlobalDomainResponse {
|
||||
this.excluded = response.Excluded;
|
||||
}
|
||||
}
|
||||
|
||||
export { GlobalDomainResponse };
|
||||
(window as any).GlobalDomainResponse = GlobalDomainResponse;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
class IdentityTokenResponse {
|
||||
export class IdentityTokenResponse {
|
||||
accessToken: string;
|
||||
expiresIn: number;
|
||||
refreshToken: string;
|
||||
@@ -19,6 +19,3 @@ class IdentityTokenResponse {
|
||||
this.twoFactorToken = response.TwoFactorToken;
|
||||
}
|
||||
}
|
||||
|
||||
export { IdentityTokenResponse };
|
||||
(window as any).IdentityTokenResponse = IdentityTokenResponse;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
class KeysResponse {
|
||||
export class KeysResponse {
|
||||
privateKey: string;
|
||||
publicKey: string;
|
||||
|
||||
@@ -7,6 +7,3 @@ class KeysResponse {
|
||||
this.publicKey = response.PublicKey;
|
||||
}
|
||||
}
|
||||
|
||||
export { KeysResponse };
|
||||
(window as any).KeysResponse = KeysResponse;
|
||||
|
||||
@@ -1,10 +1,7 @@
|
||||
class ListResponse {
|
||||
export class ListResponse {
|
||||
data: any;
|
||||
|
||||
constructor(data: any) {
|
||||
this.data = data;
|
||||
}
|
||||
}
|
||||
|
||||
export { ListResponse };
|
||||
(window as any).ListResponse = ListResponse;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
class ProfileOrganizationResponse {
|
||||
export class ProfileOrganizationResponse {
|
||||
id: string;
|
||||
name: string;
|
||||
useGroups: boolean;
|
||||
@@ -25,6 +25,3 @@ class ProfileOrganizationResponse {
|
||||
this.type = response.Type;
|
||||
}
|
||||
}
|
||||
|
||||
export { ProfileOrganizationResponse };
|
||||
(window as any).ProfileOrganizationResponse = ProfileOrganizationResponse;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { ProfileOrganizationResponse } from './profileOrganizationResponse';
|
||||
|
||||
class ProfileResponse {
|
||||
export class ProfileResponse {
|
||||
id: string;
|
||||
name: string;
|
||||
email: string;
|
||||
@@ -34,6 +34,3 @@ class ProfileResponse {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
export { ProfileResponse };
|
||||
(window as any).ProfileResponse = ProfileResponse;
|
||||
|
||||
@@ -4,7 +4,7 @@ import { DomainsResponse } from './domainsResponse';
|
||||
import { FolderResponse } from './folderResponse';
|
||||
import { ProfileResponse } from './profileResponse';
|
||||
|
||||
class SyncResponse {
|
||||
export class SyncResponse {
|
||||
profile?: ProfileResponse;
|
||||
folders: FolderResponse[] = [];
|
||||
collections: CollectionResponse[] = [];
|
||||
@@ -39,6 +39,3 @@ class SyncResponse {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
export { SyncResponse };
|
||||
(window as any).SyncResponse = SyncResponse;
|
||||
|
||||
Reference in New Issue
Block a user