1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-07 12:13:45 +00:00

[Account Recovery][PM-18721] update type for organizationId

This commit is contained in:
rr-bw
2025-05-30 14:58:36 -07:00
parent 03415ea8fa
commit 45f8c19222
3 changed files with 5 additions and 4 deletions

View File

@@ -13,6 +13,7 @@ import { I18nService } from "@bitwarden/common/platform/abstractions/i18n.servic
import { LogService } from "@bitwarden/common/platform/abstractions/log.service";
import { PlatformUtilsService } from "@bitwarden/common/platform/abstractions/platform-utils.service";
import { Utils } from "@bitwarden/common/platform/misc/utils";
import { OrganizationId } from "@bitwarden/common/types/guid";
import {
DIALOG_DATA,
DialogConfig,
@@ -47,7 +48,7 @@ export type ResetPasswordDialogData = {
/**
* The organization's `organizationId`
*/
organizationId: string;
organizationId: OrganizationId;
};
// FIXME: update to use a const object instead of a typescript enum

View File

@@ -769,7 +769,7 @@ export class MembersComponent extends BaseMembersComponent<OrganizationUserView>
data: {
name: this.userNamePipe.transform(user),
email: user != null ? user.email : null,
organizationId: this.organization.id,
organizationId: this.organization.id as OrganizationId,
id: user != null ? user.id : null,
},
});

View File

@@ -14,7 +14,7 @@ import { EncryptService } from "@bitwarden/common/key-management/crypto/abstract
import { I18nService } from "@bitwarden/common/platform/abstractions/i18n.service";
import { Utils } from "@bitwarden/common/platform/misc/utils";
import { EncryptedString, EncString } from "@bitwarden/common/platform/models/domain/enc-string";
import { UserId } from "@bitwarden/common/types/guid";
import { OrganizationId, UserId } from "@bitwarden/common/types/guid";
import { UserKey } from "@bitwarden/common/types/key";
import {
Argon2KdfConfig,
@@ -96,7 +96,7 @@ export class OrganizationUserResetPasswordService
newMasterPassword: string,
email: string,
orgUserId: string,
orgId: string,
orgId: OrganizationId,
): Promise<void> {
const response = await this.organizationUserApiService.getOrganizationUserResetPasswordDetails(
orgId,