@beauraines/rtm-api 1.4.1

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 (52) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +285 -0
  3. package/config.js +22 -0
  4. package/docs/RTMClient.html +2798 -0
  5. package/docs/RTMError.html +1029 -0
  6. package/docs/RTMList.html +966 -0
  7. package/docs/RTMResponse.html +868 -0
  8. package/docs/RTMSuccess.html +337 -0
  9. package/docs/RTMTask.html +2461 -0
  10. package/docs/RTMUser.html +6761 -0
  11. package/docs/client_auth.js.html +123 -0
  12. package/docs/client_index.js.html +241 -0
  13. package/docs/client_user.js.html +170 -0
  14. package/docs/global.html +386 -0
  15. package/docs/index.html +305 -0
  16. package/docs/list_index.js.html +159 -0
  17. package/docs/response_error.js.html +172 -0
  18. package/docs/response_response.js.html +160 -0
  19. package/docs/response_success.js.html +104 -0
  20. package/docs/scripts/linenumber.js +25 -0
  21. package/docs/scripts/prettify/Apache-License-2.0.txt +202 -0
  22. package/docs/scripts/prettify/lang-css.js +2 -0
  23. package/docs/scripts/prettify/prettify.js +28 -0
  24. package/docs/styles/jsdoc.css +664 -0
  25. package/docs/styles/prettify.css +79 -0
  26. package/docs/task_helper.js.html +531 -0
  27. package/docs/task_index.js.html +304 -0
  28. package/docs/user_index.js.html +347 -0
  29. package/docs/user_lists.js.html +208 -0
  30. package/docs/user_tasks.js.html +703 -0
  31. package/jsdoc.json +13 -0
  32. package/package.json +33 -0
  33. package/src/client/auth.js +65 -0
  34. package/src/client/index.js +182 -0
  35. package/src/client/user.js +112 -0
  36. package/src/list/helper.js +131 -0
  37. package/src/list/index.js +101 -0
  38. package/src/response/error.js +114 -0
  39. package/src/response/index.js +8 -0
  40. package/src/response/parse.js +51 -0
  41. package/src/response/response.js +102 -0
  42. package/src/response/success.js +46 -0
  43. package/src/task/helper.js +469 -0
  44. package/src/task/index.js +264 -0
  45. package/src/user/index.js +288 -0
  46. package/src/user/lists.js +150 -0
  47. package/src/user/tasks.js +708 -0
  48. package/src/utils/auth.js +188 -0
  49. package/src/utils/fetch.js +67 -0
  50. package/src/utils/get.js +247 -0
  51. package/src/utils/sign.js +93 -0
  52. package/src/utils/taskIds.js +188 -0
