UNPKG

@microsoft/msgraph-sdk-teamwork

Version:
72 lines 4.18 kB
import { type WorkforceIntegration } from '@microsoft/msgraph-sdk/models/index.js'; import { type BaseRequestBuilder, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions'; /** * Provides operations to manage the workforceIntegrations property of the microsoft.graph.teamwork entity. */ export interface WorkforceIntegrationItemRequestBuilder extends BaseRequestBuilder<WorkforceIntegrationItemRequestBuilder> { /** * Delete an instance of a workforceIntegration. * @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/workforceintegration-delete?view=graph-rest-1.0|Find more info here} */ delete(requestConfiguration?: RequestConfiguration<object> | undefined): Promise<void>; /** * Retrieve the properties and relationships of a workforceIntegration object. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {Promise<WorkforceIntegration>} * @throws {ODataError} error when the service returns a 4XX or 5XX status code * @see {@link https://learn.microsoft.com/graph/api/workforceintegration-get?view=graph-rest-1.0|Find more info here} */ get(requestConfiguration?: RequestConfiguration<WorkforceIntegrationItemRequestBuilderGetQueryParameters> | undefined): Promise<WorkforceIntegration | undefined>; /** * Update the properties of a workforceIntegration object. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {Promise<WorkforceIntegration>} * @throws {ODataError} error when the service returns a 4XX or 5XX status code * @see {@link https://learn.microsoft.com/graph/api/workforceintegration-update?view=graph-rest-1.0|Find more info here} */ patch(body: WorkforceIntegration, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<WorkforceIntegration | undefined>; /** * Delete an instance of a workforceIntegration. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ toDeleteRequestInformation(requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation; /** * Retrieve the properties and relationships of a workforceIntegration object. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ toGetRequestInformation(requestConfiguration?: RequestConfiguration<WorkforceIntegrationItemRequestBuilderGetQueryParameters> | undefined): RequestInformation; /** * Update the properties of a workforceIntegration object. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ toPatchRequestInformation(body: WorkforceIntegration, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation; } /** * Retrieve the properties and relationships of a workforceIntegration object. */ export interface WorkforceIntegrationItemRequestBuilderGetQueryParameters { /** * Expand related entities */ expand?: string[]; /** * Select properties to be returned */ select?: string[]; } /** * Uri template for the request builder. */ export declare const WorkforceIntegrationItemRequestBuilderUriTemplate = "{+baseurl}/teamwork/workforceIntegrations/{workforceIntegration%2Did}{?%24expand,%24select}"; /** * Metadata for all the requests in the request builder. */ export declare const WorkforceIntegrationItemRequestBuilderRequestsMetadata: RequestsMetadata; //# sourceMappingURL=index.d.ts.map