Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
934 changes: 877 additions & 57 deletions packages/kiota-dom-export.txt

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/kiota-lock.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"descriptionHash": "4B0031F70F3815D4CFACB6D42FBB4AAC7162437FEFE6F7701E162C33E876DABB21668F488EBB5BEFE3495DDBD43E689D40C62326CEBC5B416F6289B5DD495171",
"descriptionHash": "E6E45272A85DAC15CB5AC3A2A2ED9818EED73244D52A4A4A24A7D1A240F21A1D43F70EC730C56EFE2A8A55E98E2EF660C3838B6C3CEE7398BFB2C2E1885FF29A",
"descriptionLocation": "../../msgraph-metadata/clean_v10_openapi/openapi.yaml",
"lockFileVersion": "1.0.0",
"kiotaVersion": "1.29.0",
Expand Down
6 changes: 3 additions & 3 deletions packages/msgraph-sdk-chats/chats/item/messages/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,12 @@ export interface MessagesRequestBuilder extends BaseRequestBuilder<MessagesReque
*/
get(requestConfiguration?: RequestConfiguration<MessagesRequestBuilderGetQueryParameters> | undefined) : Promise<ChatMessageCollectionResponse | undefined>;
/**
* Send a new chatMessage in the specified channel or a chat.
* Send a new chatMessage in the specified chat. This API can't create a new chat; you must use the list chats method to retrieve the ID of an existing chat before you can create a chat message.
* @param body The request body
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {Promise<ChatMessage>}
* @throws {ODataError} error when the service returns a 4XX or 5XX status code
* @see {@link https://learn.microsoft.com/graph/api/chatmessage-post?view=graph-rest-1.0|Find more info here}
* @see {@link https://learn.microsoft.com/graph/api/chat-post-messages?view=graph-rest-1.0|Find more info here}
*/
post(body: ChatMessage, requestConfiguration?: RequestConfiguration<object> | undefined) : Promise<ChatMessage | undefined>;
/**
Expand All @@ -56,7 +56,7 @@ export interface MessagesRequestBuilder extends BaseRequestBuilder<MessagesReque
*/
toGetRequestInformation(requestConfiguration?: RequestConfiguration<MessagesRequestBuilderGetQueryParameters> | undefined) : RequestInformation;
/**
* Send a new chatMessage in the specified channel or a chat.
* Send a new chatMessage in the specified chat. This API can't create a new chat; you must use the list chats method to retrieve the ID of an existing chat before you can create a chat message.
* @param body The request body
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {RequestInformation}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,139 @@
/* tslint:disable */
/* eslint-disable */
// Generated by Microsoft Kiota
// @ts-ignore
import { createEngagementConversationMessageFromDiscriminatorValue, deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, serializeEngagementConversationMessage, type BaseCollectionPaginationCountResponse, type EngagementConversationMessage } from '@microsoft/msgraph-sdk/models/index.js';
// @ts-ignore
import { createODataErrorFromDiscriminatorValue, type ODataError } from '@microsoft/msgraph-sdk/models/oDataErrors/index.js';
// @ts-ignore
import { type BaseRequestBuilder, type Parsable, type ParsableFactory, type ParseNode, type RequestConfiguration, type RequestInformation, type RequestsMetadata, type SerializationWriter } from '@microsoft/kiota-abstractions';

