@mapcreator/api 2.4.1 → 2.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundle.browser.js +682 -472
- package/dist/bundle.browser.js.map +1 -1
- package/dist/bundle.browser.min.js +1 -1
- package/dist/bundle.browser.min.js.LICENSE.txt +2 -2
- package/dist/bundle.browser.min.js.map +1 -1
- package/dist/bundle.js +432 -222
- package/dist/bundle.js.map +1 -1
- package/dist/bundle.min.js +1 -1
- package/dist/bundle.min.js.LICENSE.txt +1 -1
- package/dist/bundle.min.js.map +1 -1
- package/package.json +1 -1
- package/src/Mapcreator.js +10 -0
- package/src/resources/Message.js +94 -0
- package/src/resources/MessageVariant.js +37 -0
- package/src/resources/User.js +18 -0
- package/src/resources/base/CrudBase.js +1 -1
- package/src/resources/base/ResourceBase.js +6 -6
- package/src/resources/index.js +1 -0
- package/src/utils/helpers.js +22 -0
package/dist/bundle.browser.js
CHANGED
|
@@ -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:
|
|
32
|
+
* hash:c0cd34760026bc99cdb9, chunkhash:b72b1e7559f797c537b0, name:bundle.browser, version:v2.6.1
|
|
33
33
|
*/
|
|
34
34
|
/*!
|
|
35
35
|
* This bundle contains the following packages:
|
|
36
|
-
* └─ @mapcreator/api (2.
|
|
36
|
+
* └─ @mapcreator/api (2.6.1) ── 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
|
|
@@ -148,7 +148,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
148
148
|
/******/
|
|
149
149
|
/******/
|
|
150
150
|
/******/ // Load entry module and return exports
|
|
151
|
-
/******/ return __webpack_require__(__webpack_require__.s =
|
|
151
|
+
/******/ return __webpack_require__(__webpack_require__.s = 76);
|
|
152
152
|
/******/ })
|
|
153
153
|
/************************************************************************/
|
|
154
154
|
/******/ ([
|
|
@@ -162,6 +162,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
162
162
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "wrapKyCancelable", function() { return wrapKyCancelable; });
|
|
163
163
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "makeCancelable", function() { return makeCancelable; });
|
|
164
164
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "serializeUTCDate", function() { return serializeUTCDate; });
|
|
165
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "clone", function() { return clone; });
|
|
165
166
|
/*
|
|
166
167
|
* BSD 3-Clause License
|
|
167
168
|
*
|
|
@@ -308,6 +309,27 @@ function serializeUTCDate(date) {
|
|
|
308
309
|
out += ` ${[date.getUTCHours(), date.getUTCMinutes(), date.getUTCSeconds()].map(pad).join(':')}`;
|
|
309
310
|
return out;
|
|
310
311
|
}
|
|
312
|
+
function clone(input, clonePrivate = true) {
|
|
313
|
+
const _clone = value => clone(value, clonePrivate);
|
|
314
|
+
|
|
315
|
+
if (typeof input !== 'object' || input === null) {
|
|
316
|
+
return input;
|
|
317
|
+
} else if (Array.isArray(input)) {
|
|
318
|
+
return input.map(_clone);
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
const output = {};
|
|
322
|
+
|
|
323
|
+
for (const key of Object.keys(input)) {
|
|
324
|
+
if (!clonePrivate && key.startsWith('_')) {
|
|
325
|
+
continue;
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
output[key] = _clone(input[key]);
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
return output;
|
|
332
|
+
}
|
|
311
333
|
|
|
312
334
|
/***/ }),
|
|
313
335
|
/* 1 */
|
|
@@ -488,7 +510,7 @@ function hasTrait(Subject, TraitClass) {
|
|
|
488
510
|
"use strict";
|
|
489
511
|
__webpack_require__.r(__webpack_exports__);
|
|
490
512
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return CrudBase; });
|
|
491
|
-
/* harmony import */ var _errors__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
|
|
513
|
+
/* harmony import */ var _errors__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(67);
|
|
492
514
|
/* harmony import */ var _ResourceBase__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6);
|
|
493
515
|
/* harmony import */ var _utils_helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(0);
|
|
494
516
|
/*
|
|
@@ -605,7 +627,7 @@ class CrudBase extends _ResourceBase__WEBPACK_IMPORTED_MODULE_1__["default"] {
|
|
|
605
627
|
* @returns {CancelablePromise<CrudBase>} - Current instance
|
|
606
628
|
* @throws {ApiError} - If the api returns errors
|
|
607
629
|
* @throws {ValidationError} - If the submitted data isn't valid
|
|
608
|
-
* @
|
|
630
|
+
* @protected
|
|
609
631
|
*/
|
|
610
632
|
|
|
611
633
|
|
|
@@ -717,14 +739,14 @@ class CrudBase extends _ResourceBase__WEBPACK_IMPORTED_MODULE_1__["default"] {
|
|
|
717
739
|
"use strict";
|
|
718
740
|
__webpack_require__.r(__webpack_exports__);
|
|
719
741
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return RequestParameters; });
|
|
720
|
-
/* harmony import */ var case__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
|
|
742
|
+
/* harmony import */ var case__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(7);
|
|
721
743
|
/* harmony import */ var case__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(case__WEBPACK_IMPORTED_MODULE_0__);
|
|
722
744
|
/* harmony import */ var events__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(52);
|
|
723
745
|
/* harmony import */ var events__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(events__WEBPACK_IMPORTED_MODULE_1__);
|
|
724
|
-
/* harmony import */ var _enums__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
|
|
746
|
+
/* harmony import */ var _enums__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(8);
|
|
725
747
|
/* harmony import */ var _utils_hash__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(29);
|
|
726
748
|
/* harmony import */ var _utils_reflection__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(1);
|
|
727
|
-
/* harmony import */ var _utils_requests__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
|
|
749
|
+
/* harmony import */ var _utils_requests__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(5);
|
|
728
750
|
/*
|
|
729
751
|
* BSD 3-Clause License
|
|
730
752
|
*
|
|
@@ -1451,133 +1473,6 @@ class RequestParameters extends events__WEBPACK_IMPORTED_MODULE_1__["EventEmitte
|
|
|
1451
1473
|
/* 4 */
|
|
1452
1474
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1453
1475
|
|
|
1454
|
-
"use strict";
|
|
1455
|
-
__webpack_require__.r(__webpack_exports__);
|
|
1456
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FormData", function() { return FormData; });
|
|
1457
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "encodeQueryString", function() { return encodeQueryString; });
|
|
1458
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "wrapKyPrefixUrl", function() { return wrapKyPrefixUrl; });
|
|
1459
|
-
/* harmony import */ var _node__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(13);
|
|
1460
|
-
/*
|
|
1461
|
-
* BSD 3-Clause License
|
|
1462
|
-
*
|
|
1463
|
-
* Copyright (c) 2020, Mapcreator
|
|
1464
|
-
* All rights reserved.
|
|
1465
|
-
*
|
|
1466
|
-
* Redistribution and use in source and binary forms, with or without
|
|
1467
|
-
* modification, are permitted provided that the following conditions are met:
|
|
1468
|
-
*
|
|
1469
|
-
* Redistributions of source code must retain the above copyright notice, this
|
|
1470
|
-
* list of conditions and the following disclaimer.
|
|
1471
|
-
*
|
|
1472
|
-
* Redistributions in binary form must reproduce the above copyright notice,
|
|
1473
|
-
* this list of conditions and the following disclaimer in the documentation
|
|
1474
|
-
* and/or other materials provided with the distribution.
|
|
1475
|
-
*
|
|
1476
|
-
* Neither the name of the copyright holder nor the names of its
|
|
1477
|
-
* contributors may be used to endorse or promote products derived from
|
|
1478
|
-
* this software without specific prior written permission.
|
|
1479
|
-
*
|
|
1480
|
-
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
1481
|
-
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
1482
|
-
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
1483
|
-
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
1484
|
-
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
1485
|
-
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
1486
|
-
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
1487
|
-
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
1488
|
-
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
1489
|
-
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
1490
|
-
*/
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
function getFormData() {
|
|
1494
|
-
if (Object(_node__WEBPACK_IMPORTED_MODULE_0__["windowTest"])('FormData')) {
|
|
1495
|
-
return window.FormData;
|
|
1496
|
-
}
|
|
1497
|
-
|
|
1498
|
-
return __webpack_require__(74);
|
|
1499
|
-
}
|
|
1500
|
-
/**
|
|
1501
|
-
* @private
|
|
1502
|
-
*/
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
const FormData = getFormData();
|
|
1506
|
-
/**
|
|
1507
|
-
* Encodes an object to a http query string with support for recursion
|
|
1508
|
-
* @param {Object<string, *>} paramsObject - data to be encoded
|
|
1509
|
-
* @param {Array<string>} _basePrefix - Used internally for tracking recursion
|
|
1510
|
-
* @returns {string} - encoded http query string
|
|
1511
|
-
*
|
|
1512
|
-
* @see http://stackoverflow.com/a/39828481
|
|
1513
|
-
* @private
|
|
1514
|
-
*/
|
|
1515
|
-
|
|
1516
|
-
function _encodeQueryString(paramsObject, _basePrefix = []) {
|
|
1517
|
-
return Object.keys(paramsObject).sort().map(key => {
|
|
1518
|
-
const prefix = _basePrefix.slice(0);
|
|
1519
|
-
|
|
1520
|
-
if (typeof paramsObject[key] === 'object' && paramsObject[key] !== null) {
|
|
1521
|
-
prefix.push(key);
|
|
1522
|
-
return _encodeQueryString(paramsObject[key], prefix);
|
|
1523
|
-
}
|
|
1524
|
-
|
|
1525
|
-
prefix.push(key);
|
|
1526
|
-
let out = '';
|
|
1527
|
-
out += encodeURIComponent(prefix.shift()); // main key
|
|
1528
|
-
|
|
1529
|
-
out += prefix.map(item => `[${encodeURIComponent(item)}]`).join(''); // optional array keys
|
|
1530
|
-
|
|
1531
|
-
const value = paramsObject[key];
|
|
1532
|
-
|
|
1533
|
-
if (value !== null && typeof value !== 'undefined') {
|
|
1534
|
-
out += `=${encodeURIComponent(value)}`; // value
|
|
1535
|
-
}
|
|
1536
|
-
|
|
1537
|
-
return out;
|
|
1538
|
-
}).join('&');
|
|
1539
|
-
}
|
|
1540
|
-
/**
|
|
1541
|
-
* Encodes an object to a http query string with support for recursion
|
|
1542
|
-
* @param {object<string, *>} paramsObject - data to be encoded
|
|
1543
|
-
* @returns {string} - encoded http query string
|
|
1544
|
-
*
|
|
1545
|
-
* @private
|
|
1546
|
-
*/
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
function encodeQueryString(paramsObject) {
|
|
1550
|
-
const query = _encodeQueryString(paramsObject); // Removes any extra unused &'s.
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
return query.replace(/^&*|&+(?=&)|&*$/g, '');
|
|
1554
|
-
}
|
|
1555
|
-
/**
|
|
1556
|
-
* Wraps around ky to ensure that the prefix is correctly set
|
|
1557
|
-
* @param {function(*=, *=): Response} fn - ky instance
|
|
1558
|
-
* @param {string} baseUrl - url to be prefixed
|
|
1559
|
-
* @returns {function(*=, *=): Response}
|
|
1560
|
-
* @private
|
|
1561
|
-
*/
|
|
1562
|
-
|
|
1563
|
-
function wrapKyPrefixUrl(fn, baseUrl) {
|
|
1564
|
-
return function (input, options) {
|
|
1565
|
-
if (typeof input === 'string' && !/^https?:\/\//.test(input)) {
|
|
1566
|
-
if (!input.startsWith('/')) {
|
|
1567
|
-
input = `/${input}`;
|
|
1568
|
-
}
|
|
1569
|
-
|
|
1570
|
-
input = baseUrl + input;
|
|
1571
|
-
}
|
|
1572
|
-
|
|
1573
|
-
return fn(input, options);
|
|
1574
|
-
};
|
|
1575
|
-
}
|
|
1576
|
-
|
|
1577
|
-
/***/ }),
|
|
1578
|
-
/* 5 */
|
|
1579
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1580
|
-
|
|
1581
1476
|
"use strict";
|
|
1582
1477
|
// ESM COMPAT FLAG
|
|
1583
1478
|
__webpack_require__.r(__webpack_exports__);
|
|
@@ -1604,6 +1499,7 @@ __webpack_require__.d(__webpack_exports__, "Language", function() { return /* re
|
|
|
1604
1499
|
__webpack_require__.d(__webpack_exports__, "Layer", function() { return /* reexport */ Layer["default"]; });
|
|
1605
1500
|
__webpack_require__.d(__webpack_exports__, "Mapstyle", function() { return /* reexport */ Mapstyle["default"]; });
|
|
1606
1501
|
__webpack_require__.d(__webpack_exports__, "MapstyleSet", function() { return /* reexport */ MapstyleSet["default"]; });
|
|
1502
|
+
__webpack_require__.d(__webpack_exports__, "Message", function() { return /* reexport */ Message["default"]; });
|
|
1607
1503
|
__webpack_require__.d(__webpack_exports__, "Notification", function() { return /* reexport */ Notification["default"]; });
|
|
1608
1504
|
__webpack_require__.d(__webpack_exports__, "Organisation", function() { return /* reexport */ Organisation["default"]; });
|
|
1609
1505
|
__webpack_require__.d(__webpack_exports__, "Permission", function() { return /* reexport */ Permission["default"]; });
|
|
@@ -1702,7 +1598,7 @@ class Choropleth_Choropleth extends ResourceBase["default"] {
|
|
|
1702
1598
|
var Color = __webpack_require__(36);
|
|
1703
1599
|
|
|
1704
1600
|
// EXTERNAL MODULE: ./src/resources/Contract.js
|
|
1705
|
-
var Contract = __webpack_require__(
|
|
1601
|
+
var Contract = __webpack_require__(61);
|
|
1706
1602
|
|
|
1707
1603
|
// EXTERNAL MODULE: ./src/resources/Dimension.js
|
|
1708
1604
|
var Dimension = __webpack_require__(38);
|
|
@@ -1711,7 +1607,7 @@ var Dimension = __webpack_require__(38);
|
|
|
1711
1607
|
var DimensionSet = __webpack_require__(37);
|
|
1712
1608
|
|
|
1713
1609
|
// EXTERNAL MODULE: ./src/resources/Domain.js
|
|
1714
|
-
var Domain = __webpack_require__(
|
|
1610
|
+
var Domain = __webpack_require__(62);
|
|
1715
1611
|
|
|
1716
1612
|
// EXTERNAL MODULE: ./src/resources/base/CrudBase.js
|
|
1717
1613
|
var CrudBase = __webpack_require__(2);
|
|
@@ -1866,7 +1762,7 @@ var Job = __webpack_require__(42);
|
|
|
1866
1762
|
var JobResult = __webpack_require__(33);
|
|
1867
1763
|
|
|
1868
1764
|
// EXTERNAL MODULE: ./src/resources/JobRevision.js
|
|
1869
|
-
var JobRevision = __webpack_require__(
|
|
1765
|
+
var JobRevision = __webpack_require__(63);
|
|
1870
1766
|
|
|
1871
1767
|
// EXTERNAL MODULE: ./src/resources/JobShare.js
|
|
1872
1768
|
var JobShare = __webpack_require__(20);
|
|
@@ -1875,7 +1771,7 @@ var JobShare = __webpack_require__(20);
|
|
|
1875
1771
|
var JobType = __webpack_require__(43);
|
|
1876
1772
|
|
|
1877
1773
|
// EXTERNAL MODULE: ./src/resources/Language.js
|
|
1878
|
-
var Language = __webpack_require__(
|
|
1774
|
+
var Language = __webpack_require__(64);
|
|
1879
1775
|
|
|
1880
1776
|
// EXTERNAL MODULE: ./src/resources/Layer.js
|
|
1881
1777
|
var Layer = __webpack_require__(26);
|
|
@@ -1886,8 +1782,11 @@ var Mapstyle = __webpack_require__(44);
|
|
|
1886
1782
|
// EXTERNAL MODULE: ./src/resources/MapstyleSet.js + 1 modules
|
|
1887
1783
|
var MapstyleSet = __webpack_require__(50);
|
|
1888
1784
|
|
|
1785
|
+
// EXTERNAL MODULE: ./src/resources/Message.js + 1 modules
|
|
1786
|
+
var Message = __webpack_require__(57);
|
|
1787
|
+
|
|
1889
1788
|
// EXTERNAL MODULE: ./src/resources/Notification.js
|
|
1890
|
-
var Notification = __webpack_require__(
|
|
1789
|
+
var Notification = __webpack_require__(65);
|
|
1891
1790
|
|
|
1892
1791
|
// EXTERNAL MODULE: ./src/resources/Organisation.js
|
|
1893
1792
|
var Organisation = __webpack_require__(54);
|
|
@@ -1896,7 +1795,7 @@ var Organisation = __webpack_require__(54);
|
|
|
1896
1795
|
var Permission = __webpack_require__(49);
|
|
1897
1796
|
|
|
1898
1797
|
// EXTERNAL MODULE: ./src/resources/Role.js
|
|
1899
|
-
var Role = __webpack_require__(
|
|
1798
|
+
var Role = __webpack_require__(66);
|
|
1900
1799
|
|
|
1901
1800
|
// EXTERNAL MODULE: ./src/resources/Svg.js
|
|
1902
1801
|
var Svg = __webpack_require__(46);
|
|
@@ -2145,6 +2044,8 @@ var CrudSetBase = __webpack_require__(25);
|
|
|
2145
2044
|
|
|
2146
2045
|
|
|
2147
2046
|
|
|
2047
|
+
|
|
2048
|
+
|
|
2148
2049
|
|
|
2149
2050
|
|
|
2150
2051
|
|
|
@@ -2159,21 +2060,15 @@ const base = {
|
|
|
2159
2060
|
};
|
|
2160
2061
|
|
|
2161
2062
|
/***/ }),
|
|
2162
|
-
/*
|
|
2063
|
+
/* 5 */
|
|
2163
2064
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
2164
2065
|
|
|
2165
2066
|
"use strict";
|
|
2166
2067
|
__webpack_require__.r(__webpack_exports__);
|
|
2167
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
2168
|
-
/* harmony
|
|
2169
|
-
/* harmony
|
|
2170
|
-
/* harmony import */ var
|
|
2171
|
-
/* harmony import */ var _Mapcreator__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(24);
|
|
2172
|
-
/* harmony import */ var _proxy_SimpleResourceProxy__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(16);
|
|
2173
|
-
/* harmony import */ var _traits_Injectable__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(67);
|
|
2174
|
-
/* harmony import */ var _utils_hash__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(29);
|
|
2175
|
-
/* harmony import */ var _utils_reflection__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(1);
|
|
2176
|
-
/* harmony import */ var _utils_helpers__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(0);
|
|
2068
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FormData", function() { return FormData; });
|
|
2069
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "encodeQueryString", function() { return encodeQueryString; });
|
|
2070
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "wrapKyPrefixUrl", function() { return wrapKyPrefixUrl; });
|
|
2071
|
+
/* harmony import */ var _node__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(13);
|
|
2177
2072
|
/*
|
|
2178
2073
|
* BSD 3-Clause License
|
|
2179
2074
|
*
|
|
@@ -2207,66 +2102,198 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
2207
2102
|
*/
|
|
2208
2103
|
|
|
2209
2104
|
|
|
2105
|
+
function getFormData() {
|
|
2106
|
+
if (Object(_node__WEBPACK_IMPORTED_MODULE_0__["windowTest"])('FormData')) {
|
|
2107
|
+
return window.FormData;
|
|
2108
|
+
}
|
|
2210
2109
|
|
|
2110
|
+
return __webpack_require__(75);
|
|
2111
|
+
}
|
|
2112
|
+
/**
|
|
2113
|
+
* @private
|
|
2114
|
+
*/
|
|
2211
2115
|
|
|
2212
2116
|
|
|
2117
|
+
const FormData = getFormData();
|
|
2118
|
+
/**
|
|
2119
|
+
* Encodes an object to a http query string with support for recursion
|
|
2120
|
+
* @param {Object<string, *>} paramsObject - data to be encoded
|
|
2121
|
+
* @param {Array<string>} _basePrefix - Used internally for tracking recursion
|
|
2122
|
+
* @returns {string} - encoded http query string
|
|
2123
|
+
*
|
|
2124
|
+
* @see http://stackoverflow.com/a/39828481
|
|
2125
|
+
* @private
|
|
2126
|
+
*/
|
|
2213
2127
|
|
|
2128
|
+
function _encodeQueryString(paramsObject, _basePrefix = []) {
|
|
2129
|
+
return Object.keys(paramsObject).sort().map(key => {
|
|
2130
|
+
const prefix = _basePrefix.slice(0);
|
|
2214
2131
|
|
|
2132
|
+
if (typeof paramsObject[key] === 'object' && paramsObject[key] !== null) {
|
|
2133
|
+
prefix.push(key);
|
|
2134
|
+
return _encodeQueryString(paramsObject[key], prefix);
|
|
2135
|
+
}
|
|
2215
2136
|
|
|
2137
|
+
prefix.push(key);
|
|
2138
|
+
let out = '';
|
|
2139
|
+
out += encodeURIComponent(prefix.shift()); // main key
|
|
2216
2140
|
|
|
2217
|
-
|
|
2218
|
-
return input.filter((v, i) => input.findIndex(vv => vv === v) === i);
|
|
2219
|
-
}
|
|
2220
|
-
/**
|
|
2221
|
-
* Resource base
|
|
2222
|
-
* @abstract
|
|
2223
|
-
*/
|
|
2224
|
-
|
|
2141
|
+
out += prefix.map(item => `[${encodeURIComponent(item)}]`).join(''); // optional array keys
|
|
2225
2142
|
|
|
2226
|
-
|
|
2227
|
-
/**
|
|
2228
|
-
* @param {Mapcreator} api - Api instance
|
|
2229
|
-
* @param {Object<String, *>} data - Item data
|
|
2230
|
-
*/
|
|
2231
|
-
constructor(api, data = {}) {
|
|
2232
|
-
super();
|
|
2143
|
+
const value = paramsObject[key];
|
|
2233
2144
|
|
|
2234
|
-
if (
|
|
2235
|
-
|
|
2145
|
+
if (value !== null && typeof value !== 'undefined') {
|
|
2146
|
+
out += `=${encodeURIComponent(value)}`; // value
|
|
2236
2147
|
}
|
|
2237
2148
|
|
|
2238
|
-
|
|
2149
|
+
return out;
|
|
2150
|
+
}).join('&');
|
|
2151
|
+
}
|
|
2152
|
+
/**
|
|
2153
|
+
* Encodes an object to a http query string with support for recursion
|
|
2154
|
+
* @param {object<string, *>} paramsObject - data to be encoded
|
|
2155
|
+
* @returns {string} - encoded http query string
|
|
2156
|
+
*
|
|
2157
|
+
* @private
|
|
2158
|
+
*/
|
|
2239
2159
|
|
|
2240
|
-
data = { ...data
|
|
2241
|
-
}; // Normalize keys to snake_case
|
|
2242
|
-
// Fix data types
|
|
2243
2160
|
|
|
2244
|
-
|
|
2245
|
-
|
|
2161
|
+
function encodeQueryString(paramsObject) {
|
|
2162
|
+
const query = _encodeQueryString(paramsObject); // Removes any extra unused &'s.
|
|
2246
2163
|
|
|
2247
|
-
if (Object(case__WEBPACK_IMPORTED_MODULE_0__["camel"])(newKey) in this) {
|
|
2248
|
-
delete data[key];
|
|
2249
|
-
continue;
|
|
2250
|
-
}
|
|
2251
2164
|
|
|
2252
|
-
|
|
2165
|
+
return query.replace(/^&*|&+(?=&)|&*$/g, '');
|
|
2166
|
+
}
|
|
2167
|
+
/**
|
|
2168
|
+
* Wraps around ky to ensure that the prefix is correctly set
|
|
2169
|
+
* @param {function(*=, *=): Response} fn - ky instance
|
|
2170
|
+
* @param {string} baseUrl - url to be prefixed
|
|
2171
|
+
* @returns {function(*=, *=): Response}
|
|
2172
|
+
* @private
|
|
2173
|
+
*/
|
|
2253
2174
|
|
|
2254
|
-
|
|
2255
|
-
|
|
2175
|
+
function wrapKyPrefixUrl(fn, baseUrl) {
|
|
2176
|
+
return function (input, options) {
|
|
2177
|
+
if (typeof input === 'string' && !/^https?:\/\//.test(input)) {
|
|
2178
|
+
if (!input.startsWith('/')) {
|
|
2179
|
+
input = `/${input}`;
|
|
2256
2180
|
}
|
|
2257
|
-
}
|
|
2258
2181
|
|
|
2259
|
-
|
|
2260
|
-
|
|
2261
|
-
this._api = api;
|
|
2262
|
-
const fields = Object.keys(this._baseProperties); // Apply properties
|
|
2182
|
+
input = baseUrl + input;
|
|
2183
|
+
}
|
|
2263
2184
|
|
|
2264
|
-
|
|
2265
|
-
|
|
2266
|
-
|
|
2185
|
+
return fn(input, options);
|
|
2186
|
+
};
|
|
2187
|
+
}
|
|
2267
2188
|
|
|
2189
|
+
/***/ }),
|
|
2190
|
+
/* 6 */
|
|
2191
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
2268
2192
|
|
|
2269
|
-
|
|
2193
|
+
"use strict";
|
|
2194
|
+
__webpack_require__.r(__webpack_exports__);
|
|
2195
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return ResourceBase; });
|
|
2196
|
+
/* harmony import */ var case__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(7);
|
|
2197
|
+
/* harmony import */ var case__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(case__WEBPACK_IMPORTED_MODULE_0__);
|
|
2198
|
+
/* 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);
|
|
2201
|
+
/* harmony import */ var _traits_Injectable__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(68);
|
|
2202
|
+
/* harmony import */ var _utils_hash__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(29);
|
|
2203
|
+
/* harmony import */ var _utils_reflection__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(1);
|
|
2204
|
+
/* harmony import */ var _utils_helpers__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(0);
|
|
2205
|
+
/*
|
|
2206
|
+
* BSD 3-Clause License
|
|
2207
|
+
*
|
|
2208
|
+
* Copyright (c) 2020, Mapcreator
|
|
2209
|
+
* All rights reserved.
|
|
2210
|
+
*
|
|
2211
|
+
* Redistribution and use in source and binary forms, with or without
|
|
2212
|
+
* modification, are permitted provided that the following conditions are met:
|
|
2213
|
+
*
|
|
2214
|
+
* Redistributions of source code must retain the above copyright notice, this
|
|
2215
|
+
* list of conditions and the following disclaimer.
|
|
2216
|
+
*
|
|
2217
|
+
* Redistributions in binary form must reproduce the above copyright notice,
|
|
2218
|
+
* this list of conditions and the following disclaimer in the documentation
|
|
2219
|
+
* and/or other materials provided with the distribution.
|
|
2220
|
+
*
|
|
2221
|
+
* Neither the name of the copyright holder nor the names of its
|
|
2222
|
+
* contributors may be used to endorse or promote products derived from
|
|
2223
|
+
* this software without specific prior written permission.
|
|
2224
|
+
*
|
|
2225
|
+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
2226
|
+
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
2227
|
+
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
2228
|
+
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
2229
|
+
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
2230
|
+
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
2231
|
+
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
2232
|
+
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
2233
|
+
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
2234
|
+
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
2235
|
+
*/
|
|
2236
|
+
|
|
2237
|
+
|
|
2238
|
+
|
|
2239
|
+
|
|
2240
|
+
|
|
2241
|
+
|
|
2242
|
+
|
|
2243
|
+
|
|
2244
|
+
|
|
2245
|
+
function unique(input) {
|
|
2246
|
+
return input.filter((v, i) => input.findIndex(vv => vv === v) === i);
|
|
2247
|
+
}
|
|
2248
|
+
/**
|
|
2249
|
+
* Resource base
|
|
2250
|
+
* @abstract
|
|
2251
|
+
*/
|
|
2252
|
+
|
|
2253
|
+
|
|
2254
|
+
class ResourceBase extends Object(_utils_reflection__WEBPACK_IMPORTED_MODULE_6__["mix"])(null, _traits_Injectable__WEBPACK_IMPORTED_MODULE_4__["default"]) {
|
|
2255
|
+
/**
|
|
2256
|
+
* @param {Mapcreator} api - Api instance
|
|
2257
|
+
* @param {Object<String, *>} data - Item data
|
|
2258
|
+
*/
|
|
2259
|
+
constructor(api, data = {}) {
|
|
2260
|
+
super();
|
|
2261
|
+
|
|
2262
|
+
if (this.constructor === ResourceBase) {
|
|
2263
|
+
throw new _errors_AbstractError__WEBPACK_IMPORTED_MODULE_1__["AbstractClassError"]();
|
|
2264
|
+
}
|
|
2265
|
+
|
|
2266
|
+
this.api = api; // De-reference
|
|
2267
|
+
|
|
2268
|
+
data = Object(_utils_helpers__WEBPACK_IMPORTED_MODULE_7__["clone"])(data); // Normalize keys to snake_case
|
|
2269
|
+
// Fix data types
|
|
2270
|
+
|
|
2271
|
+
for (const key of Object.keys(data)) {
|
|
2272
|
+
const newKey = Object(case__WEBPACK_IMPORTED_MODULE_0__["snake"])(key);
|
|
2273
|
+
|
|
2274
|
+
if (Object(case__WEBPACK_IMPORTED_MODULE_0__["camel"])(newKey) in this) {
|
|
2275
|
+
delete data[key];
|
|
2276
|
+
continue;
|
|
2277
|
+
}
|
|
2278
|
+
|
|
2279
|
+
data[newKey] = this._guessType(newKey, data[key]);
|
|
2280
|
+
|
|
2281
|
+
if (newKey !== key) {
|
|
2282
|
+
delete data[key];
|
|
2283
|
+
}
|
|
2284
|
+
}
|
|
2285
|
+
|
|
2286
|
+
this._baseProperties = data || {};
|
|
2287
|
+
this._properties = {};
|
|
2288
|
+
this._api = api;
|
|
2289
|
+
const fields = Object.keys(this._baseProperties); // Apply properties
|
|
2290
|
+
|
|
2291
|
+
for (const key of fields) {
|
|
2292
|
+
this._applyProperty(key);
|
|
2293
|
+
} // Add deleted field if possible
|
|
2294
|
+
|
|
2295
|
+
|
|
2296
|
+
if (fields.includes('deleted_at')) {
|
|
2270
2297
|
Object.defineProperty(this, 'deleted', {
|
|
2271
2298
|
enumerable: true,
|
|
2272
2299
|
configurable: true,
|
|
@@ -2478,7 +2505,7 @@ class ResourceBase extends Object(_utils_reflection__WEBPACK_IMPORTED_MODULE_6__
|
|
|
2478
2505
|
|
|
2479
2506
|
if (!this.constructor.protectedFields.includes(key) && !this.constructor.readonly) {
|
|
2480
2507
|
desc.set = val => {
|
|
2481
|
-
this._properties[key] =
|
|
2508
|
+
this._properties[key] = this._guessType(key, val);
|
|
2482
2509
|
delete this._url; // Clears url cache
|
|
2483
2510
|
};
|
|
2484
2511
|
}
|
|
@@ -2490,12 +2517,12 @@ class ResourceBase extends Object(_utils_reflection__WEBPACK_IMPORTED_MODULE_6__
|
|
|
2490
2517
|
* Guess type based on property name
|
|
2491
2518
|
* @param {string} name - Field name
|
|
2492
2519
|
* @param {*} value - Field Value
|
|
2493
|
-
* @
|
|
2520
|
+
* @protected
|
|
2494
2521
|
* @returns {*} - Original or converted value
|
|
2495
2522
|
*/
|
|
2496
2523
|
|
|
2497
2524
|
|
|
2498
|
-
|
|
2525
|
+
_guessType(name, value) {
|
|
2499
2526
|
if (name.endsWith('_at') || name.startsWith('date_')) {
|
|
2500
2527
|
return typeof value === 'string' ? new Date(value.replace(' ', 'T')) : value;
|
|
2501
2528
|
} else if (/(_|^)id$/.test(name) && value !== null) {
|
|
@@ -2660,198 +2687,6 @@ class ResourceBase extends Object(_utils_reflection__WEBPACK_IMPORTED_MODULE_6__
|
|
|
2660
2687
|
|
|
2661
2688
|
/***/ }),
|
|
2662
2689
|
/* 7 */
|
|
2663
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
2664
|
-
|
|
2665
|
-
"use strict";
|
|
2666
|
-
// ESM COMPAT FLAG
|
|
2667
|
-
__webpack_require__.r(__webpack_exports__);
|
|
2668
|
-
|
|
2669
|
-
// EXPORTS
|
|
2670
|
-
__webpack_require__.d(__webpack_exports__, "Enum", function() { return /* reexport */ Enum["default"]; });
|
|
2671
|
-
__webpack_require__.d(__webpack_exports__, "DeletedState", function() { return /* reexport */ DeletedState; });
|
|
2672
|
-
__webpack_require__.d(__webpack_exports__, "ResultStatus", function() { return /* reexport */ ResultStatus; });
|
|
2673
|
-
__webpack_require__.d(__webpack_exports__, "JobShareVisibility", function() { return /* reexport */ JobShareVisibility; });
|
|
2674
|
-
|
|
2675
|
-
// EXTERNAL MODULE: ./src/enums/Enum.js + 1 modules
|
|
2676
|
-
var Enum = __webpack_require__(22);
|
|
2677
|
-
|
|
2678
|
-
// CONCATENATED MODULE: ./src/enums/DeletedState.js
|
|
2679
|
-
/*
|
|
2680
|
-
* BSD 3-Clause License
|
|
2681
|
-
*
|
|
2682
|
-
* Copyright (c) 2020, Mapcreator
|
|
2683
|
-
* All rights reserved.
|
|
2684
|
-
*
|
|
2685
|
-
* Redistribution and use in source and binary forms, with or without
|
|
2686
|
-
* modification, are permitted provided that the following conditions are met:
|
|
2687
|
-
*
|
|
2688
|
-
* Redistributions of source code must retain the above copyright notice, this
|
|
2689
|
-
* list of conditions and the following disclaimer.
|
|
2690
|
-
*
|
|
2691
|
-
* Redistributions in binary form must reproduce the above copyright notice,
|
|
2692
|
-
* this list of conditions and the following disclaimer in the documentation
|
|
2693
|
-
* and/or other materials provided with the distribution.
|
|
2694
|
-
*
|
|
2695
|
-
* Neither the name of the copyright holder nor the names of its
|
|
2696
|
-
* contributors may be used to endorse or promote products derived from
|
|
2697
|
-
* this software without specific prior written permission.
|
|
2698
|
-
*
|
|
2699
|
-
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
2700
|
-
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
2701
|
-
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
2702
|
-
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
2703
|
-
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
2704
|
-
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
2705
|
-
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
2706
|
-
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
2707
|
-
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
2708
|
-
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
2709
|
-
*/
|
|
2710
|
-
|
|
2711
|
-
/**
|
|
2712
|
-
* Enum containing the possible different values for {@link RequestParameters#deleted}
|
|
2713
|
-
* @enum {string}
|
|
2714
|
-
* @property {string} ALL - Don't discriminate between deleted items and non-deleted resources
|
|
2715
|
-
* @property {string} BOTH - Don't discriminate between deleted items and non-deleted resources
|
|
2716
|
-
* @property {string} NONE - Don't return deleted resources
|
|
2717
|
-
* @property {string} ONLY - Only return deleted resources
|
|
2718
|
-
* @readonly
|
|
2719
|
-
*/
|
|
2720
|
-
|
|
2721
|
-
const DeletedState = new Enum["default"]({
|
|
2722
|
-
ALL: 'all',
|
|
2723
|
-
BOTH: 'all',
|
|
2724
|
-
NONE: 'none',
|
|
2725
|
-
ONLY: 'only'
|
|
2726
|
-
});
|
|
2727
|
-
// CONCATENATED MODULE: ./src/enums/ResultStatus.js
|
|
2728
|
-
/*
|
|
2729
|
-
* BSD 3-Clause License
|
|
2730
|
-
*
|
|
2731
|
-
* Copyright (c) 2020, Mapcreator
|
|
2732
|
-
* All rights reserved.
|
|
2733
|
-
*
|
|
2734
|
-
* Redistribution and use in source and binary forms, with or without
|
|
2735
|
-
* modification, are permitted provided that the following conditions are met:
|
|
2736
|
-
*
|
|
2737
|
-
* Redistributions of source code must retain the above copyright notice, this
|
|
2738
|
-
* list of conditions and the following disclaimer.
|
|
2739
|
-
*
|
|
2740
|
-
* Redistributions in binary form must reproduce the above copyright notice,
|
|
2741
|
-
* this list of conditions and the following disclaimer in the documentation
|
|
2742
|
-
* and/or other materials provided with the distribution.
|
|
2743
|
-
*
|
|
2744
|
-
* Neither the name of the copyright holder nor the names of its
|
|
2745
|
-
* contributors may be used to endorse or promote products derived from
|
|
2746
|
-
* this software without specific prior written permission.
|
|
2747
|
-
*
|
|
2748
|
-
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
2749
|
-
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
2750
|
-
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
2751
|
-
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
2752
|
-
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
2753
|
-
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
2754
|
-
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
2755
|
-
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
2756
|
-
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
2757
|
-
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
2758
|
-
*/
|
|
2759
|
-
|
|
2760
|
-
/**
|
|
2761
|
-
* Enum containing the possible different values for {@link RequestParameters#deleted}
|
|
2762
|
-
* @enum {string}
|
|
2763
|
-
* @property {string} QUEUED - Job has been queued
|
|
2764
|
-
* @property {string} PROCESSING - Job is processing
|
|
2765
|
-
* @property {string} COMPLETED - Job has been completed
|
|
2766
|
-
* @property {string} CANCELED - Job has been canceled
|
|
2767
|
-
* @property {string} FAILED - Job has failed
|
|
2768
|
-
* @readonly
|
|
2769
|
-
*/
|
|
2770
|
-
|
|
2771
|
-
const ResultStatus = new Enum["default"](['queued', 'processing', 'completed', 'canceled', 'failed'], true);
|
|
2772
|
-
// CONCATENATED MODULE: ./src/enums/JobShareVisibility.js
|
|
2773
|
-
/*
|
|
2774
|
-
* BSD 3-Clause License
|
|
2775
|
-
*
|
|
2776
|
-
* Copyright (c) 2020, Mapcreator
|
|
2777
|
-
* All rights reserved.
|
|
2778
|
-
*
|
|
2779
|
-
* Redistribution and use in source and binary forms, with or without
|
|
2780
|
-
* modification, are permitted provided that the following conditions are met:
|
|
2781
|
-
*
|
|
2782
|
-
* Redistributions of source code must retain the above copyright notice, this
|
|
2783
|
-
* list of conditions and the following disclaimer.
|
|
2784
|
-
*
|
|
2785
|
-
* Redistributions in binary form must reproduce the above copyright notice,
|
|
2786
|
-
* this list of conditions and the following disclaimer in the documentation
|
|
2787
|
-
* and/or other materials provided with the distribution.
|
|
2788
|
-
*
|
|
2789
|
-
* Neither the name of the copyright holder nor the names of its
|
|
2790
|
-
* contributors may be used to endorse or promote products derived from
|
|
2791
|
-
* this software without specific prior written permission.
|
|
2792
|
-
*
|
|
2793
|
-
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
2794
|
-
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
2795
|
-
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
2796
|
-
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
2797
|
-
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
2798
|
-
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
2799
|
-
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
2800
|
-
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
2801
|
-
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
2802
|
-
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
2803
|
-
*/
|
|
2804
|
-
|
|
2805
|
-
/**
|
|
2806
|
-
* Enum containing the possible different visibilities for a {@link JobShare}
|
|
2807
|
-
* @enum {string}
|
|
2808
|
-
* @property {string} PRIVATE - Anyone outside of the organisation could open the map, the map is not visible within the organisation folder
|
|
2809
|
-
* @property {string} PUBLIC - Anyone who has that link can open the map
|
|
2810
|
-
* @property {string} ORGANISATION - This map only opens if a user is within the same organisation
|
|
2811
|
-
* @readonly
|
|
2812
|
-
*/
|
|
2813
|
-
|
|
2814
|
-
const JobShareVisibility = new Enum["default"](['private', 'organisation', 'public'], true);
|
|
2815
|
-
// CONCATENATED MODULE: ./src/enums/index.js
|
|
2816
|
-
/*
|
|
2817
|
-
* BSD 3-Clause License
|
|
2818
|
-
*
|
|
2819
|
-
* Copyright (c) 2020, Mapcreator
|
|
2820
|
-
* All rights reserved.
|
|
2821
|
-
*
|
|
2822
|
-
* Redistribution and use in source and binary forms, with or without
|
|
2823
|
-
* modification, are permitted provided that the following conditions are met:
|
|
2824
|
-
*
|
|
2825
|
-
* Redistributions of source code must retain the above copyright notice, this
|
|
2826
|
-
* list of conditions and the following disclaimer.
|
|
2827
|
-
*
|
|
2828
|
-
* Redistributions in binary form must reproduce the above copyright notice,
|
|
2829
|
-
* this list of conditions and the following disclaimer in the documentation
|
|
2830
|
-
* and/or other materials provided with the distribution.
|
|
2831
|
-
*
|
|
2832
|
-
* Neither the name of the copyright holder nor the names of its
|
|
2833
|
-
* contributors may be used to endorse or promote products derived from
|
|
2834
|
-
* this software without specific prior written permission.
|
|
2835
|
-
*
|
|
2836
|
-
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
2837
|
-
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
2838
|
-
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
2839
|
-
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
2840
|
-
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
2841
|
-
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
2842
|
-
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
2843
|
-
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
2844
|
-
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
2845
|
-
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
2846
|
-
*/
|
|
2847
|
-
|
|
2848
|
-
|
|
2849
|
-
|
|
2850
|
-
|
|
2851
|
-
|
|
2852
|
-
|
|
2853
|
-
/***/ }),
|
|
2854
|
-
/* 8 */
|
|
2855
2690
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2856
2691
|
|
|
2857
2692
|
/*! Case - v1.6.2 - 2020-03-24
|
|
@@ -3011,20 +2846,212 @@ const JobShareVisibility = new Enum["default"](['private', 'organisation', 'publ
|
|
|
3011
2846
|
}
|
|
3012
2847
|
};
|
|
3013
2848
|
|
|
3014
|
-
// TODO: Remove "squish" in a future breaking release.
|
|
3015
|
-
types.squish = types.pascal;
|
|
3016
|
-
|
|
3017
|
-
// Allow import default
|
|
3018
|
-
Case.default = Case;
|
|
2849
|
+
// TODO: Remove "squish" in a future breaking release.
|
|
2850
|
+
types.squish = types.pascal;
|
|
2851
|
+
|
|
2852
|
+
// Allow import default
|
|
2853
|
+
Case.default = Case;
|
|
2854
|
+
|
|
2855
|
+
for (var type in types) {
|
|
2856
|
+
Case.type(type, types[type]);
|
|
2857
|
+
}
|
|
2858
|
+
// export Case (AMD, commonjs, or global)
|
|
2859
|
+
var define = typeof define === "function" ? define : function(){};
|
|
2860
|
+
define( true && module.exports ? module.exports = Case : this.Case = Case);
|
|
2861
|
+
|
|
2862
|
+
}).call(this);
|
|
2863
|
+
|
|
2864
|
+
|
|
2865
|
+
/***/ }),
|
|
2866
|
+
/* 8 */
|
|
2867
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
2868
|
+
|
|
2869
|
+
"use strict";
|
|
2870
|
+
// ESM COMPAT FLAG
|
|
2871
|
+
__webpack_require__.r(__webpack_exports__);
|
|
2872
|
+
|
|
2873
|
+
// EXPORTS
|
|
2874
|
+
__webpack_require__.d(__webpack_exports__, "Enum", function() { return /* reexport */ Enum["default"]; });
|
|
2875
|
+
__webpack_require__.d(__webpack_exports__, "DeletedState", function() { return /* reexport */ DeletedState; });
|
|
2876
|
+
__webpack_require__.d(__webpack_exports__, "ResultStatus", function() { return /* reexport */ ResultStatus; });
|
|
2877
|
+
__webpack_require__.d(__webpack_exports__, "JobShareVisibility", function() { return /* reexport */ JobShareVisibility; });
|
|
2878
|
+
|
|
2879
|
+
// EXTERNAL MODULE: ./src/enums/Enum.js + 1 modules
|
|
2880
|
+
var Enum = __webpack_require__(22);
|
|
2881
|
+
|
|
2882
|
+
// CONCATENATED MODULE: ./src/enums/DeletedState.js
|
|
2883
|
+
/*
|
|
2884
|
+
* BSD 3-Clause License
|
|
2885
|
+
*
|
|
2886
|
+
* Copyright (c) 2020, Mapcreator
|
|
2887
|
+
* All rights reserved.
|
|
2888
|
+
*
|
|
2889
|
+
* Redistribution and use in source and binary forms, with or without
|
|
2890
|
+
* modification, are permitted provided that the following conditions are met:
|
|
2891
|
+
*
|
|
2892
|
+
* Redistributions of source code must retain the above copyright notice, this
|
|
2893
|
+
* list of conditions and the following disclaimer.
|
|
2894
|
+
*
|
|
2895
|
+
* Redistributions in binary form must reproduce the above copyright notice,
|
|
2896
|
+
* this list of conditions and the following disclaimer in the documentation
|
|
2897
|
+
* and/or other materials provided with the distribution.
|
|
2898
|
+
*
|
|
2899
|
+
* Neither the name of the copyright holder nor the names of its
|
|
2900
|
+
* contributors may be used to endorse or promote products derived from
|
|
2901
|
+
* this software without specific prior written permission.
|
|
2902
|
+
*
|
|
2903
|
+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
2904
|
+
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
2905
|
+
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
2906
|
+
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
2907
|
+
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
2908
|
+
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
2909
|
+
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
2910
|
+
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
2911
|
+
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
2912
|
+
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
2913
|
+
*/
|
|
2914
|
+
|
|
2915
|
+
/**
|
|
2916
|
+
* Enum containing the possible different values for {@link RequestParameters#deleted}
|
|
2917
|
+
* @enum {string}
|
|
2918
|
+
* @property {string} ALL - Don't discriminate between deleted items and non-deleted resources
|
|
2919
|
+
* @property {string} BOTH - Don't discriminate between deleted items and non-deleted resources
|
|
2920
|
+
* @property {string} NONE - Don't return deleted resources
|
|
2921
|
+
* @property {string} ONLY - Only return deleted resources
|
|
2922
|
+
* @readonly
|
|
2923
|
+
*/
|
|
2924
|
+
|
|
2925
|
+
const DeletedState = new Enum["default"]({
|
|
2926
|
+
ALL: 'all',
|
|
2927
|
+
BOTH: 'all',
|
|
2928
|
+
NONE: 'none',
|
|
2929
|
+
ONLY: 'only'
|
|
2930
|
+
});
|
|
2931
|
+
// CONCATENATED MODULE: ./src/enums/ResultStatus.js
|
|
2932
|
+
/*
|
|
2933
|
+
* BSD 3-Clause License
|
|
2934
|
+
*
|
|
2935
|
+
* Copyright (c) 2020, Mapcreator
|
|
2936
|
+
* All rights reserved.
|
|
2937
|
+
*
|
|
2938
|
+
* Redistribution and use in source and binary forms, with or without
|
|
2939
|
+
* modification, are permitted provided that the following conditions are met:
|
|
2940
|
+
*
|
|
2941
|
+
* Redistributions of source code must retain the above copyright notice, this
|
|
2942
|
+
* list of conditions and the following disclaimer.
|
|
2943
|
+
*
|
|
2944
|
+
* Redistributions in binary form must reproduce the above copyright notice,
|
|
2945
|
+
* this list of conditions and the following disclaimer in the documentation
|
|
2946
|
+
* and/or other materials provided with the distribution.
|
|
2947
|
+
*
|
|
2948
|
+
* Neither the name of the copyright holder nor the names of its
|
|
2949
|
+
* contributors may be used to endorse or promote products derived from
|
|
2950
|
+
* this software without specific prior written permission.
|
|
2951
|
+
*
|
|
2952
|
+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
2953
|
+
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
2954
|
+
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
2955
|
+
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
2956
|
+
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
2957
|
+
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
2958
|
+
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
2959
|
+
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
2960
|
+
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
2961
|
+
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
2962
|
+
*/
|
|
2963
|
+
|
|
2964
|
+
/**
|
|
2965
|
+
* Enum containing the possible different values for {@link RequestParameters#deleted}
|
|
2966
|
+
* @enum {string}
|
|
2967
|
+
* @property {string} QUEUED - Job has been queued
|
|
2968
|
+
* @property {string} PROCESSING - Job is processing
|
|
2969
|
+
* @property {string} COMPLETED - Job has been completed
|
|
2970
|
+
* @property {string} CANCELED - Job has been canceled
|
|
2971
|
+
* @property {string} FAILED - Job has failed
|
|
2972
|
+
* @readonly
|
|
2973
|
+
*/
|
|
2974
|
+
|
|
2975
|
+
const ResultStatus = new Enum["default"](['queued', 'processing', 'completed', 'canceled', 'failed'], true);
|
|
2976
|
+
// CONCATENATED MODULE: ./src/enums/JobShareVisibility.js
|
|
2977
|
+
/*
|
|
2978
|
+
* BSD 3-Clause License
|
|
2979
|
+
*
|
|
2980
|
+
* Copyright (c) 2020, Mapcreator
|
|
2981
|
+
* All rights reserved.
|
|
2982
|
+
*
|
|
2983
|
+
* Redistribution and use in source and binary forms, with or without
|
|
2984
|
+
* modification, are permitted provided that the following conditions are met:
|
|
2985
|
+
*
|
|
2986
|
+
* Redistributions of source code must retain the above copyright notice, this
|
|
2987
|
+
* list of conditions and the following disclaimer.
|
|
2988
|
+
*
|
|
2989
|
+
* Redistributions in binary form must reproduce the above copyright notice,
|
|
2990
|
+
* this list of conditions and the following disclaimer in the documentation
|
|
2991
|
+
* and/or other materials provided with the distribution.
|
|
2992
|
+
*
|
|
2993
|
+
* Neither the name of the copyright holder nor the names of its
|
|
2994
|
+
* contributors may be used to endorse or promote products derived from
|
|
2995
|
+
* this software without specific prior written permission.
|
|
2996
|
+
*
|
|
2997
|
+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
2998
|
+
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
2999
|
+
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
3000
|
+
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
3001
|
+
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
3002
|
+
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
3003
|
+
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
3004
|
+
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
3005
|
+
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
3006
|
+
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
3007
|
+
*/
|
|
3008
|
+
|
|
3009
|
+
/**
|
|
3010
|
+
* Enum containing the possible different visibilities for a {@link JobShare}
|
|
3011
|
+
* @enum {string}
|
|
3012
|
+
* @property {string} PRIVATE - Anyone outside of the organisation could open the map, the map is not visible within the organisation folder
|
|
3013
|
+
* @property {string} PUBLIC - Anyone who has that link can open the map
|
|
3014
|
+
* @property {string} ORGANISATION - This map only opens if a user is within the same organisation
|
|
3015
|
+
* @readonly
|
|
3016
|
+
*/
|
|
3017
|
+
|
|
3018
|
+
const JobShareVisibility = new Enum["default"](['private', 'organisation', 'public'], true);
|
|
3019
|
+
// CONCATENATED MODULE: ./src/enums/index.js
|
|
3020
|
+
/*
|
|
3021
|
+
* BSD 3-Clause License
|
|
3022
|
+
*
|
|
3023
|
+
* Copyright (c) 2020, Mapcreator
|
|
3024
|
+
* All rights reserved.
|
|
3025
|
+
*
|
|
3026
|
+
* Redistribution and use in source and binary forms, with or without
|
|
3027
|
+
* modification, are permitted provided that the following conditions are met:
|
|
3028
|
+
*
|
|
3029
|
+
* Redistributions of source code must retain the above copyright notice, this
|
|
3030
|
+
* list of conditions and the following disclaimer.
|
|
3031
|
+
*
|
|
3032
|
+
* Redistributions in binary form must reproduce the above copyright notice,
|
|
3033
|
+
* this list of conditions and the following disclaimer in the documentation
|
|
3034
|
+
* and/or other materials provided with the distribution.
|
|
3035
|
+
*
|
|
3036
|
+
* Neither the name of the copyright holder nor the names of its
|
|
3037
|
+
* contributors may be used to endorse or promote products derived from
|
|
3038
|
+
* this software without specific prior written permission.
|
|
3039
|
+
*
|
|
3040
|
+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
3041
|
+
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
3042
|
+
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
3043
|
+
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
3044
|
+
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
3045
|
+
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
3046
|
+
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
3047
|
+
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
3048
|
+
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
3049
|
+
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
3050
|
+
*/
|
|
3051
|
+
|
|
3052
|
+
|
|
3019
3053
|
|
|
3020
|
-
for (var type in types) {
|
|
3021
|
-
Case.type(type, types[type]);
|
|
3022
|
-
}
|
|
3023
|
-
// export Case (AMD, commonjs, or global)
|
|
3024
|
-
var define = typeof define === "function" ? define : function(){};
|
|
3025
|
-
define( true && module.exports ? module.exports = Case : this.Case = Case);
|
|
3026
3054
|
|
|
3027
|
-
}).call(this);
|
|
3028
3055
|
|
|
3029
3056
|
|
|
3030
3057
|
/***/ }),
|
|
@@ -3138,7 +3165,7 @@ class AbstractMethodError extends AbstractError {
|
|
|
3138
3165
|
"use strict";
|
|
3139
3166
|
__webpack_require__.r(__webpack_exports__);
|
|
3140
3167
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return OwnableResource; });
|
|
3141
|
-
/* harmony import */ var _proxy_OrganisationProxy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
|
|
3168
|
+
/* harmony import */ var _proxy_OrganisationProxy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(60);
|
|
3142
3169
|
/* harmony import */ var _Trait__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(28);
|
|
3143
3170
|
/*
|
|
3144
3171
|
* BSD 3-Clause License
|
|
@@ -3434,7 +3461,7 @@ function windowTest(str) {
|
|
|
3434
3461
|
"use strict";
|
|
3435
3462
|
__webpack_require__.r(__webpack_exports__);
|
|
3436
3463
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return ResourceProxy; });
|
|
3437
|
-
/* harmony import */ var _utils_requests__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
|
|
3464
|
+
/* harmony import */ var _utils_requests__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5);
|
|
3438
3465
|
/* harmony import */ var _SimpleResourceProxy__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(16);
|
|
3439
3466
|
/* harmony import */ var _utils_helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(0);
|
|
3440
3467
|
/*
|
|
@@ -3560,7 +3587,7 @@ class ResourceProxy extends _SimpleResourceProxy__WEBPACK_IMPORTED_MODULE_1__["d
|
|
|
3560
3587
|
__webpack_require__.r(__webpack_exports__);
|
|
3561
3588
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return OAuthToken; });
|
|
3562
3589
|
/* harmony import */ var _storage_StorageManager__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(19);
|
|
3563
|
-
/* harmony import */ var _utils_requests__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
|
|
3590
|
+
/* harmony import */ var _utils_requests__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(5);
|
|
3564
3591
|
/*
|
|
3565
3592
|
* BSD 3-Clause License
|
|
3566
3593
|
*
|
|
@@ -4079,7 +4106,7 @@ class PaginatedResourceListing_PaginatedResourceListing {
|
|
|
4079
4106
|
|
|
4080
4107
|
}
|
|
4081
4108
|
// EXTERNAL MODULE: ./src/ResourceLister.js
|
|
4082
|
-
var ResourceLister = __webpack_require__(
|
|
4109
|
+
var ResourceLister = __webpack_require__(59);
|
|
4083
4110
|
|
|
4084
4111
|
// EXTERNAL MODULE: ./src/resources/base/ResourceBase.js
|
|
4085
4112
|
var ResourceBase = __webpack_require__(6);
|
|
@@ -4377,7 +4404,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
4377
4404
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return CrudSetItemBase; });
|
|
4378
4405
|
/* harmony import */ var _errors_AbstractError__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(10);
|
|
4379
4406
|
/* harmony import */ var _CrudBase__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2);
|
|
4380
|
-
/* harmony import */ var case__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
|
|
4407
|
+
/* harmony import */ var case__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7);
|
|
4381
4408
|
/* harmony import */ var case__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(case__WEBPACK_IMPORTED_MODULE_2__);
|
|
4382
4409
|
/*
|
|
4383
4410
|
* BSD 3-Clause License
|
|
@@ -4721,7 +4748,7 @@ class DummyDriver_DummyDriver extends DataStoreContract["default"] {
|
|
|
4721
4748
|
|
|
4722
4749
|
defineProperty_default()(DummyDriver_DummyDriver, "_data", {});
|
|
4723
4750
|
// EXTERNAL MODULE: ./src/storage/FileDriver.js
|
|
4724
|
-
var FileDriver = __webpack_require__(
|
|
4751
|
+
var FileDriver = __webpack_require__(70);
|
|
4725
4752
|
|
|
4726
4753
|
// CONCATENATED MODULE: ./src/storage/LocalStorageDriver.js
|
|
4727
4754
|
/*
|
|
@@ -4953,7 +4980,7 @@ class StorageManager_StorageManager extends StaticClass["default"] {
|
|
|
4953
4980
|
"use strict";
|
|
4954
4981
|
__webpack_require__.r(__webpack_exports__);
|
|
4955
4982
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return JobShare; });
|
|
4956
|
-
/* harmony import */ var _enums__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
|
|
4983
|
+
/* harmony import */ var _enums__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8);
|
|
4957
4984
|
/* harmony import */ var _base_CrudBase__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2);
|
|
4958
4985
|
/*
|
|
4959
4986
|
* BSD 3-Clause License
|
|
@@ -5313,7 +5340,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
5313
5340
|
__webpack_require__.d(__webpack_exports__, "default", function() { return /* binding */ Enum_Enum; });
|
|
5314
5341
|
|
|
5315
5342
|
// EXTERNAL MODULE: ./node_modules/case/dist/Case.js
|
|
5316
|
-
var Case = __webpack_require__(
|
|
5343
|
+
var Case = __webpack_require__(7);
|
|
5317
5344
|
|
|
5318
5345
|
// EXTERNAL MODULE: ./src/utils/reflection.js
|
|
5319
5346
|
var reflection = __webpack_require__(1);
|
|
@@ -5511,7 +5538,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
5511
5538
|
/* harmony import */ var _errors_AbstractError__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(10);
|
|
5512
5539
|
/* harmony import */ var _storage_StorageManager__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(19);
|
|
5513
5540
|
/* harmony import */ var _OAuthToken__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(15);
|
|
5514
|
-
/* harmony import */ var _StateContainer__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
|
|
5541
|
+
/* harmony import */ var _StateContainer__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(58);
|
|
5515
5542
|
/* harmony import */ var _utils_helpers__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(0);
|
|
5516
5543
|
|
|
5517
5544
|
|
|
@@ -5666,7 +5693,7 @@ __webpack_require__.d(__webpack_exports__, "default", function() { return /* bin
|
|
|
5666
5693
|
var browser = __webpack_require__(53);
|
|
5667
5694
|
|
|
5668
5695
|
// EXTERNAL MODULE: ./src/enums/index.js + 3 modules
|
|
5669
|
-
var enums = __webpack_require__(
|
|
5696
|
+
var enums = __webpack_require__(8);
|
|
5670
5697
|
|
|
5671
5698
|
// EXTERNAL MODULE: ./src/oauth/DummyFlow.js
|
|
5672
5699
|
var DummyFlow = __webpack_require__(55);
|
|
@@ -5687,13 +5714,13 @@ var ResourceProxy = __webpack_require__(14);
|
|
|
5687
5714
|
var SimpleResourceProxy = __webpack_require__(16);
|
|
5688
5715
|
|
|
5689
5716
|
// EXTERNAL MODULE: ./src/resources/index.js + 7 modules
|
|
5690
|
-
var resources = __webpack_require__(
|
|
5717
|
+
var resources = __webpack_require__(4);
|
|
5691
5718
|
|
|
5692
5719
|
// EXTERNAL MODULE: ./src/resources/base/ResourceBase.js
|
|
5693
5720
|
var ResourceBase = __webpack_require__(6);
|
|
5694
5721
|
|
|
5695
5722
|
// EXTERNAL MODULE: ./src/traits/Injectable.js
|
|
5696
|
-
var Injectable = __webpack_require__(
|
|
5723
|
+
var Injectable = __webpack_require__(68);
|
|
5697
5724
|
|
|
5698
5725
|
// EXTERNAL MODULE: ./src/utils/hash.js
|
|
5699
5726
|
var hash = __webpack_require__(29);
|
|
@@ -5851,7 +5878,7 @@ var ValidationError = __webpack_require__(35);
|
|
|
5851
5878
|
var ApiError = __webpack_require__(27);
|
|
5852
5879
|
|
|
5853
5880
|
// EXTERNAL MODULE: ./src/utils/requests.js
|
|
5854
|
-
var requests = __webpack_require__(
|
|
5881
|
+
var requests = __webpack_require__(5);
|
|
5855
5882
|
|
|
5856
5883
|
// EXTERNAL MODULE: ./node_modules/events/events.js
|
|
5857
5884
|
var events = __webpack_require__(52);
|
|
@@ -6410,6 +6437,16 @@ class Mapcreator_Mapcreator extends Object(reflection["mix"])(events_default.a,
|
|
|
6410
6437
|
get notifications() {
|
|
6411
6438
|
return this.static(resources["Notification"]);
|
|
6412
6439
|
}
|
|
6440
|
+
/**
|
|
6441
|
+
* Message accessor
|
|
6442
|
+
* @see {@link Message}
|
|
6443
|
+
* @returns {ResourceProxy} - A proxy for accessing the resource
|
|
6444
|
+
*/
|
|
6445
|
+
|
|
6446
|
+
|
|
6447
|
+
get messages() {
|
|
6448
|
+
return this.static(resources["Message"]);
|
|
6449
|
+
}
|
|
6413
6450
|
/**
|
|
6414
6451
|
* Organisation accessor
|
|
6415
6452
|
* @see {@link Organisation}
|
|
@@ -6529,7 +6566,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
6529
6566
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return CrudSetBase; });
|
|
6530
6567
|
/* harmony import */ var _errors_AbstractError__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(10);
|
|
6531
6568
|
/* harmony import */ var _CrudBase__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2);
|
|
6532
|
-
/* harmony import */ var case__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
|
|
6569
|
+
/* harmony import */ var case__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7);
|
|
6533
6570
|
/* harmony import */ var case__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(case__WEBPACK_IMPORTED_MODULE_2__);
|
|
6534
6571
|
/*
|
|
6535
6572
|
* BSD 3-Clause License
|
|
@@ -6621,7 +6658,7 @@ class CrudSetBase extends _CrudBase__WEBPACK_IMPORTED_MODULE_1__["default"] {
|
|
|
6621
6658
|
"use strict";
|
|
6622
6659
|
__webpack_require__.r(__webpack_exports__);
|
|
6623
6660
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return Layer; });
|
|
6624
|
-
/* harmony import */ var _traits_HandlesImages__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
|
|
6661
|
+
/* harmony import */ var _traits_HandlesImages__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(69);
|
|
6625
6662
|
/* harmony import */ var _traits_OwnableResource__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(11);
|
|
6626
6663
|
/* harmony import */ var _utils_reflection__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
|
|
6627
6664
|
/* harmony import */ var _base_CrudBase__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(2);
|
|
@@ -6897,7 +6934,7 @@ class Trait {
|
|
|
6897
6934
|
__webpack_require__.r(__webpack_exports__);
|
|
6898
6935
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fnv32b", function() { return fnv32b; });
|
|
6899
6936
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hashObject", function() { return hashObject; });
|
|
6900
|
-
/* harmony import */ var json_stable_stringify__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
|
|
6937
|
+
/* harmony import */ var json_stable_stringify__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(71);
|
|
6901
6938
|
/* harmony import */ var json_stable_stringify__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(json_stable_stringify__WEBPACK_IMPORTED_MODULE_0__);
|
|
6902
6939
|
/*
|
|
6903
6940
|
* BSD 3-Clause License
|
|
@@ -7318,8 +7355,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
7318
7355
|
/* harmony import */ var _base_DownloadedResource__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(21);
|
|
7319
7356
|
/* harmony import */ var _base_ResourceBase__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6);
|
|
7320
7357
|
/* harmony import */ var _RequestParameters__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(3);
|
|
7321
|
-
/* harmony import */ var _utils_requests__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
|
|
7322
|
-
/* harmony import */ var _enums__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
|
|
7358
|
+
/* harmony import */ var _utils_requests__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(5);
|
|
7359
|
+
/* harmony import */ var _enums__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(8);
|
|
7323
7360
|
/* harmony import */ var _utils_helpers__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(0);
|
|
7324
7361
|
/*
|
|
7325
7362
|
* BSD 3-Clause License
|
|
@@ -8124,10 +8161,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
8124
8161
|
/* harmony import */ var _base_DownloadedResource__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(21);
|
|
8125
8162
|
/* harmony import */ var _base_CrudBase__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(2);
|
|
8126
8163
|
/* harmony import */ var _JobResult__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(33);
|
|
8127
|
-
/* harmony import */ var _JobRevision__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
|
|
8164
|
+
/* harmony import */ var _JobRevision__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(63);
|
|
8128
8165
|
/* harmony import */ var _RequestParameters__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(3);
|
|
8129
|
-
/* harmony import */ var _utils_requests__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(
|
|
8130
|
-
/* harmony import */ var _enums__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(
|
|
8166
|
+
/* harmony import */ var _utils_requests__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(5);
|
|
8167
|
+
/* harmony import */ var _enums__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(8);
|
|
8131
8168
|
/* harmony import */ var _utils_helpers__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(0);
|
|
8132
8169
|
/* harmony import */ var _JobShare__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(20);
|
|
8133
8170
|
/*
|
|
@@ -8380,7 +8417,7 @@ class JobType extends Object(_utils_reflection__WEBPACK_IMPORTED_MODULE_2__["mix
|
|
|
8380
8417
|
"use strict";
|
|
8381
8418
|
__webpack_require__.r(__webpack_exports__);
|
|
8382
8419
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return Mapstyle; });
|
|
8383
|
-
/* harmony import */ var _traits_HandlesImages__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
|
|
8420
|
+
/* harmony import */ var _traits_HandlesImages__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(69);
|
|
8384
8421
|
/* harmony import */ var _utils_reflection__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1);
|
|
8385
8422
|
/* harmony import */ var _base_CrudSetItemBase__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(18);
|
|
8386
8423
|
/*
|
|
@@ -8623,17 +8660,18 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
8623
8660
|
/* harmony import */ var _Job__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(42);
|
|
8624
8661
|
/* harmony import */ var _JobShare__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(20);
|
|
8625
8662
|
/* harmony import */ var _JobType__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(43);
|
|
8626
|
-
/* harmony import */ var _Language__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(
|
|
8663
|
+
/* harmony import */ var _Language__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(64);
|
|
8627
8664
|
/* harmony import */ var _Layer__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(26);
|
|
8628
8665
|
/* harmony import */ var _Mapstyle__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(44);
|
|
8629
8666
|
/* harmony import */ var _MapstyleSet__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(50);
|
|
8630
|
-
/* harmony import */ var
|
|
8631
|
-
/* harmony import */ var
|
|
8632
|
-
/* harmony import */ var
|
|
8633
|
-
/* harmony import */ var
|
|
8634
|
-
/* harmony import */ var
|
|
8635
|
-
/* harmony import */ var
|
|
8636
|
-
/* harmony import */ var
|
|
8667
|
+
/* harmony import */ var _Message__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(57);
|
|
8668
|
+
/* harmony import */ var _Notification__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(65);
|
|
8669
|
+
/* harmony import */ var _Organisation__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(54);
|
|
8670
|
+
/* harmony import */ var _Permission__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(49);
|
|
8671
|
+
/* harmony import */ var _Role__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(66);
|
|
8672
|
+
/* harmony import */ var _Svg__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(46);
|
|
8673
|
+
/* harmony import */ var _SvgSet__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(45);
|
|
8674
|
+
/* harmony import */ var _utils_helpers__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(0);
|
|
8637
8675
|
/*
|
|
8638
8676
|
* BSD 3-Clause License
|
|
8639
8677
|
*
|
|
@@ -8686,6 +8724,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
8686
8724
|
|
|
8687
8725
|
|
|
8688
8726
|
|
|
8727
|
+
|
|
8689
8728
|
|
|
8690
8729
|
|
|
8691
8730
|
class User extends _base_CrudBase__WEBPACK_IMPORTED_MODULE_2__["default"] {
|
|
@@ -8701,7 +8740,7 @@ class User extends _base_CrudBase__WEBPACK_IMPORTED_MODULE_2__["default"] {
|
|
|
8701
8740
|
|
|
8702
8741
|
ips() {
|
|
8703
8742
|
const url = `${this.url}/ips`;
|
|
8704
|
-
return Object(
|
|
8743
|
+
return Object(_utils_helpers__WEBPACK_IMPORTED_MODULE_23__["makeCancelable"])(async signal => {
|
|
8705
8744
|
const {
|
|
8706
8745
|
data
|
|
8707
8746
|
} = await this.api.ky.get(url, {
|
|
@@ -8718,7 +8757,7 @@ class User extends _base_CrudBase__WEBPACK_IMPORTED_MODULE_2__["default"] {
|
|
|
8718
8757
|
|
|
8719
8758
|
|
|
8720
8759
|
organisation() {
|
|
8721
|
-
return new _proxy_ResourceProxy__WEBPACK_IMPORTED_MODULE_1__["default"](this.api,
|
|
8760
|
+
return new _proxy_ResourceProxy__WEBPACK_IMPORTED_MODULE_1__["default"](this.api, _Organisation__WEBPACK_IMPORTED_MODULE_18__["default"]).get(this.organisationId);
|
|
8722
8761
|
}
|
|
8723
8762
|
/**
|
|
8724
8763
|
* Get the user's language
|
|
@@ -8738,7 +8777,27 @@ class User extends _base_CrudBase__WEBPACK_IMPORTED_MODULE_2__["default"] {
|
|
|
8738
8777
|
|
|
8739
8778
|
|
|
8740
8779
|
get notifications() {
|
|
8741
|
-
return this._proxyResourceList(
|
|
8780
|
+
return this._proxyResourceList(_Notification__WEBPACK_IMPORTED_MODULE_17__["default"]);
|
|
8781
|
+
}
|
|
8782
|
+
/**
|
|
8783
|
+
* Get a list of read/unread messages for the user
|
|
8784
|
+
* @returns {CancelablePromise<{read: Message[], unread: Message[]}>} - Read and unread messages
|
|
8785
|
+
*/
|
|
8786
|
+
|
|
8787
|
+
|
|
8788
|
+
messages() {
|
|
8789
|
+
const url = `${this.url}/messages`;
|
|
8790
|
+
return Object(_utils_helpers__WEBPACK_IMPORTED_MODULE_23__["makeCancelable"])(async signal => {
|
|
8791
|
+
const {
|
|
8792
|
+
data
|
|
8793
|
+
} = await this.api.ky.get(url, {
|
|
8794
|
+
signal
|
|
8795
|
+
}).json();
|
|
8796
|
+
return {
|
|
8797
|
+
read: data.read.map(o => new _Message__WEBPACK_IMPORTED_MODULE_16__["default"](this.api, o)),
|
|
8798
|
+
unread: data.unread.map(o => new _Message__WEBPACK_IMPORTED_MODULE_16__["default"](this.api, o))
|
|
8799
|
+
};
|
|
8800
|
+
});
|
|
8742
8801
|
}
|
|
8743
8802
|
/**
|
|
8744
8803
|
* Get the list mapstyle sets linked to the user
|
|
@@ -8801,7 +8860,7 @@ class User extends _base_CrudBase__WEBPACK_IMPORTED_MODULE_2__["default"] {
|
|
|
8801
8860
|
|
|
8802
8861
|
|
|
8803
8862
|
get svgSets() {
|
|
8804
|
-
return this._proxyResourceList(
|
|
8863
|
+
return this._proxyResourceList(_SvgSet__WEBPACK_IMPORTED_MODULE_22__["default"]);
|
|
8805
8864
|
}
|
|
8806
8865
|
/**
|
|
8807
8866
|
* Get the list svgs linked to the user
|
|
@@ -8810,7 +8869,7 @@ class User extends _base_CrudBase__WEBPACK_IMPORTED_MODULE_2__["default"] {
|
|
|
8810
8869
|
|
|
8811
8870
|
|
|
8812
8871
|
get svgs() {
|
|
8813
|
-
return this._proxyResourceList(
|
|
8872
|
+
return this._proxyResourceList(_Svg__WEBPACK_IMPORTED_MODULE_21__["default"]);
|
|
8814
8873
|
}
|
|
8815
8874
|
/**
|
|
8816
8875
|
* Get the list colors linked to the user
|
|
@@ -8873,7 +8932,7 @@ class User extends _base_CrudBase__WEBPACK_IMPORTED_MODULE_2__["default"] {
|
|
|
8873
8932
|
|
|
8874
8933
|
|
|
8875
8934
|
get permissions() {
|
|
8876
|
-
return this._proxyResourceList(
|
|
8935
|
+
return this._proxyResourceList(_Permission__WEBPACK_IMPORTED_MODULE_19__["default"]);
|
|
8877
8936
|
}
|
|
8878
8937
|
/**
|
|
8879
8938
|
* Get the list roles linked to the user
|
|
@@ -8882,7 +8941,7 @@ class User extends _base_CrudBase__WEBPACK_IMPORTED_MODULE_2__["default"] {
|
|
|
8882
8941
|
|
|
8883
8942
|
|
|
8884
8943
|
get roles() {
|
|
8885
|
-
return new _proxy_OwnedResourceProxy__WEBPACK_IMPORTED_MODULE_0__["default"](this.api, this,
|
|
8944
|
+
return new _proxy_OwnedResourceProxy__WEBPACK_IMPORTED_MODULE_0__["default"](this.api, this, _Role__WEBPACK_IMPORTED_MODULE_20__["default"]);
|
|
8886
8945
|
} // endregion
|
|
8887
8946
|
|
|
8888
8947
|
|
|
@@ -10118,9 +10177,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
10118
10177
|
/* harmony import */ var _proxy_OwnedResourceProxy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(12);
|
|
10119
10178
|
/* harmony import */ var _base_CrudBase__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2);
|
|
10120
10179
|
/* harmony import */ var _Color__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(36);
|
|
10121
|
-
/* harmony import */ var _Contract__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
|
|
10180
|
+
/* harmony import */ var _Contract__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(61);
|
|
10122
10181
|
/* harmony import */ var _DimensionSet__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(37);
|
|
10123
|
-
/* harmony import */ var _Domain__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
|
|
10182
|
+
/* harmony import */ var _Domain__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(62);
|
|
10124
10183
|
/* harmony import */ var _Feature__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(39);
|
|
10125
10184
|
/* harmony import */ var _FontFamily__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(40);
|
|
10126
10185
|
/* harmony import */ var _Job__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(42);
|
|
@@ -10132,7 +10191,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
10132
10191
|
/* harmony import */ var _Tag__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(47);
|
|
10133
10192
|
/* harmony import */ var _User__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(48);
|
|
10134
10193
|
/* harmony import */ var _utils_helpers__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(0);
|
|
10135
|
-
/* harmony import */ var _utils_requests__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(
|
|
10194
|
+
/* harmony import */ var _utils_requests__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(5);
|
|
10136
10195
|
/*
|
|
10137
10196
|
* BSD 3-Clause License
|
|
10138
10197
|
*
|
|
@@ -10603,6 +10662,157 @@ class GeoBoundary {
|
|
|
10603
10662
|
// ESM COMPAT FLAG
|
|
10604
10663
|
__webpack_require__.r(__webpack_exports__);
|
|
10605
10664
|
|
|
10665
|
+
// EXPORTS
|
|
10666
|
+
__webpack_require__.d(__webpack_exports__, "default", function() { return /* binding */ Message_Message; });
|
|
10667
|
+
|
|
10668
|
+
// EXTERNAL MODULE: ./src/resources/base/CrudBase.js
|
|
10669
|
+
var CrudBase = __webpack_require__(2);
|
|
10670
|
+
|
|
10671
|
+
// EXTERNAL MODULE: ./src/resources/base/ResourceBase.js
|
|
10672
|
+
var ResourceBase = __webpack_require__(6);
|
|
10673
|
+
|
|
10674
|
+
// CONCATENATED MODULE: ./src/resources/MessageVariant.js
|
|
10675
|
+
/*
|
|
10676
|
+
* BSD 3-Clause License
|
|
10677
|
+
*
|
|
10678
|
+
* Copyright (c) 2020, Mapcreator
|
|
10679
|
+
* All rights reserved.
|
|
10680
|
+
*
|
|
10681
|
+
* Redistribution and use in source and binary forms, with or without
|
|
10682
|
+
* modification, are permitted provided that the following conditions are met:
|
|
10683
|
+
*
|
|
10684
|
+
* Redistributions of source code must retain the above copyright notice, this
|
|
10685
|
+
* list of conditions and the following disclaimer.
|
|
10686
|
+
*
|
|
10687
|
+
* Redistributions in binary form must reproduce the above copyright notice,
|
|
10688
|
+
* this list of conditions and the following disclaimer in the documentation
|
|
10689
|
+
* and/or other materials provided with the distribution.
|
|
10690
|
+
*
|
|
10691
|
+
* Neither the name of the copyright holder nor the names of its
|
|
10692
|
+
* contributors may be used to endorse or promote products derived from
|
|
10693
|
+
* this software without specific prior written permission.
|
|
10694
|
+
*
|
|
10695
|
+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
10696
|
+
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
10697
|
+
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
10698
|
+
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
10699
|
+
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
10700
|
+
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
10701
|
+
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
10702
|
+
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
10703
|
+
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
10704
|
+
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
10705
|
+
*/
|
|
10706
|
+
|
|
10707
|
+
class MessageVariant_MessageVariant extends ResourceBase["default"] {}
|
|
10708
|
+
// EXTERNAL MODULE: ./src/utils/helpers.js
|
|
10709
|
+
var helpers = __webpack_require__(0);
|
|
10710
|
+
|
|
10711
|
+
// EXTERNAL MODULE: ./node_modules/case/dist/Case.js
|
|
10712
|
+
var Case = __webpack_require__(7);
|
|
10713
|
+
|
|
10714
|
+
// CONCATENATED MODULE: ./src/resources/Message.js
|
|
10715
|
+
/*
|
|
10716
|
+
* BSD 3-Clause License
|
|
10717
|
+
*
|
|
10718
|
+
* Copyright (c) 2020, Mapcreator
|
|
10719
|
+
* All rights reserved.
|
|
10720
|
+
*
|
|
10721
|
+
* Redistribution and use in source and binary forms, with or without
|
|
10722
|
+
* modification, are permitted provided that the following conditions are met:
|
|
10723
|
+
*
|
|
10724
|
+
* Redistributions of source code must retain the above copyright notice, this
|
|
10725
|
+
* list of conditions and the following disclaimer.
|
|
10726
|
+
*
|
|
10727
|
+
* Redistributions in binary form must reproduce the above copyright notice,
|
|
10728
|
+
* this list of conditions and the following disclaimer in the documentation
|
|
10729
|
+
* and/or other materials provided with the distribution.
|
|
10730
|
+
*
|
|
10731
|
+
* Neither the name of the copyright holder nor the names of its
|
|
10732
|
+
* contributors may be used to endorse or promote products derived from
|
|
10733
|
+
* this software without specific prior written permission.
|
|
10734
|
+
*
|
|
10735
|
+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
10736
|
+
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
10737
|
+
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
10738
|
+
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
10739
|
+
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
10740
|
+
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
10741
|
+
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
10742
|
+
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
10743
|
+
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
10744
|
+
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
10745
|
+
*/
|
|
10746
|
+
|
|
10747
|
+
|
|
10748
|
+
|
|
10749
|
+
|
|
10750
|
+
class Message_Message extends CrudBase["default"] {
|
|
10751
|
+
static get resourceName() {
|
|
10752
|
+
return 'messages';
|
|
10753
|
+
}
|
|
10754
|
+
|
|
10755
|
+
toObject(camelCaseKeys = false) {
|
|
10756
|
+
const superObject = super.toObject(camelCaseKeys);
|
|
10757
|
+
superObject.variants = superObject.variants.map(variant => {
|
|
10758
|
+
if (variant instanceof MessageVariant_MessageVariant) {
|
|
10759
|
+
return variant.toObject(camelCaseKeys);
|
|
10760
|
+
}
|
|
10761
|
+
|
|
10762
|
+
const caseFn = camelCaseKeys ? Case["camel"] : Case["snake"];
|
|
10763
|
+
const res = {};
|
|
10764
|
+
const fields = Object.keys(variant);
|
|
10765
|
+
|
|
10766
|
+
for (const field of fields) {
|
|
10767
|
+
res[caseFn(field)] = variant[field];
|
|
10768
|
+
}
|
|
10769
|
+
|
|
10770
|
+
return res;
|
|
10771
|
+
});
|
|
10772
|
+
return superObject;
|
|
10773
|
+
}
|
|
10774
|
+
|
|
10775
|
+
_guessType(name, value) {
|
|
10776
|
+
if (name === 'variants') {
|
|
10777
|
+
return Array.from(value).map(data => new MessageVariant_MessageVariant(this.api, data));
|
|
10778
|
+
}
|
|
10779
|
+
|
|
10780
|
+
return super._guessType(name, value);
|
|
10781
|
+
}
|
|
10782
|
+
|
|
10783
|
+
_buildCreateData() {
|
|
10784
|
+
return this.toObject();
|
|
10785
|
+
}
|
|
10786
|
+
|
|
10787
|
+
_update() {
|
|
10788
|
+
return Object(helpers["makeCancelable"])(async signal => {
|
|
10789
|
+
const json = this.toObject();
|
|
10790
|
+
await this.api.ky.patch(this.url, {
|
|
10791
|
+
json,
|
|
10792
|
+
signal
|
|
10793
|
+
}); // Reset changes
|
|
10794
|
+
|
|
10795
|
+
Object.assign(this._baseProperties, this._properties);
|
|
10796
|
+
this._properties = {};
|
|
10797
|
+
|
|
10798
|
+
if ('updated_at' in this._baseProperties) {
|
|
10799
|
+
this._baseProperties['updated_at'] = new Date();
|
|
10800
|
+
}
|
|
10801
|
+
|
|
10802
|
+
return this;
|
|
10803
|
+
});
|
|
10804
|
+
}
|
|
10805
|
+
|
|
10806
|
+
}
|
|
10807
|
+
|
|
10808
|
+
/***/ }),
|
|
10809
|
+
/* 58 */
|
|
10810
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
10811
|
+
|
|
10812
|
+
"use strict";
|
|
10813
|
+
// ESM COMPAT FLAG
|
|
10814
|
+
__webpack_require__.r(__webpack_exports__);
|
|
10815
|
+
|
|
10606
10816
|
// EXPORTS
|
|
10607
10817
|
__webpack_require__.d(__webpack_exports__, "default", function() { return /* binding */ StateContainer_StateContainer; });
|
|
10608
10818
|
|
|
@@ -10790,13 +11000,13 @@ class StateContainer_StateContainer extends StaticClass["default"] {
|
|
|
10790
11000
|
}
|
|
10791
11001
|
|
|
10792
11002
|
/***/ }),
|
|
10793
|
-
/*
|
|
11003
|
+
/* 59 */
|
|
10794
11004
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
10795
11005
|
|
|
10796
11006
|
"use strict";
|
|
10797
11007
|
__webpack_require__.r(__webpack_exports__);
|
|
10798
11008
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return ResourceLister; });
|
|
10799
|
-
/* harmony import */ var case__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
|
|
11009
|
+
/* harmony import */ var case__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(7);
|
|
10800
11010
|
/* harmony import */ var case__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(case__WEBPACK_IMPORTED_MODULE_0__);
|
|
10801
11011
|
/* harmony import */ var events__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(52);
|
|
10802
11012
|
/* harmony import */ var events__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(events__WEBPACK_IMPORTED_MODULE_1__);
|
|
@@ -11191,7 +11401,7 @@ class ResourceLister extends events__WEBPACK_IMPORTED_MODULE_1__["EventEmitter"]
|
|
|
11191
11401
|
}
|
|
11192
11402
|
|
|
11193
11403
|
/***/ }),
|
|
11194
|
-
/*
|
|
11404
|
+
/* 60 */
|
|
11195
11405
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
11196
11406
|
|
|
11197
11407
|
"use strict";
|
|
@@ -11366,7 +11576,7 @@ class OrganisationProxy extends _SimpleResourceProxy__WEBPACK_IMPORTED_MODULE_1_
|
|
|
11366
11576
|
}
|
|
11367
11577
|
|
|
11368
11578
|
/***/ }),
|
|
11369
|
-
/*
|
|
11579
|
+
/* 61 */
|
|
11370
11580
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
11371
11581
|
|
|
11372
11582
|
"use strict";
|
|
@@ -11417,7 +11627,7 @@ class Contract extends _base_CrudBase__WEBPACK_IMPORTED_MODULE_0__["default"] {
|
|
|
11417
11627
|
}
|
|
11418
11628
|
|
|
11419
11629
|
/***/ }),
|
|
11420
|
-
/*
|
|
11630
|
+
/* 62 */
|
|
11421
11631
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
11422
11632
|
|
|
11423
11633
|
"use strict";
|
|
@@ -11468,7 +11678,7 @@ class Domain extends _base_CrudBase__WEBPACK_IMPORTED_MODULE_0__["default"] {
|
|
|
11468
11678
|
}
|
|
11469
11679
|
|
|
11470
11680
|
/***/ }),
|
|
11471
|
-
/*
|
|
11681
|
+
/* 63 */
|
|
11472
11682
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
11473
11683
|
|
|
11474
11684
|
"use strict";
|
|
@@ -11480,8 +11690,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
11480
11690
|
/* harmony import */ var _JobShare__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(20);
|
|
11481
11691
|
/* harmony import */ var _Layer__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(26);
|
|
11482
11692
|
/* harmony import */ var _RequestParameters__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(3);
|
|
11483
|
-
/* harmony import */ var _utils_requests__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(
|
|
11484
|
-
/* harmony import */ var _enums__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(
|
|
11693
|
+
/* harmony import */ var _utils_requests__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(5);
|
|
11694
|
+
/* harmony import */ var _enums__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(8);
|
|
11485
11695
|
/* harmony import */ var _utils_helpers__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(0);
|
|
11486
11696
|
/*
|
|
11487
11697
|
* BSD 3-Clause License
|
|
@@ -11720,7 +11930,7 @@ class JobRevision extends _base_CrudBase__WEBPACK_IMPORTED_MODULE_1__["default"]
|
|
|
11720
11930
|
}
|
|
11721
11931
|
|
|
11722
11932
|
/***/ }),
|
|
11723
|
-
/*
|
|
11933
|
+
/* 64 */
|
|
11724
11934
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
11725
11935
|
|
|
11726
11936
|
"use strict";
|
|
@@ -11779,7 +11989,7 @@ class Language extends _base_CrudBase__WEBPACK_IMPORTED_MODULE_0__["default"] {
|
|
|
11779
11989
|
}
|
|
11780
11990
|
|
|
11781
11991
|
/***/ }),
|
|
11782
|
-
/*
|
|
11992
|
+
/* 65 */
|
|
11783
11993
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
11784
11994
|
|
|
11785
11995
|
"use strict";
|
|
@@ -11826,7 +12036,7 @@ class Notification extends _base_CrudBase__WEBPACK_IMPORTED_MODULE_0__["default"
|
|
|
11826
12036
|
}
|
|
11827
12037
|
|
|
11828
12038
|
/***/ }),
|
|
11829
|
-
/*
|
|
12039
|
+
/* 66 */
|
|
11830
12040
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
11831
12041
|
|
|
11832
12042
|
"use strict";
|
|
@@ -11896,7 +12106,7 @@ class Role extends _base_CrudBase__WEBPACK_IMPORTED_MODULE_1__["default"] {
|
|
|
11896
12106
|
}
|
|
11897
12107
|
|
|
11898
12108
|
/***/ }),
|
|
11899
|
-
/*
|
|
12109
|
+
/* 67 */
|
|
11900
12110
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
11901
12111
|
|
|
11902
12112
|
"use strict";
|
|
@@ -12016,7 +12226,7 @@ var GeoError = __webpack_require__(31);
|
|
|
12016
12226
|
|
|
12017
12227
|
|
|
12018
12228
|
/***/ }),
|
|
12019
|
-
/*
|
|
12229
|
+
/* 68 */
|
|
12020
12230
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
12021
12231
|
|
|
12022
12232
|
"use strict";
|
|
@@ -12261,7 +12471,7 @@ class Injectable extends _Trait__WEBPACK_IMPORTED_MODULE_2__["default"] {
|
|
|
12261
12471
|
}
|
|
12262
12472
|
|
|
12263
12473
|
/***/ }),
|
|
12264
|
-
/*
|
|
12474
|
+
/* 69 */
|
|
12265
12475
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
12266
12476
|
|
|
12267
12477
|
"use strict";
|
|
@@ -12287,7 +12497,7 @@ var ResourceBase = __webpack_require__(6);
|
|
|
12287
12497
|
var reflection = __webpack_require__(1);
|
|
12288
12498
|
|
|
12289
12499
|
// EXTERNAL MODULE: ./src/utils/requests.js
|
|
12290
|
-
var requests = __webpack_require__(
|
|
12500
|
+
var requests = __webpack_require__(5);
|
|
12291
12501
|
|
|
12292
12502
|
// EXTERNAL MODULE: ./src/utils/helpers.js
|
|
12293
12503
|
var helpers = __webpack_require__(0);
|
|
@@ -12489,7 +12699,7 @@ class HandlesImages_HandlesImages extends Trait["default"] {
|
|
|
12489
12699
|
}
|
|
12490
12700
|
|
|
12491
12701
|
/***/ }),
|
|
12492
|
-
/*
|
|
12702
|
+
/* 70 */
|
|
12493
12703
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
12494
12704
|
|
|
12495
12705
|
"use strict";
|
|
@@ -12686,10 +12896,10 @@ class FileDriver extends _DataStoreContract__WEBPACK_IMPORTED_MODULE_1__["defaul
|
|
|
12686
12896
|
}
|
|
12687
12897
|
|
|
12688
12898
|
/***/ }),
|
|
12689
|
-
/*
|
|
12899
|
+
/* 71 */
|
|
12690
12900
|
/***/ (function(module, exports, __webpack_require__) {
|
|
12691
12901
|
|
|
12692
|
-
var json = typeof JSON !== 'undefined' ? JSON : __webpack_require__(
|
|
12902
|
+
var json = typeof JSON !== 'undefined' ? JSON : __webpack_require__(72);
|
|
12693
12903
|
|
|
12694
12904
|
module.exports = function (obj, opts) {
|
|
12695
12905
|
if (!opts) opts = {};
|
|
@@ -12776,15 +12986,15 @@ var objectKeys = Object.keys || function (obj) {
|
|
|
12776
12986
|
|
|
12777
12987
|
|
|
12778
12988
|
/***/ }),
|
|
12779
|
-
/*
|
|
12989
|
+
/* 72 */
|
|
12780
12990
|
/***/ (function(module, exports, __webpack_require__) {
|
|
12781
12991
|
|
|
12782
|
-
exports.parse = __webpack_require__(
|
|
12783
|
-
exports.stringify = __webpack_require__(
|
|
12992
|
+
exports.parse = __webpack_require__(73);
|
|
12993
|
+
exports.stringify = __webpack_require__(74);
|
|
12784
12994
|
|
|
12785
12995
|
|
|
12786
12996
|
/***/ }),
|
|
12787
|
-
/*
|
|
12997
|
+
/* 73 */
|
|
12788
12998
|
/***/ (function(module, exports) {
|
|
12789
12999
|
|
|
12790
13000
|
var at, // The index of the current character
|
|
@@ -13063,7 +13273,7 @@ module.exports = function (source, reviver) {
|
|
|
13063
13273
|
|
|
13064
13274
|
|
|
13065
13275
|
/***/ }),
|
|
13066
|
-
/*
|
|
13276
|
+
/* 74 */
|
|
13067
13277
|
/***/ (function(module, exports) {
|
|
13068
13278
|
|
|
13069
13279
|
var cx = /[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,
|
|
@@ -13223,7 +13433,7 @@ module.exports = function (value, replacer, space) {
|
|
|
13223
13433
|
|
|
13224
13434
|
|
|
13225
13435
|
/***/ }),
|
|
13226
|
-
/*
|
|
13436
|
+
/* 75 */
|
|
13227
13437
|
/***/ (function(module, exports) {
|
|
13228
13438
|
|
|
13229
13439
|
/* eslint-env browser */
|
|
@@ -13231,7 +13441,7 @@ module.exports = typeof self == 'object' ? self.FormData : window.FormData;
|
|
|
13231
13441
|
|
|
13232
13442
|
|
|
13233
13443
|
/***/ }),
|
|
13234
|
-
/*
|
|
13444
|
+
/* 76 */
|
|
13235
13445
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
13236
13446
|
|
|
13237
13447
|
"use strict";
|
|
@@ -13287,7 +13497,7 @@ var StorageManager = __webpack_require__(19);
|
|
|
13287
13497
|
var Enum = __webpack_require__(22);
|
|
13288
13498
|
|
|
13289
13499
|
// EXTERNAL MODULE: ./src/enums/index.js + 3 modules
|
|
13290
|
-
var enums = __webpack_require__(
|
|
13500
|
+
var enums = __webpack_require__(8);
|
|
13291
13501
|
|
|
13292
13502
|
// EXTERNAL MODULE: ./src/oauth/OAuth.js
|
|
13293
13503
|
var OAuth = __webpack_require__(23);
|
|
@@ -13296,10 +13506,10 @@ var OAuth = __webpack_require__(23);
|
|
|
13296
13506
|
var OAuthToken = __webpack_require__(15);
|
|
13297
13507
|
|
|
13298
13508
|
// EXTERNAL MODULE: ./src/oauth/StateContainer.js + 1 modules
|
|
13299
|
-
var StateContainer = __webpack_require__(
|
|
13509
|
+
var StateContainer = __webpack_require__(58);
|
|
13300
13510
|
|
|
13301
13511
|
// EXTERNAL MODULE: ./src/utils/requests.js
|
|
13302
|
-
var requests = __webpack_require__(
|
|
13512
|
+
var requests = __webpack_require__(5);
|
|
13303
13513
|
|
|
13304
13514
|
// EXTERNAL MODULE: ./src/errors/OAuthError.js
|
|
13305
13515
|
var OAuthError = __webpack_require__(17);
|
|
@@ -13308,7 +13518,7 @@ var OAuthError = __webpack_require__(17);
|
|
|
13308
13518
|
var node = __webpack_require__(13);
|
|
13309
13519
|
|
|
13310
13520
|
// EXTERNAL MODULE: ./node_modules/case/dist/Case.js
|
|
13311
|
-
var Case = __webpack_require__(
|
|
13521
|
+
var Case = __webpack_require__(7);
|
|
13312
13522
|
|
|
13313
13523
|
// CONCATENATED MODULE: ./src/oauth/ImplicitFlow.js
|
|
13314
13524
|
/*
|
|
@@ -13845,22 +14055,22 @@ var ValidationError = __webpack_require__(35);
|
|
|
13845
14055
|
var StaticClassError = __webpack_require__(34);
|
|
13846
14056
|
|
|
13847
14057
|
// EXTERNAL MODULE: ./src/resources/index.js + 7 modules
|
|
13848
|
-
var resources = __webpack_require__(
|
|
14058
|
+
var resources = __webpack_require__(4);
|
|
13849
14059
|
|
|
13850
14060
|
// EXTERNAL MODULE: ./src/ResourceLister.js
|
|
13851
|
-
var ResourceLister = __webpack_require__(
|
|
14061
|
+
var ResourceLister = __webpack_require__(59);
|
|
13852
14062
|
|
|
13853
14063
|
// EXTERNAL MODULE: ./src/utils/geo.js
|
|
13854
14064
|
var geo = __webpack_require__(56);
|
|
13855
14065
|
|
|
13856
14066
|
// EXTERNAL MODULE: ./src/errors/index.js + 1 modules
|
|
13857
|
-
var errors = __webpack_require__(
|
|
14067
|
+
var errors = __webpack_require__(67);
|
|
13858
14068
|
|
|
13859
14069
|
// EXTERNAL MODULE: ./src/proxy/GeoResourceProxy.js
|
|
13860
14070
|
var GeoResourceProxy = __webpack_require__(32);
|
|
13861
14071
|
|
|
13862
14072
|
// EXTERNAL MODULE: ./src/proxy/OrganisationProxy.js
|
|
13863
|
-
var OrganisationProxy = __webpack_require__(
|
|
14073
|
+
var OrganisationProxy = __webpack_require__(60);
|
|
13864
14074
|
|
|
13865
14075
|
// EXTERNAL MODULE: ./src/proxy/OwnedResourceProxy.js
|
|
13866
14076
|
var OwnedResourceProxy = __webpack_require__(12);
|
|
@@ -13998,7 +14208,7 @@ var SimpleResourceProxy = __webpack_require__(16);
|
|
|
13998
14208
|
* @private
|
|
13999
14209
|
*/
|
|
14000
14210
|
|
|
14001
|
-
const version = "v2.
|
|
14211
|
+
const version = "v2.6.1";
|
|
14002
14212
|
|
|
14003
14213
|
/***/ })
|
|
14004
14214
|
/******/ ]);
|