Constructor Summary
| Public Constructor | ||
| public |
|
|
Member Summary
| Public Members | ||
| public get |
apiMethods: * |
|
Method Summary
| Public Methods | ||
| public |
search(query: ResourceQuery): RequestPromise Searches for customers |
|
Inherited Summary
| From class Base | ||
| public get |
Returns an object that supplies the clear, count and merge actions for this resource |
|
| public get |
apiMethods: Array<string>: * An array of methods to be exposed via APIProxy |
|
| public |
clear() Dispatches the clear action for this resource. |
|
| public |
create(resource: object, options: object): RequestPromise Performs a POST request, sending the resource along as the request body |
|
| public |
destroy(id: number | string, options: object): RequestPromise Destroys the resource |
|
| public |
fetch(query: ResourceQuery): RequestPromise Performs a GET request for the specified query. |
|
| public |
fetchCount(query: ResourceQuery): RequestPromise Performs a GET request for the resource's count endpoint |
|
| public |
Updates the given resource |
|
| protected |
urlFor(query: ResourceQuery, params: ResourceQuery): string |
|
Public Constructors
Public Members
Public Methods
public search(query: ResourceQuery): RequestPromise source
Searches for customers
Params:
| Name | Type | Attribute | Description |
| query | ResourceQuery | Query parameters |
|
| query.query | string | What to search for (e.g. |
|
| query.order | string |
|
Field and direction (default |
| query.fields | string |
|
Comma-delimeted set of fields to include in results |