Documentation Index
Fetch the complete documentation index at: https://terminal49.com/docs/llms.txt
Use this file to discover all available pages before exploring further.
Class: ShipmentManager
Extends
Constructors
Constructor
new ShipmentManager(transport, defaultFormat?): ShipmentManager
Parameters
| Parameter | Type | Default value |
|---|
transport | Transport | undefined |
defaultFormat | ResponseFormat | 'raw' |
Returns
ShipmentManager
Inherited from
BaseManager.constructor
Methods
get()
get(id, includeContainers?, options?): Promise<any>
Parameters
| Parameter | Type | Default value |
|---|
id | string | undefined |
includeContainers | boolean | true |
options? | CallOptions & object | undefined |
Returns
Promise<any>
iterate()
iterate(filters?, options?): AsyncGenerator<Shipment, void, unknown>
Parameters
| Parameter | Type |
|---|
filters | { carrier?: string; include?: IncludeParam<ShipmentInclude>; includeContainers?: boolean; port?: string; status?: string; updatedAfter?: string; } | undefined |
options? | Omit<ListOptions, "page"> |
Returns
AsyncGenerator<Shipment, void, unknown>
list()
list(filters?, options?): Promise<any>
Parameters
| Parameter | Type |
|---|
filters | { carrier?: string; include?: IncludeParam<ShipmentInclude>; includeContainers?: boolean; port?: string; status?: string; updatedAfter?: string; } |
filters.carrier? | string |
filters.include? | IncludeParam<ShipmentInclude> |
filters.includeContainers? | boolean |
filters.port? | string |
filters.status? | string |
filters.updatedAfter? | string |
options? | ListOptions |
Returns
Promise<any>
resumeTracking()
resumeTracking(id, options?): Promise<any>
Parameters
| Parameter | Type |
|---|
id | string |
options? | CallOptions |
Returns
Promise<any>
stopTracking()
stopTracking(id, options?): Promise<any>
Parameters
| Parameter | Type |
|---|
id | string |
options? | CallOptions |
Returns
Promise<any>
update()
update(id, attrs, options?): Promise<any>
Parameters
| Parameter | Type |
|---|
id | string |
attrs | Record<string, any> |
options? | CallOptions |
Returns
Promise<any>