UNPKG

@simplyhomes/sos-sdk

Version:

TypeScript SDK for Simply Homes SoS API v4

55 lines 4.71 kB
import type { Configuration } from '../generated'; import { SourcePropertyRelationsAPIV4Api } from '../generated'; import type { V4SourcePropertyRelationsControllerCreateRelationV4Request, V4SourcePropertyRelationsControllerDeleteRelationV4Request, V4SourcePropertyRelationsControllerGetRelationColumnsV4Request, V4SourcePropertyRelationsControllerGetRelationV4Request, V4SourcePropertyRelationsControllerGetRelationsInViewV4Request, V4SourcePropertyRelationsControllerGetRelationsV4Request, V4SourcePropertyRelationsControllerUpdateRelationV4Request, V4SourcePropertyRelationsCreateRelationBodyDto, V4SourcePropertyRelationsCreateRelationResponseDto, V4SourcePropertyRelationsDeleteRelationResponseDto, V4SourcePropertyRelationsGetRelationColumnsResponseDto, V4SourcePropertyRelationsGetRelationResponseDto, V4SourcePropertyRelationsGetRelationsInViewResponseDto, V4SourcePropertyRelationsGetRelationsResponseDto, V4SourcePropertyRelationsUpdateRelationBodyDto, V4SourcePropertyRelationsUpdateRelationResponseDto } from '../generated'; export declare class RelationsSourceProperty { readonly list: RelationsSourcePropertyList; readonly create: RelationsSourcePropertyCreate; readonly update: RelationsSourcePropertyUpdate; readonly delete: RelationsSourcePropertyDelete; constructor(config: Configuration); } export declare class RelationsSourcePropertyList { private api; constructor(api: SourcePropertyRelationsAPIV4Api); /** * one - get /v4/relations-source-property/sources/{sourceId}/properties/{propertyId} */ one(sourceId: V4SourcePropertyRelationsControllerGetRelationV4Request['sourceId'], propertyId: V4SourcePropertyRelationsControllerGetRelationV4Request['propertyId'], options?: Omit<V4SourcePropertyRelationsControllerGetRelationV4Request, 'sourceId' | 'propertyId'>): Promise<V4SourcePropertyRelationsGetRelationResponseDto>; /** * oneWithColumns - get /v4/relations-source-property/sources/{sourceId}/properties/{propertyId}/{columns} */ oneWithColumns(sourceId: V4SourcePropertyRelationsControllerGetRelationColumnsV4Request['sourceId'], propertyId: V4SourcePropertyRelationsControllerGetRelationColumnsV4Request['propertyId'], columns: V4SourcePropertyRelationsControllerGetRelationColumnsV4Request['columns'], options?: Omit<V4SourcePropertyRelationsControllerGetRelationColumnsV4Request, 'sourceId' | 'propertyId' | 'columns'>): Promise<V4SourcePropertyRelationsGetRelationColumnsResponseDto>; /** * all - get /v4/relations-source-property */ all(options?: V4SourcePropertyRelationsControllerGetRelationsV4Request): Promise<V4SourcePropertyRelationsGetRelationsResponseDto>; /** * withView - get /v4/relations-source-property/viewId/{viewId} */ withView(viewId: V4SourcePropertyRelationsControllerGetRelationsInViewV4Request['viewId'], options?: Omit<V4SourcePropertyRelationsControllerGetRelationsInViewV4Request, 'viewId'>): Promise<V4SourcePropertyRelationsGetRelationsInViewResponseDto>; } export declare class RelationsSourcePropertyCreate { private api; constructor(api: SourcePropertyRelationsAPIV4Api); /** * one - post /v4/relations-source-property/sources/{sourceId}/properties/{propertyId} */ one(sourceId: V4SourcePropertyRelationsControllerCreateRelationV4Request['sourceId'], propertyId: V4SourcePropertyRelationsControllerCreateRelationV4Request['propertyId'], body: V4SourcePropertyRelationsCreateRelationBodyDto): Promise<V4SourcePropertyRelationsCreateRelationResponseDto>; } export declare class RelationsSourcePropertyUpdate { private api; constructor(api: SourcePropertyRelationsAPIV4Api); /** * one - patch /v4/relations-source-property/sources/{sourceId}/properties/{propertyId} */ one(sourceId: V4SourcePropertyRelationsControllerUpdateRelationV4Request['sourceId'], propertyId: V4SourcePropertyRelationsControllerUpdateRelationV4Request['propertyId'], body: V4SourcePropertyRelationsUpdateRelationBodyDto['relation']): Promise<V4SourcePropertyRelationsUpdateRelationResponseDto>; } export declare class RelationsSourcePropertyDelete { private api; constructor(api: SourcePropertyRelationsAPIV4Api); /** * one - delete /v4/relations-source-property/sources/{sourceId}/properties/{propertyId} */ one(sourceId: V4SourcePropertyRelationsControllerDeleteRelationV4Request['sourceId'], propertyId: V4SourcePropertyRelationsControllerDeleteRelationV4Request['propertyId'], options?: Omit<V4SourcePropertyRelationsControllerDeleteRelationV4Request, 'sourceId' | 'propertyId'>): Promise<V4SourcePropertyRelationsDeleteRelationResponseDto>; } //# sourceMappingURL=relationsSourceProperty.d.ts.map