@simplyhomes/sos-sdk
Version:
TypeScript SDK for Simply Homes SoS API v4
55 lines • 3.88 kB
TypeScript
import type { Configuration } from '../generated';
import { PropertyManagersAPIV4Api } from '../generated';
import type { V4PropertyManagersControllerDeletePropertyManagerV4Request, V4PropertyManagersControllerGetPropertyManagerColumnsV4Request, V4PropertyManagersControllerGetPropertyManagerV4Request, V4PropertyManagersControllerGetPropertyManagersInViewV4Request, V4PropertyManagersControllerGetPropertyManagersV4Request, V4PropertyManagersControllerUpdatePropertyManagerV4Request, V4PropertyManagersCreatePropertyManagerBodyDto, V4PropertyManagersCreatePropertyManagerResponseDto, V4PropertyManagersDeletePropertyManagerResponseDto, V4PropertyManagersGetPropertyManagerColumnsResponseDto, V4PropertyManagersGetPropertyManagerResponseDto, V4PropertyManagersGetPropertyManagersInViewResponseDto, V4PropertyManagersGetPropertyManagersResponseDto, V4PropertyManagersUpdatePropertyManagerBodyDto, V4PropertyManagersUpdatePropertyManagerResponseDto } from '../generated';
export declare class PropertyManagers {
readonly list: PropertyManagersList;
readonly create: PropertyManagersCreate;
readonly update: PropertyManagersUpdate;
readonly delete: PropertyManagersDelete;
constructor(config: Configuration);
}
export declare class PropertyManagersList {
private api;
constructor(api: PropertyManagersAPIV4Api);
/**
* one - get /v4/propertyManagers/{propertyManagerId}
*/
one(propertyManagerId: V4PropertyManagersControllerGetPropertyManagerV4Request['propertyManagerId'], options?: Omit<V4PropertyManagersControllerGetPropertyManagerV4Request, 'propertyManagerId'>): Promise<V4PropertyManagersGetPropertyManagerResponseDto>;
/**
* oneWithColumns - get /v4/propertyManagers/{propertyManagerId}/{columns}
*/
oneWithColumns(propertyManagerId: V4PropertyManagersControllerGetPropertyManagerColumnsV4Request['propertyManagerId'], columns: V4PropertyManagersControllerGetPropertyManagerColumnsV4Request['columns'], options?: Omit<V4PropertyManagersControllerGetPropertyManagerColumnsV4Request, 'propertyManagerId' | 'columns'>): Promise<V4PropertyManagersGetPropertyManagerColumnsResponseDto>;
/**
* all - get /v4/propertyManagers
*/
all(options?: V4PropertyManagersControllerGetPropertyManagersV4Request): Promise<V4PropertyManagersGetPropertyManagersResponseDto>;
/**
* withView - get /v4/propertyManagers/viewId/{viewId}
*/
withView(viewId: V4PropertyManagersControllerGetPropertyManagersInViewV4Request['viewId'], options?: Omit<V4PropertyManagersControllerGetPropertyManagersInViewV4Request, 'viewId'>): Promise<V4PropertyManagersGetPropertyManagersInViewResponseDto>;
}
export declare class PropertyManagersCreate {
private api;
constructor(api: PropertyManagersAPIV4Api);
/**
* one - post /v4/propertyManagers
*/
one(body: V4PropertyManagersCreatePropertyManagerBodyDto['name']): Promise<V4PropertyManagersCreatePropertyManagerResponseDto>;
}
export declare class PropertyManagersUpdate {
private api;
constructor(api: PropertyManagersAPIV4Api);
/**
* one - patch /v4/propertyManagers/{propertyManagerId}
*/
one(propertyManagerId: V4PropertyManagersControllerUpdatePropertyManagerV4Request['propertyManagerId'], body: V4PropertyManagersUpdatePropertyManagerBodyDto): Promise<V4PropertyManagersUpdatePropertyManagerResponseDto>;
}
export declare class PropertyManagersDelete {
private api;
constructor(api: PropertyManagersAPIV4Api);
/**
* one - delete /v4/propertyManagers/{propertyManagerId}
*/
one(propertyManagerId: V4PropertyManagersControllerDeletePropertyManagerV4Request['propertyManagerId'], options?: Omit<V4PropertyManagersControllerDeletePropertyManagerV4Request, 'propertyManagerId'>): Promise<V4PropertyManagersDeletePropertyManagerResponseDto>;
}
//# sourceMappingURL=propertyManagers.d.ts.map