mirror of
https://github.com/bitwarden/browser
synced 2025-12-17 08:43:33 +00:00
list and get organizations
This commit is contained in:
24
src/models/response/organizationResponse.ts
Normal file
24
src/models/response/organizationResponse.ts
Normal file
@@ -0,0 +1,24 @@
|
||||
import { BaseResponse } from './baseResponse';
|
||||
|
||||
import { Organization } from 'jslib/models/domain/organization';
|
||||
|
||||
import { OrganizationUserStatusType } from 'jslib/enums/organizationUserStatusType';
|
||||
import { OrganizationUserType } from 'jslib/enums/organizationUserType';
|
||||
|
||||
export class OrganizationResponse implements BaseResponse {
|
||||
object: string;
|
||||
id: string;
|
||||
name: string;
|
||||
status: OrganizationUserStatusType;
|
||||
type: OrganizationUserType;
|
||||
enabled: boolean;
|
||||
|
||||
constructor(o: Organization) {
|
||||
this.object = 'organization';
|
||||
this.id = o.id;
|
||||
this.name = o.name;
|
||||
this.status = o.status;
|
||||
this.type = o.type;
|
||||
this.enabled = o.enabled;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user