@mapcreator/api 3.3.1 → 5.0.0-alpha.12
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/LICENSE +1 -1
- package/README.md +82 -59
- package/cjs/api/apiCommon.d.ts +7 -0
- package/cjs/api/apiCommon.d.ts.map +1 -0
- package/cjs/api/apiCommon.js +32 -0
- package/cjs/api/apiCommon.js.map +1 -0
- package/cjs/api/choropleth.d.ts +206 -0
- package/cjs/api/choropleth.d.ts.map +1 -0
- package/cjs/api/choropleth.js +40 -0
- package/cjs/api/choropleth.js.map +1 -0
- package/cjs/api/color.d.ts +16 -0
- package/cjs/api/color.d.ts.map +1 -0
- package/cjs/api/color.js +8 -0
- package/cjs/api/color.js.map +1 -0
- package/cjs/api/dimension.d.ts +25 -0
- package/cjs/api/dimension.d.ts.map +1 -0
- package/cjs/api/dimension.js +19 -0
- package/cjs/api/dimension.js.map +1 -0
- package/cjs/api/dimensionSet.d.ts +15 -0
- package/cjs/api/dimensionSet.d.ts.map +1 -0
- package/cjs/api/dimensionSet.js +7 -0
- package/cjs/api/dimensionSet.js.map +1 -0
- package/cjs/api/feature.d.ts +16 -0
- package/cjs/api/feature.d.ts.map +1 -0
- package/cjs/api/feature.js +8 -0
- package/cjs/api/feature.js.map +1 -0
- package/cjs/api/font.d.ts +22 -0
- package/cjs/api/font.d.ts.map +1 -0
- package/cjs/api/font.js +10 -0
- package/cjs/api/font.js.map +1 -0
- package/cjs/api/fontFamily.d.ts +17 -0
- package/cjs/api/fontFamily.d.ts.map +1 -0
- package/cjs/api/fontFamily.js +17 -0
- package/cjs/api/fontFamily.js.map +1 -0
- package/cjs/api/highlight.d.ts +41 -0
- package/cjs/api/highlight.d.ts.map +1 -0
- package/cjs/api/highlight.js +17 -0
- package/cjs/api/highlight.js.map +1 -0
- package/cjs/api/job.d.ts +40 -0
- package/cjs/api/job.d.ts.map +1 -0
- package/cjs/api/job.js +70 -0
- package/cjs/api/job.js.map +1 -0
- package/cjs/api/jobResult.d.ts +29 -0
- package/cjs/api/jobResult.d.ts.map +1 -0
- package/cjs/api/jobResult.js +35 -0
- package/cjs/api/jobResult.js.map +1 -0
- package/cjs/api/jobRevision.d.ts +43 -0
- package/cjs/api/jobRevision.d.ts.map +1 -0
- package/cjs/api/jobRevision.js +72 -0
- package/cjs/api/jobRevision.js.map +1 -0
- package/cjs/api/jobShare.d.ts +26 -0
- package/cjs/api/jobShare.d.ts.map +1 -0
- package/cjs/api/jobShare.js +10 -0
- package/cjs/api/jobShare.js.map +1 -0
- package/cjs/api/jobType.d.ts +17 -0
- package/cjs/api/jobType.d.ts.map +1 -0
- package/cjs/api/jobType.js +11 -0
- package/cjs/api/jobType.js.map +1 -0
- package/cjs/api/language.d.ts +17 -0
- package/cjs/api/language.d.ts.map +1 -0
- package/cjs/api/language.js +3 -0
- package/cjs/api/language.js.map +1 -0
- package/cjs/api/layer.d.ts +24 -0
- package/cjs/api/layer.d.ts.map +1 -0
- package/cjs/api/layer.js +14 -0
- package/cjs/api/layer.js.map +1 -0
- package/cjs/api/layerFaq.d.ts +27 -0
- package/cjs/api/layerFaq.d.ts.map +1 -0
- package/cjs/api/layerFaq.js +16 -0
- package/cjs/api/layerFaq.js.map +1 -0
- package/cjs/api/layerGroup.d.ts +16 -0
- package/cjs/api/layerGroup.d.ts.map +1 -0
- package/cjs/api/layerGroup.js +37 -0
- package/cjs/api/layerGroup.js.map +1 -0
- package/cjs/api/mapstyleSet.d.ts +29 -0
- package/cjs/api/mapstyleSet.d.ts.map +1 -0
- package/cjs/api/mapstyleSet.js +19 -0
- package/cjs/api/mapstyleSet.js.map +1 -0
- package/cjs/api/message.d.ts +32 -0
- package/cjs/api/message.d.ts.map +1 -0
- package/cjs/api/message.js +37 -0
- package/cjs/api/message.js.map +1 -0
- package/cjs/api/organisation.d.ts +38 -0
- package/cjs/api/organisation.d.ts.map +1 -0
- package/cjs/api/organisation.js +43 -0
- package/cjs/api/organisation.js.map +1 -0
- package/cjs/api/resources.d.ts +54 -0
- package/cjs/api/resources.d.ts.map +1 -0
- package/cjs/api/resources.js +55 -0
- package/cjs/api/resources.js.map +1 -0
- package/cjs/api/svg.d.ts +21 -0
- package/cjs/api/svg.d.ts.map +1 -0
- package/cjs/api/svg.js +15 -0
- package/cjs/api/svg.js.map +1 -0
- package/cjs/api/svgSet.d.ts +22 -0
- package/cjs/api/svgSet.d.ts.map +1 -0
- package/cjs/api/svgSet.js +25 -0
- package/cjs/api/svgSet.js.map +1 -0
- package/cjs/api/user.d.ts +100 -0
- package/cjs/api/user.d.ts.map +1 -0
- package/cjs/api/user.js +126 -0
- package/cjs/api/user.js.map +1 -0
- package/cjs/index.d.ts +26 -0
- package/cjs/index.d.ts.map +1 -0
- package/cjs/index.js +51 -0
- package/cjs/index.js.map +1 -0
- package/cjs/oauth.d.ts +20 -0
- package/cjs/oauth.d.ts.map +1 -0
- package/cjs/oauth.js +229 -0
- package/cjs/oauth.js.map +1 -0
- package/cjs/utils.d.ts +72 -0
- package/cjs/utils.d.ts.map +1 -0
- package/cjs/utils.js +220 -0
- package/cjs/utils.js.map +1 -0
- package/esm/api/apiCommon.d.ts +7 -0
- package/esm/api/apiCommon.d.ts.map +1 -0
- package/esm/api/apiCommon.js +28 -0
- package/esm/api/apiCommon.js.map +1 -0
- package/esm/api/choropleth.d.ts +206 -0
- package/esm/api/choropleth.d.ts.map +1 -0
- package/esm/api/choropleth.js +32 -0
- package/esm/api/choropleth.js.map +1 -0
- package/esm/api/color.d.ts +16 -0
- package/esm/api/color.d.ts.map +1 -0
- package/esm/api/color.js +5 -0
- package/esm/api/color.js.map +1 -0
- package/esm/api/dimension.d.ts +25 -0
- package/esm/api/dimension.d.ts.map +1 -0
- package/esm/api/dimension.js +16 -0
- package/esm/api/dimension.js.map +1 -0
- package/esm/api/dimensionSet.d.ts +15 -0
- package/esm/api/dimensionSet.d.ts.map +1 -0
- package/esm/api/dimensionSet.js +4 -0
- package/esm/api/dimensionSet.js.map +1 -0
- package/esm/api/feature.d.ts +16 -0
- package/esm/api/feature.d.ts.map +1 -0
- package/esm/api/feature.js +5 -0
- package/esm/api/feature.js.map +1 -0
- package/esm/api/font.d.ts +22 -0
- package/esm/api/font.d.ts.map +1 -0
- package/esm/api/font.js +7 -0
- package/esm/api/font.js.map +1 -0
- package/esm/api/fontFamily.d.ts +17 -0
- package/esm/api/fontFamily.d.ts.map +1 -0
- package/esm/api/fontFamily.js +13 -0
- package/esm/api/fontFamily.js.map +1 -0
- package/esm/api/highlight.d.ts +41 -0
- package/esm/api/highlight.d.ts.map +1 -0
- package/esm/api/highlight.js +12 -0
- package/esm/api/highlight.js.map +1 -0
- package/esm/api/job.d.ts +40 -0
- package/esm/api/job.d.ts.map +1 -0
- package/esm/api/job.js +58 -0
- package/esm/api/job.js.map +1 -0
- package/esm/api/jobResult.d.ts +29 -0
- package/esm/api/jobResult.d.ts.map +1 -0
- package/esm/api/jobResult.js +30 -0
- package/esm/api/jobResult.js.map +1 -0
- package/esm/api/jobRevision.d.ts +43 -0
- package/esm/api/jobRevision.d.ts.map +1 -0
- package/esm/api/jobRevision.js +63 -0
- package/esm/api/jobRevision.js.map +1 -0
- package/esm/api/jobShare.d.ts +26 -0
- package/esm/api/jobShare.d.ts.map +1 -0
- package/esm/api/jobShare.js +6 -0
- package/esm/api/jobShare.js.map +1 -0
- package/esm/api/jobType.d.ts +17 -0
- package/esm/api/jobType.d.ts.map +1 -0
- package/esm/api/jobType.js +8 -0
- package/esm/api/jobType.js.map +1 -0
- package/esm/api/language.d.ts +17 -0
- package/esm/api/language.d.ts.map +1 -0
- package/esm/api/language.js +2 -0
- package/esm/api/language.js.map +1 -0
- package/esm/api/layer.d.ts +24 -0
- package/esm/api/layer.d.ts.map +1 -0
- package/esm/api/layer.js +11 -0
- package/esm/api/layer.js.map +1 -0
- package/esm/api/layerFaq.d.ts +27 -0
- package/esm/api/layerFaq.d.ts.map +1 -0
- package/esm/api/layerFaq.js +12 -0
- package/esm/api/layerFaq.js.map +1 -0
- package/esm/api/layerGroup.d.ts +16 -0
- package/esm/api/layerGroup.d.ts.map +1 -0
- package/esm/api/layerGroup.js +33 -0
- package/esm/api/layerGroup.js.map +1 -0
- package/esm/api/mapstyleSet.d.ts +29 -0
- package/esm/api/mapstyleSet.d.ts.map +1 -0
- package/esm/api/mapstyleSet.js +16 -0
- package/esm/api/mapstyleSet.js.map +1 -0
- package/esm/api/message.d.ts +32 -0
- package/esm/api/message.d.ts.map +1 -0
- package/esm/api/message.js +32 -0
- package/esm/api/message.js.map +1 -0
- package/esm/api/organisation.d.ts +38 -0
- package/esm/api/organisation.d.ts.map +1 -0
- package/esm/api/organisation.js +37 -0
- package/esm/api/organisation.js.map +1 -0
- package/esm/api/resources.d.ts +54 -0
- package/esm/api/resources.d.ts.map +1 -0
- package/esm/api/resources.js +48 -0
- package/esm/api/resources.js.map +1 -0
- package/esm/api/svg.d.ts +21 -0
- package/esm/api/svg.d.ts.map +1 -0
- package/esm/api/svg.js +11 -0
- package/esm/api/svg.js.map +1 -0
- package/esm/api/svgSet.d.ts +22 -0
- package/esm/api/svgSet.d.ts.map +1 -0
- package/esm/api/svgSet.js +21 -0
- package/esm/api/svgSet.js.map +1 -0
- package/esm/api/user.d.ts +100 -0
- package/esm/api/user.d.ts.map +1 -0
- package/esm/api/user.js +110 -0
- package/esm/api/user.js.map +1 -0
- package/esm/index.d.ts +26 -0
- package/esm/index.d.ts.map +1 -0
- package/esm/index.js +26 -0
- package/esm/index.js.map +1 -0
- package/esm/oauth.d.ts +20 -0
- package/esm/oauth.d.ts.map +1 -0
- package/esm/oauth.js +222 -0
- package/esm/oauth.js.map +1 -0
- package/esm/utils.d.ts +72 -0
- package/esm/utils.d.ts.map +1 -0
- package/esm/utils.js +206 -0
- package/esm/utils.js.map +1 -0
- package/package.json +66 -137
- package/src/README.md +126 -0
- package/src/api/apiCommon.ts +70 -0
- package/src/api/choropleth.ts +318 -0
- package/src/api/color.ts +22 -0
- package/src/api/dimension.ts +54 -0
- package/src/api/dimensionSet.ts +20 -0
- package/src/api/feature.ts +22 -0
- package/src/api/font.ts +30 -0
- package/src/api/fontFamily.ts +43 -0
- package/src/api/highlight.ts +74 -0
- package/src/api/job.ts +127 -0
- package/src/api/jobResult.ts +81 -0
- package/src/api/jobRevision.ts +170 -0
- package/src/api/jobShare.ts +35 -0
- package/src/api/jobType.ts +26 -0
- package/src/api/language.ts +19 -0
- package/src/api/layer.ts +36 -0
- package/src/api/layerFaq.ts +53 -0
- package/src/api/layerGroup.ts +69 -0
- package/src/api/mapstyleSet.ts +46 -0
- package/src/api/message.ts +80 -0
- package/src/api/organisation.ts +94 -0
- package/src/api/resources.ts +134 -0
- package/src/api/svg.ts +33 -0
- package/src/api/svgSet.ts +56 -0
- package/src/api/user.ts +280 -0
- package/src/index.ts +42 -0
- package/src/oauth.ts +292 -0
- package/src/utils.ts +342 -0
- package/dist/ImageHandler.d.ts +0 -56
- package/dist/Mapcreator.d.ts +0 -338
- package/dist/PaginatedResourceListing.d.ts +0 -156
- package/dist/RequestParameters.d.ts +0 -241
- package/dist/ResourceLister.d.ts +0 -155
- package/dist/bundle.browser.js +0 -14590
- package/dist/bundle.browser.min.js +0 -3
- package/dist/bundle.browser.min.js.LICENSE.txt +0 -74
- package/dist/bundle.js +0 -12755
- package/dist/bundle.min.js +0 -3
- package/dist/bundle.min.js.LICENSE.txt +0 -44
- package/dist/enums/DeletedState.d.ts +0 -16
- package/dist/enums/Enum.d.ts +0 -40
- package/dist/enums/JobShareVisibility.d.ts +0 -15
- package/dist/enums/ResultStatus.d.ts +0 -17
- package/dist/enums/index.d.ts +0 -5
- package/dist/errors/AbstractError.d.ts +0 -26
- package/dist/errors/ApiError.d.ts +0 -65
- package/dist/errors/GeoError.d.ts +0 -6
- package/dist/errors/NodeError.d.ts +0 -6
- package/dist/errors/OAuthError.d.ts +0 -17
- package/dist/errors/StaticClassError.d.ts +0 -7
- package/dist/errors/ValidationError.d.ts +0 -125
- package/dist/errors/index.d.ts +0 -8
- package/dist/index.d.ts +0 -27
- package/dist/oauth/DummyFlow.d.ts +0 -19
- package/dist/oauth/ImplicitFlow.d.ts +0 -68
- package/dist/oauth/ImplicitFlowPopup.d.ts +0 -25
- package/dist/oauth/OAuth.d.ts +0 -50
- package/dist/oauth/OAuthToken.d.ts +0 -67
- package/dist/oauth/PasswordFlow.d.ts +0 -56
- package/dist/oauth/StateContainer.d.ts +0 -36
- package/dist/proxy/GeoResourceProxy.d.ts +0 -69
- package/dist/proxy/OrganisationProxy.d.ts +0 -62
- package/dist/proxy/OwnedResourceProxy.d.ts +0 -60
- package/dist/proxy/ResourceProxy.d.ts +0 -32
- package/dist/proxy/SimpleResourceProxy.d.ts +0 -76
- package/dist/proxy/index.d.ts +0 -6
- package/dist/resources/Choropleth.d.ts +0 -20
- package/dist/resources/Color.d.ts +0 -9
- package/dist/resources/Contract.d.ts +0 -7
- package/dist/resources/Dimension.d.ts +0 -7
- package/dist/resources/DimensionSet.d.ts +0 -11
- package/dist/resources/Domain.d.ts +0 -7
- package/dist/resources/Faq.d.ts +0 -7
- package/dist/resources/Feature.d.ts +0 -9
- package/dist/resources/Font.d.ts +0 -4
- package/dist/resources/FontFamily.d.ts +0 -11
- package/dist/resources/Highlight.d.ts +0 -4
- package/dist/resources/InsetMap.d.ts +0 -10
- package/dist/resources/Job.d.ts +0 -56
- package/dist/resources/JobResult.d.ts +0 -76
- package/dist/resources/JobRevision.d.ts +0 -64
- package/dist/resources/JobShare.d.ts +0 -15
- package/dist/resources/JobType.d.ts +0 -9
- package/dist/resources/Language.d.ts +0 -4
- package/dist/resources/Layer.d.ts +0 -10
- package/dist/resources/LayerFaq.d.ts +0 -8
- package/dist/resources/LayerGroup.d.ts +0 -14
- package/dist/resources/Mapstyle.d.ts +0 -8
- package/dist/resources/MapstyleSet.d.ts +0 -13
- package/dist/resources/MapstyleSetColor.d.ts +0 -8
- package/dist/resources/Message.d.ts +0 -7
- package/dist/resources/MessageVariant.d.ts +0 -4
- package/dist/resources/Notification.d.ts +0 -4
- package/dist/resources/Organisation.d.ts +0 -99
- package/dist/resources/OrganisationNote.d.ts +0 -17
- package/dist/resources/Permission.d.ts +0 -4
- package/dist/resources/ProductTour.d.ts +0 -10
- package/dist/resources/ProductTourStep.d.ts +0 -7
- package/dist/resources/Role.d.ts +0 -14
- package/dist/resources/Svg.d.ts +0 -4
- package/dist/resources/SvgSet.d.ts +0 -11
- package/dist/resources/Tag.d.ts +0 -9
- package/dist/resources/TagType.d.ts +0 -13
- package/dist/resources/User.d.ts +0 -119
- package/dist/resources/VectorChoropleth.d.ts +0 -4
- package/dist/resources/VectorHighlight.d.ts +0 -4
- package/dist/resources/base/CrudBase.d.ts +0 -66
- package/dist/resources/base/CrudBase.d.ts.map +0 -1
- package/dist/resources/base/CrudSetBase.d.ts +0 -27
- package/dist/resources/base/CrudSetBase.d.ts.map +0 -1
- package/dist/resources/base/CrudSetItemBase.d.ts +0 -19
- package/dist/resources/base/CrudSetItemBase.d.ts.map +0 -1
- package/dist/resources/base/DownloadedResource.d.ts +0 -72
- package/dist/resources/base/DownloadedResource.d.ts.map +0 -1
- package/dist/resources/base/ResourceBase.d.ts +0 -164
- package/dist/resources/base/ResourceBase.d.ts.map +0 -1
- package/dist/resources/index.d.ts +0 -47
- package/dist/storage/CookiesDriver.d.ts +0 -37
- package/dist/storage/DataStoreContract.d.ts +0 -46
- package/dist/storage/DummyDriver.d.ts +0 -15
- package/dist/storage/FileDriver.d.ts +0 -54
- package/dist/storage/LocalStorageDriver.d.ts +0 -13
- package/dist/storage/StorageManager.d.ts +0 -46
- package/dist/traits/HandlesImages.d.ts +0 -15
- package/dist/traits/Injectable.d.ts +0 -60
- package/dist/traits/OwnableResource.d.ts +0 -18
- package/dist/traits/Trait.d.ts +0 -12
- package/dist/utils/Logger.d.ts +0 -55
- package/dist/utils/Singleton.d.ts +0 -9
- package/dist/utils/StaticClass.d.ts +0 -7
- package/dist/utils/Unobservable.d.ts +0 -13
- package/dist/utils/base64.d.ts +0 -12
- package/dist/utils/geo.d.ts +0 -74
- package/dist/utils/hash.d.ts +0 -15
- package/dist/utils/helpers.d.ts +0 -47
- package/dist/utils/node.d.ts +0 -15
- package/dist/utils/reflection.d.ts +0 -43
- package/dist/utils/requests.d.ts +0 -24
- package/dist/utils/uuid.d.ts +0 -19
- package/manual/assets/maps4news.svg +0 -23
- package/manual/building.md +0 -19
- package/manual/css/hide_import.css +0 -3
- package/manual/css/sidebar_fix.css +0 -3
- package/manual/examples.authentication.md +0 -205
- package/manual/examples.md +0 -153
- package/manual/installation.md +0 -33
- package/manual/js/sandbox.js +0 -26
- package/src/ImageHandler.js +0 -134
- package/src/Mapcreator.js +0 -703
- package/src/PaginatedResourceListing.js +0 -300
- package/src/RequestParameters.js +0 -711
- package/src/ResourceLister.js +0 -368
- package/src/enums/DeletedState.js +0 -49
- package/src/enums/Enum.js +0 -130
- package/src/enums/JobShareVisibility.js +0 -43
- package/src/enums/ResultStatus.js +0 -49
- package/src/enums/index.js +0 -36
- package/src/errors/AbstractError.js +0 -70
- package/src/errors/ApiError.js +0 -139
- package/src/errors/GeoError.js +0 -36
- package/src/errors/NodeError.js +0 -36
- package/src/errors/OAuthError.js +0 -71
- package/src/errors/StaticClassError.js +0 -37
- package/src/errors/ValidationError.js +0 -164
- package/src/errors/index.js +0 -39
- package/src/index.js +0 -75
- package/src/oauth/DummyFlow.js +0 -63
- package/src/oauth/ImplicitFlow.js +0 -226
- package/src/oauth/ImplicitFlowPopup.js +0 -122
- package/src/oauth/OAuth.js +0 -131
- package/src/oauth/OAuthToken.js +0 -175
- package/src/oauth/PasswordFlow.js +0 -164
- package/src/oauth/StateContainer.js +0 -111
- package/src/proxy/GeoResourceProxy.js +0 -137
- package/src/proxy/OrganisationProxy.js +0 -149
- package/src/proxy/OwnedResourceProxy.js +0 -148
- package/src/proxy/ResourceProxy.js +0 -101
- package/src/proxy/SimpleResourceProxy.js +0 -188
- package/src/proxy/index.js +0 -37
- package/src/resources/Choropleth.js +0 -66
- package/src/resources/Color.js +0 -46
- package/src/resources/Contract.js +0 -42
- package/src/resources/Dimension.js +0 -42
- package/src/resources/DimensionSet.js +0 -56
- package/src/resources/Domain.js +0 -42
- package/src/resources/Faq.js +0 -42
- package/src/resources/Feature.js +0 -47
- package/src/resources/Font.js +0 -43
- package/src/resources/FontFamily.js +0 -55
- package/src/resources/Highlight.js +0 -39
- package/src/resources/InsetMap.js +0 -49
- package/src/resources/Job.js +0 -160
- package/src/resources/JobResult.js +0 -184
- package/src/resources/JobRevision.js +0 -201
- package/src/resources/JobShare.js +0 -61
- package/src/resources/JobType.js +0 -50
- package/src/resources/Language.js +0 -51
- package/src/resources/Layer.js +0 -48
- package/src/resources/LayerFaq.js +0 -47
- package/src/resources/LayerGroup.js +0 -57
- package/src/resources/Mapstyle.js +0 -45
- package/src/resources/MapstyleSet.js +0 -65
- package/src/resources/MapstyleSetColor.js +0 -51
- package/src/resources/Message.js +0 -94
- package/src/resources/MessageVariant.js +0 -37
- package/src/resources/Notification.js +0 -39
- package/src/resources/Organisation.js +0 -233
- package/src/resources/OrganisationNote.js +0 -57
- package/src/resources/Permission.js +0 -39
- package/src/resources/ProductTour.js +0 -53
- package/src/resources/ProductTourStep.js +0 -48
- package/src/resources/Role.js +0 -58
- package/src/resources/Svg.js +0 -39
- package/src/resources/SvgSet.js +0 -55
- package/src/resources/Tag.js +0 -50
- package/src/resources/TagType.js +0 -56
- package/src/resources/User.js +0 -251
- package/src/resources/VectorChoropleth.js +0 -40
- package/src/resources/VectorHighlight.js +0 -40
- package/src/resources/base/CrudBase.js +0 -204
- package/src/resources/base/CrudSetBase.js +0 -83
- package/src/resources/base/CrudSetItemBase.js +0 -82
- package/src/resources/base/DownloadedResource.js +0 -165
- package/src/resources/base/ResourceBase.js +0 -484
- package/src/resources/index.js +0 -81
- package/src/storage/CookiesDriver.js +0 -136
- package/src/storage/DataStoreContract.js +0 -111
- package/src/storage/DummyDriver.js +0 -91
- package/src/storage/FileDriver.js +0 -174
- package/src/storage/LocalStorageDriver.js +0 -108
- package/src/storage/StorageManager.js +0 -109
- package/src/traits/HandlesImages.js +0 -50
- package/src/traits/Injectable.js +0 -221
- package/src/traits/OwnableResource.js +0 -56
- package/src/traits/Trait.js +0 -43
- package/src/utils/Logger.js +0 -137
- package/src/utils/Singleton.js +0 -49
- package/src/utils/StaticClass.js +0 -43
- package/src/utils/Unobservable.js +0 -47
- package/src/utils/base64.js +0 -93
- package/src/utils/geo.js +0 -139
- package/src/utils/hash.js +0 -72
- package/src/utils/helpers.js +0 -178
- package/src/utils/node.js +0 -55
- package/src/utils/reflection.js +0 -170
- package/src/utils/requests.js +0 -120
- package/src/utils/uuid.js +0 -68
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @private
|
|
3
|
-
*/
|
|
4
|
-
export default class FileDriver extends DataStoreContract {
|
|
5
|
-
/**
|
|
6
|
-
* @param {String} path - File storage path
|
|
7
|
-
* @inheritDoc
|
|
8
|
-
*/
|
|
9
|
-
constructor(path?: string);
|
|
10
|
-
_path: string;
|
|
11
|
-
/**
|
|
12
|
-
* File storage path
|
|
13
|
-
* @param {String} value - path
|
|
14
|
-
*/
|
|
15
|
-
set path(arg: string);
|
|
16
|
-
/**
|
|
17
|
-
* File storage path
|
|
18
|
-
* @returns {String} - path
|
|
19
|
-
*/
|
|
20
|
-
get path(): string;
|
|
21
|
-
/**
|
|
22
|
-
* @inheritDoc
|
|
23
|
-
*/
|
|
24
|
-
set(name: any, value: any): void;
|
|
25
|
-
/**
|
|
26
|
-
* @inheritDoc
|
|
27
|
-
*/
|
|
28
|
-
get(name: any): any;
|
|
29
|
-
/**
|
|
30
|
-
* @inheritDoc
|
|
31
|
-
*/
|
|
32
|
-
remove(name: any): void;
|
|
33
|
-
/**
|
|
34
|
-
* Read file and parse
|
|
35
|
-
* @returns {Object<String, String>} - Key, value object
|
|
36
|
-
* @private
|
|
37
|
-
*/
|
|
38
|
-
private _read;
|
|
39
|
-
/**
|
|
40
|
-
* Write data to file
|
|
41
|
-
* @param {Object<String, String>} obj - Key, value object
|
|
42
|
-
* @private
|
|
43
|
-
*/
|
|
44
|
-
private _write;
|
|
45
|
-
/**
|
|
46
|
-
* Get fs instance
|
|
47
|
-
* @returns {fs} - fs instance
|
|
48
|
-
* @private
|
|
49
|
-
*/
|
|
50
|
-
private get _fs();
|
|
51
|
-
__fs: any;
|
|
52
|
-
}
|
|
53
|
-
import DataStoreContract from "./DataStoreContract";
|
|
54
|
-
//# sourceMappingURL=FileDriver.d.ts.map
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @private
|
|
3
|
-
*/
|
|
4
|
-
export default class LocalStorageDriver extends DataStoreContract {
|
|
5
|
-
/**
|
|
6
|
-
* LocalStorage name prefix
|
|
7
|
-
* @returns {String} - Prefix
|
|
8
|
-
* @private
|
|
9
|
-
*/
|
|
10
|
-
private static get _prefix();
|
|
11
|
-
}
|
|
12
|
-
import DataStoreContract from "./DataStoreContract";
|
|
13
|
-
//# sourceMappingURL=LocalStorageDriver.d.ts.map
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @private
|
|
3
|
-
*/
|
|
4
|
-
export default class StorageManager extends StaticClass {
|
|
5
|
-
/**
|
|
6
|
-
* Available storage drivers
|
|
7
|
-
* @returns {Array.<function>} - Available storage drivers
|
|
8
|
-
*/
|
|
9
|
-
static get available(): Function[];
|
|
10
|
-
/**
|
|
11
|
-
* Get LocalStorageDriver instance
|
|
12
|
-
* @returns {LocalStorageDriver} - Instance
|
|
13
|
-
*/
|
|
14
|
-
static get localStorage(): LocalStorageDriver;
|
|
15
|
-
/**
|
|
16
|
-
* Get CookiesDriver instance
|
|
17
|
-
* @returns {CookiesDriver} - Instance
|
|
18
|
-
*/
|
|
19
|
-
static get cookies(): CookiesDriver;
|
|
20
|
-
/**
|
|
21
|
-
* Get FileDriver instance
|
|
22
|
-
* @returns {FileDriver} - Instance
|
|
23
|
-
*/
|
|
24
|
-
static get file(): FileDriver;
|
|
25
|
-
/**
|
|
26
|
-
* Get DummyDriver instance
|
|
27
|
-
* @returns {DummyDriver} - Instance
|
|
28
|
-
*/
|
|
29
|
-
static get dummy(): DummyDriver;
|
|
30
|
-
/**
|
|
31
|
-
* Returns the best available storage driver. For a secure driver use {@link StorageManager#secure}
|
|
32
|
-
* @returns {DataStoreContract} - Best available storage driver
|
|
33
|
-
*/
|
|
34
|
-
static get best(): DataStoreContract;
|
|
35
|
-
/**
|
|
36
|
-
* Returns the a secure storage driver
|
|
37
|
-
* @returns {DataStoreContract} - Secure storage driver
|
|
38
|
-
*/
|
|
39
|
-
static get secure(): DataStoreContract;
|
|
40
|
-
}
|
|
41
|
-
import StaticClass from "../utils/StaticClass";
|
|
42
|
-
import LocalStorageDriver from "./LocalStorageDriver";
|
|
43
|
-
import CookiesDriver from "./CookiesDriver";
|
|
44
|
-
import FileDriver from "./FileDriver";
|
|
45
|
-
import DummyDriver from "./DummyDriver";
|
|
46
|
-
//# sourceMappingURL=StorageManager.d.ts.map
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Adds the imageHandler to a resource
|
|
3
|
-
*
|
|
4
|
-
* @mixin
|
|
5
|
-
*/
|
|
6
|
-
export default class HandlesImages extends Trait {
|
|
7
|
-
/**
|
|
8
|
-
* Handler for item image management
|
|
9
|
-
* @returns {ImageHandler} - Image handler
|
|
10
|
-
*/
|
|
11
|
-
get imageHandler(): ImageHandler;
|
|
12
|
-
}
|
|
13
|
-
import Trait from "./Trait";
|
|
14
|
-
import ImageHandler from "../ImageHandler";
|
|
15
|
-
//# sourceMappingURL=HandlesImages.d.ts.map
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Adds the possibility to inject proxies/methods
|
|
3
|
-
*
|
|
4
|
-
* @mixin
|
|
5
|
-
*/
|
|
6
|
-
export default class Injectable extends Trait {
|
|
7
|
-
/**
|
|
8
|
-
* Inject a proxy property into future instances
|
|
9
|
-
*
|
|
10
|
-
* @param {string|object} name - Name of the property
|
|
11
|
-
* @param {function?} value - Either a resource or a function that returns a proxy
|
|
12
|
-
*
|
|
13
|
-
* @example
|
|
14
|
-
*
|
|
15
|
-
* Mapcreator.injectProxy({Domain});
|
|
16
|
-
*
|
|
17
|
-
* // After creating new api instance
|
|
18
|
-
*
|
|
19
|
-
* api.domains // returns proxy
|
|
20
|
-
*/
|
|
21
|
-
static injectProxy(name: string | object, value: Function | null): void;
|
|
22
|
-
/**
|
|
23
|
-
* Inject a property into future instances
|
|
24
|
-
*
|
|
25
|
-
* @param {string|object} name - Name of the property
|
|
26
|
-
* @param {function?} value - Any function that does not return a proxy
|
|
27
|
-
*
|
|
28
|
-
*/
|
|
29
|
-
static inject(name: string | object, value: Function | null): void;
|
|
30
|
-
/**
|
|
31
|
-
* Prevent a property from being injected
|
|
32
|
-
* @param {string} name - Name of the property
|
|
33
|
-
*/
|
|
34
|
-
static uninject(name: string): void;
|
|
35
|
-
/**
|
|
36
|
-
* Inject a proxy
|
|
37
|
-
* @param {string} name - Name of the property
|
|
38
|
-
* @param {function?} value - Either a resource or a function that returns a proxy
|
|
39
|
-
*/
|
|
40
|
-
injectProxy(name: string, value: Function | null): void;
|
|
41
|
-
/**
|
|
42
|
-
* Inject a property into the instance
|
|
43
|
-
*
|
|
44
|
-
* @param {string|object} name - Name of the property
|
|
45
|
-
* @param {function?} value - Any function that does not return a proxy
|
|
46
|
-
*
|
|
47
|
-
*/
|
|
48
|
-
inject(name: string | object, value: Function | null): void;
|
|
49
|
-
/**
|
|
50
|
-
* Revert a proxy injection in instance, won't delete non-injected properties
|
|
51
|
-
*
|
|
52
|
-
* @param {string} name - property name
|
|
53
|
-
* @throws Error when the property was not injected
|
|
54
|
-
*/
|
|
55
|
-
uninject(name: string): void;
|
|
56
|
-
_injectProxy(name: any, value: any): void;
|
|
57
|
-
_inject(name: any, value: any, getter?: boolean): void;
|
|
58
|
-
}
|
|
59
|
-
import Trait from "./Trait";
|
|
60
|
-
//# sourceMappingURL=Injectable.d.ts.map
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Provides a {@link ResourceBase} with functions for dealing with being ownable by an organisation
|
|
3
|
-
* @mixin
|
|
4
|
-
*/
|
|
5
|
-
export default class OwnableResource extends Trait {
|
|
6
|
-
/**
|
|
7
|
-
* Get the list of associated organisations
|
|
8
|
-
* @returns {SimpleResourceProxy} - A proxy for accessing the resource
|
|
9
|
-
*/
|
|
10
|
-
get organisations(): SimpleResourceProxy;
|
|
11
|
-
/**
|
|
12
|
-
* If the resource can be owned by an organisation
|
|
13
|
-
* @returns {boolean} - Can be owned by an organisation
|
|
14
|
-
*/
|
|
15
|
-
get ownable(): boolean;
|
|
16
|
-
}
|
|
17
|
-
import Trait from "./Trait";
|
|
18
|
-
//# sourceMappingURL=OwnableResource.d.ts.map
|
package/dist/traits/Trait.d.ts
DELETED
package/dist/utils/Logger.d.ts
DELETED
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Simple logger implementation
|
|
3
|
-
*/
|
|
4
|
-
export default class Logger {
|
|
5
|
-
/**
|
|
6
|
-
* Create a Logger instance
|
|
7
|
-
* @param {string} [logLevel=warn] - Log level
|
|
8
|
-
*/
|
|
9
|
-
constructor(logLevel?: string);
|
|
10
|
-
/**
|
|
11
|
-
* Set the current log level
|
|
12
|
-
* @param {string} value - log level
|
|
13
|
-
* @throws {Logger#getLogLevels}
|
|
14
|
-
*/
|
|
15
|
-
set logLevel(arg: string);
|
|
16
|
-
/**
|
|
17
|
-
* Get the current log level
|
|
18
|
-
* @returns {string} - log level
|
|
19
|
-
*/
|
|
20
|
-
get logLevel(): string;
|
|
21
|
-
/**
|
|
22
|
-
* Get available log levels
|
|
23
|
-
* @returns {Array<string>} - Log levels
|
|
24
|
-
*/
|
|
25
|
-
getLogLevels(): Array<string>;
|
|
26
|
-
/**
|
|
27
|
-
* Log a message
|
|
28
|
-
* @param {string} message - Message to be logged
|
|
29
|
-
* @param {string} level - Log level
|
|
30
|
-
*/
|
|
31
|
-
log(message: string, level?: string): void;
|
|
32
|
-
/**
|
|
33
|
-
* Log a debug message
|
|
34
|
-
* @param {string} message - Message to be logged
|
|
35
|
-
*/
|
|
36
|
-
debug(message: string): void;
|
|
37
|
-
/**
|
|
38
|
-
* Log an informative message
|
|
39
|
-
* @param {string} message - Message to be logged
|
|
40
|
-
*/
|
|
41
|
-
info(message: string): void;
|
|
42
|
-
/**
|
|
43
|
-
* Log a warning message
|
|
44
|
-
* @param {string} message - Message to be logged
|
|
45
|
-
*/
|
|
46
|
-
warn(message: string): void;
|
|
47
|
-
/**
|
|
48
|
-
* Log an error message
|
|
49
|
-
* @param {string} message - Message to be logged
|
|
50
|
-
*/
|
|
51
|
-
error(message: string): void;
|
|
52
|
-
_logLevel: string;
|
|
53
|
-
_shouldLog(level: any): boolean;
|
|
54
|
-
}
|
|
55
|
-
//# sourceMappingURL=Logger.d.ts.map
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Makes an object and it's children unobservable by frameworks like Vuejs
|
|
3
|
-
* @protected
|
|
4
|
-
*/
|
|
5
|
-
export default class Unobservable {
|
|
6
|
-
/**
|
|
7
|
-
* Overrides the `Object.prototype.toString.call(obj)` result
|
|
8
|
-
* @returns {string} - type name
|
|
9
|
-
* @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol/toStringTag
|
|
10
|
-
*/
|
|
11
|
-
get [Symbol.toStringTag](): string;
|
|
12
|
-
}
|
|
13
|
-
//# sourceMappingURL=Unobservable.d.ts.map
|
package/dist/utils/base64.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Base64 encode data
|
|
3
|
-
*
|
|
4
|
-
* @param {Buffer|ArrayBuffer} buffer - input buffer
|
|
5
|
-
* @author Jon Leighton
|
|
6
|
-
* @license MIT
|
|
7
|
-
* @see https://gist.github.com/jonleighton/958841
|
|
8
|
-
* @returns {string} - base 64 encoded data
|
|
9
|
-
* @private
|
|
10
|
-
*/
|
|
11
|
-
export function base64Encode(buffer: Buffer | ArrayBuffer): string;
|
|
12
|
-
//# sourceMappingURL=base64.d.ts.map
|
package/dist/utils/geo.d.ts
DELETED
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* A geographical point
|
|
3
|
-
*/
|
|
4
|
-
export class GeoPoint {
|
|
5
|
-
/**
|
|
6
|
-
* Geographical point
|
|
7
|
-
* @param {Number} lat - latitude
|
|
8
|
-
* @param {Number} lng - longitude
|
|
9
|
-
*/
|
|
10
|
-
constructor(lat: number, lng: number);
|
|
11
|
-
/**
|
|
12
|
-
* Set latitude
|
|
13
|
-
* @param {Number} value - latitude
|
|
14
|
-
*/
|
|
15
|
-
set lat(arg: number);
|
|
16
|
-
/**
|
|
17
|
-
* Get latitude
|
|
18
|
-
* @returns {Number} - latitude
|
|
19
|
-
*/
|
|
20
|
-
get lat(): number;
|
|
21
|
-
/**
|
|
22
|
-
* Set longitude
|
|
23
|
-
* @param {Number} value - longitude
|
|
24
|
-
*/
|
|
25
|
-
set lng(arg: number);
|
|
26
|
-
/**
|
|
27
|
-
* Get longitude
|
|
28
|
-
* @returns {Number} - longitude
|
|
29
|
-
*/
|
|
30
|
-
get lng(): number;
|
|
31
|
-
_lat: number;
|
|
32
|
-
_lng: number;
|
|
33
|
-
/**
|
|
34
|
-
* Get data to be JSON encoded
|
|
35
|
-
* @returns {{lat: Number, lng: Number}} - data
|
|
36
|
-
*/
|
|
37
|
-
toJSON(): {
|
|
38
|
-
lat: number;
|
|
39
|
-
lng: number;
|
|
40
|
-
};
|
|
41
|
-
}
|
|
42
|
-
/**
|
|
43
|
-
* Geometric boundary
|
|
44
|
-
*/
|
|
45
|
-
export class GeoBoundary {
|
|
46
|
-
/**
|
|
47
|
-
* Geometric boundary
|
|
48
|
-
* @param {Object} topLeft - top left corner of the boundary
|
|
49
|
-
* @param {Number} topLeft.lat - top left corner latitude
|
|
50
|
-
* @param {Number} topLeft.lng - top left corner longitude
|
|
51
|
-
* @param {Object} bottomRight - bottom right corner of the boundary
|
|
52
|
-
* @param {Number} bottomRight.lat - bottom right corner latitude
|
|
53
|
-
* @param {Number} bottomRight.lng - bottom right corner longitude
|
|
54
|
-
*/
|
|
55
|
-
constructor({ lat: lat1, lng: lng1 }: {
|
|
56
|
-
lat: number;
|
|
57
|
-
lng: number;
|
|
58
|
-
}, { lat: lat2, lng: lng2 }: {
|
|
59
|
-
lat: number;
|
|
60
|
-
lng: number;
|
|
61
|
-
});
|
|
62
|
-
/**
|
|
63
|
-
* Top left coordinate
|
|
64
|
-
* @type {GeoPoint}
|
|
65
|
-
*/
|
|
66
|
-
topLeft: GeoPoint;
|
|
67
|
-
/**
|
|
68
|
-
* Bottom right coordinate
|
|
69
|
-
* @type {GeoPoint}
|
|
70
|
-
*/
|
|
71
|
-
bottomRight: GeoPoint;
|
|
72
|
-
getCenter(): GeoPoint;
|
|
73
|
-
}
|
|
74
|
-
//# sourceMappingURL=geo.d.ts.map
|
package/dist/utils/hash.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Fast hash function for non-cryptographic use
|
|
3
|
-
* @param {string} str - Input to be hashed
|
|
4
|
-
* @returns {string} - String representation of the hash
|
|
5
|
-
* @private
|
|
6
|
-
*/
|
|
7
|
-
export function fnv32b(str: string): string;
|
|
8
|
-
/**
|
|
9
|
-
* Fast object hashing for non-cryptographic use
|
|
10
|
-
* @param {object} data - input data
|
|
11
|
-
* @returns {string} - String reprisentation of the hash
|
|
12
|
-
* @private
|
|
13
|
-
*/
|
|
14
|
-
export function hashObject(data: object): string;
|
|
15
|
-
//# sourceMappingURL=hash.d.ts.map
|
package/dist/utils/helpers.d.ts
DELETED
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Get all the pages from a {@link PaginatedResourceListing} or a range
|
|
3
|
-
* @param {Promise<PaginatedResourceListing>|PaginatedResourceListing} page - Promise that returns a {@link PaginatedResourceListing}
|
|
4
|
-
* @param {?Number} [start=1] - Start page
|
|
5
|
-
* @param {?Number} [stop] - Stop page, defaults to the page count if not filled in.
|
|
6
|
-
* @returns {Promise<Array<ResourceBase>>} - multiple pages
|
|
7
|
-
* @throws {ApiError} - If the api returns errors
|
|
8
|
-
* @example
|
|
9
|
-
* import { helpers } from "@mapcreator/api";
|
|
10
|
-
*
|
|
11
|
-
* const promise = api.users.list(1, 50); // 50 per page is more efficient
|
|
12
|
-
*
|
|
13
|
-
* helpers.getPaginatedRange(promise).then(data => {
|
|
14
|
-
* data.map(row => `[${row.id}] ${row.name}`) // We just want the names
|
|
15
|
-
* .forEach(console.log) // Log the names and ids of every user
|
|
16
|
-
* })
|
|
17
|
-
*/
|
|
18
|
-
export function getPaginatedRange(page: Promise<PaginatedResourceListing> | PaginatedResourceListing, start?: number | null, stop?: number | null): Promise<Array<ResourceBase>>;
|
|
19
|
-
/**
|
|
20
|
-
* Wraps around ky to make it return cancelable requests
|
|
21
|
-
* @param {function(*=, *=): Response} fn - ky instance
|
|
22
|
-
* @returns {function(*=, *=): Response}
|
|
23
|
-
* @private
|
|
24
|
-
*/
|
|
25
|
-
export function wrapKyCancelable(fn: () => Response): () => Response;
|
|
26
|
-
/**
|
|
27
|
-
* @typedef {Promise} CancelablePromise
|
|
28
|
-
* @property {function(): void} cancel - Cancel the promise
|
|
29
|
-
*/
|
|
30
|
-
/**
|
|
31
|
-
* Makes a promise cancelable by passing it a signal
|
|
32
|
-
* @param {function} fn - async method
|
|
33
|
-
* @returns {CancelablePromise}
|
|
34
|
-
* @private
|
|
35
|
-
*/
|
|
36
|
-
export function makeCancelable(fn: Function): CancelablePromise;
|
|
37
|
-
/**
|
|
38
|
-
* Convert Date into server format
|
|
39
|
-
* @param {Date} date - Target
|
|
40
|
-
* @returns {String} - Formatted date
|
|
41
|
-
* @private
|
|
42
|
-
*/
|
|
43
|
-
export function serializeUTCDate(date: Date): string;
|
|
44
|
-
export function clone(input: any, clonePrivate?: boolean): any;
|
|
45
|
-
export function delay(ms: number): Promise<any>;
|
|
46
|
-
export type CancelablePromise = Promise<any>;
|
|
47
|
-
//# sourceMappingURL=helpers.d.ts.map
|
package/dist/utils/node.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Test if the application is running under nodejs
|
|
3
|
-
* @returns {boolean} - Is the application running under node?
|
|
4
|
-
* @see https://nodejs.org
|
|
5
|
-
* @private
|
|
6
|
-
*/
|
|
7
|
-
export function isNode(): boolean;
|
|
8
|
-
/**
|
|
9
|
-
* Quickly check if the window contains a variable
|
|
10
|
-
* @param {string} str - target variable
|
|
11
|
-
* @returns {boolean} - If the window contains the variable
|
|
12
|
-
* @private
|
|
13
|
-
*/
|
|
14
|
-
export function windowTest(str: string): boolean;
|
|
15
|
-
//# sourceMappingURL=node.d.ts.map
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Tests if the parent is a parent of child
|
|
3
|
-
* @param {Class|object} parent - Instance or Class
|
|
4
|
-
* @param {Class|object} child - Instance or Class
|
|
5
|
-
* @returns {boolean} - is parent a parent of child
|
|
6
|
-
* @private
|
|
7
|
-
* @example
|
|
8
|
-
* class A {}
|
|
9
|
-
* class B extends A {}
|
|
10
|
-
* class C extends B {}
|
|
11
|
-
*
|
|
12
|
-
* isParentOf(A, C) // true
|
|
13
|
-
* isParentOf(B, C) // true
|
|
14
|
-
* isParentOf(C, C) // true
|
|
15
|
-
* isParentOf(B, A) // false
|
|
16
|
-
*/
|
|
17
|
-
export function isParentOf(parent: Class | object, child: Class | object): boolean;
|
|
18
|
-
/**
|
|
19
|
-
* Get the name of the value type
|
|
20
|
-
* @param {*} value - Any value
|
|
21
|
-
* @private
|
|
22
|
-
* @returns {string} - Value type name
|
|
23
|
-
*/
|
|
24
|
-
export function getTypeName(value: any): string;
|
|
25
|
-
/**
|
|
26
|
-
* Mix traits into the target class
|
|
27
|
-
* @param {Class} baseClass - Target base class for the traits to be applied to
|
|
28
|
-
* @param {Class<Trait>} mixins - Traits to be applied
|
|
29
|
-
* @returns {Class} - Constructor with any traits applied
|
|
30
|
-
* @private
|
|
31
|
-
*/
|
|
32
|
-
export function mix(baseClass: Class, ...mixins: Class<Trait>): Class;
|
|
33
|
-
/**
|
|
34
|
-
* Checks if the target has a certain trait.
|
|
35
|
-
*
|
|
36
|
-
* @param {Class|Object} Subject - Instance or class
|
|
37
|
-
* @param {Class<Trait>} TraitClass - Trait to check for
|
|
38
|
-
* @returns {boolean} - If the subject has the trait
|
|
39
|
-
* @private
|
|
40
|
-
*/
|
|
41
|
-
export function hasTrait(Subject: Class | any, TraitClass: Class<Trait>): boolean;
|
|
42
|
-
import Trait from "../traits/Trait";
|
|
43
|
-
//# sourceMappingURL=reflection.d.ts.map
|
package/dist/utils/requests.d.ts
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Encodes an object to a http query string with support for recursion
|
|
3
|
-
* @param {object<string, *>} paramsObject - data to be encoded
|
|
4
|
-
* @returns {string} - encoded http query string
|
|
5
|
-
*
|
|
6
|
-
* @private
|
|
7
|
-
*/
|
|
8
|
-
export function encodeQueryString(paramsObject: any): string;
|
|
9
|
-
/**
|
|
10
|
-
* Wraps around ky to ensure that the prefix is correctly set
|
|
11
|
-
* @param {function(*=, *=): Response} fn - ky instance
|
|
12
|
-
* @param {string} baseUrl - url to be prefixed
|
|
13
|
-
* @returns {function(*=, *=): Response}
|
|
14
|
-
* @private
|
|
15
|
-
*/
|
|
16
|
-
export function wrapKyPrefixUrl(fn: () => Response, baseUrl: string): () => Response;
|
|
17
|
-
/**
|
|
18
|
-
* @private
|
|
19
|
-
*/
|
|
20
|
-
export const FormData: {
|
|
21
|
-
new (form?: HTMLFormElement): FormData;
|
|
22
|
-
prototype: FormData;
|
|
23
|
-
} | typeof import("form-data");
|
|
24
|
-
//# sourceMappingURL=requests.d.ts.map
|
package/dist/utils/uuid.d.ts
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* UUID util class
|
|
3
|
-
* @static
|
|
4
|
-
* @private
|
|
5
|
-
*/
|
|
6
|
-
export default class Uuid extends StaticClass {
|
|
7
|
-
/**
|
|
8
|
-
* Generate a UUID4 string
|
|
9
|
-
* @returns {string} - Uuid
|
|
10
|
-
*/
|
|
11
|
-
static uuid4(): string;
|
|
12
|
-
/**
|
|
13
|
-
* Empty uuid as per spec
|
|
14
|
-
* @returns {string} - Uuid
|
|
15
|
-
*/
|
|
16
|
-
static nil(): string;
|
|
17
|
-
}
|
|
18
|
-
import StaticClass from "./StaticClass";
|
|
19
|
-
//# sourceMappingURL=uuid.d.ts.map
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<!-- Generator: Adobe Illustrator 17.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
|
3
|
-
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
|
4
|
-
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 300 300" enable-background="new 0 0 300 300" xml:space="preserve">
|
|
5
|
-
<g>
|
|
6
|
-
<polygon fill="#FFFFFF" points="20,128.7 33,128.7 43.7,145.9 54.3,128.7 67.3,128.7 67.3,173.2 55,173.2 55,147.6 43.7,165 43.4,165 32.1,147.7 32.1,173.2 20,173.2 "/>
|
|
7
|
-
<path fill="#FFFFFF" d="M90.6,128.4h11.9l19,44.8h-13.2l-3.2-7.9H87.8l-3.2,7.9h-13L90.6,128.4z M101.4,155.6l-5-12.7l-5,12.7 H101.4z"/>
|
|
8
|
-
<g>
|
|
9
|
-
<path fill="#FFFFFF" d="M125.8,128.7h19.1c11.3,0,18.5,5.8,18.5,15.6v0.1c0,10.5-8.1,16-19.1,16h-6.1v12.7h-12.3V128.7z M143.9,150.8c4.4,0,7.1-2.3,7.1-5.8v-0.1c0-3.8-2.7-5.9-7.1-5.9h-5.8v11.8H143.9z"/>
|
|
10
|
-
<path fill="#FFFFFF" d="M165.2,166.6l6.9-8.2c4.4,3.5,9.3,5.3,14.4,5.3c3.3,0,5.1-1.1,5.1-3.1v-0.1c0-1.8-1.5-2.9-7.5-4.3 c-9.5-2.2-16.8-4.8-16.8-14v-0.1c0-8.3,6.6-14.2,17.2-14.2c7.6,0,13.5,2,18.3,5.9l-6.2,8.7c-4.1-2.9-8.5-4.4-12.5-4.4 c-3,0-4.5,1.3-4.5,2.9v0.1c0,2,1.5,2.9,7.7,4.3c10.2,2.2,16.6,5.5,16.6,13.9v0.1c0,9.1-7.2,14.5-18,14.5 C178.2,174,170.7,171.5,165.2,166.6"/>
|
|
11
|
-
<path fill="#FFFFFF" d="M211.5,180.3h5.1c-0.2,2.3-0.4,3.9-0.9,6.3h0.1c1.5-4.8,4.1-6.6,6.7-6.6c2.4,0,3.1,1.7,3.1,3.7 c0,1-0.1,2.2-0.2,3l-0.8,6.1h2l-0.2,2.4h-5.1c0.6-3.5,1.3-9.5,1.3-10.8c0-0.9-0.1-1.7-1-1.7c-2.6,0-5.3,5.9-5.9,10.4l-0.3,2.1h-3 c0.3-1.9,0.5-3.9,0.7-5.9l0.6-6.7h-2.2L211.5,180.3z"/>
|
|
12
|
-
<path fill="#FFFFFF" d="M239.1,194.5c-0.7,0.4-2.7,1-4.8,1c-3.8,0-5.9-2.4-5.9-6.2c0-4.2,2.1-9.3,7.8-9.3c2.2,0,4.3,1.1,4.3,3.5 c0,4.7-6.6,5.8-8.9,6c0,2.1,0.9,3.5,3.7,3.5c1.2,0,2.9-0.5,4.2-1.3L239.1,194.5z M235.7,182.4c-2.8,0-3.8,3-4.1,5.1 c2.8-0.5,5.8-1.3,5.8-3.6C237.5,183.1,236.9,182.4,235.7,182.4"/>
|
|
13
|
-
<path fill="#FFFFFF" d="M242.3,180.3h5.4l-0.3,2.7c-0.2,1.9-0.5,5.6-0.5,6.6c0,1.7,0.3,3.3,1.5,3.3c2,0,4-3.6,4.5-11.2l0.1-1.3h3 l-0.4,4.5c-0.1,1.4-0.2,3-0.2,3.9c0,3.1,0.5,4.1,1.7,4.1c2.2,0,4-4.9,4.1-10.2h-2l0.2-2.4h4.8c-0.1,7.7-2.4,15.2-7.7,15.2 c-3.1,0-3.5-3.2-3.5-5.4h-0.1c-0.2,1.5-1.6,5.4-5.2,5.4c-3.2,0-3.9-2.6-3.9-5.8c0-2.4,0.3-4.7,0.4-7.1h-2.2L242.3,180.3z"/>
|
|
14
|
-
<path fill="#FFFFFF" d="M269.4,192.7c0.7,0.2,1.8,0.5,2.7,0.5c1.4,0,2.8-0.6,2.8-2.2c0-1-0.5-1.4-1.7-1.8l-2.7-0.9 c-1.4-0.5-3.3-1.3-3.3-3.8c0-2.2,1.7-4.5,6.1-4.5c2.3,0,3.9,0.6,4.4,0.9l-0.1,3.7h-2.5l0.1-1.8c-0.6-0.3-1.3-0.4-2.3-0.4 c-1.8,0-2.7,0.8-2.7,1.8c0,0.9,0.4,1.3,2.2,1.9l2.6,0.8c1.5,0.5,2.9,1.4,2.9,3.7c0,2.4-1.6,4.9-6,4.9c-2.4,0-4-0.5-5.3-0.9 l0.1-3.8h2.6V192.7z"/>
|
|
15
|
-
<polygon fill="#FFFFFF" points="215.4,159.8 215.4,147.9 242.1,104.5 211.3,104.5 211.3,173.2 250.1,173.2 250.1,159.8 "/>
|
|
16
|
-
<polygon fill="#0087CD" points="233.2,145.6 250.1,145.6 250.1,118.1 249.9,118.1 "/>
|
|
17
|
-
<polygon fill="#FFFFFF" points="280,104.5 267.3,104.5 267.3,145.6 275.9,145.6 275.9,159.8 267.3,159.8 267.3,173.2 280,173.2 "/>
|
|
18
|
-
<polygon fill="#E6E7E8" points="233.2,145.6 250.1,145.6 250.1,118.1 249.9,118.1 "/>
|
|
19
|
-
<polygon fill="#E6E7E8" points="215.4,159.8 249.6,173.2 250.1,173.2 250.1,159.8 "/>
|
|
20
|
-
<polygon fill="#E6E7E8" points="280,111.5 267.3,104.6 267.3,145.6 275.9,145.6 275.9,159.8 267.3,159.8 267.3,173.2 280,173.2 "/>
|
|
21
|
-
</g>
|
|
22
|
-
</g>
|
|
23
|
-
</svg>
|
package/manual/building.md
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
# Building
|
|
2
|
-
Building the api can be done using [yarn] and [webpack]. The result will be placed in the `/dist` folder. Both the web
|
|
3
|
-
and nodejs releases are built this way.
|
|
4
|
-
|
|
5
|
-
```sh
|
|
6
|
-
yarn install
|
|
7
|
-
yarn run build
|
|
8
|
-
```
|
|
9
|
-
|
|
10
|
-
## Building docs
|
|
11
|
-
The docs can be built using [esdoc] after which they can be found in the `/docs` folder.
|
|
12
|
-
|
|
13
|
-
```sh
|
|
14
|
-
yarn install
|
|
15
|
-
yarn run docs
|
|
16
|
-
```
|
|
17
|
-
|
|
18
|
-
Development docs can be built by adding `"private"` to the `esdoc.access` variable in `package.json` before building the
|
|
19
|
-
docs.
|