Skip to content

Commit ed6ece8

Browse files
Updated jsdocs
1 parent 50bcbed commit ed6ece8

39 files changed

+3825
-364
lines changed

Gruntfile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ module.exports = function (grunt) {
8282
},
8383
jsdoc : {
8484
dist : {
85-
src: ['<%= paths.src %>/*.js', 'USAGE.md'],
85+
src: ['<%= paths.src %>/*.js', 'JSDOC.md'],
8686
options: {
8787
destination: '<%= paths.docs %>',
8888
config: 'config/conf_jsdoc.json'

JSDOC.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# offline-persistence-toolkit 1.0.0 #
2+
3+
## Introduction ##
4+
5+
This document provides a reference to the offline-persistence-toolkit's JavaScript API. Links to JSDoc for each class can be found to the right.
6+
7+
The toolkit's [README](https://github.com/oracle/offline-persistence-toolkit/ "README") file provides an overview of the toolkit’s capabilities. Having read that document, you can find more information about how to implement a range of common and advanced use cases with the toolkit in the
8+
[Usage guide](https://github.com/oracle/offline-persistence-toolkit/blob/master/USAGE.md "Usage guide").
9+
10+
11+
## License ##
12+
Copyright (c) 2017 Oracle and/or its affiliates The Universal Permissive License (UPL), Version 1.0.

docs/DefaultResponseProxy.html

Lines changed: 90 additions & 90 deletions
Original file line numberDiff line numberDiff line change
@@ -212,15 +212,15 @@ <h3 class="subsection-title">Methods</h3>
212212

213213

214214

215-
<h4 class="name" id="getFetchEventListener"><span class="type-signature"></span>##getFetchEventListener<span class="signature">()</span><span class="type-signature"> &rarr; {function}</span></h4>
215+
<h4 class="name" id=".getResponseProxy"><span class="type-signature">(static) </span>getResponseProxy<span class="signature">(options<span class="signature-attributes">opt</span>)</span><span class="type-signature"></span></h4>
216216

217217

218218

219219

220220

221221

222222
<div class="description">
223-
Returns the Fetch Event listener
223+
Return an instance of the default response proxy
224224
</div>
225225

226226

@@ -231,6 +231,67 @@ <h4 class="name" id="getFetchEventListener"><span class="type-signature"></span>
231231

232232

233233

234+
<h5>Parameters:</h5>
235+
236+
237+
<table class="params">
238+
<thead>
239+
<tr>
240+
241+
<th>Name</th>
242+
243+
244+
<th>Type</th>
245+
246+
247+
<th>Attributes</th>
248+
249+
250+
251+
252+
<th class="last">Description</th>
253+
</tr>
254+
</thead>
255+
256+
<tbody>
257+
258+
259+
<tr>
260+
261+
<td class="name"><code>options</code></td>
262+
263+
264+
<td class="type">
265+
266+
267+
<span class="param-type">Object</span>
268+
269+
270+
271+
</td>
272+
273+
274+
<td class="attributes">
275+
276+
&lt;optional><br>
277+
278+
279+
280+
281+
282+
</td>
283+
284+
285+
286+
287+
<td class="description last">Options<ul><li>options.jsonProcessor An object containing the JSON shredder, unshredder, and queryHandler for the responses.</li><li>options.jsonProcessor.shredder JSON shredder for the responses</li><li>options.jsonProcessor.unshredder JSON unshredder for the responses</li><li>options.queryHandler query parameter handler. Should be a function which takes a Request and returns a Promise which resolves with a Response when the query parameters have been processed. If the Request was not handled then resolve to null.</li><li>options.fetchStrategy Should be a function which takes a Request and returns a Promise which resolves to a Response If unspecified then uses the default.</li><li>options.cacheStrategy Should be a function which returns a Promise which resolves with a response when the cache expiration behavior has been processed. If unspecified then uses the default which uses the HTTP cache headers to determine cache expiry.</li><li>options.requestHandlerOverride An object containing request handler overrides.</li><li>options.requestHandlerOverride.handleGet Override the default GET request handler with the supplied function.The function should take a Request object as parameter and return a Promise which resolves to a Response object.</li><li>options.requestHandlerOverride.handlePost Override the default POST request handler with the supplied function.The function should take a Request object as parameter and return a Promise which resolves to a Response object.</li><li>options.requestHandlerOverride.handlePut Override the default PUT request handler with the supplied function.The function should take a Request object as parameter and return a Promise which resolves to a Response object.</li><li>options.requestHandlerOverride.handlePatch Override the default PATCH request handler with the supplied function.The function should take a Request object as parameter and return a Promise which resolves to a Response object.</li><li>options.requestHandlerOverride.handleDelete Override the default DELETE request handler with the supplied function.The function should take a Request object as parameter and return a Promise which resolves to a Response object.</li><li>options.requestHandlerOverride.handleHead Override the default HEAD request handler with the supplied function.The function should take a Request object as parameter and return a Promise which resolves to a Response object.</li><li>options.requestHandlerOverride.handleOptions Override the default OPTIONS request handler with the supplied function.The function should take a Request object as parameter and return a Promise which resolves to a Response object.</li></ul></td>
288+
</tr>
289+
290+
291+
</tbody>
292+
</table>
293+
294+
234295

235296

236297

@@ -264,7 +325,7 @@ <h4 class="name" id="getFetchEventListener"><span class="type-signature"></span>
264325

265326
<dt class="tag-source">Source:</dt>
266327
<dd class="tag-source"><ul class="dummy"><li>
267-
<a href="defaultResponseProxy.js.html">defaultResponseProxy.js</a>, <a href="defaultResponseProxy.js.html#line101">line 101</a>
328+
<a href="defaultResponseProxy.js.html">defaultResponseProxy.js</a>, <a href="defaultResponseProxy.js.html#line57">line 57</a>
268329
</li></ul></dd>
269330

270331

@@ -287,28 +348,6 @@ <h4 class="name" id="getFetchEventListener"><span class="type-signature"></span>
287348

288349

289350

290-
<h5>Returns:</h5>
291-
292-
293-
<div class="param-desc">
294-
Returns the fetch event listener
295-
</div>
296-
297-
298-
299-
<dl>
300-
<dt>
301-
Type
302-
</dt>
303-
<dd>
304-
305-
<span class="param-type">function</span>
306-
307-
308-
</dd>
309-
</dl>
310-
311-
312351

313352

314353

@@ -320,15 +359,15 @@ <h5>Returns:</h5>
320359

321360

322361

323-
<h4 class="name" id="getResponseProxy"><span class="type-signature"></span>##getResponseProxy<span class="signature">(options<span class="signature-attributes">opt</span>)</span><span class="type-signature"></span></h4>
362+
<h4 class="name" id="getFetchEventListener"><span class="type-signature"></span>##getFetchEventListener<span class="signature">()</span><span class="type-signature"> &rarr; {function}</span></h4>
324363

325364

326365

327366

328367

329368

330369
<div class="description">
331-
Return an instance of the default response proxy
370+
Returns the Fetch Event listener
332371
</div>
333372

334373

@@ -339,67 +378,6 @@ <h4 class="name" id="getResponseProxy"><span class="type-signature"></span>##get
339378

340379

341380

342-
<h5>Parameters:</h5>
343-
344-
345-
<table class="params">
346-
<thead>
347-
<tr>
348-
349-
<th>Name</th>
350-
351-
352-
<th>Type</th>
353-
354-
355-
<th>Attributes</th>
356-
357-
358-
359-
360-
<th class="last">Description</th>
361-
</tr>
362-
</thead>
363-
364-
<tbody>
365-
366-
367-
<tr>
368-
369-
<td class="name"><code>options</code></td>
370-
371-
372-
<td class="type">
373-
374-
375-
<span class="param-type">Object</span>
376-
377-
378-
379-
</td>
380-
381-
382-
<td class="attributes">
383-
384-
&lt;optional><br>
385-
386-
387-
388-
389-
390-
</td>
391-
392-
393-
394-
395-
<td class="description last">Options<ul><li>options.jsonProcessor An object containing the JSON shredder, unshredder, and queryHandler for the responses.</li><li>options.jsonProcessor.shredder JSON shredder for the responses</li><li>options.jsonProcessor.unshredder JSON unshredder for the responses</li><li>options.queryHandler query parameter handler. Should be a function which takes a Request and returns a Promise which resolves with a Response when the query parameters have been processed. If the Request was not handled then resolve to null.</li><li>options.fetchStrategy Should be a function which takes a Request and returns a Promise which resolves to a Response If unspecified then uses the default.</li><li>options.cacheStrategy Should be a function which returns a Promise which resolves with a response when the cache expiration behavior has been processed. If unspecified then uses the default which uses the HTTP cache headers to determine cache expiry.</li><li>options.requestHandlerOverride An object containing request handler overrides.</li><li>options.requestHandlerOverride.handleGet Override the default GET request handler with the supplied function.The function should take a Request object as parameter and return a Promise which resolves to a Response object.</li><li>options.requestHandlerOverride.handlePost Override the default POST request handler with the supplied function.The function should take a Request object as parameter and return a Promise which resolves to a Response object.</li><li>options.requestHandlerOverride.handlePut Override the default PUT request handler with the supplied function.The function should take a Request object as parameter and return a Promise which resolves to a Response object.</li><li>options.requestHandlerOverride.handlePatch Override the default PATCH request handler with the supplied function.The function should take a Request object as parameter and return a Promise which resolves to a Response object.</li><li>options.requestHandlerOverride.handleDelete Override the default DELETE request handler with the supplied function.The function should take a Request object as parameter and return a Promise which resolves to a Response object.</li><li>options.requestHandlerOverride.handleHead Override the default HEAD request handler with the supplied function.The function should take a Request object as parameter and return a Promise which resolves to a Response object.</li><li>options.requestHandlerOverride.handleOptions Override the default OPTIONS request handler with the supplied function.The function should take a Request object as parameter and return a Promise which resolves to a Response object.</li></ul></td>
396-
</tr>
397-
398-
399-
</tbody>
400-
</table>
401-
402-
403381

404382

405383

@@ -433,7 +411,7 @@ <h5>Parameters:</h5>
433411

434412
<dt class="tag-source">Source:</dt>
435413
<dd class="tag-source"><ul class="dummy"><li>
436-
<a href="defaultResponseProxy.js.html">defaultResponseProxy.js</a>, <a href="defaultResponseProxy.js.html#line57">line 57</a>
414+
<a href="defaultResponseProxy.js.html">defaultResponseProxy.js</a>, <a href="defaultResponseProxy.js.html#line101">line 101</a>
437415
</li></ul></dd>
438416

439417

@@ -456,6 +434,28 @@ <h5>Parameters:</h5>
456434

457435

458436

437+
<h5>Returns:</h5>
438+
439+
440+
<div class="param-desc">
441+
Returns the fetch event listener
442+
</div>
443+
444+
445+
446+
<dl>
447+
<dt>
448+
Type
449+
</dt>
450+
<dd>
451+
452+
<span class="param-type">function</span>
453+
454+
455+
</dd>
456+
</dl>
457+
458+
459459

460460

461461

@@ -1733,7 +1733,7 @@ <h5>Returns:</h5>
17331733
</div>
17341734

17351735
<nav>
1736-
<h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="cacheStrategies.html">cacheStrategies</a></li><li><a href="DefaultResponseProxy.html">DefaultResponseProxy</a></li><li><a href="fetchStrategies.html">fetchStrategies</a></li><li><a href="oracleRestJsonShredding.html">oracleRestJsonShredding</a></li><li><a href="PersistenceManager.html">PersistenceManager</a></li><li><a href="PersistenceRegistration.html">PersistenceRegistration</a></li><li><a href="PersistenceStore.html">PersistenceStore</a></li><li><a href="PersistenceStoreManager.html">PersistenceStoreManager</a></li><li><a href="PersistenceSyncManager.html">PersistenceSyncManager</a></li><li><a href="persistenceUtils.html">persistenceUtils</a></li><li><a href="queryHandlers.html">queryHandlers</a></li><li><a href="simpleJsonShredding.html">simpleJsonShredding</a></li></ul>
1736+
<h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="cacheStrategies.html">cacheStrategies</a></li><li><a href="DefaultResponseProxy.html">DefaultResponseProxy</a></li><li><a href="fetchStrategies.html">fetchStrategies</a></li><li><a href="LocalPersistenceStoreFactory.html">LocalPersistenceStoreFactory</a></li><li><a href="OfflineCache.html">OfflineCache</a></li><li><a href="oracleRestJsonShredding.html">oracleRestJsonShredding</a></li><li><a href="PersistenceManager.html">PersistenceManager</a></li><li><a href="PersistenceRegistration.html">PersistenceRegistration</a></li><li><a href="PersistenceStore.html">PersistenceStore</a></li><li><a href="PersistenceStoreFactory.html">PersistenceStoreFactory</a></li><li><a href="PersistenceStoreManager.html">PersistenceStoreManager</a></li><li><a href="PersistenceSyncManager.html">PersistenceSyncManager</a></li><li><a href="persistenceUtils.html">persistenceUtils</a></li><li><a href="PouchDBPersistenceStoreFactory.html">PouchDBPersistenceStoreFactory</a></li><li><a href="queryHandlers.html">queryHandlers</a></li><li><a href="simpleJsonShredding.html">simpleJsonShredding</a></li></ul>
17371737
</nav>
17381738

17391739
<br class="clear">

0 commit comments

Comments
 (0)