@mapcreator/api 2.5.0 → 2.6.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.
@@ -29,11 +29,11 @@
29
29
  * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
30
30
  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31
31
  *
32
- * hash:bf23c2b775a8f4d957ed, chunkhash:01d89a6a3a7a3361ab1b, name:bundle.browser, version:v2.5.0
32
+ * hash:fa1b410ae83a654f370d, chunkhash:83a9fb710b829b84a593, name:bundle.browser, version:v2.6.2
33
33
  */
34
34
  /*!
35
35
  * This bundle contains the following packages:
36
- * └─ @mapcreator/api (2.5.0) ── BSD 3-clause "New" or "Revised" License (http://www.opensource.org/licenses/BSD-3-Clause) ── package.json
36
+ * └─ @mapcreator/api (2.6.2) ── BSD 3-clause "New" or "Revised" License (http://www.opensource.org/licenses/BSD-3-Clause) ── package.json
37
37
  * ├─ @babel/runtime (7.10.2) ── MIT License (http://www.opensource.org/licenses/MIT) ── node_modules/@babel/runtime/package.json
38
38
  * │ └─ regenerator-runtime (0.13.5) ── MIT License (http://www.opensource.org/licenses/MIT) ── node_modules/@babel/runtime ~ regenerator-runtime/package.json
39
39
  * ├─ case (1.6.3) ── mit or gpl 3.0 or later ── node_modules/case/package.json
@@ -510,7 +510,7 @@ function hasTrait(Subject, TraitClass) {
510
510
  "use strict";
511
511
  __webpack_require__.r(__webpack_exports__);
512
512
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return CrudBase; });
513
- /* harmony import */ var _errors__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(66);
513
+ /* harmony import */ var _errors__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(67);
514
514
  /* harmony import */ var _ResourceBase__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6);
515
515
  /* harmony import */ var _utils_helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(0);
516
516
  /*
@@ -627,7 +627,7 @@ class CrudBase extends _ResourceBase__WEBPACK_IMPORTED_MODULE_1__["default"] {
627
627
  * @returns {CancelablePromise<CrudBase>} - Current instance
628
628
  * @throws {ApiError} - If the api returns errors
629
629
  * @throws {ValidationError} - If the submitted data isn't valid
630
- * @private
630
+ * @protected
631
631
  */
632
632
 
633
633
 
@@ -739,11 +739,11 @@ class CrudBase extends _ResourceBase__WEBPACK_IMPORTED_MODULE_1__["default"] {
739
739
  "use strict";
740
740
  __webpack_require__.r(__webpack_exports__);
741
741
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return RequestParameters; });
742
- /* harmony import */ var case__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8);
742
+ /* harmony import */ var case__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(7);
743
743
  /* harmony import */ var case__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(case__WEBPACK_IMPORTED_MODULE_0__);
744
744
  /* harmony import */ var events__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(52);
745
745
  /* harmony import */ var events__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(events__WEBPACK_IMPORTED_MODULE_1__);
746
- /* harmony import */ var _enums__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7);
746
+ /* harmony import */ var _enums__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(8);
747
747
  /* harmony import */ var _utils_hash__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(29);
748
748
  /* harmony import */ var _utils_reflection__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(1);
749
749
  /* harmony import */ var _utils_requests__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(5);
@@ -1503,6 +1503,8 @@ __webpack_require__.d(__webpack_exports__, "Message", function() { return /* ree
1503
1503
  __webpack_require__.d(__webpack_exports__, "Notification", function() { return /* reexport */ Notification["default"]; });
1504
1504
  __webpack_require__.d(__webpack_exports__, "Organisation", function() { return /* reexport */ Organisation["default"]; });
1505
1505
  __webpack_require__.d(__webpack_exports__, "Permission", function() { return /* reexport */ Permission["default"]; });
1506
+ __webpack_require__.d(__webpack_exports__, "ProductTour", function() { return /* reexport */ ProductTour_ProductTour; });
1507
+ __webpack_require__.d(__webpack_exports__, "ProductTourStep", function() { return /* reexport */ ProductTourStep_ProductTourStep; });
1506
1508
  __webpack_require__.d(__webpack_exports__, "Role", function() { return /* reexport */ Role["default"]; });
1507
1509
  __webpack_require__.d(__webpack_exports__, "Svg", function() { return /* reexport */ Svg["default"]; });
1508
1510
  __webpack_require__.d(__webpack_exports__, "SvgSet", function() { return /* reexport */ SvgSet["default"]; });
@@ -1514,7 +1516,7 @@ __webpack_require__.d(__webpack_exports__, "VectorChoropleth", function() { retu
1514
1516
  __webpack_require__.d(__webpack_exports__, "base", function() { return /* binding */ base; });
1515
1517
 
1516
1518
  // EXTERNAL MODULE: ./src/resources/base/DownloadedResource.js + 1 modules
1517
- var DownloadedResource = __webpack_require__(21);
1519
+ var DownloadedResource = __webpack_require__(22);
1518
1520
 
1519
1521
  // EXTERNAL MODULE: ./src/resources/base/ResourceBase.js
1520
1522
  var ResourceBase = __webpack_require__(6);
@@ -1598,7 +1600,7 @@ class Choropleth_Choropleth extends ResourceBase["default"] {
1598
1600
  var Color = __webpack_require__(36);
1599
1601
 
1600
1602
  // EXTERNAL MODULE: ./src/resources/Contract.js
1601
- var Contract = __webpack_require__(60);
1603
+ var Contract = __webpack_require__(61);
1602
1604
 
1603
1605
  // EXTERNAL MODULE: ./src/resources/Dimension.js
1604
1606
  var Dimension = __webpack_require__(38);
@@ -1607,7 +1609,7 @@ var Dimension = __webpack_require__(38);
1607
1609
  var DimensionSet = __webpack_require__(37);
1608
1610
 
1609
1611
  // EXTERNAL MODULE: ./src/resources/Domain.js
1610
- var Domain = __webpack_require__(61);
1612
+ var Domain = __webpack_require__(62);
1611
1613
 
1612
1614
  // EXTERNAL MODULE: ./src/resources/base/CrudBase.js
1613
1615
  var CrudBase = __webpack_require__(2);
@@ -1762,16 +1764,16 @@ var Job = __webpack_require__(42);
1762
1764
  var JobResult = __webpack_require__(33);
1763
1765
 
1764
1766
  // EXTERNAL MODULE: ./src/resources/JobRevision.js
1765
- var JobRevision = __webpack_require__(62);
1767
+ var JobRevision = __webpack_require__(63);
1766
1768
 
1767
1769
  // EXTERNAL MODULE: ./src/resources/JobShare.js
1768
- var JobShare = __webpack_require__(20);
1770
+ var JobShare = __webpack_require__(21);
1769
1771
 
1770
1772
  // EXTERNAL MODULE: ./src/resources/JobType.js
1771
1773
  var JobType = __webpack_require__(43);
1772
1774
 
1773
1775
  // EXTERNAL MODULE: ./src/resources/Language.js
1774
- var Language = __webpack_require__(63);
1776
+ var Language = __webpack_require__(64);
1775
1777
 
1776
1778
  // EXTERNAL MODULE: ./src/resources/Layer.js
1777
1779
  var Layer = __webpack_require__(26);
@@ -1783,10 +1785,10 @@ var Mapstyle = __webpack_require__(44);
1783
1785
  var MapstyleSet = __webpack_require__(50);
1784
1786
 
1785
1787
  // EXTERNAL MODULE: ./src/resources/Message.js + 1 modules
1786
- var Message = __webpack_require__(67);
1788
+ var Message = __webpack_require__(57);
1787
1789
 
1788
1790
  // EXTERNAL MODULE: ./src/resources/Notification.js
1789
- var Notification = __webpack_require__(64);
1791
+ var Notification = __webpack_require__(65);
1790
1792
 
1791
1793
  // EXTERNAL MODULE: ./src/resources/Organisation.js
1792
1794
  var Organisation = __webpack_require__(54);
@@ -1794,8 +1796,119 @@ var Organisation = __webpack_require__(54);
1794
1796
  // EXTERNAL MODULE: ./src/resources/Permission.js
1795
1797
  var Permission = __webpack_require__(49);
1796
1798
 
1799
+ // EXTERNAL MODULE: ./src/utils/reflection.js
1800
+ var reflection = __webpack_require__(1);
1801
+
1802
+ // EXTERNAL MODULE: ./src/resources/base/CrudSetBase.js
1803
+ var CrudSetBase = __webpack_require__(19);
1804
+
1805
+ // EXTERNAL MODULE: ./src/resources/base/CrudSetItemBase.js
1806
+ var CrudSetItemBase = __webpack_require__(16);
1807
+
1808
+ // CONCATENATED MODULE: ./src/resources/ProductTourStep.js
1809
+ /*
1810
+ * BSD 3-Clause License
1811
+ *
1812
+ * Copyright (c) 2020, Mapcreator
1813
+ * All rights reserved.
1814
+ *
1815
+ * Redistribution and use in source and binary forms, with or without
1816
+ * modification, are permitted provided that the following conditions are met:
1817
+ *
1818
+ * Redistributions of source code must retain the above copyright notice, this
1819
+ * list of conditions and the following disclaimer.
1820
+ *
1821
+ * Redistributions in binary form must reproduce the above copyright notice,
1822
+ * this list of conditions and the following disclaimer in the documentation
1823
+ * and/or other materials provided with the distribution.
1824
+ *
1825
+ * Neither the name of the copyright holder nor the names of its
1826
+ * contributors may be used to endorse or promote products derived from
1827
+ * this software without specific prior written permission.
1828
+ *
1829
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
1830
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
1831
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
1832
+ * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
1833
+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
1834
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
1835
+ * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
1836
+ * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
1837
+ * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
1838
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
1839
+ */
1840
+
1841
+
1842
+ /**
1843
+ * @extends CrudSetItemBase
1844
+ */
1845
+
1846
+ class ProductTourStep_ProductTourStep extends Object(reflection["mix"])(CrudSetItemBase["default"]) {
1847
+ static get resourceName() {
1848
+ return 'product-tours/steps';
1849
+ }
1850
+
1851
+ static get parentKey() {
1852
+ return 'product_tour_id';
1853
+ }
1854
+
1855
+ }
1856
+ // CONCATENATED MODULE: ./src/resources/ProductTour.js
1857
+ /*
1858
+ * BSD 3-Clause License
1859
+ *
1860
+ * Copyright (c) 2020, Mapcreator
1861
+ * All rights reserved.
1862
+ *
1863
+ * Redistribution and use in source and binary forms, with or without
1864
+ * modification, are permitted provided that the following conditions are met:
1865
+ *
1866
+ * Redistributions of source code must retain the above copyright notice, this
1867
+ * list of conditions and the following disclaimer.
1868
+ *
1869
+ * Redistributions in binary form must reproduce the above copyright notice,
1870
+ * this list of conditions and the following disclaimer in the documentation
1871
+ * and/or other materials provided with the distribution.
1872
+ *
1873
+ * Neither the name of the copyright holder nor the names of its
1874
+ * contributors may be used to endorse or promote products derived from
1875
+ * this software without specific prior written permission.
1876
+ *
1877
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
1878
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
1879
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
1880
+ * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
1881
+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
1882
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
1883
+ * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
1884
+ * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
1885
+ * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
1886
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
1887
+ */
1888
+
1889
+
1890
+
1891
+ /**
1892
+ * Mapstyle set
1893
+ * @extends CrudSetBase
1894
+ */
1895
+
1896
+ class ProductTour_ProductTour extends Object(reflection["mix"])(CrudSetBase["default"]) {
1897
+ static get resourcePath() {
1898
+ return '/product-tours/{id}';
1899
+ }
1900
+
1901
+ static get resourceName() {
1902
+ return 'product-tours';
1903
+ }
1904
+
1905
+ get _Child() {
1906
+ return ProductTourStep_ProductTourStep;
1907
+ }
1908
+
1909
+ }
1797
1910
  // EXTERNAL MODULE: ./src/resources/Role.js
1798
- var Role = __webpack_require__(65);
1911
+ var Role = __webpack_require__(66);
1799
1912
 
1800
1913
  // EXTERNAL MODULE: ./src/resources/Svg.js
1801
1914
  var Svg = __webpack_require__(46);
@@ -1945,9 +2058,6 @@ class VectorChoropleth_VectorChoropleth extends ResourceBase["default"] {
1945
2058
  }
1946
2059
 
1947
2060
  }
1948
- // EXTERNAL MODULE: ./src/resources/base/CrudSetBase.js
1949
- var CrudSetBase = __webpack_require__(25);
1950
-
1951
2061
  // CONCATENATED MODULE: ./src/resources/index.js
1952
2062
  /*
1953
2063
  * BSD 3-Clause License
@@ -2044,6 +2154,10 @@ var CrudSetBase = __webpack_require__(25);
2044
2154
 
2045
2155
 
2046
2156
 
2157
+
2158
+
2159
+
2160
+
2047
2161
 
2048
2162
 
2049
2163
 
@@ -2193,11 +2307,11 @@ function wrapKyPrefixUrl(fn, baseUrl) {
2193
2307
  "use strict";
2194
2308
  __webpack_require__.r(__webpack_exports__);
2195
2309
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return ResourceBase; });
2196
- /* harmony import */ var case__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8);
2310
+ /* harmony import */ var case__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(7);
2197
2311
  /* harmony import */ var case__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(case__WEBPACK_IMPORTED_MODULE_0__);
2198
2312
  /* harmony import */ var _errors_AbstractError__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(10);
2199
- /* harmony import */ var _Mapcreator__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(24);
2200
- /* harmony import */ var _proxy_SimpleResourceProxy__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(16);
2313
+ /* harmony import */ var _Mapcreator__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(25);
2314
+ /* harmony import */ var _proxy_SimpleResourceProxy__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(17);
2201
2315
  /* harmony import */ var _traits_Injectable__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(68);
2202
2316
  /* harmony import */ var _utils_hash__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(29);
2203
2317
  /* harmony import */ var _utils_reflection__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(1);
@@ -2687,199 +2801,7 @@ class ResourceBase extends Object(_utils_reflection__WEBPACK_IMPORTED_MODULE_6__
2687
2801
 
2688
2802
  /***/ }),
