other types param now typed with CipherType
This commit is contained in:
parent
20389402fc
commit
dc0befc9be
|
@ -1,3 +1,5 @@
|
||||||
|
import { CipherType } from '../enums/cipherType';
|
||||||
|
|
||||||
import { CipherData } from '../models/data/cipherData';
|
import { CipherData } from '../models/data/cipherData';
|
||||||
|
|
||||||
import { Cipher } from '../models/domain/cipher';
|
import { Cipher } from '../models/domain/cipher';
|
||||||
|
@ -18,7 +20,7 @@ export abstract class CipherService {
|
||||||
getAll: () => Promise<Cipher[]>;
|
getAll: () => Promise<Cipher[]>;
|
||||||
getAllDecrypted: () => Promise<CipherView[]>;
|
getAllDecrypted: () => Promise<CipherView[]>;
|
||||||
getAllDecryptedForGrouping: (groupingId: string, folder?: boolean) => Promise<CipherView[]>;
|
getAllDecryptedForGrouping: (groupingId: string, folder?: boolean) => Promise<CipherView[]>;
|
||||||
getAllDecryptedForDomain: (domain: string, includeOtherTypes?: any[]) => Promise<CipherView[]>;
|
getAllDecryptedForDomain: (domain: string, includeOtherTypes?: CipherType[]) => Promise<CipherView[]>;
|
||||||
getLastUsedForDomain: (domain: string) => Promise<CipherView>;
|
getLastUsedForDomain: (domain: string) => Promise<CipherView>;
|
||||||
updateLastUsedDate: (id: string) => Promise<void>;
|
updateLastUsedDate: (id: string) => Promise<void>;
|
||||||
saveNeverDomain: (domain: string) => Promise<void>;
|
saveNeverDomain: (domain: string) => Promise<void>;
|
||||||
|
|
|
@ -170,7 +170,7 @@ export class CipherService implements CipherServiceAbstraction {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
async getAllDecryptedForDomain(domain: string, includeOtherTypes?: any[]): Promise<CipherView[]> {
|
async getAllDecryptedForDomain(domain: string, includeOtherTypes?: CipherType[]): Promise<CipherView[]> {
|
||||||
if (domain == null && !includeOtherTypes) {
|
if (domain == null && !includeOtherTypes) {
|
||||||
return Promise.resolve([]);
|
return Promise.resolve([]);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue