@clickview/player 0.0.3-rc.0 → 0.0.3-rc.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/dist/en.json +393 -0
- package/dist/libs/analytics/src/Analytics.d.ts +10 -0
- package/dist/libs/analytics/src/AnalyticsHelper.d.ts +30 -0
- package/dist/libs/analytics/src/clients/CollectionApiClient.d.ts +48 -0
- package/dist/libs/analytics/src/constants/CountryRegionMapping.d.ts +7 -0
- package/dist/libs/analytics/src/constants/EventFirehose.d.ts +4 -0
- package/dist/libs/analytics/src/constants/GlobalChannels.d.ts +3 -0
- package/dist/libs/analytics/src/constants/Regions.d.ts +6 -0
- package/dist/libs/analytics/src/constants/Services.d.ts +4 -0
- package/dist/libs/analytics/src/enums/CountryCode.d.ts +5 -0
- package/dist/libs/analytics/src/enums/RegionName.d.ts +5 -0
- package/dist/libs/analytics/src/interfaces/AnalyticsTypes.d.ts +342 -0
- package/dist/libs/analytics/src/interfaces/Config.d.ts +3 -0
- package/dist/libs/analytics/src/interfaces/Folder.d.ts +3 -0
- package/dist/libs/analytics/src/interfaces/HashObject.d.ts +3 -0
- package/dist/libs/analytics/src/interfaces/Owner.d.ts +3 -0
- package/dist/libs/analytics/src/interfaces/Playlist.d.ts +3 -0
- package/dist/libs/analytics/src/interfaces/Rating.d.ts +4 -0
- package/dist/libs/analytics/src/interfaces/Region.d.ts +5 -0
- package/dist/libs/analytics/src/interfaces/RegionalUrl.d.ts +5 -0
- package/dist/libs/analytics/src/interfaces/Resource.d.ts +5 -0
- package/dist/libs/analytics/src/interfaces/Series.d.ts +3 -0
- package/dist/libs/analytics/src/interfaces/Subtitle.d.ts +4 -0
- package/dist/libs/analytics/src/interfaces/User.d.ts +17 -0
- package/dist/libs/analytics/src/interfaces/VersionData.d.ts +4 -0
- package/dist/libs/analytics/src/interfaces/Video.d.ts +16 -0
- package/dist/libs/analytics/src/interfaces/index.d.ts +15 -0
- package/dist/libs/analytics/src/interfaces/primitives/BaseObject.d.ts +7 -0
- package/dist/libs/analytics/src/models/AnalyticsEvent.d.ts +49 -0
- package/dist/libs/analytics/src/models/CollectionEvent.d.ts +61 -0
- package/dist/libs/analytics/src/services/ContextService.d.ts +19 -0
- package/dist/libs/analytics/src/utils/CollectionApiClientHelper.d.ts +6 -0
- package/dist/libs/analytics/src/utils/DataFormatHelper.d.ts +14 -0
- package/dist/libs/analytics/src/utils/EventWhitelistHelper.d.ts +19 -0
- package/dist/libs/analytics/src/utils/TypeHelper.d.ts +4 -0
- package/dist/libs/analytics/src/utils/UploadDataFormatHelper.d.ts +10 -0
- package/dist/libs/analytics/src/utils/UrlHelper.d.ts +3 -0
- package/dist/libs/analytics/src/utils/UserAgentHelper.d.ts +10 -0
- package/dist/libs/analytics/src/utils/VideoDataFormatHelper.d.ts +42 -0
- package/dist/libs/common/src/backbone/constants/CommonChannels.d.ts +5 -0
- package/dist/libs/common/src/backbone/constants/CommonServices.d.ts +4 -0
- package/dist/libs/common/src/backbone/core/AppLink.d.ts +38 -0
- package/dist/libs/common/src/backbone/core/BaseAppRouter.d.ts +103 -0
- package/dist/libs/common/src/backbone/core/BaseApplication.d.ts +76 -0
- package/dist/libs/common/src/backbone/core/BaseBehavior.d.ts +6 -0
- package/dist/libs/common/src/backbone/core/BaseCollection.d.ts +7 -0
- package/dist/libs/common/src/backbone/core/BaseCollectionView.d.ts +16 -0
- package/dist/libs/common/src/backbone/core/BaseError.d.ts +18 -0
- package/dist/libs/common/src/backbone/core/BaseLayoutView.d.ts +11 -0
- package/dist/libs/common/src/backbone/core/BaseModel.d.ts +27 -0
- package/dist/libs/common/src/backbone/core/BaseNestedModel.d.ts +21 -0
- package/dist/libs/common/src/backbone/core/BaseService.d.ts +10 -0
- package/dist/libs/common/src/backbone/core/BaseView.d.ts +131 -0
- package/dist/libs/common/src/backbone/core/EventNames.d.ts +16 -0
- package/dist/libs/common/src/backbone/core/LayoutService.d.ts +31 -0
- package/dist/libs/common/src/backbone/core/ListenToRadio.d.ts +3 -0
- package/dist/libs/common/src/backbone/core/LocationUtils.d.ts +24 -0
- package/dist/libs/common/src/backbone/core/Middleware.d.ts +10 -0
- package/dist/libs/common/src/backbone/core/Shell.d.ts +79 -0
- package/dist/libs/common/src/backbone/core/Types.d.ts +12 -0
- package/dist/libs/common/src/backbone/core/index.d.ts +27 -0
- package/dist/libs/common/src/backbone/enums/DataServiceErrorType.d.ts +8 -0
- package/dist/libs/common/src/backbone/enums/HttpStatus.d.ts +10 -0
- package/dist/libs/common/src/backbone/enums/HttpVerbs.d.ts +6 -0
- package/dist/libs/common/src/backbone/errors/DevError.d.ts +4 -0
- package/dist/libs/common/src/backbone/index.d.ts +2 -0
- package/dist/libs/common/src/backbone/interfaces/BaseCollectionIdentifier.d.ts +19 -0
- package/dist/libs/common/src/backbone/interfaces/ChainableDataService.d.ts +9 -0
- package/dist/libs/common/src/backbone/interfaces/DataCache.d.ts +8 -0
- package/dist/libs/common/src/backbone/interfaces/DataProvider.d.ts +15 -0
- package/dist/libs/common/src/backbone/interfaces/DataServiceError.d.ts +7 -0
- package/dist/libs/common/src/backbone/interfaces/DataServiceRequests.d.ts +218 -0
- package/dist/libs/common/src/backbone/interfaces/Pagination.d.ts +33 -0
- package/dist/libs/common/src/backbone/interfaces/StickitBinding.d.ts +38 -0
- package/dist/libs/common/src/backbone/interfaces/Xhr.d.ts +9 -0
- package/dist/libs/common/src/backbone/interfaces/index.d.ts +9 -0
- package/dist/libs/common/src/backbone/services/EnvironmentVariables.d.ts +13 -0
- package/dist/libs/common/src/backbone/services/LanguageService.d.ts +22 -0
- package/dist/libs/common/src/backbone/utils/FunctionHelper.d.ts +8 -0
- package/dist/libs/common/src/backbone/utils/UrlHelper.d.ts +14 -0
- package/dist/libs/common/src/react/flight/FlightHelpers.d.ts +14 -0
- package/dist/libs/common/src/react/flight/FlightMiddleware.d.ts +11 -0
- package/dist/libs/common/src/react/flight/FlightReducer.d.ts +2 -0
- package/dist/libs/common/src/react/flight/FlightSimulator.d.ts +24 -0
- package/dist/libs/common/src/react/flight/constants/Actions.d.ts +7 -0
- package/dist/libs/common/src/react/flight/constants/index.d.ts +1 -0
- package/dist/libs/common/src/react/flight/data-layers/AjaxRequest.d.ts +2 -0
- package/dist/libs/common/src/react/flight/data-layers/index.d.ts +1 -0
- package/dist/libs/common/src/react/flight/enums/RequestStatus.d.ts +6 -0
- package/dist/libs/common/src/react/flight/enums/index.d.ts +1 -0
- package/dist/libs/common/src/react/flight/index.d.ts +9 -0
- package/dist/libs/common/src/react/flight/interfaces/Action.d.ts +28 -0
- package/dist/libs/common/src/react/flight/interfaces/Dispatch.d.ts +3 -0
- package/dist/libs/common/src/react/flight/interfaces/FlightState.d.ts +22 -0
- package/dist/libs/common/src/react/flight/interfaces/HttpRequest.d.ts +27 -0
- package/dist/libs/common/src/react/flight/interfaces/NormalizeOptions.d.ts +4 -0
- package/dist/libs/common/src/react/flight/interfaces/NormalizedData.d.ts +7 -0
- package/dist/libs/common/src/react/flight/interfaces/Request.d.ts +29 -0
- package/dist/libs/common/src/react/flight/interfaces/Response.d.ts +9 -0
- package/dist/libs/common/src/react/flight/interfaces/UpdateStateOptions.d.ts +15 -0
- package/dist/libs/common/src/react/flight/interfaces/index.d.ts +9 -0
- package/dist/libs/common/src/react/flight/normalizer/Denormalizer.d.ts +3 -0
- package/dist/libs/common/src/react/flight/normalizer/Normalizer.d.ts +8 -0
- package/dist/libs/common/src/react/flight/normalizer/index.d.ts +2 -0
- package/dist/libs/common/src/react/flight/utils/SimulatorHelper.d.ts +5 -0
- package/dist/libs/common/src/react/flight/utils/StateHelper.d.ts +11 -0
- package/dist/libs/common/src/react/flight/utils/index.d.ts +2 -0
- package/dist/libs/common/src/react/interfaces/ApplicationData.d.ts +3 -0
- package/dist/libs/common/src/react/interfaces/ApplicationState.d.ts +8 -0
- package/dist/libs/common/src/react/interfaces/BaseReducerActions.d.ts +4 -0
- package/dist/libs/common/src/react/interfaces/HashObject.d.ts +3 -0
- package/dist/libs/common/src/react/interfaces/index.d.ts +4 -0
- package/dist/libs/common/src/react/utils/ArrayHelper.d.ts +44 -0
- package/dist/libs/common/src/react/utils/ObjectHelper.d.ts +11 -0
- package/dist/libs/common/src/react/utils/RandomHelper.d.ts +3 -0
- package/dist/libs/common/src/react/utils/TimeHelper.d.ts +8 -0
- package/dist/libs/shared/src/apps/notifications/enums/NotificationType.d.ts +16 -0
- package/dist/libs/shared/src/apps/upload/constants/UploadConstants.d.ts +39 -0
- package/dist/libs/shared/src/components/actions/ActionButton.d.ts +16 -0
- package/dist/libs/shared/src/components/actions/Actions.d.ts +28 -0
- package/dist/libs/shared/src/components/actions/ActionsDropdown.d.ts +15 -0
- package/dist/libs/shared/src/components/app-link/AppLink.d.ts +21 -0
- package/dist/libs/shared/src/components/avatar/Avatar.d.ts +8 -0
- package/dist/libs/shared/src/components/div-button/DivButton.d.ts +10 -0
- package/dist/libs/shared/src/components/feedback-tooltip/FeedbackTooltip.d.ts +6 -0
- package/dist/libs/shared/src/components/icon-button/IconButton.d.ts +19 -0
- package/dist/libs/shared/src/components/image-cropper/SimpleCropper.d.ts +15 -0
- package/dist/libs/shared/src/components/immersive-reader/ImmersiveReader.d.ts +14 -0
- package/dist/libs/shared/src/components/interactive-questions/InteractiveQuestions.d.ts +12 -0
- package/dist/libs/shared/src/components/interactive-questions/formatAnnotationText.d.ts +1 -0
- package/dist/libs/shared/src/components/lazy-image/LazyImage.d.ts +7 -0
- package/dist/libs/shared/src/components/popup/Popup.d.ts +35 -0
- package/dist/libs/shared/src/components/popup/PopupButtons.d.ts +14 -0
- package/dist/libs/shared/src/components/popup/PopupLoadingSpinner.d.ts +2 -0
- package/dist/libs/shared/src/components/spinner-button/SpinnerButton.d.ts +8 -0
- package/dist/libs/shared/src/components/svg-container/SvgContainer.d.ts +21 -0
- package/dist/libs/shared/src/components/svgs/interaction-types/InteractionTypes.d.ts +7 -0
- package/dist/libs/shared/src/components/text/Text.d.ts +13 -0
- package/dist/libs/shared/src/components/thumbnails/base/BaseThumbnail.d.ts +26 -0
- package/dist/libs/shared/src/components/tooltip/Tooltip.d.ts +17 -0
- package/dist/libs/shared/src/components/widgets/items/resource-widget-item/ResourceWidgetItem.d.ts +23 -0
- package/dist/libs/shared/src/constants/AppVariables.d.ts +6 -0
- package/dist/libs/shared/src/constants/ImageSizes.d.ts +8 -0
- package/dist/libs/shared/src/constants/RadioChannels.d.ts +20 -0
- package/dist/libs/shared/src/enums/ClassificationStatus.d.ts +5 -0
- package/dist/libs/shared/src/enums/ClassificationType.d.ts +4 -0
- package/dist/libs/shared/src/enums/CountryCode.d.ts +5 -0
- package/dist/libs/shared/src/enums/CurationStatus.d.ts +12 -0
- package/dist/libs/shared/src/enums/CurriculumType.d.ts +6 -0
- package/dist/libs/shared/src/enums/CustomerType.d.ts +11 -0
- package/dist/libs/shared/src/enums/GlanceFormat.d.ts +3 -0
- package/dist/libs/shared/src/enums/Images.d.ts +27 -0
- package/dist/libs/shared/src/enums/InteractionCorrectness.d.ts +8 -0
- package/dist/libs/shared/src/enums/InteractiveAnswerStatus.d.ts +5 -0
- package/dist/libs/shared/src/enums/InteractiveOriginType.d.ts +4 -0
- package/dist/libs/shared/src/enums/MasterType.d.ts +61 -0
- package/dist/libs/shared/src/enums/MediaQueries.d.ts +20 -0
- package/dist/libs/shared/src/enums/ObjectStatus.d.ts +5 -0
- package/dist/libs/shared/src/enums/PlaylistPrivacy.d.ts +5 -0
- package/dist/libs/shared/src/enums/PresentationStatus.d.ts +4 -0
- package/dist/libs/shared/src/enums/PresentationType.d.ts +4 -0
- package/dist/libs/shared/src/enums/ResourceFileType.d.ts +9 -0
- package/dist/libs/shared/src/enums/SettingKind.d.ts +4 -0
- package/dist/libs/shared/src/enums/SettingName.d.ts +19 -0
- package/dist/libs/shared/src/enums/StaffRequestRole.d.ts +5 -0
- package/dist/libs/shared/src/enums/ThemeType.d.ts +3 -0
- package/dist/libs/shared/src/enums/UserGroup.d.ts +5 -0
- package/dist/libs/shared/src/enums/UserRole.d.ts +15 -0
- package/dist/libs/shared/src/enums/WidgetContents.d.ts +12 -0
- package/dist/libs/shared/src/errors/primitives/DialogError.d.ts +9 -0
- package/dist/libs/shared/src/hooks/UseGetMediaQueryString.d.ts +2 -0
- package/dist/libs/shared/src/hooks/UseLazyLoad.d.ts +6 -0
- package/dist/libs/shared/src/hooks/UseMediaQuery.d.ts +1 -0
- package/dist/libs/shared/src/hooks/UseVideoDragDropState.d.ts +6 -0
- package/dist/libs/shared/src/hooks/useNavLock.d.ts +11 -0
- package/dist/libs/shared/src/images/svg/ImportedSvgs.d.ts +91 -0
- package/dist/libs/shared/src/images/svg/actions/index.d.ts +25 -0
- package/dist/libs/shared/src/images/svg/arrows/index.d.ts +9 -0
- package/dist/libs/shared/src/images/svg/index.d.ts +2 -0
- package/dist/libs/shared/src/images/svg/objects/index.d.ts +38 -0
- package/dist/libs/shared/src/images/svg/player/index.d.ts +14 -0
- package/dist/libs/shared/src/images/svg/settings.d.ts +1 -0
- package/dist/libs/shared/src/images/svg/status/index.d.ts +13 -0
- package/dist/libs/shared/src/interfaces/AppLinkWithLabel.d.ts +5 -0
- package/dist/libs/shared/src/interfaces/DialogOptions.d.ts +13 -0
- package/dist/libs/shared/src/interfaces/ImageUrls.d.ts +16 -0
- package/dist/libs/shared/src/interfaces/QueryParams.d.ts +3 -0
- package/dist/libs/shared/src/interfaces/RegionalUrl.d.ts +5 -0
- package/dist/libs/shared/src/interfaces/VideoTypes.d.ts +2 -0
- package/dist/libs/shared/src/interfaces/WidgetContext.d.ts +9 -0
- package/dist/libs/shared/src/interfaces/app-variables/BaseNotificationsAppVariables.d.ts +16 -0
- package/dist/libs/shared/src/interfaces/app-variables/BaseSearchAppVariables.d.ts +18 -0
- package/dist/libs/shared/src/interfaces/app-variables/index.d.ts +2 -0
- package/dist/libs/shared/src/interfaces/collections/AudienceCollection.d.ts +4 -0
- package/dist/libs/shared/src/interfaces/collections/CategoryCollection.d.ts +4 -0
- package/dist/libs/shared/src/interfaces/collections/ClassificationCollection.d.ts +4 -0
- package/dist/libs/shared/src/interfaces/collections/ClassroomCollection.d.ts +4 -0
- package/dist/libs/shared/src/interfaces/collections/ClassroomGroupCollection.d.ts +4 -0
- package/dist/libs/shared/src/interfaces/collections/ClipCollection.d.ts +4 -0
- package/dist/libs/shared/src/interfaces/collections/CompanyCollection.d.ts +3 -0
- package/dist/libs/shared/src/interfaces/collections/CustomerCollection.d.ts +4 -0
- package/dist/libs/shared/src/interfaces/collections/FolderCollection.d.ts +4 -0
- package/dist/libs/shared/src/interfaces/collections/InteractiveCollection.d.ts +4 -0
- package/dist/libs/shared/src/interfaces/collections/LibraryCollection.d.ts +4 -0
- package/dist/libs/shared/src/interfaces/collections/LinkCollection.d.ts +4 -0
- package/dist/libs/shared/src/interfaces/collections/PersonCollection.d.ts +3 -0
- package/dist/libs/shared/src/interfaces/collections/PlaylistCollection.d.ts +4 -0
- package/dist/libs/shared/src/interfaces/collections/PresentationAudienceCollection.d.ts +4 -0
- package/dist/libs/shared/src/interfaces/collections/ResourceCollection.d.ts +3 -0
- package/dist/libs/shared/src/interfaces/collections/SeriesCollection.d.ts +4 -0
- package/dist/libs/shared/src/interfaces/collections/SubtitleCollection.d.ts +3 -0
- package/dist/libs/shared/src/interfaces/collections/TagCollection.d.ts +4 -0
- package/dist/libs/shared/src/interfaces/collections/UserCollection.d.ts +3 -0
- package/dist/libs/shared/src/interfaces/collections/VideoCollection.d.ts +4 -0
- package/dist/libs/shared/src/interfaces/collections/VideoHistoryCollection.d.ts +4 -0
- package/dist/libs/shared/src/interfaces/collections/WidgetCollection.d.ts +3 -0
- package/dist/libs/shared/src/interfaces/collections/YearGroupCollection.d.ts +3 -0
- package/dist/libs/shared/src/interfaces/collections/index.d.ts +26 -0
- package/dist/libs/shared/src/interfaces/collections/primitives/BasePaginatedCollection.d.ts +7 -0
- package/dist/libs/shared/src/interfaces/collections/primitives/index.d.ts +1 -0
- package/dist/libs/shared/src/interfaces/index.d.ts +14 -0
- package/dist/libs/shared/src/interfaces/models/Audience.d.ts +3 -0
- package/dist/libs/shared/src/interfaces/models/Avatar.d.ts +3 -0
- package/dist/libs/shared/src/interfaces/models/Banner.d.ts +3 -0
- package/dist/libs/shared/src/interfaces/models/Category.d.ts +3 -0
- package/dist/libs/shared/src/interfaces/models/Channel.d.ts +3 -0
- package/dist/libs/shared/src/interfaces/models/Classification.d.ts +22 -0
- package/dist/libs/shared/src/interfaces/models/Classroom.d.ts +5 -0
- package/dist/libs/shared/src/interfaces/models/ClassroomGroup.d.ts +17 -0
- package/dist/libs/shared/src/interfaces/models/Clip.d.ts +14 -0
- package/dist/libs/shared/src/interfaces/models/Company.d.ts +3 -0
- package/dist/libs/shared/src/interfaces/models/Config.d.ts +22 -0
- package/dist/libs/shared/src/interfaces/models/Country.d.ts +5 -0
- package/dist/libs/shared/src/interfaces/models/Cover.d.ts +3 -0
- package/dist/libs/shared/src/interfaces/models/Curriculum.d.ts +23 -0
- package/dist/libs/shared/src/interfaces/models/Customer.d.ts +8 -0
- package/dist/libs/shared/src/interfaces/models/EntitySetting.d.ts +9 -0
- package/dist/libs/shared/src/interfaces/models/FileUpload.d.ts +20 -0
- package/dist/libs/shared/src/interfaces/models/Folder.d.ts +7 -0
- package/dist/libs/shared/src/interfaces/models/Following.d.ts +4 -0
- package/dist/libs/shared/src/interfaces/models/Glance.d.ts +9 -0
- package/dist/libs/shared/src/interfaces/models/Group.d.ts +3 -0
- package/dist/libs/shared/src/interfaces/models/HeroBanner.d.ts +3 -0
- package/dist/libs/shared/src/interfaces/models/Image.d.ts +7 -0
- package/dist/libs/shared/src/interfaces/models/InteractiveMetadata.d.ts +27 -0
- package/dist/libs/shared/src/interfaces/models/Language.d.ts +4 -0
- package/dist/libs/shared/src/interfaces/models/LanguageConfig.d.ts +5 -0
- package/dist/libs/shared/src/interfaces/models/Library.d.ts +8 -0
- package/dist/libs/shared/src/interfaces/models/Link.d.ts +4 -0
- package/dist/libs/shared/src/interfaces/models/Organisation.d.ts +3 -0
- package/dist/libs/shared/src/interfaces/models/Pdf.d.ts +4 -0
- package/dist/libs/shared/src/interfaces/models/Person.d.ts +3 -0
- package/dist/libs/shared/src/interfaces/models/PlayerViewKey.d.ts +3 -0
- package/dist/libs/shared/src/interfaces/models/Playlist.d.ts +20 -0
- package/dist/libs/shared/src/interfaces/models/Poster.d.ts +3 -0
- package/dist/libs/shared/src/interfaces/models/Presentation.d.ts +9 -0
- package/dist/libs/shared/src/interfaces/models/PresentationAudience.d.ts +6 -0
- package/dist/libs/shared/src/interfaces/models/Rating.d.ts +5 -0
- package/dist/libs/shared/src/interfaces/models/Resource.d.ts +17 -0
- package/dist/libs/shared/src/interfaces/models/Restriction.d.ts +6 -0
- package/dist/libs/shared/src/interfaces/models/Season.d.ts +4 -0
- package/dist/libs/shared/src/interfaces/models/Series.d.ts +10 -0
- package/dist/libs/shared/src/interfaces/models/Share.d.ts +9 -0
- package/dist/libs/shared/src/interfaces/models/Subject.d.ts +13 -0
- package/dist/libs/shared/src/interfaces/models/Subtitle.d.ts +7 -0
- package/dist/libs/shared/src/interfaces/models/Tag.d.ts +3 -0
- package/dist/libs/shared/src/interfaces/models/TallPoster.d.ts +3 -0
- package/dist/libs/shared/src/interfaces/models/Theme.d.ts +14 -0
- package/dist/libs/shared/src/interfaces/models/Thumbnail.d.ts +6 -0
- package/dist/libs/shared/src/interfaces/models/User.d.ts +95 -0
- package/dist/libs/shared/src/interfaces/models/UserChannel.d.ts +7 -0
- package/dist/libs/shared/src/interfaces/models/Video.d.ts +40 -0
- package/dist/libs/shared/src/interfaces/models/VideoHistory.d.ts +12 -0
- package/dist/libs/shared/src/interfaces/models/Widget.d.ts +16 -0
- package/dist/libs/shared/src/interfaces/models/YearGroup.d.ts +5 -0
- package/dist/libs/shared/src/interfaces/models/index.d.ts +59 -0
- package/dist/libs/shared/src/interfaces/models/interactive/ActionableItem.d.ts +6 -0
- package/dist/libs/shared/src/interfaces/models/interactive/Interaction.d.ts +14 -0
- package/dist/libs/shared/src/interfaces/models/interactive/InteractionTypeId.d.ts +8 -0
- package/dist/libs/shared/src/interfaces/models/interactive/Interactive.d.ts +7 -0
- package/dist/libs/shared/src/interfaces/models/interactive/Timepoint.d.ts +9 -0
- package/dist/libs/shared/src/interfaces/models/interactive/index.d.ts +5 -0
- package/dist/libs/shared/src/interfaces/models/interactive-results/InteractiveResult.d.ts +5 -0
- package/dist/libs/shared/src/interfaces/models/interactive-results/InteractiveResultSet.d.ts +6 -0
- package/dist/libs/shared/src/interfaces/models/interactive-results/StudentAnswer.d.ts +9 -0
- package/dist/libs/shared/src/interfaces/models/interactive-results/StudentAttempt.d.ts +6 -0
- package/dist/libs/shared/src/interfaces/models/interactive-results/StudentResult.d.ts +6 -0
- package/dist/libs/shared/src/interfaces/models/interactive-results/index.d.ts +5 -0
- package/dist/libs/shared/src/interfaces/models/primitives/BaseObject.d.ts +10 -0
- package/dist/libs/shared/src/interfaces/models/primitives/VirtualObject.d.ts +5 -0
- package/dist/libs/shared/src/interfaces/models/primitives/index.d.ts +2 -0
- package/dist/libs/shared/src/interfaces/props/ViewProps.d.ts +8 -0
- package/dist/libs/shared/src/interfaces/props/index.d.ts +1 -0
- package/dist/libs/shared/src/interfaces/requests/CreateInteractiveMetadataRequest.d.ts +12 -0
- package/dist/libs/shared/src/interfaces/requests/CreateInteractiveRequest.d.ts +5 -0
- package/dist/libs/shared/src/interfaces/requests/CreateOrUpdateClipRequest.d.ts +6 -0
- package/dist/libs/shared/src/interfaces/requests/CreateViewKeyRequest.d.ts +3 -0
- package/dist/libs/shared/src/interfaces/requests/EditDetailsRequest.d.ts +5 -0
- package/dist/libs/shared/src/interfaces/requests/EditInteractiveMetadataOriginRequest.d.ts +5 -0
- package/dist/libs/shared/src/interfaces/requests/EditInteractiveMetadataRequest.d.ts +6 -0
- package/dist/libs/shared/src/interfaces/requests/EditInteractiveRequest.d.ts +6 -0
- package/dist/libs/shared/src/interfaces/requests/ReorderRequest.d.ts +12 -0
- package/dist/libs/shared/src/interfaces/requests/UpdateObjectChannel.d.ts +3 -0
- package/dist/libs/shared/src/interfaces/requests/UpdateObjectRating.d.ts +3 -0
- package/dist/libs/shared/src/interfaces/requests/UpdateResourceRequest.d.ts +3 -0
- package/dist/libs/shared/src/interfaces/requests/UpdateVideoRequest.d.ts +9 -0
- package/dist/libs/shared/src/interfaces/requests/index.d.ts +13 -0
- package/dist/libs/shared/src/interfaces/services/BaseConfigDataService.d.ts +5 -0
- package/dist/libs/shared/src/interfaces/services/BaseLibraryDataService.d.ts +10 -0
- package/dist/libs/shared/src/interfaces/services/BaseSeriesDataService.d.ts +4 -0
- package/dist/libs/shared/src/interfaces/services/BaseSettingsDataService.d.ts +7 -0
- package/dist/libs/shared/src/interfaces/services/BaseUserDataService.d.ts +6 -0
- package/dist/libs/shared/src/interfaces/services/BaseVideoDataService.d.ts +5 -0
- package/dist/libs/shared/src/interfaces/services/BaseVideoUploadDataService.d.ts +8 -0
- package/dist/libs/shared/src/interfaces/services/index.d.ts +7 -0
- package/dist/libs/shared/src/utils/DialogHelper.d.ts +24 -0
- package/dist/libs/shared/src/utils/DurationHelper.d.ts +7 -0
- package/dist/libs/shared/src/utils/ImageHelper.d.ts +32 -0
- package/dist/libs/shared/src/utils/ImageSelectHelper.d.ts +7 -0
- package/dist/libs/shared/src/utils/SvgHelper.d.ts +18 -0
- package/dist/libs/shared/src/utils/UserHelper.d.ts +3 -0
- package/dist/libs/shared/src/utils/interaction-type-helper/InteractionTypeHelper.d.ts +16 -0
- package/dist/player-app.css +2436 -0
- package/dist/player-app.js +5657 -0
- package/dist/projects/player/src/components/chapter-bar-items/chapter-bar-item.d.ts +79 -0
- package/dist/projects/player/src/components/chapter-bar-items/chapter-bar-items.d.ts +55 -0
- package/dist/projects/player/src/components/chapter-bar-items/chapter-bar-load-progress.d.ts +55 -0
- package/dist/projects/player/src/components/chapter-bar-items/chapter-bar-play-progress.d.ts +55 -0
- package/dist/projects/player/src/components/chapter-seek-bar/chapter-seek-bar.d.ts +1 -0
- package/dist/projects/player/src/components/chapters-button/chapter-menu-item.d.ts +60 -0
- package/dist/projects/player/src/components/chapters-button/chapters-button.d.ts +1 -0
- package/dist/projects/player/src/components/cog-button/cog-button.d.ts +41 -0
- package/dist/projects/player/src/components/collapserator/collapserator.d.ts +4 -0
- package/dist/projects/player/src/components/mouse-time-display/mouse-time-display.d.ts +3 -0
- package/dist/projects/player/src/components/next-video-menu-item/next-video-menu-item.d.ts +1 -0
- package/dist/projects/player/src/components/playback-rate-button/playback-rate-button.d.ts +1 -0
- package/dist/projects/player/src/components/player/player.d.ts +7 -0
- package/dist/projects/player/src/components/progress-control/progress-control.d.ts +12 -0
- package/dist/projects/player/src/components/quality-selector/quality-button.d.ts +1 -0
- package/dist/projects/player/src/components/quality-selector/quality-menu-item.d.ts +17 -0
- package/dist/projects/player/src/components/subs-caps-button/subs-caps-button.d.ts +1 -0
- package/dist/projects/player/src/components/thumbnail-display/thumbnail-display.d.ts +66 -0
- package/dist/projects/player/src/components/time-tooltip/time-tooltip.d.ts +15 -0
- package/dist/projects/player/src/components/time-wrapper/time-wrapper.d.ts +1 -0
- package/dist/projects/player/src/index.d.ts +9 -0
- package/dist/projects/player/src/interfaces/CollapsibleComponent.d.ts +10 -0
- package/dist/projects/player/src/interfaces/NextVideo.d.ts +4 -0
- package/dist/projects/player/src/interfaces/models/ApiError.d.ts +4 -0
- package/dist/projects/player/src/interfaces/models/ClipData.d.ts +4 -0
- package/dist/projects/player/src/interfaces/models/Config.d.ts +7 -0
- package/dist/projects/player/src/interfaces/models/PlaybackObject.d.ts +53 -0
- package/dist/projects/player/src/players/base-player.d.ts +85 -0
- package/dist/projects/player/src/players/create-clip-player.d.ts +18 -0
- package/dist/projects/player/src/players/interactive-player.d.ts +28 -0
- package/dist/projects/player/src/players/player.d.ts +27 -0
- package/dist/projects/player/src/plugins/clip-plugin/clip-plugin.d.ts +50 -0
- package/dist/projects/player/src/plugins/create-clip-button-plugin/components/create-clip-button.d.ts +1 -0
- package/dist/projects/player/src/plugins/create-clip-button-plugin/create-clip-button-plugin.d.ts +10 -0
- package/dist/projects/player/src/plugins/create-clip-plugin/components/clip-timepoint-selector/clip-timepoint-selector-handle.d.ts +54 -0
- package/dist/projects/player/src/plugins/create-clip-plugin/components/clip-timepoint-selector/clip-timepoint-selector.d.ts +90 -0
- package/dist/projects/player/src/plugins/create-clip-plugin/components/create-clip-seek-bar/create-clip-seek-bar.d.ts +14 -0
- package/dist/projects/player/src/plugins/create-clip-plugin/create-clip-plugin.d.ts +14 -0
- package/dist/projects/player/src/plugins/example-plugin/components/example-button/example-button.d.ts +1 -0
- package/dist/projects/player/src/plugins/example-plugin/components/example-react-button/example-react-button.d.ts +1 -0
- package/dist/projects/player/src/plugins/example-plugin/example-plugin.d.ts +2 -0
- package/dist/projects/player/src/plugins/favourite-plugin/components/favourite-button.d.ts +19 -0
- package/dist/projects/player/src/plugins/favourite-plugin/favourite-plugin.d.ts +28 -0
- package/dist/projects/player/src/plugins/fullscreen-on-rotate-plugin/fullscreen-on-rotate-plugin.d.ts +1 -0
- package/dist/projects/player/src/plugins/interactive-plugin/components/add-question-button/add-question-button.d.ts +8 -0
- package/dist/projects/player/src/plugins/interactive-plugin/components/continue-session/continue-session.d.ts +8 -0
- package/dist/projects/player/src/plugins/interactive-plugin/components/create-components/create-annotation/create-annotation-helpers.d.ts +9 -0
- package/dist/projects/player/src/plugins/interactive-plugin/components/create-components/create-annotation/create-annotation-link.d.ts +13 -0
- package/dist/projects/player/src/plugins/interactive-plugin/components/create-components/create-annotation/create-annotation.d.ts +12 -0
- package/dist/projects/player/src/plugins/interactive-plugin/components/create-components/create-components.d.ts +7 -0
- package/dist/projects/player/src/plugins/interactive-plugin/components/create-components/create-error-feedback/create-error-feedback.d.ts +6 -0
- package/dist/projects/player/src/plugins/interactive-plugin/components/create-components/create-image/create-image-cropper.d.ts +15 -0
- package/dist/projects/player/src/plugins/interactive-plugin/components/create-components/create-image/create-image.d.ts +15 -0
- package/dist/projects/player/src/plugins/interactive-plugin/components/create-components/create-image/upload-image-dropzone.d.ts +6 -0
- package/dist/projects/player/src/plugins/interactive-plugin/components/create-components/create-image/upload-image-icon.d.ts +2 -0
- package/dist/projects/player/src/plugins/interactive-plugin/components/create-components/create-interaction-buttons/create-interaction-buttons.d.ts +14 -0
- package/dist/projects/player/src/plugins/interactive-plugin/components/create-components/create-interaction-heading/create-interaction-heading.d.ts +12 -0
- package/dist/projects/player/src/plugins/interactive-plugin/components/create-components/create-missing-word/create-missing-word.d.ts +18 -0
- package/dist/projects/player/src/plugins/interactive-plugin/components/create-components/create-multiple-choice/create-multiple-choice.d.ts +18 -0
- package/dist/projects/player/src/plugins/interactive-plugin/components/create-components/create-multiple-choice/multiple-choice-answer.d.ts +9 -0
- package/dist/projects/player/src/plugins/interactive-plugin/components/create-components/create-short-answer/create-short-answer.d.ts +11 -0
- package/dist/projects/player/src/plugins/interactive-plugin/components/create-components/create-short-answer.ts/create-short-answer.d.ts +12 -0
- package/dist/projects/player/src/plugins/interactive-plugin/components/create-components/create-type-selector/create-type-selector.d.ts +15 -0
- package/dist/projects/player/src/plugins/interactive-plugin/components/feedback/feedback.d.ts +7 -0
- package/dist/projects/player/src/plugins/interactive-plugin/components/incomplete-alert/incomplete-alert.d.ts +2 -0
- package/dist/projects/player/src/plugins/interactive-plugin/components/interaction-actions/interaction-actions.d.ts +13 -0
- package/dist/projects/player/src/plugins/interactive-plugin/components/interaction-footer/interaction-footer.d.ts +20 -0
- package/dist/projects/player/src/plugins/interactive-plugin/components/interaction-header/interaction-header.d.ts +14 -0
- package/dist/projects/player/src/plugins/interactive-plugin/components/interactive/create-interaction-buttons.d.ts +13 -0
- package/dist/projects/player/src/plugins/interactive-plugin/components/interactive/interactive-component.d.ts +1 -0
- package/dist/projects/player/src/plugins/interactive-plugin/components/interactive/useInteractiveTrack.d.ts +20 -0
- package/dist/projects/player/src/plugins/interactive-plugin/components/interactive/view-iteraction-buttons.d.ts +13 -0
- package/dist/projects/player/src/plugins/interactive-plugin/components/interactive-icon-button/interactive-icon-button.d.ts +8 -0
- package/dist/projects/player/src/plugins/interactive-plugin/components/interactive-summary/InteractiveSummaryWrapper.d.ts +18 -0
- package/dist/projects/player/src/plugins/interactive-plugin/components/interactive-summary/interactions-bar/interactions-bar.d.ts +9 -0
- package/dist/projects/player/src/plugins/interactive-plugin/components/interactive-summary/interactive-summary.d.ts +20 -0
- package/dist/projects/player/src/plugins/interactive-plugin/components/interactive-summary/progress-summary/progress-summary.d.ts +12 -0
- package/dist/projects/player/src/plugins/interactive-plugin/components/interactive-summary/show-summary-button/show-summary-button.d.ts +13 -0
- package/dist/projects/player/src/plugins/interactive-plugin/components/move-timepoint/move-timepoint.d.ts +12 -0
- package/dist/projects/player/src/plugins/interactive-plugin/components/question-list/question-list-empty-state.d.ts +2 -0
- package/dist/projects/player/src/plugins/interactive-plugin/components/question-list/question-list.d.ts +13 -0
- package/dist/projects/player/src/plugins/interactive-plugin/components/reorder-interactions/reorder-interactions.d.ts +9 -0
- package/dist/projects/player/src/plugins/interactive-plugin/components/seek-bar/interactive-bar-item.d.ts +20 -0
- package/dist/projects/player/src/plugins/interactive-plugin/components/seek-bar/interactive-bar-items.d.ts +66 -0
- package/dist/projects/player/src/plugins/interactive-plugin/components/sliding-timepoint/sliding-timepoints.d.ts +11 -0
- package/dist/projects/player/src/plugins/interactive-plugin/components/timepoint/timepoint-component.d.ts +39 -0
- package/dist/projects/player/src/plugins/interactive-plugin/components/view-components/annotation/annotation-interaction.d.ts +3 -0
- package/dist/projects/player/src/plugins/interactive-plugin/components/view-components/image/image-interaction.d.ts +4 -0
- package/dist/projects/player/src/plugins/interactive-plugin/components/view-components/interactive-immersive-reader/interactive-immersive-reader.d.ts +8 -0
- package/dist/projects/player/src/plugins/interactive-plugin/components/view-components/missing-word/missing-word-interaction.d.ts +13 -0
- package/dist/projects/player/src/plugins/interactive-plugin/components/view-components/multiple-choice/multiple-choice-interaction.d.ts +13 -0
- package/dist/projects/player/src/plugins/interactive-plugin/components/view-components/short-answer/short-answer-interaction.d.ts +11 -0
- package/dist/projects/player/src/plugins/interactive-plugin/components/view-components/true-or-false/true-or-false-interaction.d.ts +13 -0
- package/dist/projects/player/src/plugins/interactive-plugin/components/view-components/view-components.d.ts +12 -0
- package/dist/projects/player/src/plugins/interactive-plugin/components/view-components/view-error-feedback/view-error-feedback.d.ts +6 -0
- package/dist/projects/player/src/plugins/interactive-plugin/components/view-components/view-interaction-buttons/view-iteraction-buttons.d.ts +14 -0
- package/dist/projects/player/src/plugins/interactive-plugin/components/view-components/view-interaction-heading/view-interaction-heading.d.ts +8 -0
- package/dist/projects/player/src/plugins/interactive-plugin/errors/ReconnectionError.d.ts +8 -0
- package/dist/projects/player/src/plugins/interactive-plugin/hooks/useInteractiveState.d.ts +26 -0
- package/dist/projects/player/src/plugins/interactive-plugin/hooks/useInteractiveTrack.d.ts +21 -0
- package/dist/projects/player/src/plugins/interactive-plugin/hooks/useLockPlayer.d.ts +15 -0
- package/dist/projects/player/src/plugins/interactive-plugin/hooks/useStateManager.d.ts +45 -0
- package/dist/projects/player/src/plugins/interactive-plugin/interactive-plugin.d.ts +49 -0
- package/dist/projects/player/src/plugins/interactive-plugin/interfaces/CreateInteractionState.d.ts +4 -0
- package/dist/projects/player/src/plugins/interactive-plugin/interfaces/InteractionComponent.d.ts +3 -0
- package/dist/projects/player/src/plugins/interactive-plugin/interfaces/InteractionProps.d.ts +16 -0
- package/dist/projects/player/src/plugins/interactive-plugin/interfaces/InteractionResult.d.ts +4 -0
- package/dist/projects/player/src/plugins/interactive-plugin/interfaces/InteractiveMode.d.ts +4 -0
- package/dist/projects/player/src/plugins/interactive-plugin/interfaces/InteractiveState.d.ts +30 -0
- package/dist/projects/player/src/plugins/interactive-plugin/interfaces/LatestSession.d.ts +11 -0
- package/dist/projects/player/src/plugins/interactive-plugin/interfaces/ResultSubmission.d.ts +2 -0
- package/dist/projects/player/src/plugins/interactive-plugin/interfaces/SubmissionFunction.d.ts +4 -0
- package/dist/projects/player/src/plugins/interactive-plugin/interfaces/ViewInteractionState.d.ts +3 -0
- package/dist/projects/player/src/plugins/interactive-plugin/interfaces/index.d.ts +8 -0
- package/dist/projects/player/src/plugins/interactive-plugin/utils/InteractiveReducer.d.ts +14 -0
- package/dist/projects/player/src/plugins/interactive-plugin/utils/ResultsService.d.ts +27 -0
- package/dist/projects/player/src/plugins/interactive-plugin/utils/getInteractionComponents.d.ts +3 -0
- package/dist/projects/player/src/plugins/interactive-plugin/utils/getInteractionStateId.d.ts +2 -0
- package/dist/projects/player/src/plugins/interactive-plugin/utils/getTimepointStateId.d.ts +2 -0
- package/dist/projects/player/src/plugins/interactive-plugin/utils/helpers.d.ts +2 -0
- package/dist/projects/player/src/plugins/interactive-plugin/utils/interactive-ajax.d.ts +10 -0
- package/dist/projects/player/src/plugins/localcache-plugin/LocalCache.d.ts +12 -0
- package/dist/projects/player/src/plugins/localcache-plugin/compontents/local-cache-indicator.d.ts +1 -0
- package/dist/projects/player/src/plugins/localcache-plugin/localcache-middleware.d.ts +1 -0
- package/dist/projects/player/src/plugins/localcache-plugin/localcache-plugin.d.ts +62 -0
- package/dist/projects/player/src/plugins/next-video-plugin/components/up-next/up-next.d.ts +1 -0
- package/dist/projects/player/src/plugins/next-video-plugin/next-video-plugin.d.ts +44 -0
- package/dist/projects/player/src/plugins/open-externally-plugin/components/open-externally-button.d.ts +1 -0
- package/dist/projects/player/src/plugins/open-externally-plugin/interfaces/ExternalLinkOptions.d.ts +3 -0
- package/dist/projects/player/src/plugins/open-externally-plugin/open-externally-plugin.d.ts +1 -0
- package/dist/projects/player/src/plugins/persist-volume-plugin/persist-volume-plugin.d.ts +1 -0
- package/dist/projects/player/src/plugins/persist-volume-plugin/persist-volume-plugin.test.d.ts +1 -0
- package/dist/projects/player/src/plugins/picture-in-picture-plugin/picture-in-picture-plugin.d.ts +48 -0
- package/dist/projects/player/src/plugins/progress-reporter-plugin/progress-reporter-plugin.d.ts +68 -0
- package/dist/projects/player/src/plugins/progressive-files-plugin/ProgressiveFilesPluginOptions.d.ts +4 -0
- package/dist/projects/player/src/plugins/progressive-files-plugin/ProgressiveRepresentation.d.ts +10 -0
- package/dist/projects/player/src/plugins/progressive-files-plugin/interfaces/Source.d.ts +6 -0
- package/dist/projects/player/src/plugins/progressive-files-plugin/progressive-files-plugin.d.ts +38 -0
- package/dist/projects/player/src/plugins/resources-plugin/components/resource-menu-item/resource-menu-item.d.ts +21 -0
- package/dist/projects/player/src/plugins/resources-plugin/components/resources-button/resources-button.d.ts +1 -0
- package/dist/projects/player/src/plugins/resources-plugin/resources-plugin.d.ts +12 -0
- package/dist/projects/player/src/plugins/touch-controls-plugin/components/touch-controls/touch-controls.d.ts +59 -0
- package/dist/projects/player/src/plugins/touch-controls-plugin/touch-controls-plugin.d.ts +1 -0
- package/dist/projects/player/src/react/CreateClipPlayer.d.ts +3 -0
- package/dist/projects/player/src/react/InteractivePlayer.d.ts +8 -0
- package/dist/projects/player/src/react/Player.d.ts +10 -0
- package/dist/projects/player/src/react/react-component.d.ts +11 -0
- package/dist/projects/player/src/services/analytics-service.d.ts +31 -0
- package/dist/projects/player/src/utils/ajax-helper.d.ts +16 -0
- package/dist/projects/player/src/utils/fn.d.ts +14 -0
- package/dist/projects/player/src/utils/formatTime.d.ts +5 -0
- package/dist/projects/player/src/utils/hotkeys.d.ts +5 -0
- package/dist/projects/player/src/utils/quality-helper.d.ts +19 -0
- package/dist/projects/player/src/utils/quality-helper.test.d.ts +1 -0
- package/dist/projects/player/src/utils/scrollbar-helper.d.ts +6 -0
- package/dist/projects/player/src/utils/track-helper.d.ts +7 -0
- package/dist/projects/player/test/players/test-player.d.ts +17 -0
- package/dist/projects/player/test/setupTests.d.ts +0 -0
- package/dist/projects/player/test/utils/test-helpers.d.ts +8 -0
- package/package.json +3 -3
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { ObjectHash } from 'backbone';
|
|
2
|
+
import * as Marionette from 'backbone.marionette';
|
|
3
|
+
import { BaseApplication } from './BaseApplication';
|
|
4
|
+
import { BaseError } from './BaseError';
|
|
5
|
+
import { BaseLayoutView } from './BaseLayoutView';
|
|
6
|
+
import { Store } from 'redux';
|
|
7
|
+
interface InitializationStep {
|
|
8
|
+
(shell: Shell, next: InitializationStep): void;
|
|
9
|
+
}
|
|
10
|
+
interface StartUpSet {
|
|
11
|
+
(shell: Shell, options: any, next: StartUpSet): void;
|
|
12
|
+
}
|
|
13
|
+
export interface ShellOptions extends Marionette.ApplicationOptions {
|
|
14
|
+
}
|
|
15
|
+
export declare class Shell extends Marionette.Application {
|
|
16
|
+
/**
|
|
17
|
+
* Used to retreive and cache layout views.
|
|
18
|
+
*/
|
|
19
|
+
private layoutService;
|
|
20
|
+
private applications;
|
|
21
|
+
private routeLookup;
|
|
22
|
+
private shellState;
|
|
23
|
+
initialize(options?: ShellOptions): void;
|
|
24
|
+
private bindListeners;
|
|
25
|
+
private bindNavLockListeners;
|
|
26
|
+
private bindAppLinkListeners;
|
|
27
|
+
private bindErrorHandlers;
|
|
28
|
+
private bindErrorListener;
|
|
29
|
+
/**
|
|
30
|
+
* Using all the routeLookups passed in during AppRouter initialization
|
|
31
|
+
* we create a bunch of channel replies on the shell channel.
|
|
32
|
+
*
|
|
33
|
+
* Both Core.AppRouter and Core.View use this to reverse engineer
|
|
34
|
+
* the application routes and regenerate urls with a list of arguments.
|
|
35
|
+
*
|
|
36
|
+
* These need to exist on the shell rather than on the Core.AppRouter
|
|
37
|
+
* because consumers of this reply wont know which instance of Core.AppRoute
|
|
38
|
+
* to call.
|
|
39
|
+
*/
|
|
40
|
+
private bindRouteLookup;
|
|
41
|
+
addRouteLookup(name: string, func: () => string): void;
|
|
42
|
+
registerApplication(application: typeof BaseApplication, options?: ObjectHash): this;
|
|
43
|
+
getGlobalRadioChannels(): ObjectHash;
|
|
44
|
+
isNavLocked(): boolean;
|
|
45
|
+
start(options?: any): void;
|
|
46
|
+
hasActiveRoute(): boolean;
|
|
47
|
+
/**
|
|
48
|
+
* On Shell start up an instance of each Applications router is instantiated
|
|
49
|
+
* so that it can listen to application events or route in the current page
|
|
50
|
+
*/
|
|
51
|
+
onStart(): void;
|
|
52
|
+
/**
|
|
53
|
+
* these are based on node/express middleware:
|
|
54
|
+
* https://gist.github.com/darrenscerri/5c3b3dcbe4d370435cfa
|
|
55
|
+
*
|
|
56
|
+
* Initialization steps should be used to do stuff like register
|
|
57
|
+
* services with the instance manager, register analytics clients
|
|
58
|
+
* and enrichers, add any data provider middle ware and register layouts
|
|
59
|
+
*/
|
|
60
|
+
addInitializationStep(fn: InitializationStep): Shell;
|
|
61
|
+
private runInitializationSteps;
|
|
62
|
+
addStartUpStep(fn: StartUpSet): Shell;
|
|
63
|
+
/**
|
|
64
|
+
* Start up steps should be used to inject options into the shell
|
|
65
|
+
* or run any other code that we want to run just before the application starts
|
|
66
|
+
*/
|
|
67
|
+
private runStartUpSteps;
|
|
68
|
+
registerLayout(name: string, layout: typeof BaseLayoutView): Shell;
|
|
69
|
+
private errorHandlers;
|
|
70
|
+
registerErrorHandler<T extends BaseError>(errorType: Function & {
|
|
71
|
+
prototype: T;
|
|
72
|
+
}, handler: (error: T) => void): Shell;
|
|
73
|
+
handleError(error: BaseError): void;
|
|
74
|
+
store: Store;
|
|
75
|
+
registerStore(store: Store): void;
|
|
76
|
+
listenTo(object: any, eventMap: Backbone.EventMap): this;
|
|
77
|
+
listenTo(obj: string | Backbone.Events, events: string, callback: (...args: any) => any): this;
|
|
78
|
+
}
|
|
79
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare type ModelCtor<T> = {
|
|
2
|
+
new (vals: any, options?: any): T;
|
|
3
|
+
};
|
|
4
|
+
export declare type CollectionCtor<T> = {
|
|
5
|
+
new (models?: any[], options?: any): T;
|
|
6
|
+
};
|
|
7
|
+
export declare type ViewCtor<T> = {
|
|
8
|
+
new (options: any): T;
|
|
9
|
+
};
|
|
10
|
+
export declare type ErrorCtor<T> = {
|
|
11
|
+
new (...args: any[]): T;
|
|
12
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export { AppLinkHelper, AppLinkUtility } from './AppLink';
|
|
2
|
+
export type { AppLink, AppLinkOptions, AppLinkHash } from './AppLink';
|
|
3
|
+
export { BaseApplication as Application } from './BaseApplication';
|
|
4
|
+
export { BaseAppRouter as AppRouter } from './BaseAppRouter';
|
|
5
|
+
export type { ExecuteRouteOptions, FilterOptions } from './BaseAppRouter';
|
|
6
|
+
export { BaseBehavior as Behavior } from './BaseBehavior';
|
|
7
|
+
export { BaseCollection as Collection } from './BaseCollection';
|
|
8
|
+
export { BaseCollectionView as CollectionView, BaseCollectionView as ComponentCollection } from './BaseCollectionView';
|
|
9
|
+
export type { BaseCollectionViewOptions as ComponentCollectionOptions, BaseCollectionViewOptions as CollectionViewOptions } from './BaseCollectionView';
|
|
10
|
+
export { BaseError as Error, ErrorHelper, SilentError } from './BaseError';
|
|
11
|
+
export { BaseLayoutView as LayoutView } from './BaseLayoutView';
|
|
12
|
+
export type { BaseLayoutViewOptions as LayoutViewOptions } from './BaseLayoutView';
|
|
13
|
+
export { BaseNestedModel as NestedModel } from './BaseNestedModel';
|
|
14
|
+
export type { BaseNestedModelOptions as NestedModelOptions } from './BaseNestedModel';
|
|
15
|
+
export { BaseService as Service } from './BaseService';
|
|
16
|
+
export type { BaseServiceOptions as ServiceOptions } from './BaseService';
|
|
17
|
+
export { BaseModel as Model } from './BaseModel';
|
|
18
|
+
export { BaseView as View, BaseComponent as Component } from './BaseView';
|
|
19
|
+
export type { BaseViewOptions as ViewOptions, BaseViewOptions as ComponentOptions, RequiredResourceDefinition, RequiredResourceHash } from './BaseView';
|
|
20
|
+
export { EventNames } from './EventNames';
|
|
21
|
+
export { LayoutService } from './LayoutService';
|
|
22
|
+
export type { LayoutOptions } from './LayoutService';
|
|
23
|
+
export { Middleware } from './Middleware';
|
|
24
|
+
export type { MiddlewareFunction, MiddlewareNext } from './Middleware';
|
|
25
|
+
export { LocationUtils } from './LocationUtils';
|
|
26
|
+
export { Shell } from './Shell';
|
|
27
|
+
export * from './Types';
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ObjectHash } from 'backbone';
|
|
2
|
+
import { HashObject } from 'libs/common/react/interfaces';
|
|
3
|
+
export interface BaseCollectionIdentifierOptions<T> {
|
|
4
|
+
collectionPrefix?: string;
|
|
5
|
+
id?: string;
|
|
6
|
+
sort?: T;
|
|
7
|
+
cursor?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare class BaseCollectionIdentifier<T = HashObject> {
|
|
10
|
+
id: string;
|
|
11
|
+
sort: T;
|
|
12
|
+
cursor: string;
|
|
13
|
+
collectionPrefix: string;
|
|
14
|
+
constructor(options: BaseCollectionIdentifierOptions<T>);
|
|
15
|
+
protected setData(options: BaseCollectionIdentifierOptions<T>): void;
|
|
16
|
+
toString(): string;
|
|
17
|
+
toParams(): ObjectHash;
|
|
18
|
+
protected getSortTypeParam(): string;
|
|
19
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { DataServiceGetRequest, DataServiceCreateRequest, DataServiceUpdateRequest, DataServiceDeleteRequest } from 'libs/common/backbone/interfaces/DataServiceRequests';
|
|
2
|
+
export interface ChainableDataService {
|
|
3
|
+
func(callback: (callback: () => any) => void): ChainableDataService;
|
|
4
|
+
get<T>(options: DataServiceGetRequest<T>): ChainableDataService;
|
|
5
|
+
create<T>(options: DataServiceCreateRequest<T>): ChainableDataService;
|
|
6
|
+
update<T>(options: DataServiceUpdateRequest<T>): ChainableDataService;
|
|
7
|
+
delete(options: DataServiceDeleteRequest): ChainableDataService;
|
|
8
|
+
run(): void;
|
|
9
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export interface DataCache extends Marionette.Object {
|
|
2
|
+
has(cacheKey: string): boolean;
|
|
3
|
+
get(cacheKey: string): any;
|
|
4
|
+
set(cacheKey: string, value: any): void;
|
|
5
|
+
getOrSet(cacheKey: string, getter: () => any): any;
|
|
6
|
+
remove(cacheKey: string): boolean;
|
|
7
|
+
invalidate(cacheKey: string[], callback?: (cacheKey: string) => void): void;
|
|
8
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/// <reference types="backbone.radio" />
|
|
2
|
+
import { Radio } from 'backbone';
|
|
3
|
+
import { DataServiceError } from 'libs/common/backbone/interfaces/DataServiceError';
|
|
4
|
+
export interface DataProviderResponseOptions {
|
|
5
|
+
channel: Radio.Channel;
|
|
6
|
+
successEvent: string;
|
|
7
|
+
errorEvent: string;
|
|
8
|
+
}
|
|
9
|
+
export interface DataProvider extends Marionette.Object {
|
|
10
|
+
parseError(...args: any[]): DataServiceError;
|
|
11
|
+
create<T>(resource: string, obj: T, options: DataProviderResponseOptions): void;
|
|
12
|
+
read(resource: string, options: DataProviderResponseOptions): void;
|
|
13
|
+
update<T>(resource: string, obj: T, options: DataProviderResponseOptions): void;
|
|
14
|
+
delete(resource: string, options: DataProviderResponseOptions): void;
|
|
15
|
+
}
|
|
@@ -0,0 +1,218 @@
|
|
|
1
|
+
import { Events } from 'backbone';
|
|
2
|
+
export interface BaseDataServiceRequest {
|
|
3
|
+
/**
|
|
4
|
+
* This will be a url, an event or a cache key
|
|
5
|
+
* depending on the DataProviderType
|
|
6
|
+
*/
|
|
7
|
+
resource: string;
|
|
8
|
+
/**
|
|
9
|
+
* This is used to generate the events that can be listened to
|
|
10
|
+
* on the backbone radio channel.
|
|
11
|
+
*
|
|
12
|
+
* (e.g. if your eventPrefix was 'library' events would be:
|
|
13
|
+
* library:request, library:sync, library:success and library:error)
|
|
14
|
+
*/
|
|
15
|
+
eventPrefix: string;
|
|
16
|
+
/**
|
|
17
|
+
* This is the instance that is listening to the events.
|
|
18
|
+
* We pass this in so we can use the IoC of
|
|
19
|
+
* listenTo rather than using an on binding.
|
|
20
|
+
* (https://en.wikipedia.org/wiki/Inversion_of_control)
|
|
21
|
+
*
|
|
22
|
+
* This means that there won't be stale event listeners once
|
|
23
|
+
* the listener is disposed of.
|
|
24
|
+
*/
|
|
25
|
+
listener?: Events;
|
|
26
|
+
/**
|
|
27
|
+
* How long in seconds before the data
|
|
28
|
+
* is stale and we need to retreive it again
|
|
29
|
+
*/
|
|
30
|
+
expiryTime?: number;
|
|
31
|
+
/**
|
|
32
|
+
* Set of eventPrefix keys that will be evicted from the cache
|
|
33
|
+
* once the data request has completed.
|
|
34
|
+
*
|
|
35
|
+
* Accepts full and partial keys, where partial keys will be used to generate
|
|
36
|
+
* a regex for matching. Allows for multiple keys to be evicted in bulk.
|
|
37
|
+
*/
|
|
38
|
+
invalidationKeys?: string[];
|
|
39
|
+
/**
|
|
40
|
+
* This is used by a view to gain reference to the model or collection
|
|
41
|
+
* and store it somewhere. If the data is already cached, the callback will
|
|
42
|
+
* be called syncronously. Otherwise it will be called when the data becomes
|
|
43
|
+
* available.
|
|
44
|
+
*/
|
|
45
|
+
callback?: (data?: any) => any;
|
|
46
|
+
/**
|
|
47
|
+
* Callback to be passed from a view to be fired on an error.
|
|
48
|
+
*/
|
|
49
|
+
errorCallback?: () => void;
|
|
50
|
+
/**
|
|
51
|
+
* Success handler is attached as a callback to the successEvent fired on the dataProvider's dataChannel.
|
|
52
|
+
* Should NOT be used for data manipulation or management by views - use a callback or eventPrefix instead.
|
|
53
|
+
* Context is not bound at execution time, so ensure that any context is already bound to
|
|
54
|
+
* the handler when it is passed.
|
|
55
|
+
*/
|
|
56
|
+
successHandler?: (...args: any[]) => any;
|
|
57
|
+
/**
|
|
58
|
+
* Error handler is attached as a callback to the errorEvent fired on the dataProvider's dataChannel.
|
|
59
|
+
* Context is not bound at execution time, so ensure that any context is already bound to
|
|
60
|
+
* the handler when it is passed.
|
|
61
|
+
* A default errorHandler will be bound unless another error handler is passed in.
|
|
62
|
+
* Alternatively, passing in false will mean that no errorHandler is bound.
|
|
63
|
+
*/
|
|
64
|
+
errorHandler?: ((...args: any[]) => any) | boolean;
|
|
65
|
+
}
|
|
66
|
+
export interface DataServiceGetRequest<T> extends BaseDataServiceRequest {
|
|
67
|
+
/**
|
|
68
|
+
* This should be used to put the data returned from the DataProvider
|
|
69
|
+
* into an instance of a Model or Collection.
|
|
70
|
+
*
|
|
71
|
+
* This should be defined by the children inheriting from BaseDataService
|
|
72
|
+
* and should not be exposed to views or services consuming BaseDataService.
|
|
73
|
+
*/
|
|
74
|
+
formatData?: (data: any) => T;
|
|
75
|
+
/**
|
|
76
|
+
* Redefine callback with stronger types.
|
|
77
|
+
*/
|
|
78
|
+
callback?: (data: T) => any;
|
|
79
|
+
/**
|
|
80
|
+
* The name of the property on the bootstrap object
|
|
81
|
+
* that this request will use.
|
|
82
|
+
*/
|
|
83
|
+
bootstrapName?: string;
|
|
84
|
+
}
|
|
85
|
+
export interface DataServiceClearAndGetRequest<T> extends BaseDataServiceRequest {
|
|
86
|
+
/**
|
|
87
|
+
* This should be used to put the data returned from the DataProvider
|
|
88
|
+
* into an instance of a Model or Collection.
|
|
89
|
+
*
|
|
90
|
+
* This should be defined by the children inheriting from BaseDataService
|
|
91
|
+
* and should not be exposed to views or services consuming BaseDataService.
|
|
92
|
+
*/
|
|
93
|
+
formatData?: (data: any) => T;
|
|
94
|
+
/**
|
|
95
|
+
* Redfine callback as a required option
|
|
96
|
+
* because this is the only way to retreive the data
|
|
97
|
+
* in a clearCacheAndGet call
|
|
98
|
+
*/
|
|
99
|
+
callback: (data: T) => void;
|
|
100
|
+
}
|
|
101
|
+
export interface DataServiceCreateRequest<T> extends BaseDataServiceRequest {
|
|
102
|
+
/**
|
|
103
|
+
* This is the data we'll be creating.
|
|
104
|
+
*/
|
|
105
|
+
data: any;
|
|
106
|
+
/**
|
|
107
|
+
* This is how the data should be stored in the cache.
|
|
108
|
+
*/
|
|
109
|
+
formatData?: (data: any) => T;
|
|
110
|
+
/**
|
|
111
|
+
* Redefine callback with stronger types.
|
|
112
|
+
*/
|
|
113
|
+
callback?: (data: T) => any;
|
|
114
|
+
}
|
|
115
|
+
export interface DataServiceUpdateRequest<T> extends BaseDataServiceRequest {
|
|
116
|
+
/**
|
|
117
|
+
* This is the data we'll be sending
|
|
118
|
+
* to the server.
|
|
119
|
+
*/
|
|
120
|
+
data: any;
|
|
121
|
+
/**
|
|
122
|
+
* This is how the data should be stored in the cache.
|
|
123
|
+
*/
|
|
124
|
+
formatData?: (data: any) => T;
|
|
125
|
+
/**
|
|
126
|
+
* Redefine callback with stronger types.
|
|
127
|
+
*/
|
|
128
|
+
callback?: (data: T) => any;
|
|
129
|
+
}
|
|
130
|
+
/**
|
|
131
|
+
* The delete request is the simplest one.
|
|
132
|
+
* We have this here just incase we need to add to it
|
|
133
|
+
* in the future.
|
|
134
|
+
*/
|
|
135
|
+
export interface DataServiceDeleteRequest extends BaseDataServiceRequest {
|
|
136
|
+
}
|
|
137
|
+
export interface DataServiceRequestOptions {
|
|
138
|
+
/**
|
|
139
|
+
* This is used to generate the events that can be listened to
|
|
140
|
+
* on the backbone radio channel.
|
|
141
|
+
*
|
|
142
|
+
* (e.g. if your eventPrefix was library
|
|
143
|
+
* our events would be library:request and library:sync)
|
|
144
|
+
*/
|
|
145
|
+
eventPrefix: string;
|
|
146
|
+
/**
|
|
147
|
+
* Different requests will need to manage/change the cache
|
|
148
|
+
* in different ways.
|
|
149
|
+
*/
|
|
150
|
+
cacheOptions?: DataServiceCacheOptions;
|
|
151
|
+
/**
|
|
152
|
+
* This should be used to put the data returned from the DataProvider
|
|
153
|
+
* into an instance of a Model or Collection.
|
|
154
|
+
*
|
|
155
|
+
* This should be defined by the children inheriting from BaseDataService
|
|
156
|
+
* and should not be exposed to views or services consuming BaseDataService.
|
|
157
|
+
*/
|
|
158
|
+
formatData?: (data: any) => any;
|
|
159
|
+
/**
|
|
160
|
+
* After certain requests it may be necessary to refresh
|
|
161
|
+
* some data in the cache that has become stale.
|
|
162
|
+
* I.e. Deleting or moving a video
|
|
163
|
+
* Set of eventPrefix keys that will be evicted from the cache
|
|
164
|
+
* once the data request has completed.
|
|
165
|
+
*
|
|
166
|
+
* Accepts full and partial keys, where partial keys will be used to generate
|
|
167
|
+
* a regex for matching. Allows for multiple keys to be evicted in bulk.
|
|
168
|
+
*/
|
|
169
|
+
invalidationKeys?: string[];
|
|
170
|
+
/**
|
|
171
|
+
* Redefine callback with stronger types. It is called after a successful request
|
|
172
|
+
*/
|
|
173
|
+
callback?: (data: any) => any;
|
|
174
|
+
/**
|
|
175
|
+
* Callback to be passed from a view to be fired on an error.
|
|
176
|
+
*/
|
|
177
|
+
errorCallback?: () => void;
|
|
178
|
+
/**
|
|
179
|
+
* Success handler is attached as a callback to the successEvent fired on the dataProvider's dataChannel.
|
|
180
|
+
* Should NOT be used for data manipulation or management by views - use a callback or eventPrefix instead.
|
|
181
|
+
* Context is not bound at execution time, so ensure that any context is already bound to
|
|
182
|
+
* the handler when it is passed.
|
|
183
|
+
*/
|
|
184
|
+
successHandler?: (...args: any[]) => any;
|
|
185
|
+
/**
|
|
186
|
+
* Error handler is attached as a callback to the errorEvent fired on the dataProvider's dataChannel.
|
|
187
|
+
* Context is not bound at execution time, so ensure that any context is already bound to
|
|
188
|
+
* the handler when it is passed.
|
|
189
|
+
* A default errorHandler will be bound unless another error handler is passed in.
|
|
190
|
+
* Alternatively, passing in false will mean that no errorHandler is bound.
|
|
191
|
+
*/
|
|
192
|
+
errorHandler?: ((...args: any[]) => any) | boolean;
|
|
193
|
+
}
|
|
194
|
+
export interface DataServiceCacheOptions {
|
|
195
|
+
/**
|
|
196
|
+
* All requests will be cached by default. In circumstances where the return value
|
|
197
|
+
* is not required (i.e. after a delete call), set the flag to true.
|
|
198
|
+
*/
|
|
199
|
+
noCache?: boolean;
|
|
200
|
+
/**
|
|
201
|
+
* Certain requets (ie. deletes) may require the current cacheKey to be cleared.
|
|
202
|
+
* Set to true to clear.
|
|
203
|
+
*/
|
|
204
|
+
clearCacheKey?: boolean;
|
|
205
|
+
/**
|
|
206
|
+
* Where muliple views may require access to the same reource/data, set openRequest to
|
|
207
|
+
* ensure that any subsequent view can bind it's own callbacks to the existing
|
|
208
|
+
* network call.
|
|
209
|
+
*/
|
|
210
|
+
openRequest?: boolean;
|
|
211
|
+
/**
|
|
212
|
+
* Cached data will utilise a timestamp to determine it's own expiry time within the cache.
|
|
213
|
+
*/
|
|
214
|
+
timestamp?: number;
|
|
215
|
+
}
|
|
216
|
+
export interface RequestSignatures {
|
|
217
|
+
[signature: string]: string;
|
|
218
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
export interface Pagination {
|
|
2
|
+
cursors: Cursors;
|
|
3
|
+
limit: number;
|
|
4
|
+
}
|
|
5
|
+
export interface Cursors {
|
|
6
|
+
next: string;
|
|
7
|
+
previous: string;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Do not extend or implement this interface.
|
|
11
|
+
* It is only exported for use within the BaseDataService.
|
|
12
|
+
*
|
|
13
|
+
* By default, the BaseDataService will convert legacy pagination
|
|
14
|
+
* objects to cursor-based pagination objects.
|
|
15
|
+
*/
|
|
16
|
+
export interface LegacyPagination {
|
|
17
|
+
page: number;
|
|
18
|
+
pageSize: number;
|
|
19
|
+
totalItems: number;
|
|
20
|
+
totalPages: number;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Do not extend or implement this interface.
|
|
24
|
+
* It is only exported for use within the BaseDataService.
|
|
25
|
+
*
|
|
26
|
+
* By default, the BaseDataService will convert legacy pagination
|
|
27
|
+
* objects to cursor-based pagination objects.
|
|
28
|
+
*/
|
|
29
|
+
export interface OffsetPagination {
|
|
30
|
+
offset: number;
|
|
31
|
+
pageSize: number;
|
|
32
|
+
totalItems: number;
|
|
33
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/// <reference types="jquery" />
|
|
2
|
+
/// <reference types="jqueryui" />
|
|
3
|
+
/// <reference types="typeahead" />
|
|
4
|
+
/// <reference types="bootstrap" />
|
|
5
|
+
/// <reference types="dropzone" />
|
|
6
|
+
import { BaseModel } from '../core/BaseModel';
|
|
7
|
+
export interface StickitBinding {
|
|
8
|
+
observe: string;
|
|
9
|
+
onGet?: string | ((value: string, options: any) => string);
|
|
10
|
+
onSet?: string | ((value: string, options: any) => string);
|
|
11
|
+
getVal?: string | (($el: JQuery, event: Event, options: any) => string);
|
|
12
|
+
update?: string | (($el: JQuery, value: string, model: BaseModel, options: any) => void);
|
|
13
|
+
updateModel?: string | boolean | ((value: string, event: Event, options: any) => boolean);
|
|
14
|
+
updateView?: string | boolean | (() => boolean);
|
|
15
|
+
afterUpdate?: string | (($el: JQuery, value: string, options: any) => void);
|
|
16
|
+
updateMethod?: string;
|
|
17
|
+
escape?: boolean;
|
|
18
|
+
initialize?: string | (($el: JQuery, model: BaseModel, options: any) => void);
|
|
19
|
+
destroy?: string | (($el: JQuery, model: BaseModel, options: any) => void);
|
|
20
|
+
visible?: boolean | ((value: string, options: any) => boolean);
|
|
21
|
+
visibleFn?: string;
|
|
22
|
+
events?: string[];
|
|
23
|
+
name?: string;
|
|
24
|
+
selectOptions?: {
|
|
25
|
+
collection: string;
|
|
26
|
+
labelPath: string;
|
|
27
|
+
valuePath: string;
|
|
28
|
+
defaultOption?: string;
|
|
29
|
+
};
|
|
30
|
+
setOptions?: {
|
|
31
|
+
silent?: boolean;
|
|
32
|
+
validate?: boolean;
|
|
33
|
+
};
|
|
34
|
+
classes?: {
|
|
35
|
+
[className: string]: StickitBinding;
|
|
36
|
+
};
|
|
37
|
+
attributes?: StickitBinding[];
|
|
38
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export interface Xhr extends Pick<XMLHttpRequest, 'getResponseHeader' | 'status'> {
|
|
2
|
+
responseJSON?: any;
|
|
3
|
+
}
|
|
4
|
+
/**
|
|
5
|
+
* We're making getResponseHeader optional for a slightly nicer API
|
|
6
|
+
*/
|
|
7
|
+
export interface SimulatedXhr extends Omit<Xhr, 'getResponseHeader'> {
|
|
8
|
+
getResponseHeader?: (name: string) => string;
|
|
9
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export * from './BaseCollectionIdentifier';
|
|
2
|
+
export * from './ChainableDataService';
|
|
3
|
+
export * from './DataCache';
|
|
4
|
+
export * from './DataProvider';
|
|
5
|
+
export * from './DataServiceError';
|
|
6
|
+
export * from './DataServiceRequests';
|
|
7
|
+
export * from './Pagination';
|
|
8
|
+
export * from './StickitBinding';
|
|
9
|
+
export * from './Xhr';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ObjectHash } from 'backbone';
|
|
2
|
+
declare class StaticEnvironmentVariables {
|
|
3
|
+
private static instance;
|
|
4
|
+
private variables;
|
|
5
|
+
constructor();
|
|
6
|
+
static get Instance(): StaticEnvironmentVariables;
|
|
7
|
+
get name(): string;
|
|
8
|
+
get isDevelopment(): boolean;
|
|
9
|
+
get(name: string): any;
|
|
10
|
+
setUpVariables(variables: ObjectHash): void;
|
|
11
|
+
}
|
|
12
|
+
export declare const EnvironmentVariables: StaticEnvironmentVariables;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ObjectHash } from 'backbone';
|
|
2
|
+
import { BaseService } from 'libs/common/backbone/core/BaseService';
|
|
3
|
+
interface LanguageInterpolationOptions {
|
|
4
|
+
smartCount?: number;
|
|
5
|
+
[propName: string]: any;
|
|
6
|
+
}
|
|
7
|
+
interface LanguageConfig {
|
|
8
|
+
locale: string;
|
|
9
|
+
phrases: ObjectHash;
|
|
10
|
+
}
|
|
11
|
+
declare class StaticLanguageService extends BaseService {
|
|
12
|
+
private static instance;
|
|
13
|
+
private polyglot;
|
|
14
|
+
private cache;
|
|
15
|
+
static get Instance(): StaticLanguageService;
|
|
16
|
+
get name(): string;
|
|
17
|
+
setConfig(config: LanguageConfig): void;
|
|
18
|
+
getPhrase(namespace: string, phraseKey: string, options?: LanguageInterpolationOptions): string;
|
|
19
|
+
encloseNamespace(namespace: string): (phraseKey: string, options?: LanguageInterpolationOptions) => string;
|
|
20
|
+
}
|
|
21
|
+
export declare const LanguageService: StaticLanguageService;
|
|
22
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as _ from 'underscore';
|
|
2
|
+
export declare const FunctionHelper: {
|
|
3
|
+
debounce<T extends (...args: any) => any>(fn: T, wait: number, immediate?: boolean): T & _.Cancelable;
|
|
4
|
+
throttle<T_1 extends (...args: any) => any>(fn: T_1, wait: number, options?: _.ThrottleSettings): T_1 & _.Cancelable;
|
|
5
|
+
isFunction(object: any): object is Function;
|
|
6
|
+
useIdentity<T_2>(): (...args: any[]) => T_2;
|
|
7
|
+
memoize<T_3 = (...args: any) => any>(fn: T_3, hashFn?: (...args: any[]) => string): T_3;
|
|
8
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ObjectHash } from 'backbone';
|
|
2
|
+
interface FilterParams {
|
|
3
|
+
limit?: number;
|
|
4
|
+
cursor?: string;
|
|
5
|
+
before?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare const UrlHelper: {
|
|
8
|
+
urlBuilder(base: string, queryStringObj: ObjectHash): string;
|
|
9
|
+
buildFilter(params: FilterParams): string;
|
|
10
|
+
makeHttps(url: string): string;
|
|
11
|
+
safeUrlConcat(baseUrl: string, path: string): string;
|
|
12
|
+
removeTrailingSlash(baseUrl: string): string;
|
|
13
|
+
};
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ApplicationState } from 'libs/common/react/interfaces/ApplicationState';
|
|
2
|
+
import { Request, Response, Dispatch } from './interfaces';
|
|
3
|
+
export declare function emptyResponse<T>(): Response<T>;
|
|
4
|
+
export declare function getResponse<T>(state: ApplicationState, key: string): Response<T>;
|
|
5
|
+
export declare function getFetch(dispatch: Dispatch, request: Request): () => void;
|
|
6
|
+
export declare function fetch(dispatch: Dispatch, request: Request): void;
|
|
7
|
+
export declare function hooklessFetch(dispatch: Dispatch, state: ApplicationState, request: Request): void;
|
|
8
|
+
export declare function useGetFetch(request: Request): () => void;
|
|
9
|
+
interface GetResponseOptions {
|
|
10
|
+
optimize: boolean;
|
|
11
|
+
}
|
|
12
|
+
export declare function useGetResponse<T>(key: string, options?: GetResponseOptions): Response<T>;
|
|
13
|
+
export declare function useBasicFetch<T>(request: Request, options?: GetResponseOptions): Response<T>;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Dispatch, Middleware, AnyAction } from 'redux';
|
|
2
|
+
import { HashObject } from 'libs/common/react/interfaces/HashObject';
|
|
3
|
+
import { ApplicationState } from 'libs/common/react/interfaces/ApplicationState';
|
|
4
|
+
import { HttpRequest } from './interfaces';
|
|
5
|
+
interface MiddlewareOptions {
|
|
6
|
+
fetchData: HttpRequest;
|
|
7
|
+
bootstrappedData?: HashObject;
|
|
8
|
+
defaultExpiryTime?: number;
|
|
9
|
+
}
|
|
10
|
+
export declare function createMiddleware(options: MiddlewareOptions): Middleware<HashObject, ApplicationState, Dispatch<AnyAction>>;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { HashObject } from 'libs/common/react/interfaces/HashObject';
|
|
2
|
+
/**
|
|
3
|
+
* This is a very basic implementation and we almost definitely will
|
|
4
|
+
* need to extend upon this, so please don't be afraid to add to it.
|
|
5
|
+
*/
|
|
6
|
+
export declare const Simulator: {
|
|
7
|
+
getAll(name: string, init?: HashObject[]): HashObject[];
|
|
8
|
+
get(name: string, id: string): HashObject;
|
|
9
|
+
create(name: string, item: HashObject): HashObject;
|
|
10
|
+
update(name: string, item: HashObject): HashObject;
|
|
11
|
+
delete(name: string, ids: string | string[]): void;
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @param objectName - the name your object can be found under in local storage (e.g. `classrooms`).
|
|
15
|
+
* @param objectId - the id of the object you want to associate something to.
|
|
16
|
+
* @param assocName - the field name of your assoc, which will go on your object (e.g. `students`).
|
|
17
|
+
* @param flightSimName - the name your assoc objects will be created under (e.g. `school:students`).
|
|
18
|
+
* @param assocObject - the object you're creating and associating.
|
|
19
|
+
*
|
|
20
|
+
* Having a difficult time coming up with good param names here. Feel free to update, ty
|
|
21
|
+
*/
|
|
22
|
+
assoc(objectName: string, objectId: string, assocName: string, flightSimName: string, assocObjects: any | any[]): any | any[];
|
|
23
|
+
dissoc(objectName: string, objectId: string, assocName: string, ids: string | string[]): HashObject[];
|
|
24
|
+
};
|