@conterra/ct-mapapps-typings 4.13.0 → 4.13.2-PRE-1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +23 -3
- package/agolauthn/AuthenticationPlugin.d.ts +4 -4
- package/agolauthn/SyncAuthnState.d.ts +4 -2
- package/agolauthn/module.d.ts +2 -1
- package/agssearch/AGSStoreFactory.d.ts +3 -3
- package/agssearch/AutoStoreRegistration.d.ts +1 -1
- package/agssearch/FilterStoreFactory.d.ts +1 -6
- package/agssearch/LayerStore.d.ts +9 -8
- package/app-portal-registration/PortalItemColumnExtender.d.ts +1 -1
- package/app-portal-registration/PortalItemRegistrationModel.d.ts +1 -1
- package/app-portal-registration/module.d.ts +5 -1
- package/appautorefresh/Refresher.d.ts +1 -1
- package/appautorefresh/module.d.ts +1 -1
- package/appbundlemanagement/ProductInfoService.d.ts +1 -1
- package/appbundlemanagement/VersionReplacerService.d.ts +1 -1
- package/appbundlemanagement/VersionReplacerToolClickHandler.d.ts +1 -1
- package/appbundlemanagement/module.d.ts +4 -1
- package/appbundlemanagement/wizard/ConfirmationPaneFactory.d.ts +1 -1
- package/appbundlemanagement/wizard/DataFormPaneFactory.d.ts +1 -1
- package/appbundlemanagement/wizard/ProductsPaneFactory.d.ts +1 -1
- package/appbundlemanagement/wizard/ReportWidget.d.ts +1 -1
- package/appbundlemanagement/wizard/VersionLoadPaneFactory.d.ts +1 -1
- package/appbundlemanagement/wizard/VersionPaneFactory.d.ts +1 -1
- package/appbundlemanagement/wizard/VersionReplacerView.d.ts +1 -1
- package/appmanagement/AppBundlesController.d.ts +1 -1
- package/appmanagement/AppColumnExtender.d.ts +1 -1
- package/appmanagement/AppDetailsController.d.ts +1 -1
- package/appmanagement/AppDetailsWidgetFactory.d.ts +1 -1
- package/appmanagement/AppFilesController.d.ts +1 -1
- package/appmanagement/AppViewToolRuleProcessor.d.ts +1 -1
- package/appmanagement/CreateAppController.d.ts +1 -1
- package/appmanagement/CreateTemplateController.d.ts +1 -1
- package/appmanagement/CustomActions.d.ts +1 -1
- package/appmanagement/TemplateDetailsController.d.ts +1 -1
- package/appmanagement/module.d.ts +11 -1
- package/apprt/BundleException.d.ts +1 -1
- package/apprt/ExecutionEnvironment.d.ts +1 -1
- package/apprt/I18N.d.ts +4 -4
- package/apprt/launch/Launcher.d.ts +1 -1
- package/apprt/semver.d.ts +45 -3
- package/apprt-binding/Bindable.d.ts +4 -3
- package/apprt-binding/Binding.d.ts +19 -18
- package/apprt-binding/PropertyAccess.d.ts +11 -10
- package/apprt-binding/Watchable.d.ts +2 -1
- package/apprt-core/Cancel.d.ts +1 -0
- package/apprt-core/Locale.d.ts +18 -2
- package/apprt-core/Logger.d.ts +23 -1
- package/apprt-core/Mutable.d.ts +7 -6
- package/apprt-core/TreeWalker.d.ts +2 -2
- package/apprt-core/Types.d.ts +4 -0
- package/apprt-core/base64.d.ts +73 -0
- package/apprt-core/comparators.d.ts +8 -0
- package/apprt-core/config-dojo.d.ts +8 -0
- package/apprt-core/config.d.ts +339 -23
- package/apprt-core/deprecate.d.ts +1 -1
- package/apprt-core/string-escape.d.ts +1 -0
- package/apprt-core/url-utils.d.ts +15 -1
- package/apprt-dom/geometry.d.ts +40 -0
- package/apprt-dom/index.d.ts +2 -1
- package/apprt-esri-init/CredentialStorage.d.ts +1 -1
- package/apprt-esri-init/IdentityRequestInterceptor.d.ts +11 -0
- package/apprt-esri-init/IdentityRequestProcessorRegistration.d.ts +3 -3
- package/apprt-esri-init/identityRequestUtils.d.ts +18 -0
- package/apprt-esri-init/init-config.d.ts +1 -2
- package/apprt-fetch/ContentType.d.ts +58 -0
- package/apprt-fetch/TimeoutController.d.ts +16 -0
- package/apprt-fetch/config.d.ts +30 -0
- package/apprt-fetch/fetch.d.ts +58 -0
- package/apprt-fetch/index.d.ts +470 -0
- package/apprt-fetch/origin.d.ts +26 -0
- package/apprt-fetch/package.json +5 -0
- package/apprt-request/impl/ProxyRule.d.ts +1 -1
- package/apprt-streams/Stream.d.ts +53 -4
- package/apprt-streams/StreamPiece.d.ts +0 -3
- package/apprt-tokens/TokenRequestInterceptor.d.ts +10 -0
- package/apprt-tokens/TokenServiceImpl.d.ts +4 -0
- package/apprt-tokens/module.d.ts +1 -0
- package/appsoverview/DataViewController.d.ts +1 -1
- package/appsoverview/module.d.ts +1 -1
- package/appsstore/AppStore.d.ts +1 -1
- package/appsstore/AppStoreService.d.ts +1 -1
- package/appsstore/TemplateStore.d.ts +1 -1
- package/appsstore/module.d.ts +4 -1
- package/apptemplatemanagement/CreateTemplateController.d.ts +1 -1
- package/apptemplatemanagement/TemplateDetailsController.d.ts +1 -1
- package/apptemplatemanagement/module.d.ts +2 -1
- package/authentication/AuthenticationInfoWidget.d.ts +1 -1
- package/authentication/AuthenticationInfoWidgetFactory.d.ts +1 -1
- package/authentication/AuthenticationPlugin.d.ts +1 -1
- package/authentication/AuthenticationService.d.ts +1 -1
- package/authentication/AuthenticationWidgetController.d.ts +1 -1
- package/authentication/BlockInputAction.d.ts +1 -1
- package/authentication/LoginStateHeartbeat.d.ts +1 -1
- package/authentication/LoginUI.d.ts +1 -1
- package/authentication/LogoutWarningInfo.d.ts +1 -1
- package/authentication/UsernameWidget.d.ts +1 -1
- package/authentication/module.d.ts +10 -1
- package/banner/module.d.ts +1 -1
- package/banner-config/DataFormBuilderWidgetFactory.d.ts +7 -2
- package/banner-config/module.d.ts +1 -1
- package/bundlemanagement/BundleDetailsController.d.ts +1 -1
- package/bundlemanagement/BundleStore.d.ts +2 -1
- package/bundlemanagement/CreateBundleController.d.ts +1 -1
- package/bundlemanagement/module.d.ts +5 -1
- package/bundletools/BundleToolController.d.ts +1 -1
- package/bundleupdatechecker/BundleUpdateChecker.d.ts +1 -1
- package/bundleupdatechecker/BundleUpdateCheckerController.d.ts +1 -1
- package/bundleupdatechecker/BundleVersionWidget.d.ts +1 -1
- package/bundleupdatechecker/UpdateCheckerWidget.d.ts +1 -1
- package/bundleupdatechecker/UpdateCheckerWidgetFactory.d.ts +1 -1
- package/bundleupdatechecker/module.d.ts +2 -1
- package/coordinateconversion/FormatterUtil.d.ts +2 -2
- package/coordinateconversion/module.d.ts +2 -1
- package/coordinatetransformer/CoordinateTransformer.d.ts +17 -85
- package/coordinatetransformer/CustomTransformation.d.ts +6 -5
- package/coordinatetransformer/GeometryServiceTransformerStrategy.d.ts +10 -4
- package/coordinatetransformer/InternalTransformerStrategy.d.ts +10 -0
- package/coordinatetransformer/Proj4jsTransformerStrategy.d.ts +8 -7
- package/coordinatetransformer/ProjectionEngineTransformerStrategy.d.ts +10 -6
- package/coordinatetransformer/ProjectionStoreFactory.d.ts +7 -43
- package/coordinatetransformer/SRSDefinitions.d.ts +15 -10
- package/coordinatetransformer/SRSParser.d.ts +6 -4
- package/coordinatetransformer/Transformer.d.ts +28 -14
- package/coordinatetransformer/api/CoordinateTransformer.d.ts +128 -0
- package/coordinatetransformer/api/ProjectionStore.d.ts +47 -0
- package/coordinatetransformer/api/TransformationProvider.d.ts +40 -31
- package/coordinatetransformer/api/TransformerStrategy.d.ts +28 -20
- package/coordinatetransformer/api/index.d.ts +4 -0
- package/coordinatetransformer/cloneGeometry.d.ts +8 -6
- package/coordinatetransformer/module.d.ts +3 -1
- package/coordinateviewer/CoordinateViewerWidgetModel.d.ts +1 -1
- package/coordinateviewer/module.d.ts +2 -1
- package/ct/DeferredWatcher.d.ts +1 -1
- package/ct/Filter.d.ts +1 -1
- package/ct/Hash.d.ts +1 -1
- package/ct/I18N.d.ts +1 -1
- package/ct/Sequence.d.ts +1 -1
- package/ct/Stateful.d.ts +1 -1
- package/ct/_Comparable.d.ts +1 -1
- package/ct/_Connect.d.ts +1 -1
- package/ct/_Equals.d.ts +1 -1
- package/ct/api/coordinatetransformer/CoordinateTransformer.d.ts +1 -1
- package/ct/api/featureinfo/FeatureInfoHandler.d.ts +1 -1
- package/ct/api/featureinfo/ReverseGeocoderHandler.d.ts +1 -1
- package/ct/api/geocoder/ReverseGeocoder.d.ts +1 -1
- package/ct/api/geolocator/GeolocationHandler.d.ts +1 -1
- package/ct/api/notifier/NotifierUI.d.ts +1 -1
- package/ct/api/omnisearch/ResultHandler.d.ts +1 -1
- package/ct/api/omnisearch/Store.d.ts +1 -1
- package/ct/api/system/context/ContextListener.d.ts +1 -1
- package/ct/api/system/log/LogEntry.d.ts +1 -1
- package/ct/api/system/log/LogListener.d.ts +1 -1
- package/ct/api/system/log/LogReaderService.d.ts +1 -1
- package/ct/api/system/log/LogService.d.ts +1 -1
- package/ct/main.d.ts +1 -1
- package/ct/stacktrace.d.ts +1 -1
- package/ct/store/ComplexMemory.d.ts +1 -1
- package/ct/store/ComplexQuery.d.ts +1 -1
- package/ct/store/ComplexQueryEngine.d.ts +1 -1
- package/ct/store/ComplexQueryToRQL.d.ts +2 -2
- package/ct/store/ComplexQueryToSQL.d.ts +3 -3
- package/ct/store/ComplexQueryToSolrQL.d.ts +4 -4
- package/ct/store/CompositeStore.d.ts +1 -1
- package/ct/store/NamedQueries.d.ts +1 -1
- package/ct/store/RQLStore.d.ts +1 -1
- package/ct/store/SQLStore.d.ts +1 -1
- package/ct/store/SpatialQuery.d.ts +1 -1
- package/ct/store/StoreUtil.d.ts +4 -4
- package/ct/store/_RestStore.d.ts +1 -1
- package/ct/tools/Tool.d.ts +1 -1
- package/ct/tools/ToolButton.d.ts +1 -1
- package/ct/tools/ToolButtonFactory.d.ts +1 -1
- package/ct/tools/ToolContainer.d.ts +1 -1
- package/ct/tools/ToolMenu.d.ts +1 -1
- package/ct/tools/ToolMenuBar.d.ts +1 -1
- package/ct/tools/ToolMenuBarItem.d.ts +1 -1
- package/ct/tools/ToolMenuItem.d.ts +1 -1
- package/ct/tools/ToolReference.d.ts +1 -1
- package/ct/tools/ToolResolver.d.ts +1 -1
- package/ct/tools/ToolWidgetProxy.d.ts +1 -1
- package/ct/tools/_CheckedMenuItemMixin.d.ts +1 -1
- package/ct/tools/_ToolContainerMixin.d.ts +1 -1
- package/ct/tools/_ToolWidgetMixin.d.ts +1 -1
- package/ct/ui/_BundleI18nMixin.d.ts +1 -1
- package/ct/ui/controls/LoadingIndicator.d.ts +1 -1
- package/ct/ui/controls/MessagePane.d.ts +1 -1
- package/ct/ui/controls/OKCancelDialog.d.ts +1 -1
- package/ct/ui/controls/OKCancelPane.d.ts +1 -1
- package/ct/ui/controls/Pager.d.ts +1 -1
- package/ct/ui/controls/Wizard.d.ts +1 -1
- package/ct/ui/controls/_ManagedChildrenMixin.d.ts +1 -1
- package/ct/ui/controls/dataview/DataView.d.ts +1 -1
- package/ct/ui/controls/dataview/DataViewController.d.ts +1 -1
- package/ct/ui/controls/dataview/DataViewModel.d.ts +1 -1
- package/ct/ui/controls/dataview/toolsColumn.d.ts +1 -1
- package/ct/ui/controls/forms/AddTextBox.d.ts +1 -1
- package/ct/ui/controls/forms/AutoResizeTextBox.d.ts +1 -1
- package/ct/ui/controls/forms/DropDownColorSelector.d.ts +1 -1
- package/ct/ui/controls/forms/Editor.d.ts +1 -1
- package/ct/ui/controls/forms/PeriodicDateTextBox.d.ts +1 -1
- package/ct/ui/controls/forms/ScopedFilter.d.ts +1 -1
- package/ct/ui/controls/forms/SearchBox.d.ts +1 -1
- package/ct/ui/controls/forms/ShrinkingDropDown.d.ts +1 -1
- package/ct/ui/controls/forms/TransparencySlider.d.ts +1 -1
- package/ct/ui/controls/mobile/ComboBox.d.ts +1 -1
- package/ct/ui/controls/mobile/Drawer.d.ts +1 -1
- package/ct/ui/controls/mobile/DropDownMenu.d.ts +1 -1
- package/ct/ui/desktop/CollapseGrid.d.ts +1 -1
- package/ct/ui/desktop/IFrameContent.d.ts +1 -1
- package/ct/ui/desktop/ModalBlocker.d.ts +1 -1
- package/ct/ui/desktop/ResizeGrid.d.ts +1 -1
- package/ct/ui/desktop/WindowBase.d.ts +1 -1
- package/ct/ui/desktop/ZIndexStack.d.ts +1 -1
- package/ct/ui/desktop/_FadeInOutMixin.d.ts +1 -1
- package/ct/ui/desktop/util.d.ts +7 -1
- package/ct/ui/dnd/Avatar.d.ts +1 -1
- package/ct/ui/dnd/Container.d.ts +1 -1
- package/ct/ui/dnd/ContainerWidgetFactory.d.ts +1 -1
- package/ct/ui/dnd/GridContainer.d.ts +1 -1
- package/ct/ui/dnd/GridContainerWidget.d.ts +1 -1
- package/ct/ui/dnd/Moveable.d.ts +1 -1
- package/ct/ui/template/OverlayContainer.d.ts +1 -1
- package/ct/ui/toggle/ToggleButtonGroup.d.ts +1 -1
- package/ct/util/BinarySortedArray.d.ts +1 -1
- package/ct/util/BinarySortedModel.d.ts +1 -1
- package/ct/util/LocalStorage.d.ts +1 -1
- package/ct/util/Redirect.d.ts +1 -1
- package/ct/util/SelectableBinarySortedModel.d.ts +1 -1
- package/ct/util/TypeFormat.d.ts +15 -5
- package/ct/util/css.d.ts +2 -3
- package/ct/util/locate/Geolocation.d.ts +1 -1
- package/ct/util/tree/ContainerNode.d.ts +1 -1
- package/ct/util/tree/Node.d.ts +1 -1
- package/ct/util/tree/NodeVisitorChain.d.ts +1 -1
- package/custominfo/CustomInfo.d.ts +1 -1
- package/custominfo/CustomInfoController.d.ts +16 -2
- package/custominfo/module.d.ts +1 -1
- package/custominfo-config/CustomInfoBuilder.d.ts +1 -1
- package/custominfo-config/CustomInfoBuilderWidget.d.ts +1 -1
- package/custominfo-config/CustomInfoWizardWidget.d.ts +1 -1
- package/custominfo-config/module.d.ts +1 -1
- package/dataform/AsyncJsonFormBuilder.d.ts +1 -1
- package/dataform/DataForm.d.ts +1 -1
- package/dataform/DataFormService.d.ts +1 -1
- package/dataform/JsonFormBuilder.d.ts +1 -1
- package/dataform/JsonFormBuilderResolver.d.ts +1 -1
- package/dataform/ObjectBinding.d.ts +9 -2
- package/dataform/ObjectBindingResolver.d.ts +9 -2
- package/dataform/StatefulBinding.d.ts +14 -2
- package/dataform/controls/AccordionPanel.d.ts +1 -1
- package/dataform/controls/BorderPanel.d.ts +1 -1
- package/dataform/controls/Button.d.ts +1 -1
- package/dataform/controls/CheckBox.d.ts +1 -1
- package/dataform/controls/ColorPicker.d.ts +1 -1
- package/dataform/controls/ComboBox.d.ts +1 -1
- package/dataform/controls/DateTextBox.d.ts +1 -1
- package/dataform/controls/FormControls.d.ts +1 -1
- package/dataform/controls/GridLayoutPanel.d.ts +1 -1
- package/dataform/controls/GridPanel.d.ts +1 -1
- package/dataform/controls/Image.d.ts +1 -1
- package/dataform/controls/Label.d.ts +1 -1
- package/dataform/controls/NumberSpinner.d.ts +1 -1
- package/dataform/controls/NumberTextBox.d.ts +1 -1
- package/dataform/controls/Panel.d.ts +1 -1
- package/dataform/controls/RadioButton.d.ts +1 -1
- package/dataform/controls/SelectBox.d.ts +1 -1
- package/dataform/controls/Slider.d.ts +1 -1
- package/dataform/controls/StackPanel.d.ts +1 -1
- package/dataform/controls/Switch.d.ts +1 -1
- package/dataform/controls/TabPanel.d.ts +1 -1
- package/dataform/controls/TablePanel.d.ts +1 -1
- package/dataform/controls/TextBox.d.ts +1 -1
- package/dataform/controls/Textarea.d.ts +1 -1
- package/dataform/controls/TimeTextBox.d.ts +1 -1
- package/dataform/controls/ToggleButton.d.ts +1 -1
- package/dataform/controls/Uploader.d.ts +1 -1
- package/dataform/controls/ValidationIcon.d.ts +1 -1
- package/dataform/controls/WizardPanel.d.ts +1 -1
- package/dataform/controls/_Control.d.ts +1 -1
- package/dataform/controls/_NumberConstraintsMixin.d.ts +1 -1
- package/dataform/controls/_StackContainerMixin.d.ts +1 -1
- package/dataform/module.d.ts +4 -1
- package/dataview/DGridColumnPluginMixin.d.ts +1 -1
- package/dataview/DGridViewPlugin.d.ts +1 -1
- package/dataview/DataView.d.ts +1 -1
- package/dataview/DataViewBase.d.ts +1 -1
- package/dataview/DataViewController.d.ts +1 -1
- package/dataview/DataViewModel.d.ts +1 -1
- package/dataview/IconViewPlugin.d.ts +1 -1
- package/dataview/Pager.d.ts +1 -1
- package/dataview/_DGridView.d.ts +1 -1
- package/dataview/_IconView.d.ts +1 -1
- package/dataview/_ViewBase.d.ts +1 -1
- package/editing/module.d.ts +1 -1
- package/fileappsstore/FileAppStore.d.ts +1 -1
- package/fileappsstore/module.d.ts +1 -1
- package/filesaver/FileSaver.d.ts +5 -2
- package/filesaver/lib/FileSaver.d.ts +1 -5
- package/filesaver/module.d.ts +1 -1
- package/geojson/Transformer.d.ts +54 -2
- package/geojson/module.d.ts +1 -1
- package/geometryservice/GeometryService.d.ts +1 -1
- package/highlights/api.d.ts +3 -5
- package/integration-map/IntegrationExtensionImpl.d.ts +6 -5
- package/integration-map/api.d.ts +3 -3
- package/locateme/LocateMeModel.d.ts +2 -2
- package/locateme/module.d.ts +3 -1
- package/locateme-gpsgate/module.d.ts +1 -1
- package/locator-store/MetadataProvider.d.ts +2 -2
- package/locator-store/module.d.ts +1 -1
- package/managementlayout/module.d.ts +1 -1
- package/managementlayout/template/template.d.ts +1 -1
- package/manager-monaco/EditorControlFactory.d.ts +1 -0
- package/manager-monaco/EditorWidget.d.ts +1 -0
- package/manager-monaco/plugins/{BundleValidationPlugin.d.ts → AppValidationPlugin.d.ts} +4 -3
- package/manager-monaco/plugins/BundleInfoHoverPlugin.d.ts +5 -5
- package/manager-monaco/plugins/BundleRepository.d.ts +7 -12
- package/manager-monaco/plugins/Registry.d.ts +25 -23
- package/map-actions/HighlightAction.d.ts +1 -1
- package/map-actions/OpenPopupAction.d.ts +2 -1
- package/map-actions/ZoomToAction.d.ts +2 -1
- package/map-actions/api.d.ts +16 -6
- package/map-basemaps-api/BasemapItem.d.ts +1 -1
- package/map-basemaps-api/BasemapsModel.d.ts +1 -1
- package/map-config-api/BasemapConfigParser.d.ts +27 -10
- package/map-init-config/MapContentBuilderWidget.d.ts +1 -1
- package/map-init-config/module.d.ts +4 -1
- package/map-widget/BasemapsParameterResolver.d.ts +9 -11
- package/map-widget/BlockedLayersRemover.d.ts +7 -3
- package/map-widget/Constraints.d.ts +16 -20
- package/map-widget/LODSynchronizer.d.ts +9 -4
- package/map-widget/LayerObserver.d.ts +39 -12
- package/map-widget/LayerTraverser.d.ts +28 -3
- package/map-widget/LayerVisibilityToolRuleProcessor.d.ts +8 -3
- package/map-widget/LayersParameterResolver.d.ts +10 -10
- package/map-widget/LayersParameterSyntax.d.ts +7 -2
- package/map-widget/MapEventBroadcaster.d.ts +7 -3
- package/map-widget/MapLoadingInfoWidget.d.ts +3 -2
- package/map-widget/MapWidget.d.ts +1 -2
- package/map-widget/MapWidgetFactory.d.ts +9 -11
- package/map-widget/MapWidgetModel.d.ts +54 -11
- package/map-widget/MapWidgetRegistration.d.ts +11 -46
- package/map-widget/Navigation.d.ts +6 -9
- package/map-widget/OfflineBasemapDefinitionFilter.d.ts +1 -2
- package/map-widget/ScaleToolRuleProcessor.d.ts +8 -3
- package/map-widget/SrsChangeService.d.ts +10 -29
- package/map-widget/SubLayersInfo.d.ts +47 -4
- package/map-widget/ViewModeToolRuleProcessor.d.ts +6 -4
- package/map-widget/ViewParameterResolver.d.ts +11 -6
- package/map-widget/ViewProvider.d.ts +22 -6
- package/map-widget/ViewReadyWatcher.d.ts +12 -6
- package/map-widget/WebMapLoadingVerification.d.ts +5 -3
- package/map-widget/api/Constraints.d.ts +109 -0
- package/map-widget/api/MapWidget.d.ts +9 -0
- package/map-widget/api/MapWidgetFactory.d.ts +37 -0
- package/map-widget/api/MapWidgetModel.d.ts +203 -0
- package/map-widget/api/MapWidgetRegistration.d.ts +51 -0
- package/map-widget/api/Navigation.d.ts +17 -0
- package/map-widget/api/SrsChangeService.d.ts +29 -0
- package/map-widget/api/index.d.ts +7 -0
- package/map-widget/module.d.ts +14 -12
- package/mapdraw-api/DefaultMapDrawing.d.ts +2 -1
- package/mapdraw-api/DrawAction.d.ts +1 -1
- package/mapdraw-api/Drawing.d.ts +1 -1
- package/mapnavigation/HistoryImpl.d.ts +2 -1
- package/mapnavigation/module.d.ts +0 -1
- package/maptips/MapViewChangeWatcher.d.ts +2 -1
- package/maptips/TipConfig.d.ts +1 -1
- package/measurement-2d/module.d.ts +2 -1
- package/measurement-3d/module.d.ts +1 -1
- package/native-app-exporter/module.d.ts +4 -1
- package/notifier/NotifierUI.d.ts +1 -1
- package/omnisearch/DropDownMenu.d.ts +1 -1
- package/omnisearch/OmniSearchFactory.d.ts +1 -1
- package/omnisearch/OmniSearchModel.d.ts +1 -1
- package/omnisearch/RadioButton.d.ts +1 -1
- package/omnisearch/SearchUI.d.ts +1 -1
- package/omnisearch/SettingsWidget.d.ts +1 -1
- package/omnisearch/module.d.ts +9 -1
- package/omnisearch-portalitem/module.d.ts +1 -1
- package/package.json +1 -1
- package/parametermanager/api.d.ts +4 -2
- package/parametersearch/Config.d.ts +2 -1
- package/parametersearch/SearchTrigger.d.ts +1 -1
- package/popups/LayerPopupTemplateCustomizer.d.ts +1 -1
- package/popups/PopupConfig.d.ts +1 -1
- package/popups/PopupCustomizationsResolver.d.ts +9 -9
- package/popups/PopupInterceptor.d.ts +2 -2
- package/popups/StorePopupTemplateCustomizer.d.ts +1 -1
- package/popups/TypedFactoryIndex.d.ts +2 -2
- package/popups/arc/ActionFactory.d.ts +2 -2
- package/popups/arc/PopupDefinitionFactory.d.ts +3 -3
- package/portal-app-security/CheckAccess.d.ts +4 -0
- package/portal-item-service/PortalItemService.d.ts +3 -3
- package/portal-item-service/module.d.ts +1 -1
- package/portal-search/PortalStoreFactory.d.ts +1 -1
- package/portal-search/module.d.ts +2 -1
- package/portal-security/module.d.ts +1 -1
- package/portal-security-config/module.d.ts +1 -1
- package/portal-token-conversion/module.d.ts +1 -1
- package/portal-webitem-map/module.d.ts +2 -1
- package/portal-webitem-map-config/AGOLStore.d.ts +18 -2
- package/portal-webitem-map-config/module.d.ts +3 -1
- package/portal-webscene-slides/module.d.ts +7 -1
- package/printing/module.d.ts +1 -1
- package/reportmanagement/module.d.ts +3 -1
- package/reportstore/ReportStore.d.ts +1 -1
- package/reportstore/module.d.ts +1 -1
- package/reporttool/module.d.ts +5 -1
- package/result-api/AbstractTableModel.d.ts +55 -0
- package/result-api/OpenResultsServiceImpl.d.ts +3 -3
- package/result-api/ResultModelFactoryImpl.d.ts +5 -0
- package/result-api/ResultModelImpl.d.ts +22 -0
- package/result-api/SelectionEventHandler.d.ts +8 -0
- package/result-api/StoreBackedTableModel.d.ts +32 -0
- package/result-api/TableActionResolverImpl.d.ts +23 -0
- package/result-api/actions/CsvConverter.d.ts +18 -0
- package/result-api/actions/ExportCsvAction.d.ts +15 -0
- package/result-api/actions/ZoomToItemAction.d.ts +14 -0
- package/result-api/actions/ZoomToSelectedAction.d.ts +13 -0
- package/result-api/api/actions.d.ts +209 -0
- package/result-api/api/{all.d.ts → index.d.ts} +1 -0
- package/result-api/api/model.d.ts +181 -60
- package/result-api/api/service.d.ts +24 -5
- package/result-api/api/ui.d.ts +2 -3
- package/result-api/module.d.ts +6 -0
- package/result-ui/CellRenderer.d.ts +27 -0
- package/result-ui/ConditionalTooltip.d.ts +19 -0
- package/result-ui/RecordVisualizer.d.ts +50 -0
- package/result-ui/ResultUIFactory.d.ts +13 -1
- package/result-ui/ResultUIImpl.d.ts +23 -0
- package/result-ui/Store.d.ts +157 -0
- package/result-ui/TableStateToolRuleProcessor.d.ts +17 -0
- package/result-ui/VisualizationLayerResolver.d.ts +14 -0
- package/result-ui/formatting.d.ts +9 -0
- package/result-ui/module.d.ts +3 -3
- package/result-ui/types.d.ts +6 -29
- package/resultcenter/ActionController.d.ts +1 -1
- package/resultcenter/BaseCommand.d.ts +1 -1
- package/resultcenter/DataModel.d.ts +1 -1
- package/resultcenter/DataModelBroadcaster.d.ts +1 -1
- package/resultcenter/DataViewController.d.ts +1 -1
- package/resultcenter/ExportResultsCommand.d.ts +1 -1
- package/resultcenter/PostfixAttributeTableLookupStrategy.d.ts +1 -1
- package/resultcenter/RemoveResultsCommand.d.ts +4 -2
- package/resultcenter/ResultcenterToolRuleProcessor.d.ts +1 -1
- package/resultcenter/StoreEventReceiver.d.ts +1 -1
- package/resultcenter/StoreRegistration.d.ts +1 -1
- package/resultcenter/TriggerShowResultCenter.d.ts +1 -1
- package/resultcenter/VisualizationLayerResolver.d.ts +4 -1
- package/resultcenter/module.d.ts +18 -1
- package/scalebar/module.d.ts +1 -1
- package/search-api/SearchServiceImpl.d.ts +8 -1
- package/search-api/StoreFacade.d.ts +3 -5
- package/search-ui/HighlightedString.d.ts +2 -2
- package/search-ui/SearchController.d.ts +2 -2
- package/search-ui/module.d.ts +0 -1
- package/selection-resultcenter/CachingStore.d.ts +3 -4
- package/selection-resultcenter/ExecutionsController.d.ts +2 -2
- package/selection-resultcenter/ExecutionsModel.d.ts +1 -1
- package/selection-resultcenter/MemoryStore.d.ts +1 -1
- package/selection-resultcenter/module.d.ts +5 -1
- package/selection-services/DrawingSpatialInputAction.d.ts +1 -1
- package/selection-services/SearchSource.d.ts +2 -1
- package/selection-services/SearchSourceModel.d.ts +1 -1
- package/selection-services/SpatialInputAction.d.ts +1 -1
- package/selection-services/SpatialInputActionService.d.ts +1 -1
- package/selection-services/module.d.ts +5 -1
- package/selection-tools/ToolCommand.d.ts +2 -1
- package/selection-tools/ToolItem.d.ts +7 -7
- package/selection-tools/ToolRegistry.d.ts +1 -1
- package/selection-tools/ToolRegistryTracker.d.ts +1 -1
- package/selection-tools/module.d.ts +3 -1
- package/selection-ui/module.d.ts +1 -1
- package/selection-ui-config/module.d.ts +1 -1
- package/share-link-shim/WebShareUI.d.ts +1 -1
- package/sketching/Sketching.d.ts +1 -1
- package/sketching/module.d.ts +1 -1
- package/store-api/QueryExecution.d.ts +1 -1
- package/store-api/QueryExecutions.d.ts +1 -1
- package/store-api/api/Store.d.ts +8 -1
- package/store-api/rest/BaseRestStore.d.ts +5 -0
- package/style-guide/style-guide-layout/template.d.ts +2 -2
- package/system/component/ComponentConstants.d.ts +1 -1
- package/system/component/ComponentException.d.ts +1 -1
- package/system/config/Configuration.d.ts +1 -1
- package/system/config/ConfigurationAdmin.d.ts +1 -1
- package/system/config/ConfigurationException.d.ts +1 -1
- package/system/config/ConfigurationPlugin.d.ts +84 -2
- package/system/config/ConfigurationStore.d.ts +23 -2
- package/system/config/DefaultPersistencePlugin.d.ts +1 -1
- package/system/config/JSONConfigurationAdapter.d.ts +36 -2
- package/system/config/ManagedService.d.ts +113 -2
- package/system/config/ManagedServiceFactory.d.ts +1 -1
- package/system/user/User.d.ts +1 -1
- package/system/user/UserEventRebroadcaster.d.ts +1 -1
- package/template-appsoverview/template.d.ts +2 -2
- package/template-seasons/seasons.d.ts +3 -3
- package/templatelayout/AppRootSizeController.d.ts +10 -2
- package/templatelayout/DefaultLayoutBreakPoints.d.ts +1 -1
- package/templatelayout/DojoClickPatch.d.ts +1 -1
- package/templatelayout/LayoutState.d.ts +1 -1
- package/templatelayout/LayoutTemplateToolRuleProcessor.d.ts +14 -2
- package/templatelayout/WidgetDefinitions.d.ts +1 -1
- package/templatelayout-dijit/TemplateRenderer.d.ts +1 -1
- package/templatelayout-dijit/TemplateWidget.d.ts +1 -1
- package/templates/Template.d.ts +1 -1
- package/templates/TemplateEventBroadCaster.d.ts +1 -1
- package/templates/TemplateModel.d.ts +1 -1
- package/templates/TemplateSelector.d.ts +1 -1
- package/test-utils/later.d.ts +39 -0
- package/test-utils/waitForProperty.d.ts +27 -0
- package/theme-tester/test-layout/test-layout.d.ts +2 -2
- package/themes/Theme.d.ts +1 -1
- package/themes/ThemeBundleListener.d.ts +1 -1
- package/themes/ThemeEventBroadCaster.d.ts +1 -1
- package/themes/ThemeModel.d.ts +1 -1
- package/themes/ThemeSelector.d.ts +1 -1
- package/themes/ThemeStyleWriter.d.ts +1 -1
- package/themes/popup.d.ts +1 -1
- package/toc/ActionResolver.d.ts +1 -1
- package/toc/BaseTocItemFactory.d.ts +2 -1
- package/toc/StateCheckExecutor.d.ts +1 -1
- package/toc/model/TocItem.d.ts +3 -1
- package/toolrules/StoreToolRuleProcessor.d.ts +11 -2
- package/toolrules/ToolActiveStateManager.d.ts +42 -2
- package/toolrules/ToolEventRebroadcaster.d.ts +14 -2
- package/toolrules/ToolRuleContext.d.ts +18 -2
- package/toolrules/ToolRuleManager.d.ts +36 -2
- package/toolrules/ToolStateEventListener.d.ts +23 -2
- package/toolrules/UserInRoleToolRuleProcessor.d.ts +16 -2
- package/toolset/Drawer.d.ts +1 -1
- package/toolset/ToolsetManager.d.ts +1 -1
- package/toolset/ToolsetWindow.d.ts +1 -1
- package/toolset-config/ToolsetBuilderWidget.d.ts +1 -1
- package/toolset-config/ToolsetBuilderWidgetFactory.d.ts +1 -1
- package/viewmodeswitcher/module.d.ts +1 -1
- package/vuetify-component-overview/component-overview-layout/template.d.ts +2 -2
- package/windowmanager/WindowDnDContainer.d.ts +1 -1
- package/windowmanager/WindowDockingBar.d.ts +1 -1
- package/windowmanager/WindowDockingBarButton.d.ts +1 -1
- package/windowmanager/WindowManager.d.ts +1 -1
- package/windowmanager/WindowManagerFactory.d.ts +1 -1
- package/windowmanager/WindowReference.d.ts +1 -1
- package/windowmanager/WindowToolFactory.d.ts +1 -1
- package/wizard/CategoryList.d.ts +1 -1
- package/wizard/DataFormBuilderWidget.d.ts +1 -1
- package/wizard/DataFormBuilderWidgetFactory.d.ts +1 -1
- package/wizard/Menu.d.ts +1 -1
- package/wizard/MenuContent.d.ts +1 -1
- package/wizard/MenuController.d.ts +1 -1
- package/wizard/SaveAction.d.ts +1 -1
- package/wizard/ToolsDataFormWidgetFactory.d.ts +1 -1
- package/wizard/_BuilderWidget.d.ts +1 -1
- package/wizard/_Configurable.d.ts +1 -1
- package/wizard/module.d.ts +11 -1
- package/agssearch-config/main.d.ts +0 -1
- package/agssearch-config/package.json +0 -5
- package/app-portal-registration/main.d.ts +0 -1
- package/app-portal-registration/package.json +0 -5
- package/appbundlemanagement/main.d.ts +0 -1
- package/appbundlemanagement/package.json +0 -5
- package/appmanagement/main.d.ts +0 -1
- package/appmanagement/package.json +0 -5
- package/apprt-request/dconfig.d.ts +0 -2
- package/appsoverview/main.d.ts +0 -1
- package/appsoverview/package.json +0 -5
- package/appsstore/main.d.ts +0 -1
- package/appsstore/package.json +0 -5
- package/apptemplatemanagement/main.d.ts +0 -1
- package/apptemplatemanagement/package.json +0 -5
- package/authentication/main.d.ts +0 -1
- package/authentication/package.json +0 -5
- package/banner-config/main.d.ts +0 -1
- package/banner-config/package.json +0 -5
- package/bundlemanagement/main.d.ts +0 -1
- package/bundlemanagement/package.json +0 -5
- package/bundletools/main.d.ts +0 -1
- package/bundletools/package.json +0 -5
- package/bundleupdatechecker/main.d.ts +0 -1
- package/bundleupdatechecker/package.json +0 -5
- package/console/main.d.ts +0 -1
- package/console/package.json +0 -5
- package/coordinateconversion/main.d.ts +0 -1
- package/coordinateconversion-config/main.d.ts +0 -1
- package/coordinatetransformer/main.d.ts +0 -1
- package/coordinatetransformer/package.json +0 -5
- package/coordinateviewer/main.d.ts +0 -1
- package/coordinateviewer-config/main.d.ts +0 -1
- package/custominfo-config/main.d.ts +0 -1
- package/custominfo-config/package.json +0 -5
- package/editing/main.d.ts +0 -1
- package/editing-config/main.d.ts +0 -1
- package/graphics/module.d.ts +0 -1
- package/locateme/main.d.ts +0 -1
- package/locateme/package.json +0 -5
- package/locateme-config/main.d.ts +0 -1
- package/locateme-config/package.json +0 -5
- package/locator-store/main.d.ts +0 -1
- package/locator-store/package.json +0 -5
- package/locator-store-config/main.d.ts +0 -1
- package/locator-store-config/package.json +0 -5
- package/manager-monaco/plugins/ExcludeFromSuggest.d.ts +0 -5
- package/map-init-config/main.d.ts +0 -1
- package/map-init-config/package.json +0 -5
- package/measurement-2d/main.d.ts +0 -1
- package/measurement-2d-config/main.d.ts +0 -1
- package/measurement-3d/main.d.ts +0 -1
- package/measurement-3d-config/main.d.ts +0 -1
- package/native-app-exporter/main.d.ts +0 -1
- package/native-app-exporter/package.json +0 -5
- package/omnisearch/main.d.ts +0 -1
- package/omnisearch/package.json +0 -5
- package/omnisearch-config/main.d.ts +0 -1
- package/omnisearch-config/package.json +0 -5
- package/portal-search/main.d.ts +0 -1
- package/portal-search/package.json +0 -5
- package/portal-security-config/main.d.ts +0 -1
- package/portal-security-config/package.json +0 -5
- package/portal-webitem-map/main.d.ts +0 -1
- package/portal-webitem-map-config/main.d.ts +0 -1
- package/portal-webitem-map-config/package.json +0 -5
- package/portal-webscene-slides/main.d.ts +0 -1
- package/portal-webscene-slides/package.json +0 -5
- package/printing/main.d.ts +0 -1
- package/printing-config/main.d.ts +0 -1
- package/printing-config/package.json +0 -5
- package/reportmanagement/main.d.ts +0 -1
- package/reportmanagement/package.json +0 -5
- package/reporttool/main.d.ts +0 -1
- package/result-ui/ResultUIController.d.ts +0 -8
- package/result-ui/SelectionBridge.d.ts +0 -6
- package/resultcenter/main.d.ts +0 -1
- package/resultcenter/package.json +0 -5
- package/scalebar/main.d.ts +0 -1
- package/scalebar-config/main.d.ts +0 -1
- package/scalebar-config/package.json +0 -5
- package/selection-resultcenter/main.d.ts +0 -1
- package/selection-resultcenter/package.json +0 -5
- package/selection-services/main.d.ts +0 -1
- package/selection-tools/main.d.ts +0 -1
- package/selection-ui/main.d.ts +0 -1
- package/selection-ui-config/main.d.ts +0 -1
- package/selection-ui-config/package.json +0 -5
- package/sketching/main.d.ts +0 -1
- package/sketching/package.json +0 -5
- package/sketching-config/main.d.ts +0 -1
- package/template-appsoverview/module.d.ts +0 -1
- package/template-seasons/module.d.ts +0 -1
- package/templates/main.d.ts +0 -1
- package/templates/package.json +0 -5
- package/templates-config/main.d.ts +0 -1
- package/templates-config/package.json +0 -5
- package/themes/main.d.ts +0 -1
- package/themes/package.json +0 -5
- package/themes-config/main.d.ts +0 -1
- package/themes-config/package.json +0 -5
- package/toolset-config/main.d.ts +0 -1
- package/toolset-config/package.json +0 -5
- package/viewmodeswitcher/main.d.ts +0 -1
- package/windowmanager/main.d.ts +0 -1
- package/windowmanager/package.json +0 -5
- package/wizard/main.d.ts +0 -1
- package/wizard/package.json +0 -5
|
@@ -0,0 +1,470 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Provides a wrapper around the browsers `fetch` API.
|
|
3
|
+
*
|
|
4
|
+
* @example Fetch a json file
|
|
5
|
+
* ```js
|
|
6
|
+
* import { apprtFetch, ContentType} from "apprt-fetch";
|
|
7
|
+
*
|
|
8
|
+
* // execute a get request
|
|
9
|
+
* const response = await apprtFetch("https://httpbin.org/json", {
|
|
10
|
+
* // query parameters f=json
|
|
11
|
+
* query: { f: "json" },
|
|
12
|
+
* headers: {
|
|
13
|
+
* // accept only json responses
|
|
14
|
+
* "Accept": ContentType.JSON
|
|
15
|
+
* },
|
|
16
|
+
* // throw error if response status is not 2XX
|
|
17
|
+
* checkStatus: true
|
|
18
|
+
* });
|
|
19
|
+
*
|
|
20
|
+
* // Parse the response body as json.
|
|
21
|
+
* const data = await response.json();
|
|
22
|
+
* ```
|
|
23
|
+
* @example Fetch a json file with apprtFetchJson
|
|
24
|
+
* ```js
|
|
25
|
+
* import { apprtFetchJson } from "apprt-fetch";
|
|
26
|
+
*
|
|
27
|
+
* // execute a get request
|
|
28
|
+
* const data = await apprtFetchJson("https://httpbin.org/json", {
|
|
29
|
+
* // query parameters f=json
|
|
30
|
+
* query: { f: "json" }
|
|
31
|
+
* });
|
|
32
|
+
* ```
|
|
33
|
+
*
|
|
34
|
+
* @example POST x-www-form-urlencoded content
|
|
35
|
+
* ```js
|
|
36
|
+
* import { apprtFetch, ContentType } from "apprt-fetch";
|
|
37
|
+
*
|
|
38
|
+
* // execute a POST request
|
|
39
|
+
* const response = await apprtFetch("https://httpbin.org/post", {
|
|
40
|
+
* // declare that POST should be used
|
|
41
|
+
* method: "POST",
|
|
42
|
+
* // throw error if response status is not 2XX
|
|
43
|
+
* checkStatus: true,
|
|
44
|
+
* headers: {
|
|
45
|
+
* // accept only json responses
|
|
46
|
+
* "Accept": ContentType.JSON
|
|
47
|
+
* },
|
|
48
|
+
* // Specify the POST-Body with URLSearchParams.
|
|
49
|
+
* // The "Content-Type" Header is automatically set to
|
|
50
|
+
* // "application/x-www-form-urlencoded;charset=UTF-8"
|
|
51
|
+
* body: new URLSearchParams({ f: "json" })
|
|
52
|
+
* });
|
|
53
|
+
*
|
|
54
|
+
* // Parse the response body as json.
|
|
55
|
+
* const data = await response.json();
|
|
56
|
+
* ```
|
|
57
|
+
*
|
|
58
|
+
* @example POST x-www-form-urlencoded content with flag encodeQueryAsBody
|
|
59
|
+
* ```js
|
|
60
|
+
* import { apprtFetch, ContentType } from "apprt-fetch";
|
|
61
|
+
*
|
|
62
|
+
* // execute a POST request
|
|
63
|
+
* const response = await apprtFetch("https://httpbin.org/post", {
|
|
64
|
+
* // declare that POST should be used
|
|
65
|
+
* method: "POST",
|
|
66
|
+
* // throw error if response status is not 2XX
|
|
67
|
+
* checkStatus: true,
|
|
68
|
+
*
|
|
69
|
+
* headers: {
|
|
70
|
+
* // accept only json responses
|
|
71
|
+
* "Accept": ContentType.JSON
|
|
72
|
+
* },
|
|
73
|
+
*
|
|
74
|
+
* // normally this would stay url parameters ?f=json
|
|
75
|
+
* query: { f: "json" }
|
|
76
|
+
*
|
|
77
|
+
* // but this flags converts the query to the body
|
|
78
|
+
* encodeQueryAsBody: true
|
|
79
|
+
* });
|
|
80
|
+
*
|
|
81
|
+
* // Parse the response body as json.
|
|
82
|
+
* const data = await response.json();
|
|
83
|
+
* ```
|
|
84
|
+
* @example POST application/json content
|
|
85
|
+
* ```js
|
|
86
|
+
* import { apprtFetch, ContentType } from "apprt-fetch";
|
|
87
|
+
*
|
|
88
|
+
* // execute a POST request
|
|
89
|
+
* const response = await apprtFetch("https://httpbin.org/post", {
|
|
90
|
+
* // declare that POST should be used
|
|
91
|
+
* method: "POST",
|
|
92
|
+
* // throw error if response status is not 2XX
|
|
93
|
+
* checkStatus: true,
|
|
94
|
+
* headers: {
|
|
95
|
+
* // Set the Content-Type of the body
|
|
96
|
+
* "Content-Type": ContentType.JSON_UTF8,
|
|
97
|
+
* // accept only json responses
|
|
98
|
+
* "Accept": ContentType.JSON
|
|
99
|
+
* },
|
|
100
|
+
* // Specify the POST-Body
|
|
101
|
+
* body: JSON.stringify({ id: "test" })
|
|
102
|
+
* });
|
|
103
|
+
*
|
|
104
|
+
* // Parse the response body as json.
|
|
105
|
+
* const data = await response.json();
|
|
106
|
+
* ```
|
|
107
|
+
* @module
|
|
108
|
+
*/
|
|
109
|
+
import type { DeepReadonly } from "apprt-core/Types";
|
|
110
|
+
export { ContentType } from "./ContentType";
|
|
111
|
+
/**
|
|
112
|
+
* Specifies a proxy rule.
|
|
113
|
+
* Requests targeting the `origin` server of a proxy rule will use the configured proxy server
|
|
114
|
+
* to fetch the resource.
|
|
115
|
+
*/
|
|
116
|
+
export interface ProxyRule {
|
|
117
|
+
/**
|
|
118
|
+
* An origin to match against request URLs.
|
|
119
|
+
* URLs matching this origin pattern will use the configured `proxyUrl` (if present)
|
|
120
|
+
* or the default proxy URL.
|
|
121
|
+
*
|
|
122
|
+
* Origins must contain protocol, a hostname and (optionally) a port.
|
|
123
|
+
* For example, `https://subdomain.arcgis.com` is a valid origin.
|
|
124
|
+
*/
|
|
125
|
+
origin: string;
|
|
126
|
+
/**
|
|
127
|
+
* URL to a server endpoint that can act as proxy.
|
|
128
|
+
* If this URL is not specified, a default proxy will be used.
|
|
129
|
+
*/
|
|
130
|
+
proxyUrl?: string;
|
|
131
|
+
}
|
|
132
|
+
/**
|
|
133
|
+
* Represents a trusted server configuration.
|
|
134
|
+
*
|
|
135
|
+
* Trusted servers automatically receive user credentials (e.g. cookies) by default,
|
|
136
|
+
* so there is no need to specify security settings on individual requests.
|
|
137
|
+
*/
|
|
138
|
+
export interface TrustedServer {
|
|
139
|
+
/**
|
|
140
|
+
* An origin to match against request URLs.
|
|
141
|
+
*
|
|
142
|
+
* Origins must contain protocol, a hostname and (optionally) a port.
|
|
143
|
+
* For example, `https://subdomain.arcgis.com` is a valid origin.
|
|
144
|
+
*/
|
|
145
|
+
origin: string;
|
|
146
|
+
}
|
|
147
|
+
/** Properties that should not be changed from an interceptor. */
|
|
148
|
+
declare type ReadonlyInitProperties = "query" | "timeoutMillis" | "checkStatus" | "signal" | "context";
|
|
149
|
+
/**
|
|
150
|
+
* Options passed into interceptors.
|
|
151
|
+
* Most options can be modified to customize the request that is about to be sent.
|
|
152
|
+
*/
|
|
153
|
+
export declare type InterceptorOptions = Omit<ApprtRequestInit, ReadonlyInitProperties> & Readonly<Pick<ApprtRequestInit, ReadonlyInitProperties>> & {
|
|
154
|
+
method: string;
|
|
155
|
+
headers: Headers;
|
|
156
|
+
query: undefined;
|
|
157
|
+
};
|
|
158
|
+
/**
|
|
159
|
+
* Arguments available to 'before' interceptors.
|
|
160
|
+
*/
|
|
161
|
+
export interface BeforeInterceptorData {
|
|
162
|
+
/**
|
|
163
|
+
* The current request's target URL, including query parameters.
|
|
164
|
+
* Can be modified to redirect the request to a different location.
|
|
165
|
+
*/
|
|
166
|
+
target: URL;
|
|
167
|
+
/** Other request options (e.g. headers). */
|
|
168
|
+
readonly options: InterceptorOptions;
|
|
169
|
+
/**
|
|
170
|
+
* The context object is a per-request object that is passed to all
|
|
171
|
+
* interceptors.
|
|
172
|
+
* It can be used to keep interceptor state for a request.
|
|
173
|
+
*
|
|
174
|
+
* Use a sensible namespace string or a symbol to store state
|
|
175
|
+
* to avoid naming collisions.
|
|
176
|
+
*/
|
|
177
|
+
readonly context: Record<string | symbol, unknown>;
|
|
178
|
+
/** AbortSignal for cancellation support. */
|
|
179
|
+
readonly signal?: AbortSignal;
|
|
180
|
+
}
|
|
181
|
+
/**
|
|
182
|
+
* Arguments available to 'after' interceptors.
|
|
183
|
+
*/
|
|
184
|
+
export interface AfterInterceptorData {
|
|
185
|
+
/**
|
|
186
|
+
* The request's target URL, including query parameters.
|
|
187
|
+
* This is the original URL, before the request was potentially re-routed over a proxy server.
|
|
188
|
+
*/
|
|
189
|
+
readonly target: URL;
|
|
190
|
+
/** The options used when making the request. */
|
|
191
|
+
readonly options: InterceptorOptions;
|
|
192
|
+
/** The request that was sent to the server. */
|
|
193
|
+
readonly request: Request;
|
|
194
|
+
/** The response returned by the server. */
|
|
195
|
+
readonly response: Response;
|
|
196
|
+
/**
|
|
197
|
+
* The context object is a per-request object that is passed to all
|
|
198
|
+
* interceptors.
|
|
199
|
+
* It can be used to keep interceptor state for a request.
|
|
200
|
+
*
|
|
201
|
+
* Use a sensible namespace string or a symbol to store state
|
|
202
|
+
* to avoid naming collisions.
|
|
203
|
+
*/
|
|
204
|
+
readonly context: Record<string | symbol, unknown>;
|
|
205
|
+
/** AbortSignal for cancellation support. */
|
|
206
|
+
readonly signal?: AbortSignal;
|
|
207
|
+
}
|
|
208
|
+
/**
|
|
209
|
+
* An interceptor can intercept and manipulate requests (and their responses) before
|
|
210
|
+
* or after they have been sent to the server.
|
|
211
|
+
*/
|
|
212
|
+
export interface Interceptor {
|
|
213
|
+
/**
|
|
214
|
+
* This method will be invoked before a request is sent to the server.
|
|
215
|
+
* The implementor may alter the input arguments (e.g. query parameters in {@link BeforeInterceptorData.target}).
|
|
216
|
+
*/
|
|
217
|
+
before?(data: BeforeInterceptorData): void | undefined | Promise<void | undefined>;
|
|
218
|
+
/**
|
|
219
|
+
* This method will be invoked after the server responded to a request.
|
|
220
|
+
* The implementor may substitute a custom response instead.
|
|
221
|
+
*/
|
|
222
|
+
after?(data: AfterInterceptorData): void | Response | Promise<void | Response>;
|
|
223
|
+
}
|
|
224
|
+
/**
|
|
225
|
+
* A handle allows the holder to destroy or remove a resource.
|
|
226
|
+
*/
|
|
227
|
+
export interface Handle {
|
|
228
|
+
/**
|
|
229
|
+
* Performs a cleanup action.
|
|
230
|
+
*/
|
|
231
|
+
remove(): void;
|
|
232
|
+
}
|
|
233
|
+
/**
|
|
234
|
+
* Global configuration of this bundle.
|
|
235
|
+
*/
|
|
236
|
+
export interface Config {
|
|
237
|
+
/**
|
|
238
|
+
* Maximum length of an url before a GET request is switched to POST.
|
|
239
|
+
* GET requests altered in this way will have their query parameters
|
|
240
|
+
* placed into the new POST request's body (as content-type application/x-www-form-urlencoded).
|
|
241
|
+
*
|
|
242
|
+
* Switching to POST requests can be disabled by setting this property to a value `<= 0`.
|
|
243
|
+
*/
|
|
244
|
+
maxUrlLength: number;
|
|
245
|
+
/**
|
|
246
|
+
* Default time in milliseconds after which fetch aborts with a timeout.
|
|
247
|
+
*/
|
|
248
|
+
timeoutMillis: number;
|
|
249
|
+
/**
|
|
250
|
+
* The default proxy to use.
|
|
251
|
+
*/
|
|
252
|
+
defaultProxy: string | undefined;
|
|
253
|
+
/**
|
|
254
|
+
* If this is `true`, proxy support will be completely disabled.
|
|
255
|
+
*/
|
|
256
|
+
disableProxySupport: boolean;
|
|
257
|
+
/**
|
|
258
|
+
* Usage rules for proxied requests.
|
|
259
|
+
*
|
|
260
|
+
* When a proxy rule matches a request URL, the proxy will be
|
|
261
|
+
* chosen to perform the request instead.
|
|
262
|
+
*/
|
|
263
|
+
readonly proxyRules: DeepReadonly<ProxyRule>[];
|
|
264
|
+
/**
|
|
265
|
+
* Usages rules for trusted servers.
|
|
266
|
+
*
|
|
267
|
+
* apprt-fetch will automatically send credentials to these servers.
|
|
268
|
+
*/
|
|
269
|
+
readonly trustedServers: DeepReadonly<TrustedServer>[];
|
|
270
|
+
/**
|
|
271
|
+
* Globally registered interceptors.
|
|
272
|
+
*/
|
|
273
|
+
readonly interceptors: DeepReadonly<Interceptor>[];
|
|
274
|
+
/**
|
|
275
|
+
* Adds a new proxy rule to the configuration.
|
|
276
|
+
* Requests that match the rule's `origin` will use the specified `proxyUrl`.
|
|
277
|
+
*
|
|
278
|
+
* Note: there can only be one proxy rule for an origin.
|
|
279
|
+
*/
|
|
280
|
+
addProxyRule(rule: ProxyRule): void;
|
|
281
|
+
/**
|
|
282
|
+
* Removes a proxy rule from the configuration.
|
|
283
|
+
*/
|
|
284
|
+
removeProxyRule(rule: Pick<ProxyRule, "origin">): void;
|
|
285
|
+
/**
|
|
286
|
+
* Adds a new trusted server rule to the configuration.
|
|
287
|
+
* Requests that match the rule will send credentials automatically,
|
|
288
|
+
* without the need to declare it in individual requests.
|
|
289
|
+
*
|
|
290
|
+
* Note: there can only be one trusted server rule for an origin.
|
|
291
|
+
*/
|
|
292
|
+
addTrustedServer(server: TrustedServer): void;
|
|
293
|
+
/**
|
|
294
|
+
* Removes a trusted server rule from the configuration.
|
|
295
|
+
*/
|
|
296
|
+
removeTrustedServer(server: Pick<TrustedServer, "origin">): void;
|
|
297
|
+
/**
|
|
298
|
+
* Registers a global interceptor.
|
|
299
|
+
* Use the handle returned by this method to deregister the interceptor
|
|
300
|
+
* when it is no longer needed.
|
|
301
|
+
*/
|
|
302
|
+
registerInterceptor(interceptor: Interceptor): Handle;
|
|
303
|
+
}
|
|
304
|
+
/** Used to control the proxy mode for requests. */
|
|
305
|
+
export declare type ProxyMode = "force-on" | "force-off" | "default";
|
|
306
|
+
/**
|
|
307
|
+
* Request options supported by apprt-request.
|
|
308
|
+
* This is an extension of the Browser's native fetch options.
|
|
309
|
+
*
|
|
310
|
+
* See also the init parameter of [apprt-fetch](https://developer.mozilla.org/en-US/docs/Web/API/fetch)
|
|
311
|
+
* for a list of all options provided by the browser.
|
|
312
|
+
*/
|
|
313
|
+
export interface ApprtRequestInit extends RequestInit {
|
|
314
|
+
/**
|
|
315
|
+
* Time in milliseconds after which the fetch aborts with a timeout.
|
|
316
|
+
* Defaults to the timeout settings on the global configuration object: {@link config}.
|
|
317
|
+
*/
|
|
318
|
+
timeoutMillis?: number;
|
|
319
|
+
/**
|
|
320
|
+
* Ensures that the target resource is fresh from the server.
|
|
321
|
+
* This is a shorthand for the fetch option `cache: "no-store"`.
|
|
322
|
+
*/
|
|
323
|
+
preventCache?: boolean;
|
|
324
|
+
/**
|
|
325
|
+
* If true, throws an error if the response is not `ok`, i.e. if
|
|
326
|
+
* the response status code is not between 200 and 299.
|
|
327
|
+
*
|
|
328
|
+
* Default: false.
|
|
329
|
+
*/
|
|
330
|
+
checkStatus?: boolean;
|
|
331
|
+
/**
|
|
332
|
+
* By default, requests will use a proxy only if a proxy rule matches.
|
|
333
|
+
*
|
|
334
|
+
* If `"force-on"` is configured, the request will always use a proxy server,
|
|
335
|
+
* falling back to the default proxy if no proxy rule matches.
|
|
336
|
+
* An error will be thrown if no default proxy is configured in this case.
|
|
337
|
+
*
|
|
338
|
+
* If `"force-off"` is used, no proxy server will be used, even if a proxy rule would match.
|
|
339
|
+
*/
|
|
340
|
+
proxyMode?: ProxyMode;
|
|
341
|
+
/**
|
|
342
|
+
* Convenience option to add additional query arguments to the request.
|
|
343
|
+
* The transport of the given value depends on the value of `queryTransport`.
|
|
344
|
+
* By default, query arguments passed here will be appended to the query part of the request URL.
|
|
345
|
+
*/
|
|
346
|
+
query?: string | URLSearchParams | Record<string, any>;
|
|
347
|
+
/**
|
|
348
|
+
* Configures the way the `query` value is transported to the server.
|
|
349
|
+
*
|
|
350
|
+
* - Use the value `"url"` (the default) to append the query to the request url.
|
|
351
|
+
* - Use `"form"` instead to set the request body to `query` (encoded as `application/x-www-form-urlencoded`).
|
|
352
|
+
* No other request body should be specified in this case.
|
|
353
|
+
*
|
|
354
|
+
* If `query` is a string, then it should already be URL encoded.
|
|
355
|
+
* If `query` is an instance of URLSearchParams, all params will simply be copied.
|
|
356
|
+
* If `query` is a plain object, all properties will be serialized by calling `objectToQuery()` from
|
|
357
|
+
* `apprt-core/url-utils`.
|
|
358
|
+
*
|
|
359
|
+
* Default: `"url"`.
|
|
360
|
+
*/
|
|
361
|
+
queryTransport?: "url" | "form";
|
|
362
|
+
/**
|
|
363
|
+
* Arbitrary settings that can be read by interceptors.
|
|
364
|
+
*/
|
|
365
|
+
context?: Record<string | symbol, unknown>;
|
|
366
|
+
}
|
|
367
|
+
/**
|
|
368
|
+
* Represents a request location.
|
|
369
|
+
* Can be used as an argument to this bundle's `fetch()` function.
|
|
370
|
+
*/
|
|
371
|
+
export declare type ApprtRequestTarget = string | URL;
|
|
372
|
+
/**
|
|
373
|
+
* Get global configuration options for the apprt-fetch bundle.
|
|
374
|
+
*/
|
|
375
|
+
export declare function getConfig(): Config;
|
|
376
|
+
/**
|
|
377
|
+
* Fetches the specified resource.
|
|
378
|
+
* Works like the browser's `fetch()` function, but supports a few extensions.
|
|
379
|
+
*
|
|
380
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/API/fetch
|
|
381
|
+
*
|
|
382
|
+
* @example
|
|
383
|
+
*
|
|
384
|
+
* Basic usage:
|
|
385
|
+
*
|
|
386
|
+
* ```js
|
|
387
|
+
* import { apprtFetch } from "apprt-fetch";
|
|
388
|
+
* const response = await apprtFetch("https://httpbin.org/get");
|
|
389
|
+
* if (!response.ok) {
|
|
390
|
+
* throw new Error(`Request failed with status: ${response.status}`);
|
|
391
|
+
* }
|
|
392
|
+
* const data = await response.json();
|
|
393
|
+
* ```
|
|
394
|
+
*
|
|
395
|
+
* See the bundle `README` for more advanced use cases.
|
|
396
|
+
*/
|
|
397
|
+
export declare function apprtFetch(target: ApprtRequestTarget, init?: ApprtRequestInit): Promise<Response>;
|
|
398
|
+
/**
|
|
399
|
+
* Fetches the specified resource and expects a JSON encoded response.
|
|
400
|
+
* It is a small helper to make fetching of json data more simple.
|
|
401
|
+
* It has the `checkStatus` flag enabled by default and sets the Accept Header to 'application/json'.
|
|
402
|
+
*
|
|
403
|
+
* @example
|
|
404
|
+
*
|
|
405
|
+
* Basic usage:
|
|
406
|
+
*
|
|
407
|
+
* ```js
|
|
408
|
+
* import { apprtFetchJson } from "apprt-fetch";
|
|
409
|
+
* const jsonData = await apprtFetchJson("https://httpbin.org/get");
|
|
410
|
+
* // do something with the json data
|
|
411
|
+
* ```
|
|
412
|
+
*/
|
|
413
|
+
export declare function apprtFetchJson<T = unknown>(target: ApprtRequestTarget, init?: ApprtRequestInit): Promise<T>;
|
|
414
|
+
/**
|
|
415
|
+
* Options for the {@link getProxiedUrl} function.
|
|
416
|
+
*/
|
|
417
|
+
export interface ProxyUrlOptions {
|
|
418
|
+
/** Force usage of default proxy if no proxy rule matches the given target URL. */
|
|
419
|
+
force?: boolean;
|
|
420
|
+
/** Return undefined if no proxy server is being used. */
|
|
421
|
+
check?: boolean;
|
|
422
|
+
}
|
|
423
|
+
/**
|
|
424
|
+
* Returns an URL to fetch the resource at `target` that uses a proxy server if necessary.
|
|
425
|
+
*
|
|
426
|
+
* By default, a proxy server will only be used if there is a matching proxy server rule.
|
|
427
|
+
* If `force` is `true`, the default proxy (if configured) will always be used if no other rule matches.
|
|
428
|
+
*
|
|
429
|
+
* The default configuration always returns a valid URL, even if no proxy server will be used.
|
|
430
|
+
* If `check` is `true`, the function will return `undefined` instead to signal that there was no matching rule.
|
|
431
|
+
*/
|
|
432
|
+
export declare function getProxiedUrl(target: ApprtRequestTarget): URL;
|
|
433
|
+
export declare function getProxiedUrl(target: ApprtRequestTarget, options?: ProxyUrlOptions & {
|
|
434
|
+
check?: false;
|
|
435
|
+
}): URL;
|
|
436
|
+
export declare function getProxiedUrl(target: ApprtRequestTarget, options?: ProxyUrlOptions): URL | undefined;
|
|
437
|
+
/**
|
|
438
|
+
* Represents a custom implementation of the apprt-fetch library.
|
|
439
|
+
* Used for testing.
|
|
440
|
+
*/
|
|
441
|
+
export interface CustomFetch {
|
|
442
|
+
/** A separate instance of the configuration (non-global). */
|
|
443
|
+
readonly config: Config;
|
|
444
|
+
/** Call this method to clean up any state associated with this instance. */
|
|
445
|
+
destroy(): void;
|
|
446
|
+
/** Fetches the given target and returns the response. */
|
|
447
|
+
fetch(target: ApprtRequestTarget, init?: ApprtRequestInit): Promise<Response>;
|
|
448
|
+
/** Fetches JSON data from the given target and returns the response data. */
|
|
449
|
+
fetchJson<T = unknown>(target: ApprtRequestTarget, init?: ApprtRequestInit): Promise<T>;
|
|
450
|
+
}
|
|
451
|
+
/** Function signature required by `createCustomFetch`. */
|
|
452
|
+
export declare type BasicFetchFunction = (request: Request) => Promise<Response>;
|
|
453
|
+
/**
|
|
454
|
+
* Creates a custom fetch instance with a user defined 'backend' function.
|
|
455
|
+
* This is useful for testing if you do not want your requests to against an actual backend service.
|
|
456
|
+
*
|
|
457
|
+
* The implementation returned by this function will implement all the usual features of apprt-fetch
|
|
458
|
+
* but will call the provided `impl` function instead of using the browser's `fetch` API
|
|
459
|
+
* to retrieve a response.
|
|
460
|
+
*/
|
|
461
|
+
export declare function createCustomFetch(options: {
|
|
462
|
+
impl: BasicFetchFunction;
|
|
463
|
+
}): CustomFetch;
|
|
464
|
+
/**
|
|
465
|
+
* Returns an implementation of `CustomFetch` that uses the global fetch function(s).
|
|
466
|
+
* This is convenient for writing testable code: a class can accept a `CustomFetch` instance
|
|
467
|
+
* for testing and for production.
|
|
468
|
+
*/
|
|
469
|
+
export declare function getGlobalImpl(): CustomFetch;
|
|
470
|
+
export { apprtFetch as fetch };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export declare type Protocol = "http:" | "https:";
|
|
2
|
+
export declare class OriginPattern {
|
|
3
|
+
readonly protocol: Protocol | undefined;
|
|
4
|
+
readonly hostname: string;
|
|
5
|
+
readonly port: string | undefined;
|
|
6
|
+
readonly path: string;
|
|
7
|
+
/**
|
|
8
|
+
* Attempts to parse a pattern from the given string.
|
|
9
|
+
* Throws an error if the pattern is invalid.
|
|
10
|
+
*/
|
|
11
|
+
static fromString(pattern: string): OriginPattern;
|
|
12
|
+
private constructor();
|
|
13
|
+
/**
|
|
14
|
+
* Returns true if `other` is equivalent to `this`, false otherwise.
|
|
15
|
+
*/
|
|
16
|
+
equalTo(other: OriginPattern): boolean;
|
|
17
|
+
/**
|
|
18
|
+
* Returns true if the given `url` matches this pattern,
|
|
19
|
+
* false otherwise.
|
|
20
|
+
*/
|
|
21
|
+
matches(url: URL): boolean;
|
|
22
|
+
/**
|
|
23
|
+
* Serialized this pattern to a normalized string representation.
|
|
24
|
+
*/
|
|
25
|
+
toString(): string;
|
|
26
|
+
}
|
|
@@ -187,6 +187,13 @@ export declare abstract class Stream<T> implements Iterable<T> {
|
|
|
187
187
|
* @param iterables the iterables to zip
|
|
188
188
|
*/
|
|
189
189
|
static zipLongest<Ts extends Iterable<any>[] | [Iterable<any>]>(...iterables: Ts): Stream<ZipLongestValue<Ts>>;
|
|
190
|
+
/**
|
|
191
|
+
* Generates [index, value] tuples where value is from the original iterable
|
|
192
|
+
* and index is the index of the current value.
|
|
193
|
+
*
|
|
194
|
+
* @see {@link Stream.enumerate}
|
|
195
|
+
*/
|
|
196
|
+
enumerate(): Stream<[index: number, value: T]>;
|
|
190
197
|
/**
|
|
191
198
|
* Returns a stream that filters the input by `predicate`. Only items for which `predicate(item)`
|
|
192
199
|
* returns true will be produced by the stream.
|
|
@@ -418,7 +425,7 @@ export declare abstract class Stream<T> implements Iterable<T> {
|
|
|
418
425
|
groupAdjacent(predicate: (left: T, right: T) => boolean): Stream<T[]>;
|
|
419
426
|
/**
|
|
420
427
|
* Returns a stream that has all its elements sorted according to the given `compareFunc`.
|
|
421
|
-
* The comparison function is optional, the Array sort
|
|
428
|
+
* The comparison function is optional, the Array sort behavior will be used by default when
|
|
422
429
|
* the function is omitted. The function must behave as expected by the `Array.sort()` method.
|
|
423
430
|
*
|
|
424
431
|
* See also: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort)
|
|
@@ -538,7 +545,7 @@ export declare abstract class Stream<T> implements Iterable<T> {
|
|
|
538
545
|
reduce<U>(reduceFunc: (currentValue: U, item: T, index: number) => U, initial: U): U;
|
|
539
546
|
/**
|
|
540
547
|
* Joins all elements of this stream together into a string.
|
|
541
|
-
* Individual elements will converted to string (via `String(elements)`)
|
|
548
|
+
* Individual elements will be converted to string (via `String(elements)`)
|
|
542
549
|
* and separated by `separator`.
|
|
543
550
|
*
|
|
544
551
|
* @param separator The separator to use between two elements. Defaults to `","`.
|
|
@@ -550,6 +557,48 @@ export declare abstract class Stream<T> implements Iterable<T> {
|
|
|
550
557
|
* NOTE: this will iterate over the entire stream!
|
|
551
558
|
*/
|
|
552
559
|
count(): number;
|
|
560
|
+
/**
|
|
561
|
+
* Returns `true` if there is at least one element in this stream, `false` otherwise.
|
|
562
|
+
*/
|
|
563
|
+
isEmpty(): boolean;
|
|
564
|
+
/**
|
|
565
|
+
* Returns the largest stream item according to the given `compareFunc`.
|
|
566
|
+
* If the multiple candidates for the largest element compare equal to each other,
|
|
567
|
+
* the first of those items (according to the stream order) will be returned.
|
|
568
|
+
*
|
|
569
|
+
* @param compareFunc
|
|
570
|
+
* Given two elements `left` and `right`, returns `< 0` if `left < right`, `> 0` if `right > left`
|
|
571
|
+
* and `0` otherwise.
|
|
572
|
+
* When not specified, elements are compared using standard `<` and `>` (which might be useless,
|
|
573
|
+
* e.g. when keys are objects or arrays).
|
|
574
|
+
*
|
|
575
|
+
* @returns the largest item or `undefined` if the stream is empty.
|
|
576
|
+
*/
|
|
577
|
+
max(compareFunc?: (left: T, right: T) => number): T | undefined;
|
|
578
|
+
/**
|
|
579
|
+
* Like {@link max}, but returns the smallest item instead.
|
|
580
|
+
*/
|
|
581
|
+
min(compareFunc?: (left: T, right: T) => number): T | undefined;
|
|
582
|
+
/**
|
|
583
|
+
* Like `max()`, but compares keys derived from the stream's items instead of the items themselves.
|
|
584
|
+
* The item with the largest key will be returned (or undefined if the stream is empty).
|
|
585
|
+
*
|
|
586
|
+
* @param keyFunc
|
|
587
|
+
* Given an item, returns a sort key for comparison during sorting.
|
|
588
|
+
* This function should be fast, because it will be invoked at least once for every element.
|
|
589
|
+
*
|
|
590
|
+
* @param compareFunc
|
|
591
|
+
* Given two keys derived by `keyFunc`, returns `< 0` if `left < right`, `> 0` if `right > left` and `0` otherwise.
|
|
592
|
+
* When not specified, keys are compared using standard `<` and `>` (which might be useless,
|
|
593
|
+
* e.g. when keys are objects or arrays).
|
|
594
|
+
*
|
|
595
|
+
* @returns the largest item or `undefined` if the stream is empty.
|
|
596
|
+
*/
|
|
597
|
+
maxBy<U>(keyFunc: (value: T) => U, compareFunc?: (left: U, right: U) => number): T | undefined;
|
|
598
|
+
/**
|
|
599
|
+
* Like {@link maxBy}, but returns the item with the smallest key instead.
|
|
600
|
+
*/
|
|
601
|
+
minBy<U>(keyFunc: (value: T) => U, compareFunc?: (left: U, right: U) => number): T | undefined;
|
|
553
602
|
/**
|
|
554
603
|
* Gathers all elements of this stream into an array.
|
|
555
604
|
*
|
|
@@ -573,7 +622,7 @@ export declare abstract class Stream<T> implements Iterable<T> {
|
|
|
573
622
|
* .toObject(); // { a: "a!", b: "b!", c: "c!"}
|
|
574
623
|
* ```
|
|
575
624
|
*/
|
|
576
|
-
toObject(this: T extends [PropertyKey, any] ? this : never): T extends [infer K, infer V] ?
|
|
625
|
+
toObject(this: T extends [PropertyKey, any] ? this : never): T extends [infer K, infer V] ? [K] extends [PropertyKey] ? Record<K, V> : never : never;
|
|
577
626
|
/**
|
|
578
627
|
* Gathers all elements of this stream into a set.
|
|
579
628
|
*
|
|
@@ -610,7 +659,7 @@ export declare abstract class Stream<T> implements Iterable<T> {
|
|
|
610
659
|
*
|
|
611
660
|
* ```js
|
|
612
661
|
* for (const value of Stream.integers(5)) {
|
|
613
|
-
* console.
|
|
662
|
+
* console.info(value);
|
|
614
663
|
* }
|
|
615
664
|
* ```
|
|
616
665
|
*/
|
|
@@ -6,9 +6,6 @@ export declare const EMPTY: StreamPiece<any>;
|
|
|
6
6
|
export declare function from<T>(input: Iterable<T>): StreamPiece<T> & {
|
|
7
7
|
_input: Iterable<T>;
|
|
8
8
|
};
|
|
9
|
-
export declare function singleton<T>(item: T): StreamPiece<T> & {
|
|
10
|
-
_item: T;
|
|
11
|
-
};
|
|
12
9
|
export declare function keys<K extends string, T>(input: Record<K, T>): StreamPiece<K> & {
|
|
13
10
|
_input: Record<K, T>;
|
|
14
11
|
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { TokenService } from "./api";
|
|
2
|
+
import type { InjectedReference } from "apprt-core/InjectedReference";
|
|
3
|
+
import { BeforeInterceptorData, Interceptor } from "apprt-fetch";
|
|
4
|
+
export declare class TokenRequestInterceptor implements Interceptor {
|
|
5
|
+
#private;
|
|
6
|
+
set tokenService(service: InjectedReference<TokenService>);
|
|
7
|
+
activate(): void;
|
|
8
|
+
deactivate(): void;
|
|
9
|
+
before?({ target, context, options, signal }: BeforeInterceptorData): Promise<void>;
|
|
10
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { TokenService, TokenLookupResult, AbortOptions } from "./api";
|
|
2
|
+
import { apprtFetchJson } from "apprt-fetch";
|
|
2
3
|
/**
|
|
3
4
|
* The default token service implementation communicates with the `/account/tokens` endpoint to lookup matching tokens.
|
|
4
5
|
* This service is only active if the security.mode is OAUTH.
|
|
@@ -12,6 +13,9 @@ import type { TokenService, TokenLookupResult, AbortOptions } from "./api";
|
|
|
12
13
|
*/
|
|
13
14
|
export declare class TokenServiceImpl implements TokenService {
|
|
14
15
|
#private;
|
|
16
|
+
constructor(options?: {
|
|
17
|
+
fetchJson?: typeof apprtFetchJson;
|
|
18
|
+
});
|
|
15
19
|
set _properties(value: ConfigProperties);
|
|
16
20
|
findDirectAvailableTokenFor(target: string): TokenLookupResult | undefined;
|
|
17
21
|
findTokenFor(target: string, { signal }?: AbortOptions): Promise<TokenLookupResult | undefined>;
|
package/apprt-tokens/module.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare
|
|
1
|
+
declare const _default: any;
|
|
2
2
|
export default _default;
|
package/appsoverview/module.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export { default as DataViewController } from "./DataViewController";
|
package/appsstore/AppStore.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare
|
|
1
|
+
declare const _default: any;
|
|
2
2
|
export default _default;
|