@qikdev/sdk 1.0.2 → 1.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (81) hide show
  1. package/README.md +1 -1
  2. package/dist/access.html +16371 -0
  3. package/dist/api.html +1503 -0
  4. package/dist/auth.html +8455 -0
  5. package/dist/cache.html +1135 -0
  6. package/dist/content.html +10067 -0
  7. package/dist/files.html +3415 -0
  8. package/dist/filter.html +4973 -0
  9. package/dist/geo.html +3851 -0
  10. package/dist/global.html +328 -0
  11. package/dist/index.html +96 -0
  12. package/dist/main.js +2 -3
  13. package/dist/module-QikStorage-CookieStorageAdapter.html +1177 -0
  14. package/dist/module-QikStorage-LocalStorageAdapter.html +329 -0
  15. package/dist/module-QikStorage-StorageAdapter.html +3457 -0
  16. package/dist/module-QikStorage.html +1445 -0
  17. package/dist/qik.access.js.html +904 -0
  18. package/dist/qik.api.js.html +409 -0
  19. package/dist/{docs/qik.auth.js.html → qik.auth.js.html} +142 -104
  20. package/dist/qik.cache.js.html +125 -0
  21. package/dist/qik.content.js.html +967 -0
  22. package/dist/qik.core.js.html +322 -0
  23. package/dist/qik.files.js.html +249 -0
  24. package/dist/{docs/qik.filter.js.html → qik.filter.js.html} +2 -2
  25. package/dist/qik.geo.js.html +963 -0
  26. package/dist/qik.socket.js.html +451 -0
  27. package/dist/qik.storage.js.html +375 -0
  28. package/dist/qik.system.js.html +117 -0
  29. package/dist/qik.utils.js.html +1542 -0
  30. package/dist/socket.html +2975 -0
  31. package/dist/{docs/styles → styles}/jsdoc.css +2 -2
  32. package/dist/system.html +523 -0
  33. package/package.json +2 -2
  34. package/src/api/qik.socket.js +18 -12
  35. package/src/version.js +1 -1
  36. package/dist/docs/access.html +0 -3826
  37. package/dist/docs/api.html +0 -1356
  38. package/dist/docs/auth.html +0 -2180
  39. package/dist/docs/cache.html +0 -351
  40. package/dist/docs/content.html +0 -2560
  41. package/dist/docs/files.html +0 -779
  42. package/dist/docs/filter.html +0 -1355
  43. package/dist/docs/index.html +0 -96
  44. package/dist/docs/qik.access.js.html +0 -790
  45. package/dist/docs/qik.api.js.html +0 -511
  46. package/dist/docs/qik.cache.js.html +0 -131
  47. package/dist/docs/qik.content.js.html +0 -918
  48. package/dist/docs/qik.core.js.html +0 -301
  49. package/dist/docs/qik.files.js.html +0 -219
  50. package/dist/docs/qik.socket.js.html +0 -416
  51. package/dist/docs/qik.system.js.html +0 -117
  52. package/dist/docs/qik.utils.js.html +0 -1467
  53. package/dist/docs/socket.html +0 -810
  54. package/dist/docs/system.html +0 -197
  55. /package/dist/{docs/fonts → fonts}/Montserrat/Montserrat-Bold.eot +0 -0
  56. /package/dist/{docs/fonts → fonts}/Montserrat/Montserrat-Bold.ttf +0 -0
  57. /package/dist/{docs/fonts → fonts}/Montserrat/Montserrat-Bold.woff +0 -0
  58. /package/dist/{docs/fonts → fonts}/Montserrat/Montserrat-Bold.woff2 +0 -0
  59. /package/dist/{docs/fonts → fonts}/Montserrat/Montserrat-Regular.eot +0 -0
  60. /package/dist/{docs/fonts → fonts}/Montserrat/Montserrat-Regular.ttf +0 -0
  61. /package/dist/{docs/fonts → fonts}/Montserrat/Montserrat-Regular.woff +0 -0
  62. /package/dist/{docs/fonts → fonts}/Montserrat/Montserrat-Regular.woff2 +0 -0
  63. /package/dist/{docs/fonts → fonts}/Source-Sans-Pro/sourcesanspro-light-webfont.eot +0 -0
  64. /package/dist/{docs/fonts → fonts}/Source-Sans-Pro/sourcesanspro-light-webfont.svg +0 -0
  65. /package/dist/{docs/fonts → fonts}/Source-Sans-Pro/sourcesanspro-light-webfont.ttf +0 -0
  66. /package/dist/{docs/fonts → fonts}/Source-Sans-Pro/sourcesanspro-light-webfont.woff +0 -0
  67. /package/dist/{docs/fonts → fonts}/Source-Sans-Pro/sourcesanspro-light-webfont.woff2 +0 -0
  68. /package/dist/{docs/fonts → fonts}/Source-Sans-Pro/sourcesanspro-regular-webfont.eot +0 -0
  69. /package/dist/{docs/fonts → fonts}/Source-Sans-Pro/sourcesanspro-regular-webfont.svg +0 -0
  70. /package/dist/{docs/fonts → fonts}/Source-Sans-Pro/sourcesanspro-regular-webfont.ttf +0 -0
  71. /package/dist/{docs/fonts → fonts}/Source-Sans-Pro/sourcesanspro-regular-webfont.woff +0 -0
  72. /package/dist/{docs/fonts → fonts}/Source-Sans-Pro/sourcesanspro-regular-webfont.woff2 +0 -0
  73. /package/dist/{docs/scripts → scripts}/collapse.js +0 -0
  74. /package/dist/{docs/scripts → scripts}/linenumber.js +0 -0
  75. /package/dist/{docs/scripts → scripts}/nav.js +0 -0
  76. /package/dist/{docs/scripts → scripts}/polyfill.js +0 -0
  77. /package/dist/{docs/scripts → scripts}/prettify/Apache-License-2.0.txt +0 -0
  78. /package/dist/{docs/scripts → scripts}/prettify/lang-css.js +0 -0
  79. /package/dist/{docs/scripts → scripts}/prettify/prettify.js +0 -0
  80. /package/dist/{docs/scripts → scripts}/search.js +0 -0
  81. /package/dist/{docs/styles → styles}/prettify.css +0 -0
