Skip to content

Commit c65e173

Browse files
authored
Merge pull request #898 from microsoftgraph/v1.0/pipelinebuild/199559
Generated models and request builders
2 parents 850132d + 56c5ed0 commit c65e173

File tree

101 files changed

+7657
-580
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

101 files changed

+7657
-580
lines changed

packages/kiota-dom-export.txt

Lines changed: 877 additions & 57 deletions
Large diffs are not rendered by default.

packages/kiota-lock.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"descriptionHash": "4B0031F70F3815D4CFACB6D42FBB4AAC7162437FEFE6F7701E162C33E876DABB21668F488EBB5BEFE3495DDBD43E689D40C62326CEBC5B416F6289B5DD495171",
2+
"descriptionHash": "E6E45272A85DAC15CB5AC3A2A2ED9818EED73244D52A4A4A24A7D1A240F21A1D43F70EC730C56EFE2A8A55E98E2EF660C3838B6C3CEE7398BFB2C2E1885FF29A",
33
"descriptionLocation": "../../msgraph-metadata/clean_v10_openapi/openapi.yaml",
44
"lockFileVersion": "1.0.0",
55
"kiotaVersion": "1.29.0",

packages/msgraph-sdk-chats/chats/item/messages/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,12 @@ export interface MessagesRequestBuilder extends BaseRequestBuilder<MessagesReque
4141
*/
4242
get(requestConfiguration?: RequestConfiguration<MessagesRequestBuilderGetQueryParameters> | undefined) : Promise<ChatMessageCollectionResponse | undefined>;
4343
/**
44-
* Send a new chatMessage in the specified channel or a chat.
44+
* 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.
4545
* @param body The request body
4646
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
4747
* @returns {Promise<ChatMessage>}
4848
* @throws {ODataError} error when the service returns a 4XX or 5XX status code
49-
* @see {@link https://learn.microsoft.com/graph/api/chatmessage-post?view=graph-rest-1.0|Find more info here}
49+
* @see {@link https://learn.microsoft.com/graph/api/chat-post-messages?view=graph-rest-1.0|Find more info here}
5050
*/
5151
post(body: ChatMessage, requestConfiguration?: RequestConfiguration<object> | undefined) : Promise<ChatMessage | undefined>;
5252
/**
@@ -56,7 +56,7 @@ export interface MessagesRequestBuilder extends BaseRequestBuilder<MessagesReque
5656
*/
5757
toGetRequestInformation(requestConfiguration?: RequestConfiguration<MessagesRequestBuilderGetQueryParameters> | undefined) : RequestInformation;
5858
/**
59-
* Send a new chatMessage in the specified channel or a chat.
59+
* 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.
6060
* @param body The request body
6161
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
6262
* @returns {RequestInformation}
Lines changed: 139 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,139 @@
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 */