2689
2803
  /* 7 */
2690
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
2691
-
2692
- "use strict";
2693
- // ESM COMPAT FLAG
2694
- __webpack_require__.r(__webpack_exports__);
2695
-
2696
- // EXPORTS
2697
- __webpack_require__.d(__webpack_exports__, "Enum", function() { return /* reexport */ Enum["default"]; });
2698
- __webpack_require__.d(__webpack_exports__, "DeletedState", function() { return /* reexport */ DeletedState; });
2699
- __webpack_require__.d(__webpack_exports__, "ResultStatus", function() { return /* reexport */ ResultStatus; });
2700
- __webpack_require__.d(__webpack_exports__, "JobShareVisibility", function() { return /* reexport */ JobShareVisibility; });
2701
-
2702
- // EXTERNAL MODULE: ./src/enums/Enum.js + 1 modules
2703
- var Enum = __webpack_require__(22);
2704
-
2705
- // CONCATENATED MODULE: ./src/enums/DeletedState.js
2706
- /*
2707
- * BSD 3-Clause License
2708
- *
2709
- * Copyright (c) 2020, Mapcreator
2710
- * All rights reserved.
2711
- *
2712
- * Redistribution and use in source and binary forms, with or without
2713
- * modification, are permitted provided that the following conditions are met:
2714
- *
2715
- * Redistributions of source code must retain the above copyright notice, this
2716
- * list of conditions and the following disclaimer.
2717
- *
2718
- * Redistributions in binary form must reproduce the above copyright notice,
2719
- * this list of conditions and the following disclaimer in the documentation
2720
- * and/or other materials provided with the distribution.
2721
- *
2722
- * Neither the name of the copyright holder nor the names of its
2723
- * contributors may be used to endorse or promote products derived from
2724
- * this software without specific prior written permission.
2725
- *
2726
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
2727
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
2728
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
2729
- * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
2730
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
2731
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
2732
- * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
2733
- * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
2734
- * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
2735
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2736
- */
2737
-
2738
- /**
2739
- * Enum containing the possible different values for {@link RequestParameters#deleted}
2740
- * @enum {string}
2741
- * @property {string} ALL - Don't discriminate between deleted items and non-deleted resources
2742
- * @property {string} BOTH - Don't discriminate between deleted items and non-deleted resources
2743
- * @property {string} NONE - Don't return deleted resources
2744
- * @property {string} ONLY - Only return deleted resources
2745
- * @readonly
2746
- */
2747
-
2748
- const DeletedState = new Enum["default"]({
2749
- ALL: 'all',
2750
- BOTH: 'all',
2751
- NONE: 'none',
2752
- ONLY: 'only'
2753
- });
2754
- // CONCATENATED MODULE: ./src/enums/ResultStatus.js
2755
- /*
2756
- * BSD 3-Clause License
2757
- *
2758
- * Copyright (c) 2020, Mapcreator
2759
- * All rights reserved.
2760
- *
2761
- * Redistribution and use in source and binary forms, with or without
2762
- * modification, are permitted provided that the following conditions are met:
2763
- *
2764
- * Redistributions of source code must retain the above copyright notice, this
2765
- * list of conditions and the following disclaimer.
2766
- *
2767
- * Redistributions in binary form must reproduce the above copyright notice,
2768
- * this list of conditions and the following disclaimer in the documentation
2769
- * and/or other materials provided with the distribution.
2770
- *
2771
- * Neither the name of the copyright holder nor the names of its
2772
- * contributors may be used to endorse or promote products derived from
2773
- * this software without specific prior written permission.
2774
- *
2775
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
2776
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
2777
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
2778
- * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
2779
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
2780
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
2781
- * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
2782
- * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
2783
- * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
2784
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2785
- */
2786
-
2787
- /**
2788
- * Enum containing the possible different values for {@link RequestParameters#deleted}
2789
- * @enum {string}
2790
- * @property {string} QUEUED - Job has been queued
2791
- * @property {string} PROCESSING - Job is processing
2792
- * @property {string} COMPLETED - Job has been completed
2793
- * @property {string} CANCELED - Job has been canceled
2794
- * @property {string} FAILED - Job has failed
2795
- * @readonly
2796
- */
2797
-
2798
- const ResultStatus = new Enum["default"](['queued', 'processing', 'completed', 'canceled', 'failed'], true);
2799
- // CONCATENATED MODULE: ./src/enums/JobShareVisibility.js
2800
- /*
2801
- * BSD 3-Clause License
2802
- *
2803
- * Copyright (c) 2020, Mapcreator
2804
- * All rights reserved.
2805
- *
2806
- * Redistribution and use in source and binary forms, with or without
2807
- * modification, are permitted provided that the following conditions are met:
2808
- *
2809
- * Redistributions of source code must retain the above copyright notice, this
2810
- * list of conditions and the following disclaimer.
2811
- *
2812
- * Redistributions in binary form must reproduce the above copyright notice,
2813
- * this list of conditions and the following disclaimer in the documentation
2814
- * and/or other materials provided with the distribution.
2815
- *
2816
- * Neither the name of the copyright holder nor the names of its
2817
- * contributors may be used to endorse or promote products derived from
2818
- * this software without specific prior written permission.
2819
- *
2820
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
2821
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
2822
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
2823
- * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
2824
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
2825
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
2826
- * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
2827
- * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
2828
- * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
2829
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2830
- */
2831
-
2832
- /**
2833
- * Enum containing the possible different visibilities for a {@link JobShare}
2834
- * @enum {string}
2835
- * @property {string} PRIVATE - Anyone outside of the organisation could open the map, the map is not visible within the organisation folder
2836
- * @property {string} PUBLIC - Anyone who has that link can open the map
2837
- * @property {string} ORGANISATION - This map only opens if a user is within the same organisation
2838
- * @readonly
2839
- */
2840
-
2841
- const JobShareVisibility = new Enum["default"](['private', 'organisation', 'public'], true);
2842
- // CONCATENATED MODULE: ./src/enums/index.js
2843
- /*
2844
- * BSD 3-Clause License
2845
- *
2846
- * Copyright (c) 2020, Mapcreator
2847
- * All rights reserved.
2848
- *
2849
- * Redistribution and use in source and binary forms, with or without
2850
- * modification, are permitted provided that the following conditions are met:
2851
- *
2852
- * Redistributions of source code must retain the above copyright notice, this
2853
- * list of conditions and the following disclaimer.
2854
- *
2855
- * Redistributions in binary form must reproduce the above copyright notice,
2856
- * this list of conditions and the following disclaimer in the documentation
2857
- * and/or other materials provided with the distribution.
2858
- *
2859
- * Neither the name of the copyright holder nor the names of its
2860
- * contributors may be used to endorse or promote products derived from
2861
- * this software without specific prior written permission.
2862
- *
2863
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
2864
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
2865
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
2866
- * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
2867
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
2868
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
2869
- * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
2870
- * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
2871
- * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
2872
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2873
- */
2874
-
2875
-
2876
-
2877
-
2878
-
2879
-
2880
- /***/ }),
2881
- /* 8 */
2882
- /***/ (function(module, exports, __webpack_require__) {
2804
+ /***/ (function(module, exports, __webpack_require__) {
2883
2805
 
2884
2806
  /*! Case - v1.6.2 - 2020-03-24
2885
2807
  * Copyright (c) 2020 Nathan Bubna; Licensed MIT, GPL */
@@ -3054,6 +2976,198 @@ const JobShareVisibility = new Enum["default"](['private', 'organisation', 'publ
3054
2976
  }).call(this);
3055
2977
 
3056
2978
 
2979
+ /***/ }),
2980
+ /* 8 */
2981
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
2982
+
2983
+ "use strict";
2984
+ // ESM COMPAT FLAG
2985
+ __webpack_require__.r(__webpack_exports__);
2986
+
2987
+ // EXPORTS
2988
+ __webpack_require__.d(__webpack_exports__, "Enum", function() { return /* reexport */ Enum["default"]; });
2989
+ __webpack_require__.d(__webpack_exports__, "DeletedState", function() { return /* reexport */ DeletedState; });
2990
+ __webpack_require__.d(__webpack_exports__, "ResultStatus", function() { return /* reexport */ ResultStatus; });
2991
+ __webpack_require__.d(__webpack_exports__, "JobShareVisibility", function() { return /* reexport */ JobShareVisibility; });
2992
+
2993
+ // EXTERNAL MODULE: ./src/enums/Enum.js + 1 modules
2994
+ var Enum = __webpack_require__(23);
2995
+
2996
+ // CONCATENATED MODULE: ./src/enums/DeletedState.js
2997
+ /*
2998
+ * BSD 3-Clause License
2999
+ *
3000
+ * Copyright (c) 2020, Mapcreator
3001
+ * All rights reserved.
3002
+ *
3003
+ * Redistribution and use in source and binary forms, with or without
3004
+ * modification, are permitted provided that the following conditions are met:
3005
+ *
3006
+ * Redistributions of source code must retain the above copyright notice, this
3007
+ * list of conditions and the following disclaimer.
3008
+ *
3009
+ * Redistributions in binary form must reproduce the above copyright notice,
3010
+ * this list of conditions and the following disclaimer in the documentation
3011
+ * and/or other materials provided with the distribution.
3012
+ *
3013
+ * Neither the name of the copyright holder nor the names of its
3014
+ * contributors may be used to endorse or promote products derived from
3015
+ * this software without specific prior written permission.
3016
+ *
3017
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
3018
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
3019
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
3020
+ * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
3021
+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
3022
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
3023
+ * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
3024
+ * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
3025
+ * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
3026
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
3027
+ */
3028
+
3029
+ /**
3030
+ * Enum containing the possible different values for {@link RequestParameters#deleted}
3031
+ * @enum {string}
3032
+ * @property {string} ALL - Don't discriminate between deleted items and non-deleted resources
3033
+ * @property {string} BOTH - Don't discriminate between deleted items and non-deleted resources
3034
+ * @property {string} NONE - Don't return deleted resources
3035
+ * @property {string} ONLY - Only return deleted resources
3036
+ * @readonly
3037
+ */
3038
+
3039
+ const DeletedState = new Enum["default"]({
3040
+ ALL: 'all',
3041
+ BOTH: 'all',
3042
+ NONE: 'none',
3043
+ ONLY: 'only'
3044
+ });
3045
+ // CONCATENATED MODULE: ./src/enums/ResultStatus.js
3046
+ /*
3047
+ * BSD 3-Clause License
3048
+ *
3049
+ * Copyright (c) 2020, Mapcreator
3050
+ * All rights reserved.
3051
+ *
3052
+ * Redistribution and use in source and binary forms, with or without
3053
+ * modification, are permitted provided that the following conditions are met:
3054
+ *
3055
+ * Redistributions of source code must retain the above copyright notice, this
3056
+ * list of conditions and the following disclaimer.
3057
+ *
3058
+ * Redistributions in binary form must reproduce the above copyright notice,
3059
+ * this list of conditions and the following disclaimer in the documentation
3060
+ * and/or other materials provided with the distribution.
3061
+ *
3062
+ * Neither the name of the copyright holder nor the names of its
3063
+ * contributors may be used to endorse or promote products derived from
3064
+ * this software without specific prior written permission.
3065
+ *
3066
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
3067
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
3068
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
3069
+ * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
3070
+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
3071
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
3072
+ * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
3073
+ * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
3074
+ * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
3075
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
3076
+ */
3077
+
3078
+ /**
3079
+ * Enum containing the possible different values for {@link RequestParameters#deleted}
3080
+ * @enum {string}
3081
+ * @property {string} QUEUED - Job has been queued
3082
+ * @property {string} PROCESSING - Job is processing
3083
+ * @property {string} COMPLETED - Job has been completed
3084
+ * @property {string} CANCELED - Job has been canceled
3085
+ * @property {string} FAILED - Job has failed
3086
+ * @readonly
3087
+ */
3088
+
3089
+ const ResultStatus = new Enum["default"](['queued', 'processing', 'completed', 'canceled', 'failed'], true);
3090
+ // CONCATENATED MODULE: ./src/enums/JobShareVisibility.js
3091
+ /*
3092
+ * BSD 3-Clause License
3093
+ *
3094
+ * Copyright (c) 2020, Mapcreator
3095
+ * All rights reserved.
3096
+ *
3097
+ * Redistribution and use in source and binary forms, with or without
3098
+ * modification, are permitted provided that the following conditions are met:
3099
+ *
3100
+ * Redistributions of source code must retain the above copyright notice, this
3101
+ * list of conditions and the following disclaimer.
3102
+ *
3103
+ * Redistributions in binary form must reproduce the above copyright notice,
3104
+ * this list of conditions and the following disclaimer in the documentation
3105
+ * and/or other materials provided with the distribution.
3106
+ *
3107
+ * Neither the name of the copyright holder nor the names of its
3108
+ * contributors may be used to endorse or promote products derived from
3109
+ * this software without specific prior written permission.
3110
+ *
3111
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
3112
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
3113
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
3114
+ * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
3115
+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
3116
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
3117
+ * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
3118
+ * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
3119
+ * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
3120
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
3121
+ */
3122
+
3123
+ /**
3124
+ * Enum containing the possible different visibilities for a {@link JobShare}
3125
+ * @enum {string}
3126
+ * @property {string} PRIVATE - Anyone outside of the organisation could open the map, the map is not visible within the organisation folder
3127
+ * @property {string} PUBLIC - Anyone who has that link can open the map
3128
+ * @property {string} ORGANISATION - This map only opens if a user is within the same organisation
3129
+ * @readonly
3130
+ */
3131
+
3132
+ const JobShareVisibility = new Enum["default"](['private', 'organisation', 'public'], true);
3133
+ // CONCATENATED MODULE: ./src/enums/index.js
3134
+ /*
3135
+ * BSD 3-Clause License
3136
+ *
3137
+ * Copyright (c) 2020, Mapcreator
3138
+ * All rights reserved.
3139
+ *
3140
+ * Redistribution and use in source and binary forms, with or without
3141
+ * modification, are permitted provided that the following conditions are met:
3142
+ *
3143
+ * Redistributions of source code must retain the above copyright notice, this
3144
+ * list of conditions and the following disclaimer.
3145
+ *
3146
+ * Redistributions in binary form must reproduce the above copyright notice,
3147
+ * this list of conditions and the following disclaimer in the documentation
3148
+ * and/or other materials provided with the distribution.
3149
+ *
3150
+ * Neither the name of the copyright holder nor the names of its
3151
+ * contributors may be used to endorse or promote products derived from
3152
+ * this software without specific prior written permission.
3153
+ *
3154
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
3155
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
3156
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
3157
+ * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
3158
+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
3159
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
3160
+ * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
3161
+ * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
3162
+ * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
3163
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
3164
+ */
3165
+
3166
+
3167
+
3168
+
3169
+
3170
+
3057
3171
  /***/ }),
