UNPKG

@microsoft/msgraph-beta-sdk-users

Version:
71 lines 4 kB
import { type ShiftPreferences } 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 shiftPreferences property of the microsoft.graph.userSettings entity. */ export interface ShiftPreferencesRequestBuilder extends BaseRequestBuilder<ShiftPreferencesRequestBuilder> { /** * Delete navigation property shiftPreferences for users * @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>; /** * Retrieve the properties and relationships of a shiftPreferences object by ID. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {Promise<ShiftPreferences>} * @throws {ODataError} error when the service returns a 4XX or 5XX status code * @see {@link https://learn.microsoft.com/graph/api/shiftpreferences-get?view=graph-rest-beta|Find more info here} */ get(requestConfiguration?: RequestConfiguration<ShiftPreferencesRequestBuilderGetQueryParameters> | undefined): Promise<ShiftPreferences | undefined>; /** * Update the properties and relationships of a shiftPreferences object. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {Promise<ShiftPreferences>} * @throws {ODataError} error when the service returns a 4XX or 5XX status code * @see {@link https://learn.microsoft.com/graph/api/shiftpreferences-put?view=graph-rest-beta|Find more info here} */ patch(body: ShiftPreferences, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<ShiftPreferences | undefined>; /** * Delete navigation property shiftPreferences for users * @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 shiftPreferences object by ID. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ toGetRequestInformation(requestConfiguration?: RequestConfiguration<ShiftPreferencesRequestBuilderGetQueryParameters> | undefined): RequestInformation; /** * Update the properties and relationships of a shiftPreferences object. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ toPatchRequestInformation(body: ShiftPreferences, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation; } /** * Retrieve the properties and relationships of a shiftPreferences object by ID. */ export interface ShiftPreferencesRequestBuilderGetQueryParameters { /** * Expand related entities */ expand?: string[]; /** * Select properties to be returned */ select?: string[]; } /** * Uri template for the request builder. */ export declare const ShiftPreferencesRequestBuilderUriTemplate = "{+baseurl}/users/{user%2Did}/settings/shiftPreferences{?%24expand,%24select}"; /** * Metadata for all the requests in the request builder. */ export declare const ShiftPreferencesRequestBuilderRequestsMetadata: RequestsMetadata; //# sourceMappingURL=index.d.ts.map