Skip to content

Commit f1648f8

Browse files
Microsoft Graph DevX ToolingMicrosoft Graph DevX Tooling
authored andcommitted
feat(generation): update request builders and models
Update generated files with build 175892
1 parent b5722cc commit f1648f8

File tree

70 files changed

+2163
-207
lines changed

Some content is hidden

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

70 files changed

+2163
-207
lines changed

packages/kiota-dom-export.txt

Lines changed: 216 additions & 0 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": "0D10478CC5AE4EC6098852A872AE786DED9F45C1918ED35870E3017BFA60F4EA8C5A59A80C9DB74303CDDBD302EAFA5D7BBB8F5AA4730264459AE9A8DF1205F8",
2+
"descriptionHash": "41B7C0B6654A80DF3D52FB71F51483517EC4F51064C456068D3D0B777A06251F06CA20B829D0F2073097CBD62BD40A9804A2682D6009C81F73D0874C190B399F",
33
"descriptionLocation": "../../msgraph-metadata/clean_v10_openapi/openapi.yaml",
44
"lockFileVersion": "1.0.0",
55
"kiotaVersion": "1.22.0",

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ import { CountRequestBuilderRequestsMetadata, type CountRequestBuilder } from '.
1212
// @ts-ignore
1313
import { ConversationMemberItemRequestBuilderRequestsMetadata, type ConversationMemberItemRequestBuilder } from './item/index.js';
1414
// @ts-ignore
15+
import { RemoveRequestBuilderRequestsMetadata, type RemoveRequestBuilder } from './remove/index.js';
16+
// @ts-ignore
1517
import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata, type Parsable, type ParsableFactory, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';
1618

