UNPKG

@microsoft/msgraph-beta-sdk-places

Version:
95 lines 4.51 kB
import { type Place } from '@microsoft/msgraph-beta-sdk/models/index.js'; import { type CountRequestBuilder } from './count/index.js'; import { type GetOperationWithIdRequestBuilder } from './getOperationWithId/index.js'; import { type GraphBuildingRequestBuilder } from './graphBuilding/index.js'; import { type GraphDeskRequestBuilder } from './graphDesk/index.js'; import { type GraphFloorRequestBuilder } from './graphFloor/index.js'; import { type GraphRoomRequestBuilder } from './graphRoom/index.js'; import { type GraphRoomListRequestBuilder } from './graphRoomList/index.js'; import { type GraphSectionRequestBuilder } from './graphSection/index.js'; import { type GraphWorkspaceRequestBuilder } from './graphWorkspace/index.js'; import { type PlaceItemRequestBuilder } from './item/index.js'; import { type ListOperationsRequestBuilder } from './listOperations/index.js'; import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions'; /** * Provides operations to manage the collection of place entities. */ export interface PlacesRequestBuilder extends BaseRequestBuilder<PlacesRequestBuilder> { /** * Provides operations to count the resources in the collection. */ get count(): CountRequestBuilder; /** * Casts the previous resource to building. */ get graphBuilding(): GraphBuildingRequestBuilder; /** * Casts the previous resource to desk. */ get graphDesk(): GraphDeskRequestBuilder; /** * Casts the previous resource to floor. */ get graphFloor(): GraphFloorRequestBuilder; /** * Casts the previous resource to room. */ get graphRoom(): GraphRoomRequestBuilder; /** * Casts the previous resource to roomList. */ get graphRoomList(): GraphRoomListRequestBuilder; /** * Casts the previous resource to section. */ get graphSection(): GraphSectionRequestBuilder; /** * Casts the previous resource to workspace. */ get graphWorkspace(): GraphWorkspaceRequestBuilder; /** * Provides operations to call the listOperations method. */ get listOperations(): ListOperationsRequestBuilder; /** * Provides operations to manage the collection of place entities. * @param placeId The unique identifier of place * @returns {PlaceItemRequestBuilder} */ byPlaceId(placeId: string): PlaceItemRequestBuilder; /** * Provides operations to call the getOperation method. * @param id Usage: id='{id}' * @returns {GetOperationWithIdRequestBuilder} */ getOperationWithId(id: string | undefined): GetOperationWithIdRequestBuilder; /** * Create a new place object. You can also use this method to create the following child object types: building, floor, section, room, workspace, or desk. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {Promise<Place>} * @throws {ODataError} error when the service returns a 4XX or 5XX status code * @see {@link https://learn.microsoft.com/graph/api/place-post?view=graph-rest-beta|Find more info here} */ post(body: Place, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<Place | undefined>; /** * Create a new place object. You can also use this method to create the following child object types: building, floor, section, room, workspace, or desk. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ toPostRequestInformation(body: Place, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation; } /** * Uri template for the request builder. */ export declare const PlacesRequestBuilderUriTemplate = "{+baseurl}/places"; /** * Metadata for all the navigation properties in the request builder. */ export declare const PlacesRequestBuilderNavigationMetadata: Record<Exclude<keyof PlacesRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata>; /** * Metadata for all the requests in the request builder. */ export declare const PlacesRequestBuilderRequestsMetadata: RequestsMetadata; //# sourceMappingURL=index.d.ts.map