Represents a search context for customers.

interface CustomerSearch {
    ExceptRole: ((roleSystemname: string, param?: SearchParam) => CustomerSearch);
    GetAllDetailed: (() => PagedList<Customer>);
    IncludeInactive: (() => CustomerSearch);
    InDepartment: (() => CustomerSearch);
    InEmail: ((email: string, param?: SearchParam) => CustomerSearch);
    InExternalId: ((externalId: string, param?: SearchParam) => CustomerSearch);
    InFirstName: ((firstName: string, param?: SearchParam) => CustomerSearch);
    InLastName: ((lastName: string, param?: SearchParam) => CustomerSearch);
    InRole: ((roleSystemname: string, param?: SearchParam) => CustomerSearch);
    InUsername: ((username: string, param?: SearchParam) => CustomerSearch);
    LoadAll: (() => CustomerSearch);
    LoadDepartment: (() => CustomerSearch);
    LoadEmail: (() => CustomerSearch);
    LoadUsername: (() => CustomerSearch);
    SetPageIndex: ((pageIndex: number) => CustomerSearch);
    SetPageSize: ((pageSize: number) => CustomerSearch);
    WithAttribute: ((attributeName: string, value: string, param?: SearchParam) => CustomerSearch);
}

Properties

ExceptRole: ((roleSystemname: string, param?: SearchParam) => CustomerSearch)

Excludes customers by role in the search context.

Type declaration

GetAllDetailed: (() => PagedList<Customer>)

Loads all customers with detailed information.

IncludeInactive: (() => CustomerSearch)

Includes inactive customers in the search context.

InDepartment: (() => CustomerSearch)

Filters customers by department in the search context.

InEmail: ((email: string, param?: SearchParam) => CustomerSearch)

Filters customers by email address in the search context.

Type declaration

InExternalId: ((externalId: string, param?: SearchParam) => CustomerSearch)

Filters customers by external ID in the search context.

Type declaration

InFirstName: ((firstName: string, param?: SearchParam) => CustomerSearch)

Filters customers by first name in the search context.

Type declaration

InLastName: ((lastName: string, param?: SearchParam) => CustomerSearch)

Filters customers by last name in the search context.

Type declaration

InRole: ((roleSystemname: string, param?: SearchParam) => CustomerSearch)

Filters customers by role in the search context.

Type declaration

InUsername: ((username: string, param?: SearchParam) => CustomerSearch)

Filters customers by username in the search context.

Type declaration

LoadAll: (() => CustomerSearch)

Loads all customers in the search context.

LoadDepartment: (() => CustomerSearch)

Loads customers by department in the search context.

LoadEmail: (() => CustomerSearch)

Loads customers by email address in the search context.

LoadUsername: (() => CustomerSearch)

Loads customers by username in the search context.

SetPageIndex: ((pageIndex: number) => CustomerSearch)

Sets the page index for pagination in the search context.

Type declaration

SetPageSize: ((pageSize: number) => CustomerSearch)

Sets the page size for pagination in the search context.

Type declaration

WithAttribute: ((attributeName: string, value: string, param?: SearchParam) => CustomerSearch)

Filters customers by attribute in the search context.

Type declaration

    • (attributeName, value, param?): CustomerSearch
    • Parameters

      • attributeName: string

        The name of the attribute to filter by.

      • value: string

        The value of the attribute to filter by.

      • Optionalparam: SearchParam

        Optional search parameter.

      Returns CustomerSearch