UNPKG

@microsoft/msgraph-beta-sdk-groups

Version:
99 lines 5.08 kB
import { type ConversationThread, type ConversationThreadCollectionResponse } from '@microsoft/msgraph-beta-sdk/models/index.js'; import { type CountRequestBuilder } from './count/index.js'; import { type ConversationThreadItemRequestBuilder } 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 threads property of the microsoft.graph.group entity. */ export interface ThreadsRequestBuilder extends BaseRequestBuilder<ThreadsRequestBuilder> { /** * Provides operations to count the resources in the collection. */ get count(): CountRequestBuilder; /** * Provides operations to manage the threads property of the microsoft.graph.group entity. * @param conversationThreadId The unique identifier of conversationThread * @returns {ConversationThreadItemRequestBuilder} */ byConversationThreadId(conversationThreadId: string): ConversationThreadItemRequestBuilder; /** * Get all the threads of a group. Note: You can also get all the threads of a conversation. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {Promise<ConversationThreadCollectionResponse>} * @throws {ODataError} error when the service returns a 4XX or 5XX status code * @see {@link https://learn.microsoft.com/graph/api/group-list-threads?view=graph-rest-beta|Find more info here} */ get(requestConfiguration?: RequestConfiguration<ThreadsRequestBuilderGetQueryParameters> | undefined): Promise<ConversationThreadCollectionResponse | undefined>; /** * Start a new group conversation by first creating a thread. A new conversation, conversation thread, and post are created in the group. Use reply thread or reply post to further post to that thread. Note: You can also start a new thread in an existing conversation. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {Promise<ConversationThread>} * @throws {ODataError} error when the service returns a 4XX or 5XX status code * @see {@link https://learn.microsoft.com/graph/api/group-post-threads?view=graph-rest-beta|Find more info here} */ post(body: ConversationThread, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<ConversationThread | undefined>; /** * Get all the threads of a group. Note: You can also get all the threads of a conversation. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ toGetRequestInformation(requestConfiguration?: RequestConfiguration<ThreadsRequestBuilderGetQueryParameters> | undefined): RequestInformation; /** * Start a new group conversation by first creating a thread. A new conversation, conversation thread, and post are created in the group. Use reply thread or reply post to further post to that thread. Note: You can also start a new thread in an existing conversation. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ toPostRequestInformation(body: ConversationThread, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation; } /** * Get all the threads of a group. Note: You can also get all the threads of a conversation. */ export interface ThreadsRequestBuilderGetQueryParameters { /** * 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 ThreadsRequestBuilderUriTemplate = "{+baseurl}/groups/{group%2Did}/threads{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}"; /** * Metadata for all the navigation properties in the request builder. */ export declare const ThreadsRequestBuilderNavigationMetadata: Record<Exclude<keyof ThreadsRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata>; /** * Metadata for all the requests in the request builder. */ export declare const ThreadsRequestBuilderRequestsMetadata: RequestsMetadata; //# sourceMappingURL=index.d.ts.map