3058
3172
  /* 9 */
3059
3173
  /***/ (function(module, exports) {
@@ -3165,7 +3279,7 @@ class AbstractMethodError extends AbstractError {
3165
3279
  "use strict";
3166
3280
  __webpack_require__.r(__webpack_exports__);
3167
3281
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return OwnableResource; });
3168
- /* harmony import */ var _proxy_OrganisationProxy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(59);
3282
+ /* harmony import */ var _proxy_OrganisationProxy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(60);
3169
3283
  /* harmony import */ var _Trait__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(28);
3170
3284
  /*
3171
3285
  * BSD 3-Clause License
@@ -3232,7 +3346,7 @@ class OwnableResource extends _Trait__WEBPACK_IMPORTED_MODULE_1__["default"] {
3232
3346
  "use strict";
3233
3347
  __webpack_require__.r(__webpack_exports__);
3234
3348
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return OwnedResourceProxy; });
3235
- /* harmony import */ var _SimpleResourceProxy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(16);
3349
+ /* harmony import */ var _SimpleResourceProxy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(17);
3236
3350
  /* harmony import */ var _utils_helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(0);
3237
3351
  /*
3238
3352
  * BSD 3-Clause License
@@ -3462,7 +3576,7 @@ function windowTest(str) {
3462
3576
  __webpack_require__.r(__webpack_exports__);
3463
3577
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return ResourceProxy; });
3464
3578
  /* harmony import */ var _utils_requests__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5);
3465
- /* harmony import */ var _SimpleResourceProxy__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(16);
3579
+ /* harmony import */ var _SimpleResourceProxy__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(17);
3466
3580
  /* harmony import */ var _utils_helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(0);
3467
3581
  /*
3468
3582
  * BSD 3-Clause License
@@ -3586,7 +3700,7 @@ class ResourceProxy extends _SimpleResourceProxy__WEBPACK_IMPORTED_MODULE_1__["d
3586
3700
  "use strict";
3587
3701
  __webpack_require__.r(__webpack_exports__);
3588
3702
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return OAuthToken; });
3589
- /* harmony import */ var _storage_StorageManager__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(19);
3703
+ /* harmony import */ var _storage_StorageManager__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(20);
3590
3704
  /* harmony import */ var _utils_requests__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(5);
3591
3705
  /*
3592
3706
  * BSD 3-Clause License
@@ -3705,68 +3819,161 @@ class OAuthToken {
3705
3819
  */
3706
3820
 
3707
3821
 