1719
/**
@@ -26,6 +28,10 @@ export interface MembersRequestBuilder extends BaseRequestBuilder<MembersRequest
2628
* Provides operations to count the resources in the collection.
2729
*/
2830
get count(): CountRequestBuilder;
31+
/**
32+
* Provides operations to call the remove method.
33+
*/
34+
get remove(): RemoveRequestBuilder;
2935
/**
3036
* Provides operations to manage the members property of the microsoft.graph.chat entity.
3137
* @param conversationMemberId The unique identifier of conversationMember
@@ -131,6 +137,9 @@ export const MembersRequestBuilderNavigationMetadata: Record<Exclude<keyof Membe
131137
count: {
132138
requestsMetadata: CountRequestBuilderRequestsMetadata,
133139
},
140+
remove: {
141+
requestsMetadata: RemoveRequestBuilderRequestsMetadata,
142+
},
134143
};
135144
/**
136145
* Metadata for all the requests in the request builder.

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ export interface ConversationMemberItemRequestBuilder extends BaseRequestBuilder
2020
*/
2121
delete(requestConfiguration?: RequestConfiguration<object> | undefined) : Promise<void>;
2222
/**
23-
* Retrieve a conversationMember from a chat or channel.
23+
* Retrieve a conversationMember from a chat.
2424
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
2525
* @returns {Promise<ConversationMember>}
2626
* @throws {ODataError} error when the service returns a 4XX or 5XX status code
27-
* @see {@link https://learn.microsoft.com/graph/api/conversationmember-get?view=graph-rest-1.0|Find more info here}
27+
* @see {@link https://learn.microsoft.com/graph/api/chat-get-members?view=graph-rest-1.0|Find more info here}
2828
*/
2929
get(requestConfiguration?: RequestConfiguration<ConversationMemberItemRequestBuilderGetQueryParameters> | undefined) : Promise<ConversationMember | undefined>;
3030
/**
@@ -42,7 +42,7 @@ export interface ConversationMemberItemRequestBuilder extends BaseRequestBuilder
4242
*/
4343
toDeleteRequestInformation(requestConfiguration?: RequestConfiguration<object> | undefined) : RequestInformation;
4444
/**
45-
* Retrieve a conversationMember from a chat or channel.
45+
* Retrieve a conversationMember from a chat.
4646
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
4747
* @returns {RequestInformation}
4848
*/
@@ -56,7 +56,7 @@ export interface ConversationMemberItemRequestBuilder extends BaseRequestBuilder
5656
toPatchRequestInformation(body: ConversationMember, requestConfiguration?: RequestConfiguration<object> | undefined) : RequestInformation;
5757
}
5858
/**
59-
* Retrieve a conversationMember from a chat or channel.
59+
* Retrieve a conversationMember from a chat.
6060
*/
6161
export interface ConversationMemberItemRequestBuilderGetQueryParameters {
6262
/**
Lines changed: 136 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,136 @@
1+
/* tslint:disable */
2+
/* eslint-disable */
3+
// Generated by Microsoft Kiota
4+
// @ts-ignore
5+
import { createActionResultPartFromDiscriminatorValue, createConversationMemberFromDiscriminatorValue, deserializeIntoBaseCollectionPaginationCountResponse, serializeActionResultPart, serializeBaseCollectionPaginationCountResponse, serializeConversationMember, type ActionResultPart, type BaseCollectionPaginationCountResponse, type ConversationMember } 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 AdditionalDataHolder, type BackedModel, type BackingStore, 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 {RemovePostRequestBody}
15+
*/
16+
// @ts-ignore
17+
export function createRemovePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) : ((instance?: Parsable) => Record<string, (node: ParseNode) => void>) {
18+
return deserializeIntoRemovePostRequestBody;
19+
}
20+
/**
21+
* Creates a new instance of the appropriate class based on discriminator value
22+
* @param parseNode The parse node to use to read the discriminator value and create the object
23+
* @returns {RemovePostResponse}
24+
*/
25+
// @ts-ignore
26+
export function createRemovePostResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) : ((instance?: Parsable) => Record<string, (node: ParseNode) => void>) {
27+
return deserializeIntoRemovePostResponse;
28+
}
29+
/**
30+
* The deserialization information for the current model
31+
* @returns {Record<string, (node: ParseNode) => void>}
32+
*/
33+
// @ts-ignore
34+
export function deserializeIntoRemovePostRequestBody(removePostRequestBody: Partial<RemovePostRequestBody> | undefined = {}) : Record<string, (node: ParseNode) => void> {
35+
return {
36+
"backingStoreEnabled": n => { removePostRequestBody.backingStoreEnabled = true; },
37+
"values": n => { removePostRequestBody.values = n.getCollectionOfObjectValues<ConversationMember>(createConversationMemberFromDiscriminatorValue); },
38+
}
39+
}
40+
/**
41+
* The deserialization information for the current model
42+
* @returns {Record<string, (node: ParseNode) => void>}
43+
*/
44+
// @ts-ignore
45+
export function deserializeIntoRemovePostResponse(removePostResponse: Partial<RemovePostResponse> | undefined = {}) : Record<string, (node: ParseNode) => void> {
46+
return {
47+
...deserializeIntoBaseCollectionPaginationCountResponse(removePostResponse),
48+
"value": n => { removePostResponse.value = n.getCollectionOfObjectValues<ActionResultPart>(createActionResultPartFromDiscriminatorValue); },
49+
}
50+
}
51+
export interface RemovePostRequestBody extends AdditionalDataHolder, BackedModel, Parsable {
52+
/**
53+
* Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
54+
*/
55+
additionalData?: Record<string, unknown>;
56+
/**
57+
* Stores model information.
58+
*/
59+
backingStoreEnabled?: boolean | null;
60+
/**
61+
* The values property
62+
*/
63+
values?: ConversationMember[] | null;
64+
}
65+
export interface RemovePostResponse extends BaseCollectionPaginationCountResponse, Parsable {
66+
/**
67+
* The value property
68+
*/
69+
value?: ActionResultPart[] | null;
70+
}
71+
/**
72+
* Provides operations to call the remove method.
73+
*/
74+
export interface RemoveRequestBuilder extends BaseRequestBuilder<RemoveRequestBuilder> {
75+
/**
76+
* Remove multiple members from a team in a single request. The response provides details about which memberships could and couldn't be removed.
77+
* @param body The request body
78+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
79+
* @returns {Promise<RemovePostResponse>}
80+
* @throws {ODataError} error when the service returns a 4XX or 5XX status code
81+
* @see {@link https://learn.microsoft.com/graph/api/conversationmember-remove?view=graph-rest-1.0|Find more info here}
82+
*/
83+
post(body: RemovePostRequestBody, requestConfiguration?: RequestConfiguration<object> | undefined) : Promise<RemovePostResponse | undefined>;
84+
/**
85+
* Remove multiple members from a team in a single request. The response provides details about which memberships could and couldn't be removed.
86+
* @param body The request body
87+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
88+
* @returns {RequestInformation}
89+
*/
90+
toPostRequestInformation(body: RemovePostRequestBody, requestConfiguration?: RequestConfiguration<object> | undefined) : RequestInformation;
91+
}
92+
/**
93+
* Serializes information the current object
94+
* @param writer Serialization writer to use to serialize this model
95+
*/
96+
// @ts-ignore
97+
export function serializeRemovePostRequestBody(writer: SerializationWriter, removePostRequestBody: Partial<RemovePostRequestBody> | undefined | null = {}) : void {
98+
if (removePostRequestBody) {
99+
writer.writeCollectionOfObjectValues<ConversationMember>("values", removePostRequestBody.values, serializeConversationMember);
100+
writer.writeAdditionalData(removePostRequestBody.additionalData);
101+
}
102+
}
103+
/**
104+
* Serializes information the current object
105+
* @param writer Serialization writer to use to serialize this model
106+
*/
107+
// @ts-ignore
108+
export function serializeRemovePostResponse(writer: SerializationWriter, removePostResponse: Partial<RemovePostResponse> | undefined | null = {}) : void {
109+
if (removePostResponse) {
110+
serializeBaseCollectionPaginationCountResponse(writer, removePostResponse)
111+
writer.writeCollectionOfObjectValues<ActionResultPart>("value", removePostResponse.value, serializeActionResultPart);
112+
}
113+
}
114+
/**
115+
* Uri template for the request builder.
116+
*/
117+
export const RemoveRequestBuilderUriTemplate = "{+baseurl}/chats/{chat%2Did}/members/remove";
118+
/**
119+
* Metadata for all the requests in the request builder.
120+
*/
121+
export const RemoveRequestBuilderRequestsMetadata: RequestsMetadata = {
122+
post: {
123+
uriTemplate: RemoveRequestBuilderUriTemplate,
124+
responseBodyContentType: "application/json",
125+
errorMappings: {
126+
XXX: createODataErrorFromDiscriminatorValue as ParsableFactory<Parsable>,
127+
},
128+
adapterMethodName: "send",
129+
responseBodyFactory: createRemovePostResponseFromDiscriminatorValue,
130+
requestBodyContentType: "application/json",
131+
requestBodySerializer: serializeRemovePostRequestBody,
132+
requestInformationContentSetMethod: "setContentFromParsable",
133+
},
134+
};
135+
/* tslint:enable */
136+
/* eslint-enable */

