@mapcreator/api 2.8.0 → 2.9.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/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:44a1accf99853cc207e7, chunkhash:a2f50ce7336960308a11, name:bundle, version:v2.8.0
32
+ * hash:6f9c7b3e229f9453d9a4, chunkhash:ec07bbc09827a9ced4df, name:bundle, version:v2.9.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
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return RequestParameters; });
709
- /* harmony import */ var case__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(7);
710
- /* harmony import */ var case__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(case__WEBPACK_IMPORTED_MODULE_0__);
711
- /* harmony import */ var events__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(53);
712
- /* harmony import */ var events__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(events__WEBPACK_IMPORTED_MODULE_1__);
713
- /* harmony import */ var _enums__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(8);
714
- /* harmony import */ var _utils_hash__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(29);
715
- /* harmony import */ var _utils_reflection__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(1);
716
- /* harmony import */ var _utils_requests__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(5);
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,349 @@ __webpack_require__.r(__webpack_exports__);
748
790
 
749
791
 
750
792
 
751
-
752
-
753
-
754
793
  /**
755
- * Used for keeping track of the request parameters
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 RequestParameters extends events__WEBPACK_IMPORTED_MODULE_1__["EventEmitter"] {
767
- /**
768
- * RequestParameters constructor
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 sort options
822
- * @returns {Array<String>} - Per page
823
- * @throws {TypeError}
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
- get sort() {
828
- return this._resolve('sort');
808
+ getJson() {
809
+ return Object(helpers["makeCancelable"])(signal => this.api.ky.get(`${this.url}/json`, {
810
+ signal
811
+ }).json());
829
812
  }
830
813
  /**
831
- * If deleted items should be shown
832
- * @returns {String} - Deleted items filter state
833
- * @see {@link DeletedState}
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
- get deleted() {
838
- return this._resolve('deleted');
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
- get extra() {
847
- return this._resolve('extra');
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
- * Page number
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
- set page(value) {
858
- this._update('page', value);
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
- set perPage(value) {
867
- this._update('perPage', value);
868
- }
869
- /**
870
- * Pagination offset
871
- * @param {Number} value - Offset
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
- set offset(value) {
876
- this._update('offset', value);
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
- set search(value) {
885
- this._update('search', value);
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
- set sort(value) {
894
- this._update('sort', value);
895
- }
896
- /**
897
- * Deleted items filter state
898
- * @param {String} value - Deleted items filter state
899
- * @see {@link DeletedState}
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
- set deleted(value) {
904
- this._update('deleted', value);
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
- static get page() {
926
- return RequestParameters._page || 1;
927
- }
928
- /**
929
- * Default per page
930
- * @returns {Number} - Per page
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
- static get perPage() {
935
- return RequestParameters._perPage || Number("12") || 12;
973
+ class InsetMap_InsetMap extends ResourceBase["default"] {
974
+ static get resourceName() {
975
+ return 'inset-maps';
936
976
  }
937
977
  /**
938
- * Default pagination offset
939
- * @returns {Number} - Offset
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
- static get offset() {
944
- return RequestParameters._offset || 0;
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
- static get maxPerPage() {
954
- return RequestParameters._maxPerPage || 50;
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
- static get search() {
963
- return RequestParameters._search || {};
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
- static get sort() {
972
- return RequestParameters._sort || [];
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
- static get deleted() {
981
- return RequestParameters._deleted || void 0;
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
- static get extra() {
990
- return RequestParameters._extra || {};
991
- } // endregion getters
992
- // region setters
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
- * Default page number
996
- * @param {Number} value - Page number
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 set page(value) {
1001
- RequestParameters._page = RequestParameters._validatePage(value);
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
- static set perPage(value) {
1010
- RequestParameters._perPage = RequestParameters._validatePerPage(value);
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
- static set offset(value) {
1019
- RequestParameters._offset = RequestParameters._validateOffset(value);
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
- static set maxPerPage(value) {
1029
- RequestParameters._maxPerPage = RequestParameters._validateMaxPerPage(value);
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
- static set search(value) {
1038
- RequestParameters._search = RequestParameters._validateSearch(value);
1039
- }
1040
- /**
1041
- * Default sort query
1042
- * @param {Array<String>} value - Sort query
1043
- */
1044
-
1045
-
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
-
1054
-
1055
- static set deleted(value) {
1056
- RequestParameters._deleted = RequestParameters._validateDeleted(value);
1057
- }
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
-
1075
-
1076
- static _validatePage(value) {
1077
- if (typeof value !== 'number') {
1078
- throw new TypeError(`Expected page to be of type 'number' instead got '${typeof value}'`);
1079
- }
1080
-
1081
- if (value < 0) {
1082
- throw new TypeError('Page must be a positive number');
1083
- }
1084
-
1085
- if (Number.isNaN(value) || !Number.isFinite(value)) {
1086
- throw new TypeError('Page must be a real number');
1087
- }
1088
-
1089
- if (Math.round(value) !== value) {
1090
- throw new TypeError('Page must be a natural number');
1091
- }
1092
-
1093
- return Math.round(value);
1094
- }
1095
-
1096
- static _validatePerPage(value) {
1097
- if (typeof value !== 'number') {
1098
- throw new TypeError(`Expected per page to be of type 'Number' instead got '${Object(_utils_reflection__WEBPACK_IMPORTED_MODULE_4__["getTypeName"])(value)}'`);
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
-
1113
-
1114
- value = Math.min(RequestParameters.maxPerPage, value);
1115
- return value;
1116
- }
1117
-
1118
- static _validateOffset(value) {
1119
- if (typeof value !== 'number') {
1120
- throw new TypeError(`Expected offset to be of type 'Number' instead got '${Object(_utils_reflection__WEBPACK_IMPORTED_MODULE_4__["getTypeName"])(value)}'`);
1121
- }
1122
-
1123
- if (value < 0) {
1124
- throw new TypeError('Offset must be a positive number');
1125
- }
1126
-
1127
- if (Number.isNaN(value) || !Number.isFinite(value)) {
1128
- throw new TypeError('Offset must be a real number');
1129
- }
1130
-
1131
- if (Math.round(value) !== value) {
1132
- throw new TypeError('Offset must be a natural number');
1133
- }
1134
-
1135
- return value;
1136
- }
1137
-
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
-
1143
- if (value < 1) {
1144
- throw new TypeError('Value must be greater or equal to 1');
1145
- }
1146
-
1147
- return value;
1148
- }
1149
-
1150
- static _validateSearch(value) {
1151
- if (typeof value !== 'object' || Array.isArray(value)) {
1152
- throw new TypeError(`Expected value to be of type "Object" got "${Object(_utils_reflection__WEBPACK_IMPORTED_MODULE_4__["getTypeName"])(value)}"`);
1153
- } // Normalization macro
1154
-
1155
-
1156
- const normalize = x => typeof x === 'number' ? x.toString() : x;
1157
-
1158
- for (let key of Object.keys(value)) {
1159
- key = normalize(key);
1160
- value[key] = normalize(value[key]);
1161
-
1162
- if (typeof key !== 'string') {
1163
- throw new TypeError(`Expected key to be of type "String" got "${Object(_utils_reflection__WEBPACK_IMPORTED_MODULE_4__["getTypeName"])(key)}"`);
1164
- }
1165
-
1166
- if (Array.isArray(value[key])) {
1167
- if (value[key].length > 0) {
1168
- for (const query of value[key]) {
1169
- if (!['string', 'number', 'boolean'].includes(typeof query) && query !== null) {
1170
- 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)}"`);
1171
- }
1172
- }
1173
- } else {
1174
- // Drop empty nodes
1175
- delete value[key];
1176
- }
1177
- } else if (value[key] === null) {
1178
- delete value[key];
1179
- } else if (!['string', 'number', 'boolean'].includes(typeof value[key]) && value[key] !== null) {
1180
- 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])}"`);
1181
- }
1182
- }
1183
-
1184
- return value;
1185
- }
1186
-
1187
- static _validateSort(value) {
1188
- if (typeof value === 'string') {
1189
- return this._validateSort(value.split(','));
1190
- }
1191
-
1192
- if (!(value instanceof Array)) {
1193
- throw new TypeError(`Expected sort value to be of type "Array" got "${Object(_utils_reflection__WEBPACK_IMPORTED_MODULE_4__["getTypeName"])(value)}"`);
1194
- } // Array keys type checking
1195
-
1196
-
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
-
1202
- return value;
1203
- }
1204
-
1205
- static _validateDeleted(value) {
1206
- if (typeof value === 'undefined') {
1207
- return value;
1208
- }
1209
-
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
-
1214
- value = value.toLowerCase();
1215
- const possible = _enums__WEBPACK_IMPORTED_MODULE_2__["DeletedState"].values();
1216
-
1217
- if (!possible.includes(value)) {
1218
- throw new TypeError(`Expected deleted to be one of ${possible.join(', ')}, got ${value}`);
1219
- }
1220
-
1221
- return value;
1222
- }
1223
-
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
-
1229
- return value;
1230
- } // endregion validators
1231
-
1232
-
1233
- _resolve(name) {
1234
- const _name = `_${name}`;
1235
-
1236
- if (!this[_name]) {
1237
- // Confuse esdoc
1238
- (this || {})[_name] = RequestParameters[name];
1239
- }
1240
-
1241
- return this[_name];
1242
- }
1243
-
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
-
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
-
1265
- return value;
1266
- } // region utils
1267
-
1268
- /**
1269
- * Urlencode parameters
1270
- * @returns {string} - HTTP query
1271
- */
1272
-
1273
-
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
-
1282
-
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
-
1294
-
1295
- toParameterObject() {
1296
- const data = {};
1297
- RequestParameters.keys().forEach(key => {
1298
- // Skip extra key
1299
- if (key === 'extra') {
1300
- return;
1301
- }
1302
-
1303
- data[Object(case__WEBPACK_IMPORTED_MODULE_0__["snake"])(key)] = this._resolve(key);
1304
- }); // Fix column names for sort
1305
-
1306
- data.sort = data.sort.map(case__WEBPACK_IMPORTED_MODULE_0__["snake"]).map(x => x.replace(/^_/, '-')).join(',');
1307
-
1308
- if (data.offset === 0) {
1309
- delete data.offset;
1310
- } // Fix column names for search
1311
-
1312
-
1313
- for (const key of Object.keys(data.search)) {
1314
- const snakeKey = key.split(',').map(case__WEBPACK_IMPORTED_MODULE_0__["snake"]).join(',');
1315
-
1316
- if (key !== snakeKey) {
1317
- data.search[snakeKey] = data.search[key];
1318
- delete data.search[key];
1319
- }
1320
- } // Cast search values
1321
-
1322
-
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
-
1328
- if (data.search[key] === null) {
1329
- data.search[key] = '';
1330
- }
1331
- } // Overwrite using extra properties
1332
-
1333
-
1334
- const extra = this._resolve('extra');
1335
-
1336
- for (const key of Object.keys(extra)) {
1337
- data[key] = extra[key];
1338
- }
1339
-
1340
- for (const key of Object.keys(data)) {
1341
- if (typeof data[key] === 'undefined') {
1342
- delete data[key];
1343
- }
1344
- }
1345
-
1346
- return data;
1347
- }
1348
- /**
1349
- * Copy object
1350
- * @returns {RequestParameters} - Copy
1351
- */
1352
-
1353
-
1354
- copy() {
1355
- return new RequestParameters(this.toObject());
1356
- }
1357
- /**
1358
- * Different parameters
1359
- * @returns {Array<String>} - keys
1360
- */
1361
-
1362
-
1363
- static keys() {
1364
- // enumeration is disabled for properties
1365
- return ['page', 'perPage', 'offset', 'search', 'sort', 'deleted', 'extra'];
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
- }
1438
-
1439
- /***/ }),
1440
- /* 4 */
1441
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
1442
-
1443
- "use strict";
1444
- // ESM COMPAT FLAG
1445
- __webpack_require__.r(__webpack_exports__);
1084
+ // EXTERNAL MODULE: ./src/resources/base/CrudSetBase.js
1085
+ var CrudSetBase = __webpack_require__(17);
1446
1086
 
1447
- // EXPORTS
1448
- __webpack_require__.d(__webpack_exports__, "Choropleth", function() { return /* reexport */ Choropleth_Choropleth; });
1449
- __webpack_require__.d(__webpack_exports__, "Color", function() { return /* reexport */ Color["default"]; });
1450
- __webpack_require__.d(__webpack_exports__, "Contract", function() { return /* reexport */ Contract["default"]; });
1451
- __webpack_require__.d(__webpack_exports__, "Dimension", function() { return /* reexport */ Dimension["default"]; });
1452
- __webpack_require__.d(__webpack_exports__, "DimensionSet", function() { return /* reexport */ DimensionSet["default"]; });
1453
- __webpack_require__.d(__webpack_exports__, "Domain", function() { return /* reexport */ Domain["default"]; });
1454
- __webpack_require__.d(__webpack_exports__, "Faq", function() { return /* reexport */ Faq_Faq; });
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; });
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
+ */
1484
1119
 
1485
- // EXTERNAL MODULE: ./src/resources/base/DownloadedResource.js + 1 modules
1486
- var DownloadedResource = __webpack_require__(23);
1487
1120
 
1488
- // EXTERNAL MODULE: ./src/resources/base/ResourceBase.js
1489
- var ResourceBase = __webpack_require__(6);
1121
+ /**
1122
+ * @extends CrudSetItemBase
1123
+ */
1490
1124
 
1491
- // EXTERNAL MODULE: ./src/utils/helpers.js
1492
- var helpers = __webpack_require__(0);
1125
+ class ProductTourStep_ProductTourStep extends Object(reflection["mix"])(CrudSetItemBase["default"]) {
1126
+ static get resourceName() {
1127
+ return 'product-tours/steps';
1128
+ }
1493
1129
 
1494
- // CONCATENATED MODULE: ./src/resources/Choropleth.js
1130
+ static get parentKey() {
1131
+ return 'product_tour_id';
1132
+ }
1133
+
1134
+ }
1135
+ // CONCATENATED MODULE: ./src/resources/ProductTour.js
1495
1136
  /*
1496
1137
  * BSD 3-Clause License
1497
1138
  *
@@ -1527,61 +1168,37 @@ var helpers = __webpack_require__(0);
1527
1168
 
1528
1169
 
1529
1170
  /**
1530
- * Choropleth resource
1171
+ * Mapstyle set
1172
+ * @extends CrudSetBase
1531
1173
  */
1532
1174
 
