|
| 1 | +/* tslint:disable */ |
| 2 | +/* eslint-disable */ |
| 3 | +// Generated by Microsoft Kiota |
| 4 | +// @ts-ignore |
| 5 | +import { createEngagementConversationMessageFromDiscriminatorValue, deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, serializeEngagementConversationMessage, type BaseCollectionPaginationCountResponse, type EngagementConversationMessage } from '@microsoft/msgraph-sdk/models/index.js'; |
| 6 | +// @ts-ignore |
| 7 | +import { createODataErrorFromDiscriminatorValue, type ODataError } from '@microsoft/msgraph-sdk/models/oDataErrors/index.js'; |
| 8 | +// @ts-ignore |
| 9 | +import { type BaseRequestBuilder, type Parsable, type ParsableFactory, type ParseNode, type RequestConfiguration, type RequestInformation, type RequestsMetadata, type SerializationWriter } from '@microsoft/kiota-abstractions'; |
| 10 | + |
| 11 | +/** |
| 12 | + * Creates a new instance of the appropriate class based on discriminator value |
| 13 | + * @param parseNode The parse node to use to read the discriminator value and create the object |
| 14 | + * @returns {GetAllOnlineMeetingMessagesGetResponse} |
| 15 | + */ |
| 16 | +// @ts-ignore |
| 17 | +export function createGetAllOnlineMeetingMessagesGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) : ((instance?: Parsable) => Record<string, (node: ParseNode) => void>) { |
| 18 | + return deserializeIntoGetAllOnlineMeetingMessagesGetResponse; |
| 19 | +} |
| 20 | +/** |
| 21 | + * The deserialization information for the current model |
| 22 | + * @param GetAllOnlineMeetingMessagesGetResponse The instance to deserialize into. |
| 23 | + * @returns {Record<string, (node: ParseNode) => void>} |
| 24 | + */ |
| 25 | +// @ts-ignore |
| 26 | +export function deserializeIntoGetAllOnlineMeetingMessagesGetResponse(getAllOnlineMeetingMessagesGetResponse: Partial<GetAllOnlineMeetingMessagesGetResponse> | undefined = {}) : Record<string, (node: ParseNode) => void> { |
| 27 | + return { |
| 28 | + ...deserializeIntoBaseCollectionPaginationCountResponse(getAllOnlineMeetingMessagesGetResponse), |
| 29 | + "value": n => { getAllOnlineMeetingMessagesGetResponse.value = n.getCollectionOfObjectValues<EngagementConversationMessage>(createEngagementConversationMessageFromDiscriminatorValue); }, |
| 30 | + } |
| 31 | +} |
| 32 | +export interface GetAllOnlineMeetingMessagesGetResponse extends BaseCollectionPaginationCountResponse, Parsable { |
| 33 | + /** |
| 34 | + * The value property |
| 35 | + */ |
| 36 | + value?: EngagementConversationMessage[] | null; |
| 37 | +} |
| 38 | +/** |
| 39 | + * Provides operations to call the getAllOnlineMeetingMessages method. |
| 40 | + */ |
| 41 | +export interface GetAllOnlineMeetingMessagesRequestBuilder extends BaseRequestBuilder<GetAllOnlineMeetingMessagesRequestBuilder> { |
| 42 | + /** |
| 43 | + * 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. |
| 44 | + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. |
| 45 | + * @returns {Promise<GetAllOnlineMeetingMessagesGetResponse>} |
| 46 | + * @throws {ODataError} error when the service returns a 4XX or 5XX status code |
| 47 | + * @see {@link https://learn.microsoft.com/graph/api/cloudcommunications-getallonlinemeetingmessages?view=graph-rest-1.0|Find more info here} |
| 48 | + */ |
| 49 | + get(requestConfiguration?: RequestConfiguration<GetAllOnlineMeetingMessagesRequestBuilderGetQueryParameters> | undefined) : Promise<GetAllOnlineMeetingMessagesGetResponse | undefined>; |
| 50 | + /** |
| 51 | + * 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. |
| 52 | + * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. |
| 53 | + * @returns {RequestInformation} |
| 54 | + */ |
| 55 | + toGetRequestInformation(requestConfiguration?: RequestConfiguration<GetAllOnlineMeetingMessagesRequestBuilderGetQueryParameters> | undefined) : RequestInformation; |
| 56 | +} |
| 57 | +/** |
| 58 | + * 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. |
| 59 | + */ |
| 60 | +export interface GetAllOnlineMeetingMessagesRequestBuilderGetQueryParameters { |
| 61 | + /** |
| 62 | + * Include count of items |
| 63 | + */ |
| 64 | + count?: boolean; |
| 65 | + /** |
| 66 | + * Expand related entities |
| 67 | + */ |
| 68 | + expand?: string[]; |
| 69 | + /** |
| 70 | + * Filter items by property values |
| 71 | + */ |
| 72 | + filter?: string; |
| 73 | + /** |
| 74 | + * Order items by property values |
| 75 | + */ |
| 76 | + orderby?: string[]; |
| 77 | + /** |
| 78 | + * Search items by search phrases |
| 79 | + */ |
| 80 | + search?: string; |
| 81 | + /** |
| 82 | + * Select properties to be returned |
| 83 | + */ |
| 84 | + select?: string[]; |
| 85 | + /** |
| 86 | + * Skip the first n items |
| 87 | + */ |
| 88 | + skip?: number; |
| 89 | + /** |
| 90 | + * Show only the first n items |
| 91 | + */ |
| 92 | + top?: number; |
| 93 | +} |
| 94 | +/** |
| 95 | + * Serializes information the current object |
| 96 | + * @param GetAllOnlineMeetingMessagesGetResponse The instance to serialize from. |
| 97 | + * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type. |
| 98 | + * @param writer Serialization writer to use to serialize this model |
| 99 | + */ |
| 100 | +// @ts-ignore |
| 101 | +export function serializeGetAllOnlineMeetingMessagesGetResponse(writer: SerializationWriter, getAllOnlineMeetingMessagesGetResponse: Partial<GetAllOnlineMeetingMessagesGetResponse> | undefined | null = {}, isSerializingDerivedType: boolean = false) : void { |
| 102 | + if (!getAllOnlineMeetingMessagesGetResponse || isSerializingDerivedType) { return; } |
| 103 | + serializeBaseCollectionPaginationCountResponse(writer, getAllOnlineMeetingMessagesGetResponse, isSerializingDerivedType) |
| 104 | + writer.writeCollectionOfObjectValues<EngagementConversationMessage>("value", getAllOnlineMeetingMessagesGetResponse.value, serializeEngagementConversationMessage); |
| 105 | +} |
| 106 | +/** |
| 107 | + * Uri template for the request builder. |
| 108 | + */ |
| 109 | +export const GetAllOnlineMeetingMessagesRequestBuilderUriTemplate = "{+baseurl}/communications/getAllOnlineMeetingMessages(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}"; |
| 110 | +/** |
| 111 | + * Mapper for query parameters from symbol name to serialization name represented as a constant. |
| 112 | + */ |
| 113 | +const GetAllOnlineMeetingMessagesRequestBuilderGetQueryParametersMapper: Record<string, string> = { |
| 114 | + "count": "%24count", |
| 115 | + "expand": "%24expand", |
| 116 | + "filter": "%24filter", |
| 117 | + "orderby": "%24orderby", |
| 118 | + "search": "%24search", |
| 119 | + "select": "%24select", |
| 120 | + "skip": "%24skip", |
| 121 | + "top": "%24top", |
| 122 | +}; |
| 123 | +/** |
| 124 | + * Metadata for all the requests in the request builder. |
| 125 | + */ |
| 126 | +export const GetAllOnlineMeetingMessagesRequestBuilderRequestsMetadata: RequestsMetadata = { |
| 127 | + get: { |
| 128 | + uriTemplate: GetAllOnlineMeetingMessagesRequestBuilderUriTemplate, |
| 129 | + responseBodyContentType: "application/json", |
| 130 | + errorMappings: { |
| 131 | + XXX: createODataErrorFromDiscriminatorValue as ParsableFactory<Parsable>, |
| 132 | + }, |
| 133 | + adapterMethodName: "send", |
| 134 | + responseBodyFactory: createGetAllOnlineMeetingMessagesGetResponseFromDiscriminatorValue, |
| 135 | + queryParametersMapper: GetAllOnlineMeetingMessagesRequestBuilderGetQueryParametersMapper, |
| 136 | + }, |
| 137 | +}; |
| 138 | +/* tslint:enable */ |
| 139 | +/* eslint-enable */ |
0 commit comments