mirror of
https://github.com/bitwarden/jslib
synced 2025-12-21 10:43:23 +00:00
[Provider] Add initial support for providers (#399)
This commit is contained in:
@@ -31,6 +31,9 @@ export class OrganizationData {
|
||||
resetPasswordEnrolled: boolean;
|
||||
userId: string;
|
||||
hasPublicAndPrivateKeys: boolean;
|
||||
providerId: string;
|
||||
providerName: string;
|
||||
isProviderUser: boolean;
|
||||
|
||||
constructor(response: ProfileOrganizationResponse) {
|
||||
this.id = response.id;
|
||||
@@ -59,5 +62,7 @@ export class OrganizationData {
|
||||
this.resetPasswordEnrolled = response.resetPasswordEnrolled;
|
||||
this.userId = response.userId;
|
||||
this.hasPublicAndPrivateKeys = response.hasPublicAndPrivateKeys;
|
||||
this.providerId = response.providerId;
|
||||
this.providerName = response.providerName;
|
||||
}
|
||||
}
|
||||
|
||||
24
common/src/models/data/providerData.ts
Normal file
24
common/src/models/data/providerData.ts
Normal file
@@ -0,0 +1,24 @@
|
||||
import { ProfileProviderResponse } from '../response/profileProviderResponse';
|
||||
|
||||
import { ProviderUserStatusType } from '../../enums/providerUserStatusType';
|
||||
import { ProviderUserType } from '../../enums/providerUserType';
|
||||
|
||||
export class ProviderData {
|
||||
id: string;
|
||||
name: string;
|
||||
status: ProviderUserStatusType;
|
||||
type: ProviderUserType;
|
||||
enabled: boolean;
|
||||
userId: string;
|
||||
useEvents: boolean;
|
||||
|
||||
constructor(response: ProfileProviderResponse) {
|
||||
this.id = response.id;
|
||||
this.name = response.name;
|
||||
this.status = response.status;
|
||||
this.type = response.type;
|
||||
this.enabled = response.enabled;
|
||||
this.userId = response.userId;
|
||||
this.useEvents = response.useEvents;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user