1533
- class Choropleth_Choropleth extends ResourceBase["default"] {
1534
- static get resourceName() {
1535
- return 'choropleths';
1175
+ class ProductTour_ProductTour extends Object(reflection["mix"])(CrudSetBase["default"]) {
1176
+ static get resourcePath() {
1177
+ return '/product-tours/{id}';
1536
1178
  }
1537
- /**
1538
- * Get the inset map json
1539
- * @returns {CancelablePromise<Object>} - Choropleth json
1540
- * @throws {ApiError} - If the api returns errors
1541
- */
1542
-
1543
1179
 
1544
- getJson() {
1545
- return Object(helpers["makeCancelable"])(signal => this.api.ky.get(`${this.url}/json`, {
1546
- signal
1547
- }).json());
1180
+ static get resourceName() {
1181
+ return 'product-tours';
1548
1182
  }
1549
- /**
1550
- * Download the choropleth preview
1551
- * @returns {CancelablePromise<DownloadedResource>} - Choropleth preview
1552
- * @throws {ApiError} - If the api returns errors
1553
- */
1554
-
1555
1183
 
1556
- downloadPreview() {
1557
- return Object(helpers["makeCancelable"])(async signal => {
1558
- const response = await this.api.ky.get(`${this.url}/preview`, {
1559
- signal
1560
- });
1561
- return DownloadedResource["default"].fromResponse(response);
1562
- });
1184
+ get _Child() {
1185
+ return ProductTourStep_ProductTourStep;
1563
1186
  }
1564
1187
 
1565
1188
  }
1566
- // EXTERNAL MODULE: ./src/resources/Color.js
1567
- var Color = __webpack_require__(36);
1568
-
1569
- // EXTERNAL MODULE: ./src/resources/Contract.js
1570
- var Contract = __webpack_require__(61);
1571
-
1572
- // EXTERNAL MODULE: ./src/resources/Dimension.js
1573
- var Dimension = __webpack_require__(38);
1189
+ // EXTERNAL MODULE: ./src/resources/Role.js
1190
+ var Role = __webpack_require__(66);
1574
1191
 
1575
- // EXTERNAL MODULE: ./src/resources/DimensionSet.js
1576
- var DimensionSet = __webpack_require__(37);
1192
+ // EXTERNAL MODULE: ./src/resources/Svg.js
1193
+ var Svg = __webpack_require__(46);
1577
1194
 
1578
- // EXTERNAL MODULE: ./src/resources/Domain.js
1579
- var Domain = __webpack_require__(62);
1195
+ // EXTERNAL MODULE: ./src/resources/SvgSet.js
1196
+ var SvgSet = __webpack_require__(45);
1580
1197
 
1581
- // EXTERNAL MODULE: ./src/resources/base/CrudBase.js
1582
- var CrudBase = __webpack_require__(2);
1198
+ // EXTERNAL MODULE: ./src/resources/Tag.js
1199
+ var Tag = __webpack_require__(47);
1583
1200
 
1584
- // CONCATENATED MODULE: ./src/resources/Faq.js
1201
+ // CONCATENATED MODULE: ./src/resources/TagType.js
1585
1202
  /*
1586
1203
  * BSD 3-Clause License
1587
1204
  *
@@ -1614,26 +1231,35 @@ var CrudBase = __webpack_require__(2);
1614
1231
  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
1615
1232
  */
1616
1233
 
1234
+
1617
1235
  /**
1618
- * Faq resource
1236
+ * TagType resource
1237
+ * @mixes CrudSetBase
1619
1238
  */
1620
1239
 
1621
- class Faq_Faq extends CrudBase["default"] {
1240
+ class TagType_TagType extends CrudBase["default"] {
1241
+ static get resourcePath() {
1242
+ return '/tags/types/{id}';
1243
+ }
1244
+
1622
1245
  static get resourceName() {
1623
- return 'faqs';
1246
+ return 'tag-types';
1624
1247
  }
1248
+ /**
1249
+ * Get the list of tags that are attached to this type
1250
+ * @returns {SimpleResourceProxy} - A proxy for accessing the resource
1251
+ */
1625
1252
 
1626
- }
1627
- // EXTERNAL MODULE: ./src/resources/Feature.js
1628
- var Feature = __webpack_require__(39);
1629
1253
 
1630
- // EXTERNAL MODULE: ./src/resources/Font.js
1631
- var Font = __webpack_require__(41);
1254
+ get tags() {
1255
+ return this._proxyResourceList(Tag["default"], `${this.url}/tags`);
1256
+ }
1632
1257
 
1633
- // EXTERNAL MODULE: ./src/resources/FontFamily.js
1634
- var FontFamily = __webpack_require__(40);
1258
+ }
1259
+ // EXTERNAL MODULE: ./src/resources/User.js
1260
+ var User = __webpack_require__(48);
1635
1261
 
1636
- // CONCATENATED MODULE: ./src/resources/Highlight.js
1262
+ // CONCATENATED MODULE: ./src/resources/VectorHighlight.js
1637
1263
  /*
1638
1264
  * BSD 3-Clause License
1639
1265
  *
@@ -1666,13 +1292,13 @@ var FontFamily = __webpack_require__(40);
1666
1292
  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
1667
1293
  */
1668
1294
 
1669
- class Highlight_Highlight extends ResourceBase["default"] {
1295
+ class VectorHighlight_VectorHighlight extends ResourceBase["default"] {
1670
1296
  static get resourceName() {
1671
- return 'highlights';
1297
+ return 'highlights/vector';
1672
1298
  }
1673
1299
 
1674
1300
  }
1675
- // CONCATENATED MODULE: ./src/resources/InsetMap.js
1301
+ // CONCATENATED MODULE: ./src/resources/VectorChoropleth.js
1676
1302
  /*
1677
1303
  * BSD 3-Clause License
1678
1304
  *
@@ -1705,74 +1331,144 @@ class Highlight_Highlight extends ResourceBase["default"] {
1705
1331
  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
1706
1332
  */
1707
1333
 
1708
-
1709
- class InsetMap_InsetMap extends ResourceBase["default"] {
1334
+ class VectorChoropleth_VectorChoropleth extends ResourceBase["default"] {
1710
1335
  static get resourceName() {
1711
- return 'inset-maps';
1336
+ return 'choropleths/vector';
1712
1337
  }
1713
- /**
1714
- * Get the inset map json
1715
- * @returns {CancelablePromise<Object>} - Inset map json
1716
- * @throws {ApiError} - If the api returns errors
1717
- */
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
+ */
1372
+
1373
+
1374
+
1375
+
1376
+
1377
+
1378
+
1379
+
1380
+
1381
+
1382
+
1383
+
1384
+
1385
+
1386
+
1387
+
1388
+
1389
+
1390
+
1391
+
1392
+
1393
+
1394
+
1395
+
1396
+
1397
+
1398
+
1399
+
1400
+
1401
+
1402
+
1403
+
1404
+
1405
+
1406
+
1407
+
1408
+
1409
+
1410
+
1411
+
1412
+
1413
+
1414
+
1415
+
1416
+
1417
+
1418
+
1419
+
1420
+
1421
+
1422
+
1423
+
1424
+
1425
+
1426
+
1427
+
1428
+
1429
+
1718
1430
 
1719
1431
 
1720
- getJson() {
1721
- return Object(helpers["makeCancelable"])(signal => this.api.ky.get(`${this.url}/json`, {
1722
- signal
1723
- }).json());
1724
- }
1725
1432
 
1726
- }
1727
- // EXTERNAL MODULE: ./src/resources/Job.js
1728
- var Job = __webpack_require__(42);
1729
1433
 
1730
- // EXTERNAL MODULE: ./src/resources/JobResult.js
1731
- var JobResult = __webpack_require__(33);
1732
1434
 
1733
- // EXTERNAL MODULE: ./src/resources/JobRevision.js
1734
- var JobRevision = __webpack_require__(63);
1735
1435
 
1736
- // EXTERNAL MODULE: ./src/resources/JobShare.js
1737
- var JobShare = __webpack_require__(21);
1738
1436
 
1739
- // EXTERNAL MODULE: ./src/resources/JobType.js
1740
- var JobType = __webpack_require__(43);
1741
1437
 
1742
- // EXTERNAL MODULE: ./src/resources/Language.js
1743
- var Language = __webpack_require__(64);
1744
1438
 
1745
- // EXTERNAL MODULE: ./src/resources/Layer.js
1746
- var Layer = __webpack_require__(22);
1747
1439
 
1748
- // EXTERNAL MODULE: ./src/resources/Mapstyle.js
1749
- var Mapstyle = __webpack_require__(44);
1750
1440
 
1751
- // EXTERNAL MODULE: ./src/resources/MapstyleSet.js + 1 modules
1752
- var MapstyleSet = __webpack_require__(50);
1753
1441
 
1754
- // EXTERNAL MODULE: ./src/resources/Message.js + 1 modules
1755
- var Message = __webpack_require__(57);
1756
1442
 
1757
- // EXTERNAL MODULE: ./src/resources/Notification.js
1758
- var Notification = __webpack_require__(65);
1759
1443
 
1760
- // EXTERNAL MODULE: ./src/resources/Organisation.js
1761
- var Organisation = __webpack_require__(54);
1762
1444
 
1763
- // EXTERNAL MODULE: ./src/resources/Permission.js
1764
- var Permission = __webpack_require__(49);
1765
1445
 
1766
- // EXTERNAL MODULE: ./src/utils/reflection.js
1767
- var reflection = __webpack_require__(1);
1768
1446
 
1769
- // EXTERNAL MODULE: ./src/resources/base/CrudSetBase.js
1770
- var CrudSetBase = __webpack_require__(16);
1447
+ /**
1448
+ * @private
1449
+ */
1771
1450
 
1772
- // EXTERNAL MODULE: ./src/resources/base/CrudSetItemBase.js
1773
- var CrudSetItemBase = __webpack_require__(17);
1451
+ const base = {
1452
+ CrudBase: CrudBase["default"],
1453
+ CrudSetBase: CrudSetBase["default"],
1454
+ ResourceBase: ResourceBase["default"]
1455
+ };
1774
1456
 
1775
- // CONCATENATED MODULE: ./src/resources/ProductTourStep.js
1457
+ /***/ }),
1458
+ /* 4 */
1459
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
1460
+
1461
+ "use strict";
1462
+ __webpack_require__.r(__webpack_exports__);
1463
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return RequestParameters; });
1464
+ /* harmony import */ var case__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(7);
1465
+ /* harmony import */ var case__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(case__WEBPACK_IMPORTED_MODULE_0__);
1466
+ /* harmony import */ var events__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(53);
1467
+ /* harmony import */ var events__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(events__WEBPACK_IMPORTED_MODULE_1__);
1468
+ /* harmony import */ var _enums__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(8);
1469
+ /* harmony import */ var _utils_hash__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(29);
1470
+ /* harmony import */ var _utils_reflection__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(1);
1471
+ /* harmony import */ var _utils_requests__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(5);
1776
1472
  /*
1777
1473
  * BSD 3-Clause License
1778
1474
  *
@@ -1806,339 +1502,694 @@ var CrudSetItemBase = __webpack_require__(17);
1806
1502
  */
1807
1503
 
1808
1504
 
1505
+
1506
+
1507
+
1508
+
1809
1509
  /**
1810
- * @extends CrudSetItemBase
1510
+ * Used for keeping track of the request parameters
1511
+ *
1512
+ * @fires RequestParameters#change
1513
+ * @fires RequestParameters#change:page
1514
+ * @fires RequestParameters#change:perPage
1515
+ * @fires RequestParameters#change:search
1516
+ * @fires RequestParameters#change:sort
1517
+ * @fires RequestParameters#change:deleted
1518
+ * @fires RequestParameters#change:extra
1811
1519
  */
1812
1520
 
1813
- class ProductTourStep_ProductTourStep extends Object(reflection["mix"])(CrudSetItemBase["default"]) {
1814
- static get resourceName() {
1815
- return 'product-tours/steps';
1521
+ class RequestParameters extends events__WEBPACK_IMPORTED_MODULE_1__["EventEmitter"] {
1522
+ /**
1523
+ * RequestParameters constructor
1524
+ * @param {Object} object - properties
1525
+ */
1526
+ constructor(object = {}) {
1527
+ super(); // Apply defaults
1528
+
1529
+ RequestParameters.keys().forEach(x => this._resolve(x)); // Apply properties
1530
+
1531
+ this.apply(object);
1532
+ } // region instance
1533
+ // region instance getters
1534
+
1535
+ /**
1536
+ * Get page number
1537
+ * @returns {Number} - Page number
1538
+ * @throws {TypeError}
1539
+ */
1540
+
1541
+
1542
+ get page() {
1543
+ return this._resolve('page');
1816
1544
  }
1545
+ /**
1546
+ * Get rows per page
1547
+ * @returns {Number} - Per page
1548
+ * @throws {TypeError}
1549
+ */
1817
1550
 
1818
- static get parentKey() {
1819
- return 'product_tour_id';
1551
+
1552
+ get perPage() {
1553
+ return this._resolve('perPage');
1820
1554
  }
1555
+ /**
1556
+ * Get pagination offset
1557
+ * @returns {Number} - Offset
1558
+ * @throws {TypeError}
1559
+ */
1821
1560
 
1822
- }
1823
- // CONCATENATED MODULE: ./src/resources/ProductTour.js
1824
- /*
1825
- * BSD 3-Clause License
1826
- *
1827
- * Copyright (c) 2020, Mapcreator
1828
- * All rights reserved.
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
- */
1561
+
1562
+ get offset() {
1563
+ return this._resolve('offset');
1564
+ }
1565
+ /**
1566
+ * Search query
1567
+ * @returns {Object<String, String|Array<String>>} - Query
1568
+ * @throws {TypeError}
1569
+ */
1570
+
1571
+
1572
+ get search() {
1573
+ return this._resolve('search');
1574
+ }
1575
+ /**
1576
+ * Get sort options
1577
+ * @returns {Array<String>} - Per page
1578
+ * @throws {TypeError}
1579
+ */
1580
+
1581
+
1582
+ get sort() {
1583
+ return this._resolve('sort');
1584
+ }
1585
+ /**
1586
+ * If deleted items should be shown
1587
+ * @returns {String} - Deleted items filter state
1588
+ * @see {@link DeletedState}
1589
+ */
1590
+
1591
+
1592
+ get deleted() {
1593
+ return this._resolve('deleted');
1594
+ }
1595
+ /**
1596
+ * Extra parameters
1597
+ * @returns {Object} - Extra parameters
1598
+ */
1599
+
1600
+
1601
+ get extra() {
1602
+ return this._resolve('extra');
1603
+ } // endregion instance getters
1604
+ // region instance setters
1605
+
1606
+ /**
1607
+ * Page number
1608
+ * @param {Number} value - Page number
1609
+ */
1610
+
1611
+
1612
+ set page(value) {
1613
+ this._update('page', value);
1614
+ }
1615
+ /**
1616
+ * Rows per page
1617
+ * @param {Number} value - Per page
1618
+ */
1619
+
1620
+
1621
+ set perPage(value) {
1622
+ this._update('perPage', value);
1623
+ }
1624
+ /**
1625
+ * Pagination offset
1626
+ * @param {Number} value - Offset
1627
+ */
1628
+
1629
+
1630
+ set offset(value) {
1631
+ this._update('offset', value);
1632
+ }
1633
+ /**
1634
+ * Search query
1635
+ * @param {Object<String, String|Array<String>>} value - Search query
1636
+ */
1637
+
1638
+
1639
+ set search(value) {
1640
+ this._update('search', value);
1641
+ }
1642
+ /**
1643
+ * Sort query
1644
+ * @param {Array<String>} value - Sort query
1645
+ */
1646
+
1647
+
1648
+ set sort(value) {
1649
+ this._update('sort', value);
1650
+ }
1651
+ /**
1652
+ * Deleted items filter state
1653
+ * @param {String} value - Deleted items filter state
1654
+ * @see {@link DeletedState}
1655
+ */
1656
+
1657
+
1658
+ set deleted(value) {
1659
+ this._update('deleted', value);
1660
+ }
1661
+ /**
1662
+ * Extra request parameters
1663
+ * @param {Object} value - Extra request parameters
1664
+ */
1665
+
1666
+
1667
+ set extra(value) {
1668
+ this._update('extra', value);
1669
+ } // endregion instance setters
1670
+ // endregion instance
1671
+ // region static
1672
+ // region getters
1673
+
1674
+ /**
1675
+ * Default page number
1676
+ * @returns {Number} - Page number
1677
+ */
1678
+
1679
+
1680
+ static get page() {
1681
+ return RequestParameters._page || 1;
1682
+ }
1683
+ /**
1684
+ * Default per page
1685
+ * @returns {Number} - Per page
1686
+ */
1687
+
1688
+
1689
+ static get perPage() {
1690
+ return RequestParameters._perPage || Number("12") || 12;
1691
+ }
1692
+ /**
1693
+ * Default pagination offset
1694
+ * @returns {Number} - Offset
1695
+ */
1855
1696
 
1856
1697
 
1698
+ static get offset() {
1699
+ return RequestParameters._offset || 0;
1700
+ }
1701
+ /**
1702
+ * Gets the maximum allowed value for perPage
1703
+ * Some users will have a special permission that allows them to fetch more than 50 resources at once
1704
+ * @returns {Number} - Maximum amount of resources per page
1705
+ */
1857
1706
 
1858
- /**
1859
- * Mapstyle set
1860
- * @extends CrudSetBase
1861
- */
1862
1707
 
1863
- class ProductTour_ProductTour extends Object(reflection["mix"])(CrudSetBase["default"]) {
1864
- static get resourcePath() {
1865
- return '/product-tours/{id}';
1708
+ static get maxPerPage() {
1709
+ return RequestParameters._maxPerPage || 50;
1866
1710
  }
1711
+ /**
1712
+ * Default search query
1713
+ * @returns {Object<String, String|Array<String>>} - Search query
1714
+ */
1867
1715
 
1868
- static get resourceName() {
1869
- return 'product-tours';
1716
+
1717
+ static get search() {
1718
+ return RequestParameters._search || {};
1870
1719
  }
1720
+ /**
1721
+ * Default sort query
1722
+ * @returns {Array<String>} - Sort query
1723
+ */
1871
1724
 
1872
- get _Child() {
1873
- return ProductTourStep_ProductTourStep;
1725
+
1726
+ static get sort() {
1727
+ return RequestParameters._sort || [];
1874
1728
  }
1729
+ /**
1730
+ * Default deleted items filter state
1731
+ * @returns {String|undefined} - Deleted items filter state
1732
+ */
1875
1733
 
1876
- }
1877
- // EXTERNAL MODULE: ./src/resources/Role.js
1878
- var Role = __webpack_require__(66);
1879
1734
 
1880
- // EXTERNAL MODULE: ./src/resources/Svg.js
1881
- var Svg = __webpack_require__(46);
1735
+ static get deleted() {
1736
+ return RequestParameters._deleted || void 0;
1737
+ }
1738
+ /**
1739
+ * Default extra request parameters
1740
+ * @returns {Object} - Extra request parameters
1741
+ */
1882
1742
 
1883
- // EXTERNAL MODULE: ./src/resources/SvgSet.js
1884
- var SvgSet = __webpack_require__(45);
1885
1743
 
1886
- // EXTERNAL MODULE: ./src/resources/Tag.js
1887
- var Tag = __webpack_require__(47);
1744
+ static get extra() {
1745
+ return RequestParameters._extra || {};
1746
+ } // endregion getters
1747
+ // region setters
1888
1748
 
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
- */
1749
+ /**
1750
+ * Default page number
1751
+ * @param {Number} value - Page number
1752
+ */
1921
1753
 
1922
1754
 
1923
- /**
1924
- * TagType resource
1925
- * @mixes CrudSetBase
1926
- */
1755
+ static set page(value) {
1756
+ RequestParameters._page = RequestParameters._validatePage(value);
1757
+ }
1758
+ /**
1759
+ * Default per page
1760
+ * @param {Number} value - Per page
1761
+ */
1927
1762
 
1928
- class TagType_TagType extends CrudBase["default"] {
1929
- static get resourcePath() {
1930
- return '/tags/types/{id}';
1763
+
1764
+ static set perPage(value) {
1765
+ RequestParameters._perPage = RequestParameters._validatePerPage(value);
1931
1766
  }
1767
+ /**
1768
+ * Default pagination offset
1769
+ * @param {Number} value - Offset
1770
+ */
1932
1771
 
1933
- static get resourceName() {
1934
- return 'tag-types';
1772
+
1773
+ static set offset(value) {
1774
+ RequestParameters._offset = RequestParameters._validateOffset(value);
1935
1775
  }
1936
1776
  /**
1937
- * Get the list of tags that are attached to this type
1938
- * @returns {SimpleResourceProxy} - A proxy for accessing the resource
1777
+ * Sets the maximum allowed value for perPage
1778
+ * Some users will have a special permission that allows them to fetch more than 50 resources at once
1779
+ * @param {Number} value - Maximum amount of resources per page
1939
1780
  */
1940
1781
 
1941
1782
 
1942
- get tags() {
1943
- return this._proxyResourceList(Tag["default"], `${this.url}/tags`);
1783
+ static set maxPerPage(value) {
1784
+ RequestParameters._maxPerPage = RequestParameters._validateMaxPerPage(value);
1944
1785
  }
1786
+ /**
1787
+ * Default search query
1788
+ * @param {Object<String, String|Array<String>>} value - Search query
1789
+ */
1945
1790
 
1946
- }
1947
- // EXTERNAL MODULE: ./src/resources/User.js
1948
- var User = __webpack_require__(48);
1949
1791
 
1950
- // CONCATENATED MODULE: ./src/resources/VectorHighlight.js
1951
- /*
1952
- * BSD 3-Clause License
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
- */
1792
+ static set search(value) {
1793
+ RequestParameters._search = RequestParameters._validateSearch(value);
1794
+ }
1795
+ /**
1796
+ * Default sort query
1797
+ * @param {Array<String>} value - Sort query
1798
+ */
1982
1799
 
1983
- class VectorHighlight_VectorHighlight extends ResourceBase["default"] {
1984
- static get resourceName() {
1985
- return 'highlights/vector';
1800
+
1801
+ static set sort(value) {
1802
+ RequestParameters._sort = RequestParameters._validateSort(value);
1986
1803
  }
1804
+ /**
1805
+ * Default deleted items filter state
1806
+ * @param {String} value - Deleted items filter state
1807
+ */
1987
1808
 
1988
- }
1989
- // CONCATENATED MODULE: ./src/resources/VectorChoropleth.js
1990
- /*
1991
- * BSD 3-Clause License
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
- */
2021
1809
 
2022
- class VectorChoropleth_VectorChoropleth extends ResourceBase["default"] {
2023
- static get resourceName() {
2024
- return 'choropleths/vector';
1810
+ static set deleted(value) {
1811
+ RequestParameters._deleted = RequestParameters._validateDeleted(value);
1812
+ }
1813
+ /**
1814
+ * Default extra request parameters
1815
+ * @param {Object} value - Extra request parameters
1816
+ */
1817
+
1818
+
1819
+ static set extra(value) {
1820
+ RequestParameters._extra = RequestParameters._validateExtra(value);
1821
+ } // endregion setters
1822
+ // endregion static
1823
+ // region validators
1824
+
1825
+ /**
1826
+ * Validators should work the same as laravel's ::validate method. This means
1827
+ * this means that they will throw a TypeError or return a normalized result.
1828
+ */
1829
+
1830
+
1831
+ static _validatePage(value) {
1832
+ if (typeof value !== 'number') {
1833
+ throw new TypeError(`Expected page to be of type 'number' instead got '${typeof value}'`);
1834
+ }
1835
+
1836
+ if (value < 0) {
1837
+ throw new TypeError('Page must be a positive number');
1838
+ }
1839
+
1840
+ if (Number.isNaN(value) || !Number.isFinite(value)) {
1841
+ throw new TypeError('Page must be a real number');
1842
+ }
1843
+
1844
+ if (Math.round(value) !== value) {
1845
+ throw new TypeError('Page must be a natural number');
1846
+ }
1847
+
1848
+ return Math.round(value);
2025
1849
  }
2026
1850
 
2027
- }
2028
- // CONCATENATED MODULE: ./src/resources/index.js
2029
- /*
2030
- * BSD 3-Clause License
2031
- *
2032
- * Copyright (c) 2020, Mapcreator
2033
- * All rights reserved.
2034
- *
2035
- * Redistribution and use in source and binary forms, with or without
2036
- * modification, are permitted provided that the following conditions are met:
2037
- *
2038
- * Redistributions of source code must retain the above copyright notice, this
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
- */
1851
+ static _validatePerPage(value) {
1852
+ if (typeof value !== 'number') {
1853
+ throw new TypeError(`Expected per page to be of type 'Number' instead got '${Object(_utils_reflection__WEBPACK_IMPORTED_MODULE_4__["getTypeName"])(value)}'`);
1854
+ }
1855
+
1856
+ if (value <= 0) {
1857
+ throw new TypeError('Per page must be greater than zero');
1858
+ }
1859
+
1860
+ if (Number.isNaN(value) || !Number.isFinite(value)) {
1861
+ throw new TypeError('Per page must be a real number');
1862
+ }
1863
+
1864
+ if (Math.round(value) !== value) {
1865
+ throw new TypeError('Per page must be a natural number');
1866
+ } // Upper limit is 50 by default
1867
+
2060
1868
 
1869
+ value = Math.min(RequestParameters.maxPerPage, value);
1870
+ return value;
1871
+ }
1872
+
1873
+ static _validateOffset(value) {
1874
+ if (typeof value !== 'number') {
1875
+ throw new TypeError(`Expected offset to be of type 'Number' instead got '${Object(_utils_reflection__WEBPACK_IMPORTED_MODULE_4__["getTypeName"])(value)}'`);
1876
+ }
2061
1877
 
1878
+ if (value < 0) {
1879
+ throw new TypeError('Offset must be a positive number');
1880
+ }
2062
1881
 
1882
+ if (Number.isNaN(value) || !Number.isFinite(value)) {
1883
+ throw new TypeError('Offset must be a real number');
1884
+ }
2063
1885
 
1886
+ if (Math.round(value) !== value) {
1887
+ throw new TypeError('Offset must be a natural number');
1888
+ }
2064
1889
 
1890
+ return value;
1891
+ }
2065
1892
 
1893
+ static _validateMaxPerPage(value) {
1894
+ if (typeof value !== 'number') {
1895
+ throw new TypeError(`Expected page to be of type 'Number' instead got '${Object(_utils_reflection__WEBPACK_IMPORTED_MODULE_4__["getTypeName"])(value)}'`);
1896
+ }
2066
1897
 
1898
+ if (value < 1) {
1899
+ throw new TypeError('Value must be greater or equal to 1');
1900
+ }
2067
1901
 
1902
+ return value;
1903
+ }
2068
1904
 
1905
+ static _validateSearch(value) {
1906
+ if (typeof value !== 'object' || Array.isArray(value)) {
1907
+ throw new TypeError(`Expected value to be of type "Object" got "${Object(_utils_reflection__WEBPACK_IMPORTED_MODULE_4__["getTypeName"])(value)}"`);
1908
+ } // Normalization macro
2069
1909
 
2070
1910
 
1911
+ const normalize = x => typeof x === 'number' ? x.toString() : x;
2071
1912
 
1913
+ for (let key of Object.keys(value)) {
1914
+ key = normalize(key);
1915
+ value[key] = normalize(value[key]);
2072
1916
 
1917
+ if (typeof key !== 'string') {
1918
+ throw new TypeError(`Expected key to be of type "String" got "${Object(_utils_reflection__WEBPACK_IMPORTED_MODULE_4__["getTypeName"])(key)}"`);
1919
+ }
2073
1920
 
1921
+ if (Array.isArray(value[key])) {
1922
+ if (value[key].length > 0) {
1923
+ for (const query of value[key]) {
1924
+ if (!['string', 'number', 'boolean'].includes(typeof query) && query !== null) {
1925
+ 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)}"`);
1926
+ }
1927
+ }
1928
+ } else {
1929
+ // Drop empty nodes
1930
+ delete value[key];
1931
+ }
1932
+ } else if (value[key] === null) {
1933
+ delete value[key];
1934
+ } else if (!['string', 'number', 'boolean'].includes(typeof value[key]) && value[key] !== null) {
1935
+ 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])}"`);
1936
+ }
1937
+ }
2074
1938
 
1939
+ return value;
1940
+ }
2075
1941
 
1942
+ static _validateSort(value) {
1943
+ if (typeof value === 'string') {
1944
+ return this._validateSort(value.split(','));
1945
+ }
2076
1946
 
1947
+ if (!(value instanceof Array)) {
1948
+ throw new TypeError(`Expected sort value to be of type "Array" got "${Object(_utils_reflection__WEBPACK_IMPORTED_MODULE_4__["getTypeName"])(value)}"`);
1949
+ } // Array keys type checking
2077
1950
 
2078
1951
 
1952
+ value.filter(x => typeof x !== 'string').forEach(x => {
1953
+ throw new TypeError(`Expected sort array values to be of type "String" got "${Object(_utils_reflection__WEBPACK_IMPORTED_MODULE_4__["getTypeName"])(x)}"`);
1954
+ }); // Don't do regex matching because it's something
1955
+ // we can just let the server do for us.
2079
1956
 
1957
+ return value;
1958
+ }
2080
1959
 
1960
+ static _validateDeleted(value) {
1961
+ if (typeof value === 'undefined') {
1962
+ return value;
1963
+ }
2081
1964
 
1965
+ if (typeof value !== 'string') {
1966
+ throw new TypeError(`Expected deleted to be of type "string" got "${Object(_utils_reflection__WEBPACK_IMPORTED_MODULE_4__["getTypeName"])(value)}". See: DeletedState`);
1967
+ }
2082
1968
 
1969
+ value = value.toLowerCase();
1970
+ const possible = _enums__WEBPACK_IMPORTED_MODULE_2__["DeletedState"].values();
2083
1971
 
1972
+ if (!possible.includes(value)) {
1973
+ throw new TypeError(`Expected deleted to be one of ${possible.join(', ')}, got ${value}`);
1974
+ }
2084
1975
 
1976
+ return value;
1977
+ }
2085
1978
 
1979
+ static _validateExtra(value) {
1980
+ if (typeof value !== 'object') {
1981
+ throw new TypeError(`Expected extra to be of type 'object', got '${Object(_utils_reflection__WEBPACK_IMPORTED_MODULE_4__["getTypeName"])(value)}'`);
1982
+ }
2086
1983
 
1984
+ return value;
1985
+ } // endregion validators
2087
1986
 
2088
1987
 
1988
+ _resolve(name) {
1989
+ const _name = `_${name}`;
2089
1990
 
1991
+ if (!this[_name]) {
1992
+ // Confuse esdoc
1993
+ (this || {})[_name] = RequestParameters[name];
1994
+ }
2090
1995
 
1996
+ return this[_name];
1997
+ }
2091
1998
 
1999
+ _update(name, value, preventEvent = false) {
2000
+ const _name = `_${name}`;
2001
+ value = RequestParameters[`_validate${Object(case__WEBPACK_IMPORTED_MODULE_0__["pascal"])(name)}`](value);
2002
+ (this || {})[_name] = value; // Weird syntax confuses esdoc
2092
2003
 
2004
+ if (!preventEvent) {
2005
+ /**
2006
+ * Change event.
2007
+ *
2008
+ * @event RequestParameters#change
2009
+ * @type {Array<object>}
2010
+ * @property {string} name - Parameter name
2011
+ * @property {*} value - New value
2012
+ */
2013
+ this.emit('change', [{
2014
+ name,
2015
+ value
2016
+ }]);
2017
+ this.emit(`change:${name}`, value);
2018
+ }
2093
2019
 
2020
+ return value;
2021
+ } // region utils
2094
2022
 
2023
+ /**
2024
+ * Urlencode parameters
2025
+ * @returns {string} - HTTP query
2026
+ */
2095
2027
 
2096
2028
 
2029
+ encode() {
2030
+ return Object(_utils_requests__WEBPACK_IMPORTED_MODULE_5__["encodeQueryString"])(this.toParameterObject());
2031
+ }
2032
+ /**
2033
+ * Convert to object
2034
+ * @returns {Object} - Object
2035
+ */
2097
2036
 
2098
2037
 
2038
+ toObject() {
2039
+ return RequestParameters.keys().reduce((obj, key) => {
2040
+ obj[Object(case__WEBPACK_IMPORTED_MODULE_0__["snake"])(key)] = this._resolve(key);
2041
+ return obj;
2042
+ }, {});
2043
+ }
2044
+ /**
2045
+ * Convert to object
2046
+ * @returns {Object} - Object
2047
+ */
2099
2048
 
2100
2049
 
2050
+ toParameterObject() {
2051
+ const data = {};
2052
+ RequestParameters.keys().forEach(key => {
2053
+ // Skip extra key
2054
+ if (key === 'extra') {
2055
+ return;
2056
+ }
2101
2057
 
2058
+ data[Object(case__WEBPACK_IMPORTED_MODULE_0__["snake"])(key)] = this._resolve(key);
2059
+ }); // Fix column names for sort
2102
2060
 
2061
+ data.sort = data.sort.map(case__WEBPACK_IMPORTED_MODULE_0__["snake"]).map(x => x.replace(/^_/, '-')).join(',');
2103
2062
 
2063
+ if (data.offset === 0) {
2064
+ delete data.offset;
2065
+ } // Fix column names for search
2104
2066
 
2105
2067
 
2068
+ for (const key of Object.keys(data.search)) {
2069
+ const snakeKey = key.split(',').map(case__WEBPACK_IMPORTED_MODULE_0__["snake"]).join(',');
2106
2070
 
2071
+ if (key !== snakeKey) {
2072
+ data.search[snakeKey] = data.search[key];
2073
+ delete data.search[key];
2074
+ }
2075
+ } // Cast search values
2107
2076
 
2108
2077
 
2078
+ for (const key of Object.keys(data.search)) {
2079
+ if (typeof data.search[key] === 'boolean') {
2080
+ data.search[key] = Number(data.search[key]);
2081
+ }
2109
2082
 
2083
+ if (data.search[key] === null) {
2084
+ data.search[key] = '';
2085
+ }
2086
+ } // Overwrite using extra properties
2110
2087
 
2111
2088
 
2089
+ const extra = this._resolve('extra');
2112
2090
 
2091
+ for (const key of Object.keys(extra)) {
2092
+ data[key] = extra[key];
2093
+ }
2113
2094
 
2095
+ for (const key of Object.keys(data)) {
2096
+ if (typeof data[key] === 'undefined') {
2097
+ delete data[key];
2098
+ }
2099
+ }
2114
2100
 
2101
+ return data;
2102
+ }
2103
+ /**
2104
+ * Copy object
2105
+ * @returns {RequestParameters} - Copy
2106
+ */
2115
2107
 
2116
2108
 
2109
+ copy() {
2110
+ return new RequestParameters(this.toObject());
2111
+ }
2112
+ /**
2113
+ * Different parameters
2114
+ * @returns {Array<String>} - keys
2115
+ */
2117
2116
 
2118
2117
 
2118
+ static keys() {
2119
+ // enumeration is disabled for properties
2120
+ return ['page', 'perPage', 'offset', 'search', 'sort', 'deleted', 'extra'];
2121
+ }
2122
+ /**
2123
+ * Generates a cache token
2124
+ * @returns {string} - Cache token
2125
+ */
2119
2126
 
2120
2127
 
2128
+ token() {
2129
+ const data = this.toObject();
2130
+ delete data.page;
2131
+ delete data['per_page'];
2132
+ return Object(_utils_hash__WEBPACK_IMPORTED_MODULE_3__["hashObject"])(data);
2133
+ }
2134
+ /**
2135
+ * Resets all parameters back to default
2136
+ */
2121
2137
 
2122
2138
 
2139
+ static resetDefaults() {
2140
+ for (const key of RequestParameters.keys()) {
2141
+ delete RequestParameters[`_${key}`];
2142
+ }
2143
+ }
2144
+ /**
2145
+ * Apply parameters from object
2146
+ * @param {object|RequestParameters} params - parameters
2147
+ * @returns {Object[]} - Array containing the updated values
2148
+ * @example
2149
+ * const params = new RequestParameters({perPage: 12});
2150
+ *
2151
+ * params.perPage === 12;
2152
+ *
2153
+ * params.apply({perPage: 50});
2154
+ *
2155
+ * params.perPage === 50;
2156
+ */
2123
2157
 
2124
2158
 
2159
+ apply(params) {
2160
+ if (params instanceof RequestParameters) {
2161
+ params = params.toObject();
2162
+ }
2125
2163
 
2164
+ const out = [];
2126
2165
 
2166
+ for (const key of Object.keys(params)) {
2167
+ const Key = Object(case__WEBPACK_IMPORTED_MODULE_0__["camel"])(key);
2127
2168
 
2169
+ if (key[0] === '_' || !RequestParameters.keys().includes(Key)) {
2170
+ continue;
2171
+ }
2128
2172
 
2173
+ out.push({
2174
+ name: Key,
2175
+ value: this._update(Key, params[key], true)
2176
+ });
2177
+ }
2129
2178
 
2179
+ this.emit('change', out);
2130
2180
 
2181
+ for (const {
2182
+ name,
2183
+ value
2184
+ } of out) {
2185
+ this.emit(`change:${name}`, value);
2186
+ }
2131
2187
 
2188
+ return out;
2189
+ } // endregion utils
2132
2190
 
2133
- /**
2134
- * @private
2135
- */
2136
2191
 
2137
- const base = {
2138
- CrudBase: CrudBase["default"],
2139
- CrudSetBase: CrudSetBase["default"],
2140
- ResourceBase: ResourceBase["default"]
2141
- };
2192
+ }
2142
2193
 
2143
2194
  /***/ }),
2144
2195
  /* 5 */
@@ -3353,6 +3404,99 @@ function windowTest(str) {
3353
3404
  /* 14 */
3354
3405
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
3355
3406
 
3407
+ "use strict";
3408
+ __webpack_require__.r(__webpack_exports__);
3409
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return CrudSetItemBase; });
3410
+ /* harmony import */ var _errors_AbstractError__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(11);
3411
+ /* harmony import */ var _CrudBase__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2);
3412
+ /* harmony import */ var case__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7);
3413
+ /* harmony import */ var case__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(case__WEBPACK_IMPORTED_MODULE_2__);
3414
+ /*
3415
+ * BSD 3-Clause License
3416
+ *
3417
+ * Copyright (c) 2020, Mapcreator
3418
+ * All rights reserved.
3419
+ *
3420
+ * Redistribution and use in source and binary forms, with or without
3421
+ * modification, are permitted provided that the following conditions are met:
3422
+ *
3423
+ * Redistributions of source code must retain the above copyright notice, this
3424
+ * list of conditions and the following disclaimer.
3425
+ *
3426
+ * Redistributions in binary form must reproduce the above copyright notice,
3427
+ * this list of conditions and the following disclaimer in the documentation
3428
+ * and/or other materials provided with the distribution.
3429
+ *
3430
+ * Neither the name of the copyright holder nor the names of its
3431
+ * contributors may be used to endorse or promote products derived from
3432
+ * this software without specific prior written permission.
3433
+ *
3434
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
3435
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
3436
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
3437
+ * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
3438
+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
3439
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
3440
+ * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
3441
+ * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
3442
+ * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
3443
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
3444
+ */
3445
+
3446
+
3447
+
3448
+ /**
3449
+ * Items that are part of a set
3450
+ * @abstract
3451
+ */
3452
+
3453
+ class CrudSetItemBase extends _CrudBase__WEBPACK_IMPORTED_MODULE_1__["default"] {
3454
+ /**
3455
+ * @param {Mapcreator} api - Api instance
3456
+ * @param {Object<String, *>} data - Item data
3457
+ */
3458
+ constructor(api, data = {}) {
3459
+ super(api, data);
3460
+
3461
+ if (this.constructor === _CrudBase__WEBPACK_IMPORTED_MODULE_1__["default"]) {
3462
+ throw new _errors_AbstractError__WEBPACK_IMPORTED_MODULE_0__["AbstractClassError"]();
3463
+ }
3464
+ }
3465
+
3466
+ get hasParent() {
3467
+ const parentKey = Object(case__WEBPACK_IMPORTED_MODULE_2__["camel"])(this.constructor.parentKey);
3468
+ return this.hasOwnProperty(parentKey);
3469
+ }
3470
+ /**
3471
+ * Get the parent id
3472
+ * @returns {number|undefined} - Parent number
3473
+ */
3474
+
3475
+
3476
+ get parentId() {
3477
+ if (this.hasParent) {
3478
+ const parentKey = Object(case__WEBPACK_IMPORTED_MODULE_2__["camel"])(this.constructor.parentKey);
3479
+ return Number(this[parentKey]);
3480
+ }
3481
+
3482
+ return void 0;
3483
+ }
3484
+ /**
3485
+ * Get the parent key
3486
+ * @returns {string} - Parent key
3487
+ */
3488
+
3489
+
3490
+ static get parentKey() {
3491
+ return this.resourceName.replace(/s$/, '_set_id');
3492
+ }
3493
+
3494
+ }
3495
+
3496
+ /***/ }),
3497
+ /* 15 */
3498
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
3499
+
3356
3500
  "use strict";
