@microsoft/msgraph-sdk-chats
Version:
Chats fluent API for Microsoft Graph
90 lines • 4.94 kB
TypeScript
import { type TeamsAppInstallation } from '@microsoft/msgraph-sdk/models/index.js';
import { type TeamsAppRequestBuilder } from './teamsApp/index.js';
import { type TeamsAppDefinitionRequestBuilder } from './teamsAppDefinition/index.js';
import { type UpgradeRequestBuilder } from './upgrade/index.js';
import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';
/**
* Provides operations to manage the installedApps property of the microsoft.graph.chat entity.
*/
export interface TeamsAppInstallationItemRequestBuilder extends BaseRequestBuilder<TeamsAppInstallationItemRequestBuilder> {
/**
* Provides operations to manage the teamsApp property of the microsoft.graph.teamsAppInstallation entity.
*/
get teamsApp(): TeamsAppRequestBuilder;
/**
* Provides operations to manage the teamsAppDefinition property of the microsoft.graph.teamsAppInstallation entity.
*/
get teamsAppDefinition(): TeamsAppDefinitionRequestBuilder;
/**
* Provides operations to call the upgrade method.
*/
get upgrade(): UpgradeRequestBuilder;
/**
* Uninstall an app installed within a chat.
* @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
* @see {@link https://learn.microsoft.com/graph/api/chat-delete-installedapps?view=graph-rest-1.0|Find more info here}
*/
delete(requestConfiguration?: RequestConfiguration<object> | undefined): Promise<void>;
/**
* Get an app installed in a chat.
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {Promise<TeamsAppInstallation>}
* @throws {ODataError} error when the service returns a 4XX or 5XX status code
* @see {@link https://learn.microsoft.com/graph/api/chat-get-installedapps?view=graph-rest-1.0|Find more info here}
*/
get(requestConfiguration?: RequestConfiguration<TeamsAppInstallationItemRequestBuilderGetQueryParameters> | undefined): Promise<TeamsAppInstallation | undefined>;
/**
* Update the navigation property installedApps in chats
* @param body The request body
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {Promise<TeamsAppInstallation>}
* @throws {ODataError} error when the service returns a 4XX or 5XX status code
*/
patch(body: TeamsAppInstallation, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<TeamsAppInstallation | undefined>;
/**
* Uninstall an app installed within a chat.
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {RequestInformation}
*/
toDeleteRequestInformation(requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
/**
* Get an app installed in a chat.
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {RequestInformation}
*/
toGetRequestInformation(requestConfiguration?: RequestConfiguration<TeamsAppInstallationItemRequestBuilderGetQueryParameters> | undefined): RequestInformation;
/**
* Update the navigation property installedApps in chats
* @param body The request body
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {RequestInformation}
*/
toPatchRequestInformation(body: TeamsAppInstallation, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
}
/**
* Get an app installed in a chat.
*/
export interface TeamsAppInstallationItemRequestBuilderGetQueryParameters {
/**
* Expand related entities
*/
expand?: string[];
/**
* Select properties to be returned
*/
select?: string[];
}
/**
* Uri template for the request builder.
*/
export declare const TeamsAppInstallationItemRequestBuilderUriTemplate = "{+baseurl}/chats/{chat%2Did}/installedApps/{teamsAppInstallation%2Did}{?%24expand,%24select}";
/**
* Metadata for all the navigation properties in the request builder.
*/
export declare const TeamsAppInstallationItemRequestBuilderNavigationMetadata: Record<Exclude<keyof TeamsAppInstallationItemRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata>;
/**
* Metadata for all the requests in the request builder.
*/
export declare const TeamsAppInstallationItemRequestBuilderRequestsMetadata: RequestsMetadata;
//# sourceMappingURL=index.d.ts.map