1
0
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:
Kyle Spearrin
2018-01-20 14:12:18 -05:00
parent e753becd33
commit e157d5be6d
41 changed files with 41 additions and 164 deletions

View File

@@ -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;

View File

@@ -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;

View File

@@ -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;

View File

@@ -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;

View File

@@ -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;

View File

@@ -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;

View File

@@ -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;

View File

@@ -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;

View File

@@ -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;

View File

@@ -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;

View File

@@ -1,10 +1,7 @@
class ListResponse {
export class ListResponse {
data: any;
constructor(data: any) {
this.data = data;
}
}
export { ListResponse };
(window as any).ListResponse = ListResponse;

View File

@@ -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;

View File

@@ -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;

View File

@@ -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;