3357
3501
  __webpack_require__.r(__webpack_exports__);
3358
3502
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return ResourceProxy; });
@@ -3475,7 +3619,7 @@ class ResourceProxy extends _SimpleResourceProxy__WEBPACK_IMPORTED_MODULE_1__["d
3475
3619
  }
3476
3620
 
3477
3621
  /***/ }),
3478
- /* 15 */
3622
+ /* 16 */
3479
3623
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
3480
3624
 
3481
3625
  "use strict";
@@ -3661,7 +3805,7 @@ class OAuthToken {
3661
3805
  }
3662
3806
 
3663
3807
  /***/ }),
3664
- /* 16 */
3808
+ /* 17 */
3665
3809
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
3666
3810
 
3667
3811
  "use strict";
@@ -3754,99 +3898,6 @@ class CrudSetBase extends _CrudBase__WEBPACK_IMPORTED_MODULE_1__["default"] {
3754
3898
 
3755
3899
  }
3756
3900
 
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
3901
  /***/ }),
3851
3902
  /* 18 */
3852
3903
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
@@ -3862,7 +3913,7 @@ __webpack_require__.d(__webpack_exports__, "default", function() { return /* bin
3862
3913
  var Mapcreator = __webpack_require__(26);
3863
3914
 
3864
3915
  // EXTERNAL MODULE: ./src/RequestParameters.js
3865
- var RequestParameters = __webpack_require__(3);
3916
+ var RequestParameters = __webpack_require__(4);
3866
3917
 
3867
3918
  // EXTERNAL MODULE: ./src/utils/reflection.js
3868
3919
  var reflection = __webpack_require__(1);
@@ -5587,7 +5638,7 @@ __webpack_require__.r(__webpack_exports__);
5587
5638
  /* harmony import */ var ky_universal__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(ky_universal__WEBPACK_IMPORTED_MODULE_1__);
5588
5639
  /* harmony import */ var _errors_AbstractError__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(11);
5589
5640
  /* harmony import */ var _storage_StorageManager__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(20);
5590
- /* harmony import */ var _OAuthToken__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(15);
5641
+ /* harmony import */ var _OAuthToken__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(16);
5591
5642
  /* harmony import */ var _StateContainer__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(58);
5592
5643
  /* harmony import */ var _utils_helpers__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(0);
5593
5644
 
@@ -5753,19 +5804,19 @@ var DummyFlow = __webpack_require__(55);
5753
5804
  var OAuth = __webpack_require__(25);
5754
5805
 
5755
5806
  // EXTERNAL MODULE: ./src/oauth/OAuthToken.js
5756
- var OAuthToken = __webpack_require__(15);
5807
+ var OAuthToken = __webpack_require__(16);
5757
5808
 
5758
5809
  // EXTERNAL MODULE: ./src/proxy/GeoResourceProxy.js
5759
5810
  var GeoResourceProxy = __webpack_require__(32);
5760
5811
 
5761
5812
  // EXTERNAL MODULE: ./src/proxy/ResourceProxy.js
5762
- var ResourceProxy = __webpack_require__(14);
5813
+ var ResourceProxy = __webpack_require__(15);
5763
5814
 
5764
5815
  // EXTERNAL MODULE: ./src/proxy/SimpleResourceProxy.js + 1 modules
5765
5816
  var SimpleResourceProxy = __webpack_require__(18);
5766
5817
 
5767
- // EXTERNAL MODULE: ./src/resources/index.js + 9 modules
5768
- var resources = __webpack_require__(4);
5818
+ // EXTERNAL MODULE: ./src/resources/index.js + 10 modules
5819
+ var resources = __webpack_require__(3);
5769
5820
 
5770
5821
  // EXTERNAL MODULE: ./src/resources/base/ResourceBase.js
5771
5822
  var ResourceBase = __webpack_require__(6);
@@ -6462,6 +6513,16 @@ class Mapcreator_Mapcreator extends Object(reflection["mix"])(external_events_de
6462
6513
  get layers() {
6463
6514
  return this.static(resources["Layer"]);
6464
6515
  }
6516
+ /**
6517
+ * LayerFaq accessor
6518
+ * @see {@link LayerFaq}
6519
+ * @returns {ResourceProxy} - A proxy for accessing the resource
6520
+ */
6521
+
6522
+
6523
+ get layerFaqs() {
6524
+ return this.static(resources["LayerFaq"]);
6525
+ }
6465
6526
  /**
6466
6527
  * Layer group accessor
6467
6528
  * @see {@link LayerGroup}
@@ -7099,9 +7160,9 @@ class GeoError extends Error {}
7099
7160
  __webpack_require__.r(__webpack_exports__);
7100
7161
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return GeoResourceProxy; });
7101
7162
  /* harmony import */ var _errors_GeoError__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(31);
7102
- /* harmony import */ var _RequestParameters__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(3);
7163
+ /* harmony import */ var _RequestParameters__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(4);
7103
7164
  /* harmony import */ var _utils_geo__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(56);
7104
- /* harmony import */ var _ResourceProxy__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(14);
7165
+ /* harmony import */ var _ResourceProxy__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(15);
7105
7166
  /* harmony import */ var _utils_helpers__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(0);
7106
7167
  /*
7107
7168
  * BSD 3-Clause License
@@ -7273,7 +7334,7 @@ __webpack_require__.r(__webpack_exports__);
7273
7334
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return JobResult; });
7274
7335
  /* harmony import */ var _base_DownloadedResource__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(23);
7275
7336
  /* harmony import */ var _base_ResourceBase__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6);
7276
- /* harmony import */ var _RequestParameters__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(3);
7337
+ /* harmony import */ var _RequestParameters__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(4);
7277
7338
  /* harmony import */ var _utils_requests__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(5);
7278
7339
  /* harmony import */ var _enums__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(8);
7279
7340
  /* harmony import */ var _utils_helpers__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(0);
@@ -7783,7 +7844,7 @@ class Color extends Object(_utils_reflection__WEBPACK_IMPORTED_MODULE_2__["mix"]
7783
7844
  "use strict";
7784
7845
  __webpack_require__.r(__webpack_exports__);
7785
7846
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return DimensionSet; });
7786
- /* harmony import */ var _base_CrudSetBase__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(16);
7847
+ /* harmony import */ var _base_CrudSetBase__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(17);
7787
7848
  /* harmony import */ var _Dimension__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(38);
7788
7849
  /* harmony import */ var _traits_OwnableResource__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(9);
7789
7850
  /* harmony import */ var _utils_reflection__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(1);
@@ -7850,7 +7911,7 @@ class DimensionSet extends Object(_utils_reflection__WEBPACK_IMPORTED_MODULE_3__
7850
7911
  "use strict";
7851
7912
  __webpack_require__.r(__webpack_exports__);
7852
7913
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return Dimension; });
7853
- /* harmony import */ var _base_CrudSetItemBase__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(17);
7914
+ /* harmony import */ var _base_CrudSetItemBase__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(14);
7854
7915
  /*
7855
7916
  * BSD 3-Clause License
7856
7917
  *
@@ -7960,7 +8021,7 @@ __webpack_require__.r(__webpack_exports__);
7960
8021
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return FontFamily; });
7961
8022
  /* harmony import */ var _traits_OwnableResource__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9);
