@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.js
CHANGED
|
@@ -29,7 +29,7 @@
|
|
|
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:452fe880fd2e35799556, chunkhash:69e60e74e788408c97e3, name:bundle, version:v3.0.0
|
|
33
33
|
*/
|
|
34
34
|
module.exports =
|
|
35
35
|
/******/ (function(modules) { // webpackBootstrap
|
|
@@ -704,16 +704,58 @@ class CrudBase extends _ResourceBase__WEBPACK_IMPORTED_MODULE_1__["default"] {
|
|
|
704
704
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
705
705
|
|
|
706
706
|
"use strict";
|
|
707
|
+
// ESM COMPAT FLAG
|
|
707
708
|
__webpack_require__.r(__webpack_exports__);
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
709
|
+
|
|
710
|
+
// EXPORTS
|
|
711
|
+
__webpack_require__.d(__webpack_exports__, "Choropleth", function() { return /* reexport */ Choropleth_Choropleth; });
|
|
712
|
+
__webpack_require__.d(__webpack_exports__, "Color", function() { return /* reexport */ Color["default"]; });
|
|
713
|
+
__webpack_require__.d(__webpack_exports__, "Contract", function() { return /* reexport */ Contract["default"]; });
|
|
714
|
+
__webpack_require__.d(__webpack_exports__, "Dimension", function() { return /* reexport */ Dimension["default"]; });
|
|
715
|
+
__webpack_require__.d(__webpack_exports__, "DimensionSet", function() { return /* reexport */ DimensionSet["default"]; });
|
|
716
|
+
__webpack_require__.d(__webpack_exports__, "Domain", function() { return /* reexport */ Domain["default"]; });
|
|
717
|
+
__webpack_require__.d(__webpack_exports__, "Faq", function() { return /* reexport */ Faq_Faq; });
|
|
718
|
+
__webpack_require__.d(__webpack_exports__, "Feature", function() { return /* reexport */ Feature["default"]; });
|
|
719
|
+
__webpack_require__.d(__webpack_exports__, "Font", function() { return /* reexport */ Font["default"]; });
|
|
720
|
+
__webpack_require__.d(__webpack_exports__, "FontFamily", function() { return /* reexport */ FontFamily["default"]; });
|
|
721
|
+
__webpack_require__.d(__webpack_exports__, "Highlight", function() { return /* reexport */ Highlight_Highlight; });
|
|
722
|
+
__webpack_require__.d(__webpack_exports__, "InsetMap", function() { return /* reexport */ InsetMap_InsetMap; });
|
|
723
|
+
__webpack_require__.d(__webpack_exports__, "Job", function() { return /* reexport */ Job["default"]; });
|
|
724
|
+
__webpack_require__.d(__webpack_exports__, "JobResult", function() { return /* reexport */ JobResult["default"]; });
|
|
725
|
+
__webpack_require__.d(__webpack_exports__, "JobRevision", function() { return /* reexport */ JobRevision["default"]; });
|
|
726
|
+
__webpack_require__.d(__webpack_exports__, "JobShare", function() { return /* reexport */ JobShare["default"]; });
|
|
727
|
+
__webpack_require__.d(__webpack_exports__, "JobType", function() { return /* reexport */ JobType["default"]; });
|
|
728
|
+
__webpack_require__.d(__webpack_exports__, "Language", function() { return /* reexport */ Language["default"]; });
|
|
729
|
+
__webpack_require__.d(__webpack_exports__, "Layer", function() { return /* reexport */ Layer["default"]; });
|
|
730
|
+
__webpack_require__.d(__webpack_exports__, "LayerFaq", function() { return /* reexport */ LayerFaq_LayerFaq; });
|
|
731
|
+
__webpack_require__.d(__webpack_exports__, "Mapstyle", function() { return /* reexport */ Mapstyle["default"]; });
|
|
732
|
+
__webpack_require__.d(__webpack_exports__, "MapstyleSet", function() { return /* reexport */ MapstyleSet["default"]; });
|
|
733
|
+
__webpack_require__.d(__webpack_exports__, "Message", function() { return /* reexport */ Message["default"]; });
|
|
734
|
+
__webpack_require__.d(__webpack_exports__, "Notification", function() { return /* reexport */ Notification["default"]; });
|
|
735
|
+
__webpack_require__.d(__webpack_exports__, "Organisation", function() { return /* reexport */ Organisation["default"]; });
|
|
736
|
+
__webpack_require__.d(__webpack_exports__, "Permission", function() { return /* reexport */ Permission["default"]; });
|
|
737
|
+
__webpack_require__.d(__webpack_exports__, "ProductTour", function() { return /* reexport */ ProductTour_ProductTour; });
|
|
738
|
+
__webpack_require__.d(__webpack_exports__, "ProductTourStep", function() { return /* reexport */ ProductTourStep_ProductTourStep; });
|
|
739
|
+
__webpack_require__.d(__webpack_exports__, "Role", function() { return /* reexport */ Role["default"]; });
|
|
740
|
+
__webpack_require__.d(__webpack_exports__, "Svg", function() { return /* reexport */ Svg["default"]; });
|
|
741
|
+
__webpack_require__.d(__webpack_exports__, "SvgSet", function() { return /* reexport */ SvgSet["default"]; });
|
|
742
|
+
__webpack_require__.d(__webpack_exports__, "Tag", function() { return /* reexport */ Tag["default"]; });
|
|
743
|
+
__webpack_require__.d(__webpack_exports__, "TagType", function() { return /* reexport */ TagType_TagType; });
|
|
744
|
+
__webpack_require__.d(__webpack_exports__, "User", function() { return /* reexport */ User["default"]; });
|
|
745
|
+
__webpack_require__.d(__webpack_exports__, "VectorHighlight", function() { return /* reexport */ VectorHighlight_VectorHighlight; });
|
|
746
|
+
__webpack_require__.d(__webpack_exports__, "VectorChoropleth", function() { return /* reexport */ VectorChoropleth_VectorChoropleth; });
|
|
747
|
+
__webpack_require__.d(__webpack_exports__, "base", function() { return /* binding */ base; });
|
|
748
|
+
|
|
749
|
+
// EXTERNAL MODULE: ./src/resources/base/DownloadedResource.js + 1 modules
|
|
750
|
+
var DownloadedResource = __webpack_require__(23);
|
|
751
|
+
|
|
752
|
+
// EXTERNAL MODULE: ./src/resources/base/ResourceBase.js
|
|
753
|
+
var ResourceBase = __webpack_require__(6);
|
|
754
|
+
|
|
755
|
+
// EXTERNAL MODULE: ./src/utils/helpers.js
|
|
756
|
+
var helpers = __webpack_require__(0);
|
|
757
|
+
|
|
758
|
+
// CONCATENATED MODULE: ./src/resources/Choropleth.js
|
|
717
759
|
/*
|
|
718
760
|
* BSD 3-Clause License
|
|
719
761
|
*
|
|
@@ -748,750 +790,649 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
748
790
|
|
|
749
791
|
|
|
750
792
|
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
793
|
/**
|
|
755
|
-
*
|
|
756
|
-
*
|
|
757
|
-
* @fires RequestParameters#change
|
|
758
|
-
* @fires RequestParameters#change:page
|
|
759
|
-
* @fires RequestParameters#change:perPage
|
|
760
|
-
* @fires RequestParameters#change:search
|
|
761
|
-
* @fires RequestParameters#change:sort
|
|
762
|
-
* @fires RequestParameters#change:deleted
|
|
763
|
-
* @fires RequestParameters#change:extra
|
|
794
|
+
* Choropleth resource
|
|
764
795
|
*/
|
|
765
796
|
|
|
766
|
-
class
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
* @param {Object} object - properties
|
|
770
|
-
*/
|
|
771
|
-
constructor(object = {}) {
|
|
772
|
-
super(); // Apply defaults
|
|
773
|
-
|
|
774
|
-
RequestParameters.keys().forEach(x => this._resolve(x)); // Apply properties
|
|
775
|
-
|
|
776
|
-
this.apply(object);
|
|
777
|
-
} // region instance
|
|
778
|
-
// region instance getters
|
|
779
|
-
|
|
780
|
-
/**
|
|
781
|
-
* Get page number
|
|
782
|
-
* @returns {Number} - Page number
|
|
783
|
-
* @throws {TypeError}
|
|
784
|
-
*/
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
get page() {
|
|
788
|
-
return this._resolve('page');
|
|
789
|
-
}
|
|
790
|
-
/**
|
|
791
|
-
* Get rows per page
|
|
792
|
-
* @returns {Number} - Per page
|
|
793
|
-
* @throws {TypeError}
|
|
794
|
-
*/
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
get perPage() {
|
|
798
|
-
return this._resolve('perPage');
|
|
799
|
-
}
|
|
800
|
-
/**
|
|
801
|
-
* Get pagination offset
|
|
802
|
-
* @returns {Number} - Offset
|
|
803
|
-
* @throws {TypeError}
|
|
804
|
-
*/
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
get offset() {
|
|
808
|
-
return this._resolve('offset');
|
|
809
|
-
}
|
|
810
|
-
/**
|
|
811
|
-
* Search query
|
|
812
|
-
* @returns {Object<String, String|Array<String>>} - Query
|
|
813
|
-
* @throws {TypeError}
|
|
814
|
-
*/
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
get search() {
|
|
818
|
-
return this._resolve('search');
|
|
797
|
+
class Choropleth_Choropleth extends ResourceBase["default"] {
|
|
798
|
+
static get resourceName() {
|
|
799
|
+
return 'choropleths';
|
|
819
800
|
}
|
|
820
801
|
/**
|
|
821
|
-
* Get
|
|
822
|
-
* @returns {
|
|
823
|
-
* @throws {
|
|
802
|
+
* Get the inset map json
|
|
803
|
+
* @returns {CancelablePromise<Object>} - Choropleth json
|
|
804
|
+
* @throws {ApiError} - If the api returns errors
|
|
824
805
|
*/
|
|
825
806
|
|
|
826
807
|
|
|
827
|
-
|
|
828
|
-
return this.
|
|
808
|
+
getJson() {
|
|
809
|
+
return Object(helpers["makeCancelable"])(signal => this.api.ky.get(`${this.url}/json`, {
|
|
810
|
+
signal
|
|
811
|
+
}).json());
|
|
829
812
|
}
|
|
830
813
|
/**
|
|
831
|
-
*
|
|
832
|
-
* @returns {
|
|
833
|
-
* @
|
|
814
|
+
* Download the choropleth preview
|
|
815
|
+
* @returns {CancelablePromise<DownloadedResource>} - Choropleth preview
|
|
816
|
+
* @throws {ApiError} - If the api returns errors
|
|
834
817
|
*/
|
|
835
818
|
|
|
836
819
|
|
|
837
|
-
|
|
838
|
-
return
|
|
820
|
+
downloadPreview() {
|
|
821
|
+
return Object(helpers["makeCancelable"])(async signal => {
|
|
822
|
+
const response = await this.api.ky.get(`${this.url}/preview`, {
|
|
823
|
+
signal
|
|
824
|
+
});
|
|
825
|
+
return DownloadedResource["default"].fromResponse(response);
|
|
826
|
+
});
|
|
839
827
|
}
|
|
840
|
-
/**
|
|
841
|
-
* Extra parameters
|
|
842
|
-
* @returns {Object} - Extra parameters
|
|
843
|
-
*/
|
|
844
828
|
|
|
829
|
+
}
|
|
830
|
+
// EXTERNAL MODULE: ./src/resources/Color.js
|
|
831
|
+
var Color = __webpack_require__(36);
|
|
845
832
|
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
} // endregion instance getters
|
|
849
|
-
// region instance setters
|
|
833
|
+
// EXTERNAL MODULE: ./src/resources/Contract.js
|
|
834
|
+
var Contract = __webpack_require__(61);
|
|
850
835
|
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
* @param {Number} value - Page number
|
|
854
|
-
*/
|
|
836
|
+
// EXTERNAL MODULE: ./src/resources/Dimension.js
|
|
837
|
+
var Dimension = __webpack_require__(38);
|
|
855
838
|
|
|
839
|
+
// EXTERNAL MODULE: ./src/resources/DimensionSet.js
|
|
840
|
+
var DimensionSet = __webpack_require__(37);
|
|
856
841
|
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
}
|
|
860
|
-
/**
|
|
861
|
-
* Rows per page
|
|
862
|
-
* @param {Number} value - Per page
|
|
863
|
-
*/
|
|
842
|
+
// EXTERNAL MODULE: ./src/resources/Domain.js
|
|
843
|
+
var Domain = __webpack_require__(62);
|
|
864
844
|
|
|
845
|
+
// EXTERNAL MODULE: ./src/resources/base/CrudBase.js
|
|
846
|
+
var CrudBase = __webpack_require__(2);
|
|
865
847
|
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
848
|
+
// CONCATENATED MODULE: ./src/resources/Faq.js
|
|
849
|
+
/*
|
|
850
|
+
* BSD 3-Clause License
|
|
851
|
+
*
|
|
852
|
+
* Copyright (c) 2020, Mapcreator
|
|
853
|
+
* All rights reserved.
|
|
854
|
+
*
|
|
855
|
+
* Redistribution and use in source and binary forms, with or without
|
|
856
|
+
* modification, are permitted provided that the following conditions are met:
|
|
857
|
+
*
|
|
858
|
+
* Redistributions of source code must retain the above copyright notice, this
|
|
859
|
+
* list of conditions and the following disclaimer.
|
|
860
|
+
*
|
|
861
|
+
* Redistributions in binary form must reproduce the above copyright notice,
|
|
862
|
+
* this list of conditions and the following disclaimer in the documentation
|
|
863
|
+
* and/or other materials provided with the distribution.
|
|
864
|
+
*
|
|
865
|
+
* Neither the name of the copyright holder nor the names of its
|
|
866
|
+
* contributors may be used to endorse or promote products derived from
|
|
867
|
+
* this software without specific prior written permission.
|
|
868
|
+
*
|
|
869
|
+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
870
|
+
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
871
|
+
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
872
|
+
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
873
|
+
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
874
|
+
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
875
|
+
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
876
|
+
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
877
|
+
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
878
|
+
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
879
|
+
*/
|
|
873
880
|
|
|
881
|
+
/**
|
|
882
|
+
* Faq resource
|
|
883
|
+
*/
|
|
874
884
|
|
|
875
|
-
|
|
876
|
-
|
|
885
|
+
class Faq_Faq extends CrudBase["default"] {
|
|
886
|
+
static get resourceName() {
|
|
887
|
+
return 'faqs';
|
|
877
888
|
}
|
|
878
|
-
/**
|
|
879
|
-
* Search query
|
|
880
|
-
* @param {Object<String, String|Array<String>>} value - Search query
|
|
881
|
-
*/
|
|
882
889
|
|
|
890
|
+
}
|
|
891
|
+
// EXTERNAL MODULE: ./src/resources/Feature.js
|
|
892
|
+
var Feature = __webpack_require__(39);
|
|
883
893
|
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
}
|
|
887
|
-
/**
|
|
888
|
-
* Sort query
|
|
889
|
-
* @param {Array<String>} value - Sort query
|
|
890
|
-
*/
|
|
894
|
+
// EXTERNAL MODULE: ./src/resources/Font.js
|
|
895
|
+
var Font = __webpack_require__(41);
|
|
891
896
|
|
|
897
|
+
// EXTERNAL MODULE: ./src/resources/FontFamily.js
|
|
898
|
+
var FontFamily = __webpack_require__(40);
|
|
892
899
|
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
900
|
+
// CONCATENATED MODULE: ./src/resources/Highlight.js
|
|
901
|
+
/*
|
|
902
|
+
* BSD 3-Clause License
|
|
903
|
+
*
|
|
904
|
+
* Copyright (c) 2020, Mapcreator
|
|
905
|
+
* All rights reserved.
|
|
906
|
+
*
|
|
907
|
+
* Redistribution and use in source and binary forms, with or without
|
|
908
|
+
* modification, are permitted provided that the following conditions are met:
|
|
909
|
+
*
|
|
910
|
+
* Redistributions of source code must retain the above copyright notice, this
|
|
911
|
+
* list of conditions and the following disclaimer.
|
|
912
|
+
*
|
|
913
|
+
* Redistributions in binary form must reproduce the above copyright notice,
|
|
914
|
+
* this list of conditions and the following disclaimer in the documentation
|
|
915
|
+
* and/or other materials provided with the distribution.
|
|
916
|
+
*
|
|
917
|
+
* Neither the name of the copyright holder nor the names of its
|
|
918
|
+
* contributors may be used to endorse or promote products derived from
|
|
919
|
+
* this software without specific prior written permission.
|
|
920
|
+
*
|
|
921
|
+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
922
|
+
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
923
|
+
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
924
|
+
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
925
|
+
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
926
|
+
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
927
|
+
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
928
|
+
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
929
|
+
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
930
|
+
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
931
|
+
*/
|
|
902
932
|
|
|
903
|
-
|
|
904
|
-
|
|
933
|
+
class Highlight_Highlight extends ResourceBase["default"] {
|
|
934
|
+
static get resourceName() {
|
|
935
|
+
return 'highlights';
|
|
905
936
|
}
|
|
906
|
-
/**
|
|
907
|
-
* Extra request parameters
|
|
908
|
-
* @param {Object} value - Extra request parameters
|
|
909
|
-
*/
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
set extra(value) {
|
|
913
|
-
this._update('extra', value);
|
|
914
|
-
} // endregion instance setters
|
|
915
|
-
// endregion instance
|
|
916
|
-
// region static
|
|
917
|
-
// region getters
|
|
918
|
-
|
|
919
|
-
/**
|
|
920
|
-
* Default page number
|
|
921
|
-
* @returns {Number} - Page number
|
|
922
|
-
*/
|
|
923
|
-
|
|
924
937
|
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
938
|
+
}
|
|
939
|
+
// CONCATENATED MODULE: ./src/resources/InsetMap.js
|
|
940
|
+
/*
|
|
941
|
+
* BSD 3-Clause License
|
|
942
|
+
*
|
|
943
|
+
* Copyright (c) 2020, Mapcreator
|
|
944
|
+
* All rights reserved.
|
|
945
|
+
*
|
|
946
|
+
* Redistribution and use in source and binary forms, with or without
|
|
947
|
+
* modification, are permitted provided that the following conditions are met:
|
|
948
|
+
*
|
|
949
|
+
* Redistributions of source code must retain the above copyright notice, this
|
|
950
|
+
* list of conditions and the following disclaimer.
|
|
951
|
+
*
|
|
952
|
+
* Redistributions in binary form must reproduce the above copyright notice,
|
|
953
|
+
* this list of conditions and the following disclaimer in the documentation
|
|
954
|
+
* and/or other materials provided with the distribution.
|
|
955
|
+
*
|
|
956
|
+
* Neither the name of the copyright holder nor the names of its
|
|
957
|
+
* contributors may be used to endorse or promote products derived from
|
|
958
|
+
* this software without specific prior written permission.
|
|
959
|
+
*
|
|
960
|
+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
961
|
+
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
962
|
+
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
963
|
+
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
964
|
+
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
965
|
+
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
966
|
+
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
967
|
+
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
968
|
+
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
969
|
+
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
970
|
+
*/
|
|
932
971
|
|
|
933
972
|
|
|
934
|
-
|
|
935
|
-
|
|
973
|
+
class InsetMap_InsetMap extends ResourceBase["default"] {
|
|
974
|
+
static get resourceName() {
|
|
975
|
+
return 'inset-maps';
|
|
936
976
|
}
|
|
937
977
|
/**
|
|
938
|
-
*
|
|
939
|
-
* @returns {
|
|
978
|
+
* Get the inset map json
|
|
979
|
+
* @returns {CancelablePromise<Object>} - Inset map json
|
|
980
|
+
* @throws {ApiError} - If the api returns errors
|
|
940
981
|
*/
|
|
941
982
|
|
|
942
983
|
|
|
943
|
-
|
|
944
|
-
return
|
|
984
|
+
getJson() {
|
|
985
|
+
return Object(helpers["makeCancelable"])(signal => this.api.ky.get(`${this.url}/json`, {
|
|
986
|
+
signal
|
|
987
|
+
}).json());
|
|
945
988
|
}
|
|
946
|
-
/**
|
|
947
|
-
* Gets the maximum allowed value for perPage
|
|
948
|
-
* Some users will have a special permission that allows them to fetch more than 50 resources at once
|
|
949
|
-
* @returns {Number} - Maximum amount of resources per page
|
|
950
|
-
*/
|
|
951
|
-
|
|
952
989
|
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
/**
|
|
957
|
-
* Default search query
|
|
958
|
-
* @returns {Object<String, String|Array<String>>} - Search query
|
|
959
|
-
*/
|
|
990
|
+
}
|
|
991
|
+
// EXTERNAL MODULE: ./src/resources/Job.js
|
|
992
|
+
var Job = __webpack_require__(42);
|
|
960
993
|
|
|
994
|
+
// EXTERNAL MODULE: ./src/resources/JobResult.js
|
|
995
|
+
var JobResult = __webpack_require__(33);
|
|
961
996
|
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
}
|
|
965
|
-
/**
|
|
966
|
-
* Default sort query
|
|
967
|
-
* @returns {Array<String>} - Sort query
|
|
968
|
-
*/
|
|
997
|
+
// EXTERNAL MODULE: ./src/resources/JobRevision.js
|
|
998
|
+
var JobRevision = __webpack_require__(63);
|
|
969
999
|
|
|
1000
|
+
// EXTERNAL MODULE: ./src/resources/JobShare.js
|
|
1001
|
+
var JobShare = __webpack_require__(21);
|
|
970
1002
|
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
}
|
|
974
|
-
/**
|
|
975
|
-
* Default deleted items filter state
|
|
976
|
-
* @returns {String|undefined} - Deleted items filter state
|
|
977
|
-
*/
|
|
1003
|
+
// EXTERNAL MODULE: ./src/resources/JobType.js
|
|
1004
|
+
var JobType = __webpack_require__(43);
|
|
978
1005
|
|
|
1006
|
+
// EXTERNAL MODULE: ./src/resources/Language.js
|
|
1007
|
+
var Language = __webpack_require__(64);
|
|
979
1008
|
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
}
|
|
983
|
-
/**
|
|
984
|
-
* Default extra request parameters
|
|
985
|
-
* @returns {Object} - Extra request parameters
|
|
986
|
-
*/
|
|
1009
|
+
// EXTERNAL MODULE: ./src/resources/Layer.js
|
|
1010
|
+
var Layer = __webpack_require__(22);
|
|
987
1011
|
|
|
1012
|
+
// EXTERNAL MODULE: ./src/resources/base/CrudSetItemBase.js
|
|
1013
|
+
var CrudSetItemBase = __webpack_require__(14);
|
|
988
1014
|
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
1015
|
+
// CONCATENATED MODULE: ./src/resources/LayerFaq.js
|
|
1016
|
+
/*
|
|
1017
|
+
* BSD 3-Clause License
|
|
1018
|
+
*
|
|
1019
|
+
* Copyright (c) 2022, Mapcreator
|
|
1020
|
+
* All rights reserved.
|
|
1021
|
+
*
|
|
1022
|
+
* Redistribution and use in source and binary forms, with or without
|
|
1023
|
+
* modification, are permitted provided that the following conditions are met:
|
|
1024
|
+
*
|
|
1025
|
+
* Redistributions of source code must retain the above copyright notice, this
|
|
1026
|
+
* list of conditions and the following disclaimer.
|
|
1027
|
+
*
|
|
1028
|
+
* Redistributions in binary form must reproduce the above copyright notice,
|
|
1029
|
+
* this list of conditions and the following disclaimer in the documentation
|
|
1030
|
+
* and/or other materials provided with the distribution.
|
|
1031
|
+
*
|
|
1032
|
+
* Neither the name of the copyright holder nor the names of its
|
|
1033
|
+
* contributors may be used to endorse or promote products derived from
|
|
1034
|
+
* this software without specific prior written permission.
|
|
1035
|
+
*
|
|
1036
|
+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
1037
|
+
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
1038
|
+
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
1039
|
+
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
1040
|
+
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
1041
|
+
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
1042
|
+
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
1043
|
+
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
1044
|
+
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
1045
|
+
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
1046
|
+
*/
|
|
993
1047
|
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
1048
|
+
/**
|
|
1049
|
+
* LayerFaq
|
|
1050
|
+
* @extends CrudSetItemBase
|
|
1051
|
+
*/
|
|
998
1052
|
|
|
1053
|
+
class LayerFaq_LayerFaq extends CrudSetItemBase["default"] {
|
|
1054
|
+
static get resourceName() {
|
|
1055
|
+
return 'layer-faqs';
|
|
1056
|
+
}
|
|
999
1057
|
|
|
1000
|
-
static
|
|
1001
|
-
|
|
1058
|
+
static get parentKey() {
|
|
1059
|
+
return 'layer_group_id';
|
|
1002
1060
|
}
|
|
1003
|
-
/**
|
|
1004
|
-
* Default per page
|
|
1005
|
-
* @param {Number} value - Per page
|
|
1006
|
-
*/
|
|
1007
1061
|
|
|
1062
|
+
}
|
|
1063
|
+
// EXTERNAL MODULE: ./src/resources/Mapstyle.js
|
|
1064
|
+
var Mapstyle = __webpack_require__(44);
|
|
1008
1065
|
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
}
|
|
1012
|
-
/**
|
|
1013
|
-
* Default pagination offset
|
|
1014
|
-
* @param {Number} value - Offset
|
|
1015
|
-
*/
|
|
1066
|
+
// EXTERNAL MODULE: ./src/resources/MapstyleSet.js + 1 modules
|
|
1067
|
+
var MapstyleSet = __webpack_require__(50);
|
|
1016
1068
|
|
|
1069
|
+
// EXTERNAL MODULE: ./src/resources/Message.js + 1 modules
|
|
1070
|
+
var Message = __webpack_require__(57);
|
|
1017
1071
|
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
}
|
|
1021
|
-
/**
|
|
1022
|
-
* Sets the maximum allowed value for perPage
|
|
1023
|
-
* Some users will have a special permission that allows them to fetch more than 50 resources at once
|
|
1024
|
-
* @param {Number} value - Maximum amount of resources per page
|
|
1025
|
-
*/
|
|
1072
|
+
// EXTERNAL MODULE: ./src/resources/Notification.js
|
|
1073
|
+
var Notification = __webpack_require__(65);
|
|
1026
1074
|
|
|
1075
|
+
// EXTERNAL MODULE: ./src/resources/Organisation.js
|
|
1076
|
+
var Organisation = __webpack_require__(54);
|
|
1027
1077
|
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
}
|
|
1031
|
-
/**
|
|
1032
|
-
* Default search query
|
|
1033
|
-
* @param {Object<String, String|Array<String>>} value - Search query
|
|
1034
|
-
*/
|
|
1078
|
+
// EXTERNAL MODULE: ./src/resources/Permission.js
|
|
1079
|
+
var Permission = __webpack_require__(49);
|
|
1035
1080
|
|
|
1081
|
+
// EXTERNAL MODULE: ./src/utils/reflection.js
|
|
1082
|
+
var reflection = __webpack_require__(1);
|
|
1036
1083
|
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
}
|
|
1040
|
-
/**
|
|
1041
|
-
* Default sort query
|
|
1042
|
-
* @param {Array<String>} value - Sort query
|
|
1043
|
-
*/
|
|
1084
|
+
// EXTERNAL MODULE: ./src/resources/base/CrudSetBase.js
|
|
1085
|
+
var CrudSetBase = __webpack_require__(17);
|
|
1044
1086
|
|
|
1087
|
+
// CONCATENATED MODULE: ./src/resources/ProductTourStep.js
|
|
1088
|
+
/*
|
|
1089
|
+
* BSD 3-Clause License
|
|
1090
|
+
*
|
|
1091
|
+
* Copyright (c) 2020, Mapcreator
|
|
1092
|
+
* All rights reserved.
|
|
1093
|
+
*
|
|
1094
|
+
* Redistribution and use in source and binary forms, with or without
|
|
1095
|
+
* modification, are permitted provided that the following conditions are met:
|
|
1096
|
+
*
|
|
1097
|
+
* Redistributions of source code must retain the above copyright notice, this
|
|
1098
|
+
* list of conditions and the following disclaimer.
|
|
1099
|
+
*
|
|
1100
|
+
* Redistributions in binary form must reproduce the above copyright notice,
|
|
1101
|
+
* this list of conditions and the following disclaimer in the documentation
|
|
1102
|
+
* and/or other materials provided with the distribution.
|
|
1103
|
+
*
|
|
1104
|
+
* Neither the name of the copyright holder nor the names of its
|
|
1105
|
+
* contributors may be used to endorse or promote products derived from
|
|
1106
|
+
* this software without specific prior written permission.
|
|
1107
|
+
*
|
|
1108
|
+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
1109
|
+
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
1110
|
+
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
1111
|
+
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
1112
|
+
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
1113
|
+
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
1114
|
+
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
1115
|
+
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
1116
|
+
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
1117
|
+
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
1118
|
+
*/
|
|
1045
1119
|
|
|
1046
|
-
static set sort(value) {
|
|
1047
|
-
RequestParameters._sort = RequestParameters._validateSort(value);
|
|
1048
|
-
}
|
|
1049
|
-
/**
|
|
1050
|
-
* Default deleted items filter state
|
|
1051
|
-
* @param {String} value - Deleted items filter state
|
|
1052
|
-
*/
|
|
1053
1120
|
|
|
1121
|
+
/**
|
|
1122
|
+
* @extends CrudSetItemBase
|
|
1123
|
+
*/
|
|
1054
1124
|
|
|
1055
|
-
|
|
1056
|
-
|
|
1125
|
+
class ProductTourStep_ProductTourStep extends Object(reflection["mix"])(CrudSetItemBase["default"]) {
|
|
1126
|
+
static get resourceName() {
|
|
1127
|
+
return 'product-tours/steps';
|
|
1057
1128
|
}
|
|
1058
|
-
/**
|
|
1059
|
-
* Default extra request parameters
|
|
1060
|
-
* @param {Object} value - Extra request parameters
|
|
1061
|
-
*/
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
static set extra(value) {
|
|
1065
|
-
RequestParameters._extra = RequestParameters._validateExtra(value);
|
|
1066
|
-
} // endregion setters
|
|
1067
|
-
// endregion static
|
|
1068
|
-
// region validators
|
|
1069
|
-
|
|
1070
|
-
/**
|
|
1071
|
-
* Validators should work the same as laravel's ::validate method. This means
|
|
1072
|
-
* this means that they will throw a TypeError or return a normalized result.
|
|
1073
|
-
*/
|
|
1074
1129
|
|
|
1130
|
+
static get parentKey() {
|
|
1131
|
+
return 'product_tour_id';
|
|
1132
|
+
}
|
|
1075
1133
|
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1134
|
+
}
|
|
1135
|
+
// CONCATENATED MODULE: ./src/resources/ProductTour.js
|
|
1136
|
+
/*
|
|
1137
|
+
* BSD 3-Clause License
|
|
1138
|
+
*
|
|
1139
|
+
* Copyright (c) 2020, Mapcreator
|
|
1140
|
+
* All rights reserved.
|
|
1141
|
+
*
|
|
1142
|
+
* Redistribution and use in source and binary forms, with or without
|
|
1143
|
+
* modification, are permitted provided that the following conditions are met:
|
|
1144
|
+
*
|
|
1145
|
+
* Redistributions of source code must retain the above copyright notice, this
|
|
1146
|
+
* list of conditions and the following disclaimer.
|
|
1147
|
+
*
|
|
1148
|
+
* Redistributions in binary form must reproduce the above copyright notice,
|
|
1149
|
+
* this list of conditions and the following disclaimer in the documentation
|
|
1150
|
+
* and/or other materials provided with the distribution.
|
|
1151
|
+
*
|
|
1152
|
+
* Neither the name of the copyright holder nor the names of its
|
|
1153
|
+
* contributors may be used to endorse or promote products derived from
|
|
1154
|
+
* this software without specific prior written permission.
|
|
1155
|
+
*
|
|
1156
|
+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
1157
|
+
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
1158
|
+
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
1159
|
+
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
1160
|
+
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
1161
|
+
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
1162
|
+
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
1163
|
+
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
1164
|
+
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
1165
|
+
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
1166
|
+
*/
|
|
1080
1167
|
|
|
1081
|
-
if (value < 0) {
|
|
1082
|
-
throw new TypeError('Page must be a positive number');
|
|
1083
|
-
}
|
|
1084
1168
|
|
|
1085
|
-
if (Number.isNaN(value) || !Number.isFinite(value)) {
|
|
1086
|
-
throw new TypeError('Page must be a real number');
|
|
1087
|
-
}
|
|
1088
1169
|
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1170
|
+
/**
|
|
1171
|
+
* Mapstyle set
|
|
1172
|
+
* @extends CrudSetBase
|
|
1173
|
+
*/
|
|
1092
1174
|
|
|
1093
|
-
|
|
1175
|
+
class ProductTour_ProductTour extends Object(reflection["mix"])(CrudSetBase["default"]) {
|
|
1176
|
+
static get resourcePath() {
|
|
1177
|
+
return '/product-tours/{id}';
|
|
1094
1178
|
}
|
|
1095
1179
|
|
|
1096
|
-
static
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
}
|
|
1100
|
-
|
|
1101
|
-
if (value <= 0) {
|
|
1102
|
-
throw new TypeError('Per page must be greater than zero');
|
|
1103
|
-
}
|
|
1104
|
-
|
|
1105
|
-
if (Number.isNaN(value) || !Number.isFinite(value)) {
|
|
1106
|
-
throw new TypeError('Per page must be a real number');
|
|
1107
|
-
}
|
|
1108
|
-
|
|
1109
|
-
if (Math.round(value) !== value) {
|
|
1110
|
-
throw new TypeError('Per page must be a natural number');
|
|
1111
|
-
} // Upper limit is 50 by default
|
|
1112
|
-
|
|
1180
|
+
static get resourceName() {
|
|
1181
|
+
return 'product-tours';
|
|
1182
|
+
}
|
|
1113
1183
|
|
|
1114
|
-
|
|
1115
|
-
return
|
|
1184
|
+
get _Child() {
|
|
1185
|
+
return ProductTourStep_ProductTourStep;
|
|
1116
1186
|
}
|
|
1117
1187
|
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
}
|
|
1188
|
+
}
|
|
1189
|
+
// EXTERNAL MODULE: ./src/resources/Role.js
|
|
1190
|
+
var Role = __webpack_require__(66);
|
|
1122
1191
|
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
}
|
|
1192
|
+
// EXTERNAL MODULE: ./src/resources/Svg.js
|
|
1193
|
+
var Svg = __webpack_require__(46);
|
|
1126
1194
|
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
}
|
|
1195
|
+
// EXTERNAL MODULE: ./src/resources/SvgSet.js
|
|
1196
|
+
var SvgSet = __webpack_require__(45);
|
|
1130
1197
|
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
}
|
|
1198
|
+
// EXTERNAL MODULE: ./src/resources/Tag.js
|
|
1199
|
+
var Tag = __webpack_require__(47);
|
|
1134
1200
|
|
|
1135
|
-
|
|
1136
|
-
|
|
1201
|
+
// CONCATENATED MODULE: ./src/resources/TagType.js
|
|
1202
|
+
/*
|
|
1203
|
+
* BSD 3-Clause License
|
|
1204
|
+
*
|
|
1205
|
+
* Copyright (c) 2020, Mapcreator
|
|
1206
|
+
* All rights reserved.
|
|
1207
|
+
*
|
|
1208
|
+
* Redistribution and use in source and binary forms, with or without
|
|
1209
|
+
* modification, are permitted provided that the following conditions are met:
|
|
1210
|
+
*
|
|
1211
|
+
* Redistributions of source code must retain the above copyright notice, this
|
|
1212
|
+
* list of conditions and the following disclaimer.
|
|
1213
|
+
*
|
|
1214
|
+
* Redistributions in binary form must reproduce the above copyright notice,
|
|
1215
|
+
* this list of conditions and the following disclaimer in the documentation
|
|
1216
|
+
* and/or other materials provided with the distribution.
|
|
1217
|
+
*
|
|
1218
|
+
* Neither the name of the copyright holder nor the names of its
|
|
1219
|
+
* contributors may be used to endorse or promote products derived from
|
|
1220
|
+
* this software without specific prior written permission.
|
|
1221
|
+
*
|
|
1222
|
+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
1223
|
+
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
1224
|
+
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
1225
|
+
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
1226
|
+
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
1227
|
+
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
1228
|
+
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
1229
|
+
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
1230
|
+
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
1231
|
+
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
1232
|
+
*/
|
|
1137
1233
|
|
|
1138
|
-
static _validateMaxPerPage(value) {
|
|
1139
|
-
if (typeof value !== 'number') {
|
|
1140
|
-
throw new TypeError(`Expected page to be of type 'Number' instead got '${Object(_utils_reflection__WEBPACK_IMPORTED_MODULE_4__["getTypeName"])(value)}'`);
|
|
1141
|
-
}
|
|
1142
1234
|
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1235
|
+
/**
|
|
1236
|
+
* TagType resource
|
|
1237
|
+
* @mixes CrudSetBase
|
|
1238
|
+
*/
|
|
1146
1239
|
|
|
1147
|
-
|
|
1240
|
+
class TagType_TagType extends CrudBase["default"] {
|
|
1241
|
+
static get resourcePath() {
|
|
1242
|
+
return '/tags/types/{id}';
|
|
1148
1243
|
}
|
|
1149
1244
|
|
|
1150
|
-
static
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1245
|
+
static get resourceName() {
|
|
1246
|
+
return 'tag-types';
|
|
1247
|
+
}
|
|
1248
|
+
/**
|
|
1249
|
+
* Get the list of tags that are attached to this type
|
|
1250
|
+
* @returns {SimpleResourceProxy} - A proxy for accessing the resource
|
|
1251
|
+
*/
|
|
1155
1252
|
|
|
1156
|
-
const normalize = x => typeof x === 'number' ? x.toString() : x;
|
|
1157
1253
|
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1254
|
+
get tags() {
|
|
1255
|
+
return this._proxyResourceList(Tag["default"], `${this.url}/tags`);
|
|
1256
|
+
}
|
|
1161
1257
|
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1258
|
+
}
|
|
1259
|
+
// EXTERNAL MODULE: ./src/resources/User.js
|
|
1260
|
+
var User = __webpack_require__(48);
|
|
1165
1261
|
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1262
|
+
// CONCATENATED MODULE: ./src/resources/VectorHighlight.js
|
|
1263
|
+
/*
|
|
1264
|
+
* BSD 3-Clause License
|
|
1265
|
+
*
|
|
1266
|
+
* Copyright (c) 2020, Mapcreator
|
|
1267
|
+
* All rights reserved.
|
|
1268
|
+
*
|
|
1269
|
+
* Redistribution and use in source and binary forms, with or without
|
|
1270
|
+
* modification, are permitted provided that the following conditions are met:
|
|
1271
|
+
*
|
|
1272
|
+
* Redistributions of source code must retain the above copyright notice, this
|
|
1273
|
+
* list of conditions and the following disclaimer.
|
|
1274
|
+
*
|
|
1275
|
+
* Redistributions in binary form must reproduce the above copyright notice,
|
|
1276
|
+
* this list of conditions and the following disclaimer in the documentation
|
|
1277
|
+
* and/or other materials provided with the distribution.
|
|
1278
|
+
*
|
|
1279
|
+
* Neither the name of the copyright holder nor the names of its
|
|
1280
|
+
* contributors may be used to endorse or promote products derived from
|
|
1281
|
+
* this software without specific prior written permission.
|
|
1282
|
+
*
|
|
1283
|
+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
1284
|
+
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
1285
|
+
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
1286
|
+
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
1287
|
+
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
1288
|
+
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
1289
|
+
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
1290
|
+
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
1291
|
+
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
1292
|
+
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
1293
|
+
*/
|
|
1183
1294
|
|
|
1184
|
-
|
|
1295
|
+
class VectorHighlight_VectorHighlight extends ResourceBase["default"] {
|
|
1296
|
+
static get resourceName() {
|
|
1297
|
+
return 'highlights/vector';
|
|
1185
1298
|
}
|
|
1186
1299
|
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1300
|
+
}
|
|
1301
|
+
// CONCATENATED MODULE: ./src/resources/VectorChoropleth.js
|
|
1302
|
+
/*
|
|
1303
|
+
* BSD 3-Clause License
|
|
1304
|
+
*
|
|
1305
|
+
* Copyright (c) 2020, Mapcreator
|
|
1306
|
+
* All rights reserved.
|
|
1307
|
+
*
|
|
1308
|
+
* Redistribution and use in source and binary forms, with or without
|
|
1309
|
+
* modification, are permitted provided that the following conditions are met:
|
|
1310
|
+
*
|
|
1311
|
+
* Redistributions of source code must retain the above copyright notice, this
|
|
1312
|
+
* list of conditions and the following disclaimer.
|
|
1313
|
+
*
|
|
1314
|
+
* Redistributions in binary form must reproduce the above copyright notice,
|
|
1315
|
+
* this list of conditions and the following disclaimer in the documentation
|
|
1316
|
+
* and/or other materials provided with the distribution.
|
|
1317
|
+
*
|
|
1318
|
+
* Neither the name of the copyright holder nor the names of its
|
|
1319
|
+
* contributors may be used to endorse or promote products derived from
|
|
1320
|
+
* this software without specific prior written permission.
|
|
1321
|
+
*
|
|
1322
|
+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
1323
|
+
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
1324
|
+
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
1325
|
+
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
1326
|
+
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
1327
|
+
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
1328
|
+
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
1329
|
+
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
1330
|
+
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
1331
|
+
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
1332
|
+
*/
|
|
1191
1333
|
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1334
|
+
class VectorChoropleth_VectorChoropleth extends ResourceBase["default"] {
|
|
1335
|
+
static get resourceName() {
|
|
1336
|
+
return 'choropleths/vector';
|
|
1337
|
+
}
|
|
1195
1338
|
|
|
1339
|
+
}
|
|
1340
|
+
// CONCATENATED MODULE: ./src/resources/index.js
|
|
1341
|
+
/*
|
|
1342
|
+
* BSD 3-Clause License
|
|
1343
|
+
*
|
|
1344
|
+
* Copyright (c) 2020, Mapcreator
|
|
1345
|
+
* All rights reserved.
|
|
1346
|
+
*
|
|
1347
|
+
* Redistribution and use in source and binary forms, with or without
|
|
1348
|
+
* modification, are permitted provided that the following conditions are met:
|
|
1349
|
+
*
|
|
1350
|
+
* Redistributions of source code must retain the above copyright notice, this
|
|
1351
|
+
* list of conditions and the following disclaimer.
|
|
1352
|
+
*
|
|
1353
|
+
* Redistributions in binary form must reproduce the above copyright notice,
|
|
1354
|
+
* this list of conditions and the following disclaimer in the documentation
|
|
1355
|
+
* and/or other materials provided with the distribution.
|
|
1356
|
+
*
|
|
1357
|
+
* Neither the name of the copyright holder nor the names of its
|
|
1358
|
+
* contributors may be used to endorse or promote products derived from
|
|
1359
|
+
* this software without specific prior written permission.
|
|
1360
|
+
*
|
|
1361
|
+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
1362
|
+
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
1363
|
+
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
1364
|
+
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
1365
|
+
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
1366
|
+
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
1367
|
+
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
1368
|
+
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
1369
|
+
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
1370
|
+
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
1371
|
+
*/
|
|
1196
1372
|
|
|
1197
|
-
value.filter(x => typeof x !== 'string').forEach(x => {
|
|
1198
|
-
throw new TypeError(`Expected sort array values to be of type "String" got "${Object(_utils_reflection__WEBPACK_IMPORTED_MODULE_4__["getTypeName"])(x)}"`);
|
|
1199
|
-
}); // Don't do regex matching because it's something
|
|
1200
|
-
// we can just let the server do for us.
|
|
1201
1373
|
|
|
1202
|
-
return value;
|
|
1203
|
-
}
|
|
1204
1374
|
|
|
1205
|
-
static _validateDeleted(value) {
|
|
1206
|
-
if (typeof value === 'undefined') {
|
|
1207
|
-
return value;
|
|
1208
|
-
}
|
|
1209
1375
|
|
|
1210
|
-
if (typeof value !== 'string') {
|
|
1211
|
-
throw new TypeError(`Expected deleted to be of type "string" got "${Object(_utils_reflection__WEBPACK_IMPORTED_MODULE_4__["getTypeName"])(value)}". See: DeletedState`);
|
|
1212
|
-
}
|
|
1213
1376
|
|
|
1214
|
-
value = value.toLowerCase();
|
|
1215
|
-
const possible = _enums__WEBPACK_IMPORTED_MODULE_2__["DeletedState"].values();
|
|
1216
1377
|
|
|
1217
|
-
if (!possible.includes(value)) {
|
|
1218
|
-
throw new TypeError(`Expected deleted to be one of ${possible.join(', ')}, got ${value}`);
|
|
1219
|
-
}
|
|
1220
1378
|
|
|
1221
|
-
return value;
|
|
1222
|
-
}
|
|
1223
1379
|
|
|
1224
|
-
static _validateExtra(value) {
|
|
1225
|
-
if (typeof value !== 'object') {
|
|
1226
|
-
throw new TypeError(`Expected extra to be of type 'object', got '${Object(_utils_reflection__WEBPACK_IMPORTED_MODULE_4__["getTypeName"])(value)}'`);
|
|
1227
|
-
}
|
|
1228
1380
|
|
|
1229
|
-
return value;
|
|
1230
|
-
} // endregion validators
|
|
1231
1381
|
|
|
1232
1382
|
|
|
1233
|
-
_resolve(name) {
|
|
1234
|
-
const _name = `_${name}`;
|
|
1235
1383
|
|
|
1236
|
-
if (!this[_name]) {
|
|
1237
|
-
// Confuse esdoc
|
|
1238
|
-
(this || {})[_name] = RequestParameters[name];
|
|
1239
|
-
}
|
|
1240
1384
|
|
|
1241
|
-
return this[_name];
|
|
1242
|
-
}
|
|
1243
1385
|
|
|
1244
|
-
_update(name, value, preventEvent = false) {
|
|
1245
|
-
const _name = `_${name}`;
|
|
1246
|
-
value = RequestParameters[`_validate${Object(case__WEBPACK_IMPORTED_MODULE_0__["pascal"])(name)}`](value);
|
|
1247
|
-
(this || {})[_name] = value; // Weird syntax confuses esdoc
|
|
1248
1386
|
|
|
1249
|
-
if (!preventEvent) {
|
|
1250
|
-
/**
|
|
1251
|
-
* Change event.
|
|
1252
|
-
*
|
|
1253
|
-
* @event RequestParameters#change
|
|
1254
|
-
* @type {Array<object>}
|
|
1255
|
-
* @property {string} name - Parameter name
|
|
1256
|
-
* @property {*} value - New value
|
|
1257
|
-
*/
|
|
1258
|
-
this.emit('change', [{
|
|
1259
|
-
name,
|
|
1260
|
-
value
|
|
1261
|
-
}]);
|
|
1262
|
-
this.emit(`change:${name}`, value);
|
|
1263
|
-
}
|
|
1264
1387
|
|
|
1265
|
-
return value;
|
|
1266
|
-
} // region utils
|
|
1267
1388
|
|
|
1268
|
-
/**
|
|
1269
|
-
* Urlencode parameters
|
|
1270
|
-
* @returns {string} - HTTP query
|
|
1271
|
-
*/
|
|
1272
1389
|
|
|
1273
1390
|
|
|
1274
|
-
encode() {
|
|
1275
|
-
return Object(_utils_requests__WEBPACK_IMPORTED_MODULE_5__["encodeQueryString"])(this.toParameterObject());
|
|
1276
|
-
}
|
|
1277
|
-
/**
|
|
1278
|
-
* Convert to object
|
|
1279
|
-
* @returns {Object} - Object
|
|
1280
|
-
*/
|
|
1281
1391
|
|
|
1282
1392
|
|
|
1283
|
-
toObject() {
|
|
1284
|
-
return RequestParameters.keys().reduce((obj, key) => {
|
|
1285
|
-
obj[Object(case__WEBPACK_IMPORTED_MODULE_0__["snake"])(key)] = this._resolve(key);
|
|
1286
|
-
return obj;
|
|
1287
|
-
}, {});
|
|
1288
|
-
}
|
|
1289
|
-
/**
|
|
1290
|
-
* Convert to object
|
|
1291
|
-
* @returns {Object} - Object
|
|
1292
|
-
*/
|
|
1293
1393
|
|
|
1294
1394
|
|
|
1295
|
-
toParameterObject() {
|
|
1296
|
-
const data = {};
|
|
1297
|
-
RequestParameters.keys().forEach(key => {
|
|
1298
|
-
// Skip extra key
|
|
1299
|
-
if (key === 'extra') {
|
|
1300
|
-
return;
|
|
1301
|
-
}
|
|
1302
1395
|
|
|
1303
|
-
data[Object(case__WEBPACK_IMPORTED_MODULE_0__["snake"])(key)] = this._resolve(key);
|
|
1304
|
-
}); // Fix column names for sort
|
|
1305
1396
|
|
|
1306
|
-
data.sort = data.sort.map(case__WEBPACK_IMPORTED_MODULE_0__["snake"]).map(x => x.replace(/^_/, '-')).join(',');
|
|
1307
1397
|
|
|
1308
|
-
if (data.offset === 0) {
|
|
1309
|
-
delete data.offset;
|
|
1310
|
-
} // Fix column names for search
|
|
1311
1398
|
|
|
1312
1399
|
|
|
1313
|
-
for (const key of Object.keys(data.search)) {
|
|
1314
|
-
const snakeKey = key.split(',').map(case__WEBPACK_IMPORTED_MODULE_0__["snake"]).join(',');
|
|
1315
1400
|
|
|
1316
|
-
if (key !== snakeKey) {
|
|
1317
|
-
data.search[snakeKey] = data.search[key];
|
|
1318
|
-
delete data.search[key];
|
|
1319
|
-
}
|
|
1320
|
-
} // Cast search values
|
|
1321
1401
|
|
|
1322
1402
|
|
|
1323
|
-
for (const key of Object.keys(data.search)) {
|
|
1324
|
-
if (typeof data.search[key] === 'boolean') {
|
|
1325
|
-
data.search[key] = Number(data.search[key]);
|
|
1326
|
-
}
|
|
1327
1403
|
|
|
1328
|
-
if (data.search[key] === null) {
|
|
1329
|
-
data.search[key] = '';
|
|
1330
|
-
}
|
|
1331
|
-
} // Overwrite using extra properties
|
|
1332
1404
|
|
|
1333
1405
|
|
|
1334
|
-
const extra = this._resolve('extra');
|
|
1335
1406
|
|
|
1336
|
-
for (const key of Object.keys(extra)) {
|
|
1337
|
-
data[key] = extra[key];
|
|
1338
|
-
}
|
|
1339
1407
|
|
|
1340
|
-
for (const key of Object.keys(data)) {
|
|
1341
|
-
if (typeof data[key] === 'undefined') {
|
|
1342
|
-
delete data[key];
|
|
1343
|
-
}
|
|
1344
|
-
}
|
|
1345
1408
|
|
|
1346
|
-
return data;
|
|
1347
|
-
}
|
|
1348
|
-
/**
|
|
1349
|
-
* Copy object
|
|
1350
|
-
* @returns {RequestParameters} - Copy
|
|
1351
|
-
*/
|
|
1352
1409
|
|
|
1353
1410
|
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
/**
|
|
1358
|
-
* Different parameters
|
|
1359
|
-
* @returns {Array<String>} - keys
|
|
1360
|
-
*/
|
|
1411
|
+
/**
|
|
1412
|
+
* @private
|
|
1413
|
+
*/
|
|
1361
1414
|
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
/**
|
|
1368
|
-
* Generates a cache token
|
|
1369
|
-
* @returns {string} - Cache token
|
|
1370
|
-
*/
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
token() {
|
|
1374
|
-
const data = this.toObject();
|
|
1375
|
-
delete data.page;
|
|
1376
|
-
delete data['per_page'];
|
|
1377
|
-
return Object(_utils_hash__WEBPACK_IMPORTED_MODULE_3__["hashObject"])(data);
|
|
1378
|
-
}
|
|
1379
|
-
/**
|
|
1380
|
-
* Resets all parameters back to default
|
|
1381
|
-
*/
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
static resetDefaults() {
|
|
1385
|
-
for (const key of RequestParameters.keys()) {
|
|
1386
|
-
delete RequestParameters[`_${key}`];
|
|
1387
|
-
}
|
|
1388
|
-
}
|
|
1389
|
-
/**
|
|
1390
|
-
* Apply parameters from object
|
|
1391
|
-
* @param {object|RequestParameters} params - parameters
|
|
1392
|
-
* @returns {Object[]} - Array containing the updated values
|
|
1393
|
-
* @example
|
|
1394
|
-
* const params = new RequestParameters({perPage: 12});
|
|
1395
|
-
*
|
|
1396
|
-
* params.perPage === 12;
|
|
1397
|
-
*
|
|
1398
|
-
* params.apply({perPage: 50});
|
|
1399
|
-
*
|
|
1400
|
-
* params.perPage === 50;
|
|
1401
|
-
*/
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
apply(params) {
|
|
1405
|
-
if (params instanceof RequestParameters) {
|
|
1406
|
-
params = params.toObject();
|
|
1407
|
-
}
|
|
1408
|
-
|
|
1409
|
-
const out = [];
|
|
1410
|
-
|
|
1411
|
-
for (const key of Object.keys(params)) {
|
|
1412
|
-
const Key = Object(case__WEBPACK_IMPORTED_MODULE_0__["camel"])(key);
|
|
1413
|
-
|
|
1414
|
-
if (key[0] === '_' || !RequestParameters.keys().includes(Key)) {
|
|
1415
|
-
continue;
|
|
1416
|
-
}
|
|
1417
|
-
|
|
1418
|
-
out.push({
|
|
1419
|
-
name: Key,
|
|
1420
|
-
value: this._update(Key, params[key], true)
|
|
1421
|
-
});
|
|
1422
|
-
}
|
|
1423
|
-
|
|
1424
|
-
this.emit('change', out);
|
|
1425
|
-
|
|
1426
|
-
for (const {
|
|
1427
|
-
name,
|
|
1428
|
-
value
|
|
1429
|
-
} of out) {
|
|
1430
|
-
this.emit(`change:${name}`, value);
|
|
1431
|
-
}
|
|
1432
|
-
|
|
1433
|
-
return out;
|
|
1434
|
-
} // endregion utils
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
}
|
|
1415
|
+
const base = {
|
|
1416
|
+
CrudBase: CrudBase["default"],
|
|
1417
|
+
CrudSetBase: CrudSetBase["default"],
|
|
1418
|
+
ResourceBase: ResourceBase["default"]
|
|
1419
|
+
};
|
|
1438
1420
|
|
|
1439
1421
|
/***/ }),
|
|
1440
1422
|
/* 4 */
|
|
1441
1423
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1442
1424
|
|
|
1443
1425
|
"use strict";
|
|
1444
|
-
// ESM COMPAT FLAG
|
|
1445
1426
|
__webpack_require__.r(__webpack_exports__);
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
__webpack_require__.d(__webpack_exports__, "Feature", function() { return /* reexport */ Feature["default"]; });
|
|
1456
|
-
__webpack_require__.d(__webpack_exports__, "Font", function() { return /* reexport */ Font["default"]; });
|
|
1457
|
-
__webpack_require__.d(__webpack_exports__, "FontFamily", function() { return /* reexport */ FontFamily["default"]; });
|
|
1458
|
-
__webpack_require__.d(__webpack_exports__, "Highlight", function() { return /* reexport */ Highlight_Highlight; });
|
|
1459
|
-
__webpack_require__.d(__webpack_exports__, "InsetMap", function() { return /* reexport */ InsetMap_InsetMap; });
|
|
1460
|
-
__webpack_require__.d(__webpack_exports__, "Job", function() { return /* reexport */ Job["default"]; });
|
|
1461
|
-
__webpack_require__.d(__webpack_exports__, "JobResult", function() { return /* reexport */ JobResult["default"]; });
|
|
1462
|
-
__webpack_require__.d(__webpack_exports__, "JobRevision", function() { return /* reexport */ JobRevision["default"]; });
|
|
1463
|
-
__webpack_require__.d(__webpack_exports__, "JobShare", function() { return /* reexport */ JobShare["default"]; });
|
|
1464
|
-
__webpack_require__.d(__webpack_exports__, "JobType", function() { return /* reexport */ JobType["default"]; });
|
|
1465
|
-
__webpack_require__.d(__webpack_exports__, "Language", function() { return /* reexport */ Language["default"]; });
|
|
1466
|
-
__webpack_require__.d(__webpack_exports__, "Layer", function() { return /* reexport */ Layer["default"]; });
|
|
1467
|
-
__webpack_require__.d(__webpack_exports__, "Mapstyle", function() { return /* reexport */ Mapstyle["default"]; });
|
|
1468
|
-
__webpack_require__.d(__webpack_exports__, "MapstyleSet", function() { return /* reexport */ MapstyleSet["default"]; });
|
|
1469
|
-
__webpack_require__.d(__webpack_exports__, "Message", function() { return /* reexport */ Message["default"]; });
|
|
1470
|
-
__webpack_require__.d(__webpack_exports__, "Notification", function() { return /* reexport */ Notification["default"]; });
|
|
1471
|
-
__webpack_require__.d(__webpack_exports__, "Organisation", function() { return /* reexport */ Organisation["default"]; });
|
|
1472
|
-
__webpack_require__.d(__webpack_exports__, "Permission", function() { return /* reexport */ Permission["default"]; });
|
|
1473
|
-
__webpack_require__.d(__webpack_exports__, "ProductTour", function() { return /* reexport */ ProductTour_ProductTour; });
|
|
1474
|
-
__webpack_require__.d(__webpack_exports__, "ProductTourStep", function() { return /* reexport */ ProductTourStep_ProductTourStep; });
|
|
1475
|
-
__webpack_require__.d(__webpack_exports__, "Role", function() { return /* reexport */ Role["default"]; });
|
|
1476
|
-
__webpack_require__.d(__webpack_exports__, "Svg", function() { return /* reexport */ Svg["default"]; });
|
|
1477
|
-
__webpack_require__.d(__webpack_exports__, "SvgSet", function() { return /* reexport */ SvgSet["default"]; });
|
|
1478
|
-
__webpack_require__.d(__webpack_exports__, "Tag", function() { return /* reexport */ Tag["default"]; });
|
|
1479
|
-
__webpack_require__.d(__webpack_exports__, "TagType", function() { return /* reexport */ TagType_TagType; });
|
|
1480
|
-
__webpack_require__.d(__webpack_exports__, "User", function() { return /* reexport */ User["default"]; });
|
|
1481
|
-
__webpack_require__.d(__webpack_exports__, "VectorHighlight", function() { return /* reexport */ VectorHighlight_VectorHighlight; });
|
|
1482
|
-
__webpack_require__.d(__webpack_exports__, "VectorChoropleth", function() { return /* reexport */ VectorChoropleth_VectorChoropleth; });
|
|
1483
|
-
__webpack_require__.d(__webpack_exports__, "base", function() { return /* binding */ base; });
|
|
1484
|
-
|
|
1485
|
-
// EXTERNAL MODULE: ./src/resources/base/DownloadedResource.js + 1 modules
|
|
1486
|
-
var DownloadedResource = __webpack_require__(23);
|
|
1487
|
-
|
|
1488
|
-
// EXTERNAL MODULE: ./src/resources/base/ResourceBase.js
|
|
1489
|
-
var ResourceBase = __webpack_require__(6);
|
|
1490
|
-
|
|
1491
|
-
// EXTERNAL MODULE: ./src/utils/helpers.js
|
|
1492
|
-
var helpers = __webpack_require__(0);
|
|
1493
|
-
|
|
1494
|
-
// CONCATENATED MODULE: ./src/resources/Choropleth.js
|
|
1427
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return RequestParameters; });
|
|
1428
|
+
/* harmony import */ var case__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(7);
|
|
1429
|
+
/* harmony import */ var case__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(case__WEBPACK_IMPORTED_MODULE_0__);
|
|
1430
|
+
/* harmony import */ var events__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(53);
|
|
1431
|
+
/* harmony import */ var events__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(events__WEBPACK_IMPORTED_MODULE_1__);
|
|
1432
|
+
/* harmony import */ var _enums__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(8);
|
|
1433
|
+
/* harmony import */ var _utils_hash__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(29);
|
|
1434
|
+
/* harmony import */ var _utils_reflection__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(1);
|
|
1435
|
+
/* harmony import */ var _utils_requests__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(5);
|
|
1495
1436
|
/*
|
|
1496
1437
|
* BSD 3-Clause License
|
|
1497
1438
|
*
|
|
@@ -1526,619 +1467,693 @@ var helpers = __webpack_require__(0);
|
|
|
1526
1467
|
|
|
1527
1468
|
|
|
1528
1469
|
|
|
1470
|
+
|
|
1471
|
+
|
|
1472
|
+
|
|
1529
1473
|
/**
|
|
1530
|
-
*
|
|
1474
|
+
* Used for keeping track of the request parameters
|
|
1475
|
+
*
|
|
1476
|
+
* @fires RequestParameters#change
|
|
1477
|
+
* @fires RequestParameters#change:page
|
|
1478
|
+
* @fires RequestParameters#change:perPage
|
|
1479
|
+
* @fires RequestParameters#change:search
|
|
1480
|
+
* @fires RequestParameters#change:sort
|
|
1481
|
+
* @fires RequestParameters#change:deleted
|
|
1482
|
+
* @fires RequestParameters#change:extra
|
|
1531
1483
|
*/
|
|
1532
1484
|
|
|
1533
|
-
class
|
|
1534
|
-
|
|
1535
|
-
|
|
1485
|
+
class RequestParameters extends events__WEBPACK_IMPORTED_MODULE_1__["EventEmitter"] {
|
|
1486
|
+
/**
|
|
1487
|
+
* RequestParameters constructor
|
|
1488
|
+
* @param {Object} object - properties
|
|
1489
|
+
*/
|
|
1490
|
+
constructor(object = {}) {
|
|
1491
|
+
super(); // Apply defaults
|
|
1492
|
+
|
|
1493
|
+
RequestParameters.keys().forEach(x => this._resolve(x)); // Apply properties
|
|
1494
|
+
|
|
1495
|
+
this.apply(object);
|
|
1496
|
+
} // region instance
|
|
1497
|
+
// region instance getters
|
|
1498
|
+
|
|
1499
|
+
/**
|
|
1500
|
+
* Get page number
|
|
1501
|
+
* @returns {Number} - Page number
|
|
1502
|
+
* @throws {TypeError}
|
|
1503
|
+
*/
|
|
1504
|
+
|
|
1505
|
+
|
|
1506
|
+
get page() {
|
|
1507
|
+
return this._resolve('page');
|
|
1536
1508
|
}
|
|
1537
1509
|
/**
|
|
1538
|
-
* Get
|
|
1539
|
-
* @returns {
|
|
1540
|
-
* @throws {
|
|
1510
|
+
* Get rows per page
|
|
1511
|
+
* @returns {Number} - Per page
|
|
1512
|
+
* @throws {TypeError}
|
|
1541
1513
|
*/
|
|
1542
1514
|
|
|
1543
1515
|
|
|
1544
|
-
|
|
1545
|
-
return
|
|
1546
|
-
signal
|
|
1547
|
-
}).json());
|
|
1516
|
+
get perPage() {
|
|
1517
|
+
return this._resolve('perPage');
|
|
1548
1518
|
}
|
|
1549
1519
|
/**
|
|
1550
|
-
*
|
|
1551
|
-
* @returns {
|
|
1552
|
-
* @throws {
|
|
1520
|
+
* Get pagination offset
|
|
1521
|
+
* @returns {Number} - Offset
|
|
1522
|
+
* @throws {TypeError}
|
|
1553
1523
|
*/
|
|
1554
1524
|
|
|
1555
1525
|
|
|
1556
|
-
|
|
1557
|
-
return
|
|
1558
|
-
const response = await this.api.ky.get(`${this.url}/preview`, {
|
|
1559
|
-
signal
|
|
1560
|
-
});
|
|
1561
|
-
return DownloadedResource["default"].fromResponse(response);
|
|
1562
|
-
});
|
|
1526
|
+
get offset() {
|
|
1527
|
+
return this._resolve('offset');
|
|
1563
1528
|
}
|
|
1529
|
+
/**
|
|
1530
|
+
* Search query
|
|
1531
|
+
* @returns {Object<String, String|Array<String>>} - Query
|
|
1532
|
+
* @throws {TypeError}
|
|
1533
|
+
*/
|
|
1564
1534
|
|
|
1565
|
-
}
|
|
1566
|
-
// EXTERNAL MODULE: ./src/resources/Color.js
|
|
1567
|
-
var Color = __webpack_require__(36);
|
|
1568
1535
|
|
|
1569
|
-
|
|
1570
|
-
|
|
1536
|
+
get search() {
|
|
1537
|
+
return this._resolve('search');
|
|
1538
|
+
}
|
|
1539
|
+
/**
|
|
1540
|
+
* Get sort options
|
|
1541
|
+
* @returns {Array<String>} - Per page
|
|
1542
|
+
* @throws {TypeError}
|
|
1543
|
+
*/
|
|
1571
1544
|
|
|
1572
|
-
// EXTERNAL MODULE: ./src/resources/Dimension.js
|
|
1573
|
-
var Dimension = __webpack_require__(38);
|
|
1574
1545
|
|
|
1575
|
-
|
|
1576
|
-
|
|
1546
|
+
get sort() {
|
|
1547
|
+
return this._resolve('sort');
|
|
1548
|
+
}
|
|
1549
|
+
/**
|
|
1550
|
+
* If deleted items should be shown
|
|
1551
|
+
* @returns {String} - Deleted items filter state
|
|
1552
|
+
* @see {@link DeletedState}
|
|
1553
|
+
*/
|
|
1577
1554
|
|
|
1578
|
-
// EXTERNAL MODULE: ./src/resources/Domain.js
|
|
1579
|
-
var Domain = __webpack_require__(62);
|
|
1580
1555
|
|
|
1581
|
-
|
|
1582
|
-
|
|
1556
|
+
get deleted() {
|
|
1557
|
+
return this._resolve('deleted');
|
|
1558
|
+
}
|
|
1559
|
+
/**
|
|
1560
|
+
* Extra parameters
|
|
1561
|
+
* @returns {Object} - Extra parameters
|
|
1562
|
+
*/
|
|
1583
1563
|
|
|
1584
|
-
// CONCATENATED MODULE: ./src/resources/Faq.js
|
|
1585
|
-
/*
|
|
1586
|
-
* BSD 3-Clause License
|
|
1587
|
-
*
|
|
1588
|
-
* Copyright (c) 2020, Mapcreator
|
|
1589
|
-
* All rights reserved.
|
|
1590
|
-
*
|
|
1591
|
-
* Redistribution and use in source and binary forms, with or without
|
|
1592
|
-
* modification, are permitted provided that the following conditions are met:
|
|
1593
|
-
*
|
|
1594
|
-
* Redistributions of source code must retain the above copyright notice, this
|
|
1595
|
-
* list of conditions and the following disclaimer.
|
|
1596
|
-
*
|
|
1597
|
-
* Redistributions in binary form must reproduce the above copyright notice,
|
|
1598
|
-
* this list of conditions and the following disclaimer in the documentation
|
|
1599
|
-
* and/or other materials provided with the distribution.
|
|
1600
|
-
*
|
|
1601
|
-
* Neither the name of the copyright holder nor the names of its
|
|
1602
|
-
* contributors may be used to endorse or promote products derived from
|
|
1603
|
-
* this software without specific prior written permission.
|
|
1604
|
-
*
|
|
1605
|
-
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
1606
|
-
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
1607
|
-
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
1608
|
-
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
1609
|
-
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
1610
|
-
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
1611
|
-
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
1612
|
-
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
1613
|
-
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
1614
|
-
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
1615
|
-
*/
|
|
1616
1564
|
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1565
|
+
get extra() {
|
|
1566
|
+
return this._resolve('extra');
|
|
1567
|
+
} // endregion instance getters
|
|
1568
|
+
// region instance setters
|
|
1620
1569
|
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1570
|
+
/**
|
|
1571
|
+
* Page number
|
|
1572
|
+
* @param {Number} value - Page number
|
|
1573
|
+
*/
|
|
1625
1574
|
|
|
1626
|
-
}
|
|
1627
|
-
// EXTERNAL MODULE: ./src/resources/Feature.js
|
|
1628
|
-
var Feature = __webpack_require__(39);
|
|
1629
1575
|
|
|
1630
|
-
|
|
1631
|
-
|
|
1576
|
+
set page(value) {
|
|
1577
|
+
this._update('page', value);
|
|
1578
|
+
}
|
|
1579
|
+
/**
|
|
1580
|
+
* Rows per page
|
|
1581
|
+
* @param {Number} value - Per page
|
|
1582
|
+
*/
|
|
1632
1583
|
|
|
1633
|
-
// EXTERNAL MODULE: ./src/resources/FontFamily.js
|
|
1634
|
-
var FontFamily = __webpack_require__(40);
|
|
1635
1584
|
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
* Redistribution and use in source and binary forms, with or without
|
|
1644
|
-
* modification, are permitted provided that the following conditions are met:
|
|
1645
|
-
*
|
|
1646
|
-
* Redistributions of source code must retain the above copyright notice, this
|
|
1647
|
-
* list of conditions and the following disclaimer.
|
|
1648
|
-
*
|
|
1649
|
-
* Redistributions in binary form must reproduce the above copyright notice,
|
|
1650
|
-
* this list of conditions and the following disclaimer in the documentation
|
|
1651
|
-
* and/or other materials provided with the distribution.
|
|
1652
|
-
*
|
|
1653
|
-
* Neither the name of the copyright holder nor the names of its
|
|
1654
|
-
* contributors may be used to endorse or promote products derived from
|
|
1655
|
-
* this software without specific prior written permission.
|
|
1656
|
-
*
|
|
1657
|
-
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
1658
|
-
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
1659
|
-
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
1660
|
-
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
1661
|
-
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
1662
|
-
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
1663
|
-
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
1664
|
-
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
1665
|
-
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
1666
|
-
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
1667
|
-
*/
|
|
1585
|
+
set perPage(value) {
|
|
1586
|
+
this._update('perPage', value);
|
|
1587
|
+
}
|
|
1588
|
+
/**
|
|
1589
|
+
* Pagination offset
|
|
1590
|
+
* @param {Number} value - Offset
|
|
1591
|
+
*/
|
|
1668
1592
|
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1593
|
+
|
|
1594
|
+
set offset(value) {
|
|
1595
|
+
this._update('offset', value);
|
|
1672
1596
|
}
|
|
1597
|
+
/**
|
|
1598
|
+
* Search query
|
|
1599
|
+
* @param {Object<String, String|Array<String>>} value - Search query
|
|
1600
|
+
*/
|
|
1673
1601
|
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
* Redistribution and use in source and binary forms, with or without
|
|
1683
|
-
* modification, are permitted provided that the following conditions are met:
|
|
1684
|
-
*
|
|
1685
|
-
* Redistributions of source code must retain the above copyright notice, this
|
|
1686
|
-
* list of conditions and the following disclaimer.
|
|
1687
|
-
*
|
|
1688
|
-
* Redistributions in binary form must reproduce the above copyright notice,
|
|
1689
|
-
* this list of conditions and the following disclaimer in the documentation
|
|
1690
|
-
* and/or other materials provided with the distribution.
|
|
1691
|
-
*
|
|
1692
|
-
* Neither the name of the copyright holder nor the names of its
|
|
1693
|
-
* contributors may be used to endorse or promote products derived from
|
|
1694
|
-
* this software without specific prior written permission.
|
|
1695
|
-
*
|
|
1696
|
-
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
1697
|
-
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
1698
|
-
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
1699
|
-
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
1700
|
-
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
1701
|
-
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
1702
|
-
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
1703
|
-
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
1704
|
-
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
1705
|
-
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
1706
|
-
*/
|
|
1602
|
+
|
|
1603
|
+
set search(value) {
|
|
1604
|
+
this._update('search', value);
|
|
1605
|
+
}
|
|
1606
|
+
/**
|
|
1607
|
+
* Sort query
|
|
1608
|
+
* @param {Array<String>} value - Sort query
|
|
1609
|
+
*/
|
|
1707
1610
|
|
|
1708
1611
|
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
return 'inset-maps';
|
|
1612
|
+
set sort(value) {
|
|
1613
|
+
this._update('sort', value);
|
|
1712
1614
|
}
|
|
1713
1615
|
/**
|
|
1714
|
-
*
|
|
1715
|
-
* @
|
|
1716
|
-
* @
|
|
1616
|
+
* Deleted items filter state
|
|
1617
|
+
* @param {String} value - Deleted items filter state
|
|
1618
|
+
* @see {@link DeletedState}
|
|
1717
1619
|
*/
|
|
1718
1620
|
|
|
1719
1621
|
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
signal
|
|
1723
|
-
}).json());
|
|
1622
|
+
set deleted(value) {
|
|
1623
|
+
this._update('deleted', value);
|
|
1724
1624
|
}
|
|
1625
|
+
/**
|
|
1626
|
+
* Extra request parameters
|
|
1627
|
+
* @param {Object} value - Extra request parameters
|
|
1628
|
+
*/
|
|
1725
1629
|
|
|
1726
|
-
}
|
|
1727
|
-
// EXTERNAL MODULE: ./src/resources/Job.js
|
|
1728
|
-
var Job = __webpack_require__(42);
|
|
1729
1630
|
|
|
1730
|
-
|
|
1731
|
-
|
|
1631
|
+
set extra(value) {
|
|
1632
|
+
this._update('extra', value);
|
|
1633
|
+
} // endregion instance setters
|
|
1634
|
+
// endregion instance
|
|
1635
|
+
// region static
|
|
1636
|
+
// region getters
|
|
1732
1637
|
|
|
1733
|
-
|
|
1734
|
-
|
|
1638
|
+
/**
|
|
1639
|
+
* Default page number
|
|
1640
|
+
* @returns {Number} - Page number
|
|
1641
|
+
*/
|
|
1735
1642
|
|
|
1736
|
-
// EXTERNAL MODULE: ./src/resources/JobShare.js
|
|
1737
|
-
var JobShare = __webpack_require__(21);
|
|
1738
1643
|
|
|
1739
|
-
|
|
1740
|
-
|
|
1644
|
+
static get page() {
|
|
1645
|
+
return RequestParameters._page || 1;
|
|
1646
|
+
}
|
|
1647
|
+
/**
|
|
1648
|
+
* Default per page
|
|
1649
|
+
* @returns {Number} - Per page
|
|
1650
|
+
*/
|
|
1741
1651
|
|
|
1742
|
-
// EXTERNAL MODULE: ./src/resources/Language.js
|
|
1743
|
-
var Language = __webpack_require__(64);
|
|
1744
1652
|
|
|
1745
|
-
|
|
1746
|
-
|
|
1653
|
+
static get perPage() {
|
|
1654
|
+
return RequestParameters._perPage || Number("12") || 12;
|
|
1655
|
+
}
|
|
1656
|
+
/**
|
|
1657
|
+
* Default pagination offset
|
|
1658
|
+
* @returns {Number} - Offset
|
|
1659
|
+
*/
|
|
1747
1660
|
|
|
1748
|
-
// EXTERNAL MODULE: ./src/resources/Mapstyle.js
|
|
1749
|
-
var Mapstyle = __webpack_require__(44);
|
|
1750
1661
|
|
|
1751
|
-
|
|
1752
|
-
|
|
1662
|
+
static get offset() {
|
|
1663
|
+
return RequestParameters._offset || 0;
|
|
1664
|
+
}
|
|
1665
|
+
/**
|
|
1666
|
+
* Gets the maximum allowed value for perPage
|
|
1667
|
+
* Some users will have a special permission that allows them to fetch more than 50 resources at once
|
|
1668
|
+
* @returns {Number} - Maximum amount of resources per page
|
|
1669
|
+
*/
|
|
1753
1670
|
|
|
1754
|
-
// EXTERNAL MODULE: ./src/resources/Message.js + 1 modules
|
|
1755
|
-
var Message = __webpack_require__(57);
|
|
1756
1671
|
|
|
1757
|
-
|
|
1758
|
-
|
|
1672
|
+
static get maxPerPage() {
|
|
1673
|
+
return RequestParameters._maxPerPage || 50;
|
|
1674
|
+
}
|
|
1675
|
+
/**
|
|
1676
|
+
* Default search query
|
|
1677
|
+
* @returns {Object<String, String|Array<String>>} - Search query
|
|
1678
|
+
*/
|
|
1759
1679
|
|
|
1760
|
-
// EXTERNAL MODULE: ./src/resources/Organisation.js
|
|
1761
|
-
var Organisation = __webpack_require__(54);
|
|
1762
1680
|
|
|
1763
|
-
|
|
1764
|
-
|
|
1681
|
+
static get search() {
|
|
1682
|
+
return RequestParameters._search || {};
|
|
1683
|
+
}
|
|
1684
|
+
/**
|
|
1685
|
+
* Default sort query
|
|
1686
|
+
* @returns {Array<String>} - Sort query
|
|
1687
|
+
*/
|
|
1765
1688
|
|
|
1766
|
-
// EXTERNAL MODULE: ./src/utils/reflection.js
|
|
1767
|
-
var reflection = __webpack_require__(1);
|
|
1768
1689
|
|
|
1769
|
-
|
|
1770
|
-
|
|
1690
|
+
static get sort() {
|
|
1691
|
+
return RequestParameters._sort || [];
|
|
1692
|
+
}
|
|
1693
|
+
/**
|
|
1694
|
+
* Default deleted items filter state
|
|
1695
|
+
* @returns {String|undefined} - Deleted items filter state
|
|
1696
|
+
*/
|
|
1771
1697
|
|
|
1772
|
-
// EXTERNAL MODULE: ./src/resources/base/CrudSetItemBase.js
|
|
1773
|
-
var CrudSetItemBase = __webpack_require__(17);
|
|
1774
1698
|
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
* Redistribution and use in source and binary forms, with or without
|
|
1783
|
-
* modification, are permitted provided that the following conditions are met:
|
|
1784
|
-
*
|
|
1785
|
-
* Redistributions of source code must retain the above copyright notice, this
|
|
1786
|
-
* list of conditions and the following disclaimer.
|
|
1787
|
-
*
|
|
1788
|
-
* Redistributions in binary form must reproduce the above copyright notice,
|
|
1789
|
-
* this list of conditions and the following disclaimer in the documentation
|
|
1790
|
-
* and/or other materials provided with the distribution.
|
|
1791
|
-
*
|
|
1792
|
-
* Neither the name of the copyright holder nor the names of its
|
|
1793
|
-
* contributors may be used to endorse or promote products derived from
|
|
1794
|
-
* this software without specific prior written permission.
|
|
1795
|
-
*
|
|
1796
|
-
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
1797
|
-
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
1798
|
-
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
1799
|
-
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
1800
|
-
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
1801
|
-
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
1802
|
-
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
1803
|
-
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
1804
|
-
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
1805
|
-
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
1806
|
-
*/
|
|
1699
|
+
static get deleted() {
|
|
1700
|
+
return RequestParameters._deleted || void 0;
|
|
1701
|
+
}
|
|
1702
|
+
/**
|
|
1703
|
+
* Default extra request parameters
|
|
1704
|
+
* @returns {Object} - Extra request parameters
|
|
1705
|
+
*/
|
|
1807
1706
|
|
|
1808
1707
|
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
|
|
1708
|
+
static get extra() {
|
|
1709
|
+
return RequestParameters._extra || {};
|
|
1710
|
+
} // endregion getters
|
|
1711
|
+
// region setters
|
|
1812
1712
|
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
|
|
1713
|
+
/**
|
|
1714
|
+
* Default page number
|
|
1715
|
+
* @param {Number} value - Page number
|
|
1716
|
+
*/
|
|
1817
1717
|
|
|
1818
|
-
static get parentKey() {
|
|
1819
|
-
return 'product_tour_id';
|
|
1820
|
-
}
|
|
1821
1718
|
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
*
|
|
1830
|
-
* Redistribution and use in source and binary forms, with or without
|
|
1831
|
-
* modification, are permitted provided that the following conditions are met:
|
|
1832
|
-
*
|
|
1833
|
-
* Redistributions of source code must retain the above copyright notice, this
|
|
1834
|
-
* list of conditions and the following disclaimer.
|
|
1835
|
-
*
|
|
1836
|
-
* Redistributions in binary form must reproduce the above copyright notice,
|
|
1837
|
-
* this list of conditions and the following disclaimer in the documentation
|
|
1838
|
-
* and/or other materials provided with the distribution.
|
|
1839
|
-
*
|
|
1840
|
-
* Neither the name of the copyright holder nor the names of its
|
|
1841
|
-
* contributors may be used to endorse or promote products derived from
|
|
1842
|
-
* this software without specific prior written permission.
|
|
1843
|
-
*
|
|
1844
|
-
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
1845
|
-
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
1846
|
-
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
1847
|
-
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
1848
|
-
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
1849
|
-
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
1850
|
-
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
1851
|
-
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
1852
|
-
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
1853
|
-
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
1854
|
-
*/
|
|
1719
|
+
static set page(value) {
|
|
1720
|
+
RequestParameters._page = RequestParameters._validatePage(value);
|
|
1721
|
+
}
|
|
1722
|
+
/**
|
|
1723
|
+
* Default per page
|
|
1724
|
+
* @param {Number} value - Per page
|
|
1725
|
+
*/
|
|
1855
1726
|
|
|
1856
1727
|
|
|
1728
|
+
static set perPage(value) {
|
|
1729
|
+
RequestParameters._perPage = RequestParameters._validatePerPage(value);
|
|
1730
|
+
}
|
|
1731
|
+
/**
|
|
1732
|
+
* Default pagination offset
|
|
1733
|
+
* @param {Number} value - Offset
|
|
1734
|
+
*/
|
|
1857
1735
|
|
|
1858
|
-
/**
|
|
1859
|
-
* Mapstyle set
|
|
1860
|
-
* @extends CrudSetBase
|
|
1861
|
-
*/
|
|
1862
1736
|
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
return '/product-tours/{id}';
|
|
1737
|
+
static set offset(value) {
|
|
1738
|
+
RequestParameters._offset = RequestParameters._validateOffset(value);
|
|
1866
1739
|
}
|
|
1740
|
+
/**
|
|
1741
|
+
* Sets the maximum allowed value for perPage
|
|
1742
|
+
* Some users will have a special permission that allows them to fetch more than 50 resources at once
|
|
1743
|
+
* @param {Number} value - Maximum amount of resources per page
|
|
1744
|
+
*/
|
|
1867
1745
|
|
|
1868
|
-
static get resourceName() {
|
|
1869
|
-
return 'product-tours';
|
|
1870
|
-
}
|
|
1871
1746
|
|
|
1872
|
-
|
|
1873
|
-
|
|
1747
|
+
static set maxPerPage(value) {
|
|
1748
|
+
RequestParameters._maxPerPage = RequestParameters._validateMaxPerPage(value);
|
|
1874
1749
|
}
|
|
1750
|
+
/**
|
|
1751
|
+
* Default search query
|
|
1752
|
+
* @param {Object<String, String|Array<String>>} value - Search query
|
|
1753
|
+
*/
|
|
1875
1754
|
|
|
1876
|
-
}
|
|
1877
|
-
// EXTERNAL MODULE: ./src/resources/Role.js
|
|
1878
|
-
var Role = __webpack_require__(66);
|
|
1879
1755
|
|
|
1880
|
-
|
|
1881
|
-
|
|
1756
|
+
static set search(value) {
|
|
1757
|
+
RequestParameters._search = RequestParameters._validateSearch(value);
|
|
1758
|
+
}
|
|
1759
|
+
/**
|
|
1760
|
+
* Default sort query
|
|
1761
|
+
* @param {Array<String>} value - Sort query
|
|
1762
|
+
*/
|
|
1882
1763
|
|
|
1883
|
-
// EXTERNAL MODULE: ./src/resources/SvgSet.js
|
|
1884
|
-
var SvgSet = __webpack_require__(45);
|
|
1885
1764
|
|
|
1886
|
-
|
|
1887
|
-
|
|
1765
|
+
static set sort(value) {
|
|
1766
|
+
RequestParameters._sort = RequestParameters._validateSort(value);
|
|
1767
|
+
}
|
|
1768
|
+
/**
|
|
1769
|
+
* Default deleted items filter state
|
|
1770
|
+
* @param {String} value - Deleted items filter state
|
|
1771
|
+
*/
|
|
1888
1772
|
|
|
1889
|
-
// CONCATENATED MODULE: ./src/resources/TagType.js
|
|
1890
|
-
/*
|
|
1891
|
-
* BSD 3-Clause License
|
|
1892
|
-
*
|
|
1893
|
-
* Copyright (c) 2020, Mapcreator
|
|
1894
|
-
* All rights reserved.
|
|
1895
|
-
*
|
|
1896
|
-
* Redistribution and use in source and binary forms, with or without
|
|
1897
|
-
* modification, are permitted provided that the following conditions are met:
|
|
1898
|
-
*
|
|
1899
|
-
* Redistributions of source code must retain the above copyright notice, this
|
|
1900
|
-
* list of conditions and the following disclaimer.
|
|
1901
|
-
*
|
|
1902
|
-
* Redistributions in binary form must reproduce the above copyright notice,
|
|
1903
|
-
* this list of conditions and the following disclaimer in the documentation
|
|
1904
|
-
* and/or other materials provided with the distribution.
|
|
1905
|
-
*
|
|
1906
|
-
* Neither the name of the copyright holder nor the names of its
|
|
1907
|
-
* contributors may be used to endorse or promote products derived from
|
|
1908
|
-
* this software without specific prior written permission.
|
|
1909
|
-
*
|
|
1910
|
-
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
1911
|
-
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
1912
|
-
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
1913
|
-
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
1914
|
-
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
1915
|
-
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
1916
|
-
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
1917
|
-
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
1918
|
-
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
1919
|
-
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
1920
|
-
*/
|
|
1921
1773
|
|
|
1774
|
+
static set deleted(value) {
|
|
1775
|
+
RequestParameters._deleted = RequestParameters._validateDeleted(value);
|
|
1776
|
+
}
|
|
1777
|
+
/**
|
|
1778
|
+
* Default extra request parameters
|
|
1779
|
+
* @param {Object} value - Extra request parameters
|
|
1780
|
+
*/
|
|
1922
1781
|
|
|
1923
|
-
/**
|
|
1924
|
-
* TagType resource
|
|
1925
|
-
* @mixes CrudSetBase
|
|
1926
|
-
*/
|
|
1927
1782
|
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
|
|
1783
|
+
static set extra(value) {
|
|
1784
|
+
RequestParameters._extra = RequestParameters._validateExtra(value);
|
|
1785
|
+
} // endregion setters
|
|
1786
|
+
// endregion static
|
|
1787
|
+
// region validators
|
|
1932
1788
|
|
|
1933
|
-
static get resourceName() {
|
|
1934
|
-
return 'tag-types';
|
|
1935
|
-
}
|
|
1936
1789
|
/**
|
|
1937
|
-
*
|
|
1938
|
-
*
|
|
1790
|
+
* Validators should work the same as laravel's ::validate method. This means
|
|
1791
|
+
* this means that they will throw a TypeError or return a normalized result.
|
|
1939
1792
|
*/
|
|
1940
1793
|
|
|
1941
1794
|
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
|
|
1795
|
+
static _validatePage(value) {
|
|
1796
|
+
if (typeof value !== 'number') {
|
|
1797
|
+
throw new TypeError(`Expected page to be of type 'number' instead got '${typeof value}'`);
|
|
1798
|
+
}
|
|
1945
1799
|
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
|
|
1800
|
+
if (value < 0) {
|
|
1801
|
+
throw new TypeError('Page must be a positive number');
|
|
1802
|
+
}
|
|
1949
1803
|
|
|
1950
|
-
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
*
|
|
1954
|
-
* Copyright (c) 2020, Mapcreator
|
|
1955
|
-
* All rights reserved.
|
|
1956
|
-
*
|
|
1957
|
-
* Redistribution and use in source and binary forms, with or without
|
|
1958
|
-
* modification, are permitted provided that the following conditions are met:
|
|
1959
|
-
*
|
|
1960
|
-
* Redistributions of source code must retain the above copyright notice, this
|
|
1961
|
-
* list of conditions and the following disclaimer.
|
|
1962
|
-
*
|
|
1963
|
-
* Redistributions in binary form must reproduce the above copyright notice,
|
|
1964
|
-
* this list of conditions and the following disclaimer in the documentation
|
|
1965
|
-
* and/or other materials provided with the distribution.
|
|
1966
|
-
*
|
|
1967
|
-
* Neither the name of the copyright holder nor the names of its
|
|
1968
|
-
* contributors may be used to endorse or promote products derived from
|
|
1969
|
-
* this software without specific prior written permission.
|
|
1970
|
-
*
|
|
1971
|
-
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
1972
|
-
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
1973
|
-
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
1974
|
-
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
1975
|
-
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
1976
|
-
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
1977
|
-
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
1978
|
-
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
1979
|
-
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
1980
|
-
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
1981
|
-
*/
|
|
1804
|
+
if (Number.isNaN(value) || !Number.isFinite(value)) {
|
|
1805
|
+
throw new TypeError('Page must be a real number');
|
|
1806
|
+
}
|
|
1982
1807
|
|
|
1983
|
-
|
|
1984
|
-
|
|
1985
|
-
|
|
1808
|
+
if (Math.round(value) !== value) {
|
|
1809
|
+
throw new TypeError('Page must be a natural number');
|
|
1810
|
+
}
|
|
1811
|
+
|
|
1812
|
+
return Math.round(value);
|
|
1986
1813
|
}
|
|
1987
1814
|
|
|
1988
|
-
|
|
1989
|
-
|
|
1990
|
-
|
|
1991
|
-
|
|
1992
|
-
*
|
|
1993
|
-
* Copyright (c) 2020, Mapcreator
|
|
1994
|
-
* All rights reserved.
|
|
1995
|
-
*
|
|
1996
|
-
* Redistribution and use in source and binary forms, with or without
|
|
1997
|
-
* modification, are permitted provided that the following conditions are met:
|
|
1998
|
-
*
|
|
1999
|
-
* Redistributions of source code must retain the above copyright notice, this
|
|
2000
|
-
* list of conditions and the following disclaimer.
|
|
2001
|
-
*
|
|
2002
|
-
* Redistributions in binary form must reproduce the above copyright notice,
|
|
2003
|
-
* this list of conditions and the following disclaimer in the documentation
|
|
2004
|
-
* and/or other materials provided with the distribution.
|
|
2005
|
-
*
|
|
2006
|
-
* Neither the name of the copyright holder nor the names of its
|
|
2007
|
-
* contributors may be used to endorse or promote products derived from
|
|
2008
|
-
* this software without specific prior written permission.
|
|
2009
|
-
*
|
|
2010
|
-
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
2011
|
-
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
2012
|
-
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
2013
|
-
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
2014
|
-
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
2015
|
-
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
2016
|
-
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
2017
|
-
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
2018
|
-
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
2019
|
-
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
2020
|
-
*/
|
|
1815
|
+
static _validatePerPage(value) {
|
|
1816
|
+
if (typeof value !== 'number') {
|
|
1817
|
+
throw new TypeError(`Expected per page to be of type 'Number' instead got '${Object(_utils_reflection__WEBPACK_IMPORTED_MODULE_4__["getTypeName"])(value)}'`);
|
|
1818
|
+
}
|
|
2021
1819
|
|
|
2022
|
-
|
|
2023
|
-
|
|
2024
|
-
|
|
2025
|
-
}
|
|
1820
|
+
if (value <= 0) {
|
|
1821
|
+
throw new TypeError('Per page must be greater than zero');
|
|
1822
|
+
}
|
|
2026
1823
|
|
|
2027
|
-
|
|
2028
|
-
|
|
2029
|
-
|
|
2030
|
-
|
|
2031
|
-
|
|
2032
|
-
|
|
2033
|
-
|
|
2034
|
-
|
|
2035
|
-
|
|
2036
|
-
|
|
2037
|
-
|
|
2038
|
-
|
|
2039
|
-
* list of conditions and the following disclaimer.
|
|
2040
|
-
*
|
|
2041
|
-
* Redistributions in binary form must reproduce the above copyright notice,
|
|
2042
|
-
* this list of conditions and the following disclaimer in the documentation
|
|
2043
|
-
* and/or other materials provided with the distribution.
|
|
2044
|
-
*
|
|
2045
|
-
* Neither the name of the copyright holder nor the names of its
|
|
2046
|
-
* contributors may be used to endorse or promote products derived from
|
|
2047
|
-
* this software without specific prior written permission.
|
|
2048
|
-
*
|
|
2049
|
-
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
2050
|
-
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
2051
|
-
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
2052
|
-
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
2053
|
-
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
2054
|
-
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
2055
|
-
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
2056
|
-
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
2057
|
-
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
2058
|
-
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
2059
|
-
*/
|
|
1824
|
+
if (Number.isNaN(value) || !Number.isFinite(value)) {
|
|
1825
|
+
throw new TypeError('Per page must be a real number');
|
|
1826
|
+
}
|
|
1827
|
+
|
|
1828
|
+
if (Math.round(value) !== value) {
|
|
1829
|
+
throw new TypeError('Per page must be a natural number');
|
|
1830
|
+
} // Upper limit is 50 by default
|
|
1831
|
+
|
|
1832
|
+
|
|
1833
|
+
value = Math.min(RequestParameters.maxPerPage, value);
|
|
1834
|
+
return value;
|
|
1835
|
+
}
|
|
2060
1836
|
|
|
1837
|
+
static _validateOffset(value) {
|
|
1838
|
+
if (typeof value !== 'number') {
|
|
1839
|
+
throw new TypeError(`Expected offset to be of type 'Number' instead got '${Object(_utils_reflection__WEBPACK_IMPORTED_MODULE_4__["getTypeName"])(value)}'`);
|
|
1840
|
+
}
|
|
2061
1841
|
|
|
1842
|
+
if (value < 0) {
|
|
1843
|
+
throw new TypeError('Offset must be a positive number');
|
|
1844
|
+
}
|
|
2062
1845
|
|
|
1846
|
+
if (Number.isNaN(value) || !Number.isFinite(value)) {
|
|
1847
|
+
throw new TypeError('Offset must be a real number');
|
|
1848
|
+
}
|
|
2063
1849
|
|
|
1850
|
+
if (Math.round(value) !== value) {
|
|
1851
|
+
throw new TypeError('Offset must be a natural number');
|
|
1852
|
+
}
|
|
2064
1853
|
|
|
1854
|
+
return value;
|
|
1855
|
+
}
|
|
2065
1856
|
|
|
1857
|
+
static _validateMaxPerPage(value) {
|
|
1858
|
+
if (typeof value !== 'number') {
|
|
1859
|
+
throw new TypeError(`Expected page to be of type 'Number' instead got '${Object(_utils_reflection__WEBPACK_IMPORTED_MODULE_4__["getTypeName"])(value)}'`);
|
|
1860
|
+
}
|
|
2066
1861
|
|
|
1862
|
+
if (value < 1) {
|
|
1863
|
+
throw new TypeError('Value must be greater or equal to 1');
|
|
1864
|
+
}
|
|
2067
1865
|
|
|
1866
|
+
return value;
|
|
1867
|
+
}
|
|
2068
1868
|
|
|
1869
|
+
static _validateSearch(value) {
|
|
1870
|
+
if (typeof value !== 'object' || Array.isArray(value)) {
|
|
1871
|
+
throw new TypeError(`Expected value to be of type "Object" got "${Object(_utils_reflection__WEBPACK_IMPORTED_MODULE_4__["getTypeName"])(value)}"`);
|
|
1872
|
+
} // Normalization macro
|
|
2069
1873
|
|
|
2070
1874
|
|
|
1875
|
+
const normalize = x => typeof x === 'number' ? x.toString() : x;
|
|
2071
1876
|
|
|
1877
|
+
for (let key of Object.keys(value)) {
|
|
1878
|
+
key = normalize(key);
|
|
1879
|
+
value[key] = normalize(value[key]);
|
|
2072
1880
|
|
|
1881
|
+
if (typeof key !== 'string') {
|
|
1882
|
+
throw new TypeError(`Expected key to be of type "String" got "${Object(_utils_reflection__WEBPACK_IMPORTED_MODULE_4__["getTypeName"])(key)}"`);
|
|
1883
|
+
}
|
|
2073
1884
|
|
|
1885
|
+
if (Array.isArray(value[key])) {
|
|
1886
|
+
if (value[key].length > 0) {
|
|
1887
|
+
for (const query of value[key]) {
|
|
1888
|
+
if (!['string', 'number', 'boolean'].includes(typeof query) && query !== null) {
|
|
1889
|
+
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)}"`);
|
|
1890
|
+
}
|
|
1891
|
+
}
|
|
1892
|
+
} else {
|
|
1893
|
+
// Drop empty nodes
|
|
1894
|
+
delete value[key];
|
|
1895
|
+
}
|
|
1896
|
+
} else if (value[key] === null) {
|
|
1897
|
+
delete value[key];
|
|
1898
|
+
} else if (!['string', 'number', 'boolean'].includes(typeof value[key]) && value[key] !== null) {
|
|
1899
|
+
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])}"`);
|
|
1900
|
+
}
|
|
1901
|
+
}
|
|
2074
1902
|
|
|
1903
|
+
return value;
|
|
1904
|
+
}
|
|
2075
1905
|
|
|
1906
|
+
static _validateSort(value) {
|
|
1907
|
+
if (typeof value === 'string') {
|
|
1908
|
+
return this._validateSort(value.split(','));
|
|
1909
|
+
}
|
|
2076
1910
|
|
|
1911
|
+
if (!(value instanceof Array)) {
|
|
1912
|
+
throw new TypeError(`Expected sort value to be of type "Array" got "${Object(_utils_reflection__WEBPACK_IMPORTED_MODULE_4__["getTypeName"])(value)}"`);
|
|
1913
|
+
} // Array keys type checking
|
|
2077
1914
|
|
|
2078
1915
|
|
|
1916
|
+
value.filter(x => typeof x !== 'string').forEach(x => {
|
|
1917
|
+
throw new TypeError(`Expected sort array values to be of type "String" got "${Object(_utils_reflection__WEBPACK_IMPORTED_MODULE_4__["getTypeName"])(x)}"`);
|
|
1918
|
+
}); // Don't do regex matching because it's something
|
|
1919
|
+
// we can just let the server do for us.
|
|
2079
1920
|
|
|
1921
|
+
return value;
|
|
1922
|
+
}
|
|
2080
1923
|
|
|
1924
|
+
static _validateDeleted(value) {
|
|
1925
|
+
if (typeof value === 'undefined') {
|
|
1926
|
+
return value;
|
|
1927
|
+
}
|
|
2081
1928
|
|
|
1929
|
+
if (typeof value !== 'string') {
|
|
1930
|
+
throw new TypeError(`Expected deleted to be of type "string" got "${Object(_utils_reflection__WEBPACK_IMPORTED_MODULE_4__["getTypeName"])(value)}". See: DeletedState`);
|
|
1931
|
+
}
|
|
2082
1932
|
|
|
1933
|
+
value = value.toLowerCase();
|
|
1934
|
+
const possible = _enums__WEBPACK_IMPORTED_MODULE_2__["DeletedState"].values();
|
|
2083
1935
|
|
|
1936
|
+
if (!possible.includes(value)) {
|
|
1937
|
+
throw new TypeError(`Expected deleted to be one of ${possible.join(', ')}, got ${value}`);
|
|
1938
|
+
}
|
|
2084
1939
|
|
|
1940
|
+
return value;
|
|
1941
|
+
}
|
|
2085
1942
|
|
|
1943
|
+
static _validateExtra(value) {
|
|
1944
|
+
if (typeof value !== 'object') {
|
|
1945
|
+
throw new TypeError(`Expected extra to be of type 'object', got '${Object(_utils_reflection__WEBPACK_IMPORTED_MODULE_4__["getTypeName"])(value)}'`);
|
|
1946
|
+
}
|
|
2086
1947
|
|
|
1948
|
+
return value;
|
|
1949
|
+
} // endregion validators
|
|
2087
1950
|
|
|
2088
1951
|
|
|
1952
|
+
_resolve(name) {
|
|
1953
|
+
const _name = `_${name}`;
|
|
2089
1954
|
|
|
1955
|
+
if (!this[_name]) {
|
|
1956
|
+
// Confuse esdoc
|
|
1957
|
+
(this || {})[_name] = RequestParameters[name];
|
|
1958
|
+
}
|
|
2090
1959
|
|
|
1960
|
+
return this[_name];
|
|
1961
|
+
}
|
|
2091
1962
|
|
|
1963
|
+
_update(name, value, preventEvent = false) {
|
|
1964
|
+
const _name = `_${name}`;
|
|
1965
|
+
value = RequestParameters[`_validate${Object(case__WEBPACK_IMPORTED_MODULE_0__["pascal"])(name)}`](value);
|
|
1966
|
+
(this || {})[_name] = value; // Weird syntax confuses esdoc
|
|
2092
1967
|
|
|
1968
|
+
if (!preventEvent) {
|
|
1969
|
+
/**
|
|
1970
|
+
* Change event.
|
|
1971
|
+
*
|
|
1972
|
+
* @event RequestParameters#change
|
|
1973
|
+
* @type {Array<object>}
|
|
1974
|
+
* @property {string} name - Parameter name
|
|
1975
|
+
* @property {*} value - New value
|
|
1976
|
+
*/
|
|
1977
|
+
this.emit('change', [{
|
|
1978
|
+
name,
|
|
1979
|
+
value
|
|
1980
|
+
}]);
|
|
1981
|
+
this.emit(`change:${name}`, value);
|
|
1982
|
+
}
|
|
2093
1983
|
|
|
1984
|
+
return value;
|
|
1985
|
+
} // region utils
|
|
2094
1986
|
|
|
1987
|
+
/**
|
|
1988
|
+
* Urlencode parameters
|
|
1989
|
+
* @returns {string} - HTTP query
|
|
1990
|
+
*/
|
|
2095
1991
|
|
|
2096
1992
|
|
|
1993
|
+
encode() {
|
|
1994
|
+
return Object(_utils_requests__WEBPACK_IMPORTED_MODULE_5__["encodeQueryString"])(this.toParameterObject());
|
|
1995
|
+
}
|
|
1996
|
+
/**
|
|
1997
|
+
* Convert to object
|
|
1998
|
+
* @returns {Object} - Object
|
|
1999
|
+
*/
|
|
2097
2000
|
|
|
2098
2001
|
|
|
2002
|
+
toObject() {
|
|
2003
|
+
return RequestParameters.keys().reduce((obj, key) => {
|
|
2004
|
+
obj[Object(case__WEBPACK_IMPORTED_MODULE_0__["snake"])(key)] = this._resolve(key);
|
|
2005
|
+
return obj;
|
|
2006
|
+
}, {});
|
|
2007
|
+
}
|
|
2008
|
+
/**
|
|
2009
|
+
* Convert to object
|
|
2010
|
+
* @returns {Object} - Object
|
|
2011
|
+
*/
|
|
2099
2012
|
|
|
2100
2013
|
|
|
2014
|
+
toParameterObject() {
|
|
2015
|
+
const data = {};
|
|
2016
|
+
RequestParameters.keys().forEach(key => {
|
|
2017
|
+
// Skip extra key
|
|
2018
|
+
if (key === 'extra') {
|
|
2019
|
+
return;
|
|
2020
|
+
}
|
|
2101
2021
|
|
|
2022
|
+
data[Object(case__WEBPACK_IMPORTED_MODULE_0__["snake"])(key)] = this._resolve(key);
|
|
2023
|
+
}); // Fix column names for sort
|
|
2102
2024
|
|
|
2025
|
+
data.sort = data.sort.map(case__WEBPACK_IMPORTED_MODULE_0__["snake"]).map(x => x.replace(/^_/, '-')).join(',');
|
|
2103
2026
|
|
|
2027
|
+
if (data.offset === 0) {
|
|
2028
|
+
delete data.offset;
|
|
2029
|
+
} // Fix column names for search
|
|
2104
2030
|
|
|
2105
2031
|
|
|
2032
|
+
for (const key of Object.keys(data.search)) {
|
|
2033
|
+
const snakeKey = key.split(',').map(case__WEBPACK_IMPORTED_MODULE_0__["snake"]).join(',');
|
|
2106
2034
|
|
|
2035
|
+
if (key !== snakeKey) {
|
|
2036
|
+
data.search[snakeKey] = data.search[key];
|
|
2037
|
+
delete data.search[key];
|
|
2038
|
+
}
|
|
2039
|
+
} // Cast search values
|
|
2107
2040
|
|
|
2108
2041
|
|
|
2042
|
+
for (const key of Object.keys(data.search)) {
|
|
2043
|
+
if (typeof data.search[key] === 'boolean') {
|
|
2044
|
+
data.search[key] = Number(data.search[key]);
|
|
2045
|
+
}
|
|
2109
2046
|
|
|
2047
|
+
if (data.search[key] === null) {
|
|
2048
|
+
data.search[key] = '';
|
|
2049
|
+
}
|
|
2050
|
+
} // Overwrite using extra properties
|
|
2110
2051
|
|
|
2111
2052
|
|
|
2053
|
+
const extra = this._resolve('extra');
|
|
2112
2054
|
|
|
2055
|
+
for (const key of Object.keys(extra)) {
|
|
2056
|
+
data[key] = extra[key];
|
|
2057
|
+
}
|
|
2113
2058
|
|
|
2059
|
+
for (const key of Object.keys(data)) {
|
|
2060
|
+
if (typeof data[key] === 'undefined') {
|
|
2061
|
+
delete data[key];
|
|
2062
|
+
}
|
|
2063
|
+
}
|
|
2114
2064
|
|
|
2065
|
+
return data;
|
|
2066
|
+
}
|
|
2067
|
+
/**
|
|
2068
|
+
* Copy object
|
|
2069
|
+
* @returns {RequestParameters} - Copy
|
|
2070
|
+
*/
|
|
2115
2071
|
|
|
2116
2072
|
|
|
2073
|
+
copy() {
|
|
2074
|
+
return new RequestParameters(this.toObject());
|
|
2075
|
+
}
|
|
2076
|
+
/**
|
|
2077
|
+
* Different parameters
|
|
2078
|
+
* @returns {Array<String>} - keys
|
|
2079
|
+
*/
|
|
2117
2080
|
|
|
2118
2081
|
|
|
2082
|
+
static keys() {
|
|
2083
|
+
// enumeration is disabled for properties
|
|
2084
|
+
return ['page', 'perPage', 'offset', 'search', 'sort', 'deleted', 'extra'];
|
|
2085
|
+
}
|
|
2086
|
+
/**
|
|
2087
|
+
* Generates a cache token
|
|
2088
|
+
* @returns {string} - Cache token
|
|
2089
|
+
*/
|
|
2119
2090
|
|
|
2120
2091
|
|
|
2092
|
+
token() {
|
|
2093
|
+
const data = this.toObject();
|
|
2094
|
+
delete data.page;
|
|
2095
|
+
delete data['per_page'];
|
|
2096
|
+
return Object(_utils_hash__WEBPACK_IMPORTED_MODULE_3__["hashObject"])(data);
|
|
2097
|
+
}
|
|
2098
|
+
/**
|
|
2099
|
+
* Resets all parameters back to default
|
|
2100
|
+
*/
|
|
2121
2101
|
|
|
2122
2102
|
|
|
2103
|
+
static resetDefaults() {
|
|
2104
|
+
for (const key of RequestParameters.keys()) {
|
|
2105
|
+
delete RequestParameters[`_${key}`];
|
|
2106
|
+
}
|
|
2107
|
+
}
|
|
2108
|
+
/**
|
|
2109
|
+
* Apply parameters from object
|
|
2110
|
+
* @param {object|RequestParameters} params - parameters
|
|
2111
|
+
* @returns {Object[]} - Array containing the updated values
|
|
2112
|
+
* @example
|
|
2113
|
+
* const params = new RequestParameters({perPage: 12});
|
|
2114
|
+
*
|
|
2115
|
+
* params.perPage === 12;
|
|
2116
|
+
*
|
|
2117
|
+
* params.apply({perPage: 50});
|
|
2118
|
+
*
|
|
2119
|
+
* params.perPage === 50;
|
|
2120
|
+
*/
|
|
2123
2121
|
|
|
2124
2122
|
|
|
2123
|
+
apply(params) {
|
|
2124
|
+
if (params instanceof RequestParameters) {
|
|
2125
|
+
params = params.toObject();
|
|
2126
|
+
}
|
|
2125
2127
|
|
|
2128
|
+
const out = [];
|
|
2126
2129
|
|
|
2130
|
+
for (const key of Object.keys(params)) {
|
|
2131
|
+
const Key = Object(case__WEBPACK_IMPORTED_MODULE_0__["camel"])(key);
|
|
2127
2132
|
|
|
2133
|
+
if (key[0] === '_' || !RequestParameters.keys().includes(Key)) {
|
|
2134
|
+
continue;
|
|
2135
|
+
}
|
|
2128
2136
|
|
|
2137
|
+
out.push({
|
|
2138
|
+
name: Key,
|
|
2139
|
+
value: this._update(Key, params[key], true)
|
|
2140
|
+
});
|
|
2141
|
+
}
|
|
2129
2142
|
|
|
2143
|
+
this.emit('change', out);
|
|
2130
2144
|
|
|
2145
|
+
for (const {
|
|
2146
|
+
name,
|
|
2147
|
+
value
|
|
2148
|
+
} of out) {
|
|
2149
|
+
this.emit(`change:${name}`, value);
|
|
2150
|
+
}
|
|
2131
2151
|
|
|
2152
|
+
return out;
|
|
2153
|
+
} // endregion utils
|
|
2132
2154
|
|
|
2133
|
-
/**
|
|
2134
|
-
* @private
|
|
2135
|
-
*/
|
|
2136
2155
|
|
|
2137
|
-
|
|
2138
|
-
CrudBase: CrudBase["default"],
|
|
2139
|
-
CrudSetBase: CrudSetBase["default"],
|
|
2140
|
-
ResourceBase: ResourceBase["default"]
|
|
2141
|
-
};
|
|
2156
|
+
}
|
|
2142
2157
|
|
|
2143
2158
|
/***/ }),
|
|
2144
2159
|
/* 5 */
|
|
@@ -2963,7 +2978,6 @@ const JobShareVisibility = new Enum["default"](['private', 'organisation', 'publ
|
|
|
2963
2978
|
|
|
2964
2979
|
|
|
2965
2980
|
|
|
2966
|
-
|
|
2967
2981
|
/***/ }),
|
|
2968
2982
|
/* 9 */
|
|
2969
2983
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
@@ -3353,6 +3367,99 @@ function windowTest(str) {
|
|
|
3353
3367
|
/* 14 */
|
|
3354
3368
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
3355
3369
|
|
|
3370
|
+
"use strict";
|
|
3371
|
+
__webpack_require__.r(__webpack_exports__);
|
|
3372
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return CrudSetItemBase; });
|
|
3373
|
+
/* harmony import */ var _errors_AbstractError__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(11);
|
|
3374
|
+
/* harmony import */ var _CrudBase__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2);
|
|
3375
|
+
/* harmony import */ var case__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7);
|
|
3376
|
+
/* harmony import */ var case__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(case__WEBPACK_IMPORTED_MODULE_2__);
|
|
3377
|
+
/*
|
|
3378
|
+
* BSD 3-Clause License
|
|
3379
|
+
*
|
|
3380
|
+
* Copyright (c) 2020, Mapcreator
|
|
3381
|
+
* All rights reserved.
|
|
3382
|
+
*
|
|
3383
|
+
* Redistribution and use in source and binary forms, with or without
|
|
3384
|
+
* modification, are permitted provided that the following conditions are met:
|
|
3385
|
+
*
|
|
3386
|
+
* Redistributions of source code must retain the above copyright notice, this
|
|
3387
|
+
* list of conditions and the following disclaimer.
|
|
3388
|
+
*
|
|
3389
|
+
* Redistributions in binary form must reproduce the above copyright notice,
|
|
3390
|
+
* this list of conditions and the following disclaimer in the documentation
|
|
3391
|
+
* and/or other materials provided with the distribution.
|
|
3392
|
+
*
|
|
3393
|
+
* Neither the name of the copyright holder nor the names of its
|
|
3394
|
+
* contributors may be used to endorse or promote products derived from
|
|
3395
|
+
* this software without specific prior written permission.
|
|
3396
|
+
*
|
|
3397
|
+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
3398
|
+
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
3399
|
+
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
3400
|
+
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
3401
|
+
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
3402
|
+
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
3403
|
+
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
3404
|
+
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
3405
|
+
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
3406
|
+
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
3407
|
+
*/
|
|
3408
|
+
|
|
3409
|
+
|
|
3410
|
+
|
|
3411
|
+
/**
|
|
3412
|
+
* Items that are part of a set
|
|
3413
|
+
* @abstract
|
|
3414
|
+
*/
|
|
3415
|
+
|
|
3416
|
+
class CrudSetItemBase extends _CrudBase__WEBPACK_IMPORTED_MODULE_1__["default"] {
|
|
3417
|
+
/**
|
|
3418
|
+
* @param {Mapcreator} api - Api instance
|
|
3419
|
+
* @param {Object<String, *>} data - Item data
|
|
3420
|
+
*/
|
|
3421
|
+
constructor(api, data = {}) {
|
|
3422
|
+
super(api, data);
|
|
3423
|
+
|
|
3424
|
+
if (this.constructor === _CrudBase__WEBPACK_IMPORTED_MODULE_1__["default"]) {
|
|
3425
|
+
throw new _errors_AbstractError__WEBPACK_IMPORTED_MODULE_0__["AbstractClassError"]();
|
|
3426
|
+
}
|
|
3427
|
+
}
|
|
3428
|
+
|
|
3429
|
+
get hasParent() {
|
|
3430
|
+
const parentKey = Object(case__WEBPACK_IMPORTED_MODULE_2__["camel"])(this.constructor.parentKey);
|
|
3431
|
+
return this.hasOwnProperty(parentKey);
|
|
3432
|
+
}
|
|
3433
|
+
/**
|
|
3434
|
+
* Get the parent id
|
|
3435
|
+
* @returns {number|undefined} - Parent number
|
|
3436
|
+
*/
|
|
3437
|
+
|
|
3438
|
+
|
|
3439
|
+
get parentId() {
|
|
3440
|
+
if (this.hasParent) {
|
|
3441
|
+
const parentKey = Object(case__WEBPACK_IMPORTED_MODULE_2__["camel"])(this.constructor.parentKey);
|
|
3442
|
+
return Number(this[parentKey]);
|
|
3443
|
+
}
|
|
3444
|
+
|
|
3445
|
+
return void 0;
|
|
3446
|
+
}
|
|
3447
|
+
/**
|
|
3448
|
+
* Get the parent key
|
|
3449
|
+
* @returns {string} - Parent key
|
|
3450
|
+
*/
|
|
3451
|
+
|
|
3452
|
+
|
|
3453
|
+
static get parentKey() {
|
|
3454
|
+
return this.resourceName.replace(/s$/, '_set_id');
|
|
3455
|
+
}
|
|
3456
|
+
|
|
3457
|
+
}
|
|
3458
|
+
|
|
3459
|
+
/***/ }),
|
|
3460
|
+
/* 15 */
|
|
3461
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
3462
|
+
|
|
3356
3463
|
"use strict";
|
|
3357
3464
|
__webpack_require__.r(__webpack_exports__);
|
|
3358
3465
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return ResourceProxy; });
|
|
@@ -3475,7 +3582,7 @@ class ResourceProxy extends _SimpleResourceProxy__WEBPACK_IMPORTED_MODULE_1__["d
|
|
|
3475
3582
|
}
|
|
3476
3583
|
|
|
3477
3584
|
/***/ }),
|
|
3478
|
-
/*
|
|
3585
|
+
/* 16 */
|
|
3479
3586
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
3480
3587
|
|
|
3481
3588
|
"use strict";
|
|
@@ -3661,7 +3768,7 @@ class OAuthToken {
|
|
|
3661
3768
|
}
|
|
3662
3769
|
|
|
3663
3770
|
/***/ }),
|
|
3664
|
-
/*
|
|
3771
|
+
/* 17 */
|
|
3665
3772
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
3666
3773
|
|
|
3667
3774
|
"use strict";
|
|
@@ -3754,99 +3861,6 @@ class CrudSetBase extends _CrudBase__WEBPACK_IMPORTED_MODULE_1__["default"] {
|
|
|
3754
3861
|
|
|
3755
3862
|
}
|
|
3756
3863
|
|
|
3757
|
-
/***/ }),
|
|
3758
|
-
/* 17 */
|
|
3759
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
3760
|
-
|
|
3761
|
-
"use strict";
|
|
3762
|
-
__webpack_require__.r(__webpack_exports__);
|
|
3763
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return CrudSetItemBase; });
|
|
3764
|
-
/* harmony import */ var _errors_AbstractError__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(11);
|
|
3765
|
-
/* harmony import */ var _CrudBase__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2);
|
|
3766
|
-
/* harmony import */ var case__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7);
|
|
3767
|
-
/* harmony import */ var case__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(case__WEBPACK_IMPORTED_MODULE_2__);
|
|
3768
|
-
/*
|
|
3769
|
-
* BSD 3-Clause License
|
|
3770
|
-
*
|
|
3771
|
-
* Copyright (c) 2020, Mapcreator
|
|
3772
|
-
* All rights reserved.
|
|
3773
|
-
*
|
|
3774
|
-
* Redistribution and use in source and binary forms, with or without
|
|
3775
|
-
* modification, are permitted provided that the following conditions are met:
|
|
3776
|
-
*
|
|
3777
|
-
* Redistributions of source code must retain the above copyright notice, this
|
|
3778
|
-
* list of conditions and the following disclaimer.
|
|
3779
|
-
*
|
|
3780
|
-
* Redistributions in binary form must reproduce the above copyright notice,
|
|
3781
|
-
* this list of conditions and the following disclaimer in the documentation
|
|
3782
|
-
* and/or other materials provided with the distribution.
|
|
3783
|
-
*
|
|
3784
|
-
* Neither the name of the copyright holder nor the names of its
|
|
3785
|
-
* contributors may be used to endorse or promote products derived from
|
|
3786
|
-
* this software without specific prior written permission.
|
|
3787
|
-
*
|
|
3788
|
-
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
3789
|
-
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
3790
|
-
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
3791
|
-
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
3792
|
-
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
3793
|
-
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
3794
|
-
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
3795
|
-
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
3796
|
-
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
3797
|
-
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
3798
|
-
*/
|
|
3799
|
-
|
|
3800
|
-
|
|
3801
|
-
|
|
3802
|
-
/**
|
|
3803
|
-
* Items that are part of a set
|
|
3804
|
-
* @abstract
|
|
3805
|
-
*/
|
|
3806
|
-
|
|
3807
|
-
class CrudSetItemBase extends _CrudBase__WEBPACK_IMPORTED_MODULE_1__["default"] {
|
|
3808
|
-
/**
|
|
3809
|
-
* @param {Mapcreator} api - Api instance
|
|
3810
|
-
* @param {Object<String, *>} data - Item data
|
|
3811
|
-
*/
|
|
3812
|
-
constructor(api, data = {}) {
|
|
3813
|
-
super(api, data);
|
|
3814
|
-
|
|
3815
|
-
if (this.constructor === _CrudBase__WEBPACK_IMPORTED_MODULE_1__["default"]) {
|
|
3816
|
-
throw new _errors_AbstractError__WEBPACK_IMPORTED_MODULE_0__["AbstractClassError"]();
|
|
3817
|
-
}
|
|
3818
|
-
}
|
|
3819
|
-
|
|
3820
|
-
get hasParent() {
|
|
3821
|
-
const parentKey = Object(case__WEBPACK_IMPORTED_MODULE_2__["camel"])(this.constructor.parentKey);
|
|
3822
|
-
return this.hasOwnProperty(parentKey);
|
|
3823
|
-
}
|
|
3824
|
-
/**
|
|
3825
|
-
* Get the parent id
|
|
3826
|
-
* @returns {number|undefined} - Parent number
|
|
3827
|
-
*/
|
|
3828
|
-
|
|
3829
|
-
|
|
3830
|
-
get parentId() {
|
|
3831
|
-
if (this.hasParent) {
|
|
3832
|
-
const parentKey = Object(case__WEBPACK_IMPORTED_MODULE_2__["camel"])(this.constructor.parentKey);
|
|
3833
|
-
return Number(this[parentKey]);
|
|
3834
|
-
}
|
|
3835
|
-
|
|
3836
|
-
return void 0;
|
|
3837
|
-
}
|
|
3838
|
-
/**
|
|
3839
|
-
* Get the parent key
|
|
3840
|
-
* @returns {string} - Parent key
|
|
3841
|
-
*/
|
|
3842
|
-
|
|
3843
|
-
|
|
3844
|
-
static get parentKey() {
|
|
3845
|
-
return this.resourceName.replace(/s$/, '_set_id');
|
|
3846
|
-
}
|
|
3847
|
-
|
|
3848
|
-
}
|
|
3849
|
-
|
|
3850
3864
|
/***/ }),
|
|
3851
3865
|
/* 18 */
|
|
3852
3866
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
@@ -3862,7 +3876,7 @@ __webpack_require__.d(__webpack_exports__, "default", function() { return /* bin
|
|
|
3862
3876
|
var Mapcreator = __webpack_require__(26);
|
|
3863
3877
|
|
|
3864
3878
|
// EXTERNAL MODULE: ./src/RequestParameters.js
|
|
3865
|
-
var RequestParameters = __webpack_require__(
|
|
3879
|
+
var RequestParameters = __webpack_require__(4);
|
|
3866
3880
|
|
|
3867
3881
|
// EXTERNAL MODULE: ./src/utils/reflection.js
|
|
3868
3882
|
var reflection = __webpack_require__(1);
|
|
@@ -5587,7 +5601,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
5587
5601
|
/* harmony import */ var ky_universal__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(ky_universal__WEBPACK_IMPORTED_MODULE_1__);
|
|
5588
5602
|
/* harmony import */ var _errors_AbstractError__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(11);
|
|
5589
5603
|
/* harmony import */ var _storage_StorageManager__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(20);
|
|
5590
|
-
/* harmony import */ var _OAuthToken__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
|
|
5604
|
+
/* harmony import */ var _OAuthToken__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(16);
|
|
5591
5605
|
/* harmony import */ var _StateContainer__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(58);
|
|
5592
5606
|
/* harmony import */ var _utils_helpers__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(0);
|
|
5593
5607
|
|
|
@@ -5753,19 +5767,19 @@ var DummyFlow = __webpack_require__(55);
|
|
|
5753
5767
|
var OAuth = __webpack_require__(25);
|
|
5754
5768
|
|
|
5755
5769
|
// EXTERNAL MODULE: ./src/oauth/OAuthToken.js
|
|
5756
|
-
var OAuthToken = __webpack_require__(
|
|
5770
|
+
var OAuthToken = __webpack_require__(16);
|
|
5757
5771
|
|
|
5758
5772
|
// EXTERNAL MODULE: ./src/proxy/GeoResourceProxy.js
|
|
5759
5773
|
var GeoResourceProxy = __webpack_require__(32);
|
|
5760
5774
|
|
|
5761
5775
|
// EXTERNAL MODULE: ./src/proxy/ResourceProxy.js
|
|
5762
|
-
var ResourceProxy = __webpack_require__(
|
|
5776
|
+
var ResourceProxy = __webpack_require__(15);
|
|
5763
5777
|
|
|
5764
5778
|
// EXTERNAL MODULE: ./src/proxy/SimpleResourceProxy.js + 1 modules
|
|
5765
5779
|
var SimpleResourceProxy = __webpack_require__(18);
|
|
5766
5780
|
|
|
5767
|
-
// EXTERNAL MODULE: ./src/resources/index.js +
|
|
5768
|
-
var resources = __webpack_require__(
|
|
5781
|
+
// EXTERNAL MODULE: ./src/resources/index.js + 10 modules
|
|
5782
|
+
var resources = __webpack_require__(3);
|
|
5769
5783
|
|
|
5770
5784
|
// EXTERNAL MODULE: ./src/resources/base/ResourceBase.js
|
|
5771
5785
|
var ResourceBase = __webpack_require__(6);
|
|
@@ -6255,7 +6269,7 @@ class Mapcreator_Mapcreator extends Object(reflection["mix"])(external_events_de
|
|
|
6255
6269
|
/**
|
|
6256
6270
|
* Choropleth accessor
|
|
6257
6271
|
* @see {@link Choropleth}
|
|
6258
|
-
* @returns {GeoResourceProxy} - A proxy for accessing the resource
|
|
6272
|
+
* @returns {GeoResourceProxy<Choropleth>} - A proxy for accessing the resource
|
|
6259
6273
|
*/
|
|
6260
6274
|
|
|
6261
6275
|
|
|
@@ -6265,7 +6279,7 @@ class Mapcreator_Mapcreator extends Object(reflection["mix"])(external_events_de
|
|
|
6265
6279
|
/**
|
|
6266
6280
|
* VectorChoropleth accessor
|
|
6267
6281
|
* @see {@link VectorChoropleth}
|
|
6268
|
-
* @returns {GeoResourceProxy} - A proxy for accessing the resource
|
|
6282
|
+
* @returns {GeoResourceProxy<VectorChoropleth>} - A proxy for accessing the resource
|
|
6269
6283
|
*/
|
|
6270
6284
|
|
|
6271
6285
|
|
|
@@ -6275,7 +6289,7 @@ class Mapcreator_Mapcreator extends Object(reflection["mix"])(external_events_de
|
|
|
6275
6289
|
/**
|
|
6276
6290
|
* Color accessor
|
|
6277
6291
|
* @see {@link Color}
|
|
6278
|
-
* @returns {ResourceProxy} - A proxy for accessing the resource
|
|
6292
|
+
* @returns {ResourceProxy<Color>} - A proxy for accessing the resource
|
|
6279
6293
|
*/
|
|
6280
6294
|
|
|
6281
6295
|
|
|
@@ -6285,7 +6299,7 @@ class Mapcreator_Mapcreator extends Object(reflection["mix"])(external_events_de
|
|
|
6285
6299
|
/**
|
|
6286
6300
|
* Tag accessor
|
|
6287
6301
|
* @see {@link Tag}
|
|
6288
|
-
* @returns {ResourceProxy} - A proxy for accessing the resource
|
|
6302
|
+
* @returns {ResourceProxy<Tag>} - A proxy for accessing the resource
|
|
6289
6303
|
*/
|
|
6290
6304
|
|
|
6291
6305
|
|
|
@@ -6294,8 +6308,8 @@ class Mapcreator_Mapcreator extends Object(reflection["mix"])(external_events_de
|
|
|
6294
6308
|
}
|
|
6295
6309
|
/**
|
|
6296
6310
|
* Tag accessor
|
|
6297
|
-
* @see {@link
|
|
6298
|
-
* @returns {ResourceProxy} - A proxy for accessing the resource
|
|
6311
|
+
* @see {@link TagType}
|
|
6312
|
+
* @returns {ResourceProxy<TagType>} - A proxy for accessing the resource
|
|
6299
6313
|
*/
|
|
6300
6314
|
|
|
6301
6315
|
|
|
@@ -6305,7 +6319,7 @@ class Mapcreator_Mapcreator extends Object(reflection["mix"])(external_events_de
|
|
|
6305
6319
|
/**
|
|
6306
6320
|
* Contract accessor
|
|
6307
6321
|
* @see {@link Contract}
|
|
6308
|
-
* @returns {ResourceProxy} - A proxy for accessing the resource
|
|
6322
|
+
* @returns {ResourceProxy<Contract>} - A proxy for accessing the resource
|
|
6309
6323
|
*/
|
|
6310
6324
|
|
|
6311
6325
|
|
|
@@ -6315,7 +6329,7 @@ class Mapcreator_Mapcreator extends Object(reflection["mix"])(external_events_de
|
|
|
6315
6329
|
/**
|
|
6316
6330
|
* Dimension accessor
|
|
6317
6331
|
* @see {@link Dimension}
|
|
6318
|
-
* @returns {ResourceProxy} - A proxy for accessing the resource
|
|
6332
|
+
* @returns {ResourceProxy<Dimension>} - A proxy for accessing the resource
|
|
6319
6333
|
*/
|
|
6320
6334
|
|
|
6321
6335
|
|
|
@@ -6325,7 +6339,7 @@ class Mapcreator_Mapcreator extends Object(reflection["mix"])(external_events_de
|
|
|
6325
6339
|
/**
|
|
6326
6340
|
* Dimension set accessor
|
|
6327
6341
|
* @see {@link DimensionSet}
|
|
6328
|
-
* @returns {ResourceProxy} - A proxy for accessing the resource
|
|
6342
|
+
* @returns {ResourceProxy<DimensionSet>} - A proxy for accessing the resource
|
|
6329
6343
|
*/
|
|
6330
6344
|
|
|
6331
6345
|
|
|
@@ -6335,7 +6349,7 @@ class Mapcreator_Mapcreator extends Object(reflection["mix"])(external_events_de
|
|
|
6335
6349
|
/**
|
|
6336
6350
|
* Faq accessor
|
|
6337
6351
|
* @see {@link Faq}
|
|
6338
|
-
* @returns {ResourceProxy} - A proxy for accessing the resource
|
|
6352
|
+
* @returns {ResourceProxy<Faq>} - A proxy for accessing the resource
|
|
6339
6353
|
*/
|
|
6340
6354
|
|
|
6341
6355
|
|
|
@@ -6345,7 +6359,7 @@ class Mapcreator_Mapcreator extends Object(reflection["mix"])(external_events_de
|
|
|
6345
6359
|
/**
|
|
6346
6360
|
* Feature accessor
|
|
6347
6361
|
* @see {@link Feature}
|
|
6348
|
-
* @returns {ResourceProxy} - A proxy for accessing the resource
|
|
6362
|
+
* @returns {ResourceProxy<Feature>} - A proxy for accessing the resource
|
|
6349
6363
|
*/
|
|
6350
6364
|
|
|
6351
6365
|
|
|
@@ -6355,7 +6369,7 @@ class Mapcreator_Mapcreator extends Object(reflection["mix"])(external_events_de
|
|
|
6355
6369
|
/**
|
|
6356
6370
|
* Featured jobs accessor
|
|
6357
6371
|
* @see {@link Job}
|
|
6358
|
-
* @returns {SimpleResourceProxy} - A proxy for accessing the resource
|
|
6372
|
+
* @returns {SimpleResourceProxy<Job>} - A proxy for accessing the resource
|
|
6359
6373
|
*/
|
|
6360
6374
|
|
|
6361
6375
|
|
|
@@ -6365,7 +6379,7 @@ class Mapcreator_Mapcreator extends Object(reflection["mix"])(external_events_de
|
|
|
6365
6379
|
/**
|
|
6366
6380
|
* Font accessor
|
|
6367
6381
|
* @see {@link Font}
|
|
6368
|
-
* @returns {ResourceProxy} - A proxy for accessing the resource
|
|
6382
|
+
* @returns {ResourceProxy<Font>} - A proxy for accessing the resource
|
|
6369
6383
|
*/
|
|
6370
6384
|
|
|
6371
6385
|
|
|
@@ -6375,7 +6389,7 @@ class Mapcreator_Mapcreator extends Object(reflection["mix"])(external_events_de
|
|
|
6375
6389
|
/**
|
|
6376
6390
|
* FontFamily accessor
|
|
6377
6391
|
* @see {@link FontFamily}
|
|
6378
|
-
* @returns {ResourceProxy} - A proxy for accessing the resource
|
|
6392
|
+
* @returns {ResourceProxy<FontFamily>} - A proxy for accessing the resource
|
|
6379
6393
|
*/
|
|
6380
6394
|
|
|
6381
6395
|
|
|
@@ -6385,7 +6399,7 @@ class Mapcreator_Mapcreator extends Object(reflection["mix"])(external_events_de
|
|
|
6385
6399
|
/**
|
|
6386
6400
|
* Highlight accessor
|
|
6387
6401
|
* @see {@link Highlight}
|
|
6388
|
-
* @returns {GeoResourceProxy} - A proxy for accessing the resource
|
|
6402
|
+
* @returns {GeoResourceProxy<Highlight>} - A proxy for accessing the resource
|
|
6389
6403
|
*/
|
|
6390
6404
|
|
|
6391
6405
|
|
|
@@ -6395,7 +6409,7 @@ class Mapcreator_Mapcreator extends Object(reflection["mix"])(external_events_de
|
|
|
6395
6409
|
/**
|
|
6396
6410
|
* VectorHighlight accessor
|
|
6397
6411
|
* @see {@link VectorHighlight}
|
|
6398
|
-
* @returns {GeoResourceProxy} - A proxy for accessing the resource
|
|
6412
|
+
* @returns {GeoResourceProxy<VectorHighlight>} - A proxy for accessing the resource
|
|
6399
6413
|
*/
|
|
6400
6414
|
|
|
6401
6415
|
|
|
@@ -6405,7 +6419,7 @@ class Mapcreator_Mapcreator extends Object(reflection["mix"])(external_events_de
|
|
|
6405
6419
|
/**
|
|
6406
6420
|
* InsetMap accessor
|
|
6407
6421
|
* @see {@link InsetMap}
|
|
6408
|
-
* @returns {GeoResourceProxy} - A proxy for accessing the resource
|
|
6422
|
+
* @returns {GeoResourceProxy<InsetMap>} - A proxy for accessing the resource
|
|
6409
6423
|
*/
|
|
6410
6424
|
|
|
6411
6425
|
|
|
@@ -6415,7 +6429,7 @@ class Mapcreator_Mapcreator extends Object(reflection["mix"])(external_events_de
|
|
|
6415
6429
|
/**
|
|
6416
6430
|
* Job accessor
|
|
6417
6431
|
* @see {@link Job}
|
|
6418
|
-
* @returns {ResourceProxy} - A proxy for accessing the resource
|
|
6432
|
+
* @returns {ResourceProxy<Job>} - A proxy for accessing the resource
|
|
6419
6433
|
*/
|
|
6420
6434
|
|
|
6421
6435
|
|
|
@@ -6425,7 +6439,7 @@ class Mapcreator_Mapcreator extends Object(reflection["mix"])(external_events_de
|
|
|
6425
6439
|
/**
|
|
6426
6440
|
* JobShare accessor
|
|
6427
6441
|
* @see {@link JobShare}
|
|
6428
|
-
* @returns {ResourceProxy} - A proxy for accessing the resource
|
|
6442
|
+
* @returns {ResourceProxy<JobShare>} - A proxy for accessing the resource
|
|
6429
6443
|
*/
|
|
6430
6444
|
|
|
6431
6445
|
|
|
@@ -6435,7 +6449,7 @@ class Mapcreator_Mapcreator extends Object(reflection["mix"])(external_events_de
|
|
|
6435
6449
|
/**
|
|
6436
6450
|
* JobType accessor
|
|
6437
6451
|
* @see {@link JobType}
|
|
6438
|
-
* @returns {ResourceProxy} - A proxy for accessing the resource
|
|
6452
|
+
* @returns {ResourceProxy<JobType>} - A proxy for accessing the resource
|
|
6439
6453
|
*/
|
|
6440
6454
|
|
|
6441
6455
|
|
|
@@ -6445,7 +6459,7 @@ class Mapcreator_Mapcreator extends Object(reflection["mix"])(external_events_de
|
|
|
6445
6459
|
/**
|
|
6446
6460
|
* Language accessor
|
|
6447
6461
|
* @see {@link Language}
|
|
6448
|
-
* @returns {ResourceProxy} - A proxy for accessing the resource
|
|
6462
|
+
* @returns {ResourceProxy<Language>} - A proxy for accessing the resource
|
|
6449
6463
|
*/
|
|
6450
6464
|
|
|
6451
6465
|
|
|
@@ -6455,17 +6469,27 @@ class Mapcreator_Mapcreator extends Object(reflection["mix"])(external_events_de
|
|
|
6455
6469
|
/**
|
|
6456
6470
|
* Layer accessor
|
|
6457
6471
|
* @see {@link Layer}
|
|
6458
|
-
* @returns {ResourceProxy} - A proxy for accessing the resource
|
|
6472
|
+
* @returns {ResourceProxy<Layer>} - A proxy for accessing the resource
|
|
6459
6473
|
*/
|
|
6460
6474
|
|
|
6461
6475
|
|
|
6462
6476
|
get layers() {
|
|
6463
6477
|
return this.static(resources["Layer"]);
|
|
6464
6478
|
}
|
|
6479
|
+
/**
|
|
6480
|
+
* LayerFaq accessor
|
|
6481
|
+
* @see {@link LayerFaq}
|
|
6482
|
+
* @returns {ResourceProxy<LayerFaq>} - A proxy for accessing the resource
|
|
6483
|
+
*/
|
|
6484
|
+
|
|
6485
|
+
|
|
6486
|
+
get layerFaqs() {
|
|
6487
|
+
return this.static(resources["LayerFaq"]);
|
|
6488
|
+
}
|
|
6465
6489
|
/**
|
|
6466
6490
|
* Layer group accessor
|
|
6467
6491
|
* @see {@link LayerGroup}
|
|
6468
|
-
* @returns {ResourceProxy} - A proxy for accessing the resource
|
|
6492
|
+
* @returns {ResourceProxy<LayerGroup>} - A proxy for accessing the resource
|
|
6469
6493
|
*/
|
|
6470
6494
|
|
|
6471
6495
|
|
|
@@ -6475,7 +6499,7 @@ class Mapcreator_Mapcreator extends Object(reflection["mix"])(external_events_de
|
|
|
6475
6499
|
/**
|
|
6476
6500
|
* Mapstyle accessor
|
|
6477
6501
|
* @see {@link Mapstyle}
|
|
6478
|
-
* @returns {ResourceProxy} - A proxy for accessing the resource
|
|
6502
|
+
* @returns {ResourceProxy<Mapstyle>} - A proxy for accessing the resource
|
|
6479
6503
|
*/
|
|
6480
6504
|
|
|
6481
6505
|
|
|
@@ -6485,7 +6509,7 @@ class Mapcreator_Mapcreator extends Object(reflection["mix"])(external_events_de
|
|
|
6485
6509
|
/**
|
|
6486
6510
|
* MapstyleSet accessor
|
|
6487
6511
|
* @see {@link MapstyleSet}
|
|
6488
|
-
* @returns {ResourceProxy} - A proxy for accessing the resource
|
|
6512
|
+
* @returns {ResourceProxy<MapstyleSet>} - A proxy for accessing the resource
|
|
6489
6513
|
*/
|
|
6490
6514
|
|
|
6491
6515
|
|
|
@@ -6495,7 +6519,7 @@ class Mapcreator_Mapcreator extends Object(reflection["mix"])(external_events_de
|
|
|
6495
6519
|
/**
|
|
6496
6520
|
* Notification accessor
|
|
6497
6521
|
* @see {@link Notification}
|
|
6498
|
-
* @returns {ResourceProxy} - A proxy for accessing the resource
|
|
6522
|
+
* @returns {ResourceProxy<Notification>} - A proxy for accessing the resource
|
|
6499
6523
|
*/
|
|
6500
6524
|
|
|
6501
6525
|
|
|
@@ -6505,7 +6529,7 @@ class Mapcreator_Mapcreator extends Object(reflection["mix"])(external_events_de
|
|
|
6505
6529
|
/**
|
|
6506
6530
|
* Message accessor
|
|
6507
6531
|
* @see {@link Message}
|
|
6508
|
-
* @returns {ResourceProxy} - A proxy for accessing the resource
|
|
6532
|
+
* @returns {ResourceProxy<Message>} - A proxy for accessing the resource
|
|
6509
6533
|
*/
|
|
6510
6534
|
|
|
6511
6535
|
|
|
@@ -6515,7 +6539,7 @@ class Mapcreator_Mapcreator extends Object(reflection["mix"])(external_events_de
|
|
|
6515
6539
|
/**
|
|
6516
6540
|
* Organisation accessor
|
|
6517
6541
|
* @see {@link Organisation}
|
|
6518
|
-
* @returns {ResourceProxy} - A proxy for accessing the resource
|
|
6542
|
+
* @returns {ResourceProxy<Organisation>} - A proxy for accessing the resource
|
|
6519
6543
|
*/
|
|
6520
6544
|
|
|
6521
6545
|
|
|
@@ -6525,17 +6549,29 @@ class Mapcreator_Mapcreator extends Object(reflection["mix"])(external_events_de
|
|
|
6525
6549
|
/**
|
|
6526
6550
|
* Permission accessor
|
|
6527
6551
|
* @see {@link Permission}
|
|
6528
|
-
* @returns {ResourceProxy} - A proxy for accessing the resource
|
|
6552
|
+
* @returns {ResourceProxy<Permission>} - A proxy for accessing the resource
|
|
6529
6553
|
*/
|
|
6530
6554
|
|
|
6531
6555
|
|
|
6532
6556
|
get permissions() {
|
|
6533
6557
|
return this.static(resources["Permission"]);
|
|
6534
6558
|
}
|
|
6559
|
+
/**
|
|
6560
|
+
* Product tour accessor
|
|
6561
|
+
* @see {@link ProductTour}
|
|
6562
|
+
* @returns {ResourceProxy<ProductTour>} - A proxy for accessing the resource
|
|
6563
|
+
*/
|
|
6564
|
+
|
|
6535
6565
|
|
|
6536
6566
|
get productTours() {
|
|
6537
6567
|
return this.static(resources["ProductTour"]);
|
|
6538
6568
|
}
|
|
6569
|
+
/**
|
|
6570
|
+
* Product tour step accessor
|
|
6571
|
+
* @see {@link ProductTourStep}
|
|
6572
|
+
* @returns {ResourceProxy<ProductTourStep>} - A proxy for accessing the resource
|
|
6573
|
+
*/
|
|
6574
|
+
|
|
6539
6575
|
|
|
6540
6576
|
get productTourSteps() {
|
|
6541
6577
|
return this.static(resources["ProductTourStep"]);
|
|
@@ -6543,7 +6579,7 @@ class Mapcreator_Mapcreator extends Object(reflection["mix"])(external_events_de
|
|
|
6543
6579
|
/**
|
|
6544
6580
|
* Role accessor
|
|
6545
6581
|
* @see {@link Role}
|
|
6546
|
-
* @returns {ResourceProxy} - A proxy for accessing the resource
|
|
6582
|
+
* @returns {ResourceProxy<Role>} - A proxy for accessing the resource
|
|
6547
6583
|
*/
|
|
6548
6584
|
|
|
6549
6585
|
|
|
@@ -6553,7 +6589,7 @@ class Mapcreator_Mapcreator extends Object(reflection["mix"])(external_events_de
|
|
|
6553
6589
|
/**
|
|
6554
6590
|
* Svg accessor
|
|
6555
6591
|
* @see {@link Svg}
|
|
6556
|
-
* @returns {ResourceProxy} - A proxy for accessing the resource
|
|
6592
|
+
* @returns {ResourceProxy<Svg>} - A proxy for accessing the resource
|
|
6557
6593
|
*/
|
|
6558
6594
|
|
|
6559
6595
|
|
|
@@ -6563,7 +6599,7 @@ class Mapcreator_Mapcreator extends Object(reflection["mix"])(external_events_de
|
|
|
6563
6599
|
/**
|
|
6564
6600
|
* SvgSet accessor
|
|
6565
6601
|
* @see {@link SvgSet}
|
|
6566
|
-
* @returns {ResourceProxy} - A proxy for accessing the resource
|
|
6602
|
+
* @returns {ResourceProxy<SvgSet>} - A proxy for accessing the resource
|
|
6567
6603
|
*/
|
|
6568
6604
|
|
|
6569
6605
|
|
|
@@ -6573,7 +6609,7 @@ class Mapcreator_Mapcreator extends Object(reflection["mix"])(external_events_de
|
|
|
6573
6609
|
/**
|
|
6574
6610
|
* User accessor
|
|
6575
6611
|
* @see {@link User}
|
|
6576
|
-
* @returns {ResourceProxy} - A proxy for accessing the resource
|
|
6612
|
+
* @returns {ResourceProxy<User>} - A proxy for accessing the resource
|
|
6577
6613
|
*/
|
|
6578
6614
|
|
|
6579
6615
|
|
|
@@ -7099,9 +7135,9 @@ class GeoError extends Error {}
|
|
|
7099
7135
|
__webpack_require__.r(__webpack_exports__);
|
|
7100
7136
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return GeoResourceProxy; });
|
|
7101
7137
|
/* harmony import */ var _errors_GeoError__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(31);
|
|
7102
|
-
/* harmony import */ var _RequestParameters__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
|
|
7138
|
+
/* harmony import */ var _RequestParameters__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(4);
|
|
7103
7139
|
/* harmony import */ var _utils_geo__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(56);
|
|
7104
|
-
/* harmony import */ var _ResourceProxy__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
|
|
7140
|
+
/* harmony import */ var _ResourceProxy__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(15);
|
|
7105
7141
|
/* harmony import */ var _utils_helpers__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(0);
|
|
7106
7142
|
/*
|
|
7107
7143
|
* BSD 3-Clause License
|
|
@@ -7273,7 +7309,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
7273
7309
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return JobResult; });
|
|
7274
7310
|
/* harmony import */ var _base_DownloadedResource__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(23);
|
|
7275
7311
|
/* harmony import */ var _base_ResourceBase__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6);
|
|
7276
|
-
/* harmony import */ var _RequestParameters__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
|
|
7312
|
+
/* harmony import */ var _RequestParameters__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(4);
|
|
7277
7313
|
/* harmony import */ var _utils_requests__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(5);
|
|
7278
7314
|
/* harmony import */ var _enums__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(8);
|
|
7279
7315
|
/* harmony import */ var _utils_helpers__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(0);
|
|
@@ -7783,7 +7819,7 @@ class Color extends Object(_utils_reflection__WEBPACK_IMPORTED_MODULE_2__["mix"]
|
|
|
7783
7819
|
"use strict";
|
|
7784
7820
|
__webpack_require__.r(__webpack_exports__);
|
|
7785
7821
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return DimensionSet; });
|
|
7786
|
-
/* harmony import */ var _base_CrudSetBase__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
|
|
7822
|
+
/* harmony import */ var _base_CrudSetBase__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(17);
|
|
7787
7823
|
/* harmony import */ var _Dimension__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(38);
|
|
7788
7824
|
/* harmony import */ var _traits_OwnableResource__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(9);
|
|
7789
7825
|
/* harmony import */ var _utils_reflection__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(1);
|
|
@@ -7850,7 +7886,7 @@ class DimensionSet extends Object(_utils_reflection__WEBPACK_IMPORTED_MODULE_3__
|
|
|
7850
7886
|
"use strict";
|
|
7851
7887
|
__webpack_require__.r(__webpack_exports__);
|
|
7852
7888
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return Dimension; });
|
|
7853
|
-
/* harmony import */ var _base_CrudSetItemBase__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
|
|
7889
|
+
/* harmony import */ var _base_CrudSetItemBase__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(14);
|
|
7854
7890
|
/*
|
|
7855
7891
|
* BSD 3-Clause License
|
|
7856
7892
|
*
|
|
@@ -7960,7 +7996,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
7960
7996
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return FontFamily; });
|
|
7961
7997
|
/* harmony import */ var _traits_OwnableResource__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9);
|
|
7962
7998
|
/* harmony import */ var _utils_reflection__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1);
|
|
7963
|
-
/* harmony import */ var _base_CrudSetBase__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
|
|
7999
|
+
/* harmony import */ var _base_CrudSetBase__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(17);
|
|
7964
8000
|
/* harmony import */ var _Font__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(41);
|
|
7965
8001
|
/*
|
|
7966
8002
|
* BSD 3-Clause License
|
|
@@ -8025,7 +8061,7 @@ class FontFamily extends Object(_utils_reflection__WEBPACK_IMPORTED_MODULE_1__["
|
|
|
8025
8061
|
"use strict";
|
|
8026
8062
|
__webpack_require__.r(__webpack_exports__);
|
|
8027
8063
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return Font; });
|
|
8028
|
-
/* harmony import */ var _base_CrudSetItemBase__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
|
|
8064
|
+
/* harmony import */ var _base_CrudSetItemBase__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(14);
|
|
8029
8065
|
/*
|
|
8030
8066
|
* BSD 3-Clause License
|
|
8031
8067
|
*
|
|
@@ -8076,12 +8112,12 @@ class Font extends _base_CrudSetItemBase__WEBPACK_IMPORTED_MODULE_0__["default"]
|
|
|
8076
8112
|
"use strict";
|
|
8077
8113
|
__webpack_require__.r(__webpack_exports__);
|
|
8078
8114
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return Job; });
|
|
8079
|
-
/* harmony import */ var _proxy_ResourceProxy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
|
|
8115
|
+
/* harmony import */ var _proxy_ResourceProxy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(15);
|
|
8080
8116
|
/* harmony import */ var _base_DownloadedResource__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(23);
|
|
8081
8117
|
/* harmony import */ var _base_CrudBase__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(2);
|
|
8082
8118
|
/* harmony import */ var _JobResult__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(33);
|
|
8083
8119
|
/* harmony import */ var _JobRevision__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(63);
|
|
8084
|
-
/* harmony import */ var _RequestParameters__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
|
|
8120
|
+
/* harmony import */ var _RequestParameters__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(4);
|
|
8085
8121
|
/* harmony import */ var _utils_requests__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(5);
|
|
8086
8122
|
/* harmony import */ var _enums__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(8);
|
|
8087
8123
|
/* harmony import */ var _utils_helpers__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(0);
|
|
@@ -8338,7 +8374,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
8338
8374
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return Mapstyle; });
|
|
8339
8375
|
/* harmony import */ var _traits_HandlesImages__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(71);
|
|
8340
8376
|
/* harmony import */ var _utils_reflection__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1);
|
|
8341
|
-
/* harmony import */ var _base_CrudSetItemBase__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
|
|
8377
|
+
/* harmony import */ var _base_CrudSetItemBase__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(14);
|
|
8342
8378
|
/*
|
|
8343
8379
|
* BSD 3-Clause License
|
|
8344
8380
|
*
|
|
@@ -8393,7 +8429,7 @@ class Mapstyle extends Object(_utils_reflection__WEBPACK_IMPORTED_MODULE_1__["mi
|
|
|
8393
8429
|
__webpack_require__.r(__webpack_exports__);
|
|
8394
8430
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return SvgSet; });
|
|
8395
8431
|
/* harmony import */ var _traits_OwnableResource__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9);
|
|
8396
|
-
/* harmony import */ var _base_CrudSetBase__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
|
|
8432
|
+
/* harmony import */ var _base_CrudSetBase__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(17);
|
|
8397
8433
|
/* harmony import */ var _Svg__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(46);
|
|
8398
8434
|
/* harmony import */ var _utils_reflection__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(1);
|
|
8399
8435
|
/*
|
|
@@ -8459,7 +8495,7 @@ class SvgSet extends Object(_utils_reflection__WEBPACK_IMPORTED_MODULE_3__["mix"
|
|
|
8459
8495
|
"use strict";
|
|
8460
8496
|
__webpack_require__.r(__webpack_exports__);
|
|
8461
8497
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return Svg; });
|
|
8462
|
-
/* harmony import */ var _base_CrudSetItemBase__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
|
|
8498
|
+
/* harmony import */ var _base_CrudSetItemBase__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(14);
|
|
8463
8499
|
/*
|
|
8464
8500
|
* BSD 3-Clause License
|
|
8465
8501
|
*
|
|
@@ -8508,7 +8544,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
8508
8544
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return Tag; });
|
|
8509
8545
|
/* harmony import */ var _traits_OwnableResource__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9);
|
|
8510
8546
|
/* harmony import */ var _utils_reflection__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1);
|
|
8511
|
-
/* harmony import */ var _base_CrudSetItemBase__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
|
|
8547
|
+
/* harmony import */ var _base_CrudSetItemBase__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(14);
|
|
8512
8548
|
/*
|
|
8513
8549
|
* BSD 3-Clause License
|
|
8514
8550
|
*
|
|
@@ -8568,7 +8604,7 @@ class Tag extends Object(_utils_reflection__WEBPACK_IMPORTED_MODULE_1__["mix"])(
|
|
|
8568
8604
|
__webpack_require__.r(__webpack_exports__);
|
|
8569
8605
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return User; });
|
|
8570
8606
|
/* harmony import */ var _proxy_OwnedResourceProxy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(12);
|
|
8571
|
-
/* harmony import */ var _proxy_ResourceProxy__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
|
|
8607
|
+
/* harmony import */ var _proxy_ResourceProxy__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(15);
|
|
8572
8608
|
/* harmony import */ var _base_CrudBase__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(2);
|
|
8573
8609
|
/* harmony import */ var _Color__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(36);
|
|
8574
8610
|
/* harmony import */ var _Dimension__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(38);
|
|
@@ -8931,16 +8967,16 @@ var OwnableResource = __webpack_require__(9);
|
|
|
8931
8967
|
var reflection = __webpack_require__(1);
|
|
8932
8968
|
|
|
8933
8969
|
// EXTERNAL MODULE: ./src/resources/base/CrudSetBase.js
|
|
8934
|
-
var CrudSetBase = __webpack_require__(
|
|
8970
|
+
var CrudSetBase = __webpack_require__(17);
|
|
8935
8971
|
|
|
8936
8972
|
// EXTERNAL MODULE: ./src/resources/Mapstyle.js
|
|
8937
8973
|
var Mapstyle = __webpack_require__(44);
|
|
8938
8974
|
|
|
8939
8975
|
// EXTERNAL MODULE: ./src/proxy/ResourceProxy.js
|
|
8940
|
-
var ResourceProxy = __webpack_require__(
|
|
8976
|
+
var ResourceProxy = __webpack_require__(15);
|
|
8941
8977
|
|
|
8942
8978
|
// EXTERNAL MODULE: ./src/resources/base/CrudSetItemBase.js
|
|
8943
|
-
var CrudSetItemBase = __webpack_require__(
|
|
8979
|
+
var CrudSetItemBase = __webpack_require__(14);
|
|
8944
8980
|
|
|
8945
8981
|
// CONCATENATED MODULE: ./src/resources/MapstyleSetColor.js
|
|
8946
8982
|
/*
|
|
@@ -9979,7 +10015,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
9979
10015
|
/* harmony import */ var events__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(53);
|
|
9980
10016
|
/* harmony import */ var events__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(events__WEBPACK_IMPORTED_MODULE_1__);
|
|
9981
10017
|
/* harmony import */ var _Mapcreator__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(26);
|
|
9982
|
-
/* harmony import */ var _RequestParameters__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
|
|
10018
|
+
/* harmony import */ var _RequestParameters__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(4);
|
|
9983
10019
|
/* harmony import */ var _resources_base_ResourceBase__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(6);
|
|
9984
10020
|
/* harmony import */ var _utils_reflection__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(1);
|
|
9985
10021
|
/* harmony import */ var _utils_helpers__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(0);
|
|
@@ -10657,7 +10693,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
10657
10693
|
/* harmony import */ var _JobResult__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(33);
|
|
10658
10694
|
/* harmony import */ var _JobShare__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(21);
|
|
10659
10695
|
/* harmony import */ var _Layer__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(22);
|
|
10660
|
-
/* harmony import */ var _RequestParameters__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
|
|
10696
|
+
/* harmony import */ var _RequestParameters__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(4);
|
|
10661
10697
|
/* harmony import */ var _utils_requests__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(5);
|
|
10662
10698
|
/* harmony import */ var _enums__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(8);
|
|
10663
10699
|
/* harmony import */ var _utils_helpers__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(0);
|
|
@@ -11088,7 +11124,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
11088
11124
|
/* harmony import */ var _OwnedResourceProxy__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(12);
|
|
11089
11125
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "OwnedResourceProxy", function() { return _OwnedResourceProxy__WEBPACK_IMPORTED_MODULE_2__["default"]; });
|
|
11090
11126
|
|
|
11091
|
-
/* harmony import */ var _ResourceProxy__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
|
|
11127
|
+
/* harmony import */ var _ResourceProxy__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(15);
|
|
11092
11128
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ResourceProxy", function() { return _ResourceProxy__WEBPACK_IMPORTED_MODULE_3__["default"]; });
|
|
11093
11129
|
|
|
11094
11130
|
/* harmony import */ var _SimpleResourceProxy__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(18);
|
|
@@ -11131,11 +11167,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
11131
11167
|
|
|
11132
11168
|
|
|
11133
11169
|
|
|
11134
|
-
|
|
11135
|
-
|
|
11136
|
-
|
|
11137
|
-
|
|
11138
|
-
|
|
11139
11170
|
/***/ }),
|
|
11140
11171
|
/* 68 */
|
|
11141
11172
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
@@ -11250,12 +11281,6 @@ var GeoError = __webpack_require__(31);
|
|
|
11250
11281
|
|
|
11251
11282
|
|
|
11252
11283
|
|
|
11253
|
-
|
|
11254
|
-
|
|
11255
|
-
|
|
11256
|
-
|
|
11257
|
-
|
|
11258
|
-
|
|
11259
11284
|
/***/ }),
|
|
11260
11285
|
/* 69 */
|
|
11261
11286
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
@@ -11474,7 +11499,7 @@ class Injectable extends _Trait__WEBPACK_IMPORTED_MODULE_2__["default"] {
|
|
|
11474
11499
|
return this._proxyResourceList(value);
|
|
11475
11500
|
});
|
|
11476
11501
|
} else {
|
|
11477
|
-
const ResourceProxy = __webpack_require__(
|
|
11502
|
+
const ResourceProxy = __webpack_require__(15).default;
|
|
11478
11503
|
|
|
11479
11504
|
this._inject(name, function () {
|
|
11480
11505
|
return new ResourceProxy(this, value);
|
|
@@ -11511,7 +11536,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
11511
11536
|
/* harmony import */ var _traits_OwnableResource__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9);
|
|
11512
11537
|
/* harmony import */ var _utils_reflection__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1);
|
|
11513
11538
|
/* harmony import */ var _Layer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(22);
|
|
11514
|
-
/* harmony import */ var _base_CrudSetBase__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
|
|
11539
|
+
/* harmony import */ var _base_CrudSetBase__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(17);
|
|
11515
11540
|
/* harmony import */ var _proxy__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(67);
|
|
11516
11541
|
/*
|
|
11517
11542
|
* BSD 3-Clause License
|
|
@@ -11550,7 +11575,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
11550
11575
|
|
|
11551
11576
|
|
|
11552
11577
|
/**
|
|
11553
|
-
*
|
|
11578
|
+
* LayerGroup
|
|
11554
11579
|
* @extends CrudBase
|
|
11555
11580
|
* @mixes OwnableResource
|
|
11556
11581
|
* @mixes HandlesImages
|
|
@@ -12047,7 +12072,7 @@ __webpack_require__.d(__webpack_exports__, "version", function() { return /* bin
|
|
|
12047
12072
|
var Mapcreator = __webpack_require__(26);
|
|
12048
12073
|
|
|
12049
12074
|
// EXTERNAL MODULE: ./src/RequestParameters.js
|
|
12050
|
-
var RequestParameters = __webpack_require__(
|
|
12075
|
+
var RequestParameters = __webpack_require__(4);
|
|
12051
12076
|
|
|
12052
12077
|
// EXTERNAL MODULE: ./src/storage/StorageManager.js + 3 modules
|
|
12053
12078
|
var StorageManager = __webpack_require__(20);
|
|
@@ -12062,7 +12087,7 @@ var enums = __webpack_require__(8);
|
|
|
12062
12087
|
var OAuth = __webpack_require__(25);
|
|
12063
12088
|
|
|
12064
12089
|
// EXTERNAL MODULE: ./src/oauth/OAuthToken.js
|
|
12065
|
-
var OAuthToken = __webpack_require__(
|
|
12090
|
+
var OAuthToken = __webpack_require__(16);
|
|
12066
12091
|
|
|
12067
12092
|
// EXTERNAL MODULE: ./src/oauth/StateContainer.js + 1 modules
|
|
12068
12093
|
var StateContainer = __webpack_require__(58);
|
|
@@ -12614,8 +12639,8 @@ var ValidationError = __webpack_require__(35);
|
|
|
12614
12639
|
// EXTERNAL MODULE: ./src/errors/StaticClassError.js
|
|
12615
12640
|
var StaticClassError = __webpack_require__(34);
|
|
12616
12641
|
|
|
12617
|
-
// EXTERNAL MODULE: ./src/resources/index.js +
|
|
12618
|
-
var resources = __webpack_require__(
|
|
12642
|
+
// EXTERNAL MODULE: ./src/resources/index.js + 10 modules
|
|
12643
|
+
var resources = __webpack_require__(3);
|
|
12619
12644
|
|
|
12620
12645
|
// EXTERNAL MODULE: ./src/ResourceLister.js
|
|
12621
12646
|
var ResourceLister = __webpack_require__(59);
|
|
@@ -12664,13 +12689,9 @@ var proxy = __webpack_require__(67);
|
|
|
12664
12689
|
// Core
|
|
12665
12690
|
|
|
12666
12691
|
|
|
12667
|
-
|
|
12668
|
-
|
|
12669
|
-
|
|
12670
12692
|
// Enums
|
|
12671
12693
|
|
|
12672
12694
|
|
|
12673
|
-
|
|
12674
12695
|
// Flows
|
|
12675
12696
|
|
|
12676
12697
|
|
|
@@ -12678,20 +12699,11 @@ var proxy = __webpack_require__(67);
|
|
|
12678
12699
|
|
|
12679
12700
|
|
|
12680
12701
|
|
|
12681
|
-
|
|
12682
|
-
|
|
12683
|
-
|
|
12684
|
-
|
|
12685
|
-
|
|
12686
|
-
|
|
12687
12702
|
// Exceptions
|
|
12688
12703
|
|
|
12689
12704
|
|
|
12690
12705
|
|
|
12691
12706
|
|
|
12692
|
-
|
|
12693
|
-
|
|
12694
|
-
|
|
12695
12707
|
// Resources
|
|
12696
12708
|
|
|
12697
12709
|
|
|
@@ -12701,7 +12713,6 @@ var proxy = __webpack_require__(67);
|
|
|
12701
12713
|
|
|
12702
12714
|
|
|
12703
12715
|
|
|
12704
|
-
|
|
12705
12716
|
// Errors
|
|
12706
12717
|
|
|
12707
12718
|
|
|
@@ -12714,7 +12725,7 @@ var proxy = __webpack_require__(67);
|
|
|
12714
12725
|
* @private
|
|
12715
12726
|
*/
|
|
12716
12727
|
|
|
12717
|
-
const version = "
|
|
12728
|
+
const version = "v3.0.0";
|
|
12718
12729
|
|
|
12719
12730
|
/***/ })
|
|
12720
12731
|
/******/ ]);
|