@microsoft/msgraph-beta-sdk-organization
Version:
Organization fluent API for Microsoft Graph
71 lines • 5.04 kB
TypeScript
import { type InsightsSettings } from '@microsoft/msgraph-beta-sdk/models/index.js';
import { type BaseRequestBuilder, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';
/**
* Provides operations to manage the peopleInsights property of the microsoft.graph.organizationSettings entity.
*/
export interface PeopleInsightsRequestBuilder extends BaseRequestBuilder<PeopleInsightsRequestBuilder> {
/**
* Delete navigation property peopleInsights for organization
* @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 for displaying or returning people insights in an organization. To learn how to customize privacy for people insights in an organization, see Customize people 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/organizationsettings-list-peopleinsights?view=graph-rest-beta|Find more info here}
*/
get(requestConfiguration?: RequestConfiguration<PeopleInsightsRequestBuilderGetQueryParameters> | undefined): Promise<InsightsSettings | undefined>;
/**
* Update privacy settings to display or return the specified type of insights in an organization. The type of settings can be contact insights, item insights, or people insights. To learn more about customizing insights privacy for your organization, see:- Customize item insights privacy - Customize people insights privacy
* @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-beta|Find more info here}
*/
patch(body: InsightsSettings, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<InsightsSettings | undefined>;
/**
* Delete navigation property peopleInsights for organization
* @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 for displaying or returning people insights in an organization. To learn how to customize privacy for people insights in an organization, see Customize people insights privacy in Microsoft Graph.
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {RequestInformation}
*/
toGetRequestInformation(requestConfiguration?: RequestConfiguration<PeopleInsightsRequestBuilderGetQueryParameters> | undefined): RequestInformation;
/**
* Update privacy settings to display or return the specified type of insights in an organization. The type of settings can be contact insights, item insights, or people insights. To learn more about customizing insights privacy for your organization, see:- Customize item insights privacy - Customize people insights privacy
* @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 for displaying or returning people insights in an organization. To learn how to customize privacy for people insights in an organization, see Customize people insights privacy in Microsoft Graph.
*/
export interface PeopleInsightsRequestBuilderGetQueryParameters {
/**
* Expand related entities
*/
expand?: string[];
/**
* Select properties to be returned
*/
select?: string[];
}
/**
* Uri template for the request builder.
*/
export declare const PeopleInsightsRequestBuilderUriTemplate = "{+baseurl}/organization/{organization%2Did}/settings/peopleInsights{?%24expand,%24select}";
/**
* Metadata for all the requests in the request builder.
*/
export declare const PeopleInsightsRequestBuilderRequestsMetadata: RequestsMetadata;
//# sourceMappingURL=index.d.ts.map