UNPKG

@awhere/api

Version:

The awesome aWhere API for JavaScript.

25 lines (24 loc) 1.15 kB
import { IOrganization } from '@awhere/interfaces'; import { IFindOptions } from '../IdentityMixin'; import PrototypeBase from '../PrototypeBase'; declare class Organization extends PrototypeBase implements IOrganization { static generateId(): string; private static basePath; static fromId(id: string): Promise<Organization>; static find(findOptions?: string | IFindOptions): Promise<import("axios").AxiosResponse<any>>; static create(data: undefined | string | IOrganization): Promise<import("axios").AxiosResponse<any>>; static update(id: string, data: IOrganization): Promise<import("axios").AxiosResponse<any>>; static delete(id: string): Promise<import("axios").AxiosResponse<any>>; static restore(id: string): Promise<import("axios").AxiosResponse<any>>; save(): Promise<any>; delete(): Promise<any>; restore(): Promise<any>; private _name; get name(): string; set name(value: string); private _deletable?; get deletable(): IOrganization['deletable']; set deletable(value: IOrganization['deletable']); constructor(props?: IOrganization); } export default Organization;