UNPKG

@simplyhomes/sos-sdk

Version:

TypeScript SDK for Simply Homes SoS API v4

49 lines (48 loc) 1.76 kB
import { RentalListingUserRelationsAPIV4Api } from '../generated'; export class RentalListingUserRelations { constructor(config) { const api = new RentalListingUserRelationsAPIV4Api(config); this.list = new RentalListingUserRelationsList(api); this.create = new RentalListingUserRelationsCreate(api); this.delete = new RentalListingUserRelationsDelete(api); } } export class RentalListingUserRelationsList { constructor(api) { this.api = api; } /** * one - get /v4/rental-listing-user-relations/rental-listings/{rentalListingId}/users/{userId} */ one(rentalListingId, userId, options) { return this.api.v4RentalListingUserRelationsControllerGetRelRentalListingUserV4({ rentalListingId, userId, ...options }); } /** * all - get /v4/rental-listing-user-relations */ all(options) { return this.api.v4RentalListingUserRelationsControllerGetRelRentalListingUsersV4({ ...options }); } } export class RentalListingUserRelationsCreate { constructor(api) { this.api = api; } /** * one - post /v4/rental-listing-user-relations */ one(body) { return this.api.v4RentalListingUserRelationsControllerCreateRelRentalListingUserV4({ v4RentalListingUserRelationsCreateRelRentalListingUserBodyDto: body }); } } export class RentalListingUserRelationsDelete { constructor(api) { this.api = api; } /** * one - delete /v4/rental-listing-user-relations/rental-listings/{rentalListingId}/users/{userId} */ one(rentalListingId, userId, options) { return this.api.v4RentalListingUserRelationsControllerDeleteRelRentalListingUserV4({ rentalListingId, userId, ...options }); } }