UNPKG

@microsoft/msgraph-beta-sdk-places

Version:
97 lines 4 kB
import { type Room, type RoomCollectionResponse } from '@microsoft/msgraph-beta-sdk/models/index.js'; import { type CountRequestBuilder } from './count/index.js'; import { type RoomItemRequestBuilder } from './item/index.js'; import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions'; /** * Provides operations to manage the rooms property of the microsoft.graph.roomList entity. */ export interface RoomsRequestBuilder extends BaseRequestBuilder<RoomsRequestBuilder> { /** * Provides operations to count the resources in the collection. */ get count(): CountRequestBuilder; /** * Provides operations to manage the rooms property of the microsoft.graph.roomList entity. * @param roomId The unique identifier of room * @returns {RoomItemRequestBuilder} */ byRoomId(roomId: string): RoomItemRequestBuilder; /** * Get rooms from places * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {Promise<RoomCollectionResponse>} * @throws {ODataError} error when the service returns a 4XX or 5XX status code */ get(requestConfiguration?: RequestConfiguration<RoomsRequestBuilderGetQueryParameters> | undefined): Promise<RoomCollectionResponse | undefined>; /** * Create new navigation property to rooms for places * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {Promise<Room>} * @throws {ODataError} error when the service returns a 4XX or 5XX status code */ post(body: Room, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<Room | undefined>; /** * Get rooms from places * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ toGetRequestInformation(requestConfiguration?: RequestConfiguration<RoomsRequestBuilderGetQueryParameters> | undefined): RequestInformation; /** * Create new navigation property to rooms for places * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ toPostRequestInformation(body: Room, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation; } /** * Get rooms from places */ export interface RoomsRequestBuilderGetQueryParameters { /** * Include count of items */ count?: boolean; /** * Expand related entities */ expand?: string[]; /** * Filter items by property values */ filter?: string; /** * Order items by property values */ orderby?: string[]; /** * Search items by search phrases */ search?: string; /** * Select properties to be returned */ select?: string[]; /** * Skip the first n items */ skip?: number; /** * Show only the first n items */ top?: number; } /** * Uri template for the request builder. */ export declare const RoomsRequestBuilderUriTemplate = "{+baseurl}/places/{place%2Did}/graph.roomList/rooms{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}"; /** * Metadata for all the navigation properties in the request builder. */ export declare const RoomsRequestBuilderNavigationMetadata: Record<Exclude<keyof RoomsRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata>; /** * Metadata for all the requests in the request builder. */ export declare const RoomsRequestBuilderRequestsMetadata: RequestsMetadata; //# sourceMappingURL=index.d.ts.map