Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into AC-2009/migrate-organization-state
- Loading branch information
Showing
90 changed files
with
986 additions
and
262 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
...rc/platform/background/service-factories/billing-account-profile-state-service.factory.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import { BillingAccountProfileStateService } from "@bitwarden/common/billing/abstractions/account/billing-account-profile-state.service"; | ||
import { DefaultBillingAccountProfileStateService } from "@bitwarden/common/billing/services/account/billing-account-profile-state.service"; | ||
|
||
import { activeUserStateProviderFactory } from "./active-user-state-provider.factory"; | ||
import { FactoryOptions, CachedServices, factory } from "./factory-options"; | ||
import { StateProviderInitOptions } from "./state-provider.factory"; | ||
|
||
type BillingAccountProfileStateServiceFactoryOptions = FactoryOptions; | ||
|
||
export type BillingAccountProfileStateServiceInitOptions = | ||
BillingAccountProfileStateServiceFactoryOptions & StateProviderInitOptions; | ||
|
||
export function billingAccountProfileStateServiceFactory( | ||
cache: { | ||
billingAccountProfileStateService?: BillingAccountProfileStateService; | ||
} & CachedServices, | ||
opts: BillingAccountProfileStateServiceInitOptions, | ||
): Promise<BillingAccountProfileStateService> { | ||
return factory( | ||
cache, | ||
"billingAccountProfileStateService", | ||
opts, | ||
async () => | ||
new DefaultBillingAccountProfileStateService( | ||
await activeUserStateProviderFactory(cache, opts), | ||
), | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.