7962
8023
  /* harmony import */ var _utils_reflection__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1);
7963
- /* harmony import */ var _base_CrudSetBase__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(16);
8024
+ /* harmony import */ var _base_CrudSetBase__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(17);
7964
8025
  /* harmony import */ var _Font__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(41);
7965
8026
  /*
7966
8027
  * BSD 3-Clause License
@@ -8025,7 +8086,7 @@ class FontFamily extends Object(_utils_reflection__WEBPACK_IMPORTED_MODULE_1__["
8025
8086
  "use strict";
8026
8087
  __webpack_require__.r(__webpack_exports__);
8027
8088
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return Font; });
8028
- /* harmony import */ var _base_CrudSetItemBase__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(17);
8089
+ /* harmony import */ var _base_CrudSetItemBase__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(14);
8029
8090
  /*
8030
8091
  * BSD 3-Clause License
8031
8092
  *
@@ -8076,12 +8137,12 @@ class Font extends _base_CrudSetItemBase__WEBPACK_IMPORTED_MODULE_0__["default"]
8076
8137
  "use strict";
8077
8138
  __webpack_require__.r(__webpack_exports__);
8078
8139
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return Job; });
8079
- /* harmony import */ var _proxy_ResourceProxy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(14);
8140
+ /* harmony import */ var _proxy_ResourceProxy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(15);
8080
8141
  /* harmony import */ var _base_DownloadedResource__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(23);
