import { type CreateStock, type Stock } from '../../models/index.js'; import { type PagedList } from '../../models/stock/index.js'; import { type ChangesRequestBuilder } from './changes/index.js'; import { type SerialnumbersRequestBuilder } from './serialnumbers/index.js'; import { type BaseRequestBuilder, type Guid, type KeysToExcludeForNavigationMetadata, type NavigationMetadata, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions'; /** * Builds and executes requests for operations under /v2/stocks */ export interface StocksRequestBuilder extends BaseRequestBuilder { /** * The changes property */ get changes(): ChangesRequestBuilder; /** * The serialnumbers property */ get serialnumbers(): SerialnumbersRequestBuilder; /** * Query stocks for a specific item, warehouse or storage location * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {Promise} * @throws {ErrorResponse} error when the service returns a 404 status code */ get(requestConfiguration?: RequestConfiguration | undefined): Promise; /** * Adjust the stock of a specific item. Depending from the item and warehouse many more details must be given (f.e. storage location, batch,...). * @param body Model Class: CreateStock * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {Promise} * @throws {ErrorResponse} error when the service returns a 400 status code * @throws {ErrorResponse} error when the service returns a 404 status code */ post(body: CreateStock, requestConfiguration?: RequestConfiguration | undefined): Promise; /** * Query stocks for a specific item, warehouse or storage location * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined): RequestInformation; /** * Adjust the stock of a specific item. Depending from the item and warehouse many more details must be given (f.e. storage location, batch,...). * @param body Model Class: CreateStock * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ toPostRequestInformation(body: CreateStock, requestConfiguration?: RequestConfiguration | undefined): RequestInformation; } /** * Query stocks for a specific item, warehouse or storage location */ export interface StocksRequestBuilderGetQueryParameters { itemId?: Guid; /** * Number of the page of items to fetch. */ pageNumber?: number; /** * Size of the page that is specified by `pageNumber`. */ pageSize?: number; storageLocationId?: Guid; warehouseId?: Guid; } /** * Adjust the stock of a specific item. Depending from the item and warehouse many more details must be given (f.e. storage location, batch,...). */ export interface StocksRequestBuilderPostQueryParameters { /** * If true, the workflows do not trigger automatic. */ disableAutomaticWorkflows?: boolean; } /** * Uri template for the request builder. */ export declare const StocksRequestBuilderUriTemplate = "{+baseurl}/v2/stocks{?disableAutomaticWorkflows*,itemId*,pageNumber*,pageSize*,storageLocationId*,warehouseId*}"; /** * Metadata for all the navigation properties in the request builder. */ export declare const StocksRequestBuilderNavigationMetadata: Record, NavigationMetadata>; /** * Metadata for all the requests in the request builder. */ export declare const StocksRequestBuilderRequestsMetadata: RequestsMetadata; //# sourceMappingURL=index.d.ts.map