mirror of
https://github.com/bitwarden/jslib
synced 2025-12-06 00:03:29 +00:00
16 lines
604 B
TypeScript
16 lines
604 B
TypeScript
import { Observable } from "rxjs";
|
|
|
|
import { OrganizationData } from "../models/data/organizationData";
|
|
import { Organization } from "../models/domain/organization";
|
|
|
|
export abstract class OrganizationService {
|
|
organizations$: Observable<Organization[]>;
|
|
|
|
get: (id: string) => Promise<Organization>;
|
|
getByIdentifier: (identifier: string) => Promise<Organization>;
|
|
getAll: (userId?: string) => Promise<Organization[]>;
|
|
save: (orgs: { [id: string]: OrganizationData }) => Promise<any>;
|
|
canManageSponsorships: () => Promise<boolean>;
|
|
hasOrganizations: (userId?: string) => Promise<boolean>;
|
|
}
|