- Home [object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
- Manage types
- Global context and isolation
- Manage apps
- Batch actions with app items
- Manage external services
- Scripts in widgets
- Web components
- Access permissions
- Getting started with processes
- Getting started with signatures
- Getting started with file previews
- Getting started with the organizational chart
- Getting started with users and groups
-
Getting started with the
Table data type - Dynamic calculation of event type
- Use cases
-
API
- Object types
- Data types
- Global constants
- Work with apps
- Web requests
- Access permissions
- Document flow
-
Live Chats
- LineChannelState
- LineChannelType
- LineClientBlockedStatus
- LineMessageType
- LineMetricType
- LineSessionPriority
- LineSessionState
- OperatorStatusType
- LineApplicationRef
- LineBindingApplication
- LineChannelData
- LineChannelItem
- LineChannelItemRef
- LineChannelSearch
- LineChannels
- LineClientData
- LineClientExtraData
- LineClientItem
- LineClientItemRef
- LineClientSearch
- LineClients
- LineData
- LineItem
- LineItemRef
- LineMessageData
- LineMessageItem
- LineMetricData
- LineMetricItem
- LineMetrics
- LineSearch
- LineSessionData
- LineSessionItem
- LineSessionItemRef
- LineSessionSearch
- LineSessions
- Lines
- LinesCollections
- SessionChangedPayload
- SessionFieldChange
- SessionReassignedPayload
- LineSessionPriorityEnumBase
- LineSessionStateEnumBase
- “Code” widget
- Signatures
- Business calendars
- Integration with IP telephony
- Integration with email marketing services
Live Chat client search object
Read more in Search.
Type parameters
F: ApplicationFilterClosure<T>
Hierarchy
Methods
all
The method returns a search results page with the number of results equal to Search.size, beginning with Search.from.
By default, the number of search results is 10. If you need more items, use the Search.size method.
const searchResults = await Application.search() .where((f, g) => g.and ( f.__deletedAt. eq(null), f.service.link(Context.data.service) )) .all();
Returns Promise<LineClientItem[]>
count
The method allows you to get the number of results in the search (it ignores Search.from and Search.size).
const searchResults = await Application.search() .where(( f, g) => g.and ( f.__deletedAt.eq(null), f.service. link(Context.data.service) )) .count();
Returns Promise<number>
first
The method returns the first item among the search results.
const searchResults = await Application.search() .where(( f, g) => g.and ( f.__deletedAt.eq(null), f.service. link(Context.data.service) )) .first();
Returns Promise<LineClientItem | undefined>
from
The Search.from method allows you to skip a specified number of results.
Parameters
n: number
Returns this
size
The method is used to limit the number of returned search results.
Parameters
n: number
Returns this
sort
The method is used to sort search results.
If the results need to be sorted by different parameters, you can call the method sequentially several times.
Parameters
field: keyof LineClientData
Optional ascending: undefined | false | true
Returns this
where
The Search.where method is used to set a filter for items in the collection.
Parameters
fc: F
Returns this
The Search.where method is used to set a filter for items in the collection.
Parameters
eql: EqlQuery
Optional params: EqlParams
Returns this
Methods