packages/msgraph-sdk-communications/communications/index.ts

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,12 @@ import { CallRecordsRequestBuilderNavigationMetadata, CallRecordsRequestBuilderR
1010
// @ts-ignore
1111
import { CallsRequestBuilderNavigationMetadata, CallsRequestBuilderRequestsMetadata, type CallsRequestBuilder } from './calls/index.js';
1212
// @ts-ignore
13+
import { GetAllOnlineMeetingMessagesRequestBuilderRequestsMetadata, type GetAllOnlineMeetingMessagesRequestBuilder } from './getAllOnlineMeetingMessages/index.js';
14+
// @ts-ignore
1315
import { GetPresencesByUserIdRequestBuilderRequestsMetadata, type GetPresencesByUserIdRequestBuilder } from './getPresencesByUserId/index.js';
1416
// @ts-ignore
17+
import { OnlineMeetingConversationsRequestBuilderNavigationMetadata, OnlineMeetingConversationsRequestBuilderRequestsMetadata, type OnlineMeetingConversationsRequestBuilder } from './onlineMeetingConversations/index.js';
18+
// @ts-ignore
1519
import { OnlineMeetingsRequestBuilderNavigationMetadata, OnlineMeetingsRequestBuilderRequestsMetadata, type OnlineMeetingsRequestBuilder } from './onlineMeetings/index.js';
1620
// @ts-ignore
1721
import { PresencesRequestBuilderNavigationMetadata, PresencesRequestBuilderRequestsMetadata, type PresencesRequestBuilder } from './presences/index.js';
@@ -30,10 +34,18 @@ export interface CommunicationsRequestBuilder extends BaseRequestBuilder<Communi
3034
* Provides operations to manage the calls property of the microsoft.graph.cloudCommunications entity.
3135
*/
3236
get calls(): CallsRequestBuilder;
37+
/**
38+
* Provides operations to call the getAllOnlineMeetingMessages method.
39+
*/
40+
get getAllOnlineMeetingMessages(): GetAllOnlineMeetingMessagesRequestBuilder;
3341
/**
3442
* Provides operations to call the getPresencesByUserId method.
3543
*/
3644
get getPresencesByUserId(): GetPresencesByUserIdRequestBuilder;
45+
/**
46+
* Provides operations to manage the onlineMeetingConversations property of the microsoft.graph.cloudCommunications entity.
47+
*/
48+
get onlineMeetingConversations(): OnlineMeetingConversationsRequestBuilder;
3749
/**
3850
* Provides operations to manage the onlineMeetings property of the microsoft.graph.cloudCommunications entity.
3951
*/
@@ -51,7 +63,7 @@ export interface CommunicationsRequestBuilder extends BaseRequestBuilder<Communi
5163
get(requestConfiguration?: RequestConfiguration<CommunicationsRequestBuilderGetQueryParameters> | undefined) : Promise<CloudCommunications | undefined>;
5264
/**
5365
* Update communications
54-
* @param body The request body
66+
* @param body Represents a container that exposes navigation properties for cloud communications resources.
5567
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
5668
* @returns {Promise<CloudCommunications>}
5769
* @throws {ODataError} error when the service returns a 4XX or 5XX status code
@@ -65,7 +77,7 @@ export interface CommunicationsRequestBuilder extends BaseRequestBuilder<Communi
6577
toGetRequestInformation(requestConfiguration?: RequestConfiguration<CommunicationsRequestBuilderGetQueryParameters> | undefined) : RequestInformation;
6678
/**
6779
* Update communications
68-
* @param body The request body
80+
* @param body Represents a container that exposes navigation properties for cloud communications resources.
6981
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
7082
* @returns {RequestInformation}
7183
*/
@@ -107,9 +119,16 @@ export const CommunicationsRequestBuilderNavigationMetadata: Record<Exclude<keyo
107119
requestsMetadata: CallsRequestBuilderRequestsMetadata,
108120
navigationMetadata: CallsRequestBuilderNavigationMetadata,
109121
},
122+
getAllOnlineMeetingMessages: {
123+
requestsMetadata: GetAllOnlineMeetingMessagesRequestBuilderRequestsMetadata,
124+
},
110125
getPresencesByUserId: {
111126
requestsMetadata: GetPresencesByUserIdRequestBuilderRequestsMetadata,
112127
},
128+
onlineMeetingConversations: {
129+
requestsMetadata: OnlineMeetingConversationsRequestBuilderRequestsMetadata,
130+
navigationMetadata: OnlineMeetingConversationsRequestBuilderNavigationMetadata,
131+
},
113132
onlineMeetings: {
114133
requestsMetadata: OnlineMeetingsRequestBuilderRequestsMetadata,
115134
navigationMetadata: OnlineMeetingsRequestBuilderNavigationMetadata,

packages/msgraph-sdk-deviceManagement/deviceManagement/telecomExpenseManagementPartners/count/index.ts renamed to packages/msgraph-sdk-communications/communications/onlineMeetingConversations/count/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export interface CountRequestBuilderGetQueryParameters {
4040
/**
4141
* Uri template for the request builder.
4242
*/
43-
export const CountRequestBuilderUriTemplate = "{+baseurl}/deviceManagement/telecomExpenseManagementPartners/$count{?%24filter,%24search}";
43+
export const CountRequestBuilderUriTemplate = "{+baseurl}/communications/onlineMeetingConversations/$count{?%24filter,%24search}";
4444
/**
4545
* Mapper for query parameters from symbol name to serialization name represented as a constant.
4646
*/

0 commit comments

Comments
 (0)