@microsoft/msgraph-beta-sdk-organization
Version:
Organization fluent API for Microsoft Graph
71 lines • 4.68 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 contactInsights property of the microsoft.graph.organizationSettings entity.
*/
export interface ContactInsightsRequestBuilder extends BaseRequestBuilder<ContactInsightsRequestBuilder> {
/**
* Delete navigation property contactInsights 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 contact insights in an organization.
* @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-contactinsights?view=graph-rest-beta|Find more info here}
*/
get(requestConfiguration?: RequestConfiguration<ContactInsightsRequestBuilderGetQueryParameters> | undefined): Promise<InsightsSettings | undefined>;
/**
* Update privacy settings to display or return the specified type of insightsSettings 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 contactInsights 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 contact insights in an organization.
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {RequestInformation}
*/
toGetRequestInformation(requestConfiguration?: RequestConfiguration<ContactInsightsRequestBuilderGetQueryParameters> | undefined): RequestInformation;
/**
* Update privacy settings to display or return the specified type of insightsSettings 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 contact insights in an organization.
*/
export interface ContactInsightsRequestBuilderGetQueryParameters {
/**
* Expand related entities
*/
expand?: string[];
/**
* Select properties to be returned
*/
select?: string[];
}
/**
* Uri template for the request builder.
*/
export declare const ContactInsightsRequestBuilderUriTemplate = "{+baseurl}/organization/{organization%2Did}/settings/contactInsights{?%24expand,%24select}";
/**
* Metadata for all the requests in the request builder.
*/
export declare const ContactInsightsRequestBuilderRequestsMetadata: RequestsMetadata;
//# sourceMappingURL=index.d.ts.map