clients/libs/common/src/abstractions
Rui Tomé 3a298bd989
[EC-377] Transition Policy service into providing observables (#3259)
* Added abstractions for PolicyApiService and PolicyService

* Added implementations for PolicyApiService and PolicyService

* Updated all references to new PolicyApiService and PolicyService

* Deleted old PolicyService abstraction and implementation

* Fixed CLI import path for policy.service

* Fixed main.background.ts policyApiService dependency for policyService

* Ran prettier

* Updated policy-api.service with the correct imports

* [EC-377] Removed methods from StateService that read policies

* [EC-377] Updated policy service getAll method to use observable collection

* [EC-377] Added first unit tests for policy service

* [EC-377] Added more unit tests for Policy Service

* [EC-376] Sorted methods order in PolicyApiService

* [EC-376] Removed unused clearCache method from PolicyService

* [EC-376] Added upsert method to PolicyService

* [EC-376] PolicyApiService putPolicy method now upserts data to PolicyService

* [EC-377] Removed tests for deleted clearCache method

* [EC-377] Added unit test for PolicyService.upsert

* [EC-377] Updated references to state service observables

* [EC-377] Removed getAll method from PolicyService and refactored components to use observable collection

* [EC-377] Updated components to use concatMap instead of async subscribe

* [EC-377] Removed getPolicyForOrganization from policyApiService

* [EC-377] Updated policyAppliesToUser to return observable collection

* [EC-377] Changed policyService.policyAppliesToUser to return observable

* [EC-377] Fixed browser settings.component.ts getting vault timeout

* Updated people.component.ts to get ResetPassword policy through a subscription

* [EC-377] Changed passwordGenerationService.getOptions to return observable

* [EC-377] Fixed CLI generate.command.ts getting enforcePasswordGeneratorPoliciesOnOptions

* [EC-377] Fixed eslint errors on rxjs

* [EC-377] Reverted changes on passwordGeneration.service and vaultTimeout.service

* [EC-377] Removed eslint disable on web/vault/add-edit-component

* [EC-377] Changed AccountData.policies to TemporaryDataEncryption

* [EC-377] Updated import.component to be reactive to policyAppliesToUser$

* [EC-377] Updated importBlockedByPolicy$

* [EC-377] Fixed missing rename

* [EC-377] Updated policyService.masterPasswordPolicyOptions to return observable

* [EC-377] Fixed vaultTimeout imports from merge

* [EC-377] Reverted call to passwordGenerationService.getOptions

* [EC-377] Reverted call to enforcePasswordGeneratorPoliciesOnOptions

* [EC-377] Removed unneeded ngOnDestroy

* Apply suggestions from code review

Co-authored-by: Oscar Hinton <Hinton@users.noreply.github.com>

* [EC-377] Fixed login.component.ts and register.component.ts

* [EC-377] Updated PolicyService to update vaultTimeout

* [EC-377] Updated PolicyService dependencies

* [EC-377] Renamed policyAppliesToUser to policyAppliesToActiveUser

* [EC-377] VaultTimeoutSettings service now gets the vault timeout directly instead of using observables

* [EC-377] Fixed unit tests by removing unneeded vaultTimeoutSettingsService

* [EC-377] Set getDecryptedPolicies and setDecryptedPolicies as deprecated

* [EC-377] Set PolicyService.getAll as deprecated and updated to use prototype.hasOwnProperty

* [EC-565] Reverted unintended change to vaultTimeoutSettings that was causing a bug to not display the correct vault timeout

* [EC-377] Removed unneeded destroy$ from preferences.component.ts

* [EC-377] Fixed policy.service.ts import of OrganizationService

Co-authored-by: Oscar Hinton <Hinton@users.noreply.github.com>
Co-authored-by: mimartin12 <77340197+mimartin12@users.noreply.github.com>
2022-10-11 13:08:48 +01:00
..
account [SM-255] Forbid absolute imports in libs (#3624) 2022-09-29 16:38:50 +02:00
config [SM-255] Forbid absolute imports in libs (#3624) 2022-09-29 16:38:50 +02:00
fileDownload [fix] Force send attachment to always download and never open (#2908) 2022-06-29 17:15:29 -04:00
folder [SM-255] Forbid absolute imports in libs (#3624) 2022-09-29 16:38:50 +02:00
organization [PS-1092] Organization Service Observables (#3462) 2022-09-27 16:25:19 -04:00
policy [EC-377] Transition Policy service into providing observables (#3259) 2022-10-11 13:08:48 +01:00
sync [PS-1092] Organization Service Observables (#3462) 2022-09-27 16:25:19 -04:00
userVerification [SM-255] Forbid absolute imports in libs (#3624) 2022-09-29 16:38:50 +02:00
vaultTimeout Extract settings related methods into VaultTimeoutSettingsService (#3419) 2022-08-30 22:30:43 +02:00
abstractEncrypt.service.ts [SM-255] Forbid absolute imports in libs (#3624) 2022-09-29 16:38:50 +02:00
anonymousHub.service.ts [SG-168] Passwordless login web MVP (#3424) 2022-09-26 23:26:10 +01:00
api.service.ts [SG-168] Passwordless login web MVP (#3424) 2022-09-26 23:26:10 +01:00
appId.service.ts Move to libs 2022-06-03 16:24:40 +02:00
audit.service.ts Move to libs 2022-06-03 16:24:40 +02:00
auth.service.ts [SG-168] Passwordless login web MVP (#3424) 2022-09-26 23:26:10 +01:00
broadcaster.service.ts [PS-1093] Move Organization Api Calls (#3243) 2022-08-24 12:33:05 -04:00
cipher.service.ts Move to libs 2022-06-03 16:24:40 +02:00
collection.service.ts Move to libs 2022-06-03 16:24:40 +02:00
crypto.service.ts [EC-364] Expose key getters on CryptoService (#3170) 2022-08-04 07:09:36 +10:00
cryptoFunction.service.ts Move to libs 2022-06-03 16:24:40 +02:00
environment.service.ts SM-90: Add Server Version to Browser About Page (#3223) 2022-09-08 08:27:19 -04:00
event.service.ts [EC-320] Add organization vault export to event logs (#3136) 2022-07-25 09:56:03 +01:00
export.service.ts Move to libs 2022-06-03 16:24:40 +02:00
fileUpload.service.ts Move to libs 2022-06-03 16:24:40 +02:00
formValidationErrors.service.ts Merge Feature/trial initiation (#3036) 2022-07-05 15:25:14 -04:00
i18n.service.ts [PS-713] Fix locale search bug (#3014) 2022-07-12 09:02:19 -04:00
import.service.ts Move to libs 2022-06-03 16:24:40 +02:00
keyConnector.service.ts Move to libs 2022-06-03 16:24:40 +02:00
log.service.ts [PS-816] Add Autofill Shortcut to MV3 Extension (#3131) 2022-08-09 21:30:26 -04:00
messaging.service.ts Move to libs 2022-06-03 16:24:40 +02:00
notifications.service.ts Move to libs 2022-06-03 16:24:40 +02:00
passwordGeneration.service.ts Move to libs 2022-06-03 16:24:40 +02:00
passwordReprompt.service.ts Move to libs 2022-06-03 16:24:40 +02:00
platformUtils.service.ts [fix] Force send attachment to always download and never open (#2908) 2022-06-29 17:15:29 -04:00
provider.service.ts Move to libs 2022-06-03 16:24:40 +02:00
search.service.ts Move to libs 2022-06-03 16:24:40 +02:00
send.service.ts Move to libs 2022-06-03 16:24:40 +02:00
settings.service.ts [EC-381] Transition settings service into providing observables (#3253) 2022-08-30 15:19:09 +01:00
state.service.ts [EC-377] Transition Policy service into providing observables (#3259) 2022-10-11 13:08:48 +01:00
stateMigration.service.ts Move to libs 2022-06-03 16:24:40 +02:00
storage.service.ts Ps 1291/apply to from json pattern to state (#3425) 2022-09-22 07:51:14 -05:00
system.service.ts [PS-1175] Resolve issue with processReload not executing (#3240) 2022-08-05 20:04:27 +02:00
token.service.ts [EC-243] Grant premium status when member accepts org invite (#2870) 2022-06-14 12:13:41 +10:00
totp.service.ts [PS-683] Update negative copy (#2912) 2022-06-23 09:53:42 +02:00
twoFactor.service.ts Move to libs 2022-06-03 16:24:40 +02:00
usernameGeneration.service.ts Move to libs 2022-06-03 16:24:40 +02:00
validation.service.ts [EC-558] Reflecting async progress on buttons and forms (#3548) 2022-10-10 16:04:29 +02:00