packages/msgraph-sdk-communications/communications/calls/item/participants/invite/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,16 +52,16 @@ export interface InvitePostRequestBody extends AdditionalDataHolder, BackedModel
5252
*/
5353
export interface InviteRequestBuilder extends BaseRequestBuilder<InviteRequestBuilder> {
5454
/**
55-
* Delete a specific participant in a call. In some situations, it is appropriate for an application to remove a participant from an active call. This action can be done before or after the participant answers the call. When an active caller is removed, they are immediately dropped from the call with no pre- or post-removal notification. When an invited participant is removed, any outstanding add participant request is canceled.
55+
* Invite participants to the active call. For more information about how to handle operations, see commsOperation.
5656
* @param body The request body
5757
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
5858
* @returns {Promise<InviteParticipantsOperation>}
5959
* @throws {ODataError} error when the service returns a 4XX or 5XX status code
60-
* @see {@link https://learn.microsoft.com/graph/api/participant-delete?view=graph-rest-1.0|Find more info here}
60+
* @see {@link https://learn.microsoft.com/graph/api/participant-invite?view=graph-rest-1.0|Find more info here}
6161
*/
6262
post(body: InvitePostRequestBody, requestConfiguration?: RequestConfiguration<object> | undefined) : Promise<InviteParticipantsOperation | undefined>;
6363
/**
64-
* Delete a specific participant in a call. In some situations, it is appropriate for an application to remove a participant from an active call. This action can be done before or after the participant answers the call. When an active caller is removed, they are immediately dropped from the call with no pre- or post-removal notification. When an invited participant is removed, any outstanding add participant request is canceled.
64+
* Invite participants to the active call. For more information about how to handle operations, see commsOperation.
6565
* @param body The request body
6666
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
6767
* @returns {RequestInformation}

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ export interface DeviceAppManagementRequestBuilder extends BaseRequestBuilder<De
107107
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
108108
* @returns {Promise<DeviceAppManagement>}
109109
* @throws {ODataError} error when the service returns a 4XX or 5XX status code
110-
* @see {@link https://learn.microsoft.com/graph/api/intune-books-deviceappmanagement-get?view=graph-rest-1.0|Find more info here}
110+
* @see {@link https://learn.microsoft.com/graph/api/intune-apps-deviceappmanagement-get?view=graph-rest-1.0|Find more info here}
111111
*/
112112
get(requestConfiguration?: RequestConfiguration<DeviceAppManagementRequestBuilderGetQueryParameters> | undefined) : Promise<DeviceAppManagement | undefined>;
113113
/**
@@ -116,7 +116,7 @@ export interface DeviceAppManagementRequestBuilder extends BaseRequestBuilder<De
116116
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
117117
* @returns {Promise<DeviceAppManagement>}
118118
* @throws {ODataError} error when the service returns a 4XX or 5XX status code
119-
* @see {@link https://learn.microsoft.com/graph/api/intune-partnerintegration-deviceappmanagement-update?view=graph-rest-1.0|Find more info here}
119+
* @see {@link https://learn.microsoft.com/graph/api/intune-unlock-deviceappmanagement-update?view=graph-rest-1.0|Find more info here}
120120
*/
121121
patch(body: DeviceAppManagement, requestConfiguration?: RequestConfiguration<object> | undefined) : Promise<DeviceAppManagement | undefined>;
122122
/**

packages/msgraph-sdk-deviceAppManagement/deviceAppManagement/managedAppPolicies/index.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@ export interface ManagedAppPoliciesRequestBuilder extends BaseRequestBuilder<Man
2727
*/
2828
byManagedAppPolicyId(managedAppPolicyId: string) : ManagedAppPolicyItemRequestBuilder;
2929
/**
30-
* List properties and relationships of the targetedManagedAppProtection objects.
30+
* List properties and relationships of the managedAppPolicy objects.
3131
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
3232
* @returns {Promise<ManagedAppPolicyCollectionResponse>}
3333
* @throws {ODataError} error when the service returns a 4XX or 5XX status code
34-
* @see {@link https://learn.microsoft.com/graph/api/intune-mam-targetedmanagedappprotection-list?view=graph-rest-1.0|Find more info here}
34+
* @see {@link https://learn.microsoft.com/graph/api/intune-mam-managedapppolicy-list?view=graph-rest-1.0|Find more info here}
3535
*/
3636
get(requestConfiguration?: RequestConfiguration<ManagedAppPoliciesRequestBuilderGetQueryParameters> | undefined) : Promise<ManagedAppPolicyCollectionResponse | undefined>;
3737
/**
@@ -43,7 +43,7 @@ export interface ManagedAppPoliciesRequestBuilder extends BaseRequestBuilder<Man
4343
*/
4444
post(body: ManagedAppPolicy, requestConfiguration?: RequestConfiguration<object> | undefined) : Promise<ManagedAppPolicy | undefined>;
4545
/**
46-
* List properties and relationships of the targetedManagedAppProtection objects.
46+
* List properties and relationships of the managedAppPolicy objects.
4747
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
4848
* @returns {RequestInformation}
4949
*/
@@ -57,7 +57,7 @@ export interface ManagedAppPoliciesRequestBuilder extends BaseRequestBuilder<Man
5757
toPostRequestInformation(body: ManagedAppPolicy, requestConfiguration?: RequestConfiguration<object> | undefined) : RequestInformation;
5858
}
5959
/**
60-
* List properties and relationships of the targetedManagedAppProtection objects.
60+
* List properties and relationships of the managedAppPolicy objects.
6161
*/
6262
export interface ManagedAppPoliciesRequestBuilderGetQueryParameters {
6363
/**

packages/msgraph-sdk-deviceAppManagement/deviceAppManagement/managedAppPolicies/item/index.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@ export interface ManagedAppPolicyItemRequestBuilder extends BaseRequestBuilder<M
2525
*/
2626
delete(requestConfiguration?: RequestConfiguration<object> | undefined) : Promise<void>;
2727
/**
28-
* Read properties and relationships of the targetedManagedAppProtection object.
28+
* Read properties and relationships of the windowsInformationProtection object.
2929
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
3030
* @returns {Promise<ManagedAppPolicy>}
3131
* @throws {ODataError} error when the service returns a 4XX or 5XX status code
32-
* @see {@link https://learn.microsoft.com/graph/api/intune-mam-targetedmanagedappprotection-get?view=graph-rest-1.0|Find more info here}
32+
* @see {@link https://learn.microsoft.com/graph/api/intune-mam-windowsinformationprotection-get?view=graph-rest-1.0|Find more info here}
3333
*/
3434
get(requestConfiguration?: RequestConfiguration<ManagedAppPolicyItemRequestBuilderGetQueryParameters> | undefined) : Promise<ManagedAppPolicy | undefined>;
3535
/**
@@ -47,7 +47,7 @@ export interface ManagedAppPolicyItemRequestBuilder extends BaseRequestBuilder<M
4747
*/
4848
toDeleteRequestInformation(requestConfiguration?: RequestConfiguration<object> | undefined) : RequestInformation;
4949
/**
50-
* Read properties and relationships of the targetedManagedAppProtection object.
50+
* Read properties and relationships of the windowsInformationProtection object.
5151
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
5252
* @returns {RequestInformation}
5353
*/
@@ -61,7 +61,7 @@ export interface ManagedAppPolicyItemRequestBuilder extends BaseRequestBuilder<M
6161
toPatchRequestInformation(body: ManagedAppPolicy, requestConfiguration?: RequestConfiguration<object> | undefined) : RequestInformation;
6262
}
6363
/**
64-
* Read properties and relationships of the targetedManagedAppProtection object.
64+
* Read properties and relationships of the windowsInformationProtection object.
6565
*/
6666
export interface ManagedAppPolicyItemRequestBuilderGetQueryParameters {
6767
/**

0 commit comments

Comments
 (0)