3708
- static fromResponseObject(data) {
3709
- if (typeof data === 'string') {
3710
- data = JSON.parse(data);
3711
- } // Default expires = 5 days
3822
+ static fromResponseObject(data) {
3823
+ if (typeof data === 'string') {
3824
+ data = JSON.parse(data);
3825
+ } // Default expires = 5 days
3826
+
3827
+
3828
+ let expires = 432000;
3829
+
3830
+ if (typeof data['exipires_in'] !== 'undefined') {
3831
+ expires = Number(data['expires_in']);
3832
+ } else if (typeof data.expires === 'string') {
3833
+ expires = new Date(data.expires);
3834
+ }
3835
+
3836
+ return new OAuthToken(data['access_token'], data['token_type'], expires, data.scope || []);
3837
+ }
3838
+ /**
3839
+ * Store the token for later recovery. Token will be stored in HTTPS cookie if possible.
3840
+ * @param {String} name - db key name
3841
+ * @throws {OAuthToken#recover}
3842
+ */
3843
+
3844
+
3845
+ save(name = OAuthToken.storageName) {
3846
+ const data = {
3847
+ token: this.token,
3848
+ type: this.type,
3849
+ expires: this.expires.toUTCString(),
3850
+ scopes: this.scopes
3851
+ }; // Third parameter is only used when we're using cookies
3852
+
3853
+ _storage_StorageManager__WEBPACK_IMPORTED_MODULE_0__["default"].secure.set(name, JSON.stringify(data), this.expires);
3854
+ }
3855
+ /**
3856
+ * Recover a token by looking through the HTTPS cookies and localStorage
3857
+ * @param {String} name - Storage key name
3858
+ * @returns {OAuthToken|null} - null if none could be recovered
3859
+ * @throws {OAuthToken#save}
3860
+ */
3861
+
3862
+
3863
+ static recover(name = OAuthToken.storageName) {
3864
+ const data = _storage_StorageManager__WEBPACK_IMPORTED_MODULE_0__["default"].secure.get(name);
3865
+
3866
+ if (!data) {
3867
+ return null;
3868
+ }
3869
+
3870
+ const obj = JSON.parse(data);
3871
+ const instance = new OAuthToken(obj.token, obj.type, new Date(obj.expires), obj.scopes || []);
3872
+
3873
+ if (instance.expired) {
3874
+ return null;
3875
+ }
3876
+
3877
+ return instance;
3878
+ }
3879
+
3880
+ }
3881
+
3882
+ /***/ }),
3883
+ /* 16 */
3884
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
3885
+
3886
+ "use strict";
3887
+ __webpack_require__.r(__webpack_exports__);
3888
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return CrudSetItemBase; });
3889
+ /* harmony import */ var _errors_AbstractError__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(10);
3890
+ /* harmony import */ var _CrudBase__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2);
3891
+ /* harmony import */ var case__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7);
3892
+ /* harmony import */ var case__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(case__WEBPACK_IMPORTED_MODULE_2__);
3893
+ /*
3894
+ * BSD 3-Clause License
3895
+ *
3896
+ * Copyright (c) 2020, Mapcreator
3897
+ * All rights reserved.
3898
+ *
3899
+ * Redistribution and use in source and binary forms, with or without
3900
+ * modification, are permitted provided that the following conditions are met:
3901
+ *
3902
+ * Redistributions of source code must retain the above copyright notice, this
3903
+ * list of conditions and the following disclaimer.
3904
+ *
3905
+ * Redistributions in binary form must reproduce the above copyright notice,
3906
+ * this list of conditions and the following disclaimer in the documentation
3907
+ * and/or other materials provided with the distribution.
3908
+ *
3909
+ * Neither the name of the copyright holder nor the names of its
3910
+ * contributors may be used to endorse or promote products derived from
3911
+ * this software without specific prior written permission.
3912
+ *
3913
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
3914
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
3915
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
3916
+ * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
3917
+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
3918
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
3919
+ * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
3920
+ * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
3921
+ * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
3922
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
3923
+ */
3924
+
3925
+
3712
3926
 
3927
+ /**
3928
+ * Items that are part of a set
3929
+ * @abstract
3930
+ */
3713
3931
 
3714
- let expires = 432000;
3932
+ class CrudSetItemBase extends _CrudBase__WEBPACK_IMPORTED_MODULE_1__["default"] {
3933
+ /**
3934
+ * @param {Mapcreator} api - Api instance
3935
+ * @param {Object<String, *>} data - Item data
3936
+ */
3937
+ constructor(api, data = {}) {
3938
+ super(api, data);
3715
3939
 
3716
- if (typeof data['exipires_in'] !== 'undefined') {
3717
- expires = Number(data['expires_in']);
3718
- } else if (typeof data.expires === 'string') {
3719
- expires = new Date(data.expires);
3940
+ if (this.constructor === _CrudBase__WEBPACK_IMPORTED_MODULE_1__["default"]) {
3941
+ throw new _errors_AbstractError__WEBPACK_IMPORTED_MODULE_0__["AbstractClassError"]();
3720
3942
  }
3943
+ }
3721
3944
 
3722
- return new OAuthToken(data['access_token'], data['token_type'], expires, data.scope || []);
3945
+ get hasParent() {
3946
+ const parentKey = Object(case__WEBPACK_IMPORTED_MODULE_2__["camel"])(this.constructor.parentKey);
3947
+ return this.hasOwnProperty(parentKey);
3723
3948
  }
3724
3949
  /**
3725
- * Store the token for later recovery. Token will be stored in HTTPS cookie if possible.
3726
- * @param {String} name - db key name
3727
- * @throws {OAuthToken#recover}
3950
+ * Get the parent id
3951
+ * @returns {number|undefined} - Parent number
3728
3952
  */
3729
3953
 
3730
3954
 
3731
- save(name = OAuthToken.storageName) {
3732
- const data = {
3733
- token: this.token,
3734
- type: this.type,
3735
- expires: this.expires.toUTCString(),
3736
- scopes: this.scopes
3737
- }; // Third parameter is only used when we're using cookies
3955
+ get parentId() {
3956
+ if (this.hasParent) {
3957
+ const parentKey = Object(case__WEBPACK_IMPORTED_MODULE_2__["camel"])(this.constructor.parentKey);
3958
+ return Number(this[parentKey]);
3959
+ }
3738
3960
 
3739
- _storage_StorageManager__WEBPACK_IMPORTED_MODULE_0__["default"].secure.set(name, JSON.stringify(data), this.expires);
3961
+ return void 0;
3740
3962
  }
3741
3963
  /**
3742
- * Recover a token by looking through the HTTPS cookies and localStorage
3743
- * @param {String} name - Storage key name
3744
- * @returns {OAuthToken|null} - null if none could be recovered
3745
- * @throws {OAuthToken#save}
3964
+ * Get the parent key
3965
+ * @returns {string} - Parent key
3746
3966
  */
3747
3967
 
3748
3968
 
3749
- static recover(name = OAuthToken.storageName) {
3750
- const data = _storage_StorageManager__WEBPACK_IMPORTED_MODULE_0__["default"].secure.get(name);
3751
-
3752
- if (!data) {
3753
- return null;
3754
- }
3755
-
3756
- const obj = JSON.parse(data);
3757
- const instance = new OAuthToken(obj.token, obj.type, new Date(obj.expires), obj.scopes || []);
3758
-
3759
- if (instance.expired) {
3760
- return null;
3761
- }
3762
-
3763
- return instance;
3969
+ static get parentKey() {
3970
+ return this.resourceName.replace(/s$/, '_set_id');
3764
3971
  }
3765
3972
 
3766
3973
  }
3767
3974
 
3768
3975
  /***/ }),
3769
- /* 16 */
3976
+ /* 17 */
3770
3977
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
3771
3978
 
3772
3979
  "use strict";
@@ -3777,7 +3984,7 @@ __webpack_require__.r(__webpack_exports__);
3777
3984
  __webpack_require__.d(__webpack_exports__, "default", function() { return /* binding */ SimpleResourceProxy_SimpleResourceProxy; });
3778
3985
 
3779
3986
  // EXTERNAL MODULE: ./src/Mapcreator.js + 1 modules
3780
- var Mapcreator = __webpack_require__(24);
3987
+ var Mapcreator = __webpack_require__(25);
3781
3988
 
3782
3989
  // EXTERNAL MODULE: ./src/RequestParameters.js
3783
3990
  var RequestParameters = __webpack_require__(3);
@@ -4106,7 +4313,7 @@ class PaginatedResourceListing_PaginatedResourceListing {
4106
4313
 
4107
4314
  }
4108
4315
  // EXTERNAL MODULE: ./src/ResourceLister.js
4109
- var ResourceLister = __webpack_require__(58);
4316
+ var ResourceLister = __webpack_require__(59);
4110
4317
 
4111
4318
  // EXTERNAL MODULE: ./src/resources/base/ResourceBase.js
4112
4319
  var ResourceBase = __webpack_require__(6);
@@ -4310,7 +4517,7 @@ class SimpleResourceProxy_SimpleResourceProxy {
4310
4517
  }
4311
4518
 
4312
4519
  /***/ }),
4313
- /* 17 */
4520
+ /* 18 */
4314
4521
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
4315
4522
 
4316
4523
  "use strict";
@@ -4396,15 +4603,15 @@ class OAuthError extends Error {
4396
4603
  }
4397
4604
 
4398
4605
  /***/ }),
4399
- /* 18 */
4606
+ /* 19 */
4400
4607
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
4401
4608
 
4402
4609
  "use strict";
4403
4610
  __webpack_require__.r(__webpack_exports__);
4404
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return CrudSetItemBase; });
4611
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return CrudSetBase; });
4405
4612
  /* harmony import */ var _errors_AbstractError__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(10);
4406
4613
  /* harmony import */ var _CrudBase__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2);
4407
- /* harmony import */ var case__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(8);
4614
+ /* harmony import */ var case__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7);
4408
4615
  /* harmony import */ var case__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(case__WEBPACK_IMPORTED_MODULE_2__);
4409
4616
  /*
4410
4617
  * BSD 3-Clause License
@@ -4441,55 +4648,56 @@ __webpack_require__.r(__webpack_exports__);
4441
4648
 
4442
4649
 
4443
4650
  /**
4444
- * Items that are part of a set
4651
+ * Crud base for resource sets
4445
4652
  * @abstract
4446
4653
  */
4447
4654
 
4448
- class CrudSetItemBase extends _CrudBase__WEBPACK_IMPORTED_MODULE_1__["default"] {
4655
+ class CrudSetBase extends _CrudBase__WEBPACK_IMPORTED_MODULE_1__["default"] {
4449
4656
  /**
4450
- * @param {Mapcreator} api - Api instance
4451
- * @param {Object<String, *>} data - Item data
4657
+ * Get items associated with the set
4658
+ * @returns {SimpleResourceProxy} - A proxy for accessing the resource
4452
4659
  */
4453
- constructor(api, data = {}) {
4454
- super(api, data);
4455
-
4456
- if (this.constructor === _CrudBase__WEBPACK_IMPORTED_MODULE_1__["default"]) {
4457
- throw new _errors_AbstractError__WEBPACK_IMPORTED_MODULE_0__["AbstractClassError"]();
4458
- }
4459
- }
4460
-
4461
- get hasParent() {
4462
- const parentKey = Object(case__WEBPACK_IMPORTED_MODULE_2__["camel"])(this.constructor.parentKey);
4463
- return this.hasOwnProperty(parentKey);
4660
+ get items() {
4661
+ const url = `${this.url}/items`;
4662
+ const data = {};
4663
+ data[this.constructor.foreignKeyName] = this.id;
4664
+ return this._proxyResourceList(this._Child, url, data);
4464
4665
  }
4465
4666
  /**
4466
- * Get the parent id
4467
- * @returns {number|undefined} - Parent number
4667
+ * Child constructor
4668
+ * @returns {Class<ResourceBase>} - Child constructor
4669
+ * @abstract
4670
+ * @protected
4468
4671
  */
4469
4672
 
4470
4673
 
4471
- get parentId() {
4472
- if (this.hasParent) {
4473
- const parentKey = Object(case__WEBPACK_IMPORTED_MODULE_2__["camel"])(this.constructor.parentKey);
4474
- return Number(this[parentKey]);
4475
- }
4476
-
4477
- return void 0;
4674
+ get _Child() {
4675
+ throw new _errors_AbstractError__WEBPACK_IMPORTED_MODULE_0__["AbstractError"]();
4478
4676
  }
4479
4677
  /**
4480
- * Get the parent key
4481
- * @returns {string} - Parent key
4678
+ * Get the foreign key name
4679
+ * @returns {string} - Foreign key name
4680
+ * @example
4681
+ * api.fontFamilies.select(1).constructor.foreignKeyName === 'fontFamilyId'
4482
4682
  */
4483
4683
 
4484
4684
 
4485
- static get parentKey() {
4486
- return this.resourceName.replace(/s$/, '_set_id');
4685
+ static get foreignKeyName() {
4686
+ if (!this._fk) {
4687
+ let key = this.name; // ex: FontFamily
4688
+
4689
+ key = Object(case__WEBPACK_IMPORTED_MODULE_2__["camel"])(key); // ex: fontFamily
4690
+
4691
+ this._fk = `${key}Id`;
4692
+ }
4693
+
4694
+ return this._fk;
4487
4695
  }
4488
4696
 
4489
4697
  }
4490
4698
 
4491
4699
  /***/ }),
4492
- /* 19 */
4700
+ /* 20 */
4493
4701
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
4494
4702
 
4495
4703
  "use strict";
@@ -4974,13 +5182,13 @@ class StorageManager_StorageManager extends StaticClass["default"] {
4974
5182
  }
4975
5183
 
4976
5184
  /***/ }),
