1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-16 16:23:44 +00:00

apis for groups and collections

This commit is contained in:
Kyle Spearrin
2018-07-06 12:40:43 -04:00
parent 4ae4b667ff
commit 2a526940fd
12 changed files with 198 additions and 9 deletions

View File

@@ -1,5 +1,5 @@
import { CipherResponse } from './cipherResponse';
import { CollectionResponse } from './collectionResponse';
import { CollectionDetailsResponse } from './collectionResponse';
import { DomainsResponse } from './domainsResponse';
import { FolderResponse } from './folderResponse';
import { ProfileResponse } from './profileResponse';
@@ -7,7 +7,7 @@ import { ProfileResponse } from './profileResponse';
export class SyncResponse {
profile?: ProfileResponse;
folders: FolderResponse[] = [];
collections: CollectionResponse[] = [];
collections: CollectionDetailsResponse[] = [];
ciphers: CipherResponse[] = [];
domains?: DomainsResponse;
@@ -24,7 +24,7 @@ export class SyncResponse {
if (response.Collections) {
response.Collections.forEach((collection: any) => {
this.collections.push(new CollectionResponse(collection));
this.collections.push(new CollectionDetailsResponse(collection));
});
}