@@ -1,2560 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
- <head>
4
-
5
- <meta charset="utf-8">
6
- <title>content - Documentation</title>
7
-
8
-
9
- <script src="scripts/prettify/prettify.js"></script>
10
- <script src="scripts/prettify/lang-css.js"></script>
11
- <!--[if lt IE 9]>
12
- <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
13
- <![endif]-->
14
- <link type="text/css" rel="stylesheet" href="styles/prettify.css">
15
- <link type="text/css" rel="stylesheet" href="styles/jsdoc.css">
16
- <script src="scripts/nav.js" defer></script>
17
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
18
- </head>
19
- <body>
20
-
21
- <input type="checkbox" id="nav-trigger" class="nav-trigger" />
22
- <label for="nav-trigger" class="navicon-button x">
23
- <div class="navicon"></div>
24
- </label>
25
-
26
- <label for="nav-trigger" class="overlay"></label>
27
-
28
- <nav >
29
-
30
- <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="access.html">access</a><ul class='methods'><li data-type='method'><a href="access.html#.actionableScopes">actionableScopes</a></li><li data-type='method'><a href="access.html#.allPermissions">allPermissions</a></li><li data-type='method'><a href="access.html#.allPermissionTypes">allPermissionTypes</a></li><li data-type='method'><a href="access.html#.allUserScopes">allUserScopes</a></li><li data-type='method'><a href="access.html#.canCreate">canCreate</a></li><li data-type='method'><a href="access.html#.canDeleteItem">canDeleteItem</a></li><li data-type='method'><a href="access.html#.canEditItem">canEditItem</a></li><li data-type='method'><a href="access.html#.canEraseItem">canEraseItem</a></li><li data-type='method'><a href="access.html#.canKnowOf">canKnowOf</a></li><li data-type='method'><a href="access.html#.canListItem">canListItem</a></li><li data-type='method'><a href="access.html#.canRestoreItem">canRestoreItem</a></li><li data-type='method'><a href="access.html#.canViewItem">canViewItem</a></li><li data-type='method'><a href="access.html#.checkActionAccess">checkActionAccess</a></li><li data-type='method'><a href="access.html#.getAllDescendants">getAllDescendants</a></li><li data-type='method'><a href="access.html#.has">has</a></li><li data-type='method'><a href="access.html#.hashPermissions">hashPermissions</a></li><li data-type='method'><a href="access.html#.isAdministrator">isAdministrator</a></li><li data-type='method'><a href="access.html#.isOwner">isOwner</a></li></ul></li><li><a href="api.html">api</a><ul class='methods'><li data-type='method'><a href="api.html#.delete">delete</a></li><li data-type='method'><a href="api.html#.generateEndpointURL">generateEndpointURL</a></li><li data-type='method'><a href="api.html#.get">get</a></li><li data-type='method'><a href="api.html#.patch">patch</a></li><li data-type='method'><a href="api.html#.post">post</a></li><li data-type='method'><a href="api.html#.put">put</a></li></ul></li><li><a href="auth.html">auth</a><ul class='methods'><li data-type='method'><a href="auth.html#.changeOrganisation">changeOrganisation</a></li><li data-type='method'><a href="auth.html#.ensureValidToken">ensureValidToken</a></li><li data-type='method'><a href="auth.html#.getCurrentToken">getCurrentToken</a></li><li data-type='method'><a href="auth.html#.getCurrentUser">getCurrentUser</a></li><li data-type='method'><a href="auth.html#.impersonate">impersonate</a></li><li data-type='method'><a href="auth.html#.login">login</a></li><li data-type='method'><a href="auth.html#.logout">logout</a></li><li data-type='method'><a href="auth.html#.retrieveUserFromResetToken">retrieveUserFromResetToken</a></li><li data-type='method'><a href="auth.html#.sendResetPasswordRequest">sendResetPasswordRequest</a></li><li data-type='method'><a href="auth.html#.set">set</a></li><li data-type='method'><a href="auth.html#.sync">sync</a></li><li data-type='method'><a href="auth.html#.updateUserWithToken">updateUserWithToken</a></li></ul></li><li><a href="cache.html">cache</a><ul class='methods'><li data-type='method'><a href="cache.html#.get">get</a></li><li data-type='method'><a href="cache.html#.reset">reset</a></li></ul></li><li><a href="content.html">content</a><ul class='methods'><li data-type='method'><a href="content.html#.create">create</a></li><li data-type='method'><a href="content.html#.delete">delete</a></li><li data-type='method'><a href="content.html#.get">get</a></li><li data-type='method'><a href="content.html#.getFromSlug">getFromSlug</a></li><li data-type='method'><a href="content.html#.glossary">glossary</a></li><li data-type='method'><a href="content.html#.list">list</a></li><li data-type='method'><a href="content.html#.patch">patch</a></li><li data-type='method'><a href="content.html#.restore">restore</a></li><li data-type='method'><a href="content.html#.scopeGlossary">scopeGlossary</a></li><li data-type='method'><a href="content.html#.update">update</a></li><li data-type='method'><a href="content.html#.validateField">validateField</a></li><li data-type='method'><a href="content.html#.variables">variables</a></li></ul></li><li><a href="files.html">files</a><ul class='methods'><li data-type='method'><a href="files.html#.downloadUrl">downloadUrl</a></li><li data-type='method'><a href="files.html#.filesize">filesize</a></li><li data-type='method'><a href="files.html#.getBinaryTypeFromMime">getBinaryTypeFromMime</a></li><li data-type='method'><a href="files.html#.mediaUrl">mediaUrl</a></li></ul></li><li><a href="filter.html">filter</a><ul class='methods'><li data-type='method'><a href="filter.html#.activeFilterKeys">activeFilterKeys</a></li><li data-type='method'><a href="filter.html#.activeFilterKeys">activeFilterKeys</a></li><li data-type='method'><a href="filter.html#.activeFilterOperators">activeFilterOperators</a></li><li data-type='method'><a href="filter.html#.activeFilters">activeFilters</a></li><li data-type='method'><a href="filter.html#.activeFilterValues">activeFilterValues</a></li><li data-type='method'><a href="filter.html#.filterChangeString">filterChangeString</a></li><li data-type='method'><a href="filter.html#.isValidFilter">isValidFilter</a></li></ul></li><li><a href="socket.html">socket</a><ul class='methods'><li data-type='method'><a href="socket.html#.channel">channel</a></li><li data-type='method'><a href="socket.html#.close">close</a></li><li data-type='method'><a href="socket.html#.connect">connect</a></li><li data-type='method'><a href="socket.html#.reconnect">reconnect</a></li><li data-type='method'><a href="socket.html#.subscribe">subscribe</a></li><li data-type='method'><a href="socket.html#.unsubscribe">unsubscribe</a></li></ul></li><li><a href="system.html">system</a><ul class='methods'><li data-type='method'><a href="system.html#.countries">countries</a></li></ul></li></ul>
31
- </nav>
32
-
33
- <div id="main">
34
-
35
- <h1 class="page-title">content</h1>
36
-
37
-
38
-
39
-
40
-
41
-
42
-
43
- <section>
44
-
45
- <header>
46
-
47
- <h2>
48
- content
49
- </h2>
50
-
51
-
52
- </header>
53
-
54
- <article>
55
-
56
-
57
-
58
-
59
-
60
-
61
-
62
-
63
-
64
-
65
-
66
-
67
-
68
-
69
-
70
- <h3 class="subsection-title">Members</h3>
71
-
72
-
73
-
74
- <h4 class="name" id=".comparators"><span class="type-signature">(static, constant) </span>comparators<span class="type-signature"></span></h4>
75
-
76
-
77
-
78
-
79
-
80
- <dl class="details">
81
-
82
-
83
- <dt class="tag-source">Source:</dt>
84
- <dd class="tag-source"><ul class="dummy"><li>
85
- <a href="qik.content.js.html">qik.content.js</a>, <a href="qik.content.js.html#line197">line 197</a>
86
- </li></ul></dd>
87
-
88
-
89
-
90
-
91
-
92
-
93
-
94
-
95
-
96
-
97
-
98
-
99
-
100
-
101
-
102
-
103
-
104
-
105
-
106
-
107
-
108
-
109
-
110
-
111
-
112
-
113
-
114
-
115
-
116
-
117
-
118
- </dl>
119
-
120
-
121
-
122
-
123
-
124
- <div class="description usertext">
125
- Retrieves all available filter comparators for each data type
126
- </div>
127
-
128
-
129
-
130
-
131
-
132
-
133
-
134
- <h5>Example</h5>
135
-
136
- <pre class="prettyprint"><code>const {hash, available, types} = await sdk.content.comparators();
137
- console.log(available) // {boolean:[{title:'Is equal to', operator:'equal'...}]}
138
- console.log(hash) // {equal:[{title:'Is equal to', operator:'equal'...}]}</code></pre>
139
-
140
-
141
-
142
-
143
-
144
-
145
-
146
- <h3 class="subsection-title">Methods</h3>
147
-
148
-
149
-
150
-
151
-
152
-
153
- <h4 class="name" id=".create"><span class="type-signature">(static) </span>create<span class="signature">(type, input)</span><span class="type-signature"></span></h4>
154
-
155
-
156
-
157
-
158
-
159
-
160
- <dl class="details">
161
-
162
-
163
- <dt class="tag-source">Source:</dt>
164
- <dd class="tag-source"><ul class="dummy"><li>
165
- <a href="qik.content.js.html">qik.content.js</a>, <a href="qik.content.js.html#line698">line 698</a>
166
- </li></ul></dd>
167
-
168
-
169
-
170
-
171
-
172
-
173
-
174
-
175
-
176
-
177
-
178
-
179
-
180
-
181
-
182
-
183
-
184
-
185
-
186
-
187
-
188
-
189
-
190
-
191
-
192
-
193
-
194
-
195
-
196
-
197
-
198
- </dl>
199
-
200
-
201
-
202
-
203
-
204
- <div class="description usertext">
205
- Create an item
206
- </div>
207
-
208
-
209
-
210
-
211
-
212
-
213
-
214
-
215
-
216
- <h5>Example</h5>
217
-
218
- <pre class="prettyprint"><code>const result = await sdk.content.create('profile', {
219
- firstName:'Mickey',
220
- lastName:'Mouse',
221
- gender:'male',
222
- meta:{
223
- scopes:['61eca4746971e75c1fc670cf'],
224
- }
225
- })</code></pre>
226
-
227
-
228
-
229
-
230
- <h5>Parameters:</h5>
231
-
232
-
233
- <table class="params">
234
- <thead>
235
- <tr>
236
-
237
- <th>Name</th>
238
-
239
-
240
- <th>Type</th>
241
-
242
-
243
-
244
-
245
-
246
- <th class="last">Description</th>
247
- </tr>
248
- </thead>
249
-
250
- <tbody>
251
-
252
-
253
- <tr>
254
-
255
- <td class="name"><code>type</code></td>
256
-
257
-
258
- <td class="type">
259
-
260
-
261
- <span class="param-type">String</span>
262
-
263
-
264
-
265
- </td>
266
-
267
-
268
-
269
-
270
-
271
- <td class="description last">The type or definition of the record we want to create</td>
272
- </tr>
273
-
274
-
275
-
276
- <tr>
277
-
278
- <td class="name"><code>input</code></td>
279
-
280
-
281
- <td class="type">
282
-
283
-
284
- <span class="param-type">Object</span>
285
-
286
-
287
-
288
- </td>
289
-
290
-
291
-
292
-
293
-
294
- <td class="description last">The data for our new record</td>
295
- </tr>
296
-
297
-
298
- </tbody>
299
- </table>
300
-
301
-
302
-
303
-
304
-
305
-
306
-
307
-
308
-
309
-
310
-
311
-
312
-
313
-
314
-
315
-
316
-
317
-
318
-
319
-
320
-
321
-
322
-
323
-
324
- <h4 class="name" id=".delete"><span class="type-signature">(static) </span>delete<span class="signature">(id)</span><span class="type-signature"></span></h4>
325
-
326
-
327
-
328
-
329
-
330
-
331
- <dl class="details">
332
-
333
-
334
- <dt class="tag-source">Source:</dt>
335
- <dd class="tag-source"><ul class="dummy"><li>
336
- <a href="qik.content.js.html">qik.content.js</a>, <a href="qik.content.js.html#line799">line 799</a>
337
- </li></ul></dd>
338
-
339
-
340
-
341
-
342
-
343
-
344
-
345
-
346
-
347
-
348
-
349
-
350
-
351
-
352
-
353
-
354
-
355
-
356
-
357
-
358
-
359
-
360
-
361
-
362
-
363
-
364
-
365
-
366
-
367
-
368
-
369
- </dl>
370
-
371
-
372
-
373
-
374
-
375
- <div class="description usertext">
376
- Delete an item from the database
377
- </div>
378
-
379
-
380
-
381
-
382
-
383
-
384
-
385
-
386
-
387
- <h5>Example</h5>
388
-
389
- <pre class="prettyprint"><code>const result = await sdk.content.delete('61eca4746971e75c1fc670cd')</code></pre>
390
-
391
-
392
-
393
-
394
- <h5>Parameters:</h5>
395
-
396
-
397
- <table class="params">
398
- <thead>
399
- <tr>
400
-
401
- <th>Name</th>
402
-
403
-
404
- <th>Type</th>
405
-
406
-
407
-
408
-
409
-
410
- <th class="last">Description</th>
411
- </tr>
412
- </thead>
413
-
414
- <tbody>
415
-
416
-
417
- <tr>
418
-
419
- <td class="name"><code>id</code></td>
420
-
421
-
422
- <td class="type">
423
-
424
-
425
- <span class="param-type">String</span>
426
-
427
-
428
-
429
- </td>
430
-
431
-
432
-
433
-
434
-
435
- <td class="description last">The id of the record we want to delete</td>
436
- </tr>
437
-
438
-
439
- </tbody>
440
- </table>
441
-
442
-
443
-
444
-
445
-
446
-
447
-
448
-
449
-
450
-
451
-
452
-
453
-
454
-
455
-
456
-
457
-
458
-
459
-
460
-
461
-
462
-
463
-
464
-
465
- <h4 class="name" id=".get"><span class="type-signature">(static) </span>get<span class="signature">(id)</span><span class="type-signature"></span></h4>
466
-
467
-
468
-
469
-
470
-
471
-
472
- <dl class="details">
473
-
474
-
475
- <dt class="tag-source">Source:</dt>
476
- <dd class="tag-source"><ul class="dummy"><li>
477
- <a href="qik.content.js.html">qik.content.js</a>, <a href="qik.content.js.html#line781">line 781</a>
478
- </li></ul></dd>
479
-
480
-
481
-
482
-
483
-
484
-
485
-
486
-
487
-
488
-
489
-
490
-
491
-
492
-
493
-
494
-
495
-
496
-
497
-
498
-
499
-
500
-
501
-
502
-
503
-
504
-
505
-
506
-
507
-
508
-
509
-
510
- </dl>
511
-
512
-
513
-
514
-
515
-
516
- <div class="description usertext">
517
- Get an item from the database, Only fields the user has permission to view will be returned
518
- </div>
519
-
520
-
521
-
522
-
523
-
524
-
525
-
526
-
527
-
528
- <h5>Example</h5>
529
-
530
- <pre class="prettyprint"><code>const result = await sdk.content.get('61eca4746971e75c1fc670cd')</code></pre>
531
-
532
-
533
-
534
-
535
- <h5>Parameters:</h5>
536
-
537
-
538
- <table class="params">
539
- <thead>
540
- <tr>
541
-
542
- <th>Name</th>
543
-
544
-
545
- <th>Type</th>
546
-
547
-
548
-
549
-
550
-
551
- <th class="last">Description</th>
552
- </tr>
553
- </thead>
554
-
555
- <tbody>
556
-
557
-
558
- <tr>
559
-
560
- <td class="name"><code>id</code></td>
561
-
562
-
563
- <td class="type">
564
-
565
-
566
- <span class="param-type">String</span>
567
-
568
-
569
-
570
- </td>
571
-
572
-
573
-
574
-
575
-
576
- <td class="description last">The id of the record we want to update</td>
577
- </tr>
578
-
579
-
580
- </tbody>
581
- </table>
582
-
583
-
584
-
585
-
586
-
587
-
588
-
589
-
590
-
591
-
592
-
593
-
594
-
595
-
596
-
597
-
598
-
599
-
600
-
601
-
602
-
603
-
604
-
605
-
606
- <h4 class="name" id=".getFromSlug"><span class="type-signature">(static) </span>getFromSlug<span class="signature">(slug)</span><span class="type-signature"></span></h4>
607
-
608
-
609
-
610
-
611
-
612
-
613
- <dl class="details">
614
-
615
-
616
- <dt class="tag-source">Source:</dt>
617
- <dd class="tag-source"><ul class="dummy"><li>
618
- <a href="qik.content.js.html">qik.content.js</a>, <a href="qik.content.js.html#line832">line 832</a>
619
- </li></ul></dd>
620
-
621
-
622
-
623
-
624
-
625
-
626
-
627
-
628
-
629
-
630
-
631
-
632
-
633
-
634
-
635
-
636
-
637
-
638
-
639
-
640
-
641
-
642
-
643
-
644
-
645
-
646
-
647
-
648
-
649
-
650
-
651
- </dl>
652
-
653
-
654
-
655
-
656
-
657
- <div class="description usertext">
658
- Retrieve an item from the database by providing it's 'slug'
659
- </div>
660
-
661
-
662
-
663
-
664
-
665
-
666
-
667
-
668
-
669
- <h5>Example</h5>
670
-
671
- <pre class="prettyprint"><code>const result = await sdk.content.getFromSlug('article:how-to-get-started')
672
- const result = await sdk.content.getFromSlug('car:toyota-landcruiser')
673
- const result = await sdk.content.getFromSlug('article:toyota-landcruiser')</code></pre>
674
-
675
-
676
-
677
-
678
- <h5>Parameters:</h5>
679
-
680
-
681
- <table class="params">
682
- <thead>
683
- <tr>
684
-
685
- <th>Name</th>
686
-
687
-
688
- <th>Type</th>
689
-
690
-
691
-
692
-
693
-
694
- <th class="last">Description</th>
695
- </tr>
696
- </thead>
697
-
698
- <tbody>
699
-
700
-
701
- <tr>
702
-
703
- <td class="name"><code>slug</code></td>
704
-
705
-
706
- <td class="type">
707
-
708
-
709
- <span class="param-type">String</span>
710
-
711
-
712
-
713
- </td>
714
-
715
-
716
-
717
-
718
-
719
- <td class="description last">The slug id of the record we want to retrieve
720
- it must be provided as either `(type):(slug)`` or `(definition):(slug)`
721
- (if unsure use the `meta.abs` absolute slug property of the item you are wanting to retrieve).</td>
722
- </tr>
723
-
724
-
725
- </tbody>
726
- </table>
727
-
728
-
729
-
730
-
731
-
732
-
733
-
734
-
735
-
736
-
737
-
738
-
739
-
740
-
741
-
742
-
743
-
744
-
745
-
746
-
747
-
748
-
749
-
750
-
751
- <h4 class="name" id=".glossary"><span class="type-signature">(static) </span>glossary<span class="signature">(options)</span><span class="type-signature"></span></h4>
752
-
753
-
754
-
755
-
756
-
757
-
758
- <dl class="details">
759
-
760
-
761
- <dt class="tag-source">Source:</dt>
762
- <dd class="tag-source"><ul class="dummy"><li>
763
- <a href="qik.content.js.html">qik.content.js</a>, <a href="qik.content.js.html#line86">line 86</a>
764
- </li></ul></dd>
765
-
766
-
767
-
768
-
769
-
770
-
771
-
772
-
773
-
774
-
775
-
776
-
777
-
778
-
779
-
780
-
781
-
782
-
783
-
784
-
785
-
786
-
787
-
788
-
789
-
790
-
791
-
792
-
793
-
794
-
795
-
796
- </dl>
797
-
798
-
799
-
800
-
801
-
802
- <div class="description usertext">
803
- Retrieves the glossary of all content types visible to the requesting user.
804
- By default this will include all fields, validation, expressions and other configuration
805
- </div>
806
-
807
-
808
-
809
-
810
-
811
-
812
-
813
-
814
-
815
- <h5>Example</h5>
816
-
817
- <pre class="prettyprint"><code>const { article, profile } = await sdk.content.glossary({hash:true});</code></pre>
818
-
819
-
820
-
821
-
822
- <h5>Parameters:</h5>
823
-
824
-
825
- <table class="params">
826
- <thead>
827
- <tr>
828
-
829
- <th>Name</th>
830
-
831
-
832
- <th>Type</th>
833
-
834
-
835
-
836
-
837
-
838
- <th class="last">Description</th>
839
- </tr>
840
- </thead>
841
-
842
- <tbody>
843
-
844
-
845
- <tr>
846
-
847
- <td class="name"><code>options</code></td>
848
-
849
-
850
- <td class="type">
851
-
852
-
853
- <span class="param-type">Object</span>
854
-
855
-
856
-
857
- </td>
858
-
859
-
860
-
861
-
862
-
863
- <td class="description last">Additional options
864
- <h6>Properties</h6>
865
-
866
-
867
- <table class="params">
868
- <thead>
869
- <tr>
870
-
871
- <th>Name</th>
872
-
873
-
874
- <th>Type</th>
875
-
876
-
877
-
878
-
879
-
880
- <th class="last">Description</th>
881
- </tr>
882
- </thead>
883
-
884
- <tbody>
885
-
886
-
887
- <tr>
888
-
889
- <td class="name"><code>hash</code></td>
890
-
891
-
892
- <td class="type">
893
-
894
-
895
- <span class="param-type">Boolean</span>
896
-
897
-
898
-
899
- </td>
900
-
901
-
902
-
903
-
904
-
905
- <td class="description last">Whether to return the data as a keyed object
906
- allowing for fast selection of specific content types, by default will return as an array</td>
907
- </tr>
908
-
909
-
910
-
911
- <tr>
912
-
913
- <td class="name"><code>reload</code></td>
914
-
915
-
916
- <td class="type">
917
-
918
-
919
- <span class="param-type">Boolean</span>
920
-
921
-
922
-
923
- </td>
924
-
925
-
926
-
927
-
928
-
929
- <td class="description last">Force glossary to reload and not be cached.
930
- If false will retrieve content type data from the in memory cache</td>
931
- </tr>
932
-
933
-
934
- </tbody>
935
- </table>
936
-
937
- </td>
938
- </tr>
939
-
940
-
941
- </tbody>
942
- </table>
943
-
944
-
945
-
946
-
947
-
948
-
949
-
950
-
951
-
952
-
953
-
954
-
955
-
956
-
957
-
958
-
959
-
960
-
961
-
962
-
963
-
964
-
965
-
966
-
967
- <h4 class="name" id=".list"><span class="type-signature">(static) </span>list<span class="signature">(type, options)</span><span class="type-signature"></span></h4>
968
-
969
-
970
-
971
-
972
-
973
-
974
- <dl class="details">
975
-
976
-
977
- <dt class="tag-source">Source:</dt>
978
- <dd class="tag-source"><ul class="dummy"><li>
979
- <a href="qik.content.js.html">qik.content.js</a>, <a href="qik.content.js.html#line635">line 635</a>
980
- </li></ul></dd>
981
-
982
-
983
-
984
-
985
-
986
-
987
-
988
-
989
-
990
-
991
-
992
-
993
-
994
-
995
-
996
-
997
-
998
-
999
-
1000
-
1001
-
1002
-
1003
-
1004
-
1005
-
1006
-
1007
-
1008
-
1009
-
1010
-
1011
-
1012
- </dl>
1013
-
1014
-
1015
-
1016
-
1017
-
1018
- <div class="description usertext">
1019
- Retrieves a list of records matching the provided criteria
1020
- </div>
1021
-
1022
-
1023
-
1024
-
1025
-
1026
-
1027
-
1028
-
1029
-
1030
- <h5>Example</h5>
1031
-
1032
- <pre class="prettyprint"><code>sdk.content.list('profile', {
1033
- search:'Jim',
1034
- page:{
1035
- size:50,
1036
- index:2,
1037
- },
1038
- sort:{
1039
- key:'age',
1040
- direction:'asc',
1041
- type:'integer',
1042
- },
1043
- filter:{
1044
- operator:'and',
1045
- filters:[{
1046
- key:'age',
1047
- comparator:'>',
1048
- value:5,
1049
- }],
1050
- },
1051
- })</code></pre>
1052
-
1053
-
1054
-
1055
-
1056
- <h5>Parameters:</h5>
1057
-
1058
-
1059
- <table class="params">
1060
- <thead>
1061
- <tr>
1062
-
1063
- <th>Name</th>
1064
-
1065
-
1066
- <th>Type</th>
1067
-
1068
-
1069
-
1070
-
1071
-
1072
- <th class="last">Description</th>
1073
- </tr>
1074
- </thead>
1075
-
1076
- <tbody>
1077
-
1078
-
1079
- <tr>
1080
-
1081
- <td class="name"><code>type</code></td>
1082
-
1083
-
1084
- <td class="type">
1085
-
1086
-
1087
- <span class="param-type">String</span>
1088
-
1089
-
1090
-
1091
- </td>
1092
-
1093
-
1094
-
1095
-
1096
-
1097
- <td class="description last">The type or definition of records we want to retrieve</td>
1098
- </tr>
1099
-
1100
-
1101
-
1102
- <tr>
1103
-
1104
- <td class="name"><code>options</code></td>
1105
-
1106
-
1107
- <td class="type">
1108
-
1109
-
1110
- <span class="param-type">Object</span>
1111
-
1112
-
1113
-
1114
- </td>
1115
-
1116
-
1117
-
1118
-
1119
-
1120
- <td class="description last">The options for our query
1121
- <h6>Properties</h6>
1122
-
1123
-
1124
- <table class="params">
1125
- <thead>
1126
- <tr>
1127
-
1128
- <th>Name</th>
1129
-
1130
-
1131
- <th>Type</th>
1132
-
1133
-
1134
-
1135
-
1136
-
1137
- <th class="last">Description</th>
1138
- </tr>
1139
- </thead>
1140
-
1141
- <tbody>
1142
-
1143
-
1144
- <tr>
1145
-
1146
- <td class="name"><code>search</code></td>
1147
-
1148
-
1149
- <td class="type">
1150
-
1151
-
1152
- <span class="param-type">String</span>
1153
-
1154
-
1155
-
1156
- </td>
1157
-
1158
-
1159
-
1160
-
1161
-
1162
- <td class="description last">Freeform text keywords</td>
1163
- </tr>
1164
-
1165
-
1166
-
1167
- <tr>
1168
-
1169
- <td class="name"><code>sort</code></td>
1170
-
1171
-
1172
- <td class="type">
1173
-
1174
-
1175
- <span class="param-type">Object</span>
1176
-
1177
-
1178
-
1179
- </td>
1180
-
1181
-
1182
-
1183
-
1184
-
1185
- <td class="description last">How to sort the results
1186
- <h6>Properties</h6>
1187
-
1188
-
1189
- <table class="params">
1190
- <thead>
1191
- <tr>
1192
-
1193
- <th>Name</th>
1194
-
1195
-
1196
- <th>Type</th>
1197
-
1198
-
1199
-
1200
-
1201
-
1202
- <th class="last">Description</th>
1203
- </tr>
1204
- </thead>
1205
-
1206
- <tbody>
1207
-
1208
-
1209
- <tr>
1210
-
1211
- <td class="name"><code>key</code></td>
1212
-
1213
-
1214
- <td class="type">
1215
-
1216
-
1217
- <span class="param-type">String</span>
1218
-
1219
-
1220
-
1221
- </td>
1222
-
1223
-
1224
-
1225
-
1226
-
1227
- <td class="description last">Which key to sort on</td>
1228
- </tr>
1229
-
1230
-
1231
-
1232
- <tr>
1233
-
1234
- <td class="name"><code>direction</code></td>
1235
-
1236
-
1237
- <td class="type">
1238
-
1239
-
1240
- <span class="param-type">String</span>
1241
-
1242
-
1243
-
1244
- </td>
1245
-
1246
-
1247
-
1248
-
1249
-
1250
- <td class="description last">Which direction to sort on</td>
1251
- </tr>
1252
-
1253
-
1254
-
1255
- <tr>
1256
-
1257
- <td class="name"><code>type</code></td>
1258
-
1259
-
1260
- <td class="type">
1261
-
1262
-
1263
- <span class="param-type">Object</span>
1264
-
1265
-
1266
-
1267
- </td>
1268
-
1269
-
1270
-
1271
-
1272
-
1273
- <td class="description last">What type of data is being sorted</td>
1274
- </tr>
1275
-
1276
-
1277
- </tbody>
1278
- </table>
1279
-
1280
- </td>
1281
- </tr>
1282
-
1283
-
1284
-
1285
- <tr>
1286
-
1287
- <td class="name"><code>page</code></td>
1288
-
1289
-
1290
- <td class="type">
1291
-
1292
-
1293
- <span class="param-type">Object</span>
1294
-
1295
-
1296
-
1297
- </td>
1298
-
1299
-
1300
-
1301
-
1302
-
1303
- <td class="description last">Page configuration
1304
- <h6>Properties</h6>
1305
-
1306
-
1307
- <table class="params">
1308
- <thead>
1309
- <tr>
1310
-
1311
- <th>Name</th>
1312
-
1313
-
1314
- <th>Type</th>
1315
-
1316
-
1317
-
1318
-
1319
-
1320
- <th class="last">Description</th>
1321
- </tr>
1322
- </thead>
1323
-
1324
- <tbody>
1325
-
1326
-
1327
- <tr>
1328
-
1329
- <td class="name"><code>size</code></td>
1330
-
1331
-
1332
- <td class="type">
1333
-
1334
-
1335
- <span class="param-type">Number</span>
1336
-
1337
-
1338
-
1339
- </td>
1340
-
1341
-
1342
-
1343
-
1344
-
1345
- <td class="description last">Page size</td>
1346
- </tr>
1347
-
1348
-
1349
-
1350
- <tr>
1351
-
1352
- <td class="name"><code>index</code></td>
1353
-
1354
-
1355
- <td class="type">
1356
-
1357
-
1358
- <span class="param-type">Number</span>
1359
-
1360
-
1361
-
1362
- </td>
1363
-
1364
-
1365
-
1366
-
1367
-
1368
- <td class="description last">Page index</td>
1369
- </tr>
1370
-
1371
-
1372
- </tbody>
1373
- </table>
1374
-
1375
- </td>
1376
- </tr>
1377
-
1378
-
1379
-
1380
- <tr>
1381
-
1382
- <td class="name"><code>filter</code></td>
1383
-
1384
-
1385
- <td class="type">
1386
-
1387
-
1388
- <span class="param-type">Object</span>
1389
-
1390
-
1391
-
1392
- </td>
1393
-
1394
-
1395
-
1396
-
1397
-
1398
- <td class="description last">How to filter the results</td>
1399
- </tr>
1400
-
1401
-
1402
- </tbody>
1403
- </table>
1404
-
1405
- </td>
1406
- </tr>
1407
-
1408
-
1409
- </tbody>
1410
- </table>
1411
-
1412
-
1413
-
1414
-
1415
-
1416
-
1417
-
1418
-
1419
-
1420
-
1421
-
1422
-
1423
-
1424
-
1425
-
1426
-
1427
-
1428
-
1429
-
1430
-
1431
-
1432
-
1433
-
1434
-
1435
- <h4 class="name" id=".patch"><span class="type-signature">(static) </span>patch<span class="signature">(id, input)</span><span class="type-signature"></span></h4>
1436
-
1437
-
1438
-
1439
-
1440
-
1441
-
1442
- <dl class="details">
1443
-
1444
-
1445
- <dt class="tag-source">Source:</dt>
1446
- <dd class="tag-source"><ul class="dummy"><li>
1447
- <a href="qik.content.js.html">qik.content.js</a>, <a href="qik.content.js.html#line757">line 757</a>
1448
- </li></ul></dd>
1449
-
1450
-
1451
-
1452
-
1453
-
1454
-
1455
-
1456
-
1457
-
1458
-
1459
-
1460
-
1461
-
1462
-
1463
-
1464
-
1465
-
1466
-
1467
-
1468
-
1469
-
1470
-
1471
-
1472
-
1473
-
1474
-
1475
-
1476
-
1477
-
1478
-
1479
-
1480
- </dl>
1481
-
1482
-
1483
-
1484
-
1485
-
1486
- <div class="description usertext">
1487
- Partially update and patch an item, Only fields the user has permission to edit will be updated
1488
- </div>
1489
-
1490
-
1491
-
1492
-
1493
-
1494
-
1495
-
1496
-
1497
-
1498
- <h5>Example</h5>
1499
-
1500
- <pre class="prettyprint"><code>const result = await sdk.content.patch('61eca4746971e75c1fc670cd', {
1501
- firstName:'Mickey',
1502
- gender:'male',
1503
- })</code></pre>
1504
-
1505
-
1506
-
1507
-
1508
- <h5>Parameters:</h5>
1509
-
1510
-
1511
- <table class="params">
1512
- <thead>
1513
- <tr>
1514
-
1515
- <th>Name</th>
1516
-
1517
-
1518
- <th>Type</th>
1519
-
1520
-
1521
-
1522
-
1523
-
1524
- <th class="last">Description</th>
1525
- </tr>
1526
- </thead>
1527
-
1528
- <tbody>
1529
-
1530
-
1531
- <tr>
1532
-
1533
- <td class="name"><code>id</code></td>
1534
-
1535
-
1536
- <td class="type">
1537
-
1538
-
1539
- <span class="param-type">String</span>
1540
-
1541
-
1542
-
1543
- </td>
1544
-
1545
-
1546
-
1547
-
1548
-
1549
- <td class="description last">The id of the record we want to update</td>
1550
- </tr>
1551
-
1552
-
1553
-
1554
- <tr>
1555
-
1556
- <td class="name"><code>input</code></td>
1557
-
1558
-
1559
- <td class="type">
1560
-
1561
-
1562
- <span class="param-type">Object</span>
1563
-
1564
-
1565
-
1566
- </td>
1567
-
1568
-
1569
-
1570
-
1571
-
1572
- <td class="description last">The data to update, this will be merged with existing data</td>
1573
- </tr>
1574
-
1575
-
1576
- </tbody>
1577
- </table>
1578
-
1579
-
1580
-
1581
-
1582
-
1583
-
1584
-
1585
-
1586
-
1587
-
1588
-
1589
-
1590
-
1591
-
1592
-
1593
-
1594
-
1595
-
1596
-
1597
-
1598
-
1599
-
1600
-
1601
-
1602
- <h4 class="name" id=".restore"><span class="type-signature">(static) </span>restore<span class="signature">(id)</span><span class="type-signature"></span></h4>
1603
-
1604
-
1605
-
1606
-
1607
-
1608
-
1609
- <dl class="details">
1610
-
1611
-
1612
- <dt class="tag-source">Source:</dt>
1613
- <dd class="tag-source"><ul class="dummy"><li>
1614
- <a href="qik.content.js.html">qik.content.js</a>, <a href="qik.content.js.html#line813">line 813</a>
1615
- </li></ul></dd>
1616
-
1617
-
1618
-
1619
-
1620
-
1621
-
1622
-
1623
-
1624
-
1625
-
1626
-
1627
-
1628
-
1629
-
1630
-
1631
-
1632
-
1633
-
1634
-
1635
-
1636
-
1637
-
1638
-
1639
-
1640
-
1641
-
1642
-
1643
-
1644
-
1645
-
1646
-
1647
- </dl>
1648
-
1649
-
1650
-
1651
-
1652
-
1653
- <div class="description usertext">
1654
- Restore a deleted item from the database
1655
- </div>
1656
-
1657
-
1658
-
1659
-
1660
-
1661
-
1662
-
1663
-
1664
-
1665
- <h5>Example</h5>
1666
-
1667
- <pre class="prettyprint"><code>const result = await sdk.content.restore('61eca4746971e75c1fc670cd')</code></pre>
1668
-
1669
-
1670
-
1671
-
1672
- <h5>Parameters:</h5>
1673
-
1674
-
1675
- <table class="params">
1676
- <thead>
1677
- <tr>
1678
-
1679
- <th>Name</th>
1680
-
1681
-
1682
- <th>Type</th>
1683
-
1684
-
1685
-
1686
-
1687
-
1688
- <th class="last">Description</th>
1689
- </tr>
1690
- </thead>
1691
-
1692
- <tbody>
1693
-
1694
-
1695
- <tr>
1696
-
1697
- <td class="name"><code>id</code></td>
1698
-
1699
-
1700
- <td class="type">
1701
-
1702
-
1703
- <span class="param-type">String</span>
1704
-
1705
-
1706
-
1707
- </td>
1708
-
1709
-
1710
-
1711
-
1712
-
1713
- <td class="description last">The id of the record we want to restore</td>
1714
- </tr>
1715
-
1716
-
1717
- </tbody>
1718
- </table>
1719
-
1720
-
1721
-
1722
-
1723
-
1724
-
1725
-
1726
-
1727
-
1728
-
1729
-
1730
-
1731
-
1732
-
1733
-
1734
-
1735
-
1736
-
1737
-
1738
-
1739
-
1740
-
1741
-
1742
-
1743
- <h4 class="name" id=".scopeGlossary"><span class="type-signature">(static) </span>scopeGlossary<span class="signature">(options)</span><span class="type-signature"></span></h4>
1744
-
1745
-
1746
-
1747
-
1748
-
1749
-
1750
- <dl class="details">
1751
-
1752
-
1753
- <dt class="tag-source">Source:</dt>
1754
- <dd class="tag-source"><ul class="dummy"><li>
1755
- <a href="qik.content.js.html">qik.content.js</a>, <a href="qik.content.js.html#line151">line 151</a>
1756
- </li></ul></dd>
1757
-
1758
-
1759
-
1760
-
1761
-
1762
-
1763
-
1764
-
1765
-
1766
-
1767
-
1768
-
1769
-
1770
-
1771
-
1772
-
1773
-
1774
-
1775
-
1776
-
1777
-
1778
-
1779
-
1780
-
1781
-
1782
-
1783
-
1784
-
1785
-
1786
-
1787
-
1788
- </dl>
1789
-
1790
-
1791
-
1792
-
1793
-
1794
- <div class="description usertext">
1795
- Retrieves the scope glossary of all scopes the user can know about. This helps to convert a scope id into a human readable title.
1796
- </div>
1797
-
1798
-
1799
-
1800
-
1801
-
1802
-
1803
-
1804
-
1805
-
1806
- <h5>Example</h5>
1807
-
1808
- <pre class="prettyprint"><code>const scopes = await sdk.content.scopeGlossary();</code></pre>
1809
-
1810
-
1811
-
1812
-
1813
- <h5>Parameters:</h5>
1814
-
1815
-
1816
- <table class="params">
1817
- <thead>
1818
- <tr>
1819
-
1820
- <th>Name</th>
1821
-
1822
-
1823
- <th>Type</th>
1824
-
1825
-
1826
-
1827
-
1828
-
1829
- <th class="last">Description</th>
1830
- </tr>
1831
- </thead>
1832
-
1833
- <tbody>
1834
-
1835
-
1836
- <tr>
1837
-
1838
- <td class="name"><code>options</code></td>
1839
-
1840
-
1841
- <td class="type">
1842
-
1843
-
1844
- <span class="param-type">Object</span>
1845
-
1846
-
1847
-
1848
- </td>
1849
-
1850
-
1851
-
1852
-
1853
-
1854
- <td class="description last">Additional options
1855
- <h6>Properties</h6>
1856
-
1857
-
1858
- <table class="params">
1859
- <thead>
1860
- <tr>
1861
-
1862
- <th>Name</th>
1863
-
1864
-
1865
- <th>Type</th>
1866
-
1867
-
1868
-
1869
-
1870
-
1871
- <th class="last">Description</th>
1872
- </tr>
1873
- </thead>
1874
-
1875
- <tbody>
1876
-
1877
-
1878
- <tr>
1879
-
1880
- <td class="name"><code>hash</code></td>
1881
-
1882
-
1883
- <td class="type">
1884
-
1885
-
1886
- <span class="param-type">Boolean</span>
1887
-
1888
-
1889
-
1890
- </td>
1891
-
1892
-
1893
-
1894
-
1895
-
1896
- <td class="description last">Whether to return the data as a keyed object with each scopes _id as the key
1897
- allowing for fast selection of specific scopes, by default will return a structured tree</td>
1898
- </tr>
1899
-
1900
-
1901
-
1902
- <tr>
1903
-
1904
- <td class="name"><code>reload</code></td>
1905
-
1906
-
1907
- <td class="type">
1908
-
1909
-
1910
- <span class="param-type">Boolean</span>
1911
-
1912
-
1913
-
1914
- </td>
1915
-
1916
-
1917
-
1918
-
1919
-
1920
- <td class="description last">Force the glossary to reload and not be cached.
1921
- If false will retrieve content type data from the in memory cache</td>
1922
- </tr>
1923
-
1924
-
1925
- </tbody>
1926
- </table>
1927
-
1928
- </td>
1929
- </tr>
1930
-
1931
-
1932
- </tbody>
1933
- </table>
1934
-
1935
-
1936
-
1937
-
1938
-
1939
-
1940
-
1941
-
1942
-
1943
-
1944
-
1945
-
1946
-
1947
-
1948
-
1949
-
1950
-
1951
-
1952
-
1953
-
1954
-
1955
-
1956
-
1957
-
1958
- <h4 class="name" id=".update"><span class="type-signature">(static) </span>update<span class="signature">(id, input)</span><span class="type-signature"></span></h4>
1959
-
1960
-
1961
-
1962
-
1963
-
1964
-
1965
- <dl class="details">
1966
-
1967
-
1968
- <dt class="tag-source">Source:</dt>
1969
- <dd class="tag-source"><ul class="dummy"><li>
1970
- <a href="qik.content.js.html">qik.content.js</a>, <a href="qik.content.js.html#line729">line 729</a>
1971
- </li></ul></dd>
1972
-
1973
-
1974
-
1975
-
1976
-
1977
-
1978
-
1979
-
1980
-
1981
-
1982
-
1983
-
1984
-
1985
-
1986
-
1987
-
1988
-
1989
-
1990
-
1991
-
1992
-
1993
-
1994
-
1995
-
1996
-
1997
-
1998
-
1999
-
2000
-
2001
-
2002
-
2003
- </dl>
2004
-
2005
-
2006
-
2007
-
2008
-
2009
- <div class="description usertext">
2010
- Update an item, Only fields the user has permission to view will be returned
2011
- </div>
2012
-
2013
-
2014
-
2015
-
2016
-
2017
-
2018
-
2019
-
2020
-
2021
- <h5>Example</h5>
2022
-
2023
- <pre class="prettyprint"><code>const result = await sdk.content.update('61eca4746971e75c1fc670cd', {
2024
- firstName:'Minnie',
2025
- lastName:'Mouse',
2026
- gender:'female',
2027
- meta:{
2028
- scopes:['61eca4746971e75c1fc670cd'],
2029
- }
2030
- })</code></pre>
2031
-
2032
-
2033
-
2034
-
2035
- <h5>Parameters:</h5>
2036
-
2037
-
2038
- <table class="params">
2039
- <thead>
2040
- <tr>
2041
-
2042
- <th>Name</th>
2043
-
2044
-
2045
- <th>Type</th>
2046
-
2047
-
2048
-
2049
-
2050
-
2051
- <th class="last">Description</th>
2052
- </tr>
2053
- </thead>
2054
-
2055
- <tbody>
2056
-
2057
-
2058
- <tr>
2059
-
2060
- <td class="name"><code>id</code></td>
2061
-
2062
-
2063
- <td class="type">
2064
-
2065
-
2066
- <span class="param-type">String</span>
2067
-
2068
-
2069
-
2070
- </td>
2071
-
2072
-
2073
-
2074
-
2075
-
2076
- <td class="description last">The id of the record we want to update</td>
2077
- </tr>
2078
-
2079
-
2080
-
2081
- <tr>
2082
-
2083
- <td class="name"><code>input</code></td>
2084
-
2085
-
2086
- <td class="type">
2087
-
2088
-
2089
- <span class="param-type">Object</span>
2090
-
2091
-
2092
-
2093
- </td>
2094
-
2095
-
2096
-
2097
-
2098
-
2099
- <td class="description last">The data to update</td>
2100
- </tr>
2101
-
2102
-
2103
- </tbody>
2104
- </table>
2105
-
2106
-
2107
-
2108
-
2109
-
2110
-
2111
-
2112
-
2113
-
2114
-
2115
-
2116
-
2117
-
2118
-
2119
-
2120
-
2121
-
2122
-
2123
-
2124
-
2125
-
2126
-
2127
-
2128
-
2129
- <h4 class="name" id=".validateField"><span class="type-signature">(static) </span>validateField<span class="signature">(input, fieldDefinition, options)</span><span class="type-signature"></span></h4>
2130
-
2131
-
2132
-
2133
-
2134
-
2135
-
2136
- <dl class="details">
2137
-
2138
-
2139
- <dt class="tag-source">Source:</dt>
2140
- <dd class="tag-source"><ul class="dummy"><li>
2141
- <a href="qik.content.js.html">qik.content.js</a>, <a href="qik.content.js.html#line315">line 315</a>
2142
- </li></ul></dd>
2143
-
2144
-
2145
-
2146
-
2147
-
2148
-
2149
-
2150
-
2151
-
2152
-
2153
-
2154
-
2155
-
2156
-
2157
-
2158
-
2159
-
2160
-
2161
-
2162
-
2163
-
2164
-
2165
-
2166
-
2167
-
2168
-
2169
-
2170
-
2171
-
2172
-
2173
-
2174
- </dl>
2175
-
2176
-
2177
-
2178
-
2179
-
2180
- <div class="description usertext">
2181
- Checks if a certain input validates against a field definition
2182
- </div>
2183
-
2184
-
2185
-
2186
-
2187
-
2188
-
2189
-
2190
-
2191
-
2192
- <h5>Example</h5>
2193
-
2194
- <pre class="prettyprint"><code>const validationResult = await sdk.content.validateField('Johnny Bobbins', {title:'Name', key:'firstName', type:'string', minimum:1, maximum:1, ...});
2195
- console.log(validationResult)
2196
- // Results in { valid:true }
2197
-
2198
- const validationResult = await sdk.content.validateField('Johnny Bobbins', {title:'Number', key:'number', type:'integer', minimum:1, maximum:1, ...});
2199
- console.log(validationResult)
2200
- // Results in { valid:false, status:400, message:'Invalid number input for field' }</code></pre>
2201
-
2202
-
2203
-
2204
-
2205
- <h5>Parameters:</h5>
2206
-
2207
-
2208
- <table class="params">
2209
- <thead>
2210
- <tr>
2211
-
2212
- <th>Name</th>
2213
-
2214
-
2215
- <th>Type</th>
2216
-
2217
-
2218
-
2219
-
2220
-
2221
- <th class="last">Description</th>
2222
- </tr>
2223
- </thead>
2224
-
2225
- <tbody>
2226
-
2227
-
2228
- <tr>
2229
-
2230
- <td class="name"><code>input</code></td>
2231
-
2232
-
2233
- <td class="type">
2234
-
2235
-
2236
- <span class="param-type">Any</span>
2237
-
2238
-
2239
-
2240
- </td>
2241
-
2242
-
2243
-
2244
-
2245
-
2246
- <td class="description last">The input to validate</td>
2247
- </tr>
2248
-
2249
-
2250
-
2251
- <tr>
2252
-
2253
- <td class="name"><code>fieldDefinition</code></td>
2254
-
2255
-
2256
- <td class="type">
2257
-
2258
-
2259
- <span class="param-type">Object</span>
2260
-
2261
-
2262
-
2263
- </td>
2264
-
2265
-
2266
-
2267
-
2268
-
2269
- <td class="description last">The field to validate against</td>
2270
- </tr>
2271
-
2272
-
2273
-
2274
- <tr>
2275
-
2276
- <td class="name"><code>options</code></td>
2277
-
2278
-
2279
- <td class="type">
2280
-
2281
-
2282
- <span class="param-type">Object</span>
2283
-
2284
-
2285
-
2286
- </td>
2287
-
2288
-
2289
-
2290
-
2291
-
2292
- <td class="description last">Additional options when calling the function</td>
2293
- </tr>
2294
-
2295
-
2296
- </tbody>
2297
- </table>
2298
-
2299
-
2300
-
2301
-
2302
-
2303
-
2304
-
2305
-
2306
-
2307
-
2308
-
2309
-
2310
-
2311
-
2312
-
2313
-
2314
-
2315
-
2316
-
2317
-
2318
-
2319
-
2320
-
2321
-
2322
- <h4 class="name" id=".variables"><span class="type-signature">(static) </span>variables<span class="signature">(keys, options)</span><span class="type-signature"></span></h4>
2323
-
2324
-
2325
-
2326
-
2327
-
2328
-
2329
- <dl class="details">
2330
-
2331
-
2332
- <dt class="tag-source">Source:</dt>
2333
- <dd class="tag-source"><ul class="dummy"><li>
2334
- <a href="qik.content.js.html">qik.content.js</a>, <a href="qik.content.js.html#line45">line 45</a>
2335
- </li></ul></dd>
2336
-
2337
-
2338
-
2339
-
2340
-
2341
-
2342
-
2343
-
2344
-
2345
-
2346
-
2347
-
2348
-
2349
-
2350
-
2351
-
2352
-
2353
-
2354
-
2355
-
2356
-
2357
-
2358
-
2359
-
2360
-
2361
-
2362
-
2363
-
2364
-
2365
-
2366
-
2367
- </dl>
2368
-
2369
-
2370
-
2371
-
2372
-
2373
- <div class="description usertext">
2374
- Retrieves all global variables for the current user. This is often used when running custom code in an action.
2375
- </div>
2376
-
2377
-
2378
-
2379
-
2380
-
2381
-
2382
-
2383
-
2384
-
2385
- <h5>Example</h5>
2386
-
2387
- <pre class="prettyprint"><code>const { OAUTH_CLIENT_ID, OAUTH_KEY } = await sdk.content.variables();</code></pre>
2388
-
2389
-
2390
-
2391
-
2392
- <h5>Parameters:</h5>
2393
-
2394
-
2395
- <table class="params">
2396
- <thead>
2397
- <tr>
2398
-
2399
- <th>Name</th>
2400
-
2401
-
2402
- <th>Type</th>
2403
-
2404
-
2405
-
2406
-
2407
-
2408
- <th class="last">Description</th>
2409
- </tr>
2410
- </thead>
2411
-
2412
- <tbody>
2413
-
2414
-
2415
- <tr>
2416
-
2417
- <td class="name"><code>keys</code></td>
2418
-
2419
-
2420
- <td class="type">
2421
-
2422
-
2423
- <span class="param-type">Array</span>
2424
-
2425
-
2426
-
2427
- </td>
2428
-
2429
-
2430
-
2431
-
2432
-
2433
- <td class="description last">Provide specific keys of variables you want to retrieve</td>
2434
- </tr>
2435
-
2436
-
2437
-
2438
- <tr>
2439
-
2440
- <td class="name"><code>options</code></td>
2441
-
2442
-
2443
- <td class="type">
2444
-
2445
-
2446
- <span class="param-type">Object</span>
2447
-
2448
-
2449
-
2450
- </td>
2451
-
2452
-
2453
-
2454
-
2455
-
2456
- <td class="description last">Additional options when making the request
2457
- <h6>Properties</h6>
2458
-
2459
-
2460
- <table class="params">
2461
- <thead>
2462
- <tr>
2463
-
2464
- <th>Name</th>
2465
-
2466
-
2467
- <th>Type</th>
2468
-
2469
-
2470
-
2471
-
2472
-
2473
- <th class="last">Description</th>
2474
- </tr>
2475
- </thead>
2476
-
2477
- <tbody>
2478
-
2479
-
2480
- <tr>
2481
-
2482
- <td class="name"><code>reload</code></td>
2483
-
2484
-
2485
- <td class="type">
2486
-
2487
-
2488
- <span class="param-type">Boolean</span>
2489
-
2490
-
2491
-
2492
- </td>
2493
-
2494
-
2495
-
2496
-
2497
-
2498
- <td class="description last">Force variables to reload and not be cached. If false will retrieve any variables that are already known from the in memory cache.</td>
2499
- </tr>
2500
-
2501
-
2502
- </tbody>
2503
- </table>
2504
-
2505
- </td>
2506
- </tr>
2507
-
2508
-
2509
- </tbody>
2510
- </table>
2511
-
2512
-
2513
-
2514
-
2515
-
2516
-
2517
-
2518
-
2519
-
2520
-
2521
-
2522
-
2523
-
2524
-
2525
-
2526
-
2527
-
2528
-
2529
-
2530
-
2531
-
2532
-
2533
-
2534
-
2535
-
2536
- </article>
2537
-
2538
- </section>
2539
-
2540
-
2541
-
2542
-
2543
-
2544
-
2545
- </div>
2546
-
2547
- <br class="clear">
2548
-
2549
- <footer>
2550
- Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.11</a> on Thu Sep 28 2023 07:24:39 GMT+1000 (Australian Eastern Standard Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
2551
- </footer>
2552
-
2553
- <script>prettyPrint();</script>
2554
- <script src="scripts/polyfill.js"></script>
2555
- <script src="scripts/linenumber.js"></script>
2556
-
2557
-
2558
-
2559
- </body>
2560
- </html>