Browse Source
* PS-2390 - Passing folder and collection id on import Reading groupingid from lastpass csv as collection or folder id * PS-2390 - Added toDomain and toModel on FolderWithIdExport model and created CollectionWithIdExport model * PS-2390 - renamed groupingid into bwcollectionid on lastpass importer * PS-2390 - Updated collection/folder-with-id export to reuse parent toDomain and toView * PS-2390 Undo the lastpass importer groupingId rename * PS-2390 Undo lastpass importer changes * PS-2390 - Removed externalId set. Cleaning collection-with-id-request to user parent properties * Lint prettierpull/5173/head
8 changed files with 43 additions and 14 deletions
@ -0,0 +1,14 @@
@@ -0,0 +1,14 @@
|
||||
import { Collection } from "../domain/collection"; |
||||
import { CollectionRequest } from "../request/collection.request"; |
||||
|
||||
export class CollectionWithIdRequest extends CollectionRequest { |
||||
id: string; |
||||
|
||||
constructor(collection?: Collection) { |
||||
if (collection == null) { |
||||
return; |
||||
} |
||||
super(collection); |
||||
this.id = collection.id; |
||||
} |
||||
} |
||||
@ -1,10 +1,10 @@
@@ -1,10 +1,10 @@
|
||||
import { CipherRequest } from "../../vault/models/request/cipher.request"; |
||||
import { FolderRequest } from "../../vault/models/request/folder.request"; |
||||
import { FolderWithIdRequest } from "../../vault/models/request/folder-with-id.request"; |
||||
|
||||
import { KvpRequest } from "./kvp.request"; |
||||
|
||||
export class ImportCiphersRequest { |
||||
ciphers: CipherRequest[] = []; |
||||
folders: FolderRequest[] = []; |
||||
folders: FolderWithIdRequest[] = []; |
||||
folderRelationships: KvpRequest<number, number>[] = []; |
||||
} |
||||
|
||||
@ -1,10 +1,10 @@
@@ -1,10 +1,10 @@
|
||||
import { CollectionRequest } from "../../admin-console/models/request/collection.request"; |
||||
import { CollectionWithIdRequest } from "../../admin-console/models/request/collection-with-id.request"; |
||||
import { CipherRequest } from "../../vault/models/request/cipher.request"; |
||||
|
||||
import { KvpRequest } from "./kvp.request"; |
||||
|
||||
export class ImportOrganizationCiphersRequest { |
||||
ciphers: CipherRequest[] = []; |
||||
collections: CollectionRequest[] = []; |
||||
collections: CollectionWithIdRequest[] = []; |
||||
collectionRelationships: KvpRequest<number, number>[] = []; |
||||
} |
||||
|
||||
Loading…
Reference in new issue