4977
- /* 20 */
5185
+ /* 21 */
4978
5186
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
4979
5187
 
4980
5188
  "use strict";
4981
5189
  __webpack_require__.r(__webpack_exports__);
4982
5190
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return JobShare; });
4983
- /* harmony import */ var _enums__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(7);
5191
+ /* harmony import */ var _enums__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8);
4984
5192
  /* harmony import */ var _base_CrudBase__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2);
4985
5193
  /*
4986
5194
  * BSD 3-Clause License
@@ -5045,7 +5253,7 @@ class JobShare extends _base_CrudBase__WEBPACK_IMPORTED_MODULE_1__["default"] {
5045
5253
  }
5046
5254
 
5047
5255
  /***/ }),
5048
- /* 21 */
5256
+ /* 22 */
5049
5257
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
5050
5258
 
5051
5259
  "use strict";
@@ -5329,7 +5537,7 @@ class DownloadedResource_DownloadedResource {
5329
5537
  }
5330
5538
 
5331
5539
  /***/ }),
5332
- /* 22 */
5540
+ /* 23 */
5333
5541
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
5334
5542
 
5335
5543
  "use strict";
@@ -5340,7 +5548,7 @@ __webpack_require__.r(__webpack_exports__);
5340
5548
  __webpack_require__.d(__webpack_exports__, "default", function() { return /* binding */ Enum_Enum; });
5341
5549
 
5342
5550
  // EXTERNAL MODULE: ./node_modules/case/dist/Case.js
5343
- var Case = __webpack_require__(8);
5551
+ var Case = __webpack_require__(7);
5344
5552
 
5345
5553
  // EXTERNAL MODULE: ./src/utils/reflection.js
5346
5554
  var reflection = __webpack_require__(1);
@@ -5526,7 +5734,7 @@ class Enum_Enum extends Unobservable {
5526
5734
  }
5527
5735
 
5528
5736
  /***/ }),
5529
- /* 23 */
5737
+ /* 24 */
5530
5738
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
5531
5739
 
5532
5740
  "use strict";
@@ -5536,9 +5744,9 @@ __webpack_require__.r(__webpack_exports__);
5536
5744
  /* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
5537
5745
  /* harmony import */ var ky_universal__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(53);
5538
5746
  /* harmony import */ var _errors_AbstractError__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(10);
5539
- /* harmony import */ var _storage_StorageManager__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(19);
5747
+ /* harmony import */ var _storage_StorageManager__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(20);
5540
5748
  /* harmony import */ var _OAuthToken__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(15);
5541
- /* harmony import */ var _StateContainer__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(57);
5749
+ /* harmony import */ var _StateContainer__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(58);
5542
5750
  /* harmony import */ var _utils_helpers__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(0);
5543
5751
 
5544
5752
 
@@ -5679,7 +5887,7 @@ class OAuth {
5679
5887
  }
5680
5888
 
5681
5889
  /***/ }),
5682
- /* 24 */
5890
+ /* 25 */
5683
5891
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
5684
5892
 
5685
5893
  "use strict";
@@ -5693,13 +5901,13 @@ __webpack_require__.d(__webpack_exports__, "default", function() { return /* bin
5693
5901
  var browser = __webpack_require__(53);
5694
5902
 
5695
5903
  // EXTERNAL MODULE: ./src/enums/index.js + 3 modules
5696
- var enums = __webpack_require__(7);
5904
+ var enums = __webpack_require__(8);
5697
5905
 
5698
5906
  // EXTERNAL MODULE: ./src/oauth/DummyFlow.js
5699
5907
  var DummyFlow = __webpack_require__(55);
5700
5908
 
5701
5909
  // EXTERNAL MODULE: ./src/oauth/OAuth.js
5702
- var OAuth = __webpack_require__(23);
5910
+ var OAuth = __webpack_require__(24);
5703
5911
 
5704
5912
  // EXTERNAL MODULE: ./src/oauth/OAuthToken.js
5705
5913
  var OAuthToken = __webpack_require__(15);
@@ -5711,9 +5919,9 @@ var GeoResourceProxy = __webpack_require__(32);
5711
5919
  var ResourceProxy = __webpack_require__(14);
5712
5920
 
5713
5921
  // EXTERNAL MODULE: ./src/proxy/SimpleResourceProxy.js + 1 modules
5714
- var SimpleResourceProxy = __webpack_require__(16);
5922
+ var SimpleResourceProxy = __webpack_require__(17);
5715
5923
 
5716
- // EXTERNAL MODULE: ./src/resources/index.js + 7 modules
5924
+ // EXTERNAL MODULE: ./src/resources/index.js + 9 modules
5717
5925
  var resources = __webpack_require__(4);
5718
5926
 
5719
5927
  // EXTERNAL MODULE: ./src/resources/base/ResourceBase.js
@@ -6467,6 +6675,14 @@ class Mapcreator_Mapcreator extends Object(reflection["mix"])(events_default.a,
6467
6675
  get permissions() {
6468
6676
  return this.static(resources["Permission"]);
6469
6677
  }
6678
+
6679
+ get productTours() {
6680
+ return this.static(resources["ProductTour"]);
6681
+ }
6682
+
6683
+ get productTourSteps() {
6684
+ return this.static(resources["ProductTourStep"]);
6685
+ }
6470
6686
  /**
6471
6687
  * Role accessor
6472
6688
  * @see {@link Role}
@@ -6557,100 +6773,6 @@ class Mapcreator_Mapcreator extends Object(reflection["mix"])(events_default.a,
6557
6773
 
6558
6774
  }
6559
6775
 
6560
- /***/ }),
6561
- /* 25 */
6562
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
6563
-
6564
- "use strict";
6565
- __webpack_require__.r(__webpack_exports__);
6566
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return CrudSetBase; });
6567
- /* harmony import */ var _errors_AbstractError__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(10);
6568
- /* harmony import */ var _CrudBase__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2);
6569
- /* harmony import */ var case__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(8);
6570
- /* harmony import */ var case__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(case__WEBPACK_IMPORTED_MODULE_2__);
6571
- /*
6572
- * BSD 3-Clause License
6573
- *
6574
- * Copyright (c) 2020, Mapcreator
6575
- * All rights reserved.
6576
- *
6577
- * Redistribution and use in source and binary forms, with or without
6578
- * modification, are permitted provided that the following conditions are met:
6579
- *
6580
- * Redistributions of source code must retain the above copyright notice, this
6581
- * list of conditions and the following disclaimer.
6582
- *
6583
- * Redistributions in binary form must reproduce the above copyright notice,
6584
- * this list of conditions and the following disclaimer in the documentation
6585
- * and/or other materials provided with the distribution.
6586
- *
6587
- * Neither the name of the copyright holder nor the names of its
6588
- * contributors may be used to endorse or promote products derived from
6589
- * this software without specific prior written permission.
6590
- *
6591
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
6592
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
6593
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
6594
- * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
6595
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
6596
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
6597
- * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
6598
- * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
6599
- * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
6600
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
6601
- */
6602
-
6603
-
6604
-
6605
- /**
6606
- * Crud base for resource sets
6607
- * @abstract
6608
- */
6609
-
6610
- class CrudSetBase extends _CrudBase__WEBPACK_IMPORTED_MODULE_1__["default"] {
6611
- /**
6612
- * Get items associated with the set
6613
- * @returns {SimpleResourceProxy} - A proxy for accessing the resource
6614
- */
6615
- get items() {
6616
- const url = `${this.url}/items`;
6617
- const data = {};
6618
- data[this.constructor.foreignKeyName] = this.id;
6619
- return this._proxyResourceList(this._Child, url, data);
6620
- }
6621
- /**
6622
- * Child constructor
6623
- * @returns {Class<ResourceBase>} - Child constructor
6624
- * @abstract
6625
- * @protected
6626
- */
6627
-
6628
-
6629
- get _Child() {
6630
- throw new _errors_AbstractError__WEBPACK_IMPORTED_MODULE_0__["AbstractError"]();
6631
- }
6632
- /**
6633
- * Get the foreign key name
6634
- * @returns {string} - Foreign key name
6635
- * @example
6636
- * api.fontFamilies.select(1).constructor.foreignKeyName === 'fontFamilyId'
6637
- */
6638
-
6639
-
6640
- static get foreignKeyName() {
6641
- if (!this._fk) {
6642
- let key = this.name; // ex: FontFamily
6643
-
6644
- key = Object(case__WEBPACK_IMPORTED_MODULE_2__["camel"])(key); // ex: fontFamily
6645
-
6646
- this._fk = `${key}Id`;
6647
- }
6648
-
6649
- return this._fk;
6650
- }
6651
-
6652
- }
6653
-
6654
6776
  /***/ }),
6655
6777
  /* 26 */
6656
6778
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
@@ -7352,11 +7474,11 @@ class GeoResourceProxy extends _ResourceProxy__WEBPACK_IMPORTED_MODULE_3__["defa
7352
7474
  "use strict";
7353
7475
  __webpack_require__.r(__webpack_exports__);
7354
7476
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return JobResult; });
7355
- /* harmony import */ var _base_DownloadedResource__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(21);
7477
+ /* harmony import */ var _base_DownloadedResource__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(22);
7356
7478
  /* harmony import */ var _base_ResourceBase__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6);
7357
7479
  /* harmony import */ var _RequestParameters__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(3);
7358
7480
  /* harmony import */ var _utils_requests__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(5);
7359
- /* harmony import */ var _enums__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(7);
7481
+ /* harmony import */ var _enums__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(8);
7360
7482
  /* harmony import */ var _utils_helpers__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(0);
7361
7483
  /*
7362
7484
  * BSD 3-Clause License
@@ -7864,7 +7986,7 @@ class Color extends Object(_utils_reflection__WEBPACK_IMPORTED_MODULE_2__["mix"]
7864
7986
  "use strict";
7865
7987
  __webpack_require__.r(__webpack_exports__);
7866
7988
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return DimensionSet; });
7867
- /* harmony import */ var _base_CrudSetBase__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(25);
7989
+ /* harmony import */ var _base_CrudSetBase__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(19);
7868
7990
  /* harmony import */ var _Dimension__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(38);
7869
7991
  /* harmony import */ var _traits_OwnableResource__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(11);
7870
7992
  /* harmony import */ var _utils_reflection__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(1);
@@ -7931,7 +8053,7 @@ class DimensionSet extends Object(_utils_reflection__WEBPACK_IMPORTED_MODULE_3__
7931
8053
  "use strict";
7932
8054
  __webpack_require__.r(__webpack_exports__);
7933
8055
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return Dimension; });
7934
- /* harmony import */ var _base_CrudSetItemBase__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(18);
8056
+ /* harmony import */ var _base_CrudSetItemBase__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(16);
7935
8057
  /*
7936
8058
  * BSD 3-Clause License
7937
8059
  *
@@ -8041,7 +8163,7 @@ __webpack_require__.r(__webpack_exports__);
8041
8163
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return FontFamily; });
8042
8164
  /* harmony import */ var _traits_OwnableResource__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(11);
8043
8165
  /* harmony import */ var _utils_reflection__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1);
8044
- /* harmony import */ var _base_CrudSetBase__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(25);
8166
+ /* harmony import */ var _base_CrudSetBase__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(19);
8045
8167
  /* harmony import */ var _Font__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(41);
8046
8168
  /*
8047
8169
  * BSD 3-Clause License
@@ -8106,7 +8228,7 @@ class FontFamily extends Object(_utils_reflection__WEBPACK_IMPORTED_MODULE_1__["
8106
8228
  "use strict";
8107
8229
  __webpack_require__.r(__webpack_exports__);
8108
8230
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return Font; });
8109
- /* harmony import */ var _base_CrudSetItemBase__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(18);
8231
+ /* harmony import */ var _base_CrudSetItemBase__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(16);
8110
8232
  /*
8111
8233
  * BSD 3-Clause License
8112
8234
  *
@@ -8158,15 +8280,15 @@ class Font extends _base_CrudSetItemBase__WEBPACK_IMPORTED_MODULE_0__["default"]
8158
8280
  __webpack_require__.r(__webpack_exports__);
8159
8281
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return Job; });
8160
8282
  /* harmony import */ var _proxy_ResourceProxy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(14);
8161
- /* harmony import */ var _base_DownloadedResource__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(21);
8283
+ /* harmony import */ var _base_DownloadedResource__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(22);
8162
8284
  /* harmony import */ var _base_CrudBase__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(2);
8163
8285
  /* harmony import */ var _JobResult__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(33);
8164
- /* harmony import */ var _JobRevision__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(62);
8286
+ /* harmony import */ var _JobRevision__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(63);
8165
8287
  /* harmony import */ var _RequestParameters__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(3);
8166
8288
  /* harmony import */ var _utils_requests__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(5);
8167
- /* harmony import */ var _enums__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(7);
8289
+ /* harmony import */ var _enums__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(8);
8168
8290
  /* harmony import */ var _utils_helpers__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(0);
8169
- /* harmony import */ var _JobShare__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(20);
8291
+ /* harmony import */ var _JobShare__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(21);
8170
8292
  /*
8171
8293
  * BSD 3-Clause License
8172
8294
  *
@@ -8419,7 +8541,7 @@ __webpack_require__.r(__webpack_exports__);
8419
8541
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return Mapstyle; });
8420
8542
  /* harmony import */ var _traits_HandlesImages__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(69);
8421
8543
  /* harmony import */ var _utils_reflection__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1);
8422
- /* harmony import */ var _base_CrudSetItemBase__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(18);
8544
+ /* harmony import */ var _base_CrudSetItemBase__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(16);
8423
8545
  /*
8424
8546
  * BSD 3-Clause License
8425
8547
  *
@@ -8474,7 +8596,7 @@ class Mapstyle extends Object(_utils_reflection__WEBPACK_IMPORTED_MODULE_1__["mi
8474
8596
  __webpack_require__.r(__webpack_exports__);
8475
8597
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return SvgSet; });
8476
8598
  /* harmony import */ var _traits_OwnableResource__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(11);
8477
- /* harmony import */ var _base_CrudSetBase__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(25);
8599
+ /* harmony import */ var _base_CrudSetBase__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(19);
8478
8600
  /* harmony import */ var _Svg__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(46);
8479
8601
  /* harmony import */ var _utils_reflection__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(1);
8480
8602
  /*
@@ -8540,7 +8662,7 @@ class SvgSet extends Object(_utils_reflection__WEBPACK_IMPORTED_MODULE_3__["mix"
8540
8662
  "use strict";
8541
8663
  __webpack_require__.r(__webpack_exports__);
8542
8664
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return Svg; });
8543
- /* harmony import */ var _base_CrudSetItemBase__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(18);
8665
+ /* harmony import */ var _base_CrudSetItemBase__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(16);
8544
8666
  /*
8545
8667
  * BSD 3-Clause License
8546
8668
  *
@@ -8589,7 +8711,7 @@ __webpack_require__.r(__webpack_exports__);
8589
8711
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return Tag; });
8590
8712
  /* harmony import */ var _traits_OwnableResource__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(11);
8591
8713
  /* harmony import */ var _utils_reflection__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1);
8592
- /* harmony import */ var _base_CrudSetItemBase__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(18);
8714
+ /* harmony import */ var _base_CrudSetItemBase__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(16);
8593
8715
  /*
8594
8716
  * BSD 3-Clause License
8595
8717
  *
@@ -8658,17 +8780,17 @@ __webpack_require__.r(__webpack_exports__);
8658
8780
  /* harmony import */ var _Font__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(41);
8659
8781
  /* harmony import */ var _FontFamily__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(40);
8660
8782
  /* harmony import */ var _Job__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(42);
8661
- /* harmony import */ var _JobShare__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(20);
8783
+ /* harmony import */ var _JobShare__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(21);
8662
8784
  /* harmony import */ var _JobType__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(43);
8663
- /* harmony import */ var _Language__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(63);
8785
+ /* harmony import */ var _Language__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(64);
8664
8786
  /* harmony import */ var _Layer__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(26);
8665
8787
  /* harmony import */ var _Mapstyle__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(44);
8666
8788
  /* harmony import */ var _MapstyleSet__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(50);
8667
- /* harmony import */ var _Message__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(67);
8668
- /* harmony import */ var _Notification__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(64);
8789
+ /* harmony import */ var _Message__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(57);
8790
+ /* harmony import */ var _Notification__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(65);
8669
8791
  /* harmony import */ var _Organisation__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(54);
8670
8792
  /* harmony import */ var _Permission__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(49);
8671
- /* harmony import */ var _Role__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(65);
8793
+ /* harmony import */ var _Role__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(66);
8672
8794
  /* harmony import */ var _Svg__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(46);
8673
8795
  /* harmony import */ var _SvgSet__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(45);
8674
8796
  /* harmony import */ var _utils_helpers__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(0);
@@ -8780,13 +8902,24 @@ class User extends _base_CrudBase__WEBPACK_IMPORTED_MODULE_2__["default"] {
8780
8902
  return this._proxyResourceList(_Notification__WEBPACK_IMPORTED_MODULE_17__["default"]);
8781
8903
  }
8782
8904
  /**
8783
- * Get the list messagse linked to the user
8784
- * @returns {SimpleResourceProxy} - A proxy for accessing the resource
8905
+ * Get a list of read/unread messages for the user
8906
+ * @returns {CancelablePromise<{read: Message[], unread: Message[]}>} - Read and unread messages
8785
8907
  */
8786
8908
 
8787
8909
 
8788
- get messages() {
8789
- return this._proxyResourceList(_Message__WEBPACK_IMPORTED_MODULE_16__["default"]);
8910
+ messages() {
8911
+ const url = `${this.url}/messages`;
8912
+ return Object(_utils_helpers__WEBPACK_IMPORTED_MODULE_23__["makeCancelable"])(async signal => {
8913
+ const {
8914
+ data
8915
+ } = await this.api.ky.get(url, {
8916
+ signal
8917
+ }).json();
8918
+ return {
8919
+ read: data.read.map(o => new _Message__WEBPACK_IMPORTED_MODULE_16__["default"](this.api, o)),
8920
+ unread: data.unread.map(o => new _Message__WEBPACK_IMPORTED_MODULE_16__["default"](this.api, o))
8921
+ };
8922
+ });
8790
8923
  }
8791
8924
  /**
8792
8925
  * Get the list mapstyle sets linked to the user
@@ -9001,7 +9134,7 @@ var OwnableResource = __webpack_require__(11);
9001
9134
  var reflection = __webpack_require__(1);
9002
9135
 
9003
9136
  // EXTERNAL MODULE: ./src/resources/base/CrudSetBase.js
9004
- var CrudSetBase = __webpack_require__(25);
9137
+ var CrudSetBase = __webpack_require__(19);
9005
9138
 
9006
9139
  // EXTERNAL MODULE: ./src/resources/Mapstyle.js
9007
9140
  var Mapstyle = __webpack_require__(44);
@@ -9010,7 +9143,7 @@ var Mapstyle = __webpack_require__(44);
9010
9143
  var ResourceProxy = __webpack_require__(14);
9011
9144
 
9012
9145
  // EXTERNAL MODULE: ./src/resources/base/CrudSetItemBase.js
9013
- var CrudSetItemBase = __webpack_require__(18);
9146
+ var CrudSetItemBase = __webpack_require__(16);
9014
9147
 
9015
9148
  // CONCATENATED MODULE: ./src/resources/MapstyleSetColor.js
9016
9149
  /*
@@ -10166,13 +10299,13 @@ __webpack_require__.r(__webpack_exports__);
10166
10299
  /* harmony import */ var _proxy_OwnedResourceProxy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(12);
10167
10300
  /* harmony import */ var _base_CrudBase__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2);
10168
10301
  /* harmony import */ var _Color__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(36);
10169
- /* harmony import */ var _Contract__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(60);
10302
+ /* harmony import */ var _Contract__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(61);
10170
10303
  /* harmony import */ var _DimensionSet__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(37);
10171
- /* harmony import */ var _Domain__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(61);
10304
+ /* harmony import */ var _Domain__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(62);
10172
10305
  /* harmony import */ var _Feature__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(39);
10173
10306
  /* harmony import */ var _FontFamily__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(40);
10174
10307
  /* harmony import */ var _Job__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(42);
10175
- /* harmony import */ var _JobShare__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(20);
10308
+ /* harmony import */ var _JobShare__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(21);
10176
10309
  /* harmony import */ var _JobType__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(43);
10177
10310
  /* harmony import */ var _Layer__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(26);
10178
10311
  /* harmony import */ var _MapstyleSet__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(50);
@@ -10413,8 +10546,8 @@ class Organisation extends _base_CrudBase__WEBPACK_IMPORTED_MODULE_1__["default"
10413
10546
  "use strict";
10414
10547
  __webpack_require__.r(__webpack_exports__);
10415
10548
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return DummyFlow; });
10416
- /* harmony import */ var _errors_OAuthError__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(17);
10417
- /* harmony import */ var _OAuth__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(23);
10549
+ /* harmony import */ var _errors_OAuthError__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(18);
10550
+ /* harmony import */ var _OAuth__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(24);
10418
10551
  /*
10419
10552
  * BSD 3-Clause License
10420
10553
  *
@@ -10651,11 +10784,162 @@ class GeoBoundary {
10651
10784
  // ESM COMPAT FLAG
10652
10785
  __webpack_require__.r(__webpack_exports__);
10653
10786
 
10787
+ // EXPORTS
10788
+ __webpack_require__.d(__webpack_exports__, "default", function() { return /* binding */ Message_Message; });
10789
+
10790
+ // EXTERNAL MODULE: ./src/resources/base/CrudBase.js
10791
+ var CrudBase = __webpack_require__(2);
10792
+
10793
+ // EXTERNAL MODULE: ./src/resources/base/ResourceBase.js
10794
+ var ResourceBase = __webpack_require__(6);
10795
+
10796
+ // CONCATENATED MODULE: ./src/resources/MessageVariant.js
10797
+ /*
10798
+ * BSD 3-Clause License
10799
+ *
10800
+ * Copyright (c) 2020, Mapcreator
10801
+ * All rights reserved.
10802
+ *
10803
+ * Redistribution and use in source and binary forms, with or without
10804
+ * modification, are permitted provided that the following conditions are met:
10805
+ *
10806
+ * Redistributions of source code must retain the above copyright notice, this
10807
+ * list of conditions and the following disclaimer.
10808
+ *
10809
+ * Redistributions in binary form must reproduce the above copyright notice,
10810
+ * this list of conditions and the following disclaimer in the documentation
10811
+ * and/or other materials provided with the distribution.
10812
+ *
10813
+ * Neither the name of the copyright holder nor the names of its
10814
+ * contributors may be used to endorse or promote products derived from
10815
+ * this software without specific prior written permission.
10816
+ *
10817
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
10818
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
10819
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
10820
+ * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
10821
+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
10822
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
10823
+ * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
10824
+ * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
10825
+ * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
10826
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
10827
+ */
10828
+
10829
+ class MessageVariant_MessageVariant extends ResourceBase["default"] {}
10830
+ // EXTERNAL MODULE: ./src/utils/helpers.js
10831
+ var helpers = __webpack_require__(0);
10832
+
10833
+ // EXTERNAL MODULE: ./node_modules/case/dist/Case.js
10834
+ var Case = __webpack_require__(7);
10835
+
10836
+ // CONCATENATED MODULE: ./src/resources/Message.js
10837
+ /*
10838
+ * BSD 3-Clause License
10839
+ *
10840
+ * Copyright (c) 2020, Mapcreator
10841
+ * All rights reserved.
10842
+ *
10843
+ * Redistribution and use in source and binary forms, with or without
10844
+ * modification, are permitted provided that the following conditions are met:
10845
+ *
10846
+ * Redistributions of source code must retain the above copyright notice, this
10847
+ * list of conditions and the following disclaimer.
10848
+ *
10849
+ * Redistributions in binary form must reproduce the above copyright notice,
10850
+ * this list of conditions and the following disclaimer in the documentation
10851
+ * and/or other materials provided with the distribution.
10852
+ *
10853
+ * Neither the name of the copyright holder nor the names of its
10854
+ * contributors may be used to endorse or promote products derived from
10855
+ * this software without specific prior written permission.
10856
+ *
10857
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
10858
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
10859
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
10860
+ * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
10861
+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
10862
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
10863
+ * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
10864
+ * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
10865
+ * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
10866
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
10867
+ */
10868
+
10869
+
10870
+
10871
+
10872
+ class Message_Message extends CrudBase["default"] {
10873
+ static get resourceName() {
10874
+ return 'messages';
10875
+ }
10876
+
10877
+ toObject(camelCaseKeys = false) {
10878
+ const superObject = super.toObject(camelCaseKeys);
10879
+ superObject.variants = superObject.variants.map(variant => {
10880
+ if (variant instanceof MessageVariant_MessageVariant) {
10881
+ return variant.toObject(camelCaseKeys);
10882
+ }
10883
+
10884
+ const caseFn = camelCaseKeys ? Case["camel"] : Case["snake"];
10885
+ const res = {};
10886
+ const fields = Object.keys(variant);
10887
+
10888
+ for (const field of fields) {
10889
+ res[caseFn(field)] = variant[field];
10890
+ }
10891
+
10892
+ return res;
10893
+ });
10894
+ return superObject;
10895
+ }
10896
+
10897
+ _guessType(name, value) {
10898
+ if (name === 'variants') {
10899
+ return Array.from(value).map(data => new MessageVariant_MessageVariant(this.api, data));
10900
+ }
10901
+
10902
+ return super._guessType(name, value);
10903
+ }
10904
+
10905
+ _buildCreateData() {
10906
+ return this.toObject();
10907
+ }
10908
+
10909
+ _update() {
10910
+ return Object(helpers["makeCancelable"])(async signal => {
10911
+ const json = this.toObject();
10912
+ await this.api.ky.patch(this.url, {
10913
+ json,
10914
+ signal
10915
+ }); // Reset changes
10916
+
10917
+ Object.assign(this._baseProperties, this._properties);
10918
+ this._properties = {};
10919
+
10920
+ if ('updated_at' in this._baseProperties) {
10921
+ this._baseProperties['updated_at'] = new Date();
10922
+ }
10923
+
10924
+ return this;
10925
+ });
10926
+ }
10927
+
10928
+ }
10929
+
10930
+ /***/ }),
10931
+ /* 58 */
10932
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
10933
+
10934
+ "use strict";
10935
+ // ESM COMPAT FLAG
10936
+ __webpack_require__.r(__webpack_exports__);
10937
+
10654
10938
  // EXPORTS
10655
10939
  __webpack_require__.d(__webpack_exports__, "default", function() { return /* binding */ StateContainer_StateContainer; });
10656
10940
 
10657
10941
  // EXTERNAL MODULE: ./src/storage/StorageManager.js + 3 modules
10658
- var StorageManager = __webpack_require__(19);
10942
+ var StorageManager = __webpack_require__(20);
10659
10943
 
10660
10944
  // EXTERNAL MODULE: ./src/utils/StaticClass.js
10661
10945
  var StaticClass = __webpack_require__(51);
@@ -10838,17 +11122,17 @@ class StateContainer_StateContainer extends StaticClass["default"] {
10838
11122
  }
10839
11123
 
10840
11124
  /***/ }),
10841
- /* 58 */
11125
+ /* 59 */
10842
11126
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
10843
11127
 
10844
11128
  "use strict";
10845
11129
  __webpack_require__.r(__webpack_exports__);
10846
11130
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return ResourceLister; });
10847
- /* harmony import */ var case__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8);
11131
+ /* harmony import */ var case__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(7);
10848
11132
  /* harmony import */ var case__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(case__WEBPACK_IMPORTED_MODULE_0__);
10849
11133
  /* harmony import */ var events__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(52);
10850
11134
  /* harmony import */ var events__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(events__WEBPACK_IMPORTED_MODULE_1__);
10851
- /* harmony import */ var _Mapcreator__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(24);
11135
+ /* harmony import */ var _Mapcreator__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(25);
10852
11136
  /* harmony import */ var _RequestParameters__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(3);
10853
11137
  /* harmony import */ var _resources_base_ResourceBase__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(6);
10854
11138
  /* harmony import */ var _utils_reflection__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(1);
@@ -11239,14 +11523,14 @@ class ResourceLister extends events__WEBPACK_IMPORTED_MODULE_1__["EventEmitter"]
11239
11523
  }
11240
11524
 
11241
11525
  /***/ }),
11242
- /* 59 */
11526
+ /* 60 */
11243
11527
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
11244
11528
 
11245
11529
  "use strict";
11246
11530
  __webpack_require__.r(__webpack_exports__);
11247
11531
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return OrganisationProxy; });
11248
11532
  /* harmony import */ var _utils_reflection__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1);
11249
- /* harmony import */ var _SimpleResourceProxy__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(16);
11533
+ /* harmony import */ var _SimpleResourceProxy__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(17);
11250
11534
  /* harmony import */ var _utils_helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(0);
11251
11535
  /*
11252
11536
  * BSD 3-Clause License
@@ -11414,7 +11698,7 @@ class OrganisationProxy extends _SimpleResourceProxy__WEBPACK_IMPORTED_MODULE_1_
11414
11698
  }
11415
11699
 
11416
11700
  /***/ }),
11417
- /* 60 */
11701
+ /* 61 */
11418
11702
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
11419
11703
 
11420
11704
  "use strict";
@@ -11465,7 +11749,7 @@ class Contract extends _base_CrudBase__WEBPACK_IMPORTED_MODULE_0__["default"] {
11465
11749
  }
11466
11750
 
11467
11751
  /***/ }),
11468
- /* 61 */
11752
+ /* 62 */
11469
11753
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
11470
11754
 
11471
11755
  "use strict";
@@ -11516,7 +11800,7 @@ class Domain extends _base_CrudBase__WEBPACK_IMPORTED_MODULE_0__["default"] {
11516
11800
  }
11517
11801
 
11518
11802
  /***/ }),
11519
- /* 62 */
11803
+ /* 63 */
11520
11804
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
11521
11805
 
11522
11806
  "use strict";
@@ -11525,11 +11809,11 @@ __webpack_require__.r(__webpack_exports__);
11525
11809
  /* harmony import */ var _utils_reflection__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1);
11526
11810
  /* harmony import */ var _base_CrudBase__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2);
11527
11811
  /* harmony import */ var _JobResult__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(33);
11528
- /* harmony import */ var _JobShare__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(20);
11812
+ /* harmony import */ var _JobShare__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(21);
11529
11813
  /* harmony import */ var _Layer__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(26);
11530
11814
  /* harmony import */ var _RequestParameters__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(3);
11531
11815
  /* harmony import */ var _utils_requests__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(5);
11532
- /* harmony import */ var _enums__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(7);
11816
+ /* harmony import */ var _enums__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(8);
11533
11817
  /* harmony import */ var _utils_helpers__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(0);
11534
11818
  /*
11535
11819
  * BSD 3-Clause License
@@ -11768,7 +12052,7 @@ class JobRevision extends _base_CrudBase__WEBPACK_IMPORTED_MODULE_1__["default"]
11768
12052
  }
11769
12053
 
11770
12054
  /***/ }),
11771
- /* 63 */
12055
+ /* 64 */
11772
12056
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
11773
12057
 
11774
12058
  "use strict";
@@ -11827,7 +12111,7 @@ class Language extends _base_CrudBase__WEBPACK_IMPORTED_MODULE_0__["default"] {
11827
12111
  }
11828
12112
 
11829
12113
  /***/ }),
11830
- /* 64 */
12114
+ /* 65 */
11831
12115
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
11832
12116
 
11833
12117
  "use strict";
@@ -11874,7 +12158,7 @@ class Notification extends _base_CrudBase__WEBPACK_IMPORTED_MODULE_0__["default"
11874
12158
  }
11875
12159
 
11876
12160
  /***/ }),
11877
- /* 65 */
12161
+ /* 66 */
11878
12162
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
11879
12163
 
11880
12164
  "use strict";
@@ -11944,7 +12228,7 @@ class Role extends _base_CrudBase__WEBPACK_IMPORTED_MODULE_1__["default"] {
11944
12228
  }
11945
12229
 
11946
12230
  /***/ }),
11947
- /* 66 */
12231
+ /* 67 */
11948
12232
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
11949
12233
 
11950
12234
  "use strict";
@@ -12009,7 +12293,7 @@ var ValidationError = __webpack_require__(35);
12009
12293
  */
12010
12294
  class NodeError extends Error {}
12011
12295
  // EXTERNAL MODULE: ./src/errors/OAuthError.js
12012
- var OAuthError = __webpack_require__(17);
12296
+ var OAuthError = __webpack_require__(18);
12013
12297
 
12014
12298
  // EXTERNAL MODULE: ./src/errors/StaticClassError.js
12015
12299
  var StaticClassError = __webpack_require__(34);
@@ -12063,106 +12347,6 @@ var GeoError = __webpack_require__(31);
12063
12347
 
12064
12348
 
12065
12349
 
12066
- /***/ }),
12067
- /* 67 */
12068
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
12069
-
12070
- "use strict";
12071
- // ESM COMPAT FLAG
12072
- __webpack_require__.r(__webpack_exports__);
12073
-
12074
- // EXPORTS
12075
- __webpack_require__.d(__webpack_exports__, "default", function() { return /* binding */ Message_Message; });
12076
-
12077
- // EXTERNAL MODULE: ./src/resources/base/CrudBase.js
12078
- var CrudBase = __webpack_require__(2);
12079
-
12080
- // EXTERNAL MODULE: ./src/resources/base/ResourceBase.js
12081
- var ResourceBase = __webpack_require__(6);
12082
-
12083
- // CONCATENATED MODULE: ./src/resources/MessageVariant.js
12084
- /*
12085
- * BSD 3-Clause License
12086
- *
12087
- * Copyright (c) 2020, Mapcreator
12088
- * All rights reserved.
12089
- *
12090
- * Redistribution and use in source and binary forms, with or without
12091
- * modification, are permitted provided that the following conditions are met:
12092
- *
12093
- * Redistributions of source code must retain the above copyright notice, this
12094
- * list of conditions and the following disclaimer.
12095
- *
12096
- * Redistributions in binary form must reproduce the above copyright notice,
12097
- * this list of conditions and the following disclaimer in the documentation
12098
- * and/or other materials provided with the distribution.
12099
- *
12100
- * Neither the name of the copyright holder nor the names of its
12101
- * contributors may be used to endorse or promote products derived from
12102
- * this software without specific prior written permission.
12103
- *
12104
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
12105
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
12106
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
12107
- * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
12108
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
12109
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
12110
- * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
12111
- * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
12112
- * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
12113
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
12114
- */
12115
-
12116
- class MessageVariant_MessageVariant extends ResourceBase["default"] {}
12117
- // CONCATENATED MODULE: ./src/resources/Message.js
12118
- /*
12119
- * BSD 3-Clause License
12120
- *
12121
- * Copyright (c) 2020, Mapcreator
12122
- * All rights reserved.
12123
- *
12124
- * Redistribution and use in source and binary forms, with or without
12125
- * modification, are permitted provided that the following conditions are met:
12126
- *
12127
- * Redistributions of source code must retain the above copyright notice, this
12128
- * list of conditions and the following disclaimer.
12129
- *
12130
- * Redistributions in binary form must reproduce the above copyright notice,
12131
- * this list of conditions and the following disclaimer in the documentation
12132
- * and/or other materials provided with the distribution.
12133
- *
12134
- * Neither the name of the copyright holder nor the names of its
12135
- * contributors may be used to endorse or promote products derived from
12136
- * this software without specific prior written permission.
12137
- *
12138
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
12139
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
12140
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
12141
- * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
12142
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
12143
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
12144
- * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
12145
- * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
12146
- * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
12147
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
12148
- */
12149
-
12150
-
12151
- class Message_Message extends CrudBase["default"] {
12152
- static get resourceName() {
12153
- return 'messages';
12154
- }
12155
-
12156
- _guessType(name, value) {
12157
- if (name === 'variants') {
12158
- return Array.from(value).map(data => new MessageVariant_MessageVariant(this.api, data));
12159
- }
12160
-
12161
- return super._guessType(name, value);
12162
- }
12163
-
12164
- }
12165
-
12166
12350
  /***/ }),
12167
12351
  /* 68 */
12168
12352
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
@@ -12423,10 +12607,10 @@ __webpack_require__.d(__webpack_exports__, "default", function() { return /* bin
12423
12607
  var Trait = __webpack_require__(28);
12424
12608
 
12425
12609
  // EXTERNAL MODULE: ./src/Mapcreator.js + 1 modules
12426
- var Mapcreator = __webpack_require__(24);
12610
+ var Mapcreator = __webpack_require__(25);
12427
12611
 
12428
12612
  // EXTERNAL MODULE: ./src/resources/base/DownloadedResource.js + 1 modules
12429
- var DownloadedResource = __webpack_require__(21);
12613
+ var DownloadedResource = __webpack_require__(22);
12430
12614
 
12431
12615
  // EXTERNAL MODULE: ./src/resources/base/ResourceBase.js
12432
12616
  var ResourceBase = __webpack_require__(6);
@@ -13423,40 +13607,40 @@ __webpack_require__.d(proxy_namespaceObject, "ResourceProxy", function() { retur
13423
13607
  __webpack_require__.d(proxy_namespaceObject, "SimpleResourceProxy", function() { return SimpleResourceProxy["default"]; });
13424
13608
 
13425
13609
  // EXTERNAL MODULE: ./src/Mapcreator.js + 1 modules
13426
- var Mapcreator = __webpack_require__(24);
13610
+ var Mapcreator = __webpack_require__(25);
13427
13611
 
13428
13612
  // EXTERNAL MODULE: ./src/RequestParameters.js
13429
13613
  var RequestParameters = __webpack_require__(3);
13430
13614
 
13431
13615
  // EXTERNAL MODULE: ./src/storage/StorageManager.js + 3 modules
13432
- var StorageManager = __webpack_require__(19);
13616
+ var StorageManager = __webpack_require__(20);
13433
13617
 
13434
13618
  // EXTERNAL MODULE: ./src/enums/Enum.js + 1 modules
13435
- var Enum = __webpack_require__(22);
13619
+ var Enum = __webpack_require__(23);
13436
13620
 
13437
13621
  // EXTERNAL MODULE: ./src/enums/index.js + 3 modules
13438
- var enums = __webpack_require__(7);
13622
+ var enums = __webpack_require__(8);
13439
13623
 
13440
13624
  // EXTERNAL MODULE: ./src/oauth/OAuth.js
13441
- var OAuth = __webpack_require__(23);
13625
+ var OAuth = __webpack_require__(24);
13442
13626
 
13443
13627
  // EXTERNAL MODULE: ./src/oauth/OAuthToken.js
13444
13628
  var OAuthToken = __webpack_require__(15);
13445
13629
 
13446
13630
  // EXTERNAL MODULE: ./src/oauth/StateContainer.js + 1 modules
13447
- var StateContainer = __webpack_require__(57);
13631
+ var StateContainer = __webpack_require__(58);
13448
13632
 
13449
13633
  // EXTERNAL MODULE: ./src/utils/requests.js
13450
13634
  var requests = __webpack_require__(5);
13451
13635
 
13452
13636
  // EXTERNAL MODULE: ./src/errors/OAuthError.js
13453
- var OAuthError = __webpack_require__(17);
13637
+ var OAuthError = __webpack_require__(18);
13454
13638
 
13455
13639
  // EXTERNAL MODULE: ./src/utils/node.js
13456
13640
  var node = __webpack_require__(13);
13457
13641
 
13458
13642
  // EXTERNAL MODULE: ./node_modules/case/dist/Case.js
13459
- var Case = __webpack_require__(8);
13643
+ var Case = __webpack_require__(7);
13460
13644
 
13461
13645
  // CONCATENATED MODULE: ./src/oauth/ImplicitFlow.js
13462
13646
  /*
@@ -13992,23 +14176,23 @@ var ValidationError = __webpack_require__(35);
13992
14176
  // EXTERNAL MODULE: ./src/errors/StaticClassError.js
13993
14177
  var StaticClassError = __webpack_require__(34);
13994
14178
 
13995
- // EXTERNAL MODULE: ./src/resources/index.js + 7 modules
14179
+ // EXTERNAL MODULE: ./src/resources/index.js + 9 modules
13996
14180
  var resources = __webpack_require__(4);
13997
14181
 
13998
14182
  // EXTERNAL MODULE: ./src/ResourceLister.js
13999
- var ResourceLister = __webpack_require__(58);
14183
+ var ResourceLister = __webpack_require__(59);
14000
14184
 
14001
14185
  // EXTERNAL MODULE: ./src/utils/geo.js
14002
14186
  var geo = __webpack_require__(56);
14003
14187
 
14004
14188
  // EXTERNAL MODULE: ./src/errors/index.js + 1 modules
14005
- var errors = __webpack_require__(66);
14189
+ var errors = __webpack_require__(67);
14006
14190
 
14007
14191
  // EXTERNAL MODULE: ./src/proxy/GeoResourceProxy.js
14008
14192
  var GeoResourceProxy = __webpack_require__(32);
14009
14193
 
14010
14194
  // EXTERNAL MODULE: ./src/proxy/OrganisationProxy.js
14011
- var OrganisationProxy = __webpack_require__(59);
14195
+ var OrganisationProxy = __webpack_require__(60);
14012
14196
 
14013
14197
  // EXTERNAL MODULE: ./src/proxy/OwnedResourceProxy.js
14014
14198
  var OwnedResourceProxy = __webpack_require__(12);
@@ -14017,7 +14201,7 @@ var OwnedResourceProxy = __webpack_require__(12);
14017
14201
  var ResourceProxy = __webpack_require__(14);
14018
14202
 
14019
14203
  // EXTERNAL MODULE: ./src/proxy/SimpleResourceProxy.js + 1 modules
14020
- var SimpleResourceProxy = __webpack_require__(16);
14204
+ var SimpleResourceProxy = __webpack_require__(17);
14021
14205
 
14022
14206
  // CONCATENATED MODULE: ./src/proxy/index.js
14023
14207
  /*
@@ -14146,7 +14330,7 @@ var SimpleResourceProxy = __webpack_require__(16);
14146
14330
  * @private
14147
14331
  */
14148
14332
 
14149
- const version = "v2.5.0";
14333
+ const version = "v2.6.2";
14150
14334
 
14151
14335
  /***/ })
14152
14336
  /******/ ]);