import { type PagedList } from '../../models/customer/index.js'; import { type CreateCustomer, type Customer } from '../../models/index.js'; import { type CustomfieldsRequestBuilder } from './customfields/index.js'; import { type WithCustomerItemRequestBuilder } from './item/index.js'; import { type WorkflowEventsRequestBuilder } from './workflowEvents/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/customers */ export interface CustomersRequestBuilder extends BaseRequestBuilder { /** * The customfields property */ get customfields(): CustomfieldsRequestBuilder; /** * The workflowEvents property */ get workflowEvents(): WorkflowEventsRequestBuilder; /** * Gets an item from the JtlErpApi.v2.customers.item collection * @param customerId The id of the Customer to return. * @returns {WithCustomerItemRequestBuilder} */ byCustomerId(customerId: Guid): WithCustomerItemRequestBuilder; /** * Query all customers * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {Promise} */ get(requestConfiguration?: RequestConfiguration | undefined): Promise; /** * Create a new customer * @param body Model Class: CreateCustomer * @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 */ post(body: CreateCustomer, requestConfiguration?: RequestConfiguration | undefined): Promise; /** * Query all customers * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined): RequestInformation; /** * Create a new customer * @param body Model Class: CreateCustomer * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ toPostRequestInformation(body: CreateCustomer, requestConfiguration?: RequestConfiguration | undefined): RequestInformation; } /** * Query all customers */ export interface CustomersRequestBuilderGetQueryParameters { categoryId?: Guid; groupId?: Guid; /** * All customers where the last change happened after or equal the given time */ lastChangeFrom?: Date; /** * All customers where the last change happened before or equal the given time */ lastChangeTo?: Date; /** * Search for a specific customer number. */ number?: string; /** * Number of the page of items to fetch. */ pageNumber?: number; /** * Size of the page that is specified by `pageNumber`. */ pageSize?: number; /** * All Search Keywords for the customer, like the number and the most important fields from the billing address. */ searchKeyWord?: string; } /** * Create a new customer */ export interface CustomersRequestBuilderPostQueryParameters { /** * If true, the workflows do not trigger automatic. */ disableAutomaticWorkflows?: boolean; } /** * Uri template for the request builder. */ export declare const CustomersRequestBuilderUriTemplate = "{+baseurl}/v2/customers{?categoryId*,disableAutomaticWorkflows*,groupId*,lastChangeFrom*,lastChangeTo*,number*,pageNumber*,pageSize*,searchKeyWord*}"; /** * Metadata for all the navigation properties in the request builder. */ export declare const CustomersRequestBuilderNavigationMetadata: Record, NavigationMetadata>; /** * Metadata for all the requests in the request builder. */ export declare const CustomersRequestBuilderRequestsMetadata: RequestsMetadata; //# sourceMappingURL=index.d.ts.map