@@ -0,0 +1,664 @@
1
+ @import url(https://fonts.googleapis.com/css?family=Open+Sans|Roboto);
2
+
3
+ * {
4
+ box-sizing: border-box
5
+ }
6
+
7
+ html, body {
8
+ height: 100%;
9
+ width: 100%;
10
+ }
11
+
12
+ body {
13
+ color: #4d4e53;
14
+ background-color: #fff;
15
+ margin: 0 auto;
16
+ padding: 0 20px;
17
+ font-family: Roboto, Helvetica, sans-serif;
18
+ font-size: 16px;
19
+ line-height: 160%;
20
+ }
21
+
22
+ a,
23
+ a:active {
24
+ color: #15206f;
25
+ text-decoration: none;
26
+ }
27
+
28
+ a:hover {
29
+ text-decoration: none;
30
+ }
31
+
32
+ article a {
33
+ border-bottom: 1px solid #ddd;
34
+ }
35
+
36
+ article a:hover, article a:active {
37
+ border-bottom-color: #222;
38
+ }
39
+
40
+ p, ul, ol, blockquote {
41
+ margin-bottom: 1em;
42
+ }
43
+
44
+ h1, h2, h3, h4, h5, h6 {
45
+ font-family: 'Open Sans', sans-serif;
46
+ color: #000;
47
+ font-weight: 400;
48
+ margin: 0;
49
+ line-height: normal;
50
+ }
51
+
52
+ h1 {
53
+ font-weight: 300;
54
+ font-size: 48px;
55
+ margin: 1em 0 .5em;
56
+ }
57
+
58
+ h1.page-title {
59
+ font-size: 48px;
60
+ margin: 1em 30px;
61
+ }
62
+
63
+ h2 {
64
+ font-size: 36px;
65
+ margin: 0 0 .3em;
66
+ }
67
+
68
+ header > h2 {
69
+ display: none;
70
+ }
71
+
72
+ .container-overview > h2, h3.subsection-title {
73
+ font-size: 36px;
74
+ margin-top: 50px;
75
+ margin-bottom: 5px;
76
+ border-bottom: 2px solid #0d152a;
77
+ }
78
+
79
+ h3 {
80
+ font-size: 24px;
81
+ margin: 1.2em 0 .3em;
82
+ }
83
+
84
+ h4 {
85
+ font-size: 18px;
86
+ font-weight: 600;
87
+ margin: 1em 0 .2em;
88
+ color: #0d152a;
89
+ }
90
+
91
+ h4.name {
92
+ color: #b84f0c;
93
+ background-color: #dadfe4;
94
+ border-top: 2px solid #0d152a;
95
+ margin-top: 50px;
96
+ padding: .75em 0 .75em 10px;
97
+ }
98
+
99
+ /*h4.name a {
100
+ color: #fc83ff;
101
+ }
102
+
103
+ h4.name a:hover {
104
+ border-bottom-color: #fc83ff;
105
+ }*/
106
+
107
+ h5, .container-overview .subsection-title {
108
+ font-size: 120%;
109
+ letter-spacing: -0.01em;
110
+ margin: 8px 0 3px 0;
111
+ }
112
+
113
+ h6 {
114
+ font-size: 100%;
115
+ letter-spacing: -0.01em;
116
+ margin: 6px 0 3px 0;
117
+ font-style: italic;
118
+ }
119
+
120
+ tt, code, kbd, samp {
121
+ font-family: Consolas, Monaco, 'Andale Mono', monospace;
122
+ background: #f4f4f4;
123
+ padding: 1px 5px;
124
+ }
125
+
126
+ .class-description {
127
+ font-size: 120%;
128
+ line-height: 120%;
129
+ padding: 1em;
130
+ background-color: #ececec;
131
+ border: 1px solid #98999a;
132
+ border-radius: 5px;
133
+ }
134
+
135
+ .class-description:empty {
136
+ margin: 0
137
+ }
138
+
139
+ #main {
140
+ margin-left: 240px;
141
+ margin-right: 15px;
142
+ }
143
+
144
+ header {
145
+ display: block
146
+ }
147
+
148
+ section {
149
+ display: block;
150
+ padding: 0 0 0 30px;
151
+ }
152
+
153
+ .variation {
154
+ display: none
155
+ }
156
+
157
+ .signature-attributes {
158
+ font-size: 60%;
159
+ font-style: italic;
160
+ font-weight: lighter;
161
+ color: #494949;
162
+ background-color: #e4bfa8;
163
+ border: 1px solid #ba8868;
164
+ border-radius: 4px;
165
+ margin-left: 2px;
166
+ }
167
+
168
+ nav {
169
+ position: absolute;
170
+ top: 0px;
171
+ left: 0px;
172
+ width: 250px;
173
+ background: #ececec;
174
+ overflow: auto;
175
+ position: fixed;
176
+ height: 100%;
177
+ padding-left: 10px;
178
+ }
179
+
180
+ nav h3 {
181
+ margin-top: 12px;
182
+ font-size: 14px;
183
+ text-transform: uppercase;
184
+ letter-spacing: 1px;
185
+ font-weight: 700;
186
+ line-height: 24px;
187
+ margin: 15px 0 10px;
188
+ padding: 0;
189
+ color: #000;
190
+ }
191
+
192
+ nav ul {
193
+ font-family: 'Roboto', sans-serif;
194
+ font-size: 100%;
195
+ line-height: 17px;
196
+ padding: 0;
197
+ margin: 0;
198
+ list-style-type: none;
199
+ }
200
+
201
+ nav ul a,
202
+ nav ul a:active {
203
+ line-height: 18px;
204
+ padding: 0;
205
+ display: block;
206
+ font-size: 12px;
207
+ }
208
+
209
+ nav a:hover,
210
+ nav a:active {
211
+ color: #15206f;
212
+ }
213
+
214
+ nav > ul {
215
+ padding: 0 10px;
216
+ }
217
+
218
+ nav > ul > li > a {
219
+ color: #15206f;
220
+ }
221
+
222
+ nav ul ul {
223
+ margin-bottom: 10px
224
+ }
225
+
226
+ nav ul ul + ul {
227
+ margin-top: -10px;
228
+ }
229
+
230
+ nav ul ul a {
231
+ color: hsl(207, 1%, 60%);
232
+ border-left: 1px solid hsl(207, 10%, 86%);
233
+ }
234
+
235
+ nav ul ul a,
236
+ nav ul ul a:active {
237
+ padding-left: 20px
238
+ }
239
+
240
+ nav h2 {
241
+ font-size: 12px;
242
+ margin: 0;
243
+ padding: 0;
244
+ }
245
+
246
+ nav > h2 > a {
247
+ display: block;
248
+ margin: 10px 0 -10px;
249
+ color: #15206f !important;
250
+ }
251
+
252
+ footer {
253
+ color: hsl(0, 0%, 28%);
254
+ margin-left: 250px;
255
+ display: block;
256
+ padding: 15px;
257
+ font-style: italic;
258
+ font-size: 90%;
259
+ }
260
+
261
+ .ancestors {
262
+ color: #999
263
+ }
264
+
265
+ .ancestors a {
266
+ color: #999 !important;
267
+ }
268
+
269
+ .clear {
270
+ clear: both
271
+ }
272
+
273
+ .important {
274
+ font-weight: bold;
275
+ color: #950B02;
276
+ }
277
+
278
+ .yes-def {
279
+ text-indent: -1000px
280
+ }
281
+
282
+ .type-signature {
283
+ color: #7d7a7a
284
+ }
285
+
286
+ .type-signature:last-child {
287
+ color: #aaaaaa;
288
+ }
289
+
290
+ .name, .signature {
291
+ font-family: Consolas, Monaco, 'Andale Mono', monospace
292
+ }
293
+
294
+ .signature {
295
+ color: #0d152a;
296
+ }
297
+
298
+ .details {
299
+ margin-top: 6px;
300
+ border-left: 2px solid #DDD;
301
+ line-height: 20px;
302
+ font-size: 14px;
303
+ }
304
+
305
+ .details dt {
306
+ width: 120px;
307
+ float: left;
308
+ padding-left: 10px;
309
+ }
310
+
311
+ .details dd {
312
+ margin-left: 70px;
313
+ margin-top: 6px;
314
+ margin-bottom: 6px;
315
+ }
316
+
317
+ .details ul {
318
+ margin: 0
319
+ }
320
+
321
+ .details ul {
322
+ list-style-type: none
323
+ }
324
+
325
+ .details pre.prettyprint {
326
+ margin: 0
327
+ }
328
+
329
+ .details .object-value {
330
+ padding-top: 0
331
+ }
332
+
333
+ .description {
334
+ margin-bottom: 1em;
335
+ margin-top: 1em;
336
+ }
337
+
338
+ .code-caption {
339
+ font-style: italic;
340
+ font-size: 107%;
341
+ margin: 0;
342
+ }
343
+
344
+ .prettyprint {
345
+ font-size: 14px;
346
+ overflow: auto;
347
+ }
348
+
349
+ .prettyprint.source {
350
+ width: inherit;
351
+ line-height: 18px;
352
+ display: block;
353
+ background-color: #0d152a;
354
+ color: #aeaeae;
355
+ }
356
+
357
+ .prettyprint code {
358
+ line-height: 18px;
359
+ display: block;
360
+ background-color: #0d152a;
361
+ color: #4D4E53;
362
+ }
363
+
364
+ .prettyprint > code {
365
+ padding: 15px;
366
+ }
367
+
368
+ .prettyprint .linenums code {
369
+ padding: 0 15px
370
+ }
371
+
372
+ .prettyprint .linenums li:first-of-type code {
373
+ padding-top: 15px
374
+ }
375
+
376
+ .prettyprint code span.line {
377
+ display: inline-block
378
+ }
379
+
380
+ .prettyprint.linenums {
381
+ padding-left: 70px;
382
+ -webkit-user-select: none;
383
+ -moz-user-select: none;
384
+ -ms-user-select: none;
385
+ user-select: none;
386
+ }
387
+
388
+ .prettyprint.linenums ol {
389
+ padding-left: 0
390
+ }
391
+
392
+ .prettyprint.linenums li {
393
+ border-left: 3px #34446B solid;
394
+ }
395
+
396
+ .prettyprint.linenums li.selected, .prettyprint.linenums li.selected * {
397
+ background-color: #34446B;
398
+ }
399
+
400
+ .prettyprint.linenums li * {
401
+ -webkit-user-select: text;
402
+ -moz-user-select: text;
403
+ -ms-user-select: text;
404
+ user-select: text;
405
+ }
406
+
407
+ .params, .props {
408
+ border-spacing: 0;
409
+ border: 1px solid #ddd;
410
+ border-collapse: collapse;
411
+ border-radius: 3px;
412
+ box-shadow: 0 1px 3px rgba(0,0,0,0.1);
413
+ width: 100%;
414
+ font-size: 14px;
415
+ margin: 1em 0;
416
+ }
417
+
418
+ .params .type {
419
+ white-space: nowrap;
420
+ }
421
+
422
+ .params code {
423
+ white-space: pre;
424
+ }
425
+
426
+ .params td, .params .name, .props .name, .name code {
427
+ color: #4D4E53;
428
+ font-family: Consolas, Monaco, 'Andale Mono', monospace;
429
+ font-size: 100%;
430
+ }
431
+
432
+ .params .name, .props .name {
433
+ font-weight: 600;
434
+ font-size: 110%;
435
+ }
436
+
437
+ .params td, .params th, .props td, .props th {
438
+ margin: 0px;
439
+ text-align: left;
440
+ vertical-align: top;
441
+ padding: 10px;
442
+ display: table-cell;
443
+ }
444
+
445
+ .params td {
446
+ border-top: 1px solid #eee
447
+ }
448
+
449
+ .params thead tr, .props thead tr {
450
+ background-color: #ececec;
451
+ font-weight: bold;
452
+ }
453
+
454
+ .params td.description > p:first-child, .props td.description > p:first-child {
455
+ margin-top: 0;
456
+ padding-top: 0;
457
+ }
458
+
459
+ .params td.description > p:last-child, .props td.description > p:last-child {
460
+ margin-bottom: 0;
461
+ padding-bottom: 0;
462
+ }
463
+
464
+ span.param-type, .params td .param-type, .param-type dd {
465
+ color: #15206f;
466
+ font-family: Consolas, Monaco, 'Andale Mono', monospace
467
+ }
468
+
469
+ .param-type dt, .param-type dd {
470
+ display: inline-block
471
+ }
472
+
473
+ .param-type {
474
+ margin: 14px 0;
475
+ }
476
+
477
+ .disabled {
478
+ color: #454545
479
+ }
480
+
481
+ /* navicon button */
482
+ .navicon-button {
483
+ display: none;
484
+ position: relative;
485
+ padding: 2.0625rem 1.5rem;
486
+ transition: 0.25s;
487
+ cursor: pointer;
488
+ -webkit-user-select: none;
489
+ -moz-user-select: none;
490
+ -ms-user-select: none;
491
+ user-select: none;
492
+ opacity: .8;
493
+ }
494
+ .navicon-button .navicon:before, .navicon-button .navicon:after {
495
+ transition: 0.25s;
496
+ }
497
+ .navicon-button:hover {
498
+ transition: 0.5s;
499
+ opacity: 1;
500
+ }
501
+ .navicon-button:hover .navicon:before, .navicon-button:hover .navicon:after {
502
+ transition: 0.25s;
503
+ }
504
+ .navicon-button:hover .navicon:before {
505
+ top: .825rem;
506
+ }
507
+ .navicon-button:hover .navicon:after {
508
+ top: -.825rem;
509
+ }
510
+
511
+ /* navicon */
512
+ .navicon {
513
+ position: relative;
514
+ width: 2.5em;
515
+ height: .3125rem;
516
+ background: #000;
517
+ transition: 0.3s;
518
+ border-radius: 2.5rem;
519
+ }
520
+ .navicon:before, .navicon:after {
521
+ display: block;
522
+ content: "";
523
+ height: .3125rem;
524
+ width: 2.5rem;
525
+ background: #000;
526
+ position: absolute;
527
+ z-index: -1;
528
+ transition: 0.3s 0.25s;
529
+ border-radius: 1rem;
530
+ }
531
+ .navicon:before {
532
+ top: .625rem;
533
+ }
534
+ .navicon:after {
535
+ top: -.625rem;
536
+ }
537
+
538
+ /* open */
539
+ .nav-trigger:checked + label:not(.steps) .navicon:before,
540
+ .nav-trigger:checked + label:not(.steps) .navicon:after {
541
+ top: 0 !important;
542
+ }
543
+
544
+ .nav-trigger:checked + label .navicon:before,
545
+ .nav-trigger:checked + label .navicon:after {
546
+ transition: 0.5s;
547
+ }
548
+
549
+ /* Minus */
550
+ .nav-trigger:checked + label {
551
+ -webkit-transform: scale(0.75);
552
+ transform: scale(0.75);
553
+ }
554
+
555
+ /* × and + */
556
+ .nav-trigger:checked + label.plus .navicon,
557
+ .nav-trigger:checked + label.x .navicon {
558
+ background: transparent;
559
+ }
560
+
561
+ .nav-trigger:checked + label.plus .navicon:before,
562
+ .nav-trigger:checked + label.x .navicon:before {
563
+ -webkit-transform: rotate(-45deg);
564
+ transform: rotate(-45deg);
565
+ background: #FFF;
566
+ }
567
+
568
+ .nav-trigger:checked + label.plus .navicon:after,
569
+ .nav-trigger:checked + label.x .navicon:after {
570
+ -webkit-transform: rotate(45deg);
571
+ transform: rotate(45deg);
572
+ background: #FFF;
573
+ }
574
+
575
+ .nav-trigger:checked + label.plus {
576
+ -webkit-transform: scale(0.75) rotate(45deg);
577
+ transform: scale(0.75) rotate(45deg);
578
+ }
579
+
580
+ .nav-trigger:checked ~ nav {
581
+ left: 0 !important;
582
+ }
583
+
584
+ .nav-trigger:checked ~ .overlay {
585
+ display: block;
586
+ }
587
+
588
+ .nav-trigger {
589
+ position: fixed;
590
+ top: 0;
591
+ clip: rect(0, 0, 0, 0);
592
+ }
593
+
594
+ .overlay {
595
+ display: none;
596
+ position: fixed;
597
+ top: 0;
598
+ bottom: 0;
599
+ left: 0;
600
+ right: 0;
601
+ width: 100%;
602
+ height: 100%;
603
+ background: hsla(0, 0%, 0%, 0.5);
604
+ z-index: 1;
605
+ }
606
+
607
+ @media only screen and (max-width: 680px) {
608
+ body {
609
+ overflow-x: hidden;
610
+ }
611
+
612
+ nav {
613
+ background: #FFF;
614
+ width: 250px;
615
+ height: 100%;
616
+ position: fixed;
617
+ top: 0;
618
+ right: 0;
619
+ bottom: 0;
620
+ left: -250px;
621
+ z-index: 3;
622
+ padding: 0 10px;
623
+ transition: left 0.2s;
624
+ margin-left: 0px;
625
+ }
626
+
627
+ .navicon-button {
628
+ display: inline-block;
629
+ position: fixed;
630
+ top: 1.5em;
631
+ right: 0;
632
+ z-index: 2;
633
+ }
634
+
635
+ h1 {
636
+ font-size: 36px;
637
+ }
638
+
639
+ #main {
640
+ width: 100%;
641
+ margin-left: 5px;
642
+ margin-right: 5px;
643
+ }
644
+
645
+ #main h1.page-title {
646
+ margin: 1em 0;
647
+ }
648
+
649
+ #main section {
650
+ padding: 0;
651
+ }
652
+
653
+ footer {
654
+ margin-left: 0;
655
+ }
656
+ }
657
+
658
+ /** Add a '#' to static members */
659
+ [data-type="member"] a::before {
660
+ content: '#';
661
+ display: inline-block;
662
+ margin-left: -14px;
663
+ margin-right: 5px;
664
+ }
@@ -0,0 +1,79 @@
1
+ .pln {
2
+ color: #ddd;
3
+ }
4
+
5
+ /* string content */
6
+ .str {
7
+ color: #61ce3c;
8
+ }
9
+
10
+ /* a keyword */
11
+ .kwd {
12
+ color: #fbde2d;
13
+ }
14
+
15
+ /* a comment */
16
+ .com {
17
+ color: #aeaeae;
18
+ }
19
+
20
+ /* a type name */
21
+ .typ {
22
+ color: #8da6ce;
23
+ }
24
+
25
+ /* a literal value */
26
+ .lit {
27
+ color: #fbde2d;
28
+ }
29
+
30
+ /* punctuation */
31
+ .pun {
32
+ color: #ddd;
33
+ }
34
+
35
+ /* lisp open bracket */
36
+ .opn {
37
+ color: #000000;
38
+ }
39
+
40
+ /* lisp close bracket */
41
+ .clo {
42
+ color: #000000;
43
+ }
44
+
45
+ /* a markup tag name */
46
+ .tag {
47
+ color: #8da6ce;
48
+ }
49
+
50
+ /* a markup attribute name */
51
+ .atn {
52
+ color: #fbde2d;
53
+ }
54
+
55
+ /* a markup attribute value */
56
+ .atv {
57
+ color: #ddd;
58
+ }
59
+
60
+ /* a declaration */
61
+ .dec {
62
+ color: #EF5050;
63
+ }
64
+
65
+ /* a variable name */
66
+ .var {
67
+ color: #c82829;
68
+ }
69
+
70
+ /* a function name */
71
+ .fun {
72
+ color: #4271ae;
73
+ }
74
+
75
+ /* Specify class=linenums on a pre to get line numbering */
76
+ ol.linenums {
77
+ margin-top: 0;
78
+ margin-bottom: 0;
79
+ }