8081
8142
  /* harmony import */ var _base_CrudBase__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(2);
8082
8143
  /* harmony import */ var _JobResult__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(33);
8083
8144
  /* harmony import */ var _JobRevision__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(63);
8084
- /* harmony import */ var _RequestParameters__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(3);
8145
+ /* harmony import */ var _RequestParameters__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(4);
8085
8146
  /* harmony import */ var _utils_requests__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(5);
8086
8147
  /* harmony import */ var _enums__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(8);
8087
8148
  /* harmony import */ var _utils_helpers__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(0);
@@ -8338,7 +8399,7 @@ __webpack_require__.r(__webpack_exports__);
8338
8399
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return Mapstyle; });
8339
8400
  /* harmony import */ var _traits_HandlesImages__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(71);
8340
8401
  /* harmony import */ var _utils_reflection__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1);
8341
- /* harmony import */ var _base_CrudSetItemBase__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(17);
8402
+ /* harmony import */ var _base_CrudSetItemBase__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(14);
8342
8403
  /*
8343
8404
  * BSD 3-Clause License
8344
8405
  *
@@ -8393,7 +8454,7 @@ class Mapstyle extends Object(_utils_reflection__WEBPACK_IMPORTED_MODULE_1__["mi
8393
8454
  __webpack_require__.r(__webpack_exports__);
8394
8455
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return SvgSet; });
8395
8456
  /* harmony import */ var _traits_OwnableResource__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9);
