@lasuillard/raindrop-client 0.5.1 → 0.5.2

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.
package/dist/index.es.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import h from "axios";
2
2
  const p = "https://api.raindrop.io".replace(/\/+$/, "");
3
- class x {
3
+ class S {
4
4
  constructor(t, e = p, s = h) {
5
5
  this.basePath = e, this.axios = s, t && (this.configuration = t, this.basePath = t.basePath ?? e);
6
6
  }
@@ -28,7 +28,7 @@ function E(n, t, e = "") {
28
28
  const V = function(n, ...t) {
29
29
  const e = new URLSearchParams(n.search);
30
30
  E(e, t), n.search = e.toString();
31
- }, A = function(n, t, e) {
31
+ }, y = function(n, t, e) {
32
32
  const s = typeof n != "string";
33
33
  return (s && e && e.isJsonMime ? e.isJsonMime(t.headers["Content-Type"]) : s) ? JSON.stringify(n !== void 0 ? U(n) : {}) : n || "";
34
34
  };
@@ -60,56 +60,15 @@ const O = function(n) {
60
60
  };
61
61
  }, de = {
62
62
  Collections: "collections"
63
- }, he = {
64
- Blue: "blue",
65
- Brown: "brown",
66
- Cyan: "cyan",
67
- Gray: "gray",
68
- Green: "green",
69
- Indigo: "indigo",
70
- Orange: "orange",
71
- Pink: "pink",
72
- Purple: "purple",
73
- Red: "red",
74
- Teal: "teal",
75
- Yellow: "yellow"
76
- }, pe = {
77
- Blue: "blue",
78
- Brown: "brown",
79
- Cyan: "cyan",
80
- Gray: "gray",
81
- Green: "green",
82
- Indigo: "indigo",
83
- Orange: "orange",
84
- Pink: "pink",
85
- Purple: "purple",
86
- Red: "red",
87
- Teal: "teal",
88
- Yellow: "yellow"
89
63
  }, Q = {
90
64
  AuthorizationCode: "authorization_code"
91
- }, ue = {
92
- Ready: "ready",
93
- Retry: "retry",
94
- Failed: "failed",
95
- InvalidMinusOrigin: "invalid-origin",
96
- InvalidMinusTimeout: "invalid-timeout",
97
- InvalidMinusSize: "invalid-size"
98
- }, me = {
99
- Link: "link",
100
- Image: "image"
101
65
  }, N = {
102
66
  RefreshToken: "refresh_token"
103
- }, Ve = {
67
+ }, he = {
104
68
  Member: "member",
105
69
  Viewer: "viewer"
106
- }, Oe = {
70
+ }, pe = {
107
71
  Bearer: "Bearer"
108
- }, ve = {
109
- List: "list",
110
- Simple: "simple",
111
- Grid: "grid",
112
- Masonry: "masonry"
113
72
  }, $ = function(n) {
114
73
  return {
115
74
  /**
@@ -145,7 +104,7 @@ const O = function(n) {
145
104
  const o = { method: "POST", ...r, ...e }, l = {}, c = {};
146
105
  l["Content-Type"] = "application/json", V(a, c);
147
106
  let i = r && r.headers ? r.headers : {};
148
- return o.headers = { ...l, ...i, ...e.headers }, o.data = A(t, o, n), {
107
+ return o.headers = { ...l, ...i, ...e.headers }, o.data = y(t, o, n), {
149
108
  url: O(a),
150
109
  options: o
151
110
  };
@@ -176,7 +135,7 @@ const O = function(n) {
176
135
  return (l, c) => v(a, h, p, n)(l, o || c);
177
136
  }
178
137
  };
179
- }, Ce = function(n, t, e) {
138
+ }, ue = function(n, t, e) {
180
139
  const s = B(n);
181
140
  return {
182
141
  /**
@@ -200,7 +159,7 @@ const O = function(n) {
200
159
  }
201
160
  };
202
161
  };
203
- let _ = class extends x {
162
+ let _ = class extends S {
204
163
  /**
205
164
  *
206
165
  * @param {string} redirectUri
@@ -259,8 +218,8 @@ const M = function(n) {
259
218
  n && (l = n.baseOptions);
260
219
  const c = { method: "PUT", ...l, ...a }, i = {}, d = {};
261
220
  await C(i, n), i["Content-Type"] = "application/json", V(o, d);
262
- let y = l && l.headers ? l.headers : {};
263
- return c.headers = { ...i, ...y, ...a.headers }, c.data = A(s, c, n), {
221
+ let A = l && l.headers ? l.headers : {};
222
+ return c.headers = { ...i, ...A, ...a.headers }, c.data = y(s, c, n), {
264
223
  url: O(o),
265
224
  options: c
266
225
  };
@@ -278,7 +237,7 @@ const M = function(n) {
278
237
  const o = { method: "POST", ...r, ...e }, l = {}, c = {};
279
238
  await C(l, n), l["Content-Type"] = "application/json", V(a, c);
280
239
  let i = r && r.headers ? r.headers : {};
281
- return o.headers = { ...l, ...i, ...e.headers }, o.data = A(t, o, n), {
240
+ return o.headers = { ...l, ...i, ...e.headers }, o.data = y(t, o, n), {
282
241
  url: O(a),
283
242
  options: o
284
243
  };
@@ -439,7 +398,7 @@ const M = function(n) {
439
398
  const o = { method: "PUT", ...r, ...e }, l = {}, c = {};
440
399
  await C(l, n), l["Content-Type"] = "application/json", V(a, c);
441
400
  let i = r && r.headers ? r.headers : {};
442
- return o.headers = { ...l, ...i, ...e.headers }, o.data = A(t, o, n), {
401
+ return o.headers = { ...l, ...i, ...e.headers }, o.data = y(t, o, n), {
443
402
  url: O(a),
444
403
  options: o
445
404
  };
@@ -493,7 +452,7 @@ const M = function(n) {
493
452
  const o = { method: "DELETE", ...r, ...e }, l = {}, c = {};
494
453
  await C(l, n), l["Content-Type"] = "application/json", V(a, c);
495
454
  let i = r && r.headers ? r.headers : {};
496
- return o.headers = { ...l, ...i, ...e.headers }, o.data = A(t, o, n), {
455
+ return o.headers = { ...l, ...i, ...e.headers }, o.data = y(t, o, n), {
497
456
  url: O(a),
498
457
  options: o
499
458
  };
@@ -511,7 +470,7 @@ const M = function(n) {
511
470
  const o = { method: "PUT", ...r, ...e }, l = {}, c = {};
512
471
  await C(l, n), l["Content-Type"] = "application/json", V(a, c);
513
472
  let i = r && r.headers ? r.headers : {};
514
- return o.headers = { ...l, ...i, ...e.headers }, o.data = A(t, o, n), {
473
+ return o.headers = { ...l, ...i, ...e.headers }, o.data = y(t, o, n), {
515
474
  url: O(a),
516
475
  options: o
517
476
  };
@@ -550,7 +509,7 @@ const M = function(n) {
550
509
  const l = { method: "POST", ...o, ...s }, c = {}, i = {};
551
510
  await C(c, n), c["Content-Type"] = "application/json", V(r, i);
552
511
  let d = o && o.headers ? o.headers : {};
553
- return l.headers = { ...c, ...d, ...s.headers }, l.data = A(e, l, n), {
512
+ return l.headers = { ...c, ...d, ...s.headers }, l.data = y(e, l, n), {
554
513
  url: O(r),
555
514
  options: l
556
515
  };
@@ -589,7 +548,7 @@ const M = function(n) {
589
548
  const l = { method: "PUT", ...o, ...s }, c = {}, i = {};
590
549
  await C(c, n), c["Content-Type"] = "application/json", V(r, i);
591
550
  let d = o && o.headers ? o.headers : {};
592
- return l.headers = { ...c, ...d, ...s.headers }, l.data = A(e, l, n), {
551
+ return l.headers = { ...c, ...d, ...s.headers }, l.data = y(e, l, n), {
593
552
  url: O(r),
594
553
  options: l
595
554
  };
@@ -608,8 +567,8 @@ const M = function(n) {
608
567
  n && (o = n.baseOptions);
609
568
  const l = { method: "PUT", ...o, ...s }, c = {}, i = {}, d = new (n && n.formDataCtor || FormData)();
610
569
  await C(c, n), e !== void 0 && d.append("cover", e), c["Content-Type"] = "multipart/form-data", V(r, i);
611
- let y = o && o.headers ? o.headers : {};
612
- return l.headers = { ...c, ...y, ...s.headers }, l.data = d, {
570
+ let A = o && o.headers ? o.headers : {};
571
+ return l.headers = { ...c, ...A, ...s.headers }, l.data = d, {
613
572
  url: O(r),
614
573
  options: l
615
574
  };
@@ -829,7 +788,7 @@ const M = function(n) {
829
788
  return (c, i) => v(r, h, p, n)(c, l || i);
830
789
  }
831
790
  };
832
- }, Pe = function(n, t, e) {
791
+ }, me = function(n, t, e) {
833
792
  const s = R(n);
834
793
  return {
835
794
  /**
@@ -1023,7 +982,7 @@ const M = function(n) {
1023
982
  }
1024
983
  };
1025
984
  };
1026
- let G = class extends x {
985
+ let G = class extends S {
1027
986
  /**
1028
987
  *
1029
988
  * @param {number} id
@@ -1252,8 +1211,8 @@ const z = function(n) {
1252
1211
  n && (l = n.baseOptions);
1253
1212
  const c = { method: "GET", ...l, ...a }, i = {}, d = {};
1254
1213
  await C(i, n), e !== void 0 && (d.tagsSort = e), s !== void 0 && (d.search = s), V(o, d);
1255
- let y = l && l.headers ? l.headers : {};
1256
- return c.headers = { ...i, ...y, ...a.headers }, {
1214
+ let A = l && l.headers ? l.headers : {};
1215
+ return c.headers = { ...i, ...A, ...a.headers }, {
1257
1216
  url: O(o),
1258
1217
  options: c
1259
1218
  };
@@ -1275,7 +1234,7 @@ const z = function(n) {
1275
1234
  return (i, d) => v(o, h, p, n)(i, c || d);
1276
1235
  }
1277
1236
  };
1278
- }, Re = function(n, t, e) {
1237
+ }, Ve = function(n, t, e) {
1279
1238
  const s = j(n);
1280
1239
  return {
1281
1240
  /**
@@ -1291,7 +1250,7 @@ const z = function(n) {
1291
1250
  }
1292
1251
  };
1293
1252
  };
1294
- class D extends x {
1253
+ class D extends S {
1295
1254
  /**
1296
1255
  *
1297
1256
  * @param {number} collectionId
@@ -1305,7 +1264,7 @@ class D extends x {
1305
1264
  return j(this.configuration).getFilters(t, e, s, a).then((r) => r(this.axios, this.basePath));
1306
1265
  }
1307
1266
  }
1308
- const ye = {
1267
+ const Oe = {
1309
1268
  MinusCount: "-count",
1310
1269
  Id: "_id"
1311
1270
  }, J = function(n) {
@@ -1344,8 +1303,8 @@ const ye = {
1344
1303
  n && (l = n.baseOptions);
1345
1304
  const c = { method: "GET", ...l, ...a }, i = {}, d = {};
1346
1305
  await C(i, n), e !== void 0 && (d.page = e), s !== void 0 && (d.perpage = s), V(o, d);
1347
- let y = l && l.headers ? l.headers : {};
1348
- return c.headers = { ...i, ...y, ...a.headers }, {
1306
+ let A = l && l.headers ? l.headers : {};
1307
+ return c.headers = { ...i, ...A, ...a.headers }, {
1349
1308
  url: O(o),
1350
1309
  options: c
1351
1310
  };
@@ -1384,13 +1343,13 @@ const ye = {
1384
1343
  const l = { method: "PUT", ...o, ...s }, c = {}, i = {};
1385
1344
  await C(c, n), c["Content-Type"] = "application/json", V(r, i);
1386
1345
  let d = o && o.headers ? o.headers : {};
1387
- return l.headers = { ...c, ...d, ...s.headers }, l.data = A(e, l, n), {
1346
+ return l.headers = { ...c, ...d, ...s.headers }, l.data = y(e, l, n), {
1388
1347
  url: O(r),
1389
1348
  options: l
1390
1349
  };
1391
1350
  }
1392
1351
  };
1393
- }, S = function(n) {
1352
+ }, g = function(n) {
1394
1353
  const t = J(n);
1395
1354
  return {
1396
1355
  /**
@@ -1438,8 +1397,8 @@ const ye = {
1438
1397
  return (c, i) => v(r, h, p, n)(c, l || i);
1439
1398
  }
1440
1399
  };
1441
- }, Ae = function(n, t, e) {
1442
- const s = S(n);
1400
+ }, ve = function(n, t, e) {
1401
+ const s = g(n);
1443
1402
  return {
1444
1403
  /**
1445
1404
  *
@@ -1483,7 +1442,7 @@ const ye = {
1483
1442
  }
1484
1443
  };
1485
1444
  };
1486
- class Y extends x {
1445
+ class K extends S {
1487
1446
  /**
1488
1447
  *
1489
1448
  * @param {number} [page]
@@ -1493,7 +1452,7 @@ class Y extends x {
1493
1452
  * @memberof HighlightApi
1494
1453
  */
1495
1454
  getAllHighlights(t, e, s) {
1496
- return S(this.configuration).getAllHighlights(t, e, s).then((a) => a(this.axios, this.basePath));
1455
+ return g(this.configuration).getAllHighlights(t, e, s).then((a) => a(this.axios, this.basePath));
1497
1456
  }
1498
1457
  /**
1499
1458
  *
@@ -1505,7 +1464,7 @@ class Y extends x {
1505
1464
  * @memberof HighlightApi
1506
1465
  */
1507
1466
  getHighlightsInCollection(t, e, s, a) {
1508
- return S(this.configuration).getHighlightsInCollection(t, e, s, a).then((r) => r(this.axios, this.basePath));
1467
+ return g(this.configuration).getHighlightsInCollection(t, e, s, a).then((r) => r(this.axios, this.basePath));
1509
1468
  }
1510
1469
  /**
1511
1470
  *
@@ -1515,7 +1474,7 @@ class Y extends x {
1515
1474
  * @memberof HighlightApi
1516
1475
  */
1517
1476
  getRaindrop(t, e) {
1518
- return S(this.configuration).getRaindrop(t, e).then((s) => s(this.axios, this.basePath));
1477
+ return g(this.configuration).getRaindrop(t, e).then((s) => s(this.axios, this.basePath));
1519
1478
  }
1520
1479
  /**
1521
1480
  *
@@ -1526,10 +1485,10 @@ class Y extends x {
1526
1485
  * @memberof HighlightApi
1527
1486
  */
1528
1487
  updateRaindrop(t, e, s) {
1529
- return S(this.configuration).updateRaindrop(t, e, s).then((a) => a(this.axios, this.basePath));
1488
+ return g(this.configuration).updateRaindrop(t, e, s).then((a) => a(this.axios, this.basePath));
1530
1489
  }
1531
1490
  }
1532
- const K = function(n) {
1491
+ const Y = function(n) {
1533
1492
  return {
1534
1493
  /**
1535
1494
  *
@@ -1544,7 +1503,7 @@ const K = function(n) {
1544
1503
  const o = { method: "POST", ...r, ...e }, l = {}, c = {};
1545
1504
  await C(l, n), l["Content-Type"] = "application/json", V(a, c);
1546
1505
  let i = r && r.headers ? r.headers : {};
1547
- return o.headers = { ...l, ...i, ...e.headers }, o.data = A(t, o, n), {
1506
+ return o.headers = { ...l, ...i, ...e.headers }, o.data = y(t, o, n), {
1548
1507
  url: O(a),
1549
1508
  options: o
1550
1509
  };
@@ -1587,7 +1546,7 @@ const K = function(n) {
1587
1546
  }
1588
1547
  };
1589
1548
  }, I = function(n) {
1590
- const t = K(n);
1549
+ const t = Y(n);
1591
1550
  return {
1592
1551
  /**
1593
1552
  *
@@ -1620,7 +1579,7 @@ const K = function(n) {
1620
1579
  return (l, c) => v(a, h, p, n)(l, o || c);
1621
1580
  }
1622
1581
  };
1623
- }, be = function(n, t, e) {
1582
+ }, Ce = function(n, t, e) {
1624
1583
  const s = I(n);
1625
1584
  return {
1626
1585
  /**
@@ -1652,7 +1611,7 @@ const K = function(n) {
1652
1611
  }
1653
1612
  };
1654
1613
  };
1655
- class W extends x {
1614
+ class W extends S {
1656
1615
  /**
1657
1616
  *
1658
1617
  * @param {CheckURLsExistRequest} [checkURLsExistRequest]
@@ -1699,7 +1658,7 @@ const X = function(n) {
1699
1658
  const o = { method: "POST", ...r, ...e }, l = {}, c = {};
1700
1659
  await C(l, n), l["Content-Type"] = "application/json", V(a, c);
1701
1660
  let i = r && r.headers ? r.headers : {};
1702
- return o.headers = { ...l, ...i, ...e.headers }, o.data = A(t, o, n), {
1661
+ return o.headers = { ...l, ...i, ...e.headers }, o.data = y(t, o, n), {
1703
1662
  url: O(a),
1704
1663
  options: o
1705
1664
  };
@@ -1717,7 +1676,7 @@ const X = function(n) {
1717
1676
  const o = { method: "POST", ...r, ...e }, l = {}, c = {};
1718
1677
  await C(l, n), l["Content-Type"] = "application/json", V(a, c);
1719
1678
  let i = r && r.headers ? r.headers : {};
1720
- return o.headers = { ...l, ...i, ...e.headers }, o.data = A(t, o, n), {
1679
+ return o.headers = { ...l, ...i, ...e.headers }, o.data = y(t, o, n), {
1721
1680
  url: O(a),
1722
1681
  options: o
1723
1682
  };
@@ -1775,10 +1734,10 @@ const X = function(n) {
1775
1734
  const l = "/rest/v1/raindrops/{collectionId}".replace("{collectionId}", encodeURIComponent(String(t))), c = new URL(l, m);
1776
1735
  let i;
1777
1736
  n && (i = n.baseOptions);
1778
- const d = { method: "GET", ...i, ...o }, y = {}, g = {};
1779
- await C(y, n), e !== void 0 && (g.sort = e), s !== void 0 && (g.perpage = s), a !== void 0 && (g.page = a), r !== void 0 && (g.search = r), V(c, g);
1737
+ const d = { method: "GET", ...i, ...o }, A = {}, x = {};
1738
+ await C(A, n), e !== void 0 && (x.sort = e), s !== void 0 && (x.perpage = s), a !== void 0 && (x.page = a), r !== void 0 && (x.search = r), V(c, x);
1780
1739
  let F = i && i.headers ? i.headers : {};
1781
- return d.headers = { ...y, ...F, ...o.headers }, {
1740
+ return d.headers = { ...A, ...F, ...o.headers }, {
1782
1741
  url: O(c),
1783
1742
  options: d
1784
1743
  };
@@ -1817,8 +1776,8 @@ const X = function(n) {
1817
1776
  n && (l = n.baseOptions);
1818
1777
  const c = { method: "DELETE", ...l, ...a }, i = {}, d = {};
1819
1778
  await C(i, n), e !== void 0 && (d.search = e), i["Content-Type"] = "application/json", V(o, d);
1820
- let y = l && l.headers ? l.headers : {};
1821
- return c.headers = { ...i, ...y, ...a.headers }, c.data = A(s, c, n), {
1779
+ let A = l && l.headers ? l.headers : {};
1780
+ return c.headers = { ...i, ...A, ...a.headers }, c.data = y(s, c, n), {
1822
1781
  url: O(o),
1823
1782
  options: c
1824
1783
  };
@@ -1855,7 +1814,7 @@ const X = function(n) {
1855
1814
  const o = { method: "POST", ...r, ...e }, l = {}, c = {};
1856
1815
  await C(l, n), l["Content-Type"] = "application/json", V(a, c);
1857
1816
  let i = r && r.headers ? r.headers : {};
1858
- return o.headers = { ...l, ...i, ...e.headers }, o.data = A(t, o, n), {
1817
+ return o.headers = { ...l, ...i, ...e.headers }, o.data = y(t, o, n), {
1859
1818
  url: O(a),
1860
1819
  options: o
1861
1820
  };
@@ -1875,7 +1834,7 @@ const X = function(n) {
1875
1834
  const l = { method: "PUT", ...o, ...s }, c = {}, i = {};
1876
1835
  await C(c, n), c["Content-Type"] = "application/json", V(r, i);
1877
1836
  let d = o && o.headers ? o.headers : {};
1878
- return l.headers = { ...c, ...d, ...s.headers }, l.data = A(e, l, n), {
1837
+ return l.headers = { ...c, ...d, ...s.headers }, l.data = y(e, l, n), {
1879
1838
  url: O(r),
1880
1839
  options: l
1881
1840
  };
@@ -1895,7 +1854,7 @@ const X = function(n) {
1895
1854
  const l = { method: "PUT", ...o, ...s }, c = {}, i = {};
1896
1855
  await C(c, n), c["Content-Type"] = "application/json", V(r, i);
1897
1856
  let d = o && o.headers ? o.headers : {};
1898
- return l.headers = { ...c, ...d, ...s.headers }, l.data = A(e, l, n), {
1857
+ return l.headers = { ...c, ...d, ...s.headers }, l.data = y(e, l, n), {
1899
1858
  url: O(r),
1900
1859
  options: l
1901
1860
  };
@@ -1913,8 +1872,8 @@ const X = function(n) {
1913
1872
  n && (o = n.baseOptions);
1914
1873
  const l = { method: "PUT", ...o, ...s }, c = {}, i = {}, d = new (n && n.formDataCtor || FormData)();
1915
1874
  await C(c, n), t !== void 0 && d.append("file", t), e !== void 0 && d.append("collectionId", e), c["Content-Type"] = "multipart/form-data", V(r, i);
1916
- let y = o && o.headers ? o.headers : {};
1917
- return l.headers = { ...c, ...y, ...s.headers }, l.data = d, {
1875
+ let A = o && o.headers ? o.headers : {};
1876
+ return l.headers = { ...c, ...A, ...s.headers }, l.data = d, {
1918
1877
  url: O(r),
1919
1878
  options: l
1920
1879
  };
@@ -1933,8 +1892,8 @@ const X = function(n) {
1933
1892
  n && (o = n.baseOptions);
1934
1893
  const l = { method: "PUT", ...o, ...s }, c = {}, i = {}, d = new (n && n.formDataCtor || FormData)();
1935
1894
  await C(c, n), e !== void 0 && d.append("cover", e), c["Content-Type"] = "multipart/form-data", V(r, i);
1936
- let y = o && o.headers ? o.headers : {};
1937
- return l.headers = { ...c, ...y, ...s.headers }, l.data = d, {
1895
+ let A = o && o.headers ? o.headers : {};
1896
+ return l.headers = { ...c, ...A, ...s.headers }, l.data = d, {
1938
1897
  url: O(r),
1939
1898
  options: l
1940
1899
  };
@@ -1995,7 +1954,7 @@ const X = function(n) {
1995
1954
  */
1996
1955
  async getRaindrops(e, s, a, r, o, l) {
1997
1956
  const c = await t.getRaindrops(e, s, a, r, o, l), i = n?.serverIndex ?? 0, d = u["RaindropApi.getRaindrops"]?.[i]?.url;
1998
- return (y, g) => v(c, h, p, n)(y, d || g);
1957
+ return (A, x) => v(c, h, p, n)(A, d || x);
1999
1958
  },
2000
1959
  /**
2001
1960
  *
@@ -2084,7 +2043,7 @@ const X = function(n) {
2084
2043
  return (c, i) => v(r, h, p, n)(c, l || i);
2085
2044
  }
2086
2045
  };
2087
- }, ge = function(n, t, e) {
2046
+ }, Pe = function(n, t, e) {
2088
2047
  const s = b(n);
2089
2048
  return {
2090
2049
  /**
@@ -2216,7 +2175,7 @@ const X = function(n) {
2216
2175
  }
2217
2176
  };
2218
2177
  };
2219
- let Z = class extends x {
2178
+ let Z = class extends S {
2220
2179
  /**
2221
2180
  *
2222
2181
  * @param {CreateRaindropRequest} [createRaindropRequest]
@@ -2392,7 +2351,7 @@ const f = function(n) {
2392
2351
  const l = { method: "DELETE", ...o, ...s }, c = {}, i = {};
2393
2352
  await C(c, n), c["Content-Type"] = "application/json", V(r, i);
2394
2353
  let d = o && o.headers ? o.headers : {};
2395
- return l.headers = { ...c, ...d, ...s.headers }, l.data = A(e, l, n), {
2354
+ return l.headers = { ...c, ...d, ...s.headers }, l.data = y(e, l, n), {
2396
2355
  url: O(r),
2397
2356
  options: l
2398
2357
  };
@@ -2411,7 +2370,7 @@ const f = function(n) {
2411
2370
  const l = { method: "PUT", ...o, ...s }, c = {}, i = {};
2412
2371
  await C(c, n), c["Content-Type"] = "application/json", V(r, i);
2413
2372
  let d = o && o.headers ? o.headers : {};
2414
- return l.headers = { ...c, ...d, ...s.headers }, l.data = A(e, l, n), {
2373
+ return l.headers = { ...c, ...d, ...s.headers }, l.data = y(e, l, n), {
2415
2374
  url: O(r),
2416
2375
  options: l
2417
2376
  };
@@ -2453,7 +2412,7 @@ const f = function(n) {
2453
2412
  return (c, i) => v(r, h, p, n)(c, l || i);
2454
2413
  }
2455
2414
  };
2456
- }, we = function(n, t, e) {
2415
+ }, Re = function(n, t, e) {
2457
2416
  const s = T(n);
2458
2417
  return {
2459
2418
  /**
@@ -2487,7 +2446,7 @@ const f = function(n) {
2487
2446
  }
2488
2447
  };
2489
2448
  };
2490
- class ee extends x {
2449
+ class ee extends S {
2491
2450
  /**
2492
2451
  *
2493
2452
  * @param {number} [collectionId]
@@ -2627,7 +2586,7 @@ const re = function(n) {
2627
2586
  const o = { method: "PUT", ...r, ...e }, l = {}, c = {};
2628
2587
  await C(l, n), l["Content-Type"] = "application/json", V(a, c);
2629
2588
  let i = r && r.headers ? r.headers : {};
2630
- return o.headers = { ...l, ...i, ...e.headers }, o.data = A(t, o, n), {
2589
+ return o.headers = { ...l, ...i, ...e.headers }, o.data = y(t, o, n), {
2631
2590
  url: O(a),
2632
2591
  options: o
2633
2592
  };
@@ -2695,7 +2654,7 @@ const re = function(n) {
2695
2654
  return (l, c) => v(a, h, p, n)(l, o || c);
2696
2655
  }
2697
2656
  };
2698
- }, xe = function(n, t, e) {
2657
+ }, Ae = function(n, t, e) {
2699
2658
  const s = w(n);
2700
2659
  return {
2701
2660
  /**
@@ -2752,7 +2711,7 @@ const re = function(n) {
2752
2711
  }
2753
2712
  };
2754
2713
  };
2755
- class te extends x {
2714
+ class te extends S {
2756
2715
  /**
2757
2716
  *
2758
2717
  * @param {ConnectSocialNetworkProviderProviderEnum} provider
@@ -2812,14 +2771,14 @@ class te extends x {
2812
2771
  return w(this.configuration).updateCurrentUser(t, e).then((s) => s(this.axios, this.basePath));
2813
2772
  }
2814
2773
  }
2815
- const Se = {
2774
+ const ye = {
2816
2775
  Facebook: "facebook",
2817
2776
  Google: "google",
2818
2777
  Twitter: "twitter",
2819
2778
  Vkontate: "vkontate",
2820
2779
  Dropbox: "dropbox",
2821
2780
  Gdrive: "gdrive"
2822
- }, Ue = {
2781
+ }, be = {
2823
2782
  Facebook: "facebook",
2824
2783
  Google: "google",
2825
2784
  Twitter: "twitter",
@@ -2902,56 +2861,51 @@ class ae {
2902
2861
  return t !== null && (e.test(t) || t.toLowerCase() === "application/json-patch+json");
2903
2862
  }
2904
2863
  }
2905
- const He = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2864
+ const Be = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2906
2865
  __proto__: null,
2907
2866
  AuthenticationApi: _,
2908
2867
  AuthenticationApiAxiosParamCreator: $,
2909
- AuthenticationApiFactory: Ce,
2868
+ AuthenticationApiFactory: ue,
2910
2869
  AuthenticationApiFp: B,
2911
2870
  CollectionApi: G,
2912
2871
  CollectionApiAxiosParamCreator: M,
2913
- CollectionApiFactory: Pe,
2872
+ CollectionApiFactory: me,
2914
2873
  CollectionApiFp: R,
2915
2874
  CollectionRefRefEnum: de,
2916
2875
  Configuration: ae,
2917
- ConnectSocialNetworkProviderProviderEnum: Se,
2918
- DisconnectSocialNetworkProviderProviderEnum: Ue,
2876
+ ConnectSocialNetworkProviderProviderEnum: ye,
2877
+ DisconnectSocialNetworkProviderProviderEnum: be,
2919
2878
  FilterApi: D,
2920
2879
  FilterApiAxiosParamCreator: z,
2921
- FilterApiFactory: Re,
2880
+ FilterApiFactory: Ve,
2922
2881
  FilterApiFp: j,
2923
- GetFiltersTagsSortEnum: ye,
2924
- HighlightApi: Y,
2882
+ GetFiltersTagsSortEnum: Oe,
2883
+ HighlightApi: K,
2925
2884
  HighlightApiAxiosParamCreator: J,
2926
- HighlightApiFactory: Ae,
2927
- HighlightApiFp: S,
2928
- HighlightColorEnum: he,
2929
- HighlightItemColorEnum: pe,
2885
+ HighlightApiFactory: ve,
2886
+ HighlightApiFp: g,
2930
2887
  ImportApi: W,
2931
- ImportApiAxiosParamCreator: K,
2932
- ImportApiFactory: be,
2888
+ ImportApiAxiosParamCreator: Y,
2889
+ ImportApiFactory: Ce,
2933
2890
  ImportApiFp: I,
2934
2891
  ObtainTokenGrantTypeEnum: Q,
2935
- RaindropAllOfCacheStatusEnum: ue,
2936
2892
  RaindropApi: Z,
2937
2893
  RaindropApiAxiosParamCreator: X,
2938
- RaindropApiFactory: ge,
2894
+ RaindropApiFactory: Pe,
2939
2895
  RaindropApiFp: b,
2940
- RaindropBaseMediaInnerTypeEnum: me,
2941
2896
  RefreshTokenGrantTypeEnum: N,
2942
- Role: Ve,
2897
+ Role: he,
2943
2898
  TagApi: ee,
2944
2899
  TagApiAxiosParamCreator: f,
2945
- TagApiFactory: we,
2900
+ TagApiFactory: Re,
2946
2901
  TagApiFp: T,
2947
- TokenResponseTokenTypeEnum: Oe,
2902
+ TokenResponseTokenTypeEnum: pe,
2948
2903
  UserApi: te,
2949
2904
  UserApiAxiosParamCreator: re,
2950
- UserApiFactory: xe,
2951
- UserApiFp: w,
2952
- View: ve
2905
+ UserApiFactory: Ae,
2906
+ UserApiFp: w
2953
2907
  }, Symbol.toStringTag, { value: "Module" }));
2954
- class Ie extends _ {
2908
+ class xe extends _ {
2955
2909
  /**
2956
2910
  * Wrapper function of {@link _AuthenticationApi.getOrRefreshToken} for token exchange.
2957
2911
  * @param request {@link ObtainToken} but without `grant_type` field.
@@ -3049,12 +3003,12 @@ function se(n, t) {
3049
3003
  const e = new k(n);
3050
3004
  return oe(e, null, t), e;
3051
3005
  }
3052
- const Te = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3006
+ const we = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3053
3007
  __proto__: null,
3054
3008
  TreeNode: k,
3055
3009
  makeTree: se
3056
3010
  }, Symbol.toStringTag, { value: "Module" }));
3057
- class Fe extends G {
3011
+ class Se extends G {
3058
3012
  /**
3059
3013
  * Create structured tree of collections.
3060
3014
  * @returns Root of tree.
@@ -3083,7 +3037,7 @@ class Fe extends G {
3083
3037
  ), se(null, r);
3084
3038
  }
3085
3039
  }
3086
- class Be extends Z {
3040
+ class ge extends Z {
3087
3041
  /**
3088
3042
  * Fetch all raindrops of a collection.
3089
3043
  * @param collectionId ID of collection.
@@ -3099,10 +3053,10 @@ class Be extends Z {
3099
3053
  0,
3100
3054
  l,
3101
3055
  s
3102
- ), i = c.count, d = Math.ceil(i / o), y = Array.from(Array(d).keys());
3103
- y.shift();
3104
- const g = await Promise.all(
3105
- y.map(
3056
+ ), i = c.count, d = Math.ceil(i / o), A = Array.from(Array(d).keys());
3057
+ A.shift();
3058
+ const x = await Promise.all(
3059
+ A.map(
3106
3060
  (L) => this.getRaindrops(
3107
3061
  a,
3108
3062
  r,
@@ -3113,7 +3067,7 @@ class Be extends Z {
3113
3067
  ).then(({ data: le }) => le)
3114
3068
  )
3115
3069
  ), F = [...c.items];
3116
- for (const L of g)
3070
+ for (const L of x)
3117
3071
  F.push(...L.items);
3118
3072
  return F;
3119
3073
  }
@@ -3133,19 +3087,19 @@ class ne {
3133
3087
  raindrop;
3134
3088
  tag;
3135
3089
  constructor(t, e) {
3136
- this.client = e ?? h, this.configuration = t ?? new ae(), this.auth = new Ie(t, void 0, this.client), this.collection = new Fe(t, void 0, this.client), this.filter = new D(t, void 0, this.client), this.highlight = new Y(t, void 0, this.client), this.import = new W(t, void 0, this.client), this.raindrop = new Be(t, void 0, this.client), this.tag = new ee(t, void 0, this.client), this.user = new te(t, void 0, this.client);
3090
+ this.client = e ?? h, this.configuration = t ?? new ae(), this.auth = new xe(t, void 0, this.client), this.collection = new Se(t, void 0, this.client), this.filter = new D(t, void 0, this.client), this.highlight = new K(t, void 0, this.client), this.import = new W(t, void 0, this.client), this.raindrop = new ge(t, void 0, this.client), this.tag = new ee(t, void 0, this.client), this.user = new te(t, void 0, this.client);
3137
3091
  }
3138
3092
  }
3139
- const qe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3093
+ const ke = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3140
3094
  __proto__: null,
3141
3095
  Raindrop: ne
3142
- }, Symbol.toStringTag, { value: "Module" })), Qe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3096
+ }, Symbol.toStringTag, { value: "Module" })), Le = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3143
3097
  __proto__: null,
3144
- tree: Te
3145
- }, Symbol.toStringTag, { value: "Module" })), Ne = ne;
3098
+ tree: we
3099
+ }, Symbol.toStringTag, { value: "Module" })), Ee = ne;
3146
3100
  export {
3147
- qe as client,
3148
- Ne as default,
3149
- He as generated,
3150
- Qe as utils
3101
+ ke as client,
3102
+ Ee as default,
3103
+ Be as generated,
3104
+ Le as utils
3151
3105
  };