/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
* @returns {GetAllOnlineMeetingMessagesGetResponse}
*/
// @ts-ignore
export function createGetAllOnlineMeetingMessagesGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) : ((instance?: Parsable) => Record<string, (node: ParseNode) => void>) {
return deserializeIntoGetAllOnlineMeetingMessagesGetResponse;
}
/**
* The deserialization information for the current model
* @param GetAllOnlineMeetingMessagesGetResponse The instance to deserialize into.
* @returns {Record<string, (node: ParseNode) => void>}
*/
// @ts-ignore
export function deserializeIntoGetAllOnlineMeetingMessagesGetResponse(getAllOnlineMeetingMessagesGetResponse: Partial<GetAllOnlineMeetingMessagesGetResponse> | undefined = {}) : Record<string, (node: ParseNode) => void> {
return {
...deserializeIntoBaseCollectionPaginationCountResponse(getAllOnlineMeetingMessagesGetResponse),
"value": n => { getAllOnlineMeetingMessagesGetResponse.value = n.getCollectionOfObjectValues<EngagementConversationMessage>(createEngagementConversationMessageFromDiscriminatorValue); },
}
}
export interface GetAllOnlineMeetingMessagesGetResponse extends BaseCollectionPaginationCountResponse, Parsable {
/**
* The value property
*/
value?: EngagementConversationMessage[] | null;
}
/**
* Provides operations to call the getAllOnlineMeetingMessages method.
*/
export interface GetAllOnlineMeetingMessagesRequestBuilder extends BaseRequestBuilder<GetAllOnlineMeetingMessagesRequestBuilder> {
/**
* Get all Teams question and answer (Q&A) conversation messages in a tenant. This function returns a snapshot of all Q&A activity in JSON format. The export includes:- The original question or discussion text- The user who posted the message- All replies and responders- Vote counts- Moderation status (pending or dismissed)- Private replies- The meeting ID and organizer ID that are used for mapping to meeting metadata.
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {Promise<GetAllOnlineMeetingMessagesGetResponse>}
* @throws {ODataError} error when the service returns a 4XX or 5XX status code
* @see {@link https://learn.microsoft.com/graph/api/cloudcommunications-getallonlinemeetingmessages?view=graph-rest-1.0|Find more info here}
*/
get(requestConfiguration?: RequestConfiguration<GetAllOnlineMeetingMessagesRequestBuilderGetQueryParameters> | undefined) : Promise<GetAllOnlineMeetingMessagesGetResponse | undefined>;
/**
* Get all Teams question and answer (Q&A) conversation messages in a tenant. This function returns a snapshot of all Q&A activity in JSON format. The export includes:- The original question or discussion text- The user who posted the message- All replies and responders- Vote counts- Moderation status (pending or dismissed)- Private replies- The meeting ID and organizer ID that are used for mapping to meeting metadata.
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {RequestInformation}
*/
toGetRequestInformation(requestConfiguration?: RequestConfiguration<GetAllOnlineMeetingMessagesRequestBuilderGetQueryParameters> | undefined) : RequestInformation;
}
/**
* Get all Teams question and answer (Q&A) conversation messages in a tenant. This function returns a snapshot of all Q&A activity in JSON format. The export includes:- The original question or discussion text- The user who posted the message- All replies and responders- Vote counts- Moderation status (pending or dismissed)- Private replies- The meeting ID and organizer ID that are used for mapping to meeting metadata.
*/
export interface GetAllOnlineMeetingMessagesRequestBuilderGetQueryParameters {
/**
* 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;
}
/**
* Serializes information the current object
* @param GetAllOnlineMeetingMessagesGetResponse The instance to serialize from.
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
* @param writer Serialization writer to use to serialize this model
*/
// @ts-ignore
export function serializeGetAllOnlineMeetingMessagesGetResponse(writer: SerializationWriter, getAllOnlineMeetingMessagesGetResponse: Partial<GetAllOnlineMeetingMessagesGetResponse> | undefined | null = {}, isSerializingDerivedType: boolean = false) : void {
if (!getAllOnlineMeetingMessagesGetResponse || isSerializingDerivedType) { return; }
serializeBaseCollectionPaginationCountResponse(writer, getAllOnlineMeetingMessagesGetResponse, isSerializingDerivedType)
writer.writeCollectionOfObjectValues<EngagementConversationMessage>("value", getAllOnlineMeetingMessagesGetResponse.value, serializeEngagementConversationMessage);
}
/**
* Uri template for the request builder.
*/
export const GetAllOnlineMeetingMessagesRequestBuilderUriTemplate = "{+baseurl}/communications/getAllOnlineMeetingMessages(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}";
/**
* Mapper for query parameters from symbol name to serialization name represented as a constant.
*/
const GetAllOnlineMeetingMessagesRequestBuilderGetQueryParametersMapper: Record<string, string> = {
"count": "%24count",
"expand": "%24expand",
"filter": "%24filter",
"orderby": "%24orderby",
"search": "%24search",
"select": "%24select",
"skip": "%24skip",
"top": "%24top",
};
/**
* Metadata for all the requests in the request builder.
*/
export const GetAllOnlineMeetingMessagesRequestBuilderRequestsMetadata: RequestsMetadata = {
get: {
uriTemplate: GetAllOnlineMeetingMessagesRequestBuilderUriTemplate,
responseBodyContentType: "application/json",
errorMappings: {
XXX: createODataErrorFromDiscriminatorValue as ParsableFactory<Parsable>,
},
adapterMethodName: "send",
responseBodyFactory: createGetAllOnlineMeetingMessagesGetResponseFromDiscriminatorValue,
queryParametersMapper: GetAllOnlineMeetingMessagesRequestBuilderGetQueryParametersMapper,
},
};
/* tslint:enable */
/* eslint-enable */
23 changes: 21 additions & 2 deletions packages/msgraph-sdk-communications/communications/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,12 @@ import { CallRecordsRequestBuilderNavigationMetadata, CallRecordsRequestBuilderR
// @ts-ignore
import { CallsRequestBuilderNavigationMetadata, CallsRequestBuilderRequestsMetadata, type CallsRequestBuilder } from './calls/index.js';
// @ts-ignore
import { GetAllOnlineMeetingMessagesRequestBuilderRequestsMetadata, type GetAllOnlineMeetingMessagesRequestBuilder } from './getAllOnlineMeetingMessages/index.js';
// @ts-ignore
import { GetPresencesByUserIdRequestBuilderRequestsMetadata, type GetPresencesByUserIdRequestBuilder } from './getPresencesByUserId/index.js';
// @ts-ignore
import { OnlineMeetingConversationsRequestBuilderNavigationMetadata, OnlineMeetingConversationsRequestBuilderRequestsMetadata, type OnlineMeetingConversationsRequestBuilder } from './onlineMeetingConversations/index.js';
// @ts-ignore
import { OnlineMeetingsRequestBuilderNavigationMetadata, OnlineMeetingsRequestBuilderRequestsMetadata, type OnlineMeetingsRequestBuilder } from './onlineMeetings/index.js';
// @ts-ignore
import { PresencesRequestBuilderNavigationMetadata, PresencesRequestBuilderRequestsMetadata, type PresencesRequestBuilder } from './presences/index.js';
Expand All @@ -30,10 +34,18 @@ export interface CommunicationsRequestBuilder extends BaseRequestBuilder<Communi
* Provides operations to manage the calls property of the microsoft.graph.cloudCommunications entity.
*/
get calls(): CallsRequestBuilder;
/**
* Provides operations to call the getAllOnlineMeetingMessages method.
*/
get getAllOnlineMeetingMessages(): GetAllOnlineMeetingMessagesRequestBuilder;
/**
* Provides operations to call the getPresencesByUserId method.
*/
get getPresencesByUserId(): GetPresencesByUserIdRequestBuilder;
/**
* Provides operations to manage the onlineMeetingConversations property of the microsoft.graph.cloudCommunications entity.
*/
get onlineMeetingConversations(): OnlineMeetingConversationsRequestBuilder;
/**
* Provides operations to manage the onlineMeetings property of the microsoft.graph.cloudCommunications entity.
*/
Expand All @@ -51,7 +63,7 @@ export interface CommunicationsRequestBuilder extends BaseRequestBuilder<Communi
get(requestConfiguration?: RequestConfiguration<CommunicationsRequestBuilderGetQueryParameters> | undefined) : Promise<CloudCommunications | undefined>;
/**
* Update communications
* @param body The request body
* @param body Represents a container that exposes navigation properties for cloud communications resources.
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {Promise<CloudCommunications>}
* @throws {ODataError} error when the service returns a 4XX or 5XX status code
Expand All @@ -65,7 +77,7 @@ export interface CommunicationsRequestBuilder extends BaseRequestBuilder<Communi
toGetRequestInformation(requestConfiguration?: RequestConfiguration<CommunicationsRequestBuilderGetQueryParameters> | undefined) : RequestInformation;
/**
* Update communications
* @param body The request body
* @param body Represents a container that exposes navigation properties for cloud communications resources.
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {RequestInformation}
*/
Expand Down Expand Up @@ -107,9 +119,16 @@ export const CommunicationsRequestBuilderNavigationMetadata: Record<Exclude<keyo
requestsMetadata: CallsRequestBuilderRequestsMetadata,
navigationMetadata: CallsRequestBuilderNavigationMetadata,
},
getAllOnlineMeetingMessages: {
requestsMetadata: GetAllOnlineMeetingMessagesRequestBuilderRequestsMetadata,
},
getPresencesByUserId: {
requestsMetadata: GetPresencesByUserIdRequestBuilderRequestsMetadata,
},
onlineMeetingConversations: {
requestsMetadata: OnlineMeetingConversationsRequestBuilderRequestsMetadata,
navigationMetadata: OnlineMeetingConversationsRequestBuilderNavigationMetadata,
},
onlineMeetings: {
requestsMetadata: OnlineMeetingsRequestBuilderRequestsMetadata,
navigationMetadata: OnlineMeetingsRequestBuilderNavigationMetadata,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export interface CountRequestBuilderGetQueryParameters {
/**
* Uri template for the request builder.
*/
export const CountRequestBuilderUriTemplate = "{+baseurl}/deviceManagement/telecomExpenseManagementPartners/$count{?%24filter,%24search}";
export const CountRequestBuilderUriTemplate = "{+baseurl}/communications/onlineMeetingConversations/$count{?%24filter,%24search}";
/**
* Mapper for query parameters from symbol name to serialization name represented as a constant.
*/
Expand Down
Loading