8396
- /* harmony import */ var _base_CrudSetBase__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(16);
8457
+ /* harmony import */ var _base_CrudSetBase__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(17);
8397
8458
  /* harmony import */ var _Svg__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(46);
8398
8459
  /* harmony import */ var _utils_reflection__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(1);
8399
8460
  /*
@@ -8459,7 +8520,7 @@ class SvgSet extends Object(_utils_reflection__WEBPACK_IMPORTED_MODULE_3__["mix"
8459
8520
  "use strict";
8460
8521
  __webpack_require__.r(__webpack_exports__);
8461
8522
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return Svg; });
8462
- /* harmony import */ var _base_CrudSetItemBase__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(17);
8523
+ /* harmony import */ var _base_CrudSetItemBase__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(14);
8463
8524
  /*
8464
8525
  * BSD 3-Clause License
8465
8526
  *
@@ -8508,7 +8569,7 @@ __webpack_require__.r(__webpack_exports__);
8508
8569
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return Tag; });
8509
8570
  /* harmony import */ var _traits_OwnableResource__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9);
8510
8571
  /* harmony import */ var _utils_reflection__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1);
8511
- /* harmony import */ var _base_CrudSetItemBase__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(17);
8572
+ /* harmony import */ var _base_CrudSetItemBase__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(14);
8512
8573
  /*
8513
8574
  * BSD 3-Clause License
8514
8575
  *
@@ -8568,7 +8629,7 @@ class Tag extends Object(_utils_reflection__WEBPACK_IMPORTED_MODULE_1__["mix"])(
8568
8629
  __webpack_require__.r(__webpack_exports__);
8569
8630
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return User; });
8570
8631
  /* harmony import */ var _proxy_OwnedResourceProxy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(12);
