@simplyhomes/sos-sdk
Version:
TypeScript SDK for Simply Homes SoS API v4
38 lines • 2.9 kB
TypeScript
import type { Configuration } from '../generated';
import { RentalListingUserRelationsAPIV4Api } from '../generated';
import type { V4RentalListingUserRelationsControllerDeleteRelRentalListingUserV4Request, V4RentalListingUserRelationsControllerGetRelRentalListingUserV4Request, V4RentalListingUserRelationsControllerGetRelRentalListingUsersV4Request, V4RentalListingUserRelationsCreateRelRentalListingUserBodyDto, V4RentalListingUserRelationsCreateRelRentalListingUserResponseDto, V4RentalListingUserRelationsDeleteRelRentalListingUserResponseDto, V4RentalListingUserRelationsGetRelRentalListingUserResponseDto, V4RentalListingUserRelationsGetRelRentalListingUsersResponseDto } from '../generated';
export declare class RentalListingUserRelations {
readonly list: RentalListingUserRelationsList;
readonly create: RentalListingUserRelationsCreate;
readonly delete: RentalListingUserRelationsDelete;
constructor(config: Configuration);
}
export declare class RentalListingUserRelationsList {
private api;
constructor(api: RentalListingUserRelationsAPIV4Api);
/**
* one - get /v4/rental-listing-user-relations/rental-listings/{rentalListingId}/users/{userId}
*/
one(rentalListingId: V4RentalListingUserRelationsControllerGetRelRentalListingUserV4Request['rentalListingId'], userId: V4RentalListingUserRelationsControllerGetRelRentalListingUserV4Request['userId'], options?: Omit<V4RentalListingUserRelationsControllerGetRelRentalListingUserV4Request, 'rentalListingId' | 'userId'>): Promise<V4RentalListingUserRelationsGetRelRentalListingUserResponseDto>;
/**
* all - get /v4/rental-listing-user-relations
*/
all(options?: V4RentalListingUserRelationsControllerGetRelRentalListingUsersV4Request): Promise<V4RentalListingUserRelationsGetRelRentalListingUsersResponseDto>;
}
export declare class RentalListingUserRelationsCreate {
private api;
constructor(api: RentalListingUserRelationsAPIV4Api);
/**
* one - post /v4/rental-listing-user-relations
*/
one(body: V4RentalListingUserRelationsCreateRelRentalListingUserBodyDto): Promise<V4RentalListingUserRelationsCreateRelRentalListingUserResponseDto>;
}
export declare class RentalListingUserRelationsDelete {
private api;
constructor(api: RentalListingUserRelationsAPIV4Api);
/**
* one - delete /v4/rental-listing-user-relations/rental-listings/{rentalListingId}/users/{userId}
*/
one(rentalListingId: V4RentalListingUserRelationsControllerDeleteRelRentalListingUserV4Request['rentalListingId'], userId: V4RentalListingUserRelationsControllerDeleteRelRentalListingUserV4Request['userId'], options?: Omit<V4RentalListingUserRelationsControllerDeleteRelRentalListingUserV4Request, 'rentalListingId' | 'userId'>): Promise<V4RentalListingUserRelationsDeleteRelRentalListingUserResponseDto>;
}
//# sourceMappingURL=rentalListingUserRelations.d.ts.map