@mapcreator/api 2.8.0 → 3.0.0
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/ImageHandler.d.ts +56 -0
- package/dist/Mapcreator.d.ts +338 -0
- package/dist/PaginatedResourceListing.d.ts +156 -0
- package/dist/RequestParameters.d.ts +241 -0
- package/dist/ResourceLister.d.ts +155 -0
- package/dist/bundle.browser.js +1264 -1253
- package/dist/bundle.browser.min.js +1 -1
- package/dist/bundle.browser.min.js.LICENSE.txt +2 -2
- package/dist/bundle.js +1263 -1252
- package/dist/bundle.min.js +1 -1
- package/dist/bundle.min.js.LICENSE.txt +1 -1
- package/dist/enums/DeletedState.d.ts +16 -0
- package/dist/enums/Enum.d.ts +40 -0
- package/dist/enums/JobShareVisibility.d.ts +15 -0
- package/dist/enums/ResultStatus.d.ts +17 -0
- package/dist/enums/index.d.ts +5 -0
- package/dist/errors/AbstractError.d.ts +26 -0
- package/dist/errors/ApiError.d.ts +65 -0
- package/dist/errors/GeoError.d.ts +6 -0
- package/dist/errors/NodeError.d.ts +6 -0
- package/dist/errors/OAuthError.d.ts +17 -0
- package/dist/errors/StaticClassError.d.ts +7 -0
- package/dist/errors/ValidationError.d.ts +125 -0
- package/dist/errors/index.d.ts +8 -0
- package/dist/index.d.ts +27 -0
- package/dist/oauth/DummyFlow.d.ts +19 -0
- package/dist/oauth/ImplicitFlow.d.ts +68 -0
- package/dist/oauth/ImplicitFlowPopup.d.ts +25 -0
- package/dist/oauth/OAuth.d.ts +50 -0
- package/dist/oauth/OAuthToken.d.ts +67 -0
- package/dist/oauth/PasswordFlow.d.ts +56 -0
- package/dist/oauth/StateContainer.d.ts +36 -0
- package/dist/proxy/GeoResourceProxy.d.ts +69 -0
- package/dist/proxy/OrganisationProxy.d.ts +62 -0
- package/dist/proxy/OwnedResourceProxy.d.ts +60 -0
- package/dist/proxy/ResourceProxy.d.ts +32 -0
- package/dist/proxy/SimpleResourceProxy.d.ts +76 -0
- package/dist/proxy/index.d.ts +6 -0
- package/dist/resources/Choropleth.d.ts +20 -0
- package/dist/resources/Color.d.ts +9 -0
- package/dist/resources/Contract.d.ts +7 -0
- package/dist/resources/Dimension.d.ts +7 -0
- package/dist/resources/DimensionSet.d.ts +11 -0
- package/dist/resources/Domain.d.ts +7 -0
- package/dist/resources/Faq.d.ts +7 -0
- package/dist/resources/Feature.d.ts +9 -0
- package/dist/resources/Font.d.ts +4 -0
- package/dist/resources/FontFamily.d.ts +11 -0
- package/dist/resources/Highlight.d.ts +4 -0
- package/dist/resources/InsetMap.d.ts +10 -0
- package/dist/resources/Job.d.ts +56 -0
- package/dist/resources/JobResult.d.ts +76 -0
- package/dist/resources/JobRevision.d.ts +64 -0
- package/dist/resources/JobShare.d.ts +15 -0
- package/dist/resources/JobType.d.ts +9 -0
- package/dist/resources/Language.d.ts +4 -0
- package/dist/resources/Layer.d.ts +10 -0
- package/dist/resources/LayerFaq.d.ts +8 -0
- package/dist/resources/LayerGroup.d.ts +14 -0
- package/dist/resources/Mapstyle.d.ts +8 -0
- package/dist/resources/MapstyleSet.d.ts +13 -0
- package/dist/resources/MapstyleSetColor.d.ts +8 -0
- package/dist/resources/Message.d.ts +7 -0
- package/dist/resources/MessageVariant.d.ts +4 -0
- package/dist/resources/Notification.d.ts +4 -0
- package/dist/resources/Organisation.d.ts +97 -0
- package/dist/resources/Permission.d.ts +4 -0
- package/dist/resources/ProductTour.d.ts +10 -0
- package/dist/resources/ProductTourStep.d.ts +7 -0
- package/dist/resources/Role.d.ts +14 -0
- package/dist/resources/Svg.d.ts +4 -0
- package/dist/resources/SvgSet.d.ts +11 -0
- package/dist/resources/Tag.d.ts +9 -0
- package/dist/resources/TagType.d.ts +13 -0
- package/dist/resources/User.d.ts +119 -0
- package/dist/resources/VectorChoropleth.d.ts +4 -0
- package/dist/resources/VectorHighlight.d.ts +4 -0
- package/dist/resources/base/CrudBase.d.ts +65 -0
- package/dist/resources/base/CrudBase.d.ts.map +1 -0
- package/dist/resources/base/CrudSetBase.d.ts +27 -0
- package/dist/resources/base/CrudSetBase.d.ts.map +1 -0
- package/dist/resources/base/CrudSetItemBase.d.ts +19 -0
- package/dist/resources/base/CrudSetItemBase.d.ts.map +1 -0
- package/dist/resources/base/DownloadedResource.d.ts +72 -0
- package/dist/resources/base/DownloadedResource.d.ts.map +1 -0
- package/dist/resources/base/ResourceBase.d.ts +162 -0
- package/dist/resources/base/ResourceBase.d.ts.map +1 -0
- package/dist/resources/index.d.ts +45 -0
- package/dist/storage/CookiesDriver.d.ts +37 -0
- package/dist/storage/DataStoreContract.d.ts +46 -0
- package/dist/storage/DummyDriver.d.ts +15 -0
- package/dist/storage/FileDriver.d.ts +54 -0
- package/dist/storage/LocalStorageDriver.d.ts +13 -0
- package/dist/storage/StorageManager.d.ts +46 -0
- package/dist/traits/HandlesImages.d.ts +15 -0
- package/dist/traits/Injectable.d.ts +60 -0
- package/dist/traits/OwnableResource.d.ts +18 -0
- package/dist/traits/Trait.d.ts +12 -0
- package/dist/utils/Logger.d.ts +55 -0
- package/dist/utils/Singleton.d.ts +9 -0
- package/dist/utils/StaticClass.d.ts +7 -0
- package/dist/utils/Unobservable.d.ts +13 -0
- package/dist/utils/base64.d.ts +12 -0
- package/dist/utils/geo.d.ts +74 -0
- package/dist/utils/hash.d.ts +15 -0
- package/dist/utils/helpers.d.ts +47 -0
- package/dist/utils/node.d.ts +15 -0
- package/dist/utils/reflection.d.ts +43 -0
- package/dist/utils/requests.d.ts +24 -0
- package/dist/utils/uuid.d.ts +19 -0
- package/package.json +4 -1
- package/src/Mapcreator.js +53 -33
- package/src/enums/index.js +1 -1
- package/src/errors/index.js +6 -6
- package/src/index.js +14 -14
- package/src/proxy/index.js +5 -5
- package/src/resources/LayerFaq.js +47 -0
- package/src/resources/LayerGroup.js +1 -1
- package/src/resources/index.js +36 -35
- package/dist/bundle.browser.js.map +0 -1
- package/dist/bundle.browser.min.js.map +0 -1
- package/dist/bundle.js.map +0 -1
- package/dist/bundle.min.js.map +0 -1
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:98130e43e661d32774d4, chunkhash:d61d2a0248e2844d3b5f, name:bundle.browser, version:v3.0.0
|
|
33
33
|
*/
|
|
34
34
|
/*!
|
|
35
35
|
* This bundle contains the following packages:
|
|
36
|
-
* └─ @mapcreator/api (
|
|
36
|
+
* └─ @mapcreator/api (3.0.0) ── 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
|
|
@@ -737,16 +737,58 @@ class CrudBase extends _ResourceBase__WEBPACK_IMPORTED_MODULE_1__["default"] {
|
|
|
737
737
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
738
738
|
|
|
739
739
|
"use strict";
|
|
740
|
+
// ESM COMPAT FLAG
|
|
740
741
|
__webpack_require__.r(__webpack_exports__);
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
742
|
+
|
|
743
|
+
// EXPORTS
|
|
744
|
+
__webpack_require__.d(__webpack_exports__, "Choropleth", function() { return /* reexport */ Choropleth_Choropleth; });
|
|
745
|
+
__webpack_require__.d(__webpack_exports__, "Color", function() { return /* reexport */ Color["default"]; });
|
|
746
|
+
__webpack_require__.d(__webpack_exports__, "Contract", function() { return /* reexport */ Contract["default"]; });
|
|
747
|
+
__webpack_require__.d(__webpack_exports__, "Dimension", function() { return /* reexport */ Dimension["default"]; });
|
|
748
|
+
__webpack_require__.d(__webpack_exports__, "DimensionSet", function() { return /* reexport */ DimensionSet["default"]; });
|
|
749
|
+
__webpack_require__.d(__webpack_exports__, "Domain", function() { return /* reexport */ Domain["default"]; });
|
|
750
|
+
__webpack_require__.d(__webpack_exports__, "Faq", function() { return /* reexport */ Faq_Faq; });
|
|
751
|
+
__webpack_require__.d(__webpack_exports__, "Feature", function() { return /* reexport */ Feature["default"]; });
|
|
752
|
+
__webpack_require__.d(__webpack_exports__, "Font", function() { return /* reexport */ Font["default"]; });
|
|
753
|
+
__webpack_require__.d(__webpack_exports__, "FontFamily", function() { return /* reexport */ FontFamily["default"]; });
|
|
754
|
+
__webpack_require__.d(__webpack_exports__, "Highlight", function() { return /* reexport */ Highlight_Highlight; });
|
|
755
|
+
__webpack_require__.d(__webpack_exports__, "InsetMap", function() { return /* reexport */ InsetMap_InsetMap; });
|
|
756
|
+
__webpack_require__.d(__webpack_exports__, "Job", function() { return /* reexport */ Job["default"]; });
|
|
757
|
+
__webpack_require__.d(__webpack_exports__, "JobResult", function() { return /* reexport */ JobResult["default"]; });
|
|
758
|
+
__webpack_require__.d(__webpack_exports__, "JobRevision", function() { return /* reexport */ JobRevision["default"]; });
|
|
759
|
+
__webpack_require__.d(__webpack_exports__, "JobShare", function() { return /* reexport */ JobShare["default"]; });
|
|
760
|
+
__webpack_require__.d(__webpack_exports__, "JobType", function() { return /* reexport */ JobType["default"]; });
|
|
761
|
+
__webpack_require__.d(__webpack_exports__, "Language", function() { return /* reexport */ Language["default"]; });
|
|
762
|
+
__webpack_require__.d(__webpack_exports__, "Layer", function() { return /* reexport */ Layer["default"]; });
|
|
763
|
+
__webpack_require__.d(__webpack_exports__, "LayerFaq", function() { return /* reexport */ LayerFaq_LayerFaq; });
|
|
764
|
+
__webpack_require__.d(__webpack_exports__, "Mapstyle", function() { return /* reexport */ Mapstyle["default"]; });
|
|
765
|
+
__webpack_require__.d(__webpack_exports__, "MapstyleSet", function() { return /* reexport */ MapstyleSet["default"]; });
|
|
766
|
+
__webpack_require__.d(__webpack_exports__, "Message", function() { return /* reexport */ Message["default"]; });
|
|
767
|
+
__webpack_require__.d(__webpack_exports__, "Notification", function() { return /* reexport */ Notification["default"]; });
|
|
768
|
+
__webpack_require__.d(__webpack_exports__, "Organisation", function() { return /* reexport */ Organisation["default"]; });
|
|
769
|
+
__webpack_require__.d(__webpack_exports__, "Permission", function() { return /* reexport */ Permission["default"]; });
|
|
770
|
+
__webpack_require__.d(__webpack_exports__, "ProductTour", function() { return /* reexport */ ProductTour_ProductTour; });
|
|
771
|
+
__webpack_require__.d(__webpack_exports__, "ProductTourStep", function() { return /* reexport */ ProductTourStep_ProductTourStep; });
|
|
772
|
+
__webpack_require__.d(__webpack_exports__, "Role", function() { return /* reexport */ Role["default"]; });
|
|
773
|
+
__webpack_require__.d(__webpack_exports__, "Svg", function() { return /* reexport */ Svg["default"]; });
|
|
774
|
+
__webpack_require__.d(__webpack_exports__, "SvgSet", function() { return /* reexport */ SvgSet["default"]; });
|
|
775
|
+
__webpack_require__.d(__webpack_exports__, "Tag", function() { return /* reexport */ Tag["default"]; });
|
|
776
|
+
__webpack_require__.d(__webpack_exports__, "TagType", function() { return /* reexport */ TagType_TagType; });
|
|
777
|
+
__webpack_require__.d(__webpack_exports__, "User", function() { return /* reexport */ User["default"]; });
|
|
778
|
+
__webpack_require__.d(__webpack_exports__, "VectorHighlight", function() { return /* reexport */ VectorHighlight_VectorHighlight; });
|
|
779
|
+
__webpack_require__.d(__webpack_exports__, "VectorChoropleth", function() { return /* reexport */ VectorChoropleth_VectorChoropleth; });
|
|
780
|
+
__webpack_require__.d(__webpack_exports__, "base", function() { return /* binding */ base; });
|
|
781
|
+
|
|
782
|
+
// EXTERNAL MODULE: ./src/resources/base/DownloadedResource.js + 1 modules
|
|
783
|
+
var DownloadedResource = __webpack_require__(23);
|
|
784
|
+
|
|
785
|
+
// EXTERNAL MODULE: ./src/resources/base/ResourceBase.js
|
|
786
|
+
var ResourceBase = __webpack_require__(6);
|
|
787
|
+
|
|
788
|
+
// EXTERNAL MODULE: ./src/utils/helpers.js
|
|
789
|
+
var helpers = __webpack_require__(0);
|
|
790
|
+
|
|
791
|
+
// CONCATENATED MODULE: ./src/resources/Choropleth.js
|
|
750
792
|
/*
|
|
751
793
|
* BSD 3-Clause License
|
|
752
794
|
*
|
|
@@ -781,750 +823,649 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
781
823
|
|
|
782
824
|
|
|
783
825
|
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
826
|
/**
|
|
788
|
-
*
|
|
789
|
-
*
|
|
790
|
-
* @fires RequestParameters#change
|
|
791
|
-
* @fires RequestParameters#change:page
|
|
792
|
-
* @fires RequestParameters#change:perPage
|
|
793
|
-
* @fires RequestParameters#change:search
|
|
794
|
-
* @fires RequestParameters#change:sort
|
|
795
|
-
* @fires RequestParameters#change:deleted
|
|
796
|
-
* @fires RequestParameters#change:extra
|
|
827
|
+
* Choropleth resource
|
|
797
828
|
*/
|
|
798
829
|
|
|
799
|
-
class
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
* @param {Object} object - properties
|
|
803
|
-
*/
|
|
804
|
-
constructor(object = {}) {
|
|
805
|
-
super(); // Apply defaults
|
|
806
|
-
|
|
807
|
-
RequestParameters.keys().forEach(x => this._resolve(x)); // Apply properties
|
|
808
|
-
|
|
809
|
-
this.apply(object);
|
|
810
|
-
} // region instance
|
|
811
|
-
// region instance getters
|
|
812
|
-
|
|
813
|
-
/**
|
|
814
|
-
* Get page number
|
|
815
|
-
* @returns {Number} - Page number
|
|
816
|
-
* @throws {TypeError}
|
|
817
|
-
*/
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
get page() {
|
|
821
|
-
return this._resolve('page');
|
|
822
|
-
}
|
|
823
|
-
/**
|
|
824
|
-
* Get rows per page
|
|
825
|
-
* @returns {Number} - Per page
|
|
826
|
-
* @throws {TypeError}
|
|
827
|
-
*/
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
get perPage() {
|
|
831
|
-
return this._resolve('perPage');
|
|
832
|
-
}
|
|
833
|
-
/**
|
|
834
|
-
* Get pagination offset
|
|
835
|
-
* @returns {Number} - Offset
|
|
836
|
-
* @throws {TypeError}
|
|
837
|
-
*/
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
get offset() {
|
|
841
|
-
return this._resolve('offset');
|
|
842
|
-
}
|
|
843
|
-
/**
|
|
844
|
-
* Search query
|
|
845
|
-
* @returns {Object<String, String|Array<String>>} - Query
|
|
846
|
-
* @throws {TypeError}
|
|
847
|
-
*/
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
get search() {
|
|
851
|
-
return this._resolve('search');
|
|
830
|
+
class Choropleth_Choropleth extends ResourceBase["default"] {
|
|
831
|
+
static get resourceName() {
|
|
832
|
+
return 'choropleths';
|
|
852
833
|
}
|
|
853
834
|
/**
|
|
854
|
-
* Get
|
|
855
|
-
* @returns {
|
|
856
|
-
* @throws {
|
|
835
|
+
* Get the inset map json
|
|
836
|
+
* @returns {CancelablePromise<Object>} - Choropleth json
|
|
837
|
+
* @throws {ApiError} - If the api returns errors
|
|
857
838
|
*/
|
|
858
839
|
|
|
859
840
|
|
|
860
|
-
|
|
861
|
-
return this.
|
|
841
|
+
getJson() {
|
|
842
|
+
return Object(helpers["makeCancelable"])(signal => this.api.ky.get(`${this.url}/json`, {
|
|
843
|
+
signal
|
|
844
|
+
}).json());
|
|
862
845
|
}
|
|
863
846
|
/**
|
|
864
|
-
*
|
|
865
|
-
* @returns {
|
|
866
|
-
* @
|
|
847
|
+
* Download the choropleth preview
|
|
848
|
+
* @returns {CancelablePromise<DownloadedResource>} - Choropleth preview
|
|
849
|
+
* @throws {ApiError} - If the api returns errors
|
|
867
850
|
*/
|
|
868
851
|
|
|
869
852
|
|
|
870
|
-
|
|
871
|
-
return
|
|
853
|
+
downloadPreview() {
|
|
854
|
+
return Object(helpers["makeCancelable"])(async signal => {
|
|
855
|
+
const response = await this.api.ky.get(`${this.url}/preview`, {
|
|
856
|
+
signal
|
|
857
|
+
});
|
|
858
|
+
return DownloadedResource["default"].fromResponse(response);
|
|
859
|
+
});
|
|
872
860
|
}
|
|
873
|
-
/**
|
|
874
|
-
* Extra parameters
|
|
875
|
-
* @returns {Object} - Extra parameters
|
|
876
|
-
*/
|
|
877
861
|
|
|
862
|
+
}
|
|
863
|
+
// EXTERNAL MODULE: ./src/resources/Color.js
|
|
864
|
+
var Color = __webpack_require__(36);
|
|
878
865
|
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
} // endregion instance getters
|
|
882
|
-
// region instance setters
|
|
866
|
+
// EXTERNAL MODULE: ./src/resources/Contract.js
|
|
867
|
+
var Contract = __webpack_require__(61);
|
|
883
868
|
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
* @param {Number} value - Page number
|
|
887
|
-
*/
|
|
869
|
+
// EXTERNAL MODULE: ./src/resources/Dimension.js
|
|
870
|
+
var Dimension = __webpack_require__(38);
|
|
888
871
|
|
|
872
|
+
// EXTERNAL MODULE: ./src/resources/DimensionSet.js
|
|
873
|
+
var DimensionSet = __webpack_require__(37);
|
|
889
874
|
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
}
|
|
893
|
-
/**
|
|
894
|
-
* Rows per page
|
|
895
|
-
* @param {Number} value - Per page
|
|
896
|
-
*/
|
|
875
|
+
// EXTERNAL MODULE: ./src/resources/Domain.js
|
|
876
|
+
var Domain = __webpack_require__(62);
|
|
897
877
|
|
|
878
|
+
// EXTERNAL MODULE: ./src/resources/base/CrudBase.js
|
|
879
|
+
var CrudBase = __webpack_require__(2);
|
|
898
880
|
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
881
|
+
// CONCATENATED MODULE: ./src/resources/Faq.js
|
|
882
|
+
/*
|
|
883
|
+
* BSD 3-Clause License
|
|
884
|
+
*
|
|
885
|
+
* Copyright (c) 2020, Mapcreator
|
|
886
|
+
* All rights reserved.
|
|
887
|
+
*
|
|
888
|
+
* Redistribution and use in source and binary forms, with or without
|
|
889
|
+
* modification, are permitted provided that the following conditions are met:
|
|
890
|
+
*
|
|
891
|
+
* Redistributions of source code must retain the above copyright notice, this
|
|
892
|
+
* list of conditions and the following disclaimer.
|
|
893
|
+
*
|
|
894
|
+
* Redistributions in binary form must reproduce the above copyright notice,
|
|
895
|
+
* this list of conditions and the following disclaimer in the documentation
|
|
896
|
+
* and/or other materials provided with the distribution.
|
|
897
|
+
*
|
|
898
|
+
* Neither the name of the copyright holder nor the names of its
|
|
899
|
+
* contributors may be used to endorse or promote products derived from
|
|
900
|
+
* this software without specific prior written permission.
|
|
901
|
+
*
|
|
902
|
+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
903
|
+
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
904
|
+
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
905
|
+
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
906
|
+
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
907
|
+
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
908
|
+
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
909
|
+
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
910
|
+
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
911
|
+
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
912
|
+
*/
|
|
906
913
|
|
|
914
|
+
/**
|
|
915
|
+
* Faq resource
|
|
916
|
+
*/
|
|
907
917
|
|
|
908
|
-
|
|
909
|
-
|
|
918
|
+
class Faq_Faq extends CrudBase["default"] {
|
|
919
|
+
static get resourceName() {
|
|
920
|
+
return 'faqs';
|
|
910
921
|
}
|
|
911
|
-
/**
|
|
912
|
-
* Search query
|
|
913
|
-
* @param {Object<String, String|Array<String>>} value - Search query
|
|
914
|
-
*/
|
|
915
922
|
|
|
923
|
+
}
|
|
924
|
+
// EXTERNAL MODULE: ./src/resources/Feature.js
|
|
925
|
+
var Feature = __webpack_require__(39);
|
|
916
926
|
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
}
|
|
920
|
-
/**
|
|
921
|
-
* Sort query
|
|
922
|
-
* @param {Array<String>} value - Sort query
|
|
923
|
-
*/
|
|
927
|
+
// EXTERNAL MODULE: ./src/resources/Font.js
|
|
928
|
+
var Font = __webpack_require__(41);
|
|
924
929
|
|
|
930
|
+
// EXTERNAL MODULE: ./src/resources/FontFamily.js
|
|
931
|
+
var FontFamily = __webpack_require__(40);
|
|
925
932
|
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
933
|
+
// CONCATENATED MODULE: ./src/resources/Highlight.js
|
|
934
|
+
/*
|
|
935
|
+
* BSD 3-Clause License
|
|
936
|
+
*
|
|
937
|
+
* Copyright (c) 2020, Mapcreator
|
|
938
|
+
* All rights reserved.
|
|
939
|
+
*
|
|
940
|
+
* Redistribution and use in source and binary forms, with or without
|
|
941
|
+
* modification, are permitted provided that the following conditions are met:
|
|
942
|
+
*
|
|
943
|
+
* Redistributions of source code must retain the above copyright notice, this
|
|
944
|
+
* list of conditions and the following disclaimer.
|
|
945
|
+
*
|
|
946
|
+
* Redistributions in binary form must reproduce the above copyright notice,
|
|
947
|
+
* this list of conditions and the following disclaimer in the documentation
|
|
948
|
+
* and/or other materials provided with the distribution.
|
|
949
|
+
*
|
|
950
|
+
* Neither the name of the copyright holder nor the names of its
|
|
951
|
+
* contributors may be used to endorse or promote products derived from
|
|
952
|
+
* this software without specific prior written permission.
|
|
953
|
+
*
|
|
954
|
+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
955
|
+
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
956
|
+
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
957
|
+
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
958
|
+
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
959
|
+
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
960
|
+
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
961
|
+
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
962
|
+
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
963
|
+
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
964
|
+
*/
|
|
935
965
|
|
|
936
|
-
|
|
937
|
-
|
|
966
|
+
class Highlight_Highlight extends ResourceBase["default"] {
|
|
967
|
+
static get resourceName() {
|
|
968
|
+
return 'highlights';
|
|
938
969
|
}
|
|
939
|
-
/**
|
|
940
|
-
* Extra request parameters
|
|
941
|
-
* @param {Object} value - Extra request parameters
|
|
942
|
-
*/
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
set extra(value) {
|
|
946
|
-
this._update('extra', value);
|
|
947
|
-
} // endregion instance setters
|
|
948
|
-
// endregion instance
|
|
949
|
-
// region static
|
|
950
|
-
// region getters
|
|
951
|
-
|
|
952
|
-
/**
|
|
953
|
-
* Default page number
|
|
954
|
-
* @returns {Number} - Page number
|
|
955
|
-
*/
|
|
956
|
-
|
|
957
970
|
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
971
|
+
}
|
|
972
|
+
// CONCATENATED MODULE: ./src/resources/InsetMap.js
|
|
973
|
+
/*
|
|
974
|
+
* BSD 3-Clause License
|
|
975
|
+
*
|
|
976
|
+
* Copyright (c) 2020, Mapcreator
|
|
977
|
+
* All rights reserved.
|
|
978
|
+
*
|
|
979
|
+
* Redistribution and use in source and binary forms, with or without
|
|
980
|
+
* modification, are permitted provided that the following conditions are met:
|
|
981
|
+
*
|
|
982
|
+
* Redistributions of source code must retain the above copyright notice, this
|
|
983
|
+
* list of conditions and the following disclaimer.
|
|
984
|
+
*
|
|
985
|
+
* Redistributions in binary form must reproduce the above copyright notice,
|
|
986
|
+
* this list of conditions and the following disclaimer in the documentation
|
|
987
|
+
* and/or other materials provided with the distribution.
|
|
988
|
+
*
|
|
989
|
+
* Neither the name of the copyright holder nor the names of its
|
|
990
|
+
* contributors may be used to endorse or promote products derived from
|
|
991
|
+
* this software without specific prior written permission.
|
|
992
|
+
*
|
|
993
|
+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
994
|
+
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
995
|
+
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
996
|
+
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
997
|
+
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
998
|
+
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
999
|
+
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
1000
|
+
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
1001
|
+
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
1002
|
+
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
1003
|
+
*/
|
|
965
1004
|
|
|
966
1005
|
|
|
967
|
-
|
|
968
|
-
|
|
1006
|
+
class InsetMap_InsetMap extends ResourceBase["default"] {
|
|
1007
|
+
static get resourceName() {
|
|
1008
|
+
return 'inset-maps';
|
|
969
1009
|
}
|
|
970
1010
|
/**
|
|
971
|
-
*
|
|
972
|
-
* @returns {
|
|
1011
|
+
* Get the inset map json
|
|
1012
|
+
* @returns {CancelablePromise<Object>} - Inset map json
|
|
1013
|
+
* @throws {ApiError} - If the api returns errors
|
|
973
1014
|
*/
|
|
974
1015
|
|
|
975
1016
|
|
|
976
|
-
|
|
977
|
-
return
|
|
1017
|
+
getJson() {
|
|
1018
|
+
return Object(helpers["makeCancelable"])(signal => this.api.ky.get(`${this.url}/json`, {
|
|
1019
|
+
signal
|
|
1020
|
+
}).json());
|
|
978
1021
|
}
|
|
979
|
-
/**
|
|
980
|
-
* Gets the maximum allowed value for perPage
|
|
981
|
-
* Some users will have a special permission that allows them to fetch more than 50 resources at once
|
|
982
|
-
* @returns {Number} - Maximum amount of resources per page
|
|
983
|
-
*/
|
|
984
|
-
|
|
985
1022
|
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
/**
|
|
990
|
-
* Default search query
|
|
991
|
-
* @returns {Object<String, String|Array<String>>} - Search query
|
|
992
|
-
*/
|
|
1023
|
+
}
|
|
1024
|
+
// EXTERNAL MODULE: ./src/resources/Job.js
|
|
1025
|
+
var Job = __webpack_require__(42);
|
|
993
1026
|
|
|
1027
|
+
// EXTERNAL MODULE: ./src/resources/JobResult.js
|
|
1028
|
+
var JobResult = __webpack_require__(33);
|
|
994
1029
|
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
}
|
|
998
|
-
/**
|
|
999
|
-
* Default sort query
|
|
1000
|
-
* @returns {Array<String>} - Sort query
|
|
1001
|
-
*/
|
|
1030
|
+
// EXTERNAL MODULE: ./src/resources/JobRevision.js
|
|
1031
|
+
var JobRevision = __webpack_require__(63);
|
|
1002
1032
|
|
|
1033
|
+
// EXTERNAL MODULE: ./src/resources/JobShare.js
|
|
1034
|
+
var JobShare = __webpack_require__(21);
|
|
1003
1035
|
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
}
|
|
1007
|
-
/**
|
|
1008
|
-
* Default deleted items filter state
|
|
1009
|
-
* @returns {String|undefined} - Deleted items filter state
|
|
1010
|
-
*/
|
|
1036
|
+
// EXTERNAL MODULE: ./src/resources/JobType.js
|
|
1037
|
+
var JobType = __webpack_require__(43);
|
|
1011
1038
|
|
|
1039
|
+
// EXTERNAL MODULE: ./src/resources/Language.js
|
|
1040
|
+
var Language = __webpack_require__(64);
|
|
1012
1041
|
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
}
|
|
1016
|
-
/**
|
|
1017
|
-
* Default extra request parameters
|
|
1018
|
-
* @returns {Object} - Extra request parameters
|
|
1019
|
-
*/
|
|
1042
|
+
// EXTERNAL MODULE: ./src/resources/Layer.js
|
|
1043
|
+
var Layer = __webpack_require__(22);
|
|
1020
1044
|
|
|
1045
|
+
// EXTERNAL MODULE: ./src/resources/base/CrudSetItemBase.js
|
|
1046
|
+
var CrudSetItemBase = __webpack_require__(14);
|
|
1021
1047
|
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1048
|
+
// CONCATENATED MODULE: ./src/resources/LayerFaq.js
|
|
1049
|
+
/*
|
|
1050
|
+
* BSD 3-Clause License
|
|
1051
|
+
*
|
|
1052
|
+
* Copyright (c) 2022, Mapcreator
|
|
1053
|
+
* All rights reserved.
|
|
1054
|
+
*
|
|
1055
|
+
* Redistribution and use in source and binary forms, with or without
|
|
1056
|
+
* modification, are permitted provided that the following conditions are met:
|
|
1057
|
+
*
|
|
1058
|
+
* Redistributions of source code must retain the above copyright notice, this
|
|
1059
|
+
* list of conditions and the following disclaimer.
|
|
1060
|
+
*
|
|
1061
|
+
* Redistributions in binary form must reproduce the above copyright notice,
|
|
1062
|
+
* this list of conditions and the following disclaimer in the documentation
|
|
1063
|
+
* and/or other materials provided with the distribution.
|
|
1064
|
+
*
|
|
1065
|
+
* Neither the name of the copyright holder nor the names of its
|
|
1066
|
+
* contributors may be used to endorse or promote products derived from
|
|
1067
|
+
* this software without specific prior written permission.
|
|
1068
|
+
*
|
|
1069
|
+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
1070
|
+
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
1071
|
+
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
1072
|
+
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
1073
|
+
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
1074
|
+
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
1075
|
+
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
1076
|
+
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
1077
|
+
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
1078
|
+
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
1079
|
+
*/
|
|
1026
1080
|
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1081
|
+
/**
|
|
1082
|
+
* LayerFaq
|
|
1083
|
+
* @extends CrudSetItemBase
|
|
1084
|
+
*/
|
|
1031
1085
|
|
|
1086
|
+
class LayerFaq_LayerFaq extends CrudSetItemBase["default"] {
|
|
1087
|
+
static get resourceName() {
|
|
1088
|
+
return 'layer-faqs';
|
|
1089
|
+
}
|
|
1032
1090
|
|
|
1033
|
-
static
|
|
1034
|
-
|
|
1091
|
+
static get parentKey() {
|
|
1092
|
+
return 'layer_group_id';
|
|
1035
1093
|
}
|
|
1036
|
-
/**
|
|
1037
|
-
* Default per page
|
|
1038
|
-
* @param {Number} value - Per page
|
|
1039
|
-
*/
|
|
1040
1094
|
|
|
1095
|
+
}
|
|
1096
|
+
// EXTERNAL MODULE: ./src/resources/Mapstyle.js
|
|
1097
|
+
var Mapstyle = __webpack_require__(44);
|
|
1041
1098
|
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
}
|
|
1045
|
-
/**
|
|
1046
|
-
* Default pagination offset
|
|
1047
|
-
* @param {Number} value - Offset
|
|
1048
|
-
*/
|
|
1099
|
+
// EXTERNAL MODULE: ./src/resources/MapstyleSet.js + 1 modules
|
|
1100
|
+
var MapstyleSet = __webpack_require__(50);
|
|
1049
1101
|
|
|
1102
|
+
// EXTERNAL MODULE: ./src/resources/Message.js + 1 modules
|
|
1103
|
+
var Message = __webpack_require__(57);
|
|
1050
1104
|
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
}
|
|
1054
|
-
/**
|
|
1055
|
-
* Sets the maximum allowed value for perPage
|
|
1056
|
-
* Some users will have a special permission that allows them to fetch more than 50 resources at once
|
|
1057
|
-
* @param {Number} value - Maximum amount of resources per page
|
|
1058
|
-
*/
|
|
1105
|
+
// EXTERNAL MODULE: ./src/resources/Notification.js
|
|
1106
|
+
var Notification = __webpack_require__(65);
|
|
1059
1107
|
|
|
1108
|
+
// EXTERNAL MODULE: ./src/resources/Organisation.js
|
|
1109
|
+
var Organisation = __webpack_require__(54);
|
|
1060
1110
|
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
}
|
|
1064
|
-
/**
|
|
1065
|
-
* Default search query
|
|
1066
|
-
* @param {Object<String, String|Array<String>>} value - Search query
|
|
1067
|
-
*/
|
|
1111
|
+
// EXTERNAL MODULE: ./src/resources/Permission.js
|
|
1112
|
+
var Permission = __webpack_require__(49);
|
|
1068
1113
|
|
|
1114
|
+
// EXTERNAL MODULE: ./src/utils/reflection.js
|
|
1115
|
+
var reflection = __webpack_require__(1);
|
|
1069
1116
|
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
}
|
|
1073
|
-
/**
|
|
1074
|
-
* Default sort query
|
|
1075
|
-
* @param {Array<String>} value - Sort query
|
|
1076
|
-
*/
|
|
1117
|
+
// EXTERNAL MODULE: ./src/resources/base/CrudSetBase.js
|
|
1118
|
+
var CrudSetBase = __webpack_require__(17);
|
|
1077
1119
|
|
|
1120
|
+
// CONCATENATED MODULE: ./src/resources/ProductTourStep.js
|
|
1121
|
+
/*
|
|
1122
|
+
* BSD 3-Clause License
|
|
1123
|
+
*
|
|
1124
|
+
* Copyright (c) 2020, Mapcreator
|
|
1125
|
+
* All rights reserved.
|
|
1126
|
+
*
|
|
1127
|
+
* Redistribution and use in source and binary forms, with or without
|
|
1128
|
+
* modification, are permitted provided that the following conditions are met:
|
|
1129
|
+
*
|
|
1130
|
+
* Redistributions of source code must retain the above copyright notice, this
|
|
1131
|
+
* list of conditions and the following disclaimer.
|
|
1132
|
+
*
|
|
1133
|
+
* Redistributions in binary form must reproduce the above copyright notice,
|
|
1134
|
+
* this list of conditions and the following disclaimer in the documentation
|
|
1135
|
+
* and/or other materials provided with the distribution.
|
|
1136
|
+
*
|
|
1137
|
+
* Neither the name of the copyright holder nor the names of its
|
|
1138
|
+
* contributors may be used to endorse or promote products derived from
|
|
1139
|
+
* this software without specific prior written permission.
|
|
1140
|
+
*
|
|
1141
|
+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
1142
|
+
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
1143
|
+
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
1144
|
+
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
1145
|
+
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
1146
|
+
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
1147
|
+
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
1148
|
+
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
1149
|
+
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
1150
|
+
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
1151
|
+
*/
|
|
1078
1152
|
|
|
1079
|
-
static set sort(value) {
|
|
1080
|
-
RequestParameters._sort = RequestParameters._validateSort(value);
|
|
1081
|
-
}
|
|
1082
|
-
/**
|
|
1083
|
-
* Default deleted items filter state
|
|
1084
|
-
* @param {String} value - Deleted items filter state
|
|
1085
|
-
*/
|
|
1086
1153
|
|
|
1154
|
+
/**
|
|
1155
|
+
* @extends CrudSetItemBase
|
|
1156
|
+
*/
|
|
1087
1157
|
|
|
1088
|
-
|
|
1089
|
-
|
|
1158
|
+
class ProductTourStep_ProductTourStep extends Object(reflection["mix"])(CrudSetItemBase["default"]) {
|
|
1159
|
+
static get resourceName() {
|
|
1160
|
+
return 'product-tours/steps';
|
|
1090
1161
|
}
|
|
1091
|
-
/**
|
|
1092
|
-
* Default extra request parameters
|
|
1093
|
-
* @param {Object} value - Extra request parameters
|
|
1094
|
-
*/
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
static set extra(value) {
|
|
1098
|
-
RequestParameters._extra = RequestParameters._validateExtra(value);
|
|
1099
|
-
} // endregion setters
|
|
1100
|
-
// endregion static
|
|
1101
|
-
// region validators
|
|
1102
|
-
|
|
1103
|
-
/**
|
|
1104
|
-
* Validators should work the same as laravel's ::validate method. This means
|
|
1105
|
-
* this means that they will throw a TypeError or return a normalized result.
|
|
1106
|
-
*/
|
|
1107
1162
|
|
|
1163
|
+
static get parentKey() {
|
|
1164
|
+
return 'product_tour_id';
|
|
1165
|
+
}
|
|
1108
1166
|
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1167
|
+
}
|
|
1168
|
+
// CONCATENATED MODULE: ./src/resources/ProductTour.js
|
|
1169
|
+
/*
|
|
1170
|
+
* BSD 3-Clause License
|
|
1171
|
+
*
|
|
1172
|
+
* Copyright (c) 2020, Mapcreator
|
|
1173
|
+
* All rights reserved.
|
|
1174
|
+
*
|
|
1175
|
+
* Redistribution and use in source and binary forms, with or without
|
|
1176
|
+
* modification, are permitted provided that the following conditions are met:
|
|
1177
|
+
*
|
|
1178
|
+
* Redistributions of source code must retain the above copyright notice, this
|
|
1179
|
+
* list of conditions and the following disclaimer.
|
|
1180
|
+
*
|
|
1181
|
+
* Redistributions in binary form must reproduce the above copyright notice,
|
|
1182
|
+
* this list of conditions and the following disclaimer in the documentation
|
|
1183
|
+
* and/or other materials provided with the distribution.
|
|
1184
|
+
*
|
|
1185
|
+
* Neither the name of the copyright holder nor the names of its
|
|
1186
|
+
* contributors may be used to endorse or promote products derived from
|
|
1187
|
+
* this software without specific prior written permission.
|
|
1188
|
+
*
|
|
1189
|
+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
1190
|
+
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
1191
|
+
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
1192
|
+
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
1193
|
+
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
1194
|
+
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
1195
|
+
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
1196
|
+
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
1197
|
+
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
1198
|
+
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
1199
|
+
*/
|
|
1113
1200
|
|
|
1114
|
-
if (value < 0) {
|
|
1115
|
-
throw new TypeError('Page must be a positive number');
|
|
1116
|
-
}
|
|
1117
1201
|
|
|
1118
|
-
if (Number.isNaN(value) || !Number.isFinite(value)) {
|
|
1119
|
-
throw new TypeError('Page must be a real number');
|
|
1120
|
-
}
|
|
1121
1202
|
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1203
|
+
/**
|
|
1204
|
+
* Mapstyle set
|
|
1205
|
+
* @extends CrudSetBase
|
|
1206
|
+
*/
|
|
1125
1207
|
|
|
1126
|
-
|
|
1208
|
+
class ProductTour_ProductTour extends Object(reflection["mix"])(CrudSetBase["default"]) {
|
|
1209
|
+
static get resourcePath() {
|
|
1210
|
+
return '/product-tours/{id}';
|
|
1127
1211
|
}
|
|
1128
1212
|
|
|
1129
|
-
static
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
}
|
|
1133
|
-
|
|
1134
|
-
if (value <= 0) {
|
|
1135
|
-
throw new TypeError('Per page must be greater than zero');
|
|
1136
|
-
}
|
|
1137
|
-
|
|
1138
|
-
if (Number.isNaN(value) || !Number.isFinite(value)) {
|
|
1139
|
-
throw new TypeError('Per page must be a real number');
|
|
1140
|
-
}
|
|
1141
|
-
|
|
1142
|
-
if (Math.round(value) !== value) {
|
|
1143
|
-
throw new TypeError('Per page must be a natural number');
|
|
1144
|
-
} // Upper limit is 50 by default
|
|
1145
|
-
|
|
1213
|
+
static get resourceName() {
|
|
1214
|
+
return 'product-tours';
|
|
1215
|
+
}
|
|
1146
1216
|
|
|
1147
|
-
|
|
1148
|
-
return
|
|
1217
|
+
get _Child() {
|
|
1218
|
+
return ProductTourStep_ProductTourStep;
|
|
1149
1219
|
}
|
|
1150
1220
|
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
}
|
|
1221
|
+
}
|
|
1222
|
+
// EXTERNAL MODULE: ./src/resources/Role.js
|
|
1223
|
+
var Role = __webpack_require__(66);
|
|
1155
1224
|
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
}
|
|
1225
|
+
// EXTERNAL MODULE: ./src/resources/Svg.js
|
|
1226
|
+
var Svg = __webpack_require__(46);
|
|
1159
1227
|
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
}
|
|
1228
|
+
// EXTERNAL MODULE: ./src/resources/SvgSet.js
|
|
1229
|
+
var SvgSet = __webpack_require__(45);
|
|
1163
1230
|
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
}
|
|
1231
|
+
// EXTERNAL MODULE: ./src/resources/Tag.js
|
|
1232
|
+
var Tag = __webpack_require__(47);
|
|
1167
1233
|
|
|
1168
|
-
|
|
1169
|
-
|
|
1234
|
+
// CONCATENATED MODULE: ./src/resources/TagType.js
|
|
1235
|
+
/*
|
|
1236
|
+
* BSD 3-Clause License
|
|
1237
|
+
*
|
|
1238
|
+
* Copyright (c) 2020, Mapcreator
|
|
1239
|
+
* All rights reserved.
|
|
1240
|
+
*
|
|
1241
|
+
* Redistribution and use in source and binary forms, with or without
|
|
1242
|
+
* modification, are permitted provided that the following conditions are met:
|
|
1243
|
+
*
|
|
1244
|
+
* Redistributions of source code must retain the above copyright notice, this
|
|
1245
|
+
* list of conditions and the following disclaimer.
|
|
1246
|
+
*
|
|
1247
|
+
* Redistributions in binary form must reproduce the above copyright notice,
|
|
1248
|
+
* this list of conditions and the following disclaimer in the documentation
|
|
1249
|
+
* and/or other materials provided with the distribution.
|
|
1250
|
+
*
|
|
1251
|
+
* Neither the name of the copyright holder nor the names of its
|
|
1252
|
+
* contributors may be used to endorse or promote products derived from
|
|
1253
|
+
* this software without specific prior written permission.
|
|
1254
|
+
*
|
|
1255
|
+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
1256
|
+
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
1257
|
+
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
1258
|
+
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
1259
|
+
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
1260
|
+
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
1261
|
+
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
1262
|
+
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
1263
|
+
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
1264
|
+
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
1265
|
+
*/
|
|
1170
1266
|
|
|
1171
|
-
static _validateMaxPerPage(value) {
|
|
1172
|
-
if (typeof value !== 'number') {
|
|
1173
|
-
throw new TypeError(`Expected page to be of type 'Number' instead got '${Object(_utils_reflection__WEBPACK_IMPORTED_MODULE_4__["getTypeName"])(value)}'`);
|
|
1174
|
-
}
|
|
1175
1267
|
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1268
|
+
/**
|
|
1269
|
+
* TagType resource
|
|
1270
|
+
* @mixes CrudSetBase
|
|
1271
|
+
*/
|
|
1179
1272
|
|
|
1180
|
-
|
|
1273
|
+
class TagType_TagType extends CrudBase["default"] {
|
|
1274
|
+
static get resourcePath() {
|
|
1275
|
+
return '/tags/types/{id}';
|
|
1181
1276
|
}
|
|
1182
1277
|
|
|
1183
|
-
static
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1278
|
+
static get resourceName() {
|
|
1279
|
+
return 'tag-types';
|
|
1280
|
+
}
|
|
1281
|
+
/**
|
|
1282
|
+
* Get the list of tags that are attached to this type
|
|
1283
|
+
* @returns {SimpleResourceProxy} - A proxy for accessing the resource
|
|
1284
|
+
*/
|
|
1188
1285
|
|
|
1189
|
-
const normalize = x => typeof x === 'number' ? x.toString() : x;
|
|
1190
1286
|
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1287
|
+
get tags() {
|
|
1288
|
+
return this._proxyResourceList(Tag["default"], `${this.url}/tags`);
|
|
1289
|
+
}
|
|
1194
1290
|
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1291
|
+
}
|
|
1292
|
+
// EXTERNAL MODULE: ./src/resources/User.js
|
|
1293
|
+
var User = __webpack_require__(48);
|
|
1198
1294
|
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1295
|
+
// CONCATENATED MODULE: ./src/resources/VectorHighlight.js
|
|
1296
|
+
/*
|
|
1297
|
+
* BSD 3-Clause License
|
|
1298
|
+
*
|
|
1299
|
+
* Copyright (c) 2020, Mapcreator
|
|
1300
|
+
* All rights reserved.
|
|
1301
|
+
*
|
|
1302
|
+
* Redistribution and use in source and binary forms, with or without
|
|
1303
|
+
* modification, are permitted provided that the following conditions are met:
|
|
1304
|
+
*
|
|
1305
|
+
* Redistributions of source code must retain the above copyright notice, this
|
|
1306
|
+
* list of conditions and the following disclaimer.
|
|
1307
|
+
*
|
|
1308
|
+
* Redistributions in binary form must reproduce the above copyright notice,
|
|
1309
|
+
* this list of conditions and the following disclaimer in the documentation
|
|
1310
|
+
* and/or other materials provided with the distribution.
|
|
1311
|
+
*
|
|
1312
|
+
* Neither the name of the copyright holder nor the names of its
|
|
1313
|
+
* contributors may be used to endorse or promote products derived from
|
|
1314
|
+
* this software without specific prior written permission.
|
|
1315
|
+
*
|
|
1316
|
+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
1317
|
+
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
1318
|
+
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
1319
|
+
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
1320
|
+
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
1321
|
+
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
1322
|
+
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
1323
|
+
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
1324
|
+
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
1325
|
+
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
1326
|
+
*/
|
|
1216
1327
|
|
|
1217
|
-
|
|
1328
|
+
class VectorHighlight_VectorHighlight extends ResourceBase["default"] {
|
|
1329
|
+
static get resourceName() {
|
|
1330
|
+
return 'highlights/vector';
|
|
1218
1331
|
}
|
|
1219
1332
|
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1333
|
+
}
|
|
1334
|
+
// CONCATENATED MODULE: ./src/resources/VectorChoropleth.js
|
|
1335
|
+
/*
|
|
1336
|
+
* BSD 3-Clause License
|
|
1337
|
+
*
|
|
1338
|
+
* Copyright (c) 2020, Mapcreator
|
|
1339
|
+
* All rights reserved.
|
|
1340
|
+
*
|
|
1341
|
+
* Redistribution and use in source and binary forms, with or without
|
|
1342
|
+
* modification, are permitted provided that the following conditions are met:
|
|
1343
|
+
*
|
|
1344
|
+
* Redistributions of source code must retain the above copyright notice, this
|
|
1345
|
+
* list of conditions and the following disclaimer.
|
|
1346
|
+
*
|
|
1347
|
+
* Redistributions in binary form must reproduce the above copyright notice,
|
|
1348
|
+
* this list of conditions and the following disclaimer in the documentation
|
|
1349
|
+
* and/or other materials provided with the distribution.
|
|
1350
|
+
*
|
|
1351
|
+
* Neither the name of the copyright holder nor the names of its
|
|
1352
|
+
* contributors may be used to endorse or promote products derived from
|
|
1353
|
+
* this software without specific prior written permission.
|
|
1354
|
+
*
|
|
1355
|
+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
1356
|
+
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
1357
|
+
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
1358
|
+
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
1359
|
+
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
1360
|
+
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
1361
|
+
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
1362
|
+
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
1363
|
+
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
1364
|
+
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
1365
|
+
*/
|
|
1224
1366
|
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1367
|
+
class VectorChoropleth_VectorChoropleth extends ResourceBase["default"] {
|
|
1368
|
+
static get resourceName() {
|
|
1369
|
+
return 'choropleths/vector';
|
|
1370
|
+
}
|
|
1228
1371
|
|
|
1372
|
+
}
|
|
1373
|
+
// CONCATENATED MODULE: ./src/resources/index.js
|
|
1374
|
+
/*
|
|
1375
|
+
* BSD 3-Clause License
|
|
1376
|
+
*
|
|
1377
|
+
* Copyright (c) 2020, Mapcreator
|
|
1378
|
+
* All rights reserved.
|
|
1379
|
+
*
|
|
1380
|
+
* Redistribution and use in source and binary forms, with or without
|
|
1381
|
+
* modification, are permitted provided that the following conditions are met:
|
|
1382
|
+
*
|
|
1383
|
+
* Redistributions of source code must retain the above copyright notice, this
|
|
1384
|
+
* list of conditions and the following disclaimer.
|
|
1385
|
+
*
|
|
1386
|
+
* Redistributions in binary form must reproduce the above copyright notice,
|
|
1387
|
+
* this list of conditions and the following disclaimer in the documentation
|
|
1388
|
+
* and/or other materials provided with the distribution.
|
|
1389
|
+
*
|
|
1390
|
+
* Neither the name of the copyright holder nor the names of its
|
|
1391
|
+
* contributors may be used to endorse or promote products derived from
|
|
1392
|
+
* this software without specific prior written permission.
|
|
1393
|
+
*
|
|
1394
|
+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
1395
|
+
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
1396
|
+
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
1397
|
+
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
1398
|
+
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
1399
|
+
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
1400
|
+
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
1401
|
+
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
1402
|
+
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
1403
|
+
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
1404
|
+
*/
|
|
1229
1405
|
|
|
1230
|
-
value.filter(x => typeof x !== 'string').forEach(x => {
|
|
1231
|
-
throw new TypeError(`Expected sort array values to be of type "String" got "${Object(_utils_reflection__WEBPACK_IMPORTED_MODULE_4__["getTypeName"])(x)}"`);
|
|
1232
|
-
}); // Don't do regex matching because it's something
|
|
1233
|
-
// we can just let the server do for us.
|
|
1234
1406
|
|
|
1235
|
-
return value;
|
|
1236
|
-
}
|
|
1237
1407
|
|
|
1238
|
-
static _validateDeleted(value) {
|
|
1239
|
-
if (typeof value === 'undefined') {
|
|
1240
|
-
return value;
|
|
1241
|
-
}
|
|
1242
1408
|
|
|
1243
|
-
if (typeof value !== 'string') {
|
|
1244
|
-
throw new TypeError(`Expected deleted to be of type "string" got "${Object(_utils_reflection__WEBPACK_IMPORTED_MODULE_4__["getTypeName"])(value)}". See: DeletedState`);
|
|
1245
|
-
}
|
|
1246
1409
|
|
|
1247
|
-
value = value.toLowerCase();
|
|
1248
|
-
const possible = _enums__WEBPACK_IMPORTED_MODULE_2__["DeletedState"].values();
|
|
1249
1410
|
|
|
1250
|
-
if (!possible.includes(value)) {
|
|
1251
|
-
throw new TypeError(`Expected deleted to be one of ${possible.join(', ')}, got ${value}`);
|
|
1252
|
-
}
|
|
1253
1411
|
|
|
1254
|
-
return value;
|
|
1255
|
-
}
|
|
1256
1412
|
|
|
1257
|
-
static _validateExtra(value) {
|
|
1258
|
-
if (typeof value !== 'object') {
|
|
1259
|
-
throw new TypeError(`Expected extra to be of type 'object', got '${Object(_utils_reflection__WEBPACK_IMPORTED_MODULE_4__["getTypeName"])(value)}'`);
|
|
1260
|
-
}
|
|
1261
1413
|
|
|
1262
|
-
return value;
|
|
1263
|
-
} // endregion validators
|
|
1264
1414
|
|
|
1265
1415
|
|
|
1266
|
-
_resolve(name) {
|
|
1267
|
-
const _name = `_${name}`;
|
|
1268
1416
|
|
|
1269
|
-
if (!this[_name]) {
|
|
1270
|
-
// Confuse esdoc
|
|
1271
|
-
(this || {})[_name] = RequestParameters[name];
|
|
1272
|
-
}
|
|
1273
1417
|
|
|
1274
|
-
return this[_name];
|
|
1275
|
-
}
|
|
1276
1418
|
|
|
1277
|
-
_update(name, value, preventEvent = false) {
|
|
1278
|
-
const _name = `_${name}`;
|
|
1279
|
-
value = RequestParameters[`_validate${Object(case__WEBPACK_IMPORTED_MODULE_0__["pascal"])(name)}`](value);
|
|
1280
|
-
(this || {})[_name] = value; // Weird syntax confuses esdoc
|
|
1281
1419
|
|
|
1282
|
-
if (!preventEvent) {
|
|
1283
|
-
/**
|
|
1284
|
-
* Change event.
|
|
1285
|
-
*
|
|
1286
|
-
* @event RequestParameters#change
|
|
1287
|
-
* @type {Array<object>}
|
|
1288
|
-
* @property {string} name - Parameter name
|
|
1289
|
-
* @property {*} value - New value
|
|
1290
|
-
*/
|
|
1291
|
-
this.emit('change', [{
|
|
1292
|
-
name,
|
|
1293
|
-
value
|
|
1294
|
-
}]);
|
|
1295
|
-
this.emit(`change:${name}`, value);
|
|
1296
|
-
}
|
|
1297
1420
|
|
|
1298
|
-
return value;
|
|
1299
|
-
} // region utils
|
|
1300
1421
|
|
|
1301
|
-
/**
|
|
1302
|
-
* Urlencode parameters
|
|
1303
|
-
* @returns {string} - HTTP query
|
|
1304
|
-
*/
|
|
1305
1422
|
|
|
1306
1423
|
|
|
1307
|
-
encode() {
|
|
1308
|
-
return Object(_utils_requests__WEBPACK_IMPORTED_MODULE_5__["encodeQueryString"])(this.toParameterObject());
|
|
1309
|
-
}
|
|
1310
|
-
/**
|
|
1311
|
-
* Convert to object
|
|
1312
|
-
* @returns {Object} - Object
|
|
1313
|
-
*/
|
|
1314
1424
|
|
|
1315
1425
|
|
|
1316
|
-
toObject() {
|
|
1317
|
-
return RequestParameters.keys().reduce((obj, key) => {
|
|
1318
|
-
obj[Object(case__WEBPACK_IMPORTED_MODULE_0__["snake"])(key)] = this._resolve(key);
|
|
1319
|
-
return obj;
|
|
1320
|
-
}, {});
|
|
1321
|
-
}
|
|
1322
|
-
/**
|
|
1323
|
-
* Convert to object
|
|
1324
|
-
* @returns {Object} - Object
|
|
1325
|
-
*/
|
|
1326
1426
|
|
|
1327
1427
|
|
|
1328
|
-
toParameterObject() {
|
|
1329
|
-
const data = {};
|
|
1330
|
-
RequestParameters.keys().forEach(key => {
|
|
1331
|
-
// Skip extra key
|
|
1332
|
-
if (key === 'extra') {
|
|
1333
|
-
return;
|
|
1334
|
-
}
|
|
1335
1428
|
|
|
1336
|
-
data[Object(case__WEBPACK_IMPORTED_MODULE_0__["snake"])(key)] = this._resolve(key);
|
|
1337
|
-
}); // Fix column names for sort
|
|
1338
1429
|
|
|
1339
|
-
data.sort = data.sort.map(case__WEBPACK_IMPORTED_MODULE_0__["snake"]).map(x => x.replace(/^_/, '-')).join(',');
|
|
1340
1430
|
|
|
1341
|
-
if (data.offset === 0) {
|
|
1342
|
-
delete data.offset;
|
|
1343
|
-
} // Fix column names for search
|
|
1344
1431
|
|
|
1345
1432
|
|
|
1346
|
-
for (const key of Object.keys(data.search)) {
|
|
1347
|
-
const snakeKey = key.split(',').map(case__WEBPACK_IMPORTED_MODULE_0__["snake"]).join(',');
|
|
1348
1433
|
|
|
1349
|
-
if (key !== snakeKey) {
|
|
1350
|
-
data.search[snakeKey] = data.search[key];
|
|
1351
|
-
delete data.search[key];
|
|
1352
|
-
}
|
|
1353
|
-
} // Cast search values
|
|
1354
1434
|
|
|
1355
1435
|
|
|
1356
|
-
for (const key of Object.keys(data.search)) {
|
|
1357
|
-
if (typeof data.search[key] === 'boolean') {
|
|
1358
|
-
data.search[key] = Number(data.search[key]);
|
|
1359
|
-
}
|
|
1360
1436
|
|
|
1361
|
-
if (data.search[key] === null) {
|
|
1362
|
-
data.search[key] = '';
|
|
1363
|
-
}
|
|
1364
|
-
} // Overwrite using extra properties
|
|
1365
1437
|
|
|
1366
1438
|
|
|
1367
|
-
const extra = this._resolve('extra');
|
|
1368
1439
|
|
|
1369
|
-
for (const key of Object.keys(extra)) {
|
|
1370
|
-
data[key] = extra[key];
|
|
1371
|
-
}
|
|
1372
1440
|
|
|
1373
|
-
for (const key of Object.keys(data)) {
|
|
1374
|
-
if (typeof data[key] === 'undefined') {
|
|
1375
|
-
delete data[key];
|
|
1376
|
-
}
|
|
1377
|
-
}
|
|
1378
1441
|
|
|
1379
|
-
return data;
|
|
1380
|
-
}
|
|
1381
|
-
/**
|
|
1382
|
-
* Copy object
|
|
1383
|
-
* @returns {RequestParameters} - Copy
|
|
1384
|
-
*/
|
|
1385
1442
|
|
|
1386
1443
|
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
/**
|
|
1391
|
-
* Different parameters
|
|
1392
|
-
* @returns {Array<String>} - keys
|
|
1393
|
-
*/
|
|
1444
|
+
/**
|
|
1445
|
+
* @private
|
|
1446
|
+
*/
|
|
1394
1447
|
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
/**
|
|
1401
|
-
* Generates a cache token
|
|
1402
|
-
* @returns {string} - Cache token
|
|
1403
|
-
*/
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
token() {
|
|
1407
|
-
const data = this.toObject();
|
|
1408
|
-
delete data.page;
|
|
1409
|
-
delete data['per_page'];
|
|
1410
|
-
return Object(_utils_hash__WEBPACK_IMPORTED_MODULE_3__["hashObject"])(data);
|
|
1411
|
-
}
|
|
1412
|
-
/**
|
|
1413
|
-
* Resets all parameters back to default
|
|
1414
|
-
*/
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
static resetDefaults() {
|
|
1418
|
-
for (const key of RequestParameters.keys()) {
|
|
1419
|
-
delete RequestParameters[`_${key}`];
|
|
1420
|
-
}
|
|
1421
|
-
}
|
|
1422
|
-
/**
|
|
1423
|
-
* Apply parameters from object
|
|
1424
|
-
* @param {object|RequestParameters} params - parameters
|
|
1425
|
-
* @returns {Object[]} - Array containing the updated values
|
|
1426
|
-
* @example
|
|
1427
|
-
* const params = new RequestParameters({perPage: 12});
|
|
1428
|
-
*
|
|
1429
|
-
* params.perPage === 12;
|
|
1430
|
-
*
|
|
1431
|
-
* params.apply({perPage: 50});
|
|
1432
|
-
*
|
|
1433
|
-
* params.perPage === 50;
|
|
1434
|
-
*/
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
apply(params) {
|
|
1438
|
-
if (params instanceof RequestParameters) {
|
|
1439
|
-
params = params.toObject();
|
|
1440
|
-
}
|
|
1441
|
-
|
|
1442
|
-
const out = [];
|
|
1443
|
-
|
|
1444
|
-
for (const key of Object.keys(params)) {
|
|
1445
|
-
const Key = Object(case__WEBPACK_IMPORTED_MODULE_0__["camel"])(key);
|
|
1446
|
-
|
|
1447
|
-
if (key[0] === '_' || !RequestParameters.keys().includes(Key)) {
|
|
1448
|
-
continue;
|
|
1449
|
-
}
|
|
1450
|
-
|
|
1451
|
-
out.push({
|
|
1452
|
-
name: Key,
|
|
1453
|
-
value: this._update(Key, params[key], true)
|
|
1454
|
-
});
|
|
1455
|
-
}
|
|
1456
|
-
|
|
1457
|
-
this.emit('change', out);
|
|
1458
|
-
|
|
1459
|
-
for (const {
|
|
1460
|
-
name,
|
|
1461
|
-
value
|
|
1462
|
-
} of out) {
|
|
1463
|
-
this.emit(`change:${name}`, value);
|
|
1464
|
-
}
|
|
1465
|
-
|
|
1466
|
-
return out;
|
|
1467
|
-
} // endregion utils
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
}
|
|
1448
|
+
const base = {
|
|
1449
|
+
CrudBase: CrudBase["default"],
|
|
1450
|
+
CrudSetBase: CrudSetBase["default"],
|
|
1451
|
+
ResourceBase: ResourceBase["default"]
|
|
1452
|
+
};
|
|
1471
1453
|
|
|
1472
1454
|
/***/ }),
|
|
1473
1455
|
/* 4 */
|
|
1474
1456
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1475
1457
|
|
|
1476
1458
|
"use strict";
|
|
1477
|
-
// ESM COMPAT FLAG
|
|
1478
1459
|
__webpack_require__.r(__webpack_exports__);
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
__webpack_require__.d(__webpack_exports__, "Feature", function() { return /* reexport */ Feature["default"]; });
|
|
1489
|
-
__webpack_require__.d(__webpack_exports__, "Font", function() { return /* reexport */ Font["default"]; });
|
|
1490
|
-
__webpack_require__.d(__webpack_exports__, "FontFamily", function() { return /* reexport */ FontFamily["default"]; });
|
|
1491
|
-
__webpack_require__.d(__webpack_exports__, "Highlight", function() { return /* reexport */ Highlight_Highlight; });
|
|
1492
|
-
__webpack_require__.d(__webpack_exports__, "InsetMap", function() { return /* reexport */ InsetMap_InsetMap; });
|
|
1493
|
-
__webpack_require__.d(__webpack_exports__, "Job", function() { return /* reexport */ Job["default"]; });
|
|
1494
|
-
__webpack_require__.d(__webpack_exports__, "JobResult", function() { return /* reexport */ JobResult["default"]; });
|
|
1495
|
-
__webpack_require__.d(__webpack_exports__, "JobRevision", function() { return /* reexport */ JobRevision["default"]; });
|
|
1496
|
-
__webpack_require__.d(__webpack_exports__, "JobShare", function() { return /* reexport */ JobShare["default"]; });
|
|
1497
|
-
__webpack_require__.d(__webpack_exports__, "JobType", function() { return /* reexport */ JobType["default"]; });
|
|
1498
|
-
__webpack_require__.d(__webpack_exports__, "Language", function() { return /* reexport */ Language["default"]; });
|
|
1499
|
-
__webpack_require__.d(__webpack_exports__, "Layer", function() { return /* reexport */ Layer["default"]; });
|
|
1500
|
-
__webpack_require__.d(__webpack_exports__, "Mapstyle", function() { return /* reexport */ Mapstyle["default"]; });
|
|
1501
|
-
__webpack_require__.d(__webpack_exports__, "MapstyleSet", function() { return /* reexport */ MapstyleSet["default"]; });
|
|
1502
|
-
__webpack_require__.d(__webpack_exports__, "Message", function() { return /* reexport */ Message["default"]; });
|
|
1503
|
-
__webpack_require__.d(__webpack_exports__, "Notification", function() { return /* reexport */ Notification["default"]; });
|
|
1504
|
-
__webpack_require__.d(__webpack_exports__, "Organisation", function() { return /* reexport */ Organisation["default"]; });
|
|
1505
|
-
__webpack_require__.d(__webpack_exports__, "Permission", function() { return /* reexport */ Permission["default"]; });
|
|
1506
|
-
__webpack_require__.d(__webpack_exports__, "ProductTour", function() { return /* reexport */ ProductTour_ProductTour; });
|
|
1507
|
-
__webpack_require__.d(__webpack_exports__, "ProductTourStep", function() { return /* reexport */ ProductTourStep_ProductTourStep; });
|
|
1508
|
-
__webpack_require__.d(__webpack_exports__, "Role", function() { return /* reexport */ Role["default"]; });
|
|
1509
|
-
__webpack_require__.d(__webpack_exports__, "Svg", function() { return /* reexport */ Svg["default"]; });
|
|
1510
|
-
__webpack_require__.d(__webpack_exports__, "SvgSet", function() { return /* reexport */ SvgSet["default"]; });
|
|
1511
|
-
__webpack_require__.d(__webpack_exports__, "Tag", function() { return /* reexport */ Tag["default"]; });
|
|
1512
|
-
__webpack_require__.d(__webpack_exports__, "TagType", function() { return /* reexport */ TagType_TagType; });
|
|
1513
|
-
__webpack_require__.d(__webpack_exports__, "User", function() { return /* reexport */ User["default"]; });
|
|
1514
|
-
__webpack_require__.d(__webpack_exports__, "VectorHighlight", function() { return /* reexport */ VectorHighlight_VectorHighlight; });
|
|
1515
|
-
__webpack_require__.d(__webpack_exports__, "VectorChoropleth", function() { return /* reexport */ VectorChoropleth_VectorChoropleth; });
|
|
1516
|
-
__webpack_require__.d(__webpack_exports__, "base", function() { return /* binding */ base; });
|
|
1517
|
-
|
|
1518
|
-
// EXTERNAL MODULE: ./src/resources/base/DownloadedResource.js + 1 modules
|
|
1519
|
-
var DownloadedResource = __webpack_require__(23);
|
|
1520
|
-
|
|
1521
|
-
// EXTERNAL MODULE: ./src/resources/base/ResourceBase.js
|
|
1522
|
-
var ResourceBase = __webpack_require__(6);
|
|
1523
|
-
|
|
1524
|
-
// EXTERNAL MODULE: ./src/utils/helpers.js
|
|
1525
|
-
var helpers = __webpack_require__(0);
|
|
1526
|
-
|
|
1527
|
-
// CONCATENATED MODULE: ./src/resources/Choropleth.js
|
|
1460
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return RequestParameters; });
|
|
1461
|
+
/* harmony import */ var case__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(7);
|
|
1462
|
+
/* harmony import */ var case__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(case__WEBPACK_IMPORTED_MODULE_0__);
|
|
1463
|
+
/* harmony import */ var events__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(52);
|
|
1464
|
+
/* harmony import */ var events__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(events__WEBPACK_IMPORTED_MODULE_1__);
|
|
1465
|
+
/* harmony import */ var _enums__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(8);
|
|
1466
|
+
/* harmony import */ var _utils_hash__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(29);
|
|
1467
|
+
/* harmony import */ var _utils_reflection__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(1);
|
|
1468
|
+
/* harmony import */ var _utils_requests__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(5);
|
|
1528
1469
|
/*
|
|
1529
1470
|
* BSD 3-Clause License
|
|
1530
1471
|
*
|
|
@@ -1559,619 +1500,693 @@ var helpers = __webpack_require__(0);
|
|
|
1559
1500
|
|
|
1560
1501
|
|
|
1561
1502
|
|
|
1503
|
+
|
|
1504
|
+
|
|
1505
|
+
|
|
1562
1506
|
/**
|
|
1563
|
-
*
|
|
1507
|
+
* Used for keeping track of the request parameters
|
|
1508
|
+
*
|
|
1509
|
+
* @fires RequestParameters#change
|
|
1510
|
+
* @fires RequestParameters#change:page
|
|
1511
|
+
* @fires RequestParameters#change:perPage
|
|
1512
|
+
* @fires RequestParameters#change:search
|
|
1513
|
+
* @fires RequestParameters#change:sort
|
|
1514
|
+
* @fires RequestParameters#change:deleted
|
|
1515
|
+
* @fires RequestParameters#change:extra
|
|
1564
1516
|
*/
|
|
1565
1517
|
|
|
1566
|
-
class
|
|
1567
|
-
|
|
1568
|
-
|
|
1518
|
+
class RequestParameters extends events__WEBPACK_IMPORTED_MODULE_1__["EventEmitter"] {
|
|
1519
|
+
/**
|
|
1520
|
+
* RequestParameters constructor
|
|
1521
|
+
* @param {Object} object - properties
|
|
1522
|
+
*/
|
|
1523
|
+
constructor(object = {}) {
|
|
1524
|
+
super(); // Apply defaults
|
|
1525
|
+
|
|
1526
|
+
RequestParameters.keys().forEach(x => this._resolve(x)); // Apply properties
|
|
1527
|
+
|
|
1528
|
+
this.apply(object);
|
|
1529
|
+
} // region instance
|
|
1530
|
+
// region instance getters
|
|
1531
|
+
|
|
1532
|
+
/**
|
|
1533
|
+
* Get page number
|
|
1534
|
+
* @returns {Number} - Page number
|
|
1535
|
+
* @throws {TypeError}
|
|
1536
|
+
*/
|
|
1537
|
+
|
|
1538
|
+
|
|
1539
|
+
get page() {
|
|
1540
|
+
return this._resolve('page');
|
|
1569
1541
|
}
|
|
1570
1542
|
/**
|
|
1571
|
-
* Get
|
|
1572
|
-
* @returns {
|
|
1573
|
-
* @throws {
|
|
1543
|
+
* Get rows per page
|
|
1544
|
+
* @returns {Number} - Per page
|
|
1545
|
+
* @throws {TypeError}
|
|
1574
1546
|
*/
|
|
1575
1547
|
|
|
1576
1548
|
|
|
1577
|
-
|
|
1578
|
-
return
|
|
1579
|
-
signal
|
|
1580
|
-
}).json());
|
|
1549
|
+
get perPage() {
|
|
1550
|
+
return this._resolve('perPage');
|
|
1581
1551
|
}
|
|
1582
1552
|
/**
|
|
1583
|
-
*
|
|
1584
|
-
* @returns {
|
|
1585
|
-
* @throws {
|
|
1553
|
+
* Get pagination offset
|
|
1554
|
+
* @returns {Number} - Offset
|
|
1555
|
+
* @throws {TypeError}
|
|
1586
1556
|
*/
|
|
1587
1557
|
|
|
1588
1558
|
|
|
1589
|
-
|
|
1590
|
-
return
|
|
1591
|
-
const response = await this.api.ky.get(`${this.url}/preview`, {
|
|
1592
|
-
signal
|
|
1593
|
-
});
|
|
1594
|
-
return DownloadedResource["default"].fromResponse(response);
|
|
1595
|
-
});
|
|
1559
|
+
get offset() {
|
|
1560
|
+
return this._resolve('offset');
|
|
1596
1561
|
}
|
|
1562
|
+
/**
|
|
1563
|
+
* Search query
|
|
1564
|
+
* @returns {Object<String, String|Array<String>>} - Query
|
|
1565
|
+
* @throws {TypeError}
|
|
1566
|
+
*/
|
|
1597
1567
|
|
|
1598
|
-
}
|
|
1599
|
-
// EXTERNAL MODULE: ./src/resources/Color.js
|
|
1600
|
-
var Color = __webpack_require__(36);
|
|
1601
1568
|
|
|
1602
|
-
|
|
1603
|
-
|
|
1569
|
+
get search() {
|
|
1570
|
+
return this._resolve('search');
|
|
1571
|
+
}
|
|
1572
|
+
/**
|
|
1573
|
+
* Get sort options
|
|
1574
|
+
* @returns {Array<String>} - Per page
|
|
1575
|
+
* @throws {TypeError}
|
|
1576
|
+
*/
|
|
1604
1577
|
|
|
1605
|
-
// EXTERNAL MODULE: ./src/resources/Dimension.js
|
|
1606
|
-
var Dimension = __webpack_require__(38);
|
|
1607
1578
|
|
|
1608
|
-
|
|
1609
|
-
|
|
1579
|
+
get sort() {
|
|
1580
|
+
return this._resolve('sort');
|
|
1581
|
+
}
|
|
1582
|
+
/**
|
|
1583
|
+
* If deleted items should be shown
|
|
1584
|
+
* @returns {String} - Deleted items filter state
|
|
1585
|
+
* @see {@link DeletedState}
|
|
1586
|
+
*/
|
|
1610
1587
|
|
|
1611
|
-
// EXTERNAL MODULE: ./src/resources/Domain.js
|
|
1612
|
-
var Domain = __webpack_require__(62);
|
|
1613
1588
|
|
|
1614
|
-
|
|
1615
|
-
|
|
1589
|
+
get deleted() {
|
|
1590
|
+
return this._resolve('deleted');
|
|
1591
|
+
}
|
|
1592
|
+
/**
|
|
1593
|
+
* Extra parameters
|
|
1594
|
+
* @returns {Object} - Extra parameters
|
|
1595
|
+
*/
|
|
1616
1596
|
|
|
1617
|
-
// CONCATENATED MODULE: ./src/resources/Faq.js
|
|
1618
|
-
/*
|
|
1619
|
-
* BSD 3-Clause License
|
|
1620
|
-
*
|
|
1621
|
-
* Copyright (c) 2020, Mapcreator
|
|
1622
|
-
* All rights reserved.
|
|
1623
|
-
*
|
|
1624
|
-
* Redistribution and use in source and binary forms, with or without
|
|
1625
|
-
* modification, are permitted provided that the following conditions are met:
|
|
1626
|
-
*
|
|
1627
|
-
* Redistributions of source code must retain the above copyright notice, this
|
|
1628
|
-
* list of conditions and the following disclaimer.
|
|
1629
|
-
*
|
|
1630
|
-
* Redistributions in binary form must reproduce the above copyright notice,
|
|
1631
|
-
* this list of conditions and the following disclaimer in the documentation
|
|
1632
|
-
* and/or other materials provided with the distribution.
|
|
1633
|
-
*
|
|
1634
|
-
* Neither the name of the copyright holder nor the names of its
|
|
1635
|
-
* contributors may be used to endorse or promote products derived from
|
|
1636
|
-
* this software without specific prior written permission.
|
|
1637
|
-
*
|
|
1638
|
-
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
1639
|
-
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
1640
|
-
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
1641
|
-
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
1642
|
-
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
1643
|
-
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
1644
|
-
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
1645
|
-
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
1646
|
-
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
1647
|
-
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
1648
|
-
*/
|
|
1649
1597
|
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1598
|
+
get extra() {
|
|
1599
|
+
return this._resolve('extra');
|
|
1600
|
+
} // endregion instance getters
|
|
1601
|
+
// region instance setters
|
|
1653
1602
|
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1603
|
+
/**
|
|
1604
|
+
* Page number
|
|
1605
|
+
* @param {Number} value - Page number
|
|
1606
|
+
*/
|
|
1658
1607
|
|
|
1659
|
-
}
|
|
1660
|
-
// EXTERNAL MODULE: ./src/resources/Feature.js
|
|
1661
|
-
var Feature = __webpack_require__(39);
|
|
1662
1608
|
|
|
1663
|
-
|
|
1664
|
-
|
|
1609
|
+
set page(value) {
|
|
1610
|
+
this._update('page', value);
|
|
1611
|
+
}
|
|
1612
|
+
/**
|
|
1613
|
+
* Rows per page
|
|
1614
|
+
* @param {Number} value - Per page
|
|
1615
|
+
*/
|
|
1665
1616
|
|
|
1666
|
-
// EXTERNAL MODULE: ./src/resources/FontFamily.js
|
|
1667
|
-
var FontFamily = __webpack_require__(40);
|
|
1668
1617
|
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
* Redistribution and use in source and binary forms, with or without
|
|
1677
|
-
* modification, are permitted provided that the following conditions are met:
|
|
1678
|
-
*
|
|
1679
|
-
* Redistributions of source code must retain the above copyright notice, this
|
|
1680
|
-
* list of conditions and the following disclaimer.
|
|
1681
|
-
*
|
|
1682
|
-
* Redistributions in binary form must reproduce the above copyright notice,
|
|
1683
|
-
* this list of conditions and the following disclaimer in the documentation
|
|
1684
|
-
* and/or other materials provided with the distribution.
|
|
1685
|
-
*
|
|
1686
|
-
* Neither the name of the copyright holder nor the names of its
|
|
1687
|
-
* contributors may be used to endorse or promote products derived from
|
|
1688
|
-
* this software without specific prior written permission.
|
|
1689
|
-
*
|
|
1690
|
-
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
1691
|
-
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
1692
|
-
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
1693
|
-
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
1694
|
-
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
1695
|
-
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
1696
|
-
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
1697
|
-
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
1698
|
-
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
1699
|
-
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
1700
|
-
*/
|
|
1618
|
+
set perPage(value) {
|
|
1619
|
+
this._update('perPage', value);
|
|
1620
|
+
}
|
|
1621
|
+
/**
|
|
1622
|
+
* Pagination offset
|
|
1623
|
+
* @param {Number} value - Offset
|
|
1624
|
+
*/
|
|
1701
1625
|
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1626
|
+
|
|
1627
|
+
set offset(value) {
|
|
1628
|
+
this._update('offset', value);
|
|
1705
1629
|
}
|
|
1630
|
+
/**
|
|
1631
|
+
* Search query
|
|
1632
|
+
* @param {Object<String, String|Array<String>>} value - Search query
|
|
1633
|
+
*/
|
|
1706
1634
|
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
* Redistribution and use in source and binary forms, with or without
|
|
1716
|
-
* modification, are permitted provided that the following conditions are met:
|
|
1717
|
-
*
|
|
1718
|
-
* Redistributions of source code must retain the above copyright notice, this
|
|
1719
|
-
* list of conditions and the following disclaimer.
|
|
1720
|
-
*
|
|
1721
|
-
* Redistributions in binary form must reproduce the above copyright notice,
|
|
1722
|
-
* this list of conditions and the following disclaimer in the documentation
|
|
1723
|
-
* and/or other materials provided with the distribution.
|
|
1724
|
-
*
|
|
1725
|
-
* Neither the name of the copyright holder nor the names of its
|
|
1726
|
-
* contributors may be used to endorse or promote products derived from
|
|
1727
|
-
* this software without specific prior written permission.
|
|
1728
|
-
*
|
|
1729
|
-
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
1730
|
-
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
1731
|
-
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
1732
|
-
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
1733
|
-
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
1734
|
-
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
1735
|
-
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
1736
|
-
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
1737
|
-
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
1738
|
-
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
1739
|
-
*/
|
|
1635
|
+
|
|
1636
|
+
set search(value) {
|
|
1637
|
+
this._update('search', value);
|
|
1638
|
+
}
|
|
1639
|
+
/**
|
|
1640
|
+
* Sort query
|
|
1641
|
+
* @param {Array<String>} value - Sort query
|
|
1642
|
+
*/
|
|
1740
1643
|
|
|
1741
1644
|
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
return 'inset-maps';
|
|
1645
|
+
set sort(value) {
|
|
1646
|
+
this._update('sort', value);
|
|
1745
1647
|
}
|
|
1746
1648
|
/**
|
|
1747
|
-
*
|
|
1748
|
-
* @
|
|
1749
|
-
* @
|
|
1649
|
+
* Deleted items filter state
|
|
1650
|
+
* @param {String} value - Deleted items filter state
|
|
1651
|
+
* @see {@link DeletedState}
|
|
1750
1652
|
*/
|
|
1751
1653
|
|
|
1752
1654
|
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
signal
|
|
1756
|
-
}).json());
|
|
1655
|
+
set deleted(value) {
|
|
1656
|
+
this._update('deleted', value);
|
|
1757
1657
|
}
|
|
1658
|
+
/**
|
|
1659
|
+
* Extra request parameters
|
|
1660
|
+
* @param {Object} value - Extra request parameters
|
|
1661
|
+
*/
|
|
1758
1662
|
|
|
1759
|
-
}
|
|
1760
|
-
// EXTERNAL MODULE: ./src/resources/Job.js
|
|
1761
|
-
var Job = __webpack_require__(42);
|
|
1762
1663
|
|
|
1763
|
-
|
|
1764
|
-
|
|
1664
|
+
set extra(value) {
|
|
1665
|
+
this._update('extra', value);
|
|
1666
|
+
} // endregion instance setters
|
|
1667
|
+
// endregion instance
|
|
1668
|
+
// region static
|
|
1669
|
+
// region getters
|
|
1765
1670
|
|
|
1766
|
-
|
|
1767
|
-
|
|
1671
|
+
/**
|
|
1672
|
+
* Default page number
|
|
1673
|
+
* @returns {Number} - Page number
|
|
1674
|
+
*/
|
|
1768
1675
|
|
|
1769
|
-
// EXTERNAL MODULE: ./src/resources/JobShare.js
|
|
1770
|
-
var JobShare = __webpack_require__(21);
|
|
1771
1676
|
|
|
1772
|
-
|
|
1773
|
-
|
|
1677
|
+
static get page() {
|
|
1678
|
+
return RequestParameters._page || 1;
|
|
1679
|
+
}
|
|
1680
|
+
/**
|
|
1681
|
+
* Default per page
|
|
1682
|
+
* @returns {Number} - Per page
|
|
1683
|
+
*/
|
|
1774
1684
|
|
|
1775
|
-
// EXTERNAL MODULE: ./src/resources/Language.js
|
|
1776
|
-
var Language = __webpack_require__(64);
|
|
1777
1685
|
|
|
1778
|
-
|
|
1779
|
-
|
|
1686
|
+
static get perPage() {
|
|
1687
|
+
return RequestParameters._perPage || Number("12") || 12;
|
|
1688
|
+
}
|
|
1689
|
+
/**
|
|
1690
|
+
* Default pagination offset
|
|
1691
|
+
* @returns {Number} - Offset
|
|
1692
|
+
*/
|
|
1780
1693
|
|
|
1781
|
-
// EXTERNAL MODULE: ./src/resources/Mapstyle.js
|
|
1782
|
-
var Mapstyle = __webpack_require__(44);
|
|
1783
1694
|
|
|
1784
|
-
|
|
1785
|
-
|
|
1695
|
+
static get offset() {
|
|
1696
|
+
return RequestParameters._offset || 0;
|
|
1697
|
+
}
|
|
1698
|
+
/**
|
|
1699
|
+
* Gets the maximum allowed value for perPage
|
|
1700
|
+
* Some users will have a special permission that allows them to fetch more than 50 resources at once
|
|
1701
|
+
* @returns {Number} - Maximum amount of resources per page
|
|
1702
|
+
*/
|
|
1786
1703
|
|
|
1787
|
-
// EXTERNAL MODULE: ./src/resources/Message.js + 1 modules
|
|
1788
|
-
var Message = __webpack_require__(57);
|
|
1789
1704
|
|
|
1790
|
-
|
|
1791
|
-
|
|
1705
|
+
static get maxPerPage() {
|
|
1706
|
+
return RequestParameters._maxPerPage || 50;
|
|
1707
|
+
}
|
|
1708
|
+
/**
|
|
1709
|
+
* Default search query
|
|
1710
|
+
* @returns {Object<String, String|Array<String>>} - Search query
|
|
1711
|
+
*/
|
|
1792
1712
|
|
|
1793
|
-
// EXTERNAL MODULE: ./src/resources/Organisation.js
|
|
1794
|
-
var Organisation = __webpack_require__(54);
|
|
1795
1713
|
|
|
1796
|
-
|
|
1797
|
-
|
|
1714
|
+
static get search() {
|
|
1715
|
+
return RequestParameters._search || {};
|
|
1716
|
+
}
|
|
1717
|
+
/**
|
|
1718
|
+
* Default sort query
|
|
1719
|
+
* @returns {Array<String>} - Sort query
|
|
1720
|
+
*/
|
|
1798
1721
|
|
|
1799
|
-
// EXTERNAL MODULE: ./src/utils/reflection.js
|
|
1800
|
-
var reflection = __webpack_require__(1);
|
|
1801
1722
|
|
|
1802
|
-
|
|
1803
|
-
|
|
1723
|
+
static get sort() {
|
|
1724
|
+
return RequestParameters._sort || [];
|
|
1725
|
+
}
|
|
1726
|
+
/**
|
|
1727
|
+
* Default deleted items filter state
|
|
1728
|
+
* @returns {String|undefined} - Deleted items filter state
|
|
1729
|
+
*/
|
|
1804
1730
|
|
|
1805
|
-
// EXTERNAL MODULE: ./src/resources/base/CrudSetItemBase.js
|
|
1806
|
-
var CrudSetItemBase = __webpack_require__(17);
|
|
1807
1731
|
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
* Redistribution and use in source and binary forms, with or without
|
|
1816
|
-
* modification, are permitted provided that the following conditions are met:
|
|
1817
|
-
*
|
|
1818
|
-
* Redistributions of source code must retain the above copyright notice, this
|
|
1819
|
-
* list of conditions and the following disclaimer.
|
|
1820
|
-
*
|
|
1821
|
-
* Redistributions in binary form must reproduce the above copyright notice,
|
|
1822
|
-
* this list of conditions and the following disclaimer in the documentation
|
|
1823
|
-
* and/or other materials provided with the distribution.
|
|
1824
|
-
*
|
|
1825
|
-
* Neither the name of the copyright holder nor the names of its
|
|
1826
|
-
* contributors may be used to endorse or promote products derived from
|
|
1827
|
-
* this software without specific prior written permission.
|
|
1828
|
-
*
|
|
1829
|
-
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
1830
|
-
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
1831
|
-
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
1832
|
-
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
1833
|
-
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
1834
|
-
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
1835
|
-
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
1836
|
-
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
1837
|
-
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
1838
|
-
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
1839
|
-
*/
|
|
1732
|
+
static get deleted() {
|
|
1733
|
+
return RequestParameters._deleted || void 0;
|
|
1734
|
+
}
|
|
1735
|
+
/**
|
|
1736
|
+
* Default extra request parameters
|
|
1737
|
+
* @returns {Object} - Extra request parameters
|
|
1738
|
+
*/
|
|
1840
1739
|
|
|
1841
1740
|
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
1741
|
+
static get extra() {
|
|
1742
|
+
return RequestParameters._extra || {};
|
|
1743
|
+
} // endregion getters
|
|
1744
|
+
// region setters
|
|
1845
1745
|
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
|
|
1746
|
+
/**
|
|
1747
|
+
* Default page number
|
|
1748
|
+
* @param {Number} value - Page number
|
|
1749
|
+
*/
|
|
1850
1750
|
|
|
1851
|
-
static get parentKey() {
|
|
1852
|
-
return 'product_tour_id';
|
|
1853
|
-
}
|
|
1854
1751
|
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
*
|
|
1863
|
-
* Redistribution and use in source and binary forms, with or without
|
|
1864
|
-
* modification, are permitted provided that the following conditions are met:
|
|
1865
|
-
*
|
|
1866
|
-
* Redistributions of source code must retain the above copyright notice, this
|
|
1867
|
-
* list of conditions and the following disclaimer.
|
|
1868
|
-
*
|
|
1869
|
-
* Redistributions in binary form must reproduce the above copyright notice,
|
|
1870
|
-
* this list of conditions and the following disclaimer in the documentation
|
|
1871
|
-
* and/or other materials provided with the distribution.
|
|
1872
|
-
*
|
|
1873
|
-
* Neither the name of the copyright holder nor the names of its
|
|
1874
|
-
* contributors may be used to endorse or promote products derived from
|
|
1875
|
-
* this software without specific prior written permission.
|
|
1876
|
-
*
|
|
1877
|
-
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
1878
|
-
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
1879
|
-
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
1880
|
-
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
1881
|
-
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
1882
|
-
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
1883
|
-
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
1884
|
-
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
1885
|
-
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
1886
|
-
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
1887
|
-
*/
|
|
1752
|
+
static set page(value) {
|
|
1753
|
+
RequestParameters._page = RequestParameters._validatePage(value);
|
|
1754
|
+
}
|
|
1755
|
+
/**
|
|
1756
|
+
* Default per page
|
|
1757
|
+
* @param {Number} value - Per page
|
|
1758
|
+
*/
|
|
1888
1759
|
|
|
1889
1760
|
|
|
1761
|
+
static set perPage(value) {
|
|
1762
|
+
RequestParameters._perPage = RequestParameters._validatePerPage(value);
|
|
1763
|
+
}
|
|
1764
|
+
/**
|
|
1765
|
+
* Default pagination offset
|
|
1766
|
+
* @param {Number} value - Offset
|
|
1767
|
+
*/
|
|
1890
1768
|
|
|
1891
|
-
/**
|
|
1892
|
-
* Mapstyle set
|
|
1893
|
-
* @extends CrudSetBase
|
|
1894
|
-
*/
|
|
1895
1769
|
|
|
1896
|
-
|
|
1897
|
-
|
|
1898
|
-
return '/product-tours/{id}';
|
|
1770
|
+
static set offset(value) {
|
|
1771
|
+
RequestParameters._offset = RequestParameters._validateOffset(value);
|
|
1899
1772
|
}
|
|
1773
|
+
/**
|
|
1774
|
+
* Sets the maximum allowed value for perPage
|
|
1775
|
+
* Some users will have a special permission that allows them to fetch more than 50 resources at once
|
|
1776
|
+
* @param {Number} value - Maximum amount of resources per page
|
|
1777
|
+
*/
|
|
1900
1778
|
|
|
1901
|
-
static get resourceName() {
|
|
1902
|
-
return 'product-tours';
|
|
1903
|
-
}
|
|
1904
1779
|
|
|
1905
|
-
|
|
1906
|
-
|
|
1780
|
+
static set maxPerPage(value) {
|
|
1781
|
+
RequestParameters._maxPerPage = RequestParameters._validateMaxPerPage(value);
|
|
1907
1782
|
}
|
|
1783
|
+
/**
|
|
1784
|
+
* Default search query
|
|
1785
|
+
* @param {Object<String, String|Array<String>>} value - Search query
|
|
1786
|
+
*/
|
|
1908
1787
|
|
|
1909
|
-
}
|
|
1910
|
-
// EXTERNAL MODULE: ./src/resources/Role.js
|
|
1911
|
-
var Role = __webpack_require__(66);
|
|
1912
1788
|
|
|
1913
|
-
|
|
1914
|
-
|
|
1789
|
+
static set search(value) {
|
|
1790
|
+
RequestParameters._search = RequestParameters._validateSearch(value);
|
|
1791
|
+
}
|
|
1792
|
+
/**
|
|
1793
|
+
* Default sort query
|
|
1794
|
+
* @param {Array<String>} value - Sort query
|
|
1795
|
+
*/
|
|
1915
1796
|
|
|
1916
|
-
// EXTERNAL MODULE: ./src/resources/SvgSet.js
|
|
1917
|
-
var SvgSet = __webpack_require__(45);
|
|
1918
1797
|
|
|
1919
|
-
|
|
1920
|
-
|
|
1798
|
+
static set sort(value) {
|
|
1799
|
+
RequestParameters._sort = RequestParameters._validateSort(value);
|
|
1800
|
+
}
|
|
1801
|
+
/**
|
|
1802
|
+
* Default deleted items filter state
|
|
1803
|
+
* @param {String} value - Deleted items filter state
|
|
1804
|
+
*/
|
|
1921
1805
|
|
|
1922
|
-
// CONCATENATED MODULE: ./src/resources/TagType.js
|
|
1923
|
-
/*
|
|
1924
|
-
* BSD 3-Clause License
|
|
1925
|
-
*
|
|
1926
|
-
* Copyright (c) 2020, Mapcreator
|
|
1927
|
-
* All rights reserved.
|
|
1928
|
-
*
|
|
1929
|
-
* Redistribution and use in source and binary forms, with or without
|
|
1930
|
-
* modification, are permitted provided that the following conditions are met:
|
|
1931
|
-
*
|
|
1932
|
-
* Redistributions of source code must retain the above copyright notice, this
|
|
1933
|
-
* list of conditions and the following disclaimer.
|
|
1934
|
-
*
|
|
1935
|
-
* Redistributions in binary form must reproduce the above copyright notice,
|
|
1936
|
-
* this list of conditions and the following disclaimer in the documentation
|
|
1937
|
-
* and/or other materials provided with the distribution.
|
|
1938
|
-
*
|
|
1939
|
-
* Neither the name of the copyright holder nor the names of its
|
|
1940
|
-
* contributors may be used to endorse or promote products derived from
|
|
1941
|
-
* this software without specific prior written permission.
|
|
1942
|
-
*
|
|
1943
|
-
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
1944
|
-
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
1945
|
-
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
1946
|
-
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
1947
|
-
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
1948
|
-
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
1949
|
-
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
1950
|
-
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
1951
|
-
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
1952
|
-
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
1953
|
-
*/
|
|
1954
1806
|
|
|
1807
|
+
static set deleted(value) {
|
|
1808
|
+
RequestParameters._deleted = RequestParameters._validateDeleted(value);
|
|
1809
|
+
}
|
|
1810
|
+
/**
|
|
1811
|
+
* Default extra request parameters
|
|
1812
|
+
* @param {Object} value - Extra request parameters
|
|
1813
|
+
*/
|
|
1955
1814
|
|
|
1956
|
-
/**
|
|
1957
|
-
* TagType resource
|
|
1958
|
-
* @mixes CrudSetBase
|
|
1959
|
-
*/
|
|
1960
1815
|
|
|
1961
|
-
|
|
1962
|
-
|
|
1963
|
-
|
|
1964
|
-
|
|
1816
|
+
static set extra(value) {
|
|
1817
|
+
RequestParameters._extra = RequestParameters._validateExtra(value);
|
|
1818
|
+
} // endregion setters
|
|
1819
|
+
// endregion static
|
|
1820
|
+
// region validators
|
|
1965
1821
|
|
|
1966
|
-
static get resourceName() {
|
|
1967
|
-
return 'tag-types';
|
|
1968
|
-
}
|
|
1969
1822
|
/**
|
|
1970
|
-
*
|
|
1971
|
-
*
|
|
1823
|
+
* Validators should work the same as laravel's ::validate method. This means
|
|
1824
|
+
* this means that they will throw a TypeError or return a normalized result.
|
|
1972
1825
|
*/
|
|
1973
1826
|
|
|
1974
1827
|
|
|
1975
|
-
|
|
1976
|
-
|
|
1977
|
-
|
|
1828
|
+
static _validatePage(value) {
|
|
1829
|
+
if (typeof value !== 'number') {
|
|
1830
|
+
throw new TypeError(`Expected page to be of type 'number' instead got '${typeof value}'`);
|
|
1831
|
+
}
|
|
1978
1832
|
|
|
1979
|
-
|
|
1980
|
-
|
|
1981
|
-
|
|
1833
|
+
if (value < 0) {
|
|
1834
|
+
throw new TypeError('Page must be a positive number');
|
|
1835
|
+
}
|
|
1982
1836
|
|
|
1983
|
-
|
|
1984
|
-
|
|
1985
|
-
|
|
1986
|
-
*
|
|
1987
|
-
* Copyright (c) 2020, Mapcreator
|
|
1988
|
-
* All rights reserved.
|
|
1989
|
-
*
|
|
1990
|
-
* Redistribution and use in source and binary forms, with or without
|
|
1991
|
-
* modification, are permitted provided that the following conditions are met:
|
|
1992
|
-
*
|
|
1993
|
-
* Redistributions of source code must retain the above copyright notice, this
|
|
1994
|
-
* list of conditions and the following disclaimer.
|
|
1995
|
-
*
|
|
1996
|
-
* Redistributions in binary form must reproduce the above copyright notice,
|
|
1997
|
-
* this list of conditions and the following disclaimer in the documentation
|
|
1998
|
-
* and/or other materials provided with the distribution.
|
|
1999
|
-
*
|
|
2000
|
-
* Neither the name of the copyright holder nor the names of its
|
|
2001
|
-
* contributors may be used to endorse or promote products derived from
|
|
2002
|
-
* this software without specific prior written permission.
|
|
2003
|
-
*
|
|
2004
|
-
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
2005
|
-
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
2006
|
-
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
2007
|
-
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
2008
|
-
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
2009
|
-
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
2010
|
-
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
2011
|
-
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
2012
|
-
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
2013
|
-
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
2014
|
-
*/
|
|
1837
|
+
if (Number.isNaN(value) || !Number.isFinite(value)) {
|
|
1838
|
+
throw new TypeError('Page must be a real number');
|
|
1839
|
+
}
|
|
2015
1840
|
|
|
2016
|
-
|
|
2017
|
-
|
|
2018
|
-
|
|
1841
|
+
if (Math.round(value) !== value) {
|
|
1842
|
+
throw new TypeError('Page must be a natural number');
|
|
1843
|
+
}
|
|
1844
|
+
|
|
1845
|
+
return Math.round(value);
|
|
2019
1846
|
}
|
|
2020
1847
|
|
|
2021
|
-
|
|
2022
|
-
|
|
2023
|
-
|
|
2024
|
-
|
|
2025
|
-
*
|
|
2026
|
-
* Copyright (c) 2020, Mapcreator
|
|
2027
|
-
* All rights reserved.
|
|
2028
|
-
*
|
|
2029
|
-
* Redistribution and use in source and binary forms, with or without
|
|
2030
|
-
* modification, are permitted provided that the following conditions are met:
|
|
2031
|
-
*
|
|
2032
|
-
* Redistributions of source code must retain the above copyright notice, this
|
|
2033
|
-
* list of conditions and the following disclaimer.
|
|
2034
|
-
*
|
|
2035
|
-
* Redistributions in binary form must reproduce the above copyright notice,
|
|
2036
|
-
* this list of conditions and the following disclaimer in the documentation
|
|
2037
|
-
* and/or other materials provided with the distribution.
|
|
2038
|
-
*
|
|
2039
|
-
* Neither the name of the copyright holder nor the names of its
|
|
2040
|
-
* contributors may be used to endorse or promote products derived from
|
|
2041
|
-
* this software without specific prior written permission.
|
|
2042
|
-
*
|
|
2043
|
-
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
2044
|
-
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
2045
|
-
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
2046
|
-
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
2047
|
-
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
2048
|
-
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
2049
|
-
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
2050
|
-
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
2051
|
-
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
2052
|
-
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
2053
|
-
*/
|
|
1848
|
+
static _validatePerPage(value) {
|
|
1849
|
+
if (typeof value !== 'number') {
|
|
1850
|
+
throw new TypeError(`Expected per page to be of type 'Number' instead got '${Object(_utils_reflection__WEBPACK_IMPORTED_MODULE_4__["getTypeName"])(value)}'`);
|
|
1851
|
+
}
|
|
2054
1852
|
|
|
2055
|
-
|
|
2056
|
-
|
|
2057
|
-
|
|
2058
|
-
}
|
|
1853
|
+
if (value <= 0) {
|
|
1854
|
+
throw new TypeError('Per page must be greater than zero');
|
|
1855
|
+
}
|
|
2059
1856
|
|
|
2060
|
-
|
|
2061
|
-
|
|
2062
|
-
|
|
2063
|
-
|
|
2064
|
-
|
|
2065
|
-
|
|
2066
|
-
|
|
2067
|
-
|
|
2068
|
-
|
|
2069
|
-
|
|
2070
|
-
|
|
2071
|
-
|
|
2072
|
-
* list of conditions and the following disclaimer.
|
|
2073
|
-
*
|
|
2074
|
-
* Redistributions in binary form must reproduce the above copyright notice,
|
|
2075
|
-
* this list of conditions and the following disclaimer in the documentation
|
|
2076
|
-
* and/or other materials provided with the distribution.
|
|
2077
|
-
*
|
|
2078
|
-
* Neither the name of the copyright holder nor the names of its
|
|
2079
|
-
* contributors may be used to endorse or promote products derived from
|
|
2080
|
-
* this software without specific prior written permission.
|
|
2081
|
-
*
|
|
2082
|
-
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
2083
|
-
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
2084
|
-
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
2085
|
-
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
2086
|
-
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
2087
|
-
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
2088
|
-
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
2089
|
-
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
2090
|
-
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
2091
|
-
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
2092
|
-
*/
|
|
1857
|
+
if (Number.isNaN(value) || !Number.isFinite(value)) {
|
|
1858
|
+
throw new TypeError('Per page must be a real number');
|
|
1859
|
+
}
|
|
1860
|
+
|
|
1861
|
+
if (Math.round(value) !== value) {
|
|
1862
|
+
throw new TypeError('Per page must be a natural number');
|
|
1863
|
+
} // Upper limit is 50 by default
|
|
1864
|
+
|
|
1865
|
+
|
|
1866
|
+
value = Math.min(RequestParameters.maxPerPage, value);
|
|
1867
|
+
return value;
|
|
1868
|
+
}
|
|
2093
1869
|
|
|
1870
|
+
static _validateOffset(value) {
|
|
1871
|
+
if (typeof value !== 'number') {
|
|
1872
|
+
throw new TypeError(`Expected offset to be of type 'Number' instead got '${Object(_utils_reflection__WEBPACK_IMPORTED_MODULE_4__["getTypeName"])(value)}'`);
|
|
1873
|
+
}
|
|
2094
1874
|
|
|
1875
|
+
if (value < 0) {
|
|
1876
|
+
throw new TypeError('Offset must be a positive number');
|
|
1877
|
+
}
|
|
2095
1878
|
|
|
1879
|
+
if (Number.isNaN(value) || !Number.isFinite(value)) {
|
|
1880
|
+
throw new TypeError('Offset must be a real number');
|
|
1881
|
+
}
|
|
2096
1882
|
|
|
1883
|
+
if (Math.round(value) !== value) {
|
|
1884
|
+
throw new TypeError('Offset must be a natural number');
|
|
1885
|
+
}
|
|
2097
1886
|
|
|
1887
|
+
return value;
|
|
1888
|
+
}
|
|
2098
1889
|
|
|
1890
|
+
static _validateMaxPerPage(value) {
|
|
1891
|
+
if (typeof value !== 'number') {
|
|
1892
|
+
throw new TypeError(`Expected page to be of type 'Number' instead got '${Object(_utils_reflection__WEBPACK_IMPORTED_MODULE_4__["getTypeName"])(value)}'`);
|
|
1893
|
+
}
|
|
2099
1894
|
|
|
1895
|
+
if (value < 1) {
|
|
1896
|
+
throw new TypeError('Value must be greater or equal to 1');
|
|
1897
|
+
}
|
|
2100
1898
|
|
|
1899
|
+
return value;
|
|
1900
|
+
}
|
|
2101
1901
|
|
|
1902
|
+
static _validateSearch(value) {
|
|
1903
|
+
if (typeof value !== 'object' || Array.isArray(value)) {
|
|
1904
|
+
throw new TypeError(`Expected value to be of type "Object" got "${Object(_utils_reflection__WEBPACK_IMPORTED_MODULE_4__["getTypeName"])(value)}"`);
|
|
1905
|
+
} // Normalization macro
|
|
2102
1906
|
|
|
2103
1907
|
|
|
1908
|
+
const normalize = x => typeof x === 'number' ? x.toString() : x;
|
|
2104
1909
|
|
|
1910
|
+
for (let key of Object.keys(value)) {
|
|
1911
|
+
key = normalize(key);
|
|
1912
|
+
value[key] = normalize(value[key]);
|
|
2105
1913
|
|
|
1914
|
+
if (typeof key !== 'string') {
|
|
1915
|
+
throw new TypeError(`Expected key to be of type "String" got "${Object(_utils_reflection__WEBPACK_IMPORTED_MODULE_4__["getTypeName"])(key)}"`);
|
|
1916
|
+
}
|
|
2106
1917
|
|
|
1918
|
+
if (Array.isArray(value[key])) {
|
|
1919
|
+
if (value[key].length > 0) {
|
|
1920
|
+
for (const query of value[key]) {
|
|
1921
|
+
if (!['string', 'number', 'boolean'].includes(typeof query) && query !== null) {
|
|
1922
|
+
throw new TypeError(`Expected query for "${key}" to be of type "String", "Boolean", "Number" or "null" got "${Object(_utils_reflection__WEBPACK_IMPORTED_MODULE_4__["getTypeName"])(query)}"`);
|
|
1923
|
+
}
|
|
1924
|
+
}
|
|
1925
|
+
} else {
|
|
1926
|
+
// Drop empty nodes
|
|
1927
|
+
delete value[key];
|
|
1928
|
+
}
|
|
1929
|
+
} else if (value[key] === null) {
|
|
1930
|
+
delete value[key];
|
|
1931
|
+
} else if (!['string', 'number', 'boolean'].includes(typeof value[key]) && value[key] !== null) {
|
|
1932
|
+
throw new TypeError(`Expected query value to be of type "String", "Boolean", "Number", "Array" or "null" got "${Object(_utils_reflection__WEBPACK_IMPORTED_MODULE_4__["getTypeName"])(value[key])}"`);
|
|
1933
|
+
}
|
|
1934
|
+
}
|
|
2107
1935
|
|
|
1936
|
+
return value;
|
|
1937
|
+
}
|
|
2108
1938
|
|
|
1939
|
+
static _validateSort(value) {
|
|
1940
|
+
if (typeof value === 'string') {
|
|
1941
|
+
return this._validateSort(value.split(','));
|
|
1942
|
+
}
|
|
2109
1943
|
|
|
1944
|
+
if (!(value instanceof Array)) {
|
|
1945
|
+
throw new TypeError(`Expected sort value to be of type "Array" got "${Object(_utils_reflection__WEBPACK_IMPORTED_MODULE_4__["getTypeName"])(value)}"`);
|
|
1946
|
+
} // Array keys type checking
|
|
2110
1947
|
|
|
2111
1948
|
|
|
1949
|
+
value.filter(x => typeof x !== 'string').forEach(x => {
|
|
1950
|
+
throw new TypeError(`Expected sort array values to be of type "String" got "${Object(_utils_reflection__WEBPACK_IMPORTED_MODULE_4__["getTypeName"])(x)}"`);
|
|
1951
|
+
}); // Don't do regex matching because it's something
|
|
1952
|
+
// we can just let the server do for us.
|
|
2112
1953
|
|
|
1954
|
+
return value;
|
|
1955
|
+
}
|
|
2113
1956
|
|
|
1957
|
+
static _validateDeleted(value) {
|
|
1958
|
+
if (typeof value === 'undefined') {
|
|
1959
|
+
return value;
|
|
1960
|
+
}
|
|
2114
1961
|
|
|
1962
|
+
if (typeof value !== 'string') {
|
|
1963
|
+
throw new TypeError(`Expected deleted to be of type "string" got "${Object(_utils_reflection__WEBPACK_IMPORTED_MODULE_4__["getTypeName"])(value)}". See: DeletedState`);
|
|
1964
|
+
}
|
|
2115
1965
|
|
|
1966
|
+
value = value.toLowerCase();
|
|
1967
|
+
const possible = _enums__WEBPACK_IMPORTED_MODULE_2__["DeletedState"].values();
|
|
2116
1968
|
|
|
1969
|
+
if (!possible.includes(value)) {
|
|
1970
|
+
throw new TypeError(`Expected deleted to be one of ${possible.join(', ')}, got ${value}`);
|
|
1971
|
+
}
|
|
2117
1972
|
|
|
1973
|
+
return value;
|
|
1974
|
+
}
|
|
2118
1975
|
|
|
1976
|
+
static _validateExtra(value) {
|
|
1977
|
+
if (typeof value !== 'object') {
|
|
1978
|
+
throw new TypeError(`Expected extra to be of type 'object', got '${Object(_utils_reflection__WEBPACK_IMPORTED_MODULE_4__["getTypeName"])(value)}'`);
|
|
1979
|
+
}
|
|
2119
1980
|
|
|
1981
|
+
return value;
|
|
1982
|
+
} // endregion validators
|
|
2120
1983
|
|
|
2121
1984
|
|
|
1985
|
+
_resolve(name) {
|
|
1986
|
+
const _name = `_${name}`;
|
|
2122
1987
|
|
|
1988
|
+
if (!this[_name]) {
|
|
1989
|
+
// Confuse esdoc
|
|
1990
|
+
(this || {})[_name] = RequestParameters[name];
|
|
1991
|
+
}
|
|
2123
1992
|
|
|
1993
|
+
return this[_name];
|
|
1994
|
+
}
|
|
2124
1995
|
|
|
1996
|
+
_update(name, value, preventEvent = false) {
|
|
1997
|
+
const _name = `_${name}`;
|
|
1998
|
+
value = RequestParameters[`_validate${Object(case__WEBPACK_IMPORTED_MODULE_0__["pascal"])(name)}`](value);
|
|
1999
|
+
(this || {})[_name] = value; // Weird syntax confuses esdoc
|
|
2125
2000
|
|
|
2001
|
+
if (!preventEvent) {
|
|
2002
|
+
/**
|
|
2003
|
+
* Change event.
|
|
2004
|
+
*
|
|
2005
|
+
* @event RequestParameters#change
|
|
2006
|
+
* @type {Array<object>}
|
|
2007
|
+
* @property {string} name - Parameter name
|
|
2008
|
+
* @property {*} value - New value
|
|
2009
|
+
*/
|
|
2010
|
+
this.emit('change', [{
|
|
2011
|
+
name,
|
|
2012
|
+
value
|
|
2013
|
+
}]);
|
|
2014
|
+
this.emit(`change:${name}`, value);
|
|
2015
|
+
}
|
|
2126
2016
|
|
|
2017
|
+
return value;
|
|
2018
|
+
} // region utils
|
|
2127
2019
|
|
|
2020
|
+
/**
|
|
2021
|
+
* Urlencode parameters
|
|
2022
|
+
* @returns {string} - HTTP query
|
|
2023
|
+
*/
|
|
2128
2024
|
|
|
2129
2025
|
|
|
2026
|
+
encode() {
|
|
2027
|
+
return Object(_utils_requests__WEBPACK_IMPORTED_MODULE_5__["encodeQueryString"])(this.toParameterObject());
|
|
2028
|
+
}
|
|
2029
|
+
/**
|
|
2030
|
+
* Convert to object
|
|
2031
|
+
* @returns {Object} - Object
|
|
2032
|
+
*/
|
|
2130
2033
|
|
|
2131
2034
|
|
|
2035
|
+
toObject() {
|
|
2036
|
+
return RequestParameters.keys().reduce((obj, key) => {
|
|
2037
|
+
obj[Object(case__WEBPACK_IMPORTED_MODULE_0__["snake"])(key)] = this._resolve(key);
|
|
2038
|
+
return obj;
|
|
2039
|
+
}, {});
|
|
2040
|
+
}
|
|
2041
|
+
/**
|
|
2042
|
+
* Convert to object
|
|
2043
|
+
* @returns {Object} - Object
|
|
2044
|
+
*/
|
|
2132
2045
|
|
|
2133
2046
|
|
|
2047
|
+
toParameterObject() {
|
|
2048
|
+
const data = {};
|
|
2049
|
+
RequestParameters.keys().forEach(key => {
|
|
2050
|
+
// Skip extra key
|
|
2051
|
+
if (key === 'extra') {
|
|
2052
|
+
return;
|
|
2053
|
+
}
|
|
2134
2054
|
|
|
2055
|
+
data[Object(case__WEBPACK_IMPORTED_MODULE_0__["snake"])(key)] = this._resolve(key);
|
|
2056
|
+
}); // Fix column names for sort
|
|
2135
2057
|
|
|
2058
|
+
data.sort = data.sort.map(case__WEBPACK_IMPORTED_MODULE_0__["snake"]).map(x => x.replace(/^_/, '-')).join(',');
|
|
2136
2059
|
|
|
2060
|
+
if (data.offset === 0) {
|
|
2061
|
+
delete data.offset;
|
|
2062
|
+
} // Fix column names for search
|
|
2137
2063
|
|
|
2138
2064
|
|
|
2065
|
+
for (const key of Object.keys(data.search)) {
|
|
2066
|
+
const snakeKey = key.split(',').map(case__WEBPACK_IMPORTED_MODULE_0__["snake"]).join(',');
|
|
2139
2067
|
|
|
2068
|
+
if (key !== snakeKey) {
|
|
2069
|
+
data.search[snakeKey] = data.search[key];
|
|
2070
|
+
delete data.search[key];
|
|
2071
|
+
}
|
|
2072
|
+
} // Cast search values
|
|
2140
2073
|
|
|
2141
2074
|
|
|
2075
|
+
for (const key of Object.keys(data.search)) {
|
|
2076
|
+
if (typeof data.search[key] === 'boolean') {
|
|
2077
|
+
data.search[key] = Number(data.search[key]);
|
|
2078
|
+
}
|
|
2142
2079
|
|
|
2080
|
+
if (data.search[key] === null) {
|
|
2081
|
+
data.search[key] = '';
|
|
2082
|
+
}
|
|
2083
|
+
} // Overwrite using extra properties
|
|
2143
2084
|
|
|
2144
2085
|
|
|
2086
|
+
const extra = this._resolve('extra');
|
|
2145
2087
|
|
|
2088
|
+
for (const key of Object.keys(extra)) {
|
|
2089
|
+
data[key] = extra[key];
|
|
2090
|
+
}
|
|
2146
2091
|
|
|
2092
|
+
for (const key of Object.keys(data)) {
|
|
2093
|
+
if (typeof data[key] === 'undefined') {
|
|
2094
|
+
delete data[key];
|
|
2095
|
+
}
|
|
2096
|
+
}
|
|
2147
2097
|
|
|
2098
|
+
return data;
|
|
2099
|
+
}
|
|
2100
|
+
/**
|
|
2101
|
+
* Copy object
|
|
2102
|
+
* @returns {RequestParameters} - Copy
|
|
2103
|
+
*/
|
|
2148
2104
|
|
|
2149
2105
|
|
|
2106
|
+
copy() {
|
|
2107
|
+
return new RequestParameters(this.toObject());
|
|
2108
|
+
}
|
|
2109
|
+
/**
|
|
2110
|
+
* Different parameters
|
|
2111
|
+
* @returns {Array<String>} - keys
|
|
2112
|
+
*/
|
|
2150
2113
|
|
|
2151
2114
|
|
|
2115
|
+
static keys() {
|
|
2116
|
+
// enumeration is disabled for properties
|
|
2117
|
+
return ['page', 'perPage', 'offset', 'search', 'sort', 'deleted', 'extra'];
|
|
2118
|
+
}
|
|
2119
|
+
/**
|
|
2120
|
+
* Generates a cache token
|
|
2121
|
+
* @returns {string} - Cache token
|
|
2122
|
+
*/
|
|
2152
2123
|
|
|
2153
2124
|
|
|
2125
|
+
token() {
|
|
2126
|
+
const data = this.toObject();
|
|
2127
|
+
delete data.page;
|
|
2128
|
+
delete data['per_page'];
|
|
2129
|
+
return Object(_utils_hash__WEBPACK_IMPORTED_MODULE_3__["hashObject"])(data);
|
|
2130
|
+
}
|
|
2131
|
+
/**
|
|
2132
|
+
* Resets all parameters back to default
|
|
2133
|
+
*/
|
|
2154
2134
|
|
|
2155
2135
|
|
|
2136
|
+
static resetDefaults() {
|
|
2137
|
+
for (const key of RequestParameters.keys()) {
|
|
2138
|
+
delete RequestParameters[`_${key}`];
|
|
2139
|
+
}
|
|
2140
|
+
}
|
|
2141
|
+
/**
|
|
2142
|
+
* Apply parameters from object
|
|
2143
|
+
* @param {object|RequestParameters} params - parameters
|
|
2144
|
+
* @returns {Object[]} - Array containing the updated values
|
|
2145
|
+
* @example
|
|
2146
|
+
* const params = new RequestParameters({perPage: 12});
|
|
2147
|
+
*
|
|
2148
|
+
* params.perPage === 12;
|
|
2149
|
+
*
|
|
2150
|
+
* params.apply({perPage: 50});
|
|
2151
|
+
*
|
|
2152
|
+
* params.perPage === 50;
|
|
2153
|
+
*/
|
|
2156
2154
|
|
|
2157
2155
|
|
|
2156
|
+
apply(params) {
|
|
2157
|
+
if (params instanceof RequestParameters) {
|
|
2158
|
+
params = params.toObject();
|
|
2159
|
+
}
|
|
2158
2160
|
|
|
2161
|
+
const out = [];
|
|
2159
2162
|
|
|
2163
|
+
for (const key of Object.keys(params)) {
|
|
2164
|
+
const Key = Object(case__WEBPACK_IMPORTED_MODULE_0__["camel"])(key);
|
|
2160
2165
|
|
|
2166
|
+
if (key[0] === '_' || !RequestParameters.keys().includes(Key)) {
|
|
2167
|
+
continue;
|
|
2168
|
+
}
|
|
2161
2169
|
|
|
2170
|
+
out.push({
|
|
2171
|
+
name: Key,
|
|
2172
|
+
value: this._update(Key, params[key], true)
|
|
2173
|
+
});
|
|
2174
|
+
}
|
|
2162
2175
|
|
|
2176
|
+
this.emit('change', out);
|
|
2163
2177
|
|
|
2178
|
+
for (const {
|
|
2179
|
+
name,
|
|
2180
|
+
value
|
|
2181
|
+
} of out) {
|
|
2182
|
+
this.emit(`change:${name}`, value);
|
|
2183
|
+
}
|
|
2164
2184
|
|
|
2185
|
+
return out;
|
|
2186
|
+
} // endregion utils
|
|
2165
2187
|
|
|
2166
|
-
/**
|
|
2167
|
-
* @private
|
|
2168
|
-
*/
|
|
2169
2188
|
|
|
2170
|
-
|
|
2171
|
-
CrudBase: CrudBase["default"],
|
|
2172
|
-
CrudSetBase: CrudSetBase["default"],
|
|
2173
|
-
ResourceBase: ResourceBase["default"]
|
|
2174
|
-
};
|
|
2189
|
+
}
|
|
2175
2190
|
|
|
2176
2191
|
/***/ }),
|
|
2177
2192
|
/* 5 */
|
|
@@ -3167,7 +3182,6 @@ const JobShareVisibility = new Enum["default"](['private', 'organisation', 'publ
|
|
|
3167
3182
|
|
|
3168
3183
|
|
|
3169
3184
|
|
|
3170
|
-
|
|
3171
3185
|
/***/ }),
|
|
3172
3186
|
/* 9 */
|
|
3173
3187
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
@@ -3572,6 +3586,99 @@ function windowTest(str) {
|
|
|
3572
3586
|
/* 14 */
|
|
3573
3587
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
3574
3588
|
|
|
3589
|
+
"use strict";
|
|
3590
|
+
__webpack_require__.r(__webpack_exports__);
|
|
3591
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return CrudSetItemBase; });
|
|
3592
|
+
/* harmony import */ var _errors_AbstractError__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(11);
|
|
3593
|
+
/* harmony import */ var _CrudBase__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2);
|
|
3594
|
+
/* harmony import */ var case__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7);
|
|
3595
|
+
/* harmony import */ var case__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(case__WEBPACK_IMPORTED_MODULE_2__);
|
|
3596
|
+
/*
|
|
3597
|
+
* BSD 3-Clause License
|
|
3598
|
+
*
|
|
3599
|
+
* Copyright (c) 2020, Mapcreator
|
|
3600
|
+
* All rights reserved.
|
|
3601
|
+
*
|
|
3602
|
+
* Redistribution and use in source and binary forms, with or without
|
|
3603
|
+
* modification, are permitted provided that the following conditions are met:
|
|
3604
|
+
*
|
|
3605
|
+
* Redistributions of source code must retain the above copyright notice, this
|
|
3606
|
+
* list of conditions and the following disclaimer.
|
|
3607
|
+
*
|
|
3608
|
+
* Redistributions in binary form must reproduce the above copyright notice,
|
|
3609
|
+
* this list of conditions and the following disclaimer in the documentation
|
|
3610
|
+
* and/or other materials provided with the distribution.
|
|
3611
|
+
*
|
|
3612
|
+
* Neither the name of the copyright holder nor the names of its
|
|
3613
|
+
* contributors may be used to endorse or promote products derived from
|
|
3614
|
+
* this software without specific prior written permission.
|
|
3615
|
+
*
|
|
3616
|
+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
3617
|
+
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
3618
|
+
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
3619
|
+
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
3620
|
+
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
3621
|
+
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
3622
|
+
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
3623
|
+
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
3624
|
+
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
3625
|
+
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
3626
|
+
*/
|
|
3627
|
+
|
|
3628
|
+
|
|
3629
|
+
|
|
3630
|
+
/**
|
|
3631
|
+
* Items that are part of a set
|
|
3632
|
+
* @abstract
|
|
3633
|
+
*/
|
|
3634
|
+
|
|
3635
|
+
class CrudSetItemBase extends _CrudBase__WEBPACK_IMPORTED_MODULE_1__["default"] {
|
|
3636
|
+
/**
|
|
3637
|
+
* @param {Mapcreator} api - Api instance
|
|
3638
|
+
* @param {Object<String, *>} data - Item data
|
|
3639
|
+
*/
|
|
3640
|
+
constructor(api, data = {}) {
|
|
3641
|
+
super(api, data);
|
|
3642
|
+
|
|
3643
|
+
if (this.constructor === _CrudBase__WEBPACK_IMPORTED_MODULE_1__["default"]) {
|
|
3644
|
+
throw new _errors_AbstractError__WEBPACK_IMPORTED_MODULE_0__["AbstractClassError"]();
|
|
3645
|
+
}
|
|
3646
|
+
}
|
|
3647
|
+
|
|
3648
|
+
get hasParent() {
|
|
3649
|
+
const parentKey = Object(case__WEBPACK_IMPORTED_MODULE_2__["camel"])(this.constructor.parentKey);
|
|
3650
|
+
return this.hasOwnProperty(parentKey);
|
|
3651
|
+
}
|
|
3652
|
+
/**
|
|
3653
|
+
* Get the parent id
|
|
3654
|
+
* @returns {number|undefined} - Parent number
|
|
3655
|
+
*/
|
|
3656
|
+
|
|
3657
|
+
|
|
3658
|
+
get parentId() {
|
|
3659
|
+
if (this.hasParent) {
|
|
3660
|
+
const parentKey = Object(case__WEBPACK_IMPORTED_MODULE_2__["camel"])(this.constructor.parentKey);
|
|
3661
|
+
return Number(this[parentKey]);
|
|
3662
|
+
}
|
|
3663
|
+
|
|
3664
|
+
return void 0;
|
|
3665
|
+
}
|
|
3666
|
+
/**
|
|
3667
|
+
* Get the parent key
|
|
3668
|
+
* @returns {string} - Parent key
|
|
3669
|
+
*/
|
|
3670
|
+
|
|
3671
|
+
|
|
3672
|
+
static get parentKey() {
|
|
3673
|
+
return this.resourceName.replace(/s$/, '_set_id');
|
|
3674
|
+
}
|
|
3675
|
+
|
|
3676
|
+
}
|
|
3677
|
+
|
|
3678
|
+
/***/ }),
|
|
3679
|
+
/* 15 */
|
|
3680
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
3681
|
+
|
|
3575
3682
|
"use strict";
|
|
3576
3683
|
__webpack_require__.r(__webpack_exports__);
|
|
3577
3684
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return ResourceProxy; });
|
|
@@ -3694,7 +3801,7 @@ class ResourceProxy extends _SimpleResourceProxy__WEBPACK_IMPORTED_MODULE_1__["d
|
|
|
3694
3801
|
}
|
|
3695
3802
|
|
|
3696
3803
|
/***/ }),
|
|
3697
|
-
/*
|
|
3804
|
+
/* 16 */
|
|
3698
3805
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
3699
3806
|
|
|
3700
3807
|
"use strict";
|
|
@@ -3880,7 +3987,7 @@ class OAuthToken {
|
|
|
3880
3987
|
}
|
|
3881
3988
|
|
|
3882
3989
|
/***/ }),
|
|
3883
|
-
/*
|
|
3990
|
+
/* 17 */
|
|
3884
3991
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
3885
3992
|
|
|
3886
3993
|
"use strict";
|
|
@@ -3973,99 +4080,6 @@ class CrudSetBase extends _CrudBase__WEBPACK_IMPORTED_MODULE_1__["default"] {
|
|
|
3973
4080
|
|
|
3974
4081
|
}
|
|
3975
4082
|
|
|
3976
|
-
/***/ }),
|
|
3977
|
-
/* 17 */
|
|
3978
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
3979
|
-
|
|
3980
|
-
"use strict";
|
|
3981
|
-
__webpack_require__.r(__webpack_exports__);
|
|
3982
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return CrudSetItemBase; });
|
|
3983
|
-
/* harmony import */ var _errors_AbstractError__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(11);
|
|
3984
|
-
/* harmony import */ var _CrudBase__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2);
|
|
3985
|
-
/* harmony import */ var case__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7);
|
|
3986
|
-
/* harmony import */ var case__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(case__WEBPACK_IMPORTED_MODULE_2__);
|
|
3987
|
-
/*
|
|
3988
|
-
* BSD 3-Clause License
|
|
3989
|
-
*
|
|
3990
|
-
* Copyright (c) 2020, Mapcreator
|
|
3991
|
-
* All rights reserved.
|
|
3992
|
-
*
|
|
3993
|
-
* Redistribution and use in source and binary forms, with or without
|
|
3994
|
-
* modification, are permitted provided that the following conditions are met:
|
|
3995
|
-
*
|
|
3996
|
-
* Redistributions of source code must retain the above copyright notice, this
|
|
3997
|
-
* list of conditions and the following disclaimer.
|
|
3998
|
-
*
|
|
3999
|
-
* Redistributions in binary form must reproduce the above copyright notice,
|
|
4000
|
-
* this list of conditions and the following disclaimer in the documentation
|
|
4001
|
-
* and/or other materials provided with the distribution.
|
|
4002
|
-
*
|
|
4003
|
-
* Neither the name of the copyright holder nor the names of its
|
|
4004
|
-
* contributors may be used to endorse or promote products derived from
|
|
4005
|
-
* this software without specific prior written permission.
|
|
4006
|
-
*
|
|
4007
|
-
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
4008
|
-
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
4009
|
-
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
4010
|
-
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
4011
|
-
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
4012
|
-
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
4013
|
-
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
4014
|
-
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
4015
|
-
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
4016
|
-
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
4017
|
-
*/
|
|
4018
|
-
|
|
4019
|
-
|
|
4020
|
-
|
|
4021
|
-
/**
|
|
4022
|
-
* Items that are part of a set
|
|
4023
|
-
* @abstract
|
|
4024
|
-
*/
|
|
4025
|
-
|
|
4026
|
-
class CrudSetItemBase extends _CrudBase__WEBPACK_IMPORTED_MODULE_1__["default"] {
|
|
4027
|
-
/**
|
|
4028
|
-
* @param {Mapcreator} api - Api instance
|
|
4029
|
-
* @param {Object<String, *>} data - Item data
|
|
4030
|
-
*/
|
|
4031
|
-
constructor(api, data = {}) {
|
|
4032
|
-
super(api, data);
|
|
4033
|
-
|
|
4034
|
-
if (this.constructor === _CrudBase__WEBPACK_IMPORTED_MODULE_1__["default"]) {
|
|
4035
|
-
throw new _errors_AbstractError__WEBPACK_IMPORTED_MODULE_0__["AbstractClassError"]();
|
|
4036
|
-
}
|
|
4037
|
-
}
|
|
4038
|
-
|
|
4039
|
-
get hasParent() {
|
|
4040
|
-
const parentKey = Object(case__WEBPACK_IMPORTED_MODULE_2__["camel"])(this.constructor.parentKey);
|
|
4041
|
-
return this.hasOwnProperty(parentKey);
|
|
4042
|
-
}
|
|
4043
|
-
/**
|
|
4044
|
-
* Get the parent id
|
|
4045
|
-
* @returns {number|undefined} - Parent number
|
|
4046
|
-
*/
|
|
4047
|
-
|
|
4048
|
-
|
|
4049
|
-
get parentId() {
|
|
4050
|
-
if (this.hasParent) {
|
|
4051
|
-
const parentKey = Object(case__WEBPACK_IMPORTED_MODULE_2__["camel"])(this.constructor.parentKey);
|
|
4052
|
-
return Number(this[parentKey]);
|
|
4053
|
-
}
|
|
4054
|
-
|
|
4055
|
-
return void 0;
|
|
4056
|
-
}
|
|
4057
|
-
/**
|
|
4058
|
-
* Get the parent key
|
|
4059
|
-
* @returns {string} - Parent key
|
|
4060
|
-
*/
|
|
4061
|
-
|
|
4062
|
-
|
|
4063
|
-
static get parentKey() {
|
|
4064
|
-
return this.resourceName.replace(/s$/, '_set_id');
|
|
4065
|
-
}
|
|
4066
|
-
|
|
4067
|
-
}
|
|
4068
|
-
|
|
4069
4083
|
/***/ }),
|
|
4070
4084
|
/* 18 */
|
|
4071
4085
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
@@ -4081,7 +4095,7 @@ __webpack_require__.d(__webpack_exports__, "default", function() { return /* bin
|
|
|
4081
4095
|
var Mapcreator = __webpack_require__(26);
|
|
4082
4096
|
|
|
4083
4097
|
// EXTERNAL MODULE: ./src/RequestParameters.js
|
|
4084
|
-
var RequestParameters = __webpack_require__(
|
|
4098
|
+
var RequestParameters = __webpack_require__(4);
|
|
4085
4099
|
|
|
4086
4100
|
// EXTERNAL MODULE: ./src/utils/reflection.js
|
|
4087
4101
|
var reflection = __webpack_require__(1);
|
|
@@ -5805,7 +5819,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
5805
5819
|
/* harmony import */ var ky_universal__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(53);
|
|
5806
5820
|
/* harmony import */ var _errors_AbstractError__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(11);
|
|
5807
5821
|
/* harmony import */ var _storage_StorageManager__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(20);
|
|
5808
|
-
/* harmony import */ var _OAuthToken__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
|
|
5822
|
+
/* harmony import */ var _OAuthToken__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(16);
|
|
5809
5823
|
/* harmony import */ var _StateContainer__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(58);
|
|
5810
5824
|
/* harmony import */ var _utils_helpers__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(0);
|
|
5811
5825
|
|
|
@@ -5970,19 +5984,19 @@ var DummyFlow = __webpack_require__(55);
|
|
|
5970
5984
|
var OAuth = __webpack_require__(25);
|
|
5971
5985
|
|
|
5972
5986
|
// EXTERNAL MODULE: ./src/oauth/OAuthToken.js
|
|
5973
|
-
var OAuthToken = __webpack_require__(
|
|
5987
|
+
var OAuthToken = __webpack_require__(16);
|
|
5974
5988
|
|
|
5975
5989
|
// EXTERNAL MODULE: ./src/proxy/GeoResourceProxy.js
|
|
5976
5990
|
var GeoResourceProxy = __webpack_require__(32);
|
|
5977
5991
|
|
|
5978
5992
|
// EXTERNAL MODULE: ./src/proxy/ResourceProxy.js
|
|
5979
|
-
var ResourceProxy = __webpack_require__(
|
|
5993
|
+
var ResourceProxy = __webpack_require__(15);
|
|
5980
5994
|
|
|
5981
5995
|
// EXTERNAL MODULE: ./src/proxy/SimpleResourceProxy.js + 1 modules
|
|
5982
5996
|
var SimpleResourceProxy = __webpack_require__(18);
|
|
5983
5997
|
|
|
5984
|
-
// EXTERNAL MODULE: ./src/resources/index.js +
|
|
5985
|
-
var resources = __webpack_require__(
|
|
5998
|
+
// EXTERNAL MODULE: ./src/resources/index.js + 10 modules
|
|
5999
|
+
var resources = __webpack_require__(3);
|
|
5986
6000
|
|
|
5987
6001
|
// EXTERNAL MODULE: ./src/resources/base/ResourceBase.js
|
|
5988
6002
|
var ResourceBase = __webpack_require__(6);
|
|
@@ -6472,7 +6486,7 @@ class Mapcreator_Mapcreator extends Object(reflection["mix"])(events_default.a,
|
|
|
6472
6486
|
/**
|
|
6473
6487
|
* Choropleth accessor
|
|
6474
6488
|
* @see {@link Choropleth}
|
|
6475
|
-
* @returns {GeoResourceProxy} - A proxy for accessing the resource
|
|
6489
|
+
* @returns {GeoResourceProxy<Choropleth>} - A proxy for accessing the resource
|
|
6476
6490
|
*/
|
|
6477
6491
|
|
|
6478
6492
|
|
|
@@ -6482,7 +6496,7 @@ class Mapcreator_Mapcreator extends Object(reflection["mix"])(events_default.a,
|
|
|
6482
6496
|
/**
|
|
6483
6497
|
* VectorChoropleth accessor
|
|
6484
6498
|
* @see {@link VectorChoropleth}
|
|
6485
|
-
* @returns {GeoResourceProxy} - A proxy for accessing the resource
|
|
6499
|
+
* @returns {GeoResourceProxy<VectorChoropleth>} - A proxy for accessing the resource
|
|
6486
6500
|
*/
|
|
6487
6501
|
|
|
6488
6502
|
|
|
@@ -6492,7 +6506,7 @@ class Mapcreator_Mapcreator extends Object(reflection["mix"])(events_default.a,
|
|
|
6492
6506
|
/**
|
|
6493
6507
|
* Color accessor
|
|
6494
6508
|
* @see {@link Color}
|
|
6495
|
-
* @returns {ResourceProxy} - A proxy for accessing the resource
|
|
6509
|
+
* @returns {ResourceProxy<Color>} - A proxy for accessing the resource
|
|
6496
6510
|
*/
|
|
6497
6511
|
|
|
6498
6512
|
|
|
@@ -6502,7 +6516,7 @@ class Mapcreator_Mapcreator extends Object(reflection["mix"])(events_default.a,
|
|
|
6502
6516
|
/**
|
|
6503
6517
|
* Tag accessor
|
|
6504
6518
|
* @see {@link Tag}
|
|
6505
|
-
* @returns {ResourceProxy} - A proxy for accessing the resource
|
|
6519
|
+
* @returns {ResourceProxy<Tag>} - A proxy for accessing the resource
|
|
6506
6520
|
*/
|
|
6507
6521
|
|
|
6508
6522
|
|
|
@@ -6511,8 +6525,8 @@ class Mapcreator_Mapcreator extends Object(reflection["mix"])(events_default.a,
|
|
|
6511
6525
|
}
|
|
6512
6526
|
/**
|
|
6513
6527
|
* Tag accessor
|
|
6514
|
-
* @see {@link
|
|
6515
|
-
* @returns {ResourceProxy} - A proxy for accessing the resource
|
|
6528
|
+
* @see {@link TagType}
|
|
6529
|
+
* @returns {ResourceProxy<TagType>} - A proxy for accessing the resource
|
|
6516
6530
|
*/
|
|
6517
6531
|
|
|
6518
6532
|
|
|
@@ -6522,7 +6536,7 @@ class Mapcreator_Mapcreator extends Object(reflection["mix"])(events_default.a,
|
|
|
6522
6536
|
/**
|
|
6523
6537
|
* Contract accessor
|
|
6524
6538
|
* @see {@link Contract}
|
|
6525
|
-
* @returns {ResourceProxy} - A proxy for accessing the resource
|
|
6539
|
+
* @returns {ResourceProxy<Contract>} - A proxy for accessing the resource
|
|
6526
6540
|
*/
|
|
6527
6541
|
|
|
6528
6542
|
|
|
@@ -6532,7 +6546,7 @@ class Mapcreator_Mapcreator extends Object(reflection["mix"])(events_default.a,
|
|
|
6532
6546
|
/**
|
|
6533
6547
|
* Dimension accessor
|
|
6534
6548
|
* @see {@link Dimension}
|
|
6535
|
-
* @returns {ResourceProxy} - A proxy for accessing the resource
|
|
6549
|
+
* @returns {ResourceProxy<Dimension>} - A proxy for accessing the resource
|
|
6536
6550
|
*/
|
|
6537
6551
|
|
|
6538
6552
|
|
|
@@ -6542,7 +6556,7 @@ class Mapcreator_Mapcreator extends Object(reflection["mix"])(events_default.a,
|
|
|
6542
6556
|
/**
|
|
6543
6557
|
* Dimension set accessor
|
|
6544
6558
|
* @see {@link DimensionSet}
|
|
6545
|
-
* @returns {ResourceProxy} - A proxy for accessing the resource
|
|
6559
|
+
* @returns {ResourceProxy<DimensionSet>} - A proxy for accessing the resource
|
|
6546
6560
|
*/
|
|
6547
6561
|
|
|
6548
6562
|
|
|
@@ -6552,7 +6566,7 @@ class Mapcreator_Mapcreator extends Object(reflection["mix"])(events_default.a,
|
|
|
6552
6566
|
/**
|
|
6553
6567
|
* Faq accessor
|
|
6554
6568
|
* @see {@link Faq}
|
|
6555
|
-
* @returns {ResourceProxy} - A proxy for accessing the resource
|
|
6569
|
+
* @returns {ResourceProxy<Faq>} - A proxy for accessing the resource
|
|
6556
6570
|
*/
|
|
6557
6571
|
|
|
6558
6572
|
|
|
@@ -6562,7 +6576,7 @@ class Mapcreator_Mapcreator extends Object(reflection["mix"])(events_default.a,
|
|
|
6562
6576
|
/**
|
|
6563
6577
|
* Feature accessor
|
|
6564
6578
|
* @see {@link Feature}
|
|
6565
|
-
* @returns {ResourceProxy} - A proxy for accessing the resource
|
|
6579
|
+
* @returns {ResourceProxy<Feature>} - A proxy for accessing the resource
|
|
6566
6580
|
*/
|
|
6567
6581
|
|
|
6568
6582
|
|
|
@@ -6572,7 +6586,7 @@ class Mapcreator_Mapcreator extends Object(reflection["mix"])(events_default.a,
|
|
|
6572
6586
|
/**
|
|
6573
6587
|
* Featured jobs accessor
|
|
6574
6588
|
* @see {@link Job}
|
|
6575
|
-
* @returns {SimpleResourceProxy} - A proxy for accessing the resource
|
|
6589
|
+
* @returns {SimpleResourceProxy<Job>} - A proxy for accessing the resource
|
|
6576
6590
|
*/
|
|
6577
6591
|
|
|
6578
6592
|
|
|
@@ -6582,7 +6596,7 @@ class Mapcreator_Mapcreator extends Object(reflection["mix"])(events_default.a,
|
|
|
6582
6596
|
/**
|
|
6583
6597
|
* Font accessor
|
|
6584
6598
|
* @see {@link Font}
|
|
6585
|
-
* @returns {ResourceProxy} - A proxy for accessing the resource
|
|
6599
|
+
* @returns {ResourceProxy<Font>} - A proxy for accessing the resource
|
|
6586
6600
|
*/
|
|
6587
6601
|
|
|
6588
6602
|
|
|
@@ -6592,7 +6606,7 @@ class Mapcreator_Mapcreator extends Object(reflection["mix"])(events_default.a,
|
|
|
6592
6606
|
/**
|
|
6593
6607
|
* FontFamily accessor
|
|
6594
6608
|
* @see {@link FontFamily}
|
|
6595
|
-
* @returns {ResourceProxy} - A proxy for accessing the resource
|
|
6609
|
+
* @returns {ResourceProxy<FontFamily>} - A proxy for accessing the resource
|
|
6596
6610
|
*/
|
|
6597
6611
|
|
|
6598
6612
|
|
|
@@ -6602,7 +6616,7 @@ class Mapcreator_Mapcreator extends Object(reflection["mix"])(events_default.a,
|
|
|
6602
6616
|
/**
|
|
6603
6617
|
* Highlight accessor
|
|
6604
6618
|
* @see {@link Highlight}
|
|
6605
|
-
* @returns {GeoResourceProxy} - A proxy for accessing the resource
|
|
6619
|
+
* @returns {GeoResourceProxy<Highlight>} - A proxy for accessing the resource
|
|
6606
6620
|
*/
|
|
6607
6621
|
|
|
6608
6622
|
|
|
@@ -6612,7 +6626,7 @@ class Mapcreator_Mapcreator extends Object(reflection["mix"])(events_default.a,
|
|
|
6612
6626
|
/**
|
|
6613
6627
|
* VectorHighlight accessor
|
|
6614
6628
|
* @see {@link VectorHighlight}
|
|
6615
|
-
* @returns {GeoResourceProxy} - A proxy for accessing the resource
|
|
6629
|
+
* @returns {GeoResourceProxy<VectorHighlight>} - A proxy for accessing the resource
|
|
6616
6630
|
*/
|
|
6617
6631
|
|
|
6618
6632
|
|
|
@@ -6622,7 +6636,7 @@ class Mapcreator_Mapcreator extends Object(reflection["mix"])(events_default.a,
|
|
|
6622
6636
|
/**
|
|
6623
6637
|
* InsetMap accessor
|
|
6624
6638
|
* @see {@link InsetMap}
|
|
6625
|
-
* @returns {GeoResourceProxy} - A proxy for accessing the resource
|
|
6639
|
+
* @returns {GeoResourceProxy<InsetMap>} - A proxy for accessing the resource
|
|
6626
6640
|
*/
|
|
6627
6641
|
|
|
6628
6642
|
|
|
@@ -6632,7 +6646,7 @@ class Mapcreator_Mapcreator extends Object(reflection["mix"])(events_default.a,
|
|
|
6632
6646
|
/**
|
|
6633
6647
|
* Job accessor
|
|
6634
6648
|
* @see {@link Job}
|
|
6635
|
-
* @returns {ResourceProxy} - A proxy for accessing the resource
|
|
6649
|
+
* @returns {ResourceProxy<Job>} - A proxy for accessing the resource
|
|
6636
6650
|
*/
|
|
6637
6651
|
|
|
6638
6652
|
|
|
@@ -6642,7 +6656,7 @@ class Mapcreator_Mapcreator extends Object(reflection["mix"])(events_default.a,
|
|
|
6642
6656
|
/**
|
|
6643
6657
|
* JobShare accessor
|
|
6644
6658
|
* @see {@link JobShare}
|
|
6645
|
-
* @returns {ResourceProxy} - A proxy for accessing the resource
|
|
6659
|
+
* @returns {ResourceProxy<JobShare>} - A proxy for accessing the resource
|
|
6646
6660
|
*/
|
|
6647
6661
|
|
|
6648
6662
|
|
|
@@ -6652,7 +6666,7 @@ class Mapcreator_Mapcreator extends Object(reflection["mix"])(events_default.a,
|
|
|
6652
6666
|
/**
|
|
6653
6667
|
* JobType accessor
|
|
6654
6668
|
* @see {@link JobType}
|
|
6655
|
-
* @returns {ResourceProxy} - A proxy for accessing the resource
|
|
6669
|
+
* @returns {ResourceProxy<JobType>} - A proxy for accessing the resource
|
|
6656
6670
|
*/
|
|
6657
6671
|
|
|
6658
6672
|
|
|
@@ -6662,7 +6676,7 @@ class Mapcreator_Mapcreator extends Object(reflection["mix"])(events_default.a,
|
|
|
6662
6676
|
/**
|
|
6663
6677
|
* Language accessor
|
|
6664
6678
|
* @see {@link Language}
|
|
6665
|
-
* @returns {ResourceProxy} - A proxy for accessing the resource
|
|
6679
|
+
* @returns {ResourceProxy<Language>} - A proxy for accessing the resource
|
|
6666
6680
|
*/
|
|
6667
6681
|
|
|
6668
6682
|
|
|
@@ -6672,17 +6686,27 @@ class Mapcreator_Mapcreator extends Object(reflection["mix"])(events_default.a,
|
|
|
6672
6686
|
/**
|
|
6673
6687
|
* Layer accessor
|
|
6674
6688
|
* @see {@link Layer}
|
|
6675
|
-
* @returns {ResourceProxy} - A proxy for accessing the resource
|
|
6689
|
+
* @returns {ResourceProxy<Layer>} - A proxy for accessing the resource
|
|
6676
6690
|
*/
|
|
6677
6691
|
|
|
6678
6692
|
|
|
6679
6693
|
get layers() {
|
|
6680
6694
|
return this.static(resources["Layer"]);
|
|
6681
6695
|
}
|
|
6696
|
+
/**
|
|
6697
|
+
* LayerFaq accessor
|
|
6698
|
+
* @see {@link LayerFaq}
|
|
6699
|
+
* @returns {ResourceProxy<LayerFaq>} - A proxy for accessing the resource
|
|
6700
|
+
*/
|
|
6701
|
+
|
|
6702
|
+
|
|
6703
|
+
get layerFaqs() {
|
|
6704
|
+
return this.static(resources["LayerFaq"]);
|
|
6705
|
+
}
|
|
6682
6706
|
/**
|
|
6683
6707
|
* Layer group accessor
|
|
6684
6708
|
* @see {@link LayerGroup}
|
|
6685
|
-
* @returns {ResourceProxy} - A proxy for accessing the resource
|
|
6709
|
+
* @returns {ResourceProxy<LayerGroup>} - A proxy for accessing the resource
|
|
6686
6710
|
*/
|
|
6687
6711
|
|
|
6688
6712
|
|
|
@@ -6692,7 +6716,7 @@ class Mapcreator_Mapcreator extends Object(reflection["mix"])(events_default.a,
|
|
|
6692
6716
|
/**
|
|
6693
6717
|
* Mapstyle accessor
|
|
6694
6718
|
* @see {@link Mapstyle}
|
|
6695
|
-
* @returns {ResourceProxy} - A proxy for accessing the resource
|
|
6719
|
+
* @returns {ResourceProxy<Mapstyle>} - A proxy for accessing the resource
|
|
6696
6720
|
*/
|
|
6697
6721
|
|
|
6698
6722
|
|
|
@@ -6702,7 +6726,7 @@ class Mapcreator_Mapcreator extends Object(reflection["mix"])(events_default.a,
|
|
|
6702
6726
|
/**
|
|
6703
6727
|
* MapstyleSet accessor
|
|
6704
6728
|
* @see {@link MapstyleSet}
|
|
6705
|
-
* @returns {ResourceProxy} - A proxy for accessing the resource
|
|
6729
|
+
* @returns {ResourceProxy<MapstyleSet>} - A proxy for accessing the resource
|
|
6706
6730
|
*/
|
|
6707
6731
|
|
|
6708
6732
|
|
|
@@ -6712,7 +6736,7 @@ class Mapcreator_Mapcreator extends Object(reflection["mix"])(events_default.a,
|
|
|
6712
6736
|
/**
|
|
6713
6737
|
* Notification accessor
|
|
6714
6738
|
* @see {@link Notification}
|
|
6715
|
-
* @returns {ResourceProxy} - A proxy for accessing the resource
|
|
6739
|
+
* @returns {ResourceProxy<Notification>} - A proxy for accessing the resource
|
|
6716
6740
|
*/
|
|
6717
6741
|
|
|
6718
6742
|
|
|
@@ -6722,7 +6746,7 @@ class Mapcreator_Mapcreator extends Object(reflection["mix"])(events_default.a,
|
|
|
6722
6746
|
/**
|
|
6723
6747
|
* Message accessor
|
|
6724
6748
|
* @see {@link Message}
|
|
6725
|
-
* @returns {ResourceProxy} - A proxy for accessing the resource
|
|
6749
|
+
* @returns {ResourceProxy<Message>} - A proxy for accessing the resource
|
|
6726
6750
|
*/
|
|
6727
6751
|
|
|
6728
6752
|
|
|
@@ -6732,7 +6756,7 @@ class Mapcreator_Mapcreator extends Object(reflection["mix"])(events_default.a,
|
|
|
6732
6756
|
/**
|
|
6733
6757
|
* Organisation accessor
|
|
6734
6758
|
* @see {@link Organisation}
|
|
6735
|
-
* @returns {ResourceProxy} - A proxy for accessing the resource
|
|
6759
|
+
* @returns {ResourceProxy<Organisation>} - A proxy for accessing the resource
|
|
6736
6760
|
*/
|
|
6737
6761
|
|
|
6738
6762
|
|
|
@@ -6742,17 +6766,29 @@ class Mapcreator_Mapcreator extends Object(reflection["mix"])(events_default.a,
|
|
|
6742
6766
|
/**
|
|
6743
6767
|
* Permission accessor
|
|
6744
6768
|
* @see {@link Permission}
|
|
6745
|
-
* @returns {ResourceProxy} - A proxy for accessing the resource
|
|
6769
|
+
* @returns {ResourceProxy<Permission>} - A proxy for accessing the resource
|
|
6746
6770
|
*/
|
|
6747
6771
|
|
|
6748
6772
|
|
|
6749
6773
|
get permissions() {
|
|
6750
6774
|
return this.static(resources["Permission"]);
|
|
6751
6775
|
}
|
|
6776
|
+
/**
|
|
6777
|
+
* Product tour accessor
|
|
6778
|
+
* @see {@link ProductTour}
|
|
6779
|
+
* @returns {ResourceProxy<ProductTour>} - A proxy for accessing the resource
|
|
6780
|
+
*/
|
|
6781
|
+
|
|
6752
6782
|
|
|
6753
6783
|
get productTours() {
|
|
6754
6784
|
return this.static(resources["ProductTour"]);
|
|
6755
6785
|
}
|
|
6786
|
+
/**
|
|
6787
|
+
* Product tour step accessor
|
|
6788
|
+
* @see {@link ProductTourStep}
|
|
6789
|
+
* @returns {ResourceProxy<ProductTourStep>} - A proxy for accessing the resource
|
|
6790
|
+
*/
|
|
6791
|
+
|
|
6756
6792
|
|
|
6757
6793
|
get productTourSteps() {
|
|
6758
6794
|
return this.static(resources["ProductTourStep"]);
|
|
@@ -6760,7 +6796,7 @@ class Mapcreator_Mapcreator extends Object(reflection["mix"])(events_default.a,
|
|
|
6760
6796
|
/**
|
|
6761
6797
|
* Role accessor
|
|
6762
6798
|
* @see {@link Role}
|
|
6763
|
-
* @returns {ResourceProxy} - A proxy for accessing the resource
|
|
6799
|
+
* @returns {ResourceProxy<Role>} - A proxy for accessing the resource
|
|
6764
6800
|
*/
|
|
6765
6801
|
|
|
6766
6802
|
|
|
@@ -6770,7 +6806,7 @@ class Mapcreator_Mapcreator extends Object(reflection["mix"])(events_default.a,
|
|
|
6770
6806
|
/**
|
|
6771
6807
|
* Svg accessor
|
|
6772
6808
|
* @see {@link Svg}
|
|
6773
|
-
* @returns {ResourceProxy} - A proxy for accessing the resource
|
|
6809
|
+
* @returns {ResourceProxy<Svg>} - A proxy for accessing the resource
|
|
6774
6810
|
*/
|
|
6775
6811
|
|
|
6776
6812
|
|
|
@@ -6780,7 +6816,7 @@ class Mapcreator_Mapcreator extends Object(reflection["mix"])(events_default.a,
|
|
|
6780
6816
|
/**
|
|
6781
6817
|
* SvgSet accessor
|
|
6782
6818
|
* @see {@link SvgSet}
|
|
6783
|
-
* @returns {ResourceProxy} - A proxy for accessing the resource
|
|
6819
|
+
* @returns {ResourceProxy<SvgSet>} - A proxy for accessing the resource
|
|
6784
6820
|
*/
|
|
6785
6821
|
|
|
6786
6822
|
|
|
@@ -6790,7 +6826,7 @@ class Mapcreator_Mapcreator extends Object(reflection["mix"])(events_default.a,
|
|
|
6790
6826
|
/**
|
|
6791
6827
|
* User accessor
|
|
6792
6828
|
* @see {@link User}
|
|
6793
|
-
* @returns {ResourceProxy} - A proxy for accessing the resource
|
|
6829
|
+
* @returns {ResourceProxy<User>} - A proxy for accessing the resource
|
|
6794
6830
|
*/
|
|
6795
6831
|
|
|
6796
6832
|
|
|
@@ -7316,9 +7352,9 @@ class GeoError extends Error {}
|
|
|
7316
7352
|
__webpack_require__.r(__webpack_exports__);
|
|
7317
7353
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return GeoResourceProxy; });
|
|
7318
7354
|
/* harmony import */ var _errors_GeoError__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(31);
|
|
7319
|
-
/* harmony import */ var _RequestParameters__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
|
|
7355
|
+
/* harmony import */ var _RequestParameters__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(4);
|
|
7320
7356
|
/* harmony import */ var _utils_geo__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(56);
|
|
7321
|
-
/* harmony import */ var _ResourceProxy__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
|
|
7357
|
+
/* harmony import */ var _ResourceProxy__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(15);
|
|
7322
7358
|
/* harmony import */ var _utils_helpers__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(0);
|
|
7323
7359
|
/*
|
|
7324
7360
|
* BSD 3-Clause License
|
|
@@ -7490,7 +7526,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
7490
7526
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return JobResult; });
|
|
7491
7527
|
/* harmony import */ var _base_DownloadedResource__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(23);
|
|
7492
7528
|
/* harmony import */ var _base_ResourceBase__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6);
|
|
7493
|
-
/* harmony import */ var _RequestParameters__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
|
|
7529
|
+
/* harmony import */ var _RequestParameters__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(4);
|
|
7494
7530
|
/* harmony import */ var _utils_requests__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(5);
|
|
7495
7531
|
/* harmony import */ var _enums__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(8);
|
|
7496
7532
|
/* harmony import */ var _utils_helpers__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(0);
|
|
@@ -8000,7 +8036,7 @@ class Color extends Object(_utils_reflection__WEBPACK_IMPORTED_MODULE_2__["mix"]
|
|
|
8000
8036
|
"use strict";
|
|
8001
8037
|
__webpack_require__.r(__webpack_exports__);
|
|
8002
8038
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return DimensionSet; });
|
|
8003
|
-
/* harmony import */ var _base_CrudSetBase__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
|
|
8039
|
+
/* harmony import */ var _base_CrudSetBase__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(17);
|
|
8004
8040
|
/* harmony import */ var _Dimension__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(38);
|
|
8005
8041
|
/* harmony import */ var _traits_OwnableResource__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(9);
|
|
8006
8042
|
/* harmony import */ var _utils_reflection__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(1);
|
|
@@ -8067,7 +8103,7 @@ class DimensionSet extends Object(_utils_reflection__WEBPACK_IMPORTED_MODULE_3__
|
|
|
8067
8103
|
"use strict";
|
|
8068
8104
|
__webpack_require__.r(__webpack_exports__);
|
|
8069
8105
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return Dimension; });
|
|
8070
|
-
/* harmony import */ var _base_CrudSetItemBase__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
|
|
8106
|
+
/* harmony import */ var _base_CrudSetItemBase__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(14);
|
|
8071
8107
|
/*
|
|
8072
8108
|
* BSD 3-Clause License
|
|
8073
8109
|
*
|
|
@@ -8177,7 +8213,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
8177
8213
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return FontFamily; });
|
|
8178
8214
|
/* harmony import */ var _traits_OwnableResource__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9);
|
|
8179
8215
|
/* harmony import */ var _utils_reflection__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1);
|
|
8180
|
-
/* harmony import */ var _base_CrudSetBase__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
|
|
8216
|
+
/* harmony import */ var _base_CrudSetBase__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(17);
|
|
8181
8217
|
/* harmony import */ var _Font__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(41);
|
|
8182
8218
|
/*
|
|
8183
8219
|
* BSD 3-Clause License
|
|
@@ -8242,7 +8278,7 @@ class FontFamily extends Object(_utils_reflection__WEBPACK_IMPORTED_MODULE_1__["
|
|
|
8242
8278
|
"use strict";
|
|
8243
8279
|
__webpack_require__.r(__webpack_exports__);
|
|
8244
8280
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return Font; });
|
|
8245
|
-
/* harmony import */ var _base_CrudSetItemBase__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
|
|
8281
|
+
/* harmony import */ var _base_CrudSetItemBase__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(14);
|
|
8246
8282
|
/*
|
|
8247
8283
|
* BSD 3-Clause License
|
|
8248
8284
|
*
|
|
@@ -8293,12 +8329,12 @@ class Font extends _base_CrudSetItemBase__WEBPACK_IMPORTED_MODULE_0__["default"]
|
|
|
8293
8329
|
"use strict";
|
|
8294
8330
|
__webpack_require__.r(__webpack_exports__);
|
|
8295
8331
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return Job; });
|
|
8296
|
-
/* harmony import */ var _proxy_ResourceProxy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
|
|
8332
|
+
/* harmony import */ var _proxy_ResourceProxy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(15);
|
|
8297
8333
|
/* harmony import */ var _base_DownloadedResource__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(23);
|
|
8298
8334
|
/* harmony import */ var _base_CrudBase__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(2);
|
|
8299
8335
|
/* harmony import */ var _JobResult__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(33);
|
|
8300
8336
|
/* harmony import */ var _JobRevision__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(63);
|
|
8301
|
-
/* harmony import */ var _RequestParameters__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
|
|
8337
|
+
/* harmony import */ var _RequestParameters__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(4);
|
|
8302
8338
|
/* harmony import */ var _utils_requests__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(5);
|
|
8303
8339
|
/* harmony import */ var _enums__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(8);
|
|
8304
8340
|
/* harmony import */ var _utils_helpers__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(0);
|
|
@@ -8555,7 +8591,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
8555
8591
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return Mapstyle; });
|
|
8556
8592
|
/* harmony import */ var _traits_HandlesImages__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(71);
|
|
8557
8593
|
/* harmony import */ var _utils_reflection__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1);
|
|
8558
|
-
/* harmony import */ var _base_CrudSetItemBase__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
|
|
8594
|
+
/* harmony import */ var _base_CrudSetItemBase__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(14);
|
|
8559
8595
|
/*
|
|
8560
8596
|
* BSD 3-Clause License
|
|
8561
8597
|
*
|
|
@@ -8610,7 +8646,7 @@ class Mapstyle extends Object(_utils_reflection__WEBPACK_IMPORTED_MODULE_1__["mi
|
|
|
8610
8646
|
__webpack_require__.r(__webpack_exports__);
|
|
8611
8647
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return SvgSet; });
|
|
8612
8648
|
/* harmony import */ var _traits_OwnableResource__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9);
|
|
8613
|
-
/* harmony import */ var _base_CrudSetBase__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
|
|
8649
|
+
/* harmony import */ var _base_CrudSetBase__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(17);
|
|
8614
8650
|
/* harmony import */ var _Svg__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(46);
|
|
8615
8651
|
/* harmony import */ var _utils_reflection__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(1);
|
|
8616
8652
|
/*
|
|
@@ -8676,7 +8712,7 @@ class SvgSet extends Object(_utils_reflection__WEBPACK_IMPORTED_MODULE_3__["mix"
|
|
|
8676
8712
|
"use strict";
|
|
8677
8713
|
__webpack_require__.r(__webpack_exports__);
|
|
8678
8714
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return Svg; });
|
|
8679
|
-
/* harmony import */ var _base_CrudSetItemBase__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
|
|
8715
|
+
/* harmony import */ var _base_CrudSetItemBase__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(14);
|
|
8680
8716
|
/*
|
|
8681
8717
|
* BSD 3-Clause License
|
|
8682
8718
|
*
|
|
@@ -8725,7 +8761,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
8725
8761
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return Tag; });
|
|
8726
8762
|
/* harmony import */ var _traits_OwnableResource__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9);
|
|
8727
8763
|
/* harmony import */ var _utils_reflection__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1);
|
|
8728
|
-
/* harmony import */ var _base_CrudSetItemBase__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
|
|
8764
|
+
/* harmony import */ var _base_CrudSetItemBase__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(14);
|
|
8729
8765
|
/*
|
|
8730
8766
|
* BSD 3-Clause License
|
|
8731
8767
|
*
|
|
@@ -8785,7 +8821,7 @@ class Tag extends Object(_utils_reflection__WEBPACK_IMPORTED_MODULE_1__["mix"])(
|
|
|
8785
8821
|
__webpack_require__.r(__webpack_exports__);
|
|
8786
8822
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return User; });
|
|
8787
8823
|
/* harmony import */ var _proxy_OwnedResourceProxy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(12);
|
|
8788
|
-
/* harmony import */ var _proxy_ResourceProxy__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
|
|
8824
|
+
/* harmony import */ var _proxy_ResourceProxy__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(15);
|
|
8789
8825
|
/* harmony import */ var _base_CrudBase__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(2);
|
|
8790
8826
|
/* harmony import */ var _Color__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(36);
|
|
8791
8827
|
/* harmony import */ var _Dimension__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(38);
|
|
@@ -9148,16 +9184,16 @@ var OwnableResource = __webpack_require__(9);
|
|
|
9148
9184
|
var reflection = __webpack_require__(1);
|
|
9149
9185
|
|
|
9150
9186
|
// EXTERNAL MODULE: ./src/resources/base/CrudSetBase.js
|
|
9151
|
-
var CrudSetBase = __webpack_require__(
|
|
9187
|
+
var CrudSetBase = __webpack_require__(17);
|
|
9152
9188
|
|
|
9153
9189
|
// EXTERNAL MODULE: ./src/resources/Mapstyle.js
|
|
9154
9190
|
var Mapstyle = __webpack_require__(44);
|
|
9155
9191
|
|
|
9156
9192
|
// EXTERNAL MODULE: ./src/proxy/ResourceProxy.js
|
|
9157
|
-
var ResourceProxy = __webpack_require__(
|
|
9193
|
+
var ResourceProxy = __webpack_require__(15);
|
|
9158
9194
|
|
|
9159
9195
|
// EXTERNAL MODULE: ./src/resources/base/CrudSetItemBase.js
|
|
9160
|
-
var CrudSetItemBase = __webpack_require__(
|
|
9196
|
+
var CrudSetItemBase = __webpack_require__(14);
|
|
9161
9197
|
|
|
9162
9198
|
// CONCATENATED MODULE: ./src/resources/MapstyleSetColor.js
|
|
9163
9199
|
/*
|
|
@@ -11158,7 +11194,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
11158
11194
|
/* harmony import */ var events__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(52);
|
|
11159
11195
|
/* harmony import */ var events__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(events__WEBPACK_IMPORTED_MODULE_1__);
|
|
11160
11196
|
/* harmony import */ var _Mapcreator__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(26);
|
|
11161
|
-
/* harmony import */ var _RequestParameters__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
|
|
11197
|
+
/* harmony import */ var _RequestParameters__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(4);
|
|
11162
11198
|
/* harmony import */ var _resources_base_ResourceBase__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(6);
|
|
11163
11199
|
/* harmony import */ var _utils_reflection__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(1);
|
|
11164
11200
|
/* harmony import */ var _utils_helpers__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(0);
|
|
@@ -11836,7 +11872,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
11836
11872
|
/* harmony import */ var _JobResult__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(33);
|
|
11837
11873
|
/* harmony import */ var _JobShare__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(21);
|
|
11838
11874
|
/* harmony import */ var _Layer__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(22);
|
|
11839
|
-
/* harmony import */ var _RequestParameters__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
|
|
11875
|
+
/* harmony import */ var _RequestParameters__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(4);
|
|
11840
11876
|
/* harmony import */ var _utils_requests__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(5);
|
|
11841
11877
|
/* harmony import */ var _enums__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(8);
|
|
11842
11878
|
/* harmony import */ var _utils_helpers__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(0);
|
|
@@ -12267,7 +12303,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
12267
12303
|
/* harmony import */ var _OwnedResourceProxy__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(12);
|
|
12268
12304
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "OwnedResourceProxy", function() { return _OwnedResourceProxy__WEBPACK_IMPORTED_MODULE_2__["default"]; });
|
|
12269
12305
|
|
|
12270
|
-
/* harmony import */ var _ResourceProxy__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
|
|
12306
|
+
/* harmony import */ var _ResourceProxy__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(15);
|
|
12271
12307
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ResourceProxy", function() { return _ResourceProxy__WEBPACK_IMPORTED_MODULE_3__["default"]; });
|
|
12272
12308
|
|
|
12273
12309
|
/* harmony import */ var _SimpleResourceProxy__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(18);
|
|
@@ -12310,11 +12346,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
12310
12346
|
|
|
12311
12347
|
|
|
12312
12348
|
|
|
12313
|
-
|
|
12314
|
-
|
|
12315
|
-
|
|
12316
|
-
|
|
12317
|
-
|
|
12318
12349
|
/***/ }),
|
|
12319
12350
|
/* 68 */
|
|
12320
12351
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
@@ -12429,12 +12460,6 @@ var GeoError = __webpack_require__(31);
|
|
|
12429
12460
|
|
|
12430
12461
|
|
|
12431
12462
|
|
|
12432
|
-
|
|
12433
|
-
|
|
12434
|
-
|
|
12435
|
-
|
|
12436
|
-
|
|
12437
|
-
|
|
12438
12463
|
/***/ }),
|
|
12439
12464
|
/* 69 */
|
|
12440
12465
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
@@ -12653,7 +12678,7 @@ class Injectable extends _Trait__WEBPACK_IMPORTED_MODULE_2__["default"] {
|
|
|
12653
12678
|
return this._proxyResourceList(value);
|
|
12654
12679
|
});
|
|
12655
12680
|
} else {
|
|
12656
|
-
const ResourceProxy = __webpack_require__(
|
|
12681
|
+
const ResourceProxy = __webpack_require__(15).default;
|
|
12657
12682
|
|
|
12658
12683
|
this._inject(name, function () {
|
|
12659
12684
|
return new ResourceProxy(this, value);
|
|
@@ -12690,7 +12715,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
12690
12715
|
/* harmony import */ var _traits_OwnableResource__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9);
|
|
12691
12716
|
/* harmony import */ var _utils_reflection__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1);
|
|
12692
12717
|
/* harmony import */ var _Layer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(22);
|
|
12693
|
-
/* harmony import */ var _base_CrudSetBase__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
|
|
12718
|
+
/* harmony import */ var _base_CrudSetBase__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(17);
|
|
12694
12719
|
/* harmony import */ var _proxy__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(67);
|
|
12695
12720
|
/*
|
|
12696
12721
|
* BSD 3-Clause License
|
|
@@ -12729,7 +12754,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
12729
12754
|
|
|
12730
12755
|
|
|
12731
12756
|
/**
|
|
12732
|
-
*
|
|
12757
|
+
* LayerGroup
|
|
12733
12758
|
* @extends CrudBase
|
|
12734
12759
|
* @mixes OwnableResource
|
|
12735
12760
|
* @mixes HandlesImages
|
|
@@ -13759,7 +13784,7 @@ __webpack_require__.d(__webpack_exports__, "version", function() { return /* bin
|
|
|
13759
13784
|
var Mapcreator = __webpack_require__(26);
|
|
13760
13785
|
|
|
13761
13786
|
// EXTERNAL MODULE: ./src/RequestParameters.js
|
|
13762
|
-
var RequestParameters = __webpack_require__(
|
|
13787
|
+
var RequestParameters = __webpack_require__(4);
|
|
13763
13788
|
|
|
13764
13789
|
// EXTERNAL MODULE: ./src/storage/StorageManager.js + 3 modules
|
|
13765
13790
|
var StorageManager = __webpack_require__(20);
|
|
@@ -13774,7 +13799,7 @@ var enums = __webpack_require__(8);
|
|
|
13774
13799
|
var OAuth = __webpack_require__(25);
|
|
13775
13800
|
|
|
13776
13801
|
// EXTERNAL MODULE: ./src/oauth/OAuthToken.js
|
|
13777
|
-
var OAuthToken = __webpack_require__(
|
|
13802
|
+
var OAuthToken = __webpack_require__(16);
|
|
13778
13803
|
|
|
13779
13804
|
// EXTERNAL MODULE: ./src/oauth/StateContainer.js + 1 modules
|
|
13780
13805
|
var StateContainer = __webpack_require__(58);
|
|
@@ -14325,8 +14350,8 @@ var ValidationError = __webpack_require__(35);
|
|
|
14325
14350
|
// EXTERNAL MODULE: ./src/errors/StaticClassError.js
|
|
14326
14351
|
var StaticClassError = __webpack_require__(34);
|
|
14327
14352
|
|
|
14328
|
-
// EXTERNAL MODULE: ./src/resources/index.js +
|
|
14329
|
-
var resources = __webpack_require__(
|
|
14353
|
+
// EXTERNAL MODULE: ./src/resources/index.js + 10 modules
|
|
14354
|
+
var resources = __webpack_require__(3);
|
|
14330
14355
|
|
|
14331
14356
|
// EXTERNAL MODULE: ./src/ResourceLister.js
|
|
14332
14357
|
var ResourceLister = __webpack_require__(59);
|
|
@@ -14375,13 +14400,9 @@ var proxy = __webpack_require__(67);
|
|
|
14375
14400
|
// Core
|
|
14376
14401
|
|
|
14377
14402
|
|
|
14378
|
-
|
|
14379
|
-
|
|
14380
|
-
|
|
14381
14403
|
// Enums
|
|
14382
14404
|
|
|
14383
14405
|
|
|
14384
|
-
|
|
14385
14406
|
// Flows
|
|
14386
14407
|
|
|
14387
14408
|
|
|
@@ -14389,20 +14410,11 @@ var proxy = __webpack_require__(67);
|
|
|
14389
14410
|
|
|
14390
14411
|
|
|
14391
14412
|
|
|
14392
|
-
|
|
14393
|
-
|
|
14394
|
-
|
|
14395
|
-
|
|
14396
|
-
|
|
14397
|
-
|
|
14398
14413
|
// Exceptions
|
|
14399
14414
|
|
|
14400
14415
|
|
|
14401
14416
|
|
|
14402
14417
|
|
|
14403
|
-
|
|
14404
|
-
|
|
14405
|
-
|
|
14406
14418
|
// Resources
|
|
14407
14419
|
|
|
14408
14420
|
|
|
@@ -14412,7 +14424,6 @@ var proxy = __webpack_require__(67);
|
|
|
14412
14424
|
|
|
14413
14425
|
|
|
14414
14426
|
|
|
14415
|
-
|
|
14416
14427
|
// Errors
|
|
14417
14428
|
|
|
14418
14429
|
|
|
@@ -14425,7 +14436,7 @@ var proxy = __webpack_require__(67);
|
|
|
14425
14436
|
* @private
|
|
14426
14437
|
*/
|
|
14427
14438
|
|
|
14428
|
-
const version = "
|
|
14439
|
+
const version = "v3.0.0";
|
|
14429
14440
|
|
|
14430
14441
|
/***/ })
|
|
14431
14442
|
/******/ ]);
|