8571
- /* harmony import */ var _proxy_ResourceProxy__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(14);
8632
+ /* harmony import */ var _proxy_ResourceProxy__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(15);
8572
8633
  /* harmony import */ var _base_CrudBase__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(2);
8573
8634
  /* harmony import */ var _Color__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(36);
8574
8635
  /* harmony import */ var _Dimension__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(38);
@@ -8931,16 +8992,16 @@ var OwnableResource = __webpack_require__(9);
8931
8992
  var reflection = __webpack_require__(1);
8932
8993
 
8933
8994
  // EXTERNAL MODULE: ./src/resources/base/CrudSetBase.js
8934
- var CrudSetBase = __webpack_require__(16);
8995
+ var CrudSetBase = __webpack_require__(17);
8935
8996
 
8936
8997
  // EXTERNAL MODULE: ./src/resources/Mapstyle.js
8937
8998
  var Mapstyle = __webpack_require__(44);
8938
8999
 
8939
9000
  // EXTERNAL MODULE: ./src/proxy/ResourceProxy.js
8940
- var ResourceProxy = __webpack_require__(14);
9001
+ var ResourceProxy = __webpack_require__(15);
8941
9002
 
8942
9003
  // EXTERNAL MODULE: ./src/resources/base/CrudSetItemBase.js
8943
- var CrudSetItemBase = __webpack_require__(17);
9004
+ var CrudSetItemBase = __webpack_require__(14);
8944
9005
 
8945
9006
  // CONCATENATED MODULE: ./src/resources/MapstyleSetColor.js
8946
9007
  /*
@@ -9979,7 +10040,7 @@ __webpack_require__.r(__webpack_exports__);
9979
10040
  /* harmony import */ var events__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(53);
9980
10041
  /* harmony import */ var events__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(events__WEBPACK_IMPORTED_MODULE_1__);
9981
10042
  /* harmony import */ var _Mapcreator__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(26);
9982
- /* harmony import */ var _RequestParameters__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(3);
10043
+ /* harmony import */ var _RequestParameters__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(4);
9983
10044
  /* harmony import */ var _resources_base_ResourceBase__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(6);
9984
10045
  /* harmony import */ var _utils_reflection__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(1);
9985
10046
  /* harmony import */ var _utils_helpers__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(0);
@@ -10657,7 +10718,7 @@ __webpack_require__.r(__webpack_exports__);
10657
10718
  /* harmony import */ var _JobResult__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(33);
10658
10719
  /* harmony import */ var _JobShare__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(21);
10659
10720
  /* harmony import */ var _Layer__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(22);
10660
- /* harmony import */ var _RequestParameters__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(3);
10721
+ /* harmony import */ var _RequestParameters__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(4);
10661
10722
  /* harmony import */ var _utils_requests__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(5);
10662
10723
  /* harmony import */ var _enums__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(8);
10663
10724
  /* harmony import */ var _utils_helpers__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(0);
@@ -11088,7 +11149,7 @@ __webpack_require__.r(__webpack_exports__);
11088
11149
  /* harmony import */ var _OwnedResourceProxy__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(12);
11089
11150
  /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "OwnedResourceProxy", function() { return _OwnedResourceProxy__WEBPACK_IMPORTED_MODULE_2__["default"]; });
11090
11151
 
11091
- /* harmony import */ var _ResourceProxy__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(14);
11152
+ /* harmony import */ var _ResourceProxy__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(15);
11092
11153
  /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ResourceProxy", function() { return _ResourceProxy__WEBPACK_IMPORTED_MODULE_3__["default"]; });
11093
11154
 
11094
11155
  /* harmony import */ var _SimpleResourceProxy__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(18);
@@ -11474,7 +11535,7 @@ class Injectable extends _Trait__WEBPACK_IMPORTED_MODULE_2__["default"] {
11474
11535
  return this._proxyResourceList(value);
11475
11536
  });
11476
11537
  } else {
11477
- const ResourceProxy = __webpack_require__(14).default;
11538
+ const ResourceProxy = __webpack_require__(15).default;
11478
11539
 
11479
11540
  this._inject(name, function () {
11480
11541
  return new ResourceProxy(this, value);
@@ -11511,7 +11572,7 @@ __webpack_require__.r(__webpack_exports__);
11511
11572
  /* harmony import */ var _traits_OwnableResource__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9);
11512
11573
  /* harmony import */ var _utils_reflection__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1);
11513
11574
  /* harmony import */ var _Layer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(22);
11514
- /* harmony import */ var _base_CrudSetBase__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(16);
11575
+ /* harmony import */ var _base_CrudSetBase__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(17);
11515
11576
  /* harmony import */ var _proxy__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(67);
11516
11577
  /*
11517
11578
  * BSD 3-Clause License
@@ -11550,7 +11611,7 @@ __webpack_require__.r(__webpack_exports__);
11550
11611
 
11551
11612
 
11552
11613
  /**
11553
- * Layer
11614
+ * LayerGroup
11554
11615
  * @extends CrudBase
11555
11616
  * @mixes OwnableResource
11556
11617
  * @mixes HandlesImages
@@ -12047,7 +12108,7 @@ __webpack_require__.d(__webpack_exports__, "version", function() { return /* bin
12047
12108
  var Mapcreator = __webpack_require__(26);
12048
12109
 
12049
12110
  // EXTERNAL MODULE: ./src/RequestParameters.js
12050
- var RequestParameters = __webpack_require__(3);
12111
+ var RequestParameters = __webpack_require__(4);
12051
12112
 
12052
12113
  // EXTERNAL MODULE: ./src/storage/StorageManager.js + 3 modules
12053
12114
  var StorageManager = __webpack_require__(20);
@@ -12062,7 +12123,7 @@ var enums = __webpack_require__(8);
12062
12123
  var OAuth = __webpack_require__(25);
12063
12124
 
12064
12125
  // EXTERNAL MODULE: ./src/oauth/OAuthToken.js
12065
- var OAuthToken = __webpack_require__(15);
12126
+ var OAuthToken = __webpack_require__(16);
12066
12127
 
12067
12128
  // EXTERNAL MODULE: ./src/oauth/StateContainer.js + 1 modules
12068
12129
  var StateContainer = __webpack_require__(58);
@@ -12614,8 +12675,8 @@ var ValidationError = __webpack_require__(35);
12614
12675
  // EXTERNAL MODULE: ./src/errors/StaticClassError.js
12615
12676
  var StaticClassError = __webpack_require__(34);
12616
12677
 
12617
- // EXTERNAL MODULE: ./src/resources/index.js + 9 modules
12618
- var resources = __webpack_require__(4);
12678
+ // EXTERNAL MODULE: ./src/resources/index.js + 10 modules
12679
+ var resources = __webpack_require__(3);
12619
12680
 
12620
12681
  // EXTERNAL MODULE: ./src/ResourceLister.js
12621
12682
  var ResourceLister = __webpack_require__(59);
@@ -12714,7 +12775,7 @@ var proxy = __webpack_require__(67);
12714
12775
  * @private
12715
12776
  */
12716
12777
 
12717
- const version = "v2.8.0";
12778
+ const version = "v2.9.0";
12718
12779
 
12719
12780
  /***/ })
12720
12781
  /******/ ]);