UNPKG

@microsoft/msgraph-sdk-shares

Version:
119 lines 6.44 kB
import { type SharedDriveItem } from '@microsoft/msgraph-sdk/models/index.js'; import { type CreatedByUserRequestBuilder } from './createdByUser/index.js'; import { type DriveItemRequestBuilder } from './driveItem/index.js'; import { type ItemsRequestBuilder } from './items/index.js'; import { type LastModifiedByUserRequestBuilder } from './lastModifiedByUser/index.js'; import { type ListRequestBuilder } from './list/index.js'; import { type ListItemRequestBuilder } from './listItem/index.js'; import { type PermissionRequestBuilder } from './permission/index.js'; import { type RootRequestBuilder } from './root/index.js'; import { type SiteRequestBuilder } from './site/index.js'; import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions'; /** * Provides operations to manage the collection of sharedDriveItem entities. */ export interface SharedDriveItemItemRequestBuilder extends BaseRequestBuilder<SharedDriveItemItemRequestBuilder> { /** * Provides operations to manage the createdByUser property of the microsoft.graph.baseItem entity. */ get createdByUser(): CreatedByUserRequestBuilder; /** * Provides operations to manage the driveItem property of the microsoft.graph.sharedDriveItem entity. */ get driveItem(): DriveItemRequestBuilder; /** * Provides operations to manage the items property of the microsoft.graph.sharedDriveItem entity. */ get items(): ItemsRequestBuilder; /** * Provides operations to manage the lastModifiedByUser property of the microsoft.graph.baseItem entity. */ get lastModifiedByUser(): LastModifiedByUserRequestBuilder; /** * Provides operations to manage the list property of the microsoft.graph.sharedDriveItem entity. */ get list(): ListRequestBuilder; /** * Provides operations to manage the listItem property of the microsoft.graph.sharedDriveItem entity. */ get listItem(): ListItemRequestBuilder; /** * Provides operations to manage the permission property of the microsoft.graph.sharedDriveItem entity. */ get permission(): PermissionRequestBuilder; /** * Provides operations to manage the root property of the microsoft.graph.sharedDriveItem entity. */ get root(): RootRequestBuilder; /** * Provides operations to manage the site property of the microsoft.graph.sharedDriveItem entity. */ get site(): SiteRequestBuilder; /** * Delete entity from shares * @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>; /** * Access a shared DriveItem or a collection of shared items by using a shareId or sharing URL. To use a sharing URL with this API, your app needs to transform the URL into a sharing token. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {Promise<SharedDriveItem>} * @throws {ODataError} error when the service returns a 4XX or 5XX status code * @see {@link https://learn.microsoft.com/graph/api/shares-get?view=graph-rest-1.0|Find more info here} */ get(requestConfiguration?: RequestConfiguration<SharedDriveItemItemRequestBuilderGetQueryParameters> | undefined): Promise<SharedDriveItem | undefined>; /** * Update entity in shares * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {Promise<SharedDriveItem>} * @throws {ODataError} error when the service returns a 4XX or 5XX status code */ patch(body: SharedDriveItem, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<SharedDriveItem | undefined>; /** * Delete entity from shares * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ toDeleteRequestInformation(requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation; /** * Access a shared DriveItem or a collection of shared items by using a shareId or sharing URL. To use a sharing URL with this API, your app needs to transform the URL into a sharing token. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ toGetRequestInformation(requestConfiguration?: RequestConfiguration<SharedDriveItemItemRequestBuilderGetQueryParameters> | undefined): RequestInformation; /** * Update entity in shares * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ toPatchRequestInformation(body: SharedDriveItem, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation; } /** * Access a shared DriveItem or a collection of shared items by using a shareId or sharing URL. To use a sharing URL with this API, your app needs to transform the URL into a sharing token. */ export interface SharedDriveItemItemRequestBuilderGetQueryParameters { /** * Expand related entities */ expand?: string[]; /** * Select properties to be returned */ select?: string[]; } /** * Uri template for the request builder. */ export declare const SharedDriveItemItemRequestBuilderUriTemplate = "{+baseurl}/shares/{sharedDriveItem%2Did}{?%24expand,%24select}"; /** * Metadata for all the navigation properties in the request builder. */ export declare const SharedDriveItemItemRequestBuilderNavigationMetadata: Record<Exclude<keyof SharedDriveItemItemRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata>; /** * Metadata for all the requests in the request builder. */ export declare const SharedDriveItemItemRequestBuilderRequestsMetadata: RequestsMetadata; //# sourceMappingURL=index.d.ts.map