mirror of
https://github.com/bitwarden/browser
synced 2026-02-15 16:05:03 +00:00
Revert legacy
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
// FIXME: Update this file to be type safe and remove this and next line
|
||||
// @ts-strict-ignore
|
||||
import { Observable } from "rxjs";
|
||||
|
||||
import { PasswordGeneratorPolicyOptions } from "@bitwarden/common/admin-console/models/domain/password-generator-policy-options";
|
||||
@@ -7,15 +9,15 @@ import { PasswordGeneratorOptions } from "./password-generator-options";
|
||||
|
||||
/** @deprecated Use {@link GeneratorService} with a password or passphrase {@link GeneratorStrategy} instead. */
|
||||
export abstract class PasswordGenerationServiceAbstraction {
|
||||
abstract generatePassword(options: PasswordGeneratorOptions): Promise<string>;
|
||||
abstract generatePassphrase(options: PasswordGeneratorOptions): Promise<string>;
|
||||
abstract getOptions(): Promise<[PasswordGeneratorOptions, PasswordGeneratorPolicyOptions]>;
|
||||
abstract getOptions$(): Observable<[PasswordGeneratorOptions, PasswordGeneratorPolicyOptions]>;
|
||||
abstract enforcePasswordGeneratorPoliciesOnOptions(
|
||||
generatePassword: (options: PasswordGeneratorOptions) => Promise<string>;
|
||||
generatePassphrase: (options: PasswordGeneratorOptions) => Promise<string>;
|
||||
getOptions: () => Promise<[PasswordGeneratorOptions, PasswordGeneratorPolicyOptions]>;
|
||||
getOptions$: () => Observable<[PasswordGeneratorOptions, PasswordGeneratorPolicyOptions]>;
|
||||
enforcePasswordGeneratorPoliciesOnOptions: (
|
||||
options: PasswordGeneratorOptions,
|
||||
): Promise<[PasswordGeneratorOptions, PasswordGeneratorPolicyOptions]>;
|
||||
abstract saveOptions(options: PasswordGeneratorOptions): Promise<void>;
|
||||
abstract getHistory(): Promise<GeneratedPasswordHistory[]>;
|
||||
abstract addHistory(password: string): Promise<void>;
|
||||
abstract clear(userId?: string): Promise<GeneratedPasswordHistory[]>;
|
||||
) => Promise<[PasswordGeneratorOptions, PasswordGeneratorPolicyOptions]>;
|
||||
saveOptions: (options: PasswordGeneratorOptions) => Promise<void>;
|
||||
getHistory: () => Promise<GeneratedPasswordHistory[]>;
|
||||
addHistory: (password: string) => Promise<void>;
|
||||
clear: (userId?: string) => Promise<GeneratedPasswordHistory[]>;
|
||||
}
|
||||
|
||||
@@ -1,15 +1,17 @@
|
||||
// FIXME: Update this file to be type safe and remove this and next line
|
||||
// @ts-strict-ignore
|
||||
import { Observable } from "rxjs";
|
||||
|
||||
import { UsernameGeneratorOptions } from "./username-generation-options";
|
||||
|
||||
/** @deprecated Use {@link GeneratorService} with a username {@link GeneratorStrategy} instead. */
|
||||
export abstract class UsernameGenerationServiceAbstraction {
|
||||
abstract generateUsername(options: UsernameGeneratorOptions): Promise<string>;
|
||||
abstract generateWord(options: UsernameGeneratorOptions): Promise<string>;
|
||||
abstract generateSubaddress(options: UsernameGeneratorOptions): Promise<string>;
|
||||
abstract generateCatchall(options: UsernameGeneratorOptions): Promise<string>;
|
||||
abstract generateForwarded(options: UsernameGeneratorOptions): Promise<string>;
|
||||
abstract getOptions(): Promise<UsernameGeneratorOptions>;
|
||||
abstract getOptions$(): Observable<UsernameGeneratorOptions>;
|
||||
abstract saveOptions(options: UsernameGeneratorOptions): Promise<void>;
|
||||
generateUsername: (options: UsernameGeneratorOptions) => Promise<string>;
|
||||
generateWord: (options: UsernameGeneratorOptions) => Promise<string>;
|
||||
generateSubaddress: (options: UsernameGeneratorOptions) => Promise<string>;
|
||||
generateCatchall: (options: UsernameGeneratorOptions) => Promise<string>;
|
||||
generateForwarded: (options: UsernameGeneratorOptions) => Promise<string>;
|
||||
getOptions: () => Promise<UsernameGeneratorOptions>;
|
||||
getOptions$: () => Observable<UsernameGeneratorOptions>;
|
||||
saveOptions: (options: UsernameGeneratorOptions) => Promise<void>;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user