Skip to content

Commit

Permalink
Update generated files with build 158125
Browse files Browse the repository at this point in the history
  • Loading branch information
Microsoft Graph DevX Tooling authored and Microsoft Graph DevX Tooling committed Jul 30, 2024
1 parent 2c6c78a commit ceb2874
Show file tree
Hide file tree
Showing 174 changed files with 7,820 additions and 3,762 deletions.
9 changes: 9 additions & 0 deletions packages/msgraph-sdk-admin/admin/people/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ import { createPeopleAdminSettingsFromDiscriminatorValue, type PeopleAdminSettin
// @ts-ignore
import { createODataErrorFromDiscriminatorValue, type ODataError } from '@microsoft/msgraph-sdk/models/oDataErrors/index.js';
// @ts-ignore
import { ItemInsightsRequestBuilderRequestsMetadata, type ItemInsightsRequestBuilder } from './itemInsights/index.js';
// @ts-ignore
import { ProfileCardPropertiesRequestBuilderNavigationMetadata, ProfileCardPropertiesRequestBuilderRequestsMetadata, type ProfileCardPropertiesRequestBuilder } from './profileCardProperties/index.js';
// @ts-ignore
import { PronounsRequestBuilderRequestsMetadata, type PronounsRequestBuilder } from './pronouns/index.js';
Expand All @@ -16,6 +18,10 @@ import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type
* Provides operations to manage the people property of the microsoft.graph.admin entity.
*/
export interface PeopleRequestBuilder extends BaseRequestBuilder<PeopleRequestBuilder> {
/**
* Provides operations to manage the itemInsights property of the microsoft.graph.peopleAdminSettings entity.
*/
get itemInsights(): ItemInsightsRequestBuilder;
/**
* Provides operations to manage the profileCardProperties property of the microsoft.graph.peopleAdminSettings entity.
*/
Expand Down Expand Up @@ -67,6 +73,9 @@ const PeopleRequestBuilderGetQueryParametersMapper: Record<string, string> = {
* Metadata for all the navigation properties in the request builder.
*/
export const PeopleRequestBuilderNavigationMetadata: Record<Exclude<keyof PeopleRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata> = {
itemInsights: {
requestsMetadata: ItemInsightsRequestBuilderRequestsMetadata,
},
profileCardProperties: {
requestsMetadata: ProfileCardPropertiesRequestBuilderRequestsMetadata,
navigationMetadata: ProfileCardPropertiesRequestBuilderNavigationMetadata,
Expand Down
118 changes: 118 additions & 0 deletions packages/msgraph-sdk-admin/admin/people/itemInsights/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,118 @@
/* tslint:disable */
/* eslint-disable */
// Generated by Microsoft Kiota
// @ts-ignore
import { createInsightsSettingsFromDiscriminatorValue, serializeInsightsSettings, type InsightsSettings } 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 RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';

/**
* Provides operations to manage the itemInsights property of the microsoft.graph.peopleAdminSettings entity.
*/
export interface ItemInsightsRequestBuilder extends BaseRequestBuilder<ItemInsightsRequestBuilder> {
/**
* Delete navigation property itemInsights for admin
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @throws {ODataError} error when the service returns a 4XX or 5XX status code
*/
delete(requestConfiguration?: RequestConfiguration<object> | undefined) : Promise<void>;
/**
* Get the properties of an insightsSettings object to display or return item insights in an organization. To learn how to customize the privacy of item insights in an organization, see Customize item insights privacy in Microsoft Graph.
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {Promise<InsightsSettings>}
* @throws {ODataError} error when the service returns a 4XX or 5XX status code
* @see {@link https://learn.microsoft.com/graph/api/peopleadminsettings-list-iteminsights?view=graph-rest-1.0|Find more info here}
*/
get(requestConfiguration?: RequestConfiguration<ItemInsightsRequestBuilderGetQueryParameters> | undefined) : Promise<InsightsSettings | undefined>;
/**
* Update privacy settings to display or return the specified type of insights in an organization. Currently, itemInsights is the only supported type of settings. To learn more about customizing insights privacy for your organization, see Customize item insights privacy in Microsoft Graph.
* @param body The request body
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {Promise<InsightsSettings>}
* @throws {ODataError} error when the service returns a 4XX or 5XX status code
* @see {@link https://learn.microsoft.com/graph/api/insightssettings-update?view=graph-rest-1.0|Find more info here}
*/
patch(body: InsightsSettings, requestConfiguration?: RequestConfiguration<object> | undefined) : Promise<InsightsSettings | undefined>;
/**
* Delete navigation property itemInsights for admin
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {RequestInformation}
*/
toDeleteRequestInformation(requestConfiguration?: RequestConfiguration<object> | undefined) : RequestInformation;
/**
* Get the properties of an insightsSettings object to display or return item insights in an organization. To learn how to customize the privacy of item insights in an organization, see Customize item insights privacy in Microsoft Graph.
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {RequestInformation}
*/
toGetRequestInformation(requestConfiguration?: RequestConfiguration<ItemInsightsRequestBuilderGetQueryParameters> | undefined) : RequestInformation;
/**
* Update privacy settings to display or return the specified type of insights in an organization. Currently, itemInsights is the only supported type of settings. To learn more about customizing insights privacy for your organization, see Customize item insights privacy in Microsoft Graph.
* @param body The request body
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {RequestInformation}
*/
toPatchRequestInformation(body: InsightsSettings, requestConfiguration?: RequestConfiguration<object> | undefined) : RequestInformation;
}
/**
* Get the properties of an insightsSettings object to display or return item insights in an organization. To learn how to customize the privacy of item insights in an organization, see Customize item insights privacy in Microsoft Graph.
*/
export interface ItemInsightsRequestBuilderGetQueryParameters {
/**
* Expand related entities
*/
expand?: string[];
/**
* Select properties to be returned
*/
select?: string[];
}
/**
* Uri template for the request builder.
*/
export const ItemInsightsRequestBuilderUriTemplate = "{+baseurl}/admin/people/itemInsights{?%24expand,%24select}";
/**
* Mapper for query parameters from symbol name to serialization name represented as a constant.
*/
const ItemInsightsRequestBuilderGetQueryParametersMapper: Record<string, string> = {
"expand": "%24expand",
"select": "%24select",
};
/**
* Metadata for all the requests in the request builder.
*/
export const ItemInsightsRequestBuilderRequestsMetadata: RequestsMetadata = {
delete: {
uriTemplate: ItemInsightsRequestBuilderUriTemplate,
responseBodyContentType: "application/json",
errorMappings: {
XXX: createODataErrorFromDiscriminatorValue as ParsableFactory<Parsable>,
},
adapterMethodName: "sendNoResponseContent",
},
get: {
uriTemplate: ItemInsightsRequestBuilderUriTemplate,
responseBodyContentType: "application/json",
errorMappings: {
XXX: createODataErrorFromDiscriminatorValue as ParsableFactory<Parsable>,
},
adapterMethodName: "send",
responseBodyFactory: createInsightsSettingsFromDiscriminatorValue,
queryParametersMapper: ItemInsightsRequestBuilderGetQueryParametersMapper,
},
patch: {
uriTemplate: ItemInsightsRequestBuilderUriTemplate,
responseBodyContentType: "application/json",
errorMappings: {
XXX: createODataErrorFromDiscriminatorValue as ParsableFactory<Parsable>,
},
adapterMethodName: "send",
responseBodyFactory: createInsightsSettingsFromDiscriminatorValue,
requestBodyContentType: "application/json",
requestBodySerializer: serializeInsightsSettings,
requestInformationContentSetMethod: "setContentFromParsable",
},
};
/* tslint:enable */
/* eslint-enable */
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export interface GetMemberGroupsPostResponse extends BaseCollectionPaginationCou
*/
export interface GetMemberGroupsRequestBuilder extends BaseRequestBuilder<GetMemberGroupsRequestBuilder> {
/**
* Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API.
* Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead.
* @param body The request body
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {Promise<GetMemberGroupsPostResponse>}
Expand All @@ -78,7 +78,7 @@ export interface GetMemberGroupsRequestBuilder extends BaseRequestBuilder<GetMem
*/
post(body: GetMemberGroupsPostRequestBody, requestConfiguration?: RequestConfiguration<object> | undefined) : Promise<GetMemberGroupsPostResponse | undefined>;
/**
* Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API.
* Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead.
* @param body The request body
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {RequestInformation}
Expand Down
131 changes: 131 additions & 0 deletions packages/msgraph-sdk-chats/chats/getAllRetainedMessages/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,131 @@
/* tslint:disable */
/* eslint-disable */
// Generated by Microsoft Kiota
// @ts-ignore
import { createChatMessageFromDiscriminatorValue, deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, serializeChatMessage, type BaseCollectionPaginationCountResponse, type ChatMessage } 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 {GetAllRetainedMessagesGetResponse}
*/
export function createGetAllRetainedMessagesGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) : ((instance?: Parsable) => Record<string, (node: ParseNode) => void>) {
return deserializeIntoGetAllRetainedMessagesGetResponse;
}
/**
* The deserialization information for the current model
* @returns {Record<string, (node: ParseNode) => void>}
*/
export function deserializeIntoGetAllRetainedMessagesGetResponse(getAllRetainedMessagesGetResponse: Partial<GetAllRetainedMessagesGetResponse> | undefined = {}) : Record<string, (node: ParseNode) => void> {
return {
...deserializeIntoBaseCollectionPaginationCountResponse(getAllRetainedMessagesGetResponse),
"value": n => { getAllRetainedMessagesGetResponse.value = n.getCollectionOfObjectValues<ChatMessage>(createChatMessageFromDiscriminatorValue); },
}
}
export interface GetAllRetainedMessagesGetResponse extends BaseCollectionPaginationCountResponse, Parsable {
/**
* The value property
*/
value?: ChatMessage[];
}
/**
* Provides operations to call the getAllRetainedMessages method.
*/
export interface GetAllRetainedMessagesRequestBuilder extends BaseRequestBuilder<GetAllRetainedMessagesRequestBuilder> {
/**
* Invoke function getAllRetainedMessages
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {Promise<GetAllRetainedMessagesGetResponse>}
* @throws {ODataError} error when the service returns a 4XX or 5XX status code
*/
get(requestConfiguration?: RequestConfiguration<GetAllRetainedMessagesRequestBuilderGetQueryParameters> | undefined) : Promise<GetAllRetainedMessagesGetResponse | undefined>;
/**
* Invoke function getAllRetainedMessages
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {RequestInformation}
*/
toGetRequestInformation(requestConfiguration?: RequestConfiguration<GetAllRetainedMessagesRequestBuilderGetQueryParameters> | undefined) : RequestInformation;
}
/**
* Invoke function getAllRetainedMessages
*/
export interface GetAllRetainedMessagesRequestBuilderGetQueryParameters {
/**
* 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 writer Serialization writer to use to serialize this model
*/
export function serializeGetAllRetainedMessagesGetResponse(writer: SerializationWriter, getAllRetainedMessagesGetResponse: Partial<GetAllRetainedMessagesGetResponse> | undefined = {}) : void {
serializeBaseCollectionPaginationCountResponse(writer, getAllRetainedMessagesGetResponse)
writer.writeCollectionOfObjectValues<ChatMessage>("value", getAllRetainedMessagesGetResponse.value, serializeChatMessage);
}
/**
* Uri template for the request builder.
*/
export const GetAllRetainedMessagesRequestBuilderUriTemplate = "{+baseurl}/chats/getAllRetainedMessages(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}";
/**
* Mapper for query parameters from symbol name to serialization name represented as a constant.
*/
const GetAllRetainedMessagesRequestBuilderGetQueryParametersMapper: 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 GetAllRetainedMessagesRequestBuilderRequestsMetadata: RequestsMetadata = {
get: {
uriTemplate: GetAllRetainedMessagesRequestBuilderUriTemplate,
responseBodyContentType: "application/json",
errorMappings: {
XXX: createODataErrorFromDiscriminatorValue as ParsableFactory<Parsable>,
},
adapterMethodName: "send",
responseBodyFactory: createGetAllRetainedMessagesGetResponseFromDiscriminatorValue,
queryParametersMapper: GetAllRetainedMessagesRequestBuilderGetQueryParametersMapper,
},
};
/* tslint:enable */
/* eslint-enable */
9 changes: 9 additions & 0 deletions packages/msgraph-sdk-chats/chats/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ import { CountRequestBuilderRequestsMetadata, type CountRequestBuilder } from '.
// @ts-ignore
import { GetAllMessagesRequestBuilderRequestsMetadata, type GetAllMessagesRequestBuilder } from './getAllMessages/index.js';
// @ts-ignore
import { GetAllRetainedMessagesRequestBuilderRequestsMetadata, type GetAllRetainedMessagesRequestBuilder } from './getAllRetainedMessages/index.js';
// @ts-ignore
import { ChatItemRequestBuilderNavigationMetadata, ChatItemRequestBuilderRequestsMetadata, type ChatItemRequestBuilder } from './item/index.js';
// @ts-ignore
import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata, type Parsable, type ParsableFactory, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';
Expand All @@ -26,6 +28,10 @@ export interface ChatsRequestBuilder extends BaseRequestBuilder<ChatsRequestBuil
* Provides operations to call the getAllMessages method.
*/
get getAllMessages(): GetAllMessagesRequestBuilder;
/**
* Provides operations to call the getAllRetainedMessages method.
*/
get getAllRetainedMessages(): GetAllRetainedMessagesRequestBuilder;
/**
* Provides operations to manage the collection of chat entities.
* @param chatId The unique identifier of chat
Expand Down Expand Up @@ -132,6 +138,9 @@ export const ChatsRequestBuilderNavigationMetadata: Record<Exclude<keyof ChatsRe
getAllMessages: {
requestsMetadata: GetAllMessagesRequestBuilderRequestsMetadata,
},
getAllRetainedMessages: {
requestsMetadata: GetAllRetainedMessagesRequestBuilderRequestsMetadata,
},
};
/**
* Metadata for all the requests in the request builder.
Expand Down
Loading

0 comments on commit ceb2874

Please sign in to comment.