cozy-client / CozyLink
Class: CozyLink¶
Hierarchy¶
-
CozyLink
Constructors¶
constructor¶
• new CozyLink(requestHandler, persistHandler)
Parameters
| Name | Type |
|---|---|
requestHandler |
any |
persistHandler |
any |
Defined in
packages/cozy-client/src/links/CozyLink.js:2
Methods¶
persistCozyData¶
▸ persistCozyData(data, forward): Promise<any>
Persist the given data into the links storage
Parameters
| Name | Type | Description |
|---|---|---|
data |
any |
The document to persist |
forward |
any |
The next persistCozyData of the chain |
Returns
Promise<any>
Defined in
packages/cozy-client/src/links/CozyLink.js:32
request¶
▸ request(operation, options, result, forward): Promise<any>
Request the given operation from the link
Parameters
| Name | Type | Description |
|---|---|---|
operation |
any |
The operation to request |
options |
any |
The request options |
result |
any |
The result from the previous request of the chain |
forward |
any |
The next request of the chain |
Returns
Promise<any>
Defined in
packages/cozy-client/src/links/CozyLink.js:21
reset¶
▸ reset(): Promise<any>
Reset the link data
Returns
Promise<any>
Defined in