UNPKG

@microsoft/msgraph-beta-sdk-print

Version:
99 lines 5.41 kB
import { type PrintTaskDefinition, type PrintTaskDefinitionCollectionResponse } from '@microsoft/msgraph-beta-sdk/models/index.js'; import { type CountRequestBuilder } from './count/index.js'; import { type PrintTaskDefinitionItemRequestBuilder } from './item/index.js'; import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions'; /** * Provides operations to manage the taskDefinitions property of the microsoft.graph.print entity. */ export interface TaskDefinitionsRequestBuilder extends BaseRequestBuilder<TaskDefinitionsRequestBuilder> { /** * Provides operations to count the resources in the collection. */ get count(): CountRequestBuilder; /** * Provides operations to manage the taskDefinitions property of the microsoft.graph.print entity. * @param printTaskDefinitionId The unique identifier of printTaskDefinition * @returns {PrintTaskDefinitionItemRequestBuilder} */ byPrintTaskDefinitionId(printTaskDefinitionId: string): PrintTaskDefinitionItemRequestBuilder; /** * Retrieve a list of task definitions that the requesting app defined in the tenant. For details about how to use this API to add pull printing support to Universal Print, see Extending Universal Print to support pull printing. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {Promise<PrintTaskDefinitionCollectionResponse>} * @throws {ODataError} error when the service returns a 4XX or 5XX status code * @see {@link https://learn.microsoft.com/graph/api/print-list-taskdefinitions?view=graph-rest-beta|Find more info here} */ get(requestConfiguration?: RequestConfiguration<TaskDefinitionsRequestBuilderGetQueryParameters> | undefined): Promise<PrintTaskDefinitionCollectionResponse | undefined>; /** * Create a new task definition. For details about how to use this API to add pull printing support to Universal Print, see Extending Universal Print to support pull printing. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {Promise<PrintTaskDefinition>} * @throws {ODataError} error when the service returns a 4XX or 5XX status code * @see {@link https://learn.microsoft.com/graph/api/print-post-taskdefinitions?view=graph-rest-beta|Find more info here} */ post(body: PrintTaskDefinition, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<PrintTaskDefinition | undefined>; /** * Retrieve a list of task definitions that the requesting app defined in the tenant. For details about how to use this API to add pull printing support to Universal Print, see Extending Universal Print to support pull printing. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ toGetRequestInformation(requestConfiguration?: RequestConfiguration<TaskDefinitionsRequestBuilderGetQueryParameters> | undefined): RequestInformation; /** * Create a new task definition. For details about how to use this API to add pull printing support to Universal Print, see Extending Universal Print to support pull printing. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ toPostRequestInformation(body: PrintTaskDefinition, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation; } /** * Retrieve a list of task definitions that the requesting app defined in the tenant. For details about how to use this API to add pull printing support to Universal Print, see Extending Universal Print to support pull printing. */ export interface TaskDefinitionsRequestBuilderGetQueryParameters { /** * 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; } /** * Uri template for the request builder. */ export declare const TaskDefinitionsRequestBuilderUriTemplate = "{+baseurl}/print/taskDefinitions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}"; /** * Metadata for all the navigation properties in the request builder. */ export declare const TaskDefinitionsRequestBuilderNavigationMetadata: Record<Exclude<keyof TaskDefinitionsRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata>; /** * Metadata for all the requests in the request builder. */ export declare const TaskDefinitionsRequestBuilderRequestsMetadata: RequestsMetadata; //# sourceMappingURL=index.d.ts.map