1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-17 16:53:34 +00:00

list and get organizations

This commit is contained in:
Kyle Spearrin
2018-05-18 15:26:59 -04:00
parent 7c33af769e
commit 2e8d0aaf53
6 changed files with 87 additions and 7 deletions

View 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;
}
}